@polycyphers/bim 0.1.1 → 0.1.4
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/README.md +34 -4
- package/dist/BimStudio.d.ts +8 -1
- package/dist/DigitizationReview.d.ts +22 -0
- package/dist/VersionHistory.d.ts +20 -0
- package/dist/digitizationTypes.d.ts +125 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2490 -1235
- package/dist/licensing.d.ts +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/studioState.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +30 -9
- package/package.json +9 -4
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createContext as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import e, { createContext as t, useCallback as n, useContext as r, useEffect as i, useRef as a, useState as o } from "react";
|
|
2
|
+
import s from "dompurify";
|
|
3
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
4
|
+
import { disableTelemetry as ee, disableTelemetry as te, enableTelemetry as d, setBrand as ne, verifySystemMessage as f } from "@polycyphers/license";
|
|
5
5
|
// src/i18n.ts
|
|
6
|
-
var
|
|
6
|
+
var p = {
|
|
7
7
|
studio: "Open studio",
|
|
8
8
|
pricing: "Pricing",
|
|
9
9
|
start: "Start with your sketch",
|
|
@@ -67,10 +67,10 @@ var m = {
|
|
|
67
67
|
account: "Account",
|
|
68
68
|
cancel: "Cancel",
|
|
69
69
|
close: "Close"
|
|
70
|
-
},
|
|
71
|
-
en:
|
|
70
|
+
}, m = {
|
|
71
|
+
en: p,
|
|
72
72
|
de: {
|
|
73
|
-
...
|
|
73
|
+
...p,
|
|
74
74
|
studio: "Studio öffnen",
|
|
75
75
|
pricing: "Preise",
|
|
76
76
|
start: "Mit Ihrer Skizze starten",
|
|
@@ -111,7 +111,7 @@ var m = {
|
|
|
111
111
|
close: "Schließen"
|
|
112
112
|
},
|
|
113
113
|
fr: {
|
|
114
|
-
...
|
|
114
|
+
...p,
|
|
115
115
|
studio: "Ouvrir le studio",
|
|
116
116
|
pricing: "Tarifs",
|
|
117
117
|
start: "Commencez par votre croquis",
|
|
@@ -152,7 +152,7 @@ var m = {
|
|
|
152
152
|
close: "Fermer"
|
|
153
153
|
},
|
|
154
154
|
ar: {
|
|
155
|
-
...
|
|
155
|
+
...p,
|
|
156
156
|
studio: "فتح الاستوديو",
|
|
157
157
|
pricing: "الأسعار",
|
|
158
158
|
start: "ابدأ برسمك",
|
|
@@ -193,7 +193,7 @@ var m = {
|
|
|
193
193
|
close: "إغلاق"
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
|
-
Object.assign(
|
|
196
|
+
Object.assign(m.de, {
|
|
197
197
|
workspace: "Wohnungskonzept",
|
|
198
198
|
example: "Referenzprojekt · vor Ort bestätigte Geometrie",
|
|
199
199
|
back: "Alle Projekte",
|
|
@@ -219,7 +219,7 @@ Object.assign(h.de, {
|
|
|
219
219
|
width: "Breite",
|
|
220
220
|
depth: "Tiefe",
|
|
221
221
|
account: "Konto"
|
|
222
|
-
}), Object.assign(
|
|
222
|
+
}), Object.assign(m.fr, {
|
|
223
223
|
workspace: "Concept d’appartement",
|
|
224
224
|
example: "Projet de référence · géométrie confirmée sur site",
|
|
225
225
|
back: "Tous les projets",
|
|
@@ -245,7 +245,7 @@ Object.assign(h.de, {
|
|
|
245
245
|
width: "Largeur",
|
|
246
246
|
depth: "Profondeur",
|
|
247
247
|
account: "Compte"
|
|
248
|
-
}), Object.assign(
|
|
248
|
+
}), Object.assign(m.ar, {
|
|
249
249
|
workspace: "تصوّر شقة",
|
|
250
250
|
example: "مشروع مرجعي · هندسة مؤكدة ميدانياً",
|
|
251
251
|
back: "كل المشاريع",
|
|
@@ -273,7 +273,7 @@ Object.assign(h.de, {
|
|
|
273
273
|
account: "الحساب"
|
|
274
274
|
});
|
|
275
275
|
// src/workflowText.ts
|
|
276
|
-
var
|
|
276
|
+
var h = {
|
|
277
277
|
de: {
|
|
278
278
|
"New project": "Neues Projekt",
|
|
279
279
|
"Enter measurements": "Maße eingeben",
|
|
@@ -410,7 +410,7 @@ var g = {
|
|
|
410
410
|
"Discrepancy report": "تقرير الفروقات"
|
|
411
411
|
}
|
|
412
412
|
};
|
|
413
|
-
Object.assign(
|
|
413
|
+
Object.assign(h.de, {
|
|
414
414
|
"Plan your next space": "Ihren nächsten Raum planen",
|
|
415
415
|
"Apartment layout": "Wohnungsgrundriss",
|
|
416
416
|
"House extension": "Hausanbau",
|
|
@@ -473,7 +473,7 @@ Object.assign(g.de, {
|
|
|
473
473
|
"The service scans and normalizes the image before storing it. Selecting a file alone does not send it to an AI provider. “Read saved sketch” sends the sanitized image to Anthropic Claude only when you request that step. EU storage is separate from inference location; provider region and data-processing terms require service configuration.": "Der Dienst prüft und normalisiert das Bild vor der Speicherung. Die Dateiauswahl allein sendet es nicht an einen KI-Anbieter. Erst die angeforderte Skizzenanalyse übermittelt das bereinigte Bild an Anthropic Claude. EU-Speicherung bestimmt nicht den Ort der KI-Verarbeitung; Anbieterregion und Datenschutzbedingungen müssen konfiguriert werden.",
|
|
474
474
|
"Reading sends this sanitized image to Anthropic Claude. EU storage and provider inference location are separate; provider data-processing terms must be configured by the service.": "Die Analyse sendet dieses bereinigte Bild an Anthropic Claude. EU-Speicherung und KI-Verarbeitungsort sind getrennt; der Dienst muss die Datenschutzbedingungen konfigurieren.",
|
|
475
475
|
"This requests removal of your projects, sketches and generated files in this service. Account identity, billing and required anti-abuse records are retained. Pending accounting may delay completion; we show the service's result.": "Damit wird die Löschung Ihrer Projekte, Skizzen und erzeugten Dateien in diesem Dienst angefordert. Kontoidentität, Abrechnungsdaten und notwendige Missbrauchsschutzdaten bleiben erhalten. Offene Abrechnung kann den Abschluss verzögern; das Ergebnis des Dienstes wird angezeigt."
|
|
476
|
-
}), Object.assign(
|
|
476
|
+
}), Object.assign(h.fr, {
|
|
477
477
|
"Plan your next space": "Préparez votre prochain espace",
|
|
478
478
|
"Apartment layout": "Plan d’appartement",
|
|
479
479
|
"House extension": "Extension de maison",
|
|
@@ -536,7 +536,7 @@ Object.assign(g.de, {
|
|
|
536
536
|
"The service scans and normalizes the image before storing it. Selecting a file alone does not send it to an AI provider. “Read saved sketch” sends the sanitized image to Anthropic Claude only when you request that step. EU storage is separate from inference location; provider region and data-processing terms require service configuration.": "Le service contrôle et normalise l’image avant stockage. La sélection d’un fichier ne l’envoie pas à un fournisseur d’IA. Seule la lecture explicitement demandée transmet l’image assainie à Anthropic Claude. Le stockage dans l’UE ne détermine pas le lieu d’inférence ; la région du fournisseur et les conditions de traitement doivent être configurées.",
|
|
537
537
|
"Reading sends this sanitized image to Anthropic Claude. EU storage and provider inference location are separate; provider data-processing terms must be configured by the service.": "La lecture transmet cette image assainie à Anthropic Claude. Le stockage dans l’UE et le lieu d’inférence sont distincts ; le service doit configurer les conditions de traitement.",
|
|
538
538
|
"This requests removal of your projects, sketches and generated files in this service. Account identity, billing and required anti-abuse records are retained. Pending accounting may delay completion; we show the service's result.": "Cette demande concerne les projets, croquis et fichiers générés dans ce service. L’identité du compte, la facturation et les données anti-abus nécessaires sont conservées. Une comptabilisation en attente peut retarder la suppression ; le résultat du service sera affiché."
|
|
539
|
-
}), Object.assign(
|
|
539
|
+
}), Object.assign(h.ar, {
|
|
540
540
|
"Plan your next space": "خطّط لمساحتك القادمة",
|
|
541
541
|
"Apartment layout": "تخطيط شقة",
|
|
542
542
|
"House extension": "توسعة منزل",
|
|
@@ -599,99 +599,1067 @@ Object.assign(g.de, {
|
|
|
599
599
|
"The service scans and normalizes the image before storing it. Selecting a file alone does not send it to an AI provider. “Read saved sketch” sends the sanitized image to Anthropic Claude only when you request that step. EU storage is separate from inference location; provider region and data-processing terms require service configuration.": "يفحص النظام الصورة ويوحّد تنسيقها قبل التخزين. اختيار الملف وحده لا يرسله إلى مزوّد ذكاء اصطناعي. تُرسل الصورة المنقّحة إلى Anthropic Claude فقط عند طلب قراءة الرسم المحفوظ. التخزين الأوروبي مستقل عن موقع المعالجة؛ يجب ضبط منطقة المزوّد وشروط معالجة البيانات.",
|
|
600
600
|
"Reading sends this sanitized image to Anthropic Claude. EU storage and provider inference location are separate; provider data-processing terms must be configured by the service.": "ترسل القراءة هذه الصورة المنقّحة إلى Anthropic Claude. التخزين الأوروبي وموقع المعالجة مستقلان؛ يجب أن يضبط النظام شروط معالجة البيانات.",
|
|
601
601
|
"This requests removal of your projects, sketches and generated files in this service. Account identity, billing and required anti-abuse records are retained. Pending accounting may delay completion; we show the service's result.": "يطلب هذا حذف المشاريع والرسوم والملفات الناتجة في هذه الخدمة. تبقى هوية الحساب والفواتير وسجلات مكافحة الإساءة الضرورية محفوظة. قد تؤخر المحاسبة المعلّقة الإتمام؛ نعرض نتيجة الخدمة."
|
|
602
|
-
}), Object.assign(
|
|
602
|
+
}), Object.assign(h.de, {
|
|
603
603
|
"Verifying component license…": "Komponentenlizenz wird geprüft…",
|
|
604
604
|
"A valid component license is required": "Eine gültige Komponentenlizenz ist erforderlich",
|
|
605
605
|
"The studio stays closed until its installation license and signed revocation status are verified.": "Das Studio bleibt geschlossen, bis Installationslizenz und signierter Sperrstatus geprüft sind.",
|
|
606
606
|
"Check license again": "Lizenz erneut prüfen",
|
|
607
607
|
"License management": "Lizenzverwaltung"
|
|
608
|
-
}), Object.assign(
|
|
608
|
+
}), Object.assign(h.fr, {
|
|
609
609
|
"Verifying component license…": "Vérification de la licence du composant…",
|
|
610
610
|
"A valid component license is required": "Une licence valide du composant est requise",
|
|
611
611
|
"The studio stays closed until its installation license and signed revocation status are verified.": "Le studio reste fermé tant que la licence d’installation et son état de révocation signé ne sont pas vérifiés.",
|
|
612
612
|
"Check license again": "Vérifier à nouveau la licence",
|
|
613
613
|
"License management": "Gestion des licences"
|
|
614
|
-
}), Object.assign(
|
|
614
|
+
}), Object.assign(h.ar, {
|
|
615
615
|
"Verifying component license…": "جارٍ التحقق من ترخيص المكوّن…",
|
|
616
616
|
"A valid component license is required": "يلزم ترخيص صالح للمكوّن",
|
|
617
617
|
"The studio stays closed until its installation license and signed revocation status are verified.": "يبقى الاستوديو مغلقاً حتى التحقق من ترخيص التثبيت وحالة الإلغاء الموقّعة.",
|
|
618
618
|
"Check license again": "إعادة فحص الترخيص",
|
|
619
619
|
"License management": "إدارة التراخيص"
|
|
620
|
+
}), Object.assign(h.de, {
|
|
621
|
+
"No layout proposal is available": "Kein Grundrissvorschlag verfügbar",
|
|
622
|
+
"Your measurements are retained. Review the engine findings and measurements before trying again.": "Ihre Maße bleiben erhalten. Prüfen Sie die Hinweise der Engine und die Maße vor einem neuen Versuch.",
|
|
623
|
+
"Review measurements": "Maße überprüfen"
|
|
624
|
+
}), Object.assign(h.fr, {
|
|
625
|
+
"No layout proposal is available": "Aucune proposition de plan disponible",
|
|
626
|
+
"Your measurements are retained. Review the engine findings and measurements before trying again.": "Vos mesures sont conservées. Vérifiez les observations du moteur et les mesures avant de réessayer.",
|
|
627
|
+
"Review measurements": "Vérifier les mesures"
|
|
628
|
+
}), Object.assign(h.ar, {
|
|
629
|
+
"No layout proposal is available": "لا يتوفر مقترح مخطط",
|
|
630
|
+
"Your measurements are retained. Review the engine findings and measurements before trying again.": "تبقى أبعادك محفوظة. راجع ملاحظات المحرك والأبعاد قبل المحاولة مجدداً.",
|
|
631
|
+
"Review measurements": "مراجعة الأبعاد"
|
|
632
|
+
}), Object.assign(h.de, {
|
|
633
|
+
"Saved as a new version. Earlier versions are unchanged.": "Als neue Version gespeichert. Frühere Versionen bleiben unverändert.",
|
|
634
|
+
"Hide version history": "Versionsverlauf ausblenden",
|
|
635
|
+
"Version history & compare": "Versionsverlauf und Vergleich",
|
|
636
|
+
"Saved versions": "Gespeicherte Versionen",
|
|
637
|
+
"History and comparison are read-only. Restoring creates a new version after the service checks the current version.": "Verlauf und Vergleich sind schreibgeschützt. Eine Wiederherstellung erstellt nach Prüfung der aktuellen Version eine neue Version.",
|
|
638
|
+
"Earlier version": "Frühere Version",
|
|
639
|
+
"Later version": "Spätere Version",
|
|
640
|
+
"Compare saved versions": "Gespeicherte Versionen vergleichen",
|
|
641
|
+
"Restore earlier version": "Frühere Version wiederherstellen",
|
|
642
|
+
"Footprint area change": "Änderung der Grundfläche",
|
|
643
|
+
"Engine comparison of saved inputs. Source measurements retain their uncertainty.": "Engine-Vergleich gespeicherter Eingaben. Die Ausgangsmaße behalten ihre Unsicherheit.",
|
|
644
|
+
"Selected layout": "Gewählter Grundriss",
|
|
645
|
+
"Changed inputs": "Geänderte Eingaben",
|
|
646
|
+
"No input changes reported.": "Keine geänderten Eingaben gemeldet."
|
|
647
|
+
}), Object.assign(h.fr, {
|
|
648
|
+
"Saved as a new version. Earlier versions are unchanged.": "Enregistré comme nouvelle version. Les versions précédentes restent inchangées.",
|
|
649
|
+
"Hide version history": "Masquer l’historique",
|
|
650
|
+
"Version history & compare": "Historique et comparaison",
|
|
651
|
+
"Saved versions": "Versions enregistrées",
|
|
652
|
+
"History and comparison are read-only. Restoring creates a new version after the service checks the current version.": "L’historique et la comparaison sont en lecture seule. La restauration crée une nouvelle version après contrôle de la version actuelle.",
|
|
653
|
+
"Earlier version": "Version précédente",
|
|
654
|
+
"Later version": "Version suivante",
|
|
655
|
+
"Compare saved versions": "Comparer les versions enregistrées",
|
|
656
|
+
"Restore earlier version": "Restaurer la version précédente",
|
|
657
|
+
"Footprint area change": "Variation de surface du contour",
|
|
658
|
+
"Engine comparison of saved inputs. Source measurements retain their uncertainty.": "Comparaison des entrées enregistrées par le moteur. Les mesures sources conservent leur incertitude.",
|
|
659
|
+
"Selected layout": "Plan sélectionné",
|
|
660
|
+
"Changed inputs": "Entrées modifiées",
|
|
661
|
+
"No input changes reported.": "Aucune modification des entrées signalée."
|
|
662
|
+
}), Object.assign(h.ar, {
|
|
663
|
+
"Saved as a new version. Earlier versions are unchanged.": "حُفظ كنسخة جديدة. تبقى النسخ السابقة دون تغيير.",
|
|
664
|
+
"Hide version history": "إخفاء سجل النسخ",
|
|
665
|
+
"Version history & compare": "سجل النسخ والمقارنة",
|
|
666
|
+
"Saved versions": "النسخ المحفوظة",
|
|
667
|
+
"History and comparison are read-only. Restoring creates a new version after the service checks the current version.": "السجل والمقارنة للقراءة فقط. تنشئ الاستعادة نسخة جديدة بعد تحقق النظام من النسخة الحالية.",
|
|
668
|
+
"Earlier version": "النسخة السابقة",
|
|
669
|
+
"Later version": "النسخة اللاحقة",
|
|
670
|
+
"Compare saved versions": "مقارنة النسخ المحفوظة",
|
|
671
|
+
"Restore earlier version": "استعادة النسخة السابقة",
|
|
672
|
+
"Footprint area change": "تغيّر مساحة المحيط",
|
|
673
|
+
"Engine comparison of saved inputs. Source measurements retain their uncertainty.": "مقارنة المحرك للمدخلات المحفوظة. تبقى أبعاد المصدر غير مؤكدة.",
|
|
674
|
+
"Selected layout": "المخطط المختار",
|
|
675
|
+
"Changed inputs": "المدخلات المتغيّرة",
|
|
676
|
+
"No input changes reported.": "لم تُسجّل تغييرات في المدخلات."
|
|
677
|
+
}), Object.assign(h.de, {
|
|
678
|
+
"Pending inputs are saved privately. They are not an accepted result.": "Ausstehende Eingaben sind privat gespeichert. Sie sind noch kein bestätigtes Ergebnis.",
|
|
679
|
+
"This paid project reached its configured limit. Another purchase will not extend its allowance.": "Dieses bezahlte Projekt hat seine festgelegte Grenze erreicht. Ein weiterer Kauf erweitert das Kontingent nicht."
|
|
680
|
+
}), Object.assign(h.fr, {
|
|
681
|
+
"Pending inputs are saved privately. They are not an accepted result.": "Les données en attente sont enregistrées en privé. Elles ne constituent pas encore un résultat accepté.",
|
|
682
|
+
"This paid project reached its configured limit. Another purchase will not extend its allowance.": "Ce projet payé a atteint sa limite configurée. Un nouvel achat n’augmentera pas son quota."
|
|
683
|
+
}), Object.assign(h.ar, {
|
|
684
|
+
"Pending inputs are saved privately. They are not an accepted result.": "حُفظت المدخلات المعلقة بشكل خاص. وهي ليست نتيجة معتمدة بعد.",
|
|
685
|
+
"This paid project reached its configured limit. Another purchase will not extend its allowance.": "وصل هذا المشروع المدفوع إلى الحد المحدد. لن تزيد عملية شراء أخرى حصته."
|
|
620
686
|
});
|
|
621
|
-
function
|
|
622
|
-
return e === "en" ? t :
|
|
687
|
+
function g(e, t) {
|
|
688
|
+
return e === "en" ? t : h[e][t] ?? t;
|
|
689
|
+
}
|
|
690
|
+
// src/VersionHistory.tsx
|
|
691
|
+
function re({ language: e, version: t, busy: n, preview: r, open: i, versions: a, comparison: o, left: s, right: c, onToggle: ee, onLeftChange: te, onRightChange: d, onCompare: ne, onRestore: f }) {
|
|
692
|
+
let p = a?.some((e) => e.version === s), m = a?.some((e) => e.version === c);
|
|
693
|
+
return /* @__PURE__ */ u("section", {
|
|
694
|
+
className: "paper version-history",
|
|
695
|
+
children: [/* @__PURE__ */ l("button", {
|
|
696
|
+
className: "outline",
|
|
697
|
+
disabled: n,
|
|
698
|
+
"aria-expanded": i,
|
|
699
|
+
"aria-controls": "bim-version-history",
|
|
700
|
+
onClick: ee,
|
|
701
|
+
children: g(e, i ? "Hide version history" : "Version history & compare")
|
|
702
|
+
}), i && a && /* @__PURE__ */ u("div", {
|
|
703
|
+
id: "bim-version-history",
|
|
704
|
+
children: [
|
|
705
|
+
/* @__PURE__ */ l("h3", { children: g(e, "Saved versions") }),
|
|
706
|
+
/* @__PURE__ */ l("p", { children: g(e, "History and comparison are read-only. Restoring creates a new version after the service checks the current version.") }),
|
|
707
|
+
/* @__PURE__ */ l("ul", { children: a.map((t) => /* @__PURE__ */ u("li", { children: [
|
|
708
|
+
/* @__PURE__ */ u("strong", { children: ["v", t.version] }),
|
|
709
|
+
" · ",
|
|
710
|
+
new Date(t.createdAtUtc).toLocaleString(e),
|
|
711
|
+
t.selectedProposalId ? " · " + t.selectedProposalId : "",
|
|
712
|
+
t.note ? " · " + t.note : ""
|
|
713
|
+
] }, t.version)) }),
|
|
714
|
+
/* @__PURE__ */ u("div", {
|
|
715
|
+
className: "actions",
|
|
716
|
+
children: [
|
|
717
|
+
/* @__PURE__ */ u("label", {
|
|
718
|
+
className: "field",
|
|
719
|
+
children: [g(e, "Earlier version"), /* @__PURE__ */ l("select", {
|
|
720
|
+
disabled: n,
|
|
721
|
+
value: s,
|
|
722
|
+
onChange: (e) => te(Number(e.target.value)),
|
|
723
|
+
children: a.map((e) => /* @__PURE__ */ u("option", {
|
|
724
|
+
value: e.version,
|
|
725
|
+
children: ["v", e.version]
|
|
726
|
+
}, e.version))
|
|
727
|
+
})]
|
|
728
|
+
}),
|
|
729
|
+
/* @__PURE__ */ u("label", {
|
|
730
|
+
className: "field",
|
|
731
|
+
children: [g(e, "Later version"), /* @__PURE__ */ l("select", {
|
|
732
|
+
disabled: n,
|
|
733
|
+
value: c,
|
|
734
|
+
onChange: (e) => d(Number(e.target.value)),
|
|
735
|
+
children: a.map((e) => /* @__PURE__ */ u("option", {
|
|
736
|
+
value: e.version,
|
|
737
|
+
children: ["v", e.version]
|
|
738
|
+
}, e.version))
|
|
739
|
+
})]
|
|
740
|
+
}),
|
|
741
|
+
/* @__PURE__ */ l("button", {
|
|
742
|
+
className: "outline",
|
|
743
|
+
disabled: n || s === c || !p || !m,
|
|
744
|
+
onClick: ne,
|
|
745
|
+
children: g(e, "Compare saved versions")
|
|
746
|
+
}),
|
|
747
|
+
/* @__PURE__ */ l("button", {
|
|
748
|
+
className: "outline",
|
|
749
|
+
disabled: n || r || s === t || !p,
|
|
750
|
+
onClick: f,
|
|
751
|
+
children: g(e, "Restore earlier version")
|
|
752
|
+
})
|
|
753
|
+
]
|
|
754
|
+
}),
|
|
755
|
+
o && /* @__PURE__ */ u("article", {
|
|
756
|
+
className: "comparison-summary",
|
|
757
|
+
role: "status",
|
|
758
|
+
children: [
|
|
759
|
+
/* @__PURE__ */ u("h4", { children: [
|
|
760
|
+
"v",
|
|
761
|
+
o.leftVersion,
|
|
762
|
+
" → v",
|
|
763
|
+
o.rightVersion
|
|
764
|
+
] }),
|
|
765
|
+
o.areaDeltaM2 != null && /* @__PURE__ */ u("p", { children: [
|
|
766
|
+
g(e, "Footprint area change"),
|
|
767
|
+
": ",
|
|
768
|
+
o.areaDeltaM2.toLocaleString(e, { maximumFractionDigits: 4 }),
|
|
769
|
+
" m² ",
|
|
770
|
+
/* @__PURE__ */ u("small", {
|
|
771
|
+
className: "value-tag",
|
|
772
|
+
children: [
|
|
773
|
+
g(e, "calculated"),
|
|
774
|
+
" · ",
|
|
775
|
+
g(e, "unconfirmed")
|
|
776
|
+
]
|
|
777
|
+
})
|
|
778
|
+
] }),
|
|
779
|
+
/* @__PURE__ */ l("p", { children: g(e, "Engine comparison of saved inputs. Source measurements retain their uncertainty.") }),
|
|
780
|
+
/* @__PURE__ */ u("p", { children: [
|
|
781
|
+
g(e, "Selected layout"),
|
|
782
|
+
": ",
|
|
783
|
+
o.leftProposalId ?? "—",
|
|
784
|
+
" → ",
|
|
785
|
+
o.rightProposalId ?? "—"
|
|
786
|
+
] }),
|
|
787
|
+
/* @__PURE__ */ l("h4", { children: g(e, "Changed inputs") }),
|
|
788
|
+
o.changedInputs.length ? /* @__PURE__ */ l("ul", { children: o.changedInputs.map((e, t) => /* @__PURE__ */ l("li", { children: e }, t)) }) : /* @__PURE__ */ l("p", { children: g(e, "No input changes reported.") })
|
|
789
|
+
]
|
|
790
|
+
})
|
|
791
|
+
]
|
|
792
|
+
})]
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
// src/digitizationTypes.ts
|
|
796
|
+
var ie = () => ({
|
|
797
|
+
schemaVersion: 1,
|
|
798
|
+
units: "m",
|
|
799
|
+
vertices: [],
|
|
800
|
+
boundaryVertexIds: [],
|
|
801
|
+
walls: [],
|
|
802
|
+
rooms: [],
|
|
803
|
+
openings: []
|
|
804
|
+
}), ae = (e) => ({
|
|
805
|
+
value: e,
|
|
806
|
+
origin: "user-given",
|
|
807
|
+
source: "Explicitly entered in existing-plan review."
|
|
808
|
+
}), oe = () => ({
|
|
809
|
+
value: NaN,
|
|
810
|
+
origin: "estimated",
|
|
811
|
+
source: "Unspecified; enter a known value before review."
|
|
812
|
+
}), _ = (e) => e.values.values.filter((t) => (t.origin === "measured" || t.origin === "user-given") && (!e.requiredReviewPaths || e.requiredReviewPaths.includes(t.path))).map((e) => e.path), v = (e) => [
|
|
813
|
+
...e.vertices.flatMap((e) => [e.x, e.y]),
|
|
814
|
+
...e.walls.map((e) => e.thickness),
|
|
815
|
+
...e.openings.flatMap((e) => [e.offset, e.width])
|
|
816
|
+
].every((e) => Number.isFinite(e.value));
|
|
817
|
+
function se(e) {
|
|
818
|
+
let t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
819
|
+
let r = e + ":" + n, i = t.get(r);
|
|
820
|
+
return i || (i = crypto.randomUUID().replaceAll("-", ""), t.set(r, i)), i;
|
|
821
|
+
}, r = (e) => e ? {
|
|
822
|
+
value: e.value,
|
|
823
|
+
origin: "estimated",
|
|
824
|
+
source: e.source
|
|
825
|
+
} : oe();
|
|
826
|
+
return {
|
|
827
|
+
schemaVersion: 1,
|
|
828
|
+
units: e.units,
|
|
829
|
+
vertices: e.vertices.map((e) => ({
|
|
830
|
+
id: n("v", e.id),
|
|
831
|
+
x: r(e.x),
|
|
832
|
+
y: r(e.y)
|
|
833
|
+
})),
|
|
834
|
+
boundaryVertexIds: e.boundaryVertexIds.map((e) => n("v", e)),
|
|
835
|
+
walls: e.walls.map((e) => ({
|
|
836
|
+
...e,
|
|
837
|
+
id: n("w", e.id),
|
|
838
|
+
startVertexId: n("v", e.startVertexId),
|
|
839
|
+
endVertexId: n("v", e.endVertexId),
|
|
840
|
+
thickness: r(e.thickness)
|
|
841
|
+
})),
|
|
842
|
+
rooms: e.rooms.map((e) => ({
|
|
843
|
+
...e,
|
|
844
|
+
id: n("r", e.id),
|
|
845
|
+
vertexIds: e.vertexIds.map((e) => n("v", e))
|
|
846
|
+
})),
|
|
847
|
+
openings: e.openings.map((e) => ({
|
|
848
|
+
...e,
|
|
849
|
+
id: n("o", e.id),
|
|
850
|
+
hostWallId: n("w", e.hostWallId),
|
|
851
|
+
offset: r(e.offset),
|
|
852
|
+
width: r(e.width),
|
|
853
|
+
height: null,
|
|
854
|
+
sill: null
|
|
855
|
+
}))
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
// src/DigitizationReview.tsx
|
|
859
|
+
var y = {
|
|
860
|
+
en: /* @__PURE__ */ "Preserve an existing plan,Enter known coordinates and review boundaries before export. Optional image observations remain unconfirmed and cannot establish physical scale.,Load saved plan,Corners,Add corner,Use corners as outer boundary,Walls,Add wall,Start,End,Thickness,Rooms,Add room,Name,Corner numbers in boundary order,Openings,Add opening,Host wall,Position,Width,Height,Sill,Review geometry,Save reviewed plan,I checked these user-given values against my source. Estimates remain unconfirmed.,Export reviewed plan,Saved revision,Restore revision,Restore,Remove,Download,Unsaved changes,Type".split(","),
|
|
861
|
+
de: /* @__PURE__ */ "Bestehenden Plan erhalten,Bekannte Koordinaten und Grenzen vor dem Export prüfen. Optionale Bildbeobachtungen bleiben unbestätigt und bestätigen keinen physischen Maßstab.,Plan laden,Ecken,Ecke hinzufügen,Ecken als Außenumriss verwenden,Wände,Wand hinzufügen,Anfang,Ende,Dicke,Räume,Raum hinzufügen,Name,Eckennummern in Umrissreihenfolge,Öffnungen,Öffnung hinzufügen,Wand,Position,Breite,Höhe,Brüstung,Geometrie prüfen,Geprüften Plan speichern,Ich habe die Nutzerangaben mit meiner Quelle verglichen. Schätzwerte bleiben unbestätigt.,Geprüften Plan exportieren,Gespeicherte Version,Version wiederherstellen,Wiederherstellen,Entfernen,Herunterladen,Ungespeicherte Änderungen,Art".split(","),
|
|
862
|
+
fr: /* @__PURE__ */ "Conserver un plan existant,Saisir les coordonnées connues et vérifier les limites avant export. Les observations d’image restent non confirmées et ne valident aucune échelle physique.,Charger le plan,Sommets,Ajouter un sommet,Utiliser comme contour extérieur,Murs,Ajouter un mur,Début,Fin,Épaisseur,Pièces,Ajouter une pièce,Nom,Numéros des sommets dans l’ordre du contour,Ouvertures,Ajouter une ouverture,Mur support,Position,Largeur,Hauteur,Allège,Vérifier la géométrie,Enregistrer le plan vérifié,J’ai vérifié ces valeurs avec ma source. Les estimations restent non confirmées.,Exporter le plan vérifié,Version enregistrée,Restaurer la version,Restaurer,Supprimer,Télécharger,Modifications non enregistrées,Type".split(","),
|
|
863
|
+
ar: /* @__PURE__ */ "الحفاظ على مخطط قائم,أدخل الإحداثيات المعروفة وراجع الحدود قبل التصدير. تبقى ملاحظات الصورة غير مؤكدة ولا تثبت مقياساً فعلياً.,تحميل المخطط,الزوايا,إضافة زاوية,استخدام الزوايا كحدود خارجية,الجدران,إضافة جدار,البداية,النهاية,السماكة,الغرف,إضافة غرفة,الاسم,أرقام الزوايا بترتيب الحدود,الفتحات,إضافة فتحة,الجدار,الموضع,العرض,الارتفاع,العتبة,فحص الهندسة,حفظ المخطط المراجع,راجعت القيم المقدمة مع مصدري. تبقى التقديرات غير مؤكدة.,تصدير المخطط المراجع,الإصدار المحفوظ,استعادة الإصدار,استعادة,إزالة,تنزيل,تغييرات غير محفوظة,النوع".split(",")
|
|
864
|
+
}, b = () => crypto.randomUUID().replaceAll("-", "");
|
|
865
|
+
function x({ projectId: t, projectVersion: n, language: r, api: c, onState: ee, onDownload: te, disabled: d = !1, sourceObjectId: ne, imageUrl: f, pendingDraft: p, persistPending: m, onPendingSaved: h, registerPendingSaver: g, loadSavedOnMount: re = !1 }) {
|
|
866
|
+
let [x, ce] = o(() => p?.graph ?? ie()), [S, C] = o(p?.baseDigitizationRevision ?? 0), [w, le] = o(null), [T, E] = o(!!p?.graph), [D, ue] = o(!1), [O, k] = o(""), [A, j] = o(!1), [de, M] = o(null), [fe, N] = o(1), [pe, me] = o(["svg", "dxf"]), [he, P] = o(!1), [ge, _e] = o(50), [F, ve] = o(p?.sourceObjectId ?? ne), [I, ye] = o(!1), [L, be] = o(null), [xe, Se] = o(null), [R, Ce] = o(""), [we, Te] = o(""), [Ee, De] = o(""), [Oe, z] = o(() => p?.graph ? JSON.stringify(p.graph) : null), B = a(0), V = a(!0), ke = a(!1), H = a(c), Ae = a(ee);
|
|
867
|
+
H.current = c, Ae.current = ee;
|
|
868
|
+
let U = d, W = y[r], je = `/projects/${t}/digitization`, G = a(n), Me = a({
|
|
869
|
+
g: x,
|
|
870
|
+
revision: S,
|
|
871
|
+
source: F,
|
|
872
|
+
dirty: T,
|
|
873
|
+
persistPending: m,
|
|
874
|
+
onPendingSaved: h
|
|
875
|
+
});
|
|
876
|
+
Me.current = {
|
|
877
|
+
g: x,
|
|
878
|
+
revision: S,
|
|
879
|
+
source: F,
|
|
880
|
+
dirty: T,
|
|
881
|
+
persistPending: m,
|
|
882
|
+
onPendingSaved: h
|
|
883
|
+
};
|
|
884
|
+
async function Ne() {
|
|
885
|
+
let e = Me.current;
|
|
886
|
+
if (!e.persistPending || !e.dirty && e.revision > 0) return null;
|
|
887
|
+
if (!v(e.g)) throw Error("Enter known numeric values before preserving this draft or checkout. Missing values are never replaced with zero.");
|
|
888
|
+
let n = B.current, r = await e.persistPending({
|
|
889
|
+
workflow: "existing-plan",
|
|
890
|
+
graph: e.g,
|
|
891
|
+
sourceObjectId: e.source,
|
|
892
|
+
baseDigitizationRevision: e.revision
|
|
893
|
+
}, G.current, t);
|
|
894
|
+
if (!V.current || n !== B.current) throw new DOMException("The pending workspace changed.", "AbortError");
|
|
895
|
+
return G.current = r.version, z(JSON.stringify(e.g)), e.onPendingSaved?.(r), r;
|
|
896
|
+
}
|
|
897
|
+
i(() => (g?.(Ne), () => g?.(null)), [g]), i(() => (V.current = !0, () => {
|
|
898
|
+
V.current = !1, B.current++, Ae.current({
|
|
899
|
+
busy: !1,
|
|
900
|
+
hasUnsavedChanges: !1
|
|
901
|
+
});
|
|
902
|
+
}), []), i(() => {
|
|
903
|
+
Ae.current({
|
|
904
|
+
busy: D,
|
|
905
|
+
hasUnsavedChanges: T && JSON.stringify(x) !== Oe
|
|
906
|
+
});
|
|
907
|
+
}, [
|
|
908
|
+
D,
|
|
909
|
+
T,
|
|
910
|
+
x,
|
|
911
|
+
Oe
|
|
912
|
+
]), i(() => {
|
|
913
|
+
n !== G.current && (G.current = n, B.current++, le(null), j(!1), M(null), p?.graph && (ce(p.graph), z(JSON.stringify(p.graph)), C(p.baseDigitizationRevision ?? 0), E(!0)));
|
|
914
|
+
}, [n]), i(() => {
|
|
915
|
+
B.current++, S > 0 && F !== ne && E(!0), ve(ne), be(null), Se(null), ye(!1), j(!1), le(null), M(null);
|
|
916
|
+
}, [ne]), i(() => {
|
|
917
|
+
if (!p?.graph && !re) return;
|
|
918
|
+
let e = B.current;
|
|
919
|
+
H.current(je).then((t) => {
|
|
920
|
+
V.current && e === B.current && t && Number.isInteger(t.revision) && (p?.graph ? t.revision <= Me.current.revision || (B.current++, C(t.revision), le(null), j(!1), M(null), k("The saved plan changed. Your pending observations are restored; review them again before saving.")) : Ie(t));
|
|
921
|
+
}).catch(() => {});
|
|
922
|
+
}, []);
|
|
923
|
+
function K(e) {
|
|
924
|
+
B.current++, ce(e), E(!0), le(null), M(null), j(!1);
|
|
925
|
+
}
|
|
926
|
+
async function Pe(e, t) {
|
|
927
|
+
let n = B.current, r = await H.current(e, t);
|
|
928
|
+
if (!V.current || n !== B.current) throw new DOMException("The reviewed workspace changed.", "AbortError");
|
|
929
|
+
return r;
|
|
930
|
+
}
|
|
931
|
+
async function Fe(e) {
|
|
932
|
+
if (!(ke.current || U)) {
|
|
933
|
+
ke.current = !0, ue(!0), k("");
|
|
934
|
+
try {
|
|
935
|
+
await e();
|
|
936
|
+
} catch (e) {
|
|
937
|
+
V.current && !(e instanceof DOMException && e.name === "AbortError") && k(e instanceof Error ? e.message : String(e));
|
|
938
|
+
} finally {
|
|
939
|
+
ke.current = !1, V.current && ue(!1);
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
function Ie(e) {
|
|
944
|
+
V.current && (ve(e.sourceObjectId ?? ne), be(null), Se(null), ye(!1), ce(e.graph), C(e.revision), le({
|
|
945
|
+
...e.review,
|
|
946
|
+
svg: e.svg ?? e.review.svg,
|
|
947
|
+
pricingNotice: e.pricingNotice ?? e.review.pricingNotice
|
|
948
|
+
}), E(!1), z(null), j(!1), M(null), me(e.availableFormats ?? ["svg", "dxf"]), P(!1));
|
|
949
|
+
}
|
|
950
|
+
let q = (e, t, n = !1) => /* @__PURE__ */ l("button", {
|
|
951
|
+
type: "button",
|
|
952
|
+
className: "outline",
|
|
953
|
+
disabled: D || U || n,
|
|
954
|
+
onClick: t,
|
|
955
|
+
children: e
|
|
956
|
+
});
|
|
957
|
+
function Le(e, t, n) {
|
|
958
|
+
return /* @__PURE__ */ u("label", {
|
|
959
|
+
className: "field",
|
|
960
|
+
children: [
|
|
961
|
+
e,
|
|
962
|
+
" (",
|
|
963
|
+
x.units,
|
|
964
|
+
")",
|
|
965
|
+
/* @__PURE__ */ l("input", {
|
|
966
|
+
type: "number",
|
|
967
|
+
step: "any",
|
|
968
|
+
value: !Number.isFinite(t.value) || t.origin === "estimated" ? "" : t.value,
|
|
969
|
+
placeholder: t.origin === "estimated" && Number.isFinite(t.value) ? String(t.value) : void 0,
|
|
970
|
+
onChange: (e) => {
|
|
971
|
+
let t = e.currentTarget.valueAsNumber;
|
|
972
|
+
n(Number.isFinite(t) ? ae(t) : {
|
|
973
|
+
value: NaN,
|
|
974
|
+
origin: "estimated",
|
|
975
|
+
source: "Unspecified; enter a known value before review."
|
|
976
|
+
});
|
|
977
|
+
}
|
|
978
|
+
}),
|
|
979
|
+
/* @__PURE__ */ u("small", { children: [
|
|
980
|
+
t.origin,
|
|
981
|
+
t.origin === "estimated" && Number.isFinite(t.value) ? ": " + t.value : "",
|
|
982
|
+
" · ",
|
|
983
|
+
t.source
|
|
984
|
+
] })
|
|
985
|
+
]
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
function J(e, t, n) {
|
|
989
|
+
return /* @__PURE__ */ u("label", {
|
|
990
|
+
className: "field",
|
|
991
|
+
children: [e, /* @__PURE__ */ u("select", {
|
|
992
|
+
value: t,
|
|
993
|
+
onChange: (e) => n(e.target.value),
|
|
994
|
+
children: [/* @__PURE__ */ l("option", {
|
|
995
|
+
value: "",
|
|
996
|
+
children: "—"
|
|
997
|
+
}), x.vertices.map((e, t) => /* @__PURE__ */ l("option", {
|
|
998
|
+
value: e.id,
|
|
999
|
+
children: t + 1
|
|
1000
|
+
}, e.id))]
|
|
1001
|
+
})]
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
return /* @__PURE__ */ u("details", {
|
|
1005
|
+
className: "digitization-review paper",
|
|
1006
|
+
children: [/* @__PURE__ */ u("summary", { children: [
|
|
1007
|
+
W[0],
|
|
1008
|
+
" ",
|
|
1009
|
+
T && /* @__PURE__ */ l("small", { children: W[31] })
|
|
1010
|
+
] }), /* @__PURE__ */ u("fieldset", {
|
|
1011
|
+
disabled: D || U,
|
|
1012
|
+
style: {
|
|
1013
|
+
border: 0,
|
|
1014
|
+
padding: 0,
|
|
1015
|
+
minWidth: 0
|
|
1016
|
+
},
|
|
1017
|
+
children: [
|
|
1018
|
+
/* @__PURE__ */ l("p", { children: W[1] }),
|
|
1019
|
+
/* @__PURE__ */ u("label", { children: [{
|
|
1020
|
+
en: "Input units",
|
|
1021
|
+
de: "Eingabeeinheit",
|
|
1022
|
+
fr: "Unité des données",
|
|
1023
|
+
ar: "وحدات الإدخال"
|
|
1024
|
+
}[r], /* @__PURE__ */ l("select", {
|
|
1025
|
+
disabled: D || U,
|
|
1026
|
+
value: x.units,
|
|
1027
|
+
onChange: (e) => K({
|
|
1028
|
+
...x,
|
|
1029
|
+
units: e.target.value
|
|
1030
|
+
}),
|
|
1031
|
+
children: [
|
|
1032
|
+
"m",
|
|
1033
|
+
"cm",
|
|
1034
|
+
"mm"
|
|
1035
|
+
].map((e) => /* @__PURE__ */ l("option", { children: e }, e))
|
|
1036
|
+
})] }),
|
|
1037
|
+
q(W[2], () => void Fe(async () => {
|
|
1038
|
+
let e = await Pe(je);
|
|
1039
|
+
e ? Ie(e) : k({
|
|
1040
|
+
en: "No saved existing plan yet.",
|
|
1041
|
+
de: "Noch kein bestehender Plan gespeichert.",
|
|
1042
|
+
fr: "Aucun plan existant enregistré.",
|
|
1043
|
+
ar: "لا يوجد مخطط قائم محفوظ بعد."
|
|
1044
|
+
}[r]);
|
|
1045
|
+
}), T),
|
|
1046
|
+
S > 0 && /* @__PURE__ */ u("p", { children: [
|
|
1047
|
+
W[26],
|
|
1048
|
+
" ",
|
|
1049
|
+
S
|
|
1050
|
+
] }),
|
|
1051
|
+
F && /* @__PURE__ */ u("section", { children: [
|
|
1052
|
+
/* @__PURE__ */ u("label", { children: [/* @__PURE__ */ l("input", {
|
|
1053
|
+
type: "checkbox",
|
|
1054
|
+
checked: I,
|
|
1055
|
+
disabled: D || U,
|
|
1056
|
+
onChange: (e) => ye(e.target.checked)
|
|
1057
|
+
}), {
|
|
1058
|
+
en: "Send this saved image to Anthropic for unconfirmed image-coordinate observations. This does not establish physical scale.",
|
|
1059
|
+
de: "Gespeichertes Bild an Anthropic für unbestätigte Bildkoordinaten senden. Dies bestätigt keinen Maßstab.",
|
|
1060
|
+
fr: "Envoyer cette image à Anthropic pour des observations non confirmées. Aucune échelle physique ne sera confirmée.",
|
|
1061
|
+
ar: "إرسال الصورة المحفوظة إلى Anthropic لملاحظات غير مؤكدة. هذا لا يحدد مقياساً فعلياً."
|
|
1062
|
+
}[r]] }),
|
|
1063
|
+
q({
|
|
1064
|
+
en: "Read image observations",
|
|
1065
|
+
de: "Bildbeobachtungen lesen",
|
|
1066
|
+
fr: "Lire les observations de l’image",
|
|
1067
|
+
ar: "قراءة ملاحظات الصورة"
|
|
1068
|
+
}[r], () => void Fe(async () => {
|
|
1069
|
+
let e = await Pe(je + "/recognize", {
|
|
1070
|
+
expectedProjectVersion: G.current,
|
|
1071
|
+
expectedRevision: S,
|
|
1072
|
+
operationId: b(),
|
|
1073
|
+
sourceObjectId: F,
|
|
1074
|
+
intent: "Identify existing boundaries, walls, rooms and openings as unconfirmed image coordinates only.",
|
|
1075
|
+
allowAiProcessing: !0
|
|
1076
|
+
});
|
|
1077
|
+
V.current && (be(e), Se(null), Ce(""), Te(""), De(""));
|
|
1078
|
+
}), !I),
|
|
1079
|
+
L && /* @__PURE__ */ u("div", {
|
|
1080
|
+
role: "status",
|
|
1081
|
+
children: [
|
|
1082
|
+
/* @__PURE__ */ l("p", { children: {
|
|
1083
|
+
en: "Estimated image tracing only. Physical calibration and reviewed measurements are still required; no metric plan was adopted.",
|
|
1084
|
+
de: "Nur geschätzte Bildkonturen. Physische Kalibrierung und geprüfte Maße fehlen; kein metrischer Plan wurde übernommen.",
|
|
1085
|
+
fr: "Tracé estimatif uniquement. Calibration et mesures vérifiées restent nécessaires ; aucun plan métrique adopté.",
|
|
1086
|
+
ar: "تتبع تقديري للصورة فقط. ما زالت المعايرة والقياسات المراجعة مطلوبة؛ لم يتم اعتماد مخطط متري."
|
|
1087
|
+
}[r] }),
|
|
1088
|
+
L.questions.map((e, t) => /* @__PURE__ */ l("p", { children: e }, t)),
|
|
1089
|
+
L.candidate && /* @__PURE__ */ u("svg", {
|
|
1090
|
+
"aria-label": "Unconfirmed image-coordinate tracing",
|
|
1091
|
+
viewBox: `0 0 ${L.candidate.imageWidthPx} ${L.candidate.imageHeightPx}`,
|
|
1092
|
+
style: {
|
|
1093
|
+
width: "100%",
|
|
1094
|
+
maxHeight: 350
|
|
1095
|
+
},
|
|
1096
|
+
children: [
|
|
1097
|
+
f && F === ne && /* @__PURE__ */ l("image", {
|
|
1098
|
+
href: f,
|
|
1099
|
+
width: L.candidate.imageWidthPx,
|
|
1100
|
+
height: L.candidate.imageHeightPx
|
|
1101
|
+
}),
|
|
1102
|
+
" ",
|
|
1103
|
+
L.candidate.walls.map((e) => {
|
|
1104
|
+
let t = L.candidate.vertices.find((t) => t.id === e.startVertexId), n = L.candidate.vertices.find((t) => t.id === e.endVertexId);
|
|
1105
|
+
return t && n ? /* @__PURE__ */ l("line", {
|
|
1106
|
+
x1: t.xPx,
|
|
1107
|
+
y1: t.yPx,
|
|
1108
|
+
x2: n.xPx,
|
|
1109
|
+
y2: n.yPx,
|
|
1110
|
+
stroke: "#397e70",
|
|
1111
|
+
strokeWidth: "2"
|
|
1112
|
+
}, e.id) : null;
|
|
1113
|
+
}),
|
|
1114
|
+
L.candidate.vertices.map((e) => /* @__PURE__ */ u("g", { children: [/* @__PURE__ */ l("circle", {
|
|
1115
|
+
cx: e.xPx,
|
|
1116
|
+
cy: e.yPx,
|
|
1117
|
+
r: Math.max(3, L.candidate.imageWidthPx / 120),
|
|
1118
|
+
fill: e.id === R || e.id === we ? "#bd641c" : "#397e70"
|
|
1119
|
+
}), /* @__PURE__ */ l("text", {
|
|
1120
|
+
x: e.xPx + 5,
|
|
1121
|
+
y: e.yPx - 5,
|
|
1122
|
+
fontSize: Math.max(8, L.candidate.imageWidthPx / 60),
|
|
1123
|
+
fill: "#1f2b28",
|
|
1124
|
+
children: e.id
|
|
1125
|
+
})] }, e.id))
|
|
1126
|
+
]
|
|
1127
|
+
})
|
|
1128
|
+
]
|
|
1129
|
+
})
|
|
1130
|
+
] }),
|
|
1131
|
+
L?.candidate && /* @__PURE__ */ u("section", { children: [
|
|
1132
|
+
/* @__PURE__ */ l("h3", { children: {
|
|
1133
|
+
en: "Calibration preview — not confirmed dimensions",
|
|
1134
|
+
de: "Kalibrierungsvorschau — keine bestätigten Maße",
|
|
1135
|
+
fr: "Aperçu calibré — mesures non confirmées",
|
|
1136
|
+
ar: "معاينة المعايرة — قياسات غير مؤكدة"
|
|
1137
|
+
}[r] }),
|
|
1138
|
+
/* @__PURE__ */ l("p", { children: {
|
|
1139
|
+
en: "Choose two endpoints and enter their known distance in metres. The selected start point is the coordinate origin. Uniform scaling assumes a rectified image; perspective remains uncorrected.",
|
|
1140
|
+
de: "Zwei Endpunkte und ihren bekannten Abstand in Metern angeben. Der Anfang ist der Ursprung. Gleichmäßige Skalierung setzt ein entzerrtes Bild voraus; Perspektive bleibt unkorrigiert.",
|
|
1141
|
+
fr: "Choisir deux points et saisir leur distance connue en mètres. Le début est l’origine. Une image rectifiée est supposée ; la perspective reste non corrigée.",
|
|
1142
|
+
ar: "اختر نقطتين وأدخل المسافة المعروفة بالأمتار. نقطة البداية هي الأصل. يفترض التحجيم صورة مصححة؛ المنظور يبقى دون تصحيح."
|
|
1143
|
+
}[r] }),
|
|
1144
|
+
[[
|
|
1145
|
+
"start",
|
|
1146
|
+
R,
|
|
1147
|
+
Ce
|
|
1148
|
+
], [
|
|
1149
|
+
"end",
|
|
1150
|
+
we,
|
|
1151
|
+
Te
|
|
1152
|
+
]].map(([e, t, n]) => /* @__PURE__ */ u("label", { children: [e === "start" ? W[8] : W[9], /* @__PURE__ */ u("select", {
|
|
1153
|
+
disabled: D || U,
|
|
1154
|
+
value: t,
|
|
1155
|
+
onChange: (e) => {
|
|
1156
|
+
n(e.target.value), B.current++, Se(null);
|
|
1157
|
+
},
|
|
1158
|
+
children: [/* @__PURE__ */ l("option", {
|
|
1159
|
+
value: "",
|
|
1160
|
+
children: "—"
|
|
1161
|
+
}), L.candidate.vertices.map((e) => /* @__PURE__ */ l("option", {
|
|
1162
|
+
value: e.id,
|
|
1163
|
+
children: e.id
|
|
1164
|
+
}, e.id))]
|
|
1165
|
+
})] }, e)),
|
|
1166
|
+
/* @__PURE__ */ u("label", { children: [{
|
|
1167
|
+
en: "Known distance (m)",
|
|
1168
|
+
de: "Bekannter Abstand (m)",
|
|
1169
|
+
fr: "Distance connue (m)",
|
|
1170
|
+
ar: "المسافة المعروفة (م)"
|
|
1171
|
+
}[r], /* @__PURE__ */ l("input", {
|
|
1172
|
+
type: "number",
|
|
1173
|
+
min: "0",
|
|
1174
|
+
step: "any",
|
|
1175
|
+
disabled: D || U,
|
|
1176
|
+
value: Ee,
|
|
1177
|
+
onChange: (e) => {
|
|
1178
|
+
De(e.target.value), B.current++, Se(null);
|
|
1179
|
+
}
|
|
1180
|
+
})] }),
|
|
1181
|
+
q({
|
|
1182
|
+
en: "Preview calibrated suggestions",
|
|
1183
|
+
de: "Kalibrierte Vorschläge anzeigen",
|
|
1184
|
+
fr: "Afficher les suggestions calibrées",
|
|
1185
|
+
ar: "عرض اقتراحات المعايرة"
|
|
1186
|
+
}[r], () => void Fe(async () => {
|
|
1187
|
+
let e = await Pe(je + "/calibrate", {
|
|
1188
|
+
expectedProjectVersion: G.current,
|
|
1189
|
+
expectedRevision: S,
|
|
1190
|
+
candidate: L.candidate,
|
|
1191
|
+
sourceObjectId: F,
|
|
1192
|
+
calibration: {
|
|
1193
|
+
startVertexId: R,
|
|
1194
|
+
endVertexId: we,
|
|
1195
|
+
originVertexId: R,
|
|
1196
|
+
knownLength: ae(Number(Ee)),
|
|
1197
|
+
units: "m"
|
|
1198
|
+
}
|
|
1199
|
+
});
|
|
1200
|
+
V.current && Se(e);
|
|
1201
|
+
}), !R || !we || R === we || !Number.isFinite(Number(Ee)) || Number(Ee) <= 0),
|
|
1202
|
+
xe && /* @__PURE__ */ u("div", {
|
|
1203
|
+
role: "status",
|
|
1204
|
+
children: [
|
|
1205
|
+
xe.findings.map((e, t) => /* @__PURE__ */ u("p", { children: [
|
|
1206
|
+
e.code,
|
|
1207
|
+
": ",
|
|
1208
|
+
e.message
|
|
1209
|
+
] }, t)),
|
|
1210
|
+
xe.questions.map((e, t) => /* @__PURE__ */ l("p", { children: e }, t)),
|
|
1211
|
+
xe.draft && q({
|
|
1212
|
+
en: "Start review from unconfirmed suggestions",
|
|
1213
|
+
de: "Unbestätigte Vorschläge einzeln prüfen",
|
|
1214
|
+
fr: "Vérifier les suggestions non confirmées",
|
|
1215
|
+
ar: "بدء مراجعة الاقتراحات غير المؤكدة"
|
|
1216
|
+
}[r], () => K(se(xe.draft)), T)
|
|
1217
|
+
]
|
|
1218
|
+
})
|
|
1219
|
+
] }),
|
|
1220
|
+
/* @__PURE__ */ u("fieldset", {
|
|
1221
|
+
disabled: D || U,
|
|
1222
|
+
children: [
|
|
1223
|
+
/* @__PURE__ */ l("legend", { children: W[3] }),
|
|
1224
|
+
x.vertices.map((e, t) => /* @__PURE__ */ u("article", { children: [
|
|
1225
|
+
/* @__PURE__ */ l("strong", { children: t + 1 }),
|
|
1226
|
+
Le("X", e.x, (t) => K({
|
|
1227
|
+
...x,
|
|
1228
|
+
vertices: x.vertices.map((n) => n.id === e.id ? {
|
|
1229
|
+
...n,
|
|
1230
|
+
x: t
|
|
1231
|
+
} : n)
|
|
1232
|
+
})),
|
|
1233
|
+
Le("Y", e.y, (t) => K({
|
|
1234
|
+
...x,
|
|
1235
|
+
vertices: x.vertices.map((n) => n.id === e.id ? {
|
|
1236
|
+
...n,
|
|
1237
|
+
y: t
|
|
1238
|
+
} : n)
|
|
1239
|
+
})),
|
|
1240
|
+
q(W[29], () => K({
|
|
1241
|
+
...x,
|
|
1242
|
+
vertices: x.vertices.filter((t) => t.id !== e.id)
|
|
1243
|
+
}))
|
|
1244
|
+
] }, e.id)),
|
|
1245
|
+
q(W[4], () => K({
|
|
1246
|
+
...x,
|
|
1247
|
+
vertices: [...x.vertices, {
|
|
1248
|
+
id: b(),
|
|
1249
|
+
x: oe(),
|
|
1250
|
+
y: oe()
|
|
1251
|
+
}]
|
|
1252
|
+
})),
|
|
1253
|
+
q(W[5], () => K({
|
|
1254
|
+
...x,
|
|
1255
|
+
boundaryVertexIds: x.vertices.map((e) => e.id)
|
|
1256
|
+
}), x.vertices.length < 3)
|
|
1257
|
+
]
|
|
1258
|
+
}),
|
|
1259
|
+
/* @__PURE__ */ u("fieldset", {
|
|
1260
|
+
disabled: D || U,
|
|
1261
|
+
children: [
|
|
1262
|
+
/* @__PURE__ */ l("legend", { children: W[6] }),
|
|
1263
|
+
x.walls.map((e) => /* @__PURE__ */ u("article", { children: [
|
|
1264
|
+
J(W[8], e.startVertexId, (t) => K({
|
|
1265
|
+
...x,
|
|
1266
|
+
walls: x.walls.map((n) => n.id === e.id ? {
|
|
1267
|
+
...n,
|
|
1268
|
+
startVertexId: t
|
|
1269
|
+
} : n)
|
|
1270
|
+
})),
|
|
1271
|
+
J(W[9], e.endVertexId, (t) => K({
|
|
1272
|
+
...x,
|
|
1273
|
+
walls: x.walls.map((n) => n.id === e.id ? {
|
|
1274
|
+
...n,
|
|
1275
|
+
endVertexId: t
|
|
1276
|
+
} : n)
|
|
1277
|
+
})),
|
|
1278
|
+
Le(W[10], e.thickness, (t) => K({
|
|
1279
|
+
...x,
|
|
1280
|
+
walls: x.walls.map((n) => n.id === e.id ? {
|
|
1281
|
+
...n,
|
|
1282
|
+
thickness: t
|
|
1283
|
+
} : n)
|
|
1284
|
+
})),
|
|
1285
|
+
/* @__PURE__ */ u("label", { children: [W[32], /* @__PURE__ */ l("select", {
|
|
1286
|
+
value: e.type,
|
|
1287
|
+
onChange: (t) => K({
|
|
1288
|
+
...x,
|
|
1289
|
+
walls: x.walls.map((n) => n.id === e.id ? {
|
|
1290
|
+
...n,
|
|
1291
|
+
type: t.target.value
|
|
1292
|
+
} : n)
|
|
1293
|
+
}),
|
|
1294
|
+
children: [
|
|
1295
|
+
"exterior",
|
|
1296
|
+
"party",
|
|
1297
|
+
"interior"
|
|
1298
|
+
].map((e) => /* @__PURE__ */ l("option", { children: e }, e))
|
|
1299
|
+
})] }),
|
|
1300
|
+
q(W[29], () => K({
|
|
1301
|
+
...x,
|
|
1302
|
+
walls: x.walls.filter((t) => t.id !== e.id)
|
|
1303
|
+
}))
|
|
1304
|
+
] }, e.id)),
|
|
1305
|
+
q(W[7], () => K({
|
|
1306
|
+
...x,
|
|
1307
|
+
walls: [...x.walls, {
|
|
1308
|
+
id: b(),
|
|
1309
|
+
startVertexId: "",
|
|
1310
|
+
endVertexId: "",
|
|
1311
|
+
thickness: oe(),
|
|
1312
|
+
type: "interior"
|
|
1313
|
+
}]
|
|
1314
|
+
}))
|
|
1315
|
+
]
|
|
1316
|
+
}),
|
|
1317
|
+
/* @__PURE__ */ u("fieldset", {
|
|
1318
|
+
disabled: D || U,
|
|
1319
|
+
children: [
|
|
1320
|
+
/* @__PURE__ */ l("legend", { children: W[11] }),
|
|
1321
|
+
x.rooms.map((e) => /* @__PURE__ */ u("article", { children: [
|
|
1322
|
+
/* @__PURE__ */ u("label", { children: [W[13], /* @__PURE__ */ l("input", {
|
|
1323
|
+
value: e.name,
|
|
1324
|
+
onChange: (t) => K({
|
|
1325
|
+
...x,
|
|
1326
|
+
rooms: x.rooms.map((n) => n.id === e.id ? {
|
|
1327
|
+
...n,
|
|
1328
|
+
name: t.target.value
|
|
1329
|
+
} : n)
|
|
1330
|
+
})
|
|
1331
|
+
})] }),
|
|
1332
|
+
/* @__PURE__ */ u("label", { children: [{
|
|
1333
|
+
en: "Room use",
|
|
1334
|
+
de: "Raumnutzung",
|
|
1335
|
+
fr: "Usage de la pièce",
|
|
1336
|
+
ar: "استخدام الغرفة"
|
|
1337
|
+
}[r], /* @__PURE__ */ l("input", {
|
|
1338
|
+
value: e.function,
|
|
1339
|
+
onChange: (t) => K({
|
|
1340
|
+
...x,
|
|
1341
|
+
rooms: x.rooms.map((n) => n.id === e.id ? {
|
|
1342
|
+
...n,
|
|
1343
|
+
function: t.target.value
|
|
1344
|
+
} : n)
|
|
1345
|
+
})
|
|
1346
|
+
})] }),
|
|
1347
|
+
/* @__PURE__ */ u("label", { children: [W[14], /* @__PURE__ */ l("input", {
|
|
1348
|
+
value: e.vertexIds.map((e) => x.vertices.findIndex((t) => t.id === e) + 1).join(","),
|
|
1349
|
+
onChange: (t) => K({
|
|
1350
|
+
...x,
|
|
1351
|
+
rooms: x.rooms.map((n) => n.id === e.id ? {
|
|
1352
|
+
...n,
|
|
1353
|
+
vertexIds: t.target.value.split(",").map((e) => x.vertices[Number(e.trim()) - 1]?.id ?? "")
|
|
1354
|
+
} : n)
|
|
1355
|
+
})
|
|
1356
|
+
})] }),
|
|
1357
|
+
q(W[29], () => K({
|
|
1358
|
+
...x,
|
|
1359
|
+
rooms: x.rooms.filter((t) => t.id !== e.id)
|
|
1360
|
+
}))
|
|
1361
|
+
] }, e.id)),
|
|
1362
|
+
q(W[12], () => K({
|
|
1363
|
+
...x,
|
|
1364
|
+
rooms: [...x.rooms, {
|
|
1365
|
+
id: b(),
|
|
1366
|
+
name: "",
|
|
1367
|
+
function: "unspecified",
|
|
1368
|
+
vertexIds: []
|
|
1369
|
+
}]
|
|
1370
|
+
}))
|
|
1371
|
+
]
|
|
1372
|
+
}),
|
|
1373
|
+
/* @__PURE__ */ u("fieldset", {
|
|
1374
|
+
disabled: D || U,
|
|
1375
|
+
children: [
|
|
1376
|
+
/* @__PURE__ */ l("legend", { children: W[15] }),
|
|
1377
|
+
x.openings.map((t) => /* @__PURE__ */ u("article", { children: [
|
|
1378
|
+
/* @__PURE__ */ u("label", { children: [W[32], /* @__PURE__ */ u("select", {
|
|
1379
|
+
value: t.kind,
|
|
1380
|
+
onChange: (e) => K({
|
|
1381
|
+
...x,
|
|
1382
|
+
openings: x.openings.map((n) => n.id === t.id ? {
|
|
1383
|
+
...n,
|
|
1384
|
+
kind: e.target.value
|
|
1385
|
+
} : n)
|
|
1386
|
+
}),
|
|
1387
|
+
children: [/* @__PURE__ */ l("option", { children: "door" }), /* @__PURE__ */ l("option", { children: "window" })]
|
|
1388
|
+
})] }),
|
|
1389
|
+
/* @__PURE__ */ u("label", { children: [{
|
|
1390
|
+
en: "Opening operation",
|
|
1391
|
+
de: "Öffnungsart",
|
|
1392
|
+
fr: "Fonctionnement",
|
|
1393
|
+
ar: "طريقة الفتح"
|
|
1394
|
+
}[r], /* @__PURE__ */ l("select", {
|
|
1395
|
+
value: t.operation,
|
|
1396
|
+
onChange: (e) => K({
|
|
1397
|
+
...x,
|
|
1398
|
+
openings: x.openings.map((n) => n.id === t.id ? {
|
|
1399
|
+
...n,
|
|
1400
|
+
operation: e.target.value
|
|
1401
|
+
} : n)
|
|
1402
|
+
}),
|
|
1403
|
+
children: [
|
|
1404
|
+
"unknown",
|
|
1405
|
+
"hinged-left",
|
|
1406
|
+
"hinged-right",
|
|
1407
|
+
"sliding",
|
|
1408
|
+
"fixed"
|
|
1409
|
+
].map((e) => /* @__PURE__ */ l("option", { children: e }, e))
|
|
1410
|
+
})] }),
|
|
1411
|
+
/* @__PURE__ */ u("label", { children: [W[17], /* @__PURE__ */ u("select", {
|
|
1412
|
+
value: t.hostWallId,
|
|
1413
|
+
onChange: (e) => K({
|
|
1414
|
+
...x,
|
|
1415
|
+
openings: x.openings.map((n) => n.id === t.id ? {
|
|
1416
|
+
...n,
|
|
1417
|
+
hostWallId: e.target.value
|
|
1418
|
+
} : n)
|
|
1419
|
+
}),
|
|
1420
|
+
children: [/* @__PURE__ */ l("option", {
|
|
1421
|
+
value: "",
|
|
1422
|
+
children: "—"
|
|
1423
|
+
}), x.walls.map((e, t) => /* @__PURE__ */ l("option", {
|
|
1424
|
+
value: e.id,
|
|
1425
|
+
children: t + 1
|
|
1426
|
+
}, e.id))]
|
|
1427
|
+
})] }),
|
|
1428
|
+
[
|
|
1429
|
+
"offset",
|
|
1430
|
+
"width",
|
|
1431
|
+
"height",
|
|
1432
|
+
"sill"
|
|
1433
|
+
].map((n, r) => /* @__PURE__ */ l(e.Fragment, { children: Le(W[18 + r], t[n] ?? oe(), (e) => K({
|
|
1434
|
+
...x,
|
|
1435
|
+
openings: x.openings.map((r) => r.id === t.id ? {
|
|
1436
|
+
...r,
|
|
1437
|
+
[n]: (n === "height" || n === "sill") && !Number.isFinite(e.value) ? null : e
|
|
1438
|
+
} : r)
|
|
1439
|
+
})) }, n)),
|
|
1440
|
+
q(W[29], () => K({
|
|
1441
|
+
...x,
|
|
1442
|
+
openings: x.openings.filter((e) => e.id !== t.id)
|
|
1443
|
+
}))
|
|
1444
|
+
] }, t.id)),
|
|
1445
|
+
q(W[16], () => K({
|
|
1446
|
+
...x,
|
|
1447
|
+
openings: [...x.openings, {
|
|
1448
|
+
id: b(),
|
|
1449
|
+
kind: "door",
|
|
1450
|
+
hostWallId: "",
|
|
1451
|
+
offset: oe(),
|
|
1452
|
+
width: oe(),
|
|
1453
|
+
height: null,
|
|
1454
|
+
sill: null,
|
|
1455
|
+
operation: "unknown"
|
|
1456
|
+
}]
|
|
1457
|
+
}))
|
|
1458
|
+
]
|
|
1459
|
+
}),
|
|
1460
|
+
q(W[22], () => void Fe(async () => {
|
|
1461
|
+
let e = await Pe(je + "/review", {
|
|
1462
|
+
expectedProjectVersion: G.current,
|
|
1463
|
+
expectedRevision: S,
|
|
1464
|
+
graph: x,
|
|
1465
|
+
sourceObjectId: F
|
|
1466
|
+
});
|
|
1467
|
+
V.current && (le(e), j(!1));
|
|
1468
|
+
}), !v(x)),
|
|
1469
|
+
w && /* @__PURE__ */ u("section", {
|
|
1470
|
+
"aria-live": "polite",
|
|
1471
|
+
children: [
|
|
1472
|
+
w.pricingNotice && /* @__PURE__ */ l("p", { children: w.pricingNotice }),
|
|
1473
|
+
w.svg && /* @__PURE__ */ l("div", {
|
|
1474
|
+
className: "engine-svg",
|
|
1475
|
+
dangerouslySetInnerHTML: { __html: s.sanitize(w.svg, { USE_PROFILES: {
|
|
1476
|
+
svg: !0,
|
|
1477
|
+
svgFilters: !0
|
|
1478
|
+
} }) }
|
|
1479
|
+
}),
|
|
1480
|
+
/* @__PURE__ */ l("ul", { children: w.findings.map((e, t) => /* @__PURE__ */ u("li", { children: [
|
|
1481
|
+
/* @__PURE__ */ l("strong", { children: e.code }),
|
|
1482
|
+
" ",
|
|
1483
|
+
e.message,
|
|
1484
|
+
" ",
|
|
1485
|
+
e.suggestedAction
|
|
1486
|
+
] }, t)) }),
|
|
1487
|
+
/* @__PURE__ */ u("details", { children: [
|
|
1488
|
+
/* @__PURE__ */ l("summary", { children: W[22] }),
|
|
1489
|
+
w.values.values.map((e) => /* @__PURE__ */ u("p", { children: [
|
|
1490
|
+
e.path,
|
|
1491
|
+
": ",
|
|
1492
|
+
e.value,
|
|
1493
|
+
" ",
|
|
1494
|
+
e.unit,
|
|
1495
|
+
" [",
|
|
1496
|
+
e.origin,
|
|
1497
|
+
"]"
|
|
1498
|
+
] }, e.path)),
|
|
1499
|
+
w.values.discrepancies.map((e) => /* @__PURE__ */ u("p", { children: [
|
|
1500
|
+
e.message,
|
|
1501
|
+
" ",
|
|
1502
|
+
e.question
|
|
1503
|
+
] }, e.id))
|
|
1504
|
+
] }),
|
|
1505
|
+
/* @__PURE__ */ u("label", { children: [/* @__PURE__ */ l("input", {
|
|
1506
|
+
type: "checkbox",
|
|
1507
|
+
disabled: D || U,
|
|
1508
|
+
checked: A,
|
|
1509
|
+
onChange: (e) => j(e.target.checked)
|
|
1510
|
+
}), W[24]] }),
|
|
1511
|
+
q(W[23], () => void Fe(async () => {
|
|
1512
|
+
await Ne(), Ie(await Pe(je, {
|
|
1513
|
+
expectedProjectVersion: G.current,
|
|
1514
|
+
expectedRevision: S,
|
|
1515
|
+
operationId: b(),
|
|
1516
|
+
graph: x,
|
|
1517
|
+
sourceObjectId: F,
|
|
1518
|
+
reviewContentHash: w.contentHash,
|
|
1519
|
+
reviewedValuePaths: _(w)
|
|
1520
|
+
}));
|
|
1521
|
+
}), !A || !w.geometryValidated || !T && S > 0 && w.canExport || (w.requiredReviewPaths?.some((e) => !_(w).includes(e)) ?? !1))
|
|
1522
|
+
]
|
|
1523
|
+
}),
|
|
1524
|
+
pe.includes("pdf") && /* @__PURE__ */ u("label", { children: [
|
|
1525
|
+
"PDF",
|
|
1526
|
+
/* @__PURE__ */ l("input", {
|
|
1527
|
+
type: "checkbox",
|
|
1528
|
+
disabled: D || U,
|
|
1529
|
+
checked: he,
|
|
1530
|
+
onChange: (e) => {
|
|
1531
|
+
P(e.target.checked), M(null);
|
|
1532
|
+
}
|
|
1533
|
+
}),
|
|
1534
|
+
/* @__PURE__ */ u("select", {
|
|
1535
|
+
"aria-label": "PDF scale / paper",
|
|
1536
|
+
disabled: D || U,
|
|
1537
|
+
value: ge,
|
|
1538
|
+
onChange: (e) => {
|
|
1539
|
+
_e(Number(e.target.value)), M(null);
|
|
1540
|
+
},
|
|
1541
|
+
children: [/* @__PURE__ */ l("option", {
|
|
1542
|
+
value: 50,
|
|
1543
|
+
children: "1:50 · A2"
|
|
1544
|
+
}), /* @__PURE__ */ l("option", {
|
|
1545
|
+
value: 100,
|
|
1546
|
+
children: "1:100 · A3"
|
|
1547
|
+
})]
|
|
1548
|
+
}),
|
|
1549
|
+
/* @__PURE__ */ l("small", { children: "100% · 1:100: compact labels" })
|
|
1550
|
+
] }),
|
|
1551
|
+
q(W[25], () => void Fe(async () => {
|
|
1552
|
+
let e = await Pe(je + "/exports", {
|
|
1553
|
+
expectedProjectVersion: G.current,
|
|
1554
|
+
expectedRevision: S,
|
|
1555
|
+
operationId: b(),
|
|
1556
|
+
formats: he ? [
|
|
1557
|
+
"svg",
|
|
1558
|
+
"dxf",
|
|
1559
|
+
"pdf"
|
|
1560
|
+
] : ["svg", "dxf"],
|
|
1561
|
+
scaleDenominator: ge,
|
|
1562
|
+
paperSize: ge === 50 ? "A2" : "A3"
|
|
1563
|
+
});
|
|
1564
|
+
V.current && M(e);
|
|
1565
|
+
}), T || !w?.canExport || S < 1),
|
|
1566
|
+
S > 1 && /* @__PURE__ */ u("label", { children: [
|
|
1567
|
+
W[27],
|
|
1568
|
+
/* @__PURE__ */ l("input", {
|
|
1569
|
+
type: "number",
|
|
1570
|
+
min: "1",
|
|
1571
|
+
max: S - 1,
|
|
1572
|
+
value: fe,
|
|
1573
|
+
onChange: (e) => N(e.target.valueAsNumber)
|
|
1574
|
+
}),
|
|
1575
|
+
q(W[28], () => void Fe(async () => Ie(await Pe(je + "/undo", {
|
|
1576
|
+
expectedProjectVersion: G.current,
|
|
1577
|
+
expectedRevision: S,
|
|
1578
|
+
targetRevision: fe,
|
|
1579
|
+
operationId: b()
|
|
1580
|
+
}))), T)
|
|
1581
|
+
] }),
|
|
1582
|
+
de && Object.keys(de.files).map((t) => /* @__PURE__ */ l(e.Fragment, { children: q(W[30] + " " + t.toUpperCase(), () => te(t, de), T) }, t)),
|
|
1583
|
+
O && /* @__PURE__ */ l("p", {
|
|
1584
|
+
role: "alert",
|
|
1585
|
+
children: O
|
|
1586
|
+
}),
|
|
1587
|
+
/* @__PURE__ */ l("p", { children: "Concept proposal, not a construction drawing; verify with a licensed architect/engineer." })
|
|
1588
|
+
]
|
|
1589
|
+
})]
|
|
1590
|
+
});
|
|
623
1591
|
}
|
|
624
1592
|
// src/packageVersion.ts
|
|
625
|
-
var
|
|
1593
|
+
var ce = "0.1.4";
|
|
626
1594
|
// src/licensing.ts
|
|
627
|
-
|
|
628
|
-
var
|
|
629
|
-
function
|
|
630
|
-
|
|
1595
|
+
te();
|
|
1596
|
+
var S = "bim", C = ce, w = "https://licenseapi.polycyphers.com/api/license/revoked.json", le = "polycyphers-revocation-list", T = 1048576, E = 86400, D = 6e4, ue = "", O = 0, k = "not_set", A = null, j = null, de = /* @__PURE__ */ new Set();
|
|
1597
|
+
function M(e) {
|
|
1598
|
+
ne(e === "karamentreprises" ? "karament" : null);
|
|
631
1599
|
}
|
|
632
|
-
function
|
|
1600
|
+
function fe(e) {
|
|
633
1601
|
let t = typeof e == "string" ? e.trim() : "";
|
|
634
|
-
if (t !==
|
|
635
|
-
|
|
636
|
-
for (let e of
|
|
1602
|
+
if (t !== ue) {
|
|
1603
|
+
ue = t, O++, A = null, k = t ? "checking" : "not_set";
|
|
1604
|
+
for (let e of de) try {
|
|
637
1605
|
e();
|
|
638
1606
|
} catch {}
|
|
639
1607
|
}
|
|
640
1608
|
}
|
|
641
|
-
function
|
|
642
|
-
|
|
1609
|
+
function N() {
|
|
1610
|
+
fe("");
|
|
643
1611
|
}
|
|
644
|
-
function
|
|
645
|
-
return
|
|
646
|
-
|
|
1612
|
+
function pe(e) {
|
|
1613
|
+
return de.add(e), () => {
|
|
1614
|
+
de.delete(e);
|
|
647
1615
|
};
|
|
648
1616
|
}
|
|
649
|
-
function
|
|
650
|
-
return
|
|
1617
|
+
function me() {
|
|
1618
|
+
return A ? Date.now() >= A.expires ? "expired" : Date.now() < A.until ? A.status : "checking" : k;
|
|
651
1619
|
}
|
|
652
|
-
function
|
|
1620
|
+
function he(e) {
|
|
653
1621
|
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
654
1622
|
}
|
|
655
|
-
function
|
|
1623
|
+
function P(e, t = 256) {
|
|
656
1624
|
return typeof e == "string" && e.length > 0 && e.length <= t && !/[\u0000-\u001f\u007f]/.test(e);
|
|
657
1625
|
}
|
|
658
|
-
function
|
|
1626
|
+
function ge(e) {
|
|
659
1627
|
return typeof e == "number" && Number.isSafeInteger(e) && e > 0;
|
|
660
1628
|
}
|
|
661
|
-
function
|
|
1629
|
+
function _e(e) {
|
|
662
1630
|
if (e.length > 32768 || !/^[-_A-Za-z0-9]+\.[-_A-Za-z0-9]+$/.test(e)) return null;
|
|
663
1631
|
try {
|
|
664
1632
|
let t = Uint8Array.from(atob(e.split(".")[0].replace(/-/g, "+").replace(/_/g, "/")), (e) => e.charCodeAt(0)), n = JSON.parse(new TextDecoder("utf-8", { fatal: !0 }).decode(t));
|
|
665
|
-
return
|
|
1633
|
+
return he(n) ? n : null;
|
|
666
1634
|
} catch {
|
|
667
1635
|
return null;
|
|
668
1636
|
}
|
|
669
1637
|
}
|
|
670
|
-
function
|
|
1638
|
+
function F(e) {
|
|
671
1639
|
if (e === "*") return !0;
|
|
672
|
-
let t = e.split("."), n =
|
|
1640
|
+
let t = e.split("."), n = C.split(".");
|
|
673
1641
|
return t.length <= 3 && t.every((e, t) => e === "x" || e === "*" || /^\d+$/.test(e) && e === n[t]);
|
|
674
1642
|
}
|
|
675
|
-
function
|
|
676
|
-
if (!
|
|
1643
|
+
function ve(e) {
|
|
1644
|
+
if (!P(e, 253)) return !1;
|
|
677
1645
|
let t = e.toLowerCase().replace(/^\*\./, "").replace(/^\./, "");
|
|
678
1646
|
return /^\[[0-9a-f:]+\]$/.test(t) || t.split(".").every((e) => /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/.test(e));
|
|
679
1647
|
}
|
|
680
|
-
function
|
|
1648
|
+
function I(e, t) {
|
|
681
1649
|
let n = e.toLowerCase();
|
|
682
1650
|
return n === t ? !0 : n.startsWith("*.") ? t.endsWith(n.slice(1)) && t.length > n.length - 1 : n.startsWith(".") ? t === n.slice(1) || t.endsWith(n) : !1;
|
|
683
1651
|
}
|
|
684
|
-
async function
|
|
1652
|
+
async function ye(e) {
|
|
685
1653
|
if (!e.ok) throw Error("License service unavailable");
|
|
686
1654
|
let t = e.headers.get("content-length");
|
|
687
|
-
if (t && (!/^\d+$/.test(t) || Number(t) >
|
|
1655
|
+
if (t && (!/^\d+$/.test(t) || Number(t) > T)) throw Error("License response too large");
|
|
688
1656
|
if (!e.body) throw Error("License response missing");
|
|
689
1657
|
let n = e.body.getReader(), r = 0, i = [];
|
|
690
1658
|
try {
|
|
691
1659
|
for (;;) {
|
|
692
1660
|
let e = await n.read();
|
|
693
1661
|
if (e.done) break;
|
|
694
|
-
if (r += e.value.byteLength, r >
|
|
1662
|
+
if (r += e.value.byteLength, r > T) throw Error("License response too large");
|
|
695
1663
|
i.push(e.value);
|
|
696
1664
|
}
|
|
697
1665
|
} finally {
|
|
@@ -701,42 +1669,42 @@ async function fe(e) {
|
|
|
701
1669
|
for (let e of i) a.set(e, o), o += e.byteLength;
|
|
702
1670
|
return JSON.parse(new TextDecoder("utf-8", { fatal: !0 }).decode(a));
|
|
703
1671
|
}
|
|
704
|
-
async function
|
|
1672
|
+
async function L(e, t) {
|
|
705
1673
|
let n = new AbortController(), r = setTimeout(() => n.abort(), 8e3);
|
|
706
1674
|
try {
|
|
707
|
-
let r = await
|
|
1675
|
+
let r = await ye(await fetch(w, {
|
|
708
1676
|
credentials: "omit",
|
|
709
1677
|
cache: "no-store",
|
|
710
1678
|
redirect: "error",
|
|
711
1679
|
signal: n.signal
|
|
712
1680
|
}));
|
|
713
|
-
if (!
|
|
714
|
-
let i = r.revoked, a = await
|
|
1681
|
+
if (!he(r) || typeof r.token != "string" || r.token.length > T || !ge(r.iat) || !Array.isArray(r.revoked) || r.revoked.length > 1e5 || !r.revoked.every((e) => P(e, 128))) throw Error("Invalid revocation envelope");
|
|
1682
|
+
let i = r.revoked, a = await f(r.token, le, t);
|
|
715
1683
|
if (!a.ok) throw Error("Invalid signed revocation list");
|
|
716
1684
|
let o = a.payload;
|
|
717
|
-
if (!
|
|
1685
|
+
if (!ge(o.iat) || !ge(o.exp) || o.exp <= t || o.exp <= o.iat || o.exp - o.iat > E || o.iat > t + 60 || t - o.iat > E || o.iat !== r.iat || !Array.isArray(o.revoked) || o.revoked.length !== r.revoked.length || !o.revoked.every((e, t) => P(e, 128) && e === i[t])) throw Error("Stale or inconsistent revocation list");
|
|
718
1686
|
return {
|
|
719
1687
|
revoked: r.revoked.includes(e),
|
|
720
|
-
expires: Math.min(o.exp, o.iat +
|
|
1688
|
+
expires: Math.min(o.exp, o.iat + E) * 1e3
|
|
721
1689
|
};
|
|
722
1690
|
} finally {
|
|
723
1691
|
clearTimeout(r);
|
|
724
1692
|
}
|
|
725
1693
|
}
|
|
726
|
-
async function
|
|
727
|
-
let t =
|
|
1694
|
+
async function be(e = !1) {
|
|
1695
|
+
let t = me();
|
|
728
1696
|
if (!e && t === "licensed") return t;
|
|
729
|
-
if (!
|
|
730
|
-
if (
|
|
731
|
-
let n =
|
|
1697
|
+
if (!ue) return "not_set";
|
|
1698
|
+
if (j?.epoch === O) return j.promise;
|
|
1699
|
+
let n = O, r = ue, i = (async () => {
|
|
732
1700
|
let e = "invalid_signature", t = null;
|
|
733
1701
|
try {
|
|
734
|
-
let n =
|
|
735
|
-
if (!n || !
|
|
736
|
-
let i = Math.floor(Date.now() / 1e3), a = await
|
|
1702
|
+
let n = _e(r);
|
|
1703
|
+
if (!n || !P(n.sub)) return "invalid_signature";
|
|
1704
|
+
let i = Math.floor(Date.now() / 1e3), a = await f(r, n.sub, i);
|
|
737
1705
|
if (!a.ok) return a.status;
|
|
738
1706
|
let o = a.payload;
|
|
739
|
-
if (!
|
|
1707
|
+
if (!P(o.sub) || !P(o.jti, 128) || !ge(o.iat) || !ge(o.exp) || o.iat > i + 60 || o.exp <= o.iat) return "invalid_signature";
|
|
740
1708
|
if (![
|
|
741
1709
|
"pro",
|
|
742
1710
|
"team",
|
|
@@ -744,37 +1712,37 @@ async function me(e = !1) {
|
|
|
744
1712
|
"internal"
|
|
745
1713
|
].includes(String(o.tier))) return "wrong_tier";
|
|
746
1714
|
if (o.exp <= i) return "expired";
|
|
747
|
-
if (!Array.isArray(o.pkg) || !o.pkg.length || o.pkg.length > 32 || !o.pkg.every((e) =>
|
|
748
|
-
if (typeof o.ver != "string" || o.ver.length > 64 || !
|
|
1715
|
+
if (!Array.isArray(o.pkg) || !o.pkg.length || o.pkg.length > 32 || !o.pkg.every((e) => P(e, 128)) || !o.pkg.includes("bim") || o.pkg.includes("Polycyphers.Bim")) return "wrong_package";
|
|
1716
|
+
if (typeof o.ver != "string" || o.ver.length > 64 || !F(o.ver)) return "wrong_version";
|
|
749
1717
|
let s = typeof location > "u" ? "" : location.hostname.toLowerCase();
|
|
750
|
-
if (!s || !Array.isArray(o.dom) || !o.dom.length || o.dom.length > 64 || !o.dom.every(
|
|
751
|
-
let c = await
|
|
1718
|
+
if (!s || !Array.isArray(o.dom) || !o.dom.length || o.dom.length > 64 || !o.dom.every(ve) || !o.dom.some((e) => I(e, s))) return "wrong_domain";
|
|
1719
|
+
let c = await L(o.jti, i);
|
|
752
1720
|
if (c.revoked) return "revoked";
|
|
753
1721
|
let l = Math.min(o.exp * 1e3, c.expires);
|
|
754
1722
|
return o.exp * 1e3 <= Date.now() ? "expired" : l <= Date.now() ? "unavailable" : (e = "licensed", t = {
|
|
755
|
-
until: Math.min(l, Date.now() +
|
|
1723
|
+
until: Math.min(l, Date.now() + D),
|
|
756
1724
|
expires: l,
|
|
757
1725
|
status: e
|
|
758
1726
|
}, e);
|
|
759
1727
|
} catch {
|
|
760
1728
|
return "unavailable";
|
|
761
1729
|
} finally {
|
|
762
|
-
n ===
|
|
1730
|
+
n === O && (A = t, k = t?.status ?? "unavailable");
|
|
763
1731
|
}
|
|
764
1732
|
})();
|
|
765
|
-
|
|
1733
|
+
j = {
|
|
766
1734
|
epoch: n,
|
|
767
1735
|
promise: i
|
|
768
1736
|
};
|
|
769
1737
|
try {
|
|
770
1738
|
let e = await i;
|
|
771
|
-
return n ===
|
|
1739
|
+
return n === O ? (k = e, e) : me();
|
|
772
1740
|
} finally {
|
|
773
|
-
|
|
1741
|
+
j?.promise === i && (j = null);
|
|
774
1742
|
}
|
|
775
1743
|
}
|
|
776
1744
|
// src/studioState.ts
|
|
777
|
-
function
|
|
1745
|
+
function xe(e, t) {
|
|
778
1746
|
if (typeof e.priceMinorUnits != "number" || !Number.isFinite(e.priceMinorUnits) || typeof e.currency != "string") return null;
|
|
779
1747
|
try {
|
|
780
1748
|
let n = new Intl.NumberFormat(t, {
|
|
@@ -786,29 +1754,29 @@ function he(e, t) {
|
|
|
786
1754
|
return null;
|
|
787
1755
|
}
|
|
788
1756
|
}
|
|
789
|
-
function
|
|
1757
|
+
function Se(e) {
|
|
790
1758
|
return typeof e.freeProposalGenerations == "number" && typeof e.freeBimExports == "number" ? {
|
|
791
1759
|
proposals: e.freeProposalGenerations,
|
|
792
1760
|
exports: e.freeBimExports
|
|
793
1761
|
} : null;
|
|
794
1762
|
}
|
|
795
|
-
function
|
|
1763
|
+
function R(e) {
|
|
796
1764
|
return "polycyphers.bim.project.v1:" + encodeURIComponent(e);
|
|
797
1765
|
}
|
|
798
|
-
function
|
|
1766
|
+
function Ce(e, t) {
|
|
799
1767
|
try {
|
|
800
|
-
let n = e.getItem(
|
|
1768
|
+
let n = e.getItem(R(t));
|
|
801
1769
|
return n && /^[a-f0-9]{32}$/i.test(n) ? n : null;
|
|
802
1770
|
} catch {
|
|
803
1771
|
return null;
|
|
804
1772
|
}
|
|
805
1773
|
}
|
|
806
|
-
function
|
|
1774
|
+
function we(e, t, n) {
|
|
807
1775
|
try {
|
|
808
|
-
n && /^[a-f0-9]{32}$/i.test(n) ? e.setItem(
|
|
1776
|
+
n && /^[a-f0-9]{32}$/i.test(n) ? e.setItem(R(t), n) : e.removeItem(R(t));
|
|
809
1777
|
} catch {}
|
|
810
1778
|
}
|
|
811
|
-
function
|
|
1779
|
+
function Te(e) {
|
|
812
1780
|
return {
|
|
813
1781
|
footprint: { edges: Array.from({ length: 4 }, (e, t) => ({
|
|
814
1782
|
id: "W" + (t + 1),
|
|
@@ -838,7 +1806,7 @@ function ye(e) {
|
|
|
838
1806
|
language: e
|
|
839
1807
|
};
|
|
840
1808
|
}
|
|
841
|
-
function
|
|
1809
|
+
function Ee(e) {
|
|
842
1810
|
if (e.footprint.edges.length < 3 || e.footprint.edges.some((e) => !Number.isFinite(e.lengthM) || e.lengthM <= 0 || e.bearingDegrees !== null && !Number.isFinite(e.bearingDegrees))) return "Enter every measured wall length. Leave an unknown bearing blank.";
|
|
843
1811
|
if (e.programme) {
|
|
844
1812
|
let t = e.programme;
|
|
@@ -854,124 +1822,138 @@ function be(e) {
|
|
|
854
1822
|
}
|
|
855
1823
|
return null;
|
|
856
1824
|
}
|
|
857
|
-
function
|
|
1825
|
+
function De(e, t) {
|
|
858
1826
|
return !!e && !!t && e.isChanged && e.expectedVersion === t.version && e.snapshot.projectId === t.projectId;
|
|
859
1827
|
}
|
|
1828
|
+
function Oe(e) {
|
|
1829
|
+
let t = e?.toLowerCase().split(/[-_]/)[0];
|
|
1830
|
+
return t === "de" || t === "fr" || t === "ar" ? t : "en";
|
|
1831
|
+
}
|
|
1832
|
+
function z(e, t, n) {
|
|
1833
|
+
return n.some((e) => e.toLowerCase() === t.toLowerCase()) ? "estimated" : e.valueOrigins ? e.valueOrigins.userGivenPaths.some((e) => e.toLowerCase() === t.toLowerCase()) ? "user-given" : "estimated" : t.startsWith("programme.") ? e.programme?.source.startsWith("User-entered") ? "user-given" : "estimated" : t.startsWith("buildUps.") ? "estimated" : "user-given";
|
|
1834
|
+
}
|
|
1835
|
+
function B(e, t, n) {
|
|
1836
|
+
let r = e.valueOrigins?.userGivenPaths ?? [...e.footprint.edges.flatMap((e, t) => [...Number.isFinite(e.lengthM) ? [`footprint.edges[${t}].lengthM`] : [], ...e.bearingDegrees == null ? [] : [`footprint.edges[${t}].bearingDegrees`]]), ...Object.entries(e.programme ?? {}).filter(([, e]) => typeof e == "number" && Number.isFinite(e)).map(([e]) => "programme." + e)].filter((t) => z(e, t, n) === "user-given");
|
|
1837
|
+
return {
|
|
1838
|
+
...e,
|
|
1839
|
+
valueOrigins: { userGivenPaths: [...r.filter((e) => e.toLowerCase() !== t.toLowerCase()), t] }
|
|
1840
|
+
};
|
|
1841
|
+
}
|
|
860
1842
|
// src/BimStudio.tsx
|
|
861
|
-
var
|
|
862
|
-
function
|
|
863
|
-
let e =
|
|
864
|
-
return /* @__PURE__ */
|
|
1843
|
+
var V = t("baulynq"), ke = () => location.pathname === "/verify-email" || location.pathname === "/verify", H = () => crypto.randomUUID().replaceAll("-", "");
|
|
1844
|
+
function Ae() {
|
|
1845
|
+
let e = r(V);
|
|
1846
|
+
return /* @__PURE__ */ u("span", {
|
|
865
1847
|
className: "brand",
|
|
866
|
-
children: [/* @__PURE__ */
|
|
1848
|
+
children: [/* @__PURE__ */ l("svg", {
|
|
867
1849
|
viewBox: "0 0 28 28",
|
|
868
1850
|
"aria-hidden": "true",
|
|
869
|
-
children: /* @__PURE__ */
|
|
870
|
-
}), /* @__PURE__ */
|
|
1851
|
+
children: /* @__PURE__ */ l("path", { d: "M4 23V5h13v7h7v11H4m7 0V12h6m0 0V5" })
|
|
1852
|
+
}), /* @__PURE__ */ u("strong", { children: [e === "karamentreprises" ? "Karamentreprises" : "BauLynq", /* @__PURE__ */ l("span", { children: e === "karamentreprises" ? "BIM" : "Vision" })] })]
|
|
871
1853
|
});
|
|
872
1854
|
}
|
|
873
|
-
function
|
|
874
|
-
return /* @__PURE__ */
|
|
1855
|
+
function U() {
|
|
1856
|
+
return /* @__PURE__ */ l("span", {
|
|
875
1857
|
"aria-hidden": "true",
|
|
876
1858
|
children: "↗"
|
|
877
1859
|
});
|
|
878
1860
|
}
|
|
879
|
-
function
|
|
880
|
-
return /* @__PURE__ */
|
|
1861
|
+
function W() {
|
|
1862
|
+
return /* @__PURE__ */ u("svg", {
|
|
881
1863
|
viewBox: "0 0 450 340",
|
|
882
1864
|
role: "img",
|
|
883
1865
|
"aria-label": "Illustrative hand sketch of the reference footprint",
|
|
884
1866
|
children: [
|
|
885
|
-
/* @__PURE__ */
|
|
1867
|
+
/* @__PURE__ */ l("defs", { children: /* @__PURE__ */ l("pattern", {
|
|
886
1868
|
id: "sketchgrid",
|
|
887
1869
|
width: "16",
|
|
888
1870
|
height: "16",
|
|
889
1871
|
patternUnits: "userSpaceOnUse",
|
|
890
|
-
children: /* @__PURE__ */
|
|
1872
|
+
children: /* @__PURE__ */ l("path", {
|
|
891
1873
|
d: "M16 0H0V16",
|
|
892
1874
|
fill: "none",
|
|
893
1875
|
stroke: "#e9e4d8",
|
|
894
1876
|
strokeWidth: ".5"
|
|
895
1877
|
})
|
|
896
1878
|
}) }),
|
|
897
|
-
/* @__PURE__ */
|
|
1879
|
+
/* @__PURE__ */ l("rect", {
|
|
898
1880
|
width: "450",
|
|
899
1881
|
height: "340",
|
|
900
1882
|
fill: "url(#sketchgrid)"
|
|
901
1883
|
}),
|
|
902
|
-
/* @__PURE__ */
|
|
1884
|
+
/* @__PURE__ */ u("g", {
|
|
903
1885
|
transform: "translate(66 53) rotate(-4 140 110)",
|
|
904
1886
|
fill: "none",
|
|
905
1887
|
stroke: "#77776e",
|
|
906
1888
|
strokeWidth: "2.2",
|
|
907
1889
|
strokeLinecap: "round",
|
|
908
1890
|
children: [
|
|
909
|
-
/* @__PURE__ */
|
|
910
|
-
/* @__PURE__ */
|
|
1891
|
+
/* @__PURE__ */ l("path", { d: "M12 233L255 235l-1-37 56 1-2-159-19-17L18 22Z" }),
|
|
1892
|
+
/* @__PURE__ */ l("path", {
|
|
911
1893
|
d: "M13 232L17 21l272 4 19 14 2 160-55-2v36Z",
|
|
912
1894
|
opacity: ".4"
|
|
913
1895
|
}),
|
|
914
|
-
/* @__PURE__ */
|
|
1896
|
+
/* @__PURE__ */ l("path", {
|
|
915
1897
|
d: "M129 232V115h178M130 154h74v77",
|
|
916
1898
|
strokeDasharray: "5 7"
|
|
917
1899
|
}),
|
|
918
|
-
/* @__PURE__ */
|
|
1900
|
+
/* @__PURE__ */ l("path", {
|
|
919
1901
|
d: "M324 70v72m-5-7 5 8 5-8",
|
|
920
1902
|
stroke: "#328577"
|
|
921
1903
|
})
|
|
922
1904
|
]
|
|
923
1905
|
}),
|
|
924
|
-
/* @__PURE__ */
|
|
1906
|
+
/* @__PURE__ */ u("g", {
|
|
925
1907
|
fontFamily: "monospace",
|
|
926
1908
|
fontSize: "15",
|
|
927
1909
|
fill: "#72756e",
|
|
928
1910
|
transform: "rotate(-4 200 170)",
|
|
929
1911
|
children: [
|
|
930
|
-
/* @__PURE__ */
|
|
1912
|
+
/* @__PURE__ */ u("text", {
|
|
931
1913
|
x: "145",
|
|
932
1914
|
y: "62",
|
|
933
|
-
children: ["8.34", /* @__PURE__ */
|
|
1915
|
+
children: ["8.34", /* @__PURE__ */ l("tspan", {
|
|
934
1916
|
fontSize: "7",
|
|
935
1917
|
children: " [user-given]"
|
|
936
1918
|
})]
|
|
937
1919
|
}),
|
|
938
|
-
/* @__PURE__ */
|
|
1920
|
+
/* @__PURE__ */ u("text", {
|
|
939
1921
|
x: "165",
|
|
940
1922
|
y: "318",
|
|
941
|
-
children: ["7.40", /* @__PURE__ */
|
|
1923
|
+
children: ["7.40", /* @__PURE__ */ l("tspan", {
|
|
942
1924
|
fontSize: "7",
|
|
943
1925
|
children: " [user-given]"
|
|
944
1926
|
})]
|
|
945
1927
|
}),
|
|
946
|
-
/* @__PURE__ */
|
|
1928
|
+
/* @__PURE__ */ u("text", {
|
|
947
1929
|
x: "21",
|
|
948
1930
|
y: "172",
|
|
949
1931
|
transform: "rotate(-90 21 172)",
|
|
950
|
-
children: ["6.40", /* @__PURE__ */
|
|
1932
|
+
children: ["6.40", /* @__PURE__ */ l("tspan", {
|
|
951
1933
|
fontSize: "7",
|
|
952
1934
|
children: " [user-given]"
|
|
953
1935
|
})]
|
|
954
1936
|
}),
|
|
955
|
-
/* @__PURE__ */
|
|
1937
|
+
/* @__PURE__ */ u("text", {
|
|
956
1938
|
x: "387",
|
|
957
1939
|
y: "153",
|
|
958
1940
|
transform: "rotate(90 387 153)",
|
|
959
|
-
children: ["4.81", /* @__PURE__ */
|
|
1941
|
+
children: ["4.81", /* @__PURE__ */ l("tspan", {
|
|
960
1942
|
fontSize: "7",
|
|
961
1943
|
children: " [user-given]"
|
|
962
1944
|
})]
|
|
963
1945
|
}),
|
|
964
|
-
/* @__PURE__ */
|
|
1946
|
+
/* @__PURE__ */ u("text", {
|
|
965
1947
|
x: "307",
|
|
966
1948
|
y: "282",
|
|
967
|
-
children: ["1.70", /* @__PURE__ */
|
|
1949
|
+
children: ["1.70", /* @__PURE__ */ l("tspan", {
|
|
968
1950
|
fontSize: "7",
|
|
969
1951
|
children: " [user-given]"
|
|
970
1952
|
})]
|
|
971
1953
|
})
|
|
972
1954
|
]
|
|
973
1955
|
}),
|
|
974
|
-
/* @__PURE__ */
|
|
1956
|
+
/* @__PURE__ */ l("text", {
|
|
975
1957
|
x: "29",
|
|
976
1958
|
y: "32",
|
|
977
1959
|
fontFamily: "monospace",
|
|
@@ -982,218 +1964,257 @@ function Te() {
|
|
|
982
1964
|
]
|
|
983
1965
|
});
|
|
984
1966
|
}
|
|
985
|
-
function
|
|
986
|
-
let
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
"ar"
|
|
991
|
-
].includes(i) ? i : "en", [s, c] = a("checking"), [l, u] = a(0);
|
|
992
|
-
r(() => {
|
|
993
|
-
let e = !0, t = !1, r = !1;
|
|
994
|
-
D(n);
|
|
1967
|
+
function je(e = {}) {
|
|
1968
|
+
let t = e.brand ?? "baulynq", r = Oe(e.language ?? e.initialInput?.language ?? (typeof navigator > "u" ? "en" : navigator.language)), [a, s] = o("checking"), [c, ee] = o(0);
|
|
1969
|
+
i(() => {
|
|
1970
|
+
let e = !0, n = !1, r = !1;
|
|
1971
|
+
M(t);
|
|
995
1972
|
let i = async () => {
|
|
996
|
-
if (
|
|
1973
|
+
if (n) r = !0;
|
|
997
1974
|
else {
|
|
998
|
-
|
|
1975
|
+
n = !0;
|
|
999
1976
|
try {
|
|
1000
|
-
let t = await
|
|
1001
|
-
e &&
|
|
1977
|
+
let t = await be(!0);
|
|
1978
|
+
e && s(t);
|
|
1002
1979
|
} catch {
|
|
1003
|
-
e &&
|
|
1980
|
+
e && s("unavailable");
|
|
1004
1981
|
} finally {
|
|
1005
|
-
|
|
1982
|
+
n = !1, r && e && (r = !1, i());
|
|
1006
1983
|
}
|
|
1007
1984
|
}
|
|
1008
1985
|
};
|
|
1009
1986
|
i();
|
|
1010
|
-
let a =
|
|
1011
|
-
e &&
|
|
1987
|
+
let a = pe(() => {
|
|
1988
|
+
e && s("checking"), i();
|
|
1012
1989
|
}), o = setInterval(() => {
|
|
1013
1990
|
i();
|
|
1014
|
-
}, 3e4),
|
|
1015
|
-
let t =
|
|
1016
|
-
e && t !== "licensed" &&
|
|
1991
|
+
}, 3e4), c = setInterval(() => {
|
|
1992
|
+
let t = me();
|
|
1993
|
+
e && t !== "licensed" && s(t);
|
|
1017
1994
|
}, 1e3);
|
|
1018
1995
|
return () => {
|
|
1019
|
-
e = !1, clearInterval(o), clearInterval(
|
|
1996
|
+
e = !1, clearInterval(o), clearInterval(c), a();
|
|
1020
1997
|
};
|
|
1021
|
-
}, [
|
|
1022
|
-
let
|
|
1023
|
-
let r = await
|
|
1024
|
-
if (r !== "licensed" || i !== "licensed") throw
|
|
1998
|
+
}, [t, c]);
|
|
1999
|
+
let te = n(async (t, n) => {
|
|
2000
|
+
let r = await be(), i = me();
|
|
2001
|
+
if (r !== "licensed" || i !== "licensed") throw s(i), new DOMException("A valid component license is required.", "AbortError");
|
|
1025
2002
|
return e.transport ? e.transport(t, n) : fetch("/v1" + t, n);
|
|
1026
|
-
}, [e.transport]), d =
|
|
1027
|
-
return /* @__PURE__ */
|
|
1028
|
-
value:
|
|
1029
|
-
children: d ? /* @__PURE__ */
|
|
2003
|
+
}, [e.transport]), d = a === "licensed";
|
|
2004
|
+
return /* @__PURE__ */ l(V.Provider, {
|
|
2005
|
+
value: t,
|
|
2006
|
+
children: d ? /* @__PURE__ */ l(G, {
|
|
1030
2007
|
...e,
|
|
1031
|
-
transport:
|
|
1032
|
-
}) : /* @__PURE__ */
|
|
2008
|
+
transport: te
|
|
2009
|
+
}, e.embedded ? e.workspaceKey ?? "unscoped" : "public") : /* @__PURE__ */ u("section", {
|
|
1033
2010
|
className: "bim-studio bim-license-gate",
|
|
1034
|
-
dir:
|
|
2011
|
+
dir: r === "ar" ? "rtl" : "ltr",
|
|
1035
2012
|
"aria-label": "Component licensing",
|
|
1036
2013
|
children: [
|
|
1037
|
-
/* @__PURE__ */
|
|
1038
|
-
/* @__PURE__ */
|
|
1039
|
-
/* @__PURE__ */
|
|
1040
|
-
|
|
2014
|
+
/* @__PURE__ */ l(Ae, {}),
|
|
2015
|
+
/* @__PURE__ */ l("h1", { children: g(r, a === "checking" ? "Verifying component license…" : "A valid component license is required") }),
|
|
2016
|
+
/* @__PURE__ */ u("p", { children: [
|
|
2017
|
+
t === "karamentreprises" ? "Karamentreprises BIM" : "BauLynq Vision",
|
|
1041
2018
|
" · ",
|
|
1042
|
-
|
|
2019
|
+
a
|
|
1043
2020
|
] }),
|
|
1044
|
-
/* @__PURE__ */
|
|
1045
|
-
|
|
2021
|
+
/* @__PURE__ */ l("p", { children: g(r, "The studio stays closed until its installation license and signed revocation status are verified.") }),
|
|
2022
|
+
a !== "checking" && /* @__PURE__ */ l("button", {
|
|
1046
2023
|
className: "outline",
|
|
1047
|
-
onClick: () =>
|
|
1048
|
-
children:
|
|
2024
|
+
onClick: () => ee((e) => e + 1),
|
|
2025
|
+
children: g(r, "Check license again")
|
|
1049
2026
|
}),
|
|
1050
|
-
/* @__PURE__ */
|
|
1051
|
-
href:
|
|
1052
|
-
children: [
|
|
2027
|
+
/* @__PURE__ */ u("a", {
|
|
2028
|
+
href: t === "karamentreprises" ? "https://packages.karamentreprises.com/bim" : "https://packages.polycyphers.com/bim",
|
|
2029
|
+
children: [g(r, "License management"), " ↗"]
|
|
1053
2030
|
})
|
|
1054
2031
|
]
|
|
1055
2032
|
})
|
|
1056
2033
|
});
|
|
1057
2034
|
}
|
|
1058
|
-
function
|
|
1059
|
-
let [
|
|
2035
|
+
function G({ enableExistingPlanReview: e = !1, embedded: t = !1, transport: r, initialInput: ee, workspaceKey: te, language: d, onStateChange: ne, brand: f = "baulynq" } = {}) {
|
|
2036
|
+
let [p, h] = o(() => Oe(d ?? ee?.language ?? (typeof navigator > "u" ? "en" : navigator.language))), [ie, ae] = o(t || location.pathname === "/studio" ? "studio" : "home"), [oe, _] = o("measure"), [v, se] = o(null), [y, b] = o(ee ?? null), [ce, S] = o("A"), [C, w] = o(!1), [le, T] = o(""), [E, D] = o(""), [ue, O] = o(""), [k, A] = o(null), [j, de] = o(null), [M, fe] = o(null), [N, pe] = o(""), [he, P] = o(!t && ke()), [ge, _e] = o(""), [F, ve] = o(""), [I, ye] = o({}), [L, be] = o(!1), [R, z] = o(ke() ? "verify" : "login"), [B, V] = o(() => ke() ? new URLSearchParams(location.search).get("token") ?? "" : ""), [je, G] = o(), [Fe, Ie] = o(null), [q, Le] = o(null), [J, Re] = o(null), [ze, Be] = o(""), [Ve, He] = o(null), [Ue, We] = o([]), [Ge, Ke] = o(!1), [qe, Je] = o(!1), [Ye, Xe] = o(!1), [Ze, Qe] = o(null), [$e, et] = o(null), [tt, nt] = o(null), [rt, it] = o(!1), [at, ot] = o(1), [st, ct] = o(1), [lt, ut] = o(!1), [dt, ft] = o(!1), [pt, mt] = o(!1), [ht, gt] = o(null), [_t, vt] = o(!1), [yt, bt] = o([]), [xt, St] = o([]), [Ct, wt] = o(null), Tt = a(null), Et = n((e) => {
|
|
2037
|
+
Tt.current = e;
|
|
2038
|
+
}, []), [Dt, Ot] = o(!1), [kt, At] = o([]), [jt, Mt] = o(), Nt = a(null), Pt = a(!1), Ft = a(!0), Y = a(0), It = a(""), Lt = a(void 0), Rt = a(te), X = m[p], zt = te ?? je, [Bt, Vt] = o(!1), [Ht, Ut] = o({
|
|
2039
|
+
busy: !1,
|
|
2040
|
+
hasUnsavedChanges: !1
|
|
2041
|
+
}), Wt = n((e) => Ut(e), []), Gt = a(ne), Kt = Ht.hasUnsavedChanges || lt || !!E.trim() || !!q || !!J && !Ve || _t;
|
|
2042
|
+
i(() => {
|
|
2043
|
+
Gt.current = ne;
|
|
2044
|
+
}, [ne]), i(() => {
|
|
2045
|
+
Gt.current?.({
|
|
2046
|
+
busy: C || Ht.busy,
|
|
2047
|
+
hasUnsavedChanges: Kt
|
|
2048
|
+
});
|
|
2049
|
+
}, [
|
|
2050
|
+
C,
|
|
2051
|
+
Ht.busy,
|
|
2052
|
+
Kt
|
|
2053
|
+
]), i(() => () => {
|
|
2054
|
+
Gt.current?.({
|
|
2055
|
+
busy: !1,
|
|
2056
|
+
hasUnsavedChanges: !1
|
|
2057
|
+
});
|
|
2058
|
+
}, []), i(() => {
|
|
2059
|
+
et(null), nt(null), ot(Math.max(1, (v?.version ?? 1) - 1)), ct(v?.version ?? 1), v || it(!1);
|
|
2060
|
+
}, [v?.projectId, v?.version]);
|
|
2061
|
+
let qt = q?.snapshot ?? v, Z = qt?.proposals.find((e) => e.id === ce) ?? qt?.proposals[0], Jt = xe(I, p), Yt = Se(I), Xt = typeof I.checkoutAvailable == "boolean" ? I.checkoutAvailable : I.checkoutEnabled === !0, Zt = [
|
|
1060
2062
|
"paidRegenerations",
|
|
1061
2063
|
"chatRefinementsPerProject",
|
|
1062
2064
|
"exportsPerPaidProject"
|
|
1063
|
-
].every((e) => typeof
|
|
1064
|
-
regenerations: Number(
|
|
1065
|
-
chat: Number(
|
|
1066
|
-
exports: Number(
|
|
2065
|
+
].every((e) => typeof I[e] == "number" && Number.isInteger(I[e]) && Number(I[e]) >= 0) ? {
|
|
2066
|
+
regenerations: Number(I.paidRegenerations),
|
|
2067
|
+
chat: Number(I.chatRefinementsPerProject),
|
|
2068
|
+
exports: Number(I.exportsPerPaidProject)
|
|
1067
2069
|
} : null;
|
|
1068
|
-
|
|
1069
|
-
|
|
2070
|
+
i(() => (Ft.current = !0, () => {
|
|
2071
|
+
Ft.current = !1, Y.current++;
|
|
1070
2072
|
}), []);
|
|
1071
|
-
function
|
|
1072
|
-
let t =
|
|
1073
|
-
if (!
|
|
2073
|
+
function Qt(e) {
|
|
2074
|
+
let t = me();
|
|
2075
|
+
if (!Ft.current || e !== Y.current || t !== "licensed") throw new DOMException("The verified session changed.", "AbortError");
|
|
1074
2076
|
}
|
|
1075
|
-
async function
|
|
1076
|
-
let i =
|
|
1077
|
-
|
|
1078
|
-
let a = new Headers(
|
|
1079
|
-
if (!
|
|
1080
|
-
let o = await (
|
|
1081
|
-
if (
|
|
2077
|
+
async function $t(e, n) {
|
|
2078
|
+
let i = Y.current;
|
|
2079
|
+
Qt(i);
|
|
2080
|
+
let a = new Headers(n?.headers).get("Authorization");
|
|
2081
|
+
if (!t && e !== "/session" && a && a !== "Bearer " + It.current) throw new DOMException("The verified session changed.", "AbortError");
|
|
2082
|
+
let o = await (r ? r(e, n) : fetch("/v1" + e, n));
|
|
2083
|
+
if (e !== "/config" && Qt(i), !t && o.status === 401 && !e.startsWith("/account/")) throw tn(), z("login"), P(!0), T("Sign in with a verified account to continue."), new DOMException("The verified session expired.", "AbortError");
|
|
1082
2084
|
return o;
|
|
1083
2085
|
}
|
|
1084
|
-
function
|
|
1085
|
-
|
|
2086
|
+
function en() {
|
|
2087
|
+
wt(null), Tt.current = null, Vt(!1), Ut({
|
|
2088
|
+
busy: !1,
|
|
2089
|
+
hasUnsavedChanges: !1
|
|
2090
|
+
}), ut(!1), mt(!1), T(""), O(""), ft(!1), Qe(null), We([]), At([]), Mt(void 0), gt(null), vt(!1), bt([]), Ke(!1), Je(!1), D(""), se(null), St([]), b(null), Le(null), Re(null), fe(null), de(null), A(null), He(null), Ie(null), Xe(!1);
|
|
1086
2091
|
}
|
|
1087
|
-
function
|
|
1088
|
-
(
|
|
2092
|
+
function tn() {
|
|
2093
|
+
(v || Lt.current) && en(), Y.current++, It.current = "", Lt.current = void 0, pe(""), G(void 0);
|
|
1089
2094
|
}
|
|
1090
|
-
async function
|
|
1091
|
-
let i =
|
|
2095
|
+
async function Q(e, n, r) {
|
|
2096
|
+
let i = Y.current, a = await $t(e, {
|
|
1092
2097
|
method: r ?? (n ? "POST" : "GET"),
|
|
1093
2098
|
headers: {
|
|
1094
2099
|
...n ? { "Content-Type": "application/json" } : {},
|
|
1095
|
-
...!
|
|
2100
|
+
...!t && N ? { Authorization: "Bearer " + N } : {}
|
|
1096
2101
|
},
|
|
1097
2102
|
body: n ? JSON.stringify(n) : void 0
|
|
1098
2103
|
});
|
|
1099
2104
|
if (!a.ok) {
|
|
1100
|
-
let n = "The service is temporarily unavailable.";
|
|
2105
|
+
let n = "The service is temporarily unavailable.", r = {};
|
|
1101
2106
|
try {
|
|
1102
2107
|
let e = await a.json();
|
|
1103
|
-
n =
|
|
2108
|
+
e && typeof e == "object" && !Array.isArray(e) && (r = e), n = String(r.detail ?? r.title ?? r.error ?? n);
|
|
1104
2109
|
} catch {}
|
|
1105
|
-
|
|
2110
|
+
Qt(i), a.status === 401 && (t || (tn(), e.startsWith("/account/") || z("login"), P(!0)), n = t ? "Your app session needs attention. Sign in again through your app." : "Sign in with a verified account to continue.");
|
|
2111
|
+
let o = /^\/projects\/([a-f0-9]{32})\//.exec(e)?.[1];
|
|
2112
|
+
throw !t && a.status === 402 && r.code === "project_quota_exceeded" && o && [
|
|
2113
|
+
"operation_cap",
|
|
2114
|
+
"free_tier_unavailable",
|
|
2115
|
+
"provider_cost_cap"
|
|
2116
|
+
].includes(String(r.reason)) && typeof r.projectPaid == "boolean" && typeof r.canPurchase == "boolean" && (wt({
|
|
2117
|
+
projectId: o,
|
|
2118
|
+
projectPaid: r.projectPaid,
|
|
2119
|
+
canPurchase: r.canPurchase,
|
|
2120
|
+
reason: String(r.reason)
|
|
2121
|
+
}), r.canPurchase && !r.projectPaid && nn("paywall")), Error(n);
|
|
1106
2122
|
}
|
|
1107
2123
|
let o = a.status === 204 ? null : await a.json();
|
|
1108
|
-
return
|
|
2124
|
+
return Qt(i), o;
|
|
1109
2125
|
}
|
|
1110
|
-
async function
|
|
1111
|
-
if (!(
|
|
1112
|
-
await
|
|
2126
|
+
async function nn(e, n = Dt) {
|
|
2127
|
+
if (!(t || I.analyticsEnabled !== !0)) try {
|
|
2128
|
+
await $t("/analytics/events", {
|
|
1113
2129
|
method: "POST",
|
|
1114
2130
|
headers: {
|
|
1115
2131
|
"Content-Type": "application/json",
|
|
1116
|
-
...
|
|
2132
|
+
...N ? { Authorization: "Bearer " + N } : {}
|
|
1117
2133
|
},
|
|
1118
2134
|
body: JSON.stringify({
|
|
1119
|
-
eventId:
|
|
1120
|
-
kind:
|
|
2135
|
+
eventId: H(),
|
|
2136
|
+
kind: e,
|
|
1121
2137
|
consentGranted: n
|
|
1122
2138
|
})
|
|
1123
2139
|
});
|
|
1124
2140
|
} catch {}
|
|
1125
2141
|
}
|
|
1126
|
-
function
|
|
1127
|
-
|
|
2142
|
+
function rn(e) {
|
|
2143
|
+
Ot(e), nn("visit", e);
|
|
1128
2144
|
}
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
}, [
|
|
2145
|
+
i(() => {
|
|
2146
|
+
d !== void 0 && h(Oe(d));
|
|
2147
|
+
}, [d]), i(() => {
|
|
2148
|
+
t || (document.documentElement.lang = p, document.documentElement.dir = p === "ar" ? "rtl" : "ltr");
|
|
2149
|
+
}, [p, t]), i(() => {
|
|
1132
2150
|
let e = !0;
|
|
1133
|
-
return
|
|
1134
|
-
e &&
|
|
2151
|
+
return $t("/config").then((e) => e.ok ? e.json() : Promise.reject()).then((t) => {
|
|
2152
|
+
e && ye(t);
|
|
1135
2153
|
}).catch(() => {}), () => {
|
|
1136
2154
|
e = !1;
|
|
1137
2155
|
};
|
|
1138
|
-
}, [
|
|
1139
|
-
!
|
|
1140
|
-
}, [
|
|
1141
|
-
if (!
|
|
1142
|
-
|
|
2156
|
+
}, [r]), i(() => {
|
|
2157
|
+
!t && ke() && history.replaceState({}, "", location.pathname);
|
|
2158
|
+
}, [t]), i(() => {
|
|
2159
|
+
if (!J) {
|
|
2160
|
+
Be("");
|
|
1143
2161
|
return;
|
|
1144
2162
|
}
|
|
1145
|
-
let e = URL.createObjectURL(
|
|
1146
|
-
return
|
|
1147
|
-
}, [
|
|
1148
|
-
|
|
1149
|
-
}, [
|
|
1150
|
-
if (!
|
|
1151
|
-
let e =
|
|
1152
|
-
if (
|
|
2163
|
+
let e = URL.createObjectURL(J);
|
|
2164
|
+
return Be(e), () => URL.revokeObjectURL(e);
|
|
2165
|
+
}, [J]), i(() => {
|
|
2166
|
+
t && Rt.current !== te && (Y.current++, en(), Rt.current = te);
|
|
2167
|
+
}, [te, t]), i(() => {
|
|
2168
|
+
if (!zt) return;
|
|
2169
|
+
let e = Ce(localStorage, zt);
|
|
2170
|
+
if (Ie(e), !e || y || v) return;
|
|
1153
2171
|
let t = !0;
|
|
1154
|
-
return
|
|
1155
|
-
t && (
|
|
2172
|
+
return Q("/projects/" + e).then((e) => {
|
|
2173
|
+
t && (an(e), _(e.input.isDraft ? "measure" : "proposals"));
|
|
1156
2174
|
}).catch((e) => {
|
|
1157
|
-
t &&
|
|
2175
|
+
t && T(e instanceof Error ? e.message : "Could not resume the project.");
|
|
1158
2176
|
}), () => {
|
|
1159
2177
|
t = !1;
|
|
1160
2178
|
};
|
|
1161
|
-
}, [
|
|
1162
|
-
function
|
|
1163
|
-
|
|
2179
|
+
}, [zt]);
|
|
2180
|
+
function an(t) {
|
|
2181
|
+
Ct?.projectId !== t.projectId && wt(null), Qt(Y.current), Qe(t.reconciliation), Xe(!1), t.input.isDraft || (ut(!1), vt(!1)), t.input.isDraft || bt([]), se(t), b(t.pendingDraft?.input ? {
|
|
2182
|
+
...t.pendingDraft.input,
|
|
2183
|
+
isDraft: !1
|
|
2184
|
+
} : t.input.isDraft ? y ?? Te(p) : t.input), Vt(e && (t.pendingDraft?.workflow ?? t.workflow) === "existing-plan"), t.pendingDraft && (t.pendingDraft.input && ut(!1), He(t.pendingDraft.sourceObjectId ?? null), D(t.pendingDraft.brief ?? "")), S(t.selectedProposalId ?? t.proposals.find((e) => e.recommended)?.id ?? "A"), fe(null), de(null), A(null), Le(null), zt && (we(localStorage, zt, t.projectId), Ie(t.projectId));
|
|
1164
2185
|
}
|
|
1165
|
-
async function
|
|
1166
|
-
if (!
|
|
1167
|
-
|
|
2186
|
+
async function $(e) {
|
|
2187
|
+
if (!(Pt.current || Ht.busy)) {
|
|
2188
|
+
Pt.current = !0, w(!0), T("");
|
|
1168
2189
|
try {
|
|
1169
2190
|
await e();
|
|
1170
2191
|
} catch (e) {
|
|
1171
|
-
e instanceof DOMException && e.name === "AbortError" ||
|
|
2192
|
+
e instanceof DOMException && e.name === "AbortError" || T(e instanceof Error ? e.message : "Please try again.");
|
|
1172
2193
|
} finally {
|
|
1173
|
-
|
|
2194
|
+
Pt.current = !1, w(!1);
|
|
1174
2195
|
}
|
|
1175
2196
|
}
|
|
1176
2197
|
}
|
|
1177
|
-
function
|
|
1178
|
-
|
|
2198
|
+
function on(e) {
|
|
2199
|
+
mt(!1), ae(e), t || history.pushState({}, "", e === "home" ? "/" : "/studio"), window.scrollTo(0, 0);
|
|
1179
2200
|
}
|
|
1180
|
-
function
|
|
1181
|
-
e ||
|
|
2201
|
+
function sn(e = !1) {
|
|
2202
|
+
Ht.busy || Ht.hasUnsavedChanges || (wt(null), Tt.current = null, Vt(!1), ut(!1), e || Re(null), Ke(!1), Je(!1), We([]), At([]), Mt(void 0), gt(null), vt(!1), bt([]), D(""), se(null), St([]), b(Te(p)), Le(null), fe(null), de(null), A(null), Xe(!1), Qe(null), He(null), _("measure"), on("studio"));
|
|
1182
2203
|
}
|
|
1183
|
-
async function
|
|
1184
|
-
|
|
1185
|
-
let e = await
|
|
1186
|
-
|
|
1187
|
-
})) :
|
|
2204
|
+
async function cn() {
|
|
2205
|
+
I.mode === "local-demo" ? (on("studio"), await $(async () => {
|
|
2206
|
+
let e = await Q("/reference?language=" + p);
|
|
2207
|
+
b(e), ut(!1), Xe(!1), _("measure"), O("Reference example loaded. Review its site-confirmed dimensions before generating.");
|
|
2208
|
+
})) : sn();
|
|
1188
2209
|
}
|
|
1189
|
-
async function
|
|
1190
|
-
let r =
|
|
1191
|
-
if (!
|
|
2210
|
+
async function ln(e, n) {
|
|
2211
|
+
let r = Y.current;
|
|
2212
|
+
if (!Ge || !qe) throw Error("Review the image permissions and AI disclosure before upload.");
|
|
1192
2213
|
let i = new FormData();
|
|
1193
2214
|
i.append("file", n), i.append("rightsAcknowledged", "true"), i.append("aiProcessingAcknowledged", "true");
|
|
1194
|
-
let a = await
|
|
2215
|
+
let a = await $t(`/projects/${e.projectId}/uploads`, {
|
|
1195
2216
|
method: "POST",
|
|
1196
|
-
headers: !
|
|
2217
|
+
headers: !t && N ? { Authorization: "Bearer " + N } : {},
|
|
1197
2218
|
body: i
|
|
1198
2219
|
});
|
|
1199
2220
|
if (!a.ok) {
|
|
@@ -1202,63 +2223,94 @@ function De({ embedded: e = !1, transport: t, initialInput: n, workspaceKey: s,
|
|
|
1202
2223
|
let t = await a.json();
|
|
1203
2224
|
e = t.detail ?? t.title ?? t.error ?? e;
|
|
1204
2225
|
} catch {}
|
|
1205
|
-
throw
|
|
2226
|
+
throw Qt(r), Error(e);
|
|
1206
2227
|
}
|
|
1207
2228
|
let o = await a.json();
|
|
1208
|
-
|
|
2229
|
+
return Qt(r), He(o.upload.id), O("Sketch stored privately. Reading produces observations to confirm, never unchecked dimensions."), o.upload.id;
|
|
2230
|
+
}
|
|
2231
|
+
async function un(e, t = v?.version ?? 0, n = v?.projectId ?? H()) {
|
|
2232
|
+
if (e.input) {
|
|
2233
|
+
let t = Ee(e.input);
|
|
2234
|
+
if (t) throw Error(t);
|
|
2235
|
+
}
|
|
2236
|
+
let r = await Q("/drafts", {
|
|
2237
|
+
projectId: n,
|
|
2238
|
+
operationId: H(),
|
|
2239
|
+
expectedVersion: t,
|
|
2240
|
+
pendingDraft: {
|
|
2241
|
+
...e,
|
|
2242
|
+
brief: E
|
|
2243
|
+
}
|
|
2244
|
+
});
|
|
2245
|
+
if (r.projectId !== n || r.version !== t + 1 || r.pendingDraft?.workflow !== e.workflow) throw Error("Pending work could not be saved by this service. Checkout and generation are stopped; keep this page open.");
|
|
2246
|
+
return r;
|
|
2247
|
+
}
|
|
2248
|
+
function dn(e) {
|
|
2249
|
+
an(e), _("measure");
|
|
1209
2250
|
}
|
|
1210
|
-
async function
|
|
1211
|
-
|
|
1212
|
-
let e =
|
|
2251
|
+
async function fn() {
|
|
2252
|
+
y && await $(async () => {
|
|
2253
|
+
let e = Ee(y);
|
|
1213
2254
|
if (e) throw Error(e);
|
|
1214
|
-
if (
|
|
1215
|
-
if (!
|
|
1216
|
-
let
|
|
1217
|
-
...
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
2255
|
+
if (J && !Ve && (!Ge || !qe)) throw Error("Review the image permissions and AI disclosure, or remove the local image.");
|
|
2256
|
+
if (!Ye) throw Error("Confirm the measured dimensions and bearings before generating.");
|
|
2257
|
+
let n = {
|
|
2258
|
+
...y,
|
|
2259
|
+
isDraft: !1,
|
|
2260
|
+
language: p
|
|
2261
|
+
}, r = await Q("/footprints/reconcile", n.footprint);
|
|
2262
|
+
if (Qe(r), r.status !== "Unique") throw Error(r.findings.map((e) => e.message).join(" ") || "The footprint needs another confirmed measurement.");
|
|
2263
|
+
let i = v, a = Ve;
|
|
2264
|
+
t || (i = await un({
|
|
2265
|
+
workflow: "manual",
|
|
2266
|
+
input: n,
|
|
2267
|
+
sourceObjectId: a ?? void 0
|
|
2268
|
+
}, i?.version ?? 0, i?.projectId ?? H()), an(i), Qe(r), J && !a && (a = await ln(i, J), i = await un({
|
|
2269
|
+
workflow: "manual",
|
|
2270
|
+
input: n,
|
|
2271
|
+
sourceObjectId: a
|
|
2272
|
+
}, i.version, i.projectId), an(i), Qe(r)));
|
|
2273
|
+
let o = i ? await Q(`/projects/${i.projectId}/edits`, {
|
|
2274
|
+
expectedVersion: i.version,
|
|
2275
|
+
operationId: H(),
|
|
1224
2276
|
edit: {
|
|
1225
|
-
replaceInput:
|
|
2277
|
+
replaceInput: n,
|
|
1226
2278
|
note: "Confirmed measurements"
|
|
1227
2279
|
}
|
|
1228
|
-
}) : await
|
|
1229
|
-
projectId:
|
|
1230
|
-
operationId:
|
|
1231
|
-
input:
|
|
2280
|
+
}) : await Q("/projects", {
|
|
2281
|
+
projectId: H(),
|
|
2282
|
+
operationId: H(),
|
|
2283
|
+
input: n
|
|
1232
2284
|
});
|
|
1233
|
-
|
|
2285
|
+
an(o), wt(null), _(o.input.isDraft ? "measure" : "proposals"), J && !a && await ln(o, J);
|
|
1234
2286
|
});
|
|
1235
2287
|
}
|
|
1236
|
-
async function
|
|
1237
|
-
|
|
1238
|
-
let e = await
|
|
1239
|
-
expectedVersion:
|
|
1240
|
-
operationId:
|
|
1241
|
-
message:
|
|
2288
|
+
async function pn() {
|
|
2289
|
+
E.trim() && v && await $(async () => {
|
|
2290
|
+
let e = await Q(`/projects/${v.projectId}/chat`, {
|
|
2291
|
+
expectedVersion: v.version,
|
|
2292
|
+
operationId: H(),
|
|
2293
|
+
message: E
|
|
1242
2294
|
});
|
|
1243
|
-
|
|
2295
|
+
Le(e.preview), O(e.reply), D(""), _("refine");
|
|
1244
2296
|
});
|
|
1245
2297
|
}
|
|
1246
|
-
async function
|
|
1247
|
-
if (!
|
|
1248
|
-
let e =
|
|
1249
|
-
await
|
|
1250
|
-
|
|
2298
|
+
async function mn() {
|
|
2299
|
+
if (!De(q, v) || !q || !v) return;
|
|
2300
|
+
let e = q;
|
|
2301
|
+
await $(async () => {
|
|
2302
|
+
an(await Q(`/projects/${v.projectId}/edits`, {
|
|
1251
2303
|
expectedVersion: e.expectedVersion,
|
|
1252
|
-
operationId:
|
|
2304
|
+
operationId: H(),
|
|
1253
2305
|
edit: e.edit
|
|
1254
|
-
})),
|
|
2306
|
+
})), O("Preview applied as a new saved version.");
|
|
1255
2307
|
});
|
|
1256
2308
|
}
|
|
1257
|
-
async function
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
expectedVersion:
|
|
1261
|
-
operationId:
|
|
2309
|
+
async function hn(e) {
|
|
2310
|
+
v && !q && await $(async () => {
|
|
2311
|
+
an(await Q(`/projects/${v.projectId}/edits`, {
|
|
2312
|
+
expectedVersion: v.version,
|
|
2313
|
+
operationId: H(),
|
|
1262
2314
|
edit: {
|
|
1263
2315
|
selectProposalId: e.id,
|
|
1264
2316
|
note: "Selected layout " + e.id
|
|
@@ -1266,328 +2318,482 @@ function De({ embedded: e = !1, transport: t, initialInput: n, workspaceKey: s,
|
|
|
1266
2318
|
}));
|
|
1267
2319
|
});
|
|
1268
2320
|
}
|
|
1269
|
-
async function
|
|
1270
|
-
|
|
1271
|
-
let e = await
|
|
1272
|
-
|
|
2321
|
+
async function gn() {
|
|
2322
|
+
v && (rt ? it(!1) : await $(async () => {
|
|
2323
|
+
let e = await Q(`/projects/${v.projectId}/history`);
|
|
2324
|
+
et(e), it(!0);
|
|
2325
|
+
}));
|
|
2326
|
+
}
|
|
2327
|
+
async function _n() {
|
|
2328
|
+
v && $e?.some((e) => e.version === at) && $e.some((e) => e.version === st) && await $(async () => {
|
|
2329
|
+
nt(await Q(`/projects/${v.projectId}/compare?left=${at}&right=${st}`));
|
|
2330
|
+
});
|
|
2331
|
+
}
|
|
2332
|
+
async function vn() {
|
|
2333
|
+
v && at !== v.version && !q && $e?.some((e) => e.version === at) && await $(async () => {
|
|
2334
|
+
an(await Q(`/projects/${v.projectId}/undo`, {
|
|
2335
|
+
expectedVersion: v.version,
|
|
2336
|
+
targetVersion: at,
|
|
2337
|
+
operationId: H()
|
|
2338
|
+
})), O(g(p, "Saved as a new version. Earlier versions are unchanged."));
|
|
2339
|
+
});
|
|
2340
|
+
}
|
|
2341
|
+
function yn() {
|
|
2342
|
+
return /* @__PURE__ */ u("section", {
|
|
2343
|
+
className: "project-price",
|
|
2344
|
+
children: [
|
|
2345
|
+
/* @__PURE__ */ l("h3", { children: g(p, "Project billing") }),
|
|
2346
|
+
/* @__PURE__ */ l("p", { children: Bt ? {
|
|
2347
|
+
en: "This workflow produces reviewed 2D files, not automatic BIM reconstruction. Saves use the configured project generation allowance; check the quote and limits before purchase.",
|
|
2348
|
+
de: "Dieser Ablauf erstellt geprüfte 2D-Dateien, keine automatische BIM-Rekonstruktion. Speichern nutzt das Generierungskontingent; Angebot und Grenzen vor dem Kauf prüfen.",
|
|
2349
|
+
fr: "Ce parcours produit des fichiers 2D vérifiés, sans reconstruction BIM automatique. L’enregistrement utilise le quota du projet ; vérifier le devis et les limites avant achat.",
|
|
2350
|
+
ar: "ينتج هذا المسار ملفات ثنائية الأبعاد مراجعة، وليس إعادة بناء BIM تلقائية. يستخدم الحفظ حصة المشروع؛ راجع السعر والحدود قبل الشراء."
|
|
2351
|
+
}[p] : "One project includes proposals, refinements and its BIM model within the configured caps. Free allowances are checked by the service." }),
|
|
2352
|
+
Zt ? /* @__PURE__ */ u("p", {
|
|
2353
|
+
className: "quota-disclosure",
|
|
2354
|
+
children: [
|
|
2355
|
+
"After the initial proposal request: ",
|
|
2356
|
+
Zt.regenerations,
|
|
2357
|
+
" regenerations · ",
|
|
2358
|
+
Zt.chat,
|
|
2359
|
+
" chat refinements · ",
|
|
2360
|
+
Zt.exports,
|
|
2361
|
+
" ",
|
|
2362
|
+
Zt.exports === 1 ? "BIM export" : "BIM exports",
|
|
2363
|
+
" per paid project."
|
|
2364
|
+
]
|
|
2365
|
+
}) : /* @__PURE__ */ l("p", { children: "Project usage limits are unavailable. Checkout stays disabled until they can be shown." }),
|
|
2366
|
+
Ct !== null && Ct.projectId === v?.projectId && Ct.projectPaid ? /* @__PURE__ */ l("p", {
|
|
2367
|
+
role: "status",
|
|
2368
|
+
children: g(p, "This paid project reached its configured limit. Another purchase will not extend its allowance.")
|
|
2369
|
+
}) : k ? /* @__PURE__ */ u(c, { children: [
|
|
2370
|
+
/* @__PURE__ */ l("strong", { children: xe({
|
|
2371
|
+
priceMinorUnits: k.priceMinorUnits,
|
|
2372
|
+
currency: k.currency
|
|
2373
|
+
}, p) }),
|
|
2374
|
+
/* @__PURE__ */ u("p", { children: [
|
|
2375
|
+
"Quote valid until ",
|
|
2376
|
+
new Date(k.expiresAtUtc).toLocaleString(p),
|
|
2377
|
+
"."
|
|
2378
|
+
] }),
|
|
2379
|
+
/* @__PURE__ */ l("button", {
|
|
2380
|
+
className: "ink full",
|
|
2381
|
+
disabled: C || !Xt || !Zt,
|
|
2382
|
+
onClick: xn,
|
|
2383
|
+
children: g(p, "Continue to Stripe")
|
|
2384
|
+
}),
|
|
2385
|
+
/* @__PURE__ */ l("button", {
|
|
2386
|
+
className: "textbtn",
|
|
2387
|
+
disabled: C,
|
|
2388
|
+
onClick: bn,
|
|
2389
|
+
children: g(p, "Refresh project quote")
|
|
2390
|
+
})
|
|
2391
|
+
] }) : /* @__PURE__ */ l("button", {
|
|
2392
|
+
className: "outline full",
|
|
2393
|
+
disabled: C || !Xt,
|
|
2394
|
+
onClick: bn,
|
|
2395
|
+
children: g(p, "View project price")
|
|
2396
|
+
}),
|
|
2397
|
+
!Xt && /* @__PURE__ */ l("small", { children: g(p, "Purchases are not enabled in this environment.") }),
|
|
2398
|
+
/* @__PURE__ */ l("small", { children: "A checkout return is not proof of payment; downloads use the service's verified entitlement." })
|
|
2399
|
+
]
|
|
2400
|
+
});
|
|
2401
|
+
}
|
|
2402
|
+
async function bn() {
|
|
2403
|
+
v && !t && await $(async () => {
|
|
2404
|
+
let e = await Q("/account/quote", { projectId: v.projectId });
|
|
2405
|
+
if (e.projectId !== v.projectId || !e.quoteId || xe({
|
|
1273
2406
|
priceMinorUnits: e.priceMinorUnits,
|
|
1274
2407
|
currency: e.currency
|
|
1275
|
-
},
|
|
1276
|
-
|
|
2408
|
+
}, p) === null || !Number.isFinite(Date.parse(e.expiresAtUtc))) throw Error("A valid project quote was not supplied.");
|
|
2409
|
+
A(e);
|
|
1277
2410
|
});
|
|
1278
2411
|
}
|
|
1279
|
-
async function
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
2412
|
+
async function xn() {
|
|
2413
|
+
v && k && !t && Xt && Zt && (Ct?.projectId !== v.projectId || !Ct.projectPaid) && await $(async () => {
|
|
2414
|
+
let e = k;
|
|
2415
|
+
if (J && !Ve) throw Error("Scan and save the selected image before checkout so it can be restored after payment.");
|
|
2416
|
+
if (e.projectId !== v.projectId || Date.parse(e.expiresAtUtc) <= Date.now()) throw Error("This quote expired. Refresh the project quote before purchase.");
|
|
2417
|
+
let t = v;
|
|
2418
|
+
if (Bt) {
|
|
2419
|
+
let e = Tt.current;
|
|
2420
|
+
if (!e) throw Error("The existing-plan editor is not ready to preserve your latest work. Checkout is stopped; keep this page open.");
|
|
2421
|
+
t = await e() ?? t;
|
|
2422
|
+
} else y && (t = await un({
|
|
2423
|
+
workflow: "manual",
|
|
2424
|
+
input: y,
|
|
2425
|
+
sourceObjectId: Ve ?? void 0
|
|
2426
|
+
}, t.version, t.projectId), an(t));
|
|
2427
|
+
if (Date.parse(e.expiresAtUtc) <= Date.now()) throw Error("This quote expired. Refresh the project quote before purchase.");
|
|
2428
|
+
let n = await Q("/account/checkout", {
|
|
2429
|
+
projectId: t.projectId,
|
|
2430
|
+
requestId: H(),
|
|
2431
|
+
quoteId: e.quoteId
|
|
2432
|
+
}), r = new URL(n.url);
|
|
2433
|
+
if (r.protocol !== "https:" || r.hostname !== "checkout.stripe.com" || r.username || r.password) throw Error("The checkout address was not accepted.");
|
|
2434
|
+
window.location.assign(r.href);
|
|
1289
2435
|
});
|
|
1290
2436
|
}
|
|
1291
|
-
function
|
|
1292
|
-
|
|
2437
|
+
function Sn() {
|
|
2438
|
+
en(), Y.current++, It.current = "", Lt.current = void 0, T(""), pe(""), G(void 0), ve(""), _e(""), V(""), O("Signed out. Your saved project stays private and can resume after sign-in.");
|
|
1293
2439
|
}
|
|
1294
|
-
async function
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
expectedVersion:
|
|
1298
|
-
operationId:
|
|
1299
|
-
proposalId:
|
|
1300
|
-
})),
|
|
2440
|
+
async function Cn() {
|
|
2441
|
+
v && Z && !q && await $(async () => {
|
|
2442
|
+
de(await Q(`/projects/${v.projectId}/drawings`, {
|
|
2443
|
+
expectedVersion: v.version,
|
|
2444
|
+
operationId: H(),
|
|
2445
|
+
proposalId: Z.id
|
|
2446
|
+
})), O("2D concept drawings prepared. This does not spend the BIM model export.");
|
|
1301
2447
|
});
|
|
1302
2448
|
}
|
|
1303
|
-
async function
|
|
1304
|
-
|
|
1305
|
-
let e = await
|
|
1306
|
-
expectedVersion:
|
|
1307
|
-
operationId:
|
|
1308
|
-
proposalId:
|
|
2449
|
+
async function wn() {
|
|
2450
|
+
v && Z && !q && await $(async () => {
|
|
2451
|
+
let e = await Q(`/projects/${v.projectId}/exports`, {
|
|
2452
|
+
expectedVersion: v.version,
|
|
2453
|
+
operationId: H(),
|
|
2454
|
+
proposalId: Z.id
|
|
1309
2455
|
});
|
|
1310
|
-
|
|
2456
|
+
fe(e), _("download");
|
|
1311
2457
|
});
|
|
1312
2458
|
}
|
|
1313
|
-
async function
|
|
1314
|
-
n &&
|
|
1315
|
-
let r =
|
|
2459
|
+
async function Tn(e, n = M) {
|
|
2460
|
+
n && v && await $(async () => {
|
|
2461
|
+
let r = Y.current, i = await $t(`/projects/${v.projectId}/objects/${n.files[e].id}`, { headers: !t && N ? { Authorization: "Bearer " + N } : {} });
|
|
1316
2462
|
if (!i.ok) throw Error("Download unavailable.");
|
|
1317
2463
|
let a = await i.blob();
|
|
1318
|
-
|
|
2464
|
+
Qt(r);
|
|
1319
2465
|
let o = URL.createObjectURL(a), s = document.createElement("a");
|
|
1320
|
-
s.href = o, s.download =
|
|
2466
|
+
s.href = o, s.download = `${f === "karamentreprises" ? "karamentreprises" : "baulynq"}-${n.proposalId}-v${n.version}.${e}`, s.click(), setTimeout(() => URL.revokeObjectURL(o), 1e3);
|
|
1321
2467
|
});
|
|
1322
2468
|
}
|
|
1323
|
-
async function
|
|
1324
|
-
![
|
|
2469
|
+
async function En(e) {
|
|
2470
|
+
Ht.busy || Pt.current || (![
|
|
1325
2471
|
"image/png",
|
|
1326
2472
|
"image/jpeg",
|
|
1327
2473
|
"image/webp"
|
|
1328
|
-
].includes(e.type) || e.size > 8388608 ?
|
|
2474
|
+
].includes(e.type) || e.size > 8388608 ? T("Choose a PNG, JPEG or WebP up to 8 MB.") : (Re(e), He(null), Ke(!1), Je(!1), v ? (_("measure"), O("Local preview only. Review permissions and AI disclosure before uploading the image.")) : (y || sn(!0), _("measure"), O("Local sketch preview only. Review permissions, then scan and store it privately before asking AI to read observations. No measured footprint is required for that step."))));
|
|
2475
|
+
}
|
|
2476
|
+
async function Dn() {
|
|
2477
|
+
Kt || await $(async () => {
|
|
2478
|
+
an(await Q("/drafts", {
|
|
2479
|
+
projectId: H(),
|
|
2480
|
+
operationId: H()
|
|
2481
|
+
})), Vt(!0), _("measure"), on("studio");
|
|
2482
|
+
});
|
|
2483
|
+
}
|
|
2484
|
+
function On() {
|
|
2485
|
+
return /* @__PURE__ */ u("section", {
|
|
2486
|
+
className: "paper consent-panel",
|
|
2487
|
+
children: [
|
|
2488
|
+
/* @__PURE__ */ l("h3", { children: g(p, "Before image upload") }),
|
|
2489
|
+
/* @__PURE__ */ l("p", { children: g(p, "The service scans and normalizes the image before storing it. Selecting a file alone does not send it to an AI provider. “Read saved sketch” sends the sanitized image to Anthropic Claude only when you request that step. EU storage is separate from inference location; provider region and data-processing terms require service configuration.") }),
|
|
2490
|
+
/* @__PURE__ */ u("label", {
|
|
2491
|
+
className: "confirmation",
|
|
2492
|
+
children: [/* @__PURE__ */ l("input", {
|
|
2493
|
+
type: "checkbox",
|
|
2494
|
+
disabled: C,
|
|
2495
|
+
checked: Ge,
|
|
2496
|
+
onChange: (e) => Ke(e.target.checked)
|
|
2497
|
+
}), g(p, "I have permission to use this image for this project.")]
|
|
2498
|
+
}),
|
|
2499
|
+
/* @__PURE__ */ u("label", {
|
|
2500
|
+
className: "confirmation",
|
|
2501
|
+
children: [/* @__PURE__ */ l("input", {
|
|
2502
|
+
type: "checkbox",
|
|
2503
|
+
disabled: C,
|
|
2504
|
+
checked: qe,
|
|
2505
|
+
onChange: (e) => Je(e.target.checked)
|
|
2506
|
+
}), g(p, "I understand the AI image-processing disclosure above.")]
|
|
2507
|
+
}),
|
|
2508
|
+
/* @__PURE__ */ u("label", {
|
|
2509
|
+
className: "field",
|
|
2510
|
+
children: [g(p, "What would you like to create?"), /* @__PURE__ */ l("textarea", {
|
|
2511
|
+
"aria-label": "Sketch brief",
|
|
2512
|
+
disabled: C,
|
|
2513
|
+
value: E,
|
|
2514
|
+
maxLength: 8e3,
|
|
2515
|
+
placeholder: "Room wishes, entrance and view, fixed walls, country…",
|
|
2516
|
+
onChange: (e) => D(e.target.value)
|
|
2517
|
+
})]
|
|
2518
|
+
}),
|
|
2519
|
+
/* @__PURE__ */ l("button", {
|
|
2520
|
+
className: "ink",
|
|
2521
|
+
disabled: C || !Ge || !qe,
|
|
2522
|
+
onClick: kn,
|
|
2523
|
+
children: g(p, "Upload for scanning")
|
|
2524
|
+
}),
|
|
2525
|
+
/* @__PURE__ */ l("button", {
|
|
2526
|
+
className: "quiet",
|
|
2527
|
+
disabled: C,
|
|
2528
|
+
onClick: () => {
|
|
2529
|
+
Re(null), Ke(!1), Je(!1);
|
|
2530
|
+
},
|
|
2531
|
+
children: g(p, "Remove local image")
|
|
2532
|
+
})
|
|
2533
|
+
]
|
|
2534
|
+
});
|
|
1329
2535
|
}
|
|
1330
|
-
async function
|
|
1331
|
-
|
|
1332
|
-
let e =
|
|
1333
|
-
e || (e = await
|
|
1334
|
-
projectId:
|
|
1335
|
-
operationId:
|
|
1336
|
-
}),
|
|
2536
|
+
async function kn() {
|
|
2537
|
+
J && await $(async () => {
|
|
2538
|
+
let e = v;
|
|
2539
|
+
e || (e = await Q("/drafts", {
|
|
2540
|
+
projectId: H(),
|
|
2541
|
+
operationId: H()
|
|
2542
|
+
}), an(e), _("measure")), await ln(e, J);
|
|
1337
2543
|
});
|
|
1338
2544
|
}
|
|
1339
|
-
async function
|
|
1340
|
-
|
|
1341
|
-
let e = await
|
|
1342
|
-
expectedVersion:
|
|
1343
|
-
operationId:
|
|
1344
|
-
objectId:
|
|
1345
|
-
intent:
|
|
2545
|
+
async function An() {
|
|
2546
|
+
v && Ve && await $(async () => {
|
|
2547
|
+
let e = await Q(`/projects/${v.projectId}/read-sketch`, {
|
|
2548
|
+
expectedVersion: v.version,
|
|
2549
|
+
operationId: H(),
|
|
2550
|
+
objectId: Ve,
|
|
2551
|
+
intent: E || "Read the sketch measurements and identify uncertainties."
|
|
1346
2552
|
});
|
|
1347
|
-
|
|
2553
|
+
At(e.observations), Mt(e.values), gt(e.candidate ?? null), vt(!1), We(e.questions), O("Recognized values remain estimated. Preview the outline, check labels and assumptions, then explicitly adopt reviewed measurements."), _("measure");
|
|
1348
2554
|
});
|
|
1349
2555
|
}
|
|
1350
|
-
async function
|
|
1351
|
-
|
|
1352
|
-
let e = await
|
|
1353
|
-
|
|
2556
|
+
async function jn() {
|
|
2557
|
+
v && await $(async () => {
|
|
2558
|
+
let e = await Q(`/projects/${v.projectId}`, void 0, "DELETE");
|
|
2559
|
+
se(null), St([]), b(null), fe(null), de(null), A(null), Le(null), ut(!1), Re(null), He(null), We([]), At([]), Mt(void 0), gt(null), vt(!1), bt([]), Qe(null), zt && we(localStorage, zt, null), Ie(null), O(e.dataErased === !0 ? `Service reports project data erased. ${e.accountingPending ? "Accounting cleanup is still pending." : "Accounting cleanup completed."}` : "Deletion accepted; data erasure is still pending. The service will continue cleanup.");
|
|
1354
2560
|
});
|
|
1355
2561
|
}
|
|
1356
|
-
async function
|
|
1357
|
-
!
|
|
1358
|
-
let e = await
|
|
1359
|
-
|
|
2562
|
+
async function Mn() {
|
|
2563
|
+
!t && N && await $(async () => {
|
|
2564
|
+
let e = await Q("/account/data", void 0, "DELETE");
|
|
2565
|
+
Dt && (await nn("visit", !1), Ot(!1)), en(), Y.current++, zt && we(localStorage, zt, null), _("measure"), O((e.dataErased ? "Service reports project content erased." : "Content deletion accepted; erasure is still pending.") + " " + (e.accountingPending ? "Accounting cleanup is still pending. " : "") + "Account identity, billing and required anti-abuse metadata are retained.");
|
|
1360
2566
|
});
|
|
1361
2567
|
}
|
|
1362
|
-
async function
|
|
1363
|
-
await
|
|
1364
|
-
let e =
|
|
1365
|
-
if (
|
|
1366
|
-
await
|
|
2568
|
+
async function Nn() {
|
|
2569
|
+
await $(async () => {
|
|
2570
|
+
let e = Y.current;
|
|
2571
|
+
if (R === "signup") {
|
|
2572
|
+
await Q("/account/signup", { email: ge }), O("Check your email for the verification link. No session is created until ownership is verified."), z("verify"), ve("");
|
|
1367
2573
|
return;
|
|
1368
2574
|
}
|
|
1369
|
-
let t = await
|
|
1370
|
-
token:
|
|
1371
|
-
password:
|
|
2575
|
+
let t = await Q(R === "verify" ? "/account/verification/complete" : "/account/login", R === "verify" ? {
|
|
2576
|
+
token: B,
|
|
2577
|
+
password: F
|
|
1372
2578
|
} : {
|
|
1373
|
-
email:
|
|
1374
|
-
password:
|
|
2579
|
+
email: ge,
|
|
2580
|
+
password: F
|
|
1375
2581
|
});
|
|
1376
|
-
if (
|
|
1377
|
-
|
|
2582
|
+
if (ve(""), V(""), !t.token) {
|
|
2583
|
+
z("login"), O("Email verified. Sign in to continue.");
|
|
1378
2584
|
return;
|
|
1379
2585
|
}
|
|
1380
|
-
let n = await
|
|
2586
|
+
let n = await $t("/session", { headers: { Authorization: "Bearer " + t.token } });
|
|
1381
2587
|
if (!n.ok) throw Error("The verified workspace could not be loaded.");
|
|
1382
2588
|
let r = await n.json();
|
|
1383
|
-
if (
|
|
1384
|
-
|
|
2589
|
+
if (Qt(e), typeof r.workspaceKey != "string" || !r.workspaceKey || r.workspaceKey.length > 512) throw Error("The verified workspace could not be loaded.");
|
|
2590
|
+
Lt.current && Lt.current !== r.workspaceKey && en(), Y.current++, It.current = t.token, Lt.current = r.workspaceKey, pe(t.token), G(r.workspaceKey), P(!1), O("Signed in. This session stays in memory only.");
|
|
1385
2591
|
});
|
|
1386
2592
|
}
|
|
1387
|
-
function
|
|
1388
|
-
|
|
1389
|
-
...
|
|
1390
|
-
footprint:
|
|
1391
|
-
}),
|
|
2593
|
+
function Pn() {
|
|
2594
|
+
ht?.input && (ut(!0), b({
|
|
2595
|
+
...y ?? Te(p),
|
|
2596
|
+
footprint: ht.input
|
|
2597
|
+
}), Qe(ht.reconciliation), bt(ht.input.edges.flatMap((e, t) => [`footprint.edges[${t}].lengthM`, ...e.bearingDegrees == null ? [] : [`footprint.edges[${t}].bearingDegrees`]])), vt(!0), Xe(!1), Le(null), _("measure"), O("Recognized outline is a local estimated preview. No project version or proposal was changed. Review every length, bearing and wall type before adoption."));
|
|
1392
2598
|
}
|
|
1393
|
-
function
|
|
1394
|
-
|
|
2599
|
+
function Fn(e) {
|
|
2600
|
+
Re(null), Be(""), He(e), _("measure"), O("Saved sanitized sketch selected. Reading it with AI is a separate explicit action.");
|
|
1395
2601
|
}
|
|
1396
|
-
async function
|
|
1397
|
-
|
|
1398
|
-
let r =
|
|
2602
|
+
async function In(e, n) {
|
|
2603
|
+
v && await $(async () => {
|
|
2604
|
+
let r = Y.current, i = await $t(`/projects/${v.projectId}/objects/${n.objectId}`, { headers: !t && N ? { Authorization: "Bearer " + N } : {} });
|
|
1399
2605
|
if (!i.ok) throw Error("Saved file is unavailable or expired.");
|
|
1400
2606
|
let a = await i.blob();
|
|
1401
|
-
|
|
2607
|
+
Qt(r);
|
|
1402
2608
|
let o = URL.createObjectURL(a), s = document.createElement("a");
|
|
1403
|
-
s.href = o, s.download =
|
|
2609
|
+
s.href = o, s.download = `${f === "karamentreprises" ? "karamentreprises" : "baulynq"}-${e.kind}${e.version ? "-v" + e.version : ""}.${n.format}`, s.click(), setTimeout(() => URL.revokeObjectURL(o), 1e3);
|
|
1404
2610
|
});
|
|
1405
2611
|
}
|
|
1406
|
-
|
|
1407
|
-
if (!
|
|
2612
|
+
i(() => {
|
|
2613
|
+
if (!v) return;
|
|
1408
2614
|
let e = !0;
|
|
1409
|
-
return
|
|
1410
|
-
e &&
|
|
2615
|
+
return Q(`/projects/${v.projectId}/artifacts`).then((t) => {
|
|
2616
|
+
e && St(Array.isArray(t) ? t : []);
|
|
1411
2617
|
}).catch(() => {
|
|
1412
|
-
e &&
|
|
2618
|
+
e && St([]);
|
|
1413
2619
|
}), () => {
|
|
1414
2620
|
e = !1;
|
|
1415
2621
|
};
|
|
1416
2622
|
}, [
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
2623
|
+
v?.projectId,
|
|
2624
|
+
v?.version,
|
|
2625
|
+
Ve
|
|
1420
2626
|
]);
|
|
1421
|
-
let
|
|
1422
|
-
return /* @__PURE__ */
|
|
2627
|
+
let Ln = oe === "measure" ? Ze?.values : Z?.values ?? qt?.reconciliation.values ?? Ze?.values, Rn = Z?.findings.reduce((e, t) => (e[t.status] = (e[t.status] ?? 0) + 1, e), {}) ?? {};
|
|
2628
|
+
return /* @__PURE__ */ u("div", {
|
|
1423
2629
|
className: "bim-studio",
|
|
1424
|
-
dir:
|
|
2630
|
+
dir: p === "ar" ? "rtl" : "ltr",
|
|
1425
2631
|
children: [
|
|
1426
|
-
!
|
|
2632
|
+
!t && /* @__PURE__ */ u("header", { children: [/* @__PURE__ */ l("a", {
|
|
1427
2633
|
className: "logo",
|
|
1428
2634
|
href: "/",
|
|
1429
2635
|
onClick: (e) => {
|
|
1430
|
-
e.preventDefault(),
|
|
2636
|
+
e.preventDefault(), on("home");
|
|
1431
2637
|
},
|
|
1432
|
-
children: /* @__PURE__ */
|
|
1433
|
-
}), /* @__PURE__ */
|
|
1434
|
-
/* @__PURE__ */
|
|
2638
|
+
children: /* @__PURE__ */ l(Ae, {})
|
|
2639
|
+
}), /* @__PURE__ */ u("nav", { children: [
|
|
2640
|
+
/* @__PURE__ */ l("a", {
|
|
1435
2641
|
href: "/#pricing",
|
|
1436
|
-
onClick: () =>
|
|
1437
|
-
children:
|
|
2642
|
+
onClick: () => ie !== "home" && on("home"),
|
|
2643
|
+
children: X.pricing
|
|
1438
2644
|
}),
|
|
1439
|
-
/* @__PURE__ */
|
|
1440
|
-
"aria-label":
|
|
1441
|
-
value:
|
|
1442
|
-
onChange: (e) =>
|
|
2645
|
+
/* @__PURE__ */ l("select", {
|
|
2646
|
+
"aria-label": X.language,
|
|
2647
|
+
value: p,
|
|
2648
|
+
onChange: (e) => h(e.target.value),
|
|
1443
2649
|
children: [
|
|
1444
2650
|
"en",
|
|
1445
2651
|
"de",
|
|
1446
2652
|
"fr",
|
|
1447
2653
|
"ar"
|
|
1448
|
-
].map((e) => /* @__PURE__ */
|
|
2654
|
+
].map((e) => /* @__PURE__ */ l("option", {
|
|
1449
2655
|
value: e,
|
|
1450
2656
|
children: e.toUpperCase()
|
|
1451
2657
|
}, e))
|
|
1452
2658
|
}),
|
|
1453
|
-
/* @__PURE__ */
|
|
2659
|
+
/* @__PURE__ */ l("button", {
|
|
1454
2660
|
className: "quiet account-action",
|
|
1455
|
-
disabled:
|
|
1456
|
-
onClick: () =>
|
|
1457
|
-
children:
|
|
2661
|
+
disabled: C,
|
|
2662
|
+
onClick: () => N ? on("studio") : P(!0),
|
|
2663
|
+
children: N ? X.account : X.signin
|
|
1458
2664
|
}),
|
|
1459
|
-
|
|
2665
|
+
N && /* @__PURE__ */ u("div", {
|
|
1460
2666
|
className: "account-options",
|
|
1461
|
-
children: [/* @__PURE__ */
|
|
2667
|
+
children: [/* @__PURE__ */ l("button", {
|
|
1462
2668
|
className: "quiet",
|
|
1463
|
-
"aria-label":
|
|
1464
|
-
"aria-expanded":
|
|
2669
|
+
"aria-label": g(p, "Account options"),
|
|
2670
|
+
"aria-expanded": pt,
|
|
1465
2671
|
"aria-controls": "bim-account-actions",
|
|
1466
|
-
disabled:
|
|
1467
|
-
onClick: () =>
|
|
2672
|
+
disabled: C,
|
|
2673
|
+
onClick: () => mt(!pt),
|
|
1468
2674
|
children: "⋯"
|
|
1469
|
-
}),
|
|
2675
|
+
}), pt && /* @__PURE__ */ u("div", {
|
|
1470
2676
|
id: "bim-account-actions",
|
|
1471
2677
|
role: "group",
|
|
1472
|
-
"aria-label":
|
|
2678
|
+
"aria-label": g(p, "Account actions"),
|
|
1473
2679
|
className: "account-actions",
|
|
1474
2680
|
onKeyDown: (e) => {
|
|
1475
|
-
e.key === "Escape" && (
|
|
2681
|
+
e.key === "Escape" && (mt(!1), e.currentTarget.parentElement?.querySelector("button")?.focus());
|
|
1476
2682
|
},
|
|
1477
|
-
children: [/* @__PURE__ */
|
|
2683
|
+
children: [/* @__PURE__ */ l("button", {
|
|
1478
2684
|
className: "quiet full",
|
|
1479
|
-
disabled:
|
|
2685
|
+
disabled: C,
|
|
1480
2686
|
onClick: () => {
|
|
1481
|
-
|
|
2687
|
+
mt(!1), ft(!0);
|
|
1482
2688
|
},
|
|
1483
|
-
children:
|
|
1484
|
-
}), /* @__PURE__ */
|
|
2689
|
+
children: g(p, "Delete project content")
|
|
2690
|
+
}), /* @__PURE__ */ l("button", {
|
|
1485
2691
|
className: "quiet full",
|
|
1486
|
-
disabled:
|
|
1487
|
-
onClick:
|
|
1488
|
-
children:
|
|
2692
|
+
disabled: C,
|
|
2693
|
+
onClick: Sn,
|
|
2694
|
+
children: g(p, "Sign out")
|
|
1489
2695
|
})]
|
|
1490
2696
|
})]
|
|
1491
2697
|
}),
|
|
1492
|
-
/* @__PURE__ */
|
|
2698
|
+
/* @__PURE__ */ u("button", {
|
|
1493
2699
|
className: "ink",
|
|
1494
|
-
onClick: () =>
|
|
1495
|
-
children: [
|
|
2700
|
+
onClick: () => on("studio"),
|
|
2701
|
+
children: [X.studio, /* @__PURE__ */ l(U, {})]
|
|
1496
2702
|
})
|
|
1497
2703
|
] })] }),
|
|
1498
|
-
|
|
2704
|
+
ie === "home" ? /* @__PURE__ */ u("main", {
|
|
1499
2705
|
className: "landing",
|
|
1500
2706
|
children: [
|
|
1501
|
-
/* @__PURE__ */
|
|
2707
|
+
/* @__PURE__ */ u("section", {
|
|
1502
2708
|
className: "hero",
|
|
1503
2709
|
children: [
|
|
1504
|
-
/* @__PURE__ */
|
|
2710
|
+
/* @__PURE__ */ u("span", {
|
|
1505
2711
|
className: "eyebrow",
|
|
1506
2712
|
children: [
|
|
1507
|
-
|
|
2713
|
+
X.eyebrow,
|
|
1508
2714
|
" ",
|
|
1509
|
-
/* @__PURE__ */
|
|
2715
|
+
/* @__PURE__ */ l("span", { children: "01 — VISION" })
|
|
1510
2716
|
]
|
|
1511
2717
|
}),
|
|
1512
|
-
/* @__PURE__ */
|
|
1513
|
-
/* @__PURE__ */
|
|
1514
|
-
/* @__PURE__ */
|
|
2718
|
+
/* @__PURE__ */ l("h1", { children: X.hero }),
|
|
2719
|
+
/* @__PURE__ */ l("p", { children: X.intro }),
|
|
2720
|
+
/* @__PURE__ */ u("div", {
|
|
1515
2721
|
className: "actions",
|
|
1516
|
-
children: [/* @__PURE__ */
|
|
2722
|
+
children: [/* @__PURE__ */ u("button", {
|
|
1517
2723
|
className: "ink large",
|
|
1518
|
-
onClick: () =>
|
|
1519
|
-
children: [
|
|
1520
|
-
}),
|
|
2724
|
+
onClick: () => on("studio"),
|
|
2725
|
+
children: [X.start, /* @__PURE__ */ l(U, {})]
|
|
2726
|
+
}), I.mode === "local-demo" ? /* @__PURE__ */ u("button", {
|
|
1521
2727
|
className: "textbtn",
|
|
1522
|
-
onClick:
|
|
1523
|
-
children: [
|
|
1524
|
-
}) : /* @__PURE__ */
|
|
2728
|
+
onClick: cn,
|
|
2729
|
+
children: [X.try, " →"]
|
|
2730
|
+
}) : /* @__PURE__ */ u("button", {
|
|
1525
2731
|
className: "textbtn",
|
|
1526
|
-
onClick: () =>
|
|
1527
|
-
children: [
|
|
2732
|
+
onClick: () => sn(),
|
|
2733
|
+
children: [g(p, "Enter measurements"), " →"]
|
|
1528
2734
|
})]
|
|
1529
2735
|
}),
|
|
1530
|
-
/* @__PURE__ */
|
|
2736
|
+
/* @__PURE__ */ u("div", {
|
|
1531
2737
|
className: "proof",
|
|
1532
|
-
children: [/* @__PURE__ */
|
|
2738
|
+
children: [/* @__PURE__ */ l("span", { className: "dot" }), "Your measurements. Checked geometry. One shared engine."]
|
|
1533
2739
|
})
|
|
1534
2740
|
]
|
|
1535
2741
|
}),
|
|
1536
|
-
/* @__PURE__ */
|
|
2742
|
+
/* @__PURE__ */ u("section", {
|
|
1537
2743
|
className: "transformation",
|
|
1538
2744
|
children: [
|
|
1539
|
-
/* @__PURE__ */
|
|
2745
|
+
/* @__PURE__ */ u("article", {
|
|
1540
2746
|
className: "sketch-card",
|
|
1541
2747
|
children: [
|
|
1542
|
-
/* @__PURE__ */
|
|
2748
|
+
/* @__PURE__ */ u("div", {
|
|
1543
2749
|
className: "card-title",
|
|
1544
|
-
children: [/* @__PURE__ */
|
|
2750
|
+
children: [/* @__PURE__ */ l("span", { children: "01 / SKETCH" }), /* @__PURE__ */ l("span", { children: "THE STARTING POINT" })]
|
|
1545
2751
|
}),
|
|
1546
|
-
/* @__PURE__ */
|
|
1547
|
-
/* @__PURE__ */
|
|
2752
|
+
/* @__PURE__ */ l(W, {}),
|
|
2753
|
+
/* @__PURE__ */ l("h3", { children: X.before })
|
|
1548
2754
|
]
|
|
1549
2755
|
}),
|
|
1550
|
-
/* @__PURE__ */
|
|
2756
|
+
/* @__PURE__ */ l("div", {
|
|
1551
2757
|
className: "flow-arrow",
|
|
1552
2758
|
children: "→"
|
|
1553
2759
|
}),
|
|
1554
|
-
/* @__PURE__ */
|
|
2760
|
+
/* @__PURE__ */ u("article", {
|
|
1555
2761
|
className: "plan-card",
|
|
1556
2762
|
children: [
|
|
1557
|
-
/* @__PURE__ */
|
|
2763
|
+
/* @__PURE__ */ u("div", {
|
|
1558
2764
|
className: "card-title",
|
|
1559
|
-
children: [/* @__PURE__ */
|
|
2765
|
+
children: [/* @__PURE__ */ l("span", { children: "02 / POSSIBILITIES" }), /* @__PURE__ */ l("span", {
|
|
1560
2766
|
className: "teal",
|
|
1561
2767
|
children: "CHECKED BY THE ENGINE"
|
|
1562
2768
|
})]
|
|
1563
2769
|
}),
|
|
1564
|
-
/* @__PURE__ */
|
|
2770
|
+
/* @__PURE__ */ l("div", {
|
|
1565
2771
|
className: "mini-plan",
|
|
1566
|
-
children: /* @__PURE__ */
|
|
2772
|
+
children: /* @__PURE__ */ l("img", {
|
|
1567
2773
|
src: "/reference-plan.svg",
|
|
1568
2774
|
alt: "Engine-generated reference layout A with checked dimensions"
|
|
1569
2775
|
})
|
|
1570
2776
|
}),
|
|
1571
|
-
/* @__PURE__ */
|
|
1572
|
-
|
|
2777
|
+
/* @__PURE__ */ l("h3", { children: X.after }),
|
|
2778
|
+
I.mode === "local-demo" ? /* @__PURE__ */ u("button", {
|
|
1573
2779
|
className: "textbtn",
|
|
1574
|
-
onClick:
|
|
1575
|
-
children: [
|
|
1576
|
-
}) : /* @__PURE__ */
|
|
2780
|
+
onClick: cn,
|
|
2781
|
+
children: [X.try, " ↗"]
|
|
2782
|
+
}) : /* @__PURE__ */ u("button", {
|
|
1577
2783
|
className: "textbtn",
|
|
1578
|
-
onClick: () =>
|
|
1579
|
-
children: [
|
|
2784
|
+
onClick: () => sn(),
|
|
2785
|
+
children: [g(p, "Enter measurements"), " ↗"]
|
|
1580
2786
|
})
|
|
1581
2787
|
]
|
|
1582
2788
|
})
|
|
1583
2789
|
]
|
|
1584
2790
|
}),
|
|
1585
|
-
/* @__PURE__ */
|
|
2791
|
+
/* @__PURE__ */ l("section", {
|
|
1586
2792
|
className: "process",
|
|
1587
|
-
children:
|
|
1588
|
-
/* @__PURE__ */
|
|
1589
|
-
/* @__PURE__ */
|
|
1590
|
-
/* @__PURE__ */
|
|
2793
|
+
children: X.steps.map((e, t) => /* @__PURE__ */ u("div", { children: [
|
|
2794
|
+
/* @__PURE__ */ u("span", { children: ["0", t + 1] }),
|
|
2795
|
+
/* @__PURE__ */ l("h3", { children: e }),
|
|
2796
|
+
/* @__PURE__ */ l("p", { children: [
|
|
1591
2797
|
"A drawing or photo, with dimensions.",
|
|
1592
2798
|
"Confirm dimensions and fixed constraints.",
|
|
1593
2799
|
"Compare different ways to use your space.",
|
|
@@ -1595,915 +2801,951 @@ function De({ embedded: e = !1, transport: t, initialInput: n, workspaceKey: s,
|
|
|
1595
2801
|
][t] })
|
|
1596
2802
|
] }, e))
|
|
1597
2803
|
}),
|
|
1598
|
-
/* @__PURE__ */
|
|
2804
|
+
/* @__PURE__ */ u("section", {
|
|
1599
2805
|
className: "use-case-links",
|
|
1600
2806
|
children: [
|
|
1601
|
-
/* @__PURE__ */
|
|
1602
|
-
/* @__PURE__ */
|
|
2807
|
+
/* @__PURE__ */ l("h2", { children: g(p, "Plan your next space") }),
|
|
2808
|
+
/* @__PURE__ */ u("a", {
|
|
1603
2809
|
href: "/apartment-layout/",
|
|
1604
|
-
children: [
|
|
2810
|
+
children: [g(p, "Apartment layout"), " ↗"]
|
|
1605
2811
|
}),
|
|
1606
|
-
/* @__PURE__ */
|
|
2812
|
+
/* @__PURE__ */ u("a", {
|
|
1607
2813
|
href: "/house-extension/",
|
|
1608
|
-
children: [
|
|
2814
|
+
children: [g(p, "House extension"), " ↗"]
|
|
1609
2815
|
}),
|
|
1610
|
-
/* @__PURE__ */
|
|
2816
|
+
/* @__PURE__ */ u("a", {
|
|
1611
2817
|
href: "/renovation/",
|
|
1612
|
-
children: [
|
|
2818
|
+
children: [g(p, "Renovation"), " ↗"]
|
|
1613
2819
|
})
|
|
1614
2820
|
]
|
|
1615
2821
|
}),
|
|
1616
|
-
/* @__PURE__ */
|
|
2822
|
+
/* @__PURE__ */ u("section", {
|
|
1617
2823
|
className: "price-section",
|
|
1618
2824
|
id: "pricing",
|
|
1619
|
-
children: [/* @__PURE__ */
|
|
1620
|
-
/* @__PURE__ */
|
|
2825
|
+
children: [/* @__PURE__ */ u("div", { children: [
|
|
2826
|
+
/* @__PURE__ */ l("span", {
|
|
1621
2827
|
className: "eyebrow",
|
|
1622
2828
|
children: "A CLEAR START"
|
|
1623
2829
|
}),
|
|
1624
|
-
/* @__PURE__ */
|
|
2830
|
+
/* @__PURE__ */ u("h2", { children: [
|
|
1625
2831
|
"A small project.",
|
|
1626
|
-
/* @__PURE__ */
|
|
2832
|
+
/* @__PURE__ */ l("br", {}),
|
|
1627
2833
|
"A useful next step."
|
|
1628
2834
|
] }),
|
|
1629
|
-
/* @__PURE__ */
|
|
1630
|
-
] }), /* @__PURE__ */
|
|
2835
|
+
/* @__PURE__ */ l("p", { children: "Free access is included in KEHBIMVISION and BauLynq BIM, within each app’s AI usage limits." })
|
|
2836
|
+
] }), /* @__PURE__ */ u("article", {
|
|
1631
2837
|
className: "price-card",
|
|
1632
2838
|
children: [
|
|
1633
|
-
/* @__PURE__ */
|
|
2839
|
+
/* @__PURE__ */ l("span", {
|
|
1634
2840
|
className: "eyebrow",
|
|
1635
|
-
children:
|
|
2841
|
+
children: f === "karamentreprises" ? "KARAMENTREPRISES BIM" : "BAULYNQ VISION"
|
|
1636
2842
|
}),
|
|
1637
|
-
/* @__PURE__ */
|
|
1638
|
-
/* @__PURE__ */
|
|
1639
|
-
/* @__PURE__ */
|
|
1640
|
-
/* @__PURE__ */
|
|
1641
|
-
|
|
2843
|
+
/* @__PURE__ */ l("h2", { children: Jt ?? "Pricing opens with the service" }),
|
|
2844
|
+
/* @__PURE__ */ l("small", { children: "Base pricing. Your project quote is shown before purchase." }),
|
|
2845
|
+
/* @__PURE__ */ l("p", { children: Yt ? `${Yt.proposals} free proposal generations · ${Yt.exports} BIM exports` : "The local preview does not accept payments." }),
|
|
2846
|
+
/* @__PURE__ */ l("p", { children: "One project includes proposals, refinements and its model export." }),
|
|
2847
|
+
Zt && /* @__PURE__ */ u("p", { children: [
|
|
1642
2848
|
"After the initial proposal request: ",
|
|
1643
|
-
|
|
2849
|
+
Zt.regenerations,
|
|
1644
2850
|
" regenerations · ",
|
|
1645
|
-
|
|
2851
|
+
Zt.chat,
|
|
1646
2852
|
" chat refinements · ",
|
|
1647
|
-
|
|
2853
|
+
Zt.exports,
|
|
1648
2854
|
" ",
|
|
1649
|
-
|
|
2855
|
+
Zt.exports === 1 ? "BIM export" : "BIM exports",
|
|
1650
2856
|
" per paid project."
|
|
1651
2857
|
] }),
|
|
1652
|
-
/* @__PURE__ */
|
|
2858
|
+
/* @__PURE__ */ u("button", {
|
|
1653
2859
|
className: "ink",
|
|
1654
|
-
onClick: () =>
|
|
1655
|
-
children: [
|
|
2860
|
+
onClick: () => on("studio"),
|
|
2861
|
+
children: [X.start, /* @__PURE__ */ l(U, {})]
|
|
1656
2862
|
})
|
|
1657
2863
|
]
|
|
1658
2864
|
})]
|
|
1659
2865
|
}),
|
|
1660
|
-
/* @__PURE__ */
|
|
2866
|
+
/* @__PURE__ */ u("footer", { children: [/* @__PURE__ */ l(Ae, {}), /* @__PURE__ */ l("span", { children: X.disclaimer })] })
|
|
1661
2867
|
]
|
|
1662
|
-
}) : /* @__PURE__ */
|
|
2868
|
+
}) : /* @__PURE__ */ u("main", {
|
|
1663
2869
|
className: "studio",
|
|
1664
2870
|
children: [
|
|
1665
|
-
/* @__PURE__ */
|
|
2871
|
+
/* @__PURE__ */ u("aside", {
|
|
1666
2872
|
className: "rail",
|
|
1667
2873
|
children: [
|
|
1668
|
-
/* @__PURE__ */
|
|
2874
|
+
/* @__PURE__ */ l("span", {
|
|
1669
2875
|
className: "eyebrow",
|
|
1670
2876
|
children: "WORKSPACE"
|
|
1671
2877
|
}),
|
|
1672
|
-
/* @__PURE__ */
|
|
1673
|
-
/* @__PURE__ */
|
|
2878
|
+
/* @__PURE__ */ l("h2", { children: X.workspace }),
|
|
2879
|
+
/* @__PURE__ */ u("span", {
|
|
1674
2880
|
className: "project-status",
|
|
1675
|
-
children: [/* @__PURE__ */
|
|
2881
|
+
children: [/* @__PURE__ */ l("span", { className: "dot" }), I.mode === "local-demo" ? "Local reference preview" : "Private project"]
|
|
1676
2882
|
}),
|
|
1677
|
-
/* @__PURE__ */
|
|
2883
|
+
/* @__PURE__ */ l("div", {
|
|
1678
2884
|
className: "stage-nav",
|
|
1679
2885
|
children: [
|
|
1680
2886
|
"measure",
|
|
1681
2887
|
"proposals",
|
|
1682
2888
|
"refine",
|
|
1683
2889
|
"download"
|
|
1684
|
-
].map((e, t) => /* @__PURE__ */
|
|
1685
|
-
className:
|
|
1686
|
-
|
|
1687
|
-
|
|
2890
|
+
].map((e, t) => /* @__PURE__ */ u("button", {
|
|
2891
|
+
className: oe === e ? "active" : "",
|
|
2892
|
+
disabled: C,
|
|
2893
|
+
onClick: () => _(e),
|
|
2894
|
+
children: [/* @__PURE__ */ u("span", { children: ["0", t + 1] }), X[e]]
|
|
1688
2895
|
}, e))
|
|
1689
2896
|
}),
|
|
1690
|
-
/* @__PURE__ */
|
|
2897
|
+
/* @__PURE__ */ u("div", {
|
|
1691
2898
|
className: "rail-bottom",
|
|
1692
2899
|
children: [
|
|
1693
|
-
/* @__PURE__ */
|
|
1694
|
-
typeof
|
|
2900
|
+
/* @__PURE__ */ l("p", { children: X.privacy }),
|
|
2901
|
+
typeof I.retentionDays == "number" && /* @__PURE__ */ u("p", { children: [
|
|
1695
2902
|
"Retention: ",
|
|
1696
|
-
|
|
2903
|
+
I.retentionDays,
|
|
1697
2904
|
" days, as configured by the service."
|
|
1698
2905
|
] }),
|
|
1699
|
-
|
|
2906
|
+
v && /* @__PURE__ */ l("button", {
|
|
1700
2907
|
className: "quiet danger",
|
|
1701
|
-
onClick:
|
|
1702
|
-
children:
|
|
2908
|
+
onClick: jn,
|
|
2909
|
+
children: X.delete
|
|
1703
2910
|
})
|
|
1704
2911
|
]
|
|
1705
2912
|
})
|
|
1706
2913
|
]
|
|
1707
2914
|
}),
|
|
1708
|
-
/* @__PURE__ */
|
|
2915
|
+
/* @__PURE__ */ u("section", {
|
|
1709
2916
|
className: "workspace",
|
|
1710
2917
|
children: [
|
|
1711
|
-
/* @__PURE__ */
|
|
2918
|
+
/* @__PURE__ */ u("div", {
|
|
1712
2919
|
className: "workspace-heading",
|
|
1713
|
-
children: [/* @__PURE__ */
|
|
2920
|
+
children: [/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ l("span", {
|
|
1714
2921
|
className: "eyebrow",
|
|
1715
|
-
children:
|
|
1716
|
-
}), /* @__PURE__ */
|
|
2922
|
+
children: v ? `VERSION ${v.version} / ${v.projectId.slice(0, 8)}` : "YOUR NEXT SPACE"
|
|
2923
|
+
}), /* @__PURE__ */ l("h1", { children: X[oe] })] }), /* @__PURE__ */ u("div", {
|
|
1717
2924
|
className: "workspace-controls",
|
|
1718
2925
|
children: [
|
|
1719
|
-
|
|
1720
|
-
"aria-label":
|
|
1721
|
-
value:
|
|
1722
|
-
onChange: (e) =>
|
|
2926
|
+
t && /* @__PURE__ */ l("select", {
|
|
2927
|
+
"aria-label": X.language,
|
|
2928
|
+
value: p,
|
|
2929
|
+
onChange: (e) => h(e.target.value),
|
|
1723
2930
|
children: [
|
|
1724
2931
|
"en",
|
|
1725
2932
|
"de",
|
|
1726
2933
|
"fr",
|
|
1727
2934
|
"ar"
|
|
1728
|
-
].map((e) => /* @__PURE__ */
|
|
2935
|
+
].map((e) => /* @__PURE__ */ l("option", {
|
|
1729
2936
|
value: e,
|
|
1730
2937
|
children: e.toUpperCase()
|
|
1731
2938
|
}, e))
|
|
1732
2939
|
}),
|
|
1733
|
-
/* @__PURE__ */
|
|
2940
|
+
/* @__PURE__ */ l("button", {
|
|
1734
2941
|
className: "quiet",
|
|
1735
|
-
disabled:
|
|
1736
|
-
onClick: () =>
|
|
1737
|
-
children:
|
|
2942
|
+
disabled: C,
|
|
2943
|
+
onClick: () => sn(),
|
|
2944
|
+
children: g(p, "New project")
|
|
1738
2945
|
}),
|
|
1739
|
-
|
|
2946
|
+
v && /* @__PURE__ */ l("button", {
|
|
1740
2947
|
className: "quiet compact-delete",
|
|
1741
2948
|
"aria-label": "Delete current project",
|
|
1742
|
-
disabled:
|
|
1743
|
-
onClick:
|
|
1744
|
-
children:
|
|
2949
|
+
disabled: C,
|
|
2950
|
+
onClick: jn,
|
|
2951
|
+
children: X.delete
|
|
1745
2952
|
}),
|
|
1746
|
-
|
|
2953
|
+
v && /* @__PURE__ */ u("button", {
|
|
1747
2954
|
className: "outline",
|
|
1748
|
-
disabled:
|
|
1749
|
-
onClick: () =>
|
|
1750
|
-
|
|
1751
|
-
expectedVersion:
|
|
1752
|
-
targetVersion:
|
|
1753
|
-
operationId:
|
|
2955
|
+
disabled: C || !!q || v.version < 2,
|
|
2956
|
+
onClick: () => $(async () => {
|
|
2957
|
+
an(await Q(`/projects/${v.projectId}/undo`, {
|
|
2958
|
+
expectedVersion: v.version,
|
|
2959
|
+
targetVersion: v.version - 1,
|
|
2960
|
+
operationId: H()
|
|
1754
2961
|
}));
|
|
1755
2962
|
}),
|
|
1756
|
-
children: ["↶ ",
|
|
2963
|
+
children: ["↶ ", X.undo]
|
|
1757
2964
|
})
|
|
1758
2965
|
]
|
|
1759
2966
|
})]
|
|
1760
2967
|
}),
|
|
1761
|
-
|
|
2968
|
+
le && /* @__PURE__ */ u("div", {
|
|
1762
2969
|
role: "alert",
|
|
1763
2970
|
className: "alert",
|
|
1764
|
-
children: [
|
|
1765
|
-
"aria-label":
|
|
1766
|
-
onClick: () =>
|
|
2971
|
+
children: [f === "karamentreprises" ? le.replace(/Polycyphers/gi, "Karamentreprises") : le, /* @__PURE__ */ l("button", {
|
|
2972
|
+
"aria-label": X.close,
|
|
2973
|
+
onClick: () => T(""),
|
|
1767
2974
|
children: "×"
|
|
1768
2975
|
})]
|
|
1769
2976
|
}),
|
|
1770
|
-
|
|
2977
|
+
ue && /* @__PURE__ */ u("div", {
|
|
1771
2978
|
role: "status",
|
|
1772
2979
|
className: "notice",
|
|
1773
|
-
children: [
|
|
1774
|
-
"aria-label":
|
|
1775
|
-
onClick: () =>
|
|
2980
|
+
children: [ue, /* @__PURE__ */ l("button", {
|
|
2981
|
+
"aria-label": X.close,
|
|
2982
|
+
onClick: () => O(""),
|
|
1776
2983
|
children: "×"
|
|
1777
2984
|
})]
|
|
1778
2985
|
}),
|
|
1779
|
-
|
|
2986
|
+
q && /* @__PURE__ */ l("section", {
|
|
1780
2987
|
className: "notice preview-banner",
|
|
1781
2988
|
role: "status",
|
|
1782
|
-
children: /* @__PURE__ */
|
|
1783
|
-
/* @__PURE__ */
|
|
1784
|
-
/* @__PURE__ */
|
|
2989
|
+
children: /* @__PURE__ */ u("div", { children: [
|
|
2990
|
+
/* @__PURE__ */ l("strong", { children: g(p, "Unsaved edit preview") }),
|
|
2991
|
+
/* @__PURE__ */ u("p", { children: [
|
|
1785
2992
|
"Review the recomputed plan, schedule and rule findings below. Your saved version ",
|
|
1786
|
-
|
|
2993
|
+
v?.version,
|
|
1787
2994
|
" is unchanged."
|
|
1788
2995
|
] }),
|
|
1789
|
-
/* @__PURE__ */
|
|
2996
|
+
/* @__PURE__ */ l("button", {
|
|
1790
2997
|
className: "ink",
|
|
1791
|
-
disabled:
|
|
1792
|
-
onClick:
|
|
1793
|
-
children:
|
|
2998
|
+
disabled: C || !De(q, v),
|
|
2999
|
+
onClick: mn,
|
|
3000
|
+
children: g(p, "Apply as new version")
|
|
1794
3001
|
}),
|
|
1795
|
-
/* @__PURE__ */
|
|
3002
|
+
/* @__PURE__ */ l("button", {
|
|
1796
3003
|
className: "outline",
|
|
1797
|
-
disabled:
|
|
1798
|
-
onClick: () =>
|
|
1799
|
-
children:
|
|
3004
|
+
disabled: C,
|
|
3005
|
+
onClick: () => Le(null),
|
|
3006
|
+
children: g(p, "Discard preview")
|
|
1800
3007
|
})
|
|
1801
3008
|
] })
|
|
1802
3009
|
}),
|
|
1803
|
-
!
|
|
3010
|
+
!v && !y ? /* @__PURE__ */ u("div", {
|
|
1804
3011
|
className: "empty",
|
|
1805
3012
|
children: [
|
|
1806
|
-
/* @__PURE__ */
|
|
3013
|
+
/* @__PURE__ */ l("span", {
|
|
1807
3014
|
className: "empty-icon",
|
|
1808
3015
|
children: "⌑"
|
|
1809
3016
|
}),
|
|
1810
|
-
/* @__PURE__ */
|
|
1811
|
-
/* @__PURE__ */
|
|
1812
|
-
/* @__PURE__ */
|
|
3017
|
+
/* @__PURE__ */ l("h2", { children: X.empty }),
|
|
3018
|
+
/* @__PURE__ */ l("p", { children: X.emptyBody }),
|
|
3019
|
+
/* @__PURE__ */ u("div", {
|
|
1813
3020
|
className: "actions",
|
|
1814
|
-
children: [/* @__PURE__ */
|
|
3021
|
+
children: [/* @__PURE__ */ u("button", {
|
|
1815
3022
|
className: "ink large",
|
|
1816
|
-
disabled:
|
|
1817
|
-
onClick: () =>
|
|
1818
|
-
children: [
|
|
1819
|
-
}), /* @__PURE__ */
|
|
3023
|
+
disabled: C,
|
|
3024
|
+
onClick: () => Nt.current?.click(),
|
|
3025
|
+
children: [X.upload, /* @__PURE__ */ l(U, {})]
|
|
3026
|
+
}), /* @__PURE__ */ l("button", {
|
|
1820
3027
|
className: "outline",
|
|
1821
|
-
disabled:
|
|
1822
|
-
onClick: () =>
|
|
1823
|
-
children:
|
|
3028
|
+
disabled: C,
|
|
3029
|
+
onClick: () => sn(),
|
|
3030
|
+
children: g(p, "Enter measurements")
|
|
1824
3031
|
})]
|
|
1825
3032
|
}),
|
|
1826
|
-
|
|
3033
|
+
Fe && /* @__PURE__ */ l("button", {
|
|
1827
3034
|
className: "outline",
|
|
1828
|
-
disabled:
|
|
1829
|
-
onClick: () =>
|
|
1830
|
-
let e = await
|
|
1831
|
-
|
|
3035
|
+
disabled: C,
|
|
3036
|
+
onClick: () => $(async () => {
|
|
3037
|
+
let e = await Q("/projects/" + Fe);
|
|
3038
|
+
an(e), _(e.input.isDraft ? "measure" : "proposals");
|
|
1832
3039
|
}),
|
|
1833
|
-
children:
|
|
3040
|
+
children: g(p, "Resume saved project")
|
|
1834
3041
|
}),
|
|
1835
|
-
|
|
3042
|
+
I.mode === "local-demo" && /* @__PURE__ */ l("button", {
|
|
1836
3043
|
className: "textbtn",
|
|
1837
|
-
disabled:
|
|
1838
|
-
onClick:
|
|
1839
|
-
children:
|
|
3044
|
+
disabled: C,
|
|
3045
|
+
onClick: cn,
|
|
3046
|
+
children: X.try
|
|
1840
3047
|
})
|
|
1841
3048
|
]
|
|
1842
|
-
}) :
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
3049
|
+
}) : Bt ? /* @__PURE__ */ u("section", {
|
|
3050
|
+
className: "paper consent-panel",
|
|
3051
|
+
children: [
|
|
3052
|
+
/* @__PURE__ */ l("h2", { children: {
|
|
3053
|
+
en: "Review an existing plan",
|
|
3054
|
+
de: "Bestehenden Plan prüfen",
|
|
3055
|
+
fr: "Vérifier un plan existant",
|
|
3056
|
+
ar: "مراجعة مخطط قائم"
|
|
3057
|
+
}[p] }),
|
|
3058
|
+
/* @__PURE__ */ l("p", { children: {
|
|
3059
|
+
en: "Preserve the supplied geometry. Image observations never become confirmed metric dimensions automatically.",
|
|
3060
|
+
de: "Die vorgegebene Geometrie bleibt erhalten. Bildbeobachtungen werden nie automatisch zu bestätigten metrischen Maßen.",
|
|
3061
|
+
fr: "Conserver la géométrie fournie. Les observations d’image ne deviennent jamais automatiquement des mesures métriques confirmées.",
|
|
3062
|
+
ar: "احفظ الهندسة المقدمة. لا تتحول ملاحظات الصورة تلقائياً إلى قياسات مترية مؤكدة."
|
|
3063
|
+
}[p] }),
|
|
3064
|
+
/* @__PURE__ */ l("button", {
|
|
3065
|
+
className: "outline",
|
|
3066
|
+
disabled: C || Ht.busy,
|
|
3067
|
+
onClick: () => Nt.current?.click(),
|
|
3068
|
+
children: X.upload
|
|
3069
|
+
}),
|
|
3070
|
+
ze && /* @__PURE__ */ l("img", {
|
|
3071
|
+
src: ze,
|
|
3072
|
+
alt: "Local source image preview",
|
|
3073
|
+
style: {
|
|
3074
|
+
maxWidth: "100%",
|
|
3075
|
+
maxHeight: 350
|
|
3076
|
+
}
|
|
3077
|
+
}),
|
|
3078
|
+
J && !Ve && On()
|
|
3079
|
+
]
|
|
3080
|
+
}) : oe === "measure" && y ? /* @__PURE__ */ u(c, { children: [
|
|
3081
|
+
/* @__PURE__ */ l(K, {
|
|
3082
|
+
language: p,
|
|
3083
|
+
input: y,
|
|
3084
|
+
setInput: b,
|
|
1847
3085
|
onChange: (e) => {
|
|
1848
|
-
|
|
3086
|
+
ut(!0), Xe(!1), Le(null), Qe((t) => e === "footprint.diagonals" && t ? {
|
|
3087
|
+
status: "Unvalidated",
|
|
3088
|
+
findings: [],
|
|
3089
|
+
suggestedDiagonal: t.suggestedDiagonal
|
|
3090
|
+
} : null), e && bt((t) => t.filter((t) => t !== e));
|
|
1849
3091
|
},
|
|
1850
|
-
estimatedFields:
|
|
1851
|
-
confirmed:
|
|
1852
|
-
setConfirmed:
|
|
1853
|
-
onGenerate:
|
|
1854
|
-
busy:
|
|
1855
|
-
onUpload: () =>
|
|
1856
|
-
imageUrl:
|
|
1857
|
-
geometry:
|
|
3092
|
+
estimatedFields: yt,
|
|
3093
|
+
confirmed: Ye,
|
|
3094
|
+
setConfirmed: Xe,
|
|
3095
|
+
onGenerate: fn,
|
|
3096
|
+
busy: C,
|
|
3097
|
+
onUpload: () => Nt.current?.click(),
|
|
3098
|
+
imageUrl: ze,
|
|
3099
|
+
geometry: Ze
|
|
1858
3100
|
}),
|
|
1859
|
-
|
|
3101
|
+
J && !Ve && On(),
|
|
3102
|
+
Ve && /* @__PURE__ */ u("section", {
|
|
1860
3103
|
className: "paper consent-panel",
|
|
1861
3104
|
children: [
|
|
1862
|
-
/* @__PURE__ */
|
|
1863
|
-
/* @__PURE__ */
|
|
1864
|
-
/* @__PURE__ */ p("label", {
|
|
1865
|
-
className: "confirmation",
|
|
1866
|
-
children: [/* @__PURE__ */ f("input", {
|
|
1867
|
-
type: "checkbox",
|
|
1868
|
-
checked: Ke,
|
|
1869
|
-
onChange: (e) => qe(e.target.checked)
|
|
1870
|
-
}), _(l, "I have permission to use this image for this project.")]
|
|
1871
|
-
}),
|
|
1872
|
-
/* @__PURE__ */ p("label", {
|
|
1873
|
-
className: "confirmation",
|
|
1874
|
-
children: [/* @__PURE__ */ f("input", {
|
|
1875
|
-
type: "checkbox",
|
|
1876
|
-
checked: Je,
|
|
1877
|
-
onChange: (e) => Ye(e.target.checked)
|
|
1878
|
-
}), _(l, "I understand the AI image-processing disclosure above.")]
|
|
1879
|
-
}),
|
|
1880
|
-
/* @__PURE__ */ p("label", {
|
|
3105
|
+
/* @__PURE__ */ l("p", { children: g(p, "Reading sends this sanitized image to Anthropic Claude. EU storage and provider inference location are separate; provider data-processing terms must be configured by the service.") }),
|
|
3106
|
+
/* @__PURE__ */ u("label", {
|
|
1881
3107
|
className: "field",
|
|
1882
|
-
children: [
|
|
1883
|
-
"aria-label": "Sketch brief",
|
|
1884
|
-
value: T,
|
|
1885
|
-
maxLength: 8e3,
|
|
1886
|
-
placeholder: "Room wishes, entrance and view, fixed walls, country…",
|
|
1887
|
-
onChange: (e) => E(e.target.value)
|
|
1888
|
-
})]
|
|
1889
|
-
}),
|
|
1890
|
-
/* @__PURE__ */ f("button", {
|
|
1891
|
-
className: "ink",
|
|
1892
|
-
disabled: S || !Ke || !Je,
|
|
1893
|
-
onClick: Gt,
|
|
1894
|
-
children: _(l, "Upload for scanning")
|
|
1895
|
-
}),
|
|
1896
|
-
/* @__PURE__ */ f("button", {
|
|
1897
|
-
className: "quiet",
|
|
1898
|
-
onClick: () => {
|
|
1899
|
-
ze(null), qe(!1), Ye(!1);
|
|
1900
|
-
},
|
|
1901
|
-
children: _(l, "Remove local image")
|
|
1902
|
-
})
|
|
1903
|
-
]
|
|
1904
|
-
}),
|
|
1905
|
-
He && /* @__PURE__ */ p("section", {
|
|
1906
|
-
className: "paper consent-panel",
|
|
1907
|
-
children: [
|
|
1908
|
-
/* @__PURE__ */ f("p", { children: _(l, "Reading sends this sanitized image to Anthropic Claude. EU storage and provider inference location are separate; provider data-processing terms must be configured by the service.") }),
|
|
1909
|
-
/* @__PURE__ */ p("label", {
|
|
1910
|
-
className: "field",
|
|
1911
|
-
children: [_(l, "What should the sketch reader focus on?"), /* @__PURE__ */ f("textarea", {
|
|
3108
|
+
children: [g(p, "What should the sketch reader focus on?"), /* @__PURE__ */ l("textarea", {
|
|
1912
3109
|
"aria-label": "Saved sketch brief",
|
|
1913
|
-
|
|
3110
|
+
disabled: C || Ht.busy,
|
|
3111
|
+
value: E,
|
|
1914
3112
|
maxLength: 8e3,
|
|
1915
|
-
onChange: (e) =>
|
|
3113
|
+
onChange: (e) => D(e.target.value)
|
|
1916
3114
|
})]
|
|
1917
3115
|
}),
|
|
1918
|
-
/* @__PURE__ */
|
|
3116
|
+
/* @__PURE__ */ l("button", {
|
|
1919
3117
|
className: "outline",
|
|
1920
|
-
disabled:
|
|
1921
|
-
onClick:
|
|
1922
|
-
children:
|
|
3118
|
+
disabled: C,
|
|
3119
|
+
onClick: An,
|
|
3120
|
+
children: g(p, "Read saved sketch with AI · observations only")
|
|
1923
3121
|
})
|
|
1924
3122
|
]
|
|
1925
3123
|
}),
|
|
1926
|
-
|
|
3124
|
+
ht && /* @__PURE__ */ u("section", {
|
|
1927
3125
|
className: "paper candidate-panel",
|
|
1928
3126
|
children: [
|
|
1929
|
-
/* @__PURE__ */
|
|
1930
|
-
/* @__PURE__ */
|
|
1931
|
-
/* @__PURE__ */
|
|
1932
|
-
/* @__PURE__ */
|
|
3127
|
+
/* @__PURE__ */ l("h3", { children: g(p, "Recognized outline · estimated") }),
|
|
3128
|
+
/* @__PURE__ */ l("p", { children: ht.input ? `${ht.input.edges.length} linked boundary edges · geometry ${ht.status}` : "The reader did not return a complete, valid outline. Enter or correct measurements manually." }),
|
|
3129
|
+
/* @__PURE__ */ l("p", { children: "Lengths use explicit labels only. Image coordinates do not establish physical scale. Bearings and wall types remain assumptions to review." }),
|
|
3130
|
+
/* @__PURE__ */ l("button", {
|
|
1933
3131
|
className: "outline",
|
|
1934
|
-
disabled:
|
|
1935
|
-
onClick:
|
|
1936
|
-
children:
|
|
3132
|
+
disabled: C || !ht.input || _t,
|
|
3133
|
+
onClick: Pn,
|
|
3134
|
+
children: g(p, "Preview recognized outline")
|
|
1937
3135
|
}),
|
|
1938
|
-
|
|
1939
|
-
/* @__PURE__ */
|
|
1940
|
-
report:
|
|
1941
|
-
language:
|
|
3136
|
+
_t && /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("p", { children: g(p, "Local estimated preview only. The saved project is unchanged.") }), /* @__PURE__ */ l(Pe, { candidate: ht })] }),
|
|
3137
|
+
/* @__PURE__ */ l(Ne, {
|
|
3138
|
+
report: ht.values,
|
|
3139
|
+
language: p
|
|
1942
3140
|
})
|
|
1943
3141
|
]
|
|
1944
3142
|
}),
|
|
1945
|
-
(
|
|
3143
|
+
(kt.length > 0 || Ue.length > 0) && /* @__PURE__ */ u("article", {
|
|
1946
3144
|
className: "paper findings",
|
|
1947
3145
|
children: [
|
|
1948
|
-
/* @__PURE__ */
|
|
1949
|
-
/* @__PURE__ */
|
|
1950
|
-
|
|
1951
|
-
/* @__PURE__ */
|
|
1952
|
-
e.value != null && /* @__PURE__ */
|
|
3146
|
+
/* @__PURE__ */ l("h3", { children: g(p, "Sketch observations to confirm") }),
|
|
3147
|
+
/* @__PURE__ */ l("p", { children: "AI readings are estimated and unconfirmed. Compare them with your image and site measurements; enter the reviewed values in the footprint form. No value is applied automatically." }),
|
|
3148
|
+
kt.map((e, t) => /* @__PURE__ */ u("section", { children: [
|
|
3149
|
+
/* @__PURE__ */ u("strong", { children: [e.kind, e.edgeId ? " · " + e.edgeId : ""] }),
|
|
3150
|
+
e.value != null && /* @__PURE__ */ u("p", { children: [
|
|
1953
3151
|
e.value,
|
|
1954
3152
|
" ",
|
|
1955
3153
|
e.unit ?? "unit unknown",
|
|
1956
3154
|
" ",
|
|
1957
|
-
/* @__PURE__ */
|
|
3155
|
+
/* @__PURE__ */ l("span", {
|
|
1958
3156
|
className: "value-tag origin-estimated",
|
|
1959
3157
|
children: "estimated · unconfirmed"
|
|
1960
3158
|
})
|
|
1961
3159
|
] }),
|
|
1962
|
-
/* @__PURE__ */
|
|
3160
|
+
/* @__PURE__ */ l("p", { children: e.evidence })
|
|
1963
3161
|
] }, t)),
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
report:
|
|
1967
|
-
language:
|
|
3162
|
+
Ue.map((e, t) => /* @__PURE__ */ l("p", { children: e }, t)),
|
|
3163
|
+
jt && /* @__PURE__ */ l(Ne, {
|
|
3164
|
+
report: jt,
|
|
3165
|
+
language: p
|
|
1968
3166
|
})
|
|
1969
3167
|
]
|
|
1970
3168
|
})
|
|
1971
|
-
] }) :
|
|
1972
|
-
/* @__PURE__ */
|
|
3169
|
+
] }) : Z ? /* @__PURE__ */ u(c, { children: [
|
|
3170
|
+
/* @__PURE__ */ u("div", {
|
|
1973
3171
|
className: "metrics",
|
|
1974
3172
|
children: [
|
|
1975
|
-
/* @__PURE__ */
|
|
1976
|
-
|
|
3173
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ u("span", { children: [
|
|
3174
|
+
X.area,
|
|
1977
3175
|
" ",
|
|
1978
|
-
/* @__PURE__ */
|
|
1979
|
-
language:
|
|
1980
|
-
report:
|
|
3176
|
+
/* @__PURE__ */ l(Me, {
|
|
3177
|
+
language: p,
|
|
3178
|
+
report: Ln,
|
|
1981
3179
|
path: "centerlineAreaM2"
|
|
1982
3180
|
})
|
|
1983
|
-
] }), /* @__PURE__ */
|
|
1984
|
-
/* @__PURE__ */
|
|
1985
|
-
|
|
3181
|
+
] }), /* @__PURE__ */ u("strong", { children: [Z.centerlineAreaM2.toFixed(2), /* @__PURE__ */ l("small", { children: "m²" })] })] }),
|
|
3182
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ u("span", { children: [
|
|
3183
|
+
X.net,
|
|
1986
3184
|
" ",
|
|
1987
|
-
/* @__PURE__ */
|
|
1988
|
-
language:
|
|
1989
|
-
report:
|
|
3185
|
+
/* @__PURE__ */ l(Me, {
|
|
3186
|
+
language: p,
|
|
3187
|
+
report: Ln,
|
|
1990
3188
|
path: "netAreaM2"
|
|
1991
3189
|
})
|
|
1992
|
-
] }), /* @__PURE__ */
|
|
1993
|
-
/* @__PURE__ */
|
|
1994
|
-
|
|
3190
|
+
] }), /* @__PURE__ */ u("strong", { children: [Z.netAreaM2.toFixed(2), /* @__PURE__ */ l("small", { children: "m²" })] })] }),
|
|
3191
|
+
/* @__PURE__ */ u("div", { children: [/* @__PURE__ */ u("span", { children: [
|
|
3192
|
+
X.perimeter,
|
|
1995
3193
|
" ",
|
|
1996
|
-
/* @__PURE__ */
|
|
1997
|
-
language:
|
|
1998
|
-
report:
|
|
3194
|
+
/* @__PURE__ */ l(Me, {
|
|
3195
|
+
language: p,
|
|
3196
|
+
report: Ln,
|
|
1999
3197
|
path: "perimeterM"
|
|
2000
3198
|
})
|
|
2001
|
-
] }), /* @__PURE__ */
|
|
2002
|
-
/* @__PURE__ */
|
|
3199
|
+
] }), /* @__PURE__ */ u("strong", { children: [qt?.reconciliation.solutions[0]?.perimeterM.toFixed(2), /* @__PURE__ */ l("small", { children: "m" })] })] }),
|
|
3200
|
+
/* @__PURE__ */ u("div", {
|
|
2003
3201
|
className: "metric-note",
|
|
2004
|
-
children: [
|
|
3202
|
+
children: [Z.hasRequiredConflicts ? X.warning : g(p, "Required layout checks passed"), /* @__PURE__ */ l("span", { children: g(p, "Reference sources remain visible below.") })]
|
|
2005
3203
|
})
|
|
2006
3204
|
]
|
|
2007
3205
|
}),
|
|
2008
|
-
/* @__PURE__ */
|
|
3206
|
+
/* @__PURE__ */ u("div", {
|
|
2009
3207
|
className: "drawing-layout",
|
|
2010
|
-
children: [/* @__PURE__ */
|
|
3208
|
+
children: [/* @__PURE__ */ u("article", {
|
|
2011
3209
|
className: "drawing paper",
|
|
2012
3210
|
children: [
|
|
2013
|
-
/* @__PURE__ */
|
|
3211
|
+
/* @__PURE__ */ u("div", {
|
|
2014
3212
|
className: "drawing-top",
|
|
2015
3213
|
children: [
|
|
2016
|
-
/* @__PURE__ */
|
|
2017
|
-
/* @__PURE__ */
|
|
2018
|
-
/* @__PURE__ */
|
|
3214
|
+
/* @__PURE__ */ u("span", { children: ["LAYOUT ", Z.id] }),
|
|
3215
|
+
/* @__PURE__ */ l("span", { children: q ? "UNSAVED EDIT PREVIEW" : "ENGINE-CHECKED CONCEPT" }),
|
|
3216
|
+
/* @__PURE__ */ l("span", { children: "METRES / CONCEPT" })
|
|
2019
3217
|
]
|
|
2020
3218
|
}),
|
|
2021
|
-
/* @__PURE__ */
|
|
3219
|
+
/* @__PURE__ */ l("div", {
|
|
2022
3220
|
className: "engine-svg",
|
|
2023
|
-
dangerouslySetInnerHTML: { __html:
|
|
3221
|
+
dangerouslySetInnerHTML: { __html: s.sanitize(Z.svg, { USE_PROFILES: {
|
|
2024
3222
|
svg: !0,
|
|
2025
3223
|
svgFilters: !0
|
|
2026
3224
|
} }) }
|
|
2027
3225
|
}),
|
|
2028
|
-
/* @__PURE__ */
|
|
3226
|
+
/* @__PURE__ */ u("div", {
|
|
2029
3227
|
className: "drawing-bottom",
|
|
2030
|
-
children: [/* @__PURE__ */
|
|
2031
|
-
|
|
3228
|
+
children: [/* @__PURE__ */ l("span", { children: f === "karamentreprises" ? "KARAMENTREPRISES BIM" : "BAULYNQ VISION" }), /* @__PURE__ */ u("span", { children: [
|
|
3229
|
+
q ? "PREVIEW / " : "",
|
|
2032
3230
|
"v",
|
|
2033
|
-
|
|
3231
|
+
qt?.version,
|
|
2034
3232
|
" · ",
|
|
2035
|
-
|
|
3233
|
+
p.toUpperCase()
|
|
2036
3234
|
] })]
|
|
2037
3235
|
})
|
|
2038
3236
|
]
|
|
2039
|
-
}), /* @__PURE__ */
|
|
3237
|
+
}), /* @__PURE__ */ u("aside", {
|
|
2040
3238
|
className: "proposal-panel",
|
|
2041
3239
|
children: [
|
|
2042
|
-
/* @__PURE__ */
|
|
3240
|
+
/* @__PURE__ */ l("span", {
|
|
2043
3241
|
className: "eyebrow",
|
|
2044
3242
|
children: "FIND YOUR FIT"
|
|
2045
3243
|
}),
|
|
2046
|
-
|
|
2047
|
-
className: "proposal-card " + (
|
|
2048
|
-
|
|
2049
|
-
|
|
3244
|
+
qt?.proposals.map((e) => /* @__PURE__ */ u("button", {
|
|
3245
|
+
className: "proposal-card " + (ce === e.id ? "selected" : ""),
|
|
3246
|
+
disabled: C,
|
|
3247
|
+
onClick: () => {
|
|
3248
|
+
ce !== e.id && (S(e.id), fe(null), de(null));
|
|
3249
|
+
},
|
|
3250
|
+
children: [/* @__PURE__ */ l("span", {
|
|
2050
3251
|
className: "proposal-letter",
|
|
2051
3252
|
children: e.id
|
|
2052
|
-
}), /* @__PURE__ */
|
|
2053
|
-
e.recommended && /* @__PURE__ */
|
|
3253
|
+
}), /* @__PURE__ */ u("div", { children: [
|
|
3254
|
+
e.recommended && /* @__PURE__ */ l("small", {
|
|
2054
3255
|
className: "badge",
|
|
2055
|
-
children:
|
|
3256
|
+
children: X.recommended
|
|
2056
3257
|
}),
|
|
2057
|
-
/* @__PURE__ */
|
|
2058
|
-
/* @__PURE__ */
|
|
3258
|
+
/* @__PURE__ */ l("h3", { children: e.title }),
|
|
3259
|
+
/* @__PURE__ */ l("p", { children: e.tradeOffs[0] })
|
|
2059
3260
|
] })]
|
|
2060
3261
|
}, e.id)),
|
|
2061
|
-
/* @__PURE__ */
|
|
3262
|
+
/* @__PURE__ */ u("button", {
|
|
2062
3263
|
className: "ink full",
|
|
2063
|
-
disabled:
|
|
2064
|
-
onClick: () =>
|
|
2065
|
-
children: [
|
|
3264
|
+
disabled: C || !!q,
|
|
3265
|
+
onClick: () => hn(Z),
|
|
3266
|
+
children: [X.select, /* @__PURE__ */ l(U, {})]
|
|
2066
3267
|
}),
|
|
2067
|
-
!
|
|
2068
|
-
|
|
2069
|
-
children: [
|
|
2070
|
-
/* @__PURE__ */ f("h3", { children: _(l, "Project billing") }),
|
|
2071
|
-
/* @__PURE__ */ f("p", { children: "One project includes proposals, refinements and its BIM model within the configured caps. Free allowances are checked by the service." }),
|
|
2072
|
-
q ? /* @__PURE__ */ p("p", {
|
|
2073
|
-
className: "quota-disclosure",
|
|
2074
|
-
children: [
|
|
2075
|
-
"After the initial proposal request: ",
|
|
2076
|
-
q.regenerations,
|
|
2077
|
-
" regenerations · ",
|
|
2078
|
-
q.chat,
|
|
2079
|
-
" chat refinements · ",
|
|
2080
|
-
q.exports,
|
|
2081
|
-
" ",
|
|
2082
|
-
q.exports === 1 ? "BIM export" : "BIM exports",
|
|
2083
|
-
" per paid project."
|
|
2084
|
-
]
|
|
2085
|
-
}) : /* @__PURE__ */ f("p", { children: "Project usage limits are unavailable. Checkout stays disabled until they can be shown." }),
|
|
2086
|
-
O ? /* @__PURE__ */ p(d, { children: [
|
|
2087
|
-
/* @__PURE__ */ f("strong", { children: he({
|
|
2088
|
-
priceMinorUnits: O.priceMinorUnits,
|
|
2089
|
-
currency: O.currency
|
|
2090
|
-
}, l) }),
|
|
2091
|
-
/* @__PURE__ */ p("p", { children: [
|
|
2092
|
-
"Quote valid until ",
|
|
2093
|
-
new Date(O.expiresAtUtc).toLocaleString(l),
|
|
2094
|
-
"."
|
|
2095
|
-
] }),
|
|
2096
|
-
/* @__PURE__ */ f("button", {
|
|
2097
|
-
className: "ink full",
|
|
2098
|
-
disabled: S || !Tt || !q,
|
|
2099
|
-
onClick: zt,
|
|
2100
|
-
children: _(l, "Continue to Stripe")
|
|
2101
|
-
}),
|
|
2102
|
-
/* @__PURE__ */ f("button", {
|
|
2103
|
-
className: "textbtn",
|
|
2104
|
-
disabled: S,
|
|
2105
|
-
onClick: Rt,
|
|
2106
|
-
children: _(l, "Refresh project quote")
|
|
2107
|
-
})
|
|
2108
|
-
] }) : /* @__PURE__ */ f("button", {
|
|
2109
|
-
className: "outline full",
|
|
2110
|
-
disabled: S || !Tt,
|
|
2111
|
-
onClick: Rt,
|
|
2112
|
-
children: _(l, "View project price")
|
|
2113
|
-
}),
|
|
2114
|
-
!Tt && /* @__PURE__ */ f("small", { children: _(l, "Purchases are not enabled in this environment.") }),
|
|
2115
|
-
/* @__PURE__ */ f("small", { children: "A checkout return is not proof of payment; downloads use the service's verified entitlement." })
|
|
2116
|
-
]
|
|
2117
|
-
}),
|
|
2118
|
-
/* @__PURE__ */ p("section", {
|
|
3268
|
+
!t && v && yn(),
|
|
3269
|
+
/* @__PURE__ */ u("section", {
|
|
2119
3270
|
className: "drawing-downloads",
|
|
2120
3271
|
children: [
|
|
2121
|
-
/* @__PURE__ */
|
|
2122
|
-
/* @__PURE__ */
|
|
3272
|
+
/* @__PURE__ */ l("h3", { children: g(p, "2D concept drawings") }),
|
|
3273
|
+
/* @__PURE__ */ l("button", {
|
|
2123
3274
|
className: "outline full",
|
|
2124
|
-
disabled:
|
|
2125
|
-
onClick:
|
|
2126
|
-
children:
|
|
3275
|
+
disabled: C || !!q,
|
|
3276
|
+
onClick: Cn,
|
|
3277
|
+
children: g(p, "Prepare PDF / editable DXF / SVG")
|
|
2127
3278
|
}),
|
|
2128
|
-
|
|
3279
|
+
j && Object.keys(j.files).map((e) => /* @__PURE__ */ u("button", {
|
|
2129
3280
|
className: "quiet",
|
|
2130
|
-
onClick: () =>
|
|
3281
|
+
onClick: () => Tn(e, j),
|
|
2131
3282
|
children: [e.toUpperCase(), " ↓"]
|
|
2132
3283
|
}, e)),
|
|
2133
|
-
/* @__PURE__ */
|
|
3284
|
+
/* @__PURE__ */ l("small", { children: "Separate from the BIM model export. PDF is included when the service has PDF rendering configured." })
|
|
2134
3285
|
]
|
|
2135
3286
|
}),
|
|
2136
|
-
/* @__PURE__ */
|
|
3287
|
+
/* @__PURE__ */ u("div", {
|
|
2137
3288
|
className: "tradeoffs",
|
|
2138
|
-
children: [/* @__PURE__ */
|
|
3289
|
+
children: [/* @__PURE__ */ l("h3", { children: X.tradeoffs }), Z.tradeOffs.map((e, t) => /* @__PURE__ */ l("p", { children: e }, t))]
|
|
2139
3290
|
}),
|
|
2140
|
-
|
|
2141
|
-
/* @__PURE__ */
|
|
2142
|
-
|
|
3291
|
+
oe === "download" ? /* @__PURE__ */ u(c, { children: [
|
|
3292
|
+
/* @__PURE__ */ l("h3", { children: X.download }),
|
|
3293
|
+
M ? Object.keys(M.files).map((e) => /* @__PURE__ */ u("button", {
|
|
2143
3294
|
className: "outline full",
|
|
2144
|
-
onClick: () =>
|
|
3295
|
+
onClick: () => Tn(e),
|
|
2145
3296
|
children: [e.toUpperCase(), " ↓"]
|
|
2146
|
-
}, e)) : /* @__PURE__ */
|
|
3297
|
+
}, e)) : /* @__PURE__ */ u("button", {
|
|
2147
3298
|
className: "ink full",
|
|
2148
|
-
disabled:
|
|
2149
|
-
onClick:
|
|
2150
|
-
children: [
|
|
3299
|
+
disabled: C || !!q || Z.hasRequiredConflicts,
|
|
3300
|
+
onClick: wn,
|
|
3301
|
+
children: [X.export, /* @__PURE__ */ l(U, {})]
|
|
2151
3302
|
}),
|
|
2152
|
-
/* @__PURE__ */
|
|
2153
|
-
] }) : /* @__PURE__ */
|
|
3303
|
+
/* @__PURE__ */ l("small", { children: M?.viewerVerification ?? X.downloadNote })
|
|
3304
|
+
] }) : /* @__PURE__ */ u("div", {
|
|
2154
3305
|
className: "chat",
|
|
2155
3306
|
children: [
|
|
2156
|
-
/* @__PURE__ */
|
|
2157
|
-
/* @__PURE__ */
|
|
2158
|
-
"aria-label":
|
|
2159
|
-
|
|
2160
|
-
|
|
3307
|
+
/* @__PURE__ */ l("h3", { children: X.chat }),
|
|
3308
|
+
/* @__PURE__ */ l("textarea", {
|
|
3309
|
+
"aria-label": X.chat,
|
|
3310
|
+
disabled: C || Ht.busy,
|
|
3311
|
+
placeholder: X.hint,
|
|
3312
|
+
value: E,
|
|
2161
3313
|
maxLength: 8e3,
|
|
2162
|
-
onChange: (e) =>
|
|
3314
|
+
onChange: (e) => D(e.target.value)
|
|
2163
3315
|
}),
|
|
2164
|
-
/* @__PURE__ */
|
|
3316
|
+
/* @__PURE__ */ u("button", {
|
|
2165
3317
|
className: "outline full",
|
|
2166
|
-
disabled:
|
|
2167
|
-
onClick:
|
|
2168
|
-
children: [
|
|
3318
|
+
disabled: C || !E.trim(),
|
|
3319
|
+
onClick: pn,
|
|
3320
|
+
children: [X.send, " →"]
|
|
2169
3321
|
})
|
|
2170
3322
|
]
|
|
2171
3323
|
})
|
|
2172
3324
|
]
|
|
2173
3325
|
})]
|
|
2174
3326
|
}),
|
|
2175
|
-
/* @__PURE__ */
|
|
3327
|
+
/* @__PURE__ */ u("div", {
|
|
2176
3328
|
className: "detail-grid",
|
|
2177
|
-
children: [/* @__PURE__ */
|
|
3329
|
+
children: [/* @__PURE__ */ u("article", {
|
|
2178
3330
|
className: "paper schedule",
|
|
2179
|
-
children: [/* @__PURE__ */
|
|
2180
|
-
/* @__PURE__ */
|
|
2181
|
-
/* @__PURE__ */
|
|
2182
|
-
/* @__PURE__ */
|
|
2183
|
-
/* @__PURE__ */
|
|
2184
|
-
/* @__PURE__ */
|
|
3331
|
+
children: [/* @__PURE__ */ l("h3", { children: X.schedule }), /* @__PURE__ */ u("table", { children: [
|
|
3332
|
+
/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ u("tr", { children: [
|
|
3333
|
+
/* @__PURE__ */ l("th", { children: g(p, "Room") }),
|
|
3334
|
+
/* @__PURE__ */ l("th", { children: "W × D" }),
|
|
3335
|
+
/* @__PURE__ */ l("th", { children: g(p, "Axis m²") }),
|
|
3336
|
+
/* @__PURE__ */ l("th", { children: g(p, "Net m²") })
|
|
2185
3337
|
] }) }),
|
|
2186
|
-
/* @__PURE__ */
|
|
2187
|
-
/* @__PURE__ */
|
|
2188
|
-
/* @__PURE__ */
|
|
3338
|
+
/* @__PURE__ */ l("tbody", { children: Z.schedule.map((e) => /* @__PURE__ */ u("tr", { children: [
|
|
3339
|
+
/* @__PURE__ */ l("td", { children: e.name }),
|
|
3340
|
+
/* @__PURE__ */ u("td", { children: [
|
|
2189
3341
|
e.widthM.toFixed(2),
|
|
2190
3342
|
" × ",
|
|
2191
3343
|
e.depthM.toFixed(2),
|
|
2192
|
-
/* @__PURE__ */
|
|
2193
|
-
language:
|
|
2194
|
-
report:
|
|
3344
|
+
/* @__PURE__ */ l(Me, {
|
|
3345
|
+
language: p,
|
|
3346
|
+
report: Ln,
|
|
2195
3347
|
path: `${e.roomId}.widthM`
|
|
2196
3348
|
}),
|
|
2197
|
-
/* @__PURE__ */
|
|
2198
|
-
language:
|
|
2199
|
-
report:
|
|
3349
|
+
/* @__PURE__ */ l(Me, {
|
|
3350
|
+
language: p,
|
|
3351
|
+
report: Ln,
|
|
2200
3352
|
path: `${e.roomId}.depthM`
|
|
2201
3353
|
})
|
|
2202
3354
|
] }),
|
|
2203
|
-
/* @__PURE__ */
|
|
2204
|
-
language:
|
|
2205
|
-
report:
|
|
3355
|
+
/* @__PURE__ */ u("td", { children: [e.centerlineAreaM2.toFixed(2), /* @__PURE__ */ l(Me, {
|
|
3356
|
+
language: p,
|
|
3357
|
+
report: Ln,
|
|
2206
3358
|
path: `${e.roomId}.centerlineAreaM2`
|
|
2207
3359
|
})] }),
|
|
2208
|
-
/* @__PURE__ */
|
|
2209
|
-
language:
|
|
2210
|
-
report:
|
|
3360
|
+
/* @__PURE__ */ u("td", { children: [e.netAreaM2.toFixed(2), /* @__PURE__ */ l(Me, {
|
|
3361
|
+
language: p,
|
|
3362
|
+
report: Ln,
|
|
2211
3363
|
path: `${e.roomId}.netAreaM2`
|
|
2212
3364
|
})] })
|
|
2213
3365
|
] }, e.roomId)) }),
|
|
2214
|
-
/* @__PURE__ */
|
|
2215
|
-
/* @__PURE__ */
|
|
2216
|
-
/* @__PURE__ */
|
|
2217
|
-
/* @__PURE__ */
|
|
2218
|
-
language:
|
|
2219
|
-
report:
|
|
3366
|
+
/* @__PURE__ */ l("tfoot", { children: /* @__PURE__ */ u("tr", { children: [
|
|
3367
|
+
/* @__PURE__ */ l("th", { children: g(p, "Total") }),
|
|
3368
|
+
/* @__PURE__ */ l("td", {}),
|
|
3369
|
+
/* @__PURE__ */ u("th", { children: [Z.centerlineAreaM2.toFixed(2), /* @__PURE__ */ l(Me, {
|
|
3370
|
+
language: p,
|
|
3371
|
+
report: Ln,
|
|
2220
3372
|
path: "centerlineAreaM2"
|
|
2221
3373
|
})] }),
|
|
2222
|
-
/* @__PURE__ */
|
|
2223
|
-
language:
|
|
2224
|
-
report:
|
|
3374
|
+
/* @__PURE__ */ u("th", { children: [Z.netAreaM2.toFixed(2), /* @__PURE__ */ l(Me, {
|
|
3375
|
+
language: p,
|
|
3376
|
+
report: Ln,
|
|
2225
3377
|
path: "netAreaM2"
|
|
2226
3378
|
})] })
|
|
2227
3379
|
] }) })
|
|
2228
3380
|
] })]
|
|
2229
|
-
}), /* @__PURE__ */
|
|
3381
|
+
}), /* @__PURE__ */ u("article", {
|
|
2230
3382
|
className: "paper check-summary",
|
|
2231
3383
|
children: [
|
|
2232
|
-
/* @__PURE__ */
|
|
2233
|
-
/* @__PURE__ */
|
|
3384
|
+
/* @__PURE__ */ l("h3", { children: X.checks }),
|
|
3385
|
+
/* @__PURE__ */ l("div", {
|
|
2234
3386
|
className: "check-counts",
|
|
2235
|
-
children: Object.entries(
|
|
3387
|
+
children: Object.entries(Rn).map(([e, t]) => /* @__PURE__ */ u("span", { children: [/* @__PURE__ */ l("strong", { children: t }), e] }, e))
|
|
2236
3388
|
}),
|
|
2237
|
-
/* @__PURE__ */
|
|
3389
|
+
/* @__PURE__ */ u("button", {
|
|
2238
3390
|
className: "textbtn",
|
|
2239
|
-
onClick: () =>
|
|
3391
|
+
onClick: () => be(!L),
|
|
2240
3392
|
children: [
|
|
2241
|
-
|
|
3393
|
+
L ? g(p, "Hide") : X.notes,
|
|
2242
3394
|
" ",
|
|
2243
|
-
|
|
3395
|
+
L ? "−" : "+"
|
|
2244
3396
|
]
|
|
2245
3397
|
}),
|
|
2246
|
-
/* @__PURE__ */
|
|
3398
|
+
/* @__PURE__ */ l("p", { children: "Reference-only entries are disclosed, never presented as passed checks. Country statutory certification is not inferred." })
|
|
2247
3399
|
]
|
|
2248
3400
|
})]
|
|
2249
3401
|
}),
|
|
2250
|
-
|
|
3402
|
+
L && /* @__PURE__ */ l("article", {
|
|
2251
3403
|
className: "paper findings",
|
|
2252
|
-
children:
|
|
2253
|
-
/* @__PURE__ */
|
|
2254
|
-
/* @__PURE__ */
|
|
3404
|
+
children: Z.findings.map((e, t) => /* @__PURE__ */ u("details", { children: [
|
|
3405
|
+
/* @__PURE__ */ u("summary", { children: [
|
|
3406
|
+
/* @__PURE__ */ l("span", {
|
|
2255
3407
|
className: "status " + e.status,
|
|
2256
3408
|
children: e.status
|
|
2257
3409
|
}),
|
|
2258
|
-
/* @__PURE__ */
|
|
2259
|
-
/* @__PURE__ */
|
|
3410
|
+
/* @__PURE__ */ l("code", { children: e.ruleId }),
|
|
3411
|
+
/* @__PURE__ */ l("span", { children: e.subjectId })
|
|
2260
3412
|
] }),
|
|
2261
|
-
/* @__PURE__ */
|
|
2262
|
-
e.fix && /* @__PURE__ */
|
|
2263
|
-
/* @__PURE__ */
|
|
3413
|
+
/* @__PURE__ */ l("p", { children: e.measurement }),
|
|
3414
|
+
e.fix && /* @__PURE__ */ l("p", { children: e.fix }),
|
|
3415
|
+
/* @__PURE__ */ l("small", { children: e.source })
|
|
2264
3416
|
] }, t))
|
|
2265
3417
|
}),
|
|
2266
|
-
/* @__PURE__ */
|
|
3418
|
+
/* @__PURE__ */ l("p", {
|
|
2267
3419
|
className: "disclaimer",
|
|
2268
|
-
children:
|
|
3420
|
+
children: X.disclaimer
|
|
2269
3421
|
})
|
|
2270
|
-
] }) :
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
3422
|
+
] }) : qt ? /* @__PURE__ */ u("section", {
|
|
3423
|
+
className: "paper findings",
|
|
3424
|
+
role: "status",
|
|
3425
|
+
children: [
|
|
3426
|
+
/* @__PURE__ */ l("h2", { children: g(p, "No layout proposal is available") }),
|
|
3427
|
+
/* @__PURE__ */ l("p", { children: g(p, "Your measurements are retained. Review the engine findings and measurements before trying again.") }),
|
|
3428
|
+
/* @__PURE__ */ u("p", { children: [
|
|
3429
|
+
g(p, "Status"),
|
|
3430
|
+
": ",
|
|
3431
|
+
qt.reconciliation.status
|
|
3432
|
+
] }),
|
|
3433
|
+
qt.reconciliation.findings.map((e, t) => /* @__PURE__ */ l("p", { children: e.message }, t)),
|
|
3434
|
+
/* @__PURE__ */ l("button", {
|
|
3435
|
+
className: "outline",
|
|
3436
|
+
disabled: C,
|
|
3437
|
+
onClick: () => _("measure"),
|
|
3438
|
+
children: g(p, "Review measurements")
|
|
3439
|
+
}),
|
|
3440
|
+
/* @__PURE__ */ l("p", {
|
|
3441
|
+
className: "disclaimer",
|
|
3442
|
+
children: X.disclaimer
|
|
3443
|
+
})
|
|
3444
|
+
]
|
|
3445
|
+
}) : null,
|
|
3446
|
+
e && !v && /* @__PURE__ */ l("button", {
|
|
3447
|
+
className: "outline",
|
|
3448
|
+
disabled: C || Kt,
|
|
3449
|
+
onClick: () => void Dn(),
|
|
3450
|
+
children: {
|
|
3451
|
+
en: "Preserve an existing plan",
|
|
3452
|
+
de: "Bestehenden Plan erhalten",
|
|
3453
|
+
fr: "Conserver un plan existant",
|
|
3454
|
+
ar: "الحفاظ على مخطط قائم"
|
|
3455
|
+
}[p]
|
|
3456
|
+
}),
|
|
3457
|
+
e && v && /* @__PURE__ */ l("div", {
|
|
3458
|
+
className: "actions",
|
|
3459
|
+
children: /* @__PURE__ */ l("button", {
|
|
3460
|
+
className: "outline",
|
|
3461
|
+
disabled: C || Ht.busy || Kt,
|
|
3462
|
+
"aria-pressed": Bt,
|
|
3463
|
+
onClick: () => Vt(!Bt),
|
|
3464
|
+
children: {
|
|
3465
|
+
en: "Existing plan / layout design",
|
|
3466
|
+
de: "Bestandsplan / Entwurf",
|
|
3467
|
+
fr: "Plan existant / conception",
|
|
3468
|
+
ar: "مخطط قائم / تصميم"
|
|
3469
|
+
}[p]
|
|
3470
|
+
})
|
|
3471
|
+
}),
|
|
3472
|
+
v && !Z && !t && yn(),
|
|
3473
|
+
v?.pendingDraft && /* @__PURE__ */ l("p", {
|
|
3474
|
+
role: "status",
|
|
3475
|
+
children: g(p, "Pending inputs are saved privately. They are not an accepted result.")
|
|
3476
|
+
}),
|
|
3477
|
+
e && v && Bt && /* @__PURE__ */ l(x, {
|
|
3478
|
+
projectId: v.projectId,
|
|
3479
|
+
projectVersion: v.version,
|
|
3480
|
+
pendingDraft: v.pendingDraft ?? void 0,
|
|
3481
|
+
loadSavedOnMount: v.workflow === "existing-plan" && !v.pendingDraft?.graph,
|
|
3482
|
+
persistPending: t ? void 0 : un,
|
|
3483
|
+
onPendingSaved: t ? void 0 : dn,
|
|
3484
|
+
registerPendingSaver: t ? void 0 : Et,
|
|
3485
|
+
language: p,
|
|
3486
|
+
disabled: C,
|
|
3487
|
+
sourceObjectId: Ve ?? void 0,
|
|
3488
|
+
imageUrl: ze || void 0,
|
|
3489
|
+
api: Q,
|
|
3490
|
+
onState: Wt,
|
|
3491
|
+
onDownload: (e, t) => void Tn(e, t)
|
|
3492
|
+
}, v.projectId),
|
|
3493
|
+
v && /* @__PURE__ */ l(re, {
|
|
3494
|
+
language: p,
|
|
3495
|
+
version: v.version,
|
|
3496
|
+
busy: C,
|
|
3497
|
+
preview: !!q,
|
|
3498
|
+
open: rt,
|
|
3499
|
+
versions: $e,
|
|
3500
|
+
comparison: tt,
|
|
3501
|
+
left: at,
|
|
3502
|
+
right: st,
|
|
3503
|
+
onToggle: gn,
|
|
3504
|
+
onLeftChange: (e) => {
|
|
3505
|
+
ot(e), nt(null);
|
|
3506
|
+
},
|
|
3507
|
+
onRightChange: (e) => {
|
|
3508
|
+
ct(e), nt(null);
|
|
3509
|
+
},
|
|
3510
|
+
onCompare: _n,
|
|
3511
|
+
onRestore: vn
|
|
3512
|
+
}),
|
|
3513
|
+
(qt || Ze) && /* @__PURE__ */ l(Ne, {
|
|
3514
|
+
report: Ln,
|
|
3515
|
+
language: p
|
|
2274
3516
|
})
|
|
2275
3517
|
]
|
|
2276
3518
|
}),
|
|
2277
|
-
/* @__PURE__ */
|
|
3519
|
+
/* @__PURE__ */ l("input", {
|
|
2278
3520
|
hidden: !0,
|
|
2279
3521
|
type: "file",
|
|
2280
|
-
ref:
|
|
3522
|
+
ref: Nt,
|
|
2281
3523
|
accept: "image/png,image/jpeg,image/webp",
|
|
2282
3524
|
onChange: (e) => {
|
|
2283
3525
|
let t = e.target.files?.[0];
|
|
2284
|
-
t &&
|
|
3526
|
+
t && En(t), e.target.value = "";
|
|
2285
3527
|
}
|
|
2286
3528
|
})
|
|
2287
3529
|
]
|
|
2288
3530
|
}),
|
|
2289
|
-
|
|
3531
|
+
C && /* @__PURE__ */ u("div", {
|
|
2290
3532
|
className: "working",
|
|
2291
3533
|
role: "status",
|
|
2292
|
-
children: [/* @__PURE__ */
|
|
3534
|
+
children: [/* @__PURE__ */ l("span", { className: "spinner" }), X.generating]
|
|
2293
3535
|
}),
|
|
2294
|
-
|
|
3536
|
+
ie === "studio" && v && xt.length > 0 && /* @__PURE__ */ l("section", {
|
|
2295
3537
|
className: "paper saved-files",
|
|
2296
|
-
children: /* @__PURE__ */
|
|
2297
|
-
/* @__PURE__ */
|
|
3538
|
+
children: /* @__PURE__ */ u("details", { children: [/* @__PURE__ */ l("summary", { children: g(p, "Saved project files · download without a new export") }), xt.map((e) => /* @__PURE__ */ u("article", { children: [
|
|
3539
|
+
/* @__PURE__ */ u("strong", { children: [
|
|
2298
3540
|
e.kind,
|
|
2299
3541
|
e.version ? " · v" + e.version : "",
|
|
2300
3542
|
e.proposalId ? " · " + e.proposalId : ""
|
|
2301
3543
|
] }),
|
|
2302
|
-
e.files.map((t) => /* @__PURE__ */
|
|
3544
|
+
e.files.map((t) => /* @__PURE__ */ u("button", {
|
|
2303
3545
|
className: "quiet",
|
|
2304
|
-
disabled:
|
|
2305
|
-
onClick: () =>
|
|
3546
|
+
disabled: C,
|
|
3547
|
+
onClick: () => In(e, t),
|
|
2306
3548
|
children: [t.format.toUpperCase(), " ↓"]
|
|
2307
3549
|
}, t.objectId)),
|
|
2308
3550
|
e.kind === "upload" && e.files.find((e) => [
|
|
2309
3551
|
"png",
|
|
2310
3552
|
"jpeg",
|
|
2311
3553
|
"webp"
|
|
2312
|
-
].includes(e.format)) && /* @__PURE__ */
|
|
3554
|
+
].includes(e.format)) && /* @__PURE__ */ l("button", {
|
|
2313
3555
|
className: "outline",
|
|
2314
|
-
disabled:
|
|
2315
|
-
onClick: () =>
|
|
3556
|
+
disabled: C,
|
|
3557
|
+
onClick: () => Fn(e.files.find((e) => [
|
|
2316
3558
|
"png",
|
|
2317
3559
|
"jpeg",
|
|
2318
3560
|
"webp"
|
|
2319
3561
|
].includes(e.format)).objectId),
|
|
2320
|
-
children:
|
|
3562
|
+
children: g(p, "Use saved sketch")
|
|
2321
3563
|
})
|
|
2322
3564
|
] }, e.artifactId))] })
|
|
2323
3565
|
}),
|
|
2324
|
-
!
|
|
3566
|
+
!t && I.analyticsEnabled === !0 && /* @__PURE__ */ u("aside", {
|
|
2325
3567
|
className: "analytics-choice",
|
|
2326
|
-
children: [/* @__PURE__ */
|
|
3568
|
+
children: [/* @__PURE__ */ u("label", { children: [/* @__PURE__ */ l("input", {
|
|
2327
3569
|
type: "checkbox",
|
|
2328
|
-
checked:
|
|
2329
|
-
onChange: (e) =>
|
|
2330
|
-
}), " Allow optional visit and paywall analytics"] }), /* @__PURE__ */
|
|
3570
|
+
checked: Dt,
|
|
3571
|
+
onChange: (e) => rn(e.target.checked)
|
|
3572
|
+
}), " Allow optional visit and paywall analytics"] }), /* @__PURE__ */ l("small", { children: "We send event type only, without drawings, dimensions, prompts, URLs or account IDs. Uncheck to withdraw consent and request deletion of this browser's client observations." })]
|
|
2331
3573
|
}),
|
|
2332
|
-
!
|
|
3574
|
+
!t && N && dt && /* @__PURE__ */ l("div", {
|
|
2333
3575
|
className: "modal-backdrop",
|
|
2334
|
-
children: /* @__PURE__ */
|
|
3576
|
+
children: /* @__PURE__ */ u("section", {
|
|
2335
3577
|
className: "modal paper",
|
|
2336
3578
|
role: "alertdialog",
|
|
2337
3579
|
"aria-modal": "true",
|
|
2338
3580
|
"aria-labelledby": "content-deletion-title",
|
|
2339
3581
|
children: [
|
|
2340
|
-
/* @__PURE__ */
|
|
3582
|
+
/* @__PURE__ */ l("h2", {
|
|
2341
3583
|
id: "content-deletion-title",
|
|
2342
|
-
children:
|
|
3584
|
+
children: g(p, "Delete all project content?")
|
|
2343
3585
|
}),
|
|
2344
|
-
/* @__PURE__ */
|
|
2345
|
-
/* @__PURE__ */
|
|
3586
|
+
/* @__PURE__ */ l("p", { children: g(p, "This requests removal of your projects, sketches and generated files in this service. Account identity, billing and required anti-abuse records are retained. Pending accounting may delay completion; we show the service's result.") }),
|
|
3587
|
+
/* @__PURE__ */ l("button", {
|
|
2346
3588
|
className: "outline full danger",
|
|
2347
|
-
disabled:
|
|
2348
|
-
onClick:
|
|
2349
|
-
children:
|
|
3589
|
+
disabled: C,
|
|
3590
|
+
onClick: Mn,
|
|
3591
|
+
children: g(p, "Delete my project content")
|
|
2350
3592
|
}),
|
|
2351
|
-
/* @__PURE__ */
|
|
3593
|
+
/* @__PURE__ */ l("button", {
|
|
2352
3594
|
className: "quiet full",
|
|
2353
|
-
disabled:
|
|
2354
|
-
onClick: () =>
|
|
2355
|
-
children:
|
|
3595
|
+
disabled: C,
|
|
3596
|
+
onClick: () => ft(!1),
|
|
3597
|
+
children: g(p, "Cancel")
|
|
2356
3598
|
})
|
|
2357
3599
|
]
|
|
2358
3600
|
})
|
|
2359
3601
|
}),
|
|
2360
|
-
!
|
|
3602
|
+
!t && he && /* @__PURE__ */ l("div", {
|
|
2361
3603
|
className: "modal-backdrop",
|
|
2362
|
-
children: /* @__PURE__ */
|
|
3604
|
+
children: /* @__PURE__ */ u("form", {
|
|
2363
3605
|
className: "modal paper",
|
|
2364
3606
|
onSubmit: (e) => {
|
|
2365
|
-
e.preventDefault(),
|
|
3607
|
+
e.preventDefault(), Nn();
|
|
2366
3608
|
},
|
|
2367
3609
|
children: [
|
|
2368
|
-
/* @__PURE__ */
|
|
3610
|
+
/* @__PURE__ */ l("button", {
|
|
2369
3611
|
type: "button",
|
|
2370
3612
|
className: "close",
|
|
2371
|
-
"aria-label":
|
|
2372
|
-
onClick: () =>
|
|
3613
|
+
"aria-label": X.close,
|
|
3614
|
+
onClick: () => P(!1),
|
|
2373
3615
|
children: "×"
|
|
2374
3616
|
}),
|
|
2375
|
-
/* @__PURE__ */
|
|
2376
|
-
/* @__PURE__ */
|
|
2377
|
-
|
|
3617
|
+
/* @__PURE__ */ l(Ae, {}),
|
|
3618
|
+
/* @__PURE__ */ l("h2", { children: R === "signup" ? g(p, "Create a verified account") : R === "verify" ? g(p, "Verify your email") : X.signin }),
|
|
3619
|
+
le && /* @__PURE__ */ l("p", {
|
|
2378
3620
|
role: "alert",
|
|
2379
|
-
children:
|
|
3621
|
+
children: f === "karamentreprises" ? le.replace(/Polycyphers/gi, "Karamentreprises") : le
|
|
2380
3622
|
}),
|
|
2381
|
-
|
|
3623
|
+
ue && /* @__PURE__ */ l("p", {
|
|
2382
3624
|
role: "status",
|
|
2383
|
-
children:
|
|
3625
|
+
children: ue
|
|
2384
3626
|
}),
|
|
2385
|
-
|
|
3627
|
+
R !== "verify" && /* @__PURE__ */ u("label", {
|
|
2386
3628
|
className: "field",
|
|
2387
|
-
children: [
|
|
3629
|
+
children: [X.email, /* @__PURE__ */ l("input", {
|
|
2388
3630
|
type: "email",
|
|
2389
3631
|
autoComplete: "email",
|
|
2390
3632
|
required: !0,
|
|
2391
|
-
value:
|
|
2392
|
-
onChange: (e) =>
|
|
3633
|
+
value: ge,
|
|
3634
|
+
onChange: (e) => _e(e.target.value)
|
|
2393
3635
|
})]
|
|
2394
3636
|
}),
|
|
2395
|
-
|
|
3637
|
+
R === "verify" && /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("p", { children: "Open the verification link sent to your email, or paste its token below. Verification happens only when you submit this form." }), /* @__PURE__ */ u("label", {
|
|
2396
3638
|
className: "field",
|
|
2397
|
-
children: [
|
|
3639
|
+
children: [g(p, "Verification token"), /* @__PURE__ */ l("input", {
|
|
2398
3640
|
autoComplete: "off",
|
|
2399
3641
|
required: !0,
|
|
2400
|
-
value:
|
|
2401
|
-
onChange: (e) =>
|
|
3642
|
+
value: B,
|
|
3643
|
+
onChange: (e) => V(e.target.value)
|
|
2402
3644
|
})]
|
|
2403
3645
|
})] }),
|
|
2404
|
-
|
|
3646
|
+
R !== "signup" && /* @__PURE__ */ u("label", {
|
|
2405
3647
|
className: "field",
|
|
2406
|
-
children: [
|
|
3648
|
+
children: [X.password, /* @__PURE__ */ l("input", {
|
|
2407
3649
|
type: "password",
|
|
2408
|
-
autoComplete:
|
|
2409
|
-
minLength:
|
|
3650
|
+
autoComplete: R === "verify" ? "new-password" : "current-password",
|
|
3651
|
+
minLength: R === "verify" ? 10 : void 0,
|
|
2410
3652
|
required: !0,
|
|
2411
|
-
value:
|
|
2412
|
-
onChange: (e) =>
|
|
3653
|
+
value: F,
|
|
3654
|
+
onChange: (e) => ve(e.target.value)
|
|
2413
3655
|
})]
|
|
2414
3656
|
}),
|
|
2415
|
-
/* @__PURE__ */
|
|
3657
|
+
/* @__PURE__ */ l("button", {
|
|
2416
3658
|
className: "ink full",
|
|
2417
|
-
disabled:
|
|
2418
|
-
children:
|
|
3659
|
+
disabled: C,
|
|
3660
|
+
children: R === "signup" ? g(p, "Send verification email") : R === "verify" ? g(p, "Verify & set password") : X.signin
|
|
2419
3661
|
}),
|
|
2420
|
-
/* @__PURE__ */
|
|
3662
|
+
/* @__PURE__ */ u("div", {
|
|
2421
3663
|
className: "account-modes",
|
|
2422
3664
|
children: [
|
|
2423
|
-
/* @__PURE__ */
|
|
3665
|
+
/* @__PURE__ */ l("button", {
|
|
2424
3666
|
type: "button",
|
|
2425
3667
|
className: "textbtn",
|
|
2426
|
-
onClick: () =>
|
|
2427
|
-
children:
|
|
3668
|
+
onClick: () => z("login"),
|
|
3669
|
+
children: g(p, "Sign in")
|
|
2428
3670
|
}),
|
|
2429
|
-
/* @__PURE__ */
|
|
3671
|
+
/* @__PURE__ */ l("button", {
|
|
2430
3672
|
type: "button",
|
|
2431
3673
|
className: "textbtn",
|
|
2432
|
-
onClick: () =>
|
|
2433
|
-
children:
|
|
3674
|
+
onClick: () => z("signup"),
|
|
3675
|
+
children: g(p, "Create account")
|
|
2434
3676
|
}),
|
|
2435
|
-
/* @__PURE__ */
|
|
3677
|
+
/* @__PURE__ */ l("button", {
|
|
2436
3678
|
type: "button",
|
|
2437
3679
|
className: "textbtn",
|
|
2438
|
-
onClick: () =>
|
|
2439
|
-
children:
|
|
3680
|
+
onClick: () => z("verify"),
|
|
3681
|
+
children: g(p, "Verify email")
|
|
2440
3682
|
})
|
|
2441
3683
|
]
|
|
2442
3684
|
}),
|
|
2443
|
-
typeof
|
|
3685
|
+
typeof I.verificationCompletionUrl == "string" && /* @__PURE__ */ u("p", { children: ["Verification destination: ", I.verificationCompletionUrl] })
|
|
2444
3686
|
]
|
|
2445
3687
|
})
|
|
2446
3688
|
})
|
|
2447
3689
|
]
|
|
2448
3690
|
});
|
|
2449
3691
|
}
|
|
2450
|
-
function
|
|
2451
|
-
let r = e?.values.find((e) => e.path === t
|
|
2452
|
-
return /* @__PURE__ */
|
|
3692
|
+
function Me({ report: e, path: t, language: n = "en" }) {
|
|
3693
|
+
let r = e?.values.find((e) => e.path === t) ?? e?.values.find((e) => e.path.endsWith("." + t));
|
|
3694
|
+
return /* @__PURE__ */ u("small", {
|
|
2453
3695
|
className: "value-tag " + (r?.origin ?? "missing"),
|
|
2454
3696
|
title: r?.source ?? "No provenance supplied for this displayed value.",
|
|
2455
3697
|
children: [
|
|
2456
|
-
|
|
3698
|
+
g(n, r?.origin ?? "unlabelled"),
|
|
2457
3699
|
" · ",
|
|
2458
|
-
|
|
3700
|
+
g(n, r?.origin !== "estimated" && r?.confirmed === !0 ? "reviewed evidence" : "unconfirmed")
|
|
2459
3701
|
]
|
|
2460
3702
|
});
|
|
2461
3703
|
}
|
|
2462
|
-
function
|
|
3704
|
+
function Ne({ report: e, language: t }) {
|
|
2463
3705
|
let n = t;
|
|
2464
|
-
return /* @__PURE__ */
|
|
3706
|
+
return /* @__PURE__ */ u("section", {
|
|
2465
3707
|
className: "paper provenance",
|
|
2466
3708
|
children: [
|
|
2467
|
-
/* @__PURE__ */
|
|
2468
|
-
/* @__PURE__ */
|
|
2469
|
-
/* @__PURE__ */
|
|
2470
|
-
e ? e.discrepancies.length ? e.discrepancies.map((e) => /* @__PURE__ */
|
|
2471
|
-
/* @__PURE__ */
|
|
3709
|
+
/* @__PURE__ */ l("h3", { children: g(t, "Value provenance & discrepancies") }),
|
|
3710
|
+
/* @__PURE__ */ l("p", { children: e?.notice ?? "No provenance report was supplied. Values are unconfirmed; do not treat them as measured or verified." }),
|
|
3711
|
+
/* @__PURE__ */ l("h4", { children: g(t, "Discrepancy report") }),
|
|
3712
|
+
e ? e.discrepancies.length ? e.discrepancies.map((e) => /* @__PURE__ */ u("article", { children: [
|
|
3713
|
+
/* @__PURE__ */ u("strong", { children: [
|
|
2472
3714
|
e.kind,
|
|
2473
3715
|
" · ",
|
|
2474
3716
|
e.subject
|
|
2475
3717
|
] }),
|
|
2476
|
-
/* @__PURE__ */
|
|
2477
|
-
e.appliedFix && /* @__PURE__ */
|
|
2478
|
-
e.question && /* @__PURE__ */
|
|
2479
|
-
e.ruleId && /* @__PURE__ */
|
|
2480
|
-
] }, e.id)) : /* @__PURE__ */
|
|
2481
|
-
/* @__PURE__ */
|
|
2482
|
-
/* @__PURE__ */
|
|
2483
|
-
/* @__PURE__ */
|
|
2484
|
-
/* @__PURE__ */
|
|
2485
|
-
] }) }), /* @__PURE__ */
|
|
2486
|
-
/* @__PURE__ */
|
|
2487
|
-
/* @__PURE__ */
|
|
2488
|
-
/* @__PURE__ */
|
|
3718
|
+
/* @__PURE__ */ l("p", { children: e.message }),
|
|
3719
|
+
e.appliedFix && /* @__PURE__ */ u("p", { children: ["Applied fix: ", e.appliedFix] }),
|
|
3720
|
+
e.question && /* @__PURE__ */ u("p", { children: ["Measurement needed: ", e.question] }),
|
|
3721
|
+
e.ruleId && /* @__PURE__ */ l("code", { children: e.ruleId })
|
|
3722
|
+
] }, e.id)) : /* @__PURE__ */ l("p", { children: g(n, "No discrepancies reported by the engine.") }) : /* @__PURE__ */ l("p", { children: g(n, "Discrepancy report unavailable.") }),
|
|
3723
|
+
/* @__PURE__ */ u("details", { children: [/* @__PURE__ */ l("summary", { children: g(n, "Every supplied value and its source") }), /* @__PURE__ */ u("table", { children: [/* @__PURE__ */ l("thead", { children: /* @__PURE__ */ u("tr", { children: [
|
|
3724
|
+
/* @__PURE__ */ l("th", { children: g(n, "Value") }),
|
|
3725
|
+
/* @__PURE__ */ l("th", { children: g(n, "Origin / evidence") }),
|
|
3726
|
+
/* @__PURE__ */ l("th", { children: g(n, "Source") })
|
|
3727
|
+
] }) }), /* @__PURE__ */ l("tbody", { children: e?.values.map((t) => /* @__PURE__ */ u("tr", { children: [
|
|
3728
|
+
/* @__PURE__ */ u("td", { children: [
|
|
3729
|
+
/* @__PURE__ */ l("code", { children: t.path }),
|
|
3730
|
+
/* @__PURE__ */ l("br", {}),
|
|
2489
3731
|
t.value,
|
|
2490
3732
|
" ",
|
|
2491
3733
|
t.unit
|
|
2492
3734
|
] }),
|
|
2493
|
-
/* @__PURE__ */
|
|
3735
|
+
/* @__PURE__ */ l("td", { children: /* @__PURE__ */ l(Me, {
|
|
2494
3736
|
language: n,
|
|
2495
3737
|
report: e,
|
|
2496
3738
|
path: t.path
|
|
2497
3739
|
}) }),
|
|
2498
|
-
/* @__PURE__ */
|
|
3740
|
+
/* @__PURE__ */ u("td", { children: [t.source, t.inputPaths.length > 0 && /* @__PURE__ */ u("small", { children: ["Inputs: ", t.inputPaths.join(", ")] })] })
|
|
2499
3741
|
] }, t.path)) })] })] })
|
|
2500
3742
|
]
|
|
2501
3743
|
});
|
|
2502
3744
|
}
|
|
2503
|
-
function
|
|
2504
|
-
let
|
|
2505
|
-
t(e), n(
|
|
2506
|
-
},
|
|
3745
|
+
function K({ input: e, setInput: t, onChange: n, estimatedFields: r, confirmed: i, setConfirmed: a, onGenerate: o, busy: s, onUpload: ee, imageUrl: te, geometry: d, language: ne }) {
|
|
3746
|
+
let f = ne, p = (e, i) => {
|
|
3747
|
+
i && (e = B(e, i, r)), t(e), n(i);
|
|
3748
|
+
}, m = e.programme, h = [
|
|
2507
3749
|
["bedroomWidthM", "Bedroom width"],
|
|
2508
3750
|
["bedroomDepthM", "Bedroom depth"],
|
|
2509
3751
|
["bathroomWidthM", "Bathroom width"],
|
|
@@ -2513,7 +3755,7 @@ function ke({ input: e, setInput: t, onChange: n, estimatedFields: r, confirmed:
|
|
|
2513
3755
|
["balconyDepthM", "Balcony depth (0 for none)"],
|
|
2514
3756
|
["slidingDoorWidthM", "Balcony sliding door width"]
|
|
2515
3757
|
];
|
|
2516
|
-
function
|
|
3758
|
+
function re(t) {
|
|
2517
3759
|
let n = e.footprint.edges, r = (t ? [...n, {
|
|
2518
3760
|
id: "",
|
|
2519
3761
|
startVertexId: "",
|
|
@@ -2528,300 +3770,313 @@ function ke({ input: e, setInput: t, onChange: n, estimatedFields: r, confirmed:
|
|
|
2528
3770
|
startVertexId: "V" + (t + 1),
|
|
2529
3771
|
endVertexId: "V" + ((t + 1) % n.length + 1)
|
|
2530
3772
|
}));
|
|
2531
|
-
|
|
3773
|
+
p({
|
|
2532
3774
|
...e,
|
|
2533
3775
|
footprint: { edges: r }
|
|
2534
3776
|
});
|
|
2535
3777
|
}
|
|
2536
|
-
return /* @__PURE__ */
|
|
3778
|
+
return /* @__PURE__ */ u("section", {
|
|
2537
3779
|
className: "measure-layout",
|
|
2538
|
-
children: [/* @__PURE__ */
|
|
3780
|
+
children: [/* @__PURE__ */ l("article", {
|
|
2539
3781
|
className: "paper form-card",
|
|
2540
|
-
children:
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
_(m, "unconfirmed")
|
|
3782
|
+
children: /* @__PURE__ */ u("fieldset", {
|
|
3783
|
+
disabled: s,
|
|
3784
|
+
style: {
|
|
3785
|
+
border: 0,
|
|
3786
|
+
padding: 0,
|
|
3787
|
+
minWidth: 0
|
|
3788
|
+
},
|
|
3789
|
+
children: [
|
|
3790
|
+
/* @__PURE__ */ l("h2", { children: g(f, "Measured footprint") }),
|
|
3791
|
+
/* @__PURE__ */ l("p", { children: "Enter walls in boundary order, counterclockwise. Bearings: 0° east, 90° north. Leave unknown angles blank; the solver may request one diagonal. These are your measurements, not generated dimensions." }),
|
|
3792
|
+
/* @__PURE__ */ l("div", {
|
|
3793
|
+
className: "edge-table",
|
|
3794
|
+
children: e.footprint.edges.map((t, n) => /* @__PURE__ */ u("div", {
|
|
3795
|
+
className: "edge-row",
|
|
3796
|
+
children: [
|
|
3797
|
+
/* @__PURE__ */ u("strong", { children: [
|
|
3798
|
+
t.id,
|
|
3799
|
+
" ",
|
|
3800
|
+
/* @__PURE__ */ u("small", { children: [
|
|
3801
|
+
t.startVertexId,
|
|
3802
|
+
" → ",
|
|
3803
|
+
t.endVertexId
|
|
3804
|
+
] })
|
|
2564
3805
|
] }),
|
|
2565
|
-
/* @__PURE__ */
|
|
2566
|
-
"
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
3806
|
+
/* @__PURE__ */ u("label", { children: [
|
|
3807
|
+
g(f, "Length (m)"),
|
|
3808
|
+
" ",
|
|
3809
|
+
/* @__PURE__ */ u("small", { children: [
|
|
3810
|
+
g(f, z(e, `footprint.edges[${n}].lengthM`, r)),
|
|
3811
|
+
" · ",
|
|
3812
|
+
g(f, "unconfirmed")
|
|
3813
|
+
] }),
|
|
3814
|
+
/* @__PURE__ */ l("input", {
|
|
3815
|
+
"aria-label": `${t.id} length`,
|
|
3816
|
+
type: "number",
|
|
3817
|
+
min: "0",
|
|
3818
|
+
step: "any",
|
|
3819
|
+
value: Number.isFinite(t.lengthM) ? t.lengthM : "",
|
|
3820
|
+
onChange: (t) => p({
|
|
3821
|
+
...e,
|
|
3822
|
+
footprint: {
|
|
3823
|
+
...e.footprint,
|
|
3824
|
+
edges: e.footprint.edges.map((e, r) => r === n ? {
|
|
3825
|
+
...e,
|
|
3826
|
+
lengthM: t.target.value === "" ? NaN : Number(t.target.value)
|
|
3827
|
+
} : e)
|
|
3828
|
+
}
|
|
3829
|
+
}, `footprint.edges[${n}].lengthM`)
|
|
3830
|
+
})
|
|
2590
3831
|
] }),
|
|
2591
|
-
/* @__PURE__ */
|
|
2592
|
-
"
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
3832
|
+
/* @__PURE__ */ u("label", { children: [
|
|
3833
|
+
g(f, "Bearing (°)"),
|
|
3834
|
+
" ",
|
|
3835
|
+
/* @__PURE__ */ u("small", { children: [
|
|
3836
|
+
g(f, z(e, `footprint.edges[${n}].bearingDegrees`, r)),
|
|
3837
|
+
" · ",
|
|
3838
|
+
g(f, "unconfirmed")
|
|
3839
|
+
] }),
|
|
3840
|
+
/* @__PURE__ */ l("input", {
|
|
3841
|
+
"aria-label": `${t.id} bearing`,
|
|
3842
|
+
type: "number",
|
|
3843
|
+
step: "0.01",
|
|
3844
|
+
placeholder: g(f, "Unknown"),
|
|
3845
|
+
value: t.bearingDegrees ?? "",
|
|
3846
|
+
onChange: (t) => p({
|
|
3847
|
+
...e,
|
|
3848
|
+
footprint: {
|
|
3849
|
+
...e.footprint,
|
|
3850
|
+
edges: e.footprint.edges.map((e, r) => r === n ? {
|
|
3851
|
+
...e,
|
|
3852
|
+
bearingDegrees: t.target.value === "" ? null : Number(t.target.value)
|
|
3853
|
+
} : e)
|
|
3854
|
+
}
|
|
3855
|
+
}, `footprint.edges[${n}].bearingDegrees`)
|
|
3856
|
+
})
|
|
3857
|
+
] }),
|
|
3858
|
+
/* @__PURE__ */ u("label", { children: [g(f, "Wall"), /* @__PURE__ */ u("select", {
|
|
3859
|
+
"aria-label": `${t.id} wall type`,
|
|
3860
|
+
value: t.wallType,
|
|
3861
|
+
onChange: (t) => p({
|
|
2598
3862
|
...e,
|
|
2599
3863
|
footprint: {
|
|
2600
3864
|
...e.footprint,
|
|
2601
3865
|
edges: e.footprint.edges.map((e, r) => r === n ? {
|
|
2602
3866
|
...e,
|
|
2603
|
-
|
|
3867
|
+
wallType: t.target.value
|
|
2604
3868
|
} : e)
|
|
2605
3869
|
}
|
|
2606
|
-
},
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
3870
|
+
}),
|
|
3871
|
+
children: [/* @__PURE__ */ l("option", {
|
|
3872
|
+
value: "exterior",
|
|
3873
|
+
children: g(f, "Exterior")
|
|
3874
|
+
}), /* @__PURE__ */ l("option", {
|
|
3875
|
+
value: "party",
|
|
3876
|
+
children: g(f, "Party · no openings")
|
|
3877
|
+
})]
|
|
3878
|
+
})] })
|
|
3879
|
+
]
|
|
3880
|
+
}, t.id))
|
|
3881
|
+
}),
|
|
3882
|
+
m?.source.startsWith("User-entered") && /* @__PURE__ */ u("div", {
|
|
3883
|
+
className: "actions",
|
|
3884
|
+
children: [/* @__PURE__ */ l("button", {
|
|
3885
|
+
className: "outline",
|
|
3886
|
+
disabled: e.footprint.edges.length >= 64,
|
|
3887
|
+
onClick: () => re(!0),
|
|
3888
|
+
children: g(f, "Add wall")
|
|
3889
|
+
}), /* @__PURE__ */ l("button", {
|
|
3890
|
+
className: "quiet",
|
|
3891
|
+
disabled: e.footprint.edges.length <= 3,
|
|
3892
|
+
onClick: () => re(!1),
|
|
3893
|
+
children: g(f, "Remove last wall")
|
|
3894
|
+
})]
|
|
3895
|
+
}),
|
|
3896
|
+
d?.suggestedDiagonal && /* @__PURE__ */ u("label", {
|
|
3897
|
+
className: "field",
|
|
3898
|
+
children: [
|
|
3899
|
+
"Diagonal ",
|
|
3900
|
+
d.suggestedDiagonal.startVertexId,
|
|
3901
|
+
" → ",
|
|
3902
|
+
d.suggestedDiagonal.endVertexId,
|
|
3903
|
+
" (m)",
|
|
3904
|
+
/* @__PURE__ */ l("small", { children: d.suggestedDiagonal.reason }),
|
|
3905
|
+
/* @__PURE__ */ l("input", {
|
|
3906
|
+
type: "number",
|
|
3907
|
+
min: "0",
|
|
3908
|
+
step: "any",
|
|
3909
|
+
value: e.footprint.diagonals?.[0]?.lengthM ?? "",
|
|
3910
|
+
onChange: (t) => p({
|
|
2613
3911
|
...e,
|
|
2614
3912
|
footprint: {
|
|
2615
3913
|
...e.footprint,
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
3914
|
+
diagonals: t.target.value ? [{
|
|
3915
|
+
startVertexId: d.suggestedDiagonal.startVertexId,
|
|
3916
|
+
endVertexId: d.suggestedDiagonal.endVertexId,
|
|
3917
|
+
lengthM: Number(t.target.value)
|
|
3918
|
+
}] : []
|
|
2620
3919
|
}
|
|
2621
|
-
})
|
|
2622
|
-
children: [/* @__PURE__ */ f("option", {
|
|
2623
|
-
value: "exterior",
|
|
2624
|
-
children: _(m, "Exterior")
|
|
2625
|
-
}), /* @__PURE__ */ f("option", {
|
|
2626
|
-
value: "party",
|
|
2627
|
-
children: _(m, "Party · no openings")
|
|
2628
|
-
})]
|
|
2629
|
-
})] })
|
|
2630
|
-
]
|
|
2631
|
-
}, t.id))
|
|
2632
|
-
}),
|
|
2633
|
-
g?.source.startsWith("User-entered") && /* @__PURE__ */ p("div", {
|
|
2634
|
-
className: "actions",
|
|
2635
|
-
children: [/* @__PURE__ */ f("button", {
|
|
2636
|
-
className: "outline",
|
|
2637
|
-
disabled: e.footprint.edges.length >= 64,
|
|
2638
|
-
onClick: () => y(!0),
|
|
2639
|
-
children: _(m, "Add wall")
|
|
2640
|
-
}), /* @__PURE__ */ f("button", {
|
|
2641
|
-
className: "quiet",
|
|
2642
|
-
disabled: e.footprint.edges.length <= 3,
|
|
2643
|
-
onClick: () => y(!1),
|
|
2644
|
-
children: _(m, "Remove last wall")
|
|
2645
|
-
})]
|
|
2646
|
-
}),
|
|
2647
|
-
u?.suggestedDiagonal && /* @__PURE__ */ p("label", {
|
|
2648
|
-
className: "field",
|
|
2649
|
-
children: [
|
|
2650
|
-
"Diagonal ",
|
|
2651
|
-
u.suggestedDiagonal.startVertexId,
|
|
2652
|
-
" → ",
|
|
2653
|
-
u.suggestedDiagonal.endVertexId,
|
|
2654
|
-
" (m)",
|
|
2655
|
-
/* @__PURE__ */ f("small", { children: u.suggestedDiagonal.reason }),
|
|
2656
|
-
/* @__PURE__ */ f("input", {
|
|
2657
|
-
type: "number",
|
|
2658
|
-
min: "0",
|
|
2659
|
-
step: "any",
|
|
2660
|
-
value: e.footprint.diagonals?.[0]?.lengthM ?? "",
|
|
2661
|
-
onChange: (t) => h({
|
|
2662
|
-
...e,
|
|
2663
|
-
footprint: {
|
|
2664
|
-
...e.footprint,
|
|
2665
|
-
diagonals: t.target.value ? [{
|
|
2666
|
-
startVertexId: u.suggestedDiagonal.startVertexId,
|
|
2667
|
-
endVertexId: u.suggestedDiagonal.endVertexId,
|
|
2668
|
-
lengthM: Number(t.target.value)
|
|
2669
|
-
}] : []
|
|
2670
|
-
}
|
|
3920
|
+
}, "footprint.diagonals")
|
|
2671
3921
|
})
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
}
|
|
3922
|
+
]
|
|
3923
|
+
}),
|
|
3924
|
+
/* @__PURE__ */ u("details", {
|
|
3925
|
+
open: !!m,
|
|
3926
|
+
children: [/* @__PURE__ */ l("summary", { children: g(f, "Room programme") }), m ? /* @__PURE__ */ u(c, { children: [
|
|
3927
|
+
/* @__PURE__ */ l("p", { children: g(f, "Requested dimensions. Every value is checked by the shared engine.") }),
|
|
3928
|
+
/* @__PURE__ */ l("div", {
|
|
3929
|
+
className: "programme-grid",
|
|
3930
|
+
children: h.map(([t, n]) => /* @__PURE__ */ u("label", {
|
|
3931
|
+
className: "field",
|
|
3932
|
+
children: [
|
|
3933
|
+
g(f, n),
|
|
3934
|
+
" (m)",
|
|
3935
|
+
/* @__PURE__ */ u("small", { children: [
|
|
3936
|
+
g(f, z(e, `programme.${t}`, r)),
|
|
3937
|
+
" · ",
|
|
3938
|
+
g(f, "unconfirmed")
|
|
3939
|
+
] }),
|
|
3940
|
+
/* @__PURE__ */ l("input", {
|
|
3941
|
+
type: "number",
|
|
3942
|
+
min: "0",
|
|
3943
|
+
step: "0.01",
|
|
3944
|
+
value: Number.isFinite(m[t]) ? m[t] : "",
|
|
3945
|
+
onChange: (n) => p({
|
|
3946
|
+
...e,
|
|
3947
|
+
programme: {
|
|
3948
|
+
...m,
|
|
3949
|
+
[t]: n.target.value === "" ? NaN : Number(n.target.value)
|
|
3950
|
+
}
|
|
3951
|
+
}, `programme.${t}`)
|
|
2702
3952
|
})
|
|
2703
|
-
|
|
2704
|
-
|
|
3953
|
+
]
|
|
3954
|
+
}, t))
|
|
3955
|
+
}),
|
|
3956
|
+
["entranceEdgeId", "balconyEdgeId"].map((t) => /* @__PURE__ */ u("label", {
|
|
3957
|
+
className: "field",
|
|
3958
|
+
children: [g(f, t === "entranceEdgeId" ? "Entrance wall" : "Balcony wall"), /* @__PURE__ */ u("select", {
|
|
3959
|
+
value: m[t],
|
|
3960
|
+
onChange: (n) => p({
|
|
3961
|
+
...e,
|
|
3962
|
+
programme: {
|
|
3963
|
+
...m,
|
|
3964
|
+
[t]: n.target.value
|
|
3965
|
+
}
|
|
3966
|
+
}),
|
|
3967
|
+
children: [/* @__PURE__ */ l("option", {
|
|
3968
|
+
value: "",
|
|
3969
|
+
children: g(f, "Choose a wall")
|
|
3970
|
+
}), e.footprint.edges.map((e) => /* @__PURE__ */ l("option", { children: e.id }, e.id))]
|
|
3971
|
+
})]
|
|
2705
3972
|
}, t))
|
|
2706
|
-
}),
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
3973
|
+
] }) : /* @__PURE__ */ u("p", { children: ["This example uses engine concept programme assumptions. They remain estimated until replaced with your own dimensions. ", /* @__PURE__ */ l("button", {
|
|
3974
|
+
className: "textbtn",
|
|
3975
|
+
onClick: () => p({
|
|
3976
|
+
...e,
|
|
3977
|
+
programme: Te(e.language).programme
|
|
3978
|
+
}),
|
|
3979
|
+
children: "Enter my own room dimensions"
|
|
3980
|
+
})] })]
|
|
3981
|
+
}),
|
|
3982
|
+
/* @__PURE__ */ u("label", {
|
|
3983
|
+
className: "field",
|
|
3984
|
+
children: [g(f, "Main view wall"), /* @__PURE__ */ u("select", {
|
|
3985
|
+
value: e.viewEdgeId,
|
|
3986
|
+
onChange: (t) => p({
|
|
3987
|
+
...e,
|
|
3988
|
+
viewEdgeId: t.target.value
|
|
3989
|
+
}),
|
|
3990
|
+
children: [/* @__PURE__ */ l("option", {
|
|
3991
|
+
value: "",
|
|
3992
|
+
children: g(f, "No preference")
|
|
3993
|
+
}), e.footprint.edges.map((e) => /* @__PURE__ */ l("option", { children: e.id }, e.id))]
|
|
3994
|
+
})]
|
|
3995
|
+
}),
|
|
3996
|
+
/* @__PURE__ */ u("label", {
|
|
3997
|
+
className: "field",
|
|
3998
|
+
children: [
|
|
3999
|
+
g(f, "Clear ceiling height (m)"),
|
|
4000
|
+
/* @__PURE__ */ u("small", { children: [
|
|
4001
|
+
g(f, z(e, "buildUps.clearCeilingHeightM", r)),
|
|
4002
|
+
" · ",
|
|
4003
|
+
g(f, "unconfirmed")
|
|
4004
|
+
] }),
|
|
4005
|
+
/* @__PURE__ */ l("input", {
|
|
4006
|
+
type: "number",
|
|
4007
|
+
step: "0.01",
|
|
4008
|
+
min: "0",
|
|
4009
|
+
value: Number(e.buildUps?.clearCeilingHeightM ?? 2.8),
|
|
4010
|
+
onChange: (t) => p({
|
|
2712
4011
|
...e,
|
|
2713
|
-
|
|
2714
|
-
...
|
|
2715
|
-
|
|
4012
|
+
buildUps: {
|
|
4013
|
+
...e.buildUps,
|
|
4014
|
+
clearCeilingHeightM: Number(t.target.value)
|
|
2716
4015
|
}
|
|
2717
|
-
})
|
|
2718
|
-
children: [/* @__PURE__ */ f("option", {
|
|
2719
|
-
value: "",
|
|
2720
|
-
children: _(m, "Choose a wall")
|
|
2721
|
-
}), e.footprint.edges.map((e) => /* @__PURE__ */ f("option", { children: e.id }, e.id))]
|
|
2722
|
-
})]
|
|
2723
|
-
}, t))
|
|
2724
|
-
] }) : /* @__PURE__ */ p("p", { children: ["This example uses engine concept programme assumptions. They remain estimated until replaced with your own dimensions. ", /* @__PURE__ */ f("button", {
|
|
2725
|
-
className: "textbtn",
|
|
2726
|
-
onClick: () => h({
|
|
2727
|
-
...e,
|
|
2728
|
-
programme: ye(e.language).programme
|
|
2729
|
-
}),
|
|
2730
|
-
children: "Enter my own room dimensions"
|
|
2731
|
-
})] })]
|
|
2732
|
-
}),
|
|
2733
|
-
/* @__PURE__ */ p("label", {
|
|
2734
|
-
className: "field",
|
|
2735
|
-
children: [_(m, "Main view wall"), /* @__PURE__ */ p("select", {
|
|
2736
|
-
value: e.viewEdgeId,
|
|
2737
|
-
onChange: (t) => h({
|
|
2738
|
-
...e,
|
|
2739
|
-
viewEdgeId: t.target.value
|
|
2740
|
-
}),
|
|
2741
|
-
children: [/* @__PURE__ */ f("option", {
|
|
2742
|
-
value: "",
|
|
2743
|
-
children: _(m, "No preference")
|
|
2744
|
-
}), e.footprint.edges.map((e) => /* @__PURE__ */ f("option", { children: e.id }, e.id))]
|
|
2745
|
-
})]
|
|
2746
|
-
}),
|
|
2747
|
-
/* @__PURE__ */ p("label", {
|
|
2748
|
-
className: "field",
|
|
2749
|
-
children: [
|
|
2750
|
-
_(m, "Clear ceiling height (m)"),
|
|
2751
|
-
/* @__PURE__ */ f("small", { children: e.buildUps?.clearCeilingHeightM == null ? "estimated default · unconfirmed" : "user-given · unconfirmed" }),
|
|
2752
|
-
/* @__PURE__ */ f("input", {
|
|
2753
|
-
type: "number",
|
|
2754
|
-
step: "0.01",
|
|
2755
|
-
min: "0",
|
|
2756
|
-
value: Number(e.buildUps?.clearCeilingHeightM ?? 2.8),
|
|
2757
|
-
onChange: (t) => h({
|
|
2758
|
-
...e,
|
|
2759
|
-
buildUps: {
|
|
2760
|
-
...e.buildUps,
|
|
2761
|
-
clearCeilingHeightM: Number(t.target.value)
|
|
2762
|
-
}
|
|
4016
|
+
}, "buildUps.clearCeilingHeightM")
|
|
2763
4017
|
})
|
|
2764
|
-
})
|
|
2765
|
-
]
|
|
2766
|
-
}),
|
|
2767
|
-
/* @__PURE__ */ f("p", { children: "Other wall/slab build-ups remain labelled concept placeholders from the shared engine." }),
|
|
2768
|
-
/* @__PURE__ */ p("label", {
|
|
2769
|
-
className: "field",
|
|
2770
|
-
children: [_(m, "Country"), /* @__PURE__ */ p("select", {
|
|
2771
|
-
value: e.country,
|
|
2772
|
-
onChange: (t) => h({
|
|
2773
|
-
...e,
|
|
2774
|
-
country: t.target.value
|
|
2775
|
-
}),
|
|
2776
|
-
children: [
|
|
2777
|
-
/* @__PURE__ */ f("option", { children: "unspecified" }),
|
|
2778
|
-
/* @__PURE__ */ f("option", { children: "Lebanon" }),
|
|
2779
|
-
/* @__PURE__ */ f("option", { children: "Germany" })
|
|
2780
4018
|
]
|
|
2781
|
-
})
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
4019
|
+
}),
|
|
4020
|
+
/* @__PURE__ */ l("p", { children: "Other wall/slab build-ups remain labelled concept placeholders from the shared engine." }),
|
|
4021
|
+
/* @__PURE__ */ u("label", {
|
|
4022
|
+
className: "field",
|
|
4023
|
+
children: [g(f, "Country"), /* @__PURE__ */ u("select", {
|
|
4024
|
+
value: e.country,
|
|
4025
|
+
onChange: (t) => p({
|
|
4026
|
+
...e,
|
|
4027
|
+
country: t.target.value
|
|
4028
|
+
}),
|
|
4029
|
+
children: [
|
|
4030
|
+
/* @__PURE__ */ l("option", { children: "unspecified" }),
|
|
4031
|
+
/* @__PURE__ */ l("option", { children: "Lebanon" }),
|
|
4032
|
+
/* @__PURE__ */ l("option", { children: "Germany" })
|
|
4033
|
+
]
|
|
4034
|
+
})]
|
|
4035
|
+
}),
|
|
4036
|
+
/* @__PURE__ */ u("label", {
|
|
4037
|
+
className: "confirmation",
|
|
4038
|
+
children: [/* @__PURE__ */ l("input", {
|
|
4039
|
+
type: "checkbox",
|
|
4040
|
+
checked: i,
|
|
4041
|
+
onChange: (e) => a(e.target.checked)
|
|
4042
|
+
}), g(f, "I confirm these measured dimensions and angle assumptions.")]
|
|
4043
|
+
}),
|
|
4044
|
+
/* @__PURE__ */ l("button", {
|
|
4045
|
+
className: "ink full",
|
|
4046
|
+
disabled: s || !i,
|
|
4047
|
+
onClick: o,
|
|
4048
|
+
children: g(f, "Check footprint & generate")
|
|
4049
|
+
}),
|
|
4050
|
+
/* @__PURE__ */ l("button", {
|
|
4051
|
+
className: "outline full",
|
|
4052
|
+
onClick: ee,
|
|
4053
|
+
children: g(f, "Attach sketch")
|
|
4054
|
+
})
|
|
4055
|
+
]
|
|
4056
|
+
})
|
|
4057
|
+
}), /* @__PURE__ */ l("aside", {
|
|
2804
4058
|
className: "paper measure-sketch",
|
|
2805
|
-
children:
|
|
4059
|
+
children: te ? /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("img", {
|
|
2806
4060
|
className: "uploaded-preview",
|
|
2807
|
-
src:
|
|
4061
|
+
src: te,
|
|
2808
4062
|
alt: "Your selected sketch, local preview"
|
|
2809
|
-
}), /* @__PURE__ */
|
|
4063
|
+
}), /* @__PURE__ */ l("p", { children: g(f, "Local image preview. No dimensions are inferred from this display.") })] }) : /* @__PURE__ */ u("div", {
|
|
2810
4064
|
className: "empty",
|
|
2811
4065
|
children: [
|
|
2812
|
-
/* @__PURE__ */
|
|
2813
|
-
/* @__PURE__ */
|
|
2814
|
-
/* @__PURE__ */
|
|
4066
|
+
/* @__PURE__ */ l("h3", { children: g(f, "Your measurements define the plan.") }),
|
|
4067
|
+
/* @__PURE__ */ l("p", { children: g(f, "Attach your sketch for reference. There is no sample footprint hidden behind this form.") }),
|
|
4068
|
+
/* @__PURE__ */ l("button", {
|
|
2815
4069
|
className: "outline",
|
|
2816
|
-
|
|
2817
|
-
|
|
4070
|
+
disabled: s,
|
|
4071
|
+
onClick: ee,
|
|
4072
|
+
children: g(f, "Choose sketch image")
|
|
2818
4073
|
})
|
|
2819
4074
|
]
|
|
2820
4075
|
})
|
|
2821
4076
|
})]
|
|
2822
4077
|
});
|
|
2823
4078
|
}
|
|
2824
|
-
function
|
|
4079
|
+
function Pe({ candidate: e }) {
|
|
2825
4080
|
let t = e.reconciliation?.status === "Unique" ? e.reconciliation.solutions[0]?.vertices : null, n = /* @__PURE__ */ new Map();
|
|
2826
4081
|
for (let t of e.values.values) {
|
|
2827
4082
|
let e = /^sketch\.topology\.vertices\.([A-Za-z0-9_-]+)\.(x|y)$/.exec(t.path);
|
|
@@ -2842,38 +4097,38 @@ function Ae({ candidate: e }) {
|
|
|
2842
4097
|
...n.get(e.startVertexId)
|
|
2843
4098
|
})).filter((e) => Number.isFinite(e.x) && Number.isFinite(e.y)) ?? [];
|
|
2844
4099
|
if (r.length < 3 || r.length !== e.input?.edges.length) return null;
|
|
2845
|
-
let i = Math.min(...r.map((e) => e.x)), a = Math.min(...r.map((e) => e.y)), o = Math.max(...r.map((e) => e.x)) - i, s = Math.max(...r.map((e) => e.y)) - a, c = Math.min(560 / Math.max(o, 1e-6), 300 / Math.max(s, 1e-6)),
|
|
4100
|
+
let i = Math.min(...r.map((e) => e.x)), a = Math.min(...r.map((e) => e.y)), o = Math.max(...r.map((e) => e.x)) - i, s = Math.max(...r.map((e) => e.y)) - a, c = Math.min(560 / Math.max(o, 1e-6), 300 / Math.max(s, 1e-6)), ee = r.map((e) => ({
|
|
2846
4101
|
id: e.id,
|
|
2847
4102
|
x: 40 + (e.x - i) * c,
|
|
2848
4103
|
y: 40 + (e.y - a) * c
|
|
2849
4104
|
}));
|
|
2850
|
-
return /* @__PURE__ */
|
|
4105
|
+
return /* @__PURE__ */ u("figure", {
|
|
2851
4106
|
className: "recognized-outline",
|
|
2852
|
-
children: [/* @__PURE__ */
|
|
4107
|
+
children: [/* @__PURE__ */ u("svg", {
|
|
2853
4108
|
viewBox: "0 0 640 390",
|
|
2854
4109
|
role: "img",
|
|
2855
4110
|
"aria-label": "Unconfirmed recognized outline preview",
|
|
2856
|
-
children: [/* @__PURE__ */
|
|
2857
|
-
points:
|
|
4111
|
+
children: [/* @__PURE__ */ l("polygon", {
|
|
4112
|
+
points: ee.map((e) => `${e.x},${e.y}`).join(" "),
|
|
2858
4113
|
fill: "rgba(41,124,112,.07)",
|
|
2859
4114
|
stroke: "#286e62",
|
|
2860
4115
|
strokeWidth: "2"
|
|
2861
|
-
}),
|
|
2862
|
-
let r =
|
|
2863
|
-
return /* @__PURE__ */
|
|
2864
|
-
/* @__PURE__ */
|
|
4116
|
+
}), ee.map((t, n) => {
|
|
4117
|
+
let r = ee[(n + 1) % ee.length], i = e.input?.edges.find((e) => e.startVertexId === t.id);
|
|
4118
|
+
return /* @__PURE__ */ u("g", { children: [
|
|
4119
|
+
/* @__PURE__ */ l("circle", {
|
|
2865
4120
|
cx: t.x,
|
|
2866
4121
|
cy: t.y,
|
|
2867
4122
|
r: "3",
|
|
2868
4123
|
fill: "#286e62"
|
|
2869
4124
|
}),
|
|
2870
|
-
/* @__PURE__ */
|
|
4125
|
+
/* @__PURE__ */ l("text", {
|
|
2871
4126
|
x: t.x + 5,
|
|
2872
4127
|
y: t.y - 7,
|
|
2873
4128
|
fontSize: "10",
|
|
2874
4129
|
children: t.id
|
|
2875
4130
|
}),
|
|
2876
|
-
i && /* @__PURE__ */
|
|
4131
|
+
i && /* @__PURE__ */ u("text", {
|
|
2877
4132
|
x: (t.x + r.x) / 2 + 5,
|
|
2878
4133
|
y: (t.y + r.y) / 2 + 12,
|
|
2879
4134
|
fontSize: "11",
|
|
@@ -2886,7 +4141,7 @@ function Ae({ candidate: e }) {
|
|
|
2886
4141
|
})
|
|
2887
4142
|
] }, t.id);
|
|
2888
4143
|
})]
|
|
2889
|
-
}), /* @__PURE__ */
|
|
4144
|
+
}), /* @__PURE__ */ u("figcaption", { children: [t?.length ? "Deterministic closure preview from estimated inputs." : "Image-space outline estimate; no physical scale.", " Original recognized outline; form edits are checked when you request reconciliation."] })]
|
|
2890
4145
|
});
|
|
2891
4146
|
}
|
|
2892
|
-
export {
|
|
4147
|
+
export { S as BIM_PACKAGE_ID, C as BIM_PACKAGE_VERSION, je as BimStudio, be as checkBimLicense, N as clearLicense, ee as disableTelemetry, d as enableTelemetry, fe as setLicense };
|