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.
- app/__init__.py +1 -0
- app/_bundle/VERSION +1 -0
- app/_bundle/conf/profiles/lloyds-list-1900s.json +36 -0
- app/_bundle/frontend/dist/assets/AcceptInvitePage-mmfgf6m1.js +1 -0
- app/_bundle/frontend/dist/assets/AnnotationEntry-BwG_saxU.js +2 -0
- app/_bundle/frontend/dist/assets/AnnotationPage-DH-87aUG.js +40 -0
- app/_bundle/frontend/dist/assets/BenchmarkPage-qjFgbXPG.js +1 -0
- app/_bundle/frontend/dist/assets/ContentPane-DPwsshn8.js +7 -0
- app/_bundle/frontend/dist/assets/DatasetPage-DFRTWXF0.js +1 -0
- app/_bundle/frontend/dist/assets/EvaluationPage-BTn5VHpn.js +1 -0
- app/_bundle/frontend/dist/assets/FineTuningPage-B09T-w0T.js +1 -0
- app/_bundle/frontend/dist/assets/HomePage-Buvrl10l.js +1 -0
- app/_bundle/frontend/dist/assets/LoginPage-BacwEFgw.js +1 -0
- app/_bundle/frontend/dist/assets/ModelsHubPage-i-JlXvoV.js +3 -0
- app/_bundle/frontend/dist/assets/PipelineView-B61UZ5RU.js +1 -0
- app/_bundle/frontend/dist/assets/PlaygroundPage-DdLbW7Cz.js +3 -0
- app/_bundle/frontend/dist/assets/ProjectDetailPage-CmSNb4G_.js +1 -0
- app/_bundle/frontend/dist/assets/ProjectReader-fMmVHqkV.js +1 -0
- app/_bundle/frontend/dist/assets/ProjectsPage-DitX5ysq.js +1 -0
- app/_bundle/frontend/dist/assets/RecognizePage-VVw2Z-Qw.js +1 -0
- app/_bundle/frontend/dist/assets/ResultsPage-BIjY0LGg.js +1 -0
- app/_bundle/frontend/dist/assets/SetPasswordPage-CWb7kbIn.js +1 -0
- app/_bundle/frontend/dist/assets/SettingsPage-CaJbnPc9.js +2 -0
- app/_bundle/frontend/dist/assets/SetupPage-3w2m35t_.js +1 -0
- app/_bundle/frontend/dist/assets/ShareDialog-CNF0oznE.js +1 -0
- app/_bundle/frontend/dist/assets/TableEntry-DdlC3pJj.js +2 -0
- app/_bundle/frontend/dist/assets/TableWorkspacePage-DYqW4eXA.js +1 -0
- app/_bundle/frontend/dist/assets/TrainingPage-xnyPwDG9.js +57 -0
- app/_bundle/frontend/dist/assets/UniverSheet-BwKQUIYP.js +495 -0
- app/_bundle/frontend/dist/assets/UniverSheet-DbvMtUcB.css +1 -0
- app/_bundle/frontend/dist/assets/UsersPage-BgEmi8o1.js +1 -0
- app/_bundle/frontend/dist/assets/af-DK_CjRn6-CZxsvT2y.js +1 -0
- app/_bundle/frontend/dist/assets/as-BPtSu6VN-F6qyW8uH.js +1 -0
- app/_bundle/frontend/dist/assets/avatar-CNaispuS.js +1 -0
- app/_bundle/frontend/dist/assets/be-CrQ0smca-BYVdQd18.js +1 -0
- app/_bundle/frontend/dist/assets/bg-CrQqGwni-B5xv6TfF.js +1 -0
- app/_bundle/frontend/dist/assets/bn-NCLZcWHi-BGS6_hxH.js +1 -0
- app/_bundle/frontend/dist/assets/ca-SUf6Y2Om-DrduLk3W.js +1 -0
- app/_bundle/frontend/dist/assets/clsx-DB0hHKMi.js +1 -0
- app/_bundle/frontend/dist/assets/cop-C3sk0IUo-Dw82IjCr.js +1 -0
- app/_bundle/frontend/dist/assets/cs-CmAteokq-BI5q4aVA.js +1 -0
- app/_bundle/frontend/dist/assets/cu-CBUlrW6Y-BRCy0UAr.js +1 -0
- app/_bundle/frontend/dist/assets/cy-BBPa6z2x-Cag4snSk.js +1 -0
- app/_bundle/frontend/dist/assets/da-CCDXfXtG-BWliw5hZ.js +1 -0
- app/_bundle/frontend/dist/assets/dates-8UlpNJqU.js +1 -0
- app/_bundle/frontend/dist/assets/de-1901-CWoAOigE-BlgpCKr2.js +1 -0
- app/_bundle/frontend/dist/assets/de-1996-BL6awyxG-BjfWxQKM.js +1 -0
- app/_bundle/frontend/dist/assets/de-ch-1901-hVThVHVb-_Xg3_np3.js +1 -0
- app/_bundle/frontend/dist/assets/el-monoton-D3aKqTz2-CuqNQIvE.js +1 -0
- app/_bundle/frontend/dist/assets/el-polyton-ogVWcTzh-B5J5pGHR.js +1 -0
- app/_bundle/frontend/dist/assets/en-gb-B7Al27b_-COWGBqwJ.js +1 -0
- app/_bundle/frontend/dist/assets/es-DcaaHPU_-CnHE1eri.js +1 -0
- app/_bundle/frontend/dist/assets/et-B_spaleu-H7jVbiHv.js +1 -0
- app/_bundle/frontend/dist/assets/eu-Ctv_kq9Z-D1jw9zt8.js +1 -0
- app/_bundle/frontend/dist/assets/fi-RW5VB8Yp-mParSSSy.js +1 -0
- app/_bundle/frontend/dist/assets/fr-BC2onEz9-Dc1KqFHa.js +1 -0
- app/_bundle/frontend/dist/assets/fur-AC12wySk-tJv2icDr.js +1 -0
- app/_bundle/frontend/dist/assets/ga-Cn6LkudM-CDuqe3gr.js +1 -0
- app/_bundle/frontend/dist/assets/gl-DZGc-K_G-D9_oxkqv.js +1 -0
- app/_bundle/frontend/dist/assets/grc-DOlGgO8T-DANBReIg.js +1 -0
- app/_bundle/frontend/dist/assets/gu-Bjl0l-cf-COW9d1dt.js +1 -0
- app/_bundle/frontend/dist/assets/hi-DsAaTPCC-CiihDo6Q.js +1 -0
- app/_bundle/frontend/dist/assets/hr-DT1SBBes-D_vEJhf2.js +1 -0
- app/_bundle/frontend/dist/assets/hsb-DC_ITc1e-kb5QeNH1.js +1 -0
- app/_bundle/frontend/dist/assets/hu-DVk7Y_ka-Ct1fysVO.js +1 -0
- app/_bundle/frontend/dist/assets/hy-e995ysyO-Cjfrs2ZM.js +1 -0
- app/_bundle/frontend/dist/assets/ia-Cr4TJH0c-B1i9kDPT.js +1 -0
- app/_bundle/frontend/dist/assets/id-DifDyWg9-C3Hzl2m4.js +1 -0
- app/_bundle/frontend/dist/assets/index-Bu1kTJtO.css +2 -0
- app/_bundle/frontend/dist/assets/index-DVWuV1Ff.js +12 -0
- app/_bundle/frontend/dist/assets/is-BT8UVRze-DWEBuJpb.js +1 -0
- app/_bundle/frontend/dist/assets/it-Bt_Meacx-HiFRunf5.js +1 -0
- app/_bundle/frontend/dist/assets/ka-jyoLzyDE-BU45urC7.js +1 -0
- app/_bundle/frontend/dist/assets/kmr-Cfwhwuff-DfPyPgkK.js +1 -0
- app/_bundle/frontend/dist/assets/kn-C6Lov-DP-BuXzi7S-.js +1 -0
- app/_bundle/frontend/dist/assets/la-DuvHjUWw-Bwiuou7l.js +1 -0
- app/_bundle/frontend/dist/assets/la-x-classic-yTyAOQEt-aO_2QO0y.js +1 -0
- app/_bundle/frontend/dist/assets/la-x-liturgic-CXeQb4FY-BpDOy20C.js +1 -0
- app/_bundle/frontend/dist/assets/live-CFfryZUM.js +1 -0
- app/_bundle/frontend/dist/assets/lt-BBe8DlDF-B3cgXplB.js +1 -0
- app/_bundle/frontend/dist/assets/lv-Q2BBHnzp-CLjYDJHB.js +1 -0
- app/_bundle/frontend/dist/assets/ml-2xLVYkVY-Ct0js8Am.js +1 -0
- app/_bundle/frontend/dist/assets/mn-cyrl-lHM4n0oC-DN6sz9R4.js +1 -0
- app/_bundle/frontend/dist/assets/mn-cyrl-x-lmc-3aetruI8-BJqn49ay.js +1 -0
- app/_bundle/frontend/dist/assets/mr-CjWJPVmH-DGtESPcG.js +1 -0
- app/_bundle/frontend/dist/assets/mul-ethi-D_CMSMEq-D6ioGuYP.js +1 -0
- app/_bundle/frontend/dist/assets/nb-DI8u59ch-BfDSp4tN.js +1 -0
- app/_bundle/frontend/dist/assets/nl-BHQJ6Gvn-8_OIBsy0.js +1 -0
- app/_bundle/frontend/dist/assets/nn-ntZvarUK-BWT83oy8.js +1 -0
- app/_bundle/frontend/dist/assets/no-B8ItS0F3-Cjg1mxae.js +1 -0
- app/_bundle/frontend/dist/assets/oc-P_i3-xLA-W5_I63nO.js +1 -0
- app/_bundle/frontend/dist/assets/or-50rxpoq4-Cf5-bcl5.js +1 -0
- app/_bundle/frontend/dist/assets/pa-C54UG8eN-Bj-XExX_.js +1 -0
- app/_bundle/frontend/dist/assets/pi-B9cgjyG1-o9084kBf.js +1 -0
- app/_bundle/frontend/dist/assets/pipeline-CPPlVFee.js +1 -0
- app/_bundle/frontend/dist/assets/pl-9fg-ESVt-Bv_p-a9x.js +1 -0
- app/_bundle/frontend/dist/assets/pms-BRGfm5gS-DfOt2RSi.js +1 -0
- app/_bundle/frontend/dist/assets/projectAccess-D3wgwunj.js +1 -0
- app/_bundle/frontend/dist/assets/pt-Cum2_NUC-CrkeeQaZ.js +1 -0
- app/_bundle/frontend/dist/assets/rm-C0MIK9N4-CNhvXnnG.js +1 -0
- app/_bundle/frontend/dist/assets/ro-0fmdH0HA-Bov_DAVD.js +1 -0
- app/_bundle/frontend/dist/assets/ru-v4l-ayaq-DLdM0nWP.js +1 -0
- app/_bundle/frontend/dist/assets/sa-CKY9c_Vq-CvBCyoRG.js +1 -0
- app/_bundle/frontend/dist/assets/sh-cyrl-BpCRFOmq-UY09gie6.js +1 -0
- app/_bundle/frontend/dist/assets/sh-latn-sRy4Tuaj-De-tA-2J.js +1 -0
- app/_bundle/frontend/dist/assets/sk-_iOeDNrQ-DC8Al4lF.js +1 -0
- app/_bundle/frontend/dist/assets/sl-DpiklF-D-B8FnrXi1.js +1 -0
- app/_bundle/frontend/dist/assets/sr-cyrl-Dpzrbd0W-yGc0Jz1j.js +1 -0
- app/_bundle/frontend/dist/assets/sv-CFm5y56M-DeQDoAsB.js +1 -0
- app/_bundle/frontend/dist/assets/ta-BcghgTbD-B5_ztYXp.js +1 -0
- app/_bundle/frontend/dist/assets/te-B5Spl2Jk-BjTOzs5s.js +1 -0
- app/_bundle/frontend/dist/assets/th-DWX5iPSo-CFfNau1h.js +1 -0
- app/_bundle/frontend/dist/assets/tk-BMbKB10q-UHPz-lif.js +1 -0
- app/_bundle/frontend/dist/assets/tr-CIHIuzqc-DvQDK0dA.js +1 -0
- app/_bundle/frontend/dist/assets/ui-BtIxuKN2.js +13 -0
- app/_bundle/frontend/dist/assets/uk-Dir3oxLs-DGVpthWV.js +1 -0
- app/_bundle/frontend/dist/assets/vocab-C9TBNLaa.js +1 -0
- app/_bundle/frontend/dist/assets/zh-latn-pinyin-BdYb-Ey_-CW52gdb_.js +1 -0
- app/_bundle/frontend/dist/fonts/archivo-latin-ext.woff2 +0 -0
- app/_bundle/frontend/dist/fonts/archivo-latin.woff2 +0 -0
- app/_bundle/frontend/dist/fonts/chivomono-latin-ext.woff2 +0 -0
- app/_bundle/frontend/dist/fonts/chivomono-latin.woff2 +0 -0
- app/_bundle/frontend/dist/index.html +33 -0
- app/_bundle/scripts/cloud/glmocr_native_gateway.py +118 -0
- app/_bundle/scripts/cloud/mineru_native_gateway.py +154 -0
- app/_bundle/scripts/cloud/modal_deepseek_ocr.py +124 -0
- app/_bundle/scripts/cloud/modal_dots_ocr.py +121 -0
- app/_bundle/scripts/cloud/modal_glm_ocr.py +127 -0
- app/_bundle/scripts/cloud/modal_mineru.py +151 -0
- app/_bundle/scripts/cloud/modal_paddleocr_vl.py +136 -0
- app/_bundle/scripts/cloud/modal_publish_checkpoint.sh +11 -0
- app/_bundle/scripts/cloud/modal_qwen3_vl.py +124 -0
- app/_bundle/scripts/cloud/modal_teleocr.py +119 -0
- app/_bundle/scripts/cloud/modal_unlimited_ocr.py +142 -0
- app/_bundle/scripts/cloud/modal_vllm.py +222 -0
- app/_bundle/scripts/cloud/setup_cloud_train.sh +53 -0
- app/_bundle/scripts/cloud/setup_cloud_vllm.sh +765 -0
- app/_bundle/scripts/cloud/ssh_tunnel.sh +90 -0
- app/_bundle/scripts/cloud/teleocr_native_gateway.py +134 -0
- app/_bundle/scripts/cloud/test_cloud_connection.py +124 -0
- app/_bundle/scripts/cloud/vast_onstart.sh +26 -0
- app/_bundle/scripts/local/mineru_mlx_gateway.py +139 -0
- app/_bundle/scripts/serve_model.sh +79 -0
- app/api/__init__.py +54 -0
- app/api/auth.py +257 -0
- app/api/benchmark.py +111 -0
- app/api/blocks.py +712 -0
- app/api/cloud.py +622 -0
- app/api/datasets.py +213 -0
- app/api/deps.py +56 -0
- app/api/evaluate.py +68 -0
- app/api/live.py +148 -0
- app/api/models.py +206 -0
- app/api/page_work.py +66 -0
- app/api/pages.py +678 -0
- app/api/playground.py +198 -0
- app/api/prelabel.py +244 -0
- app/api/projects.py +772 -0
- app/api/recognition.py +135 -0
- app/api/settings.py +33 -0
- app/api/system.py +543 -0
- app/api/training.py +177 -0
- app/api/users.py +149 -0
- app/cli.py +69 -0
- app/config.py +188 -0
- app/db.py +513 -0
- app/main.py +134 -0
- app/schemas.py +599 -0
- app/services/__init__.py +1 -0
- app/services/alternative_training.py +236 -0
- app/services/annotation_schema.py +133 -0
- app/services/artifacts.py +52 -0
- app/services/audit.py +28 -0
- app/services/auth.py +229 -0
- app/services/backup.py +74 -0
- app/services/benchmark.py +633 -0
- app/services/blocks.py +173 -0
- app/services/cloud_manager.py +2191 -0
- app/services/compute_profiles.py +115 -0
- app/services/corpus.py +32 -0
- app/services/custom_models.py +209 -0
- app/services/dataset_builder.py +716 -0
- app/services/dewarp.py +177 -0
- app/services/domain_profiles.py +28 -0
- app/services/evaluate.py +587 -0
- app/services/export_formats.py +109 -0
- app/services/hardware.py +255 -0
- app/services/huggingface_auth.py +103 -0
- app/services/i18n.py +609 -0
- app/services/images.py +266 -0
- app/services/inference.py +1796 -0
- app/services/labeling.py +210 -0
- app/services/live.py +160 -0
- app/services/local_runtime.py +160 -0
- app/services/mineru_mlx_runtime.py +153 -0
- app/services/mlx_runtime.py +218 -0
- app/services/modal_manager.py +617 -0
- app/services/model_adapters.py +1862 -0
- app/services/model_labels.py +266 -0
- app/services/model_registry.py +609 -0
- app/services/model_settings.py +558 -0
- app/services/monkey_preprocess.py +153 -0
- app/services/native_picker.py +110 -0
- app/services/ocr.py +169 -0
- app/services/opencode_gateway.py +63 -0
- app/services/otsl.py +290 -0
- app/services/paddle_dataset.py +280 -0
- app/services/paddle_official.py +271 -0
- app/services/paddle_runtime.py +230 -0
- app/services/paddle_training.py +86 -0
- app/services/page_meta.py +74 -0
- app/services/page_work.py +138 -0
- app/services/pages.py +435 -0
- app/services/pilot.py +48 -0
- app/services/pipeline.py +73 -0
- app/services/prefill.py +1010 -0
- app/services/process_probe.py +87 -0
- app/services/rate_limit.py +21 -0
- app/services/recognition.py +653 -0
- app/services/scan.py +286 -0
- app/services/security.py +45 -0
- app/services/serve_manager.py +967 -0
- app/services/serve_recipes.py +380 -0
- app/services/settings.py +61 -0
- app/services/table_checks.py +386 -0
- app/services/table_detect.py +989 -0
- app/services/table_headers.py +102 -0
- app/services/table_hint.py +28 -0
- app/services/table_provenance.py +17 -0
- app/services/train_recipes.py +175 -0
- app/services/trainer.py +633 -0
- app/services/trainer_metrics.py +122 -0
- app/services/trainer_script.py +230 -0
- app/services/training_executor.py +305 -0
- app/services/unlimited_ocr_mlx_server.py +254 -0
- app/services/url_security.py +29 -0
- app/services/users.py +191 -0
- app/services/vault.py +142 -0
- app/services/vendor_repos.py +51 -0
- app/services/vram.py +191 -0
- tabularium-0.3.0.dist-info/METADATA +225 -0
- tabularium-0.3.0.dist-info/RECORD +245 -0
- tabularium-0.3.0.dist-info/WHEEL +4 -0
- tabularium-0.3.0.dist-info/entry_points.txt +2 -0
- 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};
|