@flamingo-stack/openframe-frontend-core 0.0.811 → 0.0.813
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/case-study-card-NLT2JVI7.cjs +23 -0
- package/dist/{chunk-5QLDHPPU.cjs → chunk-25HBH4J6.cjs} +15 -15
- package/dist/{chunk-TKK66KHU.cjs → chunk-2WD7XGWA.cjs} +6 -6
- package/dist/{chunk-LKQ33CMY.cjs → chunk-2XCORRJV.cjs} +3 -3
- package/dist/{chunk-JTIGKLKJ.cjs → chunk-2XLPRW7V.cjs} +23 -23
- package/dist/{chunk-4WIJI4AK.cjs → chunk-3TOWCFIK.cjs} +20 -26
- package/dist/{chunk-KUXHXLJQ.cjs → chunk-3V5JWG27.cjs} +5 -5
- package/dist/{chunk-ZZO3FGPM.cjs → chunk-467T3LCG.cjs} +63 -63
- package/dist/{chunk-Q7QYAINS.cjs → chunk-4PMD3JUC.cjs} +19 -19
- package/dist/{chunk-PCVY63WQ.cjs → chunk-5M5JVVSL.cjs} +13 -13
- package/dist/{chunk-CB77J5L7.cjs → chunk-5RBL7A2Y.cjs} +544 -544
- package/dist/{chunk-YR74H7Z3.cjs → chunk-5SZ4ILU3.cjs} +7 -7
- package/dist/{chunk-J6C7F63P.cjs → chunk-5V3CNLCB.cjs} +199 -199
- package/dist/{chunk-7JWFMAQB.cjs → chunk-63A4GZMB.cjs} +18 -2
- package/dist/{chunk-ZD6SZLO2.cjs → chunk-6CZVQ72C.cjs} +3 -3
- package/dist/{chunk-R55KNVPR.cjs → chunk-7BJ22OH2.cjs} +171 -171
- package/dist/{chunk-GU3GJ5DH.cjs → chunk-7O7EX7HQ.cjs} +45 -45
- package/dist/{chunk-U2MHQBL4.cjs → chunk-BOS7OIC4.cjs} +30 -30
- package/dist/{chunk-SFUNXMY3.cjs → chunk-EHANO6UE.cjs} +16 -16
- package/dist/{chunk-XLEWM5X5.cjs → chunk-EJQRX6S5.cjs} +62 -62
- package/dist/{chunk-ACCZCRXT.cjs → chunk-F4ZJRMMM.cjs} +20 -20
- package/dist/{chunk-AHBTZ7DN.cjs → chunk-FCZAUK4D.cjs} +52 -50
- package/dist/{chunk-MDBOYMCW.cjs → chunk-FTGXZHLO.cjs} +31 -31
- package/dist/{chunk-CPP2APON.cjs → chunk-G2AN67DP.cjs} +110 -110
- package/dist/{chunk-UP3TLY2V.cjs → chunk-GAR2IIU6.cjs} +349 -349
- package/dist/{chunk-IQLXO6EI.cjs → chunk-GNGXHIBC.cjs} +119 -119
- package/dist/{chunk-FK2WFU7R.cjs → chunk-GTOT4ZQV.cjs} +37 -37
- package/dist/{chunk-KVDUWXVZ.cjs → chunk-HM7VCQSX.cjs} +10 -10
- package/dist/{chunk-243TS7YL.cjs → chunk-IJCSQFLD.cjs} +209 -209
- package/dist/{chunk-CC3Q3MQG.cjs → chunk-IKB6AZPV.cjs} +8 -8
- package/dist/{chunk-66J7ZSI5.cjs → chunk-JFA3VHXC.cjs} +51 -51
- package/dist/{chunk-PMOMZSCX.cjs → chunk-JOKOQOLJ.cjs} +22 -22
- package/dist/{chunk-WX5WDSKV.cjs → chunk-MBU45QUB.cjs} +2050 -2045
- package/dist/{chunk-CJ7W2SY4.cjs → chunk-MUH7X7ZA.cjs} +13 -13
- package/dist/{chunk-GD47ZGOU.cjs → chunk-N3MBQRCQ.cjs} +3 -3
- package/dist/{chunk-ERLMCSGF.cjs → chunk-NONMZ5WJ.cjs} +5 -5
- package/dist/{chunk-ZW25QUJK.cjs → chunk-OBQ5WUNG.cjs} +67 -67
- package/dist/{chunk-6GT3ZL27.cjs → chunk-OGHG6REG.cjs} +44 -44
- package/dist/{chunk-JNWJB4Z5.cjs → chunk-PAI4A3UM.cjs} +60 -60
- package/dist/{chunk-O4MEG2ZS.cjs → chunk-PXR27MXW.cjs} +45 -45
- package/dist/{chunk-XYZBN6D7.cjs → chunk-QDDBOCG3.cjs} +2 -2
- package/dist/{chunk-VXXOUM2K.cjs → chunk-QOAA7ZHB.cjs} +6 -2
- package/dist/{chunk-OQDPZOGC.cjs → chunk-QQT23JJ7.cjs} +4 -4
- package/dist/{chunk-STLJCAIZ.cjs → chunk-RD66AGUI.cjs} +6 -6
- package/dist/{chunk-NL3G642U.cjs → chunk-S3QXLD4X.cjs} +10 -10
- package/dist/{chunk-7RM4NM2C.cjs → chunk-SWF6TNZ3.cjs} +14 -14
- package/dist/{chunk-O32RLIN4.cjs → chunk-TOBROYSJ.cjs} +4 -4
- package/dist/{chunk-P4B6PVSG.cjs → chunk-USUVHAQ7.cjs} +7 -7
- package/dist/{chunk-VXMPVDOS.cjs → chunk-WKODIG3L.cjs} +46 -46
- package/dist/{chunk-CLU2KJFB.cjs → chunk-XWCZSEW7.cjs} +3 -3
- package/dist/{chunk-7Y6M4FW4.cjs → chunk-Y6MJMPHV.cjs} +126 -126
- package/dist/{chunk-NZSWROGM.cjs → chunk-ZRDVFADQ.cjs} +61 -61
- package/dist/{cloud-tenants-XGGQG7SO.cjs → cloud-tenants-ODZVCP5X.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/chat/utils/icon-registry.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-registry.js +4 -0
- package/dist/components/contact/index.cjs +33 -33
- package/dist/components/docs/index.cjs +36 -36
- package/dist/components/embeds/index.cjs +33 -33
- package/dist/components/faq/index.cjs +34 -34
- package/dist/components/features/devices/devices-table-columns.d.ts.map +1 -1
- package/dist/components/features/devices/devices-table-columns.js +1 -1
- package/dist/components/features/index.cjs +32 -32
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.d.ts.map +1 -1
- package/dist/components/features/scripts/schedule-form/schedule-script-picker-card.js +4 -2
- package/dist/components/features/select-button.js +1 -1
- package/dist/components/help-center-pages/index.cjs +165 -165
- package/dist/components/index.cjs +220 -218
- package/dist/components/meeting-scheduler/index.cjs +238 -192
- package/dist/components/meeting-scheduler/index.d.ts +30 -1
- package/dist/components/meeting-scheduler/index.d.ts.map +1 -1
- package/dist/components/meeting-scheduler/index.js +43 -3
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/onboarding-guides/index.cjs +35 -35
- package/dist/components/platform/ScriptArguments.d.ts +2 -0
- package/dist/components/platform/ScriptArguments.d.ts.map +1 -1
- package/dist/components/platform/ScriptArguments.js +3 -2
- package/dist/components/product-demo/index.cjs +45 -45
- package/dist/components/related-content/index.cjs +17 -17
- package/dist/components/tickets/index.cjs +39 -39
- package/dist/components/ui/button/button-styles.d.ts +8 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +8 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +6 -4
- package/dist/components/ui/button/split-button.d.ts.map +1 -1
- package/dist/components/ui/button/split-button.js +3 -2
- package/dist/components/ui/checkbox-block.d.ts.map +1 -1
- package/dist/components/ui/checkbox-block.js +3 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +34 -32
- package/dist/components/ui/input-styles.d.ts +2 -0
- package/dist/components/ui/input-styles.d.ts.map +1 -1
- package/dist/components/ui/input-styles.js +2 -0
- package/dist/{devices-H5Y4DBVC.cjs → devices-GWBR7MJD.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-77ZOLCCK.cjs → embeddable-chat-4RLUXHDH.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +50 -48
- package/dist/{knowledge-MGH65HXM.cjs → knowledge-ZNRITHW5.cjs} +33 -33
- package/dist/{logs-OL7ETVK6.cjs → logs-QN5H5JT6.cjs} +41 -41
- package/dist/{policies-BCECWQ3F.cjs → policies-SCUYEYGJ.cjs} +36 -36
- package/dist/{remote-session-HML4UF7W.cjs → remote-session-BQMTIQTU.cjs} +17 -17
- package/dist/{scripts-XCD6V2JB.cjs → scripts-BP7UTAG5.cjs} +39 -39
- package/dist/{software-update-U5ESXRG5.cjs → software-update-O4BQJCJ4.cjs} +36 -36
- package/dist/{tickets-board-EICQ5VLE.cjs → tickets-board-TRXOX77R.cjs} +17 -17
- package/dist/utils/index.cjs +4 -0
- package/dist/{video-file-player-4QMVTOBE.cjs → video-file-player-IAMWBKEQ.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/chat/utils/icon-registry.ts +4 -0
- package/src/components/features/devices/devices-table-columns.tsx +5 -2
- package/src/components/features/scripts/schedule-form/schedule-script-picker-card.tsx +4 -2
- package/src/components/features/select-button.tsx +1 -1
- package/src/components/meeting-scheduler/index.tsx +85 -3
- package/src/components/platform/ScriptArguments.tsx +8 -1
- package/src/components/ui/button/button-styles.ts +18 -1
- package/src/components/ui/button/button.tsx +7 -4
- package/src/components/ui/button/split-button.tsx +3 -2
- package/src/components/ui/checkbox-block.tsx +3 -1
- package/src/components/ui/input-styles.ts +2 -0
- package/dist/case-study-card-AMINZROX.cjs +0 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkMBU45QUBcjs = require('./chunk-MBU45QUB.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkCKR42OBKcjs = require('./chunk-CKR42OBK.cjs');
|
|
@@ -11,13 +11,13 @@ var _chunkM7ZSKWT3cjs = require('./chunk-M7ZSKWT3.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkNONMZ5WJcjs = require('./chunk-NONMZ5WJ.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkBOS7OIC4cjs = require('./chunk-BOS7OIC4.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkFCZAUK4Dcjs = require('./chunk-FCZAUK4D.cjs');
|
|
21
21
|
|
|
22
22
|
// src/components/embeds/file-download-card.tsx
|
|
23
23
|
var _lucidereact = require('lucide-react');
|
|
@@ -29,10 +29,10 @@ function FileDownloadCard({ fileName, mimeType, fileSize, fileUrl }) {
|
|
|
29
29
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-ods-text-primary text-h3", children: fileName || "File" }),
|
|
30
30
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-2 flex items-center justify-center gap-3 text-ods-text-secondary text-h6", children: [
|
|
31
31
|
mimeType && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: mimeType }),
|
|
32
|
-
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children:
|
|
32
|
+
typeof fileSize === "number" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: _chunkBOS7OIC4cjs.formatFileSize.call(void 0, fileSize) })
|
|
33
33
|
] })
|
|
34
34
|
] }),
|
|
35
|
-
fileUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
35
|
+
fileUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "accent", href: fileUrl, openInNewTab: true, leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Download, { className: "h-4 w-4" }), children: "Download File" })
|
|
36
36
|
] }) });
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -48,16 +48,16 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
48
48
|
] });
|
|
49
49
|
}
|
|
50
50
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
51
|
-
|
|
51
|
+
_chunkMBU45QUBcjs.EmbedViewerFrame,
|
|
52
52
|
{
|
|
53
53
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCKR42OBKcjs.GoogleSheetsIcon, { className: "h-5 w-5 shrink-0" }),
|
|
54
54
|
title: displayName,
|
|
55
55
|
actions: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
56
|
-
|
|
56
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
57
57
|
{
|
|
58
58
|
variant: "outline",
|
|
59
59
|
size: "small-legacy",
|
|
60
|
-
href:
|
|
60
|
+
href: _chunkNONMZ5WJcjs.toGoogleSheetsOriginalUrl.call(void 0, externalUrl),
|
|
61
61
|
openInNewTab: true,
|
|
62
62
|
leftIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkCKR42OBKcjs.GoogleSheetsIcon, { className: "h-4 w-4" }),
|
|
63
63
|
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }),
|
|
@@ -65,7 +65,7 @@ function GoogleSheetsViewer({ externalUrl, fileName, height }) {
|
|
|
65
65
|
children: "Open in Google Sheets"
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
|
-
src:
|
|
68
|
+
src: _chunkNONMZ5WJcjs.toGoogleSheetsEmbedUrl.call(void 0, externalUrl),
|
|
69
69
|
height
|
|
70
70
|
}
|
|
71
71
|
);
|
|
@@ -83,13 +83,13 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
83
83
|
] });
|
|
84
84
|
}
|
|
85
85
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
86
|
-
|
|
86
|
+
_chunkMBU45QUBcjs.EmbedViewerFrame,
|
|
87
87
|
{
|
|
88
88
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkM7ZSKWT3cjs.AdobePdfIcon, { className: "h-5 w-5 shrink-0" }),
|
|
89
89
|
title: displayName,
|
|
90
90
|
actions: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-2 content-sm:w-auto", children: [
|
|
91
91
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
92
|
-
|
|
92
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
93
93
|
{
|
|
94
94
|
variant: "outline",
|
|
95
95
|
size: "small-legacy",
|
|
@@ -102,7 +102,7 @@ function PdfViewer({ src, fileName, onPreview, onDownload, height }) {
|
|
|
102
102
|
}
|
|
103
103
|
),
|
|
104
104
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
105
|
-
|
|
105
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
106
106
|
{
|
|
107
107
|
variant: "outline",
|
|
108
108
|
size: "small-legacy",
|
|
@@ -1,7 +1,7 @@
|
|
|
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; } }"use client";
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
|
|
5
5
|
|
|
6
6
|
// src/components/ui/label.tsx
|
|
7
7
|
var _reactlabel = require('@radix-ui/react-label'); var LabelPrimitive = _interopRequireWildcard(_reactlabel);
|
|
@@ -17,7 +17,7 @@ var labelVariants = _classvarianceauthority.cva.call(void 0, "", {
|
|
|
17
17
|
small: LABEL_TEXT_CLASS,
|
|
18
18
|
/** @deprecated alias of `default`. */
|
|
19
19
|
medium: LABEL_TEXT_CLASS,
|
|
20
|
-
large:
|
|
20
|
+
large: _chunk63A4GZMBcjs.cn.call(void 0, LABEL_TEXT_CLASS, "text-h4"),
|
|
21
21
|
/** A click surface that labels its control: no typography, the site's `className` is its look. */
|
|
22
22
|
surface: ""
|
|
23
23
|
},
|
|
@@ -33,7 +33,7 @@ var labelVariants = _classvarianceauthority.cva.call(void 0, "", {
|
|
|
33
33
|
spacing: "none"
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
var Label = _react.forwardRef.call(void 0, ({ className, variant, spacing, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LabelPrimitive.Root, { ref, className:
|
|
36
|
+
var Label = _react.forwardRef.call(void 0, ({ className, variant, spacing, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LabelPrimitive.Root, { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, labelVariants({ variant, spacing }), className), ...props }));
|
|
37
37
|
Label.displayName = LabelPrimitive.Root.displayName;
|
|
38
38
|
|
|
39
39
|
|
|
@@ -5,10 +5,10 @@ var _chunkFX35L4Y6cjs = require('./chunk-FX35L4Y6.cjs');
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQOAA7ZHBcjs = require('./chunk-QOAA7ZHB.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
|
|
12
12
|
|
|
13
13
|
// src/utils/visitor-os.ts
|
|
14
14
|
var DESKTOP_OSES = ["mac", "windows", "linux"];
|
|
@@ -74,9 +74,9 @@ function useVisitorOs() {
|
|
|
74
74
|
// src/utils/platform-config.tsx
|
|
75
75
|
|
|
76
76
|
function renderPlatformIcon(platformName, className) {
|
|
77
|
-
return _react.createElement.call(void 0,
|
|
77
|
+
return _react.createElement.call(void 0, _chunkQOAA7ZHBcjs.PlatformMark, {
|
|
78
78
|
platform: platformName,
|
|
79
|
-
className:
|
|
79
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, className, _chunkQOAA7ZHBcjs.getPlatformBrandClasses.call(void 0, platformName).accentText)
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
var platformIcons = {
|
|
@@ -116,7 +116,7 @@ function getPlatformIconComponent(platformName, className = "h-6 w-6") {
|
|
|
116
116
|
return renderPlatformIcon(platformName, className);
|
|
117
117
|
}
|
|
118
118
|
function getPlatformColorClass(platformName) {
|
|
119
|
-
return
|
|
119
|
+
return _chunkQOAA7ZHBcjs.getPlatformBrandClasses.call(void 0, platformName).accentBg;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
// src/utils/access-code-client.ts
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk2XLPRW7Vcjs = require('./chunk-2XLPRW7V.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
var _chunkC7GIHB3Vcjs = require('./chunk-C7GIHB3V.cjs');
|
|
@@ -14,7 +14,7 @@ var _chunkC7GIHB3Vcjs = require('./chunk-C7GIHB3V.cjs');
|
|
|
14
14
|
var _chunkHFNBMV5Mcjs = require('./chunk-HFNBMV5M.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkQDDBOCG3cjs = require('./chunk-QDDBOCG3.cjs');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
@@ -25,36 +25,36 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkQQT23JJ7cjs = require('./chunk-QQT23JJ7.cjs');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkBOS7OIC4cjs = require('./chunk-BOS7OIC4.cjs');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkQOAA7ZHBcjs = require('./chunk-QOAA7ZHB.cjs');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunk3V5JWG27cjs = require('./chunk-3V5JWG27.cjs');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunk3TOWCFIKcjs = require('./chunk-3TOWCFIK.cjs');
|
|
51
51
|
|
|
52
52
|
|
|
53
|
-
var
|
|
53
|
+
var _chunkFCZAUK4Dcjs = require('./chunk-FCZAUK4D.cjs');
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
|
|
58
58
|
|
|
59
59
|
// src/utils/date-utils.ts
|
|
60
60
|
var ZONED_DATE_FIELDS_MEDIUM_DATETIME = {
|
|
@@ -74,12 +74,12 @@ function formatTicketRelativeTime(iso) {
|
|
|
74
74
|
if (diffMin < 60) return `${diffMin} min ago`;
|
|
75
75
|
const diffHours = Math.floor(diffMin / 60);
|
|
76
76
|
if (diffHours < 24) return diffHours === 1 ? "1 hour ago" : `${diffHours} hours ago`;
|
|
77
|
-
return
|
|
77
|
+
return _chunkBOS7OIC4cjs.formatDateWithTimezone.call(void 0, date, _chunkBOS7OIC4cjs.VIEWER_TIMEZONE, "numeric", { viewerLocale: true });
|
|
78
78
|
}
|
|
79
79
|
function formatTicketFullTimestamp(iso) {
|
|
80
|
-
return
|
|
80
|
+
return _chunkBOS7OIC4cjs.formatDateWithTimezone.call(void 0,
|
|
81
81
|
iso,
|
|
82
|
-
|
|
82
|
+
_chunkBOS7OIC4cjs.VIEWER_TIMEZONE,
|
|
83
83
|
{ year: "numeric", month: "2-digit", day: "2-digit", hour: "numeric", minute: "2-digit" },
|
|
84
84
|
{ viewerLocale: true }
|
|
85
85
|
);
|
|
@@ -108,7 +108,7 @@ function formatRelativeTimeFrom(timestamp, now) {
|
|
|
108
108
|
const weeks = Math.floor(diffInDays / 7);
|
|
109
109
|
return `${weeks}w ago`;
|
|
110
110
|
}
|
|
111
|
-
return
|
|
111
|
+
return _chunkBOS7OIC4cjs.formatDateWithTimezone.call(void 0, targetTime, null, {
|
|
112
112
|
month: "short",
|
|
113
113
|
day: "numeric",
|
|
114
114
|
year: targetTime.getUTCFullYear() !== now.getUTCFullYear() ? "numeric" : void 0
|
|
@@ -120,7 +120,7 @@ function formatAbsoluteDate(timestamp, options = {}) {
|
|
|
120
120
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatAbsoluteDate:", timestamp);
|
|
121
121
|
return "Invalid date";
|
|
122
122
|
}
|
|
123
|
-
return
|
|
123
|
+
return _chunkBOS7OIC4cjs.formatDateWithTimezone.call(void 0, targetTime, _nullishCoalesce(options.timeZone, () => ( null)), {
|
|
124
124
|
year: "numeric",
|
|
125
125
|
month: "short",
|
|
126
126
|
day: "numeric",
|
|
@@ -133,7 +133,7 @@ function formatDateTime(timestamp, options = {}) {
|
|
|
133
133
|
console.warn("\u26A0\uFE0F Invalid timestamp in formatDateTime:", timestamp);
|
|
134
134
|
return "Invalid date";
|
|
135
135
|
}
|
|
136
|
-
return
|
|
136
|
+
return _chunkBOS7OIC4cjs.formatDateWithTimezone.call(void 0, targetTime, _nullishCoalesce(options.timeZone, () => ( null)), {
|
|
137
137
|
...ZONED_DATE_FIELDS_MEDIUM_DATETIME,
|
|
138
138
|
...options
|
|
139
139
|
});
|
|
@@ -178,8 +178,8 @@ function createUTCTimestamp() {
|
|
|
178
178
|
var _jsxruntime = require('react/jsx-runtime');
|
|
179
179
|
var SWATCH_CLASS = "inline-block size-4 shrink-0 rounded-sm";
|
|
180
180
|
function ColorSwatch({ color, className }) {
|
|
181
|
-
if (
|
|
182
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, className:
|
|
181
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, SWATCH_CLASS, className) });
|
|
182
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, SWATCH_CLASS, className), style: { backgroundColor: color } });
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
// src/components/ui/ticket-status-tag.tsx
|
|
@@ -288,37 +288,37 @@ function TicketStatusTag({
|
|
|
288
288
|
disabledReason,
|
|
289
289
|
loading: loadingProp = false
|
|
290
290
|
}) {
|
|
291
|
-
const loading =
|
|
291
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
292
292
|
const config = getTicketStatusConfig(status);
|
|
293
293
|
const customStyle = color ? {
|
|
294
294
|
"--tag-bg": color,
|
|
295
|
-
"--tag-bg-hover":
|
|
296
|
-
"--tag-bg-active":
|
|
297
|
-
color:
|
|
295
|
+
"--tag-bg-hover": _chunkQQT23JJ7cjs.deriveHoverColor.call(void 0, color),
|
|
296
|
+
"--tag-bg-active": _chunkQQT23JJ7cjs.deriveActiveColor.call(void 0, color),
|
|
297
|
+
color: _chunkQQT23JJ7cjs.getReadableTextColor.call(void 0, color)
|
|
298
298
|
} : void 0;
|
|
299
299
|
const customColorClasses = color ? "bg-[var(--tag-bg)] hover:bg-[var(--tag-bg-hover)] active:bg-[var(--tag-bg-active)]" : void 0;
|
|
300
300
|
const tag = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
301
|
-
|
|
301
|
+
_chunkBOS7OIC4cjs.Tag,
|
|
302
302
|
{
|
|
303
303
|
loading,
|
|
304
304
|
label: _nullishCoalesce(label, () => ( config.label)),
|
|
305
305
|
variant: _nullishCoalesce(variant, () => ( config.variant)),
|
|
306
306
|
icon: showIcon ? config.icon : void 0,
|
|
307
|
-
className:
|
|
307
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "w-fit shrink-0", customColorClasses, className),
|
|
308
308
|
style: customStyle
|
|
309
309
|
}
|
|
310
310
|
);
|
|
311
311
|
if (loading || disabled || !options || options.length === 0 || !onSelect) {
|
|
312
312
|
if (!loading && disabled && disabledReason) {
|
|
313
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
314
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
315
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
313
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2XLPRW7Vcjs.Tooltip, { children: [
|
|
314
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.TooltipTrigger, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-fit shrink-0 cursor-not-allowed", children: tag }) }),
|
|
315
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.TooltipContent, { children: disabledReason })
|
|
316
316
|
] }) });
|
|
317
317
|
}
|
|
318
318
|
return tag;
|
|
319
319
|
}
|
|
320
320
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
321
|
-
|
|
321
|
+
_chunk2XLPRW7Vcjs.ActionsMenuDropdown,
|
|
322
322
|
{
|
|
323
323
|
align: "start",
|
|
324
324
|
groups: [
|
|
@@ -336,22 +336,22 @@ function TicketStatusTag({
|
|
|
336
336
|
// The tag IS the control's look (its status colour), so the button contributes the click, the focus ring and
|
|
337
337
|
// the menu semantics and no surface of its own (`glyph` + `wrap`).
|
|
338
338
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
339
|
-
|
|
339
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
340
340
|
{
|
|
341
341
|
variant: "glyph",
|
|
342
342
|
size: "wrap",
|
|
343
343
|
type: "button",
|
|
344
344
|
disabled: isPending,
|
|
345
345
|
"aria-label": "Change status",
|
|
346
|
-
className:
|
|
346
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "w-fit shrink-0", className),
|
|
347
347
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
348
348
|
"span",
|
|
349
349
|
{
|
|
350
350
|
style: customStyle,
|
|
351
|
-
className:
|
|
351
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
352
352
|
// The tag's variant styling, split into a label section and a separated chevron section (the common
|
|
353
353
|
// dropdown-button seam). Custom color: bg/hover/active from the CSS vars set above.
|
|
354
|
-
|
|
354
|
+
_chunkBOS7OIC4cjs.tagVariants.call(void 0, { variant: _nullishCoalesce(variant, () => ( config.variant)) }),
|
|
355
355
|
"items-stretch justify-start gap-0 overflow-hidden p-0",
|
|
356
356
|
customColorClasses
|
|
357
357
|
),
|
|
@@ -377,13 +377,13 @@ function StatusLine({ tone, label, className }) {
|
|
|
377
377
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
378
378
|
"span",
|
|
379
379
|
{
|
|
380
|
-
className:
|
|
380
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
381
381
|
"inline-flex items-center gap-1.5 whitespace-nowrap text-h6",
|
|
382
382
|
tone === "waiting" ? "text-ods-warning" : tone === "error" ? "text-ods-error" : tone === "muted" ? "text-ods-text-secondary" : "text-ods-text-primary",
|
|
383
383
|
className
|
|
384
384
|
),
|
|
385
385
|
children: [
|
|
386
|
-
tone === "working" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
386
|
+
tone === "working" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, "h-2 w-2 shrink-0 rounded-full bg-ods-flamingo-cyan", _chunk3TOWCFIKcjs.LIVE_PULSE_CLASS), "aria-hidden": true }),
|
|
387
387
|
tone === "success" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHFNBMV5Mcjs.CheckCircleIcon, { size: 16, className: "shrink-0 text-ods-success", "aria-hidden": true }),
|
|
388
388
|
tone === "error" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRUHKTWGBcjs.XmarkCircleIcon, { size: 16, className: "shrink-0 text-ods-error", "aria-hidden": true }),
|
|
389
389
|
label
|
|
@@ -398,7 +398,7 @@ function ExpandChevron({ expanded, className }) {
|
|
|
398
398
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
399
399
|
_chunkSKI6NKOEcjs.Chevron02DownIcon,
|
|
400
400
|
{
|
|
401
|
-
className:
|
|
401
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
402
402
|
"h-4 w-4 shrink-0 text-ods-text-secondary transition-transform duration-200",
|
|
403
403
|
expanded && "rotate-180",
|
|
404
404
|
className
|
|
@@ -566,19 +566,19 @@ function ResultBlock({ result, className }) {
|
|
|
566
566
|
const formatted = formatToolResult(result);
|
|
567
567
|
if (!formatted.text) return null;
|
|
568
568
|
if (formatted.kind === "inline") {
|
|
569
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
569
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex w-full flex-col items-start gap-[var(--spacing-system-xxs)]", className), children: [
|
|
570
570
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary", children: "Result:" }),
|
|
571
571
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "break-all text-ods-text-primary", children: formatted.text })
|
|
572
572
|
] });
|
|
573
573
|
}
|
|
574
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
574
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex w-full flex-col items-start gap-[var(--spacing-system-xxs)]", className), children: [
|
|
575
575
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary", children: "Result:" }),
|
|
576
576
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "pre", { className: CODE_PRE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "code", { children: formatted.text }) })
|
|
577
577
|
] });
|
|
578
578
|
}
|
|
579
579
|
function CommandBlock({ command, className }) {
|
|
580
580
|
if (!command) return null;
|
|
581
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "pre", { className:
|
|
581
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "pre", { className: _chunk63A4GZMBcjs.cn.call(void 0, CODE_PRE_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "code", { children: command }) });
|
|
582
582
|
}
|
|
583
583
|
|
|
584
584
|
// src/components/chat/approval-batch-message.tsx
|
|
@@ -626,12 +626,12 @@ function ToolCallRow({ call, expanded, onToggle, batchStatus, execution, showExe
|
|
|
626
626
|
const result = _optionalChain([execution, 'optionalAccess', _ => _.status]) === "done" ? execution.result : void 0;
|
|
627
627
|
const hasExpandableBody = args.length > 0 || typeof result === "string" && result.length > 0;
|
|
628
628
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col items-start border-b border-ods-border bg-ods-card last:border-b-0", children: [
|
|
629
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
630
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
629
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "row", type: "button", onClick: onToggle, "aria-expanded": expanded, children: [
|
|
630
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQDDBOCG3cjs.ToolIcon, { toolType, size: 16 }) }),
|
|
631
631
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
632
632
|
"div",
|
|
633
633
|
{
|
|
634
|
-
className:
|
|
634
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
635
635
|
"min-w-0 flex-1 text-h6",
|
|
636
636
|
expanded ? "whitespace-pre-wrap break-all text-ods-text-primary" : "line-clamp-2 max-h-10 break-all text-ods-text-secondary"
|
|
637
637
|
),
|
|
@@ -654,12 +654,12 @@ function ToolCallRow({ call, expanded, onToggle, batchStatus, execution, showExe
|
|
|
654
654
|
] });
|
|
655
655
|
}
|
|
656
656
|
var ApprovalBatchLoading = _react.forwardRef.call(void 0,
|
|
657
|
-
({ className, showFooterActions, variant, ...props }, ref) => variant === "client" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, "aria-hidden": true, className:
|
|
658
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
657
|
+
({ className, showFooterActions, variant, ...props }, ref) => variant === "client" ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, "aria-hidden": true, className: _chunk63A4GZMBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
658
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "inline-block w-3/4 align-middle" }) }),
|
|
659
659
|
showFooterActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalWaitingLine, {}),
|
|
660
660
|
showFooterActions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
661
661
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
662
|
-
|
|
662
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
663
663
|
{
|
|
664
664
|
size: "small-legacy",
|
|
665
665
|
variant: "accent",
|
|
@@ -669,7 +669,7 @@ var ApprovalBatchLoading = _react.forwardRef.call(void 0,
|
|
|
669
669
|
}
|
|
670
670
|
),
|
|
671
671
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
672
|
-
|
|
672
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
673
673
|
{
|
|
674
674
|
size: "small-legacy",
|
|
675
675
|
variant: "outline",
|
|
@@ -684,23 +684,23 @@ var ApprovalBatchLoading = _react.forwardRef.call(void 0,
|
|
|
684
684
|
{
|
|
685
685
|
ref,
|
|
686
686
|
"aria-hidden": true,
|
|
687
|
-
className:
|
|
687
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)] flex flex-col overflow-hidden", CHAT_BLOCK_FRAME_CLASS, className),
|
|
688
688
|
...props,
|
|
689
689
|
children: [
|
|
690
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-start bg-ods-card", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
691
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
690
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full flex-col items-start bg-ods-card", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "row", type: "button", tabIndex: -1, children: [
|
|
691
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.MediaSkeleton.Icon, { size: "sm" }) }),
|
|
692
692
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col text-h6", children: [
|
|
693
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
694
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
693
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", className: "w-full" }),
|
|
694
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", className: "w-2/3" })
|
|
695
695
|
] }),
|
|
696
696
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-5 w-5 shrink-0 items-center justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExpandChevron, { expanded: false }) })
|
|
697
697
|
] }) }),
|
|
698
698
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start justify-center gap-[var(--spacing-system-xsf)] border-t border-ods-border p-[var(--spacing-system-sf)]", children: [
|
|
699
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "w-full list-disc pl-5 text-ods-text-primary text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
699
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: "w-full list-disc pl-5 text-ods-text-primary text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "inline-block w-3/4 align-middle" }) }) }),
|
|
700
700
|
showFooterActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalWaitingLine, {}),
|
|
701
701
|
showFooterActions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
702
702
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
703
|
-
|
|
703
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
704
704
|
{
|
|
705
705
|
size: "small-legacy",
|
|
706
706
|
variant: "accent",
|
|
@@ -710,7 +710,7 @@ var ApprovalBatchLoading = _react.forwardRef.call(void 0,
|
|
|
710
710
|
}
|
|
711
711
|
),
|
|
712
712
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
713
|
-
|
|
713
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
714
714
|
{
|
|
715
715
|
size: "small-legacy",
|
|
716
716
|
variant: "outline",
|
|
@@ -744,7 +744,7 @@ var ApprovalBatchMessage = _react.forwardRef.call(void 0,
|
|
|
744
744
|
const [expandedId, setExpandedId] = _react.useState.call(void 0, null);
|
|
745
745
|
const [isProcessing, setIsProcessing] = _react.useState.call(void 0, false);
|
|
746
746
|
const isClient = variant === "client";
|
|
747
|
-
const inLoadingScope =
|
|
747
|
+
const inLoadingScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
748
748
|
if (inLoadingScope || data === null) {
|
|
749
749
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
750
750
|
ApprovalBatchLoading,
|
|
@@ -776,13 +776,13 @@ var ApprovalBatchMessage = _react.forwardRef.call(void 0,
|
|
|
776
776
|
};
|
|
777
777
|
const actionButtons = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
778
778
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
779
|
-
|
|
779
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
780
780
|
{
|
|
781
781
|
size: "small-legacy",
|
|
782
782
|
variant: "accent",
|
|
783
783
|
onClick: handleApprove,
|
|
784
784
|
disabled: isProcessing,
|
|
785
|
-
className:
|
|
785
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
786
786
|
"bg-ods-accent hover:bg-ods-accent/90",
|
|
787
787
|
"text-ods-bg text-h5",
|
|
788
788
|
"h-8 px-[var(--spacing-system-xsf)]"
|
|
@@ -791,13 +791,13 @@ var ApprovalBatchMessage = _react.forwardRef.call(void 0,
|
|
|
791
791
|
}
|
|
792
792
|
),
|
|
793
793
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
794
|
-
|
|
794
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
795
795
|
{
|
|
796
796
|
size: "small-legacy",
|
|
797
797
|
variant: "outline",
|
|
798
798
|
onClick: handleReject,
|
|
799
799
|
disabled: isProcessing,
|
|
800
|
-
className:
|
|
800
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
801
801
|
"border-ods-border bg-ods-card",
|
|
802
802
|
"text-ods-text-primary text-h5",
|
|
803
803
|
"h-8 px-[var(--spacing-system-xsf)] hover:bg-ods-bg"
|
|
@@ -808,7 +808,7 @@ var ApprovalBatchMessage = _react.forwardRef.call(void 0,
|
|
|
808
808
|
] });
|
|
809
809
|
if (isClient) {
|
|
810
810
|
const titles = data.toolCalls.map((c) => _optionalChain([c, 'access', _7 => _7.toolExplanation, 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]) || _optionalChain([c, 'access', _10 => _10.toolTitle, 'optionalAccess', _11 => _11.trim, 'call', _12 => _12()])).filter((s) => !!s);
|
|
811
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className:
|
|
811
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "mb-[var(--spacing-system-xsf)]", CHAT_BLOCK_CLASS, className), ...props, children: [
|
|
812
812
|
titles.length > 0 ? titles.map((title, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full whitespace-pre-line break-words text-ods-text-primary text-h4", children: title }, i)) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "Approval required" }),
|
|
813
813
|
showFooterActions && status === "pending" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalWaitingLine, {}),
|
|
814
814
|
showFooterActions && (status === "pending" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xsf)]", children: actionButtons }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ApprovalStatusTag, { status, resolvedByName, inlineResolver: true }) }))
|
|
@@ -819,7 +819,7 @@ var ApprovalBatchMessage = _react.forwardRef.call(void 0,
|
|
|
819
819
|
"div",
|
|
820
820
|
{
|
|
821
821
|
ref,
|
|
822
|
-
className:
|
|
822
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
823
823
|
"mb-[var(--spacing-system-xsf)] flex flex-col overflow-hidden",
|
|
824
824
|
CHAT_BLOCK_FRAME_CLASS,
|
|
825
825
|
className
|
|
@@ -829,7 +829,7 @@ var ApprovalBatchMessage = _react.forwardRef.call(void 0,
|
|
|
829
829
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
830
830
|
"div",
|
|
831
831
|
{
|
|
832
|
-
className:
|
|
832
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex flex-col", maxBodyHeight != null && "overflow-y-auto overscroll-contain"),
|
|
833
833
|
style: maxBodyHeight != null ? { maxHeight: maxBodyHeight } : void 0,
|
|
834
834
|
children: data.toolCalls.map((call) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
835
835
|
ToolCallRow,
|
|
@@ -866,13 +866,13 @@ ApprovalBatchMessage.displayName = "ApprovalBatchMessage";
|
|
|
866
866
|
// src/components/agent-mark.tsx
|
|
867
867
|
|
|
868
868
|
|
|
869
|
-
function AgentMark({ agent, className = "", color =
|
|
870
|
-
const identity =
|
|
869
|
+
function AgentMark({ agent, className = "", color = _chunkQQT23JJ7cjs.AGENT_GLYPH_COLOR }) {
|
|
870
|
+
const identity = _chunkQQT23JJ7cjs.useAgentIdentityIcon.call(void 0, agent);
|
|
871
871
|
if (_optionalChain([identity, 'optionalAccess', _15 => _15.url])) {
|
|
872
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className:
|
|
872
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": "true", className: _chunk63A4GZMBcjs.cn.call(void 0, "relative inline-block overflow-hidden rounded-full", className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3V5JWG27cjs.next_image_default, { src: identity.url, alt: "", fill: true, sizes: _chunkQOAA7ZHBcjs.fixedImageSlot.call(void 0, "mark"), className: _chunkQQT23JJ7cjs.AGENT_PICTURE_CLASS }) });
|
|
873
873
|
}
|
|
874
874
|
if (_optionalChain([identity, 'optionalAccess', _16 => _16.name])) {
|
|
875
|
-
return _react.createElement.call(void 0,
|
|
875
|
+
return _react.createElement.call(void 0, _chunkQOAA7ZHBcjs.resolveIcon.call(void 0, identity.name), {
|
|
876
876
|
className,
|
|
877
877
|
"aria-hidden": true,
|
|
878
878
|
color,
|
|
@@ -883,11 +883,11 @@ function AgentMark({ agent, className = "", color = _chunkOQDPZOGCcjs.AGENT_GLYP
|
|
|
883
883
|
}
|
|
884
884
|
var AGENT_AVATAR_FRAME_CLASS = "inline-flex shrink-0 overflow-hidden rounded-full";
|
|
885
885
|
function AgentAvatar({ agent, size, className, loading = false }) {
|
|
886
|
-
if (
|
|
887
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className:
|
|
886
|
+
if (_chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AgentAvatarSkeleton, { size, className });
|
|
887
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk63A4GZMBcjs.cn.call(void 0, AGENT_AVATAR_FRAME_CLASS, className), style: { width: size, height: size }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AgentMark, { agent, className: "h-full w-full" }) });
|
|
888
888
|
}
|
|
889
889
|
function AgentAvatarSkeleton({ size, className }) {
|
|
890
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
890
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { as: "span", className: _chunk63A4GZMBcjs.cn.call(void 0, AGENT_AVATAR_FRAME_CLASS, className), width: size, height: size });
|
|
891
891
|
}
|
|
892
892
|
|
|
893
893
|
|