@flamingo-stack/openframe-frontend-core 0.0.737 → 0.0.739
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.
- package/dist/build/export-map.json +1 -1
- package/dist/{chunk-AZL332TK.cjs → chunk-2QMBXGMQ.cjs} +15 -2
- package/dist/{chunk-HZJRERJW.cjs → chunk-3RFQPQ7Z.cjs} +3 -3
- package/dist/{chunk-YADG5Q7C.cjs → chunk-63N4FN5V.cjs} +3 -3
- package/dist/{chunk-FTTLBMHU.cjs → chunk-7ZFCR7UY.cjs} +2 -2
- package/dist/{chunk-MJGX357L.cjs → chunk-B27QEHYR.cjs} +2 -2
- package/dist/{chunk-VRNNIV5Y.cjs → chunk-B3XBJCOD.cjs} +9 -9
- package/dist/{chunk-VL4JKXU2.cjs → chunk-BV5WZVOP.cjs} +243 -243
- package/dist/{chunk-KVGBDWYV.cjs → chunk-CUDTMCXK.cjs} +36 -36
- package/dist/{chunk-L4ZNR5V7.cjs → chunk-DSVNFRY5.cjs} +87 -87
- package/dist/{chunk-LW3QSP47.cjs → chunk-DTLHY2ZF.cjs} +27 -27
- package/dist/{chunk-4ISP3XP4.cjs → chunk-EGN4I5Q7.cjs} +76 -76
- package/dist/{chunk-XPP7VCNY.cjs → chunk-ENCAIAMY.cjs} +10 -10
- package/dist/{chunk-FA2LATDM.cjs → chunk-FL6UO7IR.cjs} +4 -4
- package/dist/{chunk-ZRYKDN2J.cjs → chunk-GABDE3FM.cjs} +24 -24
- package/dist/{chunk-MYBTNOS6.cjs → chunk-GSWQZX23.cjs} +2 -2
- package/dist/{chunk-L535OD7V.cjs → chunk-HF7Z2E4W.cjs} +2 -2
- package/dist/chunk-HOTM4UM6.cjs +84 -0
- package/dist/{chunk-EAY6ZUES.cjs → chunk-I5MSCD57.cjs} +2 -2
- package/dist/{chunk-FCGLSWKR.cjs → chunk-IFS4AH77.cjs} +19 -1
- package/dist/{chunk-MGW5DO6P.cjs → chunk-KLI4OSRA.cjs} +7 -7
- package/dist/{chunk-O4MG7FXW.cjs → chunk-NX6JQT25.cjs} +6 -6
- package/dist/{chunk-ZJNYWNCB.cjs → chunk-O67V3HJR.cjs} +29 -29
- package/dist/{chunk-DUXLZPMJ.cjs → chunk-PQ2M7P2U.cjs} +7 -7
- package/dist/{chunk-SGVQO5J6.cjs → chunk-Q7GG3WC5.cjs} +26 -26
- package/dist/{chunk-TJQYX3QC.cjs → chunk-RGFT3P3L.cjs} +97 -97
- package/dist/{chunk-4FJZ7RJD.cjs → chunk-S2CA5WE4.cjs} +161 -93
- package/dist/{chunk-E2JCZU36.cjs → chunk-SB4VWA5V.cjs} +1044 -857
- package/dist/{chunk-XLSVQJBA.cjs → chunk-SFY4UYPY.cjs} +44 -44
- package/dist/{chunk-4RMLAHU2.cjs → chunk-TF7J6VXG.cjs} +20 -20
- package/dist/{chunk-CM35DLKS.cjs → chunk-UI3HROSI.cjs} +35 -35
- package/dist/{chunk-DA4VS6TS.cjs → chunk-UXFJXIUT.cjs} +4 -4
- package/dist/{chunk-N6YOOGCD.cjs → chunk-UYP3G6PB.cjs} +12 -12
- package/dist/{chunk-URIJ6YUG.cjs → chunk-V2ZFH42N.cjs} +22 -17
- package/dist/{chunk-77SD7RXY.cjs → chunk-WBANGORJ.cjs} +7 -7
- package/dist/{chunk-VYODTHMR.cjs → chunk-WMKNZI4G.cjs} +54 -54
- package/dist/{chunk-EX2GYIGW.cjs → chunk-YRE3O65E.cjs} +12 -12
- package/dist/{chunk-EJOXXJJB.cjs → chunk-YXKB5WRE.cjs} +95 -104
- package/dist/{cloud-tenants-IWQ5FFLY.cjs → cloud-tenants-QSFSO3PA.cjs} +20 -20
- package/dist/components/agent-identity.d.ts +8 -1
- package/dist/components/agent-identity.d.ts.map +1 -1
- package/dist/components/agent-identity.js +6 -1
- package/dist/components/calendar.cjs +4 -4
- package/dist/components/case-studies/index.cjs +32 -32
- package/dist/components/chat/chat-turn.d.ts +23 -0
- package/dist/components/chat/chat-turn.d.ts.map +1 -0
- package/dist/components/chat/chat-turn.js +30 -0
- package/dist/components/chat/index.cjs +18 -16
- package/dist/components/chat/index.d.ts +1 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +1 -0
- package/dist/components/contact/index.cjs +21 -21
- package/dist/components/docs/index.cjs +24 -24
- package/dist/components/embeds/index.cjs +21 -21
- package/dist/components/faq/faq-section.d.ts.map +1 -1
- package/dist/components/faq/faq-section.js +9 -4
- package/dist/components/faq/index.cjs +22 -22
- package/dist/components/features/auth/auth-benefits-panel.d.ts +3 -5
- package/dist/components/features/auth/auth-benefits-panel.d.ts.map +1 -1
- package/dist/components/features/auth/auth-benefits-panel.js +3 -19
- package/dist/components/features/conversation-card.d.ts +12 -4
- package/dist/components/features/conversation-card.d.ts.map +1 -1
- package/dist/components/features/conversation-card.js +30 -38
- package/dist/components/features/index.cjs +20 -20
- package/dist/components/features/walkthrough-video.d.ts +3 -0
- package/dist/components/features/walkthrough-video.d.ts.map +1 -1
- package/dist/components/features/walkthrough-video.js +36 -13
- package/dist/components/help-center-pages/index.cjs +127 -127
- package/dist/components/index.cjs +114 -98
- package/dist/components/meeting-scheduler/index.cjs +67 -67
- package/dist/components/navigation/index.cjs +23 -23
- package/dist/components/onboarding-guides/index.cjs +23 -23
- package/dist/components/platform/ToolBadge.d.ts.map +1 -1
- package/dist/components/platform/ToolBadge.js +4 -3
- package/dist/components/product-demo/index.cjs +8 -8
- package/dist/components/related-content/index.cjs +12 -12
- package/dist/components/tickets/index.cjs +26 -26
- package/dist/components/ui/app-window-frame.d.ts +7 -1
- package/dist/components/ui/app-window-frame.d.ts.map +1 -1
- package/dist/components/ui/app-window-frame.js +10 -2
- package/dist/components/ui/benefit-list.d.ts +42 -0
- package/dist/components/ui/benefit-list.d.ts.map +1 -0
- package/dist/components/ui/benefit-list.js +62 -0
- package/dist/components/ui/button/button.d.ts +1 -0
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +15 -2
- package/dist/components/ui/dropdown-button.d.ts +20 -2
- package/dist/components/ui/dropdown-button.d.ts.map +1 -1
- package/dist/components/ui/dropdown-button.js +57 -1
- package/dist/components/ui/file-manager/index.cjs +11 -11
- package/dist/components/ui/index.cjs +34 -20
- package/dist/components/ui/index.d.ts +3 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +3 -0
- package/dist/components/ui/leader-row.d.ts +17 -0
- package/dist/components/ui/leader-row.d.ts.map +1 -0
- package/dist/components/ui/leader-row.js +14 -0
- package/dist/components/ui/strip-card.d.ts +23 -0
- package/dist/components/ui/strip-card.d.ts.map +1 -0
- package/dist/components/ui/strip-card.js +56 -0
- package/dist/{devices-OUHGWA6Y.cjs → devices-C7XLWJFC.cjs} +21 -21
- package/dist/embed-shims/index.cjs +2 -2
- package/dist/embed-shims/next-image.cjs +2 -2
- package/dist/embed-shims/next-image.d.ts.map +1 -1
- package/dist/embed-shims/next-image.js +6 -2
- package/dist/{embeddable-chat-U3C4WWB7.cjs → embeddable-chat-6JKKFQEB.cjs} +89 -89
- package/dist/hooks/index.cjs +3 -3
- package/dist/index.cjs +46 -25
- package/dist/{knowledge-3ZASPWMF.cjs → knowledge-3QKWTOE7.cjs} +21 -21
- package/dist/{logs-E6Y54P6K.cjs → logs-JXD75NR4.cjs} +29 -29
- package/dist/{policies-LAV75B5B.cjs → policies-ZPN53PFQ.cjs} +24 -24
- package/dist/{remote-session-Z4YZFG5E.cjs → remote-session-DNFZ5OLY.cjs} +10 -10
- package/dist/{software-update-2CAL3AMJ.cjs → software-update-CRSIBS3K.cjs} +24 -24
- package/dist/{tickets-board-JOSYLOS7.cjs → tickets-board-CKZRB6YV.cjs} +12 -12
- package/dist/utils/demo-clock.d.ts +22 -0
- package/dist/utils/demo-clock.d.ts.map +1 -0
- package/dist/utils/demo-clock.js +40 -0
- package/dist/utils/identity-tint.d.ts +13 -0
- package/dist/utils/identity-tint.d.ts.map +1 -0
- package/dist/utils/identity-tint.js +14 -0
- package/dist/utils/index.cjs +54 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +2 -0
- package/dist/{video-file-player-6NWGXZ3W.cjs → video-file-player-ZH2ILAPO.cjs} +12 -12
- package/package.json +1 -1
- package/src/components/agent-identity.tsx +12 -1
- package/src/components/chat/chat-turn.tsx +52 -0
- package/src/components/chat/index.ts +1 -0
- package/src/components/faq/faq-section.tsx +4 -1
- package/src/components/features/auth/auth-benefits-panel.tsx +5 -32
- package/src/components/features/conversation-card.tsx +48 -46
- package/src/components/features/walkthrough-video.tsx +59 -18
- package/src/components/platform/ToolBadge.tsx +4 -3
- package/src/components/ui/app-window-frame.tsx +18 -2
- package/src/components/ui/benefit-list.tsx +97 -0
- package/src/components/ui/button/button.tsx +14 -1
- package/src/components/ui/dropdown-button.tsx +73 -1
- package/src/components/ui/index.ts +3 -0
- package/src/components/ui/leader-row.tsx +28 -0
- package/src/components/ui/strip-card.tsx +68 -0
- package/src/embed-shims/next-image.tsx +15 -4
- package/src/utils/demo-clock.ts +62 -0
- package/src/utils/identity-tint.ts +23 -0
- package/src/utils/index.ts +2 -0
- package/dist/chunk-UR4K2NSL.cjs +0 -69
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkB27QEHYRcjs = require('./chunk-B27QEHYR.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkC7GIHB3Vcjs = require('./chunk-C7GIHB3V.cjs');
|
|
@@ -25,12 +25,12 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkIFS4AH77cjs = require('./chunk-IFS4AH77.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunk7ZFCR7UYcjs = require('./chunk-7ZFCR7UY.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -39,10 +39,10 @@ var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
|
39
39
|
var _chunkFICJS5OAcjs = require('./chunk-FICJS5OA.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkHOTM4UM6cjs = require('./chunk-HOTM4UM6.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunk2QMBXGMQcjs = require('./chunk-2QMBXGMQ.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
@@ -65,10 +65,10 @@ function formatTicketRelativeTime(iso) {
|
|
|
65
65
|
if (diffMin < 60) return `${diffMin} min ago`;
|
|
66
66
|
const diffHours = Math.floor(diffMin / 60);
|
|
67
67
|
if (diffHours < 24) return diffHours === 1 ? "1 hour ago" : `${diffHours} hours ago`;
|
|
68
|
-
return
|
|
68
|
+
return _chunk7ZFCR7UYcjs.formatDateWithTimezone.call(void 0, date, null, "numeric");
|
|
69
69
|
}
|
|
70
70
|
function formatTicketFullTimestamp(iso) {
|
|
71
|
-
return
|
|
71
|
+
return _chunk7ZFCR7UYcjs.formatDateWithTimezone.call(void 0, iso, null, "numericDateTime");
|
|
72
72
|
}
|
|
73
73
|
function formatRelativeTime(timestamp) {
|
|
74
74
|
return formatRelativeTimeFrom(timestamp, /* @__PURE__ */ new Date());
|
|
@@ -94,7 +94,7 @@ function formatRelativeTimeFrom(timestamp, now) {
|
|
|
94
94
|
const weeks = Math.floor(diffInDays / 7);
|
|
95
95
|
return `${weeks}w ago`;
|
|
96
96
|
}
|
|
97
|
-
return
|
|
97
|
+
return _chunk7ZFCR7UYcjs.formatDateWithTimezone.call(void 0, targetTime, null, {
|
|
98
98
|
month: "short",
|
|
99
99
|
day: "numeric",
|
|
100
100
|
year: targetTime.getUTCFullYear() !== now.getUTCFullYear() ? "numeric" : void 0
|
|
@@ -106,7 +106,7 @@ function formatAbsoluteDate(timestamp, options = {}) {
|
|
|
106
106
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatAbsoluteDate:", timestamp);
|
|
107
107
|
return "Invalid date";
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return _chunk7ZFCR7UYcjs.formatDateWithTimezone.call(void 0, targetTime, _nullishCoalesce(options.timeZone, () => ( null)), {
|
|
110
110
|
year: "numeric",
|
|
111
111
|
month: "short",
|
|
112
112
|
day: "numeric",
|
|
@@ -119,7 +119,7 @@ function formatDateTime(timestamp, options = {}) {
|
|
|
119
119
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatDateTime:", timestamp);
|
|
120
120
|
return "Invalid date";
|
|
121
121
|
}
|
|
122
|
-
return
|
|
122
|
+
return _chunk7ZFCR7UYcjs.formatDateWithTimezone.call(void 0, targetTime, _nullishCoalesce(options.timeZone, () => ( null)), {
|
|
123
123
|
...ZONED_DATE_FIELDS_MEDIUM_DATETIME,
|
|
124
124
|
...options
|
|
125
125
|
});
|
|
@@ -281,13 +281,13 @@ function TicketStatusTag({
|
|
|
281
281
|
const config = getTicketStatusConfig(status);
|
|
282
282
|
const customStyle = color ? {
|
|
283
283
|
"--tag-bg": color,
|
|
284
|
-
"--tag-bg-hover":
|
|
285
|
-
"--tag-bg-active":
|
|
286
|
-
color:
|
|
284
|
+
"--tag-bg-hover": _chunkIFS4AH77cjs.deriveHoverColor.call(void 0, color),
|
|
285
|
+
"--tag-bg-active": _chunkIFS4AH77cjs.deriveActiveColor.call(void 0, color),
|
|
286
|
+
color: _chunkIFS4AH77cjs.getReadableTextColor.call(void 0, color)
|
|
287
287
|
} : void 0;
|
|
288
288
|
const customColorClasses = color ? "bg-[var(--tag-bg)] hover:bg-[var(--tag-bg-hover)] active:bg-[var(--tag-bg-active)]" : void 0;
|
|
289
289
|
const tag = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
290
|
-
|
|
290
|
+
_chunk7ZFCR7UYcjs.Tag,
|
|
291
291
|
{
|
|
292
292
|
label: _nullishCoalesce(label, () => ( config.label)),
|
|
293
293
|
variant: _nullishCoalesce(variant, () => ( config.variant)),
|
|
@@ -298,15 +298,15 @@ function TicketStatusTag({
|
|
|
298
298
|
);
|
|
299
299
|
if (disabled || !options || options.length === 0 || !onSelect) {
|
|
300
300
|
if (disabled && disabledReason) {
|
|
301
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
302
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
303
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
301
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB27QEHYRcjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB27QEHYRcjs.Tooltip, { children: [
|
|
302
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB27QEHYRcjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-fit shrink-0 cursor-not-allowed", children: tag }) }),
|
|
303
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB27QEHYRcjs.TooltipContent, { children: disabledReason })
|
|
304
304
|
] }) });
|
|
305
305
|
}
|
|
306
306
|
return tag;
|
|
307
307
|
}
|
|
308
308
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
309
|
-
|
|
309
|
+
_chunkB27QEHYRcjs.ActionsMenuDropdown,
|
|
310
310
|
{
|
|
311
311
|
align: "start",
|
|
312
312
|
groups: [
|
|
@@ -330,7 +330,7 @@ function TicketStatusTag({
|
|
|
330
330
|
className: _chunk3ATAYP36cjs.cn.call(void 0,
|
|
331
331
|
// Reuse the tag's variant styling, but split into a label section and a
|
|
332
332
|
// separated chevron section (the common dropdown-button seam).
|
|
333
|
-
|
|
333
|
+
_chunk7ZFCR7UYcjs.tagVariants.call(void 0, { variant: _nullishCoalesce(variant, () => ( config.variant)) }),
|
|
334
334
|
"w-fit shrink-0 items-stretch justify-start gap-0 overflow-hidden p-0",
|
|
335
335
|
"disabled:cursor-not-allowed disabled:opacity-60",
|
|
336
336
|
// Custom color: bg/hover/active from the CSS vars set above.
|
|
@@ -683,7 +683,7 @@ var ApprovalBatchMessage = _react.forwardRef.call(void 0,
|
|
|
683
683
|
};
|
|
684
684
|
const actionButtons = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
685
685
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
686
|
-
|
|
686
|
+
_chunk2QMBXGMQcjs.Button,
|
|
687
687
|
{
|
|
688
688
|
size: "small-legacy",
|
|
689
689
|
variant: "accent",
|
|
@@ -698,7 +698,7 @@ var ApprovalBatchMessage = _react.forwardRef.call(void 0,
|
|
|
698
698
|
}
|
|
699
699
|
),
|
|
700
700
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
701
|
-
|
|
701
|
+
_chunk2QMBXGMQcjs.Button,
|
|
702
702
|
{
|
|
703
703
|
size: "small-legacy",
|
|
704
704
|
variant: "outline",
|
|
@@ -774,10 +774,10 @@ ApprovalBatchMessage.displayName = "ApprovalBatchMessage";
|
|
|
774
774
|
|
|
775
775
|
|
|
776
776
|
var MARK_IMAGE_SIZES = "96px";
|
|
777
|
-
function AgentMark({ agent, className = "", color =
|
|
778
|
-
const identity =
|
|
777
|
+
function AgentMark({ agent, className = "", color = _chunkIFS4AH77cjs.AGENT_GLYPH_COLOR }) {
|
|
778
|
+
const identity = _chunkIFS4AH77cjs.useAgentIdentityIcon.call(void 0, agent);
|
|
779
779
|
if (_optionalChain([identity, 'optionalAccess', _15 => _15.url])) {
|
|
780
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: _chunk3ATAYP36cjs.cn.call(void 0, "relative inline-block overflow-hidden rounded-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
780
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: _chunk3ATAYP36cjs.cn.call(void 0, "relative inline-block overflow-hidden rounded-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHOTM4UM6cjs.next_image_default, { src: identity.url, alt: "", fill: true, sizes: MARK_IMAGE_SIZES, className: _chunkIFS4AH77cjs.AGENT_PICTURE_CLASS }) });
|
|
781
781
|
}
|
|
782
782
|
if (_optionalChain([identity, 'optionalAccess', _16 => _16.name])) {
|
|
783
783
|
return _react.createElement.call(void 0, _chunkFICJS5OAcjs.resolveIcon.call(void 0, identity.name), {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7ZFCR7UYcjs = require('./chunk-7ZFCR7UY.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
@@ -44,7 +44,7 @@ function AvatarStack({
|
|
|
44
44
|
"aria-label": `${label}: ${names}${unnamed > 0 ? ` and ${unnamed} more` : ""}`,
|
|
45
45
|
children: [
|
|
46
46
|
visible.map((person, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
47
|
-
|
|
47
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
48
48
|
{
|
|
49
49
|
variant: "round",
|
|
50
50
|
size,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkWBANGORJcjs = require('./chunk-WBANGORJ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk3ATAYP36cjs = require('./chunk-3ATAYP36.cjs');
|
|
@@ -116,7 +116,7 @@ function PersistentPaginationWrapper({
|
|
|
116
116
|
},
|
|
117
117
|
"aria-hidden": isPaginationDisabled,
|
|
118
118
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
119
|
-
|
|
119
|
+
_chunkWBANGORJcjs.UnifiedPagination,
|
|
120
120
|
{
|
|
121
121
|
currentPage: displayCurrentPage,
|
|
122
122
|
totalPages: displayTotalPages,
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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
|
+
|
|
3
|
+
// src/embed-shims/next-image.tsx
|
|
4
|
+
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
5
|
+
|
|
6
|
+
// src/utils/fetch-priority.ts
|
|
7
|
+
|
|
8
|
+
var REACT_MAJOR = parseInt((_react2.default.version || "0").split(".")[0], 10);
|
|
9
|
+
var USE_CAMEL_CASE_FETCH_PRIORITY = REACT_MAJOR >= 19;
|
|
10
|
+
function fetchPriorityProp(priority) {
|
|
11
|
+
const value = priority === void 0 ? "auto" : typeof priority === "boolean" ? priority ? "high" : "low" : priority;
|
|
12
|
+
return USE_CAMEL_CASE_FETCH_PRIORITY ? { fetchPriority: value } : { fetchpriority: value };
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// src/embed-shims/next-image.tsx
|
|
16
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
17
|
+
var impl = null;
|
|
18
|
+
function registerImage(component) {
|
|
19
|
+
impl = component;
|
|
20
|
+
}
|
|
21
|
+
var resizer = null;
|
|
22
|
+
function registerImageResizer(fn) {
|
|
23
|
+
resizer = fn;
|
|
24
|
+
}
|
|
25
|
+
function resizedImageUrl(src, widthPx) {
|
|
26
|
+
return resizer ? resizer(src, widthPx) : src;
|
|
27
|
+
}
|
|
28
|
+
var Image = _react.forwardRef.call(void 0, function NextImageShim({ optimizedWidth, ...given }, ref) {
|
|
29
|
+
const props = optimizedWidth && resizer && typeof given.src === "string" ? { ...given, src: resizer(given.src, optimizedWidth), unoptimized: true } : given;
|
|
30
|
+
const fetchPriority = _nullishCoalesce(props.fetchPriority, () => ( (props.priority ? "high" : void 0)));
|
|
31
|
+
if (impl) {
|
|
32
|
+
const Real = impl;
|
|
33
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Real, { ref, ...props, fetchPriority });
|
|
34
|
+
}
|
|
35
|
+
const {
|
|
36
|
+
src,
|
|
37
|
+
alt,
|
|
38
|
+
width,
|
|
39
|
+
height,
|
|
40
|
+
fill,
|
|
41
|
+
sizes: _sizes,
|
|
42
|
+
quality: _quality,
|
|
43
|
+
priority: _priority,
|
|
44
|
+
placeholder: _placeholder,
|
|
45
|
+
blurDataURL: _blurDataURL,
|
|
46
|
+
unoptimized: _unoptimized,
|
|
47
|
+
onLoadingComplete,
|
|
48
|
+
loader: _loader,
|
|
49
|
+
fetchPriority: _fetchPriority,
|
|
50
|
+
style,
|
|
51
|
+
...rest
|
|
52
|
+
} = props;
|
|
53
|
+
const srcStr = typeof src === "string" ? src : _optionalChain([src, 'optionalAccess', _ => _.src]);
|
|
54
|
+
const finalStyle = fill ? {
|
|
55
|
+
position: "absolute",
|
|
56
|
+
inset: 0,
|
|
57
|
+
width: "100%",
|
|
58
|
+
height: "100%",
|
|
59
|
+
...style
|
|
60
|
+
} : style;
|
|
61
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
62
|
+
"img",
|
|
63
|
+
{
|
|
64
|
+
ref,
|
|
65
|
+
src: srcStr,
|
|
66
|
+
alt: _nullishCoalesce(alt, () => ( "")),
|
|
67
|
+
width: fill ? void 0 : width,
|
|
68
|
+
height: fill ? void 0 : height,
|
|
69
|
+
style: finalStyle,
|
|
70
|
+
onLoad: onLoadingComplete ? (e) => onLoadingComplete(e.currentTarget) : void 0,
|
|
71
|
+
...rest,
|
|
72
|
+
...fetchPriority ? fetchPriorityProp(fetchPriority) : {}
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
});
|
|
76
|
+
var next_image_default = Image;
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
exports.fetchPriorityProp = fetchPriorityProp; exports.registerImage = registerImage; exports.registerImageResizer = registerImageResizer; exports.resizedImageUrl = resizedImageUrl; exports.next_image_default = next_image_default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
|
|
4
|
+
var _chunkHOTM4UM6cjs = require('./chunk-HOTM4UM6.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkUJ7AXHRZcjs = require('./chunk-UJ7AXHRZ.cjs');
|
|
@@ -83,7 +83,7 @@ function useImageEdgeColor(imageUrl, fallback = "#000000") {
|
|
|
83
83
|
setColor(fallback);
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
const sampleUrl =
|
|
86
|
+
const sampleUrl = _chunkHOTM4UM6cjs.resizedImageUrl.call(void 0, imageUrl, EDGE_SAMPLE_WIDTH_PX);
|
|
87
87
|
let triedOriginal = sampleUrl === imageUrl;
|
|
88
88
|
img.onerror = () => {
|
|
89
89
|
if (cancelled) return;
|
|
@@ -336,6 +336,19 @@ function hslToRgb(h, s, l) {
|
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
+
// src/utils/identity-tint.ts
|
|
340
|
+
function identityTint(accent) {
|
|
341
|
+
if (!accent) return void 0;
|
|
342
|
+
const wash = `color-mix(in srgb, ${accent} 2%, transparent)`;
|
|
343
|
+
return {
|
|
344
|
+
borderColor: `color-mix(in srgb, ${accent} 30%, transparent)`,
|
|
345
|
+
backgroundImage: [
|
|
346
|
+
`radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, ${accent} 4%, transparent), transparent 70%)`,
|
|
347
|
+
`linear-gradient(${wash}, ${wash})`
|
|
348
|
+
].join(", ")
|
|
349
|
+
};
|
|
350
|
+
}
|
|
351
|
+
|
|
339
352
|
// src/components/agent-identity.tsx
|
|
340
353
|
var _react = require('react');
|
|
341
354
|
var _jsxruntime = require('react/jsx-runtime');
|
|
@@ -387,6 +400,11 @@ function useAgentAccents() {
|
|
|
387
400
|
[identities]
|
|
388
401
|
);
|
|
389
402
|
}
|
|
403
|
+
function useAgentTint(slug) {
|
|
404
|
+
return identityTint(useAgentAccents()(slug));
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
|
|
390
408
|
|
|
391
409
|
|
|
392
410
|
|
|
@@ -414,4 +432,4 @@ function useAgentAccents() {
|
|
|
414
432
|
|
|
415
433
|
|
|
416
434
|
|
|
417
|
-
exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getCurrentPlatform = getCurrentPlatform; exports.switchPlatformTheme = switchPlatformTheme; exports.getSemanticColor = getSemanticColor; exports.getPlatformConfig = getPlatformConfig; exports.usePlatformColors = usePlatformColors; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.AGENT_GLYPH_COLOR = AGENT_GLYPH_COLOR; exports.AGENT_PICTURE_CLASS = AGENT_PICTURE_CLASS; exports.AgentIdentityProvider = AgentIdentityProvider; exports.useAgentIdentityIcon = useAgentIdentityIcon; exports.useAgentAccents = useAgentAccents;
|
|
435
|
+
exports.DESIGN_PALETTE = DESIGN_PALETTE; exports.getContrastRatio = getContrastRatio; exports.pickReadableTextColor = pickReadableTextColor; exports.extractDominantColor = extractDominantColor; exports.getBestContrastColor = getBestContrastColor; exports.analyzeImageColor = analyzeImageColor; exports.extractImageEdgeColorAsync = extractImageEdgeColorAsync; exports.getCurrentPlatform = getCurrentPlatform; exports.switchPlatformTheme = switchPlatformTheme; exports.getSemanticColor = getSemanticColor; exports.getPlatformConfig = getPlatformConfig; exports.usePlatformColors = usePlatformColors; exports.getReadableTextColor = getReadableTextColor; exports.HEX_PATTERN = HEX_PATTERN; exports.hexToRgb = hexToRgb2; exports.rgbToHex = rgbToHex; exports.deriveHoverColor = deriveHoverColor; exports.deriveActiveColor = deriveActiveColor; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.identityTint = identityTint; exports.AGENT_GLYPH_COLOR = AGENT_GLYPH_COLOR; exports.AGENT_PICTURE_CLASS = AGENT_PICTURE_CLASS; exports.AgentIdentityProvider = AgentIdentityProvider; exports.useAgentIdentityIcon = useAgentIdentityIcon; exports.useAgentAccents = useAgentAccents; exports.useAgentTint = useAgentTint;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYXKB5WREcjs = require('./chunk-YXKB5WRE.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2QMBXGMQcjs = require('./chunk-2QMBXGMQ.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -31,7 +31,7 @@ function PaginationControl({
|
|
|
31
31
|
const ariaCurrent = current ? "page" : void 0;
|
|
32
32
|
if (!getPageHref || disabled) {
|
|
33
33
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34
|
-
|
|
34
|
+
_chunk2QMBXGMQcjs.Button,
|
|
35
35
|
{
|
|
36
36
|
variant,
|
|
37
37
|
size: "icon",
|
|
@@ -45,11 +45,11 @@ function PaginationControl({
|
|
|
45
45
|
);
|
|
46
46
|
}
|
|
47
47
|
const handleClick = (event) => {
|
|
48
|
-
if (
|
|
48
|
+
if (_chunkYXKB5WREcjs.isModifierClick.call(void 0, event)) return;
|
|
49
49
|
event.preventDefault();
|
|
50
50
|
onPageChange(page);
|
|
51
51
|
};
|
|
52
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant, size: "icon", className, asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
53
53
|
_chunkV45KLJQPcjs.next_link_default,
|
|
54
54
|
{
|
|
55
55
|
href: getPageHref(page),
|
|
@@ -197,7 +197,7 @@ var PaginationEllipsis = _react.forwardRef.call(void 0,
|
|
|
197
197
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
198
198
|
var PaginationPrevious = _react.forwardRef.call(void 0,
|
|
199
199
|
({ className, ...props }, ref) => {
|
|
200
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
200
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2QMBXGMQcjs.Button, { ref, variant: "outline", size: "icon", className: _chunk3ATAYP36cjs.cn.call(void 0, "h-10 w-10", className), ...props, children: [
|
|
201
201
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronLeft, { className: "h-4 w-4" }),
|
|
202
202
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Previous page" })
|
|
203
203
|
] });
|
|
@@ -206,7 +206,7 @@ var PaginationPrevious = _react.forwardRef.call(void 0,
|
|
|
206
206
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
207
207
|
var PaginationNext = _react.forwardRef.call(void 0,
|
|
208
208
|
({ className, ...props }, ref) => {
|
|
209
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
209
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2QMBXGMQcjs.Button, { ref, variant: "outline", size: "icon", className: _chunk3ATAYP36cjs.cn.call(void 0, "h-10 w-10", className), ...props, children: [
|
|
210
210
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronRight, { className: "h-4 w-4" }),
|
|
211
211
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: "Next page" })
|
|
212
212
|
] });
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
|
|
4
|
+
var _chunkV2ZFH42Ncjs = require('./chunk-V2ZFH42N.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSB4VWA5Vcjs = require('./chunk-SB4VWA5V.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkDSVNFRY5cjs = require('./chunk-DSVNFRY5.cjs');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
var _chunk7DNL734Scjs = require('./chunk-7DNL734S.cjs');
|
|
@@ -34,8 +34,8 @@ function FaqDocumentPage({
|
|
|
34
34
|
label: _nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _ => _.label]), () => ( "Back to home")),
|
|
35
35
|
onClick: () => router.push(_nullishCoalesce(_optionalChain([backButton, 'optionalAccess', _2 => _2.href]), () => ( "/")))
|
|
36
36
|
};
|
|
37
|
-
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
-
|
|
37
|
+
const inner = /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkDSVNFRY5cjs.PageLayout, { title, subtitle, backButton: backCfg, titleSize: "h1", titleWrap: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
38
|
+
_chunkV2ZFH42Ncjs.FaqSection,
|
|
39
39
|
{
|
|
40
40
|
initialFaqs,
|
|
41
41
|
heading: null,
|
|
@@ -49,7 +49,7 @@ function FaqDocumentPage({
|
|
|
49
49
|
ask
|
|
50
50
|
}
|
|
51
51
|
) });
|
|
52
|
-
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
52
|
+
return shell ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSB4VWA5Vcjs.PageShell, { children: inner }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "page-shell-content", children: inner });
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
|
|
@@ -12,13 +12,13 @@ var _chunkAAFW4STCcjs = require('./chunk-AAFW4STC.cjs');
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkGABDE3FMcjs = require('./chunk-GABDE3FM.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkB27QEHYRcjs = require('./chunk-B27QEHYR.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunk4WI2CEC2cjs = require('./chunk-4WI2CEC2.cjs');
|
|
@@ -69,11 +69,11 @@ var _chunkZ7OPT4PNcjs = require('./chunk-Z7OPT4PN.cjs');
|
|
|
69
69
|
var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
var
|
|
72
|
+
var _chunkIFS4AH77cjs = require('./chunk-IFS4AH77.cjs');
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunk7ZFCR7UYcjs = require('./chunk-7ZFCR7UY.cjs');
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
var _chunkFICJS5OAcjs = require('./chunk-FICJS5OA.cjs');
|
|
@@ -82,7 +82,7 @@ var _chunkFICJS5OAcjs = require('./chunk-FICJS5OA.cjs');
|
|
|
82
82
|
var _chunkVOX4E6AXcjs = require('./chunk-VOX4E6AX.cjs');
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
var
|
|
85
|
+
var _chunk2QMBXGMQcjs = require('./chunk-2QMBXGMQ.cjs');
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -142,9 +142,9 @@ function TouchFriendlyTooltip({ content, side = "left", children }) {
|
|
|
142
142
|
return next;
|
|
143
143
|
});
|
|
144
144
|
};
|
|
145
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
145
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB27QEHYRcjs.TooltipProvider, { delayDuration: 150, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB27QEHYRcjs.Tooltip, { open, onOpenChange: setOpen, children: [
|
|
146
146
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
147
|
-
|
|
147
|
+
_chunkB27QEHYRcjs.TooltipTrigger,
|
|
148
148
|
{
|
|
149
149
|
asChild: true,
|
|
150
150
|
onPointerDown: (e) => {
|
|
@@ -162,7 +162,7 @@ function TouchFriendlyTooltip({ content, side = "left", children }) {
|
|
|
162
162
|
children
|
|
163
163
|
}
|
|
164
164
|
),
|
|
165
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
165
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB27QEHYRcjs.TooltipContent, { side, className: "max-w-xs", children: content })
|
|
166
166
|
] }) });
|
|
167
167
|
}
|
|
168
168
|
|
|
@@ -177,12 +177,12 @@ function BoardColumnHeader({
|
|
|
177
177
|
}) {
|
|
178
178
|
const count = _nullishCoalesce(column.total, () => ( column.tickets.length));
|
|
179
179
|
const tagStatus = _nullishCoalesce(column.statusKey, () => ( column.id));
|
|
180
|
-
const useStatusVariant =
|
|
180
|
+
const useStatusVariant = _chunkGABDE3FMcjs.resolveTicketStatus.call(void 0, tagStatus) !== null;
|
|
181
181
|
const actionClass = "h-8 w-8 p-0 content-md:h-8 content-md:w-8";
|
|
182
182
|
if (collapsed) {
|
|
183
183
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-full flex-col items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
184
184
|
onToggleCollapse && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
185
|
-
|
|
185
|
+
_chunk2QMBXGMQcjs.Button,
|
|
186
186
|
{
|
|
187
187
|
variant: "transparent",
|
|
188
188
|
size: "icon",
|
|
@@ -193,7 +193,7 @@ function BoardColumnHeader({
|
|
|
193
193
|
}
|
|
194
194
|
),
|
|
195
195
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
196
|
-
|
|
196
|
+
_chunkGABDE3FMcjs.TicketStatusTag,
|
|
197
197
|
{
|
|
198
198
|
status: tagStatus,
|
|
199
199
|
label: column.label,
|
|
@@ -206,13 +206,13 @@ function BoardColumnHeader({
|
|
|
206
206
|
}
|
|
207
207
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
208
208
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
209
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
209
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGABDE3FMcjs.TicketStatusTag, { status: tagStatus, label: column.label, color: useStatusVariant ? void 0 : column.color }),
|
|
210
210
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h5", style: useStatusVariant ? void 0 : { color: column.color }, children: count })
|
|
211
211
|
] }),
|
|
212
212
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
213
|
-
column.tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TouchFriendlyTooltip, { content: column.tooltip, side: "bottom", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
213
|
+
column.tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TouchFriendlyTooltip, { content: column.tooltip, side: "bottom", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2QMBXGMQcjs.Button, { variant: "transparent", size: "icon", className: actionClass, "aria-label": column.tooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRHC2FRVEcjs.InfoCircleIcon, { className: "h-6 w-6 text-ods-text-secondary" }) }) }),
|
|
214
214
|
onToggleCollapse && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
215
|
-
|
|
215
|
+
_chunk2QMBXGMQcjs.Button,
|
|
216
216
|
{
|
|
217
217
|
variant: "transparent",
|
|
218
218
|
size: "icon",
|
|
@@ -223,7 +223,7 @@ function BoardColumnHeader({
|
|
|
223
223
|
}
|
|
224
224
|
),
|
|
225
225
|
onArchive && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
226
|
-
|
|
226
|
+
_chunk2QMBXGMQcjs.Button,
|
|
227
227
|
{
|
|
228
228
|
variant: "transparent",
|
|
229
229
|
size: "icon",
|
|
@@ -234,7 +234,7 @@ function BoardColumnHeader({
|
|
|
234
234
|
}
|
|
235
235
|
),
|
|
236
236
|
onAddTicket && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
237
|
-
|
|
237
|
+
_chunk2QMBXGMQcjs.Button,
|
|
238
238
|
{
|
|
239
239
|
variant: "transparent",
|
|
240
240
|
size: "icon",
|
|
@@ -264,7 +264,7 @@ function tintOnDark(hex) {
|
|
|
264
264
|
|
|
265
265
|
function BoardTicketApproval({ pendingApproval, onApprove, onReject }) {
|
|
266
266
|
const [expanded, setExpanded] = _react.useState.call(void 0, false);
|
|
267
|
-
const { innerRef, containerStyle } =
|
|
267
|
+
const { innerRef, containerStyle } = _chunkGABDE3FMcjs.useCollapsible.call(void 0, { expanded });
|
|
268
268
|
const isAdmin = pendingApproval.approvalType === "ADMIN";
|
|
269
269
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "pointer-events-auto flex flex-col", children: [
|
|
270
270
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -293,7 +293,7 @@ function BoardTicketApproval({ pendingApproval, onApprove, onReject }) {
|
|
|
293
293
|
}
|
|
294
294
|
),
|
|
295
295
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, className: "pt-[var(--spacing-system-xs)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
296
|
-
|
|
296
|
+
_chunkGABDE3FMcjs.ApprovalBatchMessage,
|
|
297
297
|
{
|
|
298
298
|
className: "mb-0",
|
|
299
299
|
data: {
|
|
@@ -467,7 +467,7 @@ function TicketCardBody({
|
|
|
467
467
|
onLinkClick
|
|
468
468
|
}) {
|
|
469
469
|
const showNewMessage = !!ticket.hasNewMessage && !!columnColor;
|
|
470
|
-
const newMessageTextColor = columnColor ?
|
|
470
|
+
const newMessageTextColor = columnColor ? _chunkIFS4AH77cjs.getReadableTextColor.call(void 0, columnColor) : void 0;
|
|
471
471
|
const showDeviceRow = !!(_optionalChain([ticket, 'access', _12 => _12.deviceHostnames, 'optionalAccess', _13 => _13.length]) || ticket.organizationName);
|
|
472
472
|
const deviceText = [_optionalChain([ticket, 'access', _14 => _14.deviceHostnames, 'optionalAccess', _15 => _15.join, 'call', _16 => _16(", ")]), ticket.organizationName].filter(Boolean).join(", ");
|
|
473
473
|
const hasRightSection = !!(ticket.priority || ticket.agent || _optionalChain([ticket, 'access', _17 => _17.assignees, 'optionalAccess', _18 => _18.length]) || renderAssignSlot);
|
|
@@ -485,7 +485,7 @@ function TicketCardBody({
|
|
|
485
485
|
role: "img",
|
|
486
486
|
"aria-label": `Owned by ${ticket.agent === "fae" ? "Fae" : "Mingo"}`,
|
|
487
487
|
className: "flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-full border border-ods-border bg-ods-bg",
|
|
488
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
488
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGABDE3FMcjs.AgentMark, { agent: ticket.agent, className: ticket.agent === "fae" ? "size-full" : "size-5" })
|
|
489
489
|
}
|
|
490
490
|
),
|
|
491
491
|
renderAssignSlot ? renderAssignSlot(ticket) : _optionalChain([ticket, 'access', _19 => _19.assignees, 'optionalAccess', _20 => _20.length]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex -space-x-2", children: [
|
|
@@ -498,7 +498,7 @@ function TicketCardBody({
|
|
|
498
498
|
},
|
|
499
499
|
a.id
|
|
500
500
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
501
|
-
|
|
501
|
+
_chunk7ZFCR7UYcjs.SquareAvatar,
|
|
502
502
|
{
|
|
503
503
|
src: a.avatarUrl,
|
|
504
504
|
alt: _nullishCoalesce(_nullishCoalesce(a.name, () => ( a.initials)), () => ( a.id)),
|
|
@@ -515,8 +515,8 @@ function TicketCardBody({
|
|
|
515
515
|
] })
|
|
516
516
|
] }) : null
|
|
517
517
|
] }) : null;
|
|
518
|
-
const timestampLabel = ticket.createdAt ?
|
|
519
|
-
const tooltipLabel = ticket.createdAt ?
|
|
518
|
+
const timestampLabel = ticket.createdAt ? _chunkGABDE3FMcjs.formatTicketRelativeTime.call(void 0, ticket.createdAt) : null;
|
|
519
|
+
const tooltipLabel = ticket.createdAt ? _chunkGABDE3FMcjs.formatTicketFullTimestamp.call(void 0, ticket.createdAt) : null;
|
|
520
520
|
const metaLabel = [ticket.ticketNumber || null, timestampLabel].filter(Boolean).join(" \u2022 ");
|
|
521
521
|
const metaClass = "truncate text-ods-text-secondary text-h6";
|
|
522
522
|
const meta = href ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -543,9 +543,9 @@ function TicketCardBody({
|
|
|
543
543
|
rightSection
|
|
544
544
|
] }),
|
|
545
545
|
_optionalChain([ticket, 'access', _21 => _21.tags, 'optionalAccess', _22 => _22.length]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketTagRow, { tags: ticket.tags }) : null,
|
|
546
|
-
metaLabel && (tooltipLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
547
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
548
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
546
|
+
metaLabel && (tooltipLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB27QEHYRcjs.TooltipProvider, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkB27QEHYRcjs.Tooltip, { children: [
|
|
547
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB27QEHYRcjs.TooltipTrigger, { asChild: true, children: meta }),
|
|
548
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkB27QEHYRcjs.TooltipContent, { children: tooltipLabel })
|
|
549
549
|
] }) }) : meta),
|
|
550
550
|
ticket.escalatedByUser && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xxs)] text-ods-open-yellow text-h6", children: [
|
|
551
551
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4MGDY2AAcjs.UserCheckIcon, { className: "size-4 shrink-0" }),
|
|
@@ -565,7 +565,7 @@ function TicketCardBody({
|
|
|
565
565
|
}
|
|
566
566
|
),
|
|
567
567
|
showNewMessage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
568
|
-
|
|
568
|
+
_chunk7ZFCR7UYcjs.Tag,
|
|
569
569
|
{
|
|
570
570
|
label: "New Message",
|
|
571
571
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJSIUVERGcjs.MessagesIcon, { size: 16, color: newMessageTextColor }),
|
|
@@ -785,8 +785,8 @@ function TicketTagRow({ tags }) {
|
|
|
785
785
|
const visible = tags.slice(0, MAX_VISIBLE_TAGS);
|
|
786
786
|
const hidden = tags.length - visible.length;
|
|
787
787
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-8 flex-wrap items-start gap-[var(--spacing-system-xxs)] overflow-clip", children: [
|
|
788
|
-
visible.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
789
|
-
hidden > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
788
|
+
visible.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { variant: "outline", label: tag }, tag)),
|
|
789
|
+
hidden > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7ZFCR7UYcjs.Tag, { variant: "outline", label: `+${hidden}` })
|
|
790
790
|
] });
|
|
791
791
|
}
|
|
792
792
|
|