@yoast/ai-insights-client 1.4.16 → 1.4.18
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.
|
@@ -21151,29 +21151,29 @@ function q4() {
|
|
|
21151
21151
|
var ed = function() {
|
|
21152
21152
|
var t = Nn(), n = t.brandId, r = t.analysisId, i = Zi({
|
|
21153
21153
|
query: {
|
|
21154
|
-
select: function(
|
|
21155
|
-
var
|
|
21156
|
-
return
|
|
21154
|
+
select: function(k) {
|
|
21155
|
+
var S = k.data;
|
|
21156
|
+
return S == null ? void 0 : S.brands;
|
|
21157
21157
|
}
|
|
21158
21158
|
}
|
|
21159
21159
|
}), s = i.data, o = i.isLoading, a = pb(n, {
|
|
21160
21160
|
query: {
|
|
21161
21161
|
enabled: !!n,
|
|
21162
|
-
select: function(
|
|
21163
|
-
var
|
|
21164
|
-
return
|
|
21162
|
+
select: function(k) {
|
|
21163
|
+
var S = k.data;
|
|
21164
|
+
return S;
|
|
21165
21165
|
}
|
|
21166
21166
|
}
|
|
21167
21167
|
}), l = a.data, c = a.isLoading, u = Qc(n, r, {
|
|
21168
21168
|
query: {
|
|
21169
21169
|
enabled: !!n && !!r && r !== "latest" && typeof r == "string" && r.length > 0,
|
|
21170
|
-
select: function(
|
|
21171
|
-
var
|
|
21172
|
-
return
|
|
21170
|
+
select: function(k) {
|
|
21171
|
+
var S = k.data;
|
|
21172
|
+
return S == null ? void 0 : S.analysis;
|
|
21173
21173
|
}
|
|
21174
21174
|
}
|
|
21175
|
-
}), d = u.data, f =
|
|
21176
|
-
switch (
|
|
21175
|
+
}), d = u.data, f = (l == null ? void 0 : l.name) || "your brand", h = VE(l == null ? void 0 : l.nextScheduledAnalysis), g = d == null ? void 0 : d.status, y = function() {
|
|
21176
|
+
switch (g) {
|
|
21177
21177
|
case gi.pending:
|
|
21178
21178
|
return {
|
|
21179
21179
|
alertContent: /* @__PURE__ */ M("div", { className: "yst-max-w-xl yst-space-y-2", children: [
|
|
@@ -21181,10 +21181,10 @@ var ed = function() {
|
|
|
21181
21181
|
/* @__PURE__ */ M("p", { children: [
|
|
21182
21182
|
"You've completed the setup for",
|
|
21183
21183
|
" ",
|
|
21184
|
-
/* @__PURE__ */ p("b", { className: "yst-font-medium", children:
|
|
21184
|
+
/* @__PURE__ */ p("b", { className: "yst-font-medium", children: f }),
|
|
21185
21185
|
". The analysis is scheduled to run on",
|
|
21186
21186
|
" ",
|
|
21187
|
-
/* @__PURE__ */ p("b", { className: "yst-font-medium", children:
|
|
21187
|
+
/* @__PURE__ */ p("b", { className: "yst-font-medium", children: h }),
|
|
21188
21188
|
". You'll see the results here once it's ready, and we'll also notify you by email."
|
|
21189
21189
|
] })
|
|
21190
21190
|
] }),
|
|
@@ -21194,7 +21194,7 @@ var ed = function() {
|
|
|
21194
21194
|
return {
|
|
21195
21195
|
alertContent: /* @__PURE__ */ M(dt, { children: [
|
|
21196
21196
|
"You've completed the setup for ",
|
|
21197
|
-
|
|
21197
|
+
f,
|
|
21198
21198
|
". The analysis is now processing. You'll see the results here once it's ready, and we'll also notify you by email."
|
|
21199
21199
|
] }),
|
|
21200
21200
|
alertVariant: "info"
|
|
@@ -21219,14 +21219,14 @@ var ed = function() {
|
|
|
21219
21219
|
alertVariant: "info"
|
|
21220
21220
|
};
|
|
21221
21221
|
}
|
|
21222
|
-
}(),
|
|
21223
|
-
return
|
|
21222
|
+
}(), m = y.alertContent, v = y.alertVariant, b = o || c, x = s && (s == null ? void 0 : s.length) > 0, C = !b && d && g === gi.completed;
|
|
21223
|
+
return b ? /* @__PURE__ */ p("div", { className: "yst-flex yst-min-h-screen yst-items-center yst-justify-center", children: /* @__PURE__ */ M("div", { className: "yst-flex yst-items-center yst-gap-3 yst-text-center", children: [
|
|
21224
21224
|
/* @__PURE__ */ p(Ic, { variant: "primary" }),
|
|
21225
21225
|
/* @__PURE__ */ p("span", { className: "yst-italic", children: "Just a moment while we get things ready for you..." })
|
|
21226
|
-
] }) }) :
|
|
21226
|
+
] }) }) : x ? /* @__PURE__ */ M("div", { className: "yst-space-y-8", children: [
|
|
21227
21227
|
/* @__PURE__ */ p(qP, {}),
|
|
21228
|
-
|
|
21229
|
-
|
|
21228
|
+
g !== gi.completed && m && /* @__PURE__ */ p(Jn, { className: "md:yst-col-span-2", variant: v, children: m }),
|
|
21229
|
+
C && /* @__PURE__ */ M("div", { className: "yst-space-y-4", children: [
|
|
21230
21230
|
/* @__PURE__ */ M("div", { className: "yst-flex yst-items-center yst-justify-between", children: [
|
|
21231
21231
|
/* @__PURE__ */ p(_t, { size: "2", children: "Your brand analysis" }),
|
|
21232
21232
|
/* @__PURE__ */ M(Ue, { as: ai, variant: "secondary", to: "/brands/".concat(n, "/brand-list"), className: Ce("yst-gap-1.5"), disabled: !n, children: [
|
|
@@ -31673,7 +31673,7 @@ var b9 = function(t) {
|
|
|
31673
31673
|
] }) : /* @__PURE__ */ M(De.Panel, { children: [
|
|
31674
31674
|
/* @__PURE__ */ p("div", { className: "yst-flex yst-items-start yst-justify-stretch yst-gap-4", children: /* @__PURE__ */ M("div", { className: "yst-flex-1", children: [
|
|
31675
31675
|
/* @__PURE__ */ p(De.Container.Header, { className: "yst-mb-3 yst-w-full", children: /* @__PURE__ */ p(De.Title, { as: "h3", className: "yst-text-center yst-text-lg yst-font-medium", children: "You've reached your active brand limit" }) }),
|
|
31676
|
-
/* @__PURE__ */ p(De.Container.Content, {
|
|
31676
|
+
/* @__PURE__ */ p(De.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." }) })
|
|
31677
31677
|
] }) }),
|
|
31678
31678
|
/* @__PURE__ */ p(De.Container.Footer, { children: /* @__PURE__ */ M("div", { className: "yst-flex yst-flex-col yst-justify-stretch yst-gap-2", children: [
|
|
31679
31679
|
c && /* @__PURE__ */ M(Ue, { variant: "upsell", className: "yst-flex yst-gap-1", onClick: c, children: [
|
|
@@ -31682,7 +31682,7 @@ var b9 = function(t) {
|
|
|
31682
31682
|
] }),
|
|
31683
31683
|
/* @__PURE__ */ p(Ue, { variant: "tertiary", className: "", onClick: function() {
|
|
31684
31684
|
return h(!1);
|
|
31685
|
-
}, children: "
|
|
31685
|
+
}, children: "Manage active brands" })
|
|
31686
31686
|
] }) })
|
|
31687
31687
|
] }) })
|
|
31688
31688
|
] });
|