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