@polycyphers/bim 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EULA.md +120 -0
- package/LICENSE.md +3 -0
- package/README.md +50 -2
- package/THIRD-PARTY-NOTICES.md +7 -0
- package/dist/BimStudio.d.ts +10 -0
- package/dist/i18n.d.ts +63 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +2704 -0
- package/dist/licensing.d.ts +8 -0
- package/dist/packageVersion.d.ts +1 -0
- package/dist/studioState.d.ts +19 -0
- package/dist/style.css +2 -0
- package/dist/types.d.ts +175 -0
- package/dist/workflowText.d.ts +2 -0
- package/package.json +64 -4
- package/src/fonts/OFL.txt +93 -0
- package/third-party/DOMPurify-LICENSE.txt +202 -0
package/EULA.md
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
# Polycyphers Commercial Software License Agreement
|
|
2
|
+
|
|
3
|
+
**Version 1.0 — effective 2026-04-25**
|
|
4
|
+
|
|
5
|
+
This End User License Agreement ("**EULA**") is a binding legal contract between you (either an individual or the entity you represent — "**Licensee**") and **Polycyphers / Karam Entreprises SARL** ("**Licensor**", "we", "us") governing your use of the software packages listed in [Schedule A](#schedule-a--covered-software) (the "**Software**").
|
|
6
|
+
|
|
7
|
+
By installing, loading, embedding, importing, or running the Software — including in development, test, staging, or production — Licensee agrees to be bound by this EULA. If Licensee does not agree, Licensee must not use the Software and must delete all copies in its possession.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## 1. Grant of License
|
|
12
|
+
|
|
13
|
+
Subject to (a) Licensee's full and ongoing payment of all applicable fees and (b) Licensee's full compliance with this EULA, Licensor grants Licensee a **non-exclusive, non-transferable, non-sublicensable, revocable** license to use the Software solely as follows:
|
|
14
|
+
|
|
15
|
+
- **1.1 Tier-bound usage.** Each license token issued to Licensee specifies a tier (for example, `pro`, `team`, `enterprise`, `internal`, `oss`, or `trial`), a list of covered packages, a domain allowlist, a version specification, and an expiry date. Licensee may use the Software only within the bounds of its issued token.
|
|
16
|
+
- **1.2 Internal business purpose.** Licensee may incorporate the Software into Licensee's own applications and provide those applications to Licensee's end users, provided the end users do not gain independent rights to the Software itself.
|
|
17
|
+
- **1.3 Development and back-up copies.** Licensee may make a reasonable number of copies of the Software solely for development, testing, and disaster-recovery purposes within Licensee's organization.
|
|
18
|
+
|
|
19
|
+
No rights are granted by implication, estoppel, or otherwise.
|
|
20
|
+
|
|
21
|
+
## 2. Restrictions
|
|
22
|
+
|
|
23
|
+
Licensee shall not, and shall not permit any third party to:
|
|
24
|
+
|
|
25
|
+
- **2.1** distribute, sublicense, lease, rent, sell, or otherwise transfer the Software to any third party, except as part of a Licensee application that uses the Software internally;
|
|
26
|
+
- **2.2** publish the Software or any portion of it to any public or shared package registry, repository, CDN, mirror, or file-share;
|
|
27
|
+
- **2.3** remove, suppress, modify, or interfere with any copyright notice, trademark, license-key validation, watermark, telemetry, or attribution mechanism in the Software;
|
|
28
|
+
- **2.4** decompile, reverse-engineer, disassemble, decrypt, or otherwise attempt to derive the source code, signing keys, or internal logic of any compiled portion of the Software, except to the limited extent that such activity is expressly permitted by applicable law notwithstanding this restriction;
|
|
29
|
+
- **2.5** modify, patch, hot-swap, monkey-patch, override, or replace any function, module, or runtime check of the Software for the purpose of bypassing, disabling, or circumventing license validation, watermarking, telemetry, expiration, or domain-binding;
|
|
30
|
+
- **2.6** use, run, or deploy the Software on any host or domain not covered by Licensee's license token, including but not limited to: re-aliasing production hostnames to `localhost`, `*.local`, `*.test`, or any other reserved development hostname; using `/etc/hosts`, DNS rebinding, reverse proxies, or browser extensions to make the Software believe it is running in a development environment;
|
|
31
|
+
- **2.7** use the Software in violation of any applicable law, regulation, or third-party right;
|
|
32
|
+
- **2.8** use the Software in life-critical, life-support, nuclear, aviation-control, weapons, or similar high-risk applications.
|
|
33
|
+
|
|
34
|
+
## 3. Anti-Circumvention (DMCA §1201 / EU Directive 2001/29/EC Art. 6)
|
|
35
|
+
|
|
36
|
+
The Software contains technological protection measures within the meaning of:
|
|
37
|
+
|
|
38
|
+
- **§1201 of the U.S. Digital Millennium Copyright Act** (17 U.S.C. § 1201);
|
|
39
|
+
- **Article 6 of EU Directive 2001/29/EC** ("InfoSoc Directive") and its national implementations;
|
|
40
|
+
- **§95a of the German Urheberrechtsgesetz (UrhG)**;
|
|
41
|
+
- **L. 331-5 of the French Code de la propriété intellectuelle**;
|
|
42
|
+
- **Article 1349 of the Moroccan Code des obligations et contrats** and Law No. 2-00 on copyright and neighbouring rights, as amended;
|
|
43
|
+
- and any equivalent or successor provisions in any jurisdiction in which Licensee uses the Software.
|
|
44
|
+
|
|
45
|
+
These measures include but are not limited to: Ed25519 signature verification, license-token claim enforcement (`pkg`, `ver`, `dom`, `exp`, `jti`), the revocation list fetcher, the watermark renderer and its `MutationObserver` re-injection, and the integrity-self-check guard.
|
|
46
|
+
|
|
47
|
+
Licensee acknowledges and agrees that:
|
|
48
|
+
|
|
49
|
+
- **3.1** any act of circumventing, attempting to circumvent, or providing tools or instructions for circumventing these measures is a **violation of this EULA and constitutes a separate, independently actionable violation of applicable anti-circumvention law**;
|
|
50
|
+
- **3.2** Licensor is entitled to seek **statutory damages, injunctive relief, attorneys' fees, and (where available) criminal referral** in addition to any contractual remedies;
|
|
51
|
+
- **3.3** under U.S. law, statutory damages of up to **$2,500 per act** of circumvention (and up to $25,000 per act for willful, repeated violations) may apply pursuant to 17 U.S.C. § 1203(c)(3)(A);
|
|
52
|
+
- **3.4** publishing, distributing, or hosting a forked, patched, modified, or "cracked" version of the Software is itself an act of circumvention under § 1201(b) and equivalents.
|
|
53
|
+
|
|
54
|
+
## 4. Telemetry, Revocation, and License Validation
|
|
55
|
+
|
|
56
|
+
- **4.1 Validation.** The Software performs offline validation of Licensee's token using Ed25519 signatures and the package-bound public key.
|
|
57
|
+
- **4.2 Revocation.** The Software periodically retrieves a signed revocation list from `https://licenseapi.polycyphers.com/api/license/revoked.json`. If Licensee's token's `jti` appears on the list currently used by the Software, the Software shall transition to an unlicensed state. Cached lists up to seven (7) days old are used while a background refresh runs. The first `setLicense()` call starts an initial list request; the next non-local license check waits for that request to settle. Later `setLicense()` calls refresh in the background and do not replace the first awaited request. If the request fails, a cached list no older than seven (7) days is still applied; with no cache or an older cache, the token is treated as not revoked until a fresh list is available. The initial request has no client-side timeout, so an unresponsive endpoint can delay the first license result. A network outage can delay recognition of a newly revoked token.
|
|
58
|
+
- **4.3 Limited telemetry.** Unless Licensee opts out by calling `disableTelemetry()` before `setLicense()`, the Software may attempt a usage beacon after license status is resolved. When `sessionStorage` is available, it deduplicates beacons per browser tab and package; otherwise that per-tab deduplication is not retained. The beacon contains the page hostname, package name and version, license `jti` when available (otherwise `null`), validation status, and a randomly generated session identifier. The client does not send end-user profile data or page content through this beacon; the receiving service also receives ordinary connection metadata, such as the source network address. Beacons are skipped for localhost/loopback hosts (`127.0.0.1`, `::1`, `0.0.0.0`), `.localhost`/`.local`/`.test` hostnames, and common private IPv4 ranges (`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`); other private IPv6 addresses are not specially detected. Errors are ignored and do not prevent the Software from operating.
|
|
59
|
+
- **4.4 No backdoor disablement.** Licensor will not remotely disable a properly-licensed installation. Revocation is reserved for cases of confirmed payment default, fraud, or material EULA breach.
|
|
60
|
+
|
|
61
|
+
## 5. Fees, Payment, and Renewal
|
|
62
|
+
|
|
63
|
+
- **5.1** Fees are as set out in the order form, invoice, or online checkout corresponding to Licensee's purchase.
|
|
64
|
+
- **5.2** Licenses are issued for a fixed term as set out in the issued token's `exp` claim. Renewal is at Licensor's then-current rates.
|
|
65
|
+
- **5.3** Late payments accrue interest at 1.5% per month (or the maximum permitted by law, whichever is lower) plus reasonable collection costs.
|
|
66
|
+
|
|
67
|
+
## 6. Term and Termination
|
|
68
|
+
|
|
69
|
+
- **6.1** This EULA takes effect on the earlier of (a) Licensee's purchase or (b) Licensee's first use of the Software, and continues until terminated.
|
|
70
|
+
- **6.2** Licensor may terminate this EULA immediately upon written notice if Licensee materially breaches any provision and fails to cure within ten (10) days, or immediately and without notice for any breach of Sections 2 or 3.
|
|
71
|
+
- **6.3** Upon termination, Licensee shall (a) immediately cease all use of the Software, (b) destroy all copies in its possession, and (c) certify destruction in writing on Licensor's request. Sections 2, 3, 7, 8, 9, and 11 survive termination.
|
|
72
|
+
|
|
73
|
+
## 7. Intellectual Property
|
|
74
|
+
|
|
75
|
+
The Software and all intellectual property rights therein are and shall remain the exclusive property of Licensor. This EULA is a license, not a sale. No source code is licensed to Licensee under this EULA, except as expressly delivered in source form.
|
|
76
|
+
|
|
77
|
+
## 8. Disclaimer of Warranties
|
|
78
|
+
|
|
79
|
+
THE SOFTWARE IS PROVIDED **"AS IS"** AND **"AS AVAILABLE"**. LICENSOR DISCLAIMS ALL WARRANTIES, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING WITHOUT LIMITATION ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, ACCURACY, OR UNINTERRUPTED OPERATION. LICENSEE BEARS THE ENTIRE RISK OF USE OF THE SOFTWARE.
|
|
80
|
+
|
|
81
|
+
## 9. Limitation of Liability
|
|
82
|
+
|
|
83
|
+
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, LICENSOR'S TOTAL CUMULATIVE LIABILITY UNDER OR RELATING TO THIS EULA SHALL NOT EXCEED THE AGGREGATE FEES PAID BY LICENSEE TO LICENSOR IN THE TWELVE (12) MONTHS PRECEDING THE CLAIM. IN NO EVENT SHALL LICENSOR BE LIABLE FOR INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, EXEMPLARY, OR PUNITIVE DAMAGES, OR FOR LOST PROFITS, REVENUE, GOODWILL, OR DATA, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
|
84
|
+
|
|
85
|
+
## 10. Indemnification
|
|
86
|
+
|
|
87
|
+
Licensee shall defend, indemnify, and hold harmless Licensor from and against any third-party claim arising out of (a) Licensee's use of the Software in violation of this EULA, (b) Licensee's applications that incorporate the Software, or (c) any data, content, or system Licensee provides to or through the Software.
|
|
88
|
+
|
|
89
|
+
## 11. Governing Law and Disputes
|
|
90
|
+
|
|
91
|
+
This EULA is governed by the laws of **the Kingdom of Morocco**, without regard to its conflict-of-laws rules. The competent courts of **Casablanca, Morocco** shall have exclusive jurisdiction over any dispute arising out of or relating to this EULA, except that Licensor may seek injunctive or equitable relief in any court of competent jurisdiction worldwide. The U.N. Convention on Contracts for the International Sale of Goods does not apply.
|
|
92
|
+
|
|
93
|
+
## 12. Miscellaneous
|
|
94
|
+
|
|
95
|
+
- **12.1 Notices.** Notices to Licensor shall be sent to `licensing@karamentreprises.com` and `support@polycyphers.com`.
|
|
96
|
+
- **12.2 Assignment.** Licensee may not assign this EULA without Licensor's prior written consent. Licensor may assign this EULA freely.
|
|
97
|
+
- **12.3 Severability.** If any provision is held unenforceable, the remainder shall remain in full force.
|
|
98
|
+
- **12.4 Entire agreement.** This EULA, together with Licensee's order form and any Schedule, constitutes the entire agreement and supersedes all prior or contemporaneous agreements, oral or written.
|
|
99
|
+
- **12.5 Modifications.** Licensor may update this EULA. The version in effect at the time the license token was issued (matching the `iat` claim) governs that token. Renewals are subject to the then-current EULA.
|
|
100
|
+
- **12.6 Open-source components.** The Software may include open-source components governed by their own licenses. Those component licenses apply to those components; this package repository does not include a standalone `THIRD_PARTY_NOTICES.md`.
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Schedule A — Covered Software
|
|
105
|
+
|
|
106
|
+
This EULA covers all current and future versions of:
|
|
107
|
+
|
|
108
|
+
- `@polycyphers/bim`
|
|
109
|
+
- `@polycyphers/spreadsheet`
|
|
110
|
+
- `@polycyphers/spreadsheet-angular`
|
|
111
|
+
- `@polycyphers/ai-chat`
|
|
112
|
+
- any package later designated by Licensor as commercial Software in its package metadata.
|
|
113
|
+
|
|
114
|
+
The free, MIT-licensed companion packages — `@polycyphers/license`, `@polycyphers/tsconfig`, `@polycyphers/vite-config` — are governed by their respective MIT licenses and are **not** subject to this EULA.
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
**Polycyphers / Karam Entreprises SARL**
|
|
119
|
+
licensing@karamentreprises.com · support@polycyphers.com
|
|
120
|
+
https://packages.polycyphers.com/legal/eula
|
package/LICENSE.md
ADDED
package/README.md
CHANGED
|
@@ -1,3 +1,51 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @polycyphers/bim
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Commercial React sketch-to-layout and BIM studio. One browser UI calls the canonical server engine; no architectural catalogue, geometry solver, exporter, provider key or machine credential ships in this npm package.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm install @polycyphers/bim react react-dom
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import {BimStudio, setLicense} from '@polycyphers/bim';
|
|
11
|
+
import '@polycyphers/bim/style.css';
|
|
12
|
+
setLicense(import.meta.env.VITE_BIM_UI_LICENSE); // browser-safe signed UI token only
|
|
13
|
+
// Route this transport through your authenticated server proxy, never a machine secret.
|
|
14
|
+
<BimStudio embedded workspaceKey={verifiedScope} transport={authenticatedHostTransport}/>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
UI installation tokens are issued under catalog `bim-ui`, signed claim `pkg:["bim"]`, version `0.1.x`, and the licensed hostnames. Server licenses are issued separately under `bim` with `pkg:["Polycyphers.Bim"]`. A browser token grants no server compute, AI budget, tenant access or paid project rights. Never expose server license secrets, HMAC credentials, Stripe or Anthropic keys through Vite environment variables.
|
|
18
|
+
|
|
19
|
+
The actual shared `@polycyphers/license` runtime verifies Ed25519 tokens, package/version/domain/expiry and its cached revocation list. This package uses the same active visible-watermark policy as the spreadsheet component; invalid licenses do not imply a secure browser enforcement boundary. The server independently fails closed. Cached browser expiry is additionally checked every thirty seconds. Revocation cache/network behavior is inherited from the runtime; it is not equivalent to the server's fresh signed revocation gate. Optional license telemetry is disabled by this package by default; opt-in uses the existing runtime API independently from service funnel consent.
|
|
20
|
+
|
|
21
|
+
For KEHBIMVISION use `brand="karamentreprises"`. The same package renders the Karamentreprises wordmark and the existing Karament license presentation, without changing security identities or forking engine logic. The npm name remains an implementation detail. A commercial component license and existing per-user AI allowances are separate.
|
|
22
|
+
|
|
23
|
+
Distribution proof: `npm pack` builds ESM/CJS, declarations, scoped CSS, font license, README and commercial EULA. No application databases, server code, book scans/tables, credentials or test signing keys belong in the tarball. Publication and commercial legal review are separate release steps.
|
|
24
|
+
|
|
25
|
+
## Shared studio integration
|
|
26
|
+
|
|
27
|
+
One React component is mounted in the public service and both original apps. `BimStudio` accepts `embedded`, an authenticated host `transport`, `workspaceKey` and optional `initialInput`. Host pages derive the workspace key from their already verified user and physical tender/project; the backend rechecks scope on every request.
|
|
28
|
+
|
|
29
|
+
Only an opaque project UUID is saved in localStorage under that scoped key. JWTs, account credentials, verification tokens, sketch bytes, programme inputs and model data are never persisted by this component. Public authentication obtains its key from authenticated `/v1/session`; JWTs remain in component memory. A refresh requires signing in again before a public project can resume. Verification uses `/verify-email`, strips its token from the address bar, and waits for explicit submission. The canonical email service must configure its fixed HTTPS verification destination; a browser cannot select a return URL.
|
|
30
|
+
|
|
31
|
+
New projects can start with an image preview or blank manual measurements. The image stays local until permission/processing acknowledgements and an explicit scan request. A server-owned draft can hold the scanned image before measurements exist; it has no area or proposals. Explicit AI reading returns unconfirmed observations for manual review. Only reviewed inputs and deterministic geometry checks transition the draft to real proposals. Unknown bearings remain unknown; geometry is reconciled by the API. No reference geometry, sample dimensions or AI proposal is inserted into a manual draft. Optional concept build-ups remain estimated defaults unless explicitly supplied. The reference illustration is original artwork from the supplied test geometry, not a satellite image or a reproduced book figure.
|
|
32
|
+
|
|
33
|
+
AI edits return an unsaved, recomputed preview. Apply sends its typed edit and expected saved version through the ordinary versioned endpoint; discard sends no commit. An estimated value is always shown as unconfirmed. Every supplied result exposes its provenance and discrepancy report, including fixes and requested measurements; missing provenance is labelled rather than guessed. Deletion UI distinguishes accepted/pending erasure from the service's positive data-erased receipt.
|
|
34
|
+
|
|
35
|
+
Prices and free allowances come from configuration, including legitimate zero values. Currency minor-unit conversion follows the currency's Intl exponent instead of assuming two decimals. Core workflow labels support EN/DE/FR/AR and the shared Arabic container uses RTL.
|
|
36
|
+
|
|
37
|
+
Build: `npm run build`. Source-repository workflow checks: `node --experimental-strip-types --test tests/state.test.mjs`. The BauLynq host's `SketchStudio.shared.test.tsx` exercises real rendering, host-only401 handling, scoped resume, explicit preview/apply, signup, verification URL scrubbing, provenance and pending deletion. Vite hosts deduplicate React/ReactDOM when using local file dependencies.
|
|
38
|
+
|
|
39
|
+
Image uploads require explicit permission and AI-processing acknowledgements. Selecting an image remains local. Upload requests send both acknowledgement flags to the secure server scanner; reading a stored sketch with Claude is a separate explicit action. EU storage is disclosed separately from provider inference region/DPA configuration.
|
|
40
|
+
|
|
41
|
+
Phase-1 2D drawings call `/drawings` and have their own bundle, separate from `/exports` for the BIM model; preparing PDF/editable DXF/SVG does not request a BIM export. PDF appears only if server rendering is configured. Public purchases first obtain and display the account's immutable project quote, then submit that quote id to checkout; an anonymous base price is not represented as a personal experiment price. A Stripe return is never treated as proof of payment.
|
|
42
|
+
|
|
43
|
+
Optional public analytics remain off unless the server enables them and the user explicitly checks consent. The browser sends only typed visit/paywall observations and a random event id; withdrawal sends `consentGranted:false` for server-side client observation deletion. Local file selection is not an uploaded-file event. Built-in studio mounts never send public funnel observations.
|
|
44
|
+
|
|
45
|
+
Recognized outline candidates remain separate from saved projects. The explicit preview button copies only validated candidate fields into a local review form, keeps AI values visibly estimated, and never commits/generates by itself. Missing or inconsistent graph/measurement evidence retains manual entry and a discrepancy report. The service source documents the candidate contract and its limits separately.
|
|
46
|
+
|
|
47
|
+
Owner-only `/artifacts` metadata restores successful saved uploads/drawing/model files after a verified project resume. Downloading those objects uses the existing read endpoint, not another generation/export action, so a refresh does not ask for another BIM export credit. Only the scoped project UUID remains in localStorage; artifact metadata is fetched in memory.
|
|
48
|
+
|
|
49
|
+
Public session changes clear prior private workspace state; epoch checks reject late requests/JSON from an old session. A first anonymous manual draft survives initial login. Consented analytics authenticates with the current in-memory bearer without putting identity in its typed payload. Account project-content deletion is distinct from account/billing deletion and reports pending work explicitly. Checkout uses the control API's canonical availability flag and displays numeric paid usage caps before enabling Stripe.
|
|
50
|
+
|
|
51
|
+
Brand and telemetry configuration use the existing license runtime singleton: one host should choose one brand. Karamentreprises sets its Karament override; BauLynq resets to hostname detection. Optional telemetry disablement applies to other components sharing that runtime too. Its per-context result cache can delay recognition of mid-session revocation even when polled; this package makes no stronger browser-revocation guarantee. Server revocation, user quotas and paid entitlements remain authoritative.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# Browser distribution notices
|
|
2
|
+
|
|
3
|
+
DOMPurify3.4.17 is an external dependency under MPL2.0 OR Apache2.0. This distribution elects Apache2.0; its upstream license text is included at third-party/DOMPurify-LICENSE.txt. DOMPurify copyright is held by its contributors as identified there. No DOMPurify source is modified.
|
|
4
|
+
|
|
5
|
+
Geist and Geist Mono font assets are embedded in the stylesheet under SIL OFL1.1. See src/fonts/OFL.txt for the full copyright and permission notice.
|
|
6
|
+
|
|
7
|
+
React, React DOM and @polycyphers/license are external dependencies retaining their upstream MIT terms and notices. Their packages are installed separately. This commercial license does not replace any dependency license.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ProjectInput } from './types';
|
|
2
|
+
import './style.css';
|
|
3
|
+
export interface StudioProps {
|
|
4
|
+
brand?: 'baulynq' | 'karamentreprises';
|
|
5
|
+
embedded?: boolean;
|
|
6
|
+
transport?: (path: string, init?: RequestInit) => Promise<Response>;
|
|
7
|
+
initialInput?: ProjectInput;
|
|
8
|
+
workspaceKey?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function BimStudio(props?: StudioProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/i18n.d.ts
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { Lang } from './types';
|
|
2
|
+
declare const en: {
|
|
3
|
+
studio: string;
|
|
4
|
+
pricing: string;
|
|
5
|
+
start: string;
|
|
6
|
+
eyebrow: string;
|
|
7
|
+
hero: string;
|
|
8
|
+
intro: string;
|
|
9
|
+
try: string;
|
|
10
|
+
upload: string;
|
|
11
|
+
steps: string[];
|
|
12
|
+
workspace: string;
|
|
13
|
+
example: string;
|
|
14
|
+
measure: string;
|
|
15
|
+
proposals: string;
|
|
16
|
+
refine: string;
|
|
17
|
+
download: string;
|
|
18
|
+
back: string;
|
|
19
|
+
generate: string;
|
|
20
|
+
generating: string;
|
|
21
|
+
area: string;
|
|
22
|
+
net: string;
|
|
23
|
+
perimeter: string;
|
|
24
|
+
recommended: string;
|
|
25
|
+
checks: string;
|
|
26
|
+
schedule: string;
|
|
27
|
+
tradeoffs: string;
|
|
28
|
+
send: string;
|
|
29
|
+
chat: string;
|
|
30
|
+
hint: string;
|
|
31
|
+
save: string;
|
|
32
|
+
undo: string;
|
|
33
|
+
delete: string;
|
|
34
|
+
export: string;
|
|
35
|
+
loading: string;
|
|
36
|
+
select: string;
|
|
37
|
+
warning: string;
|
|
38
|
+
pass: string;
|
|
39
|
+
notes: string;
|
|
40
|
+
confirm: string;
|
|
41
|
+
empty: string;
|
|
42
|
+
emptyBody: string;
|
|
43
|
+
privacy: string;
|
|
44
|
+
disclaimer: string;
|
|
45
|
+
free: string;
|
|
46
|
+
paid: string;
|
|
47
|
+
paidBody: string;
|
|
48
|
+
before: string;
|
|
49
|
+
after: string;
|
|
50
|
+
downloadNote: string;
|
|
51
|
+
language: string;
|
|
52
|
+
status: string;
|
|
53
|
+
width: string;
|
|
54
|
+
depth: string;
|
|
55
|
+
signin: string;
|
|
56
|
+
email: string;
|
|
57
|
+
password: string;
|
|
58
|
+
account: string;
|
|
59
|
+
cancel: string;
|
|
60
|
+
close: string;
|
|
61
|
+
};
|
|
62
|
+
export declare const text: Record<Lang, typeof en>;
|
|
63
|
+
export {};
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));let c=require("react");c=s(c,1);let l=require("dompurify");l=s(l,1);let u=require("@polycyphers/license"),d=require("react/jsx-runtime");var f={studio:`Open studio`,pricing:`Pricing`,start:`Start with your sketch`,eyebrow:`FROM YOUR FIRST IDEA`,hero:`Room for a better idea.`,intro:`Turn a sketch into thoughtful layouts. Explore the possibilities, refine the details, and take your chosen plan into BIM.`,try:`Explore a real example`,upload:`Upload a sketch`,steps:[`Your sketch`,`Measured footprint`,`Layout proposals`,`Your BIM model`],workspace:`Apartment concept`,example:`Reference project · site-confirmed geometry`,measure:`Measurements`,proposals:`Proposals`,refine:`Refine`,download:`Download`,back:`All projects`,generate:`Generate layouts`,generating:`Checking your layout…`,area:`Wall-axis area`,net:`Clear net area`,perimeter:`Perimeter`,recommended:`Recommended`,checks:`Rule checks`,schedule:`Room schedule`,tradeoffs:`The trade-offs`,send:`Preview edit`,chat:`What would you like to change?`,hint:`Try: “Make the bedroom 3.20 wide”`,save:`Apply measurements`,undo:`Undo`,delete:`Delete project data`,export:`Build & download model`,loading:`Loading…`,select:`Choose this layout`,warning:`Needs review`,pass:`Checked`,notes:`Source notes`,confirm:`Confirm the measurements before generating. The engine checks geometry; a sketch is not a survey.`,empty:`A little information. Better possibilities.`,emptyBody:`Upload a sketch for a local preview, then enter and confirm your measured walls and room programme. The engine checks every dimension.`,privacy:`Private project storage · configurable retention`,disclaimer:`Concept proposal, not a construction drawing; verify with a licensed architect/engineer.`,free:`Your configured free allowance is shown below.`,paid:`Project pricing is shown below.`,paidBody:`A project includes its layout proposals, chat refinements and BIM export, within the configured fair-use caps.`,before:`A sketch, with potential.`,after:`A plan, with purpose.`,downloadNote:`IFC4, DWG and DXF use the same checked scene. Revit and BIMcollab Zoom acceptance remains subject to actual viewer testing.`,language:`Language`,status:`Status`,width:`Width`,depth:`Depth`,signin:`Sign in`,email:`Email`,password:`Password`,account:`Account`,cancel:`Cancel`,close:`Close`},p={en:f,de:{...f,studio:`Studio öffnen`,pricing:`Preise`,start:`Mit Ihrer Skizze starten`,eyebrow:`VON DER ERSTEN IDEE`,hero:`Raum für eine bessere Idee.`,intro:`Aus Ihrer Skizze werden durchdachte Grundrisse. Vergleichen, verfeinern und als BIM-Konzept herunterladen.`,try:`Beispiel erkunden`,upload:`Skizze hochladen`,steps:[`Ihre Skizze`,`Gemessener Umriss`,`Grundrissvorschläge`,`Ihr BIM-Modell`],measure:`Maße`,proposals:`Vorschläge`,refine:`Verfeinern`,download:`Herunterladen`,generate:`Grundrisse erstellen`,save:`Maße anwenden`,checks:`Regelprüfung`,schedule:`Raumbuch`,tradeoffs:`Abwägungen`,send:`Änderung prüfen`,chat:`Was möchten Sie ändern?`,recommended:`Empfohlen`,select:`Grundriss wählen`,undo:`Rückgängig`,delete:`Projektdaten löschen`,export:`Modell erstellen und laden`,area:`Wandachsfläche`,net:`Lichte Nettofläche`,perimeter:`Umfang`,signin:`Anmelden`,email:`E-Mail`,password:`Passwort`,cancel:`Abbrechen`,close:`Schließen`},fr:{...f,studio:`Ouvrir le studio`,pricing:`Tarifs`,start:`Commencez par votre croquis`,eyebrow:`DE VOTRE PREMIÈRE IDÉE`,hero:`Place à une meilleure idée.`,intro:`Transformez un croquis en plans réfléchis. Comparez, affinez et emportez votre concept en BIM.`,try:`Explorer un exemple réel`,upload:`Importer un croquis`,steps:[`Votre croquis`,`Contour mesuré`,`Propositions`,`Votre modèle BIM`],measure:`Mesures`,proposals:`Propositions`,refine:`Affiner`,download:`Télécharger`,generate:`Générer les plans`,save:`Appliquer les mesures`,checks:`Règles vérifiées`,schedule:`Tableau des pièces`,tradeoffs:`Les compromis`,send:`Vérifier la modification`,chat:`Que souhaitez-vous modifier ?`,recommended:`Recommandé`,select:`Choisir ce plan`,undo:`Annuler`,delete:`Supprimer les données du projet`,export:`Créer et télécharger le modèle`,area:`Surface aux axes`,net:`Surface nette`,perimeter:`Périmètre`,signin:`Se connecter`,email:`E-mail`,password:`Mot de passe`,cancel:`Annuler`,close:`Fermer`},ar:{...f,studio:`فتح الاستوديو`,pricing:`الأسعار`,start:`ابدأ برسمك`,eyebrow:`من فكرتك الأولى`,hero:`مساحة لفكرة أفضل.`,intro:`حوّل رسمك إلى مخططات مدروسة. قارن الخيارات، حسّن التفاصيل، وحمّل نموذج BIM الذي تختاره.`,try:`استكشف مثالاً حقيقياً`,upload:`ارفع رسماً`,steps:[`رسمك`,`الأبعاد المؤكدة`,`مقترحات التخطيط`,`نموذج BIM`],measure:`الأبعاد`,proposals:`المقترحات`,refine:`تعديل`,download:`تحميل`,generate:`إنشاء المخططات`,save:`تطبيق الأبعاد`,checks:`فحص القواعد`,schedule:`جدول الغرف`,tradeoffs:`المفاضلات`,send:`معاينة التعديل`,chat:`ماذا تريد أن تعدّل؟`,recommended:`موصى به`,select:`اختر هذا المخطط`,undo:`تراجع`,delete:`حذف بيانات المشروع`,export:`إنشاء النموذج وتحميله`,area:`مساحة محاور الجدران`,net:`المساحة الصافية`,perimeter:`المحيط`,signin:`تسجيل الدخول`,email:`البريد الإلكتروني`,password:`كلمة المرور`,cancel:`إلغاء`,close:`إغلاق`}};Object.assign(p.de,{workspace:`Wohnungskonzept`,example:`Referenzprojekt · vor Ort bestätigte Geometrie`,back:`Alle Projekte`,generating:`Grundriss wird geprüft…`,hint:`Zum Beispiel: „Schlafzimmer 3,20 m breit machen“`,loading:`Laden…`,warning:`Prüfung erforderlich`,pass:`Geprüft`,notes:`Quellenhinweise`,confirm:`Maße vor der Erstellung bestätigen. Die Geometrieprüfung ersetzt kein Aufmaß.`,empty:`Wenige Angaben. Bessere Möglichkeiten.`,emptyBody:`Skizze lokal ansehen, dann gemessene Wände und Raumprogramm eingeben und prüfen. Die Engine kontrolliert jede Abmessung.`,privacy:`Privater Projektspeicher · konfigurierbare Aufbewahrung`,disclaimer:`Konzeptvorschlag, keine Ausführungszeichnung; durch zugelassene Architekten oder Ingenieure prüfen lassen.`,free:`Ihr konfiguriertes Freikontingent steht unten.`,paid:`Der Projektpreis steht unten.`,paidBody:`Ein Projekt umfasst Vorschläge, Chat-Änderungen und BIM-Export innerhalb der angezeigten Nutzungslimits.`,before:`Eine Skizze mit Potenzial.`,after:`Ein Plan mit Perspektive.`,downloadNote:`IFC4, DWG und DXF verwenden dieselbe geprüfte Szene. Die Freigabe für Revit und BIMcollab Zoom erfordert tatsächliche Viewer-Tests.`,language:`Sprache`,status:`Status`,width:`Breite`,depth:`Tiefe`,account:`Konto`}),Object.assign(p.fr,{workspace:`Concept d’appartement`,example:`Projet de référence · géométrie confirmée sur site`,back:`Tous les projets`,generating:`Vérification du plan…`,hint:`Exemple : « Donner 3,20 m de largeur à la chambre »`,loading:`Chargement…`,warning:`À vérifier`,pass:`Vérifié`,notes:`Notes sur les sources`,confirm:`Confirmez les dimensions avant de générer. Le contrôle géométrique ne remplace pas un relevé.`,empty:`Quelques informations. De meilleures possibilités.`,emptyBody:`Affichez un aperçu local du croquis, puis saisissez et vérifiez les murs mesurés et le programme. Le moteur contrôle chaque dimension.`,privacy:`Stockage privé · durée de conservation configurable`,disclaimer:`Proposition conceptuelle, non destinée à la construction ; à vérifier avec un architecte ou ingénieur habilité.`,free:`Votre quota gratuit configuré figure ci-dessous.`,paid:`Le tarif du projet figure ci-dessous.`,paidBody:`Un projet comprend les propositions, les modifications par chat et l’export BIM dans les limites affichées.`,before:`Un croquis prometteur.`,after:`Un plan qui prend forme.`,downloadNote:`IFC4, DWG et DXF utilisent la même scène vérifiée. La compatibilité avec Revit et BIMcollab Zoom reste soumise à des essais réels.`,language:`Langue`,status:`État`,width:`Largeur`,depth:`Profondeur`,account:`Compte`}),Object.assign(p.ar,{workspace:`تصوّر شقة`,example:`مشروع مرجعي · هندسة مؤكدة ميدانياً`,back:`كل المشاريع`,generating:`جارٍ فحص المخطط…`,hint:`مثال: «اجعل عرض غرفة النوم 3.20 م»`,loading:`جارٍ التحميل…`,warning:`يحتاج إلى مراجعة`,pass:`تم الفحص`,notes:`ملاحظات المصادر`,confirm:`أكّد الأبعاد قبل الإنشاء. فحص الهندسة لا يحل محل الرفع الميداني.`,empty:`معلومات قليلة. خيارات أفضل.`,emptyBody:`عاين الرسم محلياً، ثم أدخل أبعاد الجدران المقاسة وبرنامج الغرف وراجعها. يفحص المحرك كل بُعد.`,privacy:`تخزين خاص للمشروع · مدة احتفاظ قابلة للضبط`,disclaimer:`مقترح تصوّري وليس مخططاً تنفيذياً؛ يجب مراجعته مع مهندس أو معماري مرخّص.`,free:`تظهر حصتك المجانية المضبوطة أدناه.`,paid:`يظهر سعر المشروع أدناه.`,paidBody:`يشمل المشروع المقترحات وتعديلات المحادثة وتصدير BIM ضمن الحدود المعروضة.`,before:`رسم يحمل إمكانات.`,after:`مخطط واضح الهدف.`,downloadNote:`تستخدم IFC4 وDWG وDXF المشهد المفحوص نفسه. يبقى اعتماد Revit وBIMcollab Zoom رهن اختبار فعلي.`,language:`اللغة`,status:`الحالة`,width:`العرض`,depth:`العمق`,account:`الحساب`});var m={de:{"New project":`Neues Projekt`,"Enter measurements":`Maße eingeben`,"Resume saved project":`Gespeichertes Projekt öffnen`,"Measured footprint":`Gemessener Umriss`,"Length (m)":`Länge (m)`,"Bearing (°)":`Richtung (°)`,Wall:`Wand`,Exterior:`Außenwand`,"Party · no openings":`Brand-/Nachbarwand · keine Öffnungen`,"Add wall":`Wand hinzufügen`,"Remove last wall":`Letzte Wand entfernen`,"Room programme":`Raumprogramm`,"Bedroom width":`Schlafzimmerbreite`,"Bedroom depth":`Schlafzimmertiefe`,"Bathroom width":`Badbreite`,"Bathroom depth":`Badtiefe`,"Hall width":`Flurbreite`,"Wardrobe length":`Schranklänge`,"Balcony depth (0 for none)":`Balkontiefe (0 ohne Balkon)`,"Balcony sliding door width":`Breite der Balkonschiebetür`,"Entrance wall":`Eingangswand`,"Balcony wall":`Balkonwand`,"Choose a wall":`Wand wählen`,"Main view wall":`Wand zur Hauptaussicht`,"No preference":`Keine Präferenz`,"Clear ceiling height (m)":`Lichte Raumhöhe (m)`,Country:`Land`,"Check footprint & generate":`Umriss prüfen und erstellen`,"Attach sketch":`Skizze anhängen`,"Choose sketch image":`Skizzenbild wählen`,"Unsaved edit preview":`Nicht gespeicherte Änderungsvorschau`,"Apply as new version":`Als neue Version übernehmen`,"Discard preview":`Vorschau verwerfen`,"Create a verified account":`Verifiziertes Konto erstellen`,"Verify your email":`E-Mail bestätigen`,"Verification token":`Bestätigungscode`,"Send verification email":`Bestätigungs-E-Mail senden`,"Verify & set password":`Bestätigen und Passwort setzen`,"Create account":`Konto erstellen`,"Verify email":`E-Mail bestätigen`,"Sign in":`Anmelden`,"Value provenance & discrepancies":`Werteherkunft und Abweichungen`,"Discrepancy report":`Abweichungsbericht`},fr:{"New project":`Nouveau projet`,"Enter measurements":`Saisir les mesures`,"Resume saved project":`Reprendre le projet`,"Measured footprint":`Contour mesuré`,"Length (m)":`Longueur (m)`,"Bearing (°)":`Orientation (°)`,Wall:`Mur`,Exterior:`Extérieur`,"Party · no openings":`Mitoyen · sans ouverture`,"Add wall":`Ajouter un mur`,"Remove last wall":`Retirer le dernier mur`,"Room programme":`Programme des pièces`,"Bedroom width":`Largeur de chambre`,"Bedroom depth":`Profondeur de chambre`,"Bathroom width":`Largeur de salle de bains`,"Bathroom depth":`Profondeur de salle de bains`,"Hall width":`Largeur du dégagement`,"Wardrobe length":`Longueur du placard`,"Balcony depth (0 for none)":`Profondeur du balcon (0 sans balcon)`,"Balcony sliding door width":`Largeur de baie coulissante`,"Entrance wall":`Mur de l’entrée`,"Balcony wall":`Mur du balcon`,"Choose a wall":`Choisir un mur`,"Main view wall":`Mur vers la vue principale`,"No preference":`Sans préférence`,"Clear ceiling height (m)":`Hauteur libre (m)`,Country:`Pays`,"Check footprint & generate":`Vérifier le contour et générer`,"Attach sketch":`Joindre le croquis`,"Choose sketch image":`Choisir le croquis`,"Unsaved edit preview":`Aperçu non enregistré`,"Apply as new version":`Appliquer comme nouvelle version`,"Discard preview":`Abandonner l’aperçu`,"Create a verified account":`Créer un compte vérifié`,"Verify your email":`Vérifier votre e-mail`,"Verification token":`Code de vérification`,"Send verification email":`Envoyer l’e-mail de vérification`,"Verify & set password":`Vérifier et définir le mot de passe`,"Create account":`Créer un compte`,"Verify email":`Vérifier l’e-mail`,"Sign in":`Se connecter`,"Value provenance & discrepancies":`Origine des valeurs et écarts`,"Discrepancy report":`Rapport des écarts`},ar:{"New project":`مشروع جديد`,"Enter measurements":`أدخل الأبعاد`,"Resume saved project":`استئناف المشروع المحفوظ`,"Measured footprint":`المحيط المقاس`,"Length (m)":`الطول (م)`,"Bearing (°)":`الاتجاه (°)`,Wall:`الجدار`,Exterior:`خارجي`,"Party · no openings":`مشترك · بلا فتحات`,"Add wall":`إضافة جدار`,"Remove last wall":`حذف آخر جدار`,"Room programme":`برنامج الغرف`,"Bedroom width":`عرض غرفة النوم`,"Bedroom depth":`عمق غرفة النوم`,"Bathroom width":`عرض الحمام`,"Bathroom depth":`عمق الحمام`,"Hall width":`عرض الممر`,"Wardrobe length":`طول الخزانة`,"Balcony depth (0 for none)":`عمق الشرفة (0 بدون شرفة)`,"Balcony sliding door width":`عرض باب الشرفة المنزلق`,"Entrance wall":`جدار المدخل`,"Balcony wall":`جدار الشرفة`,"Choose a wall":`اختر جداراً`,"Main view wall":`جدار الإطلالة الرئيسية`,"No preference":`بلا تفضيل`,"Clear ceiling height (m)":`ارتفاع السقف الصافي (م)`,Country:`البلد`,"Check footprint & generate":`فحص المحيط وإنشاء المقترحات`,"Attach sketch":`إرفاق الرسم`,"Choose sketch image":`اختيار صورة الرسم`,"Unsaved edit preview":`معاينة تعديل غير محفوظ`,"Apply as new version":`تطبيق كإصدار جديد`,"Discard preview":`إلغاء المعاينة`,"Create a verified account":`إنشاء حساب موثّق`,"Verify your email":`تأكيد البريد الإلكتروني`,"Verification token":`رمز التحقق`,"Send verification email":`إرسال رسالة التحقق`,"Verify & set password":`تأكيد وتعيين كلمة المرور`,"Create account":`إنشاء حساب`,"Verify email":`تأكيد البريد`,"Sign in":`تسجيل الدخول`,"Value provenance & discrepancies":`مصادر القيم والفروقات`,"Discrepancy report":`تقرير الفروقات`}};Object.assign(m.de,{"Plan your next space":`Ihren nächsten Raum planen`,"Apartment layout":`Wohnungsgrundriss`,"House extension":`Hausanbau`,Renovation:`Renovierung`,"Account options":`Kontooptionen`,"Account actions":`Kontoaktionen`,"Delete project content":`Projektinhalte löschen`,"Sign out":`Abmelden`,"Before image upload":`Vor dem Bild-Upload`,"I have permission to use this image for this project.":`Ich darf dieses Bild für dieses Projekt verwenden.`,"I understand the AI image-processing disclosure above.":`Ich habe den obigen Hinweis zur KI-Bildverarbeitung verstanden.`,"What would you like to create?":`Was möchten Sie erstellen?`,"Upload for scanning":`Zur Sicherheitsprüfung hochladen`,"Remove local image":`Lokales Bild entfernen`,"What should the sketch reader focus on?":`Worauf soll die Skizzenanalyse achten?`,"Read saved sketch with AI · observations only":`Gespeicherte Skizze mit KI lesen · nur Beobachtungen`,"Recognized outline · estimated":`Erkannter Umriss · geschätzt`,"Preview recognized outline":`Erkannten Umriss ansehen`,"Local estimated preview only. The saved project is unchanged.":`Nur lokale Schätzvorschau. Das gespeicherte Projekt bleibt unverändert.`,"Sketch observations to confirm":`Zu prüfende Skizzenbeobachtungen`,"Required layout checks passed":`Erforderliche Grundrissprüfungen bestanden`,"Reference sources remain visible below.":`Referenzquellen stehen weiterhin unten.`,"Project billing":`Projektabrechnung`,"Continue to Stripe":`Weiter zu Stripe`,"Refresh project quote":`Projektangebot aktualisieren`,"View project price":`Projektpreis ansehen`,"Purchases are not enabled in this environment.":`Käufe sind in dieser Umgebung deaktiviert.`,"2D concept drawings":`2D-Konzeptzeichnungen`,"Prepare PDF / editable DXF / SVG":`PDF / bearbeitbares DXF / SVG vorbereiten`,Room:`Raum`,"Axis m²":`Achsfläche m²`,"Net m²":`Netto m²`,Total:`Summe`,Hide:`Ausblenden`,"Saved project files · download without a new export":`Gespeicherte Projektdateien · ohne neuen Export laden`,"Use saved sketch":`Gespeicherte Skizze verwenden`,"Allow optional visit and paywall analytics":`Optionale Besuchs- und Bezahlschrankenanalyse erlauben`,"Delete all project content?":`Alle Projektinhalte löschen?`,"Delete my project content":`Meine Projektinhalte löschen`,Cancel:`Abbrechen`,"Every supplied value and its source":`Alle angegebenen Werte und ihre Quellen`,"No discrepancies reported by the engine.":`Keine Abweichungen von der Engine gemeldet.`,"Discrepancy report unavailable.":`Abweichungsbericht nicht verfügbar.`,Value:`Wert`,"Origin / evidence":`Herkunft / Nachweis`,Source:`Quelle`,estimated:`geschätzt`,"user-given":`Nutzereingabe`,measured:`gemessen`,calculated:`berechnet`,unconfirmed:`unbestätigt`,"reviewed evidence":`geprüfter Nachweis`,unlabelled:`ohne Herkunft`,Unknown:`Unbekannt`,"Requested dimensions. Every value is checked by the shared engine.":`Gewünschte Maße. Jeder Wert wird von der gemeinsamen Engine geprüft.`,"I confirm these measured dimensions and angle assumptions.":`Ich bestätige diese gemessenen Maße und Winkelannahmen.`,"Your measurements define the plan.":`Ihre Maße bestimmen den Plan.`,"Local image preview. No dimensions are inferred from this display.":`Lokale Bildvorschau. Aus dieser Anzeige werden keine Maße abgeleitet.`,"Attach your sketch for reference. There is no sample footprint hidden behind this form.":`Skizze als Referenz anhängen. Hinter diesem Formular liegt kein versteckter Beispielumriss.`,"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.`,"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.`,"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.`}),Object.assign(m.fr,{"Plan your next space":`Préparez votre prochain espace`,"Apartment layout":`Plan d’appartement`,"House extension":`Extension de maison`,Renovation:`Rénovation`,"Account options":`Options du compte`,"Account actions":`Actions du compte`,"Delete project content":`Supprimer le contenu des projets`,"Sign out":`Se déconnecter`,"Before image upload":`Avant l’envoi de l’image`,"I have permission to use this image for this project.":`Je dispose de l’autorisation d’utiliser cette image pour ce projet.`,"I understand the AI image-processing disclosure above.":`J’ai compris les informations ci-dessus sur le traitement des images par IA.`,"What would you like to create?":`Que souhaitez-vous créer ?`,"Upload for scanning":`Envoyer pour contrôle de sécurité`,"Remove local image":`Retirer l’image locale`,"What should the sketch reader focus on?":`Sur quoi la lecture du croquis doit-elle porter ?`,"Read saved sketch with AI · observations only":`Lire le croquis enregistré par IA · observations seules`,"Recognized outline · estimated":`Contour reconnu · estimé`,"Preview recognized outline":`Prévisualiser le contour reconnu`,"Local estimated preview only. The saved project is unchanged.":`Aperçu estimé local uniquement. Le projet enregistré est inchangé.`,"Sketch observations to confirm":`Observations du croquis à confirmer`,"Required layout checks passed":`Contrôles requis du plan réussis`,"Reference sources remain visible below.":`Les sources de référence restent visibles ci-dessous.`,"Project billing":`Facturation du projet`,"Continue to Stripe":`Continuer vers Stripe`,"Refresh project quote":`Actualiser le devis du projet`,"View project price":`Voir le prix du projet`,"Purchases are not enabled in this environment.":`Les achats ne sont pas activés dans cet environnement.`,"2D concept drawings":`Dessins conceptuels 2D`,"Prepare PDF / editable DXF / SVG":`Préparer PDF / DXF modifiable / SVG`,Room:`Pièce`,"Axis m²":`Surface aux axes m²`,"Net m²":`Nette m²`,Total:`Total`,Hide:`Masquer`,"Saved project files · download without a new export":`Fichiers enregistrés · télécharger sans nouvel export`,"Use saved sketch":`Utiliser le croquis enregistré`,"Allow optional visit and paywall analytics":`Autoriser les statistiques facultatives de visite et de paiement`,"Delete all project content?":`Supprimer tout le contenu des projets ?`,"Delete my project content":`Supprimer le contenu de mes projets`,Cancel:`Annuler`,"Every supplied value and its source":`Chaque valeur fournie et sa source`,"No discrepancies reported by the engine.":`Aucun écart signalé par le moteur.`,"Discrepancy report unavailable.":`Rapport des écarts indisponible.`,Value:`Valeur`,"Origin / evidence":`Origine / preuve`,Source:`Source`,estimated:`estimé`,"user-given":`fourni par l’utilisateur`,measured:`mesuré`,calculated:`calculé`,unconfirmed:`non confirmé`,"reviewed evidence":`preuve vérifiée`,unlabelled:`sans origine`,Unknown:`Inconnu`,"Requested dimensions. Every value is checked by the shared engine.":`Dimensions demandées. Chaque valeur est contrôlée par le moteur partagé.`,"I confirm these measured dimensions and angle assumptions.":`Je confirme ces dimensions mesurées et hypothèses d’angles.`,"Your measurements define the plan.":`Vos mesures définissent le plan.`,"Local image preview. No dimensions are inferred from this display.":`Aperçu local de l’image. Aucune dimension n’est déduite de cet affichage.`,"Attach your sketch for reference. There is no sample footprint hidden behind this form.":`Joignez votre croquis comme référence. Aucun contour exemple n’est caché dans ce formulaire.`,"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.`,"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.`,"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é.`}),Object.assign(m.ar,{"Plan your next space":`خطّط لمساحتك القادمة`,"Apartment layout":`تخطيط شقة`,"House extension":`توسعة منزل`,Renovation:`تجديد`,"Account options":`خيارات الحساب`,"Account actions":`إجراءات الحساب`,"Delete project content":`حذف محتوى المشاريع`,"Sign out":`تسجيل الخروج`,"Before image upload":`قبل رفع الصورة`,"I have permission to use this image for this project.":`لدي إذن باستخدام هذه الصورة لهذا المشروع.`,"I understand the AI image-processing disclosure above.":`أفهم توضيح معالجة الصورة بالذكاء الاصطناعي أعلاه.`,"What would you like to create?":`ماذا تريد إنشاءه؟`,"Upload for scanning":`رفع للفحص الأمني`,"Remove local image":`إزالة الصورة المحلية`,"What should the sketch reader focus on?":`على ماذا يجب أن تركز قراءة الرسم؟`,"Read saved sketch with AI · observations only":`قراءة الرسم المحفوظ بالذكاء الاصطناعي · ملاحظات فقط`,"Recognized outline · estimated":`المحيط المستخرج · تقديري`,"Preview recognized outline":`معاينة المحيط المستخرج`,"Local estimated preview only. The saved project is unchanged.":`معاينة تقديرية محلية فقط. المشروع المحفوظ لم يتغير.`,"Sketch observations to confirm":`ملاحظات الرسم المطلوب مراجعتها`,"Required layout checks passed":`اجتازت اختبارات التخطيط المطلوبة`,"Reference sources remain visible below.":`تبقى المصادر المرجعية ظاهرة أدناه.`,"Project billing":`فواتير المشروع`,"Continue to Stripe":`المتابعة إلى Stripe`,"Refresh project quote":`تحديث عرض سعر المشروع`,"View project price":`عرض سعر المشروع`,"Purchases are not enabled in this environment.":`عمليات الشراء غير مفعّلة في هذه البيئة.`,"2D concept drawings":`رسومات تصوّرية ثنائية الأبعاد`,"Prepare PDF / editable DXF / SVG":`إعداد PDF / DXF قابل للتحرير / SVG`,Room:`الغرفة`,"Axis m²":`مساحة المحاور م²`,"Net m²":`الصافي م²`,Total:`المجموع`,Hide:`إخفاء`,"Saved project files · download without a new export":`ملفات المشروع المحفوظة · تحميل دون تصدير جديد`,"Use saved sketch":`استخدام الرسم المحفوظ`,"Allow optional visit and paywall analytics":`السماح بتحليلات الزيارة والدفع الاختيارية`,"Delete all project content?":`حذف محتوى جميع المشاريع؟`,"Delete my project content":`حذف محتوى مشاريعي`,Cancel:`إلغاء`,"Every supplied value and its source":`كل قيمة واردة ومصدرها`,"No discrepancies reported by the engine.":`لم يبلغ المحرك عن اختلافات.`,"Discrepancy report unavailable.":`تقرير الفروقات غير متاح.`,Value:`القيمة`,"Origin / evidence":`المصدر / الدليل`,Source:`المرجع`,estimated:`تقديري`,"user-given":`أدخله المستخدم`,measured:`مقاس`,calculated:`محسوب`,unconfirmed:`غير مؤكّد`,"reviewed evidence":`دليل مُراجع`,unlabelled:`بلا مصدر`,Unknown:`غير معروف`,"Requested dimensions. Every value is checked by the shared engine.":`الأبعاد المطلوبة. يفحص المحرك المشترك كل قيمة.`,"I confirm these measured dimensions and angle assumptions.":`أؤكّد هذه الأبعاد المقاسة وافتراضات الزوايا.`,"Your measurements define the plan.":`أبعادك تحدد المخطط.`,"Local image preview. No dimensions are inferred from this display.":`معاينة محلية للصورة. لا تُستنتج أبعاد من هذا العرض.`,"Attach your sketch for reference. There is no sample footprint hidden behind this form.":`أرفق رسمك كمرجع. لا يوجد محيط نموذجي مخفي خلف هذا النموذج.`,"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 فقط عند طلب قراءة الرسم المحفوظ. التخزين الأوروبي مستقل عن موقع المعالجة؛ يجب ضبط منطقة المزوّد وشروط معالجة البيانات.`,"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. التخزين الأوروبي وموقع المعالجة مستقلان؛ يجب أن يضبط النظام شروط معالجة البيانات.`,"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.":`يطلب هذا حذف المشاريع والرسوم والملفات الناتجة في هذه الخدمة. تبقى هوية الحساب والفواتير وسجلات مكافحة الإساءة الضرورية محفوظة. قد تؤخر المحاسبة المعلّقة الإتمام؛ نعرض نتيجة الخدمة.`});function h(e,t){return e===`en`?t:m[e][t]??t}var g=`0.1.0`;(0,u.disableTelemetry)();var _=`bim`,v=g;function y(e){(0,u.setBrand)(e===`karamentreprises`?`karament`:null)}async function ee(){let e=await(0,u.checkLicense)({pkg:`bim`,version:v});return e.payload&&e.payload.exp<=Math.floor(Date.now()/1e3)?`expired`:e.status}var te=u.subscribe;function ne(e,t){if(typeof e.priceMinorUnits!=`number`||!Number.isFinite(e.priceMinorUnits)||typeof e.currency!=`string`)return null;try{let n=new Intl.NumberFormat(t,{style:`currency`,currency:e.currency}),r=n.resolvedOptions().maximumFractionDigits??2;return n.format(e.priceMinorUnits/10**r)}catch{return null}}function re(e){return typeof e.freeProposalGenerations==`number`&&typeof e.freeBimExports==`number`?{proposals:e.freeProposalGenerations,exports:e.freeBimExports}:null}function b(e){return`polycyphers.bim.project.v1:`+encodeURIComponent(e)}function ie(e,t){try{let n=e.getItem(b(t));return n&&/^[a-f0-9]{32}$/i.test(n)?n:null}catch{return null}}function ae(e,t,n){try{n&&/^[a-f0-9]{32}$/i.test(n)?e.setItem(b(t),n):e.removeItem(b(t))}catch{}}function oe(e){return{footprint:{edges:Array.from({length:4},(e,t)=>({id:`W`+(t+1),startVertexId:`V`+(t+1),endVertexId:`V`+((t+1)%4+1),lengthM:NaN,bearingDegrees:null,direction:`Any`,wallType:`exterior`}))},programme:{bedroomWidthM:NaN,bedroomDepthM:NaN,bathroomWidthM:NaN,bathroomDepthM:NaN,hallWidthM:NaN,wardrobeLengthM:NaN,balconyDepthM:NaN,slidingDoorWidthM:NaN,balconyEdgeId:``,entranceEdgeId:``,source:`User-entered project programme; dimensions require engine validation`},buildUps:null,viewEdgeId:``,country:`unspecified`,language:e}}function se(e){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.`;if(e.programme){let t=e.programme;if([t.bedroomWidthM,t.bedroomDepthM,t.bathroomWidthM,t.bathroomDepthM,t.hallWidthM,t.wardrobeLengthM,t.slidingDoorWidthM].some(e=>!Number.isFinite(e)||e<=0)||!Number.isFinite(t.balconyDepthM)||t.balconyDepthM<0||!t.entranceEdgeId||!t.balconyEdgeId)return`Complete the room programme and choose the entrance and balcony walls.`}return null}function ce(e,t){return!!e&&!!t&&e.isChanged&&e.expectedVersion===t.version&&e.snapshot.projectId===t.projectId}var le=(0,c.createContext)(`baulynq`),ue=()=>location.pathname===`/verify-email`||location.pathname===`/verify`,x=()=>crypto.randomUUID().replaceAll(`-`,``);function de(){let e=(0,c.useContext)(le);return(0,d.jsxs)(`span`,{className:`brand`,children:[(0,d.jsx)(`svg`,{viewBox:`0 0 28 28`,"aria-hidden":`true`,children:(0,d.jsx)(`path`,{d:`M4 23V5h13v7h7v11H4m7 0V12h6m0 0V5`})}),(0,d.jsxs)(`strong`,{children:[e===`karamentreprises`?`Karamentreprises`:`BauLynq`,(0,d.jsx)(`span`,{children:e===`karamentreprises`?`BIM`:`Vision`})]})]})}function fe(){return(0,d.jsx)(`span`,{"aria-hidden":`true`,children:`↗`})}function pe(){return(0,d.jsxs)(`svg`,{viewBox:`0 0 450 340`,role:`img`,"aria-label":`Illustrative hand sketch of the reference footprint`,children:[(0,d.jsx)(`defs`,{children:(0,d.jsx)(`pattern`,{id:`sketchgrid`,width:`16`,height:`16`,patternUnits:`userSpaceOnUse`,children:(0,d.jsx)(`path`,{d:`M16 0H0V16`,fill:`none`,stroke:`#e9e4d8`,strokeWidth:`.5`})})}),(0,d.jsx)(`rect`,{width:`450`,height:`340`,fill:`url(#sketchgrid)`}),(0,d.jsxs)(`g`,{transform:`translate(66 53) rotate(-4 140 110)`,fill:`none`,stroke:`#77776e`,strokeWidth:`2.2`,strokeLinecap:`round`,children:[(0,d.jsx)(`path`,{d:`M12 233L255 235l-1-37 56 1-2-159-19-17L18 22Z`}),(0,d.jsx)(`path`,{d:`M13 232L17 21l272 4 19 14 2 160-55-2v36Z`,opacity:`.4`}),(0,d.jsx)(`path`,{d:`M129 232V115h178M130 154h74v77`,strokeDasharray:`5 7`}),(0,d.jsx)(`path`,{d:`M324 70v72m-5-7 5 8 5-8`,stroke:`#328577`})]}),(0,d.jsxs)(`g`,{fontFamily:`monospace`,fontSize:`15`,fill:`#72756e`,transform:`rotate(-4 200 170)`,children:[(0,d.jsxs)(`text`,{x:`145`,y:`62`,children:[`8.34`,(0,d.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]}),(0,d.jsxs)(`text`,{x:`165`,y:`318`,children:[`7.40`,(0,d.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]}),(0,d.jsxs)(`text`,{x:`21`,y:`172`,transform:`rotate(-90 21 172)`,children:[`6.40`,(0,d.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]}),(0,d.jsxs)(`text`,{x:`387`,y:`153`,transform:`rotate(90 387 153)`,children:[`4.81`,(0,d.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]}),(0,d.jsxs)(`text`,{x:`307`,y:`282`,children:[`1.70`,(0,d.jsx)(`tspan`,{fontSize:`7`,children:` [user-given]`})]})]}),(0,d.jsx)(`text`,{x:`29`,y:`32`,fontFamily:`monospace`,fontSize:`10`,fill:`#928f83`,children:`OWN ILLUSTRATION · USER-GIVEN / UNCONFIRMED`})]})}function S(e={}){let t=e.brand??`baulynq`,[n,r]=(0,c.useState)(`checking`);return(0,c.useEffect)(()=>{let e=!0,n=!1;y(t);let i=async()=>{if(!n){n=!0;try{let t=await ee();e&&r(t)}catch{e&&r(`unavailable`)}finally{n=!1}}};i();let a=te(()=>{i()}),o=setInterval(()=>{i()},3e4);return()=>{e=!1,clearInterval(o),a()}},[t]),(0,d.jsxs)(le.Provider,{value:t,children:[(0,d.jsx)(C,{...e}),n!==`licensed`&&n!==`trial`&&n!==`checking`&&(0,d.jsxs)(`aside`,{className:`bim-license-notice`,role:`status`,children:[t===`karamentreprises`?`Karamentreprises BIM`:`BauLynq Vision`,` · `,n===`expired`?`Component license expired`:`Component license required`,` · `,(0,d.jsx)(`a`,{href:t===`karamentreprises`?`https://packages.karamentreprises.com/bim`:`https://packages.polycyphers.com/bim`,children:`Licensing`})]})]})}function C({embedded:e=!1,transport:t,initialInput:n,workspaceKey:r,brand:i=`baulynq`}={}){let[a,o]=(0,c.useState)(n?.language??`en`),[s,u]=(0,c.useState)(e||location.pathname===`/studio`?`studio`:`home`),[f,m]=(0,c.useState)(`measure`),[g,_]=(0,c.useState)(null),[v,y]=(0,c.useState)(n??null),[ee,te]=(0,c.useState)(`A`),[b,le]=(0,c.useState)(!1),[S,C]=(0,c.useState)(``),[T,_e]=(0,c.useState)(``),[ve,E]=(0,c.useState)(``),[D,ye]=(0,c.useState)(null),[be,xe]=(0,c.useState)(null),[Se,Ce]=(0,c.useState)(null),[O,we]=(0,c.useState)(``),[Te,Ee]=(0,c.useState)(!e&&ue()),[De,Oe]=(0,c.useState)(``),[ke,Ae]=(0,c.useState)(``),[k,je]=(0,c.useState)({}),[Me,Ne]=(0,c.useState)(!1),[A,j]=(0,c.useState)(ue()?`verify`:`login`),[Pe,Fe]=(0,c.useState)(()=>ue()?new URLSearchParams(location.search).get(`token`)??``:``),[Ie,Le]=(0,c.useState)(),[Re,ze]=(0,c.useState)(null),[M,N]=(0,c.useState)(null),[P,Be]=(0,c.useState)(null),[Ve,He]=(0,c.useState)(``),[F,I]=(0,c.useState)(null),[Ue,We]=(0,c.useState)([]),[Ge,Ke]=(0,c.useState)(!1),[qe,Je]=(0,c.useState)(!1),[Ye,L]=(0,c.useState)(!1),[Xe,Ze]=(0,c.useState)(null),[Qe,$e]=(0,c.useState)(!1),[et,tt]=(0,c.useState)(!1),[R,nt]=(0,c.useState)(null),[rt,it]=(0,c.useState)(!1),[at,z]=(0,c.useState)([]),[ot,st]=(0,c.useState)([]),[ct,lt]=(0,c.useState)(!1),[ut,dt]=(0,c.useState)([]),[ft,pt]=(0,c.useState)(),mt=(0,c.useRef)(null),ht=(0,c.useRef)(!1),B=(0,c.useRef)(0),gt=(0,c.useRef)(``),V=(0,c.useRef)(void 0),_t=(0,c.useRef)(r),H=p[a],U=r??Ie,W=M?.snapshot??g,G=W?.proposals.find(e=>e.id===ee)??W?.proposals[0],vt=ne(k,a),yt=re(k),bt=typeof k.checkoutAvailable==`boolean`?k.checkoutAvailable:k.checkoutEnabled===!0,K=[`paidRegenerations`,`chatRefinementsPerProject`,`exportsPerPaidProject`].every(e=>typeof k[e]==`number`&&Number.isInteger(k[e])&&Number(k[e])>=0)?{regenerations:Number(k.paidRegenerations),chat:Number(k.chatRefinementsPerProject),exports:Number(k.exportsPerPaidProject)}:null;function q(e){if(e!==B.current)throw new DOMException(`The verified session changed.`,`AbortError`)}async function J(n,r){let i=B.current,a=new Headers(r?.headers).get(`Authorization`);if(!e&&n!==`/session`&&a&&a!==`Bearer `+gt.current)throw new DOMException(`The verified session changed.`,`AbortError`);let o=await(t?t(n,r):fetch(`/v1`+n,r));if(n!==`/config`&&q(i),!e&&o.status===401&&!n.startsWith(`/account/`))throw St(),j(`login`),Ee(!0),C(`Sign in with a verified account to continue.`),new DOMException(`The verified session expired.`,`AbortError`);return o}function xt(){tt(!1),C(``),E(``),$e(!1),Ze(null),We([]),dt([]),pt(void 0),nt(null),it(!1),z([]),Ke(!1),Je(!1),_e(``),_(null),st([]),y(null),N(null),Be(null),Ce(null),xe(null),ye(null),I(null),ze(null),L(!1)}function St(){(g||V.current)&&xt(),B.current++,gt.current=``,V.current=void 0,we(``),Le(void 0)}async function Y(t,n,r){let i=B.current,a=await J(t,{method:r??(n?`POST`:`GET`),headers:{...n?{"Content-Type":`application/json`}:{},...!e&&O?{Authorization:`Bearer `+O}:{}},body:n?JSON.stringify(n):void 0});if(!a.ok){let n=`The service is temporarily unavailable.`;try{let e=await a.json();n=e.detail??e.title??e.error??n}catch{}throw q(i),a.status===401&&(e||(St(),t.startsWith(`/account/`)||j(`login`),Ee(!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&&Ct(`paywall`),Error(n)}let o=a.status===204?null:await a.json();return q(i),o}async function Ct(t,n=ct){if(!(e||k.analyticsEnabled!==!0))try{await J(`/analytics/events`,{method:`POST`,headers:{"Content-Type":`application/json`,...O?{Authorization:`Bearer `+O}:{}},body:JSON.stringify({eventId:x(),kind:t,consentGranted:n})})}catch{}}function wt(e){lt(e),Ct(`visit`,e)}(0,c.useEffect)(()=>{e||(document.documentElement.lang=a,document.documentElement.dir=a===`ar`?`rtl`:`ltr`)},[a,e]),(0,c.useEffect)(()=>{let e=!0;return J(`/config`).then(e=>e.ok?e.json():Promise.reject()).then(t=>{e&&je(t)}).catch(()=>{}),()=>{e=!1}},[t]),(0,c.useEffect)(()=>{!e&&ue()&&history.replaceState({},``,location.pathname)},[e]),(0,c.useEffect)(()=>{if(!P){He(``);return}let e=URL.createObjectURL(P);return He(e),()=>URL.revokeObjectURL(e)},[P]),(0,c.useEffect)(()=>{e&&_t.current!==r&&(B.current++,xt(),_t.current=r)},[r,e]),(0,c.useEffect)(()=>{if(!U)return;let e=ie(localStorage,U);if(ze(e),!e||v||g)return;let t=!0;return Y(`/projects/`+e).then(e=>{t&&(X(e),m(e.input.isDraft?`measure`:`proposals`))}).catch(e=>{t&&C(e instanceof Error?e.message:`Could not resume the project.`)}),()=>{t=!1}},[U]);function X(e){e.input.isDraft||z([]),_(e),y(e.input.isDraft?v??oe(a):e.input),te(e.selectedProposalId??e.proposals.find(e=>e.recommended)?.id??`A`),Ce(null),xe(null),ye(null),N(null),U&&(ae(localStorage,U,e.projectId),ze(e.projectId))}async function Z(e){if(!ht.current){ht.current=!0,le(!0),C(``);try{await e()}catch(e){e instanceof DOMException&&e.name===`AbortError`||C(e instanceof Error?e.message:`Please try again.`)}finally{ht.current=!1,le(!1)}}}function Q(t){tt(!1),u(t),e||history.pushState({},``,t===`home`?`/`:`/studio`),window.scrollTo(0,0)}function Tt(e=!1){e||Be(null),Ke(!1),Je(!1),We([]),dt([]),pt(void 0),nt(null),it(!1),z([]),_e(``),_(null),st([]),y(oe(a)),N(null),Ce(null),xe(null),ye(null),L(!1),Ze(null),I(null),m(`measure`),Q(`studio`)}async function Et(){k.mode===`local-demo`?(Q(`studio`),await Z(async()=>{let e=await Y(`/reference?language=`+a);y(e),L(!1),m(`measure`),E(`Reference example loaded. Review its site-confirmed dimensions before generating.`)})):Tt()}async function Dt(t,n){let r=B.current;if(!Ge||!qe)throw Error(`Review the image permissions and AI disclosure before upload.`);let i=new FormData;i.append(`file`,n),i.append(`rightsAcknowledged`,`true`),i.append(`aiProcessingAcknowledged`,`true`);let a=await J(`/projects/${t.projectId}/uploads`,{method:`POST`,headers:!e&&O?{Authorization:`Bearer `+O}:{},body:i});if(!a.ok){let e=`Upload failed.`;try{let t=await a.json();e=t.detail??t.title??t.error??e}catch{}throw q(r),Error(e)}let o=await a.json();q(r),I(o.upload.id),E(`Sketch stored privately. Reading produces observations to confirm, never unchecked dimensions.`)}async function Ot(){v&&await Z(async()=>{let e=se(v);if(e)throw Error(e);if(P&&!F&&(!Ge||!qe))throw Error(`Review the image permissions and AI disclosure, or remove the local image.`);if(!Ye)throw Error(`Confirm the measured dimensions and bearings before generating.`);let t={...v,language:a},n=await Y(`/footprints/reconcile`,t.footprint);if(Ze(n),n.status!==`Unique`)throw Error(n.findings.map(e=>e.message).join(` `)||`The footprint needs another confirmed measurement.`);let r=g?await Y(`/projects/${g.projectId}/edits`,{expectedVersion:g.version,operationId:x(),edit:{replaceInput:t,note:`Confirmed measurements`}}):await Y(`/projects`,{projectId:x(),operationId:x(),input:t});X(r),m(r.input.isDraft?`measure`:`proposals`),P&&!F&&await Dt(r,P)})}async function kt(){T.trim()&&g&&await Z(async()=>{let e=await Y(`/projects/${g.projectId}/chat`,{expectedVersion:g.version,operationId:x(),message:T});N(e.preview),E(e.reply),_e(``),m(`refine`)})}async function At(){if(!ce(M,g)||!M||!g)return;let e=M;await Z(async()=>{X(await Y(`/projects/${g.projectId}/edits`,{expectedVersion:e.expectedVersion,operationId:x(),edit:e.edit})),E(`Preview applied as a new saved version.`)})}async function jt(e){g&&!M&&await Z(async()=>{X(await Y(`/projects/${g.projectId}/edits`,{expectedVersion:g.version,operationId:x(),edit:{selectProposalId:e.id,note:`Selected layout `+e.id}}))})}async function Mt(){g&&!e&&await Z(async()=>{let e=await Y(`/account/quote`,{projectId:g.projectId});if(e.projectId!==g.projectId||!e.quoteId||ne({priceMinorUnits:e.priceMinorUnits,currency:e.currency},a)===null||!Number.isFinite(Date.parse(e.expiresAtUtc)))throw Error(`A valid project quote was not supplied.`);ye(e)})}async function Nt(){g&&D&&!e&&bt&&K&&await Z(async()=>{if(D.projectId!==g.projectId||Date.parse(D.expiresAtUtc)<=Date.now())throw Error(`This quote expired. Refresh the project quote before purchase.`);let e=await Y(`/account/checkout`,{projectId:g.projectId,requestId:x(),quoteId:D.quoteId}),t=new URL(e.url);if(t.protocol!==`https:`||t.hostname!==`checkout.stripe.com`||t.username||t.password)throw Error(`The checkout address was not accepted.`);window.location.assign(t.href)})}function Pt(){xt(),B.current++,gt.current=``,V.current=void 0,C(``),we(``),Le(void 0),Ae(``),Oe(``),Fe(``),E(`Signed out. Your saved project stays private and can resume after sign-in.`)}async function Ft(){g&&G&&!M&&await Z(async()=>{xe(await Y(`/projects/${g.projectId}/drawings`,{expectedVersion:g.version,operationId:x(),proposalId:G.id})),E(`2D concept drawings prepared. This does not spend the BIM model export.`)})}async function It(){g&&G&&!M&&await Z(async()=>{let e=await Y(`/projects/${g.projectId}/exports`,{expectedVersion:g.version,operationId:x(),proposalId:G.id});Ce(e),m(`download`)})}async function Lt(t,n=Se){n&&g&&await Z(async()=>{let r=B.current,i=await J(`/projects/${g.projectId}/objects/${n.files[t].id}`,{headers:!e&&O?{Authorization:`Bearer `+O}:{}});if(!i.ok)throw Error(`Download unavailable.`);let a=await i.blob();q(r);let o=URL.createObjectURL(a),s=document.createElement(`a`);s.href=o,s.download=`baulynq-${n.proposalId}-v${n.version}.${t}`,s.click(),setTimeout(()=>URL.revokeObjectURL(o),1e3)})}async function Rt(e){![`image/png`,`image/jpeg`,`image/webp`].includes(e.type)||e.size>8388608?C(`Choose a PNG, JPEG or WebP up to 8 MB.`):(Be(e),I(null),Ke(!1),Je(!1),g?(m(`measure`),E(`Local preview only. Review permissions and AI disclosure before uploading the image.`)):(v||Tt(!0),m(`measure`),E(`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.`)))}async function zt(){P&&await Z(async()=>{let e=g;e||(e=await Y(`/drafts`,{projectId:x(),operationId:x()}),X(e),m(`measure`)),await Dt(e,P)})}async function Bt(){g&&F&&await Z(async()=>{let e=await Y(`/projects/${g.projectId}/read-sketch`,{expectedVersion:g.version,operationId:x(),objectId:F,intent:T||`Read the sketch measurements and identify uncertainties.`});dt(e.observations),pt(e.values),nt(e.candidate??null),it(!1),We(e.questions),E(`Recognized values remain estimated. Preview the outline, check labels and assumptions, then explicitly adopt reviewed measurements.`),m(`measure`)})}async function Vt(){g&&await Z(async()=>{let e=await Y(`/projects/${g.projectId}`,void 0,`DELETE`);_(null),st([]),y(null),Ce(null),xe(null),ye(null),N(null),Be(null),I(null),We([]),dt([]),pt(void 0),nt(null),it(!1),z([]),Ze(null),U&&ae(localStorage,U,null),ze(null),E(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.`)})}async function Ht(){!e&&O&&await Z(async()=>{let e=await Y(`/account/data`,void 0,`DELETE`);ct&&(await Ct(`visit`,!1),lt(!1)),xt(),B.current++,U&&ae(localStorage,U,null),m(`measure`),E((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.`)})}async function Ut(){await Z(async()=>{let e=B.current;if(A===`signup`){await Y(`/account/signup`,{email:De}),E(`Check your email for the verification link. No session is created until ownership is verified.`),j(`verify`),Ae(``);return}let t=await Y(A===`verify`?`/account/verification/complete`:`/account/login`,A===`verify`?{token:Pe,password:ke}:{email:De,password:ke});if(Ae(``),Fe(``),!t.token){j(`login`),E(`Email verified. Sign in to continue.`);return}let n=await J(`/session`,{headers:{Authorization:`Bearer `+t.token}});if(!n.ok)throw Error(`The verified workspace could not be loaded.`);let r=await n.json();if(q(e),typeof r.workspaceKey!=`string`||!r.workspaceKey||r.workspaceKey.length>512)throw Error(`The verified workspace could not be loaded.`);V.current&&V.current!==r.workspaceKey&&xt(),B.current++,gt.current=t.token,V.current=r.workspaceKey,we(t.token),Le(r.workspaceKey),Ee(!1),E(`Signed in. This session stays in memory only.`)})}function Wt(){R?.input&&(y({...v??oe(a),footprint:R.input}),Ze(R.reconciliation),z(R.input.edges.flatMap((e,t)=>[`footprint.edges[${t}].lengthM`,...e.bearingDegrees==null?[]:[`footprint.edges[${t}].bearingDegrees`]])),it(!0),L(!1),N(null),m(`measure`),E(`Recognized outline is a local estimated preview. No project version or proposal was changed. Review every length, bearing and wall type before adoption.`))}function Gt(e){I(e),m(`measure`),E(`Saved sanitized sketch selected. Reading it with AI is a separate explicit action.`)}async function Kt(t,n){g&&await Z(async()=>{let r=B.current,i=await J(`/projects/${g.projectId}/objects/${n.objectId}`,{headers:!e&&O?{Authorization:`Bearer `+O}:{}});if(!i.ok)throw Error(`Saved file is unavailable or expired.`);let a=await i.blob();q(r);let o=URL.createObjectURL(a),s=document.createElement(`a`);s.href=o,s.download=`baulynq-${t.kind}${t.version?`-v`+t.version:``}.${n.format}`,s.click(),setTimeout(()=>URL.revokeObjectURL(o),1e3)})}(0,c.useEffect)(()=>{if(!g)return;let e=!0;return Y(`/projects/${g.projectId}/artifacts`).then(t=>{e&&st(Array.isArray(t)?t:[])}).catch(()=>{e&&st([])}),()=>{e=!1}},[g?.projectId,g?.version,F]);let $=G?.values??W?.reconciliation.values??Xe?.values,qt=G?.findings.reduce((e,t)=>(e[t.status]=(e[t.status]??0)+1,e),{})??{};return(0,d.jsxs)(`div`,{className:`bim-studio`,dir:a===`ar`?`rtl`:`ltr`,children:[!e&&(0,d.jsxs)(`header`,{children:[(0,d.jsx)(`a`,{className:`logo`,href:`/`,onClick:e=>{e.preventDefault(),Q(`home`)},children:(0,d.jsx)(de,{})}),(0,d.jsxs)(`nav`,{children:[(0,d.jsx)(`a`,{href:`/#pricing`,onClick:()=>s!==`home`&&Q(`home`),children:H.pricing}),(0,d.jsx)(`select`,{"aria-label":H.language,value:a,onChange:e=>o(e.target.value),children:[`en`,`de`,`fr`,`ar`].map(e=>(0,d.jsx)(`option`,{value:e,children:e.toUpperCase()},e))}),(0,d.jsx)(`button`,{className:`quiet account-action`,disabled:b,onClick:()=>O?Q(`studio`):Ee(!0),children:O?H.account:H.signin}),O&&(0,d.jsxs)(`div`,{className:`account-options`,children:[(0,d.jsx)(`button`,{className:`quiet`,"aria-label":h(a,`Account options`),"aria-expanded":et,"aria-controls":`bim-account-actions`,disabled:b,onClick:()=>tt(!et),children:`⋯`}),et&&(0,d.jsxs)(`div`,{id:`bim-account-actions`,role:`group`,"aria-label":h(a,`Account actions`),className:`account-actions`,onKeyDown:e=>{e.key===`Escape`&&(tt(!1),e.currentTarget.parentElement?.querySelector(`button`)?.focus())},children:[(0,d.jsx)(`button`,{className:`quiet full`,disabled:b,onClick:()=>{tt(!1),$e(!0)},children:h(a,`Delete project content`)}),(0,d.jsx)(`button`,{className:`quiet full`,disabled:b,onClick:Pt,children:h(a,`Sign out`)})]})]}),(0,d.jsxs)(`button`,{className:`ink`,onClick:()=>Q(`studio`),children:[H.studio,(0,d.jsx)(fe,{})]})]})]}),s===`home`?(0,d.jsxs)(`main`,{className:`landing`,children:[(0,d.jsxs)(`section`,{className:`hero`,children:[(0,d.jsxs)(`span`,{className:`eyebrow`,children:[H.eyebrow,` `,(0,d.jsx)(`span`,{children:`01 — VISION`})]}),(0,d.jsx)(`h1`,{children:H.hero}),(0,d.jsx)(`p`,{children:H.intro}),(0,d.jsxs)(`div`,{className:`actions`,children:[(0,d.jsxs)(`button`,{className:`ink large`,onClick:()=>Q(`studio`),children:[H.start,(0,d.jsx)(fe,{})]}),k.mode===`local-demo`?(0,d.jsxs)(`button`,{className:`textbtn`,onClick:Et,children:[H.try,` →`]}):(0,d.jsxs)(`button`,{className:`textbtn`,onClick:()=>Tt(),children:[h(a,`Enter measurements`),` →`]})]}),(0,d.jsxs)(`div`,{className:`proof`,children:[(0,d.jsx)(`span`,{className:`dot`}),`Your measurements. Checked geometry. One shared engine.`]})]}),(0,d.jsxs)(`section`,{className:`transformation`,children:[(0,d.jsxs)(`article`,{className:`sketch-card`,children:[(0,d.jsxs)(`div`,{className:`card-title`,children:[(0,d.jsx)(`span`,{children:`01 / SKETCH`}),(0,d.jsx)(`span`,{children:`THE STARTING POINT`})]}),(0,d.jsx)(pe,{}),(0,d.jsx)(`h3`,{children:H.before})]}),(0,d.jsx)(`div`,{className:`flow-arrow`,children:`→`}),(0,d.jsxs)(`article`,{className:`plan-card`,children:[(0,d.jsxs)(`div`,{className:`card-title`,children:[(0,d.jsx)(`span`,{children:`02 / POSSIBILITIES`}),(0,d.jsx)(`span`,{className:`teal`,children:`CHECKED BY THE ENGINE`})]}),(0,d.jsx)(`div`,{className:`mini-plan`,children:(0,d.jsx)(`img`,{src:`/reference-plan.svg`,alt:`Engine-generated reference layout A with checked dimensions`})}),(0,d.jsx)(`h3`,{children:H.after}),k.mode===`local-demo`?(0,d.jsxs)(`button`,{className:`textbtn`,onClick:Et,children:[H.try,` ↗`]}):(0,d.jsxs)(`button`,{className:`textbtn`,onClick:()=>Tt(),children:[h(a,`Enter measurements`),` ↗`]})]})]}),(0,d.jsx)(`section`,{className:`process`,children:H.steps.map((e,t)=>(0,d.jsxs)(`div`,{children:[(0,d.jsxs)(`span`,{children:[`0`,t+1]}),(0,d.jsx)(`h3`,{children:e}),(0,d.jsx)(`p`,{children:[`A drawing or photo, with dimensions.`,`Confirm dimensions and fixed constraints.`,`Compare different ways to use your space.`,`Take the chosen concept into your BIM workflow.`][t]})]},e))}),(0,d.jsxs)(`section`,{className:`use-case-links`,children:[(0,d.jsx)(`h2`,{children:h(a,`Plan your next space`)}),(0,d.jsxs)(`a`,{href:`/apartment-layout/`,children:[h(a,`Apartment layout`),` ↗`]}),(0,d.jsxs)(`a`,{href:`/house-extension/`,children:[h(a,`House extension`),` ↗`]}),(0,d.jsxs)(`a`,{href:`/renovation/`,children:[h(a,`Renovation`),` ↗`]})]}),(0,d.jsxs)(`section`,{className:`price-section`,id:`pricing`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`span`,{className:`eyebrow`,children:`A CLEAR START`}),(0,d.jsxs)(`h2`,{children:[`A small project.`,(0,d.jsx)(`br`,{}),`A useful next step.`]}),(0,d.jsx)(`p`,{children:`Free access is included in KEHBIMVISION and BauLynq BIM, within each app’s AI usage limits.`})]}),(0,d.jsxs)(`article`,{className:`price-card`,children:[(0,d.jsx)(`span`,{className:`eyebrow`,children:i===`karamentreprises`?`KARAMENTREPRISES BIM`:`BAULYNQ VISION`}),(0,d.jsx)(`h2`,{children:vt??`Pricing opens with the service`}),(0,d.jsx)(`small`,{children:`Base pricing. Your project quote is shown before purchase.`}),(0,d.jsx)(`p`,{children:yt?`${yt.proposals} free proposal generations · ${yt.exports} BIM exports`:`The local preview does not accept payments.`}),(0,d.jsx)(`p`,{children:`One project includes proposals, refinements and its model export.`}),K&&(0,d.jsxs)(`p`,{children:[`After the initial proposal request: `,K.regenerations,` regenerations · `,K.chat,` chat refinements · `,K.exports,` `,K.exports===1?`BIM export`:`BIM exports`,` per paid project.`]}),(0,d.jsxs)(`button`,{className:`ink`,onClick:()=>Q(`studio`),children:[H.start,(0,d.jsx)(fe,{})]})]})]}),(0,d.jsxs)(`footer`,{children:[(0,d.jsx)(de,{}),(0,d.jsx)(`span`,{children:H.disclaimer})]})]}):(0,d.jsxs)(`main`,{className:`studio`,children:[(0,d.jsxs)(`aside`,{className:`rail`,children:[(0,d.jsx)(`span`,{className:`eyebrow`,children:`WORKSPACE`}),(0,d.jsx)(`h2`,{children:H.workspace}),(0,d.jsxs)(`span`,{className:`project-status`,children:[(0,d.jsx)(`span`,{className:`dot`}),k.mode===`local-demo`?`Local reference preview`:`Private project`]}),(0,d.jsx)(`div`,{className:`stage-nav`,children:[`measure`,`proposals`,`refine`,`download`].map((e,t)=>(0,d.jsxs)(`button`,{className:f===e?`active`:``,onClick:()=>m(e),children:[(0,d.jsxs)(`span`,{children:[`0`,t+1]}),H[e]]},e))}),(0,d.jsxs)(`div`,{className:`rail-bottom`,children:[(0,d.jsx)(`p`,{children:H.privacy}),typeof k.retentionDays==`number`&&(0,d.jsxs)(`p`,{children:[`Retention: `,k.retentionDays,` days, as configured by the service.`]}),g&&(0,d.jsx)(`button`,{className:`quiet danger`,onClick:Vt,children:H.delete})]})]}),(0,d.jsxs)(`section`,{className:`workspace`,children:[(0,d.jsxs)(`div`,{className:`workspace-heading`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`span`,{className:`eyebrow`,children:g?`VERSION ${g.version} / ${g.projectId.slice(0,8)}`:`YOUR NEXT SPACE`}),(0,d.jsx)(`h1`,{children:H[f]})]}),(0,d.jsxs)(`div`,{className:`workspace-controls`,children:[e&&(0,d.jsx)(`select`,{"aria-label":H.language,value:a,onChange:e=>o(e.target.value),children:[`en`,`de`,`fr`,`ar`].map(e=>(0,d.jsx)(`option`,{value:e,children:e.toUpperCase()},e))}),(0,d.jsx)(`button`,{className:`quiet`,disabled:b,onClick:()=>Tt(),children:h(a,`New project`)}),g&&(0,d.jsx)(`button`,{className:`quiet compact-delete`,"aria-label":`Delete current project`,disabled:b,onClick:Vt,children:H.delete}),g&&(0,d.jsxs)(`button`,{className:`outline`,disabled:b||!!M||g.version<2,onClick:()=>Z(async()=>{X(await Y(`/projects/${g.projectId}/undo`,{expectedVersion:g.version,targetVersion:g.version-1,operationId:x()}))}),children:[`↶ `,H.undo]})]})]}),S&&(0,d.jsxs)(`div`,{role:`alert`,className:`alert`,children:[i===`karamentreprises`?S.replace(/Polycyphers/gi,`Karamentreprises`):S,(0,d.jsx)(`button`,{"aria-label":H.close,onClick:()=>C(``),children:`×`})]}),ve&&(0,d.jsxs)(`div`,{role:`status`,className:`notice`,children:[ve,(0,d.jsx)(`button`,{"aria-label":H.close,onClick:()=>E(``),children:`×`})]}),M&&(0,d.jsx)(`section`,{className:`notice preview-banner`,role:`status`,children:(0,d.jsxs)(`div`,{children:[(0,d.jsx)(`strong`,{children:h(a,`Unsaved edit preview`)}),(0,d.jsxs)(`p`,{children:[`Review the recomputed plan, schedule and rule findings below. Your saved version `,g?.version,` is unchanged.`]}),(0,d.jsx)(`button`,{className:`ink`,disabled:b||!ce(M,g),onClick:At,children:h(a,`Apply as new version`)}),(0,d.jsx)(`button`,{className:`outline`,disabled:b,onClick:()=>N(null),children:h(a,`Discard preview`)})]})}),!g&&!v?(0,d.jsxs)(`div`,{className:`empty`,children:[(0,d.jsx)(`span`,{className:`empty-icon`,children:`⌑`}),(0,d.jsx)(`h2`,{children:H.empty}),(0,d.jsx)(`p`,{children:H.emptyBody}),(0,d.jsxs)(`div`,{className:`actions`,children:[(0,d.jsxs)(`button`,{className:`ink large`,disabled:b,onClick:()=>mt.current?.click(),children:[H.upload,(0,d.jsx)(fe,{})]}),(0,d.jsx)(`button`,{className:`outline`,disabled:b,onClick:()=>Tt(),children:h(a,`Enter measurements`)})]}),Re&&(0,d.jsx)(`button`,{className:`outline`,disabled:b,onClick:()=>Z(async()=>{let e=await Y(`/projects/`+Re);X(e),m(e.input.isDraft?`measure`:`proposals`)}),children:h(a,`Resume saved project`)}),k.mode===`local-demo`&&(0,d.jsx)(`button`,{className:`textbtn`,disabled:b,onClick:Et,children:H.try})]}):f===`measure`&&v?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(he,{language:a,input:v,setInput:y,onChange:e=>{L(!1),N(null),e&&z(t=>t.filter(t=>t!==e))},estimatedFields:at,confirmed:Ye,setConfirmed:L,onGenerate:Ot,busy:b,onUpload:()=>mt.current?.click(),imageUrl:Ve,geometry:Xe}),P&&!F&&(0,d.jsxs)(`section`,{className:`paper consent-panel`,children:[(0,d.jsx)(`h3`,{children:h(a,`Before image upload`)}),(0,d.jsx)(`p`,{children:h(a,`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.`)}),(0,d.jsxs)(`label`,{className:`confirmation`,children:[(0,d.jsx)(`input`,{type:`checkbox`,checked:Ge,onChange:e=>Ke(e.target.checked)}),h(a,`I have permission to use this image for this project.`)]}),(0,d.jsxs)(`label`,{className:`confirmation`,children:[(0,d.jsx)(`input`,{type:`checkbox`,checked:qe,onChange:e=>Je(e.target.checked)}),h(a,`I understand the AI image-processing disclosure above.`)]}),(0,d.jsxs)(`label`,{className:`field`,children:[h(a,`What would you like to create?`),(0,d.jsx)(`textarea`,{"aria-label":`Sketch brief`,value:T,maxLength:8e3,placeholder:`Room wishes, entrance and view, fixed walls, country…`,onChange:e=>_e(e.target.value)})]}),(0,d.jsx)(`button`,{className:`ink`,disabled:b||!Ge||!qe,onClick:zt,children:h(a,`Upload for scanning`)}),(0,d.jsx)(`button`,{className:`quiet`,onClick:()=>{Be(null),Ke(!1),Je(!1)},children:h(a,`Remove local image`)})]}),F&&(0,d.jsxs)(`section`,{className:`paper consent-panel`,children:[(0,d.jsx)(`p`,{children:h(a,`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.`)}),(0,d.jsxs)(`label`,{className:`field`,children:[h(a,`What should the sketch reader focus on?`),(0,d.jsx)(`textarea`,{"aria-label":`Saved sketch brief`,value:T,maxLength:8e3,onChange:e=>_e(e.target.value)})]}),(0,d.jsx)(`button`,{className:`outline`,disabled:b,onClick:Bt,children:h(a,`Read saved sketch with AI · observations only`)})]}),R&&(0,d.jsxs)(`section`,{className:`paper candidate-panel`,children:[(0,d.jsx)(`h3`,{children:h(a,`Recognized outline · estimated`)}),(0,d.jsx)(`p`,{children:R.input?`${R.input.edges.length} linked boundary edges · geometry ${R.status}`:`The reader did not return a complete, valid outline. Enter or correct measurements manually.`}),(0,d.jsx)(`p`,{children:`Lengths use explicit labels only. Image coordinates do not establish physical scale. Bearings and wall types remain assumptions to review.`}),(0,d.jsx)(`button`,{className:`outline`,disabled:b||!R.input||rt,onClick:Wt,children:h(a,`Preview recognized outline`)}),rt&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`p`,{children:h(a,`Local estimated preview only. The saved project is unchanged.`)}),(0,d.jsx)(ge,{candidate:R})]}),(0,d.jsx)(me,{report:R.values,language:a})]}),(ut.length>0||Ue.length>0)&&(0,d.jsxs)(`article`,{className:`paper findings`,children:[(0,d.jsx)(`h3`,{children:h(a,`Sketch observations to confirm`)}),(0,d.jsx)(`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.`}),ut.map((e,t)=>(0,d.jsxs)(`section`,{children:[(0,d.jsxs)(`strong`,{children:[e.kind,e.edgeId?` · `+e.edgeId:``]}),e.value!=null&&(0,d.jsxs)(`p`,{children:[e.value,` `,e.unit??`unit unknown`,` `,(0,d.jsx)(`span`,{className:`value-tag origin-estimated`,children:`estimated · unconfirmed`})]}),(0,d.jsx)(`p`,{children:e.evidence})]},t)),Ue.map((e,t)=>(0,d.jsx)(`p`,{children:e},t)),ft&&(0,d.jsx)(me,{report:ft,language:a})]})]}):G?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsxs)(`div`,{className:`metrics`,children:[(0,d.jsxs)(`div`,{children:[(0,d.jsxs)(`span`,{children:[H.area,` `,(0,d.jsx)(w,{language:a,report:$,path:`centerlineAreaM2`})]}),(0,d.jsxs)(`strong`,{children:[G.centerlineAreaM2.toFixed(2),(0,d.jsx)(`small`,{children:`m²`})]})]}),(0,d.jsxs)(`div`,{children:[(0,d.jsxs)(`span`,{children:[H.net,` `,(0,d.jsx)(w,{language:a,report:$,path:`netAreaM2`})]}),(0,d.jsxs)(`strong`,{children:[G.netAreaM2.toFixed(2),(0,d.jsx)(`small`,{children:`m²`})]})]}),(0,d.jsxs)(`div`,{children:[(0,d.jsxs)(`span`,{children:[H.perimeter,` `,(0,d.jsx)(w,{language:a,report:$,path:`perimeterM`})]}),(0,d.jsxs)(`strong`,{children:[W?.reconciliation.solutions[0]?.perimeterM.toFixed(2),(0,d.jsx)(`small`,{children:`m`})]})]}),(0,d.jsxs)(`div`,{className:`metric-note`,children:[G.hasRequiredConflicts?H.warning:h(a,`Required layout checks passed`),(0,d.jsx)(`span`,{children:h(a,`Reference sources remain visible below.`)})]})]}),(0,d.jsxs)(`div`,{className:`drawing-layout`,children:[(0,d.jsxs)(`article`,{className:`drawing paper`,children:[(0,d.jsxs)(`div`,{className:`drawing-top`,children:[(0,d.jsxs)(`span`,{children:[`LAYOUT `,G.id]}),(0,d.jsx)(`span`,{children:M?`UNSAVED EDIT PREVIEW`:`ENGINE-CHECKED CONCEPT`}),(0,d.jsx)(`span`,{children:`METRES / CONCEPT`})]}),(0,d.jsx)(`div`,{className:`engine-svg`,dangerouslySetInnerHTML:{__html:l.default.sanitize(G.svg,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}),(0,d.jsxs)(`div`,{className:`drawing-bottom`,children:[(0,d.jsx)(`span`,{children:i===`karamentreprises`?`KARAMENTREPRISES BIM`:`BAULYNQ VISION`}),(0,d.jsxs)(`span`,{children:[M?`PREVIEW / `:``,`v`,W?.version,` · `,a.toUpperCase()]})]})]}),(0,d.jsxs)(`aside`,{className:`proposal-panel`,children:[(0,d.jsx)(`span`,{className:`eyebrow`,children:`FIND YOUR FIT`}),W?.proposals.map(e=>(0,d.jsxs)(`button`,{className:`proposal-card `+(ee===e.id?`selected`:``),onClick:()=>te(e.id),children:[(0,d.jsx)(`span`,{className:`proposal-letter`,children:e.id}),(0,d.jsxs)(`div`,{children:[e.recommended&&(0,d.jsx)(`small`,{className:`badge`,children:H.recommended}),(0,d.jsx)(`h3`,{children:e.title}),(0,d.jsx)(`p`,{children:e.tradeOffs[0]})]})]},e.id)),(0,d.jsxs)(`button`,{className:`ink full`,disabled:b||!!M,onClick:()=>jt(G),children:[H.select,(0,d.jsx)(fe,{})]}),!e&&g&&(0,d.jsxs)(`section`,{className:`project-price`,children:[(0,d.jsx)(`h3`,{children:h(a,`Project billing`)}),(0,d.jsx)(`p`,{children:`One project includes proposals, refinements and its BIM model within the configured caps. Free allowances are checked by the service.`}),K?(0,d.jsxs)(`p`,{className:`quota-disclosure`,children:[`After the initial proposal request: `,K.regenerations,` regenerations · `,K.chat,` chat refinements · `,K.exports,` `,K.exports===1?`BIM export`:`BIM exports`,` per paid project.`]}):(0,d.jsx)(`p`,{children:`Project usage limits are unavailable. Checkout stays disabled until they can be shown.`}),D?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`strong`,{children:ne({priceMinorUnits:D.priceMinorUnits,currency:D.currency},a)}),(0,d.jsxs)(`p`,{children:[`Quote valid until `,new Date(D.expiresAtUtc).toLocaleString(a),`.`]}),(0,d.jsx)(`button`,{className:`ink full`,disabled:b||!bt||!K,onClick:Nt,children:h(a,`Continue to Stripe`)}),(0,d.jsx)(`button`,{className:`textbtn`,disabled:b,onClick:Mt,children:h(a,`Refresh project quote`)})]}):(0,d.jsx)(`button`,{className:`outline full`,disabled:b||!bt,onClick:Mt,children:h(a,`View project price`)}),!bt&&(0,d.jsx)(`small`,{children:h(a,`Purchases are not enabled in this environment.`)}),(0,d.jsx)(`small`,{children:`A checkout return is not proof of payment; downloads use the service's verified entitlement.`})]}),(0,d.jsxs)(`section`,{className:`drawing-downloads`,children:[(0,d.jsx)(`h3`,{children:h(a,`2D concept drawings`)}),(0,d.jsx)(`button`,{className:`outline full`,disabled:b||!!M,onClick:Ft,children:h(a,`Prepare PDF / editable DXF / SVG`)}),be&&Object.keys(be.files).map(e=>(0,d.jsxs)(`button`,{className:`quiet`,onClick:()=>Lt(e,be),children:[e.toUpperCase(),` ↓`]},e)),(0,d.jsx)(`small`,{children:`Separate from the BIM model export. PDF is included when the service has PDF rendering configured.`})]}),(0,d.jsxs)(`div`,{className:`tradeoffs`,children:[(0,d.jsx)(`h3`,{children:H.tradeoffs}),G.tradeOffs.map((e,t)=>(0,d.jsx)(`p`,{children:e},t))]}),f===`download`?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`h3`,{children:H.download}),Se?Object.keys(Se.files).map(e=>(0,d.jsxs)(`button`,{className:`outline full`,onClick:()=>Lt(e),children:[e.toUpperCase(),` ↓`]},e)):(0,d.jsxs)(`button`,{className:`ink full`,disabled:b||!!M||G.hasRequiredConflicts,onClick:It,children:[H.export,(0,d.jsx)(fe,{})]}),(0,d.jsx)(`small`,{children:Se?.viewerVerification??H.downloadNote})]}):(0,d.jsxs)(`div`,{className:`chat`,children:[(0,d.jsx)(`h3`,{children:H.chat}),(0,d.jsx)(`textarea`,{"aria-label":H.chat,placeholder:H.hint,value:T,maxLength:8e3,onChange:e=>_e(e.target.value)}),(0,d.jsxs)(`button`,{className:`outline full`,disabled:b||!T.trim(),onClick:kt,children:[H.send,` →`]})]})]})]}),(0,d.jsxs)(`div`,{className:`detail-grid`,children:[(0,d.jsxs)(`article`,{className:`paper schedule`,children:[(0,d.jsx)(`h3`,{children:H.schedule}),(0,d.jsxs)(`table`,{children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{children:h(a,`Room`)}),(0,d.jsx)(`th`,{children:`W × D`}),(0,d.jsx)(`th`,{children:h(a,`Axis m²`)}),(0,d.jsx)(`th`,{children:h(a,`Net m²`)})]})}),(0,d.jsx)(`tbody`,{children:G.schedule.map(e=>(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`td`,{children:e.name}),(0,d.jsxs)(`td`,{children:[e.widthM.toFixed(2),` × `,e.depthM.toFixed(2),(0,d.jsx)(w,{language:a,report:$,path:`${e.roomId}.widthM`}),(0,d.jsx)(w,{language:a,report:$,path:`${e.roomId}.depthM`})]}),(0,d.jsxs)(`td`,{children:[e.centerlineAreaM2.toFixed(2),(0,d.jsx)(w,{language:a,report:$,path:`${e.roomId}.centerlineAreaM2`})]}),(0,d.jsxs)(`td`,{children:[e.netAreaM2.toFixed(2),(0,d.jsx)(w,{language:a,report:$,path:`${e.roomId}.netAreaM2`})]})]},e.roomId))}),(0,d.jsx)(`tfoot`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{children:h(a,`Total`)}),(0,d.jsx)(`td`,{}),(0,d.jsxs)(`th`,{children:[G.centerlineAreaM2.toFixed(2),(0,d.jsx)(w,{language:a,report:$,path:`centerlineAreaM2`})]}),(0,d.jsxs)(`th`,{children:[G.netAreaM2.toFixed(2),(0,d.jsx)(w,{language:a,report:$,path:`netAreaM2`})]})]})})]})]}),(0,d.jsxs)(`article`,{className:`paper check-summary`,children:[(0,d.jsx)(`h3`,{children:H.checks}),(0,d.jsx)(`div`,{className:`check-counts`,children:Object.entries(qt).map(([e,t])=>(0,d.jsxs)(`span`,{children:[(0,d.jsx)(`strong`,{children:t}),e]},e))}),(0,d.jsxs)(`button`,{className:`textbtn`,onClick:()=>Ne(!Me),children:[Me?h(a,`Hide`):H.notes,` `,Me?`−`:`+`]}),(0,d.jsx)(`p`,{children:`Reference-only entries are disclosed, never presented as passed checks. Country statutory certification is not inferred.`})]})]}),Me&&(0,d.jsx)(`article`,{className:`paper findings`,children:G.findings.map((e,t)=>(0,d.jsxs)(`details`,{children:[(0,d.jsxs)(`summary`,{children:[(0,d.jsx)(`span`,{className:`status `+e.status,children:e.status}),(0,d.jsx)(`code`,{children:e.ruleId}),(0,d.jsx)(`span`,{children:e.subjectId})]}),(0,d.jsx)(`p`,{children:e.measurement}),e.fix&&(0,d.jsx)(`p`,{children:e.fix}),(0,d.jsx)(`small`,{children:e.source})]},t))}),(0,d.jsx)(`p`,{className:`disclaimer`,children:H.disclaimer})]}):null,(W||Xe)&&(0,d.jsx)(me,{report:$,language:a})]}),(0,d.jsx)(`input`,{hidden:!0,type:`file`,ref:mt,accept:`image/png,image/jpeg,image/webp`,onChange:e=>{let t=e.target.files?.[0];t&&Rt(t),e.target.value=``}})]}),b&&(0,d.jsxs)(`div`,{className:`working`,role:`status`,children:[(0,d.jsx)(`span`,{className:`spinner`}),H.generating]}),s===`studio`&&g&&ot.length>0&&(0,d.jsx)(`section`,{className:`paper saved-files`,children:(0,d.jsxs)(`details`,{children:[(0,d.jsx)(`summary`,{children:h(a,`Saved project files · download without a new export`)}),ot.map(e=>(0,d.jsxs)(`article`,{children:[(0,d.jsxs)(`strong`,{children:[e.kind,e.version?` · v`+e.version:``,e.proposalId?` · `+e.proposalId:``]}),e.files.map(t=>(0,d.jsxs)(`button`,{className:`quiet`,disabled:b,onClick:()=>Kt(e,t),children:[t.format.toUpperCase(),` ↓`]},t.objectId)),e.kind===`upload`&&e.files.find(e=>[`png`,`jpeg`,`webp`].includes(e.format))&&(0,d.jsx)(`button`,{className:`outline`,disabled:b,onClick:()=>Gt(e.files.find(e=>[`png`,`jpeg`,`webp`].includes(e.format)).objectId),children:h(a,`Use saved sketch`)})]},e.artifactId))]})}),!e&&k.analyticsEnabled===!0&&(0,d.jsxs)(`aside`,{className:`analytics-choice`,children:[(0,d.jsxs)(`label`,{children:[(0,d.jsx)(`input`,{type:`checkbox`,checked:ct,onChange:e=>wt(e.target.checked)}),` Allow optional visit and paywall analytics`]}),(0,d.jsx)(`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.`})]}),!e&&O&&Qe&&(0,d.jsx)(`div`,{className:`modal-backdrop`,children:(0,d.jsxs)(`section`,{className:`modal paper`,role:`alertdialog`,"aria-modal":`true`,"aria-labelledby":`content-deletion-title`,children:[(0,d.jsx)(`h2`,{id:`content-deletion-title`,children:h(a,`Delete all project content?`)}),(0,d.jsx)(`p`,{children:h(a,`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.`)}),(0,d.jsx)(`button`,{className:`outline full danger`,disabled:b,onClick:Ht,children:h(a,`Delete my project content`)}),(0,d.jsx)(`button`,{className:`quiet full`,disabled:b,onClick:()=>$e(!1),children:h(a,`Cancel`)})]})}),!e&&Te&&(0,d.jsx)(`div`,{className:`modal-backdrop`,children:(0,d.jsxs)(`form`,{className:`modal paper`,onSubmit:e=>{e.preventDefault(),Ut()},children:[(0,d.jsx)(`button`,{type:`button`,className:`close`,"aria-label":H.close,onClick:()=>Ee(!1),children:`×`}),(0,d.jsx)(de,{}),(0,d.jsx)(`h2`,{children:A===`signup`?h(a,`Create a verified account`):A===`verify`?h(a,`Verify your email`):H.signin}),S&&(0,d.jsx)(`p`,{role:`alert`,children:i===`karamentreprises`?S.replace(/Polycyphers/gi,`Karamentreprises`):S}),ve&&(0,d.jsx)(`p`,{role:`status`,children:ve}),A!==`verify`&&(0,d.jsxs)(`label`,{className:`field`,children:[H.email,(0,d.jsx)(`input`,{type:`email`,autoComplete:`email`,required:!0,value:De,onChange:e=>Oe(e.target.value)})]}),A===`verify`&&(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`p`,{children:`Open the verification link sent to your email, or paste its token below. Verification happens only when you submit this form.`}),(0,d.jsxs)(`label`,{className:`field`,children:[h(a,`Verification token`),(0,d.jsx)(`input`,{autoComplete:`off`,required:!0,value:Pe,onChange:e=>Fe(e.target.value)})]})]}),A!==`signup`&&(0,d.jsxs)(`label`,{className:`field`,children:[H.password,(0,d.jsx)(`input`,{type:`password`,autoComplete:A===`verify`?`new-password`:`current-password`,minLength:A===`verify`?10:void 0,required:!0,value:ke,onChange:e=>Ae(e.target.value)})]}),(0,d.jsx)(`button`,{className:`ink full`,disabled:b,children:A===`signup`?h(a,`Send verification email`):A===`verify`?h(a,`Verify & set password`):H.signin}),(0,d.jsxs)(`div`,{className:`account-modes`,children:[(0,d.jsx)(`button`,{type:`button`,className:`textbtn`,onClick:()=>j(`login`),children:h(a,`Sign in`)}),(0,d.jsx)(`button`,{type:`button`,className:`textbtn`,onClick:()=>j(`signup`),children:h(a,`Create account`)}),(0,d.jsx)(`button`,{type:`button`,className:`textbtn`,onClick:()=>j(`verify`),children:h(a,`Verify email`)})]}),typeof k.verificationCompletionUrl==`string`&&(0,d.jsxs)(`p`,{children:[`Verification destination: `,k.verificationCompletionUrl]})]})})]})}function w({report:e,path:t,language:n=`en`}){let r=e?.values.find(e=>e.path===t||e.path.endsWith(`.`+t));return(0,d.jsxs)(`small`,{className:`value-tag `+(r?.origin??`missing`),title:r?.source??`No provenance supplied for this displayed value.`,children:[h(n,r?.origin??`unlabelled`),` · `,h(n,r?.origin!==`estimated`&&r?.confirmed===!0?`reviewed evidence`:`unconfirmed`)]})}function me({report:e,language:t}){let n=t;return(0,d.jsxs)(`section`,{className:`paper provenance`,children:[(0,d.jsx)(`h3`,{children:h(t,`Value provenance & discrepancies`)}),(0,d.jsx)(`p`,{children:e?.notice??`No provenance report was supplied. Values are unconfirmed; do not treat them as measured or verified.`}),(0,d.jsx)(`h4`,{children:h(t,`Discrepancy report`)}),e?e.discrepancies.length?e.discrepancies.map(e=>(0,d.jsxs)(`article`,{children:[(0,d.jsxs)(`strong`,{children:[e.kind,` · `,e.subject]}),(0,d.jsx)(`p`,{children:e.message}),e.appliedFix&&(0,d.jsxs)(`p`,{children:[`Applied fix: `,e.appliedFix]}),e.question&&(0,d.jsxs)(`p`,{children:[`Measurement needed: `,e.question]}),e.ruleId&&(0,d.jsx)(`code`,{children:e.ruleId})]},e.id)):(0,d.jsx)(`p`,{children:h(n,`No discrepancies reported by the engine.`)}):(0,d.jsx)(`p`,{children:h(n,`Discrepancy report unavailable.`)}),(0,d.jsxs)(`details`,{children:[(0,d.jsx)(`summary`,{children:h(n,`Every supplied value and its source`)}),(0,d.jsxs)(`table`,{children:[(0,d.jsx)(`thead`,{children:(0,d.jsxs)(`tr`,{children:[(0,d.jsx)(`th`,{children:h(n,`Value`)}),(0,d.jsx)(`th`,{children:h(n,`Origin / evidence`)}),(0,d.jsx)(`th`,{children:h(n,`Source`)})]})}),(0,d.jsx)(`tbody`,{children:e?.values.map(t=>(0,d.jsxs)(`tr`,{children:[(0,d.jsxs)(`td`,{children:[(0,d.jsx)(`code`,{children:t.path}),(0,d.jsx)(`br`,{}),t.value,` `,t.unit]}),(0,d.jsx)(`td`,{children:(0,d.jsx)(w,{language:n,report:e,path:t.path})}),(0,d.jsxs)(`td`,{children:[t.source,t.inputPaths.length>0&&(0,d.jsxs)(`small`,{children:[`Inputs: `,t.inputPaths.join(`, `)]})]})]},t.path))})]})]})]})}function he({input:e,setInput:t,onChange:n,estimatedFields:r,confirmed:i,setConfirmed:a,onGenerate:o,busy:s,onUpload:c,imageUrl:l,geometry:u,language:f}){let p=f,m=(e,r)=>{t(e),n(r)},g=e.programme,_=[[`bedroomWidthM`,`Bedroom width`],[`bedroomDepthM`,`Bedroom depth`],[`bathroomWidthM`,`Bathroom width`],[`bathroomDepthM`,`Bathroom depth`],[`hallWidthM`,`Hall width`],[`wardrobeLengthM`,`Wardrobe length`],[`balconyDepthM`,`Balcony depth (0 for none)`],[`slidingDoorWidthM`,`Balcony sliding door width`]];function v(t){let n=e.footprint.edges,r=(t?[...n,{id:``,startVertexId:``,endVertexId:``,lengthM:NaN,bearingDegrees:null,direction:`Any`,wallType:`exterior`}]:n.slice(0,-1)).map((e,t,n)=>({...e,id:`W`+(t+1),startVertexId:`V`+(t+1),endVertexId:`V`+((t+1)%n.length+1)}));m({...e,footprint:{edges:r}})}return(0,d.jsxs)(`section`,{className:`measure-layout`,children:[(0,d.jsxs)(`article`,{className:`paper form-card`,children:[(0,d.jsx)(`h2`,{children:h(p,`Measured footprint`)}),(0,d.jsx)(`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.`}),(0,d.jsx)(`div`,{className:`edge-table`,children:e.footprint.edges.map((t,n)=>(0,d.jsxs)(`div`,{className:`edge-row`,children:[(0,d.jsxs)(`strong`,{children:[t.id,` `,(0,d.jsxs)(`small`,{children:[t.startVertexId,` → `,t.endVertexId]})]}),(0,d.jsxs)(`label`,{children:[h(p,`Length (m)`),` `,(0,d.jsxs)(`small`,{children:[h(p,r.includes(`footprint.edges[${n}].lengthM`)?`estimated`:`user-given`),` · `,h(p,`unconfirmed`)]}),(0,d.jsx)(`input`,{"aria-label":`${t.id} length`,type:`number`,min:`0`,step:`any`,value:Number.isFinite(t.lengthM)?t.lengthM:``,onChange:t=>m({...e,footprint:{...e.footprint,edges:e.footprint.edges.map((e,r)=>r===n?{...e,lengthM:t.target.value===``?NaN:Number(t.target.value)}:e)}},`footprint.edges[${n}].lengthM`)})]}),(0,d.jsxs)(`label`,{children:[h(p,`Bearing (°)`),` `,(0,d.jsxs)(`small`,{children:[h(p,r.includes(`footprint.edges[${n}].bearingDegrees`)?`estimated`:`user-given`),` · `,h(p,`unconfirmed`)]}),(0,d.jsx)(`input`,{"aria-label":`${t.id} bearing`,type:`number`,step:`0.01`,placeholder:h(p,`Unknown`),value:t.bearingDegrees??``,onChange:t=>m({...e,footprint:{...e.footprint,edges:e.footprint.edges.map((e,r)=>r===n?{...e,bearingDegrees:t.target.value===``?null:Number(t.target.value)}:e)}},`footprint.edges[${n}].bearingDegrees`)})]}),(0,d.jsxs)(`label`,{children:[h(p,`Wall`),(0,d.jsxs)(`select`,{"aria-label":`${t.id} wall type`,value:t.wallType,onChange:t=>m({...e,footprint:{...e.footprint,edges:e.footprint.edges.map((e,r)=>r===n?{...e,wallType:t.target.value}:e)}}),children:[(0,d.jsx)(`option`,{value:`exterior`,children:h(p,`Exterior`)}),(0,d.jsx)(`option`,{value:`party`,children:h(p,`Party · no openings`)})]})]})]},t.id))}),g?.source.startsWith(`User-entered`)&&(0,d.jsxs)(`div`,{className:`actions`,children:[(0,d.jsx)(`button`,{className:`outline`,disabled:e.footprint.edges.length>=64,onClick:()=>v(!0),children:h(p,`Add wall`)}),(0,d.jsx)(`button`,{className:`quiet`,disabled:e.footprint.edges.length<=3,onClick:()=>v(!1),children:h(p,`Remove last wall`)})]}),u?.suggestedDiagonal&&(0,d.jsxs)(`label`,{className:`field`,children:[`Diagonal `,u.suggestedDiagonal.startVertexId,` → `,u.suggestedDiagonal.endVertexId,` (m)`,(0,d.jsx)(`small`,{children:u.suggestedDiagonal.reason}),(0,d.jsx)(`input`,{type:`number`,min:`0`,step:`any`,value:e.footprint.diagonals?.[0]?.lengthM??``,onChange:t=>m({...e,footprint:{...e.footprint,diagonals:t.target.value?[{startVertexId:u.suggestedDiagonal.startVertexId,endVertexId:u.suggestedDiagonal.endVertexId,lengthM:Number(t.target.value)}]:[]}})})]}),(0,d.jsxs)(`details`,{open:!!g,children:[(0,d.jsx)(`summary`,{children:h(p,`Room programme`)}),g?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`p`,{children:h(p,`Requested dimensions. Every value is checked by the shared engine.`)}),(0,d.jsx)(`div`,{className:`programme-grid`,children:_.map(([t,n])=>(0,d.jsxs)(`label`,{className:`field`,children:[h(p,n),` (m)`,(0,d.jsxs)(`small`,{children:[h(p,`user-given`),` · `,h(p,`unconfirmed`)]}),(0,d.jsx)(`input`,{type:`number`,min:`0`,step:`0.01`,value:Number.isFinite(g[t])?g[t]:``,onChange:n=>m({...e,programme:{...g,[t]:n.target.value===``?NaN:Number(n.target.value)}})})]},t))}),[`entranceEdgeId`,`balconyEdgeId`].map(t=>(0,d.jsxs)(`label`,{className:`field`,children:[h(p,t===`entranceEdgeId`?`Entrance wall`:`Balcony wall`),(0,d.jsxs)(`select`,{value:g[t],onChange:n=>m({...e,programme:{...g,[t]:n.target.value}}),children:[(0,d.jsx)(`option`,{value:``,children:h(p,`Choose a wall`)}),e.footprint.edges.map(e=>(0,d.jsx)(`option`,{children:e.id},e.id))]})]},t))]}):(0,d.jsxs)(`p`,{children:[`This example uses engine concept programme assumptions. They remain estimated until replaced with your own dimensions. `,(0,d.jsx)(`button`,{className:`textbtn`,onClick:()=>m({...e,programme:oe(e.language).programme}),children:`Enter my own room dimensions`})]})]}),(0,d.jsxs)(`label`,{className:`field`,children:[h(p,`Main view wall`),(0,d.jsxs)(`select`,{value:e.viewEdgeId,onChange:t=>m({...e,viewEdgeId:t.target.value}),children:[(0,d.jsx)(`option`,{value:``,children:h(p,`No preference`)}),e.footprint.edges.map(e=>(0,d.jsx)(`option`,{children:e.id},e.id))]})]}),(0,d.jsxs)(`label`,{className:`field`,children:[h(p,`Clear ceiling height (m)`),(0,d.jsx)(`small`,{children:e.buildUps?.clearCeilingHeightM==null?`estimated default · unconfirmed`:`user-given · unconfirmed`}),(0,d.jsx)(`input`,{type:`number`,step:`0.01`,min:`0`,value:Number(e.buildUps?.clearCeilingHeightM??2.8),onChange:t=>m({...e,buildUps:{...e.buildUps,clearCeilingHeightM:Number(t.target.value)}})})]}),(0,d.jsx)(`p`,{children:`Other wall/slab build-ups remain labelled concept placeholders from the shared engine.`}),(0,d.jsxs)(`label`,{className:`field`,children:[h(p,`Country`),(0,d.jsxs)(`select`,{value:e.country,onChange:t=>m({...e,country:t.target.value}),children:[(0,d.jsx)(`option`,{children:`unspecified`}),(0,d.jsx)(`option`,{children:`Lebanon`}),(0,d.jsx)(`option`,{children:`Germany`})]})]}),(0,d.jsxs)(`label`,{className:`confirmation`,children:[(0,d.jsx)(`input`,{type:`checkbox`,checked:i,onChange:e=>a(e.target.checked)}),h(p,`I confirm these measured dimensions and angle assumptions.`)]}),(0,d.jsx)(`button`,{className:`ink full`,disabled:s||!i,onClick:o,children:h(p,`Check footprint & generate`)}),(0,d.jsx)(`button`,{className:`outline full`,onClick:c,children:h(p,`Attach sketch`)})]}),(0,d.jsx)(`aside`,{className:`paper measure-sketch`,children:l?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(`img`,{className:`uploaded-preview`,src:l,alt:`Your selected sketch, local preview`}),(0,d.jsx)(`p`,{children:h(p,`Local image preview. No dimensions are inferred from this display.`)})]}):(0,d.jsxs)(`div`,{className:`empty`,children:[(0,d.jsx)(`h3`,{children:h(p,`Your measurements define the plan.`)}),(0,d.jsx)(`p`,{children:h(p,`Attach your sketch for reference. There is no sample footprint hidden behind this form.`)}),(0,d.jsx)(`button`,{className:`outline`,onClick:c,children:h(p,`Choose sketch image`)})]})})]})}function ge({candidate:e}){let t=e.reconciliation?.status===`Unique`?e.reconciliation.solutions[0]?.vertices:null,n=new Map;for(let t of e.values.values){let e=/^sketch\.topology\.vertices\.([A-Za-z0-9_-]+)\.(x|y)$/.exec(t.path);if(e){let r=n.get(e[1])??{x:NaN,y:NaN};r[e[2]]=t.value,n.set(e[1],r)}}let r=t?.length?t.map(e=>({id:e.id,x:e.position.x,y:-e.position.y})):e.input?.edges.map(e=>({id:e.startVertexId,...n.get(e.startVertexId)})).filter(e=>Number.isFinite(e.x)&&Number.isFinite(e.y))??[];if(r.length<3||r.length!==e.input?.edges.length)return null;let i=Math.min(...r.map(e=>e.x)),a=Math.min(...r.map(e=>e.y)),o=Math.max(...r.map(e=>e.x))-i,s=Math.max(...r.map(e=>e.y))-a,c=Math.min(560/Math.max(o,1e-6),300/Math.max(s,1e-6)),l=r.map(e=>({id:e.id,x:40+(e.x-i)*c,y:40+(e.y-a)*c}));return(0,d.jsxs)(`figure`,{className:`recognized-outline`,children:[(0,d.jsxs)(`svg`,{viewBox:`0 0 640 390`,role:`img`,"aria-label":`Unconfirmed recognized outline preview`,children:[(0,d.jsx)(`polygon`,{points:l.map(e=>`${e.x},${e.y}`).join(` `),fill:`rgba(41,124,112,.07)`,stroke:`#286e62`,strokeWidth:`2`}),l.map((t,n)=>{let r=l[(n+1)%l.length],i=e.input?.edges.find(e=>e.startVertexId===t.id);return(0,d.jsxs)(`g`,{children:[(0,d.jsx)(`circle`,{cx:t.x,cy:t.y,r:`3`,fill:`#286e62`}),(0,d.jsx)(`text`,{x:t.x+5,y:t.y-7,fontSize:`10`,children:t.id}),i&&(0,d.jsxs)(`text`,{x:(t.x+r.x)/2+5,y:(t.y+r.y)/2+12,fontSize:`11`,children:[i.id,` · `,i.lengthM.toFixed(2),` m [estimated]`]})]},t.id)})]}),(0,d.jsxs)(`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.`]})]})}exports.BIM_PACKAGE_ID=_,exports.BIM_PACKAGE_VERSION=v,exports.BimStudio=S,exports.checkBimLicense=ee,Object.defineProperty(exports,"clearLicense",{enumerable:!0,get:function(){return u.clearLicense}}),Object.defineProperty(exports,"disableTelemetry",{enumerable:!0,get:function(){return u.disableTelemetry}}),Object.defineProperty(exports,"enableTelemetry",{enumerable:!0,get:function(){return u.enableTelemetry}}),Object.defineProperty(exports,"setLicense",{enumerable:!0,get:function(){return u.setLicense}});
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { BimStudio } from './BimStudio';
|
|
2
|
+
export type { StudioProps } from './BimStudio';
|
|
3
|
+
export type { ProjectInput, Snapshot, Lang, SketchCandidate, SketchObservation, SavedArtifact, ValueReport } from './types';
|
|
4
|
+
export { setLicense, clearLicense, checkBimLicense, BIM_PACKAGE_ID, BIM_PACKAGE_VERSION, disableTelemetry, enableTelemetry } from './licensing';
|
|
5
|
+
export type { BimLicenseStatus } from './licensing';
|