|
|
-window.__Q__ = ${JSON.stringify({ cabinets: (quote.rooms || []).map((r, i) => ({ id: r.id, type: r.type.split(/\d$/)[0] || r.type, width: (quote.rooms || [])[i]?.kb ? undefined : parseFloat(String(r.dims || '0×0').split('×')[0]), height: 2.6, rawName: r.type })), config: quote.config, salesNote: salesNote })};
|
|
|
|
|
|
|
+window.__Q__ = ${JSON.stringify({ cabinets: (quote.rooms || []).map((r) => { const walls = (r.kb && Array.isArray(r.kb.walls)) ? r.kb.walls : undefined; const dm = String(r.dims || '').split('×'); const w = walls ? undefined : (parseFloat(dm[0]) || undefined); const h = parseFloat(dm[1]) || 2.6; return { id: r.id, type: String(r.type || '').replace(/\d$/, ''), rawName: r.type, width: w, height: h, walls: walls }; }), config: quote.config, salesNote: salesNote })};
|