@burdenoff/microfe-headshotmarketing 2026.1201.1 → 2026.1202.1

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 (151) hide show
  1. package/dist/headshotmarketing/components/ActionMenu.js +1 -1
  2. package/dist/headshotmarketing/components/ActionMenu.js.map +1 -1
  3. package/dist/headshotmarketing/components/DataTable.js +33 -33
  4. package/dist/headshotmarketing/components/DataTable.js.map +1 -1
  5. package/dist/headshotmarketing/components/EmptyState.d.ts +15 -0
  6. package/dist/headshotmarketing/components/EmptyState.js +35 -15
  7. package/dist/headshotmarketing/components/EmptyState.js.map +1 -1
  8. package/dist/headshotmarketing/components/FilterBar.js +2 -2
  9. package/dist/headshotmarketing/components/FilterBar.js.map +1 -1
  10. package/dist/headshotmarketing/components/InfluencerModals.js +96 -95
  11. package/dist/headshotmarketing/components/InfluencerModals.js.map +1 -1
  12. package/dist/headshotmarketing/components/Pagination.js +38 -37
  13. package/dist/headshotmarketing/components/Pagination.js.map +1 -1
  14. package/dist/headshotmarketing/components/TagChipsInput.js +1 -1
  15. package/dist/headshotmarketing/components/TagChipsInput.js.map +1 -1
  16. package/dist/headshotmarketing/components/Toast.js +1 -1
  17. package/dist/headshotmarketing/components/Toast.js.map +1 -1
  18. package/dist/headshotmarketing/pages/HomeMonthlyGoals.js.map +1 -1
  19. package/dist/headshotmarketing/pages/HomePage.js +10 -10
  20. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  21. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +203 -203
  22. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js +148 -148
  24. package/dist/headshotmarketing/pages/ads/AdCampaignsPage.js.map +1 -1
  25. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js +74 -73
  26. package/dist/headshotmarketing/pages/ads/AdCreativeTestsSection.js.map +1 -1
  27. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +369 -369
  28. package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
  29. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js +111 -110
  30. package/dist/headshotmarketing/pages/ads/AdPlatformConnectionsSection.js.map +1 -1
  31. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +1 -1
  32. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -1
  33. package/dist/headshotmarketing/pages/ads/AdsPage.js +6 -6
  34. package/dist/headshotmarketing/pages/ads/AdsPage.js.map +1 -1
  35. package/dist/headshotmarketing/pages/ads/AudiencesPage.js +49 -49
  36. package/dist/headshotmarketing/pages/ads/AudiencesPage.js.map +1 -1
  37. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +112 -112
  38. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  39. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js +57 -57
  40. package/dist/headshotmarketing/pages/ads/CreateAudiencePage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js +175 -174
  42. package/dist/headshotmarketing/pages/ai/AiOperationsPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js +1 -1
  44. package/dist/headshotmarketing/pages/analytics/AdAnalyticsPage.js.map +1 -1
  45. package/dist/headshotmarketing/pages/analytics/AttributionPage.js +129 -129
  46. package/dist/headshotmarketing/pages/analytics/AttributionPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js +9 -9
  48. package/dist/headshotmarketing/pages/analytics/CampaignAnalyticsPage.js.map +1 -1
  49. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js +95 -94
  50. package/dist/headshotmarketing/pages/analytics/ReportScheduleDialog.js.map +1 -1
  51. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +4 -4
  52. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  53. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +42 -41
  54. package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -1
  55. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js +132 -131
  56. package/dist/headshotmarketing/pages/analytics/analyticsWidgets.js.map +1 -1
  57. package/dist/headshotmarketing/pages/automation/AutomationPage.js +8 -8
  58. package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/automation/TriggersPage.js +48 -48
  60. package/dist/headshotmarketing/pages/automation/TriggersPage.js.map +1 -1
  61. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +4 -3
  62. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  63. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +143 -142
  64. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -1
  65. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js +79 -78
  66. package/dist/headshotmarketing/pages/automation/WorkflowRunsPanel.js.map +1 -1
  67. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js +92 -92
  68. package/dist/headshotmarketing/pages/automation/WorkflowsPage.js.map +1 -1
  69. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +143 -143
  70. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +3 -3
  72. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -1
  73. package/dist/headshotmarketing/pages/builder/SectionInspector.js +24 -23
  74. package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -1
  75. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js +198 -193
  76. package/dist/headshotmarketing/pages/campaigns/CampaignDetailsPage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +41 -41
  78. package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
  79. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js +234 -229
  80. package/dist/headshotmarketing/pages/campaigns/CampaignsPage.js.map +1 -1
  81. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js +134 -134
  82. package/dist/headshotmarketing/pages/campaigns/CreateCampaignPage.js.map +1 -1
  83. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js +46 -46
  84. package/dist/headshotmarketing/pages/campaigns/CreateTemplateModal.js.map +1 -1
  85. package/dist/headshotmarketing/pages/content/AIExecutionLedger.js +29 -29
  86. package/dist/headshotmarketing/pages/content/AIExecutionLedger.js.map +1 -1
  87. package/dist/headshotmarketing/pages/content/AIToolsPage.js +3 -3
  88. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  89. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +230 -220
  90. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  91. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +431 -420
  92. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  93. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +7 -7
  94. package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
  95. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +2 -2
  96. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
  97. package/dist/headshotmarketing/pages/content/ContentPage.js +88 -88
  98. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  99. package/dist/headshotmarketing/pages/crm/ContactsPage.js +111 -111
  100. package/dist/headshotmarketing/pages/crm/ContactsPage.js.map +1 -1
  101. package/dist/headshotmarketing/pages/crm/CreateContactPage.js +59 -59
  102. package/dist/headshotmarketing/pages/crm/CreateContactPage.js.map +1 -1
  103. package/dist/headshotmarketing/pages/crm/CreateDealPage.js +86 -86
  104. package/dist/headshotmarketing/pages/crm/CreateDealPage.js.map +1 -1
  105. package/dist/headshotmarketing/pages/crm/CrmActions.js +93 -92
  106. package/dist/headshotmarketing/pages/crm/CrmActions.js.map +1 -1
  107. package/dist/headshotmarketing/pages/crm/CrmPage.js +4 -4
  108. package/dist/headshotmarketing/pages/crm/CrmPage.js.map +1 -1
  109. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +63 -62
  110. package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
  111. package/dist/headshotmarketing/pages/crm/LeadsPage.js +68 -68
  112. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  113. package/dist/headshotmarketing/pages/crm/PipelinePage.js +2 -2
  114. package/dist/headshotmarketing/pages/crm/PipelinePage.js.map +1 -1
  115. package/dist/headshotmarketing/pages/events/CreateEventPage.js +165 -165
  116. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  117. package/dist/headshotmarketing/pages/events/EventDetailsPage.js +255 -250
  118. package/dist/headshotmarketing/pages/events/EventDetailsPage.js.map +1 -1
  119. package/dist/headshotmarketing/pages/events/EventPagePreview.js +2 -2
  120. package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -1
  121. package/dist/headshotmarketing/pages/events/EventsPage.js +70 -70
  122. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  123. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js +7 -7
  124. package/dist/headshotmarketing/pages/influencers/InfluencerCampaignsPage.js.map +1 -1
  125. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js +98 -98
  126. package/dist/headshotmarketing/pages/influencers/InfluencerDiscoveryPage.js.map +1 -1
  127. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js +1 -1
  128. package/dist/headshotmarketing/pages/influencers/InfluencersPage.js.map +1 -1
  129. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js +145 -140
  130. package/dist/headshotmarketing/pages/influencers/RelationshipsPage.js.map +1 -1
  131. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +1 -1
  132. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -1
  133. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +286 -286
  134. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  135. package/dist/headshotmarketing/pages/social-media/AccountsPage.js +171 -166
  136. package/dist/headshotmarketing/pages/social-media/AccountsPage.js.map +1 -1
  137. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js +1 -1
  138. package/dist/headshotmarketing/pages/social-media/ContentCalendarPage.js.map +1 -1
  139. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js +1 -1
  140. package/dist/headshotmarketing/pages/social-media/CreateAccountPage.js.map +1 -1
  141. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +2 -2
  142. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
  143. package/dist/headshotmarketing/pages/social-media/PostsPage.js +257 -252
  144. package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
  145. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +2 -2
  146. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -1
  147. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +4 -4
  148. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  149. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js +115 -115
  150. package/dist/headshotmarketing/pages/social-media/SocialMediaPage.js.map +1 -1
  151. package/package.json +2 -2
@@ -2,28 +2,28 @@ import { useHeadshotmarketingAssetFoldersQuery as e } from "../../../generated/w
2
2
  import { useHeadshotmarketingBootstrap as t } from "../../hooks/useHeadshotmarketingBootstrap.js";
3
3
  import { usePagination as n } from "../../hooks/usePagination.js";
4
4
  import { PageLayout as r } from "../../components/PageLayout.js";
5
- import { DataTable as ee } from "../../components/DataTable.js";
6
- import { EmptyState as te } from "../../components/EmptyState.js";
5
+ import { EmptyState as ee } from "../../components/EmptyState.js";
6
+ import { DataTable as te } from "../../components/DataTable.js";
7
7
  import { FilterBar as ne } from "../../components/FilterBar.js";
8
8
  import { QueryStateBoundary as re } from "../../components/QueryStateBoundary.js";
9
9
  import { Pagination as ie } from "../../components/Pagination.js";
10
10
  import { AssetUploadButton as i } from "../../components/AssetUploadButton.js";
11
- import { ActionMenu as a } from "../../components/ActionMenu.js";
11
+ import { ActionMenu as ae } from "../../components/ActionMenu.js";
12
12
  import "../../components/index.js";
13
- import { cn as o, formatNumber as s } from "../../utils/helpers.js";
14
- import { toAssetModel as ae } from "../../utils/contentMapper.js";
15
- import { useHeadshotMarketing as oe } from "../../context/HeadshotMarketingContext.js";
16
- import { AssetThumbnail as c } from "./AssetThumbnail.js";
17
- import { ContentSubNav as se } from "./ContentSubNav.js";
18
- import { useEffect as l, useMemo as u, useState as d } from "react";
19
- import { ArrowUpDown as ce, Copy as f, Download as p, Files as m, FolderOpen as h, HardDrive as le, Image as ue, LayoutGrid as de, List as fe, Trash2 as g, Video as pe, X as me } from "lucide-react";
20
- import { useCopyToClipboard as he } from "@burdenoff/fe-libs/shared/hooks";
21
- import { gql as _ } from "@apollo/client";
22
- import { useMutation as ge } from "@apollo/client/react";
23
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
24
- import { Badge as b, EmphasisPanel as _e, PagePurpose as ve } from "@burdenoff/fe-libs/ui";
13
+ import { cn as a, formatNumber as o } from "../../utils/helpers.js";
14
+ import { toAssetModel as oe } from "../../utils/contentMapper.js";
15
+ import { useHeadshotMarketing as se } from "../../context/HeadshotMarketingContext.js";
16
+ import { AssetThumbnail as s } from "./AssetThumbnail.js";
17
+ import { ContentSubNav as ce } from "./ContentSubNav.js";
18
+ import { useEffect as c, useMemo as l, useState as u } from "react";
19
+ import { ArrowUpDown as le, Copy as d, Download as f, Files as p, FolderOpen as m, HardDrive as ue, Image as de, LayoutGrid as fe, List as pe, Trash2 as h, Video as me, X as he } from "lucide-react";
20
+ import { useCopyToClipboard as ge } from "@burdenoff/fe-libs/shared/hooks";
21
+ import { gql as g } from "@apollo/client";
22
+ import { useMutation as _e } from "@apollo/client/react";
23
+ import { jsx as _, jsxs as v } from "react/jsx-runtime";
24
+ import { Badge as y, EmphasisPanel as ve, PagePurpose as ye, ThemedSelect as b, useConfirm as be } from "@burdenoff/fe-libs/ui";
25
25
  // src/headshotmarketing/pages/content/AssetLibraryPage.tsx
26
- var ye = _`
26
+ var xe = g`
27
27
  mutation HeadshotmarketingDeleteCanonicalFileAsset($id: ID!) {
28
28
  headshotmarketingDeleteFileMarketingMeta(fileId: $id)
29
29
  deleteFile(id: $id)
@@ -34,7 +34,7 @@ var ye = _`
34
34
  document: "warning",
35
35
  audio: "info",
36
36
  font: "secondary"
37
- }, be = [
37
+ }, Se = [
38
38
  {
39
39
  value: "all",
40
40
  label: "All types"
@@ -59,7 +59,7 @@ var ye = _`
59
59
  value: "font",
60
60
  label: "Fonts"
61
61
  }
62
- ], xe = [
62
+ ], Ce = [
63
63
  {
64
64
  value: "newest",
65
65
  label: "Newest first"
@@ -87,11 +87,11 @@ function E(e, t) {
87
87
  n.href = e, n.download = t, n.target = "_blank", n.rel = "noopener", document.body.appendChild(n), n.click(), n.remove();
88
88
  }
89
89
  var D = () => {
90
- let { data: _, loading: D, error: Se, refetch: O } = t(), { navigate: Ce, basePath: we } = oe(), { copy: k } = he(), [A] = ge(ye), { data: j } = e({ errorPolicy: "all" }), [M, Te] = d(""), [N, Ee] = d("all"), [P, F] = d(x), [I, De] = d("newest"), [L, R] = d("grid"), [z, B] = d(/* @__PURE__ */ new Set()), [V, H] = d(null), [Oe, U] = d(!1), { page: ke, pageSize: W, offset: G, limit: K, setPage: q, setPageSize: Ae, setTotal: J } = n({ initialPageSize: 12 }), Y = u(() => (_?.headshotmarketingAssets.items ?? []).map((e) => ae(e)), [_?.headshotmarketingAssets.items]), X = u(() => {
90
+ let g = be(), { data: D, loading: O, error: we, refetch: k } = t(), { navigate: Te, basePath: Ee } = se(), { copy: A } = ge(), [j] = _e(xe), { data: M } = e({ errorPolicy: "all" }), [N, De] = u(""), [P, Oe] = u("all"), [F, I] = u(x), [L, ke] = u("newest"), [R, z] = u("grid"), [B, V] = u(/* @__PURE__ */ new Set()), [H, U] = u(null), [W, G] = u(!1), { page: Ae, pageSize: K, offset: q, limit: je, setPage: J, setPageSize: Me, setTotal: Ne } = n({ initialPageSize: 12 }), Y = l(() => (D?.headshotmarketingAssets.items ?? []).map((e) => oe(e)), [D?.headshotmarketingAssets.items]), X = l(() => {
91
91
  let e = /* @__PURE__ */ new Map();
92
- for (let t of j?.getFolders?.folders ?? []) e.set(t.id, t.name);
92
+ for (let t of M?.getFolders?.folders ?? []) e.set(t.id, t.name);
93
93
  return e;
94
- }, [j?.getFolders?.folders]), Z = u(() => {
94
+ }, [M?.getFolders?.folders]), Z = l(() => {
95
95
  let e = /* @__PURE__ */ new Map(), t = 0;
96
96
  for (let n of Y) n.folderId === null ? t += 1 : e.set(n.folderId, (e.get(n.folderId) ?? 0) + 1);
97
97
  let n = [];
@@ -108,91 +108,101 @@ var D = () => {
108
108
  name: "Unfiled",
109
109
  count: t
110
110
  }), n;
111
- }, [Y, X]), je = u(() => {
112
- let e = M.trim().toLowerCase();
111
+ }, [Y, X]), Pe = l(() => {
112
+ let e = N.trim().toLowerCase();
113
113
  return Y.filter((t) => {
114
- let n = !e || t.name.toLowerCase().includes(e) || t.tags.some((t) => t.toLowerCase().includes(e)), r = N === "all" || t.type === N, ee = P === x || (P === S ? t.folderId === null : t.folderId === P);
114
+ let n = !e || t.name.toLowerCase().includes(e) || t.tags.some((t) => t.toLowerCase().includes(e)), r = P === "all" || t.type === P, ee = F === x || (F === S ? t.folderId === null : t.folderId === F);
115
115
  return n && r && ee;
116
116
  });
117
117
  }, [
118
118
  Y,
119
- M,
120
119
  N,
121
- P
122
- ]), Q = u(() => {
123
- let e = [...je];
124
- switch (I) {
120
+ P,
121
+ F
122
+ ]), Q = l(() => {
123
+ let e = [...Pe];
124
+ switch (L) {
125
125
  case "name": return e.sort((e, t) => e.name.localeCompare(t.name));
126
126
  case "size": return e.sort((e, t) => t.size - e.size);
127
127
  default: return e.sort((e, t) => new Date(t.createdAt).getTime() - new Date(e.createdAt).getTime());
128
128
  }
129
- }, [je, I]);
130
- l(() => {
131
- J(Q.length);
132
- }, [Q.length, J]), l(() => {
133
- q(1);
129
+ }, [Pe, L]);
130
+ c(() => {
131
+ Ne(Q.length);
132
+ }, [Q.length, Ne]), c(() => {
133
+ J(1);
134
134
  }, [
135
- M,
136
135
  N,
137
136
  P,
138
- I,
139
- q
140
- ]), l(() => {
141
- B(/* @__PURE__ */ new Set());
137
+ F,
138
+ L,
139
+ J
140
+ ]), c(() => {
141
+ V(/* @__PURE__ */ new Set());
142
142
  }, [
143
- M,
144
143
  N,
145
- P
146
- ]), l(() => {
147
- P !== x && !Z.some((e) => e.id === P) && F(x);
148
- }, [Z, P]);
149
- let Me = u(() => Q.slice(G, G + K), [
144
+ P,
145
+ F
146
+ ]), c(() => {
147
+ F !== x && !Z.some((e) => e.id === F) && I(x);
148
+ }, [Z, F]);
149
+ let Fe = l(() => Q.slice(q, q + je), [
150
150
  Q,
151
- G,
152
- K
153
- ]), Ne = u(() => Y.reduce((e, t) => e + t.size, 0), [Y]), Pe = u(() => Y.filter((e) => e.type === "image").length, [Y]), Fe = u(() => Y.filter((e) => e.type === "video").length, [Y]), Ie = u(() => Q.filter((e) => z.has(e.id)), [Q, z]), Le = Q.length > 0 && Q.every((e) => z.has(e.id)), Re = (e) => {
154
- B((t) => {
151
+ q,
152
+ je
153
+ ]), Ie = l(() => Y.reduce((e, t) => e + t.size, 0), [Y]), Le = l(() => Y.filter((e) => e.type === "image").length, [Y]), Re = l(() => Y.filter((e) => e.type === "video").length, [Y]), ze = l(() => Q.filter((e) => B.has(e.id)), [Q, B]), Be = Q.length > 0 && Q.every((e) => B.has(e.id)), Ve = (e) => {
154
+ V((t) => {
155
155
  let n = new Set(t);
156
156
  return n.has(e) ? n.delete(e) : n.add(e), n;
157
157
  });
158
- }, ze = () => {
159
- B((e) => e.size === Q.length && Q.length > 0 ? /* @__PURE__ */ new Set() : new Set(Q.map((e) => e.id)));
160
- }, Be = () => B(/* @__PURE__ */ new Set()), Ve = async (e) => {
161
- if (H(null), window.confirm(`Delete "${e.name}"? This action can't be undone.`)) try {
162
- await A({ variables: { id: e.id } }), B((t) => {
158
+ }, He = () => {
159
+ V((e) => e.size === Q.length && Q.length > 0 ? /* @__PURE__ */ new Set() : new Set(Q.map((e) => e.id)));
160
+ }, Ue = () => V(/* @__PURE__ */ new Set()), We = async (e) => {
161
+ if (U(null), await g({
162
+ title: `Delete "${e.name}"?`,
163
+ description: "This action can't be undone.",
164
+ tone: "danger",
165
+ confirmLabel: "Delete"
166
+ })) try {
167
+ await j({ variables: { id: e.id } }), V((t) => {
163
168
  if (!t.has(e.id)) return t;
164
169
  let n = new Set(t);
165
170
  return n.delete(e.id), n;
166
- }), await O();
171
+ }), await k();
167
172
  } catch (e) {
168
- H(e instanceof Error ? e.message : "Failed to delete the asset.");
173
+ U(e instanceof Error ? e.message : "Failed to delete the asset.");
169
174
  }
170
- }, He = () => {
171
- Ie.forEach((e, t) => {
175
+ }, Ge = () => {
176
+ ze.forEach((e, t) => {
172
177
  window.setTimeout(() => E(e.url, e.name), t * 150);
173
178
  });
174
- }, Ue = async () => {
175
- let e = Ie.map((e) => e.id);
176
- if (e.length !== 0 && window.confirm(`Delete ${e.length} asset${e.length > 1 ? "s" : ""}? This action can't be undone.`)) {
177
- H(null), U(!0);
179
+ }, Ke = async () => {
180
+ let e = ze.map((e) => e.id);
181
+ if (e.length !== 0 && await g({
182
+ title: `Delete ${e.length} asset${e.length > 1 ? "s" : ""}?`,
183
+ description: "This action can't be undone.",
184
+ tone: "danger",
185
+ confirmLabel: "Delete"
186
+ })) {
187
+ U(null), G(!0);
178
188
  try {
179
- let t = (await Promise.allSettled(e.map((e) => A({ variables: { id: e } })))).filter((e) => e.status === "rejected").length;
180
- await O(), Be(), t > 0 && H(`Deleted ${e.length - t} of ${e.length}; ${t} could not be removed.`);
189
+ let t = (await Promise.allSettled(e.map((e) => j({ variables: { id: e } })))).filter((e) => e.status === "rejected").length;
190
+ await k(), Ue(), t > 0 && U(`Deleted ${e.length - t} of ${e.length}; ${t} could not be removed.`);
181
191
  } catch (e) {
182
- H(e instanceof Error ? e.message : "Bulk delete failed.");
192
+ U(e instanceof Error ? e.message : "Bulk delete failed.");
183
193
  } finally {
184
- U(!1);
194
+ G(!1);
185
195
  }
186
196
  }
187
- }, We = [
197
+ }, qe = [
188
198
  {
189
199
  key: "select",
190
200
  header: "",
191
201
  className: "w-10",
192
- render: (e) => /* @__PURE__ */ v("input", {
202
+ render: (e) => /* @__PURE__ */ _("input", {
193
203
  type: "checkbox",
194
- checked: z.has(e.id),
195
- onChange: () => Re(e.id),
204
+ checked: B.has(e.id),
205
+ onChange: () => Ve(e.id),
196
206
  onClick: (e) => e.stopPropagation(),
197
207
  "aria-label": `Select ${e.name}`,
198
208
  className: "h-4 w-4 cursor-pointer accent-[var(--color-action-primary-bg)]"
@@ -202,9 +212,9 @@ var D = () => {
202
212
  key: "preview",
203
213
  header: "",
204
214
  className: "w-16",
205
- render: (e) => /* @__PURE__ */ v("div", {
215
+ render: (e) => /* @__PURE__ */ _("div", {
206
216
  className: "h-9 w-12 overflow-hidden rounded-md border border-border-subtle",
207
- children: /* @__PURE__ */ v(c, {
217
+ children: /* @__PURE__ */ _(s, {
208
218
  asset: e,
209
219
  iconSize: "h-4 w-4",
210
220
  playBadgeSize: "h-6 w-6"
@@ -215,7 +225,7 @@ var D = () => {
215
225
  key: "name",
216
226
  header: "Name",
217
227
  sortable: !0,
218
- render: (e) => /* @__PURE__ */ v("span", {
228
+ render: (e) => /* @__PURE__ */ _("span", {
219
229
  className: "font-medium text-text-primary",
220
230
  children: e.name
221
231
  })
@@ -223,7 +233,7 @@ var D = () => {
223
233
  {
224
234
  key: "type",
225
235
  header: "Type",
226
- render: (e) => /* @__PURE__ */ v(b, {
236
+ render: (e) => /* @__PURE__ */ _(y, {
227
237
  variant: C[e.type],
228
238
  children: w(e)
229
239
  })
@@ -232,7 +242,7 @@ var D = () => {
232
242
  key: "size",
233
243
  header: "Size",
234
244
  sortable: !0,
235
- render: (e) => /* @__PURE__ */ v("span", {
245
+ render: (e) => /* @__PURE__ */ _("span", {
236
246
  className: "text-text-secondary",
237
247
  children: T(e.size)
238
248
  })
@@ -240,7 +250,7 @@ var D = () => {
240
250
  {
241
251
  key: "dimensions",
242
252
  header: "Dimensions",
243
- render: (e) => /* @__PURE__ */ v("span", {
253
+ render: (e) => /* @__PURE__ */ _("span", {
244
254
  className: "text-text-secondary",
245
255
  children: e.dimensions ? `${e.dimensions.width}×${e.dimensions.height}` : "—"
246
256
  })
@@ -248,7 +258,7 @@ var D = () => {
248
258
  {
249
259
  key: "folderId",
250
260
  header: "Folder",
251
- render: (e) => /* @__PURE__ */ v("span", {
261
+ render: (e) => /* @__PURE__ */ _("span", {
252
262
  className: "text-text-secondary",
253
263
  children: e.folderId === null ? "Unfiled" : X.get(e.folderId) ?? "Unnamed folder"
254
264
  })
@@ -257,328 +267,328 @@ var D = () => {
257
267
  key: "actions",
258
268
  header: "",
259
269
  className: "w-12 text-right",
260
- render: (e) => /* @__PURE__ */ v("div", {
270
+ render: (e) => /* @__PURE__ */ _("div", {
261
271
  className: "flex justify-end",
262
272
  onClick: (e) => e.stopPropagation(),
263
273
  role: "presentation",
264
- children: /* @__PURE__ */ v(a, {
274
+ children: /* @__PURE__ */ _(ae, {
265
275
  id: `asset-row-menu-${e.id}`,
266
276
  items: [
267
277
  {
268
278
  key: "copy",
269
279
  label: "Copy URL",
270
- icon: /* @__PURE__ */ v(f, { className: "h-4 w-4" }),
271
- onClick: () => void k(e.url)
280
+ icon: /* @__PURE__ */ _(d, { className: "h-4 w-4" }),
281
+ onClick: () => void A(e.url)
272
282
  },
273
283
  {
274
284
  key: "download",
275
285
  label: "Download",
276
- icon: /* @__PURE__ */ v(p, { className: "h-4 w-4" }),
286
+ icon: /* @__PURE__ */ _(f, { className: "h-4 w-4" }),
277
287
  onClick: () => E(e.url, e.name)
278
288
  },
279
289
  {
280
290
  key: "delete",
281
291
  label: "Delete",
282
- icon: /* @__PURE__ */ v(g, { className: "h-4 w-4" }),
292
+ icon: /* @__PURE__ */ _(h, { className: "h-4 w-4" }),
283
293
  danger: !0,
284
- onClick: () => void Ve(e)
294
+ onClick: () => void We(e)
285
295
  }
286
296
  ]
287
297
  })
288
298
  })
289
299
  }
290
300
  ], $ = "min-h-[40px] rounded-md border border-border-subtle bg-bg-surface px-3 py-2 text-sm text-text-primary focus:outline-none focus:ring-2 focus:ring-[var(--color-focus-ring)]";
291
- return /* @__PURE__ */ y(r, {
301
+ return /* @__PURE__ */ v(r, {
292
302
  title: "Asset Library",
293
303
  description: "Manage your marketing assets and media files",
294
- actions: /* @__PURE__ */ v(i, { onUploaded: () => void O() }),
304
+ actions: /* @__PURE__ */ _(i, { onUploaded: () => void k() }),
295
305
  children: [
296
- /* @__PURE__ */ v(ve, { children: "Your shared store of brand assets — images, videos, logos and documents your team reuses across campaigns. Browse by category, search by tag, and grab the right file without hunting through folders." }),
297
- /* @__PURE__ */ v(se, {
306
+ /* @__PURE__ */ _(ye, { children: "Your shared store of brand assets — images, videos, logos and documents your team reuses across campaigns. Browse by category, search by tag, and grab the right file without hunting through folders." }),
307
+ /* @__PURE__ */ _(ce, {
298
308
  active: "assets",
299
- basePath: we,
300
- navigate: Ce
309
+ basePath: Ee,
310
+ navigate: Te
301
311
  }),
302
- /* @__PURE__ */ y(re, {
303
- loading: D,
304
- error: Se,
305
- onRetry: () => void O(),
306
- hasData: !!_,
312
+ /* @__PURE__ */ v(re, {
313
+ loading: O,
314
+ error: we,
315
+ onRetry: () => void k(),
316
+ hasData: !!D,
307
317
  children: [
308
- V && /* @__PURE__ */ v("div", {
318
+ H && /* @__PURE__ */ _("div", {
309
319
  role: "alert",
310
320
  className: "rounded-lg border border-status-error-border/30 bg-status-error-bg/10 px-4 py-3 text-sm text-status-error-text",
311
- children: V
321
+ children: H
312
322
  }),
313
- /* @__PURE__ */ v(_e, { children: /* @__PURE__ */ v("div", {
323
+ /* @__PURE__ */ _(ve, { children: /* @__PURE__ */ _("div", {
314
324
  className: "grid grid-cols-2 gap-4 sm:grid-cols-4",
315
325
  children: [
316
326
  {
317
327
  label: "Total Assets",
318
- value: s(Y.length),
319
- icon: /* @__PURE__ */ v(m, { className: "h-5 w-5" })
328
+ value: o(Y.length),
329
+ icon: /* @__PURE__ */ _(p, { className: "h-5 w-5" })
320
330
  },
321
331
  {
322
332
  label: "Images",
323
- value: s(Pe),
324
- icon: /* @__PURE__ */ v(ue, { className: "h-5 w-5" })
333
+ value: o(Le),
334
+ icon: /* @__PURE__ */ _(de, { className: "h-5 w-5" })
325
335
  },
326
336
  {
327
337
  label: "Videos",
328
- value: s(Fe),
329
- icon: /* @__PURE__ */ v(pe, { className: "h-5 w-5" })
338
+ value: o(Re),
339
+ icon: /* @__PURE__ */ _(me, { className: "h-5 w-5" })
330
340
  },
331
341
  {
332
342
  label: "Total Size",
333
- value: T(Ne),
334
- icon: /* @__PURE__ */ v(le, { className: "h-5 w-5" })
343
+ value: T(Ie),
344
+ icon: /* @__PURE__ */ _(ue, { className: "h-5 w-5" })
335
345
  }
336
- ].map((e) => /* @__PURE__ */ y("div", {
346
+ ].map((e) => /* @__PURE__ */ v("div", {
337
347
  className: "flex items-center gap-3",
338
- children: [/* @__PURE__ */ v("span", {
348
+ children: [/* @__PURE__ */ _("span", {
339
349
  className: "flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-bg-sunken text-text-secondary",
340
350
  children: e.icon
341
- }), /* @__PURE__ */ y("div", {
351
+ }), /* @__PURE__ */ v("div", {
342
352
  className: "min-w-0",
343
- children: [/* @__PURE__ */ v("p", {
353
+ children: [/* @__PURE__ */ _("p", {
344
354
  className: "truncate text-xs text-text-secondary",
345
355
  children: e.label
346
- }), /* @__PURE__ */ v("p", {
356
+ }), /* @__PURE__ */ _("p", {
347
357
  className: "text-2xl font-semibold text-text-primary",
348
358
  children: e.value
349
359
  })]
350
360
  })]
351
361
  }, e.label))
352
362
  }) }),
353
- /* @__PURE__ */ v(ne, {
354
- searchValue: M,
355
- onSearchChange: Te,
363
+ /* @__PURE__ */ _(ne, {
364
+ searchValue: N,
365
+ onSearchChange: De,
356
366
  searchPlaceholder: "Search assets by name or tag...",
357
- filters: /* @__PURE__ */ y("div", {
367
+ filters: /* @__PURE__ */ v("div", {
358
368
  className: "flex flex-nowrap items-center gap-2 overflow-x-auto",
359
- children: [/* @__PURE__ */ v("select", {
360
- value: N,
361
- onChange: (e) => Ee(e.target.value),
369
+ children: [/* @__PURE__ */ _(b, {
370
+ value: P,
371
+ onChange: (e) => Oe(e.target.value),
362
372
  "aria-label": "Filter by type",
363
373
  className: $,
364
- children: be.map((e) => /* @__PURE__ */ v("option", {
374
+ children: Se.map((e) => /* @__PURE__ */ _("option", {
365
375
  value: e.value,
366
376
  children: e.label
367
377
  }, e.value))
368
- }), /* @__PURE__ */ y("div", {
378
+ }), /* @__PURE__ */ v("div", {
369
379
  className: "relative",
370
- children: [/* @__PURE__ */ v(ce, { className: "pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ v("select", {
371
- value: I,
372
- onChange: (e) => De(e.target.value),
380
+ children: [/* @__PURE__ */ _(le, { className: "pointer-events-none absolute start-3 top-1/2 h-4 w-4 -translate-y-1/2 text-text-secondary" }), /* @__PURE__ */ _(b, {
381
+ value: L,
382
+ onChange: (e) => ke(e.target.value),
373
383
  "aria-label": "Sort assets",
374
- className: o($, "pl-9"),
375
- children: xe.map((e) => /* @__PURE__ */ v("option", {
384
+ className: a($, "ps-9"),
385
+ children: Ce.map((e) => /* @__PURE__ */ _("option", {
376
386
  value: e.value,
377
387
  children: e.label
378
388
  }, e.value))
379
389
  })]
380
390
  })]
381
391
  }),
382
- actions: /* @__PURE__ */ y("div", {
392
+ actions: /* @__PURE__ */ v("div", {
383
393
  className: "flex items-center gap-1 rounded-md border border-border-subtle p-0.5",
384
- children: [/* @__PURE__ */ v("button", {
394
+ children: [/* @__PURE__ */ _("button", {
385
395
  type: "button",
386
- onClick: () => R("grid"),
396
+ onClick: () => z("grid"),
387
397
  "aria-label": "Grid view",
388
- "aria-pressed": L === "grid",
389
- className: o("flex min-h-[36px] min-w-[36px] items-center justify-center rounded p-1.5 transition-colors", L === "grid" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
390
- children: /* @__PURE__ */ v(de, { className: "h-4 w-4" })
391
- }), /* @__PURE__ */ v("button", {
398
+ "aria-pressed": R === "grid",
399
+ className: a("flex min-h-[36px] min-w-[36px] items-center justify-center rounded p-1.5 transition-colors", R === "grid" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
400
+ children: /* @__PURE__ */ _(fe, { className: "h-4 w-4" })
401
+ }), /* @__PURE__ */ _("button", {
392
402
  type: "button",
393
- onClick: () => R("list"),
403
+ onClick: () => z("list"),
394
404
  "aria-label": "List view",
395
- "aria-pressed": L === "list",
396
- className: o("flex min-h-[36px] min-w-[36px] items-center justify-center rounded p-1.5 transition-colors", L === "list" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
397
- children: /* @__PURE__ */ v(fe, { className: "h-4 w-4" })
405
+ "aria-pressed": R === "list",
406
+ className: a("flex min-h-[36px] min-w-[36px] items-center justify-center rounded p-1.5 transition-colors", R === "list" ? "bg-action-primary-bg text-action-primary-text" : "text-text-secondary hover:text-text-primary"),
407
+ children: /* @__PURE__ */ _(pe, { className: "h-4 w-4" })
398
408
  })]
399
409
  })
400
410
  }),
401
- /* @__PURE__ */ y("div", {
402
- className: o("grid gap-4", Z.length > 0 && "lg:grid-cols-[220px_minmax(0,1fr)]"),
403
- children: [Z.length > 0 && /* @__PURE__ */ y("nav", {
411
+ /* @__PURE__ */ v("div", {
412
+ className: a("grid gap-4", Z.length > 0 && "lg:grid-cols-[220px_minmax(0,1fr)]"),
413
+ children: [Z.length > 0 && /* @__PURE__ */ v("nav", {
404
414
  "aria-label": "Asset folders",
405
415
  className: "h-fit rounded-lg border border-border-seam bg-gloss-card p-2 shadow-pop",
406
- children: [/* @__PURE__ */ y("button", {
416
+ children: [/* @__PURE__ */ v("button", {
407
417
  type: "button",
408
- onClick: () => F(x),
409
- "aria-pressed": P === x,
410
- className: o("flex w-full items-center justify-between gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors", P === x ? "bg-bg-sunken font-medium text-text-primary" : "text-text-secondary hover:bg-bg-sunken hover:text-text-primary"),
411
- children: [/* @__PURE__ */ y("span", {
418
+ onClick: () => I(x),
419
+ "aria-pressed": F === x,
420
+ className: a("flex w-full items-center justify-between gap-2 rounded-md px-3 py-2 text-start text-sm transition-colors", F === x ? "bg-bg-sunken font-medium text-text-primary" : "text-text-secondary hover:bg-bg-sunken hover:text-text-primary"),
421
+ children: [/* @__PURE__ */ v("span", {
412
422
  className: "flex min-w-0 items-center gap-2",
413
- children: [/* @__PURE__ */ v(m, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ v("span", {
423
+ children: [/* @__PURE__ */ _(p, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ _("span", {
414
424
  className: "truncate",
415
425
  children: "All Assets"
416
426
  })]
417
- }), /* @__PURE__ */ v("span", {
427
+ }), /* @__PURE__ */ _("span", {
418
428
  className: "shrink-0 text-xs tabular-nums text-text-secondary",
419
429
  children: Y.length
420
430
  })]
421
- }), Z.length === 0 ? /* @__PURE__ */ v("p", {
431
+ }), Z.length === 0 ? /* @__PURE__ */ _("p", {
422
432
  className: "px-3 py-2 text-xs text-text-secondary",
423
433
  children: "No folders in use yet."
424
- }) : /* @__PURE__ */ v("ul", {
434
+ }) : /* @__PURE__ */ _("ul", {
425
435
  className: "mt-1 space-y-0.5",
426
- children: Z.map((e) => /* @__PURE__ */ v("li", { children: /* @__PURE__ */ y("button", {
436
+ children: Z.map((e) => /* @__PURE__ */ _("li", { children: /* @__PURE__ */ v("button", {
427
437
  type: "button",
428
- onClick: () => F(e.id),
429
- "aria-pressed": P === e.id,
430
- className: o("flex w-full items-center justify-between gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors", P === e.id ? "bg-bg-sunken font-medium text-text-primary" : "text-text-secondary hover:bg-bg-sunken hover:text-text-primary"),
431
- children: [/* @__PURE__ */ y("span", {
438
+ onClick: () => I(e.id),
439
+ "aria-pressed": F === e.id,
440
+ className: a("flex w-full items-center justify-between gap-2 rounded-md px-3 py-2 text-start text-sm transition-colors", F === e.id ? "bg-bg-sunken font-medium text-text-primary" : "text-text-secondary hover:bg-bg-sunken hover:text-text-primary"),
441
+ children: [/* @__PURE__ */ v("span", {
432
442
  className: "flex min-w-0 items-center gap-2",
433
- children: [/* @__PURE__ */ v(h, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ v("span", {
443
+ children: [/* @__PURE__ */ _(m, { className: "h-4 w-4 shrink-0" }), /* @__PURE__ */ _("span", {
434
444
  className: "truncate",
435
445
  children: e.name
436
446
  })]
437
- }), /* @__PURE__ */ v("span", {
447
+ }), /* @__PURE__ */ _("span", {
438
448
  className: "shrink-0 text-xs tabular-nums text-text-secondary",
439
449
  children: e.count
440
450
  })]
441
451
  }) }, e.id))
442
452
  })]
443
- }), /* @__PURE__ */ y("div", {
453
+ }), /* @__PURE__ */ v("div", {
444
454
  className: "min-w-0 space-y-4",
445
- children: [z.size > 0 && /* @__PURE__ */ y("div", {
455
+ children: [B.size > 0 && /* @__PURE__ */ v("div", {
446
456
  className: "flex flex-col gap-3 rounded-lg border border-action-primary-bg/40 bg-action-primary-bg/10 px-4 py-3 sm:flex-row sm:items-center sm:justify-between",
447
- children: [/* @__PURE__ */ y("div", {
457
+ children: [/* @__PURE__ */ v("div", {
448
458
  className: "flex items-center gap-3",
449
- children: [/* @__PURE__ */ y("span", {
459
+ children: [/* @__PURE__ */ v("span", {
450
460
  className: "text-sm font-medium text-text-primary",
451
- children: [z.size, " selected"]
452
- }), /* @__PURE__ */ v("button", {
461
+ children: [B.size, " selected"]
462
+ }), /* @__PURE__ */ _("button", {
453
463
  type: "button",
454
- onClick: ze,
464
+ onClick: He,
455
465
  className: "text-xs font-medium text-text-secondary underline-offset-2 hover:text-text-primary hover:underline",
456
- children: Le ? "Clear all" : `Select all ${Q.length}`
466
+ children: Be ? "Clear all" : `Select all ${Q.length}`
457
467
  })]
458
- }), /* @__PURE__ */ y("div", {
468
+ }), /* @__PURE__ */ v("div", {
459
469
  className: "flex flex-wrap items-center gap-2",
460
470
  children: [
461
- /* @__PURE__ */ y("button", {
471
+ /* @__PURE__ */ v("button", {
462
472
  type: "button",
463
- onClick: He,
473
+ onClick: Ge,
464
474
  className: "inline-flex min-h-[36px] items-center gap-1.5 rounded-md border border-border-subtle bg-bg-surface px-3 py-1.5 text-sm font-medium text-text-primary hover:bg-bg-sunken",
465
- children: [/* @__PURE__ */ v(p, { className: "h-4 w-4" }), "Download"]
475
+ children: [/* @__PURE__ */ _(f, { className: "h-4 w-4" }), "Download"]
466
476
  }),
467
- /* @__PURE__ */ y("button", {
477
+ /* @__PURE__ */ v("button", {
468
478
  type: "button",
469
- onClick: () => void Ue(),
470
- disabled: Oe,
479
+ onClick: () => void Ke(),
480
+ disabled: W,
471
481
  className: "inline-flex min-h-[36px] items-center gap-1.5 rounded-md border border-status-error-border/40 bg-status-error-bg/10 px-3 py-1.5 text-sm font-medium text-status-error-text hover:bg-status-error-bg/20 disabled:opacity-60",
472
- children: [/* @__PURE__ */ v(g, { className: "h-4 w-4" }), Oe ? "Deleting…" : "Delete"]
482
+ children: [/* @__PURE__ */ _(h, { className: "h-4 w-4" }), W ? "Deleting…" : "Delete"]
473
483
  }),
474
- /* @__PURE__ */ v("button", {
484
+ /* @__PURE__ */ _("button", {
475
485
  type: "button",
476
- onClick: Be,
486
+ onClick: Ue,
477
487
  "aria-label": "Clear selection",
478
488
  className: "inline-flex min-h-[36px] min-w-[36px] items-center justify-center rounded-md text-text-secondary hover:bg-bg-sunken hover:text-text-primary",
479
- children: /* @__PURE__ */ v(me, { className: "h-4 w-4" })
489
+ children: /* @__PURE__ */ _(he, { className: "h-4 w-4" })
480
490
  })
481
491
  ]
482
492
  })]
483
- }), Q.length === 0 ? /* @__PURE__ */ v(te, {
493
+ }), Q.length === 0 ? /* @__PURE__ */ _(ee, {
484
494
  illustration: Y.length === 0 ? "empty-files" : "empty-search",
485
495
  title: Y.length === 0 ? "No assets yet" : "No assets match your filters",
486
496
  description: Y.length === 0 ? "Upload images, videos, logos or documents to build your shared asset library." : "Try a different search term, folder or type filter.",
487
- action: Y.length === 0 ? /* @__PURE__ */ v(i, { onUploaded: () => void O() }) : void 0
488
- }) : /* @__PURE__ */ y("div", {
497
+ action: Y.length === 0 ? /* @__PURE__ */ _(i, { onUploaded: () => void k() }) : void 0
498
+ }) : /* @__PURE__ */ v("div", {
489
499
  className: "space-y-4",
490
- children: [L === "grid" ? /* @__PURE__ */ v("div", {
500
+ children: [R === "grid" ? /* @__PURE__ */ _("div", {
491
501
  className: "grid grid-cols-2 gap-4 md:grid-cols-3 lg:grid-cols-4",
492
- children: Me.map((e) => {
493
- let t = z.has(e.id);
494
- return /* @__PURE__ */ y("div", {
495
- className: o("group overflow-hidden rounded-lg border bg-gloss-card transition-shadow hover:shadow-pop", t ? "border-action-primary-bg ring-2 ring-[var(--color-action-primary-bg)]" : "border-border-seam"),
496
- children: [/* @__PURE__ */ y("div", {
502
+ children: Fe.map((e) => {
503
+ let t = B.has(e.id);
504
+ return /* @__PURE__ */ v("div", {
505
+ className: a("group overflow-hidden rounded-lg border bg-gloss-card transition-shadow hover:shadow-pop", t ? "border-action-primary-bg ring-2 ring-[var(--color-action-primary-bg)]" : "border-border-seam"),
506
+ children: [/* @__PURE__ */ v("div", {
497
507
  className: "relative h-32 overflow-hidden rounded-t-lg",
498
508
  children: [
499
- /* @__PURE__ */ v(c, { asset: e }),
500
- /* @__PURE__ */ v("label", {
501
- className: "absolute left-2 top-2 z-20 flex h-6 w-6 cursor-pointer items-center justify-center rounded-md border border-border-default bg-bg-surface/90 shadow-pop backdrop-blur-sm",
509
+ /* @__PURE__ */ _(s, { asset: e }),
510
+ /* @__PURE__ */ _("label", {
511
+ className: "absolute start-2 top-2 z-20 flex h-6 w-6 cursor-pointer items-center justify-center rounded-md border border-border-default bg-bg-surface/90 shadow-pop backdrop-blur-sm",
502
512
  title: "Select asset",
503
- children: /* @__PURE__ */ v("input", {
513
+ children: /* @__PURE__ */ _("input", {
504
514
  type: "checkbox",
505
515
  checked: t,
506
- onChange: () => Re(e.id),
516
+ onChange: () => Ve(e.id),
507
517
  "aria-label": `Select ${e.name}`,
508
518
  className: "h-4 w-4 cursor-pointer accent-[var(--color-action-primary-bg)]"
509
519
  })
510
520
  }),
511
- /* @__PURE__ */ v("div", {
512
- className: "absolute right-2 top-2 z-20",
513
- children: /* @__PURE__ */ v(b, {
521
+ /* @__PURE__ */ _("div", {
522
+ className: "absolute end-2 top-2 z-20",
523
+ children: /* @__PURE__ */ _(y, {
514
524
  variant: C[e.type],
515
525
  className: "shadow-pop backdrop-blur-sm",
516
526
  children: w(e)
517
527
  })
518
528
  }),
519
- /* @__PURE__ */ v("div", {
529
+ /* @__PURE__ */ _("div", {
520
530
  className: "pointer-events-none absolute inset-0 z-10 flex items-center justify-center bg-black/0 opacity-0 transition-all duration-200 group-hover:bg-black/25 group-hover:opacity-100",
521
- children: /* @__PURE__ */ v("button", {
531
+ children: /* @__PURE__ */ _("button", {
522
532
  type: "button",
523
533
  onClick: () => E(e.url, e.name),
524
534
  "aria-label": `Download ${e.name}`,
525
535
  className: "pointer-events-auto flex h-10 w-10 items-center justify-center rounded-full bg-bg-surface/90 text-text-primary shadow-pop transition-transform hover:scale-105",
526
- children: /* @__PURE__ */ v(p, { className: "h-4 w-4" })
536
+ children: /* @__PURE__ */ _(f, { className: "h-4 w-4" })
527
537
  })
528
538
  })
529
539
  ]
530
- }), /* @__PURE__ */ y("div", {
540
+ }), /* @__PURE__ */ v("div", {
531
541
  className: "p-3",
532
542
  children: [
533
- /* @__PURE__ */ y("div", {
543
+ /* @__PURE__ */ v("div", {
534
544
  className: "flex items-start justify-between gap-2",
535
- children: [/* @__PURE__ */ v("p", {
545
+ children: [/* @__PURE__ */ _("p", {
536
546
  className: "truncate text-sm font-medium text-text-primary",
537
547
  children: e.name
538
- }), /* @__PURE__ */ v(a, {
548
+ }), /* @__PURE__ */ _(ae, {
539
549
  id: `asset-menu-${e.id}`,
540
550
  items: [
541
551
  {
542
552
  key: "copy",
543
553
  label: "Copy URL",
544
- icon: /* @__PURE__ */ v(f, { className: "h-4 w-4" }),
545
- onClick: () => void k(e.url)
554
+ icon: /* @__PURE__ */ _(d, { className: "h-4 w-4" }),
555
+ onClick: () => void A(e.url)
546
556
  },
547
557
  {
548
558
  key: "download",
549
559
  label: "Download",
550
- icon: /* @__PURE__ */ v(p, { className: "h-4 w-4" }),
560
+ icon: /* @__PURE__ */ _(f, { className: "h-4 w-4" }),
551
561
  onClick: () => E(e.url, e.name)
552
562
  },
553
563
  {
554
564
  key: "delete",
555
565
  label: "Delete",
556
- icon: /* @__PURE__ */ v(g, { className: "h-4 w-4" }),
566
+ icon: /* @__PURE__ */ _(h, { className: "h-4 w-4" }),
557
567
  danger: !0,
558
- onClick: () => void Ve(e)
568
+ onClick: () => void We(e)
559
569
  }
560
570
  ]
561
571
  })]
562
572
  }),
563
- /* @__PURE__ */ y("div", {
573
+ /* @__PURE__ */ v("div", {
564
574
  className: "mt-1 flex items-center justify-between",
565
- children: [/* @__PURE__ */ y("span", {
575
+ children: [/* @__PURE__ */ v("span", {
566
576
  className: "text-xs text-text-secondary",
567
577
  children: [T(e.size), e.dimensions ? ` · ${e.dimensions.width}×${e.dimensions.height}` : ""]
568
- }), /* @__PURE__ */ y("div", {
578
+ }), /* @__PURE__ */ v("div", {
569
579
  className: "flex min-w-0 items-center gap-1",
570
- children: [/* @__PURE__ */ v(h, { className: "h-3 w-3 shrink-0 text-text-secondary" }), /* @__PURE__ */ v("span", {
580
+ children: [/* @__PURE__ */ _(m, { className: "h-3 w-3 shrink-0 text-text-secondary" }), /* @__PURE__ */ _("span", {
571
581
  className: "truncate text-xs text-text-secondary",
572
582
  children: e.folderId === null ? "Unfiled" : X.get(e.folderId) ?? "Unnamed folder"
573
583
  })]
574
584
  })]
575
585
  }),
576
- e.tags.length > 0 && /* @__PURE__ */ y("div", {
586
+ e.tags.length > 0 && /* @__PURE__ */ v("div", {
577
587
  className: "mt-2 flex flex-wrap gap-1",
578
- children: [e.tags.slice(0, 2).map((e) => /* @__PURE__ */ v("span", {
588
+ children: [e.tags.slice(0, 2).map((e) => /* @__PURE__ */ _("span", {
579
589
  className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] text-text-secondary",
580
590
  children: e
581
- }, e)), e.tags.length > 2 && /* @__PURE__ */ y("span", {
591
+ }, e)), e.tags.length > 2 && /* @__PURE__ */ v("span", {
582
592
  className: "rounded-full bg-bg-sunken px-2 py-0.5 text-[10px] text-text-secondary",
583
593
  children: ["+", e.tags.length - 2]
584
594
  })]
@@ -587,23 +597,23 @@ var D = () => {
587
597
  })]
588
598
  }, e.id);
589
599
  })
590
- }) : /* @__PURE__ */ v(ee, {
591
- data: Me,
592
- columns: We,
593
- pageSize: W,
600
+ }) : /* @__PURE__ */ _(te, {
601
+ data: Fe,
602
+ columns: qe,
603
+ pageSize: K,
594
604
  emptyMessage: "No assets match your filters"
595
- }), /* @__PURE__ */ v(ie, {
596
- page: ke,
597
- pageSize: W,
605
+ }), /* @__PURE__ */ _(ie, {
606
+ page: Ae,
607
+ pageSize: K,
598
608
  total: Q.length,
599
- onPageChange: q,
600
- onPageSizeChange: Ae,
609
+ onPageChange: J,
610
+ onPageSizeChange: Me,
601
611
  pageSizeOptions: [
602
612
  12,
603
613
  24,
604
614
  48
605
615
  ],
606
- disabled: D,
616
+ disabled: O,
607
617
  hideWhenSinglePage: !0
608
618
  })]
609
619
  })]