ryugi-artifacts 1.111.0 → 1.111.3
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/cli.cjs +181 -181
- package/dist/document-engine.cjs +365 -364
- package/dist/output-bootstrap.cjs +6 -0
- package/dist/viewer/{AgentDock-CZaxDERb.js → AgentDock-DNQqAhwL.js} +1 -1
- package/dist/viewer/{ArtboardLayout-C3Ss-hn2.js → ArtboardLayout-DhDkHbEZ.js} +4 -4
- package/dist/viewer/ArtifactList-CIJ397ab.js +2 -0
- package/dist/viewer/{ArtifactModal-BF3VCQrn.js → ArtifactModal-DB0IYuC1.js} +1 -1
- package/dist/viewer/{BottomSheet-BXZOuVNc.js → BottomSheet-BW_wJMFp.js} +1 -1
- package/dist/viewer/{Canvas-BntAtrrl.js → Canvas-BYQwIEp8.js} +1 -1
- package/dist/viewer/{CommentPopover-Bz-n8fg7.js → CommentPopover-BAVI14g5.js} +1 -1
- package/dist/viewer/{DocumentExportMenu-CLRK1Ky_.js → DocumentExportMenu-DTlIM3RY.js} +1 -1
- package/dist/viewer/DocumentLayout-GC7V-r9x.js +2 -0
- package/dist/viewer/DocumentPage-DGJI3MRN.css +1 -0
- package/dist/viewer/DocumentPage-VGYT1dwv.js +6 -0
- package/dist/viewer/{DraggablePanel-Har0XBPA.js → DraggablePanel-C65i2w84.js} +1 -1
- package/dist/viewer/{DropdownMenu-kekzP-8G.js → DropdownMenu-BEm1VKG4.js} +1 -1
- package/dist/viewer/{GroupVerdict-BwbdTRuT.js → GroupVerdict-xCvmjuHr.js} +1 -1
- package/dist/viewer/{HtmlLayout-dpJ9HV_0.js → HtmlLayout-1FNzV2aF.js} +1 -1
- package/dist/viewer/{Input-CzWr3g-b.js → Input-BYW6s1Mp.js} +1 -1
- package/dist/viewer/{MenuSubmenuTrigger-Bs1vXxvY.js → MenuSubmenuTrigger-N0gSsCFu.js} +1 -1
- package/dist/viewer/{PhoneArtboardBar-C01O25EC.js → PhoneArtboardBar-BE4COguE.js} +1 -1
- package/dist/viewer/{Popover-C1YBmb-2.js → Popover-wYD9C76P.js} +1 -1
- package/dist/viewer/{PreviewArtifactLayout-C4VI6-9T.js → PreviewArtifactLayout-DY0PE_JD.js} +1 -1
- package/dist/viewer/{PreviewLayout-xD0Z_tmg.js → PreviewLayout-CGXVZ8O9.js} +2 -2
- package/dist/viewer/{ReportLayout-DXrPENap.js → ReportLayout-DVS4Wlj7.js} +1 -1
- package/dist/viewer/{RyugiMark-DwxNpu7F.js → RyugiMark-DX0a4DCl.js} +1 -1
- package/dist/viewer/{Segmented-CWXUvn4X.js → Segmented-VP3SXRwN.js} +1 -1
- package/dist/viewer/{SelectScrollUpArrow-D-BmvfPQ.js → SelectScrollUpArrow-BX3R94uY.js} +1 -1
- package/dist/viewer/{SlidesLayout-C2E2F1H_.js → SlidesLayout-DgbjE9Lt.js} +3 -3
- package/dist/viewer/SnapshotDocument-C9TX-FSh.js +1 -0
- package/dist/viewer/{SplitFrame-A5XDZjkX.js → SplitFrame-Dcnaq8wP.js} +1 -1
- package/dist/viewer/StoryboardLayout-CdmQ6orB.js +1 -0
- package/dist/viewer/{StoryboardRender-D_kaBqbU.js → StoryboardRender-BIze6SXX.js} +1 -1
- package/dist/viewer/{ThreadView-CnIdU5U-.js → ThreadView-DaFQCgD2.js} +1 -1
- package/dist/viewer/{Tooltip-B8QkSyOl.js → Tooltip-o_rfP_HJ.js} +1 -1
- package/dist/viewer/{VerifyLayout-D8nYcWZD.js → VerifyLayout-Bb3jG9Vs.js} +1 -1
- package/dist/viewer/{VirtualizedEditor-uWe43zaI-HVAUW7qP.js → VirtualizedEditor-uWe43zaI-p6Poo88k.js} +1 -1
- package/dist/viewer/{VirtualizedRenderer-C_d95FXi-DYPyj5qG.js → VirtualizedRenderer-C_d95FXi-CdfZNPLY.js} +1 -1
- package/dist/viewer/{WarningsBadge-DduhqdgA.js → WarningsBadge-Dt9B62Lv.js} +1 -1
- package/dist/viewer/{WhiteboardEditor-cZ32fLqJ-DFINbnX4.js → WhiteboardEditor-cZ32fLqJ-C-752weL.js} +1 -1
- package/dist/viewer/{WhiteboardLayout-DMKFNvhq.js → WhiteboardLayout-D8rRjx28.js} +1 -1
- package/dist/viewer/{WritingCursor-BcNalU7B.js → WritingCursor-CuFX07E7.js} +1 -1
- package/dist/viewer/{agentLook-DaeWwrww.js → agentLook-DzniHdua.js} +1 -1
- package/dist/viewer/{artifact-list-g9gKeH-0.js → artifact-list-Fr-KUEdX.js} +1 -1
- package/dist/viewer/{auto-publish-D52kzDvW.js → auto-publish-BbOfF73B.js} +1 -1
- package/dist/viewer/{channel-D6yS6vSs.js → channel-DzrkQcu7.js} +3 -3
- package/dist/viewer/{crop-encode-ChXJHdHh.js → crop-encode-8R9JhWDY.js} +1 -1
- package/dist/viewer/{dist-BIELIQDr.js → dist-8kRZ-DmY.js} +1 -1
- package/dist/viewer/{dist-tFrYHwbL.js → dist-B2rD-K_b.js} +1 -1
- package/dist/viewer/{dist-ezs7BFRb.js → dist-B7SeU7ls.js} +1 -1
- package/dist/viewer/{dist-CLkuPABZ.js → dist-BJn9XX5G.js} +1 -1
- package/dist/viewer/{dist-BxE5jTb_.js → dist-BK0zW4F0.js} +1 -1
- package/dist/viewer/{dist-BtvjAYhV.js → dist-BSyKGs4m.js} +1 -1
- package/dist/viewer/{dist-jZpbR7vZ.js → dist-BUaNTx10.js} +1 -1
- package/dist/viewer/{dist-DC_okTp4.js → dist-B_6mmPhT.js} +1 -1
- package/dist/viewer/{dist-BT9JOLgU.js → dist-BbFtHTx9.js} +1 -1
- package/dist/viewer/{dist-BhEkI0Ns.js → dist-Beb0G_di.js} +1 -1
- package/dist/viewer/{dist-oooC3WGx.js → dist-BgX4ookx.js} +1 -1
- package/dist/viewer/{dist-DmN7Qr_b.js → dist-BnLvwQQv.js} +1 -1
- package/dist/viewer/{dist-TwYO5Xdf.js → dist-C3Jl33ad.js} +1 -1
- package/dist/viewer/{dist-DMYNVdSS.js → dist-CkvFIvPX.js} +1 -1
- package/dist/viewer/{dist-CNPLQub0.js → dist-Co9GKPVW.js} +1 -1
- package/dist/viewer/dist-D-zeJRi5.js +1 -0
- package/dist/viewer/{dist-Cug-g5Sy.js → dist-D34ELCHp.js} +1 -1
- package/dist/viewer/{dist-ChRPJ84w.js → dist-DSE1NhEg.js} +1 -1
- package/dist/viewer/{dist-DoSxy_0Z.js → dist-Ej0VEvln.js} +1 -1
- package/dist/viewer/{dist-DAIpjsMy.js → dist-HluXHMoM.js} +1 -1
- package/dist/viewer/{dist-GvfKNZGx.js → dist-L574jNIk.js} +1 -1
- package/dist/viewer/{dist-BPSArMrD.js → dist-XV6aBGVF.js} +1 -1
- package/dist/viewer/{dist-CSaRC5P6.js → dist-fvv20E5w.js} +1 -1
- package/dist/viewer/{dist-F4cSX7EU.js → dist-rCp_POQS.js} +1 -1
- package/dist/viewer/{editor-p4kHebXo.js → editor-BzAfOnLe.js} +5 -5
- package/dist/viewer/{fit-Ok-QBwLI.js → fit-DtKQjpsd.js} +1 -1
- package/dist/viewer/icons-BProV5Cr.js +1 -0
- package/dist/viewer/{imperative-Ceakuv3Q.js → imperative-Cc6u4cUf.js} +1 -1
- package/dist/viewer/index.html +12 -12
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index5.css +110 -24
- package/dist/viewer/{local-cRjV2uVw.js → local-PYhzTkSH.js} +1 -1
- package/dist/viewer/{local-split-host-DUdjFbxZ.js → local-split-host-CQr5Kx5o.js} +1 -1
- package/dist/viewer/plugin-_bGVeqI0-BAx35_0K.js +2 -0
- package/dist/viewer/preview.html +3 -3
- package/dist/viewer/preview.js +1 -1
- package/dist/viewer/{printDocument-iDndVXNS.js → printDocument-0PkGX8aJ.js} +1 -1
- package/dist/viewer/read-marks-CVVWpIvf.js +1 -0
- package/dist/viewer/{ref-zGKSYjU7.js → ref-BO544fjh.js} +1 -1
- package/dist/viewer/{route-DCXI9Pag.js → route-NVsY7tZE.js} +2 -2
- package/dist/viewer/{route-messages-D6kcIEEz.js → route-messages-B1nbhOTn.js} +1 -1
- package/dist/viewer/settings-Z8yxICUI.js +1 -0
- package/dist/viewer/{snap-CfRCnk-l.js → snap-CAEDxoxY.js} +1 -1
- package/dist/viewer/{split-DiDvaPmh.js → split-DALiSmeN.js} +2 -2
- package/dist/viewer/{stable-BcrXxRbN.js → stable-XuL29MqL.js} +1 -1
- package/dist/viewer/{styles-ClUymw7N.js → styles-ziPlW3pq.js} +1 -1
- package/dist/viewer/{transport-i4_BWg6B.js → transport-C6XSYsDg.js} +1 -1
- package/dist/viewer/{url-B9EKllj2.js → url-QVKv57mN.js} +1 -1
- package/dist/viewer/{useArtifactFeed-BpzJAdxF.js → useArtifactFeed-Cm5-G2K3.js} +1 -1
- package/dist/viewer/{useArtifactSocket-_mvi0Q37.js → useArtifactSocket-rdqBV2Ob.js} +1 -1
- package/dist/viewer/{useLayerZIndex-jAjmZ3ZM.js → useLayerZIndex-wejHdLn7.js} +1 -1
- package/dist/viewer/useStoryboardData-C36Xuri-.js +1 -0
- package/dist/viewer/{view-fKu6_aTo.js → view-fl5_d-HX.js} +1 -1
- package/dist/viewer/{viewport-CFJHn_Y6-tExUXDWg.js → viewport-CFJHn_Y6-UhXd2UV_.js} +1 -1
- package/package.json +2 -2
- package/dist/viewer/ArtifactList-B9unMdTt.js +0 -2
- package/dist/viewer/DocumentLayout-vsbT5z81.js +0 -2
- package/dist/viewer/DocumentPage-BAy4583P.css +0 -1
- package/dist/viewer/DocumentPage-DNj9oj7M.js +0 -3
- package/dist/viewer/SnapshotDocument-Durl-bz6.js +0 -1
- package/dist/viewer/StoryboardLayout-q0Y-ClTs.js +0 -1
- package/dist/viewer/dist-3bQWg0ym.js +0 -1
- package/dist/viewer/icons-C2Xnbqrp.js +0 -1
- package/dist/viewer/plugin-_bGVeqI0-CsUbBVez.js +0 -2
- package/dist/viewer/settings-zZx1Ojd9.js +0 -1
- package/dist/viewer/useStoryboardData-k6hMC-4h.js +0 -1
package/dist/viewer/index5.css
CHANGED
|
@@ -255,6 +255,10 @@
|
|
|
255
255
|
padding: 24px;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
+
.x10xs6qf {
|
|
259
|
+
padding: 28px;
|
|
260
|
+
}
|
|
261
|
+
|
|
258
262
|
.x1i3ajwb {
|
|
259
263
|
padding: 2px;
|
|
260
264
|
}
|
|
@@ -1595,8 +1599,8 @@
|
|
|
1595
1599
|
background-color: #ef4444;
|
|
1596
1600
|
}
|
|
1597
1601
|
|
|
1598
|
-
.
|
|
1599
|
-
background-color: #
|
|
1602
|
+
.x1mkev6f {
|
|
1603
|
+
background-color: #0000002e;
|
|
1600
1604
|
}
|
|
1601
1605
|
|
|
1602
1606
|
.x1m9af4x {
|
|
@@ -2175,6 +2179,10 @@
|
|
|
2175
2179
|
clip-path: none;
|
|
2176
2180
|
}
|
|
2177
2181
|
|
|
2182
|
+
.xbsw2ss {
|
|
2183
|
+
color: #0369a1;
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2178
2186
|
.x1vjbsg6 {
|
|
2179
2187
|
color: #047857;
|
|
2180
2188
|
}
|
|
@@ -2183,14 +2191,38 @@
|
|
|
2183
2191
|
color: #0b6fb8;
|
|
2184
2192
|
}
|
|
2185
2193
|
|
|
2194
|
+
.x1lzvs4y {
|
|
2195
|
+
color: #157a50;
|
|
2196
|
+
}
|
|
2197
|
+
|
|
2198
|
+
.xwwobyb {
|
|
2199
|
+
color: #15803d;
|
|
2200
|
+
}
|
|
2201
|
+
|
|
2202
|
+
.x167w8nz {
|
|
2203
|
+
color: #3b5bdb;
|
|
2204
|
+
}
|
|
2205
|
+
|
|
2186
2206
|
.x1elt9gp {
|
|
2187
2207
|
color: #5b45d6;
|
|
2188
2208
|
}
|
|
2189
2209
|
|
|
2210
|
+
.xx2b25h {
|
|
2211
|
+
color: #6d48c7;
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
.x1uatum8 {
|
|
2215
|
+
color: #9a640c;
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2190
2218
|
.x1nkb0rk {
|
|
2191
2219
|
color: #a7aeb9;
|
|
2192
2220
|
}
|
|
2193
2221
|
|
|
2222
|
+
.xshi6he {
|
|
2223
|
+
color: #b43466;
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2194
2226
|
.x29mykp {
|
|
2195
2227
|
color: #b45309;
|
|
2196
2228
|
}
|
|
@@ -2199,6 +2231,10 @@
|
|
|
2199
2231
|
color: #c2410c;
|
|
2200
2232
|
}
|
|
2201
2233
|
|
|
2234
|
+
.x1p0k9ix {
|
|
2235
|
+
color: #c2561a;
|
|
2236
|
+
}
|
|
2237
|
+
|
|
2202
2238
|
.x1cjvsfd {
|
|
2203
2239
|
color: #e6e6e6;
|
|
2204
2240
|
}
|
|
@@ -2724,6 +2760,10 @@
|
|
|
2724
2760
|
grid-template-columns: 1fr auto;
|
|
2725
2761
|
}
|
|
2726
2762
|
|
|
2763
|
+
.x1y6fwsi {
|
|
2764
|
+
grid-template-columns: 1fr;
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2727
2767
|
.xc94fvo {
|
|
2728
2768
|
grid-template-columns: 220px minmax(0, 700px) 320px;
|
|
2729
2769
|
}
|
|
@@ -2736,6 +2776,10 @@
|
|
|
2736
2776
|
grid-template-columns: 32px minmax(0, 700px) 320px;
|
|
2737
2777
|
}
|
|
2738
2778
|
|
|
2779
|
+
.x1tuoh8j {
|
|
2780
|
+
grid-template-columns: 400px minmax(0, 1fr);
|
|
2781
|
+
}
|
|
2782
|
+
|
|
2739
2783
|
.x1x765j0 {
|
|
2740
2784
|
grid-template-columns: 76px minmax(0, 1fr);
|
|
2741
2785
|
}
|
|
@@ -3138,10 +3182,6 @@
|
|
|
3138
3182
|
outline-color: var(--lobe-color-text-secondary);
|
|
3139
3183
|
}
|
|
3140
3184
|
|
|
3141
|
-
.x17sxtjm {
|
|
3142
|
-
outline-color: var(--x1p5ujpn);
|
|
3143
|
-
}
|
|
3144
|
-
|
|
3145
3185
|
.xbx70qg {
|
|
3146
3186
|
outline-color: var(--x1uxlckq);
|
|
3147
3187
|
}
|
|
@@ -4107,6 +4147,40 @@
|
|
|
4107
4147
|
}
|
|
4108
4148
|
}
|
|
4109
4149
|
|
|
4150
|
+
@media (prefers-color-scheme: dark) {
|
|
4151
|
+
.xmhjdxl.xmhjdxl {
|
|
4152
|
+
color: #4ade80;
|
|
4153
|
+
}
|
|
4154
|
+
|
|
4155
|
+
.x1odbm4f.x1odbm4f {
|
|
4156
|
+
color: #56ccf2;
|
|
4157
|
+
}
|
|
4158
|
+
|
|
4159
|
+
.x109y6hi.x109y6hi {
|
|
4160
|
+
color: #6bd6a1;
|
|
4161
|
+
}
|
|
4162
|
+
|
|
4163
|
+
.x4335v2.x4335v2 {
|
|
4164
|
+
color: #8ea6ff;
|
|
4165
|
+
}
|
|
4166
|
+
|
|
4167
|
+
.xlwxu15.xlwxu15 {
|
|
4168
|
+
color: #b794f4;
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4171
|
+
.xmqoi61.xmqoi61 {
|
|
4172
|
+
color: #e7bd6d;
|
|
4173
|
+
}
|
|
4174
|
+
|
|
4175
|
+
.xkp0x8d.xkp0x8d {
|
|
4176
|
+
color: #f2a46b;
|
|
4177
|
+
}
|
|
4178
|
+
|
|
4179
|
+
.xh894pi.xh894pi {
|
|
4180
|
+
color: #f472b6;
|
|
4181
|
+
}
|
|
4182
|
+
}
|
|
4183
|
+
|
|
4110
4184
|
@media (prefers-reduced-motion: reduce) {
|
|
4111
4185
|
.xo64yqm.xo64yqm {
|
|
4112
4186
|
color: var(--lobe-color-text-tertiary);
|
|
@@ -4203,6 +4277,10 @@
|
|
|
4203
4277
|
.x1ib1cvv.x1ib1cvv {
|
|
4204
4278
|
grid-template-columns: 18px minmax(0, 1fr);
|
|
4205
4279
|
}
|
|
4280
|
+
|
|
4281
|
+
.x1guth9d.x1guth9d {
|
|
4282
|
+
grid-template-columns: 1fr;
|
|
4283
|
+
}
|
|
4206
4284
|
}
|
|
4207
4285
|
|
|
4208
4286
|
@media (width <= 700px) {
|
|
@@ -4537,6 +4615,10 @@
|
|
|
4537
4615
|
height: 14px;
|
|
4538
4616
|
}
|
|
4539
4617
|
|
|
4618
|
+
.x18dl8mb {
|
|
4619
|
+
height: 150px;
|
|
4620
|
+
}
|
|
4621
|
+
|
|
4540
4622
|
.xx3o462 {
|
|
4541
4623
|
height: 15px;
|
|
4542
4624
|
}
|
|
@@ -4609,6 +4691,10 @@
|
|
|
4609
4691
|
height: 38px;
|
|
4610
4692
|
}
|
|
4611
4693
|
|
|
4694
|
+
.xyul5h4 {
|
|
4695
|
+
height: 392px;
|
|
4696
|
+
}
|
|
4697
|
+
|
|
4612
4698
|
.xuoj239 {
|
|
4613
4699
|
height: 3px;
|
|
4614
4700
|
}
|
|
@@ -4989,22 +5075,18 @@
|
|
|
4989
5075
|
max-height: 320px;
|
|
4990
5076
|
}
|
|
4991
5077
|
|
|
4992
|
-
.
|
|
4993
|
-
max-height:
|
|
5078
|
+
.x1plhuvm {
|
|
5079
|
+
max-height: 392px;
|
|
4994
5080
|
}
|
|
4995
5081
|
|
|
4996
|
-
.
|
|
4997
|
-
max-height:
|
|
5082
|
+
.x114jws4 {
|
|
5083
|
+
max-height: 60vh;
|
|
4998
5084
|
}
|
|
4999
5085
|
|
|
5000
5086
|
.x159tps6 {
|
|
5001
5087
|
max-height: 640px;
|
|
5002
5088
|
}
|
|
5003
5089
|
|
|
5004
|
-
.xbcd05g {
|
|
5005
|
-
max-height: 64vh;
|
|
5006
|
-
}
|
|
5007
|
-
|
|
5008
5090
|
.x12f24lm {
|
|
5009
5091
|
max-height: 70vh;
|
|
5010
5092
|
}
|
|
@@ -5013,10 +5095,6 @@
|
|
|
5013
5095
|
max-height: calc(100% - 136px);
|
|
5014
5096
|
}
|
|
5015
5097
|
|
|
5016
|
-
.x168i30x {
|
|
5017
|
-
max-height: calc(100% - 44px);
|
|
5018
|
-
}
|
|
5019
|
-
|
|
5020
5098
|
.x1r4ahda {
|
|
5021
5099
|
max-height: calc(100dvh - var(--ryugi-toc-top, 72px) - 24px);
|
|
5022
5100
|
}
|
|
@@ -5069,6 +5147,10 @@
|
|
|
5069
5147
|
max-width: 420px;
|
|
5070
5148
|
}
|
|
5071
5149
|
|
|
5150
|
+
.x1y8h3ww {
|
|
5151
|
+
max-width: 45%;
|
|
5152
|
+
}
|
|
5153
|
+
|
|
5072
5154
|
.x17fpy1y {
|
|
5073
5155
|
max-width: 480px;
|
|
5074
5156
|
}
|
|
@@ -5329,6 +5411,10 @@
|
|
|
5329
5411
|
padding-bottom: 2px;
|
|
5330
5412
|
}
|
|
5331
5413
|
|
|
5414
|
+
.xjkvuk6 {
|
|
5415
|
+
padding-bottom: 4px;
|
|
5416
|
+
}
|
|
5417
|
+
|
|
5332
5418
|
.x10b6aqq {
|
|
5333
5419
|
padding-bottom: 6px;
|
|
5334
5420
|
}
|
|
@@ -5377,10 +5463,6 @@
|
|
|
5377
5463
|
padding-top: 12px;
|
|
5378
5464
|
}
|
|
5379
5465
|
|
|
5380
|
-
.x15imoyu {
|
|
5381
|
-
padding-top: 12vh;
|
|
5382
|
-
}
|
|
5383
|
-
|
|
5384
5466
|
.xyinxu5 {
|
|
5385
5467
|
padding-top: 14px;
|
|
5386
5468
|
}
|
|
@@ -5437,6 +5519,10 @@
|
|
|
5437
5519
|
padding-top: calc(var(--ryugi-doc-top, 0px) + 6px);
|
|
5438
5520
|
}
|
|
5439
5521
|
|
|
5522
|
+
.xjvo6hp {
|
|
5523
|
+
padding-top: min(16vh, 160px);
|
|
5524
|
+
}
|
|
5525
|
+
|
|
5440
5526
|
.x1kc4spy {
|
|
5441
5527
|
right: -1px;
|
|
5442
5528
|
}
|
|
@@ -5981,8 +6067,8 @@
|
|
|
5981
6067
|
width: min(560px, 100vw - 24px);
|
|
5982
6068
|
}
|
|
5983
6069
|
|
|
5984
|
-
.
|
|
5985
|
-
width: min(
|
|
6070
|
+
.x1a1d8og {
|
|
6071
|
+
width: min(800px, 100vw - 32px);
|
|
5986
6072
|
}
|
|
5987
6073
|
|
|
5988
6074
|
.x1e5dqpa:first-child {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{D as t,v as n}from"./route-DCXI9Pag.js";import{n as r,r as i,t as a}from"./bem-vbke-3KC.js";import{t as o}from"./react-DlmbjZJV.js";import{An as s,Er as c,Fn as l,Pn as u,Tr as d,an as f,at as p,mr as m,on as h,rt as g}from"./url-B9EKllj2.js";import{t as _}from"./jsx-runtime-LKYXHABd.js";import{En as v,Gr as ee,Gt as te,Kr as ne,Sn as y,Tn as b,Vr as re,Xr as x,Zr as ie,_ as S,g as ae,ii as C,oi as oe,ri as w,rr as se,t as ce}from"./useLayerZIndex-jAjmZ3ZM.js";import{Dt as T}from"./MotionConfigContext-HC2vqcJO.js";import{a as le,c as ue,d as de,f as fe,i as E,m as pe,o as D,p as me,r as O,s as he,u as ge}from"./SelectScrollUpArrow-D-BmvfPQ.js";var k={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};k.node;var _e=T(k),ve={name:`log-in`,size:24,node:[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]};ve.node;var ye=T(ve),A=e(o(),1);({...te,...se});var j=A.createContext(void 0);function be(){let e=A.useContext(j);if(e===void 0)throw Error(x(56));return e}var M=_(),N=A.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=A.useState(),c=A.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),l=ee(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,M.jsx)(j.Provider,{value:c,children:l})}),P=A.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=be(),c=re(a);return ie(()=>(s(c),()=>{s(e=>e===c?void 0:e)}),[c,s]),ee(`div`,e,{ref:t,props:[{id:c,"aria-hidden":!0},o]})}),F=a({block:`select`,dataAttributes:[`variant`,`size`,`shadow`,`mode`],elements:[`prefix`,`value`,`search`,`suffix`,`clear`,`icon`,`positioner`,`popup`,`list`,`option`,`item-text`,`item-indicator`,`group`,`group-label`,`empty`,`scroll-up-arrow`,`scroll-down-arrow`,`arrow`]}),I={lb17qyu0m:`lb17qyu0m`,$$css:!0},L={arrow:{k1xSpc:`lb78zum5`,kZKoxP:`lbols6we`,kzqmXN:`lbsmyaan`,$$css:!0},borderless:{"--lobe-select-disabled-bg":`lb1fcm1w1`,"--lobe-select-open-bg":`lb1m91qns`,"--lobe-select-readonly-bg":`lb16si2i5`,kVAM5u:`lb181nr7w`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lbbxqymp lb129k4ed lb1o44d5j lbckdqiz`,kGVxlE:`lb1gnnqk1`,$$css:!0},clear:{kmkexE:`lbholrd4`,kGNEyG:`lb6s0dn4`,kMwMTN:`lb53gy9q lblbjun7`,k1xSpc:`lb3nfvp2`,kSiTet:`lbg01cxk lb1asl7ui`,kfzvcC:`lb11l7nm`,$$css:!0},empty:{kMwMTN:`lb53gy9q`,$$css:!0},filled:{"--lobe-select-disabled-bg":`lb1fcm1w1`,"--lobe-select-open-bg":`lb1hprk1n`,"--lobe-select-readonly-bg":`lb16si2i5`,kWkggS:`lbaljia1 lbbxqymp lb6jdevu lb1o44d5j lbckdqiz`,$$css:!0},icon:{kmkexE:`lbyuzwzm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb3nfvp2`,k3aq6I:`lb1je0516`,$$css:!0},itemBoldSelected:{k63SB2:`lbkj54ki`,$$css:!0},itemIndicator:{kGNEyG:`lb6s0dn4`,kMwMTN:`lb16owwnm`,k1xSpc:`lb3nfvp2`,kjj79g:`lbl56j7k`,keTefX:`lbvc5jky`,kZCmMZ:`lbmzvs34`,$$css:!0},list:{kUk6DE:`lb98rzlu`,kGO01o:`lb18d9i69`,kLKAdn:`lbexx8yu`,kAzted:`lb2lwn1j`,kORKVm:`lb1odjw0f`,$$css:!0},listWithSearch:{kLKAdn:`lb1iorvi4`,$$css:!0},outlined:{"--lobe-select-disabled-bg":`lb1lqng0l`,"--lobe-select-open-bg":`lb1m91qns`,"--lobe-select-readonly-bg":`lbcbhfra`,kVAM5u:`lb10cypdb lb3mg3nv`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kWkggS:`lb6yijhg lbbxqymp lb1o44d5j lbckdqiz`,$$css:!0},popupBounds:{ks0D6T:`lb7k7lee`,k7Eaqz:`lb80t9vs`,$$css:!0},popup:{"--lobe-select-available-height":`lb1rupxqf`,kmkexE:`lb1xhw48d`,kB7OPa:`lb9f619`,k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,kSiTet:`lb1i2unn7`,k3aq6I:`lb11d3i7i`,k3nNDw:`lbctpfpq`,kskxy:`lbf2pfjc`,$$css:!0},positioner:{kI3sdo:`lb1a2a7pz`,kY2c9j:`lbp6lfbs`,$$css:!0},prefix:{kGNEyG:`lb6s0dn4`,kMwMTN:`lbc77et8`,k1xSpc:`lb3nfvp2`,$$css:!0},scrollArrow:{kGNEyG:`lb6s0dn4`,kWkggS:`lb1w937bt`,kMwMTN:`lbc77et8`,kkrTdU:`lbt0e3qv`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,kZKoxP:`lblup9mm`,$$css:!0},search:{kUOVxO:`lb15usb71`,k8WAf4:`lb1vvogim`,kg3NbH:`lbaope02`,kGNEyG:`lb6s0dn4`,kL6WhQ:`lb1ak05nl`,kfdmCh:`lb1q0q8m5`,kt9PQ7:`lbso031l`,kkrTdU:`lb1ed109x`,k1xSpc:`lb78zum5`,kAzted:`lbu0aao5`,$$css:!0},searchInput:{kVAM5u:`lb181nr7w`,ksu8eU:`lbng3xce`,kMzoRj:`lbc342km`,kUk6DE:`lb98rzlu`,kI3sdo:`lb1a2a7pz`,k8WAf4:`lbt970qd`,kg3NbH:`lbfn1xvj`,kWkggS:`lbjbqb8w`,kMwMTN:`lb66ogz0`,kGuDYH:`lbif65rj`,kLWn49:`lb1fc57z9`,k7Eaqz:`lbeuugli`,k8Qsv1:`lb14injf2`,$$css:!0},shadow:{kGVxlE:`lbpjwdtl`,$$css:!0},suffix:{kOIVth:`lb17d4w8g`,kGNEyG:`lb6s0dn4`,kMwMTN:`lbc77et8`,k1xSpc:`lb3nfvp2`,$$css:!0},tag:{kaIpWk:`lb1vihcfj`,k8WAf4:`lbt970qd`,kg3NbH:`lb1xijbu4`,kGNEyG:`lb6s0dn4`,kWkggS:`lbaljia1`,kMwMTN:`lb66ogz0`,k1xSpc:`lb3nfvp2`,kGuDYH:`lbfifm61`,kLWn49:`lb1fc57z9`,ks0D6T:`lb193iq5w`,$$css:!0},tagClose:{kmkexE:`lbholrd4`,kGNEyG:`lb6s0dn4`,kMwMTN:`lbc77et8`,kkrTdU:`lb1ypdohk`,k1xSpc:`lb3nfvp2`,kjj79g:`lbl56j7k`,keTefX:`lbdwrcjd`,$$css:!0},tags:{kOIVth:`lb1jnr06f`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kwnvtZ:`lb1a02dak`,$$css:!0},tagsSearch:{kUk6DE:`lb98rzlu`,k1xSpc:`lb78zum5`,k7Eaqz:`lb900493`,$$css:!0},tagsValue:{kCS8Yb:`lbdl72j9`,kzQI83:`lb1c4vz4f`,kmuXW:`lbs83m0k`,$$css:!0},trigger:{kVAM5u:`lb9r1u3d`,kaIpWk:`lb1sbi92r`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kOIVth:`lb167g77z`,kI3sdo:`lb1a2a7pz`,kmkexE:`lb18nfrvi`,kGNEyG:`lb6s0dn4`,kB7OPa:`lb9f619`,kMwMTN:`lb66ogz0 lb1s5k17a lbsycbhq`,kkrTdU:`lb1ypdohk lb10bady8 lbs5y3ja`,k1xSpc:`lb3nfvp2`,kMv6JI:`lbjb2p0i`,kfSwDN:`lb87ps6o`,kzqmXN:`lbh8yej3`,$$css:!0},triggerLarge:{k8WAf4:`lb1t0vds8`,kg3NbH:`lbaope02`,kGuDYH:`lb1j61zf2`,kLWn49:`lb1o2sk6j`,kAzted:`lb1ba4aug`,$$css:!0},triggerMiddle:{k8WAf4:`lb12ulsxz`,kg3NbH:`lbfoe8qy`,kGuDYH:`lbif65rj`,kLWn49:`lb1fc57z9`,kAzted:`lb21xpn4`,$$css:!0},triggerSmall:{k8WAf4:`lbt970qd`,kg3NbH:`lbdqyycr`,kGuDYH:`lbfifm61`,kLWn49:`lbd4r4e8`,kAzted:`lbjwf9q1`,$$css:!0},value:{kUk6DE:`lb98rzlu`,kOIVth:`lb1jnr06f`,kGNEyG:`lb6s0dn4`,kMwMTN:`lb1heor9g lb1xpzrx5`,k1xSpc:`lb78zum5`,kwnvtZ:`lb1a02dak`,k7Eaqz:`lbeuugli`,$$css:!0},valueText:{kVQacm:`lbb3r6kr`,kg5iWk:`lblyipyv`,khDVqt:`lbuxw1ft`,$$css:!0}},R={large:L.triggerLarge,middle:L.triggerMiddle,small:L.triggerSmall},xe=({shadow:e,size:t,variant:n})=>[L.trigger,b.info,I,e&&L.shadow,R[t??`middle`],L[n]],z=(e,t,n)=>{let r=w(e,n).className;return typeof t==`function`?e=>i(r,t(e)):i(r,t)},Se=pe,B=({children:e,className:n,nativeButton:r,shadow:a,size:o=`middle`,variant:s,ref:c,...d})=>{let{isDarkMode:f}=t(),p=xe({shadow:a,size:o,variant:s??(f?`filled`:`outlined`)}),m=C(p).className,{isNativeButtonTriggerElement:h,resolvedNativeButton:g}=l({children:e,nativeButton:r});return(0,A.isValidElement)(e)?(0,M.jsx)(me,{...d,nativeButton:g,render:(t,r)=>{let a=(()=>{if(h)return t;let{type:e,ref:n,...r}=t;return r})(),o=ne(e.props,a),s=typeof o.className==`function`?o.className(r):o.className,l=typeof n==`function`?n(r):n;return(0,A.cloneElement)(e,{...o,className:i(m,F(),s,l),ref:ae([u(e),t.ref,c])})}}):(0,M.jsx)(me,{...d,className:z([p],n,F()),nativeButton:g,ref:c,children:e})};B.displayName=`SelectTrigger`;var V=({className:e,...t})=>(0,M.jsx)(de,{className:z([L.icon],e,F(`icon`)),...t});V.displayName=`SelectIcon`;var H=({className:e,...t})=>(0,M.jsx)(fe,{className:z([L.value],e,F(`value`)),...t});H.displayName=`SelectValue`;var U=({container:e,...t})=>{let n=oe();return(0,M.jsx)(ge,{container:e??n??void 0,...t})};U.displayName=`SelectPortal`;var Ce=({align:e,alignItemWithTrigger:t,className:n,collisionPadding:r,side:i,sideOffset:a,style:o,ref:c,...l})=>{let u=typeof o!=`function`&&o?.zIndex!=null&&typeof o.zIndex==`number`?o.zIndex:void 0,{zIndex:d,ref:f}=ce(`floating`,u),p=S([c,f]),m=typeof o==`function`?e=>({zIndex:d,...o(e)}):{zIndex:d,...o};return(0,M.jsx)(ue,{align:e??`start`,alignItemWithTrigger:t??!1,collisionPadding:r??s(),ref:p,side:i??`bottom`,sideOffset:a??6,style:m,className:z([L.positioner],n,F(`positioner`)),...l})};Ce.displayName=`SelectPositioner`;var W=({className:e,...t})=>(0,M.jsx)(he,{className:z([p.popup,L.popup],e,i(g.popup,F(`popup`))),...t});W.displayName=`SelectPopup`;var we=({className:e,...t})=>(0,M.jsx)(D,{className:z([L.list],e,F(`list`)),...t});we.displayName=`SelectList`;var Te=({className:e,...t})=>(0,M.jsx)(le,{className:z([p.item],e,F(`option`)),...t});Te.displayName=`SelectItem`;var G=({className:e,...t})=>(0,M.jsx)(O,{className:z([p.label],e,i(g.label,F(`item-text`))),...t});G.displayName=`SelectItemText`;var K=({className:e,...t})=>(0,M.jsx)(E,{className:z([L.itemIndicator],e,F(`item-indicator`)),...t});K.displayName=`SelectItemIndicator`;var q=e=>{let t=`nativeEvent`in e?e.nativeEvent:e;return t.isComposing||t.keyCode===229},J=e=>!!e.options,Y=e=>typeof e.label==`string`||typeof e.label==`number`?String(e.label):e.title?e.title:typeof e.value==`string`||typeof e.value==`number`?String(e.value):``,Ee=e=>e.replaceAll(/[$()*+.?[\\\]^{|}]/g,`\\$&`),De=(e,t)=>{if(!t||t.length===0)return[e];let n=t.map(Ee).join(`|`);return e.split(new RegExp(n,`g`))},X=e=>e.reduce((e,t)=>J(t)?e+t.options.length+1:e+1,0),Z=e=>e==null||e===``,Oe=e=>t=>e?Array.isArray(t)?t:t==null?[]:[t]:Array.isArray(t)?t[0]??null:t===void 0?null:t,ke=({mergedOpen:e,reason:t,searchValue:n})=>t===`none`&&(e||n!==``);function Ae({defaultValue:e,extraOptions:t,isMultiple:n,onChange:r,onSelect:i,options:a,setExtraOptions:o,value:s}){let[c,l]=(0,A.useState)(()=>e===void 0?n?[]:null:e),u=(0,A.useMemo)(()=>Oe(n),[n]),d=s===void 0?c:s,f=(0,A.useMemo)(()=>u(d),[d,u]),p=(0,A.useMemo)(()=>n?f:Z(f)?[]:[f],[n,f]),{optionMap:m,resolvedOptions:h}=(0,A.useMemo)(()=>{let e=a??[],n=new Map,r=e=>{n.has(e.value)||n.set(e.value,e)};e.forEach(e=>{J(e)?e.options.forEach(r):r(e)});let i=t.filter(e=>!n.has(e.value));i.forEach(r);let o=[...e,...i],s=p.filter(e=>!n.has(e)).map(e=>({label:String(e),value:e}));return s.forEach(r),{optionMap:n,resolvedOptions:s.length?[...o,...s]:o}},[t,a,p]),g=(0,A.useCallback)(e=>m.get(e)||(e&&typeof e==`object`&&`label`in e?{label:e.label,value:e}:{label:String(e),value:e}),[m]),_=(0,A.useRef)(f);(0,A.useEffect)(()=>{_.current=f},[f]);let v=(0,A.useCallback)(e=>{let t=u(e),a=_.current;if(n){let e=Array.isArray(a)?a:[],n=Array.isArray(t)?t:[];n.filter(t=>!e.some(e=>Object.is(e,t))).forEach(e=>i?.(e,g(e))),s===void 0&&l(n),r?.(n,n.map(e=>g(e)))}else!Z(t)&&!Object.is(a,t)&&i?.(t,g(t)),s===void 0&&l(t),r?.(Z(t)?void 0:t,Z(t)?void 0:g(t));_.current=t},[g,n,u,r,i,s]);return{appendTagValues:(0,A.useCallback)(e=>{let t=e.map(e=>e.trim()).filter(Boolean);if(!t.length)return;let n=[...Array.isArray(_.current)?_.current:p],r=t.filter(e=>!m.has(e));r.length>0&&o(e=>{let t=new Set(e.map(e=>e.value)),n=[...e];return r.forEach(e=>{t.has(e)||n.push({label:e,value:e})}),n}),t.forEach(e=>{n.some(t=>Object.is(t,e))||n.push(e)}),n.length!==p.length&&v(n)},[v,m,o,p]),getOption:g,handleValueChange:v,normalizedValue:f,normalizeValue:u,optionMap:m,resolvedOptions:h,removeLastTagValue:(0,A.useCallback)(()=>{let e=Array.isArray(_.current)?_.current:p;e.length>0&&v(e.slice(0,-1))},[v,p]),valueArray:p}}function je({defaultOpen:e,onOpenChange:t,open:n}){let[r,i]=(0,A.useState)(!!e);(0,A.useEffect)(()=>{n!==void 0&&i(n)},[n]);let a=n??r;return{handleOpenChange:(0,A.useCallback)((e,r)=>{t?.(e,r),n===void 0&&i(e)},[t,n]),mergedOpen:a}}function Me({filterOption:e,onSearch:t,appendTagValues:n,handleOpenChange:r,mergedOpen:i,mode:a,removeLastTagValue:o,resolvedOptions:s,showSearch:c,tokenSeparators:l}){let[u,d]=(0,A.useState)(``),f=!!(c||a===`tags`);(0,A.useEffect)(()=>{i||d(``)},[i]);let p=(0,A.useCallback)(e=>{let r=e.target.value;if(a===`tags`){let e=De(r,l);if(e.length>1){let t=e.pop()??``;n(e.filter(Boolean)),d(t);return}}d(r),t?.(r)},[n,a,t,l]),m=(0,A.useCallback)(e=>{if(e.stopPropagation(),q(e))return;if(e.key===`Escape`){r(!1);return}if(a!==`tags`)return;if(e.key===`Backspace`&&!u){e.preventDefault(),o();return}let t=l?.includes(e.key);(e.key===`Enter`||t)&&(e.preventDefault(),e.stopPropagation(),n([u]),d(``))},[n,r,a,o,u,l]),h=(0,A.useCallback)(e=>{e.stopPropagation()},[]);return{filteredOptions:(0,A.useMemo)(()=>{if(!f||!u.trim()||e===!1)return s;let t=u.trim().toLowerCase(),n=n=>typeof e==`function`?e(u,n):Y(n).toLowerCase().includes(t);return s.map(e=>{if(J(e)){let t=e.options.filter(e=>n(e));return t.length?{...e,options:t}:null}return n(e)?e:null}).filter(Boolean)},[e,s,u,f]),handleSearchChange:p,handleSearchKeyDown:m,searchValue:u,shouldShowSearch:f,stopSearchPropagation:h}}function Ne({filteredOptions:e,listItemHeight:t,size:n,valueArray:r,virtual:i}){let a=(0,A.useMemo)(()=>{if(!i)return;let r=X(e);return{height:`min(${Math.min(Math.max(r,1),6)*(t??(n===`large`?40:n===`small`?28:32))+8}px, var(--lobe-select-available-height, var(--available-height)))`}},[e,t,n,i]);return{selectedIndices:(0,A.useMemo)(()=>{if(!i||r.length===0)return;let t=new Set(r),n=[],a=0;return e.forEach(e=>{J(e)?(e.options.some(e=>t.has(e.value))&&n.push(a),a+=1):(t.has(e.value)&&n.push(a),a+=1)}),n.length?n:void 0},[e,r,i]),virtualListStyle:a}}function Pe(){let e=oe();return(0,A.useMemo)(()=>{if(typeof window>`u`)return e;if(e instanceof HTMLElement)return window.getComputedStyle(e).display===`contents`?document.body:e},[e])}function Fe(e){return e==null?null:(0,A.isValidElement)(e)||typeof e==`string`||typeof e==`number`?e:(0,M.jsx)(y,{icon:e,size:`small`})}function Ie(e,t,n){return n?(0,M.jsx)(y,{spin:!0,icon:m,size:`small`}):e===null?null:(0,A.isValidElement)(e)||typeof e==`string`||typeof e==`number`?e:(0,M.jsx)(y,{icon:e||d,size:`small`,...t,style:{pointerEvents:`none`,...t?.style}})}function Le({getOption:e,isMultiple:t,isTags:n,labelRender:r,normalizeValue:i,onRemoveValue:a,placeholder:o}){return function(s){let c=i(s),l=o===void 0?null:(0,M.jsx)(`span`,{...C(L.valueText),children:o});if(t){let t=Array.isArray(c)?c:[];return t.length===0?l:(0,M.jsx)(`span`,{...C(L.tags),children:t.map((t,i)=>{let o=e(t),s=r?r(o):o.label??String(t);return(0,M.jsxs)(`span`,{...C(L.tag),"data-role":`lobe-select-tag`,children:[s,n&&(0,M.jsx)(`span`,{"aria-label":`Remove ${String(t)}`,...C(L.tagClose),"data-role":`lobe-select-tag-remove`,role:`button`,tabIndex:0,onClick:e=>{e.preventDefault(),e.stopPropagation(),a(i)},onPointerDown:e=>{e.preventDefault(),e.stopPropagation()},children:(0,M.jsx)(v,{size:12})})]},`${String(t)}-${i}`)})})}if(Z(c))return l;let u=e(c),d=r?r(u):u.label??String(c);return(0,M.jsx)(`span`,{...C(L.valueText),children:d})}}function Re({classNames:e,hasSearch:t,isEmpty:n,listContent:r,listItemHeight:a,virtual:o,virtualState:s}){let c=w([L.list,t&&L.listWithSearch],i(F(`list`),e?.list)).className,l=!!o&&!n,{keepMountedIndices:u,viewportProps:d,viewportRef:p,virtualChildren:m,virtualizerRef:g}=f({children:r,enabled:l,keepMounted:s.selectedIndices});return l?(0,M.jsx)(h,{itemSize:a,keepMounted:u,style:s.virtualListStyle,viewport:(0,M.jsx)(D,{className:c}),viewportProps:{ref:p,...d},virtualizerRef:g,children:m}):(0,M.jsx)(D,{className:c,"data-virtual":o||void 0,children:r})}function ze({classNames:e}){return(0,M.jsx)(`div`,{...w([p.item,p.empty,L.empty],i(F(`empty`),e?.empty)),children:`No data`})}function Be({autoFocus:e,classNames:t,disabled:n,inline:r,onChange:a,onKeyDown:o,placeholder:s,readOnly:c,stopPropagation:l,value:u}){return(0,M.jsx)(`div`,{...w(r?L.tagsSearch:L.search,i(F(`search`),t?.search)),children:(0,M.jsx)(`input`,{autoFocus:e,...C(L.searchInput),disabled:n,placeholder:typeof s==`string`?s:void 0,readOnly:c,value:u,onChange:a,onKeyDownCapture:o,onKeyUp:l,onKeyUpCapture:l})})}function Ve({classNames:e,onClear:t,showClear:n,suffixIconNode:r}){return(0,M.jsxs)(`span`,{...w(L.suffix,i(F(`suffix`),e?.suffix)),children:[n&&(0,M.jsx)(`span`,{...w(L.clear,i(F(`clear`),e?.clear)),"data-role":`lobe-select-clear`,onClick:t,children:(0,M.jsx)(y,{icon:v,size:`small`})}),r!=null&&(0,M.jsx)(de,{...w(L.icon,i(F(`icon`),e?.icon)),children:r})]})}function Q(e,t,n){let{classNames:r,isBoldIndicator:a,itemTextClassName:o,listItemHeight:s,optionRender:l}=n;return(0,M.jsxs)(le,{disabled:e.disabled,label:Y(e),value:e.value,...w([p.item,a&&L.itemBoldSelected],i(F(`option`),r?.item,r?.option,e.className),{minHeight:s,...e.style}),children:[(0,M.jsx)(O,{className:i(F(`item-text`),o),children:l?l(e,{index:t}):e.label}),!a&&(0,M.jsx)(E,{...w(L.itemIndicator,i(F(`item-indicator`),r?.itemIndicator)),children:(0,M.jsx)(y,{icon:c,size:`small`})})]},`${String(e.value)}-${t}`)}function He(e){let{classNames:t,items:n}=e,r=0;return n.map((n,a)=>J(n)?(0,M.jsxs)(N,{className:i(F(`group`),t?.group),children:[(0,M.jsx)(P,{...w(p.groupLabel,i(F(`group-label`),t?.groupLabel)),children:n.label}),n.options.map(t=>Q(t,r++,e))]},`group-${a}`):Q(n,r++,e))}var Ue=(0,A.memo)(({allowClear:e,autoFocus:n,className:a,classNames:o,defaultOpen:s,defaultValue:c,disabled:l,id:u,labelRender:d,listHeight:f=512,listItemHeight:m,loading:h,mode:_,name:v,onChange:ee,onOpenChange:te,onSelect:ne,open:y,optionRender:b,options:re,placeholder:x,popupClassName:ie,popupMatchSelectWidth:S,prefix:ae,readOnly:C,required:oe,behaviorVariant:se=`default`,selectedIndicatorVariant:ce=`check`,shadow:T,showSearch:le,filterOption:ue,onSearch:de,size:E=`middle`,style:D,suffixIcon:O,suffixIconProps:k,tokenSeparators:_e,value:ve,variant:ye,virtual:j})=>{let{isDarkMode:be}=t(),N=ye??(be?`filled`:`outlined`),P=_===`tags`,I=_===`multiple`||_===`tags`,R=se===`item-aligned`,[z,Se]=(0,A.useState)([]);(0,A.useEffect)(()=>{_!==`tags`&&z.length>0&&Se([])},[_,z.length]);let{appendTagValues:B,getOption:V,handleValueChange:H,normalizedValue:U,normalizeValue:W,removeLastTagValue:we,resolvedOptions:Te,valueArray:G}=Ae({defaultValue:c,extraOptions:z,isMultiple:I,onChange:ee,onSelect:ne,options:re,setExtraOptions:Se,value:ve}),{handleOpenChange:K,mergedOpen:q}=je({defaultOpen:s,onOpenChange:te,open:y}),J=(0,A.useCallback)(e=>H(G.filter((t,n)=>n!==e)),[H,G]),{filteredOptions:Y,handleSearchChange:Ee,handleSearchKeyDown:De,searchValue:X,shouldShowSearch:Oe,stopSearchPropagation:Q}=Me({filterOption:ue,onSearch:de,appendTagValues:B,handleOpenChange:K,mergedOpen:q,mode:_,removeLastTagValue:we,resolvedOptions:Te,showSearch:le,tokenSeparators:_e}),Ue=(0,A.useCallback)((e,t)=>{P&&!q||ke({mergedOpen:q,reason:t?.reason,searchValue:X})||H(e)},[H,P,q,X]),We=Ne({filteredOptions:Y,listItemHeight:m,size:E,valueArray:G,virtual:j}),Ge=Pe(),Ke=(0,A.useMemo)(()=>Le({getOption:V,isMultiple:I,isTags:P,labelRender:d,normalizeValue:W,onRemoveValue:J,placeholder:P?void 0:x}),[V,J,I,P,d,W,x]),qe=I?G.length>0:!Z(U),Je=!(!e||!qe||l||C),Ye=(0,A.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),H(I?[]:null)},[H,I]),Xe=(0,A.useMemo)(()=>Fe(ae),[ae]),Ze=(0,A.useMemo)(()=>Ie(O,k,h),[h,O,k]),Qe=(0,A.useMemo)(()=>{let e={"--lobe-select-popup-max-height":R?`80vh`:`${f}px`};return S===void 0||S===!0?e:typeof S==`number`?{...e,minWidth:S,width:S}:{...e,minWidth:`max-content`}},[R,f,S]),$=r({mode:_,shadow:T,size:E,variant:N}),$e=w(xe({shadow:T,size:E,variant:N}),i(F(),a,o?.root,o?.trigger),D),et=ce===`bold`,tt=w(b?p.itemContent:p.label,i(!b&&g.label,o?.itemText)).className,nt=Y.length===0,rt=nt?(0,M.jsx)(ze,{classNames:o}):He({classNames:o,isBoldIndicator:et,items:Y,itemTextClassName:tt,listItemHeight:m,optionRender:b});return(0,M.jsxs)(pe,{disabled:l,id:u,modal:R,multiple:I,name:v,open:q,readOnly:C,required:oe,value:U,onOpenChange:K,onValueChange:Ue,children:[(0,M.jsxs)(me,{autoFocus:!P&&n,...$,...$e,disabled:l,nativeButton:!P,render:P?(0,M.jsx)(`div`,{}):void 0,children:[Xe!=null&&(0,M.jsx)(`span`,{...w(L.prefix,i(F(`prefix`),o?.prefix)),children:Xe}),(0,M.jsx)(fe,{...w([L.value,P&&L.tagsValue],i(F(`value`),o?.value)),children:Ke}),P&&(0,M.jsx)(Be,{inline:!0,autoFocus:n,classNames:o,disabled:l,placeholder:G.length===0?x:void 0,readOnly:C,stopPropagation:Q,value:X,onChange:Ee,onKeyDown:De}),(0,M.jsx)(Ve,{classNames:o,showClear:Je,suffixIconNode:Ze,onClear:Ye})]}),(0,M.jsx)(ge,{container:Ge,children:(0,M.jsx)(Ce,{...$,align:`start`,alignItemWithTrigger:R,side:`bottom`,sideOffset:6,children:(0,M.jsxs)(he,{...$,...w([p.popup,L.popup,L.popupBounds],i(g.popup,F(`popup`),ie,o?.popup,o?.dropdown),Qe),children:[Oe&&!P&&(0,M.jsx)(Be,{classNames:o,placeholder:x,stopPropagation:Q,value:X,onChange:Ee,onKeyDown:De}),(0,M.jsx)(Re,{classNames:o,hasSearch:Oe&&!P,isEmpty:nt,listContent:rt,listItemHeight:m,virtual:j,virtualState:We})]})})})]})});Ue.displayName=`Select`,n.addResourceBundle(`en`,`translation`,{cloudEntry:{connectCta:`Connect Cloud`,connectHint:`Share · Mobile live`,connectTitle:`Connect Ryugi Cloud`,freeStart:`Free to start`,shellCta:`Connect Cloud · Share`,benefitShareTitle:`Share for team review`,benefitShareBody:`Generate public or keyed links with inline comments and expiry`,benefitPhoneTitle:`Open on phone & remote Relay`,benefitPhoneBody:`Review snapshots or watch agents live away from your desk`,benefitSyncTitle:`Private cross-device backup`,benefitSyncBody:`Keep artifacts archived privately across machines`,privateByDefault:`Private by default; only links you explicitly share are visible to others`},cloudIntent:{heading:`What would you like to do?`,subheading:`Runs automatically after you sign in to Ryugi Cloud`,badge:`One step`,shareTitle:`Create a share link`,shareDesc:`Publish this artifact privately and copy its link right after sign-in`,phoneTitle:`View & comment on phone`,phoneDesc:`Publish a private snapshot and open a QR code for your phone`,syncTitle:`Private cloud auto-backup`,syncDesc:`Automatically archive updates privately for yourself across devices`,shareCta:`Sign in with GitHub & copy link`,phoneCta:`Sign in with GitHub & open on phone`,syncCta:`Sign in with GitHub & turn on sync`,sharePrivacy:`Private by default unless you switch visibility to keyed or public.`,phonePrivacy:`Only accessible when signed in as you; never exposes local ports.`,syncPrivacy:`All synced artifacts stay private; you can turn off auto-sync per project.`,toastShareCopied:`Signed in as {{login}} and published privately · link copied`,toastShare:`Signed in as {{login}} and published privately`,toastPhone:`Published private snapshot · open QR code for your phone`,toastSync:`Signed in as {{login}} · private auto-sync turned on`,changeAccess:`Change access`,openLink:`Open link`,learnRelay:`Pro Relay`,showQr:`Show QR`,hideQr:`Hide QR`,projectConfig:`Project settings`,viewDetails:`Details`,qrTitle:`Scan on phone to view private snapshot`,qrDesc:`Only accessible with your GitHub account. Free plans can view cloud snapshots anytime.`,copyPhoneLink:`Copy phone link`,copied:`Copied`,proRelayHint:`Want live updates while your agent edits?`,proRelayCta:`Enable Pro Relay`},localShell:{backToList:`Back to local artifacts`,breadcrumb:`Artifact path`},server:{localBadge:`Local`}},!0,!0),n.addResourceBundle(`zh`,`translation`,{cloudEntry:{connectCta:`连接 Cloud`,connectHint:`分享 · 手机实时看`,connectTitle:`连接 Ryugi Cloud`,freeStart:`免费开始`,shellCta:`连接 Cloud · 分享`,benefitShareTitle:`一键发给团队评审`,benefitShareBody:`生成公开或密钥链接,支持划词评论与有效期`,benefitPhoneTitle:`手机查看与远程 Relay`,benefitPhoneBody:`离桌也能扫码看快照或实时跟随 Agent 改稿`,benefitSyncTitle:`跨设备私有自动备份`,benefitSyncBody:`所有项目产物默认私有归档到云端工作台`,privateByDefault:`默认全部私有,只有你手动公开的链接才对他人可见`},cloudIntent:{heading:`想对这份产物做什么?`,subheading:`登录 Ryugi Cloud 后在后台自动完成`,badge:`一步到位`,shareTitle:`生成可分享链接`,shareDesc:`登录后自动发布本页并复制链接,可设密钥与有效期`,phoneTitle:`在手机上查看与批注`,phoneDesc:`登录后发布私有快照并给出手机扫码,离桌也能看`,syncTitle:`仅私有云端自动备份`,syncDesc:`登录后每轮自动同步,换设备也能查看历史版本`,shareCta:`使用 GitHub 登录并生成链接`,phoneCta:`使用 GitHub 登录并在手机打开`,syncCta:`使用 GitHub 登录并开启私有同步`,sharePrivacy:`默认私有,除非你在发布后手动切换为密钥或公开链接。`,phonePrivacy:`仅你本人登录后可读,不会公开暴露本机端口。`,syncPrivacy:`所有同步产物仅自己可见,可随时按项目关闭自动同步。`,toastShareCopied:`已登录 {{login}} 并发布私有链接,已复制到剪贴板`,toastShare:`已登录 {{login}} 并发布私有链接`,toastPhone:`已发布私有快照,点右侧展开手机二维码`,toastSync:`已登录 {{login}},自动私有同步已开启(仅自己可见)`,changeAccess:`改权限`,openLink:`打开链接`,learnRelay:`了解 Pro Relay`,showQr:`显示二维码`,hideQr:`收起二维码`,projectConfig:`按项目配置`,viewDetails:`查看详情`,qrTitle:`手机扫码查看当前私有快照`,qrDesc:`仅你本人 GitHub 登录后可读。免费版随时可查看云端快照。`,copyPhoneLink:`复制手机链接`,copied:`已复制`,proRelayHint:`需要实时跟随 Agent 修改?`,proRelayCta:`开启 Pro Relay`},localShell:{backToList:`返回本机产物列表`,breadcrumb:`产物路径`},server:{localBadge:`本机`}},!0,!0);export{G as a,U as c,B as d,H as f,K as i,Ce as l,_e as m,V as n,we as o,ye as p,Te as r,W as s,Ue as t,Se as u};
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{D as t,v as n}from"./route-NVsY7tZE.js";import{n as r,r as i,t as a}from"./bem-vbke-3KC.js";import{t as o}from"./react-DlmbjZJV.js";import{An as s,Er as c,Fn as l,Pn as u,Tr as d,an as f,at as p,mr as m,on as h,rt as g}from"./url-QVKv57mN.js";import{t as _}from"./jsx-runtime-LKYXHABd.js";import{En as v,Gr as ee,Gt as te,Kr as ne,Sn as y,Tn as b,Vr as re,Xr as x,Zr as ie,_ as S,g as ae,ii as C,oi as oe,ri as w,rr as se,t as ce}from"./useLayerZIndex-wejHdLn7.js";import{Dt as T}from"./MotionConfigContext-HC2vqcJO.js";import{a as le,c as ue,d as de,f as fe,i as E,m as pe,o as D,p as me,r as O,s as he,u as ge}from"./SelectScrollUpArrow-BX3R94uY.js";var k={name:`clock`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6l4 2`,key:`mmk7yg`}]]};k.node;var _e=T(k),ve={name:`log-in`,size:24,node:[[`path`,{d:`m10 17 5-5-5-5`,key:`1bsop3`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4`,key:`u53s6r`}]]};ve.node;var ye=T(ve),A=e(o(),1);({...te,...se});var j=A.createContext(void 0);function be(){let e=A.useContext(j);if(e===void 0)throw Error(x(56));return e}var M=_(),N=A.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,[o,s]=A.useState(),c=A.useMemo(()=>({labelId:o,setLabelId:s}),[o,s]),l=ee(`div`,e,{ref:t,props:[{role:`group`,"aria-labelledby":o},a]});return(0,M.jsx)(j.Provider,{value:c,children:l})}),P=A.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,{setLabelId:s}=be(),c=re(a);return ie(()=>(s(c),()=>{s(e=>e===c?void 0:e)}),[c,s]),ee(`div`,e,{ref:t,props:[{id:c,"aria-hidden":!0},o]})}),F=a({block:`select`,dataAttributes:[`variant`,`size`,`shadow`,`mode`],elements:[`prefix`,`value`,`search`,`suffix`,`clear`,`icon`,`positioner`,`popup`,`list`,`option`,`item-text`,`item-indicator`,`group`,`group-label`,`empty`,`scroll-up-arrow`,`scroll-down-arrow`,`arrow`]}),I={lb17qyu0m:`lb17qyu0m`,$$css:!0},L={arrow:{k1xSpc:`lb78zum5`,kZKoxP:`lbols6we`,kzqmXN:`lbsmyaan`,$$css:!0},borderless:{"--lobe-select-disabled-bg":`lb1fcm1w1`,"--lobe-select-open-bg":`lb1m91qns`,"--lobe-select-readonly-bg":`lb16si2i5`,kVAM5u:`lb181nr7w`,ksu8eU:`lbng3xce`,kMzoRj:`lbfn42iu`,kWkggS:`lbjbqb8w lbbxqymp lb129k4ed lb1o44d5j lbckdqiz`,kGVxlE:`lb1gnnqk1`,$$css:!0},clear:{kmkexE:`lbholrd4`,kGNEyG:`lb6s0dn4`,kMwMTN:`lb53gy9q lblbjun7`,k1xSpc:`lb3nfvp2`,kSiTet:`lbg01cxk lb1asl7ui`,kfzvcC:`lb11l7nm`,$$css:!0},empty:{kMwMTN:`lb53gy9q`,$$css:!0},filled:{"--lobe-select-disabled-bg":`lb1fcm1w1`,"--lobe-select-open-bg":`lb1hprk1n`,"--lobe-select-readonly-bg":`lb16si2i5`,kWkggS:`lbaljia1 lbbxqymp lb6jdevu lb1o44d5j lbckdqiz`,$$css:!0},icon:{kmkexE:`lbyuzwzm`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb3nfvp2`,k3aq6I:`lb1je0516`,$$css:!0},itemBoldSelected:{k63SB2:`lbkj54ki`,$$css:!0},itemIndicator:{kGNEyG:`lb6s0dn4`,kMwMTN:`lb16owwnm`,k1xSpc:`lb3nfvp2`,kjj79g:`lbl56j7k`,keTefX:`lbvc5jky`,kZCmMZ:`lbmzvs34`,$$css:!0},list:{kUk6DE:`lb98rzlu`,kGO01o:`lb18d9i69`,kLKAdn:`lbexx8yu`,kAzted:`lb2lwn1j`,kORKVm:`lb1odjw0f`,$$css:!0},listWithSearch:{kLKAdn:`lb1iorvi4`,$$css:!0},outlined:{"--lobe-select-disabled-bg":`lb1lqng0l`,"--lobe-select-open-bg":`lb1m91qns`,"--lobe-select-readonly-bg":`lbcbhfra`,kVAM5u:`lb10cypdb lb3mg3nv`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kWkggS:`lb6yijhg lbbxqymp lb1o44d5j lbckdqiz`,$$css:!0},popupBounds:{ks0D6T:`lb7k7lee`,k7Eaqz:`lb80t9vs`,$$css:!0},popup:{"--lobe-select-available-height":`lb1rupxqf`,kmkexE:`lb1xhw48d`,kB7OPa:`lb9f619`,k1xSpc:`lb78zum5`,kXwgrk:`lbdt5ytf`,kSiTet:`lb1i2unn7`,k3aq6I:`lb11d3i7i`,k3nNDw:`lbctpfpq`,kskxy:`lbf2pfjc`,$$css:!0},positioner:{kI3sdo:`lb1a2a7pz`,kY2c9j:`lbp6lfbs`,$$css:!0},prefix:{kGNEyG:`lb6s0dn4`,kMwMTN:`lbc77et8`,k1xSpc:`lb3nfvp2`,$$css:!0},scrollArrow:{kGNEyG:`lb6s0dn4`,kWkggS:`lb1w937bt`,kMwMTN:`lbc77et8`,kkrTdU:`lbt0e3qv`,k1xSpc:`lb78zum5`,kjj79g:`lbl56j7k`,kZKoxP:`lblup9mm`,$$css:!0},search:{kUOVxO:`lb15usb71`,k8WAf4:`lb1vvogim`,kg3NbH:`lbaope02`,kGNEyG:`lb6s0dn4`,kL6WhQ:`lb1ak05nl`,kfdmCh:`lb1q0q8m5`,kt9PQ7:`lbso031l`,kkrTdU:`lb1ed109x`,k1xSpc:`lb78zum5`,kAzted:`lbu0aao5`,$$css:!0},searchInput:{kVAM5u:`lb181nr7w`,ksu8eU:`lbng3xce`,kMzoRj:`lbc342km`,kUk6DE:`lb98rzlu`,kI3sdo:`lb1a2a7pz`,k8WAf4:`lbt970qd`,kg3NbH:`lbfn1xvj`,kWkggS:`lbjbqb8w`,kMwMTN:`lb66ogz0`,kGuDYH:`lbif65rj`,kLWn49:`lb1fc57z9`,k7Eaqz:`lbeuugli`,k8Qsv1:`lb14injf2`,$$css:!0},shadow:{kGVxlE:`lbpjwdtl`,$$css:!0},suffix:{kOIVth:`lb17d4w8g`,kGNEyG:`lb6s0dn4`,kMwMTN:`lbc77et8`,k1xSpc:`lb3nfvp2`,$$css:!0},tag:{kaIpWk:`lb1vihcfj`,k8WAf4:`lbt970qd`,kg3NbH:`lb1xijbu4`,kGNEyG:`lb6s0dn4`,kWkggS:`lbaljia1`,kMwMTN:`lb66ogz0`,k1xSpc:`lb3nfvp2`,kGuDYH:`lbfifm61`,kLWn49:`lb1fc57z9`,ks0D6T:`lb193iq5w`,$$css:!0},tagClose:{kmkexE:`lbholrd4`,kGNEyG:`lb6s0dn4`,kMwMTN:`lbc77et8`,kkrTdU:`lb1ypdohk`,k1xSpc:`lb3nfvp2`,kjj79g:`lbl56j7k`,keTefX:`lbdwrcjd`,$$css:!0},tags:{kOIVth:`lb1jnr06f`,kGNEyG:`lb6s0dn4`,k1xSpc:`lb78zum5`,kwnvtZ:`lb1a02dak`,$$css:!0},tagsSearch:{kUk6DE:`lb98rzlu`,k1xSpc:`lb78zum5`,k7Eaqz:`lb900493`,$$css:!0},tagsValue:{kCS8Yb:`lbdl72j9`,kzQI83:`lb1c4vz4f`,kmuXW:`lbs83m0k`,$$css:!0},trigger:{kVAM5u:`lb9r1u3d`,kaIpWk:`lb1sbi92r`,ksu8eU:`lb1y0btm7`,kMzoRj:`lbmkeg23`,kOIVth:`lb167g77z`,kI3sdo:`lb1a2a7pz`,kmkexE:`lb18nfrvi`,kGNEyG:`lb6s0dn4`,kB7OPa:`lb9f619`,kMwMTN:`lb66ogz0 lb1s5k17a lbsycbhq`,kkrTdU:`lb1ypdohk lb10bady8 lbs5y3ja`,k1xSpc:`lb3nfvp2`,kMv6JI:`lbjb2p0i`,kfSwDN:`lb87ps6o`,kzqmXN:`lbh8yej3`,$$css:!0},triggerLarge:{k8WAf4:`lb1t0vds8`,kg3NbH:`lbaope02`,kGuDYH:`lb1j61zf2`,kLWn49:`lb1o2sk6j`,kAzted:`lb1ba4aug`,$$css:!0},triggerMiddle:{k8WAf4:`lb12ulsxz`,kg3NbH:`lbfoe8qy`,kGuDYH:`lbif65rj`,kLWn49:`lb1fc57z9`,kAzted:`lb21xpn4`,$$css:!0},triggerSmall:{k8WAf4:`lbt970qd`,kg3NbH:`lbdqyycr`,kGuDYH:`lbfifm61`,kLWn49:`lbd4r4e8`,kAzted:`lbjwf9q1`,$$css:!0},value:{kUk6DE:`lb98rzlu`,kOIVth:`lb1jnr06f`,kGNEyG:`lb6s0dn4`,kMwMTN:`lb1heor9g lb1xpzrx5`,k1xSpc:`lb78zum5`,kwnvtZ:`lb1a02dak`,k7Eaqz:`lbeuugli`,$$css:!0},valueText:{kVQacm:`lbb3r6kr`,kg5iWk:`lblyipyv`,khDVqt:`lbuxw1ft`,$$css:!0}},R={large:L.triggerLarge,middle:L.triggerMiddle,small:L.triggerSmall},xe=({shadow:e,size:t,variant:n})=>[L.trigger,b.info,I,e&&L.shadow,R[t??`middle`],L[n]],z=(e,t,n)=>{let r=w(e,n).className;return typeof t==`function`?e=>i(r,t(e)):i(r,t)},Se=pe,B=({children:e,className:n,nativeButton:r,shadow:a,size:o=`middle`,variant:s,ref:c,...d})=>{let{isDarkMode:f}=t(),p=xe({shadow:a,size:o,variant:s??(f?`filled`:`outlined`)}),m=C(p).className,{isNativeButtonTriggerElement:h,resolvedNativeButton:g}=l({children:e,nativeButton:r});return(0,A.isValidElement)(e)?(0,M.jsx)(me,{...d,nativeButton:g,render:(t,r)=>{let a=(()=>{if(h)return t;let{type:e,ref:n,...r}=t;return r})(),o=ne(e.props,a),s=typeof o.className==`function`?o.className(r):o.className,l=typeof n==`function`?n(r):n;return(0,A.cloneElement)(e,{...o,className:i(m,F(),s,l),ref:ae([u(e),t.ref,c])})}}):(0,M.jsx)(me,{...d,className:z([p],n,F()),nativeButton:g,ref:c,children:e})};B.displayName=`SelectTrigger`;var V=({className:e,...t})=>(0,M.jsx)(de,{className:z([L.icon],e,F(`icon`)),...t});V.displayName=`SelectIcon`;var H=({className:e,...t})=>(0,M.jsx)(fe,{className:z([L.value],e,F(`value`)),...t});H.displayName=`SelectValue`;var U=({container:e,...t})=>{let n=oe();return(0,M.jsx)(ge,{container:e??n??void 0,...t})};U.displayName=`SelectPortal`;var Ce=({align:e,alignItemWithTrigger:t,className:n,collisionPadding:r,side:i,sideOffset:a,style:o,ref:c,...l})=>{let u=typeof o!=`function`&&o?.zIndex!=null&&typeof o.zIndex==`number`?o.zIndex:void 0,{zIndex:d,ref:f}=ce(`floating`,u),p=S([c,f]),m=typeof o==`function`?e=>({zIndex:d,...o(e)}):{zIndex:d,...o};return(0,M.jsx)(ue,{align:e??`start`,alignItemWithTrigger:t??!1,collisionPadding:r??s(),ref:p,side:i??`bottom`,sideOffset:a??6,style:m,className:z([L.positioner],n,F(`positioner`)),...l})};Ce.displayName=`SelectPositioner`;var W=({className:e,...t})=>(0,M.jsx)(he,{className:z([p.popup,L.popup],e,i(g.popup,F(`popup`))),...t});W.displayName=`SelectPopup`;var we=({className:e,...t})=>(0,M.jsx)(D,{className:z([L.list],e,F(`list`)),...t});we.displayName=`SelectList`;var Te=({className:e,...t})=>(0,M.jsx)(le,{className:z([p.item],e,F(`option`)),...t});Te.displayName=`SelectItem`;var G=({className:e,...t})=>(0,M.jsx)(O,{className:z([p.label],e,i(g.label,F(`item-text`))),...t});G.displayName=`SelectItemText`;var K=({className:e,...t})=>(0,M.jsx)(E,{className:z([L.itemIndicator],e,F(`item-indicator`)),...t});K.displayName=`SelectItemIndicator`;var q=e=>{let t=`nativeEvent`in e?e.nativeEvent:e;return t.isComposing||t.keyCode===229},J=e=>!!e.options,Y=e=>typeof e.label==`string`||typeof e.label==`number`?String(e.label):e.title?e.title:typeof e.value==`string`||typeof e.value==`number`?String(e.value):``,Ee=e=>e.replaceAll(/[$()*+.?[\\\]^{|}]/g,`\\$&`),De=(e,t)=>{if(!t||t.length===0)return[e];let n=t.map(Ee).join(`|`);return e.split(new RegExp(n,`g`))},X=e=>e.reduce((e,t)=>J(t)?e+t.options.length+1:e+1,0),Z=e=>e==null||e===``,Oe=e=>t=>e?Array.isArray(t)?t:t==null?[]:[t]:Array.isArray(t)?t[0]??null:t===void 0?null:t,ke=({mergedOpen:e,reason:t,searchValue:n})=>t===`none`&&(e||n!==``);function Ae({defaultValue:e,extraOptions:t,isMultiple:n,onChange:r,onSelect:i,options:a,setExtraOptions:o,value:s}){let[c,l]=(0,A.useState)(()=>e===void 0?n?[]:null:e),u=(0,A.useMemo)(()=>Oe(n),[n]),d=s===void 0?c:s,f=(0,A.useMemo)(()=>u(d),[d,u]),p=(0,A.useMemo)(()=>n?f:Z(f)?[]:[f],[n,f]),{optionMap:m,resolvedOptions:h}=(0,A.useMemo)(()=>{let e=a??[],n=new Map,r=e=>{n.has(e.value)||n.set(e.value,e)};e.forEach(e=>{J(e)?e.options.forEach(r):r(e)});let i=t.filter(e=>!n.has(e.value));i.forEach(r);let o=[...e,...i],s=p.filter(e=>!n.has(e)).map(e=>({label:String(e),value:e}));return s.forEach(r),{optionMap:n,resolvedOptions:s.length?[...o,...s]:o}},[t,a,p]),g=(0,A.useCallback)(e=>m.get(e)||(e&&typeof e==`object`&&`label`in e?{label:e.label,value:e}:{label:String(e),value:e}),[m]),_=(0,A.useRef)(f);(0,A.useEffect)(()=>{_.current=f},[f]);let v=(0,A.useCallback)(e=>{let t=u(e),a=_.current;if(n){let e=Array.isArray(a)?a:[],n=Array.isArray(t)?t:[];n.filter(t=>!e.some(e=>Object.is(e,t))).forEach(e=>i?.(e,g(e))),s===void 0&&l(n),r?.(n,n.map(e=>g(e)))}else!Z(t)&&!Object.is(a,t)&&i?.(t,g(t)),s===void 0&&l(t),r?.(Z(t)?void 0:t,Z(t)?void 0:g(t));_.current=t},[g,n,u,r,i,s]);return{appendTagValues:(0,A.useCallback)(e=>{let t=e.map(e=>e.trim()).filter(Boolean);if(!t.length)return;let n=[...Array.isArray(_.current)?_.current:p],r=t.filter(e=>!m.has(e));r.length>0&&o(e=>{let t=new Set(e.map(e=>e.value)),n=[...e];return r.forEach(e=>{t.has(e)||n.push({label:e,value:e})}),n}),t.forEach(e=>{n.some(t=>Object.is(t,e))||n.push(e)}),n.length!==p.length&&v(n)},[v,m,o,p]),getOption:g,handleValueChange:v,normalizedValue:f,normalizeValue:u,optionMap:m,resolvedOptions:h,removeLastTagValue:(0,A.useCallback)(()=>{let e=Array.isArray(_.current)?_.current:p;e.length>0&&v(e.slice(0,-1))},[v,p]),valueArray:p}}function je({defaultOpen:e,onOpenChange:t,open:n}){let[r,i]=(0,A.useState)(!!e);(0,A.useEffect)(()=>{n!==void 0&&i(n)},[n]);let a=n??r;return{handleOpenChange:(0,A.useCallback)((e,r)=>{t?.(e,r),n===void 0&&i(e)},[t,n]),mergedOpen:a}}function Me({filterOption:e,onSearch:t,appendTagValues:n,handleOpenChange:r,mergedOpen:i,mode:a,removeLastTagValue:o,resolvedOptions:s,showSearch:c,tokenSeparators:l}){let[u,d]=(0,A.useState)(``),f=!!(c||a===`tags`);(0,A.useEffect)(()=>{i||d(``)},[i]);let p=(0,A.useCallback)(e=>{let r=e.target.value;if(a===`tags`){let e=De(r,l);if(e.length>1){let t=e.pop()??``;n(e.filter(Boolean)),d(t);return}}d(r),t?.(r)},[n,a,t,l]),m=(0,A.useCallback)(e=>{if(e.stopPropagation(),q(e))return;if(e.key===`Escape`){r(!1);return}if(a!==`tags`)return;if(e.key===`Backspace`&&!u){e.preventDefault(),o();return}let t=l?.includes(e.key);(e.key===`Enter`||t)&&(e.preventDefault(),e.stopPropagation(),n([u]),d(``))},[n,r,a,o,u,l]),h=(0,A.useCallback)(e=>{e.stopPropagation()},[]);return{filteredOptions:(0,A.useMemo)(()=>{if(!f||!u.trim()||e===!1)return s;let t=u.trim().toLowerCase(),n=n=>typeof e==`function`?e(u,n):Y(n).toLowerCase().includes(t);return s.map(e=>{if(J(e)){let t=e.options.filter(e=>n(e));return t.length?{...e,options:t}:null}return n(e)?e:null}).filter(Boolean)},[e,s,u,f]),handleSearchChange:p,handleSearchKeyDown:m,searchValue:u,shouldShowSearch:f,stopSearchPropagation:h}}function Ne({filteredOptions:e,listItemHeight:t,size:n,valueArray:r,virtual:i}){let a=(0,A.useMemo)(()=>{if(!i)return;let r=X(e);return{height:`min(${Math.min(Math.max(r,1),6)*(t??(n===`large`?40:n===`small`?28:32))+8}px, var(--lobe-select-available-height, var(--available-height)))`}},[e,t,n,i]);return{selectedIndices:(0,A.useMemo)(()=>{if(!i||r.length===0)return;let t=new Set(r),n=[],a=0;return e.forEach(e=>{J(e)?(e.options.some(e=>t.has(e.value))&&n.push(a),a+=1):(t.has(e.value)&&n.push(a),a+=1)}),n.length?n:void 0},[e,r,i]),virtualListStyle:a}}function Pe(){let e=oe();return(0,A.useMemo)(()=>{if(typeof window>`u`)return e;if(e instanceof HTMLElement)return window.getComputedStyle(e).display===`contents`?document.body:e},[e])}function Fe(e){return e==null?null:(0,A.isValidElement)(e)||typeof e==`string`||typeof e==`number`?e:(0,M.jsx)(y,{icon:e,size:`small`})}function Ie(e,t,n){return n?(0,M.jsx)(y,{spin:!0,icon:m,size:`small`}):e===null?null:(0,A.isValidElement)(e)||typeof e==`string`||typeof e==`number`?e:(0,M.jsx)(y,{icon:e||d,size:`small`,...t,style:{pointerEvents:`none`,...t?.style}})}function Le({getOption:e,isMultiple:t,isTags:n,labelRender:r,normalizeValue:i,onRemoveValue:a,placeholder:o}){return function(s){let c=i(s),l=o===void 0?null:(0,M.jsx)(`span`,{...C(L.valueText),children:o});if(t){let t=Array.isArray(c)?c:[];return t.length===0?l:(0,M.jsx)(`span`,{...C(L.tags),children:t.map((t,i)=>{let o=e(t),s=r?r(o):o.label??String(t);return(0,M.jsxs)(`span`,{...C(L.tag),"data-role":`lobe-select-tag`,children:[s,n&&(0,M.jsx)(`span`,{"aria-label":`Remove ${String(t)}`,...C(L.tagClose),"data-role":`lobe-select-tag-remove`,role:`button`,tabIndex:0,onClick:e=>{e.preventDefault(),e.stopPropagation(),a(i)},onPointerDown:e=>{e.preventDefault(),e.stopPropagation()},children:(0,M.jsx)(v,{size:12})})]},`${String(t)}-${i}`)})})}if(Z(c))return l;let u=e(c),d=r?r(u):u.label??String(c);return(0,M.jsx)(`span`,{...C(L.valueText),children:d})}}function Re({classNames:e,hasSearch:t,isEmpty:n,listContent:r,listItemHeight:a,virtual:o,virtualState:s}){let c=w([L.list,t&&L.listWithSearch],i(F(`list`),e?.list)).className,l=!!o&&!n,{keepMountedIndices:u,viewportProps:d,viewportRef:p,virtualChildren:m,virtualizerRef:g}=f({children:r,enabled:l,keepMounted:s.selectedIndices});return l?(0,M.jsx)(h,{itemSize:a,keepMounted:u,style:s.virtualListStyle,viewport:(0,M.jsx)(D,{className:c}),viewportProps:{ref:p,...d},virtualizerRef:g,children:m}):(0,M.jsx)(D,{className:c,"data-virtual":o||void 0,children:r})}function ze({classNames:e}){return(0,M.jsx)(`div`,{...w([p.item,p.empty,L.empty],i(F(`empty`),e?.empty)),children:`No data`})}function Be({autoFocus:e,classNames:t,disabled:n,inline:r,onChange:a,onKeyDown:o,placeholder:s,readOnly:c,stopPropagation:l,value:u}){return(0,M.jsx)(`div`,{...w(r?L.tagsSearch:L.search,i(F(`search`),t?.search)),children:(0,M.jsx)(`input`,{autoFocus:e,...C(L.searchInput),disabled:n,placeholder:typeof s==`string`?s:void 0,readOnly:c,value:u,onChange:a,onKeyDownCapture:o,onKeyUp:l,onKeyUpCapture:l})})}function Ve({classNames:e,onClear:t,showClear:n,suffixIconNode:r}){return(0,M.jsxs)(`span`,{...w(L.suffix,i(F(`suffix`),e?.suffix)),children:[n&&(0,M.jsx)(`span`,{...w(L.clear,i(F(`clear`),e?.clear)),"data-role":`lobe-select-clear`,onClick:t,children:(0,M.jsx)(y,{icon:v,size:`small`})}),r!=null&&(0,M.jsx)(de,{...w(L.icon,i(F(`icon`),e?.icon)),children:r})]})}function Q(e,t,n){let{classNames:r,isBoldIndicator:a,itemTextClassName:o,listItemHeight:s,optionRender:l}=n;return(0,M.jsxs)(le,{disabled:e.disabled,label:Y(e),value:e.value,...w([p.item,a&&L.itemBoldSelected],i(F(`option`),r?.item,r?.option,e.className),{minHeight:s,...e.style}),children:[(0,M.jsx)(O,{className:i(F(`item-text`),o),children:l?l(e,{index:t}):e.label}),!a&&(0,M.jsx)(E,{...w(L.itemIndicator,i(F(`item-indicator`),r?.itemIndicator)),children:(0,M.jsx)(y,{icon:c,size:`small`})})]},`${String(e.value)}-${t}`)}function He(e){let{classNames:t,items:n}=e,r=0;return n.map((n,a)=>J(n)?(0,M.jsxs)(N,{className:i(F(`group`),t?.group),children:[(0,M.jsx)(P,{...w(p.groupLabel,i(F(`group-label`),t?.groupLabel)),children:n.label}),n.options.map(t=>Q(t,r++,e))]},`group-${a}`):Q(n,r++,e))}var Ue=(0,A.memo)(({allowClear:e,autoFocus:n,className:a,classNames:o,defaultOpen:s,defaultValue:c,disabled:l,id:u,labelRender:d,listHeight:f=512,listItemHeight:m,loading:h,mode:_,name:v,onChange:ee,onOpenChange:te,onSelect:ne,open:y,optionRender:b,options:re,placeholder:x,popupClassName:ie,popupMatchSelectWidth:S,prefix:ae,readOnly:C,required:oe,behaviorVariant:se=`default`,selectedIndicatorVariant:ce=`check`,shadow:T,showSearch:le,filterOption:ue,onSearch:de,size:E=`middle`,style:D,suffixIcon:O,suffixIconProps:k,tokenSeparators:_e,value:ve,variant:ye,virtual:j})=>{let{isDarkMode:be}=t(),N=ye??(be?`filled`:`outlined`),P=_===`tags`,I=_===`multiple`||_===`tags`,R=se===`item-aligned`,[z,Se]=(0,A.useState)([]);(0,A.useEffect)(()=>{_!==`tags`&&z.length>0&&Se([])},[_,z.length]);let{appendTagValues:B,getOption:V,handleValueChange:H,normalizedValue:U,normalizeValue:W,removeLastTagValue:we,resolvedOptions:Te,valueArray:G}=Ae({defaultValue:c,extraOptions:z,isMultiple:I,onChange:ee,onSelect:ne,options:re,setExtraOptions:Se,value:ve}),{handleOpenChange:K,mergedOpen:q}=je({defaultOpen:s,onOpenChange:te,open:y}),J=(0,A.useCallback)(e=>H(G.filter((t,n)=>n!==e)),[H,G]),{filteredOptions:Y,handleSearchChange:Ee,handleSearchKeyDown:De,searchValue:X,shouldShowSearch:Oe,stopSearchPropagation:Q}=Me({filterOption:ue,onSearch:de,appendTagValues:B,handleOpenChange:K,mergedOpen:q,mode:_,removeLastTagValue:we,resolvedOptions:Te,showSearch:le,tokenSeparators:_e}),Ue=(0,A.useCallback)((e,t)=>{P&&!q||ke({mergedOpen:q,reason:t?.reason,searchValue:X})||H(e)},[H,P,q,X]),We=Ne({filteredOptions:Y,listItemHeight:m,size:E,valueArray:G,virtual:j}),Ge=Pe(),Ke=(0,A.useMemo)(()=>Le({getOption:V,isMultiple:I,isTags:P,labelRender:d,normalizeValue:W,onRemoveValue:J,placeholder:P?void 0:x}),[V,J,I,P,d,W,x]),qe=I?G.length>0:!Z(U),Je=!(!e||!qe||l||C),Ye=(0,A.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),H(I?[]:null)},[H,I]),Xe=(0,A.useMemo)(()=>Fe(ae),[ae]),Ze=(0,A.useMemo)(()=>Ie(O,k,h),[h,O,k]),Qe=(0,A.useMemo)(()=>{let e={"--lobe-select-popup-max-height":R?`80vh`:`${f}px`};return S===void 0||S===!0?e:typeof S==`number`?{...e,minWidth:S,width:S}:{...e,minWidth:`max-content`}},[R,f,S]),$=r({mode:_,shadow:T,size:E,variant:N}),$e=w(xe({shadow:T,size:E,variant:N}),i(F(),a,o?.root,o?.trigger),D),et=ce===`bold`,tt=w(b?p.itemContent:p.label,i(!b&&g.label,o?.itemText)).className,nt=Y.length===0,rt=nt?(0,M.jsx)(ze,{classNames:o}):He({classNames:o,isBoldIndicator:et,items:Y,itemTextClassName:tt,listItemHeight:m,optionRender:b});return(0,M.jsxs)(pe,{disabled:l,id:u,modal:R,multiple:I,name:v,open:q,readOnly:C,required:oe,value:U,onOpenChange:K,onValueChange:Ue,children:[(0,M.jsxs)(me,{autoFocus:!P&&n,...$,...$e,disabled:l,nativeButton:!P,render:P?(0,M.jsx)(`div`,{}):void 0,children:[Xe!=null&&(0,M.jsx)(`span`,{...w(L.prefix,i(F(`prefix`),o?.prefix)),children:Xe}),(0,M.jsx)(fe,{...w([L.value,P&&L.tagsValue],i(F(`value`),o?.value)),children:Ke}),P&&(0,M.jsx)(Be,{inline:!0,autoFocus:n,classNames:o,disabled:l,placeholder:G.length===0?x:void 0,readOnly:C,stopPropagation:Q,value:X,onChange:Ee,onKeyDown:De}),(0,M.jsx)(Ve,{classNames:o,showClear:Je,suffixIconNode:Ze,onClear:Ye})]}),(0,M.jsx)(ge,{container:Ge,children:(0,M.jsx)(Ce,{...$,align:`start`,alignItemWithTrigger:R,side:`bottom`,sideOffset:6,children:(0,M.jsxs)(he,{...$,...w([p.popup,L.popup,L.popupBounds],i(g.popup,F(`popup`),ie,o?.popup,o?.dropdown),Qe),children:[Oe&&!P&&(0,M.jsx)(Be,{classNames:o,placeholder:x,stopPropagation:Q,value:X,onChange:Ee,onKeyDown:De}),(0,M.jsx)(Re,{classNames:o,hasSearch:Oe&&!P,isEmpty:nt,listContent:rt,listItemHeight:m,virtual:j,virtualState:We})]})})})]})});Ue.displayName=`Select`,n.addResourceBundle(`en`,`translation`,{cloudEntry:{connectCta:`Connect Cloud`,connectHint:`Share · Mobile live`,connectTitle:`Connect Ryugi Cloud`,freeStart:`Free to start`,shellCta:`Connect Cloud · Share`,benefitShareTitle:`Share for team review`,benefitShareBody:`Generate public or keyed links with inline comments and expiry`,benefitPhoneTitle:`Open on phone & remote Relay`,benefitPhoneBody:`Review snapshots or watch agents live away from your desk`,benefitSyncTitle:`Private cross-device backup`,benefitSyncBody:`Keep artifacts archived privately across machines`,privateByDefault:`Private by default; only links you explicitly share are visible to others`},cloudIntent:{heading:`What would you like to do?`,subheading:`Runs automatically after you sign in to Ryugi Cloud`,badge:`One step`,shareTitle:`Create a share link`,shareDesc:`Publish this artifact privately and copy its link right after sign-in`,phoneTitle:`View & comment on phone`,phoneDesc:`Publish a private snapshot and open a QR code for your phone`,syncTitle:`Private cloud auto-backup`,syncDesc:`Automatically archive updates privately for yourself across devices`,shareCta:`Sign in with GitHub & copy link`,phoneCta:`Sign in with GitHub & open on phone`,syncCta:`Sign in with GitHub & turn on sync`,sharePrivacy:`Private by default unless you switch visibility to keyed or public.`,phonePrivacy:`Only accessible when signed in as you; never exposes local ports.`,syncPrivacy:`All synced artifacts stay private; you can turn off auto-sync per project.`,toastShareCopied:`Signed in as {{login}} and published privately · link copied`,toastShare:`Signed in as {{login}} and published privately`,toastPhone:`Published private snapshot · open QR code for your phone`,toastSync:`Signed in as {{login}} · private auto-sync turned on`,changeAccess:`Change access`,openLink:`Open link`,learnRelay:`Pro Relay`,showQr:`Show QR`,hideQr:`Hide QR`,projectConfig:`Project settings`,viewDetails:`Details`,qrTitle:`Scan on phone to view private snapshot`,qrDesc:`Only accessible with your GitHub account. Free plans can view cloud snapshots anytime.`,copyPhoneLink:`Copy phone link`,copied:`Copied`,proRelayHint:`Want live updates while your agent edits?`,proRelayCta:`Enable Pro Relay`},localShell:{backToList:`Back to local artifacts`,breadcrumb:`Artifact path`},server:{localBadge:`Local`}},!0,!0),n.addResourceBundle(`zh`,`translation`,{cloudEntry:{connectCta:`连接 Cloud`,connectHint:`分享 · 手机实时看`,connectTitle:`连接 Ryugi Cloud`,freeStart:`免费开始`,shellCta:`连接 Cloud · 分享`,benefitShareTitle:`一键发给团队评审`,benefitShareBody:`生成公开或密钥链接,支持划词评论与有效期`,benefitPhoneTitle:`手机查看与远程 Relay`,benefitPhoneBody:`离桌也能扫码看快照或实时跟随 Agent 改稿`,benefitSyncTitle:`跨设备私有自动备份`,benefitSyncBody:`所有项目产物默认私有归档到云端工作台`,privateByDefault:`默认全部私有,只有你手动公开的链接才对他人可见`},cloudIntent:{heading:`想对这份产物做什么?`,subheading:`登录 Ryugi Cloud 后在后台自动完成`,badge:`一步到位`,shareTitle:`生成可分享链接`,shareDesc:`登录后自动发布本页并复制链接,可设密钥与有效期`,phoneTitle:`在手机上查看与批注`,phoneDesc:`登录后发布私有快照并给出手机扫码,离桌也能看`,syncTitle:`仅私有云端自动备份`,syncDesc:`登录后每轮自动同步,换设备也能查看历史版本`,shareCta:`使用 GitHub 登录并生成链接`,phoneCta:`使用 GitHub 登录并在手机打开`,syncCta:`使用 GitHub 登录并开启私有同步`,sharePrivacy:`默认私有,除非你在发布后手动切换为密钥或公开链接。`,phonePrivacy:`仅你本人登录后可读,不会公开暴露本机端口。`,syncPrivacy:`所有同步产物仅自己可见,可随时按项目关闭自动同步。`,toastShareCopied:`已登录 {{login}} 并发布私有链接,已复制到剪贴板`,toastShare:`已登录 {{login}} 并发布私有链接`,toastPhone:`已发布私有快照,点右侧展开手机二维码`,toastSync:`已登录 {{login}},自动私有同步已开启(仅自己可见)`,changeAccess:`改权限`,openLink:`打开链接`,learnRelay:`了解 Pro Relay`,showQr:`显示二维码`,hideQr:`收起二维码`,projectConfig:`按项目配置`,viewDetails:`查看详情`,qrTitle:`手机扫码查看当前私有快照`,qrDesc:`仅你本人 GitHub 登录后可读。免费版随时可查看云端快照。`,copyPhoneLink:`复制手机链接`,copied:`已复制`,proRelayHint:`需要实时跟随 Agent 修改?`,proRelayCta:`开启 Pro Relay`},localShell:{backToList:`返回本机产物列表`,breadcrumb:`产物路径`},server:{localBadge:`本机`}},!0,!0);export{G as a,U as c,B as d,H as f,K as i,Ce as l,_e as m,V as n,we as o,ye as p,Te as r,W as s,Ue as t,Se as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e}from"./rolldown-runtime-XKyaHtl9.js";import{a as t}from"./ref-
|
|
1
|
+
import{n as e}from"./rolldown-runtime-XKyaHtl9.js";import{a as t}from"./ref-BO544fjh.js";import{r as n}from"./useArtifactSocket-rdqBV2Ob.js";import{s as r}from"./route-NVsY7tZE.js";var i=e({localSplitHost:()=>o}),a=async(e,t)=>{let n=await fetch(e,{cache:`no-store`,...t}).catch(()=>null);return n?.ok?await n.json().catch(()=>null):null},o={path:(e,t)=>`/${e}/${t}`,refId:e=>t(e)||void 0,frameSrc:(e,t)=>r(`/embed/${e}/${t}`),aloneHref:(e,t)=>r(`/${e}/${t}`),carry:e=>r(e),async loadLinks(e,t=`artboard`){let n=await a(r(`/api/artifacts/${t}/${e}`));if(!n)return null;let i=n.canvas;return{backlinks:n.backlinks??null,groups:Object.keys(i?.groups??{})}},onArtboardChange:(e,t,r=`artboard`)=>n(n=>{n.type===`change`&&n.artifact===`${r}/${e}`&&t()})};export{i as n,o as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./VirtualizedRenderer-C_d95FXi-CdfZNPLY.js","./rolldown-runtime-XKyaHtl9.js","./react-DlmbjZJV.js","./jsx-runtime-LKYXHABd.js","./editor-BzAfOnLe.js","./route-NVsY7tZE.js","./bem-vbke-3KC.js","./types-BCsOeYI6.js","./index2.css","./url-QVKv57mN.js","./useLayerZIndex-wejHdLn7.js","./MotionConfigContext-HC2vqcJO.js","./is-html-element-DvgHo_1h.js","./WhiteboardEditor-cZ32fLqJ-C-752weL.js","./Popover-wYD9C76P.js","./chevron-right-xNdXLJg6.js","./stringifyLocale-D0juOOnH.js","./code-DnmQyGiF.js","./SelectScrollUpArrow-BX3R94uY.js","./zoom-out-DsmGFv1v.js","./text-align-start-CRhecbJR.js","./ruler-CYb0HZGT.js","./maximize-2-Bc0lXBg6.js","./mouse-pointer-2-B-OF_fcG.js","./undo-2-B-JiyKIl.js","./plus-DZJ2BVkK.js","./MenuSubmenuTrigger-N0gSsCFu.js","./index3.css","./Tooltip-o_rfP_HJ.js","./pen-tool-BfwjhXQW.js","./underline-CT_nGhA9.js","./external-link-D382oEvK.js","./table-2-D90vZ04E.js","./message-square-Yl8PoPy_.js","./presentation-DXrcAbwM.js","./ThreadView-DaFQCgD2.js","./stable-XuL29MqL.js","./comments-DUAz1Q9X.js","./icons-BProV5Cr.js","./index5.css","./search-DTrfkTpJ.js","./sliders-horizontal-CuS3-UwA.js","./upload-DffL3XsM.js","./video-DKoRqEZW.js","./agentLook-DzniHdua.js","./DotGrid-DKKr_PyM.js","./rounds-BLj-tfMG.js","./useMedia-CFebB4XU.js","./BottomSheet-BW_wJMFp.js","./motion-Cy65kd7X.js","./preference-oNdcNeml.js","./ref-BO544fjh.js","./useSandboxFrame-CJmSnwgG.js","./index4.css","./viewport-CFJHn_Y6-UhXd2UV_.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-DlmbjZJV.js";import{t as n}from"./jsx-runtime-LKYXHABd.js";import{T as r}from"./route-NVsY7tZE.js";var i=e(t(),1),a=n(),o=(0,i.lazy)(()=>r(()=>import(`./VirtualizedRenderer-C_d95FXi-CdfZNPLY.js`).then(e=>({default:e.VirtualizedRenderer})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54]),import.meta.url));function s({document:e}){return(0,a.jsx)(a.Fragment,{children:e.rows.slice(0,12).map((t,n)=>e.render(n))})}function c(e={}){return function(t){return(0,a.jsx)(i.Suspense,{fallback:(0,a.jsx)(s,{...t}),children:(0,a.jsx)(o,{...t,options:e})})}}export{c as n,s as t};
|
package/dist/viewer/preview.html
CHANGED
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
<link rel="modulepreload" crossorigin href="/react-DlmbjZJV.js">
|
|
17
17
|
<link rel="modulepreload" crossorigin href="/jsx-runtime-LKYXHABd.js">
|
|
18
18
|
<link rel="modulepreload" crossorigin href="/types-BCsOeYI6.js">
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/route-
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/view-
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/route-NVsY7tZE.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/view-fl5_d-HX.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/DotGrid-DKKr_PyM.js">
|
|
22
|
-
<link rel="modulepreload" crossorigin href="/PreviewLayout-
|
|
22
|
+
<link rel="modulepreload" crossorigin href="/PreviewLayout-CGXVZ8O9.js">
|
|
23
23
|
<link rel="stylesheet" crossorigin href="/index2.css">
|
|
24
24
|
</head>
|
|
25
25
|
<body>
|
package/dist/viewer/preview.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,S as t,_ as n,n as r,v as i,w as a,x as o}from"./route-
|
|
1
|
+
import{C as e,S as t,_ as n,n as r,v as i,w as a,x as o}from"./route-NVsY7tZE.js";import{r as s,t as c}from"./PreviewLayout-CGXVZ8O9.js";import{t as l}from"./jsx-runtime-LKYXHABd.js";var u=t(),d=l();e(),document.documentElement.lang=a[i.language];function f(){o();let e=r(location.pathname);return e.kind===`preview`?(0,d.jsx)(c,{id:document.documentElement.dataset.ryugiArtifactId??e.id,type:e.type}):(0,d.jsx)(`div`,{...n(s.message),children:i.t(`preview.unavailable`)})}(0,u.createRoot)(document.getElementById(`root`)).render((0,d.jsx)(f,{}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-DlmbjZJV.js";import{S as n,k as r,y as i}from"./route-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-DlmbjZJV.js";import{S as n,k as r,y as i}from"./route-NVsY7tZE.js";import"./shims-s-YVfIlz.js";import{C as a,Ct as o,D as s,T as c,a as l,h as u,k as d,l as f,m as p,p as m,s as h,u as g,w as _,x as v,xt as y,y as b}from"./editor-BzAfOnLe.js";import{c as x,p as S,s as C,t as w}from"./channel-DzrkQcu7.js";import{R as T}from"./WhiteboardEditor-cZ32fLqJ-C-752weL.js";import{t as E}from"./dist-D-zeJRi5.js";import{a as D,t as O}from"./ref-BO544fjh.js";import{t as k}from"./katex-DuZJ-tFh.js";import{t as A}from"./jsx-runtime-LKYXHABd.js";var j=e(t(),1),M=e(r(),1),N=n(),P=`@page{size:A4;margin:16mm}[data-document-print-root]{color:#242424;width:178mm;font-family:var(--lobe-font-family,system-ui, sans-serif);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;pointer-events:none;background:#fff;font-size:14px;line-height:1.75;position:absolute;top:0;left:-100000px}[data-document-print-root] .rich-content{max-width:none;padding:0}.document-print-image{margin:16px 0}.document-print-image img,.document-print-diagram{max-width:100%;height:auto;margin-inline:auto;display:block}.document-print-image figcaption{color:#666;text-align:center;margin-top:8px;font-size:12px}.document-print-state{color:#555;font-size:12px}.document-print-pending{color:#666;border-inline-start:2px solid #aaa;padding-inline-start:12px}.document-print-reference{color:#245d88;text-decoration:underline}@media print{html[data-document-printing],html[data-document-printing] body{background:#fff!important;height:auto!important;margin:0!important;overflow:visible!important}html[data-document-printing] body>:not([data-document-print-root]){display:none!important}html[data-document-printing] [data-document-print-root]{pointer-events:auto;width:auto;position:static}[data-document-print-root] h1,[data-document-print-root] h2,[data-document-print-root] h3{break-after:avoid}[data-document-print-root] img,[data-document-print-root] svg{object-fit:contain;max-width:100%;max-height:250mm}[data-document-print-root] pre,[data-document-print-root] pre code{white-space:pre-wrap!important;overflow-wrap:anywhere!important}[data-document-print-root] [data-chrome]{overflow:visible!important}[data-document-print-root] .rich-table-scrollable-wrapper{width:100%!important;max-width:100%!important;overflow:visible!important}[data-document-print-root] table{table-layout:fixed!important;width:100%!important;min-width:0!important}[data-document-print-root] th,[data-document-print-root] td{overflow-wrap:anywhere;white-space:normal!important;min-width:0!important}[data-document-print-root] tr{break-inside:avoid}[data-document-print-root] thead{display:table-header-group}[data-document-print-root] .rich-spoiler{color:inherit!important;filter:none!important;background:0 0!important}[data-document-print-root] .rich-heading-anchor,[data-document-print-root] figure>div>button[aria-pressed]{display:none!important}}`,F=A(),I=(0,j.createContext)(null),L=[s,c,...E,h,l,d,m],R=e=>(0,F.jsx)(T,{...e,collapsible:!1,showCopyButton:!1});function z({equation:e,displayMode:t}){let n=(0,j.useMemo)(()=>k.renderToString(e,{displayMode:t,throwOnError:!1}),[e,t]);return(0,F.jsx)(`span`,{dangerouslySetInnerHTML:{__html:n}})}function B({src:e,altText:t,caption:n,width:r,height:i,fixedWidth:a,displayWidth:o}){return(0,F.jsxs)(`figure`,{className:`document-print-image`,children:[(0,F.jsx)(`img`,{alt:t,height:i,loading:`eager`,src:e,width:a??o??r}),n?(0,F.jsx)(`figcaption`,{children:n}):null]})}function V({content:e}){let t=b(e,`light`);return t?(0,F.jsx)(`img`,{alt:i(`mermaid.diagram`),className:`document-print-diagram`,height:t.height,loading:`eager`,src:t.src,width:t.width}):(0,F.jsx)(`p`,{"data-print-error":i(`documentExport.diagramFailed`),children:i(`documentExport.diagramFailed`)})}function H({node:e}){let t=(0,j.useContext)(I),n=y([o(e,``)],t.comments.threads)[0],r=n.text??n.options.find(e=>e.value===n.choice)?.label,a=n.state===`settled`?`askSettled`:n.state===`submitted`?`askSubmitted`:n.byRecommendation?`askRecommended`:r?`askDraft`:`askUnanswered`;return(0,F.jsxs)(`span`,{className:`document-print-state`,children:[i(`documentExport.${a}`),r?`: ${r}`:``,n.note?` · ${n.note}`:``]})}function U({node:e}){let t=(0,j.useContext)(I),n=x(e,t),r=e.label??[D(e),e.group??e.board??e.frame??e.page].filter(Boolean).join(` · `);return n?(0,F.jsx)(`a`,{className:`document-print-reference`,href:n,children:r}):(0,F.jsx)(`span`,{className:`document-print-reference`,children:r})}function W({node:e}){let t=(0,j.useContext)(I).embeds?.[C(e)],n=t&&`scene`in t?u(t.scene.elements,e.frame):null,r=[D(e),e.frame??e.page].filter(Boolean).join(` · `);return!t||!(`scene`in t)||!n||!(`box`in n)?(0,F.jsx)(`p`,{className:`document-print-reference`,"data-print-embed":`missing`,children:r}):(0,F.jsx)(`figure`,{className:`document-print-whiteboard`,style:{aspectRatio:`${n.box.w} / ${n.box.h}`,maxHeight:640,margin:0},children:(0,F.jsx)(p,{light:!0,files:t.scene.files??{},label:r,view:n})})}function G({node:e}){let t=(0,j.useContext)(I),[n,r]=(0,j.useState)(!1),[a,o]=(0,j.useState)(null),s=(0,j.useMemo)(()=>({artifact:`document-print`,contentBase:t.contentBase,channel:w(),send:e=>{let t=e;t.type===`loaded`&&r(!0),t.type===`runtime-error`&&o(t.message??i(`documentExport.blockFailed`))}}),[t.contentBase]);return(0,F.jsx)(`div`,{"data-print-error":a??void 0,"data-print-loading":n?void 0:``,children:(0,F.jsx)(g,{value:s,children:(0,F.jsx)(f,{componentProps:e.props,initialHeight:e.initialHeight,url:e.url})})})}var K={ask:e=>(0,F.jsx)(H,{node:e}),ref:e=>O(e)?(0,F.jsx)(W,{node:e}):(0,F.jsx)(U,{node:e}),pending:e=>(0,F.jsxs)(`p`,{className:`document-print-pending`,children:[i(`documentExport.inProgress`),`:`,` `,e.intent||i(`document.pending`)]}),dynamic:e=>(0,F.jsx)(G,{node:e})},q={Alert:a,CodeBlock:R,Image:B,KaTeX:z,Mermaid:V,Whiteboard:_};function J({snapshot:e}){return(0,F.jsx)(I,{value:e,children:(0,F.jsx)(v,{children:(0,F.jsx)(S,{builtinNodeOverrides:K,extraNodes:L,rendererConfig:q,theme:`light`,value:e.state,variant:`article`})})})}async function Y(e,{signal:t,timeoutMs:n=2e4}={}){e.querySelectorAll(`details`).forEach(e=>{e.open=!0}),e.querySelectorAll(`img[src]`).forEach(e=>{e.loading=`eager`}),e.querySelectorAll(`table`).forEach(e=>{let t=e.querySelector(`tr`);!e.tHead&&t?.cells.length&&[...t.cells].every(e=>e.tagName===`TH`)&&e.createTHead().append(t)}),await new Promise((r,i)=>{let a=Date.now()+n,o=Date.now(),s=!document.fonts,c=null,l=0,u,d=new WeakSet,f=new MutationObserver(()=>{o=Date.now()});f.observe(e,{childList:!0,subtree:!0,attributes:!0,characterData:!0});let p=e=>{clearTimeout(u),f.disconnect(),t?.removeEventListener(`abort`,m),e?i(e):r()},m=()=>p(new DOMException(`Print cancelled`,`AbortError`));if(t?.addEventListener(`abort`,m,{once:!0}),t?.aborted){m();return}document.fonts&&document.fonts.ready.then(()=>{s=!0},()=>{c=Error(`A document font failed to load`)});let h=()=>{if(t?.aborted){m();return}let n=e.querySelector(`[data-print-error], [role="alert"]`);if(n){p(Error(n.dataset.printError||n.textContent||`A document block failed to render`));return}let r=!s||document.fonts?.status===`loading`||e.querySelector(`[data-print-loading], [aria-busy="true"]`)!==null;e.querySelectorAll(`details:not([open])`).forEach(e=>{e.open=!0});for(let t of e.querySelectorAll(`img[src]`))if(t.getAttribute(`src`)){if(t.loading!==`eager`&&(t.loading=`eager`),t.complete&&t.naturalWidth===0){p(Error(`Document image failed to load: ${t.alt||`image`}`));return}t.complete?!d.has(t)&&typeof t.decode==`function`&&(d.add(t),l++,t.decode().then(()=>{l--},()=>{l--,c=Error(`A document image failed to decode`)})):r=!0}c?p(c):!r&&l===0&&Date.now()-o>=100?p():Date.now()>=a?p(Error(`Document resources timed out`)):u=setTimeout(h,25)};h()})}var X=class extends j.Component{state={error:null};static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?(0,F.jsx)(`p`,{"data-print-error":this.state.error.message,children:this.state.error.message}):this.props.children}};async function Z(e,{signal:t,timeoutMs:n}={}){if(document.querySelector(`[data-document-print-root]`))throw Error(`A document export is already open`);if(t?.aborted)throw new DOMException(`Print cancelled`,`AbortError`);let r=document.createElement(`div`);r.dataset.documentPrintRoot=``,r.dataset.theme=`light`,r.setAttribute(`aria-hidden`,`true`);let i=document.createElement(`style`);i.nonce=document.querySelector(`style[nonce]`)?.nonce??``,i.textContent=P,document.head.append(i),document.body.append(r);let a=(0,N.createRoot)(r),o=document.title;try{(0,M.flushSync)(()=>a.render((0,F.jsx)(X,{children:(0,F.jsx)(J,{snapshot:e})}))),await Y(r,{signal:t,timeoutMs:n}),r.removeAttribute(`aria-hidden`),document.documentElement.dataset.documentPrinting=``,document.title=e.title,await new Promise((e,n)=>{let r=()=>{window.removeEventListener(`afterprint`,i),t?.removeEventListener(`abort`,a)},i=()=>{r(),e()},a=()=>{r(),n(new DOMException(`Print cancelled`,`AbortError`))};if(window.addEventListener(`afterprint`,i,{once:!0}),t?.addEventListener(`abort`,a,{once:!0}),t?.aborted)a();else try{window.print()}catch(e){r(),n(e)}})}finally{a.unmount(),r.remove(),i.remove(),delete document.documentElement.dataset.documentPrinting,document.title===e.title&&(document.title=o)}}export{Z as printDocument};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-DlmbjZJV.js";var n=e(t(),1),r=`ryugi:read-marks:v1`,i=`ryugi:read-marks`,a=`clear`;function o(){try{return window.localStorage.getItem(r)===`keep`?`keep`:`clear`}catch{return a}}function s(e){try{window.localStorage.setItem(r,e)}catch{a=e}window.dispatchEvent(new Event(i))}function c(e){let t=t=>{(t.key===r||t.key===null)&&e()};return window.addEventListener(i,e),window.addEventListener(`storage`,t),()=>{window.removeEventListener(i,e),window.removeEventListener(`storage`,t)}}var l=()=>(0,n.useSyncExternalStore)(c,o,()=>`clear`);export{l as n,s as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,s as t}from"./url-
|
|
1
|
+
import{c as e,s as t}from"./url-QVKv57mN.js";var n=e=>e.type===`ref`,r=e=>e.embed===`true`,i=e=>t.filter(t=>e[t]!==void 0),a=n=>{let r={};for(let e of t)n[e]!==void 0&&(r[e]=n[e]);n.to&&(r.to=n.to);for(let t of e)n[t]&&(r[t]=n[t]);return n.embed!==void 0&&(r.embed=n.embed),n.label&&(r.label=n.label),r},o=e=>i(e)[0]??`artboard`,s=e=>e[o(e)]??``,c=e=>e.frame??(e.page?`page:${e.page}`:void 0)??e.group??e.board??e.slide??e.block??e.shot??``;function l(e){let t=[],r=(e,i)=>{n(e)&&t.push({blockId:i,...a(e)});for(let t of e.children??[])r(t,i)};for(let t of e.root.children)r(t,t.$?.blockId??``);return t}export{s as a,i,c as n,l as o,o as r,r as t};
|