@hanzo/app 0.3.73 → 0.3.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/personas/abai_qunanbaiuly.svg +3 -3
- package/assets/personas/ada.svg +3 -3
- package/assets/personas/adonis.svg +3 -3
- package/assets/personas/aime_cesaire.svg +3 -3
- package/assets/personas/al_biruni.svg +3 -3
- package/assets/personas/al_farabi.svg +3 -3
- package/assets/personas/al_khwarizmi.svg +3 -3
- package/assets/personas/al_kindi.svg +3 -3
- package/assets/personas/alan_watts.svg +3 -3
- package/assets/personas/alexandra_david_neel.svg +3 -3
- package/assets/personas/alisher_navoi.svg +3 -3
- package/assets/personas/amir_khusrau.svg +3 -3
- package/assets/personas/angelou.svg +3 -3
- package/assets/personas/anne_sexton.svg +3 -3
- package/assets/personas/aquinas.svg +3 -3
- package/assets/personas/aryabhata.svg +3 -3
- package/assets/personas/attar.svg +3 -3
- package/assets/personas/augustine.svg +3 -3
- package/assets/personas/averroes.svg +3 -3
- package/assets/personas/avicenna.svg +3 -3
- package/assets/personas/baal_shem_tov.svg +3 -3
- package/assets/personas/baha_ullah.svg +3 -3
- package/assets/personas/basho.svg +3 -3
- package/assets/personas/basil_great.svg +3 -3
- package/assets/personas/bernard_clairvaux.svg +3 -3
- package/assets/personas/bhaskara_ii.svg +3 -3
- package/assets/personas/brahmagupta.svg +3 -3
- package/assets/personas/cao_xueqin.svg +3 -3
- package/assets/personas/cesare_beccaria.svg +3 -3
- package/assets/personas/chikamatsu_monzaemon.svg +3 -3
- package/assets/personas/christiaan_huygens.svg +3 -3
- package/assets/personas/cicero.svg +3 -3
- package/assets/personas/clarice_lispector.svg +3 -3
- package/assets/personas/claudio_monteverdi.svg +3 -3
- package/assets/personas/clement_alexandria.svg +3 -3
- package/assets/personas/coltrane.svg +3 -3
- package/assets/personas/constance_garnett.svg +3 -3
- package/assets/personas/creative.svg +3 -3
- package/assets/personas/cv_raman.svg +3 -3
- package/assets/personas/cynthia_dwork.svg +3 -3
- package/assets/personas/dali.svg +3 -3
- package/assets/personas/david_bowie.svg +3 -3
- package/assets/personas/david_chaum.svg +3 -3
- package/assets/personas/davis.svg +3 -3
- package/assets/personas/desmond_tutu.svg +3 -3
- package/assets/personas/dogen.svg +3 -3
- package/assets/personas/donald_knuth.svg +3 -3
- package/assets/personas/du_fu.svg +3 -3
- package/assets/personas/edgar_codd.svg +3 -3
- package/assets/personas/eileen_chang.svg +3 -3
- package/assets/personas/emilie_du_chatelet.svg +3 -3
- package/assets/personas/emmeline_pankhurst.svg +3 -3
- package/assets/personas/forugh_farrokhzad.svg +3 -3
- package/assets/personas/france_preseren.svg +3 -3
- package/assets/personas/frances_perkins.svg +3 -3
- package/assets/personas/franz_schubert.svg +3 -3
- package/assets/personas/gabriel_garcia_marquez.svg +3 -3
- package/assets/personas/gabriela_mistral.svg +3 -3
- package/assets/personas/galois.svg +3 -3
- package/assets/personas/gandhi.svg +3 -3
- package/assets/personas/gao_xingjian.svg +3 -3
- package/assets/personas/geoffrey_hinton.svg +2 -2
- package/assets/personas/george_eliot.svg +3 -3
- package/assets/personas/george_martin.svg +3 -3
- package/assets/personas/georges_lemaitre.svg +3 -3
- package/assets/personas/giambattista_vico.svg +3 -3
- package/assets/personas/godel.svg +3 -3
- package/assets/personas/goethe.svg +3 -3
- package/assets/personas/gregory_nazianzus.svg +3 -3
- package/assets/personas/gregory_palamas.svg +3 -3
- package/assets/personas/grothendieck.svg +3 -3
- package/assets/personas/guru_nanak.svg +3 -3
- package/assets/personas/hafez.svg +3 -3
- package/assets/personas/hickey.svg +2 -2
- package/assets/personas/hildegard_bingen.svg +3 -3
- package/assets/personas/hua_luogeng.svg +3 -3
- package/assets/personas/hubert_dreyfus.svg +3 -3
- package/assets/personas/hugo.svg +3 -3
- package/assets/personas/ibn_al_haytham.svg +3 -3
- package/assets/personas/ibn_arabi.svg +3 -3
- package/assets/personas/jack_ma.svg +3 -3
- package/assets/personas/jamsetji_tata.svg +3 -3
- package/assets/personas/janis_joplin.svg +3 -3
- package/assets/personas/jcr_licklider.svg +3 -3
- package/assets/personas/jerome.svg +3 -3
- package/assets/personas/jimi_hendrix.svg +3 -3
- package/assets/personas/john_cage.svg +3 -3
- package/assets/personas/john_maynard_keynes.svg +3 -3
- package/assets/personas/john_wanamaker.svg +3 -3
- package/assets/personas/joseph_weizenbaum.svg +3 -3
- package/assets/personas/junichiro_tanizaki.svg +3 -3
- package/assets/personas/kalidasa.svg +3 -3
- package/assets/personas/kamo_no_chomei.svg +3 -3
- package/assets/personas/kaoru_ishikawa.svg +3 -3
- package/assets/personas/karen_sparck_jones.svg +3 -3
- package/assets/personas/katsushika_hokusai.svg +3 -3
- package/assets/personas/khalil_gibran.svg +3 -3
- package/assets/personas/kovalevskaya.svg +3 -3
- package/assets/personas/kunihiko_fukushima.svg +3 -3
- package/assets/personas/kwasi_wiredu.svg +3 -3
- package/assets/personas/leibniz.svg +3 -3
- package/assets/personas/leo_burnett.svg +3 -3
- package/assets/personas/li_qingzhao.svg +3 -3
- package/assets/personas/liu_hui.svg +3 -3
- package/assets/personas/lu_xun.svg +3 -3
- package/assets/personas/lucretius.svg +3 -3
- package/assets/personas/madhava.svg +3 -3
- package/assets/personas/madonna.svg +3 -3
- package/assets/personas/mahmoud_darwish.svg +3 -3
- package/assets/personas/maimonides.svg +3 -3
- package/assets/personas/mandela.svg +3 -3
- package/assets/personas/mandela_contextual.svg +3 -3
- package/assets/personas/mariama_ba.svg +3 -3
- package/assets/personas/marina_tsvetaeva.svg +3 -3
- package/assets/personas/mary_parker_follett.svg +3 -3
- package/assets/personas/mary_shelley.svg +3 -3
- package/assets/personas/massimo_vignelli.svg +2 -2
- package/assets/personas/meister_eckhart.svg +3 -3
- package/assets/personas/miguel_angel_asturias.svg +3 -3
- package/assets/personas/mircea_eliade.svg +3 -3
- package/assets/personas/mirza_ghalib.svg +3 -3
- package/assets/personas/morrison.svg +3 -3
- package/assets/personas/muhammad_ali.svg +3 -3
- package/assets/personas/murasaki_shikibu.svg +3 -3
- package/assets/personas/nagarjuna.svg +3 -3
- package/assets/personas/nazim_hikmet.svg +3 -3
- package/assets/personas/nguyen_du.svg +3 -3
- package/assets/personas/nina_simone.svg +3 -3
- package/assets/personas/nishida_kitaro.svg +3 -3
- package/assets/personas/nizami.svg +3 -3
- package/assets/personas/norbert_wiener.svg +3 -3
- package/assets/personas/paglia.svg +2 -2
- package/assets/personas/pascal.svg +3 -3
- package/assets/personas/plato.svg +3 -3
- package/assets/personas/plotinus.svg +3 -3
- package/assets/personas/plutarch.svg +3 -3
- package/assets/personas/pramoedya_ananta_toer.svg +3 -3
- package/assets/personas/premchand.svg +3 -3
- package/assets/personas/prince.svg +3 -3
- package/assets/personas/pseudo_dionysius.svg +3 -3
- package/assets/personas/ptolemy.svg +3 -3
- package/assets/personas/pythagoras.svg +3 -3
- package/assets/personas/qu_yuan.svg +3 -3
- package/assets/personas/queen_liliuokalani.svg +3 -3
- package/assets/personas/rabia_al_adawiyya.svg +3 -3
- package/assets/personas/radia_perlman.svg +3 -3
- package/assets/personas/ralph_ellison.svg +3 -3
- package/assets/personas/ralph_merkle.svg +3 -3
- package/assets/personas/ramanujan.svg +3 -3
- package/assets/personas/ravi_shankar.svg +3 -3
- package/assets/personas/richard_victor.svg +3 -3
- package/assets/personas/robert_boyle.svg +3 -3
- package/assets/personas/romulo_gallegos.svg +3 -3
- package/assets/personas/ruben_dario.svg +3 -3
- package/assets/personas/rumi.svg +3 -3
- package/assets/personas/rumi_contextual.svg +3 -3
- package/assets/personas/saadi.svg +3 -3
- package/assets/personas/samuel_johnson.svg +3 -3
- package/assets/personas/sei_shonagon.svg +3 -3
- package/assets/personas/seki_takakazu.svg +3 -3
- package/assets/personas/sergey_brin.svg +3 -3
- package/assets/personas/sesshu_toyo.svg +3 -3
- package/assets/personas/shafi_goldwasser.svg +3 -3
- package/assets/personas/shen_congwen.svg +3 -3
- package/assets/personas/shen_kuo.svg +3 -3
- package/assets/personas/shitao.svg +3 -3
- package/assets/personas/sima_guang.svg +3 -3
- package/assets/personas/sima_qian.svg +3 -3
- package/assets/personas/sor_juana_ines_de_la_cruz.svg +3 -3
- package/assets/personas/stanley_marcus.svg +3 -3
- package/assets/personas/taher_elgamal.svg +3 -3
- package/assets/personas/tatsumi_hijikata.svg +3 -3
- package/assets/personas/tesla.svg +3 -3
- package/assets/personas/thelonious_monk.svg +3 -3
- package/assets/personas/thurgood_marshall.svg +3 -3
- package/assets/personas/tim_burton.svg +3 -3
- package/assets/personas/toru_takemitsu.svg +3 -3
- package/assets/personas/tpope.svg +3 -3
- package/assets/personas/trevor_noah.svg +3 -3
- package/assets/personas/tsongkhapa.svg +3 -3
- package/assets/personas/u_thant.svg +3 -3
- package/assets/personas/verghese_kurien.svg +3 -3
- package/assets/personas/vs_naipaul.svg +3 -3
- package/assets/personas/wang_anshi.svg +3 -3
- package/assets/personas/wang_wei.svg +3 -3
- package/assets/personas/wang_yangming.svg +3 -3
- package/assets/personas/whitfield_diffie.svg +3 -3
- package/assets/personas/william_harvey.svg +3 -3
- package/assets/personas/xunzi.svg +3 -3
- package/assets/personas/yasunari_kawabata.svg +3 -3
- package/assets/personas/yogananda.svg +3 -3
- package/assets/personas/yukio_mishima.svg +3 -3
- package/assets/personas/zeami_motokiyo.svg +3 -3
- package/assets/personas/zeekay.svg +2 -2
- package/assets/personas/zhu_xi.svg +3 -3
- package/assets/personas/zora_neale_hurston.svg +3 -3
- package/dist/PreferencesDialog.d.ts +5 -0
- package/dist/PreferencesDialog.js +25 -0
- package/dist/bots/Bots.js +1 -1
- package/dist/bots/Panel.d.ts +3 -4
- package/dist/bots/Panel.js +74 -36
- package/dist/bots/Roster.js +40 -22
- package/dist/bots/Thread.d.ts +0 -1
- package/dist/bots/Thread.js +45 -30
- package/dist/bots/face.d.ts +3 -1
- package/dist/bots/face.js +12 -8
- package/dist/bots/grid.d.ts +1 -1
- package/dist/bots/grid.js +17 -2
- package/dist/bots/ink.d.ts +6 -6
- package/dist/bots/ink.js +8 -16
- package/dist/bots/kit.d.ts +13 -12
- package/dist/bots/kit.js +33 -11
- package/dist/bots/said.d.ts +16 -0
- package/dist/bots/said.js +63 -0
- package/dist/team.gen.js +1 -1
- package/package.json +2 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="vs_naipaul">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="g-vs_naipaul" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#
|
|
3
|
+
<linearGradient id="g-vs_naipaul" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#585858"/><stop offset="1" stop-color="#141414"/></linearGradient>
|
|
4
4
|
<radialGradient id="f-vs_naipaul" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#fac6a0"/><stop offset="1" stop-color="#c7936d"/></radialGradient>
|
|
5
5
|
<clipPath id="c-vs_naipaul"><circle cx="128" cy="128" r="128"/></clipPath>
|
|
6
6
|
</defs>
|
|
7
7
|
<g clip-path="url(#c-vs_naipaul)">
|
|
8
8
|
<rect width="256" height="256" fill="url(#g-vs_naipaul)"/>
|
|
9
|
-
<circle cx="96" cy="76" r="84" fill="#
|
|
10
|
-
<path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#
|
|
9
|
+
<circle cx="96" cy="76" r="84" fill="#bcbcbc" opacity=".14"/>
|
|
10
|
+
<path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#6a6a6a"/><path d="M26 256 C30 212 66 194 128 194 C100 212 96 240 98 256 Z" fill="#7e7e7e" opacity=".5"/><path d="M104 194 L128 226 L152 194 Z" fill="#f0f0f0"/><path d="M122 210 L134 210 L138 252 L128 260 L118 252 Z" fill="#bcbcbc"/>
|
|
11
11
|
<rect x="110" y="168" width="36" height="36" rx="14" fill="#c18d67"/>
|
|
12
12
|
<ellipse cx="68" cy="128" rx="9" ry="13" fill="#d39f79"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#d39f79"/>
|
|
13
13
|
<ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-vs_naipaul)"/>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="wang_anshi">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="g-wang_anshi" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#
|
|
3
|
+
<linearGradient id="g-wang_anshi" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#585858"/><stop offset="1" stop-color="#141414"/></linearGradient>
|
|
4
4
|
<radialGradient id="f-wang_anshi" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#fac6a0"/><stop offset="1" stop-color="#c7936d"/></radialGradient>
|
|
5
5
|
<clipPath id="c-wang_anshi"><circle cx="128" cy="128" r="128"/></clipPath>
|
|
6
6
|
</defs>
|
|
7
7
|
<g clip-path="url(#c-wang_anshi)">
|
|
8
8
|
<rect width="256" height="256" fill="url(#g-wang_anshi)"/>
|
|
9
|
-
<circle cx="96" cy="76" r="84" fill="#
|
|
10
|
-
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#
|
|
9
|
+
<circle cx="96" cy="76" r="84" fill="#bcbcbc" opacity=".14"/>
|
|
10
|
+
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#6a6a6a"/><path d="M26 256 C30 212 66 194 128 194 C100 212 96 240 98 256 Z" fill="#7e7e7e" opacity=".5"/><path d="M58 206 L146 256 L198 206" stroke="#f0f0f0" stroke-width="14" opacity=".85" fill="none"/>
|
|
11
11
|
<rect x="110" y="168" width="36" height="36" rx="14" fill="#c18d67"/>
|
|
12
12
|
<ellipse cx="68" cy="128" rx="9" ry="13" fill="#d39f79"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#d39f79"/>
|
|
13
13
|
<ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-wang_anshi)"/>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="wang_wei">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="g-wang_wei" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#
|
|
3
|
+
<linearGradient id="g-wang_wei" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#585858"/><stop offset="1" stop-color="#141414"/></linearGradient>
|
|
4
4
|
<radialGradient id="f-wang_wei" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#fac6a0"/><stop offset="1" stop-color="#c7936d"/></radialGradient>
|
|
5
5
|
<clipPath id="c-wang_wei"><circle cx="128" cy="128" r="128"/></clipPath>
|
|
6
6
|
</defs>
|
|
7
7
|
<g clip-path="url(#c-wang_wei)">
|
|
8
8
|
<rect width="256" height="256" fill="url(#g-wang_wei)"/>
|
|
9
|
-
<circle cx="96" cy="76" r="84" fill="#
|
|
10
|
-
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#
|
|
9
|
+
<circle cx="96" cy="76" r="84" fill="#bcbcbc" opacity=".14"/>
|
|
10
|
+
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#6a6a6a"/><path d="M26 256 C30 212 66 194 128 194 C100 212 96 240 98 256 Z" fill="#7e7e7e" opacity=".5"/><path d="M58 206 L146 256 L198 206" stroke="#f0f0f0" stroke-width="14" opacity=".85" fill="none"/>
|
|
11
11
|
<rect x="110" y="168" width="36" height="36" rx="14" fill="#c18d67"/>
|
|
12
12
|
<ellipse cx="68" cy="128" rx="9" ry="13" fill="#d39f79"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#d39f79"/>
|
|
13
13
|
<ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-wang_wei)"/>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="wang_yangming">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="g-wang_yangming" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#
|
|
3
|
+
<linearGradient id="g-wang_yangming" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#585858"/><stop offset="1" stop-color="#141414"/></linearGradient>
|
|
4
4
|
<radialGradient id="f-wang_yangming" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#fac6a0"/><stop offset="1" stop-color="#c7936d"/></radialGradient>
|
|
5
5
|
<clipPath id="c-wang_yangming"><circle cx="128" cy="128" r="128"/></clipPath>
|
|
6
6
|
</defs>
|
|
7
7
|
<g clip-path="url(#c-wang_yangming)">
|
|
8
8
|
<rect width="256" height="256" fill="url(#g-wang_yangming)"/>
|
|
9
|
-
<circle cx="96" cy="76" r="84" fill="#
|
|
10
|
-
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#
|
|
9
|
+
<circle cx="96" cy="76" r="84" fill="#bcbcbc" opacity=".14"/>
|
|
10
|
+
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#6a6a6a"/><path d="M26 256 C30 212 66 194 128 194 C100 212 96 240 98 256 Z" fill="#7e7e7e" opacity=".5"/><path d="M58 206 L146 256 L198 206" stroke="#f0f0f0" stroke-width="14" opacity=".85" fill="none"/>
|
|
11
11
|
<rect x="110" y="168" width="36" height="36" rx="14" fill="#c18d67"/>
|
|
12
12
|
<ellipse cx="68" cy="128" rx="9" ry="13" fill="#d39f79"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#d39f79"/>
|
|
13
13
|
<ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-wang_yangming)"/>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="whitfield_diffie">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="g-whitfield_diffie" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#
|
|
3
|
+
<linearGradient id="g-whitfield_diffie" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#585858"/><stop offset="1" stop-color="#141414"/></linearGradient>
|
|
4
4
|
<radialGradient id="f-whitfield_diffie" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#ffedcd"/><stop offset="1" stop-color="#ddba9a"/></radialGradient>
|
|
5
5
|
<clipPath id="c-whitfield_diffie"><circle cx="128" cy="128" r="128"/></clipPath>
|
|
6
6
|
</defs>
|
|
7
7
|
<g clip-path="url(#c-whitfield_diffie)">
|
|
8
8
|
<rect width="256" height="256" fill="url(#g-whitfield_diffie)"/>
|
|
9
|
-
<circle cx="96" cy="76" r="84" fill="#
|
|
10
|
-
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#5a3a22"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#
|
|
9
|
+
<circle cx="96" cy="76" r="84" fill="#bcbcbc" opacity=".14"/>
|
|
10
|
+
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#5a3a22"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#6a6a6a"/><path d="M26 256 C30 212 66 194 128 194 C100 212 96 240 98 256 Z" fill="#7e7e7e" opacity=".5"/><path d="M58 206 L146 256 L198 206" stroke="#f0f0f0" stroke-width="14" opacity=".85" fill="none"/>
|
|
11
11
|
<rect x="110" y="168" width="36" height="36" rx="14" fill="#d7b494"/>
|
|
12
12
|
<ellipse cx="68" cy="128" rx="9" ry="13" fill="#e9c6a6"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#e9c6a6"/>
|
|
13
13
|
<ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-whitfield_diffie)"/>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="william_harvey">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="g-william_harvey" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#
|
|
3
|
+
<linearGradient id="g-william_harvey" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#585858"/><stop offset="1" stop-color="#141414"/></linearGradient>
|
|
4
4
|
<radialGradient id="f-william_harvey" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#ffedcd"/><stop offset="1" stop-color="#ddba9a"/></radialGradient>
|
|
5
5
|
<clipPath id="c-william_harvey"><circle cx="128" cy="128" r="128"/></clipPath>
|
|
6
6
|
</defs>
|
|
7
7
|
<g clip-path="url(#c-william_harvey)">
|
|
8
8
|
<rect width="256" height="256" fill="url(#g-william_harvey)"/>
|
|
9
|
-
<circle cx="96" cy="76" r="84" fill="#
|
|
10
|
-
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#5a3a22"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#
|
|
9
|
+
<circle cx="96" cy="76" r="84" fill="#bcbcbc" opacity=".14"/>
|
|
10
|
+
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#5a3a22"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#6a6a6a"/><path d="M26 256 C30 212 66 194 128 194 C100 212 96 240 98 256 Z" fill="#7e7e7e" opacity=".5"/><path d="M58 206 L146 256 L198 206" stroke="#f0f0f0" stroke-width="14" opacity=".85" fill="none"/>
|
|
11
11
|
<rect x="110" y="168" width="36" height="36" rx="14" fill="#d7b494"/>
|
|
12
12
|
<ellipse cx="68" cy="128" rx="9" ry="13" fill="#e9c6a6"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#e9c6a6"/>
|
|
13
13
|
<ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-william_harvey)"/>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="xunzi">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="g-xunzi" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#
|
|
3
|
+
<linearGradient id="g-xunzi" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#585858"/><stop offset="1" stop-color="#141414"/></linearGradient>
|
|
4
4
|
<radialGradient id="f-xunzi" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#fac6a0"/><stop offset="1" stop-color="#c7936d"/></radialGradient>
|
|
5
5
|
<clipPath id="c-xunzi"><circle cx="128" cy="128" r="128"/></clipPath>
|
|
6
6
|
</defs>
|
|
7
7
|
<g clip-path="url(#c-xunzi)">
|
|
8
8
|
<rect width="256" height="256" fill="url(#g-xunzi)"/>
|
|
9
|
-
<circle cx="96" cy="76" r="84" fill="#
|
|
10
|
-
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#
|
|
9
|
+
<circle cx="96" cy="76" r="84" fill="#bcbcbc" opacity=".14"/>
|
|
10
|
+
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#6a6a6a"/><path d="M26 256 C30 212 66 194 128 194 C100 212 96 240 98 256 Z" fill="#7e7e7e" opacity=".5"/><path d="M58 206 L146 256 L198 206" stroke="#f0f0f0" stroke-width="14" opacity=".85" fill="none"/>
|
|
11
11
|
<rect x="110" y="168" width="36" height="36" rx="14" fill="#c18d67"/>
|
|
12
12
|
<ellipse cx="68" cy="128" rx="9" ry="13" fill="#d39f79"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#d39f79"/>
|
|
13
13
|
<ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-xunzi)"/>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="yasunari_kawabata">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="g-yasunari_kawabata" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#
|
|
3
|
+
<linearGradient id="g-yasunari_kawabata" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#585858"/><stop offset="1" stop-color="#141414"/></linearGradient>
|
|
4
4
|
<radialGradient id="f-yasunari_kawabata" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#fac6a0"/><stop offset="1" stop-color="#c7936d"/></radialGradient>
|
|
5
5
|
<clipPath id="c-yasunari_kawabata"><circle cx="128" cy="128" r="128"/></clipPath>
|
|
6
6
|
</defs>
|
|
7
7
|
<g clip-path="url(#c-yasunari_kawabata)">
|
|
8
8
|
<rect width="256" height="256" fill="url(#g-yasunari_kawabata)"/>
|
|
9
|
-
<circle cx="96" cy="76" r="84" fill="#
|
|
10
|
-
<path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#
|
|
9
|
+
<circle cx="96" cy="76" r="84" fill="#bcbcbc" opacity=".14"/>
|
|
10
|
+
<path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#6a6a6a"/><path d="M26 256 C30 212 66 194 128 194 C100 212 96 240 98 256 Z" fill="#7e7e7e" opacity=".5"/><path d="M96 194 L128 230 L160 194" stroke="#bcbcbc" stroke-width="6" fill="none"/>
|
|
11
11
|
<rect x="110" y="168" width="36" height="36" rx="14" fill="#c18d67"/>
|
|
12
12
|
<ellipse cx="68" cy="128" rx="9" ry="13" fill="#d39f79"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#d39f79"/>
|
|
13
13
|
<ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-yasunari_kawabata)"/>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="yogananda">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="g-yogananda" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#
|
|
3
|
+
<linearGradient id="g-yogananda" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#585858"/><stop offset="1" stop-color="#141414"/></linearGradient>
|
|
4
4
|
<radialGradient id="f-yogananda" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#fac6a0"/><stop offset="1" stop-color="#c7936d"/></radialGradient>
|
|
5
5
|
<clipPath id="c-yogananda"><circle cx="128" cy="128" r="128"/></clipPath>
|
|
6
6
|
</defs>
|
|
7
7
|
<g clip-path="url(#c-yogananda)">
|
|
8
8
|
<rect width="256" height="256" fill="url(#g-yogananda)"/>
|
|
9
|
-
<circle cx="96" cy="76" r="84" fill="#
|
|
10
|
-
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#
|
|
9
|
+
<circle cx="96" cy="76" r="84" fill="#bcbcbc" opacity=".14"/>
|
|
10
|
+
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#6a6a6a"/><path d="M26 256 C30 212 66 194 128 194 C100 212 96 240 98 256 Z" fill="#7e7e7e" opacity=".5"/><path d="M58 206 L146 256 L198 206" stroke="#f0f0f0" stroke-width="14" opacity=".85" fill="none"/>
|
|
11
11
|
<rect x="110" y="168" width="36" height="36" rx="14" fill="#c18d67"/>
|
|
12
12
|
<ellipse cx="68" cy="128" rx="9" ry="13" fill="#d39f79"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#d39f79"/>
|
|
13
13
|
<ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-yogananda)"/>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="yukio_mishima">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="g-yukio_mishima" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#
|
|
3
|
+
<linearGradient id="g-yukio_mishima" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#585858"/><stop offset="1" stop-color="#141414"/></linearGradient>
|
|
4
4
|
<radialGradient id="f-yukio_mishima" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#fac6a0"/><stop offset="1" stop-color="#c7936d"/></radialGradient>
|
|
5
5
|
<clipPath id="c-yukio_mishima"><circle cx="128" cy="128" r="128"/></clipPath>
|
|
6
6
|
</defs>
|
|
7
7
|
<g clip-path="url(#c-yukio_mishima)">
|
|
8
8
|
<rect width="256" height="256" fill="url(#g-yukio_mishima)"/>
|
|
9
|
-
<circle cx="96" cy="76" r="84" fill="#
|
|
10
|
-
<path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#
|
|
9
|
+
<circle cx="96" cy="76" r="84" fill="#bcbcbc" opacity=".14"/>
|
|
10
|
+
<path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#6a6a6a"/><path d="M26 256 C30 212 66 194 128 194 C100 212 96 240 98 256 Z" fill="#7e7e7e" opacity=".5"/><path d="M96 194 L128 230 L160 194" stroke="#bcbcbc" stroke-width="6" fill="none"/>
|
|
11
11
|
<rect x="110" y="168" width="36" height="36" rx="14" fill="#c18d67"/>
|
|
12
12
|
<ellipse cx="68" cy="128" rx="9" ry="13" fill="#d39f79"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#d39f79"/>
|
|
13
13
|
<ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-yukio_mishima)"/>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="zeami_motokiyo">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="g-zeami_motokiyo" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#
|
|
3
|
+
<linearGradient id="g-zeami_motokiyo" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#585858"/><stop offset="1" stop-color="#141414"/></linearGradient>
|
|
4
4
|
<radialGradient id="f-zeami_motokiyo" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#fac6a0"/><stop offset="1" stop-color="#c7936d"/></radialGradient>
|
|
5
5
|
<clipPath id="c-zeami_motokiyo"><circle cx="128" cy="128" r="128"/></clipPath>
|
|
6
6
|
</defs>
|
|
7
7
|
<g clip-path="url(#c-zeami_motokiyo)">
|
|
8
8
|
<rect width="256" height="256" fill="url(#g-zeami_motokiyo)"/>
|
|
9
|
-
<circle cx="96" cy="76" r="84" fill="#
|
|
10
|
-
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#
|
|
9
|
+
<circle cx="96" cy="76" r="84" fill="#bcbcbc" opacity=".14"/>
|
|
10
|
+
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#6a6a6a"/><path d="M26 256 C30 212 66 194 128 194 C100 212 96 240 98 256 Z" fill="#7e7e7e" opacity=".5"/><path d="M58 206 L146 256 L198 206" stroke="#f0f0f0" stroke-width="14" opacity=".85" fill="none"/>
|
|
11
11
|
<rect x="110" y="168" width="36" height="36" rx="14" fill="#c18d67"/>
|
|
12
12
|
<ellipse cx="68" cy="128" rx="9" ry="13" fill="#d39f79"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#d39f79"/>
|
|
13
13
|
<ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-zeami_motokiyo)"/>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="zeekay">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="g-zeekay" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#
|
|
3
|
+
<linearGradient id="g-zeekay" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#595959"/><stop offset="1" stop-color="#1c1c1c"/></linearGradient>
|
|
4
4
|
<radialGradient id="f-zeekay" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#ffedcd"/><stop offset="1" stop-color="#ddba9a"/></radialGradient>
|
|
5
5
|
<clipPath id="c-zeekay"><circle cx="128" cy="128" r="128"/></clipPath>
|
|
6
6
|
</defs>
|
|
7
7
|
<g clip-path="url(#c-zeekay)">
|
|
8
8
|
<rect width="256" height="256" fill="url(#g-zeekay)"/>
|
|
9
|
-
<circle cx="96" cy="76" r="84" fill="#
|
|
9
|
+
<circle cx="96" cy="76" r="84" fill="#c2c2c2" opacity=".14"/>
|
|
10
10
|
<path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#18181b"/><rect x="104" y="182" width="48" height="24" rx="8" fill="#27272a"/>
|
|
11
11
|
<rect x="110" y="168" width="36" height="36" rx="14" fill="#d7b494"/>
|
|
12
12
|
<ellipse cx="68" cy="128" rx="9" ry="13" fill="#e9c6a6"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#e9c6a6"/>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="zhu_xi">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="g-zhu_xi" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#
|
|
3
|
+
<linearGradient id="g-zhu_xi" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#585858"/><stop offset="1" stop-color="#141414"/></linearGradient>
|
|
4
4
|
<radialGradient id="f-zhu_xi" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#fac6a0"/><stop offset="1" stop-color="#c7936d"/></radialGradient>
|
|
5
5
|
<clipPath id="c-zhu_xi"><circle cx="128" cy="128" r="128"/></clipPath>
|
|
6
6
|
</defs>
|
|
7
7
|
<g clip-path="url(#c-zhu_xi)">
|
|
8
8
|
<rect width="256" height="256" fill="url(#g-zhu_xi)"/>
|
|
9
|
-
<circle cx="96" cy="76" r="84" fill="#
|
|
10
|
-
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#
|
|
9
|
+
<circle cx="96" cy="76" r="84" fill="#bcbcbc" opacity=".14"/>
|
|
10
|
+
<path d="M62 118 C52 190 60 218 84 226 L172 226 C196 218 204 190 194 118 Z" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#6a6a6a"/><path d="M26 256 C30 212 66 194 128 194 C100 212 96 240 98 256 Z" fill="#7e7e7e" opacity=".5"/><path d="M58 206 L146 256 L198 206" stroke="#f0f0f0" stroke-width="14" opacity=".85" fill="none"/>
|
|
11
11
|
<rect x="110" y="168" width="36" height="36" rx="14" fill="#c18d67"/>
|
|
12
12
|
<ellipse cx="68" cy="128" rx="9" ry="13" fill="#d39f79"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#d39f79"/>
|
|
13
13
|
<ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-zhu_xi)"/>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="256" height="256" role="img" aria-label="zora_neale_hurston">
|
|
2
2
|
<defs>
|
|
3
|
-
<linearGradient id="g-zora_neale_hurston" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#
|
|
3
|
+
<linearGradient id="g-zora_neale_hurston" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#3a3a3a"/><stop offset="1" stop-color="#151515"/></linearGradient>
|
|
4
4
|
<radialGradient id="f-zora_neale_hurston" cx=".36" cy=".3" r=".8"><stop offset="0" stop-color="#c38b65"/><stop offset="1" stop-color="#905832"/></radialGradient>
|
|
5
5
|
<clipPath id="c-zora_neale_hurston"><circle cx="128" cy="128" r="128"/></clipPath>
|
|
6
6
|
</defs>
|
|
7
7
|
<g clip-path="url(#c-zora_neale_hurston)">
|
|
8
8
|
<rect width="256" height="256" fill="url(#g-zora_neale_hurston)"/>
|
|
9
|
-
<circle cx="96" cy="76" r="84" fill="#
|
|
10
|
-
<circle cx="128" cy="38" r="22" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#
|
|
9
|
+
<circle cx="96" cy="76" r="84" fill="#b3b3b3" opacity=".14"/>
|
|
10
|
+
<circle cx="128" cy="38" r="22" fill="#111827"/><path d="M26 256 C30 212 66 194 128 194 C190 194 226 212 230 256 Z" fill="#454545"/><path d="M26 256 C30 212 66 194 128 194 C100 212 96 240 98 256 Z" fill="#595959" opacity=".5"/><path d="M96 194 L128 230 L160 194" stroke="#b3b3b3" stroke-width="6" fill="none"/>
|
|
11
11
|
<rect x="110" y="168" width="36" height="36" rx="14" fill="#8a522c"/>
|
|
12
12
|
<ellipse cx="68" cy="128" rx="9" ry="13" fill="#9c643e"/><ellipse cx="188" cy="128" rx="9" ry="13" fill="#9c643e"/>
|
|
13
13
|
<ellipse cx="128" cy="120" rx="58" ry="62" fill="url(#f-zora_neale_hurston)"/>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
|
+
import { useI18n } from '@hanzo/i18n/react';
|
|
5
|
+
import { Dialog, DialogContent, DialogTitle, Input, XStack, YStack } from '@hanzo/ui';
|
|
6
|
+
import { Search, X } from 'lucide-react';
|
|
7
|
+
import { FIRST, SettingsList } from './Settings.js';
|
|
8
|
+
import { SettingsPane } from './SettingsPane.js';
|
|
9
|
+
export function PreferencesDialog({ open, onOpenChange, initialSection = FIRST, }) {
|
|
10
|
+
const { t } = useI18n();
|
|
11
|
+
const [active, setActive] = useState(initialSection);
|
|
12
|
+
const [filter, setFilter] = useState('');
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
if (open)
|
|
15
|
+
setActive(initialSection);
|
|
16
|
+
}, [open, initialSection]);
|
|
17
|
+
const pick = (row) => {
|
|
18
|
+
if (row.href) {
|
|
19
|
+
window.open(row.href, '_blank', 'noopener,noreferrer');
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
setActive(row.id);
|
|
23
|
+
};
|
|
24
|
+
return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { "data-slot": "preferences-dialog", width: "94vw", maxW: 980, height: "84vh", maxH: 760, p: 0, gap: 0, rounded: 14, overflow: "hidden", bg: "var(--pane-fill, var(--card))", borderWidth: 1, borderColor: "var(--pane-edge, var(--border))", children: [_jsx(DialogTitle, { display: "none", children: t('Settings') }), _jsxs(XStack, { flex: 1, minH: 0, width: "100%", children: [_jsxs(YStack, { width: 236, shrink: 0, height: "100%", bg: "var(--side-fill, var(--background))", borderRightWidth: 1, borderColor: "var(--pane-edge, var(--border))", "$max-md": { width: 184 }, children: [_jsx(XStack, { px: 12, pt: 12, pb: 8, shrink: 0, children: _jsxs(XStack, { flex: 1, height: 32, px: 10, gap: 7, items: "center", rounded: 8, bg: "var(--surface-card-emphasis)", borderWidth: 1, borderColor: "var(--pane-edge, var(--border))", children: [_jsx(Search, { size: 13, color: "var(--muted-foreground)", "aria-hidden": true }), _jsx(Input, { unstyled: true, value: filter, onChange: (e) => setFilter(e.target.value), placeholder: t('Search settings'), "aria-label": t('Search settings'), flex: 1, minW: 0, fontSize: 13, color: "var(--foreground)", placeholderTextColor: "$placeholderColor" })] }) }), _jsx(YStack, { flex: 1, minH: 0, px: 8, pb: 12, overflowY: "auto", overflowX: "hidden", children: _jsx(SettingsList, { active: active, filter: filter, onPick: pick, onBack: () => onOpenChange(false) }) })] }), _jsxs(YStack, { flex: 1, minW: 0, minH: 0, height: "100%", bg: "var(--pane-fill, var(--card))", position: "relative", children: [_jsx(XStack, { position: "absolute", t: 12, r: 14, z: 5, children: _jsx(XStack, { render: "button", type: 'button', "aria-label": t('Close'), onClick: () => onOpenChange(false), width: 32, height: 32, rounded: 999, items: "center", justify: "center", bg: "var(--surface-card-emphasis)", borderWidth: 1, borderColor: "var(--pane-edge, var(--border))", cursor: "pointer", hoverStyle: { bg: 'var(--secondary)' }, children: _jsx(X, { size: 15, color: "var(--foreground)", "aria-hidden": true }) }) }), _jsx(SettingsPane, { id: active })] })] })] }) }));
|
|
25
|
+
}
|
package/dist/bots/Bots.js
CHANGED
|
@@ -293,7 +293,7 @@ export function Bots({ foot = true, bot: held, onBot, } = {}) {
|
|
|
293
293
|
setSide(false);
|
|
294
294
|
setOver(false);
|
|
295
295
|
};
|
|
296
|
-
const panel = bot ? (_jsx(Panel, { bot: bot, kept: kept[bot.name] ?? '', onClose: close, onSchedule: schedule, onDelete: remove, focus: over && !laptop }, bot.name)) : null;
|
|
296
|
+
const panel = bot ? (_jsx(Panel, { bot: bot, runs: runs ?? [], kept: kept[bot.name] ?? '', onClose: close, onSchedule: schedule, onDelete: remove, focus: over && !laptop }, bot.name)) : null;
|
|
297
297
|
const shown = laptop ? side : over;
|
|
298
298
|
return (_jsxs(XStack, { "data-parity-key": "bots.window", width: "100%", height: "100%", overflow: "hidden", bg: FLOOR, position: "relative", children: [_jsx(YStack, { "data-parity-key": "bots.roster", width: 279, shrink: 0, height: "100%", bg: FLOOR, borderRightWidth: 1, borderColor: LINE, "$max-md": { width: '100%', borderRightWidth: 0, display: bot ? 'none' : 'flex' }, children: _jsx(Roster, { bots: bots, last: last, open: open, unread: unread, me: foot ? user : null, onPick: pick, onMake: () => setMaking(true), disabled: !live }) }), _jsx(YStack, { "data-parity-key": "bots.center", flex: 1, minW: 0, height: "100%", bg: GROUND, "$max-md": { display: bot ? 'flex' : 'none' }, children: _jsx(Thread, { bot: bot, bots: bots ?? [], runs: runs, pending: pending, notice: notice, wrong: wrong, side: shown, live: live, loaded: bots !== null, onSend: send, onDismiss: () => setNotice(null), onSide: () => (laptop ? setSide(!side) : setOver(!over)), onBack: back, onMake: () => setMaking(true) }) }), laptop && side && panel ? (_jsx(YStack, { "data-parity-key": "bots.panel", width: 319, shrink: 0, height: "100%", bg: GROUND, borderLeftWidth: 1, borderColor: LINE, "$max-xl": { display: 'none' }, children: panel })) : null, over && panel && !laptop ? (_jsx(YStack, { "data-parity-key": "bots.panel.over", role: "dialog", "aria-modal": true, "aria-label": bot?.name, position: "absolute", t: 0, r: 0, b: 0, width: 319, maxW: "100%", z: 10, bg: GROUND, borderLeftWidth: 1, borderColor: LINE, boxShadow: "var(--shadow-floating)", children: panel })) : null, making ? _jsx(Make, { onDone: made, onCancel: () => setMaking(false) }) : null] }));
|
|
299
299
|
}
|
package/dist/bots/Panel.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import type { Agent } from '@hanzo/ai';
|
|
2
|
-
export declare function Panel({ bot, onClose, kept, onSchedule, onDelete, focus, }: {
|
|
1
|
+
import type { Agent, AgentRun } from '@hanzo/ai';
|
|
2
|
+
export declare function Panel({ bot, runs, onClose, kept, onSchedule, onDelete, focus, }: {
|
|
3
3
|
bot: Agent;
|
|
4
|
-
|
|
4
|
+
runs?: readonly AgentRun[];
|
|
5
5
|
kept: string;
|
|
6
6
|
onClose: () => void;
|
|
7
7
|
onSchedule: (on: boolean, cron: string) => Promise<void>;
|
|
8
8
|
onDelete: () => Promise<void>;
|
|
9
|
-
/** Over the thread: the close control takes the focus, so Escape and Tab start here. */
|
|
10
9
|
focus?: boolean;
|
|
11
10
|
}): import("react").JSX.Element;
|
package/dist/bots/Panel.js
CHANGED
|
@@ -1,24 +1,36 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
import { useCallback, useEffect, useState } from 'react';
|
|
2
|
+
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
// The open bot's right inspector panel: avatar, name, [Activity | Library]
|
|
4
|
+
// segmented control, Upcoming routines & connected networks, Bot's computer
|
|
5
|
+
// status monitor, and Voice chat preferences.
|
|
6
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
7
7
|
import { useI18n } from '@hanzo/i18n/react';
|
|
8
8
|
import { Text, XStack, YStack } from '@hanzo/gui';
|
|
9
|
-
import { Button, Dialog, DialogContent, DialogTitle, Switch } from '@hanzo/ui';
|
|
10
|
-
import { Clock, X } from 'lucide-react';
|
|
9
|
+
import { Button, Dialog, DialogContent, DialogTitle, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, Switch, } from '@hanzo/ui';
|
|
10
|
+
import { ChevronDown, ChevronRight, Clock, FileText, Image as ImageIcon, X } from 'lucide-react';
|
|
11
|
+
import { useKept } from '../kept.js';
|
|
11
12
|
import { useAi } from '../lib/ai.js';
|
|
12
13
|
import { say } from '../failure.js';
|
|
13
14
|
import { Network, of } from '../network.js';
|
|
15
|
+
import { called } from '../team.js';
|
|
14
16
|
import { Face } from './face.js';
|
|
15
17
|
import { ALWAYS, answering, disk, grant } from './api.js';
|
|
16
18
|
import { CARD, CLIP, LABEL, PILL, ROUND, WORD } from './kit.js';
|
|
17
|
-
import { DIM, INK, LINE } from './ink.js';
|
|
19
|
+
import { DIM, INK, LINE, PICKED, RAISED } from './ink.js';
|
|
20
|
+
import { partsOf } from './said.js';
|
|
18
21
|
import { cron as words } from './time.js';
|
|
22
|
+
const VOICES = ['Liora', 'Aria', 'Sol', 'Koe', 'Nova', 'Echo'];
|
|
23
|
+
const SPEEDS = ['0.9x', '1x', '1.25x', '1.5x', '2x'];
|
|
24
|
+
const LANGUAGES = ['Auto-detect', 'English', 'Spanish', 'French', 'German', 'Japanese', 'Chinese'];
|
|
19
25
|
/** One row of a card: a mark, two lines, and whatever acts on it. */
|
|
20
|
-
function Row({ mark, title, line, children, last }) {
|
|
21
|
-
return (_jsxs(XStack, { minH:
|
|
26
|
+
function Row({ mark, title, line, children, last, }) {
|
|
27
|
+
return (_jsxs(XStack, { minH: 52, px: 13, py: 9, gap: 11, items: "center", borderBottomWidth: last ? 0 : 1, borderColor: LINE, children: [mark, _jsxs(YStack, { flex: 1, minW: 0, children: [_jsx(Text, { ...CLIP, fontSize: 14, lineHeight: 19, color: INK, children: title }), line ? (_jsx(Text, { ...CLIP, fontSize: 13, lineHeight: 18, color: DIM, children: line })) : null] }), children] }));
|
|
28
|
+
}
|
|
29
|
+
function VoiceRow({ label, value, options, onSelect, last, }) {
|
|
30
|
+
return (_jsxs(XStack, { minH: 44, px: 14, items: "center", justify: "space-between", borderBottomWidth: last ? 0 : 1, borderColor: LINE, children: [_jsx(Text, { fontSize: 14, lineHeight: 19, color: INK, children: label }), _jsxs(DropdownMenu, { placement: "bottom-end", offset: 6, children: [_jsx(DropdownMenuTrigger, { asChild: true, children: _jsxs(XStack, { render: "button", type: 'button', items: "center", gap: 5, px: 6, py: 4, rounded: 6, bg: "transparent", borderWidth: 0, cursor: "pointer", hoverStyle: { bg: PICKED }, children: [_jsx(Text, { fontSize: 14, lineHeight: 19, color: INK, children: value }), _jsx(ChevronDown, { size: 14, color: DIM, "aria-hidden": true })] }) }), _jsx(DropdownMenuContent, { minW: 160, "aria-label": label, children: options.map((opt) => (_jsx(DropdownMenuItem, { onSelect: () => onSelect(opt), children: _jsx(Text, { fontSize: "$3", color: "$ink", fontWeight: opt === value ? '600' : '400', children: opt }) }, opt))) })] })] }));
|
|
31
|
+
}
|
|
32
|
+
function ComputerScreen({ awake }) {
|
|
33
|
+
return (_jsx(YStack, { "aria-hidden": true, width: 56, height: 36, rounded: 9, shrink: 0, items: "center", justify: "center", position: "relative", overflow: "hidden", bg: PICKED, borderWidth: 1, borderColor: LINE, children: awake ? (_jsx(YStack, { width: 10, height: 10, rounded: 999, bg: "var(--state-online)" })) : (_jsxs(_Fragment, { children: [_jsx(Text, { position: "absolute", t: 2, r: 6, fontSize: 9, lineHeight: 10, fontWeight: "600", color: DIM, children: "z" }), _jsxs("svg", { width: "20", height: "18", viewBox: "0 0 20 18", fill: "none", "aria-hidden": "true", children: [_jsx("path", { d: "M10 16.2C10 16.2 2.5 11.4 2.5 6.3C2.5 3.8 4.4 2 6.7 2C8.1 2 9.3 2.7 10 3.8C10.7 2.7 11.9 2 13.3 2C15.6 2 17.5 3.8 17.5 6.3C17.5 11.4 10 16.2 10 16.2Z", fill: "currentColor", opacity: "0.34" }), _jsx("circle", { cx: "8.1", cy: "7.9", r: "0.9", fill: "var(--pane-fill, var(--card))" }), _jsx("circle", { cx: "11.9", cy: "7.9", r: "0.9", fill: "var(--pane-fill, var(--card))" })] })] })) }));
|
|
22
34
|
}
|
|
23
35
|
/** A computer's state as a person reads it. No lease is a computer asleep. */
|
|
24
36
|
function state(box, t) {
|
|
@@ -30,13 +42,12 @@ function state(box, t) {
|
|
|
30
42
|
return t('Waking');
|
|
31
43
|
return box.error || t('Stopped');
|
|
32
44
|
}
|
|
33
|
-
/** The computer to draw: a running one first, then one waking, then any. */
|
|
34
45
|
const best = (boxes) => boxes.find((b) => b.status === 'running') ?? boxes.find((b) => b.status === 'pending') ?? boxes[0] ?? null;
|
|
35
|
-
/** How often a waking computer is asked whether it is awake. */
|
|
36
46
|
const POLL = 5000;
|
|
37
|
-
export function Panel({ bot, onClose, kept, onSchedule, onDelete, focus = false, }) {
|
|
47
|
+
export function Panel({ bot, runs = [], onClose, kept, onSchedule, onDelete, focus = false, }) {
|
|
38
48
|
const { t, locale } = useI18n();
|
|
39
49
|
const { client } = useAi();
|
|
50
|
+
const [tab, setTab] = useState('activity');
|
|
40
51
|
const [instructions, setInstructions] = useState('');
|
|
41
52
|
const [answers, setAnswers] = useState([]);
|
|
42
53
|
const [box, setBox] = useState(null);
|
|
@@ -45,9 +56,12 @@ export function Panel({ bot, onClose, kept, onSchedule, onDelete, focus = false,
|
|
|
45
56
|
const [saving, setSaving] = useState(false);
|
|
46
57
|
const [wrong, setWrong] = useState(null);
|
|
47
58
|
const [deleting, setDeleting] = useState(false);
|
|
48
|
-
|
|
49
|
-
|
|
59
|
+
const [voiceName, setVoiceName] = useKept('hanzo.bots.voice.name', 'Liora');
|
|
60
|
+
const [voiceSpeed, setVoiceSpeed] = useKept('hanzo.bots.voice.speed', '1x');
|
|
61
|
+
const [voiceLang, setVoiceLang] = useKept('hanzo.bots.voice.lang', 'Auto-detect');
|
|
62
|
+
const displayName = called(bot.name);
|
|
50
63
|
const cron = bot.schedule || kept;
|
|
64
|
+
const activeSchedule = bot.executionMode === ALWAYS && Boolean(bot.schedule);
|
|
51
65
|
const survey = useCallback(async (signal) => {
|
|
52
66
|
if (!client)
|
|
53
67
|
return;
|
|
@@ -70,10 +84,12 @@ export function Panel({ bot, onClose, kept, onSchedule, onDelete, focus = false,
|
|
|
70
84
|
const bound = await Promise.allSettled(connected.map((n) => answering(client, n.id, signal)));
|
|
71
85
|
if (signal?.aborted)
|
|
72
86
|
return;
|
|
73
|
-
setAnswers(connected
|
|
87
|
+
setAnswers(connected
|
|
88
|
+
.filter((_, i) => {
|
|
74
89
|
const r = bound[i];
|
|
75
90
|
return r.status === 'fulfilled' && r.value.default === bot.name;
|
|
76
|
-
})
|
|
91
|
+
})
|
|
92
|
+
.map((n) => n.id));
|
|
77
93
|
}
|
|
78
94
|
}, [client, bot.name]);
|
|
79
95
|
useEffect(() => {
|
|
@@ -81,7 +97,6 @@ export function Panel({ bot, onClose, kept, onSchedule, onDelete, focus = false,
|
|
|
81
97
|
void survey(stop.signal);
|
|
82
98
|
return () => stop.abort();
|
|
83
99
|
}, [survey]);
|
|
84
|
-
// A waking computer is asked again until it is awake or says why it is not.
|
|
85
100
|
useEffect(() => {
|
|
86
101
|
if (!client || box?.status !== 'pending')
|
|
87
102
|
return;
|
|
@@ -97,28 +112,23 @@ export function Panel({ bot, onClose, kept, onSchedule, onDelete, focus = false,
|
|
|
97
112
|
stop.abort();
|
|
98
113
|
};
|
|
99
114
|
}, [client, box?.status, bot.name]);
|
|
100
|
-
/**
|
|
101
|
-
* Asleep, a press wakes it; awake, a press opens its screen in a new tab. The
|
|
102
|
-
* tab is opened inside the press, before the grant answers, because a browser
|
|
103
|
-
* allows a new window only from the press itself.
|
|
104
|
-
*/
|
|
105
115
|
const computer = async () => {
|
|
106
116
|
if (!client || busy)
|
|
107
117
|
return;
|
|
108
118
|
setBusy(true);
|
|
109
119
|
setWrong(null);
|
|
110
|
-
const
|
|
120
|
+
const win = box?.status === 'running' ? window.open('', '_blank') : null;
|
|
111
121
|
try {
|
|
112
122
|
if (box?.status === 'running') {
|
|
113
123
|
const g = await grant(client, box.id, box.class === 'desktop' ? 'screen' : 'terminal');
|
|
114
|
-
if (!
|
|
124
|
+
if (!win)
|
|
115
125
|
return setWrong(t('The browser kept the new tab from opening.'));
|
|
116
126
|
if (!g.url?.startsWith('https://')) {
|
|
117
|
-
|
|
127
|
+
win.close();
|
|
118
128
|
return setWrong(t('The platform opened no window onto it.'));
|
|
119
129
|
}
|
|
120
|
-
|
|
121
|
-
|
|
130
|
+
win.opener = null;
|
|
131
|
+
win.location.href = g.url;
|
|
122
132
|
}
|
|
123
133
|
else if (!box || box.status === 'error') {
|
|
124
134
|
await client.sandboxes.lease({ class: 'desktop', project: disk(bot.name) });
|
|
@@ -126,24 +136,52 @@ export function Panel({ bot, onClose, kept, onSchedule, onDelete, focus = false,
|
|
|
126
136
|
}
|
|
127
137
|
}
|
|
128
138
|
catch (e) {
|
|
129
|
-
|
|
130
|
-
setWrong(say(e, t('{name}’s computer', { name:
|
|
139
|
+
win?.close();
|
|
140
|
+
setWrong(say(e, t('{name}’s computer', { name: displayName }), 'save', t));
|
|
131
141
|
}
|
|
132
142
|
finally {
|
|
133
143
|
setBusy(false);
|
|
134
144
|
}
|
|
135
145
|
};
|
|
136
|
-
const routine = cron ? instructions.split('\n')[0].trim() ||
|
|
137
|
-
|
|
146
|
+
const routine = cron ? bot.description || instructions.split('\n')[0].trim() || displayName : '';
|
|
147
|
+
const scheduleLine = cron
|
|
148
|
+
? activeSchedule
|
|
149
|
+
? words(cron, locale, t)
|
|
150
|
+
: cron === 'paused'
|
|
151
|
+
? t('Paused')
|
|
152
|
+
: `${t('Paused')} · ${words(cron, locale, t)}`
|
|
153
|
+
: '';
|
|
154
|
+
const libraryItems = useMemo(() => {
|
|
155
|
+
const items = [];
|
|
156
|
+
for (const r of runs) {
|
|
157
|
+
for (const blob of [r.input, r.output]) {
|
|
158
|
+
if (!blob)
|
|
159
|
+
continue;
|
|
160
|
+
for (const [idx, part] of partsOf(blob).entries()) {
|
|
161
|
+
if (part.kind === 'doc') {
|
|
162
|
+
items.push({ key: `${r.id}-${idx}-${part.name}`, kind: 'doc', label: part.name, sub: part.size, href: part.href });
|
|
163
|
+
}
|
|
164
|
+
else if (part.kind === 'image') {
|
|
165
|
+
items.push({ key: `${r.id}-${idx}-img`, kind: 'image', label: part.alt || t('Preview image'), href: part.src });
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return items.reverse();
|
|
171
|
+
}, [runs, t]);
|
|
172
|
+
return (_jsxs(YStack, { flex: 1, minH: 0, overflowY: "auto", overflowX: "hidden", "aria-label": displayName, render: "aside", children: [_jsx(XStack, { height: 58, shrink: 0, px: 14, items: "center", justify: "flex-end", children: _jsx(XStack, { ...ROUND, "aria-label": t('Close'), onClick: onClose, autoFocus: focus, children: _jsx(X, { size: 16, color: INK, "aria-hidden": true }) }) }), _jsxs(YStack, { items: "center", gap: 14, pt: 4, pb: 22, px: 16, children: [_jsx(Face, { bot: bot, size: 72 }), _jsx(Text, { ...CLIP, maxW: "100%", fontSize: 19, lineHeight: 24, fontWeight: "600", color: INK, children: displayName }), _jsx(XStack, { "data-parity-key": "bots.panel.tabs", role: "tablist", p: 3, rounded: 999, bg: RAISED, borderWidth: 1, borderColor: LINE, gap: 2, children: ['activity', 'library'].map((id) => {
|
|
173
|
+
const selected = tab === id;
|
|
174
|
+
return (_jsx(XStack, { render: "button", type: 'button', role: 'tab', 'aria-selected': selected, onClick: () => setTab(id), height: 28, px: 14, rounded: 999, items: "center", justify: "center", bg: selected ? PICKED : 'transparent', borderWidth: 0, cursor: "pointer", children: _jsx(Text, { fontSize: 13, lineHeight: 18, fontWeight: selected ? '500' : '400', color: selected ? INK : DIM, children: id === 'activity' ? t('Activity') : t('Library') }) }, id));
|
|
175
|
+
}) })] }), tab === 'activity' ? (_jsxs(YStack, { px: 15, pb: 24, gap: 20, children: [cron || answers.length ? (_jsxs(YStack, { gap: 10, "data-parity-key": "bots.panel.upcoming", children: [_jsx(Text, { ...LABEL, px: 4, children: t('Upcoming') }), cron ? (_jsx(YStack, { ...CARD, children: _jsx(Row, { mark: _jsx(Clock, { size: 16, color: DIM, "aria-hidden": true }), title: routine, line: scheduleLine, last: true, children: _jsx(Switch, { "aria-label": t('Run {name} on its schedule', { name: displayName }), checked: activeSchedule, disabled: saving, onCheckedChange: (on) => {
|
|
138
176
|
setWrong(null);
|
|
139
177
|
setSaving(true);
|
|
140
|
-
onSchedule(on, cron)
|
|
141
|
-
.catch((e) => setWrong(say(e, t('{name}’s schedule', { name:
|
|
178
|
+
onSchedule(on, cron === 'paused' ? '0 9 * * *' : cron)
|
|
179
|
+
.catch((e) => setWrong(say(e, t('{name}’s schedule', { name: displayName }), 'save', t)))
|
|
142
180
|
.finally(() => setSaving(false));
|
|
143
|
-
} }) }) })
|
|
181
|
+
} }) }) })) : null, answers.length ? (_jsx(YStack, { ...CARD, "data-parity-key": "bots.panel.networks", children: answers.map((id, i) => (_jsx(Row, { mark: _jsx(Network, { transport: id, size: 18 }), title: of(id).name, line: t('Connected'), last: i === answers.length - 1, children: _jsx(ChevronRight, { size: 15, color: DIM, "aria-hidden": true }) }, id))) })) : null] })) : null, boxed ? (_jsxs(YStack, { gap: 10, "data-parity-key": "bots.panel.computer", children: [_jsx(Text, { ...LABEL, px: 4, children: t('Computer') }), _jsxs(XStack, { ...CARD, render: "button", type: 'button', onClick: computer, disabled: busy || box?.status === 'pending', "aria-label": t(box?.status === 'running' ? 'Open {name}’s computer' : 'Wake {name}’s computer', { name: displayName }), minH: 60, px: 13, py: 10, items: "center", gap: 12, cursor: "pointer", hoverStyle: { bg: PICKED }, children: [_jsxs(YStack, { flex: 1, minW: 0, items: "flex-start", children: [_jsx(Text, { ...CLIP, fontSize: 14, lineHeight: 19, color: INK, children: t("Bot's computer") }), _jsx(Text, { ...CLIP, fontSize: 13, lineHeight: 18, color: DIM, children: busy ? t('Waking') : state(box, t) })] }), _jsx(ComputerScreen, { awake: box?.status === 'running' })] })] })) : null, _jsxs(YStack, { gap: 10, "data-parity-key": "bots.panel.voice", children: [_jsx(Text, { ...LABEL, px: 4, children: t('Voice chat') }), _jsxs(YStack, { ...CARD, children: [_jsx(VoiceRow, { label: t('Voice'), value: voiceName, options: VOICES, onSelect: setVoiceName }), _jsx(VoiceRow, { label: t('Speed'), value: voiceSpeed, options: SPEEDS, onSelect: setVoiceSpeed }), _jsx(VoiceRow, { label: t('Language'), value: voiceLang, options: LANGUAGES, onSelect: setVoiceLang, last: true })] })] }), wrong ? (_jsx(Text, { render: "p", role: "alert", px: 8, m: 0, fontSize: 13, lineHeight: 18, color: DIM, children: wrong })) : null, _jsx(XStack, { px: 8, pt: 4, children: _jsx(Text, { render: "button", type: 'button', onClick: () => setDeleting(true), bg: "transparent", borderWidth: 0, p: 0, cursor: "pointer", fontSize: 13, lineHeight: 18, color: DIM, hoverStyle: { color: INK }, children: t('Delete {name}', { name: displayName }) }) })] })) : (_jsx(YStack, { px: 15, pb: 24, gap: 12, "data-parity-key": "bots.panel.library", children: libraryItems.length ? (_jsx(YStack, { ...CARD, children: libraryItems.map((item, i) => (_jsx(Row, { mark: item.kind === 'doc' ? _jsx(FileText, { size: 16, color: DIM, "aria-hidden": true }) : _jsx(ImageIcon, { size: 16, color: DIM, "aria-hidden": true }), title: item.label, line: item.sub, last: i === libraryItems.length - 1, children: item.href ? _jsx(ChevronRight, { size: 15, color: DIM, "aria-hidden": true }) : null }, item.key))) })) : (_jsx(YStack, { ...CARD, px: 14, py: 16, items: "center", children: _jsx(Text, { fontSize: 13, lineHeight: 19, color: DIM, text: "center", children: t('Files, documents, and images shared with {name} appear here.', { name: displayName }) }) })) })), _jsx(Dialog, { open: deleting, onOpenChange: setDeleting, children: _jsxs(DialogContent, { maxW: 440, rounded: 20, gap: 14, children: [_jsx(DialogTitle, { children: t('Delete {name}?', { name: displayName }) }), _jsx(Text, { fontSize: 15, lineHeight: 22, color: DIM, children: t('{name} and every message it was sent are deleted for good.', { name: displayName }) }), _jsxs(XStack, { gap: 8, justify: "flex-end", children: [_jsx(Button, { size: "sm", variant: "outline", rounded: 999, onPress: () => setDeleting(false), children: t('Cancel') }), _jsx(XStack, { ...PILL, height: 34, bg: INK, borderColor: INK, hoverStyle: { bg: INK, opacity: 0.9 }, onClick: () => {
|
|
144
182
|
if (!deleting)
|
|
145
183
|
return;
|
|
146
184
|
setDeleting(false);
|
|
147
|
-
onDelete().catch((e) => setWrong(say(e,
|
|
185
|
+
onDelete().catch((e) => setWrong(say(e, displayName, 'save', t)));
|
|
148
186
|
}, children: _jsx(Text, { ...WORD, color: "var(--background)", children: t('Delete') }) })] })] }) })] }));
|
|
149
187
|
}
|