@rizom/brain 0.2.0-alpha.822 → 0.2.0-alpha.823
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/brain.js +11 -7
- package/dist/chunks/{app-x5ags7n8.js → app-8p354rxy.js} +2 -2
- package/dist/chunks/{index-1xm2ws26.js → index-hhe7r0r5.js} +2 -2
- package/dist/chunks/{index-3wbg3gv2.js → index-m3fw7nkx.js} +3 -3
- package/dist/chunks/{index-3wbg3gv2.js.map → index-m3fw7nkx.js.map} +1 -1
- package/dist/chunks/{package-jj91t0jr.js → package-1xq2edaj.js} +3 -3
- package/dist/chunks/{package-jj91t0jr.js.map → package-1xq2edaj.js.map} +1 -1
- package/dist/model.js +11 -7
- package/dist/model.js.map +3 -3
- package/dist/testing.js +1 -1
- package/dist/ui/{studio-app-ybpja4vs.js → studio-app-806251hx.js} +73 -73
- package/dist/ui/{studio-app-ybpja4vs.js.map → studio-app-806251hx.js.map} +9 -9
- package/dist/ui/{studio-app-299bc21a487d86a0917e18b15021a67ce1ff646a3f4410acbf468ae724eb7697.css → studio-app-aa4b5c43029f4bcf2634cf22ce709f38c4c3f3e76ce8536c02e34f69cf4070de.css} +30 -10
- package/dist/ui/studio-asset-manifest.json +21 -21
- package/dist/ui/studio-chunks/account-view-5phxhdkh.js +3 -0
- package/dist/ui/studio-chunks/{account-view-f6tx0x5d.js.map → account-view-5phxhdkh.js.map} +5 -5
- package/dist/ui/studio-chunks/{main-dc5jm272.js → main-0abemqev.js} +3 -3
- package/dist/ui/studio-chunks/{main-dc5jm272.js.map → main-0abemqev.js.map} +3 -3
- package/dist/ui/studio-chunks/main-6g5fzsxw.js +50 -0
- package/dist/ui/studio-chunks/main-6g5fzsxw.js.map +13 -0
- package/dist/ui/studio-chunks/main-93y3c3h0.js +9 -0
- package/dist/ui/studio-chunks/{main-8qf4xha3.js.map → main-93y3c3h0.js.map} +4 -4
- package/dist/ui/studio-chunks/main-s8zdvm8f.js +4 -0
- package/dist/ui/studio-chunks/{main-111gxvm4.js.map → main-s8zdvm8f.js.map} +6 -6
- package/dist/ui/studio-chunks/main-vxh48hfv.js +4 -0
- package/dist/ui/studio-chunks/{main-rp13zvyt.js.map → main-vxh48hfv.js.map} +3 -3
- package/dist/ui/studio-chunks/{studio-ask-panel-hx4f3mhj.js → studio-ask-panel-rabq6xrz.js} +1 -1
- package/dist/ui/studio-chunks/studio-chat-workspace-pra29908.js +3 -0
- package/dist/ui/studio-chunks/{studio-chat-workspace-5vyfd9dn.js.map → studio-chat-workspace-pra29908.js.map} +3 -3
- package/package.json +1 -1
- package/dist/ui/studio-chunks/account-view-f6tx0x5d.js +0 -3
- package/dist/ui/studio-chunks/main-111gxvm4.js +0 -4
- package/dist/ui/studio-chunks/main-8qf4xha3.js +0 -9
- package/dist/ui/studio-chunks/main-hmvrv50n.js +0 -50
- package/dist/ui/studio-chunks/main-hmvrv50n.js.map +0 -13
- package/dist/ui/studio-chunks/main-rp13zvyt.js +0 -4
- package/dist/ui/studio-chunks/studio-chat-workspace-5vyfd9dn.js +0 -3
- /package/dist/chunks/{app-x5ags7n8.js.map → app-8p354rxy.js.map} +0 -0
- /package/dist/chunks/{index-1xm2ws26.js.map → index-hhe7r0r5.js.map} +0 -0
- /package/dist/ui/studio-chunks/{studio-ask-panel-hx4f3mhj.js.map → studio-ask-panel-rabq6xrz.js.map} +0 -0
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
.x1b4vry6:not(#\#){padding:10px 0}
|
|
94
94
|
.x6yrr3s:not(#\#){padding:10px 12px}
|
|
95
95
|
.x17udgi5:not(#\#){padding:10px 24px 16px}
|
|
96
|
-
.x68fgpq:not(#\#){padding:12px 12px 4px}
|
|
97
96
|
.x1gqud3g:not(#\#){padding:12px 14px}
|
|
97
|
+
.xlcg3d7:not(#\#){padding:12px 16px 4px}
|
|
98
98
|
.xnohdxd:not(#\#){padding:12px 26px}
|
|
99
99
|
.xc7ga6q:not(#\#){padding:12px}
|
|
100
100
|
.xvethbn:not(#\#){padding:14px 0 16px}
|
|
@@ -303,14 +303,10 @@
|
|
|
303
303
|
.xliqn1l:hover:not(:disabled):not(#\#):not(#\#){border-color:var(--console-accent)}
|
|
304
304
|
.xt6kinr:focus-visible:not(#\#):not(#\#){border-color:var(--console-rule-strong)}
|
|
305
305
|
.xcdqty3:is([data-climate='instrument'] *):not(#\#):not(#\#){border-color:var(--console-text-muted)}
|
|
306
|
-
.xfwgxbp:focus-visible:not(#\#):not(#\#){outline:2px solid var(--console-accent-dim)}
|
|
307
|
-
.x16dl9wz:focus-visible:not(#\#):not(#\#){outline:2px solid var(--console-accent)}
|
|
308
306
|
.x1f1sp5:hover:not(:disabled):not(#\#):not(#\#){outline:none}
|
|
309
|
-
.xkwq7bf:has(:focus-visible):not(#\#):not(#\#){outline:2px solid var(--console-accent)}
|
|
310
307
|
.xk8na9e:only-child:not(#\#):not(#\#){grid-column:1 / -1}
|
|
311
308
|
.xcysz91:disabled:not(#\#):not(#\#){border-color:var(--console-rule-strong)}
|
|
312
309
|
.xck444f:user-invalid:not(#\#):not(#\#){border-color:var(--console-err)}
|
|
313
|
-
.x18395pr:user-invalid:not(#\#):not(#\#){outline:2px solid var(--console-err)}
|
|
314
310
|
.xt5ozwv:hover:not(#\#):not(#\#){border-color:color-mix(in srgb,var(--console-accent) 40%,transparent)}
|
|
315
311
|
.x8bwlc1:hover:not(#\#):not(#\#){border-color:var(--console-accent)}
|
|
316
312
|
.xu43hr4:hover:not(#\#):not(#\#){border-color:var(--console-err)}
|
|
@@ -324,6 +320,7 @@
|
|
|
324
320
|
@media (max-width: 640px){.xtu8bhz.xtu8bhz:not(#\#):not(#\#){border-style:solid}}
|
|
325
321
|
@media (max-width: 640px){.xwddm5z.xwddm5z:not(#\#):not(#\#){border-width:0}}
|
|
326
322
|
@media (max-width: 640px){.x1toygy1.x1toygy1:not(#\#):not(#\#){border-width:1px}}
|
|
323
|
+
@media (max-width: 640px){.x1ba37h5.x1ba37h5:not(#\#):not(#\#){flex:0 0 auto}}
|
|
327
324
|
@media (max-width: 640px){.xzzyo3b.xzzyo3b:not(#\#):not(#\#){gap:0}}
|
|
328
325
|
@media (max-width: 640px){.x1d3ddqg.x1d3ddqg:not(#\#):not(#\#){gap:10px}}
|
|
329
326
|
@media (min-width: 641px) and (max-width: 900px){.x1anjdel.x1anjdel:not(#\#):not(#\#){gap:10px}}
|
|
@@ -352,8 +349,12 @@
|
|
|
352
349
|
@media (max-width: 640px){.xfav3dj.xfav3dj:not(#\#):not(#\#){padding-block:20px}}
|
|
353
350
|
@media (max-width: 640px){.xn3xmfv.xn3xmfv:not(#\#):not(#\#){padding-inline:16px}}
|
|
354
351
|
@media (prefers-reduced-motion: reduce){.x9kvfbb.x9kvfbb:not(#\#):not(#\#){transition:none}}
|
|
352
|
+
@media (max-width: 640px){.x1dkdqs9.x1dkdqs9:is([data-view=editor]):not(#\#):not(#\#){flex:1}}
|
|
355
353
|
@media (prefers-reduced-motion: reduce){.x7iwzyl.x7iwzyl:hover:not(:disabled):not(#\#):not(#\#){outline:2px solid var(--console-on-accent)}}
|
|
356
354
|
@media (max-width: 640px){.x1sqw5yv.x1sqw5yv:is([data-studio-shell][data-view=editor] > *):not(#\#):not(#\#){overflow:hidden}}
|
|
355
|
+
@media (max-width: 640px){.xlpsox.xlpsox:has([data-operator-action-result]):not(#\#):not(#\#){border-color:var(--console-rule-strong)}}
|
|
356
|
+
@media (max-width: 640px){.xoco0x4.xoco0x4:has([data-operator-action-result]):not(#\#):not(#\#){border-style:solid}}
|
|
357
|
+
@media (max-width: 640px){.xb8kata.xb8kata:has([data-operator-action-result]):not(#\#):not(#\#){border-width:1px}}
|
|
357
358
|
@container (max-width: 720px){.x1h74ku2.x1h74ku2:not(#\#):not(#\#){gap:8px}}
|
|
358
359
|
.x1ua5tub:not(#\#):not(#\#):not(#\#){-webkit-box-orient:vertical}
|
|
359
360
|
.x1h7i4cw:not(#\#):not(#\#):not(#\#){-webkit-line-clamp:2}
|
|
@@ -713,6 +714,7 @@
|
|
|
713
714
|
.xcmh0xb:is(p *):not(#\#):not(#\#):not(#\#){font-family:var(--console-display)}
|
|
714
715
|
.x1l1zzp:is([data-inspector=hidden]):not(#\#):not(#\#):not(#\#){grid-template-columns:minmax(0,1fr)}
|
|
715
716
|
.x1k4xm7o:is([data-disabled]):not(#\#):not(#\#):not(#\#){opacity:.45}
|
|
717
|
+
.xvmehtz:focus-visible:not(#\#):not(#\#):not(#\#){outline-color:var(--console-accent-dim)}
|
|
716
718
|
.x1fujv60:focus-within:not(#\#):not(#\#):not(#\#){outline-color:var(--console-accent)}
|
|
717
719
|
.xxh1od1:focus-visible:not(#\#):not(#\#):not(#\#){outline-color:var(--console-accent)}
|
|
718
720
|
.x1bqaal:focus-visible:not(#\#):not(#\#):not(#\#){outline-offset:-2px}
|
|
@@ -728,6 +730,9 @@
|
|
|
728
730
|
.x1nlf60j:hover:not(:disabled):not(#\#):not(#\#):not(#\#){transform:translateY(-1px)}
|
|
729
731
|
.x6bw718:has(> aside > [data-collapsed="true"]):not(#\#):not(#\#):not(#\#){grid-template-columns:68px minmax(0,1fr)}
|
|
730
732
|
.x1lmsj1d:has(> [data-studio-image-panel]):not(#\#):not(#\#):not(#\#){grid-template-columns:minmax(0,1fr) clamp(300px,26vw,360px)}
|
|
733
|
+
.x1agf7fb:has(:focus-visible):not(#\#):not(#\#):not(#\#){outline-color:var(--console-accent)}
|
|
734
|
+
.xnnj0qo:has(:focus-visible):not(#\#):not(#\#):not(#\#){outline-style:solid}
|
|
735
|
+
.x1odlxkb:has(:focus-visible):not(#\#):not(#\#):not(#\#){outline-width:2px}
|
|
731
736
|
.xyt8a73:nth-child(even):not(#\#):not(#\#):not(#\#){background-color:color-mix(in srgb,var(--console-text) 3%,transparent)}
|
|
732
737
|
.x163vtw:disabled:not(#\#):not(#\#):not(#\#){background-color:var(--console-card-soft)}
|
|
733
738
|
.x1bi1fg1:disabled:not(#\#):not(#\#):not(#\#){color:var(--console-text-muted)}
|
|
@@ -742,6 +747,9 @@
|
|
|
742
747
|
.x2nylyj:placeholder-shown:not(#\#):not(#\#):not(#\#){font-style:italic}
|
|
743
748
|
.xxkzt7h:user-invalid:not(#\#):not(#\#):not(#\#){box-shadow:0 0 0 3px color-mix(in srgb,var(--console-err) 12%,transparent)}
|
|
744
749
|
.x10ve9f0:user-invalid:not(#\#):not(#\#):not(#\#){box-shadow:0 0 0 3px color-mix(in srgb,var(--console-err) 14%,transparent)}
|
|
750
|
+
.x1iau5pp:user-invalid:not(#\#):not(#\#):not(#\#){outline-color:var(--console-err)}
|
|
751
|
+
.x19ahsqg:user-invalid:not(#\#):not(#\#):not(#\#){outline-style:solid}
|
|
752
|
+
.xcpyg62:user-invalid:not(#\#):not(#\#):not(#\#){outline-width:2px}
|
|
745
753
|
.x1b36lsf:hover:not(#\#):not(#\#):not(#\#){background-color:color-mix(in srgb,var(--console-accent) 4%,var(--console-card))}
|
|
746
754
|
.xo6m4nm:hover:not(#\#):not(#\#):not(#\#){background-color:color-mix(in srgb,var(--console-err) 12%,transparent)}
|
|
747
755
|
.xuvuc2f:hover:not(#\#):not(#\#):not(#\#){background-color:var(--console-accent-soft)}
|
|
@@ -765,6 +773,7 @@
|
|
|
765
773
|
@media (max-width: 640px){.x1y8onsm.x1y8onsm:not(#\#):not(#\#):not(#\#){align-self:baseline}}
|
|
766
774
|
@media (prefers-reduced-motion: reduce){.x1aquc0h.x1aquc0h:not(#\#):not(#\#):not(#\#){animation-name:none}}
|
|
767
775
|
@media (max-width: 640px){.x1norit2.x1norit2:not(#\#):not(#\#):not(#\#){background-color:transparent}}
|
|
776
|
+
@media (max-width: 640px){.x1xv2l87.x1xv2l87:not(#\#):not(#\#):not(#\#){background-color:var(--console-card)}}
|
|
768
777
|
@media (max-width: 640px){.x12br0k5.x12br0k5:not(#\#):not(#\#):not(#\#){box-shadow:0 0 0 100vmax color-mix(in srgb,var(--console-text) 32%,transparent)}}
|
|
769
778
|
@media (max-width: 640px){.xlc8tcj.xlc8tcj:not(#\#):not(#\#):not(#\#){box-shadow:none}}
|
|
770
779
|
@media (max-width: 640px){.x5dg28r.x5dg28r:not(#\#):not(#\#):not(#\#){display:-webkit-box}}
|
|
@@ -780,7 +789,9 @@
|
|
|
780
789
|
@media (max-width: 640px){.xkaaz9w.xkaaz9w:not(#\#):not(#\#):not(#\#){display:none}}
|
|
781
790
|
@media (max-width: 900px){.xzd29fr.xzd29fr:not(#\#):not(#\#):not(#\#){display:none}}
|
|
782
791
|
@media (pointer: coarse) and (not (max-width: 640px)){.x15n0non.x15n0non:not(#\#):not(#\#):not(#\#){display:none}}
|
|
792
|
+
@media (max-width: 640px){.xfhngxr.xfhngxr:not(#\#):not(#\#):not(#\#){flex-basis:100%}}
|
|
783
793
|
@media (max-width: 640px){.x19d57q8.x19d57q8:not(#\#):not(#\#):not(#\#){flex-basis:400px}}
|
|
794
|
+
@media (max-width: 640px){.xf4m3r2.xf4m3r2:not(#\#):not(#\#):not(#\#){flex-wrap:nowrap}}
|
|
784
795
|
@media (max-width: 640px){.x162edmi.x162edmi:not(#\#):not(#\#):not(#\#){font-family:var(--console-mono)}}
|
|
785
796
|
@media (max-width: 640px){.xxgfmko.xxgfmko:not(#\#):not(#\#):not(#\#){font-size:10.5px}}
|
|
786
797
|
@media (max-width: 640px){.x1yzm3l3.x1yzm3l3:not(#\#):not(#\#):not(#\#){font-size:13px}}
|
|
@@ -811,6 +822,7 @@
|
|
|
811
822
|
@media (max-width: 640px){.x1s9bmkn.x1s9bmkn:not(#\#):not(#\#):not(#\#){justify-content:space-between}}
|
|
812
823
|
@media (max-width: 640px){.xa996tt.xa996tt:not(#\#):not(#\#):not(#\#){justify-content:start}}
|
|
813
824
|
@media (max-width: 640px){.x1re7oy7.x1re7oy7:not(#\#):not(#\#):not(#\#){justify-self:start}}
|
|
825
|
+
@media (max-width: 640px){.xf9p01c.xf9p01c:not(#\#):not(#\#):not(#\#){justify-self:stretch}}
|
|
814
826
|
@media (max-width: 640px){.xc3hpf1.xc3hpf1:not(#\#):not(#\#):not(#\#){letter-spacing:-0.01em}}
|
|
815
827
|
@media (max-width: 640px){.x1tvf21l.x1tvf21l:not(#\#):not(#\#):not(#\#){line-height:1.2}}
|
|
816
828
|
@media (max-width: 640px){.x1qp586l.x1qp586l:not(#\#):not(#\#):not(#\#){line-height:1.35}}
|
|
@@ -819,17 +831,17 @@
|
|
|
819
831
|
@media (max-width: 640px){.x12u6v07.x12u6v07:not(#\#):not(#\#):not(#\#){position:fixed}}
|
|
820
832
|
@media (max-width: 900px){.x1p63ail.x1p63ail:not(#\#):not(#\#):not(#\#){position:fixed}}
|
|
821
833
|
@media (max-width: 640px){.xip7ul3.xip7ul3:not(#\#):not(#\#):not(#\#){position:static}}
|
|
822
|
-
@media (max-width: 900px){.
|
|
834
|
+
@media (min-width: 640.01px) and (max-width: 900px){.xsy84hr.xsy84hr:not(#\#):not(#\#):not(#\#){position:static}}
|
|
823
835
|
@media (max-width: 640px){.x71uzt7.x71uzt7:not(#\#):not(#\#):not(#\#){position:sticky}}
|
|
824
836
|
@media (max-width: 640px){.x1mji7za.x1mji7za:not(#\#):not(#\#):not(#\#){transform:none}}
|
|
825
837
|
@media (prefers-reduced-motion: reduce){.x4wkmsb.x4wkmsb:not(#\#):not(#\#):not(#\#){transition-property:none}}
|
|
826
838
|
@media (max-width: 640px){.x1u2u1qb.x1u2u1qb:not(#\#):not(#\#):not(#\#){z-index:60}}
|
|
827
839
|
@media (max-width: 900px){.xtpxkyd.xtpxkyd:not(#\#):not(#\#):not(#\#){z-index:60}}
|
|
840
|
+
@media (max-width: 640px){.x1lp9gga.x1lp9gga:is([open]):not(#\#):not(#\#):not(#\#){display:contents}}
|
|
828
841
|
@media (max-width: 640px){.x1806iup.x1806iup:is([data-studio-split] *):not(#\#):not(#\#):not(#\#){display:none}}
|
|
829
842
|
@media (max-width: 640px){.x1idufoc.x1idufoc:is([data-studio-editor][data-mobile-pane=preview] > *):not(#\#):not(#\#):not(#\#){display:none}}
|
|
830
843
|
@media (max-width: 640px){.x1tugbw3.x1tugbw3:is([data-studio-editor][data-mobile-pane=write] > *):not(#\#):not(#\#):not(#\#){display:none}}
|
|
831
844
|
@media (max-width: 640px){.xbuh8fq.xbuh8fq:is([data-studio-save-bar]:has(> [data-studio-status]) > *):not(#\#):not(#\#):not(#\#){display:none}}
|
|
832
|
-
@media (max-width: 640px){.xw6tuai.xw6tuai:is([open]):not(#\#):not(#\#):not(#\#){flex-basis:100%}}
|
|
833
845
|
@media (max-width: 640px){.x8mpkbv.x8mpkbv:is([data-studio-shell][data-view=editor] > *):not(#\#):not(#\#):not(#\#){grid-template-rows:minmax(0,1fr)}}
|
|
834
846
|
@media (prefers-reduced-motion: reduce){.x6wgdar.x6wgdar:hover:not(:disabled):not(#\#):not(#\#):not(#\#){transform:none}}
|
|
835
847
|
@media (max-width: 640px){.x170sw7g.x170sw7g:has([data-operator-action-result]):not(#\#):not(#\#):not(#\#){background-color:color-mix(in srgb,var(--console-card) 96%,transparent)}}
|
|
@@ -1089,10 +1101,12 @@
|
|
|
1089
1101
|
@media (max-width: 640px){.x703316.x703316:not(#\#):not(#\#):not(#\#):not(#\#){margin-left:0}}
|
|
1090
1102
|
@media (max-width: 640px){.x7xdyrl.x7xdyrl:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:10px}}
|
|
1091
1103
|
@media (max-width: 640px){.xg0897w.xg0897w:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:24px}}
|
|
1104
|
+
@media (max-width: 640px){.xzp9ylj.xzp9ylj:not(#\#):not(#\#):not(#\#):not(#\#){max-height:40dvh}}
|
|
1092
1105
|
@media (max-width: 640px){.x13cfglm.x13cfglm:not(#\#):not(#\#):not(#\#):not(#\#){max-height:85dvh}}
|
|
1093
1106
|
@media (max-width: 640px){.xxnk3sr.xxnk3sr:not(#\#):not(#\#):not(#\#):not(#\#){max-height:min(88dvh,760px)}}
|
|
1094
1107
|
@media (max-width: 640px){.xeyi6kz.xeyi6kz:not(#\#):not(#\#):not(#\#):not(#\#){max-width:none}}
|
|
1095
1108
|
@media (max-width: 640px){.x1qm741w.x1qm741w:not(#\#):not(#\#):not(#\#):not(#\#){min-height:0}}
|
|
1109
|
+
@media (max-width: 640px){.x19xbvgk.x19xbvgk:not(#\#):not(#\#):not(#\#):not(#\#){min-height:100dvh}}
|
|
1096
1110
|
@media (max-width: 640px){.x1f8pdon.x1f8pdon:not(#\#):not(#\#):not(#\#):not(#\#){min-height:400px}}
|
|
1097
1111
|
@media (max-width: 640px){.x18kkpoz.x18kkpoz:not(#\#):not(#\#):not(#\#):not(#\#){min-height:40px}}
|
|
1098
1112
|
@media (max-width: 640px){.x1c4ya5t.x1c4ya5t:not(#\#):not(#\#):not(#\#):not(#\#){min-height:44px}}
|
|
@@ -1103,6 +1117,7 @@
|
|
|
1103
1117
|
@media (max-width: 640px){.x1w9335.x1w9335:not(#\#):not(#\#):not(#\#):not(#\#){min-width:0}}
|
|
1104
1118
|
@media (max-width: 640px){.x1wkdlc4.x1wkdlc4:not(#\#):not(#\#):not(#\#):not(#\#){min-width:44px}}
|
|
1105
1119
|
@media (max-width: 640px){.x160ygfx.x160ygfx:not(#\#):not(#\#):not(#\#):not(#\#){min-width:var(--console-touch)}}
|
|
1120
|
+
@media (max-width: 640px){.xal9krd.xal9krd:not(#\#):not(#\#):not(#\#):not(#\#){overflow-x:auto}}
|
|
1106
1121
|
@media (max-width: 640px){.xscgqpg.xscgqpg:not(#\#):not(#\#):not(#\#):not(#\#){overflow-y:auto}}
|
|
1107
1122
|
@media (min-width: 901px){.xx1slpc.xx1slpc:not(#\#):not(#\#):not(#\#):not(#\#){overflow-y:auto}}
|
|
1108
1123
|
@media (max-width: 640px){.x9uj0fw.x9uj0fw:not(#\#):not(#\#):not(#\#):not(#\#){overflow-y:hidden}}
|
|
@@ -1138,6 +1153,7 @@
|
|
|
1138
1153
|
@media (max-width: 640px){.xzy26m8.xzy26m8:not(#\#):not(#\#):not(#\#):not(#\#){width:44px}}
|
|
1139
1154
|
@media (min-width: 901px){.xxydkhx.xxydkhx:not(#\#):not(#\#):not(#\#):not(#\#){width:clamp(16px,3vw,40px)}}
|
|
1140
1155
|
@media (max-width: 640px){.x10u9qov.x10u9qov:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--console-touch)}}
|
|
1156
|
+
@media (max-width: 640px){.xfc1thu.xfc1thu:is([data-view=editor]):not(#\#):not(#\#):not(#\#):not(#\#){min-height:0}}
|
|
1141
1157
|
@media (max-width: 640px){.xokao6x.xokao6x:is([data-studio-field-assist] *):not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:9px}}
|
|
1142
1158
|
@media (max-width: 640px){.x1pyp8la.x1pyp8la:has([data-operator-action-result]):not(#\#):not(#\#):not(#\#):not(#\#){max-height:calc(100dvh - 124px)}}
|
|
1143
1159
|
@media (max-width: 640px){.xfl54mv.xfl54mv:has([data-operator-action-result]):not(#\#):not(#\#):not(#\#):not(#\#){overflow-y:auto}}
|
|
@@ -1243,6 +1259,7 @@
|
|
|
1243
1259
|
@media (max-width: 720px){.x1yemgb7.x1yemgb7:not(#\#){margin:0}}
|
|
1244
1260
|
@media (max-width: 640px){.x1xnq73d.x1xnq73d:not(#\#){padding:0 10px}}
|
|
1245
1261
|
@media (max-width: 720px){.xe3jge6.xe3jge6:not(#\#){padding:0 10px}}
|
|
1262
|
+
@media (max-width: 640px){.x1bf66pj.x1bf66pj:not(#\#){padding:0}}
|
|
1246
1263
|
@media (max-width: 900px){.xb1114b.xb1114b:not(#\#){padding:0}}
|
|
1247
1264
|
@media (max-width: 640px){.xfc0hut.xfc0hut:not(#\#){padding:12px 0 40px}}
|
|
1248
1265
|
@media (max-width: 640px){.xg8tid0.xg8tid0:not(#\#){padding:12px 14px 0}}
|
|
@@ -1398,6 +1415,7 @@
|
|
|
1398
1415
|
@media (max-width: 640px){.x17i0p7j.x17i0p7j:not(#\#):not(#\#){border-radius:0}}
|
|
1399
1416
|
@media (min-width: 641px){.xsucau6.xsucau6:not(#\#):not(#\#){border-radius:8px}}
|
|
1400
1417
|
@media (max-width: 640px){.x1olvxk8.x1olvxk8:not(#\#):not(#\#){border-radius:9px}}
|
|
1418
|
+
@media (max-width: 640px){.xwddm5z.xwddm5z:not(#\#):not(#\#){border-width:0}}
|
|
1401
1419
|
@media (max-width: 640px){.x1d3ddqg.x1d3ddqg:not(#\#):not(#\#){gap:10px}}
|
|
1402
1420
|
@media (max-width: 720px){.x1n3jums.x1n3jums:not(#\#):not(#\#){gap:10px}}
|
|
1403
1421
|
@media (max-width: 900px){.x13osz58.x13osz58:not(#\#):not(#\#){gap:12px 24px}}
|
|
@@ -1438,6 +1456,7 @@
|
|
|
1438
1456
|
.xvmahel:not(#\#):not(#\#):not(#\#){-webkit-font-smoothing:antialiased}
|
|
1439
1457
|
.x1h7i4cw:not(#\#):not(#\#):not(#\#){-webkit-line-clamp:2}
|
|
1440
1458
|
.x1q9s9ta:not(#\#):not(#\#):not(#\#){accent-color:var(--console-accent)}
|
|
1459
|
+
.xc26acl:not(#\#):not(#\#):not(#\#){align-content:center}
|
|
1441
1460
|
.x10ukxgv:not(#\#):not(#\#):not(#\#){align-content:start}
|
|
1442
1461
|
.x1pha0wt:not(#\#):not(#\#):not(#\#){align-items:baseline}
|
|
1443
1462
|
.x6s0dn4:not(#\#):not(#\#):not(#\#){align-items:center}
|
|
@@ -1551,6 +1570,7 @@
|
|
|
1551
1570
|
.x1ypdohk:not(#\#):not(#\#):not(#\#){cursor:pointer}
|
|
1552
1571
|
.x104kibb:not(#\#):not(#\#):not(#\#){display:-webkit-box}
|
|
1553
1572
|
.x1lliihq:not(#\#):not(#\#):not(#\#){display:block}
|
|
1573
|
+
.xjp7ctv:not(#\#):not(#\#):not(#\#){display:contents}
|
|
1554
1574
|
.x78zum5:not(#\#):not(#\#):not(#\#){display:flex}
|
|
1555
1575
|
.xrvj5dj:not(#\#):not(#\#):not(#\#){display:grid}
|
|
1556
1576
|
.x1rg5ohu:not(#\#):not(#\#):not(#\#){display:inline-block}
|
|
@@ -1559,6 +1579,7 @@
|
|
|
1559
1579
|
.xtcx8v3:not(#\#):not(#\#):not(#\#){display:list-item}
|
|
1560
1580
|
.x1s85apg:not(#\#):not(#\#):not(#\#){display:none}
|
|
1561
1581
|
.xf5m44m:not(#\#):not(#\#):not(#\#){display:table-row}
|
|
1582
|
+
.x1jn7h4n:not(#\#):not(#\#):not(#\#){fill:color-mix(in srgb,var(--console-accent) 22%,transparent)}
|
|
1562
1583
|
.x63ly0w:not(#\#):not(#\#):not(#\#){fill:color-mix(in srgb,var(--console-accent) 5%,transparent)}
|
|
1563
1584
|
.x1rw6qo9:not(#\#):not(#\#):not(#\#){fill:color-mix(in srgb,var(--console-accent) 72%,transparent)}
|
|
1564
1585
|
.x6p09lz:not(#\#):not(#\#):not(#\#){fill:color-mix(in srgb,var(--console-secondary) 2.5%,transparent)}
|
|
@@ -1566,7 +1587,6 @@
|
|
|
1566
1587
|
.x1sgapc2:not(#\#):not(#\#):not(#\#){fill:color-mix(in srgb,var(--console-secondary) 6%,transparent)}
|
|
1567
1588
|
.xbh8q5q:not(#\#):not(#\#):not(#\#){fill:none}
|
|
1568
1589
|
.xy6m8k3:not(#\#):not(#\#):not(#\#){fill:transparent}
|
|
1569
|
-
.xgeoyvb:not(#\#):not(#\#):not(#\#){fill:var(--console-accent-soft)}
|
|
1570
1590
|
.x8eu9n:not(#\#):not(#\#):not(#\#){fill:var(--console-accent)}
|
|
1571
1591
|
.xp8jjoe:not(#\#):not(#\#):not(#\#){fill:var(--console-err)}
|
|
1572
1592
|
.x1s7eawt:not(#\#):not(#\#):not(#\#){fill:var(--console-ok)}
|
|
@@ -1963,6 +1983,7 @@
|
|
|
1963
1983
|
@media (max-width: 720px){.x1943nhg.x1943nhg:not(#\#):not(#\#):not(#\#){align-items:stretch}}
|
|
1964
1984
|
@media (max-width: 640px){.x1ryrld4.x1ryrld4:not(#\#):not(#\#):not(#\#){align-self:start}}
|
|
1965
1985
|
@media (prefers-reduced-motion: reduce){.x1aquc0h.x1aquc0h:not(#\#):not(#\#):not(#\#){animation-name:none}}
|
|
1986
|
+
@media (max-width: 640px){.x1norit2.x1norit2:not(#\#):not(#\#):not(#\#){background-color:transparent}}
|
|
1966
1987
|
@media (min-width: 641px){.xkktd5z.xkktd5z:not(#\#):not(#\#):not(#\#){background-color:var(--console-accent-soft)}}
|
|
1967
1988
|
@media (max-width: 640px){.xlc8tcj.xlc8tcj:not(#\#):not(#\#):not(#\#){box-shadow:none}}
|
|
1968
1989
|
@media (max-width: 720px){.x1uno8h5.x1uno8h5:not(#\#):not(#\#):not(#\#){clip-path:inset(50%)}}
|
|
@@ -2102,11 +2123,9 @@
|
|
|
2102
2123
|
.xs1s249:not(#\#):not(#\#):not(#\#):not(#\#){border-right-width:1px}
|
|
2103
2124
|
.xltl5i9:not(#\#):not(#\#):not(#\#):not(#\#){border-top-color:var(--console-rule-strong)}
|
|
2104
2125
|
.xvg7k2t:not(#\#):not(#\#):not(#\#):not(#\#){border-top-color:var(--console-rule)}
|
|
2105
|
-
.x172wxxo:not(#\#):not(#\#):not(#\#):not(#\#){border-top-color:var(--console-text-muted)}
|
|
2106
2126
|
.x13fuv20:not(#\#):not(#\#):not(#\#):not(#\#){border-top-style:solid}
|
|
2107
2127
|
.x972fbf:not(#\#):not(#\#):not(#\#):not(#\#){border-top-width:0}
|
|
2108
2128
|
.x178xt8z:not(#\#):not(#\#):not(#\#):not(#\#){border-top-width:1px}
|
|
2109
|
-
.xamhcws:not(#\#):not(#\#):not(#\#):not(#\#){border-top-width:2px}
|
|
2110
2129
|
.x1ey2m1c:not(#\#):not(#\#):not(#\#):not(#\#){bottom:0}
|
|
2111
2130
|
.xrb244j:not(#\#):not(#\#):not(#\#):not(#\#){bottom:6px}
|
|
2112
2131
|
.x5yr21d:not(#\#):not(#\#):not(#\#):not(#\#){height:100%}
|
|
@@ -2281,6 +2300,7 @@
|
|
|
2281
2300
|
.xoy5xpq:is([data-tone="error"]):not(#\#):not(#\#):not(#\#):not(#\#){border-top-color:var(--console-err)}
|
|
2282
2301
|
.xvw7cn:is([data-tone="good"]):not(#\#):not(#\#):not(#\#):not(#\#){border-top-color:var(--console-ok)}
|
|
2283
2302
|
.x1qaj2f5:is([data-tone="warn"]):not(#\#):not(#\#):not(#\#):not(#\#){border-top-color:var(--console-warn)}
|
|
2303
|
+
.x7nfcnm:is([data-tone="good"], [data-tone="warn"], [data-tone="error"]):not(#\#):not(#\#):not(#\#):not(#\#){border-top-width:2px}
|
|
2284
2304
|
.xxfsjeb:is(details[open] > summary):not(#\#):not(#\#):not(#\#):not(#\#){margin-bottom:14px}
|
|
2285
2305
|
.x15m6qhz:is([open]):not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:16px}
|
|
2286
2306
|
.x1s4zo15:not(:last-child):not(#\#):not(#\#):not(#\#):not(#\#){padding-right:40px}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 2,
|
|
3
3
|
"entrypoints": {
|
|
4
|
-
"script": "studio-app-
|
|
5
|
-
"stylesheet": "studio-app-
|
|
4
|
+
"script": "studio-app-806251hx.js",
|
|
5
|
+
"stylesheet": "studio-app-aa4b5c43029f4bcf2634cf22ce709f38c4c3f3e76ce8536c02e34f69cf4070de.css"
|
|
6
6
|
},
|
|
7
7
|
"assets": {
|
|
8
|
-
"studio-app-
|
|
9
|
-
"studio-app-
|
|
10
|
-
"studio-app-
|
|
11
|
-
"studio-chunks/account-view-
|
|
12
|
-
"studio-chunks/account-view-
|
|
8
|
+
"studio-app-806251hx.js": "studio-app-806251hx.js",
|
|
9
|
+
"studio-app-806251hx.js.map": "studio-app-806251hx.js.map",
|
|
10
|
+
"studio-app-aa4b5c43029f4bcf2634cf22ce709f38c4c3f3e76ce8536c02e34f69cf4070de.css": "studio-app-aa4b5c43029f4bcf2634cf22ce709f38c4c3f3e76ce8536c02e34f69cf4070de.css",
|
|
11
|
+
"studio-chunks/account-view-5phxhdkh.js": "studio-chunks/account-view-5phxhdkh.js",
|
|
12
|
+
"studio-chunks/account-view-5phxhdkh.js.map": "studio-chunks/account-view-5phxhdkh.js.map",
|
|
13
13
|
"studio-chunks/chat-s0yera16.js": "studio-chunks/chat-s0yera16.js",
|
|
14
14
|
"studio-chunks/chat-s0yera16.js.map": "studio-chunks/chat-s0yera16.js.map",
|
|
15
15
|
"studio-chunks/highlighted-body-OFNGDK62-wn7n0rqa.js": "studio-chunks/highlighted-body-OFNGDK62-wn7n0rqa.js",
|
|
16
16
|
"studio-chunks/highlighted-body-OFNGDK62-wn7n0rqa.js.map": "studio-chunks/highlighted-body-OFNGDK62-wn7n0rqa.js.map",
|
|
17
|
-
"studio-chunks/main-
|
|
18
|
-
"studio-chunks/main-
|
|
17
|
+
"studio-chunks/main-0abemqev.js": "studio-chunks/main-0abemqev.js",
|
|
18
|
+
"studio-chunks/main-0abemqev.js.map": "studio-chunks/main-0abemqev.js.map",
|
|
19
|
+
"studio-chunks/main-6g5fzsxw.js": "studio-chunks/main-6g5fzsxw.js",
|
|
20
|
+
"studio-chunks/main-6g5fzsxw.js.map": "studio-chunks/main-6g5fzsxw.js.map",
|
|
19
21
|
"studio-chunks/main-6yryh0rt.js": "studio-chunks/main-6yryh0rt.js",
|
|
20
22
|
"studio-chunks/main-6yryh0rt.js.map": "studio-chunks/main-6yryh0rt.js.map",
|
|
21
23
|
"studio-chunks/main-89b8p8rm.js": "studio-chunks/main-89b8p8rm.js",
|
|
22
24
|
"studio-chunks/main-89b8p8rm.js.map": "studio-chunks/main-89b8p8rm.js.map",
|
|
23
|
-
"studio-chunks/main-
|
|
24
|
-
"studio-chunks/main-
|
|
25
|
-
"studio-chunks/main-dc5jm272.js": "studio-chunks/main-dc5jm272.js",
|
|
26
|
-
"studio-chunks/main-dc5jm272.js.map": "studio-chunks/main-dc5jm272.js.map",
|
|
27
|
-
"studio-chunks/main-hmvrv50n.js": "studio-chunks/main-hmvrv50n.js",
|
|
28
|
-
"studio-chunks/main-hmvrv50n.js.map": "studio-chunks/main-hmvrv50n.js.map",
|
|
25
|
+
"studio-chunks/main-93y3c3h0.js": "studio-chunks/main-93y3c3h0.js",
|
|
26
|
+
"studio-chunks/main-93y3c3h0.js.map": "studio-chunks/main-93y3c3h0.js.map",
|
|
29
27
|
"studio-chunks/main-m58e7aqv.js": "studio-chunks/main-m58e7aqv.js",
|
|
30
28
|
"studio-chunks/main-m58e7aqv.js.map": "studio-chunks/main-m58e7aqv.js.map",
|
|
31
29
|
"studio-chunks/main-n6x2vadq.js": "studio-chunks/main-n6x2vadq.js",
|
|
32
30
|
"studio-chunks/main-n6x2vadq.js.map": "studio-chunks/main-n6x2vadq.js.map",
|
|
33
|
-
"studio-chunks/main-
|
|
34
|
-
"studio-chunks/main-
|
|
31
|
+
"studio-chunks/main-s8zdvm8f.js": "studio-chunks/main-s8zdvm8f.js",
|
|
32
|
+
"studio-chunks/main-s8zdvm8f.js.map": "studio-chunks/main-s8zdvm8f.js.map",
|
|
33
|
+
"studio-chunks/main-vxh48hfv.js": "studio-chunks/main-vxh48hfv.js",
|
|
34
|
+
"studio-chunks/main-vxh48hfv.js.map": "studio-chunks/main-vxh48hfv.js.map",
|
|
35
35
|
"studio-chunks/main-vxr86e8f.js": "studio-chunks/main-vxr86e8f.js",
|
|
36
36
|
"studio-chunks/main-vxr86e8f.js.map": "studio-chunks/main-vxr86e8f.js.map",
|
|
37
37
|
"studio-chunks/main-z0d44bts.js": "studio-chunks/main-z0d44bts.js",
|
|
38
38
|
"studio-chunks/main-z0d44bts.js.map": "studio-chunks/main-z0d44bts.js.map",
|
|
39
39
|
"studio-chunks/mermaid-GHXKKRXX-8rge0avg.js": "studio-chunks/mermaid-GHXKKRXX-8rge0avg.js",
|
|
40
40
|
"studio-chunks/mermaid-GHXKKRXX-8rge0avg.js.map": "studio-chunks/mermaid-GHXKKRXX-8rge0avg.js.map",
|
|
41
|
-
"studio-chunks/studio-ask-panel-
|
|
42
|
-
"studio-chunks/studio-ask-panel-
|
|
43
|
-
"studio-chunks/studio-chat-workspace-
|
|
44
|
-
"studio-chunks/studio-chat-workspace-
|
|
41
|
+
"studio-chunks/studio-ask-panel-rabq6xrz.js": "studio-chunks/studio-ask-panel-rabq6xrz.js",
|
|
42
|
+
"studio-chunks/studio-ask-panel-rabq6xrz.js.map": "studio-chunks/studio-ask-panel-rabq6xrz.js.map",
|
|
43
|
+
"studio-chunks/studio-chat-workspace-pra29908.js": "studio-chunks/studio-chat-workspace-pra29908.js",
|
|
44
|
+
"studio-chunks/studio-chat-workspace-pra29908.js.map": "studio-chunks/studio-chat-workspace-pra29908.js.map"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{Eb as c,Fb as o,Gb as d,Ib as me,Jb as $e,Kb as Me,Lb as Le,Mb as ve,Ob as we}from"./main-6g5fzsxw.js";import{Rb as Ve,Vb as ze,Wb as Je}from"./main-vxh48hfv.js";import{Cc as ke,Gc as X,Hc as A,Ic as je,Nc as H,Oc as F,_b as x,ac as y,bc as J,dd as Ce,ec as te,kc as He,ld as qe,mc as Ke,md as ee,nc as Ye,oc as M,pc as L}from"./main-z0d44bts.js";import{Nd as i}from"./main-6yryh0rt.js";import{Ze as ne}from"./main-m58e7aqv.js";import{Ff as b}from"./main-vxr86e8f.js";var K=b(ne(),1);var We=i.object({displayName:i.string(),role:i.enum(["admin","trusted","public"]),profileEntityId:i.string().optional(),passkeys:i.array(i.object({id:i.string(),transports:i.array(i.string()).optional(),credentialDeviceType:i.string().optional(),credentialBackedUp:i.boolean(),createdAt:i.number(),updatedAt:i.number()})),appPasswords:i.array(i.object({id:i.string(),username:i.string(),label:i.string(),access:i.enum(["read","write"]),createdAt:i.number(),expiresAt:i.number(),lastUsedAt:i.number().optional()})),connectedChannels:i.array(i.object({type:i.string(),label:i.string(),verifiedAt:i.number()})),pluginSettings:i.array(i.object({id:i.string(),title:i.string(),description:i.string().optional(),configured:i.boolean(),revision:i.number().nullable(),fields:i.array(i.object({name:i.string(),label:i.string(),control:i.enum(["text","url","number","checkbox"]),secret:i.boolean(),required:i.boolean(),value:i.union([i.string(),i.number(),i.boolean(),i.null()]).optional(),set:i.boolean().optional()}))})),sessions:i.array(i.object({id:i.string(),current:i.boolean(),createdAt:i.number(),expiresAt:i.number()}))});function Ge(e){return We.safeParse(e).success}var ge=i.custom(Ge,{message:"Invalid account response"}),ie=i.object({account:ge}),Ze=i.object({account:ge.optional(),appPassword:i.object({username:i.string(),password:i.string()}).optional(),revoked:i.object({sessions:i.number(),refreshTokens:i.number().optional()}).optional(),signedOut:i.boolean().optional()});function Qe(e){return Ze.safeParse(e).success}var Xe=i.custom(Qe,{message:"Invalid account mutation response"}),et=i.custom((e)=>{if(!X(e))return!1;return typeof e.challenge==="string"&&X(e.rp)&&X(e.user)&&Array.isArray(e.pubKeyCredParams)},{message:"Invalid passkey registration options"});class he extends Error{status;constructor(e,t){super(e);this.name="AccountApiError",this.status=t}}async function V(e,t){let n;try{n=await e.json()}catch{n={}}if(!e.ok){let a=typeof n==="object"&&n!==null&&"error"in n&&typeof n.error==="string"?n.error:"Account request failed";throw new he(a,e.status)}return t.parse(n)}function se(e){let t=e.replaceAll("-","+").replaceAll("_","/").padEnd(Math.ceil(e.length/4)*4,"=");return Uint8Array.from(atob(t),(n)=>n.charCodeAt(0)).buffer}function re(e){let t=new Uint8Array(e),n="";for(let a of t)n+=String.fromCharCode(a);return btoa(n).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function tt(e){return{challenge:se(e.challenge),rp:e.rp,user:{...e.user,id:se(e.user.id)},pubKeyCredParams:e.pubKeyCredParams,...e.timeout!==void 0?{timeout:e.timeout}:{},...e.excludeCredentials?{excludeCredentials:e.excludeCredentials.map((t)=>({...t,id:se(t.id)}))}:{},...e.authenticatorSelection?{authenticatorSelection:e.authenticatorSelection}:{},...e.attestation?{attestation:e.attestation}:{},...e.extensions?{extensions:e.extensions}:{}}}var nt=(e,t)=>fetch(e,t);class ce{fetchFn;constructor(e={}){this.fetchFn=e.fetch??nt}async fetchAccount(){return(await V(await this.fetchFn("/auth/account",{credentials:"same-origin",cache:"no-store"}),ie)).account}async mutatePluginSettings(e){return(await V(await this.fetchFn("/auth/account/plugin-settings",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),ie)).account}async mutateAccount(e){return V(await this.fetchFn("/auth/account/mutations",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),Xe)}async registerPasskey(){let e=await V(await this.fetchFn("/auth/account/passkeys/options",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:"{}"}),et),t=await navigator.credentials.create({publicKey:tt(e)});if(!(t instanceof PublicKeyCredential))throw Error("Passkey registration was cancelled");if(!(t.response instanceof AuthenticatorAttestationResponse))throw Error("Authenticator returned an invalid passkey response");let n=t.response,a={id:t.id,rawId:re(t.rawId),type:t.type,...t.authenticatorAttachment?{authenticatorAttachment:t.authenticatorAttachment}:{},clientExtensionResults:t.getClientExtensionResults(),response:{clientDataJSON:re(n.clientDataJSON),attestationObject:re(n.attestationObject),transports:typeof n.getTransports==="function"?n.getTransports():[]}};return(await V(await this.fetchFn("/auth/account/passkeys/verify",{method:"POST",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)}),ie.extend({verified:i.literal(!0)}))).account}}function ye(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map((t)=>t.slice(0,1).toUpperCase()).join("")}function Ae(e,t){let n=t.indexOf("/");if(n<=0||n===t.length-1)return;let a=t.slice(0,n),s=t.slice(n+1);return`${e==="/"?"":e.replace(/\/+$/,"")}/entities/${encodeURIComponent(a)}/${encodeURIComponent(s)}`}function j(e,t=!1){return new Date(t?e:e*1000).toISOString()}var R=b(x(),1);function z(e){return R.jsxDEV(y,{variant:e.tone==="danger"?"danger":e.tone==="primary"?"primary":"outline",type:e.type??"button",onClick:e.onClick,disabled:e.disabled,children:e.children},void 0,!1,void 0,this)}function U(e){return R.jsxDEV("div",{className:o("account-access-item",c.access),children:[R.jsxDEV(ve,{density:"comfortable",title:e.kind,description:e.description,metadata:e.metadata??[]},void 0,!1,void 0,this),e.action]},void 0,!0,void 0,this)}function C(e){return R.jsxDEV("section",{className:o("account-detail-section",c.section),children:[R.jsxDEV("div",{className:"account-section-label",children:[R.jsxDEV("h3",{className:o("",c.heading,ee.section,e.titleHidden===!0&&c.headingHidden),children:e.title},void 0,!1,void 0,this),e.description?R.jsxDEV("p",{className:o("",c.description),children:e.description},void 0,!1,void 0,this):null]},void 0,!0,void 0,this),R.jsxDEV("div",{className:o("people-stack",c.stack),children:e.children},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function be(e,t){let n=Object.fromEntries(t.entries());for(let a of e)if(a.control==="checkbox")n[a.name]=t.has(a.name);else if(a.control==="number"&&typeof n[a.name]==="string"&&n[a.name]!=="")n[a.name]=Number(n[a.name]);return n}function Se(e){if(e.secret)return"password";if(e.control==="url"||e.control==="number")return e.control;return"text"}var r=b(x(),1);function Ne(e){let{account:t,actions:n,title:a,studioPath:s}=e,g=t.role,h=t.profileEntityId?Ae(s,t.profileEntityId):void 0;return r.jsxDEV(r.Fragment,{children:[r.jsxDEV(C,{title:"Profile",titleHidden:!0,children:[r.jsxDEV("div",{className:o("account-identity",c.identity),children:r.jsxDEV("div",{className:o("people-detail-person",c.person),children:[r.jsxDEV("span",{className:o("people-avatar people-avatar--large",c.avatar),children:ye(a)},void 0,!1,void 0,this),r.jsxDEV("span",{className:o("",c.personCopy),children:[r.jsxDEV("span",{className:o("people-detail-name",c.name,ee.secondaryDisplay),children:a},void 0,!1,void 0,this),r.jsxDEV("span",{"data-account-role":g,className:o("account-role",c.role),children:ke(g)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),t.profileEntityId?r.jsxDEV(r.Fragment,{children:[r.jsxDEV("p",{className:o("account-profile-note",c.description),children:"Managed by the Anchor profile — your account name follows the published profile."},void 0,!1,void 0,this),r.jsxDEV(U,{kind:"Anchor profile",description:a,action:h?r.jsxDEV(y,{asChild:!0,variant:"link",children:r.jsxDEV("a",{href:h,children:"Edit Anchor Profile →"},void 0,!1,void 0,this)},void 0,!1,void 0,this):void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this):r.jsxDEV("form",{className:o("name-form",c.form),onSubmit:(O)=>{O.preventDefault(),n.saveName()},children:[r.jsxDEV("label",{className:o("",c.formLabel),htmlFor:"display-name",children:"Display name"},void 0,!1,void 0,this),r.jsxDEV(J,{id:"display-name",maxLength:200,autoComplete:"name",required:!0,value:n.displayName,onChange:(O)=>n.setDisplayName(O.target.value)},void 0,!1,void 0,this),r.jsxDEV(z,{type:"submit",disabled:n.busy,children:"Save name"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),r.jsxDEV("p",{className:o("",c.description),children:"Your role controls access to this brain. An administrator manages access in Administration."},void 0,!1,void 0,this),g==="admin"&&r.jsxDEV(y,{asChild:!0,variant:"outline",children:r.jsxDEV("a",{href:Ce(s,"admin:administration"),children:"Manage people in Administration →"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Te(e){let t=e.account.connectedChannels;return r.jsxDEV(C,{title:"Linked identities",titleHidden:!0,description:"How this brain recognizes messages from you. These are your identities, not services configured for the whole brain.",children:t.length===0?r.jsxDEV("p",{className:o("people-empty",c.empty),children:"No linked identities."},void 0,!1,void 0,this):t.map((n)=>r.jsxDEV(U,{kind:n.type,description:n.label,metadata:[`Verified: ${j(n.verifiedAt,!0)}`]},`${n.type}:${n.label}`,!1,void 0,this))},void 0,!1,void 0,this)}function Pe(e){let{account:t,actions:n}=e;return r.jsxDEV(r.Fragment,{children:[r.jsxDEV("p",{className:o("",c.description),children:"Settings for your account only. These do not configure shared services for the brain."},void 0,!1,void 0,this),t.pluginSettings.map((a)=>r.jsxDEV(we,{label:a.title,density:"comfortable",presentation:"disclosure",children:[r.jsxDEV("p",{className:o("account-settings-description",c.description),children:a.description??"Private settings for this account."},void 0,!1,void 0,this),r.jsxDEV("form",{className:o("name-form",c.form),onSubmit:(s)=>{s.preventDefault(),n.saveSettings(a,new FormData(s.currentTarget))},children:[a.fields.map((s)=>r.jsxDEV("label",{htmlFor:`setting-${a.id}-${s.name}`,className:o("",c.field),children:[r.jsxDEV("span",{className:o("",c.formLabel),children:s.label},void 0,!1,void 0,this),s.control==="checkbox"?r.jsxDEV(te,{id:`setting-${a.id}-${s.name}`,name:s.name,defaultChecked:s.value===!0},void 0,!1,void 0,this):r.jsxDEV(J,{id:`setting-${a.id}-${s.name}`,name:s.name,type:Se(s),required:s.required&&(!a.configured||s.secret)&&!s.set,defaultValue:s.secret?"":typeof s.value==="string"||typeof s.value==="number"?s.value:"",placeholder:s.secret&&s.set?"Stored — leave blank to keep":void 0,autoComplete:"off"},void 0,!1,void 0,this)]},s.name,!0,void 0,this)),r.jsxDEV("div",{className:o("people-inline-actions",c.inlineActions),children:[r.jsxDEV(z,{type:"submit",tone:"primary",disabled:n.busy,children:"Save settings"},void 0,!1,void 0,this),a.configured?r.jsxDEV(y,{variant:"danger",disabled:n.busy,type:"button",onClick:()=>n.removeSettings(a),children:"Remove"},void 0,!1,void 0,this):null]},void 0,!0,void 0,this)]},`${a.id}:${a.revision??"unset"}`,!0,void 0,this)]},a.id,!0,void 0,this))]},void 0,!0,void 0,this)}function xe(e){let{account:t,actions:n}=e,{busy:a}=n;return r.jsxDEV("div",{className:o("",c.column),children:[r.jsxDEV(C,{title:"Sign-in",description:"Passkeys used to access this account. Your final passkey is protected from revocation.",children:[t.passkeys.map((s)=>r.jsxDEV(U,{kind:s.credentialBackedUp?"Synced passkey":"Device passkey",metadata:[`Added: ${j(s.createdAt,!0)}`],action:t.passkeys.length>1?r.jsxDEV(y,{variant:"danger",disabled:a,type:"button",onClick:()=>n.revokePasskey(s.id),children:"Revoke"},void 0,!1,void 0,this):void 0},s.id,!1,void 0,this)),r.jsxDEV("div",{className:o("people-inline-actions",c.inlineActions),children:r.jsxDEV(y,{variant:"outline",disabled:a,type:"button",onClick:n.addPasskey,children:"Add passkey"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.jsxDEV(C,{title:"Signed-in sessions",children:t.sessions.map((s)=>r.jsxDEV(U,{kind:s.current?"This session":"Browser session",metadata:[`Started: ${j(s.createdAt)}`,...s.current?["Current browser"]:[]],action:!s.current?r.jsxDEV(y,{variant:"danger",disabled:a,type:"button",onClick:()=>n.revokeSession(s.id),children:"End"},void 0,!1,void 0,this):void 0},s.id,!1,void 0,this))},void 0,!1,void 0,this),r.jsxDEV("footer",{className:o("account-session-actions",c.footer),children:[r.jsxDEV("small",{children:"Access changes require an Admin."},void 0,!1,void 0,this),r.jsxDEV("div",{className:o("",c.actions),children:[r.jsxDEV(z,{disabled:a||t.sessions.every((s)=>s.current),onClick:n.revokeOtherSessions,children:"End other sessions"},void 0,!1,void 0,this),r.jsxDEV(z,{tone:"danger",disabled:a,onClick:n.revokeAllSessions,children:"Sign out everywhere"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Ee=b(ne(),1);function de(e){return new URL(e).host.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}function le(e){return JSON.stringify(e,null,2)}function Oe(e,t,n){return["Already have servers there? Add only the ",{code:`"${n}"`}," entry inside ",{code:`"${t}"`},` of ${e}.`]}function Re(e){let t=de(e),n="Sign in with your passkey when asked.";return[{id:"claude",group:"primary",name:"Claude",note:["Desktop app and claude.ai."],steps:[["Open Settings → Connectors → Add custom connector."],["Name it ",{code:t}," and paste your brain’s address."],["Sign in with your passkey when asked."]]},{id:"chatgpt",group:"primary",name:"ChatGPT",steps:[["Open Settings → Apps & Connectors → Advanced and turn on Developer mode."],["Choose Create, name it ",{code:t},", paste your brain’s address and pick OAuth."],["Sign in with your passkey when asked."]]},{id:"claude-code",group:"developer",name:"Claude Code",lead:[["Add the server in your terminal:"]],snippet:{label:"Claude Code command",code:`claude mcp add --transport http ${t} ${e}`},after:[["Then start Claude Code, run ",{code:"/mcp"},", choose ",{code:t}," and sign in with your passkey."]]},{id:"cursor",group:"developer",name:"Cursor",steps:[["Open Cursor Settings → MCP → Add new global MCP server."],["Name it ",{code:t}," and paste your brain’s address."],["Sign in with your passkey when Cursor asks."]],lead:[["Or add it to ",{code:"~/.cursor/mcp.json"},":"]],snippet:{label:"Cursor configuration",code:le({mcpServers:{[t]:{url:e}}})},after:[Oe("the file","mcpServers",t)]},{id:"vscode",group:"developer",name:"VS Code",steps:[["Open the Command Palette and run ",{code:"MCP: Add Server"},"."],["Choose HTTP, paste your brain’s address and name it ",{code:t},"."],["Choose Global, then sign in with your passkey when asked."]],lead:[["Or run ",{code:"MCP: Open User Configuration"}," and add:"]],snippet:{label:"VS Code configuration",code:le({servers:{[t]:{type:"http",url:e}}})},after:[Oe("your user configuration","servers",t)]},{id:"other",group:"developer",name:"Any other MCP client",inlineName:"any other MCP client",note:["Look for “add MCP server”, “connector” or “integration” in the tool’s settings and fill in:"],fields:[{label:"Name",value:[{code:t}]},{label:"Type",value:["Remote server, Streamable HTTP — not stdio, not SSE"]},{label:"URL",value:[{code:e}]},{label:"Authentication",value:["OAuth. Leave API key, token, client ID and secret empty; the tool registers itself."]}],lead:[["When you connect, your browser opens “Authorize <tool>?” on your brain. Approve MCP access with your passkey. The tool then has two tools: ",{code:"chat"},", to ask your brain anything as you would in chat, and ",{code:"confirm"},", to approve changes when the brain asks."],["Tool only takes local (stdio) servers, or insists on an API key? Bridge it with ",{code:"mcp-remote"},", which handles the sign-in:"]],snippet:{label:"mcp-remote bridge configuration",code:le({mcpServers:{[t]:{command:"npx",args:["-y","mcp-remote",e]}}})}}]}var u=b(x(),1);function W(e){return u.jsxDEV(u.Fragment,{children:e.text.map((t,n)=>typeof t==="string"?t:u.jsxDEV("code",{className:o("",d.code),children:t.code},n,!1,void 0,this))},void 0,!1,void 0,this)}function _(e){let[t,n]=Ee.useState("idle"),a=async()=>{try{await navigator.clipboard.writeText(e.code),n("copied")}catch{n("unavailable")}};return u.jsxDEV("div",{className:o("ai-tools-snippet",d.snippet),children:[u.jsxDEV("pre",{className:o("",d.snippetCode),"aria-label":e.label,children:e.code},void 0,!1,void 0,this),u.jsxDEV(y,{variant:"outline",size:"sm",onClick:()=>void a(),"aria-label":`Copy ${e.label}`,children:t==="copied"?"Copied":t==="unavailable"?"Select to copy":"Copy"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function G(e){let{client:t}=e;return u.jsxDEV("article",{className:o("ai-tools-client",d.client),children:[u.jsxDEV("h4",{className:o("",d.clientName),children:t.name},void 0,!1,void 0,this),t.note?u.jsxDEV("p",{className:o("",d.text),children:u.jsxDEV(W,{text:t.note},void 0,!1,void 0,this)},void 0,!1,void 0,this):null,t.steps?u.jsxDEV("ol",{className:o("",d.steps),children:t.steps.map((n,a)=>u.jsxDEV("li",{children:u.jsxDEV(W,{text:n},void 0,!1,void 0,this)},a,!1,void 0,this))},void 0,!1,void 0,this):null,t.fields?u.jsxDEV("dl",{className:o("",d.fields),children:t.fields.map((n)=>u.jsxDEV("div",{className:o("",d.field),children:[u.jsxDEV("dt",{className:o("",d.fieldLabel),children:n.label},void 0,!1,void 0,this),u.jsxDEV("dd",{className:o("",d.fieldValue),children:u.jsxDEV(W,{text:n.value},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},n.label,!0,void 0,this))},void 0,!1,void 0,this):null,t.lead?.map((n,a)=>u.jsxDEV("p",{className:o("",d.text),children:u.jsxDEV(W,{text:n},void 0,!1,void 0,this)},`lead-${a}`,!1,void 0,this)),t.snippet?u.jsxDEV(_,{...t.snippet},void 0,!1,void 0,this):null,t.after?.map((n,a)=>u.jsxDEV("p",{className:o("",d.text),children:u.jsxDEV(W,{text:n},void 0,!1,void 0,this)},`after-${a}`,!1,void 0,this))]},void 0,!0,void 0,this)}function ot(e){return e.length<2?e[0]??"":`${e.slice(0,-1).join(", ")} and ${e.at(-1)}`}function De(e){let t=Re(e.mcpUrl),n=t.filter((s)=>s.group==="primary"),a=t.filter((s)=>s.group==="developer");return u.jsxDEV(C,{title:"AI tools",description:"Connect AI tools you already use to this brain. A connected tool talks to the brain as you do in chat — asking, saving and updating within your access — after you sign in with your passkey.",children:[u.jsxDEV("article",{className:o("ai-tools-address",d.client),children:[u.jsxDEV("h4",{className:o("",d.clientName),children:"Your brain’s address"},void 0,!1,void 0,this),u.jsxDEV(_,{label:"brain address",code:e.mcpUrl},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u.jsxDEV("div",{className:o("ai-tools-clients",d.clients),children:n.map((s)=>u.jsxDEV(G,{client:s},s.id,!1,void 0,this))},void 0,!1,void 0,this),u.jsxDEV("details",{className:o("ai-tools-developer",d.developer),children:[u.jsxDEV("summary",{className:o("",d.developerSummary),children:["Developer tools and other clients",u.jsxDEV("span",{className:o("",d.developerHint),children:ot(a.map((s)=>s.inlineName??s.name))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u.jsxDEV("div",{className:o("ai-tools-clients",d.clients,d.developerClients),children:a.map((s)=>u.jsxDEV(G,{client:s},s.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Z=b(ne(),1);var ue="Enter the username and password of an app password from this page.";function Ie(e){let t=new URL(e),n=`${t.protocol==="https:"?"davs":"dav"}://${t.host}${t.pathname}`,a=de(e);return[{id:"macos",group:"file-manager",name:"macOS",note:["Finder, on any Mac."],steps:[["In Finder, choose Go → Connect to Server (⌘K)."],["Paste the address below and click Connect."],["Choose Registered User. ",ue]],snippet:{label:"macOS address",code:e}},{id:"windows",group:"file-manager",name:"Windows",note:["File Explorer, on Windows 10 and 11."],steps:[["In File Explorer, open This PC and choose Map network drive."],["Paste the address below as the folder, tick Connect using different credentials, and click Finish."],[ue]],snippet:{label:"Windows address",code:e}},{id:"gnome-files",group:"file-manager",name:"GNOME Files",note:["The file manager on Ubuntu, Fedora and other GNOME desktops."],steps:[["Open Files → Other Locations (or Network)."],["Under Connect to Server, enter the address below and connect."],[ue]],snippet:{label:"GNOME Files address",code:n}},{id:"rclone",group:"command-line",name:"rclone",note:["Linux, macOS and Windows, from a terminal."],lead:[["Store the drive as a remote, with your app password’s username and password:"]],snippet:{label:"rclone remote command",code:`rclone config create ${a} webdav url=${e} vendor=other user=YOUR_USERNAME pass=YOUR_PASSWORD --obscure`},after:[["Then mount it on an empty folder: ",{code:`rclone mount ${a}: ~/Brain --vfs-cache-mode writes`},"."]]}]}var l=b(x(),1),oe="app-password-label",Ue="app-password-write";function pe(e){return j(e).slice(0,10)}function at(e,t){return[`Created: ${pe(e.createdAt)}`,`${e.expiresAt<=t?"Expired":"Expires"}: ${pe(e.expiresAt)}`,e.lastUsedAt===void 0?"Never used":`Last used: ${pe(e.lastUsedAt)}`]}function Fe(e){let{account:t,actions:n,connect:a}=e,{busy:s,createdAppPassword:g}=n,[h,O]=Z.useState(void 0),v=a!==void 0&&h!==void 0?$e(g,h,t.appPasswords,me(a)):null;Z.useEffect(()=>{if(a&&v)Me(a,v)},[a,v]);let N=Math.floor(Date.now()/1000),[T,S]=Z.useState(!1),D=Ie(e.davUrl),I=D.filter((f)=>f.group==="file-manager"),E=D.filter((f)=>f.group==="command-line");return l.jsxDEV("div",{className:o("",c.column),children:[l.jsxDEV(C,{title:"Drive",description:"Mount this brain as a network drive. It shows the notes, posts and files you can see here, as folders and files, to open and edit on your computer.",children:[a?l.jsxDEV(Le,{connect:a,created:v,busy:s||h!==void 0&&v===null,onConnect:()=>{O(g?.username??null),n.createAppPassword(me(a),"write")}},void 0,!1,void 0,this):null,l.jsxDEV("article",{className:o("drive-address",d.client),children:[l.jsxDEV("h4",{className:o("",d.clientName),children:"Your brain’s drive address"},void 0,!1,void 0,this),l.jsxDEV(_,{label:"drive address",code:e.davUrl},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),l.jsxDEV(C,{title:"App passwords",description:"A mount signs in with an app password instead of your passkey. It works only for the drive, expires after a year and can be revoked here. It can only read unless you allow saving changes.",children:[g&&g!==v?l.jsxDEV("article",{"data-app-password-reveal":!0,className:o("drive-reveal",d.client),children:[l.jsxDEV("h4",{className:o("",d.clientName),children:"Your new app password"},void 0,!1,void 0,this),l.jsxDEV("p",{className:o("",d.text),children:"Copy both now. The password is shown only once."},void 0,!1,void 0,this),l.jsxDEV(_,{label:"username",code:g.username},void 0,!1,void 0,this),l.jsxDEV(_,{label:"password",code:g.password},void 0,!1,void 0,this),l.jsxDEV("div",{className:o("people-inline-actions",c.inlineActions),children:l.jsxDEV(y,{variant:"outline",type:"button",onClick:n.dismissCreatedAppPassword,children:"Done"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null,t.appPasswords.length===0?l.jsxDEV("p",{className:o("",d.text),children:"No app passwords yet."},void 0,!1,void 0,this):t.appPasswords.map((f)=>l.jsxDEV(U,{kind:f.label,description:`${f.username} · ${f.access==="write"?"Read and write":"Read-only"}`,metadata:at(f,N),action:l.jsxDEV(y,{variant:"danger",disabled:s,type:"button",onClick:()=>n.revokeAppPassword(f.id),children:"Revoke"},void 0,!1,void 0,this)},f.id,!1,void 0,this)),l.jsxDEV("form",{className:o("name-form",c.form),onSubmit:(f)=>{f.preventDefault();let Y=f.currentTarget,P=String(new FormData(Y).get(oe)??"");if(P.trim()==="")return;n.createAppPassword(P.trim(),T?"write":"read"),Y.reset(),S(!1)},children:[l.jsxDEV("label",{htmlFor:oe,className:o("",c.field),children:[l.jsxDEV("span",{className:o("",c.formLabel),children:"Name it after the computer it is for"},void 0,!1,void 0,this),l.jsxDEV(J,{id:oe,name:oe,type:"text",required:!0,maxLength:100,placeholder:"Laptop",autoComplete:"off"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.jsxDEV("label",{htmlFor:Ue,className:o("",c.field),children:[l.jsxDEV("span",{className:o("",c.formLabel),children:"Allow saving changes"},void 0,!1,void 0,this),l.jsxDEV(te,{id:Ue,"aria-label":"Allow saving changes",checked:T,onCheckedChange:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.jsxDEV("div",{className:o("people-inline-actions",c.inlineActions),children:l.jsxDEV(y,{variant:"outline",disabled:s,type:"submit",children:"New app password"},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),l.jsxDEV(C,{title:"Use it in Obsidian",description:"Keep an Obsidian vault on your computer in step with your brain. Obsidian stays fast and works offline; notes and images sync in the background.",children:l.jsxDEV("article",{className:o("drive-obsidian",d.client),children:[l.jsxDEV("h4",{className:o("",d.clientName),children:"Rizom Brain"},void 0,!1,void 0,this),l.jsxDEV("ol",{className:o("",d.steps),children:[l.jsxDEV("li",{children:"Install the Rizom Brain plugin in Obsidian and turn it on."},void 0,!1,void 0,this),l.jsxDEV("li",{children:["In its settings, enter your brain’s address:"," ",l.jsxDEV("code",{children:new URL(e.davUrl).host},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.jsxDEV("li",{children:"Choose Connect, and confirm on the page that opens here."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),l.jsxDEV(C,{title:"Connect your computer",description:"Use your computer’s own file manager. The brain then appears as a drive beside your other folders.",children:[l.jsxDEV("div",{className:o("drive-clients",d.clients),children:I.map((f)=>l.jsxDEV(G,{client:f},f.id,!1,void 0,this))},void 0,!1,void 0,this),l.jsxDEV("details",{className:o("drive-command-line",d.developer),children:[l.jsxDEV("summary",{className:o("",d.developerSummary),children:["Command line",l.jsxDEV("span",{className:o("",d.developerHint),children:E.map((f)=>f.name).join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this),l.jsxDEV("div",{className:o("drive-command-line-clients",d.clients,d.developerClients),children:E.map((f)=>l.jsxDEV(G,{client:f},f.id,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var w=b(ne(),1);var ae={revokePasskey:{title:"Revoke this passkey?",message:"You will not be able to use this passkey again.",confirmLabel:"Revoke passkey",pending:"Revoking passkey…",complete:"Passkey revoked."},revokeSession:{title:"End this browser session?",message:"That browser will need a passkey to sign in again.",confirmLabel:"End session",pending:"Ending session…",complete:"Session ended."},revokeAppPassword:{title:"Revoke this app password?",message:"Anything mounted with it stops working at once. Its password cannot be recovered.",confirmLabel:"Revoke app password",pending:"Revoking app password…",complete:"App password revoked."},revokeOtherSessions:{title:"End every other browser session?",message:"Your current browser will remain signed in.",confirmLabel:"End other sessions",pending:"Ending other sessions…",complete:"Other sessions ended."}};function Be(e){return je(e,"Account request failed")}function _e(e){let{client:t,initialAccount:n}=e,[a,s]=w.useState(n),[g,h]=w.useState(n?.displayName??e.initialDisplayName),[O,v]=w.useState(""),[N,T]=w.useState(!1),[S,D]=w.useState(!1),[I,E]=w.useState(null),[f,Y]=w.useState(null);w.useEffect(()=>{if(n)return;let p=!1;return t.fetchAccount().then((k)=>{if(p)return;s(k),h(k.displayName)}).catch((k)=>{if(p)return;T(!0),v(Be(k))}),()=>{p=!0}},[t,n]);let P=w.useCallback(async(p,k,B)=>{D(!0),T(!1),v(p);try{let q=await B();if(q)s(q),h(q.displayName);v(k)}catch(q){T(!0),v(Be(q))}finally{D(!1)}},[]),fe=async(p)=>(await t.mutateAccount(p)).account,Q=(p,k)=>E({title:p.title,message:p.message,confirmLabel:p.confirmLabel,action:()=>{P(p.pending,p.complete,()=>fe(k))}});return{account:a,displayName:g,setDisplayName:h,status:O,error:N,busy:S,confirmation:I,cancelConfirmation:()=>E(null),confirm:()=>{if(!I)return;E(null),I.action()},saveName:()=>{P("Saving…","Display name updated.",()=>fe({action:A.updateDisplayName,confirmation:A.updateDisplayName,displayName:g}))},addPasskey:()=>{P("Waiting for your authenticator…","Passkey added.",()=>t.registerPasskey())},revokePasskey:(p)=>Q(ae.revokePasskey,{action:A.revokePasskey,confirmation:A.revokePasskey,credentialId:p}),revokeSession:(p)=>Q(ae.revokeSession,{action:A.revokeSession,confirmation:A.revokeSession,sessionId:p}),revokeOtherSessions:()=>Q(ae.revokeOtherSessions,{action:A.revokeOtherSessions,confirmation:A.revokeOtherSessions}),revokeAllSessions:()=>E({title:"Sign out everywhere?",message:"This ends every session, including this one. You will need your passkey to return.",confirmLabel:"Sign out everywhere",action:()=>{P("Signing out everywhere…","Signed out.",async()=>{await t.mutateAccount({action:A.revokeAllSessions,confirmation:A.revokeAllSessions}),window.location.assign(`/login?return_to=${encodeURIComponent(e.routePath)}`);return})}}),saveSettings:(p,k)=>{let B=be(p.fields,k);P(`Saving ${p.title}…`,`${p.title} updated.`,()=>t.mutatePluginSettings({action:"save",definitionId:p.id,values:B}))},createdAppPassword:f,createAppPassword:(p,k)=>{P("Creating app password…","App password created.",async()=>{let B=await t.mutateAccount({action:A.createAppPassword,confirmation:A.createAppPassword,label:p,...k==="write"?{access:k}:{}});return Y(B.appPassword??null),B.account})},dismissCreatedAppPassword:()=>Y(null),revokeAppPassword:(p)=>Q(ae.revokeAppPassword,{action:A.revokeAppPassword,confirmation:A.revokeAppPassword,appPasswordId:p}),removeSettings:(p)=>E({title:`Remove ${p.title}?`,message:"The stored settings for this integration will be removed from your account only.",confirmLabel:"Remove settings",action:()=>{P(`Removing ${p.title}…`,`${p.title} removed.`,()=>t.mutatePluginSettings({action:"delete",definitionId:p.id}))}})}}var m=b(x(),1),it=["profile","security","identities","settings",H,F];function st(e){let t=e.connect?F:it.find((n)=>n===e.initialSection);if(!t||t===H&&!e.mcpUrl||t===F&&!e.davUrl)return"profile";return t}function rt(e){let t=["your profile","sign-in security","linked identities",...e.settings?["personal settings"]:[],...e.aiTools?["AI tools"]:[],...e.drive?["your drive"]:[]];return`Your account on this brain. Manage ${`${t.slice(0,-1).join(", ")} and ${t.at(-1)}`} here—not shared services or other people’s access.`}function cn({bootstrap:e,initialAccount:t,client:n}){let a=qe(),s=K.useMemo(()=>n??new ce({fetch:a.fetch}),[n,a]),g=_e({client:s,initialAccount:t,initialDisplayName:e.displayName,routePath:e.routePath}),{account:h,status:O,error:v,busy:N,confirmation:T}=g,[S,D]=K.useState(()=>st(e));K.useEffect(()=>{document.querySelector('.account-tabs [role="tab"][aria-selected="true"]')?.scrollIntoView({block:"nearest",inline:"nearest"})},[S]);let I=h?.displayName??e.displayName;return m.jsxDEV(m.Fragment,{children:[m.jsxDEV("div",{className:o("account-shell",c.shell,Ve.inset),children:[m.jsxDEV(Je,{model:{access:ze("public"),title:"Your account",totals:[]}},void 0,!1,void 0,this),m.jsxDEV("p",{className:o("account-scope",c.description),children:rt({settings:(h?.pluginSettings.length??0)>0,aiTools:Boolean(e.mcpUrl),drive:Boolean(e.davUrl)})},void 0,!1,void 0,this),m.jsxDEV("p",{className:o(`account-status${v?" is-error":""}`,c.feedback,v&&c.feedbackError),role:"status","aria-live":"polite",children:O},void 0,!1,void 0,this),!h?m.jsxDEV("p",{className:o("account-loading",c.loading),children:"Reading your account…"},void 0,!1,void 0,this):m.jsxDEV(Ke,{className:"account-details",value:S,onValueChange:D,children:[m.jsxDEV(Ye,{"aria-label":"Account sections",className:o("account-tabs",c.tabs),children:[m.jsxDEV(M,{value:"profile",disabled:N,children:"Profile"},void 0,!1,void 0,this),m.jsxDEV(M,{value:"security",disabled:N,children:"Sign-in & sessions"},void 0,!1,void 0,this),m.jsxDEV(M,{value:"identities",disabled:N,children:"Linked identities"},void 0,!1,void 0,this),h.pluginSettings.length>0&&m.jsxDEV(M,{value:"settings",disabled:N,children:"Personal settings"},void 0,!1,void 0,this),e.mcpUrl&&m.jsxDEV(M,{value:H,disabled:N,children:"AI tools"},void 0,!1,void 0,this),e.davUrl&&m.jsxDEV(M,{value:F,disabled:N,children:"Drive"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m.jsxDEV(L,{value:"profile",forceMount:!0,hidden:S!=="profile",className:o("account-detail-sections",c.tabPanel),children:m.jsxDEV(Ne,{account:h,actions:g,title:I,studioPath:e.studioPath},void 0,!1,void 0,this)},void 0,!1,void 0,this),m.jsxDEV(L,{value:"identities",forceMount:!0,hidden:S!=="identities",className:o("",c.tabPanel),children:m.jsxDEV(Te,{account:h},void 0,!1,void 0,this)},void 0,!1,void 0,this),h.pluginSettings.length>0&&m.jsxDEV(L,{value:"settings",forceMount:!0,hidden:S!=="settings",className:o("",c.tabPanel),children:m.jsxDEV(Pe,{account:h,actions:g},void 0,!1,void 0,this)},void 0,!1,void 0,this),m.jsxDEV(L,{value:"security",forceMount:!0,hidden:S!=="security",className:o("",c.tabPanel),children:m.jsxDEV(xe,{account:h,actions:g},void 0,!1,void 0,this)},void 0,!1,void 0,this),e.mcpUrl&&m.jsxDEV(L,{value:H,forceMount:!0,hidden:S!==H,className:o("",c.tabPanel),children:m.jsxDEV(De,{mcpUrl:e.mcpUrl},void 0,!1,void 0,this)},void 0,!1,void 0,this),e.davUrl&&m.jsxDEV(L,{value:F,forceMount:!0,hidden:S!==F,className:o("",c.tabPanel),children:m.jsxDEV(Fe,{davUrl:e.davUrl,account:h,actions:g,connect:e.connect},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),T&&m.jsxDEV(He,{mark:"!",title:T.title,titleId:"account-confirmation-title",cancelLabel:"Cancel",confirmLabel:T.confirmLabel,confirmVariant:"danger",pending:N,onCancel:g.cancelConfirmation,onConfirm:g.confirm,children:m.jsxDEV("p",{children:T.message},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}export{cn as AccountApp};
|
|
2
|
+
|
|
3
|
+
//# debugId=C40BF721186D323164756E2164756E21
|