@yoast/ai-insights-client 1.4.109 → 1.4.111
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.
|
@@ -13,8 +13,8 @@ var Rs = (t, e, n, r) => ({
|
|
|
13
13
|
return _(t, e, r);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
|
-
import { jsx as p, jsxs as O, Fragment as
|
|
17
|
-
import { SidebarNavigation as
|
|
16
|
+
import { jsx as p, jsxs as O, Fragment as Ie } from "react/jsx-runtime";
|
|
17
|
+
import { SidebarNavigation as Li, Title as rt, SkeletonLoader as Ve, Link as zn, Modal as te, Button as pe, Spinner as Wo, Toast as wo, ValidationIcon as wv, Paper as Ir, Stepper as Av, Tooltip as Sv, Card as We, ProgressBar as Cv, Alert as en, Badge as Zt, Select as Ao, Table as de, Pagination as Tc, TextInput as Qo, DropdownMenu as _s, Label as El, Root as kv, TagField as cm, Checkbox as xu, TextField as Vr, Toggle as Ev, TextareaField as Ov, Autocomplete as Ld } from "@yoast/ui-library";
|
|
18
18
|
import * as R from "react";
|
|
19
19
|
import na, { createContext as Ic, useMemo as nt, useCallback as Qe, useState as ie, useContext as Go, Suspense as xn, useEffect as Ee, useRef as hn, forwardRef as Lc, lazy as _r } from "react";
|
|
20
20
|
import dm from "react-dom";
|
|
@@ -207,7 +207,7 @@ function Tv(t = {}) {
|
|
|
207
207
|
return new URL(d(f), "http://localhost");
|
|
208
208
|
},
|
|
209
209
|
encodeLocation(f) {
|
|
210
|
-
let y = typeof f == "string" ?
|
|
210
|
+
let y = typeof f == "string" ? vi(f) : f;
|
|
211
211
|
return {
|
|
212
212
|
pathname: y.pathname || "",
|
|
213
213
|
search: y.search || "",
|
|
@@ -257,7 +257,7 @@ function Lv(t, e, n = null, r) {
|
|
|
257
257
|
pathname: typeof t == "string" ? t : t.pathname,
|
|
258
258
|
search: "",
|
|
259
259
|
hash: "",
|
|
260
|
-
...typeof e == "string" ?
|
|
260
|
+
...typeof e == "string" ? vi(e) : e,
|
|
261
261
|
state: n,
|
|
262
262
|
// TODO: This could be cleaned up. push/replace should probably just take
|
|
263
263
|
// full Locations now and avoid the need to run through this flow at all
|
|
@@ -273,7 +273,7 @@ function So({
|
|
|
273
273
|
}) {
|
|
274
274
|
return e && e !== "?" && (t += e.charAt(0) === "?" ? e : "?" + e), n && n !== "#" && (t += n.charAt(0) === "#" ? n : "#" + n), t;
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function vi(t) {
|
|
277
277
|
let e = {};
|
|
278
278
|
if (t) {
|
|
279
279
|
let n = t.indexOf("#");
|
|
@@ -287,7 +287,7 @@ function fm(t, e, n = "/") {
|
|
|
287
287
|
return Mv(t, e, n, !1);
|
|
288
288
|
}
|
|
289
289
|
function Mv(t, e, n, r) {
|
|
290
|
-
let i = typeof e == "string" ?
|
|
290
|
+
let i = typeof e == "string" ? vi(e) : e, a = lr(i.pathname || "/", n);
|
|
291
291
|
if (a == null)
|
|
292
292
|
return null;
|
|
293
293
|
let s = hm(t);
|
|
@@ -467,7 +467,7 @@ function Wv(t, e = "/") {
|
|
|
467
467
|
pathname: n,
|
|
468
468
|
search: r = "",
|
|
469
469
|
hash: i = ""
|
|
470
|
-
} = typeof t == "string" ?
|
|
470
|
+
} = typeof t == "string" ? vi(t) : t;
|
|
471
471
|
return {
|
|
472
472
|
pathname: n ? n.startsWith("/") ? n : Qv(n, e) : e,
|
|
473
473
|
search: Vv(r),
|
|
@@ -498,7 +498,7 @@ function Mc(t) {
|
|
|
498
498
|
}
|
|
499
499
|
function Nc(t, e, n, r = !1) {
|
|
500
500
|
let i;
|
|
501
|
-
typeof t == "string" ? i =
|
|
501
|
+
typeof t == "string" ? i = vi(t) : (i = { ...t }, Ge(
|
|
502
502
|
!i.pathname || !i.pathname.includes("?"),
|
|
503
503
|
Ol("?", "pathname", "search", i)
|
|
504
504
|
), Ge(
|
|
@@ -574,7 +574,7 @@ var Rc = R.createContext(null);
|
|
|
574
574
|
Rc.displayName = "RouteError";
|
|
575
575
|
function e2(t, { relative: e } = {}) {
|
|
576
576
|
Ge(
|
|
577
|
-
|
|
577
|
+
bi(),
|
|
578
578
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
579
579
|
// router loaded. We can help them understand how to avoid that.
|
|
580
580
|
"useHref() may be used only in the context of a <Router> component."
|
|
@@ -582,12 +582,12 @@ function e2(t, { relative: e } = {}) {
|
|
|
582
582
|
let { basename: n, navigator: r } = R.useContext(Sn), { hash: i, pathname: a, search: s } = Ss(t, { relative: e }), o = a;
|
|
583
583
|
return n !== "/" && (o = a === "/" ? n : sr([n, a])), r.createHref({ pathname: o, search: s, hash: i });
|
|
584
584
|
}
|
|
585
|
-
function
|
|
585
|
+
function bi() {
|
|
586
586
|
return R.useContext(As) != null;
|
|
587
587
|
}
|
|
588
588
|
function Et() {
|
|
589
589
|
return Ge(
|
|
590
|
-
|
|
590
|
+
bi(),
|
|
591
591
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
592
592
|
// router loaded. We can help them understand how to avoid that.
|
|
593
593
|
"useLocation() may be used only in the context of a <Router> component."
|
|
@@ -595,7 +595,7 @@ function Et() {
|
|
|
595
595
|
}
|
|
596
596
|
function Ds(t) {
|
|
597
597
|
Ge(
|
|
598
|
-
|
|
598
|
+
bi(),
|
|
599
599
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
600
600
|
// router loaded. We can help them understand how to avoid that.
|
|
601
601
|
"useMatch() may be used only in the context of a <Router> component."
|
|
@@ -616,7 +616,7 @@ function vt() {
|
|
|
616
616
|
}
|
|
617
617
|
function t2() {
|
|
618
618
|
Ge(
|
|
619
|
-
|
|
619
|
+
bi(),
|
|
620
620
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
621
621
|
// router loaded. We can help them understand how to avoid that.
|
|
622
622
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
@@ -679,7 +679,7 @@ function i2(t, e) {
|
|
|
679
679
|
function xm(t, e, n, r) {
|
|
680
680
|
var g;
|
|
681
681
|
Ge(
|
|
682
|
-
|
|
682
|
+
bi(),
|
|
683
683
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
684
684
|
// router loaded. We can help them understand how to avoid that.
|
|
685
685
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
@@ -697,7 +697,7 @@ Please change the parent <Route path="${A}"> to <Route path="${A === "/" ? "*" :
|
|
|
697
697
|
}
|
|
698
698
|
let d = Et(), h;
|
|
699
699
|
if (e) {
|
|
700
|
-
let A = typeof e == "string" ?
|
|
700
|
+
let A = typeof e == "string" ? vi(e) : e;
|
|
701
701
|
Ge(
|
|
702
702
|
u === "/" || ((g = A.pathname) == null ? void 0 : g.startsWith(u)),
|
|
703
703
|
`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${A.pathname}" was given in the \`location\` prop.`
|
|
@@ -986,7 +986,7 @@ function Mi({
|
|
|
986
986
|
relative: r
|
|
987
987
|
}) {
|
|
988
988
|
Ge(
|
|
989
|
-
|
|
989
|
+
bi(),
|
|
990
990
|
// TODO: This error is probably because they somehow have 2 versions of
|
|
991
991
|
// the router loaded. We can help them understand how to avoid that.
|
|
992
992
|
"<Navigate> may be used only in the context of a <Router> component."
|
|
@@ -1024,7 +1024,7 @@ function v2({
|
|
|
1024
1024
|
static: a = !1
|
|
1025
1025
|
}) {
|
|
1026
1026
|
Ge(
|
|
1027
|
-
!
|
|
1027
|
+
!bi(),
|
|
1028
1028
|
"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."
|
|
1029
1029
|
);
|
|
1030
1030
|
let s = t.replace(/^\/*/, "/"), o = R.useMemo(
|
|
@@ -1036,7 +1036,7 @@ function v2({
|
|
|
1036
1036
|
}),
|
|
1037
1037
|
[s, i, a]
|
|
1038
1038
|
);
|
|
1039
|
-
typeof n == "string" && (n =
|
|
1039
|
+
typeof n == "string" && (n = vi(n));
|
|
1040
1040
|
let {
|
|
1041
1041
|
pathname: l = "/",
|
|
1042
1042
|
search: u = "",
|
|
@@ -1757,7 +1757,7 @@ var ia = class {
|
|
|
1757
1757
|
clearTimeout: (t) => clearTimeout(t),
|
|
1758
1758
|
setInterval: (t, e) => setInterval(t, e),
|
|
1759
1759
|
clearInterval: (t) => clearInterval(t)
|
|
1760
|
-
}, Nn,
|
|
1760
|
+
}, Nn, $r, $y, $2 = ($y = class {
|
|
1761
1761
|
constructor() {
|
|
1762
1762
|
// We cannot have TimeoutManager<T> as we must instantiate it with a concrete
|
|
1763
1763
|
// type at app boot; and if we leave that type, then any new timer provider
|
|
@@ -1766,31 +1766,31 @@ var ia = class {
|
|
|
1766
1766
|
// We settle for type safety for the TimeoutProvider type, and accept that
|
|
1767
1767
|
// this class is unsafe internally to allow for extension.
|
|
1768
1768
|
se(this, Nn, Z2);
|
|
1769
|
-
se(this,
|
|
1769
|
+
se(this, $r, !1);
|
|
1770
1770
|
}
|
|
1771
1771
|
setTimeoutProvider(t) {
|
|
1772
|
-
process.env.NODE_ENV !== "production" && _(this,
|
|
1772
|
+
process.env.NODE_ENV !== "production" && _(this, $r) && t !== _(this, Nn) && console.error(
|
|
1773
1773
|
"[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",
|
|
1774
1774
|
{ previous: _(this, Nn), provider: t }
|
|
1775
|
-
), $(this, Nn, t), process.env.NODE_ENV !== "production" && $(this,
|
|
1775
|
+
), $(this, Nn, t), process.env.NODE_ENV !== "production" && $(this, $r, !1);
|
|
1776
1776
|
}
|
|
1777
1777
|
setTimeout(t, e) {
|
|
1778
|
-
return process.env.NODE_ENV !== "production" && $(this,
|
|
1778
|
+
return process.env.NODE_ENV !== "production" && $(this, $r, !0), _(this, Nn).setTimeout(t, e);
|
|
1779
1779
|
}
|
|
1780
1780
|
clearTimeout(t) {
|
|
1781
1781
|
_(this, Nn).clearTimeout(t);
|
|
1782
1782
|
}
|
|
1783
1783
|
setInterval(t, e) {
|
|
1784
|
-
return process.env.NODE_ENV !== "production" && $(this,
|
|
1784
|
+
return process.env.NODE_ENV !== "production" && $(this, $r, !0), _(this, Nn).setInterval(t, e);
|
|
1785
1785
|
}
|
|
1786
1786
|
clearInterval(t) {
|
|
1787
1787
|
_(this, Nn).clearInterval(t);
|
|
1788
1788
|
}
|
|
1789
|
-
}, Nn = new WeakMap(),
|
|
1789
|
+
}, Nn = new WeakMap(), $r = new WeakMap(), $y), Kr = new $2();
|
|
1790
1790
|
function eb(t) {
|
|
1791
1791
|
setTimeout(t, 0);
|
|
1792
1792
|
}
|
|
1793
|
-
var
|
|
1793
|
+
var fi = typeof window == "undefined" || "Deno" in globalThis;
|
|
1794
1794
|
function Ct() {
|
|
1795
1795
|
}
|
|
1796
1796
|
function tb(t, e) {
|
|
@@ -1837,7 +1837,7 @@ function Bd(t, e) {
|
|
|
1837
1837
|
if (!e.options.mutationKey)
|
|
1838
1838
|
return !1;
|
|
1839
1839
|
if (n) {
|
|
1840
|
-
if (
|
|
1840
|
+
if (hi(e.options.mutationKey) !== hi(a))
|
|
1841
1841
|
return !1;
|
|
1842
1842
|
} else if (!Va(e.options.mutationKey, a))
|
|
1843
1843
|
return !1;
|
|
@@ -1845,9 +1845,9 @@ function Bd(t, e) {
|
|
|
1845
1845
|
return !(r && e.state.status !== r || i && !i(e));
|
|
1846
1846
|
}
|
|
1847
1847
|
function Fc(t, e) {
|
|
1848
|
-
return ((e == null ? void 0 : e.queryKeyHashFn) ||
|
|
1848
|
+
return ((e == null ? void 0 : e.queryKeyHashFn) || hi)(t);
|
|
1849
1849
|
}
|
|
1850
|
-
function
|
|
1850
|
+
function hi(t) {
|
|
1851
1851
|
return JSON.stringify(
|
|
1852
1852
|
t,
|
|
1853
1853
|
(e, n) => Cu(n) ? Object.keys(n).sort().reduce((r, i) => (r[i] = n[i], r), {}) : n
|
|
@@ -1904,7 +1904,7 @@ function Fd(t) {
|
|
|
1904
1904
|
}
|
|
1905
1905
|
function rb(t) {
|
|
1906
1906
|
return new Promise((e) => {
|
|
1907
|
-
|
|
1907
|
+
Kr.setTimeout(e, t);
|
|
1908
1908
|
});
|
|
1909
1909
|
}
|
|
1910
1910
|
function ku(t, e, n) {
|
|
@@ -1940,14 +1940,14 @@ function Pm(t, e) {
|
|
|
1940
1940
|
function Tm(t, e) {
|
|
1941
1941
|
return typeof t == "function" ? t(...e) : !!t;
|
|
1942
1942
|
}
|
|
1943
|
-
var
|
|
1943
|
+
var ei, vr, ji, em, sb = (em = class extends ia {
|
|
1944
1944
|
constructor() {
|
|
1945
1945
|
super();
|
|
1946
|
-
se(this,
|
|
1946
|
+
se(this, ei);
|
|
1947
1947
|
se(this, vr);
|
|
1948
1948
|
se(this, ji);
|
|
1949
1949
|
$(this, ji, (e) => {
|
|
1950
|
-
if (!
|
|
1950
|
+
if (!fi && window.addEventListener) {
|
|
1951
1951
|
const n = () => e();
|
|
1952
1952
|
return window.addEventListener("visibilitychange", n, !1), () => {
|
|
1953
1953
|
window.removeEventListener("visibilitychange", n);
|
|
@@ -1969,7 +1969,7 @@ var $r, vr, ji, em, sb = (em = class extends ia {
|
|
|
1969
1969
|
}));
|
|
1970
1970
|
}
|
|
1971
1971
|
setFocused(e) {
|
|
1972
|
-
_(this,
|
|
1972
|
+
_(this, ei) !== e && ($(this, ei, e), this.onFocus());
|
|
1973
1973
|
}
|
|
1974
1974
|
onFocus() {
|
|
1975
1975
|
const e = this.isFocused();
|
|
@@ -1979,9 +1979,9 @@ var $r, vr, ji, em, sb = (em = class extends ia {
|
|
|
1979
1979
|
}
|
|
1980
1980
|
isFocused() {
|
|
1981
1981
|
var e;
|
|
1982
|
-
return typeof _(this,
|
|
1982
|
+
return typeof _(this, ei) == "boolean" ? _(this, ei) : ((e = globalThis.document) == null ? void 0 : e.visibilityState) !== "hidden";
|
|
1983
1983
|
}
|
|
1984
|
-
},
|
|
1984
|
+
}, ei = new WeakMap(), vr = new WeakMap(), ji = new WeakMap(), em), zc = new sb();
|
|
1985
1985
|
function Eu() {
|
|
1986
1986
|
let t, e;
|
|
1987
1987
|
const n = new Promise((i, a) => {
|
|
@@ -2071,7 +2071,7 @@ var st = lb(), Fi, br, zi, tm, ub = (tm = class extends ia {
|
|
|
2071
2071
|
se(this, br);
|
|
2072
2072
|
se(this, zi);
|
|
2073
2073
|
$(this, zi, (e) => {
|
|
2074
|
-
if (!
|
|
2074
|
+
if (!fi && window.addEventListener) {
|
|
2075
2075
|
const n = () => e(!0), r = () => e(!1);
|
|
2076
2076
|
return window.addEventListener("online", n, !1), window.addEventListener("offline", r, !1), () => {
|
|
2077
2077
|
window.removeEventListener("online", n), window.removeEventListener("offline", r);
|
|
@@ -2148,7 +2148,7 @@ function Lm(t) {
|
|
|
2148
2148
|
var b, w, x;
|
|
2149
2149
|
if (a())
|
|
2150
2150
|
return;
|
|
2151
|
-
const A = (b = t.retry) != null ? b :
|
|
2151
|
+
const A = (b = t.retry) != null ? b : fi ? 0 : 3, k = (w = t.retryDelay) != null ? w : cb, E = typeof k == "function" ? k(n, g) : k, C = A === !0 || typeof A == "number" && n < A || typeof A == "function" && A(n, g);
|
|
2152
2152
|
if (e || !C) {
|
|
2153
2153
|
h(g);
|
|
2154
2154
|
return;
|
|
@@ -2169,40 +2169,40 @@ function Lm(t) {
|
|
|
2169
2169
|
start: () => (c() ? y() : f().then(y), i)
|
|
2170
2170
|
};
|
|
2171
2171
|
}
|
|
2172
|
-
var
|
|
2172
|
+
var ti, nm, Mm = (nm = class {
|
|
2173
2173
|
constructor() {
|
|
2174
|
-
se(this,
|
|
2174
|
+
se(this, ti);
|
|
2175
2175
|
}
|
|
2176
2176
|
destroy() {
|
|
2177
2177
|
this.clearGcTimeout();
|
|
2178
2178
|
}
|
|
2179
2179
|
scheduleGc() {
|
|
2180
|
-
this.clearGcTimeout(), Au(this.gcTime) && $(this,
|
|
2180
|
+
this.clearGcTimeout(), Au(this.gcTime) && $(this, ti, Kr.setTimeout(() => {
|
|
2181
2181
|
this.optionalRemove();
|
|
2182
2182
|
}, this.gcTime));
|
|
2183
2183
|
}
|
|
2184
2184
|
updateGcTime(t) {
|
|
2185
2185
|
this.gcTime = Math.max(
|
|
2186
2186
|
this.gcTime || 0,
|
|
2187
|
-
t != null ? t :
|
|
2187
|
+
t != null ? t : fi ? 1 / 0 : 5 * 60 * 1e3
|
|
2188
2188
|
);
|
|
2189
2189
|
}
|
|
2190
2190
|
clearGcTimeout() {
|
|
2191
|
-
_(this,
|
|
2191
|
+
_(this, ti) && (Kr.clearTimeout(_(this, ti)), $(this, ti, void 0));
|
|
2192
2192
|
}
|
|
2193
|
-
},
|
|
2193
|
+
}, ti = new WeakMap(), nm), ni, Ui, ln, ri, lt, gs, ii, wn, Kn, rm, db = (rm = class extends Mm {
|
|
2194
2194
|
constructor(e) {
|
|
2195
2195
|
var n;
|
|
2196
2196
|
super();
|
|
2197
2197
|
se(this, wn);
|
|
2198
|
-
se(this,
|
|
2198
|
+
se(this, ni);
|
|
2199
2199
|
se(this, Ui);
|
|
2200
2200
|
se(this, ln);
|
|
2201
|
-
se(this,
|
|
2201
|
+
se(this, ri);
|
|
2202
2202
|
se(this, lt);
|
|
2203
2203
|
se(this, gs);
|
|
2204
|
-
se(this,
|
|
2205
|
-
$(this,
|
|
2204
|
+
se(this, ii);
|
|
2205
|
+
$(this, ii, !1), $(this, gs, e.defaultOptions), this.setOptions(e.options), this.observers = [], $(this, ri, e.client), $(this, ln, _(this, ri).getQueryCache()), this.queryKey = e.queryKey, this.queryHash = e.queryHash, $(this, ni, zd(this.options)), this.state = (n = e.state) != null ? n : _(this, ni), this.scheduleGc();
|
|
2206
2206
|
}
|
|
2207
2207
|
get meta() {
|
|
2208
2208
|
return this.options.meta;
|
|
@@ -2217,7 +2217,7 @@ var ei, nm, Mm = (nm = class {
|
|
|
2217
2217
|
n.data !== void 0 && (this.setData(n.data, {
|
|
2218
2218
|
updatedAt: n.dataUpdatedAt,
|
|
2219
2219
|
manual: !0
|
|
2220
|
-
}), $(this,
|
|
2220
|
+
}), $(this, ni, n));
|
|
2221
2221
|
}
|
|
2222
2222
|
}
|
|
2223
2223
|
optionalRemove() {
|
|
@@ -2244,7 +2244,7 @@ var ei, nm, Mm = (nm = class {
|
|
|
2244
2244
|
super.destroy(), this.cancel({ silent: !0 });
|
|
2245
2245
|
}
|
|
2246
2246
|
reset() {
|
|
2247
|
-
this.destroy(), this.setState(_(this,
|
|
2247
|
+
this.destroy(), this.setState(_(this, ni));
|
|
2248
2248
|
}
|
|
2249
2249
|
isActive() {
|
|
2250
2250
|
return this.observers.some(
|
|
@@ -2281,7 +2281,7 @@ var ei, nm, Mm = (nm = class {
|
|
|
2281
2281
|
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), _(this, ln).notify({ type: "observerAdded", query: this, observer: e }));
|
|
2282
2282
|
}
|
|
2283
2283
|
removeObserver(e) {
|
|
2284
|
-
this.observers.includes(e) && (this.observers = this.observers.filter((n) => n !== e), this.observers.length || (_(this, lt) && (_(this,
|
|
2284
|
+
this.observers.includes(e) && (this.observers = this.observers.filter((n) => n !== e), this.observers.length || (_(this, lt) && (_(this, ii) ? _(this, lt).cancel({ revert: !0 }) : _(this, lt).cancelRetry()), this.scheduleGc()), _(this, ln).notify({ type: "observerRemoved", query: this, observer: e }));
|
|
2285
2285
|
}
|
|
2286
2286
|
getObserversCount() {
|
|
2287
2287
|
return this.observers.length;
|
|
@@ -2310,18 +2310,18 @@ var ei, nm, Mm = (nm = class {
|
|
|
2310
2310
|
const r = new AbortController(), i = (E) => {
|
|
2311
2311
|
Object.defineProperty(E, "signal", {
|
|
2312
2312
|
enumerable: !0,
|
|
2313
|
-
get: () => ($(this,
|
|
2313
|
+
get: () => ($(this, ii, !0), r.signal)
|
|
2314
2314
|
});
|
|
2315
2315
|
}, a = () => {
|
|
2316
2316
|
const E = Pm(this.options, n), b = (() => {
|
|
2317
2317
|
const w = {
|
|
2318
|
-
client: _(this,
|
|
2318
|
+
client: _(this, ri),
|
|
2319
2319
|
queryKey: this.queryKey,
|
|
2320
2320
|
meta: this.meta
|
|
2321
2321
|
};
|
|
2322
2322
|
return i(w), w;
|
|
2323
2323
|
})();
|
|
2324
|
-
return $(this,
|
|
2324
|
+
return $(this, ii, !1), this.options.persister ? this.options.persister(
|
|
2325
2325
|
E,
|
|
2326
2326
|
b,
|
|
2327
2327
|
this
|
|
@@ -2331,7 +2331,7 @@ var ei, nm, Mm = (nm = class {
|
|
|
2331
2331
|
fetchOptions: n,
|
|
2332
2332
|
options: this.options,
|
|
2333
2333
|
queryKey: this.queryKey,
|
|
2334
|
-
client: _(this,
|
|
2334
|
+
client: _(this, ri),
|
|
2335
2335
|
state: this.state,
|
|
2336
2336
|
fetchFn: a
|
|
2337
2337
|
};
|
|
@@ -2399,7 +2399,7 @@ var ei, nm, Mm = (nm = class {
|
|
|
2399
2399
|
this.scheduleGc();
|
|
2400
2400
|
}
|
|
2401
2401
|
}
|
|
2402
|
-
},
|
|
2402
|
+
}, ni = new WeakMap(), Ui = new WeakMap(), ln = new WeakMap(), ri = new WeakMap(), lt = new WeakMap(), gs = new WeakMap(), ii = new WeakMap(), wn = new WeakSet(), Kn = function(e) {
|
|
2403
2403
|
const n = (r) => {
|
|
2404
2404
|
var i, a;
|
|
2405
2405
|
switch (e.type) {
|
|
@@ -2499,7 +2499,7 @@ function zd(t) {
|
|
|
2499
2499
|
fetchStatus: "idle"
|
|
2500
2500
|
};
|
|
2501
2501
|
}
|
|
2502
|
-
var Lt, Pe, vs, At,
|
|
2502
|
+
var Lt, Pe, vs, At, ai, Hi, er, xr, bs, qi, Wi, si, oi, wr, Qi, De, Ma, Pu, Tu, Iu, Lu, Mu, Nu, Ru, Rm, im, fb = (im = class extends ia {
|
|
2503
2503
|
constructor(e, n) {
|
|
2504
2504
|
super();
|
|
2505
2505
|
se(this, De);
|
|
@@ -2507,7 +2507,7 @@ var Lt, Pe, vs, At, ii, Hi, er, xr, bs, qi, Wi, ai, si, wr, Qi, De, Ma, Pu, Tu,
|
|
|
2507
2507
|
se(this, Pe);
|
|
2508
2508
|
se(this, vs);
|
|
2509
2509
|
se(this, At);
|
|
2510
|
-
se(this,
|
|
2510
|
+
se(this, ai);
|
|
2511
2511
|
se(this, Hi);
|
|
2512
2512
|
se(this, er);
|
|
2513
2513
|
se(this, xr);
|
|
@@ -2516,8 +2516,8 @@ var Lt, Pe, vs, At, ii, Hi, er, xr, bs, qi, Wi, ai, si, wr, Qi, De, Ma, Pu, Tu,
|
|
|
2516
2516
|
// This property keeps track of the last query with defined data.
|
|
2517
2517
|
// It will be used to pass the previous data and query to the placeholder function between renders.
|
|
2518
2518
|
se(this, Wi);
|
|
2519
|
-
se(this, ai);
|
|
2520
2519
|
se(this, si);
|
|
2520
|
+
se(this, oi);
|
|
2521
2521
|
se(this, wr);
|
|
2522
2522
|
se(this, Qi, /* @__PURE__ */ new Set());
|
|
2523
2523
|
this.options = n, $(this, Lt, e), $(this, xr, null), $(this, er, Eu()), this.bindMethods(), this.setOptions(n);
|
|
@@ -2571,7 +2571,7 @@ var Lt, Pe, vs, At, ii, Hi, er, xr, bs, qi, Wi, ai, si, wr, Qi, De, Ma, Pu, Tu,
|
|
|
2571
2571
|
}
|
|
2572
2572
|
getOptimisticResult(e) {
|
|
2573
2573
|
const n = _(this, Lt).getQueryCache().build(_(this, Lt), e), r = this.createResult(n, e);
|
|
2574
|
-
return pb(this, r) && ($(this, At, r), $(this, Hi, this.options), $(this,
|
|
2574
|
+
return pb(this, r) && ($(this, At, r), $(this, Hi, this.options), $(this, ai, _(this, Pe).state)), r;
|
|
2575
2575
|
}
|
|
2576
2576
|
getCurrentResult() {
|
|
2577
2577
|
return _(this, At);
|
|
@@ -2609,7 +2609,7 @@ var Lt, Pe, vs, At, ii, Hi, er, xr, bs, qi, Wi, ai, si, wr, Qi, De, Ma, Pu, Tu,
|
|
|
2609
2609
|
}
|
|
2610
2610
|
createResult(e, n) {
|
|
2611
2611
|
var N;
|
|
2612
|
-
const r = _(this, Pe), i = this.options, a = _(this, At), s = _(this,
|
|
2612
|
+
const r = _(this, Pe), i = this.options, a = _(this, At), s = _(this, ai), o = _(this, Hi), u = e !== r ? e.state : _(this, vs), { state: c } = e;
|
|
2613
2613
|
let d = { ...c }, h = !1, f;
|
|
2614
2614
|
if (n._optimisticResults) {
|
|
2615
2615
|
const D = this.hasListeners(), I = !D && Ud(e, n), L = D && Hd(e, r, n, i);
|
|
@@ -2693,7 +2693,7 @@ var Lt, Pe, vs, At, ii, Hi, er, xr, bs, qi, Wi, ai, si, wr, Qi, De, Ma, Pu, Tu,
|
|
|
2693
2693
|
}
|
|
2694
2694
|
updateResult() {
|
|
2695
2695
|
const e = _(this, At), n = this.createResult(_(this, Pe), this.options);
|
|
2696
|
-
if ($(this,
|
|
2696
|
+
if ($(this, ai, _(this, Pe).state), $(this, Hi, this.options), _(this, ai).data !== void 0 && $(this, Wi, _(this, Pe)), Co(n, e))
|
|
2697
2697
|
return;
|
|
2698
2698
|
$(this, At, n);
|
|
2699
2699
|
const r = () => {
|
|
@@ -2715,7 +2715,7 @@ var Lt, Pe, vs, At, ii, Hi, er, xr, bs, qi, Wi, ai, si, wr, Qi, De, Ma, Pu, Tu,
|
|
|
2715
2715
|
onQueryUpdate() {
|
|
2716
2716
|
this.updateResult(), this.hasListeners() && ke(this, De, Lu).call(this);
|
|
2717
2717
|
}
|
|
2718
|
-
}, Lt = new WeakMap(), Pe = new WeakMap(), vs = new WeakMap(), At = new WeakMap(),
|
|
2718
|
+
}, Lt = new WeakMap(), Pe = new WeakMap(), vs = new WeakMap(), At = new WeakMap(), ai = new WeakMap(), Hi = new WeakMap(), er = new WeakMap(), xr = new WeakMap(), bs = new WeakMap(), qi = new WeakMap(), Wi = new WeakMap(), si = new WeakMap(), oi = new WeakMap(), wr = new WeakMap(), Qi = new WeakMap(), De = new WeakSet(), Ma = function(e) {
|
|
2719
2719
|
ke(this, De, Ru).call(this);
|
|
2720
2720
|
let n = _(this, Pe).fetch(
|
|
2721
2721
|
this.options,
|
|
@@ -2728,25 +2728,25 @@ var Lt, Pe, vs, At, ii, Hi, er, xr, bs, qi, Wi, ai, si, wr, Qi, De, Ma, Pu, Tu,
|
|
|
2728
2728
|
this.options.staleTime,
|
|
2729
2729
|
_(this, Pe)
|
|
2730
2730
|
);
|
|
2731
|
-
if (
|
|
2731
|
+
if (fi || _(this, At).isStale || !Au(e))
|
|
2732
2732
|
return;
|
|
2733
2733
|
const r = Om(_(this, At).dataUpdatedAt, e) + 1;
|
|
2734
|
-
$(this,
|
|
2734
|
+
$(this, si, Kr.setTimeout(() => {
|
|
2735
2735
|
_(this, At).isStale || this.updateResult();
|
|
2736
2736
|
}, r));
|
|
2737
2737
|
}, Tu = function() {
|
|
2738
2738
|
var e;
|
|
2739
2739
|
return (e = typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(_(this, Pe)) : this.options.refetchInterval) != null ? e : !1;
|
|
2740
2740
|
}, Iu = function(e) {
|
|
2741
|
-
ke(this, De, Nu).call(this), $(this, wr, e), !(
|
|
2741
|
+
ke(this, De, Nu).call(this), $(this, wr, e), !(fi || un(this.options.enabled, _(this, Pe)) === !1 || !Au(_(this, wr)) || _(this, wr) === 0) && $(this, oi, Kr.setInterval(() => {
|
|
2742
2742
|
(this.options.refetchIntervalInBackground || zc.isFocused()) && ke(this, De, Ma).call(this);
|
|
2743
2743
|
}, _(this, wr)));
|
|
2744
2744
|
}, Lu = function() {
|
|
2745
2745
|
ke(this, De, Pu).call(this), ke(this, De, Iu).call(this, ke(this, De, Tu).call(this));
|
|
2746
2746
|
}, Mu = function() {
|
|
2747
|
-
_(this,
|
|
2747
|
+
_(this, si) && (Kr.clearTimeout(_(this, si)), $(this, si, void 0));
|
|
2748
2748
|
}, Nu = function() {
|
|
2749
|
-
_(this,
|
|
2749
|
+
_(this, oi) && (Kr.clearInterval(_(this, oi)), $(this, oi, void 0));
|
|
2750
2750
|
}, Ru = function() {
|
|
2751
2751
|
const e = _(this, Lt).getQueryCache().build(_(this, Lt), this.options);
|
|
2752
2752
|
if (e === _(this, Pe))
|
|
@@ -2868,14 +2868,14 @@ function yb(t, { pages: e, pageParams: n }) {
|
|
|
2868
2868
|
var r;
|
|
2869
2869
|
return e.length > 0 ? (r = t.getPreviousPageParam) == null ? void 0 : r.call(t, e[0], e, n[0], n) : void 0;
|
|
2870
2870
|
}
|
|
2871
|
-
var xs, Rn, St,
|
|
2871
|
+
var xs, Rn, St, li, _n, gr, am, mb = (am = class extends Mm {
|
|
2872
2872
|
constructor(e) {
|
|
2873
2873
|
super();
|
|
2874
2874
|
se(this, _n);
|
|
2875
2875
|
se(this, xs);
|
|
2876
2876
|
se(this, Rn);
|
|
2877
2877
|
se(this, St);
|
|
2878
|
-
se(this,
|
|
2878
|
+
se(this, li);
|
|
2879
2879
|
$(this, xs, e.client), this.mutationId = e.mutationId, $(this, St, e.mutationCache), $(this, Rn, []), this.state = e.state || _m(), this.setOptions(e.options), this.scheduleGc();
|
|
2880
2880
|
}
|
|
2881
2881
|
setOptions(e) {
|
|
@@ -2903,7 +2903,7 @@ var xs, Rn, St, oi, _n, gr, am, mb = (am = class extends Mm {
|
|
|
2903
2903
|
}
|
|
2904
2904
|
continue() {
|
|
2905
2905
|
var e, n;
|
|
2906
|
-
return (n = (e = _(this,
|
|
2906
|
+
return (n = (e = _(this, li)) == null ? void 0 : e.continue()) != null ? n : (
|
|
2907
2907
|
// continuing a mutation assumes that variables are set, mutation must have been dehydrated before
|
|
2908
2908
|
this.execute(this.state.variables)
|
|
2909
2909
|
);
|
|
@@ -2917,7 +2917,7 @@ var xs, Rn, St, oi, _n, gr, am, mb = (am = class extends Mm {
|
|
|
2917
2917
|
meta: this.options.meta,
|
|
2918
2918
|
mutationKey: this.options.mutationKey
|
|
2919
2919
|
};
|
|
2920
|
-
$(this,
|
|
2920
|
+
$(this, li, Lm({
|
|
2921
2921
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, r) : Promise.reject(new Error("No mutationFn found")),
|
|
2922
2922
|
onFail: (I, L) => {
|
|
2923
2923
|
ke(this, _n, gr).call(this, { type: "failed", failureCount: I, error: L });
|
|
@@ -2931,7 +2931,7 @@ var xs, Rn, St, oi, _n, gr, am, mb = (am = class extends Mm {
|
|
|
2931
2931
|
networkMode: this.options.networkMode,
|
|
2932
2932
|
canRun: () => _(this, St).canRun(this)
|
|
2933
2933
|
}));
|
|
2934
|
-
const i = this.state.status === "pending", a = !_(this,
|
|
2934
|
+
const i = this.state.status === "pending", a = !_(this, li).canStart();
|
|
2935
2935
|
try {
|
|
2936
2936
|
if (i)
|
|
2937
2937
|
n();
|
|
@@ -2954,7 +2954,7 @@ var xs, Rn, St, oi, _n, gr, am, mb = (am = class extends Mm {
|
|
|
2954
2954
|
isPaused: a
|
|
2955
2955
|
});
|
|
2956
2956
|
}
|
|
2957
|
-
const I = await _(this,
|
|
2957
|
+
const I = await _(this, li).start();
|
|
2958
2958
|
return await ((h = (d = _(this, St).config).onSuccess) == null ? void 0 : h.call(
|
|
2959
2959
|
d,
|
|
2960
2960
|
I,
|
|
@@ -3022,7 +3022,7 @@ var xs, Rn, St, oi, _n, gr, am, mb = (am = class extends Mm {
|
|
|
3022
3022
|
_(this, St).runNext(this);
|
|
3023
3023
|
}
|
|
3024
3024
|
}
|
|
3025
|
-
}, xs = new WeakMap(), Rn = new WeakMap(), St = new WeakMap(),
|
|
3025
|
+
}, xs = new WeakMap(), Rn = new WeakMap(), St = new WeakMap(), li = new WeakMap(), _n = new WeakSet(), gr = function(e) {
|
|
3026
3026
|
const n = (r) => {
|
|
3027
3027
|
switch (e.type) {
|
|
3028
3028
|
case "failed":
|
|
@@ -3218,7 +3218,7 @@ var nr, Ar, Mt, rr, or, uo, Du, om, vb = (om = class extends ia {
|
|
|
3218
3218
|
type: "observerOptionsUpdated",
|
|
3219
3219
|
mutation: _(this, Mt),
|
|
3220
3220
|
observer: this
|
|
3221
|
-
}), r != null && r.mutationKey && this.options.mutationKey &&
|
|
3221
|
+
}), r != null && r.mutationKey && this.options.mutationKey && hi(r.mutationKey) !== hi(this.options.mutationKey) ? this.reset() : ((i = _(this, Mt)) == null ? void 0 : i.state.status) === "pending" && _(this, Mt).setOptions(this.options);
|
|
3222
3222
|
}
|
|
3223
3223
|
onUnsubscribe() {
|
|
3224
3224
|
var n;
|
|
@@ -3526,7 +3526,7 @@ var nr, Ar, Mt, rr, or, uo, Du, om, vb = (om = class extends ia {
|
|
|
3526
3526
|
$(this, Cr, t);
|
|
3527
3527
|
}
|
|
3528
3528
|
setQueryDefaults(t, e) {
|
|
3529
|
-
_(this, Gi).set(
|
|
3529
|
+
_(this, Gi).set(hi(t), {
|
|
3530
3530
|
queryKey: t,
|
|
3531
3531
|
defaultOptions: e
|
|
3532
3532
|
});
|
|
@@ -3538,7 +3538,7 @@ var nr, Ar, Mt, rr, or, uo, Du, om, vb = (om = class extends ia {
|
|
|
3538
3538
|
}), n;
|
|
3539
3539
|
}
|
|
3540
3540
|
setMutationDefaults(t, e) {
|
|
3541
|
-
_(this, Yi).set(
|
|
3541
|
+
_(this, Yi).set(hi(t), {
|
|
3542
3542
|
mutationKey: t,
|
|
3543
3543
|
defaultOptions: e
|
|
3544
3544
|
});
|
|
@@ -3668,7 +3668,7 @@ function Mb(t, e, n) {
|
|
|
3668
3668
|
f,
|
|
3669
3669
|
s,
|
|
3670
3670
|
u
|
|
3671
|
-
), s.experimental_prefetchInRender && !
|
|
3671
|
+
), s.experimental_prefetchInRender && !fi && Ib(u, r)) {
|
|
3672
3672
|
const v = o ? (
|
|
3673
3673
|
// Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
|
|
3674
3674
|
Qd(s, l, i)
|
|
@@ -3762,7 +3762,7 @@ function Hm(t, e) {
|
|
|
3762
3762
|
return i;
|
|
3763
3763
|
return null;
|
|
3764
3764
|
}
|
|
3765
|
-
const
|
|
3765
|
+
const Xr = typeof globalThis != "undefined" ? globalThis : typeof self != "undefined" ? self : typeof window != "undefined" ? window : global, qm = (t) => !Ka(t) && t !== Xr;
|
|
3766
3766
|
function Bu() {
|
|
3767
3767
|
const { caseless: t } = qm(this) && this || {}, e = {}, n = (r, i) => {
|
|
3768
3768
|
const a = t && Hm(e, i) || i;
|
|
@@ -3869,14 +3869,14 @@ const h1 = (t) => {
|
|
|
3869
3869
|
return r;
|
|
3870
3870
|
};
|
|
3871
3871
|
return n(t, 0);
|
|
3872
|
-
}, p1 = Cn("AsyncFunction"), y1 = (t) => t && (el(t) || Rt(t)) && Rt(t.then) && Rt(t.catch), Qm = ((t, e) => t ? setImmediate : e ? ((n, r) => (
|
|
3873
|
-
i ===
|
|
3872
|
+
}, p1 = Cn("AsyncFunction"), y1 = (t) => t && (el(t) || Rt(t)) && Rt(t.then) && Rt(t.catch), Qm = ((t, e) => t ? setImmediate : e ? ((n, r) => (Xr.addEventListener("message", ({ source: i, data: a }) => {
|
|
3873
|
+
i === Xr && a === n && r.length && r.shift()();
|
|
3874
3874
|
}, !1), (i) => {
|
|
3875
|
-
r.push(i),
|
|
3875
|
+
r.push(i), Xr.postMessage(n, "*");
|
|
3876
3876
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
3877
3877
|
typeof setImmediate == "function",
|
|
3878
|
-
Rt(
|
|
3879
|
-
), m1 = typeof queueMicrotask != "undefined" ? queueMicrotask.bind(
|
|
3878
|
+
Rt(Xr.postMessage)
|
|
3879
|
+
), m1 = typeof queueMicrotask != "undefined" ? queueMicrotask.bind(Xr) : typeof process != "undefined" && process.nextTick || Qm, g1 = (t) => t != null && Rt(t[Jo]), U = {
|
|
3880
3880
|
isArray: aa,
|
|
3881
3881
|
isArrayBuffer: zm,
|
|
3882
3882
|
isBuffer: Rb,
|
|
@@ -3925,7 +3925,7 @@ const h1 = (t) => {
|
|
|
3925
3925
|
noop: c1,
|
|
3926
3926
|
toFiniteNumber: d1,
|
|
3927
3927
|
findKey: Hm,
|
|
3928
|
-
global:
|
|
3928
|
+
global: Xr,
|
|
3929
3929
|
isContextDefined: qm,
|
|
3930
3930
|
isSpecCompliantForm: f1,
|
|
3931
3931
|
toJSONObject: h1,
|
|
@@ -4630,7 +4630,7 @@ function t0(t, e, n) {
|
|
|
4630
4630
|
return t && (r || n == !1) ? G1(t, e) : e;
|
|
4631
4631
|
}
|
|
4632
4632
|
const $d = (t) => t instanceof _t ? { ...t } : t;
|
|
4633
|
-
function
|
|
4633
|
+
function pi(t, e) {
|
|
4634
4634
|
e = e || {};
|
|
4635
4635
|
const n = {};
|
|
4636
4636
|
function r(u, c, d, h) {
|
|
@@ -4695,7 +4695,7 @@ function hi(t, e) {
|
|
|
4695
4695
|
}), n;
|
|
4696
4696
|
}
|
|
4697
4697
|
const n0 = (t) => {
|
|
4698
|
-
const e =
|
|
4698
|
+
const e = pi({}, t);
|
|
4699
4699
|
let { data: n, withXSRFToken: r, xsrfHeaderName: i, xsrfCookieName: a, headers: s, auth: o } = e;
|
|
4700
4700
|
e.headers = s = _t.from(s), e.url = Xm(t0(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), o && s.set(
|
|
4701
4701
|
"Authorization",
|
|
@@ -5096,7 +5096,7 @@ const ho = {
|
|
|
5096
5096
|
assertOptions: ax,
|
|
5097
5097
|
validators: rl
|
|
5098
5098
|
}, En = ho.validators;
|
|
5099
|
-
let
|
|
5099
|
+
let ui = class {
|
|
5100
5100
|
constructor(e) {
|
|
5101
5101
|
this.defaults = e || {}, this.interceptors = {
|
|
5102
5102
|
request: new Kd(),
|
|
@@ -5129,7 +5129,7 @@ let li = class {
|
|
|
5129
5129
|
}
|
|
5130
5130
|
}
|
|
5131
5131
|
_request(e, n) {
|
|
5132
|
-
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n =
|
|
5132
|
+
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = pi(this.defaults, n);
|
|
5133
5133
|
const { transitional: r, paramsSerializer: i, headers: a } = n;
|
|
5134
5134
|
r !== void 0 && ho.assertOptions(r, {
|
|
5135
5135
|
silentJSONParsing: En.transitional(En.boolean),
|
|
@@ -5191,14 +5191,14 @@ let li = class {
|
|
|
5191
5191
|
return c;
|
|
5192
5192
|
}
|
|
5193
5193
|
getUri(e) {
|
|
5194
|
-
e =
|
|
5194
|
+
e = pi(this.defaults, e);
|
|
5195
5195
|
const n = t0(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
5196
5196
|
return Xm(n, e.params, e.paramsSerializer);
|
|
5197
5197
|
}
|
|
5198
5198
|
};
|
|
5199
5199
|
U.forEach(["delete", "get", "head", "options"], function(e) {
|
|
5200
|
-
|
|
5201
|
-
return this.request(
|
|
5200
|
+
ui.prototype[e] = function(n, r) {
|
|
5201
|
+
return this.request(pi(r || {}, {
|
|
5202
5202
|
method: e,
|
|
5203
5203
|
url: n,
|
|
5204
5204
|
data: (r || {}).data
|
|
@@ -5208,7 +5208,7 @@ U.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
5208
5208
|
U.forEach(["post", "put", "patch"], function(e) {
|
|
5209
5209
|
function n(r) {
|
|
5210
5210
|
return function(a, s, o) {
|
|
5211
|
-
return this.request(
|
|
5211
|
+
return this.request(pi(o || {}, {
|
|
5212
5212
|
method: e,
|
|
5213
5213
|
headers: r ? {
|
|
5214
5214
|
"Content-Type": "multipart/form-data"
|
|
@@ -5218,7 +5218,7 @@ U.forEach(["post", "put", "patch"], function(e) {
|
|
|
5218
5218
|
}));
|
|
5219
5219
|
};
|
|
5220
5220
|
}
|
|
5221
|
-
|
|
5221
|
+
ui.prototype[e] = n(), ui.prototype[e + "Form"] = n(!0);
|
|
5222
5222
|
});
|
|
5223
5223
|
let sx = class o0 {
|
|
5224
5224
|
constructor(e) {
|
|
@@ -5370,13 +5370,13 @@ Object.entries(Hu).forEach(([t, e]) => {
|
|
|
5370
5370
|
Hu[e] = t;
|
|
5371
5371
|
});
|
|
5372
5372
|
function l0(t) {
|
|
5373
|
-
const e = new
|
|
5374
|
-
return U.extend(n,
|
|
5375
|
-
return l0(
|
|
5373
|
+
const e = new ui(t), n = jm(ui.prototype.request, e);
|
|
5374
|
+
return U.extend(n, ui.prototype, e, { allOwnKeys: !0 }), U.extend(n, e, null, { allOwnKeys: !0 }), n.create = function(i) {
|
|
5375
|
+
return l0(pi(t, i));
|
|
5376
5376
|
}, n;
|
|
5377
5377
|
}
|
|
5378
5378
|
const Ye = l0(ks);
|
|
5379
|
-
Ye.Axios =
|
|
5379
|
+
Ye.Axios = ui;
|
|
5380
5380
|
Ye.CanceledError = sa;
|
|
5381
5381
|
Ye.CancelToken = sx;
|
|
5382
5382
|
Ye.isCancel = $m;
|
|
@@ -5389,7 +5389,7 @@ Ye.all = function(e) {
|
|
|
5389
5389
|
};
|
|
5390
5390
|
Ye.spread = ox;
|
|
5391
5391
|
Ye.isAxiosError = lx;
|
|
5392
|
-
Ye.mergeConfig =
|
|
5392
|
+
Ye.mergeConfig = pi;
|
|
5393
5393
|
Ye.AxiosHeaders = _t;
|
|
5394
5394
|
Ye.formToJSON = (t) => Zm(U.isHTMLForm(t) ? new FormData(t) : t);
|
|
5395
5395
|
Ye.getAdapter = a0.getAdapter;
|
|
@@ -5509,7 +5509,7 @@ function sf(t, e) {
|
|
|
5509
5509
|
}
|
|
5510
5510
|
return n;
|
|
5511
5511
|
}
|
|
5512
|
-
function
|
|
5512
|
+
function ci(t) {
|
|
5513
5513
|
for (var e = 1; e < arguments.length; e++) {
|
|
5514
5514
|
var n = arguments[e] != null ? arguments[e] : {};
|
|
5515
5515
|
e % 2 ? sf(Object(n), !0).forEach(function(r) {
|
|
@@ -5545,7 +5545,7 @@ function of(t, e, n, r, i, a, s) {
|
|
|
5545
5545
|
}
|
|
5546
5546
|
o.done ? e(l) : Promise.resolve(l).then(r, i);
|
|
5547
5547
|
}
|
|
5548
|
-
function
|
|
5548
|
+
function yi(t) {
|
|
5549
5549
|
return function() {
|
|
5550
5550
|
var e = this, n = arguments;
|
|
5551
5551
|
return new Promise(function(r, i) {
|
|
@@ -5580,7 +5580,7 @@ var px = "yst-insights-token", oa = Ye.create({
|
|
|
5580
5580
|
withCredentials: !0
|
|
5581
5581
|
});
|
|
5582
5582
|
oa.interceptors.request.use(/* @__PURE__ */ function() {
|
|
5583
|
-
var t =
|
|
5583
|
+
var t = yi(/* @__PURE__ */ kt().m(function e(n) {
|
|
5584
5584
|
var r, i;
|
|
5585
5585
|
return kt().w(function(a) {
|
|
5586
5586
|
for (; ; ) switch (a.n) {
|
|
@@ -5589,7 +5589,7 @@ oa.interceptors.request.use(/* @__PURE__ */ function() {
|
|
|
5589
5589
|
case 1:
|
|
5590
5590
|
return r = a.v, a.n = 2, c0();
|
|
5591
5591
|
case 2:
|
|
5592
|
-
return i = a.v, n.headers =
|
|
5592
|
+
return i = a.v, n.headers = ci(ci(ci({}, n.headers || {}), i ? {
|
|
5593
5593
|
"X-XSRF-TOKEN": i
|
|
5594
5594
|
} : {}), r ? {
|
|
5595
5595
|
Authorization: "Bearer ".concat(r)
|
|
@@ -5608,7 +5608,7 @@ oa.interceptors.request.use(/* @__PURE__ */ function() {
|
|
|
5608
5608
|
oa.interceptors.response.use(function(t) {
|
|
5609
5609
|
return t;
|
|
5610
5610
|
}, /* @__PURE__ */ function() {
|
|
5611
|
-
var t =
|
|
5611
|
+
var t = yi(/* @__PURE__ */ kt().m(function e(n) {
|
|
5612
5612
|
var r;
|
|
5613
5613
|
return kt().w(function(i) {
|
|
5614
5614
|
for (; ; ) switch (i.n) {
|
|
@@ -5625,12 +5625,12 @@ function ct(t) {
|
|
|
5625
5625
|
return qu.apply(this, arguments);
|
|
5626
5626
|
}
|
|
5627
5627
|
function qu() {
|
|
5628
|
-
return qu =
|
|
5628
|
+
return qu = yi(/* @__PURE__ */ kt().m(function t(e) {
|
|
5629
5629
|
var n;
|
|
5630
5630
|
return kt().w(function(r) {
|
|
5631
5631
|
for (; ; ) switch (r.n) {
|
|
5632
5632
|
case 0:
|
|
5633
|
-
return n =
|
|
5633
|
+
return n = ci({}, e), delete n.baseURL, r.a(2, oa.request(ci(ci({}, n), {}, {
|
|
5634
5634
|
withCredentials: !0
|
|
5635
5635
|
// enforce even if caller overrides
|
|
5636
5636
|
})));
|
|
@@ -5652,7 +5652,7 @@ function gx() {
|
|
|
5652
5652
|
return Wu.apply(this, arguments);
|
|
5653
5653
|
}
|
|
5654
5654
|
function Wu() {
|
|
5655
|
-
return Wu =
|
|
5655
|
+
return Wu = yi(/* @__PURE__ */ kt().m(function t() {
|
|
5656
5656
|
var e, n, r, i, a;
|
|
5657
5657
|
return kt().w(function(s) {
|
|
5658
5658
|
for (; ; ) switch (s.p = s.n) {
|
|
@@ -5678,7 +5678,7 @@ function Wu() {
|
|
|
5678
5678
|
}
|
|
5679
5679
|
return s.a(2, ga);
|
|
5680
5680
|
case 5:
|
|
5681
|
-
return ga =
|
|
5681
|
+
return ga = yi(/* @__PURE__ */ kt().m(function o() {
|
|
5682
5682
|
var l, u, c, d, h;
|
|
5683
5683
|
return kt().w(function(f) {
|
|
5684
5684
|
for (; ; ) switch (f.p = f.n) {
|
|
@@ -5686,7 +5686,7 @@ function Wu() {
|
|
|
5686
5686
|
return f.p = 0, f.n = 1, c0();
|
|
5687
5687
|
case 1:
|
|
5688
5688
|
return l = f.v, f.n = 2, Ye.post(n + "/users/getToken", {}, {
|
|
5689
|
-
headers:
|
|
5689
|
+
headers: ci({
|
|
5690
5690
|
Authorization: "Bearer " + e
|
|
5691
5691
|
}, l ? {
|
|
5692
5692
|
"X-XSRF-TOKEN": l
|
|
@@ -5730,7 +5730,7 @@ function c0() {
|
|
|
5730
5730
|
return Qu.apply(this, arguments);
|
|
5731
5731
|
}
|
|
5732
5732
|
function Qu() {
|
|
5733
|
-
return Qu =
|
|
5733
|
+
return Qu = yi(/* @__PURE__ */ kt().m(function t() {
|
|
5734
5734
|
var e;
|
|
5735
5735
|
return kt().w(function(n) {
|
|
5736
5736
|
for (; ; ) switch (n.n) {
|
|
@@ -5753,7 +5753,7 @@ function Qu() {
|
|
|
5753
5753
|
}
|
|
5754
5754
|
return n.a(2, va);
|
|
5755
5755
|
case 3:
|
|
5756
|
-
return va =
|
|
5756
|
+
return va = yi(/* @__PURE__ */ kt().m(function r() {
|
|
5757
5757
|
var i;
|
|
5758
5758
|
return kt().w(function(a) {
|
|
5759
5759
|
for (; ; ) switch (a.p = a.n) {
|
|
@@ -6054,7 +6054,7 @@ var Hx = function(e, n, r) {
|
|
|
6054
6054
|
queryFn: s
|
|
6055
6055
|
}, i);
|
|
6056
6056
|
};
|
|
6057
|
-
function
|
|
6057
|
+
function xi(t, e) {
|
|
6058
6058
|
var n = Vx(t), r = cr(n);
|
|
6059
6059
|
return r.queryKey = n.queryKey, r;
|
|
6060
6060
|
}
|
|
@@ -6721,13 +6721,13 @@ function iA(t, e) {
|
|
|
6721
6721
|
}
|
|
6722
6722
|
var yf = function(e) {
|
|
6723
6723
|
var n = e.className, r = Et(), i = r.pathname, a = rA();
|
|
6724
|
-
return /* @__PURE__ */ p("div", { className: oe("yst-flex yst-flex-col yst-gap-10", n), children: /* @__PURE__ */ p(
|
|
6724
|
+
return /* @__PURE__ */ p("div", { className: oe("yst-flex yst-flex-col yst-gap-10", n), children: /* @__PURE__ */ p(Li.Sidebar, { children: /* @__PURE__ */ p(Li.List, { className: "yst-space-y-2", children: a.filter(function(s) {
|
|
6725
6725
|
return s.showInMenu !== !1;
|
|
6726
6726
|
}).map(function(s) {
|
|
6727
6727
|
var o = s.isActive ? s.isActive(i) : !1;
|
|
6728
|
-
return /* @__PURE__ */ p(
|
|
6728
|
+
return /* @__PURE__ */ p(Li.SubmenuItem, { className: oe("yst-flex yst-gap-x-3", {
|
|
6729
6729
|
"yst-sidebar-navigation__item--active": o
|
|
6730
|
-
}), href: s.href, to: s.href, as: Dr, label: /* @__PURE__ */ O(
|
|
6730
|
+
}), href: s.href, to: s.href, as: Dr, label: /* @__PURE__ */ O(Ie, { children: [
|
|
6731
6731
|
/* @__PURE__ */ p(s.Icon, { className: oe(pf || (pf = iA(["yst-sidebar-navigation__icon yst-h-6 yst-w-6"]))) }),
|
|
6732
6732
|
s.label
|
|
6733
6733
|
] }) }, s.label);
|
|
@@ -6787,7 +6787,7 @@ var dA = function(e) {
|
|
|
6787
6787
|
return v();
|
|
6788
6788
|
};
|
|
6789
6789
|
return /* @__PURE__ */ O("div", { className: oe("ystaii-sidemenu"), children: [
|
|
6790
|
-
/* @__PURE__ */ p("div", { className: "ystaii-mobile-menu lg:yst-hidden", children: /* @__PURE__ */ p(
|
|
6790
|
+
/* @__PURE__ */ p("div", { className: "ystaii-mobile-menu lg:yst-hidden", children: /* @__PURE__ */ p(Li, { activePath: i, children: /* @__PURE__ */ p(Li.Mobile, { closeButtonScreenReaderText: "Close sidebar", openButtonScreenReaderText: "Open sidebar", children: /* @__PURE__ */ p(yf, {}) }) }) }),
|
|
6791
6791
|
/* @__PURE__ */ O("div", { className: oe("ystaii-menuHeader", "yst-mb-6 yst-mt-10 yst-flex yst-flex-row yst-justify-between yst-px-4", "yst-flex-col yst-items-start yst-space-y-12 yst-max-w-2xl yst-mx-auto"), children: [
|
|
6792
6792
|
/* @__PURE__ */ p(rt, { children: /* @__PURE__ */ p(Dr, { className: oe("yst-outline-none"), to: "/", children: /* @__PURE__ */ p("img", { src: aA, alt: "Yoast", width: "208", height: "42", className: "yst-block" }) }) }),
|
|
6793
6793
|
/* @__PURE__ */ O("div", { className: oe("ystaii-userInfoContainer", "yst-flex yst-flex-col"), children: [
|
|
@@ -6796,13 +6796,13 @@ var dA = function(e) {
|
|
|
6796
6796
|
/* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(zn, { variant: "primary", className: "yst-no-underline", onClick: A, children: y ? /* @__PURE__ */ O(Ve, { children: [
|
|
6797
6797
|
"Sign out ",
|
|
6798
6798
|
/* @__PURE__ */ p("span", { "aria-hidden": "true", children: "→" })
|
|
6799
|
-
] }) : c || g ? /* @__PURE__ */ p(
|
|
6799
|
+
] }) : c || g ? /* @__PURE__ */ p(Ie, { children: "Signing out..." }) : /* @__PURE__ */ O(Ie, { children: [
|
|
6800
6800
|
"Sign out ",
|
|
6801
6801
|
/* @__PURE__ */ p("span", { "aria-hidden": "true", children: "→" })
|
|
6802
6802
|
] }) }) })
|
|
6803
6803
|
] })
|
|
6804
6804
|
] }),
|
|
6805
|
-
/* @__PURE__ */ p("div", { className: oe("ystaii-desktopMenu", "yst-hidden", "lg:yst-mb-0 lg:yst-block lg:yst-w-full lg:yst-shrink-0"), children: /* @__PURE__ */ p(
|
|
6805
|
+
/* @__PURE__ */ p("div", { className: oe("ystaii-desktopMenu", "yst-hidden", "lg:yst-mb-0 lg:yst-block lg:yst-w-full lg:yst-shrink-0"), children: /* @__PURE__ */ p(Li, { activePath: i, children: /* @__PURE__ */ p(yf, { className: n }) }) })
|
|
6806
6806
|
] });
|
|
6807
6807
|
}, fA = ["className", "href"];
|
|
6808
6808
|
function hA(t, e) {
|
|
@@ -6994,7 +6994,7 @@ function wA(t) {
|
|
|
6994
6994
|
if (Array.isArray(t)) return t;
|
|
6995
6995
|
}
|
|
6996
6996
|
var AA = function(e) {
|
|
6997
|
-
var n, r = e.className, i = mn(), a = vt(), s = ie(!1), o = gA(s, 2), l = o[0], u = o[1], c =
|
|
6997
|
+
var n, r = e.className, i = mn(), a = vt(), s = ie(!1), o = gA(s, 2), l = o[0], u = o[1], c = xi({
|
|
6998
6998
|
query: {
|
|
6999
6999
|
select: function(C) {
|
|
7000
7000
|
var b = C.data;
|
|
@@ -7059,7 +7059,7 @@ var AA = function(e) {
|
|
|
7059
7059
|
return function() {
|
|
7060
7060
|
return E.apply(this, arguments);
|
|
7061
7061
|
};
|
|
7062
|
-
}(), A = m.length === 1 ? "One brand has been deactivated" : "Multiple brands have been deactivated", k = m.length === 1 ? /* @__PURE__ */ O(
|
|
7062
|
+
}(), A = m.length === 1 ? "One brand has been deactivated" : "Multiple brands have been deactivated", k = m.length === 1 ? /* @__PURE__ */ O(Ie, { children: [
|
|
7063
7063
|
/* @__PURE__ */ p("p", { children: "You recently lost a subscription. Because of this, we could not analyze all your active brands." }),
|
|
7064
7064
|
/* @__PURE__ */ O("p", { children: [
|
|
7065
7065
|
"The brand ",
|
|
@@ -7071,7 +7071,7 @@ var AA = function(e) {
|
|
|
7071
7071
|
/* @__PURE__ */ p("b", { children: "Settings" }),
|
|
7072
7072
|
" and deactivate a different brand instead."
|
|
7073
7073
|
] })
|
|
7074
|
-
] }) : /* @__PURE__ */ O(
|
|
7074
|
+
] }) : /* @__PURE__ */ O(Ie, { children: [
|
|
7075
7075
|
/* @__PURE__ */ p("p", { children: "You recently lost a subscription. Because of this, we could not analyze all your active brands." }),
|
|
7076
7076
|
/* @__PURE__ */ p("p", { children: "The following brands were deactivated, since they were the most recently analyzed:" }),
|
|
7077
7077
|
/* @__PURE__ */ p("ul", { children: m.map(function(E) {
|
|
@@ -7125,7 +7125,7 @@ var la = function(e) {
|
|
|
7125
7125
|
/* @__PURE__ */ p("strong", { children: "Try it for free, on us!" })
|
|
7126
7126
|
] }) : /* @__PURE__ */ p("p", { className: "yst-text-tiny yst-font-normal yst-text-slate-600", children: "Track visibility, control perception, and stay ahead - tools to manage your AI presence are now live!" })
|
|
7127
7127
|
] }),
|
|
7128
|
-
i === "trial" && /* @__PURE__ */ O(
|
|
7128
|
+
i === "trial" && /* @__PURE__ */ O(Ie, { children: [
|
|
7129
7129
|
/* @__PURE__ */ p(la, { size: 4 }),
|
|
7130
7130
|
/* @__PURE__ */ p(te.Container.Content, { className: "yst-space-y-4", children: /* @__PURE__ */ O("p", { className: "yst-text-sm yst-italic yst-text-slate-600", children: [
|
|
7131
7131
|
"By continuing to use this product, you agree to our",
|
|
@@ -7225,7 +7225,7 @@ var IA = {
|
|
|
7225
7225
|
), f = kA(h, 2), y = f[0], m = f[1], v = {
|
|
7226
7226
|
disable: l,
|
|
7227
7227
|
hideNav: s
|
|
7228
|
-
}, g = Bt(), A = g.brandId, k = Os(), E = k.setBrandId, C =
|
|
7228
|
+
}, g = Bt(), A = g.brandId, k = Os(), E = k.setBrandId, C = xi({
|
|
7229
7229
|
query: {
|
|
7230
7230
|
refetchOnReconnect: !1,
|
|
7231
7231
|
refetchOnWindowFocus: !1,
|
|
@@ -7300,7 +7300,7 @@ var IA = {
|
|
|
7300
7300
|
});
|
|
7301
7301
|
return l ? /* @__PURE__ */ p(Ji, {}) : /* @__PURE__ */ p(Mi, { to: "/brands/".concat(n), replace: !0 });
|
|
7302
7302
|
}, wf = function() {
|
|
7303
|
-
var e = Ko(), n = e.brandId, r =
|
|
7303
|
+
var e = Ko(), n = e.brandId, r = xi({
|
|
7304
7304
|
query: {
|
|
7305
7305
|
select: function(d) {
|
|
7306
7306
|
var h = d.data;
|
|
@@ -7577,7 +7577,7 @@ function t3(t, e) {
|
|
|
7577
7577
|
}));
|
|
7578
7578
|
}
|
|
7579
7579
|
const C0 = R.forwardRef(t3);
|
|
7580
|
-
var
|
|
7580
|
+
var Si = {
|
|
7581
7581
|
openai: "openai",
|
|
7582
7582
|
perplexity: "perplexity",
|
|
7583
7583
|
anthropic: "anthropic"
|
|
@@ -7874,7 +7874,7 @@ var Ts = function(e) {
|
|
|
7874
7874
|
var n, r, i, a, s = e.title, o = s === void 0 ? "Sentiment" : s, l = e.tooltip, u = l === void 0 ? "" : l, c = e.data, d = c == null ? void 0 : c.brandName, h = c == null || (n = c.positivityPercentage) === null || n === void 0 ? void 0 : n.value, f = c == null || (r = c.positivityPercentage) === null || r === void 0 || (r = r.previous) === null || r === void 0 ? void 0 : r.difference, y = c == null || (i = c.keywords) === null || i === void 0 ? void 0 : i.positive, m = c == null || (a = c.keywords) === null || a === void 0 ? void 0 : a.negative, v = !c || h === void 0 && f === void 0;
|
|
7875
7875
|
return /* @__PURE__ */ p(We, { className: "yst-overflow-visible", children: /* @__PURE__ */ O(We.Content, { className: "yst-space-y-8", children: [
|
|
7876
7876
|
/* @__PURE__ */ p(Ts, { title: o, tooltip: u }),
|
|
7877
|
-
/* @__PURE__ */ p("div", { className: "yst-space-y-3", children: !v && /* @__PURE__ */ O(
|
|
7877
|
+
/* @__PURE__ */ p("div", { className: "yst-space-y-3", children: !v && /* @__PURE__ */ O(Ie, { children: [
|
|
7878
7878
|
/* @__PURE__ */ p("p", { children: d || /* @__PURE__ */ p(Ve, { className: "yst-h-6 yst-w-20" }) }),
|
|
7879
7879
|
/* @__PURE__ */ O("div", { children: [
|
|
7880
7880
|
/* @__PURE__ */ p("div", { className: "yst-inline-flex", children: /* @__PURE__ */ p(Ps, { className: "yst-mb-1.5", score: h, scoreFormat: "percentage", suffix: "positive", delta: f }) }),
|
|
@@ -8284,7 +8284,7 @@ var ba = Is(Nf || (Nf = z3(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-sla
|
|
|
8284
8284
|
/* @__PURE__ */ p("p", { children: "This table highlights the most important sources where your brand was cited." }),
|
|
8285
8285
|
/* @__PURE__ */ p(Ps, { score: C == null || (i = C.total) === null || i === void 0 ? void 0 : i.value, suffix: "citations", delta: C == null || (a = C.total) === null || a === void 0 || (a = a.previous) === null || a === void 0 ? void 0 : a.difference, deltaSuffix: "since last analysis", isLoading: k, hideTotal: !0 })
|
|
8286
8286
|
] }),
|
|
8287
|
-
(C == null || (s = C.list) === null || s === void 0 ? void 0 : s.length) === 0 && !k && !E ? /* @__PURE__ */ p(en, { children: "The selected AI platform returned no citations for your queries. This can happen with some queries or platforms." }) : /* @__PURE__ */ O(
|
|
8287
|
+
(C == null || (s = C.list) === null || s === void 0 ? void 0 : s.length) === 0 && !k && !E ? /* @__PURE__ */ p(en, { children: "The selected AI platform returned no citations for your queries. This can happen with some queries or platforms." }) : /* @__PURE__ */ O(Ie, { children: [
|
|
8288
8288
|
/* @__PURE__ */ O("div", { children: [
|
|
8289
8289
|
l && /* @__PURE__ */ p(
|
|
8290
8290
|
Ao,
|
|
@@ -8407,7 +8407,7 @@ var Ff = function(e) {
|
|
|
8407
8407
|
/* @__PURE__ */ p("span", { className: "yst-text-slate-500", children: "#" }),
|
|
8408
8408
|
/* @__PURE__ */ p("span", { className: "yst-text-slate-900", children: (d == null ? void 0 : d.value) || "—" })
|
|
8409
8409
|
] }),
|
|
8410
|
-
!s && /* @__PURE__ */ p("span", { className: oe("yst-inline-flex yst-items-center yst-justify-end", ts(f && typeof y == "number" ? y : 0)), children: f && typeof y == "number" && y !== 0 ? /* @__PURE__ */ O(
|
|
8410
|
+
!s && /* @__PURE__ */ p("span", { className: oe("yst-inline-flex yst-items-center yst-justify-end", ts(f && typeof y == "number" ? y : 0)), children: f && typeof y == "number" && y !== 0 ? /* @__PURE__ */ O(Ie, { children: [
|
|
8411
8411
|
Math.abs(y),
|
|
8412
8412
|
y > 0 ? /* @__PURE__ */ p(JA, { className: "yst-h-4 yst-w-4" }) : /* @__PURE__ */ p(KA, { className: "yst-h-4 yst-w-4" })
|
|
8413
8413
|
] }) : null })
|
|
@@ -8421,7 +8421,7 @@ var Ff = function(e) {
|
|
|
8421
8421
|
i
|
|
8422
8422
|
] })
|
|
8423
8423
|
] }),
|
|
8424
|
-
!s && /* @__PURE__ */ p("span", { className: oe("yst-ml-auto", ts(v && typeof g == "number" ? g : 0)), children: v && typeof g == "number" ? /* @__PURE__ */ O(
|
|
8424
|
+
!s && /* @__PURE__ */ p("span", { className: oe("yst-ml-auto", ts(v && typeof g == "number" ? g : 0)), children: v && typeof g == "number" ? /* @__PURE__ */ O(Ie, { children: [
|
|
8425
8425
|
g > -1 && "+",
|
|
8426
8426
|
g
|
|
8427
8427
|
] }) : null })
|
|
@@ -9110,7 +9110,7 @@ const hr = {
|
|
|
9110
9110
|
);
|
|
9111
9111
|
return Be(i, e.length);
|
|
9112
9112
|
}
|
|
9113
|
-
},
|
|
9113
|
+
}, Ci = {
|
|
9114
9114
|
midnight: "midnight",
|
|
9115
9115
|
noon: "noon",
|
|
9116
9116
|
morning: "morning",
|
|
@@ -9500,7 +9500,7 @@ const hr = {
|
|
|
9500
9500
|
b: function(t, e, n) {
|
|
9501
9501
|
const r = t.getHours();
|
|
9502
9502
|
let i;
|
|
9503
|
-
switch (r === 12 ? i =
|
|
9503
|
+
switch (r === 12 ? i = Ci.noon : r === 0 ? i = Ci.midnight : i = r / 12 >= 1 ? "pm" : "am", e) {
|
|
9504
9504
|
case "b":
|
|
9505
9505
|
case "bb":
|
|
9506
9506
|
return n.dayPeriod(i, {
|
|
@@ -9529,7 +9529,7 @@ const hr = {
|
|
|
9529
9529
|
B: function(t, e, n) {
|
|
9530
9530
|
const r = t.getHours();
|
|
9531
9531
|
let i;
|
|
9532
|
-
switch (r >= 17 ? i =
|
|
9532
|
+
switch (r >= 17 ? i = Ci.evening : r >= 12 ? i = Ci.afternoon : r >= 4 ? i = Ci.morning : i = Ci.night, e) {
|
|
9533
9533
|
case "B":
|
|
9534
9534
|
case "BB":
|
|
9535
9535
|
case "BBB":
|
|
@@ -9747,7 +9747,7 @@ function $S(t, e, n) {
|
|
|
9747
9747
|
return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
9748
9748
|
}
|
|
9749
9749
|
const eC = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, tC = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, nC = /^'([^]*?)'?$/, rC = /''/g, iC = /[a-zA-Z]/;
|
|
9750
|
-
function
|
|
9750
|
+
function Jr(t, e, n) {
|
|
9751
9751
|
var c, d, h, f, y, m, v, g, A;
|
|
9752
9752
|
const r = ol(), i = (c = r.locale) != null ? c : zS, a = (y = (f = r.firstWeekContainsDate) != null ? f : (h = (d = r.locale) == null ? void 0 : d.options) == null ? void 0 : h.firstWeekContainsDate) != null ? y : 1, s = (A = (g = r.weekStartsOn) != null ? g : (v = (m = r.locale) == null ? void 0 : m.options) == null ? void 0 : v.weekStartsOn) != null ? A : 0, o = jt(t, n == null ? void 0 : n.in);
|
|
9753
9753
|
if (!nS(o))
|
|
@@ -9976,7 +9976,7 @@ var On = {
|
|
|
9976
9976
|
var n = e.analyses, r = e.selectedAnalysisId, i = e.onAnalysisSelect, a = e.isLoading, s = a === void 0 ? !1 : a, o = e.isOpen, l = o === void 0 ? !1 : o, u = e.onClose, c = ie(/* @__PURE__ */ new Date()), d = hC(c, 2), h = d[0], f = d[1], y = nt(function() {
|
|
9977
9977
|
var b = /* @__PURE__ */ new Map();
|
|
9978
9978
|
return n.forEach(function(w) {
|
|
9979
|
-
var x = Yr(w.createdAt), N = x ?
|
|
9979
|
+
var x = Yr(w.createdAt), N = x ? Jr(x, "yyyy-MM-dd") : "";
|
|
9980
9980
|
N && (b.has(N) || b.set(N, []), b.get(N).push(w));
|
|
9981
9981
|
}), b;
|
|
9982
9982
|
}, [n]);
|
|
@@ -10017,7 +10017,7 @@ var On = {
|
|
|
10017
10017
|
start: x,
|
|
10018
10018
|
end: I
|
|
10019
10019
|
}).map(function(M) {
|
|
10020
|
-
var P =
|
|
10020
|
+
var P = Jr(M, "yyyy-MM-dd"), j = y.get(P) || [], B = j.find(function(G) {
|
|
10021
10021
|
return String(G.id) === String(r);
|
|
10022
10022
|
});
|
|
10023
10023
|
return {
|
|
@@ -10060,7 +10060,7 @@ var On = {
|
|
|
10060
10060
|
/* @__PURE__ */ p("span", { className: "yst-sr-only", children: "Previous month" }),
|
|
10061
10061
|
/* @__PURE__ */ p(Mw, { className: "yst-h-5 yst-w-5" })
|
|
10062
10062
|
] }),
|
|
10063
|
-
/* @__PURE__ */ p("h2", { className: "yst-text-sm yst-font-semibold yst-text-slate-900", children:
|
|
10063
|
+
/* @__PURE__ */ p("h2", { className: "yst-text-sm yst-font-semibold yst-text-slate-900", children: Jr(h, "MMMM yyyy") }),
|
|
10064
10064
|
/* @__PURE__ */ O("button", { type: "button", onClick: E, className: "yst-rounded-md yst-p-1.5 yst-text-slate-400 hover:yst-bg-slate-100 hover:yst-text-slate-500", children: [
|
|
10065
10065
|
/* @__PURE__ */ p("span", { className: "yst-sr-only", children: "Next month" }),
|
|
10066
10066
|
/* @__PURE__ */ p(Rw, { className: "yst-h-5 yst-w-5" })
|
|
@@ -10098,7 +10098,7 @@ var On = {
|
|
|
10098
10098
|
"yst-relative yst-z-10 yst-w-4",
|
|
10099
10099
|
// Today indicator - add underline
|
|
10100
10100
|
Bl({}, On.today.underline, b.isToday && !b.isSelected)
|
|
10101
|
-
), children:
|
|
10101
|
+
), children: Jr(b.dateObj, "d") }),
|
|
10102
10102
|
b.hasAnalyses && b.analyses.length > 1 && !b.isSelected && /* @__PURE__ */ p("span", { className: oe("yst-absolute yst-right-1 yst-top-1 yst-h-2 yst-w-2 yst-rounded-full", On.indicator.default) })
|
|
10103
10103
|
] }) }, b.date);
|
|
10104
10104
|
}) }),
|
|
@@ -10193,7 +10193,7 @@ var SC = function(e) {
|
|
|
10193
10193
|
return E(M) > E(F) ? M : F;
|
|
10194
10194
|
}).id) : "", x = function() {
|
|
10195
10195
|
if (b) {
|
|
10196
|
-
var F = Yr(b.createdAt), M = F ?
|
|
10196
|
+
var F = Yr(b.createdAt), M = F ? Jr(F, "MMMM d, yyyy") : (
|
|
10197
10197
|
// Fallback if parsing fails
|
|
10198
10198
|
b.createdAt ? b.createdAt.slice(0, 10) : "Unknown date"
|
|
10199
10199
|
), P = String(b.id) === w ? "(latest)" : "(older)";
|
|
@@ -10535,7 +10535,7 @@ var th = "perplexity_tooltip_dismissed", BC = /* @__PURE__ */ new Date("2026-01-
|
|
|
10535
10535
|
return ge;
|
|
10536
10536
|
}
|
|
10537
10537
|
}
|
|
10538
|
-
}), N = x.data, D = x.isLoading, I = N == null ? void 0 : N.data, L = I == null ? void 0 : I.displayName, F =
|
|
10538
|
+
}), N = x.data, D = x.isLoading, I = N == null ? void 0 : N.data, L = I == null ? void 0 : I.displayName, F = xi({
|
|
10539
10539
|
query: {
|
|
10540
10540
|
select: function(re) {
|
|
10541
10541
|
var ge = re.data;
|
|
@@ -10559,14 +10559,14 @@ var th = "perplexity_tooltip_dismissed", BC = /* @__PURE__ */ new Date("2026-01-
|
|
|
10559
10559
|
}
|
|
10560
10560
|
}
|
|
10561
10561
|
}), S = Q.data, q = Q.isLoading, H = S == null || (n = S.analysis) === null || n === void 0 || (n = n.scans) === null || n === void 0 ? void 0 : n.some(function(K) {
|
|
10562
|
-
return K.aiProvider ===
|
|
10562
|
+
return K.aiProvider === Si.perplexity;
|
|
10563
10563
|
}), T = nt(function() {
|
|
10564
10564
|
return /* @__PURE__ */ new Date();
|
|
10565
10565
|
}, []), W = (
|
|
10566
10566
|
// Check if current date is before January 13, 2026
|
|
10567
10567
|
T < BC && // - [x] user has not manually dismissed the popover
|
|
10568
10568
|
!E && // - [x] current AI provider is not perplexity
|
|
10569
|
-
(w == null ? void 0 : w.aiProvider) !==
|
|
10569
|
+
(w == null ? void 0 : w.aiProvider) !== Si.perplexity && // - [x] Check to ensure there is a scan of type perplexity available to show
|
|
10570
10570
|
!!H
|
|
10571
10571
|
), Z = Za(c, {
|
|
10572
10572
|
query: {
|
|
@@ -10583,8 +10583,8 @@ var th = "perplexity_tooltip_dismissed", BC = /* @__PURE__ */ new Date("2026-01-
|
|
|
10583
10583
|
onSuccess: function() {
|
|
10584
10584
|
var K = LC(/* @__PURE__ */ Ku().m(function ge() {
|
|
10585
10585
|
var Xe, Ut, Wn, Fr, Al, Sl, Cl;
|
|
10586
|
-
return Ku().w(function(
|
|
10587
|
-
for (; ; ) switch (
|
|
10586
|
+
return Ku().w(function(Ai) {
|
|
10587
|
+
for (; ; ) switch (Ai.n) {
|
|
10588
10588
|
case 0:
|
|
10589
10589
|
if (Xe = S == null ? void 0 : S.analysis, Ut = (Xe == null ? void 0 : Xe.scans) || [], Wn = B || [], Fr = function() {
|
|
10590
10590
|
return Promise.all([v.invalidateQueries({
|
|
@@ -10595,12 +10595,12 @@ var th = "perplexity_tooltip_dismissed", BC = /* @__PURE__ */ new Date("2026-01-
|
|
|
10595
10595
|
queryKey: al(c)
|
|
10596
10596
|
})]);
|
|
10597
10597
|
}, le(!1), Xe) {
|
|
10598
|
-
|
|
10598
|
+
Ai.n = 2;
|
|
10599
10599
|
break;
|
|
10600
10600
|
}
|
|
10601
|
-
return g("/brands/".concat(c)),
|
|
10601
|
+
return g("/brands/".concat(c)), Ai.n = 1, Fr();
|
|
10602
10602
|
case 1:
|
|
10603
|
-
return
|
|
10603
|
+
return Ai.a(2);
|
|
10604
10604
|
case 2:
|
|
10605
10605
|
return Al = Ut.filter(function(zr) {
|
|
10606
10606
|
return zr.aiProvider !== h;
|
|
@@ -10608,9 +10608,9 @@ var th = "perplexity_tooltip_dismissed", BC = /* @__PURE__ */ new Date("2026-01-
|
|
|
10608
10608
|
return zr.id !== d;
|
|
10609
10609
|
}), Sl.length > 0 ? (Cl = Sl.reduce(function(zr, Td) {
|
|
10610
10610
|
return new Date(Td.createdAt || 0) > new Date(zr.createdAt || 0) ? Td : zr;
|
|
10611
|
-
}), m(Cl.id), g("/brands/".concat(c, "/analysis/").concat(Cl.id))) : (m("latest"), g("/brands/".concat(c)))),
|
|
10611
|
+
}), m(Cl.id), g("/brands/".concat(c, "/analysis/").concat(Cl.id))) : (m("latest"), g("/brands/".concat(c)))), Ai.n = 3, Fr();
|
|
10612
10612
|
case 3:
|
|
10613
|
-
return
|
|
10613
|
+
return Ai.a(2);
|
|
10614
10614
|
}
|
|
10615
10615
|
}, ge);
|
|
10616
10616
|
}));
|
|
@@ -10708,17 +10708,17 @@ var th = "perplexity_tooltip_dismissed", BC = /* @__PURE__ */ new Date("2026-01-
|
|
|
10708
10708
|
alertContent: kn,
|
|
10709
10709
|
alertVariant: "info"
|
|
10710
10710
|
}), Zn.processing, {
|
|
10711
|
-
alertContent: /* @__PURE__ */ O(
|
|
10711
|
+
alertContent: /* @__PURE__ */ O(Ie, { children: [
|
|
10712
10712
|
"You've completed the setup for ",
|
|
10713
10713
|
z,
|
|
10714
10714
|
". The analysis is now processing. You'll see the results here once it's ready. We'll also notify you by email."
|
|
10715
10715
|
] }),
|
|
10716
10716
|
alertVariant: "info"
|
|
10717
10717
|
}), Zn.failed, {
|
|
10718
|
-
alertContent: /* @__PURE__ */ p(
|
|
10718
|
+
alertContent: /* @__PURE__ */ p(Ie, { children: "Analysis failed. Try restarting the analysis or contact support if the issue persists." }),
|
|
10719
10719
|
alertVariant: "danger"
|
|
10720
10720
|
}), Zn.cancelled, {
|
|
10721
|
-
alertContent: /* @__PURE__ */ p(
|
|
10721
|
+
alertContent: /* @__PURE__ */ p(Ie, { children: "Analysis was cancelled. You can restart the analysis when ready." }),
|
|
10722
10722
|
alertVariant: "warning"
|
|
10723
10723
|
}), ht = !fe && (Y == null ? void 0 : Y.setupStatus) === "scheduledFirstAnalysis" ? "scheduledFirstAnalysis" : fe, bn = (o = qn[ht]) !== null && o !== void 0 ? o : {
|
|
10724
10724
|
alertContent: null,
|
|
@@ -10744,7 +10744,7 @@ var th = "perplexity_tooltip_dismissed", BC = /* @__PURE__ */ new Date("2026-01-
|
|
|
10744
10744
|
var re = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
10745
10745
|
C(!0), re && localStorage.setItem(th, "true");
|
|
10746
10746
|
};
|
|
10747
|
-
return /* @__PURE__ */ O(
|
|
10747
|
+
return /* @__PURE__ */ O(Ie, { children: [
|
|
10748
10748
|
/* @__PURE__ */ p(v0, { isOpen: dt, onClose: function() {
|
|
10749
10749
|
return gn(!1);
|
|
10750
10750
|
} }),
|
|
@@ -10754,14 +10754,14 @@ var th = "perplexity_tooltip_dismissed", BC = /* @__PURE__ */ new Date("2026-01-
|
|
|
10754
10754
|
analysisId: d,
|
|
10755
10755
|
scanId: w.id
|
|
10756
10756
|
});
|
|
10757
|
-
}, isLoading: zt, title: "Delete ".concat(vn(h), " analysis?"), description: /* @__PURE__ */ O(
|
|
10757
|
+
}, isLoading: zt, title: "Delete ".concat(vn(h), " analysis?"), description: /* @__PURE__ */ O(Ie, { children: [
|
|
10758
10758
|
/* @__PURE__ */ O("p", { children: [
|
|
10759
10759
|
"This will permanently delete the",
|
|
10760
10760
|
" ",
|
|
10761
10761
|
/* @__PURE__ */ p("b", { children: vn(h) }),
|
|
10762
10762
|
" analysis for",
|
|
10763
10763
|
" ",
|
|
10764
|
-
/* @__PURE__ */ p("b", { children: w != null && w.finishedAt ?
|
|
10764
|
+
/* @__PURE__ */ p("b", { children: w != null && w.finishedAt ? Jr(new Date(w.finishedAt), "MMMM d, yyyy") : "this date" }),
|
|
10765
10765
|
". Analyses from other AI platforms for that date will not be affected."
|
|
10766
10766
|
] }),
|
|
10767
10767
|
/* @__PURE__ */ p("p", { children: "This action cannot be undone." })
|
|
@@ -10769,8 +10769,8 @@ var th = "perplexity_tooltip_dismissed", BC = /* @__PURE__ */ new Date("2026-01-
|
|
|
10769
10769
|
/* @__PURE__ */ p(We, { className: oe("yst-relative yst-overflow-visible", l), children: /* @__PURE__ */ O(We.Content, { className: "yst-mt-0", children: [
|
|
10770
10770
|
/* @__PURE__ */ O("div", { className: "yst-flex yst-flex-1 yst-flex-col yst-flex-wrap yst-items-start yst-justify-between yst-gap-4 md:yst-flex-row xl:yst-items-center", children: [
|
|
10771
10771
|
/* @__PURE__ */ p("div", { className: "xl:yst-max-w-1/4", children: /* @__PURE__ */ O("div", { className: "yst-flex yst-flex-col yst-gap-2 lg:yst-gap-2 xl:yst-flex-row xl:yst-items-baseline", children: [
|
|
10772
|
-
/* @__PURE__ */ p(rt, { children: /* @__PURE__ */ O(
|
|
10773
|
-
D ? /* @__PURE__ */ p(Ve, { className: "yst-inline-block yst-h-8 yst-w-64" }) : /* @__PURE__ */ O(
|
|
10772
|
+
/* @__PURE__ */ p(rt, { children: /* @__PURE__ */ O(Ie, { children: [
|
|
10773
|
+
D ? /* @__PURE__ */ p(Ve, { className: "yst-inline-block yst-h-8 yst-w-64" }) : /* @__PURE__ */ O(Ie, { children: [
|
|
10774
10774
|
"Hi",
|
|
10775
10775
|
L && " ".concat(L),
|
|
10776
10776
|
","
|
|
@@ -10824,7 +10824,7 @@ var th = "perplexity_tooltip_dismissed", BC = /* @__PURE__ */ new Date("2026-01-
|
|
|
10824
10824
|
/* @__PURE__ */ O(jl, { className: "yst-relative", children: [
|
|
10825
10825
|
/* @__PURE__ */ p("div", { className: "yst-flex yst-items-center yst-gap-2", children: /* @__PURE__ */ p(El, { htmlFor: "ai-tool", children: "AI platform" }) }),
|
|
10826
10826
|
/* @__PURE__ */ p(Ao, { onChange: function(K) {
|
|
10827
|
-
Object.values(
|
|
10827
|
+
Object.values(Si).includes(K) ? y(K) : console.error("Invalid AI provider selected:", K), K === Si.perplexity && he();
|
|
10828
10828
|
}, id: "ai-tool", value: h, options: q || G ? [{
|
|
10829
10829
|
value: h,
|
|
10830
10830
|
label: "Loading..."
|
|
@@ -10872,9 +10872,9 @@ var th = "perplexity_tooltip_dismissed", BC = /* @__PURE__ */ new Date("2026-01-
|
|
|
10872
10872
|
),
|
|
10873
10873
|
/* @__PURE__ */ p(pe, { variant: "primary", size: "small", onClick: function() {
|
|
10874
10874
|
var K = ze.find(function(re) {
|
|
10875
|
-
return re.value ===
|
|
10875
|
+
return re.value === Si.perplexity;
|
|
10876
10876
|
});
|
|
10877
|
-
K && y(
|
|
10877
|
+
K && y(Si.perplexity), he(!0);
|
|
10878
10878
|
}, children: "Select Perplexity" })
|
|
10879
10879
|
] })
|
|
10880
10880
|
] })
|
|
@@ -10891,10 +10891,10 @@ var th = "perplexity_tooltip_dismissed", BC = /* @__PURE__ */ new Date("2026-01-
|
|
|
10891
10891
|
fe !== Zn.completed && wt && /* @__PURE__ */ p(en, { className: "md:yst-col-span-2", variant: xl, children: wt }),
|
|
10892
10892
|
ha && /* @__PURE__ */ O(en, { variant: "warning", children: [
|
|
10893
10893
|
"Note: This scan is not up to date with your current brand groups.",
|
|
10894
|
-
ee ? /* @__PURE__ */ O(
|
|
10894
|
+
ee ? /* @__PURE__ */ O(Ie, { children: [
|
|
10895
10895
|
" ",
|
|
10896
10896
|
"We're updating your sentiment analysis to reflect your new brand groups. This may take a few minutes."
|
|
10897
|
-
] }) : /* @__PURE__ */ p(
|
|
10897
|
+
] }) : /* @__PURE__ */ p(Ie, { children: " Newer scans will use your newly selected brand groupings." })
|
|
10898
10898
|
] })
|
|
10899
10899
|
] }),
|
|
10900
10900
|
wl && /* @__PURE__ */ p(en, { variant: "info", className: "yst-mb-6", children: /* @__PURE__ */ p("div", { className: "yst-flex yst-items-start yst-gap-3", children: /* @__PURE__ */ O("div", { className: "yst-flex-1", children: [
|
|
@@ -11273,13 +11273,13 @@ function s5(t) {
|
|
|
11273
11273
|
function o5(t) {
|
|
11274
11274
|
return t && (t.a < 255 ? `rgba(${t.r}, ${t.g}, ${t.b}, ${$n(t.a)})` : `rgb(${t.r}, ${t.g}, ${t.b})`);
|
|
11275
11275
|
}
|
|
11276
|
-
const Fl = (t) => t <= 31308e-7 ? t * 12.92 : Math.pow(t, 1 / 2.4) * 1.055 - 0.055,
|
|
11276
|
+
const Fl = (t) => t <= 31308e-7 ? t * 12.92 : Math.pow(t, 1 / 2.4) * 1.055 - 0.055, ki = (t) => t <= 0.04045 ? t / 12.92 : Math.pow((t + 0.055) / 1.055, 2.4);
|
|
11277
11277
|
function l5(t, e, n) {
|
|
11278
|
-
const r =
|
|
11278
|
+
const r = ki($n(t.r)), i = ki($n(t.g)), a = ki($n(t.b));
|
|
11279
11279
|
return {
|
|
11280
|
-
r: Mr(Fl(r + n * (
|
|
11281
|
-
g: Mr(Fl(i + n * (
|
|
11282
|
-
b: Mr(Fl(a + n * (
|
|
11280
|
+
r: Mr(Fl(r + n * (ki($n(e.r)) - r))),
|
|
11281
|
+
g: Mr(Fl(i + n * (ki($n(e.g)) - i))),
|
|
11282
|
+
b: Mr(Fl(a + n * (ki($n(e.b)) - a))),
|
|
11283
11283
|
a: t.a + n * (e.a - t.a)
|
|
11284
11284
|
};
|
|
11285
11285
|
}
|
|
@@ -11397,7 +11397,7 @@ function Ke(t) {
|
|
|
11397
11397
|
const e = Object.prototype.toString.call(t);
|
|
11398
11398
|
return e.slice(0, 7) === "[object" && e.slice(-6) === "Array]";
|
|
11399
11399
|
}
|
|
11400
|
-
function
|
|
11400
|
+
function Le(t) {
|
|
11401
11401
|
return t !== null && Object.prototype.toString.call(t) === "[object Object]";
|
|
11402
11402
|
}
|
|
11403
11403
|
function ut(t) {
|
|
@@ -11419,7 +11419,7 @@ function je(t, e, n, r) {
|
|
|
11419
11419
|
if (Ke(t))
|
|
11420
11420
|
for (a = t.length, i = 0; i < a; i++)
|
|
11421
11421
|
e.call(n, t[i], i);
|
|
11422
|
-
else if (
|
|
11422
|
+
else if (Le(t))
|
|
11423
11423
|
for (s = Object.keys(t), a = s.length, i = 0; i < a; i++)
|
|
11424
11424
|
e.call(n, t[s[i]], s[i]);
|
|
11425
11425
|
}
|
|
@@ -11435,7 +11435,7 @@ function Mo(t, e) {
|
|
|
11435
11435
|
function No(t) {
|
|
11436
11436
|
if (Ke(t))
|
|
11437
11437
|
return t.map(No);
|
|
11438
|
-
if (
|
|
11438
|
+
if (Le(t)) {
|
|
11439
11439
|
const e = /* @__PURE__ */ Object.create(null), n = Object.keys(t), r = n.length;
|
|
11440
11440
|
let i = 0;
|
|
11441
11441
|
for (; i < r; ++i)
|
|
@@ -11455,19 +11455,19 @@ function f5(t, e, n, r) {
|
|
|
11455
11455
|
if (!j0(t))
|
|
11456
11456
|
return;
|
|
11457
11457
|
const i = e[t], a = n[t];
|
|
11458
|
-
|
|
11458
|
+
Le(i) && Le(a) ? ls(i, a, r) : e[t] = No(a);
|
|
11459
11459
|
}
|
|
11460
11460
|
function ls(t, e, n) {
|
|
11461
11461
|
const r = Ke(e) ? e : [
|
|
11462
11462
|
e
|
|
11463
11463
|
], i = r.length;
|
|
11464
|
-
if (!
|
|
11464
|
+
if (!Le(t))
|
|
11465
11465
|
return t;
|
|
11466
11466
|
n = n || {};
|
|
11467
11467
|
const a = n.merger || f5;
|
|
11468
11468
|
let s;
|
|
11469
11469
|
for (let o = 0; o < i; ++o) {
|
|
11470
|
-
if (s = r[o], !
|
|
11470
|
+
if (s = r[o], !Le(s))
|
|
11471
11471
|
continue;
|
|
11472
11472
|
const l = Object.keys(s);
|
|
11473
11473
|
for (let u = 0, c = l.length; u < c; ++u)
|
|
@@ -11484,7 +11484,7 @@ function h5(t, e, n) {
|
|
|
11484
11484
|
if (!j0(t))
|
|
11485
11485
|
return;
|
|
11486
11486
|
const r = e[t], i = n[t];
|
|
11487
|
-
|
|
11487
|
+
Le(r) && Le(i) ? Ua(r, i) : Object.prototype.hasOwnProperty.call(e, t) || (e[t] = No(i));
|
|
11488
11488
|
}
|
|
11489
11489
|
const oh = {
|
|
11490
11490
|
// Chart.helpers.core resolveObjectKey should resolve empty key to root object
|
|
@@ -11601,7 +11601,7 @@ function dn(t, e, n) {
|
|
|
11601
11601
|
function k5(t) {
|
|
11602
11602
|
return dn(t, -32768, 32767);
|
|
11603
11603
|
}
|
|
11604
|
-
function
|
|
11604
|
+
function Ti(t, e, n, r = 1e-6) {
|
|
11605
11605
|
return t >= Math.min(e, n) - r && t <= Math.max(e, n) + r;
|
|
11606
11606
|
}
|
|
11607
11607
|
function rd(t, e, n) {
|
|
@@ -11614,7 +11614,7 @@ function rd(t, e, n) {
|
|
|
11614
11614
|
hi: r
|
|
11615
11615
|
};
|
|
11616
11616
|
}
|
|
11617
|
-
const
|
|
11617
|
+
const Zr = (t, e, n, r) => rd(t, n, r ? (i) => {
|
|
11618
11618
|
const a = t[i][e];
|
|
11619
11619
|
return a < n || a === n && t[i + 1][e] === n;
|
|
11620
11620
|
} : (i) => t[i][e] < n), E5 = (t, e, n) => rd(t, n, (r) => t[r][e] >= n);
|
|
@@ -11701,9 +11701,9 @@ function M5(t, e, n) {
|
|
|
11701
11701
|
if (f) {
|
|
11702
11702
|
if (i = Math.min(
|
|
11703
11703
|
// @ts-expect-error Need to type _parsed
|
|
11704
|
-
|
|
11704
|
+
Zr(l, c, d).lo,
|
|
11705
11705
|
// @ts-expect-error Need to fix types on _lookupByKey
|
|
11706
|
-
n ? r :
|
|
11706
|
+
n ? r : Zr(e, c, s.getPixelForValue(d)).lo
|
|
11707
11707
|
), u) {
|
|
11708
11708
|
const m = l.slice(0, i + 1).reverse().findIndex((v) => !Fe(v[o.axis]));
|
|
11709
11709
|
i -= Math.max(0, m);
|
|
@@ -11713,9 +11713,9 @@ function M5(t, e, n) {
|
|
|
11713
11713
|
if (y) {
|
|
11714
11714
|
let m = Math.max(
|
|
11715
11715
|
// @ts-expect-error Need to type _parsed
|
|
11716
|
-
|
|
11716
|
+
Zr(l, s.axis, h, !0).hi + 1,
|
|
11717
11717
|
// @ts-expect-error Need to fix types on _lookupByKey
|
|
11718
|
-
n ? 0 :
|
|
11718
|
+
n ? 0 : Zr(e, c, s.getPixelForValue(h), !0).hi + 1
|
|
11719
11719
|
);
|
|
11720
11720
|
if (u) {
|
|
11721
11721
|
const v = l.slice(m - 1).findIndex((g) => !Fe(g[o.axis]));
|
|
@@ -11984,7 +11984,7 @@ function U5(t) {
|
|
|
11984
11984
|
_indexable: (e) => e !== "backdropPadding"
|
|
11985
11985
|
});
|
|
11986
11986
|
}
|
|
11987
|
-
const
|
|
11987
|
+
const mi = /* @__PURE__ */ Object.create(null), Zu = /* @__PURE__ */ Object.create(null);
|
|
11988
11988
|
function Wa(t, e) {
|
|
11989
11989
|
if (!e)
|
|
11990
11990
|
return t;
|
|
@@ -12028,7 +12028,7 @@ class H5 {
|
|
|
12028
12028
|
return Ul(Zu, e, n);
|
|
12029
12029
|
}
|
|
12030
12030
|
override(e, n) {
|
|
12031
|
-
return Ul(
|
|
12031
|
+
return Ul(mi, e, n);
|
|
12032
12032
|
}
|
|
12033
12033
|
route(e, n, r, i) {
|
|
12034
12034
|
const a = Wa(this, e), s = Wa(this, r), o = "_" + n;
|
|
@@ -12041,7 +12041,7 @@ class H5 {
|
|
|
12041
12041
|
enumerable: !0,
|
|
12042
12042
|
get() {
|
|
12043
12043
|
const l = this[o], u = s[i];
|
|
12044
|
-
return
|
|
12044
|
+
return Le(l) ? Object.assign({}, u, l) : Oe(l, u);
|
|
12045
12045
|
},
|
|
12046
12046
|
set(l) {
|
|
12047
12047
|
this[o] = l;
|
|
@@ -12195,7 +12195,7 @@ function K5(t, e) {
|
|
|
12195
12195
|
const n = t.fillStyle;
|
|
12196
12196
|
t.fillStyle = e.color, t.fillRect(e.left, e.top, e.width, e.height), t.fillStyle = n;
|
|
12197
12197
|
}
|
|
12198
|
-
function
|
|
12198
|
+
function gi(t, e, n, r, i, a = {}) {
|
|
12199
12199
|
const s = Ke(e) ? e : [
|
|
12200
12200
|
e
|
|
12201
12201
|
], o = a.strokeWidth > 0 && a.strokeColor !== "";
|
|
@@ -12224,7 +12224,7 @@ function Z5(t, e) {
|
|
|
12224
12224
|
}
|
|
12225
12225
|
const $5 = (t) => +t || 0;
|
|
12226
12226
|
function G0(t, e) {
|
|
12227
|
-
const n = {}, r =
|
|
12227
|
+
const n = {}, r = Le(e), i = r ? Object.keys(e) : e, a = Le(t) ? r ? (s) => Oe(t[s], t[e[s]]) : (s) => t[s] : () => t;
|
|
12228
12228
|
for (const s of i)
|
|
12229
12229
|
n[s] = $5(a(s));
|
|
12230
12230
|
return n;
|
|
@@ -12418,7 +12418,7 @@ function Y0(t, e = {
|
|
|
12418
12418
|
isIndexable: Rr(r) ? r : () => r
|
|
12419
12419
|
};
|
|
12420
12420
|
}
|
|
12421
|
-
const n6 = (t, e) => t ? t + td(e) : e, ld = (t, e) =>
|
|
12421
|
+
const n6 = (t, e) => t ? t + td(e) : e, ld = (t, e) => Le(e) && t !== "adapters" && (Object.getPrototypeOf(e) === null || e.constructor === Object);
|
|
12422
12422
|
function V0(t, e, n) {
|
|
12423
12423
|
if (Object.prototype.hasOwnProperty.call(t, e) || e === "constructor")
|
|
12424
12424
|
return t[e];
|
|
@@ -12442,7 +12442,7 @@ function a6(t, e, n, r) {
|
|
|
12442
12442
|
const { _proxy: i, _context: a, _subProxy: s, _descriptors: o } = n;
|
|
12443
12443
|
if (typeof a.index != "undefined" && r(t))
|
|
12444
12444
|
return e[a.index % e.length];
|
|
12445
|
-
if (
|
|
12445
|
+
if (Le(e[0])) {
|
|
12446
12446
|
const l = e, u = i._scopes.filter((c) => c !== l);
|
|
12447
12447
|
e = [];
|
|
12448
12448
|
for (const c of l) {
|
|
@@ -12489,7 +12489,7 @@ function l6(t, e, n) {
|
|
|
12489
12489
|
const r = t._getTarget();
|
|
12490
12490
|
e in r || (r[e] = {});
|
|
12491
12491
|
const i = r[e];
|
|
12492
|
-
return Ke(i) &&
|
|
12492
|
+
return Ke(i) && Le(n) ? n : i || {};
|
|
12493
12493
|
}
|
|
12494
12494
|
function u6(t, e, n, r) {
|
|
12495
12495
|
let i;
|
|
@@ -12618,7 +12618,7 @@ const x6 = [
|
|
|
12618
12618
|
"bottom",
|
|
12619
12619
|
"left"
|
|
12620
12620
|
];
|
|
12621
|
-
function
|
|
12621
|
+
function di(t, e, n) {
|
|
12622
12622
|
const r = {};
|
|
12623
12623
|
n = n ? "-" + n : "";
|
|
12624
12624
|
for (let i = 0; i < 4; i++) {
|
|
@@ -12646,7 +12646,7 @@ function A6(t, e) {
|
|
|
12646
12646
|
function Qr(t, e) {
|
|
12647
12647
|
if ("native" in t)
|
|
12648
12648
|
return t;
|
|
12649
|
-
const { canvas: n, currentDevicePixelRatio: r } = e, i = fl(n), a = i.boxSizing === "border-box", s =
|
|
12649
|
+
const { canvas: n, currentDevicePixelRatio: r } = e, i = fl(n), a = i.boxSizing === "border-box", s = di(i, "padding"), o = di(i, "border", "width"), { x: l, y: u, box: c } = A6(t, n), d = s.left + (c && o.left), h = s.top + (c && o.top);
|
|
12650
12650
|
let { width: f, height: y } = e;
|
|
12651
12651
|
return a && (f -= s.width + o.width, y -= s.height + o.height), {
|
|
12652
12652
|
x: Math.round((l - d) / f * n.width / r),
|
|
@@ -12660,7 +12660,7 @@ function S6(t, e, n) {
|
|
|
12660
12660
|
if (!a)
|
|
12661
12661
|
e = t.clientWidth, n = t.clientHeight;
|
|
12662
12662
|
else {
|
|
12663
|
-
const s = a.getBoundingClientRect(), o = fl(a), l =
|
|
12663
|
+
const s = a.getBoundingClientRect(), o = fl(a), l = di(o, "border", "width"), u = di(o, "padding");
|
|
12664
12664
|
e = s.width - u.width - l.width, n = s.height - u.height - l.height, r = jo(o.maxWidth, a, "clientWidth"), i = jo(o.maxHeight, a, "clientHeight");
|
|
12665
12665
|
}
|
|
12666
12666
|
}
|
|
@@ -12673,10 +12673,10 @@ function S6(t, e, n) {
|
|
|
12673
12673
|
}
|
|
12674
12674
|
const Pr = (t) => Math.round(t * 10) / 10;
|
|
12675
12675
|
function C6(t, e, n, r) {
|
|
12676
|
-
const i = fl(t), a =
|
|
12676
|
+
const i = fl(t), a = di(i, "margin"), s = jo(i.maxWidth, t, "clientWidth") || _o, o = jo(i.maxHeight, t, "clientHeight") || _o, l = S6(t, e, n);
|
|
12677
12677
|
let { width: u, height: c } = l;
|
|
12678
12678
|
if (i.boxSizing === "content-box") {
|
|
12679
|
-
const h =
|
|
12679
|
+
const h = di(i, "border", "width"), f = di(i, "padding");
|
|
12680
12680
|
u -= f.width + h.width, c -= f.height + h.height;
|
|
12681
12681
|
}
|
|
12682
12682
|
return u = Math.max(0, u - a.width), c = Math.max(0, r ? u / r : c - a.height), u = Pr(Math.min(u, s, l.maxWidth)), c = Pr(Math.min(c, o, l.maxHeight)), u && !c && (c = Pr(u / 2)), (e !== void 0 || n !== void 0) && r && l.height && c > l.height && (c = l.height, u = Pr(Math.floor(c * r))), {
|
|
@@ -12784,7 +12784,7 @@ function eg(t) {
|
|
|
12784
12784
|
compare: C5,
|
|
12785
12785
|
normalize: $t
|
|
12786
12786
|
} : {
|
|
12787
|
-
between:
|
|
12787
|
+
between: Ti,
|
|
12788
12788
|
compare: (e, n) => e - n,
|
|
12789
12789
|
normalize: (e) => e
|
|
12790
12790
|
};
|
|
@@ -13139,12 +13139,12 @@ class ig {
|
|
|
13139
13139
|
this._chart = e, this._properties = /* @__PURE__ */ new Map(), this.configure(n);
|
|
13140
13140
|
}
|
|
13141
13141
|
configure(e) {
|
|
13142
|
-
if (!
|
|
13142
|
+
if (!Le(e))
|
|
13143
13143
|
return;
|
|
13144
13144
|
const n = Object.keys(Ze.animation), r = this._properties;
|
|
13145
13145
|
Object.getOwnPropertyNames(e).forEach((i) => {
|
|
13146
13146
|
const a = e[i];
|
|
13147
|
-
if (!
|
|
13147
|
+
if (!Le(a))
|
|
13148
13148
|
return;
|
|
13149
13149
|
const s = {};
|
|
13150
13150
|
for (const o of n)
|
|
@@ -13245,7 +13245,7 @@ function H6(t, e, n) {
|
|
|
13245
13245
|
}
|
|
13246
13246
|
function q6(t) {
|
|
13247
13247
|
let e, n, r, i;
|
|
13248
|
-
return
|
|
13248
|
+
return Le(t) ? (e = t.top, n = t.right, r = t.bottom, i = t.left) : e = n = r = i = t, {
|
|
13249
13249
|
top: e,
|
|
13250
13250
|
right: n,
|
|
13251
13251
|
bottom: r,
|
|
@@ -13401,7 +13401,7 @@ class _i {
|
|
|
13401
13401
|
}
|
|
13402
13402
|
_dataCheck() {
|
|
13403
13403
|
const e = this.getDataset(), n = e.data || (e.data = []), r = this._data;
|
|
13404
|
-
if (
|
|
13404
|
+
if (Le(n)) {
|
|
13405
13405
|
const i = this._cachedMeta;
|
|
13406
13406
|
this._data = W6(n, i);
|
|
13407
13407
|
} else if (r !== n) {
|
|
@@ -13434,7 +13434,7 @@ class _i {
|
|
|
13434
13434
|
if (this._parsing === !1)
|
|
13435
13435
|
r._parsed = i, r._sorted = !0, h = i;
|
|
13436
13436
|
else {
|
|
13437
|
-
Ke(i[e]) ? h = this.parseArrayData(r, i, e, n) :
|
|
13437
|
+
Ke(i[e]) ? h = this.parseArrayData(r, i, e, n) : Le(i[e]) ? h = this.parseObjectData(r, i, e, n) : h = this.parsePrimitiveData(r, i, e, n);
|
|
13438
13438
|
const f = () => d[o] === null || u && d[o] < u[o];
|
|
13439
13439
|
for (c = 0; c < n; ++c)
|
|
13440
13440
|
r._parsed[c + e] = d = h[c], l && (f() && (l = !1), u = d);
|
|
@@ -13884,7 +13884,7 @@ var J6 = {
|
|
|
13884
13884
|
function Z6(t, e, n, r) {
|
|
13885
13885
|
const { controller: i, data: a, _sorted: s } = t, o = i._cachedMeta.iScale, l = t.dataset && t.dataset.options ? t.dataset.options.spanGaps : null;
|
|
13886
13886
|
if (o && e === o.axis && e !== "r" && s && a.length) {
|
|
13887
|
-
const u = o._reversePixels ? E5 :
|
|
13887
|
+
const u = o._reversePixels ? E5 : Zr;
|
|
13888
13888
|
if (r) {
|
|
13889
13889
|
if (i._sharedOptions) {
|
|
13890
13890
|
const c = a[0], d = typeof c.getRange == "function" && c.getRange(e);
|
|
@@ -14121,7 +14121,7 @@ function og(t, e) {
|
|
|
14121
14121
|
}
|
|
14122
14122
|
function o4(t, e, n, r) {
|
|
14123
14123
|
const { pos: i, box: a } = n, s = t.maxPadding;
|
|
14124
|
-
if (!
|
|
14124
|
+
if (!Le(i)) {
|
|
14125
14125
|
n.size && (t[i] -= n.size);
|
|
14126
14126
|
const d = r[n.stack] || {
|
|
14127
14127
|
size: 0,
|
|
@@ -14617,13 +14617,13 @@ function D4(t, e, n, r) {
|
|
|
14617
14617
|
let d = 0, h, f, y;
|
|
14618
14618
|
const m = s - i, v = o - a;
|
|
14619
14619
|
if (t.isHorizontal()) {
|
|
14620
|
-
if (f = yt(r, a, o),
|
|
14620
|
+
if (f = yt(r, a, o), Le(n)) {
|
|
14621
14621
|
const g = Object.keys(n)[0], A = n[g];
|
|
14622
14622
|
y = c[g].getPixelForValue(A) + m - e;
|
|
14623
14623
|
} else n === "center" ? y = (u.bottom + u.top) / 2 + m - e : y = Bh(t, n, e);
|
|
14624
14624
|
h = o - a;
|
|
14625
14625
|
} else {
|
|
14626
|
-
if (
|
|
14626
|
+
if (Le(n)) {
|
|
14627
14627
|
const g = Object.keys(n)[0], A = n[g];
|
|
14628
14628
|
f = c[g].getPixelForValue(A) - v + e;
|
|
14629
14629
|
} else n === "center" ? f = (u.left + u.right) / 2 - v + e : f = Bh(t, n, e);
|
|
@@ -14954,7 +14954,7 @@ class ca extends ur {
|
|
|
14954
14954
|
else if (n === "x") {
|
|
14955
14955
|
if (s === "center")
|
|
14956
14956
|
A = g((e.top + e.bottom) / 2 + 0.5);
|
|
14957
|
-
else if (
|
|
14957
|
+
else if (Le(s)) {
|
|
14958
14958
|
const j = Object.keys(s)[0], B = s[j];
|
|
14959
14959
|
A = g(this.chart.scales[j].getPixelForValue(B));
|
|
14960
14960
|
}
|
|
@@ -14962,7 +14962,7 @@ class ca extends ur {
|
|
|
14962
14962
|
} else if (n === "y") {
|
|
14963
14963
|
if (s === "center")
|
|
14964
14964
|
A = g((e.left + e.right) / 2);
|
|
14965
|
-
else if (
|
|
14965
|
+
else if (Le(s)) {
|
|
14966
14966
|
const j = Object.keys(s)[0], B = s[j];
|
|
14967
14967
|
A = g(this.chart.scales[j].getPixelForValue(B));
|
|
14968
14968
|
}
|
|
@@ -15008,7 +15008,7 @@ class ca extends ur {
|
|
|
15008
15008
|
} else if (n === "x") {
|
|
15009
15009
|
if (i === "center")
|
|
15010
15010
|
b = (e.top + e.bottom) / 2 + f;
|
|
15011
|
-
else if (
|
|
15011
|
+
else if (Le(i)) {
|
|
15012
15012
|
const P = Object.keys(i)[0], j = i[P];
|
|
15013
15013
|
b = this.chart.scales[P].getPixelForValue(j) + f;
|
|
15014
15014
|
}
|
|
@@ -15016,7 +15016,7 @@ class ca extends ur {
|
|
|
15016
15016
|
} else if (n === "y") {
|
|
15017
15017
|
if (i === "center")
|
|
15018
15018
|
C = (e.left + e.right) / 2 - f;
|
|
15019
|
-
else if (
|
|
15019
|
+
else if (Le(i)) {
|
|
15020
15020
|
const P = Object.keys(i)[0], j = i[P];
|
|
15021
15021
|
C = this.chart.scales[P].getPixelForValue(j);
|
|
15022
15022
|
}
|
|
@@ -15173,7 +15173,7 @@ class ca extends ur {
|
|
|
15173
15173
|
const a = this.getLabelItems(e);
|
|
15174
15174
|
for (const s of a) {
|
|
15175
15175
|
const o = s.options, l = s.font, u = s.label, c = s.textOffset;
|
|
15176
|
-
|
|
15176
|
+
gi(r, u, 0, c, l, o);
|
|
15177
15177
|
}
|
|
15178
15178
|
i && dl(r);
|
|
15179
15179
|
}
|
|
@@ -15183,9 +15183,9 @@ class ca extends ur {
|
|
|
15183
15183
|
return;
|
|
15184
15184
|
const a = ot(r.font), s = gt(r.padding), o = r.align;
|
|
15185
15185
|
let l = a.lineHeight / 2;
|
|
15186
|
-
n === "bottom" || n === "center" ||
|
|
15186
|
+
n === "bottom" || n === "center" || Le(n) ? (l += s.bottom, Ke(r.text) && (l += a.lineHeight * (r.text.length - 1))) : l += s.top;
|
|
15187
15187
|
const { titleX: u, titleY: c, maxWidth: d, rotation: h } = D4(this, l, n, o);
|
|
15188
|
-
|
|
15188
|
+
gi(e, r.text, 0, 0, a, {
|
|
15189
15189
|
color: r.color,
|
|
15190
15190
|
maxWidth: d,
|
|
15191
15191
|
rotation: h,
|
|
@@ -15269,7 +15269,7 @@ class Xs {
|
|
|
15269
15269
|
}
|
|
15270
15270
|
unregister(e) {
|
|
15271
15271
|
const n = this.items, r = e.id, i = this.scope;
|
|
15272
|
-
r in n && delete n[r], i && r in Ze[i] && (delete Ze[i][r], this.override && delete
|
|
15272
|
+
r in n && delete n[r], i && r in Ze[i] && (delete Ze[i][r], this.override && delete mi[r]);
|
|
15273
15273
|
}
|
|
15274
15274
|
}
|
|
15275
15275
|
function B4(t, e, n) {
|
|
@@ -15500,12 +15500,12 @@ function K4(t, e) {
|
|
|
15500
15500
|
return {};
|
|
15501
15501
|
}
|
|
15502
15502
|
function X4(t, e) {
|
|
15503
|
-
const n =
|
|
15503
|
+
const n = mi[t.type] || {
|
|
15504
15504
|
scales: {}
|
|
15505
15505
|
}, r = e.scales || {}, i = ec(t.type, e), a = /* @__PURE__ */ Object.create(null);
|
|
15506
15506
|
return Object.keys(r).forEach((s) => {
|
|
15507
15507
|
const o = r[s];
|
|
15508
|
-
if (!
|
|
15508
|
+
if (!Le(o))
|
|
15509
15509
|
return console.error(`Invalid scale configuration for scale: ${s}`);
|
|
15510
15510
|
if (o._proxy)
|
|
15511
15511
|
return console.warn(`Ignoring resolver passed as options for scale: ${s}`);
|
|
@@ -15519,7 +15519,7 @@ function X4(t, e) {
|
|
|
15519
15519
|
c[u]
|
|
15520
15520
|
]);
|
|
15521
15521
|
}), t.data.datasets.forEach((s) => {
|
|
15522
|
-
const o = s.type || t.type, l = s.indexAxis || ec(o, e), c = (
|
|
15522
|
+
const o = s.type || t.type, l = s.indexAxis || ec(o, e), c = (mi[o] || {}).scales || {};
|
|
15523
15523
|
Object.keys(c).forEach((d) => {
|
|
15524
15524
|
const h = G4(d, l), f = s[h + "AxisID"] || h;
|
|
15525
15525
|
a[f] = a[f] || /* @__PURE__ */ Object.create(null), Ua(a[f], [
|
|
@@ -15642,7 +15642,7 @@ class Z4 {
|
|
|
15642
15642
|
return o;
|
|
15643
15643
|
const l = /* @__PURE__ */ new Set();
|
|
15644
15644
|
n.forEach((c) => {
|
|
15645
|
-
e && (l.add(e), c.forEach((d) => Ea(l, e, d))), c.forEach((d) => Ea(l, i, d)), c.forEach((d) => Ea(l,
|
|
15645
|
+
e && (l.add(e), c.forEach((d) => Ea(l, e, d))), c.forEach((d) => Ea(l, i, d)), c.forEach((d) => Ea(l, mi[a] || {}, d)), c.forEach((d) => Ea(l, Ze, d)), c.forEach((d) => Ea(l, Zu, d));
|
|
15646
15646
|
});
|
|
15647
15647
|
const u = Array.from(l);
|
|
15648
15648
|
return u.length === 0 && u.push(/* @__PURE__ */ Object.create(null)), hg.has(n) && s.set(n, u), u;
|
|
@@ -15651,7 +15651,7 @@ class Z4 {
|
|
|
15651
15651
|
const { options: e, type: n } = this;
|
|
15652
15652
|
return [
|
|
15653
15653
|
e,
|
|
15654
|
-
|
|
15654
|
+
mi[n] || {},
|
|
15655
15655
|
Ze.datasets[n] || {},
|
|
15656
15656
|
{
|
|
15657
15657
|
type: n
|
|
@@ -15680,7 +15680,7 @@ class Z4 {
|
|
|
15680
15680
|
""
|
|
15681
15681
|
], i) {
|
|
15682
15682
|
const { resolver: a } = Wh(this._resolverCache, e, r);
|
|
15683
|
-
return
|
|
15683
|
+
return Le(n) ? $i(a, n, void 0, i) : a;
|
|
15684
15684
|
}
|
|
15685
15685
|
}
|
|
15686
15686
|
function Wh(t, e, n) {
|
|
@@ -15693,7 +15693,7 @@ function Wh(t, e, n) {
|
|
|
15693
15693
|
subPrefixes: n.filter((o) => !o.toLowerCase().includes("hover"))
|
|
15694
15694
|
}, r.set(i, a)), a;
|
|
15695
15695
|
}
|
|
15696
|
-
const $4 = (t) =>
|
|
15696
|
+
const $4 = (t) => Le(t) && Object.getOwnPropertyNames(t).some((e) => Rr(t[e]));
|
|
15697
15697
|
function ek(t, e) {
|
|
15698
15698
|
const { isScriptable: n, isIndexable: r } = Y0(t);
|
|
15699
15699
|
for (const i of e) {
|
|
@@ -16226,7 +16226,7 @@ let pl = (mr = class {
|
|
|
16226
16226
|
const a = this.options.hover;
|
|
16227
16227
|
return this.getElementsAtEventForMode(e, a.mode, a, i);
|
|
16228
16228
|
}
|
|
16229
|
-
}, ye(mr, "defaults", Ze), ye(mr, "instances", vo), ye(mr, "overrides",
|
|
16229
|
+
}, ye(mr, "defaults", Ze), ye(mr, "instances", vo), ye(mr, "overrides", mi), ye(mr, "registry", Ln), ye(mr, "version", tk), ye(mr, "getChart", Vh), mr);
|
|
16230
16230
|
function Kh() {
|
|
16231
16231
|
return je(pl.instances, (t) => t._plugins.invalidate());
|
|
16232
16232
|
}
|
|
@@ -16559,7 +16559,7 @@ function gk(t, e, n) {
|
|
|
16559
16559
|
}
|
|
16560
16560
|
function vk(t, e, n) {
|
|
16561
16561
|
const r = Ak(t);
|
|
16562
|
-
if (
|
|
16562
|
+
if (Le(r))
|
|
16563
16563
|
return isNaN(r.value) ? !1 : r;
|
|
16564
16564
|
let i = parseFloat(r);
|
|
16565
16565
|
return ut(i) && Math.floor(i) === i ? bk(r[0], e, i, n) : [
|
|
@@ -16575,11 +16575,11 @@ function bk(t, e, n, r) {
|
|
|
16575
16575
|
}
|
|
16576
16576
|
function xk(t, e) {
|
|
16577
16577
|
let n = null;
|
|
16578
|
-
return t === "start" ? n = e.bottom : t === "end" ? n = e.top :
|
|
16578
|
+
return t === "start" ? n = e.bottom : t === "end" ? n = e.top : Le(t) ? n = e.getPixelForValue(t.value) : e.getBasePixel && (n = e.getBasePixel()), n;
|
|
16579
16579
|
}
|
|
16580
16580
|
function wk(t, e, n) {
|
|
16581
16581
|
let r;
|
|
16582
|
-
return t === "start" ? r = n : t === "end" ? r = e.options.reverse ? e.min : e.max :
|
|
16582
|
+
return t === "start" ? r = n : t === "end" ? r = e.options.reverse ? e.min : e.max : Le(t) ? r = t.value : r = e.getBaseValue(), r;
|
|
16583
16583
|
}
|
|
16584
16584
|
function Ak(t) {
|
|
16585
16585
|
const e = t.options, n = e.fill;
|
|
@@ -16633,7 +16633,7 @@ function Ek(t, e, n) {
|
|
|
16633
16633
|
let o = !1, l = !1;
|
|
16634
16634
|
for (let u = 0; u < a.length; u++) {
|
|
16635
16635
|
const c = a[u], d = s[c.start][n], h = s[c.end][n];
|
|
16636
|
-
if (
|
|
16636
|
+
if (Ti(i, d, h)) {
|
|
16637
16637
|
o = i === d, l = i === h;
|
|
16638
16638
|
break;
|
|
16639
16639
|
}
|
|
@@ -16968,7 +16968,7 @@ class rp extends ur {
|
|
|
16968
16968
|
}
|
|
16969
16969
|
i.restore();
|
|
16970
16970
|
}, A = function(b, w, x) {
|
|
16971
|
-
|
|
16971
|
+
gi(i, x.text, b, w + v / 2, u, {
|
|
16972
16972
|
strikethrough: x.hidden,
|
|
16973
16973
|
textAlign: l.textAlign(x.textAlign)
|
|
16974
16974
|
});
|
|
@@ -17011,7 +17011,7 @@ class rp extends ur {
|
|
|
17011
17011
|
c = u + yt(e.align, this.top, this.bottom - y - e.labels.padding - this._computeTitleHeight());
|
|
17012
17012
|
}
|
|
17013
17013
|
const f = yt(o, d, d + h);
|
|
17014
|
-
s.textAlign = a.textAlign(id(o)), s.textBaseline = "middle", s.strokeStyle = n.color, s.fillStyle = n.color, s.font = r.string,
|
|
17014
|
+
s.textAlign = a.textAlign(id(o)), s.textBaseline = "middle", s.strokeStyle = n.color, s.fillStyle = n.color, s.font = r.string, gi(s, n.text, f, c, r);
|
|
17015
17015
|
}
|
|
17016
17016
|
_computeTitleHeight() {
|
|
17017
17017
|
const e = this.options.title, n = ot(e.font), r = gt(e.padding);
|
|
@@ -17019,9 +17019,9 @@ class rp extends ur {
|
|
|
17019
17019
|
}
|
|
17020
17020
|
_getLegendItemAt(e, n) {
|
|
17021
17021
|
let r, i, a;
|
|
17022
|
-
if (
|
|
17022
|
+
if (Ti(e, this.left, this.right) && Ti(n, this.top, this.bottom)) {
|
|
17023
17023
|
for (a = this.legendHitBoxes, r = 0; r < a.length; ++r)
|
|
17024
|
-
if (i = a[r],
|
|
17024
|
+
if (i = a[r], Ti(e, i.left, i.left + i.width) && Ti(n, i.top, i.top + i.height))
|
|
17025
17025
|
return this.legendItems[r];
|
|
17026
17026
|
}
|
|
17027
17027
|
return null;
|
|
@@ -17190,7 +17190,7 @@ class xg extends ur {
|
|
|
17190
17190
|
if (!n.display)
|
|
17191
17191
|
return;
|
|
17192
17192
|
const r = ot(n.font), a = r.lineHeight / 2 + this._padding.top, { titleX: s, titleY: o, maxWidth: l, rotation: u } = this._drawArgs(a);
|
|
17193
|
-
|
|
17193
|
+
gi(e, n.text, 0, 0, r, {
|
|
17194
17194
|
color: n.color,
|
|
17195
17195
|
maxWidth: l,
|
|
17196
17196
|
rotation: u,
|
|
@@ -17555,7 +17555,7 @@ class ic extends ur {
|
|
|
17555
17555
|
}, v = i.leftForLtr(h, u) + u / 2, g = y + l / 2;
|
|
17556
17556
|
e.strokeStyle = a.multiKeyBackground, e.fillStyle = a.multiKeyBackground, $u(e, m, v, g), e.strokeStyle = s.borderColor, e.fillStyle = s.backgroundColor, $u(e, m, v, g);
|
|
17557
17557
|
} else {
|
|
17558
|
-
e.lineWidth =
|
|
17558
|
+
e.lineWidth = Le(s.borderWidth) ? Math.max(...Object.values(s.borderWidth)) : s.borderWidth || 1, e.strokeStyle = s.borderColor, e.setLineDash(s.borderDash || []), e.lineDashOffset = s.borderDashOffset || 0;
|
|
17559
17559
|
const m = i.leftForLtr(h, u), v = i.leftForLtr(i.xPlus(h, 1), u - 2), g = Ni(s.borderRadius);
|
|
17560
17560
|
Object.values(g).some((A) => A !== 0) ? (e.beginPath(), e.fillStyle = a.multiKeyBackground, Bo(e, {
|
|
17561
17561
|
x: m,
|
|
@@ -18108,7 +18108,7 @@ function d8(t, e) {
|
|
|
18108
18108
|
const s = r.setContext(t.getPointLabelContext(i));
|
|
18109
18109
|
c8(n, s, a);
|
|
18110
18110
|
const o = ot(s.font), { x: l, y: u, textAlign: c } = a;
|
|
18111
|
-
|
|
18111
|
+
gi(n, t._pointLabels[i], l, u + o.lineHeight / 2, o, {
|
|
18112
18112
|
color: s.color,
|
|
18113
18113
|
textAlign: c,
|
|
18114
18114
|
textBaseline: "middle"
|
|
@@ -18255,7 +18255,7 @@ class Ba extends sc {
|
|
|
18255
18255
|
const d = gt(u.backdropPadding);
|
|
18256
18256
|
e.fillRect(-s / 2 - d.left, -a - c.size / 2 - d.top, s + d.width, c.size + d.height);
|
|
18257
18257
|
}
|
|
18258
|
-
|
|
18258
|
+
gi(e, o.label, 0, -a, c, {
|
|
18259
18259
|
color: u.color,
|
|
18260
18260
|
strokeColor: u.textStrokeColor,
|
|
18261
18261
|
strokeWidth: u.textStrokeWidth
|
|
@@ -18573,7 +18573,7 @@ ye(zo, "id", "time"), ye(zo, "defaults", {
|
|
|
18573
18573
|
});
|
|
18574
18574
|
function $s(t, e, n) {
|
|
18575
18575
|
let r = 0, i = t.length - 1, a, s, o, l;
|
|
18576
|
-
n ? (e >= t[r].pos && e <= t[i].pos && ({ lo: r, hi: i } =
|
|
18576
|
+
n ? (e >= t[r].pos && e <= t[i].pos && ({ lo: r, hi: i } = Zr(t, "pos", e)), { pos: a, time: o } = t[r], { pos: s, time: l } = t[i]) : (e >= t[r].time && e <= t[i].time && ({ lo: r, hi: i } = Zr(t, "time", e)), { time: a, pos: o } = t[r], { time: s, pos: l } = t[i]);
|
|
18577
18577
|
const u = s - a;
|
|
18578
18578
|
return u ? o + (l - o) * (e - a) / u : o;
|
|
18579
18579
|
}
|
|
@@ -18916,7 +18916,7 @@ var P8 = function() {
|
|
|
18916
18916
|
/* @__PURE__ */ p("strong", { className: "yst-font-medium yst-text-slate-800", children: o.title }),
|
|
18917
18917
|
/* @__PURE__ */ p("br", {}),
|
|
18918
18918
|
o.description,
|
|
18919
|
-
o.link && /* @__PURE__ */ O(
|
|
18919
|
+
o.link && /* @__PURE__ */ O(Ie, { children: [
|
|
18920
18920
|
/* @__PURE__ */ p("br", {}),
|
|
18921
18921
|
/* @__PURE__ */ p("span", { className: "yst-mt-2 yst-block", children: /* @__PURE__ */ O("a", { href: o.link.url, target: "_blank", rel: "noopener noreferrer", className: "yst-font-medium", children: [
|
|
18922
18922
|
o.link.text,
|
|
@@ -19128,7 +19128,7 @@ function U8() {
|
|
|
19128
19128
|
/* @__PURE__ */ p(
|
|
19129
19129
|
eo,
|
|
19130
19130
|
{
|
|
19131
|
-
value: typeof B == "number" && Number.isFinite(B) && B > 0 ? /* @__PURE__ */ O(
|
|
19131
|
+
value: typeof B == "number" && Number.isFinite(B) && B > 0 ? /* @__PURE__ */ O(Ie, { children: [
|
|
19132
19132
|
"#",
|
|
19133
19133
|
B,
|
|
19134
19134
|
B === 1 && " 🏆"
|
|
@@ -19204,7 +19204,7 @@ function G8(t) {
|
|
|
19204
19204
|
if (Array.isArray(t)) return t;
|
|
19205
19205
|
}
|
|
19206
19206
|
var Xl = function() {
|
|
19207
|
-
var e = Bt(), n = e.brandId, r = e.analysisId, i = r3(), a = i.isProduction, s = vt(), o =
|
|
19207
|
+
var e = Bt(), n = e.brandId, r = e.analysisId, i = r3(), a = i.isProduction, s = vt(), o = xi({
|
|
19208
19208
|
query: {
|
|
19209
19209
|
select: function(M) {
|
|
19210
19210
|
var P = M.data;
|
|
@@ -19781,7 +19781,7 @@ var pE = function(e) {
|
|
|
19781
19781
|
brandGroupId: i.id
|
|
19782
19782
|
});
|
|
19783
19783
|
};
|
|
19784
|
-
return !i || i.type !== "group" ? null : /* @__PURE__ */ O(
|
|
19784
|
+
return !i || i.type !== "group" ? null : /* @__PURE__ */ O(Ie, { children: [
|
|
19785
19785
|
/* @__PURE__ */ p(te, { isOpen: n, onClose: k ? function() {
|
|
19786
19786
|
} : M, as: "div", children: /* @__PURE__ */ p(te.Panel, { children: /* @__PURE__ */ O(te.Container, { children: [
|
|
19787
19787
|
/* @__PURE__ */ p(te.Container.Header, { className: "yst-mb-4", children: /* @__PURE__ */ p(te.Title, { as: "h3", className: "yst-text-lg yst-font-medium", children: "Edit brand group" }) }),
|
|
@@ -19815,7 +19815,7 @@ var pE = function(e) {
|
|
|
19815
19815
|
] })
|
|
19816
19816
|
] }) })
|
|
19817
19817
|
] }) }) }),
|
|
19818
|
-
/* @__PURE__ */ p(ul, { isOpen: k, onClose: B, onConfirm: G, disabled: !L || I, isLoading: I, title: "Ungroup this brand group?", description: /* @__PURE__ */ O(
|
|
19818
|
+
/* @__PURE__ */ p(ul, { isOpen: k, onClose: B, onConfirm: G, disabled: !L || I, isLoading: I, title: "Ungroup this brand group?", description: /* @__PURE__ */ O(Ie, { children: [
|
|
19819
19819
|
/* @__PURE__ */ p("p", { children: "The group will be removed, but the brands inside will remain in your brand list." }),
|
|
19820
19820
|
/* @__PURE__ */ p("p", { children: "This action cannot be undone. To create a new group with these brands, simply select them and create a new group." })
|
|
19821
19821
|
] }), confirmText: "Yes, ungroup" })
|
|
@@ -20289,7 +20289,7 @@ var IE = function() {
|
|
|
20289
20289
|
accessor: "id",
|
|
20290
20290
|
Cell: function(xe) {
|
|
20291
20291
|
var Se = xe.value, z = xe.row;
|
|
20292
|
-
return /* @__PURE__ */ p(
|
|
20292
|
+
return /* @__PURE__ */ p(Ie, { children: z.type === "group" ? /* @__PURE__ */ O(
|
|
20293
20293
|
pe,
|
|
20294
20294
|
{
|
|
20295
20295
|
variant: "tertiary",
|
|
@@ -20376,7 +20376,7 @@ var IE = function() {
|
|
|
20376
20376
|
/* @__PURE__ */ p(Tc, { variant: "text", current: g, total: ae, onNavigate: A, className: "yst-flex-row", screenReaderTextPrevious: "Previous page", screenReaderTextNext: "Next page" })
|
|
20377
20377
|
] })
|
|
20378
20378
|
] }),
|
|
20379
|
-
/* @__PURE__ */ p(Xc, { children: /* @__PURE__ */ p("div", { className: "yst-flex yst-items-center yst-justify-end yst-gap-4", children: a ? /* @__PURE__ */ O(
|
|
20379
|
+
/* @__PURE__ */ p(Xc, { children: /* @__PURE__ */ p("div", { className: "yst-flex yst-items-center yst-justify-end yst-gap-4", children: a ? /* @__PURE__ */ O(Ie, { children: [
|
|
20380
20380
|
/* @__PURE__ */ p(pe, { variant: "secondary", className: "yst-mb-0", onClick: dt, children: "Discard changes" }),
|
|
20381
20381
|
/* @__PURE__ */ p(pe, { variant: "primary", className: "yst-mb-0", onClick: et, children: "Save changes" })
|
|
20382
20382
|
] }) : (
|
|
@@ -20477,8 +20477,8 @@ Ft.prototype.property = "";
|
|
|
20477
20477
|
Ft.prototype.spaceSeparated = !1;
|
|
20478
20478
|
Ft.prototype.space = void 0;
|
|
20479
20479
|
let jE = 0;
|
|
20480
|
-
const Ae =
|
|
20481
|
-
function
|
|
20480
|
+
const Ae = wi(), it = wi(), yc = wi(), V = wi(), Ue = wi(), Di = wi(), Ht = wi();
|
|
20481
|
+
function wi() {
|
|
20482
20482
|
return 2 ** ++jE;
|
|
20483
20483
|
}
|
|
20484
20484
|
const mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -21590,7 +21590,7 @@ const YE = Ig([Lg, FE, Rg, _g, Dg], "html"), pd = Ig([Lg, zE, Rg, _g, Dg], "svg"
|
|
|
21590
21590
|
function VE(t) {
|
|
21591
21591
|
return t.join(" ").trim();
|
|
21592
21592
|
}
|
|
21593
|
-
var
|
|
21593
|
+
var Ei = {}, $l, Bp;
|
|
21594
21594
|
function KE() {
|
|
21595
21595
|
if (Bp) return $l;
|
|
21596
21596
|
Bp = 1;
|
|
@@ -21682,12 +21682,12 @@ function KE() {
|
|
|
21682
21682
|
}
|
|
21683
21683
|
var jp;
|
|
21684
21684
|
function XE() {
|
|
21685
|
-
if (jp) return
|
|
21685
|
+
if (jp) return Ei;
|
|
21686
21686
|
jp = 1;
|
|
21687
|
-
var t =
|
|
21687
|
+
var t = Ei && Ei.__importDefault || function(r) {
|
|
21688
21688
|
return r && r.__esModule ? r : { default: r };
|
|
21689
21689
|
};
|
|
21690
|
-
Object.defineProperty(
|
|
21690
|
+
Object.defineProperty(Ei, "__esModule", { value: !0 }), Ei.default = n;
|
|
21691
21691
|
const e = t(KE());
|
|
21692
21692
|
function n(r, i) {
|
|
21693
21693
|
let a = null;
|
|
@@ -21701,7 +21701,7 @@ function XE() {
|
|
|
21701
21701
|
o ? i(u, c, l) : c && (a = a || {}, a[u] = c);
|
|
21702
21702
|
}), a;
|
|
21703
21703
|
}
|
|
21704
|
-
return
|
|
21704
|
+
return Ei;
|
|
21705
21705
|
}
|
|
21706
21706
|
var Oa = {}, Fp;
|
|
21707
21707
|
function JE() {
|
|
@@ -25421,24 +25421,24 @@ const iv = -1, vl = 0, Ya = 1, Uo = 2, Ad = 3, Sd = 4, Cd = 5, kd = 6, av = 7, s
|
|
|
25421
25421
|
return n(new iy[a](s), i);
|
|
25422
25422
|
};
|
|
25423
25423
|
return r;
|
|
25424
|
-
}, ay = (t) => eP(/* @__PURE__ */ new Map(), t)(0),
|
|
25424
|
+
}, ay = (t) => eP(/* @__PURE__ */ new Map(), t)(0), Oi = "", { toString: tP } = {}, { keys: nP } = Object, Ia = (t) => {
|
|
25425
25425
|
const e = typeof t;
|
|
25426
25426
|
if (e !== "object" || !t)
|
|
25427
25427
|
return [vl, e];
|
|
25428
25428
|
const n = tP.call(t).slice(8, -1);
|
|
25429
25429
|
switch (n) {
|
|
25430
25430
|
case "Array":
|
|
25431
|
-
return [Ya,
|
|
25431
|
+
return [Ya, Oi];
|
|
25432
25432
|
case "Object":
|
|
25433
|
-
return [Uo,
|
|
25433
|
+
return [Uo, Oi];
|
|
25434
25434
|
case "Date":
|
|
25435
|
-
return [Ad,
|
|
25435
|
+
return [Ad, Oi];
|
|
25436
25436
|
case "RegExp":
|
|
25437
|
-
return [Sd,
|
|
25437
|
+
return [Sd, Oi];
|
|
25438
25438
|
case "Map":
|
|
25439
|
-
return [Cd,
|
|
25439
|
+
return [Cd, Oi];
|
|
25440
25440
|
case "Set":
|
|
25441
|
-
return [kd,
|
|
25441
|
+
return [kd, Oi];
|
|
25442
25442
|
case "DataView":
|
|
25443
25443
|
return [Ya, n];
|
|
25444
25444
|
}
|
|
@@ -27118,7 +27118,7 @@ function XP(t, e) {
|
|
|
27118
27118
|
for (const c of GP)
|
|
27119
27119
|
Object.hasOwn(e, c.from) && ("" + c.from + (c.to ? "use `" + c.to + "` instead" : "remove it") + WP + c.id, void 0);
|
|
27120
27120
|
return uv(t, u), sO(t, {
|
|
27121
|
-
Fragment:
|
|
27121
|
+
Fragment: Ie,
|
|
27122
27122
|
components: i,
|
|
27123
27123
|
ignoreInvalidStyle: !0,
|
|
27124
27124
|
jsx: p,
|
|
@@ -27429,7 +27429,7 @@ var nT = function(e) {
|
|
|
27429
27429
|
o,
|
|
27430
27430
|
" - Scan performed on:",
|
|
27431
27431
|
" ",
|
|
27432
|
-
/* @__PURE__ */ p(Zt, { children: s ?
|
|
27432
|
+
/* @__PURE__ */ p(Zt, { children: s ? Jr(new Date(s), "yyyy-MM-dd HH:mm:ss") : "In progress" }),
|
|
27433
27433
|
" ",
|
|
27434
27434
|
"- AI Platform:",
|
|
27435
27435
|
" ",
|
|
@@ -27628,10 +27628,10 @@ var gT = function(e) {
|
|
|
27628
27628
|
n && u("");
|
|
27629
27629
|
}, [n]), /* @__PURE__ */ p(ul, { isOpen: n, onClose: r, onConfirm: function() {
|
|
27630
27630
|
d();
|
|
27631
|
-
}, isLoading: h, disabled: l !== "DELETE ALL", title: "Delete all data?", description: /* @__PURE__ */ O(
|
|
27631
|
+
}, isLoading: h, disabled: l !== "DELETE ALL", title: "Delete all data?", description: /* @__PURE__ */ O(Ie, { children: [
|
|
27632
27632
|
/* @__PURE__ */ p("p", { children: "This will permanently erase all brands, analysis results, and queries from your account." }),
|
|
27633
27633
|
/* @__PURE__ */ p("p", { children: "This action cannot be undone." }),
|
|
27634
|
-
/* @__PURE__ */ p(
|
|
27634
|
+
/* @__PURE__ */ p(Vr, { id: "delete-all-confirmation", label: "To confirm, please type DELETE ALL:", value: l, onChange: function(f) {
|
|
27635
27635
|
return u(f.target.value);
|
|
27636
27636
|
} }),
|
|
27637
27637
|
/* @__PURE__ */ p("p", { children: /* @__PURE__ */ p("em", { children: "This is to make sure you understand this action is permanent." }) })
|
|
@@ -27823,10 +27823,10 @@ var CT = function(e) {
|
|
|
27823
27823
|
f({
|
|
27824
27824
|
brandId: r
|
|
27825
27825
|
});
|
|
27826
|
-
}, isLoading: y, disabled: c.toLowerCase() !== (a == null ? void 0 : a.toLowerCase()), title: "Delete brand?", description: /* @__PURE__ */ O(
|
|
27826
|
+
}, isLoading: y, disabled: c.toLowerCase() !== (a == null ? void 0 : a.toLowerCase()), title: "Delete brand?", description: /* @__PURE__ */ O(Ie, { children: [
|
|
27827
27827
|
/* @__PURE__ */ p("p", { children: "This will permanently delete all data associated with this brand, including past analyses and query history." }),
|
|
27828
27828
|
/* @__PURE__ */ p("p", { children: "This action cannot be undone." }),
|
|
27829
|
-
/* @__PURE__ */ p(
|
|
27829
|
+
/* @__PURE__ */ p(Vr, { id: "delete-modal-brand-name-confirmation", label: "To confirm, please type your brand name ".concat(a, ":"), value: c, onChange: function(m) {
|
|
27830
27830
|
return d(m.target.value);
|
|
27831
27831
|
} }),
|
|
27832
27832
|
/* @__PURE__ */ p("p", { children: /* @__PURE__ */ p("em", { children: "This is to make sure you understand this action is permanent." }) })
|
|
@@ -28127,7 +28127,7 @@ var NT = function(e) {
|
|
|
28127
28127
|
} else
|
|
28128
28128
|
N(!1);
|
|
28129
28129
|
}, I = Number(C == null ? void 0 : C.maxNumberOfActiveBrands) - Number(C == null ? void 0 : C.numberOfActiveBrands) > 0 || !!(i != null && (n = i.settings) !== null && n !== void 0 && n.enableAutomaticAnalysis), L = R0(i == null ? void 0 : i.firstNextAnalysisOpportunity), F = (i == null ? void 0 : i.setupStatus) === "pendingQuerySelection";
|
|
28130
|
-
return /* @__PURE__ */ O(
|
|
28130
|
+
return /* @__PURE__ */ O(Ie, { children: [
|
|
28131
28131
|
/* @__PURE__ */ O("div", { className: oe("yst-flex yst-max-w-2xl yst-flex-1 yst-flex-row yst-items-center yst-justify-start yst-gap-4 yst-py-4 yst-text-slate-800", {
|
|
28132
28132
|
"yst-border-b-[1px] yst-border-b-slate-200": !a
|
|
28133
28133
|
}), children: [
|
|
@@ -28156,7 +28156,7 @@ var NT = function(e) {
|
|
|
28156
28156
|
"yst-mx-auto yst-max-w-xl": I
|
|
28157
28157
|
}), children: I ? /* @__PURE__ */ p(te.Panel, { children: L ? (
|
|
28158
28158
|
// 1. Show confirmation if analysis is scheduled soon
|
|
28159
|
-
/* @__PURE__ */ O(
|
|
28159
|
+
/* @__PURE__ */ O(Ie, { children: [
|
|
28160
28160
|
/* @__PURE__ */ p(te.Container.Header, { className: "yst-mb-3 yst-w-full", children: /* @__PURE__ */ p(te.Title, { as: "h3", className: "yst-text-lg yst-font-medium", children: "Start brand analysis now?" }) }),
|
|
28161
28161
|
/* @__PURE__ */ O(te.Container.Content, { className: "yst-mb-4 yst-space-y-3", children: [
|
|
28162
28162
|
/* @__PURE__ */ p("p", { children: "Activating this brand will immediately start a new analysis." }),
|
|
@@ -28173,7 +28173,7 @@ var NT = function(e) {
|
|
|
28173
28173
|
] })
|
|
28174
28174
|
) : (
|
|
28175
28175
|
// 2. Alert user that automatic analysis is enabled
|
|
28176
|
-
/* @__PURE__ */ O(
|
|
28176
|
+
/* @__PURE__ */ O(Ie, { children: [
|
|
28177
28177
|
/* @__PURE__ */ p(te.Container.Header, { className: "yst-mb-3 yst-w-full", children: /* @__PURE__ */ p(te.Title, { as: "h3", className: "yst-text-lg yst-font-medium", children: "Automatic analysis enabled" }) }),
|
|
28178
28178
|
/* @__PURE__ */ O(te.Container.Content, { className: "yst-mb-4 yst-space-y-3", children: [
|
|
28179
28179
|
/* @__PURE__ */ p("p", { children: "You've turned on the weekly automatic analysis for this brand." }),
|
|
@@ -28257,7 +28257,7 @@ var Ly = Is(Oy || (Oy = Od(["xl:yst-w-1/3"]))), My = Is(Py || (Py = Od(["xl:yst-
|
|
|
28257
28257
|
return x;
|
|
28258
28258
|
}
|
|
28259
28259
|
}
|
|
28260
|
-
}), A = g.data, k =
|
|
28260
|
+
}), A = g.data, k = xi({
|
|
28261
28261
|
query: {
|
|
28262
28262
|
select: function(w) {
|
|
28263
28263
|
var x = w.data;
|
|
@@ -29805,7 +29805,7 @@ function XT(t) {
|
|
|
29805
29805
|
});
|
|
29806
29806
|
};
|
|
29807
29807
|
}
|
|
29808
|
-
function
|
|
29808
|
+
function Pi(t, e) {
|
|
29809
29809
|
return eI(t) || $T(t, e) || ZT(t, e) || JT();
|
|
29810
29810
|
}
|
|
29811
29811
|
function JT() {
|
|
@@ -29846,7 +29846,7 @@ function eI(t) {
|
|
|
29846
29846
|
if (Array.isArray(t)) return t;
|
|
29847
29847
|
}
|
|
29848
29848
|
var tI = function() {
|
|
29849
|
-
var e = vt(), n = Os(), r = mn(), i = ie(), a =
|
|
29849
|
+
var e = vt(), n = Os(), r = mn(), i = ie(), a = Pi(i, 2), s = a[0], o = a[1], l = ie(!1), u = Pi(l, 2), c = u[0], d = u[1], h = ie({
|
|
29850
29850
|
name: "",
|
|
29851
29851
|
url: "",
|
|
29852
29852
|
description: "",
|
|
@@ -29854,7 +29854,7 @@ var tI = function() {
|
|
|
29854
29854
|
isLocal: !1,
|
|
29855
29855
|
country: void 0,
|
|
29856
29856
|
region: ""
|
|
29857
|
-
}), f =
|
|
29857
|
+
}), f = Pi(h, 2), y = f[0], m = f[1], v = ie(null), g = Pi(v, 2), A = g[0], k = g[1], E = ie(""), C = Pi(E, 2), b = C[0], w = C[1], x = nt(function() {
|
|
29858
29858
|
var H;
|
|
29859
29859
|
if (!y.country)
|
|
29860
29860
|
return "";
|
|
@@ -29898,7 +29898,7 @@ var tI = function() {
|
|
|
29898
29898
|
d(!1);
|
|
29899
29899
|
}
|
|
29900
29900
|
}
|
|
29901
|
-
}), I = D.mutate, L = D.isPending, F = D.error, M =
|
|
29901
|
+
}), I = D.mutate, L = D.isPending, F = D.error, M = xi({
|
|
29902
29902
|
query: {
|
|
29903
29903
|
enabled: !!s,
|
|
29904
29904
|
select: function(T) {
|
|
@@ -29948,7 +29948,8 @@ var tI = function() {
|
|
|
29948
29948
|
description: y.description,
|
|
29949
29949
|
focusLanguage: y.language,
|
|
29950
29950
|
country: y.country,
|
|
29951
|
-
|
|
29951
|
+
region: y.region,
|
|
29952
|
+
city: y.city
|
|
29952
29953
|
}
|
|
29953
29954
|
});
|
|
29954
29955
|
};
|
|
@@ -29960,14 +29961,14 @@ var tI = function() {
|
|
|
29960
29961
|
/* @__PURE__ */ O("div", { className: "yst-space-y-6", children: [
|
|
29961
29962
|
/* @__PURE__ */ p(rt, { size: "2", children: "Brand info" }),
|
|
29962
29963
|
!!F && /* @__PURE__ */ p(en, { variant: "error", title: "Error", isVisible: !!F, children: /* @__PURE__ */ p("ul", { children: q && Nr(q) === "object" ? Object.entries(q).flatMap(function(H) {
|
|
29963
|
-
var T =
|
|
29964
|
+
var T = Pi(H, 2), W = T[0], Z = T[1];
|
|
29964
29965
|
return Array.isArray(Z) ? Z.map(function(Y, ae) {
|
|
29965
29966
|
return /* @__PURE__ */ p("li", { children: Y }, "".concat(W, "-").concat(ae));
|
|
29966
29967
|
}) : null;
|
|
29967
29968
|
}) : "There was an error creating the brand." }) }),
|
|
29968
29969
|
A && /* @__PURE__ */ p(en, { variant: "error", title: "Error", isVisible: !!A, children: /* @__PURE__ */ p("ul", { children: /* @__PURE__ */ p("li", { children: "Your brand description is too long. Please keep it within the 250-character limit." }) }) }),
|
|
29969
29970
|
/* @__PURE__ */ p(
|
|
29970
|
-
|
|
29971
|
+
Vr,
|
|
29971
29972
|
{
|
|
29972
29973
|
id: "name",
|
|
29973
29974
|
label: "Brand name",
|
|
@@ -29979,7 +29980,7 @@ var tI = function() {
|
|
|
29979
29980
|
}
|
|
29980
29981
|
),
|
|
29981
29982
|
/* @__PURE__ */ p(
|
|
29982
|
-
|
|
29983
|
+
Vr,
|
|
29983
29984
|
{
|
|
29984
29985
|
id: "url",
|
|
29985
29986
|
label: "Website URL (optional)",
|
|
@@ -30031,13 +30032,21 @@ var tI = function() {
|
|
|
30031
30032
|
/* @__PURE__ */ O("div", { className: "yst-space-y-6", children: [
|
|
30032
30033
|
/* @__PURE__ */ p(rt, { size: "2", children: "Location info" }),
|
|
30033
30034
|
/* @__PURE__ */ p("p", { children: "Specify a location (optional) or leave it blank for a global analysis." }),
|
|
30034
|
-
/* @__PURE__ */ p(Ld, { className: "yst-max-w-sm", id: "country-select", label: "Target country (optional)",
|
|
30035
|
+
/* @__PURE__ */ p(Ld, { className: "yst-max-w-sm", id: "country-select", label: "Target country (optional)", labelProps: {
|
|
30036
|
+
className: "yst-font-medium yst-text-slate-800"
|
|
30037
|
+
}, value: y.country || null, nullable: !0, placeholder: "Search countries...", onQueryChange: B, onChange: G, selectedLabel: x, children: N.map(function(H) {
|
|
30035
30038
|
return /* @__PURE__ */ p(Ld.Option, { value: H.value, children: H.label }, H.value);
|
|
30036
30039
|
}) }),
|
|
30037
|
-
y.country && /* @__PURE__ */
|
|
30038
|
-
|
|
30039
|
-
|
|
30040
|
-
|
|
30040
|
+
y.country && /* @__PURE__ */ O(Ie, { children: [
|
|
30041
|
+
/* @__PURE__ */ p(Vr, { id: "region", label: "Target region (optional)", value: y.region, onChange: function(H) {
|
|
30042
|
+
return j("region", H.target.value);
|
|
30043
|
+
}, description: `Enter a region to narrow down the analysis. For
|
|
30044
|
+
example: Southern France, Europe or the Pacific Northwest.`, maxLength: 255 }),
|
|
30045
|
+
/* @__PURE__ */ p(Vr, { id: "city", label: "Target city (optional)", value: y.city, onChange: function(H) {
|
|
30046
|
+
return j("city", H.target.value);
|
|
30047
|
+
}, description: `Enter a city to narrow down the analysis. For
|
|
30048
|
+
example: Paris or Los Angeles.`, maxLength: 255 })
|
|
30049
|
+
] })
|
|
30041
30050
|
] }),
|
|
30042
30051
|
/* @__PURE__ */ p(fv, { onBack: function() {
|
|
30043
30052
|
return e(-1);
|
|
@@ -30248,8 +30257,8 @@ function fI(t, e) {
|
|
|
30248
30257
|
function hI(t) {
|
|
30249
30258
|
if (Array.isArray(t)) return t;
|
|
30250
30259
|
}
|
|
30251
|
-
var
|
|
30252
|
-
length:
|
|
30260
|
+
var Ii = 5, za = "Generating...", pI = "Re-generating...", yI = 100, mI = 800, gI = ["******************************", "***********************", "*******************************************************", "***********************************************", "***************************************************************", "*******************************************************", "*******************************************************", "***********************************************"], vI = Array.from({
|
|
30261
|
+
length: Ii
|
|
30253
30262
|
}, function(t, e) {
|
|
30254
30263
|
return {
|
|
30255
30264
|
id: "query-".concat(e),
|
|
@@ -30258,7 +30267,7 @@ var Ti = 5, za = "Generating...", pI = "Re-generating...", yI = 100, mI = 800, g
|
|
|
30258
30267
|
};
|
|
30259
30268
|
}), bI = function() {
|
|
30260
30269
|
return Array.from({
|
|
30261
|
-
length:
|
|
30270
|
+
length: Ii
|
|
30262
30271
|
}, function(e, n) {
|
|
30263
30272
|
return {
|
|
30264
30273
|
id: "query-".concat(n),
|
|
@@ -30376,14 +30385,14 @@ var Ti = 5, za = "Generating...", pI = "Re-generating...", yI = 100, mI = 800, g
|
|
|
30376
30385
|
}, [ze == null || (n = ze.data) === null || n === void 0 ? void 0 : n.setupStatus, a, o, s, u]), Ee(function() {
|
|
30377
30386
|
var ee;
|
|
30378
30387
|
if (et != null && (ee = et.data) !== null && ee !== void 0 && ee.queries && Array.isArray(et.data.queries)) {
|
|
30379
|
-
var ne = et.data.queries.slice(0,
|
|
30388
|
+
var ne = et.data.queries.slice(0, Ii), he = ne.map(function(re, ge) {
|
|
30380
30389
|
return {
|
|
30381
30390
|
id: "query-".concat(ge),
|
|
30382
30391
|
text: re,
|
|
30383
30392
|
isRegenerating: !1
|
|
30384
30393
|
};
|
|
30385
30394
|
});
|
|
30386
|
-
y(he), D(et.data.queries.slice(
|
|
30395
|
+
y(he), D(et.data.queries.slice(Ii));
|
|
30387
30396
|
} else if (tt) {
|
|
30388
30397
|
var K = bI();
|
|
30389
30398
|
y(K), D([]);
|
|
@@ -30414,7 +30423,7 @@ var Ti = 5, za = "Generating...", pI = "Re-generating...", yI = 100, mI = 800, g
|
|
|
30414
30423
|
if (F && !dt) {
|
|
30415
30424
|
var ee;
|
|
30416
30425
|
if (et != null && (ee = et.data) !== null && ee !== void 0 && ee.queries && Array.isArray(et.data.queries)) {
|
|
30417
|
-
var ne = et.data.queries.slice(0,
|
|
30426
|
+
var ne = et.data.queries.slice(0, Ii), he = C.map(Number);
|
|
30418
30427
|
y(function(K) {
|
|
30419
30428
|
return K.map(function(re, ge) {
|
|
30420
30429
|
var Xe = he.indexOf(ge);
|
|
@@ -30513,7 +30522,7 @@ var Ti = 5, za = "Generating...", pI = "Re-generating...", yI = 100, mI = 800, g
|
|
|
30513
30522
|
/* @__PURE__ */ p(rt, { size: "2", className: "yst-mb-2", children: "Your queries" }),
|
|
30514
30523
|
/* @__PURE__ */ O("div", { className: "yst-space-y-4", children: [
|
|
30515
30524
|
/* @__PURE__ */ p("p", { children: "You can edit your queries or regenerate new ones with AI." }),
|
|
30516
|
-
/* @__PURE__ */ p("div", { className: oe("yst-flex yst-gap-2", g ? "yst-justify-end" : "yst-justify-start"), children: g ? /* @__PURE__ */ O(
|
|
30525
|
+
/* @__PURE__ */ p("div", { className: oe("yst-flex yst-gap-2", g ? "yst-justify-end" : "yst-justify-start"), children: g ? /* @__PURE__ */ O(Ie, { children: [
|
|
30517
30526
|
/* @__PURE__ */ p(pe, { size: "small", variant: "secondary", onClick: wt, children: "Done" }),
|
|
30518
30527
|
/* @__PURE__ */ O(pe, { variant: "secondary", size: "small", onClick: xl, className: "yst-gap-1", isLoading: dt || F, disabled: F || dt || C.length === 0, children: [
|
|
30519
30528
|
/* @__PURE__ */ p(jy, { "aria-hidden": "true" }),
|
|
@@ -30527,7 +30536,7 @@ var Ti = 5, za = "Generating...", pI = "Re-generating...", yI = 100, mI = 800, g
|
|
|
30527
30536
|
] }),
|
|
30528
30537
|
/* @__PURE__ */ p("div", { className: "yst-mb-8", children: f.length === 0 ? gI.map(function(ee, ne) {
|
|
30529
30538
|
return /* @__PURE__ */ p("div", { className: oe("yst-mb-4 yst-cursor-pointer yst-rounded yst-border yst-border-slate-300 yst-p-3 yst-transition-colors", "yst-bg-white"), children: /* @__PURE__ */ p(Ve, { children: ee || "Example placeholder query for demonstration purposes." }) }, "placeholder-query-".concat(ne));
|
|
30530
|
-
}) : f.slice(0,
|
|
30539
|
+
}) : f.slice(0, Ii).map(function(ee, ne) {
|
|
30531
30540
|
var he = ee.isRegenerating ? ee.text === za ? za : pI : ee.text;
|
|
30532
30541
|
return /* @__PURE__ */ p("div", { className: oe("yst-mb-4"), children: /* @__PURE__ */ O("div", { className: "yst-flex yst-gap-2", children: [
|
|
30533
30542
|
g && /* @__PURE__ */ p("div", { className: "yst-flex yst-items-center", children: /* @__PURE__ */ p(
|
|
@@ -30543,7 +30552,7 @@ var Ti = 5, za = "Generating...", pI = "Re-generating...", yI = 100, mI = 800, g
|
|
|
30543
30552
|
disabled: dt
|
|
30544
30553
|
}
|
|
30545
30554
|
) }),
|
|
30546
|
-
/* @__PURE__ */ p("div", { className: "yst-flex-1", children: /* @__PURE__ */ p(
|
|
30555
|
+
/* @__PURE__ */ p("div", { className: "yst-flex-1", children: /* @__PURE__ */ p(Vr, { id: "query-text-".concat(ne), label: "Query ".concat(ne + 1), type: "text", value: he, onChange: function(K) {
|
|
30547
30556
|
ee.isRegenerating || bn(ne, K.target.value);
|
|
30548
30557
|
}, placeholder: "Enter your query...", className: "yst-w-full", disabled: ee.isRegenerating, required: !0, minLength: 3, maxLength: 255, validation: be(ee.text) ? {
|
|
30549
30558
|
variant: "warning",
|
|
@@ -31443,7 +31452,7 @@ var jI = function(e) {
|
|
|
31443
31452
|
return /* @__PURE__ */ O("div", { children: [
|
|
31444
31453
|
/* @__PURE__ */ O("div", { className: "yst-space-y-8", children: [
|
|
31445
31454
|
/* @__PURE__ */ p(vv, { progress: b }),
|
|
31446
|
-
w && /* @__PURE__ */ O(
|
|
31455
|
+
w && /* @__PURE__ */ O(Ie, { children: [
|
|
31447
31456
|
/* @__PURE__ */ p(la, {}),
|
|
31448
31457
|
/* @__PURE__ */ p("div", { className: "yst-space-y-8", children: m == null || (r = m.queries) === null || r === void 0 ? void 0 : r.map(function(x) {
|
|
31449
31458
|
var N, D = x.id, I = x.query, L = D && (g == null || (N = g.completedQueries) === null || N === void 0 ? void 0 : N.includes(D));
|