@flamingo-stack/openframe-frontend-core 0.0.796 → 0.0.798
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-K6HYMHL6.cjs +23 -0
- package/dist/{chunk-QVC5CMC5.cjs → chunk-2JCY5KQL.cjs} +4 -4
- package/dist/{chunk-7VU4HHUR.cjs → chunk-2M6HS23A.cjs} +51 -51
- package/dist/{chunk-IONS6HDF.cjs → chunk-3NGJ7NPT.cjs} +61 -61
- package/dist/{chunk-AT4C2YMA.cjs → chunk-4WIJI4AK.cjs} +17 -17
- package/dist/{chunk-II4A2RUG.cjs → chunk-5IU64YEA.cjs} +62 -62
- package/dist/{chunk-75PJ2SAZ.cjs → chunk-5RGGUQ4Y.cjs} +2 -2
- package/dist/{chunk-W4QITOT7.cjs → chunk-6F2UHDCB.cjs} +13 -13
- package/dist/{chunk-UCHO4BOS.cjs → chunk-6GCXQIUU.cjs} +5 -5
- package/dist/{chunk-GP7NV6BK.cjs → chunk-6UKH22NQ.cjs} +29 -29
- package/dist/{chunk-6WXP5IKR.cjs → chunk-6YCUP6JJ.cjs} +42 -42
- package/dist/{chunk-6YZNUHXT.cjs → chunk-7JWFMAQB.cjs} +8 -2
- package/dist/{chunk-TUD7BV6O.cjs → chunk-7MV23NNT.cjs} +54 -54
- package/dist/{chunk-K7I3YYYU.cjs → chunk-AHBTZ7DN.cjs} +44 -44
- package/dist/{chunk-N3J4U7ML.cjs → chunk-AVAE5B2A.cjs} +8 -8
- package/dist/{chunk-CWA6J7KC.cjs → chunk-BWR5ACK3.cjs} +45 -45
- package/dist/{chunk-NAJ24ODA.cjs → chunk-BWTCULUN.cjs} +4 -4
- package/dist/{chunk-VUP7ZGZS.cjs → chunk-C2UZWRU5.cjs} +46 -46
- package/dist/{chunk-G24OX7AC.cjs → chunk-DTBIIFZG.cjs} +63 -63
- package/dist/{chunk-F64GLU75.cjs → chunk-E56LN23H.cjs} +205 -205
- package/dist/{chunk-ZMWSN2BD.cjs → chunk-EYE5FLHZ.cjs} +13 -13
- package/dist/{chunk-JGURZROB.cjs → chunk-FIKIPO4F.cjs} +334 -321
- package/dist/{chunk-6JCTKXHX.cjs → chunk-FO3N6HDS.cjs} +31 -31
- package/dist/{chunk-JRTDBPJT.cjs → chunk-GD47ZGOU.cjs} +3 -3
- package/dist/{chunk-HBAVHYXO.cjs → chunk-HATRCNXJ.cjs} +2 -2
- package/dist/{chunk-QVKWKY4O.cjs → chunk-JTIGKLKJ.cjs} +23 -23
- package/dist/{chunk-UYOGZJPE.cjs → chunk-KFDAL6NA.cjs} +37 -37
- package/dist/{chunk-DRWPSN3A.cjs → chunk-KUXHXLJQ.cjs} +5 -5
- package/dist/{chunk-GD6RPLHX.cjs → chunk-LKQ33CMY.cjs} +3 -3
- package/dist/{chunk-Y3IMXLLL.cjs → chunk-ND7ECICK.cjs} +541 -538
- package/dist/{chunk-HJBJHQKE.cjs → chunk-NG3RKTQU.cjs} +16 -16
- package/dist/{chunk-YFHKBIZT.cjs → chunk-NK2FSEWD.cjs} +6 -6
- package/dist/{chunk-HYF4LPXF.cjs → chunk-NL3G642U.cjs} +10 -10
- package/dist/{chunk-7SEY3FDF.cjs → chunk-O6KQ64RI.cjs} +19 -19
- package/dist/{chunk-JXQNECXM.cjs → chunk-P4B6PVSG.cjs} +7 -7
- package/dist/{chunk-QCN46LDL.cjs → chunk-PTQVGWJE.cjs} +110 -110
- package/dist/{chunk-OKAHKZP2.cjs → chunk-SDV335EO.cjs} +17 -17
- package/dist/{chunk-PALMLL5T.cjs → chunk-T5OCU3EL.cjs} +10 -10
- package/dist/{chunk-XVVQJXOA.cjs → chunk-TJQGKIXB.cjs} +171 -171
- package/dist/{chunk-HCXNFMLO.cjs → chunk-TTZEDDR5.cjs} +14 -14
- package/dist/{chunk-NRAH3M66.cjs → chunk-VUHPWSAE.cjs} +311 -291
- package/dist/{chunk-CFXCCQ6T.cjs → chunk-VVLL37EM.cjs} +12 -12
- package/dist/{chunk-VYXNGADV.cjs → chunk-W25OB2R6.cjs} +44 -44
- package/dist/{chunk-QMDXG3VF.cjs → chunk-W5ZQDEDT.cjs} +2016 -2015
- package/dist/{chunk-JC43ULIC.cjs → chunk-WUBTAN27.cjs} +116 -116
- package/dist/{chunk-CC7NRWRF.cjs → chunk-XJD7IZR2.cjs} +60 -60
- package/dist/{chunk-LL6PXI6C.cjs → chunk-XR323UBY.cjs} +4 -4
- package/dist/{chunk-UN6LC5PK.cjs → chunk-YBTORXFY.cjs} +110 -110
- package/dist/{chunk-RFIBRGXG.cjs → chunk-YR74H7Z3.cjs} +7 -7
- package/dist/{chunk-RKWEFZ6P.cjs → chunk-ZD6SZLO2.cjs} +3 -3
- package/dist/{chunk-XFJ7BZDJ.cjs → chunk-ZOK4OWMJ.cjs} +22 -22
- package/dist/{chunk-ZRME3A2D.cjs → chunk-ZXRAYCNB.cjs} +3 -3
- package/dist/{cloud-tenants-BQUWLMYY.cjs → cloud-tenants-XGL3DYSG.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/entity-cards/roadmap-card.d.ts +5 -0
- package/dist/components/chat/entity-cards/roadmap-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/roadmap-card.js +16 -1
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/chat/types/entities/roadmap-item.d.ts +8 -0
- package/dist/components/chat/types/entities/roadmap-item.d.ts.map +1 -1
- 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/index.cjs +32 -32
- package/dist/components/help-center-pages/index.cjs +163 -163
- package/dist/components/index.cjs +204 -204
- package/dist/components/meeting-scheduler/index.cjs +191 -191
- package/dist/components/navigation/index.cjs +35 -35
- package/dist/components/onboarding-guides/index.cjs +35 -35
- 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 +6 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +7 -1
- package/dist/components/ui/feature-card.d.ts +1 -1
- package/dist/components/ui/feature-card.d.ts.map +1 -1
- package/dist/components/ui/feature-card.js +1 -0
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +32 -32
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/tabs.js +6 -3
- package/dist/{devices-BFQOLI3D.cjs → devices-U2NQYDI7.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-INYF23ST.cjs → embeddable-chat-MPJLN4C6.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +50 -48
- package/dist/{knowledge-GGYWTYTP.cjs → knowledge-BUY6TSK6.cjs} +33 -33
- package/dist/{logs-NO55PTIO.cjs → logs-FUPQ7XYE.cjs} +41 -41
- package/dist/{policies-AAFYTVOJ.cjs → policies-NASADYBK.cjs} +36 -36
- package/dist/{remote-session-2CNWLF3P.cjs → remote-session-4LYKEZSY.cjs} +17 -17
- package/dist/{scripts-H4ECJ65X.cjs → scripts-BGLTDQKV.cjs} +39 -39
- package/dist/{software-update-NEEGQBK3.cjs → software-update-QDIZ32KU.cjs} +36 -36
- package/dist/{tickets-board-CXYRAMDL.cjs → tickets-board-3FBVYSXR.cjs} +17 -17
- package/dist/utils/clickup-drop-down.cjs +22 -0
- package/dist/utils/clickup-drop-down.d.ts +26 -0
- package/dist/utils/clickup-drop-down.d.ts.map +1 -0
- package/dist/utils/clickup-drop-down.js +20 -0
- package/dist/utils/index.cjs +20 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/{video-file-player-HZPMCCYF.cjs → video-file-player-2FMFCGXE.cjs} +14 -14
- package/package.json +7 -1
- package/src/components/chat/entity-cards/roadmap-card.tsx +18 -1
- package/src/components/chat/types/entities/roadmap-item.ts +8 -0
- package/src/components/ui/button/button-styles.ts +11 -1
- package/src/components/ui/feature-card.tsx +2 -1
- package/src/components/ui/tabs.tsx +5 -2
- package/src/utils/clickup-drop-down.ts +41 -0
- package/src/utils/index.ts +1 -0
- package/dist/case-study-card-KU4ZIONR.cjs +0 -23
|
@@ -10,14 +10,14 @@ var _chunkA6P6DHEZcjs = require('./chunk-A6P6DHEZ.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk3NGJ7NPTcjs = require('./chunk-3NGJ7NPT.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkJTIGKLKJcjs = require('./chunk-JTIGKLKJ.cjs');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunk2NETL2MScjs = require('./chunk-2NETL2MS.cjs');
|
|
@@ -102,7 +102,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
var
|
|
105
|
+
var _chunk6UKH22NQcjs = require('./chunk-6UKH22NQ.cjs');
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -112,40 +112,40 @@ var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
|
112
112
|
var _chunkV4FXUIMHcjs = require('./chunk-V4FXUIMH.cjs');
|
|
113
113
|
|
|
114
114
|
|
|
115
|
-
var
|
|
115
|
+
var _chunkKUXHXLJQcjs = require('./chunk-KUXHXLJQ.cjs');
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
120
|
-
var
|
|
120
|
+
var _chunkTTZEDDR5cjs = require('./chunk-TTZEDDR5.cjs');
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
var
|
|
127
|
+
var _chunkNL3G642Ucjs = require('./chunk-NL3G642U.cjs');
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var
|
|
130
|
+
var _chunkLKQ33CMYcjs = require('./chunk-LKQ33CMY.cjs');
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
|
|
136
136
|
|
|
137
|
-
var
|
|
137
|
+
var _chunk4WIJI4AKcjs = require('./chunk-4WIJI4AK.cjs');
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
|
|
141
|
-
var
|
|
141
|
+
var _chunkAHBTZ7DNcjs = require('./chunk-AHBTZ7DN.cjs');
|
|
142
142
|
|
|
143
143
|
|
|
144
144
|
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
148
|
-
var
|
|
148
|
+
var _chunk7JWFMAQBcjs = require('./chunk-7JWFMAQB.cjs');
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -159,7 +159,7 @@ var HiddenTagsPopup = _react.forwardRef.call(void 0, function HiddenTagsPopupImp
|
|
|
159
159
|
{
|
|
160
160
|
ref,
|
|
161
161
|
style,
|
|
162
|
-
className:
|
|
162
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
163
163
|
// Base positioning is neutral (left-anchored); consumers override via
|
|
164
164
|
// `style.left` (search-input, tag-search-input) or `className` (autocomplete).
|
|
165
165
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px]",
|
|
@@ -170,7 +170,7 @@ var HiddenTagsPopup = _react.forwardRef.call(void 0, function HiddenTagsPopupImp
|
|
|
170
170
|
children: items.map((item) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
171
171
|
"div",
|
|
172
172
|
{
|
|
173
|
-
className:
|
|
173
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
174
174
|
"flex h-11 items-center justify-between gap-3 px-3 md:h-12",
|
|
175
175
|
"border-b border-ods-border last:border-b-0"
|
|
176
176
|
),
|
|
@@ -184,7 +184,7 @@ var HiddenTagsPopup = _react.forwardRef.call(void 0, function HiddenTagsPopupImp
|
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
186
|
!disabled && onRemove && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
187
|
-
|
|
187
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
188
188
|
{
|
|
189
189
|
variant: "bare",
|
|
190
190
|
size: "icon-sm",
|
|
@@ -243,24 +243,24 @@ function TruncateText({
|
|
|
243
243
|
}) {
|
|
244
244
|
const isMultiLine = lines > 1;
|
|
245
245
|
const { ref, isTruncated } = _chunkV4FXUIMHcjs.useIsTruncated.call(void 0, children, { multiline: isMultiLine });
|
|
246
|
-
const loading =
|
|
246
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) && !children || loadingProp;
|
|
247
247
|
if (loading)
|
|
248
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
248
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: variant, lines, as, className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-3/4", triggerClassName) });
|
|
249
249
|
const clampClass = isMultiLine ? LINE_CLAMP_CLASS[lines] : "truncate block";
|
|
250
250
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
251
|
-
|
|
251
|
+
_chunk6UKH22NQcjs.FloatingTooltip,
|
|
252
252
|
{
|
|
253
253
|
content: _nullishCoalesce(tooltip, () => ( children)),
|
|
254
254
|
side,
|
|
255
255
|
disabled: !isTruncated,
|
|
256
256
|
className: "max-w-xs whitespace-pre-line [overflow-wrap:anywhere]",
|
|
257
257
|
as,
|
|
258
|
-
triggerClassName:
|
|
258
|
+
triggerClassName: _chunk7JWFMAQBcjs.cn.call(void 0, "min-w-0 max-w-full", as === "span" && "inline-block align-bottom", triggerClassName),
|
|
259
259
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
260
260
|
"span",
|
|
261
261
|
{
|
|
262
262
|
ref,
|
|
263
|
-
className:
|
|
263
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
264
264
|
VARIANT_CLASS[variant],
|
|
265
265
|
TONE_CLASS[tone],
|
|
266
266
|
mono && "[font-family:var(--font-family-heading)]",
|
|
@@ -287,7 +287,7 @@ var _lucidereact = require('lucide-react');
|
|
|
287
287
|
|
|
288
288
|
|
|
289
289
|
|
|
290
|
-
var innerInputStyles =
|
|
290
|
+
var innerInputStyles = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
291
291
|
"min-w-[60px] flex-1 border-none bg-transparent outline-none",
|
|
292
292
|
"text-h4",
|
|
293
293
|
"text-ods-text-primary placeholder:text-ods-text-secondary",
|
|
@@ -299,10 +299,10 @@ var AUTOCOMPLETE_OPTION_ROW_CLASS = "flex min-h-11 items-center border-b border-
|
|
|
299
299
|
var AUTOCOMPLETE_LOADING_ROWS = 5;
|
|
300
300
|
var AUTOCOMPLETE_ANCHOR_SHAPE_CLASS = "rounded-[6px]";
|
|
301
301
|
function AutocompleteSkeleton({ label, labelVariant, className }) {
|
|
302
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
302
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTTZEDDR5cjs.FieldWrapper, { label, labelVariant, className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.UnifiedSkeleton, { className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-full", AUTOCOMPLETE_ANCHOR_SHAPE_CLASS, AUTOCOMPLETE_ANCHOR_HEIGHT_CLASS) }) });
|
|
303
303
|
}
|
|
304
304
|
function AutocompleteInner(props, ref) {
|
|
305
|
-
const inScope =
|
|
305
|
+
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
306
306
|
const {
|
|
307
307
|
options,
|
|
308
308
|
disabled = false,
|
|
@@ -533,7 +533,7 @@ function AutocompleteInner(props, ref) {
|
|
|
533
533
|
"div",
|
|
534
534
|
{
|
|
535
535
|
"data-invalid": isInvalid || void 0,
|
|
536
|
-
className:
|
|
536
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
537
537
|
// Layout — single line, no wrapping
|
|
538
538
|
"flex cursor-text items-center border",
|
|
539
539
|
AUTOCOMPLETE_ANCHOR_SHAPE_CLASS,
|
|
@@ -565,7 +565,7 @@ function AutocompleteInner(props, ref) {
|
|
|
565
565
|
resolvedStartAdornment && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
566
566
|
"span",
|
|
567
567
|
{
|
|
568
|
-
className:
|
|
568
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
569
569
|
// Images are sized alongside svgs: an entity adornment is
|
|
570
570
|
// usually a flag or a crest, and an unconstrained <img> lays
|
|
571
571
|
// out at 0x0 inside this flex row.
|
|
@@ -581,13 +581,13 @@ function AutocompleteInner(props, ref) {
|
|
|
581
581
|
"div",
|
|
582
582
|
{
|
|
583
583
|
ref: middleRef,
|
|
584
|
-
className:
|
|
584
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
585
585
|
"flex min-w-0 flex-1 items-center gap-2 px-2",
|
|
586
586
|
wrapTags ? "flex-wrap py-[var(--spacing-system-xsf)]" : "overflow-hidden"
|
|
587
587
|
),
|
|
588
588
|
children: [
|
|
589
589
|
multiple && visibleTags.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
590
|
-
|
|
590
|
+
_chunk6UKH22NQcjs.Tag,
|
|
591
591
|
{
|
|
592
592
|
variant: "outline",
|
|
593
593
|
className: wrapTags ? "max-w-full" : void 0,
|
|
@@ -600,7 +600,7 @@ function AutocompleteInner(props, ref) {
|
|
|
600
600
|
String(option.value)
|
|
601
601
|
)),
|
|
602
602
|
multiple && hiddenTagsCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: hiddenTagsRef, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
603
|
-
|
|
603
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
604
604
|
{
|
|
605
605
|
variant: "chip",
|
|
606
606
|
ref: badgeRef,
|
|
@@ -635,7 +635,7 @@ function AutocompleteInner(props, ref) {
|
|
|
635
635
|
),
|
|
636
636
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-1 pr-3", children: [
|
|
637
637
|
showClearAll && (hasValue || inputValue.length > 0) && !disabled && isOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
638
|
-
|
|
638
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
639
639
|
{
|
|
640
640
|
variant: "transparent",
|
|
641
641
|
size: "icon-sm",
|
|
@@ -648,7 +648,7 @@ function AutocompleteInner(props, ref) {
|
|
|
648
648
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
649
649
|
_lucidereact.Loader2,
|
|
650
650
|
{
|
|
651
|
-
className:
|
|
651
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
652
652
|
"size-4 animate-spin md:size-6",
|
|
653
653
|
isInvalid ? "text-ods-error" : isOpen ? "text-ods-accent" : "text-ods-text-secondary"
|
|
654
654
|
)
|
|
@@ -656,7 +656,7 @@ function AutocompleteInner(props, ref) {
|
|
|
656
656
|
) : showChevron && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
657
657
|
_chunkSKI6NKOEcjs.Chevron02DownIcon,
|
|
658
658
|
{
|
|
659
|
-
className:
|
|
659
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
660
660
|
"size-4 transition-all duration-200 md:size-6",
|
|
661
661
|
"text-ods-text-secondary",
|
|
662
662
|
isOpen && "rotate-180",
|
|
@@ -672,7 +672,7 @@ function AutocompleteInner(props, ref) {
|
|
|
672
672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
673
673
|
PopoverPrimitive.Content,
|
|
674
674
|
{
|
|
675
|
-
className:
|
|
675
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
676
676
|
"z-50 mt-1 w-[var(--radix-popover-trigger-width)]",
|
|
677
677
|
"rounded-[4px] border border-ods-border bg-ods-card",
|
|
678
678
|
"flex max-h-[var(--radix-popper-available-height)] flex-col overflow-hidden",
|
|
@@ -696,7 +696,7 @@ function AutocompleteInner(props, ref) {
|
|
|
696
696
|
/* @__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: loading ? void 0 : "listbox", children: loading ? (
|
|
697
697
|
// The options while they are read: the list's own rows, a label bar each (`loadingText` is what a
|
|
698
698
|
// screen reader hears).
|
|
699
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
699
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: loadingText, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.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, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", className: "w-2/3" }) }) }) })
|
|
700
700
|
) : 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: [
|
|
701
701
|
"Maximum ",
|
|
702
702
|
maxCreateLength,
|
|
@@ -706,7 +706,7 @@ function AutocompleteInner(props, ref) {
|
|
|
706
706
|
{
|
|
707
707
|
role: "option",
|
|
708
708
|
"aria-selected": false,
|
|
709
|
-
className:
|
|
709
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
710
710
|
"flex h-11 min-w-0 cursor-pointer items-center px-[var(--spacing-system-mf)] transition-colors md:h-12",
|
|
711
711
|
"text-ods-accent text-h4",
|
|
712
712
|
"hover:bg-ods-bg-hover"
|
|
@@ -727,7 +727,7 @@ function AutocompleteInner(props, ref) {
|
|
|
727
727
|
"data-loading-item": true,
|
|
728
728
|
role: "option",
|
|
729
729
|
"aria-selected": isSelected,
|
|
730
|
-
className:
|
|
730
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
731
731
|
// `min-h` rather than a fixed height: an option may carry
|
|
732
732
|
// a second line, and a clipped one is worse than a taller row.
|
|
733
733
|
AUTOCOMPLETE_OPTION_ROW_CLASS,
|
|
@@ -749,7 +749,7 @@ function AutocompleteInner(props, ref) {
|
|
|
749
749
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
750
750
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 }),
|
|
751
751
|
onDeleteOption && !isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
752
|
-
|
|
752
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
753
753
|
{
|
|
754
754
|
variant: "transparent",
|
|
755
755
|
size: "icon-sm",
|
|
@@ -777,7 +777,7 @@ function AutocompleteInner(props, ref) {
|
|
|
777
777
|
if (inScope || fieldLoading)
|
|
778
778
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AutocompleteSkeleton, { label, labelVariant, className });
|
|
779
779
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
780
|
-
|
|
780
|
+
_chunkTTZEDDR5cjs.FieldWrapper,
|
|
781
781
|
{
|
|
782
782
|
label,
|
|
783
783
|
labelVariant,
|
|
@@ -817,7 +817,7 @@ function AutocompleteInner(props, ref) {
|
|
|
817
817
|
"aria-hidden": "true",
|
|
818
818
|
className: "pointer-events-none invisible absolute left-0 top-0 -z-10 flex gap-2",
|
|
819
819
|
children: selectedOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
820
|
-
|
|
820
|
+
_chunk6UKH22NQcjs.Tag,
|
|
821
821
|
{
|
|
822
822
|
variant: "outline",
|
|
823
823
|
labelClassName: "max-w-[90px] truncate",
|
|
@@ -848,13 +848,13 @@ var SelectTrigger = _react.forwardRef.call(void 0, (allProps, ref) => {
|
|
|
848
848
|
const { className, children, invalid, label, labelVariant, error, ...props } = allProps;
|
|
849
849
|
const errorSlot = "error" in allProps;
|
|
850
850
|
const isInvalid = invalid || !!error;
|
|
851
|
-
const inScope =
|
|
851
|
+
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
852
852
|
const trigger = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
853
853
|
SelectPrimitive.Trigger,
|
|
854
854
|
{
|
|
855
855
|
ref,
|
|
856
856
|
"data-invalid": isInvalid || void 0,
|
|
857
|
-
className:
|
|
857
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
858
858
|
// Layout & spacing - match Input
|
|
859
859
|
// text-left resets the <button> UA default text-align:center, which the
|
|
860
860
|
// SelectValue span inherits and would otherwise center short values,
|
|
@@ -882,11 +882,11 @@ var SelectTrigger = _react.forwardRef.call(void 0, (allProps, ref) => {
|
|
|
882
882
|
),
|
|
883
883
|
...props,
|
|
884
884
|
children: [
|
|
885
|
-
inScope ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
885
|
+
inScope ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTTZEDDR5cjs.FieldValueSkeleton, {}) : children,
|
|
886
886
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
887
887
|
_chunkSKI6NKOEcjs.Chevron02DownIcon,
|
|
888
888
|
{
|
|
889
|
-
className:
|
|
889
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
890
890
|
"shrink-0 text-ods-text-secondary transition-all duration-200 group-data-[state=open]:rotate-180",
|
|
891
891
|
isInvalid ? "text-ods-error" : "group-data-[state=open]:text-ods-accent"
|
|
892
892
|
),
|
|
@@ -896,14 +896,14 @@ var SelectTrigger = _react.forwardRef.call(void 0, (allProps, ref) => {
|
|
|
896
896
|
]
|
|
897
897
|
}
|
|
898
898
|
);
|
|
899
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
899
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTTZEDDR5cjs.FieldWrapper, { label, labelVariant, error, errorSlot, children: trigger });
|
|
900
900
|
});
|
|
901
901
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
902
902
|
var SelectScrollUpButton = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
903
903
|
SelectPrimitive.ScrollUpButton,
|
|
904
904
|
{
|
|
905
905
|
ref,
|
|
906
|
-
className:
|
|
906
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex cursor-default items-center justify-center py-1", className),
|
|
907
907
|
...props,
|
|
908
908
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronUp, { className: "h-4 w-4" })
|
|
909
909
|
}
|
|
@@ -913,19 +913,19 @@ var SelectScrollDownButton = _react.forwardRef.call(void 0, ({ className, ...pro
|
|
|
913
913
|
SelectPrimitive.ScrollDownButton,
|
|
914
914
|
{
|
|
915
915
|
ref,
|
|
916
|
-
className:
|
|
916
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex cursor-default items-center justify-center py-1", className),
|
|
917
917
|
...props,
|
|
918
918
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDown, { className: "h-4 w-4" })
|
|
919
919
|
}
|
|
920
920
|
));
|
|
921
921
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
922
922
|
var SelectContent = _react.forwardRef.call(void 0, ({ className, children, position = "popper", ...props }, ref) => {
|
|
923
|
-
const container =
|
|
923
|
+
const container = _chunkNL3G642Ucjs.usePortalContainer.call(void 0, );
|
|
924
924
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Portal, { container: _nullishCoalesce(container, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
925
925
|
SelectPrimitive.Content,
|
|
926
926
|
{
|
|
927
927
|
ref,
|
|
928
|
-
className:
|
|
928
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
929
929
|
"relative z-[9999] max-h-96 overflow-hidden rounded-[4px] border border-ods-border bg-ods-card text-ods-text-primary",
|
|
930
930
|
"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",
|
|
931
931
|
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",
|
|
@@ -946,13 +946,13 @@ var SelectContent = _react.forwardRef.call(void 0, ({ className, children, posit
|
|
|
946
946
|
) });
|
|
947
947
|
});
|
|
948
948
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
949
|
-
var SelectLabel = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Label, { ref, className:
|
|
949
|
+
var SelectLabel = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Label, { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0, "py-1.5 pl-8 pr-2 font-semibold text-h6", className), ...props }));
|
|
950
950
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
951
951
|
var SelectItem = _react.forwardRef.call(void 0, ({ className, children, description, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
952
952
|
SelectPrimitive.Item,
|
|
953
953
|
{
|
|
954
954
|
ref,
|
|
955
|
-
className:
|
|
955
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
956
956
|
"flex w-full cursor-pointer select-none items-center justify-between gap-2 border-b border-ods-border px-4 last:border-b-0",
|
|
957
957
|
// Typography - match trigger
|
|
958
958
|
"text-h4",
|
|
@@ -978,7 +978,7 @@ var SelectItem = _react.forwardRef.call(void 0, ({ className, children, descript
|
|
|
978
978
|
}
|
|
979
979
|
));
|
|
980
980
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
981
|
-
var SelectSeparator = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Separator, { ref, className:
|
|
981
|
+
var SelectSeparator = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Separator, { ref, className: _chunk7JWFMAQBcjs.cn.call(void 0, "-mx-1 my-1 h-px bg-ods-border", className), ...props }));
|
|
982
982
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
983
983
|
|
|
984
984
|
// src/components/layout/back-button.tsx
|
|
@@ -1003,9 +1003,9 @@ function BackButton({ label = "Back", className, type = "button", href, ...props
|
|
|
1003
1003
|
value: _value,
|
|
1004
1004
|
...shared
|
|
1005
1005
|
} = props;
|
|
1006
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1006
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { asChild: true, variant: "link", noPaddingX: true, className: _chunk7JWFMAQBcjs.cn.call(void 0, BACK_BUTTON_LAYOUT_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...shared, href, children: content }) });
|
|
1007
1007
|
}
|
|
1008
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1008
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "link", noPaddingX: true, type, className: _chunk7JWFMAQBcjs.cn.call(void 0, BACK_BUTTON_LAYOUT_CLASS, className), ...props, children: content });
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
1011
|
// src/components/ui/page-actions.tsx
|
|
@@ -1053,19 +1053,19 @@ function actionToMenuItems(action, idx) {
|
|
|
1053
1053
|
}
|
|
1054
1054
|
function renderActionButton(action, opts = {}) {
|
|
1055
1055
|
if (opts.inert) {
|
|
1056
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1056
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { className: _chunk7JWFMAQBcjs.cn.call(void 0, "inline-flex", opts.fullWidth && "flex-1"), children: renderRawActionButton(action, opts) });
|
|
1057
1057
|
}
|
|
1058
1058
|
const button = renderRawActionButton(action, opts);
|
|
1059
1059
|
if (!action.tooltip) return button;
|
|
1060
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1061
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1062
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1060
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJTIGKLKJcjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkJTIGKLKJcjs.Tooltip, { children: [
|
|
1061
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJTIGKLKJcjs.TooltipTrigger, { asChild: true, children: button }),
|
|
1062
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJTIGKLKJcjs.TooltipContent, { children: action.tooltip })
|
|
1063
1063
|
] }) });
|
|
1064
1064
|
}
|
|
1065
1065
|
function renderRawActionButton(action, opts = {}) {
|
|
1066
1066
|
if (action.iconAction) {
|
|
1067
1067
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1068
|
-
|
|
1068
|
+
_chunkAHBTZ7DNcjs.SplitButton,
|
|
1069
1069
|
{
|
|
1070
1070
|
variant: _nullishCoalesce(action.variant, () => ( void 0)),
|
|
1071
1071
|
href: action.href,
|
|
@@ -1083,11 +1083,11 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
1083
1083
|
}
|
|
1084
1084
|
if (action.submenu && action.submenu.length > 0) {
|
|
1085
1085
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1086
|
-
|
|
1086
|
+
_chunkJTIGKLKJcjs.ActionsMenuDropdown,
|
|
1087
1087
|
{
|
|
1088
1088
|
groups: [{ items: action.submenu }],
|
|
1089
1089
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1090
|
-
|
|
1090
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
1091
1091
|
{
|
|
1092
1092
|
variant: "outline",
|
|
1093
1093
|
disabled: action.disabled,
|
|
@@ -1105,7 +1105,7 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
1105
1105
|
if (isIconOnly) {
|
|
1106
1106
|
const iconNode = action.iconOnlyOnDesktop ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex [&_svg]:!text-ods-text-primary", children: action.icon }) : action.icon;
|
|
1107
1107
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1108
|
-
|
|
1108
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
1109
1109
|
{
|
|
1110
1110
|
variant: action.variant,
|
|
1111
1111
|
size: "icon",
|
|
@@ -1121,7 +1121,7 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
1121
1121
|
);
|
|
1122
1122
|
}
|
|
1123
1123
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1124
|
-
|
|
1124
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
1125
1125
|
{
|
|
1126
1126
|
variant: action.variant,
|
|
1127
1127
|
href: action.href,
|
|
@@ -1138,8 +1138,8 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
var ACTIONS_GAP = "gap-[var(--spacing-system-xs)]";
|
|
1140
1140
|
function UnknownActionSkeleton({ shape, fullWidth }) {
|
|
1141
|
-
if (shape === "icon") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1142
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1141
|
+
if (shape === "icon") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.InteractiveSkeleton.Button, { size: "icon" });
|
|
1142
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.InteractiveSkeleton.Button, { size: "default", className: fullWidth ? "flex-1" : void 0 });
|
|
1143
1143
|
}
|
|
1144
1144
|
function PageActions({
|
|
1145
1145
|
variant = "icon-buttons",
|
|
@@ -1149,7 +1149,7 @@ function PageActions({
|
|
|
1149
1149
|
className,
|
|
1150
1150
|
loading: loadingProp
|
|
1151
1151
|
}) {
|
|
1152
|
-
const loading =
|
|
1152
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1153
1153
|
if (variant === "icon-buttons") {
|
|
1154
1154
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1155
1155
|
IconButtonsVariant,
|
|
@@ -1183,7 +1183,7 @@ function IconButtonsVariant({
|
|
|
1183
1183
|
className,
|
|
1184
1184
|
loading: loadingProp
|
|
1185
1185
|
}) {
|
|
1186
|
-
const loading =
|
|
1186
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1187
1187
|
const desktopActions = actions.filter((a) => !a.showOnlyMobile);
|
|
1188
1188
|
const hasMenuActions = !!menuActions && menuActions.some((g) => g.items.length > 0);
|
|
1189
1189
|
const isSingleAction = actions.length === 1 && !_optionalChain([actions, 'access', _23 => _23[0], 'access', _24 => _24.submenu, 'optionalAccess', _25 => _25.length]);
|
|
@@ -1192,13 +1192,13 @@ function IconButtonsVariant({
|
|
|
1192
1192
|
const mobileMenuGroups = [{ items: actions.flatMap(actionToMenuItems) }, ..._nullishCoalesce(menuActions, () => ( []))];
|
|
1193
1193
|
const hasMobileMenuItems = mobileMenuGroups.some((g) => g.items.length > 0);
|
|
1194
1194
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1195
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1195
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "hidden items-center content-md:flex", ACTIONS_GAP, className), children: [
|
|
1196
1196
|
selector,
|
|
1197
1197
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action, { inert: loading }) }, actionKey(action, idx))),
|
|
1198
1198
|
loading && desktopActions.length === 0 && !hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }),
|
|
1199
|
-
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1199
|
+
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJTIGKLKJcjs.ActionsMenuDropdown, { groups: menuActions, loading })
|
|
1200
1200
|
] }),
|
|
1201
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1201
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.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, _chunkJTIGKLKJcjs.ActionsMenuDropdown, { groups: mobileMenuGroups, loading }) : loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }) : null })
|
|
1202
1202
|
] });
|
|
1203
1203
|
}
|
|
1204
1204
|
function PrimaryButtonsVariant({
|
|
@@ -1206,7 +1206,7 @@ function PrimaryButtonsVariant({
|
|
|
1206
1206
|
className,
|
|
1207
1207
|
loading: loadingProp
|
|
1208
1208
|
}) {
|
|
1209
|
-
const loading =
|
|
1209
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1210
1210
|
const sortedActions = [...actions].sort((a, b) => {
|
|
1211
1211
|
if (a.variant === "accent" && b.variant !== "accent") return 1;
|
|
1212
1212
|
if (a.variant !== "accent" && b.variant === "accent") return -1;
|
|
@@ -1214,11 +1214,11 @@ function PrimaryButtonsVariant({
|
|
|
1214
1214
|
});
|
|
1215
1215
|
const desktopActions = sortedActions.filter((a) => !a.showOnlyMobile);
|
|
1216
1216
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1217
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1217
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "hidden items-center md:content-md:flex", ACTIONS_GAP, className), children: [
|
|
1218
1218
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action, { inert: loading }) }, `desktop-${actionKey(action, idx)}`)),
|
|
1219
1219
|
loading && desktopActions.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "label" })
|
|
1220
1220
|
] }),
|
|
1221
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1221
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "hidden items-center md:content-max-md:flex", ACTIONS_GAP, className), children: [
|
|
1222
1222
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompactPrimaryActions, { actions: desktopActions, loading }),
|
|
1223
1223
|
loading && desktopActions.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" })
|
|
1224
1224
|
] }),
|
|
@@ -1232,42 +1232,42 @@ function MenuPrimaryVariant({
|
|
|
1232
1232
|
className,
|
|
1233
1233
|
loading: loadingProp
|
|
1234
1234
|
}) {
|
|
1235
|
-
const loading =
|
|
1235
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1236
1236
|
const desktopActions = actions.filter((a) => !a.showOnlyMobile);
|
|
1237
1237
|
const hasMenuActions = menuActions.some((g) => g.items.length > 0);
|
|
1238
1238
|
const mobileMenuGroups = [{ items: actions.flatMap(actionToMenuItems) }, ...menuActions];
|
|
1239
1239
|
const hasMobileMenuItems = mobileMenuGroups.some((g) => g.items.length > 0);
|
|
1240
1240
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1241
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1241
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "hidden items-center content-md:flex", ACTIONS_GAP, className), children: [
|
|
1242
1242
|
selector,
|
|
1243
|
-
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1243
|
+
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJTIGKLKJcjs.ActionsMenuDropdown, { groups: menuActions, loading }),
|
|
1244
1244
|
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)}`)),
|
|
1245
1245
|
loading && desktopActions.length === 0 && !hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" })
|
|
1246
1246
|
] }),
|
|
1247
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1247
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex content-md:hidden", className), children: hasMobileMenuItems || selector ? (
|
|
1248
1248
|
// The selector rides into the menu as its header row: on mobile the
|
|
1249
1249
|
// title row has no room for it, and hiding it entirely (what
|
|
1250
1250
|
// `icon-buttons` does) would leave no way to switch views at all.
|
|
1251
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1251
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJTIGKLKJcjs.ActionsMenuDropdown, { groups: mobileMenuGroups, header: selector, loading })
|
|
1252
1252
|
) : loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }) : null })
|
|
1253
1253
|
] });
|
|
1254
1254
|
}
|
|
1255
1255
|
function CompactPrimaryActions({ actions, loading: loadingProp }) {
|
|
1256
|
-
const loading =
|
|
1256
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1257
1257
|
const foldable = actions.filter((action) => action.variant !== "accent" && !!action.label);
|
|
1258
1258
|
const fold = foldable.length > 1;
|
|
1259
1259
|
const inline = fold ? actions.filter((action) => !foldable.includes(action)) : actions;
|
|
1260
1260
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1261
|
-
fold && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1261
|
+
fold && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJTIGKLKJcjs.ActionsMenuDropdown, { groups: [{ items: foldable.flatMap(actionToMenuItems) }], loading }),
|
|
1262
1262
|
inline.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action, { inert: loading }) }, `compact-${actionKey(action, idx)}`))
|
|
1263
1263
|
] });
|
|
1264
1264
|
}
|
|
1265
1265
|
function MobileBottomActions({ actions, loading: loadingProp }) {
|
|
1266
|
-
const loading =
|
|
1266
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1267
1267
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1268
1268
|
"div",
|
|
1269
1269
|
{
|
|
1270
|
-
className:
|
|
1270
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1271
1271
|
"fixed bottom-0 left-0 right-0 z-50 md:hidden",
|
|
1272
1272
|
"border-t border-ods-border bg-ods-card",
|
|
1273
1273
|
// `lf` (24px at every breakpoint), NOT `l` — this bar is `md:hidden`, so the
|
|
@@ -1290,23 +1290,23 @@ function usePageActionsBottomPadding(variant) {
|
|
|
1290
1290
|
// src/components/ui/entity-image.tsx
|
|
1291
1291
|
|
|
1292
1292
|
|
|
1293
|
-
var ENTITY_IMAGE_SIZE =
|
|
1293
|
+
var ENTITY_IMAGE_SIZE = _chunk4WIJI4AKcjs.TILE_SIZE.entity;
|
|
1294
1294
|
var ENTITY_IMAGE_RADIUS_CLASS = "rounded-md";
|
|
1295
1295
|
function EntityImage({ src, alt, fallbackText, sizeClassName, className }) {
|
|
1296
|
-
const held =
|
|
1296
|
+
const held = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
1297
1297
|
const authedSrc = _chunkV4FXUIMHcjs.useAuthedImageSrc.call(void 0, held ? void 0 : src);
|
|
1298
1298
|
const resolvedSrc = authedSrc;
|
|
1299
1299
|
const [failedSrc, setFailedSrc] = _react2.default.useState(null);
|
|
1300
1300
|
const imageFailed = resolvedSrc !== void 0 && failedSrc === resolvedSrc;
|
|
1301
1301
|
if (held) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityImageSkeleton, { sizeClassName, className });
|
|
1302
1302
|
const showFallback = imageFailed || !resolvedSrc;
|
|
1303
|
-
const initials =
|
|
1303
|
+
const initials = _chunk6UKH22NQcjs.personInitials.call(void 0, _nullishCoalesce(fallbackText, () => ( alt)));
|
|
1304
1304
|
if (showFallback) {
|
|
1305
1305
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1306
1306
|
"div",
|
|
1307
1307
|
{
|
|
1308
1308
|
"aria-label": alt,
|
|
1309
|
-
className:
|
|
1309
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1310
1310
|
"flex shrink-0 select-none items-center justify-center border border-ods-border bg-ods-bg text-ods-text-secondary text-h4",
|
|
1311
1311
|
ENTITY_IMAGE_RADIUS_CLASS,
|
|
1312
1312
|
_nullishCoalesce(sizeClassName, () => ( ENTITY_IMAGE_SIZE)),
|
|
@@ -1317,12 +1317,12 @@ function EntityImage({ src, alt, fallbackText, sizeClassName, className }) {
|
|
|
1317
1317
|
);
|
|
1318
1318
|
}
|
|
1319
1319
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1320
|
-
|
|
1320
|
+
_chunkKUXHXLJQcjs.next_image_default,
|
|
1321
1321
|
{
|
|
1322
1322
|
src: resolvedSrc,
|
|
1323
1323
|
alt: _nullishCoalesce(alt, () => ( "")),
|
|
1324
1324
|
onError: () => setFailedSrc(resolvedSrc),
|
|
1325
|
-
className:
|
|
1325
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1326
1326
|
"shrink-0 border border-ods-border object-contain",
|
|
1327
1327
|
ENTITY_IMAGE_RADIUS_CLASS,
|
|
1328
1328
|
_nullishCoalesce(sizeClassName, () => ( ENTITY_IMAGE_SIZE)),
|
|
@@ -1336,9 +1336,9 @@ function EntityImage({ src, alt, fallbackText, sizeClassName, className }) {
|
|
|
1336
1336
|
}
|
|
1337
1337
|
function EntityImageSkeleton({ sizeClassName, className }) {
|
|
1338
1338
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1339
|
-
|
|
1339
|
+
_chunk4WIJI4AKcjs.UnifiedSkeleton,
|
|
1340
1340
|
{
|
|
1341
|
-
className:
|
|
1341
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0", ENTITY_IMAGE_RADIUS_CLASS, _nullishCoalesce(sizeClassName, () => ( ENTITY_IMAGE_SIZE)), className)
|
|
1342
1342
|
}
|
|
1343
1343
|
);
|
|
1344
1344
|
}
|
|
@@ -1384,7 +1384,7 @@ function TitleBlock({
|
|
|
1384
1384
|
titleWrap = false,
|
|
1385
1385
|
titleSkeletonLines
|
|
1386
1386
|
}) {
|
|
1387
|
-
const scoped =
|
|
1387
|
+
const scoped = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
1388
1388
|
const titleLoading = !!loading || scoped && title === "";
|
|
1389
1389
|
const subtitleLoading = !!loading || scoped && subtitle === "";
|
|
1390
1390
|
const hasSubtitleRow = !!subtitle || subtitleRow === "always" || subtitleRow === "while-loading" && !!loading || scoped && subtitle === "";
|
|
@@ -1399,24 +1399,24 @@ function TitleBlock({
|
|
|
1399
1399
|
const { ref: subtitleRef, isTruncated: subtitleTruncated } = _chunkV4FXUIMHcjs.useIsTruncated.call(void 0,
|
|
1400
1400
|
subtitleLoading ? null : subtitle
|
|
1401
1401
|
);
|
|
1402
|
-
const titleNode = titleLoading && titleWrap && titleSkeletonLines ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1403
|
-
|
|
1402
|
+
const titleNode = titleLoading && titleWrap && titleSkeletonLines ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLinesByBreakpointSkeleton, { as: "span", lines: titleSkeletonLines }) : titleLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1403
|
+
_chunk4WIJI4AKcjs.UnifiedSkeleton,
|
|
1404
1404
|
{
|
|
1405
1405
|
as: "span",
|
|
1406
1406
|
"aria-hidden": true,
|
|
1407
|
-
className:
|
|
1407
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, TITLE_TEXT_SKELETON_CLASS, skeletonSize.width, skeletonSize.height)
|
|
1408
1408
|
}
|
|
1409
1409
|
) : title;
|
|
1410
1410
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1411
1411
|
"div",
|
|
1412
1412
|
{
|
|
1413
|
-
className:
|
|
1413
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1414
1414
|
"flex items-end justify-between gap-[var(--spacing-system-m)]",
|
|
1415
1415
|
// md+: one wrapping row — actions stay inline with a short title and
|
|
1416
1416
|
// wrap to a second row only when the title overflows (ClickUp 86ahd6uy5).
|
|
1417
1417
|
"content-md:flex-wrap content-md:content-end",
|
|
1418
1418
|
"pt-[var(--spacing-system-l)]",
|
|
1419
|
-
variant === "card" ?
|
|
1419
|
+
variant === "card" ? _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1420
1420
|
"border-b border-ods-border bg-ods-card",
|
|
1421
1421
|
"px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]",
|
|
1422
1422
|
"content-md:border-b-0 content-md:bg-transparent",
|
|
@@ -1429,7 +1429,7 @@ function TitleBlock({
|
|
|
1429
1429
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1430
1430
|
"div",
|
|
1431
1431
|
{
|
|
1432
|
-
className:
|
|
1432
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1433
1433
|
"flex min-w-0 flex-1 flex-col justify-center gap-[var(--spacing-system-xs)] content-md:max-w-full content-md:flex-none",
|
|
1434
1434
|
TITLE_BLOCK_MIN_HEIGHT,
|
|
1435
1435
|
// A wrapping title's loading lines stand for a title that fills the row (its typical lines are full ones), so the
|
|
@@ -1443,7 +1443,7 @@ function TitleBlock({
|
|
|
1443
1443
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
1444
1444
|
(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: [
|
|
1445
1445
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1446
|
-
|
|
1446
|
+
_chunk6UKH22NQcjs.FloatingTooltip,
|
|
1447
1447
|
{
|
|
1448
1448
|
content: title,
|
|
1449
1449
|
side: "bottom",
|
|
@@ -1453,41 +1453,41 @@ function TitleBlock({
|
|
|
1453
1453
|
PageTitle,
|
|
1454
1454
|
{
|
|
1455
1455
|
ref: titleRef,
|
|
1456
|
-
className:
|
|
1456
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, titleClass, "min-w-0 text-ods-text-primary", titleOverflowClass),
|
|
1457
1457
|
children: titleNode
|
|
1458
1458
|
}
|
|
1459
1459
|
)
|
|
1460
1460
|
}
|
|
1461
1461
|
),
|
|
1462
1462
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: titleAdornment })
|
|
1463
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1463
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.FloatingTooltip, { content: title, side: "bottom", disabled: !titleTruncated, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTitle, { ref: titleRef, className: _chunk7JWFMAQBcjs.cn.call(void 0, titleClass, "text-ods-text-primary", titleOverflowClass), children: titleNode }) })),
|
|
1464
1464
|
hasSubtitleRow && /* The NBSP is a pure spacer, reached only in `'always'` mode: an
|
|
1465
1465
|
empty `p` collapses to zero height (its only content would be
|
|
1466
1466
|
collapsible whitespace), which is exactly the shift that mode
|
|
1467
1467
|
exists to prevent. Hidden from AT — it carries no meaning. */
|
|
1468
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1468
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.FloatingTooltip, { content: subtitle, side: "bottom", disabled: !subtitleTruncated, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1469
1469
|
"p",
|
|
1470
1470
|
{
|
|
1471
1471
|
ref: subtitleRef,
|
|
1472
1472
|
className: "truncate text-ods-text-secondary text-h6",
|
|
1473
1473
|
"aria-hidden": !subtitleLoading && !subtitle ? true : void 0,
|
|
1474
1474
|
children: subtitleLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1475
|
-
|
|
1475
|
+
_chunk4WIJI4AKcjs.UnifiedSkeleton,
|
|
1476
1476
|
{
|
|
1477
1477
|
as: "span",
|
|
1478
1478
|
"aria-hidden": true,
|
|
1479
|
-
className:
|
|
1479
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, TITLE_TEXT_SKELETON_CLASS, "h-2.5 w-28 content-md:h-3 content-md:w-36")
|
|
1480
1480
|
}
|
|
1481
1481
|
) : subtitle || "\xA0"
|
|
1482
1482
|
}
|
|
1483
1483
|
) })
|
|
1484
1484
|
] })
|
|
1485
1485
|
] }) : title && (titleAdornment ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-m)]", children: [
|
|
1486
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1486
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6UKH22NQcjs.FloatingTooltip, { content: title, side: "bottom", disabled: !titleTruncated, triggerClassName: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1487
1487
|
PageTitle,
|
|
1488
1488
|
{
|
|
1489
1489
|
ref: titleRef,
|
|
1490
|
-
className:
|
|
1490
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, titleClass, "min-w-0 text-ods-text-primary", titleOverflowClass),
|
|
1491
1491
|
children: title
|
|
1492
1492
|
}
|
|
1493
1493
|
) }),
|
|
@@ -1497,7 +1497,7 @@ function TitleBlock({
|
|
|
1497
1497
|
wraps; `titleWrap` only adds break-words for pathological
|
|
1498
1498
|
unbroken tokens. No class change when the prop is unset —
|
|
1499
1499
|
the frozen baseline stays byte-identical. */
|
|
1500
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTitle, { className:
|
|
1500
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTitle, { className: _chunk7JWFMAQBcjs.cn.call(void 0, titleClass, "text-ods-text-primary", titleWrap && "break-words"), children: title })
|
|
1501
1501
|
))
|
|
1502
1502
|
]
|
|
1503
1503
|
}
|
|
@@ -1544,7 +1544,7 @@ function PageLayout({
|
|
|
1544
1544
|
const hasActions = actions && actions.length > 0;
|
|
1545
1545
|
const needsBottomPadding = hasActions && actionsVariant === "primary-buttons";
|
|
1546
1546
|
const hasHeader = showHeader && (title || subtitle || image || backButton || hasActions || selector || loading);
|
|
1547
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1547
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex w-full flex-col", className), children: [
|
|
1548
1548
|
hasHeader && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1549
1549
|
TitleBlock,
|
|
1550
1550
|
{
|
|
@@ -1569,7 +1569,7 @@ function PageLayout({
|
|
|
1569
1569
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1570
1570
|
"div",
|
|
1571
1571
|
{
|
|
1572
|
-
className:
|
|
1572
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1573
1573
|
"flex flex-1 flex-col gap-[var(--spacing-system-l)]",
|
|
1574
1574
|
needsBottomPadding && "pb-28 content-md:pb-0",
|
|
1575
1575
|
contentClassName
|
|
@@ -1598,12 +1598,12 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1598
1598
|
const faces = ordered.slice(0, max);
|
|
1599
1599
|
const overflow = ordered.length - faces.length;
|
|
1600
1600
|
const Chevron = open ? _chunk3MRRIHC2cjs.Chevron02UpIcon : _chunkSKI6NKOEcjs.Chevron02DownIcon;
|
|
1601
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1601
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkNL3G642Ucjs.DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
1602
1602
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1603
|
-
|
|
1603
|
+
_chunkNL3G642Ucjs.DropdownMenuTrigger,
|
|
1604
1604
|
{
|
|
1605
1605
|
"aria-label": `In this session: ${ordered.map(viewerLabel).join(", ")}`,
|
|
1606
|
-
className:
|
|
1606
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1607
1607
|
"flex shrink-0 items-center gap-[var(--spacing-system-xxs)] rounded-md outline-none",
|
|
1608
1608
|
"focus-visible:ring-2 focus-visible:ring-ods-focus",
|
|
1609
1609
|
className
|
|
@@ -1611,14 +1611,14 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1611
1611
|
children: [
|
|
1612
1612
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center", children: [
|
|
1613
1613
|
faces.map((viewer, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1614
|
-
|
|
1614
|
+
_chunk6UKH22NQcjs.SquareAvatar,
|
|
1615
1615
|
{
|
|
1616
1616
|
variant: "round",
|
|
1617
1617
|
sizePx: 32,
|
|
1618
1618
|
src: _nullishCoalesce(viewer.avatarUrl, () => ( void 0)),
|
|
1619
1619
|
alt: viewer.name,
|
|
1620
1620
|
fallback: viewer.name,
|
|
1621
|
-
className:
|
|
1621
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1622
1622
|
"relative bg-ods-bg",
|
|
1623
1623
|
viewer.isHost ? "ring-2 ring-ods-accent" : "ring-1 ring-ods-border",
|
|
1624
1624
|
index > 0 && "-ml-2"
|
|
@@ -1636,16 +1636,16 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1636
1636
|
]
|
|
1637
1637
|
}
|
|
1638
1638
|
),
|
|
1639
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1640
|
-
|
|
1639
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNL3G642Ucjs.DropdownMenuContent, { align: "end", className: "w-[280px] p-0", children: ordered.map((viewer) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1640
|
+
_chunkNL3G642Ucjs.DropdownMenuItem,
|
|
1641
1641
|
{
|
|
1642
|
-
className:
|
|
1642
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1643
1643
|
"gap-[var(--spacing-system-xsf)] rounded-none border-b border-ods-border bg-ods-bg last:border-b-0",
|
|
1644
1644
|
"py-[var(--spacing-system-s)] pl-[var(--spacing-system-mf)] pr-[var(--spacing-system-xs)] text-h4"
|
|
1645
1645
|
),
|
|
1646
1646
|
children: [
|
|
1647
1647
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1648
|
-
|
|
1648
|
+
_chunk6UKH22NQcjs.SquareAvatar,
|
|
1649
1649
|
{
|
|
1650
1650
|
variant: "round",
|
|
1651
1651
|
sizePx: 24,
|
|
@@ -1691,7 +1691,7 @@ function RemoteSessionScope({ children, className }) {
|
|
|
1691
1691
|
function RemoteSessionOrgLogo({ name, logoUrl, sizePx, className }) {
|
|
1692
1692
|
if (logoUrl) {
|
|
1693
1693
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1694
|
-
|
|
1694
|
+
_chunk6UKH22NQcjs.SquareAvatar,
|
|
1695
1695
|
{
|
|
1696
1696
|
variant: "square",
|
|
1697
1697
|
fit: "contain",
|
|
@@ -1699,7 +1699,7 @@ function RemoteSessionOrgLogo({ name, logoUrl, sizePx, className }) {
|
|
|
1699
1699
|
src: logoUrl,
|
|
1700
1700
|
alt: name,
|
|
1701
1701
|
fallback: name,
|
|
1702
|
-
className:
|
|
1702
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0 rounded-md border border-ods-border bg-ods-card", className)
|
|
1703
1703
|
}
|
|
1704
1704
|
);
|
|
1705
1705
|
}
|
|
@@ -1709,7 +1709,7 @@ function RemoteSessionOrgLogo({ name, logoUrl, sizePx, className }) {
|
|
|
1709
1709
|
role: "img",
|
|
1710
1710
|
"aria-label": name,
|
|
1711
1711
|
style: { width: sizePx, height: sizePx },
|
|
1712
|
-
className:
|
|
1712
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1713
1713
|
"flex shrink-0 items-center justify-center rounded-md border border-ods-border bg-ods-card",
|
|
1714
1714
|
className
|
|
1715
1715
|
),
|
|
@@ -1728,7 +1728,7 @@ function RemoteSessionRecordingTag({ className }) {
|
|
|
1728
1728
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1729
1729
|
"div",
|
|
1730
1730
|
{
|
|
1731
|
-
className:
|
|
1731
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1732
1732
|
"flex h-8 items-center gap-[var(--spacing-system-xs)] self-start rounded-md bg-ods-success-secondary p-[var(--spacing-system-xsf)]",
|
|
1733
1733
|
className
|
|
1734
1734
|
),
|
|
@@ -1757,7 +1757,7 @@ function RemoteSessionDragger({ dragHandlers }) {
|
|
|
1757
1757
|
"span",
|
|
1758
1758
|
{
|
|
1759
1759
|
"aria-hidden": true,
|
|
1760
|
-
className:
|
|
1760
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1761
1761
|
"absolute right-[var(--spacing-system-xsf)] top-[var(--spacing-system-xsf)] text-ods-text-secondary",
|
|
1762
1762
|
dragHandlers && REMOTE_SESSION_DRAG_HANDLE_CLASS
|
|
1763
1763
|
),
|
|
@@ -1801,9 +1801,9 @@ function RemoteAccessRequestCard({
|
|
|
1801
1801
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteSessionOrgLogo, { name: organizationName, logoUrl: party.organizationLogoUrl, sizePx: 64 }),
|
|
1802
1802
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
1803
1803
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full truncate text-ods-text-primary text-h3", children: organizationName }),
|
|
1804
|
-
siteUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full truncate text-ods-text-secondary text-h4", children:
|
|
1804
|
+
siteUrl && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full truncate text-ods-text-secondary text-h4", children: _chunk6UKH22NQcjs.formatUrlForDisplay.call(void 0, siteUrl, { keepWww: true }) })
|
|
1805
1805
|
] }),
|
|
1806
|
-
openableSite && onOpenSite && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1806
|
+
openableSite && onOpenSite && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.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" }) })
|
|
1807
1807
|
] }),
|
|
1808
1808
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: [
|
|
1809
1809
|
"A technician from ",
|
|
@@ -1819,7 +1819,7 @@ function RemoteAccessRequestCard({
|
|
|
1819
1819
|
] }),
|
|
1820
1820
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-stretch gap-[var(--spacing-system-l)]", children: [
|
|
1821
1821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1822
|
-
|
|
1822
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
1823
1823
|
{
|
|
1824
1824
|
variant: "outline",
|
|
1825
1825
|
fullWidth: true,
|
|
@@ -1830,7 +1830,7 @@ function RemoteAccessRequestCard({
|
|
|
1830
1830
|
}
|
|
1831
1831
|
),
|
|
1832
1832
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1833
|
-
|
|
1833
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
1834
1834
|
{
|
|
1835
1835
|
variant: "accent",
|
|
1836
1836
|
fullWidth: true,
|
|
@@ -1853,14 +1853,14 @@ var RemoteSessionBlockFrame = _react.forwardRef.call(void 0,
|
|
|
1853
1853
|
"div",
|
|
1854
1854
|
{
|
|
1855
1855
|
ref,
|
|
1856
|
-
className:
|
|
1856
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1857
1857
|
"flex w-[440px] shrink-0 flex-col overflow-hidden rounded-md border border-ods-border bg-ods-bg",
|
|
1858
1858
|
expanded && "h-[680px]",
|
|
1859
1859
|
className
|
|
1860
1860
|
),
|
|
1861
1861
|
children: [
|
|
1862
1862
|
children,
|
|
1863
|
-
/* @__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,
|
|
1863
|
+
/* @__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, _chunkAHBTZ7DNcjs.Button, { variant: "row", type: "button", className: "h-12", onClick: onHide, children: [
|
|
1864
1864
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFM7BOWEIcjs.Chevrons03RightIcon, { size: 24 }),
|
|
1865
1865
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-secondary", children: "Hide this Block" }),
|
|
1866
1866
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1880,7 +1880,7 @@ var RemoteSessionBlockFrame = _react.forwardRef.call(void 0,
|
|
|
1880
1880
|
RemoteSessionBlockFrame.displayName = "RemoteSessionBlockFrame";
|
|
1881
1881
|
function RemoteSessionEndButton({ onEndSession }) {
|
|
1882
1882
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1883
|
-
|
|
1883
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
1884
1884
|
{
|
|
1885
1885
|
variant: "outline",
|
|
1886
1886
|
fullWidth: true,
|
|
@@ -1905,14 +1905,14 @@ function RemoteSessionSummary({
|
|
|
1905
1905
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1906
1906
|
"div",
|
|
1907
1907
|
{
|
|
1908
|
-
className:
|
|
1908
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
1909
1909
|
"flex w-full items-center gap-[var(--spacing-system-xs)] pr-[var(--spacing-system-mf)]",
|
|
1910
1910
|
dragHandlers && REMOTE_SESSION_DRAG_HANDLE_CLASS
|
|
1911
1911
|
),
|
|
1912
1912
|
...dragHandlers,
|
|
1913
1913
|
children: [
|
|
1914
1914
|
technician ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1915
|
-
|
|
1915
|
+
_chunk6UKH22NQcjs.SquareAvatar,
|
|
1916
1916
|
{
|
|
1917
1917
|
variant: "round",
|
|
1918
1918
|
sizePx: 48,
|
|
@@ -1938,7 +1938,7 @@ function RemoteSessionSummary({
|
|
|
1938
1938
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteSessionStatusRow, { showRecordingTag, viewers }),
|
|
1939
1939
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-stretch gap-[var(--spacing-system-m)]", children: [
|
|
1940
1940
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1941
|
-
|
|
1941
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
1942
1942
|
{
|
|
1943
1943
|
variant: "outline",
|
|
1944
1944
|
fullWidth: true,
|
|
@@ -1955,18 +1955,18 @@ var RemoteSessionMinimizedChip = _react.forwardRef.call(void 0,
|
|
|
1955
1955
|
({ party, onExpand, dragHandlers }, ref) => {
|
|
1956
1956
|
const technician = party.technicianName;
|
|
1957
1957
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1958
|
-
|
|
1958
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
1959
1959
|
{
|
|
1960
1960
|
variant: "card",
|
|
1961
1961
|
ref,
|
|
1962
1962
|
type: "button",
|
|
1963
1963
|
"aria-label": "Show session block",
|
|
1964
|
-
className:
|
|
1964
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-auto shrink-0", dragHandlers && REMOTE_SESSION_DRAG_HANDLE_CLASS),
|
|
1965
1965
|
onClick: onExpand,
|
|
1966
1966
|
...dragHandlers,
|
|
1967
1967
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-col overflow-hidden rounded-md border border-ods-border", children: [
|
|
1968
1968
|
technician ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1969
|
-
|
|
1969
|
+
_chunk6UKH22NQcjs.SquareAvatar,
|
|
1970
1970
|
{
|
|
1971
1971
|
sizePx: 48,
|
|
1972
1972
|
src: _nullishCoalesce(party.technicianAvatarUrl, () => ( void 0)),
|
|
@@ -2028,7 +2028,7 @@ function RemoteSessionChatPanel({
|
|
|
2028
2028
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2029
2029
|
"div",
|
|
2030
2030
|
{
|
|
2031
|
-
className:
|
|
2031
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
2032
2032
|
"flex w-full flex-col pr-[var(--spacing-system-mf)]",
|
|
2033
2033
|
dragHandlers && REMOTE_SESSION_DRAG_HANDLE_CLASS
|
|
2034
2034
|
),
|
|
@@ -2049,7 +2049,7 @@ function RemoteSessionChatPanel({
|
|
|
2049
2049
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteSessionStatusRow, { showRecordingTag, viewers }),
|
|
2050
2050
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-stretch gap-[var(--spacing-system-m)]", children: [
|
|
2051
2051
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2052
|
-
|
|
2052
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2053
2053
|
{
|
|
2054
2054
|
variant: "outline",
|
|
2055
2055
|
fullWidth: true,
|
|
@@ -2093,7 +2093,7 @@ function RemoteSessionChatPanel({
|
|
|
2093
2093
|
}
|
|
2094
2094
|
),
|
|
2095
2095
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2096
|
-
|
|
2096
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2097
2097
|
{
|
|
2098
2098
|
variant: "transparent",
|
|
2099
2099
|
size: "icon",
|
|
@@ -2118,7 +2118,7 @@ function RemoteSessionChatMessageRow({
|
|
|
2118
2118
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
2119
2119
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2120
2120
|
isTechnician && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2121
|
-
|
|
2121
|
+
_chunk6UKH22NQcjs.SquareAvatar,
|
|
2122
2122
|
{
|
|
2123
2123
|
variant: "round",
|
|
2124
2124
|
sizePx: 16,
|
|
@@ -2129,7 +2129,7 @@ function RemoteSessionChatMessageRow({
|
|
|
2129
2129
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2130
2130
|
"span",
|
|
2131
2131
|
{
|
|
2132
|
-
className:
|
|
2132
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
2133
2133
|
"min-w-0 flex-1 truncate text-code",
|
|
2134
2134
|
isTechnician ? "text-ods-accent" : "text-ods-text-secondary"
|
|
2135
2135
|
),
|
|
@@ -2157,11 +2157,11 @@ function RemoteDesktopChatMessageRow({
|
|
|
2157
2157
|
loading: loadingProp = false,
|
|
2158
2158
|
...props
|
|
2159
2159
|
}) {
|
|
2160
|
-
const loading =
|
|
2161
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: MESSAGE_ROW_CLASS, "aria-hidden": loading || void 0, ...
|
|
2160
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
2161
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: MESSAGE_ROW_CLASS, "aria-hidden": loading || void 0, ..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props), children: [
|
|
2162
2162
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: MESSAGE_HEAD_CLASS, children: [
|
|
2163
2163
|
isTechnician && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2164
|
-
|
|
2164
|
+
_chunk6UKH22NQcjs.SquareAvatar,
|
|
2165
2165
|
{
|
|
2166
2166
|
loading,
|
|
2167
2167
|
variant: "round",
|
|
@@ -2174,16 +2174,16 @@ function RemoteDesktopChatMessageRow({
|
|
|
2174
2174
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2175
2175
|
"span",
|
|
2176
2176
|
{
|
|
2177
|
-
className:
|
|
2178
|
-
children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2177
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, MESSAGE_NAME_CLASS, !loading && (isTechnician ? "text-ods-accent" : "text-ods-text-secondary")),
|
|
2178
|
+
children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) : authorName
|
|
2179
2179
|
}
|
|
2180
2180
|
),
|
|
2181
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2181
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", as: "span", className: "w-12 shrink-0" }) : (
|
|
2182
2182
|
// The time is in the viewer's zone, which a server render cannot know.
|
|
2183
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { suppressHydrationWarning: true, className: "shrink-0 text-ods-text-secondary text-h6", children:
|
|
2183
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { suppressHydrationWarning: true, className: "shrink-0 text-ods-text-secondary text-h6", children: _chunk3NGJ7NPTcjs.formatTime.call(void 0, sentAt) })
|
|
2184
2184
|
)
|
|
2185
2185
|
] }),
|
|
2186
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2186
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.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 })
|
|
2187
2187
|
] });
|
|
2188
2188
|
}
|
|
2189
2189
|
|
|
@@ -2202,7 +2202,7 @@ function RemoteDesktopChatPanel({
|
|
|
2202
2202
|
}) {
|
|
2203
2203
|
const scrollRef = _react.useRef.call(void 0, null);
|
|
2204
2204
|
const rows = messages.filter((message) => message.author !== "system");
|
|
2205
|
-
const loading =
|
|
2205
|
+
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || rows.length === 0 && !!loadingProp;
|
|
2206
2206
|
_react.useEffect.call(void 0, () => {
|
|
2207
2207
|
const el = scrollRef.current;
|
|
2208
2208
|
if (el) el.scrollTop = el.scrollHeight;
|
|
@@ -2211,7 +2211,7 @@ function RemoteDesktopChatPanel({
|
|
|
2211
2211
|
"aside",
|
|
2212
2212
|
{
|
|
2213
2213
|
"aria-label": "Session chat",
|
|
2214
|
-
className:
|
|
2214
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
2215
2215
|
"flex flex-col gap-[var(--spacing-system-mf)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-mf)]",
|
|
2216
2216
|
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"
|
|
2217
2217
|
),
|
|
@@ -2219,7 +2219,7 @@ function RemoteDesktopChatPanel({
|
|
|
2219
2219
|
/* @__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 ? (
|
|
2220
2220
|
// The chat while it is read: a screen of the panel's own message rows, stacked by a one-column grid
|
|
2221
2221
|
// (the thread above is already the column flexbox: WEBVIEW-001).
|
|
2222
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2222
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading the chat", className: "grid grid-cols-1 gap-[var(--spacing-system-xsf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: CHAT_PANEL_SKELETON_ROWS, children: (i) => (
|
|
2223
2223
|
// A conversation: the technician and the user take turns.
|
|
2224
2224
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2225
2225
|
RemoteDesktopChatMessageRow,
|
|
@@ -2246,7 +2246,7 @@ function RemoteDesktopChatPanel({
|
|
|
2246
2246
|
message.id
|
|
2247
2247
|
)) }) }),
|
|
2248
2248
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2249
|
-
|
|
2249
|
+
_chunk3NGJ7NPTcjs.ChatInput,
|
|
2250
2250
|
{
|
|
2251
2251
|
placeholder: "Enter your Message...",
|
|
2252
2252
|
onSend,
|
|
@@ -2290,10 +2290,10 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2290
2290
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
2291
2291
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h6", children: deviceName }),
|
|
2292
2292
|
displayMenuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2293
|
-
|
|
2293
|
+
_chunkJTIGKLKJcjs.ActionsMenuDropdown,
|
|
2294
2294
|
{
|
|
2295
2295
|
groups: displayMenuGroups,
|
|
2296
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2296
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", size: "small", type: "button", "aria-label": "Switch display", className: "shrink-0", children: [
|
|
2297
2297
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, {}),
|
|
2298
2298
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: currentDisplayLabel }),
|
|
2299
2299
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSKI6NKOEcjs.Chevron02DownIcon, {})
|
|
@@ -2303,7 +2303,7 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2303
2303
|
] }),
|
|
2304
2304
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2305
2305
|
onToggleChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2306
|
-
|
|
2306
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2307
2307
|
{
|
|
2308
2308
|
variant: "outline",
|
|
2309
2309
|
size: "small",
|
|
@@ -2313,11 +2313,11 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2313
2313
|
}
|
|
2314
2314
|
),
|
|
2315
2315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2316
|
-
|
|
2316
|
+
_chunkJTIGKLKJcjs.ActionsMenuDropdown,
|
|
2317
2317
|
{
|
|
2318
2318
|
groups: actionsMenuGroups,
|
|
2319
2319
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2320
|
-
|
|
2320
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2321
2321
|
{
|
|
2322
2322
|
variant: "outline",
|
|
2323
2323
|
size: "icon-sm",
|
|
@@ -2328,7 +2328,7 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2328
2328
|
}
|
|
2329
2329
|
),
|
|
2330
2330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2331
|
-
|
|
2331
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2332
2332
|
{
|
|
2333
2333
|
variant: "outline",
|
|
2334
2334
|
size: "icon-sm",
|
|
@@ -2338,7 +2338,7 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2338
2338
|
}
|
|
2339
2339
|
),
|
|
2340
2340
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2341
|
-
|
|
2341
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2342
2342
|
{
|
|
2343
2343
|
variant: "outline",
|
|
2344
2344
|
size: "icon-sm",
|
|
@@ -2377,20 +2377,20 @@ function RemoteDesktopView({
|
|
|
2377
2377
|
children,
|
|
2378
2378
|
loading: loadingProp = false
|
|
2379
2379
|
}) {
|
|
2380
|
-
const inScope =
|
|
2380
|
+
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
2381
2381
|
const loading = inScope || loadingProp;
|
|
2382
2382
|
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: [
|
|
2383
2383
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-mf)]", children: [
|
|
2384
2384
|
/* @__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" }) }),
|
|
2385
2385
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
2386
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2387
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2386
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-48 max-w-full" }),
|
|
2387
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-36 max-w-full" })
|
|
2388
2388
|
] })
|
|
2389
2389
|
] }),
|
|
2390
2390
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2391
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2392
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2393
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2391
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.InteractiveSkeleton.Button, { size: "icon" }),
|
|
2392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.InteractiveSkeleton.Button, { size: "icon" }),
|
|
2393
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.InteractiveSkeleton.Button, { size: "icon" })
|
|
2394
2394
|
] })
|
|
2395
2395
|
] }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTROLS_BAR_CLASS, children: [
|
|
2396
2396
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTROLS_ROW_CLASS, children: [
|
|
@@ -2410,7 +2410,7 @@ function RemoteDesktopView({
|
|
|
2410
2410
|
] }),
|
|
2411
2411
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2412
2412
|
onToggleChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2413
|
-
|
|
2413
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2414
2414
|
{
|
|
2415
2415
|
variant: "outline",
|
|
2416
2416
|
onClick: onToggleChat,
|
|
@@ -2418,9 +2418,9 @@ function RemoteDesktopView({
|
|
|
2418
2418
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only content-md:not-sr-only", children: chatOpen ? "Close Chat" : "Open Chat" })
|
|
2419
2419
|
}
|
|
2420
2420
|
),
|
|
2421
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2421
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJTIGKLKJcjs.ActionsMenuDropdown, { groups: actionsMenuGroups, triggerAriaLabel: "Actions" }),
|
|
2422
2422
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2423
|
-
|
|
2423
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2424
2424
|
{
|
|
2425
2425
|
variant: "outline",
|
|
2426
2426
|
size: "icon",
|
|
@@ -2430,7 +2430,7 @@ function RemoteDesktopView({
|
|
|
2430
2430
|
}
|
|
2431
2431
|
),
|
|
2432
2432
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2433
|
-
|
|
2433
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2434
2434
|
{
|
|
2435
2435
|
variant: "outline",
|
|
2436
2436
|
size: "icon",
|
|
@@ -2442,11 +2442,11 @@ function RemoteDesktopView({
|
|
|
2442
2442
|
] })
|
|
2443
2443
|
] }),
|
|
2444
2444
|
displayMenuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-t border-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2445
|
-
|
|
2445
|
+
_chunkJTIGKLKJcjs.ActionsMenuDropdown,
|
|
2446
2446
|
{
|
|
2447
2447
|
groups: displayMenuGroups,
|
|
2448
2448
|
align: "start",
|
|
2449
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2449
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "row", type: "button", "aria-label": "Switch display", children: [
|
|
2450
2450
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "h-6 w-6" }),
|
|
2451
2451
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate", children: currentDisplayLabel }),
|
|
2452
2452
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSKI6NKOEcjs.Chevron02DownIcon, { className: "h-6 w-6" })
|
|
@@ -2455,7 +2455,7 @@ function RemoteDesktopView({
|
|
|
2455
2455
|
) })
|
|
2456
2456
|
] });
|
|
2457
2457
|
if (loading) {
|
|
2458
|
-
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,
|
|
2458
|
+
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, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading the remote session", announce: !inScope, className: "contents", children: [
|
|
2459
2459
|
controlsBar,
|
|
2460
2460
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-0 min-w-0 flex-1 rounded-lg bg-black" })
|
|
2461
2461
|
] }) });
|
|
@@ -2512,8 +2512,8 @@ function RemoteSessionDialog({
|
|
|
2512
2512
|
/* @__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." })
|
|
2513
2513
|
] }),
|
|
2514
2514
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-stretch gap-[var(--spacing-system-l)]", children: [
|
|
2515
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2516
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2515
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", fullWidth: true, disabled: ending, onClick: onClose, children: "Cancel" }),
|
|
2516
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "destructive", fullWidth: true, loading: ending, onClick: onEndSession, children: "End Session" })
|
|
2517
2517
|
] })
|
|
2518
2518
|
] });
|
|
2519
2519
|
}
|
|
@@ -2527,7 +2527,7 @@ function RemoteSessionDialog({
|
|
|
2527
2527
|
copy.suffix
|
|
2528
2528
|
] })
|
|
2529
2529
|
] }),
|
|
2530
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2530
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-full justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", className: "w-1/2", onClick: onClose, children: "Close" }) })
|
|
2531
2531
|
] });
|
|
2532
2532
|
}
|
|
2533
2533
|
function DialogCard({ children }) {
|
|
@@ -2537,10 +2537,10 @@ function DialogCard({ children }) {
|
|
|
2537
2537
|
// src/components/features/remote-session/remote-session-overlay.tsx
|
|
2538
2538
|
|
|
2539
2539
|
function RemoteSessionBorder({ className }) {
|
|
2540
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2540
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "pointer-events-none size-full border-4 border-ods-warning", className) });
|
|
2541
2541
|
}
|
|
2542
2542
|
function RemoteSessionPill({ onEndSession }) {
|
|
2543
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2543
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "warning", type: "button", onClick: onEndSession, children: [
|
|
2544
2544
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQED3GWZXcjs.MonitorOffIcon, { size: 24, color: "currentColor" }),
|
|
2545
2545
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: "End Session" })
|
|
2546
2546
|
] });
|
|
@@ -2589,9 +2589,9 @@ function KeepRecordingModal({
|
|
|
2589
2589
|
if (!canKeep || isPending) return;
|
|
2590
2590
|
onConfirm({ reason, description: reason === "OTHER" ? trimmed : null });
|
|
2591
2591
|
};
|
|
2592
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2592
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NGJ7NPTcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2593
2593
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2594
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2594
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ModalTitle, { children: "Keep this recording" }) }),
|
|
2595
2595
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2596
2596
|
KeepNotice,
|
|
2597
2597
|
{
|
|
@@ -2618,7 +2618,7 @@ function KeepRecordingModal({
|
|
|
2618
2618
|
}
|
|
2619
2619
|
),
|
|
2620
2620
|
reason === "OTHER" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2621
|
-
|
|
2621
|
+
_chunkTTZEDDR5cjs.Input,
|
|
2622
2622
|
{
|
|
2623
2623
|
"aria-label": "Reason description",
|
|
2624
2624
|
value: description,
|
|
@@ -2629,11 +2629,11 @@ function KeepRecordingModal({
|
|
|
2629
2629
|
}
|
|
2630
2630
|
)
|
|
2631
2631
|
] }),
|
|
2632
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2633
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2632
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NGJ7NPTcjs.ModalFooter, { children: [
|
|
2633
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2634
2634
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2635
2635
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2636
|
-
|
|
2636
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2637
2637
|
{
|
|
2638
2638
|
type: "button",
|
|
2639
2639
|
variant: "accent",
|
|
@@ -2659,9 +2659,9 @@ function ReleaseKeepingModal({
|
|
|
2659
2659
|
isPending = false,
|
|
2660
2660
|
onConfirm
|
|
2661
2661
|
}) {
|
|
2662
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2662
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NGJ7NPTcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2663
2663
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2664
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2664
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ModalTitle, { children: "Release Keeping" }) }),
|
|
2665
2665
|
/* @__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: [
|
|
2666
2666
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { children: [
|
|
2667
2667
|
"Kept by ",
|
|
@@ -2678,10 +2678,10 @@ function ReleaseKeepingModal({
|
|
|
2678
2678
|
] })
|
|
2679
2679
|
] }),
|
|
2680
2680
|
/* @__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." }),
|
|
2681
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2682
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2681
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NGJ7NPTcjs.ModalFooter, { children: [
|
|
2682
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2683
2683
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2684
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2684
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "accent", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Release Keeping" })
|
|
2685
2685
|
] })
|
|
2686
2686
|
] });
|
|
2687
2687
|
}
|
|
@@ -2720,9 +2720,9 @@ function AssignTicketModal({
|
|
|
2720
2720
|
if (ticketIds.length === 0 || isPending) return;
|
|
2721
2721
|
onConfirm(ticketIds);
|
|
2722
2722
|
};
|
|
2723
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2723
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NGJ7NPTcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2724
2724
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2725
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2725
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ModalTitle, { children: "Assign Ticket" }) }),
|
|
2726
2726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2727
2727
|
Autocomplete,
|
|
2728
2728
|
{
|
|
@@ -2741,11 +2741,11 @@ function AssignTicketModal({
|
|
|
2741
2741
|
disabled: isPending
|
|
2742
2742
|
}
|
|
2743
2743
|
),
|
|
2744
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2745
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2744
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NGJ7NPTcjs.ModalFooter, { children: [
|
|
2745
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2746
2746
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2747
2747
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2748
|
-
|
|
2748
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2749
2749
|
{
|
|
2750
2750
|
type: "button",
|
|
2751
2751
|
variant: "accent",
|
|
@@ -2760,14 +2760,14 @@ function AssignTicketModal({
|
|
|
2760
2760
|
] });
|
|
2761
2761
|
}
|
|
2762
2762
|
function UnassignTicketModal({ isOpen, onClose, isPending = false, onConfirm }) {
|
|
2763
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2763
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NGJ7NPTcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2764
2764
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2765
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2765
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk3NGJ7NPTcjs.ModalTitle, { children: "Unassign Ticket" }) }),
|
|
2766
2766
|
/* @__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." }),
|
|
2767
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2768
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2767
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk3NGJ7NPTcjs.ModalFooter, { children: [
|
|
2768
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2769
2769
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2770
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2770
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "destructive", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Unassign" })
|
|
2771
2771
|
] })
|
|
2772
2772
|
] });
|
|
2773
2773
|
}
|
|
@@ -2782,10 +2782,10 @@ function formatRemoteSessionOffset(offsetMs) {
|
|
|
2782
2782
|
return hours > 0 ? `${hours}:${minutes}:${seconds}` : `${minutes}:${seconds}`;
|
|
2783
2783
|
}
|
|
2784
2784
|
function RemoteSessionEventList({ events, activeEventId, onSelect, className }) {
|
|
2785
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { className:
|
|
2785
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex w-full flex-col gap-[var(--spacing-system-xxs)]", className), children: [
|
|
2786
2786
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-secondary text-h5", children: "Session Events" }),
|
|
2787
2787
|
/* @__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,
|
|
2788
|
-
|
|
2788
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2789
2789
|
{
|
|
2790
2790
|
variant: "row",
|
|
2791
2791
|
type: "button",
|
|
@@ -2812,11 +2812,11 @@ function RemoteSessionTimelineMarkers({
|
|
|
2812
2812
|
className
|
|
2813
2813
|
}) {
|
|
2814
2814
|
if (durationMs <= 0) return null;
|
|
2815
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2815
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative h-4 w-full", className), children: events.map((event) => {
|
|
2816
2816
|
const share = Math.min(1, Math.max(0, event.offsetMs / durationMs));
|
|
2817
2817
|
const label = `${event.title} at ${formatRemoteSessionOffset(event.offsetMs)}`;
|
|
2818
2818
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2819
|
-
|
|
2819
|
+
_chunkAHBTZ7DNcjs.Button,
|
|
2820
2820
|
{
|
|
2821
2821
|
variant: "card",
|
|
2822
2822
|
type: "button",
|
|
@@ -2845,25 +2845,25 @@ var STATUS_TAG = {
|
|
|
2845
2845
|
function RemoteSessionStatusTag({ status, className }) {
|
|
2846
2846
|
const { label, variant } = STATUS_TAG[status];
|
|
2847
2847
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2848
|
-
|
|
2848
|
+
_chunk6UKH22NQcjs.Tag,
|
|
2849
2849
|
{
|
|
2850
2850
|
label,
|
|
2851
2851
|
variant,
|
|
2852
2852
|
icon: status === "live" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LiveDot, {}) : void 0,
|
|
2853
|
-
className:
|
|
2853
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0, "pointer-events-none shrink-0", className)
|
|
2854
2854
|
}
|
|
2855
2855
|
);
|
|
2856
2856
|
}
|
|
2857
2857
|
function RemoteSessionExpiry(props) {
|
|
2858
2858
|
const { className } = props;
|
|
2859
2859
|
if (props.state === "none") {
|
|
2860
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className:
|
|
2860
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "text-ods-text-primary text-h4", className), children: "-" });
|
|
2861
2861
|
}
|
|
2862
2862
|
if (props.state === "expired") {
|
|
2863
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className:
|
|
2863
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "text-ods-text-secondary text-h4", className), children: "Expired" });
|
|
2864
2864
|
}
|
|
2865
2865
|
if (props.state === "kept") {
|
|
2866
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
2866
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 flex-col", className), children: [
|
|
2867
2867
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "flex items-center gap-[var(--spacing-system-xxs)] text-ods-text-primary text-h4", children: [
|
|
2868
2868
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMT45XX7Icjs.LockIcon, { size: 24, color: "currentColor", className: "shrink-0" }),
|
|
2869
2869
|
"Kept"
|
|
@@ -2876,7 +2876,7 @@ function RemoteSessionExpiry(props) {
|
|
|
2876
2876
|
] })
|
|
2877
2877
|
] });
|
|
2878
2878
|
}
|
|
2879
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
2879
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 flex-col", className), children: [
|
|
2880
2880
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: props.date }),
|
|
2881
2881
|
props.remaining && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: props.remaining })
|
|
2882
2882
|
] });
|
|
@@ -2887,7 +2887,7 @@ function RemoteSessionStorageAlert({ scope, capacity, className }) {
|
|
|
2887
2887
|
"div",
|
|
2888
2888
|
{
|
|
2889
2889
|
role: "alert",
|
|
2890
|
-
className:
|
|
2890
|
+
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
2891
2891
|
"flex w-full items-start gap-[var(--spacing-system-m)] rounded-md bg-ods-warning-secondary p-[var(--spacing-system-s)] text-ods-warning",
|
|
2892
2892
|
className
|
|
2893
2893
|
),
|