@flamingo-stack/openframe-frontend-core 0.0.585 → 0.0.586-1986.5486.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/dist/{chunk-276BXVOB.js → chunk-2Y5UT5VF.js} +2 -2
  2. package/dist/{chunk-CTZP2NJQ.js → chunk-3HYHYKNL.js} +4 -4
  3. package/dist/{chunk-7554QJ6R.js → chunk-3JVYM4ZN.js} +5 -5
  4. package/dist/{chunk-QIVZG4XK.cjs → chunk-3WR5R6H6.cjs} +16 -16
  5. package/dist/{chunk-QIVZG4XK.cjs.map → chunk-3WR5R6H6.cjs.map} +1 -1
  6. package/dist/{chunk-BU2KLFRB.cjs → chunk-4VZFJKPT.cjs} +3 -3
  7. package/dist/{chunk-BU2KLFRB.cjs.map → chunk-4VZFJKPT.cjs.map} +1 -1
  8. package/dist/{chunk-VSXFBO4D.js → chunk-5OIXAV4P.js} +2 -2
  9. package/dist/{chunk-GG76BPXJ.js → chunk-6EZGJZVH.js} +2 -2
  10. package/dist/{chunk-HBI7AWUE.cjs → chunk-6ZNWY6WW.cjs} +17 -17
  11. package/dist/{chunk-HBI7AWUE.cjs.map → chunk-6ZNWY6WW.cjs.map} +1 -1
  12. package/dist/{chunk-3F7V7GFU.cjs → chunk-A6ETQEWK.cjs} +405 -293
  13. package/dist/chunk-A6ETQEWK.cjs.map +1 -0
  14. package/dist/{chunk-DZM7KTHE.cjs → chunk-BMORFCT2.cjs} +34 -34
  15. package/dist/{chunk-DZM7KTHE.cjs.map → chunk-BMORFCT2.cjs.map} +1 -1
  16. package/dist/{chunk-4TN6C7ZG.cjs → chunk-C3MRLZUI.cjs} +33 -33
  17. package/dist/{chunk-4TN6C7ZG.cjs.map → chunk-C3MRLZUI.cjs.map} +1 -1
  18. package/dist/{chunk-BNZFLIEG.js → chunk-DQUEVRDU.js} +5 -5
  19. package/dist/{chunk-XK4S47LG.cjs → chunk-EAYMX22G.cjs} +10 -10
  20. package/dist/{chunk-XK4S47LG.cjs.map → chunk-EAYMX22G.cjs.map} +1 -1
  21. package/dist/{chunk-36GXR7BR.js → chunk-KLWJRGNN.js} +3 -3
  22. package/dist/{chunk-JKWWACNI.js → chunk-L4WLYGB4.js} +2 -2
  23. package/dist/{chunk-J4MVZ53H.js → chunk-LV6CORVJ.js} +2 -2
  24. package/dist/{chunk-ULGI56BW.cjs → chunk-M36XSGZV.cjs} +13 -13
  25. package/dist/{chunk-ULGI56BW.cjs.map → chunk-M36XSGZV.cjs.map} +1 -1
  26. package/dist/{chunk-HAIRDHWL.cjs → chunk-NISAGFEM.cjs} +3 -3
  27. package/dist/{chunk-HAIRDHWL.cjs.map → chunk-NISAGFEM.cjs.map} +1 -1
  28. package/dist/{chunk-F5SV627B.cjs → chunk-NYLWMAHP.cjs} +4 -4
  29. package/dist/{chunk-F5SV627B.cjs.map → chunk-NYLWMAHP.cjs.map} +1 -1
  30. package/dist/{chunk-HQRKC6P7.js → chunk-OZNFPQT5.js} +2 -2
  31. package/dist/{chunk-VQ5FMCZA.cjs → chunk-P2CKLIOM.cjs} +49 -49
  32. package/dist/{chunk-VQ5FMCZA.cjs.map → chunk-P2CKLIOM.cjs.map} +1 -1
  33. package/dist/{chunk-FCKOWGTE.js → chunk-PLMJVA2H.js} +2 -2
  34. package/dist/{chunk-5YVCIBUH.cjs → chunk-QZYYNBMI.cjs} +17 -17
  35. package/dist/{chunk-5YVCIBUH.cjs.map → chunk-QZYYNBMI.cjs.map} +1 -1
  36. package/dist/{chunk-SCMESLXP.js → chunk-S7YXLZNG.js} +4 -4
  37. package/dist/{chunk-27DK5GCC.cjs → chunk-SSGM2NKA.cjs} +4 -4
  38. package/dist/{chunk-27DK5GCC.cjs.map → chunk-SSGM2NKA.cjs.map} +1 -1
  39. package/dist/{chunk-FQJBV5ON.cjs → chunk-V7ZJTUV2.cjs} +3 -3
  40. package/dist/{chunk-FQJBV5ON.cjs.map → chunk-V7ZJTUV2.cjs.map} +1 -1
  41. package/dist/{chunk-6VFO4JUH.cjs → chunk-XMK24INA.cjs} +3 -3
  42. package/dist/{chunk-6VFO4JUH.cjs.map → chunk-XMK24INA.cjs.map} +1 -1
  43. package/dist/{chunk-UG6SHUGE.js → chunk-XMTGLQSD.js} +2 -2
  44. package/dist/{chunk-LNKBNY3A.js → chunk-YEQAA6I4.js} +2 -2
  45. package/dist/{chunk-WXL2AR5I.js → chunk-YYC7V7YC.js} +2023 -1911
  46. package/dist/chunk-YYC7V7YC.js.map +1 -0
  47. package/dist/components/case-studies/index.cjs +8 -8
  48. package/dist/components/case-studies/index.js +2 -2
  49. package/dist/components/contact/index.cjs +3 -3
  50. package/dist/components/contact/index.js +2 -2
  51. package/dist/components/docs/index.cjs +6 -6
  52. package/dist/components/docs/index.js +5 -5
  53. package/dist/components/embeds/index.cjs +3 -3
  54. package/dist/components/embeds/index.js +2 -2
  55. package/dist/components/faq/index.cjs +3 -3
  56. package/dist/components/faq/index.js +2 -2
  57. package/dist/components/features/auth/account-details-fields.d.ts +34 -0
  58. package/dist/components/features/auth/account-details-fields.d.ts.map +1 -0
  59. package/dist/components/features/auth/complete-account-form.d.ts.map +1 -1
  60. package/dist/components/features/auth/create-organization-form.d.ts +43 -6
  61. package/dist/components/features/auth/create-organization-form.d.ts.map +1 -1
  62. package/dist/components/features/auth/index.d.ts +2 -0
  63. package/dist/components/features/auth/index.d.ts.map +1 -1
  64. package/dist/components/features/auth/labeled-divider.d.ts +6 -0
  65. package/dist/components/features/auth/labeled-divider.d.ts.map +1 -0
  66. package/dist/components/features/auth/login-form.d.ts +32 -9
  67. package/dist/components/features/auth/login-form.d.ts.map +1 -1
  68. package/dist/components/features/auth/openframe-sso-signup-form.d.ts.map +1 -1
  69. package/dist/components/features/auth/sso-providers.d.ts +1 -1
  70. package/dist/components/features/auth/sso-providers.d.ts.map +1 -1
  71. package/dist/components/features/index.cjs +6 -2
  72. package/dist/components/features/index.cjs.map +1 -1
  73. package/dist/components/features/index.js +5 -1
  74. package/dist/components/help-center-pages/index.cjs +22 -22
  75. package/dist/components/help-center-pages/index.js +13 -13
  76. package/dist/components/index.cjs +33 -29
  77. package/dist/components/index.cjs.map +1 -1
  78. package/dist/components/index.js +16 -12
  79. package/dist/components/index.js.map +1 -1
  80. package/dist/components/meeting-scheduler/index.cjs +18 -18
  81. package/dist/components/meeting-scheduler/index.js +1 -1
  82. package/dist/components/navigation/index.cjs +5 -5
  83. package/dist/components/navigation/index.js +4 -4
  84. package/dist/components/onboarding-guides/index.cjs +5 -5
  85. package/dist/components/onboarding-guides/index.js +4 -4
  86. package/dist/components/tickets/index.cjs +6 -6
  87. package/dist/components/tickets/index.js +5 -5
  88. package/dist/components/ui/index.cjs +2 -2
  89. package/dist/components/ui/index.js +1 -1
  90. package/dist/index.cjs +10 -6
  91. package/dist/index.cjs.map +1 -1
  92. package/dist/index.js +9 -5
  93. package/dist/index.js.map +1 -1
  94. package/package.json +1 -1
  95. package/src/components/features/auth/account-details-fields.tsx +124 -0
  96. package/src/components/features/auth/complete-account-form.tsx +13 -52
  97. package/src/components/features/auth/create-organization-form.tsx +128 -38
  98. package/src/components/features/auth/index.ts +2 -0
  99. package/src/components/features/auth/labeled-divider.tsx +16 -0
  100. package/src/components/features/auth/login-form.tsx +102 -23
  101. package/src/components/features/auth/openframe-sso-signup-form.tsx +11 -43
  102. package/src/components/features/auth/sso-providers.tsx +3 -3
  103. package/src/stories/auth/Login.stories.tsx +15 -5
  104. package/dist/chunk-3F7V7GFU.cjs.map +0 -1
  105. package/dist/chunk-WXL2AR5I.js.map +0 -1
  106. /package/dist/{chunk-276BXVOB.js.map → chunk-2Y5UT5VF.js.map} +0 -0
  107. /package/dist/{chunk-CTZP2NJQ.js.map → chunk-3HYHYKNL.js.map} +0 -0
  108. /package/dist/{chunk-7554QJ6R.js.map → chunk-3JVYM4ZN.js.map} +0 -0
  109. /package/dist/{chunk-VSXFBO4D.js.map → chunk-5OIXAV4P.js.map} +0 -0
  110. /package/dist/{chunk-GG76BPXJ.js.map → chunk-6EZGJZVH.js.map} +0 -0
  111. /package/dist/{chunk-BNZFLIEG.js.map → chunk-DQUEVRDU.js.map} +0 -0
  112. /package/dist/{chunk-36GXR7BR.js.map → chunk-KLWJRGNN.js.map} +0 -0
  113. /package/dist/{chunk-JKWWACNI.js.map → chunk-L4WLYGB4.js.map} +0 -0
  114. /package/dist/{chunk-J4MVZ53H.js.map → chunk-LV6CORVJ.js.map} +0 -0
  115. /package/dist/{chunk-HQRKC6P7.js.map → chunk-OZNFPQT5.js.map} +0 -0
  116. /package/dist/{chunk-FCKOWGTE.js.map → chunk-PLMJVA2H.js.map} +0 -0
  117. /package/dist/{chunk-SCMESLXP.js.map → chunk-S7YXLZNG.js.map} +0 -0
  118. /package/dist/{chunk-UG6SHUGE.js.map → chunk-XMTGLQSD.js.map} +0 -0
  119. /package/dist/{chunk-LNKBNY3A.js.map → chunk-YEQAA6I4.js.map} +0 -0
@@ -1,13 +1,13 @@
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 _chunkQIVZG4XKcjs = require('./chunk-QIVZG4XK.cjs');
4
+ var _chunk3WR5R6H6cjs = require('./chunk-3WR5R6H6.cjs');
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkXK4S47LGcjs = require('./chunk-XK4S47LG.cjs');
10
+ var _chunkEAYMX22Gcjs = require('./chunk-EAYMX22G.cjs');
11
11
 
12
12
 
13
13
 
@@ -18,7 +18,7 @@ var _chunkS4CLML75cjs = require('./chunk-S4CLML75.cjs');
18
18
 
19
19
 
20
20
 
21
- var _chunkBU2KLFRBcjs = require('./chunk-BU2KLFRB.cjs');
21
+ var _chunk4VZFJKPTcjs = require('./chunk-4VZFJKPT.cjs');
22
22
 
23
23
 
24
24
 
@@ -33,7 +33,7 @@ var _chunkBU2KLFRBcjs = require('./chunk-BU2KLFRB.cjs');
33
33
 
34
34
 
35
35
 
36
- var _chunk3F7V7GFUcjs = require('./chunk-3F7V7GFU.cjs');
36
+ var _chunkA6ETQEWKcjs = require('./chunk-A6ETQEWK.cjs');
37
37
 
38
38
 
39
39
 
@@ -107,7 +107,7 @@ var TicketActionFailure = class extends Error {
107
107
  function useTicketActions(options) {
108
108
  const queryClient = _reactquery.useQueryClient.call(void 0, );
109
109
  const ticketActionEndpoint = _nullishCoalesce(_chunkRDTOMWDNcjs.useRequiredChatRuntime.call(void 0, ).endpoints.ticketActionUrl, () => ( TICKET_ACTION_ENDPOINT));
110
- const ticketLive = _chunkBU2KLFRBcjs.useOptionalTicketLive.call(void 0, );
110
+ const ticketLive = _chunk4VZFJKPTcjs.useOptionalTicketLive.call(void 0, );
111
111
  const notifyTicketCreated = _optionalChain([ticketLive, 'optionalAccess', _2 => _2.notifyTicketCreated]);
112
112
  const { prependOptimistic, removeOptimistic, removeTicketFromCache, toast: toast2, onSupportSystemDown } = options;
113
113
  const formInFlightRef = _react.useRef.call(void 0, null);
@@ -268,10 +268,10 @@ function useTicketActions(options) {
268
268
  ..._optionalChain([input, 'access', _3 => _3.attachments, 'optionalAccess', _4 => _4.length]) ? { attachments: input.attachments } : {}
269
269
  });
270
270
  if (result.mirror_synced === false) {
271
- toast2(_chunkBU2KLFRBcjs.TOAST_COPY.open_mirror_pending);
271
+ toast2(_chunk4VZFJKPTcjs.TOAST_COPY.open_mirror_pending);
272
272
  watchMirrorSync(placeholderId, result.ticket_id);
273
273
  } else {
274
- toast2(_chunkBU2KLFRBcjs.TOAST_COPY.open_success);
274
+ toast2(_chunk4VZFJKPTcjs.TOAST_COPY.open_success);
275
275
  await queryClient.invalidateQueries({ queryKey: ["tickets"] });
276
276
  removeOptimistic(placeholderId);
277
277
  }
@@ -357,7 +357,7 @@ function useTicketActions(options) {
357
357
  ...hasText ? { content_addendum: trimmed } : {},
358
358
  ...hasFiles ? { attachments } : {}
359
359
  },
360
- _chunkBU2KLFRBcjs.TOAST_COPY.comment_success,
360
+ _chunk4VZFJKPTcjs.TOAST_COPY.comment_success,
361
361
  "send message"
362
362
  );
363
363
  if (ok) {
@@ -380,13 +380,13 @@ function useTicketActions(options) {
380
380
  status: "CLOSED",
381
381
  ..._optionalChain([resolution, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ? { resolution: resolution.trim() } : {}
382
382
  },
383
- _chunkBU2KLFRBcjs.TOAST_COPY.close_success,
383
+ _chunk4VZFJKPTcjs.TOAST_COPY.close_success,
384
384
  "close ticket"
385
385
  ),
386
386
  [updateTicket]
387
387
  );
388
388
  const reopenTicket = _react.useCallback.call(void 0,
389
- (ticket) => updateTicket(ticket, { status: "OPEN" }, _chunkBU2KLFRBcjs.TOAST_COPY.reopen_success, "reopen ticket"),
389
+ (ticket) => updateTicket(ticket, { status: "OPEN" }, _chunk4VZFJKPTcjs.TOAST_COPY.reopen_success, "reopen ticket"),
390
390
  [updateTicket]
391
391
  );
392
392
  return _react.useMemo.call(void 0,
@@ -611,14 +611,14 @@ function useTicketsList(filters) {
611
611
  // src/components/tickets/ticket-open-form.tsx
612
612
 
613
613
  var _jsxruntime = require('react/jsx-runtime');
614
- var COUNTER_VISIBLE_AT = Math.floor(_chunkBU2KLFRBcjs.TICKET_TEXT_MAX_CHARS * 0.8);
614
+ var COUNTER_VISIBLE_AT = Math.floor(_chunk4VZFJKPTcjs.TICKET_TEXT_MAX_CHARS * 0.8);
615
615
  function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
616
616
  const [subject, setSubject] = _react.useState.call(void 0, "");
617
617
  const [content, setContent] = _react.useState.call(void 0, "");
618
618
  const { attachments, readyAttachments, hasInflightUploads, addFiles, removeAttachment, clear } = _chunkG45RGWHFcjs.useChatAttachments.call(void 0, );
619
619
  const trimmedSubject = subject.trim();
620
620
  const trimmedContent = content.trim();
621
- const overCap = content.length > _chunkBU2KLFRBcjs.TICKET_TEXT_MAX_CHARS;
621
+ const overCap = content.length > _chunk4VZFJKPTcjs.TICKET_TEXT_MAX_CHARS;
622
622
  const showCounter = content.length >= COUNTER_VISIBLE_AT;
623
623
  const canSubmit = !isSubmitting && !supportSystemDown && !hasInflightUploads && trimmedSubject.length > 0 && trimmedContent.length > 0 && !overCap;
624
624
  const handleSubmit = async (e) => {
@@ -660,7 +660,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
660
660
  /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
661
661
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "label", { htmlFor: "ticket-content", className: "mb-1 block text-ods-text-primary text-h6", children: "Your Message" }),
662
662
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
663
- _chunk3F7V7GFUcjs.Textarea,
663
+ _chunkA6ETQEWKcjs.Textarea,
664
664
  {
665
665
  id: "ticket-content",
666
666
  placeholder: "Describe your issue or question in detail...",
@@ -674,7 +674,7 @@ function TicketOpenForm({ onSubmit, isSubmitting, supportSystemDown }) {
674
674
  showCounter && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: `mt-1 text-right text-h6 ${overCap ? "text-ods-error" : "text-ods-text-secondary"}`, children: [
675
675
  content.length,
676
676
  "/",
677
- _chunkBU2KLFRBcjs.TICKET_TEXT_MAX_CHARS
677
+ _chunk4VZFJKPTcjs.TICKET_TEXT_MAX_CHARS
678
678
  ] })
679
679
  ] }),
680
680
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -790,7 +790,7 @@ function TicketLinkedDeliveryCard({ clickup, className }) {
790
790
  dateClosed: clickup.date_closed,
791
791
  clickupUrl: _nullishCoalesce(clickup.clickup_url, () => ( ""))
792
792
  };
793
- 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, _chunkXK4S47LGcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
793
+ 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, _chunkEAYMX22Gcjs.DeliveryRow, { item, href: clickup.delivery_href, caption: "Linked delivery" }) });
794
794
  }
795
795
 
796
796
  // src/components/tickets/ticket-reply-composer.tsx
@@ -843,7 +843,7 @@ function TicketReplyComposer({
843
843
  sending: busy || attachments.hasInflightUploads,
844
844
  disabled: supportSystemDown,
845
845
  allowEmptySend: hasReadyFiles,
846
- maxLength: _chunkBU2KLFRBcjs.TICKET_TEXT_MAX_CHARS,
846
+ maxLength: _chunk4VZFJKPTcjs.TICKET_TEXT_MAX_CHARS,
847
847
  onSend: handleSend
848
848
  }
849
849
  ),
@@ -872,25 +872,25 @@ function TicketReplyComposer({
872
872
  }
873
873
  )
874
874
  ] }),
875
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3F7V7GFUcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3F7V7GFUcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
876
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3F7V7GFUcjs.AlertDialogHeader, { children: [
877
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3F7V7GFUcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
878
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3F7V7GFUcjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
875
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA6ETQEWKcjs.AlertDialog, { open: closeDialogOpen, onOpenChange: setCloseDialogOpen, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkA6ETQEWKcjs.AlertDialogContent, { className: "border-ods-border bg-ods-card", children: [
876
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkA6ETQEWKcjs.AlertDialogHeader, { children: [
877
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA6ETQEWKcjs.AlertDialogTitle, { className: "text-ods-text-primary", children: "Close this ticket?" }),
878
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA6ETQEWKcjs.AlertDialogDescription, { className: "text-ods-text-secondary", children: "Add an optional resolution note below. You can reopen the ticket later if needed." })
879
879
  ] }),
880
880
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
881
- _chunk3F7V7GFUcjs.Textarea,
881
+ _chunkA6ETQEWKcjs.Textarea,
882
882
  {
883
883
  value: resolution,
884
884
  onChange: (e) => setResolution(e.target.value),
885
885
  placeholder: "Resolution (optional)",
886
886
  rows: 3,
887
- maxLength: _chunkBU2KLFRBcjs.TICKET_TEXT_MAX_CHARS,
887
+ maxLength: _chunk4VZFJKPTcjs.TICKET_TEXT_MAX_CHARS,
888
888
  className: "mt-2"
889
889
  }
890
890
  ),
891
- /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3F7V7GFUcjs.AlertDialogFooter, { children: [
891
+ /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkA6ETQEWKcjs.AlertDialogFooter, { children: [
892
892
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
893
- _chunk3F7V7GFUcjs.AlertDialogCancel,
893
+ _chunkA6ETQEWKcjs.AlertDialogCancel,
894
894
  {
895
895
  disabled: busy,
896
896
  className: "border-ods-border bg-transparent text-ods-text-primary hover:bg-ods-border",
@@ -898,7 +898,7 @@ function TicketReplyComposer({
898
898
  }
899
899
  ),
900
900
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
901
- _chunk3F7V7GFUcjs.AlertDialogAction,
901
+ _chunkA6ETQEWKcjs.AlertDialogAction,
902
902
  {
903
903
  onClick: () => void confirmClose(),
904
904
  disabled: busy,
@@ -961,9 +961,9 @@ var TICKET_FEED_INNER = "flex flex-col gap-4 md:gap-6 px-4 md:px-6 py-4 md:py-6"
961
961
  var TICKET_FEED_SKELETON_ROWS = 6;
962
962
  function TicketTimelinePanel({ ticket }) {
963
963
  const identity = _chunkG45RGWHFcjs.useChatIdentity.call(void 0, );
964
- const externalId = _chunkBU2KLFRBcjs.isOptimistic.call(void 0, ticket) ? null : ticket.external_id;
964
+ const externalId = _chunk4VZFJKPTcjs.isOptimistic.call(void 0, ticket) ? null : ticket.external_id;
965
965
  const { engagements, isLoading } = useTicketEngagements(externalId, !!externalId);
966
- const live = _chunkBU2KLFRBcjs.useOptionalTicketLive.call(void 0, );
966
+ const live = _chunk4VZFJKPTcjs.useOptionalTicketLive.call(void 0, );
967
967
  const setOpenTicketId = _optionalChain([live, 'optionalAccess', _25 => _25.setOpenTicketId]);
968
968
  const markRead = _optionalChain([live, 'optionalAccess', _26 => _26.markRead]);
969
969
  const markReadDebounceRef = _react.useRef.call(void 0, null);
@@ -987,7 +987,7 @@ function TicketTimelinePanel({ ticket }) {
987
987
  markReadDebounceRef.current = setTimeout(() => {
988
988
  markReadDebounceRef.current = null;
989
989
  void markRead(externalId);
990
- }, _chunkBU2KLFRBcjs.TICKET_MARK_READ_DEBOUNCE_MS);
990
+ }, _chunk4VZFJKPTcjs.TICKET_MARK_READ_DEBOUNCE_MS);
991
991
  }, [engagementsCount, externalId, markRead]);
992
992
  const { scrollRef, contentRef } = _usesticktobottom.useStickToBottom.call(void 0, { initial: "instant", resize: "smooth" });
993
993
  const bodyTurns = ticket.body ? ticket.body.split(TURN_SEPARATOR_RE).map((t) => t.trim()).filter(Boolean) : [];
@@ -1056,7 +1056,7 @@ function TicketTimelinePanel({ ticket }) {
1056
1056
  avatarUrl: avatarSrc,
1057
1057
  timeLabel: eng.createdAt ? _chunkG45RGWHFcjs.formatRelativeTime.call(void 0, eng.createdAt) : null,
1058
1058
  body: stripAttachmentsPreamble(_nullishCoalesce(eng.body, () => ( ""))),
1059
- footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3F7V7GFUcjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
1059
+ footer: engAttachments.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mt-2", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkA6ETQEWKcjs.TicketAttachmentsList, { attachments: engAttachments, size: "compact" }) }) : null
1060
1060
  },
1061
1061
  eng.id
1062
1062
  );
@@ -1169,7 +1169,7 @@ function TicketRow({
1169
1169
  onActionCollapsed,
1170
1170
  id
1171
1171
  }) {
1172
- const optimistic = _chunkBU2KLFRBcjs.isOptimistic.call(void 0, ticket);
1172
+ const optimistic = _chunk4VZFJKPTcjs.isOptimistic.call(void 0, ticket);
1173
1173
  const rowRef = _react.useRef.call(void 0, null);
1174
1174
  const handleClick = _react.useCallback.call(void 0, () => {
1175
1175
  onToggle(ticket.id);
@@ -1338,11 +1338,11 @@ function TicketCenterAuthed({
1338
1338
  ) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEMF64FWAcjs.Card, { className: "overflow-hidden", children: merged.map((ticket) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1339
1339
  TicketRow,
1340
1340
  {
1341
- id: _chunk3F7V7GFUcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
1341
+ id: _chunkA6ETQEWKcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
1342
1342
  ticket,
1343
1343
  expanded: expandedTicketId === ticket.id,
1344
1344
  onToggle: toggleRow,
1345
- busy: _chunkBU2KLFRBcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
1345
+ busy: _chunk4VZFJKPTcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
1346
1346
  supportSystemDown,
1347
1347
  onSendMessage: actions.sendMessage,
1348
1348
  onClose: actions.closeTicket,
@@ -1396,7 +1396,7 @@ function HelpCenterCard({
1396
1396
  onClearReplyError,
1397
1397
  id
1398
1398
  }) {
1399
- const optimistic = _chunkBU2KLFRBcjs.isOptimistic.call(void 0, ticket);
1399
+ const optimistic = _chunk4VZFJKPTcjs.isOptimistic.call(void 0, ticket);
1400
1400
  const rawStatus = (_nullishCoalesce(ticket.status, () => ( "OPEN"))).toUpperCase();
1401
1401
  const priority = (_nullishCoalesce(ticket.priority, () => ( ""))).toUpperCase();
1402
1402
  const relativeUpdated = ticket.hubspot_updated_at ? _chunkG45RGWHFcjs.formatRelativeTime.call(void 0, ticket.hubspot_updated_at) : "recently";
@@ -1418,7 +1418,7 @@ function HelpCenterCard({
1418
1418
  });
1419
1419
  return () => cancelAnimationFrame(raf);
1420
1420
  }, [isExpanded]);
1421
- const live = _chunkBU2KLFRBcjs.useOptionalTicketLive.call(void 0, );
1421
+ const live = _chunk4VZFJKPTcjs.useOptionalTicketLive.call(void 0, );
1422
1422
  const unreadCount = !optimistic && ticket.external_id && _optionalChain([live, 'optionalAccess', _64 => _64.unreadByTicket, 'access', _65 => _65[ticket.external_id]]) || 0;
1423
1423
  const rightBadges = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
1424
1424
  unreadCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
@@ -1468,7 +1468,7 @@ function HelpCenterCard({
1468
1468
  "aria-controls": isExpanded ? `help-center-drawer-${ticket.id}` : void 0,
1469
1469
  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]",
1470
1470
  children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1471
- _chunkXK4S47LGcjs.DevCardRowContent,
1471
+ _chunkEAYMX22Gcjs.DevCardRowContent,
1472
1472
  {
1473
1473
  title,
1474
1474
  subtitle,
@@ -1568,7 +1568,7 @@ function HelpCenterCreateForm({
1568
1568
  subjectError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { id: "help-center-subject-error", className: "mt-1 text-ods-error text-h6", children: subjectError })
1569
1569
  ] });
1570
1570
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1571
- _chunkQIVZG4XKcjs.ContactForm,
1571
+ _chunk3WR5R6H6cjs.ContactForm,
1572
1572
  {
1573
1573
  title: "Open a new ticket",
1574
1574
  footerText: "The support team typically responds within one business day.",
@@ -1610,26 +1610,26 @@ function HelpCenterList({ toast: toast2 = _chunkLEISUAHFcjs.toast, backButton, t
1610
1610
  const searchParams = _chunkSADRZ4YIcjs.useSearchParams.call(void 0, );
1611
1611
  const router = _chunkSADRZ4YIcjs.useRouter.call(void 0, );
1612
1612
  const pathname = _chunkSADRZ4YIcjs.usePathname.call(void 0, );
1613
- const search = searchParams.get(_chunk3F7V7GFUcjs.DEV_SECTION_PARAM_KEYS.search) || "";
1613
+ const search = searchParams.get(_chunkA6ETQEWKcjs.DEV_SECTION_PARAM_KEYS.search) || "";
1614
1614
  const status = searchParams.get("status") || "all";
1615
- const ticketParam = searchParams.get(_chunk3F7V7GFUcjs.TICKET_OPEN_PARAM) || "";
1615
+ const ticketParam = searchParams.get(_chunkA6ETQEWKcjs.TICKET_OPEN_PARAM) || "";
1616
1616
  const rawPage = Number(searchParams.get("page"));
1617
1617
  const page = Number.isFinite(rawPage) && rawPage > 0 ? Math.floor(rawPage) : 1;
1618
1618
  if (identity.isLoading) {
1619
1619
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1620
- _chunkXK4S47LGcjs.DevSectionPage,
1620
+ _chunkEAYMX22Gcjs.DevSectionPage,
1621
1621
  {
1622
1622
  sectionKey: "tickets",
1623
1623
  backButton,
1624
1624
  title,
1625
1625
  shell,
1626
1626
  preControls: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HelpCenterCreateFormSkeleton, {}),
1627
- children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXK4S47LGcjs.DevCardRowSkeletonList, {})
1627
+ children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAYMX22Gcjs.DevCardRowSkeletonList, {})
1628
1628
  }
1629
1629
  );
1630
1630
  }
1631
1631
  if (identity.authTier === "anon" || !_optionalChain([identity, 'access', _66 => _66.user, 'optionalAccess', _67 => _67.email])) {
1632
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXK4S47LGcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1632
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAYMX22Gcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1633
1633
  _chunkS4CLML75cjs.EmptyState,
1634
1634
  {
1635
1635
  type: "generic",
@@ -1681,8 +1681,8 @@ function HelpCenterListAuthed({
1681
1681
  const setOpenTicket = _react.useCallback.call(void 0,
1682
1682
  (externalId) => {
1683
1683
  const params = new URLSearchParams(searchParams.toString());
1684
- if (externalId) params.set(_chunk3F7V7GFUcjs.TICKET_OPEN_PARAM, externalId);
1685
- else params.delete(_chunk3F7V7GFUcjs.TICKET_OPEN_PARAM);
1684
+ if (externalId) params.set(_chunkA6ETQEWKcjs.TICKET_OPEN_PARAM, externalId);
1685
+ else params.delete(_chunkA6ETQEWKcjs.TICKET_OPEN_PARAM);
1686
1686
  const qs = params.toString();
1687
1687
  router.replace(qs ? `${pathname}?${qs}` : pathname, { scroll: false });
1688
1688
  },
@@ -1759,13 +1759,13 @@ function HelpCenterListAuthed({
1759
1759
  ] }),
1760
1760
  /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkYHNIPSG6cjs.Button, { type: "button", variant: "accent", onClick: () => refetch(), children: "Retry" })
1761
1761
  ] }),
1762
- !error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXK4S47LGcjs.DevCardRowSkeletonList, {}) : !hasResults && isFetching ? (
1762
+ !error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: isLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAYMX22Gcjs.DevCardRowSkeletonList, {}) : !hasResults && isFetching ? (
1763
1763
  // Bridge state — background refetch in flight and the
1764
1764
  // optimistic placeholder was just removed by the mutation
1765
1765
  // callback. Without this branch "No tickets yet" would flash
1766
1766
  // for ~50ms between `removeOptimistic` and the server
1767
1767
  // response landing.
1768
- /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXK4S47LGcjs.DevCardRowSkeletonList, { rows: 1 })
1768
+ /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAYMX22Gcjs.DevCardRowSkeletonList, { rows: 1 })
1769
1769
  ) : !hasResults ? hasActiveFilters ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
1770
1770
  _chunkS4CLML75cjs.EmptyState,
1771
1771
  {
@@ -1801,11 +1801,11 @@ function HelpCenterListAuthed({
1801
1801
  /* @__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,
1802
1802
  HelpCenterCard,
1803
1803
  {
1804
- id: _chunk3F7V7GFUcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
1804
+ id: _chunkA6ETQEWKcjs.devSectionAnchorId.call(void 0, "ticket", ticket.external_id),
1805
1805
  ticket,
1806
1806
  expanded: expandedTicketId === ticket.id,
1807
1807
  onToggle: toggleRow,
1808
- busy: _chunkBU2KLFRBcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
1808
+ busy: _chunk4VZFJKPTcjs.isOptimistic.call(void 0, ticket) ? false : actions.isRowBusy(ticket.id),
1809
1809
  supportSystemDown,
1810
1810
  onSendMessage: actions.sendMessage,
1811
1811
  onClose: actions.closeTicket,
@@ -1819,7 +1819,7 @@ function HelpCenterListAuthed({
1819
1819
  ) }),
1820
1820
  !error && totalPages > 1 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS4CLML75cjs.UnifiedPagination, { currentPage: page, totalPages })
1821
1821
  ] });
1822
- return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXK4S47LGcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
1822
+ return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEAYMX22Gcjs.DevSectionPage, { sectionKey: "tickets", backButton, title, shell, preControls: form, children: body });
1823
1823
  }
1824
1824
 
1825
1825
 
@@ -1838,4 +1838,4 @@ function HelpCenterListAuthed({
1838
1838
 
1839
1839
 
1840
1840
  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;
1841
- //# sourceMappingURL=chunk-VQ5FMCZA.cjs.map
1841
+ //# sourceMappingURL=chunk-P2CKLIOM.cjs.map