@oneclick.dev/cms-core-modules 0.0.77 → 0.0.79

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.
Files changed (37) hide show
  1. package/dist/{AppointmentDetailsCard-i4Ky8WnK.mjs → AppointmentDetailsCard-Bu9VzIRx.mjs} +43 -43
  2. package/dist/AppointmentDetailsCard-LL-6PARb.js +1 -0
  3. package/dist/{AppointmentListTable-G5dIeCYj.mjs → AppointmentListTable-B8YLwOfT.mjs} +34 -34
  4. package/dist/AppointmentListTable-DNvvb4sz.js +1 -0
  5. package/dist/CountryBreakdownCard-BpDXbxwZ.js +1 -0
  6. package/dist/{CountryBreakdownCard-Dc_vZ9dJ.mjs → CountryBreakdownCard-oDzmpvAd.mjs} +45 -45
  7. package/dist/DeviceBreakdownCard-OXiU9Cf0.js +1 -0
  8. package/dist/{DeviceBreakdownCard-BJcQNo8a.mjs → DeviceBreakdownCard-Oh_yzipG.mjs} +63 -63
  9. package/dist/PeakHoursCard-DzNo4SNo.mjs +182 -0
  10. package/dist/PeakHoursCard-OkgI1vnd.js +1 -0
  11. package/dist/ProductDetailsCard-BBOorNmB.js +1 -0
  12. package/dist/{ProductDetailsCard-CJBkZSER.mjs → ProductDetailsCard-CYK9Mtt4.mjs} +42 -42
  13. package/dist/RealtimeCard-DESm9Fs_.js +1 -0
  14. package/dist/{RealtimeCard-CRJHS64l.mjs → RealtimeCard-tNUSIw6B.mjs} +44 -44
  15. package/dist/{SearchTermsCard-Dwa-P7My.mjs → SearchTermsCard-BVHFHWUZ.mjs} +63 -63
  16. package/dist/SearchTermsCard-DmyhGQVM.js +1 -0
  17. package/dist/{TopPagesCard-Dv52to_J.mjs → TopPagesCard-CRIa3rSZ.mjs} +52 -52
  18. package/dist/TopPagesCard-CgtNyhwY.js +1 -0
  19. package/dist/TrafficSourcesCard-CPAxaQTi.js +1 -0
  20. package/dist/{TrafficSourcesCard-CMhcj2k2.mjs → TrafficSourcesCard-Ct20QYax.mjs} +68 -68
  21. package/dist/VisitorStatsCard-Cs6jPehw.js +1 -0
  22. package/dist/{VisitorStatsCard-BHn4oSnt.mjs → VisitorStatsCard-DMULybKV.mjs} +57 -57
  23. package/dist/index.cjs.js +1 -1
  24. package/dist/index.mjs +11 -11
  25. package/package.json +3 -2
  26. package/dist/AppointmentDetailsCard-CtK0Cj_O.js +0 -1
  27. package/dist/AppointmentListTable-CQ3uXfa8.js +0 -1
  28. package/dist/CountryBreakdownCard-BUfJ-umQ.js +0 -1
  29. package/dist/DeviceBreakdownCard-CsoK6JUO.js +0 -1
  30. package/dist/PeakHoursCard-BNl_U1r_.js +0 -1
  31. package/dist/PeakHoursCard-hV8PdGsf.mjs +0 -182
  32. package/dist/ProductDetailsCard-BwktdlIf.js +0 -1
  33. package/dist/RealtimeCard-CxtqQHee.js +0 -1
  34. package/dist/SearchTermsCard-DGRbo5ZP.js +0 -1
  35. package/dist/TopPagesCard-pZ-nAsaI.js +0 -1
  36. package/dist/TrafficSourcesCard-CBOPV1J1.js +0 -1
  37. package/dist/VisitorStatsCard-tApB_7v8.js +0 -1
@@ -1,21 +1,21 @@
1
- import { defineComponent as R, computed as j, ref as m, onMounted as C, resolveComponent as S, openBlock as i, createElementBlock as n, unref as a, createVNode as o, createElementVNode as e, toDisplayString as r, Fragment as P, renderList as V, createCommentVNode as _, withCtx as D, createTextVNode as E } from "vue";
1
+ import { defineComponent as j, computed as C, ref as m, onMounted as S, resolveComponent as $, openBlock as o, createElementBlock as n, unref as a, createVNode as i, createElementVNode as e, toDisplayString as r, Fragment as P, renderList as V, createCommentVNode as _, withCtx as D, createTextVNode as E } from "vue";
2
2
  import { Loader2 as F, Radio as I, Users as h, ExternalLink as M } from "lucide-vue-next";
3
- const T = { class: "w-full" }, $ = {
3
+ const T = { class: "w-full" }, B = {
4
4
  key: 0,
5
5
  class: "flex items-center gap-2 py-3"
6
- }, B = {
6
+ }, O = {
7
7
  key: 1,
8
8
  class: "text-xs text-destructive py-2"
9
- }, O = {
9
+ }, q = {
10
10
  key: 2,
11
11
  class: "rounded-xl border bg-background overflow-hidden"
12
- }, q = { class: "px-3 py-2 border-b bg-muted/40 flex items-center justify-between" }, G = { class: "flex items-center gap-2" }, H = { class: "px-3 py-4 text-center" }, J = { class: "flex items-center justify-center gap-2 mb-1" }, K = { class: "text-3xl font-bold" }, Q = { class: "text-xs text-muted-foreground" }, W = {
12
+ }, G = { class: "px-3 py-2 border-b bg-muted/40 flex items-center justify-between" }, H = { class: "flex items-center gap-2" }, J = { class: "px-3 py-4 text-center" }, K = { class: "flex items-center justify-center gap-2 mb-1" }, Q = { class: "text-3xl font-bold" }, W = { class: "text-xs text-muted-foreground" }, X = {
13
13
  key: 0,
14
14
  class: "border-t"
15
- }, X = { class: "divide-y" }, Y = ["title"], Z = { class: "flex items-center gap-1 text-[10px] text-muted-foreground shrink-0 ml-2" }, ee = { class: "font-medium" }, te = { class: "px-3 py-2 border-t bg-muted/20 flex items-center justify-between" }, se = {
15
+ }, Y = { class: "divide-y" }, Z = ["title"], ee = { class: "flex items-center gap-1 text-[10px] text-muted-foreground shrink-0 ml-2" }, te = { class: "font-medium" }, se = { class: "px-3 py-2 border-t bg-muted/20 flex items-center justify-between" }, ae = {
16
16
  key: 0,
17
17
  class: "text-[10px] text-muted-foreground"
18
- }, ne = /* @__PURE__ */ R({
18
+ }, re = /* @__PURE__ */ j({
19
19
  __name: "RealtimeCard",
20
20
  props: {
21
21
  toolName: {},
@@ -27,19 +27,19 @@ const T = { class: "w-full" }, $ = {
27
27
  },
28
28
  emits: ["submit"],
29
29
  setup(v, { emit: y }) {
30
- const l = v, b = y, w = useRoute(), k = j(() => w.params.slug), N = useModuleApi(l.instanceId), p = m(!0), d = m(null), c = m(0), u = m([]), f = m(null);
30
+ const { $useRoute: b, $useModuleOverlay: oe } = useNuxtApp(), l = v, w = y, k = b(), N = C(() => k.params.slug), A = $useModuleApi(l.instanceId), p = m(!0), d = m(null), c = m(0), u = m([]), x = m(null);
31
31
  function U() {
32
32
  const s = l.resolvedArgs?._cachedData;
33
33
  return s ? (c.value = s.activeUsersRightNow || 0, u.value = (s.topActivePages || []).map((t) => ({
34
34
  page: t.page,
35
35
  activeUsers: t.activeUsers
36
- })), f.value = l.resolvedArgs._fetchedAt || null, p.value = !1, !0) : !1;
36
+ })), x.value = l.resolvedArgs._fetchedAt || null, p.value = !1, !0) : !1;
37
37
  }
38
- async function A() {
38
+ async function z() {
39
39
  p.value = !0, d.value = null;
40
40
  try {
41
- const s = await N.get("/realtime");
42
- c.value = s.activeUsers || 0, u.value = s.activePages || [], f.value = (/* @__PURE__ */ new Date()).toISOString(), g({
41
+ const s = await A.get("/realtime");
42
+ c.value = s.activeUsers || 0, u.value = s.activePages || [], x.value = (/* @__PURE__ */ new Date()).toISOString(), g({
43
43
  activeUsersRightNow: c.value,
44
44
  topActivePages: u.value.map((t) => ({
45
45
  page: t.page,
@@ -52,23 +52,23 @@ const T = { class: "w-full" }, $ = {
52
52
  p.value = !1;
53
53
  }
54
54
  }
55
- C(() => {
56
- l.status === "completed" && U() || A();
55
+ S(() => {
56
+ l.status === "completed" && U() || z();
57
57
  });
58
58
  function g(s) {
59
- l.status !== "completed" && b("submit", s);
59
+ l.status !== "completed" && w("submit", s);
60
60
  }
61
- const z = (s) => s ? new Date(s).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" }) : "";
61
+ const L = (s) => s ? new Date(s).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" }) : "";
62
62
  return (s, t) => {
63
- const L = S("NuxtLink");
64
- return i(), n("div", T, [
65
- a(p) ? (i(), n("div", $, [
66
- o(a(F), { class: "size-4 animate-spin text-muted-foreground" }),
63
+ const R = $("NuxtLink");
64
+ return o(), n("div", T, [
65
+ a(p) ? (o(), n("div", B, [
66
+ i(a(F), { class: "size-4 animate-spin text-muted-foreground" }),
67
67
  t[0] || (t[0] = e("span", { class: "text-xs text-muted-foreground" }, "Loading realtime data…", -1))
68
- ])) : a(d) ? (i(), n("div", B, r(a(d)), 1)) : (i(), n("div", O, [
69
- e("div", q, [
70
- e("div", G, [
71
- o(a(I), { class: "size-3.5 text-emerald-500" }),
68
+ ])) : a(d) ? (o(), n("div", O, r(a(d)), 1)) : (o(), n("div", q, [
69
+ e("div", G, [
70
+ e("div", H, [
71
+ i(a(I), { class: "size-3.5 text-emerald-500" }),
72
72
  t[1] || (t[1] = e("span", { class: "text-xs font-medium" }, "Realtime", -1))
73
73
  ]),
74
74
  t[2] || (t[2] = e("span", { class: "relative flex size-2" }, [
@@ -76,41 +76,41 @@ const T = { class: "w-full" }, $ = {
76
76
  e("span", { class: "relative inline-flex rounded-full size-2 bg-emerald-500" })
77
77
  ], -1))
78
78
  ]),
79
- e("div", H, [
80
- e("div", J, [
81
- o(a(h), { class: "size-5 text-primary" }),
82
- e("span", K, r(a(c)), 1)
79
+ e("div", J, [
80
+ e("div", K, [
81
+ i(a(h), { class: "size-5 text-primary" }),
82
+ e("span", Q, r(a(c)), 1)
83
83
  ]),
84
- e("p", Q, "active " + r(a(c) === 1 ? "user" : "users") + " right now", 1)
84
+ e("p", W, "active " + r(a(c) === 1 ? "user" : "users") + " right now", 1)
85
85
  ]),
86
- a(u).length > 0 ? (i(), n("div", W, [
86
+ a(u).length > 0 ? (o(), n("div", X, [
87
87
  t[3] || (t[3] = e("div", { class: "px-3 py-1.5 bg-muted/20" }, [
88
88
  e("span", { class: "text-[10px] font-medium text-muted-foreground uppercase tracking-wide" }, "Active Pages")
89
89
  ], -1)),
90
- e("div", X, [
91
- (i(!0), n(P, null, V(a(u), (x) => (i(), n("div", {
92
- key: x.page,
90
+ e("div", Y, [
91
+ (o(!0), n(P, null, V(a(u), (f) => (o(), n("div", {
92
+ key: f.page,
93
93
  class: "px-3 py-2 flex items-center justify-between hover:bg-muted/30 transition-colors"
94
94
  }, [
95
95
  e("span", {
96
96
  class: "text-xs truncate flex-1",
97
- title: x.page
98
- }, r(x.page), 9, Y),
99
- e("div", Z, [
100
- o(a(h), { class: "size-2.5" }),
101
- e("span", ee, r(x.activeUsers), 1)
97
+ title: f.page
98
+ }, r(f.page), 9, Z),
99
+ e("div", ee, [
100
+ i(a(h), { class: "size-2.5" }),
101
+ e("span", te, r(f.activeUsers), 1)
102
102
  ])
103
103
  ]))), 128))
104
104
  ])
105
105
  ])) : _("", !0),
106
- e("div", te, [
107
- a(f) ? (i(), n("span", se, " Fetched " + r(z(a(f))), 1)) : _("", !0),
108
- o(L, {
109
- to: `/projects/${a(k)}/modules/${v.instanceId}`,
106
+ e("div", se, [
107
+ a(x) ? (o(), n("span", ae, " Fetched " + r(L(a(x))), 1)) : _("", !0),
108
+ i(R, {
109
+ to: `/projects/${a(N)}/modules/${v.instanceId}`,
110
110
  class: "inline-flex items-center gap-1.5 text-xs text-primary hover:underline"
111
111
  }, {
112
112
  default: D(() => [
113
- o(a(M), { class: "size-3" }),
113
+ i(a(M), { class: "size-3" }),
114
114
  t[4] || (t[4] = E(" View full report ", -1))
115
115
  ]),
116
116
  _: 1
@@ -122,5 +122,5 @@ const T = { class: "w-full" }, $ = {
122
122
  }
123
123
  });
124
124
  export {
125
- ne as default
125
+ re as default
126
126
  };
@@ -1,24 +1,24 @@
1
- import { defineComponent as O, computed as _, ref as h, onMounted as H, resolveComponent as J, openBlock as u, createElementBlock as m, unref as s, createVNode as l, createElementVNode as o, toDisplayString as i, Fragment as C, renderList as W, normalizeStyle as X, createTextVNode as g, createCommentVNode as Y, withCtx as Z } from "vue";
2
- import { Loader2 as ee, Search as z, MousePointerClick as A, Eye as se, TrendingUp as N, Hash as te, Users as oe, ExternalLink as ne } from "lucide-vue-next";
3
- const ae = { class: "w-full" }, re = {
1
+ import { defineComponent as H, computed as _, ref as h, onMounted as J, resolveComponent as W, openBlock as u, createElementBlock as m, unref as s, createVNode as l, createElementVNode as o, toDisplayString as i, Fragment as A, renderList as X, normalizeStyle as Y, createTextVNode as g, createCommentVNode as Z, withCtx as ee } from "vue";
2
+ import { Loader2 as se, Search as C, MousePointerClick as z, Eye as te, TrendingUp as N, Hash as oe, Users as ne, ExternalLink as ae } from "lucide-vue-next";
3
+ const re = { class: "w-full" }, ie = {
4
4
  key: 0,
5
5
  class: "flex items-center gap-2 py-3"
6
- }, ie = {
6
+ }, le = {
7
7
  key: 1,
8
8
  class: "text-xs text-destructive py-2"
9
- }, le = {
9
+ }, ce = {
10
10
  key: 2,
11
11
  class: "rounded-xl border bg-background p-4 text-center space-y-2"
12
- }, ce = {
12
+ }, de = {
13
13
  key: 3,
14
14
  class: "rounded-xl border bg-background overflow-hidden"
15
- }, de = { class: "px-3 py-2 border-b bg-muted/40 flex items-center justify-between" }, ue = { class: "flex items-center gap-2" }, me = { class: "text-xs font-medium" }, ge = { class: "text-[10px] text-muted-foreground" }, pe = { class: "divide-y" }, he = { class: "flex items-center gap-2 mb-1.5" }, fe = { class: "text-[10px] font-medium text-muted-foreground w-5 text-right shrink-0" }, xe = { class: "text-xs font-medium truncate flex-1" }, _e = { class: "ml-7 space-y-1.5" }, ve = { class: "h-1.5 rounded-full bg-muted overflow-hidden" }, ye = {
15
+ }, ue = { class: "px-3 py-2 border-b bg-muted/40 flex items-center justify-between" }, me = { class: "flex items-center gap-2" }, ge = { class: "text-xs font-medium" }, pe = { class: "text-[10px] text-muted-foreground" }, he = { class: "divide-y" }, fe = { class: "flex items-center gap-2 mb-1.5" }, xe = { class: "text-[10px] font-medium text-muted-foreground w-5 text-right shrink-0" }, _e = { class: "text-xs font-medium truncate flex-1" }, ve = { class: "ml-7 space-y-1.5" }, ye = { class: "h-1.5 rounded-full bg-muted overflow-hidden" }, be = {
16
16
  key: 0,
17
17
  class: "flex items-center gap-3 text-[10px] text-muted-foreground"
18
- }, be = { class: "flex items-center gap-1" }, ke = { class: "flex items-center gap-1" }, Se = { class: "flex items-center gap-1" }, Te = { class: "flex items-center gap-1" }, $e = {
18
+ }, ke = { class: "flex items-center gap-1" }, Se = { class: "flex items-center gap-1" }, $e = { class: "flex items-center gap-1" }, Te = { class: "flex items-center gap-1" }, we = {
19
19
  key: 1,
20
20
  class: "flex items-center gap-3 text-[10px] text-muted-foreground"
21
- }, we = { class: "flex items-center gap-1" }, Le = { class: "flex items-center gap-1" }, Ce = { class: "flex items-center gap-1" }, ze = { class: "px-3 py-2 border-t bg-muted/20 flex items-center justify-between" }, Ae = { class: "text-[10px] text-muted-foreground" }, Fe = /* @__PURE__ */ O({
21
+ }, Le = { class: "flex items-center gap-1" }, Ae = { class: "flex items-center gap-1" }, Ce = { class: "flex items-center gap-1" }, ze = { class: "px-3 py-2 border-t bg-muted/20 flex items-center justify-between" }, Ne = { class: "text-[10px] text-muted-foreground" }, Pe = /* @__PURE__ */ H({
22
22
  __name: "SearchTermsCard",
23
23
  props: {
24
24
  toolName: {},
@@ -29,9 +29,9 @@ const ae = { class: "w-full" }, re = {
29
29
  status: {}
30
30
  },
31
31
  emits: ["submit"],
32
- setup(T, { emit: D }) {
33
- const p = T, F = D, P = useRoute(), M = _(() => P.params.slug), R = useModuleApi(p.instanceId), v = h(!0), f = h(null), n = h([]), $ = h(0), y = h(null), x = h("google_ads"), U = (e) => e.label || e.query || e.sessionGoogleAdsQuery || e.landingPagePlusQueryString || "—";
34
- function j() {
32
+ setup($, { emit: D }) {
33
+ const { $useRoute: F, $useModuleOverlay: De } = useNuxtApp(), p = $, M = D, P = F(), R = _(() => P.params.slug), U = $useModuleApi(p.instanceId), v = h(!0), f = h(null), n = h([]), T = h(0), y = h(null), x = h("google_ads"), j = (e) => e.label || e.query || e.sessionGoogleAdsQuery || e.landingPagePlusQueryString || "—";
34
+ function E() {
35
35
  const e = p.resolvedArgs?._cachedData;
36
36
  return e ? (x.value = e.source || "google_ads", e.source === "search_console" ? n.value = (e.searchTerms || []).map((t) => ({
37
37
  label: t.term,
@@ -44,15 +44,15 @@ const ae = { class: "w-full" }, re = {
44
44
  sessions: t.sessions,
45
45
  totalUsers: t.users,
46
46
  engagementRate: parseFloat(t.engagementRate) / 100
47
- })), $.value = e.count || n.value.length, y.value = p.resolvedArgs._fetchedAt || null, v.value = !1, !0) : !1;
47
+ })), T.value = e.count || n.value.length, y.value = p.resolvedArgs._fetchedAt || null, v.value = !1, !0) : !1;
48
48
  }
49
- async function E() {
49
+ async function V() {
50
50
  const { startDate: e, endDate: t } = p.resolvedArgs || {};
51
51
  v.value = !0, f.value = null;
52
52
  try {
53
53
  const c = new URLSearchParams();
54
54
  e && c.set("startDate", e), t && c.set("endDate", t);
55
- const a = await R.get(`/content/search-terms?${c.toString()}`), d = a.source || "google_ads";
55
+ const a = await U.get(`/content/search-terms?${c.toString()}`), d = a.source || "google_ads";
56
56
  if (x.value = d, d === "search_console")
57
57
  n.value = (a.rows || []).map((r) => ({
58
58
  ...r,
@@ -65,8 +65,8 @@ const ae = { class: "w-full" }, re = {
65
65
  label: k[r]
66
66
  }));
67
67
  }
68
- $.value = a.rowCount || n.value.length, y.value = (/* @__PURE__ */ new Date()).toISOString();
69
- const K = () => {
68
+ T.value = a.rowCount || n.value.length, y.value = (/* @__PURE__ */ new Date()).toISOString();
69
+ const O = () => {
70
70
  if (n.value.length === 0) return "No search data found for this period.";
71
71
  const r = n.value.slice(0, 5).map((k) => k.label).join(", ");
72
72
  return d === "search_console" ? `Found ${n.value.length} search queries from Google Search Console. The top keywords are: ${r}.` : d === "organic_landing_pages" ? `Found ${n.value.length} pages receiving organic search traffic. The top organic landing pages are: ${r}.` : `Found ${n.value.length} search terms. The top keywords driving traffic are: ${r}.`;
@@ -86,7 +86,7 @@ const ae = { class: "w-full" }, re = {
86
86
  count: n.value.length,
87
87
  source: d,
88
88
  searchTerms: B,
89
- suggestion: K()
89
+ suggestion: O()
90
90
  });
91
91
  } catch (c) {
92
92
  f.value = c?.data?.statusMessage || c?.message || "Failed to load search data", w(`Error loading search data: ${f.value}`);
@@ -94,75 +94,75 @@ const ae = { class: "w-full" }, re = {
94
94
  v.value = !1;
95
95
  }
96
96
  }
97
- H(() => {
98
- p.status === "completed" && j() || E();
97
+ J(() => {
98
+ p.status === "completed" && E() || V();
99
99
  });
100
100
  function w(e) {
101
- p.status !== "completed" && F("submit", e);
101
+ p.status !== "completed" && M("submit", e);
102
102
  }
103
- const b = (e) => e == null ? "0" : Math.round(e).toLocaleString(), L = (e) => e == null ? "0%" : `${(e * 100).toFixed(1)}%`, V = (e) => e == null ? "—" : e.toFixed(1), G = (e) => e ? new Date(e).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" }) : "", S = _(() => x.value === "search_console"), I = _(() => n.value.length === 0 ? 1 : S.value ? Math.max(...n.value.map((e) => e.clicks || 0)) : Math.max(...n.value.map((e) => e.sessions || 0))), Q = _(() => x.value === "search_console" ? "Search Keywords (Search Console)" : x.value === "organic_landing_pages" ? "Top Organic Landing Pages" : "Search Terms & Keywords"), q = _(() => {
103
+ const b = (e) => e == null ? "0" : Math.round(e).toLocaleString(), L = (e) => e == null ? "0%" : `${(e * 100).toFixed(1)}%`, G = (e) => e == null ? "—" : e.toFixed(1), I = (e) => e ? new Date(e).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" }) : "", S = _(() => x.value === "search_console"), Q = _(() => n.value.length === 0 ? 1 : S.value ? Math.max(...n.value.map((e) => e.clicks || 0)) : Math.max(...n.value.map((e) => e.sessions || 0))), q = _(() => x.value === "search_console" ? "Search Keywords (Search Console)" : x.value === "organic_landing_pages" ? "Top Organic Landing Pages" : "Search Terms & Keywords"), K = _(() => {
104
104
  const { startDate: e, endDate: t } = p.resolvedArgs || {};
105
105
  if (!e && !t) return "Last 30 days";
106
106
  const c = e || "30daysAgo", a = c.match(/^(\d+)daysAgo$/);
107
107
  return a ? `Last ${a[1]} days` : `${c} → ${t || "today"}`;
108
108
  });
109
109
  return (e, t) => {
110
- const c = J("NuxtLink");
111
- return u(), m("div", ae, [
112
- s(v) ? (u(), m("div", re, [
113
- l(s(ee), { class: "size-4 animate-spin text-muted-foreground" }),
110
+ const c = W("NuxtLink");
111
+ return u(), m("div", re, [
112
+ s(v) ? (u(), m("div", ie, [
113
+ l(s(se), { class: "size-4 animate-spin text-muted-foreground" }),
114
114
  t[0] || (t[0] = o("span", { class: "text-xs text-muted-foreground" }, "Loading search data…", -1))
115
- ])) : s(f) ? (u(), m("div", ie, i(s(f)), 1)) : s(n).length === 0 ? (u(), m("div", le, [
116
- l(s(z), { class: "size-8 text-muted-foreground mx-auto" }),
115
+ ])) : s(f) ? (u(), m("div", le, i(s(f)), 1)) : s(n).length === 0 ? (u(), m("div", ce, [
116
+ l(s(C), { class: "size-8 text-muted-foreground mx-auto" }),
117
117
  t[1] || (t[1] = o("p", { class: "text-sm text-muted-foreground" }, "No search data found for this period.", -1))
118
- ])) : (u(), m("div", ce, [
119
- o("div", de, [
120
- o("div", ue, [
121
- l(s(z), { class: "size-3.5 text-primary" }),
122
- o("span", me, i(s(Q)), 1)
118
+ ])) : (u(), m("div", de, [
119
+ o("div", ue, [
120
+ o("div", me, [
121
+ l(s(C), { class: "size-3.5 text-primary" }),
122
+ o("span", ge, i(s(q)), 1)
123
123
  ]),
124
- o("span", ge, i(s(q)), 1)
124
+ o("span", pe, i(s(K)), 1)
125
125
  ]),
126
- o("div", pe, [
127
- (u(!0), m(C, null, W(s(n), (a, d) => (u(), m("div", {
126
+ o("div", he, [
127
+ (u(!0), m(A, null, X(s(n), (a, d) => (u(), m("div", {
128
128
  key: d,
129
129
  class: "px-3 py-2.5 hover:bg-muted/30 transition-colors"
130
130
  }, [
131
- o("div", he, [
132
- o("span", fe, i(d + 1) + ".", 1),
133
- o("span", xe, i(U(a)), 1)
131
+ o("div", fe, [
132
+ o("span", xe, i(d + 1) + ".", 1),
133
+ o("span", _e, i(j(a)), 1)
134
134
  ]),
135
- o("div", _e, [
136
- o("div", ve, [
135
+ o("div", ve, [
136
+ o("div", ye, [
137
137
  o("div", {
138
138
  class: "h-full rounded-full bg-amber-500/70 transition-all",
139
- style: X({ width: `${((s(S) ? a.clicks : a.sessions) || 0) / s(I) * 100}%` })
139
+ style: Y({ width: `${((s(S) ? a.clicks : a.sessions) || 0) / s(Q) * 100}%` })
140
140
  }, null, 4)
141
141
  ]),
142
- s(S) ? (u(), m("div", ye, [
143
- o("span", be, [
144
- l(s(A), { class: "size-2.5" }),
142
+ s(S) ? (u(), m("div", be, [
143
+ o("span", ke, [
144
+ l(s(z), { class: "size-2.5" }),
145
145
  g(" " + i(b(a.clicks)) + " clicks ", 1)
146
146
  ]),
147
- o("span", ke, [
148
- l(s(se), { class: "size-2.5" }),
147
+ o("span", Se, [
148
+ l(s(te), { class: "size-2.5" }),
149
149
  g(" " + i(b(a.impressions)) + " impr. ", 1)
150
150
  ]),
151
- o("span", Se, [
151
+ o("span", $e, [
152
152
  l(s(N), { class: "size-2.5" }),
153
153
  g(" " + i(L(a.ctr)) + " CTR ", 1)
154
154
  ]),
155
155
  o("span", Te, [
156
- l(s(te), { class: "size-2.5" }),
157
- g(" pos " + i(V(a.position)), 1)
156
+ l(s(oe), { class: "size-2.5" }),
157
+ g(" pos " + i(G(a.position)), 1)
158
158
  ])
159
- ])) : (u(), m("div", $e, [
160
- o("span", we, [
161
- l(s(A), { class: "size-2.5" }),
159
+ ])) : (u(), m("div", we, [
160
+ o("span", Le, [
161
+ l(s(z), { class: "size-2.5" }),
162
162
  g(" " + i(b(a.sessions)) + " sessions ", 1)
163
163
  ]),
164
- o("span", Le, [
165
- l(s(oe), { class: "size-2.5" }),
164
+ o("span", Ae, [
165
+ l(s(ne), { class: "size-2.5" }),
166
166
  g(" " + i(b(a.totalUsers)) + " users ", 1)
167
167
  ]),
168
168
  o("span", Ce, [
@@ -174,18 +174,18 @@ const ae = { class: "w-full" }, re = {
174
174
  ]))), 128))
175
175
  ]),
176
176
  o("div", ze, [
177
- o("span", Ae, [
177
+ o("span", Ne, [
178
178
  g(i(s(n).length) + " result" + i(s(n).length === 1 ? "" : "s") + " ", 1),
179
- s(y) ? (u(), m(C, { key: 0 }, [
180
- g(" · fetched " + i(G(s(y))), 1)
181
- ], 64)) : Y("", !0)
179
+ s(y) ? (u(), m(A, { key: 0 }, [
180
+ g(" · fetched " + i(I(s(y))), 1)
181
+ ], 64)) : Z("", !0)
182
182
  ]),
183
183
  l(c, {
184
- to: `/projects/${s(M)}/modules/${T.instanceId}`,
184
+ to: `/projects/${s(R)}/modules/${$.instanceId}`,
185
185
  class: "inline-flex items-center gap-1.5 text-xs text-primary hover:underline"
186
186
  }, {
187
- default: Z(() => [
188
- l(s(ne), { class: "size-3" }),
187
+ default: ee(() => [
188
+ l(s(ae), { class: "size-3" }),
189
189
  t[2] || (t[2] = g(" View full report ", -1))
190
190
  ]),
191
191
  _: 1
@@ -197,5 +197,5 @@ const ae = { class: "w-full" }, re = {
197
197
  }
198
198
  });
199
199
  export {
200
- Fe as default
200
+ Pe as default
201
201
  };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("lucide-vue-next"),M={class:"w-full"},P={key:0,class:"flex items-center gap-2 py-3"},R={key:1,class:"text-xs text-destructive py-2"},U={key:2,class:"rounded-xl border bg-background p-4 text-center space-y-2"},j={key:3,class:"rounded-xl border bg-background overflow-hidden"},q={class:"px-3 py-2 border-b bg-muted/40 flex items-center justify-between"},G={class:"flex items-center gap-2"},I={class:"text-xs font-medium"},O={class:"text-[10px] text-muted-foreground"},Q={class:"divide-y"},K={class:"flex items-center gap-2 mb-1.5"},H={class:"text-[10px] font-medium text-muted-foreground w-5 text-right shrink-0"},J={class:"text-xs font-medium truncate flex-1"},W={class:"ml-7 space-y-1.5"},X={class:"h-1.5 rounded-full bg-muted overflow-hidden"},Y={key:0,class:"flex items-center gap-3 text-[10px] text-muted-foreground"},Z={class:"flex items-center gap-1"},ee={class:"flex items-center gap-1"},te={class:"flex items-center gap-1"},se={class:"flex items-center gap-1"},oe={key:1,class:"flex items-center gap-3 text-[10px] text-muted-foreground"},ne={class:"flex items-center gap-1"},re={class:"flex items-center gap-1"},ae={class:"flex items-center gap-1"},ce={class:"px-3 py-2 border-t bg-muted/20 flex items-center justify-between"},le={class:"text-[10px] text-muted-foreground"},ie=e.defineComponent({__name:"SearchTermsCard",props:{toolName:{},instanceId:{},instanceName:{},moduleType:{},resolvedArgs:{},status:{}},emits:["submit"],setup(x,{emit:N}){const{$useRoute:V,$useModuleOverlay:de}=useNuxtApp(),i=x,k=N,S=V(),b=e.computed(()=>S.params.slug),E=$useModuleApi(i.instanceId),m=e.ref(!0),d=e.ref(null),o=e.ref([]),_=e.ref(0),g=e.ref(null),u=e.ref("google_ads"),T=t=>t.label||t.query||t.sessionGoogleAdsQuery||t.landingPagePlusQueryString||"—";function D(){const t=i.resolvedArgs?._cachedData;return t?(u.value=t.source||"google_ads",t.source==="search_console"?o.value=(t.searchTerms||[]).map(s=>({label:s.term,clicks:s.clicks,impressions:s.impressions,ctr:s.ctr,position:s.position})):o.value=(t.searchTerms||[]).map(s=>({label:s.term,sessions:s.sessions,totalUsers:s.users,engagementRate:parseFloat(s.engagementRate)/100})),_.value=t.count||o.value.length,g.value=i.resolvedArgs._fetchedAt||null,m.value=!1,!0):!1}async function B(){const{startDate:t,endDate:s}=i.resolvedArgs||{};m.value=!0,d.value=null;try{const a=new URLSearchParams;t&&a.set("startDate",t),s&&a.set("endDate",s);const n=await E.get(`/content/search-terms?${a.toString()}`),l=n.source||"google_ads";if(u.value=l,l==="search_console")o.value=(n.rows||[]).map(r=>({...r,label:r.query}));else{const r=l==="organic_landing_pages"?"landingPagePlusQueryString":"sessionGoogleAdsQuery";o.value=(n.rows||[]).map(f=>({...f,label:f[r]}))}_.value=n.rowCount||o.value.length,g.value=new Date().toISOString();const z=()=>{if(o.value.length===0)return"No search data found for this period.";const r=o.value.slice(0,5).map(f=>f.label).join(", ");return l==="search_console"?`Found ${o.value.length} search queries from Google Search Console. The top keywords are: ${r}.`:l==="organic_landing_pages"?`Found ${o.value.length} pages receiving organic search traffic. The top organic landing pages are: ${r}.`:`Found ${o.value.length} search terms. The top keywords driving traffic are: ${r}.`},F=o.value.map(r=>l==="search_console"?{term:r.label,clicks:r.clicks,impressions:r.impressions,ctr:r.ctr,position:r.position}:{term:r.label,sessions:r.sessions,users:r.totalUsers,engagementRate:`${(r.engagementRate*100).toFixed(1)}%`});v({count:o.value.length,source:l,searchTerms:F,suggestion:z()})}catch(a){d.value=a?.data?.statusMessage||a?.message||"Failed to load search data",v(`Error loading search data: ${d.value}`)}finally{m.value=!1}}e.onMounted(()=>{i.status==="completed"&&D()||B()});function v(t){i.status!=="completed"&&k("submit",t)}const p=t=>t==null?"0":Math.round(t).toLocaleString(),y=t=>t==null?"0%":`${(t*100).toFixed(1)}%`,$=t=>t==null?"—":t.toFixed(1),w=t=>t?new Date(t).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"",h=e.computed(()=>u.value==="search_console"),C=e.computed(()=>o.value.length===0?1:h.value?Math.max(...o.value.map(t=>t.clicks||0)):Math.max(...o.value.map(t=>t.sessions||0))),L=e.computed(()=>u.value==="search_console"?"Search Keywords (Search Console)":u.value==="organic_landing_pages"?"Top Organic Landing Pages":"Search Terms & Keywords"),A=e.computed(()=>{const{startDate:t,endDate:s}=i.resolvedArgs||{};if(!t&&!s)return"Last 30 days";const a=t||"30daysAgo",n=a.match(/^(\d+)daysAgo$/);return n?`Last ${n[1]} days`:`${a} → ${s||"today"}`});return(t,s)=>{const a=e.resolveComponent("NuxtLink");return e.openBlock(),e.createElementBlock("div",M,[e.unref(m)?(e.openBlock(),e.createElementBlock("div",P,[e.createVNode(e.unref(c.Loader2),{class:"size-4 animate-spin text-muted-foreground"}),s[0]||(s[0]=e.createElementVNode("span",{class:"text-xs text-muted-foreground"},"Loading search data…",-1))])):e.unref(d)?(e.openBlock(),e.createElementBlock("div",R,e.toDisplayString(e.unref(d)),1)):e.unref(o).length===0?(e.openBlock(),e.createElementBlock("div",U,[e.createVNode(e.unref(c.Search),{class:"size-8 text-muted-foreground mx-auto"}),s[1]||(s[1]=e.createElementVNode("p",{class:"text-sm text-muted-foreground"},"No search data found for this period.",-1))])):(e.openBlock(),e.createElementBlock("div",j,[e.createElementVNode("div",q,[e.createElementVNode("div",G,[e.createVNode(e.unref(c.Search),{class:"size-3.5 text-primary"}),e.createElementVNode("span",I,e.toDisplayString(e.unref(L)),1)]),e.createElementVNode("span",O,e.toDisplayString(e.unref(A)),1)]),e.createElementVNode("div",Q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o),(n,l)=>(e.openBlock(),e.createElementBlock("div",{key:l,class:"px-3 py-2.5 hover:bg-muted/30 transition-colors"},[e.createElementVNode("div",K,[e.createElementVNode("span",H,e.toDisplayString(l+1)+".",1),e.createElementVNode("span",J,e.toDisplayString(T(n)),1)]),e.createElementVNode("div",W,[e.createElementVNode("div",X,[e.createElementVNode("div",{class:"h-full rounded-full bg-amber-500/70 transition-all",style:e.normalizeStyle({width:`${((e.unref(h)?n.clicks:n.sessions)||0)/e.unref(C)*100}%`})},null,4)]),e.unref(h)?(e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("span",Z,[e.createVNode(e.unref(c.MousePointerClick),{class:"size-2.5"}),e.createTextVNode(" "+e.toDisplayString(p(n.clicks))+" clicks ",1)]),e.createElementVNode("span",ee,[e.createVNode(e.unref(c.Eye),{class:"size-2.5"}),e.createTextVNode(" "+e.toDisplayString(p(n.impressions))+" impr. ",1)]),e.createElementVNode("span",te,[e.createVNode(e.unref(c.TrendingUp),{class:"size-2.5"}),e.createTextVNode(" "+e.toDisplayString(y(n.ctr))+" CTR ",1)]),e.createElementVNode("span",se,[e.createVNode(e.unref(c.Hash),{class:"size-2.5"}),e.createTextVNode(" pos "+e.toDisplayString($(n.position)),1)])])):(e.openBlock(),e.createElementBlock("div",oe,[e.createElementVNode("span",ne,[e.createVNode(e.unref(c.MousePointerClick),{class:"size-2.5"}),e.createTextVNode(" "+e.toDisplayString(p(n.sessions))+" sessions ",1)]),e.createElementVNode("span",re,[e.createVNode(e.unref(c.Users),{class:"size-2.5"}),e.createTextVNode(" "+e.toDisplayString(p(n.totalUsers))+" users ",1)]),e.createElementVNode("span",ae,[e.createVNode(e.unref(c.TrendingUp),{class:"size-2.5"}),e.createTextVNode(" "+e.toDisplayString(y(n.engagementRate))+" engaged ",1)])]))])]))),128))]),e.createElementVNode("div",ce,[e.createElementVNode("span",le,[e.createTextVNode(e.toDisplayString(e.unref(o).length)+" result"+e.toDisplayString(e.unref(o).length===1?"":"s")+" ",1),e.unref(g)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" · fetched "+e.toDisplayString(w(e.unref(g))),1)],64)):e.createCommentVNode("",!0)]),e.createVNode(a,{to:`/projects/${e.unref(b)}/modules/${x.instanceId}`,class:"inline-flex items-center gap-1.5 text-xs text-primary hover:underline"},{default:e.withCtx(()=>[e.createVNode(e.unref(c.ExternalLink),{class:"size-3"}),s[2]||(s[2]=e.createTextVNode(" View full report ",-1))]),_:1},8,["to"])])]))])}}});exports.default=ie;
@@ -1,18 +1,18 @@
1
- import { defineComponent as U, computed as w, ref as f, onMounted as j, resolveComponent as F, openBlock as d, createElementBlock as c, unref as s, createVNode as u, createElementVNode as a, toDisplayString as i, Fragment as P, renderList as B, normalizeStyle as R, createTextVNode as g, createCommentVNode as O, withCtx as q } from "vue";
2
- import { Loader2 as G, FileText as S, Eye as H, Users as J, Clock as K, ExternalLink as Q } from "lucide-vue-next";
3
- const W = { class: "w-full" }, X = {
1
+ import { defineComponent as j, computed as w, ref as f, onMounted as F, resolveComponent as B, openBlock as d, createElementBlock as u, unref as s, createVNode as c, createElementVNode as a, toDisplayString as i, Fragment as P, renderList as O, normalizeStyle as R, createTextVNode as g, createCommentVNode as q, withCtx as G } from "vue";
2
+ import { Loader2 as H, FileText as $, Eye as J, Users as K, Clock as Q, ExternalLink as W } from "lucide-vue-next";
3
+ const X = { class: "w-full" }, Y = {
4
4
  key: 0,
5
5
  class: "flex items-center gap-2 py-3"
6
- }, Y = {
6
+ }, Z = {
7
7
  key: 1,
8
8
  class: "text-xs text-destructive py-2"
9
- }, Z = {
9
+ }, ee = {
10
10
  key: 2,
11
11
  class: "rounded-xl border bg-background p-4 text-center"
12
- }, ee = {
12
+ }, te = {
13
13
  key: 3,
14
14
  class: "rounded-xl border bg-background overflow-hidden"
15
- }, te = { class: "px-3 py-2 border-b bg-muted/40 flex items-center justify-between" }, se = { class: "flex items-center gap-2" }, ae = { class: "text-[10px] text-muted-foreground" }, oe = { class: "divide-y" }, ne = { class: "flex items-center gap-2 mb-1.5" }, re = { class: "text-[10px] font-medium text-muted-foreground w-5 text-right shrink-0" }, ie = ["title"], le = { class: "ml-7 space-y-1.5" }, de = { class: "h-1.5 rounded-full bg-muted overflow-hidden" }, ce = { class: "flex items-center gap-3 text-[10px] text-muted-foreground" }, ue = { class: "flex items-center gap-1" }, me = { class: "flex items-center gap-1" }, ge = { class: "flex items-center gap-1" }, pe = { class: "px-3 py-2 border-t bg-muted/20 flex items-center justify-between" }, fe = { class: "text-[10px] text-muted-foreground" }, he = /* @__PURE__ */ U({
15
+ }, se = { class: "px-3 py-2 border-b bg-muted/40 flex items-center justify-between" }, ae = { class: "flex items-center gap-2" }, oe = { class: "text-[10px] text-muted-foreground" }, ne = { class: "divide-y" }, re = { class: "flex items-center gap-2 mb-1.5" }, ie = { class: "text-[10px] font-medium text-muted-foreground w-5 text-right shrink-0" }, le = ["title"], de = { class: "ml-7 space-y-1.5" }, ue = { class: "h-1.5 rounded-full bg-muted overflow-hidden" }, ce = { class: "flex items-center gap-3 text-[10px] text-muted-foreground" }, me = { class: "flex items-center gap-1" }, ge = { class: "flex items-center gap-1" }, pe = { class: "flex items-center gap-1" }, fe = { class: "px-3 py-2 border-t bg-muted/20 flex items-center justify-between" }, xe = { class: "text-[10px] text-muted-foreground" }, ye = /* @__PURE__ */ j({
16
16
  __name: "TopPagesCard",
17
17
  props: {
18
18
  toolName: {},
@@ -23,29 +23,29 @@ const W = { class: "w-full" }, X = {
23
23
  status: {}
24
24
  },
25
25
  emits: ["submit"],
26
- setup(b, { emit: L }) {
27
- const m = b, $ = L, V = useRoute(), A = w(() => V.params.slug), N = useModuleApi(m.instanceId), x = f(!0), p = f(null), r = f([]), v = f(0), h = f(null);
26
+ setup(b, { emit: S }) {
27
+ const { $useRoute: L, $useModuleOverlay: ve } = useNuxtApp(), m = b, A = S, N = L(), V = w(() => N.params.slug), M = $useModuleApi(m.instanceId), x = f(!0), p = f(null), r = f([]), v = f(0), h = f(null);
28
28
  function C() {
29
29
  const e = m.resolvedArgs?._cachedData;
30
30
  return e ? (r.value = e.pages?.map((t) => ({
31
31
  pagePath: t.page,
32
32
  screenPageViews: t.views,
33
33
  totalUsers: t.users,
34
- averageSessionDuration: M(t.avgDuration)
34
+ averageSessionDuration: T(t.avgDuration)
35
35
  })) || [], v.value = e.totalPagesTracked || r.value.length, h.value = m.resolvedArgs._fetchedAt || null, x.value = !1, !0) : !1;
36
36
  }
37
- function M(e) {
37
+ function T(e) {
38
38
  if (!e) return 0;
39
39
  const t = e.match(/(\d+)m/), n = e.match(/(\d+)s/);
40
40
  return (t ? parseInt(t[1]) * 60 : 0) + (n ? parseInt(n[1]) : 0);
41
41
  }
42
- async function T() {
42
+ async function z() {
43
43
  const { startDate: e, endDate: t, limit: n } = m.resolvedArgs || {};
44
44
  x.value = !0, p.value = null;
45
45
  try {
46
46
  const o = new URLSearchParams();
47
47
  e && o.set("startDate", e), t && o.set("endDate", t), n && o.set("limit", String(n));
48
- const l = await N.get(`/top-pages?${o.toString()}`);
48
+ const l = await M.get(`/top-pages?${o.toString()}`);
49
49
  r.value = l.rows || [], v.value = l.rowCount || r.value.length, h.value = (/* @__PURE__ */ new Date()).toISOString(), k({
50
50
  count: r.value.length,
51
51
  totalPagesTracked: v.value,
@@ -62,88 +62,88 @@ const W = { class: "w-full" }, X = {
62
62
  x.value = !1;
63
63
  }
64
64
  }
65
- j(() => {
66
- m.status === "completed" && C() || T();
65
+ F(() => {
66
+ m.status === "completed" && C() || z();
67
67
  });
68
68
  function k(e) {
69
- m.status !== "completed" && $("submit", e);
69
+ m.status !== "completed" && A("submit", e);
70
70
  }
71
71
  const D = (e) => {
72
72
  if (!e) return "0s";
73
73
  const t = Math.floor(e / 60), n = Math.round(e % 60);
74
74
  return t > 0 ? `${t}m ${n}s` : `${n}s`;
75
- }, y = (e) => e == null ? "0" : e.toLocaleString(), z = (e) => e ? new Date(e).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" }) : "", I = w(() => r.value.length === 0 ? 1 : Math.max(...r.value.map((e) => e.screenPageViews || 0))), E = w(() => {
75
+ }, y = (e) => e == null ? "0" : e.toLocaleString(), I = (e) => e ? new Date(e).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" }) : "", E = w(() => r.value.length === 0 ? 1 : Math.max(...r.value.map((e) => e.screenPageViews || 0))), U = w(() => {
76
76
  const { startDate: e, endDate: t } = m.resolvedArgs || {};
77
77
  if (!e && !t) return "Last 30 days";
78
78
  const n = e || "30daysAgo", o = t || "today", l = n.match(/^(\d+)daysAgo$/);
79
79
  return l ? `Last ${l[1]} days` : `${n} → ${o}`;
80
80
  });
81
81
  return (e, t) => {
82
- const n = F("NuxtLink");
83
- return d(), c("div", W, [
84
- s(x) ? (d(), c("div", X, [
85
- u(s(G), { class: "size-4 animate-spin text-muted-foreground" }),
82
+ const n = B("NuxtLink");
83
+ return d(), u("div", X, [
84
+ s(x) ? (d(), u("div", Y, [
85
+ c(s(H), { class: "size-4 animate-spin text-muted-foreground" }),
86
86
  t[0] || (t[0] = a("span", { class: "text-xs text-muted-foreground" }, "Loading top pages…", -1))
87
- ])) : s(p) ? (d(), c("div", Y, i(s(p)), 1)) : s(r).length === 0 ? (d(), c("div", Z, [
88
- u(s(S), { class: "size-8 text-muted-foreground mx-auto mb-2" }),
87
+ ])) : s(p) ? (d(), u("div", Z, i(s(p)), 1)) : s(r).length === 0 ? (d(), u("div", ee, [
88
+ c(s($), { class: "size-8 text-muted-foreground mx-auto mb-2" }),
89
89
  t[1] || (t[1] = a("p", { class: "text-sm text-muted-foreground" }, "No page data found for this period.", -1))
90
- ])) : (d(), c("div", ee, [
91
- a("div", te, [
92
- a("div", se, [
93
- u(s(S), { class: "size-3.5 text-primary" }),
90
+ ])) : (d(), u("div", te, [
91
+ a("div", se, [
92
+ a("div", ae, [
93
+ c(s($), { class: "size-3.5 text-primary" }),
94
94
  t[2] || (t[2] = a("span", { class: "text-xs font-medium" }, "Most Popular Pages", -1))
95
95
  ]),
96
- a("span", ae, i(s(E)), 1)
96
+ a("span", oe, i(s(U)), 1)
97
97
  ]),
98
- a("div", oe, [
99
- (d(!0), c(P, null, B(s(r), (o, l) => (d(), c("div", {
98
+ a("div", ne, [
99
+ (d(!0), u(P, null, O(s(r), (o, l) => (d(), u("div", {
100
100
  key: l,
101
101
  class: "px-3 py-2.5 hover:bg-muted/30 transition-colors"
102
102
  }, [
103
- a("div", ne, [
104
- a("span", re, i(l + 1) + ".", 1),
103
+ a("div", re, [
104
+ a("span", ie, i(l + 1) + ".", 1),
105
105
  a("span", {
106
106
  class: "text-xs font-medium truncate flex-1",
107
107
  title: o.pagePath
108
- }, i(o.pagePath), 9, ie)
108
+ }, i(o.pagePath), 9, le)
109
109
  ]),
110
- a("div", le, [
111
- a("div", de, [
110
+ a("div", de, [
111
+ a("div", ue, [
112
112
  a("div", {
113
113
  class: "h-full rounded-full bg-primary/70 transition-all",
114
- style: R({ width: `${(o.screenPageViews || 0) / s(I) * 100}%` })
114
+ style: R({ width: `${(o.screenPageViews || 0) / s(E) * 100}%` })
115
115
  }, null, 4)
116
116
  ]),
117
117
  a("div", ce, [
118
- a("span", ue, [
119
- u(s(H), { class: "size-2.5" }),
118
+ a("span", me, [
119
+ c(s(J), { class: "size-2.5" }),
120
120
  g(" " + i(y(o.screenPageViews)) + " views ", 1)
121
121
  ]),
122
- a("span", me, [
123
- u(s(J), { class: "size-2.5" }),
122
+ a("span", ge, [
123
+ c(s(K), { class: "size-2.5" }),
124
124
  g(" " + i(y(o.totalUsers)) + " users ", 1)
125
125
  ]),
126
- a("span", ge, [
127
- u(s(K), { class: "size-2.5" }),
126
+ a("span", pe, [
127
+ c(s(Q), { class: "size-2.5" }),
128
128
  g(" " + i(D(o.averageSessionDuration)), 1)
129
129
  ])
130
130
  ])
131
131
  ])
132
132
  ]))), 128))
133
133
  ]),
134
- a("div", pe, [
135
- a("span", fe, [
134
+ a("div", fe, [
135
+ a("span", xe, [
136
136
  g(" Top " + i(s(r).length) + " of " + i(y(s(v))) + " pages ", 1),
137
- s(h) ? (d(), c(P, { key: 0 }, [
138
- g(" · fetched " + i(z(s(h))), 1)
139
- ], 64)) : O("", !0)
137
+ s(h) ? (d(), u(P, { key: 0 }, [
138
+ g(" · fetched " + i(I(s(h))), 1)
139
+ ], 64)) : q("", !0)
140
140
  ]),
141
- u(n, {
142
- to: `/projects/${s(A)}/modules/${b.instanceId}`,
141
+ c(n, {
142
+ to: `/projects/${s(V)}/modules/${b.instanceId}`,
143
143
  class: "inline-flex items-center gap-1.5 text-xs text-primary hover:underline"
144
144
  }, {
145
- default: q(() => [
146
- u(s(Q), { class: "size-3" }),
145
+ default: G(() => [
146
+ c(s(W), { class: "size-3" }),
147
147
  t[3] || (t[3] = g(" View full report ", -1))
148
148
  ]),
149
149
  _: 1
@@ -155,5 +155,5 @@ const W = { class: "w-full" }, X = {
155
155
  }
156
156
  });
157
157
  export {
158
- he as default
158
+ ye as default
159
159
  };