tabularium 0.3.0__py3-none-any.whl

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 (245) hide show
  1. app/__init__.py +1 -0
  2. app/_bundle/VERSION +1 -0
  3. app/_bundle/conf/profiles/lloyds-list-1900s.json +36 -0
  4. app/_bundle/frontend/dist/assets/AcceptInvitePage-mmfgf6m1.js +1 -0
  5. app/_bundle/frontend/dist/assets/AnnotationEntry-BwG_saxU.js +2 -0
  6. app/_bundle/frontend/dist/assets/AnnotationPage-DH-87aUG.js +40 -0
  7. app/_bundle/frontend/dist/assets/BenchmarkPage-qjFgbXPG.js +1 -0
  8. app/_bundle/frontend/dist/assets/ContentPane-DPwsshn8.js +7 -0
  9. app/_bundle/frontend/dist/assets/DatasetPage-DFRTWXF0.js +1 -0
  10. app/_bundle/frontend/dist/assets/EvaluationPage-BTn5VHpn.js +1 -0
  11. app/_bundle/frontend/dist/assets/FineTuningPage-B09T-w0T.js +1 -0
  12. app/_bundle/frontend/dist/assets/HomePage-Buvrl10l.js +1 -0
  13. app/_bundle/frontend/dist/assets/LoginPage-BacwEFgw.js +1 -0
  14. app/_bundle/frontend/dist/assets/ModelsHubPage-i-JlXvoV.js +3 -0
  15. app/_bundle/frontend/dist/assets/PipelineView-B61UZ5RU.js +1 -0
  16. app/_bundle/frontend/dist/assets/PlaygroundPage-DdLbW7Cz.js +3 -0
  17. app/_bundle/frontend/dist/assets/ProjectDetailPage-CmSNb4G_.js +1 -0
  18. app/_bundle/frontend/dist/assets/ProjectReader-fMmVHqkV.js +1 -0
  19. app/_bundle/frontend/dist/assets/ProjectsPage-DitX5ysq.js +1 -0
  20. app/_bundle/frontend/dist/assets/RecognizePage-VVw2Z-Qw.js +1 -0
  21. app/_bundle/frontend/dist/assets/ResultsPage-BIjY0LGg.js +1 -0
  22. app/_bundle/frontend/dist/assets/SetPasswordPage-CWb7kbIn.js +1 -0
  23. app/_bundle/frontend/dist/assets/SettingsPage-CaJbnPc9.js +2 -0
  24. app/_bundle/frontend/dist/assets/SetupPage-3w2m35t_.js +1 -0
  25. app/_bundle/frontend/dist/assets/ShareDialog-CNF0oznE.js +1 -0
  26. app/_bundle/frontend/dist/assets/TableEntry-DdlC3pJj.js +2 -0
  27. app/_bundle/frontend/dist/assets/TableWorkspacePage-DYqW4eXA.js +1 -0
  28. app/_bundle/frontend/dist/assets/TrainingPage-xnyPwDG9.js +57 -0
  29. app/_bundle/frontend/dist/assets/UniverSheet-BwKQUIYP.js +495 -0
  30. app/_bundle/frontend/dist/assets/UniverSheet-DbvMtUcB.css +1 -0
  31. app/_bundle/frontend/dist/assets/UsersPage-BgEmi8o1.js +1 -0
  32. app/_bundle/frontend/dist/assets/af-DK_CjRn6-CZxsvT2y.js +1 -0
  33. app/_bundle/frontend/dist/assets/as-BPtSu6VN-F6qyW8uH.js +1 -0
  34. app/_bundle/frontend/dist/assets/avatar-CNaispuS.js +1 -0
  35. app/_bundle/frontend/dist/assets/be-CrQ0smca-BYVdQd18.js +1 -0
  36. app/_bundle/frontend/dist/assets/bg-CrQqGwni-B5xv6TfF.js +1 -0
  37. app/_bundle/frontend/dist/assets/bn-NCLZcWHi-BGS6_hxH.js +1 -0
  38. app/_bundle/frontend/dist/assets/ca-SUf6Y2Om-DrduLk3W.js +1 -0
  39. app/_bundle/frontend/dist/assets/clsx-DB0hHKMi.js +1 -0
  40. app/_bundle/frontend/dist/assets/cop-C3sk0IUo-Dw82IjCr.js +1 -0
  41. app/_bundle/frontend/dist/assets/cs-CmAteokq-BI5q4aVA.js +1 -0
  42. app/_bundle/frontend/dist/assets/cu-CBUlrW6Y-BRCy0UAr.js +1 -0
  43. app/_bundle/frontend/dist/assets/cy-BBPa6z2x-Cag4snSk.js +1 -0
  44. app/_bundle/frontend/dist/assets/da-CCDXfXtG-BWliw5hZ.js +1 -0
  45. app/_bundle/frontend/dist/assets/dates-8UlpNJqU.js +1 -0
  46. app/_bundle/frontend/dist/assets/de-1901-CWoAOigE-BlgpCKr2.js +1 -0
  47. app/_bundle/frontend/dist/assets/de-1996-BL6awyxG-BjfWxQKM.js +1 -0
  48. app/_bundle/frontend/dist/assets/de-ch-1901-hVThVHVb-_Xg3_np3.js +1 -0
  49. app/_bundle/frontend/dist/assets/el-monoton-D3aKqTz2-CuqNQIvE.js +1 -0
  50. app/_bundle/frontend/dist/assets/el-polyton-ogVWcTzh-B5J5pGHR.js +1 -0
  51. app/_bundle/frontend/dist/assets/en-gb-B7Al27b_-COWGBqwJ.js +1 -0
  52. app/_bundle/frontend/dist/assets/es-DcaaHPU_-CnHE1eri.js +1 -0
  53. app/_bundle/frontend/dist/assets/et-B_spaleu-H7jVbiHv.js +1 -0
  54. app/_bundle/frontend/dist/assets/eu-Ctv_kq9Z-D1jw9zt8.js +1 -0
  55. app/_bundle/frontend/dist/assets/fi-RW5VB8Yp-mParSSSy.js +1 -0
  56. app/_bundle/frontend/dist/assets/fr-BC2onEz9-Dc1KqFHa.js +1 -0
  57. app/_bundle/frontend/dist/assets/fur-AC12wySk-tJv2icDr.js +1 -0
  58. app/_bundle/frontend/dist/assets/ga-Cn6LkudM-CDuqe3gr.js +1 -0
  59. app/_bundle/frontend/dist/assets/gl-DZGc-K_G-D9_oxkqv.js +1 -0
  60. app/_bundle/frontend/dist/assets/grc-DOlGgO8T-DANBReIg.js +1 -0
  61. app/_bundle/frontend/dist/assets/gu-Bjl0l-cf-COW9d1dt.js +1 -0
  62. app/_bundle/frontend/dist/assets/hi-DsAaTPCC-CiihDo6Q.js +1 -0
  63. app/_bundle/frontend/dist/assets/hr-DT1SBBes-D_vEJhf2.js +1 -0
  64. app/_bundle/frontend/dist/assets/hsb-DC_ITc1e-kb5QeNH1.js +1 -0
  65. app/_bundle/frontend/dist/assets/hu-DVk7Y_ka-Ct1fysVO.js +1 -0
  66. app/_bundle/frontend/dist/assets/hy-e995ysyO-Cjfrs2ZM.js +1 -0
  67. app/_bundle/frontend/dist/assets/ia-Cr4TJH0c-B1i9kDPT.js +1 -0
  68. app/_bundle/frontend/dist/assets/id-DifDyWg9-C3Hzl2m4.js +1 -0
  69. app/_bundle/frontend/dist/assets/index-Bu1kTJtO.css +2 -0
  70. app/_bundle/frontend/dist/assets/index-DVWuV1Ff.js +12 -0
  71. app/_bundle/frontend/dist/assets/is-BT8UVRze-DWEBuJpb.js +1 -0
  72. app/_bundle/frontend/dist/assets/it-Bt_Meacx-HiFRunf5.js +1 -0
  73. app/_bundle/frontend/dist/assets/ka-jyoLzyDE-BU45urC7.js +1 -0
  74. app/_bundle/frontend/dist/assets/kmr-Cfwhwuff-DfPyPgkK.js +1 -0
  75. app/_bundle/frontend/dist/assets/kn-C6Lov-DP-BuXzi7S-.js +1 -0
  76. app/_bundle/frontend/dist/assets/la-DuvHjUWw-Bwiuou7l.js +1 -0
  77. app/_bundle/frontend/dist/assets/la-x-classic-yTyAOQEt-aO_2QO0y.js +1 -0
  78. app/_bundle/frontend/dist/assets/la-x-liturgic-CXeQb4FY-BpDOy20C.js +1 -0
  79. app/_bundle/frontend/dist/assets/live-CFfryZUM.js +1 -0
  80. app/_bundle/frontend/dist/assets/lt-BBe8DlDF-B3cgXplB.js +1 -0
  81. app/_bundle/frontend/dist/assets/lv-Q2BBHnzp-CLjYDJHB.js +1 -0
  82. app/_bundle/frontend/dist/assets/ml-2xLVYkVY-Ct0js8Am.js +1 -0
  83. app/_bundle/frontend/dist/assets/mn-cyrl-lHM4n0oC-DN6sz9R4.js +1 -0
  84. app/_bundle/frontend/dist/assets/mn-cyrl-x-lmc-3aetruI8-BJqn49ay.js +1 -0
  85. app/_bundle/frontend/dist/assets/mr-CjWJPVmH-DGtESPcG.js +1 -0
  86. app/_bundle/frontend/dist/assets/mul-ethi-D_CMSMEq-D6ioGuYP.js +1 -0
  87. app/_bundle/frontend/dist/assets/nb-DI8u59ch-BfDSp4tN.js +1 -0
  88. app/_bundle/frontend/dist/assets/nl-BHQJ6Gvn-8_OIBsy0.js +1 -0
  89. app/_bundle/frontend/dist/assets/nn-ntZvarUK-BWT83oy8.js +1 -0
  90. app/_bundle/frontend/dist/assets/no-B8ItS0F3-Cjg1mxae.js +1 -0
  91. app/_bundle/frontend/dist/assets/oc-P_i3-xLA-W5_I63nO.js +1 -0
  92. app/_bundle/frontend/dist/assets/or-50rxpoq4-Cf5-bcl5.js +1 -0
  93. app/_bundle/frontend/dist/assets/pa-C54UG8eN-Bj-XExX_.js +1 -0
  94. app/_bundle/frontend/dist/assets/pi-B9cgjyG1-o9084kBf.js +1 -0
  95. app/_bundle/frontend/dist/assets/pipeline-CPPlVFee.js +1 -0
  96. app/_bundle/frontend/dist/assets/pl-9fg-ESVt-Bv_p-a9x.js +1 -0
  97. app/_bundle/frontend/dist/assets/pms-BRGfm5gS-DfOt2RSi.js +1 -0
  98. app/_bundle/frontend/dist/assets/projectAccess-D3wgwunj.js +1 -0
  99. app/_bundle/frontend/dist/assets/pt-Cum2_NUC-CrkeeQaZ.js +1 -0
  100. app/_bundle/frontend/dist/assets/rm-C0MIK9N4-CNhvXnnG.js +1 -0
  101. app/_bundle/frontend/dist/assets/ro-0fmdH0HA-Bov_DAVD.js +1 -0
  102. app/_bundle/frontend/dist/assets/ru-v4l-ayaq-DLdM0nWP.js +1 -0
  103. app/_bundle/frontend/dist/assets/sa-CKY9c_Vq-CvBCyoRG.js +1 -0
  104. app/_bundle/frontend/dist/assets/sh-cyrl-BpCRFOmq-UY09gie6.js +1 -0
  105. app/_bundle/frontend/dist/assets/sh-latn-sRy4Tuaj-De-tA-2J.js +1 -0
  106. app/_bundle/frontend/dist/assets/sk-_iOeDNrQ-DC8Al4lF.js +1 -0
  107. app/_bundle/frontend/dist/assets/sl-DpiklF-D-B8FnrXi1.js +1 -0
  108. app/_bundle/frontend/dist/assets/sr-cyrl-Dpzrbd0W-yGc0Jz1j.js +1 -0
  109. app/_bundle/frontend/dist/assets/sv-CFm5y56M-DeQDoAsB.js +1 -0
  110. app/_bundle/frontend/dist/assets/ta-BcghgTbD-B5_ztYXp.js +1 -0
  111. app/_bundle/frontend/dist/assets/te-B5Spl2Jk-BjTOzs5s.js +1 -0
  112. app/_bundle/frontend/dist/assets/th-DWX5iPSo-CFfNau1h.js +1 -0
  113. app/_bundle/frontend/dist/assets/tk-BMbKB10q-UHPz-lif.js +1 -0
  114. app/_bundle/frontend/dist/assets/tr-CIHIuzqc-DvQDK0dA.js +1 -0
  115. app/_bundle/frontend/dist/assets/ui-BtIxuKN2.js +13 -0
  116. app/_bundle/frontend/dist/assets/uk-Dir3oxLs-DGVpthWV.js +1 -0
  117. app/_bundle/frontend/dist/assets/vocab-C9TBNLaa.js +1 -0
  118. app/_bundle/frontend/dist/assets/zh-latn-pinyin-BdYb-Ey_-CW52gdb_.js +1 -0
  119. app/_bundle/frontend/dist/fonts/archivo-latin-ext.woff2 +0 -0
  120. app/_bundle/frontend/dist/fonts/archivo-latin.woff2 +0 -0
  121. app/_bundle/frontend/dist/fonts/chivomono-latin-ext.woff2 +0 -0
  122. app/_bundle/frontend/dist/fonts/chivomono-latin.woff2 +0 -0
  123. app/_bundle/frontend/dist/index.html +33 -0
  124. app/_bundle/scripts/cloud/glmocr_native_gateway.py +118 -0
  125. app/_bundle/scripts/cloud/mineru_native_gateway.py +154 -0
  126. app/_bundle/scripts/cloud/modal_deepseek_ocr.py +124 -0
  127. app/_bundle/scripts/cloud/modal_dots_ocr.py +121 -0
  128. app/_bundle/scripts/cloud/modal_glm_ocr.py +127 -0
  129. app/_bundle/scripts/cloud/modal_mineru.py +151 -0
  130. app/_bundle/scripts/cloud/modal_paddleocr_vl.py +136 -0
  131. app/_bundle/scripts/cloud/modal_publish_checkpoint.sh +11 -0
  132. app/_bundle/scripts/cloud/modal_qwen3_vl.py +124 -0
  133. app/_bundle/scripts/cloud/modal_teleocr.py +119 -0
  134. app/_bundle/scripts/cloud/modal_unlimited_ocr.py +142 -0
  135. app/_bundle/scripts/cloud/modal_vllm.py +222 -0
  136. app/_bundle/scripts/cloud/setup_cloud_train.sh +53 -0
  137. app/_bundle/scripts/cloud/setup_cloud_vllm.sh +765 -0
  138. app/_bundle/scripts/cloud/ssh_tunnel.sh +90 -0
  139. app/_bundle/scripts/cloud/teleocr_native_gateway.py +134 -0
  140. app/_bundle/scripts/cloud/test_cloud_connection.py +124 -0
  141. app/_bundle/scripts/cloud/vast_onstart.sh +26 -0
  142. app/_bundle/scripts/local/mineru_mlx_gateway.py +139 -0
  143. app/_bundle/scripts/serve_model.sh +79 -0
  144. app/api/__init__.py +54 -0
  145. app/api/auth.py +257 -0
  146. app/api/benchmark.py +111 -0
  147. app/api/blocks.py +712 -0
  148. app/api/cloud.py +622 -0
  149. app/api/datasets.py +213 -0
  150. app/api/deps.py +56 -0
  151. app/api/evaluate.py +68 -0
  152. app/api/live.py +148 -0
  153. app/api/models.py +206 -0
  154. app/api/page_work.py +66 -0
  155. app/api/pages.py +678 -0
  156. app/api/playground.py +198 -0
  157. app/api/prelabel.py +244 -0
  158. app/api/projects.py +772 -0
  159. app/api/recognition.py +135 -0
  160. app/api/settings.py +33 -0
  161. app/api/system.py +543 -0
  162. app/api/training.py +177 -0
  163. app/api/users.py +149 -0
  164. app/cli.py +69 -0
  165. app/config.py +188 -0
  166. app/db.py +513 -0
  167. app/main.py +134 -0
  168. app/schemas.py +599 -0
  169. app/services/__init__.py +1 -0
  170. app/services/alternative_training.py +236 -0
  171. app/services/annotation_schema.py +133 -0
  172. app/services/artifacts.py +52 -0
  173. app/services/audit.py +28 -0
  174. app/services/auth.py +229 -0
  175. app/services/backup.py +74 -0
  176. app/services/benchmark.py +633 -0
  177. app/services/blocks.py +173 -0
  178. app/services/cloud_manager.py +2191 -0
  179. app/services/compute_profiles.py +115 -0
  180. app/services/corpus.py +32 -0
  181. app/services/custom_models.py +209 -0
  182. app/services/dataset_builder.py +716 -0
  183. app/services/dewarp.py +177 -0
  184. app/services/domain_profiles.py +28 -0
  185. app/services/evaluate.py +587 -0
  186. app/services/export_formats.py +109 -0
  187. app/services/hardware.py +255 -0
  188. app/services/huggingface_auth.py +103 -0
  189. app/services/i18n.py +609 -0
  190. app/services/images.py +266 -0
  191. app/services/inference.py +1796 -0
  192. app/services/labeling.py +210 -0
  193. app/services/live.py +160 -0
  194. app/services/local_runtime.py +160 -0
  195. app/services/mineru_mlx_runtime.py +153 -0
  196. app/services/mlx_runtime.py +218 -0
  197. app/services/modal_manager.py +617 -0
  198. app/services/model_adapters.py +1862 -0
  199. app/services/model_labels.py +266 -0
  200. app/services/model_registry.py +609 -0
  201. app/services/model_settings.py +558 -0
  202. app/services/monkey_preprocess.py +153 -0
  203. app/services/native_picker.py +110 -0
  204. app/services/ocr.py +169 -0
  205. app/services/opencode_gateway.py +63 -0
  206. app/services/otsl.py +290 -0
  207. app/services/paddle_dataset.py +280 -0
  208. app/services/paddle_official.py +271 -0
  209. app/services/paddle_runtime.py +230 -0
  210. app/services/paddle_training.py +86 -0
  211. app/services/page_meta.py +74 -0
  212. app/services/page_work.py +138 -0
  213. app/services/pages.py +435 -0
  214. app/services/pilot.py +48 -0
  215. app/services/pipeline.py +73 -0
  216. app/services/prefill.py +1010 -0
  217. app/services/process_probe.py +87 -0
  218. app/services/rate_limit.py +21 -0
  219. app/services/recognition.py +653 -0
  220. app/services/scan.py +286 -0
  221. app/services/security.py +45 -0
  222. app/services/serve_manager.py +967 -0
  223. app/services/serve_recipes.py +380 -0
  224. app/services/settings.py +61 -0
  225. app/services/table_checks.py +386 -0
  226. app/services/table_detect.py +989 -0
  227. app/services/table_headers.py +102 -0
  228. app/services/table_hint.py +28 -0
  229. app/services/table_provenance.py +17 -0
  230. app/services/train_recipes.py +175 -0
  231. app/services/trainer.py +633 -0
  232. app/services/trainer_metrics.py +122 -0
  233. app/services/trainer_script.py +230 -0
  234. app/services/training_executor.py +305 -0
  235. app/services/unlimited_ocr_mlx_server.py +254 -0
  236. app/services/url_security.py +29 -0
  237. app/services/users.py +191 -0
  238. app/services/vault.py +142 -0
  239. app/services/vendor_repos.py +51 -0
  240. app/services/vram.py +191 -0
  241. tabularium-0.3.0.dist-info/METADATA +225 -0
  242. tabularium-0.3.0.dist-info/RECORD +245 -0
  243. tabularium-0.3.0.dist-info/WHEEL +4 -0
  244. tabularium-0.3.0.dist-info/entry_points.txt +2 -0
  245. tabularium-0.3.0.dist-info/licenses/LICENSE +21 -0
app/__init__.py ADDED
@@ -0,0 +1 @@
1
+ """Tabularium — backend package."""
app/_bundle/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.3.0
@@ -0,0 +1,36 @@
1
+ {
2
+ "id": "tabularium-list-1900s",
3
+ "name": "Historic Shipping Index — giornali marittimi 1900s",
4
+ "description": "Profilo per giornali storici inglesi con più colonne, registri navali e tabelle dense. Il corpus contiene generi diversi: le pagine indice (LSI) sono un'unica tabella larga senza filetti, quelle del Voyage Supplement (LSIVS) sono colonne parallele di schede-nave.",
5
+ "labels": [
6
+ "Title", "Page-header", "Issue-number", "Issue-date",
7
+ "Headline", "Byline", "Column", "Text", "Section-header", "List-item",
8
+ "Advertisement", "Note", "Table", "Formula", "Picture"
9
+ ],
10
+ "page_types": {
11
+ "index": {
12
+ "description": "Historic Shipping Index Shipping Index: una tabella a piena pagina senza filetti.",
13
+ "recipe": ["Title", "Issue-number", "Issue-date", "Page-header", "Table"],
14
+ "table_format": "otsl"
15
+ },
16
+ "voyage-supplement": {
17
+ "description": "Voyage Supplement: colonne parallele di schede-nave, non una tabella.",
18
+ "recipe": ["Page-header", "Issue-date", "Column", "Section-header", "List-item"],
19
+ "table_format": null
20
+ }
21
+ },
22
+ "default_objective": "tables",
23
+ "conventions": [
24
+ "Espandere i soft hyphen di fine riga.",
25
+ "Conservare grafia, sigle e abbreviazioni originali.",
26
+ "Annotare le colonne fantasma senza trascriverle.",
27
+ "Rappresentare i filetti tramite la griglia, mai nel testo.",
28
+ "Non trascrivere mai i puntini di guida: sono riempitivo tipografico e separano due campi.",
29
+ "Le righe bianche fra i gruppi di voci non sono righe della tabella: sono respiro tipografico.",
30
+ "Una cella con «——» è vuota (ecel): non trascrivere il trattino.",
31
+ "Le continuazioni a capo rientrate che iniziano con «[» appartengono alla cella precedente: unire con uno spazio e scartare la parentesi.",
32
+ "Una classe di layout non spezza mai una riga tipografica: se la data è fusa col titolo (testate 1940) resta dentro il Title."
33
+ ],
34
+ "recommended_split": "issue",
35
+ "recommended_language": "en"
36
+ }
@@ -0,0 +1 @@
1
+ import{$ as e,ct as t,dt as n,ht as r,i,lt as a}from"./ui-BtIxuKN2.js";import{E as o}from"./index-DVWuV1Ff.js";var s=r(n(),1),c=a();function l(){let{t:n}=t(),{acceptInvite:r}=o(),[a]=(0,s.useState)(()=>new URLSearchParams(window.location.search).get(`token`)??``),[l,u]=(0,s.useState)(null),[d,f]=(0,s.useState)(!0),[p,m]=(0,s.useState)(``),[h,g]=(0,s.useState)(``),[_,v]=(0,s.useState)(!1),[y,b]=(0,s.useState)(null);(0,s.useEffect)(()=>{if(!a){f(!1);return}e(`/auth/invite/${encodeURIComponent(a)}`).then(u).catch(()=>u({valid:!1,username:null,email:null,expires_at:null})).finally(()=>f(!1))},[a]);let x=p.length>0&&p.length<8,S=h.length>0&&p!==h,C=p.length>=8&&p===h&&!_,w=async e=>{if(e.preventDefault(),C){v(!0),b(null);try{await r(a,p),window.location.assign(`/`)}catch{b(n(`auth.inviteFailed`)),v(!1)}}},T=!a||l!=null&&!l.valid;return(0,c.jsx)(`div`,{className:`flex min-h-screen items-center justify-center bg-[color:var(--color-fill)] p-4`,children:(0,c.jsxs)(`div`,{className:`mod w-full max-w-sm border-[color:var(--color-rule-strong)]`,children:[(0,c.jsx)(`div`,{className:`mod-head border-b-[color:var(--color-rule-strong)]`,children:(0,c.jsx)(`span`,{className:`mod-tab`,children:n(`auth.inviteTitle`)})}),(0,c.jsx)(`div`,{className:`mod-body`,children:d?(0,c.jsx)(`p`,{className:`text-[13px] text-[color:var(--color-ink-2)]`,children:n(`auth.loading`)}):T?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(`p`,{className:`text-[13px] font-semibold`,children:n(`auth.inviteInvalidTitle`)}),(0,c.jsx)(`p`,{className:`mt-1 text-[12px] text-[color:var(--color-ink-2)]`,children:n(`auth.inviteInvalidBody`)})]}):(0,c.jsxs)(`form`,{onSubmit:w,className:`space-y-3`,children:[(0,c.jsx)(`p`,{className:`text-[12px] text-[color:var(--color-ink-2)]`,children:n(`auth.inviteFor`,{name:l?.username??``})}),(0,c.jsx)(i,{label:n(`auth.newPassword`),hint:n(`auth.passwordHint`),children:(0,c.jsx)(`input`,{type:`password`,value:p,onChange:e=>m(e.target.value),autoComplete:`new-password`,autoFocus:!0,className:`fld`,"aria-invalid":x})}),(0,c.jsx)(i,{label:n(`auth.confirmPassword`),children:(0,c.jsx)(`input`,{type:`password`,value:h,onChange:e=>g(e.target.value),autoComplete:`new-password`,className:`fld`,"aria-invalid":S})}),x&&(0,c.jsx)(`p`,{className:`text-[12px] text-[color:var(--color-sig-text)]`,children:n(`account.tooShort`)}),S&&(0,c.jsx)(`p`,{className:`text-[12px] text-[color:var(--color-sig-text)]`,children:n(`auth.passwordsDiffer`)}),y&&(0,c.jsx)(`p`,{role:`alert`,className:`text-[12px] text-[color:var(--color-sig-text)]`,children:y}),(0,c.jsx)(`button`,{type:`submit`,disabled:!C,className:`btn btn-primary w-full justify-center`,children:n(_?`auth.acceptBusy`:`auth.acceptInvite`)})]})})]})})}export{l as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/AnnotationPage-DH-87aUG.js","assets/ui-BtIxuKN2.js","assets/index-DVWuV1Ff.js","assets/index-Bu1kTJtO.css","assets/vocab-C9TBNLaa.js","assets/ContentPane-DPwsshn8.js","assets/live-CFfryZUM.js","assets/avatar-CNaispuS.js","assets/ProjectReader-fMmVHqkV.js"])))=>i.map(i=>d[i]);
2
+ import{$ as e,a as t,ct as n,dt as r,ht as i,lt as a,r as o}from"./ui-BtIxuKN2.js";import{E as s,N as c,O as l,P as u,n as d}from"./index-DVWuV1Ff.js";import{n as f}from"./projectAccess-D3wgwunj.js";var p=i(r(),1),m=a(),h=(0,p.lazy)(()=>u(()=>import(`./AnnotationPage-DH-87aUG.js`),__vite__mapDeps([0,1,2,3,4,5,6,7]))),g=(0,p.lazy)(()=>u(()=>import(`./ProjectReader-fMmVHqkV.js`),__vite__mapDeps([8,1,2,3,6])));function _(){let{t:r}=n(),i=s(),[a]=c(),u=a.get(`project`)??``,_=`${i.enabled}:${i.user?.id??``}:${u}`,[v,y]=(0,p.useState)(null),[b,x]=(0,p.useState)(null);if((0,p.useEffect)(()=>{let t=!0;return x(null),e(`/projects`).then(async({items:n})=>{let r=u?Number(u):d(n),i=n.find(e=>e.id===r)??(u?await e(`/projects/${u}`):null);t&&y({key:_,project:i,projects:n})}).catch(e=>{t&&x(e)}),()=>{t=!1}},[u,_]),b)return(0,m.jsx)(`div`,{className:`p-3`,children:(0,m.jsx)(o,{error:b})});if(!v||v.key!==_)return(0,m.jsx)(`div`,{className:`p-3`,children:(0,m.jsx)(t,{label:r(`team.loadingAccess`)})});let S=v.project?f(v.project,i):null;return v.project?S?(0,m.jsx)(p.Suspense,{fallback:(0,m.jsx)(t,{label:r(`common.loading`)}),children:S.can_edit?(0,m.jsx)(h,{},v.project.id):(0,m.jsx)(g,{project:v.project,projects:v.projects},v.project.id)}):(0,m.jsx)(`p`,{className:`p-3`,children:r(`team.accessUnknownHint`)}):(0,m.jsxs)(`div`,{className:`p-3`,children:[(0,m.jsx)(`p`,{className:`mb-3`,children:r(`team.noAssignedProjects`)}),(0,m.jsx)(l,{className:`btn`,to:`/progetti`,children:r(`nav.projects`)})]})}export{_ as default};