@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
|
@@ -11,14 +11,14 @@ var _chunk7Z536SPRcjs = require('./chunk-7Z536SPR.cjs');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkZRDVFADQcjs = require('./chunk-ZRDVFADQ.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk2XLPRW7Vcjs = require('./chunk-2XLPRW7V.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
var _chunk2NETL2MScjs = require('./chunk-2NETL2MS.cjs');
|
|
@@ -103,7 +103,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
|
|
106
|
-
var
|
|
106
|
+
var _chunkBOS7OIC4cjs = require('./chunk-BOS7OIC4.cjs');
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -113,43 +113,43 @@ var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
|
113
113
|
var _chunkLC65AC6Mcjs = require('./chunk-LC65AC6M.cjs');
|
|
114
114
|
|
|
115
115
|
|
|
116
|
-
var
|
|
116
|
+
var _chunkQOAA7ZHBcjs = require('./chunk-QOAA7ZHB.cjs');
|
|
117
117
|
|
|
118
118
|
|
|
119
|
-
var
|
|
119
|
+
var _chunk3V5JWG27cjs = require('./chunk-3V5JWG27.cjs');
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
|
|
124
|
-
var
|
|
124
|
+
var _chunkSWF6TNZ3cjs = require('./chunk-SWF6TNZ3.cjs');
|
|
125
125
|
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
|
|
131
|
-
var
|
|
131
|
+
var _chunkS3QXLD4Xcjs = require('./chunk-S3QXLD4X.cjs');
|
|
132
132
|
|
|
133
133
|
|
|
134
|
-
var
|
|
134
|
+
var _chunk2XCORRJVcjs = require('./chunk-2XCORRJV.cjs');
|
|
135
135
|
|
|
136
136
|
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
var
|
|
141
|
+
var _chunk3TOWCFIKcjs = require('./chunk-3TOWCFIK.cjs');
|
|
142
142
|
|
|
143
143
|
|
|
144
144
|
|
|
145
|
-
var
|
|
145
|
+
var _chunkFCZAUK4Dcjs = require('./chunk-FCZAUK4D.cjs');
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
|
|
152
|
-
var
|
|
152
|
+
var _chunk63A4GZMBcjs = require('./chunk-63A4GZMB.cjs');
|
|
153
153
|
|
|
154
154
|
|
|
155
155
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -163,7 +163,7 @@ var HiddenTagsPopup = _react.forwardRef.call(void 0, function HiddenTagsPopupImp
|
|
|
163
163
|
{
|
|
164
164
|
ref,
|
|
165
165
|
style,
|
|
166
|
-
className:
|
|
166
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
167
167
|
// Base positioning is neutral (left-anchored); consumers override via
|
|
168
168
|
// `style.left` (search-input, tag-search-input) or `className` (autocomplete).
|
|
169
169
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px]",
|
|
@@ -174,7 +174,7 @@ var HiddenTagsPopup = _react.forwardRef.call(void 0, function HiddenTagsPopupImp
|
|
|
174
174
|
children: items.map((item) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
175
175
|
"div",
|
|
176
176
|
{
|
|
177
|
-
className:
|
|
177
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
178
178
|
"flex h-11 items-center justify-between gap-3 px-3 md:h-12",
|
|
179
179
|
"border-b border-ods-border last:border-b-0"
|
|
180
180
|
),
|
|
@@ -188,7 +188,7 @@ var HiddenTagsPopup = _react.forwardRef.call(void 0, function HiddenTagsPopupImp
|
|
|
188
188
|
}
|
|
189
189
|
),
|
|
190
190
|
!disabled && onRemove && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
191
|
-
|
|
191
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
192
192
|
{
|
|
193
193
|
variant: "bare",
|
|
194
194
|
size: "icon-sm",
|
|
@@ -247,24 +247,24 @@ function TruncateText({
|
|
|
247
247
|
}) {
|
|
248
248
|
const isMultiLine = lines > 1;
|
|
249
249
|
const { ref, isTruncated } = _chunkLC65AC6Mcjs.useIsTruncated.call(void 0, children, { multiline: isMultiLine });
|
|
250
|
-
const loading =
|
|
250
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) && !children || loadingProp;
|
|
251
251
|
if (loading)
|
|
252
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
252
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: variant, lines, as, className: _chunk63A4GZMBcjs.cn.call(void 0, "w-3/4", triggerClassName) });
|
|
253
253
|
const clampClass = isMultiLine ? LINE_CLAMP_CLASS[lines] : "truncate block";
|
|
254
254
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
255
|
-
|
|
255
|
+
_chunkBOS7OIC4cjs.FloatingTooltip,
|
|
256
256
|
{
|
|
257
257
|
content: _nullishCoalesce(tooltip, () => ( children)),
|
|
258
258
|
side,
|
|
259
259
|
disabled: !isTruncated,
|
|
260
260
|
className: "max-w-xs whitespace-pre-line [overflow-wrap:anywhere]",
|
|
261
261
|
as,
|
|
262
|
-
triggerClassName:
|
|
262
|
+
triggerClassName: _chunk63A4GZMBcjs.cn.call(void 0, "min-w-0 max-w-full", as === "span" && "inline-block align-bottom", triggerClassName),
|
|
263
263
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
264
264
|
"span",
|
|
265
265
|
{
|
|
266
266
|
ref,
|
|
267
|
-
className:
|
|
267
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
268
268
|
VARIANT_CLASS[variant],
|
|
269
269
|
TONE_CLASS[tone],
|
|
270
270
|
mono && "[font-family:var(--font-family-heading)]",
|
|
@@ -320,7 +320,7 @@ function hasSameEntries(a, b) {
|
|
|
320
320
|
|
|
321
321
|
// src/components/ui/autocomplete.tsx
|
|
322
322
|
|
|
323
|
-
var innerInputStyles =
|
|
323
|
+
var innerInputStyles = _chunk63A4GZMBcjs.cn.call(void 0,
|
|
324
324
|
"min-w-[60px] flex-1 border-none bg-transparent outline-none",
|
|
325
325
|
"text-h4",
|
|
326
326
|
"text-ods-text-primary placeholder:text-ods-text-secondary",
|
|
@@ -332,10 +332,10 @@ var AUTOCOMPLETE_OPTION_ROW_CLASS = "flex min-h-11 items-center border-b border-
|
|
|
332
332
|
var AUTOCOMPLETE_LOADING_ROWS = 5;
|
|
333
333
|
var AUTOCOMPLETE_ANCHOR_SHAPE_CLASS = "rounded-[6px]";
|
|
334
334
|
function AutocompleteSkeleton({ label, labelVariant, className }) {
|
|
335
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
335
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWF6TNZ3cjs.FieldWrapper, { label, labelVariant, className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.UnifiedSkeleton, { className: _chunk63A4GZMBcjs.cn.call(void 0, "w-full", AUTOCOMPLETE_ANCHOR_SHAPE_CLASS, AUTOCOMPLETE_ANCHOR_HEIGHT_CLASS) }) });
|
|
336
336
|
}
|
|
337
337
|
function AutocompleteInner(props, ref) {
|
|
338
|
-
const inScope =
|
|
338
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
339
339
|
const {
|
|
340
340
|
options,
|
|
341
341
|
disabled = false,
|
|
@@ -587,7 +587,7 @@ function AutocompleteInner(props, ref) {
|
|
|
587
587
|
"div",
|
|
588
588
|
{
|
|
589
589
|
"data-invalid": isInvalid || void 0,
|
|
590
|
-
className:
|
|
590
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
591
591
|
// Layout — single line, no wrapping
|
|
592
592
|
"flex cursor-text items-center border",
|
|
593
593
|
AUTOCOMPLETE_ANCHOR_SHAPE_CLASS,
|
|
@@ -619,7 +619,7 @@ function AutocompleteInner(props, ref) {
|
|
|
619
619
|
resolvedStartAdornment && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
620
620
|
"span",
|
|
621
621
|
{
|
|
622
|
-
className:
|
|
622
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
623
623
|
// Images are sized alongside svgs: an entity adornment is
|
|
624
624
|
// usually a flag or a crest, and an unconstrained <img> lays
|
|
625
625
|
// out at 0x0 inside this flex row.
|
|
@@ -635,13 +635,13 @@ function AutocompleteInner(props, ref) {
|
|
|
635
635
|
"div",
|
|
636
636
|
{
|
|
637
637
|
ref: middleRef,
|
|
638
|
-
className:
|
|
638
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
639
639
|
"flex min-w-0 flex-1 items-center gap-2 px-2",
|
|
640
640
|
wrapTags ? "flex-wrap py-[var(--spacing-system-xsf)]" : "overflow-hidden"
|
|
641
641
|
),
|
|
642
642
|
children: [
|
|
643
643
|
multiple && visibleTags.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
644
|
-
|
|
644
|
+
_chunkBOS7OIC4cjs.Tag,
|
|
645
645
|
{
|
|
646
646
|
variant: "outline",
|
|
647
647
|
className: wrapTags ? "max-w-full" : void 0,
|
|
@@ -654,7 +654,7 @@ function AutocompleteInner(props, ref) {
|
|
|
654
654
|
String(option.value)
|
|
655
655
|
)),
|
|
656
656
|
multiple && hiddenTagsCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: hiddenTagsRef, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
657
|
-
|
|
657
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
658
658
|
{
|
|
659
659
|
variant: "chip",
|
|
660
660
|
ref: badgeRef,
|
|
@@ -689,7 +689,7 @@ function AutocompleteInner(props, ref) {
|
|
|
689
689
|
),
|
|
690
690
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-1 pr-3", children: [
|
|
691
691
|
showClearAll && (hasValue || inputValue.length > 0) && !disabled && isOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
692
|
-
|
|
692
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
693
693
|
{
|
|
694
694
|
variant: "transparent",
|
|
695
695
|
size: "icon-sm",
|
|
@@ -702,7 +702,7 @@ function AutocompleteInner(props, ref) {
|
|
|
702
702
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
703
703
|
_lucidereact.Loader2,
|
|
704
704
|
{
|
|
705
|
-
className:
|
|
705
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
706
706
|
"size-4 animate-spin md:size-6",
|
|
707
707
|
isInvalid ? "text-ods-error" : isOpen ? "text-ods-accent" : "text-ods-text-secondary"
|
|
708
708
|
)
|
|
@@ -710,7 +710,7 @@ function AutocompleteInner(props, ref) {
|
|
|
710
710
|
) : showChevron && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
711
711
|
_chunkSKI6NKOEcjs.Chevron02DownIcon,
|
|
712
712
|
{
|
|
713
|
-
className:
|
|
713
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
714
714
|
"size-4 transition-all duration-200 md:size-6",
|
|
715
715
|
"text-ods-text-secondary",
|
|
716
716
|
isOpen && "rotate-180",
|
|
@@ -726,7 +726,7 @@ function AutocompleteInner(props, ref) {
|
|
|
726
726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
727
727
|
PopoverPrimitive.Content,
|
|
728
728
|
{
|
|
729
|
-
className:
|
|
729
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
730
730
|
"z-50 mt-1 w-[var(--radix-popover-trigger-width)]",
|
|
731
731
|
"rounded-[4px] border border-ods-border bg-ods-card",
|
|
732
732
|
"flex max-h-[var(--radix-popper-available-height)] flex-col overflow-hidden",
|
|
@@ -750,7 +750,7 @@ function AutocompleteInner(props, ref) {
|
|
|
750
750
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScrollAreaPrimitive.Viewport, { className: "max-h-[240px] min-h-0 w-full [&>div]:!block", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { role: showLoadingRows ? void 0 : "listbox", children: showLoadingRows ? (
|
|
751
751
|
// The options while they are read: the list's own rows, a label bar each (`loadingText` is what a
|
|
752
752
|
// screen reader hears).
|
|
753
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
753
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: loadingText, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: loadingRows, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: AUTOCOMPLETE_OPTION_ROW_CLASS, "aria-hidden": true, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", className: "w-2/3" }) }) }) })
|
|
754
754
|
) : filteredOptions.length === 0 ? showCreateOption ? isCreateTooLong ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-11 min-w-0 items-center px-[var(--spacing-system-mf)] text-ods-error text-h5 md:h-12", children: [
|
|
755
755
|
"Maximum ",
|
|
756
756
|
maxCreateLength,
|
|
@@ -760,7 +760,7 @@ function AutocompleteInner(props, ref) {
|
|
|
760
760
|
{
|
|
761
761
|
role: "option",
|
|
762
762
|
"aria-selected": false,
|
|
763
|
-
className:
|
|
763
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
764
764
|
"flex h-11 min-w-0 cursor-pointer items-center px-[var(--spacing-system-mf)] transition-colors md:h-12",
|
|
765
765
|
"text-ods-accent text-h4",
|
|
766
766
|
"hover:bg-ods-bg-hover"
|
|
@@ -781,7 +781,7 @@ function AutocompleteInner(props, ref) {
|
|
|
781
781
|
"data-loading-item": true,
|
|
782
782
|
role: "option",
|
|
783
783
|
"aria-selected": isSelected,
|
|
784
|
-
className:
|
|
784
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
785
785
|
// `min-h` rather than a fixed height: an option may carry
|
|
786
786
|
// a second line, and a clipped one is worse than a taller row.
|
|
787
787
|
AUTOCOMPLETE_OPTION_ROW_CLASS,
|
|
@@ -803,7 +803,7 @@ function AutocompleteInner(props, ref) {
|
|
|
803
803
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
804
804
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 }),
|
|
805
805
|
onDeleteOption && !isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
806
|
-
|
|
806
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
807
807
|
{
|
|
808
808
|
variant: "transparent",
|
|
809
809
|
size: "icon-sm",
|
|
@@ -831,7 +831,7 @@ function AutocompleteInner(props, ref) {
|
|
|
831
831
|
if (inScope || fieldLoading)
|
|
832
832
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AutocompleteSkeleton, { label, labelVariant, className });
|
|
833
833
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
834
|
-
|
|
834
|
+
_chunkSWF6TNZ3cjs.FieldWrapper,
|
|
835
835
|
{
|
|
836
836
|
label,
|
|
837
837
|
labelVariant,
|
|
@@ -857,7 +857,7 @@ function AutocompleteInner(props, ref) {
|
|
|
857
857
|
multiple && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": "true", className: _chunk7Z536SPRcjs.MEASURE_LAYER_CLASS, children: [
|
|
858
858
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { ref: textMeasureRef, "aria-hidden": "true", className: "whitespace-nowrap text-h4", children: inputPlaceholder }),
|
|
859
859
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: measureRef, "aria-hidden": "true", className: "flex w-max gap-2", children: selectedOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
860
|
-
|
|
860
|
+
_chunkBOS7OIC4cjs.Tag,
|
|
861
861
|
{
|
|
862
862
|
variant: "outline",
|
|
863
863
|
labelClassName: "max-w-[90px] truncate",
|
|
@@ -886,13 +886,13 @@ var SelectTrigger = _react.forwardRef.call(void 0, (allProps, ref) => {
|
|
|
886
886
|
const { className, children, invalid, label, labelVariant, error, ...props } = allProps;
|
|
887
887
|
const errorSlot = "error" in allProps;
|
|
888
888
|
const isInvalid = invalid || !!error;
|
|
889
|
-
const inScope =
|
|
889
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
890
890
|
const trigger = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
891
891
|
SelectPrimitive.Trigger,
|
|
892
892
|
{
|
|
893
893
|
ref,
|
|
894
894
|
"data-invalid": isInvalid || void 0,
|
|
895
|
-
className:
|
|
895
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
896
896
|
// Layout & spacing - match Input
|
|
897
897
|
// text-left resets the <button> UA default text-align:center, which the
|
|
898
898
|
// SelectValue span inherits and would otherwise center short values,
|
|
@@ -920,11 +920,11 @@ var SelectTrigger = _react.forwardRef.call(void 0, (allProps, ref) => {
|
|
|
920
920
|
),
|
|
921
921
|
...props,
|
|
922
922
|
children: [
|
|
923
|
-
inScope ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
923
|
+
inScope ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWF6TNZ3cjs.FieldValueSkeleton, {}) : children,
|
|
924
924
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
925
925
|
_chunkSKI6NKOEcjs.Chevron02DownIcon,
|
|
926
926
|
{
|
|
927
|
-
className:
|
|
927
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
928
928
|
"shrink-0 text-ods-text-secondary transition-all duration-200 group-data-[state=open]:rotate-180",
|
|
929
929
|
isInvalid ? "text-ods-error" : "group-data-[state=open]:text-ods-accent"
|
|
930
930
|
),
|
|
@@ -934,14 +934,14 @@ var SelectTrigger = _react.forwardRef.call(void 0, (allProps, ref) => {
|
|
|
934
934
|
]
|
|
935
935
|
}
|
|
936
936
|
);
|
|
937
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
937
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSWF6TNZ3cjs.FieldWrapper, { label, labelVariant, error, errorSlot, children: trigger });
|
|
938
938
|
});
|
|
939
939
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
940
940
|
var SelectScrollUpButton = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
941
941
|
SelectPrimitive.ScrollUpButton,
|
|
942
942
|
{
|
|
943
943
|
ref,
|
|
944
|
-
className:
|
|
944
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex cursor-default items-center justify-center py-1", className),
|
|
945
945
|
...props,
|
|
946
946
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronUp, { className: "h-4 w-4" })
|
|
947
947
|
}
|
|
@@ -951,19 +951,19 @@ var SelectScrollDownButton = _react.forwardRef.call(void 0, ({ className, ...pro
|
|
|
951
951
|
SelectPrimitive.ScrollDownButton,
|
|
952
952
|
{
|
|
953
953
|
ref,
|
|
954
|
-
className:
|
|
954
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "flex cursor-default items-center justify-center py-1", className),
|
|
955
955
|
...props,
|
|
956
956
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDown, { className: "h-4 w-4" })
|
|
957
957
|
}
|
|
958
958
|
));
|
|
959
959
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
960
960
|
var SelectContent = _react.forwardRef.call(void 0, ({ className, children, position = "popper", ...props }, ref) => {
|
|
961
|
-
const container =
|
|
961
|
+
const container = _chunkS3QXLD4Xcjs.usePortalContainer.call(void 0, );
|
|
962
962
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Portal, { container: _nullishCoalesce(container, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
963
963
|
SelectPrimitive.Content,
|
|
964
964
|
{
|
|
965
965
|
ref,
|
|
966
|
-
className:
|
|
966
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
967
967
|
"relative z-[9999] max-h-96 overflow-hidden rounded-[4px] border border-ods-border bg-ods-card text-ods-text-primary",
|
|
968
968
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
969
969
|
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
@@ -984,13 +984,13 @@ var SelectContent = _react.forwardRef.call(void 0, ({ className, children, posit
|
|
|
984
984
|
) });
|
|
985
985
|
});
|
|
986
986
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
987
|
-
var SelectLabel = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Label, { ref, className:
|
|
987
|
+
var SelectLabel = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Label, { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "py-1.5 pl-8 pr-2 font-semibold text-h6", className), ...props }));
|
|
988
988
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
989
989
|
var SelectItem = _react.forwardRef.call(void 0, ({ className, children, description, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
990
990
|
SelectPrimitive.Item,
|
|
991
991
|
{
|
|
992
992
|
ref,
|
|
993
|
-
className:
|
|
993
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
994
994
|
"flex w-full cursor-pointer select-none items-center justify-between gap-2 border-b border-ods-border px-4 last:border-b-0",
|
|
995
995
|
// Typography - match trigger
|
|
996
996
|
"text-h4",
|
|
@@ -1016,7 +1016,7 @@ var SelectItem = _react.forwardRef.call(void 0, ({ className, children, descript
|
|
|
1016
1016
|
}
|
|
1017
1017
|
));
|
|
1018
1018
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
1019
|
-
var SelectSeparator = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Separator, { ref, className:
|
|
1019
|
+
var SelectSeparator = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Separator, { ref, className: _chunk63A4GZMBcjs.cn.call(void 0, "-mx-1 my-1 h-px bg-ods-border", className), ...props }));
|
|
1020
1020
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
1021
1021
|
|
|
1022
1022
|
// src/components/layout/back-button.tsx
|
|
@@ -1041,9 +1041,9 @@ function BackButton({ label = "Back", className, type = "button", href, ...props
|
|
|
1041
1041
|
value: _value,
|
|
1042
1042
|
...shared
|
|
1043
1043
|
} = props;
|
|
1044
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1044
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { asChild: true, variant: "link", noPaddingX: true, className: _chunk63A4GZMBcjs.cn.call(void 0, BACK_BUTTON_LAYOUT_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...shared, href, children: content }) });
|
|
1045
1045
|
}
|
|
1046
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1046
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "link", noPaddingX: true, type, className: _chunk63A4GZMBcjs.cn.call(void 0, BACK_BUTTON_LAYOUT_CLASS, className), ...props, children: content });
|
|
1047
1047
|
}
|
|
1048
1048
|
|
|
1049
1049
|
// src/components/ui/page-actions.tsx
|
|
@@ -1091,19 +1091,19 @@ function actionToMenuItems(action, idx) {
|
|
|
1091
1091
|
}
|
|
1092
1092
|
function renderActionButton(action, opts = {}) {
|
|
1093
1093
|
if (opts.inert) {
|
|
1094
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1094
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.InertWhileLoading, { className: _chunk63A4GZMBcjs.cn.call(void 0, "inline-flex", opts.fullWidth && "flex-1"), children: renderRawActionButton(action, opts) });
|
|
1095
1095
|
}
|
|
1096
1096
|
const button = renderRawActionButton(action, opts);
|
|
1097
1097
|
if (!action.tooltip) return button;
|
|
1098
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1099
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1100
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1098
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2XLPRW7Vcjs.Tooltip, { children: [
|
|
1099
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.TooltipTrigger, { asChild: true, children: button }),
|
|
1100
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.TooltipContent, { children: action.tooltip })
|
|
1101
1101
|
] }) });
|
|
1102
1102
|
}
|
|
1103
1103
|
function renderRawActionButton(action, opts = {}) {
|
|
1104
1104
|
if (action.iconAction) {
|
|
1105
1105
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1106
|
-
|
|
1106
|
+
_chunkFCZAUK4Dcjs.SplitButton,
|
|
1107
1107
|
{
|
|
1108
1108
|
variant: _nullishCoalesce(action.variant, () => ( void 0)),
|
|
1109
1109
|
href: action.href,
|
|
@@ -1121,11 +1121,11 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
if (action.submenu && action.submenu.length > 0) {
|
|
1123
1123
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1124
|
-
|
|
1124
|
+
_chunk2XLPRW7Vcjs.ActionsMenuDropdown,
|
|
1125
1125
|
{
|
|
1126
1126
|
groups: [{ items: action.submenu }],
|
|
1127
1127
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1128
|
-
|
|
1128
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
1129
1129
|
{
|
|
1130
1130
|
variant: "outline",
|
|
1131
1131
|
disabled: action.disabled,
|
|
@@ -1143,7 +1143,7 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
1143
1143
|
if (isIconOnly) {
|
|
1144
1144
|
const iconNode = action.iconOnlyOnDesktop ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex [&_svg]:!text-ods-text-primary", children: action.icon }) : action.icon;
|
|
1145
1145
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1146
|
-
|
|
1146
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
1147
1147
|
{
|
|
1148
1148
|
variant: action.variant,
|
|
1149
1149
|
size: "icon",
|
|
@@ -1159,7 +1159,7 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
1159
1159
|
);
|
|
1160
1160
|
}
|
|
1161
1161
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1162
|
-
|
|
1162
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
1163
1163
|
{
|
|
1164
1164
|
variant: action.variant,
|
|
1165
1165
|
href: action.href,
|
|
@@ -1176,8 +1176,8 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
1176
1176
|
}
|
|
1177
1177
|
var ACTIONS_GAP = "gap-[var(--spacing-system-xs)]";
|
|
1178
1178
|
function UnknownActionSkeleton({ shape, fullWidth }) {
|
|
1179
|
-
if (shape === "icon") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1180
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1179
|
+
if (shape === "icon") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.InteractiveSkeleton.Button, { size: "icon" });
|
|
1180
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.InteractiveSkeleton.Button, { size: "default", className: fullWidth ? "flex-1" : void 0 });
|
|
1181
1181
|
}
|
|
1182
1182
|
function PageActions({
|
|
1183
1183
|
variant = "icon-buttons",
|
|
@@ -1220,7 +1220,7 @@ function IconButtonsVariant({
|
|
|
1220
1220
|
className,
|
|
1221
1221
|
loading: loadingProp
|
|
1222
1222
|
}) {
|
|
1223
|
-
const loading =
|
|
1223
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1224
1224
|
const unknownSet = !!loadingProp;
|
|
1225
1225
|
const desktopActions = actions.filter((a) => !a.showOnlyMobile);
|
|
1226
1226
|
const hasMenuActions = !!menuActions && menuActions.some((g) => g.items.length > 0);
|
|
@@ -1230,13 +1230,13 @@ function IconButtonsVariant({
|
|
|
1230
1230
|
const mobileMenuGroups = [{ items: actions.flatMap(actionToMenuItems) }, ..._nullishCoalesce(menuActions, () => ( []))];
|
|
1231
1231
|
const hasMobileMenuItems = mobileMenuGroups.some((g) => g.items.length > 0);
|
|
1232
1232
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1233
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1233
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "hidden items-center content-md:flex", ACTIONS_GAP, className), children: [
|
|
1234
1234
|
selector,
|
|
1235
1235
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action, { inert: loading }) }, actionKey(action, idx))),
|
|
1236
1236
|
unknownSet && desktopActions.length === 0 && !hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }),
|
|
1237
|
-
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1237
|
+
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.ActionsMenuDropdown, { groups: menuActions, loading })
|
|
1238
1238
|
] }),
|
|
1239
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1239
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex content-md:hidden", className), children: useSingleActionMobile && singleAction ? renderActionButton(singleAction, { iconOnly: true, inert: loading }) : hasMobileMenuItems ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.ActionsMenuDropdown, { groups: mobileMenuGroups, loading }) : unknownSet ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }) : null })
|
|
1240
1240
|
] });
|
|
1241
1241
|
}
|
|
1242
1242
|
function PrimaryButtonsVariant({
|
|
@@ -1244,7 +1244,7 @@ function PrimaryButtonsVariant({
|
|
|
1244
1244
|
className,
|
|
1245
1245
|
loading: loadingProp
|
|
1246
1246
|
}) {
|
|
1247
|
-
const loading =
|
|
1247
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1248
1248
|
const unknownSet = !!loadingProp;
|
|
1249
1249
|
const sortedActions = [...actions].sort((a, b) => {
|
|
1250
1250
|
if (a.variant === "accent" && b.variant !== "accent") return 1;
|
|
@@ -1253,11 +1253,11 @@ function PrimaryButtonsVariant({
|
|
|
1253
1253
|
});
|
|
1254
1254
|
const desktopActions = sortedActions.filter((a) => !a.showOnlyMobile);
|
|
1255
1255
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1256
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1256
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "hidden items-center md:content-md:flex", ACTIONS_GAP, className), children: [
|
|
1257
1257
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action, { inert: loading }) }, `desktop-${actionKey(action, idx)}`)),
|
|
1258
1258
|
unknownSet && desktopActions.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "label" })
|
|
1259
1259
|
] }),
|
|
1260
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1260
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "hidden items-center md:content-max-md:flex", ACTIONS_GAP, className), children: [
|
|
1261
1261
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompactPrimaryActions, { actions: desktopActions, loading }),
|
|
1262
1262
|
unknownSet && desktopActions.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" })
|
|
1263
1263
|
] }),
|
|
@@ -1271,44 +1271,44 @@ function MenuPrimaryVariant({
|
|
|
1271
1271
|
className,
|
|
1272
1272
|
loading: loadingProp
|
|
1273
1273
|
}) {
|
|
1274
|
-
const loading =
|
|
1274
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1275
1275
|
const unknownSet = !!loadingProp;
|
|
1276
1276
|
const desktopActions = actions.filter((a) => !a.showOnlyMobile);
|
|
1277
1277
|
const hasMenuActions = menuActions.some((g) => g.items.length > 0);
|
|
1278
1278
|
const mobileMenuGroups = [{ items: actions.flatMap(actionToMenuItems) }, ...menuActions];
|
|
1279
1279
|
const hasMobileMenuItems = mobileMenuGroups.some((g) => g.items.length > 0);
|
|
1280
1280
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1281
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1281
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "hidden items-center content-md:flex", ACTIONS_GAP, className), children: [
|
|
1282
1282
|
selector,
|
|
1283
|
-
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1283
|
+
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.ActionsMenuDropdown, { groups: menuActions, loading }),
|
|
1284
1284
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton({ ...action, variant: action.variant || "accent" }, { inert: loading }) }, `desktop-${actionKey(action, idx)}`)),
|
|
1285
1285
|
unknownSet && desktopActions.length === 0 && !hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" })
|
|
1286
1286
|
] }),
|
|
1287
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1287
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex content-md:hidden", className), children: hasMobileMenuItems || selector ? (
|
|
1288
1288
|
// The selector rides into the menu as its header row: on mobile the
|
|
1289
1289
|
// title row has no room for it, and hiding it entirely (what
|
|
1290
1290
|
// `icon-buttons` does) would leave no way to switch views at all.
|
|
1291
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1291
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.ActionsMenuDropdown, { groups: mobileMenuGroups, header: selector, loading })
|
|
1292
1292
|
) : unknownSet ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }) : null })
|
|
1293
1293
|
] });
|
|
1294
1294
|
}
|
|
1295
1295
|
function CompactPrimaryActions({ actions, loading: loadingProp }) {
|
|
1296
|
-
const loading =
|
|
1296
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1297
1297
|
const foldable = actions.filter((action) => action.variant !== "accent" && !!action.label);
|
|
1298
1298
|
const fold = foldable.length > 1;
|
|
1299
1299
|
const inline = fold ? actions.filter((action) => !foldable.includes(action)) : actions;
|
|
1300
1300
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1301
|
-
fold && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1301
|
+
fold && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.ActionsMenuDropdown, { groups: [{ items: foldable.flatMap(actionToMenuItems) }], loading }),
|
|
1302
1302
|
inline.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action, { inert: loading }) }, `compact-${actionKey(action, idx)}`))
|
|
1303
1303
|
] });
|
|
1304
1304
|
}
|
|
1305
1305
|
function MobileBottomActions({ actions, loading: loadingProp }) {
|
|
1306
|
-
const loading =
|
|
1306
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1307
1307
|
const unknownSet = !!loadingProp;
|
|
1308
1308
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1309
1309
|
"div",
|
|
1310
1310
|
{
|
|
1311
|
-
className:
|
|
1311
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1312
1312
|
"fixed bottom-0 left-0 right-0 z-50 md:hidden",
|
|
1313
1313
|
"border-t border-ods-border bg-ods-card",
|
|
1314
1314
|
// `lf` (24px at every breakpoint), NOT `l` — this bar is `md:hidden`, so the
|
|
@@ -1331,23 +1331,23 @@ function usePageActionsBottomPadding(variant) {
|
|
|
1331
1331
|
// src/components/ui/entity-image.tsx
|
|
1332
1332
|
|
|
1333
1333
|
|
|
1334
|
-
var ENTITY_IMAGE_SIZE =
|
|
1334
|
+
var ENTITY_IMAGE_SIZE = _chunk3TOWCFIKcjs.TILE_SIZE.entity;
|
|
1335
1335
|
var ENTITY_IMAGE_RADIUS_CLASS = "rounded-md";
|
|
1336
1336
|
function EntityImage({ src, alt, fallbackText, sizeClassName, className }) {
|
|
1337
|
-
const held =
|
|
1337
|
+
const held = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
1338
1338
|
const authedSrc = _chunkLC65AC6Mcjs.useAuthedImageSrc.call(void 0, held ? void 0 : src);
|
|
1339
1339
|
const resolvedSrc = authedSrc;
|
|
1340
1340
|
const [failedSrc, setFailedSrc] = _react2.default.useState(null);
|
|
1341
1341
|
const imageFailed = resolvedSrc !== void 0 && failedSrc === resolvedSrc;
|
|
1342
1342
|
if (held) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityImageSkeleton, { sizeClassName, className });
|
|
1343
1343
|
const showFallback = imageFailed || !resolvedSrc;
|
|
1344
|
-
const initials =
|
|
1344
|
+
const initials = _chunkBOS7OIC4cjs.personInitials.call(void 0, _nullishCoalesce(fallbackText, () => ( alt)));
|
|
1345
1345
|
if (showFallback) {
|
|
1346
1346
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1347
1347
|
"div",
|
|
1348
1348
|
{
|
|
1349
1349
|
"aria-label": alt,
|
|
1350
|
-
className:
|
|
1350
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1351
1351
|
"flex shrink-0 select-none items-center justify-center border border-ods-border bg-ods-bg text-ods-text-secondary text-h4",
|
|
1352
1352
|
ENTITY_IMAGE_RADIUS_CLASS,
|
|
1353
1353
|
_nullishCoalesce(sizeClassName, () => ( ENTITY_IMAGE_SIZE)),
|
|
@@ -1358,28 +1358,28 @@ function EntityImage({ src, alt, fallbackText, sizeClassName, className }) {
|
|
|
1358
1358
|
);
|
|
1359
1359
|
}
|
|
1360
1360
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1361
|
-
|
|
1361
|
+
_chunk3V5JWG27cjs.next_image_default,
|
|
1362
1362
|
{
|
|
1363
1363
|
src: resolvedSrc,
|
|
1364
1364
|
alt: _nullishCoalesce(alt, () => ( "")),
|
|
1365
1365
|
onError: () => setFailedSrc(resolvedSrc),
|
|
1366
|
-
className:
|
|
1366
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1367
1367
|
"shrink-0 border border-ods-border object-contain",
|
|
1368
1368
|
ENTITY_IMAGE_RADIUS_CLASS,
|
|
1369
1369
|
_nullishCoalesce(sizeClassName, () => ( ENTITY_IMAGE_SIZE)),
|
|
1370
1370
|
className
|
|
1371
1371
|
),
|
|
1372
|
-
width:
|
|
1373
|
-
height:
|
|
1372
|
+
width: _chunkQOAA7ZHBcjs.IMAGE_FIXED_PX.thumb,
|
|
1373
|
+
height: _chunkQOAA7ZHBcjs.IMAGE_FIXED_PX.thumb,
|
|
1374
1374
|
unoptimized: true
|
|
1375
1375
|
}
|
|
1376
1376
|
);
|
|
1377
1377
|
}
|
|
1378
1378
|
function EntityImageSkeleton({ sizeClassName, className }) {
|
|
1379
1379
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1380
|
-
|
|
1380
|
+
_chunk3TOWCFIKcjs.UnifiedSkeleton,
|
|
1381
1381
|
{
|
|
1382
|
-
className:
|
|
1382
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "shrink-0", ENTITY_IMAGE_RADIUS_CLASS, _nullishCoalesce(sizeClassName, () => ( ENTITY_IMAGE_SIZE)), className)
|
|
1383
1383
|
}
|
|
1384
1384
|
);
|
|
1385
1385
|
}
|
|
@@ -1425,7 +1425,7 @@ function TitleBlock({
|
|
|
1425
1425
|
titleWrap = false,
|
|
1426
1426
|
titleSkeletonLines
|
|
1427
1427
|
}) {
|
|
1428
|
-
const scoped =
|
|
1428
|
+
const scoped = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
1429
1429
|
const titleLoading = !!loading || scoped && title === "";
|
|
1430
1430
|
const subtitleLoading = !!loading || scoped && subtitle === "";
|
|
1431
1431
|
const hasSubtitleRow = !!subtitle || subtitleRow === "always" || subtitleRow === "while-loading" && !!loading || scoped && subtitle === "";
|
|
@@ -1440,19 +1440,19 @@ function TitleBlock({
|
|
|
1440
1440
|
const { ref: subtitleRef, isTruncated: subtitleTruncated } = _chunkLC65AC6Mcjs.useIsTruncated.call(void 0,
|
|
1441
1441
|
subtitleLoading ? null : subtitle
|
|
1442
1442
|
);
|
|
1443
|
-
const titleNode = titleLoading && titleSkeletonLines && titleWrap ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1443
|
+
const titleNode = titleLoading && titleSkeletonLines && titleWrap ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLinesByBreakpointSkeleton, { as: "span", lines: titleSkeletonLines }) : titleLoading && titleSkeletonLines ? (
|
|
1444
1444
|
// An unclamped title wraps where the WINDOW is narrow (a phone), not where a docked panel narrows the content:
|
|
1445
1445
|
// its loading lines follow the viewport step, the phone count below `md` and the `md` count above it.
|
|
1446
1446
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1447
1447
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "contents md:hidden", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1448
|
-
|
|
1448
|
+
_chunk3TOWCFIKcjs.TextLinesByBreakpointSkeleton,
|
|
1449
1449
|
{
|
|
1450
1450
|
as: "span",
|
|
1451
1451
|
lines: { phone: titleSkeletonLines.phone, md: titleSkeletonLines.phone, lg: titleSkeletonLines.phone }
|
|
1452
1452
|
}
|
|
1453
1453
|
) }),
|
|
1454
1454
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "hidden md:contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1455
|
-
|
|
1455
|
+
_chunk3TOWCFIKcjs.TextLinesByBreakpointSkeleton,
|
|
1456
1456
|
{
|
|
1457
1457
|
as: "span",
|
|
1458
1458
|
lines: { phone: titleSkeletonLines.md, md: titleSkeletonLines.md, lg: titleSkeletonLines.lg }
|
|
@@ -1460,23 +1460,23 @@ function TitleBlock({
|
|
|
1460
1460
|
) })
|
|
1461
1461
|
] })
|
|
1462
1462
|
) : titleLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1463
|
-
|
|
1463
|
+
_chunk3TOWCFIKcjs.UnifiedSkeleton,
|
|
1464
1464
|
{
|
|
1465
1465
|
as: "span",
|
|
1466
1466
|
"aria-hidden": true,
|
|
1467
|
-
className:
|
|
1467
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, TITLE_TEXT_SKELETON_CLASS, skeletonSize.width, skeletonSize.height)
|
|
1468
1468
|
}
|
|
1469
1469
|
) : title;
|
|
1470
1470
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1471
1471
|
"div",
|
|
1472
1472
|
{
|
|
1473
|
-
className:
|
|
1473
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1474
1474
|
"flex items-end justify-between gap-[var(--spacing-system-m)]",
|
|
1475
1475
|
// md+: one wrapping row — actions stay inline with a short title and
|
|
1476
1476
|
// wrap to a second row only when the title overflows (ClickUp 86ahd6uy5).
|
|
1477
1477
|
"content-md:flex-wrap content-md:content-end",
|
|
1478
1478
|
"pt-[var(--spacing-system-l)]",
|
|
1479
|
-
variant === "card" ?
|
|
1479
|
+
variant === "card" ? _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1480
1480
|
"border-b border-ods-border bg-ods-card",
|
|
1481
1481
|
"px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]",
|
|
1482
1482
|
"content-md:border-b-0 content-md:bg-transparent",
|
|
@@ -1489,7 +1489,7 @@ function TitleBlock({
|
|
|
1489
1489
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1490
1490
|
"div",
|
|
1491
1491
|
{
|
|
1492
|
-
className:
|
|
1492
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1493
1493
|
"flex min-w-0 flex-1 flex-col justify-center gap-[var(--spacing-system-xs)] content-md:max-w-full content-md:flex-none",
|
|
1494
1494
|
TITLE_BLOCK_MIN_HEIGHT,
|
|
1495
1495
|
// A wrapping title's loading lines stand for a title that fills the row (its typical lines are full ones), so the
|
|
@@ -1503,7 +1503,7 @@ function TitleBlock({
|
|
|
1503
1503
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
1504
1504
|
(titleLoading || title) && (titleAdornment ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-m)]", children: [
|
|
1505
1505
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1506
|
-
|
|
1506
|
+
_chunkBOS7OIC4cjs.FloatingTooltip,
|
|
1507
1507
|
{
|
|
1508
1508
|
content: title,
|
|
1509
1509
|
side: "bottom",
|
|
@@ -1513,41 +1513,41 @@ function TitleBlock({
|
|
|
1513
1513
|
PageTitle,
|
|
1514
1514
|
{
|
|
1515
1515
|
ref: titleRef,
|
|
1516
|
-
className:
|
|
1516
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, titleClass, "min-w-0 text-ods-text-primary", titleOverflowClass),
|
|
1517
1517
|
children: titleNode
|
|
1518
1518
|
}
|
|
1519
1519
|
)
|
|
1520
1520
|
}
|
|
1521
1521
|
),
|
|
1522
1522
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: titleAdornment })
|
|
1523
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1523
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOS7OIC4cjs.FloatingTooltip, { content: title, side: "bottom", disabled: !titleTruncated, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTitle, { ref: titleRef, className: _chunk63A4GZMBcjs.cn.call(void 0, titleClass, "text-ods-text-primary", titleOverflowClass), children: titleNode }) })),
|
|
1524
1524
|
hasSubtitleRow && /* The NBSP is a pure spacer, reached only in `'always'` mode: an
|
|
1525
1525
|
empty `p` collapses to zero height (its only content would be
|
|
1526
1526
|
collapsible whitespace), which is exactly the shift that mode
|
|
1527
1527
|
exists to prevent. Hidden from AT — it carries no meaning. */
|
|
1528
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1528
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOS7OIC4cjs.FloatingTooltip, { content: subtitle, side: "bottom", disabled: !subtitleTruncated, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1529
1529
|
"p",
|
|
1530
1530
|
{
|
|
1531
1531
|
ref: subtitleRef,
|
|
1532
1532
|
className: "truncate text-ods-text-secondary text-h6",
|
|
1533
1533
|
"aria-hidden": !subtitleLoading && !subtitle ? true : void 0,
|
|
1534
1534
|
children: subtitleLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1535
|
-
|
|
1535
|
+
_chunk3TOWCFIKcjs.UnifiedSkeleton,
|
|
1536
1536
|
{
|
|
1537
1537
|
as: "span",
|
|
1538
1538
|
"aria-hidden": true,
|
|
1539
|
-
className:
|
|
1539
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, TITLE_TEXT_SKELETON_CLASS, "h-2.5 w-28 content-md:h-3 content-md:w-36")
|
|
1540
1540
|
}
|
|
1541
1541
|
) : subtitle || "\xA0"
|
|
1542
1542
|
}
|
|
1543
1543
|
) })
|
|
1544
1544
|
] })
|
|
1545
1545
|
] }) : title && (titleAdornment ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-m)]", children: [
|
|
1546
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1546
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkBOS7OIC4cjs.FloatingTooltip, { content: title, side: "bottom", disabled: !titleTruncated, triggerClassName: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1547
1547
|
PageTitle,
|
|
1548
1548
|
{
|
|
1549
1549
|
ref: titleRef,
|
|
1550
|
-
className:
|
|
1550
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, titleClass, "min-w-0 text-ods-text-primary", titleOverflowClass),
|
|
1551
1551
|
children: title
|
|
1552
1552
|
}
|
|
1553
1553
|
) }),
|
|
@@ -1557,7 +1557,7 @@ function TitleBlock({
|
|
|
1557
1557
|
wraps; `titleWrap` only adds break-words for pathological
|
|
1558
1558
|
unbroken tokens. No class change when the prop is unset —
|
|
1559
1559
|
the frozen baseline stays byte-identical. */
|
|
1560
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTitle, { className:
|
|
1560
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTitle, { className: _chunk63A4GZMBcjs.cn.call(void 0, titleClass, "text-ods-text-primary", titleWrap && "break-words"), children: title })
|
|
1561
1561
|
))
|
|
1562
1562
|
]
|
|
1563
1563
|
}
|
|
@@ -1604,7 +1604,7 @@ function PageLayout({
|
|
|
1604
1604
|
const hasActions = actions && actions.length > 0;
|
|
1605
1605
|
const needsBottomPadding = hasActions && actionsVariant === "primary-buttons";
|
|
1606
1606
|
const hasHeader = showHeader && (title || subtitle || image || backButton || hasActions || selector || loading);
|
|
1607
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1607
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex w-full flex-col", className), children: [
|
|
1608
1608
|
hasHeader && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1609
1609
|
TitleBlock,
|
|
1610
1610
|
{
|
|
@@ -1629,7 +1629,7 @@ function PageLayout({
|
|
|
1629
1629
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1630
1630
|
"div",
|
|
1631
1631
|
{
|
|
1632
|
-
className:
|
|
1632
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1633
1633
|
"flex flex-1 flex-col gap-[var(--spacing-system-l)]",
|
|
1634
1634
|
needsBottomPadding && "pb-28 content-md:pb-0",
|
|
1635
1635
|
contentClassName
|
|
@@ -1658,12 +1658,12 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1658
1658
|
const faces = ordered.slice(0, max);
|
|
1659
1659
|
const overflow = ordered.length - faces.length;
|
|
1660
1660
|
const Chevron = open ? _chunk3MRRIHC2cjs.Chevron02UpIcon : _chunkSKI6NKOEcjs.Chevron02DownIcon;
|
|
1661
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1661
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
1662
1662
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1663
|
-
|
|
1663
|
+
_chunkS3QXLD4Xcjs.DropdownMenuTrigger,
|
|
1664
1664
|
{
|
|
1665
1665
|
"aria-label": `In this session: ${ordered.map(viewerLabel).join(", ")}`,
|
|
1666
|
-
className:
|
|
1666
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1667
1667
|
"flex shrink-0 items-center gap-[var(--spacing-system-xxs)] rounded-md outline-none",
|
|
1668
1668
|
"focus-visible:ring-2 focus-visible:ring-ods-focus",
|
|
1669
1669
|
className
|
|
@@ -1671,14 +1671,14 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1671
1671
|
children: [
|
|
1672
1672
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center", children: [
|
|
1673
1673
|
faces.map((viewer, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1674
|
-
|
|
1674
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
1675
1675
|
{
|
|
1676
1676
|
variant: "round",
|
|
1677
1677
|
sizePx: 32,
|
|
1678
1678
|
src: _nullishCoalesce(viewer.avatarUrl, () => ( void 0)),
|
|
1679
1679
|
alt: viewer.name,
|
|
1680
1680
|
fallback: viewer.name,
|
|
1681
|
-
className:
|
|
1681
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1682
1682
|
"relative bg-ods-bg",
|
|
1683
1683
|
viewer.isHost ? "ring-2 ring-ods-accent" : "ring-1 ring-ods-border",
|
|
1684
1684
|
index > 0 && "-ml-2"
|
|
@@ -1696,16 +1696,16 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1696
1696
|
]
|
|
1697
1697
|
}
|
|
1698
1698
|
),
|
|
1699
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1700
|
-
|
|
1699
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkS3QXLD4Xcjs.DropdownMenuContent, { align: "end", className: "w-[280px] p-0", children: ordered.map((viewer) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1700
|
+
_chunkS3QXLD4Xcjs.DropdownMenuItem,
|
|
1701
1701
|
{
|
|
1702
|
-
className:
|
|
1702
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1703
1703
|
"gap-[var(--spacing-system-xsf)] rounded-none border-b border-ods-border bg-ods-bg last:border-b-0",
|
|
1704
1704
|
"py-[var(--spacing-system-s)] pl-[var(--spacing-system-mf)] pr-[var(--spacing-system-xs)] text-h4"
|
|
1705
1705
|
),
|
|
1706
1706
|
children: [
|
|
1707
1707
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1708
|
-
|
|
1708
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
1709
1709
|
{
|
|
1710
1710
|
variant: "round",
|
|
1711
1711
|
sizePx: 24,
|
|
@@ -1751,7 +1751,7 @@ function RemoteSessionScope({ children, className }) {
|
|
|
1751
1751
|
function RemoteSessionOrgLogo({ name, logoUrl, sizePx, className }) {
|
|
1752
1752
|
if (logoUrl) {
|
|
1753
1753
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1754
|
-
|
|
1754
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
1755
1755
|
{
|
|
1756
1756
|
variant: "square",
|
|
1757
1757
|
fit: "contain",
|
|
@@ -1759,7 +1759,7 @@ function RemoteSessionOrgLogo({ name, logoUrl, sizePx, className }) {
|
|
|
1759
1759
|
src: logoUrl,
|
|
1760
1760
|
alt: name,
|
|
1761
1761
|
fallback: name,
|
|
1762
|
-
className:
|
|
1762
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "shrink-0 rounded-md border border-ods-border bg-ods-card", className)
|
|
1763
1763
|
}
|
|
1764
1764
|
);
|
|
1765
1765
|
}
|
|
@@ -1769,7 +1769,7 @@ function RemoteSessionOrgLogo({ name, logoUrl, sizePx, className }) {
|
|
|
1769
1769
|
role: "img",
|
|
1770
1770
|
"aria-label": name,
|
|
1771
1771
|
style: { width: sizePx, height: sizePx },
|
|
1772
|
-
className:
|
|
1772
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1773
1773
|
"flex shrink-0 items-center justify-center rounded-md border border-ods-border bg-ods-card",
|
|
1774
1774
|
className
|
|
1775
1775
|
),
|
|
@@ -1788,7 +1788,7 @@ function RemoteSessionRecordingTag({ className }) {
|
|
|
1788
1788
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1789
1789
|
"div",
|
|
1790
1790
|
{
|
|
1791
|
-
className:
|
|
1791
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1792
1792
|
"flex h-8 items-center gap-[var(--spacing-system-xs)] self-start rounded-md bg-ods-success-secondary p-[var(--spacing-system-xsf)]",
|
|
1793
1793
|
className
|
|
1794
1794
|
),
|
|
@@ -1817,7 +1817,7 @@ function RemoteSessionDragger({ dragHandlers }) {
|
|
|
1817
1817
|
"span",
|
|
1818
1818
|
{
|
|
1819
1819
|
"aria-hidden": true,
|
|
1820
|
-
className:
|
|
1820
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1821
1821
|
"absolute right-[var(--spacing-system-xsf)] top-[var(--spacing-system-xsf)] text-ods-text-secondary",
|
|
1822
1822
|
dragHandlers && REMOTE_SESSION_DRAG_HANDLE_CLASS
|
|
1823
1823
|
),
|
|
@@ -1861,9 +1861,9 @@ function RemoteAccessRequestCard({
|
|
|
1861
1861
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteSessionOrgLogo, { name: organizationName, logoUrl: party.organizationLogoUrl, sizePx: 64 }),
|
|
1862
1862
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
1863
1863
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full truncate text-ods-text-primary text-h3", children: organizationName }),
|
|
1864
|
-
siteUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full truncate text-ods-text-secondary text-h4", children:
|
|
1864
|
+
siteUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full truncate text-ods-text-secondary text-h4", children: _chunkBOS7OIC4cjs.formatUrlForDisplay.call(void 0, siteUrl, { keepWww: true }) })
|
|
1865
1865
|
] }),
|
|
1866
|
-
openableSite && onOpenSite && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1866
|
+
openableSite && onOpenSite && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", size: "icon", "aria-label": "Open website", onClick: () => onOpenSite(openableSite), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkEDVT7OAScjs.ExternalLinkIcon, { size: 24, color: "currentColor" }) })
|
|
1867
1867
|
] }),
|
|
1868
1868
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: [
|
|
1869
1869
|
"A technician from ",
|
|
@@ -1879,7 +1879,7 @@ function RemoteAccessRequestCard({
|
|
|
1879
1879
|
] }),
|
|
1880
1880
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-stretch gap-[var(--spacing-system-l)]", children: [
|
|
1881
1881
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1882
|
-
|
|
1882
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
1883
1883
|
{
|
|
1884
1884
|
variant: "outline",
|
|
1885
1885
|
fullWidth: true,
|
|
@@ -1890,7 +1890,7 @@ function RemoteAccessRequestCard({
|
|
|
1890
1890
|
}
|
|
1891
1891
|
),
|
|
1892
1892
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1893
|
-
|
|
1893
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
1894
1894
|
{
|
|
1895
1895
|
variant: "accent",
|
|
1896
1896
|
fullWidth: true,
|
|
@@ -1913,14 +1913,14 @@ var RemoteSessionBlockFrame = _react.forwardRef.call(void 0,
|
|
|
1913
1913
|
"div",
|
|
1914
1914
|
{
|
|
1915
1915
|
ref,
|
|
1916
|
-
className:
|
|
1916
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1917
1917
|
"flex w-[440px] shrink-0 flex-col overflow-hidden rounded-md border border-ods-border bg-ods-bg",
|
|
1918
1918
|
expanded && "h-[680px]",
|
|
1919
1919
|
className
|
|
1920
1920
|
),
|
|
1921
1921
|
children: [
|
|
1922
1922
|
children,
|
|
1923
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 border-t border-ods-border bg-ods-card", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1923
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 border-t border-ods-border bg-ods-card", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "row", type: "button", className: "h-12", onClick: onHide, children: [
|
|
1924
1924
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFM7BOWEIcjs.Chevrons03RightIcon, { size: 24 }),
|
|
1925
1925
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-secondary", children: "Hide this Block" }),
|
|
1926
1926
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1940,7 +1940,7 @@ var RemoteSessionBlockFrame = _react.forwardRef.call(void 0,
|
|
|
1940
1940
|
RemoteSessionBlockFrame.displayName = "RemoteSessionBlockFrame";
|
|
1941
1941
|
function RemoteSessionEndButton({ onEndSession }) {
|
|
1942
1942
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1943
|
-
|
|
1943
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
1944
1944
|
{
|
|
1945
1945
|
variant: "outline",
|
|
1946
1946
|
fullWidth: true,
|
|
@@ -1965,14 +1965,14 @@ function RemoteSessionSummary({
|
|
|
1965
1965
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1966
1966
|
"div",
|
|
1967
1967
|
{
|
|
1968
|
-
className:
|
|
1968
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
1969
1969
|
"flex w-full items-center gap-[var(--spacing-system-xs)] pr-[var(--spacing-system-mf)]",
|
|
1970
1970
|
dragHandlers && REMOTE_SESSION_DRAG_HANDLE_CLASS
|
|
1971
1971
|
),
|
|
1972
1972
|
...dragHandlers,
|
|
1973
1973
|
children: [
|
|
1974
1974
|
technician ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1975
|
-
|
|
1975
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
1976
1976
|
{
|
|
1977
1977
|
variant: "round",
|
|
1978
1978
|
sizePx: 48,
|
|
@@ -1998,7 +1998,7 @@ function RemoteSessionSummary({
|
|
|
1998
1998
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteSessionStatusRow, { showRecordingTag, viewers }),
|
|
1999
1999
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-stretch gap-[var(--spacing-system-m)]", children: [
|
|
2000
2000
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2001
|
-
|
|
2001
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2002
2002
|
{
|
|
2003
2003
|
variant: "outline",
|
|
2004
2004
|
fullWidth: true,
|
|
@@ -2015,18 +2015,18 @@ var RemoteSessionMinimizedChip = _react.forwardRef.call(void 0,
|
|
|
2015
2015
|
({ party, onExpand, dragHandlers }, ref) => {
|
|
2016
2016
|
const technician = party.technicianName;
|
|
2017
2017
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2018
|
-
|
|
2018
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2019
2019
|
{
|
|
2020
2020
|
variant: "card",
|
|
2021
2021
|
ref,
|
|
2022
2022
|
type: "button",
|
|
2023
2023
|
"aria-label": "Show session block",
|
|
2024
|
-
className:
|
|
2024
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "w-auto shrink-0", dragHandlers && REMOTE_SESSION_DRAG_HANDLE_CLASS),
|
|
2025
2025
|
onClick: onExpand,
|
|
2026
2026
|
...dragHandlers,
|
|
2027
2027
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-col overflow-hidden rounded-md border border-ods-border", children: [
|
|
2028
2028
|
technician ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2029
|
-
|
|
2029
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
2030
2030
|
{
|
|
2031
2031
|
sizePx: 48,
|
|
2032
2032
|
src: _nullishCoalesce(party.technicianAvatarUrl, () => ( void 0)),
|
|
@@ -2088,7 +2088,7 @@ function RemoteSessionChatPanel({
|
|
|
2088
2088
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2089
2089
|
"div",
|
|
2090
2090
|
{
|
|
2091
|
-
className:
|
|
2091
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
2092
2092
|
"flex w-full flex-col pr-[var(--spacing-system-mf)]",
|
|
2093
2093
|
dragHandlers && REMOTE_SESSION_DRAG_HANDLE_CLASS
|
|
2094
2094
|
),
|
|
@@ -2109,7 +2109,7 @@ function RemoteSessionChatPanel({
|
|
|
2109
2109
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteSessionStatusRow, { showRecordingTag, viewers }),
|
|
2110
2110
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-stretch gap-[var(--spacing-system-m)]", children: [
|
|
2111
2111
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2112
|
-
|
|
2112
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2113
2113
|
{
|
|
2114
2114
|
variant: "outline",
|
|
2115
2115
|
fullWidth: true,
|
|
@@ -2153,7 +2153,7 @@ function RemoteSessionChatPanel({
|
|
|
2153
2153
|
}
|
|
2154
2154
|
),
|
|
2155
2155
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2156
|
-
|
|
2156
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2157
2157
|
{
|
|
2158
2158
|
variant: "transparent",
|
|
2159
2159
|
size: "icon",
|
|
@@ -2178,7 +2178,7 @@ function RemoteSessionChatMessageRow({
|
|
|
2178
2178
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
2179
2179
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2180
2180
|
isTechnician && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2181
|
-
|
|
2181
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
2182
2182
|
{
|
|
2183
2183
|
variant: "round",
|
|
2184
2184
|
sizePx: 16,
|
|
@@ -2189,7 +2189,7 @@ function RemoteSessionChatMessageRow({
|
|
|
2189
2189
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2190
2190
|
"span",
|
|
2191
2191
|
{
|
|
2192
|
-
className:
|
|
2192
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
2193
2193
|
"min-w-0 flex-1 truncate text-code",
|
|
2194
2194
|
isTechnician ? "text-ods-accent" : "text-ods-text-secondary"
|
|
2195
2195
|
),
|
|
@@ -2217,11 +2217,11 @@ function RemoteDesktopChatMessageRow({
|
|
|
2217
2217
|
loading: loadingProp = false,
|
|
2218
2218
|
...props
|
|
2219
2219
|
}) {
|
|
2220
|
-
const loading =
|
|
2221
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: MESSAGE_ROW_CLASS, "aria-hidden": loading || void 0, ...
|
|
2220
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
2221
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: MESSAGE_ROW_CLASS, "aria-hidden": loading || void 0, ..._chunk63A4GZMBcjs.loadingItemProps.call(void 0, props), children: [
|
|
2222
2222
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: MESSAGE_HEAD_CLASS, children: [
|
|
2223
2223
|
isTechnician && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2224
|
-
|
|
2224
|
+
_chunkBOS7OIC4cjs.SquareAvatar,
|
|
2225
2225
|
{
|
|
2226
2226
|
loading,
|
|
2227
2227
|
variant: "round",
|
|
@@ -2234,16 +2234,16 @@ function RemoteDesktopChatMessageRow({
|
|
|
2234
2234
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2235
2235
|
"span",
|
|
2236
2236
|
{
|
|
2237
|
-
className:
|
|
2238
|
-
children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2237
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, MESSAGE_NAME_CLASS, !loading && (isTechnician ? "text-ods-accent" : "text-ods-text-secondary")),
|
|
2238
|
+
children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) : authorName
|
|
2239
2239
|
}
|
|
2240
2240
|
),
|
|
2241
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2241
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", as: "span", className: "w-12 shrink-0" }) : (
|
|
2242
2242
|
// The time is in the viewer's zone, which a server render cannot know.
|
|
2243
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { suppressHydrationWarning: true, className: "shrink-0 text-ods-text-secondary text-h6", children:
|
|
2243
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { suppressHydrationWarning: true, className: "shrink-0 text-ods-text-secondary text-h6", children: _chunkZRDVFADQcjs.formatTime.call(void 0, sentAt) })
|
|
2244
2244
|
)
|
|
2245
2245
|
] }),
|
|
2246
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2246
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", className: "w-3/4" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "whitespace-pre-wrap text-ods-text-primary text-h4", children: body })
|
|
2247
2247
|
] });
|
|
2248
2248
|
}
|
|
2249
2249
|
|
|
@@ -2262,7 +2262,7 @@ function RemoteDesktopChatPanel({
|
|
|
2262
2262
|
}) {
|
|
2263
2263
|
const scrollRef = _react.useRef.call(void 0, null);
|
|
2264
2264
|
const rows = messages.filter((message) => message.author !== "system");
|
|
2265
|
-
const loading =
|
|
2265
|
+
const loading = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, ) || rows.length === 0 && !!loadingProp;
|
|
2266
2266
|
_react.useEffect.call(void 0, () => {
|
|
2267
2267
|
const el = scrollRef.current;
|
|
2268
2268
|
if (el) el.scrollTop = el.scrollHeight;
|
|
@@ -2271,7 +2271,7 @@ function RemoteDesktopChatPanel({
|
|
|
2271
2271
|
"aside",
|
|
2272
2272
|
{
|
|
2273
2273
|
"aria-label": "Session chat",
|
|
2274
|
-
className:
|
|
2274
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
2275
2275
|
"flex flex-col gap-[var(--spacing-system-mf)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-mf)]",
|
|
2276
2276
|
variant === "side" ? "h-full w-[400px] flex-shrink-0" : "absolute bottom-[var(--spacing-system-mf)] right-[var(--spacing-system-mf)] top-[calc(var(--spacing-system-xlf)+var(--spacing-system-mf))] z-10 w-[360px] shadow-lg"
|
|
2277
2277
|
),
|
|
@@ -2279,7 +2279,7 @@ function RemoteDesktopChatPanel({
|
|
|
2279
2279
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: scrollRef, className: "min-h-0 flex-1 overflow-y-auto", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-h-full flex-col justify-end gap-[var(--spacing-system-xsf)]", children: loading ? (
|
|
2280
2280
|
// The chat while it is read: a screen of the panel's own message rows, stacked by a one-column grid
|
|
2281
2281
|
// (the thread above is already the column flexbox: WEBVIEW-001).
|
|
2282
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2282
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading the chat", className: "grid grid-cols-1 gap-[var(--spacing-system-xsf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk63A4GZMBcjs.LoadingItems, { count: CHAT_PANEL_SKELETON_ROWS, children: (i) => (
|
|
2283
2283
|
// A conversation: the technician and the user take turns.
|
|
2284
2284
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2285
2285
|
RemoteDesktopChatMessageRow,
|
|
@@ -2306,7 +2306,7 @@ function RemoteDesktopChatPanel({
|
|
|
2306
2306
|
message.id
|
|
2307
2307
|
)) }) }),
|
|
2308
2308
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2309
|
-
|
|
2309
|
+
_chunkZRDVFADQcjs.ChatInput,
|
|
2310
2310
|
{
|
|
2311
2311
|
placeholder: "Enter your Message...",
|
|
2312
2312
|
onSend,
|
|
@@ -2350,10 +2350,10 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2350
2350
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
2351
2351
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h6", children: deviceName }),
|
|
2352
2352
|
displayMenuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2353
|
-
|
|
2353
|
+
_chunk2XLPRW7Vcjs.ActionsMenuDropdown,
|
|
2354
2354
|
{
|
|
2355
2355
|
groups: displayMenuGroups,
|
|
2356
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2356
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", size: "small", type: "button", "aria-label": "Switch display", className: "shrink-0", children: [
|
|
2357
2357
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, {}),
|
|
2358
2358
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: currentDisplayLabel }),
|
|
2359
2359
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSKI6NKOEcjs.Chevron02DownIcon, {})
|
|
@@ -2363,7 +2363,7 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2363
2363
|
] }),
|
|
2364
2364
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2365
2365
|
onToggleChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2366
|
-
|
|
2366
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2367
2367
|
{
|
|
2368
2368
|
variant: "outline",
|
|
2369
2369
|
size: "small",
|
|
@@ -2373,11 +2373,11 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2373
2373
|
}
|
|
2374
2374
|
),
|
|
2375
2375
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2376
|
-
|
|
2376
|
+
_chunk2XLPRW7Vcjs.ActionsMenuDropdown,
|
|
2377
2377
|
{
|
|
2378
2378
|
groups: actionsMenuGroups,
|
|
2379
2379
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2380
|
-
|
|
2380
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2381
2381
|
{
|
|
2382
2382
|
variant: "outline",
|
|
2383
2383
|
size: "icon-sm",
|
|
@@ -2388,7 +2388,7 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2388
2388
|
}
|
|
2389
2389
|
),
|
|
2390
2390
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2391
|
-
|
|
2391
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2392
2392
|
{
|
|
2393
2393
|
variant: "outline",
|
|
2394
2394
|
size: "icon-sm",
|
|
@@ -2398,7 +2398,7 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2398
2398
|
}
|
|
2399
2399
|
),
|
|
2400
2400
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2401
|
-
|
|
2401
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2402
2402
|
{
|
|
2403
2403
|
variant: "outline",
|
|
2404
2404
|
size: "icon-sm",
|
|
@@ -2437,20 +2437,20 @@ function RemoteDesktopView({
|
|
|
2437
2437
|
children,
|
|
2438
2438
|
loading: loadingProp = false
|
|
2439
2439
|
}) {
|
|
2440
|
-
const inScope =
|
|
2440
|
+
const inScope = _chunk63A4GZMBcjs.useLoadingScope.call(void 0, );
|
|
2441
2441
|
const loading = inScope || loadingProp;
|
|
2442
2442
|
const controlsBar = loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: CONTROLS_BAR_CLASS, "aria-hidden": true, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTROLS_ROW_CLASS, children: [
|
|
2443
2443
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-mf)]", children: [
|
|
2444
2444
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-shrink-0 rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xsf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "h-4 w-4 text-ods-text-primary" }) }),
|
|
2445
2445
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
2446
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2447
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2446
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h4", className: "w-48 max-w-full" }),
|
|
2447
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.TextLineSkeleton, { type: "h6", className: "w-36 max-w-full" })
|
|
2448
2448
|
] })
|
|
2449
2449
|
] }),
|
|
2450
2450
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2451
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2452
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2453
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2451
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.InteractiveSkeleton.Button, { size: "icon" }),
|
|
2452
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.InteractiveSkeleton.Button, { size: "icon" }),
|
|
2453
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3TOWCFIKcjs.InteractiveSkeleton.Button, { size: "icon" })
|
|
2454
2454
|
] })
|
|
2455
2455
|
] }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTROLS_BAR_CLASS, children: [
|
|
2456
2456
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTROLS_ROW_CLASS, children: [
|
|
@@ -2470,7 +2470,7 @@ function RemoteDesktopView({
|
|
|
2470
2470
|
] }),
|
|
2471
2471
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2472
2472
|
onToggleChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2473
|
-
|
|
2473
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2474
2474
|
{
|
|
2475
2475
|
variant: "outline",
|
|
2476
2476
|
onClick: onToggleChat,
|
|
@@ -2478,9 +2478,9 @@ function RemoteDesktopView({
|
|
|
2478
2478
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only content-md:not-sr-only", children: chatOpen ? "Close Chat" : "Open Chat" })
|
|
2479
2479
|
}
|
|
2480
2480
|
),
|
|
2481
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2481
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2XLPRW7Vcjs.ActionsMenuDropdown, { groups: actionsMenuGroups, triggerAriaLabel: "Actions" }),
|
|
2482
2482
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2483
|
-
|
|
2483
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2484
2484
|
{
|
|
2485
2485
|
variant: "outline",
|
|
2486
2486
|
size: "icon",
|
|
@@ -2490,7 +2490,7 @@ function RemoteDesktopView({
|
|
|
2490
2490
|
}
|
|
2491
2491
|
),
|
|
2492
2492
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2493
|
-
|
|
2493
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2494
2494
|
{
|
|
2495
2495
|
variant: "outline",
|
|
2496
2496
|
size: "icon",
|
|
@@ -2502,11 +2502,11 @@ function RemoteDesktopView({
|
|
|
2502
2502
|
] })
|
|
2503
2503
|
] }),
|
|
2504
2504
|
displayMenuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-t border-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2505
|
-
|
|
2505
|
+
_chunk2XLPRW7Vcjs.ActionsMenuDropdown,
|
|
2506
2506
|
{
|
|
2507
2507
|
groups: displayMenuGroups,
|
|
2508
2508
|
align: "start",
|
|
2509
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2509
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "row", type: "button", "aria-label": "Switch display", children: [
|
|
2510
2510
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "h-6 w-6" }),
|
|
2511
2511
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate", children: currentDisplayLabel }),
|
|
2512
2512
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSKI6NKOEcjs.Chevron02DownIcon, { className: "h-6 w-6" })
|
|
@@ -2515,7 +2515,7 @@ function RemoteDesktopView({
|
|
|
2515
2515
|
) })
|
|
2516
2516
|
] });
|
|
2517
2517
|
if (loading) {
|
|
2518
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageLayout, { className: PAGE_CLASS, backButton: onBack ? { label: "Back", onClick: onBack } : void 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2518
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageLayout, { className: PAGE_CLASS, backButton: onBack ? { label: "Back", onClick: onBack } : void 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk2XCORRJVcjs.LoadingRegion, { label: "Loading the remote session", announce: !inScope, className: "contents", children: [
|
|
2519
2519
|
controlsBar,
|
|
2520
2520
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-0 min-w-0 flex-1 rounded-lg bg-black" })
|
|
2521
2521
|
] }) });
|
|
@@ -2572,8 +2572,8 @@ function RemoteSessionDialog({
|
|
|
2572
2572
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "The technician will lose access to your device immediately." })
|
|
2573
2573
|
] }),
|
|
2574
2574
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-stretch gap-[var(--spacing-system-l)]", children: [
|
|
2575
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2576
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2575
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", fullWidth: true, disabled: ending, onClick: onClose, children: "Cancel" }),
|
|
2576
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "destructive", fullWidth: true, loading: ending, onClick: onEndSession, children: "End Session" })
|
|
2577
2577
|
] })
|
|
2578
2578
|
] });
|
|
2579
2579
|
}
|
|
@@ -2587,7 +2587,7 @@ function RemoteSessionDialog({
|
|
|
2587
2587
|
copy.suffix
|
|
2588
2588
|
] })
|
|
2589
2589
|
] }),
|
|
2590
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2590
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "outline", className: "w-1/2", onClick: onClose, children: "Close" }) })
|
|
2591
2591
|
] });
|
|
2592
2592
|
}
|
|
2593
2593
|
function DialogCard({ children }) {
|
|
@@ -2597,10 +2597,10 @@ function DialogCard({ children }) {
|
|
|
2597
2597
|
// src/components/features/remote-session/remote-session-overlay.tsx
|
|
2598
2598
|
|
|
2599
2599
|
function RemoteSessionBorder({ className }) {
|
|
2600
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2600
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "pointer-events-none size-full border-4 border-ods-warning", className) });
|
|
2601
2601
|
}
|
|
2602
2602
|
function RemoteSessionPill({ onEndSession }) {
|
|
2603
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2603
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkFCZAUK4Dcjs.Button, { variant: "warning", type: "button", onClick: onEndSession, children: [
|
|
2604
2604
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQED3GWZXcjs.MonitorOffIcon, { size: 24, color: "currentColor" }),
|
|
2605
2605
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: "End Session" })
|
|
2606
2606
|
] });
|
|
@@ -2649,9 +2649,9 @@ function KeepRecordingModal({
|
|
|
2649
2649
|
if (!canKeep || isPending) return;
|
|
2650
2650
|
onConfirm({ reason, description: reason === "OTHER" ? trimmed : null });
|
|
2651
2651
|
};
|
|
2652
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2652
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZRDVFADQcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2653
2653
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2654
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2654
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ModalTitle, { children: "Keep this recording" }) }),
|
|
2655
2655
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2656
2656
|
KeepNotice,
|
|
2657
2657
|
{
|
|
@@ -2678,7 +2678,7 @@ function KeepRecordingModal({
|
|
|
2678
2678
|
}
|
|
2679
2679
|
),
|
|
2680
2680
|
reason === "OTHER" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2681
|
-
|
|
2681
|
+
_chunkSWF6TNZ3cjs.Input,
|
|
2682
2682
|
{
|
|
2683
2683
|
"aria-label": "Reason description",
|
|
2684
2684
|
value: description,
|
|
@@ -2689,11 +2689,11 @@ function KeepRecordingModal({
|
|
|
2689
2689
|
}
|
|
2690
2690
|
)
|
|
2691
2691
|
] }),
|
|
2692
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2693
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2692
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZRDVFADQcjs.ModalFooter, { children: [
|
|
2693
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2694
2694
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2695
2695
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2696
|
-
|
|
2696
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2697
2697
|
{
|
|
2698
2698
|
type: "button",
|
|
2699
2699
|
variant: "accent",
|
|
@@ -2719,9 +2719,9 @@ function ReleaseKeepingModal({
|
|
|
2719
2719
|
isPending = false,
|
|
2720
2720
|
onConfirm
|
|
2721
2721
|
}) {
|
|
2722
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2722
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZRDVFADQcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2723
2723
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2724
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2724
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ModalTitle, { children: "Release Keeping" }) }),
|
|
2725
2725
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-xsf)] break-words text-ods-text-primary text-h4", children: [
|
|
2726
2726
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { children: [
|
|
2727
2727
|
"Kept by ",
|
|
@@ -2738,10 +2738,10 @@ function ReleaseKeepingModal({
|
|
|
2738
2738
|
] })
|
|
2739
2739
|
] }),
|
|
2740
2740
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, KeepNotice, { icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkILWSAV64cjs.HourglassIcon, { size: 24, color: "currentColor" }), title: `It will expire on ${expiresOn}`, children: dueOn ? `It was due to expire on ${dueOn}. Releasing gives it 3 days' grace, and it shows amber until then. Whoever placed the Keep is reminded the day before it goes. Nothing is deleted now.` : "Nothing is deleted now." }),
|
|
2741
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2742
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2741
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZRDVFADQcjs.ModalFooter, { children: [
|
|
2742
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2743
2743
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2744
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2744
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { type: "button", variant: "accent", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Release Keeping" })
|
|
2745
2745
|
] })
|
|
2746
2746
|
] });
|
|
2747
2747
|
}
|
|
@@ -2780,9 +2780,9 @@ function AssignTicketModal({
|
|
|
2780
2780
|
if (ticketIds.length === 0 || isPending) return;
|
|
2781
2781
|
onConfirm(ticketIds);
|
|
2782
2782
|
};
|
|
2783
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2783
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZRDVFADQcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2784
2784
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2785
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2785
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ModalTitle, { children: "Assign Ticket" }) }),
|
|
2786
2786
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2787
2787
|
Autocomplete,
|
|
2788
2788
|
{
|
|
@@ -2801,11 +2801,11 @@ function AssignTicketModal({
|
|
|
2801
2801
|
disabled: isPending
|
|
2802
2802
|
}
|
|
2803
2803
|
),
|
|
2804
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2805
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2804
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZRDVFADQcjs.ModalFooter, { children: [
|
|
2805
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2806
2806
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2807
2807
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2808
|
-
|
|
2808
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2809
2809
|
{
|
|
2810
2810
|
type: "button",
|
|
2811
2811
|
variant: "accent",
|
|
@@ -2820,14 +2820,14 @@ function AssignTicketModal({
|
|
|
2820
2820
|
] });
|
|
2821
2821
|
}
|
|
2822
2822
|
function UnassignTicketModal({ isOpen, onClose, isPending = false, onConfirm }) {
|
|
2823
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2823
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZRDVFADQcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2824
2824
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2825
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2825
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZRDVFADQcjs.ModalTitle, { children: "Unassign Ticket" }) }),
|
|
2826
2826
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: "This Ticket will no longer be linked to this remote session. The ticket itself stays as it is, and you can assign it again anytime." }),
|
|
2827
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2828
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2827
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZRDVFADQcjs.ModalFooter, { children: [
|
|
2828
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2829
2829
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2830
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2830
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFCZAUK4Dcjs.Button, { type: "button", variant: "destructive", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Unassign" })
|
|
2831
2831
|
] })
|
|
2832
2832
|
] });
|
|
2833
2833
|
}
|
|
@@ -2842,10 +2842,10 @@ function formatRemoteSessionOffset(offsetMs) {
|
|
|
2842
2842
|
return hours > 0 ? `${hours}:${minutes}:${seconds}` : `${minutes}:${seconds}`;
|
|
2843
2843
|
}
|
|
2844
2844
|
function RemoteSessionEventList({ events, activeEventId, onSelect, className }) {
|
|
2845
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { className:
|
|
2845
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex w-full flex-col gap-[var(--spacing-system-xxs)]", className), children: [
|
|
2846
2846
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-secondary text-h5", children: "Session Events" }),
|
|
2847
2847
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ol", { className: "flex w-full flex-col gap-[var(--spacing-system-xxs)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-m)]", children: events.map((event) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "li", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2848
|
-
|
|
2848
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2849
2849
|
{
|
|
2850
2850
|
variant: "row",
|
|
2851
2851
|
type: "button",
|
|
@@ -2872,11 +2872,11 @@ function RemoteSessionTimelineMarkers({
|
|
|
2872
2872
|
className
|
|
2873
2873
|
}) {
|
|
2874
2874
|
if (durationMs <= 0) return null;
|
|
2875
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2875
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "relative h-4 w-full", className), children: events.map((event) => {
|
|
2876
2876
|
const share = Math.min(1, Math.max(0, event.offsetMs / durationMs));
|
|
2877
2877
|
const label = `${event.title} at ${formatRemoteSessionOffset(event.offsetMs)}`;
|
|
2878
2878
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2879
|
-
|
|
2879
|
+
_chunkFCZAUK4Dcjs.Button,
|
|
2880
2880
|
{
|
|
2881
2881
|
variant: "card",
|
|
2882
2882
|
type: "button",
|
|
@@ -2905,25 +2905,25 @@ var STATUS_TAG = {
|
|
|
2905
2905
|
function RemoteSessionStatusTag({ status, className }) {
|
|
2906
2906
|
const { label, variant } = STATUS_TAG[status];
|
|
2907
2907
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2908
|
-
|
|
2908
|
+
_chunkBOS7OIC4cjs.Tag,
|
|
2909
2909
|
{
|
|
2910
2910
|
label,
|
|
2911
2911
|
variant,
|
|
2912
2912
|
icon: status === "live" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LiveDot, {}) : void 0,
|
|
2913
|
-
className:
|
|
2913
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0, "pointer-events-none shrink-0", className)
|
|
2914
2914
|
}
|
|
2915
2915
|
);
|
|
2916
2916
|
}
|
|
2917
2917
|
function RemoteSessionExpiry(props) {
|
|
2918
2918
|
const { className } = props;
|
|
2919
2919
|
if (props.state === "none") {
|
|
2920
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className:
|
|
2920
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk63A4GZMBcjs.cn.call(void 0, "text-ods-text-primary text-h4", className), children: "-" });
|
|
2921
2921
|
}
|
|
2922
2922
|
if (props.state === "expired") {
|
|
2923
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className:
|
|
2923
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk63A4GZMBcjs.cn.call(void 0, "text-ods-text-secondary text-h4", className), children: "Expired" });
|
|
2924
2924
|
}
|
|
2925
2925
|
if (props.state === "kept") {
|
|
2926
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
2926
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-w-0 flex-col", className), children: [
|
|
2927
2927
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "flex items-center gap-[var(--spacing-system-xxs)] text-ods-text-primary text-h4", children: [
|
|
2928
2928
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMT45XX7Icjs.LockIcon, { size: 24, color: "currentColor", className: "shrink-0" }),
|
|
2929
2929
|
"Kept"
|
|
@@ -2936,7 +2936,7 @@ function RemoteSessionExpiry(props) {
|
|
|
2936
2936
|
] })
|
|
2937
2937
|
] });
|
|
2938
2938
|
}
|
|
2939
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
2939
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk63A4GZMBcjs.cn.call(void 0, "flex min-w-0 flex-col", className), children: [
|
|
2940
2940
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: props.date }),
|
|
2941
2941
|
props.remaining && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: props.remaining })
|
|
2942
2942
|
] });
|
|
@@ -2947,7 +2947,7 @@ function RemoteSessionStorageAlert({ scope, capacity, className }) {
|
|
|
2947
2947
|
"div",
|
|
2948
2948
|
{
|
|
2949
2949
|
role: "alert",
|
|
2950
|
-
className:
|
|
2950
|
+
className: _chunk63A4GZMBcjs.cn.call(void 0,
|
|
2951
2951
|
"flex w-full items-start gap-[var(--spacing-system-m)] rounded-md bg-ods-warning-secondary p-[var(--spacing-system-s)] text-ods-warning",
|
|
2952
2952
|
className
|
|
2953
2953
|
),
|