@yoast/ai-insights-client 1.4.37 → 1.4.39

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.
@@ -10309,7 +10309,7 @@ function v8() {
10309
10309
  function Z(se) {
10310
10310
  return C(se) === n;
10311
10311
  }
10312
- function Se(se) {
10312
+ function xe(se) {
10313
10313
  return C(se) === s;
10314
10314
  }
10315
10315
  function he(se) {
@@ -10318,7 +10318,7 @@ function v8() {
10318
10318
  function Ge(se) {
10319
10319
  return C(se) === d;
10320
10320
  }
10321
- We.AsyncMode = w, We.ConcurrentMode = k, We.ContextConsumer = x, We.ContextProvider = _, We.Element = O, We.ForwardRef = E, We.Fragment = P, We.Lazy = M, We.Memo = j, We.Portal = N, We.Profiler = A, We.StrictMode = T, We.Suspense = L, We.isAsyncMode = W, We.isConcurrentMode = B, We.isContextConsumer = U, We.isContextProvider = re, We.isElement = oe, We.isForwardRef = F, We.isFragment = ae, We.isLazy = ee, We.isMemo = ye, We.isPortal = Z, We.isProfiler = Se, We.isStrictMode = he, We.isSuspense = Ge, We.isValidElementType = S, We.typeOf = C;
10321
+ We.AsyncMode = w, We.ConcurrentMode = k, We.ContextConsumer = x, We.ContextProvider = _, We.Element = O, We.ForwardRef = E, We.Fragment = P, We.Lazy = M, We.Memo = j, We.Portal = N, We.Profiler = A, We.StrictMode = T, We.Suspense = L, We.isAsyncMode = W, We.isConcurrentMode = B, We.isContextConsumer = U, We.isContextProvider = re, We.isElement = oe, We.isForwardRef = F, We.isFragment = ae, We.isLazy = ee, We.isMemo = ye, We.isPortal = Z, We.isProfiler = xe, We.isStrictMode = he, We.isSuspense = Ge, We.isValidElementType = S, We.typeOf = C;
10322
10322
  }()), We;
10323
10323
  }
10324
10324
  var Sg;
@@ -10491,7 +10491,7 @@ function x8() {
10491
10491
  function m(B) {
10492
10492
  if (process.env.NODE_ENV !== "production")
10493
10493
  var U = {}, re = 0;
10494
- function oe(ae, ee, ye, Z, Se, he, Ge) {
10494
+ function oe(ae, ee, ye, Z, xe, he, Ge) {
10495
10495
  if (Z = Z || f, he = he || ye, Ge !== n) {
10496
10496
  if (l) {
10497
10497
  var se = new Error(
@@ -10506,15 +10506,15 @@ function x8() {
10506
10506
  ), U[Ke] = !0, re++);
10507
10507
  }
10508
10508
  }
10509
- return ee[ye] == null ? ae ? ee[ye] === null ? new y("The " + Se + " `" + he + "` is marked as required " + ("in `" + Z + "`, but its value is `null`.")) : new y("The " + Se + " `" + he + "` is marked as required in " + ("`" + Z + "`, but its value is `undefined`.")) : null : B(ee, ye, Z, Se, he);
10509
+ return ee[ye] == null ? ae ? ee[ye] === null ? new y("The " + xe + " `" + he + "` is marked as required " + ("in `" + Z + "`, but its value is `null`.")) : new y("The " + xe + " `" + he + "` is marked as required in " + ("`" + Z + "`, but its value is `undefined`.")) : null : B(ee, ye, Z, xe, he);
10510
10510
  }
10511
10511
  var F = oe.bind(null, !1);
10512
10512
  return F.isRequired = oe.bind(null, !0), F;
10513
10513
  }
10514
10514
  function p(B) {
10515
10515
  function U(re, oe, F, ae, ee, ye) {
10516
- var Z = re[oe], Se = T(Z);
10517
- if (Se !== B) {
10516
+ var Z = re[oe], xe = T(Z);
10517
+ if (xe !== B) {
10518
10518
  var he = L(Z);
10519
10519
  return new y(
10520
10520
  "Invalid " + ae + " `" + ee + "` of type " + ("`" + he + "` supplied to `" + F + "`, expected ") + ("`" + B + "`."),
@@ -10537,8 +10537,8 @@ function x8() {
10537
10537
  var Z = T(ye);
10538
10538
  return new y("Invalid " + ae + " `" + ee + "` of type " + ("`" + Z + "` supplied to `" + F + "`, expected an array."));
10539
10539
  }
10540
- for (var Se = 0; Se < ye.length; Se++) {
10541
- var he = B(ye, Se, F, ae, ee + "[" + Se + "]", n);
10540
+ for (var xe = 0; xe < ye.length; xe++) {
10541
+ var he = B(ye, xe, F, ae, ee + "[" + xe + "]", n);
10542
10542
  if (he instanceof Error)
10543
10543
  return he;
10544
10544
  }
@@ -10587,11 +10587,11 @@ function x8() {
10587
10587
  for (var ye = re[oe], Z = 0; Z < B.length; Z++)
10588
10588
  if (g(ye, B[Z]))
10589
10589
  return null;
10590
- var Se = JSON.stringify(B, function(Ge, se) {
10590
+ var xe = JSON.stringify(B, function(Ge, se) {
10591
10591
  var Ke = L(se);
10592
10592
  return Ke === "symbol" ? String(se) : se;
10593
10593
  });
10594
- return new y("Invalid " + ae + " `" + ee + "` of value `" + String(ye) + "` " + ("supplied to `" + F + "`, expected one of " + Se + "."));
10594
+ return new y("Invalid " + ae + " `" + ee + "` of value `" + String(ye) + "` " + ("supplied to `" + F + "`, expected one of " + xe + "."));
10595
10595
  }
10596
10596
  return m(U);
10597
10597
  }
@@ -10602,9 +10602,9 @@ function x8() {
10602
10602
  var ye = re[oe], Z = T(ye);
10603
10603
  if (Z !== "object")
10604
10604
  return new y("Invalid " + ae + " `" + ee + "` of type " + ("`" + Z + "` supplied to `" + F + "`, expected an object."));
10605
- for (var Se in ye)
10606
- if (r(ye, Se)) {
10607
- var he = B(ye, Se, F, ae, ee + "." + Se, n);
10605
+ for (var xe in ye)
10606
+ if (r(ye, xe)) {
10607
+ var he = B(ye, xe, F, ae, ee + "." + xe, n);
10608
10608
  if (he instanceof Error)
10609
10609
  return he;
10610
10610
  }
@@ -10623,13 +10623,13 @@ function x8() {
10623
10623
  ), o;
10624
10624
  }
10625
10625
  function oe(F, ae, ee, ye, Z) {
10626
- for (var Se = [], he = 0; he < B.length; he++) {
10626
+ for (var xe = [], he = 0; he < B.length; he++) {
10627
10627
  var Ge = B[he], se = Ge(F, ae, ee, ye, Z, n);
10628
10628
  if (se == null)
10629
10629
  return null;
10630
- se.data && r(se.data, "expectedType") && Se.push(se.data.expectedType);
10630
+ se.data && r(se.data, "expectedType") && xe.push(se.data.expectedType);
10631
10631
  }
10632
- var Ke = Se.length > 0 ? ", expected one of type [" + Se.join(", ") + "]" : "";
10632
+ var Ke = xe.length > 0 ? ", expected one of type [" + xe.join(", ") + "]" : "";
10633
10633
  return new y("Invalid " + ye + " `" + Z + "` supplied to " + ("`" + ee + "`" + Ke + "."));
10634
10634
  }
10635
10635
  return m(oe);
@@ -10650,11 +10650,11 @@ function x8() {
10650
10650
  var ye = re[oe], Z = T(ye);
10651
10651
  if (Z !== "object")
10652
10652
  return new y("Invalid " + ae + " `" + ee + "` of type `" + Z + "` " + ("supplied to `" + F + "`, expected `object`."));
10653
- for (var Se in B) {
10654
- var he = B[Se];
10653
+ for (var xe in B) {
10654
+ var he = B[xe];
10655
10655
  if (typeof he != "function")
10656
- return P(F, ae, ee, Se, L(he));
10657
- var Ge = he(ye, Se, F, ae, ee + "." + Se, n);
10656
+ return P(F, ae, ee, xe, L(he));
10657
+ var Ge = he(ye, xe, F, ae, ee + "." + xe, n);
10658
10658
  if (Ge)
10659
10659
  return Ge;
10660
10660
  }
@@ -10667,8 +10667,8 @@ function x8() {
10667
10667
  var ye = re[oe], Z = T(ye);
10668
10668
  if (Z !== "object")
10669
10669
  return new y("Invalid " + ae + " `" + ee + "` of type `" + Z + "` " + ("supplied to `" + F + "`, expected `object`."));
10670
- var Se = t({}, re[oe], B);
10671
- for (var he in Se) {
10670
+ var xe = t({}, re[oe], B);
10671
+ for (var he in xe) {
10672
10672
  var Ge = B[he];
10673
10673
  if (r(B, he) && typeof Ge != "function")
10674
10674
  return P(F, ae, ee, he, L(Ge));
@@ -12773,7 +12773,7 @@ var ed = al(jg || (jg = r9(["yst-flex-1 yst-space-y-2"]))), i9 = function(t) {
12773
12773
  }), T = A.data, L = A.isLoading, z = v4({
12774
12774
  mutation: {
12775
12775
  onSuccess: function() {
12776
- var xe = n9(/* @__PURE__ */ lf().m(function He() {
12776
+ var we = n9(/* @__PURE__ */ lf().m(function He() {
12777
12777
  var Bn, tn;
12778
12778
  return lf().w(function(xn) {
12779
12779
  for (; ; ) switch (xn.n) {
@@ -12798,7 +12798,7 @@ var ed = al(jg || (jg = r9(["yst-flex-1 yst-space-y-2"]))), i9 = function(t) {
12798
12798
  }, He);
12799
12799
  }));
12800
12800
  function it() {
12801
- return xe.apply(this, arguments);
12801
+ return we.apply(this, arguments);
12802
12802
  }
12803
12803
  return it;
12804
12804
  }()
@@ -12809,13 +12809,13 @@ var ed = al(jg || (jg = r9(["yst-flex-1 yst-space-y-2"]))), i9 = function(t) {
12809
12809
  }, [L, N, T, l, y, x, E == null ? void 0 : E.length]);
12810
12810
  var U = Ae(!1), re = qg(U, 2), oe = re[0], F = re[1], ae = function() {
12811
12811
  F(!1);
12812
- }, ee = x == null ? void 0 : x.find(function(xe) {
12813
- return String(xe.id) === String(l);
12814
- }), ye = j == null || (n = j.analysis) === null || n === void 0 ? void 0 : n.id, Z = l != null && typeof ye == "number" && !isNaN(ye), Se = Ae(!1), he = qg(Se, 2), Ge = he[0], se = he[1];
12812
+ }, ee = x == null ? void 0 : x.find(function(we) {
12813
+ return String(we.id) === String(l);
12814
+ }), ye = j == null || (n = j.analysis) === null || n === void 0 ? void 0 : n.id, Z = l != null && typeof ye == "number" && !isNaN(ye), xe = Ae(!1), he = qg(xe, 2), Ge = he[0], se = he[1];
12815
12815
  oc.useEffect(function() {
12816
12816
  if (Z) {
12817
- var xe = "yst_legal_alert_dismissed_".concat(l, "_").concat(ye);
12818
- se(window.localStorage.getItem(xe) === null);
12817
+ var we = "yst_legal_alert_dismissed_".concat(l, "_").concat(ye);
12818
+ se(window.localStorage.getItem(we) === null);
12819
12819
  }
12820
12820
  }, [l, ye, Z]);
12821
12821
  var Ke = function(it) {
@@ -12834,16 +12834,16 @@ var ed = al(jg || (jg = r9(["yst-flex-1 yst-space-y-2"]))), i9 = function(t) {
12834
12834
  default:
12835
12835
  return it || "Unknown";
12836
12836
  }
12837
- }, vt = (j == null || (r = j.analysis) === null || r === void 0 || (r = r.scans) === null || r === void 0 ? void 0 : r.map(function(xe) {
12837
+ }, vt = (j == null || (r = j.analysis) === null || r === void 0 || (r = r.scans) === null || r === void 0 ? void 0 : r.map(function(we) {
12838
12838
  return {
12839
- value: xe.aiProvider,
12840
- label: gt(xe.aiProvider)
12839
+ value: we.aiProvider,
12840
+ label: gt(we.aiProvider)
12841
12841
  };
12842
12842
  })) || [{
12843
12843
  value: "",
12844
12844
  label: "Default model"
12845
- }], qe = E != null && E.some(function(xe) {
12846
- return String(xe.id) === String(c);
12845
+ }], qe = E != null && E.some(function(we) {
12846
+ return String(we.id) === String(c);
12847
12847
  }) ? c : E && E.length > 0 ? E[0].id : "latest", ze = xc(l, {
12848
12848
  query: {
12849
12849
  enabled: !!l,
@@ -12853,7 +12853,7 @@ var ed = al(jg || (jg = r9(["yst-flex-1 yst-space-y-2"]))), i9 = function(t) {
12853
12853
  }
12854
12854
  }
12855
12855
  }), Q = ze.data, Me = (Q == null ? void 0 : Q.name) || "your brand", ot = af(Q == null ? void 0 : Q.nextScheduledAnalysis), Ie = j == null || (i = j.analysis) === null || i === void 0 ? void 0 : i.status, le = function() {
12856
- var xe = /* @__PURE__ */ D("div", { className: "yst-max-w-xl yst-space-y-2", children: [
12856
+ var we = /* @__PURE__ */ D("div", { className: "yst-max-w-xl yst-space-y-2", children: [
12857
12857
  /* @__PURE__ */ v("p", { className: "yst-font-medium", children: "Your analysis is scheduled" }),
12858
12858
  /* @__PURE__ */ D("p", { children: [
12859
12859
  "You've completed the setup for",
@@ -12867,13 +12867,13 @@ var ed = al(jg || (jg = r9(["yst-flex-1 yst-space-y-2"]))), i9 = function(t) {
12867
12867
  ] });
12868
12868
  if (Ie === void 0 && (T == null ? void 0 : T.setupStatus) === "scheduledFirstAnalysis")
12869
12869
  return {
12870
- alertContent: xe,
12870
+ alertContent: we,
12871
12871
  alertVariant: "info"
12872
12872
  };
12873
12873
  switch (Ie) {
12874
12874
  case Oi.pending:
12875
12875
  return {
12876
- alertContent: xe,
12876
+ alertContent: we,
12877
12877
  alertVariant: "info"
12878
12878
  };
12879
12879
  case Oi.processing:
@@ -12905,7 +12905,7 @@ var ed = al(jg || (jg = r9(["yst-flex-1 yst-space-y-2"]))), i9 = function(t) {
12905
12905
  alertVariant: "info"
12906
12906
  };
12907
12907
  }
12908
- }(), V = le.alertContent, te = le.alertVariant, J = !P && (T == null ? void 0 : T.setupStatus) !== "pendingQuerySelection" && (E == null ? void 0 : E.length) === 0 && (T == null ? void 0 : T.nextScheduledAnalysis) === null, we = p == null ? void 0 : p.isUpToDateWithBrandGroups, xt = (p == null ? void 0 : p.status) === a_.updating && we === !1;
12908
+ }(), V = le.alertContent, te = le.alertVariant, J = !P && (T == null ? void 0 : T.setupStatus) !== "pendingQuerySelection" && (E == null ? void 0 : E.length) === 0 && (T == null ? void 0 : T.nextScheduledAnalysis) === null, Se = p && ["updating", "completed"].includes(p.status) && !p.isUpToDateWithBrandGroups, xt = (p == null ? void 0 : p.status) === a_.updating && Se === !1;
12909
12909
  return /* @__PURE__ */ D(Je, { children: [
12910
12910
  /* @__PURE__ */ v(cu, { isOpen: oe, onClose: ae, onConfirm: function() {
12911
12911
  l && c && W({
@@ -12954,12 +12954,12 @@ var ed = al(jg || (jg = r9(["yst-flex-1 yst-space-y-2"]))), i9 = function(t) {
12954
12954
  ), children: [
12955
12955
  /* @__PURE__ */ D(ed, { children: [
12956
12956
  /* @__PURE__ */ v(Pu, { htmlFor: "brand-name", children: "Brand" }),
12957
- /* @__PURE__ */ v(sc, { onChange: function(xe) {
12958
- y("/brands/".concat(xe.toString()));
12959
- }, id: "brand-name", value: l ? Number(l) : "loading", options: x && x.length > 0 ? x.map(function(xe) {
12957
+ /* @__PURE__ */ v(sc, { onChange: function(we) {
12958
+ y("/brands/".concat(we.toString()));
12959
+ }, id: "brand-name", value: l ? Number(l) : "loading", options: x && x.length > 0 ? x.map(function(we) {
12960
12960
  return {
12961
- value: xe.id,
12962
- label: xe.name
12961
+ value: we.id,
12962
+ label: we.name
12963
12963
  };
12964
12964
  }) : [{
12965
12965
  value: "loading",
@@ -12968,14 +12968,14 @@ var ed = al(jg || (jg = r9(["yst-flex-1 yst-space-y-2"]))), i9 = function(t) {
12968
12968
  ] }),
12969
12969
  /* @__PURE__ */ D(ed, { children: [
12970
12970
  /* @__PURE__ */ v(Pu, { htmlFor: "analysis-date", children: "Analysis date" }),
12971
- /* @__PURE__ */ v(Q7, { analyses: E || [], selectedAnalysisId: qe, onAnalysisSelect: function(xe) {
12972
- y("/brands/".concat(l, "/analysis/").concat(String(xe)));
12971
+ /* @__PURE__ */ v(Q7, { analyses: E || [], selectedAnalysisId: qe, onAnalysisSelect: function(we) {
12972
+ y("/brands/".concat(l, "/analysis/").concat(String(we)));
12973
12973
  }, isLoading: P, disabled: P || !E || E.length < 1, id: "analysis-date" })
12974
12974
  ] }),
12975
12975
  /* @__PURE__ */ D(ed, { children: [
12976
12976
  /* @__PURE__ */ v(Pu, { htmlFor: "ai-tool", children: "AI model" }),
12977
- /* @__PURE__ */ v(sc, { onChange: function(xe) {
12978
- Object.values(o_).includes(xe) ? f(xe) : console.error("Invalid AI provider selected:", xe);
12977
+ /* @__PURE__ */ v(sc, { onChange: function(we) {
12978
+ Object.values(o_).includes(we) ? f(we) : console.error("Invalid AI provider selected:", we);
12979
12979
  }, id: "ai-tool", value: u, options: N || P ? [{
12980
12980
  value: u,
12981
12981
  label: "Loading..."
@@ -12990,7 +12990,7 @@ var ed = al(jg || (jg = r9(["yst-flex-1 yst-space-y-2"]))), i9 = function(t) {
12990
12990
  /* @__PURE__ */ v("div", { className: "yst-ml-auto", children: /* @__PURE__ */ v(ur, { onClick: Ke, variant: "default", children: /* @__PURE__ */ v(__, {}) }) })
12991
12991
  ] }) }),
12992
12992
  Ie !== Oi.completed && V && /* @__PURE__ */ v(Pn, { className: "md:yst-col-span-2", variant: te, children: V }),
12993
- typeof we == "boolean" && !we && /* @__PURE__ */ D(Pn, { variant: "warning", children: [
12993
+ Se && /* @__PURE__ */ D(Pn, { variant: "warning", children: [
12994
12994
  "Note: This scan is not up to date with your current brand groups.",
12995
12995
  xt ? /* @__PURE__ */ D(Je, { children: [
12996
12996
  " ",
@@ -13007,8 +13007,8 @@ var ed = al(jg || (jg = r9(["yst-flex-1 yst-space-y-2"]))), i9 = function(t) {
13007
13007
  " ",
13008
13008
  /* @__PURE__ */ v("span", { className: "yst-cursor-pointer yst-font-medium yst-text-blue-900 yst-underline", onClick: function() {
13009
13009
  return y("/settings");
13010
- }, role: "button", tabIndex: 0, onKeyPress: function(xe) {
13011
- (xe.key === "Enter" || xe.key === " ") && y("/settings");
13010
+ }, role: "button", tabIndex: 0, onKeyPress: function(we) {
13011
+ (we.key === "Enter" || we.key === " ") && y("/settings");
13012
13012
  }, children: "Settings" }),
13013
13013
  "."
13014
13014
  ] })
@@ -21125,10 +21125,10 @@ function iP() {
21125
21125
  return ((ze = qe.brand) === null || ze === void 0 ? void 0 : ze.isSelf) === !0;
21126
21126
  }), oe = (d = re == null || (f = re.rank) === null || f === void 0 ? void 0 : f.value) !== null && d !== void 0 ? d : "—", F = re == null || (h = re.rank) === null || h === void 0 || (h = h.previous) === null || h === void 0 ? void 0 : h.difference;
21127
21127
  F && (F = F * -1);
21128
- var ae = (g = T == null || (y = T.visibility) === null || y === void 0 ? void 0 : y.value) !== null && g !== void 0 ? g : 0, ee = T == null || (m = T.visibility) === null || m === void 0 || (m = m.previous) === null || m === void 0 ? void 0 : m.value, ye = (p = T == null || (b = T.ranking) === null || b === void 0 ? void 0 : b.value) !== null && p !== void 0 ? p : 0, Z = (S = T == null || (C = T.sentiment) === null || C === void 0 ? void 0 : C.value) !== null && S !== void 0 ? S : 0, Se = (w = T == null || (k = T.mentions) === null || k === void 0 ? void 0 : k.value) !== null && w !== void 0 ? w : 0, he = {
21128
+ var ae = (g = T == null || (y = T.visibility) === null || y === void 0 ? void 0 : y.value) !== null && g !== void 0 ? g : 0, ee = T == null || (m = T.visibility) === null || m === void 0 || (m = m.previous) === null || m === void 0 ? void 0 : m.value, ye = (p = T == null || (b = T.ranking) === null || b === void 0 ? void 0 : b.value) !== null && p !== void 0 ? p : 0, Z = (S = T == null || (C = T.sentiment) === null || C === void 0 ? void 0 : C.value) !== null && S !== void 0 ? S : 0, xe = (w = T == null || (k = T.mentions) === null || k === void 0 ? void 0 : k.value) !== null && w !== void 0 ? w : 0, he = {
21129
21129
  labels: ["Mentions", "Ranking", "Citations", "Sentiment"],
21130
21130
  datasets: [{
21131
- data: [Se, ye, W, Z],
21131
+ data: [xe, ye, W, Z],
21132
21132
  backgroundColor: qA,
21133
21133
  pointBackgroundColor: "rgba(166, 30, 105, 1)"
21134
21134
  }]
@@ -26919,8 +26919,8 @@ function yw(e) {
26919
26919
  open: () => a.open,
26920
26920
  defaultOpen: () => a.defaultOpen,
26921
26921
  onOpenChange: (Z) => {
26922
- var Se;
26923
- return (Se = a.onOpenChange) == null ? void 0 : Se.call(a, Z);
26922
+ var xe;
26923
+ return (xe = a.onOpenChange) == null ? void 0 : xe.call(a, Z);
26924
26924
  }
26925
26925
  }), {
26926
26926
  present: N
@@ -26946,9 +26946,9 @@ function yw(e) {
26946
26946
  s != null ? setTimeout(() => W()) : W();
26947
26947
  }, U = (Z) => {
26948
26948
  O((he) => [...he, Z]);
26949
- const Se = r == null ? void 0 : r.registerNestedMenu(Z);
26949
+ const xe = r == null ? void 0 : r.registerNestedMenu(Z);
26950
26950
  return () => {
26951
- O((he) => Of(he, Z)), Se == null || Se();
26951
+ O((he) => Of(he, Z)), xe == null || xe();
26952
26952
  };
26953
26953
  }, re = (Z) => d === (u == null ? void 0 : u.side) && H$(Z, u == null ? void 0 : u.area), oe = (Z) => {
26954
26954
  re(Z) && Z.preventDefault();
@@ -26964,9 +26964,9 @@ function yw(e) {
26964
26964
  const Z = b();
26965
26965
  if (!Z || !r)
26966
26966
  return;
26967
- const Se = r.registerNestedMenu(Z);
26967
+ const xe = r.registerNestedMenu(Z);
26968
26968
  Ce(() => {
26969
- Se();
26969
+ xe();
26970
26970
  });
26971
26971
  }), be(() => {
26972
26972
  r === void 0 && (i == null || i.registerMenu(t.value(), [b(), ..._()]));
@@ -27652,8 +27652,8 @@ function RD() {
27652
27652
  function Zm() {
27653
27653
  const e = Rn();
27654
27654
  return (() => {
27655
- var t = mD(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling, s = i.firstChild, o = i.nextSibling, a = o.firstChild, l = o.nextSibling, c = l.nextSibling, u = c.firstChild, d = c.nextSibling, f = d.firstChild, h = d.nextSibling, g = h.nextSibling, y = g.firstChild, m = g.nextSibling, p = m.firstChild, b = m.nextSibling, S = b.nextSibling, C = S.firstChild, w = S.nextSibling, k = w.firstChild, x = w.nextSibling, _ = x.nextSibling, O = _.firstChild, E = _.nextSibling, P = E.firstChild, M = E.nextSibling, j = M.nextSibling, N = j.firstChild, A = j.nextSibling, T = A.firstChild, L = A.nextSibling, z = L.nextSibling, W = z.firstChild, B = z.nextSibling, U = B.firstChild, re = B.nextSibling, oe = re.firstChild, F = oe.nextSibling, ae = F.nextSibling, ee = ae.nextSibling, ye = ee.nextSibling, Z = re.nextSibling, Se = Z.firstChild, he = Z.nextSibling, Ge = he.firstChild, se = he.nextSibling, Ke = se.firstChild, gt = Ke.nextSibling, vt = gt.nextSibling, qe = vt.firstChild, ze = qe.nextSibling, Q = ze.nextSibling, Me = Q.nextSibling, ot = Me.nextSibling, Ie = ot.nextSibling, le = Ie.nextSibling, V = le.nextSibling, te = V.nextSibling, J = te.nextSibling, we = J.nextSibling, xt = we.nextSibling, xe = se.nextSibling, it = xe.firstChild, He = xe.nextSibling, Bn = He.firstChild, tn = He.nextSibling, xn = tn.firstChild, Qn = xn.nextSibling, yr = tn.nextSibling, ds = yr.firstChild, Br = yr.nextSibling, ml = Br.firstChild, Oo = Br.nextSibling, Eo = Oo.firstChild, Ao = Eo.nextSibling, fs = Ao.nextSibling, Qh = fs.nextSibling, Yh = Qh.nextSibling, Xh = Yh.nextSibling, Zh = Xh.nextSibling, Jh = Zh.nextSibling, e0 = Jh.nextSibling, t0 = e0.nextSibling, n0 = t0.nextSibling, r0 = n0.nextSibling, i0 = r0.nextSibling, s0 = i0.nextSibling, o0 = s0.nextSibling, a0 = o0.nextSibling, l0 = a0.nextSibling, Rw = l0.nextSibling;
27656
- return ne(n, "id", `a-${e}`), ne(r, "fill", `url(#a-${e})`), ne(s, "id", `am-${e}`), ne(o, "id", `b-${e}`), ne(a, "filter", `url(#am-${e})`), ne(l, "mask", `url(#b-${e})`), ne(u, "id", `ah-${e}`), ne(d, "id", `k-${e}`), ne(f, "filter", `url(#ah-${e})`), ne(h, "mask", `url(#k-${e})`), ne(y, "id", `ae-${e}`), ne(m, "id", `j-${e}`), ne(p, "filter", `url(#ae-${e})`), ne(b, "mask", `url(#j-${e})`), ne(C, "id", `ai-${e}`), ne(w, "id", `i-${e}`), ne(k, "filter", `url(#ai-${e})`), ne(x, "mask", `url(#i-${e})`), ne(O, "id", `aj-${e}`), ne(E, "id", `h-${e}`), ne(P, "filter", `url(#aj-${e})`), ne(M, "mask", `url(#h-${e})`), ne(N, "id", `ag-${e}`), ne(A, "id", `g-${e}`), ne(T, "filter", `url(#ag-${e})`), ne(L, "mask", `url(#g-${e})`), ne(W, "id", `af-${e}`), ne(B, "id", `f-${e}`), ne(U, "filter", `url(#af-${e})`), ne(re, "mask", `url(#f-${e})`), ne(ee, "id", `m-${e}`), ne(ye, "fill", `url(#m-${e})`), ne(Se, "id", `ak-${e}`), ne(he, "id", `e-${e}`), ne(Ge, "filter", `url(#ak-${e})`), ne(se, "mask", `url(#e-${e})`), ne(Ke, "id", `n-${e}`), ne(gt, "fill", `url(#n-${e})`), ne(qe, "id", `r-${e}`), ne(ze, "fill", `url(#r-${e})`), ne(Q, "id", `s-${e}`), ne(Me, "fill", `url(#s-${e})`), ne(ot, "id", `q-${e}`), ne(Ie, "fill", `url(#q-${e})`), ne(le, "id", `p-${e}`), ne(V, "fill", `url(#p-${e})`), ne(te, "id", `o-${e}`), ne(J, "fill", `url(#o-${e})`), ne(we, "id", `l-${e}`), ne(xt, "fill", `url(#l-${e})`), ne(it, "id", `al-${e}`), ne(He, "id", `d-${e}`), ne(Bn, "filter", `url(#al-${e})`), ne(tn, "mask", `url(#d-${e})`), ne(xn, "id", `u-${e}`), ne(Qn, "fill", `url(#u-${e})`), ne(ds, "id", `ad-${e}`), ne(Br, "id", `c-${e}`), ne(ml, "filter", `url(#ad-${e})`), ne(Oo, "mask", `url(#c-${e})`), ne(Eo, "id", `t-${e}`), ne(Ao, "fill", `url(#t-${e})`), ne(fs, "id", `v-${e}`), ne(Qh, "stroke", `url(#v-${e})`), ne(Yh, "id", `aa-${e}`), ne(Xh, "stroke", `url(#aa-${e})`), ne(Zh, "id", `w-${e}`), ne(Jh, "stroke", `url(#w-${e})`), ne(e0, "id", `ac-${e}`), ne(t0, "stroke", `url(#ac-${e})`), ne(n0, "id", `ab-${e}`), ne(r0, "stroke", `url(#ab-${e})`), ne(i0, "id", `y-${e}`), ne(s0, "stroke", `url(#y-${e})`), ne(o0, "id", `x-${e}`), ne(a0, "stroke", `url(#x-${e})`), ne(l0, "id", `z-${e}`), ne(Rw, "stroke", `url(#z-${e})`), t;
27655
+ var t = mD(), n = t.firstChild, r = n.nextSibling, i = r.nextSibling, s = i.firstChild, o = i.nextSibling, a = o.firstChild, l = o.nextSibling, c = l.nextSibling, u = c.firstChild, d = c.nextSibling, f = d.firstChild, h = d.nextSibling, g = h.nextSibling, y = g.firstChild, m = g.nextSibling, p = m.firstChild, b = m.nextSibling, S = b.nextSibling, C = S.firstChild, w = S.nextSibling, k = w.firstChild, x = w.nextSibling, _ = x.nextSibling, O = _.firstChild, E = _.nextSibling, P = E.firstChild, M = E.nextSibling, j = M.nextSibling, N = j.firstChild, A = j.nextSibling, T = A.firstChild, L = A.nextSibling, z = L.nextSibling, W = z.firstChild, B = z.nextSibling, U = B.firstChild, re = B.nextSibling, oe = re.firstChild, F = oe.nextSibling, ae = F.nextSibling, ee = ae.nextSibling, ye = ee.nextSibling, Z = re.nextSibling, xe = Z.firstChild, he = Z.nextSibling, Ge = he.firstChild, se = he.nextSibling, Ke = se.firstChild, gt = Ke.nextSibling, vt = gt.nextSibling, qe = vt.firstChild, ze = qe.nextSibling, Q = ze.nextSibling, Me = Q.nextSibling, ot = Me.nextSibling, Ie = ot.nextSibling, le = Ie.nextSibling, V = le.nextSibling, te = V.nextSibling, J = te.nextSibling, Se = J.nextSibling, xt = Se.nextSibling, we = se.nextSibling, it = we.firstChild, He = we.nextSibling, Bn = He.firstChild, tn = He.nextSibling, xn = tn.firstChild, Qn = xn.nextSibling, yr = tn.nextSibling, ds = yr.firstChild, Br = yr.nextSibling, ml = Br.firstChild, Oo = Br.nextSibling, Eo = Oo.firstChild, Ao = Eo.nextSibling, fs = Ao.nextSibling, Qh = fs.nextSibling, Yh = Qh.nextSibling, Xh = Yh.nextSibling, Zh = Xh.nextSibling, Jh = Zh.nextSibling, e0 = Jh.nextSibling, t0 = e0.nextSibling, n0 = t0.nextSibling, r0 = n0.nextSibling, i0 = r0.nextSibling, s0 = i0.nextSibling, o0 = s0.nextSibling, a0 = o0.nextSibling, l0 = a0.nextSibling, Rw = l0.nextSibling;
27656
+ return ne(n, "id", `a-${e}`), ne(r, "fill", `url(#a-${e})`), ne(s, "id", `am-${e}`), ne(o, "id", `b-${e}`), ne(a, "filter", `url(#am-${e})`), ne(l, "mask", `url(#b-${e})`), ne(u, "id", `ah-${e}`), ne(d, "id", `k-${e}`), ne(f, "filter", `url(#ah-${e})`), ne(h, "mask", `url(#k-${e})`), ne(y, "id", `ae-${e}`), ne(m, "id", `j-${e}`), ne(p, "filter", `url(#ae-${e})`), ne(b, "mask", `url(#j-${e})`), ne(C, "id", `ai-${e}`), ne(w, "id", `i-${e}`), ne(k, "filter", `url(#ai-${e})`), ne(x, "mask", `url(#i-${e})`), ne(O, "id", `aj-${e}`), ne(E, "id", `h-${e}`), ne(P, "filter", `url(#aj-${e})`), ne(M, "mask", `url(#h-${e})`), ne(N, "id", `ag-${e}`), ne(A, "id", `g-${e}`), ne(T, "filter", `url(#ag-${e})`), ne(L, "mask", `url(#g-${e})`), ne(W, "id", `af-${e}`), ne(B, "id", `f-${e}`), ne(U, "filter", `url(#af-${e})`), ne(re, "mask", `url(#f-${e})`), ne(ee, "id", `m-${e}`), ne(ye, "fill", `url(#m-${e})`), ne(xe, "id", `ak-${e}`), ne(he, "id", `e-${e}`), ne(Ge, "filter", `url(#ak-${e})`), ne(se, "mask", `url(#e-${e})`), ne(Ke, "id", `n-${e}`), ne(gt, "fill", `url(#n-${e})`), ne(qe, "id", `r-${e}`), ne(ze, "fill", `url(#r-${e})`), ne(Q, "id", `s-${e}`), ne(Me, "fill", `url(#s-${e})`), ne(ot, "id", `q-${e}`), ne(Ie, "fill", `url(#q-${e})`), ne(le, "id", `p-${e}`), ne(V, "fill", `url(#p-${e})`), ne(te, "id", `o-${e}`), ne(J, "fill", `url(#o-${e})`), ne(Se, "id", `l-${e}`), ne(xt, "fill", `url(#l-${e})`), ne(it, "id", `al-${e}`), ne(He, "id", `d-${e}`), ne(Bn, "filter", `url(#al-${e})`), ne(tn, "mask", `url(#d-${e})`), ne(xn, "id", `u-${e}`), ne(Qn, "fill", `url(#u-${e})`), ne(ds, "id", `ad-${e}`), ne(Br, "id", `c-${e}`), ne(ml, "filter", `url(#ad-${e})`), ne(Oo, "mask", `url(#c-${e})`), ne(Eo, "id", `t-${e}`), ne(Ao, "fill", `url(#t-${e})`), ne(fs, "id", `v-${e}`), ne(Qh, "stroke", `url(#v-${e})`), ne(Yh, "id", `aa-${e}`), ne(Xh, "stroke", `url(#aa-${e})`), ne(Zh, "id", `w-${e}`), ne(Jh, "stroke", `url(#w-${e})`), ne(e0, "id", `ac-${e}`), ne(t0, "stroke", `url(#ac-${e})`), ne(n0, "id", `ab-${e}`), ne(r0, "stroke", `url(#ab-${e})`), ne(i0, "id", `y-${e}`), ne(s0, "stroke", `url(#y-${e})`), ne(o0, "id", `x-${e}`), ne(a0, "stroke", `url(#x-${e})`), ne(l0, "id", `z-${e}`), ne(Rw, "stroke", `url(#z-${e})`), t;
27657
27657
  })();
27658
27658
  }
27659
27659
  var ND = /* @__PURE__ */ fe('<span><svg width=16 height=16 viewBox="0 0 16 16"fill=none xmlns=http://www.w3.org/2000/svg><path d="M6 12L10 8L6 4"stroke-width=2 stroke-linecap=round stroke-linejoin=round>'), FD = /* @__PURE__ */ fe('<button title="Copy object to clipboard">'), BD = /* @__PURE__ */ fe('<button title="Remove all items"aria-label="Remove all items">'), jD = /* @__PURE__ */ fe('<button title="Delete item"aria-label="Delete item">'), qD = /* @__PURE__ */ fe('<button title="Toggle value"aria-label="Toggle value">'), zD = /* @__PURE__ */ fe('<button title="Bulk Edit Data"aria-label="Bulk Edit Data">'), Uo = /* @__PURE__ */ fe("<div>"), HD = /* @__PURE__ */ fe("<div><button> <span></span> <span> "), UD = /* @__PURE__ */ fe("<input>"), Jm = /* @__PURE__ */ fe("<span>"), GD = /* @__PURE__ */ fe("<div><span>:"), KD = /* @__PURE__ */ fe("<div><div><button> [<!>...<!>]");
@@ -28798,8 +28798,8 @@ var XD = /* @__PURE__ */ fe('<div><div aria-hidden=true></div><button type=butto
28798
28798
  `, Hn() < ts && !(hn() || ci()) && r`
28799
28799
  height: 100%;
28800
28800
  max-height: 100%;
28801
- `, "tsqd-queries-container"), ee = de(i().row, "tsqd-header"), ye = i().logoAndToggleContainer, Z = de(i().logo, "tsqd-text-logo-container"), Se = de(i().tanstackLogo, "tsqd-text-logo-tanstack"), he = de(i().queryFlavorLogo, "tsqd-text-logo-query-flavor"), Ge = de(i().row, "tsqd-filters-actions-container"), se = de(i().filtersContainer, "tsqd-filters-container"), Ke = de(i().filterInput, "tsqd-query-filter-textfield-container"), gt = de("tsqd-query-filter-textfield"), vt = de(i().filterSelect, "tsqd-query-filter-sort-container"), qe = `Sort order ${(o() === "queries" ? c() : d()) === -1 ? "descending" : "ascending"}`, ze = (o() === "queries" ? c() : d()) === -1, Q = de(i().actionsContainer, "tsqd-actions-container"), Me = de(i().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), ot = `Clear ${o()} cache`, Ie = de(i().actionsBtn, Go() && i().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), le = `${Go() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, V = Go(), te = `${Go() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
28802
- return ae !== F.e && ie(x, F.e = ae), ee !== F.t && ie(_, F.t = ee), ye !== F.a && ie(O, F.a = ye), Z !== F.o && ie(E, F.o = Z), Se !== F.i && ie(P, F.i = Se), he !== F.n && ie(M, F.n = he), Ge !== F.s && ie(N, F.s = Ge), se !== F.h && ie(A, F.h = se), Ke !== F.r && ie(T, F.r = Ke), gt !== F.d && ie(L, F.d = gt), vt !== F.l && ie(z, F.l = vt), qe !== F.u && ne(W, "aria-label", F.u = qe), ze !== F.c && ne(W, "aria-pressed", F.c = ze), Q !== F.w && ie(B, F.w = Q), Me !== F.m && ie(U, F.m = Me), ot !== F.f && ne(U, "title", F.f = ot), Ie !== F.y && ie(re, F.y = Ie), le !== F.g && ne(re, "aria-label", F.g = le), V !== F.p && ne(re, "aria-pressed", F.p = V), te !== F.b && ne(re, "title", F.b = te), F;
28801
+ `, "tsqd-queries-container"), ee = de(i().row, "tsqd-header"), ye = i().logoAndToggleContainer, Z = de(i().logo, "tsqd-text-logo-container"), xe = de(i().tanstackLogo, "tsqd-text-logo-tanstack"), he = de(i().queryFlavorLogo, "tsqd-text-logo-query-flavor"), Ge = de(i().row, "tsqd-filters-actions-container"), se = de(i().filtersContainer, "tsqd-filters-container"), Ke = de(i().filterInput, "tsqd-query-filter-textfield-container"), gt = de("tsqd-query-filter-textfield"), vt = de(i().filterSelect, "tsqd-query-filter-sort-container"), qe = `Sort order ${(o() === "queries" ? c() : d()) === -1 ? "descending" : "ascending"}`, ze = (o() === "queries" ? c() : d()) === -1, Q = de(i().actionsContainer, "tsqd-actions-container"), Me = de(i().actionsBtn, "tsqd-actions-btn", "tsqd-action-clear-cache"), ot = `Clear ${o()} cache`, Ie = de(i().actionsBtn, Go() && i().actionsBtnOffline, "tsqd-actions-btn", "tsqd-action-mock-offline-behavior"), le = `${Go() ? "Unset offline mocking behavior" : "Mock offline behavior"}`, V = Go(), te = `${Go() ? "Unset offline mocking behavior" : "Mock offline behavior"}`;
28802
+ return ae !== F.e && ie(x, F.e = ae), ee !== F.t && ie(_, F.t = ee), ye !== F.a && ie(O, F.a = ye), Z !== F.o && ie(E, F.o = Z), xe !== F.i && ie(P, F.i = xe), he !== F.n && ie(M, F.n = he), Ge !== F.s && ie(N, F.s = Ge), se !== F.h && ie(A, F.h = se), Ke !== F.r && ie(T, F.r = Ke), gt !== F.d && ie(L, F.d = gt), vt !== F.l && ie(z, F.l = vt), qe !== F.u && ne(W, "aria-label", F.u = qe), ze !== F.c && ne(W, "aria-pressed", F.c = ze), Q !== F.w && ie(B, F.w = Q), Me !== F.m && ie(U, F.m = Me), ot !== F.f && ne(U, "title", F.f = ot), Ie !== F.y && ie(re, F.y = Ie), le !== F.g && ne(re, "aria-label", F.g = le), V !== F.p && ne(re, "aria-pressed", F.p = V), te !== F.b && ne(re, "title", F.b = te), F;
28803
28803
  }, {
28804
28804
  e: void 0,
28805
28805
  t: void 0,
@@ -29210,7 +29210,7 @@ var XD = /* @__PURE__ */ fe('<div><div aria-hidden=true></div><button type=butto
29210
29210
  return H(() => !!h())() && y();
29211
29211
  },
29212
29212
  get children() {
29213
- var O = OL(), E = O.firstChild, P = E.nextSibling, M = P.firstChild, j = M.firstChild, N = j.firstChild, A = j.nextSibling, T = M.nextSibling, L = T.firstChild, z = L.nextSibling, W = T.nextSibling, B = W.firstChild, U = B.nextSibling, re = P.nextSibling, oe = re.nextSibling, F = oe.firstChild, ae = F.firstChild, ee = F.nextSibling, ye = ee.firstChild, Z = ee.nextSibling, Se = Z.firstChild, he = Z.nextSibling, Ge = he.firstChild, se = he.nextSibling, Ke = se.firstChild, gt = Ke.nextSibling, vt = oe.nextSibling;
29213
+ var O = OL(), E = O.firstChild, P = E.nextSibling, M = P.firstChild, j = M.firstChild, N = j.firstChild, A = j.nextSibling, T = M.nextSibling, L = T.firstChild, z = L.nextSibling, W = T.nextSibling, B = W.firstChild, U = B.nextSibling, re = P.nextSibling, oe = re.nextSibling, F = oe.firstChild, ae = F.firstChild, ee = F.nextSibling, ye = ee.firstChild, Z = ee.nextSibling, xe = Z.firstChild, he = Z.nextSibling, Ge = he.firstChild, se = he.nextSibling, Ke = se.firstChild, gt = Ke.nextSibling, vt = oe.nextSibling;
29214
29214
  vt.firstChild;
29215
29215
  var qe = vt.nextSibling, ze = qe.nextSibling;
29216
29216
  return K(N, () => mc(h().queryKey, !0)), K(A, p), K(z, S), K(U, () => new Date(y().dataUpdatedAt).toLocaleTimeString()), F.$$click = w, ee.$$click = () => {
@@ -29339,21 +29339,21 @@ var XD = /* @__PURE__ */ fe('<div><div aria-hidden=true></div><button type=butto
29339
29339
  J.preventDefault();
29340
29340
  const xt = new FormData(J.currentTarget).get("data");
29341
29341
  try {
29342
- const xe = JSON.parse(xt);
29342
+ const we = JSON.parse(xt);
29343
29343
  h().setState({
29344
29344
  ...h().state,
29345
- data: xe
29345
+ data: we
29346
29346
  }), c("view");
29347
- } catch (xe) {
29347
+ } catch (we) {
29348
29348
  d(!0);
29349
29349
  }
29350
29350
  }), Me.addEventListener("focus", () => d(!1)), K(Ie, () => u() ? "Invalid Value" : ""), V.$$click = () => c("view"), ve((J) => {
29351
- var we = de(n().devtoolsEditForm, "tsqd-query-details-data-editor"), xt = n().devtoolsEditTextarea, xe = u(), it = n().devtoolsEditFormActions, He = n().devtoolsEditFormError, Bn = n().devtoolsEditFormActionContainer, tn = de(n().devtoolsEditFormAction, t`
29351
+ var Se = de(n().devtoolsEditForm, "tsqd-query-details-data-editor"), xt = n().devtoolsEditTextarea, we = u(), it = n().devtoolsEditFormActions, He = n().devtoolsEditFormError, Bn = n().devtoolsEditFormActionContainer, tn = de(n().devtoolsEditFormAction, t`
29352
29352
  color: ${i(r.gray[600], r.gray[300])};
29353
29353
  `), xn = de(n().devtoolsEditFormAction, t`
29354
29354
  color: ${i(r.blue[600], r.blue[400])};
29355
29355
  `);
29356
- return we !== J.e && ie(Q, J.e = we), xt !== J.t && ie(Me, J.t = xt), xe !== J.a && ne(Me, "data-error", J.a = xe), it !== J.o && ie(ot, J.o = it), He !== J.i && ie(Ie, J.i = He), Bn !== J.n && ie(le, J.n = Bn), tn !== J.s && ie(V, J.s = tn), xn !== J.h && ie(te, J.h = xn), J;
29356
+ return Se !== J.e && ie(Q, J.e = Se), xt !== J.t && ie(Me, J.t = xt), we !== J.a && ne(Me, "data-error", J.a = we), it !== J.o && ie(ot, J.o = it), He !== J.i && ie(Ie, J.i = He), Bn !== J.n && ie(le, J.n = Bn), tn !== J.s && ie(V, J.s = tn), xn !== J.h && ie(te, J.h = xn), J;
29357
29357
  }, {
29358
29358
  e: void 0,
29359
29359
  t: void 0,
@@ -29374,9 +29374,9 @@ var XD = /* @__PURE__ */ fe('<div><div aria-hidden=true></div><button type=butto
29374
29374
  })), ve((Q) => {
29375
29375
  var Me = de(n().detailsContainer, "tsqd-query-details-container"), ot = de(n().detailsHeader, "tsqd-query-details-header"), Ie = de(n().detailsBody, "tsqd-query-details-summary-container"), le = de(n().queryDetailsStatus, _()), V = de(n().detailsHeader, "tsqd-query-details-header"), te = de(n().actionsBody, "tsqd-query-details-actions-container"), J = de(t`
29376
29376
  color: ${i(r.blue[600], r.blue[400])};
29377
- `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), we = p() === "fetching", xt = t`
29377
+ `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-refetch"), Se = p() === "fetching", xt = t`
29378
29378
  background-color: ${i(r.blue[600], r.blue[400])};
29379
- `, xe = de(t`
29379
+ `, we = de(t`
29380
29380
  color: ${i(r.yellow[600], r.yellow[400])};
29381
29381
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-invalidate"), it = b() === "pending", He = t`
29382
29382
  background-color: ${i(r.yellow[600], r.yellow[400])};
@@ -29393,7 +29393,7 @@ var XD = /* @__PURE__ */ fe('<div><div aria-hidden=true></div><button type=butto
29393
29393
  `, "tsqd-query-details-actions-btn", "tsqd-query-details-action-loading"), ml = o(), Oo = t`
29394
29394
  background-color: ${i(r.cyan[500], r.cyan[400])};
29395
29395
  `, Eo = de(n().detailsHeader, "tsqd-query-details-header"), Ao = de(n().detailsHeader, "tsqd-query-details-header"), fs = G.size[2];
29396
- return Me !== Q.e && ie(O, Q.e = Me), ot !== Q.t && ie(E, Q.t = ot), Ie !== Q.a && ie(P, Q.a = Ie), le !== Q.o && ie(A, Q.o = le), V !== Q.i && ie(re, Q.i = V), te !== Q.n && ie(oe, Q.n = te), J !== Q.s && ie(F, Q.s = J), we !== Q.h && (F.disabled = Q.h = we), xt !== Q.r && ie(ae, Q.r = xt), xe !== Q.d && ie(ee, Q.d = xe), it !== Q.l && (ee.disabled = Q.l = it), He !== Q.u && ie(ye, Q.u = He), Bn !== Q.c && ie(Z, Q.c = Bn), tn !== Q.w && (Z.disabled = Q.w = tn), xn !== Q.m && ie(Se, Q.m = xn), Qn !== Q.f && ie(he, Q.f = Qn), yr !== Q.y && (he.disabled = Q.y = yr), ds !== Q.g && ie(Ge, Q.g = ds), Br !== Q.p && ie(se, Q.p = Br), ml !== Q.b && (se.disabled = Q.b = ml), Oo !== Q.T && ie(Ke, Q.T = Oo), Eo !== Q.A && ie(vt, Q.A = Eo), Ao !== Q.O && ie(qe, Q.O = Ao), fs !== Q.I && ((Q.I = fs) != null ? ze.style.setProperty("padding", fs) : ze.style.removeProperty("padding")), Q;
29396
+ return Me !== Q.e && ie(O, Q.e = Me), ot !== Q.t && ie(E, Q.t = ot), Ie !== Q.a && ie(P, Q.a = Ie), le !== Q.o && ie(A, Q.o = le), V !== Q.i && ie(re, Q.i = V), te !== Q.n && ie(oe, Q.n = te), J !== Q.s && ie(F, Q.s = J), Se !== Q.h && (F.disabled = Q.h = Se), xt !== Q.r && ie(ae, Q.r = xt), we !== Q.d && ie(ee, Q.d = we), it !== Q.l && (ee.disabled = Q.l = it), He !== Q.u && ie(ye, Q.u = He), Bn !== Q.c && ie(Z, Q.c = Bn), tn !== Q.w && (Z.disabled = Q.w = tn), xn !== Q.m && ie(xe, Q.m = xn), Qn !== Q.f && ie(he, Q.f = Qn), yr !== Q.y && (he.disabled = Q.y = yr), ds !== Q.g && ie(Ge, Q.g = ds), Br !== Q.p && ie(se, Q.p = Br), ml !== Q.b && (se.disabled = Q.b = ml), Oo !== Q.T && ie(Ke, Q.T = Oo), Eo !== Q.A && ie(vt, Q.A = Eo), Ao !== Q.O && ie(qe, Q.O = Ao), fs !== Q.I && ((Q.I = fs) != null ? ze.style.setProperty("padding", fs) : ze.style.removeProperty("padding")), Q;
29397
29397
  }, {
29398
29398
  e: void 0,
29399
29399
  t: void 0,
@@ -31227,11 +31227,11 @@ var yI = function() {
31227
31227
  }), oe = re.data, F = re.isLoading, ae = 10, ee = (oe == null || (t = oe.data) === null || t === void 0 ? void 0 : t.associatedBrands.filter(function(V) {
31228
31228
  var te, J;
31229
31229
  return h ? ((te = (J = V.name) === null || J === void 0 ? void 0 : J.toLowerCase()) !== null && te !== void 0 ? te : "").includes(h.toLowerCase()) : !0;
31230
- })) || [], ye = Math.ceil(ee.length / ae), Z = (p - 1) * ae, Se = lI(ee).sort(function(V, te) {
31230
+ })) || [], ye = Math.ceil(ee.length / ae), Z = (p - 1) * ae, xe = lI(ee).sort(function(V, te) {
31231
31231
  return V.type === "group" && te.type !== "group" ? -1 : V.type !== "group" && te.type === "group" ? 1 : 0;
31232
- }), he = Se.slice(Z, Z + ae), Ge = function(te) {
31233
- var J = ee.find(function(we) {
31234
- return U(we) === te;
31232
+ }), he = xe.slice(Z, Z + ae), Ge = function(te) {
31233
+ var J = ee.find(function(Se) {
31234
+ return U(Se) === te;
31235
31235
  });
31236
31236
  J && J.type === "group" && (z(J), N(!0));
31237
31237
  }, se = Object.entries(w).filter(function(V) {
@@ -31265,24 +31265,24 @@ var yI = function() {
31265
31265
  Header: "Brand name",
31266
31266
  accessor: "name",
31267
31267
  Cell: function(te) {
31268
- var J = te.value, we = te.row;
31268
+ var J = te.value, Se = te.row;
31269
31269
  return /* @__PURE__ */ v("span", { className: "yst-font-medium yst-text-slate-900", children: /* @__PURE__ */ D("div", { className: "yst-flex yst-items-center yst-gap-2", children: [
31270
- /* @__PURE__ */ v(wd, { id: "brand-checkbox-".concat(we.id), checked: !!w[U(we)], onChange: function() {
31271
- return vt(U(we));
31272
- }, value: U(we), label: we.isSelf ? (
31270
+ /* @__PURE__ */ v(wd, { id: "brand-checkbox-".concat(Se.id), checked: !!w[U(Se)], onChange: function() {
31271
+ return vt(U(Se));
31272
+ }, value: U(Se), label: Se.isSelf ? (
31273
31273
  // NOTE: this causes nasty react validation error/warning in console
31274
31274
  // we should update the ui-library types to allow this
31275
31275
  /* @__PURE__ */ v(lu, { children: J })
31276
- ) : J, name: "brand-checkbox-".concat(we.id), disabled: !Ie(U(we), we) }),
31277
- we.type === "group" && /* @__PURE__ */ v(S_, { className: "yst-h-4 yst-w-4 yst-text-slate-400" })
31276
+ ) : J, name: "brand-checkbox-".concat(Se.id), disabled: !Ie(U(Se), Se) }),
31277
+ Se.type === "group" && /* @__PURE__ */ v(S_, { className: "yst-h-4 yst-w-4 yst-text-slate-400" })
31278
31278
  ] }) });
31279
31279
  },
31280
31280
  LoadingComponent: function(te) {
31281
- var J = te.id, we = J === void 0 ? "" : J;
31281
+ var J = te.id, Se = J === void 0 ? "" : J;
31282
31282
  return /* @__PURE__ */ D("div", { className: "yst-flex", children: [
31283
- /* @__PURE__ */ v(wd, { id: "loading-row-checkbox-".concat(we), value: "loading", label: "", disabled: !0, name: "brand-checkbox-".concat(we) }),
31283
+ /* @__PURE__ */ v(wd, { id: "loading-row-checkbox-".concat(Se), value: "loading", label: "", disabled: !0, name: "brand-checkbox-".concat(Se) }),
31284
31284
  " ",
31285
- /* @__PURE__ */ v(dt, { className: "yst-h-6 yst-w-32", id: "loading-row-skeleton-".concat(we) })
31285
+ /* @__PURE__ */ v(dt, { className: "yst-h-6 yst-w-32", id: "loading-row-skeleton-".concat(Se) })
31286
31286
  ] });
31287
31287
  }
31288
31288
  },
@@ -31324,8 +31324,8 @@ var yI = function() {
31324
31324
  Header: "Actions",
31325
31325
  accessor: "id",
31326
31326
  Cell: function(te) {
31327
- var J = te.value, we = te.row;
31328
- return /* @__PURE__ */ v(Je, { children: we.type === "group" ? /* @__PURE__ */ D(
31327
+ var J = te.value, Se = te.row;
31328
+ return /* @__PURE__ */ v(Je, { children: Se.type === "group" ? /* @__PURE__ */ D(
31329
31329
  Fe,
31330
31330
  {
31331
31331
  variant: "tertiary",
@@ -31334,7 +31334,7 @@ var yI = function() {
31334
31334
  return Ge(String(J != null ? J : ""));
31335
31335
  },
31336
31336
  className: "yst-gap-1.5 yst-px-0",
31337
- disabled: !Ie(U(we), we),
31337
+ disabled: !Ie(U(Se), Se),
31338
31338
  children: [
31339
31339
  /* @__PURE__ */ v(N2, { className: "yst-h-4 yst-w-4" }),
31340
31340
  "Edit group"
@@ -31379,8 +31379,8 @@ var yI = function() {
31379
31379
  return /* @__PURE__ */ v(ke.Header, { children: V.Header }, V.accessor);
31380
31380
  }) }) }),
31381
31381
  /* @__PURE__ */ v(ke.Body, { children: F ? [1, 2, 3].map(function(V, te) {
31382
- return /* @__PURE__ */ v(ke.Row, { children: le.map(function(J, we) {
31383
- return /* @__PURE__ */ v(ke.Cell, { children: /* @__PURE__ */ v(J.LoadingComponent, { id: "skeleton-".concat(te, "-").concat(we) }, J.accessor) }, "cell-".concat(we));
31382
+ return /* @__PURE__ */ v(ke.Row, { children: le.map(function(J, Se) {
31383
+ return /* @__PURE__ */ v(ke.Cell, { children: /* @__PURE__ */ v(J.LoadingComponent, { id: "skeleton-".concat(te, "-").concat(Se) }, J.accessor) }, "cell-".concat(Se));
31384
31384
  }) }, te);
31385
31385
  }) : he.length === 0 ? (
31386
31386
  /* NO RESULTS FOUND */
@@ -33813,7 +33813,7 @@ var ws = 5, ia = "Generating...", bR = "Re-generating...", wR = 100, xR = ["****
33813
33813
  });
33814
33814
  }, [c, ee]), Z = function() {
33815
33815
  z(!1);
33816
- }, Se = function() {
33816
+ }, xe = function() {
33817
33817
  z(!1), r && se({
33818
33818
  brandId: r,
33819
33819
  data: {
@@ -33835,14 +33835,14 @@ var ws = 5, ia = "Generating...", bR = "Re-generating...", wR = 100, xR = ["****
33835
33835
  mutation: {
33836
33836
  onSuccess: function() {
33837
33837
  var le = yR(/* @__PURE__ */ Bf().m(function te(J) {
33838
- return Bf().w(function(we) {
33839
- for (; ; ) switch (we.n) {
33838
+ return Bf().w(function(Se) {
33839
+ for (; ; ) switch (Se.n) {
33840
33840
  case 0:
33841
33841
  if (N(null), !(J != null && J.status && J.status >= 200 && J.status < 300)) {
33842
- we.n = 2;
33842
+ Se.n = 2;
33843
33843
  break;
33844
33844
  }
33845
- return we.n = 1, Promise.all([o.invalidateQueries({
33845
+ return Se.n = 1, Promise.all([o.invalidateQueries({
33846
33846
  queryKey: ih(r || "")
33847
33847
  }), o.invalidateQueries({
33848
33848
  queryKey: lr()
@@ -33850,7 +33850,7 @@ var ws = 5, ia = "Generating...", bR = "Re-generating...", wR = 100, xR = ["****
33850
33850
  case 1:
33851
33851
  s(i);
33852
33852
  case 2:
33853
- return we.a(2);
33853
+ return Se.a(2);
33854
33854
  }
33855
33855
  }, te);
33856
33856
  }));
@@ -33868,8 +33868,8 @@ var ws = 5, ia = "Generating...", bR = "Re-generating...", wR = 100, xR = ["****
33868
33868
  });
33869
33869
  return;
33870
33870
  }
33871
- var we = (V == null || (J = V.response) === null || J === void 0 || (J = J.data) === null || J === void 0 ? void 0 : J.message) || (V == null ? void 0 : V.message) || "An unexpected error occurred.";
33872
- N(we);
33871
+ var Se = (V == null || (J = V.response) === null || J === void 0 || (J = J.data) === null || J === void 0 ? void 0 : J.message) || (V == null ? void 0 : V.message) || "An unexpected error occurred.";
33872
+ N(Se);
33873
33873
  }
33874
33874
  }
33875
33875
  }), se = Ge.mutate, Ke = Ge.isPending;
@@ -33902,10 +33902,10 @@ var ws = 5, ia = "Generating...", bR = "Re-generating...", wR = 100, xR = ["****
33902
33902
  if (O && B !== null && B !== void 0 && (le = B.data) !== null && le !== void 0 && le.queries && Array.isArray(B.data.queries) && !U) {
33903
33903
  var V = B.data.queries.slice(0, ws), te = p.map(Number);
33904
33904
  u(function(J) {
33905
- return J.map(function(we, xt) {
33906
- var xe = te.indexOf(xt);
33907
- return zr(zr({}, we), {}, {
33908
- text: xe >= 0 && V[xe] ? V[xe] : we.text,
33905
+ return J.map(function(Se, xt) {
33906
+ var we = te.indexOf(xt);
33907
+ return zr(zr({}, Se), {}, {
33908
+ text: we >= 0 && V[we] ? V[we] : Se.text,
33909
33909
  isRegenerating: !1
33910
33910
  });
33911
33911
  });
@@ -33932,8 +33932,8 @@ var ws = 5, ia = "Generating...", bR = "Re-generating...", wR = 100, xR = ["****
33932
33932
  });
33933
33933
  }, []), Q = En(function(le, V) {
33934
33934
  u(function(te) {
33935
- return te.map(function(J, we) {
33936
- return we === le ? zr(zr({}, J), {}, {
33935
+ return te.map(function(J, Se) {
33936
+ return Se === le ? zr(zr({}, J), {}, {
33937
33937
  text: V
33938
33938
  }) : J;
33939
33939
  });
@@ -33943,8 +33943,8 @@ var ws = 5, ia = "Generating...", bR = "Re-generating...", wR = 100, xR = ["****
33943
33943
  }, ot = En(function() {
33944
33944
  if (!(U || p.length === 0)) {
33945
33945
  u(function(J) {
33946
- return J.map(function(we, xt) {
33947
- return zr(zr({}, we), {}, {
33946
+ return J.map(function(Se, xt) {
33947
+ return zr(zr({}, Se), {}, {
33948
33948
  isRegenerating: p.includes(xt.toString())
33949
33949
  });
33950
33950
  });
@@ -33953,17 +33953,17 @@ var ws = 5, ia = "Generating...", bR = "Re-generating...", wR = 100, xR = ["****
33953
33953
  return J.text;
33954
33954
  }), V = p.length, te = gt(V, le);
33955
33955
  te.length === V ? (u(function(J) {
33956
- return J.map(function(we, xt) {
33957
- var xe = p.indexOf(xt.toString());
33958
- return xe >= 0 ? zr(zr({}, we), {}, {
33959
- text: te[xe],
33956
+ return J.map(function(Se, xt) {
33957
+ var we = p.indexOf(xt.toString());
33958
+ return we >= 0 ? zr(zr({}, Se), {}, {
33959
+ text: te[we],
33960
33960
  isRegenerating: !1
33961
- }) : we;
33961
+ }) : Se;
33962
33962
  });
33963
33963
  }), k(function(J) {
33964
- var we = new Set(te);
33964
+ var Se = new Set(te);
33965
33965
  return J.filter(function(xt) {
33966
- return !we.has(xt);
33966
+ return !Se.has(xt);
33967
33967
  });
33968
33968
  }), b([])) : (E(!0), oe());
33969
33969
  }
@@ -34022,7 +34022,7 @@ var ws = 5, ia = "Generating...", bR = "Re-generating...", wR = 100, xR = ["****
34022
34022
  ) }),
34023
34023
  /* @__PURE__ */ v("div", { className: "yst-flex-1", children: /* @__PURE__ */ v(ks, { id: "query-text-".concat(V), label: "Query ".concat(V + 1), type: "text", value: te, onChange: function(J) {
34024
34024
  le.isRegenerating || Q(V, J.target.value);
34025
- }, placeholder: "Enter your query...", className: "yst-w-full", disabled: le.isRegenerating, required: !0, maxLength: 255, validation: ee(le.text) ? {
34025
+ }, placeholder: "Enter your query...", className: "yst-w-full", disabled: le.isRegenerating, required: !0, minLength: 3, maxLength: 255, validation: ee(le.text) ? {
34026
34026
  variant: "warning",
34027
34027
  message: "For more accurate insights, avoid using your brand name in the query."
34028
34028
  } : void 0 }) })
@@ -34039,7 +34039,7 @@ var ws = 5, ia = "Generating...", bR = "Re-generating...", wR = 100, xR = ["****
34039
34039
  /* @__PURE__ */ v("p", { className: "yst-text-sm yst-text-slate-600", children: "For more balanced results, remove your brand name or make the queries more general." })
34040
34040
  ] }),
34041
34041
  /* @__PURE__ */ D(Ee.Container.Footer, { className: "yst-flex yst-justify-end yst-gap-3", children: [
34042
- /* @__PURE__ */ D(Fe, { onClick: Se, variant: "secondary", className: "yst-gap-1.5", disabled: Ke, isLoading: Ke, children: [
34042
+ /* @__PURE__ */ D(Fe, { onClick: xe, variant: "secondary", className: "yst-gap-1.5", disabled: Ke, isLoading: Ke, children: [
34043
34043
  /* @__PURE__ */ v(Pp, {}),
34044
34044
  "Run analysis anyway"
34045
34045
  ] }),