@nukleus-sports/ui-patterns 0.1.2 → 0.3.0

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.
@@ -20,9 +20,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/marketing/index.ts
21
21
  var marketing_exports = {};
22
22
  __export(marketing_exports, {
23
+ ContractDetailsCard: () => ContractDetailsCard,
23
24
  DealEmptyState: () => DealEmptyState,
24
- ENTITY_AVATAR_SIZE_PX: () => ENTITY_AVATAR_SIZE_PX,
25
- EntityAvatar: () => EntityAvatar,
26
25
  ManualDealCard: () => ManualDealCard,
27
26
  ManualDealPreviewDialog: () => ManualDealPreviewDialog,
28
27
  ProjectDealCard: () => ProjectDealCard,
@@ -31,43 +30,268 @@ __export(marketing_exports, {
31
30
  });
32
31
  module.exports = __toCommonJS(marketing_exports);
33
32
 
34
- // src/marketing/entity-avatar.tsx
33
+ // src/marketing/row-actions-dropdown.tsx
35
34
  var import_ui_web = require("@nukleus-sports/ui-web");
35
+ var import_icons = require("@nukleus-sports/icons");
36
36
  var import_jsx_runtime = require("react/jsx-runtime");
37
- var ENTITY_AVATAR_SIZE_PX = {
38
- xs: 16,
39
- sm: 24,
40
- md: 32,
41
- lg: 48,
42
- xl: 64
37
+ function RowActionsDropdown({
38
+ actions,
39
+ trigger,
40
+ triggerClassName,
41
+ contentClassName,
42
+ align = "end",
43
+ ariaLabel,
44
+ modal = true
45
+ }) {
46
+ const visibleActions = actions.filter((a) => a.when !== false);
47
+ if (visibleActions.length === 0) return null;
48
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ui_web.DropdownMenu, { modal, children: [
49
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui_web.DropdownMenuTrigger, { asChild: true, children: trigger ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
50
+ import_ui_web.Button,
51
+ {
52
+ variant: "text",
53
+ size: "sm",
54
+ "aria-label": ariaLabel ?? "Row actions",
55
+ onClick: (e) => e.stopPropagation(),
56
+ className: (0, import_ui_web.cn)("h-8 w-8 p-0 shrink-0", triggerClassName),
57
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons.MoreIcon, { className: "h-14 w-16 text-btn-primary", "aria-hidden": "true" })
58
+ }
59
+ ) }),
60
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
61
+ import_ui_web.DropdownMenuContent,
62
+ {
63
+ align,
64
+ className: (0, import_ui_web.cn)(
65
+ "rounded-[10px] bg-table px-0 py-2 dark:border dark:border-text-secondary shadow-[0_4px_18px_-6px_rgba(0,0,0,0.12)]",
66
+ contentClassName
67
+ ),
68
+ children: visibleActions.map((action, i) => {
69
+ const item = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
70
+ import_ui_web.DropdownMenuItem,
71
+ {
72
+ disabled: action.disabled,
73
+ onClick: (e) => {
74
+ e.stopPropagation();
75
+ if (action.disabled) {
76
+ e.preventDefault();
77
+ return;
78
+ }
79
+ action.onClick(e);
80
+ },
81
+ className: (0, import_ui_web.cn)(
82
+ action.destructive && "text-semantic-color-status-priority-blocked-hot-copy hover:!text-semantic-color-status-priority-blocked-hot-copy",
83
+ action.className
84
+ ),
85
+ children: action.label
86
+ },
87
+ i
88
+ );
89
+ if (action.disabled && action.disabledTooltip) {
90
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui_web.TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ui_web.Tooltip, { children: [
91
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui_web.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: item }) }),
92
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui_web.TooltipContent, { children: action.disabledTooltip })
93
+ ] }) }, i);
94
+ }
95
+ return item;
96
+ })
97
+ }
98
+ )
99
+ ] });
100
+ }
101
+
102
+ // src/marketing/deal-empty-state.tsx
103
+ var import_ui_web2 = require("@nukleus-sports/ui-web");
104
+ var import_jsx_runtime2 = require("react/jsx-runtime");
105
+ function DealEmptyState({ message, className, messageClassName }) {
106
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: (0, import_ui_web2.cn)("flex items-center justify-center py-10 px-6", className), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
107
+ "p",
108
+ {
109
+ className: (0, import_ui_web2.cn)("body-text text-text-secondary text-center max-w-[380px]", messageClassName),
110
+ children: message
111
+ }
112
+ ) });
113
+ }
114
+
115
+ // src/marketing/contract-details-card.tsx
116
+ var import_ui_web3 = require("@nukleus-sports/ui-web");
117
+ var import_core = require("@nukleus-sports/core");
118
+ var import_jsx_runtime3 = require("react/jsx-runtime");
119
+ function Row({ label, children }) {
120
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex min-w-0 flex-col gap-2", children: [
121
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "label-base-medium text-text-secondary font-ss02-ss05", children: label }),
122
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "body-text text-text-primary whitespace-pre-wrap break-words font-ss02-ss05", children })
123
+ ] });
124
+ }
125
+ function usageAfterTerm({
126
+ usage_after_term_days: days
127
+ }) {
128
+ if (days == null) return null;
129
+ return days === 1 ? "1 day after the term" : `${days} days after the term`;
130
+ }
131
+ function ContractDetailsCard({
132
+ details,
133
+ title = "Contract Details",
134
+ caption,
135
+ className
136
+ }) {
137
+ const usage = usageAfterTerm(details);
138
+ const exclusive = details.is_exclusive == null ? null : details.is_exclusive ? "Exclusive" : "Not exclusive";
139
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
140
+ "div",
141
+ {
142
+ className: (0, import_ui_web3.cn)(
143
+ "flex w-full flex-col gap-4 rounded-[10px] border border-grey-strokes-tables bg-card px-4 py-3",
144
+ className
145
+ ),
146
+ children: [
147
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex flex-col gap-1", children: [
148
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h3", { className: "header-xl-medium-card text-text-primary font-ss02-ss05", children: title }),
149
+ caption && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("p", { className: "label-xs-text text-text-secondary", children: caption })
150
+ ] }),
151
+ details.warnings.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex flex-col gap-2 rounded-[10px] bg-semantic-color-status-priority-in-progress-warm-fill px-3 py-2", children: [
152
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "label-base-medium text-semantic-color-status-priority-in-progress-warm-copy", children: [
153
+ "Worth checking (",
154
+ details.warnings.length,
155
+ ")"
156
+ ] }),
157
+ details.warnings.map((warning, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
158
+ "p",
159
+ {
160
+ className: "body-text text-semantic-color-status-priority-in-progress-warm-copy break-words",
161
+ children: [
162
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "font-medium", children: warning.issue }),
163
+ warning.detail && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { children: [
164
+ ": ",
165
+ warning.detail
166
+ ] })
167
+ ]
168
+ },
169
+ `${warning.issue}-${index}`
170
+ ))
171
+ ] }),
172
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "grid grid-cols-1 gap-4 sm:grid-cols-2", children: [
173
+ details.territory && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Row, { label: "Territory", children: details.territory }),
174
+ details.contracting_entity && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Row, { label: "Contracting Entity", children: details.contracting_entity }),
175
+ exclusive && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Row, { label: "Exclusivity", children: exclusive }),
176
+ usage && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Row, { label: "Usage After Term", children: usage })
177
+ ] }),
178
+ details.exclusivity && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Row, { label: "Exclusivity Terms", children: details.exclusivity }),
179
+ details.payment_terms && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Row, { label: "Payment Terms", children: details.payment_terms }),
180
+ details.usage_after_term && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Row, { label: "Usage Rights", children: details.usage_after_term }),
181
+ details.deliverables.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "flex flex-col gap-2", children: [
182
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "label-base-medium text-text-secondary font-ss02-ss05", children: [
183
+ "Deliverables (",
184
+ details.deliverables.length,
185
+ ")"
186
+ ] }),
187
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ul", { className: "flex flex-col divide-y divide-greys-grey-strokes-tables rounded-[10px] border border-greys-grey-strokes-tables", children: details.deliverables.map((deliverable, index) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
188
+ "li",
189
+ {
190
+ className: "flex flex-col gap-1 px-3 py-2 sm:flex-row sm:items-start sm:justify-between sm:gap-4",
191
+ children: [
192
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "min-w-0 body-text text-text-primary break-words", children: [
193
+ deliverable.units != null && deliverable.units > 1 && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "font-medium", children: [
194
+ deliverable.units,
195
+ " \xD7 "
196
+ ] }),
197
+ deliverable.description
198
+ ] }),
199
+ deliverable.due_date && /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { className: "label-xs-text text-text-secondary whitespace-nowrap", children: [
200
+ "Due ",
201
+ (0, import_core.formatDealDate)(deliverable.due_date)
202
+ ] })
203
+ ]
204
+ },
205
+ `${deliverable.description}-${index}`
206
+ )) })
207
+ ] })
208
+ ]
209
+ }
210
+ );
211
+ }
212
+
213
+ // src/marketing/manual-deal-card.tsx
214
+ var import_react = require("react");
215
+ var import_ui_web6 = require("@nukleus-sports/ui-web");
216
+ var import_icons3 = require("@nukleus-sports/icons");
217
+ var import_core2 = require("@nukleus-sports/core");
218
+
219
+ // src/marketing/deal-card-parts.tsx
220
+ var import_ui_web4 = require("@nukleus-sports/ui-web");
221
+ var import_icons2 = require("@nukleus-sports/icons");
222
+ var import_jsx_runtime4 = (
223
+ // `min-w-0` lets `truncate` below actually engage instead of overflowing
224
+ // the card; `lg:flex-initial` + `max-lg:whitespace-normal` let a label
225
+ // like "Deliverables met - 0/4" wrap in the grid instead of being
226
+ // squeezed to an equal share. (clientapp's version — see ProjectDealCard's
227
+ // module doc.)
228
+ require("react/jsx-runtime")
229
+ );
230
+ var STATUS_STYLES = {
231
+ Active: "bg-semantic-color-status-priority-cold-fill text-semantic-color-status-priority-cold-copy",
232
+ Upcoming: "bg-semantic-color-status-priority-in-progress-warm-fill text-semantic-color-status-priority-in-progress-warm-copy",
233
+ Complete: "bg-semantic-color-status-priority-completed-fill text-semantic-color-status-priority-completed-copy"
43
234
  };
235
+ function TrackingItem({ label, done }) {
236
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex min-w-0 flex-1 gap-2 items-center lg:flex-initial", children: [
237
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
238
+ import_icons2.CheckRingRoundIcon,
239
+ {
240
+ width: 12,
241
+ height: 12,
242
+ className: (0, import_ui_web4.cn)(
243
+ "shrink-0 transition-opacity",
244
+ done ? "text-primary-color-nuk-ui-elem" : "opacity-0"
245
+ )
246
+ }
247
+ ),
248
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
249
+ "span",
250
+ {
251
+ className: (0, import_ui_web4.cn)(
252
+ "label-xs-table truncate max-lg:whitespace-normal",
253
+ done ? "text-primary-color-nuk-text" : "text-text-secondary"
254
+ ),
255
+ children: label
256
+ }
257
+ )
258
+ ] });
259
+ }
260
+
261
+ // src/entity-avatar.tsx
262
+ var import_ui_web5 = require("@nukleus-sports/ui-web");
263
+ var import_jsx_runtime5 = require("react/jsx-runtime");
44
264
  var sizeClasses = {
45
265
  xs: "h-4 w-4",
46
266
  sm: "h-6 w-6",
47
267
  md: "h-8 w-8",
48
268
  lg: "h-12 w-12",
49
- xl: "h-16 w-16"
269
+ xl: "h-16 w-16",
270
+ "2xl": "h-[120px] w-[120px]"
50
271
  };
51
272
  var initialSizeClasses = {
52
273
  xs: "text-[8px]",
53
274
  sm: "text-xs",
54
275
  md: "text-sm",
55
276
  lg: "text-base",
56
- xl: "text-lg"
277
+ xl: "text-lg",
278
+ "2xl": "text-2xl"
57
279
  };
58
280
  var contactSizeClasses = {
59
281
  xs: "h-4 w-4",
60
282
  sm: "h-6 w-6",
61
283
  md: "h-8 w-8",
62
284
  lg: "h-12 w-12",
63
- xl: "h-16 w-16"
285
+ xl: "h-16 w-16",
286
+ "2xl": "h-[120px] w-[120px]"
64
287
  };
65
288
  var contactInitialSizeClasses = {
66
289
  xs: "text-[8px]",
67
290
  sm: "text-[10px]",
68
291
  md: "text-sm",
69
292
  lg: "text-base",
70
- xl: "text-lg"
293
+ xl: "text-lg",
294
+ "2xl": "text-2xl"
71
295
  };
72
296
  function EntityAvatar({
73
297
  entityType = "initials",
@@ -232,18 +456,18 @@ function EntityAvatar({
232
456
  const hasValidImage = Boolean(
233
457
  processedImageUrl && processedImageUrl !== "null" && processedImageUrl !== null && processedImageUrl.trim() !== ""
234
458
  );
235
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ui_web.Avatar, { className: (0, import_ui_web.cn)(avatarSizeClasses[effectiveSize], isSquared && "rounded-lg", className), children: [
236
- hasValidImage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui_web.AvatarImage, { src: processedImageUrl, alt: altText }),
237
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
238
- import_ui_web.AvatarFallback,
459
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_ui_web5.Avatar, { className: (0, import_ui_web5.cn)(avatarSizeClasses[effectiveSize], isSquared && "rounded-lg", className), children: [
460
+ hasValidImage && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_ui_web5.AvatarImage, { src: processedImageUrl, alt: altText }),
461
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
462
+ import_ui_web5.AvatarFallback,
239
463
  {
240
- className: (0, import_ui_web.cn)(
464
+ className: (0, import_ui_web5.cn)(
241
465
  initialsSizeClasses[effectiveSize],
242
466
  isSquared && "rounded-lg bg-greys-grey-table-h",
243
467
  fallbackClassName
244
468
  ),
245
- children: entityType === "contact" || entityType === "initials" ? initials : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
246
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
469
+ children: entityType === "contact" || entityType === "initials" ? initials : /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
470
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
247
471
  "img",
248
472
  {
249
473
  src: defaultImageUrl,
@@ -251,101 +475,15 @@ function EntityAvatar({
251
475
  className: "aspect-square h-full w-full object-cover"
252
476
  }
253
477
  ),
254
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "sr-only", children: initials })
478
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "sr-only", children: initials })
255
479
  ] })
256
480
  }
257
481
  )
258
482
  ] });
259
483
  }
260
484
 
261
- // src/marketing/row-actions-dropdown.tsx
262
- var import_ui_web2 = require("@nukleus-sports/ui-web");
263
- var import_icons = require("@nukleus-sports/icons");
264
- var import_jsx_runtime2 = require("react/jsx-runtime");
265
- function RowActionsDropdown({
266
- actions,
267
- trigger,
268
- triggerClassName,
269
- contentClassName,
270
- align = "end",
271
- ariaLabel,
272
- modal = true
273
- }) {
274
- const visibleActions = actions.filter((a) => a.when !== false);
275
- if (visibleActions.length === 0) return null;
276
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_ui_web2.DropdownMenu, { modal, children: [
277
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ui_web2.DropdownMenuTrigger, { asChild: true, children: trigger ?? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
278
- import_ui_web2.Button,
279
- {
280
- variant: "text",
281
- size: "sm",
282
- "aria-label": ariaLabel ?? "Row actions",
283
- onClick: (e) => e.stopPropagation(),
284
- className: (0, import_ui_web2.cn)("h-8 w-8 p-0 shrink-0", triggerClassName),
285
- children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icons.MoreIcon, { className: "h-14 w-16 text-btn-primary", "aria-hidden": "true" })
286
- }
287
- ) }),
288
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
289
- import_ui_web2.DropdownMenuContent,
290
- {
291
- align,
292
- className: (0, import_ui_web2.cn)(
293
- "rounded-[10px] bg-table px-0 py-2 dark:border dark:border-text-secondary shadow-[0_4px_18px_-6px_rgba(0,0,0,0.12)]",
294
- contentClassName
295
- ),
296
- children: visibleActions.map((action, i) => {
297
- const item = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
298
- import_ui_web2.DropdownMenuItem,
299
- {
300
- disabled: action.disabled,
301
- onClick: (e) => {
302
- e.stopPropagation();
303
- if (action.disabled) {
304
- e.preventDefault();
305
- return;
306
- }
307
- action.onClick(e);
308
- },
309
- className: (0, import_ui_web2.cn)(
310
- action.destructive && "text-semantic-color-status-priority-blocked-hot-copy hover:!text-semantic-color-status-priority-blocked-hot-copy",
311
- action.className
312
- ),
313
- children: action.label
314
- },
315
- i
316
- );
317
- if (action.disabled && action.disabledTooltip) {
318
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ui_web2.TooltipProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_ui_web2.Tooltip, { children: [
319
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ui_web2.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { children: item }) }),
320
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_ui_web2.TooltipContent, { children: action.disabledTooltip })
321
- ] }) }, i);
322
- }
323
- return item;
324
- })
325
- }
326
- )
327
- ] });
328
- }
329
-
330
- // src/marketing/deal-empty-state.tsx
331
- var import_ui_web3 = require("@nukleus-sports/ui-web");
332
- var import_jsx_runtime3 = require("react/jsx-runtime");
333
- function DealEmptyState({ message, className, messageClassName }) {
334
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: (0, import_ui_web3.cn)("flex items-center justify-center py-10 px-6", className), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
335
- "p",
336
- {
337
- className: (0, import_ui_web3.cn)("body-text text-text-secondary text-center max-w-[380px]", messageClassName),
338
- children: message
339
- }
340
- ) });
341
- }
342
-
343
485
  // src/marketing/manual-deal-card.tsx
344
- var import_react = require("react");
345
- var import_ui_web4 = require("@nukleus-sports/ui-web");
346
- var import_icons2 = require("@nukleus-sports/icons");
347
- var import_core = require("@nukleus-sports/core");
348
- var import_jsx_runtime4 = require("react/jsx-runtime");
486
+ var import_jsx_runtime6 = require("react/jsx-runtime");
349
487
  function resolveDealDocument(meta) {
350
488
  const url = meta.uploaded_document?.url ?? meta.document_url ?? null;
351
489
  if (!url) return null;
@@ -358,18 +496,19 @@ function ManualDealCard({
358
496
  onDelete,
359
497
  onOpenDocument,
360
498
  resolveImageUrl,
499
+ asideFooter,
361
500
  className
362
501
  }) {
363
502
  const [isExpanded, setIsExpanded] = (0, import_react.useState)(false);
364
503
  const meta = deal.metadata;
365
504
  const brandName = meta.brand_name;
366
- const startDate = (0, import_core.formatDealDate)(meta.start_date);
367
- const endDate = (0, import_core.formatDealDate)(meta.end_date);
505
+ const startDate = (0, import_core2.formatDealDate)(meta.start_date);
506
+ const endDate = (0, import_core2.formatDealDate)(meta.end_date);
368
507
  const dateRange = [startDate, endDate].filter((d) => Boolean(d) && d !== "\u2014").join(" - ");
369
508
  const metaLine = [meta.deal_category, dateRange].filter(Boolean).join(" \u2022 ");
370
509
  const doc = resolveDealDocument(meta);
371
- const previewDocButton = doc && onOpenDocument && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
372
- import_ui_web4.Button,
510
+ const previewDocButton = doc && onOpenDocument && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
511
+ import_ui_web6.Button,
373
512
  {
374
513
  variant: "unstyled",
375
514
  size: "none",
@@ -381,7 +520,7 @@ function ManualDealCard({
381
520
  },
382
521
  children: [
383
522
  "Preview Doc",
384
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons2.XsViewInvoiceIcon, { className: "size-[18px] p-[1px] flex justify-center items-center" })
523
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_icons3.XsViewInvoiceIcon, { className: "size-[18px] p-[1px] flex justify-center items-center" })
385
524
  ]
386
525
  }
387
526
  );
@@ -395,19 +534,19 @@ function ManualDealCard({
395
534
  when: Boolean(onDelete)
396
535
  }
397
536
  ];
398
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
537
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
399
538
  "div",
400
539
  {
401
- className: (0, import_ui_web4.cn)(
540
+ className: (0, import_ui_web6.cn)(
402
541
  "bg-card border-b last:border-b-0 border-grey-strokes-tables w-full font-ss02",
403
542
  className
404
543
  ),
405
544
  children: [
406
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex flex-col sm:hidden", children: [
407
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex items-start p-2 justify-between flex-[1_0_0]", children: [
408
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex gap-1 items-start", children: [
409
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
410
- import_ui_web4.Button,
545
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col sm:hidden", children: [
546
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-start p-2 justify-between flex-[1_0_0]", children: [
547
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex gap-1 items-start", children: [
548
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
549
+ import_ui_web6.Button,
411
550
  {
412
551
  variant: "unstyled",
413
552
  size: "none",
@@ -415,12 +554,12 @@ function ManualDealCard({
415
554
  onClick: () => setIsExpanded((v) => !v),
416
555
  className: "flex p-[6px] items-center justify-center gap-[10px]",
417
556
  "aria-label": isExpanded ? "Collapse deal details" : "Expand deal details",
418
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
419
- import_icons2.ArrowDownFormIcon,
557
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
558
+ import_icons3.ArrowDownFormIcon,
420
559
  {
421
560
  width: 12.004,
422
561
  height: 5.999,
423
- className: (0, import_ui_web4.cn)(
562
+ className: (0, import_ui_web6.cn)(
424
563
  "text-greys-icons transition-transform duration-200",
425
564
  isExpanded && "rotate-180"
426
565
  )
@@ -428,15 +567,15 @@ function ManualDealCard({
428
567
  )
429
568
  }
430
569
  ),
431
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "header-xl-medium-card text-text-primary", children: brandName })
570
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "header-xl-medium-card text-text-primary", children: brandName })
432
571
  ] }),
433
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "header-xl-medium-card text-text-primary whitespace-nowrap", children: (0, import_core.fmtUSDWhole)(meta.total_deal_amount) })
572
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "header-xl-medium-card text-text-primary whitespace-nowrap", children: (0, import_core2.fmtUSDWhole)(meta.total_deal_amount) })
434
573
  ] }),
435
- isExpanded && /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
436
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "w-full h-px bg-greys-grey-strokes-tables" }),
437
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "p-2 flex items-start justify-between gap-1 bg-greys-table-hover rounded-[0_0_10px_10px]", children: [
438
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
439
- import_ui_web4.Button,
574
+ isExpanded && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
575
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "w-full h-px bg-greys-grey-strokes-tables" }),
576
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "p-2 flex items-start justify-between gap-1 bg-greys-table-hover rounded-[0_0_10px_10px]", children: [
577
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
578
+ import_ui_web6.Button,
440
579
  {
441
580
  variant: "unstyled",
442
581
  size: "none",
@@ -450,46 +589,80 @@ function ManualDealCard({
450
589
  ] })
451
590
  ] })
452
591
  ] }),
453
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "group hidden sm:flex gap-3 items-start p-3", children: [
454
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
455
- EntityAvatar,
456
- {
457
- entityType: "company",
458
- imageUrl: deal.company_avatar_url,
459
- name: deal.company_name ?? brandName,
460
- resolveImageUrl,
461
- size: "sm",
462
- className: "shrink-0 rounded-[34px]"
463
- }
464
- ),
465
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex flex-1 flex-col gap-2 justify-center min-w-0", children: [
466
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex items-start justify-between gap-2 w-full", children: [
467
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex gap-2 items-center min-w-0", children: [
468
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "text-text-primary header-xl-medium-card truncate", children: brandName }),
592
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "group hidden sm:flex flex-col gap-3 p-3", children: [
593
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex gap-3 items-start w-full", children: [
594
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
595
+ EntityAvatar,
596
+ {
597
+ entityType: "company",
598
+ imageUrl: deal.company_avatar_url,
599
+ name: deal.company_name ?? brandName,
600
+ resolveImageUrl,
601
+ size: "sm",
602
+ className: "shrink-0 rounded-[34px]"
603
+ }
604
+ ),
605
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-1 flex-col gap-2 justify-center min-w-0", children: [
606
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex gap-2 items-center min-w-0", children: [
607
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "text-text-primary header-xl-medium-card truncate", children: brandName }),
469
608
  previewDocButton
470
609
  ] }),
471
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex items-start gap-2 shrink-0", children: [
472
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "team-stats-card text-text-primary whitespace-nowrap", children: (0, import_core.fmtUSDWhole)(meta.total_deal_amount) }),
473
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(RowActionsDropdown, { actions, ariaLabel: "Deal options" })
610
+ metaLine && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "label-xs-text text-text-secondary break-words", children: metaLine }),
611
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex gap-3 items-center min-w-0", children: [
612
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "label-xs-text text-text-secondary shrink-0", children: "Lead" }),
613
+ deal.lead_agent_name ? /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
614
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
615
+ EntityAvatar,
616
+ {
617
+ entityType: "initials",
618
+ imageUrl: deal.lead_agent_avatar_url,
619
+ name: deal.lead_agent_name,
620
+ resolveImageUrl,
621
+ size: "sm",
622
+ className: "shrink-0"
623
+ }
624
+ ),
625
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "label-xs-text text-text-secondary truncate", children: deal.lead_agent_name })
626
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "label-xs-text text-text-secondary truncate", children: "--" })
474
627
  ] })
475
628
  ] }),
476
- metaLine && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "label-xs-text text-text-secondary break-words", children: metaLine }),
477
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { className: "flex gap-3 items-center min-w-0", children: [
478
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "label-xs-text text-text-secondary shrink-0", children: "Lead" }),
479
- deal.lead_agent_name ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
480
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
481
- EntityAvatar,
482
- {
483
- entityType: "initials",
484
- imageUrl: deal.lead_agent_avatar_url,
485
- name: deal.lead_agent_name,
486
- resolveImageUrl,
487
- size: "sm",
488
- className: "shrink-0"
489
- }
490
- ),
491
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "label-xs-text text-text-secondary truncate", children: deal.lead_agent_name })
492
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: "label-xs-text text-text-secondary truncate", children: "--" })
629
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-1 items-end justify-center shrink-0", children: [
630
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-start gap-2", children: [
631
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "team-stats-card text-text-primary whitespace-nowrap", children: (0, import_core2.fmtUSDWhole)(meta.total_deal_amount) }),
632
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RowActionsDropdown, { actions, ariaLabel: "Deal options" })
633
+ ] }),
634
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
635
+ "div",
636
+ {
637
+ className: (0, import_ui_web6.cn)(
638
+ "h-[27px] px-3 py-1.5 rounded-[50px] flex items-center justify-center whitespace-nowrap",
639
+ STATUS_STYLES.Complete
640
+ ),
641
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "label-xs-medium", children: "Complete" })
642
+ }
643
+ ),
644
+ asideFooter
645
+ ] })
646
+ ] }),
647
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "grid w-full grid-cols-2 items-center gap-x-3 gap-y-2 md:grid-cols-3 lg:flex lg:justify-between lg:gap-0", children: [
648
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TrackingItem, { label: "Client paid", done: true }),
649
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TrackingItem, { label: "Agency paid", done: true }),
650
+ meta.has_third_party && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TrackingItem, { label: "Third Party paid", done: true })
651
+ ] }),
652
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-2 w-full", children: [
653
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "relative w-full h-2 bg-greys-nav-text rounded-[10px] overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "absolute left-0 top-0 h-2 bg-primary-color-nuk-ui-elem rounded-[10px] w-full" }) }),
654
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex gap-3 items-start text-[13px] font-medium w-full", children: [
655
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
656
+ "span",
657
+ {
658
+ className: (0, import_ui_web6.cn)(
659
+ "min-w-0 flex-1 label-xs-table",
660
+ meta.total_deal_amount > 0 ? "text-primary-color-nuk-text" : "text-text-secondary"
661
+ ),
662
+ children: `${(0, import_core2.fmtUSD)(meta.total_deal_amount)}${meta.total_deal_amount > 0 ? " collected" : ""}`
663
+ }
664
+ ),
665
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "shrink-0 text-primary-color-nuk-text label-xs-table whitespace-nowrap", children: "Fully Paid" })
493
666
  ] })
494
667
  ] })
495
668
  ] })
@@ -500,10 +673,10 @@ function ManualDealCard({
500
673
 
501
674
  // src/marketing/manual-deal-preview-dialog.tsx
502
675
  var import_react2 = require("react");
503
- var import_ui_web5 = require("@nukleus-sports/ui-web");
504
- var import_icons3 = require("@nukleus-sports/icons");
505
- var import_core2 = require("@nukleus-sports/core");
506
- var import_jsx_runtime5 = require("react/jsx-runtime");
676
+ var import_ui_web7 = require("@nukleus-sports/ui-web");
677
+ var import_icons4 = require("@nukleus-sports/icons");
678
+ var import_core3 = require("@nukleus-sports/core");
679
+ var import_jsx_runtime7 = require("react/jsx-runtime");
507
680
  var DESKTOP_BREAKPOINT_QUERY = "(min-width: 640px)";
508
681
  function useIsDesktopViewport() {
509
682
  const [isDesktop, setIsDesktop] = (0, import_react2.useState)(
@@ -519,22 +692,22 @@ function useIsDesktopViewport() {
519
692
  return isDesktop;
520
693
  }
521
694
  function ReadOnlyField({ label, value }) {
522
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-[2px] shrink-0", children: [
523
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "label-xs-medium text-text-secondary", children: label }),
524
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex items-center px-[0px] py-[6px]", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "body-text text-text-primary whitespace-nowrap", children: value || "--" }) })
695
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-[2px] shrink-0", children: [
696
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "label-xs-medium text-text-secondary", children: label }),
697
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex items-center px-[0px] py-[6px]", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "body-text text-text-primary whitespace-nowrap", children: value || "--" }) })
525
698
  ] });
526
699
  }
527
700
  function ReadOnlyPartyCard({ title, children, className }) {
528
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
701
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
529
702
  "div",
530
703
  {
531
- className: (0, import_ui_web5.cn)(
704
+ className: (0, import_ui_web7.cn)(
532
705
  "flex flex-col gap-4 rounded-[10px] border border-grey-strokes-tables bg-card px-6 py-4",
533
706
  className
534
707
  ),
535
708
  children: [
536
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("h3", { className: "header-xl-medium-card text-text-primary whitespace-nowrap", children: title }),
537
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex flex-col gap-4", children })
709
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("h3", { className: "header-xl-medium-card text-text-primary whitespace-nowrap", children: title }),
710
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex flex-col gap-4", children })
538
711
  ]
539
712
  }
540
713
  );
@@ -553,20 +726,20 @@ function ManualDealPreviewDialog({
553
726
  const meta = deal.metadata;
554
727
  const doc = resolveDealDocument(meta);
555
728
  const cardCls = isDesktop ? "flex-1 min-w-0 h-[479px]" : "w-full h-auto";
556
- const cards = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: (0, import_ui_web5.cn)("flex gap-4 sm:gap-[12px]", !isDesktop && "flex-col"), children: [
557
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(ReadOnlyPartyCard, { title: "Brand", className: cardCls, children: [
558
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ReadOnlyField, { label: "Brand Name", value: (0, import_core2.fmt)(meta.brand_name) }),
559
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ReadOnlyField, { label: "Deal Category", value: (0, import_core2.fmt)(meta.deal_category) }),
560
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ReadOnlyField, { label: "Total Deal Amount", value: (0, import_core2.fmtCurrency)(meta.total_deal_amount) }),
561
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ReadOnlyField, { label: "Payment Due Date", value: (0, import_core2.fmtDate)(meta.brand_payment_due_date) }),
562
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ReadOnlyField, { label: "Deal Start Date", value: (0, import_core2.fmtDate)(meta.start_date) }),
563
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ReadOnlyField, { label: "Deal End Date", value: (0, import_core2.fmtDate)(meta.end_date) })
729
+ const cards = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: (0, import_ui_web7.cn)("flex gap-4 sm:gap-[12px]", !isDesktop && "flex-col"), children: [
730
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(ReadOnlyPartyCard, { title: "Brand", className: cardCls, children: [
731
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ReadOnlyField, { label: "Brand Name", value: (0, import_core3.fmt)(meta.brand_name) }),
732
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ReadOnlyField, { label: "Deal Category", value: (0, import_core3.fmt)(meta.deal_category) }),
733
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ReadOnlyField, { label: "Total Deal Amount", value: (0, import_core3.fmtCurrency)(meta.total_deal_amount) }),
734
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ReadOnlyField, { label: "Payment Due Date", value: (0, import_core3.fmtDate)(meta.brand_payment_due_date) }),
735
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ReadOnlyField, { label: "Deal Start Date", value: (0, import_core3.fmtDate)(meta.start_date) }),
736
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ReadOnlyField, { label: "Deal End Date", value: (0, import_core3.fmtDate)(meta.end_date) })
564
737
  ] }),
565
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(ReadOnlyPartyCard, { title: "Client", className: cardCls, children: [
566
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-[2px] shrink-0", children: [
567
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "label-xs-medium text-text-secondary", children: "Client Name" }),
568
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex min-h-[32px] items-center gap-2 py-[6px]", children: [
569
- meta.client_name?.trim() && clientImageUrl && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
738
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(ReadOnlyPartyCard, { title: "Client", className: cardCls, children: [
739
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-[2px] shrink-0", children: [
740
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "label-xs-medium text-text-secondary", children: "Client Name" }),
741
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex min-h-[32px] items-center gap-2 py-[6px]", children: [
742
+ meta.client_name?.trim() && clientImageUrl && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
570
743
  EntityAvatar,
571
744
  {
572
745
  entityType: "player",
@@ -577,23 +750,23 @@ function ManualDealPreviewDialog({
577
750
  className: "shrink-0"
578
751
  }
579
752
  ),
580
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "body-text text-text-primary whitespace-nowrap", children: (0, import_core2.fmt)(meta.client_name) })
753
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "body-text text-text-primary whitespace-nowrap", children: (0, import_core3.fmt)(meta.client_name) })
581
754
  ] })
582
755
  ] }),
583
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ReadOnlyField, { label: "Client's Invoice Name", value: (0, import_core2.fmt)(meta.client_invoice_name) })
756
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ReadOnlyField, { label: "Client's Invoice Name", value: (0, import_core3.fmt)(meta.client_invoice_name) })
584
757
  ] }),
585
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(ReadOnlyPartyCard, { title: "Agency", className: cardCls, children: [
586
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ReadOnlyField, { label: "Agency Name", value: (0, import_core2.fmt)(meta.agency_name) }),
587
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
758
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(ReadOnlyPartyCard, { title: "Agency", className: cardCls, children: [
759
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ReadOnlyField, { label: "Agency Name", value: (0, import_core3.fmt)(meta.agency_name) }),
760
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
588
761
  ReadOnlyField,
589
762
  {
590
763
  label: "Commission %",
591
764
  value: meta.agency_commission ? `${meta.agency_commission}%` : "--"
592
765
  }
593
766
  ),
594
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ReadOnlyField, { label: "Payment Due Date", value: (0, import_core2.fmtDate)(meta.agency_payment_due_date) }),
595
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-[2px] shrink-0", children: [
596
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
767
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ReadOnlyField, { label: "Payment Due Date", value: (0, import_core3.fmtDate)(meta.agency_payment_due_date) }),
768
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-[2px] shrink-0", children: [
769
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
597
770
  "span",
598
771
  {
599
772
  className: "text-[13px] font-medium leading-normal text-text-secondary",
@@ -601,8 +774,8 @@ function ManualDealPreviewDialog({
601
774
  children: "Lead Agent"
602
775
  }
603
776
  ),
604
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex min-h-[32px] items-center gap-2 py-[6px]", children: [
605
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
777
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex min-h-[32px] items-center gap-2 py-[6px]", children: [
778
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
606
779
  EntityAvatar,
607
780
  {
608
781
  entityType: "initials",
@@ -613,7 +786,7 @@ function ManualDealPreviewDialog({
613
786
  className: "shrink-0"
614
787
  }
615
788
  ),
616
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
789
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
617
790
  "span",
618
791
  {
619
792
  className: "overflow-hidden text-ellipsis text-[14px] leading-[15px] text-text-secondary whitespace-nowrap",
@@ -624,62 +797,64 @@ function ManualDealPreviewDialog({
624
797
  ] })
625
798
  ] })
626
799
  ] }),
627
- meta.has_third_party && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(ReadOnlyPartyCard, { title: "Third Party", className: cardCls, children: [
628
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ReadOnlyField, { label: "Third Party Name", value: (0, import_core2.fmt)(meta.third_party_name) }),
629
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
800
+ meta.has_third_party && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(ReadOnlyPartyCard, { title: "Third Party", className: cardCls, children: [
801
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ReadOnlyField, { label: "Third Party Name", value: (0, import_core3.fmt)(meta.third_party_name) }),
802
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
630
803
  ReadOnlyField,
631
804
  {
632
805
  label: "Third Party Invoice Name",
633
- value: (0, import_core2.fmt)(meta.third_party_invoice_name)
806
+ value: (0, import_core3.fmt)(meta.third_party_invoice_name)
634
807
  }
635
808
  ),
636
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
809
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
637
810
  ReadOnlyField,
638
811
  {
639
812
  label: "Commission %",
640
813
  value: meta.third_party_commission ? `${meta.third_party_commission}%` : "--"
641
814
  }
642
815
  ),
643
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
816
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
644
817
  ReadOnlyField,
645
818
  {
646
819
  label: "Payment Due Date",
647
- value: (0, import_core2.fmtDate)(meta.third_party_payment_due_date)
820
+ value: (0, import_core3.fmtDate)(meta.third_party_payment_due_date)
648
821
  }
649
822
  )
650
823
  ] })
651
824
  ] });
652
- const notes = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-[12px] rounded-[10px] border border-grey-strokes-tables bg-card px-[16px] py-[12px] shrink-0 w-full", children: [
653
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
825
+ const summary = meta.summary || meta.notes || null;
826
+ const notes = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-[12px] rounded-[10px] border border-grey-strokes-tables bg-card px-[16px] py-[12px] shrink-0 w-full", children: [
827
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
654
828
  "h3",
655
829
  {
656
830
  className: "header-xl-medium-card text-text-primary whitespace-nowrap",
657
831
  style: { fontFeatureSettings: "'ss02', 'ss05'" },
658
- children: "Notes"
832
+ children: "Contract Summary"
659
833
  }
660
834
  ),
661
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex h-[70px] min-h-[44px] items-start rounded-[5px] bg-greys-background-hover px-[12px] py-[6px]", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
835
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex min-h-[70px] items-start rounded-[5px] bg-greys-background-hover px-[12px] py-[6px]", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
662
836
  "p",
663
837
  {
664
- className: (0, import_ui_web5.cn)(
665
- "flex-1 body-text overflow-hidden text-ellipsis whitespace-nowrap",
666
- meta.notes ? "text-text-primary" : "text-text-secondary"
838
+ className: (0, import_ui_web7.cn)(
839
+ "flex-1 min-w-0 body-text whitespace-pre-wrap break-words",
840
+ summary ? "text-text-primary" : "text-text-secondary"
667
841
  ),
668
842
  style: { fontFeatureSettings: "'ss02', 'ss05'" },
669
- children: meta.notes || "Enter any additional notes about this marketing deal"
843
+ children: summary || "--"
670
844
  }
671
845
  ) })
672
846
  ] });
673
- const documentButton = doc && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
674
- import_ui_web5.Button,
847
+ const contractDetailsCard = meta.contract_details ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(ContractDetailsCard, { details: meta.contract_details }) : null;
848
+ const documentButton = doc && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
849
+ import_ui_web7.Button,
675
850
  {
676
851
  variant: "ghost",
677
852
  type: "button",
678
853
  className: "flex h-full p-0 bg-transparent hover:bg-transparent items-center gap-[12px] hover:opacity-80 transition-opacity",
679
854
  onClick: () => onOpenDocument(doc),
680
855
  children: [
681
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_icons3.DownloadIcon, { className: "size-5 shrink-0 text-primary-color-nuk-ui-elem" }),
682
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
856
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_icons4.DownloadIcon, { className: "size-5 shrink-0 text-primary-color-nuk-ui-elem" }),
857
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
683
858
  "span",
684
859
  {
685
860
  className: "text-[14px] font-normal leading-[15px] text-primary-color-nuk-text overflow-hidden text-ellipsis whitespace-nowrap max-w-[200px]",
@@ -690,9 +865,9 @@ function ManualDealPreviewDialog({
690
865
  ]
691
866
  }
692
867
  );
693
- const footerButtons = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center gap-[12px]", children: [
694
- onEdit && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
695
- import_ui_web5.Button,
868
+ const footerButtons = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center gap-[12px]", children: [
869
+ onEdit && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
870
+ import_ui_web7.Button,
696
871
  {
697
872
  variant: "outline",
698
873
  onClick: () => onEdit(deal),
@@ -700,8 +875,8 @@ function ManualDealPreviewDialog({
700
875
  children: "Edit Deal"
701
876
  }
702
877
  ),
703
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
704
- import_ui_web5.Button,
878
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
879
+ import_ui_web7.Button,
705
880
  {
706
881
  onClick: () => onOpenChange(false),
707
882
  className: "h-[36px] min-w-[105px] w-[105px] rounded-[50px] bg-primary-color-nuk-text px-3 py-2 text-[15px] font-medium leading-normal text-white hover:bg-primary-color-nuk-text",
@@ -710,20 +885,21 @@ function ManualDealPreviewDialog({
710
885
  )
711
886
  ] });
712
887
  if (isDesktop) {
713
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_ui_web5.Dialog, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_ui_web5.DialogContent, { className: "flex h-screen sm:h-[800px] flex-col gap-0 overflow-hidden rounded-none sm:rounded-[10px] bg-card p-0 max-w-[1140px] max-[1024px]:max-w-[940px]", children: [
714
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_ui_web5.DialogHeader, { className: "shrink-0 mt-4 pb-0 space-y-0 px-6", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_ui_web5.DialogTitle, { children: "Preview Details" }) }),
715
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex-1 overflow-y-auto px-6 pt-6 pb-4", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-[12px]", children: [
888
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui_web7.Dialog, { open, onOpenChange, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_ui_web7.DialogContent, { className: "flex h-screen sm:h-[800px] flex-col gap-0 overflow-hidden rounded-none sm:rounded-[10px] bg-card p-0 max-w-[1140px] max-[1024px]:max-w-[940px]", children: [
889
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui_web7.DialogHeader, { className: "shrink-0 mt-4 pb-0 space-y-0 px-6", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_ui_web7.DialogTitle, { children: "Preview Details" }) }),
890
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex-1 overflow-y-auto px-6 pt-6 pb-4", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-[12px]", children: [
716
891
  cards,
717
- notes
892
+ notes,
893
+ contractDetailsCard
718
894
  ] }) }),
719
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex items-center justify-between bg-card pb-6 pt-3 px-9 shadow-[0px_0px_4px_0px_rgba(0,0,0,0.25)] shrink-0 rounded-bl-[10px] rounded-br-[10px]", children: [
720
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex h-[32px] items-center bg-card px-2", children: documentButton ?? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", {}) }),
895
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex items-center justify-between bg-card pb-6 pt-3 px-9 shadow-[0px_0px_4px_0px_rgba(0,0,0,0.25)] shrink-0 rounded-bl-[10px] rounded-br-[10px]", children: [
896
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex h-[32px] items-center bg-card px-2", children: documentButton ?? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", {}) }),
721
897
  footerButtons
722
898
  ] })
723
899
  ] }) });
724
900
  }
725
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
726
- import_ui_web5.MobileModalLayout,
901
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
902
+ import_ui_web7.MobileModalLayout,
727
903
  {
728
904
  onCancel: () => onOpenChange(false),
729
905
  isOpen: open,
@@ -732,10 +908,11 @@ function ManualDealPreviewDialog({
732
908
  cancelButtonName: "Cancel",
733
909
  actionBottomContext: false,
734
910
  childClassName: "max-h-[calc(100dvh-50px)]",
735
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "flex flex-col gap-4 px-4 pb-4", children: [
736
- doc && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex h-[32px] justify-end items-center bg-card py-0 px-2", children: documentButton }),
911
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "flex flex-col gap-4 px-4 pb-4", children: [
912
+ doc && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "flex h-[32px] justify-end items-center bg-card py-0 px-2", children: documentButton }),
737
913
  cards,
738
- notes
914
+ notes,
915
+ contractDetailsCard
739
916
  ] })
740
917
  }
741
918
  );
@@ -743,54 +920,18 @@ function ManualDealPreviewDialog({
743
920
 
744
921
  // src/marketing/project-deal-card.tsx
745
922
  var import_react3 = require("react");
746
- var import_ui_web6 = require("@nukleus-sports/ui-web");
747
- var import_icons4 = require("@nukleus-sports/icons");
748
- var import_core3 = require("@nukleus-sports/core");
749
- var import_jsx_runtime6 = (
750
- // `min-w-0` lets `truncate` below actually engage instead of overflowing
751
- // the card; `lg:flex-initial` + `max-lg:whitespace-normal` let a label
752
- // like "Deliverables met - 0/4" wrap in the grid instead of being
753
- // squeezed to an equal share. (clientapp's version — see module doc.)
754
- require("react/jsx-runtime")
755
- );
756
- function TrackingItem({ label, done }) {
757
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex min-w-0 flex-1 gap-2 items-center lg:flex-initial", children: [
758
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
759
- import_icons4.CheckRingRoundIcon,
760
- {
761
- width: 12,
762
- height: 12,
763
- className: (0, import_ui_web6.cn)(
764
- "shrink-0 transition-opacity",
765
- done ? "text-primary-color-nuk-ui-elem" : "opacity-0"
766
- )
767
- }
768
- ),
769
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
770
- "span",
771
- {
772
- className: (0, import_ui_web6.cn)(
773
- "label-xs-table truncate max-lg:whitespace-normal",
774
- done ? "text-primary-color-nuk-text" : "text-text-secondary"
775
- ),
776
- children: label
777
- }
778
- )
779
- ] });
780
- }
781
- var STATUS_STYLES = {
782
- Active: "bg-semantic-color-status-priority-cold-fill text-semantic-color-status-priority-cold-copy",
783
- Upcoming: "bg-semantic-color-status-priority-in-progress-warm-fill text-semantic-color-status-priority-in-progress-warm-copy",
784
- Complete: "bg-semantic-color-status-priority-completed-fill text-semantic-color-status-priority-completed-copy"
785
- };
923
+ var import_ui_web8 = require("@nukleus-sports/ui-web");
924
+ var import_icons5 = require("@nukleus-sports/icons");
925
+ var import_core4 = require("@nukleus-sports/core");
926
+ var import_jsx_runtime8 = require("react/jsx-runtime");
786
927
  function statusLabel(status) {
787
928
  return status === "Complete" ? "Completed" : status;
788
929
  }
789
930
  function CollabAffordance({ href, onClick, className, children }) {
790
931
  if (onClick) {
791
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_ui_web6.Button, { variant: "unstyled", size: "none", type: "button", onClick, className, children });
932
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_ui_web8.Button, { variant: "unstyled", size: "none", type: "button", onClick, className, children });
792
933
  }
793
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("a", { href, className, children });
934
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("a", { href, className, children });
794
935
  }
795
936
  function ProjectDealCard({
796
937
  deal,
@@ -799,25 +940,26 @@ function ProjectDealCard({
799
940
  collabHref,
800
941
  onCollabClick,
801
942
  resolveImageUrl,
943
+ asideFooter,
802
944
  className
803
945
  }) {
804
946
  const [isExpanded, setIsExpanded] = (0, import_react3.useState)(false);
805
947
  const showCollab = collabMembership === "member";
806
- const status = (0, import_core3.getDealStatus)(deal, isCompleted);
948
+ const status = (0, import_core4.getDealStatus)(deal, isCompleted);
807
949
  const brandName = deal.brand_name ?? deal.company_name ?? deal.project_title;
808
950
  const category = deal.deal_terms?.category;
809
- const startDate = (0, import_core3.formatDealDate)(deal.deal_terms?.startDate);
810
- const endDate = (0, import_core3.formatDealDate)(deal.deal_terms?.endDate);
951
+ const startDate = (0, import_core4.formatDealDate)(deal.deal_terms?.startDate);
952
+ const endDate = (0, import_core4.formatDealDate)(deal.deal_terms?.endDate);
811
953
  const progressPct = deal.total_contracted > 0 ? Math.min(100, deal.total_collected / deal.total_contracted * 100) : 0;
812
954
  const outstanding = Math.max(0, deal.total_contracted - deal.total_collected);
813
955
  const isFullyPaid = deal.total_contracted > 0 && outstanding === 0;
814
956
  const hasPaymentsCount = deal.payments_total !== void 0 && deal.payments_paid !== void 0;
815
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: (0, import_ui_web6.cn)("w-full", className), children: [
816
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col sm:hidden overflow-hidden bg-card border border-greys-grey-strokes-tables rounded-[10px]", children: [
817
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-start justify-between gap-1 p-2", children: [
818
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-1 min-w-0 gap-1 items-start", children: [
819
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
820
- import_ui_web6.Button,
957
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: (0, import_ui_web8.cn)("w-full", className), children: [
958
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col sm:hidden overflow-hidden bg-card border border-greys-grey-strokes-tables rounded-[10px]", children: [
959
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-start justify-between gap-1 p-2", children: [
960
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-1 min-w-0 gap-1 items-start", children: [
961
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
962
+ import_ui_web8.Button,
821
963
  {
822
964
  variant: "unstyled",
823
965
  size: "none",
@@ -825,12 +967,12 @@ function ProjectDealCard({
825
967
  onClick: () => setIsExpanded((v) => !v),
826
968
  className: "flex size-8 shrink-0 items-center justify-center p-1.5 rounded-[5px]",
827
969
  "aria-label": isExpanded ? "Collapse deal details" : "Expand deal details",
828
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
829
- import_icons4.ArrowDownFormIcon,
970
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
971
+ import_icons5.ArrowDownFormIcon,
830
972
  {
831
973
  width: 12.004,
832
974
  height: 5.999,
833
- className: (0, import_ui_web6.cn)(
975
+ className: (0, import_ui_web8.cn)(
834
976
  "text-greys-icons transition-transform duration-200",
835
977
  isExpanded && "rotate-180"
836
978
  )
@@ -838,48 +980,49 @@ function ProjectDealCard({
838
980
  )
839
981
  }
840
982
  ),
841
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-1 min-w-0 flex-col gap-2 justify-center items-start", children: [
842
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "header-xl-medium-card text-text-primary", children: brandName }),
843
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "label-xs-text text-text-secondary", children: [
983
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-1 min-w-0 flex-col gap-2 justify-center items-start", children: [
984
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "header-xl-medium-card text-text-primary", children: brandName }),
985
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "label-xs-text text-text-secondary", children: [
844
986
  startDate,
845
987
  " - ",
846
988
  endDate
847
989
  ] })
848
990
  ] })
849
991
  ] }),
850
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col shrink-0 justify-center items-end gap-1", children: [
851
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "header-xl-medium-card text-text-primary whitespace-nowrap", children: (0, import_core3.fmtUSD)(deal.total_contracted) }),
852
- deal.total_equity_shares > 0 && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "label-xs-text text-text-secondary whitespace-nowrap", children: [
992
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col shrink-0 justify-center items-end gap-1", children: [
993
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "header-xl-medium-card text-text-primary whitespace-nowrap", children: (0, import_core4.fmtUSD)(deal.total_contracted) }),
994
+ deal.total_equity_shares > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "label-xs-text text-text-secondary whitespace-nowrap", children: [
853
995
  "+ ",
854
996
  deal.total_equity_shares.toLocaleString(),
855
997
  " shares"
856
998
  ] }),
857
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
999
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
858
1000
  "div",
859
1001
  {
860
- className: (0, import_ui_web6.cn)(
1002
+ className: (0, import_ui_web8.cn)(
861
1003
  "h-[27px] px-3 py-1.5 rounded-[50px] flex items-center justify-center label-xs-medium whitespace-nowrap",
862
1004
  STATUS_STYLES[status]
863
1005
  ),
864
1006
  children: statusLabel(status)
865
1007
  }
866
- )
1008
+ ),
1009
+ asideFooter
867
1010
  ] })
868
1011
  ] }),
869
- isExpanded && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
870
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "w-full h-px bg-greys-grey-strokes-tables" }),
871
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-start gap-1 p-2 bg-greys-table-hover", children: [
872
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-1 min-w-0 flex-col gap-2", children: [
873
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "label-xs-text text-text-secondary", children: "Collected" }),
874
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "body-text-semibold text-primary-color-nuk-text truncate", children: (0, import_core3.fmtUSD)(deal.total_collected) })
1012
+ isExpanded && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
1013
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "w-full h-px bg-greys-grey-strokes-tables" }),
1014
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-start gap-1 p-2 bg-greys-table-hover", children: [
1015
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-1 min-w-0 flex-col gap-2", children: [
1016
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "label-xs-text text-text-secondary", children: "Collected" }),
1017
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "body-text-semibold text-primary-color-nuk-text truncate", children: (0, import_core4.fmtUSD)(deal.total_collected) })
875
1018
  ] }),
876
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-1 min-w-0 flex-col gap-2", children: [
877
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "label-xs-text text-text-secondary", children: "Outstanding" }),
878
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "body-text-semibold text-semantic-color-status-priority-priority-2 truncate", children: (0, import_core3.fmtUSD)(outstanding) })
1019
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-1 min-w-0 flex-col gap-2", children: [
1020
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "label-xs-text text-text-secondary", children: "Outstanding" }),
1021
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "body-text-semibold text-semantic-color-status-priority-priority-2 truncate", children: (0, import_core4.fmtUSD)(outstanding) })
879
1022
  ] }),
880
- hasPaymentsCount && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-1 min-w-0 flex-col gap-2", children: [
881
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "label-xs-text text-text-secondary", children: "Payments" }),
882
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "body-text-semibold text-text-primary truncate", children: [
1023
+ hasPaymentsCount && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-1 min-w-0 flex-col gap-2", children: [
1024
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "label-xs-text text-text-secondary", children: "Payments" }),
1025
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "body-text-semibold text-text-primary truncate", children: [
883
1026
  deal.payments_paid,
884
1027
  " of ",
885
1028
  deal.payments_total,
@@ -887,20 +1030,20 @@ function ProjectDealCard({
887
1030
  ] })
888
1031
  ] })
889
1032
  ] }),
890
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "w-full h-px bg-greys-grey-strokes-tables" }),
891
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex items-center gap-2 min-w-0 p-2 bg-greys-table-hover", children: [
892
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "w-[58px] shrink-0 text-[11px] leading-none text-text-secondary font-normal", children: "Payment" }),
893
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "relative flex-1 min-w-0 h-1 bg-greys-nav-text rounded-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1033
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "w-full h-px bg-greys-grey-strokes-tables" }),
1034
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2 min-w-0 p-2 bg-greys-table-hover", children: [
1035
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "w-[58px] shrink-0 text-[11px] leading-none text-text-secondary font-normal", children: "Payment" }),
1036
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "relative flex-1 min-w-0 h-1 bg-greys-nav-text rounded-full overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
894
1037
  "div",
895
1038
  {
896
1039
  className: "absolute inset-y-0 left-0 bg-primary-color-nuk-ui-elem rounded-full",
897
1040
  style: { width: `${progressPct}%` }
898
1041
  }
899
1042
  ) }),
900
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1043
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
901
1044
  "span",
902
1045
  {
903
- className: (0, import_ui_web6.cn)(
1046
+ className: (0, import_ui_web8.cn)(
904
1047
  "w-9 shrink-0 text-right text-[11px] leading-none font-normal",
905
1048
  isFullyPaid ? "text-primary-color-nuk-text" : "text-text-secondary"
906
1049
  ),
@@ -911,8 +1054,8 @@ function ProjectDealCard({
911
1054
  }
912
1055
  )
913
1056
  ] }),
914
- showCollab && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "w-full h-px bg-greys-grey-strokes-tables" }),
915
- showCollab && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex gap-1 p-2 bg-greys-table-hover rounded-[0_0_10px_10px] justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1057
+ showCollab && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "w-full h-px bg-greys-grey-strokes-tables" }),
1058
+ showCollab && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex gap-1 p-2 bg-greys-table-hover rounded-[0_0_10px_10px] justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
916
1059
  CollabAffordance,
917
1060
  {
918
1061
  href: collabHref,
@@ -920,15 +1063,15 @@ function ProjectDealCard({
920
1063
  className: "flex gap-2 items-center text-primary-color-nuk-text text-[11px] font-normal shrink-0",
921
1064
  children: [
922
1065
  "Collab",
923
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_icons4.XsViewInvoiceIcon, { className: "size-[18px] p-[1px] flex justify-center items-center" })
1066
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_icons5.XsViewInvoiceIcon, { className: "size-[18px] p-[1px] flex justify-center items-center" })
924
1067
  ]
925
1068
  }
926
1069
  ) })
927
1070
  ] })
928
1071
  ] }),
929
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "hidden sm:flex flex-col gap-3 p-3 bg-card border-b border-greys-grey-strokes-tables font-ss02", children: [
930
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex gap-3 items-start w-full", children: [
931
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1072
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "hidden sm:flex flex-col gap-3 p-3 bg-card border-b border-greys-grey-strokes-tables font-ss02", children: [
1073
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex gap-3 items-start w-full", children: [
1074
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
932
1075
  EntityAvatar,
933
1076
  {
934
1077
  entityType: "company",
@@ -939,10 +1082,10 @@ function ProjectDealCard({
939
1082
  className: "shrink-0 rounded-[34px]"
940
1083
  }
941
1084
  ),
942
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-1 min-w-0 flex-col gap-2 justify-center", children: [
943
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex gap-2 items-center", children: [
944
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "header-xl-medium-card text-text-primary", children: brandName }),
945
- showCollab && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1085
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-1 min-w-0 flex-col gap-2 justify-center", children: [
1086
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex gap-2 items-center", children: [
1087
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "header-xl-medium-card text-text-primary", children: brandName }),
1088
+ showCollab && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
946
1089
  CollabAffordance,
947
1090
  {
948
1091
  href: collabHref,
@@ -950,15 +1093,15 @@ function ProjectDealCard({
950
1093
  className: "flex gap-1.5 items-center text-primary-color-nuk-text label-xs-text shrink-0",
951
1094
  children: [
952
1095
  "Collab Hub",
953
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_icons4.XsViewInvoiceIcon, { className: "size-[18px] p-[1px] flex justify-center items-center" })
1096
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_icons5.XsViewInvoiceIcon, { className: "size-[18px] p-[1px] flex justify-center items-center" })
954
1097
  ]
955
1098
  }
956
1099
  )
957
1100
  ] }),
958
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "label-xs-text text-text-secondary break-words sm:whitespace-nowrap", children: [category, `${startDate} - ${endDate}`].filter(Boolean).join(" \u2022 ") }),
959
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex gap-3 items-center min-w-0", children: [
960
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "label-xs-text text-text-secondary shrink-0", children: "Owner" }),
961
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1101
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "label-xs-text text-text-secondary break-words sm:whitespace-nowrap", children: [category, `${startDate} - ${endDate}`].filter(Boolean).join(" \u2022 ") }),
1102
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex gap-3 items-center min-w-0", children: [
1103
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "label-xs-text text-text-secondary shrink-0", children: "Owner" }),
1104
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
962
1105
  EntityAvatar,
963
1106
  {
964
1107
  entityType: "initials",
@@ -969,60 +1112,61 @@ function ProjectDealCard({
969
1112
  className: "shrink-0"
970
1113
  }
971
1114
  ),
972
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "label-xs-text text-text-secondary truncate", children: deal.owner_name ?? "\u2014" })
1115
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "label-xs-text text-text-secondary truncate", children: (0, import_core4.abbreviatePersonName)(deal.owner_name) ?? "\u2014" })
973
1116
  ] })
974
1117
  ] }),
975
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-1 items-end justify-center shrink-0", children: [
976
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "team-stats-card text-text-primary whitespace-nowrap", children: (0, import_core3.fmtUSD)(deal.total_contracted) }),
977
- deal.total_equity_shares > 0 && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "label-xs-text text-text-secondary whitespace-nowrap", children: [
1118
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-1 items-end justify-center shrink-0", children: [
1119
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "team-stats-card text-text-primary whitespace-nowrap", children: (0, import_core4.fmtUSD)(deal.total_contracted) }),
1120
+ deal.total_equity_shares > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "label-xs-text text-text-secondary whitespace-nowrap", children: [
978
1121
  "+ ",
979
1122
  deal.total_equity_shares.toLocaleString(),
980
1123
  " shares"
981
1124
  ] }),
982
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1125
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
983
1126
  "div",
984
1127
  {
985
- className: (0, import_ui_web6.cn)(
1128
+ className: (0, import_ui_web8.cn)(
986
1129
  "h-[27px] px-3 py-1.5 rounded-[50px] flex items-center justify-center whitespace-nowrap",
987
1130
  STATUS_STYLES[status]
988
1131
  ),
989
- children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "label-xs-medium", children: statusLabel(status) })
1132
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "label-xs-medium", children: statusLabel(status) })
990
1133
  }
991
- )
1134
+ ),
1135
+ asideFooter
992
1136
  ] })
993
1137
  ] }),
994
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "grid w-full grid-cols-2 items-center gap-x-3 gap-y-2 md:grid-cols-3 lg:flex lg:justify-between lg:gap-0", children: [
995
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1138
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "grid w-full grid-cols-2 items-center gap-x-3 gap-y-2 md:grid-cols-3 lg:flex lg:justify-between lg:gap-0", children: [
1139
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
996
1140
  TrackingItem,
997
1141
  {
998
1142
  label: `Deliverables met - ${deal.deliverables_met}/${deal.deliverables_total}`,
999
1143
  done: deal.deliverables_total > 0 && deal.deliverables_met >= deal.deliverables_total
1000
1144
  }
1001
1145
  ),
1002
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TrackingItem, { label: "Client paid", done: deal.client_paid && isFullyPaid }),
1003
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TrackingItem, { label: "Agency paid", done: deal.agency_paid && isFullyPaid }),
1004
- deal.has_third_party && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(TrackingItem, { label: "Third Party paid", done: deal.third_party_paid && isFullyPaid })
1146
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TrackingItem, { label: "Client paid", done: deal.client_paid && isFullyPaid }),
1147
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TrackingItem, { label: "Agency paid", done: deal.agency_paid && isFullyPaid }),
1148
+ deal.has_third_party && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TrackingItem, { label: "Third Party paid", done: deal.third_party_paid && isFullyPaid })
1005
1149
  ] }),
1006
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex flex-col gap-2 w-full", children: [
1007
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "relative w-full h-2 bg-greys-nav-text rounded-[10px] overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1150
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-2 w-full", children: [
1151
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "relative w-full h-2 bg-greys-nav-text rounded-[10px] overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1008
1152
  "div",
1009
1153
  {
1010
1154
  className: "absolute left-0 top-0 h-2 bg-primary-color-nuk-ui-elem rounded-[10px]",
1011
1155
  style: { width: `${progressPct}%` }
1012
1156
  }
1013
1157
  ) }),
1014
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "flex gap-3 items-start text-[13px] font-medium w-full", children: [
1015
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1158
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex gap-3 items-start text-[13px] font-medium w-full", children: [
1159
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1016
1160
  "span",
1017
1161
  {
1018
- className: (0, import_ui_web6.cn)(
1162
+ className: (0, import_ui_web8.cn)(
1019
1163
  "min-w-0 flex-1 label-xs-table",
1020
1164
  deal.total_collected > 0 ? "text-primary-color-nuk-text" : "text-text-secondary"
1021
1165
  ),
1022
- children: `${(0, import_core3.fmtUSD)(deal.total_collected)}${deal.total_collected > 0 ? " collected" : ""}`
1166
+ children: `${(0, import_core4.fmtUSD)(deal.total_collected)}${deal.total_collected > 0 ? " collected" : ""}`
1023
1167
  }
1024
1168
  ),
1025
- hasPaymentsCount && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "flex-1 label-xs-table text-text-secondary", children: [
1169
+ hasPaymentsCount && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "flex-1 label-xs-table text-text-secondary", children: [
1026
1170
  deal.payments_paid,
1027
1171
  " of ",
1028
1172
  deal.payments_total,
@@ -1030,8 +1174,8 @@ function ProjectDealCard({
1030
1174
  " ",
1031
1175
  status === "Active" ? "collected" : "paid"
1032
1176
  ] }),
1033
- isFullyPaid ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "shrink-0 text-primary-color-nuk-text label-xs-table whitespace-nowrap", children: "Fully Paid" }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { className: "shrink-0 text-semantic-color-status-priority-priority-2 label-xs-table whitespace-nowrap", children: [
1034
- (0, import_core3.fmtUSD)(outstanding),
1177
+ isFullyPaid ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "shrink-0 text-primary-color-nuk-text label-xs-table whitespace-nowrap", children: "Fully Paid" }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "shrink-0 text-semantic-color-status-priority-priority-2 label-xs-table whitespace-nowrap", children: [
1178
+ (0, import_core4.fmtUSD)(outstanding),
1035
1179
  " outstanding"
1036
1180
  ] })
1037
1181
  ] })
@@ -1041,9 +1185,8 @@ function ProjectDealCard({
1041
1185
  }
1042
1186
  // Annotate the CommonJS export names for ESM import in node:
1043
1187
  0 && (module.exports = {
1188
+ ContractDetailsCard,
1044
1189
  DealEmptyState,
1045
- ENTITY_AVATAR_SIZE_PX,
1046
- EntityAvatar,
1047
1190
  ManualDealCard,
1048
1191
  ManualDealPreviewDialog,
1049
1192
  ProjectDealCard,