@burdenoff/microfe-headshotmarketing 2026.925.2 → 2026.928.2

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 (44) hide show
  1. package/dist/generated/wspace-operations.d.ts +90 -0
  2. package/dist/generated/wspace-operations.d.ts.map +1 -1
  3. package/dist/generated/wspace-operations.js +254 -218
  4. package/dist/generated/wspace-operations.js.map +1 -1
  5. package/dist/headshotmarketing/pages/campaigns/CampaignTemplateActions.d.ts +11 -0
  6. package/dist/headshotmarketing/pages/campaigns/CampaignTemplateActions.d.ts.map +1 -0
  7. package/dist/headshotmarketing/pages/campaigns/CampaignTemplateActions.js +44 -0
  8. package/dist/headshotmarketing/pages/campaigns/CampaignTemplateActions.js.map +1 -0
  9. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.d.ts.map +1 -1
  10. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +6 -5
  11. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  12. package/dist/headshotmarketing/pages/campaigns/TemplateCard.d.ts +2 -0
  13. package/dist/headshotmarketing/pages/campaigns/TemplateCard.d.ts.map +1 -1
  14. package/dist/headshotmarketing/pages/campaigns/TemplateCard.js +48 -41
  15. package/dist/headshotmarketing/pages/campaigns/TemplateCard.js.map +1 -1
  16. package/dist/headshotmarketing/pages/content/ContentDetailsPage.d.ts.map +1 -1
  17. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +105 -91
  18. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
  19. package/dist/headshotmarketing/pages/content/ContentItemActions.d.ts +13 -0
  20. package/dist/headshotmarketing/pages/content/ContentItemActions.d.ts.map +1 -0
  21. package/dist/headshotmarketing/pages/content/ContentItemActions.js +45 -0
  22. package/dist/headshotmarketing/pages/content/ContentItemActions.js.map +1 -0
  23. package/dist/headshotmarketing/pages/content/ContentLibraryCard.d.ts +6 -0
  24. package/dist/headshotmarketing/pages/content/ContentLibraryCard.d.ts.map +1 -1
  25. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +98 -84
  26. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
  27. package/dist/headshotmarketing/pages/content/ContentPage.d.ts.map +1 -1
  28. package/dist/headshotmarketing/pages/content/ContentPage.js +114 -112
  29. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  30. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignActions.d.ts +13 -0
  31. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignActions.d.ts.map +1 -0
  32. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignActions.js +44 -0
  33. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignActions.js.map +1 -0
  34. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.d.ts.map +1 -1
  35. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +94 -83
  36. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
  37. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.d.ts.map +1 -1
  38. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +189 -179
  39. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  40. package/dist/headshotmarketing/utils/deleteFeedback.d.ts +17 -0
  41. package/dist/headshotmarketing/utils/deleteFeedback.d.ts.map +1 -1
  42. package/dist/headshotmarketing/utils/deleteFeedback.js +11 -1
  43. package/dist/headshotmarketing/utils/deleteFeedback.js.map +1 -1
  44. package/package.json +1 -1
@@ -1,12 +1,13 @@
1
1
  import { cn as e, formatDate as t, getInitials as n } from "../../utils/helpers.js";
2
2
  import { StatusBadge as r } from "../../components/StatusBadge.js";
3
3
  import "../../components/index.js";
4
- import { Calendar as i, File as a, FileText as o, Gauge as s, Image as c, User as l, Video as u } from "lucide-react";
5
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
6
- import { GlassCard as p } from "@burdenoff/fe-libs/ui";
4
+ import { ContentItemActionsMenu as i } from "./ContentItemActions.js";
5
+ import { Calendar as a, File as o, FileText as s, Gauge as c, Image as l, User as u, Video as d } from "lucide-react";
6
+ import { jsx as f, jsxs as p } from "react/jsx-runtime";
7
+ import { GlassCard as m } from "@burdenoff/fe-libs/ui";
7
8
  //#region src/headshotmarketing/pages/content/ContentLibraryCard.tsx
8
- var m = "cursor-pointer transition-shadow hover:shadow-pop focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]";
9
- function h(e) {
9
+ var h = "cursor-pointer transition-shadow hover:shadow-pop focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]";
10
+ function g(e) {
10
11
  return e ? {
11
12
  role: "button",
12
13
  tabIndex: 0,
@@ -16,23 +17,23 @@ function h(e) {
16
17
  }
17
18
  } : {};
18
19
  }
19
- var g = {
20
- article: o,
21
- image: c,
22
- video: u,
23
- document: a,
24
- template: o
25
- }, _ = {
20
+ var _ = {
21
+ article: s,
22
+ image: l,
23
+ video: d,
24
+ document: o,
25
+ template: s
26
+ }, v = {
26
27
  article: "bg-status-info-bg text-status-info-text border-status-info-border",
27
28
  image: "bg-[var(--color-accent-soft)] text-action-primary-bg border-border-seam",
28
29
  video: "bg-status-warning-bg text-status-warning-text border-status-warning-border",
29
30
  document: "bg-bg-sunken text-text-secondary border-border-subtle",
30
31
  template: "bg-status-success-bg text-status-success-text border-status-success-border"
31
32
  };
32
- function v(e) {
33
+ function y(e) {
33
34
  return e >= 80 ? "bg-status-success-bg text-status-success-text border-status-success-border" : e >= 50 ? "bg-status-warning-bg text-status-warning-text border-status-warning-border" : "bg-bg-sunken text-text-secondary border-border-subtle";
34
35
  }
35
- function y(e, t) {
36
+ function b(e, t) {
36
37
  return t ? {
37
38
  label: "Scheduled",
38
39
  value: t
@@ -44,170 +45,183 @@ function y(e, t) {
44
45
  value: e.createdAt
45
46
  };
46
47
  }
47
- function b(e, t) {
48
+ function x(e, t) {
48
49
  if (t && e.author === t.id) {
49
50
  let e = [t.firstName, t.lastName].filter(Boolean).join(" ").trim();
50
51
  return t.name || e || t.email;
51
52
  }
52
53
  return !e.author || e.author === "Unknown" ? "Unassigned" : null;
53
54
  }
54
- var x = ({ tag: e }) => /* @__PURE__ */ d("span", {
55
+ var S = ({ tag: e }) => /* @__PURE__ */ f("span", {
55
56
  className: "inline-flex items-center rounded-md bg-bg-sunken px-2 py-0.5 text-[11px] font-medium text-text-secondary",
56
57
  children: e
57
- }), S = ({ score: t, className: n }) => /* @__PURE__ */ f("span", {
58
- className: e("inline-flex items-center gap-1 rounded-md border px-2 py-0.5 text-[11px] font-semibold tabular-nums", v(t), n),
58
+ }), C = ({ score: t, className: n }) => /* @__PURE__ */ p("span", {
59
+ className: e("inline-flex items-center gap-1 rounded-md border px-2 py-0.5 text-[11px] font-semibold tabular-nums", y(t), n),
59
60
  title: `SEO score ${t}`,
60
61
  children: [
61
- /* @__PURE__ */ d(s, { className: "h-3 w-3" }),
62
+ /* @__PURE__ */ f(c, { className: "h-3 w-3" }),
62
63
  "SEO ",
63
64
  t
64
65
  ]
65
- }), C = ({ item: e, currentUser: t, showLabel: r = !0 }) => {
66
- let i = !!(t && e.author === t.id), a = b(e, t), o = i ? t?.avatar : void 0;
67
- return /* @__PURE__ */ f("div", {
66
+ }), w = ({ item: e, currentUser: t, showLabel: r = !0 }) => {
67
+ let i = !!(t && e.author === t.id), a = x(e, t), o = i ? t?.avatar : void 0;
68
+ return /* @__PURE__ */ p("div", {
68
69
  className: "flex min-w-0 items-center gap-2",
69
70
  title: a ?? e.author,
70
- children: [o ? /* @__PURE__ */ d("img", {
71
+ children: [o ? /* @__PURE__ */ f("img", {
71
72
  src: o,
72
73
  alt: a ?? "Author",
73
74
  className: "h-6 w-6 shrink-0 rounded-full object-cover"
74
- }) : a && a !== "Unassigned" ? /* @__PURE__ */ d("span", {
75
+ }) : a && a !== "Unassigned" ? /* @__PURE__ */ f("span", {
75
76
  className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-[var(--color-accent-soft)] text-[10px] font-semibold text-action-primary-bg",
76
77
  children: n(a)
77
- }) : /* @__PURE__ */ d("span", {
78
+ }) : /* @__PURE__ */ f("span", {
78
79
  className: "flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-bg-sunken text-text-secondary",
79
- children: /* @__PURE__ */ d(l, { className: "h-3.5 w-3.5" })
80
- }), r && /* @__PURE__ */ d("span", {
80
+ children: /* @__PURE__ */ f(u, { className: "h-3.5 w-3.5" })
81
+ }), r && /* @__PURE__ */ f("span", {
81
82
  className: "truncate text-xs text-text-secondary",
82
83
  children: a ?? "Team member"
83
84
  })]
84
85
  });
85
- }, w = ({ item: n, scheduledAt: a, currentUser: s, onOpen: c }) => {
86
- let l = g[n.type] ?? o, u = n.tags ?? [], v = y(n, a), b = u.length > 0 || n.seoScore > 0;
87
- return /* @__PURE__ */ d(p, {
86
+ }, T = ({ item: n, scheduledAt: o, currentUser: c, onOpen: l, onDeleted: u }) => {
87
+ let d = _[n.type] ?? s, y = n.tags ?? [], x = b(n, o), T = y.length > 0 || n.seoScore > 0;
88
+ return /* @__PURE__ */ f(m, {
88
89
  treatment: "glass",
89
- className: e("p-4", c && m),
90
- ...h(c),
91
- children: /* @__PURE__ */ f("div", {
90
+ className: e("p-4", l && h),
91
+ ...g(l),
92
+ children: /* @__PURE__ */ p("div", {
92
93
  className: "flex flex-col gap-3",
93
94
  children: [
94
- /* @__PURE__ */ f("div", {
95
+ /* @__PURE__ */ p("div", {
95
96
  className: "flex items-start justify-between gap-2",
96
- children: [/* @__PURE__ */ f("div", {
97
+ children: [/* @__PURE__ */ p("div", {
97
98
  className: "flex min-w-0 items-center gap-2.5",
98
- children: [/* @__PURE__ */ d("span", {
99
- className: e("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border", _[n.type]),
100
- children: /* @__PURE__ */ d(l, { className: "h-4 w-4" })
101
- }), /* @__PURE__ */ f("div", {
99
+ children: [/* @__PURE__ */ f("span", {
100
+ className: e("flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border", v[n.type]),
101
+ children: /* @__PURE__ */ f(d, { className: "h-4 w-4" })
102
+ }), /* @__PURE__ */ p("div", {
102
103
  className: "min-w-0",
103
- children: [/* @__PURE__ */ d("h3", {
104
+ children: [/* @__PURE__ */ f("h3", {
104
105
  className: "truncate text-sm font-semibold text-text-primary",
105
106
  children: n.title
106
- }), /* @__PURE__ */ d("span", {
107
+ }), /* @__PURE__ */ f("span", {
107
108
  className: "text-[11px] font-medium uppercase tracking-wide text-text-secondary",
108
109
  children: n.type
109
110
  })]
110
111
  })]
111
- }), /* @__PURE__ */ d(r, {
112
- status: n.status,
113
- className: "shrink-0"
112
+ }), /* @__PURE__ */ p("div", {
113
+ className: "flex shrink-0 items-center gap-1",
114
+ children: [/* @__PURE__ */ f(r, { status: n.status }), u && /* @__PURE__ */ f(i, {
115
+ item: {
116
+ id: n.id,
117
+ title: n.title
118
+ },
119
+ onDeleted: u
120
+ })]
114
121
  })]
115
122
  }),
116
- n.description && /* @__PURE__ */ d("p", {
123
+ n.description && /* @__PURE__ */ f("p", {
117
124
  className: "line-clamp-2 text-xs text-text-secondary",
118
125
  children: n.description
119
126
  }),
120
- b && /* @__PURE__ */ f("div", {
127
+ T && /* @__PURE__ */ p("div", {
121
128
  className: "flex flex-wrap items-center gap-1.5",
122
129
  children: [
123
- u.slice(0, 3).map((e) => /* @__PURE__ */ d(x, { tag: e }, e)),
124
- u.length > 3 && /* @__PURE__ */ f("span", {
130
+ y.slice(0, 3).map((e) => /* @__PURE__ */ f(S, { tag: e }, e)),
131
+ y.length > 3 && /* @__PURE__ */ p("span", {
125
132
  className: "text-[11px] font-medium text-text-secondary",
126
- children: ["+", u.length - 3]
133
+ children: ["+", y.length - 3]
127
134
  }),
128
- n.seoScore > 0 && /* @__PURE__ */ d(S, {
135
+ n.seoScore > 0 && /* @__PURE__ */ f(C, {
129
136
  score: n.seoScore,
130
137
  className: "ml-auto"
131
138
  })
132
139
  ]
133
140
  }),
134
- /* @__PURE__ */ f("div", {
141
+ /* @__PURE__ */ p("div", {
135
142
  className: "space-y-2 border-t border-border-subtle pt-3",
136
- children: [/* @__PURE__ */ d(C, {
143
+ children: [/* @__PURE__ */ f(w, {
137
144
  item: n,
138
- currentUser: s
139
- }), /* @__PURE__ */ f("div", {
145
+ currentUser: c
146
+ }), /* @__PURE__ */ p("div", {
140
147
  className: "flex items-center justify-between text-xs",
141
- children: [/* @__PURE__ */ f("span", {
148
+ children: [/* @__PURE__ */ p("span", {
142
149
  className: "inline-flex items-center gap-1.5 text-text-secondary",
143
- children: [/* @__PURE__ */ d(i, { className: "h-3.5 w-3.5" }), v.label]
144
- }), /* @__PURE__ */ d("span", {
150
+ children: [/* @__PURE__ */ f(a, { className: "h-3.5 w-3.5" }), x.label]
151
+ }), /* @__PURE__ */ f("span", {
145
152
  className: "font-medium text-text-primary",
146
- children: t(v.value)
153
+ children: t(x.value)
147
154
  })]
148
155
  })]
149
156
  })
150
157
  ]
151
158
  })
152
159
  });
153
- }, T = ({ item: n, scheduledAt: i, currentUser: a, onOpen: s }) => {
154
- let c = g[n.type] ?? o, l = n.tags ?? [], u = y(n, i);
155
- return /* @__PURE__ */ d(p, {
160
+ }, E = ({ item: n, scheduledAt: a, currentUser: o, onOpen: c, onDeleted: l }) => {
161
+ let u = _[n.type] ?? s, d = n.tags ?? [], y = b(n, a);
162
+ return /* @__PURE__ */ f(m, {
156
163
  treatment: "glass",
157
- className: e("p-3.5", s && m),
158
- ...h(s),
159
- children: /* @__PURE__ */ f("div", {
164
+ className: e("p-3.5", c && h),
165
+ ...g(c),
166
+ children: /* @__PURE__ */ p("div", {
160
167
  className: "flex items-center gap-4",
161
168
  children: [
162
- /* @__PURE__ */ d("span", {
163
- className: e("flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border", _[n.type]),
164
- children: /* @__PURE__ */ d(c, { className: "h-5 w-5" })
169
+ /* @__PURE__ */ f("span", {
170
+ className: e("flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border", v[n.type]),
171
+ children: /* @__PURE__ */ f(u, { className: "h-5 w-5" })
165
172
  }),
166
- /* @__PURE__ */ f("div", {
173
+ /* @__PURE__ */ p("div", {
167
174
  className: "min-w-0 flex-1",
168
- children: [/* @__PURE__ */ f("div", {
175
+ children: [/* @__PURE__ */ p("div", {
169
176
  className: "flex items-center gap-2",
170
- children: [/* @__PURE__ */ d("p", {
177
+ children: [/* @__PURE__ */ f("p", {
171
178
  className: "truncate text-sm font-medium text-text-primary",
172
179
  children: n.title
173
- }), /* @__PURE__ */ d(r, {
180
+ }), /* @__PURE__ */ f(r, {
174
181
  status: n.status,
175
182
  className: "shrink-0"
176
183
  })]
177
- }), /* @__PURE__ */ f("div", {
184
+ }), /* @__PURE__ */ p("div", {
178
185
  className: "mt-1 flex flex-wrap items-center gap-1.5",
179
- children: [/* @__PURE__ */ d("span", {
186
+ children: [/* @__PURE__ */ f("span", {
180
187
  className: "text-[11px] font-medium uppercase tracking-wide text-text-secondary",
181
188
  children: n.type
182
- }), l.slice(0, 4).map((e) => /* @__PURE__ */ d(x, { tag: e }, e))]
189
+ }), d.slice(0, 4).map((e) => /* @__PURE__ */ f(S, { tag: e }, e))]
183
190
  })]
184
191
  }),
185
- n.seoScore > 0 && /* @__PURE__ */ d(S, {
192
+ n.seoScore > 0 && /* @__PURE__ */ f(C, {
186
193
  score: n.seoScore,
187
194
  className: "hidden sm:inline-flex"
188
195
  }),
189
- /* @__PURE__ */ f("div", {
196
+ /* @__PURE__ */ p("div", {
190
197
  className: "hidden text-right md:block",
191
- children: [/* @__PURE__ */ d("p", {
198
+ children: [/* @__PURE__ */ f("p", {
192
199
  className: "text-[11px] text-text-secondary",
193
- children: u.label
194
- }), /* @__PURE__ */ d("p", {
200
+ children: y.label
201
+ }), /* @__PURE__ */ f("p", {
195
202
  className: "text-xs font-medium text-text-primary",
196
- children: t(u.value)
203
+ children: t(y.value)
197
204
  })]
198
205
  }),
199
- /* @__PURE__ */ d("div", {
206
+ /* @__PURE__ */ f("div", {
200
207
  className: "hidden w-32 lg:block",
201
- children: /* @__PURE__ */ d(C, {
208
+ children: /* @__PURE__ */ f(w, {
202
209
  item: n,
203
- currentUser: a
210
+ currentUser: o
204
211
  })
212
+ }),
213
+ l && /* @__PURE__ */ f(i, {
214
+ item: {
215
+ id: n.id,
216
+ title: n.title
217
+ },
218
+ onDeleted: l
205
219
  })
206
220
  ]
207
221
  })
208
222
  });
209
223
  };
210
224
  //#endregion
211
- export { w as ContentLibraryCard, T as ContentLibraryRow };
225
+ export { T as ContentLibraryCard, E as ContentLibraryRow };
212
226
 
213
227
  //# sourceMappingURL=ContentLibraryCard.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ContentLibraryCard.js","names":[],"sources":["../../../../src/headshotmarketing/pages/content/ContentLibraryCard.tsx"],"sourcesContent":["/**\n * ContentLibraryCard / ContentLibraryRow\n *\n * Rich presentational views for a single content item in the Content Library.\n * Both surfaces render from data ALREADY fetched by the page's bootstrap query\n * (type, status, tags, SEO score, scheduled/published dates, author) — no new\n * network calls and no fabricated values (a missing SEO score or date simply\n * isn't rendered).\n *\n * Author resolution: the bootstrap payload carries only the raw `authorId`.\n * When that id matches the signed-in user we resolve it to their real name +\n * avatar (available from the shell context); otherwise we show a neutral\n * avatar rather than printing an opaque id. Full directory resolution needs a\n * dedicated members query (deferred to the backend).\n *\n * @module headshotmarketing/pages/content\n */\n\nimport type { FC, KeyboardEvent } from \"react\";\nimport {\n FileText,\n Image as ImageIcon,\n Video,\n File as FileIcon,\n User,\n Calendar,\n Gauge,\n type LucideIcon,\n} from \"lucide-react\";\nimport { GlassCard } from \"@burdenoff/fe-libs/ui\";\nimport { cn, formatDate, getInitials } from \"../../utils/helpers\";\nimport { StatusBadge } from \"../../components\";\nimport type { ContentItem, ContentType } from \"../../types\";\n\n/** Minimal shape of the signed-in user needed to resolve self-authored items. */\nexport interface ContentCardUser {\n id: string;\n email: string;\n firstName?: string;\n lastName?: string;\n name?: string;\n avatar?: string;\n}\n\nexport interface ContentCardProps {\n item: ContentItem;\n /** Raw `scheduledAt` from the bootstrap row (dropped by the shared mapper). */\n scheduledAt: string | null;\n currentUser?: ContentCardUser | null;\n /** When set, the card/row becomes an accessible button opening the detail. */\n onOpen?: () => void;\n}\n\nconst OPENABLE_CLASS =\n \"cursor-pointer transition-shadow hover:shadow-pop focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]\";\n\n/**\n * Build the interactive attributes that turn a surface into an accessible\n * activator. Kept inline so the grid card and list row open identically.\n * `className` is merged by the caller so it doesn't clobber the surface's own.\n */\nfunction openableProps(onOpen?: () => void) {\n if (!onOpen) return {};\n return {\n role: \"button\" as const,\n tabIndex: 0,\n onClick: onOpen,\n onKeyDown: (e: KeyboardEvent<HTMLDivElement>) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n onOpen();\n }\n },\n };\n}\n\nconst typeIcons: Record<ContentType, LucideIcon> = {\n article: FileText,\n image: ImageIcon,\n video: Video,\n document: FileIcon,\n template: FileText,\n};\n\n/** Distinct, token-only accent per content type for an at-a-glance read. */\nconst typeBadgeStyles: Record<ContentType, string> = {\n article: \"bg-status-info-bg text-status-info-text border-status-info-border\",\n image:\n \"bg-[var(--color-accent-soft)] text-action-primary-bg border-border-seam\",\n video:\n \"bg-status-warning-bg text-status-warning-text border-status-warning-border\",\n document: \"bg-bg-sunken text-text-secondary border-border-subtle\",\n template:\n \"bg-status-success-bg text-status-success-text border-status-success-border\",\n};\n\n/** Colour the SEO pill by score band — semantic tokens only. */\nfunction seoTone(score: number): string {\n if (score >= 80)\n return \"bg-status-success-bg text-status-success-text border-status-success-border\";\n if (score >= 50)\n return \"bg-status-warning-bg text-status-warning-text border-status-warning-border\";\n return \"bg-bg-sunken text-text-secondary border-border-subtle\";\n}\n\n/** Pick the most relevant date to surface, with an honest label. */\nfunction resolveDateInfo(\n item: ContentItem,\n scheduledAt: string | null,\n): { label: string; value: string } {\n if (scheduledAt) return { label: \"Scheduled\", value: scheduledAt };\n if (item.publishedAt) return { label: \"Published\", value: item.publishedAt };\n return { label: \"Created\", value: item.createdAt };\n}\n\nfunction resolveAuthorName(\n item: ContentItem,\n currentUser?: ContentCardUser | null,\n): string | null {\n if (currentUser && item.author === currentUser.id) {\n const composed = [currentUser.firstName, currentUser.lastName]\n .filter(Boolean)\n .join(\" \")\n .trim();\n return currentUser.name || composed || currentUser.email;\n }\n if (!item.author || item.author === \"Unknown\") return \"Unassigned\";\n return null;\n}\n\nconst TagChip: FC<{ tag: string }> = ({ tag }) => (\n <span className=\"inline-flex items-center rounded-md bg-bg-sunken px-2 py-0.5 text-[11px] font-medium text-text-secondary\">\n {tag}\n </span>\n);\n\nconst SeoPill: FC<{ score: number; className?: string }> = ({\n score,\n className,\n}) => (\n <span\n className={cn(\n \"inline-flex items-center gap-1 rounded-md border px-2 py-0.5 text-[11px] font-semibold tabular-nums\",\n seoTone(score),\n className,\n )}\n title={`SEO score ${score}`}\n >\n <Gauge className=\"h-3 w-3\" />\n SEO {score}\n </span>\n);\n\nconst AuthorAvatar: FC<{\n item: ContentItem;\n currentUser?: ContentCardUser | null;\n showLabel?: boolean;\n}> = ({ item, currentUser, showLabel = true }) => {\n const isSelf = Boolean(currentUser && item.author === currentUser.id);\n const name = resolveAuthorName(item, currentUser);\n const avatarUrl = isSelf ? currentUser?.avatar : undefined;\n\n return (\n <div\n className=\"flex min-w-0 items-center gap-2\"\n title={name ?? item.author}\n >\n {avatarUrl ? (\n <img\n src={avatarUrl}\n alt={name ?? \"Author\"}\n className=\"h-6 w-6 shrink-0 rounded-full object-cover\"\n />\n ) : name && name !== \"Unassigned\" ? (\n <span className=\"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-[var(--color-accent-soft)] text-[10px] font-semibold text-action-primary-bg\">\n {getInitials(name)}\n </span>\n ) : (\n <span className=\"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-bg-sunken text-text-secondary\">\n <User className=\"h-3.5 w-3.5\" />\n </span>\n )}\n {showLabel && (\n <span className=\"truncate text-xs text-text-secondary\">\n {name ?? \"Team member\"}\n </span>\n )}\n </div>\n );\n};\n\n// ---------------------------------------------------------------------------\n// Grid card\n// ---------------------------------------------------------------------------\n\nexport const ContentLibraryCard: FC<ContentCardProps> = ({\n item,\n scheduledAt,\n currentUser,\n onOpen,\n}) => {\n const Icon = typeIcons[item.type] ?? FileText;\n const tags = item.tags ?? [];\n const date = resolveDateInfo(item, scheduledAt);\n const hasMetaRow = tags.length > 0 || item.seoScore > 0;\n\n return (\n <GlassCard\n treatment=\"glass\"\n className={cn(\"p-4\", onOpen && OPENABLE_CLASS)}\n {...openableProps(onOpen)}\n >\n <div className=\"flex flex-col gap-3\">\n <div className=\"flex items-start justify-between gap-2\">\n <div className=\"flex min-w-0 items-center gap-2.5\">\n <span\n className={cn(\n \"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border\",\n typeBadgeStyles[item.type],\n )}\n >\n <Icon className=\"h-4 w-4\" />\n </span>\n <div className=\"min-w-0\">\n <h3 className=\"truncate text-sm font-semibold text-text-primary\">\n {item.title}\n </h3>\n <span className=\"text-[11px] font-medium uppercase tracking-wide text-text-secondary\">\n {item.type}\n </span>\n </div>\n </div>\n <StatusBadge status={item.status} className=\"shrink-0\" />\n </div>\n\n {item.description && (\n <p className=\"line-clamp-2 text-xs text-text-secondary\">\n {item.description}\n </p>\n )}\n\n {hasMetaRow && (\n <div className=\"flex flex-wrap items-center gap-1.5\">\n {tags.slice(0, 3).map((tag) => (\n <TagChip key={tag} tag={tag} />\n ))}\n {tags.length > 3 && (\n <span className=\"text-[11px] font-medium text-text-secondary\">\n +{tags.length - 3}\n </span>\n )}\n {item.seoScore > 0 && (\n <SeoPill score={item.seoScore} className=\"ml-auto\" />\n )}\n </div>\n )}\n\n <div className=\"space-y-2 border-t border-border-subtle pt-3\">\n <AuthorAvatar item={item} currentUser={currentUser} />\n <div className=\"flex items-center justify-between text-xs\">\n <span className=\"inline-flex items-center gap-1.5 text-text-secondary\">\n <Calendar className=\"h-3.5 w-3.5\" />\n {date.label}\n </span>\n <span className=\"font-medium text-text-primary\">\n {formatDate(date.value)}\n </span>\n </div>\n </div>\n </div>\n </GlassCard>\n );\n};\n\n// ---------------------------------------------------------------------------\n// List row\n// ---------------------------------------------------------------------------\n\nexport const ContentLibraryRow: FC<ContentCardProps> = ({\n item,\n scheduledAt,\n currentUser,\n onOpen,\n}) => {\n const Icon = typeIcons[item.type] ?? FileText;\n const tags = item.tags ?? [];\n const date = resolveDateInfo(item, scheduledAt);\n\n return (\n <GlassCard\n treatment=\"glass\"\n className={cn(\"p-3.5\", onOpen && OPENABLE_CLASS)}\n {...openableProps(onOpen)}\n >\n <div className=\"flex items-center gap-4\">\n <span\n className={cn(\n \"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border\",\n typeBadgeStyles[item.type],\n )}\n >\n <Icon className=\"h-5 w-5\" />\n </span>\n\n <div className=\"min-w-0 flex-1\">\n <div className=\"flex items-center gap-2\">\n <p className=\"truncate text-sm font-medium text-text-primary\">\n {item.title}\n </p>\n <StatusBadge status={item.status} className=\"shrink-0\" />\n </div>\n <div className=\"mt-1 flex flex-wrap items-center gap-1.5\">\n <span className=\"text-[11px] font-medium uppercase tracking-wide text-text-secondary\">\n {item.type}\n </span>\n {tags.slice(0, 4).map((tag) => (\n <TagChip key={tag} tag={tag} />\n ))}\n </div>\n </div>\n\n {item.seoScore > 0 && (\n <SeoPill score={item.seoScore} className=\"hidden sm:inline-flex\" />\n )}\n\n <div className=\"hidden text-right md:block\">\n <p className=\"text-[11px] text-text-secondary\">{date.label}</p>\n <p className=\"text-xs font-medium text-text-primary\">\n {formatDate(date.value)}\n </p>\n </div>\n\n <div className=\"hidden w-32 lg:block\">\n <AuthorAvatar item={item} currentUser={currentUser} />\n </div>\n </div>\n </GlassCard>\n );\n};\n"],"mappings":";;;;;;;AAqDA,IAAM,IACJ;AAOF,SA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AU;iBACb,EAAK;OACD,CAAA,EACN,EAAK,MAAM,GAAG,EAAE,CAAC,KAAK,MACrB,kBAAC,GAAD,EAAwB,QAAO,EAAjB,EAAiB,CAC/B,CACE;QACF;;IAEL,EAAK,WAAW,KACf,kBAAC,GAAD;KAAS,OAAO,EAAK;KAAU,WAAU;KAA0B,CAAA;IAGrE,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,KAAD;MAAG,WAAU;gBAAmC,EAAK;MAAU,CAAA,EAC/D,kBAAC,KAAD;MAAG,WAAU;gBACV,EAAW,EAAK,MAAM;MACrB,CAAA,CACA;;IAEN,kBAAC,OAAD;KAAK,WAAU;eACb,kBAAC,GAAD;MAAoB;MAAmB;MAAe,CAAA;KAClD,CAAA;IACF;;EACI,CAAA"}
1
+ {"version":3,"file":"ContentLibraryCard.js","names":[],"sources":["../../../../src/headshotmarketing/pages/content/ContentLibraryCard.tsx"],"sourcesContent":["/**\n * ContentLibraryCard / ContentLibraryRow\n *\n * Rich presentational views for a single content item in the Content Library.\n * Both surfaces render from data ALREADY fetched by the page's bootstrap query\n * (type, status, tags, SEO score, scheduled/published dates, author) — no new\n * network calls and no fabricated values (a missing SEO score or date simply\n * isn't rendered).\n *\n * Author resolution: the bootstrap payload carries only the raw `authorId`.\n * When that id matches the signed-in user we resolve it to their real name +\n * avatar (available from the shell context); otherwise we show a neutral\n * avatar rather than printing an opaque id. Full directory resolution needs a\n * dedicated members query (deferred to the backend).\n *\n * @module headshotmarketing/pages/content\n */\n\nimport type { FC, KeyboardEvent } from \"react\";\nimport {\n FileText,\n Image as ImageIcon,\n Video,\n File as FileIcon,\n User,\n Calendar,\n Gauge,\n type LucideIcon,\n} from \"lucide-react\";\nimport { GlassCard } from \"@burdenoff/fe-libs/ui\";\nimport { cn, formatDate, getInitials } from \"../../utils/helpers\";\nimport { StatusBadge } from \"../../components\";\nimport type { ContentItem, ContentType } from \"../../types\";\nimport { ContentItemActionsMenu } from \"./ContentItemActions\";\n\n/** Minimal shape of the signed-in user needed to resolve self-authored items. */\nexport interface ContentCardUser {\n id: string;\n email: string;\n firstName?: string;\n lastName?: string;\n name?: string;\n avatar?: string;\n}\n\nexport interface ContentCardProps {\n item: ContentItem;\n /** Raw `scheduledAt` from the bootstrap row (dropped by the shared mapper). */\n scheduledAt: string | null;\n currentUser?: ContentCardUser | null;\n /** When set, the card/row becomes an accessible button opening the detail. */\n onOpen?: () => void;\n /**\n * When set, an overflow (Delete) menu is rendered on the surface and this is\n * invoked after a successful delete (the page's bootstrap refetch). The menu\n * stops click propagation so it never triggers `onOpen`.\n */\n onDeleted?: () => void | Promise<unknown>;\n}\n\nconst OPENABLE_CLASS =\n \"cursor-pointer transition-shadow hover:shadow-pop focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]\";\n\n/**\n * Build the interactive attributes that turn a surface into an accessible\n * activator. Kept inline so the grid card and list row open identically.\n * `className` is merged by the caller so it doesn't clobber the surface's own.\n */\nfunction openableProps(onOpen?: () => void) {\n if (!onOpen) return {};\n return {\n role: \"button\" as const,\n tabIndex: 0,\n onClick: onOpen,\n onKeyDown: (e: KeyboardEvent<HTMLDivElement>) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n e.preventDefault();\n onOpen();\n }\n },\n };\n}\n\nconst typeIcons: Record<ContentType, LucideIcon> = {\n article: FileText,\n image: ImageIcon,\n video: Video,\n document: FileIcon,\n template: FileText,\n};\n\n/** Distinct, token-only accent per content type for an at-a-glance read. */\nconst typeBadgeStyles: Record<ContentType, string> = {\n article: \"bg-status-info-bg text-status-info-text border-status-info-border\",\n image:\n \"bg-[var(--color-accent-soft)] text-action-primary-bg border-border-seam\",\n video:\n \"bg-status-warning-bg text-status-warning-text border-status-warning-border\",\n document: \"bg-bg-sunken text-text-secondary border-border-subtle\",\n template:\n \"bg-status-success-bg text-status-success-text border-status-success-border\",\n};\n\n/** Colour the SEO pill by score band — semantic tokens only. */\nfunction seoTone(score: number): string {\n if (score >= 80)\n return \"bg-status-success-bg text-status-success-text border-status-success-border\";\n if (score >= 50)\n return \"bg-status-warning-bg text-status-warning-text border-status-warning-border\";\n return \"bg-bg-sunken text-text-secondary border-border-subtle\";\n}\n\n/** Pick the most relevant date to surface, with an honest label. */\nfunction resolveDateInfo(\n item: ContentItem,\n scheduledAt: string | null,\n): { label: string; value: string } {\n if (scheduledAt) return { label: \"Scheduled\", value: scheduledAt };\n if (item.publishedAt) return { label: \"Published\", value: item.publishedAt };\n return { label: \"Created\", value: item.createdAt };\n}\n\nfunction resolveAuthorName(\n item: ContentItem,\n currentUser?: ContentCardUser | null,\n): string | null {\n if (currentUser && item.author === currentUser.id) {\n const composed = [currentUser.firstName, currentUser.lastName]\n .filter(Boolean)\n .join(\" \")\n .trim();\n return currentUser.name || composed || currentUser.email;\n }\n if (!item.author || item.author === \"Unknown\") return \"Unassigned\";\n return null;\n}\n\nconst TagChip: FC<{ tag: string }> = ({ tag }) => (\n <span className=\"inline-flex items-center rounded-md bg-bg-sunken px-2 py-0.5 text-[11px] font-medium text-text-secondary\">\n {tag}\n </span>\n);\n\nconst SeoPill: FC<{ score: number; className?: string }> = ({\n score,\n className,\n}) => (\n <span\n className={cn(\n \"inline-flex items-center gap-1 rounded-md border px-2 py-0.5 text-[11px] font-semibold tabular-nums\",\n seoTone(score),\n className,\n )}\n title={`SEO score ${score}`}\n >\n <Gauge className=\"h-3 w-3\" />\n SEO {score}\n </span>\n);\n\nconst AuthorAvatar: FC<{\n item: ContentItem;\n currentUser?: ContentCardUser | null;\n showLabel?: boolean;\n}> = ({ item, currentUser, showLabel = true }) => {\n const isSelf = Boolean(currentUser && item.author === currentUser.id);\n const name = resolveAuthorName(item, currentUser);\n const avatarUrl = isSelf ? currentUser?.avatar : undefined;\n\n return (\n <div\n className=\"flex min-w-0 items-center gap-2\"\n title={name ?? item.author}\n >\n {avatarUrl ? (\n <img\n src={avatarUrl}\n alt={name ?? \"Author\"}\n className=\"h-6 w-6 shrink-0 rounded-full object-cover\"\n />\n ) : name && name !== \"Unassigned\" ? (\n <span className=\"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-[var(--color-accent-soft)] text-[10px] font-semibold text-action-primary-bg\">\n {getInitials(name)}\n </span>\n ) : (\n <span className=\"flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-bg-sunken text-text-secondary\">\n <User className=\"h-3.5 w-3.5\" />\n </span>\n )}\n {showLabel && (\n <span className=\"truncate text-xs text-text-secondary\">\n {name ?? \"Team member\"}\n </span>\n )}\n </div>\n );\n};\n\n// ---------------------------------------------------------------------------\n// Grid card\n// ---------------------------------------------------------------------------\n\nexport const ContentLibraryCard: FC<ContentCardProps> = ({\n item,\n scheduledAt,\n currentUser,\n onOpen,\n onDeleted,\n}) => {\n const Icon = typeIcons[item.type] ?? FileText;\n const tags = item.tags ?? [];\n const date = resolveDateInfo(item, scheduledAt);\n const hasMetaRow = tags.length > 0 || item.seoScore > 0;\n\n return (\n <GlassCard\n treatment=\"glass\"\n className={cn(\"p-4\", onOpen && OPENABLE_CLASS)}\n {...openableProps(onOpen)}\n >\n <div className=\"flex flex-col gap-3\">\n <div className=\"flex items-start justify-between gap-2\">\n <div className=\"flex min-w-0 items-center gap-2.5\">\n <span\n className={cn(\n \"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border\",\n typeBadgeStyles[item.type],\n )}\n >\n <Icon className=\"h-4 w-4\" />\n </span>\n <div className=\"min-w-0\">\n <h3 className=\"truncate text-sm font-semibold text-text-primary\">\n {item.title}\n </h3>\n <span className=\"text-[11px] font-medium uppercase tracking-wide text-text-secondary\">\n {item.type}\n </span>\n </div>\n </div>\n <div className=\"flex shrink-0 items-center gap-1\">\n <StatusBadge status={item.status} />\n {onDeleted && (\n <ContentItemActionsMenu\n item={{ id: item.id, title: item.title }}\n onDeleted={onDeleted}\n />\n )}\n </div>\n </div>\n\n {item.description && (\n <p className=\"line-clamp-2 text-xs text-text-secondary\">\n {item.description}\n </p>\n )}\n\n {hasMetaRow && (\n <div className=\"flex flex-wrap items-center gap-1.5\">\n {tags.slice(0, 3).map((tag) => (\n <TagChip key={tag} tag={tag} />\n ))}\n {tags.length > 3 && (\n <span className=\"text-[11px] font-medium text-text-secondary\">\n +{tags.length - 3}\n </span>\n )}\n {item.seoScore > 0 && (\n <SeoPill score={item.seoScore} className=\"ml-auto\" />\n )}\n </div>\n )}\n\n <div className=\"space-y-2 border-t border-border-subtle pt-3\">\n <AuthorAvatar item={item} currentUser={currentUser} />\n <div className=\"flex items-center justify-between text-xs\">\n <span className=\"inline-flex items-center gap-1.5 text-text-secondary\">\n <Calendar className=\"h-3.5 w-3.5\" />\n {date.label}\n </span>\n <span className=\"font-medium text-text-primary\">\n {formatDate(date.value)}\n </span>\n </div>\n </div>\n </div>\n </GlassCard>\n );\n};\n\n// ---------------------------------------------------------------------------\n// List row\n// ---------------------------------------------------------------------------\n\nexport const ContentLibraryRow: FC<ContentCardProps> = ({\n item,\n scheduledAt,\n currentUser,\n onOpen,\n onDeleted,\n}) => {\n const Icon = typeIcons[item.type] ?? FileText;\n const tags = item.tags ?? [];\n const date = resolveDateInfo(item, scheduledAt);\n\n return (\n <GlassCard\n treatment=\"glass\"\n className={cn(\"p-3.5\", onOpen && OPENABLE_CLASS)}\n {...openableProps(onOpen)}\n >\n <div className=\"flex items-center gap-4\">\n <span\n className={cn(\n \"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border\",\n typeBadgeStyles[item.type],\n )}\n >\n <Icon className=\"h-5 w-5\" />\n </span>\n\n <div className=\"min-w-0 flex-1\">\n <div className=\"flex items-center gap-2\">\n <p className=\"truncate text-sm font-medium text-text-primary\">\n {item.title}\n </p>\n <StatusBadge status={item.status} className=\"shrink-0\" />\n </div>\n <div className=\"mt-1 flex flex-wrap items-center gap-1.5\">\n <span className=\"text-[11px] font-medium uppercase tracking-wide text-text-secondary\">\n {item.type}\n </span>\n {tags.slice(0, 4).map((tag) => (\n <TagChip key={tag} tag={tag} />\n ))}\n </div>\n </div>\n\n {item.seoScore > 0 && (\n <SeoPill score={item.seoScore} className=\"hidden sm:inline-flex\" />\n )}\n\n <div className=\"hidden text-right md:block\">\n <p className=\"text-[11px] text-text-secondary\">{date.label}</p>\n <p className=\"text-xs font-medium text-text-primary\">\n {formatDate(date.value)}\n </p>\n </div>\n\n <div className=\"hidden w-32 lg:block\">\n <AuthorAvatar item={item} currentUser={currentUser} />\n </div>\n\n {onDeleted && (\n <ContentItemActionsMenu\n item={{ id: item.id, title: item.title }}\n onDeleted={onDeleted}\n />\n )}\n </div>\n </GlassCard>\n );\n};\n"],"mappings":";;;;;;;;AA4DA,IAAM,IACJ;AAOF,SAAS,EAAc,GAAqB;AAE1C,QADK,IACE;EACL,MAAM;EACN,UAAU;EACV,SAAS;EACT,YAAY,MAAqC;AAC/C,IAAI,EAAE,QAAQ,WAAW,EAAE,QAAQ,SACjC,EAAE,gBAAgB,EAClB,GAAQ;;EAGb,GAXmB,EAAE;;AAcxB,IAAM,IAA6C;CACjD,SAAS;CACT,OAAO;CACP,OAAO;CACP,UAAU;CACV,UAAU;CACX,EAGK,IAA+C;CACnD,SAAS;CACT,OACE;CACF,OACE;CACF,UAAU;CACV,UACE;CACH;AAGD,SAAS,EAAQ,GAAuB;AAKtC,QAJI,KAAS,KACJ,+EACL,KAAS,KACJ,+EACF;;AAIT,SAAS,EACP,GACA,GACkC;AAGlC,QAFI,IAAoB;EAAE,OAAO;EAAa,OAAO;EAAa,GAC9D,EAAK,cAAoB;EAAE,OAAO;EAAa,OAAO,EAAK;EAAa,GACrE;EAAE,OAAO;EAAW,OAAO,EAAK;EAAW;;AAGpD,SAAS,EACP,GACA,GACe;AACf,KAAI,KAAe,EAAK,WAAW,EAAY,IAAI;EACjD,IAAM,IAAW,CAAC,EAAY,WAAW,EAAY,SAAS,CAC3D,OAAO,QAAQ,CACf,KAAK,IAAI,CACT,MAAM;AACT,SAAO,EAAY,QAAQ,KAAY,EAAY;;AAGrD,QADI,CAAC,EAAK,UAAU,EAAK,WAAW,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O,EAAgB,GAAM,EAAY;AAE/C,QACE,kBAAC,GAAD;EACE,WAAU;EACV,WAAW,EAAG,SAAS,KAAU,EAAe;EAChD,GAAI,EAAc,EAAO;YAEzB,kBAAC,OAAD;GAAK,WAAU;aAAf;IACE,kBAAC,QAAD;KACE,WAAW,EACT,yEACA,EAAgB,EAAK,MACtB;eAED,kBAAC,GAAD,EAAM,WAAU,WAAY,CAAA;KACvB,CAAA;IAEP,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,KAAD;OAAG,WAAU;iBACV,EAAK;OACJ,CAAA,EACJ,kBAAC,GAAD;OAAa,QAAQ,EAAK;OAAQ,WAAU;OAAa,CAAA,CACrD;SACN,kBAAC,OAAD;MAAK,WAAU;gBAAf,CACE,kBAAC,QAAD;OAAM,WAAU;iBACb,EAAK;OACD,CAAA,EACN,EAAK,MAAM,GAAG,EAAE,CAAC,KAAK,MACrB,kBAAC,GAAD,EAAwB,QAAO,EAAjB,EAAiB,CAC/B,CACE;QACF;;IAEL,EAAK,WAAW,KACf,kBAAC,GAAD;KAAS,OAAO,EAAK;KAAU,WAAU;KAA0B,CAAA;IAGrE,kBAAC,OAAD;KAAK,WAAU;eAAf,CACE,kBAAC,KAAD;MAAG,WAAU;gBAAmC,EAAK;MAAU,CAAA,EAC/D,kBAAC,KAAD;MAAG,WAAU;gBACV,EAAW,EAAK,MAAM;MACrB,CAAA,CACA;;IAEN,kBAAC,OAAD;KAAK,WAAU;eACb,kBAAC,GAAD;MAAoB;MAAmB;MAAe,CAAA;KAClD,CAAA;IAEL,KACC,kBAAC,GAAD;KACE,MAAM;MAAE,IAAI,EAAK;MAAI,OAAO,EAAK;MAAO;KAC7B;KACX,CAAA;IAEA;;EACI,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentPage.d.ts","sourceRoot":"","sources":["../../../../src/headshotmarketing/pages/content/ContentPage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAuB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAyCrD,eAAO,MAAM,WAAW,EAAE,EAsSzB,CAAC"}
1
+ {"version":3,"file":"ContentPage.d.ts","sourceRoot":"","sources":["../../../../src/headshotmarketing/pages/content/ContentPage.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAuB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAyCrD,eAAO,MAAM,WAAW,EAAE,EAwSzB,CAAC"}