@polycyphers/bim 0.1.0 → 0.1.2
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/EULA.md +2 -0
- package/README.md +17 -5
- package/dist/BimStudio.d.ts +7 -1
- package/dist/VersionHistory.d.ts +20 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1557 -1096
- package/dist/licensing.d.ts +8 -6
- 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 +19 -9
- package/package.json +9 -4
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { createContext as e,
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { createContext as e, useCallback as t, useContext as n, useEffect as r, useRef as i, useState as a } from "react";
|
|
2
|
+
import o from "dompurify";
|
|
3
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
4
|
+
import { disableTelemetry as u, disableTelemetry as d, enableTelemetry as f, setBrand as p, verifySystemMessage as m } from "@polycyphers/license";
|
|
5
5
|
// src/i18n.ts
|
|
6
|
-
var
|
|
6
|
+
var h = {
|
|
7
7
|
studio: "Open studio",
|
|
8
8
|
pricing: "Pricing",
|
|
9
9
|
start: "Start with your sketch",
|
|
@@ -67,10 +67,10 @@ var g = {
|
|
|
67
67
|
account: "Account",
|
|
68
68
|
cancel: "Cancel",
|
|
69
69
|
close: "Close"
|
|
70
|
-
},
|
|
71
|
-
en:
|
|
70
|
+
}, g = {
|
|
71
|
+
en: h,
|
|
72
72
|
de: {
|
|
73
|
-
...
|
|
73
|
+
...h,
|
|
74
74
|
studio: "Studio öffnen",
|
|
75
75
|
pricing: "Preise",
|
|
76
76
|
start: "Mit Ihrer Skizze starten",
|
|
@@ -111,7 +111,7 @@ var g = {
|
|
|
111
111
|
close: "Schließen"
|
|
112
112
|
},
|
|
113
113
|
fr: {
|
|
114
|
-
...
|
|
114
|
+
...h,
|
|
115
115
|
studio: "Ouvrir le studio",
|
|
116
116
|
pricing: "Tarifs",
|
|
117
117
|
start: "Commencez par votre croquis",
|
|
@@ -152,7 +152,7 @@ var g = {
|
|
|
152
152
|
close: "Fermer"
|
|
153
153
|
},
|
|
154
154
|
ar: {
|
|
155
|
-
...
|
|
155
|
+
...h,
|
|
156
156
|
studio: "فتح الاستوديو",
|
|
157
157
|
pricing: "الأسعار",
|
|
158
158
|
start: "ابدأ برسمك",
|
|
@@ -193,7 +193,7 @@ var g = {
|
|
|
193
193
|
close: "إغلاق"
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
|
-
Object.assign(
|
|
196
|
+
Object.assign(g.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(te.de, {
|
|
|
219
219
|
width: "Breite",
|
|
220
220
|
depth: "Tiefe",
|
|
221
221
|
account: "Konto"
|
|
222
|
-
}), Object.assign(
|
|
222
|
+
}), Object.assign(g.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(te.de, {
|
|
|
245
245
|
width: "Largeur",
|
|
246
246
|
depth: "Profondeur",
|
|
247
247
|
account: "Compte"
|
|
248
|
-
}), Object.assign(
|
|
248
|
+
}), Object.assign(g.ar, {
|
|
249
249
|
workspace: "تصوّر شقة",
|
|
250
250
|
example: "مشروع مرجعي · هندسة مؤكدة ميدانياً",
|
|
251
251
|
back: "كل المشاريع",
|
|
@@ -599,28 +599,344 @@ Object.assign(_.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(_.de, {
|
|
603
|
+
"Verifying component license…": "Komponentenlizenz wird geprüft…",
|
|
604
|
+
"A valid component license is required": "Eine gültige Komponentenlizenz ist erforderlich",
|
|
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
|
+
"Check license again": "Lizenz erneut prüfen",
|
|
607
|
+
"License management": "Lizenzverwaltung"
|
|
608
|
+
}), Object.assign(_.fr, {
|
|
609
|
+
"Verifying component license…": "Vérification de la licence du composant…",
|
|
610
|
+
"A valid component license is required": "Une licence valide du composant est requise",
|
|
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
|
+
"Check license again": "Vérifier à nouveau la licence",
|
|
613
|
+
"License management": "Gestion des licences"
|
|
614
|
+
}), Object.assign(_.ar, {
|
|
615
|
+
"Verifying component license…": "جارٍ التحقق من ترخيص المكوّن…",
|
|
616
|
+
"A valid component license is required": "يلزم ترخيص صالح للمكوّن",
|
|
617
|
+
"The studio stays closed until its installation license and signed revocation status are verified.": "يبقى الاستوديو مغلقاً حتى التحقق من ترخيص التثبيت وحالة الإلغاء الموقّعة.",
|
|
618
|
+
"Check license again": "إعادة فحص الترخيص",
|
|
619
|
+
"License management": "إدارة التراخيص"
|
|
620
|
+
}), Object.assign(_.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(_.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(_.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(_.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(_.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(_.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.": "لم تُسجّل تغييرات في المدخلات."
|
|
602
677
|
});
|
|
603
678
|
function v(e, t) {
|
|
604
679
|
return e === "en" ? t : _[e][t] ?? t;
|
|
605
680
|
}
|
|
681
|
+
// src/VersionHistory.tsx
|
|
682
|
+
function ee({ language: e, version: t, busy: n, preview: r, open: i, versions: a, comparison: o, left: s, right: u, onToggle: d, onLeftChange: f, onRightChange: p, onCompare: m, onRestore: h }) {
|
|
683
|
+
let g = a?.some((e) => e.version === s), _ = a?.some((e) => e.version === u);
|
|
684
|
+
return /* @__PURE__ */ l("section", {
|
|
685
|
+
className: "paper version-history",
|
|
686
|
+
children: [/* @__PURE__ */ c("button", {
|
|
687
|
+
className: "outline",
|
|
688
|
+
disabled: n,
|
|
689
|
+
"aria-expanded": i,
|
|
690
|
+
"aria-controls": "bim-version-history",
|
|
691
|
+
onClick: d,
|
|
692
|
+
children: v(e, i ? "Hide version history" : "Version history & compare")
|
|
693
|
+
}), i && a && /* @__PURE__ */ l("div", {
|
|
694
|
+
id: "bim-version-history",
|
|
695
|
+
children: [
|
|
696
|
+
/* @__PURE__ */ c("h3", { children: v(e, "Saved versions") }),
|
|
697
|
+
/* @__PURE__ */ c("p", { children: v(e, "History and comparison are read-only. Restoring creates a new version after the service checks the current version.") }),
|
|
698
|
+
/* @__PURE__ */ c("ul", { children: a.map((t) => /* @__PURE__ */ l("li", { children: [
|
|
699
|
+
/* @__PURE__ */ l("strong", { children: ["v", t.version] }),
|
|
700
|
+
" · ",
|
|
701
|
+
new Date(t.createdAtUtc).toLocaleString(e),
|
|
702
|
+
t.selectedProposalId ? " · " + t.selectedProposalId : "",
|
|
703
|
+
t.note ? " · " + t.note : ""
|
|
704
|
+
] }, t.version)) }),
|
|
705
|
+
/* @__PURE__ */ l("div", {
|
|
706
|
+
className: "actions",
|
|
707
|
+
children: [
|
|
708
|
+
/* @__PURE__ */ l("label", {
|
|
709
|
+
className: "field",
|
|
710
|
+
children: [v(e, "Earlier version"), /* @__PURE__ */ c("select", {
|
|
711
|
+
disabled: n,
|
|
712
|
+
value: s,
|
|
713
|
+
onChange: (e) => f(Number(e.target.value)),
|
|
714
|
+
children: a.map((e) => /* @__PURE__ */ l("option", {
|
|
715
|
+
value: e.version,
|
|
716
|
+
children: ["v", e.version]
|
|
717
|
+
}, e.version))
|
|
718
|
+
})]
|
|
719
|
+
}),
|
|
720
|
+
/* @__PURE__ */ l("label", {
|
|
721
|
+
className: "field",
|
|
722
|
+
children: [v(e, "Later version"), /* @__PURE__ */ c("select", {
|
|
723
|
+
disabled: n,
|
|
724
|
+
value: u,
|
|
725
|
+
onChange: (e) => p(Number(e.target.value)),
|
|
726
|
+
children: a.map((e) => /* @__PURE__ */ l("option", {
|
|
727
|
+
value: e.version,
|
|
728
|
+
children: ["v", e.version]
|
|
729
|
+
}, e.version))
|
|
730
|
+
})]
|
|
731
|
+
}),
|
|
732
|
+
/* @__PURE__ */ c("button", {
|
|
733
|
+
className: "outline",
|
|
734
|
+
disabled: n || s === u || !g || !_,
|
|
735
|
+
onClick: m,
|
|
736
|
+
children: v(e, "Compare saved versions")
|
|
737
|
+
}),
|
|
738
|
+
/* @__PURE__ */ c("button", {
|
|
739
|
+
className: "outline",
|
|
740
|
+
disabled: n || r || s === t || !g,
|
|
741
|
+
onClick: h,
|
|
742
|
+
children: v(e, "Restore earlier version")
|
|
743
|
+
})
|
|
744
|
+
]
|
|
745
|
+
}),
|
|
746
|
+
o && /* @__PURE__ */ l("article", {
|
|
747
|
+
className: "comparison-summary",
|
|
748
|
+
role: "status",
|
|
749
|
+
children: [
|
|
750
|
+
/* @__PURE__ */ l("h4", { children: [
|
|
751
|
+
"v",
|
|
752
|
+
o.leftVersion,
|
|
753
|
+
" → v",
|
|
754
|
+
o.rightVersion
|
|
755
|
+
] }),
|
|
756
|
+
o.areaDeltaM2 != null && /* @__PURE__ */ l("p", { children: [
|
|
757
|
+
v(e, "Footprint area change"),
|
|
758
|
+
": ",
|
|
759
|
+
o.areaDeltaM2.toLocaleString(e, { maximumFractionDigits: 4 }),
|
|
760
|
+
" m² ",
|
|
761
|
+
/* @__PURE__ */ l("small", {
|
|
762
|
+
className: "value-tag",
|
|
763
|
+
children: [
|
|
764
|
+
v(e, "calculated"),
|
|
765
|
+
" · ",
|
|
766
|
+
v(e, "unconfirmed")
|
|
767
|
+
]
|
|
768
|
+
})
|
|
769
|
+
] }),
|
|
770
|
+
/* @__PURE__ */ c("p", { children: v(e, "Engine comparison of saved inputs. Source measurements retain their uncertainty.") }),
|
|
771
|
+
/* @__PURE__ */ l("p", { children: [
|
|
772
|
+
v(e, "Selected layout"),
|
|
773
|
+
": ",
|
|
774
|
+
o.leftProposalId ?? "—",
|
|
775
|
+
" → ",
|
|
776
|
+
o.rightProposalId ?? "—"
|
|
777
|
+
] }),
|
|
778
|
+
/* @__PURE__ */ c("h4", { children: v(e, "Changed inputs") }),
|
|
779
|
+
o.changedInputs.length ? /* @__PURE__ */ c("ul", { children: o.changedInputs.map((e, t) => /* @__PURE__ */ c("li", { children: e }, t)) }) : /* @__PURE__ */ c("p", { children: v(e, "No input changes reported.") })
|
|
780
|
+
]
|
|
781
|
+
})
|
|
782
|
+
]
|
|
783
|
+
})]
|
|
784
|
+
});
|
|
785
|
+
}
|
|
606
786
|
// src/packageVersion.ts
|
|
607
|
-
var
|
|
787
|
+
var te = "0.1.2";
|
|
608
788
|
// src/licensing.ts
|
|
609
|
-
|
|
610
|
-
var
|
|
611
|
-
function
|
|
612
|
-
|
|
789
|
+
d();
|
|
790
|
+
var ne = "bim", y = te, b = "https://licenseapi.polycyphers.com/api/license/revoked.json", re = "polycyphers-revocation-list", x = 1048576, S = 86400, ie = 6e4, ae = "", C = 0, oe = "not_set", w = null, T = null, E = /* @__PURE__ */ new Set();
|
|
791
|
+
function se(e) {
|
|
792
|
+
p(e === "karamentreprises" ? "karament" : null);
|
|
613
793
|
}
|
|
614
|
-
|
|
615
|
-
let
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
794
|
+
function ce(e) {
|
|
795
|
+
let t = typeof e == "string" ? e.trim() : "";
|
|
796
|
+
if (t !== ae) {
|
|
797
|
+
ae = t, C++, w = null, oe = t ? "checking" : "not_set";
|
|
798
|
+
for (let e of E) try {
|
|
799
|
+
e();
|
|
800
|
+
} catch {}
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
function D() {
|
|
804
|
+
ce("");
|
|
805
|
+
}
|
|
806
|
+
function O(e) {
|
|
807
|
+
return E.add(e), () => {
|
|
808
|
+
E.delete(e);
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
function le() {
|
|
812
|
+
return w ? Date.now() >= w.expires ? "expired" : Date.now() < w.until ? w.status : "checking" : oe;
|
|
813
|
+
}
|
|
814
|
+
function ue(e) {
|
|
815
|
+
return !!e && typeof e == "object" && !Array.isArray(e);
|
|
816
|
+
}
|
|
817
|
+
function k(e, t = 256) {
|
|
818
|
+
return typeof e == "string" && e.length > 0 && e.length <= t && !/[\u0000-\u001f\u007f]/.test(e);
|
|
819
|
+
}
|
|
820
|
+
function A(e) {
|
|
821
|
+
return typeof e == "number" && Number.isSafeInteger(e) && e > 0;
|
|
822
|
+
}
|
|
823
|
+
function de(e) {
|
|
824
|
+
if (e.length > 32768 || !/^[-_A-Za-z0-9]+\.[-_A-Za-z0-9]+$/.test(e)) return null;
|
|
825
|
+
try {
|
|
826
|
+
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));
|
|
827
|
+
return ue(n) ? n : null;
|
|
828
|
+
} catch {
|
|
829
|
+
return null;
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
function fe(e) {
|
|
833
|
+
if (e === "*") return !0;
|
|
834
|
+
let t = e.split("."), n = y.split(".");
|
|
835
|
+
return t.length <= 3 && t.every((e, t) => e === "x" || e === "*" || /^\d+$/.test(e) && e === n[t]);
|
|
836
|
+
}
|
|
837
|
+
function j(e) {
|
|
838
|
+
if (!k(e, 253)) return !1;
|
|
839
|
+
let t = e.toLowerCase().replace(/^\*\./, "").replace(/^\./, "");
|
|
840
|
+
return /^\[[0-9a-f:]+\]$/.test(t) || t.split(".").every((e) => /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/.test(e));
|
|
841
|
+
}
|
|
842
|
+
function pe(e, t) {
|
|
843
|
+
let n = e.toLowerCase();
|
|
844
|
+
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;
|
|
845
|
+
}
|
|
846
|
+
async function me(e) {
|
|
847
|
+
if (!e.ok) throw Error("License service unavailable");
|
|
848
|
+
let t = e.headers.get("content-length");
|
|
849
|
+
if (t && (!/^\d+$/.test(t) || Number(t) > x)) throw Error("License response too large");
|
|
850
|
+
if (!e.body) throw Error("License response missing");
|
|
851
|
+
let n = e.body.getReader(), r = 0, i = [];
|
|
852
|
+
try {
|
|
853
|
+
for (;;) {
|
|
854
|
+
let e = await n.read();
|
|
855
|
+
if (e.done) break;
|
|
856
|
+
if (r += e.value.byteLength, r > x) throw Error("License response too large");
|
|
857
|
+
i.push(e.value);
|
|
858
|
+
}
|
|
859
|
+
} finally {
|
|
860
|
+
await n.cancel().catch(() => {}), n.releaseLock();
|
|
861
|
+
}
|
|
862
|
+
let a = new Uint8Array(r), o = 0;
|
|
863
|
+
for (let e of i) a.set(e, o), o += e.byteLength;
|
|
864
|
+
return JSON.parse(new TextDecoder("utf-8", { fatal: !0 }).decode(a));
|
|
865
|
+
}
|
|
866
|
+
async function he(e, t) {
|
|
867
|
+
let n = new AbortController(), r = setTimeout(() => n.abort(), 8e3);
|
|
868
|
+
try {
|
|
869
|
+
let r = await me(await fetch(b, {
|
|
870
|
+
credentials: "omit",
|
|
871
|
+
cache: "no-store",
|
|
872
|
+
redirect: "error",
|
|
873
|
+
signal: n.signal
|
|
874
|
+
}));
|
|
875
|
+
if (!ue(r) || typeof r.token != "string" || r.token.length > x || !A(r.iat) || !Array.isArray(r.revoked) || r.revoked.length > 1e5 || !r.revoked.every((e) => k(e, 128))) throw Error("Invalid revocation envelope");
|
|
876
|
+
let i = r.revoked, a = await m(r.token, re, t);
|
|
877
|
+
if (!a.ok) throw Error("Invalid signed revocation list");
|
|
878
|
+
let o = a.payload;
|
|
879
|
+
if (!A(o.iat) || !A(o.exp) || o.exp <= t || o.exp <= o.iat || o.exp - o.iat > S || o.iat > t + 60 || t - o.iat > S || o.iat !== r.iat || !Array.isArray(o.revoked) || o.revoked.length !== r.revoked.length || !o.revoked.every((e, t) => k(e, 128) && e === i[t])) throw Error("Stale or inconsistent revocation list");
|
|
880
|
+
return {
|
|
881
|
+
revoked: r.revoked.includes(e),
|
|
882
|
+
expires: Math.min(o.exp, o.iat + S) * 1e3
|
|
883
|
+
};
|
|
884
|
+
} finally {
|
|
885
|
+
clearTimeout(r);
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
async function ge(e = !1) {
|
|
889
|
+
let t = le();
|
|
890
|
+
if (!e && t === "licensed") return t;
|
|
891
|
+
if (!ae) return "not_set";
|
|
892
|
+
if (T?.epoch === C) return T.promise;
|
|
893
|
+
let n = C, r = ae, i = (async () => {
|
|
894
|
+
let e = "invalid_signature", t = null;
|
|
895
|
+
try {
|
|
896
|
+
let n = de(r);
|
|
897
|
+
if (!n || !k(n.sub)) return "invalid_signature";
|
|
898
|
+
let i = Math.floor(Date.now() / 1e3), a = await m(r, n.sub, i);
|
|
899
|
+
if (!a.ok) return a.status;
|
|
900
|
+
let o = a.payload;
|
|
901
|
+
if (!k(o.sub) || !k(o.jti, 128) || !A(o.iat) || !A(o.exp) || o.iat > i + 60 || o.exp <= o.iat) return "invalid_signature";
|
|
902
|
+
if (![
|
|
903
|
+
"pro",
|
|
904
|
+
"team",
|
|
905
|
+
"enterprise",
|
|
906
|
+
"internal"
|
|
907
|
+
].includes(String(o.tier))) return "wrong_tier";
|
|
908
|
+
if (o.exp <= i) return "expired";
|
|
909
|
+
if (!Array.isArray(o.pkg) || !o.pkg.length || o.pkg.length > 32 || !o.pkg.every((e) => k(e, 128)) || !o.pkg.includes("bim") || o.pkg.includes("Polycyphers.Bim")) return "wrong_package";
|
|
910
|
+
if (typeof o.ver != "string" || o.ver.length > 64 || !fe(o.ver)) return "wrong_version";
|
|
911
|
+
let s = typeof location > "u" ? "" : location.hostname.toLowerCase();
|
|
912
|
+
if (!s || !Array.isArray(o.dom) || !o.dom.length || o.dom.length > 64 || !o.dom.every(j) || !o.dom.some((e) => pe(e, s))) return "wrong_domain";
|
|
913
|
+
let c = await he(o.jti, i);
|
|
914
|
+
if (c.revoked) return "revoked";
|
|
915
|
+
let l = Math.min(o.exp * 1e3, c.expires);
|
|
916
|
+
return o.exp * 1e3 <= Date.now() ? "expired" : l <= Date.now() ? "unavailable" : (e = "licensed", t = {
|
|
917
|
+
until: Math.min(l, Date.now() + ie),
|
|
918
|
+
expires: l,
|
|
919
|
+
status: e
|
|
920
|
+
}, e);
|
|
921
|
+
} catch {
|
|
922
|
+
return "unavailable";
|
|
923
|
+
} finally {
|
|
924
|
+
n === C && (w = t, oe = t?.status ?? "unavailable");
|
|
925
|
+
}
|
|
926
|
+
})();
|
|
927
|
+
T = {
|
|
928
|
+
epoch: n,
|
|
929
|
+
promise: i
|
|
930
|
+
};
|
|
931
|
+
try {
|
|
932
|
+
let e = await i;
|
|
933
|
+
return n === C ? (oe = e, e) : le();
|
|
934
|
+
} finally {
|
|
935
|
+
T?.promise === i && (T = null);
|
|
936
|
+
}
|
|
620
937
|
}
|
|
621
|
-
var x = f;
|
|
622
938
|
// src/studioState.ts
|
|
623
|
-
function
|
|
939
|
+
function _e(e, t) {
|
|
624
940
|
if (typeof e.priceMinorUnits != "number" || !Number.isFinite(e.priceMinorUnits) || typeof e.currency != "string") return null;
|
|
625
941
|
try {
|
|
626
942
|
let n = new Intl.NumberFormat(t, {
|
|
@@ -632,29 +948,29 @@ function ae(e, t) {
|
|
|
632
948
|
return null;
|
|
633
949
|
}
|
|
634
950
|
}
|
|
635
|
-
function
|
|
951
|
+
function ve(e) {
|
|
636
952
|
return typeof e.freeProposalGenerations == "number" && typeof e.freeBimExports == "number" ? {
|
|
637
953
|
proposals: e.freeProposalGenerations,
|
|
638
954
|
exports: e.freeBimExports
|
|
639
955
|
} : null;
|
|
640
956
|
}
|
|
641
|
-
function
|
|
957
|
+
function ye(e) {
|
|
642
958
|
return "polycyphers.bim.project.v1:" + encodeURIComponent(e);
|
|
643
959
|
}
|
|
644
|
-
function
|
|
960
|
+
function be(e, t) {
|
|
645
961
|
try {
|
|
646
|
-
let n = e.getItem(
|
|
962
|
+
let n = e.getItem(ye(t));
|
|
647
963
|
return n && /^[a-f0-9]{32}$/i.test(n) ? n : null;
|
|
648
964
|
} catch {
|
|
649
965
|
return null;
|
|
650
966
|
}
|
|
651
967
|
}
|
|
652
|
-
function
|
|
968
|
+
function xe(e, t, n) {
|
|
653
969
|
try {
|
|
654
|
-
n && /^[a-f0-9]{32}$/i.test(n) ? e.setItem(
|
|
970
|
+
n && /^[a-f0-9]{32}$/i.test(n) ? e.setItem(ye(t), n) : e.removeItem(ye(t));
|
|
655
971
|
} catch {}
|
|
656
972
|
}
|
|
657
|
-
function
|
|
973
|
+
function Se(e) {
|
|
658
974
|
return {
|
|
659
975
|
footprint: { edges: Array.from({ length: 4 }, (e, t) => ({
|
|
660
976
|
id: "W" + (t + 1),
|
|
@@ -684,7 +1000,7 @@ function ue(e) {
|
|
|
684
1000
|
language: e
|
|
685
1001
|
};
|
|
686
1002
|
}
|
|
687
|
-
function
|
|
1003
|
+
function Ce(e) {
|
|
688
1004
|
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.";
|
|
689
1005
|
if (e.programme) {
|
|
690
1006
|
let t = e.programme;
|
|
@@ -700,124 +1016,138 @@ function de(e) {
|
|
|
700
1016
|
}
|
|
701
1017
|
return null;
|
|
702
1018
|
}
|
|
703
|
-
function
|
|
1019
|
+
function we(e, t) {
|
|
704
1020
|
return !!e && !!t && e.isChanged && e.expectedVersion === t.version && e.snapshot.projectId === t.projectId;
|
|
705
1021
|
}
|
|
1022
|
+
function Te(e) {
|
|
1023
|
+
let t = e?.toLowerCase().split(/[-_]/)[0];
|
|
1024
|
+
return t === "de" || t === "fr" || t === "ar" ? t : "en";
|
|
1025
|
+
}
|
|
1026
|
+
function M(e, t, n) {
|
|
1027
|
+
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";
|
|
1028
|
+
}
|
|
1029
|
+
function Ee(e, t, n) {
|
|
1030
|
+
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) => M(e, t, n) === "user-given");
|
|
1031
|
+
return {
|
|
1032
|
+
...e,
|
|
1033
|
+
valueOrigins: { userGivenPaths: [...r.filter((e) => e.toLowerCase() !== t.toLowerCase()), t] }
|
|
1034
|
+
};
|
|
1035
|
+
}
|
|
706
1036
|
// src/BimStudio.tsx
|
|
707
|
-
var
|
|
708
|
-
function
|
|
709
|
-
let e =
|
|
710
|
-
return /* @__PURE__ */
|
|
1037
|
+
var N = e("baulynq"), De = () => location.pathname === "/verify-email" || location.pathname === "/verify", P = () => crypto.randomUUID().replaceAll("-", "");
|
|
1038
|
+
function Oe() {
|
|
1039
|
+
let e = n(N);
|
|
1040
|
+
return /* @__PURE__ */ l("span", {
|
|
711
1041
|
className: "brand",
|
|
712
|
-
children: [/* @__PURE__ */
|
|
1042
|
+
children: [/* @__PURE__ */ c("svg", {
|
|
713
1043
|
viewBox: "0 0 28 28",
|
|
714
1044
|
"aria-hidden": "true",
|
|
715
|
-
children: /* @__PURE__ */
|
|
716
|
-
}), /* @__PURE__ */
|
|
1045
|
+
children: /* @__PURE__ */ c("path", { d: "M4 23V5h13v7h7v11H4m7 0V12h6m0 0V5" })
|
|
1046
|
+
}), /* @__PURE__ */ l("strong", { children: [e === "karamentreprises" ? "Karamentreprises" : "BauLynq", /* @__PURE__ */ c("span", { children: e === "karamentreprises" ? "BIM" : "Vision" })] })]
|
|
717
1047
|
});
|
|
718
1048
|
}
|
|
719
|
-
function
|
|
720
|
-
return /* @__PURE__ */
|
|
1049
|
+
function ke() {
|
|
1050
|
+
return /* @__PURE__ */ c("span", {
|
|
721
1051
|
"aria-hidden": "true",
|
|
722
1052
|
children: "↗"
|
|
723
1053
|
});
|
|
724
1054
|
}
|
|
725
|
-
function
|
|
726
|
-
return /* @__PURE__ */
|
|
1055
|
+
function Ae() {
|
|
1056
|
+
return /* @__PURE__ */ l("svg", {
|
|
727
1057
|
viewBox: "0 0 450 340",
|
|
728
1058
|
role: "img",
|
|
729
1059
|
"aria-label": "Illustrative hand sketch of the reference footprint",
|
|
730
1060
|
children: [
|
|
731
|
-
/* @__PURE__ */
|
|
1061
|
+
/* @__PURE__ */ c("defs", { children: /* @__PURE__ */ c("pattern", {
|
|
732
1062
|
id: "sketchgrid",
|
|
733
1063
|
width: "16",
|
|
734
1064
|
height: "16",
|
|
735
1065
|
patternUnits: "userSpaceOnUse",
|
|
736
|
-
children: /* @__PURE__ */
|
|
1066
|
+
children: /* @__PURE__ */ c("path", {
|
|
737
1067
|
d: "M16 0H0V16",
|
|
738
1068
|
fill: "none",
|
|
739
1069
|
stroke: "#e9e4d8",
|
|
740
1070
|
strokeWidth: ".5"
|
|
741
1071
|
})
|
|
742
1072
|
}) }),
|
|
743
|
-
/* @__PURE__ */
|
|
1073
|
+
/* @__PURE__ */ c("rect", {
|
|
744
1074
|
width: "450",
|
|
745
1075
|
height: "340",
|
|
746
1076
|
fill: "url(#sketchgrid)"
|
|
747
1077
|
}),
|
|
748
|
-
/* @__PURE__ */
|
|
1078
|
+
/* @__PURE__ */ l("g", {
|
|
749
1079
|
transform: "translate(66 53) rotate(-4 140 110)",
|
|
750
1080
|
fill: "none",
|
|
751
1081
|
stroke: "#77776e",
|
|
752
1082
|
strokeWidth: "2.2",
|
|
753
1083
|
strokeLinecap: "round",
|
|
754
1084
|
children: [
|
|
755
|
-
/* @__PURE__ */
|
|
756
|
-
/* @__PURE__ */
|
|
1085
|
+
/* @__PURE__ */ c("path", { d: "M12 233L255 235l-1-37 56 1-2-159-19-17L18 22Z" }),
|
|
1086
|
+
/* @__PURE__ */ c("path", {
|
|
757
1087
|
d: "M13 232L17 21l272 4 19 14 2 160-55-2v36Z",
|
|
758
1088
|
opacity: ".4"
|
|
759
1089
|
}),
|
|
760
|
-
/* @__PURE__ */
|
|
1090
|
+
/* @__PURE__ */ c("path", {
|
|
761
1091
|
d: "M129 232V115h178M130 154h74v77",
|
|
762
1092
|
strokeDasharray: "5 7"
|
|
763
1093
|
}),
|
|
764
|
-
/* @__PURE__ */
|
|
1094
|
+
/* @__PURE__ */ c("path", {
|
|
765
1095
|
d: "M324 70v72m-5-7 5 8 5-8",
|
|
766
1096
|
stroke: "#328577"
|
|
767
1097
|
})
|
|
768
1098
|
]
|
|
769
1099
|
}),
|
|
770
|
-
/* @__PURE__ */
|
|
1100
|
+
/* @__PURE__ */ l("g", {
|
|
771
1101
|
fontFamily: "monospace",
|
|
772
1102
|
fontSize: "15",
|
|
773
1103
|
fill: "#72756e",
|
|
774
1104
|
transform: "rotate(-4 200 170)",
|
|
775
1105
|
children: [
|
|
776
|
-
/* @__PURE__ */
|
|
1106
|
+
/* @__PURE__ */ l("text", {
|
|
777
1107
|
x: "145",
|
|
778
1108
|
y: "62",
|
|
779
|
-
children: ["8.34", /* @__PURE__ */
|
|
1109
|
+
children: ["8.34", /* @__PURE__ */ c("tspan", {
|
|
780
1110
|
fontSize: "7",
|
|
781
1111
|
children: " [user-given]"
|
|
782
1112
|
})]
|
|
783
1113
|
}),
|
|
784
|
-
/* @__PURE__ */
|
|
1114
|
+
/* @__PURE__ */ l("text", {
|
|
785
1115
|
x: "165",
|
|
786
1116
|
y: "318",
|
|
787
|
-
children: ["7.40", /* @__PURE__ */
|
|
1117
|
+
children: ["7.40", /* @__PURE__ */ c("tspan", {
|
|
788
1118
|
fontSize: "7",
|
|
789
1119
|
children: " [user-given]"
|
|
790
1120
|
})]
|
|
791
1121
|
}),
|
|
792
|
-
/* @__PURE__ */
|
|
1122
|
+
/* @__PURE__ */ l("text", {
|
|
793
1123
|
x: "21",
|
|
794
1124
|
y: "172",
|
|
795
1125
|
transform: "rotate(-90 21 172)",
|
|
796
|
-
children: ["6.40", /* @__PURE__ */
|
|
1126
|
+
children: ["6.40", /* @__PURE__ */ c("tspan", {
|
|
797
1127
|
fontSize: "7",
|
|
798
1128
|
children: " [user-given]"
|
|
799
1129
|
})]
|
|
800
1130
|
}),
|
|
801
|
-
/* @__PURE__ */
|
|
1131
|
+
/* @__PURE__ */ l("text", {
|
|
802
1132
|
x: "387",
|
|
803
1133
|
y: "153",
|
|
804
1134
|
transform: "rotate(90 387 153)",
|
|
805
|
-
children: ["4.81", /* @__PURE__ */
|
|
1135
|
+
children: ["4.81", /* @__PURE__ */ c("tspan", {
|
|
806
1136
|
fontSize: "7",
|
|
807
1137
|
children: " [user-given]"
|
|
808
1138
|
})]
|
|
809
1139
|
}),
|
|
810
|
-
/* @__PURE__ */
|
|
1140
|
+
/* @__PURE__ */ l("text", {
|
|
811
1141
|
x: "307",
|
|
812
1142
|
y: "282",
|
|
813
|
-
children: ["1.70", /* @__PURE__ */
|
|
1143
|
+
children: ["1.70", /* @__PURE__ */ c("tspan", {
|
|
814
1144
|
fontSize: "7",
|
|
815
1145
|
children: " [user-given]"
|
|
816
1146
|
})]
|
|
817
1147
|
})
|
|
818
1148
|
]
|
|
819
1149
|
}),
|
|
820
|
-
/* @__PURE__ */
|
|
1150
|
+
/* @__PURE__ */ c("text", {
|
|
821
1151
|
x: "29",
|
|
822
1152
|
y: "32",
|
|
823
1153
|
fontFamily: "monospace",
|
|
@@ -828,83 +1158,128 @@ function ge() {
|
|
|
828
1158
|
]
|
|
829
1159
|
});
|
|
830
1160
|
}
|
|
831
|
-
function
|
|
832
|
-
let
|
|
833
|
-
|
|
834
|
-
let e = !0,
|
|
835
|
-
|
|
836
|
-
let
|
|
837
|
-
if (
|
|
838
|
-
|
|
1161
|
+
function je(e = {}) {
|
|
1162
|
+
let n = e.brand ?? "baulynq", i = Te(e.language ?? e.initialInput?.language ?? (typeof navigator > "u" ? "en" : navigator.language)), [o, s] = a("checking"), [u, d] = a(0);
|
|
1163
|
+
r(() => {
|
|
1164
|
+
let e = !0, t = !1, r = !1;
|
|
1165
|
+
se(n);
|
|
1166
|
+
let i = async () => {
|
|
1167
|
+
if (t) r = !0;
|
|
1168
|
+
else {
|
|
1169
|
+
t = !0;
|
|
839
1170
|
try {
|
|
840
|
-
let t = await
|
|
841
|
-
e &&
|
|
1171
|
+
let t = await ge(!0);
|
|
1172
|
+
e && s(t);
|
|
842
1173
|
} catch {
|
|
843
|
-
e &&
|
|
1174
|
+
e && s("unavailable");
|
|
844
1175
|
} finally {
|
|
845
|
-
|
|
1176
|
+
t = !1, r && e && (r = !1, i());
|
|
846
1177
|
}
|
|
847
1178
|
}
|
|
848
1179
|
};
|
|
849
|
-
|
|
850
|
-
let
|
|
851
|
-
|
|
1180
|
+
i();
|
|
1181
|
+
let a = O(() => {
|
|
1182
|
+
e && s("checking"), i();
|
|
852
1183
|
}), o = setInterval(() => {
|
|
853
|
-
|
|
854
|
-
}, 3e4)
|
|
1184
|
+
i();
|
|
1185
|
+
}, 3e4), c = setInterval(() => {
|
|
1186
|
+
let t = le();
|
|
1187
|
+
e && t !== "licensed" && s(t);
|
|
1188
|
+
}, 1e3);
|
|
855
1189
|
return () => {
|
|
856
|
-
e = !1, clearInterval(o),
|
|
1190
|
+
e = !1, clearInterval(o), clearInterval(c), a();
|
|
857
1191
|
};
|
|
858
|
-
}, [
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
1192
|
+
}, [n, u]);
|
|
1193
|
+
let f = t(async (t, n) => {
|
|
1194
|
+
let r = await ge(), i = le();
|
|
1195
|
+
if (r !== "licensed" || i !== "licensed") throw s(i), new DOMException("A valid component license is required.", "AbortError");
|
|
1196
|
+
return e.transport ? e.transport(t, n) : fetch("/v1" + t, n);
|
|
1197
|
+
}, [e.transport]), p = o === "licensed";
|
|
1198
|
+
return /* @__PURE__ */ c(N.Provider, {
|
|
1199
|
+
value: n,
|
|
1200
|
+
children: p ? /* @__PURE__ */ c(Me, {
|
|
1201
|
+
...e,
|
|
1202
|
+
transport: f
|
|
1203
|
+
}, e.embedded ? e.workspaceKey ?? "unscoped" : "public") : /* @__PURE__ */ l("section", {
|
|
1204
|
+
className: "bim-studio bim-license-gate",
|
|
1205
|
+
dir: i === "ar" ? "rtl" : "ltr",
|
|
1206
|
+
"aria-label": "Component licensing",
|
|
863
1207
|
children: [
|
|
864
|
-
|
|
865
|
-
"
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
1208
|
+
/* @__PURE__ */ c(Oe, {}),
|
|
1209
|
+
/* @__PURE__ */ c("h1", { children: v(i, o === "checking" ? "Verifying component license…" : "A valid component license is required") }),
|
|
1210
|
+
/* @__PURE__ */ l("p", { children: [
|
|
1211
|
+
n === "karamentreprises" ? "Karamentreprises BIM" : "BauLynq Vision",
|
|
1212
|
+
" · ",
|
|
1213
|
+
o
|
|
1214
|
+
] }),
|
|
1215
|
+
/* @__PURE__ */ c("p", { children: v(i, "The studio stays closed until its installation license and signed revocation status are verified.") }),
|
|
1216
|
+
o !== "checking" && /* @__PURE__ */ c("button", {
|
|
1217
|
+
className: "outline",
|
|
1218
|
+
onClick: () => d((e) => e + 1),
|
|
1219
|
+
children: v(i, "Check license again")
|
|
1220
|
+
}),
|
|
1221
|
+
/* @__PURE__ */ l("a", {
|
|
1222
|
+
href: n === "karamentreprises" ? "https://packages.karamentreprises.com/bim" : "https://packages.polycyphers.com/bim",
|
|
1223
|
+
children: [v(i, "License management"), " ↗"]
|
|
871
1224
|
})
|
|
872
1225
|
]
|
|
873
|
-
})
|
|
1226
|
+
})
|
|
874
1227
|
});
|
|
875
1228
|
}
|
|
876
|
-
function
|
|
877
|
-
let [
|
|
1229
|
+
function Me({ embedded: e = !1, transport: t, initialInput: n, workspaceKey: u, language: d, onStateChange: f, brand: p = "baulynq" } = {}) {
|
|
1230
|
+
let [m, h] = a(() => Te(d ?? n?.language ?? (typeof navigator > "u" ? "en" : navigator.language))), [_, te] = a(e || location.pathname === "/studio" ? "studio" : "home"), [ne, y] = a("measure"), [b, re] = a(null), [x, S] = a(n ?? null), [ie, ae] = a("A"), [C, oe] = a(!1), [w, T] = a(""), [E, se] = a(""), [ce, D] = a(""), [O, ue] = a(null), [k, A] = a(null), [de, fe] = a(null), [j, pe] = a(""), [me, he] = a(!e && De()), [ge, ye] = a(""), [M, Ee] = a(""), [N, je] = a({}), [Me, Ie] = a(!1), [I, Le] = a(De() ? "verify" : "login"), [Re, ze] = a(() => De() ? new URLSearchParams(location.search).get("token") ?? "" : ""), [Be, Ve] = a(), [He, Ue] = a(null), [L, R] = a(null), [z, We] = a(null), [Ge, Ke] = a(""), [B, qe] = a(null), [Je, Ye] = a([]), [Xe, Ze] = a(!1), [Qe, $e] = a(!1), [et, tt] = a(!1), [nt, rt] = a(null), [it, at] = a(null), [ot, st] = a(null), [ct, lt] = a(!1), [ut, dt] = a(1), [ft, pt] = a(1), [mt, ht] = a(!1), [gt, _t] = a(!1), [vt, yt] = a(!1), [V, bt] = a(null), [xt, St] = a(!1), [Ct, wt] = a([]), [Tt, Et] = a([]), [Dt, Ot] = a(!1), [kt, At] = a([]), [jt, Mt] = a(), Nt = i(null), Pt = i(!1), Ft = i(!0), H = i(0), It = i(""), Lt = i(void 0), Rt = i(u), U = g[m], W = u ?? Be, zt = i(f), Bt = mt || !!E.trim() || !!L || !!z && !B || xt;
|
|
1231
|
+
r(() => {
|
|
1232
|
+
zt.current = f;
|
|
1233
|
+
}, [f]), r(() => {
|
|
1234
|
+
zt.current?.({
|
|
1235
|
+
busy: C,
|
|
1236
|
+
hasUnsavedChanges: Bt
|
|
1237
|
+
});
|
|
1238
|
+
}, [C, Bt]), r(() => () => {
|
|
1239
|
+
zt.current?.({
|
|
1240
|
+
busy: !1,
|
|
1241
|
+
hasUnsavedChanges: !1
|
|
1242
|
+
});
|
|
1243
|
+
}, []), r(() => {
|
|
1244
|
+
at(null), st(null), dt(Math.max(1, (b?.version ?? 1) - 1)), pt(b?.version ?? 1), b || lt(!1);
|
|
1245
|
+
}, [b?.projectId, b?.version]);
|
|
1246
|
+
let G = L?.snapshot ?? b, K = G?.proposals.find((e) => e.id === ie) ?? G?.proposals[0], Vt = _e(N, m), Ht = ve(N), Ut = typeof N.checkoutAvailable == "boolean" ? N.checkoutAvailable : N.checkoutEnabled === !0, q = [
|
|
878
1247
|
"paidRegenerations",
|
|
879
1248
|
"chatRefinementsPerProject",
|
|
880
1249
|
"exportsPerPaidProject"
|
|
881
|
-
].every((e) => typeof
|
|
882
|
-
regenerations: Number(
|
|
883
|
-
chat: Number(
|
|
884
|
-
exports: Number(
|
|
1250
|
+
].every((e) => typeof N[e] == "number" && Number.isInteger(N[e]) && Number(N[e]) >= 0) ? {
|
|
1251
|
+
regenerations: Number(N.paidRegenerations),
|
|
1252
|
+
chat: Number(N.chatRefinementsPerProject),
|
|
1253
|
+
exports: Number(N.exportsPerPaidProject)
|
|
885
1254
|
} : null;
|
|
886
|
-
|
|
887
|
-
|
|
1255
|
+
r(() => (Ft.current = !0, () => {
|
|
1256
|
+
Ft.current = !1, H.current++;
|
|
1257
|
+
}), []);
|
|
1258
|
+
function J(e) {
|
|
1259
|
+
let t = le();
|
|
1260
|
+
if (!Ft.current || e !== H.current || t !== "licensed") throw new DOMException("The verified session changed.", "AbortError");
|
|
888
1261
|
}
|
|
889
|
-
async function
|
|
890
|
-
let i =
|
|
891
|
-
|
|
1262
|
+
async function Wt(n, r) {
|
|
1263
|
+
let i = H.current;
|
|
1264
|
+
J(i);
|
|
1265
|
+
let a = new Headers(r?.headers).get("Authorization");
|
|
1266
|
+
if (!e && n !== "/session" && a && a !== "Bearer " + It.current) throw new DOMException("The verified session changed.", "AbortError");
|
|
892
1267
|
let o = await (t ? t(n, r) : fetch("/v1" + n, r));
|
|
893
|
-
if (n !== "/config" &&
|
|
1268
|
+
if (n !== "/config" && J(i), !e && o.status === 401 && !n.startsWith("/account/")) throw Kt(), Le("login"), he(!0), T("Sign in with a verified account to continue."), new DOMException("The verified session expired.", "AbortError");
|
|
894
1269
|
return o;
|
|
895
1270
|
}
|
|
896
|
-
function
|
|
897
|
-
|
|
1271
|
+
function Gt() {
|
|
1272
|
+
ht(!1), yt(!1), T(""), D(""), _t(!1), rt(null), Ye([]), At([]), Mt(void 0), bt(null), St(!1), wt([]), Ze(!1), $e(!1), se(""), re(null), Et([]), S(null), R(null), We(null), fe(null), A(null), ue(null), qe(null), Ue(null), tt(!1);
|
|
898
1273
|
}
|
|
899
|
-
function
|
|
900
|
-
(
|
|
1274
|
+
function Kt() {
|
|
1275
|
+
(b || Lt.current) && Gt(), H.current++, It.current = "", Lt.current = void 0, pe(""), Ve(void 0);
|
|
901
1276
|
}
|
|
902
|
-
async function
|
|
903
|
-
let i =
|
|
1277
|
+
async function Y(t, n, r) {
|
|
1278
|
+
let i = H.current, a = await Wt(t, {
|
|
904
1279
|
method: r ?? (n ? "POST" : "GET"),
|
|
905
1280
|
headers: {
|
|
906
1281
|
...n ? { "Content-Type": "application/json" } : {},
|
|
907
|
-
...!e &&
|
|
1282
|
+
...!e && j ? { Authorization: "Bearer " + j } : {}
|
|
908
1283
|
},
|
|
909
1284
|
body: n ? JSON.stringify(n) : void 0
|
|
910
1285
|
});
|
|
@@ -914,98 +1289,100 @@ function T({ embedded: e = !1, transport: t, initialInput: o, workspaceKey: s, b
|
|
|
914
1289
|
let e = await a.json();
|
|
915
1290
|
n = e.detail ?? e.title ?? e.error ?? n;
|
|
916
1291
|
} catch {}
|
|
917
|
-
throw
|
|
1292
|
+
throw J(i), a.status === 401 && (e || (Kt(), t.startsWith("/account/") || Le("login"), he(!0)), n = e ? "Your app session needs attention. Sign in again through your app." : "Sign in with a verified account to continue."), a.status === 402 && qt("paywall"), Error(n);
|
|
918
1293
|
}
|
|
919
1294
|
let o = a.status === 204 ? null : await a.json();
|
|
920
|
-
return
|
|
1295
|
+
return J(i), o;
|
|
921
1296
|
}
|
|
922
|
-
async function
|
|
923
|
-
if (!(e ||
|
|
924
|
-
await
|
|
1297
|
+
async function qt(t, n = Dt) {
|
|
1298
|
+
if (!(e || N.analyticsEnabled !== !0)) try {
|
|
1299
|
+
await Wt("/analytics/events", {
|
|
925
1300
|
method: "POST",
|
|
926
1301
|
headers: {
|
|
927
1302
|
"Content-Type": "application/json",
|
|
928
|
-
...
|
|
1303
|
+
...j ? { Authorization: "Bearer " + j } : {}
|
|
929
1304
|
},
|
|
930
1305
|
body: JSON.stringify({
|
|
931
|
-
eventId:
|
|
1306
|
+
eventId: P(),
|
|
932
1307
|
kind: t,
|
|
933
1308
|
consentGranted: n
|
|
934
1309
|
})
|
|
935
1310
|
});
|
|
936
1311
|
} catch {}
|
|
937
1312
|
}
|
|
938
|
-
function
|
|
939
|
-
|
|
1313
|
+
function Jt(e) {
|
|
1314
|
+
Ot(e), qt("visit", e);
|
|
940
1315
|
}
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
}, [
|
|
1316
|
+
r(() => {
|
|
1317
|
+
d !== void 0 && h(Te(d));
|
|
1318
|
+
}, [d]), r(() => {
|
|
1319
|
+
e || (document.documentElement.lang = m, document.documentElement.dir = m === "ar" ? "rtl" : "ltr");
|
|
1320
|
+
}, [m, e]), r(() => {
|
|
944
1321
|
let e = !0;
|
|
945
|
-
return
|
|
946
|
-
e &&
|
|
1322
|
+
return Wt("/config").then((e) => e.ok ? e.json() : Promise.reject()).then((t) => {
|
|
1323
|
+
e && je(t);
|
|
947
1324
|
}).catch(() => {}), () => {
|
|
948
1325
|
e = !1;
|
|
949
1326
|
};
|
|
950
|
-
}, [t]),
|
|
951
|
-
!e &&
|
|
952
|
-
}, [e]),
|
|
953
|
-
if (!
|
|
954
|
-
|
|
1327
|
+
}, [t]), r(() => {
|
|
1328
|
+
!e && De() && history.replaceState({}, "", location.pathname);
|
|
1329
|
+
}, [e]), r(() => {
|
|
1330
|
+
if (!z) {
|
|
1331
|
+
Ke("");
|
|
955
1332
|
return;
|
|
956
1333
|
}
|
|
957
|
-
let e = URL.createObjectURL(
|
|
958
|
-
return
|
|
959
|
-
}, [
|
|
960
|
-
e &&
|
|
961
|
-
}, [
|
|
962
|
-
if (!
|
|
963
|
-
let e =
|
|
964
|
-
if (
|
|
1334
|
+
let e = URL.createObjectURL(z);
|
|
1335
|
+
return Ke(e), () => URL.revokeObjectURL(e);
|
|
1336
|
+
}, [z]), r(() => {
|
|
1337
|
+
e && Rt.current !== u && (H.current++, Gt(), Rt.current = u);
|
|
1338
|
+
}, [u, e]), r(() => {
|
|
1339
|
+
if (!W) return;
|
|
1340
|
+
let e = be(localStorage, W);
|
|
1341
|
+
if (Ue(e), !e || x || b) return;
|
|
965
1342
|
let t = !0;
|
|
966
|
-
return
|
|
967
|
-
t && (
|
|
1343
|
+
return Y("/projects/" + e).then((e) => {
|
|
1344
|
+
t && (X(e), y(e.input.isDraft ? "measure" : "proposals"));
|
|
968
1345
|
}).catch((e) => {
|
|
969
|
-
t &&
|
|
1346
|
+
t && T(e instanceof Error ? e.message : "Could not resume the project.");
|
|
970
1347
|
}), () => {
|
|
971
1348
|
t = !1;
|
|
972
1349
|
};
|
|
973
|
-
}, [
|
|
974
|
-
function
|
|
975
|
-
e.input.isDraft ||
|
|
1350
|
+
}, [W]);
|
|
1351
|
+
function X(e) {
|
|
1352
|
+
J(H.current), rt(e.reconciliation), tt(!1), e.input.isDraft || (ht(!1), St(!1)), e.input.isDraft || wt([]), re(e), S(e.input.isDraft ? x ?? Se(m) : e.input), ae(e.selectedProposalId ?? e.proposals.find((e) => e.recommended)?.id ?? "A"), fe(null), A(null), ue(null), R(null), W && (xe(localStorage, W, e.projectId), Ue(e.projectId));
|
|
976
1353
|
}
|
|
977
|
-
async function
|
|
978
|
-
if (!
|
|
979
|
-
|
|
1354
|
+
async function Z(e) {
|
|
1355
|
+
if (!Pt.current) {
|
|
1356
|
+
Pt.current = !0, oe(!0), T("");
|
|
980
1357
|
try {
|
|
981
1358
|
await e();
|
|
982
1359
|
} catch (e) {
|
|
983
|
-
e instanceof DOMException && e.name === "AbortError" ||
|
|
1360
|
+
e instanceof DOMException && e.name === "AbortError" || T(e instanceof Error ? e.message : "Please try again.");
|
|
984
1361
|
} finally {
|
|
985
|
-
|
|
1362
|
+
Pt.current = !1, oe(!1);
|
|
986
1363
|
}
|
|
987
1364
|
}
|
|
988
1365
|
}
|
|
989
|
-
function
|
|
990
|
-
|
|
1366
|
+
function Q(t) {
|
|
1367
|
+
yt(!1), te(t), e || history.pushState({}, "", t === "home" ? "/" : "/studio"), window.scrollTo(0, 0);
|
|
991
1368
|
}
|
|
992
|
-
function
|
|
993
|
-
e ||
|
|
1369
|
+
function Yt(e = !1) {
|
|
1370
|
+
ht(!1), e || We(null), Ze(!1), $e(!1), Ye([]), At([]), Mt(void 0), bt(null), St(!1), wt([]), se(""), re(null), Et([]), S(Se(m)), R(null), fe(null), A(null), ue(null), tt(!1), rt(null), qe(null), y("measure"), Q("studio");
|
|
994
1371
|
}
|
|
995
|
-
async function
|
|
996
|
-
|
|
997
|
-
let e = await
|
|
998
|
-
|
|
999
|
-
})) :
|
|
1372
|
+
async function Xt() {
|
|
1373
|
+
N.mode === "local-demo" ? (Q("studio"), await Z(async () => {
|
|
1374
|
+
let e = await Y("/reference?language=" + m);
|
|
1375
|
+
S(e), ht(!1), tt(!1), y("measure"), D("Reference example loaded. Review its site-confirmed dimensions before generating.");
|
|
1376
|
+
})) : Yt();
|
|
1000
1377
|
}
|
|
1001
|
-
async function
|
|
1002
|
-
let r =
|
|
1003
|
-
if (!
|
|
1378
|
+
async function Zt(t, n) {
|
|
1379
|
+
let r = H.current;
|
|
1380
|
+
if (!Xe || !Qe) throw Error("Review the image permissions and AI disclosure before upload.");
|
|
1004
1381
|
let i = new FormData();
|
|
1005
1382
|
i.append("file", n), i.append("rightsAcknowledged", "true"), i.append("aiProcessingAcknowledged", "true");
|
|
1006
|
-
let a = await
|
|
1383
|
+
let a = await Wt(`/projects/${t.projectId}/uploads`, {
|
|
1007
1384
|
method: "POST",
|
|
1008
|
-
headers: !e &&
|
|
1385
|
+
headers: !e && j ? { Authorization: "Bearer " + j } : {},
|
|
1009
1386
|
body: i
|
|
1010
1387
|
});
|
|
1011
1388
|
if (!a.ok) {
|
|
@@ -1014,63 +1391,63 @@ function T({ embedded: e = !1, transport: t, initialInput: o, workspaceKey: s, b
|
|
|
1014
1391
|
let t = await a.json();
|
|
1015
1392
|
e = t.detail ?? t.title ?? t.error ?? e;
|
|
1016
1393
|
} catch {}
|
|
1017
|
-
throw
|
|
1394
|
+
throw J(r), Error(e);
|
|
1018
1395
|
}
|
|
1019
1396
|
let o = await a.json();
|
|
1020
|
-
|
|
1397
|
+
J(r), qe(o.upload.id), D("Sketch stored privately. Reading produces observations to confirm, never unchecked dimensions.");
|
|
1021
1398
|
}
|
|
1022
|
-
async function
|
|
1023
|
-
|
|
1024
|
-
let e =
|
|
1399
|
+
async function Qt() {
|
|
1400
|
+
x && await Z(async () => {
|
|
1401
|
+
let e = Ce(x);
|
|
1025
1402
|
if (e) throw Error(e);
|
|
1026
|
-
if (
|
|
1027
|
-
if (!
|
|
1403
|
+
if (z && !B && (!Xe || !Qe)) throw Error("Review the image permissions and AI disclosure, or remove the local image.");
|
|
1404
|
+
if (!et) throw Error("Confirm the measured dimensions and bearings before generating.");
|
|
1028
1405
|
let t = {
|
|
1029
|
-
...
|
|
1030
|
-
language:
|
|
1031
|
-
}, n = await
|
|
1032
|
-
if (
|
|
1033
|
-
let r =
|
|
1034
|
-
expectedVersion:
|
|
1035
|
-
operationId:
|
|
1406
|
+
...x,
|
|
1407
|
+
language: m
|
|
1408
|
+
}, n = await Y("/footprints/reconcile", t.footprint);
|
|
1409
|
+
if (rt(n), n.status !== "Unique") throw Error(n.findings.map((e) => e.message).join(" ") || "The footprint needs another confirmed measurement.");
|
|
1410
|
+
let r = b ? await Y(`/projects/${b.projectId}/edits`, {
|
|
1411
|
+
expectedVersion: b.version,
|
|
1412
|
+
operationId: P(),
|
|
1036
1413
|
edit: {
|
|
1037
1414
|
replaceInput: t,
|
|
1038
1415
|
note: "Confirmed measurements"
|
|
1039
1416
|
}
|
|
1040
|
-
}) : await
|
|
1041
|
-
projectId:
|
|
1042
|
-
operationId:
|
|
1417
|
+
}) : await Y("/projects", {
|
|
1418
|
+
projectId: P(),
|
|
1419
|
+
operationId: P(),
|
|
1043
1420
|
input: t
|
|
1044
1421
|
});
|
|
1045
|
-
|
|
1422
|
+
X(r), y(r.input.isDraft ? "measure" : "proposals"), z && !B && await Zt(r, z);
|
|
1046
1423
|
});
|
|
1047
1424
|
}
|
|
1048
|
-
async function
|
|
1049
|
-
|
|
1050
|
-
let e = await
|
|
1051
|
-
expectedVersion:
|
|
1052
|
-
operationId:
|
|
1053
|
-
message:
|
|
1425
|
+
async function $t() {
|
|
1426
|
+
E.trim() && b && await Z(async () => {
|
|
1427
|
+
let e = await Y(`/projects/${b.projectId}/chat`, {
|
|
1428
|
+
expectedVersion: b.version,
|
|
1429
|
+
operationId: P(),
|
|
1430
|
+
message: E
|
|
1054
1431
|
});
|
|
1055
|
-
|
|
1432
|
+
R(e.preview), D(e.reply), se(""), y("refine");
|
|
1056
1433
|
});
|
|
1057
1434
|
}
|
|
1058
|
-
async function
|
|
1059
|
-
if (!
|
|
1060
|
-
let e =
|
|
1061
|
-
await
|
|
1062
|
-
|
|
1435
|
+
async function en() {
|
|
1436
|
+
if (!we(L, b) || !L || !b) return;
|
|
1437
|
+
let e = L;
|
|
1438
|
+
await Z(async () => {
|
|
1439
|
+
X(await Y(`/projects/${b.projectId}/edits`, {
|
|
1063
1440
|
expectedVersion: e.expectedVersion,
|
|
1064
|
-
operationId:
|
|
1441
|
+
operationId: P(),
|
|
1065
1442
|
edit: e.edit
|
|
1066
1443
|
})), D("Preview applied as a new saved version.");
|
|
1067
1444
|
});
|
|
1068
1445
|
}
|
|
1069
|
-
async function
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
expectedVersion:
|
|
1073
|
-
operationId:
|
|
1446
|
+
async function tn(e) {
|
|
1447
|
+
b && !L && await Z(async () => {
|
|
1448
|
+
X(await Y(`/projects/${b.projectId}/edits`, {
|
|
1449
|
+
expectedVersion: b.version,
|
|
1450
|
+
operationId: P(),
|
|
1074
1451
|
edit: {
|
|
1075
1452
|
selectProposalId: e.id,
|
|
1076
1453
|
note: "Selected layout " + e.id
|
|
@@ -1078,328 +1455,348 @@ function T({ embedded: e = !1, transport: t, initialInput: o, workspaceKey: s, b
|
|
|
1078
1455
|
}));
|
|
1079
1456
|
});
|
|
1080
1457
|
}
|
|
1081
|
-
async function
|
|
1082
|
-
|
|
1083
|
-
let e = await
|
|
1084
|
-
|
|
1458
|
+
async function nn() {
|
|
1459
|
+
b && (ct ? lt(!1) : await Z(async () => {
|
|
1460
|
+
let e = await Y(`/projects/${b.projectId}/history`);
|
|
1461
|
+
at(e), lt(!0);
|
|
1462
|
+
}));
|
|
1463
|
+
}
|
|
1464
|
+
async function rn() {
|
|
1465
|
+
b && it?.some((e) => e.version === ut) && it.some((e) => e.version === ft) && await Z(async () => {
|
|
1466
|
+
st(await Y(`/projects/${b.projectId}/compare?left=${ut}&right=${ft}`));
|
|
1467
|
+
});
|
|
1468
|
+
}
|
|
1469
|
+
async function an() {
|
|
1470
|
+
b && ut !== b.version && !L && it?.some((e) => e.version === ut) && await Z(async () => {
|
|
1471
|
+
X(await Y(`/projects/${b.projectId}/undo`, {
|
|
1472
|
+
expectedVersion: b.version,
|
|
1473
|
+
targetVersion: ut,
|
|
1474
|
+
operationId: P()
|
|
1475
|
+
})), D(v(m, "Saved as a new version. Earlier versions are unchanged."));
|
|
1476
|
+
});
|
|
1477
|
+
}
|
|
1478
|
+
async function on() {
|
|
1479
|
+
b && !e && await Z(async () => {
|
|
1480
|
+
let e = await Y("/account/quote", { projectId: b.projectId });
|
|
1481
|
+
if (e.projectId !== b.projectId || !e.quoteId || _e({
|
|
1085
1482
|
priceMinorUnits: e.priceMinorUnits,
|
|
1086
1483
|
currency: e.currency
|
|
1087
|
-
},
|
|
1088
|
-
|
|
1484
|
+
}, m) === null || !Number.isFinite(Date.parse(e.expiresAtUtc))) throw Error("A valid project quote was not supplied.");
|
|
1485
|
+
ue(e);
|
|
1089
1486
|
});
|
|
1090
1487
|
}
|
|
1091
|
-
async function
|
|
1092
|
-
|
|
1093
|
-
if (O.projectId !==
|
|
1094
|
-
let e = await
|
|
1095
|
-
projectId:
|
|
1096
|
-
requestId:
|
|
1488
|
+
async function sn() {
|
|
1489
|
+
b && O && !e && Ut && q && await Z(async () => {
|
|
1490
|
+
if (O.projectId !== b.projectId || Date.parse(O.expiresAtUtc) <= Date.now()) throw Error("This quote expired. Refresh the project quote before purchase.");
|
|
1491
|
+
let e = await Y("/account/checkout", {
|
|
1492
|
+
projectId: b.projectId,
|
|
1493
|
+
requestId: P(),
|
|
1097
1494
|
quoteId: O.quoteId
|
|
1098
1495
|
}), t = new URL(e.url);
|
|
1099
1496
|
if (t.protocol !== "https:" || t.hostname !== "checkout.stripe.com" || t.username || t.password) throw Error("The checkout address was not accepted.");
|
|
1100
1497
|
window.location.assign(t.href);
|
|
1101
1498
|
});
|
|
1102
1499
|
}
|
|
1103
|
-
function
|
|
1104
|
-
|
|
1500
|
+
function cn() {
|
|
1501
|
+
Gt(), H.current++, It.current = "", Lt.current = void 0, T(""), pe(""), Ve(void 0), Ee(""), ye(""), ze(""), D("Signed out. Your saved project stays private and can resume after sign-in.");
|
|
1105
1502
|
}
|
|
1106
|
-
async function
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
expectedVersion:
|
|
1110
|
-
operationId:
|
|
1111
|
-
proposalId:
|
|
1503
|
+
async function ln() {
|
|
1504
|
+
b && K && !L && await Z(async () => {
|
|
1505
|
+
A(await Y(`/projects/${b.projectId}/drawings`, {
|
|
1506
|
+
expectedVersion: b.version,
|
|
1507
|
+
operationId: P(),
|
|
1508
|
+
proposalId: K.id
|
|
1112
1509
|
})), D("2D concept drawings prepared. This does not spend the BIM model export.");
|
|
1113
1510
|
});
|
|
1114
1511
|
}
|
|
1115
|
-
async function
|
|
1116
|
-
|
|
1117
|
-
let e = await
|
|
1118
|
-
expectedVersion:
|
|
1119
|
-
operationId:
|
|
1120
|
-
proposalId:
|
|
1512
|
+
async function un() {
|
|
1513
|
+
b && K && !L && await Z(async () => {
|
|
1514
|
+
let e = await Y(`/projects/${b.projectId}/exports`, {
|
|
1515
|
+
expectedVersion: b.version,
|
|
1516
|
+
operationId: P(),
|
|
1517
|
+
proposalId: K.id
|
|
1121
1518
|
});
|
|
1122
|
-
|
|
1519
|
+
fe(e), y("download");
|
|
1123
1520
|
});
|
|
1124
1521
|
}
|
|
1125
|
-
async function
|
|
1126
|
-
n &&
|
|
1127
|
-
let r =
|
|
1522
|
+
async function dn(t, n = de) {
|
|
1523
|
+
n && b && await Z(async () => {
|
|
1524
|
+
let r = H.current, i = await Wt(`/projects/${b.projectId}/objects/${n.files[t].id}`, { headers: !e && j ? { Authorization: "Bearer " + j } : {} });
|
|
1128
1525
|
if (!i.ok) throw Error("Download unavailable.");
|
|
1129
1526
|
let a = await i.blob();
|
|
1130
|
-
|
|
1527
|
+
J(r);
|
|
1131
1528
|
let o = URL.createObjectURL(a), s = document.createElement("a");
|
|
1132
|
-
s.href = o, s.download =
|
|
1529
|
+
s.href = o, s.download = `${p === "karamentreprises" ? "karamentreprises" : "baulynq"}-${n.proposalId}-v${n.version}.${t}`, s.click(), setTimeout(() => URL.revokeObjectURL(o), 1e3);
|
|
1133
1530
|
});
|
|
1134
1531
|
}
|
|
1135
|
-
async function
|
|
1532
|
+
async function fn(e) {
|
|
1136
1533
|
![
|
|
1137
1534
|
"image/png",
|
|
1138
1535
|
"image/jpeg",
|
|
1139
1536
|
"image/webp"
|
|
1140
|
-
].includes(e.type) || e.size > 8388608 ?
|
|
1537
|
+
].includes(e.type) || e.size > 8388608 ? T("Choose a PNG, JPEG or WebP up to 8 MB.") : (We(e), qe(null), Ze(!1), $e(!1), b ? (y("measure"), D("Local preview only. Review permissions and AI disclosure before uploading the image.")) : (x || Yt(!0), y("measure"), D("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.")));
|
|
1141
1538
|
}
|
|
1142
|
-
async function
|
|
1143
|
-
|
|
1144
|
-
let e =
|
|
1145
|
-
e || (e = await
|
|
1146
|
-
projectId:
|
|
1147
|
-
operationId:
|
|
1148
|
-
}),
|
|
1539
|
+
async function pn() {
|
|
1540
|
+
z && await Z(async () => {
|
|
1541
|
+
let e = b;
|
|
1542
|
+
e || (e = await Y("/drafts", {
|
|
1543
|
+
projectId: P(),
|
|
1544
|
+
operationId: P()
|
|
1545
|
+
}), X(e), y("measure")), await Zt(e, z);
|
|
1149
1546
|
});
|
|
1150
1547
|
}
|
|
1151
|
-
async function
|
|
1152
|
-
|
|
1153
|
-
let e = await
|
|
1154
|
-
expectedVersion:
|
|
1155
|
-
operationId:
|
|
1156
|
-
objectId:
|
|
1157
|
-
intent:
|
|
1548
|
+
async function mn() {
|
|
1549
|
+
b && B && await Z(async () => {
|
|
1550
|
+
let e = await Y(`/projects/${b.projectId}/read-sketch`, {
|
|
1551
|
+
expectedVersion: b.version,
|
|
1552
|
+
operationId: P(),
|
|
1553
|
+
objectId: B,
|
|
1554
|
+
intent: E || "Read the sketch measurements and identify uncertainties."
|
|
1158
1555
|
});
|
|
1159
|
-
|
|
1556
|
+
At(e.observations), Mt(e.values), bt(e.candidate ?? null), St(!1), Ye(e.questions), D("Recognized values remain estimated. Preview the outline, check labels and assumptions, then explicitly adopt reviewed measurements."), y("measure");
|
|
1160
1557
|
});
|
|
1161
1558
|
}
|
|
1162
|
-
async function
|
|
1163
|
-
|
|
1164
|
-
let e = await
|
|
1165
|
-
|
|
1559
|
+
async function hn() {
|
|
1560
|
+
b && await Z(async () => {
|
|
1561
|
+
let e = await Y(`/projects/${b.projectId}`, void 0, "DELETE");
|
|
1562
|
+
re(null), Et([]), S(null), fe(null), A(null), ue(null), R(null), ht(!1), We(null), qe(null), Ye([]), At([]), Mt(void 0), bt(null), St(!1), wt([]), rt(null), W && xe(localStorage, W, null), Ue(null), D(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.");
|
|
1166
1563
|
});
|
|
1167
1564
|
}
|
|
1168
|
-
async function
|
|
1169
|
-
!e &&
|
|
1170
|
-
let e = await
|
|
1171
|
-
|
|
1565
|
+
async function gn() {
|
|
1566
|
+
!e && j && await Z(async () => {
|
|
1567
|
+
let e = await Y("/account/data", void 0, "DELETE");
|
|
1568
|
+
Dt && (await qt("visit", !1), Ot(!1)), Gt(), H.current++, W && xe(localStorage, W, null), y("measure"), D((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.");
|
|
1172
1569
|
});
|
|
1173
1570
|
}
|
|
1174
|
-
async function
|
|
1175
|
-
await
|
|
1176
|
-
let e =
|
|
1177
|
-
if (
|
|
1178
|
-
await
|
|
1571
|
+
async function _n() {
|
|
1572
|
+
await Z(async () => {
|
|
1573
|
+
let e = H.current;
|
|
1574
|
+
if (I === "signup") {
|
|
1575
|
+
await Y("/account/signup", { email: ge }), D("Check your email for the verification link. No session is created until ownership is verified."), Le("verify"), Ee("");
|
|
1179
1576
|
return;
|
|
1180
1577
|
}
|
|
1181
|
-
let t = await
|
|
1182
|
-
token:
|
|
1183
|
-
password:
|
|
1578
|
+
let t = await Y(I === "verify" ? "/account/verification/complete" : "/account/login", I === "verify" ? {
|
|
1579
|
+
token: Re,
|
|
1580
|
+
password: M
|
|
1184
1581
|
} : {
|
|
1185
|
-
email:
|
|
1186
|
-
password:
|
|
1582
|
+
email: ge,
|
|
1583
|
+
password: M
|
|
1187
1584
|
});
|
|
1188
|
-
if (
|
|
1189
|
-
|
|
1585
|
+
if (Ee(""), ze(""), !t.token) {
|
|
1586
|
+
Le("login"), D("Email verified. Sign in to continue.");
|
|
1190
1587
|
return;
|
|
1191
1588
|
}
|
|
1192
|
-
let n = await
|
|
1589
|
+
let n = await Wt("/session", { headers: { Authorization: "Bearer " + t.token } });
|
|
1193
1590
|
if (!n.ok) throw Error("The verified workspace could not be loaded.");
|
|
1194
1591
|
let r = await n.json();
|
|
1195
|
-
if (
|
|
1196
|
-
|
|
1592
|
+
if (J(e), typeof r.workspaceKey != "string" || !r.workspaceKey || r.workspaceKey.length > 512) throw Error("The verified workspace could not be loaded.");
|
|
1593
|
+
Lt.current && Lt.current !== r.workspaceKey && Gt(), H.current++, It.current = t.token, Lt.current = r.workspaceKey, pe(t.token), Ve(r.workspaceKey), he(!1), D("Signed in. This session stays in memory only.");
|
|
1197
1594
|
});
|
|
1198
1595
|
}
|
|
1199
|
-
function
|
|
1200
|
-
|
|
1201
|
-
...
|
|
1202
|
-
footprint:
|
|
1203
|
-
}),
|
|
1596
|
+
function vn() {
|
|
1597
|
+
V?.input && (ht(!0), S({
|
|
1598
|
+
...x ?? Se(m),
|
|
1599
|
+
footprint: V.input
|
|
1600
|
+
}), rt(V.reconciliation), wt(V.input.edges.flatMap((e, t) => [`footprint.edges[${t}].lengthM`, ...e.bearingDegrees == null ? [] : [`footprint.edges[${t}].bearingDegrees`]])), St(!0), tt(!1), R(null), y("measure"), D("Recognized outline is a local estimated preview. No project version or proposal was changed. Review every length, bearing and wall type before adoption."));
|
|
1204
1601
|
}
|
|
1205
|
-
function
|
|
1206
|
-
|
|
1602
|
+
function yn(e) {
|
|
1603
|
+
qe(e), y("measure"), D("Saved sanitized sketch selected. Reading it with AI is a separate explicit action.");
|
|
1207
1604
|
}
|
|
1208
|
-
async function
|
|
1209
|
-
|
|
1210
|
-
let r =
|
|
1605
|
+
async function bn(t, n) {
|
|
1606
|
+
b && await Z(async () => {
|
|
1607
|
+
let r = H.current, i = await Wt(`/projects/${b.projectId}/objects/${n.objectId}`, { headers: !e && j ? { Authorization: "Bearer " + j } : {} });
|
|
1211
1608
|
if (!i.ok) throw Error("Saved file is unavailable or expired.");
|
|
1212
1609
|
let a = await i.blob();
|
|
1213
|
-
|
|
1610
|
+
J(r);
|
|
1214
1611
|
let o = URL.createObjectURL(a), s = document.createElement("a");
|
|
1215
|
-
s.href = o, s.download =
|
|
1612
|
+
s.href = o, s.download = `${p === "karamentreprises" ? "karamentreprises" : "baulynq"}-${t.kind}${t.version ? "-v" + t.version : ""}.${n.format}`, s.click(), setTimeout(() => URL.revokeObjectURL(o), 1e3);
|
|
1216
1613
|
});
|
|
1217
1614
|
}
|
|
1218
|
-
|
|
1219
|
-
if (!
|
|
1615
|
+
r(() => {
|
|
1616
|
+
if (!b) return;
|
|
1220
1617
|
let e = !0;
|
|
1221
|
-
return
|
|
1222
|
-
e &&
|
|
1618
|
+
return Y(`/projects/${b.projectId}/artifacts`).then((t) => {
|
|
1619
|
+
e && Et(Array.isArray(t) ? t : []);
|
|
1223
1620
|
}).catch(() => {
|
|
1224
|
-
e &&
|
|
1621
|
+
e && Et([]);
|
|
1225
1622
|
}), () => {
|
|
1226
1623
|
e = !1;
|
|
1227
1624
|
};
|
|
1228
1625
|
}, [
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1626
|
+
b?.projectId,
|
|
1627
|
+
b?.version,
|
|
1628
|
+
B
|
|
1232
1629
|
]);
|
|
1233
|
-
let $ =
|
|
1234
|
-
return /* @__PURE__ */
|
|
1630
|
+
let $ = ne === "measure" ? nt?.values : K?.values ?? G?.reconciliation.values ?? nt?.values, xn = K?.findings.reduce((e, t) => (e[t.status] = (e[t.status] ?? 0) + 1, e), {}) ?? {};
|
|
1631
|
+
return /* @__PURE__ */ l("div", {
|
|
1235
1632
|
className: "bim-studio",
|
|
1236
|
-
dir:
|
|
1633
|
+
dir: m === "ar" ? "rtl" : "ltr",
|
|
1237
1634
|
children: [
|
|
1238
|
-
!e && /* @__PURE__ */
|
|
1635
|
+
!e && /* @__PURE__ */ l("header", { children: [/* @__PURE__ */ c("a", {
|
|
1239
1636
|
className: "logo",
|
|
1240
1637
|
href: "/",
|
|
1241
1638
|
onClick: (e) => {
|
|
1242
|
-
e.preventDefault(),
|
|
1639
|
+
e.preventDefault(), Q("home");
|
|
1243
1640
|
},
|
|
1244
|
-
children: /* @__PURE__ */
|
|
1245
|
-
}), /* @__PURE__ */
|
|
1246
|
-
/* @__PURE__ */
|
|
1641
|
+
children: /* @__PURE__ */ c(Oe, {})
|
|
1642
|
+
}), /* @__PURE__ */ l("nav", { children: [
|
|
1643
|
+
/* @__PURE__ */ c("a", {
|
|
1247
1644
|
href: "/#pricing",
|
|
1248
|
-
onClick: () =>
|
|
1249
|
-
children:
|
|
1645
|
+
onClick: () => _ !== "home" && Q("home"),
|
|
1646
|
+
children: U.pricing
|
|
1250
1647
|
}),
|
|
1251
|
-
/* @__PURE__ */
|
|
1252
|
-
"aria-label":
|
|
1253
|
-
value:
|
|
1254
|
-
onChange: (e) =>
|
|
1648
|
+
/* @__PURE__ */ c("select", {
|
|
1649
|
+
"aria-label": U.language,
|
|
1650
|
+
value: m,
|
|
1651
|
+
onChange: (e) => h(e.target.value),
|
|
1255
1652
|
children: [
|
|
1256
1653
|
"en",
|
|
1257
1654
|
"de",
|
|
1258
1655
|
"fr",
|
|
1259
1656
|
"ar"
|
|
1260
|
-
].map((e) => /* @__PURE__ */
|
|
1657
|
+
].map((e) => /* @__PURE__ */ c("option", {
|
|
1261
1658
|
value: e,
|
|
1262
1659
|
children: e.toUpperCase()
|
|
1263
1660
|
}, e))
|
|
1264
1661
|
}),
|
|
1265
|
-
/* @__PURE__ */
|
|
1662
|
+
/* @__PURE__ */ c("button", {
|
|
1266
1663
|
className: "quiet account-action",
|
|
1267
|
-
disabled:
|
|
1268
|
-
onClick: () =>
|
|
1269
|
-
children:
|
|
1664
|
+
disabled: C,
|
|
1665
|
+
onClick: () => j ? Q("studio") : he(!0),
|
|
1666
|
+
children: j ? U.account : U.signin
|
|
1270
1667
|
}),
|
|
1271
|
-
|
|
1668
|
+
j && /* @__PURE__ */ l("div", {
|
|
1272
1669
|
className: "account-options",
|
|
1273
|
-
children: [/* @__PURE__ */
|
|
1670
|
+
children: [/* @__PURE__ */ c("button", {
|
|
1274
1671
|
className: "quiet",
|
|
1275
|
-
"aria-label": v(
|
|
1276
|
-
"aria-expanded":
|
|
1672
|
+
"aria-label": v(m, "Account options"),
|
|
1673
|
+
"aria-expanded": vt,
|
|
1277
1674
|
"aria-controls": "bim-account-actions",
|
|
1278
|
-
disabled:
|
|
1279
|
-
onClick: () =>
|
|
1675
|
+
disabled: C,
|
|
1676
|
+
onClick: () => yt(!vt),
|
|
1280
1677
|
children: "⋯"
|
|
1281
|
-
}),
|
|
1678
|
+
}), vt && /* @__PURE__ */ l("div", {
|
|
1282
1679
|
id: "bim-account-actions",
|
|
1283
1680
|
role: "group",
|
|
1284
|
-
"aria-label": v(
|
|
1681
|
+
"aria-label": v(m, "Account actions"),
|
|
1285
1682
|
className: "account-actions",
|
|
1286
1683
|
onKeyDown: (e) => {
|
|
1287
|
-
e.key === "Escape" && (
|
|
1684
|
+
e.key === "Escape" && (yt(!1), e.currentTarget.parentElement?.querySelector("button")?.focus());
|
|
1288
1685
|
},
|
|
1289
|
-
children: [/* @__PURE__ */
|
|
1686
|
+
children: [/* @__PURE__ */ c("button", {
|
|
1290
1687
|
className: "quiet full",
|
|
1291
|
-
disabled:
|
|
1688
|
+
disabled: C,
|
|
1292
1689
|
onClick: () => {
|
|
1293
|
-
|
|
1690
|
+
yt(!1), _t(!0);
|
|
1294
1691
|
},
|
|
1295
|
-
children: v(
|
|
1296
|
-
}), /* @__PURE__ */
|
|
1692
|
+
children: v(m, "Delete project content")
|
|
1693
|
+
}), /* @__PURE__ */ c("button", {
|
|
1297
1694
|
className: "quiet full",
|
|
1298
|
-
disabled:
|
|
1299
|
-
onClick:
|
|
1300
|
-
children: v(
|
|
1695
|
+
disabled: C,
|
|
1696
|
+
onClick: cn,
|
|
1697
|
+
children: v(m, "Sign out")
|
|
1301
1698
|
})]
|
|
1302
1699
|
})]
|
|
1303
1700
|
}),
|
|
1304
|
-
/* @__PURE__ */
|
|
1701
|
+
/* @__PURE__ */ l("button", {
|
|
1305
1702
|
className: "ink",
|
|
1306
|
-
onClick: () =>
|
|
1307
|
-
children: [
|
|
1703
|
+
onClick: () => Q("studio"),
|
|
1704
|
+
children: [U.studio, /* @__PURE__ */ c(ke, {})]
|
|
1308
1705
|
})
|
|
1309
1706
|
] })] }),
|
|
1310
|
-
|
|
1707
|
+
_ === "home" ? /* @__PURE__ */ l("main", {
|
|
1311
1708
|
className: "landing",
|
|
1312
1709
|
children: [
|
|
1313
|
-
/* @__PURE__ */
|
|
1710
|
+
/* @__PURE__ */ l("section", {
|
|
1314
1711
|
className: "hero",
|
|
1315
1712
|
children: [
|
|
1316
|
-
/* @__PURE__ */
|
|
1713
|
+
/* @__PURE__ */ l("span", {
|
|
1317
1714
|
className: "eyebrow",
|
|
1318
1715
|
children: [
|
|
1319
|
-
|
|
1716
|
+
U.eyebrow,
|
|
1320
1717
|
" ",
|
|
1321
|
-
/* @__PURE__ */
|
|
1718
|
+
/* @__PURE__ */ c("span", { children: "01 — VISION" })
|
|
1322
1719
|
]
|
|
1323
1720
|
}),
|
|
1324
|
-
/* @__PURE__ */
|
|
1325
|
-
/* @__PURE__ */
|
|
1326
|
-
/* @__PURE__ */
|
|
1721
|
+
/* @__PURE__ */ c("h1", { children: U.hero }),
|
|
1722
|
+
/* @__PURE__ */ c("p", { children: U.intro }),
|
|
1723
|
+
/* @__PURE__ */ l("div", {
|
|
1327
1724
|
className: "actions",
|
|
1328
|
-
children: [/* @__PURE__ */
|
|
1725
|
+
children: [/* @__PURE__ */ l("button", {
|
|
1329
1726
|
className: "ink large",
|
|
1330
|
-
onClick: () =>
|
|
1331
|
-
children: [
|
|
1332
|
-
}),
|
|
1727
|
+
onClick: () => Q("studio"),
|
|
1728
|
+
children: [U.start, /* @__PURE__ */ c(ke, {})]
|
|
1729
|
+
}), N.mode === "local-demo" ? /* @__PURE__ */ l("button", {
|
|
1333
1730
|
className: "textbtn",
|
|
1334
|
-
onClick:
|
|
1335
|
-
children: [
|
|
1336
|
-
}) : /* @__PURE__ */
|
|
1731
|
+
onClick: Xt,
|
|
1732
|
+
children: [U.try, " →"]
|
|
1733
|
+
}) : /* @__PURE__ */ l("button", {
|
|
1337
1734
|
className: "textbtn",
|
|
1338
|
-
onClick: () =>
|
|
1339
|
-
children: [v(
|
|
1735
|
+
onClick: () => Yt(),
|
|
1736
|
+
children: [v(m, "Enter measurements"), " →"]
|
|
1340
1737
|
})]
|
|
1341
1738
|
}),
|
|
1342
|
-
/* @__PURE__ */
|
|
1739
|
+
/* @__PURE__ */ l("div", {
|
|
1343
1740
|
className: "proof",
|
|
1344
|
-
children: [/* @__PURE__ */
|
|
1741
|
+
children: [/* @__PURE__ */ c("span", { className: "dot" }), "Your measurements. Checked geometry. One shared engine."]
|
|
1345
1742
|
})
|
|
1346
1743
|
]
|
|
1347
1744
|
}),
|
|
1348
|
-
/* @__PURE__ */
|
|
1745
|
+
/* @__PURE__ */ l("section", {
|
|
1349
1746
|
className: "transformation",
|
|
1350
1747
|
children: [
|
|
1351
|
-
/* @__PURE__ */
|
|
1748
|
+
/* @__PURE__ */ l("article", {
|
|
1352
1749
|
className: "sketch-card",
|
|
1353
1750
|
children: [
|
|
1354
|
-
/* @__PURE__ */
|
|
1751
|
+
/* @__PURE__ */ l("div", {
|
|
1355
1752
|
className: "card-title",
|
|
1356
|
-
children: [/* @__PURE__ */
|
|
1753
|
+
children: [/* @__PURE__ */ c("span", { children: "01 / SKETCH" }), /* @__PURE__ */ c("span", { children: "THE STARTING POINT" })]
|
|
1357
1754
|
}),
|
|
1358
|
-
/* @__PURE__ */
|
|
1359
|
-
/* @__PURE__ */
|
|
1755
|
+
/* @__PURE__ */ c(Ae, {}),
|
|
1756
|
+
/* @__PURE__ */ c("h3", { children: U.before })
|
|
1360
1757
|
]
|
|
1361
1758
|
}),
|
|
1362
|
-
/* @__PURE__ */
|
|
1759
|
+
/* @__PURE__ */ c("div", {
|
|
1363
1760
|
className: "flow-arrow",
|
|
1364
1761
|
children: "→"
|
|
1365
1762
|
}),
|
|
1366
|
-
/* @__PURE__ */
|
|
1763
|
+
/* @__PURE__ */ l("article", {
|
|
1367
1764
|
className: "plan-card",
|
|
1368
1765
|
children: [
|
|
1369
|
-
/* @__PURE__ */
|
|
1766
|
+
/* @__PURE__ */ l("div", {
|
|
1370
1767
|
className: "card-title",
|
|
1371
|
-
children: [/* @__PURE__ */
|
|
1768
|
+
children: [/* @__PURE__ */ c("span", { children: "02 / POSSIBILITIES" }), /* @__PURE__ */ c("span", {
|
|
1372
1769
|
className: "teal",
|
|
1373
1770
|
children: "CHECKED BY THE ENGINE"
|
|
1374
1771
|
})]
|
|
1375
1772
|
}),
|
|
1376
|
-
/* @__PURE__ */
|
|
1773
|
+
/* @__PURE__ */ c("div", {
|
|
1377
1774
|
className: "mini-plan",
|
|
1378
|
-
children: /* @__PURE__ */
|
|
1775
|
+
children: /* @__PURE__ */ c("img", {
|
|
1379
1776
|
src: "/reference-plan.svg",
|
|
1380
1777
|
alt: "Engine-generated reference layout A with checked dimensions"
|
|
1381
1778
|
})
|
|
1382
1779
|
}),
|
|
1383
|
-
/* @__PURE__ */
|
|
1384
|
-
|
|
1780
|
+
/* @__PURE__ */ c("h3", { children: U.after }),
|
|
1781
|
+
N.mode === "local-demo" ? /* @__PURE__ */ l("button", {
|
|
1385
1782
|
className: "textbtn",
|
|
1386
|
-
onClick:
|
|
1387
|
-
children: [
|
|
1388
|
-
}) : /* @__PURE__ */
|
|
1783
|
+
onClick: Xt,
|
|
1784
|
+
children: [U.try, " ↗"]
|
|
1785
|
+
}) : /* @__PURE__ */ l("button", {
|
|
1389
1786
|
className: "textbtn",
|
|
1390
|
-
onClick: () =>
|
|
1391
|
-
children: [v(
|
|
1787
|
+
onClick: () => Yt(),
|
|
1788
|
+
children: [v(m, "Enter measurements"), " ↗"]
|
|
1392
1789
|
})
|
|
1393
1790
|
]
|
|
1394
1791
|
})
|
|
1395
1792
|
]
|
|
1396
1793
|
}),
|
|
1397
|
-
/* @__PURE__ */
|
|
1794
|
+
/* @__PURE__ */ c("section", {
|
|
1398
1795
|
className: "process",
|
|
1399
|
-
children:
|
|
1400
|
-
/* @__PURE__ */
|
|
1401
|
-
/* @__PURE__ */
|
|
1402
|
-
/* @__PURE__ */
|
|
1796
|
+
children: U.steps.map((e, t) => /* @__PURE__ */ l("div", { children: [
|
|
1797
|
+
/* @__PURE__ */ l("span", { children: ["0", t + 1] }),
|
|
1798
|
+
/* @__PURE__ */ c("h3", { children: e }),
|
|
1799
|
+
/* @__PURE__ */ c("p", { children: [
|
|
1403
1800
|
"A drawing or photo, with dimensions.",
|
|
1404
1801
|
"Confirm dimensions and fixed constraints.",
|
|
1405
1802
|
"Compare different ways to use your space.",
|
|
@@ -1407,861 +1804,912 @@ function T({ embedded: e = !1, transport: t, initialInput: o, workspaceKey: s, b
|
|
|
1407
1804
|
][t] })
|
|
1408
1805
|
] }, e))
|
|
1409
1806
|
}),
|
|
1410
|
-
/* @__PURE__ */
|
|
1807
|
+
/* @__PURE__ */ l("section", {
|
|
1411
1808
|
className: "use-case-links",
|
|
1412
1809
|
children: [
|
|
1413
|
-
/* @__PURE__ */
|
|
1414
|
-
/* @__PURE__ */
|
|
1810
|
+
/* @__PURE__ */ c("h2", { children: v(m, "Plan your next space") }),
|
|
1811
|
+
/* @__PURE__ */ l("a", {
|
|
1415
1812
|
href: "/apartment-layout/",
|
|
1416
|
-
children: [v(
|
|
1813
|
+
children: [v(m, "Apartment layout"), " ↗"]
|
|
1417
1814
|
}),
|
|
1418
|
-
/* @__PURE__ */
|
|
1815
|
+
/* @__PURE__ */ l("a", {
|
|
1419
1816
|
href: "/house-extension/",
|
|
1420
|
-
children: [v(
|
|
1817
|
+
children: [v(m, "House extension"), " ↗"]
|
|
1421
1818
|
}),
|
|
1422
|
-
/* @__PURE__ */
|
|
1819
|
+
/* @__PURE__ */ l("a", {
|
|
1423
1820
|
href: "/renovation/",
|
|
1424
|
-
children: [v(
|
|
1821
|
+
children: [v(m, "Renovation"), " ↗"]
|
|
1425
1822
|
})
|
|
1426
1823
|
]
|
|
1427
1824
|
}),
|
|
1428
|
-
/* @__PURE__ */
|
|
1825
|
+
/* @__PURE__ */ l("section", {
|
|
1429
1826
|
className: "price-section",
|
|
1430
1827
|
id: "pricing",
|
|
1431
|
-
children: [/* @__PURE__ */
|
|
1432
|
-
/* @__PURE__ */
|
|
1828
|
+
children: [/* @__PURE__ */ l("div", { children: [
|
|
1829
|
+
/* @__PURE__ */ c("span", {
|
|
1433
1830
|
className: "eyebrow",
|
|
1434
1831
|
children: "A CLEAR START"
|
|
1435
1832
|
}),
|
|
1436
|
-
/* @__PURE__ */
|
|
1833
|
+
/* @__PURE__ */ l("h2", { children: [
|
|
1437
1834
|
"A small project.",
|
|
1438
|
-
/* @__PURE__ */
|
|
1835
|
+
/* @__PURE__ */ c("br", {}),
|
|
1439
1836
|
"A useful next step."
|
|
1440
1837
|
] }),
|
|
1441
|
-
/* @__PURE__ */
|
|
1442
|
-
] }), /* @__PURE__ */
|
|
1838
|
+
/* @__PURE__ */ c("p", { children: "Free access is included in KEHBIMVISION and BauLynq BIM, within each app’s AI usage limits." })
|
|
1839
|
+
] }), /* @__PURE__ */ l("article", {
|
|
1443
1840
|
className: "price-card",
|
|
1444
1841
|
children: [
|
|
1445
|
-
/* @__PURE__ */
|
|
1842
|
+
/* @__PURE__ */ c("span", {
|
|
1446
1843
|
className: "eyebrow",
|
|
1447
|
-
children:
|
|
1844
|
+
children: p === "karamentreprises" ? "KARAMENTREPRISES BIM" : "BAULYNQ VISION"
|
|
1448
1845
|
}),
|
|
1449
|
-
/* @__PURE__ */
|
|
1450
|
-
/* @__PURE__ */
|
|
1451
|
-
/* @__PURE__ */
|
|
1452
|
-
/* @__PURE__ */
|
|
1453
|
-
|
|
1846
|
+
/* @__PURE__ */ c("h2", { children: Vt ?? "Pricing opens with the service" }),
|
|
1847
|
+
/* @__PURE__ */ c("small", { children: "Base pricing. Your project quote is shown before purchase." }),
|
|
1848
|
+
/* @__PURE__ */ c("p", { children: Ht ? `${Ht.proposals} free proposal generations · ${Ht.exports} BIM exports` : "The local preview does not accept payments." }),
|
|
1849
|
+
/* @__PURE__ */ c("p", { children: "One project includes proposals, refinements and its model export." }),
|
|
1850
|
+
q && /* @__PURE__ */ l("p", { children: [
|
|
1454
1851
|
"After the initial proposal request: ",
|
|
1455
|
-
|
|
1852
|
+
q.regenerations,
|
|
1456
1853
|
" regenerations · ",
|
|
1457
|
-
|
|
1854
|
+
q.chat,
|
|
1458
1855
|
" chat refinements · ",
|
|
1459
|
-
|
|
1856
|
+
q.exports,
|
|
1460
1857
|
" ",
|
|
1461
|
-
|
|
1858
|
+
q.exports === 1 ? "BIM export" : "BIM exports",
|
|
1462
1859
|
" per paid project."
|
|
1463
1860
|
] }),
|
|
1464
|
-
/* @__PURE__ */
|
|
1861
|
+
/* @__PURE__ */ l("button", {
|
|
1465
1862
|
className: "ink",
|
|
1466
|
-
onClick: () =>
|
|
1467
|
-
children: [
|
|
1863
|
+
onClick: () => Q("studio"),
|
|
1864
|
+
children: [U.start, /* @__PURE__ */ c(ke, {})]
|
|
1468
1865
|
})
|
|
1469
1866
|
]
|
|
1470
1867
|
})]
|
|
1471
1868
|
}),
|
|
1472
|
-
/* @__PURE__ */
|
|
1869
|
+
/* @__PURE__ */ l("footer", { children: [/* @__PURE__ */ c(Oe, {}), /* @__PURE__ */ c("span", { children: U.disclaimer })] })
|
|
1473
1870
|
]
|
|
1474
|
-
}) : /* @__PURE__ */
|
|
1871
|
+
}) : /* @__PURE__ */ l("main", {
|
|
1475
1872
|
className: "studio",
|
|
1476
1873
|
children: [
|
|
1477
|
-
/* @__PURE__ */
|
|
1874
|
+
/* @__PURE__ */ l("aside", {
|
|
1478
1875
|
className: "rail",
|
|
1479
1876
|
children: [
|
|
1480
|
-
/* @__PURE__ */
|
|
1877
|
+
/* @__PURE__ */ c("span", {
|
|
1481
1878
|
className: "eyebrow",
|
|
1482
1879
|
children: "WORKSPACE"
|
|
1483
1880
|
}),
|
|
1484
|
-
/* @__PURE__ */
|
|
1485
|
-
/* @__PURE__ */
|
|
1881
|
+
/* @__PURE__ */ c("h2", { children: U.workspace }),
|
|
1882
|
+
/* @__PURE__ */ l("span", {
|
|
1486
1883
|
className: "project-status",
|
|
1487
|
-
children: [/* @__PURE__ */
|
|
1884
|
+
children: [/* @__PURE__ */ c("span", { className: "dot" }), N.mode === "local-demo" ? "Local reference preview" : "Private project"]
|
|
1488
1885
|
}),
|
|
1489
|
-
/* @__PURE__ */
|
|
1886
|
+
/* @__PURE__ */ c("div", {
|
|
1490
1887
|
className: "stage-nav",
|
|
1491
1888
|
children: [
|
|
1492
1889
|
"measure",
|
|
1493
1890
|
"proposals",
|
|
1494
1891
|
"refine",
|
|
1495
1892
|
"download"
|
|
1496
|
-
].map((e, t) => /* @__PURE__ */
|
|
1497
|
-
className:
|
|
1498
|
-
|
|
1499
|
-
|
|
1893
|
+
].map((e, t) => /* @__PURE__ */ l("button", {
|
|
1894
|
+
className: ne === e ? "active" : "",
|
|
1895
|
+
disabled: C,
|
|
1896
|
+
onClick: () => y(e),
|
|
1897
|
+
children: [/* @__PURE__ */ l("span", { children: ["0", t + 1] }), U[e]]
|
|
1500
1898
|
}, e))
|
|
1501
1899
|
}),
|
|
1502
|
-
/* @__PURE__ */
|
|
1900
|
+
/* @__PURE__ */ l("div", {
|
|
1503
1901
|
className: "rail-bottom",
|
|
1504
1902
|
children: [
|
|
1505
|
-
/* @__PURE__ */
|
|
1506
|
-
typeof
|
|
1903
|
+
/* @__PURE__ */ c("p", { children: U.privacy }),
|
|
1904
|
+
typeof N.retentionDays == "number" && /* @__PURE__ */ l("p", { children: [
|
|
1507
1905
|
"Retention: ",
|
|
1508
|
-
|
|
1906
|
+
N.retentionDays,
|
|
1509
1907
|
" days, as configured by the service."
|
|
1510
1908
|
] }),
|
|
1511
|
-
|
|
1909
|
+
b && /* @__PURE__ */ c("button", {
|
|
1512
1910
|
className: "quiet danger",
|
|
1513
|
-
onClick:
|
|
1514
|
-
children:
|
|
1911
|
+
onClick: hn,
|
|
1912
|
+
children: U.delete
|
|
1515
1913
|
})
|
|
1516
1914
|
]
|
|
1517
1915
|
})
|
|
1518
1916
|
]
|
|
1519
1917
|
}),
|
|
1520
|
-
/* @__PURE__ */
|
|
1918
|
+
/* @__PURE__ */ l("section", {
|
|
1521
1919
|
className: "workspace",
|
|
1522
1920
|
children: [
|
|
1523
|
-
/* @__PURE__ */
|
|
1921
|
+
/* @__PURE__ */ l("div", {
|
|
1524
1922
|
className: "workspace-heading",
|
|
1525
|
-
children: [/* @__PURE__ */
|
|
1923
|
+
children: [/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c("span", {
|
|
1526
1924
|
className: "eyebrow",
|
|
1527
|
-
children:
|
|
1528
|
-
}), /* @__PURE__ */
|
|
1925
|
+
children: b ? `VERSION ${b.version} / ${b.projectId.slice(0, 8)}` : "YOUR NEXT SPACE"
|
|
1926
|
+
}), /* @__PURE__ */ c("h1", { children: U[ne] })] }), /* @__PURE__ */ l("div", {
|
|
1529
1927
|
className: "workspace-controls",
|
|
1530
1928
|
children: [
|
|
1531
|
-
e && /* @__PURE__ */
|
|
1532
|
-
"aria-label":
|
|
1533
|
-
value:
|
|
1534
|
-
onChange: (e) =>
|
|
1929
|
+
e && /* @__PURE__ */ c("select", {
|
|
1930
|
+
"aria-label": U.language,
|
|
1931
|
+
value: m,
|
|
1932
|
+
onChange: (e) => h(e.target.value),
|
|
1535
1933
|
children: [
|
|
1536
1934
|
"en",
|
|
1537
1935
|
"de",
|
|
1538
1936
|
"fr",
|
|
1539
1937
|
"ar"
|
|
1540
|
-
].map((e) => /* @__PURE__ */
|
|
1938
|
+
].map((e) => /* @__PURE__ */ c("option", {
|
|
1541
1939
|
value: e,
|
|
1542
1940
|
children: e.toUpperCase()
|
|
1543
1941
|
}, e))
|
|
1544
1942
|
}),
|
|
1545
|
-
/* @__PURE__ */
|
|
1943
|
+
/* @__PURE__ */ c("button", {
|
|
1546
1944
|
className: "quiet",
|
|
1547
|
-
disabled:
|
|
1548
|
-
onClick: () =>
|
|
1549
|
-
children: v(
|
|
1945
|
+
disabled: C,
|
|
1946
|
+
onClick: () => Yt(),
|
|
1947
|
+
children: v(m, "New project")
|
|
1550
1948
|
}),
|
|
1551
|
-
|
|
1949
|
+
b && /* @__PURE__ */ c("button", {
|
|
1552
1950
|
className: "quiet compact-delete",
|
|
1553
1951
|
"aria-label": "Delete current project",
|
|
1554
|
-
disabled:
|
|
1555
|
-
onClick:
|
|
1556
|
-
children:
|
|
1952
|
+
disabled: C,
|
|
1953
|
+
onClick: hn,
|
|
1954
|
+
children: U.delete
|
|
1557
1955
|
}),
|
|
1558
|
-
|
|
1956
|
+
b && /* @__PURE__ */ l("button", {
|
|
1559
1957
|
className: "outline",
|
|
1560
|
-
disabled:
|
|
1561
|
-
onClick: () =>
|
|
1562
|
-
|
|
1563
|
-
expectedVersion:
|
|
1564
|
-
targetVersion:
|
|
1565
|
-
operationId:
|
|
1958
|
+
disabled: C || !!L || b.version < 2,
|
|
1959
|
+
onClick: () => Z(async () => {
|
|
1960
|
+
X(await Y(`/projects/${b.projectId}/undo`, {
|
|
1961
|
+
expectedVersion: b.version,
|
|
1962
|
+
targetVersion: b.version - 1,
|
|
1963
|
+
operationId: P()
|
|
1566
1964
|
}));
|
|
1567
1965
|
}),
|
|
1568
|
-
children: ["↶ ",
|
|
1966
|
+
children: ["↶ ", U.undo]
|
|
1569
1967
|
})
|
|
1570
1968
|
]
|
|
1571
1969
|
})]
|
|
1572
1970
|
}),
|
|
1573
|
-
|
|
1971
|
+
w && /* @__PURE__ */ l("div", {
|
|
1574
1972
|
role: "alert",
|
|
1575
1973
|
className: "alert",
|
|
1576
|
-
children: [
|
|
1577
|
-
"aria-label":
|
|
1578
|
-
onClick: () =>
|
|
1974
|
+
children: [p === "karamentreprises" ? w.replace(/Polycyphers/gi, "Karamentreprises") : w, /* @__PURE__ */ c("button", {
|
|
1975
|
+
"aria-label": U.close,
|
|
1976
|
+
onClick: () => T(""),
|
|
1579
1977
|
children: "×"
|
|
1580
1978
|
})]
|
|
1581
1979
|
}),
|
|
1582
|
-
|
|
1980
|
+
ce && /* @__PURE__ */ l("div", {
|
|
1583
1981
|
role: "status",
|
|
1584
1982
|
className: "notice",
|
|
1585
|
-
children: [
|
|
1586
|
-
"aria-label":
|
|
1983
|
+
children: [ce, /* @__PURE__ */ c("button", {
|
|
1984
|
+
"aria-label": U.close,
|
|
1587
1985
|
onClick: () => D(""),
|
|
1588
1986
|
children: "×"
|
|
1589
1987
|
})]
|
|
1590
1988
|
}),
|
|
1591
|
-
|
|
1989
|
+
L && /* @__PURE__ */ c("section", {
|
|
1592
1990
|
className: "notice preview-banner",
|
|
1593
1991
|
role: "status",
|
|
1594
|
-
children: /* @__PURE__ */
|
|
1595
|
-
/* @__PURE__ */
|
|
1596
|
-
/* @__PURE__ */
|
|
1992
|
+
children: /* @__PURE__ */ l("div", { children: [
|
|
1993
|
+
/* @__PURE__ */ c("strong", { children: v(m, "Unsaved edit preview") }),
|
|
1994
|
+
/* @__PURE__ */ l("p", { children: [
|
|
1597
1995
|
"Review the recomputed plan, schedule and rule findings below. Your saved version ",
|
|
1598
|
-
|
|
1996
|
+
b?.version,
|
|
1599
1997
|
" is unchanged."
|
|
1600
1998
|
] }),
|
|
1601
|
-
/* @__PURE__ */
|
|
1999
|
+
/* @__PURE__ */ c("button", {
|
|
1602
2000
|
className: "ink",
|
|
1603
|
-
disabled:
|
|
1604
|
-
onClick:
|
|
1605
|
-
children: v(
|
|
2001
|
+
disabled: C || !we(L, b),
|
|
2002
|
+
onClick: en,
|
|
2003
|
+
children: v(m, "Apply as new version")
|
|
1606
2004
|
}),
|
|
1607
|
-
/* @__PURE__ */
|
|
2005
|
+
/* @__PURE__ */ c("button", {
|
|
1608
2006
|
className: "outline",
|
|
1609
|
-
disabled:
|
|
1610
|
-
onClick: () =>
|
|
1611
|
-
children: v(
|
|
2007
|
+
disabled: C,
|
|
2008
|
+
onClick: () => R(null),
|
|
2009
|
+
children: v(m, "Discard preview")
|
|
1612
2010
|
})
|
|
1613
2011
|
] })
|
|
1614
2012
|
}),
|
|
1615
|
-
!
|
|
2013
|
+
!b && !x ? /* @__PURE__ */ l("div", {
|
|
1616
2014
|
className: "empty",
|
|
1617
2015
|
children: [
|
|
1618
|
-
/* @__PURE__ */
|
|
2016
|
+
/* @__PURE__ */ c("span", {
|
|
1619
2017
|
className: "empty-icon",
|
|
1620
2018
|
children: "⌑"
|
|
1621
2019
|
}),
|
|
1622
|
-
/* @__PURE__ */
|
|
1623
|
-
/* @__PURE__ */
|
|
1624
|
-
/* @__PURE__ */
|
|
2020
|
+
/* @__PURE__ */ c("h2", { children: U.empty }),
|
|
2021
|
+
/* @__PURE__ */ c("p", { children: U.emptyBody }),
|
|
2022
|
+
/* @__PURE__ */ l("div", {
|
|
1625
2023
|
className: "actions",
|
|
1626
|
-
children: [/* @__PURE__ */
|
|
2024
|
+
children: [/* @__PURE__ */ l("button", {
|
|
1627
2025
|
className: "ink large",
|
|
1628
|
-
disabled:
|
|
1629
|
-
onClick: () =>
|
|
1630
|
-
children: [
|
|
1631
|
-
}), /* @__PURE__ */
|
|
2026
|
+
disabled: C,
|
|
2027
|
+
onClick: () => Nt.current?.click(),
|
|
2028
|
+
children: [U.upload, /* @__PURE__ */ c(ke, {})]
|
|
2029
|
+
}), /* @__PURE__ */ c("button", {
|
|
1632
2030
|
className: "outline",
|
|
1633
|
-
disabled:
|
|
1634
|
-
onClick: () =>
|
|
1635
|
-
children: v(
|
|
2031
|
+
disabled: C,
|
|
2032
|
+
onClick: () => Yt(),
|
|
2033
|
+
children: v(m, "Enter measurements")
|
|
1636
2034
|
})]
|
|
1637
2035
|
}),
|
|
1638
|
-
|
|
2036
|
+
He && /* @__PURE__ */ c("button", {
|
|
1639
2037
|
className: "outline",
|
|
1640
|
-
disabled:
|
|
1641
|
-
onClick: () =>
|
|
1642
|
-
let e = await
|
|
1643
|
-
|
|
2038
|
+
disabled: C,
|
|
2039
|
+
onClick: () => Z(async () => {
|
|
2040
|
+
let e = await Y("/projects/" + He);
|
|
2041
|
+
X(e), y(e.input.isDraft ? "measure" : "proposals");
|
|
1644
2042
|
}),
|
|
1645
|
-
children: v(
|
|
2043
|
+
children: v(m, "Resume saved project")
|
|
1646
2044
|
}),
|
|
1647
|
-
|
|
2045
|
+
N.mode === "local-demo" && /* @__PURE__ */ c("button", {
|
|
1648
2046
|
className: "textbtn",
|
|
1649
|
-
disabled:
|
|
1650
|
-
onClick:
|
|
1651
|
-
children:
|
|
2047
|
+
disabled: C,
|
|
2048
|
+
onClick: Xt,
|
|
2049
|
+
children: U.try
|
|
1652
2050
|
})
|
|
1653
2051
|
]
|
|
1654
|
-
}) :
|
|
1655
|
-
/* @__PURE__ */
|
|
1656
|
-
language:
|
|
1657
|
-
input:
|
|
1658
|
-
setInput:
|
|
2052
|
+
}) : ne === "measure" && x ? /* @__PURE__ */ l(s, { children: [
|
|
2053
|
+
/* @__PURE__ */ c(Pe, {
|
|
2054
|
+
language: m,
|
|
2055
|
+
input: x,
|
|
2056
|
+
setInput: S,
|
|
1659
2057
|
onChange: (e) => {
|
|
1660
|
-
|
|
2058
|
+
ht(!0), tt(!1), R(null), rt((t) => e === "footprint.diagonals" && t ? {
|
|
2059
|
+
status: "Unvalidated",
|
|
2060
|
+
findings: [],
|
|
2061
|
+
suggestedDiagonal: t.suggestedDiagonal
|
|
2062
|
+
} : null), e && wt((t) => t.filter((t) => t !== e));
|
|
1661
2063
|
},
|
|
1662
|
-
estimatedFields:
|
|
1663
|
-
confirmed:
|
|
1664
|
-
setConfirmed:
|
|
1665
|
-
onGenerate:
|
|
1666
|
-
busy:
|
|
1667
|
-
onUpload: () =>
|
|
1668
|
-
imageUrl:
|
|
1669
|
-
geometry:
|
|
2064
|
+
estimatedFields: Ct,
|
|
2065
|
+
confirmed: et,
|
|
2066
|
+
setConfirmed: tt,
|
|
2067
|
+
onGenerate: Qt,
|
|
2068
|
+
busy: C,
|
|
2069
|
+
onUpload: () => Nt.current?.click(),
|
|
2070
|
+
imageUrl: Ge,
|
|
2071
|
+
geometry: nt
|
|
1670
2072
|
}),
|
|
1671
|
-
|
|
2073
|
+
z && !B && /* @__PURE__ */ l("section", {
|
|
1672
2074
|
className: "paper consent-panel",
|
|
1673
2075
|
children: [
|
|
1674
|
-
/* @__PURE__ */
|
|
1675
|
-
/* @__PURE__ */
|
|
1676
|
-
/* @__PURE__ */
|
|
2076
|
+
/* @__PURE__ */ c("h3", { children: v(m, "Before image upload") }),
|
|
2077
|
+
/* @__PURE__ */ c("p", { children: v(m, "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.") }),
|
|
2078
|
+
/* @__PURE__ */ l("label", {
|
|
1677
2079
|
className: "confirmation",
|
|
1678
|
-
children: [/* @__PURE__ */
|
|
2080
|
+
children: [/* @__PURE__ */ c("input", {
|
|
1679
2081
|
type: "checkbox",
|
|
1680
|
-
checked:
|
|
1681
|
-
onChange: (e) =>
|
|
1682
|
-
}), v(
|
|
2082
|
+
checked: Xe,
|
|
2083
|
+
onChange: (e) => Ze(e.target.checked)
|
|
2084
|
+
}), v(m, "I have permission to use this image for this project.")]
|
|
1683
2085
|
}),
|
|
1684
|
-
/* @__PURE__ */
|
|
2086
|
+
/* @__PURE__ */ l("label", {
|
|
1685
2087
|
className: "confirmation",
|
|
1686
|
-
children: [/* @__PURE__ */
|
|
2088
|
+
children: [/* @__PURE__ */ c("input", {
|
|
1687
2089
|
type: "checkbox",
|
|
1688
|
-
checked:
|
|
1689
|
-
onChange: (e) =>
|
|
1690
|
-
}), v(
|
|
2090
|
+
checked: Qe,
|
|
2091
|
+
onChange: (e) => $e(e.target.checked)
|
|
2092
|
+
}), v(m, "I understand the AI image-processing disclosure above.")]
|
|
1691
2093
|
}),
|
|
1692
|
-
/* @__PURE__ */
|
|
2094
|
+
/* @__PURE__ */ l("label", {
|
|
1693
2095
|
className: "field",
|
|
1694
|
-
children: [v(
|
|
2096
|
+
children: [v(m, "What would you like to create?"), /* @__PURE__ */ c("textarea", {
|
|
1695
2097
|
"aria-label": "Sketch brief",
|
|
1696
|
-
value:
|
|
2098
|
+
value: E,
|
|
1697
2099
|
maxLength: 8e3,
|
|
1698
2100
|
placeholder: "Room wishes, entrance and view, fixed walls, country…",
|
|
1699
|
-
onChange: (e) =>
|
|
2101
|
+
onChange: (e) => se(e.target.value)
|
|
1700
2102
|
})]
|
|
1701
2103
|
}),
|
|
1702
|
-
/* @__PURE__ */
|
|
2104
|
+
/* @__PURE__ */ c("button", {
|
|
1703
2105
|
className: "ink",
|
|
1704
|
-
disabled:
|
|
1705
|
-
onClick:
|
|
1706
|
-
children: v(
|
|
2106
|
+
disabled: C || !Xe || !Qe,
|
|
2107
|
+
onClick: pn,
|
|
2108
|
+
children: v(m, "Upload for scanning")
|
|
1707
2109
|
}),
|
|
1708
|
-
/* @__PURE__ */
|
|
2110
|
+
/* @__PURE__ */ c("button", {
|
|
1709
2111
|
className: "quiet",
|
|
1710
2112
|
onClick: () => {
|
|
1711
|
-
|
|
2113
|
+
We(null), Ze(!1), $e(!1);
|
|
1712
2114
|
},
|
|
1713
|
-
children: v(
|
|
2115
|
+
children: v(m, "Remove local image")
|
|
1714
2116
|
})
|
|
1715
2117
|
]
|
|
1716
2118
|
}),
|
|
1717
|
-
|
|
2119
|
+
B && /* @__PURE__ */ l("section", {
|
|
1718
2120
|
className: "paper consent-panel",
|
|
1719
2121
|
children: [
|
|
1720
|
-
/* @__PURE__ */
|
|
1721
|
-
/* @__PURE__ */
|
|
2122
|
+
/* @__PURE__ */ c("p", { children: v(m, "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.") }),
|
|
2123
|
+
/* @__PURE__ */ l("label", {
|
|
1722
2124
|
className: "field",
|
|
1723
|
-
children: [v(
|
|
2125
|
+
children: [v(m, "What should the sketch reader focus on?"), /* @__PURE__ */ c("textarea", {
|
|
1724
2126
|
"aria-label": "Saved sketch brief",
|
|
1725
|
-
value:
|
|
2127
|
+
value: E,
|
|
1726
2128
|
maxLength: 8e3,
|
|
1727
|
-
onChange: (e) =>
|
|
2129
|
+
onChange: (e) => se(e.target.value)
|
|
1728
2130
|
})]
|
|
1729
2131
|
}),
|
|
1730
|
-
/* @__PURE__ */
|
|
2132
|
+
/* @__PURE__ */ c("button", {
|
|
1731
2133
|
className: "outline",
|
|
1732
|
-
disabled:
|
|
1733
|
-
onClick:
|
|
1734
|
-
children: v(
|
|
2134
|
+
disabled: C,
|
|
2135
|
+
onClick: mn,
|
|
2136
|
+
children: v(m, "Read saved sketch with AI · observations only")
|
|
1735
2137
|
})
|
|
1736
2138
|
]
|
|
1737
2139
|
}),
|
|
1738
|
-
|
|
2140
|
+
V && /* @__PURE__ */ l("section", {
|
|
1739
2141
|
className: "paper candidate-panel",
|
|
1740
2142
|
children: [
|
|
1741
|
-
/* @__PURE__ */
|
|
1742
|
-
/* @__PURE__ */
|
|
1743
|
-
/* @__PURE__ */
|
|
1744
|
-
/* @__PURE__ */
|
|
2143
|
+
/* @__PURE__ */ c("h3", { children: v(m, "Recognized outline · estimated") }),
|
|
2144
|
+
/* @__PURE__ */ c("p", { children: V.input ? `${V.input.edges.length} linked boundary edges · geometry ${V.status}` : "The reader did not return a complete, valid outline. Enter or correct measurements manually." }),
|
|
2145
|
+
/* @__PURE__ */ c("p", { children: "Lengths use explicit labels only. Image coordinates do not establish physical scale. Bearings and wall types remain assumptions to review." }),
|
|
2146
|
+
/* @__PURE__ */ c("button", {
|
|
1745
2147
|
className: "outline",
|
|
1746
|
-
disabled:
|
|
1747
|
-
onClick:
|
|
1748
|
-
children: v(
|
|
2148
|
+
disabled: C || !V.input || xt,
|
|
2149
|
+
onClick: vn,
|
|
2150
|
+
children: v(m, "Preview recognized outline")
|
|
1749
2151
|
}),
|
|
1750
|
-
|
|
1751
|
-
/* @__PURE__ */
|
|
1752
|
-
report:
|
|
1753
|
-
language:
|
|
2152
|
+
xt && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("p", { children: v(m, "Local estimated preview only. The saved project is unchanged.") }), /* @__PURE__ */ c(Fe, { candidate: V })] }),
|
|
2153
|
+
/* @__PURE__ */ c(Ne, {
|
|
2154
|
+
report: V.values,
|
|
2155
|
+
language: m
|
|
1754
2156
|
})
|
|
1755
2157
|
]
|
|
1756
2158
|
}),
|
|
1757
|
-
(
|
|
2159
|
+
(kt.length > 0 || Je.length > 0) && /* @__PURE__ */ l("article", {
|
|
1758
2160
|
className: "paper findings",
|
|
1759
2161
|
children: [
|
|
1760
|
-
/* @__PURE__ */
|
|
1761
|
-
/* @__PURE__ */
|
|
1762
|
-
|
|
1763
|
-
/* @__PURE__ */
|
|
1764
|
-
e.value != null && /* @__PURE__ */
|
|
2162
|
+
/* @__PURE__ */ c("h3", { children: v(m, "Sketch observations to confirm") }),
|
|
2163
|
+
/* @__PURE__ */ c("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." }),
|
|
2164
|
+
kt.map((e, t) => /* @__PURE__ */ l("section", { children: [
|
|
2165
|
+
/* @__PURE__ */ l("strong", { children: [e.kind, e.edgeId ? " · " + e.edgeId : ""] }),
|
|
2166
|
+
e.value != null && /* @__PURE__ */ l("p", { children: [
|
|
1765
2167
|
e.value,
|
|
1766
2168
|
" ",
|
|
1767
2169
|
e.unit ?? "unit unknown",
|
|
1768
2170
|
" ",
|
|
1769
|
-
/* @__PURE__ */
|
|
2171
|
+
/* @__PURE__ */ c("span", {
|
|
1770
2172
|
className: "value-tag origin-estimated",
|
|
1771
2173
|
children: "estimated · unconfirmed"
|
|
1772
2174
|
})
|
|
1773
2175
|
] }),
|
|
1774
|
-
/* @__PURE__ */
|
|
2176
|
+
/* @__PURE__ */ c("p", { children: e.evidence })
|
|
1775
2177
|
] }, t)),
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
report:
|
|
1779
|
-
language:
|
|
2178
|
+
Je.map((e, t) => /* @__PURE__ */ c("p", { children: e }, t)),
|
|
2179
|
+
jt && /* @__PURE__ */ c(Ne, {
|
|
2180
|
+
report: jt,
|
|
2181
|
+
language: m
|
|
1780
2182
|
})
|
|
1781
2183
|
]
|
|
1782
2184
|
})
|
|
1783
|
-
] }) :
|
|
1784
|
-
/* @__PURE__ */
|
|
2185
|
+
] }) : K ? /* @__PURE__ */ l(s, { children: [
|
|
2186
|
+
/* @__PURE__ */ l("div", {
|
|
1785
2187
|
className: "metrics",
|
|
1786
2188
|
children: [
|
|
1787
|
-
/* @__PURE__ */
|
|
1788
|
-
|
|
2189
|
+
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ l("span", { children: [
|
|
2190
|
+
U.area,
|
|
1789
2191
|
" ",
|
|
1790
|
-
/* @__PURE__ */
|
|
1791
|
-
language:
|
|
2192
|
+
/* @__PURE__ */ c(F, {
|
|
2193
|
+
language: m,
|
|
1792
2194
|
report: $,
|
|
1793
2195
|
path: "centerlineAreaM2"
|
|
1794
2196
|
})
|
|
1795
|
-
] }), /* @__PURE__ */
|
|
1796
|
-
/* @__PURE__ */
|
|
1797
|
-
|
|
2197
|
+
] }), /* @__PURE__ */ l("strong", { children: [K.centerlineAreaM2.toFixed(2), /* @__PURE__ */ c("small", { children: "m²" })] })] }),
|
|
2198
|
+
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ l("span", { children: [
|
|
2199
|
+
U.net,
|
|
1798
2200
|
" ",
|
|
1799
|
-
/* @__PURE__ */
|
|
1800
|
-
language:
|
|
2201
|
+
/* @__PURE__ */ c(F, {
|
|
2202
|
+
language: m,
|
|
1801
2203
|
report: $,
|
|
1802
2204
|
path: "netAreaM2"
|
|
1803
2205
|
})
|
|
1804
|
-
] }), /* @__PURE__ */
|
|
1805
|
-
/* @__PURE__ */
|
|
1806
|
-
|
|
2206
|
+
] }), /* @__PURE__ */ l("strong", { children: [K.netAreaM2.toFixed(2), /* @__PURE__ */ c("small", { children: "m²" })] })] }),
|
|
2207
|
+
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ l("span", { children: [
|
|
2208
|
+
U.perimeter,
|
|
1807
2209
|
" ",
|
|
1808
|
-
/* @__PURE__ */
|
|
1809
|
-
language:
|
|
2210
|
+
/* @__PURE__ */ c(F, {
|
|
2211
|
+
language: m,
|
|
1810
2212
|
report: $,
|
|
1811
2213
|
path: "perimeterM"
|
|
1812
2214
|
})
|
|
1813
|
-
] }), /* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */
|
|
2215
|
+
] }), /* @__PURE__ */ l("strong", { children: [G?.reconciliation.solutions[0]?.perimeterM.toFixed(2), /* @__PURE__ */ c("small", { children: "m" })] })] }),
|
|
2216
|
+
/* @__PURE__ */ l("div", {
|
|
1815
2217
|
className: "metric-note",
|
|
1816
|
-
children: [
|
|
2218
|
+
children: [K.hasRequiredConflicts ? U.warning : v(m, "Required layout checks passed"), /* @__PURE__ */ c("span", { children: v(m, "Reference sources remain visible below.") })]
|
|
1817
2219
|
})
|
|
1818
2220
|
]
|
|
1819
2221
|
}),
|
|
1820
|
-
/* @__PURE__ */
|
|
2222
|
+
/* @__PURE__ */ l("div", {
|
|
1821
2223
|
className: "drawing-layout",
|
|
1822
|
-
children: [/* @__PURE__ */
|
|
2224
|
+
children: [/* @__PURE__ */ l("article", {
|
|
1823
2225
|
className: "drawing paper",
|
|
1824
2226
|
children: [
|
|
1825
|
-
/* @__PURE__ */
|
|
2227
|
+
/* @__PURE__ */ l("div", {
|
|
1826
2228
|
className: "drawing-top",
|
|
1827
2229
|
children: [
|
|
1828
|
-
/* @__PURE__ */
|
|
1829
|
-
/* @__PURE__ */
|
|
1830
|
-
/* @__PURE__ */
|
|
2230
|
+
/* @__PURE__ */ l("span", { children: ["LAYOUT ", K.id] }),
|
|
2231
|
+
/* @__PURE__ */ c("span", { children: L ? "UNSAVED EDIT PREVIEW" : "ENGINE-CHECKED CONCEPT" }),
|
|
2232
|
+
/* @__PURE__ */ c("span", { children: "METRES / CONCEPT" })
|
|
1831
2233
|
]
|
|
1832
2234
|
}),
|
|
1833
|
-
/* @__PURE__ */
|
|
2235
|
+
/* @__PURE__ */ c("div", {
|
|
1834
2236
|
className: "engine-svg",
|
|
1835
|
-
dangerouslySetInnerHTML: { __html:
|
|
2237
|
+
dangerouslySetInnerHTML: { __html: o.sanitize(K.svg, { USE_PROFILES: {
|
|
1836
2238
|
svg: !0,
|
|
1837
2239
|
svgFilters: !0
|
|
1838
2240
|
} }) }
|
|
1839
2241
|
}),
|
|
1840
|
-
/* @__PURE__ */
|
|
2242
|
+
/* @__PURE__ */ l("div", {
|
|
1841
2243
|
className: "drawing-bottom",
|
|
1842
|
-
children: [/* @__PURE__ */
|
|
1843
|
-
|
|
2244
|
+
children: [/* @__PURE__ */ c("span", { children: p === "karamentreprises" ? "KARAMENTREPRISES BIM" : "BAULYNQ VISION" }), /* @__PURE__ */ l("span", { children: [
|
|
2245
|
+
L ? "PREVIEW / " : "",
|
|
1844
2246
|
"v",
|
|
1845
|
-
|
|
2247
|
+
G?.version,
|
|
1846
2248
|
" · ",
|
|
1847
|
-
|
|
2249
|
+
m.toUpperCase()
|
|
1848
2250
|
] })]
|
|
1849
2251
|
})
|
|
1850
2252
|
]
|
|
1851
|
-
}), /* @__PURE__ */
|
|
2253
|
+
}), /* @__PURE__ */ l("aside", {
|
|
1852
2254
|
className: "proposal-panel",
|
|
1853
2255
|
children: [
|
|
1854
|
-
/* @__PURE__ */
|
|
2256
|
+
/* @__PURE__ */ c("span", {
|
|
1855
2257
|
className: "eyebrow",
|
|
1856
2258
|
children: "FIND YOUR FIT"
|
|
1857
2259
|
}),
|
|
1858
|
-
|
|
1859
|
-
className: "proposal-card " + (
|
|
1860
|
-
|
|
1861
|
-
|
|
2260
|
+
G?.proposals.map((e) => /* @__PURE__ */ l("button", {
|
|
2261
|
+
className: "proposal-card " + (ie === e.id ? "selected" : ""),
|
|
2262
|
+
disabled: C,
|
|
2263
|
+
onClick: () => {
|
|
2264
|
+
ie !== e.id && (ae(e.id), fe(null), A(null));
|
|
2265
|
+
},
|
|
2266
|
+
children: [/* @__PURE__ */ c("span", {
|
|
1862
2267
|
className: "proposal-letter",
|
|
1863
2268
|
children: e.id
|
|
1864
|
-
}), /* @__PURE__ */
|
|
1865
|
-
e.recommended && /* @__PURE__ */
|
|
2269
|
+
}), /* @__PURE__ */ l("div", { children: [
|
|
2270
|
+
e.recommended && /* @__PURE__ */ c("small", {
|
|
1866
2271
|
className: "badge",
|
|
1867
|
-
children:
|
|
2272
|
+
children: U.recommended
|
|
1868
2273
|
}),
|
|
1869
|
-
/* @__PURE__ */
|
|
1870
|
-
/* @__PURE__ */
|
|
2274
|
+
/* @__PURE__ */ c("h3", { children: e.title }),
|
|
2275
|
+
/* @__PURE__ */ c("p", { children: e.tradeOffs[0] })
|
|
1871
2276
|
] })]
|
|
1872
2277
|
}, e.id)),
|
|
1873
|
-
/* @__PURE__ */
|
|
2278
|
+
/* @__PURE__ */ l("button", {
|
|
1874
2279
|
className: "ink full",
|
|
1875
|
-
disabled:
|
|
1876
|
-
onClick: () =>
|
|
1877
|
-
children: [
|
|
2280
|
+
disabled: C || !!L,
|
|
2281
|
+
onClick: () => tn(K),
|
|
2282
|
+
children: [U.select, /* @__PURE__ */ c(ke, {})]
|
|
1878
2283
|
}),
|
|
1879
|
-
!e &&
|
|
2284
|
+
!e && b && /* @__PURE__ */ l("section", {
|
|
1880
2285
|
className: "project-price",
|
|
1881
2286
|
children: [
|
|
1882
|
-
/* @__PURE__ */
|
|
1883
|
-
/* @__PURE__ */
|
|
1884
|
-
|
|
2287
|
+
/* @__PURE__ */ c("h3", { children: v(m, "Project billing") }),
|
|
2288
|
+
/* @__PURE__ */ c("p", { children: "One project includes proposals, refinements and its BIM model within the configured caps. Free allowances are checked by the service." }),
|
|
2289
|
+
q ? /* @__PURE__ */ l("p", {
|
|
1885
2290
|
className: "quota-disclosure",
|
|
1886
2291
|
children: [
|
|
1887
2292
|
"After the initial proposal request: ",
|
|
1888
|
-
|
|
2293
|
+
q.regenerations,
|
|
1889
2294
|
" regenerations · ",
|
|
1890
|
-
|
|
2295
|
+
q.chat,
|
|
1891
2296
|
" chat refinements · ",
|
|
1892
|
-
|
|
2297
|
+
q.exports,
|
|
1893
2298
|
" ",
|
|
1894
|
-
|
|
2299
|
+
q.exports === 1 ? "BIM export" : "BIM exports",
|
|
1895
2300
|
" per paid project."
|
|
1896
2301
|
]
|
|
1897
|
-
}) : /* @__PURE__ */
|
|
1898
|
-
O ? /* @__PURE__ */
|
|
1899
|
-
/* @__PURE__ */
|
|
2302
|
+
}) : /* @__PURE__ */ c("p", { children: "Project usage limits are unavailable. Checkout stays disabled until they can be shown." }),
|
|
2303
|
+
O ? /* @__PURE__ */ l(s, { children: [
|
|
2304
|
+
/* @__PURE__ */ c("strong", { children: _e({
|
|
1900
2305
|
priceMinorUnits: O.priceMinorUnits,
|
|
1901
2306
|
currency: O.currency
|
|
1902
|
-
},
|
|
1903
|
-
/* @__PURE__ */
|
|
2307
|
+
}, m) }),
|
|
2308
|
+
/* @__PURE__ */ l("p", { children: [
|
|
1904
2309
|
"Quote valid until ",
|
|
1905
|
-
new Date(O.expiresAtUtc).toLocaleString(
|
|
2310
|
+
new Date(O.expiresAtUtc).toLocaleString(m),
|
|
1906
2311
|
"."
|
|
1907
2312
|
] }),
|
|
1908
|
-
/* @__PURE__ */
|
|
2313
|
+
/* @__PURE__ */ c("button", {
|
|
1909
2314
|
className: "ink full",
|
|
1910
|
-
disabled:
|
|
1911
|
-
onClick:
|
|
1912
|
-
children: v(
|
|
2315
|
+
disabled: C || !Ut || !q,
|
|
2316
|
+
onClick: sn,
|
|
2317
|
+
children: v(m, "Continue to Stripe")
|
|
1913
2318
|
}),
|
|
1914
|
-
/* @__PURE__ */
|
|
2319
|
+
/* @__PURE__ */ c("button", {
|
|
1915
2320
|
className: "textbtn",
|
|
1916
|
-
disabled:
|
|
1917
|
-
onClick:
|
|
1918
|
-
children: v(
|
|
2321
|
+
disabled: C,
|
|
2322
|
+
onClick: on,
|
|
2323
|
+
children: v(m, "Refresh project quote")
|
|
1919
2324
|
})
|
|
1920
|
-
] }) : /* @__PURE__ */
|
|
2325
|
+
] }) : /* @__PURE__ */ c("button", {
|
|
1921
2326
|
className: "outline full",
|
|
1922
|
-
disabled:
|
|
1923
|
-
onClick:
|
|
1924
|
-
children: v(
|
|
2327
|
+
disabled: C || !Ut,
|
|
2328
|
+
onClick: on,
|
|
2329
|
+
children: v(m, "View project price")
|
|
1925
2330
|
}),
|
|
1926
|
-
!
|
|
1927
|
-
/* @__PURE__ */
|
|
2331
|
+
!Ut && /* @__PURE__ */ c("small", { children: v(m, "Purchases are not enabled in this environment.") }),
|
|
2332
|
+
/* @__PURE__ */ c("small", { children: "A checkout return is not proof of payment; downloads use the service's verified entitlement." })
|
|
1928
2333
|
]
|
|
1929
2334
|
}),
|
|
1930
|
-
/* @__PURE__ */
|
|
2335
|
+
/* @__PURE__ */ l("section", {
|
|
1931
2336
|
className: "drawing-downloads",
|
|
1932
2337
|
children: [
|
|
1933
|
-
/* @__PURE__ */
|
|
1934
|
-
/* @__PURE__ */
|
|
2338
|
+
/* @__PURE__ */ c("h3", { children: v(m, "2D concept drawings") }),
|
|
2339
|
+
/* @__PURE__ */ c("button", {
|
|
1935
2340
|
className: "outline full",
|
|
1936
|
-
disabled:
|
|
1937
|
-
onClick:
|
|
1938
|
-
children: v(
|
|
2341
|
+
disabled: C || !!L,
|
|
2342
|
+
onClick: ln,
|
|
2343
|
+
children: v(m, "Prepare PDF / editable DXF / SVG")
|
|
1939
2344
|
}),
|
|
1940
|
-
|
|
2345
|
+
k && Object.keys(k.files).map((e) => /* @__PURE__ */ l("button", {
|
|
1941
2346
|
className: "quiet",
|
|
1942
|
-
onClick: () =>
|
|
2347
|
+
onClick: () => dn(e, k),
|
|
1943
2348
|
children: [e.toUpperCase(), " ↓"]
|
|
1944
2349
|
}, e)),
|
|
1945
|
-
/* @__PURE__ */
|
|
2350
|
+
/* @__PURE__ */ c("small", { children: "Separate from the BIM model export. PDF is included when the service has PDF rendering configured." })
|
|
1946
2351
|
]
|
|
1947
2352
|
}),
|
|
1948
|
-
/* @__PURE__ */
|
|
2353
|
+
/* @__PURE__ */ l("div", {
|
|
1949
2354
|
className: "tradeoffs",
|
|
1950
|
-
children: [/* @__PURE__ */
|
|
2355
|
+
children: [/* @__PURE__ */ c("h3", { children: U.tradeoffs }), K.tradeOffs.map((e, t) => /* @__PURE__ */ c("p", { children: e }, t))]
|
|
1951
2356
|
}),
|
|
1952
|
-
|
|
1953
|
-
/* @__PURE__ */
|
|
1954
|
-
|
|
2357
|
+
ne === "download" ? /* @__PURE__ */ l(s, { children: [
|
|
2358
|
+
/* @__PURE__ */ c("h3", { children: U.download }),
|
|
2359
|
+
de ? Object.keys(de.files).map((e) => /* @__PURE__ */ l("button", {
|
|
1955
2360
|
className: "outline full",
|
|
1956
|
-
onClick: () =>
|
|
2361
|
+
onClick: () => dn(e),
|
|
1957
2362
|
children: [e.toUpperCase(), " ↓"]
|
|
1958
|
-
}, e)) : /* @__PURE__ */
|
|
2363
|
+
}, e)) : /* @__PURE__ */ l("button", {
|
|
1959
2364
|
className: "ink full",
|
|
1960
|
-
disabled:
|
|
1961
|
-
onClick:
|
|
1962
|
-
children: [
|
|
2365
|
+
disabled: C || !!L || K.hasRequiredConflicts,
|
|
2366
|
+
onClick: un,
|
|
2367
|
+
children: [U.export, /* @__PURE__ */ c(ke, {})]
|
|
1963
2368
|
}),
|
|
1964
|
-
/* @__PURE__ */
|
|
1965
|
-
] }) : /* @__PURE__ */
|
|
2369
|
+
/* @__PURE__ */ c("small", { children: de?.viewerVerification ?? U.downloadNote })
|
|
2370
|
+
] }) : /* @__PURE__ */ l("div", {
|
|
1966
2371
|
className: "chat",
|
|
1967
2372
|
children: [
|
|
1968
|
-
/* @__PURE__ */
|
|
1969
|
-
/* @__PURE__ */
|
|
1970
|
-
"aria-label":
|
|
1971
|
-
placeholder:
|
|
1972
|
-
value:
|
|
2373
|
+
/* @__PURE__ */ c("h3", { children: U.chat }),
|
|
2374
|
+
/* @__PURE__ */ c("textarea", {
|
|
2375
|
+
"aria-label": U.chat,
|
|
2376
|
+
placeholder: U.hint,
|
|
2377
|
+
value: E,
|
|
1973
2378
|
maxLength: 8e3,
|
|
1974
|
-
onChange: (e) =>
|
|
2379
|
+
onChange: (e) => se(e.target.value)
|
|
1975
2380
|
}),
|
|
1976
|
-
/* @__PURE__ */
|
|
2381
|
+
/* @__PURE__ */ l("button", {
|
|
1977
2382
|
className: "outline full",
|
|
1978
|
-
disabled:
|
|
1979
|
-
onClick:
|
|
1980
|
-
children: [
|
|
2383
|
+
disabled: C || !E.trim(),
|
|
2384
|
+
onClick: $t,
|
|
2385
|
+
children: [U.send, " →"]
|
|
1981
2386
|
})
|
|
1982
2387
|
]
|
|
1983
2388
|
})
|
|
1984
2389
|
]
|
|
1985
2390
|
})]
|
|
1986
2391
|
}),
|
|
1987
|
-
/* @__PURE__ */
|
|
2392
|
+
/* @__PURE__ */ l("div", {
|
|
1988
2393
|
className: "detail-grid",
|
|
1989
|
-
children: [/* @__PURE__ */
|
|
2394
|
+
children: [/* @__PURE__ */ l("article", {
|
|
1990
2395
|
className: "paper schedule",
|
|
1991
|
-
children: [/* @__PURE__ */
|
|
1992
|
-
/* @__PURE__ */
|
|
1993
|
-
/* @__PURE__ */
|
|
1994
|
-
/* @__PURE__ */
|
|
1995
|
-
/* @__PURE__ */
|
|
1996
|
-
/* @__PURE__ */
|
|
2396
|
+
children: [/* @__PURE__ */ c("h3", { children: U.schedule }), /* @__PURE__ */ l("table", { children: [
|
|
2397
|
+
/* @__PURE__ */ c("thead", { children: /* @__PURE__ */ l("tr", { children: [
|
|
2398
|
+
/* @__PURE__ */ c("th", { children: v(m, "Room") }),
|
|
2399
|
+
/* @__PURE__ */ c("th", { children: "W × D" }),
|
|
2400
|
+
/* @__PURE__ */ c("th", { children: v(m, "Axis m²") }),
|
|
2401
|
+
/* @__PURE__ */ c("th", { children: v(m, "Net m²") })
|
|
1997
2402
|
] }) }),
|
|
1998
|
-
/* @__PURE__ */
|
|
1999
|
-
/* @__PURE__ */
|
|
2000
|
-
/* @__PURE__ */
|
|
2403
|
+
/* @__PURE__ */ c("tbody", { children: K.schedule.map((e) => /* @__PURE__ */ l("tr", { children: [
|
|
2404
|
+
/* @__PURE__ */ c("td", { children: e.name }),
|
|
2405
|
+
/* @__PURE__ */ l("td", { children: [
|
|
2001
2406
|
e.widthM.toFixed(2),
|
|
2002
2407
|
" × ",
|
|
2003
2408
|
e.depthM.toFixed(2),
|
|
2004
|
-
/* @__PURE__ */
|
|
2005
|
-
language:
|
|
2409
|
+
/* @__PURE__ */ c(F, {
|
|
2410
|
+
language: m,
|
|
2006
2411
|
report: $,
|
|
2007
2412
|
path: `${e.roomId}.widthM`
|
|
2008
2413
|
}),
|
|
2009
|
-
/* @__PURE__ */
|
|
2010
|
-
language:
|
|
2414
|
+
/* @__PURE__ */ c(F, {
|
|
2415
|
+
language: m,
|
|
2011
2416
|
report: $,
|
|
2012
2417
|
path: `${e.roomId}.depthM`
|
|
2013
2418
|
})
|
|
2014
2419
|
] }),
|
|
2015
|
-
/* @__PURE__ */
|
|
2016
|
-
language:
|
|
2420
|
+
/* @__PURE__ */ l("td", { children: [e.centerlineAreaM2.toFixed(2), /* @__PURE__ */ c(F, {
|
|
2421
|
+
language: m,
|
|
2017
2422
|
report: $,
|
|
2018
2423
|
path: `${e.roomId}.centerlineAreaM2`
|
|
2019
2424
|
})] }),
|
|
2020
|
-
/* @__PURE__ */
|
|
2021
|
-
language:
|
|
2425
|
+
/* @__PURE__ */ l("td", { children: [e.netAreaM2.toFixed(2), /* @__PURE__ */ c(F, {
|
|
2426
|
+
language: m,
|
|
2022
2427
|
report: $,
|
|
2023
2428
|
path: `${e.roomId}.netAreaM2`
|
|
2024
2429
|
})] })
|
|
2025
2430
|
] }, e.roomId)) }),
|
|
2026
|
-
/* @__PURE__ */
|
|
2027
|
-
/* @__PURE__ */
|
|
2028
|
-
/* @__PURE__ */
|
|
2029
|
-
/* @__PURE__ */
|
|
2030
|
-
language:
|
|
2431
|
+
/* @__PURE__ */ c("tfoot", { children: /* @__PURE__ */ l("tr", { children: [
|
|
2432
|
+
/* @__PURE__ */ c("th", { children: v(m, "Total") }),
|
|
2433
|
+
/* @__PURE__ */ c("td", {}),
|
|
2434
|
+
/* @__PURE__ */ l("th", { children: [K.centerlineAreaM2.toFixed(2), /* @__PURE__ */ c(F, {
|
|
2435
|
+
language: m,
|
|
2031
2436
|
report: $,
|
|
2032
2437
|
path: "centerlineAreaM2"
|
|
2033
2438
|
})] }),
|
|
2034
|
-
/* @__PURE__ */
|
|
2035
|
-
language:
|
|
2439
|
+
/* @__PURE__ */ l("th", { children: [K.netAreaM2.toFixed(2), /* @__PURE__ */ c(F, {
|
|
2440
|
+
language: m,
|
|
2036
2441
|
report: $,
|
|
2037
2442
|
path: "netAreaM2"
|
|
2038
2443
|
})] })
|
|
2039
2444
|
] }) })
|
|
2040
2445
|
] })]
|
|
2041
|
-
}), /* @__PURE__ */
|
|
2446
|
+
}), /* @__PURE__ */ l("article", {
|
|
2042
2447
|
className: "paper check-summary",
|
|
2043
2448
|
children: [
|
|
2044
|
-
/* @__PURE__ */
|
|
2045
|
-
/* @__PURE__ */
|
|
2449
|
+
/* @__PURE__ */ c("h3", { children: U.checks }),
|
|
2450
|
+
/* @__PURE__ */ c("div", {
|
|
2046
2451
|
className: "check-counts",
|
|
2047
|
-
children: Object.entries(
|
|
2452
|
+
children: Object.entries(xn).map(([e, t]) => /* @__PURE__ */ l("span", { children: [/* @__PURE__ */ c("strong", { children: t }), e] }, e))
|
|
2048
2453
|
}),
|
|
2049
|
-
/* @__PURE__ */
|
|
2454
|
+
/* @__PURE__ */ l("button", {
|
|
2050
2455
|
className: "textbtn",
|
|
2051
|
-
onClick: () => Ie(!
|
|
2456
|
+
onClick: () => Ie(!Me),
|
|
2052
2457
|
children: [
|
|
2053
|
-
|
|
2458
|
+
Me ? v(m, "Hide") : U.notes,
|
|
2054
2459
|
" ",
|
|
2055
|
-
|
|
2460
|
+
Me ? "−" : "+"
|
|
2056
2461
|
]
|
|
2057
2462
|
}),
|
|
2058
|
-
/* @__PURE__ */
|
|
2463
|
+
/* @__PURE__ */ c("p", { children: "Reference-only entries are disclosed, never presented as passed checks. Country statutory certification is not inferred." })
|
|
2059
2464
|
]
|
|
2060
2465
|
})]
|
|
2061
2466
|
}),
|
|
2062
|
-
|
|
2467
|
+
Me && /* @__PURE__ */ c("article", {
|
|
2063
2468
|
className: "paper findings",
|
|
2064
|
-
children:
|
|
2065
|
-
/* @__PURE__ */
|
|
2066
|
-
/* @__PURE__ */
|
|
2469
|
+
children: K.findings.map((e, t) => /* @__PURE__ */ l("details", { children: [
|
|
2470
|
+
/* @__PURE__ */ l("summary", { children: [
|
|
2471
|
+
/* @__PURE__ */ c("span", {
|
|
2067
2472
|
className: "status " + e.status,
|
|
2068
2473
|
children: e.status
|
|
2069
2474
|
}),
|
|
2070
|
-
/* @__PURE__ */
|
|
2071
|
-
/* @__PURE__ */
|
|
2475
|
+
/* @__PURE__ */ c("code", { children: e.ruleId }),
|
|
2476
|
+
/* @__PURE__ */ c("span", { children: e.subjectId })
|
|
2072
2477
|
] }),
|
|
2073
|
-
/* @__PURE__ */
|
|
2074
|
-
e.fix && /* @__PURE__ */
|
|
2075
|
-
/* @__PURE__ */
|
|
2478
|
+
/* @__PURE__ */ c("p", { children: e.measurement }),
|
|
2479
|
+
e.fix && /* @__PURE__ */ c("p", { children: e.fix }),
|
|
2480
|
+
/* @__PURE__ */ c("small", { children: e.source })
|
|
2076
2481
|
] }, t))
|
|
2077
2482
|
}),
|
|
2078
|
-
/* @__PURE__ */
|
|
2483
|
+
/* @__PURE__ */ c("p", {
|
|
2079
2484
|
className: "disclaimer",
|
|
2080
|
-
children:
|
|
2485
|
+
children: U.disclaimer
|
|
2081
2486
|
})
|
|
2082
|
-
] }) :
|
|
2083
|
-
|
|
2487
|
+
] }) : G ? /* @__PURE__ */ l("section", {
|
|
2488
|
+
className: "paper findings",
|
|
2489
|
+
role: "status",
|
|
2490
|
+
children: [
|
|
2491
|
+
/* @__PURE__ */ c("h2", { children: v(m, "No layout proposal is available") }),
|
|
2492
|
+
/* @__PURE__ */ c("p", { children: v(m, "Your measurements are retained. Review the engine findings and measurements before trying again.") }),
|
|
2493
|
+
/* @__PURE__ */ l("p", { children: [
|
|
2494
|
+
v(m, "Status"),
|
|
2495
|
+
": ",
|
|
2496
|
+
G.reconciliation.status
|
|
2497
|
+
] }),
|
|
2498
|
+
G.reconciliation.findings.map((e, t) => /* @__PURE__ */ c("p", { children: e.message }, t)),
|
|
2499
|
+
/* @__PURE__ */ c("button", {
|
|
2500
|
+
className: "outline",
|
|
2501
|
+
disabled: C,
|
|
2502
|
+
onClick: () => y("measure"),
|
|
2503
|
+
children: v(m, "Review measurements")
|
|
2504
|
+
}),
|
|
2505
|
+
/* @__PURE__ */ c("p", {
|
|
2506
|
+
className: "disclaimer",
|
|
2507
|
+
children: U.disclaimer
|
|
2508
|
+
})
|
|
2509
|
+
]
|
|
2510
|
+
}) : null,
|
|
2511
|
+
b && /* @__PURE__ */ c(ee, {
|
|
2512
|
+
language: m,
|
|
2513
|
+
version: b.version,
|
|
2514
|
+
busy: C,
|
|
2515
|
+
preview: !!L,
|
|
2516
|
+
open: ct,
|
|
2517
|
+
versions: it,
|
|
2518
|
+
comparison: ot,
|
|
2519
|
+
left: ut,
|
|
2520
|
+
right: ft,
|
|
2521
|
+
onToggle: nn,
|
|
2522
|
+
onLeftChange: (e) => {
|
|
2523
|
+
dt(e), st(null);
|
|
2524
|
+
},
|
|
2525
|
+
onRightChange: (e) => {
|
|
2526
|
+
pt(e), st(null);
|
|
2527
|
+
},
|
|
2528
|
+
onCompare: rn,
|
|
2529
|
+
onRestore: an
|
|
2530
|
+
}),
|
|
2531
|
+
(G || nt) && /* @__PURE__ */ c(Ne, {
|
|
2084
2532
|
report: $,
|
|
2085
|
-
language:
|
|
2533
|
+
language: m
|
|
2086
2534
|
})
|
|
2087
2535
|
]
|
|
2088
2536
|
}),
|
|
2089
|
-
/* @__PURE__ */
|
|
2537
|
+
/* @__PURE__ */ c("input", {
|
|
2090
2538
|
hidden: !0,
|
|
2091
2539
|
type: "file",
|
|
2092
|
-
ref:
|
|
2540
|
+
ref: Nt,
|
|
2093
2541
|
accept: "image/png,image/jpeg,image/webp",
|
|
2094
2542
|
onChange: (e) => {
|
|
2095
2543
|
let t = e.target.files?.[0];
|
|
2096
|
-
t &&
|
|
2544
|
+
t && fn(t), e.target.value = "";
|
|
2097
2545
|
}
|
|
2098
2546
|
})
|
|
2099
2547
|
]
|
|
2100
2548
|
}),
|
|
2101
|
-
|
|
2549
|
+
C && /* @__PURE__ */ l("div", {
|
|
2102
2550
|
className: "working",
|
|
2103
2551
|
role: "status",
|
|
2104
|
-
children: [/* @__PURE__ */
|
|
2552
|
+
children: [/* @__PURE__ */ c("span", { className: "spinner" }), U.generating]
|
|
2105
2553
|
}),
|
|
2106
|
-
|
|
2554
|
+
_ === "studio" && b && Tt.length > 0 && /* @__PURE__ */ c("section", {
|
|
2107
2555
|
className: "paper saved-files",
|
|
2108
|
-
children: /* @__PURE__ */
|
|
2109
|
-
/* @__PURE__ */
|
|
2556
|
+
children: /* @__PURE__ */ l("details", { children: [/* @__PURE__ */ c("summary", { children: v(m, "Saved project files · download without a new export") }), Tt.map((e) => /* @__PURE__ */ l("article", { children: [
|
|
2557
|
+
/* @__PURE__ */ l("strong", { children: [
|
|
2110
2558
|
e.kind,
|
|
2111
2559
|
e.version ? " · v" + e.version : "",
|
|
2112
2560
|
e.proposalId ? " · " + e.proposalId : ""
|
|
2113
2561
|
] }),
|
|
2114
|
-
e.files.map((t) => /* @__PURE__ */
|
|
2562
|
+
e.files.map((t) => /* @__PURE__ */ l("button", {
|
|
2115
2563
|
className: "quiet",
|
|
2116
|
-
disabled:
|
|
2117
|
-
onClick: () =>
|
|
2564
|
+
disabled: C,
|
|
2565
|
+
onClick: () => bn(e, t),
|
|
2118
2566
|
children: [t.format.toUpperCase(), " ↓"]
|
|
2119
2567
|
}, t.objectId)),
|
|
2120
2568
|
e.kind === "upload" && e.files.find((e) => [
|
|
2121
2569
|
"png",
|
|
2122
2570
|
"jpeg",
|
|
2123
2571
|
"webp"
|
|
2124
|
-
].includes(e.format)) && /* @__PURE__ */
|
|
2572
|
+
].includes(e.format)) && /* @__PURE__ */ c("button", {
|
|
2125
2573
|
className: "outline",
|
|
2126
|
-
disabled:
|
|
2127
|
-
onClick: () =>
|
|
2574
|
+
disabled: C,
|
|
2575
|
+
onClick: () => yn(e.files.find((e) => [
|
|
2128
2576
|
"png",
|
|
2129
2577
|
"jpeg",
|
|
2130
2578
|
"webp"
|
|
2131
2579
|
].includes(e.format)).objectId),
|
|
2132
|
-
children: v(
|
|
2580
|
+
children: v(m, "Use saved sketch")
|
|
2133
2581
|
})
|
|
2134
2582
|
] }, e.artifactId))] })
|
|
2135
2583
|
}),
|
|
2136
|
-
!e &&
|
|
2584
|
+
!e && N.analyticsEnabled === !0 && /* @__PURE__ */ l("aside", {
|
|
2137
2585
|
className: "analytics-choice",
|
|
2138
|
-
children: [/* @__PURE__ */
|
|
2586
|
+
children: [/* @__PURE__ */ l("label", { children: [/* @__PURE__ */ c("input", {
|
|
2139
2587
|
type: "checkbox",
|
|
2140
|
-
checked:
|
|
2141
|
-
onChange: (e) =>
|
|
2142
|
-
}), " Allow optional visit and paywall analytics"] }), /* @__PURE__ */
|
|
2588
|
+
checked: Dt,
|
|
2589
|
+
onChange: (e) => Jt(e.target.checked)
|
|
2590
|
+
}), " Allow optional visit and paywall analytics"] }), /* @__PURE__ */ c("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." })]
|
|
2143
2591
|
}),
|
|
2144
|
-
!e &&
|
|
2592
|
+
!e && j && gt && /* @__PURE__ */ c("div", {
|
|
2145
2593
|
className: "modal-backdrop",
|
|
2146
|
-
children: /* @__PURE__ */
|
|
2594
|
+
children: /* @__PURE__ */ l("section", {
|
|
2147
2595
|
className: "modal paper",
|
|
2148
2596
|
role: "alertdialog",
|
|
2149
2597
|
"aria-modal": "true",
|
|
2150
2598
|
"aria-labelledby": "content-deletion-title",
|
|
2151
2599
|
children: [
|
|
2152
|
-
/* @__PURE__ */
|
|
2600
|
+
/* @__PURE__ */ c("h2", {
|
|
2153
2601
|
id: "content-deletion-title",
|
|
2154
|
-
children: v(
|
|
2602
|
+
children: v(m, "Delete all project content?")
|
|
2155
2603
|
}),
|
|
2156
|
-
/* @__PURE__ */
|
|
2157
|
-
/* @__PURE__ */
|
|
2604
|
+
/* @__PURE__ */ c("p", { children: v(m, "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.") }),
|
|
2605
|
+
/* @__PURE__ */ c("button", {
|
|
2158
2606
|
className: "outline full danger",
|
|
2159
|
-
disabled:
|
|
2160
|
-
onClick:
|
|
2161
|
-
children: v(
|
|
2607
|
+
disabled: C,
|
|
2608
|
+
onClick: gn,
|
|
2609
|
+
children: v(m, "Delete my project content")
|
|
2162
2610
|
}),
|
|
2163
|
-
/* @__PURE__ */
|
|
2611
|
+
/* @__PURE__ */ c("button", {
|
|
2164
2612
|
className: "quiet full",
|
|
2165
|
-
disabled:
|
|
2166
|
-
onClick: () =>
|
|
2167
|
-
children: v(
|
|
2613
|
+
disabled: C,
|
|
2614
|
+
onClick: () => _t(!1),
|
|
2615
|
+
children: v(m, "Cancel")
|
|
2168
2616
|
})
|
|
2169
2617
|
]
|
|
2170
2618
|
})
|
|
2171
2619
|
}),
|
|
2172
|
-
!e &&
|
|
2620
|
+
!e && me && /* @__PURE__ */ c("div", {
|
|
2173
2621
|
className: "modal-backdrop",
|
|
2174
|
-
children: /* @__PURE__ */
|
|
2622
|
+
children: /* @__PURE__ */ l("form", {
|
|
2175
2623
|
className: "modal paper",
|
|
2176
2624
|
onSubmit: (e) => {
|
|
2177
|
-
e.preventDefault(),
|
|
2625
|
+
e.preventDefault(), _n();
|
|
2178
2626
|
},
|
|
2179
2627
|
children: [
|
|
2180
|
-
/* @__PURE__ */
|
|
2628
|
+
/* @__PURE__ */ c("button", {
|
|
2181
2629
|
type: "button",
|
|
2182
2630
|
className: "close",
|
|
2183
|
-
"aria-label":
|
|
2184
|
-
onClick: () =>
|
|
2631
|
+
"aria-label": U.close,
|
|
2632
|
+
onClick: () => he(!1),
|
|
2185
2633
|
children: "×"
|
|
2186
2634
|
}),
|
|
2187
|
-
/* @__PURE__ */
|
|
2188
|
-
/* @__PURE__ */
|
|
2189
|
-
|
|
2635
|
+
/* @__PURE__ */ c(Oe, {}),
|
|
2636
|
+
/* @__PURE__ */ c("h2", { children: I === "signup" ? v(m, "Create a verified account") : I === "verify" ? v(m, "Verify your email") : U.signin }),
|
|
2637
|
+
w && /* @__PURE__ */ c("p", {
|
|
2190
2638
|
role: "alert",
|
|
2191
|
-
children:
|
|
2639
|
+
children: p === "karamentreprises" ? w.replace(/Polycyphers/gi, "Karamentreprises") : w
|
|
2192
2640
|
}),
|
|
2193
|
-
|
|
2641
|
+
ce && /* @__PURE__ */ c("p", {
|
|
2194
2642
|
role: "status",
|
|
2195
|
-
children:
|
|
2643
|
+
children: ce
|
|
2196
2644
|
}),
|
|
2197
|
-
|
|
2645
|
+
I !== "verify" && /* @__PURE__ */ l("label", {
|
|
2198
2646
|
className: "field",
|
|
2199
|
-
children: [
|
|
2647
|
+
children: [U.email, /* @__PURE__ */ c("input", {
|
|
2200
2648
|
type: "email",
|
|
2201
2649
|
autoComplete: "email",
|
|
2202
2650
|
required: !0,
|
|
2203
|
-
value:
|
|
2204
|
-
onChange: (e) =>
|
|
2651
|
+
value: ge,
|
|
2652
|
+
onChange: (e) => ye(e.target.value)
|
|
2205
2653
|
})]
|
|
2206
2654
|
}),
|
|
2207
|
-
|
|
2655
|
+
I === "verify" && /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("p", { children: "Open the verification link sent to your email, or paste its token below. Verification happens only when you submit this form." }), /* @__PURE__ */ l("label", {
|
|
2208
2656
|
className: "field",
|
|
2209
|
-
children: [v(
|
|
2657
|
+
children: [v(m, "Verification token"), /* @__PURE__ */ c("input", {
|
|
2210
2658
|
autoComplete: "off",
|
|
2211
2659
|
required: !0,
|
|
2212
|
-
value:
|
|
2213
|
-
onChange: (e) =>
|
|
2660
|
+
value: Re,
|
|
2661
|
+
onChange: (e) => ze(e.target.value)
|
|
2214
2662
|
})]
|
|
2215
2663
|
})] }),
|
|
2216
|
-
|
|
2664
|
+
I !== "signup" && /* @__PURE__ */ l("label", {
|
|
2217
2665
|
className: "field",
|
|
2218
|
-
children: [
|
|
2666
|
+
children: [U.password, /* @__PURE__ */ c("input", {
|
|
2219
2667
|
type: "password",
|
|
2220
|
-
autoComplete:
|
|
2221
|
-
minLength:
|
|
2668
|
+
autoComplete: I === "verify" ? "new-password" : "current-password",
|
|
2669
|
+
minLength: I === "verify" ? 10 : void 0,
|
|
2222
2670
|
required: !0,
|
|
2223
|
-
value:
|
|
2224
|
-
onChange: (e) =>
|
|
2671
|
+
value: M,
|
|
2672
|
+
onChange: (e) => Ee(e.target.value)
|
|
2225
2673
|
})]
|
|
2226
2674
|
}),
|
|
2227
|
-
/* @__PURE__ */
|
|
2675
|
+
/* @__PURE__ */ c("button", {
|
|
2228
2676
|
className: "ink full",
|
|
2229
|
-
disabled:
|
|
2230
|
-
children:
|
|
2677
|
+
disabled: C,
|
|
2678
|
+
children: I === "signup" ? v(m, "Send verification email") : I === "verify" ? v(m, "Verify & set password") : U.signin
|
|
2231
2679
|
}),
|
|
2232
|
-
/* @__PURE__ */
|
|
2680
|
+
/* @__PURE__ */ l("div", {
|
|
2233
2681
|
className: "account-modes",
|
|
2234
2682
|
children: [
|
|
2235
|
-
/* @__PURE__ */
|
|
2683
|
+
/* @__PURE__ */ c("button", {
|
|
2236
2684
|
type: "button",
|
|
2237
2685
|
className: "textbtn",
|
|
2238
|
-
onClick: () =>
|
|
2239
|
-
children: v(
|
|
2686
|
+
onClick: () => Le("login"),
|
|
2687
|
+
children: v(m, "Sign in")
|
|
2240
2688
|
}),
|
|
2241
|
-
/* @__PURE__ */
|
|
2689
|
+
/* @__PURE__ */ c("button", {
|
|
2242
2690
|
type: "button",
|
|
2243
2691
|
className: "textbtn",
|
|
2244
|
-
onClick: () =>
|
|
2245
|
-
children: v(
|
|
2692
|
+
onClick: () => Le("signup"),
|
|
2693
|
+
children: v(m, "Create account")
|
|
2246
2694
|
}),
|
|
2247
|
-
/* @__PURE__ */
|
|
2695
|
+
/* @__PURE__ */ c("button", {
|
|
2248
2696
|
type: "button",
|
|
2249
2697
|
className: "textbtn",
|
|
2250
|
-
onClick: () =>
|
|
2251
|
-
children: v(
|
|
2698
|
+
onClick: () => Le("verify"),
|
|
2699
|
+
children: v(m, "Verify email")
|
|
2252
2700
|
})
|
|
2253
2701
|
]
|
|
2254
2702
|
}),
|
|
2255
|
-
typeof
|
|
2703
|
+
typeof N.verificationCompletionUrl == "string" && /* @__PURE__ */ l("p", { children: ["Verification destination: ", N.verificationCompletionUrl] })
|
|
2256
2704
|
]
|
|
2257
2705
|
})
|
|
2258
2706
|
})
|
|
2259
2707
|
]
|
|
2260
2708
|
});
|
|
2261
2709
|
}
|
|
2262
|
-
function
|
|
2263
|
-
let r = e?.values.find((e) => e.path === t
|
|
2264
|
-
return /* @__PURE__ */
|
|
2710
|
+
function F({ report: e, path: t, language: n = "en" }) {
|
|
2711
|
+
let r = e?.values.find((e) => e.path === t) ?? e?.values.find((e) => e.path.endsWith("." + t));
|
|
2712
|
+
return /* @__PURE__ */ l("small", {
|
|
2265
2713
|
className: "value-tag " + (r?.origin ?? "missing"),
|
|
2266
2714
|
title: r?.source ?? "No provenance supplied for this displayed value.",
|
|
2267
2715
|
children: [
|
|
@@ -2271,51 +2719,51 @@ function E({ report: e, path: t, language: n = "en" }) {
|
|
|
2271
2719
|
]
|
|
2272
2720
|
});
|
|
2273
2721
|
}
|
|
2274
|
-
function
|
|
2722
|
+
function Ne({ report: e, language: t }) {
|
|
2275
2723
|
let n = t;
|
|
2276
|
-
return /* @__PURE__ */
|
|
2724
|
+
return /* @__PURE__ */ l("section", {
|
|
2277
2725
|
className: "paper provenance",
|
|
2278
2726
|
children: [
|
|
2279
|
-
/* @__PURE__ */
|
|
2280
|
-
/* @__PURE__ */
|
|
2281
|
-
/* @__PURE__ */
|
|
2282
|
-
e ? e.discrepancies.length ? e.discrepancies.map((e) => /* @__PURE__ */
|
|
2283
|
-
/* @__PURE__ */
|
|
2727
|
+
/* @__PURE__ */ c("h3", { children: v(t, "Value provenance & discrepancies") }),
|
|
2728
|
+
/* @__PURE__ */ c("p", { children: e?.notice ?? "No provenance report was supplied. Values are unconfirmed; do not treat them as measured or verified." }),
|
|
2729
|
+
/* @__PURE__ */ c("h4", { children: v(t, "Discrepancy report") }),
|
|
2730
|
+
e ? e.discrepancies.length ? e.discrepancies.map((e) => /* @__PURE__ */ l("article", { children: [
|
|
2731
|
+
/* @__PURE__ */ l("strong", { children: [
|
|
2284
2732
|
e.kind,
|
|
2285
2733
|
" · ",
|
|
2286
2734
|
e.subject
|
|
2287
2735
|
] }),
|
|
2288
|
-
/* @__PURE__ */
|
|
2289
|
-
e.appliedFix && /* @__PURE__ */
|
|
2290
|
-
e.question && /* @__PURE__ */
|
|
2291
|
-
e.ruleId && /* @__PURE__ */
|
|
2292
|
-
] }, e.id)) : /* @__PURE__ */
|
|
2293
|
-
/* @__PURE__ */
|
|
2294
|
-
/* @__PURE__ */
|
|
2295
|
-
/* @__PURE__ */
|
|
2296
|
-
/* @__PURE__ */
|
|
2297
|
-
] }) }), /* @__PURE__ */
|
|
2298
|
-
/* @__PURE__ */
|
|
2299
|
-
/* @__PURE__ */
|
|
2300
|
-
/* @__PURE__ */
|
|
2736
|
+
/* @__PURE__ */ c("p", { children: e.message }),
|
|
2737
|
+
e.appliedFix && /* @__PURE__ */ l("p", { children: ["Applied fix: ", e.appliedFix] }),
|
|
2738
|
+
e.question && /* @__PURE__ */ l("p", { children: ["Measurement needed: ", e.question] }),
|
|
2739
|
+
e.ruleId && /* @__PURE__ */ c("code", { children: e.ruleId })
|
|
2740
|
+
] }, e.id)) : /* @__PURE__ */ c("p", { children: v(n, "No discrepancies reported by the engine.") }) : /* @__PURE__ */ c("p", { children: v(n, "Discrepancy report unavailable.") }),
|
|
2741
|
+
/* @__PURE__ */ l("details", { children: [/* @__PURE__ */ c("summary", { children: v(n, "Every supplied value and its source") }), /* @__PURE__ */ l("table", { children: [/* @__PURE__ */ c("thead", { children: /* @__PURE__ */ l("tr", { children: [
|
|
2742
|
+
/* @__PURE__ */ c("th", { children: v(n, "Value") }),
|
|
2743
|
+
/* @__PURE__ */ c("th", { children: v(n, "Origin / evidence") }),
|
|
2744
|
+
/* @__PURE__ */ c("th", { children: v(n, "Source") })
|
|
2745
|
+
] }) }), /* @__PURE__ */ c("tbody", { children: e?.values.map((t) => /* @__PURE__ */ l("tr", { children: [
|
|
2746
|
+
/* @__PURE__ */ l("td", { children: [
|
|
2747
|
+
/* @__PURE__ */ c("code", { children: t.path }),
|
|
2748
|
+
/* @__PURE__ */ c("br", {}),
|
|
2301
2749
|
t.value,
|
|
2302
2750
|
" ",
|
|
2303
2751
|
t.unit
|
|
2304
2752
|
] }),
|
|
2305
|
-
/* @__PURE__ */
|
|
2753
|
+
/* @__PURE__ */ c("td", { children: /* @__PURE__ */ c(F, {
|
|
2306
2754
|
language: n,
|
|
2307
2755
|
report: e,
|
|
2308
2756
|
path: t.path
|
|
2309
2757
|
}) }),
|
|
2310
|
-
/* @__PURE__ */
|
|
2758
|
+
/* @__PURE__ */ l("td", { children: [t.source, t.inputPaths.length > 0 && /* @__PURE__ */ l("small", { children: ["Inputs: ", t.inputPaths.join(", ")] })] })
|
|
2311
2759
|
] }, t.path)) })] })] })
|
|
2312
2760
|
]
|
|
2313
2761
|
});
|
|
2314
2762
|
}
|
|
2315
|
-
function
|
|
2316
|
-
let
|
|
2317
|
-
t(e), n(
|
|
2318
|
-
},
|
|
2763
|
+
function Pe({ input: e, setInput: t, onChange: n, estimatedFields: r, confirmed: i, setConfirmed: a, onGenerate: o, busy: u, onUpload: d, imageUrl: f, geometry: p, language: m }) {
|
|
2764
|
+
let h = m, g = (e, i) => {
|
|
2765
|
+
i && (e = Ee(e, i, r)), t(e), n(i);
|
|
2766
|
+
}, _ = e.programme, ee = [
|
|
2319
2767
|
["bedroomWidthM", "Bedroom width"],
|
|
2320
2768
|
["bedroomDepthM", "Bedroom depth"],
|
|
2321
2769
|
["bathroomWidthM", "Bathroom width"],
|
|
@@ -2325,7 +2773,7 @@ function ve({ input: e, setInput: t, onChange: n, estimatedFields: r, confirmed:
|
|
|
2325
2773
|
["balconyDepthM", "Balcony depth (0 for none)"],
|
|
2326
2774
|
["slidingDoorWidthM", "Balcony sliding door width"]
|
|
2327
2775
|
];
|
|
2328
|
-
function
|
|
2776
|
+
function te(t) {
|
|
2329
2777
|
let n = e.footprint.edges, r = (t ? [...n, {
|
|
2330
2778
|
id: "",
|
|
2331
2779
|
startVertexId: "",
|
|
@@ -2340,300 +2788,313 @@ function ve({ input: e, setInput: t, onChange: n, estimatedFields: r, confirmed:
|
|
|
2340
2788
|
startVertexId: "V" + (t + 1),
|
|
2341
2789
|
endVertexId: "V" + ((t + 1) % n.length + 1)
|
|
2342
2790
|
}));
|
|
2343
|
-
|
|
2791
|
+
g({
|
|
2344
2792
|
...e,
|
|
2345
2793
|
footprint: { edges: r }
|
|
2346
2794
|
});
|
|
2347
2795
|
}
|
|
2348
|
-
return /* @__PURE__ */
|
|
2796
|
+
return /* @__PURE__ */ l("section", {
|
|
2349
2797
|
className: "measure-layout",
|
|
2350
|
-
children: [/* @__PURE__ */
|
|
2798
|
+
children: [/* @__PURE__ */ c("article", {
|
|
2351
2799
|
className: "paper form-card",
|
|
2352
|
-
children:
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
v(d, "unconfirmed")
|
|
2800
|
+
children: /* @__PURE__ */ l("fieldset", {
|
|
2801
|
+
disabled: u,
|
|
2802
|
+
style: {
|
|
2803
|
+
border: 0,
|
|
2804
|
+
padding: 0,
|
|
2805
|
+
minWidth: 0
|
|
2806
|
+
},
|
|
2807
|
+
children: [
|
|
2808
|
+
/* @__PURE__ */ c("h2", { children: v(h, "Measured footprint") }),
|
|
2809
|
+
/* @__PURE__ */ c("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." }),
|
|
2810
|
+
/* @__PURE__ */ c("div", {
|
|
2811
|
+
className: "edge-table",
|
|
2812
|
+
children: e.footprint.edges.map((t, n) => /* @__PURE__ */ l("div", {
|
|
2813
|
+
className: "edge-row",
|
|
2814
|
+
children: [
|
|
2815
|
+
/* @__PURE__ */ l("strong", { children: [
|
|
2816
|
+
t.id,
|
|
2817
|
+
" ",
|
|
2818
|
+
/* @__PURE__ */ l("small", { children: [
|
|
2819
|
+
t.startVertexId,
|
|
2820
|
+
" → ",
|
|
2821
|
+
t.endVertexId
|
|
2822
|
+
] })
|
|
2376
2823
|
] }),
|
|
2377
|
-
/* @__PURE__ */
|
|
2378
|
-
"
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2824
|
+
/* @__PURE__ */ l("label", { children: [
|
|
2825
|
+
v(h, "Length (m)"),
|
|
2826
|
+
" ",
|
|
2827
|
+
/* @__PURE__ */ l("small", { children: [
|
|
2828
|
+
v(h, M(e, `footprint.edges[${n}].lengthM`, r)),
|
|
2829
|
+
" · ",
|
|
2830
|
+
v(h, "unconfirmed")
|
|
2831
|
+
] }),
|
|
2832
|
+
/* @__PURE__ */ c("input", {
|
|
2833
|
+
"aria-label": `${t.id} length`,
|
|
2834
|
+
type: "number",
|
|
2835
|
+
min: "0",
|
|
2836
|
+
step: "any",
|
|
2837
|
+
value: Number.isFinite(t.lengthM) ? t.lengthM : "",
|
|
2838
|
+
onChange: (t) => g({
|
|
2839
|
+
...e,
|
|
2840
|
+
footprint: {
|
|
2841
|
+
...e.footprint,
|
|
2842
|
+
edges: e.footprint.edges.map((e, r) => r === n ? {
|
|
2843
|
+
...e,
|
|
2844
|
+
lengthM: t.target.value === "" ? NaN : Number(t.target.value)
|
|
2845
|
+
} : e)
|
|
2846
|
+
}
|
|
2847
|
+
}, `footprint.edges[${n}].lengthM`)
|
|
2848
|
+
})
|
|
2849
|
+
] }),
|
|
2850
|
+
/* @__PURE__ */ l("label", { children: [
|
|
2851
|
+
v(h, "Bearing (°)"),
|
|
2852
|
+
" ",
|
|
2853
|
+
/* @__PURE__ */ l("small", { children: [
|
|
2854
|
+
v(h, M(e, `footprint.edges[${n}].bearingDegrees`, r)),
|
|
2855
|
+
" · ",
|
|
2856
|
+
v(h, "unconfirmed")
|
|
2857
|
+
] }),
|
|
2858
|
+
/* @__PURE__ */ c("input", {
|
|
2859
|
+
"aria-label": `${t.id} bearing`,
|
|
2860
|
+
type: "number",
|
|
2861
|
+
step: "0.01",
|
|
2862
|
+
placeholder: v(h, "Unknown"),
|
|
2863
|
+
value: t.bearingDegrees ?? "",
|
|
2864
|
+
onChange: (t) => g({
|
|
2865
|
+
...e,
|
|
2866
|
+
footprint: {
|
|
2867
|
+
...e.footprint,
|
|
2868
|
+
edges: e.footprint.edges.map((e, r) => r === n ? {
|
|
2869
|
+
...e,
|
|
2870
|
+
bearingDegrees: t.target.value === "" ? null : Number(t.target.value)
|
|
2871
|
+
} : e)
|
|
2872
|
+
}
|
|
2873
|
+
}, `footprint.edges[${n}].bearingDegrees`)
|
|
2874
|
+
})
|
|
2402
2875
|
] }),
|
|
2403
|
-
/* @__PURE__ */
|
|
2404
|
-
"aria-label": `${t.id}
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
placeholder: v(d, "Unknown"),
|
|
2408
|
-
value: t.bearingDegrees ?? "",
|
|
2409
|
-
onChange: (t) => f({
|
|
2876
|
+
/* @__PURE__ */ l("label", { children: [v(h, "Wall"), /* @__PURE__ */ l("select", {
|
|
2877
|
+
"aria-label": `${t.id} wall type`,
|
|
2878
|
+
value: t.wallType,
|
|
2879
|
+
onChange: (t) => g({
|
|
2410
2880
|
...e,
|
|
2411
2881
|
footprint: {
|
|
2412
2882
|
...e.footprint,
|
|
2413
2883
|
edges: e.footprint.edges.map((e, r) => r === n ? {
|
|
2414
2884
|
...e,
|
|
2415
|
-
|
|
2885
|
+
wallType: t.target.value
|
|
2416
2886
|
} : e)
|
|
2417
2887
|
}
|
|
2418
|
-
},
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2888
|
+
}),
|
|
2889
|
+
children: [/* @__PURE__ */ c("option", {
|
|
2890
|
+
value: "exterior",
|
|
2891
|
+
children: v(h, "Exterior")
|
|
2892
|
+
}), /* @__PURE__ */ c("option", {
|
|
2893
|
+
value: "party",
|
|
2894
|
+
children: v(h, "Party · no openings")
|
|
2895
|
+
})]
|
|
2896
|
+
})] })
|
|
2897
|
+
]
|
|
2898
|
+
}, t.id))
|
|
2899
|
+
}),
|
|
2900
|
+
_?.source.startsWith("User-entered") && /* @__PURE__ */ l("div", {
|
|
2901
|
+
className: "actions",
|
|
2902
|
+
children: [/* @__PURE__ */ c("button", {
|
|
2903
|
+
className: "outline",
|
|
2904
|
+
disabled: e.footprint.edges.length >= 64,
|
|
2905
|
+
onClick: () => te(!0),
|
|
2906
|
+
children: v(h, "Add wall")
|
|
2907
|
+
}), /* @__PURE__ */ c("button", {
|
|
2908
|
+
className: "quiet",
|
|
2909
|
+
disabled: e.footprint.edges.length <= 3,
|
|
2910
|
+
onClick: () => te(!1),
|
|
2911
|
+
children: v(h, "Remove last wall")
|
|
2912
|
+
})]
|
|
2913
|
+
}),
|
|
2914
|
+
p?.suggestedDiagonal && /* @__PURE__ */ l("label", {
|
|
2915
|
+
className: "field",
|
|
2916
|
+
children: [
|
|
2917
|
+
"Diagonal ",
|
|
2918
|
+
p.suggestedDiagonal.startVertexId,
|
|
2919
|
+
" → ",
|
|
2920
|
+
p.suggestedDiagonal.endVertexId,
|
|
2921
|
+
" (m)",
|
|
2922
|
+
/* @__PURE__ */ c("small", { children: p.suggestedDiagonal.reason }),
|
|
2923
|
+
/* @__PURE__ */ c("input", {
|
|
2924
|
+
type: "number",
|
|
2925
|
+
min: "0",
|
|
2926
|
+
step: "any",
|
|
2927
|
+
value: e.footprint.diagonals?.[0]?.lengthM ?? "",
|
|
2928
|
+
onChange: (t) => g({
|
|
2425
2929
|
...e,
|
|
2426
2930
|
footprint: {
|
|
2427
2931
|
...e.footprint,
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2932
|
+
diagonals: t.target.value ? [{
|
|
2933
|
+
startVertexId: p.suggestedDiagonal.startVertexId,
|
|
2934
|
+
endVertexId: p.suggestedDiagonal.endVertexId,
|
|
2935
|
+
lengthM: Number(t.target.value)
|
|
2936
|
+
}] : []
|
|
2432
2937
|
}
|
|
2433
|
-
})
|
|
2434
|
-
children: [/* @__PURE__ */ m("option", {
|
|
2435
|
-
value: "exterior",
|
|
2436
|
-
children: v(d, "Exterior")
|
|
2437
|
-
}), /* @__PURE__ */ m("option", {
|
|
2438
|
-
value: "party",
|
|
2439
|
-
children: v(d, "Party · no openings")
|
|
2440
|
-
})]
|
|
2441
|
-
})] })
|
|
2442
|
-
]
|
|
2443
|
-
}, t.id))
|
|
2444
|
-
}),
|
|
2445
|
-
g?.source.startsWith("User-entered") && /* @__PURE__ */ h("div", {
|
|
2446
|
-
className: "actions",
|
|
2447
|
-
children: [/* @__PURE__ */ m("button", {
|
|
2448
|
-
className: "outline",
|
|
2449
|
-
disabled: e.footprint.edges.length >= 64,
|
|
2450
|
-
onClick: () => _(!0),
|
|
2451
|
-
children: v(d, "Add wall")
|
|
2452
|
-
}), /* @__PURE__ */ m("button", {
|
|
2453
|
-
className: "quiet",
|
|
2454
|
-
disabled: e.footprint.edges.length <= 3,
|
|
2455
|
-
onClick: () => _(!1),
|
|
2456
|
-
children: v(d, "Remove last wall")
|
|
2457
|
-
})]
|
|
2458
|
-
}),
|
|
2459
|
-
u?.suggestedDiagonal && /* @__PURE__ */ h("label", {
|
|
2460
|
-
className: "field",
|
|
2461
|
-
children: [
|
|
2462
|
-
"Diagonal ",
|
|
2463
|
-
u.suggestedDiagonal.startVertexId,
|
|
2464
|
-
" → ",
|
|
2465
|
-
u.suggestedDiagonal.endVertexId,
|
|
2466
|
-
" (m)",
|
|
2467
|
-
/* @__PURE__ */ m("small", { children: u.suggestedDiagonal.reason }),
|
|
2468
|
-
/* @__PURE__ */ m("input", {
|
|
2469
|
-
type: "number",
|
|
2470
|
-
min: "0",
|
|
2471
|
-
step: "any",
|
|
2472
|
-
value: e.footprint.diagonals?.[0]?.lengthM ?? "",
|
|
2473
|
-
onChange: (t) => f({
|
|
2474
|
-
...e,
|
|
2475
|
-
footprint: {
|
|
2476
|
-
...e.footprint,
|
|
2477
|
-
diagonals: t.target.value ? [{
|
|
2478
|
-
startVertexId: u.suggestedDiagonal.startVertexId,
|
|
2479
|
-
endVertexId: u.suggestedDiagonal.endVertexId,
|
|
2480
|
-
lengthM: Number(t.target.value)
|
|
2481
|
-
}] : []
|
|
2482
|
-
}
|
|
2938
|
+
}, "footprint.diagonals")
|
|
2483
2939
|
})
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
}
|
|
2940
|
+
]
|
|
2941
|
+
}),
|
|
2942
|
+
/* @__PURE__ */ l("details", {
|
|
2943
|
+
open: !!_,
|
|
2944
|
+
children: [/* @__PURE__ */ c("summary", { children: v(h, "Room programme") }), _ ? /* @__PURE__ */ l(s, { children: [
|
|
2945
|
+
/* @__PURE__ */ c("p", { children: v(h, "Requested dimensions. Every value is checked by the shared engine.") }),
|
|
2946
|
+
/* @__PURE__ */ c("div", {
|
|
2947
|
+
className: "programme-grid",
|
|
2948
|
+
children: ee.map(([t, n]) => /* @__PURE__ */ l("label", {
|
|
2949
|
+
className: "field",
|
|
2950
|
+
children: [
|
|
2951
|
+
v(h, n),
|
|
2952
|
+
" (m)",
|
|
2953
|
+
/* @__PURE__ */ l("small", { children: [
|
|
2954
|
+
v(h, M(e, `programme.${t}`, r)),
|
|
2955
|
+
" · ",
|
|
2956
|
+
v(h, "unconfirmed")
|
|
2957
|
+
] }),
|
|
2958
|
+
/* @__PURE__ */ c("input", {
|
|
2959
|
+
type: "number",
|
|
2960
|
+
min: "0",
|
|
2961
|
+
step: "0.01",
|
|
2962
|
+
value: Number.isFinite(_[t]) ? _[t] : "",
|
|
2963
|
+
onChange: (n) => g({
|
|
2964
|
+
...e,
|
|
2965
|
+
programme: {
|
|
2966
|
+
..._,
|
|
2967
|
+
[t]: n.target.value === "" ? NaN : Number(n.target.value)
|
|
2968
|
+
}
|
|
2969
|
+
}, `programme.${t}`)
|
|
2514
2970
|
})
|
|
2515
|
-
|
|
2516
|
-
|
|
2971
|
+
]
|
|
2972
|
+
}, t))
|
|
2973
|
+
}),
|
|
2974
|
+
["entranceEdgeId", "balconyEdgeId"].map((t) => /* @__PURE__ */ l("label", {
|
|
2975
|
+
className: "field",
|
|
2976
|
+
children: [v(h, t === "entranceEdgeId" ? "Entrance wall" : "Balcony wall"), /* @__PURE__ */ l("select", {
|
|
2977
|
+
value: _[t],
|
|
2978
|
+
onChange: (n) => g({
|
|
2979
|
+
...e,
|
|
2980
|
+
programme: {
|
|
2981
|
+
..._,
|
|
2982
|
+
[t]: n.target.value
|
|
2983
|
+
}
|
|
2984
|
+
}),
|
|
2985
|
+
children: [/* @__PURE__ */ c("option", {
|
|
2986
|
+
value: "",
|
|
2987
|
+
children: v(h, "Choose a wall")
|
|
2988
|
+
}), e.footprint.edges.map((e) => /* @__PURE__ */ c("option", { children: e.id }, e.id))]
|
|
2989
|
+
})]
|
|
2517
2990
|
}, t))
|
|
2518
|
-
}),
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2991
|
+
] }) : /* @__PURE__ */ l("p", { children: ["This example uses engine concept programme assumptions. They remain estimated until replaced with your own dimensions. ", /* @__PURE__ */ c("button", {
|
|
2992
|
+
className: "textbtn",
|
|
2993
|
+
onClick: () => g({
|
|
2994
|
+
...e,
|
|
2995
|
+
programme: Se(e.language).programme
|
|
2996
|
+
}),
|
|
2997
|
+
children: "Enter my own room dimensions"
|
|
2998
|
+
})] })]
|
|
2999
|
+
}),
|
|
3000
|
+
/* @__PURE__ */ l("label", {
|
|
3001
|
+
className: "field",
|
|
3002
|
+
children: [v(h, "Main view wall"), /* @__PURE__ */ l("select", {
|
|
3003
|
+
value: e.viewEdgeId,
|
|
3004
|
+
onChange: (t) => g({
|
|
3005
|
+
...e,
|
|
3006
|
+
viewEdgeId: t.target.value
|
|
3007
|
+
}),
|
|
3008
|
+
children: [/* @__PURE__ */ c("option", {
|
|
3009
|
+
value: "",
|
|
3010
|
+
children: v(h, "No preference")
|
|
3011
|
+
}), e.footprint.edges.map((e) => /* @__PURE__ */ c("option", { children: e.id }, e.id))]
|
|
3012
|
+
})]
|
|
3013
|
+
}),
|
|
3014
|
+
/* @__PURE__ */ l("label", {
|
|
3015
|
+
className: "field",
|
|
3016
|
+
children: [
|
|
3017
|
+
v(h, "Clear ceiling height (m)"),
|
|
3018
|
+
/* @__PURE__ */ l("small", { children: [
|
|
3019
|
+
v(h, M(e, "buildUps.clearCeilingHeightM", r)),
|
|
3020
|
+
" · ",
|
|
3021
|
+
v(h, "unconfirmed")
|
|
3022
|
+
] }),
|
|
3023
|
+
/* @__PURE__ */ c("input", {
|
|
3024
|
+
type: "number",
|
|
3025
|
+
step: "0.01",
|
|
3026
|
+
min: "0",
|
|
3027
|
+
value: Number(e.buildUps?.clearCeilingHeightM ?? 2.8),
|
|
3028
|
+
onChange: (t) => g({
|
|
2524
3029
|
...e,
|
|
2525
|
-
|
|
2526
|
-
...
|
|
2527
|
-
|
|
3030
|
+
buildUps: {
|
|
3031
|
+
...e.buildUps,
|
|
3032
|
+
clearCeilingHeightM: Number(t.target.value)
|
|
2528
3033
|
}
|
|
2529
|
-
})
|
|
2530
|
-
children: [/* @__PURE__ */ m("option", {
|
|
2531
|
-
value: "",
|
|
2532
|
-
children: v(d, "Choose a wall")
|
|
2533
|
-
}), e.footprint.edges.map((e) => /* @__PURE__ */ m("option", { children: e.id }, e.id))]
|
|
2534
|
-
})]
|
|
2535
|
-
}, t))
|
|
2536
|
-
] }) : /* @__PURE__ */ h("p", { children: ["This example uses engine concept programme assumptions. They remain estimated until replaced with your own dimensions. ", /* @__PURE__ */ m("button", {
|
|
2537
|
-
className: "textbtn",
|
|
2538
|
-
onClick: () => f({
|
|
2539
|
-
...e,
|
|
2540
|
-
programme: ue(e.language).programme
|
|
2541
|
-
}),
|
|
2542
|
-
children: "Enter my own room dimensions"
|
|
2543
|
-
})] })]
|
|
2544
|
-
}),
|
|
2545
|
-
/* @__PURE__ */ h("label", {
|
|
2546
|
-
className: "field",
|
|
2547
|
-
children: [v(d, "Main view wall"), /* @__PURE__ */ h("select", {
|
|
2548
|
-
value: e.viewEdgeId,
|
|
2549
|
-
onChange: (t) => f({
|
|
2550
|
-
...e,
|
|
2551
|
-
viewEdgeId: t.target.value
|
|
2552
|
-
}),
|
|
2553
|
-
children: [/* @__PURE__ */ m("option", {
|
|
2554
|
-
value: "",
|
|
2555
|
-
children: v(d, "No preference")
|
|
2556
|
-
}), e.footprint.edges.map((e) => /* @__PURE__ */ m("option", { children: e.id }, e.id))]
|
|
2557
|
-
})]
|
|
2558
|
-
}),
|
|
2559
|
-
/* @__PURE__ */ h("label", {
|
|
2560
|
-
className: "field",
|
|
2561
|
-
children: [
|
|
2562
|
-
v(d, "Clear ceiling height (m)"),
|
|
2563
|
-
/* @__PURE__ */ m("small", { children: e.buildUps?.clearCeilingHeightM == null ? "estimated default · unconfirmed" : "user-given · unconfirmed" }),
|
|
2564
|
-
/* @__PURE__ */ m("input", {
|
|
2565
|
-
type: "number",
|
|
2566
|
-
step: "0.01",
|
|
2567
|
-
min: "0",
|
|
2568
|
-
value: Number(e.buildUps?.clearCeilingHeightM ?? 2.8),
|
|
2569
|
-
onChange: (t) => f({
|
|
2570
|
-
...e,
|
|
2571
|
-
buildUps: {
|
|
2572
|
-
...e.buildUps,
|
|
2573
|
-
clearCeilingHeightM: Number(t.target.value)
|
|
2574
|
-
}
|
|
3034
|
+
}, "buildUps.clearCeilingHeightM")
|
|
2575
3035
|
})
|
|
2576
|
-
})
|
|
2577
|
-
]
|
|
2578
|
-
}),
|
|
2579
|
-
/* @__PURE__ */ m("p", { children: "Other wall/slab build-ups remain labelled concept placeholders from the shared engine." }),
|
|
2580
|
-
/* @__PURE__ */ h("label", {
|
|
2581
|
-
className: "field",
|
|
2582
|
-
children: [v(d, "Country"), /* @__PURE__ */ h("select", {
|
|
2583
|
-
value: e.country,
|
|
2584
|
-
onChange: (t) => f({
|
|
2585
|
-
...e,
|
|
2586
|
-
country: t.target.value
|
|
2587
|
-
}),
|
|
2588
|
-
children: [
|
|
2589
|
-
/* @__PURE__ */ m("option", { children: "unspecified" }),
|
|
2590
|
-
/* @__PURE__ */ m("option", { children: "Lebanon" }),
|
|
2591
|
-
/* @__PURE__ */ m("option", { children: "Germany" })
|
|
2592
3036
|
]
|
|
2593
|
-
})
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
3037
|
+
}),
|
|
3038
|
+
/* @__PURE__ */ c("p", { children: "Other wall/slab build-ups remain labelled concept placeholders from the shared engine." }),
|
|
3039
|
+
/* @__PURE__ */ l("label", {
|
|
3040
|
+
className: "field",
|
|
3041
|
+
children: [v(h, "Country"), /* @__PURE__ */ l("select", {
|
|
3042
|
+
value: e.country,
|
|
3043
|
+
onChange: (t) => g({
|
|
3044
|
+
...e,
|
|
3045
|
+
country: t.target.value
|
|
3046
|
+
}),
|
|
3047
|
+
children: [
|
|
3048
|
+
/* @__PURE__ */ c("option", { children: "unspecified" }),
|
|
3049
|
+
/* @__PURE__ */ c("option", { children: "Lebanon" }),
|
|
3050
|
+
/* @__PURE__ */ c("option", { children: "Germany" })
|
|
3051
|
+
]
|
|
3052
|
+
})]
|
|
3053
|
+
}),
|
|
3054
|
+
/* @__PURE__ */ l("label", {
|
|
3055
|
+
className: "confirmation",
|
|
3056
|
+
children: [/* @__PURE__ */ c("input", {
|
|
3057
|
+
type: "checkbox",
|
|
3058
|
+
checked: i,
|
|
3059
|
+
onChange: (e) => a(e.target.checked)
|
|
3060
|
+
}), v(h, "I confirm these measured dimensions and angle assumptions.")]
|
|
3061
|
+
}),
|
|
3062
|
+
/* @__PURE__ */ c("button", {
|
|
3063
|
+
className: "ink full",
|
|
3064
|
+
disabled: u || !i,
|
|
3065
|
+
onClick: o,
|
|
3066
|
+
children: v(h, "Check footprint & generate")
|
|
3067
|
+
}),
|
|
3068
|
+
/* @__PURE__ */ c("button", {
|
|
3069
|
+
className: "outline full",
|
|
3070
|
+
onClick: d,
|
|
3071
|
+
children: v(h, "Attach sketch")
|
|
3072
|
+
})
|
|
3073
|
+
]
|
|
3074
|
+
})
|
|
3075
|
+
}), /* @__PURE__ */ c("aside", {
|
|
2616
3076
|
className: "paper measure-sketch",
|
|
2617
|
-
children:
|
|
3077
|
+
children: f ? /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("img", {
|
|
2618
3078
|
className: "uploaded-preview",
|
|
2619
|
-
src:
|
|
3079
|
+
src: f,
|
|
2620
3080
|
alt: "Your selected sketch, local preview"
|
|
2621
|
-
}), /* @__PURE__ */
|
|
3081
|
+
}), /* @__PURE__ */ c("p", { children: v(h, "Local image preview. No dimensions are inferred from this display.") })] }) : /* @__PURE__ */ l("div", {
|
|
2622
3082
|
className: "empty",
|
|
2623
3083
|
children: [
|
|
2624
|
-
/* @__PURE__ */
|
|
2625
|
-
/* @__PURE__ */
|
|
2626
|
-
/* @__PURE__ */
|
|
3084
|
+
/* @__PURE__ */ c("h3", { children: v(h, "Your measurements define the plan.") }),
|
|
3085
|
+
/* @__PURE__ */ c("p", { children: v(h, "Attach your sketch for reference. There is no sample footprint hidden behind this form.") }),
|
|
3086
|
+
/* @__PURE__ */ c("button", {
|
|
2627
3087
|
className: "outline",
|
|
2628
|
-
|
|
2629
|
-
|
|
3088
|
+
disabled: u,
|
|
3089
|
+
onClick: d,
|
|
3090
|
+
children: v(h, "Choose sketch image")
|
|
2630
3091
|
})
|
|
2631
3092
|
]
|
|
2632
3093
|
})
|
|
2633
3094
|
})]
|
|
2634
3095
|
});
|
|
2635
3096
|
}
|
|
2636
|
-
function
|
|
3097
|
+
function Fe({ candidate: e }) {
|
|
2637
3098
|
let t = e.reconciliation?.status === "Unique" ? e.reconciliation.solutions[0]?.vertices : null, n = /* @__PURE__ */ new Map();
|
|
2638
3099
|
for (let t of e.values.values) {
|
|
2639
3100
|
let e = /^sketch\.topology\.vertices\.([A-Za-z0-9_-]+)\.(x|y)$/.exec(t.path);
|
|
@@ -2654,38 +3115,38 @@ function ye({ candidate: e }) {
|
|
|
2654
3115
|
...n.get(e.startVertexId)
|
|
2655
3116
|
})).filter((e) => Number.isFinite(e.x) && Number.isFinite(e.y)) ?? [];
|
|
2656
3117
|
if (r.length < 3 || r.length !== e.input?.edges.length) return null;
|
|
2657
|
-
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,
|
|
3118
|
+
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, u = Math.min(560 / Math.max(o, 1e-6), 300 / Math.max(s, 1e-6)), d = r.map((e) => ({
|
|
2658
3119
|
id: e.id,
|
|
2659
|
-
x: 40 + (e.x - i) *
|
|
2660
|
-
y: 40 + (e.y - a) *
|
|
3120
|
+
x: 40 + (e.x - i) * u,
|
|
3121
|
+
y: 40 + (e.y - a) * u
|
|
2661
3122
|
}));
|
|
2662
|
-
return /* @__PURE__ */
|
|
3123
|
+
return /* @__PURE__ */ l("figure", {
|
|
2663
3124
|
className: "recognized-outline",
|
|
2664
|
-
children: [/* @__PURE__ */
|
|
3125
|
+
children: [/* @__PURE__ */ l("svg", {
|
|
2665
3126
|
viewBox: "0 0 640 390",
|
|
2666
3127
|
role: "img",
|
|
2667
3128
|
"aria-label": "Unconfirmed recognized outline preview",
|
|
2668
|
-
children: [/* @__PURE__ */
|
|
2669
|
-
points:
|
|
3129
|
+
children: [/* @__PURE__ */ c("polygon", {
|
|
3130
|
+
points: d.map((e) => `${e.x},${e.y}`).join(" "),
|
|
2670
3131
|
fill: "rgba(41,124,112,.07)",
|
|
2671
3132
|
stroke: "#286e62",
|
|
2672
3133
|
strokeWidth: "2"
|
|
2673
|
-
}),
|
|
2674
|
-
let r =
|
|
2675
|
-
return /* @__PURE__ */
|
|
2676
|
-
/* @__PURE__ */
|
|
3134
|
+
}), d.map((t, n) => {
|
|
3135
|
+
let r = d[(n + 1) % d.length], i = e.input?.edges.find((e) => e.startVertexId === t.id);
|
|
3136
|
+
return /* @__PURE__ */ l("g", { children: [
|
|
3137
|
+
/* @__PURE__ */ c("circle", {
|
|
2677
3138
|
cx: t.x,
|
|
2678
3139
|
cy: t.y,
|
|
2679
3140
|
r: "3",
|
|
2680
3141
|
fill: "#286e62"
|
|
2681
3142
|
}),
|
|
2682
|
-
/* @__PURE__ */
|
|
3143
|
+
/* @__PURE__ */ c("text", {
|
|
2683
3144
|
x: t.x + 5,
|
|
2684
3145
|
y: t.y - 7,
|
|
2685
3146
|
fontSize: "10",
|
|
2686
3147
|
children: t.id
|
|
2687
3148
|
}),
|
|
2688
|
-
i && /* @__PURE__ */
|
|
3149
|
+
i && /* @__PURE__ */ l("text", {
|
|
2689
3150
|
x: (t.x + r.x) / 2 + 5,
|
|
2690
3151
|
y: (t.y + r.y) / 2 + 12,
|
|
2691
3152
|
fontSize: "11",
|
|
@@ -2698,7 +3159,7 @@ function ye({ candidate: e }) {
|
|
|
2698
3159
|
})
|
|
2699
3160
|
] }, t.id);
|
|
2700
3161
|
})]
|
|
2701
|
-
}), /* @__PURE__ */
|
|
3162
|
+
}), /* @__PURE__ */ l("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."] })]
|
|
2702
3163
|
});
|
|
2703
3164
|
}
|
|
2704
|
-
export {
|
|
3165
|
+
export { ne as BIM_PACKAGE_ID, y as BIM_PACKAGE_VERSION, je as BimStudio, ge as checkBimLicense, D as clearLicense, u as disableTelemetry, f as enableTelemetry, ce as setLicense };
|