@flamingo-stack/openframe-frontend-core 0.0.641-snapshot.20260915203510 → 0.0.641

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 (107) hide show
  1. package/dist/{chunk-S254VEDE.js → chunk-5C22ZEZL.js} +2 -2
  2. package/dist/{chunk-OOOOC5O5.cjs → chunk-5SNH6YV7.cjs} +25 -25
  3. package/dist/{chunk-OOOOC5O5.cjs.map → chunk-5SNH6YV7.cjs.map} +1 -1
  4. package/dist/{chunk-6GY6DFIH.js → chunk-62CT5VGY.js} +5 -5
  5. package/dist/{chunk-SDGMLXIP.js → chunk-6FMSRRZM.js} +2 -2
  6. package/dist/{chunk-YE3TFNW6.cjs → chunk-7EIUV3EV.cjs} +5 -5
  7. package/dist/{chunk-YE3TFNW6.cjs.map → chunk-7EIUV3EV.cjs.map} +1 -1
  8. package/dist/{chunk-6NHLZORM.js → chunk-7GH4I7AL.js} +5 -5
  9. package/dist/{chunk-VHB3I6F3.cjs → chunk-BGSBHH4X.cjs} +4 -4
  10. package/dist/chunk-BGSBHH4X.cjs.map +1 -0
  11. package/dist/{chunk-UFBWNVZZ.js → chunk-DVCDYMSZ.js} +16 -6
  12. package/dist/chunk-DVCDYMSZ.js.map +1 -0
  13. package/dist/{chunk-M7QROULE.js → chunk-GOCM2TRB.js} +4 -4
  14. package/dist/{chunk-ORFJVMAL.js → chunk-I7AIORKQ.js} +2 -2
  15. package/dist/{chunk-YM6L3WM5.js → chunk-IHMTMFNO.js} +3 -3
  16. package/dist/{chunk-YRSRP4U3.cjs → chunk-L35UOSEQ.cjs} +10 -10
  17. package/dist/{chunk-YRSRP4U3.cjs.map → chunk-L35UOSEQ.cjs.map} +1 -1
  18. package/dist/{chunk-ZGPJ3NVF.js → chunk-MI7XL4QH.js} +3 -3
  19. package/dist/{chunk-XWGHLSAL.js → chunk-MULT7VMK.js} +3 -3
  20. package/dist/{chunk-QY25ZP2V.cjs → chunk-NC7JJCZX.cjs} +22 -22
  21. package/dist/{chunk-QY25ZP2V.cjs.map → chunk-NC7JJCZX.cjs.map} +1 -1
  22. package/dist/{chunk-MJ424FEC.js → chunk-OF5MAFYS.js} +2 -2
  23. package/dist/{chunk-FRCUUK5X.cjs → chunk-RDEBYNLG.cjs} +3 -3
  24. package/dist/{chunk-FRCUUK5X.cjs.map → chunk-RDEBYNLG.cjs.map} +1 -1
  25. package/dist/{chunk-OYI3K5R6.cjs → chunk-RJCIXHIN.cjs} +3 -3
  26. package/dist/{chunk-OYI3K5R6.cjs.map → chunk-RJCIXHIN.cjs.map} +1 -1
  27. package/dist/{chunk-J4RZVLLQ.js → chunk-RLVMVUCV.js} +5 -5
  28. package/dist/{chunk-3I6XHQUD.js → chunk-RRIKLBHD.js} +4 -4
  29. package/dist/{chunk-3I6XHQUD.js.map → chunk-RRIKLBHD.js.map} +1 -1
  30. package/dist/{chunk-XFLJC2WR.cjs → chunk-TBDJQBPA.cjs} +45 -45
  31. package/dist/{chunk-XFLJC2WR.cjs.map → chunk-TBDJQBPA.cjs.map} +1 -1
  32. package/dist/{chunk-2Z5FPHOL.cjs → chunk-TBKPAIIK.cjs} +15 -15
  33. package/dist/{chunk-2Z5FPHOL.cjs.map → chunk-TBKPAIIK.cjs.map} +1 -1
  34. package/dist/{chunk-VKPTN5MT.cjs → chunk-TXLDKXRG.cjs} +4 -4
  35. package/dist/{chunk-VKPTN5MT.cjs.map → chunk-TXLDKXRG.cjs.map} +1 -1
  36. package/dist/{chunk-EW3MSJOE.cjs → chunk-VHWABKMC.cjs} +33 -33
  37. package/dist/{chunk-EW3MSJOE.cjs.map → chunk-VHWABKMC.cjs.map} +1 -1
  38. package/dist/{chunk-M4PJVFBF.cjs → chunk-VPP6BJPP.cjs} +9 -9
  39. package/dist/{chunk-M4PJVFBF.cjs.map → chunk-VPP6BJPP.cjs.map} +1 -1
  40. package/dist/{chunk-GEIHTN6J.cjs → chunk-VXZQZZJD.cjs} +10 -10
  41. package/dist/{chunk-GEIHTN6J.cjs.map → chunk-VXZQZZJD.cjs.map} +1 -1
  42. package/dist/{chunk-HW7BLVQH.js → chunk-WX45U6RU.js} +3 -3
  43. package/dist/{chunk-N5C5P2LM.cjs → chunk-WX7AXSVK.cjs} +22 -22
  44. package/dist/{chunk-N5C5P2LM.cjs.map → chunk-WX7AXSVK.cjs.map} +1 -1
  45. package/dist/{chunk-POPL3W2S.js → chunk-WZK4NMFB.js} +2 -2
  46. package/dist/{chunk-ZAIYD3MZ.js → chunk-YPM65MEQ.js} +3 -3
  47. package/dist/{chunk-WL3PNUNY.cjs → chunk-YTP6LQCB.cjs} +81 -71
  48. package/dist/chunk-YTP6LQCB.cjs.map +1 -0
  49. package/dist/{chunk-O4LL7RQV.cjs → chunk-ZUX7B27J.cjs} +161 -161
  50. package/dist/{chunk-O4LL7RQV.cjs.map → chunk-ZUX7B27J.cjs.map} +1 -1
  51. package/dist/components/case-studies/index.cjs +14 -14
  52. package/dist/components/case-studies/index.js +3 -3
  53. package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
  54. package/dist/components/chat/index.cjs +2 -2
  55. package/dist/components/chat/index.js +1 -1
  56. package/dist/components/contact/index.cjs +4 -4
  57. package/dist/components/contact/index.js +3 -3
  58. package/dist/components/docs/index.cjs +7 -7
  59. package/dist/components/docs/index.js +6 -6
  60. package/dist/components/embeds/index.cjs +4 -4
  61. package/dist/components/embeds/index.js +3 -3
  62. package/dist/components/faq/index.cjs +4 -4
  63. package/dist/components/faq/index.js +3 -3
  64. package/dist/components/features/index.cjs +3 -3
  65. package/dist/components/features/index.js +2 -2
  66. package/dist/components/help-center-pages/index.cjs +23 -23
  67. package/dist/components/help-center-pages/index.js +14 -14
  68. package/dist/components/index.cjs +38 -38
  69. package/dist/components/index.js +13 -13
  70. package/dist/components/meeting-scheduler/index.cjs +24 -24
  71. package/dist/components/meeting-scheduler/index.js +2 -2
  72. package/dist/components/navigation/index.cjs +6 -6
  73. package/dist/components/navigation/index.js +5 -5
  74. package/dist/components/onboarding-guides/index.cjs +6 -6
  75. package/dist/components/onboarding-guides/index.js +5 -5
  76. package/dist/components/tickets/hooks/use-tickets-list.d.ts.map +1 -1
  77. package/dist/components/tickets/index.cjs +7 -7
  78. package/dist/components/tickets/index.js +6 -6
  79. package/dist/components/ui/index.cjs +3 -3
  80. package/dist/components/ui/index.js +2 -2
  81. package/dist/index.cjs +7 -7
  82. package/dist/index.js +6 -6
  83. package/dist/utils/index.cjs +1 -1
  84. package/dist/utils/index.cjs.map +1 -1
  85. package/dist/utils/index.js +1 -1
  86. package/dist/utils/index.js.map +1 -1
  87. package/package.json +1 -1
  88. package/src/components/chat/entity-cards/dispatch.tsx +2 -4
  89. package/src/components/tickets/hooks/use-tickets-list.ts +10 -0
  90. package/src/utils/source-icons.ts +1 -1
  91. package/dist/chunk-UFBWNVZZ.js.map +0 -1
  92. package/dist/chunk-VHB3I6F3.cjs.map +0 -1
  93. package/dist/chunk-WL3PNUNY.cjs.map +0 -1
  94. /package/dist/{chunk-S254VEDE.js.map → chunk-5C22ZEZL.js.map} +0 -0
  95. /package/dist/{chunk-6GY6DFIH.js.map → chunk-62CT5VGY.js.map} +0 -0
  96. /package/dist/{chunk-SDGMLXIP.js.map → chunk-6FMSRRZM.js.map} +0 -0
  97. /package/dist/{chunk-6NHLZORM.js.map → chunk-7GH4I7AL.js.map} +0 -0
  98. /package/dist/{chunk-M7QROULE.js.map → chunk-GOCM2TRB.js.map} +0 -0
  99. /package/dist/{chunk-ORFJVMAL.js.map → chunk-I7AIORKQ.js.map} +0 -0
  100. /package/dist/{chunk-YM6L3WM5.js.map → chunk-IHMTMFNO.js.map} +0 -0
  101. /package/dist/{chunk-ZGPJ3NVF.js.map → chunk-MI7XL4QH.js.map} +0 -0
  102. /package/dist/{chunk-XWGHLSAL.js.map → chunk-MULT7VMK.js.map} +0 -0
  103. /package/dist/{chunk-MJ424FEC.js.map → chunk-OF5MAFYS.js.map} +0 -0
  104. /package/dist/{chunk-J4RZVLLQ.js.map → chunk-RLVMVUCV.js.map} +0 -0
  105. /package/dist/{chunk-HW7BLVQH.js.map → chunk-WX45U6RU.js.map} +0 -0
  106. /package/dist/{chunk-POPL3W2S.js.map → chunk-WZK4NMFB.js.map} +0 -0
  107. /package/dist/{chunk-ZAIYD3MZ.js.map → chunk-YPM65MEQ.js.map} +0 -0
@@ -1,14 +1,14 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }"use client";
2
2
 
3
3
 
4
- var _chunkN5C5P2LMcjs = require('./chunk-N5C5P2LM.cjs');
4
+ var _chunkWX7AXSVKcjs = require('./chunk-WX7AXSVK.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
10
 
11
- var _chunkYRSRP4U3cjs = require('./chunk-YRSRP4U3.cjs');
11
+ var _chunkL35UOSEQcjs = require('./chunk-L35UOSEQ.cjs');
12
12
 
13
13
 
14
14
 
@@ -19,7 +19,7 @@ var _chunkGELNUDBTcjs = require('./chunk-GELNUDBT.cjs');
19
19
 
20
20
 
21
21
 
22
- var _chunkYE3TFNW6cjs = require('./chunk-YE3TFNW6.cjs');
22
+ var _chunk7EIUV3EVcjs = require('./chunk-7EIUV3EV.cjs');
23
23
 
24
24
 
25
25
 
@@ -35,7 +35,7 @@ var _chunkYE3TFNW6cjs = require('./chunk-YE3TFNW6.cjs');
35
35
 
36
36
 
37
37
 
38
- var _chunkO4LL7RQVcjs = require('./chunk-O4LL7RQV.cjs');
38
+ var _chunkZUX7B27Jcjs = require('./chunk-ZUX7B27J.cjs');
39
39
 
40
40
 
41
41
 
@@ -59,7 +59,7 @@ var _chunkN6HNK25Acjs = require('./chunk-N6HNK25A.cjs');
59
59
 
60
60
 
61
61
 
62
- var _chunkVHB3I6F3cjs = require('./chunk-VHB3I6F3.cjs');
62
+ var _chunkBGSBHH4Xcjs = require('./chunk-BGSBHH4X.cjs');
63
63
 
64
64
 
65
65
 
@@ -115,7 +115,7 @@ var TicketActionFailure = class extends Error {
115
115
  function useTicketActions(options) {
116
116
  const queryClient = _reactquery.useQueryClient.call(void 0, );
117
117
  const ticketActionEndpoint = _nullishCoalesce(_chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, ).endpoints.ticketActionUrl, () => ( TICKET_ACTION_ENDPOINT));
118
- const ticketLive = _chunkYE3TFNW6cjs.useOptionalTicketLive.call(void 0, );
118
+ const ticketLive = _chunk7EIUV3EVcjs.useOptionalTicketLive.call(void 0, );
119
119
  const notifyTicketCreated = _optionalChain([ticketLive, 'optionalAccess', _2 => _2.notifyTicketCreated]);
120
120
  const { prependOptimistic, removeOptimistic, removeTicketFromCache, toast: toast2, onSupportSystemDown } = options;
121
121
  const formInFlightRef = _react.useRef.call(void 0, null);
@@ -276,10 +276,10 @@ function useTicketActions(options) {
276
276
  ..._optionalChain([input, 'access', _3 => _3.attachments, 'optionalAccess', _4 => _4.length]) ? { attachments: input.attachments } : {}
277
277
  });
278
278
  if (result.mirror_synced === false) {
279
- toast2(_chunkYE3TFNW6cjs.TOAST_COPY.open_mirror_pending);
279
+ toast2(_chunk7EIUV3EVcjs.TOAST_COPY.open_mirror_pending);
280
280
  watchMirrorSync(placeholderId, result.ticket_id);
281
281
  } else {
282
- toast2(_chunkYE3TFNW6cjs.TOAST_COPY.open_success);
282
+ toast2(_chunk7EIUV3EVcjs.TOAST_COPY.open_success);
283
283
  await queryClient.invalidateQueries({ queryKey: ["tickets"] });
284
284
  removeOptimistic(placeholderId);
285
285
  }
@@ -365,7 +365,7 @@ function useTicketActions(options) {
365
365
  ...hasText ? { content_addendum: trimmed } : {},
366
366
  ...hasFiles ? { attachments } : {}
367
367
  },
368
- _chunkYE3TFNW6cjs.TOAST_COPY.comment_success,
368
+ _chunk7EIUV3EVcjs.TOAST_COPY.comment_success,
369
369
  "send message"
370
370
  );
371
371
  if (ok) {
@@ -388,13 +388,13 @@ function useTicketActions(options) {
388
388
  status: "CLOSED",
389
389
  ..._optionalChain([resolution, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ? { resolution: resolution.trim() } : {}
390
390
  },
391
- _chunkYE3TFNW6cjs.TOAST_COPY.close_success,
391
+ _chunk7EIUV3EVcjs.TOAST_COPY.close_success,
392
392
  "close ticket"
393
393
  ),
394
394
  [updateTicket]
395
395
  );
396
396
  const reopenTicket = _react.useCallback.call(void 0,
397
- (ticket) => updateTicket(ticket, { status: "OPEN" }, _chunkYE3TFNW6cjs.TOAST_COPY.reopen_success, "reopen ticket"),
397
+ (ticket) => updateTicket(ticket, { status: "OPEN" }, _chunk7EIUV3EVcjs.TOAST_COPY.reopen_success, "reopen ticket"),
398
398
  [updateTicket]
399
399
  );
400
400
  return _react.useMemo.call(void 0,
@@ -592,6 +592,16 @@ function useTicketsList(filters) {
592
592
  // - Background refetch with existing data: data !== undefined → no load
593
593
  // - Filter-change refetch landing on empty results: data?.tickets===[]
594
594
  // + isFetching → bridge skeleton (the `||` branch)
595
+ // Loading-state-truth = `data === undefined`. TanStack v5's
596
+ // `isPending` / `isLoading` flags can be `false` in transient
597
+ // windows where the query is enabled-but-fetch-not-yet-fired
598
+ // OR where stale-data exists from a sibling cache slot. Treating
599
+ // "no data for THIS query slot yet" as the universal loading
600
+ // signal can't lie:
601
+ // - Initial render after enabled flips: data === undefined → load
602
+ // - Background refetch with existing data: data !== undefined → no load
603
+ // - Filter-change refetch landing on empty results: data?.tickets===[]
604
+ // + isFetching → bridge skeleton (the `||` branch)
595
605
  isLoading: enabled && (data === void 0 || query.isFetching && (_nullishCoalesce(_optionalChain([data, 'optionalAccess', _20 => _20.tickets]), () => ( []))).length === 0),
596
606
  isFetching: query.isFetching,
597
607
  error: _nullishCoalesce(query.error, () => ( null)),
@@ -609,14 +619,14 @@ function useTicketsList(filters) {
609
619
  // src/components/tickets/ticket-open-form.tsx
610
620
 
611
621
  var _jsxruntime = require('react/jsx-runtime');
612
- var COUNTER_VISIBLE_AT = Math.floor(_chunkYE3TFNW6cjs.TICKET_TEXT_MAX_CHARS * 0.8);
622
+ var COUNTER_VISIBLE_AT = Math.floor(_chunk7EIUV3EVcjs.TICKET_TEXT_MAX_CHARS * 0.8);
613
623
  function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
614
624
  const [subject, setSubject] = _react.useState.call(void 0, "");
615
625
  const [content, setContent] = _react.useState.call(void 0, "");
616
- const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunkVHB3I6F3cjs.useChatAttachments.call(void 0, );
626
+ const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunkBGSBHH4Xcjs.useChatAttachments.call(void 0, );
617
627
  const trimmedSubject = subject.trim();
618
628
  const trimmedContent = content.trim();
619
- const overCap = content.length > _chunkYE3TFNW6cjs.TICKET_TEXT_MAX_CHARS;
629
+ const overCap = content.length > _chunk7EIUV3EVcjs.TICKET_TEXT_MAX_CHARS;
620
630
  const showCounter = content.length >= COUNTER_VISIBLE_AT;
621
631
  const canSubmit = !isSubmitting && !supportSystemDown && !hasInflightUploads && trimmedSubject.length > 0 && trimmedContent.length > 0 && !overCap;
622
632
  const handleSubmit = async (e) => {
@@ -633,7 +643,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
633
643
  clear();
634
644
  }
635
645
  };
636
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ..._chunkO4LL7RQVcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
646
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.Card, { className: "p-6", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "form", { onSubmit: handleSubmit, className: "flex flex-col gap-6 md:flex-row", ..._chunkZUX7B27Jcjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS, children: [
637
647
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1 md:max-w-md", children: [
638
648
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "mb-2 text-ods-text-primary text-h2", children: "Need Support?" }),
639
649
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: "Can't find what you're looking for? Submit a support ticket below \u2014 we'll follow up shortly." }),
@@ -658,7 +668,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
658
668
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
659
669
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "ticket-content", className: "mb-1 block text-ods-text-primary text-h6", children: "Your Message" }),
660
670
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
661
- _chunkO4LL7RQVcjs.Textarea,
671
+ _chunkZUX7B27Jcjs.Textarea,
662
672
  {
663
673
  id: "ticket-content",
664
674
  placeholder: "Describe your issue or question in detail...",
@@ -672,11 +682,11 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
672
682
  showCounter && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: `mt-1 text-right text-h6 ${overCap ? "text-ods-error" : "text-ods-text-secondary"}`, children: [
673
683
  content.length,
674
684
  "/",
675
- _chunkYE3TFNW6cjs.TICKET_TEXT_MAX_CHARS
685
+ _chunk7EIUV3EVcjs.TICKET_TEXT_MAX_CHARS
676
686
  ] })
677
687
  ] }),
678
688
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
679
- _chunkVHB3I6F3cjs.ChatAttachmentChipStrip,
689
+ _chunkBGSBHH4Xcjs.ChatAttachmentChipStrip,
680
690
  {
681
691
  attachments,
682
692
  onRemove: removeAttachment,
@@ -685,7 +695,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
685
695
  ),
686
696
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-3", children: [
687
697
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
688
- _chunkVHB3I6F3cjs.ChatAttachmentAddButton,
698
+ _chunkBGSBHH4Xcjs.ChatAttachmentAddButton,
689
699
  {
690
700
  attachmentsEnabled: !supportSystemDown,
691
701
  attachmentsCount: attachments.length,
@@ -715,7 +725,7 @@ var _usesticktobottom = require('use-stick-to-bottom');
715
725
 
716
726
  var LIST_ENGAGEMENTS_ENDPOINT = "/api/chat/agent/list-engagements";
717
727
  function useTicketEngagements(externalTicketId, enabled = true) {
718
- const identity = _chunkVHB3I6F3cjs.useChatIdentity.call(void 0, );
728
+ const identity = _chunkBGSBHH4Xcjs.useChatIdentity.call(void 0, );
719
729
  const identityKey = _nullishCoalesce(_optionalChain([identity, 'access', _21 => _21.user, 'optionalAccess', _22 => _22.email]), () => ( "anon"));
720
730
  const listEngagementsEndpoint = _nullishCoalesce(_chunkUPKZU6QUcjs.useRequiredChatRuntime.call(void 0, ).endpoints.listEngagementsUrl, () => ( LIST_ENGAGEMENTS_ENDPOINT));
721
731
  const fetchable = enabled && !!externalTicketId && !externalTicketId.startsWith("temp-");
@@ -788,7 +798,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
788
798
  dateClosed: clickup.date_closed,
789
799
  clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
790
800
  };
791
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden rounded-md border border-ods-border bg-ods-bg ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRSRP4U3cjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
801
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden rounded-md border border-ods-border bg-ods-bg ${_nullishCoalesce(className, () => ( ""))}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL35UOSEQcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
792
802
  }
793
803
 
794
804
  // src/components/tickets/ticket-reply-composer.tsx
@@ -803,7 +813,7 @@ function TicketReplyComposer({
803
813
  }) {
804
814
  const [resolution, setResolution] = _react.useState.call(void 0, "");
805
815
  const [closeDialogOpen, setCloseDialogOpen] = _react.useState.call(void 0, false);
806
- const attachments = _chunkVHB3I6F3cjs.useChatAttachments.call(void 0, );
816
+ const attachments = _chunkBGSBHH4Xcjs.useChatAttachments.call(void 0, );
807
817
  const { readyAttachments, clear: clearAttachments } = attachments;
808
818
  const ticketRef = { id: ticket.id, external_id: ticket.external_id };
809
819
  const hasReadyFiles = readyAttachments.length > 0;
@@ -824,7 +834,7 @@ function TicketReplyComposer({
824
834
  const disabled = busy || supportSystemDown;
825
835
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-2", children: [
826
836
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
827
- _chunkVHB3I6F3cjs.ChatAttachmentChipStrip,
837
+ _chunkBGSBHH4Xcjs.ChatAttachmentChipStrip,
828
838
  {
829
839
  attachments: attachments.attachments,
830
840
  onRemove: attachments.removeAttachment,
@@ -833,7 +843,7 @@ function TicketReplyComposer({
833
843
  }
834
844
  ),
835
845
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
836
- _chunkVHB3I6F3cjs.ChatInput,
846
+ _chunkBGSBHH4Xcjs.ChatInput,
837
847
  {
838
848
  fullWidth: true,
839
849
  autoFocus: true,
@@ -841,13 +851,13 @@ function TicketReplyComposer({
841
851
  sending: busy || attachments.hasInflightUploads,
842
852
  disabled: supportSystemDown,
843
853
  allowEmptySend: hasReadyFiles,
844
- maxLength: _chunkYE3TFNW6cjs.TICKET_TEXT_MAX_CHARS,
854
+ maxLength: _chunk7EIUV3EVcjs.TICKET_TEXT_MAX_CHARS,
845
855
  onSend: handleSend
846
856
  }
847
857
  ),
848
858
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2", children: [
849
859
  !supportSystemDown && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
850
- _chunkVHB3I6F3cjs.ChatAttachmentAddButton,
860
+ _chunkBGSBHH4Xcjs.ChatAttachmentAddButton,
851
861
  {
852
862
  attachmentsEnabled: true,
853
863
  attachmentsCount: attachments.attachments.length,
@@ -870,25 +880,25 @@ function TicketReplyComposer({
870
880
  }
871
881
  )
872
882
  ] }),
873
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO4LL7RQVcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkO4LL7RQVcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
874
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkO4LL7RQVcjs.AlertDialogHeader, { children: [
875
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO4LL7RQVcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
876
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO4LL7RQVcjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
883
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUX7B27Jcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZUX7B27Jcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
884
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZUX7B27Jcjs.AlertDialogHeader, { children: [
885
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUX7B27Jcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
886
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUX7B27Jcjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
877
887
  ] }),
878
888
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
879
- _chunkO4LL7RQVcjs.Textarea,
889
+ _chunkZUX7B27Jcjs.Textarea,
880
890
  {
881
891
  value: resolution,
882
892
  onChange: (e) => setResolution(e.target.value),
883
893
  placeholder: "Resolution (optional)",
884
894
  rows: 3,
885
- maxLength: _chunkYE3TFNW6cjs.TICKET_TEXT_MAX_CHARS,
895
+ maxLength: _chunk7EIUV3EVcjs.TICKET_TEXT_MAX_CHARS,
886
896
  className: "mt-2"
887
897
  }
888
898
  ),
889
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkO4LL7RQVcjs.AlertDialogFooter, { children: [
899
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZUX7B27Jcjs.AlertDialogFooter, { children: [
890
900
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
891
- _chunkO4LL7RQVcjs.AlertDialogCancel,
901
+ _chunkZUX7B27Jcjs.AlertDialogCancel,
892
902
  {
893
903
  disabled: busy,
894
904
  className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
@@ -896,7 +906,7 @@ function TicketReplyComposer({
896
906
  }
897
907
  ),
898
908
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
899
- _chunkO4LL7RQVcjs.AlertDialogAction,
909
+ _chunkZUX7B27Jcjs.AlertDialogAction,
900
910
  {
901
911
  onClick: () => void confirmClose(),
902
912
  disabled: busy,
@@ -958,10 +968,10 @@ var TICKET_FEED_HEIGHT = "h-[60vh] md:h-[420px]";
958
968
  var TICKET_FEED_INNER = "flex flex-col gap-4 md:gap-6 px-4 md:px-6 py-4 md:py-6";
959
969
  var TICKET_FEED_SKELETON_ROWS = 6;
960
970
  function TicketTimelinePanel({ ticket }) {
961
- const identity = _chunkVHB3I6F3cjs.useChatIdentity.call(void 0, );
962
- const externalId = _chunkYE3TFNW6cjs.isOptimistic.call(void 0, ticket) ? null : ticket.external_id;
971
+ const identity = _chunkBGSBHH4Xcjs.useChatIdentity.call(void 0, );
972
+ const externalId = _chunk7EIUV3EVcjs.isOptimistic.call(void 0, ticket) ? null : ticket.external_id;
963
973
  const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
964
- const live = _chunkYE3TFNW6cjs.useOptionalTicketLive.call(void 0, );
974
+ const live = _chunk7EIUV3EVcjs.useOptionalTicketLive.call(void 0, );
965
975
  const setOpenTicketId = _optionalChain([live, 'optionalAccess', _25 => _25.setOpenTicketId]);
966
976
  const markRead = _optionalChain([live, 'optionalAccess', _26 => _26.markRead]);
967
977
  const markReadDebounceRef = _react.useRef.call(void 0, null);
@@ -985,7 +995,7 @@ function TicketTimelinePanel({ ticket }) {
985
995
  markReadDebounceRef.current = setTimeout(() => {
986
996
  markReadDebounceRef.current = null;
987
997
  void markRead(externalId);
988
- }, _chunkYE3TFNW6cjs.TICKET_MARK_READ_DEBOUNCE_MS);
998
+ }, _chunk7EIUV3EVcjs.TICKET_MARK_READ_DEBOUNCE_MS);
989
999
  }, [engagementsCount, externalId, markRead]);
990
1000
  const { scrollRef, contentRef } = _usesticktobottom.useStickToBottom.call(void 0, { initial: "instant", resize: "smooth" });
991
1001
  const bodyTurns = ticket.body ? ticket.body.split(TURN_SEPARATOR_RE).map((t) => t.trim()).filter(Boolean) : [];
@@ -1000,7 +1010,7 @@ function TicketTimelinePanel({ ticket }) {
1000
1010
  const customerName = (isViewerTheCustomer ? viewerName : null) || ticketCustomerName || viewerName || _optionalChain([identity, 'access', _40 => _40.user, 'optionalAccess', _41 => _41.email]) || "You";
1001
1011
  const customerAvatar = isViewerTheCustomer ? _nullishCoalesce(_optionalChain([identity, 'access', _42 => _42.user, 'optionalAccess', _43 => _43.avatarUrl]), () => ( void 0)) : void 0;
1002
1012
  if (isLoading) {
1003
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TICKET_FEED_FRAME} ${TICKET_FEED_HEIGHT}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TICKET_FEED_INNER, children: Array.from({ length: TICKET_FEED_SKELETON_ROWS }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkVHB3I6F3cjs.ChatMessageRowSkeleton, {}, i)) }) });
1013
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `${TICKET_FEED_FRAME} ${TICKET_FEED_HEIGHT}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: TICKET_FEED_INNER, children: Array.from({ length: TICKET_FEED_SKELETON_ROWS }, (_, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBGSBHH4Xcjs.ChatMessageRowSkeleton, {}, i)) }) });
1004
1014
  }
1005
1015
  if (bodyTurns.length === 0 && engagements.length === 0) {
1006
1016
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1019,7 +1029,7 @@ function TicketTimelinePanel({ ticket }) {
1019
1029
  const isResolution = turn.startsWith("[Resolution]");
1020
1030
  const text = isResolution ? turn.replace(/^\[Resolution\]\s*/, "") : turn;
1021
1031
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1022
- _chunkVHB3I6F3cjs.ChatMessageRow,
1032
+ _chunkBGSBHH4Xcjs.ChatMessageRow,
1023
1033
  {
1024
1034
  displayName: customerName,
1025
1035
  avatarUrl: customerAvatar,
@@ -1048,13 +1058,13 @@ function TicketTimelinePanel({ ticket }) {
1048
1058
  }
1049
1059
  const engAttachments = mapEngagementAttachments(eng.attachments);
1050
1060
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1051
- _chunkVHB3I6F3cjs.ChatMessageRow,
1061
+ _chunkBGSBHH4Xcjs.ChatMessageRow,
1052
1062
  {
1053
1063
  displayName: author,
1054
1064
  avatarUrl: avatarSrc,
1055
- timeLabel: eng.createdAt ? _chunkVHB3I6F3cjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
1065
+ timeLabel: eng.createdAt ? _chunkBGSBHH4Xcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
1056
1066
  body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
1057
- footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkO4LL7RQVcjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
1067
+ footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZUX7B27Jcjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
1058
1068
  },
1059
1069
  eng.id
1060
1070
  );
@@ -1167,7 +1177,7 @@ function TicketRow({
1167
1177
  onActionCollapsed,
1168
1178
  id
1169
1179
  }) {
1170
- const optimistic = _chunkYE3TFNW6cjs.isOptimistic.call(void 0, ticket);
1180
+ const optimistic = _chunk7EIUV3EVcjs.isOptimistic.call(void 0, ticket);
1171
1181
  const rowRef = _react.useRef.call(void 0, null);
1172
1182
  const handleClick = _react.useCallback.call(void 0, () => {
1173
1183
  onToggle(ticket.id);
@@ -1195,7 +1205,7 @@ function TicketRow({
1195
1205
  // so the badge accurately reflects "Closed" with a checkmark.
1196
1206
  statusLabel: _nullishCoalesce(ticket.pipeline_stage_label, () => ( void 0)),
1197
1207
  category: _nullishCoalesce(ticket.customer_company, () => ( void 0)),
1198
- timeAgo: ticket.hubspot_updated_at ? _chunkVHB3I6F3cjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : void 0,
1208
+ timeAgo: ticket.hubspot_updated_at ? _chunkBGSBHH4Xcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : void 0,
1199
1209
  // Linked-work chip: surfaced whenever the ticket has a linked
1200
1210
  // ClickUp task. Uses the linked task's own status so the chip text
1201
1211
  // reads "Working" / "Waiting on version release" / etc. — useful
@@ -1205,7 +1215,7 @@ function TicketRow({
1205
1215
  };
1206
1216
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rowRef, id, className: "scroll-mt-24", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, Collapsible, { open: expanded && !optimistic, className: "border-b border-ods-border last:border-b-0", children: [
1207
1217
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1208
- _chunkVHB3I6F3cjs.ChatTicketItem,
1218
+ _chunkBGSBHH4Xcjs.ChatTicketItem,
1209
1219
  {
1210
1220
  ticket: tileData,
1211
1221
  onClick: optimistic ? void 0 : handleClick,
@@ -1238,7 +1248,7 @@ function TicketRow({
1238
1248
  // src/components/tickets/ticket-center.tsx
1239
1249
 
1240
1250
  function TicketCenter({ toast: toast2 = _chunkGNKM6R55cjs.toast } = {}) {
1241
- const identity = _chunkVHB3I6F3cjs.useChatIdentity.call(void 0, );
1251
+ const identity = _chunkBGSBHH4Xcjs.useChatIdentity.call(void 0, );
1242
1252
  if (identity.isLoading) {
1243
1253
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketCenterSkeleton, {});
1244
1254
  }
@@ -1309,7 +1319,7 @@ function TicketCenterAuthed({
1309
1319
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 text-ods-text-secondary text-h6", children: [
1310
1320
  lastUpdatedAt && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { children: [
1311
1321
  "Updated ",
1312
- _chunkVHB3I6F3cjs.formatRelativeTime.call(void 0, new Date(lastUpdatedAt))
1322
+ _chunkBGSBHH4Xcjs.formatRelativeTime.call(void 0, new Date(lastUpdatedAt))
1313
1323
  ] }),
1314
1324
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1315
1325
  _chunkGBEUGDZGcjs.Button,
@@ -1336,11 +1346,11 @@ function TicketCenterAuthed({
1336
1346
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2NRLRRMRcjs.Card, { className: "overflow-hidden", children: merged.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1337
1347
  TicketRow,
1338
1348
  {
1339
- id: _chunkO4LL7RQVcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
1349
+ id: _chunkZUX7B27Jcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
1340
1350
  ticket,
1341
1351
  expanded: expandedTicketId === ticket.id,
1342
1352
  onToggle: toggleRow,
1343
- busy: _chunkYE3TFNW6cjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
1353
+ busy: _chunk7EIUV3EVcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
1344
1354
  supportSystemDown,
1345
1355
  onSendMessage: actions.sendMessage,
1346
1356
  onClose: actions.closeTicket,
@@ -1394,10 +1404,10 @@ function HelpCenterCard({
1394
1404
  onClearReplyError,
1395
1405
  id
1396
1406
  }) {
1397
- const optimistic = _chunkYE3TFNW6cjs.isOptimistic.call(void 0, ticket);
1407
+ const optimistic = _chunk7EIUV3EVcjs.isOptimistic.call(void 0, ticket);
1398
1408
  const rawStatus = (_nullishCoalesce(ticket.status, () => ( "OPEN"))).toUpperCase();
1399
1409
  const priority = (_nullishCoalesce(ticket.priority, () => ( ""))).toUpperCase();
1400
- const relativeUpdated = ticket.hubspot_updated_at ? _chunkVHB3I6F3cjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : "recently";
1410
+ const relativeUpdated = ticket.hubspot_updated_at ? _chunkBGSBHH4Xcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : "recently";
1401
1411
  const title = (ticket.subject || "").trim() || "(untitled)";
1402
1412
  const subtitle = `UPDATED ${relativeUpdated}, #${ticket.external_id || "\u2014"}${ticket.pipeline_stage_label ? `, ${ticket.pipeline_stage_label}` : ""}`;
1403
1413
  const description = _nullishCoalesce(_nullishCoalesce(ticket.preview, () => ( ticket.body)), () => ( ""));
@@ -1416,7 +1426,7 @@ function HelpCenterCard({
1416
1426
  });
1417
1427
  return () => cancelAnimationFrame(raf);
1418
1428
  }, [isExpanded]);
1419
- const live = _chunkYE3TFNW6cjs.useOptionalTicketLive.call(void 0, );
1429
+ const live = _chunk7EIUV3EVcjs.useOptionalTicketLive.call(void 0, );
1420
1430
  const unreadCount = !optimistic && ticket.external_id && _optionalChain([live, 'optionalAccess', _64 => _64.unreadByTicket, 'access', _65 => _65[ticket.external_id]]) || 0;
1421
1431
  const rightBadges = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1422
1432
  unreadCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1466,7 +1476,7 @@ function HelpCenterCard({
1466
1476
  "aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
1467
1477
  className: "w-full p-[12px] text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ods-accent disabled:cursor-default md:p-[16px]",
1468
1478
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1469
- _chunkYRSRP4U3cjs.DevCardRowContent,
1479
+ _chunkL35UOSEQcjs.DevCardRowContent,
1470
1480
  {
1471
1481
  title,
1472
1482
  subtitle,
@@ -1567,7 +1577,7 @@ function HelpCenterCreateForm({
1567
1577
  subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
1568
1578
  ] });
1569
1579
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1570
- _chunkN5C5P2LMcjs.ContactForm,
1580
+ _chunkWX7AXSVKcjs.ContactForm,
1571
1581
  {
1572
1582
  title: "Open a new ticket",
1573
1583
  footerText: "The support team typically responds within one business day.",
@@ -1605,29 +1615,29 @@ function HelpCenterCreateForm({
1605
1615
  // src/components/tickets/help-center-list.tsx
1606
1616
 
1607
1617
  function HelpCenterList({ toast: toast2 = _chunkGNKM6R55cjs.toast, backButton, title, shell } = {}) {
1608
- const identity = _chunkVHB3I6F3cjs.useChatIdentity.call(void 0, );
1618
+ const identity = _chunkBGSBHH4Xcjs.useChatIdentity.call(void 0, );
1609
1619
  const searchParams = _chunkSADRZ4YIcjs.useSearchParams.call(void 0, );
1610
1620
  const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
1611
1621
  const pathname = _chunkSADRZ4YIcjs.usePathname.call(void 0, );
1612
- const search = searchParams.get(_chunkO4LL7RQVcjs.DEV_SECTION_PARAM_KEYS.search) || "";
1622
+ const search = searchParams.get(_chunkZUX7B27Jcjs.DEV_SECTION_PARAM_KEYS.search) || "";
1613
1623
  const status = searchParams.get("status") || "all";
1614
- const ticketParam = searchParams.get(_chunkO4LL7RQVcjs.TICKET_OPEN_PARAM) || "";
1624
+ const ticketParam = searchParams.get(_chunkZUX7B27Jcjs.TICKET_OPEN_PARAM) || "";
1615
1625
  const page = _chunkCCWI3622cjs.positiveInt.call(void 0, searchParams.get("page"), 1);
1616
1626
  if (identity.isLoading) {
1617
1627
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1618
- _chunkYRSRP4U3cjs.DevSectionPage,
1628
+ _chunkL35UOSEQcjs.DevSectionPage,
1619
1629
  {
1620
1630
  sectionKey: "tickets",
1621
1631
  backButton,
1622
1632
  title,
1623
1633
  shell,
1624
1634
  preControls: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCreateFormSkeleton, {}),
1625
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRSRP4U3cjs.DevCardRowSkeletonList, {})
1635
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL35UOSEQcjs.DevCardRowSkeletonList, {})
1626
1636
  }
1627
1637
  );
1628
1638
  }
1629
1639
  if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
1630
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRSRP4U3cjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1640
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL35UOSEQcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1631
1641
  _chunkGELNUDBTcjs.EmptyState,
1632
1642
  {
1633
1643
  type: "generic",
@@ -1679,8 +1689,8 @@ function HelpCenterListAuthed({
1679
1689
  const setOpenTicket = _react.useCallback.call(void 0,
1680
1690
  (externalId) => {
1681
1691
  const params = new URLSearchParams(searchParams.toString());
1682
- if (externalId) params.set(_chunkO4LL7RQVcjs.TICKET_OPEN_PARAM, externalId);
1683
- else params.delete(_chunkO4LL7RQVcjs.TICKET_OPEN_PARAM);
1692
+ if (externalId) params.set(_chunkZUX7B27Jcjs.TICKET_OPEN_PARAM, externalId);
1693
+ else params.delete(_chunkZUX7B27Jcjs.TICKET_OPEN_PARAM);
1684
1694
  const qs = params.toString();
1685
1695
  router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
1686
1696
  },
@@ -1757,15 +1767,15 @@ function HelpCenterListAuthed({
1757
1767
  ] }),
1758
1768
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGBEUGDZGcjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
1759
1769
  ] }),
1760
- !error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRSRP4U3cjs.DevCardRowSkeletonList, {}) : !hasResults && isFetching ? (
1770
+ !error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL35UOSEQcjs.DevCardRowSkeletonList, {}) : !hasResults && isFetching ? (
1761
1771
  // Bridge state — background refetch in flight and the
1762
1772
  // optimistic placeholder was just removed by the mutation
1763
1773
  // callback. Without this branch "No tickets yet" would flash
1764
1774
  // for ~50ms between `removeOptimistic` and the server
1765
1775
  // response landing.
1766
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRSRP4U3cjs.DevCardRowSkeletonList, { rows: 1 })
1776
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL35UOSEQcjs.DevCardRowSkeletonList, { rows: 1 })
1767
1777
  ) : !hasResults ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1768
- _chunkYRSRP4U3cjs.ListEmptyState,
1778
+ _chunkL35UOSEQcjs.ListEmptyState,
1769
1779
  {
1770
1780
  isFiltered: hasActiveFilters,
1771
1781
  filtered: {
@@ -1796,11 +1806,11 @@ function HelpCenterListAuthed({
1796
1806
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full overflow-clip rounded-[6px] border border-ods-border bg-ods-card", children: merged.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1797
1807
  HelpCenterCard,
1798
1808
  {
1799
- id: _chunkO4LL7RQVcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
1809
+ id: _chunkZUX7B27Jcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
1800
1810
  ticket,
1801
1811
  expanded: expandedTicketId === ticket.id,
1802
1812
  onToggle: toggleRow,
1803
- busy: _chunkYE3TFNW6cjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
1813
+ busy: _chunk7EIUV3EVcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
1804
1814
  supportSystemDown,
1805
1815
  onSendMessage: actions.sendMessage,
1806
1816
  onClose: actions.closeTicket,
@@ -1814,7 +1824,7 @@ function HelpCenterListAuthed({
1814
1824
  ) }),
1815
1825
  !error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGELNUDBTcjs.UnifiedPagination, { currentPage: page, totalPages })
1816
1826
  ] });
1817
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYRSRP4U3cjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
1827
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkL35UOSEQcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
1818
1828
  }
1819
1829
 
1820
1830
 
@@ -1833,4 +1843,4 @@ function HelpCenterListAuthed({
1833
1843
 
1834
1844
 
1835
1845
  exports.useTicketActions = useTicketActions; exports.mapTicketActionError = mapTicketActionError; exports.useTicketsList = useTicketsList; exports.TicketOpenForm = TicketOpenForm; exports.useTicketEngagements = useTicketEngagements; exports.TicketLinkedDeliveryCard = TicketLinkedDeliveryCard; exports.TicketReplyComposer = TicketReplyComposer; exports.TicketDetailDrawer = TicketDetailDrawer; exports.TicketRow = TicketRow; exports.TicketCenter = TicketCenter; exports.HelpCenterCard = HelpCenterCard; exports.HelpCenterCreateFormSkeleton = HelpCenterCreateFormSkeleton; exports.HelpCenterCreateForm = HelpCenterCreateForm; exports.HelpCenterList = HelpCenterList;
1836
- //# sourceMappingURL=chunk-WL3PNUNY.cjs.map
1846
+ //# sourceMappingURL=chunk-YTP6LQCB.cjs.map