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