@flamingo-stack/openframe-frontend-core 0.0.788 → 0.0.790
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-MCAM232N.cjs +23 -0
- package/dist/{chunk-Y3TAVCEN.cjs → chunk-5FV2FQQD.cjs} +326 -321
- package/dist/{chunk-DQTIMLNZ.cjs → chunk-6YPT2BD4.cjs} +110 -110
- package/dist/{chunk-3VBFSRLM.cjs → chunk-6YZNUHXT.cjs} +11 -0
- package/dist/{chunk-TF3YPD4H.cjs → chunk-72NE4G63.cjs} +12 -12
- package/dist/{chunk-MNQUIS73.cjs → chunk-75PJ2SAZ.cjs} +2 -2
- package/dist/{chunk-DCV5PT6A.cjs → chunk-7GNSCDUK.cjs} +2039 -2027
- package/dist/{chunk-KXNG7GJG.cjs → chunk-7VXMO4XJ.cjs} +29 -29
- package/dist/{chunk-HTZ3BUIK.cjs → chunk-ANQCSCNU.cjs} +8 -8
- package/dist/{chunk-BRUR5VZK.cjs → chunk-AT4C2YMA.cjs} +44 -15
- package/dist/{chunk-AG5TL4XB.cjs → chunk-BIYLAAFI.cjs} +54 -54
- package/dist/{chunk-URHI45W6.cjs → chunk-C5EPWKM7.cjs} +110 -110
- package/dist/{chunk-77G4JUKF.cjs → chunk-CWA6J7KC.cjs} +45 -45
- package/dist/{chunk-6EQMXFYL.cjs → chunk-DRWPSN3A.cjs} +5 -5
- package/dist/{chunk-5RFEI4NG.cjs → chunk-EU3NQPFE.cjs} +60 -60
- package/dist/{chunk-VB4HZ22M.cjs → chunk-EY64NXE7.cjs} +115 -115
- package/dist/{chunk-KSF4RGDJ.cjs → chunk-F4RCB5LB.cjs} +17 -17
- package/dist/{chunk-X6AZJ2YS.cjs → chunk-F62QXKNL.cjs} +46 -46
- package/dist/{chunk-AMVMQQAE.cjs → chunk-F7UIQ6UG.cjs} +22 -22
- package/dist/{chunk-5SBZNPAQ.cjs → chunk-GD6RPLHX.cjs} +3 -3
- package/dist/{chunk-3L6OTKZS.cjs → chunk-GYSRYYDM.cjs} +4 -4
- package/dist/{chunk-ERSUY46C.cjs → chunk-HBAVHYXO.cjs} +2 -2
- package/dist/{chunk-V6TTOG2Q.cjs → chunk-HCXNFMLO.cjs} +14 -14
- package/dist/{chunk-WAVW3WWL.cjs → chunk-HJBJHQKE.cjs} +16 -16
- package/dist/{chunk-OKJKQORU.cjs → chunk-HKMEI2NX.cjs} +51 -51
- package/dist/{chunk-BYV4247W.cjs → chunk-HYF4LPXF.cjs} +10 -10
- package/dist/{chunk-6XMSR6ZN.cjs → chunk-ISSBE5JP.cjs} +197 -197
- package/dist/{chunk-GMS6JDDE.cjs → chunk-IYWVS3SS.cjs} +19 -19
- package/dist/{chunk-DIWGL75M.cjs → chunk-JRTDBPJT.cjs} +3 -3
- package/dist/{chunk-3IQSAHNA.cjs → chunk-JXQNECXM.cjs} +7 -7
- package/dist/{chunk-OKGNQPLB.cjs → chunk-K7I3YYYU.cjs} +46 -45
- package/dist/{chunk-B2IZPIDH.cjs → chunk-KI5TJDK3.cjs} +37 -37
- package/dist/{chunk-SEL2L4D6.cjs → chunk-LL6PXI6C.cjs} +4 -4
- package/dist/{chunk-O4IUGOXL.cjs → chunk-LZG7PBF3.cjs} +42 -42
- package/dist/{chunk-PEHK7FUE.cjs → chunk-O4XBGLMA.cjs} +3 -3
- package/dist/{chunk-72WOJNJD.cjs → chunk-OWKLWCLZ.cjs} +61 -61
- package/dist/{chunk-I37MWS2S.cjs → chunk-PHWLEYAG.cjs} +171 -171
- package/dist/{chunk-DBMF3WYK.cjs → chunk-PLNLTN4R.cjs} +13 -13
- package/dist/{chunk-UV2CIZ4A.cjs → chunk-PQIWR4Q2.cjs} +63 -63
- package/dist/{chunk-5E4MQKA2.cjs → chunk-QPXC3LEV.cjs} +31 -31
- package/dist/{chunk-L275VYUB.cjs → chunk-QVC5CMC5.cjs} +4 -4
- package/dist/{chunk-P4ZRVLBR.cjs → chunk-QVKWKY4O.cjs} +23 -23
- package/dist/{chunk-YBMOEHC2.cjs → chunk-RFIBRGXG.cjs} +7 -7
- package/dist/{chunk-6ZYMEICP.cjs → chunk-RIIMY7XW.cjs} +10 -10
- package/dist/{chunk-5YW4ZQDN.cjs → chunk-RKWEFZ6P.cjs} +3 -3
- package/dist/{chunk-D4ZL66TC.cjs → chunk-RPC4P7GY.cjs} +206 -233
- package/dist/{chunk-LZYP5VVZ.cjs → chunk-RYSEW4XI.cjs} +44 -44
- package/dist/{chunk-TRJX7CRZ.cjs → chunk-TIDJN3OQ.cjs} +13 -13
- package/dist/{chunk-7DEIC7SO.cjs → chunk-UCHO4BOS.cjs} +5 -5
- package/dist/{chunk-GXW76CAB.cjs → chunk-V4RKY4ZY.cjs} +535 -535
- package/dist/{chunk-7XXVP7JL.cjs → chunk-WTNAXQJW.cjs} +6 -6
- package/dist/{chunk-XJHFHEIT.cjs → chunk-ZCMXBX4Z.cjs} +61 -61
- package/dist/{cloud-tenants-2NSZHNUB.cjs → cloud-tenants-D6DYR6UV.cjs} +32 -32
- package/dist/components/calendar.cjs +10 -10
- package/dist/components/case-studies/index.cjs +52 -52
- package/dist/components/chat/index.cjs +26 -26
- package/dist/components/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 +208 -204
- package/dist/components/layout/page-heading.d.ts +7 -3
- package/dist/components/layout/page-heading.d.ts.map +1 -1
- package/dist/components/layout/page-heading.js +10 -3
- package/dist/components/layout/page-layout.d.ts +2 -2
- package/dist/components/layout/page-layout.d.ts.map +1 -1
- package/dist/components/layout/title-block.d.ts +2 -7
- package/dist/components/layout/title-block.d.ts.map +1 -1
- package/dist/components/layout/title-block.js +6 -31
- package/dist/components/loading/index.d.ts +1 -1
- package/dist/components/loading/index.d.ts.map +1 -1
- package/dist/components/loading/index.js +2 -0
- package/dist/components/loading/unified-skeleton.d.ts +17 -0
- package/dist/components/loading/unified-skeleton.d.ts.map +1 -1
- package/dist/components/loading/unified-skeleton.js +30 -1
- package/dist/components/meeting-scheduler/index.cjs +187 -187
- 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 +1 -0
- package/dist/components/ui/button/button-styles.d.ts.map +1 -1
- package/dist/components/ui/button/button-styles.js +11 -0
- package/dist/components/ui/button/button.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +2 -1
- package/dist/components/ui/file-manager/index.cjs +55 -55
- package/dist/components/ui/index.cjs +34 -32
- package/dist/components/ui/index.d.ts +2 -1
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/page-actions.d.ts +1 -1
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.d.ts.map +1 -1
- package/dist/components/ui/snap-carousel.js +17 -19
- package/dist/components/ui/step-arrow-button.d.ts +16 -0
- package/dist/components/ui/step-arrow-button.d.ts.map +1 -0
- package/dist/components/ui/step-arrow-button.js +16 -0
- package/dist/{devices-6P4J4I7L.cjs → devices-MZQ4573H.cjs} +33 -33
- package/dist/embed-shims/index.cjs +4 -4
- package/dist/embed-shims/next-image.cjs +4 -4
- package/dist/{embeddable-chat-5LISPJ2K.cjs → embeddable-chat-QLJ2KSWT.cjs} +115 -115
- package/dist/hooks/index.cjs +10 -10
- package/dist/index.cjs +50 -48
- package/dist/{knowledge-C6VCTNO3.cjs → knowledge-QZTFICLS.cjs} +33 -33
- package/dist/{logs-DHQ3TZ2M.cjs → logs-2YOR2SUA.cjs} +41 -41
- package/dist/{policies-FK3QTLYA.cjs → policies-KKFC4UOU.cjs} +36 -36
- package/dist/{remote-session-4KYHC4DN.cjs → remote-session-WKLEYACD.cjs} +17 -17
- package/dist/{scripts-H76VA742.cjs → scripts-UA46WAET.cjs} +39 -39
- package/dist/{software-update-WU23LW7Q.cjs → software-update-IN6TJL73.cjs} +36 -36
- package/dist/{tickets-board-A3PBEURN.cjs → tickets-board-URMIIAKD.cjs} +17 -17
- package/dist/{video-file-player-RC2QPLNE.cjs → video-file-player-HZPMCCYF.cjs} +14 -14
- package/package.json +1 -1
- package/src/components/layout/page-heading.tsx +30 -8
- package/src/components/layout/page-layout.tsx +3 -2
- package/src/components/layout/title-block.tsx +7 -29
- package/src/components/loading/index.ts +2 -0
- package/src/components/loading/unified-skeleton.tsx +42 -0
- package/src/components/ui/button/button-styles.ts +11 -0
- package/src/components/ui/button/button.tsx +1 -0
- package/src/components/ui/index.ts +2 -1
- package/src/components/ui/page-actions.tsx +1 -0
- package/src/components/ui/snap-carousel.tsx +23 -21
- package/src/components/ui/step-arrow-button.tsx +32 -0
- package/dist/case-study-card-A3ZZQPAR.cjs +0 -23
|
@@ -10,14 +10,14 @@ var _chunkA6P6DHEZcjs = require('./chunk-A6P6DHEZ.cjs');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkZCMXBX4Zcjs = require('./chunk-ZCMXBX4Z.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkQVKWKY4Ocjs = require('./chunk-QVKWKY4O.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 _chunk7VXMO4XJcjs = require('./chunk-7VXMO4XJ.cjs');
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
@@ -112,39 +112,40 @@ var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
|
112
112
|
var _chunkV4FXUIMHcjs = require('./chunk-V4FXUIMH.cjs');
|
|
113
113
|
|
|
114
114
|
|
|
115
|
-
var
|
|
115
|
+
var _chunkDRWPSN3Acjs = require('./chunk-DRWPSN3A.cjs');
|
|
116
116
|
|
|
117
117
|
|
|
118
118
|
|
|
119
119
|
|
|
120
|
-
var
|
|
120
|
+
var _chunkHCXNFMLOcjs = require('./chunk-HCXNFMLO.cjs');
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
var
|
|
127
|
+
var _chunkHYF4LPXFcjs = require('./chunk-HYF4LPXF.cjs');
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var
|
|
130
|
+
var _chunkGD6RPLHXcjs = require('./chunk-GD6RPLHX.cjs');
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
|
|
136
|
-
var _chunkBRUR5VZKcjs = require('./chunk-BRUR5VZK.cjs');
|
|
137
136
|
|
|
137
|
+
var _chunkAT4C2YMAcjs = require('./chunk-AT4C2YMA.cjs');
|
|
138
138
|
|
|
139
139
|
|
|
140
|
-
var _chunkOKGNQPLBcjs = require('./chunk-OKGNQPLB.cjs');
|
|
141
140
|
|
|
141
|
+
var _chunkK7I3YYYUcjs = require('./chunk-K7I3YYYU.cjs');
|
|
142
142
|
|
|
143
143
|
|
|
144
144
|
|
|
145
145
|
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
|
|
148
|
+
var _chunk6YZNUHXTcjs = require('./chunk-6YZNUHXT.cjs');
|
|
148
149
|
|
|
149
150
|
|
|
150
151
|
var _chunkV45KLJQPcjs = require('./chunk-V45KLJQP.cjs');
|
|
@@ -158,7 +159,7 @@ var HiddenTagsPopup = _react.forwardRef.call(void 0, function HiddenTagsPopupImp
|
|
|
158
159
|
{
|
|
159
160
|
ref,
|
|
160
161
|
style,
|
|
161
|
-
className:
|
|
162
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
162
163
|
// Base positioning is neutral (left-anchored); consumers override via
|
|
163
164
|
// `style.left` (search-input, tag-search-input) or `className` (autocomplete).
|
|
164
165
|
"absolute left-0 top-full z-50 mt-1 min-w-[200px]",
|
|
@@ -169,7 +170,7 @@ var HiddenTagsPopup = _react.forwardRef.call(void 0, function HiddenTagsPopupImp
|
|
|
169
170
|
children: items.map((item) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
170
171
|
"div",
|
|
171
172
|
{
|
|
172
|
-
className:
|
|
173
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
173
174
|
"flex h-11 items-center justify-between gap-3 px-3 md:h-12",
|
|
174
175
|
"border-b border-ods-border last:border-b-0"
|
|
175
176
|
),
|
|
@@ -183,7 +184,7 @@ var HiddenTagsPopup = _react.forwardRef.call(void 0, function HiddenTagsPopupImp
|
|
|
183
184
|
}
|
|
184
185
|
),
|
|
185
186
|
!disabled && onRemove && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
186
|
-
|
|
187
|
+
_chunkK7I3YYYUcjs.Button,
|
|
187
188
|
{
|
|
188
189
|
variant: "bare",
|
|
189
190
|
size: "icon-sm",
|
|
@@ -242,24 +243,24 @@ function TruncateText({
|
|
|
242
243
|
}) {
|
|
243
244
|
const isMultiLine = lines > 1;
|
|
244
245
|
const { ref, isTruncated } = _chunkV4FXUIMHcjs.useIsTruncated.call(void 0, children, { multiline: isMultiLine });
|
|
245
|
-
const loading =
|
|
246
|
+
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) && !children || loadingProp;
|
|
246
247
|
if (loading)
|
|
247
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
248
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: variant, lines, as, className: _chunk6YZNUHXTcjs.cn.call(void 0, "w-3/4", triggerClassName) });
|
|
248
249
|
const clampClass = isMultiLine ? LINE_CLAMP_CLASS[lines] : "truncate block";
|
|
249
250
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
250
|
-
|
|
251
|
+
_chunk7VXMO4XJcjs.FloatingTooltip,
|
|
251
252
|
{
|
|
252
253
|
content: _nullishCoalesce(tooltip, () => ( children)),
|
|
253
254
|
side,
|
|
254
255
|
disabled: !isTruncated,
|
|
255
256
|
className: "max-w-xs whitespace-pre-line [overflow-wrap:anywhere]",
|
|
256
257
|
as,
|
|
257
|
-
triggerClassName:
|
|
258
|
+
triggerClassName: _chunk6YZNUHXTcjs.cn.call(void 0, "min-w-0 max-w-full", as === "span" && "inline-block align-bottom", triggerClassName),
|
|
258
259
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
259
260
|
"span",
|
|
260
261
|
{
|
|
261
262
|
ref,
|
|
262
|
-
className:
|
|
263
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
263
264
|
VARIANT_CLASS[variant],
|
|
264
265
|
TONE_CLASS[tone],
|
|
265
266
|
mono && "[font-family:var(--font-family-heading)]",
|
|
@@ -286,7 +287,7 @@ var _lucidereact = require('lucide-react');
|
|
|
286
287
|
|
|
287
288
|
|
|
288
289
|
|
|
289
|
-
var innerInputStyles =
|
|
290
|
+
var innerInputStyles = _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
290
291
|
"min-w-[60px] flex-1 border-none bg-transparent outline-none",
|
|
291
292
|
"text-h4",
|
|
292
293
|
"text-ods-text-primary placeholder:text-ods-text-secondary",
|
|
@@ -298,10 +299,10 @@ var AUTOCOMPLETE_OPTION_ROW_CLASS = "flex min-h-11 items-center border-b border-
|
|
|
298
299
|
var AUTOCOMPLETE_LOADING_ROWS = 5;
|
|
299
300
|
var AUTOCOMPLETE_ANCHOR_SHAPE_CLASS = "rounded-[6px]";
|
|
300
301
|
function AutocompleteSkeleton({ label, labelVariant, className }) {
|
|
301
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
302
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHCXNFMLOcjs.FieldWrapper, { label, labelVariant, className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.UnifiedSkeleton, { className: _chunk6YZNUHXTcjs.cn.call(void 0, "w-full", AUTOCOMPLETE_ANCHOR_SHAPE_CLASS, AUTOCOMPLETE_ANCHOR_HEIGHT_CLASS) }) });
|
|
302
303
|
}
|
|
303
304
|
function AutocompleteInner(props, ref) {
|
|
304
|
-
const inScope =
|
|
305
|
+
const inScope = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, );
|
|
305
306
|
const {
|
|
306
307
|
options,
|
|
307
308
|
disabled = false,
|
|
@@ -532,7 +533,7 @@ function AutocompleteInner(props, ref) {
|
|
|
532
533
|
"div",
|
|
533
534
|
{
|
|
534
535
|
"data-invalid": isInvalid || void 0,
|
|
535
|
-
className:
|
|
536
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
536
537
|
// Layout — single line, no wrapping
|
|
537
538
|
"flex cursor-text items-center border",
|
|
538
539
|
AUTOCOMPLETE_ANCHOR_SHAPE_CLASS,
|
|
@@ -564,7 +565,7 @@ function AutocompleteInner(props, ref) {
|
|
|
564
565
|
resolvedStartAdornment && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
565
566
|
"span",
|
|
566
567
|
{
|
|
567
|
-
className:
|
|
568
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
568
569
|
// Images are sized alongside svgs: an entity adornment is
|
|
569
570
|
// usually a flag or a crest, and an unconstrained <img> lays
|
|
570
571
|
// out at 0x0 inside this flex row.
|
|
@@ -580,13 +581,13 @@ function AutocompleteInner(props, ref) {
|
|
|
580
581
|
"div",
|
|
581
582
|
{
|
|
582
583
|
ref: middleRef,
|
|
583
|
-
className:
|
|
584
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
584
585
|
"flex min-w-0 flex-1 items-center gap-2 px-2",
|
|
585
586
|
wrapTags ? "flex-wrap py-[var(--spacing-system-xsf)]" : "overflow-hidden"
|
|
586
587
|
),
|
|
587
588
|
children: [
|
|
588
589
|
multiple && visibleTags.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
589
|
-
|
|
590
|
+
_chunk7VXMO4XJcjs.Tag,
|
|
590
591
|
{
|
|
591
592
|
variant: "outline",
|
|
592
593
|
className: wrapTags ? "max-w-full" : void 0,
|
|
@@ -599,7 +600,7 @@ function AutocompleteInner(props, ref) {
|
|
|
599
600
|
String(option.value)
|
|
600
601
|
)),
|
|
601
602
|
multiple && hiddenTagsCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: hiddenTagsRef, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
602
|
-
|
|
603
|
+
_chunkK7I3YYYUcjs.Button,
|
|
603
604
|
{
|
|
604
605
|
variant: "chip",
|
|
605
606
|
ref: badgeRef,
|
|
@@ -634,7 +635,7 @@ function AutocompleteInner(props, ref) {
|
|
|
634
635
|
),
|
|
635
636
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-1 pr-3", children: [
|
|
636
637
|
showClearAll && (hasValue || inputValue.length > 0) && !disabled && isOpen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
637
|
-
|
|
638
|
+
_chunkK7I3YYYUcjs.Button,
|
|
638
639
|
{
|
|
639
640
|
variant: "transparent",
|
|
640
641
|
size: "icon-sm",
|
|
@@ -647,7 +648,7 @@ function AutocompleteInner(props, ref) {
|
|
|
647
648
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
648
649
|
_lucidereact.Loader2,
|
|
649
650
|
{
|
|
650
|
-
className:
|
|
651
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
651
652
|
"size-4 animate-spin md:size-6",
|
|
652
653
|
isInvalid ? "text-ods-error" : isOpen ? "text-ods-accent" : "text-ods-text-secondary"
|
|
653
654
|
)
|
|
@@ -655,7 +656,7 @@ function AutocompleteInner(props, ref) {
|
|
|
655
656
|
) : showChevron && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
656
657
|
_chunkSKI6NKOEcjs.Chevron02DownIcon,
|
|
657
658
|
{
|
|
658
|
-
className:
|
|
659
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
659
660
|
"size-4 transition-all duration-200 md:size-6",
|
|
660
661
|
"text-ods-text-secondary",
|
|
661
662
|
isOpen && "rotate-180",
|
|
@@ -671,7 +672,7 @@ function AutocompleteInner(props, ref) {
|
|
|
671
672
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
672
673
|
PopoverPrimitive.Content,
|
|
673
674
|
{
|
|
674
|
-
className:
|
|
675
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
675
676
|
"z-50 mt-1 w-[var(--radix-popover-trigger-width)]",
|
|
676
677
|
"rounded-[4px] border border-ods-border bg-ods-card",
|
|
677
678
|
"flex max-h-[var(--radix-popper-available-height)] flex-col overflow-hidden",
|
|
@@ -695,7 +696,7 @@ function AutocompleteInner(props, ref) {
|
|
|
695
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 ? (
|
|
696
697
|
// The options while they are read: the list's own rows, a label bar each (`loadingText` is what a
|
|
697
698
|
// screen reader hears).
|
|
698
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
699
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD6RPLHXcjs.LoadingRegion, { label: loadingText, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.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, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "inherit", className: "w-2/3" }) }) }) })
|
|
699
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: [
|
|
700
701
|
"Maximum ",
|
|
701
702
|
maxCreateLength,
|
|
@@ -705,7 +706,7 @@ function AutocompleteInner(props, ref) {
|
|
|
705
706
|
{
|
|
706
707
|
role: "option",
|
|
707
708
|
"aria-selected": false,
|
|
708
|
-
className:
|
|
709
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
709
710
|
"flex h-11 min-w-0 cursor-pointer items-center px-[var(--spacing-system-mf)] transition-colors md:h-12",
|
|
710
711
|
"text-ods-accent text-h4",
|
|
711
712
|
"hover:bg-ods-bg-hover"
|
|
@@ -726,7 +727,7 @@ function AutocompleteInner(props, ref) {
|
|
|
726
727
|
"data-loading-item": true,
|
|
727
728
|
role: "option",
|
|
728
729
|
"aria-selected": isSelected,
|
|
729
|
-
className:
|
|
730
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
730
731
|
// `min-h` rather than a fixed height: an option may carry
|
|
731
732
|
// a second line, and a clipped one is worse than a taller row.
|
|
732
733
|
AUTOCOMPLETE_OPTION_ROW_CLASS,
|
|
@@ -748,7 +749,7 @@ function AutocompleteInner(props, ref) {
|
|
|
748
749
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
749
750
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 }),
|
|
750
751
|
onDeleteOption && !isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
751
|
-
|
|
752
|
+
_chunkK7I3YYYUcjs.Button,
|
|
752
753
|
{
|
|
753
754
|
variant: "transparent",
|
|
754
755
|
size: "icon-sm",
|
|
@@ -776,7 +777,7 @@ function AutocompleteInner(props, ref) {
|
|
|
776
777
|
if (inScope || fieldLoading)
|
|
777
778
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AutocompleteSkeleton, { label, labelVariant, className });
|
|
778
779
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
779
|
-
|
|
780
|
+
_chunkHCXNFMLOcjs.FieldWrapper,
|
|
780
781
|
{
|
|
781
782
|
label,
|
|
782
783
|
labelVariant,
|
|
@@ -816,7 +817,7 @@ function AutocompleteInner(props, ref) {
|
|
|
816
817
|
"aria-hidden": "true",
|
|
817
818
|
className: "pointer-events-none invisible absolute left-0 top-0 -z-10 flex gap-2",
|
|
818
819
|
children: selectedOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
819
|
-
|
|
820
|
+
_chunk7VXMO4XJcjs.Tag,
|
|
820
821
|
{
|
|
821
822
|
variant: "outline",
|
|
822
823
|
labelClassName: "max-w-[90px] truncate",
|
|
@@ -847,13 +848,13 @@ var SelectTrigger = _react.forwardRef.call(void 0, (allProps, ref) => {
|
|
|
847
848
|
const { className, children, invalid, label, labelVariant, error, ...props } = allProps;
|
|
848
849
|
const errorSlot = "error" in allProps;
|
|
849
850
|
const isInvalid = invalid || !!error;
|
|
850
|
-
const inScope =
|
|
851
|
+
const inScope = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, );
|
|
851
852
|
const trigger = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
852
853
|
SelectPrimitive.Trigger,
|
|
853
854
|
{
|
|
854
855
|
ref,
|
|
855
856
|
"data-invalid": isInvalid || void 0,
|
|
856
|
-
className:
|
|
857
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
857
858
|
// Layout & spacing - match Input
|
|
858
859
|
// text-left resets the <button> UA default text-align:center, which the
|
|
859
860
|
// SelectValue span inherits and would otherwise center short values,
|
|
@@ -881,11 +882,11 @@ var SelectTrigger = _react.forwardRef.call(void 0, (allProps, ref) => {
|
|
|
881
882
|
),
|
|
882
883
|
...props,
|
|
883
884
|
children: [
|
|
884
|
-
inScope ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
885
|
+
inScope ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHCXNFMLOcjs.FieldValueSkeleton, {}) : children,
|
|
885
886
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
886
887
|
_chunkSKI6NKOEcjs.Chevron02DownIcon,
|
|
887
888
|
{
|
|
888
|
-
className:
|
|
889
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
889
890
|
"shrink-0 text-ods-text-secondary transition-all duration-200 group-data-[state=open]:rotate-180",
|
|
890
891
|
isInvalid ? "text-ods-error" : "group-data-[state=open]:text-ods-accent"
|
|
891
892
|
),
|
|
@@ -895,14 +896,14 @@ var SelectTrigger = _react.forwardRef.call(void 0, (allProps, ref) => {
|
|
|
895
896
|
]
|
|
896
897
|
}
|
|
897
898
|
);
|
|
898
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
899
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHCXNFMLOcjs.FieldWrapper, { label, labelVariant, error, errorSlot, children: trigger });
|
|
899
900
|
});
|
|
900
901
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
901
902
|
var SelectScrollUpButton = _react.forwardRef.call(void 0, ({ className, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
902
903
|
SelectPrimitive.ScrollUpButton,
|
|
903
904
|
{
|
|
904
905
|
ref,
|
|
905
|
-
className:
|
|
906
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex cursor-default items-center justify-center py-1", className),
|
|
906
907
|
...props,
|
|
907
908
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronUp, { className: "h-4 w-4" })
|
|
908
909
|
}
|
|
@@ -912,19 +913,19 @@ var SelectScrollDownButton = _react.forwardRef.call(void 0, ({ className, ...pro
|
|
|
912
913
|
SelectPrimitive.ScrollDownButton,
|
|
913
914
|
{
|
|
914
915
|
ref,
|
|
915
|
-
className:
|
|
916
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex cursor-default items-center justify-center py-1", className),
|
|
916
917
|
...props,
|
|
917
918
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ChevronDown, { className: "h-4 w-4" })
|
|
918
919
|
}
|
|
919
920
|
));
|
|
920
921
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
921
922
|
var SelectContent = _react.forwardRef.call(void 0, ({ className, children, position = "popper", ...props }, ref) => {
|
|
922
|
-
const container =
|
|
923
|
+
const container = _chunkHYF4LPXFcjs.usePortalContainer.call(void 0, );
|
|
923
924
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectPrimitive.Portal, { container: _nullishCoalesce(container, () => ( void 0)), children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
924
925
|
SelectPrimitive.Content,
|
|
925
926
|
{
|
|
926
927
|
ref,
|
|
927
|
-
className:
|
|
928
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
928
929
|
"relative z-[9999] max-h-96 overflow-hidden rounded-[4px] border border-ods-border bg-ods-card text-ods-text-primary",
|
|
929
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",
|
|
930
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",
|
|
@@ -945,13 +946,13 @@ var SelectContent = _react.forwardRef.call(void 0, ({ className, children, posit
|
|
|
945
946
|
) });
|
|
946
947
|
});
|
|
947
948
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
948
|
-
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: _chunk6YZNUHXTcjs.cn.call(void 0, "py-1.5 pl-8 pr-2 font-semibold text-h6", className), ...props }));
|
|
949
950
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
950
951
|
var SelectItem = _react.forwardRef.call(void 0, ({ className, children, description, ...props }, ref) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
951
952
|
SelectPrimitive.Item,
|
|
952
953
|
{
|
|
953
954
|
ref,
|
|
954
|
-
className:
|
|
955
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
955
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",
|
|
956
957
|
// Typography - match trigger
|
|
957
958
|
"text-h4",
|
|
@@ -977,7 +978,7 @@ var SelectItem = _react.forwardRef.call(void 0, ({ className, children, descript
|
|
|
977
978
|
}
|
|
978
979
|
));
|
|
979
980
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
980
|
-
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: _chunk6YZNUHXTcjs.cn.call(void 0, "-mx-1 my-1 h-px bg-ods-border", className), ...props }));
|
|
981
982
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
982
983
|
|
|
983
984
|
// src/components/layout/back-button.tsx
|
|
@@ -1002,9 +1003,9 @@ function BackButton({ label = "Back", className, type = "button", href, ...props
|
|
|
1002
1003
|
value: _value,
|
|
1003
1004
|
...shared
|
|
1004
1005
|
} = props;
|
|
1005
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1006
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { asChild: true, variant: "link", noPaddingX: true, className: _chunk6YZNUHXTcjs.cn.call(void 0, BACK_BUTTON_LAYOUT_CLASS, className), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkV45KLJQPcjs.next_link_default, { ...shared, href, children: content }) });
|
|
1006
1007
|
}
|
|
1007
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1008
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "link", noPaddingX: true, type, className: _chunk6YZNUHXTcjs.cn.call(void 0, BACK_BUTTON_LAYOUT_CLASS, className), ...props, children: content });
|
|
1008
1009
|
}
|
|
1009
1010
|
|
|
1010
1011
|
// src/components/ui/page-actions.tsx
|
|
@@ -1052,19 +1053,19 @@ function actionToMenuItems(action, idx) {
|
|
|
1052
1053
|
}
|
|
1053
1054
|
function renderActionButton(action, opts = {}) {
|
|
1054
1055
|
if (opts.inert) {
|
|
1055
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1056
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.InertWhileLoading, { className: _chunk6YZNUHXTcjs.cn.call(void 0, "inline-flex", opts.fullWidth && "flex-1"), children: renderRawActionButton(action, opts) });
|
|
1056
1057
|
}
|
|
1057
1058
|
const button = renderRawActionButton(action, opts);
|
|
1058
1059
|
if (!action.tooltip) return button;
|
|
1059
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1060
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1061
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1060
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQVKWKY4Ocjs.TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkQVKWKY4Ocjs.Tooltip, { children: [
|
|
1061
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQVKWKY4Ocjs.TooltipTrigger, { asChild: true, children: button }),
|
|
1062
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQVKWKY4Ocjs.TooltipContent, { children: action.tooltip })
|
|
1062
1063
|
] }) });
|
|
1063
1064
|
}
|
|
1064
1065
|
function renderRawActionButton(action, opts = {}) {
|
|
1065
1066
|
if (action.iconAction) {
|
|
1066
1067
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1067
|
-
|
|
1068
|
+
_chunkK7I3YYYUcjs.SplitButton,
|
|
1068
1069
|
{
|
|
1069
1070
|
variant: _nullishCoalesce(action.variant, () => ( void 0)),
|
|
1070
1071
|
href: action.href,
|
|
@@ -1082,11 +1083,11 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
1082
1083
|
}
|
|
1083
1084
|
if (action.submenu && action.submenu.length > 0) {
|
|
1084
1085
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1085
|
-
|
|
1086
|
+
_chunkQVKWKY4Ocjs.ActionsMenuDropdown,
|
|
1086
1087
|
{
|
|
1087
1088
|
groups: [{ items: action.submenu }],
|
|
1088
1089
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1089
|
-
|
|
1090
|
+
_chunkK7I3YYYUcjs.Button,
|
|
1090
1091
|
{
|
|
1091
1092
|
variant: "outline",
|
|
1092
1093
|
disabled: action.disabled,
|
|
@@ -1104,7 +1105,7 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
1104
1105
|
if (isIconOnly) {
|
|
1105
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;
|
|
1106
1107
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1107
|
-
|
|
1108
|
+
_chunkK7I3YYYUcjs.Button,
|
|
1108
1109
|
{
|
|
1109
1110
|
variant: action.variant,
|
|
1110
1111
|
size: "icon",
|
|
@@ -1120,7 +1121,7 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
1120
1121
|
);
|
|
1121
1122
|
}
|
|
1122
1123
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1123
|
-
|
|
1124
|
+
_chunkK7I3YYYUcjs.Button,
|
|
1124
1125
|
{
|
|
1125
1126
|
variant: action.variant,
|
|
1126
1127
|
href: action.href,
|
|
@@ -1137,8 +1138,8 @@ function renderRawActionButton(action, opts = {}) {
|
|
|
1137
1138
|
}
|
|
1138
1139
|
var ACTIONS_GAP = "gap-[var(--spacing-system-xs)]";
|
|
1139
1140
|
function UnknownActionSkeleton({ shape, fullWidth }) {
|
|
1140
|
-
if (shape === "icon") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1141
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1141
|
+
if (shape === "icon") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.InteractiveSkeleton.Button, { size: "icon" });
|
|
1142
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.InteractiveSkeleton.Button, { size: "default", className: fullWidth ? "flex-1" : void 0 });
|
|
1142
1143
|
}
|
|
1143
1144
|
function PageActions({
|
|
1144
1145
|
variant = "icon-buttons",
|
|
@@ -1148,7 +1149,7 @@ function PageActions({
|
|
|
1148
1149
|
className,
|
|
1149
1150
|
loading: loadingProp
|
|
1150
1151
|
}) {
|
|
1151
|
-
const loading =
|
|
1152
|
+
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1152
1153
|
if (variant === "icon-buttons") {
|
|
1153
1154
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1154
1155
|
IconButtonsVariant,
|
|
@@ -1182,7 +1183,7 @@ function IconButtonsVariant({
|
|
|
1182
1183
|
className,
|
|
1183
1184
|
loading: loadingProp
|
|
1184
1185
|
}) {
|
|
1185
|
-
const loading =
|
|
1186
|
+
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1186
1187
|
const desktopActions = actions.filter((a) => !a.showOnlyMobile);
|
|
1187
1188
|
const hasMenuActions = !!menuActions && menuActions.some((g) => g.items.length > 0);
|
|
1188
1189
|
const isSingleAction = actions.length === 1 && !_optionalChain([actions, 'access', _23 => _23[0], 'access', _24 => _24.submenu, 'optionalAccess', _25 => _25.length]);
|
|
@@ -1191,13 +1192,13 @@ function IconButtonsVariant({
|
|
|
1191
1192
|
const mobileMenuGroups = [{ items: actions.flatMap(actionToMenuItems) }, ..._nullishCoalesce(menuActions, () => ( []))];
|
|
1192
1193
|
const hasMobileMenuItems = mobileMenuGroups.some((g) => g.items.length > 0);
|
|
1193
1194
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1194
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1195
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "hidden items-center content-md:flex", ACTIONS_GAP, className), children: [
|
|
1195
1196
|
selector,
|
|
1196
1197
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action, { inert: loading }) }, actionKey(action, idx))),
|
|
1197
1198
|
loading && desktopActions.length === 0 && !hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }),
|
|
1198
|
-
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1199
|
+
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQVKWKY4Ocjs.ActionsMenuDropdown, { groups: menuActions, loading })
|
|
1199
1200
|
] }),
|
|
1200
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1201
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.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, _chunkQVKWKY4Ocjs.ActionsMenuDropdown, { groups: mobileMenuGroups, loading }) : loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }) : null })
|
|
1201
1202
|
] });
|
|
1202
1203
|
}
|
|
1203
1204
|
function PrimaryButtonsVariant({
|
|
@@ -1205,7 +1206,7 @@ function PrimaryButtonsVariant({
|
|
|
1205
1206
|
className,
|
|
1206
1207
|
loading: loadingProp
|
|
1207
1208
|
}) {
|
|
1208
|
-
const loading =
|
|
1209
|
+
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1209
1210
|
const sortedActions = [...actions].sort((a, b) => {
|
|
1210
1211
|
if (a.variant === "accent" && b.variant !== "accent") return 1;
|
|
1211
1212
|
if (a.variant !== "accent" && b.variant === "accent") return -1;
|
|
@@ -1213,11 +1214,11 @@ function PrimaryButtonsVariant({
|
|
|
1213
1214
|
});
|
|
1214
1215
|
const desktopActions = sortedActions.filter((a) => !a.showOnlyMobile);
|
|
1215
1216
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1216
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1217
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "hidden items-center md:content-md:flex", ACTIONS_GAP, className), children: [
|
|
1217
1218
|
desktopActions.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action, { inert: loading }) }, `desktop-${actionKey(action, idx)}`)),
|
|
1218
1219
|
loading && desktopActions.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "label" })
|
|
1219
1220
|
] }),
|
|
1220
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1221
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "hidden items-center md:content-max-md:flex", ACTIONS_GAP, className), children: [
|
|
1221
1222
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CompactPrimaryActions, { actions: desktopActions, loading }),
|
|
1222
1223
|
loading && desktopActions.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" })
|
|
1223
1224
|
] }),
|
|
@@ -1231,42 +1232,42 @@ function MenuPrimaryVariant({
|
|
|
1231
1232
|
className,
|
|
1232
1233
|
loading: loadingProp
|
|
1233
1234
|
}) {
|
|
1234
|
-
const loading =
|
|
1235
|
+
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1235
1236
|
const desktopActions = actions.filter((a) => !a.showOnlyMobile);
|
|
1236
1237
|
const hasMenuActions = menuActions.some((g) => g.items.length > 0);
|
|
1237
1238
|
const mobileMenuGroups = [{ items: actions.flatMap(actionToMenuItems) }, ...menuActions];
|
|
1238
1239
|
const hasMobileMenuItems = mobileMenuGroups.some((g) => g.items.length > 0);
|
|
1239
1240
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1240
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1241
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "hidden items-center content-md:flex", ACTIONS_GAP, className), children: [
|
|
1241
1242
|
selector,
|
|
1242
|
-
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1243
|
+
hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQVKWKY4Ocjs.ActionsMenuDropdown, { groups: menuActions, loading }),
|
|
1243
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)}`)),
|
|
1244
1245
|
loading && desktopActions.length === 0 && !hasMenuActions && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" })
|
|
1245
1246
|
] }),
|
|
1246
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
1247
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex content-md:hidden", className), children: hasMobileMenuItems || selector ? (
|
|
1247
1248
|
// The selector rides into the menu as its header row: on mobile the
|
|
1248
1249
|
// title row has no room for it, and hiding it entirely (what
|
|
1249
1250
|
// `icon-buttons` does) would leave no way to switch views at all.
|
|
1250
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1251
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQVKWKY4Ocjs.ActionsMenuDropdown, { groups: mobileMenuGroups, header: selector, loading })
|
|
1251
1252
|
) : loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, UnknownActionSkeleton, { shape: "icon" }) : null })
|
|
1252
1253
|
] });
|
|
1253
1254
|
}
|
|
1254
1255
|
function CompactPrimaryActions({ actions, loading: loadingProp }) {
|
|
1255
|
-
const loading =
|
|
1256
|
+
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1256
1257
|
const foldable = actions.filter((action) => action.variant !== "accent" && !!action.label);
|
|
1257
1258
|
const fold = foldable.length > 1;
|
|
1258
1259
|
const inline = fold ? actions.filter((action) => !foldable.includes(action)) : actions;
|
|
1259
1260
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
1260
|
-
fold && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1261
|
+
fold && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQVKWKY4Ocjs.ActionsMenuDropdown, { groups: [{ items: foldable.flatMap(actionToMenuItems) }], loading }),
|
|
1261
1262
|
inline.map((action, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react2.default.Fragment, { children: renderActionButton(action, { inert: loading }) }, `compact-${actionKey(action, idx)}`))
|
|
1262
1263
|
] });
|
|
1263
1264
|
}
|
|
1264
1265
|
function MobileBottomActions({ actions, loading: loadingProp }) {
|
|
1265
|
-
const loading =
|
|
1266
|
+
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
1266
1267
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1267
1268
|
"div",
|
|
1268
1269
|
{
|
|
1269
|
-
className:
|
|
1270
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1270
1271
|
"fixed bottom-0 left-0 right-0 z-50 md:hidden",
|
|
1271
1272
|
"border-t border-ods-border bg-ods-card",
|
|
1272
1273
|
// `lf` (24px at every breakpoint), NOT `l` — this bar is `md:hidden`, so the
|
|
@@ -1289,23 +1290,23 @@ function usePageActionsBottomPadding(variant) {
|
|
|
1289
1290
|
// src/components/ui/entity-image.tsx
|
|
1290
1291
|
|
|
1291
1292
|
|
|
1292
|
-
var ENTITY_IMAGE_SIZE =
|
|
1293
|
+
var ENTITY_IMAGE_SIZE = _chunkAT4C2YMAcjs.TILE_SIZE.entity;
|
|
1293
1294
|
var ENTITY_IMAGE_RADIUS_CLASS = "rounded-md";
|
|
1294
1295
|
function EntityImage({ src, alt, fallbackText, sizeClassName, className }) {
|
|
1295
|
-
const held =
|
|
1296
|
+
const held = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, );
|
|
1296
1297
|
const authedSrc = _chunkV4FXUIMHcjs.useAuthedImageSrc.call(void 0, held ? void 0 : src);
|
|
1297
1298
|
const resolvedSrc = authedSrc;
|
|
1298
1299
|
const [failedSrc, setFailedSrc] = _react2.default.useState(null);
|
|
1299
1300
|
const imageFailed = resolvedSrc !== void 0 && failedSrc === resolvedSrc;
|
|
1300
1301
|
if (held) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EntityImageSkeleton, { sizeClassName, className });
|
|
1301
1302
|
const showFallback = imageFailed || !resolvedSrc;
|
|
1302
|
-
const initials =
|
|
1303
|
+
const initials = _chunk7VXMO4XJcjs.personInitials.call(void 0, _nullishCoalesce(fallbackText, () => ( alt)));
|
|
1303
1304
|
if (showFallback) {
|
|
1304
1305
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1305
1306
|
"div",
|
|
1306
1307
|
{
|
|
1307
1308
|
"aria-label": alt,
|
|
1308
|
-
className:
|
|
1309
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1309
1310
|
"flex shrink-0 select-none items-center justify-center border border-ods-border bg-ods-bg text-ods-text-secondary text-h4",
|
|
1310
1311
|
ENTITY_IMAGE_RADIUS_CLASS,
|
|
1311
1312
|
_nullishCoalesce(sizeClassName, () => ( ENTITY_IMAGE_SIZE)),
|
|
@@ -1316,12 +1317,12 @@ function EntityImage({ src, alt, fallbackText, sizeClassName, className }) {
|
|
|
1316
1317
|
);
|
|
1317
1318
|
}
|
|
1318
1319
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1319
|
-
|
|
1320
|
+
_chunkDRWPSN3Acjs.next_image_default,
|
|
1320
1321
|
{
|
|
1321
1322
|
src: resolvedSrc,
|
|
1322
1323
|
alt: _nullishCoalesce(alt, () => ( "")),
|
|
1323
1324
|
onError: () => setFailedSrc(resolvedSrc),
|
|
1324
|
-
className:
|
|
1325
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1325
1326
|
"shrink-0 border border-ods-border object-contain",
|
|
1326
1327
|
ENTITY_IMAGE_RADIUS_CLASS,
|
|
1327
1328
|
_nullishCoalesce(sizeClassName, () => ( ENTITY_IMAGE_SIZE)),
|
|
@@ -1335,9 +1336,9 @@ function EntityImage({ src, alt, fallbackText, sizeClassName, className }) {
|
|
|
1335
1336
|
}
|
|
1336
1337
|
function EntityImageSkeleton({ sizeClassName, className }) {
|
|
1337
1338
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1338
|
-
|
|
1339
|
+
_chunkAT4C2YMAcjs.UnifiedSkeleton,
|
|
1339
1340
|
{
|
|
1340
|
-
className:
|
|
1341
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, "shrink-0", ENTITY_IMAGE_RADIUS_CLASS, _nullishCoalesce(sizeClassName, () => ( ENTITY_IMAGE_SIZE)), className)
|
|
1341
1342
|
}
|
|
1342
1343
|
);
|
|
1343
1344
|
}
|
|
@@ -1383,7 +1384,7 @@ function TitleBlock({
|
|
|
1383
1384
|
titleWrap = false,
|
|
1384
1385
|
titleSkeletonLines
|
|
1385
1386
|
}) {
|
|
1386
|
-
const scoped =
|
|
1387
|
+
const scoped = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, );
|
|
1387
1388
|
const titleLoading = !!loading || scoped && title === "";
|
|
1388
1389
|
const subtitleLoading = !!loading || scoped && subtitle === "";
|
|
1389
1390
|
const hasSubtitleRow = !!subtitle || subtitleRow === "always" || subtitleRow === "while-loading" && !!loading || scoped && subtitle === "";
|
|
@@ -1398,52 +1399,24 @@ function TitleBlock({
|
|
|
1398
1399
|
const { ref: subtitleRef, isTruncated: subtitleTruncated } = _chunkV4FXUIMHcjs.useIsTruncated.call(void 0,
|
|
1399
1400
|
subtitleLoading ? null : subtitle
|
|
1400
1401
|
);
|
|
1401
|
-
const titleNode = titleLoading && titleWrap && titleSkeletonLines ? /* @__PURE__ */ _jsxruntime.
|
|
1402
|
-
|
|
1403
|
-
_chunkBRUR5VZKcjs.TextLineSkeleton,
|
|
1404
|
-
{
|
|
1405
|
-
type: "inherit",
|
|
1406
|
-
as: "span",
|
|
1407
|
-
lines: titleSkeletonLines.phone,
|
|
1408
|
-
className: "w-full content-md:hidden"
|
|
1409
|
-
}
|
|
1410
|
-
),
|
|
1411
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1412
|
-
_chunkBRUR5VZKcjs.TextLineSkeleton,
|
|
1413
|
-
{
|
|
1414
|
-
type: "inherit",
|
|
1415
|
-
as: "span",
|
|
1416
|
-
lines: titleSkeletonLines.md,
|
|
1417
|
-
className: "hidden w-full content-md:flex content-lg:hidden"
|
|
1418
|
-
}
|
|
1419
|
-
),
|
|
1420
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1421
|
-
_chunkBRUR5VZKcjs.TextLineSkeleton,
|
|
1422
|
-
{
|
|
1423
|
-
type: "inherit",
|
|
1424
|
-
as: "span",
|
|
1425
|
-
lines: titleSkeletonLines.lg,
|
|
1426
|
-
className: "hidden w-full content-lg:flex"
|
|
1427
|
-
}
|
|
1428
|
-
)
|
|
1429
|
-
] }) : titleLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1430
|
-
_chunkBRUR5VZKcjs.UnifiedSkeleton,
|
|
1402
|
+
const titleNode = titleLoading && titleWrap && titleSkeletonLines ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLinesByBreakpointSkeleton, { as: "span", lines: titleSkeletonLines }) : titleLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1403
|
+
_chunkAT4C2YMAcjs.UnifiedSkeleton,
|
|
1431
1404
|
{
|
|
1432
1405
|
as: "span",
|
|
1433
1406
|
"aria-hidden": true,
|
|
1434
|
-
className:
|
|
1407
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, TITLE_TEXT_SKELETON_CLASS, skeletonSize.width, skeletonSize.height)
|
|
1435
1408
|
}
|
|
1436
1409
|
) : title;
|
|
1437
1410
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1438
1411
|
"div",
|
|
1439
1412
|
{
|
|
1440
|
-
className:
|
|
1413
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1441
1414
|
"flex items-end justify-between gap-[var(--spacing-system-m)]",
|
|
1442
1415
|
// md+: one wrapping row — actions stay inline with a short title and
|
|
1443
1416
|
// wrap to a second row only when the title overflows (ClickUp 86ahd6uy5).
|
|
1444
1417
|
"content-md:flex-wrap content-md:content-end",
|
|
1445
1418
|
"pt-[var(--spacing-system-l)]",
|
|
1446
|
-
variant === "card" ?
|
|
1419
|
+
variant === "card" ? _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1447
1420
|
"border-b border-ods-border bg-ods-card",
|
|
1448
1421
|
"px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]",
|
|
1449
1422
|
"content-md:border-b-0 content-md:bg-transparent",
|
|
@@ -1456,7 +1429,7 @@ function TitleBlock({
|
|
|
1456
1429
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1457
1430
|
"div",
|
|
1458
1431
|
{
|
|
1459
|
-
className:
|
|
1432
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1460
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",
|
|
1461
1434
|
TITLE_BLOCK_MIN_HEIGHT,
|
|
1462
1435
|
// A wrapping title's loading lines stand for a title that fills the row (its typical lines are full ones), so the
|
|
@@ -1470,7 +1443,7 @@ function TitleBlock({
|
|
|
1470
1443
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
1471
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: [
|
|
1472
1445
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1473
|
-
|
|
1446
|
+
_chunk7VXMO4XJcjs.FloatingTooltip,
|
|
1474
1447
|
{
|
|
1475
1448
|
content: title,
|
|
1476
1449
|
side: "bottom",
|
|
@@ -1480,41 +1453,41 @@ function TitleBlock({
|
|
|
1480
1453
|
PageTitle,
|
|
1481
1454
|
{
|
|
1482
1455
|
ref: titleRef,
|
|
1483
|
-
className:
|
|
1456
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, titleClass, "min-w-0 text-ods-text-primary", titleOverflowClass),
|
|
1484
1457
|
children: titleNode
|
|
1485
1458
|
}
|
|
1486
1459
|
)
|
|
1487
1460
|
}
|
|
1488
1461
|
),
|
|
1489
1462
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: titleAdornment })
|
|
1490
|
-
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1463
|
+
] }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.FloatingTooltip, { content: title, side: "bottom", disabled: !titleTruncated, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTitle, { ref: titleRef, className: _chunk6YZNUHXTcjs.cn.call(void 0, titleClass, "text-ods-text-primary", titleOverflowClass), children: titleNode }) })),
|
|
1491
1464
|
hasSubtitleRow && /* The NBSP is a pure spacer, reached only in `'always'` mode: an
|
|
1492
1465
|
empty `p` collapses to zero height (its only content would be
|
|
1493
1466
|
collapsible whitespace), which is exactly the shift that mode
|
|
1494
1467
|
exists to prevent. Hidden from AT — it carries no meaning. */
|
|
1495
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1468
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.FloatingTooltip, { content: subtitle, side: "bottom", disabled: !subtitleTruncated, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1496
1469
|
"p",
|
|
1497
1470
|
{
|
|
1498
1471
|
ref: subtitleRef,
|
|
1499
1472
|
className: "truncate text-ods-text-secondary text-h6",
|
|
1500
1473
|
"aria-hidden": !subtitleLoading && !subtitle ? true : void 0,
|
|
1501
1474
|
children: subtitleLoading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1502
|
-
|
|
1475
|
+
_chunkAT4C2YMAcjs.UnifiedSkeleton,
|
|
1503
1476
|
{
|
|
1504
1477
|
as: "span",
|
|
1505
1478
|
"aria-hidden": true,
|
|
1506
|
-
className:
|
|
1479
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, TITLE_TEXT_SKELETON_CLASS, "h-2.5 w-28 content-md:h-3 content-md:w-36")
|
|
1507
1480
|
}
|
|
1508
1481
|
) : subtitle || "\xA0"
|
|
1509
1482
|
}
|
|
1510
1483
|
) })
|
|
1511
1484
|
] })
|
|
1512
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: [
|
|
1513
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1486
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7VXMO4XJcjs.FloatingTooltip, { content: title, side: "bottom", disabled: !titleTruncated, triggerClassName: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1514
1487
|
PageTitle,
|
|
1515
1488
|
{
|
|
1516
1489
|
ref: titleRef,
|
|
1517
|
-
className:
|
|
1490
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, titleClass, "min-w-0 text-ods-text-primary", titleOverflowClass),
|
|
1518
1491
|
children: title
|
|
1519
1492
|
}
|
|
1520
1493
|
) }),
|
|
@@ -1524,7 +1497,7 @@ function TitleBlock({
|
|
|
1524
1497
|
wraps; `titleWrap` only adds break-words for pathological
|
|
1525
1498
|
unbroken tokens. No class change when the prop is unset —
|
|
1526
1499
|
the frozen baseline stays byte-identical. */
|
|
1527
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTitle, { className:
|
|
1500
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageTitle, { className: _chunk6YZNUHXTcjs.cn.call(void 0, titleClass, "text-ods-text-primary", titleWrap && "break-words"), children: title })
|
|
1528
1501
|
))
|
|
1529
1502
|
]
|
|
1530
1503
|
}
|
|
@@ -1571,7 +1544,7 @@ function PageLayout({
|
|
|
1571
1544
|
const hasActions = actions && actions.length > 0;
|
|
1572
1545
|
const needsBottomPadding = hasActions && actionsVariant === "primary-buttons";
|
|
1573
1546
|
const hasHeader = showHeader && (title || subtitle || image || backButton || hasActions || selector || loading);
|
|
1574
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
1547
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex w-full flex-col", className), children: [
|
|
1575
1548
|
hasHeader && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1576
1549
|
TitleBlock,
|
|
1577
1550
|
{
|
|
@@ -1596,7 +1569,7 @@ function PageLayout({
|
|
|
1596
1569
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1597
1570
|
"div",
|
|
1598
1571
|
{
|
|
1599
|
-
className:
|
|
1572
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1600
1573
|
"flex flex-1 flex-col gap-[var(--spacing-system-l)]",
|
|
1601
1574
|
needsBottomPadding && "pb-28 content-md:pb-0",
|
|
1602
1575
|
contentClassName
|
|
@@ -1625,12 +1598,12 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1625
1598
|
const faces = ordered.slice(0, max);
|
|
1626
1599
|
const overflow = ordered.length - faces.length;
|
|
1627
1600
|
const Chevron = open ? _chunk3MRRIHC2cjs.Chevron02UpIcon : _chunkSKI6NKOEcjs.Chevron02DownIcon;
|
|
1628
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1601
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkHYF4LPXFcjs.DropdownMenu, { open, onOpenChange: setOpen, children: [
|
|
1629
1602
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1630
|
-
|
|
1603
|
+
_chunkHYF4LPXFcjs.DropdownMenuTrigger,
|
|
1631
1604
|
{
|
|
1632
1605
|
"aria-label": `In this session: ${ordered.map(viewerLabel).join(", ")}`,
|
|
1633
|
-
className:
|
|
1606
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1634
1607
|
"flex shrink-0 items-center gap-[var(--spacing-system-xxs)] rounded-md outline-none",
|
|
1635
1608
|
"focus-visible:ring-2 focus-visible:ring-ods-focus",
|
|
1636
1609
|
className
|
|
@@ -1638,14 +1611,14 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1638
1611
|
children: [
|
|
1639
1612
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center", children: [
|
|
1640
1613
|
faces.map((viewer, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1641
|
-
|
|
1614
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
1642
1615
|
{
|
|
1643
1616
|
variant: "round",
|
|
1644
1617
|
sizePx: 32,
|
|
1645
1618
|
src: _nullishCoalesce(viewer.avatarUrl, () => ( void 0)),
|
|
1646
1619
|
alt: viewer.name,
|
|
1647
1620
|
fallback: viewer.name,
|
|
1648
|
-
className:
|
|
1621
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1649
1622
|
"relative bg-ods-bg",
|
|
1650
1623
|
viewer.isHost ? "ring-2 ring-ods-accent" : "ring-1 ring-ods-border",
|
|
1651
1624
|
index > 0 && "-ml-2"
|
|
@@ -1663,16 +1636,16 @@ function RemoteSessionViewers({ viewers, max = 4, className }) {
|
|
|
1663
1636
|
]
|
|
1664
1637
|
}
|
|
1665
1638
|
),
|
|
1666
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1667
|
-
|
|
1639
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHYF4LPXFcjs.DropdownMenuContent, { align: "end", className: "w-[280px] p-0", children: ordered.map((viewer) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1640
|
+
_chunkHYF4LPXFcjs.DropdownMenuItem,
|
|
1668
1641
|
{
|
|
1669
|
-
className:
|
|
1642
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1670
1643
|
"gap-[var(--spacing-system-xsf)] rounded-none border-b border-ods-border bg-ods-bg last:border-b-0",
|
|
1671
1644
|
"py-[var(--spacing-system-s)] pl-[var(--spacing-system-mf)] pr-[var(--spacing-system-xs)] text-h4"
|
|
1672
1645
|
),
|
|
1673
1646
|
children: [
|
|
1674
1647
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1675
|
-
|
|
1648
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
1676
1649
|
{
|
|
1677
1650
|
variant: "round",
|
|
1678
1651
|
sizePx: 24,
|
|
@@ -1718,7 +1691,7 @@ function RemoteSessionScope({ children, className }) {
|
|
|
1718
1691
|
function RemoteSessionOrgLogo({ name, logoUrl, sizePx, className }) {
|
|
1719
1692
|
if (logoUrl) {
|
|
1720
1693
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1721
|
-
|
|
1694
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
1722
1695
|
{
|
|
1723
1696
|
variant: "square",
|
|
1724
1697
|
fit: "contain",
|
|
@@ -1726,7 +1699,7 @@ function RemoteSessionOrgLogo({ name, logoUrl, sizePx, className }) {
|
|
|
1726
1699
|
src: logoUrl,
|
|
1727
1700
|
alt: name,
|
|
1728
1701
|
fallback: name,
|
|
1729
|
-
className:
|
|
1702
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, "shrink-0 rounded-md border border-ods-border bg-ods-card", className)
|
|
1730
1703
|
}
|
|
1731
1704
|
);
|
|
1732
1705
|
}
|
|
@@ -1736,7 +1709,7 @@ function RemoteSessionOrgLogo({ name, logoUrl, sizePx, className }) {
|
|
|
1736
1709
|
role: "img",
|
|
1737
1710
|
"aria-label": name,
|
|
1738
1711
|
style: { width: sizePx, height: sizePx },
|
|
1739
|
-
className:
|
|
1712
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1740
1713
|
"flex shrink-0 items-center justify-center rounded-md border border-ods-border bg-ods-card",
|
|
1741
1714
|
className
|
|
1742
1715
|
),
|
|
@@ -1755,7 +1728,7 @@ function RemoteSessionRecordingTag({ className }) {
|
|
|
1755
1728
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1756
1729
|
"div",
|
|
1757
1730
|
{
|
|
1758
|
-
className:
|
|
1731
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1759
1732
|
"flex h-8 items-center gap-[var(--spacing-system-xs)] self-start rounded-md bg-ods-success-secondary p-[var(--spacing-system-xsf)]",
|
|
1760
1733
|
className
|
|
1761
1734
|
),
|
|
@@ -1784,7 +1757,7 @@ function RemoteSessionDragger({ dragHandlers }) {
|
|
|
1784
1757
|
"span",
|
|
1785
1758
|
{
|
|
1786
1759
|
"aria-hidden": true,
|
|
1787
|
-
className:
|
|
1760
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1788
1761
|
"absolute right-[var(--spacing-system-xsf)] top-[var(--spacing-system-xsf)] text-ods-text-secondary",
|
|
1789
1762
|
dragHandlers && REMOTE_SESSION_DRAG_HANDLE_CLASS
|
|
1790
1763
|
),
|
|
@@ -1828,9 +1801,9 @@ function RemoteAccessRequestCard({
|
|
|
1828
1801
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteSessionOrgLogo, { name: organizationName, logoUrl: party.organizationLogoUrl, sizePx: 64 }),
|
|
1829
1802
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
1830
1803
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "w-full truncate text-ods-text-primary text-h3", children: organizationName }),
|
|
1831
|
-
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: _chunk7VXMO4XJcjs.formatUrlForDisplay.call(void 0, siteUrl, { keepWww: true }) })
|
|
1832
1805
|
] }),
|
|
1833
|
-
openableSite && onOpenSite && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1806
|
+
openableSite && onOpenSite && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.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" }) })
|
|
1834
1807
|
] }),
|
|
1835
1808
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "w-full text-ods-text-primary text-h4", children: [
|
|
1836
1809
|
"A technician from ",
|
|
@@ -1846,7 +1819,7 @@ function RemoteAccessRequestCard({
|
|
|
1846
1819
|
] }),
|
|
1847
1820
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-stretch gap-[var(--spacing-system-l)]", children: [
|
|
1848
1821
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1849
|
-
|
|
1822
|
+
_chunkK7I3YYYUcjs.Button,
|
|
1850
1823
|
{
|
|
1851
1824
|
variant: "outline",
|
|
1852
1825
|
fullWidth: true,
|
|
@@ -1857,7 +1830,7 @@ function RemoteAccessRequestCard({
|
|
|
1857
1830
|
}
|
|
1858
1831
|
),
|
|
1859
1832
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1860
|
-
|
|
1833
|
+
_chunkK7I3YYYUcjs.Button,
|
|
1861
1834
|
{
|
|
1862
1835
|
variant: "accent",
|
|
1863
1836
|
fullWidth: true,
|
|
@@ -1880,14 +1853,14 @@ var RemoteSessionBlockFrame = _react.forwardRef.call(void 0,
|
|
|
1880
1853
|
"div",
|
|
1881
1854
|
{
|
|
1882
1855
|
ref,
|
|
1883
|
-
className:
|
|
1856
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1884
1857
|
"flex w-[440px] shrink-0 flex-col overflow-hidden rounded-md border border-ods-border bg-ods-bg",
|
|
1885
1858
|
expanded && "h-[680px]",
|
|
1886
1859
|
className
|
|
1887
1860
|
),
|
|
1888
1861
|
children: [
|
|
1889
1862
|
children,
|
|
1890
|
-
/* @__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, _chunkK7I3YYYUcjs.Button, { variant: "row", type: "button", className: "h-12", onClick: onHide, children: [
|
|
1891
1864
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFM7BOWEIcjs.Chevrons03RightIcon, { size: 24 }),
|
|
1892
1865
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate text-ods-text-secondary", children: "Hide this Block" }),
|
|
1893
1866
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1907,7 +1880,7 @@ var RemoteSessionBlockFrame = _react.forwardRef.call(void 0,
|
|
|
1907
1880
|
RemoteSessionBlockFrame.displayName = "RemoteSessionBlockFrame";
|
|
1908
1881
|
function RemoteSessionEndButton({ onEndSession }) {
|
|
1909
1882
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1910
|
-
|
|
1883
|
+
_chunkK7I3YYYUcjs.Button,
|
|
1911
1884
|
{
|
|
1912
1885
|
variant: "outline",
|
|
1913
1886
|
fullWidth: true,
|
|
@@ -1932,14 +1905,14 @@ function RemoteSessionSummary({
|
|
|
1932
1905
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1933
1906
|
"div",
|
|
1934
1907
|
{
|
|
1935
|
-
className:
|
|
1908
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
1936
1909
|
"flex w-full items-center gap-[var(--spacing-system-xs)] pr-[var(--spacing-system-mf)]",
|
|
1937
1910
|
dragHandlers && REMOTE_SESSION_DRAG_HANDLE_CLASS
|
|
1938
1911
|
),
|
|
1939
1912
|
...dragHandlers,
|
|
1940
1913
|
children: [
|
|
1941
1914
|
technician ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1942
|
-
|
|
1915
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
1943
1916
|
{
|
|
1944
1917
|
variant: "round",
|
|
1945
1918
|
sizePx: 48,
|
|
@@ -1965,7 +1938,7 @@ function RemoteSessionSummary({
|
|
|
1965
1938
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteSessionStatusRow, { showRecordingTag, viewers }),
|
|
1966
1939
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-stretch gap-[var(--spacing-system-m)]", children: [
|
|
1967
1940
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1968
|
-
|
|
1941
|
+
_chunkK7I3YYYUcjs.Button,
|
|
1969
1942
|
{
|
|
1970
1943
|
variant: "outline",
|
|
1971
1944
|
fullWidth: true,
|
|
@@ -1982,18 +1955,18 @@ var RemoteSessionMinimizedChip = _react.forwardRef.call(void 0,
|
|
|
1982
1955
|
({ party, onExpand, dragHandlers }, ref) => {
|
|
1983
1956
|
const technician = party.technicianName;
|
|
1984
1957
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1985
|
-
|
|
1958
|
+
_chunkK7I3YYYUcjs.Button,
|
|
1986
1959
|
{
|
|
1987
1960
|
variant: "card",
|
|
1988
1961
|
ref,
|
|
1989
1962
|
type: "button",
|
|
1990
1963
|
"aria-label": "Show session block",
|
|
1991
|
-
className:
|
|
1964
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, "w-auto shrink-0", dragHandlers && REMOTE_SESSION_DRAG_HANDLE_CLASS),
|
|
1992
1965
|
onClick: onExpand,
|
|
1993
1966
|
...dragHandlers,
|
|
1994
1967
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex flex-col overflow-hidden rounded-md border border-ods-border", children: [
|
|
1995
1968
|
technician ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1996
|
-
|
|
1969
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
1997
1970
|
{
|
|
1998
1971
|
sizePx: 48,
|
|
1999
1972
|
src: _nullishCoalesce(party.technicianAvatarUrl, () => ( void 0)),
|
|
@@ -2055,7 +2028,7 @@ function RemoteSessionChatPanel({
|
|
|
2055
2028
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2056
2029
|
"div",
|
|
2057
2030
|
{
|
|
2058
|
-
className:
|
|
2031
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
2059
2032
|
"flex w-full flex-col pr-[var(--spacing-system-mf)]",
|
|
2060
2033
|
dragHandlers && REMOTE_SESSION_DRAG_HANDLE_CLASS
|
|
2061
2034
|
),
|
|
@@ -2076,7 +2049,7 @@ function RemoteSessionChatPanel({
|
|
|
2076
2049
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, RemoteSessionStatusRow, { showRecordingTag, viewers }),
|
|
2077
2050
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-stretch gap-[var(--spacing-system-m)]", children: [
|
|
2078
2051
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2079
|
-
|
|
2052
|
+
_chunkK7I3YYYUcjs.Button,
|
|
2080
2053
|
{
|
|
2081
2054
|
variant: "outline",
|
|
2082
2055
|
fullWidth: true,
|
|
@@ -2120,7 +2093,7 @@ function RemoteSessionChatPanel({
|
|
|
2120
2093
|
}
|
|
2121
2094
|
),
|
|
2122
2095
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2123
|
-
|
|
2096
|
+
_chunkK7I3YYYUcjs.Button,
|
|
2124
2097
|
{
|
|
2125
2098
|
variant: "transparent",
|
|
2126
2099
|
size: "icon",
|
|
@@ -2145,7 +2118,7 @@ function RemoteSessionChatMessageRow({
|
|
|
2145
2118
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col", children: [
|
|
2146
2119
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2147
2120
|
isTechnician && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2148
|
-
|
|
2121
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
2149
2122
|
{
|
|
2150
2123
|
variant: "round",
|
|
2151
2124
|
sizePx: 16,
|
|
@@ -2156,7 +2129,7 @@ function RemoteSessionChatMessageRow({
|
|
|
2156
2129
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2157
2130
|
"span",
|
|
2158
2131
|
{
|
|
2159
|
-
className:
|
|
2132
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
2160
2133
|
"min-w-0 flex-1 truncate text-code",
|
|
2161
2134
|
isTechnician ? "text-ods-accent" : "text-ods-text-secondary"
|
|
2162
2135
|
),
|
|
@@ -2184,11 +2157,11 @@ function RemoteDesktopChatMessageRow({
|
|
|
2184
2157
|
loading: loadingProp = false,
|
|
2185
2158
|
...props
|
|
2186
2159
|
}) {
|
|
2187
|
-
const loading =
|
|
2188
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: MESSAGE_ROW_CLASS, "aria-hidden": loading || void 0, ...
|
|
2160
|
+
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
2161
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: MESSAGE_ROW_CLASS, "aria-hidden": loading || void 0, ..._chunk6YZNUHXTcjs.loadingItemProps.call(void 0, props), children: [
|
|
2189
2162
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: MESSAGE_HEAD_CLASS, children: [
|
|
2190
2163
|
isTechnician && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2191
|
-
|
|
2164
|
+
_chunk7VXMO4XJcjs.SquareAvatar,
|
|
2192
2165
|
{
|
|
2193
2166
|
loading,
|
|
2194
2167
|
variant: "round",
|
|
@@ -2201,16 +2174,16 @@ function RemoteDesktopChatMessageRow({
|
|
|
2201
2174
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2202
2175
|
"span",
|
|
2203
2176
|
{
|
|
2204
|
-
className:
|
|
2205
|
-
children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2177
|
+
className: _chunk6YZNUHXTcjs.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, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) : authorName
|
|
2206
2179
|
}
|
|
2207
2180
|
),
|
|
2208
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2181
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", as: "span", className: "w-12 shrink-0" }) : (
|
|
2209
2182
|
// The time is in the viewer's zone, which a server render cannot know.
|
|
2210
|
-
/* @__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: _chunkZCMXBX4Zcjs.formatTime.call(void 0, sentAt) })
|
|
2211
2184
|
)
|
|
2212
2185
|
] }),
|
|
2213
|
-
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2186
|
+
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.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 })
|
|
2214
2187
|
] });
|
|
2215
2188
|
}
|
|
2216
2189
|
|
|
@@ -2229,7 +2202,7 @@ function RemoteDesktopChatPanel({
|
|
|
2229
2202
|
}) {
|
|
2230
2203
|
const scrollRef = _react.useRef.call(void 0, null);
|
|
2231
2204
|
const rows = messages.filter((message) => message.author !== "system");
|
|
2232
|
-
const loading =
|
|
2205
|
+
const loading = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, ) || rows.length === 0 && !!loadingProp;
|
|
2233
2206
|
_react.useEffect.call(void 0, () => {
|
|
2234
2207
|
const el = scrollRef.current;
|
|
2235
2208
|
if (el) el.scrollTop = el.scrollHeight;
|
|
@@ -2238,7 +2211,7 @@ function RemoteDesktopChatPanel({
|
|
|
2238
2211
|
"aside",
|
|
2239
2212
|
{
|
|
2240
2213
|
"aria-label": "Session chat",
|
|
2241
|
-
className:
|
|
2214
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
2242
2215
|
"flex flex-col gap-[var(--spacing-system-mf)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-mf)]",
|
|
2243
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"
|
|
2244
2217
|
),
|
|
@@ -2246,7 +2219,7 @@ function RemoteDesktopChatPanel({
|
|
|
2246
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 ? (
|
|
2247
2220
|
// The chat while it is read: a screen of the panel's own message rows, stacked by a one-column grid
|
|
2248
2221
|
// (the thread above is already the column flexbox: WEBVIEW-001).
|
|
2249
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2222
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD6RPLHXcjs.LoadingRegion, { label: "Loading the chat", className: "grid grid-cols-1 gap-[var(--spacing-system-xsf)]", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk6YZNUHXTcjs.LoadingItems, { count: CHAT_PANEL_SKELETON_ROWS, children: (i) => (
|
|
2250
2223
|
// A conversation: the technician and the user take turns.
|
|
2251
2224
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2252
2225
|
RemoteDesktopChatMessageRow,
|
|
@@ -2273,7 +2246,7 @@ function RemoteDesktopChatPanel({
|
|
|
2273
2246
|
message.id
|
|
2274
2247
|
)) }) }),
|
|
2275
2248
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2276
|
-
|
|
2249
|
+
_chunkZCMXBX4Zcjs.ChatInput,
|
|
2277
2250
|
{
|
|
2278
2251
|
placeholder: "Enter your Message...",
|
|
2279
2252
|
onSend,
|
|
@@ -2317,10 +2290,10 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2317
2290
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
2318
2291
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h6", children: deviceName }),
|
|
2319
2292
|
displayMenuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2320
|
-
|
|
2293
|
+
_chunkQVKWKY4Ocjs.ActionsMenuDropdown,
|
|
2321
2294
|
{
|
|
2322
2295
|
groups: displayMenuGroups,
|
|
2323
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2296
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "outline", size: "small", type: "button", "aria-label": "Switch display", className: "shrink-0", children: [
|
|
2324
2297
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, {}),
|
|
2325
2298
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: currentDisplayLabel }),
|
|
2326
2299
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSKI6NKOEcjs.Chevron02DownIcon, {})
|
|
@@ -2330,7 +2303,7 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2330
2303
|
] }),
|
|
2331
2304
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2332
2305
|
onToggleChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2333
|
-
|
|
2306
|
+
_chunkK7I3YYYUcjs.Button,
|
|
2334
2307
|
{
|
|
2335
2308
|
variant: "outline",
|
|
2336
2309
|
size: "small",
|
|
@@ -2340,11 +2313,11 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2340
2313
|
}
|
|
2341
2314
|
),
|
|
2342
2315
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2343
|
-
|
|
2316
|
+
_chunkQVKWKY4Ocjs.ActionsMenuDropdown,
|
|
2344
2317
|
{
|
|
2345
2318
|
groups: actionsMenuGroups,
|
|
2346
2319
|
customTrigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2347
|
-
|
|
2320
|
+
_chunkK7I3YYYUcjs.Button,
|
|
2348
2321
|
{
|
|
2349
2322
|
variant: "outline",
|
|
2350
2323
|
size: "icon-sm",
|
|
@@ -2355,7 +2328,7 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2355
2328
|
}
|
|
2356
2329
|
),
|
|
2357
2330
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2358
|
-
|
|
2331
|
+
_chunkK7I3YYYUcjs.Button,
|
|
2359
2332
|
{
|
|
2360
2333
|
variant: "outline",
|
|
2361
2334
|
size: "icon-sm",
|
|
@@ -2365,7 +2338,7 @@ function RemoteDesktopFullscreenToolbar({
|
|
|
2365
2338
|
}
|
|
2366
2339
|
),
|
|
2367
2340
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2368
|
-
|
|
2341
|
+
_chunkK7I3YYYUcjs.Button,
|
|
2369
2342
|
{
|
|
2370
2343
|
variant: "outline",
|
|
2371
2344
|
size: "icon-sm",
|
|
@@ -2404,20 +2377,20 @@ function RemoteDesktopView({
|
|
|
2404
2377
|
children,
|
|
2405
2378
|
loading: loadingProp = false
|
|
2406
2379
|
}) {
|
|
2407
|
-
const inScope =
|
|
2380
|
+
const inScope = _chunk6YZNUHXTcjs.useLoadingScope.call(void 0, );
|
|
2408
2381
|
const loading = inScope || loadingProp;
|
|
2409
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: [
|
|
2410
2383
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-mf)]", children: [
|
|
2411
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" }) }),
|
|
2412
2385
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
2413
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2414
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2386
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h4", className: "w-48 max-w-full" }),
|
|
2387
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.TextLineSkeleton, { type: "h6", className: "w-36 max-w-full" })
|
|
2415
2388
|
] })
|
|
2416
2389
|
] }),
|
|
2417
2390
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2418
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2419
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2420
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2391
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.InteractiveSkeleton.Button, { size: "icon" }),
|
|
2392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.InteractiveSkeleton.Button, { size: "icon" }),
|
|
2393
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAT4C2YMAcjs.InteractiveSkeleton.Button, { size: "icon" })
|
|
2421
2394
|
] })
|
|
2422
2395
|
] }) }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTROLS_BAR_CLASS, children: [
|
|
2423
2396
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CONTROLS_ROW_CLASS, children: [
|
|
@@ -2437,7 +2410,7 @@ function RemoteDesktopView({
|
|
|
2437
2410
|
] }),
|
|
2438
2411
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-shrink-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
2439
2412
|
onToggleChat && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2440
|
-
|
|
2413
|
+
_chunkK7I3YYYUcjs.Button,
|
|
2441
2414
|
{
|
|
2442
2415
|
variant: "outline",
|
|
2443
2416
|
onClick: onToggleChat,
|
|
@@ -2445,9 +2418,9 @@ function RemoteDesktopView({
|
|
|
2445
2418
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only content-md:not-sr-only", children: chatOpen ? "Close Chat" : "Open Chat" })
|
|
2446
2419
|
}
|
|
2447
2420
|
),
|
|
2448
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2421
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQVKWKY4Ocjs.ActionsMenuDropdown, { groups: actionsMenuGroups, triggerAriaLabel: "Actions" }),
|
|
2449
2422
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2450
|
-
|
|
2423
|
+
_chunkK7I3YYYUcjs.Button,
|
|
2451
2424
|
{
|
|
2452
2425
|
variant: "outline",
|
|
2453
2426
|
size: "icon",
|
|
@@ -2457,7 +2430,7 @@ function RemoteDesktopView({
|
|
|
2457
2430
|
}
|
|
2458
2431
|
),
|
|
2459
2432
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2460
|
-
|
|
2433
|
+
_chunkK7I3YYYUcjs.Button,
|
|
2461
2434
|
{
|
|
2462
2435
|
variant: "outline",
|
|
2463
2436
|
size: "icon",
|
|
@@ -2469,11 +2442,11 @@ function RemoteDesktopView({
|
|
|
2469
2442
|
] })
|
|
2470
2443
|
] }),
|
|
2471
2444
|
displayMenuGroups.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-t border-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2472
|
-
|
|
2445
|
+
_chunkQVKWKY4Ocjs.ActionsMenuDropdown,
|
|
2473
2446
|
{
|
|
2474
2447
|
groups: displayMenuGroups,
|
|
2475
2448
|
align: "start",
|
|
2476
|
-
customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2449
|
+
customTrigger: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "row", type: "button", "aria-label": "Switch display", children: [
|
|
2477
2450
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "h-6 w-6" }),
|
|
2478
2451
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1 truncate", children: currentDisplayLabel }),
|
|
2479
2452
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkSKI6NKOEcjs.Chevron02DownIcon, { className: "h-6 w-6" })
|
|
@@ -2482,7 +2455,7 @@ function RemoteDesktopView({
|
|
|
2482
2455
|
) })
|
|
2483
2456
|
] });
|
|
2484
2457
|
if (loading) {
|
|
2485
|
-
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, _chunkGD6RPLHXcjs.LoadingRegion, { label: "Loading the remote session", announce: !inScope, className: "contents", children: [
|
|
2486
2459
|
controlsBar,
|
|
2487
2460
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-h-0 min-w-0 flex-1 rounded-lg bg-black" })
|
|
2488
2461
|
] }) });
|
|
@@ -2539,8 +2512,8 @@ function RemoteSessionDialog({
|
|
|
2539
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." })
|
|
2540
2513
|
] }),
|
|
2541
2514
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-stretch gap-[var(--spacing-system-l)]", children: [
|
|
2542
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2543
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2515
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "outline", fullWidth: true, disabled: ending, onClick: onClose, children: "Cancel" }),
|
|
2516
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "destructive", fullWidth: true, loading: ending, onClick: onEndSession, children: "End Session" })
|
|
2544
2517
|
] })
|
|
2545
2518
|
] });
|
|
2546
2519
|
}
|
|
@@ -2554,7 +2527,7 @@ function RemoteSessionDialog({
|
|
|
2554
2527
|
copy.suffix
|
|
2555
2528
|
] })
|
|
2556
2529
|
] }),
|
|
2557
|
-
/* @__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, _chunkK7I3YYYUcjs.Button, { variant: "outline", className: "w-1/2", onClick: onClose, children: "Close" }) })
|
|
2558
2531
|
] });
|
|
2559
2532
|
}
|
|
2560
2533
|
function DialogCard({ children }) {
|
|
@@ -2564,10 +2537,10 @@ function DialogCard({ children }) {
|
|
|
2564
2537
|
// src/components/features/remote-session/remote-session-overlay.tsx
|
|
2565
2538
|
|
|
2566
2539
|
function RemoteSessionBorder({ className }) {
|
|
2567
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2540
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "pointer-events-none size-full border-4 border-ods-warning", className) });
|
|
2568
2541
|
}
|
|
2569
2542
|
function RemoteSessionPill({ onEndSession }) {
|
|
2570
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2543
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkK7I3YYYUcjs.Button, { variant: "warning", type: "button", onClick: onEndSession, children: [
|
|
2571
2544
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkQED3GWZXcjs.MonitorOffIcon, { size: 24, color: "currentColor" }),
|
|
2572
2545
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-nowrap", children: "End Session" })
|
|
2573
2546
|
] });
|
|
@@ -2616,9 +2589,9 @@ function KeepRecordingModal({
|
|
|
2616
2589
|
if (!canKeep || isPending) return;
|
|
2617
2590
|
onConfirm({ reason, description: reason === "OTHER" ? trimmed : null });
|
|
2618
2591
|
};
|
|
2619
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2592
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2620
2593
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2621
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2594
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalTitle, { children: "Keep this recording" }) }),
|
|
2622
2595
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2623
2596
|
KeepNotice,
|
|
2624
2597
|
{
|
|
@@ -2645,7 +2618,7 @@ function KeepRecordingModal({
|
|
|
2645
2618
|
}
|
|
2646
2619
|
),
|
|
2647
2620
|
reason === "OTHER" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2648
|
-
|
|
2621
|
+
_chunkHCXNFMLOcjs.Input,
|
|
2649
2622
|
{
|
|
2650
2623
|
"aria-label": "Reason description",
|
|
2651
2624
|
value: description,
|
|
@@ -2656,11 +2629,11 @@ function KeepRecordingModal({
|
|
|
2656
2629
|
}
|
|
2657
2630
|
)
|
|
2658
2631
|
] }),
|
|
2659
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2660
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2632
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.ModalFooter, { children: [
|
|
2633
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2661
2634
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2662
2635
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2663
|
-
|
|
2636
|
+
_chunkK7I3YYYUcjs.Button,
|
|
2664
2637
|
{
|
|
2665
2638
|
type: "button",
|
|
2666
2639
|
variant: "accent",
|
|
@@ -2686,9 +2659,9 @@ function ReleaseKeepingModal({
|
|
|
2686
2659
|
isPending = false,
|
|
2687
2660
|
onConfirm
|
|
2688
2661
|
}) {
|
|
2689
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2662
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2690
2663
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2691
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2664
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalTitle, { children: "Release Keeping" }) }),
|
|
2692
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: [
|
|
2693
2666
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { children: [
|
|
2694
2667
|
"Kept by ",
|
|
@@ -2705,10 +2678,10 @@ function ReleaseKeepingModal({
|
|
|
2705
2678
|
] })
|
|
2706
2679
|
] }),
|
|
2707
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." }),
|
|
2708
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2709
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2681
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.ModalFooter, { children: [
|
|
2682
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2710
2683
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2711
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2684
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { type: "button", variant: "accent", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Release Keeping" })
|
|
2712
2685
|
] })
|
|
2713
2686
|
] });
|
|
2714
2687
|
}
|
|
@@ -2747,9 +2720,9 @@ function AssignTicketModal({
|
|
|
2747
2720
|
if (ticketIds.length === 0 || isPending) return;
|
|
2748
2721
|
onConfirm(ticketIds);
|
|
2749
2722
|
};
|
|
2750
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2723
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2751
2724
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2752
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2725
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalTitle, { children: "Assign Ticket" }) }),
|
|
2753
2726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2754
2727
|
Autocomplete,
|
|
2755
2728
|
{
|
|
@@ -2768,11 +2741,11 @@ function AssignTicketModal({
|
|
|
2768
2741
|
disabled: isPending
|
|
2769
2742
|
}
|
|
2770
2743
|
),
|
|
2771
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2772
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2744
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.ModalFooter, { children: [
|
|
2745
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2773
2746
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2774
2747
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2775
|
-
|
|
2748
|
+
_chunkK7I3YYYUcjs.Button,
|
|
2776
2749
|
{
|
|
2777
2750
|
type: "button",
|
|
2778
2751
|
variant: "accent",
|
|
@@ -2787,14 +2760,14 @@ function AssignTicketModal({
|
|
|
2787
2760
|
] });
|
|
2788
2761
|
}
|
|
2789
2762
|
function UnassignTicketModal({ isOpen, onClose, isPending = false, onConfirm }) {
|
|
2790
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2763
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
2791
2764
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
2792
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2765
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZCMXBX4Zcjs.ModalTitle, { children: "Unassign Ticket" }) }),
|
|
2793
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." }),
|
|
2794
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2795
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2767
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkZCMXBX4Zcjs.ModalFooter, { children: [
|
|
2768
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
2796
2769
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
2797
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2770
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkK7I3YYYUcjs.Button, { type: "button", variant: "destructive", onClick: onConfirm, loading: isPending, className: "flex-1", children: "Unassign" })
|
|
2798
2771
|
] })
|
|
2799
2772
|
] });
|
|
2800
2773
|
}
|
|
@@ -2809,10 +2782,10 @@ function formatRemoteSessionOffset(offsetMs) {
|
|
|
2809
2782
|
return hours > 0 ? `${hours}:${minutes}:${seconds}` : `${minutes}:${seconds}`;
|
|
2810
2783
|
}
|
|
2811
2784
|
function RemoteSessionEventList({ events, activeEventId, onSelect, className }) {
|
|
2812
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { className:
|
|
2785
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "section", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex w-full flex-col gap-[var(--spacing-system-xxs)]", className), children: [
|
|
2813
2786
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h2", { className: "text-ods-text-secondary text-h5", children: "Session Events" }),
|
|
2814
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,
|
|
2815
|
-
|
|
2788
|
+
_chunkK7I3YYYUcjs.Button,
|
|
2816
2789
|
{
|
|
2817
2790
|
variant: "row",
|
|
2818
2791
|
type: "button",
|
|
@@ -2839,11 +2812,11 @@ function RemoteSessionTimelineMarkers({
|
|
|
2839
2812
|
className
|
|
2840
2813
|
}) {
|
|
2841
2814
|
if (durationMs <= 0) return null;
|
|
2842
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className:
|
|
2815
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "relative h-4 w-full", className), children: events.map((event) => {
|
|
2843
2816
|
const share = Math.min(1, Math.max(0, event.offsetMs / durationMs));
|
|
2844
2817
|
const label = `${event.title} at ${formatRemoteSessionOffset(event.offsetMs)}`;
|
|
2845
2818
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2846
|
-
|
|
2819
|
+
_chunkK7I3YYYUcjs.Button,
|
|
2847
2820
|
{
|
|
2848
2821
|
variant: "card",
|
|
2849
2822
|
type: "button",
|
|
@@ -2872,25 +2845,25 @@ var STATUS_TAG = {
|
|
|
2872
2845
|
function RemoteSessionStatusTag({ status, className }) {
|
|
2873
2846
|
const { label, variant } = STATUS_TAG[status];
|
|
2874
2847
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2875
|
-
|
|
2848
|
+
_chunk7VXMO4XJcjs.Tag,
|
|
2876
2849
|
{
|
|
2877
2850
|
label,
|
|
2878
2851
|
variant,
|
|
2879
2852
|
icon: status === "live" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, LiveDot, {}) : void 0,
|
|
2880
|
-
className:
|
|
2853
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0, "pointer-events-none shrink-0", className)
|
|
2881
2854
|
}
|
|
2882
2855
|
);
|
|
2883
2856
|
}
|
|
2884
2857
|
function RemoteSessionExpiry(props) {
|
|
2885
2858
|
const { className } = props;
|
|
2886
2859
|
if (props.state === "none") {
|
|
2887
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className:
|
|
2860
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "text-ods-text-primary text-h4", className), children: "-" });
|
|
2888
2861
|
}
|
|
2889
2862
|
if (props.state === "expired") {
|
|
2890
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className:
|
|
2863
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "text-ods-text-secondary text-h4", className), children: "Expired" });
|
|
2891
2864
|
}
|
|
2892
2865
|
if (props.state === "kept") {
|
|
2893
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
2866
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex min-w-0 flex-col", className), children: [
|
|
2894
2867
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "flex items-center gap-[var(--spacing-system-xxs)] text-ods-text-primary text-h4", children: [
|
|
2895
2868
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkMT45XX7Icjs.LockIcon, { size: 24, color: "currentColor", className: "shrink-0" }),
|
|
2896
2869
|
"Kept"
|
|
@@ -2903,7 +2876,7 @@ function RemoteSessionExpiry(props) {
|
|
|
2903
2876
|
] })
|
|
2904
2877
|
] });
|
|
2905
2878
|
}
|
|
2906
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className:
|
|
2879
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk6YZNUHXTcjs.cn.call(void 0, "flex min-w-0 flex-col", className), children: [
|
|
2907
2880
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: props.date }),
|
|
2908
2881
|
props.remaining && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: props.remaining })
|
|
2909
2882
|
] });
|
|
@@ -2914,7 +2887,7 @@ function RemoteSessionStorageAlert({ scope, capacity, className }) {
|
|
|
2914
2887
|
"div",
|
|
2915
2888
|
{
|
|
2916
2889
|
role: "alert",
|
|
2917
|
-
className:
|
|
2890
|
+
className: _chunk6YZNUHXTcjs.cn.call(void 0,
|
|
2918
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",
|
|
2919
2892
|
className
|
|
2920
2893
|
),
|