@yoast/ai-insights-client 1.4.118 → 1.4.119

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,7 +13,7 @@ var qs = (t, e, n, r) => ({
13
13
  return _(t, e, r);
14
14
  }
15
15
  });
16
- import { jsx as p, jsxs as k, Fragment as Te } from "react/jsx-runtime";
16
+ import { jsx as p, jsxs as C, Fragment as Te } from "react/jsx-runtime";
17
17
  import { SidebarNavigation as _i, Title as $e, SkeletonLoader as Je, Link as qn, Modal as ee, Button as de, Spinner as Ps, Toast as To, ValidationIcon as Lv, Paper as _r, Stepper as Mv, Tooltip as Nv, Card as Ge, ProgressBar as Rv, Alert as an, Badge as nn, Select as Io, Table as le, Pagination as Bc, TextInput as Zo, DropdownMenu as Ws, Label as Ml, Root as _v, TagField as bm, Checkbox as Ou, TextField as $r, Toggle as Dv, TextareaField as Bv, Autocomplete as Fd } from "@yoast/ui-library";
18
18
  import * as M from "react";
19
19
  import sa, { createContext as jc, useMemo as nt, useCallback as Ve, useState as ne, useContext as $o, Suspense as Sn, useEffect as Ce, useRef as ln, forwardRef as Fc, lazy as zr } from "react";
@@ -6727,7 +6727,7 @@ var Sf = function(e) {
6727
6727
  var o = s.isActive ? s.isActive(i) : !1;
6728
6728
  return /* @__PURE__ */ p(_i.SubmenuItem, { className: ae("yst-flex yst-gap-x-3", {
6729
6729
  "yst-sidebar-navigation__item--active": o
6730
- }), href: s.href, to: s.href, as: Ur, label: /* @__PURE__ */ k(Te, { children: [
6730
+ }), href: s.href, to: s.href, as: Ur, label: /* @__PURE__ */ C(Te, { children: [
6731
6731
  /* @__PURE__ */ p(s.Icon, { className: ae(Af || (Af = pA(["yst-sidebar-navigation__icon yst-h-6 yst-w-6"]))) }),
6732
6732
  s.label
6733
6733
  ] }) }, s.label);
@@ -6786,17 +6786,17 @@ var wA = function(e) {
6786
6786
  if (E.preventDefault(), d(!0), !g)
6787
6787
  return v();
6788
6788
  };
6789
- return /* @__PURE__ */ k("div", { className: ae("ystaii-sidemenu"), children: [
6789
+ return /* @__PURE__ */ C("div", { className: ae("ystaii-sidemenu"), children: [
6790
6790
  /* @__PURE__ */ p("div", { className: "ystaii-mobile-menu lg:yst-hidden", children: /* @__PURE__ */ p(_i, { activePath: i, children: /* @__PURE__ */ p(_i.Mobile, { closeButtonScreenReaderText: "Close sidebar", openButtonScreenReaderText: "Open sidebar", children: /* @__PURE__ */ p(Sf, {}) }) }) }),
6791
- /* @__PURE__ */ k("div", { className: ae("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: [
6791
+ /* @__PURE__ */ C("div", { className: ae("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($e, { children: /* @__PURE__ */ p(Ur, { className: ae("yst-outline-none"), to: "/", children: /* @__PURE__ */ p("img", { src: yA, alt: "Yoast", width: "208", height: "42", className: "yst-block" }) }) }),
6793
- /* @__PURE__ */ k("div", { className: ae("ystaii-userInfoContainer", "yst-flex yst-flex-col"), children: [
6793
+ /* @__PURE__ */ C("div", { className: ae("ystaii-userInfoContainer", "yst-flex yst-flex-col"), children: [
6794
6794
  /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p("b", { children: y ? /* @__PURE__ */ p(Je, { children: "Display name" }) : f == null ? void 0 : f.displayName }) }),
6795
6795
  /* @__PURE__ */ p("div", { children: y ? /* @__PURE__ */ p(Je, { children: "loading-email@address.com" }) : f == null ? void 0 : f.email }),
6796
- /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(qn, { variant: "primary", className: "yst-no-underline", onClick: A, children: y ? /* @__PURE__ */ k(Je, { children: [
6796
+ /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(qn, { variant: "primary", className: "yst-no-underline", onClick: A, children: y ? /* @__PURE__ */ C(Je, { children: [
6797
6797
  "Sign out ",
6798
6798
  /* @__PURE__ */ p("span", { "aria-hidden": "true", children: "→" })
6799
- ] }) : c || g ? /* @__PURE__ */ p(Te, { children: "Signing out..." }) : /* @__PURE__ */ k(Te, { children: [
6799
+ ] }) : c || g ? /* @__PURE__ */ p(Te, { children: "Signing out..." }) : /* @__PURE__ */ C(Te, { children: [
6800
6800
  "Sign out ",
6801
6801
  /* @__PURE__ */ p("span", { "aria-hidden": "true", children: "→" })
6802
6802
  ] }) }) })
@@ -6837,13 +6837,13 @@ function zl(t) {
6837
6837
  var e = t.children, n = t.disable, r = n === void 0 ? !1 : n, i = t.hideNav, a = i === void 0 ? !1 : i, s = t.DebugInfo;
6838
6838
  return r ? e : (
6839
6839
  // layout root
6840
- /* @__PURE__ */ k("div", { className: ae("ystaii-layout", "yst-block", "lg:yst-flex lg:yst-min-h-full lg:yst-overflow-visible"), children: [
6840
+ /* @__PURE__ */ C("div", { className: ae("ystaii-layout", "yst-block", "lg:yst-flex lg:yst-min-h-full lg:yst-overflow-visible"), children: [
6841
6841
  /* @__PURE__ */ p(kA, { children: "Skip to main content" }),
6842
- !a && /* @__PURE__ */ k("div", { className: ae("ystaii-sidebar", "yst-overflow-hidden", "lg:yst-flex-grow-1 lg:yst-max-w-[300px] lg:yst-flex-shrink-0 lg:yst-basis-[300px] lg:yst-overflow-visible lg:yst-pl-4"), children: [
6842
+ !a && /* @__PURE__ */ C("div", { className: ae("ystaii-sidebar", "yst-overflow-hidden", "lg:yst-flex-grow-1 lg:yst-max-w-[300px] lg:yst-flex-shrink-0 lg:yst-basis-[300px] lg:yst-overflow-visible lg:yst-pl-4"), children: [
6843
6843
  /* @__PURE__ */ p(wA, {}),
6844
6844
  s && /* @__PURE__ */ p(s, {}),
6845
6845
  /* @__PURE__ */ p(Sn, { fallback: null, children: /* @__PURE__ */ p(EA, {}) }),
6846
- /* @__PURE__ */ k("div", { id: "toast-portal", className: "yst-fixed yst-bottom-4 yst-left-4 yst-w-96 yst-space-y-4", children: [
6846
+ /* @__PURE__ */ C("div", { id: "toast-portal", className: "yst-fixed yst-bottom-4 yst-left-4 yst-w-96 yst-space-y-4", children: [
6847
6847
  /* @__PURE__ */ p("div", { id: "hook-toasts" }),
6848
6848
  /* @__PURE__ */ p("div", { id: "tsx-toasts" })
6849
6849
  ] })
@@ -7059,36 +7059,36 @@ var MA = 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", O = m.length === 1 ? /* @__PURE__ */ k(Te, { children: [
7062
+ }(), A = m.length === 1 ? "One brand has been deactivated" : "Multiple brands have been deactivated", O = m.length === 1 ? /* @__PURE__ */ C(Te, { children: [
7063
7063
  /* @__PURE__ */ p("p", { children: "You recently lost a subscription. Because of this, we could not analyze all your active brands." }),
7064
- /* @__PURE__ */ k("p", { children: [
7064
+ /* @__PURE__ */ C("p", { children: [
7065
7065
  "The brand ",
7066
7066
  /* @__PURE__ */ p("b", { children: m == null || (n = m[0]) === null || n === void 0 ? void 0 : n.name }),
7067
7067
  " was deactivated, since it was the most recently analyzed."
7068
7068
  ] }),
7069
- /* @__PURE__ */ k("p", { children: [
7069
+ /* @__PURE__ */ C("p", { children: [
7070
7070
  "If you prefer, you can go to ",
7071
7071
  /* @__PURE__ */ p("b", { children: "Settings" }),
7072
7072
  " and deactivate a different brand instead."
7073
7073
  ] })
7074
- ] }) : /* @__PURE__ */ k(Te, { children: [
7074
+ ] }) : /* @__PURE__ */ C(Te, { 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) {
7078
7078
  return /* @__PURE__ */ p("li", { children: /* @__PURE__ */ p("b", { children: E.name }) }, E.id);
7079
7079
  }) }),
7080
- /* @__PURE__ */ k("p", { children: [
7080
+ /* @__PURE__ */ C("p", { children: [
7081
7081
  "If you prefer, you can go to ",
7082
7082
  /* @__PURE__ */ p("b", { children: "Settings" }),
7083
7083
  " and deactivate different brand(s) instead."
7084
7084
  ] })
7085
7085
  ] });
7086
- return l ? /* @__PURE__ */ p(ee, { isOpen: l, onClose: g, position: "center", as: "div", className: r, children: /* @__PURE__ */ k(ee.Panel, { children: [
7087
- /* @__PURE__ */ p("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: /* @__PURE__ */ k("div", { className: "yst-flex-1", children: [
7086
+ return l ? /* @__PURE__ */ p(ee, { isOpen: l, onClose: g, position: "center", as: "div", className: r, children: /* @__PURE__ */ C(ee.Panel, { children: [
7087
+ /* @__PURE__ */ p("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: /* @__PURE__ */ C("div", { className: "yst-flex-1", children: [
7088
7088
  /* @__PURE__ */ p(ee.Container.Header, { className: "yst-mb-3 yst-w-full", children: /* @__PURE__ */ p(ee.Title, { as: "h3", className: "yst-text-lg yst-font-medium", children: A }) }),
7089
7089
  /* @__PURE__ */ p(ee.Container.Content, { className: "yst-mb-4 yst-space-y-3", children: O })
7090
7090
  ] }) }),
7091
- /* @__PURE__ */ k(ee.Container.Footer, { className: "yst-mt-3 yst-flex yst-justify-end yst-gap-2", children: [
7091
+ /* @__PURE__ */ C(ee.Container.Footer, { className: "yst-mt-3 yst-flex yst-justify-end yst-gap-2", children: [
7092
7092
  /* @__PURE__ */ p(de, { variant: "secondary", onClick: g, children: "Close" }),
7093
7093
  /* @__PURE__ */ p(de, { variant: "primary", onClick: g, isLoading: y, disabled: y, children: "Go to settings" })
7094
7094
  ] })
@@ -7103,7 +7103,7 @@ var fa = function(e) {
7103
7103
  o == null || o();
7104
7104
  };
7105
7105
  return /* @__PURE__ */ p(ee, { isOpen: n, onClose: a || function() {
7106
- }, position: "center", as: "div", className: "[&_.yst-modal\\_\\_close-button]:yst-bg-transparent", children: /* @__PURE__ */ k(
7106
+ }, position: "center", as: "div", className: "[&_.yst-modal\\_\\_close-button]:yst-bg-transparent", children: /* @__PURE__ */ C(
7107
7107
  ee.Panel,
7108
7108
  {
7109
7109
  className: ae("yst-relative yst-max-w-[512px] yst-rounded-3xl yst-bg-gradient-to-b yst-from-[rgba(166,30,105,0.25)] yst-via-white yst-via-40% yst-to-white yst-px-10", {
@@ -7113,21 +7113,21 @@ var fa = function(e) {
7113
7113
  hasCloseButton: !!a,
7114
7114
  children: [
7115
7115
  /* @__PURE__ */ p("img", { src: RA, alt: "Upsell image", className: "yst-mb-6 yst-rounded-lg yst-shadow-lg" }),
7116
- /* @__PURE__ */ k(ee.Container.Header, { className: "yst-mb-4 yst-space-y-4 yst-text-center", children: [
7117
- /* @__PURE__ */ k("p", { className: "yst-flex yst-items-center yst-justify-center yst-gap-1 yst-text-center yst-text-xs yst-uppercase yst-text-slate-500", children: [
7116
+ /* @__PURE__ */ C(ee.Container.Header, { className: "yst-mb-4 yst-space-y-4 yst-text-center", children: [
7117
+ /* @__PURE__ */ C("p", { className: "yst-flex yst-items-center yst-justify-center yst-gap-1 yst-text-center yst-text-xs yst-uppercase yst-text-slate-500", children: [
7118
7118
  /* @__PURE__ */ p(NA, { className: "yst-h-6 yst-w-6" }),
7119
7119
  " Available now - Yoast AI Brand Insights"
7120
7120
  ] }),
7121
7121
  /* @__PURE__ */ p(ee.Title, { as: "h2", className: "yst-pr-8 yst-text-lg yst-font-medium yst-text-slate-900", children: "How does your brand show up in AI responses?" }),
7122
- i === "trial" ? /* @__PURE__ */ k("p", { className: "yst-text-tiny yst-font-normal yst-text-slate-600", children: [
7122
+ i === "trial" ? /* @__PURE__ */ C("p", { className: "yst-text-tiny yst-font-normal yst-text-slate-600", children: [
7123
7123
  "Track visibility, control perception, and stay ahead - tools to manage your AI presence are now live.",
7124
7124
  " ",
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__ */ k(Te, { children: [
7128
+ i === "trial" && /* @__PURE__ */ C(Te, { children: [
7129
7129
  /* @__PURE__ */ p(fa, { size: 4 }),
7130
- /* @__PURE__ */ p(ee.Container.Content, { className: "yst-space-y-4", children: /* @__PURE__ */ k("p", { className: "yst-text-sm yst-italic yst-text-slate-600", children: [
7130
+ /* @__PURE__ */ p(ee.Container.Content, { className: "yst-space-y-4", children: /* @__PURE__ */ C("p", { className: "yst-text-sm yst-italic yst-text-slate-600", children: [
7131
7131
  "By continuing to use this product, you agree to our",
7132
7132
  " ",
7133
7133
  /* @__PURE__ */ p(
@@ -7156,11 +7156,11 @@ var fa = function(e) {
7156
7156
  "."
7157
7157
  ] }) })
7158
7158
  ] }),
7159
- /* @__PURE__ */ k(ee.Container.Footer, { className: "yst-mt-6 yst-flex yst-flex-col yst-gap-2", children: [
7160
- i === "trial" ? /* @__PURE__ */ k(de, { variant: "primary", onClick: l, className: "yst-flex yst-w-full yst-items-center yst-gap-1", children: [
7159
+ /* @__PURE__ */ C(ee.Container.Footer, { className: "yst-mt-6 yst-flex yst-flex-col yst-gap-2", children: [
7160
+ i === "trial" ? /* @__PURE__ */ C(de, { variant: "primary", onClick: l, className: "yst-flex yst-w-full yst-items-center yst-gap-1", children: [
7161
7161
  /* @__PURE__ */ p(E0, {}),
7162
7162
  " Discover Brand Insights now"
7163
- ] }) : /* @__PURE__ */ k(de, { variant: "upsell", onClick: l, className: "yst-flex yst-w-full yst-items-center yst-gap-1", children: [
7163
+ ] }) : /* @__PURE__ */ C(de, { variant: "upsell", onClick: l, className: "yst-flex yst-w-full yst-items-center yst-gap-1", children: [
7164
7164
  /* @__PURE__ */ p(nA, {}),
7165
7165
  " Unlock Yoast AI Brand Insights"
7166
7166
  ] }),
@@ -7170,7 +7170,7 @@ var fa = function(e) {
7170
7170
  }
7171
7171
  ) });
7172
7172
  }, ha = function() {
7173
- return /* @__PURE__ */ p("div", { className: "yst-flex yst-min-h-screen yst-items-center yst-justify-center", children: /* @__PURE__ */ k("div", { className: "yst-flex yst-items-center yst-gap-3 yst-text-center", children: [
7173
+ return /* @__PURE__ */ p("div", { className: "yst-flex yst-min-h-screen yst-items-center yst-justify-center", children: /* @__PURE__ */ C("div", { className: "yst-flex yst-items-center yst-gap-3 yst-text-center", children: [
7174
7174
  /* @__PURE__ */ p(Ps, { variant: "primary" }),
7175
7175
  /* @__PURE__ */ p("span", { className: "yst-italic", children: "Just a moment while we get things ready for you..." })
7176
7176
  ] }) });
@@ -7254,14 +7254,14 @@ var zA = {
7254
7254
  if (c.pathname !== zA.HOME && w)
7255
7255
  return /* @__PURE__ */ p(zl, { ...v, children: /* @__PURE__ */ p(ha, {}) });
7256
7256
  if (x)
7257
- return /* @__PURE__ */ p(zl, { ...v, children: /* @__PURE__ */ p("div", { className: "yst-flex yst-min-h-screen yst-items-center yst-justify-center", children: /* @__PURE__ */ k("div", { className: "yst-space-y-4 yst-text-center", children: [
7257
+ return /* @__PURE__ */ p(zl, { ...v, children: /* @__PURE__ */ p("div", { className: "yst-flex yst-min-h-screen yst-items-center yst-justify-center", children: /* @__PURE__ */ C("div", { className: "yst-space-y-4 yst-text-center", children: [
7258
7258
  /* @__PURE__ */ p("div", { className: "yst-mb-4 yst-text-6xl yst-text-red-600", children: "⚠️" }),
7259
7259
  /* @__PURE__ */ p("h2", { className: "yst-text-xl yst-font-semibold yst-text-slate-900", children: "Something went wrong" }),
7260
7260
  /* @__PURE__ */ p("p", { className: "yst-text-slate-600", children: "We couldn't load your Brand Analysis. Please try again shortly." }),
7261
7261
  /* @__PURE__ */ p(de, { variant: "primary", onClick: N, children: "Retry" })
7262
7262
  ] }) }) });
7263
7263
  var T = (L == null || (n = L.data) === null || n === void 0 ? void 0 : n.activeSubscriptions) === 0, B = (L == null || (r = L.data) === null || r === void 0 ? void 0 : r.brands) && (L == null || (i = L.data) === null || i === void 0 || (i = i.brands) === null || i === void 0 ? void 0 : i.length) > 0;
7264
- return /* @__PURE__ */ k(zl, { DebugInfo: u, ...v, children: [
7264
+ return /* @__PURE__ */ C(zl, { DebugInfo: u, ...v, children: [
7265
7265
  /* @__PURE__ */ p(ta, {}),
7266
7266
  /* @__PURE__ */ p(MA, {}),
7267
7267
  T && /* @__PURE__ */ p(O0, { isOpen: y, onClose: B ? function() {
@@ -7425,13 +7425,13 @@ var nd = jc(void 0), JA = function(e) {
7425
7425
  "yst-w-full yst-space-y-4"
7426
7426
  ), "aria-live": "polite", "aria-atomic": "true", children: n.map(function(a) {
7427
7427
  var s;
7428
- return /* @__PURE__ */ k(To, { className: ae("yst-w-full", a.className), id: a.id, variant: a.variant || "info", autoDismiss: a.dismissible ? 0 : (s = a.duration) !== null && s !== void 0 ? s : 1500, onDismiss: function() {
7428
+ return /* @__PURE__ */ C(To, { className: ae("yst-w-full", a.className), id: a.id, variant: a.variant || "info", autoDismiss: a.dismissible ? 0 : (s = a.duration) !== null && s !== void 0 ? s : 1500, onDismiss: function() {
7429
7429
  return r(a.id);
7430
7430
  }, isVisible: !0, setIsVisible: function() {
7431
7431
  }, children: [
7432
- /* @__PURE__ */ k("div", { className: "yst-flex yst-gap-3", children: [
7432
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-gap-3", children: [
7433
7433
  /* @__PURE__ */ p("div", { className: "yst-flex-shrink-0", children: /* @__PURE__ */ p(Lv, { className: "yst-h-5 yst-w-5", variant: a.variant }) }),
7434
- /* @__PURE__ */ k("div", { className: "yst-flex-1", children: [
7434
+ /* @__PURE__ */ C("div", { className: "yst-flex-1", children: [
7435
7435
  typeof a.title == "string" ? /* @__PURE__ */ p($e, { title: a.title }) : a.title,
7436
7436
  typeof a.message == "string" ? /* @__PURE__ */ p("p", { className: "yst-mb-0", children: a.message }) : a.message
7437
7437
  ] }),
@@ -7724,16 +7724,16 @@ var A3 = function() {
7724
7724
  var e = St();
7725
7725
  return /* @__PURE__ */ p("form", { onSubmit: function() {
7726
7726
  return e("/setup");
7727
- }, children: /* @__PURE__ */ k(_r, { className: "yst-mx-auto yst-flex yst-max-w-2xl", children: [
7728
- /* @__PURE__ */ p(_r.Header, { children: /* @__PURE__ */ k($e, { size: "1", children: [
7727
+ }, children: /* @__PURE__ */ C(_r, { className: "yst-mx-auto yst-flex yst-max-w-2xl", children: [
7728
+ /* @__PURE__ */ p(_r.Header, { children: /* @__PURE__ */ C($e, { size: "1", children: [
7729
7729
  "Welcome to ",
7730
7730
  /* @__PURE__ */ p(ss, { children: "Yoast AI Brand Insights" }),
7731
7731
  "!"
7732
7732
  ] }) }),
7733
- /* @__PURE__ */ k(_r.Content, { className: "yst-space-y-8", children: [
7734
- /* @__PURE__ */ k("div", { className: "yst-space-y-4 *:yst-text-tiny", children: [
7733
+ /* @__PURE__ */ C(_r.Content, { className: "yst-space-y-8", children: [
7734
+ /* @__PURE__ */ C("div", { className: "yst-space-y-4 *:yst-text-tiny", children: [
7735
7735
  /* @__PURE__ */ p("p", { children: "See how your brand is represented in AI answers." }),
7736
- /* @__PURE__ */ k("p", { children: [
7736
+ /* @__PURE__ */ C("p", { children: [
7737
7737
  /* @__PURE__ */ p("b", { className: "yst-font-medium yst-text-slate-800", children: "Yoast AI Brand Insights" }),
7738
7738
  " ",
7739
7739
  "shows how often your brand appears, how it's described, and how it compares to competitors in tools like ChatGPT and Perplexity."
@@ -7750,10 +7750,10 @@ var A3 = function() {
7750
7750
  title: "3. RUN ANALYSIS",
7751
7751
  description: "Run your queries through relevant AI platforms to see how your brand shows up."
7752
7752
  }].map(function(n, r, i) {
7753
- return /* @__PURE__ */ k("div", { className: "yst-relative yst-flex yst-flex-col yst-items-stretch", children: [
7754
- /* @__PURE__ */ k("div", { className: "yst-flex yst-flex-row yst-items-center yst-justify-stretch yst-gap-6", children: [
7753
+ return /* @__PURE__ */ C("div", { className: "yst-relative yst-flex yst-flex-col yst-items-stretch", children: [
7754
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-flex-row yst-items-center yst-justify-stretch yst-gap-6", children: [
7755
7755
  /* @__PURE__ */ p(Mv.Step, { isActive: !0, isComplete: !1, children: /* @__PURE__ */ p("span", { className: "yst-hidden", children: r + 1 }) }),
7756
- /* @__PURE__ */ k("div", { className: "yst-flex yst-flex-1 yst-flex-col yst-gap-2 yst-rounded yst-border yst-border-slate-200 yst-p-6", children: [
7756
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-flex-1 yst-flex-col yst-gap-2 yst-rounded yst-border yst-border-slate-200 yst-p-6", children: [
7757
7757
  /* @__PURE__ */ p($e, { size: "3", className: "yst-font-semibold yst-uppercase", children: n.title }),
7758
7758
  /* @__PURE__ */ p("p", { className: "yst-my-0 yst-py-0", children: n.description })
7759
7759
  ] })
@@ -7762,7 +7762,7 @@ var A3 = function() {
7762
7762
  ] }, n.title);
7763
7763
  }) })
7764
7764
  ] }),
7765
- /* @__PURE__ */ p(id, { className: "yst-justify-end", children: /* @__PURE__ */ k(de, { variant: "primary", onClick: function() {
7765
+ /* @__PURE__ */ p(id, { className: "yst-justify-end", children: /* @__PURE__ */ C(de, { variant: "primary", onClick: function() {
7766
7766
  return e("/setup");
7767
7767
  }, children: [
7768
7768
  "Start your first analysis ",
@@ -7779,20 +7779,20 @@ function os(t) {
7779
7779
  }
7780
7780
  function _s(t) {
7781
7781
  var e = t.score, n = t.total, r = t.suffix, i = t.isLoading, a = i === void 0 ? !1 : i, s = t.className, o = t.hideTotal, l = o === void 0 ? !1 : o, u = t.delta, c = t.deltaFormat, d = c === void 0 ? "absolute" : c, h = t.deltaSuffix, f = t.scoreFormat, y = f === void 0 ? "absolute" : f;
7782
- return /* @__PURE__ */ k("div", { className: ae(s, "yst-font-medium"), children: [
7783
- /* @__PURE__ */ k("span", { className: "yst-mr-1 yst-text-xl yst-font-bold yst-text-slate-900", children: [
7782
+ return /* @__PURE__ */ C("div", { className: ae(s, "yst-font-medium"), children: [
7783
+ /* @__PURE__ */ C("span", { className: "yst-mr-1 yst-text-xl yst-font-bold yst-text-slate-900", children: [
7784
7784
  a || e === void 0 || e === null ? "—" : e,
7785
7785
  !a && e !== void 0 && e !== null && y === "percentage" ? "%" : ""
7786
7786
  ] }),
7787
- !l && n && n !== 0 && n !== "0" && /* @__PURE__ */ k("span", { className: "yst-text-slate-500", children: [
7787
+ !l && n && n !== 0 && n !== "0" && /* @__PURE__ */ C("span", { className: "yst-text-slate-500", children: [
7788
7788
  "/ ",
7789
7789
  a ? "—" : n
7790
7790
  ] }),
7791
- r && /* @__PURE__ */ k("span", { className: "yst-text-slate-500", children: [
7791
+ r && /* @__PURE__ */ C("span", { className: "yst-text-slate-500", children: [
7792
7792
  " ",
7793
7793
  r
7794
7794
  ] }),
7795
- typeof u == "number" && !isNaN(u) && /* @__PURE__ */ k("span", { className: ae("yst-ml-2", os(u)), children: [
7795
+ typeof u == "number" && !isNaN(u) && /* @__PURE__ */ C("span", { className: ae("yst-ml-2", os(u)), children: [
7796
7796
  u > -1 && "+",
7797
7797
  u,
7798
7798
  d === "percentage" && "%",
@@ -7862,7 +7862,7 @@ function I3(t, e) {
7862
7862
  }
7863
7863
  function ad(t) {
7864
7864
  var e = t.Icon, n = e === void 0 ? eA : e, r = t.className, i = r === void 0 ? "" : r, a = t.children, s = t.position, o = s === void 0 ? "left" : s, l = t.id, u = l === void 0 ? "" : l, c = T3(t, S3), d = ne(!1), h = C3(d, 2), f = h[0], y = h[1];
7865
- return a ? /* @__PURE__ */ k("div", { className: i || "yst-relative", onMouseEnter: function() {
7865
+ return a ? /* @__PURE__ */ C("div", { className: i || "yst-relative", onMouseEnter: function() {
7866
7866
  return y(!0);
7867
7867
  }, onMouseLeave: function() {
7868
7868
  return y(!1);
@@ -7876,7 +7876,7 @@ var Ds = function(e) {
7876
7876
  var h = typeof d == "string" ? d : "tooltip";
7877
7877
  return "tooltip-".concat(h.toLowerCase().replace(/\s+/g, "-"));
7878
7878
  }, u = l(n);
7879
- return /* @__PURE__ */ k("div", { className: "yst-flex yst-items-center yst-justify-between ".concat(o), children: [
7879
+ return /* @__PURE__ */ C("div", { className: "yst-flex yst-items-center yst-justify-between ".concat(o), children: [
7880
7880
  /* @__PURE__ */ p($e, { size: a, children: n }),
7881
7881
  /* @__PURE__ */ p(ad, { id: u, children: r })
7882
7882
  ] });
@@ -7887,11 +7887,11 @@ var Ds = function(e) {
7887
7887
  }) });
7888
7888
  }, R0 = function(e) {
7889
7889
  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;
7890
- return /* @__PURE__ */ p(Ge, { className: "yst-overflow-visible", children: /* @__PURE__ */ k(Ge.Content, { className: "yst-space-y-8", children: [
7890
+ return /* @__PURE__ */ p(Ge, { className: "yst-overflow-visible", children: /* @__PURE__ */ C(Ge.Content, { className: "yst-space-y-8", children: [
7891
7891
  /* @__PURE__ */ p(Ds, { title: o, tooltip: u }),
7892
- /* @__PURE__ */ p("div", { className: "yst-space-y-3", children: !v && /* @__PURE__ */ k(Te, { children: [
7892
+ /* @__PURE__ */ p("div", { className: "yst-space-y-3", children: !v && /* @__PURE__ */ C(Te, { children: [
7893
7893
  /* @__PURE__ */ p("p", { children: d || /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-20" }) }),
7894
- /* @__PURE__ */ k("div", { children: [
7894
+ /* @__PURE__ */ C("div", { children: [
7895
7895
  /* @__PURE__ */ p("div", { className: "yst-inline-flex", children: /* @__PURE__ */ p(_s, { className: "yst-mb-1.5", score: h, scoreFormat: "percentage", suffix: "positive", delta: f }) }),
7896
7896
  /* @__PURE__ */ p(Rv, { max: 100, min: 0, progress: h || 0, className: ae(
7897
7897
  {
@@ -7904,11 +7904,11 @@ var Ds = function(e) {
7904
7904
  ] })
7905
7905
  ] }) }),
7906
7906
  v && /* @__PURE__ */ p(an, { variant: "info", children: "The selected AI platform returned no brand sentiment data for your queries. This can happen with some queries or platforms." }),
7907
- !!y && /* @__PURE__ */ k("div", { className: "yst-space-y-2", children: [
7907
+ !!y && /* @__PURE__ */ C("div", { className: "yst-space-y-2", children: [
7908
7908
  /* @__PURE__ */ p($e, { as: "h5", size: "5", children: "Positive keywords" }),
7909
7909
  /* @__PURE__ */ p(jf, { keywords: y, badgeClassName: "yst-bg-green-100 yst-text-green-800" })
7910
7910
  ] }),
7911
- !!m && /* @__PURE__ */ k("div", { className: "yst-space-y-2", children: [
7911
+ !!m && /* @__PURE__ */ C("div", { className: "yst-space-y-2", children: [
7912
7912
  /* @__PURE__ */ p($e, { as: "h5", size: "5", children: "Negative keywords" }),
7913
7913
  /* @__PURE__ */ p(jf, { keywords: m, badgeClassName: "yst-bg-red-100 yst-text-red-800" })
7914
7914
  ] })
@@ -8209,8 +8209,8 @@ function Z3(t, e) {
8209
8209
  }
8210
8210
  var Ca = Bs(Uf || (Uf = Z3(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-slate-400 yst-inline-flex yst-w-20"]))), Qf = function(e) {
8211
8211
  var n = e.data, r = e.totalQueries, i = e.isLoading, a = i === void 0 ? !1 : i, s = e.isFirstScan, o = s === void 0 ? !1 : s, l = e.enableCategories, u = l === void 0 ? !1 : l, c = a || !n, d = n || {}, h = d.rank, f = d.url, y = d.rootDomain, m = d.category, v = d.impact, g = d.numberOfMentions, A = g == null ? void 0 : g.value, O = g == null ? void 0 : g.previous, E = typeof (O == null ? void 0 : O.difference) == "number" ? O.difference : A;
8212
- return /* @__PURE__ */ k("tr", { className: "yst-flex yst-flex-col yst-py-4 md:yst-table-row md:yst-py-0", children: [
8213
- /* @__PURE__ */ k(
8212
+ return /* @__PURE__ */ C("tr", { className: "yst-flex yst-flex-col yst-py-4 md:yst-table-row md:yst-py-0", children: [
8213
+ /* @__PURE__ */ C(
8214
8214
  le.Cell,
8215
8215
  {
8216
8216
  className: "yst-p-0 yst-py-1 md:yst-ml-0 md:yst-p-2",
@@ -8224,13 +8224,13 @@ var Ca = Bs(Uf || (Uf = Z3(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-sla
8224
8224
  le.Cell,
8225
8225
  {
8226
8226
  className: "yst-break-all yst-p-0 yst-py-1 md:yst-ml-0 md:yst-w-1/2 md:yst-p-2",
8227
- children: c ? /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-full" }) : /* @__PURE__ */ k(qn, { className: "yst-font-medium", href: f || "#", rel: "nofollow noreferrer", target: "_blank", children: [
8227
+ children: c ? /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-full" }) : /* @__PURE__ */ C(qn, { className: "yst-font-medium", href: f || "#", rel: "nofollow noreferrer", target: "_blank", children: [
8228
8228
  /* @__PURE__ */ p("span", { className: "yst-inline yst-break-all", children: f != null ? f : "—" }),
8229
8229
  /* @__PURE__ */ p(M0, { className: "yst-ml-1 yst-inline-block yst-h-4 yst-w-4 yst-align-text-bottom" })
8230
8230
  ] })
8231
8231
  }
8232
8232
  ),
8233
- /* @__PURE__ */ k(
8233
+ /* @__PURE__ */ C(
8234
8234
  le.Cell,
8235
8235
  {
8236
8236
  className: "yst-p-0 yst-py-1 yst-font-medium md:yst-ml-0 md:yst-p-2",
@@ -8240,7 +8240,7 @@ var Ca = Bs(Uf || (Uf = Z3(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-sla
8240
8240
  ]
8241
8241
  }
8242
8242
  ),
8243
- u && /* @__PURE__ */ k(
8243
+ u && /* @__PURE__ */ C(
8244
8244
  le.Cell,
8245
8245
  {
8246
8246
  className: "yst-p-0 yst-py-1 md:yst-ml-0 md:yst-p-2",
@@ -8250,7 +8250,7 @@ var Ca = Bs(Uf || (Uf = Z3(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-sla
8250
8250
  ]
8251
8251
  }
8252
8252
  ),
8253
- /* @__PURE__ */ k(le.Cell, { className: ae(
8253
+ /* @__PURE__ */ C(le.Cell, { className: ae(
8254
8254
  //mobile
8255
8255
  "yst-p-0 yst-py-0 md:yst-ml-0 md:yst-p-2",
8256
8256
  // etc
@@ -8264,21 +8264,21 @@ var Ca = Bs(Uf || (Uf = Z3(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-sla
8264
8264
  /* @__PURE__ */ p(Ca, { as: "span", children: "Impact:" }),
8265
8265
  c ? /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-12" }) : v != null ? v : "—"
8266
8266
  ] }),
8267
- /* @__PURE__ */ k(
8267
+ /* @__PURE__ */ C(
8268
8268
  le.Cell,
8269
8269
  {
8270
8270
  className: "yst-flex yst-p-0 yst-pt-1 md:yst-ml-0 md:yst-p-2 md:yst-text-right",
8271
8271
  children: [
8272
8272
  /* @__PURE__ */ p(Ca, { as: "span", children: "Mentions:" }),
8273
- c ? /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-8" }) : A ? /* @__PURE__ */ k("span", { className: "yst-inline-flex yst-justify-start yst-gap-4 md:yst-justify-end", children: [
8274
- /* @__PURE__ */ k("span", { className: "yst-flex yst-flex-nowrap yst-gap-1 yst-font-medium", children: [
8273
+ c ? /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-8" }) : A ? /* @__PURE__ */ C("span", { className: "yst-inline-flex yst-justify-start yst-gap-4 md:yst-justify-end", children: [
8274
+ /* @__PURE__ */ C("span", { className: "yst-flex yst-flex-nowrap yst-gap-1 yst-font-medium", children: [
8275
8275
  /* @__PURE__ */ p("span", { className: "yst-whitespace-nowrap yst-text-slate-500", children: A }),
8276
- /* @__PURE__ */ k("span", { className: "yst-whitespace-nowrap yst-text-slate-900", children: [
8276
+ /* @__PURE__ */ C("span", { className: "yst-whitespace-nowrap yst-text-slate-900", children: [
8277
8277
  "/ ",
8278
8278
  r
8279
8279
  ] })
8280
8280
  ] }),
8281
- !o && /* @__PURE__ */ k("span", { className: ae(os(E)), children: [
8281
+ !o && /* @__PURE__ */ C("span", { className: ae(os(E)), children: [
8282
8282
  E > -1 && "+",
8283
8283
  E
8284
8284
  ] })
@@ -8293,14 +8293,14 @@ var Ca = Bs(Uf || (Uf = Z3(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-sla
8293
8293
  }), R = 10, D = (x == null ? void 0 : x.length) || 0, L = Math.ceil(D / R), I = (m - 1) * R, F = I + R, N = x == null ? void 0 : x.slice(I, F);
8294
8294
  return Ce(function() {
8295
8295
  m > L && L > 0 && v(1);
8296
- }, [L, m, v, d]), /* @__PURE__ */ p(Ge, { className: "yst-overflow-visible md:yst-col-span-2", children: /* @__PURE__ */ k(Ge.Content, { className: "yst-flex yst-flex-col yst-gap-6", children: [
8297
- /* @__PURE__ */ k("div", { className: "yst-space-y-4", children: [
8296
+ }, [L, m, v, d]), /* @__PURE__ */ p(Ge, { className: "yst-overflow-visible md:yst-col-span-2", children: /* @__PURE__ */ C(Ge.Content, { className: "yst-flex yst-flex-col yst-gap-6", children: [
8297
+ /* @__PURE__ */ C("div", { className: "yst-space-y-4", children: [
8298
8298
  /* @__PURE__ */ p(Ds, { title: "Citations", tooltip: "Sources the AI used to support brand mentions in the results." }),
8299
8299
  /* @__PURE__ */ p("p", { children: "This table highlights the most important sources where your brand was cited." }),
8300
8300
  /* @__PURE__ */ p(_s, { score: S == null || (i = S.total) === null || i === void 0 ? void 0 : i.value, suffix: "citations", delta: S == null || (a = S.total) === null || a === void 0 || (a = a.previous) === null || a === void 0 ? void 0 : a.difference, deltaSuffix: "since last analysis", isLoading: O, hideTotal: !0 })
8301
8301
  ] }),
8302
- (S == null || (s = S.list) === null || s === void 0 ? void 0 : s.length) === 0 && !O && !E ? /* @__PURE__ */ p(an, { children: "The selected AI platform returned no citations for your queries. This can happen with some queries or platforms." }) : /* @__PURE__ */ k(Te, { children: [
8303
- /* @__PURE__ */ k("div", { children: [
8302
+ (S == null || (s = S.list) === null || s === void 0 ? void 0 : s.length) === 0 && !O && !E ? /* @__PURE__ */ p(an, { children: "The selected AI platform returned no citations for your queries. This can happen with some queries or platforms." }) : /* @__PURE__ */ C(Te, { children: [
8303
+ /* @__PURE__ */ C("div", { children: [
8304
8304
  l && /* @__PURE__ */ p(
8305
8305
  Io,
8306
8306
  {
@@ -8322,8 +8322,8 @@ var Ca = Bs(Uf || (Uf = Z3(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-sla
8322
8322
  }) : []))
8323
8323
  }
8324
8324
  ),
8325
- /* @__PURE__ */ k(le, { variant: "minimal", children: [
8326
- /* @__PURE__ */ p(le.Head, { className: "yst-font-semibold", children: /* @__PURE__ */ k(le.Row, { children: [
8325
+ /* @__PURE__ */ C(le, { variant: "minimal", children: [
8326
+ /* @__PURE__ */ p(le.Head, { className: "yst-font-semibold", children: /* @__PURE__ */ C(le.Row, { children: [
8327
8327
  /* @__PURE__ */ p(le.Cell, { className: "yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-pl-2", children: "#" }),
8328
8328
  /* @__PURE__ */ p(le.Cell, { className: "yst yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-px-2", children: "URL" }),
8329
8329
  /* @__PURE__ */ p(le.Cell, { className: "yst-hidden yst-text-slate-900 md:yst-table-cell md:yst-px-2", children: "Root domain" }),
@@ -8347,7 +8347,7 @@ var Ca = Bs(Uf || (Uf = Z3(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-sla
8347
8347
  })
8348
8348
  ) : (
8349
8349
  // Show "No results" message when filter returns empty
8350
- /* @__PURE__ */ p(le.Row, { children: /* @__PURE__ */ k(le.Cell, { colSpan: l ? 6 : 5, className: "yst-py-8 yst-text-center yst-text-slate-500", children: [
8350
+ /* @__PURE__ */ p(le.Row, { children: /* @__PURE__ */ C(le.Cell, { colSpan: l ? 6 : 5, className: "yst-py-8 yst-text-center yst-text-slate-500", children: [
8351
8351
  d === "all" ? "No citations found." : 'No citations found for the "'.concat(d, '" category.'),
8352
8352
  " ",
8353
8353
  /* @__PURE__ */ p(qn, { onClick: function() {
@@ -8357,8 +8357,8 @@ var Ca = Bs(Uf || (Uf = Z3(["md:yst-hidden yst-mr-2 yst-font-medium yst-text-sla
8357
8357
  ) })
8358
8358
  ] })
8359
8359
  ] }),
8360
- x && x.length > R && /* @__PURE__ */ k("div", { className: "yst-flex yst-items-center yst-justify-end yst-gap-4", children: [
8361
- /* @__PURE__ */ k("p", { className: "yst-mb-0", children: [
8360
+ x && x.length > R && /* @__PURE__ */ C("div", { className: "yst-flex yst-items-center yst-justify-end yst-gap-4", children: [
8361
+ /* @__PURE__ */ C("p", { className: "yst-mb-0", children: [
8362
8362
  "Showing ",
8363
8363
  I + 1,
8364
8364
  " to",
@@ -8416,27 +8416,27 @@ function iS(t) {
8416
8416
  }
8417
8417
  var Yf = function(e) {
8418
8418
  var n, r = e.data, i = e.totalQueries, a = e.isFirstScan, s = a === void 0 ? !0 : a, o = e.isLoading, l = o === void 0 ? !1 : o, u = l || !r, c = r || {}, d = c.rank, h = c.brand, f = d == null ? void 0 : d.previous, y = typeof (f == null ? void 0 : f.difference) == "number" ? f.difference * -1 : void 0, m = h == null ? void 0 : h.numberOfMentions, v = m == null ? void 0 : m.previous, g = typeof (v == null ? void 0 : v.difference) == "number" ? v.difference : void 0;
8419
- return /* @__PURE__ */ k(le.Row, { children: [
8420
- /* @__PURE__ */ p(le.Cell, { children: u ? /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-8" }) : /* @__PURE__ */ k("span", { className: "yst-flex yst-justify-between yst-gap-4", children: [
8421
- /* @__PURE__ */ k("span", { className: "yst-flex yst-flex-nowrap yst-gap-2 yst-font-medium", children: [
8419
+ return /* @__PURE__ */ C(le.Row, { children: [
8420
+ /* @__PURE__ */ p(le.Cell, { children: u ? /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-8" }) : /* @__PURE__ */ C("span", { className: "yst-flex yst-justify-between yst-gap-4", children: [
8421
+ /* @__PURE__ */ C("span", { className: "yst-flex yst-flex-nowrap yst-gap-2 yst-font-medium", children: [
8422
8422
  /* @__PURE__ */ p("span", { className: "yst-text-slate-500", children: "#" }),
8423
8423
  /* @__PURE__ */ p("span", { className: "yst-text-slate-900", children: (d == null ? void 0 : d.value) || "—" })
8424
8424
  ] }),
8425
- !s && /* @__PURE__ */ p("span", { className: ae("yst-inline-flex yst-items-center yst-justify-end", os(f && typeof y == "number" ? y : 0)), children: f && typeof y == "number" && y !== 0 ? /* @__PURE__ */ k(Te, { children: [
8425
+ !s && /* @__PURE__ */ p("span", { className: ae("yst-inline-flex yst-items-center yst-justify-end", os(f && typeof y == "number" ? y : 0)), children: f && typeof y == "number" && y !== 0 ? /* @__PURE__ */ C(Te, { children: [
8426
8426
  Math.abs(y),
8427
8427
  y > 0 ? /* @__PURE__ */ p(o3, { className: "yst-h-4 yst-w-4" }) : /* @__PURE__ */ p(a3, { className: "yst-h-4 yst-w-4" })
8428
8428
  ] }) : null })
8429
8429
  ] }) }),
8430
8430
  /* @__PURE__ */ p(le.Cell, { children: u ? /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-24" }) : /* @__PURE__ */ p("span", { className: "yst-font-medium", children: h != null && h.isSelf ? /* @__PURE__ */ p(ss, { children: h == null ? void 0 : h.name }) : (n = h == null ? void 0 : h.name) !== null && n !== void 0 ? n : "—" }) }),
8431
- /* @__PURE__ */ p(le.Cell, { children: u ? /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-8" }) : /* @__PURE__ */ k("span", { className: "yst-flex yst-justify-end yst-gap-4", children: [
8432
- /* @__PURE__ */ k("span", { className: "yst-flex yst-flex-nowrap yst-gap-1 yst-font-medium", children: [
8431
+ /* @__PURE__ */ p(le.Cell, { children: u ? /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-8" }) : /* @__PURE__ */ C("span", { className: "yst-flex yst-justify-end yst-gap-4", children: [
8432
+ /* @__PURE__ */ C("span", { className: "yst-flex yst-flex-nowrap yst-gap-1 yst-font-medium", children: [
8433
8433
  /* @__PURE__ */ p("span", { className: "yst-text-slate-500", children: m == null ? void 0 : m.value }),
8434
- /* @__PURE__ */ k("span", { className: "yst-text-slate-900", children: [
8434
+ /* @__PURE__ */ C("span", { className: "yst-text-slate-900", children: [
8435
8435
  "/ ",
8436
8436
  i
8437
8437
  ] })
8438
8438
  ] }),
8439
- !s && /* @__PURE__ */ p("span", { className: ae("yst-ml-auto", os(v && typeof g == "number" ? g : 0)), children: v && typeof g == "number" ? /* @__PURE__ */ k(Te, { children: [
8439
+ !s && /* @__PURE__ */ p("span", { className: ae("yst-ml-auto", os(v && typeof g == "number" ? g : 0)), children: v && typeof g == "number" ? /* @__PURE__ */ C(Te, { children: [
8440
8440
  g > -1 && "+",
8441
8441
  g
8442
8442
  ] }) : null })
@@ -8446,8 +8446,8 @@ var Yf = function(e) {
8446
8446
  var n, r, i = e.className, a = ln(null), s = ne(1), o = eS(s, 2), l = o[0], u = o[1], c = yr(), d = c.data, h = c.isLoading, f = c.isRefetching, y = d == null || (n = d.rankings) === null || n === void 0 ? void 0 : n.list, m = (d == null || (r = d.scores) === null || r === void 0 || (r = r.standardized) === null || r === void 0 ? void 0 : r.ranking) || {}, v = Object.hasOwn(m, "previous"), g = 5, A = (y == null ? void 0 : y.length) || 0, O = Math.ceil(A / g), E = (l - 1) * g, S = E + g, b = y == null ? void 0 : y.slice(E, S);
8447
8447
  return Ce(function() {
8448
8448
  l > O && O > 0 && u(1);
8449
- }, [O, l, u]), /* @__PURE__ */ p(Ge, { ref: a, className: ae("yst-overflow-visible", i), children: /* @__PURE__ */ k(Ge.Content, { className: "yst-mt-0 yst-space-y-6", children: [
8450
- /* @__PURE__ */ k("div", { className: "yst-space-y-2", children: [
8449
+ }, [O, l, u]), /* @__PURE__ */ p(Ge, { ref: a, className: ae("yst-overflow-visible", i), children: /* @__PURE__ */ C(Ge.Content, { className: "yst-mt-0 yst-space-y-6", children: [
8450
+ /* @__PURE__ */ C("div", { className: "yst-space-y-2", children: [
8451
8451
  /* @__PURE__ */ p(
8452
8452
  Ds,
8453
8453
  {
@@ -8457,8 +8457,8 @@ var Yf = function(e) {
8457
8457
  ),
8458
8458
  /* @__PURE__ */ p("p", { children: "Brands with the most mentions for your prompts." })
8459
8459
  ] }),
8460
- !h && !f && (!y || y.length === 0) ? /* @__PURE__ */ p(an, { variant: "info", children: "The selected AI platform returned no brands for your queries. This can happen with some queries or platforms." }) : /* @__PURE__ */ k(le, { variant: "minimal", children: [
8461
- /* @__PURE__ */ p(le.Head, { children: /* @__PURE__ */ k(le.Row, { children: [
8460
+ !h && !f && (!y || y.length === 0) ? /* @__PURE__ */ p(an, { variant: "info", children: "The selected AI platform returned no brands for your queries. This can happen with some queries or platforms." }) : /* @__PURE__ */ C(le, { variant: "minimal", children: [
8461
+ /* @__PURE__ */ p(le.Head, { children: /* @__PURE__ */ C(le.Row, { children: [
8462
8462
  /* @__PURE__ */ p(le.Cell, { className: "yst-w-20 yst-font-semibold", children: "Rank" }),
8463
8463
  /* @__PURE__ */ p(le.Cell, { className: "yst-font-semibold", children: "Brand" }),
8464
8464
  /* @__PURE__ */ p(le.Cell, { className: "yst-w-20 yst-text-right yst-font-semibold", children: "Mentions" })
@@ -9825,9 +9825,9 @@ function bC(t, e, n) {
9825
9825
  }
9826
9826
  var xC = function(e) {
9827
9827
  var n = e.brand, r = St(), i = Rs(), a = i.setBrandId;
9828
- return (n == null ? void 0 : n.setupStatus) === "pendingQuerySelection" ? /* @__PURE__ */ p(an, { className: "yst-mt-0", children: /* @__PURE__ */ k("div", { className: "yst-max-w-xl yst-space-y-4", children: [
9829
- /* @__PURE__ */ k("div", { className: "yst-space-y-2", children: [
9830
- /* @__PURE__ */ k("h3", { className: "yst-font-medium", children: [
9828
+ return (n == null ? void 0 : n.setupStatus) === "pendingQuerySelection" ? /* @__PURE__ */ p(an, { className: "yst-mt-0", children: /* @__PURE__ */ C("div", { className: "yst-max-w-xl yst-space-y-4", children: [
9829
+ /* @__PURE__ */ C("div", { className: "yst-space-y-2", children: [
9830
+ /* @__PURE__ */ C("h3", { className: "yst-font-medium", children: [
9831
9831
  "Finish your analysis for ",
9832
9832
  (n == null ? void 0 : n.name) || "Brand ".concat(n == null ? void 0 : n.id)
9833
9833
  ] }),
@@ -9839,15 +9839,15 @@ var xC = function(e) {
9839
9839
  ] }) }) : null;
9840
9840
  }, ml = function(e) {
9841
9841
  var n = e.isOpen, r = e.onClose, i = e.onConfirm, a = e.isLoading, s = a === void 0 ? !1 : a, o = e.title, l = e.description, u = e.disabled, c = u === void 0 ? !1 : u, d = e.confirmText, h = d === void 0 ? "Yes, delete" : d, f = e.cancelText, y = f === void 0 ? "No, go back" : f, m = e.className;
9842
- return /* @__PURE__ */ p(ee, { isOpen: n, onClose: r, position: "center", as: "div", className: m, children: /* @__PURE__ */ k(ee.Panel, { children: [
9843
- /* @__PURE__ */ k("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: [
9842
+ return /* @__PURE__ */ p(ee, { isOpen: n, onClose: r, position: "center", as: "div", className: m, children: /* @__PURE__ */ C(ee.Panel, { children: [
9843
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: [
9844
9844
  /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p("span", { className: "yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-red-100", children: /* @__PURE__ */ p(Ao, { className: "yst-h-6 yst-w-6 yst-text-red-600" }) }) }),
9845
- /* @__PURE__ */ k("div", { className: "yst-flex-1", children: [
9845
+ /* @__PURE__ */ C("div", { className: "yst-flex-1", children: [
9846
9846
  /* @__PURE__ */ p(ee.Container.Header, { className: "yst-mb-3 yst-w-full", children: /* @__PURE__ */ p(ee.Title, { as: "h3", className: "yst-text-lg yst-font-medium", children: o }) }),
9847
9847
  /* @__PURE__ */ p(ee.Container.Content, { className: "yst-mb-4 yst-space-y-3", children: typeof l == "string" ? /* @__PURE__ */ p("p", { children: l }) : l })
9848
9848
  ] })
9849
9849
  ] }),
9850
- /* @__PURE__ */ k(ee.Container.Footer, { className: "yst-mt-3 yst-flex yst-justify-end yst-gap-2", children: [
9850
+ /* @__PURE__ */ C(ee.Container.Footer, { className: "yst-mt-3 yst-flex yst-justify-end yst-gap-2", children: [
9851
9851
  /* @__PURE__ */ p(de, { variant: "secondary", onClick: r, children: y }),
9852
9852
  /* @__PURE__ */ p(de, { variant: "error", onClick: i, isLoading: s, disabled: c, children: h })
9853
9853
  ] })
@@ -10066,17 +10066,17 @@ var In = {
10066
10066
  u == null || u();
10067
10067
  }
10068
10068
  };
10069
- return l ? s ? /* @__PURE__ */ p("div", { className: "yst-absolute yst-left-0 yst-right-0 yst-top-full yst-z-50 yst-mt-1 yst-rounded-md yst-border yst-border-slate-200 yst-bg-white yst-p-4 yst-shadow-lg", children: /* @__PURE__ */ k("div", { className: "yst-animate-pulse yst-space-y-4", children: [
10069
+ return l ? s ? /* @__PURE__ */ p("div", { className: "yst-absolute yst-left-0 yst-right-0 yst-top-full yst-z-50 yst-mt-1 yst-rounded-md yst-border yst-border-slate-200 yst-bg-white yst-p-4 yst-shadow-lg", children: /* @__PURE__ */ C("div", { className: "yst-animate-pulse yst-space-y-4", children: [
10070
10070
  /* @__PURE__ */ p("div", { className: "yst-h-6 yst-rounded yst-bg-slate-200" }),
10071
10071
  /* @__PURE__ */ p("div", { className: "yst-h-48 yst-rounded yst-bg-slate-200" })
10072
- ] }) }) : /* @__PURE__ */ k("div", { className: "yst-absolute yst-left-0 yst-right-0 yst-top-full yst-z-50 yst-mt-1 yst-min-w-80 yst-max-w-sm yst-rounded-md yst-border yst-border-slate-200 yst-bg-white yst-p-4 yst-shadow-lg", children: [
10073
- /* @__PURE__ */ k("div", { className: "yst-mb-6 yst-flex yst-items-center yst-justify-between", children: [
10074
- /* @__PURE__ */ k("button", { type: "button", onClick: O, className: "yst-rounded-md yst-p-1.5 yst-text-slate-400 hover:yst-bg-slate-100 hover:yst-text-slate-500", children: [
10072
+ ] }) }) : /* @__PURE__ */ C("div", { className: "yst-absolute yst-left-0 yst-right-0 yst-top-full yst-z-50 yst-mt-1 yst-min-w-80 yst-max-w-sm yst-rounded-md yst-border yst-border-slate-200 yst-bg-white yst-p-4 yst-shadow-lg", children: [
10073
+ /* @__PURE__ */ C("div", { className: "yst-mb-6 yst-flex yst-items-center yst-justify-between", children: [
10074
+ /* @__PURE__ */ C("button", { type: "button", onClick: O, className: "yst-rounded-md yst-p-1.5 yst-text-slate-400 hover:yst-bg-slate-100 hover:yst-text-slate-500", children: [
10075
10075
  /* @__PURE__ */ p("span", { className: "yst-sr-only", children: "Previous month" }),
10076
10076
  /* @__PURE__ */ p(Hw, { className: "yst-h-5 yst-w-5" })
10077
10077
  ] }),
10078
10078
  /* @__PURE__ */ p("h2", { className: "yst-text-sm yst-font-semibold yst-text-slate-900", children: ni(h, "MMMM yyyy") }),
10079
- /* @__PURE__ */ k("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: [
10079
+ /* @__PURE__ */ C("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: [
10080
10080
  /* @__PURE__ */ p("span", { className: "yst-sr-only", children: "Next month" }),
10081
10081
  /* @__PURE__ */ p(Ww, { className: "yst-h-5 yst-w-5" })
10082
10082
  ] })
@@ -10085,7 +10085,7 @@ var In = {
10085
10085
  return /* @__PURE__ */ p("div", { className: "yst-py-2 yst-text-center yst-text-xs yst-font-medium yst-text-slate-500", children: b }, "".concat(b, "-").concat(w));
10086
10086
  }) }),
10087
10087
  /* @__PURE__ */ p("div", { className: "yst-grid yst-grid-cols-7 yst-gap-x-1", children: A.map(function(b) {
10088
- return /* @__PURE__ */ p("div", { className: "yst-flex yst-items-center yst-justify-center yst-py-1", children: /* @__PURE__ */ k("button", { type: "button", onClick: function() {
10088
+ return /* @__PURE__ */ p("div", { className: "yst-flex yst-items-center yst-justify-center yst-py-1", children: /* @__PURE__ */ C("button", { type: "button", onClick: function() {
10089
10089
  return S(b);
10090
10090
  }, disabled: !b.hasAnalyses, className: ae(
10091
10091
  "yst-relative yst-rounded-full yst-text-sm yst-transition-colors",
@@ -10117,16 +10117,16 @@ var In = {
10117
10117
  b.hasAnalyses && b.analyses.length > 1 && !b.isSelected && /* @__PURE__ */ p("span", { className: ae("yst-absolute yst-right-1 yst-top-1 yst-h-2 yst-w-2 yst-rounded-full", In.indicator.default) })
10118
10118
  ] }) }, b.date);
10119
10119
  }) }),
10120
- /* @__PURE__ */ k("div", { className: "yst-mt-4 yst-flex yst-items-center yst-gap-4 yst-text-xs yst-text-slate-600", children: [
10121
- /* @__PURE__ */ k("div", { className: "yst-flex yst-items-center yst-gap-1", children: [
10120
+ /* @__PURE__ */ C("div", { className: "yst-mt-4 yst-flex yst-items-center yst-gap-4 yst-text-xs yst-text-slate-600", children: [
10121
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-items-center yst-gap-1", children: [
10122
10122
  /* @__PURE__ */ p("div", { className: "yst-h-3 yst-w-3 yst-rounded-full ".concat(In.hasAnalysis.border) }),
10123
10123
  /* @__PURE__ */ p("span", { children: "Has analysis" })
10124
10124
  ] }),
10125
- /* @__PURE__ */ k("div", { className: "yst-flex yst-items-center yst-gap-1", children: [
10125
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-items-center yst-gap-1", children: [
10126
10126
  /* @__PURE__ */ p("div", { className: "yst-h-3 yst-w-3 yst-rounded-full ".concat(In.selected.background) }),
10127
10127
  /* @__PURE__ */ p("span", { children: "Selected" })
10128
10128
  ] }),
10129
- /* @__PURE__ */ k("div", { className: "yst-flex yst-items-center yst-gap-1", children: [
10129
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-items-center yst-gap-1", children: [
10130
10130
  /* @__PURE__ */ p("div", { className: "yst-h-0.5 yst-w-4 yst-bg-slate-400" }),
10131
10131
  /* @__PURE__ */ p("span", { children: "Today" })
10132
10132
  ] })
@@ -10233,8 +10233,8 @@ var _C = function(e) {
10233
10233
  }, I = function(N) {
10234
10234
  N.key === "Enter" || N.key === " " ? (N.preventDefault(), R()) : N.key === "Escape" && y(!1);
10235
10235
  };
10236
- return /* @__PURE__ */ k("div", { ref: O, className: "yst-relative", children: [
10237
- /* @__PURE__ */ k("div", { className: "yst-relative", children: [
10236
+ return /* @__PURE__ */ C("div", { ref: O, className: "yst-relative", children: [
10237
+ /* @__PURE__ */ C("div", { className: "yst-relative", children: [
10238
10238
  /* @__PURE__ */ p(
10239
10239
  Zo,
10240
10240
  {
@@ -10334,7 +10334,7 @@ var sh = function(e) {
10334
10334
  document.removeEventListener("mousedown", x);
10335
10335
  };
10336
10336
  }
10337
- }, [r, i, h]), r ? /* @__PURE__ */ k("div", { id: n, className: "yst-absolute yst-w-80", ref: m, children: [
10337
+ }, [r, i, h]), r ? /* @__PURE__ */ C("div", { id: n, className: "yst-absolute yst-w-80", ref: m, children: [
10338
10338
  A && c && /* @__PURE__ */ p("div", { className: ae("yst-absolute yst-left-1/2 yst-top-full yst-z-[60] yst-mt-[7px] yst-h-3 yst-w-3 yst--translate-x-1/2 yst--translate-y-1/2 yst-rotate-45 yst-transform yst-border-l yst-border-t yst-border-gray-100 yst-bg-white", {
10339
10339
  "yst-opacity-0": y > 0 && !b,
10340
10340
  "yst-animate-in yst-fade-in yst-slide-in-from-top-1 yst-duration-300": y > 0 && b
@@ -10559,7 +10559,7 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10559
10559
  return Re == null ? void 0 : Re.brands;
10560
10560
  }
10561
10561
  }
10562
- }), q = Y.data, C = Y.isLoading, W = ed(d, {
10562
+ }), q = Y.data, k = Y.isLoading, W = ed(d, {
10563
10563
  query: {
10564
10564
  enabled: !!d,
10565
10565
  select: function(ke) {
@@ -10713,9 +10713,9 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10713
10713
  var Yn = fh(Qt, d, vt, f);
10714
10714
  window.localStorage.setItem(Yn, "true"), ga(!1);
10715
10715
  }
10716
- }, va = /* @__PURE__ */ k("div", { className: "yst-max-w-xl yst-space-y-2", children: [
10716
+ }, va = /* @__PURE__ */ C("div", { className: "yst-max-w-xl yst-space-y-2", children: [
10717
10717
  /* @__PURE__ */ p("p", { className: "yst-font-medium", children: "Your analysis is scheduled" }),
10718
- /* @__PURE__ */ k("p", { children: [
10718
+ /* @__PURE__ */ C("p", { children: [
10719
10719
  "You've completed the setup for",
10720
10720
  " ",
10721
10721
  /* @__PURE__ */ p("b", { className: "yst-font-medium", children: kt }),
@@ -10733,7 +10733,7 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10733
10733
  alertContent: va,
10734
10734
  alertVariant: "info"
10735
10735
  }), tr.processing, {
10736
- alertContent: /* @__PURE__ */ k(Te, { children: [
10736
+ alertContent: /* @__PURE__ */ C(Te, { children: [
10737
10737
  "You've completed the setup for ",
10738
10738
  kt,
10739
10739
  ". The analysis is now processing. You'll see the results here once it's ready. We'll also notify you by email."
@@ -10772,7 +10772,7 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10772
10772
  var ke = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
10773
10773
  D(!0), ke && localStorage.setItem(dh, "true");
10774
10774
  };
10775
- return /* @__PURE__ */ k(Te, { children: [
10775
+ return /* @__PURE__ */ C(Te, { children: [
10776
10776
  /* @__PURE__ */ p(O0, { isOpen: ve, onClose: function() {
10777
10777
  return Ee(!1);
10778
10778
  } }),
@@ -10782,8 +10782,8 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10782
10782
  analysisId: h,
10783
10783
  scanId: I.id
10784
10784
  });
10785
- }, isLoading: mr, title: "Delete ".concat(X(f), " analysis?"), description: /* @__PURE__ */ k(Te, { children: [
10786
- /* @__PURE__ */ k("p", { children: [
10785
+ }, isLoading: mr, title: "Delete ".concat(X(f), " analysis?"), description: /* @__PURE__ */ C(Te, { children: [
10786
+ /* @__PURE__ */ C("p", { children: [
10787
10787
  "This will permanently delete the",
10788
10788
  " ",
10789
10789
  /* @__PURE__ */ p("b", { children: X(f) }),
@@ -10794,11 +10794,11 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10794
10794
  ] }),
10795
10795
  /* @__PURE__ */ p("p", { children: "This action cannot be undone." })
10796
10796
  ] }), confirmText: "Yes, delete analysis", cancelText: "No, go back" }),
10797
- /* @__PURE__ */ p(Ge, { className: ae("yst-relative yst-overflow-visible", u), children: /* @__PURE__ */ k(Ge.Content, { className: "yst-mt-0", children: [
10798
- /* @__PURE__ */ k("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: [
10799
- /* @__PURE__ */ p("div", { className: "xl:yst-max-w-1/4", children: /* @__PURE__ */ k("div", { className: "yst-flex yst-flex-col yst-gap-2 lg:yst-gap-2 xl:yst-flex-row xl:yst-items-baseline", children: [
10800
- /* @__PURE__ */ p($e, { children: /* @__PURE__ */ k(Te, { children: [
10801
- T ? /* @__PURE__ */ p(Je, { className: "yst-inline-block yst-h-8 yst-w-64" }) : /* @__PURE__ */ k(Te, { children: [
10797
+ /* @__PURE__ */ p(Ge, { className: ae("yst-relative yst-overflow-visible", u), children: /* @__PURE__ */ C(Ge.Content, { className: "yst-mt-0", children: [
10798
+ /* @__PURE__ */ C("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: [
10799
+ /* @__PURE__ */ p("div", { className: "xl:yst-max-w-1/4", children: /* @__PURE__ */ C("div", { className: "yst-flex yst-flex-col yst-gap-2 lg:yst-gap-2 xl:yst-flex-row xl:yst-items-baseline", children: [
10800
+ /* @__PURE__ */ p($e, { children: /* @__PURE__ */ C(Te, { children: [
10801
+ T ? /* @__PURE__ */ p(Je, { className: "yst-inline-block yst-h-8 yst-w-64" }) : /* @__PURE__ */ C(Te, { children: [
10802
10802
  "Hi",
10803
10803
  j && " ".concat(j),
10804
10804
  ","
@@ -10807,15 +10807,15 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10807
10807
  ] }) }),
10808
10808
  /* @__PURE__ */ p("p", { className: "yst-text-sm yst-font-normal yst-text-slate-600", children: "welcome to your brand analysis!" })
10809
10809
  ] }) }),
10810
- /* @__PURE__ */ k("div", { className: "yst-flex yst-flex-row yst-flex-wrap yst-items-center yst-justify-end yst-gap-4 yst-self-end md:yst-self-start", children: [
10811
- /* @__PURE__ */ k(de, { variant: "primary", onClick: Pv, disabled: P || C || // wait for user to provide available licenses
10810
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-flex-row yst-flex-wrap yst-items-center yst-justify-end yst-gap-4 yst-self-end md:yst-self-start", children: [
10811
+ /* @__PURE__ */ C(de, { variant: "primary", onClick: Pv, disabled: P || k || // wait for user to provide available licenses
10812
10812
  T, children: [
10813
10813
  /* @__PURE__ */ p(k0, {}),
10814
10814
  " Analyze a different brand"
10815
10815
  ] }),
10816
- /* @__PURE__ */ p("div", { className: "yst-relative yst-flex yst-items-center", children: /* @__PURE__ */ k(Ws, { children: [
10817
- /* @__PURE__ */ p(Ws.IconTrigger, { screenReaderTriggerLabel: "Open brand list options", disabled: P || C || q && (q == null ? void 0 : q.length) < 1, children: /* @__PURE__ */ p(Xw, {}) }),
10818
- /* @__PURE__ */ p(Ws.List, { className: "yst-absolute yst-right-0 yst-top-full yst-z-40 yst-mt-2 yst-flex yst-w-64 yst-flex-col yst-justify-start", children: /* @__PURE__ */ k(Ws.ButtonItem, { className: "yst-flex yst-justify-start yst-text-red-600 hover:yst-bg-red-50", onClick: function() {
10816
+ /* @__PURE__ */ p("div", { className: "yst-relative yst-flex yst-items-center", children: /* @__PURE__ */ C(Ws, { children: [
10817
+ /* @__PURE__ */ p(Ws.IconTrigger, { screenReaderTriggerLabel: "Open brand list options", disabled: P || k || q && (q == null ? void 0 : q.length) < 1, children: /* @__PURE__ */ p(Xw, {}) }),
10818
+ /* @__PURE__ */ p(Ws.List, { className: "yst-absolute yst-right-0 yst-top-full yst-z-40 yst-mt-2 yst-flex yst-w-64 yst-flex-col yst-justify-start", children: /* @__PURE__ */ C(Ws.ButtonItem, { className: "yst-flex yst-justify-start yst-text-red-600 hover:yst-bg-red-50", onClick: function() {
10819
10819
  return st(!0);
10820
10820
  }, disabled: !I, children: [
10821
10821
  /* @__PURE__ */ p(td, { className: "yst-h-4 yst-w-4" }),
@@ -10825,11 +10825,11 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10825
10825
  ] })
10826
10826
  ] }),
10827
10827
  /* @__PURE__ */ p(fa, {}),
10828
- /* @__PURE__ */ k("form", { className: (
10828
+ /* @__PURE__ */ C("form", { className: (
10829
10829
  // Mobile: flex-col, stretch items; md+: flex-row, center items
10830
10830
  "yst-flex yst-flex-col yst-items-stretch yst-gap-4 md:yst-flex-row md:yst-items-center"
10831
10831
  ), children: [
10832
- /* @__PURE__ */ k(Wl, { className: "yst-relative", children: [
10832
+ /* @__PURE__ */ C(Wl, { className: "yst-relative", children: [
10833
10833
  /* @__PURE__ */ p(Ml, { htmlFor: "brand-name", children: "Brand" }),
10834
10834
  /* @__PURE__ */ p(Io, { onChange: function(ce) {
10835
10835
  A("/brands/".concat(ce));
@@ -10841,15 +10841,15 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10841
10841
  }) : [{
10842
10842
  value: "loading",
10843
10843
  label: "Loading..."
10844
- }], disabled: C || !q || q.length < 2 || !d })
10844
+ }], disabled: k || !q || q.length < 2 || !d })
10845
10845
  ] }),
10846
- /* @__PURE__ */ k(Wl, { className: "yst-relative", children: [
10846
+ /* @__PURE__ */ C(Wl, { className: "yst-relative", children: [
10847
10847
  /* @__PURE__ */ p(Ml, { htmlFor: "analysis-date", children: "Analysis date" }),
10848
10848
  /* @__PURE__ */ p(_C, { analyses: U || [], selectedAnalysisId: Me, onAnalysisSelect: function(ce) {
10849
10849
  A("/brands/".concat(d, "/analysis/").concat(String(ce)));
10850
10850
  }, isLoading: P, disabled: P || !U || U.length < 1, id: "analysis-date" })
10851
10851
  ] }),
10852
- /* @__PURE__ */ k(Wl, { className: "yst-relative", children: [
10852
+ /* @__PURE__ */ C(Wl, { className: "yst-relative", children: [
10853
10853
  /* @__PURE__ */ p("div", { className: "yst-flex yst-items-center yst-gap-2", children: /* @__PURE__ */ p(Ml, { htmlFor: "ai-tool", children: "AI platform" }) }),
10854
10854
  /* @__PURE__ */ p(Io, { onChange: function(ce) {
10855
10855
  Object.values(An).includes(ce) ? m(ce) : console.error("Invalid AI provider selected:", ce), ce === An.perplexity && Us(), ce === An.gemini && Hs();
@@ -10872,12 +10872,12 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10872
10872
  },
10873
10873
  variant: "info",
10874
10874
  delay: 2e3,
10875
- children: /* @__PURE__ */ k("div", { className: "yst-space-y-3", children: [
10876
- /* @__PURE__ */ k("div", { className: "yst-flex yst-items-start yst-gap-2", children: [
10875
+ children: /* @__PURE__ */ C("div", { className: "yst-space-y-3", children: [
10876
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-items-start yst-gap-2", children: [
10877
10877
  /* @__PURE__ */ p(ec, { className: "yst-mt-0.5 yst-h-4 yst-w-4 yst-flex-shrink-0" }),
10878
- /* @__PURE__ */ k("div", { className: "yst-flex-1 yst-space-y-1", children: [
10878
+ /* @__PURE__ */ C("div", { className: "yst-flex-1 yst-space-y-1", children: [
10879
10879
  /* @__PURE__ */ p($e, { size: "4", className: "yst-text-sm yst-font-medium", children: "New: See how your brand appears in Perplexity" }),
10880
- /* @__PURE__ */ k("p", { className: "yst-mb-4 yst-text-sm", children: [
10880
+ /* @__PURE__ */ C("p", { className: "yst-mb-4 yst-text-sm", children: [
10881
10881
  "Select 'Perplexity' from the",
10882
10882
  " ",
10883
10883
  /* @__PURE__ */ p("strong", { className: "yst-font-medium", children: "AI platform" }),
@@ -10886,7 +10886,7 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10886
10886
  ] })
10887
10887
  ] })
10888
10888
  ] }),
10889
- /* @__PURE__ */ k("div", { className: "yst-flex yst-justify-end yst-gap-2", children: [
10889
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-justify-end yst-gap-2", children: [
10890
10890
  /* @__PURE__ */ p(
10891
10891
  de,
10892
10892
  {
@@ -10918,12 +10918,12 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10918
10918
  },
10919
10919
  variant: "info",
10920
10920
  delay: 2e3,
10921
- children: /* @__PURE__ */ k("div", { className: "yst-space-y-3", children: [
10922
- /* @__PURE__ */ k("div", { className: "yst-flex yst-items-start yst-gap-2", children: [
10921
+ children: /* @__PURE__ */ C("div", { className: "yst-space-y-3", children: [
10922
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-items-start yst-gap-2", children: [
10923
10923
  /* @__PURE__ */ p(ec, { className: "yst-mt-0.5 yst-h-4 yst-w-4 yst-flex-shrink-0" }),
10924
- /* @__PURE__ */ k("div", { className: "yst-flex-1 yst-space-y-1", children: [
10924
+ /* @__PURE__ */ C("div", { className: "yst-flex-1 yst-space-y-1", children: [
10925
10925
  /* @__PURE__ */ p($e, { size: "4", className: "yst-text-sm yst-font-medium", children: "New: See how your brand appears in Gemini" }),
10926
- /* @__PURE__ */ k("p", { className: "yst-mb-4 yst-text-sm", children: [
10926
+ /* @__PURE__ */ C("p", { className: "yst-mb-4 yst-text-sm", children: [
10927
10927
  "Select 'Gemini' from the",
10928
10928
  " ",
10929
10929
  /* @__PURE__ */ p("strong", { className: "yst-font-medium", children: "AI platform" }),
@@ -10932,7 +10932,7 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10932
10932
  ] })
10933
10933
  ] })
10934
10934
  ] }),
10935
- /* @__PURE__ */ k("div", { className: "yst-flex yst-justify-end yst-gap-2", children: [
10935
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-justify-end yst-gap-2", children: [
10936
10936
  /* @__PURE__ */ p(
10937
10937
  de,
10938
10938
  {
@@ -10957,23 +10957,23 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10957
10957
  ] })
10958
10958
  ] })
10959
10959
  ] }) }),
10960
- /* @__PURE__ */ k("div", { className: "ystaii-alerts yst-space-y-4", children: [
10961
- Mt && /* @__PURE__ */ p(an, { children: /* @__PURE__ */ k("div", { className: "yst-flex yst-w-full", children: [
10960
+ /* @__PURE__ */ C("div", { className: "ystaii-alerts yst-space-y-4", children: [
10961
+ Mt && /* @__PURE__ */ p(an, { children: /* @__PURE__ */ C("div", { className: "yst-flex yst-w-full", children: [
10962
10962
  /* @__PURE__ */ p("div", { className: "yst-max-w-xl yst-space-y-4", children: /* @__PURE__ */ p("p", { className: "yst-mb-0", children: "Note: These insights are produced using AI and may contain errors." }) }),
10963
10963
  /* @__PURE__ */ p("div", { className: "yst-ml-auto", children: /* @__PURE__ */ p(qn, { onClick: Ol, variant: "default", children: /* @__PURE__ */ p(N0, {}) }) })
10964
10964
  ] }) }),
10965
10965
  Lt !== tr.completed && be && /* @__PURE__ */ p(an, { className: "md:yst-col-span-2", variant: He, children: be }),
10966
- gr && /* @__PURE__ */ k(an, { variant: "warning", children: [
10966
+ gr && /* @__PURE__ */ C(an, { variant: "warning", children: [
10967
10967
  "Note: This scan is not up to date with your current brand groups.",
10968
- Ov ? /* @__PURE__ */ k(Te, { children: [
10968
+ Ov ? /* @__PURE__ */ C(Te, { children: [
10969
10969
  " ",
10970
10970
  "We're updating your sentiment analysis to reflect your new brand groups. This may take a few minutes."
10971
10971
  ] }) : /* @__PURE__ */ p(Te, { children: " Newer scans will use your newly selected brand groupings." })
10972
10972
  ] })
10973
10973
  ] }),
10974
- gt && /* @__PURE__ */ p(an, { variant: "info", className: "yst-mb-6", children: /* @__PURE__ */ p("div", { className: "yst-flex yst-items-start yst-gap-3", children: /* @__PURE__ */ k("div", { className: "yst-flex-1", children: [
10974
+ gt && /* @__PURE__ */ p(an, { variant: "info", className: "yst-mb-6", children: /* @__PURE__ */ p("div", { className: "yst-flex yst-items-start yst-gap-3", children: /* @__PURE__ */ C("div", { className: "yst-flex-1", children: [
10975
10975
  /* @__PURE__ */ p("h3", { className: "yst-mb-2 yst-font-medium yst-text-blue-800", children: "No analyses scheduled" }),
10976
- /* @__PURE__ */ k("p", { className: "yst-text-bluer-700 yst-mb-0", children: [
10976
+ /* @__PURE__ */ C("p", { className: "yst-text-bluer-700 yst-mb-0", children: [
10977
10977
  /* @__PURE__ */ p("span", { className: "yst-font-medium yst-text-blue-900", children: z == null ? void 0 : z.name }),
10978
10978
  " ",
10979
10979
  "has not been analyzed yet, and no analyses are scheduled because this brand is set to inactive in your",
@@ -10990,8 +10990,8 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
10990
10990
  ] });
10991
10991
  }, $C = function() {
10992
10992
  var e, n, r, i = yr(), a = i.data, s = i.isLoading, o = i.isRefetching, l = a == null ? void 0 : a.mentions;
10993
- return /* @__PURE__ */ p(Ge, { className: "yst-overflow-visible", children: /* @__PURE__ */ k(Ge.Content, { className: "yst-space-y-4", children: [
10994
- /* @__PURE__ */ k("div", { className: "yst-space-y-2", children: [
10993
+ return /* @__PURE__ */ p(Ge, { className: "yst-overflow-visible", children: /* @__PURE__ */ C(Ge.Content, { className: "yst-space-y-4", children: [
10994
+ /* @__PURE__ */ C("div", { className: "yst-space-y-2", children: [
10995
10995
  /* @__PURE__ */ p(
10996
10996
  Ds,
10997
10997
  {
@@ -11011,7 +11011,7 @@ var ch = "perplexity_tooltip_dismissed", VC = /* @__PURE__ */ new Date("2026-01-
11011
11011
  ] }),
11012
11012
  !s && l ? /* @__PURE__ */ p("ul", { children: l == null || (r = l.queriesWithMentions) === null || r === void 0 ? void 0 : r.map(function(u, c) {
11013
11013
  var d = c === 0, h = l.queriesWithMentions && c === l.queriesWithMentions.length - 1;
11014
- return /* @__PURE__ */ k("li", { className: ae("yst-flex yst-flex-row yst-items-center yst-gap-2 yst-border-l yst-border-r yst-border-slate-300 yst-p-4 yst-font-medium yst-text-slate-800", {
11014
+ return /* @__PURE__ */ C("li", { className: ae("yst-flex yst-flex-row yst-items-center yst-gap-2 yst-border-l yst-border-r yst-border-slate-300 yst-p-4 yst-font-medium yst-text-slate-800", {
11015
11015
  "yst-rounded-t-lg yst-border-t": d,
11016
11016
  "yst-rounded-b-lg yst-border-b": h,
11017
11017
  "yst-border-b": !h
@@ -15044,7 +15044,7 @@ class pa extends fr {
15044
15044
  }
15045
15045
  const N = Oe(i.ticks.maxTicksLimit, d), T = Math.max(1, Math.ceil(d / N));
15046
15046
  for (O = 0; O < d; O += T) {
15047
- const B = this.getContext(O), j = a.setContext(B), Y = o.setContext(B), q = j.lineWidth, C = j.color, W = Y.dash || [], U = Y.dashOffset, P = j.tickWidth, Q = j.tickColor, G = j.tickBorderDash || [], K = j.tickBorderDashOffset;
15047
+ const B = this.getContext(O), j = a.setContext(B), Y = o.setContext(B), q = j.lineWidth, k = j.color, W = Y.dash || [], U = Y.dashOffset, P = j.tickWidth, Q = j.tickColor, G = j.tickBorderDash || [], K = j.tickBorderDashOffset;
15048
15048
  E = q4(this, O, l), E !== void 0 && (S = Yr(r, E, q), u ? b = x = D = I = S : w = R = L = F = S, f.push({
15049
15049
  tx1: b,
15050
15050
  ty1: w,
@@ -15055,7 +15055,7 @@ class pa extends fr {
15055
15055
  x2: I,
15056
15056
  y2: F,
15057
15057
  width: q,
15058
- color: C,
15058
+ color: k,
15059
15059
  borderDash: W,
15060
15060
  borderDashOffset: U,
15061
15061
  tickWidth: P,
@@ -15103,8 +15103,8 @@ class pa extends fr {
15103
15103
  const T = a.setContext(this.getContext(g));
15104
15104
  x = this.getPixelForTick(g) + a.labelOffset, R = this._resolveTickFontOptions(g), D = R.lineHeight, L = Ze(E) ? E.length : 1;
15105
15105
  const B = L / 2, j = T.color, Y = T.textStrokeColor, q = T.textStrokeWidth;
15106
- let C = w;
15107
- s ? (S = x, w === "inner" && (g === A - 1 ? C = this.options.reverse ? "left" : "right" : g === 0 ? C = this.options.reverse ? "right" : "left" : C = "center"), i === "top" ? u === "near" || m !== 0 ? I = -L * D + D / 2 : u === "center" ? I = -N.highest.height / 2 - B * D + D : I = -N.highest.height + D / 2 : u === "near" || m !== 0 ? I = D / 2 : u === "center" ? I = N.highest.height / 2 - B * D : I = N.highest.height - L * D, d && (I *= -1), m !== 0 && !T.showLabelBackdrop && (S += D / 2 * Math.sin(m))) : (b = x, I = (1 - L) * D / 2);
15106
+ let k = w;
15107
+ s ? (S = x, w === "inner" && (g === A - 1 ? k = this.options.reverse ? "left" : "right" : g === 0 ? k = this.options.reverse ? "right" : "left" : k = "center"), i === "top" ? u === "near" || m !== 0 ? I = -L * D + D / 2 : u === "center" ? I = -N.highest.height / 2 - B * D + D : I = -N.highest.height + D / 2 : u === "near" || m !== 0 ? I = D / 2 : u === "center" ? I = N.highest.height / 2 - B * D : I = N.highest.height - L * D, d && (I *= -1), m !== 0 && !T.showLabelBackdrop && (S += D / 2 * Math.sin(m))) : (b = x, I = (1 - L) * D / 2);
15108
15108
  let W;
15109
15109
  if (T.showLabelBackdrop) {
15110
15110
  const U = At(T.backdropPadding), P = N.heights[g], Q = N.widths[g];
@@ -15145,7 +15145,7 @@ class pa extends fr {
15145
15145
  color: j,
15146
15146
  strokeColor: Y,
15147
15147
  strokeWidth: q,
15148
- textAlign: C,
15148
+ textAlign: k,
15149
15149
  textBaseline: F,
15150
15150
  translation: [
15151
15151
  S,
@@ -18940,8 +18940,8 @@ var z8 = function() {
18940
18940
  }
18941
18941
  }
18942
18942
  });
18943
- return /* @__PURE__ */ p(Ge, { className: "yst-overflow-visible", children: /* @__PURE__ */ k(Ge.Content, { className: "yst-space-y-4", children: [
18944
- /* @__PURE__ */ k("div", { className: "yst-space-y-2", children: [
18943
+ return /* @__PURE__ */ p(Ge, { className: "yst-overflow-visible", children: /* @__PURE__ */ C(Ge.Content, { className: "yst-space-y-4", children: [
18944
+ /* @__PURE__ */ C("div", { className: "yst-space-y-2", children: [
18945
18945
  /* @__PURE__ */ p(
18946
18946
  Ds,
18947
18947
  {
@@ -18982,17 +18982,17 @@ var z8 = function() {
18982
18982
  title: "Simplify writing and readability",
18983
18983
  description: "Use shorter sentences, plain language, and one idea per paragraph. This makes it easier for AI systems to recognize and quote your content."
18984
18984
  }];
18985
- return /* @__PURE__ */ p(Ge, { className: "yst-overflow-visible yst-p-8 yst-text-slate-800 md:yst-col-span-2", children: /* @__PURE__ */ k(Ge.Content, { className: "yst-max-w-2xl", children: [
18985
+ return /* @__PURE__ */ p(Ge, { className: "yst-overflow-visible yst-p-8 yst-text-slate-800 md:yst-col-span-2", children: /* @__PURE__ */ C(Ge.Content, { className: "yst-max-w-2xl", children: [
18986
18986
  /* @__PURE__ */ p($e, { size: "2", className: "yst-mb-2 yst-text-slate-900", children: "We couldn't find your brand in this brand analysis..." }),
18987
18987
  /* @__PURE__ */ p("p", { className: "yst-text-slate-600", children: "This means LLMs may not yet be surfacing your site in answers. Don't worry, here are some steps you can take today to boost your AI visibility:" }),
18988
18988
  /* @__PURE__ */ p("ol", { className: "yst-my-0 yst-list-none yst-divide-y yst-divide-slate-200 [counter-reset:list-counter]", children: s.map(function(o, l) {
18989
- return /* @__PURE__ */ p("li", { className: "yst-relative yst-py-4 [counter-increment:list-counter] before:yst-absolute before:yst-left-0 before:yst-font-semibold before:yst-text-slate-800 before:yst-content-[counter(list-counter)'.'] last:yst-pb-0", children: /* @__PURE__ */ k("div", { className: "yst-ml-4 yst-text-slate-600", children: [
18989
+ return /* @__PURE__ */ p("li", { className: "yst-relative yst-py-4 [counter-increment:list-counter] before:yst-absolute before:yst-left-0 before:yst-font-semibold before:yst-text-slate-800 before:yst-content-[counter(list-counter)'.'] last:yst-pb-0", children: /* @__PURE__ */ C("div", { className: "yst-ml-4 yst-text-slate-600", children: [
18990
18990
  /* @__PURE__ */ p("strong", { className: "yst-font-medium yst-text-slate-800", children: o.title }),
18991
18991
  /* @__PURE__ */ p("br", {}),
18992
18992
  o.description,
18993
- o.link && /* @__PURE__ */ k(Te, { children: [
18993
+ o.link && /* @__PURE__ */ C(Te, { children: [
18994
18994
  /* @__PURE__ */ p("br", {}),
18995
- /* @__PURE__ */ p("span", { className: "yst-mt-2 yst-block", children: /* @__PURE__ */ k("a", { href: o.link.url, target: "_blank", rel: "noopener noreferrer", className: "yst-font-medium", children: [
18995
+ /* @__PURE__ */ p("span", { className: "yst-mt-2 yst-block", children: /* @__PURE__ */ C("a", { href: o.link.url, target: "_blank", rel: "noopener noreferrer", className: "yst-font-medium", children: [
18996
18996
  o.link.text,
18997
18997
  /* @__PURE__ */ p(wf, { className: "yst-ml-1 yst-inline yst-h-3 yst-w-3" })
18998
18998
  ] }) })
@@ -19000,10 +19000,10 @@ var z8 = function() {
19000
19000
  ] }) }, l);
19001
19001
  }) }),
19002
19002
  /* @__PURE__ */ p(fa, { size: 4, className: "yst-pt-0" }),
19003
- /* @__PURE__ */ k("p", { className: "yst-text-slate-600", children: [
19003
+ /* @__PURE__ */ C("p", { className: "yst-text-slate-600", children: [
19004
19004
  "Want to go deeper? →",
19005
19005
  " ",
19006
- /* @__PURE__ */ k("a", { href: "https://yoast.com/how-to-optimize-content-for-llms/", target: "_blank", rel: "noopener noreferrer", className: "yst-font-medium", children: [
19006
+ /* @__PURE__ */ C("a", { href: "https://yoast.com/how-to-optimize-content-for-llms/", target: "_blank", rel: "noopener noreferrer", className: "yst-font-medium", children: [
19007
19007
  "Read our full guide on optimizing content for LLMs",
19008
19008
  /* @__PURE__ */ p(wf, { className: "yst-ml-1 yst-inline yst-h-3 yst-w-3" })
19009
19009
  ] })
@@ -19012,10 +19012,10 @@ var z8 = function() {
19012
19012
  };
19013
19013
  function lo(t) {
19014
19014
  var e = t.value, n = e === void 0 ? "—" : e, r = t.label, i = t.tooltip, a = t.className, s = t.borderBottom, o = s === void 0 ? !1 : s, l = t.borderRight, u = l === void 0 ? !1 : l, c = t.delta, d = t.tooltipPosition, h = d === void 0 ? "left" : d;
19015
- return /* @__PURE__ */ k("div", { className: ae("yst-relative yst-flex yst-flex-col yst-items-center yst-gap-1 yst-p-4 yst-text-center", o && "yst-border-b yst-border-slate-200", u && "yst-border-r yst-border-slate-200", a), children: [
19015
+ return /* @__PURE__ */ C("div", { className: ae("yst-relative yst-flex yst-flex-col yst-items-center yst-gap-1 yst-p-4 yst-text-center", o && "yst-border-b yst-border-slate-200", u && "yst-border-r yst-border-slate-200", a), children: [
19016
19016
  /* @__PURE__ */ p("p", { className: "yst-text-2xl yst-font-bold yst-text-slate-900", children: n }),
19017
19017
  /* @__PURE__ */ p("p", { className: "yst-text-tiny yst-text-slate-600", children: r }),
19018
- typeof c == "number" && /* @__PURE__ */ k("p", { className: ae("yst-flex yst-items-center yst-gap-1 yst-text-tiny yst-font-bold", os(c)), children: [
19018
+ typeof c == "number" && /* @__PURE__ */ C("p", { className: ae("yst-flex yst-items-center yst-gap-1 yst-text-tiny yst-font-bold", os(c)), children: [
19019
19019
  c > 0 ? /* @__PURE__ */ p(I0, {}) : c < 0 ? /* @__PURE__ */ p(T0, {}) : null,
19020
19020
  c > -1e-6 && "+",
19021
19021
  c
@@ -19035,7 +19035,7 @@ function W8(t) {
19035
19035
  if (typeof n != "number")
19036
19036
  return null;
19037
19037
  var i = e - n, a = i > 0, s = i < 0, o = "".concat(i > 0 ? "+" : "").concat(i.toFixed(1), "%");
19038
- return /* @__PURE__ */ k("div", { className: ae("yst-flex yst-items-center yst-gap-1 yst-text-tiny yst-font-bold", q8(i), r), "aria-label": a ? "Visibility increased by ".concat(o) : s ? "Visibility decreased by ".concat(o) : "No change in visibility", children: [
19038
+ return /* @__PURE__ */ C("div", { className: ae("yst-flex yst-items-center yst-gap-1 yst-text-tiny yst-font-bold", q8(i), r), "aria-label": a ? "Visibility increased by ".concat(o) : s ? "Visibility decreased by ".concat(o) : "No change in visibility", children: [
19039
19039
  a && /* @__PURE__ */ p(I0, { className: "yst-w-4 yst-h-4" }),
19040
19040
  s && /* @__PURE__ */ p(T0, { className: "yst-w-4 yst-h-4" }),
19041
19041
  o
@@ -19133,7 +19133,7 @@ function $8() {
19133
19133
  return ((Le = oe.brand) === null || Le === void 0 ? void 0 : Le.isSelf) === !0;
19134
19134
  }), j = (c = B == null || (d = B.rank) === null || d === void 0 ? void 0 : d.value) !== null && c !== void 0 ? c : "—", Y = B == null || (h = B.rank) === null || h === void 0 || (h = h.previous) === null || h === void 0 ? void 0 : h.difference;
19135
19135
  Y && (Y = Y * -1);
19136
- var q = (f = D == null || (y = D.visibility) === null || y === void 0 ? void 0 : y.value) !== null && f !== void 0 ? f : 0, C = D == null || (m = D.visibility) === null || m === void 0 || (m = m.previous) === null || m === void 0 ? void 0 : m.value, W = (v = D == null || (g = D.ranking) === null || g === void 0 ? void 0 : g.value) !== null && v !== void 0 ? v : 0, U = (A = D == null || (O = D.sentiment) === null || O === void 0 ? void 0 : O.value) !== null && A !== void 0 ? A : 0, P = (E = D == null || (S = D.mentions) === null || S === void 0 ? void 0 : S.value) !== null && E !== void 0 ? E : 0, Q = {
19136
+ var q = (f = D == null || (y = D.visibility) === null || y === void 0 ? void 0 : y.value) !== null && f !== void 0 ? f : 0, k = D == null || (m = D.visibility) === null || m === void 0 || (m = m.previous) === null || m === void 0 ? void 0 : m.value, W = (v = D == null || (g = D.ranking) === null || g === void 0 ? void 0 : g.value) !== null && v !== void 0 ? v : 0, U = (A = D == null || (O = D.sentiment) === null || O === void 0 ? void 0 : O.value) !== null && A !== void 0 ? A : 0, P = (E = D == null || (S = D.mentions) === null || S === void 0 ? void 0 : S.value) !== null && E !== void 0 ? E : 0, Q = {
19137
19137
  labels: ["Mentions", "Ranking", "Citations", "Sentiment"],
19138
19138
  datasets: [{
19139
19139
  data: [P, W, F, U],
@@ -19177,16 +19177,16 @@ function $8() {
19177
19177
  return window.addEventListener("resize", oe), function() {
19178
19178
  return window.removeEventListener("resize", oe);
19179
19179
  };
19180
- }, []), /* @__PURE__ */ p(Ge, { className: "yst-overflow-visible md:yst-col-span-2", children: /* @__PURE__ */ k(Ge.Content, { children: [
19180
+ }, []), /* @__PURE__ */ p(Ge, { className: "yst-overflow-visible md:yst-col-span-2", children: /* @__PURE__ */ C(Ge.Content, { children: [
19181
19181
  /* @__PURE__ */ p($e, { size: "3", className: "yst-mb-2", children: "AI Visibility Index (AIVI)" }),
19182
19182
  /* @__PURE__ */ p(_s, { score: q, total: 100, isLoading: R }),
19183
- /* @__PURE__ */ p(W8, { current: q, previous: C, className: "yst-mb-4" }),
19184
- /* @__PURE__ */ k("div", { className: "yst-flex yst-flex-col yst-items-center yst-justify-around yst-justify-items-center yst-gap-8 md:yst-flex-row", children: [
19185
- /* @__PURE__ */ k("div", { className: "yst-radar-chart-container yst-relative yst-aspect-square yst-h-full yst-w-full md:yst-flex md:yst-w-1/2 md:yst-items-center md:yst-justify-center", children: [
19183
+ /* @__PURE__ */ p(W8, { current: q, previous: k, className: "yst-mb-4" }),
19184
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-flex-col yst-items-center yst-justify-around yst-justify-items-center yst-gap-8 md:yst-flex-row", children: [
19185
+ /* @__PURE__ */ C("div", { className: "yst-radar-chart-container yst-relative yst-aspect-square yst-h-full yst-w-full md:yst-flex md:yst-w-1/2 md:yst-items-center md:yst-justify-center", children: [
19186
19186
  /* @__PURE__ */ p(R8, { data: Q, options: G }),
19187
19187
  /* @__PURE__ */ p(ad, { id: "tooltip-radar-chart", className: "yst-absolute yst-right-2 yst-top-2", position: "left", children: "The AI Visibility Index (AIVI) shows how visible your brand is across major AI platforms like ChatGPT and Perplexity, based on mentions, citations, sentiment, and rankings." })
19188
19188
  ] }),
19189
- /* @__PURE__ */ p("div", { className: "yst-mt-6 yst-w-full md:yst-mt-0 md:yst-flex md:yst-w-1/2 md:yst-items-center", children: /* @__PURE__ */ k(H8, { children: [
19189
+ /* @__PURE__ */ p("div", { className: "yst-mt-6 yst-w-full md:yst-mt-0 md:yst-flex md:yst-w-1/2 md:yst-items-center", children: /* @__PURE__ */ C(H8, { children: [
19190
19190
  /* @__PURE__ */ p(
19191
19191
  lo,
19192
19192
  {
@@ -19202,7 +19202,7 @@ function $8() {
19202
19202
  /* @__PURE__ */ p(
19203
19203
  lo,
19204
19204
  {
19205
- value: typeof j == "number" && Number.isFinite(j) && j > 0 ? /* @__PURE__ */ k(Te, { children: [
19205
+ value: typeof j == "number" && Number.isFinite(j) && j > 0 ? /* @__PURE__ */ C(Te, { children: [
19206
19206
  "#",
19207
19207
  j,
19208
19208
  j === 1 && " 🏆"
@@ -19325,46 +19325,46 @@ var nu = function() {
19325
19325
  l && l.length > 1 || // or current brand has multiple analyses
19326
19326
  y && y.length > 1
19327
19327
  );
19328
- return /* @__PURE__ */ k(To, { id: "toast", isVisible: T, setIsVisible: function(q) {
19328
+ return /* @__PURE__ */ C(To, { id: "toast", isVisible: T, setIsVisible: function(q) {
19329
19329
  q || B(!1);
19330
19330
  }, children: [
19331
- /* @__PURE__ */ k("div", { className: "yst-mb-3 yst-flex yst-items-start yst-gap-3", children: [
19331
+ /* @__PURE__ */ C("div", { className: "yst-mb-3 yst-flex yst-items-start yst-gap-3", children: [
19332
19332
  /* @__PURE__ */ p(ec, {}),
19333
- /* @__PURE__ */ k("div", { className: "yst-grow", children: [
19333
+ /* @__PURE__ */ C("div", { className: "yst-grow", children: [
19334
19334
  /* @__PURE__ */ p($e, { size: "3", className: "yst-mb-1", children: Y ? "Congratulations, your analysis is ready!" : "Congratulations on completing your first brand analysis!" }),
19335
19335
  "You've completed your brand analysis. We'd love to hear what you think."
19336
19336
  ] }),
19337
19337
  /* @__PURE__ */ p(de, { variant: "tertiary", onClick: j, children: /* @__PURE__ */ p(N0, {}) })
19338
19338
  ] }),
19339
- /* @__PURE__ */ k("div", { className: "yst-flex yst-justify-end yst-gap-4", children: [
19339
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-justify-end yst-gap-4", children: [
19340
19340
  /* @__PURE__ */ p(de, { variant: "tertiary", onClick: j, children: "Dismiss" }),
19341
- /* @__PURE__ */ k(de, { as: "a", href: "https://www.surveymonkey.com/r/HGSB8DL", target: "_blank", children: [
19341
+ /* @__PURE__ */ C(de, { as: "a", href: "https://www.surveymonkey.com/r/HGSB8DL", target: "_blank", children: [
19342
19342
  "Give feedback",
19343
19343
  /* @__PURE__ */ p(M0, { className: "yst-ml-2" })
19344
19344
  ] })
19345
19345
  ] })
19346
19346
  ] });
19347
19347
  };
19348
- return u ? /* @__PURE__ */ p(ha, {}) : A ? /* @__PURE__ */ k("div", { className: "yst-space-y-4", children: [
19348
+ return u ? /* @__PURE__ */ p(ha, {}) : A ? /* @__PURE__ */ C("div", { className: "yst-space-y-4", children: [
19349
19349
  /* @__PURE__ */ p(ZC, {}),
19350
- g && !u && /* @__PURE__ */ k("div", { children: [
19350
+ g && !u && /* @__PURE__ */ C("div", { children: [
19351
19351
  /* @__PURE__ */ p($e, { size: "2", className: "yst-mb-2", children: "Your brand analysis is loading" }),
19352
19352
  /* @__PURE__ */ p("div", { className: "yst-inline-flex yst-w-full yst-items-center yst-justify-center", children: /* @__PURE__ */ p(Ps, { size: "8", variant: "primary", className: "yst-ml-2" }) })
19353
19353
  ] }),
19354
- O && /* @__PURE__ */ k("div", { className: "yst-space-y-4", children: [
19355
- /* @__PURE__ */ k("div", { className: "yst-flex yst-items-center yst-justify-between", children: [
19354
+ O && /* @__PURE__ */ C("div", { className: "yst-space-y-4", children: [
19355
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-items-center yst-justify-between", children: [
19356
19356
  /* @__PURE__ */ p($e, { size: "2", children: "Your brand analysis" }),
19357
- /* @__PURE__ */ k("div", { className: "yst-flex yst-gap-2", children: [
19357
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-gap-2", children: [
19358
19358
  !a && /* @__PURE__ */ p(de, { variant: "secondary", onClick: function() {
19359
19359
  return s("/brands/".concat(n, "/analysis/").concat(r, "/scan-details"));
19360
19360
  }, children: "Scan details" }),
19361
- /* @__PURE__ */ k(de, { as: Ur, variant: "secondary", to: "/brands/".concat(n, "/brand-list"), disabled: !n, children: [
19361
+ /* @__PURE__ */ C(de, { as: Ur, variant: "secondary", to: "/brands/".concat(n, "/brand-list"), disabled: !n, children: [
19362
19362
  /* @__PURE__ */ p(C0, {}),
19363
19363
  " Edit brand list"
19364
19364
  ] })
19365
19365
  ] })
19366
19366
  ] }),
19367
- /* @__PURE__ */ k("div", { className: "yst-grid yst-grid-cols-1 yst-gap-4 md:yst-grid-cols-2", children: [
19367
+ /* @__PURE__ */ C("div", { className: "yst-grid yst-grid-cols-1 yst-gap-4 md:yst-grid-cols-2", children: [
19368
19368
  /* @__PURE__ */ p(U8, {}),
19369
19369
  /* @__PURE__ */ p($8, {}),
19370
19370
  /* @__PURE__ */ p($C, {}),
@@ -19410,60 +19410,60 @@ var nu = function() {
19410
19410
  }
19411
19411
  });
19412
19412
  }), Xn = function() {
19413
- return /* @__PURE__ */ p("div", { className: "yst-flex yst-min-h-[200px] yst-items-center yst-justify-center", children: /* @__PURE__ */ k("div", { className: "yst-w-full yst-max-w-md yst-space-y-3", children: [
19413
+ return /* @__PURE__ */ p("div", { className: "yst-flex yst-min-h-[200px] yst-items-center yst-justify-center", children: /* @__PURE__ */ C("div", { className: "yst-w-full yst-max-w-md yst-space-y-3", children: [
19414
19414
  /* @__PURE__ */ p(Je, { className: "yst-h-8 yst-w-3/4" }),
19415
19415
  /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-full" }),
19416
19416
  /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-2/3" })
19417
19417
  ] }) });
19418
19418
  }, pE = function(e) {
19419
19419
  var n = e.hideNav, r = n === void 0 ? !1 : n, i = e.disableLayout, a = i === void 0 ? !1 : i, s = e.DebugInfo;
19420
- return /* @__PURE__ */ p(T2, { children: /* @__PURE__ */ k(bt, { element: (
19420
+ return /* @__PURE__ */ p(T2, { children: /* @__PURE__ */ C(bt, { element: (
19421
19421
  // TODO: move layout out of Initializer?
19422
19422
  /* @__PURE__ */ p(UA, { hideNav: r, disableLayout: a, DebugInfo: s })
19423
19423
  ), children: [
19424
- /* @__PURE__ */ k(bt, { path: "/", element: /* @__PURE__ */ p(ta, {}), children: [
19425
- /* @__PURE__ */ p(bt, { index: !0, element: /* @__PURE__ */ k(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19424
+ /* @__PURE__ */ C(bt, { path: "/", element: /* @__PURE__ */ p(ta, {}), children: [
19425
+ /* @__PURE__ */ p(bt, { index: !0, element: /* @__PURE__ */ C(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19426
19426
  /* @__PURE__ */ p(Vn, { title: "AI Brand Insights" }),
19427
19427
  /* @__PURE__ */ p(nu, {})
19428
19428
  ] }) }),
19429
- /* @__PURE__ */ k(bt, { path: "brands/:brandId", element: /* @__PURE__ */ p(Tf, {}), children: [
19429
+ /* @__PURE__ */ C(bt, { path: "brands/:brandId", element: /* @__PURE__ */ p(Tf, {}), children: [
19430
19430
  /* @__PURE__ */ p(bt, { index: !0, element: /* @__PURE__ */ p(nu, {}) }),
19431
- /* @__PURE__ */ p(bt, { path: "brand-list", element: /* @__PURE__ */ k(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19431
+ /* @__PURE__ */ p(bt, { path: "brand-list", element: /* @__PURE__ */ C(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19432
19432
  /* @__PURE__ */ p(Vn, { title: "Brands - AI Brand Insights" }),
19433
19433
  /* @__PURE__ */ p(aE, {})
19434
19434
  ] }) }),
19435
- /* @__PURE__ */ k(bt, { path: "analysis/:analysisId", element: /* @__PURE__ */ p(HA, {}), children: [
19436
- /* @__PURE__ */ p(bt, { index: !0, element: /* @__PURE__ */ k(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19435
+ /* @__PURE__ */ C(bt, { path: "analysis/:analysisId", element: /* @__PURE__ */ p(HA, {}), children: [
19436
+ /* @__PURE__ */ p(bt, { index: !0, element: /* @__PURE__ */ C(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19437
19437
  /* @__PURE__ */ p(Vn, { title: "Analysis - AI Brand Insights" }),
19438
19438
  /* @__PURE__ */ p(nu, {})
19439
19439
  ] }) }),
19440
- /* @__PURE__ */ p(bt, { path: "scan-details", element: /* @__PURE__ */ k(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19440
+ /* @__PURE__ */ p(bt, { path: "scan-details", element: /* @__PURE__ */ C(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19441
19441
  /* @__PURE__ */ p(Vn, { title: "Scan details - AI Brand Insights" }),
19442
19442
  /* @__PURE__ */ p(sE, {})
19443
19443
  ] }) })
19444
19444
  ] })
19445
19445
  ] }),
19446
- /* @__PURE__ */ k(bt, { path: "/setup", element: /* @__PURE__ */ k(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19446
+ /* @__PURE__ */ C(bt, { path: "/setup", element: /* @__PURE__ */ C(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19447
19447
  /* @__PURE__ */ p(Vn, { title: "Setup brand - AI Brand Insights" }),
19448
19448
  /* @__PURE__ */ p(lE, {})
19449
19449
  ] }), children: [
19450
- /* @__PURE__ */ p(bt, { index: !0, element: /* @__PURE__ */ k(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19450
+ /* @__PURE__ */ p(bt, { index: !0, element: /* @__PURE__ */ C(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19451
19451
  /* @__PURE__ */ p(Vn, { title: "AI Brand Insights" }),
19452
19452
  /* @__PURE__ */ p(uE, {})
19453
19453
  ] }) }),
19454
- /* @__PURE__ */ k(bt, { path: ":brandId", element: /* @__PURE__ */ p(Tf, {}), children: [
19455
- /* @__PURE__ */ p(bt, { path: "queries", element: /* @__PURE__ */ k(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19454
+ /* @__PURE__ */ C(bt, { path: ":brandId", element: /* @__PURE__ */ p(Tf, {}), children: [
19455
+ /* @__PURE__ */ p(bt, { path: "queries", element: /* @__PURE__ */ C(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19456
19456
  /* @__PURE__ */ p(Vn, { title: "Setup queries - AI Brand Insights" }),
19457
19457
  /* @__PURE__ */ p(cE, {})
19458
19458
  ] }) }),
19459
- /* @__PURE__ */ p(bt, { path: "analysis", element: /* @__PURE__ */ k(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19459
+ /* @__PURE__ */ p(bt, { path: "analysis", element: /* @__PURE__ */ C(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19460
19460
  /* @__PURE__ */ p(Vn, { title: "Analysis - AI Brand Insights" }),
19461
19461
  /* @__PURE__ */ p(dE, {})
19462
19462
  ] }) })
19463
19463
  ] })
19464
19464
  ] })
19465
19465
  ] }),
19466
- /* @__PURE__ */ p(bt, { path: "/settings", element: /* @__PURE__ */ k(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19466
+ /* @__PURE__ */ p(bt, { path: "/settings", element: /* @__PURE__ */ C(Sn, { fallback: /* @__PURE__ */ p(Xn, {}), children: [
19467
19467
  /* @__PURE__ */ p(Vn, { title: "Settings - AI Brand Insights" }),
19468
19468
  /* @__PURE__ */ p(oE, {})
19469
19469
  ] }) }),
@@ -19471,8 +19471,8 @@ var nu = function() {
19471
19471
  ] }) });
19472
19472
  }, yE = function(e) {
19473
19473
  var n = e.DebugInfo, r = e.hostAppProps;
19474
- return /* @__PURE__ */ k(Lb, { client: fE, children: [
19475
- /* @__PURE__ */ p(JA, { children: /* @__PURE__ */ k(Nw, { hostAppProps: r, children: [
19474
+ return /* @__PURE__ */ C(Lb, { client: fE, children: [
19475
+ /* @__PURE__ */ p(JA, { children: /* @__PURE__ */ C(Nw, { hostAppProps: r, children: [
19476
19476
  /* @__PURE__ */ p(pE, { DebugInfo: n }),
19477
19477
  /* @__PURE__ */ p(ZA, {})
19478
19478
  ] }) }),
@@ -19555,7 +19555,7 @@ var SL = function(e) {
19555
19555
  l && kx(l), Ex(typeof o != "function" ? function() {
19556
19556
  return o;
19557
19557
  } : o), R(!1);
19558
- }, [l, o]), x ? /* @__PURE__ */ p("div", { className: i, style: a, children: /* @__PURE__ */ p(Ps, {}) }) : /* @__PURE__ */ p("div", { className: i, style: a, children: /* @__PURE__ */ k(O2, { initialEntries: [S(h, y)], basename: h || "/", children: [
19558
+ }, [l, o]), x ? /* @__PURE__ */ p("div", { className: i, style: a, children: /* @__PURE__ */ p(Ps, {}) }) : /* @__PURE__ */ p("div", { className: i, style: a, children: /* @__PURE__ */ C(O2, { initialEntries: [S(h, y)], basename: h || "/", children: [
19559
19559
  /* @__PURE__ */ p(mE, { subpath: y, onNavigate: v }),
19560
19560
  /* @__PURE__ */ p(_v, { context: {
19561
19561
  isRtl: r
@@ -19564,7 +19564,7 @@ var SL = function(e) {
19564
19564
  };
19565
19565
  function _g(t) {
19566
19566
  var e = t.children, n = t.description, r = t.title;
19567
- return /* @__PURE__ */ k(_r.Header, { children: [
19567
+ return /* @__PURE__ */ C(_r.Header, { children: [
19568
19568
  r && /* @__PURE__ */ p($e, { className: ae({
19569
19569
  "yst-mb-3": n || e
19570
19570
  }), children: r }),
@@ -19727,10 +19727,10 @@ var EE = function(e) {
19727
19727
  if (n && i && i.type === "group") {
19728
19728
  var q;
19729
19729
  h(String(i.name || ""));
19730
- var C = ((q = i.groupedBrands) === null || q === void 0 ? void 0 : q.map(function(W) {
19730
+ var k = ((q = i.groupedBrands) === null || q === void 0 ? void 0 : q.map(function(W) {
19731
19731
  return String(W.id || "");
19732
19732
  })) || [];
19733
- v(C);
19733
+ v(k);
19734
19734
  }
19735
19735
  }, [n, i]);
19736
19736
  var b = x0({
@@ -19766,14 +19766,14 @@ var EE = function(e) {
19766
19766
  }
19767
19767
  }, W);
19768
19768
  }));
19769
- function C() {
19769
+ function k() {
19770
19770
  return q.apply(this, arguments);
19771
19771
  }
19772
- return C;
19772
+ return k;
19773
19773
  }(),
19774
19774
  // TODO: Handle error states
19775
- onError: function(C) {
19776
- console.error("Error creating brand group:", C);
19775
+ onError: function(k) {
19776
+ console.error("Error creating brand group:", k);
19777
19777
  }
19778
19778
  }
19779
19779
  }), w = b.mutate, x = b.isPending, R = nw({
@@ -19809,13 +19809,13 @@ var EE = function(e) {
19809
19809
  }
19810
19810
  }, W);
19811
19811
  }));
19812
- function C() {
19812
+ function k() {
19813
19813
  return q.apply(this, arguments);
19814
19814
  }
19815
- return C;
19815
+ return k;
19816
19816
  }(),
19817
- onError: function(C) {
19818
- console.error("Error deleting brand group:", C), window.alert(
19817
+ onError: function(k) {
19818
+ console.error("Error deleting brand group:", k), window.alert(
19819
19819
  // TODO: improve this UX when we know more about why this might fail
19820
19820
  "An error occurred while ungrouping the brands. Please try again later."
19821
19821
  );
@@ -19832,16 +19832,16 @@ var EE = function(e) {
19832
19832
  }, N = function() {
19833
19833
  h(""), v([]), r();
19834
19834
  }, T = function() {
19835
- return m.map(function(C) {
19835
+ return m.map(function(k) {
19836
19836
  if (i && i.type === "group") {
19837
19837
  var W, U = (W = i.groupedBrands) === null || W === void 0 ? void 0 : W.find(function(Q) {
19838
- return String(Q.id) === C;
19838
+ return String(Q.id) === k;
19839
19839
  });
19840
19840
  if (U)
19841
19841
  return U.name || "";
19842
19842
  }
19843
19843
  var P = a.find(function(Q) {
19844
- return String(Q.id) === C;
19844
+ return String(Q.id) === k;
19845
19845
  });
19846
19846
  return P ? P.type === "group" ? "Group: ".concat(P.name) : P.name || "" : "";
19847
19847
  }).filter(Boolean);
@@ -19859,24 +19859,24 @@ var EE = function(e) {
19859
19859
  brandGroupId: i.id
19860
19860
  });
19861
19861
  };
19862
- return !i || i.type !== "group" ? null : /* @__PURE__ */ k(Te, { children: [
19862
+ return !i || i.type !== "group" ? null : /* @__PURE__ */ C(Te, { children: [
19863
19863
  /* @__PURE__ */ p(ee, { isOpen: n, onClose: O ? function() {
19864
- } : N, as: "div", children: /* @__PURE__ */ p(ee.Panel, { children: /* @__PURE__ */ k(ee.Container, { children: [
19864
+ } : N, as: "div", children: /* @__PURE__ */ p(ee.Panel, { children: /* @__PURE__ */ C(ee.Container, { children: [
19865
19865
  /* @__PURE__ */ p(ee.Container.Header, { className: "yst-mb-4", children: /* @__PURE__ */ p(ee.Title, { as: "h3", className: "yst-text-lg yst-font-medium", children: "Edit brand group" }) }),
19866
- /* @__PURE__ */ k(ee.Container.Content, { className: "yst-mb-8 yst-space-y-4", children: [
19866
+ /* @__PURE__ */ C(ee.Container.Content, { className: "yst-mb-8 yst-space-y-4", children: [
19867
19867
  /* @__PURE__ */ p("p", { className: "yst-text-sm yst-text-slate-600", children: "Update the group name or ungroup brands by removing their tags." }),
19868
- /* @__PURE__ */ k("div", { children: [
19868
+ /* @__PURE__ */ C("div", { children: [
19869
19869
  /* @__PURE__ */ p("label", { htmlFor: "editGroupName", className: "yst-mb-2 yst-block yst-text-sm yst-font-medium", children: "Group name" }),
19870
19870
  /* @__PURE__ */ p(Zo, { id: "editGroupName", value: d, onChange: function(q) {
19871
19871
  return h(q.target.value);
19872
19872
  }, placeholder: "Enter group name", className: "yst-w-full" })
19873
19873
  ] }),
19874
- /* @__PURE__ */ k("div", { children: [
19874
+ /* @__PURE__ */ C("div", { children: [
19875
19875
  /* @__PURE__ */ p(bm, { readOnly: !0, id: "editGroupedBrands", label: "Grouped brands", tags: T(), onRemoveTag: function(q) {
19876
19876
  if (m.length < 2)
19877
19877
  return E(!0);
19878
- v(function(C) {
19879
- return C.filter(function(W, U) {
19878
+ v(function(k) {
19879
+ return k.filter(function(W, U) {
19880
19880
  return U !== q;
19881
19881
  });
19882
19882
  });
@@ -19885,15 +19885,15 @@ var EE = function(e) {
19885
19885
  m.length === 0 ? /* @__PURE__ */ p("p", { className: "yst-mt-2 yst-text-sm", children: 'Click "Ungroup brands" to remove this group.' }) : /* @__PURE__ */ p("p", { className: "yst-mt-2 yst-text-sm yst-italic yst-text-gray-500", children: "Note: To add brands to this group, save this group, then use the checkboxes to select this group as well as any additional brands to be grouped." })
19886
19886
  ] })
19887
19887
  ] }),
19888
- /* @__PURE__ */ p(ee.Container.Footer, { children: /* @__PURE__ */ k("div", { className: "yst-flex yst-w-full yst-items-center yst-justify-between", children: [
19888
+ /* @__PURE__ */ p(ee.Container.Footer, { children: /* @__PURE__ */ C("div", { className: "yst-flex yst-w-full yst-items-center yst-justify-between", children: [
19889
19889
  /* @__PURE__ */ p("div", { className: "yst-flex yst-justify-start", children: /* @__PURE__ */ p(de, { variant: "tertiary", onClick: B, disabled: x || !I, className: "yst-text-red-600", children: "Ungroup brands" }) }),
19890
- /* @__PURE__ */ k("div", { className: "yst-flex yst-justify-end yst-gap-2", children: [
19890
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-justify-end yst-gap-2", children: [
19891
19891
  /* @__PURE__ */ p(de, { variant: "secondary", onClick: N, children: "Cancel" }),
19892
19892
  /* @__PURE__ */ p(de, { variant: "primary", onClick: F, disabled: !d.trim() || x, isLoading: x, children: x ? "Saving..." : "Save changes" })
19893
19893
  ] })
19894
19894
  ] }) })
19895
19895
  ] }) }) }),
19896
- /* @__PURE__ */ p(ml, { isOpen: O, onClose: j, onConfirm: Y, disabled: !I || L, isLoading: L, title: "Ungroup this brand group?", description: /* @__PURE__ */ k(Te, { children: [
19896
+ /* @__PURE__ */ p(ml, { isOpen: O, onClose: j, onConfirm: Y, disabled: !I || L, isLoading: L, title: "Ungroup this brand group?", description: /* @__PURE__ */ C(Te, { children: [
19897
19897
  /* @__PURE__ */ p("p", { children: "The group will be removed, but the brands inside will remain in your brand list." }),
19898
19898
  /* @__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." })
19899
19899
  ] }), confirmText: "Yes, ungroup" })
@@ -20130,16 +20130,16 @@ var ME = function(e) {
20130
20130
  });
20131
20131
  return D ? D.type === "group" ? "Group: ".concat(D.name) : D.name || "" : "";
20132
20132
  }).filter(Boolean);
20133
- return /* @__PURE__ */ p(ee, { isOpen: n, onClose: S, children: /* @__PURE__ */ p(ee.Panel, { children: /* @__PURE__ */ k(ee.Container, { children: [
20133
+ return /* @__PURE__ */ p(ee, { isOpen: n, onClose: S, children: /* @__PURE__ */ p(ee.Panel, { children: /* @__PURE__ */ C(ee.Container, { children: [
20134
20134
  /* @__PURE__ */ p(ee.Container.Header, { children: /* @__PURE__ */ p(ee.Title, { children: "Create brand group" }) }),
20135
- /* @__PURE__ */ k(ee.Container.Content, { className: "yst-space-y-4", children: [
20136
- /* @__PURE__ */ k("div", { children: [
20135
+ /* @__PURE__ */ C(ee.Container.Content, { className: "yst-space-y-4", children: [
20136
+ /* @__PURE__ */ C("div", { children: [
20137
20137
  /* @__PURE__ */ p("label", { htmlFor: "groupName", className: "yst-mb-2 yst-block yst-text-sm yst-font-medium", children: "Group name" }),
20138
20138
  /* @__PURE__ */ p(Zo, { id: "groupName", value: h, onChange: function(R) {
20139
20139
  return f(R.target.value);
20140
20140
  }, placeholder: "Enter group name", className: "yst-w-full" })
20141
20141
  ] }),
20142
- /* @__PURE__ */ k("div", { children: [
20142
+ /* @__PURE__ */ C("div", { children: [
20143
20143
  /* @__PURE__ */ p(bm, { readOnly: !0, id: "groupedBrands", label: "Brands in group (".concat(v.length, ")"), tags: x, onRemoveTag: function(R) {
20144
20144
  var D = v[R];
20145
20145
  D && w(D);
@@ -20149,7 +20149,7 @@ var ME = function(e) {
20149
20149
  ] }),
20150
20150
  /* @__PURE__ */ p("p", { children: "Note: To add brands to this group, save this group, then use the checkboxes to select this group as well as any additional brands to be grouped." })
20151
20151
  ] }),
20152
- /* @__PURE__ */ p(ee.Container.Footer, { className: "yst-pt-4", children: /* @__PURE__ */ k("div", { className: "yst-flex yst-justify-end yst-gap-2", children: [
20152
+ /* @__PURE__ */ p(ee.Container.Footer, { className: "yst-pt-4", children: /* @__PURE__ */ C("div", { className: "yst-flex yst-justify-end yst-gap-2", children: [
20153
20153
  /* @__PURE__ */ p(de, { variant: "secondary", onClick: S, disabled: E, children: "Cancel" }),
20154
20154
  /* @__PURE__ */ p(de, { variant: "primary", onClick: b, disabled: !h.trim() || v.length === 0 || E, children: E ? "Saving..." : "Save group" })
20155
20155
  ] }) })
@@ -20258,13 +20258,13 @@ function UE(t) {
20258
20258
  if (Array.isArray(t)) return t;
20259
20259
  }
20260
20260
  var HE = function() {
20261
- var e, n = St(), r = ne(!1), i = Mn(r, 2), a = i[0], s = i[1], o = ne({}), l = Mn(o, 2), u = l[0], c = l[1], d = ne(""), h = Mn(d, 2), f = h[0], y = h[1], m = ne(1), v = Mn(m, 2), g = v[0], A = v[1], O = ne({}), E = Mn(O, 2), S = E[0], b = E[1], w = ne(!1), x = Mn(w, 2), R = x[0], D = x[1], L = ne(!1), I = Mn(L, 2), F = I[0], N = I[1], T = ne(null), B = Mn(T, 2), j = B[0], Y = B[1], q = Ut(), C = q.brandId;
20261
+ var e, n = St(), r = ne(!1), i = Mn(r, 2), a = i[0], s = i[1], o = ne({}), l = Mn(o, 2), u = l[0], c = l[1], d = ne(""), h = Mn(d, 2), f = h[0], y = h[1], m = ne(1), v = Mn(m, 2), g = v[0], A = v[1], O = ne({}), E = Mn(O, 2), S = E[0], b = E[1], w = ne(!1), x = Mn(w, 2), R = x[0], D = x[1], L = ne(!1), I = Mn(L, 2), F = I[0], N = I[1], T = ne(null), B = Mn(T, 2), j = B[0], Y = B[1], q = Ut(), k = q.brandId;
20262
20262
  function W(ge) {
20263
20263
  return String(ge.id);
20264
20264
  }
20265
- var U = Jx(C, {
20265
+ var U = Jx(k, {
20266
20266
  query: {
20267
- enabled: !!C
20267
+ enabled: !!k
20268
20268
  }
20269
20269
  }), P = U.data, Q = U.isLoading, G = 10, K = (P == null || (e = P.data) === null || e === void 0 ? void 0 : e.associatedBrands.filter(function(ge) {
20270
20270
  var ve, Ee;
@@ -20308,7 +20308,7 @@ var HE = function() {
20308
20308
  accessor: "name",
20309
20309
  Cell: function(ve) {
20310
20310
  var Ee = ve.value, z = ve.row;
20311
- return /* @__PURE__ */ p("span", { className: "yst-font-medium yst-text-slate-900", children: /* @__PURE__ */ k("div", { className: "yst-flex yst-items-center yst-gap-2", children: [
20311
+ return /* @__PURE__ */ p("span", { className: "yst-font-medium yst-text-slate-900", children: /* @__PURE__ */ C("div", { className: "yst-flex yst-items-center yst-gap-2", children: [
20312
20312
  /* @__PURE__ */ p(Ou, { id: "brand-checkbox-".concat(z.id), checked: !!S[W(z)], onChange: function() {
20313
20313
  return mt(W(z));
20314
20314
  }, value: W(z), label: z.isSelf ? (
@@ -20321,7 +20321,7 @@ var HE = function() {
20321
20321
  },
20322
20322
  LoadingComponent: function(ve) {
20323
20323
  var Ee = ve.id, z = Ee === void 0 ? "" : Ee;
20324
- return /* @__PURE__ */ k("div", { className: "yst-flex", children: [
20324
+ return /* @__PURE__ */ C("div", { className: "yst-flex", children: [
20325
20325
  /* @__PURE__ */ p(Ou, { id: "loading-row-checkbox-".concat(z), value: "loading", label: "", disabled: !0, name: "brand-checkbox-".concat(z) }),
20326
20326
  " ",
20327
20327
  /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-32", id: "loading-row-skeleton-".concat(z) })
@@ -20367,7 +20367,7 @@ var HE = function() {
20367
20367
  accessor: "id",
20368
20368
  Cell: function(ve) {
20369
20369
  var Ee = ve.value, z = ve.row;
20370
- return /* @__PURE__ */ p(Te, { children: z.type === "group" ? /* @__PURE__ */ k(
20370
+ return /* @__PURE__ */ p(Te, { children: z.type === "group" ? /* @__PURE__ */ C(
20371
20371
  de,
20372
20372
  {
20373
20373
  variant: "tertiary",
@@ -20412,11 +20412,11 @@ var HE = function() {
20412
20412
  // LoadingComponent: () => <SkeletonLoader className="yst-h-6 yst-w-20" />,
20413
20413
  // },
20414
20414
  ];
20415
- return /* @__PURE__ */ k(_r, { className: "yst-mx-auto yst-max-w-2xl", children: [
20415
+ return /* @__PURE__ */ C(_r, { className: "yst-mx-auto yst-max-w-2xl", children: [
20416
20416
  /* @__PURE__ */ p(_g, { title: "Brand list ".concat(""), children: /* @__PURE__ */ p("p", { children: "These are the brands found in responses to your example prompts. Group related brands to improve your analysis. You can rename or exclude irrelevant brands, and new brands will be added automatically if they appear in future analysis runs." }) }),
20417
- /* @__PURE__ */ k(_r.Content, { children: [
20417
+ /* @__PURE__ */ C(_r.Content, { children: [
20418
20418
  /* @__PURE__ */ p("div", { className: "yst-mb-6", children: /* @__PURE__ */ p(Zo, { id: "brand-search", label: "Search brands", placeholder: "Search brands", value: f, onChange: Wt }) }),
20419
- /* @__PURE__ */ p("div", { className: "yst-mb-6", children: /* @__PURE__ */ k(le, { columns: Ye, className: "yst-w-full", variant: "minimal", children: [
20419
+ /* @__PURE__ */ p("div", { className: "yst-mb-6", children: /* @__PURE__ */ C(le, { columns: Ye, className: "yst-w-full", variant: "minimal", children: [
20420
20420
  /* @__PURE__ */ p(le.Head, { children: /* @__PURE__ */ p(le.Row, { children: Ye.map(function(ge) {
20421
20421
  return /* @__PURE__ */ p(le.Header, { children: ge.Header }, ge.accessor);
20422
20422
  }) }) }),
@@ -20426,7 +20426,7 @@ var HE = function() {
20426
20426
  }) }, ve);
20427
20427
  }) : oe.length === 0 ? (
20428
20428
  /* NO RESULTS FOUND */
20429
- /* @__PURE__ */ p(le.Row, { children: /* @__PURE__ */ p(le.Cell, { colSpan: Ye.length, children: /* @__PURE__ */ k("div", { className: "yst-py-12 yst-text-center", children: [
20429
+ /* @__PURE__ */ p(le.Row, { children: /* @__PURE__ */ p(le.Cell, { colSpan: Ye.length, children: /* @__PURE__ */ C("div", { className: "yst-py-12 yst-text-center", children: [
20430
20430
  /* @__PURE__ */ p("h3", { className: "yst-mt-4 yst-text-lg yst-font-medium yst-text-slate-900", children: "No brands found" }),
20431
20431
  /* @__PURE__ */ p("p", { className: "yst-mt-2 yst-text-sm yst-text-slate-500", children: f ? 'No brands match "'.concat(f, '". Try a different search term.') : "No brands have been found yet. Run an analysis to discover brands." }),
20432
20432
  f && /* @__PURE__ */ p(de, { variant: "secondary", size: "small", onClick: function() {
@@ -20446,15 +20446,15 @@ var HE = function() {
20446
20446
  })
20447
20447
  ) })
20448
20448
  ] }) }),
20449
- /* @__PURE__ */ k("div", { className: "yst-flex yst-items-center yst-justify-between", children: [
20450
- /* @__PURE__ */ k(de, { variant: "secondary", onClick: je, className: "yst-mb-0 yst-gap-2", disabled: J.length < 2, children: [
20449
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-items-center yst-justify-between", children: [
20450
+ /* @__PURE__ */ C(de, { variant: "secondary", onClick: je, className: "yst-mb-0 yst-gap-2", disabled: J.length < 2, children: [
20451
20451
  /* @__PURE__ */ p(lA, {}),
20452
20452
  " Group brands"
20453
20453
  ] }),
20454
20454
  /* @__PURE__ */ p(Bc, { variant: "text", current: g, total: re, onNavigate: A, className: "yst-flex-row", screenReaderTextPrevious: "Previous page", screenReaderTextNext: "Next page" })
20455
20455
  ] })
20456
20456
  ] }),
20457
- /* @__PURE__ */ p(id, { children: /* @__PURE__ */ p("div", { className: "yst-flex yst-items-center yst-justify-end yst-gap-4", children: a ? /* @__PURE__ */ k(Te, { children: [
20457
+ /* @__PURE__ */ p(id, { children: /* @__PURE__ */ p("div", { className: "yst-flex yst-items-center yst-justify-end yst-gap-4", children: a ? /* @__PURE__ */ C(Te, { children: [
20458
20458
  /* @__PURE__ */ p(de, { variant: "secondary", className: "yst-mb-0", onClick: st, children: "Discard changes" }),
20459
20459
  /* @__PURE__ */ p(de, { variant: "primary", className: "yst-mb-0", onClick: rt, children: "Save changes" })
20460
20460
  ] }) : (
@@ -20463,9 +20463,9 @@ var HE = function() {
20463
20463
  // immediately when brands are grouped or excluded, so this
20464
20464
  // provides a way back to the analysis and does not perform
20465
20465
  // any action
20466
- /* @__PURE__ */ p(de, { as: Ur, to: "/brands/".concat(C), variant: "tertiary", className: "yst-mb-0", children: "Return to analysis" })
20466
+ /* @__PURE__ */ p(de, { as: Ur, to: "/brands/".concat(k), variant: "tertiary", className: "yst-mb-0", children: "Return to analysis" })
20467
20467
  ) }) }),
20468
- /* @__PURE__ */ p(ME, { isOpen: R, onClose: Pn, brandId: C, brandsToGroup: K.filter(function(ge) {
20468
+ /* @__PURE__ */ p(ME, { isOpen: R, onClose: Pn, brandId: k, brandsToGroup: K.filter(function(ge) {
20469
20469
  return J.includes(W(ge));
20470
20470
  }), onGroupCreated: ft }),
20471
20471
  /* @__PURE__ */ p(EE, { isOpen: F, onClose: Qn, groupToEdit: j, allBrands: K })
@@ -20477,7 +20477,7 @@ const qE = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20477
20477
  }, Symbol.toStringTag, { value: "Module" }));
20478
20478
  function wc(t) {
20479
20479
  var e = t.children, n = t.description, r = t.title;
20480
- return /* @__PURE__ */ k(Ge.Header, { className: "yst-h-auto yst-flex-col yst-items-start yst-gap-0 yst-border-b-[1px] yst-border-b-slate-200 yst-bg-white yst-py-8", children: [
20480
+ return /* @__PURE__ */ C(Ge.Header, { className: "yst-h-auto yst-flex-col yst-items-start yst-gap-0 yst-border-b-[1px] yst-border-b-slate-200 yst-bg-white yst-py-8", children: [
20481
20481
  r && /* @__PURE__ */ p($e, { className: ae({
20482
20482
  "yst-mb-3": n || e
20483
20483
  }), children: r }),
@@ -23489,13 +23489,13 @@ function D7(t, e, n) {
23489
23489
  return t.enter("htmlFlow"), t.enter("htmlFlowData"), t.consume(P), d;
23490
23490
  }
23491
23491
  function d(P) {
23492
- return P === 33 ? (t.consume(P), h) : P === 47 ? (t.consume(P), a = !0, m) : P === 63 ? (t.consume(P), i = 3, r.interrupt ? e : C) : Un(P) ? (t.consume(P), s = String.fromCharCode(P), v) : n(P);
23492
+ return P === 33 ? (t.consume(P), h) : P === 47 ? (t.consume(P), a = !0, m) : P === 63 ? (t.consume(P), i = 3, r.interrupt ? e : k) : Un(P) ? (t.consume(P), s = String.fromCharCode(P), v) : n(P);
23493
23493
  }
23494
23494
  function h(P) {
23495
- return P === 45 ? (t.consume(P), i = 2, f) : P === 91 ? (t.consume(P), i = 5, o = 0, y) : Un(P) ? (t.consume(P), i = 4, r.interrupt ? e : C) : n(P);
23495
+ return P === 45 ? (t.consume(P), i = 2, f) : P === 91 ? (t.consume(P), i = 5, o = 0, y) : Un(P) ? (t.consume(P), i = 4, r.interrupt ? e : k) : n(P);
23496
23496
  }
23497
23497
  function f(P) {
23498
- return P === 45 ? (t.consume(P), r.interrupt ? e : C) : n(P);
23498
+ return P === 45 ? (t.consume(P), r.interrupt ? e : k) : n(P);
23499
23499
  }
23500
23500
  function y(P) {
23501
23501
  const Q = "CDATA[";
@@ -23545,7 +23545,7 @@ function D7(t, e, n) {
23545
23545
  return P === null || pe(P) ? I(P) : Ne(P) ? (t.consume(P), L) : n(P);
23546
23546
  }
23547
23547
  function I(P) {
23548
- return P === 45 && i === 2 ? (t.consume(P), B) : P === 60 && i === 1 ? (t.consume(P), j) : P === 62 && i === 4 ? (t.consume(P), W) : P === 63 && i === 3 ? (t.consume(P), C) : P === 93 && i === 5 ? (t.consume(P), q) : pe(P) && (i === 6 || i === 7) ? (t.exit("htmlFlowData"), t.check(N7, U, F)(P)) : P === null || pe(P) ? (t.exit("htmlFlowData"), F(P)) : (t.consume(P), I);
23548
+ return P === 45 && i === 2 ? (t.consume(P), B) : P === 60 && i === 1 ? (t.consume(P), j) : P === 62 && i === 4 ? (t.consume(P), W) : P === 63 && i === 3 ? (t.consume(P), k) : P === 93 && i === 5 ? (t.consume(P), q) : pe(P) && (i === 6 || i === 7) ? (t.exit("htmlFlowData"), t.check(N7, U, F)(P)) : P === null || pe(P) ? (t.exit("htmlFlowData"), F(P)) : (t.consume(P), I);
23549
23549
  }
23550
23550
  function F(P) {
23551
23551
  return t.check(R7, N, U)(P);
@@ -23557,7 +23557,7 @@ function D7(t, e, n) {
23557
23557
  return P === null || pe(P) ? F(P) : (t.enter("htmlFlowData"), I(P));
23558
23558
  }
23559
23559
  function B(P) {
23560
- return P === 45 ? (t.consume(P), C) : I(P);
23560
+ return P === 45 ? (t.consume(P), k) : I(P);
23561
23561
  }
23562
23562
  function j(P) {
23563
23563
  return P === 47 ? (t.consume(P), s = "", Y) : I(P);
@@ -23570,10 +23570,10 @@ function D7(t, e, n) {
23570
23570
  return Un(P) && s.length < 8 ? (t.consume(P), s += String.fromCharCode(P), Y) : I(P);
23571
23571
  }
23572
23572
  function q(P) {
23573
- return P === 93 ? (t.consume(P), C) : I(P);
23573
+ return P === 93 ? (t.consume(P), k) : I(P);
23574
23574
  }
23575
- function C(P) {
23576
- return P === 62 ? (t.consume(P), W) : P === 45 && i === 2 ? (t.consume(P), C) : I(P);
23575
+ function k(P) {
23576
+ return P === 62 ? (t.consume(P), W) : P === 45 && i === 2 ? (t.consume(P), k) : I(P);
23577
23577
  }
23578
23578
  function W(P) {
23579
23579
  return P === null || pe(P) ? (t.exit("htmlFlowData"), U(P)) : (t.consume(P), W);
@@ -23606,93 +23606,93 @@ function z7(t, e, n) {
23606
23606
  const r = this;
23607
23607
  let i, a, s;
23608
23608
  return o;
23609
- function o(C) {
23610
- return t.enter("htmlText"), t.enter("htmlTextData"), t.consume(C), l;
23609
+ function o(k) {
23610
+ return t.enter("htmlText"), t.enter("htmlTextData"), t.consume(k), l;
23611
23611
  }
23612
- function l(C) {
23613
- return C === 33 ? (t.consume(C), u) : C === 47 ? (t.consume(C), S) : C === 63 ? (t.consume(C), O) : Un(C) ? (t.consume(C), x) : n(C);
23612
+ function l(k) {
23613
+ return k === 33 ? (t.consume(k), u) : k === 47 ? (t.consume(k), S) : k === 63 ? (t.consume(k), O) : Un(k) ? (t.consume(k), x) : n(k);
23614
23614
  }
23615
- function u(C) {
23616
- return C === 45 ? (t.consume(C), c) : C === 91 ? (t.consume(C), a = 0, y) : Un(C) ? (t.consume(C), A) : n(C);
23615
+ function u(k) {
23616
+ return k === 45 ? (t.consume(k), c) : k === 91 ? (t.consume(k), a = 0, y) : Un(k) ? (t.consume(k), A) : n(k);
23617
23617
  }
23618
- function c(C) {
23619
- return C === 45 ? (t.consume(C), f) : n(C);
23618
+ function c(k) {
23619
+ return k === 45 ? (t.consume(k), f) : n(k);
23620
23620
  }
23621
- function d(C) {
23622
- return C === null ? n(C) : C === 45 ? (t.consume(C), h) : pe(C) ? (s = d, j(C)) : (t.consume(C), d);
23621
+ function d(k) {
23622
+ return k === null ? n(k) : k === 45 ? (t.consume(k), h) : pe(k) ? (s = d, j(k)) : (t.consume(k), d);
23623
23623
  }
23624
- function h(C) {
23625
- return C === 45 ? (t.consume(C), f) : d(C);
23624
+ function h(k) {
23625
+ return k === 45 ? (t.consume(k), f) : d(k);
23626
23626
  }
23627
- function f(C) {
23628
- return C === 62 ? B(C) : C === 45 ? h(C) : d(C);
23627
+ function f(k) {
23628
+ return k === 62 ? B(k) : k === 45 ? h(k) : d(k);
23629
23629
  }
23630
- function y(C) {
23630
+ function y(k) {
23631
23631
  const W = "CDATA[";
23632
- return C === W.charCodeAt(a++) ? (t.consume(C), a === W.length ? m : y) : n(C);
23632
+ return k === W.charCodeAt(a++) ? (t.consume(k), a === W.length ? m : y) : n(k);
23633
23633
  }
23634
- function m(C) {
23635
- return C === null ? n(C) : C === 93 ? (t.consume(C), v) : pe(C) ? (s = m, j(C)) : (t.consume(C), m);
23634
+ function m(k) {
23635
+ return k === null ? n(k) : k === 93 ? (t.consume(k), v) : pe(k) ? (s = m, j(k)) : (t.consume(k), m);
23636
23636
  }
23637
- function v(C) {
23638
- return C === 93 ? (t.consume(C), g) : m(C);
23637
+ function v(k) {
23638
+ return k === 93 ? (t.consume(k), g) : m(k);
23639
23639
  }
23640
- function g(C) {
23641
- return C === 62 ? B(C) : C === 93 ? (t.consume(C), g) : m(C);
23640
+ function g(k) {
23641
+ return k === 62 ? B(k) : k === 93 ? (t.consume(k), g) : m(k);
23642
23642
  }
23643
- function A(C) {
23644
- return C === null || C === 62 ? B(C) : pe(C) ? (s = A, j(C)) : (t.consume(C), A);
23643
+ function A(k) {
23644
+ return k === null || k === 62 ? B(k) : pe(k) ? (s = A, j(k)) : (t.consume(k), A);
23645
23645
  }
23646
- function O(C) {
23647
- return C === null ? n(C) : C === 63 ? (t.consume(C), E) : pe(C) ? (s = O, j(C)) : (t.consume(C), O);
23646
+ function O(k) {
23647
+ return k === null ? n(k) : k === 63 ? (t.consume(k), E) : pe(k) ? (s = O, j(k)) : (t.consume(k), O);
23648
23648
  }
23649
- function E(C) {
23650
- return C === 62 ? B(C) : O(C);
23649
+ function E(k) {
23650
+ return k === 62 ? B(k) : O(k);
23651
23651
  }
23652
- function S(C) {
23653
- return Un(C) ? (t.consume(C), b) : n(C);
23652
+ function S(k) {
23653
+ return Un(k) ? (t.consume(k), b) : n(k);
23654
23654
  }
23655
- function b(C) {
23656
- return C === 45 || on(C) ? (t.consume(C), b) : w(C);
23655
+ function b(k) {
23656
+ return k === 45 || on(k) ? (t.consume(k), b) : w(k);
23657
23657
  }
23658
- function w(C) {
23659
- return pe(C) ? (s = w, j(C)) : Ne(C) ? (t.consume(C), w) : B(C);
23658
+ function w(k) {
23659
+ return pe(k) ? (s = w, j(k)) : Ne(k) ? (t.consume(k), w) : B(k);
23660
23660
  }
23661
- function x(C) {
23662
- return C === 45 || on(C) ? (t.consume(C), x) : C === 47 || C === 62 || zt(C) ? R(C) : n(C);
23661
+ function x(k) {
23662
+ return k === 45 || on(k) ? (t.consume(k), x) : k === 47 || k === 62 || zt(k) ? R(k) : n(k);
23663
23663
  }
23664
- function R(C) {
23665
- return C === 47 ? (t.consume(C), B) : C === 58 || C === 95 || Un(C) ? (t.consume(C), D) : pe(C) ? (s = R, j(C)) : Ne(C) ? (t.consume(C), R) : B(C);
23664
+ function R(k) {
23665
+ return k === 47 ? (t.consume(k), B) : k === 58 || k === 95 || Un(k) ? (t.consume(k), D) : pe(k) ? (s = R, j(k)) : Ne(k) ? (t.consume(k), R) : B(k);
23666
23666
  }
23667
- function D(C) {
23668
- return C === 45 || C === 46 || C === 58 || C === 95 || on(C) ? (t.consume(C), D) : L(C);
23667
+ function D(k) {
23668
+ return k === 45 || k === 46 || k === 58 || k === 95 || on(k) ? (t.consume(k), D) : L(k);
23669
23669
  }
23670
- function L(C) {
23671
- return C === 61 ? (t.consume(C), I) : pe(C) ? (s = L, j(C)) : Ne(C) ? (t.consume(C), L) : R(C);
23670
+ function L(k) {
23671
+ return k === 61 ? (t.consume(k), I) : pe(k) ? (s = L, j(k)) : Ne(k) ? (t.consume(k), L) : R(k);
23672
23672
  }
23673
- function I(C) {
23674
- return C === null || C === 60 || C === 61 || C === 62 || C === 96 ? n(C) : C === 34 || C === 39 ? (t.consume(C), i = C, F) : pe(C) ? (s = I, j(C)) : Ne(C) ? (t.consume(C), I) : (t.consume(C), N);
23673
+ function I(k) {
23674
+ return k === null || k === 60 || k === 61 || k === 62 || k === 96 ? n(k) : k === 34 || k === 39 ? (t.consume(k), i = k, F) : pe(k) ? (s = I, j(k)) : Ne(k) ? (t.consume(k), I) : (t.consume(k), N);
23675
23675
  }
23676
- function F(C) {
23677
- return C === i ? (t.consume(C), i = void 0, T) : C === null ? n(C) : pe(C) ? (s = F, j(C)) : (t.consume(C), F);
23676
+ function F(k) {
23677
+ return k === i ? (t.consume(k), i = void 0, T) : k === null ? n(k) : pe(k) ? (s = F, j(k)) : (t.consume(k), F);
23678
23678
  }
23679
- function N(C) {
23680
- return C === null || C === 34 || C === 39 || C === 60 || C === 61 || C === 96 ? n(C) : C === 47 || C === 62 || zt(C) ? R(C) : (t.consume(C), N);
23679
+ function N(k) {
23680
+ return k === null || k === 34 || k === 39 || k === 60 || k === 61 || k === 96 ? n(k) : k === 47 || k === 62 || zt(k) ? R(k) : (t.consume(k), N);
23681
23681
  }
23682
- function T(C) {
23683
- return C === 47 || C === 62 || zt(C) ? R(C) : n(C);
23682
+ function T(k) {
23683
+ return k === 47 || k === 62 || zt(k) ? R(k) : n(k);
23684
23684
  }
23685
- function B(C) {
23686
- return C === 62 ? (t.consume(C), t.exit("htmlTextData"), t.exit("htmlText"), e) : n(C);
23685
+ function B(k) {
23686
+ return k === 62 ? (t.consume(k), t.exit("htmlTextData"), t.exit("htmlText"), e) : n(k);
23687
23687
  }
23688
- function j(C) {
23689
- return t.exit("htmlTextData"), t.enter("lineEnding"), t.consume(C), t.exit("lineEnding"), Y;
23688
+ function j(k) {
23689
+ return t.exit("htmlTextData"), t.enter("lineEnding"), t.consume(k), t.exit("lineEnding"), Y;
23690
23690
  }
23691
- function Y(C) {
23692
- return Ne(C) ? Qe(t, q, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(C) : q(C);
23691
+ function Y(k) {
23692
+ return Ne(k) ? Qe(t, q, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(k) : q(k);
23693
23693
  }
23694
- function q(C) {
23695
- return t.enter("htmlTextData"), s(C);
23694
+ function q(k) {
23695
+ return t.enter("htmlTextData"), s(k);
23696
23696
  }
23697
23697
  }
23698
23698
  const Td = {
@@ -24313,7 +24313,7 @@ function O9(t, e, n) {
24313
24313
  function w(L, I) {
24314
24314
  return F;
24315
24315
  function F(N, T, B) {
24316
- let j, Y, q, C;
24316
+ let j, Y, q, k;
24317
24317
  return Array.isArray(N) ? (
24318
24318
  /* c8 ignore next 1 */
24319
24319
  U(N)
@@ -24342,7 +24342,7 @@ function O9(t, e, n) {
24342
24342
  function P(K) {
24343
24343
  return re;
24344
24344
  function re(ue) {
24345
- return C = R(), q = K, K.partial || (u.currentConstruct = K), K.name && u.parser.constructs.disable.null.includes(K.name) ? G() : K.tokenize.call(
24345
+ return k = R(), q = K, K.partial || (u.currentConstruct = K), K.name && u.parser.constructs.disable.null.includes(K.name) ? G() : K.tokenize.call(
24346
24346
  // If we do have fields, create an object w/ `context` as its
24347
24347
  // prototype.
24348
24348
  // This allows a “live binding”, which is needed for `interrupt`.
@@ -24354,10 +24354,10 @@ function O9(t, e, n) {
24354
24354
  }
24355
24355
  }
24356
24356
  function Q(K) {
24357
- return L(q, C), T;
24357
+ return L(q, k), T;
24358
24358
  }
24359
24359
  function G(K) {
24360
- return C.restore(), ++Y < j.length ? P(j[Y]) : B;
24360
+ return k.restore(), ++Y < j.length ? P(j[Y]) : B;
24361
24361
  }
24362
24362
  }
24363
24363
  }
@@ -24601,7 +24601,7 @@ function B9(t) {
24601
24601
  listUnordered: l(),
24602
24602
  paragraph: l(),
24603
24603
  referenceString: Q,
24604
- resourceDestinationString: C,
24604
+ resourceDestinationString: k,
24605
24605
  resourceTitleString: W,
24606
24606
  resource: U,
24607
24607
  setextHeading: l(x),
@@ -24875,7 +24875,7 @@ function B9(t) {
24875
24875
  } else
24876
24876
  fe.alt = X;
24877
24877
  }
24878
- function C() {
24878
+ function k() {
24879
24879
  const z = this.resume(), X = this.stack[this.stack.length - 1];
24880
24880
  X.url = z;
24881
24881
  }
@@ -27200,7 +27200,7 @@ function lT(t, e) {
27200
27200
  components: i,
27201
27201
  ignoreInvalidStyle: !0,
27202
27202
  jsx: p,
27203
- jsxs: k,
27203
+ jsxs: C,
27204
27204
  passKeys: !0,
27205
27205
  passNode: !0
27206
27206
  });
@@ -27292,22 +27292,22 @@ var pT = function(e) {
27292
27292
  var w = Array.from(new Map(g.map(function(x) {
27293
27293
  return [x.id, x];
27294
27294
  })).values());
27295
- return /* @__PURE__ */ p(Ge, { className: "yst-mb-4", children: /* @__PURE__ */ p(Ge.Content, { className: "yst-p-4", children: /* @__PURE__ */ k("details", { className: "yst-group", children: [
27296
- /* @__PURE__ */ k("summary", { className: "yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden", children: [
27297
- /* @__PURE__ */ k("div", { className: "yst-flex-1", children: [
27295
+ return /* @__PURE__ */ p(Ge, { className: "yst-mb-4", children: /* @__PURE__ */ p(Ge.Content, { className: "yst-p-4", children: /* @__PURE__ */ C("details", { className: "yst-group", children: [
27296
+ /* @__PURE__ */ C("summary", { className: "yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden", children: [
27297
+ /* @__PURE__ */ C("div", { className: "yst-flex-1", children: [
27298
27298
  /* @__PURE__ */ p($e, { size: "3", className: "yst-mb-2", children: n.query }),
27299
- /* @__PURE__ */ k("div", { className: "yst-flex yst-gap-4 yst-text-sm yst-text-gray-600", children: [
27300
- g.length > 0 && /* @__PURE__ */ k("span", { children: [
27299
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-gap-4 yst-text-sm yst-text-gray-600", children: [
27300
+ g.length > 0 && /* @__PURE__ */ C("span", { children: [
27301
27301
  w.length,
27302
27302
  " brand",
27303
27303
  w.length !== 1 ? "s" : ""
27304
27304
  ] }),
27305
- A.length > 0 && /* @__PURE__ */ k("span", { children: [
27305
+ A.length > 0 && /* @__PURE__ */ C("span", { children: [
27306
27306
  A.length,
27307
27307
  " citation",
27308
27308
  A.length !== 1 ? "s" : ""
27309
27309
  ] }),
27310
- O.length > 0 && /* @__PURE__ */ k("span", { children: [
27310
+ O.length > 0 && /* @__PURE__ */ C("span", { children: [
27311
27311
  O.length,
27312
27312
  " sentiment",
27313
27313
  O.length !== 1 ? "s" : ""
@@ -27316,9 +27316,9 @@ var pT = function(e) {
27316
27316
  ] }),
27317
27317
  /* @__PURE__ */ p("div", { className: "yst-text-gray-500 group-open:yst-rotate-90 yst-transition-transform", children: "▶" })
27318
27318
  ] }),
27319
- /* @__PURE__ */ k("div", { className: "yst-mt-6 yst-flex yst-flex-col yst-gap-6", children: [
27320
- /* @__PURE__ */ k("details", { className: "yst-border-t yst-pt-4", children: [
27321
- /* @__PURE__ */ k("summary", { className: "yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2", children: [
27319
+ /* @__PURE__ */ C("div", { className: "yst-mt-6 yst-flex yst-flex-col yst-gap-6", children: [
27320
+ /* @__PURE__ */ C("details", { className: "yst-border-t yst-pt-4", children: [
27321
+ /* @__PURE__ */ C("summary", { className: "yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2", children: [
27322
27322
  /* @__PURE__ */ p("span", { children: "AI Response" }),
27323
27323
  /* @__PURE__ */ p("span", { className: "yst-text-gray-500", children: "▶" })
27324
27324
  ] }),
@@ -27326,17 +27326,17 @@ var pT = function(e) {
27326
27326
  height: "".concat(f, "px")
27327
27327
  } : void 0, children: /* @__PURE__ */ p(aT, { children: S }) }) }) })
27328
27328
  ] }),
27329
- g.length > 0 && /* @__PURE__ */ k("details", { className: "yst-border-t yst-pt-4", children: [
27330
- /* @__PURE__ */ k("summary", { className: "yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2", children: [
27331
- /* @__PURE__ */ k("span", { children: [
27329
+ g.length > 0 && /* @__PURE__ */ C("details", { className: "yst-border-t yst-pt-4", children: [
27330
+ /* @__PURE__ */ C("summary", { className: "yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2", children: [
27331
+ /* @__PURE__ */ C("span", { children: [
27332
27332
  "Brands (",
27333
27333
  w.length,
27334
27334
  ")"
27335
27335
  ] }),
27336
27336
  /* @__PURE__ */ p("span", { className: "yst-text-gray-500", children: "▶" })
27337
27337
  ] }),
27338
- /* @__PURE__ */ k("div", { className: "yst-mt-2 yst-space-y-4", children: [
27339
- /* @__PURE__ */ k("div", { children: [
27338
+ /* @__PURE__ */ C("div", { className: "yst-mt-2 yst-space-y-4", children: [
27339
+ /* @__PURE__ */ C("div", { children: [
27340
27340
  /* @__PURE__ */ p("p", { className: "yst-mb-2 yst-text-sm yst-font-medium", children: "Mentioned brands:" }),
27341
27341
  /* @__PURE__ */ p("div", { className: "yst-flex yst-flex-wrap yst-gap-2", children: w.map(function(x) {
27342
27342
  return /* @__PURE__ */ p(nn, { variant: x.isSelf ? "info" : "plain", className: "yst-cursor-pointer yst-transition-colors ".concat(E === x.id ? "yst-ring-2 yst-ring-yellow-400" : ""), onMouseEnter: function() {
@@ -27348,12 +27348,12 @@ var pT = function(e) {
27348
27348
  }, children: x.name }, x.id);
27349
27349
  }) })
27350
27350
  ] }),
27351
- /* @__PURE__ */ k("div", { children: [
27351
+ /* @__PURE__ */ C("div", { children: [
27352
27352
  /* @__PURE__ */ p("p", { className: "yst-mb-2 yst-text-sm yst-font-medium", children: "Brand ranking:" }),
27353
27353
  /* @__PURE__ */ p("ol", { className: "yst-list-decimal yst-list-inside yst-space-y-3", children: g.sort(function(x, R) {
27354
27354
  return x.rank - R.rank;
27355
27355
  }).map(function(x) {
27356
- return /* @__PURE__ */ k("li", { className: "yst-text-sm", children: [
27356
+ return /* @__PURE__ */ C("li", { className: "yst-text-sm", children: [
27357
27357
  /* @__PURE__ */ p(nn, { variant: x.isSelf ? "info" : "plain", className: "yst-cursor-pointer yst-transition-colors ".concat(E === x.id ? "yst-ring-2 yst-ring-yellow-400" : ""), onMouseEnter: function() {
27358
27358
  return s(x.id);
27359
27359
  }, onMouseLeave: function() {
@@ -27361,7 +27361,7 @@ var pT = function(e) {
27361
27361
  }, onClick: function() {
27362
27362
  return b(x.id);
27363
27363
  }, children: x.name }),
27364
- /* @__PURE__ */ k("p", { className: "yst-ml-6 yst-mt-1 yst-text-sm yst-text-gray-600 yst-italic", children: [
27364
+ /* @__PURE__ */ C("p", { className: "yst-ml-6 yst-mt-1 yst-text-sm yst-text-gray-600 yst-italic", children: [
27365
27365
  '"',
27366
27366
  x.context,
27367
27367
  '"'
@@ -27371,17 +27371,17 @@ var pT = function(e) {
27371
27371
  ] })
27372
27372
  ] })
27373
27373
  ] }),
27374
- A.length > 0 && /* @__PURE__ */ k("details", { className: "yst-border-t yst-pt-4", children: [
27375
- /* @__PURE__ */ k("summary", { className: "yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2", children: [
27376
- /* @__PURE__ */ k("span", { children: [
27374
+ A.length > 0 && /* @__PURE__ */ C("details", { className: "yst-border-t yst-pt-4", children: [
27375
+ /* @__PURE__ */ C("summary", { className: "yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2", children: [
27376
+ /* @__PURE__ */ C("span", { children: [
27377
27377
  "Citations (",
27378
27378
  A.length,
27379
27379
  ")"
27380
27380
  ] }),
27381
27381
  /* @__PURE__ */ p("span", { className: "yst-text-gray-500", children: "▶" })
27382
27382
  ] }),
27383
- /* @__PURE__ */ p("div", { className: "yst-mt-2", children: /* @__PURE__ */ k(le, { children: [
27384
- /* @__PURE__ */ p(le.Head, { children: /* @__PURE__ */ k(le.Row, { children: [
27383
+ /* @__PURE__ */ p("div", { className: "yst-mt-2", children: /* @__PURE__ */ C(le, { children: [
27384
+ /* @__PURE__ */ p(le.Head, { children: /* @__PURE__ */ C(le.Row, { children: [
27385
27385
  /* @__PURE__ */ p(le.Header, { children: "Rank" }),
27386
27386
  /* @__PURE__ */ p(le.Header, { children: "Domain" }),
27387
27387
  /* @__PURE__ */ p(le.Header, { children: "URL" }),
@@ -27390,8 +27390,8 @@ var pT = function(e) {
27390
27390
  /* @__PURE__ */ p(le.Body, { children: A.sort(function(x, R) {
27391
27391
  return x.rank - R.rank;
27392
27392
  }).map(function(x, R) {
27393
- return /* @__PURE__ */ k(le.Row, { children: [
27394
- /* @__PURE__ */ k(le.Cell, { children: [
27393
+ return /* @__PURE__ */ C(le.Row, { children: [
27394
+ /* @__PURE__ */ C(le.Cell, { children: [
27395
27395
  "#",
27396
27396
  x.rank
27397
27397
  ] }),
@@ -27410,9 +27410,9 @@ var pT = function(e) {
27410
27410
  }) })
27411
27411
  ] }) })
27412
27412
  ] }),
27413
- O.length > 0 && /* @__PURE__ */ k("details", { className: "yst-border-t yst-pt-4", children: [
27414
- /* @__PURE__ */ k("summary", { className: "yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2", children: [
27415
- /* @__PURE__ */ k("span", { children: [
27413
+ O.length > 0 && /* @__PURE__ */ C("details", { className: "yst-border-t yst-pt-4", children: [
27414
+ /* @__PURE__ */ C("summary", { className: "yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2", children: [
27415
+ /* @__PURE__ */ C("span", { children: [
27416
27416
  "Sentiment Analysis (",
27417
27417
  O.length,
27418
27418
  ")"
@@ -27420,21 +27420,21 @@ var pT = function(e) {
27420
27420
  /* @__PURE__ */ p("span", { className: "yst-text-gray-500", children: "▶" })
27421
27421
  ] }),
27422
27422
  /* @__PURE__ */ p("div", { className: "yst-mt-2 yst-flex yst-flex-col yst-gap-4", children: O.map(function(x) {
27423
- return /* @__PURE__ */ k("div", { className: "yst-rounded-lg yst-border yst-border-gray-300 yst-p-4", children: [
27424
- /* @__PURE__ */ k("div", { className: "yst-flex yst-items-center yst-gap-3 yst-mb-3", children: [
27425
- /* @__PURE__ */ k("div", { className: "yst-flex yst-items-center yst-gap-2", children: [
27423
+ return /* @__PURE__ */ C("div", { className: "yst-rounded-lg yst-border yst-border-gray-300 yst-p-4", children: [
27424
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-items-center yst-gap-3 yst-mb-3", children: [
27425
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-items-center yst-gap-2", children: [
27426
27426
  /* @__PURE__ */ p("span", { className: "yst-text-sm yst-font-semibold", children: "Score:" }),
27427
27427
  /* @__PURE__ */ p(nn, { variant: x.score > 0.3 ? "success" : x.score < -0.3 ? "error" : "plain", children: x.score.toFixed(2) })
27428
27428
  ] }),
27429
- /* @__PURE__ */ k("div", { className: "yst-flex yst-items-center yst-gap-2", children: [
27429
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-items-center yst-gap-2", children: [
27430
27430
  /* @__PURE__ */ p("span", { className: "yst-text-sm yst-font-semibold", children: "Confidence:" }),
27431
- /* @__PURE__ */ k(nn, { variant: "plain", children: [
27431
+ /* @__PURE__ */ C(nn, { variant: "plain", children: [
27432
27432
  (x.confidence * 100).toFixed(0),
27433
27433
  "%"
27434
27434
  ] })
27435
27435
  ] })
27436
27436
  ] }),
27437
- x.brands.length > 0 && /* @__PURE__ */ k("div", { className: "yst-mb-3", children: [
27437
+ x.brands.length > 0 && /* @__PURE__ */ C("div", { className: "yst-mb-3", children: [
27438
27438
  /* @__PURE__ */ p("span", { className: "yst-text-sm yst-font-semibold yst-mb-1 yst-block", children: "Brands:" }),
27439
27439
  /* @__PURE__ */ p("div", { className: "yst-flex yst-flex-wrap yst-gap-1", children: x.brands.map(function(R) {
27440
27440
  return /* @__PURE__ */ p(nn, { variant: R.isSelf ? "info" : "plain", className: "yst-cursor-pointer yst-transition-colors ".concat(E === R.id ? "yst-ring-2 yst-ring-yellow-400" : ""), onMouseEnter: function() {
@@ -27446,10 +27446,10 @@ var pT = function(e) {
27446
27446
  }, children: R.name }, R.id);
27447
27447
  }) })
27448
27448
  ] }),
27449
- x.keywords.length > 0 && /* @__PURE__ */ k("div", { children: [
27449
+ x.keywords.length > 0 && /* @__PURE__ */ C("div", { children: [
27450
27450
  /* @__PURE__ */ p("span", { className: "yst-text-sm yst-font-semibold yst-mb-1 yst-block", children: "Keywords:" }),
27451
27451
  /* @__PURE__ */ p("div", { className: "yst-flex yst-flex-wrap yst-gap-2", children: x.keywords.map(function(R, D) {
27452
- return /* @__PURE__ */ k("div", { className: "yst-flex yst-items-center yst-gap-1 yst-rounded yst-bg-gray-100 yst-px-2 yst-py-1", children: [
27452
+ return /* @__PURE__ */ C("div", { className: "yst-flex yst-items-center yst-gap-1 yst-rounded yst-bg-gray-100 yst-px-2 yst-py-1", children: [
27453
27453
  /* @__PURE__ */ p("span", { className: "yst-text-sm", children: R.keyword }),
27454
27454
  /* @__PURE__ */ p(nn, { variant: R.isPositive ? "success" : R.isNegative ? "error" : "plain", children: R.sentiment.toFixed(2) })
27455
27455
  ] }, D);
@@ -27457,6 +27457,13 @@ var pT = function(e) {
27457
27457
  ] })
27458
27458
  ] }, x.id);
27459
27459
  }) })
27460
+ ] }),
27461
+ n.rawResponse && /* @__PURE__ */ C("details", { className: "yst-border-t yst-pt-4", children: [
27462
+ /* @__PURE__ */ C("summary", { className: "yst-flex yst-items-center yst-justify-between yst-cursor-pointer yst-list-none [&::-webkit-details-marker]:yst-hidden yst-font-semibold yst-mb-2", children: [
27463
+ /* @__PURE__ */ p("span", { children: "Raw Response" }),
27464
+ /* @__PURE__ */ p("span", { className: "yst-text-gray-500", children: "▶" })
27465
+ ] }),
27466
+ /* @__PURE__ */ p("div", { className: "yst-mt-2", children: /* @__PURE__ */ p("pre", { className: "yst-rounded-lg yst-border yst-border-gray-300 yst-bg-gray-50 yst-p-4 yst-text-xs yst-overflow-x-auto yst-max-h-96 yst-overflow-y-auto", children: JSON.stringify(n.rawResponse, null, 2) }) })
27460
27467
  ] })
27461
27468
  ] })
27462
27469
  ] }) }) });
@@ -27478,14 +27485,14 @@ var pT = function(e) {
27478
27485
  }
27479
27486
  }
27480
27487
  }), u = l.data, c = l.isLoading, d = o || c, h = u && u.status === tr.completed;
27481
- return d ? /* @__PURE__ */ p(ha, {}) : h ? /* @__PURE__ */ k(Ge, { children: [
27488
+ return d ? /* @__PURE__ */ p(ha, {}) : h ? /* @__PURE__ */ C(Ge, { children: [
27482
27489
  /* @__PURE__ */ p(wc, { title: "Scan details", children: /* @__PURE__ */ p(de, { variant: "secondary", onClick: function() {
27483
27490
  return i("/brands/".concat(n, "/analysis/").concat(r));
27484
27491
  }, children: "Back to analysis results" }) }),
27485
27492
  u.scans.map(function(f) {
27486
27493
  return /* @__PURE__ */ p(mT, { brandId: n, analysisId: r, scanId: f.id, provider: f.aiProvider ? String(f.aiProvider) : "Unknown", scanFinishedAt: f.finishedAt, brandName: s == null ? void 0 : s.name }, f.id);
27487
27494
  })
27488
- ] }) : /* @__PURE__ */ k(Ge, { children: [
27495
+ ] }) : /* @__PURE__ */ C(Ge, { children: [
27489
27496
  /* @__PURE__ */ p(wc, { title: "Scan details" }),
27490
27497
  /* @__PURE__ */ p(Ge.Content, { children: /* @__PURE__ */ p("p", { children: "No completed analysis found. Please run an analysis first." }) })
27491
27498
  ] });
@@ -27502,8 +27509,8 @@ var pT = function(e) {
27502
27509
  if (c)
27503
27510
  return /* @__PURE__ */ p(ha, {});
27504
27511
  var d = (u == null ? void 0 : u.queryResults) || [];
27505
- return d.length === 0 ? null : /* @__PURE__ */ p(Ge, { className: "yst-mb-4", children: /* @__PURE__ */ k(Ge.Content, { children: [
27506
- /* @__PURE__ */ k("p", { className: "yst-mb-8", children: [
27512
+ return d.length === 0 ? null : /* @__PURE__ */ p(Ge, { className: "yst-mb-4", children: /* @__PURE__ */ C(Ge.Content, { children: [
27513
+ /* @__PURE__ */ C("p", { className: "yst-mb-8", children: [
27507
27514
  o,
27508
27515
  " - Scan performed on:",
27509
27516
  " ",
@@ -27732,7 +27739,7 @@ var TT = function(e) {
27732
27739
  n && u("");
27733
27740
  }, [n]), /* @__PURE__ */ p(ml, { isOpen: n, onClose: r, onConfirm: function() {
27734
27741
  d();
27735
- }, isLoading: h, disabled: l !== "DELETE ALL", title: "Delete all data?", description: /* @__PURE__ */ k(Te, { children: [
27742
+ }, isLoading: h, disabled: l !== "DELETE ALL", title: "Delete all data?", description: /* @__PURE__ */ C(Te, { children: [
27736
27743
  /* @__PURE__ */ p("p", { children: "This will permanently erase all brands, analysis results, and queries from your account." }),
27737
27744
  /* @__PURE__ */ p("p", { children: "This action cannot be undone." }),
27738
27745
  /* @__PURE__ */ p($r, { id: "delete-all-confirmation", label: "To confirm, please type DELETE ALL:", value: l, onChange: function(f) {
@@ -27927,7 +27934,7 @@ var DT = function(e) {
27927
27934
  f({
27928
27935
  brandId: r
27929
27936
  });
27930
- }, isLoading: y, disabled: c.toLowerCase() !== (a == null ? void 0 : a.toLowerCase()), title: "Delete brand?", description: /* @__PURE__ */ k(Te, { children: [
27937
+ }, isLoading: y, disabled: c.toLowerCase() !== (a == null ? void 0 : a.toLowerCase()), title: "Delete brand?", description: /* @__PURE__ */ C(Te, { children: [
27931
27938
  /* @__PURE__ */ p("p", { children: "This will permanently delete all data associated with this brand, including past analyses and query history." }),
27932
27939
  /* @__PURE__ */ p("p", { children: "This action cannot be undone." }),
27933
27940
  /* @__PURE__ */ p($r, { id: "delete-modal-brand-name-confirmation", label: "To confirm, please type your brand name ".concat(a, ":"), value: c, onChange: function(m) {
@@ -28143,7 +28150,7 @@ var QT = function(e) {
28143
28150
  mutation: {
28144
28151
  onMutate: function() {
28145
28152
  var N = Ry(/* @__PURE__ */ Qa().m(function B(j) {
28146
- var Y, q, C;
28153
+ var Y, q, k;
28147
28154
  return Qa().w(function(W) {
28148
28155
  for (; ; ) switch (W.n) {
28149
28156
  case 0:
@@ -28151,7 +28158,7 @@ var QT = function(e) {
28151
28158
  queryKey: zn()
28152
28159
  });
28153
28160
  case 1:
28154
- return C = O.getQueryData(zn()), O.setQueryData(zn(), function(U) {
28161
+ return k = O.getQueryData(zn()), O.setQueryData(zn(), function(U) {
28155
28162
  var P, Q;
28156
28163
  return U && xr(xr({}, U), {}, {
28157
28164
  data: xr(xr({}, U.data), {}, {
@@ -28165,7 +28172,7 @@ var QT = function(e) {
28165
28172
  })
28166
28173
  });
28167
28174
  }), W.a(2, {
28168
- previous: C
28175
+ previous: k
28169
28176
  });
28170
28177
  }
28171
28178
  }, B);
@@ -28231,23 +28238,23 @@ var QT = function(e) {
28231
28238
  } else
28232
28239
  R(!1);
28233
28240
  }, L = Number(S == null ? void 0 : S.maxNumberOfActiveBrands) - Number(S == null ? void 0 : S.numberOfActiveBrands) > 0 || !!(i != null && (n = i.settings) !== null && n !== void 0 && n.enableAutomaticAnalysis), I = H0(i == null ? void 0 : i.firstNextAnalysisOpportunity), F = (i == null ? void 0 : i.setupStatus) === "pendingQuerySelection";
28234
- return /* @__PURE__ */ k(Te, { children: [
28235
- /* @__PURE__ */ k("div", { className: ae("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", {
28241
+ return /* @__PURE__ */ C(Te, { children: [
28242
+ /* @__PURE__ */ C("div", { className: ae("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", {
28236
28243
  "yst-border-b-[1px] yst-border-b-slate-200": !a
28237
28244
  }), children: [
28238
28245
  /* @__PURE__ */ p(Dv, { id: "toggle-brand-".concat(i == null ? void 0 : i.id), checked: i == null || (r = i.settings) === null || r === void 0 ? void 0 : r.enableAutomaticAnalysis, screenReaderLabel: "Enable or disable automatic analysis for this brand", onChange: D, disabled: (i == null ? void 0 : i.id) === "loading" || x }),
28239
- /* @__PURE__ */ k("div", { className: "yst-font-medium", children: [
28246
+ /* @__PURE__ */ C("div", { className: "yst-font-medium", children: [
28240
28247
  (i == null ? void 0 : i.id) === "loading" ? /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-32" }) : i == null ? void 0 : i.name,
28241
28248
  F && /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p(qn, { variant: "primary", onClick: function() {
28242
28249
  i.id ? (y(i.id), h("/setup/".concat(i.id, "/queries"))) : console.error("Brand ID is missing.");
28243
28250
  }, children: "Finish setup" }) }),
28244
- (i == null ? void 0 : i.nextScheduledAnalysis) && /* @__PURE__ */ k("div", { className: "yst-font-normal yst-italic yst-text-slate-500", children: [
28251
+ (i == null ? void 0 : i.nextScheduledAnalysis) && /* @__PURE__ */ C("div", { className: "yst-font-normal yst-italic yst-text-slate-500", children: [
28245
28252
  "Next analysis:",
28246
28253
  " ",
28247
28254
  nc(i.nextScheduledAnalysis)
28248
28255
  ] })
28249
28256
  ] }),
28250
- /* @__PURE__ */ p("div", { className: "yst-ml-auto yst-flex yst-flex-row yst-items-center yst-justify-end yst-gap-2 yst-text-slate-800", children: (i == null ? void 0 : i.id) === "loading" ? /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-24" }) : /* @__PURE__ */ k(de, { size: "small", variant: "tertiary", className: "yst-text-red-600 hover:yst-text-red-700", onClick: function() {
28257
+ /* @__PURE__ */ p("div", { className: "yst-ml-auto yst-flex yst-flex-row yst-items-center yst-justify-end yst-gap-2 yst-text-slate-800", children: (i == null ? void 0 : i.id) === "loading" ? /* @__PURE__ */ p(Je, { className: "yst-h-6 yst-w-24" }) : /* @__PURE__ */ C(de, { size: "small", variant: "tertiary", className: "yst-text-red-600 hover:yst-text-red-700", onClick: function() {
28251
28258
  i != null && i.id && s(i.id);
28252
28259
  }, disabled: (i == null ? void 0 : i.id) === "loading", children: [
28253
28260
  /* @__PURE__ */ p(td, {}),
@@ -28260,13 +28267,13 @@ var QT = function(e) {
28260
28267
  "yst-mx-auto yst-max-w-xl": L
28261
28268
  }), children: L ? /* @__PURE__ */ p(ee.Panel, { children: I ? (
28262
28269
  // 1. Show confirmation if analysis is scheduled soon
28263
- /* @__PURE__ */ k(Te, { children: [
28270
+ /* @__PURE__ */ C(Te, { children: [
28264
28271
  /* @__PURE__ */ p(ee.Container.Header, { className: "yst-mb-3 yst-w-full", children: /* @__PURE__ */ p(ee.Title, { as: "h3", className: "yst-text-lg yst-font-medium", children: "Start brand analysis now?" }) }),
28265
- /* @__PURE__ */ k(ee.Container.Content, { className: "yst-mb-4 yst-space-y-3", children: [
28272
+ /* @__PURE__ */ C(ee.Container.Content, { className: "yst-mb-4 yst-space-y-3", children: [
28266
28273
  /* @__PURE__ */ p("p", { children: "Activating this brand will immediately start a new analysis." }),
28267
28274
  /* @__PURE__ */ p("p", { children: "This will use one of your weekly analyses included in your subscription." })
28268
28275
  ] }),
28269
- /* @__PURE__ */ k(ee.Container.Footer, { className: "yst-mt-3 yst-flex yst-justify-end yst-gap-2", children: [
28276
+ /* @__PURE__ */ C(ee.Container.Footer, { className: "yst-mt-3 yst-flex yst-justify-end yst-gap-2", children: [
28270
28277
  /* @__PURE__ */ p(de, { variant: "secondary", onClick: function() {
28271
28278
  return A(!1);
28272
28279
  }, children: "Cancel" }),
@@ -28277,11 +28284,11 @@ var QT = function(e) {
28277
28284
  ] })
28278
28285
  ) : (
28279
28286
  // 2. Alert user that automatic analysis is enabled
28280
- /* @__PURE__ */ k(Te, { children: [
28287
+ /* @__PURE__ */ C(Te, { children: [
28281
28288
  /* @__PURE__ */ p(ee.Container.Header, { className: "yst-mb-3 yst-w-full", children: /* @__PURE__ */ p(ee.Title, { as: "h3", className: "yst-text-lg yst-font-medium", children: "Automatic analysis enabled" }) }),
28282
- /* @__PURE__ */ k(ee.Container.Content, { className: "yst-mb-4 yst-space-y-3", children: [
28289
+ /* @__PURE__ */ C(ee.Container.Content, { className: "yst-mb-4 yst-space-y-3", children: [
28283
28290
  /* @__PURE__ */ p("p", { children: "You've turned on the weekly automatic analysis for this brand." }),
28284
- /* @__PURE__ */ k("p", { children: [
28291
+ /* @__PURE__ */ C("p", { children: [
28285
28292
  "The next analysis will run on",
28286
28293
  " ",
28287
28294
  /* @__PURE__ */ p("span", { className: "yst-font-medium", children: nc(i == null ? void 0 : i.nextScheduledAnalysis) || // fallback if analysis queue failed to trigger
@@ -28293,14 +28300,14 @@ var QT = function(e) {
28293
28300
  return A(!1);
28294
28301
  }, children: "Got it" }) })
28295
28302
  ] })
28296
- ) }) : /* @__PURE__ */ k(ee.Panel, { className: "yst-flex yst-max-w-96 yst-flex-col yst-gap-6", children: [
28303
+ ) }) : /* @__PURE__ */ C(ee.Panel, { className: "yst-flex yst-max-w-96 yst-flex-col yst-gap-6", children: [
28297
28304
  /* @__PURE__ */ p("div", { className: "yst-flex yst-justify-center", children: /* @__PURE__ */ p("div", { className: "yst-flex yst-h-12 yst-w-12 yst-items-center yst-justify-center yst-rounded-full yst-bg-amber-200", children: /* @__PURE__ */ p(c3, { className: "yst-h-6 yst-w-6 yst-text-amber-900" }) }) }),
28298
- /* @__PURE__ */ p("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: /* @__PURE__ */ k("div", { className: "yst-flex-1", children: [
28305
+ /* @__PURE__ */ p("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: /* @__PURE__ */ C("div", { className: "yst-flex-1", children: [
28299
28306
  /* @__PURE__ */ p(ee.Container.Header, { className: "yst-mb-3 yst-w-full", children: /* @__PURE__ */ p(ee.Title, { as: "h3", className: "yst-text-center yst-text-lg yst-font-medium", children: "You've reached your active brand limit" }) }),
28300
28307
  /* @__PURE__ */ p(ee.Container.Content, { children: /* @__PURE__ */ p("p", { className: "yst-text-center", children: "Each subscription lets you activate 1 brand. Add another subscription or deactivate an existing brand to activate this brand." }) })
28301
28308
  ] }) }),
28302
- /* @__PURE__ */ p(ee.Container.Footer, { children: /* @__PURE__ */ k("div", { className: "yst-flex yst-flex-col yst-justify-stretch yst-gap-2", children: [
28303
- d && /* @__PURE__ */ k(de, { variant: "upsell", className: "yst-flex yst-gap-1", onClick: d, children: [
28309
+ /* @__PURE__ */ p(ee.Container.Footer, { children: /* @__PURE__ */ C("div", { className: "yst-flex yst-flex-col yst-justify-stretch yst-gap-2", children: [
28310
+ d && /* @__PURE__ */ C(de, { variant: "upsell", className: "yst-flex yst-gap-1", onClick: d, children: [
28304
28311
  /* @__PURE__ */ p(k0, {}),
28305
28312
  "Add a subscription"
28306
28313
  ] }),
@@ -28380,23 +28387,23 @@ var zy = Bs(Dy || (Dy = _d(["xl:yst-w-1/3"]))), Uy = Bs(By || (By = _d(["xl:yst-
28380
28387
  }), E = O.data, S = E == null ? void 0 : E.find(function(b) {
28381
28388
  return b.id === m;
28382
28389
  });
28383
- return /* @__PURE__ */ k("form", { children: [
28384
- /* @__PURE__ */ k(Ge, { children: [
28390
+ return /* @__PURE__ */ C("form", { children: [
28391
+ /* @__PURE__ */ C(Ge, { children: [
28385
28392
  /* @__PURE__ */ p(wc, { title: "Settings", description: "Manage your brand settings and data. You can update analysis preferences or delete brands from your account." }),
28386
- /* @__PURE__ */ k(Ge.Content, { children: [
28387
- /* @__PURE__ */ k(Hy, { children: [
28388
- /* @__PURE__ */ k(zy, { className: "yst-space-y-2", children: [
28393
+ /* @__PURE__ */ C(Ge.Content, { children: [
28394
+ /* @__PURE__ */ C(Hy, { children: [
28395
+ /* @__PURE__ */ C(zy, { className: "yst-space-y-2", children: [
28389
28396
  /* @__PURE__ */ p($e, { size: "4", children: "Brands" }),
28390
- /* @__PURE__ */ k("p", { children: [
28397
+ /* @__PURE__ */ C("p", { children: [
28391
28398
  "You have",
28392
28399
  " ",
28393
- /* @__PURE__ */ k("b", { className: "yst-font-semibold yst-text-slate-800", children: [
28400
+ /* @__PURE__ */ C("b", { className: "yst-font-semibold yst-text-slate-800", children: [
28394
28401
  (e = A == null ? void 0 : A.activeSubscriptions) !== null && e !== void 0 ? e : "—",
28395
28402
  " subscription(s)"
28396
28403
  ] }),
28397
28404
  ". This gives you up to",
28398
28405
  " ",
28399
- /* @__PURE__ */ k("b", { className: "yst-font-semibold yst-text-slate-800", children: [
28406
+ /* @__PURE__ */ C("b", { className: "yst-font-semibold yst-text-slate-800", children: [
28400
28407
  (n = A == null ? void 0 : A.maxNumberOfActiveBrands) !== null && n !== void 0 ? n : "—",
28401
28408
  " active brand(s)"
28402
28409
  ] }),
@@ -28404,15 +28411,15 @@ var zy = Bs(Dy || (Dy = _d(["xl:yst-w-1/3"]))), Uy = Bs(By || (By = _d(["xl:yst-
28404
28411
  ] }),
28405
28412
  /* @__PURE__ */ p("p", { children: "You can activate or deactivate brands anytime, or permanently delete a brand and all its data." })
28406
28413
  ] }),
28407
- /* @__PURE__ */ k(Uy, { children: [
28408
- E && /* @__PURE__ */ k("p", { className: "yst-flex yst-w-full yst-max-w-2xl yst-flex-1 yst-flex-row yst-items-center yst-justify-start yst-gap-2 yst-border-b-[1px] yst-border-b-slate-200 yst-py-4 yst-font-medium yst-text-slate-800", children: [
28414
+ /* @__PURE__ */ C(Uy, { children: [
28415
+ E && /* @__PURE__ */ C("p", { className: "yst-flex yst-w-full yst-max-w-2xl yst-flex-1 yst-flex-row yst-items-center yst-justify-start yst-gap-2 yst-border-b-[1px] yst-border-b-slate-200 yst-py-4 yst-font-medium yst-text-slate-800", children: [
28409
28416
  "Active brands: ",
28410
28417
  (r = A == null ? void 0 : A.numberOfActiveBrands) !== null && r !== void 0 ? r : "—",
28411
28418
  " of",
28412
28419
  " ",
28413
28420
  (i = A == null ? void 0 : A.maxNumberOfActiveBrands) !== null && i !== void 0 ? i : "—"
28414
28421
  ] }),
28415
- E && E.length === 0 && /* @__PURE__ */ k("p", { className: "yst-mt-4 yst-text-slate-500", children: [
28422
+ E && E.length === 0 && /* @__PURE__ */ C("p", { className: "yst-mt-4 yst-text-slate-500", children: [
28416
28423
  "No brands found. Please",
28417
28424
  " ",
28418
28425
  /* @__PURE__ */ p(qn, { as: Ur, to: "/setup", children: "add a brand" }),
@@ -28430,19 +28437,19 @@ var zy = Bs(Dy || (Dy = _d(["xl:yst-w-1/3"]))), Uy = Bs(By || (By = _d(["xl:yst-
28430
28437
  ] })
28431
28438
  ] }),
28432
28439
  /* @__PURE__ */ p(fa, {}),
28433
- /* @__PURE__ */ k(Hy, { children: [
28434
- /* @__PURE__ */ k(zy, { className: "yst-space-y-2", children: [
28440
+ /* @__PURE__ */ C(Hy, { children: [
28441
+ /* @__PURE__ */ C(zy, { className: "yst-space-y-2", children: [
28435
28442
  /* @__PURE__ */ p($e, { size: "4", children: "Delete all data" }),
28436
28443
  /* @__PURE__ */ p("p", { children: "Permanently delete all brands, analysis results, and query history from your account." })
28437
28444
  ] }),
28438
- /* @__PURE__ */ k(Uy, { className: "yst-space-y-4", children: [
28439
- /* @__PURE__ */ k(de, { variant: "error", onClick: function() {
28445
+ /* @__PURE__ */ C(Uy, { className: "yst-space-y-4", children: [
28446
+ /* @__PURE__ */ C(de, { variant: "error", onClick: function() {
28440
28447
  h(!0);
28441
28448
  }, disabled: (E == null ? void 0 : E.length) === 0, children: [
28442
28449
  /* @__PURE__ */ p(td, {}),
28443
28450
  " Delete all data"
28444
28451
  ] }),
28445
- /* @__PURE__ */ p("p", { children: /* @__PURE__ */ k("i", { children: [
28452
+ /* @__PURE__ */ p("p", { children: /* @__PURE__ */ C("i", { children: [
28446
28453
  /* @__PURE__ */ p("b", { children: "Note:" }),
28447
28454
  " This will erase everything and cannot be reversed."
28448
28455
  ] }) })
@@ -28492,15 +28499,15 @@ var Nc = [{
28492
28499
  };
28493
28500
  function $T() {
28494
28501
  var t = It(), e = ZT(t.pathname);
28495
- return /* @__PURE__ */ k(_r, { className: "yst-mx-auto yst-max-w-2xl", children: [
28502
+ return /* @__PURE__ */ C(_r, { className: "yst-mx-auto yst-max-w-2xl", children: [
28496
28503
  /* @__PURE__ */ p(_g, { title: /* @__PURE__ */ p(bv, { currentStep: e, steps: Nc }), description: e.description }),
28497
28504
  /* @__PURE__ */ p(_r.Content, { children: /* @__PURE__ */ p(ta, {}) })
28498
28505
  ] });
28499
28506
  }
28500
28507
  var bv = function(e) {
28501
28508
  var n = e.title, r = e.currentStep, i = e.steps;
28502
- return /* @__PURE__ */ k("span", { className: "yst-inline-flex yst-flex-row yst-gap-4", children: [
28503
- /* @__PURE__ */ k("span", { className: "yst-tracking-[.2em] yst-text-slate-400", children: [
28509
+ return /* @__PURE__ */ C("span", { className: "yst-inline-flex yst-flex-row yst-gap-4", children: [
28510
+ /* @__PURE__ */ C("span", { className: "yst-tracking-[.2em] yst-text-slate-400", children: [
28504
28511
  /* @__PURE__ */ p("span", { className: "yst-text-slate-900", children: Jo(r) === "object" ? r.id : r }),
28505
28512
  "/",
28506
28513
  Array.isArray(i) ? i.length : i
@@ -28515,14 +28522,14 @@ const eI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28515
28522
  }, Symbol.toStringTag, { value: "Module" }));
28516
28523
  var xv = function(e) {
28517
28524
  var n = e.onBack, r = e.variant, i = r === void 0 ? "ai" : r, a = e.buttonText, s = e.onButtonClick, o = e.isButtonDisabled, l = o === void 0 ? !1 : o, u = e.isLoading, c = u === void 0 ? !1 : u;
28518
- return /* @__PURE__ */ p(id, { nestedInPaperContent: !0, children: /* @__PURE__ */ k("div", { className: ae(
28525
+ return /* @__PURE__ */ p(id, { nestedInPaperContent: !0, children: /* @__PURE__ */ C("div", { className: ae(
28519
28526
  // if back button, ensure back appears separately from the button group
28520
28527
  {
28521
28528
  "yst-flex yst-flex-1 yst-flex-col yst-items-start yst-justify-between yst-gap-4 md:yst-flex-row md:yst-items-center md:yst-justify-between": n
28522
28529
  }
28523
28530
  ), children: [
28524
28531
  n && /* @__PURE__ */ p(de, { variant: "tertiary", onClick: n, className: "yst-no-underline", children: "← Back" }),
28525
- /* @__PURE__ */ p("div", { className: ae("yst-flex yst-flex-col yst-items-stretch yst-gap-4 md:yst-flex-row md:yst-items-center md:yst-justify-end"), children: /* @__PURE__ */ k(de, { onClick: s, variant: i === "ai" ? "primary" : i, style: i === "ai" ? {
28532
+ /* @__PURE__ */ p("div", { className: ae("yst-flex yst-flex-col yst-items-stretch yst-gap-4 md:yst-flex-row md:yst-items-center md:yst-justify-end"), children: /* @__PURE__ */ C(de, { onClick: s, variant: i === "ai" ? "primary" : i, style: i === "ai" ? {
28526
28533
  background: "linear-gradient(102deg, #A61E69 0%, #6366F1 100%)",
28527
28534
  color: "#fff"
28528
28535
  } : {}, disabled: l, type: "submit", isLoading: c, children: [
@@ -30058,12 +30065,12 @@ var hI = function() {
30058
30065
  }
30059
30066
  });
30060
30067
  };
30061
- function C(U) {
30068
+ function k(U) {
30062
30069
  return jr(U) === "object" && U !== null && "response" in U && jr(U.response) === "object" && U.response !== void 0 && "data" in U.response;
30063
30070
  }
30064
- var W = C(F) ? F.response.data.errors : void 0;
30065
- return /* @__PURE__ */ k("form", { onSubmit: q, children: [
30066
- /* @__PURE__ */ k("div", { className: "yst-space-y-6", children: [
30071
+ var W = k(F) ? F.response.data.errors : void 0;
30072
+ return /* @__PURE__ */ C("form", { onSubmit: q, children: [
30073
+ /* @__PURE__ */ C("div", { className: "yst-space-y-6", children: [
30067
30074
  /* @__PURE__ */ p($e, { size: "2", children: "Brand info" }),
30068
30075
  !!F && /* @__PURE__ */ p(an, { variant: "error", title: "Error", isVisible: !!F, children: /* @__PURE__ */ p("ul", { children: W && jr(W) === "object" ? Object.entries(W).flatMap(function(U) {
30069
30076
  var P = Mi(U, 2), Q = P[0], G = P[1];
@@ -30097,7 +30104,7 @@ var hI = function() {
30097
30104
  }
30098
30105
  }
30099
30106
  ),
30100
- /* @__PURE__ */ k("div", { id: "brand-description-textarea", children: [
30107
+ /* @__PURE__ */ C("div", { id: "brand-description-textarea", children: [
30101
30108
  /* @__PURE__ */ p(Bv, { id: "brand-description", label: "Brand description", value: y.description, onChange: function(U) {
30102
30109
  var P = U.target.value;
30103
30110
  B("description", P);
@@ -30107,12 +30114,12 @@ var hI = function() {
30107
30114
  message: "Your brand description is too long. Please keep it within the 250-character limit."
30108
30115
  }
30109
30116
  } : {}, placeholder: "e.g. We design eco-friendly yoga mats for busy professionals who want sustainable gear that’s durable, stylish and kind to the planet." }),
30110
- /* @__PURE__ */ k("div", { className: "yst-mt-1 yst-flex", children: [
30111
- /* @__PURE__ */ k("div", { className: "yst-flex-grow yst-flex-col", children: [
30117
+ /* @__PURE__ */ C("div", { className: "yst-mt-1 yst-flex", children: [
30118
+ /* @__PURE__ */ C("div", { className: "yst-flex-grow yst-flex-col", children: [
30112
30119
  y.description.length > 250 && /* @__PURE__ */ p("div", { className: "yst-mb-2 yst-text-red-500", children: "Your brand description is too long. Please keep it within the 250-character limit." }),
30113
30120
  "Tell us about your brand: what you do, who it’s for and what makes it special."
30114
30121
  ] }),
30115
- /* @__PURE__ */ k("div", { className: ae("yst-ml-6 yst-mt-[-4px] yst-text-xs", {
30122
+ /* @__PURE__ */ C("div", { className: ae("yst-ml-6 yst-mt-[-4px] yst-text-xs", {
30116
30123
  "yst-text-slate-500": y.description.length <= 250,
30117
30124
  "yst-text-red-500": y.description.length > 250
30118
30125
  }), children: [
@@ -30121,7 +30128,7 @@ var hI = function() {
30121
30128
  ] })
30122
30129
  ] })
30123
30130
  ] }),
30124
- /* @__PURE__ */ k("div", { className: "yst-space-y-2", children: [
30131
+ /* @__PURE__ */ C("div", { className: "yst-space-y-2", children: [
30125
30132
  /* @__PURE__ */ p(Io, { className: "yst-max-w-sm", id: "language-select", label: "Target language", value: y.language, onChange: function(U) {
30126
30133
  return B("language", U);
30127
30134
  }, options: aI.map(function(U) {
@@ -30134,7 +30141,7 @@ var hI = function() {
30134
30141
  ] })
30135
30142
  ] }),
30136
30143
  /* @__PURE__ */ p(fa, {}),
30137
- /* @__PURE__ */ k("div", { className: "yst-space-y-6", children: [
30144
+ /* @__PURE__ */ C("div", { className: "yst-space-y-6", children: [
30138
30145
  /* @__PURE__ */ p($e, { size: "2", children: "Location info" }),
30139
30146
  /* @__PURE__ */ p("p", { children: "Specify a location (optional) or leave it blank for a global analysis." }),
30140
30147
  /* @__PURE__ */ p(Fd, { className: "yst-max-w-sm", id: "country-select", label: "Target country (optional)", labelProps: {
@@ -30142,7 +30149,7 @@ var hI = function() {
30142
30149
  }, value: y.country || null, nullable: !0, placeholder: "Search countries...", onQueryChange: j, onChange: Y, selectedLabel: x, children: R.map(function(U) {
30143
30150
  return /* @__PURE__ */ p(Fd.Option, { value: U.value, children: U.label }, U.value);
30144
30151
  }) }),
30145
- y.country && /* @__PURE__ */ k(Te, { children: [
30152
+ y.country && /* @__PURE__ */ C(Te, { children: [
30146
30153
  /* @__PURE__ */ p($r, { id: "region", label: "Target region (optional)", value: y.region, onChange: function(U) {
30147
30154
  return B("region", U.target.value);
30148
30155
  }, description: `Enter a region to narrow down the analysis. For
@@ -30381,7 +30388,7 @@ var Ri = 5, Ga = "Generating...", EI = "Re-generating...", OI = 100, PI = 800, T
30381
30388
  };
30382
30389
  });
30383
30390
  }, MI = function() {
30384
- var e, n, r, i = nl(), a = i.brandId, s = "/setup/".concat(a, "/analysis"), o = St(), l = xn(), u = rd(), c = sa.useRef(!1), d = ne(II), h = Jn(d, 2), f = h[0], y = h[1], m = ne(!1), v = Jn(m, 2), g = v[0], A = v[1], O = ne([]), E = Jn(O, 2), S = E[0], b = E[1], w = ne([]), x = Jn(w, 2), R = x[0], D = x[1], L = ne(!1), I = Jn(L, 2), F = I[0], N = I[1], T = ne(null), B = Jn(T, 2), j = B[0], Y = B[1], q = ne(!1), C = Jn(q, 2), W = C[0], U = C[1], P = ST({
30391
+ var e, n, r, i = nl(), a = i.brandId, s = "/setup/".concat(a, "/analysis"), o = St(), l = xn(), u = rd(), c = sa.useRef(!1), d = ne(II), h = Jn(d, 2), f = h[0], y = h[1], m = ne(!1), v = Jn(m, 2), g = v[0], A = v[1], O = ne([]), E = Jn(O, 2), S = E[0], b = E[1], w = ne([]), x = Jn(w, 2), R = x[0], D = x[1], L = ne(!1), I = Jn(L, 2), F = I[0], N = I[1], T = ne(null), B = Jn(T, 2), j = B[0], Y = B[1], q = ne(!1), k = Jn(q, 2), W = k[0], U = k[1], P = ST({
30385
30392
  shouldBlock: !0
30386
30393
  // Always block navigation on this page
30387
30394
  }), Q = P.showModal, G = P.confirmLeave, K = P.cancelLeave, re = ne(!1), ue = Jn(re, 2), me = ue[0], oe = ue[1], Le = ne(null), J = Jn(Le, 2), je = J[0], Wt = J[1], mt = ww(a || "", {
@@ -30607,10 +30614,10 @@ var Ri = 5, Ga = "Generating...", EI = "Re-generating...", OI = 100, PI = 800, T
30607
30614
  }, [a, f, Me, ve]), va = function() {
30608
30615
  oe(!0);
30609
30616
  };
30610
- return /* @__PURE__ */ k("div", { children: [
30611
- je && /* @__PURE__ */ k(an, { className: "yst-mb-4", variant: "error", children: [
30617
+ return /* @__PURE__ */ C("div", { children: [
30618
+ je && /* @__PURE__ */ C(an, { className: "yst-mb-4", variant: "error", children: [
30612
30619
  /* @__PURE__ */ p("strong", { children: "Moderation Error" }),
30613
- /* @__PURE__ */ k("div", { className: "yst-mt-2", children: [
30620
+ /* @__PURE__ */ C("div", { className: "yst-mt-2", children: [
30614
30621
  /* @__PURE__ */ p("span", { children: "Some of your queries include content that our AI moderation system can’t process." }),
30615
30622
  /* @__PURE__ */ p("br", {}),
30616
30623
  /* @__PURE__ */ p("span", { children: "These queries were flagged and won’t be saved:" }),
@@ -30622,18 +30629,18 @@ var Ri = 5, Ga = "Generating...", EI = "Re-generating...", OI = 100, PI = 800, T
30622
30629
  ] })
30623
30630
  ] }),
30624
30631
  j && /* @__PURE__ */ p(an, { className: "yst-mb-4", variant: "error", children: j }),
30625
- /* @__PURE__ */ k("form", { onSubmit: Ol, children: [
30626
- /* @__PURE__ */ k("div", { className: "yst-mb-8", children: [
30632
+ /* @__PURE__ */ C("form", { onSubmit: Ol, children: [
30633
+ /* @__PURE__ */ C("div", { className: "yst-mb-8", children: [
30627
30634
  /* @__PURE__ */ p($e, { size: "2", className: "yst-mb-2", children: "Your queries" }),
30628
- /* @__PURE__ */ k("div", { className: "yst-space-y-4", children: [
30635
+ /* @__PURE__ */ C("div", { className: "yst-space-y-4", children: [
30629
30636
  /* @__PURE__ */ p("p", { children: "You can edit your queries or regenerate new ones with AI." }),
30630
- /* @__PURE__ */ p("div", { className: ae("yst-flex yst-gap-2", g ? "yst-justify-end" : "yst-justify-start"), children: g ? /* @__PURE__ */ k(Te, { children: [
30637
+ /* @__PURE__ */ p("div", { className: ae("yst-flex yst-gap-2", g ? "yst-justify-end" : "yst-justify-start"), children: g ? /* @__PURE__ */ C(Te, { children: [
30631
30638
  /* @__PURE__ */ p(de, { size: "small", variant: "secondary", onClick: Mt, children: "Done" }),
30632
- /* @__PURE__ */ k(de, { variant: "secondary", size: "small", onClick: ga, className: "yst-gap-1", isLoading: st || F, disabled: F || st || S.length === 0, children: [
30639
+ /* @__PURE__ */ C(de, { variant: "secondary", size: "small", onClick: ga, className: "yst-gap-1", isLoading: st || F, disabled: F || st || S.length === 0, children: [
30633
30640
  /* @__PURE__ */ p(Yy, { "aria-hidden": "true" }),
30634
30641
  "Regenerate selected queries"
30635
30642
  ] })
30636
- ] }) : /* @__PURE__ */ k(de, { size: "small", variant: "secondary", onClick: Mt, disabled: Lt || ft, children: [
30643
+ ] }) : /* @__PURE__ */ C(de, { size: "small", variant: "secondary", onClick: Mt, disabled: Lt || ft, children: [
30637
30644
  /* @__PURE__ */ p(Vw, {}),
30638
30645
  "Select queries to regenerate"
30639
30646
  ] }) })
@@ -30643,7 +30650,7 @@ var Ri = 5, Ga = "Generating...", EI = "Re-generating...", OI = 100, PI = 800, T
30643
30650
  return /* @__PURE__ */ p("div", { className: ae("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(Je, { children: $ || "Example placeholder query for demonstration purposes." }) }, "placeholder-query-".concat(te));
30644
30651
  }) : f.slice(0, Ri).map(function($, te) {
30645
30652
  var ye = $.isRegenerating ? $.text === Ga ? Ga : EI : $.text;
30646
- return /* @__PURE__ */ p("div", { className: ae("yst-mb-4"), children: /* @__PURE__ */ k("div", { className: "yst-flex yst-gap-2", children: [
30653
+ return /* @__PURE__ */ p("div", { className: ae("yst-mb-4"), children: /* @__PURE__ */ C("div", { className: "yst-flex yst-gap-2", children: [
30647
30654
  g && /* @__PURE__ */ p("div", { className: "yst-flex yst-items-center", children: /* @__PURE__ */ p(
30648
30655
  Ou,
30649
30656
  {
@@ -30673,24 +30680,24 @@ var Ri = 5, Ga = "Generating...", EI = "Re-generating...", OI = 100, PI = 800, T
30673
30680
  bx(Pn) && // error is rate limit
30674
30681
  (Pn == null || (r = Pn.response) === null || r === void 0 ? void 0 : r.status) === 429 && // ensure has not been acknowledged before
30675
30682
  !me
30676
- ), onClose: va, position: "center", as: "div", children: /* @__PURE__ */ p(ee.Panel, { children: /* @__PURE__ */ k("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: [
30683
+ ), onClose: va, position: "center", as: "div", children: /* @__PURE__ */ p(ee.Panel, { children: /* @__PURE__ */ C("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: [
30677
30684
  /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p("span", { className: "yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-red-100", children: /* @__PURE__ */ p(Ao, { className: "yst-h-6 yst-w-6 yst-text-red-600" }) }) }),
30678
- /* @__PURE__ */ k("div", { className: "yst-flex-1", children: [
30685
+ /* @__PURE__ */ C("div", { className: "yst-flex-1", children: [
30679
30686
  /* @__PURE__ */ p(ee.Container.Header, { className: "yst-mb-3 yst-w-full", children: /* @__PURE__ */ p(ee.Title, { as: "h3", className: "yst-text-lg yst-font-medium", children: "Query regeneration limit reached" }) }),
30680
30687
  /* @__PURE__ */ p(ee.Container.Content, { className: "yst-mb-6 yst-space-y-3", children: /* @__PURE__ */ p("p", { className: "yst-text-sm yst-text-slate-600", children: "You’ve used all your query regenerations for this brand analysis, but you can still edit your queries manually." }) }),
30681
30688
  /* @__PURE__ */ p(ee.Container.Footer, { className: "yst-flex yst-justify-end yst-gap-3", children: /* @__PURE__ */ p(de, { variant: "primary", onClick: va, children: "Edit queries manually" }) })
30682
30689
  ] })
30683
30690
  ] }) }) }),
30684
- /* @__PURE__ */ p(ee, { isOpen: W, onClose: Ee, position: "center", as: "div", children: /* @__PURE__ */ p(ee.Panel, { children: /* @__PURE__ */ k("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: [
30691
+ /* @__PURE__ */ p(ee, { isOpen: W, onClose: Ee, position: "center", as: "div", children: /* @__PURE__ */ p(ee.Panel, { children: /* @__PURE__ */ C("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: [
30685
30692
  /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p("span", { className: "yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-amber-100", children: /* @__PURE__ */ p(Ao, { className: "yst-h-6 yst-w-6 yst-text-amber-600" }) }) }),
30686
- /* @__PURE__ */ k("div", { className: "yst-flex-1", children: [
30693
+ /* @__PURE__ */ C("div", { className: "yst-flex-1", children: [
30687
30694
  /* @__PURE__ */ p(ee.Container.Header, { className: "yst-mb-3 yst-w-full", children: /* @__PURE__ */ p(ee.Title, { as: "h3", className: "yst-text-lg yst-font-medium", children: "Brand name detected in your queries" }) }),
30688
- /* @__PURE__ */ k(ee.Container.Content, { className: "yst-mb-6 yst-space-y-3", children: [
30695
+ /* @__PURE__ */ C(ee.Container.Content, { className: "yst-mb-6 yst-space-y-3", children: [
30689
30696
  /* @__PURE__ */ p("p", { className: "yst-text-sm yst-text-slate-600", children: "We found your brand name in one or more of your queries. Using your brand name in queries often show more mentions and more positive sentiment, which can skew your results." }),
30690
30697
  /* @__PURE__ */ p("p", { className: "yst-text-sm yst-text-slate-600", children: "For more balanced results, remove your brand name or make the queries more general." })
30691
30698
  ] }),
30692
- /* @__PURE__ */ k(ee.Container.Footer, { className: "yst-flex yst-justify-end yst-gap-3", children: [
30693
- /* @__PURE__ */ k(de, { onClick: z, variant: "secondary", disabled: ht, isLoading: ht, children: [
30699
+ /* @__PURE__ */ C(ee.Container.Footer, { className: "yst-flex yst-justify-end yst-gap-3", children: [
30700
+ /* @__PURE__ */ C(de, { onClick: z, variant: "secondary", disabled: ht, isLoading: ht, children: [
30694
30701
  /* @__PURE__ */ p(Yy, {}),
30695
30702
  "Run analysis anyway"
30696
30703
  ] }),
@@ -30698,12 +30705,12 @@ var Ri = 5, Ga = "Generating...", EI = "Re-generating...", OI = 100, PI = 800, T
30698
30705
  ] })
30699
30706
  ] })
30700
30707
  ] }) }) }),
30701
- /* @__PURE__ */ p(ee, { isOpen: Q, onClose: K, position: "center", as: "div", children: /* @__PURE__ */ p(ee.Panel, { children: /* @__PURE__ */ k("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: [
30708
+ /* @__PURE__ */ p(ee, { isOpen: Q, onClose: K, position: "center", as: "div", children: /* @__PURE__ */ p(ee.Panel, { children: /* @__PURE__ */ C("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: [
30702
30709
  /* @__PURE__ */ p("div", { children: /* @__PURE__ */ p("span", { className: "yst-inline-flex yst-h-10 yst-w-10 yst-items-center yst-justify-center yst-rounded-full yst-bg-amber-100", children: /* @__PURE__ */ p(Ao, { className: "yst-h-6 yst-w-6 yst-text-amber-600" }) }) }),
30703
- /* @__PURE__ */ k("div", { className: "yst-flex-1", children: [
30710
+ /* @__PURE__ */ C("div", { className: "yst-flex-1", children: [
30704
30711
  /* @__PURE__ */ p(ee.Container.Header, { className: "yst-mb-3 yst-w-full", children: /* @__PURE__ */ p(ee.Title, { as: "h3", className: "yst-text-lg yst-font-medium", children: "Leave this page?" }) }),
30705
30712
  /* @__PURE__ */ p(ee.Container.Content, { className: "yst-mb-6", children: /* @__PURE__ */ p("p", { className: "yst-text-sm yst-text-slate-600", children: "You have unsaved changes. Finish setting up your brand to save your queries. Leaving this page will discard your queries." }) }),
30706
- /* @__PURE__ */ k(ee.Container.Footer, { className: "yst-flex yst-justify-end yst-gap-3", children: [
30713
+ /* @__PURE__ */ C(ee.Container.Footer, { className: "yst-flex yst-justify-end yst-gap-3", children: [
30707
30714
  /* @__PURE__ */ p(de, { onClick: K, variant: "secondary", children: "No, stay on page" }),
30708
30715
  /* @__PURE__ */ p(de, { variant: "primary", onClick: G, children: "Yes, discard queries" })
30709
30716
  ] })
@@ -30841,9 +30848,9 @@ function _I() {
30841
30848
  }
30842
30849
  var S = l, b = u, w = o, x = s, R = e, D = c, L = r, I = y, F = f, N = n, T = a, B = i, j = d, Y = !1;
30843
30850
  function q(J) {
30844
- return Y || (Y = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), C(J) || E(J) === l;
30851
+ return Y || (Y = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), k(J) || E(J) === l;
30845
30852
  }
30846
- function C(J) {
30853
+ function k(J) {
30847
30854
  return E(J) === u;
30848
30855
  }
30849
30856
  function W(J) {
@@ -30879,7 +30886,7 @@ function _I() {
30879
30886
  function Le(J) {
30880
30887
  return E(J) === d;
30881
30888
  }
30882
- De.AsyncMode = S, De.ConcurrentMode = b, De.ContextConsumer = w, De.ContextProvider = x, De.Element = R, De.ForwardRef = D, De.Fragment = L, De.Lazy = I, De.Memo = F, De.Portal = N, De.Profiler = T, De.StrictMode = B, De.Suspense = j, De.isAsyncMode = q, De.isConcurrentMode = C, De.isContextConsumer = W, De.isContextProvider = U, De.isElement = P, De.isForwardRef = Q, De.isFragment = G, De.isLazy = K, De.isMemo = re, De.isPortal = ue, De.isProfiler = me, De.isStrictMode = oe, De.isSuspense = Le, De.isValidElementType = O, De.typeOf = E;
30889
+ De.AsyncMode = S, De.ConcurrentMode = b, De.ContextConsumer = w, De.ContextProvider = x, De.Element = R, De.ForwardRef = D, De.Fragment = L, De.Lazy = I, De.Memo = F, De.Portal = N, De.Profiler = T, De.StrictMode = B, De.Suspense = j, De.isAsyncMode = q, De.isConcurrentMode = k, De.isContextConsumer = W, De.isContextProvider = U, De.isElement = P, De.isForwardRef = Q, De.isFragment = G, De.isLazy = K, De.isMemo = re, De.isPortal = ue, De.isProfiler = me, De.isStrictMode = oe, De.isSuspense = Le, De.isValidElementType = O, De.typeOf = E;
30883
30890
  }()), De;
30884
30891
  }
30885
30892
  var Zy;
@@ -31016,8 +31023,8 @@ function jI() {
31016
31023
  }
31017
31024
  return ku = function(o, l) {
31018
31025
  var u = typeof Symbol == "function" && Symbol.iterator, c = "@@iterator";
31019
- function d(C) {
31020
- var W = C && (u && C[u] || C[c]);
31026
+ function d(k) {
31027
+ var W = k && (u && k[u] || k[c]);
31021
31028
  if (typeof W == "function")
31022
31029
  return W;
31023
31030
  }
@@ -31042,14 +31049,14 @@ function jI() {
31042
31049
  shape: I,
31043
31050
  exact: F
31044
31051
  };
31045
- function y(C, W) {
31046
- return C === W ? C !== 0 || 1 / C === 1 / W : C !== C && W !== W;
31052
+ function y(k, W) {
31053
+ return k === W ? k !== 0 || 1 / k === 1 / W : k !== k && W !== W;
31047
31054
  }
31048
- function m(C, W) {
31049
- this.message = C, this.data = W && typeof W == "object" ? W : {}, this.stack = "";
31055
+ function m(k, W) {
31056
+ this.message = k, this.data = W && typeof W == "object" ? W : {}, this.stack = "";
31050
31057
  }
31051
31058
  m.prototype = Error.prototype;
31052
- function v(C) {
31059
+ function v(k) {
31053
31060
  if (process.env.NODE_ENV !== "production")
31054
31061
  var W = {}, U = 0;
31055
31062
  function P(G, K, re, ue, me, oe, Le) {
@@ -31067,19 +31074,19 @@ function jI() {
31067
31074
  ), W[je] = !0, U++);
31068
31075
  }
31069
31076
  }
31070
- return K[re] == null ? G ? K[re] === null ? new m("The " + me + " `" + oe + "` is marked as required " + ("in `" + ue + "`, but its value is `null`.")) : new m("The " + me + " `" + oe + "` is marked as required in " + ("`" + ue + "`, but its value is `undefined`.")) : null : C(K, re, ue, me, oe);
31077
+ return K[re] == null ? G ? K[re] === null ? new m("The " + me + " `" + oe + "` is marked as required " + ("in `" + ue + "`, but its value is `null`.")) : new m("The " + me + " `" + oe + "` is marked as required in " + ("`" + ue + "`, but its value is `undefined`.")) : null : k(K, re, ue, me, oe);
31071
31078
  }
31072
31079
  var Q = P.bind(null, !1);
31073
31080
  return Q.isRequired = P.bind(null, !0), Q;
31074
31081
  }
31075
- function g(C) {
31082
+ function g(k) {
31076
31083
  function W(U, P, Q, G, K, re) {
31077
31084
  var ue = U[P], me = B(ue);
31078
- if (me !== C) {
31085
+ if (me !== k) {
31079
31086
  var oe = j(ue);
31080
31087
  return new m(
31081
- "Invalid " + G + " `" + K + "` of type " + ("`" + oe + "` supplied to `" + Q + "`, expected ") + ("`" + C + "`."),
31082
- { expectedType: C }
31088
+ "Invalid " + G + " `" + K + "` of type " + ("`" + oe + "` supplied to `" + Q + "`, expected ") + ("`" + k + "`."),
31089
+ { expectedType: k }
31083
31090
  );
31084
31091
  }
31085
31092
  return null;
@@ -31089,9 +31096,9 @@ function jI() {
31089
31096
  function A() {
31090
31097
  return v(s);
31091
31098
  }
31092
- function O(C) {
31099
+ function O(k) {
31093
31100
  function W(U, P, Q, G, K) {
31094
- if (typeof C != "function")
31101
+ if (typeof k != "function")
31095
31102
  return new m("Property `" + K + "` of component `" + Q + "` has invalid PropType notation inside arrayOf.");
31096
31103
  var re = U[P];
31097
31104
  if (!Array.isArray(re)) {
@@ -31099,7 +31106,7 @@ function jI() {
31099
31106
  return new m("Invalid " + G + " `" + K + "` of type " + ("`" + ue + "` supplied to `" + Q + "`, expected an array."));
31100
31107
  }
31101
31108
  for (var me = 0; me < re.length; me++) {
31102
- var oe = C(re, me, Q, G, K + "[" + me + "]", n);
31109
+ var oe = k(re, me, Q, G, K + "[" + me + "]", n);
31103
31110
  if (oe instanceof Error)
31104
31111
  return oe;
31105
31112
  }
@@ -31108,7 +31115,7 @@ function jI() {
31108
31115
  return v(W);
31109
31116
  }
31110
31117
  function E() {
31111
- function C(W, U, P, Q, G) {
31118
+ function k(W, U, P, Q, G) {
31112
31119
  var K = W[U];
31113
31120
  if (!o(K)) {
31114
31121
  var re = B(K);
@@ -31116,10 +31123,10 @@ function jI() {
31116
31123
  }
31117
31124
  return null;
31118
31125
  }
31119
- return v(C);
31126
+ return v(k);
31120
31127
  }
31121
31128
  function S() {
31122
- function C(W, U, P, Q, G) {
31129
+ function k(W, U, P, Q, G) {
31123
31130
  var K = W[U];
31124
31131
  if (!t.isValidElementType(K)) {
31125
31132
  var re = B(K);
@@ -31127,28 +31134,28 @@ function jI() {
31127
31134
  }
31128
31135
  return null;
31129
31136
  }
31130
- return v(C);
31137
+ return v(k);
31131
31138
  }
31132
- function b(C) {
31139
+ function b(k) {
31133
31140
  function W(U, P, Q, G, K) {
31134
- if (!(U[P] instanceof C)) {
31135
- var re = C.name || h, ue = q(U[P]);
31141
+ if (!(U[P] instanceof k)) {
31142
+ var re = k.name || h, ue = q(U[P]);
31136
31143
  return new m("Invalid " + G + " `" + K + "` of type " + ("`" + ue + "` supplied to `" + Q + "`, expected ") + ("instance of `" + re + "`."));
31137
31144
  }
31138
31145
  return null;
31139
31146
  }
31140
31147
  return v(W);
31141
31148
  }
31142
- function w(C) {
31143
- if (!Array.isArray(C))
31149
+ function w(k) {
31150
+ if (!Array.isArray(k))
31144
31151
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
31145
31152
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
31146
31153
  ) : a("Invalid argument supplied to oneOf, expected an array.")), s;
31147
31154
  function W(U, P, Q, G, K) {
31148
- for (var re = U[P], ue = 0; ue < C.length; ue++)
31149
- if (y(re, C[ue]))
31155
+ for (var re = U[P], ue = 0; ue < k.length; ue++)
31156
+ if (y(re, k[ue]))
31150
31157
  return null;
31151
- var me = JSON.stringify(C, function(Le, J) {
31158
+ var me = JSON.stringify(k, function(Le, J) {
31152
31159
  var je = j(J);
31153
31160
  return je === "symbol" ? String(J) : J;
31154
31161
  });
@@ -31156,16 +31163,16 @@ function jI() {
31156
31163
  }
31157
31164
  return v(W);
31158
31165
  }
31159
- function x(C) {
31166
+ function x(k) {
31160
31167
  function W(U, P, Q, G, K) {
31161
- if (typeof C != "function")
31168
+ if (typeof k != "function")
31162
31169
  return new m("Property `" + K + "` of component `" + Q + "` has invalid PropType notation inside objectOf.");
31163
31170
  var re = U[P], ue = B(re);
31164
31171
  if (ue !== "object")
31165
31172
  return new m("Invalid " + G + " `" + K + "` of type " + ("`" + ue + "` supplied to `" + Q + "`, expected an object."));
31166
31173
  for (var me in re)
31167
31174
  if (r(re, me)) {
31168
- var oe = C(re, me, Q, G, K + "." + me, n);
31175
+ var oe = k(re, me, Q, G, K + "." + me, n);
31169
31176
  if (oe instanceof Error)
31170
31177
  return oe;
31171
31178
  }
@@ -31173,19 +31180,19 @@ function jI() {
31173
31180
  }
31174
31181
  return v(W);
31175
31182
  }
31176
- function R(C) {
31177
- if (!Array.isArray(C))
31183
+ function R(k) {
31184
+ if (!Array.isArray(k))
31178
31185
  return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), s;
31179
- for (var W = 0; W < C.length; W++) {
31180
- var U = C[W];
31186
+ for (var W = 0; W < k.length; W++) {
31187
+ var U = k[W];
31181
31188
  if (typeof U != "function")
31182
31189
  return a(
31183
31190
  "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Y(U) + " at index " + W + "."
31184
31191
  ), s;
31185
31192
  }
31186
31193
  function P(Q, G, K, re, ue) {
31187
- for (var me = [], oe = 0; oe < C.length; oe++) {
31188
- var Le = C[oe], J = Le(Q, G, K, re, ue, n);
31194
+ for (var me = [], oe = 0; oe < k.length; oe++) {
31195
+ var Le = k[oe], J = Le(Q, G, K, re, ue, n);
31189
31196
  if (J == null)
31190
31197
  return null;
31191
31198
  J.data && r(J.data, "expectedType") && me.push(J.data.expectedType);
@@ -31196,23 +31203,23 @@ function jI() {
31196
31203
  return v(P);
31197
31204
  }
31198
31205
  function D() {
31199
- function C(W, U, P, Q, G) {
31206
+ function k(W, U, P, Q, G) {
31200
31207
  return N(W[U]) ? null : new m("Invalid " + Q + " `" + G + "` supplied to " + ("`" + P + "`, expected a ReactNode."));
31201
31208
  }
31202
- return v(C);
31209
+ return v(k);
31203
31210
  }
31204
- function L(C, W, U, P, Q) {
31211
+ function L(k, W, U, P, Q) {
31205
31212
  return new m(
31206
- (C || "React class") + ": " + W + " type `" + U + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Q + "`."
31213
+ (k || "React class") + ": " + W + " type `" + U + "." + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + Q + "`."
31207
31214
  );
31208
31215
  }
31209
- function I(C) {
31216
+ function I(k) {
31210
31217
  function W(U, P, Q, G, K) {
31211
31218
  var re = U[P], ue = B(re);
31212
31219
  if (ue !== "object")
31213
31220
  return new m("Invalid " + G + " `" + K + "` of type `" + ue + "` " + ("supplied to `" + Q + "`, expected `object`."));
31214
- for (var me in C) {
31215
- var oe = C[me];
31221
+ for (var me in k) {
31222
+ var oe = k[me];
31216
31223
  if (typeof oe != "function")
31217
31224
  return L(Q, G, K, me, j(oe));
31218
31225
  var Le = oe(re, me, Q, G, K + "." + me, n);
@@ -31223,20 +31230,20 @@ function jI() {
31223
31230
  }
31224
31231
  return v(W);
31225
31232
  }
31226
- function F(C) {
31233
+ function F(k) {
31227
31234
  function W(U, P, Q, G, K) {
31228
31235
  var re = U[P], ue = B(re);
31229
31236
  if (ue !== "object")
31230
31237
  return new m("Invalid " + G + " `" + K + "` of type `" + ue + "` " + ("supplied to `" + Q + "`, expected `object`."));
31231
- var me = e({}, U[P], C);
31238
+ var me = e({}, U[P], k);
31232
31239
  for (var oe in me) {
31233
- var Le = C[oe];
31234
- if (r(C, oe) && typeof Le != "function")
31240
+ var Le = k[oe];
31241
+ if (r(k, oe) && typeof Le != "function")
31235
31242
  return L(Q, G, K, oe, j(Le));
31236
31243
  if (!Le)
31237
31244
  return new m(
31238
31245
  "Invalid " + G + " `" + K + "` key `" + oe + "` supplied to `" + Q + "`.\nBad object: " + JSON.stringify(U[P], null, " ") + `
31239
- Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
31246
+ Valid keys: ` + JSON.stringify(Object.keys(k), null, " ")
31240
31247
  );
31241
31248
  var J = Le(re, oe, Q, G, K + "." + oe, n);
31242
31249
  if (J)
@@ -31246,23 +31253,23 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
31246
31253
  }
31247
31254
  return v(W);
31248
31255
  }
31249
- function N(C) {
31250
- switch (typeof C) {
31256
+ function N(k) {
31257
+ switch (typeof k) {
31251
31258
  case "number":
31252
31259
  case "string":
31253
31260
  case "undefined":
31254
31261
  return !0;
31255
31262
  case "boolean":
31256
- return !C;
31263
+ return !k;
31257
31264
  case "object":
31258
- if (Array.isArray(C))
31259
- return C.every(N);
31260
- if (C === null || o(C))
31265
+ if (Array.isArray(k))
31266
+ return k.every(N);
31267
+ if (k === null || o(k))
31261
31268
  return !0;
31262
- var W = d(C);
31269
+ var W = d(k);
31263
31270
  if (W) {
31264
- var U = W.call(C), P;
31265
- if (W !== C.entries) {
31271
+ var U = W.call(k), P;
31272
+ if (W !== k.entries) {
31266
31273
  for (; !(P = U.next()).done; )
31267
31274
  if (!N(P.value))
31268
31275
  return !1;
@@ -31279,27 +31286,27 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
31279
31286
  return !1;
31280
31287
  }
31281
31288
  }
31282
- function T(C, W) {
31283
- return C === "symbol" ? !0 : W ? W["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && W instanceof Symbol : !1;
31289
+ function T(k, W) {
31290
+ return k === "symbol" ? !0 : W ? W["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && W instanceof Symbol : !1;
31284
31291
  }
31285
- function B(C) {
31286
- var W = typeof C;
31287
- return Array.isArray(C) ? "array" : C instanceof RegExp ? "object" : T(W, C) ? "symbol" : W;
31292
+ function B(k) {
31293
+ var W = typeof k;
31294
+ return Array.isArray(k) ? "array" : k instanceof RegExp ? "object" : T(W, k) ? "symbol" : W;
31288
31295
  }
31289
- function j(C) {
31290
- if (typeof C == "undefined" || C === null)
31291
- return "" + C;
31292
- var W = B(C);
31296
+ function j(k) {
31297
+ if (typeof k == "undefined" || k === null)
31298
+ return "" + k;
31299
+ var W = B(k);
31293
31300
  if (W === "object") {
31294
- if (C instanceof Date)
31301
+ if (k instanceof Date)
31295
31302
  return "date";
31296
- if (C instanceof RegExp)
31303
+ if (k instanceof RegExp)
31297
31304
  return "regexp";
31298
31305
  }
31299
31306
  return W;
31300
31307
  }
31301
- function Y(C) {
31302
- var W = j(C);
31308
+ function Y(k) {
31309
+ var W = j(k);
31303
31310
  switch (W) {
31304
31311
  case "array":
31305
31312
  case "object":
@@ -31312,8 +31319,8 @@ Valid keys: ` + JSON.stringify(Object.keys(C), null, " ")
31312
31319
  return W;
31313
31320
  }
31314
31321
  }
31315
- function q(C) {
31316
- return !C.constructor || !C.constructor.name ? h : C.constructor.name;
31322
+ function q(k) {
31323
+ return !k.constructor || !k.constructor.name ? h : k.constructor.name;
31317
31324
  }
31318
31325
  return f.checkPropTypes = i, f.resetWarningCache = i.resetWarningCache, f.PropTypes = f, f;
31319
31326
  }, ku;
@@ -31428,13 +31435,13 @@ var Ba = [{
31428
31435
  return Ba[c];
31429
31436
  return Ba[Ba.length - 1];
31430
31437
  }, o = s(), l = r <= 80;
31431
- return /* @__PURE__ */ k("div", { className: ae("yst-font-medium yst-text-slate-800", a), children: [
31432
- /* @__PURE__ */ k("div", { className: "yst-flex yst-items-center yst-justify-center yst-gap-2", children: [
31438
+ return /* @__PURE__ */ C("div", { className: ae("yst-font-medium yst-text-slate-800", a), children: [
31439
+ /* @__PURE__ */ C("div", { className: "yst-flex yst-items-center yst-justify-center yst-gap-2", children: [
31433
31440
  r < 100 ? /* @__PURE__ */ p(Ps, {}) : /* @__PURE__ */ p(L0, { className: "yst-text-green-400" }),
31434
31441
  /* @__PURE__ */ p("span", { className: "yst-text-sm yst-font-medium yst-italic", children: o.labelAbove })
31435
31442
  ] }),
31436
31443
  /* @__PURE__ */ p(kv, { className: "yst-mt-3", progress: r, min: 0, max: 100 }),
31437
- /* @__PURE__ */ k("div", { className: "yst-mt-3 yst-flex yst-justify-between yst-text-xs", children: [
31444
+ /* @__PURE__ */ C("div", { className: "yst-mt-3 yst-flex yst-justify-between yst-text-xs", children: [
31438
31445
  /* @__PURE__ */ p("span", { children: /* @__PURE__ */ p(ss, { disabled: !l, children: "Running queries" }) }),
31439
31446
  /* @__PURE__ */ p("span", { children: /* @__PURE__ */ p(ss, { disabled: l, children: "Building analysis" }) })
31440
31447
  ] })
@@ -31554,14 +31561,14 @@ var XI = function(e) {
31554
31561
  }
31555
31562
  return 0;
31556
31563
  }(), w = b <= 80 || b === 100;
31557
- return /* @__PURE__ */ k("div", { children: [
31558
- /* @__PURE__ */ k("div", { className: "yst-space-y-8", children: [
31564
+ return /* @__PURE__ */ C("div", { children: [
31565
+ /* @__PURE__ */ C("div", { className: "yst-space-y-8", children: [
31559
31566
  /* @__PURE__ */ p(Ev, { progress: b }),
31560
- w && /* @__PURE__ */ k(Te, { children: [
31567
+ w && /* @__PURE__ */ C(Te, { children: [
31561
31568
  /* @__PURE__ */ p(fa, {}),
31562
31569
  /* @__PURE__ */ p("div", { className: "yst-space-y-8", children: m == null || (r = m.queries) === null || r === void 0 ? void 0 : r.map(function(x) {
31563
31570
  var R, D = x.id, L = x.query, I = D && (g == null || (R = g.completedQueries) === null || R === void 0 ? void 0 : R.includes(D));
31564
- return /* @__PURE__ */ k("div", { className: ae("yst-flex yst-items-center yst-justify-between yst-gap-3"), children: [
31571
+ return /* @__PURE__ */ C("div", { className: ae("yst-flex yst-items-center yst-justify-between yst-gap-3"), children: [
31565
31572
  I === !0 ? (
31566
31573
  // found
31567
31574
  /* @__PURE__ */ p(L0, { className: "yst-h-5 yst-w-5 yst-text-green-400" })