ire-preview 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.es.js +338 -338
- package/package.json +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -54,8 +54,8 @@ function prepareDeps(o) {
|
|
|
54
54
|
function cleanupDeps(o) {
|
|
55
55
|
let e, t = o.depsTail, r = t;
|
|
56
56
|
for (; r; ) {
|
|
57
|
-
const
|
|
58
|
-
r.version === -1 ? (r === t && (t =
|
|
57
|
+
const c = r.prevDep;
|
|
58
|
+
r.version === -1 ? (r === t && (t = c), removeSub(r), removeDep(r)) : e = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = c;
|
|
59
59
|
}
|
|
60
60
|
o.deps = e, o.depsTail = t;
|
|
61
61
|
}
|
|
@@ -78,20 +78,20 @@ function refreshComputed(o) {
|
|
|
78
78
|
activeSub = o, shouldTrack = !0;
|
|
79
79
|
try {
|
|
80
80
|
prepareDeps(o);
|
|
81
|
-
const
|
|
82
|
-
(e.version === 0 || hasChanged(
|
|
83
|
-
} catch (
|
|
84
|
-
throw e.version++,
|
|
81
|
+
const c = o.fn(o._value);
|
|
82
|
+
(e.version === 0 || hasChanged(c, o._value)) && (o._value = c, e.version++);
|
|
83
|
+
} catch (c) {
|
|
84
|
+
throw e.version++, c;
|
|
85
85
|
} finally {
|
|
86
86
|
activeSub = t, shouldTrack = r, cleanupDeps(o), o.flags &= -3;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
function removeSub(o, e = !1) {
|
|
90
|
-
const { dep: t, prevSub: r, nextSub:
|
|
91
|
-
if (r && (r.nextSub =
|
|
90
|
+
const { dep: t, prevSub: r, nextSub: c } = o;
|
|
91
|
+
if (r && (r.nextSub = c, o.prevSub = void 0), c && (c.prevSub = r, o.nextSub = void 0), t.subs === o && (t.subs = r, !r && t.computed)) {
|
|
92
92
|
t.computed.flags &= -5;
|
|
93
|
-
for (let
|
|
94
|
-
removeSub(
|
|
93
|
+
for (let _ = t.computed.deps; _; _ = _.nextDep)
|
|
94
|
+
removeSub(_, !0);
|
|
95
95
|
}
|
|
96
96
|
!e && !--t.sc && t.map && t.map.delete(t.key);
|
|
97
97
|
}
|
|
@@ -170,8 +170,8 @@ class ComputedRefImpl {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
function computed(o, e, t = !1) {
|
|
173
|
-
let r,
|
|
174
|
-
return isFunction(o) ? r = o : (r = o.get,
|
|
173
|
+
let r, c;
|
|
174
|
+
return isFunction(o) ? r = o : (r = o.get, c = o.set), new ComputedRefImpl(r, c, t);
|
|
175
175
|
}
|
|
176
176
|
const _hoisted_1$f = {
|
|
177
177
|
key: 0,
|
|
@@ -219,7 +219,7 @@ const _hoisted_1$f = {
|
|
|
219
219
|
return (e, t) => (openBlock(), createElementBlock("div", null, [
|
|
220
220
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
221
221
|
default: withCtx(() => {
|
|
222
|
-
var r,
|
|
222
|
+
var r, c, _, m, y, p, f, x, v, s, n, i, d, l, a, h, u, k, g, b, w, C, V, $, E, B, N;
|
|
223
223
|
return [
|
|
224
224
|
e.type && e.hoveredData && e.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
225
225
|
e.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
@@ -227,33 +227,33 @@ const _hoisted_1$f = {
|
|
|
227
227
|
createElementVNode("p", _hoisted_4$5, toDisplayString((r = e.hoveredData) == null ? void 0 : r.floor_number), 1),
|
|
228
228
|
t[0] || (t[0] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Floor", -1))
|
|
229
229
|
]),
|
|
230
|
-
(
|
|
231
|
-
(
|
|
232
|
-
(
|
|
233
|
-
createElementVNode("p", _hoisted_9$1, toDisplayString(((
|
|
230
|
+
(c = e.hoveredData) != null && c.conf || (m = (_ = e.hoveredData) == null ? void 0 : _.flats) != null && m.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
231
|
+
(y = e.hoveredData) != null && y.conf ? (openBlock(), createElementBlock("div", _hoisted_6$1, toDisplayString((p = e.hoveredData) == null ? void 0 : p.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
232
|
+
(x = (f = e.hoveredData) == null ? void 0 : f.counts) != null && x.available ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
233
|
+
createElementVNode("p", _hoisted_9$1, toDisplayString(((s = (v = e.hoveredData) == null ? void 0 : v.counts) == null ? void 0 : s.available) || 0), 1),
|
|
234
234
|
t[1] || (t[1] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Available", -1))
|
|
235
235
|
])) : createCommentVNode("", !0),
|
|
236
|
-
(
|
|
237
|
-
createElementVNode("p", _hoisted_11$1, toDisplayString((l = (
|
|
236
|
+
(i = (n = e.hoveredData) == null ? void 0 : n.counts) != null && i.reserved ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
237
|
+
createElementVNode("p", _hoisted_11$1, toDisplayString((l = (d = e.hoveredData) == null ? void 0 : d.counts) == null ? void 0 : l.reserved), 1),
|
|
238
238
|
t[2] || (t[2] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Reserved", -1))
|
|
239
239
|
])) : createCommentVNode("", !0),
|
|
240
|
-
(
|
|
241
|
-
createElementVNode("p", _hoisted_13$1, toDisplayString((
|
|
240
|
+
(h = (a = e.hoveredData) == null ? void 0 : a.counts) != null && h.sold ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
|
|
241
|
+
createElementVNode("p", _hoisted_13$1, toDisplayString((k = (u = e.hoveredData) == null ? void 0 : u.counts) == null ? void 0 : k.sold), 1),
|
|
242
242
|
t[3] || (t[3] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Sold", -1))
|
|
243
243
|
])) : createCommentVNode("", !0)
|
|
244
244
|
]))
|
|
245
245
|
])) : createCommentVNode("", !0)
|
|
246
246
|
])) : e.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
|
|
247
247
|
createElementVNode("div", _hoisted_15$1, [
|
|
248
|
-
createElementVNode("p", _hoisted_16$1, toDisplayString((
|
|
248
|
+
createElementVNode("p", _hoisted_16$1, toDisplayString((g = e.hoveredData) == null ? void 0 : g.title), 1)
|
|
249
249
|
])
|
|
250
250
|
])) : e.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_17$1, [
|
|
251
251
|
createElementVNode("div", _hoisted_18$1, [
|
|
252
|
-
createElementVNode("p", _hoisted_19$1, toDisplayString((
|
|
252
|
+
createElementVNode("p", _hoisted_19$1, toDisplayString((b = e.hoveredData) == null ? void 0 : b.flat_number), 1),
|
|
253
253
|
t[4] || (t[4] = createElementVNode("p", { class: "!ire-mt-2 !ire-text-xs ire-uppercase" }, "Apartment", -1))
|
|
254
254
|
]),
|
|
255
255
|
createElementVNode("div", _hoisted_20$1, [
|
|
256
|
-
(
|
|
256
|
+
(w = e.hoveredData) != null && w.conf ? (openBlock(), createElementBlock("p", _hoisted_21$1, toDisplayString(e.hoveredData.conf), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
257
257
|
t[7] || (t[7] = createElementVNode("p", { class: "!ire-text-xs ire-uppercase ire-text-gray-500" }, "Price", -1)),
|
|
258
258
|
(C = e.hoveredData) != null && C.price ? (openBlock(), createElementBlock("div", _hoisted_22$1, [
|
|
259
259
|
createElementVNode("div", null, [
|
|
@@ -319,95 +319,95 @@ const _hoisted_1$f = {
|
|
|
319
319
|
},
|
|
320
320
|
emits: ["changeComponent"],
|
|
321
321
|
setup(o, { emit: e }) {
|
|
322
|
-
const t = e, r = o,
|
|
322
|
+
const t = e, r = o, c = ref(), _ = ref(), m = ref(null), y = computed(() => {
|
|
323
323
|
if (r.project)
|
|
324
324
|
return r.project.svg;
|
|
325
|
-
}),
|
|
326
|
-
var
|
|
327
|
-
const
|
|
328
|
-
(
|
|
329
|
-
)) == null ? void 0 :
|
|
330
|
-
return JSON.parse((
|
|
331
|
-
}),
|
|
332
|
-
const
|
|
333
|
-
|
|
334
|
-
},
|
|
335
|
-
var
|
|
336
|
-
const
|
|
337
|
-
(
|
|
325
|
+
}), p = computed(() => {
|
|
326
|
+
var s, n;
|
|
327
|
+
const v = (n = (s = r.projectMeta) == null ? void 0 : s.find(
|
|
328
|
+
(i) => (i == null ? void 0 : i.meta_key) === "project_img_contain"
|
|
329
|
+
)) == null ? void 0 : n.meta_value;
|
|
330
|
+
return JSON.parse((v == null ? void 0 : v.toString()) || "false");
|
|
331
|
+
}), f = (v) => {
|
|
332
|
+
const s = v.target;
|
|
333
|
+
s && (c.value = s);
|
|
334
|
+
}, x = (v) => {
|
|
335
|
+
var n, i, d;
|
|
336
|
+
const s = v.target;
|
|
337
|
+
(s == null ? void 0 : s.nodeName) === "path" && (((n = _.value) == null ? void 0 : n.conf) === "sold" || ((i = _.value) == null ? void 0 : i.conf) === "reserved" || t("changeComponent", ((d = m.value) == null ? void 0 : d.type) || "", _ == null ? void 0 : _.value));
|
|
338
338
|
};
|
|
339
339
|
return watch(
|
|
340
|
-
() =>
|
|
341
|
-
(
|
|
342
|
-
var
|
|
343
|
-
if (!
|
|
344
|
-
const
|
|
345
|
-
if (
|
|
346
|
-
const
|
|
347
|
-
if (!
|
|
348
|
-
const
|
|
349
|
-
switch ((
|
|
340
|
+
() => c.value,
|
|
341
|
+
(v) => {
|
|
342
|
+
var n, i, d, l, a, h, u;
|
|
343
|
+
if (!v) return;
|
|
344
|
+
const s = v.parentElement;
|
|
345
|
+
if (s && (s == null ? void 0 : s.nodeName) === "g") {
|
|
346
|
+
const k = s == null ? void 0 : s.getAttribute("id");
|
|
347
|
+
if (!k || (m.value = ((n = r.project) == null ? void 0 : n.polygon_data.find((b) => (b == null ? void 0 : b.key) === k)) || null, !m.value)) return;
|
|
348
|
+
const g = (i = m.value) == null ? void 0 : i.id;
|
|
349
|
+
switch ((d = m.value) == null ? void 0 : d.type) {
|
|
350
350
|
case "floor":
|
|
351
|
-
const
|
|
352
|
-
($) => $.id ===
|
|
351
|
+
const b = (l = r.floors) == null ? void 0 : l.find(
|
|
352
|
+
($) => $.id === g
|
|
353
353
|
);
|
|
354
|
-
|
|
354
|
+
_.value = b;
|
|
355
355
|
break;
|
|
356
356
|
case "block":
|
|
357
|
-
const
|
|
358
|
-
($) => ($ == null ? void 0 : $.id) ===
|
|
357
|
+
const w = (a = r.blocks) == null ? void 0 : a.find(
|
|
358
|
+
($) => ($ == null ? void 0 : $.id) === g
|
|
359
359
|
);
|
|
360
|
-
|
|
360
|
+
_.value = w;
|
|
361
361
|
break;
|
|
362
362
|
case "flat":
|
|
363
|
-
const C = (
|
|
364
|
-
($) => ($ == null ? void 0 : $.id) ===
|
|
363
|
+
const C = (h = r.flats) == null ? void 0 : h.find(
|
|
364
|
+
($) => ($ == null ? void 0 : $.id) === g
|
|
365
365
|
);
|
|
366
|
-
|
|
366
|
+
_.value = C;
|
|
367
367
|
break;
|
|
368
368
|
case "tooltip":
|
|
369
|
-
const V = (
|
|
370
|
-
($) => ($ == null ? void 0 : $.id) ===
|
|
369
|
+
const V = (u = r.actions) == null ? void 0 : u.find(
|
|
370
|
+
($) => ($ == null ? void 0 : $.id) === g
|
|
371
371
|
);
|
|
372
|
-
|
|
372
|
+
_.value = V;
|
|
373
373
|
break;
|
|
374
374
|
default:
|
|
375
|
-
|
|
375
|
+
_.value = null;
|
|
376
376
|
break;
|
|
377
377
|
}
|
|
378
378
|
} else
|
|
379
|
-
|
|
379
|
+
m.value = null, _.value = null;
|
|
380
380
|
}
|
|
381
|
-
), (
|
|
382
|
-
var
|
|
381
|
+
), (v, s) => {
|
|
382
|
+
var n;
|
|
383
383
|
return openBlock(), createBlock(_sfc_main$f, {
|
|
384
|
-
hoverdData:
|
|
385
|
-
type: (
|
|
384
|
+
hoverdData: _.value,
|
|
385
|
+
type: (n = m.value) == null ? void 0 : n.type
|
|
386
386
|
}, {
|
|
387
387
|
default: withCtx(() => {
|
|
388
|
-
var
|
|
388
|
+
var i, d, l, a, h, u;
|
|
389
389
|
return [
|
|
390
390
|
createElementVNode("div", _hoisted_1$d, [
|
|
391
391
|
createElementVNode("img", {
|
|
392
|
-
src: (l = (
|
|
392
|
+
src: (l = (d = (i = v.project) == null ? void 0 : i.project_image) == null ? void 0 : d[0]) == null ? void 0 : l.url,
|
|
393
393
|
alt: "",
|
|
394
394
|
class: normalizeClass(["ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full", {
|
|
395
|
-
"ire-object-contain": unref(
|
|
396
|
-
"ire-object-cover": !unref(
|
|
395
|
+
"ire-object-contain": unref(p),
|
|
396
|
+
"ire-object-cover": !unref(p)
|
|
397
397
|
}])
|
|
398
398
|
}, null, 10, _hoisted_2$6),
|
|
399
399
|
(openBlock(), createElementBlock("div", {
|
|
400
400
|
class: normalizeClass(["canvas ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full [&_path]:ire-cursor-pointer [&_path]:ire-fill-[var(--path-color)] [&_path]:ire-transition-all", [
|
|
401
401
|
{
|
|
402
|
-
"hover:[&_path]:ire-fill-[var(--reserved-color)]":
|
|
403
|
-
"hover:[&_path]:ire-fill-[var(--sold-color)]":
|
|
404
|
-
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((
|
|
402
|
+
"hover:[&_path]:ire-fill-[var(--reserved-color)]": _.value && ((a = _.value) == null ? void 0 : a.conf) === "reserved",
|
|
403
|
+
"hover:[&_path]:ire-fill-[var(--sold-color)]": _.value && ((h = _.value) == null ? void 0 : h.conf) === "sold",
|
|
404
|
+
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((u = _.value) != null && u.conf)
|
|
405
405
|
}
|
|
406
406
|
]]),
|
|
407
|
-
innerHTML: unref(
|
|
408
|
-
key: unref(
|
|
409
|
-
onMouseover:
|
|
410
|
-
onClick:
|
|
407
|
+
innerHTML: unref(y),
|
|
408
|
+
key: unref(y),
|
|
409
|
+
onMouseover: f,
|
|
410
|
+
onClick: x
|
|
411
411
|
}, null, 42, _hoisted_3$5))
|
|
412
412
|
])
|
|
413
413
|
];
|
|
@@ -438,15 +438,15 @@ const _hoisted_1$f = {
|
|
|
438
438
|
t.label ? (openBlock(), createElementBlock("p", _hoisted_2$5, toDisplayString(t.label), 1)) : createCommentVNode("", !0),
|
|
439
439
|
createElementVNode("div", _hoisted_3$4, [
|
|
440
440
|
withDirectives(createElementVNode("select", {
|
|
441
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
441
|
+
"onUpdate:modelValue": r[0] || (r[0] = (c) => e.value = c),
|
|
442
442
|
class: "ire-w-full ire-cursor-pointer ire-appearance-none ire-rounded-none ire-bg-transparent ire-py-2 ire-pl-3 ire-pr-8 ire-text-sm ire-text-slate-700 ire-shadow-sm ire-transition ire-duration-300 ire-ease-linear placeholder:ire-text-slate-400 hover:ire-border-slate-400 focus:ire-border-slate-400 focus:ire-shadow-md focus:ire-outline-none"
|
|
443
443
|
}, [
|
|
444
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(t.data, (
|
|
445
|
-
var
|
|
444
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(t.data, (c) => {
|
|
445
|
+
var _, m;
|
|
446
446
|
return openBlock(), createElementBlock("option", {
|
|
447
|
-
value:
|
|
448
|
-
disabled: ((
|
|
449
|
-
}, toDisplayString(
|
|
447
|
+
value: c.value,
|
|
448
|
+
disabled: ((_ = c == null ? void 0 : c.title) == null ? void 0 : _.includes("reserved")) || ((m = c == null ? void 0 : c.title) == null ? void 0 : m.includes("sold"))
|
|
449
|
+
}, toDisplayString(c.title), 9, _hoisted_4$4);
|
|
450
450
|
}), 256))
|
|
451
451
|
], 512), [
|
|
452
452
|
[vModelSelect, e.value]
|
|
@@ -470,8 +470,8 @@ const _hoisted_1$f = {
|
|
|
470
470
|
}
|
|
471
471
|
}), _export_sfc = (o, e) => {
|
|
472
472
|
const t = o.__vccOpts || o;
|
|
473
|
-
for (const [r,
|
|
474
|
-
t[r] =
|
|
473
|
+
for (const [r, c] of e)
|
|
474
|
+
t[r] = c;
|
|
475
475
|
return t;
|
|
476
476
|
}, _sfc_main$c = {}, _hoisted_1$b = {
|
|
477
477
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -507,149 +507,149 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
|
|
|
507
507
|
},
|
|
508
508
|
emits: ["changeComponent"],
|
|
509
509
|
setup(o, { emit: e }) {
|
|
510
|
-
const t = e, r = o,
|
|
510
|
+
const t = e, r = o, c = ref(), _ = ref(), m = ref(), y = ref(null), p = ref(), f = ref(), x = computed$1(() => {
|
|
511
511
|
var l;
|
|
512
512
|
if ((l = r.floor) != null && l.svg)
|
|
513
513
|
return r.floor.svg;
|
|
514
|
-
}),
|
|
514
|
+
}), v = computed$1(() => r.floors.filter(
|
|
515
515
|
(l) => {
|
|
516
|
-
var
|
|
516
|
+
var a, h;
|
|
517
517
|
return (
|
|
518
518
|
// floorItem.conf !== "reserved" &&
|
|
519
519
|
// floorItem.conf !== "sold" &&
|
|
520
|
-
(
|
|
520
|
+
(a = r.floor) != null && a.block_id ? (l == null ? void 0 : l.block_id) === ((h = r.floor) == null ? void 0 : h.block_id) : !(l != null && l.block_id)
|
|
521
521
|
);
|
|
522
522
|
}
|
|
523
523
|
).map((l) => {
|
|
524
|
-
var
|
|
525
|
-
const
|
|
526
|
-
(
|
|
527
|
-
var
|
|
528
|
-
return (
|
|
524
|
+
var h, u;
|
|
525
|
+
const a = (h = r.blocks) == null ? void 0 : h.find(
|
|
526
|
+
(k) => {
|
|
527
|
+
var g;
|
|
528
|
+
return (k == null ? void 0 : k.id) === ((g = l == null ? void 0 : l.block_id) == null ? void 0 : g.toString());
|
|
529
529
|
}
|
|
530
530
|
);
|
|
531
531
|
return {
|
|
532
|
-
title: ((
|
|
532
|
+
title: ((u = l == null ? void 0 : l.floor_number) == null ? void 0 : u.toString()) + " Floor" + (a != null && a.id ? ` - ${a == null ? void 0 : a.title}` : "") + (l != null && l.conf ? " " + l.conf : ""),
|
|
533
533
|
value: l == null ? void 0 : l.id
|
|
534
534
|
};
|
|
535
|
-
}).sort((l,
|
|
536
|
-
const
|
|
537
|
-
|
|
538
|
-
},
|
|
539
|
-
var
|
|
540
|
-
const
|
|
541
|
-
(
|
|
542
|
-
},
|
|
535
|
+
}).sort((l, a) => +(l == null ? void 0 : l.title) - +(a == null ? void 0 : a.title)) || []), s = (l) => {
|
|
536
|
+
const a = l.target;
|
|
537
|
+
a && (_.value = a);
|
|
538
|
+
}, n = (l) => {
|
|
539
|
+
var h, u, k;
|
|
540
|
+
const a = l.target;
|
|
541
|
+
(a == null ? void 0 : a.nodeName) === "path" && (y.value && "conf" in y.value && (((h = y.value) == null ? void 0 : h.conf) === "sold" || ((u = y.value) == null ? void 0 : u.conf) === "reserved") || t("changeComponent", ((k = m.value) == null ? void 0 : k.type) || "", y.value));
|
|
542
|
+
}, i = () => {
|
|
543
543
|
var l;
|
|
544
|
-
|
|
545
|
-
var
|
|
546
|
-
const
|
|
547
|
-
(E) => (E == null ? void 0 : E.key) ===
|
|
544
|
+
c.value && ((l = c.value) == null ? void 0 : l.querySelectorAll("g")).forEach((h) => {
|
|
545
|
+
var g, b, w, C, V, $;
|
|
546
|
+
const u = h == null ? void 0 : h.getAttribute("id"), k = (b = (g = r.floor) == null ? void 0 : g.polygon_data) == null ? void 0 : b.find(
|
|
547
|
+
(E) => (E == null ? void 0 : E.key) === u
|
|
548
548
|
);
|
|
549
549
|
if (r.flats)
|
|
550
|
-
if ((
|
|
551
|
-
|
|
550
|
+
if ((w = r.floor) != null && w.conf)
|
|
551
|
+
h.setAttribute("conf", ((C = r.floor) == null ? void 0 : C.conf) || "");
|
|
552
552
|
else {
|
|
553
553
|
const E = (V = r.flats) == null ? void 0 : V.find(
|
|
554
|
-
(B) => (B == null ? void 0 : B.id) === (
|
|
554
|
+
(B) => (B == null ? void 0 : B.id) === (k == null ? void 0 : k.id)
|
|
555
555
|
);
|
|
556
|
-
|
|
556
|
+
h == null || h.setAttribute("conf", (($ = E == null ? void 0 : E.conf) == null ? void 0 : $.toString()) || "");
|
|
557
557
|
}
|
|
558
558
|
});
|
|
559
|
-
},
|
|
559
|
+
}, d = () => {
|
|
560
560
|
var l;
|
|
561
|
-
(l = r.floor) != null && l.block_id ? t("changeComponent", "block",
|
|
561
|
+
(l = r.floor) != null && l.block_id ? t("changeComponent", "block", f.value) : t("changeComponent", "project", null);
|
|
562
562
|
};
|
|
563
563
|
return watch(
|
|
564
|
-
() =>
|
|
564
|
+
() => _.value,
|
|
565
565
|
(l) => {
|
|
566
|
-
var
|
|
566
|
+
var h, u, k, g, b, w;
|
|
567
567
|
if (!l) return;
|
|
568
|
-
const
|
|
569
|
-
if (
|
|
570
|
-
const C =
|
|
571
|
-
if (!C || (
|
|
572
|
-
if (((
|
|
573
|
-
const V = (
|
|
568
|
+
const a = l == null ? void 0 : l.parentElement;
|
|
569
|
+
if (a && (a == null ? void 0 : a.nodeName) === "g") {
|
|
570
|
+
const C = a.getAttribute("id");
|
|
571
|
+
if (!C || (m.value = ((u = (h = r.floor) == null ? void 0 : h.polygon_data) == null ? void 0 : u.find((V) => (V == null ? void 0 : V.key) === C)) || null, !m.value)) return;
|
|
572
|
+
if (((k = m.value) == null ? void 0 : k.type) === "flat") {
|
|
573
|
+
const V = (g = r.flats) == null ? void 0 : g.find(
|
|
574
574
|
($) => {
|
|
575
575
|
var E;
|
|
576
|
-
return ($ == null ? void 0 : $.id) === ((E =
|
|
576
|
+
return ($ == null ? void 0 : $.id) === ((E = m.value) == null ? void 0 : E.id);
|
|
577
577
|
}
|
|
578
578
|
);
|
|
579
|
-
|
|
580
|
-
} else if (((
|
|
581
|
-
const V = (
|
|
579
|
+
y.value = V ?? null;
|
|
580
|
+
} else if (((b = m.value) == null ? void 0 : b.type) === "tooltip") {
|
|
581
|
+
const V = (w = r.actions) == null ? void 0 : w.find(
|
|
582
582
|
($) => {
|
|
583
583
|
var E;
|
|
584
|
-
return ($ == null ? void 0 : $.id) === ((E =
|
|
584
|
+
return ($ == null ? void 0 : $.id) === ((E = m.value) == null ? void 0 : E.id);
|
|
585
585
|
}
|
|
586
586
|
);
|
|
587
|
-
|
|
587
|
+
y.value = V ?? null;
|
|
588
588
|
} else
|
|
589
|
-
|
|
589
|
+
y.value = null;
|
|
590
590
|
} else
|
|
591
|
-
|
|
591
|
+
m.value = null;
|
|
592
592
|
}
|
|
593
593
|
), watch(
|
|
594
|
-
() =>
|
|
594
|
+
() => p.value,
|
|
595
595
|
() => {
|
|
596
|
-
var
|
|
597
|
-
const l = (
|
|
598
|
-
(
|
|
596
|
+
var a;
|
|
597
|
+
const l = (a = r.floors) == null ? void 0 : a.find(
|
|
598
|
+
(h) => (h == null ? void 0 : h.id) === (p == null ? void 0 : p.value)
|
|
599
599
|
);
|
|
600
600
|
l != null && l.conf || (l && t("changeComponent", "floor", l), setTimeout(() => {
|
|
601
|
-
|
|
601
|
+
i();
|
|
602
602
|
}, 0));
|
|
603
603
|
}
|
|
604
604
|
), onMounted(() => {
|
|
605
|
-
var l,
|
|
606
|
-
|
|
607
|
-
(
|
|
608
|
-
var
|
|
609
|
-
return (
|
|
605
|
+
var l, a, h;
|
|
606
|
+
f.value = (l = r.blocks) == null ? void 0 : l.find(
|
|
607
|
+
(u) => {
|
|
608
|
+
var k, g;
|
|
609
|
+
return (u == null ? void 0 : u.id) === ((g = (k = r.floor) == null ? void 0 : k.block_id) == null ? void 0 : g.toString());
|
|
610
610
|
}
|
|
611
|
-
),
|
|
612
|
-
(
|
|
613
|
-
var
|
|
614
|
-
return (
|
|
611
|
+
), p.value = (h = (a = v.value) == null ? void 0 : a.find(
|
|
612
|
+
(u) => {
|
|
613
|
+
var k;
|
|
614
|
+
return (u == null ? void 0 : u.value) == ((k = r.floor) == null ? void 0 : k.id);
|
|
615
615
|
}
|
|
616
|
-
)) == null ? void 0 :
|
|
617
|
-
}), (l,
|
|
618
|
-
var
|
|
616
|
+
)) == null ? void 0 : h.value, i();
|
|
617
|
+
}), (l, a) => {
|
|
618
|
+
var h;
|
|
619
619
|
return openBlock(), createBlock(_sfc_main$f, {
|
|
620
|
-
hoverdData:
|
|
621
|
-
type: (
|
|
620
|
+
hoverdData: y.value,
|
|
621
|
+
type: (h = m.value) == null ? void 0 : h.type
|
|
622
622
|
}, {
|
|
623
623
|
header: withCtx(() => [
|
|
624
|
-
createVNode(_sfc_main$b, { onClick:
|
|
624
|
+
createVNode(_sfc_main$b, { onClick: d }),
|
|
625
625
|
createElementVNode("div", _hoisted_1$9, [
|
|
626
626
|
createVNode(_sfc_main$d, {
|
|
627
|
-
modelValue:
|
|
628
|
-
"onUpdate:modelValue":
|
|
629
|
-
data:
|
|
627
|
+
modelValue: p.value,
|
|
628
|
+
"onUpdate:modelValue": a[0] || (a[0] = (u) => p.value = u),
|
|
629
|
+
data: v.value
|
|
630
630
|
}, null, 8, ["modelValue", "data"])
|
|
631
631
|
])
|
|
632
632
|
]),
|
|
633
633
|
default: withCtx(() => {
|
|
634
|
-
var
|
|
634
|
+
var u, k, g, b, w;
|
|
635
635
|
return [
|
|
636
636
|
createElementVNode("div", _hoisted_2$4, [
|
|
637
637
|
createElementVNode("img", {
|
|
638
|
-
src: ((
|
|
638
|
+
src: ((g = (k = (u = l.floor) == null ? void 0 : u.floor_image) == null ? void 0 : k[0]) == null ? void 0 : g.url) || "",
|
|
639
639
|
alt: "",
|
|
640
640
|
class: normalizeClass(["ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full", {
|
|
641
|
-
"ire-object-contain": (
|
|
642
|
-
"ire-object-cover": !((
|
|
641
|
+
"ire-object-contain": (b = l.floor) == null ? void 0 : b.img_contain,
|
|
642
|
+
"ire-object-cover": !((w = l.floor) != null && w.img_contain)
|
|
643
643
|
}])
|
|
644
644
|
}, null, 10, _hoisted_3$3),
|
|
645
645
|
(openBlock(), createElementBlock("div", {
|
|
646
646
|
ref_key: "svgRef",
|
|
647
|
-
ref:
|
|
647
|
+
ref: c,
|
|
648
648
|
class: "canvas ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full [&_g[conf=reserved]_path]:ire-fill-[var(--reserved-color)] [&_g[conf=sold]_path]:ire-fill-[var(--sold-color)] [&_path]:ire-cursor-pointer [&_path]:ire-fill-[var(--path-color)] [&_path]:!ire-transition-all hover:[&_path]:ire-fill-[var(--path-hover-color)]",
|
|
649
|
-
innerHTML:
|
|
650
|
-
key:
|
|
651
|
-
onMouseover:
|
|
652
|
-
onClick:
|
|
649
|
+
innerHTML: x.value,
|
|
650
|
+
key: x.value,
|
|
651
|
+
onMouseover: s,
|
|
652
|
+
onClick: n
|
|
653
653
|
}, null, 40, _hoisted_4$3))
|
|
654
654
|
])
|
|
655
655
|
];
|
|
@@ -725,35 +725,35 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
725
725
|
},
|
|
726
726
|
emits: ["changeComponent"],
|
|
727
727
|
setup(o, { emit: e }) {
|
|
728
|
-
const t = e, r = o,
|
|
729
|
-
var
|
|
730
|
-
const
|
|
731
|
-
return ["I", "II", "III"].slice(0,
|
|
732
|
-
}),
|
|
733
|
-
var
|
|
734
|
-
const
|
|
735
|
-
(
|
|
736
|
-
var
|
|
737
|
-
return ((
|
|
728
|
+
const t = e, r = o, c = ref(!0), _ = ref(0), m = computed$1(() => {
|
|
729
|
+
var f, x, v, s, n, i;
|
|
730
|
+
const p = c.value ? (v = (x = (f = r.flat) == null ? void 0 : f.type) == null ? void 0 : x.image_2d) == null ? void 0 : v.length : (i = (n = (s = r.flat) == null ? void 0 : s.type) == null ? void 0 : n.image_3d) == null ? void 0 : i.length;
|
|
731
|
+
return ["I", "II", "III"].slice(0, p);
|
|
732
|
+
}), y = () => {
|
|
733
|
+
var f;
|
|
734
|
+
const p = (f = r.floors) == null ? void 0 : f.find(
|
|
735
|
+
(x) => {
|
|
736
|
+
var v, s, n, i, d, l;
|
|
737
|
+
return ((v = x.floor_number) == null ? void 0 : v.toString()) === ((n = (s = r.flat) == null ? void 0 : s.floor_number) == null ? void 0 : n.toString()) && ((i = r.flat) != null && i.block_id ? ((d = x == null ? void 0 : x.block_id) == null ? void 0 : d.toString()) === ((l = r.flat) == null ? void 0 : l.block_id) : !(x != null && x.block_id));
|
|
738
738
|
}
|
|
739
739
|
);
|
|
740
|
-
|
|
740
|
+
p ? t("changeComponent", "floor", p) : t("changeComponent", "project", null);
|
|
741
741
|
};
|
|
742
742
|
return watch(
|
|
743
|
-
() =>
|
|
743
|
+
() => c.value,
|
|
744
744
|
() => {
|
|
745
|
-
|
|
745
|
+
_.value = 0;
|
|
746
746
|
}
|
|
747
747
|
), onMounted(() => {
|
|
748
|
-
var
|
|
749
|
-
(
|
|
750
|
-
}), (
|
|
748
|
+
var p, f;
|
|
749
|
+
(f = (p = r.flat) == null ? void 0 : p.type) != null && f.image_2d || (c.value = !1);
|
|
750
|
+
}), (p, f) => (openBlock(), createElementBlock("div", null, [
|
|
751
751
|
createVNode(_sfc_main$f, { "hoverd-data": null }, {
|
|
752
752
|
header: withCtx(() => [
|
|
753
|
-
createVNode(_sfc_main$b, { onClick:
|
|
753
|
+
createVNode(_sfc_main$b, { onClick: y })
|
|
754
754
|
]),
|
|
755
755
|
default: withCtx(() => {
|
|
756
|
-
var
|
|
756
|
+
var x, v, s, n, i, d, l, a, h, u, k, g, b, w, C, V, $, E, B, N, j, L, T, R, P, O, F;
|
|
757
757
|
return [
|
|
758
758
|
createElementVNode("div", _hoisted_1$6, [
|
|
759
759
|
createElementVNode("div", _hoisted_2$3, [
|
|
@@ -764,13 +764,13 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
764
764
|
default: withCtx(() => {
|
|
765
765
|
var D, S, M, I, A, H, z, W, K, Z, q, U, J, Q, X, Y, G, ee, te, oe, re, ie, le, se;
|
|
766
766
|
return [
|
|
767
|
-
|
|
768
|
-
key: (W = (z = (H = (A =
|
|
769
|
-
src: (U = (q = (Z = (K =
|
|
767
|
+
c.value && ((I = (M = (S = (D = p.flat) == null ? void 0 : D.type) == null ? void 0 : S.image_2d) == null ? void 0 : M[_.value]) != null && I.url) ? (openBlock(), createElementBlock("img", {
|
|
768
|
+
key: (W = (z = (H = (A = p.flat) == null ? void 0 : A.type) == null ? void 0 : H.image_2d) == null ? void 0 : z[_.value]) == null ? void 0 : W.url,
|
|
769
|
+
src: (U = (q = (Z = (K = p.flat) == null ? void 0 : K.type) == null ? void 0 : Z.image_2d) == null ? void 0 : q[_.value]) == null ? void 0 : U.url,
|
|
770
770
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
|
|
771
|
-
}, null, 8, _hoisted_3$2)) : (Y = (X = (Q = (J =
|
|
772
|
-
src: (oe = (te = (ee = (G =
|
|
773
|
-
key: (se = (le = (ie = (re =
|
|
771
|
+
}, null, 8, _hoisted_3$2)) : (Y = (X = (Q = (J = p.flat) == null ? void 0 : J.type) == null ? void 0 : Q.image_3d) == null ? void 0 : X[_.value]) != null && Y.url ? (openBlock(), createElementBlock("img", {
|
|
772
|
+
src: (oe = (te = (ee = (G = p.flat) == null ? void 0 : G.type) == null ? void 0 : ee.image_3d) == null ? void 0 : te[_.value]) == null ? void 0 : oe.url,
|
|
773
|
+
key: (se = (le = (ie = (re = p.flat) == null ? void 0 : re.type) == null ? void 0 : ie.image_3d) == null ? void 0 : le[_.value]) == null ? void 0 : se.url,
|
|
774
774
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
|
|
775
775
|
}, null, 8, _hoisted_4$2)) : createCommentVNode("", !0)
|
|
776
776
|
];
|
|
@@ -779,93 +779,93 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
779
779
|
}),
|
|
780
780
|
createElementVNode("div", _hoisted_5, [
|
|
781
781
|
createElementVNode("div", _hoisted_6, [
|
|
782
|
-
(
|
|
782
|
+
(n = (s = (v = (x = p.flat) == null ? void 0 : x.type) == null ? void 0 : v.image_2d) == null ? void 0 : s[0]) != null && n.url ? (openBlock(), createElementBlock("div", {
|
|
783
783
|
key: 0,
|
|
784
|
-
class: normalizeClass(["ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-2 ire-rounded-lg ire-p-3 !ire-text-xs ire-transition-all hover:ire-bg-primary", { "!ire-bg-primary !ire-text-white":
|
|
785
|
-
onClick:
|
|
784
|
+
class: normalizeClass(["ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-2 ire-rounded-lg ire-p-3 !ire-text-xs ire-transition-all hover:ire-bg-primary", { "!ire-bg-primary !ire-text-white": c.value }]),
|
|
785
|
+
onClick: f[0] || (f[0] = (D) => c.value = !0)
|
|
786
786
|
}, [
|
|
787
787
|
createVNode(FlatIcon, {
|
|
788
|
-
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white":
|
|
788
|
+
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": c.value }])
|
|
789
789
|
}, null, 8, ["class"]),
|
|
790
790
|
createElementVNode("p", {
|
|
791
791
|
class: normalizeClass(["group-hover:!ire-text-white", {
|
|
792
|
-
"!ire-text-white":
|
|
793
|
-
"!ire-text-black": !
|
|
792
|
+
"!ire-text-white": c.value,
|
|
793
|
+
"!ire-text-black": !c.value
|
|
794
794
|
}])
|
|
795
795
|
}, " 2D plan ", 2)
|
|
796
796
|
], 2)) : createCommentVNode("", !0),
|
|
797
|
-
(
|
|
797
|
+
(a = (l = (d = (i = p.flat) == null ? void 0 : i.type) == null ? void 0 : d.image_3d) == null ? void 0 : l[0]) != null && a.url ? (openBlock(), createElementBlock("div", {
|
|
798
798
|
key: 1,
|
|
799
|
-
class: normalizeClass(["ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-2 ire-rounded-lg ire-p-3 !ire-text-xs ire-transition-all hover:ire-bg-primary", { "!ire-bg-primary !ire-text-white": !
|
|
800
|
-
onClick:
|
|
799
|
+
class: normalizeClass(["ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-2 ire-rounded-lg ire-p-3 !ire-text-xs ire-transition-all hover:ire-bg-primary", { "!ire-bg-primary !ire-text-white": !c.value }]),
|
|
800
|
+
onClick: f[1] || (f[1] = (D) => c.value = !1)
|
|
801
801
|
}, [
|
|
802
802
|
createElementVNode("div", null, [
|
|
803
803
|
createVNode(Cube, {
|
|
804
|
-
class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !
|
|
804
|
+
class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !c.value }])
|
|
805
805
|
}, null, 8, ["class"])
|
|
806
806
|
]),
|
|
807
807
|
createElementVNode("p", {
|
|
808
808
|
class: normalizeClass(["group-hover:!ire-text-white", {
|
|
809
|
-
"!ire-text-white": !
|
|
810
|
-
"!ire-text-black":
|
|
809
|
+
"!ire-text-white": !c.value,
|
|
810
|
+
"!ire-text-black": c.value
|
|
811
811
|
}])
|
|
812
812
|
}, " 3D plan ", 2)
|
|
813
813
|
], 2)) : createCommentVNode("", !0)
|
|
814
814
|
]),
|
|
815
|
-
((
|
|
816
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
815
|
+
((h = m.value) == null ? void 0 : h.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
816
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(m.value, (D, S) => (openBlock(), createElementBlock("div", {
|
|
817
817
|
key: D,
|
|
818
818
|
class: normalizeClass(["ire-flex ire-h-10 ire-w-10 ire-cursor-pointer ire-items-center ire-justify-center ire-rounded-lg ire-p-2 ire-transition-all hover:ire-bg-black hover:ire-text-white", {
|
|
819
|
-
"ire-bg-black ire-text-white":
|
|
819
|
+
"ire-bg-black ire-text-white": _.value === S
|
|
820
820
|
}]),
|
|
821
|
-
onClick: (M) =>
|
|
821
|
+
onClick: (M) => _.value = S
|
|
822
822
|
}, toDisplayString(D), 11, _hoisted_8))), 128))
|
|
823
823
|
])) : createCommentVNode("", !0)
|
|
824
824
|
])
|
|
825
825
|
]),
|
|
826
826
|
createElementVNode("div", _hoisted_9, [
|
|
827
827
|
createElementVNode("div", _hoisted_10, [
|
|
828
|
-
createElementVNode("p", _hoisted_11, toDisplayString((
|
|
829
|
-
|
|
828
|
+
createElementVNode("p", _hoisted_11, toDisplayString((u = p.flat) == null ? void 0 : u.flat_number), 1),
|
|
829
|
+
f[2] || (f[2] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Apartment", -1))
|
|
830
830
|
]),
|
|
831
831
|
createElementVNode("div", _hoisted_12, [
|
|
832
|
-
createElementVNode("p", _hoisted_13, toDisplayString((
|
|
833
|
-
createElementVNode("p", _hoisted_14, toDisplayString((
|
|
832
|
+
createElementVNode("p", _hoisted_13, toDisplayString((g = (k = p.flat) == null ? void 0 : k.type) == null ? void 0 : g.title), 1),
|
|
833
|
+
createElementVNode("p", _hoisted_14, toDisplayString((w = (b = p.flat) == null ? void 0 : b.type) == null ? void 0 : w.teaser), 1)
|
|
834
834
|
]),
|
|
835
835
|
createElementVNode("div", _hoisted_15, [
|
|
836
|
-
(C =
|
|
837
|
-
createElementVNode("p", _hoisted_17, toDisplayString((V =
|
|
838
|
-
|
|
836
|
+
(C = p.flat) != null && C.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
837
|
+
createElementVNode("p", _hoisted_17, toDisplayString((V = p.flat) == null ? void 0 : V.floor_number), 1),
|
|
838
|
+
f[3] || (f[3] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Floor", -1))
|
|
839
839
|
])) : createCommentVNode("", !0),
|
|
840
|
-
(E = ($ =
|
|
841
|
-
createElementVNode("p", _hoisted_19, toDisplayString((B =
|
|
842
|
-
|
|
840
|
+
(E = ($ = p.flat) == null ? void 0 : $.type) != null && E.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
841
|
+
createElementVNode("p", _hoisted_19, toDisplayString((B = p.flat) == null ? void 0 : B.type.rooms_count), 1),
|
|
842
|
+
f[4] || (f[4] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Room", -1))
|
|
843
843
|
])) : createCommentVNode("", !0)
|
|
844
844
|
]),
|
|
845
|
-
(j = (N =
|
|
845
|
+
(j = (N = p.flat) == null ? void 0 : N.type) != null && j.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
846
846
|
createElementVNode("p", _hoisted_21, [
|
|
847
|
-
createTextVNode(toDisplayString((L =
|
|
848
|
-
|
|
847
|
+
createTextVNode(toDisplayString((L = p.flat) == null ? void 0 : L.type.area_m2) + " ", 1),
|
|
848
|
+
f[5] || (f[5] = createElementVNode("span", { class: "ire-font-light" }, [
|
|
849
849
|
createTextVNode(" M "),
|
|
850
850
|
createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
|
|
851
851
|
], -1))
|
|
852
852
|
]),
|
|
853
|
-
|
|
853
|
+
f[6] || (f[6] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Area", -1))
|
|
854
854
|
])) : createCommentVNode("", !0),
|
|
855
|
-
(T =
|
|
855
|
+
(T = p.flat) != null && T.price ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
856
856
|
createElementVNode("div", null, [
|
|
857
|
-
(R =
|
|
858
|
-
createElementVNode("p", _hoisted_25, toDisplayString(Number((O =
|
|
857
|
+
(R = p.flat) != null && R.offer_price ? (openBlock(), createElementBlock("div", _hoisted_24, [
|
|
858
|
+
createElementVNode("p", _hoisted_25, toDisplayString(Number((O = p.flat) == null ? void 0 : O.price).toLocaleString()), 1),
|
|
859
859
|
createElementVNode("p", _hoisted_26, [
|
|
860
|
-
createTextVNode(toDisplayString(Number((F =
|
|
861
|
-
|
|
860
|
+
createTextVNode(toDisplayString(Number((F = p.flat) == null ? void 0 : F.offer_price).toLocaleString()), 1),
|
|
861
|
+
f[8] || (f[8] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
|
|
862
862
|
])
|
|
863
863
|
])) : (openBlock(), createElementBlock("p", _hoisted_23, [
|
|
864
|
-
createTextVNode(toDisplayString(Number((P =
|
|
865
|
-
|
|
864
|
+
createTextVNode(toDisplayString(Number((P = p.flat) == null ? void 0 : P.price).toLocaleString()), 1),
|
|
865
|
+
f[7] || (f[7] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
|
|
866
866
|
]))
|
|
867
867
|
]),
|
|
868
|
-
|
|
868
|
+
f[9] || (f[9] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Price", -1))
|
|
869
869
|
])) : createCommentVNode("", !0)
|
|
870
870
|
])
|
|
871
871
|
])
|
|
@@ -930,15 +930,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
930
930
|
},
|
|
931
931
|
setup(o) {
|
|
932
932
|
return (e, t) => {
|
|
933
|
-
var r,
|
|
933
|
+
var r, c, _, m, y, p, f, x, v, s, n, i;
|
|
934
934
|
return openBlock(), createElementBlock("div", null, [
|
|
935
|
-
createElementVNode("p", _hoisted_1$2, toDisplayString((
|
|
935
|
+
createElementVNode("p", _hoisted_1$2, toDisplayString((c = (r = e.modalData) == null ? void 0 : r.modalObject) == null ? void 0 : c.title), 1),
|
|
936
936
|
createVNode(_sfc_main$4, {
|
|
937
|
-
editor: (
|
|
937
|
+
editor: (m = (_ = e.modalData) == null ? void 0 : _.modalObject) == null ? void 0 : m.description
|
|
938
938
|
}, null, 8, ["editor"]),
|
|
939
|
-
(
|
|
939
|
+
(x = (f = (p = (y = e.modalData) == null ? void 0 : y.modalObject) == null ? void 0 : p.modalImage) == null ? void 0 : f[0]) != null && x.url ? (openBlock(), createElementBlock("img", {
|
|
940
940
|
key: 0,
|
|
941
|
-
src: (
|
|
941
|
+
src: (i = (n = (s = (v = e.modalData) == null ? void 0 : v.modalObject) == null ? void 0 : s.modalImage) == null ? void 0 : n[0]) == null ? void 0 : i.url,
|
|
942
942
|
alt: "",
|
|
943
943
|
class: "ire-mt-5 ire-h-[400px] ire-w-full ire-object-contain"
|
|
944
944
|
}, null, 8, _hoisted_2$1)) : createCommentVNode("", !0)
|
|
@@ -955,101 +955,101 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
955
955
|
},
|
|
956
956
|
emits: ["changeComponent"],
|
|
957
957
|
setup(o, { emit: e }) {
|
|
958
|
-
const t = e, r = o,
|
|
959
|
-
var
|
|
960
|
-
if ((
|
|
961
|
-
return (
|
|
962
|
-
}),
|
|
963
|
-
const
|
|
964
|
-
|
|
965
|
-
},
|
|
966
|
-
var
|
|
967
|
-
const
|
|
968
|
-
(
|
|
958
|
+
const t = e, r = o, c = ref(), _ = ref(), m = ref(), y = ref(), p = computed$1(() => {
|
|
959
|
+
var v, s;
|
|
960
|
+
if ((v = r.block) != null && v.svg)
|
|
961
|
+
return (s = r.block) == null ? void 0 : s.svg;
|
|
962
|
+
}), f = (v) => {
|
|
963
|
+
const s = v.target;
|
|
964
|
+
s && (_.value = s);
|
|
965
|
+
}, x = (v) => {
|
|
966
|
+
var n, i, d;
|
|
967
|
+
const s = v.target;
|
|
968
|
+
(s == null ? void 0 : s.nodeName) === "path" && (((n = y.value) == null ? void 0 : n.conf) === "sold" || ((i = y.value) == null ? void 0 : i.conf) === "reserved" || t(
|
|
969
969
|
"changeComponent",
|
|
970
|
-
((
|
|
971
|
-
|
|
970
|
+
((d = m.value) == null ? void 0 : d.type) || "",
|
|
971
|
+
y.value
|
|
972
972
|
));
|
|
973
973
|
};
|
|
974
974
|
return watch(
|
|
975
|
-
() =>
|
|
976
|
-
(
|
|
977
|
-
var
|
|
978
|
-
if (!
|
|
979
|
-
const
|
|
980
|
-
if (
|
|
981
|
-
const
|
|
982
|
-
if (!
|
|
983
|
-
if (((
|
|
984
|
-
const
|
|
985
|
-
(
|
|
975
|
+
() => _.value,
|
|
976
|
+
(v) => {
|
|
977
|
+
var n, i, d, l, a, h, u, k;
|
|
978
|
+
if (!v) return;
|
|
979
|
+
const s = v == null ? void 0 : v.parentElement;
|
|
980
|
+
if (s && (s == null ? void 0 : s.nodeName) === "g") {
|
|
981
|
+
const g = s == null ? void 0 : s.getAttribute("id");
|
|
982
|
+
if (!g || (m.value = ((i = (n = r.block) == null ? void 0 : n.polygon_data) == null ? void 0 : i.find((b) => (b == null ? void 0 : b.key) === g)) || null, !m.value)) return;
|
|
983
|
+
if (((d = m.value) == null ? void 0 : d.type) === "floor") {
|
|
984
|
+
const b = (l = r.floors) == null ? void 0 : l.find(
|
|
985
|
+
(w) => {
|
|
986
986
|
var C;
|
|
987
|
-
return (
|
|
987
|
+
return (w == null ? void 0 : w.id) === ((C = m.value) == null ? void 0 : C.id);
|
|
988
988
|
}
|
|
989
989
|
);
|
|
990
|
-
|
|
991
|
-
} else if (((
|
|
992
|
-
const
|
|
993
|
-
(
|
|
990
|
+
y.value = b;
|
|
991
|
+
} else if (((a = m.value) == null ? void 0 : a.type) === "flat") {
|
|
992
|
+
const b = (h = r.flats) == null ? void 0 : h.find(
|
|
993
|
+
(w) => {
|
|
994
994
|
var C;
|
|
995
|
-
return (
|
|
995
|
+
return (w == null ? void 0 : w.id) === ((C = m.value) == null ? void 0 : C.id);
|
|
996
996
|
}
|
|
997
997
|
);
|
|
998
|
-
|
|
999
|
-
} else if (((
|
|
1000
|
-
const
|
|
1001
|
-
(
|
|
998
|
+
y.value = b;
|
|
999
|
+
} else if (((u = m.value) == null ? void 0 : u.type) === "tooltip") {
|
|
1000
|
+
const b = (k = r.actions) == null ? void 0 : k.find(
|
|
1001
|
+
(w) => {
|
|
1002
1002
|
var C;
|
|
1003
|
-
return (
|
|
1003
|
+
return (w == null ? void 0 : w.id) === ((C = m.value) == null ? void 0 : C.id);
|
|
1004
1004
|
}
|
|
1005
1005
|
);
|
|
1006
|
-
|
|
1006
|
+
y.value = b;
|
|
1007
1007
|
} else
|
|
1008
|
-
|
|
1008
|
+
y.value = null;
|
|
1009
1009
|
} else
|
|
1010
|
-
|
|
1010
|
+
m.value = null, y.value = null;
|
|
1011
1011
|
}
|
|
1012
|
-
), (
|
|
1013
|
-
var
|
|
1012
|
+
), (v, s) => {
|
|
1013
|
+
var n;
|
|
1014
1014
|
return openBlock(), createBlock(_sfc_main$f, {
|
|
1015
|
-
hoverdData:
|
|
1016
|
-
type: (
|
|
1015
|
+
hoverdData: y.value,
|
|
1016
|
+
type: (n = m.value) == null ? void 0 : n.type
|
|
1017
1017
|
}, {
|
|
1018
1018
|
header: withCtx(() => {
|
|
1019
|
-
var
|
|
1019
|
+
var i;
|
|
1020
1020
|
return [
|
|
1021
1021
|
createVNode(_sfc_main$b, {
|
|
1022
|
-
onClick:
|
|
1022
|
+
onClick: s[0] || (s[0] = (d) => v.$emit("changeComponent", "project", null))
|
|
1023
1023
|
}),
|
|
1024
|
-
createElementVNode("p", _hoisted_1$1, toDisplayString((
|
|
1024
|
+
createElementVNode("p", _hoisted_1$1, toDisplayString((i = v.block) == null ? void 0 : i.title), 1)
|
|
1025
1025
|
];
|
|
1026
1026
|
}),
|
|
1027
1027
|
default: withCtx(() => {
|
|
1028
|
-
var
|
|
1028
|
+
var i, d, l, a, h, u, k, g;
|
|
1029
1029
|
return [
|
|
1030
1030
|
createElementVNode("div", _hoisted_2, [
|
|
1031
1031
|
createElementVNode("img", {
|
|
1032
|
-
src: ((l = (
|
|
1032
|
+
src: ((l = (d = (i = v.block) == null ? void 0 : i.block_image) == null ? void 0 : d[0]) == null ? void 0 : l.url) || "",
|
|
1033
1033
|
alt: "",
|
|
1034
1034
|
class: normalizeClass(["ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full", {
|
|
1035
|
-
"ire-object-contain": (
|
|
1036
|
-
"ire-object-cover": !((
|
|
1035
|
+
"ire-object-contain": (a = v.block) == null ? void 0 : a.img_contain,
|
|
1036
|
+
"ire-object-cover": !((h = v.block) != null && h.img_contain)
|
|
1037
1037
|
}])
|
|
1038
1038
|
}, null, 10, _hoisted_3),
|
|
1039
1039
|
(openBlock(), createElementBlock("div", {
|
|
1040
1040
|
ref_key: "svgRef",
|
|
1041
|
-
ref:
|
|
1041
|
+
ref: c,
|
|
1042
1042
|
class: normalizeClass(["canvas ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full [&_path]:ire-cursor-pointer [&_path]:ire-fill-[var(--path-color)] [&_path]:ire-transition-all", [
|
|
1043
1043
|
{
|
|
1044
|
-
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((
|
|
1045
|
-
"hover:[&_path]:ire-fill-[var(--sold-color)]": ((
|
|
1046
|
-
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((
|
|
1044
|
+
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((u = y.value) == null ? void 0 : u.conf) === "reserved",
|
|
1045
|
+
"hover:[&_path]:ire-fill-[var(--sold-color)]": ((k = y.value) == null ? void 0 : k.conf) === "sold",
|
|
1046
|
+
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((g = y.value) != null && g.conf)
|
|
1047
1047
|
}
|
|
1048
1048
|
]]),
|
|
1049
|
-
innerHTML:
|
|
1050
|
-
key:
|
|
1051
|
-
onMouseover:
|
|
1052
|
-
onClick:
|
|
1049
|
+
innerHTML: p.value,
|
|
1050
|
+
key: p.value,
|
|
1051
|
+
onMouseover: f,
|
|
1052
|
+
onClick: x
|
|
1053
1053
|
}, null, 42, _hoisted_4))
|
|
1054
1054
|
])
|
|
1055
1055
|
];
|
|
@@ -1064,22 +1064,22 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1064
1064
|
shortcodeDataProps: {}
|
|
1065
1065
|
},
|
|
1066
1066
|
setup(__props) {
|
|
1067
|
-
var o, e, t, r,
|
|
1068
|
-
const props = __props, getMeta = (
|
|
1069
|
-
(
|
|
1067
|
+
var o, e, t, r, c, _, m, y, p, f, x, v;
|
|
1068
|
+
const props = __props, getMeta = (s) => props.shortcodeDataProps.meta.find(
|
|
1069
|
+
(n) => n.meta_key === s
|
|
1070
1070
|
), constants = ref({
|
|
1071
|
-
PREVIEW_PATH_COLOR: getMeta("path_color").meta_value || "rgba(255, 255, 255, 0.3)",
|
|
1072
|
-
PREVIEW_PATH_HOVER_COLOR: getMeta("path_hover_color").meta_value || "rgba(250, 250, 250, 0.54)",
|
|
1073
|
-
PREVIEW_RESERVED_COLOR: getMeta("reserved_color").meta_value || "rgba(255, 247, 89, 0.53)",
|
|
1074
|
-
PREVIEW_SOLD_COLOR: getMeta("sold_color").meta_value || "rgba(219, 64, 64, 0.45)",
|
|
1075
|
-
PREVIEW_STROKE_COLOR: getMeta("stroke_color").meta_value || "rgba(0, 0, 0, 1)",
|
|
1076
|
-
PREVIEW_STROKE_WIDTH: +getMeta("stroke_width").meta_value || 0
|
|
1071
|
+
PREVIEW_PATH_COLOR: ((o = getMeta("path_color")) == null ? void 0 : o.meta_value) || "rgba(255, 255, 255, 0.3)",
|
|
1072
|
+
PREVIEW_PATH_HOVER_COLOR: ((e = getMeta("path_hover_color")) == null ? void 0 : e.meta_value) || "rgba(250, 250, 250, 0.54)",
|
|
1073
|
+
PREVIEW_RESERVED_COLOR: ((t = getMeta("reserved_color")) == null ? void 0 : t.meta_value) || "rgba(255, 247, 89, 0.53)",
|
|
1074
|
+
PREVIEW_SOLD_COLOR: ((r = getMeta("sold_color")) == null ? void 0 : r.meta_value) || "rgba(219, 64, 64, 0.45)",
|
|
1075
|
+
PREVIEW_STROKE_COLOR: ((c = getMeta("stroke_color")) == null ? void 0 : c.meta_value) || "rgba(0, 0, 0, 1)",
|
|
1076
|
+
PREVIEW_STROKE_WIDTH: +((_ = getMeta("stroke_width")) == null ? void 0 : _.meta_value) || 0
|
|
1077
1077
|
}), colors = reactive({
|
|
1078
|
-
path: (
|
|
1079
|
-
path_hover: (
|
|
1080
|
-
reserved: (
|
|
1081
|
-
sold: (
|
|
1082
|
-
stroke_color: (
|
|
1078
|
+
path: (m = constants.value) == null ? void 0 : m.PREVIEW_PATH_COLOR,
|
|
1079
|
+
path_hover: (y = constants.value) == null ? void 0 : y.PREVIEW_PATH_HOVER_COLOR,
|
|
1080
|
+
reserved: (p = constants.value) == null ? void 0 : p.PREVIEW_RESERVED_COLOR,
|
|
1081
|
+
sold: (f = constants.value) == null ? void 0 : f.PREVIEW_SOLD_COLOR,
|
|
1082
|
+
stroke_color: (x = constants.value) == null ? void 0 : x.PREVIEW_STROKE_COLOR,
|
|
1083
1083
|
stroke_width: (v = constants.value) == null ? void 0 : v.PREVIEW_STROKE_WIDTH
|
|
1084
1084
|
}), cssVariables = computed$1(() => ({
|
|
1085
1085
|
"--reserved-color": colors.reserved,
|
|
@@ -1091,30 +1091,30 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1091
1091
|
})), shortcodeData = ref(props.shortcodeDataProps), flow = ref(
|
|
1092
1092
|
"projectFlow"
|
|
1093
1093
|
), hoveredData = ref(), showModal = ref(!1), activeBlock = ref(), activeFloor = ref(), project = computed$1(() => {
|
|
1094
|
-
var
|
|
1094
|
+
var s;
|
|
1095
1095
|
if (shortcodeData.value)
|
|
1096
|
-
return (
|
|
1096
|
+
return (s = shortcodeData.value) == null ? void 0 : s.project;
|
|
1097
1097
|
}), floors = computed$1(() => {
|
|
1098
|
-
var
|
|
1098
|
+
var s, n;
|
|
1099
1099
|
if (shortcodeData.value)
|
|
1100
|
-
return (
|
|
1101
|
-
var
|
|
1102
|
-
const
|
|
1103
|
-
var
|
|
1104
|
-
return (
|
|
1105
|
-
(
|
|
1106
|
-
var
|
|
1107
|
-
return
|
|
1100
|
+
return (s = shortcodeData.value.floors) == null || s.forEach((i) => {
|
|
1101
|
+
var a, h;
|
|
1102
|
+
const d = (h = (a = shortcodeData.value) == null ? void 0 : a.flats) == null ? void 0 : h.filter((u) => {
|
|
1103
|
+
var k;
|
|
1104
|
+
return (u == null ? void 0 : u.floor_number) !== ((k = i == null ? void 0 : i.floor_number) == null ? void 0 : k.toString()) ? !1 : i != null && i.polygon_data ? Object == null ? void 0 : Object.values(i == null ? void 0 : i.polygon_data).some(
|
|
1105
|
+
(b) => {
|
|
1106
|
+
var w;
|
|
1107
|
+
return b != null && b.type && (b == null ? void 0 : b.type) === "flat" && (b == null ? void 0 : b.id) === (u == null ? void 0 : u.id) ? i != null && i.block_id ? (u == null ? void 0 : u.block_id) === ((w = i == null ? void 0 : i.block_id) == null ? void 0 : w.toString()) : !(u != null && u.block_id) : !1;
|
|
1108
1108
|
}
|
|
1109
1109
|
) : !1;
|
|
1110
1110
|
});
|
|
1111
|
-
i.flats =
|
|
1112
|
-
const { conf:
|
|
1113
|
-
if (
|
|
1114
|
-
const
|
|
1115
|
-
|
|
1111
|
+
i.flats = d;
|
|
1112
|
+
const { conf: l } = i || {};
|
|
1113
|
+
if (d != null && d.length && !l) {
|
|
1114
|
+
const u = d == null ? void 0 : d.every((g) => (g == null ? void 0 : g.conf) === "reserved"), k = d == null ? void 0 : d.every((g) => (g == null ? void 0 : g.conf) === "sold");
|
|
1115
|
+
u ? i.conf = "reserved" : k && (i.conf = "sold");
|
|
1116
1116
|
}
|
|
1117
|
-
}), (
|
|
1117
|
+
}), (n = shortcodeData.value) == null ? void 0 : n.floors;
|
|
1118
1118
|
}), blocks = computed$1(() => {
|
|
1119
1119
|
if (shortcodeData.value)
|
|
1120
1120
|
return shortcodeData.value.blocks;
|
|
@@ -1122,27 +1122,27 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1122
1122
|
if (shortcodeData.value)
|
|
1123
1123
|
return shortcodeData.value.types;
|
|
1124
1124
|
}), flats = computed$1(() => {
|
|
1125
|
-
var
|
|
1125
|
+
var s, n;
|
|
1126
1126
|
if (shortcodeData.value)
|
|
1127
|
-
return (
|
|
1128
|
-
var
|
|
1127
|
+
return (n = (s = shortcodeData.value) == null ? void 0 : s.flats) == null ? void 0 : n.map((i) => {
|
|
1128
|
+
var d;
|
|
1129
1129
|
if (i != null && i.use_type || !(i != null && i.type)) {
|
|
1130
|
-
const
|
|
1131
|
-
|
|
1130
|
+
const l = (d = types.value) == null ? void 0 : d.find((a) => (a == null ? void 0 : a.id) === (i == null ? void 0 : i.type_id));
|
|
1131
|
+
l && (i.type = l);
|
|
1132
1132
|
}
|
|
1133
1133
|
return i;
|
|
1134
1134
|
});
|
|
1135
1135
|
}), actions = computed$1(() => {
|
|
1136
|
-
var
|
|
1136
|
+
var s;
|
|
1137
1137
|
if (shortcodeData.value)
|
|
1138
|
-
return (
|
|
1138
|
+
return (s = shortcodeData.value) == null ? void 0 : s.actions;
|
|
1139
1139
|
}), projectMeta = computed$1(() => {
|
|
1140
|
-
var
|
|
1140
|
+
var s;
|
|
1141
1141
|
if (shortcodeData.value)
|
|
1142
|
-
return (
|
|
1143
|
-
}), getColorMeta = (
|
|
1144
|
-
var
|
|
1145
|
-
return (i = (
|
|
1142
|
+
return (s = shortcodeData.value) == null ? void 0 : s.meta;
|
|
1143
|
+
}), getColorMeta = (s) => {
|
|
1144
|
+
var n, i;
|
|
1145
|
+
return (i = (n = projectMeta.value) == null ? void 0 : n.find((d) => (d == null ? void 0 : d.meta_key) === s)) == null ? void 0 : i.meta_value;
|
|
1146
1146
|
}, changeRoute = (flowType, polygonItem) => {
|
|
1147
1147
|
switch (flowType) {
|
|
1148
1148
|
case "project":
|
|
@@ -1169,8 +1169,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1169
1169
|
else if ((actionData == null ? void 0 : actionData.actionType) === "script")
|
|
1170
1170
|
try {
|
|
1171
1171
|
eval(actionData == null ? void 0 : actionData.script);
|
|
1172
|
-
} catch (
|
|
1173
|
-
console.error("Error executing script:",
|
|
1172
|
+
} catch (s) {
|
|
1173
|
+
console.error("Error executing script:", s);
|
|
1174
1174
|
}
|
|
1175
1175
|
break;
|
|
1176
1176
|
}
|
|
@@ -1178,10 +1178,10 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1178
1178
|
return watch(
|
|
1179
1179
|
() => projectMeta.value,
|
|
1180
1180
|
() => {
|
|
1181
|
-
const
|
|
1182
|
-
|
|
1181
|
+
const s = getColorMeta("path_color"), n = getColorMeta("path_hover_color"), i = getColorMeta("reserved_color"), d = getColorMeta("sold_color"), l = getColorMeta("stroke_color"), a = getColorMeta("stroke_width");
|
|
1182
|
+
s && (colors.path = s.toString()), n && (colors.path_hover = n.toString()), i && (colors.reserved = i.toString()), d && (colors.sold = d.toString()), l && (colors.stroke_color = l.toString()), a && (colors.stroke_width = Number(a));
|
|
1183
1183
|
}
|
|
1184
|
-
), (
|
|
1184
|
+
), (s, n) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
1185
1185
|
createVNode(Transition, {
|
|
1186
1186
|
name: "ire-fade-in-out",
|
|
1187
1187
|
mode: "out-in",
|
|
@@ -1197,14 +1197,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1197
1197
|
projectMeta: projectMeta.value,
|
|
1198
1198
|
blocks: blocks.value,
|
|
1199
1199
|
actions: actions.value,
|
|
1200
|
-
onChangeComponent:
|
|
1200
|
+
onChangeComponent: n[0] || (n[0] = (i, d) => changeRoute(i, d))
|
|
1201
1201
|
}, null, 8, ["project", "floors", "flats", "projectMeta", "blocks", "actions"])) : flow.value === "blockFlow" && flats.value && floors.value && blocks.value && activeBlock.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
1202
1202
|
key: 1,
|
|
1203
1203
|
block: activeBlock.value,
|
|
1204
1204
|
flats: flats.value,
|
|
1205
1205
|
floors: floors.value,
|
|
1206
1206
|
actions: actions.value,
|
|
1207
|
-
onChangeComponent:
|
|
1207
|
+
onChangeComponent: n[1] || (n[1] = (i, d) => changeRoute(i, d))
|
|
1208
1208
|
}, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$a, {
|
|
1209
1209
|
key: 2,
|
|
1210
1210
|
flats: flats.value,
|
|
@@ -1212,12 +1212,12 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1212
1212
|
floors: floors.value,
|
|
1213
1213
|
blocks: blocks.value,
|
|
1214
1214
|
actions: actions.value,
|
|
1215
|
-
onChangeComponent:
|
|
1215
|
+
onChangeComponent: n[2] || (n[2] = (i, d) => changeRoute(i, d))
|
|
1216
1216
|
}, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : flow.value === "flatFlow" ? (openBlock(), createBlock(_sfc_main$7, {
|
|
1217
1217
|
key: 3,
|
|
1218
1218
|
flat: hoveredData.value,
|
|
1219
1219
|
floors: floors.value,
|
|
1220
|
-
onChangeComponent:
|
|
1220
|
+
onChangeComponent: n[3] || (n[3] = (i, d) => changeRoute(i, d))
|
|
1221
1221
|
}, null, 8, ["flat", "floors"])) : createCommentVNode("", !0)
|
|
1222
1222
|
])) : createCommentVNode("", !0)
|
|
1223
1223
|
]),
|
|
@@ -1231,7 +1231,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1231
1231
|
default: withCtx(() => [
|
|
1232
1232
|
showModal.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
1233
1233
|
key: 0,
|
|
1234
|
-
onClose:
|
|
1234
|
+
onClose: n[4] || (n[4] = (i) => showModal.value = !1)
|
|
1235
1235
|
}, {
|
|
1236
1236
|
default: withCtx(() => [
|
|
1237
1237
|
createVNode(_sfc_main$3, { modalData: hoveredData.value }, null, 8, ["modalData"])
|