@rizom/brain 0.2.0-alpha.818 → 0.2.0-alpha.819

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.
Files changed (38) hide show
  1. package/dist/brain.js +4 -4
  2. package/dist/chunks/{app-edmp8201.js → app-5vsjv0bx.js} +2 -2
  3. package/dist/chunks/{index-xfvfc637.js → index-wzhtx0w9.js} +2 -2
  4. package/dist/chunks/{index-4v3bhxch.js → index-ymf8bdmg.js} +3 -3
  5. package/dist/chunks/{index-4v3bhxch.js.map → index-ymf8bdmg.js.map} +1 -1
  6. package/dist/chunks/{package-27yjpkwb.js → package-dftxrpd3.js} +3 -3
  7. package/dist/chunks/{package-27yjpkwb.js.map → package-dftxrpd3.js.map} +1 -1
  8. package/dist/model.js +4 -4
  9. package/dist/model.js.map +1 -1
  10. package/dist/testing.js +1 -1
  11. package/dist/ui/{studio-app-073e3nsr.js → studio-app-5wf0chc4.js} +90 -90
  12. package/dist/ui/{studio-app-073e3nsr.js.map → studio-app-5wf0chc4.js.map} +11 -12
  13. package/dist/ui/{studio-app-70f8cb17b11c4ae4bb0ceee02c8ead933816ed55051403304c181bf263738790.css → studio-app-a59ab675c76ca274e4d6b64348b36f918b3a7ecfa81d4f4249fc0cc494fdfb8c.css} +20 -11
  14. package/dist/ui/studio-asset-manifest.json +23 -23
  15. package/dist/ui/studio-chunks/{account-view-qdwwhy8a.js → account-view-y32wpsyq.js} +1 -1
  16. package/dist/ui/studio-chunks/main-1h3h013a.js +4 -0
  17. package/dist/ui/studio-chunks/main-1h3h013a.js.map +13 -0
  18. package/dist/ui/studio-chunks/main-n8b4hwpq.js +4 -0
  19. package/dist/ui/studio-chunks/{main-x4eqqte5.js.map → main-n8b4hwpq.js.map} +4 -4
  20. package/dist/ui/studio-chunks/{main-ntg9v72p.js → main-qqw5r5ap.js} +1 -1
  21. package/dist/ui/studio-chunks/{main-77snes8p.js → main-sf9xp8er.js} +1 -1
  22. package/dist/ui/studio-chunks/{main-e0gm5z75.js → main-wvz8aths.js} +1 -1
  23. package/dist/ui/studio-chunks/{main-qtwkt52a.js → main-wxhbkhkc.js} +32 -32
  24. package/dist/ui/studio-chunks/{main-qtwkt52a.js.map → main-wxhbkhkc.js.map} +3 -3
  25. package/dist/ui/studio-chunks/{studio-ask-panel-j4r3wbrv.js → studio-ask-panel-436q7m2q.js} +1 -1
  26. package/dist/ui/studio-chunks/{studio-chat-workspace-essbhwrc.js → studio-chat-workspace-3q0cw97n.js} +1 -1
  27. package/package.json +1 -1
  28. package/dist/ui/studio-chunks/main-tn4apj9j.js +0 -4
  29. package/dist/ui/studio-chunks/main-tn4apj9j.js.map +0 -13
  30. package/dist/ui/studio-chunks/main-x4eqqte5.js +0 -4
  31. /package/dist/chunks/{app-edmp8201.js.map → app-5vsjv0bx.js.map} +0 -0
  32. /package/dist/chunks/{index-xfvfc637.js.map → index-wzhtx0w9.js.map} +0 -0
  33. /package/dist/ui/studio-chunks/{account-view-qdwwhy8a.js.map → account-view-y32wpsyq.js.map} +0 -0
  34. /package/dist/ui/studio-chunks/{main-ntg9v72p.js.map → main-qqw5r5ap.js.map} +0 -0
  35. /package/dist/ui/studio-chunks/{main-77snes8p.js.map → main-sf9xp8er.js.map} +0 -0
  36. /package/dist/ui/studio-chunks/{main-e0gm5z75.js.map → main-wvz8aths.js.map} +0 -0
  37. /package/dist/ui/studio-chunks/{studio-ask-panel-j4r3wbrv.js.map → studio-ask-panel-436q7m2q.js.map} +0 -0
  38. /package/dist/ui/studio-chunks/{studio-chat-workspace-essbhwrc.js.map → studio-chat-workspace-3q0cw97n.js.map} +0 -0
@@ -154,21 +154,20 @@
154
154
  .xb3dhe4:empty:not(#\#){margin:0}
155
155
  @media (max-width: 640px){.x1hyyza1.x1hyyza1:not(#\#){margin:18px 20px}}
156
156
  @media (max-width: 640px){.x2f2h7w.x2f2h7w:not(#\#){margin:22px 20px 0}}
157
- @media (max-width: 640px){.x17jz4hc.x17jz4hc:not(#\#){padding:0 16px}}
158
157
  @media (max-width: 640px){.x1bf66pj.x1bf66pj:not(#\#){padding:0}}
159
158
  @media (max-width: 900px){.xb1114b.xb1114b:not(#\#){padding:0}}
160
159
  @media (max-width: 640px){.x1h4xdqo.x1h4xdqo:not(#\#){padding:10px 2px}}
161
160
  @media (max-width: 640px){.x153k8vf.x153k8vf:not(#\#){padding:12px 0}}
162
161
  @media (max-width: 640px){.xa4az6k.xa4az6k:not(#\#){padding:12px 16px}}
163
162
  @media (max-width: 640px){.xj4fmvg.xj4fmvg:not(#\#){padding:14px 2px}}
163
+ @media (max-width: 640px){.x1pvtvnk.x1pvtvnk:not(#\#){padding:18px 16px 88px}}
164
164
  @media (max-width: 640px){.xvc418b.xvc418b:not(#\#){padding:18px 16px}}
165
- @media (max-width: 640px){.x10fa4w8.x10fa4w8:not(#\#){padding:18px 18px 88px}}
166
165
  @media (max-width: 640px){.x1p5ebxg.x1p5ebxg:not(#\#){padding:22px 20px 0}}
167
166
  @media (max-width: 640px){.x1h32jcg.x1h32jcg:not(#\#){padding:22px 20px 26px}}
168
167
  @media (max-width: 640px){.xbqoc8e.xbqoc8e:not(#\#){padding:4px 10px}}
169
168
  @media (max-width: 640px){.x11btecl.x11btecl:not(#\#){padding:6px 12px calc(6px + env(safe-area-inset-bottom))}}
170
169
  @media (min-width: 641px) and (max-width: 900px){.xj3o16p.xj3o16p:not(#\#){padding:7px 12px}}
171
- @media (max-width: 640px){.xiuf7f6.xiuf7f6:not(#\#){padding:7px 14px}}
170
+ @media (max-width: 640px){.x1drcgw.x1drcgw:not(#\#){padding:7px 16px}}
172
171
  @media (max-width: 640px){.xxxyo7y.xxxyo7y:not(#\#){padding:7px 9px}}
173
172
  @media (max-width: 640px){.x1lbfznl.x1lbfznl:not(#\#){padding:8px 10px calc(10px + env(safe-area-inset-bottom))}}
174
173
  @media (max-width: 900px){.xs0sw79.xs0sw79:not(#\#){padding:env(safe-area-inset-top) 16px 0}}
@@ -322,6 +321,7 @@
322
321
  @media (max-width: 640px){.xtu8bhz.xtu8bhz:not(#\#):not(#\#){border-style:solid}}
323
322
  @media (max-width: 640px){.xwddm5z.xwddm5z:not(#\#):not(#\#){border-width:0}}
324
323
  @media (max-width: 640px){.x1toygy1.x1toygy1:not(#\#):not(#\#){border-width:1px}}
324
+ @media (max-width: 640px){.xzzyo3b.xzzyo3b:not(#\#):not(#\#){gap:0}}
325
325
  @media (max-width: 640px){.x1d3ddqg.x1d3ddqg:not(#\#):not(#\#){gap:10px}}
326
326
  @media (min-width: 641px) and (max-width: 900px){.x1anjdel.x1anjdel:not(#\#):not(#\#){gap:10px}}
327
327
  @media (max-width: 640px){.x1lgz1aq.x1lgz1aq:not(#\#):not(#\#){gap:14px}}
@@ -337,13 +337,13 @@
337
337
  @media (max-width: 640px){.xj4ozfe.xj4ozfe:not(#\#):not(#\#){grid-row:2 / 4}}
338
338
  @media (max-width: 640px){.xnoo4qv.xnoo4qv:not(#\#):not(#\#){grid-row:2}}
339
339
  @media (max-width: 640px){.x1dhnagk.x1dhnagk:not(#\#):not(#\#){grid-row:3}}
340
- @media (max-width: 640px){.x13h09k8.x13h09k8:not(#\#):not(#\#){grid-row:4}}
341
340
  @media (max-width: 900px){.x12urr3.x12urr3:not(#\#):not(#\#){inset-block:0}}
342
341
  @media (max-width: 900px){.xlgo5pn.xlgo5pn:not(#\#):not(#\#){inset-inline:0}}
343
342
  @media (max-width: 640px){.x1ka7yxb.x1ka7yxb:not(#\#):not(#\#){margin-inline:20px}}
344
343
  @media (max-width: 640px){.xhmgfki.xhmgfki:not(#\#):not(#\#){overflow:hidden}}
345
344
  @media (min-width: 901px){.x13me3c.x13me3c:not(#\#):not(#\#){overflow:hidden}}
346
345
  @media (max-width: 640px){.x7zq708.x7zq708:not(#\#):not(#\#){overflow:visible}}
346
+ @media (max-width: 640px){.xg0x1tt.xg0x1tt:not(#\#):not(#\#){overscroll-behavior:contain}}
347
347
  @media (max-width: 640px){.xfav3dj.xfav3dj:not(#\#):not(#\#){padding-block:20px}}
348
348
  @media (max-width: 640px){.xn3xmfv.xn3xmfv:not(#\#):not(#\#){padding-inline:16px}}
349
349
  @media (max-width: 640px){.x1qa1qnr.x1qa1qnr:not(#\#):not(#\#){padding-inline:18px}}
@@ -389,6 +389,7 @@
389
389
  .xc1c755:not(#\#):not(#\#):not(#\#){background-color:color-mix(in srgb,var(--console-warn) 7%,transparent)}
390
390
  .xy32unz:not(#\#):not(#\#):not(#\#){background-color:color-mix(in srgb,var(--console-warn) 7%,var(--console-card))}
391
391
  .xtwfq29:not(#\#):not(#\#):not(#\#){background-color:currentColor}
392
+ .xgcd1z6:not(#\#):not(#\#):not(#\#){background-color:inherit}
392
393
  .xjbqb8w:not(#\#):not(#\#):not(#\#){background-color:transparent}
393
394
  .x9kxhyz:not(#\#):not(#\#):not(#\#){background-color:var(--console-accent-soft)}
394
395
  .x15vqgvx:not(#\#):not(#\#):not(#\#){background-color:var(--console-accent)}
@@ -667,6 +668,7 @@
667
668
  .xuxw1ft:not(#\#):not(#\#):not(#\#){white-space:nowrap}
668
669
  .x126k92a:not(#\#):not(#\#):not(#\#){white-space:pre-wrap}
669
670
  .x1sdyfia:not(#\#):not(#\#):not(#\#){white-space:pre}
671
+ .x1vjfegm:not(#\#):not(#\#):not(#\#){z-index:1}
670
672
  .x11uqc5h:not(#\#):not(#\#):not(#\#){z-index:100}
671
673
  .xfo81ep:not(#\#):not(#\#):not(#\#){z-index:1000}
672
674
  .x1bkdxzg:not(#\#):not(#\#):not(#\#){z-index:1001}
@@ -757,7 +759,7 @@
757
759
  @media (max-width: 640px){.x1y8onsm.x1y8onsm:not(#\#):not(#\#):not(#\#){align-self:baseline}}
758
760
  @media (prefers-reduced-motion: reduce){.x1aquc0h.x1aquc0h:not(#\#):not(#\#):not(#\#){animation-name:none}}
759
761
  @media (max-width: 640px){.x1norit2.x1norit2:not(#\#):not(#\#):not(#\#){background-color:transparent}}
760
- @media (max-width: 640px){.x1bir9hm.x1bir9hm:not(#\#):not(#\#):not(#\#){background-color:var(--console-card-soft)}}
762
+ @media (max-width: 640px){.x12br0k5.x12br0k5:not(#\#):not(#\#):not(#\#){box-shadow:0 0 0 100vmax color-mix(in srgb,var(--console-text) 32%,transparent)}}
761
763
  @media (max-width: 640px){.xlc8tcj.xlc8tcj:not(#\#):not(#\#):not(#\#){box-shadow:none}}
762
764
  @media (max-width: 640px){.x5dg28r.x5dg28r:not(#\#):not(#\#):not(#\#){display:-webkit-box}}
763
765
  @media (max-width: 640px){.xfsj286.xfsj286:not(#\#):not(#\#):not(#\#){display:block}}
@@ -791,33 +793,34 @@
791
793
  @media (max-width: 640px){.x1uf5sbp.x1uf5sbp:not(#\#):not(#\#):not(#\#){grid-template-columns:24px minmax(0,1fr)}}
792
794
  @media (max-width: 900px){.x7aqbxz.x7aqbxz:not(#\#):not(#\#):not(#\#){grid-template-columns:auto minmax(0,1fr) auto}}
793
795
  @media (min-width: 641px) and (max-width: 900px){.x1efj4vi.x1efj4vi:not(#\#):not(#\#):not(#\#){grid-template-columns:minmax(0,1fr) 320px}}
794
- @media (max-width: 640px){.xlpkf44.xlpkf44:not(#\#):not(#\#):not(#\#){grid-template-columns:minmax(0,1fr) auto}}
796
+ @media (max-width: 640px){.x1lk34zc.x1lk34zc:not(#\#):not(#\#):not(#\#){grid-template-columns:minmax(0,1fr) auto auto}}
795
797
  @media (max-width: 640px){.x4jmfmw.x4jmfmw:not(#\#):not(#\#):not(#\#){grid-template-columns:minmax(0,1fr)}}
796
798
  @media (max-width: 900px){.xirox3h.xirox3h:not(#\#):not(#\#):not(#\#){grid-template-columns:minmax(0,1fr)}}
797
799
  @media (min-width: 641px) and (max-width: 900px){.x8ef1wo.x8ef1wo:not(#\#):not(#\#):not(#\#){grid-template-columns:minmax(0,1fr)}}
798
- @media (max-width: 640px){.x1318cfe.x1318cfe:not(#\#):not(#\#):not(#\#){grid-template-rows:auto 44px minmax(0,1fr) auto}}
799
800
  @media (max-width: 640px){.x1s4lsyz.x1s4lsyz:not(#\#):not(#\#):not(#\#){grid-template-rows:auto 44px minmax(180px,1fr)}}
800
801
  @media (max-width: 640px){.x1y6iwit.x1y6iwit:not(#\#):not(#\#):not(#\#){grid-template-rows:auto minmax(0,1fr) auto}}
801
802
  @media (max-width: 640px){.xch1w8t.xch1w8t:not(#\#):not(#\#):not(#\#){grid-template-rows:auto}}
802
803
  @media (max-width: 640px){.x5ktkrg.x5ktkrg:not(#\#):not(#\#):not(#\#){grid-template-rows:minmax(0,1fr)}}
803
804
  @media (max-width: 900px){.xnjvy26.xnjvy26:not(#\#):not(#\#):not(#\#){justify-content:center}}
804
805
  @media (max-width: 640px){.x1s9bmkn.x1s9bmkn:not(#\#):not(#\#):not(#\#){justify-content:space-between}}
806
+ @media (max-width: 640px){.xa996tt.xa996tt:not(#\#):not(#\#):not(#\#){justify-content:start}}
805
807
  @media (max-width: 640px){.x1re7oy7.x1re7oy7:not(#\#):not(#\#):not(#\#){justify-self:start}}
806
808
  @media (max-width: 640px){.xc3hpf1.xc3hpf1:not(#\#):not(#\#):not(#\#){letter-spacing:-0.01em}}
807
809
  @media (max-width: 640px){.x1tvf21l.x1tvf21l:not(#\#):not(#\#):not(#\#){line-height:1.2}}
808
810
  @media (max-width: 640px){.x1qp586l.x1qp586l:not(#\#):not(#\#):not(#\#){line-height:1.35}}
809
811
  @media (max-width: 640px){.x1s77nak.x1s77nak:not(#\#):not(#\#):not(#\#){padding-inline-end:44px}}
812
+ @media (max-width: 640px){.x12u6v07.x12u6v07:not(#\#):not(#\#):not(#\#){position:fixed}}
810
813
  @media (max-width: 900px){.x1p63ail.x1p63ail:not(#\#):not(#\#):not(#\#){position:fixed}}
811
814
  @media (max-width: 640px){.xip7ul3.xip7ul3:not(#\#):not(#\#):not(#\#){position:static}}
812
815
  @media (max-width: 900px){.x1twvnst.x1twvnst:not(#\#):not(#\#):not(#\#){position:static}}
813
816
  @media (max-width: 640px){.x71uzt7.x71uzt7:not(#\#):not(#\#):not(#\#){position:sticky}}
814
817
  @media (max-width: 640px){.x1mji7za.x1mji7za:not(#\#):not(#\#):not(#\#){transform:none}}
815
818
  @media (prefers-reduced-motion: reduce){.x4wkmsb.x4wkmsb:not(#\#):not(#\#):not(#\#){transition-property:none}}
819
+ @media (max-width: 640px){.x1u2u1qb.x1u2u1qb:not(#\#):not(#\#):not(#\#){z-index:60}}
816
820
  @media (max-width: 900px){.xtpxkyd.xtpxkyd:not(#\#):not(#\#):not(#\#){z-index:60}}
817
821
  @media (max-width: 640px){.x1806iup.x1806iup:is([data-studio-split] *):not(#\#):not(#\#):not(#\#){display:none}}
818
822
  @media (max-width: 640px){.x1idufoc.x1idufoc:is([data-studio-editor][data-mobile-pane=preview] > *):not(#\#):not(#\#):not(#\#){display:none}}
819
823
  @media (max-width: 640px){.x1tugbw3.x1tugbw3:is([data-studio-editor][data-mobile-pane=write] > *):not(#\#):not(#\#):not(#\#){display:none}}
820
- @media (max-width: 640px){.x1uh997x.x1uh997x:is([data-studio-editor][data-mobile-pane=details] > *):not(#\#):not(#\#):not(#\#){display:none}}
821
824
  @media (max-width: 640px){.xbuh8fq.xbuh8fq:is([data-studio-save-bar]:has(> [data-studio-status]) > *):not(#\#):not(#\#):not(#\#){display:none}}
822
825
  @media (max-width: 640px){.xw6tuai.xw6tuai:is([open]):not(#\#):not(#\#):not(#\#){flex-basis:100%}}
823
826
  @media (max-width: 640px){.x8mpkbv.x8mpkbv:is([data-studio-shell][data-view=editor] > *):not(#\#):not(#\#):not(#\#){grid-template-rows:minmax(0,1fr)}}
@@ -968,6 +971,7 @@
968
971
  .xgujvf1:not(#\#):not(#\#):not(#\#):not(#\#){min-height:42px}
969
972
  .x1gg8mnh:not(#\#):not(#\#):not(#\#):not(#\#){min-height:44px}
970
973
  .x5mc7k8:not(#\#):not(#\#):not(#\#):not(#\#){min-height:480px}
974
+ .x1wiwyrm:not(#\#):not(#\#):not(#\#):not(#\#){min-height:52px}
971
975
  .xt55aet:not(#\#):not(#\#):not(#\#):not(#\#){min-height:54px}
972
976
  .xbktkl8:not(#\#):not(#\#):not(#\#):not(#\#){min-height:56px}
973
977
  .xvkrg5o:not(#\#):not(#\#):not(#\#):not(#\#){min-height:58px}
@@ -997,6 +1001,7 @@
997
1001
  .x1hhzuzn:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:18px}
998
1002
  .xbe17z6:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:34px}
999
1003
  .x1sgudl8:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:48px}
1004
+ .xefzj8c:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:60px}
1000
1005
  .x11ba12:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:env(safe-area-inset-bottom)}
1001
1006
  .x5tiur9:not(#\#):not(#\#):not(#\#):not(#\#){padding-left:20px}
1002
1007
  .xnljgj5:not(#\#):not(#\#):not(#\#):not(#\#){padding-left:22px}
@@ -1009,6 +1014,7 @@
1009
1014
  .xyamay9:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:16px}
1010
1015
  .x1cnzs8:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:20px}
1011
1016
  .x1p5oq8j:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:24px}
1017
+ .x9desvi:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:26px}
1012
1018
  .xijc0j3:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:36px}
1013
1019
  .x1y1aw1k:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:8px}
1014
1020
  .x3m8u43:not(#\#):not(#\#):not(#\#):not(#\#){right:0}
@@ -1016,6 +1022,7 @@
1016
1022
  .xn5hqff:not(#\#):not(#\#):not(#\#):not(#\#){right:16px}
1017
1023
  .xr2l1fr:not(#\#):not(#\#):not(#\#):not(#\#){scroll-margin-top:12px}
1018
1024
  .x1pdr0v7:not(#\#):not(#\#):not(#\#):not(#\#){top:-1px}
1025
+ .x13vifvy:not(#\#):not(#\#):not(#\#):not(#\#){top:0}
1019
1026
  .xuivejd:not(#\#):not(#\#):not(#\#):not(#\#){top:14px}
1020
1027
  .xoyzfg9:not(#\#):not(#\#):not(#\#):not(#\#){top:18px}
1021
1028
  .xwa60dl:not(#\#):not(#\#):not(#\#):not(#\#){top:50%}
@@ -1060,15 +1067,14 @@
1060
1067
  .x1nopeu7:is([data-studio-system-fields] *):not(#\#):not(#\#):not(#\#):not(#\#){padding-top:0}
1061
1068
  .x15x95ik:empty:not(#\#):not(#\#):not(#\#):not(#\#){min-height:0}
1062
1069
  .x1boxzuo:focus:not(#\#):not(#\#):not(#\#):not(#\#){width:12ch}
1063
- @media (max-width: 640px){.xwecpot.xwecpot:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-color:var(--console-rule)}}
1064
1070
  @media (max-width: 640px){.x1lclwwd.x1lclwwd:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-left-radius:0}}
1065
1071
  @media (max-width: 640px){.xgrp7ii.xgrp7ii:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-right-radius:0}}
1066
- @media (max-width: 640px){.xgplqro.xgplqro:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-style:solid}}
1067
1072
  @media (max-width: 640px){.xg3gpzv.xg3gpzv:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-width:0}}
1068
- @media (max-width: 640px){.x12zzmuo.x12zzmuo:not(#\#):not(#\#):not(#\#):not(#\#){border-bottom-width:1px}}
1069
1073
  @media (max-width: 640px){.x171z6dy.x171z6dy:not(#\#):not(#\#):not(#\#):not(#\#){border-left-width:0}}
1070
1074
  @media (max-width: 900px){.x10uxk2a.x10uxk2a:not(#\#):not(#\#):not(#\#):not(#\#){border-left-width:0}}
1071
1075
  @media (max-width: 640px){.x13ymtvt.x13ymtvt:not(#\#):not(#\#):not(#\#):not(#\#){border-right-width:0}}
1076
+ @media (max-width: 640px){.x126vn7o.x126vn7o:not(#\#):not(#\#):not(#\#):not(#\#){border-top-left-radius:16px}}
1077
+ @media (max-width: 640px){.x1abwb35.x1abwb35:not(#\#):not(#\#):not(#\#):not(#\#){border-top-right-radius:16px}}
1072
1078
  @media (max-width: 640px){.x1imafyg.x1imafyg:not(#\#):not(#\#):not(#\#):not(#\#){bottom:0}}
1073
1079
  @media (max-width: 640px){.x1qt74i8.x1qt74i8:not(#\#):not(#\#):not(#\#):not(#\#){height:100%}}
1074
1080
  @media (max-width: 640px){.xpj9cei.xpj9cei:not(#\#):not(#\#):not(#\#):not(#\#){height:40px}}
@@ -1078,6 +1084,7 @@
1078
1084
  @media (max-width: 640px){.x703316.x703316:not(#\#):not(#\#):not(#\#):not(#\#){margin-left:0}}
1079
1085
  @media (max-width: 640px){.x7xdyrl.x7xdyrl:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:10px}}
1080
1086
  @media (max-width: 640px){.xg0897w.xg0897w:not(#\#):not(#\#):not(#\#):not(#\#){margin-top:24px}}
1087
+ @media (max-width: 640px){.x13cfglm.x13cfglm:not(#\#):not(#\#):not(#\#):not(#\#){max-height:85dvh}}
1081
1088
  @media (max-width: 640px){.xxnk3sr.xxnk3sr:not(#\#):not(#\#):not(#\#):not(#\#){max-height:min(88dvh,760px)}}
1082
1089
  @media (max-width: 640px){.xeyi6kz.xeyi6kz:not(#\#):not(#\#):not(#\#):not(#\#){max-width:none}}
1083
1090
  @media (max-width: 640px){.x1qm741w.x1qm741w:not(#\#):not(#\#):not(#\#):not(#\#){min-height:0}}
@@ -1100,6 +1107,7 @@
1100
1107
  @media (max-width: 640px){.xlw6zc2.xlw6zc2:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:4px}}
1101
1108
  @media (max-width: 640px){.x1pll5v8.x1pll5v8:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:88px}}
1102
1109
  @media (max-width: 640px){.x1lak8av.x1lak8av:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(20px + env(safe-area-inset-bottom))}}
1110
+ @media (max-width: 640px){.xw27878.xw27878:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(24px + env(safe-area-inset-bottom))}}
1103
1111
  @media (max-width: 640px){.x1m3yuwo.x1m3yuwo:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(28px + env(safe-area-inset-bottom))}}
1104
1112
  @media (max-width: 640px){.x1c54s19.x1c54s19:not(#\#):not(#\#):not(#\#):not(#\#){padding-bottom:calc(38px + env(safe-area-inset-bottom))}}
1105
1113
  @media (max-width: 640px){.xdjr4gx.xdjr4gx:not(#\#):not(#\#):not(#\#):not(#\#){padding-left:18px}}
@@ -1115,6 +1123,7 @@
1115
1123
  @media (max-width: 640px){.x12xhqv2.x12xhqv2:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:12px}}
1116
1124
  @media (max-width: 640px){.x5hh3dx.x5hh3dx:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:22px}}
1117
1125
  @media (max-width: 640px){.xvl5zoi.xvl5zoi:not(#\#):not(#\#):not(#\#):not(#\#){padding-top:24px}}
1126
+ @media (max-width: 640px){.x106zgql.x106zgql:not(#\#):not(#\#):not(#\#):not(#\#){right:0}}
1118
1127
  @media (max-width: 640px){.x1bfa1r9.x1bfa1r9:not(#\#):not(#\#):not(#\#):not(#\#){top:0}}
1119
1128
  @media (max-width: 640px){.xl7365u.xl7365u:not(#\#):not(#\#):not(#\#):not(#\#){top:auto}}
1120
1129
  @media (max-width: 640px){.x1dbdljh.x1dbdljh:not(#\#):not(#\#):not(#\#):not(#\#){width:100%}}
@@ -1,46 +1,46 @@
1
1
  {
2
2
  "version": 2,
3
3
  "entrypoints": {
4
- "script": "studio-app-073e3nsr.js",
5
- "stylesheet": "studio-app-70f8cb17b11c4ae4bb0ceee02c8ead933816ed55051403304c181bf263738790.css"
4
+ "script": "studio-app-5wf0chc4.js",
5
+ "stylesheet": "studio-app-a59ab675c76ca274e4d6b64348b36f918b3a7ecfa81d4f4249fc0cc494fdfb8c.css"
6
6
  },
7
7
  "assets": {
8
- "studio-app-073e3nsr.js": "studio-app-073e3nsr.js",
9
- "studio-app-073e3nsr.js.map": "studio-app-073e3nsr.js.map",
10
- "studio-app-70f8cb17b11c4ae4bb0ceee02c8ead933816ed55051403304c181bf263738790.css": "studio-app-70f8cb17b11c4ae4bb0ceee02c8ead933816ed55051403304c181bf263738790.css",
11
- "studio-chunks/account-view-qdwwhy8a.js": "studio-chunks/account-view-qdwwhy8a.js",
12
- "studio-chunks/account-view-qdwwhy8a.js.map": "studio-chunks/account-view-qdwwhy8a.js.map",
8
+ "studio-app-5wf0chc4.js": "studio-app-5wf0chc4.js",
9
+ "studio-app-5wf0chc4.js.map": "studio-app-5wf0chc4.js.map",
10
+ "studio-app-a59ab675c76ca274e4d6b64348b36f918b3a7ecfa81d4f4249fc0cc494fdfb8c.css": "studio-app-a59ab675c76ca274e4d6b64348b36f918b3a7ecfa81d4f4249fc0cc494fdfb8c.css",
11
+ "studio-chunks/account-view-y32wpsyq.js": "studio-chunks/account-view-y32wpsyq.js",
12
+ "studio-chunks/account-view-y32wpsyq.js.map": "studio-chunks/account-view-y32wpsyq.js.map",
13
13
  "studio-chunks/chat-q43ev522.js": "studio-chunks/chat-q43ev522.js",
14
14
  "studio-chunks/chat-q43ev522.js.map": "studio-chunks/chat-q43ev522.js.map",
15
15
  "studio-chunks/highlighted-body-OFNGDK62-k61yr3cv.js": "studio-chunks/highlighted-body-OFNGDK62-k61yr3cv.js",
16
16
  "studio-chunks/highlighted-body-OFNGDK62-k61yr3cv.js.map": "studio-chunks/highlighted-body-OFNGDK62-k61yr3cv.js.map",
17
- "studio-chunks/main-77snes8p.js": "studio-chunks/main-77snes8p.js",
18
- "studio-chunks/main-77snes8p.js.map": "studio-chunks/main-77snes8p.js.map",
17
+ "studio-chunks/main-1h3h013a.js": "studio-chunks/main-1h3h013a.js",
18
+ "studio-chunks/main-1h3h013a.js.map": "studio-chunks/main-1h3h013a.js.map",
19
19
  "studio-chunks/main-as971bnz.js": "studio-chunks/main-as971bnz.js",
20
20
  "studio-chunks/main-as971bnz.js.map": "studio-chunks/main-as971bnz.js.map",
21
21
  "studio-chunks/main-b4w7s6mx.js": "studio-chunks/main-b4w7s6mx.js",
22
22
  "studio-chunks/main-b4w7s6mx.js.map": "studio-chunks/main-b4w7s6mx.js.map",
23
23
  "studio-chunks/main-bgz7jfx7.js": "studio-chunks/main-bgz7jfx7.js",
24
24
  "studio-chunks/main-bgz7jfx7.js.map": "studio-chunks/main-bgz7jfx7.js.map",
25
- "studio-chunks/main-e0gm5z75.js": "studio-chunks/main-e0gm5z75.js",
26
- "studio-chunks/main-e0gm5z75.js.map": "studio-chunks/main-e0gm5z75.js.map",
27
25
  "studio-chunks/main-jrb0wvq4.js": "studio-chunks/main-jrb0wvq4.js",
28
26
  "studio-chunks/main-jrb0wvq4.js.map": "studio-chunks/main-jrb0wvq4.js.map",
29
27
  "studio-chunks/main-n6x2vadq.js": "studio-chunks/main-n6x2vadq.js",
30
28
  "studio-chunks/main-n6x2vadq.js.map": "studio-chunks/main-n6x2vadq.js.map",
31
- "studio-chunks/main-ntg9v72p.js": "studio-chunks/main-ntg9v72p.js",
32
- "studio-chunks/main-ntg9v72p.js.map": "studio-chunks/main-ntg9v72p.js.map",
33
- "studio-chunks/main-qtwkt52a.js": "studio-chunks/main-qtwkt52a.js",
34
- "studio-chunks/main-qtwkt52a.js.map": "studio-chunks/main-qtwkt52a.js.map",
35
- "studio-chunks/main-tn4apj9j.js": "studio-chunks/main-tn4apj9j.js",
36
- "studio-chunks/main-tn4apj9j.js.map": "studio-chunks/main-tn4apj9j.js.map",
37
- "studio-chunks/main-x4eqqte5.js": "studio-chunks/main-x4eqqte5.js",
38
- "studio-chunks/main-x4eqqte5.js.map": "studio-chunks/main-x4eqqte5.js.map",
29
+ "studio-chunks/main-n8b4hwpq.js": "studio-chunks/main-n8b4hwpq.js",
30
+ "studio-chunks/main-n8b4hwpq.js.map": "studio-chunks/main-n8b4hwpq.js.map",
31
+ "studio-chunks/main-qqw5r5ap.js": "studio-chunks/main-qqw5r5ap.js",
32
+ "studio-chunks/main-qqw5r5ap.js.map": "studio-chunks/main-qqw5r5ap.js.map",
33
+ "studio-chunks/main-sf9xp8er.js": "studio-chunks/main-sf9xp8er.js",
34
+ "studio-chunks/main-sf9xp8er.js.map": "studio-chunks/main-sf9xp8er.js.map",
35
+ "studio-chunks/main-wvz8aths.js": "studio-chunks/main-wvz8aths.js",
36
+ "studio-chunks/main-wvz8aths.js.map": "studio-chunks/main-wvz8aths.js.map",
37
+ "studio-chunks/main-wxhbkhkc.js": "studio-chunks/main-wxhbkhkc.js",
38
+ "studio-chunks/main-wxhbkhkc.js.map": "studio-chunks/main-wxhbkhkc.js.map",
39
39
  "studio-chunks/mermaid-GHXKKRXX-s4k3pbv0.js": "studio-chunks/mermaid-GHXKKRXX-s4k3pbv0.js",
40
40
  "studio-chunks/mermaid-GHXKKRXX-s4k3pbv0.js.map": "studio-chunks/mermaid-GHXKKRXX-s4k3pbv0.js.map",
41
- "studio-chunks/studio-ask-panel-j4r3wbrv.js": "studio-chunks/studio-ask-panel-j4r3wbrv.js",
42
- "studio-chunks/studio-ask-panel-j4r3wbrv.js.map": "studio-chunks/studio-ask-panel-j4r3wbrv.js.map",
43
- "studio-chunks/studio-chat-workspace-essbhwrc.js": "studio-chunks/studio-chat-workspace-essbhwrc.js",
44
- "studio-chunks/studio-chat-workspace-essbhwrc.js.map": "studio-chunks/studio-chat-workspace-essbhwrc.js.map"
41
+ "studio-chunks/studio-ask-panel-436q7m2q.js": "studio-chunks/studio-ask-panel-436q7m2q.js",
42
+ "studio-chunks/studio-ask-panel-436q7m2q.js.map": "studio-chunks/studio-ask-panel-436q7m2q.js.map",
43
+ "studio-chunks/studio-chat-workspace-3q0cw97n.js": "studio-chunks/studio-chat-workspace-3q0cw97n.js",
44
+ "studio-chunks/studio-chat-workspace-3q0cw97n.js.map": "studio-chunks/studio-chat-workspace-3q0cw97n.js.map"
45
45
  }
46
46
  }
@@ -1,3 +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-ntg9v72p.js";import{Rb as Ve,Vb as ze,Wb as Je}from"./main-tn4apj9j.js";import{$b as x,Dc as Ce,Hc as Q,Ic as A,Jc as je,Oc as K,Pc as F,bc as y,cc as z,ed as ke,fc as ee,lc as Ke,md as qe,nc as Ye,nd as X,oc as He,pc as M,qc as L}from"./main-qtwkt52a.js";import{Od as i}from"./main-as971bnz.js";import{_e as te}from"./main-jrb0wvq4.js";import{Gf as b}from"./main-bgz7jfx7.js";var ae=b(te(),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(!Q(e))return!1;return typeof e.challenge==="string"&&Q(e.rp)&&Q(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 q(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 q(await this.fetchFn("/auth/account",{credentials:"same-origin",cache:"no-store"}),ie)).account}async mutatePluginSettings(e){return(await q(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 q(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 q(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 q(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 V(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 k(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,X.section),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(k,{title:"Profile",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,X.secondaryDisplay),children:a},void 0,!1,void 0,this),r.jsxDEV("span",{"data-account-role":g,className:o("account-role",c.role),children:Ce(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(z,{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(V,{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:ke(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(k,{title:"Linked identities",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(ee,{id:`setting-${a.id}-${s.name}`,name:s.name,defaultChecked:s.value===!0},void 0,!1,void 0,this):r.jsxDEV(z,{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(V,{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(k,{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(k,{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(V,{disabled:a||t.sessions.every((s)=>s.current),onClick:n.revokeOtherSessions,children:"End other sessions"},void 0,!1,void 0,this),r.jsxDEV(V,{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(te(),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 J(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 W(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(J,{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(J,{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(J,{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(J,{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(J,{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(k,{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(W,{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(W,{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 G=b(te(),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),ne="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]=G.useState(void 0),v=a!==void 0&&h!==void 0?$e(g,h,t.appPasswords,me(a)):null;G.useEffect(()=>{if(a&&v)Me(a,v)},[a,v]);let N=Math.floor(Date.now()/1000),[T,C]=G.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(k,{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(k,{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(ne)??"");if(P.trim()==="")return;n.createAppPassword(P.trim(),T?"write":"read"),Y.reset(),C(!1)},children:[l.jsxDEV("label",{htmlFor:ne,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(z,{id:ne,name:ne,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(ee,{id:Ue,"aria-label":"Allow saving changes",checked:T,onCheckedChange:C},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(k,{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(k,{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(W,{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(W,{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(te(),1);var oe={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),[C,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((S)=>{if(p)return;s(S),h(S.displayName)}).catch((S)=>{if(p)return;T(!0),v(Be(S))}),()=>{p=!0}},[t,n]);let P=w.useCallback(async(p,S,B)=>{D(!0),T(!1),v(p);try{let H=await B();if(H)s(H),h(H.displayName);v(S)}catch(H){T(!0),v(Be(H))}finally{D(!1)}},[]),fe=async(p)=>(await t.mutateAccount(p)).account,Z=(p,S)=>E({title:p.title,message:p.message,confirmLabel:p.confirmLabel,action:()=>{P(p.pending,p.complete,()=>fe(S))}});return{account:a,displayName:g,setDisplayName:h,status:O,error:N,busy:C,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)=>Z(oe.revokePasskey,{action:A.revokePasskey,confirmation:A.revokePasskey,credentialId:p}),revokeSession:(p)=>Z(oe.revokeSession,{action:A.revokeSession,confirmation:A.revokeSession,sessionId:p}),revokeOtherSessions:()=>Z(oe.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,S)=>{let B=be(p.fields,S);P(`Saving ${p.title}…`,`${p.title} updated.`,()=>t.mutatePluginSettings({action:"save",definitionId:p.id,values:B}))},createdAppPassword:f,createAppPassword:(p,S)=>{P("Creating app password…","App password created.",async()=>{let B=await t.mutateAccount({action:A.createAppPassword,confirmation:A.createAppPassword,label:p,...S==="write"?{access:S}:{}});return Y(B.appPassword??null),B.account})},dismissCreatedAppPassword:()=>Y(null),revokeAppPassword:(p)=>Z(oe.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",K,F];function st(e){let t=e.connect?F:it.find((n)=>n===e.initialSection);if(!t||t===K&&!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=ae.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,[C,D]=ae.useState(()=>st(e)),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(Ye,{className:"account-details",value:C,onValueChange:D,children:[m.jsxDEV(He,{"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:K,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:C!=="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:C!=="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:C!=="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:C!=="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:K,forceMount:!0,hidden:C!==K,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:C!==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(Ke,{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};
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-qqw5r5ap.js";import{Rb as Ve,Vb as ze,Wb as Je}from"./main-1h3h013a.js";import{$b as x,Dc as Ce,Hc as Q,Ic as A,Jc as je,Oc as K,Pc as F,bc as y,cc as z,ed as ke,fc as ee,lc as Ke,md as qe,nc as Ye,nd as X,oc as He,pc as M,qc as L}from"./main-wxhbkhkc.js";import{Od as i}from"./main-as971bnz.js";import{_e as te}from"./main-jrb0wvq4.js";import{Gf as b}from"./main-bgz7jfx7.js";var ae=b(te(),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(!Q(e))return!1;return typeof e.challenge==="string"&&Q(e.rp)&&Q(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 q(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 q(await this.fetchFn("/auth/account",{credentials:"same-origin",cache:"no-store"}),ie)).account}async mutatePluginSettings(e){return(await q(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 q(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 q(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 q(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 V(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 k(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,X.section),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(k,{title:"Profile",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,X.secondaryDisplay),children:a},void 0,!1,void 0,this),r.jsxDEV("span",{"data-account-role":g,className:o("account-role",c.role),children:Ce(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(z,{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(V,{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:ke(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(k,{title:"Linked identities",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(ee,{id:`setting-${a.id}-${s.name}`,name:s.name,defaultChecked:s.value===!0},void 0,!1,void 0,this):r.jsxDEV(z,{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(V,{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(k,{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(k,{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(V,{disabled:a||t.sessions.every((s)=>s.current),onClick:n.revokeOtherSessions,children:"End other sessions"},void 0,!1,void 0,this),r.jsxDEV(V,{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(te(),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 J(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 W(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(J,{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(J,{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(J,{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(J,{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(J,{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(k,{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(W,{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(W,{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 G=b(te(),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),ne="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]=G.useState(void 0),v=a!==void 0&&h!==void 0?$e(g,h,t.appPasswords,me(a)):null;G.useEffect(()=>{if(a&&v)Me(a,v)},[a,v]);let N=Math.floor(Date.now()/1000),[T,C]=G.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(k,{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(k,{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(ne)??"");if(P.trim()==="")return;n.createAppPassword(P.trim(),T?"write":"read"),Y.reset(),C(!1)},children:[l.jsxDEV("label",{htmlFor:ne,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(z,{id:ne,name:ne,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(ee,{id:Ue,"aria-label":"Allow saving changes",checked:T,onCheckedChange:C},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(k,{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(k,{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(W,{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(W,{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(te(),1);var oe={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),[C,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((S)=>{if(p)return;s(S),h(S.displayName)}).catch((S)=>{if(p)return;T(!0),v(Be(S))}),()=>{p=!0}},[t,n]);let P=w.useCallback(async(p,S,B)=>{D(!0),T(!1),v(p);try{let H=await B();if(H)s(H),h(H.displayName);v(S)}catch(H){T(!0),v(Be(H))}finally{D(!1)}},[]),fe=async(p)=>(await t.mutateAccount(p)).account,Z=(p,S)=>E({title:p.title,message:p.message,confirmLabel:p.confirmLabel,action:()=>{P(p.pending,p.complete,()=>fe(S))}});return{account:a,displayName:g,setDisplayName:h,status:O,error:N,busy:C,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)=>Z(oe.revokePasskey,{action:A.revokePasskey,confirmation:A.revokePasskey,credentialId:p}),revokeSession:(p)=>Z(oe.revokeSession,{action:A.revokeSession,confirmation:A.revokeSession,sessionId:p}),revokeOtherSessions:()=>Z(oe.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,S)=>{let B=be(p.fields,S);P(`Saving ${p.title}…`,`${p.title} updated.`,()=>t.mutatePluginSettings({action:"save",definitionId:p.id,values:B}))},createdAppPassword:f,createAppPassword:(p,S)=>{P("Creating app password…","App password created.",async()=>{let B=await t.mutateAccount({action:A.createAppPassword,confirmation:A.createAppPassword,label:p,...S==="write"?{access:S}:{}});return Y(B.appPassword??null),B.account})},dismissCreatedAppPassword:()=>Y(null),revokeAppPassword:(p)=>Z(oe.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",K,F];function st(e){let t=e.connect?F:it.find((n)=>n===e.initialSection);if(!t||t===K&&!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=ae.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,[C,D]=ae.useState(()=>st(e)),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(Ye,{className:"account-details",value:C,onValueChange:D,children:[m.jsxDEV(He,{"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:K,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:C!=="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:C!=="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:C!=="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:C!=="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:K,forceMount:!0,hidden:C!==K,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:C!==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(Ke,{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
2
 
3
3
  //# debugId=14ACE25D2F95206364756E2164756E21
@@ -0,0 +1,4 @@
1
+ import{$b as h,Ac as u,Fc as v,Gc as d,Yb as s}from"./main-wxhbkhkc.js";import{_e as y}from"./main-jrb0wvq4.js";import{Gf as k}from"./main-bgz7jfx7.js";var e={inset:{kLKAdn:"xijc0j3",kg3NbH:"x1tcxzho",k3VDzK:"xvl5zoi",kr1LIo:"xhqyr6a",$$css:!0},documentInset:{keoZOQ:"xseo6mj",kUOVxO:"x1i847zn",kcJqd2:"xg0897w",kLZkdG:"x1ka7yxb",$$css:!0},root:{k1xSpc:"xrvj5dj",kOIVth:"x167g77z",kogj98:"x1ghz6dp",kGO01o:"x1hhzuzn",kt9PQ7:"xlxy82",kfdmCh:"x1q0q8m5",kL6WhQ:"x1594w68",kh9fTk:"xzuy7g3",$$css:!0},navigation:{kBCFzs:"x1osaytk",$$css:!0},hasAction:{kumcoG:"xju1xpo",$$css:!0},control:{kSGwAc:"xamitd3",kFhvOy:"x1qab1bc",k7Eaqz:"xeuugli",kCrP1I:"x1yagzmq",kV7FkP:"x1re7oy7",$$css:!0},row:{k1xSpc:"xrvj5dj",kumcoG:"x1mkdm3x",kGNEyG:"x1pha0wt",kOIVth:"x1v2ro7d",k7Eaqz:"xeuugli",$$css:!0},copy:{k1xSpc:"x78zum5",kwnvtZ:"x1a02dak",kGNEyG:"x1pha0wt",kOIVth:"x1v2ro7d",k7Eaqz:"xeuugli",$$css:!0},titleGrow:{k1xSpc:"xrvj5dj",k5JduY:"x68pbbn",kVb13B:"x1snja1x",kMEsQN:"xx0cqyw",kduyaJ:"xajgrl3",kcTWDK:"xvikt2r",$$css:!0},titleInput:{k1xSpc:"x1lliihq",kJuA4N:"x1b1wf8y",kzqmXN:"xh8yej3",k7Eaqz:"xeuugli",kVQacm:"xb3r6kr",kHenm0:"xtt52l0",kHjlTd:"xj0a0fe",kogj98:"x1ghz6dp",kmVPX3:"x1717udv",kMzoRj:"xc342km",kaIpWk:"x12oqio5",kWkggS:"xjbqb8w",kMwMTN:"x1heor9g",kVVagm:"xln7xf2",ka26j:"xkyhvkk",kb6lSQ:"x4gjf66",kLWn49:"x15bjb6t",k8Qsv1:"x1wku8z5",kI3sdo:"x16dl9wz x18395pr",kInvED:"x1hl8ikr",$$css:!0},titleIssue:{k1xSpc:"x1lliihq",keoZOQ:"x1k70j0n",kMwMTN:"x1mel2pz",kMv6JI:"x5ddh9m",kGuDYH:"x4z9k3i",k63SB2:"xo1l8bm",kb6lSQ:"x12oo3zp",$$css:!0},title:{k7Eaqz:"xeuugli",ks0D6T:"x193iq5w",kogj98:"x1ghz6dp",kMwMTN:"xqvuw85",kMv6JI:"xssy22x",kGuDYH:"xqozcyj",ka26j:"x17owtcr",k63SB2:"x1s688f",kb6lSQ:"x1w69ole",kLWn49:"x1159mfc",kHjlTd:"xj0a0fe",kr4CYY:"x13i2va0",kFKdQ1:"xc3hpf1",kHdLCk:"x5dg28r",kOqvnJ:"xmi8g4k",kN0ZIM:"x5ih01h",keaIxW:"xhmgfki",$$css:!0},metadata:{k1xSpc:"x78zum5",kwnvtZ:"x1a02dak",kGNEyG:"x6s0dn4",kOIVth:"x17d4w8g",kMwMTN:"x1ar3pfp",kGuDYH:"x1qt5hsa",kr4CYY:"xxgfmko",$$css:!0},phoneHidden:{k7Eaqz:"xeuugli",kHdLCk:"xkaaz9w",$$css:!0},phoneBarred:{kt9PQ7:"xlxy82 xg3gpzv",kGO01o:"x1hhzuzn xlw6zc2",$$css:!0},statusDetail:{kMwMTN:"x1ar3pfp",kMv6JI:"x5ddh9m",kGuDYH:"x1j6dyjg",kLWn49:"x1evy7pa",$$css:!0},facts:{k1xSpc:"x78zum5",kwnvtZ:"x1a02dak",kOIVth:"xhypsl1",kogj98:"x1ghz6dp",kmVPX3:"x1717udv",kB88ic:"xe8uvvx",kMwMTN:"x1ar3pfp",kMv6JI:"x5ddh9m",kGuDYH:"xif65rj",kr4CYY:"x1yzm3l3",$$css:!0},fact:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kOIVth:"x167g77z",$$css:!0},factMark:{kzqmXN:"x1xc55vz",kZKoxP:"xdk7pt",kmuXW:"x2lah0s",kaIpWk:"x16rqkct",kWkggS:"xtwfq29",$$css:!0},totals:{k1xSpc:"x78zum5",kwnvtZ:"x1a02dak",kOIVth:"x1v2ro7d",kogj98:"x1ghz6dp",$$css:!0},total:{k1xSpc:"x3nfvp2",kGNEyG:"x1pha0wt",kOIVth:"x1nejdyq",$$css:!0},totalLabel:{kMwMTN:"x1ar3pfp",kMv6JI:"x5ddh9m",kGuDYH:"x1j6dyjg",$$css:!0},totalValue:{kogj98:"x1ghz6dp",kMwMTN:"xqvuw85",kMv6JI:"xa9opjo",kGuDYH:"xfifm61",k63SB2:"x1s688f",$$css:!0},action:{kVAEAm:"x1n2onr6",kY2c9j:"xoegz02",koQZXg:"x8x9d4c",ks0D6T:"x193iq5w",kmuXW:"x2lah0s",kKwN1N:"x1pyp8la",kKq9zD:"xfl54mv",kRugJJ:"x13bo2ae",kfX6GZ:"x170sw7g",kp4SAw:"x1ynha1y",$$css:!0}};var m={body:{kUk6DE:"x98rzlu",kAzted:"x2lwn1j",k1xSpc:"xrvj5dj",kGNEyG:"x1qjc9v5",k9llMU:"x5o4joa",kRnz6y:"x13me3c",k9pwkU:"xch1w8t x8mpkbv",kSQbcb:"x1mgqk5d",keaIxW:"x7zq708 x1sqw5yv",$$css:!0},editor:{k1xSpc:"xrvj5dj",kumcoG:"x1q0n783 x1l1zzp x1efj4vi x4jmfmw",k9llMU:"xxq7klm",kAzted:"x2lwn1j",k7Eaqz:"xeuugli",k9pwkU:"x1y6iwit",keaIxW:"xhmgfki",$$css:!0},head:{kBCFzs:"x1osaytk",kbNqZ1:"x1ms6mhf",$$css:!0},colophon:{kBCFzs:"x1npkx4u x1gw0dv9",kbNqZ1:"x7sv70a",kAzted:"x2lwn1j",k7Eaqz:"xeuugli",kORKVm:"x1odjw0f",k1xSpc:"x1tugbw3 x1idufoc",kWkggS:"xbslqsl",kmVPX3:"xga4tv",kubnTK:"x1llo3lq",kOLLwu:"x4pt66b",kU6wY8:"xnoo4qv",kRugJJ:"x1pvtvnk",kq8Ghq:"x171z6dy",$$css:!0},detailsSheet:{kVAEAm:"x12u6v07",kbCHJM:"x172uiah",kCIrl2:"x106zgql",krVfgx:"x1imafyg",kY2c9j:"x1u2u1qb",kskxy:"x13cfglm",kORKVm:"x1odjw0f xscgqpg",kZeWKH:"xg0x1tt",kIxVMA:"x126vn7o",ksF3WI:"x1abwb35",kLKAdn:"x9desvi x1vy0343",kGO01o:"xefzj8c xw27878",kGVxlE:"x12br0k5",$$css:!0},fullWidthProperties:{kBCFzs:"x1osaytk",kZ1KPB:"xyj58a3",$$css:!0},fields:{kMzoRj:"xc342km",kogj98:"x1ghz6dp",kmVPX3:"x1717udv",k7Eaqz:"xeuugli",$$css:!0},manuscript:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kBCFzs:"xgkxs2y",kbNqZ1:"x7sv70a",kAzted:"x2lwn1j",k7Eaqz:"xeuugli",k9g6sI:"x12h1iku",kWkggS:"x18s3upu",kRnz6y:"x13me3c",kCrP1I:"x1gw0dv9",kU6wY8:"xnoo4qv",kKq9zD:"xscgqpg",kHdLCk:"x1ux6vrq",$$css:!0},colophonHidden:{k1xSpc:"x1s85apg",$$css:!0},inspectorToggle:{k1xSpc:"xkaaz9w",$$css:!0},pipeline:{kBCFzs:"x1osaytk",kbNqZ1:"xz51j44",kVAEAm:"x1n2onr6",k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1v2ro7d",kwnvtZ:"x1a02dak",kmVPX3:"xxmtint",kAzted:"xvkrg5o",kEmTf6:"x1anjdel",kBoZxP:"xj3o16p",kCrP1I:"x1gw0dv9",kU6wY8:"x1dhnagk",kHdLCk:"x10acg2q",k1JLwA:"x1lk34zc",kLyoy9:"x1d3ddqg",kTWfjk:"xiyjfb3",kRugJJ:"x11btecl",kLZC3w:"xvg7k2t x1e76f22",kWkggS:"x18s3upu x1r2i3kv",$$css:!0},detailsToggle:{k1xSpc:"x1s85apg x13v5x0x",kAzted:"x1gg8mnh",$$css:!0},saveState:{k1xSpc:"x78zum5",kwnvtZ:"x1a02dak",kGNEyG:"x1pha0wt",k1C7PZ:"x1amjocr",khm7nJ:"x1dbijih",$$css:!0},compactStatus:{k1xSpc:"x1s85apg xdsa2pc xfsj286 xbuh8fq",k7Eaqz:"xeuugli",kVQacm:"xb3r6kr",kMwMTN:"xulty9s x15g7g0v",kMv6JI:"xa9opjo",kGuDYH:"xdzlmae",kb6lSQ:"x2ujxvm",kLWn49:"x1xfvgam",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",$$css:!0},compactValue:{k1xSpc:"x1lliihq",kVQacm:"xb3r6kr",kMwMTN:"x19k5i5u",kGuDYH:"xvwhms9",kg5iWk:"xlyipyv",$$css:!0}};var f=k(y(),1);var r=k(y(),1),i=null,c=new Set;function p(){for(let t of c)t()}function w(t){return c.add(t),()=>{c.delete(t)}}function I(){return r.useSyncExternalStore(w,()=>i?.content??null,()=>null)}function g(t,o){r.useLayoutEffect(()=>{if(!o)return;return i={owner:t,content:o},p(),()=>{if(i?.owner!==t)return;i=null,p()}})}var a=k(h(),1);function j(t){switch(t){case"public":return{kind:"session",label:"Signed in"};case"trusted":return{kind:"permission",label:"Trusted"};case"admin":return{kind:"permission",label:"Admin only"}}}function O(t){let o=t.model.metadata?.slice(0,4)??[],x=t.model.totals.slice(0,4),[S]=f.useState(()=>Symbol("page head")),b=t.appearance!=="document";g(S,b?{title:t.model.title,...t.back?{back:t.back}:{},...t.action?{action:t.action}:{}}:null);let z=o.length===0&&!t.model.status&&x.length===0&&!t.model.facts?.length&&!t.control;if(t.appearance==="document")return a.jsxDEV("header",{className:d("studio-page-head",e.root,e.row,Boolean(t.action)&&e.hasAction,e.documentInset,m.head,!t.titleEditor&&e.phoneHidden),"data-studio-page-head":"true","data-has-status":"false","data-has-totals":"false",children:[t.navigation?a.jsxDEV("nav",{"aria-label":"Collection navigation",...s(e.navigation,e.phoneHidden),children:t.navigation},void 0,!1,void 0,this):null,a.jsxDEV("div",{...s(e.copy),children:a.jsxDEV("h1",{className:d("",e.title),children:t.titleEditor??t.model.title},void 0,!1,void 0,this)},void 0,!1,void 0,this),t.action?a.jsxDEV("div",{className:d("studio-page-head-action",e.action,e.phoneHidden),children:t.action},void 0,!1,void 0,this):null]},void 0,!0,void 0,this);return a.jsxDEV("header",{className:d("studio-page-head",e.root,e.phoneBarred,z&&e.phoneHidden),"aria-description":t.model.description,"data-studio-page-head":"true","data-studio-head-barred":"","data-has-status":t.model.status?"true":"false","data-has-totals":x.length>0?"true":"false",children:[t.navigation?a.jsxDEV("nav",{"aria-label":"Collection navigation",...s(e.navigation),children:t.navigation},void 0,!1,void 0,this):null,a.jsxDEV("div",{className:d("studio-page-head-title-row",e.row,Boolean(t.action??t.control)&&e.hasAction),children:[a.jsxDEV("div",{...s(e.copy),children:[a.jsxDEV("h1",{...s(e.title,e.phoneHidden),children:t.titleEditor??t.model.title},void 0,!1,void 0,this),o.length>0&&a.jsxDEV("div",{className:d("studio-page-head-metadata",e.metadata),children:o.map((n,l)=>a.jsxDEV("span",{...s(l>0&&e.phoneHidden),children:[l>0&&a.jsxDEV("span",{"aria-hidden":"true",children:"· "},void 0,!1,void 0,this),n]},`${n}:${l}`,!0,void 0,this))},void 0,!1,void 0,this),t.model.status&&a.jsxDEV("span",{className:d("studio-head-status",v.status,u(t.model.status.tone),x.length>0&&e.phoneHidden),"data-tone":t.model.status.tone??"neutral",children:[t.model.status.label,t.model.status.detail&&a.jsxDEV("small",{...s(e.statusDetail),children:t.model.status.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),x.length>0&&a.jsxDEV("dl",{className:d("studio-page-head-totals",e.totals),children:x.map((n,l)=>a.jsxDEV("div",{"data-tone":n.tone??"neutral",...s(e.total,l>0&&n.tone!=="warn"&&n.tone!=="error"&&e.phoneHidden),children:[a.jsxDEV("dt",{...s(e.totalLabel),children:n.label},void 0,!1,void 0,this),a.jsxDEV("dd",{...s(e.totalValue,u(n.tone)),children:n.value},void 0,!1,void 0,this)]},`${n.label}:${l}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),t.control&&a.jsxDEV("div",{...s(e.control),"data-studio-head-control":"",children:t.control},void 0,!1,void 0,this),t.action&&a.jsxDEV("div",{className:d("studio-page-head-action",e.action,e.phoneHidden),"data-studio-primary-action":"true","data-operator-action-popover":"",children:t.action},void 0,!1,void 0,this)]},void 0,!0,void 0,this),t.model.facts&&t.model.facts.length>0&&a.jsxDEV("ul",{"aria-label":"Status",...s(e.facts),children:t.model.facts.map((n,l)=>a.jsxDEV("li",{"data-tone":n.tone??"neutral",...s(e.fact),children:[a.jsxDEV("span",{"aria-hidden":"true",...s(e.factMark,u(n.tone))},void 0,!1,void 0,this),n.label]},`${n.label}:${l}`,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function R(t,o){return{...o.kicker?{kicker:o.kicker}:{},access:j(t.permission),title:o.title??t.label,...o.description?{description:o.description}:{},...o.status?{status:o.status}:{},...o.facts?.length?{facts:o.facts}:{},totals:[],...o.primaryAction?{primaryAction:o.primaryAction}:{}}}
2
+ export{e as Rb,m as Sb,I as Tb,g as Ub,j as Vb,O as Wb,R as Xb};
3
+
4
+ //# debugId=7E42B68E12826CCE64756E2164756E21
@@ -0,0 +1,13 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../ui-react/src/studio-page-head.styles.ts", "../../ui-react/src/studio-editor-layout.styles.ts", "../../ui-react/src/studio-page-head.tsx", "../../ui-react/src/phone-bar.ts"],
4
+ "sourcesContent": [
5
+ "import * as stylex from \"@stylexjs/stylex\";\nconst WIDE_INSET = 36;\nconst PHONE_INLINE_INSET = 20;\nconst PHONE_TOP_INSET = 24;\nexport const headStyles: Record<\"root\" | \"inset\" | \"documentInset\" | \"row\" | \"hasAction\" | \"control\" | \"copy\" | \"title\" | \"titleInput\" | \"titleGrow\" | \"titleIssue\" | \"metadata\" | \"phoneHidden\" | \"phoneBarred\" | \"statusDetail\" | \"facts\" | \"fact\" | \"factMark\" | \"totals\" | \"total\" | \"totalLabel\" | \"totalValue\" | \"action\" | \"navigation\", stylex.StyleXStyles> = {\n inset: {\n kLKAdn: \"xijc0j3\",\n kg3NbH: \"x1tcxzho\",\n k3VDzK: \"xvl5zoi\",\n kr1LIo: \"xhqyr6a\",\n $$css: true\n },\n documentInset: {\n keoZOQ: \"xseo6mj\",\n kUOVxO: \"x1i847zn\",\n kcJqd2: \"xg0897w\",\n kLZkdG: \"x1ka7yxb\",\n $$css: true\n },\n root: {\n k1xSpc: \"xrvj5dj\",\n kOIVth: \"x167g77z\",\n kogj98: \"x1ghz6dp\",\n kGO01o: \"x1hhzuzn\",\n kt9PQ7: \"xlxy82\",\n kfdmCh: \"x1q0q8m5\",\n kL6WhQ: \"x1594w68\",\n kh9fTk: \"xzuy7g3\",\n $$css: true\n },\n navigation: {\n kBCFzs: \"x1osaytk\",\n $$css: true\n },\n hasAction: {\n kumcoG: \"xju1xpo\",\n $$css: true\n },\n control: {\n kSGwAc: \"xamitd3\",\n kFhvOy: \"x1qab1bc\",\n k7Eaqz: \"xeuugli\",\n kCrP1I: \"x1yagzmq\",\n kV7FkP: \"x1re7oy7\",\n $$css: true\n },\n row: {\n k1xSpc: \"xrvj5dj\",\n kumcoG: \"x1mkdm3x\",\n kGNEyG: \"x1pha0wt\",\n kOIVth: \"x1v2ro7d\",\n k7Eaqz: \"xeuugli\",\n $$css: true\n },\n copy: {\n k1xSpc: \"x78zum5\",\n kwnvtZ: \"x1a02dak\",\n kGNEyG: \"x1pha0wt\",\n kOIVth: \"x1v2ro7d\",\n k7Eaqz: \"xeuugli\",\n $$css: true\n },\n titleGrow: {\n k1xSpc: \"xrvj5dj\",\n k5JduY: \"x68pbbn\",\n kVb13B: \"x1snja1x\",\n kMEsQN: \"xx0cqyw\",\n kduyaJ: \"xajgrl3\",\n kcTWDK: \"xvikt2r\",\n $$css: true\n },\n titleInput: {\n k1xSpc: \"x1lliihq\",\n kJuA4N: \"x1b1wf8y\",\n kzqmXN: \"xh8yej3\",\n k7Eaqz: \"xeuugli\",\n kVQacm: \"xb3r6kr\",\n kHenm0: \"xtt52l0\",\n kHjlTd: \"xj0a0fe\",\n kogj98: \"x1ghz6dp\",\n kmVPX3: \"x1717udv\",\n kMzoRj: \"xc342km\",\n kaIpWk: \"x12oqio5\",\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x1heor9g\",\n kVVagm: \"xln7xf2\",\n ka26j: \"xkyhvkk\",\n kb6lSQ: \"x4gjf66\",\n kLWn49: \"x15bjb6t\",\n k8Qsv1: \"x1wku8z5\",\n kI3sdo: \"x16dl9wz x18395pr\",\n kInvED: \"x1hl8ikr\",\n $$css: true\n },\n titleIssue: {\n k1xSpc: \"x1lliihq\",\n keoZOQ: \"x1k70j0n\",\n kMwMTN: \"x1mel2pz\",\n kMv6JI: \"x5ddh9m\",\n kGuDYH: \"x4z9k3i\",\n k63SB2: \"xo1l8bm\",\n kb6lSQ: \"x12oo3zp\",\n $$css: true\n },\n title: {\n k7Eaqz: \"xeuugli\",\n ks0D6T: \"x193iq5w\",\n kogj98: \"x1ghz6dp\",\n kMwMTN: \"xqvuw85\",\n kMv6JI: \"xssy22x\",\n kGuDYH: \"xqozcyj\",\n ka26j: \"x17owtcr\",\n k63SB2: \"x1s688f\",\n kb6lSQ: \"x1w69ole\",\n kLWn49: \"x1159mfc\",\n kHjlTd: \"xj0a0fe\",\n kr4CYY: \"x13i2va0\",\n kFKdQ1: \"xc3hpf1\",\n kHdLCk: \"x5dg28r\",\n kOqvnJ: \"xmi8g4k\",\n kN0ZIM: \"x5ih01h\",\n keaIxW: \"xhmgfki\",\n $$css: true\n },\n metadata: {\n k1xSpc: \"x78zum5\",\n kwnvtZ: \"x1a02dak\",\n kGNEyG: \"x6s0dn4\",\n kOIVth: \"x17d4w8g\",\n kMwMTN: \"x1ar3pfp\",\n kGuDYH: \"x1qt5hsa\",\n kr4CYY: \"xxgfmko\",\n $$css: true\n },\n phoneHidden: {\n k7Eaqz: \"xeuugli\",\n kHdLCk: \"xkaaz9w\",\n $$css: true\n },\n phoneBarred: {\n kt9PQ7: \"xlxy82 xg3gpzv\",\n kGO01o: \"x1hhzuzn xlw6zc2\",\n $$css: true\n },\n statusDetail: {\n kMwMTN: \"x1ar3pfp\",\n kMv6JI: \"x5ddh9m\",\n kGuDYH: \"x1j6dyjg\",\n kLWn49: \"x1evy7pa\",\n $$css: true\n },\n facts: {\n k1xSpc: \"x78zum5\",\n kwnvtZ: \"x1a02dak\",\n kOIVth: \"xhypsl1\",\n kogj98: \"x1ghz6dp\",\n kmVPX3: \"x1717udv\",\n kB88ic: \"xe8uvvx\",\n kMwMTN: \"x1ar3pfp\",\n kMv6JI: \"x5ddh9m\",\n kGuDYH: \"xif65rj\",\n kr4CYY: \"x1yzm3l3\",\n $$css: true\n },\n fact: {\n k1xSpc: \"x3nfvp2\",\n kGNEyG: \"x6s0dn4\",\n kOIVth: \"x167g77z\",\n $$css: true\n },\n factMark: {\n kzqmXN: \"x1xc55vz\",\n kZKoxP: \"xdk7pt\",\n kmuXW: \"x2lah0s\",\n kaIpWk: \"x16rqkct\",\n kWkggS: \"xtwfq29\",\n $$css: true\n },\n totals: {\n k1xSpc: \"x78zum5\",\n kwnvtZ: \"x1a02dak\",\n kOIVth: \"x1v2ro7d\",\n kogj98: \"x1ghz6dp\",\n $$css: true\n },\n total: {\n k1xSpc: \"x3nfvp2\",\n kGNEyG: \"x1pha0wt\",\n kOIVth: \"x1nejdyq\",\n $$css: true\n },\n totalLabel: {\n kMwMTN: \"x1ar3pfp\",\n kMv6JI: \"x5ddh9m\",\n kGuDYH: \"x1j6dyjg\",\n $$css: true\n },\n totalValue: {\n kogj98: \"x1ghz6dp\",\n kMwMTN: \"xqvuw85\",\n kMv6JI: \"xa9opjo\",\n kGuDYH: \"xfifm61\",\n k63SB2: \"x1s688f\",\n $$css: true\n },\n action: {\n kVAEAm: \"x1n2onr6\",\n kY2c9j: \"xoegz02\",\n koQZXg: \"x8x9d4c\",\n ks0D6T: \"x193iq5w\",\n kmuXW: \"x2lah0s\",\n kKwN1N: \"x1pyp8la\",\n kKq9zD: \"xfl54mv\",\n kRugJJ: \"x13bo2ae\",\n kfX6GZ: \"x170sw7g\",\n kp4SAw: \"x1ynha1y\",\n $$css: true\n }\n};",
6
+ "import * as stylex from \"@stylexjs/stylex\";\ntype LayoutStyle = \"body\" | \"editor\" | \"head\" | \"colophon\" | \"fullWidthProperties\" | \"fields\" | \"manuscript\" | \"pipeline\" | \"inspectorToggle\" | \"colophonHidden\" | \"detailsSheet\" | \"detailsToggle\" | \"saveState\" | \"compactStatus\" | \"compactValue\";\nexport const editorLayoutStyles: Record<LayoutStyle, stylex.StyleXStyles> = {\n body: {\n kUk6DE: \"x98rzlu\",\n kAzted: \"x2lwn1j\",\n k1xSpc: \"xrvj5dj\",\n kGNEyG: \"x1qjc9v5\",\n k9llMU: \"x5o4joa\",\n kRnz6y: \"x13me3c\",\n k9pwkU: \"xch1w8t x8mpkbv\",\n kSQbcb: \"x1mgqk5d\",\n keaIxW: \"x7zq708 x1sqw5yv\",\n $$css: true\n },\n editor: {\n k1xSpc: \"xrvj5dj\",\n kumcoG: \"x1q0n783 x1l1zzp x1efj4vi x4jmfmw\",\n k9llMU: \"xxq7klm\",\n kAzted: \"x2lwn1j\",\n k7Eaqz: \"xeuugli\",\n k9pwkU: \"x1y6iwit\",\n keaIxW: \"xhmgfki\",\n $$css: true\n },\n head: {\n kBCFzs: \"x1osaytk\",\n kbNqZ1: \"x1ms6mhf\",\n $$css: true\n },\n colophon: {\n kBCFzs: \"x1npkx4u x1gw0dv9\",\n kbNqZ1: \"x7sv70a\",\n kAzted: \"x2lwn1j\",\n k7Eaqz: \"xeuugli\",\n kORKVm: \"x1odjw0f\",\n k1xSpc: \"x1tugbw3 x1idufoc\",\n kWkggS: \"xbslqsl\",\n kmVPX3: \"xga4tv\",\n kubnTK: \"x1llo3lq\",\n kOLLwu: \"x4pt66b\",\n kU6wY8: \"xnoo4qv\",\n kRugJJ: \"x1pvtvnk\",\n kq8Ghq: \"x171z6dy\",\n $$css: true\n },\n detailsSheet: {\n kVAEAm: \"x12u6v07\",\n kbCHJM: \"x172uiah\",\n kCIrl2: \"x106zgql\",\n krVfgx: \"x1imafyg\",\n kY2c9j: \"x1u2u1qb\",\n kskxy: \"x13cfglm\",\n kORKVm: \"x1odjw0f xscgqpg\",\n kZeWKH: \"xg0x1tt\",\n kIxVMA: \"x126vn7o\",\n ksF3WI: \"x1abwb35\",\n kLKAdn: \"x9desvi x1vy0343\",\n kGO01o: \"xefzj8c xw27878\",\n kGVxlE: \"x12br0k5\",\n $$css: true\n },\n fullWidthProperties: {\n kBCFzs: \"x1osaytk\",\n kZ1KPB: \"xyj58a3\",\n $$css: true\n },\n fields: {\n kMzoRj: \"xc342km\",\n kogj98: \"x1ghz6dp\",\n kmVPX3: \"x1717udv\",\n k7Eaqz: \"xeuugli\",\n $$css: true\n },\n manuscript: {\n k1xSpc: \"x78zum5\",\n kXwgrk: \"xdt5ytf\",\n kBCFzs: \"xgkxs2y\",\n kbNqZ1: \"x7sv70a\",\n kAzted: \"x2lwn1j\",\n k7Eaqz: \"xeuugli\",\n k9g6sI: \"x12h1iku\",\n kWkggS: \"x18s3upu\",\n kRnz6y: \"x13me3c\",\n kCrP1I: \"x1gw0dv9\",\n kU6wY8: \"xnoo4qv\",\n kKq9zD: \"xscgqpg\",\n kHdLCk: \"x1ux6vrq\",\n $$css: true\n },\n colophonHidden: {\n k1xSpc: \"x1s85apg\",\n $$css: true\n },\n inspectorToggle: {\n k1xSpc: \"xkaaz9w\",\n $$css: true\n },\n pipeline: {\n kBCFzs: \"x1osaytk\",\n kbNqZ1: \"xz51j44\",\n kVAEAm: \"x1n2onr6\",\n k1xSpc: \"x78zum5\",\n kGNEyG: \"x6s0dn4\",\n kOIVth: \"x1v2ro7d\",\n kwnvtZ: \"x1a02dak\",\n kmVPX3: \"xxmtint\",\n kAzted: \"xvkrg5o\",\n kEmTf6: \"x1anjdel\",\n kBoZxP: \"xj3o16p\",\n kCrP1I: \"x1gw0dv9\",\n kU6wY8: \"x1dhnagk\",\n kHdLCk: \"x10acg2q\",\n k1JLwA: \"x1lk34zc\",\n kLyoy9: \"x1d3ddqg\",\n kTWfjk: \"xiyjfb3\",\n kRugJJ: \"x11btecl\",\n kLZC3w: \"xvg7k2t x1e76f22\",\n kWkggS: \"x18s3upu x1r2i3kv\",\n $$css: true\n },\n detailsToggle: {\n k1xSpc: \"x1s85apg x13v5x0x\",\n kAzted: \"x1gg8mnh\",\n $$css: true\n },\n saveState: {\n k1xSpc: \"x78zum5\",\n kwnvtZ: \"x1a02dak\",\n kGNEyG: \"x1pha0wt\",\n k1C7PZ: \"x1amjocr\",\n khm7nJ: \"x1dbijih\",\n $$css: true\n },\n compactStatus: {\n k1xSpc: \"x1s85apg xdsa2pc xfsj286 xbuh8fq\",\n k7Eaqz: \"xeuugli\",\n kVQacm: \"xb3r6kr\",\n kMwMTN: \"xulty9s x15g7g0v\",\n kMv6JI: \"xa9opjo\",\n kGuDYH: \"xdzlmae\",\n kb6lSQ: \"x2ujxvm\",\n kLWn49: \"x1xfvgam\",\n kg5iWk: \"xlyipyv\",\n khDVqt: \"xuxw1ft\",\n $$css: true\n },\n compactValue: {\n k1xSpc: \"x1lliihq\",\n kVQacm: \"xb3r6kr\",\n kMwMTN: \"x19k5i5u\",\n kGuDYH: \"xvwhms9\",\n kg5iWk: \"xlyipyv\",\n $$css: true\n }\n};",
7
+ "/** @jsxImportSource react */\nimport * as stylex from \"@stylexjs/stylex\";\nimport { toneText } from \"@brains/app-ui-react\";\nimport { headStyles as s } from \"./studio-page-head.styles\";\nimport { editorLayoutStyles as layout } from \"./studio-editor-layout.styles\";\nimport type { RuntimeOperatorActionControl, RuntimeStudioOperatorView, RuntimeStudioOperatorViewFact, RuntimeStudioOperatorViewStatus } from \"@brains/sdk/internal/service-runtime\";\nimport type { UserPermissionLevel } from \"@brains/sdk/interfaces\";\nimport { useState, type ReactElement, type ReactNode } from \"react\";\nimport { usePublishPhoneBar } from \"./phone-bar\";\nimport type { StudioWorkspaceInfo } from \"./api\";\nimport { editorClassName as editorClass, editorStyles } from \"./studio-editor.styles\";\ntype StudioHeadTotal = Extract<RuntimeStudioOperatorView[\"blocks\"][number], {\n readonly type: \"stats\";\n}>[\"items\"][number];\nexport type StudioAccessRequirement = {\n readonly kind: \"session\";\n readonly label: \"Signed in\";\n} | {\n readonly kind: \"permission\";\n readonly label: \"Trusted\" | \"Admin only\";\n};\nexport interface StudioPageHeadModel {\n readonly kicker?: string | undefined;\n readonly access: StudioAccessRequirement;\n readonly title: string;\n readonly metadata?: readonly string[] | undefined;\n readonly description?: string | undefined;\n readonly status?: RuntimeStudioOperatorViewStatus | undefined;\n readonly facts?: readonly RuntimeStudioOperatorViewFact[] | undefined;\n readonly totals: readonly StudioHeadTotal[];\n readonly primaryAction?: RuntimeOperatorActionControl | undefined;\n}\nexport function studioAccessRequirement(permission: UserPermissionLevel): StudioAccessRequirement {\n switch (permission) {\n case \"public\":\n return {\n kind: \"session\",\n label: \"Signed in\"\n };\n case \"trusted\":\n return {\n kind: \"permission\",\n label: \"Trusted\"\n };\n case \"admin\":\n return {\n kind: \"permission\",\n label: \"Admin only\"\n };\n }\n}\nexport function StudioPageHead(props: {\n readonly model: StudioPageHeadModel;\n readonly action?: ReactNode;\n /** A choice beside the title, such as a period, before any action. */\n readonly control?: ReactNode;\n /** Edits the title in place of the heading's text, as a document does. */\n readonly titleEditor?: ReactNode;\n readonly navigation?: ReactNode;\n /** Where the page sits under; on a phone, the top bar's way back. */\n readonly back?: {\n readonly label: string;\n readonly onBack: () => void;\n };\n readonly appearance?: \"document\";\n}): ReactElement {\n const metadata = props.model.metadata?.slice(0, 4) ?? [];\n const totals = props.model.totals.slice(0, 4);\n const [owner] = useState(() => Symbol(\"page head\"));\n // On a phone the top bar carries the page's name, way back and action.\n const barred = props.appearance !== \"document\";\n usePublishPhoneBar(owner, barred ? {\n title: props.model.title,\n ...(props.back ? {\n back: props.back\n } : {}),\n ...(props.action ? {\n action: props.action\n } : {})\n } : null);\n // What stays in the page on a phone, once the bar has the rest.\n const phoneEmpty = metadata.length === 0 && !props.model.status && totals.length === 0 && !props.model.facts?.length && !props.control;\n if (props.appearance === \"document\") {\n return <header className={editorClass(\"studio-page-head\", s.root, s.row, Boolean(props.action) && s.hasAction, s.documentInset, layout.head, !props.titleEditor && s.phoneHidden)} data-studio-page-head=\"true\" data-has-status=\"false\" data-has-totals=\"false\">\n {props.navigation ? <nav aria-label=\"Collection navigation\" {...stylex.props(s.navigation, s.phoneHidden)}>\n {props.navigation}\n </nav> : null}\n <div {...stylex.props(s.copy)}>\n <h1 className={editorClass(\"\", s.title)}>\n {props.titleEditor ?? props.model.title}\n </h1>\n </div>\n {props.action ? <div className={editorClass(\"studio-page-head-action\", s.action, s.phoneHidden)}>\n {props.action}\n </div> : null}\n </header>;\n }\n return <header className={editorClass(\"studio-page-head\", s.root, s.phoneBarred, phoneEmpty && s.phoneHidden)} aria-description={props.model.description} data-studio-page-head=\"true\" data-studio-head-barred=\"\" data-has-status={props.model.status ? \"true\" : \"false\"} data-has-totals={totals.length > 0 ? \"true\" : \"false\"}>\n {props.navigation ? <nav aria-label=\"Collection navigation\" {...stylex.props(s.navigation)}>\n {props.navigation}\n </nav> : null}\n <div className={editorClass(\"studio-page-head-title-row\", s.row, Boolean(props.action ?? props.control) && s.hasAction)}>\n <div {...stylex.props(s.copy)}>\n <h1 {...stylex.props(s.title, s.phoneHidden)}>\n {props.titleEditor ?? props.model.title}\n </h1>\n {metadata.length > 0 && <div className={editorClass(\"studio-page-head-metadata\", s.metadata)}>\n {metadata.map((item, index) => <span key={`${item}:${index}`} {...stylex.props(index > 0 && s.phoneHidden)}>\n {index > 0 && <span aria-hidden=\"true\">· </span>}\n {item}\n </span>)}\n </div>}\n {props.model.status && <span className={editorClass(\"studio-head-status\", editorStyles.status, toneText(props.model.status.tone), totals.length > 0 && s.phoneHidden)} data-tone={props.model.status.tone ?? \"neutral\"}>\n {props.model.status.label}\n {props.model.status.detail && <small {...stylex.props(s.statusDetail)}>\n {props.model.status.detail}\n </small>}\n </span>}\n {totals.length > 0 && <dl className={editorClass(\"studio-page-head-totals\", s.totals)}>\n {totals.map((item, index) => <div key={`${item.label}:${index}`} data-tone={item.tone ?? \"neutral\"} {...stylex.props(s.total, index > 0 && item.tone !== \"warn\" && item.tone !== \"error\" && s.phoneHidden)}>\n <dt {...stylex.props(s.totalLabel)}>{item.label}</dt>\n <dd {...stylex.props(s.totalValue, toneText(item.tone))}>\n {item.value}\n </dd>\n </div>)}\n </dl>}\n </div>\n {props.control && <div {...stylex.props(s.control)} data-studio-head-control=\"\">\n {props.control}\n </div>}\n {props.action && <div className={editorClass(\"studio-page-head-action\", s.action, s.phoneHidden)} data-studio-primary-action=\"true\" data-operator-action-popover=\"\">\n {props.action}\n </div>}\n </div>\n {props.model.facts && props.model.facts.length > 0 && <ul aria-label=\"Status\" {...stylex.props(s.facts)}>\n {props.model.facts.map((fact, index) => <li key={`${fact.label}:${index}`} data-tone={fact.tone ?? \"neutral\"} {...stylex.props(s.fact)}>\n <span aria-hidden=\"true\" {...stylex.props(s.factMark, toneText(fact.tone))} />\n {fact.label}\n </li>)}\n </ul>}\n </header>;\n}\n\n/** Normalize declarative semantics without removing or rewriting body blocks. */\nexport function declarativeStudioPageHead(workspace: StudioWorkspaceInfo, view: RuntimeStudioOperatorView): StudioPageHeadModel {\n return {\n ...(view.kicker ? {\n kicker: view.kicker\n } : {}),\n access: studioAccessRequirement(workspace.permission),\n title: view.title ?? workspace.label,\n ...(view.description ? {\n description: view.description\n } : {}),\n ...(view.status ? {\n status: view.status\n } : {}),\n ...(view.facts?.length ? {\n facts: view.facts\n } : {}),\n // Stats already appear in the workspace body; do not repeat them above it.\n totals: [],\n ...(view.primaryAction ? {\n primaryAction: view.primaryAction\n } : {})\n };\n}",
8
+ "import { useLayoutEffect, useSyncExternalStore, type ReactNode } from \"react\";\n\n/**\n * What the open page puts in Studio's top bar on a phone: its name, the way\n * back to what it sits under, and its one primary action. The page's own head\n * drops those there, so a phone has one bar, as the mockups draw it.\n */\nexport interface PhoneBarContent {\n readonly title?: string | undefined;\n readonly back?: { readonly label: string; readonly onBack: () => void };\n readonly action?: ReactNode;\n}\n\nlet current: { owner: symbol; content: PhoneBarContent } | null = null;\nconst listeners = new Set<() => void>();\n\nfunction emit(): void {\n for (const listener of listeners) listener();\n}\n\nfunction subscribe(listener: () => void): () => void {\n listeners.add(listener);\n return (): void => {\n listeners.delete(listener);\n };\n}\n\n/** The open page's bar content, or none when no page has claimed the bar. */\nexport function usePhoneBar(): PhoneBarContent | null {\n return useSyncExternalStore(\n subscribe,\n () => current?.content ?? null,\n () => null,\n );\n}\n\n/** Claims the top bar for the open page while it is mounted. */\nexport function usePublishPhoneBar(\n owner: symbol,\n content: PhoneBarContent | null,\n): void {\n useLayoutEffect(() => {\n if (!content) return undefined;\n current = { owner, content };\n emit();\n return (): void => {\n if (current?.owner !== owner) return;\n current = null;\n emit();\n };\n });\n}\n"
9
+ ],
10
+ "mappings": "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",
11
+ "debugId": "7E42B68E12826CCE64756E2164756E21",
12
+ "names": []
13
+ }