@flamingo-stack/openframe-frontend-core 0.0.803 → 0.0.805
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build/export-map.json +1 -1
- package/dist/{case-study-card-K6HYMHL6.cjs → case-study-card-MEWJNF4N.cjs} +5 -5
- package/dist/{chunk-MII4RDO4.cjs → chunk-2NVIGBJC.cjs} +80 -80
- package/dist/{chunk-6JVNUGN3.cjs → chunk-3EPG56RK.cjs} +8 -8
- package/dist/{chunk-UYGXJ5SQ.cjs → chunk-3WNCFZGN.cjs} +2 -2
- package/dist/{chunk-2JCY5KQL.cjs → chunk-4W77VLQV.cjs} +4 -4
- package/dist/{chunk-HVWMPUXK.cjs → chunk-55TGW6BF.cjs} +6 -6
- package/dist/{chunk-IYWX4GOG.cjs → chunk-66ZQ7LDR.cjs} +38 -35
- package/dist/{chunk-H4T3YHYH.cjs → chunk-6JRQ57DU.cjs} +585 -599
- package/dist/{chunk-XOFGPSNP.cjs → chunk-6UGNFMZB.cjs} +36 -36
- package/dist/{chunk-Y5XHMEBB.cjs → chunk-76NE67PK.cjs} +5 -5
- package/dist/{chunk-VKSO3UYU.cjs → chunk-AC5EBHAX.cjs} +28 -28
- package/dist/{chunk-OG4XH6C5.cjs → chunk-AZJYMTBS.cjs} +33 -33
- package/dist/{chunk-HEMZOHNB.cjs → chunk-BVSZTKI3.cjs} +34 -21
- package/dist/{chunk-TVAU56UU.cjs → chunk-F2VN3UUB.cjs} +473 -508
- package/dist/{chunk-TELXF5WD.cjs → chunk-FLW2VL5W.cjs} +16 -16
- package/dist/{chunk-FS4TVAE7.cjs → chunk-FQ4LYYBI.cjs} +52 -52
- package/dist/{chunk-VVLL37EM.cjs → chunk-GAHXURKJ.cjs} +6 -6
- package/dist/{chunk-2X3N6MSR.cjs → chunk-JLKGLPDC.cjs} +21 -21
- package/dist/{chunk-3NGJ7NPT.cjs → chunk-KVJKKVB3.cjs} +7 -7
- package/dist/{chunk-YKQGYAG5.cjs → chunk-LZIQXGAW.cjs} +91 -88
- package/dist/{chunk-T7B3FJY6.cjs → chunk-MEDSJCEX.cjs} +4 -4
- package/dist/{chunk-FFRFKWTZ.cjs → chunk-MHH7CHNI.cjs} +17 -14
- package/dist/{chunk-IE3CPPHJ.cjs → chunk-NBLQFJ4I.cjs} +100 -99
- package/dist/{chunk-KVL3QRFX.cjs → chunk-NXJ3O4WO.cjs} +15 -15
- package/dist/{chunk-YBTORXFY.cjs → chunk-PRCGRDHV.cjs} +40 -25
- package/dist/{chunk-JTDOBGKE.cjs → chunk-QPBP7FKI.cjs} +52 -52
- package/dist/{chunk-ZPVFFPQM.cjs → chunk-RIRIA3FO.cjs} +4 -4
- package/dist/{chunk-XR323UBY.cjs → chunk-STLJCAIZ.cjs} +6 -3
- package/dist/{chunk-6UKH22NQ.cjs → chunk-TGOJHOQR.cjs} +2 -1
- package/dist/{chunk-FAUVDMH4.cjs → chunk-THY2XVGY.cjs} +198 -164
- package/dist/{chunk-6GCXQIUU.cjs → chunk-TT64NRFU.cjs} +4 -4
- package/dist/{chunk-CACULEQS.cjs → chunk-TTERV57X.cjs} +4 -4
- package/dist/{chunk-NNQXP2ZM.cjs → chunk-UCBR27JM.cjs} +13 -13
- package/dist/{chunk-KVGWOJCX.cjs → chunk-V3T5MDJV.cjs} +2 -2
- package/dist/{chunk-5RGGUQ4Y.cjs → chunk-VXXOUM2K.cjs} +67 -1
- package/dist/{chunk-I4BODSPV.cjs → chunk-WSKMV2QS.cjs} +3 -3
- package/dist/{chunk-MBZIARIL.cjs → chunk-XXARXK62.cjs} +26 -26
- package/dist/{chunk-HATRCNXJ.cjs → chunk-XYZBN6D7.cjs} +2 -2
- package/dist/{chunk-QFBRQ22U.cjs → chunk-Z6Y5X5SF.cjs} +41 -41
- package/dist/{cloud-tenants-GKCZSLEV.cjs → cloud-tenants-LRXMISV4.cjs} +19 -19
- package/dist/components/agent-mark.d.ts.map +1 -1
- package/dist/components/agent-mark.js +2 -2
- package/dist/components/case-studies/index.cjs +35 -35
- package/dist/components/chat/chat-message-row.d.ts.map +1 -1
- package/dist/components/chat/chat-message-row.js +3 -2
- package/dist/components/chat/entity-cards/admin-content-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/admin-content-card.js +2 -1
- package/dist/components/chat/entity-cards/blog-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/blog-card.js +6 -6
- package/dist/components/chat/entity-cards/blog-image-placeholder.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/blog-image-placeholder.js +2 -1
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/case-study-card.js +10 -9
- package/dist/components/chat/entity-cards/customer-interview-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/customer-interview-card.js +8 -7
- package/dist/components/chat/entity-cards/dispatch.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/dispatch.js +12 -1
- package/dist/components/chat/entity-cards/employee-entry-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/employee-entry-card.js +3 -2
- package/dist/components/chat/entity-cards/entity-portrait-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/entity-portrait-card.js +7 -5
- package/dist/components/chat/entity-cards/investor-update-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/investor-update-card.js +2 -1
- package/dist/components/chat/entity-cards/onboarding-guide-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/onboarding-guide-card.js +13 -2
- package/dist/components/chat/entity-cards/program-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/program-card.js +17 -5
- package/dist/components/chat/entity-cards/roadmap-card.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/roadmap-card.js +5 -4
- package/dist/components/chat/index.cjs +15 -15
- package/dist/components/chat/mingo-info-card.d.ts.map +1 -1
- package/dist/components/chat/mingo-info-card.js +3 -2
- package/dist/components/contact/index.cjs +20 -20
- package/dist/components/docs/index.cjs +23 -23
- package/dist/components/embeds/index.cjs +20 -20
- package/dist/components/embeds/markdown-image.d.ts.map +1 -1
- package/dist/components/embeds/markdown-image.js +2 -1
- package/dist/components/embeds/og-link-preview.d.ts.map +1 -1
- package/dist/components/embeds/og-link-preview.js +17 -6
- package/dist/components/embeds/twitter-embed-client.d.ts.map +1 -1
- package/dist/components/embeds/twitter-embed-client.js +3 -2
- package/dist/components/faq/index.cjs +21 -21
- package/dist/components/features/index.cjs +19 -19
- package/dist/components/features/media-gallery-manager.d.ts.map +1 -1
- package/dist/components/features/media-gallery-manager.js +2 -1
- package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/notification-tile.js +3 -2
- package/dist/components/features/parallax-image-showcase.d.ts.map +1 -1
- package/dist/components/features/parallax-image-showcase.js +9 -35
- package/dist/components/features/select-button.d.ts.map +1 -1
- package/dist/components/features/select-button.js +3 -2
- package/dist/components/features/video-hover-preview.d.ts +1 -1
- package/dist/components/features/video-hover-preview.d.ts.map +1 -1
- package/dist/components/features/video-hover-preview.js +2 -1
- package/dist/components/features/video.d.ts.map +1 -1
- package/dist/components/features/video.js +13 -1
- package/dist/components/features/walkthrough-video.d.ts.map +1 -1
- package/dist/components/features/walkthrough-video.js +3 -3
- package/dist/components/help-center-pages/index.cjs +121 -121
- package/dist/components/hero-image-uploader.d.ts.map +1 -1
- package/dist/components/hero-image-uploader.js +12 -1
- package/dist/components/icon-display.d.ts.map +1 -1
- package/dist/components/icon-display.js +2 -1
- package/dist/components/index.cjs +137 -91
- package/dist/components/media-carousel.d.ts.map +1 -1
- package/dist/components/media-carousel.js +2 -1
- package/dist/components/meeting-scheduler/index.cjs +85 -85
- package/dist/components/navigation/index.cjs +22 -22
- package/dist/components/onboarding-guides/index.cjs +22 -22
- package/dist/components/platform/ScriptInfoSection.d.ts.map +1 -1
- package/dist/components/platform/ScriptInfoSection.js +12 -1
- package/dist/components/product-demo/index.cjs +30 -30
- package/dist/components/related-content/index.cjs +11 -11
- package/dist/components/shared/media-gallery-strip.d.ts.map +1 -1
- package/dist/components/shared/media-gallery-strip.js +3 -2
- package/dist/components/shared/product-release/product-release-card.d.ts.map +1 -1
- package/dist/components/shared/product-release/product-release-card.js +13 -2
- package/dist/components/tickets/index.cjs +26 -26
- package/dist/components/ui/avatar-stack.d.ts.map +1 -1
- package/dist/components/ui/avatar-stack.js +4 -4
- package/dist/components/ui/entity-image.d.ts.map +1 -1
- package/dist/components/ui/entity-image.js +3 -2
- package/dist/components/ui/image-gallery-modal.d.ts.map +1 -1
- package/dist/components/ui/image-gallery-modal.js +2 -1
- package/dist/components/ui/image-uploader.d.ts.map +1 -1
- package/dist/components/ui/image-uploader.js +2 -1
- package/dist/components/ui/index.cjs +37 -19
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/markdown/base-components.d.ts.map +1 -1
- package/dist/components/ui/markdown/base-components.js +2 -1
- package/dist/components/ui/photo-wall.d.ts +7 -3
- package/dist/components/ui/photo-wall.d.ts.map +1 -1
- package/dist/components/ui/photo-wall.js +3 -4
- package/dist/components/ui/square-avatar.d.ts +4 -1
- package/dist/components/ui/square-avatar.d.ts.map +1 -1
- package/dist/components/ui/square-avatar.js +2 -1
- package/dist/components/user-summary-stub.d.ts +1 -1
- package/dist/components/user-summary-stub.d.ts.map +1 -1
- package/dist/components/user-summary-stub.js +16 -6
- package/dist/components/vendor-display-button.d.ts.map +1 -1
- package/dist/components/vendor-display-button.js +13 -3
- package/dist/components/vendor-icon.d.ts +7 -4
- package/dist/components/vendor-icon.d.ts.map +1 -1
- package/dist/components/vendor-icon.js +22 -71
- package/dist/{devices-XIXLFYRJ.cjs → devices-CETR72XY.cjs} +20 -20
- package/dist/{embeddable-chat-SVDMLAER.cjs → embeddable-chat-GHBCX2BY.cjs} +84 -84
- package/dist/hooks/index.cjs +6 -6
- package/dist/hooks/ui/use-image-edge-color.d.ts.map +1 -1
- package/dist/hooks/ui/use-image-edge-color.js +4 -3
- package/dist/index.cjs +43 -25
- package/dist/{knowledge-3DKG5QG2.cjs → knowledge-A2MWEF23.cjs} +20 -20
- package/dist/{logs-RIU2TTRZ.cjs → logs-47JODA6C.cjs} +27 -27
- package/dist/{policies-F2ZB2J4L.cjs → policies-OPIDR6XF.cjs} +23 -23
- package/dist/{remote-session-GBMM5UPQ.cjs → remote-session-IQTPEG63.cjs} +8 -8
- package/dist/{scripts-XX5LMCRA.cjs → scripts-4MQGJWFP.cjs} +26 -26
- package/dist/{software-update-VYBM7SC6.cjs → software-update-MQIGPBZ6.cjs} +23 -23
- package/dist/styles/image-sizes.cjs +68 -0
- package/dist/styles/image-sizes.d.ts +110 -0
- package/dist/styles/image-sizes.d.ts.map +1 -0
- package/dist/styles/image-sizes.js +66 -0
- package/dist/{tickets-board-5QIIA24E.cjs → tickets-board-QF5JNSH2.cjs} +11 -11
- package/eslint-config/base.js +12 -0
- package/eslint-config/image-sizes.js +51 -0
- package/package.json +8 -2
- package/src/components/agent-mark.tsx +3 -4
- package/src/components/chat/chat-message-row.tsx +3 -2
- package/src/components/chat/entity-cards/admin-content-card.tsx +2 -1
- package/src/components/chat/entity-cards/blog-card.tsx +6 -6
- package/src/components/chat/entity-cards/blog-image-placeholder.tsx +2 -1
- package/src/components/chat/entity-cards/case-study-card.tsx +10 -9
- package/src/components/chat/entity-cards/customer-interview-card.tsx +8 -7
- package/src/components/chat/entity-cards/dispatch.tsx +9 -1
- package/src/components/chat/entity-cards/employee-entry-card.tsx +3 -2
- package/src/components/chat/entity-cards/entity-portrait-card.tsx +7 -5
- package/src/components/chat/entity-cards/investor-update-card.tsx +2 -1
- package/src/components/chat/entity-cards/onboarding-guide-card.tsx +10 -2
- package/src/components/chat/entity-cards/program-card.tsx +14 -5
- package/src/components/chat/entity-cards/roadmap-card.tsx +5 -4
- package/src/components/chat/mingo-info-card.tsx +3 -2
- package/src/components/embeds/markdown-image.tsx +2 -1
- package/src/components/embeds/og-link-preview.tsx +14 -6
- package/src/components/embeds/twitter-embed-client.tsx +3 -2
- package/src/components/features/media-gallery-manager.tsx +2 -2
- package/src/components/features/notifications/notification-tile.tsx +3 -2
- package/src/components/features/parallax-image-showcase.tsx +9 -26
- package/src/components/features/select-button.tsx +3 -2
- package/src/components/features/video-hover-preview.tsx +3 -2
- package/src/components/features/video.tsx +10 -1
- package/src/components/features/walkthrough-video.tsx +7 -10
- package/src/components/hero-image-uploader.tsx +9 -1
- package/src/components/icon-display.tsx +2 -1
- package/src/components/media-carousel.tsx +2 -1
- package/src/components/platform/ScriptInfoSection.tsx +9 -1
- package/src/components/shared/media-gallery-strip.tsx +4 -2
- package/src/components/shared/product-release/product-release-card.tsx +10 -2
- package/src/components/ui/avatar-stack.tsx +6 -6
- package/src/components/ui/entity-image.tsx +3 -2
- package/src/components/ui/image-gallery-modal.tsx +2 -1
- package/src/components/ui/image-uploader.tsx +2 -1
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/markdown/base-components.tsx +2 -1
- package/src/components/ui/photo-wall.tsx +10 -14
- package/src/components/ui/square-avatar.tsx +6 -3
- package/src/components/user-summary-stub.tsx +14 -7
- package/src/components/vendor-display-button.tsx +10 -3
- package/src/components/vendor-icon.tsx +31 -97
- package/src/hooks/ui/use-image-edge-color.ts +8 -4
- package/src/styles/image-sizes.ts +114 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFLW2VL5Wcjs = require('./chunk-FLW2VL5W.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -36,7 +36,7 @@ var _chunkNG3RKTQUcjs = require('./chunk-NG3RKTQU.cjs');
|
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunk66ZQ7LDRcjs = require('./chunk-66ZQ7LDR.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
@@ -52,7 +52,7 @@ var _chunkDEY6XXGOcjs = require('./chunk-DEY6XXGO.cjs');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var _chunkAZJYMTBScjs = require('./chunk-AZJYMTBS.cjs');
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
@@ -107,7 +107,7 @@ var _chunkYR74H7Z3cjs = require('./chunk-YR74H7Z3.cjs');
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _chunkNBLQFJ4Icjs = require('./chunk-NBLQFJ4I.cjs');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
@@ -127,7 +127,7 @@ var _chunkIE3CPPHJcjs = require('./chunk-IE3CPPHJ.cjs');
|
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var
|
|
130
|
+
var _chunkF2VN3UUBcjs = require('./chunk-F2VN3UUB.cjs');
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
|
|
@@ -141,7 +141,7 @@ var _chunkTVAU56UUcjs = require('./chunk-TVAU56UU.cjs');
|
|
|
141
141
|
|
|
142
142
|
|
|
143
143
|
|
|
144
|
-
var
|
|
144
|
+
var _chunkJLKGLPDCcjs = require('./chunk-JLKGLPDC.cjs');
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
@@ -156,7 +156,7 @@ var _chunk2X3N6MSRcjs = require('./chunk-2X3N6MSR.cjs');
|
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
|
|
159
|
-
var
|
|
159
|
+
var _chunkKVJKKVB3cjs = require('./chunk-KVJKKVB3.cjs');
|
|
160
160
|
|
|
161
161
|
|
|
162
162
|
|
|
@@ -455,7 +455,7 @@ var _chunkXIBCMGBWcjs = require('./chunk-XIBCMGBW.cjs');
|
|
|
455
455
|
|
|
456
456
|
|
|
457
457
|
|
|
458
|
-
var
|
|
458
|
+
var _chunkTT64NRFUcjs = require('./chunk-TT64NRFU.cjs');
|
|
459
459
|
|
|
460
460
|
|
|
461
461
|
|
|
@@ -463,7 +463,7 @@ var _chunk6GCXQIUUcjs = require('./chunk-6GCXQIUU.cjs');
|
|
|
463
463
|
var _chunkOJZBZH56cjs = require('./chunk-OJZBZH56.cjs');
|
|
464
464
|
|
|
465
465
|
|
|
466
|
-
var
|
|
466
|
+
var _chunkXYZBN6D7cjs = require('./chunk-XYZBN6D7.cjs');
|
|
467
467
|
|
|
468
468
|
|
|
469
469
|
var _chunkJKX2C3I2cjs = require('./chunk-JKX2C3I2.cjs');
|
|
@@ -486,7 +486,7 @@ var _chunkSKI6NKOEcjs = require('./chunk-SKI6NKOE.cjs');
|
|
|
486
486
|
|
|
487
487
|
|
|
488
488
|
|
|
489
|
-
var
|
|
489
|
+
var _chunkTHY2XVGYcjs = require('./chunk-THY2XVGY.cjs');
|
|
490
490
|
|
|
491
491
|
|
|
492
492
|
|
|
@@ -495,7 +495,7 @@ var _chunkFAUVDMH4cjs = require('./chunk-FAUVDMH4.cjs');
|
|
|
495
495
|
|
|
496
496
|
|
|
497
497
|
|
|
498
|
-
var
|
|
498
|
+
var _chunkPRCGRDHVcjs = require('./chunk-PRCGRDHV.cjs');
|
|
499
499
|
|
|
500
500
|
|
|
501
501
|
|
|
@@ -503,14 +503,14 @@ var _chunkYBTORXFYcjs = require('./chunk-YBTORXFY.cjs');
|
|
|
503
503
|
|
|
504
504
|
|
|
505
505
|
|
|
506
|
-
var
|
|
506
|
+
var _chunk4W77VLQVcjs = require('./chunk-4W77VLQV.cjs');
|
|
507
507
|
|
|
508
508
|
|
|
509
509
|
|
|
510
510
|
var _chunkP4B6PVSGcjs = require('./chunk-P4B6PVSG.cjs');
|
|
511
511
|
|
|
512
512
|
|
|
513
|
-
var
|
|
513
|
+
var _chunkGAHXURKJcjs = require('./chunk-GAHXURKJ.cjs');
|
|
514
514
|
|
|
515
515
|
|
|
516
516
|
|
|
@@ -522,14 +522,14 @@ var _chunkVVLL37EMcjs = require('./chunk-VVLL37EM.cjs');
|
|
|
522
522
|
|
|
523
523
|
|
|
524
524
|
|
|
525
|
-
var
|
|
525
|
+
var _chunkTGOJHOQRcjs = require('./chunk-TGOJHOQR.cjs');
|
|
526
526
|
|
|
527
527
|
|
|
528
528
|
var _chunkRUHKTWGBcjs = require('./chunk-RUHKTWGB.cjs');
|
|
529
529
|
|
|
530
530
|
|
|
531
531
|
|
|
532
|
-
var
|
|
532
|
+
var _chunkSTLJCAIZcjs = require('./chunk-STLJCAIZ.cjs');
|
|
533
533
|
|
|
534
534
|
|
|
535
535
|
|
|
@@ -553,7 +553,12 @@ var _chunkSZHDXXMKcjs = require('./chunk-SZHDXXMK.cjs');
|
|
|
553
553
|
|
|
554
554
|
|
|
555
555
|
|
|
556
|
-
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
var _chunkVXXOUM2Kcjs = require('./chunk-VXXOUM2K.cjs');
|
|
557
562
|
|
|
558
563
|
|
|
559
564
|
|
|
@@ -598,6 +603,7 @@ var _chunkLKQ33CMYcjs = require('./chunk-LKQ33CMY.cjs');
|
|
|
598
603
|
|
|
599
604
|
|
|
600
605
|
|
|
606
|
+
|
|
601
607
|
var _chunk4WIJI4AKcjs = require('./chunk-4WIJI4AK.cjs');
|
|
602
608
|
|
|
603
609
|
|
|
@@ -695,7 +701,7 @@ function ThemeProvider({ children, ...overrides }) {
|
|
|
695
701
|
var useTheme = _nextthemes.useTheme;
|
|
696
702
|
function useThemeToggle() {
|
|
697
703
|
const { resolvedTheme, theme, setTheme } = useTheme();
|
|
698
|
-
const mounted =
|
|
704
|
+
const mounted = _chunkF2VN3UUBcjs.useIsHydrated.call(void 0, );
|
|
699
705
|
const active = mounted ? resolvedTheme === "light" || theme === "light" ? "light" : "dark" : DEFAULT_THEME;
|
|
700
706
|
const setOdsTheme = _react.useCallback.call(void 0, (next) => setTheme(next), [setTheme]);
|
|
701
707
|
const toggle = _react.useCallback.call(void 0, () => setTheme(active === "dark" ? "light" : "dark"), [active, setTheme]);
|
|
@@ -904,7 +910,7 @@ function TimezoneSelect({
|
|
|
904
910
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
905
911
|
const options = _react.useMemo.call(void 0, () => timezoneOptions(value), [value]);
|
|
906
912
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
907
|
-
|
|
913
|
+
_chunk66ZQ7LDRcjs.Autocomplete,
|
|
908
914
|
{
|
|
909
915
|
className,
|
|
910
916
|
fieldLoading: loading,
|
|
@@ -1101,7 +1107,7 @@ var _reactpopover = require('@radix-ui/react-popover'); var Popover = _interopRe
|
|
|
1101
1107
|
|
|
1102
1108
|
var _reactdaypicker = require('react-day-picker');
|
|
1103
1109
|
|
|
1104
|
-
var defaultFormatDate = (date) =>
|
|
1110
|
+
var defaultFormatDate = (date) => _chunkTGOJHOQRcjs.formatDateWithTimezone.call(void 0, date, _chunkTGOJHOQRcjs.VIEWER_TIMEZONE, "numeric", { viewerLocale: true });
|
|
1105
1111
|
var formatDateRange = (range, formatFn) => {
|
|
1106
1112
|
if (!_optionalChain([range, 'optionalAccess', _5 => _5.from])) return "";
|
|
1107
1113
|
if (!range.to) return formatFn(range.from);
|
|
@@ -1302,7 +1308,7 @@ function DatePickerCalendar({
|
|
|
1302
1308
|
};
|
|
1303
1309
|
const handlePreviousMonth = () => shiftMonth(-1);
|
|
1304
1310
|
const handleNextMonth = () => shiftMonth(1);
|
|
1305
|
-
const formatMonthYear = (date) =>
|
|
1311
|
+
const formatMonthYear = (date) => _chunkTGOJHOQRcjs.formatDateWithTimezone.call(void 0, date, _chunkTGOJHOQRcjs.VIEWER_TIMEZONE, "monthYear", { viewerLocale: true });
|
|
1306
1312
|
const getSecondMonth = (date) => {
|
|
1307
1313
|
const next = new Date(date);
|
|
1308
1314
|
next.setMonth(next.getMonth() + 1);
|
|
@@ -1719,20 +1725,20 @@ function DatePickerInput(props) {
|
|
|
1719
1725
|
) })
|
|
1720
1726
|
] }),
|
|
1721
1727
|
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1", children: [
|
|
1722
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1723
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1724
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1728
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.Select, { value: hour, onValueChange: handleHourChange, disabled, children: [
|
|
1729
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, { placeholder: "HH" }) }),
|
|
1730
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: hourOptions.map((h) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: h, children: h }, h)) })
|
|
1725
1731
|
] }),
|
|
1726
1732
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h4", children: ":" }),
|
|
1727
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1728
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1729
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1733
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.Select, { value: minute, onValueChange: handleMinuteChange, disabled, children: [
|
|
1734
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, { placeholder: "MM" }) }),
|
|
1735
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: minuteOptions.map((m) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: m, children: m }, m)) })
|
|
1730
1736
|
] }),
|
|
1731
|
-
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1733
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1734
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1735
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1737
|
+
!use24HourFormat && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.Select, { value: period, onValueChange: (val) => handlePeriodChange(val), disabled, children: [
|
|
1738
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "w-[80px]"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, { placeholder: "AM" }) }),
|
|
1739
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: [
|
|
1740
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "AM", children: "AM" }),
|
|
1741
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "PM", children: "PM" })
|
|
1736
1742
|
] })
|
|
1737
1743
|
] })
|
|
1738
1744
|
] })
|
|
@@ -1873,9 +1879,9 @@ function DatePickerInputSimple(props) {
|
|
|
1873
1879
|
}
|
|
1874
1880
|
) })
|
|
1875
1881
|
] }),
|
|
1876
|
-
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1877
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1878
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1882
|
+
showTime && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.Select, { value: timeValue, onValueChange: handleTimeChange, disabled, children: [
|
|
1883
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className: _chunk7JWFMAQBcjs.cn.call(void 0, timeSelectTriggerStyles, "flex-1"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, { placeholder: "Select time", children: timeDisplayLabel || "Select time" }) }),
|
|
1884
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
1879
1885
|
] })
|
|
1880
1886
|
] });
|
|
1881
1887
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTTZEDDR5cjs.FieldWrapper, { label, error, errorSlot: "error" in props, className, children: content });
|
|
@@ -1894,14 +1900,14 @@ function DateFilterPanel({
|
|
|
1894
1900
|
className
|
|
1895
1901
|
}) {
|
|
1896
1902
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex flex-col gap-4", className), children: [
|
|
1897
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1898
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1903
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.Select, { value: sort, onValueChange: (value) => onSortChange(value), children: [
|
|
1904
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className: "gap-2", "aria-label": "Sort direction", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
1899
1905
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ArrowUpDown, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
1900
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1906
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, {}) })
|
|
1901
1907
|
] }) }),
|
|
1902
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
1903
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1904
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
1908
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: [
|
|
1909
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "asc", children: ascLabel }),
|
|
1910
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "desc", children: descLabel })
|
|
1905
1911
|
] })
|
|
1906
1912
|
] }),
|
|
1907
1913
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -2181,7 +2187,7 @@ function Value({ value, depth }) {
|
|
|
2181
2187
|
}
|
|
2182
2188
|
if (typeof value === "string") {
|
|
2183
2189
|
if (ISO_DATE.test(value)) {
|
|
2184
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children:
|
|
2190
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { title: value, className: "text-ods-text-secondary", children: _chunkJLKGLPDCcjs.formatRelativeTime.call(void 0, value) });
|
|
2185
2191
|
}
|
|
2186
2192
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "whitespace-pre-wrap text-ods-text-primary", children: value });
|
|
2187
2193
|
}
|
|
@@ -2428,7 +2434,7 @@ function InfoCardValueRow({
|
|
|
2428
2434
|
copyAriaLabel,
|
|
2429
2435
|
loading: loadingProp
|
|
2430
2436
|
}) {
|
|
2431
|
-
const { copy, copied } =
|
|
2437
|
+
const { copy, copied } = _chunkAZJYMTBScjs.useCopyToClipboard.call(void 0, );
|
|
2432
2438
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
2433
2439
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: VALUE_ROW_CLASS, children: [
|
|
2434
2440
|
loading && label === void 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-20" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: ROW_LABEL_CLASS, children: showLabel ? _nullishCoalesce(label, () => ( "")) : "" }),
|
|
@@ -2678,7 +2684,7 @@ function CompactAssigneeDropdown({
|
|
|
2678
2684
|
value: o.value,
|
|
2679
2685
|
label: o.label,
|
|
2680
2686
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2681
|
-
|
|
2687
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
2682
2688
|
{
|
|
2683
2689
|
src: o.imageUrl,
|
|
2684
2690
|
alt: o.label,
|
|
@@ -2710,8 +2716,8 @@ function CompactAssigneeDropdown({
|
|
|
2710
2716
|
onClick: handleTriggerClick,
|
|
2711
2717
|
"aria-label": "Change assignee",
|
|
2712
2718
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "w-auto shrink-0", className),
|
|
2713
|
-
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2714
|
-
|
|
2719
|
+
children: currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLW2VL5Wcjs.DeletedUserAvatar, { size: "sm", accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}` }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2720
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
2715
2721
|
{
|
|
2716
2722
|
src: currentAssignee.avatarSrc,
|
|
2717
2723
|
alt: currentAssignee.name,
|
|
@@ -2756,7 +2762,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2756
2762
|
const opt = option;
|
|
2757
2763
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-sf)]", children: [
|
|
2758
2764
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2759
|
-
|
|
2765
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
2760
2766
|
{
|
|
2761
2767
|
src: opt.imageUrl,
|
|
2762
2768
|
alt: opt.label,
|
|
@@ -2772,7 +2778,7 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2772
2778
|
if (isEditing) {
|
|
2773
2779
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "min-w-0", className), children: [
|
|
2774
2780
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2775
|
-
|
|
2781
|
+
_chunk66ZQ7LDRcjs.Autocomplete,
|
|
2776
2782
|
{
|
|
2777
2783
|
options,
|
|
2778
2784
|
value: _nullishCoalesce(_optionalChain([currentAssignee, 'optionalAccess', _43 => _43.id]), () => ( null)),
|
|
@@ -2784,14 +2790,14 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2784
2790
|
loading: isLoading,
|
|
2785
2791
|
showChevron: false,
|
|
2786
2792
|
startAdornment: hasAssignee ? currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2787
|
-
|
|
2793
|
+
_chunkFLW2VL5Wcjs.DeletedUserAvatar,
|
|
2788
2794
|
{
|
|
2789
2795
|
size: "sm",
|
|
2790
2796
|
className: "h-6 w-6",
|
|
2791
2797
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
2792
2798
|
}
|
|
2793
2799
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2794
|
-
|
|
2800
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
2795
2801
|
{
|
|
2796
2802
|
src: currentAssignee.avatarSrc,
|
|
2797
2803
|
alt: currentAssignee.name,
|
|
@@ -2810,13 +2816,13 @@ function DefaultAssigneeDropdown({ currentAssignee, options, isLoading, onAssign
|
|
|
2810
2816
|
if (hasAssignee) {
|
|
2811
2817
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", className), children: [
|
|
2812
2818
|
currentAssignee.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2813
|
-
|
|
2819
|
+
_chunkFLW2VL5Wcjs.DeletedUserAvatar,
|
|
2814
2820
|
{
|
|
2815
2821
|
size: "md",
|
|
2816
2822
|
accessibleLabel: `Deleted user: ${currentAssignee.name || currentAssignee.id}`
|
|
2817
2823
|
}
|
|
2818
2824
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2819
|
-
|
|
2825
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
2820
2826
|
{
|
|
2821
2827
|
src: currentAssignee.avatarSrc,
|
|
2822
2828
|
alt: currentAssignee.name,
|
|
@@ -2901,7 +2907,7 @@ function TextValue({ value }) {
|
|
|
2901
2907
|
}
|
|
2902
2908
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", title: text, children: text }),
|
|
2903
2909
|
hasImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2904
|
-
|
|
2910
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
2905
2911
|
{
|
|
2906
2912
|
src: imageSrc,
|
|
2907
2913
|
alt: text,
|
|
@@ -2921,7 +2927,7 @@ function RowValue({ value }) {
|
|
|
2921
2927
|
}
|
|
2922
2928
|
case "status": {
|
|
2923
2929
|
const { type: _type, ...props } = value;
|
|
2924
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2930
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.TicketStatusTag, { ...props });
|
|
2925
2931
|
}
|
|
2926
2932
|
case "custom":
|
|
2927
2933
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CustomValue, { content: value.content });
|
|
@@ -3021,7 +3027,7 @@ function MediaTypeSelector({
|
|
|
3021
3027
|
// changed) and cost an extra render pass on every change to say what the
|
|
3022
3028
|
// prop already said.
|
|
3023
3029
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
3024
|
-
|
|
3030
|
+
_chunk66ZQ7LDRcjs.Select,
|
|
3025
3031
|
{
|
|
3026
3032
|
value: value || void 0,
|
|
3027
3033
|
onValueChange: (next) => {
|
|
@@ -3031,8 +3037,8 @@ function MediaTypeSelector({
|
|
|
3031
3037
|
disabled,
|
|
3032
3038
|
defaultValue: value,
|
|
3033
3039
|
children: [
|
|
3034
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3035
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3040
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, { placeholder }) }),
|
|
3041
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: mediaTypeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: option.value, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
3036
3042
|
option.icon,
|
|
3037
3043
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: option.label })
|
|
3038
3044
|
] }) }, option.value)) })
|
|
@@ -3894,7 +3900,7 @@ function TagsManager({
|
|
|
3894
3900
|
}
|
|
3895
3901
|
),
|
|
3896
3902
|
selectedTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3897
|
-
|
|
3903
|
+
_chunkTGOJHOQRcjs.Tag,
|
|
3898
3904
|
{
|
|
3899
3905
|
label: tag.name,
|
|
3900
3906
|
variant: "outline",
|
|
@@ -4458,10 +4464,10 @@ function useConfirm() {
|
|
|
4458
4464
|
},
|
|
4459
4465
|
[]
|
|
4460
4466
|
);
|
|
4461
|
-
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4462
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4463
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4464
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4467
|
+
const dialog = pending ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.Modal, { isOpen: open, onClose: () => decide(false), children: [
|
|
4468
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalTitle, { children: pending.title }) }),
|
|
4469
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalContent, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: pending.body }) }),
|
|
4470
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.ModalFooter, { children: [
|
|
4465
4471
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", onClick: () => decide(false), children: "Cancel" }),
|
|
4466
4472
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "destructive", onClick: () => decide(true), children: "Confirm" })
|
|
4467
4473
|
] })
|
|
@@ -4539,7 +4545,7 @@ function AdminFormDrawer({
|
|
|
4539
4545
|
"form",
|
|
4540
4546
|
{
|
|
4541
4547
|
id: formId,
|
|
4542
|
-
...
|
|
4548
|
+
..._chunkNBLQFJ4Icjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4543
4549
|
className: "flex flex-col gap-[var(--spacing-system-lf)]",
|
|
4544
4550
|
onSubmit: (e) => {
|
|
4545
4551
|
e.preventDefault();
|
|
@@ -4637,16 +4643,16 @@ function AdminFormModal({
|
|
|
4637
4643
|
body: "Your edits have not been saved. Close and discard them?"
|
|
4638
4644
|
});
|
|
4639
4645
|
if (!isOpen) return null;
|
|
4640
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4641
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4642
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4646
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.Modal, { isOpen: true, onClose: guardedClose, size: effectiveSize, children: [
|
|
4647
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.ModalHeader, { children: [
|
|
4648
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalTitle, { children: title }),
|
|
4643
4649
|
subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-ods-text-secondary text-h6", children: subtitle })
|
|
4644
4650
|
] }),
|
|
4645
4651
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4646
4652
|
"form",
|
|
4647
4653
|
{
|
|
4648
4654
|
id: formId,
|
|
4649
|
-
...
|
|
4655
|
+
..._chunkNBLQFJ4Icjs.HUBSPOT_DO_NOT_COLLECT_FORM_PROPS,
|
|
4650
4656
|
className: "flex min-h-0 flex-1 flex-col",
|
|
4651
4657
|
onSubmit: (e) => {
|
|
4652
4658
|
e.preventDefault();
|
|
@@ -4664,7 +4670,7 @@ function AdminFormModal({
|
|
|
4664
4670
|
// a shrink-to-fit flex item pinned to the left of a 1400px panel).
|
|
4665
4671
|
// The placeholder owns its own layout and mirrors the column count so
|
|
4666
4672
|
// the modal doesn't visibly re-flow when the entity lands.
|
|
4667
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4673
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalContent, { children: loadingContent ? (
|
|
4668
4674
|
// The one announcement: a `loadingContent` with a region of its own takes `region={false}`.
|
|
4669
4675
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading", children: loadingContent })
|
|
4670
4676
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -4685,12 +4691,12 @@ function AdminFormModal({
|
|
|
4685
4691
|
] }, i)) }, col))
|
|
4686
4692
|
}
|
|
4687
4693
|
) })
|
|
4688
|
-
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4694
|
+
) : twoColumn ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalTwoColumn, { left: leftColumn, right: rightColumn }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalContent, { className: contentClassName, children }),
|
|
4689
4695
|
error && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { role: "alert", className: "shrink-0 text-ods-error text-h6", children: error })
|
|
4690
4696
|
]
|
|
4691
4697
|
}
|
|
4692
4698
|
),
|
|
4693
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
4699
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalFooter, { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full items-center justify-between gap-[var(--spacing-system-xsf)]", children: [
|
|
4694
4700
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: footerExtras }),
|
|
4695
4701
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
4696
4702
|
footerStatus,
|
|
@@ -5429,7 +5435,7 @@ var TabBar = _react.memo.call(void 0, function TabBarImpl({
|
|
|
5429
5435
|
// as tall as its neighbours at every breakpoint. No hover shade:
|
|
5430
5436
|
// the tab is the target, and the cursor passes through to it.
|
|
5431
5437
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
5432
|
-
|
|
5438
|
+
_chunkTGOJHOQRcjs.Tag,
|
|
5433
5439
|
{
|
|
5434
5440
|
as: "span",
|
|
5435
5441
|
"aria-hidden": true,
|
|
@@ -6047,7 +6053,7 @@ function EmbedViewerFrame({
|
|
|
6047
6053
|
const controllerRef = _react.useRef.call(void 0, null);
|
|
6048
6054
|
_react.useEffect.call(void 0, () => {
|
|
6049
6055
|
if (!fullscreenControl) return void 0;
|
|
6050
|
-
const controller = new (0,
|
|
6056
|
+
const controller = new (0, _chunkNBLQFJ4Icjs.FullscreenSwitchController)({
|
|
6051
6057
|
target: () => frameRef.current,
|
|
6052
6058
|
onFullscreenChange: setIsFullscreen
|
|
6053
6059
|
});
|
|
@@ -6141,9 +6147,9 @@ var KIND_HEADING = {
|
|
|
6141
6147
|
design: "Claude Design"
|
|
6142
6148
|
};
|
|
6143
6149
|
function ClaudeEmbed({ url, kind = "artifact", title, height, loading = "lazy" }) {
|
|
6144
|
-
const { src: mirrorSrc, status } =
|
|
6150
|
+
const { src: mirrorSrc, status } = _chunkAZJYMTBScjs.useClaudeMirrorSrc.call(void 0, url);
|
|
6145
6151
|
const isProbing = status === "probing";
|
|
6146
|
-
const embedUrl = isProbing ? null : _nullishCoalesce(mirrorSrc, () => (
|
|
6152
|
+
const embedUrl = isProbing ? null : _nullishCoalesce(mirrorSrc, () => ( _chunkTT64NRFUcjs.toClaudeEmbedUrl.call(void 0, url)));
|
|
6147
6153
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6148
6154
|
EmbedViewerFrame,
|
|
6149
6155
|
{
|
|
@@ -6218,12 +6224,12 @@ function SlidesViewToggle({ view, onChange }) {
|
|
|
6218
6224
|
}
|
|
6219
6225
|
function FigmaEmbed({ url, title, height, loading = "lazy" }) {
|
|
6220
6226
|
const [view, setView] = _react.useState.call(void 0, "present");
|
|
6221
|
-
const isSlides = url ?
|
|
6222
|
-
const embedSrc = url ?
|
|
6227
|
+
const isSlides = url ? _chunkTT64NRFUcjs.isFigmaSlidesUrl.call(void 0, url) : false;
|
|
6228
|
+
const embedSrc = url ? _chunkTT64NRFUcjs.toFigmaEmbedUrl.call(void 0, url, { slidesView: view }) : null;
|
|
6223
6229
|
const originalUrl = (() => {
|
|
6224
6230
|
if (!url) return null;
|
|
6225
6231
|
try {
|
|
6226
|
-
const parsed = new URL(
|
|
6232
|
+
const parsed = new URL(_chunkTT64NRFUcjs.toFigmaOriginalUrl.call(void 0, url));
|
|
6227
6233
|
const host = parsed.hostname.toLowerCase();
|
|
6228
6234
|
const okHost = host === "figma.com" || host.endsWith(".figma.com");
|
|
6229
6235
|
const okProtocol = parsed.protocol === "https:" || parsed.protocol === "http:";
|
|
@@ -6444,7 +6450,7 @@ function MarkdownImage({ src, alt }) {
|
|
|
6444
6450
|
alt: _nullishCoalesce(alt, () => ( "No image available")),
|
|
6445
6451
|
width: DISPLAY_W,
|
|
6446
6452
|
height: Math.round(DISPLAY_W / ratio),
|
|
6447
|
-
sizes:
|
|
6453
|
+
sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.column,
|
|
6448
6454
|
loading: "lazy",
|
|
6449
6455
|
className: "mx-auto my-2 block h-auto w-full rounded-lg object-contain",
|
|
6450
6456
|
style: { maxWidth: `calc(${MAX_H_REM}rem * ${ratio})`, maxHeight: `${MAX_H_REM}rem` }
|
|
@@ -6512,8 +6518,8 @@ var Favicon = ({ src, size = "w-6 h-6" }) => /* @__PURE__ */ _jsxruntime.jsx.cal
|
|
|
6512
6518
|
src,
|
|
6513
6519
|
alt: "",
|
|
6514
6520
|
className: size,
|
|
6515
|
-
width:
|
|
6516
|
-
height:
|
|
6521
|
+
width: _chunkVXXOUM2Kcjs.IMAGE_FIXED_PX.glyph,
|
|
6522
|
+
height: _chunkVXXOUM2Kcjs.IMAGE_FIXED_PX.glyph,
|
|
6517
6523
|
unoptimized: true,
|
|
6518
6524
|
onError: (e) => {
|
|
6519
6525
|
const img = e.target;
|
|
@@ -6674,7 +6680,7 @@ var OGLinkPreview = ({
|
|
|
6674
6680
|
type: "website",
|
|
6675
6681
|
favicon: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`
|
|
6676
6682
|
} : null)));
|
|
6677
|
-
const placeholderImageUrl =
|
|
6683
|
+
const placeholderImageUrl = _chunkSTLJCAIZcjs.useOgPlaceholderUrl.call(void 0, {
|
|
6678
6684
|
title: _optionalChain([effectiveData, 'optionalAccess', _122 => _122.title]),
|
|
6679
6685
|
siteName: _optionalChain([effectiveData, 'optionalAccess', _123 => _123.siteName]) || domain,
|
|
6680
6686
|
enabled: enablePlaceholder && !isTile
|
|
@@ -6690,7 +6696,7 @@ var OGLinkPreview = ({
|
|
|
6690
6696
|
const hasImage = !!resolvedImageUrl;
|
|
6691
6697
|
const isCuratedImage = _optionalChain([resolvedImage, 'optionalAccess', _127 => _127.source]) === "curated";
|
|
6692
6698
|
const isPlaceholder = _optionalChain([resolvedImage, 'optionalAccess', _128 => _128.source]) === "placeholder";
|
|
6693
|
-
const bgColor =
|
|
6699
|
+
const bgColor = _chunkSTLJCAIZcjs.useImageEdgeColor.call(void 0, _nullishCoalesce(resolvedImageUrl, () => ( null)), "var(--color-bg-surface)");
|
|
6694
6700
|
const renderSkeleton = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6695
6701
|
OGLinkPreviewSkeleton,
|
|
6696
6702
|
{
|
|
@@ -6711,12 +6717,12 @@ var OGLinkPreview = ({
|
|
|
6711
6717
|
children: [
|
|
6712
6718
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: TILE_SOURCE_ROW_CLASS, children: [
|
|
6713
6719
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: `https://www.google.com/s2/favicons?domain=${domain}&sz=32`, size: "w-4 h-4" }),
|
|
6714
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6720
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: name }),
|
|
6715
6721
|
meta != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "ml-auto flex flex-none items-center gap-1.5 text-ods-text-secondary", children: meta })
|
|
6716
6722
|
] }),
|
|
6717
6723
|
kicker != null && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "overflow-hidden text-ods-accent text-h5", style: lineClamp(1), children: kicker }),
|
|
6718
6724
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6719
|
-
|
|
6725
|
+
_chunk66ZQ7LDRcjs.TruncateText,
|
|
6720
6726
|
{
|
|
6721
6727
|
lines: 2,
|
|
6722
6728
|
variant: "h3",
|
|
@@ -6725,7 +6731,7 @@ var OGLinkPreview = ({
|
|
|
6725
6731
|
children: curatedTitle || domainToTitle(domain)
|
|
6726
6732
|
}
|
|
6727
6733
|
),
|
|
6728
|
-
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6734
|
+
curatedDescription && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", children: curatedDescription })
|
|
6729
6735
|
]
|
|
6730
6736
|
}
|
|
6731
6737
|
);
|
|
@@ -6760,7 +6766,17 @@ var OGLinkPreview = ({
|
|
|
6760
6766
|
const renderImage = () => {
|
|
6761
6767
|
if (!resolvedImageUrl) return null;
|
|
6762
6768
|
if (isPlaceholder) {
|
|
6763
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6769
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6770
|
+
_chunkKUXHXLJQcjs.next_image_default,
|
|
6771
|
+
{
|
|
6772
|
+
src: resolvedImageUrl,
|
|
6773
|
+
alt: title,
|
|
6774
|
+
className: "rounded-md object-cover",
|
|
6775
|
+
fill: true,
|
|
6776
|
+
sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.full,
|
|
6777
|
+
unoptimized: true
|
|
6778
|
+
}
|
|
6779
|
+
);
|
|
6764
6780
|
}
|
|
6765
6781
|
if (isCuratedImage) {
|
|
6766
6782
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -6782,7 +6798,7 @@ var OGLinkPreview = ({
|
|
|
6782
6798
|
alt: title,
|
|
6783
6799
|
className: "rounded-md object-contain transition-transform duration-300 group-hover:scale-105",
|
|
6784
6800
|
fill: true,
|
|
6785
|
-
sizes:
|
|
6801
|
+
sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.full,
|
|
6786
6802
|
unoptimized: true,
|
|
6787
6803
|
onError: handleImageError
|
|
6788
6804
|
}
|
|
@@ -6861,8 +6877,8 @@ var OGLinkPreview = ({
|
|
|
6861
6877
|
children: [
|
|
6862
6878
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-10 w-10 flex-shrink-0 items-center justify-center rounded-lg bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Favicon, { src: faviconSrc }) }),
|
|
6863
6879
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6864
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6865
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6880
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { className: "font-semibold transition-colors group-hover:text-ods-accent", children: title }),
|
|
6881
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { tone: "secondary", children: description })
|
|
6866
6882
|
] }),
|
|
6867
6883
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExternalLinkIcon, {})
|
|
6868
6884
|
]
|
|
@@ -6898,8 +6914,8 @@ var OGLinkPreview = ({
|
|
|
6898
6914
|
src: logoSrc,
|
|
6899
6915
|
alt: publicationName || "",
|
|
6900
6916
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, DEFAULT_LOGO_CLASS, "object-contain"),
|
|
6901
|
-
width:
|
|
6902
|
-
height:
|
|
6917
|
+
width: _chunkVXXOUM2Kcjs.IMAGE_FIXED_PX.glyph,
|
|
6918
|
+
height: _chunkVXXOUM2Kcjs.IMAGE_FIXED_PX.glyph,
|
|
6903
6919
|
unoptimized: true,
|
|
6904
6920
|
onError: (e) => {
|
|
6905
6921
|
const img = e.target;
|
|
@@ -6909,7 +6925,7 @@ var OGLinkPreview = ({
|
|
|
6909
6925
|
),
|
|
6910
6926
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
6911
6927
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6912
|
-
|
|
6928
|
+
_chunk66ZQ7LDRcjs.TruncateText,
|
|
6913
6929
|
{
|
|
6914
6930
|
lines: 2,
|
|
6915
6931
|
className: "min-h-[calc(var(--font-line-space-h4-body)*2)] font-semibold transition-colors group-hover:text-ods-accent",
|
|
@@ -6918,7 +6934,7 @@ var OGLinkPreview = ({
|
|
|
6918
6934
|
}
|
|
6919
6935
|
),
|
|
6920
6936
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6921
|
-
|
|
6937
|
+
_chunk66ZQ7LDRcjs.TruncateText,
|
|
6922
6938
|
{
|
|
6923
6939
|
lines: 2,
|
|
6924
6940
|
tone: "secondary",
|
|
@@ -6928,9 +6944,9 @@ var OGLinkPreview = ({
|
|
|
6928
6944
|
}
|
|
6929
6945
|
),
|
|
6930
6946
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2 text-ods-text-secondary text-h6", children: [
|
|
6931
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6947
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: effectiveData.siteName }),
|
|
6932
6948
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: "\u2022" }),
|
|
6933
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
6949
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { as: "span", variant: "h6", className: "text-current", children: ogDomain }),
|
|
6934
6950
|
meta
|
|
6935
6951
|
] })
|
|
6936
6952
|
] })
|
|
@@ -7091,7 +7107,7 @@ var MediaCarousel = _react.memo.call(void 0, function MediaCarouselImpl({
|
|
|
7091
7107
|
};
|
|
7092
7108
|
const displayImageSrc = (url) => transformImageSrc ? transformImageSrc(url) : url;
|
|
7093
7109
|
const renderVideo = (item, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7094
|
-
|
|
7110
|
+
_chunkPRCGRDHVcjs.Video,
|
|
7095
7111
|
{
|
|
7096
7112
|
url: item.src,
|
|
7097
7113
|
poster: item.poster ? displayImageSrc(item.poster) : void 0,
|
|
@@ -7141,7 +7157,7 @@ var MediaCarousel = _react.memo.call(void 0, function MediaCarouselImpl({
|
|
|
7141
7157
|
),
|
|
7142
7158
|
priority: mainImagePriority,
|
|
7143
7159
|
loading: mainImagePriority ? "eager" : "lazy",
|
|
7144
|
-
sizes:
|
|
7160
|
+
sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.full,
|
|
7145
7161
|
width: 1428,
|
|
7146
7162
|
height: 802,
|
|
7147
7163
|
unoptimized: true,
|
|
@@ -7286,7 +7302,7 @@ var formatTimeAgo = (timestamp) => {
|
|
|
7286
7302
|
return `${Math.floor(diffSeconds / 86400)}d ago`;
|
|
7287
7303
|
};
|
|
7288
7304
|
function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
7289
|
-
const postLinkRel =
|
|
7305
|
+
const postLinkRel = _chunkF2VN3UUBcjs.renderedLinkRel.call(void 0, rel, true);
|
|
7290
7306
|
const { redditProxyUrl } = useRichMarkdownRuntime();
|
|
7291
7307
|
const [redditData, setRedditData] = _react.useState.call(void 0, null);
|
|
7292
7308
|
const [loading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7524,7 +7540,7 @@ function RedditEmbedClient({ url, maxWidth = 700, rel }) {
|
|
|
7524
7540
|
width: m.width,
|
|
7525
7541
|
height: m.height
|
|
7526
7542
|
}));
|
|
7527
|
-
const formatNumber2 =
|
|
7543
|
+
const formatNumber2 = _chunkTGOJHOQRcjs.formatLargeNumber;
|
|
7528
7544
|
const truncateText = (text, maxLength = 600) => {
|
|
7529
7545
|
if (text.length <= maxLength) return text;
|
|
7530
7546
|
return text.slice(0, maxLength) + "...";
|
|
@@ -7618,7 +7634,7 @@ var UserIcon3 = () => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "svg", { wid
|
|
|
7618
7634
|
] });
|
|
7619
7635
|
var XIcon = () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk2TEMEXDTcjs.XLogoIcon, { className: "h-5 w-5", color: "currentColor" });
|
|
7620
7636
|
function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
7621
|
-
const postLinkRel =
|
|
7637
|
+
const postLinkRel = _chunkF2VN3UUBcjs.renderedLinkRel.call(void 0, rel, true);
|
|
7622
7638
|
const { twitterProxyUrl } = useRichMarkdownRuntime();
|
|
7623
7639
|
const [tweetData, setTweetData] = _react.useState.call(void 0, null);
|
|
7624
7640
|
const [fetchLoading, setLoading] = _react.useState.call(void 0, true);
|
|
@@ -7722,8 +7738,8 @@ function TwitterEmbedClient({ url, tweetId, maxWidth = 700, rel }) {
|
|
|
7722
7738
|
src: getProfilePicUrl(username),
|
|
7723
7739
|
alt: `${tweetData.author_name} profile picture`,
|
|
7724
7740
|
className: "h-full w-full object-cover",
|
|
7725
|
-
width:
|
|
7726
|
-
height:
|
|
7741
|
+
width: _chunk4WIJI4AKcjs.AVATAR_SIZE_PX.sm,
|
|
7742
|
+
height: _chunk4WIJI4AKcjs.AVATAR_SIZE_PX.sm,
|
|
7727
7743
|
unoptimized: true,
|
|
7728
7744
|
onError: (e) => {
|
|
7729
7745
|
const target = e.target;
|
|
@@ -7820,7 +7836,7 @@ function buildRichEmbedOverrides({
|
|
|
7820
7836
|
ogEndpointPath,
|
|
7821
7837
|
textSizes
|
|
7822
7838
|
}) {
|
|
7823
|
-
const standard =
|
|
7839
|
+
const standard = _chunkF2VN3UUBcjs.buildStandardLeafRenderers.call(void 0, { textSizes });
|
|
7824
7840
|
return {
|
|
7825
7841
|
// Fence-language embeds (```youtube-embed etc.); everything else
|
|
7826
7842
|
// (mermaid, highlighted blocks, inline code) falls through to `standard`.
|
|
@@ -7830,7 +7846,7 @@ function buildRichEmbedOverrides({
|
|
|
7830
7846
|
const language = match ? match[1] : "";
|
|
7831
7847
|
const fenceText = () => String(children).replace(/\n$/, "").trim();
|
|
7832
7848
|
if (language === "youtube-embed") {
|
|
7833
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7849
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.Video, { kind: "youtube", url: fenceText() });
|
|
7834
7850
|
}
|
|
7835
7851
|
if (language === "reddit-embed") {
|
|
7836
7852
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: fenceText() });
|
|
@@ -7871,7 +7887,7 @@ function buildRichEmbedOverrides({
|
|
|
7871
7887
|
"data-figma-url": figmaUrl
|
|
7872
7888
|
} = divProps;
|
|
7873
7889
|
if (className === "youtube-embed" && videoId) {
|
|
7874
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7890
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.Video, { kind: "youtube", url: videoId });
|
|
7875
7891
|
}
|
|
7876
7892
|
if (className === "reddit-embed" && postUrl) {
|
|
7877
7893
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, RedditEmbedClient, { url: postUrl });
|
|
@@ -7956,23 +7972,23 @@ function buildRichEmbedOverrides({
|
|
|
7956
7972
|
// rich-markdown runtime (Supabase optimization on the hub, identity
|
|
7957
7973
|
// elsewhere). Guard against empty `![]()`.
|
|
7958
7974
|
img: ({ src, alt }) => {
|
|
7959
|
-
if (!
|
|
7975
|
+
if (!_chunkF2VN3UUBcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7960
7976
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownImage, { src: src.trim(), alt });
|
|
7961
7977
|
},
|
|
7962
7978
|
// Raw <iframe> tags in stored content (a pasted YouTube embed). A YouTube one becomes the same click-to-play
|
|
7963
7979
|
// facade as the `youtube-embed` fence: the raw iframe loaded YouTube's whole player (about 470 KB of script) with
|
|
7964
7980
|
// the page, on every post that carried one (CU-17tkuw5xp4q). Any other iframe loads when it nears the screen.
|
|
7965
7981
|
iframe: ({ node: _node, src, ...rest }) => {
|
|
7966
|
-
if (!
|
|
7982
|
+
if (!_chunkF2VN3UUBcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7967
7983
|
const url = src.trim();
|
|
7968
|
-
if (
|
|
7984
|
+
if (_chunkPRCGRDHVcjs.extractYouTubeId.call(void 0, url)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.Video, { kind: "youtube", url });
|
|
7969
7985
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "iframe", { ...rest, src: url, loading: "lazy" });
|
|
7970
7986
|
},
|
|
7971
7987
|
// Raw <video> tags in stored content (blog publisher injection) route
|
|
7972
7988
|
// to the <Video> SSOT (MuxPlayer) so HLS manifests play everywhere.
|
|
7973
7989
|
video: ({ src, poster, className }) => {
|
|
7974
|
-
if (!
|
|
7975
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden ${className || "my-8 w-full rounded-lg"}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
7990
|
+
if (!_chunkF2VN3UUBcjs.hasRenderableSrc.call(void 0, src)) return null;
|
|
7991
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `overflow-hidden ${className || "my-8 w-full rounded-lg"}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.Video, { kind: "file", url: src.trim(), poster: typeof poster === "string" ? poster : void 0 }) }) });
|
|
7976
7992
|
}
|
|
7977
7993
|
};
|
|
7978
7994
|
}
|
|
@@ -8080,7 +8096,7 @@ var processShortcodes = (content) => {
|
|
|
8080
8096
|
try {
|
|
8081
8097
|
const urlObj = new URL(url);
|
|
8082
8098
|
const hostname = urlObj.hostname.toLowerCase();
|
|
8083
|
-
const hostIs = (domain) =>
|
|
8099
|
+
const hostIs = (domain) => _chunkNBLQFJ4Icjs.hostMatches.call(void 0, hostname, domain);
|
|
8084
8100
|
const isYouTubeVideo = hostIs("youtube.com") && urlObj.searchParams.has("v") || hostIs("youtu.be");
|
|
8085
8101
|
if (isYouTubeVideo || hostIs("reddit.com") || hostIs("twitter.com") || hostIs("x.com") || hostIs("figma.com")) {
|
|
8086
8102
|
return match;
|
|
@@ -8157,13 +8173,13 @@ var RichMarkdownInner = ({
|
|
|
8157
8173
|
},
|
|
8158
8174
|
[resolveLinkEndpointUrl, resolveSource]
|
|
8159
8175
|
);
|
|
8160
|
-
const textSizes = _react.useMemo.call(void 0, () =>
|
|
8176
|
+
const textSizes = _react.useMemo.call(void 0, () => _chunkF2VN3UUBcjs.resolveTextSizeConfig.call(void 0, "article"), []);
|
|
8161
8177
|
const componentOverrides = _react.useMemo.call(void 0,
|
|
8162
8178
|
() => buildRichEmbedOverrides({ ogApiBaseUrl, ogEndpointPath, textSizes }),
|
|
8163
8179
|
[ogApiBaseUrl, ogEndpointPath, textSizes]
|
|
8164
8180
|
);
|
|
8165
8181
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
8166
|
-
|
|
8182
|
+
_chunkF2VN3UUBcjs.MarkdownEngine,
|
|
8167
8183
|
{
|
|
8168
8184
|
content,
|
|
8169
8185
|
className,
|
|
@@ -8187,7 +8203,7 @@ var RichMarkdownRendererImpl = ({
|
|
|
8187
8203
|
className = "",
|
|
8188
8204
|
sectionIds,
|
|
8189
8205
|
onInternalLinkClick,
|
|
8190
|
-
brokenLinks =
|
|
8206
|
+
brokenLinks = _chunkF2VN3UUBcjs.NO_BROKEN_LINKS,
|
|
8191
8207
|
currentPath,
|
|
8192
8208
|
resolveSource = "openframe-docs",
|
|
8193
8209
|
resolveLinkEndpointUrl = "/api/docs/resolve-link",
|
|
@@ -9313,7 +9329,7 @@ function FilterModal({
|
|
|
9313
9329
|
const dateDefaultSort = _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _165 => _165.defaultSort]), () => ( "desc"));
|
|
9314
9330
|
const [draftDateSort, setDraftDateSort] = _react.useState.call(void 0, _nullishCoalesce(_optionalChain([dateFilter, 'optionalAccess', _166 => _166.sort]), () => ( dateDefaultSort)));
|
|
9315
9331
|
const [draftDateRange, setDraftDateRange] = _react.useState.call(void 0, _optionalChain([dateFilter, 'optionalAccess', _167 => _167.range]));
|
|
9316
|
-
const { scrollRef, fadeTop, fadeBottom, update: updateFade } =
|
|
9332
|
+
const { scrollRef, fadeTop, fadeBottom, update: updateFade } = _chunkKVJKKVB3cjs.useScrollFade.call(void 0, );
|
|
9317
9333
|
const seedKey = `${JSON.stringify(currentFilters)}|${JSON.stringify(_nullishCoalesce(selectedTags, () => ( [])))}`;
|
|
9318
9334
|
const seedSourceRef = _react.useRef.call(void 0, { currentFilters, selectedTags, dateFilter, dateDefaultSort });
|
|
9319
9335
|
_react.useEffect.call(void 0, () => {
|
|
@@ -9359,15 +9375,15 @@ function FilterModal({
|
|
|
9359
9375
|
const hasTagFilter = !!tagFilterKeys && tagFilterKeys.length > 0 && !!onTagsChange;
|
|
9360
9376
|
const isEmpty = !isLoading && !hasSort && !hasFilterGroups && !hasTagFilter && !dateFilter;
|
|
9361
9377
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9362
|
-
|
|
9378
|
+
_chunkKVJKKVB3cjs.Modal,
|
|
9363
9379
|
{
|
|
9364
9380
|
isOpen,
|
|
9365
9381
|
onClose,
|
|
9366
9382
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "max-h-[90vh] max-w-none md:max-w-[min(42rem,calc(100vw-2rem))]", className),
|
|
9367
9383
|
children: [
|
|
9368
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9384
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalTitle, { children: title }) }),
|
|
9369
9385
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9370
|
-
|
|
9386
|
+
_chunkKVJKKVB3cjs.ModalContent,
|
|
9371
9387
|
{
|
|
9372
9388
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
9373
9389
|
"flex min-h-0 flex-1 flex-col",
|
|
@@ -9463,12 +9479,12 @@ function FilterModal({
|
|
|
9463
9479
|
)
|
|
9464
9480
|
}
|
|
9465
9481
|
),
|
|
9466
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9467
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9482
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ScrollFadeOverlay, { edge: "top", visible: fadeTop }),
|
|
9483
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ScrollFadeOverlay, { edge: "bottom", visible: fadeBottom })
|
|
9468
9484
|
] })
|
|
9469
9485
|
}
|
|
9470
9486
|
),
|
|
9471
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
9487
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.ModalFooter, { children: [
|
|
9472
9488
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", className: "h-11 flex-1", onClick: handleReset, children: resetButtonText }),
|
|
9473
9489
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "accent", className: "h-11 flex-1", onClick: handleApply, children: applyButtonText })
|
|
9474
9490
|
] })
|
|
@@ -9532,7 +9548,7 @@ function renderAdvancedPageContainer({
|
|
|
9532
9548
|
contentClassName,
|
|
9533
9549
|
showHeader = true
|
|
9534
9550
|
}, inScope = false) {
|
|
9535
|
-
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9551
|
+
const titleNode = title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.PageTitle, { className: PAGE_CONTAINER_TITLE_CLASS, children: _chunkTHY2XVGYcjs.accentSentenceMarks.call(void 0, title) }) : inScope && title === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerTitleSkeleton, {}) : null;
|
|
9536
9552
|
const subtitleNode = subtitle ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: PAGE_CONTAINER_SUBTITLE_CLASS, children: subtitle }) : inScope && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PageContainerSubtitleSkeleton, {}) : null;
|
|
9537
9553
|
const getActionsVariant = () => {
|
|
9538
9554
|
if (actionsVariant) return actionsVariant;
|
|
@@ -9541,7 +9557,7 @@ function renderAdvancedPageContainer({
|
|
|
9541
9557
|
};
|
|
9542
9558
|
const renderActions = () => {
|
|
9543
9559
|
if (!actions || actions.length === 0) return null;
|
|
9544
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9560
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.PageActions, { variant: getActionsVariant(), actions, menuActions });
|
|
9545
9561
|
};
|
|
9546
9562
|
const needsBottomPadding = actions && actions.length > 0 && getActionsVariant() === "primary-buttons";
|
|
9547
9563
|
const paddingClasses = {
|
|
@@ -9564,7 +9580,7 @@ function renderAdvancedPageContainer({
|
|
|
9564
9580
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-end justify-between gap-4 content-md:flex-col content-md:items-start content-md:justify-start content-lg:flex-row content-lg:items-end content-lg:justify-between", children: [
|
|
9565
9581
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9566
9582
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9567
|
-
|
|
9583
|
+
_chunk66ZQ7LDRcjs.BackButton,
|
|
9568
9584
|
{
|
|
9569
9585
|
onClick: backButton.onClick,
|
|
9570
9586
|
label: backButton.label,
|
|
@@ -9584,7 +9600,7 @@ function renderAdvancedPageContainer({
|
|
|
9584
9600
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between gap-4 content-md:flex-col content-md:items-start content-md:justify-start content-lg:flex-row content-lg:items-center content-lg:justify-between", children: [
|
|
9585
9601
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
9586
9602
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9587
|
-
|
|
9603
|
+
_chunk66ZQ7LDRcjs.BackButton,
|
|
9588
9604
|
{
|
|
9589
9605
|
onClick: backButton.onClick,
|
|
9590
9606
|
label: backButton.label,
|
|
@@ -9604,7 +9620,7 @@ function renderAdvancedPageContainer({
|
|
|
9604
9620
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-end justify-between gap-4 content-md:flex-col content-md:items-start content-md:justify-start content-lg:flex-row content-lg:items-end content-lg:justify-between", children: [
|
|
9605
9621
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: [
|
|
9606
9622
|
backButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
9607
|
-
|
|
9623
|
+
_chunk66ZQ7LDRcjs.BackButton,
|
|
9608
9624
|
{
|
|
9609
9625
|
onClick: backButton.onClick,
|
|
9610
9626
|
label: backButton.label,
|
|
@@ -9959,7 +9975,7 @@ var BenefitCardGrid = ({ children, className = "", columns = 2 }) => {
|
|
|
9959
9975
|
|
|
9960
9976
|
|
|
9961
9977
|
function PlatformBrowseButton({ item }) {
|
|
9962
|
-
const linkProps =
|
|
9978
|
+
const linkProps = _chunkF2VN3UUBcjs.useNavLinkViaRuntime.call(void 0, { href: item.link, targetPlatform: item.targetPlatform });
|
|
9963
9979
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "outline", linkProps, rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.ExternalLink, { className: "h-4 w-4" }), children: [
|
|
9964
9980
|
"Browse ",
|
|
9965
9981
|
item.buttonText
|
|
@@ -10274,12 +10290,12 @@ function DashboardInfoCard({
|
|
|
10274
10290
|
const renderPercentage = () => {
|
|
10275
10291
|
if (loading) {
|
|
10276
10292
|
if (!loadingShowsPercentage) return null;
|
|
10277
|
-
return percentageAsTag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10293
|
+
return percentageAsTag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { loading: true, label: "", className: "w-12" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-12" }) });
|
|
10278
10294
|
}
|
|
10279
10295
|
if (percentage === void 0) return null;
|
|
10280
10296
|
if (percentageAsTag) {
|
|
10281
10297
|
const tagVariant = progressVariant === "warning" || progressVariant === "error" ? progressVariant : progressVariant === "success" ? "success" : "grey";
|
|
10282
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10298
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { variant: tagVariant, label: `${percentage}%` });
|
|
10283
10299
|
}
|
|
10284
10300
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: [
|
|
10285
10301
|
"(",
|
|
@@ -10359,7 +10375,7 @@ function DashboardInfoCard({
|
|
|
10359
10375
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "truncate text-ods-text-primary text-h3 content-md:text-h2", valueClassName), children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-24" }) : formattedValue }),
|
|
10360
10376
|
loading ? loadingShowsSubValue && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-16" }) }) : subValue && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h6", children: subValue }),
|
|
10361
10377
|
renderPercentage(),
|
|
10362
|
-
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10378
|
+
tooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.FloatingTooltip, { content: tooltip, side: "top", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "cursor-help text-ods-text-secondary", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFO6DOP6Mcjs.QuestionCircleIcon, { size: 20 }) }) })
|
|
10363
10379
|
] }),
|
|
10364
10380
|
hasCaption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "line-clamp-2 min-h-[2lh] text-ods-text-secondary text-h6", children: loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-32" }) : caption })
|
|
10365
10381
|
] }),
|
|
@@ -10478,10 +10494,10 @@ var OSTypeBadge = ({
|
|
|
10478
10494
|
if (!osType) {
|
|
10479
10495
|
return labelOnly ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "text-ods-text-secondary", className), children: "Unknown" }) : null;
|
|
10480
10496
|
}
|
|
10481
|
-
const normalized =
|
|
10497
|
+
const normalized = _chunkNBLQFJ4Icjs.normalizeOSType.call(void 0, osType);
|
|
10482
10498
|
if (!normalized && !labelOnly) return null;
|
|
10483
|
-
const label =
|
|
10484
|
-
const IconComponent =
|
|
10499
|
+
const label = _chunkNBLQFJ4Icjs.getOSLabel.call(void 0, osType);
|
|
10500
|
+
const IconComponent = _chunkNBLQFJ4Icjs.getOSIcon.call(void 0, osType);
|
|
10485
10501
|
if (iconOnly && IconComponent) {
|
|
10486
10502
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, IconComponent, { className: _chunk7JWFMAQBcjs.cn.call(void 0, iconSize, "text-ods-text-secondary", className) });
|
|
10487
10503
|
}
|
|
@@ -10529,8 +10545,8 @@ function DeviceCard({
|
|
|
10529
10545
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || !!loadingProp;
|
|
10530
10546
|
const formatLastSeen = (lastSeen) => {
|
|
10531
10547
|
if (!lastSeen) return null;
|
|
10532
|
-
const date =
|
|
10533
|
-
return date === "\u2014" ? null : `${date} ${
|
|
10548
|
+
const date = _chunkKVJKKVB3cjs.formatDate.call(void 0, lastSeen);
|
|
10549
|
+
return date === "\u2014" ? null : `${date} ${_chunkKVJKKVB3cjs.formatTime.call(void 0, lastSeen)}`;
|
|
10534
10550
|
};
|
|
10535
10551
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
10536
10552
|
"div",
|
|
@@ -10589,7 +10605,7 @@ function DeviceCard({
|
|
|
10589
10605
|
] }),
|
|
10590
10606
|
(loading || statusTag || device.lastSeen) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: DEVICE_CARD_STATUS_ROW_CLASS, children: [
|
|
10591
10607
|
(loading || statusTag) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10592
|
-
|
|
10608
|
+
_chunkTGOJHOQRcjs.Tag,
|
|
10593
10609
|
{
|
|
10594
10610
|
loading,
|
|
10595
10611
|
variant: _optionalChain([statusTag, 'optionalAccess', _194 => _194.variant]),
|
|
@@ -10604,7 +10620,7 @@ function DeviceCard({
|
|
|
10604
10620
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-28 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: formatLastSeen(device.lastSeen) })
|
|
10605
10621
|
] })
|
|
10606
10622
|
] }),
|
|
10607
|
-
!showTags ? null : loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEVICE_CARD_TAGS_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10623
|
+
!showTags ? null : loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEVICE_CARD_TAGS_ROW_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { loading: true, label: "", variant: "outline", "data-loading-item": true }) }) : device.tags && device.tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DEVICE_CARD_TAGS_ROW_CLASS, children: device.tags.map((tag, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { variant: "outline", label: tag, "data-loading-item": true }, index)) })
|
|
10608
10624
|
]
|
|
10609
10625
|
}
|
|
10610
10626
|
);
|
|
@@ -10650,7 +10666,7 @@ function DataAttribution({ icon, source, lastUpdated, action }) {
|
|
|
10650
10666
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Separator3, {}),
|
|
10651
10667
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: UPDATED_CLASS, children: [
|
|
10652
10668
|
"Last updated: ",
|
|
10653
|
-
lastUpdated ?
|
|
10669
|
+
lastUpdated ? _chunkTGOJHOQRcjs.formatDate.call(void 0, lastUpdated) : "Never"
|
|
10654
10670
|
] }),
|
|
10655
10671
|
action ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ACTION_CLASS, children: action }) : null
|
|
10656
10672
|
] });
|
|
@@ -10778,7 +10794,7 @@ function ComplianceLogo({
|
|
|
10778
10794
|
fallback = null,
|
|
10779
10795
|
className
|
|
10780
10796
|
}) {
|
|
10781
|
-
const standard =
|
|
10797
|
+
const standard = _chunkNBLQFJ4Icjs.complianceStandardForName.call(void 0, ...names);
|
|
10782
10798
|
if (!standard) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: fallback });
|
|
10783
10799
|
const Official = standard.logo ? COMPLIANCE_LOGOS[standard.logo] : null;
|
|
10784
10800
|
return Official ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -10859,7 +10875,7 @@ function FeatureCardGridView({
|
|
|
10859
10875
|
if (allCardsHaveNoBorders) {
|
|
10860
10876
|
finalCardClassName = "bg-transparent p-0 overflow-visible border-0 shadow-none rounded-none";
|
|
10861
10877
|
}
|
|
10862
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10878
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.Card, { className: `${finalCardClassName} ${className}`, children: Array.from({ length: rows }, (_, rowIndex) => {
|
|
10863
10879
|
const startIndex = rowIndex * itemsPerRow;
|
|
10864
10880
|
const rowItems = items.slice(startIndex, startIndex + itemsPerRow);
|
|
10865
10881
|
const isLastRow = rowIndex === rows - 1;
|
|
@@ -10893,7 +10909,7 @@ function FeatureCardGridView({
|
|
|
10893
10909
|
item.icon && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start justify-between", children: [
|
|
10894
10910
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, item.icon, { size: 80, color: item.iconColor }),
|
|
10895
10911
|
item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10896
|
-
|
|
10912
|
+
_chunkPRCGRDHVcjs.StatusBadge,
|
|
10897
10913
|
{
|
|
10898
10914
|
text: item.badge.text,
|
|
10899
10915
|
variant: item.badge.variant || "card",
|
|
@@ -10902,7 +10918,7 @@ function FeatureCardGridView({
|
|
|
10902
10918
|
)
|
|
10903
10919
|
] }),
|
|
10904
10920
|
!item.icon && item.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-start justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
10905
|
-
|
|
10921
|
+
_chunkPRCGRDHVcjs.StatusBadge,
|
|
10906
10922
|
{
|
|
10907
10923
|
text: item.badge.text,
|
|
10908
10924
|
variant: item.badge.variant || "card",
|
|
@@ -11133,7 +11149,7 @@ var CHANGE_CLASS = "w-8 text-right text-h6 tabular-nums";
|
|
|
11133
11149
|
var BOX_CLASS = "inline-flex shrink-0 items-center gap-[var(--spacing-system-xxs)]";
|
|
11134
11150
|
var FOCUS_CLASS = "rounded-sm outline-none focus-visible:ring-1 focus-visible:ring-ods-accent";
|
|
11135
11151
|
function formatTrendChange(change) {
|
|
11136
|
-
return change === 0 ? "0" : `${change > 0 ? "+" : "\u2212"}${
|
|
11152
|
+
return change === 0 ? "0" : `${change > 0 ? "+" : "\u2212"}${_chunkTGOJHOQRcjs.formatNumber.call(void 0, Math.abs(change))}`;
|
|
11137
11153
|
}
|
|
11138
11154
|
var TREND_TONES = {
|
|
11139
11155
|
positive: "text-ods-success",
|
|
@@ -11217,7 +11233,7 @@ function Trendline({
|
|
|
11217
11233
|
}
|
|
11218
11234
|
);
|
|
11219
11235
|
if (!details) return line;
|
|
11220
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11236
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.FloatingTooltip, { as: "span", side, triggerClassName: BOX_CLASS, content: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TrendDetails, { render: details }), children: line });
|
|
11221
11237
|
}
|
|
11222
11238
|
function TrendDetails({ render }) {
|
|
11223
11239
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: render() });
|
|
@@ -11247,7 +11263,7 @@ function TrendHistoryCell({ column, value }) {
|
|
|
11247
11263
|
|
|
11248
11264
|
function SourceTooltip({ intro, sources, note, iconClassName, triggerAnchorProps }) {
|
|
11249
11265
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11250
|
-
|
|
11266
|
+
_chunkTGOJHOQRcjs.FloatingTooltip,
|
|
11251
11267
|
{
|
|
11252
11268
|
as: "span",
|
|
11253
11269
|
side: "top",
|
|
@@ -11635,7 +11651,7 @@ function OrganizationCardSkeleton({
|
|
|
11635
11651
|
..._chunk7JWFMAQBcjs.loadingItemProps.call(void 0, props),
|
|
11636
11652
|
children: [
|
|
11637
11653
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11638
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11654
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.EntityImage, { src: null }),
|
|
11639
11655
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11640
11656
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-3/4" }),
|
|
11641
11657
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11707,7 +11723,7 @@ function OrganizationCard({
|
|
|
11707
11723
|
}
|
|
11708
11724
|
),
|
|
11709
11725
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_HEADER_CLASS, children: [
|
|
11710
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11726
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.EntityImage, { src: fetchedImageUrl || organization.imageUrl, alt: organization.name }),
|
|
11711
11727
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: ORGANIZATION_CARD_TEXT_CLASS, children: [
|
|
11712
11728
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "truncate text-ods-text-primary transition-colors text-h3", title: organization.name, children: organization.name }),
|
|
11713
11729
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -11774,11 +11790,11 @@ function ServiceCard({
|
|
|
11774
11790
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
11775
11791
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 w-12 flex-shrink-0 items-center justify-center rounded-md border border-ods-border bg-ods-bg", children: resolvedIcon }),
|
|
11776
11792
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0", children: [
|
|
11777
|
-
loading && !title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-40 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11778
|
-
loading && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-56 max-w-full" }) : subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11793
|
+
loading && !title ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h3", className: "w-40 max-w-full" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h3", children: title }),
|
|
11794
|
+
loading && subtitle === "" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-56 max-w-full" }) : subtitle && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", children: subtitle })
|
|
11779
11795
|
] })
|
|
11780
11796
|
] }),
|
|
11781
|
-
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11797
|
+
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { label: tag.label, variant: "outline", className: "shrink-0 self-start", loading })
|
|
11782
11798
|
] }),
|
|
11783
11799
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-3", children: rows.map((row, idx) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ServiceCardRowItem, { row, loading }, idx)) })
|
|
11784
11800
|
] });
|
|
@@ -11786,7 +11802,7 @@ function ServiceCard({
|
|
|
11786
11802
|
function ServiceCardRowItem({ row, loading: loadingProp }) {
|
|
11787
11803
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
11788
11804
|
const [revealed, setRevealed] = _react.useState.call(void 0, false);
|
|
11789
|
-
const { copy, copied } =
|
|
11805
|
+
const { copy, copied } = _chunkAZJYMTBScjs.useCopyToClipboard.call(void 0, );
|
|
11790
11806
|
const { ref: valueRef, isTruncated: valueTruncated } = _chunkV4FXUIMHcjs.useIsTruncated.call(void 0, row.value);
|
|
11791
11807
|
const actions = _react.useMemo.call(void 0, () => rowActions(row), [row]);
|
|
11792
11808
|
const displayValue = row.isSecret ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MaskedValue, { value: row.value, isRevealed: revealed }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: row.value });
|
|
@@ -11802,7 +11818,7 @@ function ServiceCardRowItem({ row, loading: loadingProp }) {
|
|
|
11802
11818
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", className: "w-40 max-w-full" }) : (
|
|
11803
11819
|
// No tooltip while a secret is masked — the old native `title` leaked the raw value on hover.
|
|
11804
11820
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11805
|
-
|
|
11821
|
+
_chunkTGOJHOQRcjs.FloatingTooltip,
|
|
11806
11822
|
{
|
|
11807
11823
|
content: row.value,
|
|
11808
11824
|
side: "top",
|
|
@@ -11911,17 +11927,17 @@ function PersonCell({
|
|
|
11911
11927
|
const displayName = name || fallbackName;
|
|
11912
11928
|
const scale = PERSON_CELL_SIZE[size];
|
|
11913
11929
|
const row = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `group/person-cell ${PERSON_ROW_CLASS} ${scale.gap}`, children: [
|
|
11914
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11930
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { size: scale.avatar, src: _nullishCoalesce(avatarUrl, () => ( void 0)), alt: displayName, fallback: displayName }),
|
|
11915
11931
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
11916
11932
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11917
|
-
|
|
11933
|
+
_chunk66ZQ7LDRcjs.TruncateText,
|
|
11918
11934
|
{
|
|
11919
11935
|
variant: scale.primary,
|
|
11920
11936
|
className: onClick ? "text-ods-accent group-hover/person-cell:underline" : void 0,
|
|
11921
11937
|
children: displayName
|
|
11922
11938
|
}
|
|
11923
11939
|
),
|
|
11924
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11940
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", children: secondary === void 0 ? "\xA0" : secondary || "\xB7" })
|
|
11925
11941
|
] })
|
|
11926
11942
|
] });
|
|
11927
11943
|
if (!onClick) return row;
|
|
@@ -11939,7 +11955,7 @@ function PersonCell({
|
|
|
11939
11955
|
function PersonCellSkeleton({ size = "sm" }) {
|
|
11940
11956
|
const scale = PERSON_CELL_SIZE[size];
|
|
11941
11957
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: `${PERSON_ROW_CLASS} ${scale.gap}`, "aria-hidden": true, children: [
|
|
11942
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11958
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { loading: true, size: scale.avatar }),
|
|
11943
11959
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
11944
11960
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: scale.primary, className: "w-3/4" }),
|
|
11945
11961
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-1/2" })
|
|
@@ -11962,9 +11978,9 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
11962
11978
|
);
|
|
11963
11979
|
}
|
|
11964
11980
|
const fullNames = people.map((p) => p.name || "Unknown").join(", ");
|
|
11965
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11981
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.FloatingTooltip, { content: fullNames, triggerClassName: "min-w-0 max-w-full", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
11966
11982
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "aria-hidden": true, className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
11967
|
-
|
|
11983
|
+
_chunkGAHXURKJcjs.AvatarStack,
|
|
11968
11984
|
{
|
|
11969
11985
|
size: "sm",
|
|
11970
11986
|
slots: PEOPLE_CELL_STACK_SLOTS,
|
|
@@ -11972,7 +11988,7 @@ function PeopleCell({ people, fallbackName = "Unassigned" }) {
|
|
|
11972
11988
|
}
|
|
11973
11989
|
) }),
|
|
11974
11990
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "line-clamp-2 min-w-0 flex-1 break-words text-ods-text-primary text-h6", children: [
|
|
11975
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, children: people.map((p) =>
|
|
11991
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { "aria-hidden": true, children: people.map((p) => _chunkTGOJHOQRcjs.personFirstName.call(void 0, p.name, "Unknown")).join(" & ") }),
|
|
11976
11992
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "sr-only", children: fullNames })
|
|
11977
11993
|
] })
|
|
11978
11994
|
] }) });
|
|
@@ -12819,7 +12835,7 @@ function DataTableRowImpl({
|
|
|
12819
12835
|
const containerRef = _react.useRef.call(void 0, null);
|
|
12820
12836
|
const handleClick = _react.useCallback.call(void 0,
|
|
12821
12837
|
(e) => {
|
|
12822
|
-
if (!
|
|
12838
|
+
if (!_chunkNBLQFJ4Icjs.isOwnClick.call(void 0, e.target, containerRef.current)) {
|
|
12823
12839
|
if (isLinkMode) e.preventDefault();
|
|
12824
12840
|
return;
|
|
12825
12841
|
}
|
|
@@ -12833,7 +12849,7 @@ function DataTableRowImpl({
|
|
|
12833
12849
|
if (!(target instanceof Element) || !_optionalChain([container, 'optionalAccess', _222 => _222.contains, 'call', _223 => _223(target)])) return;
|
|
12834
12850
|
const nestedLink = target.closest("a");
|
|
12835
12851
|
if (nestedLink && nestedLink !== container && container.contains(nestedLink)) return;
|
|
12836
|
-
if (!
|
|
12852
|
+
if (!_chunkNBLQFJ4Icjs.isOwnClick.call(void 0, target, container) || target.closest(ROW_LINK_CONTROL_SELECTOR)) e.preventDefault();
|
|
12837
12853
|
}, []);
|
|
12838
12854
|
const containerClassName = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
12839
12855
|
DATA_TABLE_ROW_FRAME_CLASS,
|
|
@@ -12963,7 +12979,7 @@ function DataTableBody({
|
|
|
12963
12979
|
const skeletonRowClassName = typeof rowClassName === "string" ? rowClassName : void 0;
|
|
12964
12980
|
if (loading && loadingCells && hasRows) {
|
|
12965
12981
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
12966
|
-
|
|
12982
|
+
_chunkF2VN3UUBcjs.LoadingFallback,
|
|
12967
12983
|
{
|
|
12968
12984
|
label: "Loading results",
|
|
12969
12985
|
status: loadingRegion && !inScope,
|
|
@@ -13312,7 +13328,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13312
13328
|
// child of the cell.
|
|
13313
13329
|
_optionalChain([meta, 'optionalAccess', _242 => _242.hint]) ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13314
13330
|
filterTrigger,
|
|
13315
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13331
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNBLQFJ4Icjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13316
13332
|
] }) : filterTrigger
|
|
13317
13333
|
) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13318
13334
|
"div",
|
|
@@ -13337,7 +13353,7 @@ function HeaderCell({ header, sort, onSortChange }) {
|
|
|
13337
13353
|
// centred on the row.
|
|
13338
13354
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-start gap-[var(--spacing-system-xxs)]", children: [
|
|
13339
13355
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13340
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13356
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNBLQFJ4Icjs.InfoHint, { label: resolveHeaderLabel(header), children: meta.hint })
|
|
13341
13357
|
] })
|
|
13342
13358
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, HeaderLabel, { header }),
|
|
13343
13359
|
canSort && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SortIcon, { sorted: sortDir })
|
|
@@ -13576,7 +13592,7 @@ function PhoneInput({
|
|
|
13576
13592
|
placeholder = "Phone Number (optional)",
|
|
13577
13593
|
onKeyDown
|
|
13578
13594
|
}) {
|
|
13579
|
-
const { priority, others } = _react.useMemo.call(void 0, () =>
|
|
13595
|
+
const { priority, others } = _react.useMemo.call(void 0, () => _chunkNBLQFJ4Icjs.getCountryPhoneData.call(void 0, ), []);
|
|
13580
13596
|
const selectedCountry = _react.useMemo.call(void 0,
|
|
13581
13597
|
() => [...priority, ...others].find((c) => c.code === countryCode),
|
|
13582
13598
|
[countryCode, priority, others]
|
|
@@ -13591,7 +13607,7 @@ function PhoneInput({
|
|
|
13591
13607
|
_optionalChain([onValidationChange, 'optionalCall', _259 => _259(false)]);
|
|
13592
13608
|
return;
|
|
13593
13609
|
}
|
|
13594
|
-
const invalid = !
|
|
13610
|
+
const invalid = !_chunkNBLQFJ4Icjs.validatePhoneNumber.call(void 0, phone, countryCode);
|
|
13595
13611
|
setIsInvalid(invalid);
|
|
13596
13612
|
_optionalChain([onValidationChange, 'optionalCall', _260 => _260(invalid)]);
|
|
13597
13613
|
},
|
|
@@ -13611,7 +13627,7 @@ function PhoneInput({
|
|
|
13611
13627
|
}, []);
|
|
13612
13628
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 gap-2", children: [
|
|
13613
13629
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13614
|
-
|
|
13630
|
+
_chunk66ZQ7LDRcjs.Select,
|
|
13615
13631
|
{
|
|
13616
13632
|
value: countryCode,
|
|
13617
13633
|
onValueChange: (val) => {
|
|
@@ -13622,14 +13638,14 @@ function PhoneInput({
|
|
|
13622
13638
|
},
|
|
13623
13639
|
disabled,
|
|
13624
13640
|
children: [
|
|
13625
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13641
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className: "w-[130px] shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, { children: selectedCountry && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-1.5", children: [
|
|
13626
13642
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.flag }),
|
|
13627
13643
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: selectedCountry.dialCode })
|
|
13628
13644
|
] }) }) }),
|
|
13629
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
13630
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13631
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13632
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13645
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { className: "max-h-[300px] !w-[280px]", children: [
|
|
13646
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectGroup, { children: priority.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) }),
|
|
13647
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectSeparator, {}),
|
|
13648
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectGroup, { children: others.map((country) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, CountryOption, { country }, country.code)) })
|
|
13633
13649
|
] })
|
|
13634
13650
|
]
|
|
13635
13651
|
}
|
|
@@ -13661,7 +13677,7 @@ function PhoneInput({
|
|
|
13661
13677
|
] });
|
|
13662
13678
|
}
|
|
13663
13679
|
function CountryOption({ country }) {
|
|
13664
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13680
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: country.code, textValue: country.name, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-2", children: [
|
|
13665
13681
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0", children: country.flag }),
|
|
13666
13682
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "shrink-0 text-ods-text-secondary", children: country.dialCode }),
|
|
13667
13683
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-block max-w-[140px] overflow-hidden text-ellipsis whitespace-nowrap", children: country.name })
|
|
@@ -13949,7 +13965,7 @@ function SearchInput({
|
|
|
13949
13965
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "flex-shrink-0 text-ods-text-secondary transition-colors duration-200 group-has-[:focus]:text-ods-accent [&_svg]:size-4 content-md:[&_svg]:size-6", children: startAdornment !== void 0 ? startAdornment : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, {}) }),
|
|
13950
13966
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden", children: [
|
|
13951
13967
|
visibleChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
13952
|
-
|
|
13968
|
+
_chunkTGOJHOQRcjs.Tag,
|
|
13953
13969
|
{
|
|
13954
13970
|
variant: chipVariantToTagVariant(chip.variant),
|
|
13955
13971
|
label: chip.label,
|
|
@@ -14042,7 +14058,7 @@ function SearchInput({
|
|
|
14042
14058
|
)
|
|
14043
14059
|
] }),
|
|
14044
14060
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14045
|
-
|
|
14061
|
+
_chunk66ZQ7LDRcjs.HiddenTagsPopup,
|
|
14046
14062
|
{
|
|
14047
14063
|
ref: hiddenTagsPopupRef,
|
|
14048
14064
|
items: hiddenChips.map((chip) => ({ label: chip.label, value: chip.id })),
|
|
@@ -14062,7 +14078,7 @@ function SearchInput({
|
|
|
14062
14078
|
}
|
|
14063
14079
|
),
|
|
14064
14080
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: measureRef, "aria-hidden": "true", className: "pointer-events-none fixed -left-[9999px] top-0 flex gap-2", children: filterChips.map((chip) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14065
|
-
|
|
14081
|
+
_chunkTGOJHOQRcjs.Tag,
|
|
14066
14082
|
{
|
|
14067
14083
|
variant: chipVariantToTagVariant(chip.variant),
|
|
14068
14084
|
label: chip.label,
|
|
@@ -14275,7 +14291,7 @@ function TagSearchInput({
|
|
|
14275
14291
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex shrink-0 items-center pl-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZ74QE57Tcjs.SearchIcon, { className: "size-4 text-ods-text-secondary content-md:size-6" }) }),
|
|
14276
14292
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref: middleRef, className: "flex min-w-0 flex-1 items-center gap-2 overflow-hidden px-2", children: [
|
|
14277
14293
|
visibleTags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14278
|
-
|
|
14294
|
+
_chunkTGOJHOQRcjs.Tag,
|
|
14279
14295
|
{
|
|
14280
14296
|
variant: "outline",
|
|
14281
14297
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -14334,7 +14350,7 @@ function TagSearchInput({
|
|
|
14334
14350
|
}
|
|
14335
14351
|
),
|
|
14336
14352
|
showHiddenTags && hiddenCount > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14337
|
-
|
|
14353
|
+
_chunk66ZQ7LDRcjs.HiddenTagsPopup,
|
|
14338
14354
|
{
|
|
14339
14355
|
ref: hiddenTagsPopupRef,
|
|
14340
14356
|
items: hiddenTags,
|
|
@@ -14361,7 +14377,7 @@ function TagSearchInput({
|
|
|
14361
14377
|
"aria-hidden": "true",
|
|
14362
14378
|
className: "pointer-events-none invisible absolute left-0 top-0 -z-10 flex gap-2",
|
|
14363
14379
|
children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14364
|
-
|
|
14380
|
+
_chunkTGOJHOQRcjs.Tag,
|
|
14365
14381
|
{
|
|
14366
14382
|
variant: "outline",
|
|
14367
14383
|
label: renderTag ? renderTag(tag) : tag.label,
|
|
@@ -14424,8 +14440,8 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14424
14440
|
if (!trimmedUrl) return;
|
|
14425
14441
|
onSubmit({ text: text.trim(), url: trimmedUrl, rel });
|
|
14426
14442
|
};
|
|
14427
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14428
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14443
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.Modal, { isOpen, onClose, className: "text-left md:max-w-[560px]", children: [
|
|
14444
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalTitle, { children: editing ? "Edit link" : "Add link" }) }),
|
|
14429
14445
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14430
14446
|
"form",
|
|
14431
14447
|
{
|
|
@@ -14450,7 +14466,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14450
14466
|
),
|
|
14451
14467
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xsf)]", children: [
|
|
14452
14468
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
14453
|
-
|
|
14469
|
+
_chunkF2VN3UUBcjs.TabSelector,
|
|
14454
14470
|
{
|
|
14455
14471
|
label: "Search engines",
|
|
14456
14472
|
value: choice,
|
|
@@ -14467,7 +14483,7 @@ function MarkdownLinkDialog({ isOpen, initial, editing, onSubmit, onRemove, onCl
|
|
|
14467
14483
|
]
|
|
14468
14484
|
}
|
|
14469
14485
|
),
|
|
14470
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
14486
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.ModalFooter, { children: [
|
|
14471
14487
|
editing ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onRemove, className: "flex-1", children: "Remove link" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, className: "flex-1", children: "Cancel" }),
|
|
14472
14488
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "submit", form: formId, variant: "accent", disabled: !trimmedUrl, className: "flex-1", children: editing ? "Save" : "Add link" })
|
|
14473
14489
|
] })
|
|
@@ -14507,7 +14523,7 @@ function useMarkdownLinkCommand() {
|
|
|
14507
14523
|
buttonProps: { "aria-label": "Add or edit a link (ctrl + l)", title: "Add or edit a link (ctrl + l)" },
|
|
14508
14524
|
icon: command.icon,
|
|
14509
14525
|
execute: (state, api) => {
|
|
14510
|
-
const existing =
|
|
14526
|
+
const existing = _chunkF2VN3UUBcjs.findMarkdownLinkAt.call(void 0, state.text, state.selection.start, state.selection.end);
|
|
14511
14527
|
setPending(
|
|
14512
14528
|
existing ? {
|
|
14513
14529
|
api,
|
|
@@ -14538,7 +14554,7 @@ function useMarkdownLinkCommand() {
|
|
|
14538
14554
|
initial: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _317 => _317.initial]), () => ( EMPTY_LINK)),
|
|
14539
14555
|
editing: _nullishCoalesce(_optionalChain([pending, 'optionalAccess', _318 => _318.editing]), () => ( false)),
|
|
14540
14556
|
onSubmit: (link) => {
|
|
14541
|
-
if (pending) write(pending,
|
|
14557
|
+
if (pending) write(pending, _chunkF2VN3UUBcjs.formatMarkdownLink.call(void 0, link));
|
|
14542
14558
|
},
|
|
14543
14559
|
onRemove: () => {
|
|
14544
14560
|
if (pending) write(pending, pending.initial.text);
|
|
@@ -14704,7 +14720,7 @@ function MarkdownEditor({
|
|
|
14704
14720
|
setUploadProgress(`Uploading ${file.name}...`);
|
|
14705
14721
|
try {
|
|
14706
14722
|
const url = await onUploadFile(file);
|
|
14707
|
-
const isImage =
|
|
14723
|
+
const isImage = _chunkTHY2XVGYcjs.fileMediaType.call(void 0, file) === "image";
|
|
14708
14724
|
const markdown = isImage ? `` : `[${file.name}](${url})`;
|
|
14709
14725
|
insertTextAtCursor(markdown);
|
|
14710
14726
|
_optionalChain([onFileUploaded, 'optionalCall', _321 => _321(url, file.name)]);
|
|
@@ -14834,7 +14850,7 @@ function MarkdownEditor({
|
|
|
14834
14850
|
type: "file",
|
|
14835
14851
|
className: "hidden",
|
|
14836
14852
|
onChange: handleFileInputChange,
|
|
14837
|
-
accept: `${
|
|
14853
|
+
accept: `${_chunkTHY2XVGYcjs.IMAGE_FILE_ACCEPT},.pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.zip,.txt`
|
|
14838
14854
|
}
|
|
14839
14855
|
),
|
|
14840
14856
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEditorHeightContext.Provider, { value: height, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _react.Suspense, { fallback: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MarkdownEditorFieldSkeleton, { height }), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15248,7 +15264,7 @@ function matchesAccept2(file, accept) {
|
|
|
15248
15264
|
return patterns.some((pattern) => {
|
|
15249
15265
|
if (pattern.startsWith(".")) return fileName.endsWith(pattern);
|
|
15250
15266
|
if (pattern.endsWith("/*"))
|
|
15251
|
-
return fileType.startsWith(pattern.slice(0, -1)) ||
|
|
15267
|
+
return fileType.startsWith(pattern.slice(0, -1)) || _chunkTHY2XVGYcjs.fileMediaType.call(void 0, file) === pattern.slice(0, -2);
|
|
15252
15268
|
return fileType === pattern;
|
|
15253
15269
|
});
|
|
15254
15270
|
}
|
|
@@ -15256,7 +15272,7 @@ function ImageUploader({
|
|
|
15256
15272
|
value,
|
|
15257
15273
|
onChange,
|
|
15258
15274
|
onRemove,
|
|
15259
|
-
accept =
|
|
15275
|
+
accept = _chunkTHY2XVGYcjs.IMAGE_FILE_ACCEPT,
|
|
15260
15276
|
maxSize = DEFAULT_MAX_SIZE,
|
|
15261
15277
|
label = "Cover Image",
|
|
15262
15278
|
description = "(Click Here or Drag and Drop)",
|
|
@@ -15368,7 +15384,7 @@ function ImageUploader({
|
|
|
15368
15384
|
src: resolvedValue,
|
|
15369
15385
|
alt,
|
|
15370
15386
|
fill: true,
|
|
15371
|
-
sizes:
|
|
15387
|
+
sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.full,
|
|
15372
15388
|
unoptimized: true,
|
|
15373
15389
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
15374
15390
|
"pointer-events-none",
|
|
@@ -15488,13 +15504,13 @@ function ColorPresetSelect({
|
|
|
15488
15504
|
...presets.map((p) => ({
|
|
15489
15505
|
id: p.key,
|
|
15490
15506
|
label: p.label,
|
|
15491
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15507
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ColorSwatch, { color: p.color }),
|
|
15492
15508
|
onClick: () => onChange({ color: p.color, preset: p.key })
|
|
15493
15509
|
})),
|
|
15494
15510
|
{
|
|
15495
15511
|
id: CUSTOM_PRESET_KEY,
|
|
15496
15512
|
label: "Custom",
|
|
15497
|
-
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15513
|
+
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ColorSwatch, { color: isCustom ? value : DEFAULT_CUSTOM_STATUS_COLOR }),
|
|
15498
15514
|
onClick: () => onChange({ color: value, preset: void 0 })
|
|
15499
15515
|
}
|
|
15500
15516
|
]
|
|
@@ -15511,7 +15527,7 @@ function ColorPresetSelect({
|
|
|
15511
15527
|
{
|
|
15512
15528
|
disabled,
|
|
15513
15529
|
"aria-label": `Color: ${displayLabel}`,
|
|
15514
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15530
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ColorSwatch, { color: displayColor }),
|
|
15515
15531
|
selectedLabel: displayLabel,
|
|
15516
15532
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
15517
15533
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "group", className)
|
|
@@ -15532,7 +15548,7 @@ function HexInputs({ value, onChange }) {
|
|
|
15532
15548
|
}
|
|
15533
15549
|
const commit = () => {
|
|
15534
15550
|
const candidate = (draft.startsWith("#") ? draft : `#${draft}`).toLowerCase();
|
|
15535
|
-
if (
|
|
15551
|
+
if (_chunk4W77VLQVcjs.HEX_PATTERN.test(candidate)) onChange(candidate);
|
|
15536
15552
|
else setDraft(value);
|
|
15537
15553
|
};
|
|
15538
15554
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -15596,12 +15612,12 @@ function ChannelInput({
|
|
|
15596
15612
|
);
|
|
15597
15613
|
}
|
|
15598
15614
|
function RgbInputs({ value, onChange }) {
|
|
15599
|
-
const rgb = _nullishCoalesce(
|
|
15615
|
+
const rgb = _nullishCoalesce(_chunk4W77VLQVcjs.hexToRgb.call(void 0, value), () => ( { r: 0, g: 0, b: 0 }));
|
|
15600
15616
|
const update = (next) => {
|
|
15601
15617
|
const r = _nullishCoalesce(next.r, () => ( rgb.r));
|
|
15602
15618
|
const g = _nullishCoalesce(next.g, () => ( rgb.g));
|
|
15603
15619
|
const b = _nullishCoalesce(next.b, () => ( rgb.b));
|
|
15604
|
-
onChange(
|
|
15620
|
+
onChange(_chunk4W77VLQVcjs.rgbToHex.call(void 0, r, g, b));
|
|
15605
15621
|
};
|
|
15606
15622
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15607
15623
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChannelInput, { value: rgb.r, min: 0, max: 255, ariaLabel: "Red", onCommit: (r) => update({ r }) }),
|
|
@@ -15610,14 +15626,14 @@ function RgbInputs({ value, onChange }) {
|
|
|
15610
15626
|
] });
|
|
15611
15627
|
}
|
|
15612
15628
|
function HslInputs({ value, onChange }) {
|
|
15613
|
-
const rgb = _nullishCoalesce(
|
|
15614
|
-
const hsl =
|
|
15629
|
+
const rgb = _nullishCoalesce(_chunk4W77VLQVcjs.hexToRgb.call(void 0, value), () => ( { r: 0, g: 0, b: 0 }));
|
|
15630
|
+
const hsl = _chunk4W77VLQVcjs.rgbToHsl.call(void 0, rgb.r, rgb.g, rgb.b);
|
|
15615
15631
|
const update = (next) => {
|
|
15616
15632
|
const h = _nullishCoalesce(next.h, () => ( hsl.h));
|
|
15617
15633
|
const s = _nullishCoalesce(next.s, () => ( hsl.s));
|
|
15618
15634
|
const l = _nullishCoalesce(next.l, () => ( hsl.l));
|
|
15619
|
-
const out =
|
|
15620
|
-
onChange(
|
|
15635
|
+
const out = _chunk4W77VLQVcjs.hslToRgb.call(void 0, h, s, l);
|
|
15636
|
+
onChange(_chunk4W77VLQVcjs.rgbToHex.call(void 0, out.r, out.g, out.b));
|
|
15621
15637
|
};
|
|
15622
15638
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
15623
15639
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ChannelInput, { value: hsl.h, min: 0, max: 360, ariaLabel: "Hue", onCommit: (h) => update({ h }) }),
|
|
@@ -15649,7 +15665,7 @@ function ColorPickerInput({
|
|
|
15649
15665
|
{
|
|
15650
15666
|
disabled,
|
|
15651
15667
|
"aria-label": "Pick custom color",
|
|
15652
|
-
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15668
|
+
startIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ColorSwatch, { color: value }),
|
|
15653
15669
|
selectedLabel: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "uppercase", children: value }),
|
|
15654
15670
|
endIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TriggerChevron, {}),
|
|
15655
15671
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "group", className)
|
|
@@ -15730,7 +15746,7 @@ function TicketStatusConfigRow({
|
|
|
15730
15746
|
const previewVariant = _nullishCoalesce(systemTagVariant, () => ( (isSystem ? void 0 : "primary")));
|
|
15731
15747
|
const fieldRowOffset = "mt-[calc(var(--font-line-space-h4-body)+0.25rem)]";
|
|
15732
15748
|
const chip = /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15733
|
-
|
|
15749
|
+
_chunkJLKGLPDCcjs.TicketStatusTag,
|
|
15734
15750
|
{
|
|
15735
15751
|
loading,
|
|
15736
15752
|
status: statusKey,
|
|
@@ -15847,9 +15863,9 @@ function TicketStatusConfigRow({
|
|
|
15847
15863
|
),
|
|
15848
15864
|
children: [
|
|
15849
15865
|
!isSystem && moveButtons,
|
|
15850
|
-
isSystem ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-11 justify-center content-md:w-12", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15866
|
+
isSystem ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex w-11 justify-center content-md:w-12", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLW2VL5Wcjs.TouchFriendlyTooltip, { content: systemTooltip, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { variant: "bare", size: "icon-sm", type: "button", "aria-label": _nullishCoalesce(systemTooltip, () => ( "System status")), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRHC2FRVEcjs.InfoCircleIcon, { size: 24 }) }) }) }) : (
|
|
15851
15867
|
// The delete button is a static control: drawn for real in both forms, inert while the status is read.
|
|
15852
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { loading, className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15868
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { loading, className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLW2VL5Wcjs.TouchFriendlyTooltip, { content: deleteDisabled && !loading ? deleteDisabledReason : void 0, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15853
15869
|
_chunkAHBTZ7DNcjs.Button,
|
|
15854
15870
|
{
|
|
15855
15871
|
type: "button",
|
|
@@ -15890,7 +15906,7 @@ var TEST_RESULTS_SKELETON_COLUMNS = 6;
|
|
|
15890
15906
|
function TestResultsSkeleton({
|
|
15891
15907
|
region = true
|
|
15892
15908
|
} = {}) {
|
|
15893
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading the test results", announce: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15909
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkLKQ33CMYcjs.LoadingRegion, { label: "Loading the test results", announce: region, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ScrollShadow, { axis: "horizontal", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-max min-w-full flex-col", children: [
|
|
15894
15910
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex", ROW_SHELL_CLASSES), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: TEST_RESULTS_SKELETON_COLUMNS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-12 shrink-0 items-center", style: { width: RESULT_COLUMN_MIN_WIDTH }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h5", className: "w-3/4" }) }) }) }),
|
|
15895
15911
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: DATA_TABLE_ROW_FRAME_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex", ROW_SHELL_CLASSES, ROW_HEIGHT_DESKTOP), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count: TEST_RESULTS_SKELETON_COLUMNS, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-loading-item": true, className: "shrink-0", style: { width: RESULT_COLUMN_MIN_WIDTH }, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h4", className: "w-3/4" }) }) }) }) })
|
|
15896
15912
|
] }) }) });
|
|
@@ -15926,13 +15942,13 @@ function TestResultsTable({ rows, loading: loadingProp }) {
|
|
|
15926
15942
|
if (loading) {
|
|
15927
15943
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TestResultsSkeleton, {});
|
|
15928
15944
|
}
|
|
15929
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
15945
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ScrollShadow, { axis: "horizontal", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: { minWidth: Math.max(1, columnKeys.length) * RESULT_COLUMN_MIN_WIDTH }, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, DataTable, { table, children: [
|
|
15930
15946
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Header, { className: "flex flex-col" }),
|
|
15931
15947
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DataTable.Body, { loading: false })
|
|
15932
15948
|
] }) }) });
|
|
15933
15949
|
}
|
|
15934
15950
|
function TestRunErrorBanner({ error, className }) {
|
|
15935
|
-
const { copy } =
|
|
15951
|
+
const { copy } = _chunkAZJYMTBScjs.useCopyToClipboard.call(void 0, { successDescription: "Error message copied to clipboard" });
|
|
15936
15952
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
15937
15953
|
"div",
|
|
15938
15954
|
{
|
|
@@ -15991,7 +16007,7 @@ var TEST_RUN_STATUS_TAGS = {
|
|
|
15991
16007
|
function TestRunStatusStat({ status, className }) {
|
|
15992
16008
|
const tag = status === "idle" ? null : TEST_RUN_STATUS_TAGS[status];
|
|
15993
16009
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 flex-col items-start justify-center gap-[var(--spacing-system-xxs)]", className), children: [
|
|
15994
|
-
tag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16010
|
+
tag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { label: tag.label, variant: tag.variant, className: "pointer-events-none" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h4", children: "-" }),
|
|
15995
16011
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: "Status" })
|
|
15996
16012
|
] });
|
|
15997
16013
|
}
|
|
@@ -16035,7 +16051,7 @@ function useTestRunState(campaign) {
|
|
|
16035
16051
|
const stopReason = _nullishCoalesce(campaign.stopReason, () => ( "completed"));
|
|
16036
16052
|
const status = isActive ? "running" : hasRun && isFinished ? stopReason === "completed" ? firstError ? "error" : "success" : stopReason : "idle";
|
|
16037
16053
|
const showTiming = hasRun && campaign.startedAt !== null && (campaign.isRunning || isFinished);
|
|
16038
|
-
const startedLabel = showTiming && campaign.startedAt ?
|
|
16054
|
+
const startedLabel = showTiming && campaign.startedAt ? _chunkKVJKKVB3cjs.formatTime.call(void 0, campaign.startedAt) : "00:00 PM";
|
|
16039
16055
|
const durationLabel = showTiming ? formatTestRunDuration(durationMs) : "00:00:00";
|
|
16040
16056
|
const displayRows = _react.useMemo.call(void 0,
|
|
16041
16057
|
() => campaign.results.map(
|
|
@@ -16074,7 +16090,7 @@ function TicketAttachmentsList({ attachments, className, size = "default" }) {
|
|
|
16074
16090
|
),
|
|
16075
16091
|
children: [
|
|
16076
16092
|
attachment.thumbnailSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16077
|
-
|
|
16093
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
16078
16094
|
{
|
|
16079
16095
|
src: attachment.thumbnailSrc,
|
|
16080
16096
|
alt: attachment.fileName,
|
|
@@ -16172,7 +16188,7 @@ function TicketNoteCard({ note, onEdit, onDelete, className }) {
|
|
|
16172
16188
|
};
|
|
16173
16189
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex items-start gap-4 rounded-[6px] p-3", "border border-ods-border bg-ods-card", className), children: [
|
|
16174
16190
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16175
|
-
|
|
16191
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
16176
16192
|
{
|
|
16177
16193
|
src: note.authorAvatar,
|
|
16178
16194
|
alt: note.authorName,
|
|
@@ -16357,7 +16373,7 @@ function TicketInfoSection({
|
|
|
16357
16373
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-2 items-center gap-4 border-b border-ods-border bg-ods-card px-4 py-3 content-lg:grid-cols-[1fr_1fr_1fr_auto]", children: [
|
|
16358
16374
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-2", children: [
|
|
16359
16375
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16360
|
-
|
|
16376
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
16361
16377
|
{
|
|
16362
16378
|
src: _optionalChain([organization, 'optionalAccess', _357 => _357.imageSrc]),
|
|
16363
16379
|
alt: _optionalChain([organization, 'optionalAccess', _358 => _358.name]),
|
|
@@ -16387,7 +16403,7 @@ function TicketInfoSection({
|
|
|
16387
16403
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: _optionalChain([device, 'optionalAccess', _361 => _361.name]) || "Unassigned", label: "Device", icon: _optionalChain([device, 'optionalAccess', _362 => _362.icon]), onClick: _optionalChain([device, 'optionalAccess', _363 => _363.onClick]) }),
|
|
16388
16404
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-4", children: [
|
|
16389
16405
|
(status || statusLabel) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16390
|
-
|
|
16406
|
+
_chunkJLKGLPDCcjs.TicketStatusTag,
|
|
16391
16407
|
{
|
|
16392
16408
|
status: _nullishCoalesce(status, () => ( "")),
|
|
16393
16409
|
label: statusLabel,
|
|
@@ -16417,9 +16433,9 @@ function TicketInfoSection({
|
|
|
16417
16433
|
expanded && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
16418
16434
|
createdAt && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-2 items-center gap-4 border-b border-ods-border bg-ods-bg px-4 py-3", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, InfoCell, { value: createdAt, label: "Created" }) }),
|
|
16419
16435
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-4 border-b border-ods-border bg-ods-bg p-4", children: [
|
|
16420
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16436
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF2VN3UUBcjs.SimpleMarkdownRenderer, { content: description }),
|
|
16421
16437
|
attachments && attachments.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Attachments", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketAttachmentsList, { attachments }) }),
|
|
16422
|
-
tags && tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Tags", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-wrap gap-2", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16438
|
+
tags && tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Tags", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-wrap gap-2", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { label: tag, variant: "outline", className: "max-w-full" }, tag)) }) }),
|
|
16423
16439
|
(notes || onAddNote) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TicketDetailSection, { label: "Notes", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16424
16440
|
TicketNotesSection,
|
|
16425
16441
|
{
|
|
@@ -16442,8 +16458,8 @@ function renderTicketStatusOption(option, isSelected) {
|
|
|
16442
16458
|
const { label, color } = option;
|
|
16443
16459
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-[var(--spacing-system-xs)]", children: [
|
|
16444
16460
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16445
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16446
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16461
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ColorSwatch, { color }),
|
|
16462
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16447
16463
|
] }),
|
|
16448
16464
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16449
16465
|
] });
|
|
@@ -16452,8 +16468,8 @@ function renderTicketAssigneeOption(option, isSelected) {
|
|
|
16452
16468
|
const { label, imageUrl } = option;
|
|
16453
16469
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-[var(--spacing-system-xs)]", children: [
|
|
16454
16470
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
16455
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16456
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16471
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "round" }),
|
|
16472
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { className: "text-inherit", children: label }) })
|
|
16457
16473
|
] }),
|
|
16458
16474
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
16459
16475
|
] });
|
|
@@ -16487,9 +16503,9 @@ function TakeOverTicketModal({
|
|
|
16487
16503
|
if (!selectedStatusId || !assigneeId || isPending) return;
|
|
16488
16504
|
onConfirm({ statusId: selectedStatusId, assigneeId });
|
|
16489
16505
|
};
|
|
16490
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16506
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16491
16507
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16492
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16508
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalTitle, { children: "Take Over Ticket" }) }),
|
|
16493
16509
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
16494
16510
|
"The ticket ",
|
|
16495
16511
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -16497,19 +16513,19 @@ function TakeOverTicketModal({
|
|
|
16497
16513
|
] }),
|
|
16498
16514
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16499
16515
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16500
|
-
|
|
16516
|
+
_chunk66ZQ7LDRcjs.Autocomplete,
|
|
16501
16517
|
{
|
|
16502
16518
|
label: "Status",
|
|
16503
16519
|
options: statusOptions,
|
|
16504
16520
|
value: selectedStatusId,
|
|
16505
16521
|
onChange: setStatusId,
|
|
16506
16522
|
placeholder: "Select Status",
|
|
16507
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16523
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
16508
16524
|
renderOption: renderTicketStatusOption
|
|
16509
16525
|
}
|
|
16510
16526
|
) }),
|
|
16511
16527
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16512
|
-
|
|
16528
|
+
_chunk66ZQ7LDRcjs.Autocomplete,
|
|
16513
16529
|
{
|
|
16514
16530
|
label: "Assigned",
|
|
16515
16531
|
options: assigneeOptions,
|
|
@@ -16518,7 +16534,7 @@ function TakeOverTicketModal({
|
|
|
16518
16534
|
placeholder: "Select Technician",
|
|
16519
16535
|
loading: assigneesLoading,
|
|
16520
16536
|
startAdornment: selectedAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16521
|
-
|
|
16537
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
16522
16538
|
{
|
|
16523
16539
|
src: selectedAssignee.imageUrl,
|
|
16524
16540
|
alt: selectedAssignee.label,
|
|
@@ -16531,7 +16547,7 @@ function TakeOverTicketModal({
|
|
|
16531
16547
|
}
|
|
16532
16548
|
) })
|
|
16533
16549
|
] }),
|
|
16534
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16550
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.ModalFooter, { children: [
|
|
16535
16551
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
16536
16552
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
16537
16553
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16590,9 +16606,9 @@ function ReopenTicketModal({
|
|
|
16590
16606
|
reason: trimmedReason ? trimmedReason.slice(0, REASON_MAX_LENGTH) : null
|
|
16591
16607
|
});
|
|
16592
16608
|
};
|
|
16593
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16609
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16594
16610
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16595
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16611
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
16596
16612
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: [
|
|
16597
16613
|
"The ticket ",
|
|
16598
16614
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-accent", children: ticketRef }),
|
|
@@ -16600,19 +16616,19 @@ function ReopenTicketModal({
|
|
|
16600
16616
|
] }),
|
|
16601
16617
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-col gap-[var(--spacing-system-l)] md:flex-row", children: [
|
|
16602
16618
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16603
|
-
|
|
16619
|
+
_chunk66ZQ7LDRcjs.Autocomplete,
|
|
16604
16620
|
{
|
|
16605
16621
|
label: "Status",
|
|
16606
16622
|
options: statusOptions,
|
|
16607
16623
|
value: selectedStatusId,
|
|
16608
16624
|
onChange: setStatusId,
|
|
16609
16625
|
placeholder: "Select Status",
|
|
16610
|
-
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16626
|
+
startAdornment: selectedStatus ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ColorSwatch, { color: selectedStatus.color }) : void 0,
|
|
16611
16627
|
renderOption: renderTicketStatusOption
|
|
16612
16628
|
}
|
|
16613
16629
|
) }),
|
|
16614
16630
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16615
|
-
|
|
16631
|
+
_chunk66ZQ7LDRcjs.Autocomplete,
|
|
16616
16632
|
{
|
|
16617
16633
|
label: "Assigned",
|
|
16618
16634
|
options: assigneeOptions,
|
|
@@ -16621,7 +16637,7 @@ function ReopenTicketModal({
|
|
|
16621
16637
|
placeholder: "Select Technician",
|
|
16622
16638
|
loading: assigneesLoading,
|
|
16623
16639
|
startAdornment: selectedAssignee ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16624
|
-
|
|
16640
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
16625
16641
|
{
|
|
16626
16642
|
src: selectedAssignee.imageUrl,
|
|
16627
16643
|
alt: selectedAssignee.label,
|
|
@@ -16645,7 +16661,7 @@ function ReopenTicketModal({
|
|
|
16645
16661
|
disabled: isPending
|
|
16646
16662
|
}
|
|
16647
16663
|
) }),
|
|
16648
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16664
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.ModalFooter, { children: [
|
|
16649
16665
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1 md:hidden", children: "Cancel" }),
|
|
16650
16666
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "hidden flex-1 md:block" }),
|
|
16651
16667
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -16694,9 +16710,9 @@ function ReopenTicketRequestModal({
|
|
|
16694
16710
|
...showHandoffOption ? { handoffToTechnician: handoff } : {}
|
|
16695
16711
|
});
|
|
16696
16712
|
};
|
|
16697
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16713
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.Modal, { isOpen, onClose: isPending ? () => {
|
|
16698
16714
|
} : onClose, className: "text-left md:max-w-[600px]", children: [
|
|
16699
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16715
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalHeader, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ModalTitle, { children: "Reopen Ticket" }) }),
|
|
16700
16716
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-primary text-h4", children: "This ticket will be reopened and the AI assistant will continue helping you." }),
|
|
16701
16717
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16702
16718
|
Textarea,
|
|
@@ -16720,7 +16736,7 @@ function ReopenTicketRequestModal({
|
|
|
16720
16736
|
disabled: isPending
|
|
16721
16737
|
}
|
|
16722
16738
|
),
|
|
16723
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
16739
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkKVJKKVB3cjs.ModalFooter, { children: [
|
|
16724
16740
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", onClick: onClose, disabled: isPending, className: "flex-1", children: "Cancel" }),
|
|
16725
16741
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "accent", onClick: handleConfirm, loading: isPending, className: "flex-1", children: "Reopen Ticket" })
|
|
16726
16742
|
] })
|
|
@@ -16742,11 +16758,9 @@ var COLUMN_GAP_PX = 12;
|
|
|
16742
16758
|
var EAGER_PHOTOS_PER_COLUMN = 2;
|
|
16743
16759
|
var FILL_FACTOR = 1.25;
|
|
16744
16760
|
var MAX_REPEATS = 8;
|
|
16745
|
-
var PHOTO_WIDTH_STEPS_PX = [240, 360, 480, 640, 960];
|
|
16746
16761
|
var MAX_PIXEL_DENSITY = 2;
|
|
16747
16762
|
function photoWallRequestWidth(columnWidth, pixelDensity) {
|
|
16748
|
-
|
|
16749
|
-
return _nullishCoalesce(PHOTO_WIDTH_STEPS_PX.find((step) => step >= needed), () => ( null));
|
|
16763
|
+
return _chunkVXXOUM2Kcjs.imageWidthFor.call(void 0, columnWidth * Math.min(Math.max(1, pixelDensity), MAX_PIXEL_DENSITY));
|
|
16750
16764
|
}
|
|
16751
16765
|
function photoOrientation(naturalWidth, naturalHeight) {
|
|
16752
16766
|
if (!(naturalWidth > 0) || !(naturalHeight > 0)) return "wide";
|
|
@@ -16858,7 +16872,7 @@ function PhotoWall({
|
|
|
16858
16872
|
for (const image of images) if (!byUrl.has(image.url)) byUrl.set(image.url, image);
|
|
16859
16873
|
return Array.from(byUrl.values());
|
|
16860
16874
|
}, [images, requestWidth, inScope, sizedUpFront]);
|
|
16861
|
-
const drawnWidth = sizedUpFront ? void 0 :
|
|
16875
|
+
const drawnWidth = sizedUpFront ? void 0 : requestWidth;
|
|
16862
16876
|
const drawnUrl = _react.useCallback.call(void 0, (url) => drawnWidth ? _chunkKUXHXLJQcjs.resizedImageUrl.call(void 0, url, drawnWidth) : url, [drawnWidth]);
|
|
16863
16877
|
const known = _react.useMemo.call(void 0, () => {
|
|
16864
16878
|
const byUrl = /* @__PURE__ */ new Map();
|
|
@@ -16902,7 +16916,7 @@ function PhotoWall({
|
|
|
16902
16916
|
gap: COLUMN_GAP_PX
|
|
16903
16917
|
};
|
|
16904
16918
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: rootRef, "aria-hidden": "true", className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid overflow-hidden", className), style: gridStyle, children: columnsToDraw ? columnsToDraw.map((column, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
16905
|
-
|
|
16919
|
+
_chunkF2VN3UUBcjs.MarqueeWall,
|
|
16906
16920
|
{
|
|
16907
16921
|
axis: "y",
|
|
16908
16922
|
reverse: index % 2 === 1,
|
|
@@ -17038,7 +17052,7 @@ function LazyMount({
|
|
|
17038
17052
|
// src/components/ui/app-window-frame.tsx
|
|
17039
17053
|
|
|
17040
17054
|
function AppWindowFrame({ title, children, footer, agent, className, bodyClassName }) {
|
|
17041
|
-
const tint =
|
|
17055
|
+
const tint = _chunk4W77VLQVcjs.useAgentTint.call(void 0, agent);
|
|
17042
17056
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17043
17057
|
"div",
|
|
17044
17058
|
{
|
|
@@ -17132,7 +17146,7 @@ function ProductScreenFrame({
|
|
|
17132
17146
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "ods-content-area", pending && "product-screen-pending"),
|
|
17133
17147
|
style: screenStyle,
|
|
17134
17148
|
children: [
|
|
17135
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingScope, { bare: true, active: pending, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17149
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "ods-content-scope", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingScope, { bare: true, active: pending, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.PagePicture, { children }) }) }),
|
|
17136
17150
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: setPortalHost, style: { display: "contents" } })
|
|
17137
17151
|
]
|
|
17138
17152
|
}
|
|
@@ -17270,7 +17284,7 @@ function PhoneFrame({ dateLabel, timeLabel, children, className }) {
|
|
|
17270
17284
|
"div",
|
|
17271
17285
|
{
|
|
17272
17286
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "h-[617px] w-[299px] shrink-0 rounded-[48px] border border-ods-border bg-black p-2.5", className),
|
|
17273
|
-
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]",
|
|
17287
|
+
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "relative flex h-full flex-col overflow-hidden rounded-[38px]", _chunk66ZQ7LDRcjs.DEVICE_WALLPAPER_CLASS), children: [
|
|
17274
17288
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
17275
17289
|
"div",
|
|
17276
17290
|
{
|
|
@@ -17462,7 +17476,7 @@ var TRIAL_TERM_ICONS = {
|
|
|
17462
17476
|
};
|
|
17463
17477
|
var DEFAULT_TRIAL_TERMS = ["cancel", "length", "noContract"];
|
|
17464
17478
|
function trialBenefits(trialDays, terms = DEFAULT_TRIAL_TERMS) {
|
|
17465
|
-
const labels =
|
|
17479
|
+
const labels = _chunkNBLQFJ4Icjs.trialLabels.call(void 0, trialDays);
|
|
17466
17480
|
return terms.flatMap((term) => {
|
|
17467
17481
|
const label = labels[term];
|
|
17468
17482
|
return label ? [{ icon: TRIAL_TERM_ICONS[term], label }] : [];
|
|
@@ -17569,7 +17583,7 @@ function AnalyzingState({ label, className }) {
|
|
|
17569
17583
|
}) }),
|
|
17570
17584
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5 text-center text-ods-text-secondary text-h4", children: [
|
|
17571
17585
|
label,
|
|
17572
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17586
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKVJKKVB3cjs.ChatTypingIndicator, { "aria-hidden": true, size: "sm", dotClassName: "bg-ods-text-secondary motion-reduce:animate-none" })
|
|
17573
17587
|
] })
|
|
17574
17588
|
] });
|
|
17575
17589
|
}
|
|
@@ -17583,7 +17597,7 @@ var INCIDENT_TONE = {
|
|
|
17583
17597
|
approved: "success"
|
|
17584
17598
|
};
|
|
17585
17599
|
function IncidentStatusLine({ status, label, className }) {
|
|
17586
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17600
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.StatusLine, { tone: INCIDENT_TONE[status], label, className });
|
|
17587
17601
|
}
|
|
17588
17602
|
var FEED_CLASS = "flex min-h-0 flex-1 flex-col gap-3 overflow-hidden p-4 md:px-5";
|
|
17589
17603
|
var FEED_BOTTOM_CLASS = "justify-end [mask-image:linear-gradient(180deg,transparent_0,#000_48px)]";
|
|
@@ -17816,7 +17830,7 @@ function SnapCarousel({
|
|
|
17816
17830
|
const goNext = _react.useCallback.call(void 0, () => goTo(index >= count - 1 ? 0 : index + 1), [count, goTo, index]);
|
|
17817
17831
|
const canAutoAdvance = autoAdvanceMs > 0 && count > 1;
|
|
17818
17832
|
const playing = auto.playing && canAutoAdvance;
|
|
17819
|
-
const ranMs =
|
|
17833
|
+
const ranMs = _chunkAZJYMTBScjs.useResumableTimeout.call(void 0, {
|
|
17820
17834
|
running: playing,
|
|
17821
17835
|
durationMs: autoAdvanceMs,
|
|
17822
17836
|
resetKey: index,
|
|
@@ -17948,7 +17962,7 @@ function SuperUserBannerView({
|
|
|
17948
17962
|
endAdornment: (
|
|
17949
17963
|
// Below `md` the chip would take the width the tenant name needs, and
|
|
17950
17964
|
// the name is the point of the strip: the chip waits for `md`.
|
|
17951
|
-
environmentLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
17965
|
+
environmentLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { variant: "critical", label: environmentLabel, className: "uppercase max-md:hidden" }) : void 0
|
|
17952
17966
|
)
|
|
17953
17967
|
}
|
|
17954
17968
|
);
|
|
@@ -18167,10 +18181,10 @@ function AccountDetailsFields({
|
|
|
18167
18181
|
onKeyDown,
|
|
18168
18182
|
layout = "stacked"
|
|
18169
18183
|
}) {
|
|
18170
|
-
const firstNameErr =
|
|
18171
|
-
const lastNameErr =
|
|
18172
|
-
const passwordErr =
|
|
18173
|
-
const confirmErr =
|
|
18184
|
+
const firstNameErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _376 => _376.firstName]), firstName);
|
|
18185
|
+
const lastNameErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _377 => _377.lastName]), lastName);
|
|
18186
|
+
const passwordErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _378 => _378.password]), password);
|
|
18187
|
+
const confirmErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _379 => _379.confirmPassword]), confirmPassword);
|
|
18174
18188
|
const names = [
|
|
18175
18189
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18176
18190
|
_chunkTTZEDDR5cjs.Input,
|
|
@@ -18388,16 +18402,16 @@ function LabeledDivider({ label }) {
|
|
|
18388
18402
|
var PROVIDER_META = {
|
|
18389
18403
|
openframe: {
|
|
18390
18404
|
name: "OpenFrame",
|
|
18391
|
-
Icon:
|
|
18405
|
+
Icon: _chunkVXXOUM2Kcjs.requireIcon.call(void 0, {
|
|
18392
18406
|
set: "OpenframeLogoIcon",
|
|
18393
18407
|
color: "var(--color-text-primary)",
|
|
18394
18408
|
secondaryColor: "var(--color-accent-primary)",
|
|
18395
18409
|
ownColor: true
|
|
18396
18410
|
})
|
|
18397
18411
|
},
|
|
18398
|
-
google: { name: "Google", Icon:
|
|
18399
|
-
microsoft: { name: "Microsoft", Icon:
|
|
18400
|
-
apple: { name: "Apple", Icon:
|
|
18412
|
+
google: { name: "Google", Icon: _chunkVXXOUM2Kcjs.requireIcon.call(void 0, { set: "GoogleLogoIcon" }) },
|
|
18413
|
+
microsoft: { name: "Microsoft", Icon: _chunkVXXOUM2Kcjs.requireIcon.call(void 0, { set: "MicrosoftLogoIcon" }) },
|
|
18414
|
+
apple: { name: "Apple", Icon: _chunkVXXOUM2Kcjs.requireIcon.call(void 0, { set: "AppleLogoIcon" }) }
|
|
18401
18415
|
};
|
|
18402
18416
|
var SSO_PROVIDER_BUTTONS_CLASS = "flex flex-col gap-[var(--spacing-system-l)]";
|
|
18403
18417
|
var SSO_PROVIDERS_SKELETON_COUNT = 3;
|
|
@@ -18436,7 +18450,7 @@ function SsoProviderButtons({
|
|
|
18436
18450
|
// where a long organization name would otherwise push the label out of a phone-width
|
|
18437
18451
|
// button. `block` over its inline-flex, because an ellipsis only renders on a block box.
|
|
18438
18452
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18439
|
-
|
|
18453
|
+
_chunkPRCGRDHVcjs.StatusBadge,
|
|
18440
18454
|
{
|
|
18441
18455
|
text: tag,
|
|
18442
18456
|
variant: "button",
|
|
@@ -18496,7 +18510,7 @@ function CompleteAccountForm({
|
|
|
18496
18510
|
),
|
|
18497
18511
|
children: [
|
|
18498
18512
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18499
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18513
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkTHY2XVGYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18500
18514
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18501
18515
|
] }),
|
|
18502
18516
|
(ssoProvidersLoading || ssoProviders && ssoProviders.length > 0) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -18630,9 +18644,9 @@ function CreateOrganizationForm({
|
|
|
18630
18644
|
}) {
|
|
18631
18645
|
const hasSso = !!ssoProviders && ssoProviders.length > 0;
|
|
18632
18646
|
const fieldsDisabled = disabled || loading;
|
|
18633
|
-
const emailErr =
|
|
18634
|
-
const orgNameErr =
|
|
18635
|
-
const domainErr =
|
|
18647
|
+
const emailErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _381 => _381.email]), _nullishCoalesce(email, () => ( "")));
|
|
18648
|
+
const orgNameErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _382 => _382.organizationName]), organizationName);
|
|
18649
|
+
const domainErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _383 => _383.domain]), domain);
|
|
18636
18650
|
const handleKeyDown = (event) => {
|
|
18637
18651
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
18638
18652
|
onSubmit();
|
|
@@ -18647,7 +18661,7 @@ function CreateOrganizationForm({
|
|
|
18647
18661
|
),
|
|
18648
18662
|
children: [
|
|
18649
18663
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18650
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18664
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkTHY2XVGYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18651
18665
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle === null ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: CREATE_ORGANIZATION_SUBTITLE_BAR_CLASS }) : subtitle })
|
|
18652
18666
|
] }),
|
|
18653
18667
|
email === void 0 ? null : emailReadOnly && emailReadOnlyLabel === null ? (
|
|
@@ -18794,7 +18808,7 @@ function InviteLinkInvalidModal({
|
|
|
18794
18808
|
),
|
|
18795
18809
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full max-w-[600px] flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xl)]", children: [
|
|
18796
18810
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-mf)]", children: [
|
|
18797
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18811
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "flex-1 tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkTHY2XVGYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18798
18812
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
18799
18813
|
_chunkAHBTZ7DNcjs.Button,
|
|
18800
18814
|
{
|
|
@@ -18860,7 +18874,7 @@ function LoginForm({
|
|
|
18860
18874
|
}) {
|
|
18861
18875
|
const fieldDisabled = disabled || loading;
|
|
18862
18876
|
const providersDisabled = fieldDisabled || ssoDisabled;
|
|
18863
|
-
const emailErr =
|
|
18877
|
+
const emailErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _390 => _390.email]), email);
|
|
18864
18878
|
const handleKeyDown = (event) => {
|
|
18865
18879
|
if (event.key !== "Enter" || event.repeat || fieldDisabled) return;
|
|
18866
18880
|
if (onSubmitClick) {
|
|
@@ -18878,7 +18892,7 @@ function LoginForm({
|
|
|
18878
18892
|
),
|
|
18879
18893
|
children: [
|
|
18880
18894
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
18881
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
18895
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkTHY2XVGYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
18882
18896
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
18883
18897
|
] }),
|
|
18884
18898
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19005,7 +19019,7 @@ function NoAccountNotice({
|
|
|
19005
19019
|
),
|
|
19006
19020
|
children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full max-w-[600px] flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-card p-[var(--spacing-system-xl)]", children: [
|
|
19007
19021
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19008
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19022
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkTHY2XVGYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19009
19023
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: description })
|
|
19010
19024
|
] }),
|
|
19011
19025
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkAHBTZ7DNcjs.Button, { type: "button", variant: "outline", fullWidth: true, onClick: onBackToLogin, children: backLabel })
|
|
@@ -19038,8 +19052,8 @@ function OpenFrameSsoLoginForm({
|
|
|
19038
19052
|
className
|
|
19039
19053
|
}) {
|
|
19040
19054
|
const fieldsDisabled = disabled || loading;
|
|
19041
|
-
const emailErr =
|
|
19042
|
-
const passwordErr =
|
|
19055
|
+
const emailErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _394 => _394.email]), email);
|
|
19056
|
+
const passwordErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _395 => _395.password]), password);
|
|
19043
19057
|
const handleKeyDown = (event) => {
|
|
19044
19058
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19045
19059
|
onSubmit();
|
|
@@ -19054,7 +19068,7 @@ function OpenFrameSsoLoginForm({
|
|
|
19054
19068
|
),
|
|
19055
19069
|
children: [
|
|
19056
19070
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19057
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19071
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkTHY2XVGYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19058
19072
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19059
19073
|
] }),
|
|
19060
19074
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19144,7 +19158,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19144
19158
|
className
|
|
19145
19159
|
}) {
|
|
19146
19160
|
const fieldsDisabled = disabled || loading;
|
|
19147
|
-
const emailErr =
|
|
19161
|
+
const emailErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _396 => _396.email]), email);
|
|
19148
19162
|
const handleKeyDown = (event) => {
|
|
19149
19163
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19150
19164
|
onSubmit();
|
|
@@ -19159,7 +19173,7 @@ function OpenFrameSsoSignUpForm({
|
|
|
19159
19173
|
),
|
|
19160
19174
|
children: [
|
|
19161
19175
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
|
|
19162
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19176
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkTHY2XVGYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19163
19177
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19164
19178
|
] }),
|
|
19165
19179
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19249,8 +19263,8 @@ function PasswordResetForm({
|
|
|
19249
19263
|
className
|
|
19250
19264
|
}) {
|
|
19251
19265
|
const fieldsDisabled = disabled || loading;
|
|
19252
|
-
const passwordErr =
|
|
19253
|
-
const confirmErr =
|
|
19266
|
+
const passwordErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _397 => _397.password]), password);
|
|
19267
|
+
const confirmErr = _chunkAZJYMTBScjs.useDeferredError.call(void 0, _optionalChain([errors, 'optionalAccess', _398 => _398.confirmPassword]), confirmPassword);
|
|
19254
19268
|
const handleKeyDown = (event) => {
|
|
19255
19269
|
if (event.key === "Enter" && !fieldsDisabled && !submitDisabled) {
|
|
19256
19270
|
onSubmit();
|
|
@@ -19265,7 +19279,7 @@ function PasswordResetForm({
|
|
|
19265
19279
|
),
|
|
19266
19280
|
children: [
|
|
19267
19281
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19268
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19282
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkTHY2XVGYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19269
19283
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19270
19284
|
] }),
|
|
19271
19285
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -19386,12 +19400,12 @@ function SsoJoinForm({
|
|
|
19386
19400
|
),
|
|
19387
19401
|
children: [
|
|
19388
19402
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col", children: [
|
|
19389
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children:
|
|
19403
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h1", { className: "tracking-[-0.64px] text-ods-text-primary text-h2", children: _chunkTHY2XVGYcjs.accentSentenceMarks.call(void 0, title) }),
|
|
19390
19404
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-text-secondary text-h4", children: subtitle })
|
|
19391
19405
|
] }),
|
|
19392
19406
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-s)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-m)]", children: [
|
|
19393
19407
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19394
|
-
|
|
19408
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
19395
19409
|
{
|
|
19396
19410
|
loading: identityLoading,
|
|
19397
19411
|
size: "lg",
|
|
@@ -19409,7 +19423,7 @@ function SsoJoinForm({
|
|
|
19409
19423
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: displayName }),
|
|
19410
19424
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: organizationName })
|
|
19411
19425
|
] }) }),
|
|
19412
|
-
shownRoles.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROLES_CLASS, children: shownRoles.map((role, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19426
|
+
shownRoles.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ROLES_CLASS, children: shownRoles.map((role, i) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { loading: readingIdentity, variant: "grey", label: role }, `${role}-${i}`)) })
|
|
19413
19427
|
] }),
|
|
19414
19428
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19415
19429
|
CheckboxBlock,
|
|
@@ -19498,7 +19512,7 @@ function ProviderButton({ provider, onClick, disabled = false, loading = false }
|
|
|
19498
19512
|
disabled: disabled || isLoading,
|
|
19499
19513
|
variant: "outline",
|
|
19500
19514
|
size: "default",
|
|
19501
|
-
leftIcon: isLoading ? null : _react.createElement.call(void 0,
|
|
19515
|
+
leftIcon: isLoading ? null : _react.createElement.call(void 0, _chunkVXXOUM2Kcjs.requireIcon.call(void 0, config.icon), { className: "h-5 w-5" }),
|
|
19502
19516
|
className: `h-[56px] w-full !font-bold !text-h6 hover:bg-ods-bg-hover content-md:!w-full ${isLoading ? "cursor-wait" : "cursor-pointer"} `,
|
|
19503
19517
|
"aria-label": config.displayName,
|
|
19504
19518
|
children: isLoading ? "Signing in..." : config.displayName
|
|
@@ -19652,7 +19666,7 @@ function ChangelogManager({
|
|
|
19652
19666
|
),
|
|
19653
19667
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: hasContent ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h6", children: entry.title }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "italic text-ods-text-secondary text-h6", children: "New entry (click to edit)" }) }),
|
|
19654
19668
|
tagOptions && tagLabelOf(entry.tag) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19655
|
-
|
|
19669
|
+
_chunkPRCGRDHVcjs.StatusBadge,
|
|
19656
19670
|
{
|
|
19657
19671
|
variant: "button",
|
|
19658
19672
|
singleLine: true,
|
|
@@ -19716,9 +19730,9 @@ function ChangelogManager({
|
|
|
19716
19730
|
] }),
|
|
19717
19731
|
tagOptions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-1", children: [
|
|
19718
19732
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-ods-text-secondary", children: tagLabel }),
|
|
19719
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
19720
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19721
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
19733
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.Select, { value: _nullishCoalesce(entry.tag, () => ( "")), onValueChange: (value) => updateEntry(index, "tag", value), children: [
|
|
19734
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, { placeholder: tagLabel }) }),
|
|
19735
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: tagOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
19722
19736
|
] })
|
|
19723
19737
|
] })
|
|
19724
19738
|
] })
|
|
@@ -20011,7 +20025,7 @@ function EntityTagBadgesSkeleton({
|
|
|
20011
20025
|
}) {
|
|
20012
20026
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "aria-hidden": true, className: _chunk7JWFMAQBcjs.cn.call(void 0, TAG_ROW_CLASS, className), children: [
|
|
20013
20027
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.LoadingItems, { count, children: () => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20014
|
-
|
|
20028
|
+
_chunkPRCGRDHVcjs.StatusBadge,
|
|
20015
20029
|
{
|
|
20016
20030
|
loading: true,
|
|
20017
20031
|
text: "",
|
|
@@ -20019,7 +20033,7 @@ function EntityTagBadgesSkeleton({
|
|
|
20019
20033
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "border", _nullishCoalesce(itemClassName, () => ( TAG_SKELETON_WIDTH_CLASS)))
|
|
20020
20034
|
}
|
|
20021
20035
|
) }) }),
|
|
20022
|
-
overflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20036
|
+
overflow && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TAG_ITEM_CLASS, "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.StatusBadge, { loading: true, text: "", variant: "card", className: _chunk7JWFMAQBcjs.cn.call(void 0, "border", OVERFLOW_BADGE_SKELETON_CLASS) }) })
|
|
20023
20037
|
] });
|
|
20024
20038
|
}
|
|
20025
20039
|
function EntityTagBadges({
|
|
@@ -20047,7 +20061,7 @@ function EntityTagBadges({
|
|
|
20047
20061
|
const label = (tag.name || "").toUpperCase();
|
|
20048
20062
|
if (basePath && tag.slug) {
|
|
20049
20063
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _link2.default, { href: `${basePath}?tags=${tag.slug}`, className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20050
|
-
|
|
20064
|
+
_chunkPRCGRDHVcjs.StatusBadge,
|
|
20051
20065
|
{
|
|
20052
20066
|
text: label,
|
|
20053
20067
|
variant: "card",
|
|
@@ -20055,7 +20069,7 @@ function EntityTagBadges({
|
|
|
20055
20069
|
}
|
|
20056
20070
|
) }, key);
|
|
20057
20071
|
}
|
|
20058
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20072
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: itemClass(index), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.StatusBadge, { text: label, variant: "card", className: BADGE_CLASS }) }, key);
|
|
20059
20073
|
}),
|
|
20060
20074
|
phoneOverflow === overflow ? overflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverflowBadge, { count: overflow }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
20061
20075
|
phoneOverflow > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OverflowBadge, { count: phoneOverflow, className: "content-md:hidden" }),
|
|
@@ -20064,7 +20078,7 @@ function EntityTagBadges({
|
|
|
20064
20078
|
] });
|
|
20065
20079
|
}
|
|
20066
20080
|
function OverflowBadge({ count, className }) {
|
|
20067
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, TAG_ITEM_CLASS, className), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20081
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, TAG_ITEM_CLASS, className), "data-loading-item": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.StatusBadge, { text: `+${count}`, variant: "card", className: _chunk7JWFMAQBcjs.cn.call(void 0, BADGE_CLASS, "text-ods-text-secondary") }) });
|
|
20068
20082
|
}
|
|
20069
20083
|
|
|
20070
20084
|
// src/components/features/error-boundary.tsx
|
|
@@ -20159,7 +20173,7 @@ var SectionButton = ({
|
|
|
20159
20173
|
}
|
|
20160
20174
|
),
|
|
20161
20175
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20162
|
-
|
|
20176
|
+
_chunkPRCGRDHVcjs.StatusBadge,
|
|
20163
20177
|
{
|
|
20164
20178
|
text: section.badge.text,
|
|
20165
20179
|
variant: section.badge.variant || "button",
|
|
@@ -20178,7 +20192,7 @@ var SectionButton = ({
|
|
|
20178
20192
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full flex-wrap items-start gap-2", children: [
|
|
20179
20193
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, titleClasses, "text-h3"), style: { textAlign: "left" }, children: section.title }),
|
|
20180
20194
|
section.badge && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
20181
|
-
|
|
20195
|
+
_chunkPRCGRDHVcjs.StatusBadge,
|
|
20182
20196
|
{
|
|
20183
20197
|
text: section.badge.text,
|
|
20184
20198
|
variant: section.badge.variant || "button",
|
|
@@ -21241,15 +21255,15 @@ function useLoading() {
|
|
|
21241
21255
|
|
|
21242
21256
|
|
|
21243
21257
|
function isAlreadyThere(file, existing) {
|
|
21244
|
-
const key =
|
|
21258
|
+
const key = _chunkTHY2XVGYcjs.mediaNameKey.call(void 0, file.name);
|
|
21245
21259
|
if (!key) return false;
|
|
21246
21260
|
return existing.some(
|
|
21247
|
-
(item) => (item.title ?
|
|
21261
|
+
(item) => (item.title ? _chunkTHY2XVGYcjs.mediaNameKey.call(void 0, item.title) === key : false) || (item.media_url ? _chunkTHY2XVGYcjs.mediaNameKey.call(void 0, item.media_url) === key : false)
|
|
21248
21262
|
);
|
|
21249
21263
|
}
|
|
21250
21264
|
var isFileDrag = (event) => Array.from(event.dataTransfer.types).includes("Files");
|
|
21251
|
-
var isVideoItem = (item) =>
|
|
21252
|
-
var MEDIA_KIND_ACCEPT = { image:
|
|
21265
|
+
var isVideoItem = (item) => _chunkTHY2XVGYcjs.isVideoMedia.call(void 0, item) || item.media_type === "demo";
|
|
21266
|
+
var MEDIA_KIND_ACCEPT = { image: _chunkTHY2XVGYcjs.IMAGE_FILE_ACCEPT, video: "video/*", both: _chunkTHY2XVGYcjs.MEDIA_FILE_ACCEPT };
|
|
21253
21267
|
var MEDIA_KIND_COPY = {
|
|
21254
21268
|
image: { noun: "pictures", refusal: "Not a picture" },
|
|
21255
21269
|
video: { noun: "videos", refusal: "Not a video" },
|
|
@@ -21273,12 +21287,12 @@ function useMediaIntake({ existing, onUpload, onUploaded, kinds = "both" }) {
|
|
|
21273
21287
|
const seen = /* @__PURE__ */ new Set();
|
|
21274
21288
|
const accepted = [];
|
|
21275
21289
|
for (const file of files) {
|
|
21276
|
-
const mediaType =
|
|
21290
|
+
const mediaType = _chunkTHY2XVGYcjs.fileMediaType.call(void 0, file);
|
|
21277
21291
|
if (!mediaType || kinds !== "both" && mediaType !== kinds) {
|
|
21278
21292
|
unsupported.push(file.name);
|
|
21279
21293
|
continue;
|
|
21280
21294
|
}
|
|
21281
|
-
const contentKey = await
|
|
21295
|
+
const contentKey = await _chunkTHY2XVGYcjs.fileContentKey.call(void 0, file).catch(() => `${file.name}:${file.size}`);
|
|
21282
21296
|
if (seen.has(contentKey) || isAlreadyThere(file, existingRef.current)) {
|
|
21283
21297
|
duplicates.push(file.name);
|
|
21284
21298
|
continue;
|
|
@@ -21459,7 +21473,7 @@ function MediaGalleryManager({
|
|
|
21459
21473
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid grid-cols-1 gap-4 content-md:grid-cols-2", columns === 3 && "content-lg:grid-cols-3"),
|
|
21460
21474
|
children: [
|
|
21461
21475
|
media.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21462
|
-
|
|
21476
|
+
_chunkPRCGRDHVcjs.Card,
|
|
21463
21477
|
{
|
|
21464
21478
|
className: "group relative border-ods-border transition-colors hover:border-ods-accent/30",
|
|
21465
21479
|
draggable: true,
|
|
@@ -21484,7 +21498,7 @@ function MediaGalleryManager({
|
|
|
21484
21498
|
) }),
|
|
21485
21499
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative aspect-video overflow-hidden rounded-lg bg-ods-bg", children: isVideoItem(item) ? (
|
|
21486
21500
|
// <Video> SSOT (MuxPlayer): plays Mux HLS and MP4 alike; fit="cover" crops to the cell.
|
|
21487
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21501
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.Video, { kind: "file", url: item.media_url, fit: "cover", className: "h-full w-full" })
|
|
21488
21502
|
) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21489
21503
|
_chunkKUXHXLJQcjs.next_image_default,
|
|
21490
21504
|
{
|
|
@@ -21492,24 +21506,24 @@ function MediaGalleryManager({
|
|
|
21492
21506
|
alt: item.title || "Media",
|
|
21493
21507
|
fill: true,
|
|
21494
21508
|
className: "object-cover",
|
|
21495
|
-
sizes:
|
|
21509
|
+
sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.card
|
|
21496
21510
|
}
|
|
21497
21511
|
) }),
|
|
21498
21512
|
editableDetails ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2 p-3", children: [
|
|
21499
21513
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
21500
21514
|
isVideoItem(item) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Video, { className: "h-5 w-5 text-ods-text-secondary" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Image, { className: "h-5 w-5 text-ods-text-secondary" }),
|
|
21501
21515
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21502
|
-
|
|
21516
|
+
_chunk66ZQ7LDRcjs.Select,
|
|
21503
21517
|
{
|
|
21504
21518
|
value: item.media_type,
|
|
21505
21519
|
onValueChange: (value) => update(index, { media_type: value }),
|
|
21506
21520
|
children: [
|
|
21507
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21508
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21509
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21510
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21511
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21512
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21521
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className: "h-8 bg-ods-bg text-h6", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, {}) }),
|
|
21522
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
21523
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "image", children: "Image" }),
|
|
21524
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "video", children: "Video" }),
|
|
21525
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "screenshot", children: "Screenshot" }),
|
|
21526
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "demo", children: "Demo" })
|
|
21513
21527
|
] })
|
|
21514
21528
|
]
|
|
21515
21529
|
}
|
|
@@ -21536,7 +21550,7 @@ function MediaGalleryManager({
|
|
|
21536
21550
|
},
|
|
21537
21551
|
_nullishCoalesce(item.id, () => ( `${item.media_url}-${index}`))
|
|
21538
21552
|
)),
|
|
21539
|
-
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
21553
|
+
pending.map((name, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkPRCGRDHVcjs.Card, { className: "border-ods-border", "aria-busy": "true", children: [
|
|
21540
21554
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex aspect-video items-center justify-center rounded-lg bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _lucidereact.Loader2, { className: "h-8 w-8 animate-spin text-ods-accent" }) }),
|
|
21541
21555
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate p-3 text-ods-text-secondary text-h6", children: name })
|
|
21542
21556
|
] }, `pending-${name}-${index}`))
|
|
@@ -21893,7 +21907,7 @@ var MODEL_TOKEN_RATES_COPY = {
|
|
|
21893
21907
|
empty: "No token rates are in effect right now."
|
|
21894
21908
|
};
|
|
21895
21909
|
function providerMark(providerType, stated, className) {
|
|
21896
|
-
const Mark =
|
|
21910
|
+
const Mark = _chunkVXXOUM2Kcjs.findIcon.call(void 0, _chunkNBLQFJ4Icjs.aiProvider.call(void 0, providerType, { icon: stated }).icon);
|
|
21897
21911
|
return Mark ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Mark, { className }) : void 0;
|
|
21898
21912
|
}
|
|
21899
21913
|
var PAD_X = "px-[var(--spacing-system-s)]";
|
|
@@ -21911,7 +21925,7 @@ var UNIT_LINE_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
|
21911
21925
|
var TABS_ROW_CLASS = _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0 border-b border-ods-border py-[var(--spacing-system-xs)]", PAD_X);
|
|
21912
21926
|
var NUMBER_CELL = "w-16 shrink-0 whitespace-nowrap text-right tabular-nums";
|
|
21913
21927
|
function useProviderGroup(rates) {
|
|
21914
|
-
const groups =
|
|
21928
|
+
const groups = _chunkNBLQFJ4Icjs.groupTokenRatesByProvider.call(void 0, rates);
|
|
21915
21929
|
const [picked, setPicked] = _react.useState.call(void 0, null);
|
|
21916
21930
|
return { groups, group: _nullishCoalesce(groups.find((candidate) => candidate.providerType === picked), () => ( groups[0])), setPicked };
|
|
21917
21931
|
}
|
|
@@ -21922,7 +21936,7 @@ function ProviderTabs({
|
|
|
21922
21936
|
className
|
|
21923
21937
|
}) {
|
|
21924
21938
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
21925
|
-
|
|
21939
|
+
_chunkF2VN3UUBcjs.TabSelector,
|
|
21926
21940
|
{
|
|
21927
21941
|
variant: "secondary",
|
|
21928
21942
|
scrollable: true,
|
|
@@ -21930,7 +21944,7 @@ function ProviderTabs({
|
|
|
21930
21944
|
onValueChange,
|
|
21931
21945
|
items: groups.map((candidate) => ({
|
|
21932
21946
|
id: candidate.providerType,
|
|
21933
|
-
label:
|
|
21947
|
+
label: _chunkNBLQFJ4Icjs.tokenRateProviderLabel.call(void 0, candidate.providerType, _optionalChain([candidate, 'access', _460 => _460.rates, 'access', _461 => _461[0], 'optionalAccess', _462 => _462.providerLabel])),
|
|
21934
21948
|
icon: providerMark(candidate.providerType, _optionalChain([candidate, 'access', _463 => _463.rates, 'access', _464 => _464[0], 'optionalAccess', _465 => _465.providerIcon]), "size-full")
|
|
21935
21949
|
})),
|
|
21936
21950
|
className
|
|
@@ -22007,8 +22021,8 @@ function ModelTokenRatesTable({ rates }) {
|
|
|
22007
22021
|
] }),
|
|
22008
22022
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { role: "rowgroup", className: "min-h-0 flex-1 overflow-y-auto", children: group.rates.map((rate) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { "data-loading-item": true, role: "row", className: BODY_ROW_CLASS, children: [
|
|
22009
22023
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "rowheader", className: "min-w-0 flex-1 truncate", children: rate.displayName || rate.modelName }),
|
|
22010
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22011
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children:
|
|
22024
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkNBLQFJ4Icjs.formatTokenRate.call(void 0, rate.inputTokenRate) }),
|
|
22025
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { role: "cell", className: NUMBER_CELL, children: _chunkNBLQFJ4Icjs.formatTokenRate.call(void 0, rate.outputTokenRate) })
|
|
22012
22026
|
] }, rate.modelName)) })
|
|
22013
22027
|
] }),
|
|
22014
22028
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: UNIT_LINE_CLASS, children: MODEL_TOKEN_RATES_COPY.unit })
|
|
@@ -22055,7 +22069,7 @@ function modelOption(rate) {
|
|
|
22055
22069
|
return {
|
|
22056
22070
|
label: rate.displayName || rate.modelName,
|
|
22057
22071
|
value: rate.modelName,
|
|
22058
|
-
description:
|
|
22072
|
+
description: _chunkNBLQFJ4Icjs.tokenRateProviderLabel.call(void 0, rate.providerType, rate.providerLabel),
|
|
22059
22073
|
icon: providerMark(rate.providerType, rate.providerIcon, "size-full text-ods-text-secondary")
|
|
22060
22074
|
};
|
|
22061
22075
|
}
|
|
@@ -22110,9 +22124,9 @@ function ModelTokenExchange({
|
|
|
22110
22124
|
const [chosen, setChosen] = _react.useState.call(void 0, null);
|
|
22111
22125
|
const balance = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(chosen, () => ( defaultAmount)), () => ( _optionalChain([tokenPrice, 'optionalAccess', _466 => _466.tokens]))), () => ( MODEL_TOKEN_EXCHANGE_BALANCE));
|
|
22112
22126
|
const max = Math.max(amountRange.max, balance, ...presets.map((preset) => preset.tokens));
|
|
22113
|
-
const tokens =
|
|
22114
|
-
const cost =
|
|
22115
|
-
const balancePrice = cost === null ? null :
|
|
22127
|
+
const tokens = _chunkNBLQFJ4Icjs.formatTokenAmount.call(void 0, balance);
|
|
22128
|
+
const cost = _chunkNBLQFJ4Icjs.tokenCost.call(void 0, balance, tokenPrice);
|
|
22129
|
+
const balancePrice = cost === null ? null : _chunkTGOJHOQRcjs.formatPrice.call(void 0, cost);
|
|
22116
22130
|
const model = rate ? rate.displayName || rate.modelName : "";
|
|
22117
22131
|
const options = models.map(modelOption);
|
|
22118
22132
|
if (rate && !models.some((candidate) => candidate.modelName === rate.modelName)) options.unshift(modelOption(rate));
|
|
@@ -22154,7 +22168,7 @@ function ModelTokenExchange({
|
|
|
22154
22168
|
variant: preset.tokens === balance ? "accent" : "outline",
|
|
22155
22169
|
size: "small",
|
|
22156
22170
|
onClick: () => setChosen(preset.tokens),
|
|
22157
|
-
children: copy.buy.preset(
|
|
22171
|
+
children: copy.buy.preset(_chunkNBLQFJ4Icjs.formatTokenAmount.call(void 0, preset.tokens), preset.label)
|
|
22158
22172
|
},
|
|
22159
22173
|
preset.label
|
|
22160
22174
|
)) })
|
|
@@ -22171,7 +22185,7 @@ function ModelTokenExchange({
|
|
|
22171
22185
|
const stated = _nullishCoalesce(models.find((option) => option.providerType === providerType), () => ( (_optionalChain([rate, 'optionalAccess', _467 => _467.providerType]) === providerType ? rate : null)));
|
|
22172
22186
|
return {
|
|
22173
22187
|
id: providerType,
|
|
22174
|
-
name:
|
|
22188
|
+
name: _chunkNBLQFJ4Icjs.tokenRateProviderLabel.call(void 0, providerType, _optionalChain([stated, 'optionalAccess', _468 => _468.providerLabel])),
|
|
22175
22189
|
icon: providerMark(providerType, _optionalChain([stated, 'optionalAccess', _469 => _469.providerIcon]), "size-8 text-ods-text-secondary")
|
|
22176
22190
|
};
|
|
22177
22191
|
}),
|
|
@@ -22183,7 +22197,7 @@ function ModelTokenExchange({
|
|
|
22183
22197
|
}
|
|
22184
22198
|
),
|
|
22185
22199
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22186
|
-
|
|
22200
|
+
_chunk66ZQ7LDRcjs.Autocomplete,
|
|
22187
22201
|
{
|
|
22188
22202
|
fieldLoading: loading,
|
|
22189
22203
|
label: copy.use.model,
|
|
@@ -22210,7 +22224,7 @@ function ModelTokenExchange({
|
|
|
22210
22224
|
{
|
|
22211
22225
|
size: "plain",
|
|
22212
22226
|
loading,
|
|
22213
|
-
figure:
|
|
22227
|
+
figure: _chunkNBLQFJ4Icjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _474 => _474.inputTokenRate])),
|
|
22214
22228
|
words: copy.charge.input
|
|
22215
22229
|
}
|
|
22216
22230
|
),
|
|
@@ -22219,7 +22233,7 @@ function ModelTokenExchange({
|
|
|
22219
22233
|
{
|
|
22220
22234
|
size: "plain",
|
|
22221
22235
|
loading,
|
|
22222
|
-
figure:
|
|
22236
|
+
figure: _chunkNBLQFJ4Icjs.formatTokenRate.call(void 0, _optionalChain([rate, 'optionalAccess', _475 => _475.outputTokenRate])),
|
|
22223
22237
|
words: copy.charge.output
|
|
22224
22238
|
}
|
|
22225
22239
|
)
|
|
@@ -22231,9 +22245,9 @@ function ModelTokenExchange({
|
|
|
22231
22245
|
className: "mt-auto flex flex-col rounded-md border border-ods-accent bg-ods-bg p-[var(--spacing-system-mf)]",
|
|
22232
22246
|
children: [
|
|
22233
22247
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[2lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-full max-w-xs" }) : copy.charge.so(_nullishCoalesce(balancePrice, () => ( copy.buy.tokens(tokens))), model) }),
|
|
22234
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) :
|
|
22248
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] whitespace-nowrap tabular-nums text-ods-text-primary text-h1", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-40" }) : _chunkNBLQFJ4Icjs.formatTokenAmount.call(void 0, _chunkNBLQFJ4Icjs.tokensForBalance.call(void 0, balance, rate.inputTokenRate)) }),
|
|
22235
22249
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-primary text-h3", children: copy.charge.read }),
|
|
22236
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(
|
|
22250
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-h-[1lh] text-ods-text-secondary text-h4", children: loading || !rate ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "inherit", as: "span", className: "w-48" }) : copy.charge.orWritten(_chunkNBLQFJ4Icjs.formatTokenAmount.call(void 0, _chunkNBLQFJ4Icjs.tokensForBalance.call(void 0, balance, rate.outputTokenRate))) })
|
|
22237
22251
|
]
|
|
22238
22252
|
}
|
|
22239
22253
|
)
|
|
@@ -22375,7 +22389,7 @@ var ParallaxImageShowcase = ({
|
|
|
22375
22389
|
alt: leftImage.alt,
|
|
22376
22390
|
width: 800,
|
|
22377
22391
|
height: 500,
|
|
22378
|
-
sizes:
|
|
22392
|
+
sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.card,
|
|
22379
22393
|
className: "h-auto w-full object-contain",
|
|
22380
22394
|
style: shadow ? { boxShadow: "0 20px 40px rgba(0, 0, 0, 0.3)" } : {}
|
|
22381
22395
|
}
|
|
@@ -22397,7 +22411,7 @@ var ParallaxImageShowcase = ({
|
|
|
22397
22411
|
alt: centerImage.alt,
|
|
22398
22412
|
width: 800,
|
|
22399
22413
|
height: 500,
|
|
22400
|
-
sizes:
|
|
22414
|
+
sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.card,
|
|
22401
22415
|
className: "h-auto w-full object-contain",
|
|
22402
22416
|
style: shadow ? { boxShadow: "0 20px 40px rgba(0, 0, 0, 0.3)" } : {}
|
|
22403
22417
|
}
|
|
@@ -22419,7 +22433,7 @@ var ParallaxImageShowcase = ({
|
|
|
22419
22433
|
alt: rightImage.alt,
|
|
22420
22434
|
width: 800,
|
|
22421
22435
|
height: 500,
|
|
22422
|
-
sizes:
|
|
22436
|
+
sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.card,
|
|
22423
22437
|
className: "h-auto w-full object-contain",
|
|
22424
22438
|
style: shadow ? { boxShadow: "0 20px 40px rgba(0, 0, 0, 0.3)" } : {}
|
|
22425
22439
|
}
|
|
@@ -22444,7 +22458,7 @@ var ParallaxImageShowcase = ({
|
|
|
22444
22458
|
src: leftImage.src,
|
|
22445
22459
|
alt: leftImage.alt,
|
|
22446
22460
|
fill: true,
|
|
22447
|
-
sizes:
|
|
22461
|
+
sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.half,
|
|
22448
22462
|
className: "ods-card/50 border border-ods-border object-cover object-[left_top]"
|
|
22449
22463
|
}
|
|
22450
22464
|
),
|
|
@@ -22464,7 +22478,7 @@ var ParallaxImageShowcase = ({
|
|
|
22464
22478
|
src: centerImage.src,
|
|
22465
22479
|
alt: centerImage.alt,
|
|
22466
22480
|
fill: true,
|
|
22467
|
-
sizes:
|
|
22481
|
+
sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.half,
|
|
22468
22482
|
className: "ods-card/50 border border-ods-border object-cover object-[left_top]"
|
|
22469
22483
|
}
|
|
22470
22484
|
),
|
|
@@ -22485,16 +22499,7 @@ var ParallaxImageShowcase = ({
|
|
|
22485
22499
|
y,
|
|
22486
22500
|
rotate
|
|
22487
22501
|
},
|
|
22488
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22489
|
-
_chunkKUXHXLJQcjs.next_image_default,
|
|
22490
|
-
{
|
|
22491
|
-
src: rightImage.src,
|
|
22492
|
-
alt: rightImage.alt,
|
|
22493
|
-
fill: true,
|
|
22494
|
-
sizes: "(max-width: 1024px) 80vw, 120vw",
|
|
22495
|
-
className: "object-contain"
|
|
22496
|
-
}
|
|
22497
|
-
)
|
|
22502
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKUXHXLJQcjs.next_image_default, { src: rightImage.src, alt: rightImage.alt, fill: true, sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.full, className: "object-contain" })
|
|
22498
22503
|
}
|
|
22499
22504
|
),
|
|
22500
22505
|
centerImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22506,16 +22511,7 @@ var ParallaxImageShowcase = ({
|
|
|
22506
22511
|
y,
|
|
22507
22512
|
rotate
|
|
22508
22513
|
},
|
|
22509
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22510
|
-
_chunkKUXHXLJQcjs.next_image_default,
|
|
22511
|
-
{
|
|
22512
|
-
src: centerImage.src,
|
|
22513
|
-
alt: centerImage.alt,
|
|
22514
|
-
fill: true,
|
|
22515
|
-
sizes: "(max-width: 1024px) 75vw, 100vw",
|
|
22516
|
-
className: "object-contain"
|
|
22517
|
-
}
|
|
22518
|
-
)
|
|
22514
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKUXHXLJQcjs.next_image_default, { src: centerImage.src, alt: centerImage.alt, fill: true, sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.full, className: "object-contain" })
|
|
22519
22515
|
}
|
|
22520
22516
|
),
|
|
22521
22517
|
leftImage && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22527,16 +22523,7 @@ var ParallaxImageShowcase = ({
|
|
|
22527
22523
|
y,
|
|
22528
22524
|
rotate
|
|
22529
22525
|
},
|
|
22530
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22531
|
-
_chunkKUXHXLJQcjs.next_image_default,
|
|
22532
|
-
{
|
|
22533
|
-
src: leftImage.src,
|
|
22534
|
-
alt: leftImage.alt,
|
|
22535
|
-
fill: true,
|
|
22536
|
-
sizes: "(max-width: 1024px) 85vw, 110vw",
|
|
22537
|
-
className: "object-contain"
|
|
22538
|
-
}
|
|
22539
|
-
)
|
|
22526
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkKUXHXLJQcjs.next_image_default, { src: leftImage.src, alt: leftImage.alt, fill: true, sizes: _chunkVXXOUM2Kcjs.IMAGE_SLOT.full, className: "object-contain" })
|
|
22540
22527
|
}
|
|
22541
22528
|
)
|
|
22542
22529
|
] });
|
|
@@ -22681,7 +22668,7 @@ function PlatformFilterComponent({
|
|
|
22681
22668
|
variant: selectedPlatform === platform.value ? "accent" : "outline",
|
|
22682
22669
|
size,
|
|
22683
22670
|
onClick: () => onPlatformChange(platform.value),
|
|
22684
|
-
leftIcon: showIcons ?
|
|
22671
|
+
leftIcon: showIcons ? _chunkTT64NRFUcjs.getSmallPlatformIcon.call(void 0, platform.value) : void 0,
|
|
22685
22672
|
className: "text-h3",
|
|
22686
22673
|
children: platform.label
|
|
22687
22674
|
},
|
|
@@ -22734,8 +22721,8 @@ var SelectButton = _react2.default.forwardRef(
|
|
|
22734
22721
|
src: image.src,
|
|
22735
22722
|
alt: image.alt,
|
|
22736
22723
|
className: "size-full object-cover",
|
|
22737
|
-
width:
|
|
22738
|
-
height:
|
|
22724
|
+
width: _chunkVXXOUM2Kcjs.IMAGE_FIXED_PX.logoLg,
|
|
22725
|
+
height: _chunkVXXOUM2Kcjs.IMAGE_FIXED_PX.logoLg,
|
|
22739
22726
|
unoptimized: true
|
|
22740
22727
|
}
|
|
22741
22728
|
) }),
|
|
@@ -22753,7 +22740,7 @@ var SelectButton = _react2.default.forwardRef(
|
|
|
22753
22740
|
}
|
|
22754
22741
|
)
|
|
22755
22742
|
] }),
|
|
22756
|
-
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22743
|
+
tag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { variant: tagVariant, className: "shrink-0", label: tag }),
|
|
22757
22744
|
selected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHFNBMV5Mcjs.CheckCircleIcon, { className: "size-4 shrink-0 text-ods-accent content-md:size-6" })
|
|
22758
22745
|
]
|
|
22759
22746
|
}
|
|
@@ -22780,14 +22767,14 @@ var ConfidenceBadge = ({
|
|
|
22780
22767
|
size = "sm",
|
|
22781
22768
|
className
|
|
22782
22769
|
}) => {
|
|
22783
|
-
const level =
|
|
22770
|
+
const level = _chunkNBLQFJ4Icjs.getConfidenceLevel.call(void 0, confidence);
|
|
22784
22771
|
if (level === "none") {
|
|
22785
22772
|
return null;
|
|
22786
22773
|
}
|
|
22787
|
-
const label =
|
|
22788
|
-
const borderClass =
|
|
22789
|
-
const textClass =
|
|
22790
|
-
const bgClass =
|
|
22774
|
+
const label = _chunkNBLQFJ4Icjs.getConfidenceLabel.call(void 0, confidence);
|
|
22775
|
+
const borderClass = _chunkNBLQFJ4Icjs.getConfidenceBorderClass.call(void 0, confidence);
|
|
22776
|
+
const textClass = _chunkNBLQFJ4Icjs.getConfidenceTextClass.call(void 0, confidence);
|
|
22777
|
+
const bgClass = _chunkNBLQFJ4Icjs.getConfidenceBgClass.call(void 0, confidence);
|
|
22791
22778
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
22792
22779
|
"span",
|
|
22793
22780
|
{
|
|
@@ -22838,9 +22825,9 @@ function SEOEditorPreview({
|
|
|
22838
22825
|
const [isUploading, setIsUploading] = _react.useState.call(void 0, false);
|
|
22839
22826
|
const [fileInputRef, setFileInputRef] = _react.useState.call(void 0, null);
|
|
22840
22827
|
const seoTitleLength = (seoTitle || "").length;
|
|
22841
|
-
const seoTitleTooLong = seoTitleLength >
|
|
22828
|
+
const seoTitleTooLong = seoTitleLength > _chunkNBLQFJ4Icjs.SEO_TITLE_MAX_LENGTH;
|
|
22842
22829
|
const seoDescriptionLength = (seoDescription || "").length;
|
|
22843
|
-
const seoDescriptionTooLong = seoDescriptionLength >
|
|
22830
|
+
const seoDescriptionTooLong = seoDescriptionLength > _chunkNBLQFJ4Icjs.SEO_DESCRIPTION_MAX_LENGTH;
|
|
22844
22831
|
const displayTitle = seoTitle.trim() || title || "Untitled";
|
|
22845
22832
|
const displayDescription = seoDescription.trim() || summary || "No description";
|
|
22846
22833
|
const hasOgImage = ogImageUrl.trim();
|
|
@@ -22865,10 +22852,10 @@ function SEOEditorPreview({
|
|
|
22865
22852
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22866
22853
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22867
22854
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22868
|
-
|
|
22855
|
+
_chunkNBLQFJ4Icjs.Field,
|
|
22869
22856
|
{
|
|
22870
22857
|
label: "SEO Title",
|
|
22871
|
-
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${
|
|
22858
|
+
error: seoTitleTooLong ? `Too long: search engines may truncate this title (keep it under ${_chunkNBLQFJ4Icjs.SEO_TITLE_MAX_LENGTH})` : null,
|
|
22872
22859
|
labelExtras: aiConfidenceSeoTitle !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22873
22860
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22874
22861
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ConfidenceBadge, { confidence: aiConfidenceSeoTitle, showLabel: true, showPercentage: true, size: "sm" })
|
|
@@ -22883,7 +22870,7 @@ function SEOEditorPreview({
|
|
|
22883
22870
|
children: [
|
|
22884
22871
|
seoTitleLength,
|
|
22885
22872
|
"/",
|
|
22886
|
-
|
|
22873
|
+
_chunkNBLQFJ4Icjs.SEO_TITLE_MAX_LENGTH
|
|
22887
22874
|
]
|
|
22888
22875
|
}
|
|
22889
22876
|
),
|
|
@@ -22894,7 +22881,7 @@ function SEOEditorPreview({
|
|
|
22894
22881
|
value: seoTitle || "",
|
|
22895
22882
|
onChange: (e) => onSeoTitleChange(e.target.value),
|
|
22896
22883
|
disabled,
|
|
22897
|
-
maxLength:
|
|
22884
|
+
maxLength: _chunkNBLQFJ4Icjs.SEO_TITLE_MAX_LENGTH,
|
|
22898
22885
|
invalid: seoTitleTooLong,
|
|
22899
22886
|
placeholder: "Enter SEO meta title...",
|
|
22900
22887
|
className: "border-ods-border bg-ods-bg text-ods-text-primary"
|
|
@@ -22905,7 +22892,7 @@ function SEOEditorPreview({
|
|
|
22905
22892
|
!seoTitle && title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-ods-accent text-h6", children: "Auto-populated from title" })
|
|
22906
22893
|
] }),
|
|
22907
22894
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22908
|
-
|
|
22895
|
+
_chunkNBLQFJ4Icjs.Field,
|
|
22909
22896
|
{
|
|
22910
22897
|
label: "SEO Keywords",
|
|
22911
22898
|
labelExtras: aiConfidenceSeoKeywords !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -22937,10 +22924,10 @@ function SEOEditorPreview({
|
|
|
22937
22924
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-4 content-lg:grid-cols-2", children: [
|
|
22938
22925
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "space-y-2", children: [
|
|
22939
22926
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
22940
|
-
|
|
22927
|
+
_chunkNBLQFJ4Icjs.Field,
|
|
22941
22928
|
{
|
|
22942
22929
|
label: "SEO Description",
|
|
22943
|
-
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${
|
|
22930
|
+
error: seoDescriptionTooLong ? `Too long: search engines may truncate this description (keep it under ${_chunkNBLQFJ4Icjs.SEO_DESCRIPTION_MAX_LENGTH})` : null,
|
|
22944
22931
|
labelExtras: aiConfidenceSeoDescription !== void 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
22945
22932
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AIGeneratedBadge, {}),
|
|
22946
22933
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -22963,7 +22950,7 @@ function SEOEditorPreview({
|
|
|
22963
22950
|
children: [
|
|
22964
22951
|
seoDescriptionLength,
|
|
22965
22952
|
"/",
|
|
22966
|
-
|
|
22953
|
+
_chunkNBLQFJ4Icjs.SEO_DESCRIPTION_MAX_LENGTH
|
|
22967
22954
|
]
|
|
22968
22955
|
}
|
|
22969
22956
|
),
|
|
@@ -22974,7 +22961,7 @@ function SEOEditorPreview({
|
|
|
22974
22961
|
value: seoDescription || "",
|
|
22975
22962
|
onChange: (e) => onSeoDescriptionChange(e.target.value),
|
|
22976
22963
|
disabled,
|
|
22977
|
-
maxLength:
|
|
22964
|
+
maxLength: _chunkNBLQFJ4Icjs.SEO_DESCRIPTION_MAX_LENGTH,
|
|
22978
22965
|
invalid: seoDescriptionTooLong,
|
|
22979
22966
|
placeholder: "Enter SEO meta description...",
|
|
22980
22967
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "resize-none border-ods-border bg-ods-bg text-ods-text-primary", SEO_MEDIA_BOX_HEIGHT)
|
|
@@ -23043,7 +23030,7 @@ function SEOEditorPreview({
|
|
|
23043
23030
|
{
|
|
23044
23031
|
ref: setFileInputRef,
|
|
23045
23032
|
type: "file",
|
|
23046
|
-
accept:
|
|
23033
|
+
accept: _chunkTHY2XVGYcjs.IMAGE_FILE_ACCEPT,
|
|
23047
23034
|
onChange: handleImageUpload,
|
|
23048
23035
|
className: "hidden",
|
|
23049
23036
|
disabled: disabled || isUploading
|
|
@@ -23124,10 +23111,10 @@ var SOCIAL_ICONS = {
|
|
|
23124
23111
|
};
|
|
23125
23112
|
function socialIcon(platform) {
|
|
23126
23113
|
if (!Object.prototype.hasOwnProperty.call(SOCIAL_ICONS, platform)) return void 0;
|
|
23127
|
-
return _nullishCoalesce(
|
|
23114
|
+
return _nullishCoalesce(_chunkVXXOUM2Kcjs.iconOf.call(void 0, SOCIAL_ICONS[platform]), () => ( void 0));
|
|
23128
23115
|
}
|
|
23129
23116
|
function renderSocialIcon(platform) {
|
|
23130
|
-
const key = _nullishCoalesce(
|
|
23117
|
+
const key = _nullishCoalesce(_chunkNBLQFJ4Icjs.normalizeSocialPlatform.call(void 0, platform), () => ( "website"));
|
|
23131
23118
|
const icon = _nullishCoalesce(socialIcon(key), () => ( socialIcon("website")));
|
|
23132
23119
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5" }) : null;
|
|
23133
23120
|
}
|
|
@@ -23218,7 +23205,7 @@ function SocialLinksManager({
|
|
|
23218
23205
|
};
|
|
23219
23206
|
const getIcon = (link, platform) => {
|
|
23220
23207
|
const iconKey = _optionalChain([platform, 'optionalAccess', _485 => _485.icon_name]) || link.platform;
|
|
23221
|
-
const key =
|
|
23208
|
+
const key = _chunkNBLQFJ4Icjs.normalizeSocialPlatform.call(void 0, iconKey);
|
|
23222
23209
|
if (!key) return null;
|
|
23223
23210
|
const icon = socialIcon(key);
|
|
23224
23211
|
return icon ? _react.createElement.call(void 0, icon, { className: "h-5 w-5 text-ods-text-secondary" }) : null;
|
|
@@ -23234,9 +23221,9 @@ function SocialLinksManager({
|
|
|
23234
23221
|
children: [
|
|
23235
23222
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex h-8 w-8 items-center justify-center", children: Icon }),
|
|
23236
23223
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid flex-1 grid-cols-2 gap-3", children: [
|
|
23237
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23238
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23239
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23224
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.Select, { value: link.platform, onValueChange: (value) => updateLink(index, "platform", value), children: [
|
|
23225
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, {}) }),
|
|
23226
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: platforms.map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: p.name, children: p.display_name }, p.name)) })
|
|
23240
23227
|
] }) }),
|
|
23241
23228
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23242
23229
|
_chunkTTZEDDR5cjs.Input,
|
|
@@ -23254,15 +23241,15 @@ function SocialLinksManager({
|
|
|
23254
23241
|
)
|
|
23255
23242
|
] }),
|
|
23256
23243
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23257
|
-
|
|
23244
|
+
_chunk66ZQ7LDRcjs.Select,
|
|
23258
23245
|
{
|
|
23259
23246
|
value: _nullishCoalesce(link.visibility, () => ( "external")),
|
|
23260
23247
|
onValueChange: (value) => updateLink(index, "visibility", value),
|
|
23261
23248
|
children: [
|
|
23262
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23263
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
23264
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23265
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23249
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className: "w-[120px] shrink-0", "aria-label": "Social link visibility", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, {}) }),
|
|
23250
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: [
|
|
23251
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "external", children: "Public" }),
|
|
23252
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "internal", children: "Internal" })
|
|
23266
23253
|
] })
|
|
23267
23254
|
]
|
|
23268
23255
|
}
|
|
@@ -23354,7 +23341,7 @@ var StartWithOpenFrameButton = _react.forwardRef.call(void 0,
|
|
|
23354
23341
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, modeClassName, className),
|
|
23355
23342
|
style: customStyle,
|
|
23356
23343
|
leftIcon: !loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkHJZLKYOBcjs.OpenframeLogoIcon, { secondaryColor: iconLowerPath, className: "h-5 w-5", color: iconUpperPath }) : void 0,
|
|
23357
|
-
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23344
|
+
rightIcon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.StatusBadge, { text: "Beta", variant: "button", colorScheme: "yellow" }),
|
|
23358
23345
|
children
|
|
23359
23346
|
}
|
|
23360
23347
|
);
|
|
@@ -23682,18 +23669,17 @@ function WarningBlock({ title, icon = DEFAULT_ICON, children, className }) {
|
|
|
23682
23669
|
|
|
23683
23670
|
function VideoBitesDisplay({
|
|
23684
23671
|
bites,
|
|
23685
|
-
title =
|
|
23672
|
+
title = _chunkPRCGRDHVcjs.DEFAULT_VIDEO_BITES_TITLE,
|
|
23686
23673
|
filterPublished = true,
|
|
23687
23674
|
showTitle = true
|
|
23688
23675
|
}) {
|
|
23689
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23676
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkF2VN3UUBcjs.VideoBitesStrip, { bites, title, filterPublished, showTitle });
|
|
23690
23677
|
}
|
|
23691
23678
|
|
|
23692
23679
|
// src/components/features/walkthrough-video.tsx
|
|
23693
23680
|
|
|
23694
23681
|
|
|
23695
23682
|
|
|
23696
|
-
var CARD_POSTER_WIDTH_PX = 640;
|
|
23697
23683
|
var INLINE_CARD_BOX_CLASS = `${_chunk4WIJI4AKcjs.MEDIA_ASPECT.video} w-full rounded-md border border-ods-border`;
|
|
23698
23684
|
var FIRST_INTERACTION_EVENTS = ["scroll", "pointerdown", "keydown"];
|
|
23699
23685
|
var isAtEnd = (duration, time) => duration > 0 && duration - time < 1;
|
|
@@ -23716,7 +23702,7 @@ function WalkthroughVideo({
|
|
|
23716
23702
|
onOpenChange,
|
|
23717
23703
|
defaultOpen,
|
|
23718
23704
|
defaultOpenPaused,
|
|
23719
|
-
deepLinkParam =
|
|
23705
|
+
deepLinkParam = _chunkNBLQFJ4Icjs.WALKTHROUGH_OPEN_QUERY_PARAM,
|
|
23720
23706
|
autoPlayCard = false,
|
|
23721
23707
|
label = "Play Demo Video",
|
|
23722
23708
|
placement,
|
|
@@ -23733,7 +23719,7 @@ function WalkthroughVideo({
|
|
|
23733
23719
|
const inline = placement === "inline";
|
|
23734
23720
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
23735
23721
|
const dismissEnabled = dismissal !== false;
|
|
23736
|
-
const storageKey = dismissEnabled && dismissal.storageKey ||
|
|
23722
|
+
const storageKey = dismissEnabled && dismissal.storageKey || _chunkNBLQFJ4Icjs.WALKTHROUGH_VIDEO_DISMISS_KEY;
|
|
23737
23723
|
const dismissalId = _optionalChain([video, 'optionalAccess', _491 => _491.id]) != null ? String(video.id) : "dismissed";
|
|
23738
23724
|
const [mounted, setMounted] = _react.useState.call(void 0, false);
|
|
23739
23725
|
const [dismissed, setDismissed] = _react.useState.call(void 0, false);
|
|
@@ -23745,7 +23731,7 @@ function WalkthroughVideo({
|
|
|
23745
23731
|
let delayElapsed = false;
|
|
23746
23732
|
let interacted = inline;
|
|
23747
23733
|
const reveal = () => {
|
|
23748
|
-
if (dismissEnabled &&
|
|
23734
|
+
if (dismissEnabled && _chunkNBLQFJ4Icjs.isWalkthroughDismissed.call(void 0, storageKey, dismissalId)) {
|
|
23749
23735
|
setDismissed(true);
|
|
23750
23736
|
return;
|
|
23751
23737
|
}
|
|
@@ -23782,7 +23768,7 @@ function WalkthroughVideo({
|
|
|
23782
23768
|
if (idleHandle !== null && typeof cic === "function") cic(idleHandle);
|
|
23783
23769
|
};
|
|
23784
23770
|
}, [appearDelayMs, dismissEnabled, storageKey, dismissalId, hasVideo, videoId, inline]);
|
|
23785
|
-
const hydrated =
|
|
23771
|
+
const hydrated = _chunkF2VN3UUBcjs.useIsHydrated.call(void 0, );
|
|
23786
23772
|
const previewSuppressed = _react.useMemo.call(void 0, () => {
|
|
23787
23773
|
if (!hydrated) return false;
|
|
23788
23774
|
try {
|
|
@@ -24032,7 +24018,7 @@ function WalkthroughVideo({
|
|
|
24032
24018
|
(e) => {
|
|
24033
24019
|
e.stopPropagation();
|
|
24034
24020
|
pausePreviewNow();
|
|
24035
|
-
if (dismissEnabled)
|
|
24021
|
+
if (dismissEnabled) _chunkNBLQFJ4Icjs.dismissWalkthrough.call(void 0, storageKey, dismissalId);
|
|
24036
24022
|
setDismissed(true);
|
|
24037
24023
|
},
|
|
24038
24024
|
[dismissEnabled, storageKey, dismissalId, pausePreviewNow]
|
|
@@ -24183,15 +24169,15 @@ function WalkthroughVideo({
|
|
|
24183
24169
|
},
|
|
24184
24170
|
children: [
|
|
24185
24171
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "pointer-events-none absolute inset-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24186
|
-
|
|
24172
|
+
_chunkPRCGRDHVcjs.VideoHoverPreviewSurface,
|
|
24187
24173
|
{
|
|
24188
24174
|
url: video.mainVideoUrl || "",
|
|
24189
|
-
posterUrl: video.posterUrl ? _chunkKUXHXLJQcjs.resizedImageUrl.call(void 0, video.posterUrl,
|
|
24175
|
+
posterUrl: video.posterUrl ? _chunkKUXHXLJQcjs.resizedImageUrl.call(void 0, video.posterUrl, _chunkVXXOUM2Kcjs.IMAGE_WIDTHS[0]) : video.posterUrl,
|
|
24190
24176
|
active: cardActive,
|
|
24191
24177
|
isClone: false,
|
|
24192
24178
|
badge: "play",
|
|
24193
24179
|
fit: "cover",
|
|
24194
|
-
posterSizes:
|
|
24180
|
+
posterSizes: _chunkVXXOUM2Kcjs.fixedImageSlot.call(void 0, "cover"),
|
|
24195
24181
|
posterInView: true,
|
|
24196
24182
|
preload: "none",
|
|
24197
24183
|
hideMutedBadge: true,
|
|
@@ -24207,7 +24193,7 @@ function WalkthroughVideo({
|
|
|
24207
24193
|
`card-${embedUrlKey}`
|
|
24208
24194
|
) }),
|
|
24209
24195
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24210
|
-
|
|
24196
|
+
_chunkF2VN3UUBcjs.CardHitLayer,
|
|
24211
24197
|
{
|
|
24212
24198
|
label: video.title ? `${label}: ${video.title}` : label,
|
|
24213
24199
|
onPointerDown: pausePreviewNow,
|
|
@@ -24216,7 +24202,7 @@ function WalkthroughVideo({
|
|
|
24216
24202
|
}
|
|
24217
24203
|
),
|
|
24218
24204
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "pointer-events-none absolute bottom-[var(--spacing-system-xsf)] left-[var(--spacing-system-xsf)] z-20 flex max-w-[calc(100%-2*var(--spacing-system-xsf))] items-center gap-[var(--spacing-system-xsf)] rounded-full bg-ods-overlay py-[var(--spacing-system-xxs)] pl-[var(--spacing-system-xxs)] pr-[var(--spacing-system-sf)] text-ods-text-primary text-h6", children: [
|
|
24219
|
-
presenterAvatarSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24205
|
+
presenterAvatarSrc ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { src: presenterAvatarSrc, alt: "", sizePx: 20, variant: "round", className: "shrink-0 border-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkP4B6PVSGcjs.VideoPlayBadge, { size: "sm", className: "h-5 w-5 shrink-0" }),
|
|
24220
24206
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", children: summaryTitle || label })
|
|
24221
24207
|
] }),
|
|
24222
24208
|
showBigUnmute && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -24323,7 +24309,7 @@ function WalkthroughVideo({
|
|
|
24323
24309
|
children: [
|
|
24324
24310
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DialogPrimitive2.Title, { className: "sr-only", children: summaryTitle || "Walkthrough video" }),
|
|
24325
24311
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24326
|
-
|
|
24312
|
+
_chunkPRCGRDHVcjs.Video,
|
|
24327
24313
|
{
|
|
24328
24314
|
kind: video.youtubeUrl ? "youtube" : "file",
|
|
24329
24315
|
url: video.youtubeUrl || video.mainVideoUrl,
|
|
@@ -24379,7 +24365,7 @@ function useWalkthroughVideo(opts) {
|
|
|
24379
24365
|
const { endpoint, initialData, enabled: enabledGiven = true, transformCaptionsUrl } = opts;
|
|
24380
24366
|
const inScope = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
24381
24367
|
const enabled = enabledGiven && !inScope;
|
|
24382
|
-
const captions =
|
|
24368
|
+
const captions = _chunkF2VN3UUBcjs.useCaptions.call(void 0, );
|
|
24383
24369
|
const query = _reactquery.useQuery.call(void 0, {
|
|
24384
24370
|
queryKey: ["walkthrough-video", endpoint],
|
|
24385
24371
|
enabled,
|
|
@@ -24577,7 +24563,7 @@ function VideoSourceSelector({
|
|
|
24577
24563
|
}
|
|
24578
24564
|
function DefaultVideoPreview({ videoUrl, onDelete, disabled }) {
|
|
24579
24565
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border", children: [
|
|
24580
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24566
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.Video, { kind: "file", url: videoUrl }) }),
|
|
24581
24567
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
24582
24568
|
_chunkAHBTZ7DNcjs.Button,
|
|
24583
24569
|
{
|
|
@@ -25033,19 +25019,19 @@ function HighlightVideoSection({
|
|
|
25033
25019
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "space-y-3 rounded-lg border border-ods-border bg-ods-card p-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1", children: [
|
|
25034
25020
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { children: "Target Duration" }),
|
|
25035
25021
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25036
|
-
|
|
25022
|
+
_chunk66ZQ7LDRcjs.Select,
|
|
25037
25023
|
{
|
|
25038
25024
|
value: targetDurationSeconds.toString(),
|
|
25039
25025
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25040
25026
|
disabled,
|
|
25041
25027
|
children: [
|
|
25042
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25043
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25044
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25045
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25046
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25047
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25048
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25028
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className: "mt-1 bg-ods-bg-surface", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, {}) }),
|
|
25029
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25030
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25031
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25032
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25033
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25034
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25049
25035
|
] })
|
|
25050
25036
|
]
|
|
25051
25037
|
}
|
|
@@ -25103,7 +25089,7 @@ function HighlightVideoSection({
|
|
|
25103
25089
|
// Default simple preview — the <Video> SSOT (MuxPlayer) plays
|
|
25104
25090
|
// MP4 and Mux HLS alike; aspect-video box reserves the height.
|
|
25105
25091
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative overflow-hidden rounded-lg border border-ods-border bg-black", children: [
|
|
25106
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25092
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "aspect-video max-h-[300px] w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.Video, { kind: "file", url: highlightVideoUrl, poster: highlightVideoThumbnail || void 0 }) }),
|
|
25107
25093
|
onDeleteHighlight && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25108
25094
|
_chunkAHBTZ7DNcjs.Button,
|
|
25109
25095
|
{
|
|
@@ -25130,20 +25116,20 @@ function HighlightConfigSection({
|
|
|
25130
25116
|
disabled = false,
|
|
25131
25117
|
className = ""
|
|
25132
25118
|
}) {
|
|
25133
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `space-y-3 rounded-lg border border-ods-border bg-ods-card p-4 ${className}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25134
|
-
|
|
25119
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: `space-y-3 rounded-lg border border-ods-border bg-ods-card p-4 ${className}`, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNBLQFJ4Icjs.Field, { label: "Target Duration", children: (f) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25120
|
+
_chunk66ZQ7LDRcjs.Select,
|
|
25135
25121
|
{
|
|
25136
25122
|
value: targetDurationSeconds.toString(),
|
|
25137
25123
|
onValueChange: (value) => onTargetDurationChange(parseInt(value)),
|
|
25138
25124
|
disabled,
|
|
25139
25125
|
children: [
|
|
25140
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25141
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
25142
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25143
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25144
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25145
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25146
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25126
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { id: f.id, className: "bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, {}) }),
|
|
25127
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { className: "bg-ods-card", children: [
|
|
25128
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "60", children: "1 minute" }),
|
|
25129
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "120", children: "2 minutes" }),
|
|
25130
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "180", children: "3 minutes (Recommended)" }),
|
|
25131
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "240", children: "4 minutes" }),
|
|
25132
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: "300", children: "5 minutes" })
|
|
25147
25133
|
] })
|
|
25148
25134
|
]
|
|
25149
25135
|
}
|
|
@@ -25231,7 +25217,7 @@ var AIStatusIndicator = ({
|
|
|
25231
25217
|
}) => {
|
|
25232
25218
|
const config = statusConfig[status];
|
|
25233
25219
|
const displayText = message || config.label;
|
|
25234
|
-
const confidenceLabel = showConfidence && confidence !== void 0 ? `${
|
|
25220
|
+
const confidenceLabel = showConfidence && confidence !== void 0 ? `${_chunkNBLQFJ4Icjs.getConfidenceLabel.call(void 0, confidence)} (${confidence}%)` : null;
|
|
25235
25221
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "inline-flex items-center gap-2 rounded-lg px-3 py-1.5", config.bgColor, className), children: [
|
|
25236
25222
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25237
25223
|
_chunkUNFCRSYIcjs.SparklesIcon,
|
|
@@ -25239,7 +25225,7 @@ var AIStatusIndicator = ({
|
|
|
25239
25225
|
size: 16,
|
|
25240
25226
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25241
25227
|
status === "loading" && _chunk4WIJI4AKcjs.LIVE_PULSE_CLASS,
|
|
25242
|
-
confidence !== void 0 && status === "success" ?
|
|
25228
|
+
confidence !== void 0 && status === "success" ? _chunkNBLQFJ4Icjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25243
25229
|
)
|
|
25244
25230
|
}
|
|
25245
25231
|
),
|
|
@@ -25248,7 +25234,7 @@ var AIStatusIndicator = ({
|
|
|
25248
25234
|
{
|
|
25249
25235
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25250
25236
|
"text-h6",
|
|
25251
|
-
confidence !== void 0 && status === "success" ?
|
|
25237
|
+
confidence !== void 0 && status === "success" ? _chunkNBLQFJ4Icjs.getConfidenceTextClass.call(void 0, confidence) : config.color
|
|
25252
25238
|
),
|
|
25253
25239
|
children: displayText
|
|
25254
25240
|
}
|
|
@@ -25258,8 +25244,8 @@ var AIStatusIndicator = ({
|
|
|
25258
25244
|
{
|
|
25259
25245
|
className: _chunk7JWFMAQBcjs.cn.call(void 0,
|
|
25260
25246
|
"rounded-full border px-2 py-0.5 text-h6",
|
|
25261
|
-
|
|
25262
|
-
|
|
25247
|
+
_chunkNBLQFJ4Icjs.getConfidenceBorderClass.call(void 0, confidence),
|
|
25248
|
+
_chunkNBLQFJ4Icjs.getConfidenceTextClass.call(void 0, confidence)
|
|
25263
25249
|
),
|
|
25264
25250
|
children: confidenceLabel
|
|
25265
25251
|
}
|
|
@@ -25835,7 +25821,7 @@ function ApprovalLevelView({
|
|
|
25835
25821
|
] });
|
|
25836
25822
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, READ_ONLY_ROW_CLASS, className), children: [
|
|
25837
25823
|
name,
|
|
25838
|
-
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25824
|
+
showLabel ? icon : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLW2VL5Wcjs.TouchFriendlyTooltip, { content: `${current.label}: ${current.hint}`, side: "top", children: icon })
|
|
25839
25825
|
] });
|
|
25840
25826
|
}
|
|
25841
25827
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, EDITABLE_ROW_CLASS, className), children: [
|
|
@@ -25943,7 +25929,7 @@ var PolicyRow = ({ policy, categoryId, editMode, onPermissionChange }) => {
|
|
|
25943
25929
|
if (level) onPermissionChange(categoryId, policy.id, level);
|
|
25944
25930
|
};
|
|
25945
25931
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-start gap-[var(--spacing-system-m)] border-b border-ods-border bg-ods-bg px-[var(--spacing-system-m)] py-[var(--spacing-system-sf)] last:border-b-0 content-md:items-center", children: [
|
|
25946
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ICON_TILE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
25932
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: ICON_TILE_CLASS, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXYZBN6D7cjs.ToolIcon, { toolType: policy.toolName, size: 16 }) }),
|
|
25947
25933
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
25948
25934
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-primary text-h4", title: policy.name, children: policy.name }),
|
|
25949
25935
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "break-all text-ods-text-secondary text-h6", children: policy.commandPattern }),
|
|
@@ -25982,7 +25968,7 @@ var CategorySection = ({
|
|
|
25982
25968
|
}) => {
|
|
25983
25969
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingGiven;
|
|
25984
25970
|
const isExpanded = isExpandedProp && !loading;
|
|
25985
|
-
const { innerRef, containerStyle } =
|
|
25971
|
+
const { innerRef, containerStyle } = _chunkJLKGLPDCcjs.useCollapsible.call(void 0, { expanded: isExpanded, durationMs: 300 });
|
|
25986
25972
|
const handleBulkChange = (level) => onBulkLevelChange(category.id, level);
|
|
25987
25973
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
25988
25974
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -26139,7 +26125,7 @@ function OpenPolicyButton({ href, name }) {
|
|
|
26139
26125
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26140
26126
|
_chunkAHBTZ7DNcjs.Button,
|
|
26141
26127
|
{
|
|
26142
|
-
onClick: loading ? void 0 :
|
|
26128
|
+
onClick: loading ? void 0 : _chunkNBLQFJ4Icjs.openInNewTab.call(void 0, href),
|
|
26143
26129
|
disabled: loading,
|
|
26144
26130
|
variant: "outline",
|
|
26145
26131
|
size: "icon",
|
|
@@ -26178,8 +26164,8 @@ function PoliciesTable({
|
|
|
26178
26164
|
accessorKey: "name",
|
|
26179
26165
|
header: "Name",
|
|
26180
26166
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] min-w-0 flex-col justify-center gap-1 py-2", children: [
|
|
26181
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26182
|
-
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26167
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: row.original.name }),
|
|
26168
|
+
row.original.description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.description })
|
|
26183
26169
|
] }),
|
|
26184
26170
|
meta: { width: "flex-1 min-w-0" }
|
|
26185
26171
|
},
|
|
@@ -26211,7 +26197,7 @@ function PoliciesTable({
|
|
|
26211
26197
|
cell: ({ row }) => {
|
|
26212
26198
|
const { status } = row.original;
|
|
26213
26199
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-start gap-1", children: [
|
|
26214
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26200
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { className: "self-start", label: status.label, variant: status.variant }),
|
|
26215
26201
|
status.note && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: `text-h6 ${NOTE_TONE_CLASS[status.note.tone]}`, children: status.note.text })
|
|
26216
26202
|
] });
|
|
26217
26203
|
},
|
|
@@ -26321,7 +26307,7 @@ function PolicySummaryCards({ summary, isLoading = false, hasData = true, now })
|
|
|
26321
26307
|
DashboardInfoCard,
|
|
26322
26308
|
{
|
|
26323
26309
|
title: "Updated",
|
|
26324
|
-
value: hasData && summary.lastUpdatedAt ?
|
|
26310
|
+
value: hasData && summary.lastUpdatedAt ? _chunkJLKGLPDCcjs.formatRelativeTimeFrom.call(void 0, summary.lastUpdatedAt, _nullishCoalesce(now, () => ( /* @__PURE__ */ new Date()))) : EMPTY_VALUE,
|
|
26325
26311
|
valueClassName: "!text-h3",
|
|
26326
26312
|
tooltip: "Policy compliance stats are updated hourly. View a policy's devices for real-time status."
|
|
26327
26313
|
}
|
|
@@ -26437,7 +26423,7 @@ function toValidInstant(iso) {
|
|
|
26437
26423
|
function formatLastRead(iso, now = /* @__PURE__ */ new Date()) {
|
|
26438
26424
|
const date = toValidInstant(iso);
|
|
26439
26425
|
if (!date) return TENANT_EMPTY_VALUE;
|
|
26440
|
-
return now.getTime() - date.getTime() < DAY_MS ?
|
|
26426
|
+
return now.getTime() - date.getTime() < DAY_MS ? _chunkJLKGLPDCcjs.formatRelativeTimeFrom.call(void 0, date, now) : _chunkKVJKKVB3cjs.formatDate.call(void 0, date);
|
|
26441
26427
|
}
|
|
26442
26428
|
function usersCountLabel(count) {
|
|
26443
26429
|
if (count == null) return TENANT_EMPTY_VALUE;
|
|
@@ -26449,8 +26435,8 @@ function usersCountLabel(count) {
|
|
|
26449
26435
|
function TenantAccessCell({ accessState, lastReadAt: lastReadAt2, now }) {
|
|
26450
26436
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
26451
26437
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26452
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26453
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26438
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { ...accessStateTag(accessState), loading, className: "self-start" }),
|
|
26439
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: `Last read: ${formatLastRead(lastReadAt2, now)}` })
|
|
26454
26440
|
] });
|
|
26455
26441
|
}
|
|
26456
26442
|
|
|
@@ -26462,9 +26448,9 @@ function TenantCell({ provider, name, domain }) {
|
|
|
26462
26448
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26463
26449
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26464
26450
|
loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.MediaSkeleton.Icon, { size: "md", className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Logo, { size: 24, role: "img", "aria-label": label, className: "shrink-0" }),
|
|
26465
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26451
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: name })
|
|
26466
26452
|
] }),
|
|
26467
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26453
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: _nullishCoalesce(domain, () => ( TENANT_EMPTY_VALUE)) })
|
|
26468
26454
|
] });
|
|
26469
26455
|
}
|
|
26470
26456
|
|
|
@@ -26474,10 +26460,10 @@ function TenantCustomerCell({ name, imageUrl, userCount }) {
|
|
|
26474
26460
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
26475
26461
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
26476
26462
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
26477
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26478
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26463
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { src: _nullishCoalesce(imageUrl, () => ( void 0)), alt: name, fallback: name, size: "xs", variant: "square" }),
|
|
26464
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: name })
|
|
26479
26465
|
] }),
|
|
26480
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26466
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: usersCountLabel(userCount) })
|
|
26481
26467
|
] });
|
|
26482
26468
|
}
|
|
26483
26469
|
|
|
@@ -26513,7 +26499,7 @@ function OpenTenantButton({ href, name }) {
|
|
|
26513
26499
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
26514
26500
|
_chunkAHBTZ7DNcjs.Button,
|
|
26515
26501
|
{
|
|
26516
|
-
onClick: loading ? void 0 :
|
|
26502
|
+
onClick: loading ? void 0 : _chunkNBLQFJ4Icjs.openInNewTab.call(void 0, href),
|
|
26517
26503
|
disabled: loading,
|
|
26518
26504
|
variant: "outline",
|
|
26519
26505
|
size: "icon",
|
|
@@ -26645,13 +26631,13 @@ function WaitlistForm({
|
|
|
26645
26631
|
const [email, setEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26646
26632
|
const [phone, setPhone] = _react.useState.call(void 0, defaultPhone);
|
|
26647
26633
|
const [countryCode, setCountryCode] = _react.useState.call(void 0, "US");
|
|
26648
|
-
const { toast } =
|
|
26649
|
-
const { honeypotInputProps, getSignals, resetSignals } =
|
|
26634
|
+
const { toast } = _chunkAZJYMTBScjs.useToast.call(void 0, );
|
|
26635
|
+
const { honeypotInputProps, getSignals, resetSignals } = _chunkAZJYMTBScjs.useHumanitySignals.call(void 0, );
|
|
26650
26636
|
const [smsConsent, setSmsConsent] = _react.useState.call(void 0, false);
|
|
26651
|
-
const isClient =
|
|
26637
|
+
const isClient = _chunkF2VN3UUBcjs.useIsHydrated.call(void 0, );
|
|
26652
26638
|
const [isPhoneInvalid, setIsPhoneInvalid] = _react.useState.call(void 0, false);
|
|
26653
26639
|
const [showConsentError, setShowConsentError] = _react.useState.call(void 0, false);
|
|
26654
|
-
const rescue =
|
|
26640
|
+
const rescue = _chunkAZJYMTBScjs.useFormRescue.call(void 0, {
|
|
26655
26641
|
form: rescueForm,
|
|
26656
26642
|
// The phone is reported as filled only; its value never leaves the form early.
|
|
26657
26643
|
fieldNames: ["email", "phone"],
|
|
@@ -26663,7 +26649,7 @@ function WaitlistForm({
|
|
|
26663
26649
|
_react.useEffect.call(void 0, () => {
|
|
26664
26650
|
rescue.track({ email, phone }, null);
|
|
26665
26651
|
}, [email, phone, rescue]);
|
|
26666
|
-
const isMailDomainGeneric =
|
|
26652
|
+
const isMailDomainGeneric = _chunkNBLQFJ4Icjs.hasGenericEmailDomain.call(void 0, email);
|
|
26667
26653
|
const [syncedDefaultEmail, setSyncedDefaultEmail] = _react.useState.call(void 0, defaultEmail);
|
|
26668
26654
|
if (syncedDefaultEmail !== defaultEmail) {
|
|
26669
26655
|
setSyncedDefaultEmail(defaultEmail);
|
|
@@ -26697,7 +26683,7 @@ function WaitlistForm({
|
|
|
26697
26683
|
setShowConsentError(true);
|
|
26698
26684
|
return;
|
|
26699
26685
|
}
|
|
26700
|
-
const finalPhone = phone ?
|
|
26686
|
+
const finalPhone = phone ? _chunkNBLQFJ4Icjs.formatPhoneE164.call(void 0, phone, countryCode) : void 0;
|
|
26701
26687
|
try {
|
|
26702
26688
|
await onRegister(email, finalPhone, getSignals(), rescue.submitFields());
|
|
26703
26689
|
rescue.complete();
|
|
@@ -27420,7 +27406,7 @@ var typeColorByVariant = {
|
|
|
27420
27406
|
error: "text-ods-error"
|
|
27421
27407
|
};
|
|
27422
27408
|
var progressColorByVariant2 = {
|
|
27423
|
-
...
|
|
27409
|
+
..._chunkAZJYMTBScjs.progressColorByVariant,
|
|
27424
27410
|
default: "bg-ods-accent",
|
|
27425
27411
|
info: "bg-ods-accent"
|
|
27426
27412
|
};
|
|
@@ -27510,11 +27496,11 @@ function LoadedNotificationTile({
|
|
|
27510
27496
|
alt: "",
|
|
27511
27497
|
onError: () => setFailedImageUrl(image),
|
|
27512
27498
|
className: "size-4 rounded-[2px] object-cover",
|
|
27513
|
-
width:
|
|
27514
|
-
height:
|
|
27499
|
+
width: _chunkVXXOUM2Kcjs.IMAGE_FIXED_PX.icon,
|
|
27500
|
+
height: _chunkVXXOUM2Kcjs.IMAGE_FIXED_PX.icon,
|
|
27515
27501
|
unoptimized: true
|
|
27516
27502
|
}
|
|
27517
|
-
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "size-1.5 rounded-full",
|
|
27503
|
+
) : _nullishCoalesce(icon, () => ( /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "size-1.5 rounded-full", _chunkAZJYMTBScjs.dotColorByVariant[accentVariant]) }))) }),
|
|
27518
27504
|
type ? lockscreen ? (
|
|
27519
27505
|
// A phone names the sender in plain words and never cuts them.
|
|
27520
27506
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "min-w-0 flex-1 break-words text-ods-text-secondary text-h6", children: type })
|
|
@@ -27524,7 +27510,7 @@ function LoadedNotificationTile({
|
|
|
27524
27510
|
{
|
|
27525
27511
|
dateTime: createdAtIso,
|
|
27526
27512
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0 whitespace-nowrap text-ods-text-secondary text-h6", lockscreen && "self-start"),
|
|
27527
|
-
children: _nullishCoalesce(timeLabel, () => (
|
|
27513
|
+
children: _nullishCoalesce(timeLabel, () => ( _chunkJLKGLPDCcjs.formatTicketRelativeTime.call(void 0, createdAtIso)))
|
|
27528
27514
|
}
|
|
27529
27515
|
) : null,
|
|
27530
27516
|
!lockscreen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: TILE_CONTROL_BOX_CLASS, children: [
|
|
@@ -27849,7 +27835,7 @@ function ShowNotificationsToggleRow({ checked, onChange }) {
|
|
|
27849
27835
|
] });
|
|
27850
27836
|
}
|
|
27851
27837
|
function DesktopNotificationsToggleRow({ checked, onChange }) {
|
|
27852
|
-
const { supported, permission, request } =
|
|
27838
|
+
const { supported, permission, request } = _chunkAZJYMTBScjs.useNotificationPermission.call(void 0, );
|
|
27853
27839
|
if (!supported) return null;
|
|
27854
27840
|
const blocked = permission === "denied";
|
|
27855
27841
|
const handleChange = async (value) => {
|
|
@@ -28027,13 +28013,13 @@ function getApprovalMeta(notification) {
|
|
|
28027
28013
|
function resolutionToStatus(resolution) {
|
|
28028
28014
|
switch (typeof resolution === "string" ? resolution.toUpperCase() : void 0) {
|
|
28029
28015
|
case "APPROVED":
|
|
28030
|
-
return
|
|
28016
|
+
return _chunkKVJKKVB3cjs.APPROVAL_STATUS.APPROVED;
|
|
28031
28017
|
case "REJECTED":
|
|
28032
|
-
return
|
|
28018
|
+
return _chunkKVJKKVB3cjs.APPROVAL_STATUS.REJECTED;
|
|
28033
28019
|
case "CANCELLED":
|
|
28034
|
-
return
|
|
28020
|
+
return _chunkKVJKKVB3cjs.APPROVAL_STATUS.CANCELLED;
|
|
28035
28021
|
default:
|
|
28036
|
-
return
|
|
28022
|
+
return _chunkKVJKKVB3cjs.APPROVAL_STATUS.PENDING;
|
|
28037
28023
|
}
|
|
28038
28024
|
}
|
|
28039
28025
|
function approvalMetaToBatchData(approval) {
|
|
@@ -28078,7 +28064,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28078
28064
|
const resolvedStatus = resolutionToStatus(_optionalChain([approval, 'optionalAccess', _596 => _596.resolution]));
|
|
28079
28065
|
const status = resolvedStatus !== "pending" ? resolvedStatus : _nullishCoalesce(localStatus, () => ( "pending"));
|
|
28080
28066
|
const batchData = _react.useMemo.call(void 0, () => approval ? approvalMetaToBatchData(approval) : null, [approval]);
|
|
28081
|
-
const { innerRef, containerStyle } =
|
|
28067
|
+
const { innerRef, containerStyle } = _chunkJLKGLPDCcjs.useCollapsible.call(void 0, { expanded });
|
|
28082
28068
|
if (!approval || !batchData) return null;
|
|
28083
28069
|
const tileNotification = {
|
|
28084
28070
|
...notification,
|
|
@@ -28141,7 +28127,7 @@ function ApprovalRequestNotificationTile({
|
|
|
28141
28127
|
}
|
|
28142
28128
|
)
|
|
28143
28129
|
] }) : /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
28144
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28130
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ApprovalStatusTag, { status }),
|
|
28145
28131
|
approval.resolvedByName ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: [
|
|
28146
28132
|
"by ",
|
|
28147
28133
|
approval.resolvedByName
|
|
@@ -28159,12 +28145,12 @@ function ApprovalRequestNotificationTile({
|
|
|
28159
28145
|
"aria-expanded": expanded,
|
|
28160
28146
|
"aria-label": toggleLabel,
|
|
28161
28147
|
className: APPROVAL_TOGGLE_BUTTON_CLASS,
|
|
28162
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28148
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.ExpandChevron, { expanded })
|
|
28163
28149
|
}
|
|
28164
28150
|
)
|
|
28165
28151
|
] }),
|
|
28166
28152
|
children: !lockscreen && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref: innerRef, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "border-t border-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28167
|
-
|
|
28153
|
+
_chunkJLKGLPDCcjs.ApprovalBatchMessage,
|
|
28168
28154
|
{
|
|
28169
28155
|
data: batchData,
|
|
28170
28156
|
showExecutionStatus: false,
|
|
@@ -28237,7 +28223,7 @@ function renderCustomerOption(option, isSelected) {
|
|
|
28237
28223
|
const { label, imageUrl } = option;
|
|
28238
28224
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex w-full min-w-0 items-center justify-between gap-[var(--spacing-system-xs)]", children: [
|
|
28239
28225
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xs)]", children: [
|
|
28240
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28226
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { src: imageUrl, alt: label, fallback: label, size: "sm", variant: "square" }),
|
|
28241
28227
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate", title: label, children: label })
|
|
28242
28228
|
] }),
|
|
28243
28229
|
isSelected && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { className: "text-ods-accent", size: 20 })
|
|
@@ -28321,7 +28307,7 @@ function TimeTrackerPanel({
|
|
|
28321
28307
|
}));
|
|
28322
28308
|
const selectedCustomer = customerAutocompleteOptions.find((o) => o.value === selectedCustomerId);
|
|
28323
28309
|
const customerStartAdornment = selectedCustomer ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28324
|
-
|
|
28310
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
28325
28311
|
{
|
|
28326
28312
|
src: selectedCustomer.imageUrl,
|
|
28327
28313
|
alt: selectedCustomer.label,
|
|
@@ -28401,7 +28387,7 @@ function TimeTrackerPanel({
|
|
|
28401
28387
|
] }),
|
|
28402
28388
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid gap-[var(--spacing-system-m)]", showCustomer && "grid-cols-2"), children: [
|
|
28403
28389
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28404
|
-
|
|
28390
|
+
_chunk66ZQ7LDRcjs.Autocomplete,
|
|
28405
28391
|
{
|
|
28406
28392
|
value: selectedTicketId,
|
|
28407
28393
|
onChange: onSelectedTicketChange,
|
|
@@ -28417,7 +28403,7 @@ function TimeTrackerPanel({
|
|
|
28417
28403
|
}
|
|
28418
28404
|
),
|
|
28419
28405
|
showCustomer && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28420
|
-
|
|
28406
|
+
_chunk66ZQ7LDRcjs.Autocomplete,
|
|
28421
28407
|
{
|
|
28422
28408
|
value: _nullishCoalesce(selectedCustomerId, () => ( null)),
|
|
28423
28409
|
onChange: onSelectedCustomerChange,
|
|
@@ -28500,7 +28486,7 @@ var STATUS_TAG_SKIN = "gap-[var(--spacing-system-xs)] font-mono font-medium uppe
|
|
|
28500
28486
|
function StatusTag({ status }) {
|
|
28501
28487
|
if (status === "tracking") {
|
|
28502
28488
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28503
|
-
|
|
28489
|
+
_chunkTGOJHOQRcjs.Tag,
|
|
28504
28490
|
{
|
|
28505
28491
|
variant: "success",
|
|
28506
28492
|
className: STATUS_TAG_SKIN,
|
|
@@ -28510,9 +28496,9 @@ function StatusTag({ status }) {
|
|
|
28510
28496
|
);
|
|
28511
28497
|
}
|
|
28512
28498
|
if (status === "paused") {
|
|
28513
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28499
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { variant: "warning", className: STATUS_TAG_SKIN, icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4D25RXYZcjs.PauseIcon, { className: "h-4 w-4" }), label: "Paused" });
|
|
28514
28500
|
}
|
|
28515
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28501
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { variant: "grey", className: STATUS_TAG_SKIN, label: "Ready to Track" });
|
|
28516
28502
|
}
|
|
28517
28503
|
function LastEntryRow({ entry, onClick }) {
|
|
28518
28504
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-[var(--spacing-system-m)] border-b border-ods-border bg-ods-bg px-[var(--spacing-system-m)] py-[var(--spacing-system-sf)] last:border-b-0", children: [
|
|
@@ -28703,7 +28689,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
28703
28689
|
|
|
28704
28690
|
// src/components/features/devices/device-last-online.ts
|
|
28705
28691
|
function formatLastOnline(lastSeen) {
|
|
28706
|
-
return `Last Online: ${lastSeen ?
|
|
28692
|
+
return `Last Online: ${lastSeen ? _chunkJLKGLPDCcjs.formatRelativeTime.call(void 0, lastSeen) : "\u2014"}`;
|
|
28707
28693
|
}
|
|
28708
28694
|
|
|
28709
28695
|
// src/components/features/devices/device-name.ts
|
|
@@ -28747,7 +28733,7 @@ var SELECTION_MODE_OPTIONS = [
|
|
|
28747
28733
|
label: "Select Devices by Criteria",
|
|
28748
28734
|
description: CRITERIA_MODE_DESCRIPTION,
|
|
28749
28735
|
disabled: true,
|
|
28750
|
-
trailing: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
28736
|
+
trailing: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { label: "Coming Soon", variant: "grey" })
|
|
28751
28737
|
}
|
|
28752
28738
|
];
|
|
28753
28739
|
var SELECTION_MODE_OPTIONS_ENABLED = [
|
|
@@ -28852,7 +28838,7 @@ function getDeviceStatusConfig(status) {
|
|
|
28852
28838
|
}
|
|
28853
28839
|
}
|
|
28854
28840
|
function getDeviceOperatingSystem(osType) {
|
|
28855
|
-
return
|
|
28841
|
+
return _chunkNBLQFJ4Icjs.getOSPlatformId.call(void 0, osType);
|
|
28856
28842
|
}
|
|
28857
28843
|
|
|
28858
28844
|
// src/components/features/devices/device-statuses.ts
|
|
@@ -29029,8 +29015,8 @@ function DevicesFilterToolbar({
|
|
|
29029
29015
|
|
|
29030
29016
|
|
|
29031
29017
|
function formatDateTime(input) {
|
|
29032
|
-
const date =
|
|
29033
|
-
return date === "\u2014" ? date : `${date} ${
|
|
29018
|
+
const date = _chunkKVJKKVB3cjs.formatDate.call(void 0, input);
|
|
29019
|
+
return date === "\u2014" ? date : `${date} ${_chunkKVJKKVB3cjs.formatTime.call(void 0, input)}`;
|
|
29034
29020
|
}
|
|
29035
29021
|
function uniqueById(options) {
|
|
29036
29022
|
const seen = /* @__PURE__ */ new Map();
|
|
@@ -29147,7 +29133,7 @@ function DevicesTableBody({
|
|
|
29147
29133
|
function OrganizationCell({ device }) {
|
|
29148
29134
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29149
29135
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3", children: [
|
|
29150
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29136
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.EntityImage, { src: fullImageUrl, alt: device.organization || "Customer", className: "size-12 content-md:size-12" }),
|
|
29151
29137
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OrganizationName, { name: device.organization }) })
|
|
29152
29138
|
] });
|
|
29153
29139
|
}
|
|
@@ -29199,7 +29185,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29199
29185
|
const device = row.original;
|
|
29200
29186
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "relative box-border flex h-20 w-full shrink-0 content-stretch items-center justify-start gap-4 py-0", children: [
|
|
29201
29187
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29202
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29188
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: getDeviceName(device) }) })
|
|
29203
29189
|
] });
|
|
29204
29190
|
},
|
|
29205
29191
|
meta: { width: "flex-1 content-md:w-1/4" }
|
|
@@ -29212,7 +29198,7 @@ function getDeviceTableColumns(deviceFilters, filtersPending) {
|
|
|
29212
29198
|
const device = row.original;
|
|
29213
29199
|
const statusConfig2 = getDeviceStatusConfig(device.status);
|
|
29214
29200
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col items-start gap-1", children: [
|
|
29215
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29201
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "inline-flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { label: statusConfig2.label, variant: statusConfig2.variant }) }),
|
|
29216
29202
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceLastSeen, { lastSeen: device.last_seen })
|
|
29217
29203
|
] });
|
|
29218
29204
|
},
|
|
@@ -29371,7 +29357,7 @@ function CustomerCell({ device }) {
|
|
|
29371
29357
|
const fullImageUrl = useDeviceImageUrl(device.organizationImageUrl, device.organizationImageHash);
|
|
29372
29358
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-3", children: [
|
|
29373
29359
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29374
|
-
|
|
29360
|
+
_chunk66ZQ7LDRcjs.EntityImage,
|
|
29375
29361
|
{
|
|
29376
29362
|
src: fullImageUrl,
|
|
29377
29363
|
alt: device.organization || "Customer",
|
|
@@ -29379,8 +29365,8 @@ function CustomerCell({ device }) {
|
|
|
29379
29365
|
}
|
|
29380
29366
|
),
|
|
29381
29367
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center", children: [
|
|
29382
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29383
|
-
(device.organizationEmail || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29368
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: device.organization || "" }),
|
|
29369
|
+
(device.organizationEmail || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(device.organizationEmail, () => ( "")) })
|
|
29384
29370
|
] })
|
|
29385
29371
|
] });
|
|
29386
29372
|
}
|
|
@@ -29389,15 +29375,15 @@ function DeviceCell({ device }) {
|
|
|
29389
29375
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 items-center gap-3", children: [
|
|
29390
29376
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, DeviceTypeTile, { type: device.type }),
|
|
29391
29377
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col", children: [
|
|
29392
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29393
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29378
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: getDeviceName(device) }),
|
|
29379
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", loading, children: formatLastOnline(device.last_seen || device.lastSeen) })
|
|
29394
29380
|
] })
|
|
29395
29381
|
] });
|
|
29396
29382
|
}
|
|
29397
29383
|
function StatusCell({ status }) {
|
|
29398
|
-
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29384
|
+
if (_chunk7JWFMAQBcjs.useLoadingScope.call(void 0, )) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { loading: true, label: "", className: "w-min" });
|
|
29399
29385
|
const config = getDeviceStatusConfig(status);
|
|
29400
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29386
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { label: config.label, variant: config.variant, className: "w-min" });
|
|
29401
29387
|
}
|
|
29402
29388
|
function InertInScope({ children }) {
|
|
29403
29389
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { loading: _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ), className: "contents", children });
|
|
@@ -30190,7 +30176,7 @@ function DevicesList({
|
|
|
30190
30176
|
const handleClearAll = _react.useCallback.call(void 0, () => patch({ search: "", tags: [] }), [patch]);
|
|
30191
30177
|
const narrowed = isNarrowed(narrowing);
|
|
30192
30178
|
const isEmptyState = !isLoading && !isPending && !narrowed && devices.length === 0;
|
|
30193
|
-
const { toolbarRef, containerStyle, stickyHeaderOffset: measuredOffset } =
|
|
30179
|
+
const { toolbarRef, containerStyle, stickyHeaderOffset: measuredOffset } = _chunkAZJYMTBScjs.useStickyToolbar.call(void 0, );
|
|
30194
30180
|
const headerOffset = _nullishCoalesce(stickyHeaderOffset, () => ( (stickyToolbar ? measuredOffset : void 0)));
|
|
30195
30181
|
const actionsColumn = _react.useMemo.call(void 0, () => rowActions2 ? getDeviceActionsColumn(rowActions2) : void 0, [rowActions2]);
|
|
30196
30182
|
return (
|
|
@@ -30419,7 +30405,7 @@ function DevicesPanelView({
|
|
|
30419
30405
|
] })
|
|
30420
30406
|
] });
|
|
30421
30407
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30422
|
-
|
|
30408
|
+
_chunk66ZQ7LDRcjs.PageLayout,
|
|
30423
30409
|
{
|
|
30424
30410
|
title,
|
|
30425
30411
|
backButton,
|
|
@@ -30427,7 +30413,7 @@ function DevicesPanelView({
|
|
|
30427
30413
|
actionsVariant: "icon-buttons",
|
|
30428
30414
|
className,
|
|
30429
30415
|
selector: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30430
|
-
|
|
30416
|
+
_chunkF2VN3UUBcjs.TabSelector,
|
|
30431
30417
|
{
|
|
30432
30418
|
value: viewMode,
|
|
30433
30419
|
onValueChange: (value) => _optionalChain([onViewModeChange, 'optionalCall', _672 => _672(value)]),
|
|
@@ -30493,7 +30479,7 @@ var PACKAGE_SEARCH_LABEL = "Software Name";
|
|
|
30493
30479
|
var PACKAGE_SEARCH_PLACEHOLDER = "Search for Software";
|
|
30494
30480
|
function PackageSearchFieldPlaceholder({ error }) {
|
|
30495
30481
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30496
|
-
|
|
30482
|
+
_chunk66ZQ7LDRcjs.Autocomplete,
|
|
30497
30483
|
{
|
|
30498
30484
|
label: PACKAGE_SEARCH_LABEL,
|
|
30499
30485
|
labelVariant: "large",
|
|
@@ -30548,16 +30534,16 @@ function SoftwareScheduleFields({
|
|
|
30548
30534
|
] }),
|
|
30549
30535
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30550
30536
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Time" }),
|
|
30551
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30552
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30553
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30537
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.Select, { value: time, onValueChange: onTimeChange, children: [
|
|
30538
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, { placeholder: "Select time" }) }),
|
|
30539
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: timeOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30554
30540
|
] })
|
|
30555
30541
|
] }),
|
|
30556
30542
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col gap-[var(--spacing-system-xxs)]", children: [
|
|
30557
30543
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Timezone" }),
|
|
30558
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30559
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30560
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30544
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.Select, { value: timeReference, onValueChange: (value) => onTimeReferenceChange(value), children: [
|
|
30545
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, {}) }),
|
|
30546
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: timing.timeReferenceOptions.map((option) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: option.value, children: option.label }, option.value)) })
|
|
30561
30547
|
] })
|
|
30562
30548
|
] })
|
|
30563
30549
|
]
|
|
@@ -30623,22 +30609,22 @@ function newSoftwareRow(key) {
|
|
|
30623
30609
|
|
|
30624
30610
|
function InfoCell2({ value, label }) {
|
|
30625
30611
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
30626
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30612
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: value ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: value }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1 text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary", children: "\u2014" }) }) }),
|
|
30627
30613
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-ods-text-secondary text-h6", children: label })
|
|
30628
30614
|
] });
|
|
30629
30615
|
}
|
|
30630
30616
|
function SoftwareRowFields({ row, removable, onChange, onRemove, renderPackageSearch }) {
|
|
30631
30617
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-[var(--spacing-system-l)] rounded-md border border-ods-border bg-ods-bg p-[var(--spacing-system-l)] content-lg:flex-row content-lg:items-end", children: [
|
|
30632
30618
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30633
|
-
|
|
30619
|
+
_chunk66ZQ7LDRcjs.Select,
|
|
30634
30620
|
{
|
|
30635
30621
|
value: row.packageManager,
|
|
30636
30622
|
onValueChange: (value) => onChange({ ...row, packageManager: value, pkg: null }),
|
|
30637
30623
|
children: [
|
|
30638
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30639
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30624
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { label: "Package Manager", labelVariant: "large", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, {}) }),
|
|
30625
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: PACKAGE_MANAGERS.map((manager) => {
|
|
30640
30626
|
const Icon = PACKAGE_MANAGER_ICON[manager];
|
|
30641
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30627
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: manager, children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
30642
30628
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 20, className: "shrink-0 text-ods-text-secondary" }),
|
|
30643
30629
|
PACKAGE_MANAGER_LABEL[manager]
|
|
30644
30630
|
] }) }, manager);
|
|
@@ -30736,7 +30722,7 @@ function SoftwareActionForm({
|
|
|
30736
30722
|
}
|
|
30737
30723
|
);
|
|
30738
30724
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30739
|
-
|
|
30725
|
+
_chunk66ZQ7LDRcjs.PageLayout,
|
|
30740
30726
|
{
|
|
30741
30727
|
title: copy.formTitle,
|
|
30742
30728
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -30817,7 +30803,7 @@ function LogDrawer({
|
|
|
30817
30803
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, AppLayoutDrawerHeader, { children: [
|
|
30818
30804
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLayoutDrawerTitle, { children: "Log Details" }),
|
|
30819
30805
|
(statusTag || timestamp) && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2", children: [
|
|
30820
|
-
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30806
|
+
statusTag && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { label: statusTag.label, variant: statusTag.variant }),
|
|
30821
30807
|
timestamp && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-secondary text-h6", children: timestamp })
|
|
30822
30808
|
] })
|
|
30823
30809
|
] }),
|
|
@@ -30825,7 +30811,7 @@ function LogDrawer({
|
|
|
30825
30811
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-0 flex-1 space-y-4 overflow-y-auto", children: [
|
|
30826
30812
|
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, AppLayoutDrawerDescription, { asChild: true, className: "leading-6 text-ods-text-primary text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: description }) }),
|
|
30827
30813
|
infoFields && infoFields.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "grid grid-cols-1 gap-3 rounded-[6px] border border-ods-border bg-ods-card p-4", children: infoFields.map((field) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-1 gap-0.5", children: [
|
|
30828
|
-
typeof field.value === "string" ? field.value === "" || field.value === EMPTY_MARK ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyMark, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30814
|
+
typeof field.value === "string" ? field.value === "" || field.value === EMPTY_MARK ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-h4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyMark, {}) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: field.value }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-primary text-h4", children: field.value === null || field.value === void 0 || field.value === false ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, EmptyMark, {}) : field.value }),
|
|
30829
30815
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "truncate text-ods-text-secondary text-h6", children: field.label })
|
|
30830
30816
|
] }, typeof field.label === "string" ? field.label : "")) }),
|
|
30831
30817
|
children
|
|
@@ -30873,7 +30859,7 @@ function LogsPageView({
|
|
|
30873
30859
|
],
|
|
30874
30860
|
[onRefresh]
|
|
30875
30861
|
);
|
|
30876
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
30862
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.PageLayout, { title: "Logs", actions, showHeader, className, children: [
|
|
30877
30863
|
!hideSearch && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "sticky top-0 z-20 -my-[var(--spacing-system-l)] flex items-center gap-[var(--spacing-system-m)] bg-ods-bg py-[var(--spacing-system-l)]", children: [
|
|
30878
30864
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30879
30865
|
_chunkTTZEDDR5cjs.Input,
|
|
@@ -30962,11 +30948,11 @@ var ToolBadge = ({
|
|
|
30962
30948
|
iconClassName
|
|
30963
30949
|
}) => {
|
|
30964
30950
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
30965
|
-
const text = _nullishCoalesce(label, () => ( (toolType ?
|
|
30966
|
-
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30951
|
+
const text = _nullishCoalesce(label, () => ( (toolType ? _chunkNBLQFJ4Icjs.getToolLabel.call(void 0, toolType) : "")));
|
|
30952
|
+
const mark = _nullishCoalesce(icon, () => ( (toolType ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXYZBN6D7cjs.ToolIcon, { toolType, className: iconClassName, size: 16 }) : null)));
|
|
30967
30953
|
if (loading) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ToolBadgeSkeleton, { variant, icon: !!mark, className });
|
|
30968
30954
|
const linked = (node, linkClassName) => href && targetPlatform ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
30969
|
-
|
|
30955
|
+
_chunkF2VN3UUBcjs.NavLinkAnchorViaRuntime,
|
|
30970
30956
|
{
|
|
30971
30957
|
href,
|
|
30972
30958
|
targetPlatform,
|
|
@@ -31031,8 +31017,8 @@ function LogSourceCell({ device }) {
|
|
|
31031
31017
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
31032
31018
|
const { deviceName, organization } = logSourceLabels(device);
|
|
31033
31019
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-h-[60px] flex-col justify-center gap-1 py-2", children: [
|
|
31034
|
-
(deviceName || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31035
|
-
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31020
|
+
(deviceName || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: deviceName }),
|
|
31021
|
+
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(organization, () => ( "")) })
|
|
31036
31022
|
] });
|
|
31037
31023
|
}
|
|
31038
31024
|
function LogRowButton({
|
|
@@ -31087,8 +31073,8 @@ function LogsTableView({
|
|
|
31087
31073
|
accessorKey: "logId",
|
|
31088
31074
|
header: logIdHeader ? () => logIdHeader : "Log ID",
|
|
31089
31075
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex shrink-0 flex-col justify-center", children: [
|
|
31090
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31091
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31076
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: row.original.timestamp }),
|
|
31077
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", children: row.original.logId })
|
|
31092
31078
|
] }),
|
|
31093
31079
|
enableSorting: false,
|
|
31094
31080
|
meta: { width: LOG_COLUMN_WIDTHS.logId, alwaysShowHeader: true }
|
|
@@ -31096,7 +31082,7 @@ function LogsTableView({
|
|
|
31096
31082
|
{
|
|
31097
31083
|
accessorKey: "status",
|
|
31098
31084
|
header: "Status",
|
|
31099
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31085
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { label: row.original.status.label, variant: row.original.status.variant }) }),
|
|
31100
31086
|
enableSorting: false,
|
|
31101
31087
|
filterFn: multiSelect,
|
|
31102
31088
|
meta: {
|
|
@@ -31116,7 +31102,7 @@ function LogsTableView({
|
|
|
31116
31102
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31117
31103
|
ToolBadge,
|
|
31118
31104
|
{
|
|
31119
|
-
toolType:
|
|
31105
|
+
toolType: _chunkNBLQFJ4Icjs.normalizeToolTypeWithFallback.call(void 0, row.original.source.toolType),
|
|
31120
31106
|
iconClassName: "h-4 w-4 content-md:h-6 content-md:w-6"
|
|
31121
31107
|
}
|
|
31122
31108
|
),
|
|
@@ -31128,7 +31114,7 @@ function LogsTableView({
|
|
|
31128
31114
|
filter: {
|
|
31129
31115
|
options: _nullishCoalesce(_optionalChain([facets, 'optionalAccess', _680 => _680.toolTypes, 'access', _681 => _681.map, 'call', _682 => _682((toolType) => ({
|
|
31130
31116
|
id: toolType,
|
|
31131
|
-
label:
|
|
31117
|
+
label: _chunkNBLQFJ4Icjs.toToolLabel.call(void 0, toolType),
|
|
31132
31118
|
value: toolType
|
|
31133
31119
|
}))]), () => ( []))
|
|
31134
31120
|
}
|
|
@@ -31149,7 +31135,7 @@ function LogsTableView({
|
|
|
31149
31135
|
{
|
|
31150
31136
|
accessorKey: "description",
|
|
31151
31137
|
header: "Log Details",
|
|
31152
|
-
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31138
|
+
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { lines: 3, className: "text-ods-text-secondary text-h6", children: row.original.description.title }),
|
|
31153
31139
|
enableSorting: false,
|
|
31154
31140
|
meta: { width: LOG_COLUMN_WIDTHS.description, hideAt: "lg" }
|
|
31155
31141
|
},
|
|
@@ -31177,7 +31163,7 @@ function LogsTableView({
|
|
|
31177
31163
|
cell: ({ row }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31178
31164
|
LogRowButton,
|
|
31179
31165
|
{
|
|
31180
|
-
onClick: getLogHref ?
|
|
31166
|
+
onClick: getLogHref ? _chunkNBLQFJ4Icjs.openInNewTab.call(void 0, getLogHref(row.original)) : void 0,
|
|
31181
31167
|
icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkANTDIQKKcjs.ArrowRightUpIcon, { className: "h-5 w-5" }),
|
|
31182
31168
|
label: "Open in new tab"
|
|
31183
31169
|
}
|
|
@@ -31340,30 +31326,30 @@ function scriptExecutionStatus(status) {
|
|
|
31340
31326
|
|
|
31341
31327
|
function ExecutionSourceBadge({ source, className }) {
|
|
31342
31328
|
const tagProps = { as: "span", variant: "outline", className: _chunk7JWFMAQBcjs.cn.call(void 0, "shrink-0", className) };
|
|
31343
|
-
if (source === "SCHEDULED") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31329
|
+
if (source === "SCHEDULED") return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { ...tagProps, label: "Scheduled" });
|
|
31344
31330
|
if (source === "AI_ASSISTANT") {
|
|
31345
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31331
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { ...tagProps, label: "Mingo", icon: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.AgentMark, { agent: "mingo", className: "size-4" }) });
|
|
31346
31332
|
}
|
|
31347
31333
|
return null;
|
|
31348
31334
|
}
|
|
31349
31335
|
function ExecutionTimestampCell({ timestamp, executionId }) {
|
|
31350
31336
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31351
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31352
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31337
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: timestamp }),
|
|
31338
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", children: executionId })
|
|
31353
31339
|
] });
|
|
31354
31340
|
}
|
|
31355
31341
|
function ExecutionStatusCell({ status }) {
|
|
31356
31342
|
const presentation = scriptExecutionStatus(status);
|
|
31357
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31343
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { label: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _695 => _695.label]), () => ( String(_nullishCoalesce(status, () => ( ""))))), variant: _nullishCoalesce(_optionalChain([presentation, 'optionalAccess', _696 => _696.variant]), () => ( "grey")) }) });
|
|
31358
31344
|
}
|
|
31359
31345
|
function ExecutionDeviceCell({ name, organization }) {
|
|
31360
31346
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
31361
31347
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31362
31348
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
31363
31349
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPTK7GOIIcjs.MonitorIcon, { className: "size-6 shrink-0 text-ods-text-secondary" }),
|
|
31364
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31350
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: name }) : name })
|
|
31365
31351
|
] }),
|
|
31366
|
-
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31352
|
+
(organization || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(organization, () => ( "")) })
|
|
31367
31353
|
] });
|
|
31368
31354
|
}
|
|
31369
31355
|
function ExecutionInitiatorCell({
|
|
@@ -31376,16 +31362,16 @@ function ExecutionInitiatorCell({
|
|
|
31376
31362
|
avatar,
|
|
31377
31363
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col justify-center", children: [
|
|
31378
31364
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xxs)]", children: [
|
|
31379
|
-
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31365
|
+
typeof name === "string" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: name }) : name,
|
|
31380
31366
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ExecutionSourceBadge, { source })
|
|
31381
31367
|
] }),
|
|
31382
|
-
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31368
|
+
scriptName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", children: scriptName })
|
|
31383
31369
|
] })
|
|
31384
31370
|
] });
|
|
31385
31371
|
}
|
|
31386
31372
|
function ExecutionResultCell({ result, empty = null }) {
|
|
31387
31373
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, );
|
|
31388
|
-
return result || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31374
|
+
return result || loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { lines: 2, children: _nullishCoalesce(result, () => ( "")) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: empty });
|
|
31389
31375
|
}
|
|
31390
31376
|
function ScriptExecutionResult({
|
|
31391
31377
|
result,
|
|
@@ -31405,14 +31391,14 @@ function ScriptExecutionResult({
|
|
|
31405
31391
|
|
|
31406
31392
|
function ScriptNameCell({ name, description }) {
|
|
31407
31393
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31408
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31409
|
-
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31394
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: name }),
|
|
31395
|
+
description && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", children: description })
|
|
31410
31396
|
] });
|
|
31411
31397
|
}
|
|
31412
31398
|
function ScheduleDateTimeCell({ date, time }) {
|
|
31413
31399
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-col justify-center gap-1", children: [
|
|
31414
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31415
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31400
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: date }),
|
|
31401
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", children: time })
|
|
31416
31402
|
] });
|
|
31417
31403
|
}
|
|
31418
31404
|
|
|
@@ -31499,7 +31485,7 @@ function OpenInNewTabCell({ href }) {
|
|
|
31499
31485
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31500
31486
|
_chunkAHBTZ7DNcjs.Button,
|
|
31501
31487
|
{
|
|
31502
|
-
onClick: loading ? void 0 :
|
|
31488
|
+
onClick: loading ? void 0 : _chunkNBLQFJ4Icjs.openInNewTab.call(void 0, href),
|
|
31503
31489
|
disabled: loading,
|
|
31504
31490
|
variant: "outline",
|
|
31505
31491
|
size: "icon",
|
|
@@ -31543,7 +31529,7 @@ function ScriptExecutionsTable({
|
|
|
31543
31529
|
ExecutionInitiatorCell,
|
|
31544
31530
|
{
|
|
31545
31531
|
avatar: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31546
|
-
|
|
31532
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
31547
31533
|
{
|
|
31548
31534
|
variant: "round",
|
|
31549
31535
|
size: "md",
|
|
@@ -31642,7 +31628,7 @@ function ScriptSchedulesTable({
|
|
|
31642
31628
|
cell(SCHEDULE_COLUMNS.supportedPlatforms, (row) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, OSTypeBadgeGroup, { osTypes: row.supportedPlatforms, iconSize: "w-4 h-4 content-md:w-6 content-md:h-6" })),
|
|
31643
31629
|
cell(
|
|
31644
31630
|
SCHEDULE_COLUMNS.dateTime,
|
|
31645
|
-
(row) => row.startsAt ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScheduleDateTimeCell, { date: row.startsAt.date, time: row.startsAt.time }) : row.trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31631
|
+
(row) => row.startsAt ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScheduleDateTimeCell, { date: row.startsAt.date, time: row.startsAt.time }) : row.trigger ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { tone: "secondary", children: row.trigger }) : null
|
|
31646
31632
|
),
|
|
31647
31633
|
cell(
|
|
31648
31634
|
SCHEDULE_COLUMNS.repeat,
|
|
@@ -31688,9 +31674,9 @@ function ScriptSchedulesTable({
|
|
|
31688
31674
|
|
|
31689
31675
|
// src/components/features/scripts/shell-types.ts
|
|
31690
31676
|
var SCRIPT_SHELL_TYPES = [
|
|
31691
|
-
{ id:
|
|
31692
|
-
{ id:
|
|
31693
|
-
{ id:
|
|
31677
|
+
{ id: _chunkNBLQFJ4Icjs.ShellTypeValues.POWERSHELL, label: "PowerShell", value: "powershell", icon: _chunkMCQY746Mcjs.PowershellLogoGreyIcon },
|
|
31678
|
+
{ id: _chunkNBLQFJ4Icjs.ShellTypeValues.CMD, label: "CMD", value: "cmd", icon: _chunkNIVJEJSGcjs.TerminalSquareIcon },
|
|
31679
|
+
{ id: _chunkNBLQFJ4Icjs.ShellTypeValues.BASH, label: "Bash", value: "bash", icon: _chunkTRUW6DDAcjs.TerminalIcon }
|
|
31694
31680
|
];
|
|
31695
31681
|
function scriptShellType(value) {
|
|
31696
31682
|
return SCRIPT_SHELL_TYPES.find((shell) => shell.value === value);
|
|
@@ -31756,7 +31742,7 @@ function ScriptsTable({
|
|
|
31756
31742
|
SCRIPT_COLUMNS.authorId,
|
|
31757
31743
|
(row) => row.author ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 items-center gap-2", children: [
|
|
31758
31744
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31759
|
-
|
|
31745
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
31760
31746
|
{
|
|
31761
31747
|
variant: "round",
|
|
31762
31748
|
size: "sm",
|
|
@@ -31766,7 +31752,7 @@ function ScriptsTable({
|
|
|
31766
31752
|
initialsClassName: "text-ods-text-secondary"
|
|
31767
31753
|
}
|
|
31768
31754
|
),
|
|
31769
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
31755
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: row.author.name }) })
|
|
31770
31756
|
] }) : null
|
|
31771
31757
|
)
|
|
31772
31758
|
];
|
|
@@ -31892,7 +31878,7 @@ function slotValue(minutesOfDay) {
|
|
|
31892
31878
|
return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}`;
|
|
31893
31879
|
}
|
|
31894
31880
|
function slotLabel(minutesOfDay) {
|
|
31895
|
-
return
|
|
31881
|
+
return _chunkKVJKKVB3cjs.formatTime.call(void 0, new Date(1970, 0, 1, Math.floor(minutesOfDay / 60), minutesOfDay % 60));
|
|
31896
31882
|
}
|
|
31897
31883
|
function getTimeSlotOptions(forDate, timeReference) {
|
|
31898
31884
|
const base = slotBaseMinutes(timeReference);
|
|
@@ -32113,9 +32099,9 @@ function ReconnectWindowFields({
|
|
|
32113
32099
|
invalid
|
|
32114
32100
|
}
|
|
32115
32101
|
),
|
|
32116
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
32117
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32118
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32102
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.Select, { value: unit, onValueChange: (next) => onUnitChange(next), disabled, children: [
|
|
32103
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className: controlWidth, "aria-label": "Stop retry after unit", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, {}) }),
|
|
32104
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
32119
32105
|
] })
|
|
32120
32106
|
] });
|
|
32121
32107
|
}
|
|
@@ -32183,7 +32169,7 @@ function ScheduleOfflineFields({ showErrors, disabled = false }) {
|
|
|
32183
32169
|
options
|
|
32184
32170
|
}
|
|
32185
32171
|
),
|
|
32186
|
-
intervalError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
32172
|
+
intervalError && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: intervalError }) })
|
|
32187
32173
|
]
|
|
32188
32174
|
}
|
|
32189
32175
|
) }) })
|
|
@@ -32292,8 +32278,8 @@ function SortableList({ onReorder, getItemLabel, disabled = false, className, ch
|
|
|
32292
32278
|
// Dragging towards the edge of the screen — or past it — scrolls whatever
|
|
32293
32279
|
// actually scrolls there: the page, the layout's `<main>`, or the list
|
|
32294
32280
|
// itself when it has its own overflow.
|
|
32295
|
-
|
|
32296
|
-
|
|
32281
|
+
_chunkFLW2VL5Wcjs.autoScrollAncestors.call(void 0, list),
|
|
32282
|
+
_chunkFLW2VL5Wcjs.autoScrollBothWays.call(void 0, list),
|
|
32297
32283
|
// One target for the whole list: which slot a drop lands in is answered by
|
|
32298
32284
|
// geometry, so this only has to say "inside the list, or outside it".
|
|
32299
32285
|
_adapter.dropTargetForElements.call(void 0, {
|
|
@@ -32590,7 +32576,7 @@ function useSortableItem() {
|
|
|
32590
32576
|
return _combine.combine.call(void 0,
|
|
32591
32577
|
// The drag has to start as a "move", or its first frame is drawn with the
|
|
32592
32578
|
// copy cursor — see `drag-effect.ts`.
|
|
32593
|
-
|
|
32579
|
+
_chunkFLW2VL5Wcjs.holdMoveDragEffect.call(void 0, item),
|
|
32594
32580
|
_adapter.draggable.call(void 0, {
|
|
32595
32581
|
element: item,
|
|
32596
32582
|
dragHandle: handle,
|
|
@@ -33018,24 +33004,24 @@ function ScheduleTimingFields({
|
|
|
33018
33004
|
// `''` reads as "no selection" to Radix, so the placeholder shows
|
|
33019
33005
|
// until a slot is picked — a date at midnight no longer
|
|
33020
33006
|
// masquerades as a chosen 12:00 AM.
|
|
33021
|
-
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33007
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunk66ZQ7LDRcjs.Select, { value: field.value, onValueChange: field.onChange, disabled: fieldsDisabled, children: [
|
|
33022
33008
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33023
|
-
|
|
33009
|
+
_chunk66ZQ7LDRcjs.SelectTrigger,
|
|
33024
33010
|
{
|
|
33025
33011
|
className: "w-full",
|
|
33026
33012
|
error: _nullishCoalesce(pastTimeError, () => ( (showErrors ? _optionalChain([fieldState, 'access', _734 => _734.error, 'optionalAccess', _735 => _735.message]) : void 0))),
|
|
33027
33013
|
invalid: !!pastTimeError || showErrors && !!fieldState.error,
|
|
33028
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33014
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, { placeholder: "Select time" })
|
|
33029
33015
|
}
|
|
33030
33016
|
),
|
|
33031
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33017
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: timeSlots.length === 0 ? (
|
|
33032
33018
|
// Deliberately NOT a `SelectItem` — there is nothing here
|
|
33033
33019
|
// to select, and a selectable row would put a bogus value
|
|
33034
33020
|
// in the form. It replaces a popup that opened blank; the
|
|
33035
33021
|
// Date field carries the same sentence for whoever never
|
|
33036
33022
|
// opens this one.
|
|
33037
33023
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "px-4 py-[var(--spacing-system-sf)] text-ods-text-secondary text-h6", children: NO_SLOTS_TODAY_MESSAGE })
|
|
33038
|
-
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33024
|
+
) : timeSlots.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33039
33025
|
] })
|
|
33040
33026
|
)
|
|
33041
33027
|
}
|
|
@@ -33049,14 +33035,14 @@ function ScheduleTimingFields({
|
|
|
33049
33035
|
name: "timeReference",
|
|
33050
33036
|
control,
|
|
33051
33037
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33052
|
-
|
|
33038
|
+
_chunk66ZQ7LDRcjs.Select,
|
|
33053
33039
|
{
|
|
33054
33040
|
value: field.value,
|
|
33055
33041
|
onValueChange: (next) => handleTimeReferenceChange(field.onChange, next),
|
|
33056
33042
|
disabled: fieldsDisabled,
|
|
33057
33043
|
children: [
|
|
33058
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33059
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33044
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className: "w-full", "aria-label": "Timezone", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, {}) }),
|
|
33045
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: SCHEDULE_TIME_REFERENCE_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33060
33046
|
]
|
|
33061
33047
|
}
|
|
33062
33048
|
)
|
|
@@ -33116,7 +33102,7 @@ function ScheduleTimingFields({
|
|
|
33116
33102
|
name: "repeatUnit",
|
|
33117
33103
|
control,
|
|
33118
33104
|
render: ({ field }) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33119
|
-
|
|
33105
|
+
_chunk66ZQ7LDRcjs.Select,
|
|
33120
33106
|
{
|
|
33121
33107
|
value: field.value,
|
|
33122
33108
|
onValueChange: (next) => {
|
|
@@ -33127,8 +33113,8 @@ function ScheduleTimingFields({
|
|
|
33127
33113
|
},
|
|
33128
33114
|
disabled: fieldsDisabled || !repeatEnabled,
|
|
33129
33115
|
children: [
|
|
33130
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33131
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33116
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectTrigger, { className: "w-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectValue, {}) }),
|
|
33117
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectContent, { children: DURATION_UNIT_OPTIONS.map((opt) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.SelectItem, { value: opt.value, children: opt.label }, opt.value)) })
|
|
33132
33118
|
]
|
|
33133
33119
|
}
|
|
33134
33120
|
)
|
|
@@ -33147,7 +33133,7 @@ function ScheduleFormFields({
|
|
|
33147
33133
|
disabled = false,
|
|
33148
33134
|
renderScriptSearch,
|
|
33149
33135
|
timeReferenceGate = "off",
|
|
33150
|
-
platforms =
|
|
33136
|
+
platforms = _chunkNBLQFJ4Icjs.OS_PLATFORMS,
|
|
33151
33137
|
comingSoonPlatforms = [],
|
|
33152
33138
|
getTimeSlots,
|
|
33153
33139
|
nameLayout = "stacked",
|
|
@@ -33217,7 +33203,7 @@ function ScheduleFormFields({
|
|
|
33217
33203
|
platform.id
|
|
33218
33204
|
);
|
|
33219
33205
|
}) }),
|
|
33220
|
-
showErrors && formState.errors.supportedPlatforms && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33206
|
+
showErrors && formState.errors.supportedPlatforms && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "absolute bottom-0 left-0 right-0 translate-y-full", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", className: "text-ods-error", children: _nullishCoalesce(formState.errors.supportedPlatforms.message, () => ( "")) }) })
|
|
33221
33207
|
]
|
|
33222
33208
|
}
|
|
33223
33209
|
);
|
|
@@ -33293,7 +33279,7 @@ function ScheduleFormFields({
|
|
|
33293
33279
|
// src/components/features/scripts/schedule-form/schedule-script-search-field.tsx
|
|
33294
33280
|
|
|
33295
33281
|
function ScriptPlatformIcons({ platforms }) {
|
|
33296
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children:
|
|
33282
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex shrink-0 items-center gap-0.5", children: _chunkNBLQFJ4Icjs.OS_PLATFORMS.filter((p) => platforms.includes(p.id)).map((p) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, p.icon, { className: "h-3.5 w-3.5 text-ods-text-secondary opacity-60" }, p.id)) });
|
|
33297
33283
|
}
|
|
33298
33284
|
function ScheduleScriptSearchField({
|
|
33299
33285
|
scriptId,
|
|
@@ -33319,7 +33305,7 @@ function ScheduleScriptSearchField({
|
|
|
33319
33305
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-[var(--spacing-system-xxs)]", onFocus: onOpen, onBlur: handleBlur, children: [
|
|
33320
33306
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkGD47ZGOUcjs.Label, { className: "text-h4", children: "Select Script" }),
|
|
33321
33307
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33322
|
-
|
|
33308
|
+
_chunk66ZQ7LDRcjs.Autocomplete,
|
|
33323
33309
|
{
|
|
33324
33310
|
options,
|
|
33325
33311
|
value: scriptId || null,
|
|
@@ -33334,7 +33320,7 @@ function ScheduleScriptSearchField({
|
|
|
33334
33320
|
error,
|
|
33335
33321
|
invalid,
|
|
33336
33322
|
renderOption: (option, isSelected) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "flex w-full min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33337
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33323
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "min-w-0 flex-1", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { className: isSelected ? "text-ods-accent" : void 0, children: option.label }) }),
|
|
33338
33324
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, ScriptPlatformIcons, { platforms: _nullishCoalesce(_optionalChain([scripts, 'access', _741 => _741.find, 'call', _742 => _742((s) => s.id === option.value), 'optionalAccess', _743 => _743.supportedPlatforms]), () => ( [])) })
|
|
33339
33325
|
] })
|
|
33340
33326
|
}
|
|
@@ -33366,7 +33352,7 @@ function KnowledgeBaseOpenButton({ href }) {
|
|
|
33366
33352
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { "data-no-row-click": true, className: "pointer-events-auto flex items-center justify-end", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33367
33353
|
_chunkAHBTZ7DNcjs.Button,
|
|
33368
33354
|
{
|
|
33369
|
-
onClick: loading ? void 0 :
|
|
33355
|
+
onClick: loading ? void 0 : _chunkNBLQFJ4Icjs.openInNewTab.call(void 0, href),
|
|
33370
33356
|
disabled: loading,
|
|
33371
33357
|
variant: "outline",
|
|
33372
33358
|
size: "icon",
|
|
@@ -33385,10 +33371,10 @@ function KnowledgeBaseNameCell({ item }) {
|
|
|
33385
33371
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "relative flex h-8 w-8 shrink-0 items-center justify-center rounded-[6px] border border-ods-border", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 16, className: "shrink-0 text-ods-text-secondary" }) }),
|
|
33386
33372
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33387
33373
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33388
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33389
|
-
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33374
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: item.name }) }),
|
|
33375
|
+
tagStatus && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { variant: KNOWLEDGE_BASE_STATUS_VARIANT[tagStatus], label: tagStatus, className: "shrink-0" })
|
|
33390
33376
|
] }),
|
|
33391
|
-
item.type === "ARTICLE" && (item.summary || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33377
|
+
item.type === "ARTICLE" && (item.summary || loading) && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", children: _nullishCoalesce(item.summary, () => ( "")) })
|
|
33392
33378
|
] })
|
|
33393
33379
|
] });
|
|
33394
33380
|
}
|
|
@@ -33403,8 +33389,8 @@ function KnowledgeBaseDateCell({ item, mode }) {
|
|
|
33403
33389
|
const ts = mode === "archive" ? _nullishCoalesce(item.updatedAt, () => ( item.createdAt)) : item.createdAt;
|
|
33404
33390
|
if (!ts) return null;
|
|
33405
33391
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col whitespace-nowrap", children: [
|
|
33406
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children:
|
|
33407
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children:
|
|
33392
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-ods-text-primary text-h4", children: _chunkKVJKKVB3cjs.formatDate.call(void 0, ts) }),
|
|
33393
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-heading-5 text-ods-text-secondary", children: _chunkKVJKKVB3cjs.formatTime.call(void 0, ts) })
|
|
33408
33394
|
] });
|
|
33409
33395
|
}
|
|
33410
33396
|
function getKnowledgeBaseOpenColumn(getHref) {
|
|
@@ -33510,7 +33496,7 @@ function KnowledgeBaseArticleView({
|
|
|
33510
33496
|
className = "px-[var(--spacing-system-l)] pb-[var(--spacing-system-l)]"
|
|
33511
33497
|
}) {
|
|
33512
33498
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
33513
|
-
|
|
33499
|
+
_chunk66ZQ7LDRcjs.PageLayout,
|
|
33514
33500
|
{
|
|
33515
33501
|
title,
|
|
33516
33502
|
backButton: onBack ? { label: "Back", onClick: onBack } : void 0,
|
|
@@ -33519,11 +33505,11 @@ function KnowledgeBaseArticleView({
|
|
|
33519
33505
|
menuActions,
|
|
33520
33506
|
className,
|
|
33521
33507
|
children: [
|
|
33522
|
-
tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-[var(--spacing-system-xsf)]", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33523
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33508
|
+
tags.length > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap gap-[var(--spacing-system-xsf)]", children: tags.map((tag) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { label: tag.label, variant: "outline", className: "max-w-full" }, tag.id)) }),
|
|
33509
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.Card, { className: "border-ods-border px-[var(--spacing-system-mf)] py-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "grid grid-cols-2 gap-x-[var(--spacing-system-mf)] content-lg:grid-cols-3", children: [
|
|
33524
33510
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 items-center gap-[var(--spacing-system-xsf)]", children: [
|
|
33525
|
-
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33526
|
-
|
|
33511
|
+
author.deleted ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkFLW2VL5Wcjs.DeletedUserAvatar, { size: "md" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33512
|
+
_chunkTGOJHOQRcjs.SquareAvatar,
|
|
33527
33513
|
{
|
|
33528
33514
|
src: author.imageUrl,
|
|
33529
33515
|
fallback: _nullishCoalesce(author.name, () => ( "A")),
|
|
@@ -33533,12 +33519,12 @@ function KnowledgeBaseArticleView({
|
|
|
33533
33519
|
}
|
|
33534
33520
|
),
|
|
33535
33521
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
33536
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33522
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { className: author.deleted ? "text-ods-error" : void 0, children: _nullishCoalesce(author.name, () => ( "Unknown")) }),
|
|
33537
33523
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Author" })
|
|
33538
33524
|
] })
|
|
33539
33525
|
] }),
|
|
33540
33526
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 flex-col justify-center", children: [
|
|
33541
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33527
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { children: updatedLabel }),
|
|
33542
33528
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Updated" })
|
|
33543
33529
|
] }),
|
|
33544
33530
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -33549,7 +33535,7 @@ function KnowledgeBaseArticleView({
|
|
|
33549
33535
|
}
|
|
33550
33536
|
),
|
|
33551
33537
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex h-20 min-w-0 flex-col items-start justify-center gap-[var(--spacing-system-xxs)]", children: [
|
|
33552
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33538
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { variant: KNOWLEDGE_BASE_STATUS_VARIANT[status], label: status }),
|
|
33553
33539
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "truncate text-heading-5 text-ods-text-secondary", children: "Status" })
|
|
33554
33540
|
] })
|
|
33555
33541
|
] }) }),
|
|
@@ -33684,7 +33670,7 @@ function ConversationCard({
|
|
|
33684
33670
|
className,
|
|
33685
33671
|
loading: loadingProp
|
|
33686
33672
|
}) {
|
|
33687
|
-
const tint =
|
|
33673
|
+
const tint = _chunk4W77VLQVcjs.useAgentTint.call(void 0, agent);
|
|
33688
33674
|
const requestId = _react.useId.call(void 0, );
|
|
33689
33675
|
const loading = _chunk7JWFMAQBcjs.useLoadingScope.call(void 0, ) || loadingProp;
|
|
33690
33676
|
if (loading) {
|
|
@@ -33717,7 +33703,7 @@ function ConversationCard({
|
|
|
33717
33703
|
style: tint,
|
|
33718
33704
|
onClick: selection && ((event) => {
|
|
33719
33705
|
if (event.button !== 0 || _optionalChain([window, 'access', _746 => _746.getSelection, 'call', _747 => _747(), 'optionalAccess', _748 => _748.toString, 'call', _749 => _749()])) return;
|
|
33720
|
-
if (!
|
|
33706
|
+
if (!_chunkNBLQFJ4Icjs.isOwnClick.call(void 0, event.target, event.currentTarget, { controls: true })) return;
|
|
33721
33707
|
selection.onToggle();
|
|
33722
33708
|
}),
|
|
33723
33709
|
children: [
|
|
@@ -33740,7 +33726,7 @@ function ConversationCard({
|
|
|
33740
33726
|
)
|
|
33741
33727
|
),
|
|
33742
33728
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33743
|
-
|
|
33729
|
+
_chunkNBLQFJ4Icjs.ChatTurn,
|
|
33744
33730
|
{
|
|
33745
33731
|
avatar: requester.avatar,
|
|
33746
33732
|
name: requester.name,
|
|
@@ -33761,7 +33747,7 @@ function ConversationCard({
|
|
|
33761
33747
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: CONTEXT_TEXT_CLASS, style: partLinesStyle(_optionalChain([lines, 'optionalAccess', _750 => _750.context])), children: context.text })
|
|
33762
33748
|
] }),
|
|
33763
33749
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33764
|
-
|
|
33750
|
+
_chunkNBLQFJ4Icjs.ChatTurn,
|
|
33765
33751
|
{
|
|
33766
33752
|
avatar: responder.avatar,
|
|
33767
33753
|
name: responder.name,
|
|
@@ -33777,7 +33763,7 @@ function ConversationCard({
|
|
|
33777
33763
|
),
|
|
33778
33764
|
footerLabel && footerValue && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, FOOTER_ROW_CLASS, "text-ods-text-secondary text-h6"), children: [
|
|
33779
33765
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: footerLabel }),
|
|
33780
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33766
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { as: "span", label: footerValue, variant: footerTone === "attention" ? "warning" : "badge" })
|
|
33781
33767
|
] })
|
|
33782
33768
|
]
|
|
33783
33769
|
}
|
|
@@ -33806,7 +33792,7 @@ function ConversationCardSkeleton({
|
|
|
33806
33792
|
{
|
|
33807
33793
|
selection: selection && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk7JWFMAQBcjs.InertWhileLoading, { className: "contents", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, SelectionToggle, { pressed: selection.pressed }) }),
|
|
33808
33794
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33809
|
-
|
|
33795
|
+
_chunkNBLQFJ4Icjs.ChatTurn,
|
|
33810
33796
|
{
|
|
33811
33797
|
loading: true,
|
|
33812
33798
|
name: "",
|
|
@@ -33830,7 +33816,7 @@ function ConversationCardSkeleton({
|
|
|
33830
33816
|
] })
|
|
33831
33817
|
] }),
|
|
33832
33818
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33833
|
-
|
|
33819
|
+
_chunkNBLQFJ4Icjs.ChatTurn,
|
|
33834
33820
|
{
|
|
33835
33821
|
loading: true,
|
|
33836
33822
|
name: "",
|
|
@@ -33853,7 +33839,7 @@ function ConversationCardSkeleton({
|
|
|
33853
33839
|
),
|
|
33854
33840
|
footer && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, FOOTER_ROW_CLASS, "text-ods-text-secondary text-h6"), children: [
|
|
33855
33841
|
footerLabel ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: footerLabel }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { lines: 1, type: "h6", className: "w-1/4" }),
|
|
33856
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33842
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.Tag, { as: "span", label: "\xA0", variant: "badge", className: "invisible" })
|
|
33857
33843
|
] })
|
|
33858
33844
|
] });
|
|
33859
33845
|
}
|
|
@@ -33911,7 +33897,7 @@ function Highlights({ items, className }) {
|
|
|
33911
33897
|
if (items.length === 0) return null;
|
|
33912
33898
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "ul", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "grid grid-cols-1 gap-2", className), children: items.slice(0, HIGHLIGHTS_LIMIT).map((text) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "li", { "data-loading-item": true, className: HIGHLIGHT_ROW_CLASS, children: [
|
|
33913
33899
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: HIGHLIGHT_ICON_PX, className: "shrink-0 text-ods-flamingo-cyan" }),
|
|
33914
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33900
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", triggerClassName: "flex-1", children: text })
|
|
33915
33901
|
] }, text)) });
|
|
33916
33902
|
}
|
|
33917
33903
|
function Example({
|
|
@@ -33947,7 +33933,7 @@ function Example({
|
|
|
33947
33933
|
mark(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _754 => _754.mark]), () => ( requesterMark))),
|
|
33948
33934
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33949
33935
|
who(_nullishCoalesce(_optionalChain([requester, 'optionalAccess', _755 => _755.name]), () => ( labels.requester)), _nullishCoalesce(_optionalChain([requester, 'optionalAccess', _756 => _756.note]), () => ( labels.requesterNote))),
|
|
33950
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33936
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { lines: 2, variant: "h4", className: "min-h-[2lh]", children: `\u201C${example.request}\u201D` })
|
|
33951
33937
|
] })
|
|
33952
33938
|
] }),
|
|
33953
33939
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 gap-2.5 border-t border-ods-border pt-3", children: [
|
|
@@ -33956,7 +33942,7 @@ function Example({
|
|
|
33956
33942
|
who(_nullishCoalesce(_optionalChain([responder, 'optionalAccess', _758 => _758.name]), () => ( labels.responder)), _nullishCoalesce(_optionalChain([responder, 'optionalAccess', _759 => _759.note]), () => ( labels.responderNote))),
|
|
33957
33943
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 items-start gap-2", children: [
|
|
33958
33944
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkXIBCMGBWcjs.CheckIcon, { size: 16, className: "mt-0.5 shrink-0 text-ods-flamingo-cyan" }),
|
|
33959
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33945
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { lines: 2, variant: "h6", tone: "secondary", className: "min-h-[2lh]", triggerClassName: "flex-1", children: example.outcome })
|
|
33960
33946
|
] })
|
|
33961
33947
|
] })
|
|
33962
33948
|
] })
|
|
@@ -33966,7 +33952,7 @@ function Example({
|
|
|
33966
33952
|
}
|
|
33967
33953
|
function ExampleSkeleton({ className }) {
|
|
33968
33954
|
const turn = (first) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunk7JWFMAQBcjs.cn.call(void 0, "flex min-w-0 gap-2.5", !first && "border-t border-ods-border pt-3"), children: [
|
|
33969
|
-
first ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
33955
|
+
first ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkTGOJHOQRcjs.SquareAvatar, { loading: true, variant: "round", sizePx: EXAMPLE_MARK_PX, className: "shrink-0" }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkJLKGLPDCcjs.AgentAvatar, { loading: true, agent: "", size: EXAMPLE_MARK_PX }),
|
|
33970
33956
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
33971
33957
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk4WIJI4AKcjs.TextLineSkeleton, { type: "h6", className: "w-28" }),
|
|
33972
33958
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-h-[2lh] text-h4", children: [
|
|
@@ -34092,16 +34078,16 @@ function CapabilityExplorer({
|
|
|
34092
34078
|
readItems: true,
|
|
34093
34079
|
renderItem: (item) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "article", { className: _chunk7JWFMAQBcjs.cn.call(void 0, CARD_CLASS2, CARD_HEIGHT_CLASS), children: [
|
|
34094
34080
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: CARD_HEAD_ROW_CLASS, children: [
|
|
34095
|
-
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34081
|
+
item.iconName && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: _chunk7JWFMAQBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, "text-ods-flamingo-cyan"), children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.EntityIcon, { icon: { name: item.iconName }, size: 18 }) }),
|
|
34096
34082
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "min-w-0 flex-1", children: [
|
|
34097
34083
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "h3", { className: "flex min-w-0 items-center gap-2 text-ods-text-primary text-h4", children: [
|
|
34098
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34084
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { as: "span", variant: "h4", triggerClassName: "flex-1", children: item.title }),
|
|
34099
34085
|
item.badge
|
|
34100
34086
|
] }),
|
|
34101
|
-
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34087
|
+
item.caption && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { variant: "h6", tone: "secondary", children: item.caption })
|
|
34102
34088
|
] })
|
|
34103
34089
|
] }),
|
|
34104
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34090
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { lines: 3, variant: "h6", tone: "secondary", className: "min-h-[3lh]", children: item.intro }),
|
|
34105
34091
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "shrink-0 overflow-hidden rounded-lg border border-ods-border", children: renderScreen(item, { compact: true }) }),
|
|
34106
34092
|
item.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34107
34093
|
Example,
|
|
@@ -34172,7 +34158,7 @@ function CapabilityExplorer({
|
|
|
34172
34158
|
"span",
|
|
34173
34159
|
{
|
|
34174
34160
|
className: _chunk7JWFMAQBcjs.cn.call(void 0, JOB_ICON_TILE_CLASS, selected ? "text-ods-flamingo-cyan" : "text-ods-text-secondary"),
|
|
34175
|
-
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34161
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkPRCGRDHVcjs.EntityIcon, { icon: { name: item.iconName }, size: 18 })
|
|
34176
34162
|
}
|
|
34177
34163
|
),
|
|
34178
34164
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "span", { className: "min-w-0 flex-1", children: [
|
|
@@ -34218,8 +34204,8 @@ function CapabilityExplorer({
|
|
|
34218
34204
|
),
|
|
34219
34205
|
children: [
|
|
34220
34206
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: PANEL_INTRO_CLASS, children: [
|
|
34221
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34222
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34207
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { lines: 2, variant: "h2", className: "mb-2", children: active.title }),
|
|
34208
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk66ZQ7LDRcjs.TruncateText, { lines: 3, variant: "h4", tone: "secondary", className: "min-h-[3lh]", children: active.intro }),
|
|
34223
34209
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Highlights, { items: _nullishCoalesce(active.highlights, () => ( [])), className: "mt-auto" })
|
|
34224
34210
|
] }),
|
|
34225
34211
|
active.example && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|