@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/dist/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { createContext as e, useContext as t, useEffect as n, useRef as r, useState as i } from "react";
2
- import a from "dompurify";
3
- import { checkLicense as o, clearLicense as s, disableTelemetry as c, disableTelemetry as l, enableTelemetry as u, setBrand as ee, setLicense as d, subscribe as f } from "@polycyphers/license";
4
- import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
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 g = {
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
- }, te = {
71
- en: g,
70
+ }, h = {
71
+ en: m,
72
72
  de: {
73
- ...g,
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
- ...g,
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
- ...g,
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(te.de, {
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(te.fr, {
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(te.ar, {
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(_.de, {
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(_.fr, {
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(_.ar, {
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 v(e, t) {
604
- return e === "en" ? t : _[e][t] ?? t;
621
+ function _(e, t) {
622
+ return e === "en" ? t : g[e][t] ?? t;
605
623
  }
606
624
  // src/packageVersion.ts
607
- var ne = "0.1.0";
625
+ var v = "0.1.1";
608
626
  // src/licensing.ts
609
- l();
610
- var y = "bim", b = ne;
611
- function re(e) {
612
- ee(e === "karamentreprises" ? "karament" : null);
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
- async function ie() {
615
- let e = await o({
616
- pkg: "bim",
617
- version: b
618
- });
619
- return e.payload && e.payload.exp <= Math.floor(Date.now() / 1e3) ? "expired" : e.status;
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 ae(e, t) {
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 oe(e) {
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 se(e) {
795
+ function N(e) {
642
796
  return "polycyphers.bim.project.v1:" + encodeURIComponent(e);
643
797
  }
644
- function ce(e, t) {
798
+ function _e(e, t) {
645
799
  try {
646
- let n = e.getItem(se(t));
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 le(e, t, n) {
806
+ function ve(e, t, n) {
653
807
  try {
654
- n && /^[a-f0-9]{32}$/i.test(n) ? e.setItem(se(t), n) : e.removeItem(se(t));
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 ue(e) {
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 de(e) {
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 fe(e, t) {
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 S = e("baulynq"), pe = () => location.pathname === "/verify-email" || location.pathname === "/verify", C = () => crypto.randomUUID().replaceAll("-", "");
708
- function me() {
709
- let e = t(S);
710
- return /* @__PURE__ */ h("span", {
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__ */ m("svg", {
866
+ children: [/* @__PURE__ */ f("svg", {
713
867
  viewBox: "0 0 28 28",
714
868
  "aria-hidden": "true",
715
- children: /* @__PURE__ */ m("path", { d: "M4 23V5h13v7h7v11H4m7 0V12h6m0 0V5" })
716
- }), /* @__PURE__ */ h("strong", { children: [e === "karamentreprises" ? "Karamentreprises" : "BauLynq", /* @__PURE__ */ m("span", { children: e === "karamentreprises" ? "BIM" : "Vision" })] })]
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 he() {
720
- return /* @__PURE__ */ m("span", {
873
+ function we() {
874
+ return /* @__PURE__ */ f("span", {
721
875
  "aria-hidden": "true",
722
876
  children: "↗"
723
877
  });
724
878
  }
725
- function ge() {
726
- return /* @__PURE__ */ h("svg", {
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__ */ m("defs", { children: /* @__PURE__ */ m("pattern", {
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__ */ m("path", {
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__ */ m("rect", {
897
+ /* @__PURE__ */ f("rect", {
744
898
  width: "450",
745
899
  height: "340",
746
900
  fill: "url(#sketchgrid)"
747
901
  }),
748
- /* @__PURE__ */ h("g", {
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__ */ m("path", { d: "M12 233L255 235l-1-37 56 1-2-159-19-17L18 22Z" }),
756
- /* @__PURE__ */ m("path", {
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__ */ m("path", {
914
+ /* @__PURE__ */ f("path", {
761
915
  d: "M129 232V115h178M130 154h74v77",
762
916
  strokeDasharray: "5 7"
763
917
  }),
764
- /* @__PURE__ */ m("path", {
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__ */ h("g", {
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__ */ h("text", {
930
+ /* @__PURE__ */ p("text", {
777
931
  x: "145",
778
932
  y: "62",
779
- children: ["8.34", /* @__PURE__ */ m("tspan", {
933
+ children: ["8.34", /* @__PURE__ */ f("tspan", {
780
934
  fontSize: "7",
781
935
  children: " [user-given]"
782
936
  })]
783
937
  }),
784
- /* @__PURE__ */ h("text", {
938
+ /* @__PURE__ */ p("text", {
785
939
  x: "165",
786
940
  y: "318",
787
- children: ["7.40", /* @__PURE__ */ m("tspan", {
941
+ children: ["7.40", /* @__PURE__ */ f("tspan", {
788
942
  fontSize: "7",
789
943
  children: " [user-given]"
790
944
  })]
791
945
  }),
792
- /* @__PURE__ */ h("text", {
946
+ /* @__PURE__ */ p("text", {
793
947
  x: "21",
794
948
  y: "172",
795
949
  transform: "rotate(-90 21 172)",
796
- children: ["6.40", /* @__PURE__ */ m("tspan", {
950
+ children: ["6.40", /* @__PURE__ */ f("tspan", {
797
951
  fontSize: "7",
798
952
  children: " [user-given]"
799
953
  })]
800
954
  }),
801
- /* @__PURE__ */ h("text", {
955
+ /* @__PURE__ */ p("text", {
802
956
  x: "387",
803
957
  y: "153",
804
958
  transform: "rotate(90 387 153)",
805
- children: ["4.81", /* @__PURE__ */ m("tspan", {
959
+ children: ["4.81", /* @__PURE__ */ f("tspan", {
806
960
  fontSize: "7",
807
961
  children: " [user-given]"
808
962
  })]
809
963
  }),
810
- /* @__PURE__ */ h("text", {
964
+ /* @__PURE__ */ p("text", {
811
965
  x: "307",
812
966
  y: "282",
813
- children: ["1.70", /* @__PURE__ */ m("tspan", {
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__ */ m("text", {
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 w(e = {}) {
832
- let t = e.brand ?? "baulynq", [r, a] = i("checking");
833
- return n(() => {
834
- let e = !0, n = !1;
835
- re(t);
836
- let r = async () => {
837
- if (!n) {
838
- n = !0;
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 ie();
841
- e && a(t);
1000
+ let t = await me(!0);
1001
+ e && c(t);
842
1002
  } catch {
843
- e && a("unavailable");
1003
+ e && c("unavailable");
844
1004
  } finally {
845
- n = !1;
1005
+ t = !1, r && e && (r = !1, i());
846
1006
  }
847
1007
  }
848
1008
  };
849
- r();
850
- let i = x(() => {
851
- r();
1009
+ i();
1010
+ let a = se(() => {
1011
+ e && c("checking"), i();
852
1012
  }), o = setInterval(() => {
853
- r();
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), i();
1019
+ e = !1, clearInterval(o), clearInterval(s), a();
857
1020
  };
858
- }, [t]), /* @__PURE__ */ h(S.Provider, {
859
- value: t,
860
- children: [/* @__PURE__ */ m(T, { ...e }), r !== "licensed" && r !== "trial" && r !== "checking" && /* @__PURE__ */ h("aside", {
861
- className: "bim-license-notice",
862
- role: "status",
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
- t === "karamentreprises" ? "Karamentreprises BIM" : "BauLynq Vision",
865
- " · ",
866
- r === "expired" ? "Component license expired" : "Component license required",
867
- " · ",
868
- /* @__PURE__ */ m("a", {
869
- href: t === "karamentreprises" ? "https://packages.karamentreprises.com/bim" : "https://packages.polycyphers.com/bim",
870
- children: "Licensing"
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 T({ embedded: e = !1, transport: t, initialInput: o, workspaceKey: s, brand: c = "baulynq" } = {}) {
877
- let [l, u] = i(o?.language ?? "en"), [ee, d] = i(e || location.pathname === "/studio" ? "studio" : "home"), [f, g] = i("measure"), [_, ne] = i(null), [y, b] = i(o ?? null), [re, ie] = i("A"), [x, se] = i(!1), [S, w] = i(""), [T, be] = i(""), [xe, D] = i(""), [O, Se] = i(null), [Ce, we] = i(null), [Te, Ee] = i(null), [k, De] = i(""), [Oe, ke] = i(!e && pe()), [Ae, je] = i(""), [Me, Ne] = i(""), [A, Pe] = i({}), [Fe, Ie] = i(!1), [j, M] = i(pe() ? "verify" : "login"), [Le, Re] = i(() => pe() ? new URLSearchParams(location.search).get("token") ?? "" : ""), [ze, Be] = i(), [Ve, He] = i(null), [N, P] = i(null), [F, Ue] = i(null), [We, Ge] = i(""), [I, L] = i(null), [Ke, qe] = i([]), [Je, Ye] = i(!1), [Xe, Ze] = i(!1), [Qe, R] = i(!1), [$e, et] = i(null), [tt, nt] = i(!1), [rt, it] = i(!1), [z, at] = i(null), [ot, st] = i(!1), [ct, lt] = i([]), [ut, dt] = i([]), [ft, pt] = i(!1), [mt, ht] = i([]), [gt, _t] = i(), vt = r(null), yt = r(!1), B = r(0), bt = r(""), xt = r(void 0), St = r(s), V = te[l], H = s ?? ze, U = N?.snapshot ?? _, W = U?.proposals.find((e) => e.id === re) ?? U?.proposals[0], Ct = ae(A, l), wt = oe(A), Tt = typeof A.checkoutAvailable == "boolean" ? A.checkoutAvailable : A.checkoutEnabled === !0, G = [
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 A[e] == "number" && Number.isInteger(A[e]) && Number(A[e]) >= 0) ? {
882
- regenerations: Number(A.paidRegenerations),
883
- chat: Number(A.chatRefinementsPerProject),
884
- exports: Number(A.exportsPerPaidProject)
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
- function K(e) {
887
- if (e !== B.current) throw new DOMException("The verified session changed.", "AbortError");
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 q(n, r) {
890
- let i = B.current, a = new Headers(r?.headers).get("Authorization");
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" && K(i), !e && o.status === 401 && !n.startsWith("/account/")) throw Dt(), M("login"), ke(!0), w("Sign in with a verified account to continue."), new DOMException("The verified session expired.", "AbortError");
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
- it(!1), w(""), D(""), nt(!1), et(null), qe([]), ht([]), _t(void 0), at(null), st(!1), lt([]), Ye(!1), Ze(!1), be(""), ne(null), dt([]), b(null), P(null), Ue(null), Ee(null), we(null), Se(null), L(null), He(null), R(!1);
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
- (_ || xt.current) && Et(), B.current++, bt.current = "", xt.current = void 0, De(""), Be(void 0);
1088
+ (y || xt.current) && Et(), H.current++, bt.current = "", xt.current = void 0, le(""), Ie(void 0);
901
1089
  }
902
- async function J(t, n, r) {
903
- let i = B.current, a = await q(t, {
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 && k ? { Authorization: "Bearer " + k } : {}
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 K(i), a.status === 401 && (e || (Dt(), t.startsWith("/account/") || M("login"), ke(!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);
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 K(i), o;
1108
+ return J(i), o;
921
1109
  }
922
- async function Ot(t, n = ft) {
923
- if (!(e || A.analyticsEnabled !== !0)) try {
924
- await q("/analytics/events", {
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
- ...k ? { Authorization: "Bearer " + k } : {}
1116
+ ...M ? { Authorization: "Bearer " + M } : {}
929
1117
  },
930
1118
  body: JSON.stringify({
931
- eventId: C(),
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
- pt(e), Ot("visit", e);
1127
+ ft(e), Ot("visit", e);
940
1128
  }
941
- n(() => {
1129
+ r(() => {
942
1130
  e || (document.documentElement.lang = l, document.documentElement.dir = l === "ar" ? "rtl" : "ltr");
943
- }, [l, e]), n(() => {
1131
+ }, [l, e]), r(() => {
944
1132
  let e = !0;
945
- return q("/config").then((e) => e.ok ? e.json() : Promise.reject()).then((t) => {
946
- e && Pe(t);
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]), n(() => {
951
- !e && pe() && history.replaceState({}, "", location.pathname);
952
- }, [e]), n(() => {
953
- if (!F) {
954
- Ge("");
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(F);
958
- return Ge(e), () => URL.revokeObjectURL(e);
959
- }, [F]), n(() => {
960
- e && St.current !== s && (B.current++, Et(), St.current = s);
961
- }, [s, e]), n(() => {
962
- if (!H) return;
963
- let e = ce(localStorage, H);
964
- if (He(e), !e || y || _) return;
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 J("/projects/" + e).then((e) => {
967
- t && (Y(e), g(e.input.isDraft ? "measure" : "proposals"));
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
- }, [H]);
974
- function Y(e) {
975
- e.input.isDraft || lt([]), ne(e), b(e.input.isDraft ? y ?? ue(l) : e.input), ie(e.selectedProposalId ?? e.proposals.find((e) => e.recommended)?.id ?? "A"), Ee(null), we(null), Se(null), P(null), H && (le(localStorage, H, e.projectId), He(e.projectId));
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 X(e) {
978
- if (!yt.current) {
979
- yt.current = !0, se(!0), w("");
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
- yt.current = !1, se(!1);
1173
+ vt.current = !1, ie(!1);
986
1174
  }
987
1175
  }
988
1176
  }
989
- function Z(t) {
990
- it(!1), d(t), e || history.pushState({}, "", t === "home" ? "/" : "/studio"), window.scrollTo(0, 0);
1177
+ function Q(t) {
1178
+ rt(!1), m(t), e || history.pushState({}, "", t === "home" ? "/" : "/studio"), window.scrollTo(0, 0);
991
1179
  }
992
- function Q(e = !1) {
993
- e || Ue(null), Ye(!1), Ze(!1), qe([]), ht([]), _t(void 0), at(null), st(!1), lt([]), be(""), ne(null), dt([]), b(ue(l)), P(null), Ee(null), we(null), Se(null), R(!1), et(null), L(null), g("measure"), Z("studio");
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 At() {
996
- A.mode === "local-demo" ? (Z("studio"), await X(async () => {
997
- let e = await J("/reference?language=" + l);
998
- b(e), R(!1), g("measure"), D("Reference example loaded. Review its site-confirmed dimensions before generating.");
999
- })) : Q();
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 jt(t, n) {
1002
- let r = B.current;
1003
- if (!Je || !Xe) throw Error("Review the image permissions and AI disclosure before upload.");
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 q(`/projects/${t.projectId}/uploads`, {
1194
+ let a = await Y(`/projects/${t.projectId}/uploads`, {
1007
1195
  method: "POST",
1008
- headers: !e && k ? { Authorization: "Bearer " + k } : {},
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 K(r), Error(e);
1205
+ throw J(r), Error(e);
1018
1206
  }
1019
1207
  let o = await a.json();
1020
- K(r), L(o.upload.id), D("Sketch stored privately. Reading produces observations to confirm, never unchecked dimensions.");
1208
+ J(r), Ue(o.upload.id), D("Sketch stored privately. Reading produces observations to confirm, never unchecked dimensions.");
1021
1209
  }
1022
- async function Mt() {
1023
- y && await X(async () => {
1024
- let e = de(y);
1210
+ async function Pt() {
1211
+ b && await Z(async () => {
1212
+ let e = be(b);
1025
1213
  if (e) throw Error(e);
1026
- if (F && !I && (!Je || !Xe)) throw Error("Review the image permissions and AI disclosure, or remove the local image.");
1027
- if (!Qe) throw Error("Confirm the measured dimensions and bearings before generating.");
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
- ...y,
1217
+ ...b,
1030
1218
  language: l
1031
- }, n = await J("/footprints/reconcile", t.footprint);
1032
- if (et(n), n.status !== "Unique") throw Error(n.findings.map((e) => e.message).join(" ") || "The footprint needs another confirmed measurement.");
1033
- let r = _ ? await J(`/projects/${_.projectId}/edits`, {
1034
- expectedVersion: _.version,
1035
- operationId: C(),
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 J("/projects", {
1041
- projectId: C(),
1042
- operationId: C(),
1228
+ }) : await X("/projects", {
1229
+ projectId: F(),
1230
+ operationId: F(),
1043
1231
  input: t
1044
1232
  });
1045
- Y(r), g(r.input.isDraft ? "measure" : "proposals"), F && !I && await jt(r, F);
1233
+ At(r), v(r.input.isDraft ? "measure" : "proposals"), B && !He && await Nt(r, B);
1046
1234
  });
1047
1235
  }
1048
- async function Nt() {
1049
- T.trim() && _ && await X(async () => {
1050
- let e = await J(`/projects/${_.projectId}/chat`, {
1051
- expectedVersion: _.version,
1052
- operationId: C(),
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
- P(e.preview), D(e.reply), be(""), g("refine");
1243
+ z(e.preview), D(e.reply), E(""), v("refine");
1056
1244
  });
1057
1245
  }
1058
- async function Pt() {
1059
- if (!fe(N, _) || !N || !_) return;
1060
- let e = N;
1061
- await X(async () => {
1062
- Y(await J(`/projects/${_.projectId}/edits`, {
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: C(),
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 Ft(e) {
1070
- _ && !N && await X(async () => {
1071
- Y(await J(`/projects/${_.projectId}/edits`, {
1072
- expectedVersion: _.version,
1073
- operationId: C(),
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 It() {
1082
- _ && !e && await X(async () => {
1083
- let e = await J("/account/quote", { projectId: _.projectId });
1084
- if (e.projectId !== _.projectId || !e.quoteId || ae({
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
- Se(e);
1276
+ oe(e);
1089
1277
  });
1090
1278
  }
1091
- async function Lt() {
1092
- _ && O && !e && Tt && G && await X(async () => {
1093
- if (O.projectId !== _.projectId || Date.parse(O.expiresAtUtc) <= Date.now()) throw Error("This quote expired. Refresh the project quote before purchase.");
1094
- let e = await J("/account/checkout", {
1095
- projectId: _.projectId,
1096
- requestId: C(),
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 Rt() {
1104
- Et(), B.current++, bt.current = "", xt.current = void 0, w(""), De(""), Be(void 0), Ne(""), je(""), Re(""), D("Signed out. Your saved project stays private and can resume after sign-in.");
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 zt() {
1107
- _ && W && !N && await X(async () => {
1108
- we(await J(`/projects/${_.projectId}/drawings`, {
1109
- expectedVersion: _.version,
1110
- operationId: C(),
1111
- proposalId: W.id
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 Bt() {
1116
- _ && W && !N && await X(async () => {
1117
- let e = await J(`/projects/${_.projectId}/exports`, {
1118
- expectedVersion: _.version,
1119
- operationId: C(),
1120
- proposalId: W.id
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
- Ee(e), g("download");
1310
+ j(e), v("download");
1123
1311
  });
1124
1312
  }
1125
- async function Vt(t, n = Te) {
1126
- n && _ && await X(async () => {
1127
- let r = B.current, i = await q(`/projects/${_.projectId}/objects/${n.files[t].id}`, { headers: !e && k ? { Authorization: "Bearer " + k } : {} });
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
- K(r);
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 Ht(e) {
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.") : (Ue(e), L(null), Ye(!1), Ze(!1), _ ? (g("measure"), D("Local preview only. Review permissions and AI disclosure before uploading the image.")) : (y || Q(!0), g("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.")));
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 Ut() {
1143
- F && await X(async () => {
1144
- let e = _;
1145
- e || (e = await J("/drafts", {
1146
- projectId: C(),
1147
- operationId: C()
1148
- }), Y(e), g("measure")), await jt(e, F);
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 Wt() {
1152
- _ && I && await X(async () => {
1153
- let e = await J(`/projects/${_.projectId}/read-sketch`, {
1154
- expectedVersion: _.version,
1155
- operationId: C(),
1156
- objectId: I,
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
- ht(e.observations), _t(e.values), at(e.candidate ?? null), st(!1), qe(e.questions), D("Recognized values remain estimated. Preview the outline, check labels and assumptions, then explicitly adopt reviewed measurements."), g("measure");
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 Gt() {
1163
- _ && await X(async () => {
1164
- let e = await J(`/projects/${_.projectId}`, void 0, "DELETE");
1165
- ne(null), dt([]), b(null), Ee(null), we(null), Se(null), P(null), Ue(null), L(null), qe([]), ht([]), _t(void 0), at(null), st(!1), lt([]), et(null), H && le(localStorage, H, null), He(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.");
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 Kt() {
1169
- !e && k && await X(async () => {
1170
- let e = await J("/account/data", void 0, "DELETE");
1171
- ft && (await Ot("visit", !1), pt(!1)), Et(), B.current++, H && le(localStorage, H, null), g("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.");
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 qt() {
1175
- await X(async () => {
1176
- let e = B.current;
1177
- if (j === "signup") {
1178
- await J("/account/signup", { email: Ae }), D("Check your email for the verification link. No session is created until ownership is verified."), M("verify"), Ne("");
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 J(j === "verify" ? "/account/verification/complete" : "/account/login", j === "verify" ? {
1182
- token: Le,
1183
- password: Me
1369
+ let t = await X(L === "verify" ? "/account/verification/complete" : "/account/login", L === "verify" ? {
1370
+ token: Ne,
1371
+ password: me
1184
1372
  } : {
1185
- email: Ae,
1186
- password: Me
1373
+ email: fe,
1374
+ password: me
1187
1375
  });
1188
- if (Ne(""), Re(""), !t.token) {
1189
- M("login"), D("Email verified. Sign in to continue.");
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 q("/session", { headers: { Authorization: "Bearer " + t.token } });
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 (K(e), typeof r.workspaceKey != "string" || !r.workspaceKey || r.workspaceKey.length > 512) throw Error("The verified workspace could not be loaded.");
1196
- xt.current && xt.current !== r.workspaceKey && Et(), B.current++, bt.current = t.token, xt.current = r.workspaceKey, De(t.token), Be(r.workspaceKey), ke(!1), D("Signed in. This session stays in memory only.");
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 Jt() {
1200
- z?.input && (b({
1201
- ...y ?? ue(l),
1202
- footprint: z.input
1203
- }), et(z.reconciliation), lt(z.input.edges.flatMap((e, t) => [`footprint.edges[${t}].lengthM`, ...e.bearingDegrees == null ? [] : [`footprint.edges[${t}].bearingDegrees`]])), st(!0), R(!1), P(null), g("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."));
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 Yt(e) {
1206
- L(e), g("measure"), D("Saved sanitized sketch selected. Reading it with AI is a separate explicit action.");
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 Xt(t, n) {
1209
- _ && await X(async () => {
1210
- let r = B.current, i = await q(`/projects/${_.projectId}/objects/${n.objectId}`, { headers: !e && k ? { Authorization: "Bearer " + k } : {} });
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
- K(r);
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
- n(() => {
1219
- if (!_) return;
1406
+ r(() => {
1407
+ if (!y) return;
1220
1408
  let e = !0;
1221
- return J(`/projects/${_.projectId}/artifacts`).then((t) => {
1222
- e && dt(Array.isArray(t) ? t : []);
1409
+ return X(`/projects/${y.projectId}/artifacts`).then((t) => {
1410
+ e && ut(Array.isArray(t) ? t : []);
1223
1411
  }).catch(() => {
1224
- e && dt([]);
1412
+ e && ut([]);
1225
1413
  }), () => {
1226
1414
  e = !1;
1227
1415
  };
1228
1416
  }, [
1229
- _?.projectId,
1230
- _?.version,
1231
- I
1417
+ y?.projectId,
1418
+ y?.version,
1419
+ He
1232
1420
  ]);
1233
- let $ = W?.values ?? U?.reconciliation.values ?? $e?.values, Zt = W?.findings.reduce((e, t) => (e[t.status] = (e[t.status] ?? 0) + 1, e), {}) ?? {};
1234
- return /* @__PURE__ */ h("div", {
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__ */ h("header", { children: [/* @__PURE__ */ m("a", {
1426
+ !e && /* @__PURE__ */ p("header", { children: [/* @__PURE__ */ f("a", {
1239
1427
  className: "logo",
1240
1428
  href: "/",
1241
1429
  onClick: (e) => {
1242
- e.preventDefault(), Z("home");
1430
+ e.preventDefault(), Q("home");
1243
1431
  },
1244
- children: /* @__PURE__ */ m(me, {})
1245
- }), /* @__PURE__ */ h("nav", { children: [
1246
- /* @__PURE__ */ m("a", {
1432
+ children: /* @__PURE__ */ f(Ce, {})
1433
+ }), /* @__PURE__ */ p("nav", { children: [
1434
+ /* @__PURE__ */ f("a", {
1247
1435
  href: "/#pricing",
1248
- onClick: () => ee !== "home" && Z("home"),
1249
- children: V.pricing
1436
+ onClick: () => ee !== "home" && Q("home"),
1437
+ children: U.pricing
1250
1438
  }),
1251
- /* @__PURE__ */ m("select", {
1252
- "aria-label": V.language,
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__ */ m("option", {
1448
+ ].map((e) => /* @__PURE__ */ f("option", {
1261
1449
  value: e,
1262
1450
  children: e.toUpperCase()
1263
1451
  }, e))
1264
1452
  }),
1265
- /* @__PURE__ */ m("button", {
1453
+ /* @__PURE__ */ f("button", {
1266
1454
  className: "quiet account-action",
1267
- disabled: x,
1268
- onClick: () => k ? Z("studio") : ke(!0),
1269
- children: k ? V.account : V.signin
1455
+ disabled: S,
1456
+ onClick: () => M ? Q("studio") : de(!0),
1457
+ children: M ? U.account : U.signin
1270
1458
  }),
1271
- k && /* @__PURE__ */ h("div", {
1459
+ M && /* @__PURE__ */ p("div", {
1272
1460
  className: "account-options",
1273
- children: [/* @__PURE__ */ m("button", {
1461
+ children: [/* @__PURE__ */ f("button", {
1274
1462
  className: "quiet",
1275
- "aria-label": v(l, "Account options"),
1276
- "aria-expanded": rt,
1463
+ "aria-label": _(l, "Account options"),
1464
+ "aria-expanded": nt,
1277
1465
  "aria-controls": "bim-account-actions",
1278
- disabled: x,
1279
- onClick: () => it(!rt),
1466
+ disabled: S,
1467
+ onClick: () => rt(!nt),
1280
1468
  children: "⋯"
1281
- }), rt && /* @__PURE__ */ h("div", {
1469
+ }), nt && /* @__PURE__ */ p("div", {
1282
1470
  id: "bim-account-actions",
1283
1471
  role: "group",
1284
- "aria-label": v(l, "Account actions"),
1472
+ "aria-label": _(l, "Account actions"),
1285
1473
  className: "account-actions",
1286
1474
  onKeyDown: (e) => {
1287
- e.key === "Escape" && (it(!1), e.currentTarget.parentElement?.querySelector("button")?.focus());
1475
+ e.key === "Escape" && (rt(!1), e.currentTarget.parentElement?.querySelector("button")?.focus());
1288
1476
  },
1289
- children: [/* @__PURE__ */ m("button", {
1477
+ children: [/* @__PURE__ */ f("button", {
1290
1478
  className: "quiet full",
1291
- disabled: x,
1479
+ disabled: S,
1292
1480
  onClick: () => {
1293
- it(!1), nt(!0);
1481
+ rt(!1), tt(!0);
1294
1482
  },
1295
- children: v(l, "Delete project content")
1296
- }), /* @__PURE__ */ m("button", {
1483
+ children: _(l, "Delete project content")
1484
+ }), /* @__PURE__ */ f("button", {
1297
1485
  className: "quiet full",
1298
- disabled: x,
1299
- onClick: Rt,
1300
- children: v(l, "Sign out")
1486
+ disabled: S,
1487
+ onClick: Bt,
1488
+ children: _(l, "Sign out")
1301
1489
  })]
1302
1490
  })]
1303
1491
  }),
1304
- /* @__PURE__ */ h("button", {
1492
+ /* @__PURE__ */ p("button", {
1305
1493
  className: "ink",
1306
- onClick: () => Z("studio"),
1307
- children: [V.studio, /* @__PURE__ */ m(he, {})]
1494
+ onClick: () => Q("studio"),
1495
+ children: [U.studio, /* @__PURE__ */ f(we, {})]
1308
1496
  })
1309
1497
  ] })] }),
1310
- ee === "home" ? /* @__PURE__ */ h("main", {
1498
+ ee === "home" ? /* @__PURE__ */ p("main", {
1311
1499
  className: "landing",
1312
1500
  children: [
1313
- /* @__PURE__ */ h("section", {
1501
+ /* @__PURE__ */ p("section", {
1314
1502
  className: "hero",
1315
1503
  children: [
1316
- /* @__PURE__ */ h("span", {
1504
+ /* @__PURE__ */ p("span", {
1317
1505
  className: "eyebrow",
1318
1506
  children: [
1319
- V.eyebrow,
1507
+ U.eyebrow,
1320
1508
  " ",
1321
- /* @__PURE__ */ m("span", { children: "01 — VISION" })
1509
+ /* @__PURE__ */ f("span", { children: "01 — VISION" })
1322
1510
  ]
1323
1511
  }),
1324
- /* @__PURE__ */ m("h1", { children: V.hero }),
1325
- /* @__PURE__ */ m("p", { children: V.intro }),
1326
- /* @__PURE__ */ h("div", {
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__ */ h("button", {
1516
+ children: [/* @__PURE__ */ p("button", {
1329
1517
  className: "ink large",
1330
- onClick: () => Z("studio"),
1331
- children: [V.start, /* @__PURE__ */ m(he, {})]
1332
- }), A.mode === "local-demo" ? /* @__PURE__ */ h("button", {
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: At,
1335
- children: [V.try, " →"]
1336
- }) : /* @__PURE__ */ h("button", {
1522
+ onClick: Mt,
1523
+ children: [U.try, " →"]
1524
+ }) : /* @__PURE__ */ p("button", {
1337
1525
  className: "textbtn",
1338
- onClick: () => Q(),
1339
- children: [v(l, "Enter measurements"), " →"]
1526
+ onClick: () => jt(),
1527
+ children: [_(l, "Enter measurements"), " →"]
1340
1528
  })]
1341
1529
  }),
1342
- /* @__PURE__ */ h("div", {
1530
+ /* @__PURE__ */ p("div", {
1343
1531
  className: "proof",
1344
- children: [/* @__PURE__ */ m("span", { className: "dot" }), "Your measurements. Checked geometry. One shared engine."]
1532
+ children: [/* @__PURE__ */ f("span", { className: "dot" }), "Your measurements. Checked geometry. One shared engine."]
1345
1533
  })
1346
1534
  ]
1347
1535
  }),
1348
- /* @__PURE__ */ h("section", {
1536
+ /* @__PURE__ */ p("section", {
1349
1537
  className: "transformation",
1350
1538
  children: [
1351
- /* @__PURE__ */ h("article", {
1539
+ /* @__PURE__ */ p("article", {
1352
1540
  className: "sketch-card",
1353
1541
  children: [
1354
- /* @__PURE__ */ h("div", {
1542
+ /* @__PURE__ */ p("div", {
1355
1543
  className: "card-title",
1356
- children: [/* @__PURE__ */ m("span", { children: "01 / SKETCH" }), /* @__PURE__ */ m("span", { children: "THE STARTING POINT" })]
1544
+ children: [/* @__PURE__ */ f("span", { children: "01 / SKETCH" }), /* @__PURE__ */ f("span", { children: "THE STARTING POINT" })]
1357
1545
  }),
1358
- /* @__PURE__ */ m(ge, {}),
1359
- /* @__PURE__ */ m("h3", { children: V.before })
1546
+ /* @__PURE__ */ f(Te, {}),
1547
+ /* @__PURE__ */ f("h3", { children: U.before })
1360
1548
  ]
1361
1549
  }),
1362
- /* @__PURE__ */ m("div", {
1550
+ /* @__PURE__ */ f("div", {
1363
1551
  className: "flow-arrow",
1364
1552
  children: "→"
1365
1553
  }),
1366
- /* @__PURE__ */ h("article", {
1554
+ /* @__PURE__ */ p("article", {
1367
1555
  className: "plan-card",
1368
1556
  children: [
1369
- /* @__PURE__ */ h("div", {
1557
+ /* @__PURE__ */ p("div", {
1370
1558
  className: "card-title",
1371
- children: [/* @__PURE__ */ m("span", { children: "02 / POSSIBILITIES" }), /* @__PURE__ */ m("span", {
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__ */ m("div", {
1564
+ /* @__PURE__ */ f("div", {
1377
1565
  className: "mini-plan",
1378
- children: /* @__PURE__ */ m("img", {
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__ */ m("h3", { children: V.after }),
1384
- A.mode === "local-demo" ? /* @__PURE__ */ h("button", {
1571
+ /* @__PURE__ */ f("h3", { children: U.after }),
1572
+ P.mode === "local-demo" ? /* @__PURE__ */ p("button", {
1385
1573
  className: "textbtn",
1386
- onClick: At,
1387
- children: [V.try, " ↗"]
1388
- }) : /* @__PURE__ */ h("button", {
1574
+ onClick: Mt,
1575
+ children: [U.try, " ↗"]
1576
+ }) : /* @__PURE__ */ p("button", {
1389
1577
  className: "textbtn",
1390
- onClick: () => Q(),
1391
- children: [v(l, "Enter measurements"), " ↗"]
1578
+ onClick: () => jt(),
1579
+ children: [_(l, "Enter measurements"), " ↗"]
1392
1580
  })
1393
1581
  ]
1394
1582
  })
1395
1583
  ]
1396
1584
  }),
1397
- /* @__PURE__ */ m("section", {
1585
+ /* @__PURE__ */ f("section", {
1398
1586
  className: "process",
1399
- children: V.steps.map((e, t) => /* @__PURE__ */ h("div", { children: [
1400
- /* @__PURE__ */ h("span", { children: ["0", t + 1] }),
1401
- /* @__PURE__ */ m("h3", { children: e }),
1402
- /* @__PURE__ */ m("p", { children: [
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__ */ h("section", {
1598
+ /* @__PURE__ */ p("section", {
1411
1599
  className: "use-case-links",
1412
1600
  children: [
1413
- /* @__PURE__ */ m("h2", { children: v(l, "Plan your next space") }),
1414
- /* @__PURE__ */ h("a", {
1601
+ /* @__PURE__ */ f("h2", { children: _(l, "Plan your next space") }),
1602
+ /* @__PURE__ */ p("a", {
1415
1603
  href: "/apartment-layout/",
1416
- children: [v(l, "Apartment layout"), " ↗"]
1604
+ children: [_(l, "Apartment layout"), " ↗"]
1417
1605
  }),
1418
- /* @__PURE__ */ h("a", {
1606
+ /* @__PURE__ */ p("a", {
1419
1607
  href: "/house-extension/",
1420
- children: [v(l, "House extension"), " ↗"]
1608
+ children: [_(l, "House extension"), " ↗"]
1421
1609
  }),
1422
- /* @__PURE__ */ h("a", {
1610
+ /* @__PURE__ */ p("a", {
1423
1611
  href: "/renovation/",
1424
- children: [v(l, "Renovation"), " ↗"]
1612
+ children: [_(l, "Renovation"), " ↗"]
1425
1613
  })
1426
1614
  ]
1427
1615
  }),
1428
- /* @__PURE__ */ h("section", {
1616
+ /* @__PURE__ */ p("section", {
1429
1617
  className: "price-section",
1430
1618
  id: "pricing",
1431
- children: [/* @__PURE__ */ h("div", { children: [
1432
- /* @__PURE__ */ m("span", {
1619
+ children: [/* @__PURE__ */ p("div", { children: [
1620
+ /* @__PURE__ */ f("span", {
1433
1621
  className: "eyebrow",
1434
1622
  children: "A CLEAR START"
1435
1623
  }),
1436
- /* @__PURE__ */ h("h2", { children: [
1624
+ /* @__PURE__ */ p("h2", { children: [
1437
1625
  "A small project.",
1438
- /* @__PURE__ */ m("br", {}),
1626
+ /* @__PURE__ */ f("br", {}),
1439
1627
  "A useful next step."
1440
1628
  ] }),
1441
- /* @__PURE__ */ m("p", { children: "Free access is included in KEHBIMVISION and BauLynq BIM, within each app’s AI usage limits." })
1442
- ] }), /* @__PURE__ */ h("article", {
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__ */ m("span", {
1633
+ /* @__PURE__ */ f("span", {
1446
1634
  className: "eyebrow",
1447
1635
  children: c === "karamentreprises" ? "KARAMENTREPRISES BIM" : "BAULYNQ VISION"
1448
1636
  }),
1449
- /* @__PURE__ */ m("h2", { children: Ct ?? "Pricing opens with the service" }),
1450
- /* @__PURE__ */ m("small", { children: "Base pricing. Your project quote is shown before purchase." }),
1451
- /* @__PURE__ */ m("p", { children: wt ? `${wt.proposals} free proposal generations · ${wt.exports} BIM exports` : "The local preview does not accept payments." }),
1452
- /* @__PURE__ */ m("p", { children: "One project includes proposals, refinements and its model export." }),
1453
- G && /* @__PURE__ */ h("p", { children: [
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
- G.regenerations,
1643
+ q.regenerations,
1456
1644
  " regenerations · ",
1457
- G.chat,
1645
+ q.chat,
1458
1646
  " chat refinements · ",
1459
- G.exports,
1647
+ q.exports,
1460
1648
  " ",
1461
- G.exports === 1 ? "BIM export" : "BIM exports",
1649
+ q.exports === 1 ? "BIM export" : "BIM exports",
1462
1650
  " per paid project."
1463
1651
  ] }),
1464
- /* @__PURE__ */ h("button", {
1652
+ /* @__PURE__ */ p("button", {
1465
1653
  className: "ink",
1466
- onClick: () => Z("studio"),
1467
- children: [V.start, /* @__PURE__ */ m(he, {})]
1654
+ onClick: () => Q("studio"),
1655
+ children: [U.start, /* @__PURE__ */ f(we, {})]
1468
1656
  })
1469
1657
  ]
1470
1658
  })]
1471
1659
  }),
1472
- /* @__PURE__ */ h("footer", { children: [/* @__PURE__ */ m(me, {}), /* @__PURE__ */ m("span", { children: V.disclaimer })] })
1660
+ /* @__PURE__ */ p("footer", { children: [/* @__PURE__ */ f(Ce, {}), /* @__PURE__ */ f("span", { children: U.disclaimer })] })
1473
1661
  ]
1474
- }) : /* @__PURE__ */ h("main", {
1662
+ }) : /* @__PURE__ */ p("main", {
1475
1663
  className: "studio",
1476
1664
  children: [
1477
- /* @__PURE__ */ h("aside", {
1665
+ /* @__PURE__ */ p("aside", {
1478
1666
  className: "rail",
1479
1667
  children: [
1480
- /* @__PURE__ */ m("span", {
1668
+ /* @__PURE__ */ f("span", {
1481
1669
  className: "eyebrow",
1482
1670
  children: "WORKSPACE"
1483
1671
  }),
1484
- /* @__PURE__ */ m("h2", { children: V.workspace }),
1485
- /* @__PURE__ */ h("span", {
1672
+ /* @__PURE__ */ f("h2", { children: U.workspace }),
1673
+ /* @__PURE__ */ p("span", {
1486
1674
  className: "project-status",
1487
- children: [/* @__PURE__ */ m("span", { className: "dot" }), A.mode === "local-demo" ? "Local reference preview" : "Private project"]
1675
+ children: [/* @__PURE__ */ f("span", { className: "dot" }), P.mode === "local-demo" ? "Local reference preview" : "Private project"]
1488
1676
  }),
1489
- /* @__PURE__ */ m("div", {
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__ */ h("button", {
1497
- className: f === e ? "active" : "",
1498
- onClick: () => g(e),
1499
- children: [/* @__PURE__ */ h("span", { children: ["0", t + 1] }), V[e]]
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__ */ h("div", {
1690
+ /* @__PURE__ */ p("div", {
1503
1691
  className: "rail-bottom",
1504
1692
  children: [
1505
- /* @__PURE__ */ m("p", { children: V.privacy }),
1506
- typeof A.retentionDays == "number" && /* @__PURE__ */ h("p", { children: [
1693
+ /* @__PURE__ */ f("p", { children: U.privacy }),
1694
+ typeof P.retentionDays == "number" && /* @__PURE__ */ p("p", { children: [
1507
1695
  "Retention: ",
1508
- A.retentionDays,
1696
+ P.retentionDays,
1509
1697
  " days, as configured by the service."
1510
1698
  ] }),
1511
- _ && /* @__PURE__ */ m("button", {
1699
+ y && /* @__PURE__ */ f("button", {
1512
1700
  className: "quiet danger",
1513
- onClick: Gt,
1514
- children: V.delete
1701
+ onClick: qt,
1702
+ children: U.delete
1515
1703
  })
1516
1704
  ]
1517
1705
  })
1518
1706
  ]
1519
1707
  }),
1520
- /* @__PURE__ */ h("section", {
1708
+ /* @__PURE__ */ p("section", {
1521
1709
  className: "workspace",
1522
1710
  children: [
1523
- /* @__PURE__ */ h("div", {
1711
+ /* @__PURE__ */ p("div", {
1524
1712
  className: "workspace-heading",
1525
- children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("span", {
1713
+ children: [/* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("span", {
1526
1714
  className: "eyebrow",
1527
- children: _ ? `VERSION ${_.version} / ${_.projectId.slice(0, 8)}` : "YOUR NEXT SPACE"
1528
- }), /* @__PURE__ */ m("h1", { children: V[f] })] }), /* @__PURE__ */ h("div", {
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__ */ m("select", {
1532
- "aria-label": V.language,
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__ */ m("option", {
1728
+ ].map((e) => /* @__PURE__ */ f("option", {
1541
1729
  value: e,
1542
1730
  children: e.toUpperCase()
1543
1731
  }, e))
1544
1732
  }),
1545
- /* @__PURE__ */ m("button", {
1733
+ /* @__PURE__ */ f("button", {
1546
1734
  className: "quiet",
1547
- disabled: x,
1548
- onClick: () => Q(),
1549
- children: v(l, "New project")
1735
+ disabled: S,
1736
+ onClick: () => jt(),
1737
+ children: _(l, "New project")
1550
1738
  }),
1551
- _ && /* @__PURE__ */ m("button", {
1739
+ y && /* @__PURE__ */ f("button", {
1552
1740
  className: "quiet compact-delete",
1553
1741
  "aria-label": "Delete current project",
1554
- disabled: x,
1555
- onClick: Gt,
1556
- children: V.delete
1742
+ disabled: S,
1743
+ onClick: qt,
1744
+ children: U.delete
1557
1745
  }),
1558
- _ && /* @__PURE__ */ h("button", {
1746
+ y && /* @__PURE__ */ p("button", {
1559
1747
  className: "outline",
1560
- disabled: x || !!N || _.version < 2,
1561
- onClick: () => X(async () => {
1562
- Y(await J(`/projects/${_.projectId}/undo`, {
1563
- expectedVersion: _.version,
1564
- targetVersion: _.version - 1,
1565
- operationId: C()
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: ["↶ ", V.undo]
1756
+ children: ["↶ ", U.undo]
1569
1757
  })
1570
1758
  ]
1571
1759
  })]
1572
1760
  }),
1573
- S && /* @__PURE__ */ h("div", {
1761
+ C && /* @__PURE__ */ p("div", {
1574
1762
  role: "alert",
1575
1763
  className: "alert",
1576
- children: [c === "karamentreprises" ? S.replace(/Polycyphers/gi, "Karamentreprises") : S, /* @__PURE__ */ m("button", {
1577
- "aria-label": V.close,
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
- xe && /* @__PURE__ */ h("div", {
1770
+ ae && /* @__PURE__ */ p("div", {
1583
1771
  role: "status",
1584
1772
  className: "notice",
1585
- children: [xe, /* @__PURE__ */ m("button", {
1586
- "aria-label": V.close,
1773
+ children: [ae, /* @__PURE__ */ f("button", {
1774
+ "aria-label": U.close,
1587
1775
  onClick: () => D(""),
1588
1776
  children: "×"
1589
1777
  })]
1590
1778
  }),
1591
- N && /* @__PURE__ */ m("section", {
1779
+ R && /* @__PURE__ */ f("section", {
1592
1780
  className: "notice preview-banner",
1593
1781
  role: "status",
1594
- children: /* @__PURE__ */ h("div", { children: [
1595
- /* @__PURE__ */ m("strong", { children: v(l, "Unsaved edit preview") }),
1596
- /* @__PURE__ */ h("p", { children: [
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
- _?.version,
1786
+ y?.version,
1599
1787
  " is unchanged."
1600
1788
  ] }),
1601
- /* @__PURE__ */ m("button", {
1789
+ /* @__PURE__ */ f("button", {
1602
1790
  className: "ink",
1603
- disabled: x || !fe(N, _),
1604
- onClick: Pt,
1605
- children: v(l, "Apply as new version")
1791
+ disabled: S || !xe(R, y),
1792
+ onClick: It,
1793
+ children: _(l, "Apply as new version")
1606
1794
  }),
1607
- /* @__PURE__ */ m("button", {
1795
+ /* @__PURE__ */ f("button", {
1608
1796
  className: "outline",
1609
- disabled: x,
1610
- onClick: () => P(null),
1611
- children: v(l, "Discard preview")
1797
+ disabled: S,
1798
+ onClick: () => z(null),
1799
+ children: _(l, "Discard preview")
1612
1800
  })
1613
1801
  ] })
1614
1802
  }),
1615
- !_ && !y ? /* @__PURE__ */ h("div", {
1803
+ !y && !b ? /* @__PURE__ */ p("div", {
1616
1804
  className: "empty",
1617
1805
  children: [
1618
- /* @__PURE__ */ m("span", {
1806
+ /* @__PURE__ */ f("span", {
1619
1807
  className: "empty-icon",
1620
1808
  children: "⌑"
1621
1809
  }),
1622
- /* @__PURE__ */ m("h2", { children: V.empty }),
1623
- /* @__PURE__ */ m("p", { children: V.emptyBody }),
1624
- /* @__PURE__ */ h("div", {
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__ */ h("button", {
1814
+ children: [/* @__PURE__ */ p("button", {
1627
1815
  className: "ink large",
1628
- disabled: x,
1629
- onClick: () => vt.current?.click(),
1630
- children: [V.upload, /* @__PURE__ */ m(he, {})]
1631
- }), /* @__PURE__ */ m("button", {
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: x,
1634
- onClick: () => Q(),
1635
- children: v(l, "Enter measurements")
1821
+ disabled: S,
1822
+ onClick: () => jt(),
1823
+ children: _(l, "Enter measurements")
1636
1824
  })]
1637
1825
  }),
1638
- Ve && /* @__PURE__ */ m("button", {
1826
+ Le && /* @__PURE__ */ f("button", {
1639
1827
  className: "outline",
1640
- disabled: x,
1641
- onClick: () => X(async () => {
1642
- let e = await J("/projects/" + Ve);
1643
- Y(e), g(e.input.isDraft ? "measure" : "proposals");
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: v(l, "Resume saved project")
1833
+ children: _(l, "Resume saved project")
1646
1834
  }),
1647
- A.mode === "local-demo" && /* @__PURE__ */ m("button", {
1835
+ P.mode === "local-demo" && /* @__PURE__ */ f("button", {
1648
1836
  className: "textbtn",
1649
- disabled: x,
1650
- onClick: At,
1651
- children: V.try
1837
+ disabled: S,
1838
+ onClick: Mt,
1839
+ children: U.try
1652
1840
  })
1653
1841
  ]
1654
- }) : f === "measure" && y ? /* @__PURE__ */ h(p, { children: [
1655
- /* @__PURE__ */ m(ve, {
1842
+ }) : g === "measure" && b ? /* @__PURE__ */ p(d, { children: [
1843
+ /* @__PURE__ */ f(ke, {
1656
1844
  language: l,
1657
- input: y,
1658
- setInput: b,
1845
+ input: b,
1846
+ setInput: x,
1659
1847
  onChange: (e) => {
1660
- R(!1), P(null), e && lt((t) => t.filter((t) => t !== e));
1848
+ Ze(!1), z(null), e && ct((t) => t.filter((t) => t !== e));
1661
1849
  },
1662
- estimatedFields: ct,
1663
- confirmed: Qe,
1664
- setConfirmed: R,
1665
- onGenerate: Mt,
1666
- busy: x,
1667
- onUpload: () => vt.current?.click(),
1668
- imageUrl: We,
1669
- geometry: $e
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
- F && !I && /* @__PURE__ */ h("section", {
1859
+ B && !He && /* @__PURE__ */ p("section", {
1672
1860
  className: "paper consent-panel",
1673
1861
  children: [
1674
- /* @__PURE__ */ m("h3", { children: v(l, "Before image upload") }),
1675
- /* @__PURE__ */ m("p", { children: v(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.") }),
1676
- /* @__PURE__ */ h("label", {
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__ */ m("input", {
1866
+ children: [/* @__PURE__ */ f("input", {
1679
1867
  type: "checkbox",
1680
- checked: Je,
1681
- onChange: (e) => Ye(e.target.checked)
1682
- }), v(l, "I have permission to use this image for this project.")]
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__ */ h("label", {
1872
+ /* @__PURE__ */ p("label", {
1685
1873
  className: "confirmation",
1686
- children: [/* @__PURE__ */ m("input", {
1874
+ children: [/* @__PURE__ */ f("input", {
1687
1875
  type: "checkbox",
1688
- checked: Xe,
1689
- onChange: (e) => Ze(e.target.checked)
1690
- }), v(l, "I understand the AI image-processing disclosure above.")]
1876
+ checked: Je,
1877
+ onChange: (e) => Ye(e.target.checked)
1878
+ }), _(l, "I understand the AI image-processing disclosure above.")]
1691
1879
  }),
1692
- /* @__PURE__ */ h("label", {
1880
+ /* @__PURE__ */ p("label", {
1693
1881
  className: "field",
1694
- children: [v(l, "What would you like to create?"), /* @__PURE__ */ m("textarea", {
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) => be(e.target.value)
1887
+ onChange: (e) => E(e.target.value)
1700
1888
  })]
1701
1889
  }),
1702
- /* @__PURE__ */ m("button", {
1890
+ /* @__PURE__ */ f("button", {
1703
1891
  className: "ink",
1704
- disabled: x || !Je || !Xe,
1705
- onClick: Ut,
1706
- children: v(l, "Upload for scanning")
1892
+ disabled: S || !Ke || !Je,
1893
+ onClick: Gt,
1894
+ children: _(l, "Upload for scanning")
1707
1895
  }),
1708
- /* @__PURE__ */ m("button", {
1896
+ /* @__PURE__ */ f("button", {
1709
1897
  className: "quiet",
1710
1898
  onClick: () => {
1711
- Ue(null), Ye(!1), Ze(!1);
1899
+ ze(null), qe(!1), Ye(!1);
1712
1900
  },
1713
- children: v(l, "Remove local image")
1901
+ children: _(l, "Remove local image")
1714
1902
  })
1715
1903
  ]
1716
1904
  }),
1717
- I && /* @__PURE__ */ h("section", {
1905
+ He && /* @__PURE__ */ p("section", {
1718
1906
  className: "paper consent-panel",
1719
1907
  children: [
1720
- /* @__PURE__ */ m("p", { children: v(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.") }),
1721
- /* @__PURE__ */ h("label", {
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: [v(l, "What should the sketch reader focus on?"), /* @__PURE__ */ m("textarea", {
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) => be(e.target.value)
1915
+ onChange: (e) => E(e.target.value)
1728
1916
  })]
1729
1917
  }),
1730
- /* @__PURE__ */ m("button", {
1918
+ /* @__PURE__ */ f("button", {
1731
1919
  className: "outline",
1732
- disabled: x,
1733
- onClick: Wt,
1734
- children: v(l, "Read saved sketch with AI · observations only")
1920
+ disabled: S,
1921
+ onClick: Kt,
1922
+ children: _(l, "Read saved sketch with AI · observations only")
1735
1923
  })
1736
1924
  ]
1737
1925
  }),
1738
- z && /* @__PURE__ */ h("section", {
1926
+ V && /* @__PURE__ */ p("section", {
1739
1927
  className: "paper candidate-panel",
1740
1928
  children: [
1741
- /* @__PURE__ */ m("h3", { children: v(l, "Recognized outline · estimated") }),
1742
- /* @__PURE__ */ m("p", { children: z.input ? `${z.input.edges.length} linked boundary edges · geometry ${z.status}` : "The reader did not return a complete, valid outline. Enter or correct measurements manually." }),
1743
- /* @__PURE__ */ m("p", { children: "Lengths use explicit labels only. Image coordinates do not establish physical scale. Bearings and wall types remain assumptions to review." }),
1744
- /* @__PURE__ */ m("button", {
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: x || !z.input || ot,
1747
- onClick: Jt,
1748
- children: v(l, "Preview recognized outline")
1934
+ disabled: S || !V.input || at,
1935
+ onClick: Xt,
1936
+ children: _(l, "Preview recognized outline")
1749
1937
  }),
1750
- ot && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("p", { children: v(l, "Local estimated preview only. The saved project is unchanged.") }), /* @__PURE__ */ m(ye, { candidate: z })] }),
1751
- /* @__PURE__ */ m(_e, {
1752
- report: z.values,
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
- (mt.length > 0 || Ke.length > 0) && /* @__PURE__ */ h("article", {
1945
+ (pt.length > 0 || We.length > 0) && /* @__PURE__ */ p("article", {
1758
1946
  className: "paper findings",
1759
1947
  children: [
1760
- /* @__PURE__ */ m("h3", { children: v(l, "Sketch observations to confirm") }),
1761
- /* @__PURE__ */ m("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." }),
1762
- mt.map((e, t) => /* @__PURE__ */ h("section", { children: [
1763
- /* @__PURE__ */ h("strong", { children: [e.kind, e.edgeId ? " · " + e.edgeId : ""] }),
1764
- e.value != null && /* @__PURE__ */ h("p", { children: [
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__ */ m("span", {
1957
+ /* @__PURE__ */ f("span", {
1770
1958
  className: "value-tag origin-estimated",
1771
1959
  children: "estimated · unconfirmed"
1772
1960
  })
1773
1961
  ] }),
1774
- /* @__PURE__ */ m("p", { children: e.evidence })
1962
+ /* @__PURE__ */ f("p", { children: e.evidence })
1775
1963
  ] }, t)),
1776
- Ke.map((e, t) => /* @__PURE__ */ m("p", { children: e }, t)),
1777
- gt && /* @__PURE__ */ m(_e, {
1778
- report: gt,
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
- ] }) : W ? /* @__PURE__ */ h(p, { children: [
1784
- /* @__PURE__ */ h("div", {
1971
+ ] }) : K ? /* @__PURE__ */ p(d, { children: [
1972
+ /* @__PURE__ */ p("div", {
1785
1973
  className: "metrics",
1786
1974
  children: [
1787
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("span", { children: [
1788
- V.area,
1975
+ /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ p("span", { children: [
1976
+ U.area,
1789
1977
  " ",
1790
- /* @__PURE__ */ m(E, {
1978
+ /* @__PURE__ */ f(I, {
1791
1979
  language: l,
1792
1980
  report: $,
1793
1981
  path: "centerlineAreaM2"
1794
1982
  })
1795
- ] }), /* @__PURE__ */ h("strong", { children: [W.centerlineAreaM2.toFixed(2), /* @__PURE__ */ m("small", { children: "m²" })] })] }),
1796
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("span", { children: [
1797
- V.net,
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__ */ m(E, {
1987
+ /* @__PURE__ */ f(I, {
1800
1988
  language: l,
1801
1989
  report: $,
1802
1990
  path: "netAreaM2"
1803
1991
  })
1804
- ] }), /* @__PURE__ */ h("strong", { children: [W.netAreaM2.toFixed(2), /* @__PURE__ */ m("small", { children: "m²" })] })] }),
1805
- /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ h("span", { children: [
1806
- V.perimeter,
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__ */ m(E, {
1996
+ /* @__PURE__ */ f(I, {
1809
1997
  language: l,
1810
1998
  report: $,
1811
1999
  path: "perimeterM"
1812
2000
  })
1813
- ] }), /* @__PURE__ */ h("strong", { children: [U?.reconciliation.solutions[0]?.perimeterM.toFixed(2), /* @__PURE__ */ m("small", { children: "m" })] })] }),
1814
- /* @__PURE__ */ h("div", {
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: [W.hasRequiredConflicts ? V.warning : v(l, "Required layout checks passed"), /* @__PURE__ */ m("span", { children: v(l, "Reference sources remain visible below.") })]
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__ */ h("div", {
2008
+ /* @__PURE__ */ p("div", {
1821
2009
  className: "drawing-layout",
1822
- children: [/* @__PURE__ */ h("article", {
2010
+ children: [/* @__PURE__ */ p("article", {
1823
2011
  className: "drawing paper",
1824
2012
  children: [
1825
- /* @__PURE__ */ h("div", {
2013
+ /* @__PURE__ */ p("div", {
1826
2014
  className: "drawing-top",
1827
2015
  children: [
1828
- /* @__PURE__ */ h("span", { children: ["LAYOUT ", W.id] }),
1829
- /* @__PURE__ */ m("span", { children: N ? "UNSAVED EDIT PREVIEW" : "ENGINE-CHECKED CONCEPT" }),
1830
- /* @__PURE__ */ m("span", { children: "METRES / CONCEPT" })
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__ */ m("div", {
2021
+ /* @__PURE__ */ f("div", {
1834
2022
  className: "engine-svg",
1835
- dangerouslySetInnerHTML: { __html: a.sanitize(W.svg, { USE_PROFILES: {
2023
+ dangerouslySetInnerHTML: { __html: o.sanitize(K.svg, { USE_PROFILES: {
1836
2024
  svg: !0,
1837
2025
  svgFilters: !0
1838
2026
  } }) }
1839
2027
  }),
1840
- /* @__PURE__ */ h("div", {
2028
+ /* @__PURE__ */ p("div", {
1841
2029
  className: "drawing-bottom",
1842
- children: [/* @__PURE__ */ m("span", { children: c === "karamentreprises" ? "KARAMENTREPRISES BIM" : "BAULYNQ VISION" }), /* @__PURE__ */ h("span", { children: [
1843
- N ? "PREVIEW / " : "",
2030
+ children: [/* @__PURE__ */ f("span", { children: c === "karamentreprises" ? "KARAMENTREPRISES BIM" : "BAULYNQ VISION" }), /* @__PURE__ */ p("span", { children: [
2031
+ R ? "PREVIEW / " : "",
1844
2032
  "v",
1845
- U?.version,
2033
+ G?.version,
1846
2034
  " · ",
1847
2035
  l.toUpperCase()
1848
2036
  ] })]
1849
2037
  })
1850
2038
  ]
1851
- }), /* @__PURE__ */ h("aside", {
2039
+ }), /* @__PURE__ */ p("aside", {
1852
2040
  className: "proposal-panel",
1853
2041
  children: [
1854
- /* @__PURE__ */ m("span", {
2042
+ /* @__PURE__ */ f("span", {
1855
2043
  className: "eyebrow",
1856
2044
  children: "FIND YOUR FIT"
1857
2045
  }),
1858
- U?.proposals.map((e) => /* @__PURE__ */ h("button", {
1859
- className: "proposal-card " + (re === e.id ? "selected" : ""),
1860
- onClick: () => ie(e.id),
1861
- children: [/* @__PURE__ */ m("span", {
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__ */ h("div", { children: [
1865
- e.recommended && /* @__PURE__ */ m("small", {
2052
+ }), /* @__PURE__ */ p("div", { children: [
2053
+ e.recommended && /* @__PURE__ */ f("small", {
1866
2054
  className: "badge",
1867
- children: V.recommended
2055
+ children: U.recommended
1868
2056
  }),
1869
- /* @__PURE__ */ m("h3", { children: e.title }),
1870
- /* @__PURE__ */ m("p", { children: e.tradeOffs[0] })
2057
+ /* @__PURE__ */ f("h3", { children: e.title }),
2058
+ /* @__PURE__ */ f("p", { children: e.tradeOffs[0] })
1871
2059
  ] })]
1872
2060
  }, e.id)),
1873
- /* @__PURE__ */ h("button", {
2061
+ /* @__PURE__ */ p("button", {
1874
2062
  className: "ink full",
1875
- disabled: x || !!N,
1876
- onClick: () => Ft(W),
1877
- children: [V.select, /* @__PURE__ */ m(he, {})]
2063
+ disabled: S || !!R,
2064
+ onClick: () => Lt(K),
2065
+ children: [U.select, /* @__PURE__ */ f(we, {})]
1878
2066
  }),
1879
- !e && _ && /* @__PURE__ */ h("section", {
2067
+ !e && y && /* @__PURE__ */ p("section", {
1880
2068
  className: "project-price",
1881
2069
  children: [
1882
- /* @__PURE__ */ m("h3", { children: v(l, "Project billing") }),
1883
- /* @__PURE__ */ m("p", { children: "One project includes proposals, refinements and its BIM model within the configured caps. Free allowances are checked by the service." }),
1884
- G ? /* @__PURE__ */ h("p", {
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
- G.regenerations,
2076
+ q.regenerations,
1889
2077
  " regenerations · ",
1890
- G.chat,
2078
+ q.chat,
1891
2079
  " chat refinements · ",
1892
- G.exports,
2080
+ q.exports,
1893
2081
  " ",
1894
- G.exports === 1 ? "BIM export" : "BIM exports",
2082
+ q.exports === 1 ? "BIM export" : "BIM exports",
1895
2083
  " per paid project."
1896
2084
  ]
1897
- }) : /* @__PURE__ */ m("p", { children: "Project usage limits are unavailable. Checkout stays disabled until they can be shown." }),
1898
- O ? /* @__PURE__ */ h(p, { children: [
1899
- /* @__PURE__ */ m("strong", { children: ae({
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__ */ h("p", { children: [
2091
+ /* @__PURE__ */ p("p", { children: [
1904
2092
  "Quote valid until ",
1905
2093
  new Date(O.expiresAtUtc).toLocaleString(l),
1906
2094
  "."
1907
2095
  ] }),
1908
- /* @__PURE__ */ m("button", {
2096
+ /* @__PURE__ */ f("button", {
1909
2097
  className: "ink full",
1910
- disabled: x || !Tt || !G,
1911
- onClick: Lt,
1912
- children: v(l, "Continue to Stripe")
2098
+ disabled: S || !Tt || !q,
2099
+ onClick: zt,
2100
+ children: _(l, "Continue to Stripe")
1913
2101
  }),
1914
- /* @__PURE__ */ m("button", {
2102
+ /* @__PURE__ */ f("button", {
1915
2103
  className: "textbtn",
1916
- disabled: x,
1917
- onClick: It,
1918
- children: v(l, "Refresh project quote")
2104
+ disabled: S,
2105
+ onClick: Rt,
2106
+ children: _(l, "Refresh project quote")
1919
2107
  })
1920
- ] }) : /* @__PURE__ */ m("button", {
2108
+ ] }) : /* @__PURE__ */ f("button", {
1921
2109
  className: "outline full",
1922
- disabled: x || !Tt,
1923
- onClick: It,
1924
- children: v(l, "View project price")
2110
+ disabled: S || !Tt,
2111
+ onClick: Rt,
2112
+ children: _(l, "View project price")
1925
2113
  }),
1926
- !Tt && /* @__PURE__ */ m("small", { children: v(l, "Purchases are not enabled in this environment.") }),
1927
- /* @__PURE__ */ m("small", { children: "A checkout return is not proof of payment; downloads use the service's verified entitlement." })
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__ */ h("section", {
2118
+ /* @__PURE__ */ p("section", {
1931
2119
  className: "drawing-downloads",
1932
2120
  children: [
1933
- /* @__PURE__ */ m("h3", { children: v(l, "2D concept drawings") }),
1934
- /* @__PURE__ */ m("button", {
2121
+ /* @__PURE__ */ f("h3", { children: _(l, "2D concept drawings") }),
2122
+ /* @__PURE__ */ f("button", {
1935
2123
  className: "outline full",
1936
- disabled: x || !!N,
1937
- onClick: zt,
1938
- children: v(l, "Prepare PDF / editable DXF / SVG")
2124
+ disabled: S || !!R,
2125
+ onClick: Vt,
2126
+ children: _(l, "Prepare PDF / editable DXF / SVG")
1939
2127
  }),
1940
- Ce && Object.keys(Ce.files).map((e) => /* @__PURE__ */ h("button", {
2128
+ se && Object.keys(se.files).map((e) => /* @__PURE__ */ p("button", {
1941
2129
  className: "quiet",
1942
- onClick: () => Vt(e, Ce),
2130
+ onClick: () => Ut(e, se),
1943
2131
  children: [e.toUpperCase(), " ↓"]
1944
2132
  }, e)),
1945
- /* @__PURE__ */ m("small", { children: "Separate from the BIM model export. PDF is included when the service has PDF rendering configured." })
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__ */ h("div", {
2136
+ /* @__PURE__ */ p("div", {
1949
2137
  className: "tradeoffs",
1950
- children: [/* @__PURE__ */ m("h3", { children: V.tradeoffs }), W.tradeOffs.map((e, t) => /* @__PURE__ */ m("p", { children: e }, t))]
2138
+ children: [/* @__PURE__ */ f("h3", { children: U.tradeoffs }), K.tradeOffs.map((e, t) => /* @__PURE__ */ f("p", { children: e }, t))]
1951
2139
  }),
1952
- f === "download" ? /* @__PURE__ */ h(p, { children: [
1953
- /* @__PURE__ */ m("h3", { children: V.download }),
1954
- Te ? Object.keys(Te.files).map((e) => /* @__PURE__ */ h("button", {
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: () => Vt(e),
2144
+ onClick: () => Ut(e),
1957
2145
  children: [e.toUpperCase(), " ↓"]
1958
- }, e)) : /* @__PURE__ */ h("button", {
2146
+ }, e)) : /* @__PURE__ */ p("button", {
1959
2147
  className: "ink full",
1960
- disabled: x || !!N || W.hasRequiredConflicts,
1961
- onClick: Bt,
1962
- children: [V.export, /* @__PURE__ */ m(he, {})]
2148
+ disabled: S || !!R || K.hasRequiredConflicts,
2149
+ onClick: Ht,
2150
+ children: [U.export, /* @__PURE__ */ f(we, {})]
1963
2151
  }),
1964
- /* @__PURE__ */ m("small", { children: Te?.viewerVerification ?? V.downloadNote })
1965
- ] }) : /* @__PURE__ */ h("div", {
2152
+ /* @__PURE__ */ f("small", { children: A?.viewerVerification ?? U.downloadNote })
2153
+ ] }) : /* @__PURE__ */ p("div", {
1966
2154
  className: "chat",
1967
2155
  children: [
1968
- /* @__PURE__ */ m("h3", { children: V.chat }),
1969
- /* @__PURE__ */ m("textarea", {
1970
- "aria-label": V.chat,
1971
- placeholder: V.hint,
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) => be(e.target.value)
2162
+ onChange: (e) => E(e.target.value)
1975
2163
  }),
1976
- /* @__PURE__ */ h("button", {
2164
+ /* @__PURE__ */ p("button", {
1977
2165
  className: "outline full",
1978
- disabled: x || !T.trim(),
1979
- onClick: Nt,
1980
- children: [V.send, " →"]
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__ */ h("div", {
2175
+ /* @__PURE__ */ p("div", {
1988
2176
  className: "detail-grid",
1989
- children: [/* @__PURE__ */ h("article", {
2177
+ children: [/* @__PURE__ */ p("article", {
1990
2178
  className: "paper schedule",
1991
- children: [/* @__PURE__ */ m("h3", { children: V.schedule }), /* @__PURE__ */ h("table", { children: [
1992
- /* @__PURE__ */ m("thead", { children: /* @__PURE__ */ h("tr", { children: [
1993
- /* @__PURE__ */ m("th", { children: v(l, "Room") }),
1994
- /* @__PURE__ */ m("th", { children: "W × D" }),
1995
- /* @__PURE__ */ m("th", { children: v(l, "Axis m²") }),
1996
- /* @__PURE__ */ m("th", { children: v(l, "Net m²") })
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__ */ m("tbody", { children: W.schedule.map((e) => /* @__PURE__ */ h("tr", { children: [
1999
- /* @__PURE__ */ m("td", { children: e.name }),
2000
- /* @__PURE__ */ h("td", { children: [
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__ */ m(E, {
2192
+ /* @__PURE__ */ f(I, {
2005
2193
  language: l,
2006
2194
  report: $,
2007
2195
  path: `${e.roomId}.widthM`
2008
2196
  }),
2009
- /* @__PURE__ */ m(E, {
2197
+ /* @__PURE__ */ f(I, {
2010
2198
  language: l,
2011
2199
  report: $,
2012
2200
  path: `${e.roomId}.depthM`
2013
2201
  })
2014
2202
  ] }),
2015
- /* @__PURE__ */ h("td", { children: [e.centerlineAreaM2.toFixed(2), /* @__PURE__ */ m(E, {
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__ */ h("td", { children: [e.netAreaM2.toFixed(2), /* @__PURE__ */ m(E, {
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__ */ m("tfoot", { children: /* @__PURE__ */ h("tr", { children: [
2027
- /* @__PURE__ */ m("th", { children: v(l, "Total") }),
2028
- /* @__PURE__ */ m("td", {}),
2029
- /* @__PURE__ */ h("th", { children: [W.centerlineAreaM2.toFixed(2), /* @__PURE__ */ m(E, {
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__ */ h("th", { children: [W.netAreaM2.toFixed(2), /* @__PURE__ */ m(E, {
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__ */ h("article", {
2229
+ }), /* @__PURE__ */ p("article", {
2042
2230
  className: "paper check-summary",
2043
2231
  children: [
2044
- /* @__PURE__ */ m("h3", { children: V.checks }),
2045
- /* @__PURE__ */ m("div", {
2232
+ /* @__PURE__ */ f("h3", { children: U.checks }),
2233
+ /* @__PURE__ */ f("div", {
2046
2234
  className: "check-counts",
2047
- children: Object.entries(Zt).map(([e, t]) => /* @__PURE__ */ h("span", { children: [/* @__PURE__ */ m("strong", { children: t }), e] }, e))
2235
+ children: Object.entries($t).map(([e, t]) => /* @__PURE__ */ p("span", { children: [/* @__PURE__ */ f("strong", { children: t }), e] }, e))
2048
2236
  }),
2049
- /* @__PURE__ */ h("button", {
2237
+ /* @__PURE__ */ p("button", {
2050
2238
  className: "textbtn",
2051
- onClick: () => Ie(!Fe),
2239
+ onClick: () => je(!De),
2052
2240
  children: [
2053
- Fe ? v(l, "Hide") : V.notes,
2241
+ De ? _(l, "Hide") : U.notes,
2054
2242
  " ",
2055
- Fe ? "−" : "+"
2243
+ De ? "−" : "+"
2056
2244
  ]
2057
2245
  }),
2058
- /* @__PURE__ */ m("p", { children: "Reference-only entries are disclosed, never presented as passed checks. Country statutory certification is not inferred." })
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
- Fe && /* @__PURE__ */ m("article", {
2250
+ De && /* @__PURE__ */ f("article", {
2063
2251
  className: "paper findings",
2064
- children: W.findings.map((e, t) => /* @__PURE__ */ h("details", { children: [
2065
- /* @__PURE__ */ h("summary", { children: [
2066
- /* @__PURE__ */ m("span", {
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__ */ m("code", { children: e.ruleId }),
2071
- /* @__PURE__ */ m("span", { children: e.subjectId })
2258
+ /* @__PURE__ */ f("code", { children: e.ruleId }),
2259
+ /* @__PURE__ */ f("span", { children: e.subjectId })
2072
2260
  ] }),
2073
- /* @__PURE__ */ m("p", { children: e.measurement }),
2074
- e.fix && /* @__PURE__ */ m("p", { children: e.fix }),
2075
- /* @__PURE__ */ m("small", { children: e.source })
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__ */ m("p", {
2266
+ /* @__PURE__ */ f("p", {
2079
2267
  className: "disclaimer",
2080
- children: V.disclaimer
2268
+ children: U.disclaimer
2081
2269
  })
2082
2270
  ] }) : null,
2083
- (U || $e) && /* @__PURE__ */ m(_e, {
2271
+ (G || Qe) && /* @__PURE__ */ f(Oe, {
2084
2272
  report: $,
2085
2273
  language: l
2086
2274
  })
2087
2275
  ]
2088
2276
  }),
2089
- /* @__PURE__ */ m("input", {
2277
+ /* @__PURE__ */ f("input", {
2090
2278
  hidden: !0,
2091
2279
  type: "file",
2092
- ref: vt,
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 && Ht(t), e.target.value = "";
2284
+ t && Wt(t), e.target.value = "";
2097
2285
  }
2098
2286
  })
2099
2287
  ]
2100
2288
  }),
2101
- x && /* @__PURE__ */ h("div", {
2289
+ S && /* @__PURE__ */ p("div", {
2102
2290
  className: "working",
2103
2291
  role: "status",
2104
- children: [/* @__PURE__ */ m("span", { className: "spinner" }), V.generating]
2292
+ children: [/* @__PURE__ */ f("span", { className: "spinner" }), U.generating]
2105
2293
  }),
2106
- ee === "studio" && _ && ut.length > 0 && /* @__PURE__ */ m("section", {
2294
+ ee === "studio" && y && lt.length > 0 && /* @__PURE__ */ f("section", {
2107
2295
  className: "paper saved-files",
2108
- children: /* @__PURE__ */ h("details", { children: [/* @__PURE__ */ m("summary", { children: v(l, "Saved project files · download without a new export") }), ut.map((e) => /* @__PURE__ */ h("article", { children: [
2109
- /* @__PURE__ */ h("strong", { children: [
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__ */ h("button", {
2302
+ e.files.map((t) => /* @__PURE__ */ p("button", {
2115
2303
  className: "quiet",
2116
- disabled: x,
2117
- onClick: () => Xt(e, t),
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__ */ m("button", {
2312
+ ].includes(e.format)) && /* @__PURE__ */ f("button", {
2125
2313
  className: "outline",
2126
- disabled: x,
2127
- onClick: () => Yt(e.files.find((e) => [
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: v(l, "Use saved sketch")
2320
+ children: _(l, "Use saved sketch")
2133
2321
  })
2134
2322
  ] }, e.artifactId))] })
2135
2323
  }),
2136
- !e && A.analyticsEnabled === !0 && /* @__PURE__ */ h("aside", {
2324
+ !e && P.analyticsEnabled === !0 && /* @__PURE__ */ p("aside", {
2137
2325
  className: "analytics-choice",
2138
- children: [/* @__PURE__ */ h("label", { children: [/* @__PURE__ */ m("input", {
2326
+ children: [/* @__PURE__ */ p("label", { children: [/* @__PURE__ */ f("input", {
2139
2327
  type: "checkbox",
2140
- checked: ft,
2328
+ checked: dt,
2141
2329
  onChange: (e) => kt(e.target.checked)
2142
- }), " Allow optional visit and paywall analytics"] }), /* @__PURE__ */ m("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." })]
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 && k && tt && /* @__PURE__ */ m("div", {
2332
+ !e && M && et && /* @__PURE__ */ f("div", {
2145
2333
  className: "modal-backdrop",
2146
- children: /* @__PURE__ */ h("section", {
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__ */ m("h2", {
2340
+ /* @__PURE__ */ f("h2", {
2153
2341
  id: "content-deletion-title",
2154
- children: v(l, "Delete all project content?")
2342
+ children: _(l, "Delete all project content?")
2155
2343
  }),
2156
- /* @__PURE__ */ m("p", { children: v(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.") }),
2157
- /* @__PURE__ */ m("button", {
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: x,
2160
- onClick: Kt,
2161
- children: v(l, "Delete my project content")
2347
+ disabled: S,
2348
+ onClick: Jt,
2349
+ children: _(l, "Delete my project content")
2162
2350
  }),
2163
- /* @__PURE__ */ m("button", {
2351
+ /* @__PURE__ */ f("button", {
2164
2352
  className: "quiet full",
2165
- disabled: x,
2166
- onClick: () => nt(!1),
2167
- children: v(l, "Cancel")
2353
+ disabled: S,
2354
+ onClick: () => tt(!1),
2355
+ children: _(l, "Cancel")
2168
2356
  })
2169
2357
  ]
2170
2358
  })
2171
2359
  }),
2172
- !e && Oe && /* @__PURE__ */ m("div", {
2360
+ !e && ue && /* @__PURE__ */ f("div", {
2173
2361
  className: "modal-backdrop",
2174
- children: /* @__PURE__ */ h("form", {
2362
+ children: /* @__PURE__ */ p("form", {
2175
2363
  className: "modal paper",
2176
2364
  onSubmit: (e) => {
2177
- e.preventDefault(), qt();
2365
+ e.preventDefault(), Yt();
2178
2366
  },
2179
2367
  children: [
2180
- /* @__PURE__ */ m("button", {
2368
+ /* @__PURE__ */ f("button", {
2181
2369
  type: "button",
2182
2370
  className: "close",
2183
- "aria-label": V.close,
2184
- onClick: () => ke(!1),
2371
+ "aria-label": U.close,
2372
+ onClick: () => de(!1),
2185
2373
  children: "×"
2186
2374
  }),
2187
- /* @__PURE__ */ m(me, {}),
2188
- /* @__PURE__ */ m("h2", { children: j === "signup" ? v(l, "Create a verified account") : j === "verify" ? v(l, "Verify your email") : V.signin }),
2189
- S && /* @__PURE__ */ m("p", {
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" ? S.replace(/Polycyphers/gi, "Karamentreprises") : S
2379
+ children: c === "karamentreprises" ? C.replace(/Polycyphers/gi, "Karamentreprises") : C
2192
2380
  }),
2193
- xe && /* @__PURE__ */ m("p", {
2381
+ ae && /* @__PURE__ */ f("p", {
2194
2382
  role: "status",
2195
- children: xe
2383
+ children: ae
2196
2384
  }),
2197
- j !== "verify" && /* @__PURE__ */ h("label", {
2385
+ L !== "verify" && /* @__PURE__ */ p("label", {
2198
2386
  className: "field",
2199
- children: [V.email, /* @__PURE__ */ m("input", {
2387
+ children: [U.email, /* @__PURE__ */ f("input", {
2200
2388
  type: "email",
2201
2389
  autoComplete: "email",
2202
2390
  required: !0,
2203
- value: Ae,
2204
- onChange: (e) => je(e.target.value)
2391
+ value: fe,
2392
+ onChange: (e) => pe(e.target.value)
2205
2393
  })]
2206
2394
  }),
2207
- j === "verify" && /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("p", { children: "Open the verification link sent to your email, or paste its token below. Verification happens only when you submit this form." }), /* @__PURE__ */ h("label", {
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: [v(l, "Verification token"), /* @__PURE__ */ m("input", {
2397
+ children: [_(l, "Verification token"), /* @__PURE__ */ f("input", {
2210
2398
  autoComplete: "off",
2211
2399
  required: !0,
2212
- value: Le,
2213
- onChange: (e) => Re(e.target.value)
2400
+ value: Ne,
2401
+ onChange: (e) => Pe(e.target.value)
2214
2402
  })]
2215
2403
  })] }),
2216
- j !== "signup" && /* @__PURE__ */ h("label", {
2404
+ L !== "signup" && /* @__PURE__ */ p("label", {
2217
2405
  className: "field",
2218
- children: [V.password, /* @__PURE__ */ m("input", {
2406
+ children: [U.password, /* @__PURE__ */ f("input", {
2219
2407
  type: "password",
2220
- autoComplete: j === "verify" ? "new-password" : "current-password",
2221
- minLength: j === "verify" ? 10 : void 0,
2408
+ autoComplete: L === "verify" ? "new-password" : "current-password",
2409
+ minLength: L === "verify" ? 10 : void 0,
2222
2410
  required: !0,
2223
- value: Me,
2224
- onChange: (e) => Ne(e.target.value)
2411
+ value: me,
2412
+ onChange: (e) => N(e.target.value)
2225
2413
  })]
2226
2414
  }),
2227
- /* @__PURE__ */ m("button", {
2415
+ /* @__PURE__ */ f("button", {
2228
2416
  className: "ink full",
2229
- disabled: x,
2230
- children: j === "signup" ? v(l, "Send verification email") : j === "verify" ? v(l, "Verify & set password") : V.signin
2417
+ disabled: S,
2418
+ children: L === "signup" ? _(l, "Send verification email") : L === "verify" ? _(l, "Verify & set password") : U.signin
2231
2419
  }),
2232
- /* @__PURE__ */ h("div", {
2420
+ /* @__PURE__ */ p("div", {
2233
2421
  className: "account-modes",
2234
2422
  children: [
2235
- /* @__PURE__ */ m("button", {
2423
+ /* @__PURE__ */ f("button", {
2236
2424
  type: "button",
2237
2425
  className: "textbtn",
2238
- onClick: () => M("login"),
2239
- children: v(l, "Sign in")
2426
+ onClick: () => Me("login"),
2427
+ children: _(l, "Sign in")
2240
2428
  }),
2241
- /* @__PURE__ */ m("button", {
2429
+ /* @__PURE__ */ f("button", {
2242
2430
  type: "button",
2243
2431
  className: "textbtn",
2244
- onClick: () => M("signup"),
2245
- children: v(l, "Create account")
2432
+ onClick: () => Me("signup"),
2433
+ children: _(l, "Create account")
2246
2434
  }),
2247
- /* @__PURE__ */ m("button", {
2435
+ /* @__PURE__ */ f("button", {
2248
2436
  type: "button",
2249
2437
  className: "textbtn",
2250
- onClick: () => M("verify"),
2251
- children: v(l, "Verify email")
2438
+ onClick: () => Me("verify"),
2439
+ children: _(l, "Verify email")
2252
2440
  })
2253
2441
  ]
2254
2442
  }),
2255
- typeof A.verificationCompletionUrl == "string" && /* @__PURE__ */ h("p", { children: ["Verification destination: ", A.verificationCompletionUrl] })
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 E({ report: e, path: t, language: n = "en" }) {
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__ */ h("small", {
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
- v(n, r?.origin ?? "unlabelled"),
2456
+ _(n, r?.origin ?? "unlabelled"),
2269
2457
  " · ",
2270
- v(n, r?.origin !== "estimated" && r?.confirmed === !0 ? "reviewed evidence" : "unconfirmed")
2458
+ _(n, r?.origin !== "estimated" && r?.confirmed === !0 ? "reviewed evidence" : "unconfirmed")
2271
2459
  ]
2272
2460
  });
2273
2461
  }
2274
- function _e({ report: e, language: t }) {
2462
+ function Oe({ report: e, language: t }) {
2275
2463
  let n = t;
2276
- return /* @__PURE__ */ h("section", {
2464
+ return /* @__PURE__ */ p("section", {
2277
2465
  className: "paper provenance",
2278
2466
  children: [
2279
- /* @__PURE__ */ m("h3", { children: v(t, "Value provenance & discrepancies") }),
2280
- /* @__PURE__ */ m("p", { children: e?.notice ?? "No provenance report was supplied. Values are unconfirmed; do not treat them as measured or verified." }),
2281
- /* @__PURE__ */ m("h4", { children: v(t, "Discrepancy report") }),
2282
- e ? e.discrepancies.length ? e.discrepancies.map((e) => /* @__PURE__ */ h("article", { children: [
2283
- /* @__PURE__ */ h("strong", { children: [
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__ */ m("p", { children: e.message }),
2289
- e.appliedFix && /* @__PURE__ */ h("p", { children: ["Applied fix: ", e.appliedFix] }),
2290
- e.question && /* @__PURE__ */ h("p", { children: ["Measurement needed: ", e.question] }),
2291
- e.ruleId && /* @__PURE__ */ m("code", { children: e.ruleId })
2292
- ] }, e.id)) : /* @__PURE__ */ m("p", { children: v(n, "No discrepancies reported by the engine.") }) : /* @__PURE__ */ m("p", { children: v(n, "Discrepancy report unavailable.") }),
2293
- /* @__PURE__ */ h("details", { children: [/* @__PURE__ */ m("summary", { children: v(n, "Every supplied value and its source") }), /* @__PURE__ */ h("table", { children: [/* @__PURE__ */ m("thead", { children: /* @__PURE__ */ h("tr", { children: [
2294
- /* @__PURE__ */ m("th", { children: v(n, "Value") }),
2295
- /* @__PURE__ */ m("th", { children: v(n, "Origin / evidence") }),
2296
- /* @__PURE__ */ m("th", { children: v(n, "Source") })
2297
- ] }) }), /* @__PURE__ */ m("tbody", { children: e?.values.map((t) => /* @__PURE__ */ h("tr", { children: [
2298
- /* @__PURE__ */ h("td", { children: [
2299
- /* @__PURE__ */ m("code", { children: t.path }),
2300
- /* @__PURE__ */ m("br", {}),
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__ */ m("td", { children: /* @__PURE__ */ m(E, {
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__ */ h("td", { children: [t.source, t.inputPaths.length > 0 && /* @__PURE__ */ h("small", { children: ["Inputs: ", t.inputPaths.join(", ")] })] })
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 ve({ input: e, setInput: t, onChange: n, estimatedFields: r, confirmed: i, setConfirmed: a, onGenerate: o, busy: s, onUpload: c, imageUrl: l, geometry: u, language: ee }) {
2316
- let d = ee, f = (e, r) => {
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, te = [
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 _(t) {
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
- f({
2531
+ h({
2344
2532
  ...e,
2345
2533
  footprint: { edges: r }
2346
2534
  });
2347
2535
  }
2348
- return /* @__PURE__ */ h("section", {
2536
+ return /* @__PURE__ */ p("section", {
2349
2537
  className: "measure-layout",
2350
- children: [/* @__PURE__ */ h("article", {
2538
+ children: [/* @__PURE__ */ p("article", {
2351
2539
  className: "paper form-card",
2352
2540
  children: [
2353
- /* @__PURE__ */ m("h2", { children: v(d, "Measured footprint") }),
2354
- /* @__PURE__ */ m("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." }),
2355
- /* @__PURE__ */ m("div", {
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__ */ h("div", {
2545
+ children: e.footprint.edges.map((t, n) => /* @__PURE__ */ p("div", {
2358
2546
  className: "edge-row",
2359
2547
  children: [
2360
- /* @__PURE__ */ h("strong", { children: [
2548
+ /* @__PURE__ */ p("strong", { children: [
2361
2549
  t.id,
2362
2550
  " ",
2363
- /* @__PURE__ */ h("small", { children: [
2551
+ /* @__PURE__ */ p("small", { children: [
2364
2552
  t.startVertexId,
2365
2553
  " → ",
2366
2554
  t.endVertexId
2367
2555
  ] })
2368
2556
  ] }),
2369
- /* @__PURE__ */ h("label", { children: [
2370
- v(d, "Length (m)"),
2557
+ /* @__PURE__ */ p("label", { children: [
2558
+ _(m, "Length (m)"),
2371
2559
  " ",
2372
- /* @__PURE__ */ h("small", { children: [
2373
- v(d, r.includes(`footprint.edges[${n}].lengthM`) ? "estimated" : "user-given"),
2560
+ /* @__PURE__ */ p("small", { children: [
2561
+ _(m, r.includes(`footprint.edges[${n}].lengthM`) ? "estimated" : "user-given"),
2374
2562
  " · ",
2375
- v(d, "unconfirmed")
2563
+ _(m, "unconfirmed")
2376
2564
  ] }),
2377
- /* @__PURE__ */ m("input", {
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) => f({
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__ */ h("label", { children: [
2396
- v(d, "Bearing (°)"),
2583
+ /* @__PURE__ */ p("label", { children: [
2584
+ _(m, "Bearing (°)"),
2397
2585
  " ",
2398
- /* @__PURE__ */ h("small", { children: [
2399
- v(d, r.includes(`footprint.edges[${n}].bearingDegrees`) ? "estimated" : "user-given"),
2586
+ /* @__PURE__ */ p("small", { children: [
2587
+ _(m, r.includes(`footprint.edges[${n}].bearingDegrees`) ? "estimated" : "user-given"),
2400
2588
  " · ",
2401
- v(d, "unconfirmed")
2589
+ _(m, "unconfirmed")
2402
2590
  ] }),
2403
- /* @__PURE__ */ m("input", {
2591
+ /* @__PURE__ */ f("input", {
2404
2592
  "aria-label": `${t.id} bearing`,
2405
2593
  type: "number",
2406
2594
  step: "0.01",
2407
- placeholder: v(d, "Unknown"),
2595
+ placeholder: _(m, "Unknown"),
2408
2596
  value: t.bearingDegrees ?? "",
2409
- onChange: (t) => f({
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__ */ h("label", { children: [v(d, "Wall"), /* @__PURE__ */ h("select", {
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) => f({
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__ */ m("option", {
2622
+ children: [/* @__PURE__ */ f("option", {
2435
2623
  value: "exterior",
2436
- children: v(d, "Exterior")
2437
- }), /* @__PURE__ */ m("option", {
2624
+ children: _(m, "Exterior")
2625
+ }), /* @__PURE__ */ f("option", {
2438
2626
  value: "party",
2439
- children: v(d, "Party · no openings")
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__ */ h("div", {
2633
+ g?.source.startsWith("User-entered") && /* @__PURE__ */ p("div", {
2446
2634
  className: "actions",
2447
- children: [/* @__PURE__ */ m("button", {
2635
+ children: [/* @__PURE__ */ f("button", {
2448
2636
  className: "outline",
2449
2637
  disabled: e.footprint.edges.length >= 64,
2450
- onClick: () => _(!0),
2451
- children: v(d, "Add wall")
2452
- }), /* @__PURE__ */ m("button", {
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: () => _(!1),
2456
- children: v(d, "Remove last wall")
2643
+ onClick: () => y(!1),
2644
+ children: _(m, "Remove last wall")
2457
2645
  })]
2458
2646
  }),
2459
- u?.suggestedDiagonal && /* @__PURE__ */ h("label", {
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__ */ m("small", { children: u.suggestedDiagonal.reason }),
2468
- /* @__PURE__ */ m("input", {
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) => f({
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__ */ h("details", {
2675
+ /* @__PURE__ */ p("details", {
2488
2676
  open: !!g,
2489
- children: [/* @__PURE__ */ m("summary", { children: v(d, "Room programme") }), g ? /* @__PURE__ */ h(p, { children: [
2490
- /* @__PURE__ */ m("p", { children: v(d, "Requested dimensions. Every value is checked by the shared engine.") }),
2491
- /* @__PURE__ */ m("div", {
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: te.map(([t, n]) => /* @__PURE__ */ h("label", {
2681
+ children: v.map(([t, n]) => /* @__PURE__ */ p("label", {
2494
2682
  className: "field",
2495
2683
  children: [
2496
- v(d, n),
2684
+ _(m, n),
2497
2685
  " (m)",
2498
- /* @__PURE__ */ h("small", { children: [
2499
- v(d, "user-given"),
2686
+ /* @__PURE__ */ p("small", { children: [
2687
+ _(m, "user-given"),
2500
2688
  " · ",
2501
- v(d, "unconfirmed")
2689
+ _(m, "unconfirmed")
2502
2690
  ] }),
2503
- /* @__PURE__ */ m("input", {
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) => f({
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__ */ h("label", {
2707
+ ["entranceEdgeId", "balconyEdgeId"].map((t) => /* @__PURE__ */ p("label", {
2520
2708
  className: "field",
2521
- children: [v(d, t === "entranceEdgeId" ? "Entrance wall" : "Balcony wall"), /* @__PURE__ */ h("select", {
2709
+ children: [_(m, t === "entranceEdgeId" ? "Entrance wall" : "Balcony wall"), /* @__PURE__ */ p("select", {
2522
2710
  value: g[t],
2523
- onChange: (n) => f({
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__ */ m("option", {
2718
+ children: [/* @__PURE__ */ f("option", {
2531
2719
  value: "",
2532
- children: v(d, "Choose a wall")
2533
- }), e.footprint.edges.map((e) => /* @__PURE__ */ m("option", { children: e.id }, e.id))]
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__ */ h("p", { children: ["This example uses engine concept programme assumptions. They remain estimated until replaced with your own dimensions. ", /* @__PURE__ */ m("button", {
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: () => f({
2726
+ onClick: () => h({
2539
2727
  ...e,
2540
- programme: ue(e.language).programme
2728
+ programme: ye(e.language).programme
2541
2729
  }),
2542
2730
  children: "Enter my own room dimensions"
2543
2731
  })] })]
2544
2732
  }),
2545
- /* @__PURE__ */ h("label", {
2733
+ /* @__PURE__ */ p("label", {
2546
2734
  className: "field",
2547
- children: [v(d, "Main view wall"), /* @__PURE__ */ h("select", {
2735
+ children: [_(m, "Main view wall"), /* @__PURE__ */ p("select", {
2548
2736
  value: e.viewEdgeId,
2549
- onChange: (t) => f({
2737
+ onChange: (t) => h({
2550
2738
  ...e,
2551
2739
  viewEdgeId: t.target.value
2552
2740
  }),
2553
- children: [/* @__PURE__ */ m("option", {
2741
+ children: [/* @__PURE__ */ f("option", {
2554
2742
  value: "",
2555
- children: v(d, "No preference")
2556
- }), e.footprint.edges.map((e) => /* @__PURE__ */ m("option", { children: e.id }, e.id))]
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__ */ h("label", {
2747
+ /* @__PURE__ */ p("label", {
2560
2748
  className: "field",
2561
2749
  children: [
2562
- v(d, "Clear ceiling height (m)"),
2563
- /* @__PURE__ */ m("small", { children: e.buildUps?.clearCeilingHeightM == null ? "estimated default · unconfirmed" : "user-given · unconfirmed" }),
2564
- /* @__PURE__ */ m("input", {
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) => f({
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__ */ m("p", { children: "Other wall/slab build-ups remain labelled concept placeholders from the shared engine." }),
2580
- /* @__PURE__ */ h("label", {
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: [v(d, "Country"), /* @__PURE__ */ h("select", {
2770
+ children: [_(m, "Country"), /* @__PURE__ */ p("select", {
2583
2771
  value: e.country,
2584
- onChange: (t) => f({
2772
+ onChange: (t) => h({
2585
2773
  ...e,
2586
2774
  country: t.target.value
2587
2775
  }),
2588
2776
  children: [
2589
- /* @__PURE__ */ m("option", { children: "unspecified" }),
2590
- /* @__PURE__ */ m("option", { children: "Lebanon" }),
2591
- /* @__PURE__ */ m("option", { children: "Germany" })
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__ */ h("label", {
2783
+ /* @__PURE__ */ p("label", {
2596
2784
  className: "confirmation",
2597
- children: [/* @__PURE__ */ m("input", {
2785
+ children: [/* @__PURE__ */ f("input", {
2598
2786
  type: "checkbox",
2599
2787
  checked: i,
2600
2788
  onChange: (e) => a(e.target.checked)
2601
- }), v(d, "I confirm these measured dimensions and angle assumptions.")]
2789
+ }), _(m, "I confirm these measured dimensions and angle assumptions.")]
2602
2790
  }),
2603
- /* @__PURE__ */ m("button", {
2791
+ /* @__PURE__ */ f("button", {
2604
2792
  className: "ink full",
2605
2793
  disabled: s || !i,
2606
2794
  onClick: o,
2607
- children: v(d, "Check footprint & generate")
2795
+ children: _(m, "Check footprint & generate")
2608
2796
  }),
2609
- /* @__PURE__ */ m("button", {
2797
+ /* @__PURE__ */ f("button", {
2610
2798
  className: "outline full",
2611
2799
  onClick: c,
2612
- children: v(d, "Attach sketch")
2800
+ children: _(m, "Attach sketch")
2613
2801
  })
2614
2802
  ]
2615
- }), /* @__PURE__ */ m("aside", {
2803
+ }), /* @__PURE__ */ f("aside", {
2616
2804
  className: "paper measure-sketch",
2617
- children: l ? /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ m("img", {
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__ */ m("p", { children: v(d, "Local image preview. No dimensions are inferred from this display.") })] }) : /* @__PURE__ */ h("div", {
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__ */ m("h3", { children: v(d, "Your measurements define the plan.") }),
2625
- /* @__PURE__ */ m("p", { children: v(d, "Attach your sketch for reference. There is no sample footprint hidden behind this form.") }),
2626
- /* @__PURE__ */ m("button", {
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: v(d, "Choose sketch image")
2817
+ children: _(m, "Choose sketch image")
2630
2818
  })
2631
2819
  ]
2632
2820
  })
2633
2821
  })]
2634
2822
  });
2635
2823
  }
2636
- function ye({ candidate: e }) {
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__ */ h("figure", {
2850
+ return /* @__PURE__ */ p("figure", {
2663
2851
  className: "recognized-outline",
2664
- children: [/* @__PURE__ */ h("svg", {
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__ */ m("polygon", {
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__ */ h("g", { children: [
2676
- /* @__PURE__ */ m("circle", {
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__ */ m("text", {
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__ */ h("text", {
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__ */ h("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."] })]
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, b as BIM_PACKAGE_VERSION, w as BimStudio, ie as checkBimLicense, s as clearLicense, c as disableTelemetry, u as enableTelemetry, d as setLicense };
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 };