ryugi-artifacts 1.108.0 → 1.108.2
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 +159 -159
- package/dist/document-engine.cjs +1 -1
- package/dist/server.cjs +13 -13
- package/dist/viewer/{AgentDock---hZRdMk.js → AgentDock-aN5OSJ-J.js} +1 -1
- package/dist/viewer/{ArtboardLayout-aA3schgm.js → ArtboardLayout-C0AyDlVu.js} +12 -12
- package/dist/viewer/{ArtifactList-DGwth5Uo.js → ArtifactList-D1k1uD-4.js} +2 -2
- package/dist/viewer/{ArtifactModal-BoshLJw7.js → ArtifactModal-CwdBghvc.js} +1 -1
- package/dist/viewer/{BottomSheet-De0wDQnP.js → BottomSheet-BOQ2E7Z6.js} +1 -1
- package/dist/viewer/{Canvas-CI2wd8RY.js → Canvas-C_S0HAGE.js} +1 -1
- package/dist/viewer/{CommentPopover-BopMRDEk.js → CommentPopover-CTad_ci3.js} +1 -1
- package/dist/viewer/{DocumentExportMenu-BAtsd4zW.js → DocumentExportMenu-BMtNLMCd.js} +1 -1
- package/dist/viewer/DocumentLayout-VFaDqBeR.js +2 -0
- package/dist/viewer/{DocumentPage-CgI1Ybrt.js → DocumentPage-CIYTHtMj.js} +1 -1
- package/dist/viewer/{DraggablePanel-CpccFkyu.js → DraggablePanel-C-j_BdLX.js} +1 -1
- package/dist/viewer/{DropdownMenu-Bx-bya6r.js → DropdownMenu-CIz6C4Vl.js} +1 -1
- package/dist/viewer/{GroupVerdict--XHPt5t2.js → GroupVerdict-Bo6-N2fF.js} +1 -1
- package/dist/viewer/{HtmlLayout-BT1Grbqi.js → HtmlLayout-B29gXfBU.js} +1 -1
- package/dist/viewer/{Input-Cm37HmyQ.js → Input-fQLk-PNT.js} +1 -1
- package/dist/viewer/{MenuSubmenuTrigger-DhC8wnON.js → MenuSubmenuTrigger-4JoqfaRi.js} +1 -1
- package/dist/viewer/{PhoneArtboardBar-Met1alXG.js → PhoneArtboardBar-CTMvi2kP.js} +1 -1
- package/dist/viewer/{Popover-BDqi62Lz.js → Popover-uYLZtM5h.js} +1 -1
- package/dist/viewer/{PreviewArtifactLayout-Cbu5Tl4o.js → PreviewArtifactLayout-D8RO9K8h.js} +1 -1
- package/dist/viewer/{PreviewLayout-Dam8DKBw.js → PreviewLayout-Dw-jMatP.js} +2 -2
- package/dist/viewer/ReportLayout-D7ZkedGf.js +5 -0
- package/dist/viewer/{RyugiMark-C2Kv7bq7.js → RyugiMark-BEV-beO7.js} +1 -1
- package/dist/viewer/{Segmented-BzBNnF8h.js → Segmented-icH7CFHs.js} +1 -1
- package/dist/viewer/{SelectScrollUpArrow-BvZjk1l3.js → SelectScrollUpArrow-DsiQm9o6.js} +1 -1
- package/dist/viewer/{SlidesLayout-T6pVArYg.js → SlidesLayout-XsjPfYDW.js} +3 -3
- package/dist/viewer/{SnapshotDocument-dfVksXw6.js → SnapshotDocument-CgB9HR7O.js} +1 -1
- package/dist/viewer/{SplitFrame-Cuz0Fd60.js → SplitFrame-DUnzPWJZ.js} +1 -1
- package/dist/viewer/{StoryboardLayout-DiV_Z5pK.js → StoryboardLayout-F5kZZPXd.js} +1 -1
- package/dist/viewer/{StoryboardRender-BJWBZ1MT.js → StoryboardRender-m7Gb9PIh.js} +1 -1
- package/dist/viewer/{ThreadView-Bk1VGlvk.js → ThreadView-B7amgGB8.js} +1 -1
- package/dist/viewer/{Tooltip-cTz_1zF8.js → Tooltip-B7lRhfz2.js} +1 -1
- package/dist/viewer/{VerifyLayout-DhHeBlGD.js → VerifyLayout-DKPuSiGF.js} +1 -1
- package/dist/viewer/{VirtualizedEditor-uWe43zaI-WjQs3HGC.js → VirtualizedEditor-uWe43zaI-C0hkH_Vs.js} +1 -1
- package/dist/viewer/{VirtualizedRenderer-C_d95FXi-BMnqHwCM.js → VirtualizedRenderer-C_d95FXi-gefGj2Da.js} +1 -1
- package/dist/viewer/{WarningsBadge-CQKODxdo.js → WarningsBadge-B7sbLji4.js} +1 -1
- package/dist/viewer/{WhiteboardEditor-cZ32fLqJ-tuDJ14dh.js → WhiteboardEditor-cZ32fLqJ-BK6P1wgf.js} +1 -1
- package/dist/viewer/{WhiteboardLayout-SRtQwnI2.js → WhiteboardLayout-BhENYvui.js} +1 -1
- package/dist/viewer/{WritingCursor-DWvn5-Fo.js → WritingCursor-XIWPcNuO.js} +1 -1
- package/dist/viewer/{agentLook-Bm5_0Zap.js → agentLook-eVhGFE_V.js} +1 -1
- package/dist/viewer/{artifact-list-DMKifPNo.js → artifact-list-7mtsXERr.js} +1 -1
- package/dist/viewer/{auto-publish-DCFcz2OJ.js → auto-publish-DNFjfgdJ.js} +1 -1
- package/dist/viewer/{channel-CVARMxQO.js → channel-bUfc1jGv.js} +3 -3
- package/dist/viewer/code-xml-c9QCqmhY.js +1 -0
- package/dist/viewer/{crop-encode-BXX3T9IW.js → crop-encode-Dfe-R9aR.js} +1 -1
- package/dist/viewer/{dist-zN4xV1Ll.js → dist-B0Sc2yJQ.js} +1 -1
- package/dist/viewer/{dist-BNmtZYK5.js → dist-B2M7jGJZ.js} +1 -1
- package/dist/viewer/{dist-D-XGYlaQ.js → dist-B2XV5VPA.js} +1 -1
- package/dist/viewer/{dist-C6gUa2QU.js → dist-B89BzNuP.js} +1 -1
- package/dist/viewer/{dist-CdldntRN.js → dist-BJJscYLO.js} +1 -1
- package/dist/viewer/{dist-Cpr6Sb7Z.js → dist-BKz23I-8.js} +1 -1
- package/dist/viewer/{dist-CLXrvvgx.js → dist-BNvefBkB.js} +1 -1
- package/dist/viewer/{dist-BJroqkUZ.js → dist-BVqUX7rA.js} +1 -1
- package/dist/viewer/{dist-CtKjkMwc.js → dist-BWq0Pr1u.js} +1 -1
- package/dist/viewer/{dist-Djkh2eBk.js → dist-BYSSiKNz.js} +1 -1
- package/dist/viewer/{dist-DOnpps63.js → dist-BqdzTy1C.js} +1 -1
- package/dist/viewer/{dist-B9V2FAkC.js → dist-BvImtfDV.js} +1 -1
- package/dist/viewer/{dist-D40weUHE.js → dist-C2Jl700e.js} +1 -1
- package/dist/viewer/{dist-Dqfo0cw3.js → dist-CVhsAd6y.js} +1 -1
- package/dist/viewer/{dist-DmZmhQm2.js → dist-CgppnzAt.js} +1 -1
- package/dist/viewer/{dist-jZTRyto4.js → dist-CtXl0XeV.js} +1 -1
- package/dist/viewer/{dist-Die3Xx5u.js → dist-D0TN3YBW.js} +1 -1
- package/dist/viewer/dist-D4kW54Jp.js +1 -0
- package/dist/viewer/{dist-CEHzg3yB.js → dist-DBvfIpp4.js} +1 -1
- package/dist/viewer/{dist-D-7wA2MO.js → dist-DKqD7UWs.js} +1 -1
- package/dist/viewer/{dist-xG9z0UsN.js → dist-DT4JxPbl.js} +1 -1
- package/dist/viewer/{dist-DUtBlcgm.js → dist-Didrao11.js} +1 -1
- package/dist/viewer/{dist-DxikGSNx.js → dist-jnQufM_D.js} +1 -1
- package/dist/viewer/{dist-CoIOKz9E.js → dist-v2KllcT6.js} +1 -1
- package/dist/viewer/{editor-Ch2V6IBq.js → editor-OGz_Tz-t.js} +256 -256
- package/dist/viewer/icons-CKXqWGqz.js +1 -0
- package/dist/viewer/{imperative-IdZ6nWPs.js → imperative-Bl7KanbO.js} +1 -1
- package/dist/viewer/index.html +12 -12
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index5.css +60 -0
- package/dist/viewer/{local-BRAi41mw.js → local-QOxEcmpr.js} +1 -1
- package/dist/viewer/{local-split-host-B9-b1nF-.js → local-split-host-aaVovEJX.js} +1 -1
- package/dist/viewer/plugin-_bGVeqI0-CV5Uc3JT.js +2 -0
- package/dist/viewer/preview.html +3 -3
- package/dist/viewer/preview.js +1 -1
- package/dist/viewer/{printDocument-7ROMuLDi.js → printDocument-Cs6x3IRK.js} +1 -1
- package/dist/viewer/{ref-18fHdbqG.js → ref-Cg8zYSdM.js} +1 -1
- package/dist/viewer/{route-Cto1M-9M.js → route-Xg8P5ghY.js} +2 -2
- package/dist/viewer/{route-messages-CVepLEKq.js → route-messages-BmAJn0Qh.js} +1 -1
- package/dist/viewer/{settings-DYL-Smbx.js → settings-5y0Q6PnT.js} +1 -1
- package/dist/viewer/{snap-BZbvh5gx.js → snap-DZtFeas3.js} +1 -1
- package/dist/viewer/{split-x3wbj4VY.js → split-DFCHm5IV.js} +2 -2
- package/dist/viewer/{stable-DNuXvw1O.js → stable-CVHOj_kY.js} +1 -1
- package/dist/viewer/{file-code-CIc73fLV.js → table-2-D90vZ04E.js} +1 -1
- package/dist/viewer/{transport-BtSXpIYp.js → transport-Fu5iCiYX.js} +1 -1
- package/dist/viewer/{url-B7tM0rBE.js → url-BoN37oN0.js} +1 -1
- package/dist/viewer/{useArtifactFeed-AM_L_IQ_.js → useArtifactFeed-CuvRk10D.js} +1 -1
- package/dist/viewer/{useArtifactSocket-CQZyCoRM.js → useArtifactSocket-tWHs_pnv.js} +1 -1
- package/dist/viewer/{useLayerZIndex-BLBrH3-s.js → useLayerZIndex-lrIeP3uV.js} +1 -1
- package/dist/viewer/{useStoryboardData-CqAZAp1S.js → useStoryboardData-BKxFqsGP.js} +1 -1
- package/dist/viewer/{view-lIJZzThl.js → view-DdfN3DGp.js} +1 -1
- package/dist/viewer/{viewport-CFJHn_Y6-CAYJm7Gz.js → viewport-CFJHn_Y6-D2-cw3Yw.js} +1 -1
- package/package.json +1 -1
- package/dist/viewer/DocumentLayout-RL2r3iAU.js +0 -2
- package/dist/viewer/ReportLayout-BHrbaaAL.js +0 -6
- package/dist/viewer/dist-By-fjsc_.js +0 -1
- package/dist/viewer/icons-CpcexkdF.js +0 -1
- package/dist/viewer/plugin-_bGVeqI0-DdcZpvs8.js +0 -2
package/dist/viewer/index5.css
CHANGED
|
@@ -231,6 +231,14 @@
|
|
|
231
231
|
padding: 1px 4px;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
+
.x1e41zw8 {
|
|
235
|
+
padding: 1px 5px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.x12ox6j3 {
|
|
239
|
+
padding: 1px 6px;
|
|
240
|
+
}
|
|
241
|
+
|
|
234
242
|
.x1yijxmr {
|
|
235
243
|
padding: 20px 24px;
|
|
236
244
|
}
|
|
@@ -255,6 +263,10 @@
|
|
|
255
263
|
padding: 48px;
|
|
256
264
|
}
|
|
257
265
|
|
|
266
|
+
.x1v7pko {
|
|
267
|
+
padding: 4px 14px;
|
|
268
|
+
}
|
|
269
|
+
|
|
258
270
|
.xfawy5m {
|
|
259
271
|
padding: 4px;
|
|
260
272
|
}
|
|
@@ -271,6 +283,10 @@
|
|
|
271
283
|
padding: 6px 10px;
|
|
272
284
|
}
|
|
273
285
|
|
|
286
|
+
.x10kg585 {
|
|
287
|
+
padding: 6px 14px;
|
|
288
|
+
}
|
|
289
|
+
|
|
274
290
|
.x14zjhkh {
|
|
275
291
|
padding: 6px 4px;
|
|
276
292
|
}
|
|
@@ -303,6 +319,10 @@
|
|
|
303
319
|
padding: 8px 14px 0;
|
|
304
320
|
}
|
|
305
321
|
|
|
322
|
+
.xbnpv00 {
|
|
323
|
+
padding: 8px 14px;
|
|
324
|
+
}
|
|
325
|
+
|
|
306
326
|
.xtybu7z {
|
|
307
327
|
padding: 8px 8px 4px;
|
|
308
328
|
}
|
|
@@ -896,6 +916,10 @@
|
|
|
896
916
|
padding-inline: 11px;
|
|
897
917
|
}
|
|
898
918
|
|
|
919
|
+
.x1dry65w {
|
|
920
|
+
padding-inline: 12px 8px;
|
|
921
|
+
}
|
|
922
|
+
|
|
899
923
|
.xaope02 {
|
|
900
924
|
padding-inline: 12px;
|
|
901
925
|
}
|
|
@@ -940,6 +964,10 @@
|
|
|
940
964
|
padding-inline: 22px;
|
|
941
965
|
}
|
|
942
966
|
|
|
967
|
+
.x8r2x4m {
|
|
968
|
+
padding-inline: 23px 8px;
|
|
969
|
+
}
|
|
970
|
+
|
|
943
971
|
.x4l9tsp {
|
|
944
972
|
padding-inline: 24px;
|
|
945
973
|
}
|
|
@@ -1096,6 +1124,10 @@
|
|
|
1096
1124
|
border-color: var(--x1yr20sb);
|
|
1097
1125
|
}
|
|
1098
1126
|
|
|
1127
|
+
.xsd1pif:focus {
|
|
1128
|
+
border-color: var(--lobe-color-border);
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1099
1131
|
@media (width <= 700px) {
|
|
1100
1132
|
.x1wsdfcg.x1wsdfcg {
|
|
1101
1133
|
flex: none;
|
|
@@ -1855,6 +1887,10 @@
|
|
|
1855
1887
|
border-block-width: 1px;
|
|
1856
1888
|
}
|
|
1857
1889
|
|
|
1890
|
+
.x1vathgz {
|
|
1891
|
+
border-collapse: separate;
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1858
1894
|
.xhxo4fl {
|
|
1859
1895
|
border-inline-end-color: var(--lobe-color-border-secondary);
|
|
1860
1896
|
}
|
|
@@ -1895,6 +1931,10 @@
|
|
|
1895
1931
|
border-inline-start-width: 2px;
|
|
1896
1932
|
}
|
|
1897
1933
|
|
|
1934
|
+
.x1gukg7c {
|
|
1935
|
+
border-spacing: 0;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1898
1938
|
.x15cmq10 {
|
|
1899
1939
|
box-shadow: 0 -8px 30px var(--x5ax8g5),0 0 0 1px var(--xn5fqny);
|
|
1900
1940
|
}
|
|
@@ -2916,6 +2956,10 @@
|
|
|
2916
2956
|
margin-inline-end: 10px;
|
|
2917
2957
|
}
|
|
2918
2958
|
|
|
2959
|
+
.xnnr8r {
|
|
2960
|
+
margin-inline-end: 2px;
|
|
2961
|
+
}
|
|
2962
|
+
|
|
2919
2963
|
.x2fvf9 {
|
|
2920
2964
|
margin-inline-end: 4px;
|
|
2921
2965
|
}
|
|
@@ -3246,6 +3290,10 @@
|
|
|
3246
3290
|
padding-inline-start: 20px;
|
|
3247
3291
|
}
|
|
3248
3292
|
|
|
3293
|
+
.x13jy36j {
|
|
3294
|
+
padding-inline-start: 24px;
|
|
3295
|
+
}
|
|
3296
|
+
|
|
3249
3297
|
.x110972j {
|
|
3250
3298
|
padding-inline-start: 28px;
|
|
3251
3299
|
}
|
|
@@ -3933,6 +3981,10 @@
|
|
|
3933
3981
|
background-color: var(--x1yr20sb);
|
|
3934
3982
|
}
|
|
3935
3983
|
|
|
3984
|
+
.x10ko8r3:hover {
|
|
3985
|
+
color: var(--lobe-color-bg-container);
|
|
3986
|
+
}
|
|
3987
|
+
|
|
3936
3988
|
.x12rs2w1:hover {
|
|
3937
3989
|
color: var(--lobe-color-text-secondary);
|
|
3938
3990
|
}
|
|
@@ -3969,6 +4021,10 @@
|
|
|
3969
4021
|
opacity: 1;
|
|
3970
4022
|
}
|
|
3971
4023
|
|
|
4024
|
+
.x1lv3ipu:focus {
|
|
4025
|
+
background-color: var(--lobe-color-bg-container);
|
|
4026
|
+
}
|
|
4027
|
+
|
|
3972
4028
|
.x2230gt:active {
|
|
3973
4029
|
background-color: var(--lobe-color-fill-secondary);
|
|
3974
4030
|
}
|
|
@@ -4681,6 +4737,10 @@
|
|
|
4681
4737
|
left: 50%;
|
|
4682
4738
|
}
|
|
4683
4739
|
|
|
4740
|
+
.xx8bi4a {
|
|
4741
|
+
left: 7px;
|
|
4742
|
+
}
|
|
4743
|
+
|
|
4684
4744
|
.xncym2f {
|
|
4685
4745
|
left: 8px;
|
|
4686
4746
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{C as t,h as n}from"./route-Cto1M-9M.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{Nn as s,Pn as c,Tr as l,an as u,in as d,kn as f,pr as p,rt as m,tt as h,wr as g}from"./url-B7tM0rBE.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-BLBrH3-s.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-BvZjk1l3.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:l,ref:u,...d})=>{let{isDarkMode:f}=t(),p=xe({shadow:a,size:o,variant:l??(f?`filled`:`outlined`)}),m=C(p).className,{isNativeButtonTriggerElement:h,resolvedNativeButton:g}=c({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),c=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(),c,l),ref:ae([s(e),t.ref,u])})}}):(0,M.jsx)(me,{...d,className:z([p],n,F()),nativeButton:g,ref:u,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:s,...c})=>{let l=typeof o!=`function`&&o?.zIndex!=null&&typeof o.zIndex==`number`?o.zIndex:void 0,{zIndex:u,ref:d}=ce(`floating`,l),p=S([s,d]),m=typeof o==`function`?e=>({zIndex:u,...o(e)}):{zIndex:u,...o};return(0,M.jsx)(ue,{align:e??`start`,alignItemWithTrigger:t??!1,collisionPadding:r??f(),ref:p,side:i??`bottom`,sideOffset:a??6,style:m,className:z([L.positioner],n,F(`positioner`)),...c})};Ce.displayName=`SelectPositioner`;var W=({className:e,...t})=>(0,M.jsx)(he,{className:z([m.popup,L.popup],e,i(h.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([m.item],e,F(`option`)),...t});Te.displayName=`SelectItem`;var G=({className:e,...t})=>(0,M.jsx)(O,{className:z([m.label],e,i(h.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:p,size:`small`}):e===null?null:(0,A.isValidElement)(e)||typeof e==`string`||typeof e==`number`?e:(0,M.jsx)(y,{icon:e||g,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:f,viewportProps:p,viewportRef:m,virtualChildren:h,virtualizerRef:g}=d({children:r,enabled:l,keepMounted:s.selectedIndices});return l?(0,M.jsx)(u,{itemSize:a,keepMounted:f,style:s.virtualListStyle,viewport:(0,M.jsx)(D,{className:c}),viewportProps:{ref:m,...p},virtualizerRef:g,children:h}):(0,M.jsx)(D,{className:c,"data-virtual":o||void 0,children:r})}function ze({classNames:e}){return(0,M.jsx)(`div`,{...w([m.item,m.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:c}=n;return(0,M.jsxs)(le,{disabled:e.disabled,label:Y(e),value:e.value,...w([m.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:c?c(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:l,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(m.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:p,loading:g,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:p,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,g),[g,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?m.itemContent:m.label,i(!b&&h.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:p,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([m.popup,L.popup,L.popupBounds],i(h.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:p,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{C as t,h as n}from"./route-Xg8P5ghY.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{Nn as s,Pn as c,Tr as l,an as u,in as d,kn as f,pr as p,rt as m,tt as h,wr as g}from"./url-BoN37oN0.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-lrIeP3uV.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-DsiQm9o6.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:l,ref:u,...d})=>{let{isDarkMode:f}=t(),p=xe({shadow:a,size:o,variant:l??(f?`filled`:`outlined`)}),m=C(p).className,{isNativeButtonTriggerElement:h,resolvedNativeButton:g}=c({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),c=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(),c,l),ref:ae([s(e),t.ref,u])})}}):(0,M.jsx)(me,{...d,className:z([p],n,F()),nativeButton:g,ref:u,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:s,...c})=>{let l=typeof o!=`function`&&o?.zIndex!=null&&typeof o.zIndex==`number`?o.zIndex:void 0,{zIndex:u,ref:d}=ce(`floating`,l),p=S([s,d]),m=typeof o==`function`?e=>({zIndex:u,...o(e)}):{zIndex:u,...o};return(0,M.jsx)(ue,{align:e??`start`,alignItemWithTrigger:t??!1,collisionPadding:r??f(),ref:p,side:i??`bottom`,sideOffset:a??6,style:m,className:z([L.positioner],n,F(`positioner`)),...c})};Ce.displayName=`SelectPositioner`;var W=({className:e,...t})=>(0,M.jsx)(he,{className:z([m.popup,L.popup],e,i(h.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([m.item],e,F(`option`)),...t});Te.displayName=`SelectItem`;var G=({className:e,...t})=>(0,M.jsx)(O,{className:z([m.label],e,i(h.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:p,size:`small`}):e===null?null:(0,A.isValidElement)(e)||typeof e==`string`||typeof e==`number`?e:(0,M.jsx)(y,{icon:e||g,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:f,viewportProps:p,viewportRef:m,virtualChildren:h,virtualizerRef:g}=d({children:r,enabled:l,keepMounted:s.selectedIndices});return l?(0,M.jsx)(u,{itemSize:a,keepMounted:f,style:s.virtualListStyle,viewport:(0,M.jsx)(D,{className:c}),viewportProps:{ref:m,...p},virtualizerRef:g,children:h}):(0,M.jsx)(D,{className:c,"data-virtual":o||void 0,children:r})}function ze({classNames:e}){return(0,M.jsx)(`div`,{...w([m.item,m.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:c}=n;return(0,M.jsxs)(le,{disabled:e.disabled,label:Y(e),value:e.value,...w([m.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:c?c(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:l,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(m.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:p,loading:g,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:p,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,g),[g,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?m.itemContent:m.label,i(!b&&h.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:p,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([m.popup,L.popup,L.popupBounds],i(h.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:p,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-Cg8zYSdM.js";import{r as n}from"./useArtifactSocket-tWHs_pnv.js";import{i as r}from"./route-Xg8P5ghY.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-gefGj2Da.js","./rolldown-runtime-XKyaHtl9.js","./react-DlmbjZJV.js","./jsx-runtime-LKYXHABd.js","./editor-OGz_Tz-t.js","./route-Xg8P5ghY.js","./bem-vbke-3KC.js","./types-DAs-xbqr.js","./index2.css","./url-BoN37oN0.js","./useLayerZIndex-lrIeP3uV.js","./MotionConfigContext-HC2vqcJO.js","./WhiteboardEditor-cZ32fLqJ-BK6P1wgf.js","./Popover-uYLZtM5h.js","./chevron-right-xNdXLJg6.js","./trash-DByBaz9Z.js","./code-DnmQyGiF.js","./SelectScrollUpArrow-DsiQm9o6.js","./text-align-start-CRhecbJR.js","./ruler-CYb0HZGT.js","./zoom-out-N_0LUBru.js","./maximize-2-Bc0lXBg6.js","./mouse-pointer-2-B-OF_fcG.js","./stringifyLocale-pkrPwFqm.js","./plus-DZJ2BVkK.js","./MenuSubmenuTrigger-4JoqfaRi.js","./index3.css","./Tooltip-B7lRhfz2.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-B7amgGB8.js","./stable-CVHOj_kY.js","./icons-CKXqWGqz.js","./index5.css","./search-DTrfkTpJ.js","./sliders-horizontal-CuS3-UwA.js","./upload-DffL3XsM.js","./video-DKoRqEZW.js","./agentLook-eVhGFE_V.js","./rounds-BLj-tfMG.js","./useMedia-CFebB4XU.js","./BottomSheet-BOQ2E7Z6.js","./motion-Cy65kd7X.js","./useSandboxFrame-CJmSnwgG.js","./preference-oNdcNeml.js","./ref-Cg8zYSdM.js","./index4.css","./viewport-CFJHn_Y6-D2-cw3Yw.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{x as r}from"./route-Xg8P5ghY.js";var i=e(t(),1),a=n(),o=(0,i.lazy)(()=>r(()=>import(`./VirtualizedRenderer-C_d95FXi-gefGj2Da.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]),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,9 +16,9 @@
|
|
|
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-DAs-xbqr.js">
|
|
19
|
-
<link rel="modulepreload" crossorigin href="/route-
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/view-
|
|
21
|
-
<link rel="modulepreload" crossorigin href="/PreviewLayout-
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/route-Xg8P5ghY.js">
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/view-DdfN3DGp.js">
|
|
21
|
+
<link rel="modulepreload" crossorigin href="/PreviewLayout-Dw-jMatP.js">
|
|
22
22
|
<link rel="stylesheet" crossorigin href="/index2.css">
|
|
23
23
|
</head>
|
|
24
24
|
<body>
|
package/dist/viewer/preview.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e,h as t,m as n,n as r,v as i,y as a}from"./route-
|
|
1
|
+
import{b as e,h as t,m as n,n as r,v as i,y as a}from"./route-Xg8P5ghY.js";import{r as o,t as s}from"./PreviewLayout-Dw-jMatP.js";import{t as c}from"./jsx-runtime-LKYXHABd.js";var l=a(),u=c();document.documentElement.lang=e[t.language];function d(){i();let e=r(location.pathname);return e.kind===`preview`?(0,u.jsx)(s,{id:document.documentElement.dataset.ryugiArtifactId??e.id,type:e.type}):(0,u.jsx)(`div`,{...n(o.message),children:t.t(`preview.unavailable`)})}(0,l.createRoot)(document.getElementById(`root`)).render((0,u.jsx)(d,{}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-DlmbjZJV.js";import{T as n,g as r,y as i}from"./route-
|
|
1
|
+
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{t}from"./react-DlmbjZJV.js";import{T as n,g as r,y as i}from"./route-Xg8P5ghY.js";import"./shims-s-YVfIlz.js";import{C as a,Ct as o,D as s,T as c,a as l,b as u,h as d,k as f,l as p,m,p as h,s as g,u as _,w as v,xt as y,y as b}from"./editor-OGz_Tz-t.js";import{c as x,f as S,s as C,t as w}from"./channel-bUfc1jGv.js";import{R as T}from"./WhiteboardEditor-cZ32fLqJ-BK6P1wgf.js";import{t as E}from"./dist-D4kW54Jp.js";import{a as D,t as O}from"./ref-Cg8zYSdM.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(n(),1),N=i(),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,g,l,f,h],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:r(`mermaid.diagram`),className:`document-print-diagram`,height:t.height,loading:`eager`,src:t.src,width:t.width}):(0,F.jsx)(`p`,{"data-print-error":r(`documentExport.diagramFailed`),children:r(`documentExport.diagramFailed`)})}function H({node:e}){let t=(0,j.useContext)(I),n=y([o(e,``)],t.comments.threads)[0],i=n.text??n.options.find(e=>e.value===n.choice)?.label,a=n.state===`settled`?`askSettled`:n.state===`submitted`?`askSubmitted`:n.byRecommendation?`askRecommended`:i?`askDraft`:`askUnanswered`;return(0,F.jsxs)(`span`,{className:`document-print-state`,children:[r(`documentExport.${a}`),i?`: ${i}`:``,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?d(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)(m,{light:!0,files:t.scene.files??{},label:r,view:n})})}function G({node:e}){let t=(0,j.useContext)(I),[n,i]=(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`&&i(!0),t.type===`runtime-error`&&o(t.message??r(`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)(_,{value:s,children:(0,F.jsx)(p,{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:[r(`documentExport.inProgress`),`:`,` `,e.intent||r(`document.pending`)]}),dynamic:e=>(0,F.jsx)(G,{node:e})},q={Alert:a,CodeBlock:R,Image:B,KaTeX:z,Mermaid:V,Whiteboard:v};function J({snapshot:e}){return(0,F.jsx)(I,{value:e,children:(0,F.jsx)(u,{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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as e,s as t}from"./url-
|
|
1
|
+
import{o as e,s as t}from"./url-BoN37oN0.js";var n=e=>e.type===`ref`,r=e=>e.embed===`true`,i=t=>e.filter(e=>t[e]!==void 0),a=n=>{let r={};for(let t of e)n[t]!==void 0&&(r[t]=n[t]);n.to&&(r.to=n.to);for(let e of t)n[e]&&(r[e]=n[e]);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};
|