ire-preview 2.0.3 → 2.0.5
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
CHANGED
|
@@ -90,8 +90,8 @@ function removeSub(o, e = !1) {
|
|
|
90
90
|
const { dep: t, prevSub: r, nextSub: n } = o;
|
|
91
91
|
if (r && (r.nextSub = n, o.prevSub = void 0), n && (n.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 v = t.computed.deps; v; v = v.nextDep)
|
|
94
|
+
removeSub(v, !0);
|
|
95
95
|
}
|
|
96
96
|
!e && !--t.sc && t.map && t.map.delete(t.key);
|
|
97
97
|
}
|
|
@@ -219,48 +219,48 @@ 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, n,
|
|
222
|
+
var r, n, v, a, d, i, s, b, u, c, _, h, k, l, p, f, m, g, y, w, x, 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, [
|
|
226
226
|
createElementVNode("div", _hoisted_3$6, [
|
|
227
|
-
createElementVNode("p", _hoisted_4$5, toDisplayString(e.hoveredData.floor_number), 1),
|
|
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
|
-
(d = e.hoveredData) != null && d.conf ? (openBlock(), createElementBlock("div", _hoisted_6$1, toDisplayString(e.hoveredData.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
232
|
-
(
|
|
233
|
-
createElementVNode("p", _hoisted_9$1, toDisplayString(((
|
|
230
|
+
(n = e.hoveredData) != null && n.conf || (a = (v = e.hoveredData) == null ? void 0 : v.flats) != null && a.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
231
|
+
(d = e.hoveredData) != null && d.conf ? (openBlock(), createElementBlock("div", _hoisted_6$1, toDisplayString((i = e.hoveredData) == null ? void 0 : i.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
232
|
+
(b = (s = e.hoveredData) == null ? void 0 : s.counts) != null && b.available ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
233
|
+
createElementVNode("p", _hoisted_9$1, toDisplayString(((c = (u = e.hoveredData) == null ? void 0 : u.counts) == null ? void 0 : c.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(e.hoveredData.counts.reserved), 1),
|
|
236
|
+
(h = (_ = e.hoveredData) == null ? void 0 : _.counts) != null && h.reserved ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
237
|
+
createElementVNode("p", _hoisted_11$1, toDisplayString((l = (k = e.hoveredData) == null ? void 0 : k.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(e.hoveredData.counts.sold), 1),
|
|
240
|
+
(f = (p = e.hoveredData) == null ? void 0 : p.counts) != null && f.sold ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
|
|
241
|
+
createElementVNode("p", _hoisted_13$1, toDisplayString((g = (m = e.hoveredData) == null ? void 0 : m.counts) == null ? void 0 : g.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(e.hoveredData.title), 1)
|
|
248
|
+
createElementVNode("p", _hoisted_16$1, toDisplayString((y = e.hoveredData) == null ? void 0 : y.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((w = e.hoveredData) == null ? void 0 : w.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
|
+
(x = e.hoveredData) != null && x.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, [
|
|
260
|
-
(
|
|
261
|
-
createElementVNode("p", _hoisted_25$1, toDisplayString(Number((
|
|
260
|
+
(V = e.hoveredData) != null && V.offer_price ? (openBlock(), createElementBlock("div", _hoisted_24$1, [
|
|
261
|
+
createElementVNode("p", _hoisted_25$1, toDisplayString(Number(($ = e.hoveredData) == null ? void 0 : $.price).toLocaleString()), 1),
|
|
262
262
|
createElementVNode("p", _hoisted_26$1, [
|
|
263
|
-
createTextVNode(toDisplayString(Number((
|
|
263
|
+
createTextVNode(toDisplayString(Number((E = e.hoveredData) == null ? void 0 : E.offer_price).toLocaleString()), 1),
|
|
264
264
|
t[6] || (t[6] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
|
|
265
265
|
])
|
|
266
266
|
])) : (openBlock(), createElementBlock("p", _hoisted_23$1, [
|
|
@@ -273,7 +273,7 @@ const _hoisted_1$f = {
|
|
|
273
273
|
]),
|
|
274
274
|
createElementVNode("div", _hoisted_27, [
|
|
275
275
|
createElementVNode("p", _hoisted_28, [
|
|
276
|
-
createTextVNode(toDisplayString((
|
|
276
|
+
createTextVNode(toDisplayString((N = (B = e.hoveredData) == null ? void 0 : B.type) == null ? void 0 : N.area_m2) + " M", 1),
|
|
277
277
|
t[8] || (t[8] = createElementVNode("sup", { class: "ire-bg-white !ire-text-xs" }, " 2 ", -1))
|
|
278
278
|
])
|
|
279
279
|
])
|
|
@@ -319,74 +319,77 @@ const _hoisted_1$f = {
|
|
|
319
319
|
},
|
|
320
320
|
emits: ["changeComponent"],
|
|
321
321
|
setup(o, { emit: e }) {
|
|
322
|
-
const t = e, r = o, n = ref(),
|
|
322
|
+
const t = e, r = o, n = ref(), v = ref(), a = ref(null), d = computed(() => {
|
|
323
323
|
if (r.project)
|
|
324
324
|
return r.project.svg;
|
|
325
325
|
}), i = computed(() => {
|
|
326
|
-
var
|
|
327
|
-
const
|
|
328
|
-
(
|
|
329
|
-
)) == null ? void 0 :
|
|
330
|
-
return JSON.parse((
|
|
331
|
-
}),
|
|
332
|
-
const
|
|
333
|
-
|
|
334
|
-
},
|
|
335
|
-
var
|
|
336
|
-
c
|
|
326
|
+
var c, _;
|
|
327
|
+
const u = (_ = (c = r.projectMeta) == null ? void 0 : c.find(
|
|
328
|
+
(h) => (h == null ? void 0 : h.meta_key) === "project_img_contain"
|
|
329
|
+
)) == null ? void 0 : _.meta_value;
|
|
330
|
+
return JSON.parse((u == null ? void 0 : u.toString()) || "false");
|
|
331
|
+
}), s = (u) => {
|
|
332
|
+
const c = u.target;
|
|
333
|
+
c && (n.value = c);
|
|
334
|
+
}, b = (u) => {
|
|
335
|
+
var _, h, k;
|
|
336
|
+
const c = u.target;
|
|
337
|
+
(c == null ? void 0 : c.nodeName) === "path" && (((_ = v.value) == null ? void 0 : _.conf) === "sold" || ((h = v.value) == null ? void 0 : h.conf) === "reserved" || t("changeComponent", ((k = a.value) == null ? void 0 : k.type) || "", v == null ? void 0 : v.value));
|
|
337
338
|
};
|
|
338
339
|
return watch(
|
|
339
340
|
() => n.value,
|
|
340
|
-
(
|
|
341
|
-
var
|
|
342
|
-
if (!
|
|
343
|
-
const
|
|
344
|
-
if (
|
|
345
|
-
const
|
|
346
|
-
if (!
|
|
347
|
-
const y = (
|
|
348
|
-
switch ((
|
|
341
|
+
(u) => {
|
|
342
|
+
var _, h, k, l, p, f, m;
|
|
343
|
+
if (!u) return;
|
|
344
|
+
const c = u.parentElement;
|
|
345
|
+
if (c && (c == null ? void 0 : c.nodeName) === "g") {
|
|
346
|
+
const g = c == null ? void 0 : c.getAttribute("id");
|
|
347
|
+
if (!g || (a.value = ((_ = r.project) == null ? void 0 : _.polygon_data.find((w) => (w == null ? void 0 : w.key) === g)) || null, !a.value)) return;
|
|
348
|
+
const y = (h = a.value) == null ? void 0 : h.id;
|
|
349
|
+
switch ((k = a.value) == null ? void 0 : k.type) {
|
|
349
350
|
case "floor":
|
|
350
|
-
const w = (
|
|
351
|
-
(
|
|
351
|
+
const w = (l = r.floors) == null ? void 0 : l.find(
|
|
352
|
+
($) => $.id === y
|
|
352
353
|
);
|
|
353
|
-
|
|
354
|
+
v.value = w;
|
|
354
355
|
break;
|
|
355
356
|
case "block":
|
|
356
|
-
const
|
|
357
|
-
(
|
|
357
|
+
const x = (p = r.blocks) == null ? void 0 : p.find(
|
|
358
|
+
($) => ($ == null ? void 0 : $.id) === y
|
|
358
359
|
);
|
|
359
|
-
|
|
360
|
+
v.value = x;
|
|
360
361
|
break;
|
|
361
362
|
case "flat":
|
|
362
|
-
const C = (
|
|
363
|
-
|
|
363
|
+
const C = (f = r.flats) == null ? void 0 : f.find(
|
|
364
|
+
($) => ($ == null ? void 0 : $.id) === y
|
|
365
|
+
);
|
|
366
|
+
v.value = C;
|
|
364
367
|
break;
|
|
365
368
|
case "tooltip":
|
|
366
|
-
const
|
|
367
|
-
(
|
|
369
|
+
const V = (m = r.actions) == null ? void 0 : m.find(
|
|
370
|
+
($) => ($ == null ? void 0 : $.id) === y
|
|
368
371
|
);
|
|
369
|
-
|
|
372
|
+
v.value = V;
|
|
370
373
|
break;
|
|
371
374
|
default:
|
|
372
|
-
|
|
375
|
+
v.value = null;
|
|
373
376
|
break;
|
|
374
377
|
}
|
|
375
378
|
} else
|
|
376
|
-
|
|
379
|
+
a.value = null, v.value = null;
|
|
377
380
|
}
|
|
378
|
-
), (
|
|
379
|
-
var
|
|
381
|
+
), (u, c) => {
|
|
382
|
+
var _;
|
|
380
383
|
return openBlock(), createBlock(_sfc_main$f, {
|
|
381
|
-
hoverdData:
|
|
382
|
-
type: (
|
|
384
|
+
hoverdData: v.value,
|
|
385
|
+
type: (_ = a.value) == null ? void 0 : _.type
|
|
383
386
|
}, {
|
|
384
387
|
default: withCtx(() => {
|
|
385
|
-
var
|
|
388
|
+
var h, k, l, p, f, m;
|
|
386
389
|
return [
|
|
387
390
|
createElementVNode("div", _hoisted_1$d, [
|
|
388
391
|
createElementVNode("img", {
|
|
389
|
-
src: (
|
|
392
|
+
src: (l = (k = (h = u.project) == null ? void 0 : h.project_image) == null ? void 0 : k[0]) == null ? void 0 : l.url,
|
|
390
393
|
alt: "",
|
|
391
394
|
class: normalizeClass(["ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full", {
|
|
392
395
|
"ire-object-contain": unref(i),
|
|
@@ -396,15 +399,15 @@ const _hoisted_1$f = {
|
|
|
396
399
|
(openBlock(), createElementBlock("div", {
|
|
397
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", [
|
|
398
401
|
{
|
|
399
|
-
"hover:[&_path]:ire-fill-[var(--reserved-color)]":
|
|
400
|
-
"hover:[&_path]:ire-fill-[var(--sold-color)]":
|
|
401
|
-
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((
|
|
402
|
+
"hover:[&_path]:ire-fill-[var(--reserved-color)]": v.value && ((p = v.value) == null ? void 0 : p.conf) === "reserved",
|
|
403
|
+
"hover:[&_path]:ire-fill-[var(--sold-color)]": v.value && ((f = v.value) == null ? void 0 : f.conf) === "sold",
|
|
404
|
+
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((m = v.value) != null && m.conf)
|
|
402
405
|
}
|
|
403
406
|
]]),
|
|
404
|
-
innerHTML: unref(
|
|
405
|
-
key: unref(
|
|
406
|
-
onMouseover:
|
|
407
|
-
onClick:
|
|
407
|
+
innerHTML: unref(d),
|
|
408
|
+
key: unref(d),
|
|
409
|
+
onMouseover: s,
|
|
410
|
+
onClick: b
|
|
408
411
|
}, null, 42, _hoisted_3$5))
|
|
409
412
|
])
|
|
410
413
|
];
|
|
@@ -438,10 +441,13 @@ const _hoisted_1$f = {
|
|
|
438
441
|
"onUpdate:modelValue": r[0] || (r[0] = (n) => e.value = n),
|
|
439
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"
|
|
440
443
|
}, [
|
|
441
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(t.data, (n) =>
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
444
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(t.data, (n) => {
|
|
445
|
+
var v, a;
|
|
446
|
+
return openBlock(), createElementBlock("option", {
|
|
447
|
+
value: n.value,
|
|
448
|
+
disabled: ((v = n == null ? void 0 : n.title) == null ? void 0 : v.includes("reserved")) || ((a = n == null ? void 0 : n.title) == null ? void 0 : a.includes("sold"))
|
|
449
|
+
}, toDisplayString(n.title), 9, _hoisted_4$4);
|
|
450
|
+
}), 256))
|
|
445
451
|
], 512), [
|
|
446
452
|
[vModelSelect, e.value]
|
|
447
453
|
]),
|
|
@@ -482,12 +488,12 @@ function _sfc_render$3(o, e) {
|
|
|
482
488
|
}, null, -1)
|
|
483
489
|
]));
|
|
484
490
|
}
|
|
485
|
-
const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$3]]), _hoisted_1$a = { class: "ire-group ire-flex ire-w-fit ire-cursor-pointer ire-items-center ire-gap-1 ire-rounded-lg ire-border ire-bg-gray-50 ire-px-4 ire-py-2 ire-shadow-sm ire-transition-all hover:ire-bg-black
|
|
491
|
+
const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$3]]), _hoisted_1$a = { class: "ire-group ire-flex ire-w-fit ire-cursor-pointer ire-items-center ire-gap-1 ire-rounded-lg ire-border ire-bg-gray-50 ire-px-4 ire-py-2 ire-shadow-sm ire-transition-all hover:ire-bg-black lg:ire-px-5 lg:ire-py-2" }, _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
486
492
|
__name: "BackButton",
|
|
487
493
|
setup(o) {
|
|
488
494
|
return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
489
495
|
createVNode(ArrowRight, { class: "ire-w-6 ire-rotate-180 group-hover:[&_path]:ire-fill-white" }),
|
|
490
|
-
t[0] || (t[0] = createElementVNode("p", { class: "!ire-text-sm lg:!ire-text-balance" }, "Back", -1))
|
|
496
|
+
t[0] || (t[0] = createElementVNode("p", { class: "!ire-text-sm group-hover:!ire-text-white lg:!ire-text-balance" }, " Back ", -1))
|
|
491
497
|
]));
|
|
492
498
|
}
|
|
493
499
|
}), _hoisted_1$9 = { class: "ire-w-fit ire-bg-white" }, _hoisted_2$4 = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden ire-pt-[50%]" }, _hoisted_3$3 = ["src"], _hoisted_4$3 = ["innerHTML"], _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
@@ -496,137 +502,154 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
|
|
|
496
502
|
flats: {},
|
|
497
503
|
floor: {},
|
|
498
504
|
floors: {},
|
|
499
|
-
blocks: {}
|
|
505
|
+
blocks: {},
|
|
506
|
+
actions: {}
|
|
500
507
|
},
|
|
501
508
|
emits: ["changeComponent"],
|
|
502
509
|
setup(o, { emit: e }) {
|
|
503
|
-
const t = e, r = o, n = ref(),
|
|
504
|
-
var
|
|
505
|
-
if ((
|
|
510
|
+
const t = e, r = o, n = ref(), v = ref(), a = ref(), d = ref(null), i = ref(), s = ref(), b = computed$1(() => {
|
|
511
|
+
var l;
|
|
512
|
+
if ((l = r.floor) != null && l.svg)
|
|
506
513
|
return r.floor.svg;
|
|
507
|
-
}),
|
|
508
|
-
(
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
514
|
+
}), u = computed$1(() => r.floors.filter(
|
|
515
|
+
(l) => {
|
|
516
|
+
var p, f;
|
|
517
|
+
return (
|
|
518
|
+
// floorItem.conf !== "reserved" &&
|
|
519
|
+
// floorItem.conf !== "sold" &&
|
|
520
|
+
(p = r.floor) != null && p.block_id ? (l == null ? void 0 : l.block_id) === ((f = r.floor) == null ? void 0 : f.block_id) : !(l != null && l.block_id)
|
|
521
|
+
);
|
|
522
|
+
}
|
|
523
|
+
).map((l) => {
|
|
524
|
+
var f, m;
|
|
525
|
+
const p = (f = r.blocks) == null ? void 0 : f.find(
|
|
526
|
+
(g) => {
|
|
517
527
|
var y;
|
|
518
|
-
return (
|
|
528
|
+
return (g == null ? void 0 : g.id) === ((y = l == null ? void 0 : l.block_id) == null ? void 0 : y.toString());
|
|
519
529
|
}
|
|
520
530
|
);
|
|
521
531
|
return {
|
|
522
|
-
title: ((
|
|
523
|
-
value:
|
|
532
|
+
title: ((m = l == null ? void 0 : l.floor_number) == null ? void 0 : m.toString()) + " Floor" + (p != null && p.id ? ` - ${p == null ? void 0 : p.title}` : "") + (l != null && l.conf ? " " + l.conf : ""),
|
|
533
|
+
value: l == null ? void 0 : l.id
|
|
524
534
|
};
|
|
525
|
-
}).sort((
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
},
|
|
529
|
-
var
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
535
|
+
}).sort((l, p) => +(l == null ? void 0 : l.title) - +(p == null ? void 0 : p.title)) || []), c = (l) => {
|
|
536
|
+
const p = l.target;
|
|
537
|
+
p && (v.value = p);
|
|
538
|
+
}, _ = (l) => {
|
|
539
|
+
var f, m, g;
|
|
540
|
+
const p = l.target;
|
|
541
|
+
(p == null ? void 0 : p.nodeName) === "path" && (d.value && "conf" in d.value && (((f = d.value) == null ? void 0 : f.conf) === "sold" || ((m = d.value) == null ? void 0 : m.conf) === "reserved") || t("changeComponent", ((g = a.value) == null ? void 0 : g.type) || "", d.value));
|
|
542
|
+
}, h = () => {
|
|
543
|
+
var l;
|
|
544
|
+
n.value && ((l = n.value) == null ? void 0 : l.querySelectorAll("g")).forEach((f) => {
|
|
545
|
+
var y, w, x, C, V, $;
|
|
546
|
+
const m = f == null ? void 0 : f.getAttribute("id"), g = (w = (y = r.floor) == null ? void 0 : y.polygon_data) == null ? void 0 : w.find(
|
|
547
|
+
(E) => (E == null ? void 0 : E.key) === m
|
|
536
548
|
);
|
|
537
549
|
if (r.flats)
|
|
538
|
-
if (r.floor.conf)
|
|
539
|
-
f.setAttribute("conf", ((
|
|
550
|
+
if ((x = r.floor) != null && x.conf)
|
|
551
|
+
f.setAttribute("conf", ((C = r.floor) == null ? void 0 : C.conf) || "");
|
|
540
552
|
else {
|
|
541
|
-
const
|
|
542
|
-
(
|
|
553
|
+
const E = (V = r.flats) == null ? void 0 : V.find(
|
|
554
|
+
(B) => (B == null ? void 0 : B.id) === (g == null ? void 0 : g.id)
|
|
543
555
|
);
|
|
544
|
-
f.setAttribute("conf", ((
|
|
556
|
+
f == null || f.setAttribute("conf", (($ = E == null ? void 0 : E.conf) == null ? void 0 : $.toString()) || "");
|
|
545
557
|
}
|
|
546
558
|
});
|
|
547
|
-
},
|
|
548
|
-
|
|
559
|
+
}, k = () => {
|
|
560
|
+
var l;
|
|
561
|
+
(l = r.floor) != null && l.block_id ? t("changeComponent", "block", s.value) : t("changeComponent", "project", null);
|
|
549
562
|
};
|
|
550
563
|
return watch(
|
|
551
|
-
() =>
|
|
552
|
-
(
|
|
553
|
-
var
|
|
554
|
-
if (!
|
|
555
|
-
const
|
|
556
|
-
if (
|
|
557
|
-
const
|
|
558
|
-
if (!
|
|
559
|
-
if (((
|
|
560
|
-
const
|
|
564
|
+
() => v.value,
|
|
565
|
+
(l) => {
|
|
566
|
+
var f, m, g, y, w, x;
|
|
567
|
+
if (!l) return;
|
|
568
|
+
const p = l == null ? void 0 : l.parentElement;
|
|
569
|
+
if (p && (p == null ? void 0 : p.nodeName) === "g") {
|
|
570
|
+
const C = p.getAttribute("id");
|
|
571
|
+
if (!C || (a.value = ((m = (f = r.floor) == null ? void 0 : f.polygon_data) == null ? void 0 : m.find((V) => (V == null ? void 0 : V.key) === C)) || null, !a.value)) return;
|
|
572
|
+
if (((g = a.value) == null ? void 0 : g.type) === "flat") {
|
|
573
|
+
const V = (y = r.flats) == null ? void 0 : y.find(
|
|
561
574
|
($) => {
|
|
562
|
-
var
|
|
563
|
-
return ($ == null ? void 0 : $.id) === ((
|
|
575
|
+
var E;
|
|
576
|
+
return ($ == null ? void 0 : $.id) === ((E = a.value) == null ? void 0 : E.id);
|
|
564
577
|
}
|
|
565
578
|
);
|
|
566
|
-
|
|
567
|
-
}
|
|
579
|
+
d.value = V ?? null;
|
|
580
|
+
} else if (((w = a.value) == null ? void 0 : w.type) === "tooltip") {
|
|
581
|
+
const V = (x = r.actions) == null ? void 0 : x.find(
|
|
582
|
+
($) => {
|
|
583
|
+
var E;
|
|
584
|
+
return ($ == null ? void 0 : $.id) === ((E = a.value) == null ? void 0 : E.id);
|
|
585
|
+
}
|
|
586
|
+
);
|
|
587
|
+
d.value = V ?? null;
|
|
588
|
+
} else
|
|
589
|
+
d.value = null;
|
|
568
590
|
} else
|
|
569
|
-
|
|
591
|
+
a.value = null;
|
|
570
592
|
}
|
|
571
593
|
), watch(
|
|
572
594
|
() => i.value,
|
|
573
595
|
() => {
|
|
574
|
-
|
|
575
|
-
|
|
596
|
+
var p;
|
|
597
|
+
const l = (p = r.floors) == null ? void 0 : p.find(
|
|
598
|
+
(f) => (f == null ? void 0 : f.id) === (i == null ? void 0 : i.value)
|
|
576
599
|
);
|
|
577
|
-
|
|
578
|
-
|
|
600
|
+
l != null && l.conf || (l && t("changeComponent", "floor", l), setTimeout(() => {
|
|
601
|
+
h();
|
|
579
602
|
}, 0));
|
|
580
603
|
}
|
|
581
604
|
), onMounted(() => {
|
|
582
|
-
var
|
|
583
|
-
|
|
584
|
-
(
|
|
585
|
-
var
|
|
586
|
-
return
|
|
605
|
+
var l, p, f;
|
|
606
|
+
s.value = (l = r.blocks) == null ? void 0 : l.find(
|
|
607
|
+
(m) => {
|
|
608
|
+
var g, y;
|
|
609
|
+
return (m == null ? void 0 : m.id) === ((y = (g = r.floor) == null ? void 0 : g.block_id) == null ? void 0 : y.toString());
|
|
587
610
|
}
|
|
588
|
-
), i.value = (
|
|
589
|
-
(
|
|
590
|
-
var
|
|
591
|
-
return (
|
|
611
|
+
), i.value = (f = (p = u.value) == null ? void 0 : p.find(
|
|
612
|
+
(m) => {
|
|
613
|
+
var g;
|
|
614
|
+
return (m == null ? void 0 : m.value) == ((g = r.floor) == null ? void 0 : g.id);
|
|
592
615
|
}
|
|
593
|
-
)) == null ? void 0 :
|
|
594
|
-
}), (
|
|
595
|
-
var
|
|
616
|
+
)) == null ? void 0 : f.value, h();
|
|
617
|
+
}), (l, p) => {
|
|
618
|
+
var f;
|
|
596
619
|
return openBlock(), createBlock(_sfc_main$f, {
|
|
597
|
-
hoverdData:
|
|
598
|
-
type: (
|
|
620
|
+
hoverdData: d.value,
|
|
621
|
+
type: (f = a.value) == null ? void 0 : f.type
|
|
599
622
|
}, {
|
|
600
623
|
header: withCtx(() => [
|
|
601
|
-
createVNode(_sfc_main$b, { onClick:
|
|
624
|
+
createVNode(_sfc_main$b, { onClick: k }),
|
|
602
625
|
createElementVNode("div", _hoisted_1$9, [
|
|
603
626
|
createVNode(_sfc_main$d, {
|
|
604
627
|
modelValue: i.value,
|
|
605
|
-
"onUpdate:modelValue":
|
|
606
|
-
data:
|
|
628
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => i.value = m),
|
|
629
|
+
data: u.value
|
|
607
630
|
}, null, 8, ["modelValue", "data"])
|
|
608
631
|
])
|
|
609
632
|
]),
|
|
610
633
|
default: withCtx(() => {
|
|
611
|
-
var
|
|
634
|
+
var m, g, y, w, x;
|
|
612
635
|
return [
|
|
613
636
|
createElementVNode("div", _hoisted_2$4, [
|
|
614
637
|
createElementVNode("img", {
|
|
615
|
-
src: ((
|
|
638
|
+
src: ((y = (g = (m = l.floor) == null ? void 0 : m.floor_image) == null ? void 0 : g[0]) == null ? void 0 : y.url) || "",
|
|
616
639
|
alt: "",
|
|
617
640
|
class: normalizeClass(["ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full", {
|
|
618
|
-
"ire-object-contain":
|
|
619
|
-
"ire-object-cover": !
|
|
641
|
+
"ire-object-contain": (w = l.floor) == null ? void 0 : w.img_contain,
|
|
642
|
+
"ire-object-cover": !((x = l.floor) != null && x.img_contain)
|
|
620
643
|
}])
|
|
621
644
|
}, null, 10, _hoisted_3$3),
|
|
622
645
|
(openBlock(), createElementBlock("div", {
|
|
623
646
|
ref_key: "svgRef",
|
|
624
647
|
ref: n,
|
|
625
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)]",
|
|
626
|
-
innerHTML:
|
|
627
|
-
key:
|
|
628
|
-
onMouseover:
|
|
629
|
-
onClick:
|
|
649
|
+
innerHTML: b.value,
|
|
650
|
+
key: b.value,
|
|
651
|
+
onMouseover: c,
|
|
652
|
+
onClick: _
|
|
630
653
|
}, null, 40, _hoisted_4$3))
|
|
631
654
|
])
|
|
632
655
|
];
|
|
@@ -702,16 +725,16 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
702
725
|
},
|
|
703
726
|
emits: ["changeComponent"],
|
|
704
727
|
setup(o, { emit: e }) {
|
|
705
|
-
const t = e, r = o, n = ref(!0),
|
|
706
|
-
var
|
|
707
|
-
const i = n.value ? (
|
|
728
|
+
const t = e, r = o, n = ref(!0), v = ref(0), a = computed$1(() => {
|
|
729
|
+
var s, b, u, c, _, h;
|
|
730
|
+
const i = n.value ? (u = (b = (s = r.flat) == null ? void 0 : s.type) == null ? void 0 : b.image_2d) == null ? void 0 : u.length : (h = (_ = (c = r.flat) == null ? void 0 : c.type) == null ? void 0 : _.image_3d) == null ? void 0 : h.length;
|
|
708
731
|
return ["I", "II", "III"].slice(0, i);
|
|
709
|
-
}),
|
|
710
|
-
var
|
|
711
|
-
const i = (
|
|
712
|
-
(
|
|
713
|
-
var c,
|
|
714
|
-
return ((
|
|
732
|
+
}), d = () => {
|
|
733
|
+
var s;
|
|
734
|
+
const i = (s = r.floors) == null ? void 0 : s.find(
|
|
735
|
+
(b) => {
|
|
736
|
+
var u, c, _, h, k, l;
|
|
737
|
+
return ((u = b.floor_number) == null ? void 0 : u.toString()) === ((_ = (c = r.flat) == null ? void 0 : c.floor_number) == null ? void 0 : _.toString()) && ((h = r.flat) != null && h.block_id ? ((k = b == null ? void 0 : b.block_id) == null ? void 0 : k.toString()) === ((l = r.flat) == null ? void 0 : l.block_id) : !(b != null && b.block_id));
|
|
715
738
|
}
|
|
716
739
|
);
|
|
717
740
|
i ? t("changeComponent", "floor", i) : t("changeComponent", "project", null);
|
|
@@ -719,18 +742,18 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
719
742
|
return watch(
|
|
720
743
|
() => n.value,
|
|
721
744
|
() => {
|
|
722
|
-
|
|
745
|
+
v.value = 0;
|
|
723
746
|
}
|
|
724
747
|
), onMounted(() => {
|
|
725
|
-
var i,
|
|
726
|
-
(
|
|
727
|
-
}), (i,
|
|
748
|
+
var i, s;
|
|
749
|
+
(s = (i = r.flat) == null ? void 0 : i.type) != null && s.image_2d || (n.value = !1);
|
|
750
|
+
}), (i, s) => (openBlock(), createElementBlock("div", null, [
|
|
728
751
|
createVNode(_sfc_main$f, { "hoverd-data": null }, {
|
|
729
752
|
header: withCtx(() => [
|
|
730
|
-
createVNode(_sfc_main$b, { onClick:
|
|
753
|
+
createVNode(_sfc_main$b, { onClick: d })
|
|
731
754
|
]),
|
|
732
755
|
default: withCtx(() => {
|
|
733
|
-
var
|
|
756
|
+
var b, u, c, _, h, k, l, p, f, m, g, y, w, x, C, V, $, E, B, N, j, L, T, R, P, O, F;
|
|
734
757
|
return [
|
|
735
758
|
createElementVNode("div", _hoisted_1$6, [
|
|
736
759
|
createElementVNode("div", _hoisted_2$3, [
|
|
@@ -739,15 +762,15 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
739
762
|
mode: "out-in"
|
|
740
763
|
}, {
|
|
741
764
|
default: withCtx(() => {
|
|
742
|
-
var
|
|
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;
|
|
743
766
|
return [
|
|
744
|
-
n.value && ((
|
|
745
|
-
key: (
|
|
746
|
-
src: (
|
|
767
|
+
n.value && ((I = (M = (S = (D = i.flat) == null ? void 0 : D.type) == null ? void 0 : S.image_2d) == null ? void 0 : M[v.value]) != null && I.url) ? (openBlock(), createElementBlock("img", {
|
|
768
|
+
key: (W = (z = (H = (A = i.flat) == null ? void 0 : A.type) == null ? void 0 : H.image_2d) == null ? void 0 : z[v.value]) == null ? void 0 : W.url,
|
|
769
|
+
src: (U = (q = (Z = (K = i.flat) == null ? void 0 : K.type) == null ? void 0 : Z.image_2d) == null ? void 0 : q[v.value]) == null ? void 0 : U.url,
|
|
747
770
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
|
|
748
|
-
}, null, 8, _hoisted_3$2)) : (
|
|
749
|
-
src: (
|
|
750
|
-
key: (
|
|
771
|
+
}, null, 8, _hoisted_3$2)) : (Y = (X = (Q = (J = i.flat) == null ? void 0 : J.type) == null ? void 0 : Q.image_3d) == null ? void 0 : X[v.value]) != null && Y.url ? (openBlock(), createElementBlock("img", {
|
|
772
|
+
src: (oe = (te = (ee = (G = i.flat) == null ? void 0 : G.type) == null ? void 0 : ee.image_3d) == null ? void 0 : te[v.value]) == null ? void 0 : oe.url,
|
|
773
|
+
key: (se = (le = (ie = (re = i.flat) == null ? void 0 : re.type) == null ? void 0 : ie.image_3d) == null ? void 0 : le[v.value]) == null ? void 0 : se.url,
|
|
751
774
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
|
|
752
775
|
}, null, 8, _hoisted_4$2)) : createCommentVNode("", !0)
|
|
753
776
|
];
|
|
@@ -756,83 +779,93 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
756
779
|
}),
|
|
757
780
|
createElementVNode("div", _hoisted_5, [
|
|
758
781
|
createElementVNode("div", _hoisted_6, [
|
|
759
|
-
(
|
|
782
|
+
(_ = (c = (u = (b = i.flat) == null ? void 0 : b.type) == null ? void 0 : u.image_2d) == null ? void 0 : c[0]) != null && _.url ? (openBlock(), createElementBlock("div", {
|
|
760
783
|
key: 0,
|
|
761
|
-
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
|
|
762
|
-
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": n.value }]),
|
|
785
|
+
onClick: s[0] || (s[0] = (D) => n.value = !0)
|
|
763
786
|
}, [
|
|
764
787
|
createVNode(FlatIcon, {
|
|
765
788
|
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": n.value }])
|
|
766
789
|
}, null, 8, ["class"]),
|
|
767
|
-
|
|
790
|
+
createElementVNode("p", {
|
|
791
|
+
class: normalizeClass(["group-hover:!ire-text-white", {
|
|
792
|
+
"!ire-text-white": n.value,
|
|
793
|
+
"!ire-text-black": !n.value
|
|
794
|
+
}])
|
|
795
|
+
}, " 2D plan ", 2)
|
|
768
796
|
], 2)) : createCommentVNode("", !0),
|
|
769
|
-
(
|
|
797
|
+
(p = (l = (k = (h = i.flat) == null ? void 0 : h.type) == null ? void 0 : k.image_3d) == null ? void 0 : l[0]) != null && p.url ? (openBlock(), createElementBlock("div", {
|
|
770
798
|
key: 1,
|
|
771
|
-
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
|
|
772
|
-
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": !n.value }]),
|
|
800
|
+
onClick: s[1] || (s[1] = (D) => n.value = !1)
|
|
773
801
|
}, [
|
|
774
802
|
createElementVNode("div", null, [
|
|
775
803
|
createVNode(Cube, {
|
|
776
804
|
class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !n.value }])
|
|
777
805
|
}, null, 8, ["class"])
|
|
778
806
|
]),
|
|
779
|
-
|
|
807
|
+
createElementVNode("p", {
|
|
808
|
+
class: normalizeClass(["group-hover:!ire-text-white", {
|
|
809
|
+
"!ire-text-white": !n.value,
|
|
810
|
+
"!ire-text-black": n.value
|
|
811
|
+
}])
|
|
812
|
+
}, " 3D plan ", 2)
|
|
780
813
|
], 2)) : createCommentVNode("", !0)
|
|
781
814
|
]),
|
|
782
|
-
((
|
|
783
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
784
|
-
key:
|
|
815
|
+
((f = a.value) == null ? void 0 : f.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
816
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.value, (D, S) => (openBlock(), createElementBlock("div", {
|
|
817
|
+
key: D,
|
|
785
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", {
|
|
786
|
-
"ire-bg-black ire-text-white":
|
|
819
|
+
"ire-bg-black ire-text-white": v.value === S
|
|
787
820
|
}]),
|
|
788
|
-
onClick: (
|
|
789
|
-
}, toDisplayString(
|
|
821
|
+
onClick: (M) => v.value = S
|
|
822
|
+
}, toDisplayString(D), 11, _hoisted_8))), 128))
|
|
790
823
|
])) : createCommentVNode("", !0)
|
|
791
824
|
])
|
|
792
825
|
]),
|
|
793
826
|
createElementVNode("div", _hoisted_9, [
|
|
794
827
|
createElementVNode("div", _hoisted_10, [
|
|
795
|
-
createElementVNode("p", _hoisted_11, toDisplayString((
|
|
796
|
-
|
|
828
|
+
createElementVNode("p", _hoisted_11, toDisplayString((m = i.flat) == null ? void 0 : m.flat_number), 1),
|
|
829
|
+
s[2] || (s[2] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Apartment", -1))
|
|
797
830
|
]),
|
|
798
831
|
createElementVNode("div", _hoisted_12, [
|
|
799
|
-
createElementVNode("p", _hoisted_13, toDisplayString((y = (
|
|
800
|
-
createElementVNode("p", _hoisted_14, toDisplayString((
|
|
832
|
+
createElementVNode("p", _hoisted_13, toDisplayString((y = (g = i.flat) == null ? void 0 : g.type) == null ? void 0 : y.title), 1),
|
|
833
|
+
createElementVNode("p", _hoisted_14, toDisplayString((x = (w = i.flat) == null ? void 0 : w.type) == null ? void 0 : x.teaser), 1)
|
|
801
834
|
]),
|
|
802
835
|
createElementVNode("div", _hoisted_15, [
|
|
803
836
|
(C = i.flat) != null && C.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
804
|
-
createElementVNode("p", _hoisted_17, toDisplayString(i.flat.floor_number), 1),
|
|
805
|
-
|
|
837
|
+
createElementVNode("p", _hoisted_17, toDisplayString((V = i.flat) == null ? void 0 : V.floor_number), 1),
|
|
838
|
+
s[3] || (s[3] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Floor", -1))
|
|
806
839
|
])) : createCommentVNode("", !0),
|
|
807
|
-
(
|
|
808
|
-
createElementVNode("p", _hoisted_19, toDisplayString(i.flat.type.rooms_count), 1),
|
|
809
|
-
|
|
840
|
+
(E = ($ = i.flat) == null ? void 0 : $.type) != null && E.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
841
|
+
createElementVNode("p", _hoisted_19, toDisplayString((B = i.flat) == null ? void 0 : B.type.rooms_count), 1),
|
|
842
|
+
s[4] || (s[4] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Room", -1))
|
|
810
843
|
])) : createCommentVNode("", !0)
|
|
811
844
|
]),
|
|
812
|
-
(
|
|
845
|
+
(j = (N = i.flat) == null ? void 0 : N.type) != null && j.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
813
846
|
createElementVNode("p", _hoisted_21, [
|
|
814
|
-
createTextVNode(toDisplayString(i.flat.type.area_m2) + " ", 1),
|
|
815
|
-
|
|
847
|
+
createTextVNode(toDisplayString((L = i.flat) == null ? void 0 : L.type.area_m2) + " ", 1),
|
|
848
|
+
s[5] || (s[5] = createElementVNode("span", { class: "ire-font-light" }, [
|
|
816
849
|
createTextVNode(" M "),
|
|
817
850
|
createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
|
|
818
851
|
], -1))
|
|
819
852
|
]),
|
|
820
|
-
|
|
853
|
+
s[6] || (s[6] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Area", -1))
|
|
821
854
|
])) : createCommentVNode("", !0),
|
|
822
|
-
(
|
|
855
|
+
(T = i.flat) != null && T.price ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
823
856
|
createElementVNode("div", null, [
|
|
824
|
-
(
|
|
825
|
-
createElementVNode("p", _hoisted_25, toDisplayString(Number((
|
|
857
|
+
(R = i.flat) != null && R.offer_price ? (openBlock(), createElementBlock("div", _hoisted_24, [
|
|
858
|
+
createElementVNode("p", _hoisted_25, toDisplayString(Number((O = i.flat) == null ? void 0 : O.price).toLocaleString()), 1),
|
|
826
859
|
createElementVNode("p", _hoisted_26, [
|
|
827
|
-
createTextVNode(toDisplayString(Number((
|
|
828
|
-
|
|
860
|
+
createTextVNode(toDisplayString(Number((F = i.flat) == null ? void 0 : F.offer_price).toLocaleString()), 1),
|
|
861
|
+
s[8] || (s[8] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
|
|
829
862
|
])
|
|
830
863
|
])) : (openBlock(), createElementBlock("p", _hoisted_23, [
|
|
831
|
-
createTextVNode(toDisplayString(Number(i.flat.price).toLocaleString()), 1),
|
|
832
|
-
|
|
864
|
+
createTextVNode(toDisplayString(Number((P = i.flat) == null ? void 0 : P.price).toLocaleString()), 1),
|
|
865
|
+
s[7] || (s[7] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
|
|
833
866
|
]))
|
|
834
867
|
]),
|
|
835
|
-
|
|
868
|
+
s[9] || (s[9] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Price", -1))
|
|
836
869
|
])) : createCommentVNode("", !0)
|
|
837
870
|
])
|
|
838
871
|
])
|
|
@@ -897,15 +930,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
897
930
|
},
|
|
898
931
|
setup(o) {
|
|
899
932
|
return (e, t) => {
|
|
900
|
-
var r, n,
|
|
933
|
+
var r, n, v, a, d, i, s, b, u, c, _, h;
|
|
901
934
|
return openBlock(), createElementBlock("div", null, [
|
|
902
935
|
createElementVNode("p", _hoisted_1$2, toDisplayString((n = (r = e.modalData) == null ? void 0 : r.modalObject) == null ? void 0 : n.title), 1),
|
|
903
936
|
createVNode(_sfc_main$4, {
|
|
904
|
-
editor: (
|
|
937
|
+
editor: (a = (v = e.modalData) == null ? void 0 : v.modalObject) == null ? void 0 : a.description
|
|
905
938
|
}, null, 8, ["editor"]),
|
|
906
|
-
(i = (
|
|
939
|
+
(b = (s = (i = (d = e.modalData) == null ? void 0 : d.modalObject) == null ? void 0 : i.modalImage) == null ? void 0 : s[0]) != null && b.url ? (openBlock(), createElementBlock("img", {
|
|
907
940
|
key: 0,
|
|
908
|
-
src: (h = (
|
|
941
|
+
src: (h = (_ = (c = (u = e.modalData) == null ? void 0 : u.modalObject) == null ? void 0 : c.modalImage) == null ? void 0 : _[0]) == null ? void 0 : h.url,
|
|
909
942
|
alt: "",
|
|
910
943
|
class: "ire-mt-5 ire-h-[400px] ire-w-full ire-object-contain"
|
|
911
944
|
}, null, 8, _hoisted_2$1)) : createCommentVNode("", !0)
|
|
@@ -917,80 +950,90 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
917
950
|
props: {
|
|
918
951
|
block: {},
|
|
919
952
|
flats: {},
|
|
920
|
-
floors: {}
|
|
953
|
+
floors: {},
|
|
954
|
+
actions: {}
|
|
921
955
|
},
|
|
922
956
|
emits: ["changeComponent"],
|
|
923
957
|
setup(o, { emit: e }) {
|
|
924
|
-
const t = e, r = o, n = ref(),
|
|
925
|
-
var
|
|
926
|
-
if ((
|
|
927
|
-
return (
|
|
928
|
-
}),
|
|
929
|
-
const
|
|
930
|
-
|
|
931
|
-
},
|
|
932
|
-
var
|
|
933
|
-
c
|
|
958
|
+
const t = e, r = o, n = ref(), v = ref(), a = ref(), d = ref(), i = computed$1(() => {
|
|
959
|
+
var u, c;
|
|
960
|
+
if ((u = r.block) != null && u.svg)
|
|
961
|
+
return (c = r.block) == null ? void 0 : c.svg;
|
|
962
|
+
}), s = (u) => {
|
|
963
|
+
const c = u.target;
|
|
964
|
+
c && (v.value = c);
|
|
965
|
+
}, b = (u) => {
|
|
966
|
+
var _, h, k;
|
|
967
|
+
const c = u.target;
|
|
968
|
+
(c == null ? void 0 : c.nodeName) === "path" && (((_ = d.value) == null ? void 0 : _.conf) === "sold" || ((h = d.value) == null ? void 0 : h.conf) === "reserved" || t(
|
|
934
969
|
"changeComponent",
|
|
935
|
-
((
|
|
936
|
-
|
|
970
|
+
((k = a.value) == null ? void 0 : k.type) || "",
|
|
971
|
+
d.value
|
|
937
972
|
));
|
|
938
973
|
};
|
|
939
974
|
return watch(
|
|
940
|
-
() =>
|
|
941
|
-
(
|
|
942
|
-
var
|
|
943
|
-
if (!
|
|
944
|
-
const
|
|
945
|
-
if (
|
|
946
|
-
const
|
|
947
|
-
if (!
|
|
948
|
-
if (((
|
|
949
|
-
const
|
|
950
|
-
(
|
|
951
|
-
var
|
|
952
|
-
return (
|
|
975
|
+
() => v.value,
|
|
976
|
+
(u) => {
|
|
977
|
+
var _, h, k, l, p, f, m, g;
|
|
978
|
+
if (!u) return;
|
|
979
|
+
const c = u == null ? void 0 : u.parentElement;
|
|
980
|
+
if (c && (c == null ? void 0 : c.nodeName) === "g") {
|
|
981
|
+
const y = c == null ? void 0 : c.getAttribute("id");
|
|
982
|
+
if (!y || (a.value = ((h = (_ = r.block) == null ? void 0 : _.polygon_data) == null ? void 0 : h.find((w) => (w == null ? void 0 : w.key) === y)) || null, !a.value)) return;
|
|
983
|
+
if (((k = a.value) == null ? void 0 : k.type) === "floor") {
|
|
984
|
+
const w = (l = r.floors) == null ? void 0 : l.find(
|
|
985
|
+
(x) => {
|
|
986
|
+
var C;
|
|
987
|
+
return (x == null ? void 0 : x.id) === ((C = a.value) == null ? void 0 : C.id);
|
|
953
988
|
}
|
|
954
989
|
);
|
|
955
|
-
|
|
956
|
-
} else if (((
|
|
957
|
-
const
|
|
958
|
-
(
|
|
959
|
-
var
|
|
960
|
-
return (
|
|
990
|
+
d.value = w;
|
|
991
|
+
} else if (((p = a.value) == null ? void 0 : p.type) === "flat") {
|
|
992
|
+
const w = (f = r.flats) == null ? void 0 : f.find(
|
|
993
|
+
(x) => {
|
|
994
|
+
var C;
|
|
995
|
+
return (x == null ? void 0 : x.id) === ((C = a.value) == null ? void 0 : C.id);
|
|
961
996
|
}
|
|
962
997
|
);
|
|
963
|
-
|
|
998
|
+
d.value = w;
|
|
999
|
+
} else if (((m = a.value) == null ? void 0 : m.type) === "tooltip") {
|
|
1000
|
+
const w = (g = r.actions) == null ? void 0 : g.find(
|
|
1001
|
+
(x) => {
|
|
1002
|
+
var C;
|
|
1003
|
+
return (x == null ? void 0 : x.id) === ((C = a.value) == null ? void 0 : C.id);
|
|
1004
|
+
}
|
|
1005
|
+
);
|
|
1006
|
+
d.value = w;
|
|
964
1007
|
} else
|
|
965
|
-
|
|
1008
|
+
d.value = null;
|
|
966
1009
|
} else
|
|
967
|
-
|
|
1010
|
+
a.value = null, d.value = null;
|
|
968
1011
|
}
|
|
969
|
-
), (
|
|
970
|
-
var
|
|
1012
|
+
), (u, c) => {
|
|
1013
|
+
var _;
|
|
971
1014
|
return openBlock(), createBlock(_sfc_main$f, {
|
|
972
|
-
hoverdData:
|
|
973
|
-
type: (
|
|
1015
|
+
hoverdData: d.value,
|
|
1016
|
+
type: (_ = a.value) == null ? void 0 : _.type
|
|
974
1017
|
}, {
|
|
975
1018
|
header: withCtx(() => {
|
|
976
|
-
var
|
|
1019
|
+
var h;
|
|
977
1020
|
return [
|
|
978
1021
|
createVNode(_sfc_main$b, {
|
|
979
|
-
onClick:
|
|
1022
|
+
onClick: c[0] || (c[0] = (k) => u.$emit("changeComponent", "project", null))
|
|
980
1023
|
}),
|
|
981
|
-
createElementVNode("p", _hoisted_1$1, toDisplayString((
|
|
1024
|
+
createElementVNode("p", _hoisted_1$1, toDisplayString((h = u.block) == null ? void 0 : h.title), 1)
|
|
982
1025
|
];
|
|
983
1026
|
}),
|
|
984
1027
|
default: withCtx(() => {
|
|
985
|
-
var
|
|
1028
|
+
var h, k, l, p, f, m, g, y;
|
|
986
1029
|
return [
|
|
987
1030
|
createElementVNode("div", _hoisted_2, [
|
|
988
1031
|
createElementVNode("img", {
|
|
989
|
-
src: ((
|
|
1032
|
+
src: ((l = (k = (h = u.block) == null ? void 0 : h.block_image) == null ? void 0 : k[0]) == null ? void 0 : l.url) || "",
|
|
990
1033
|
alt: "",
|
|
991
1034
|
class: normalizeClass(["ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full", {
|
|
992
|
-
"ire-object-contain":
|
|
993
|
-
"ire-object-cover": !
|
|
1035
|
+
"ire-object-contain": (p = u.block) == null ? void 0 : p.img_contain,
|
|
1036
|
+
"ire-object-cover": !((f = u.block) != null && f.img_contain)
|
|
994
1037
|
}])
|
|
995
1038
|
}, null, 10, _hoisted_3),
|
|
996
1039
|
(openBlock(), createElementBlock("div", {
|
|
@@ -998,15 +1041,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
998
1041
|
ref: n,
|
|
999
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", [
|
|
1000
1043
|
{
|
|
1001
|
-
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((
|
|
1002
|
-
"hover:[&_path]:ire-fill-[var(--sold-color)]": ((
|
|
1003
|
-
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((
|
|
1044
|
+
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((m = d.value) == null ? void 0 : m.conf) === "reserved",
|
|
1045
|
+
"hover:[&_path]:ire-fill-[var(--sold-color)]": ((g = d.value) == null ? void 0 : g.conf) === "sold",
|
|
1046
|
+
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((y = d.value) != null && y.conf)
|
|
1004
1047
|
}
|
|
1005
1048
|
]]),
|
|
1006
1049
|
innerHTML: i.value,
|
|
1007
1050
|
key: i.value,
|
|
1008
|
-
onMouseover:
|
|
1009
|
-
onClick:
|
|
1051
|
+
onMouseover: s,
|
|
1052
|
+
onClick: b
|
|
1010
1053
|
}, null, 42, _hoisted_4))
|
|
1011
1054
|
])
|
|
1012
1055
|
];
|
|
@@ -1021,9 +1064,9 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1021
1064
|
shortcodeDataProps: {}
|
|
1022
1065
|
},
|
|
1023
1066
|
setup(__props) {
|
|
1024
|
-
var o, e, t, r, n,
|
|
1025
|
-
const props = __props, getMeta = (
|
|
1026
|
-
(
|
|
1067
|
+
var o, e, t, r, n, v;
|
|
1068
|
+
const props = __props, getMeta = (a) => props.shortcodeDataProps.meta.find(
|
|
1069
|
+
(d) => d.meta_key === a
|
|
1027
1070
|
), constants = ref({
|
|
1028
1071
|
PREVIEW_PATH_COLOR: getMeta("path_color").meta_value || "rgba(255, 255, 255, 0.3)",
|
|
1029
1072
|
PREVIEW_PATH_HOVER_COLOR: getMeta("path_hover_color").meta_value || "rgba(250, 250, 250, 0.54)",
|
|
@@ -1037,7 +1080,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1037
1080
|
reserved: (t = constants.value) == null ? void 0 : t.PREVIEW_RESERVED_COLOR,
|
|
1038
1081
|
sold: (r = constants.value) == null ? void 0 : r.PREVIEW_SOLD_COLOR,
|
|
1039
1082
|
stroke_color: (n = constants.value) == null ? void 0 : n.PREVIEW_STROKE_COLOR,
|
|
1040
|
-
stroke_width: (
|
|
1083
|
+
stroke_width: (v = constants.value) == null ? void 0 : v.PREVIEW_STROKE_WIDTH
|
|
1041
1084
|
}), cssVariables = computed$1(() => ({
|
|
1042
1085
|
"--reserved-color": colors.reserved,
|
|
1043
1086
|
"--sold-color": colors.sold,
|
|
@@ -1047,23 +1090,31 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1047
1090
|
"--stroke-width": colors.stroke_width + "px"
|
|
1048
1091
|
})), shortcodeData = ref(props.shortcodeDataProps), flow = ref(
|
|
1049
1092
|
"projectFlow"
|
|
1050
|
-
), hoveredData = ref(), showModal = ref(!1), project = computed$1(() => {
|
|
1093
|
+
), hoveredData = ref(), showModal = ref(!1), activeBlock = ref(), activeFloor = ref(), project = computed$1(() => {
|
|
1094
|
+
var a;
|
|
1051
1095
|
if (shortcodeData.value)
|
|
1052
|
-
return shortcodeData.value.project;
|
|
1096
|
+
return (a = shortcodeData.value) == null ? void 0 : a.project;
|
|
1053
1097
|
}), floors = computed$1(() => {
|
|
1054
|
-
var d;
|
|
1098
|
+
var a, d;
|
|
1055
1099
|
if (shortcodeData.value)
|
|
1056
|
-
return (
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1100
|
+
return (a = shortcodeData.value.floors) == null || a.forEach((i) => {
|
|
1101
|
+
var u, c;
|
|
1102
|
+
const s = (c = (u = shortcodeData.value) == null ? void 0 : u.flats) == null ? void 0 : c.filter((_) => {
|
|
1103
|
+
var h;
|
|
1104
|
+
return (_ == null ? void 0 : _.floor_number) !== ((h = i == null ? void 0 : i.floor_number) == null ? void 0 : h.toString()) ? !1 : i != null && i.polygon_data ? Object == null ? void 0 : Object.values(i == null ? void 0 : i.polygon_data).some(
|
|
1105
|
+
(l) => {
|
|
1106
|
+
var p;
|
|
1107
|
+
return l != null && l.type && (l == null ? void 0 : l.type) === "flat" && (l == null ? void 0 : l.id) === (_ == null ? void 0 : _.id) ? i != null && i.block_id ? (_ == null ? void 0 : _.block_id) === ((p = i == null ? void 0 : i.block_id) == null ? void 0 : p.toString()) : !(_ != null && _.block_id) : !1;
|
|
1108
|
+
}
|
|
1109
|
+
) : !1;
|
|
1110
|
+
});
|
|
1111
|
+
i.flats = s;
|
|
1112
|
+
const { conf: b } = i || {};
|
|
1113
|
+
if (s != null && s.length && !b) {
|
|
1114
|
+
const _ = s == null ? void 0 : s.every((k) => (k == null ? void 0 : k.conf) === "reserved"), h = s == null ? void 0 : s.every((k) => (k == null ? void 0 : k.conf) === "sold");
|
|
1115
|
+
_ ? i.conf = "reserved" : h && (i.conf = "sold");
|
|
1065
1116
|
}
|
|
1066
|
-
}), shortcodeData.value.floors;
|
|
1117
|
+
}), (d = shortcodeData.value) == null ? void 0 : d.floors;
|
|
1067
1118
|
}), blocks = computed$1(() => {
|
|
1068
1119
|
if (shortcodeData.value)
|
|
1069
1120
|
return shortcodeData.value.blocks;
|
|
@@ -1071,53 +1122,55 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1071
1122
|
if (shortcodeData.value)
|
|
1072
1123
|
return shortcodeData.value.types;
|
|
1073
1124
|
}), flats = computed$1(() => {
|
|
1074
|
-
var
|
|
1125
|
+
var a, d;
|
|
1075
1126
|
if (shortcodeData.value)
|
|
1076
|
-
return (
|
|
1077
|
-
var
|
|
1127
|
+
return (d = (a = shortcodeData.value) == null ? void 0 : a.flats) == null ? void 0 : d.map((i) => {
|
|
1128
|
+
var s;
|
|
1078
1129
|
if (i != null && i.use_type || !(i != null && i.type)) {
|
|
1079
|
-
const
|
|
1080
|
-
|
|
1130
|
+
const b = (s = types.value) == null ? void 0 : s.find((u) => (u == null ? void 0 : u.id) === (i == null ? void 0 : i.type_id));
|
|
1131
|
+
b && (i.type = b);
|
|
1081
1132
|
}
|
|
1082
1133
|
return i;
|
|
1083
1134
|
});
|
|
1084
1135
|
}), actions = computed$1(() => {
|
|
1136
|
+
var a;
|
|
1085
1137
|
if (shortcodeData.value)
|
|
1086
|
-
return shortcodeData.value.actions;
|
|
1138
|
+
return (a = shortcodeData.value) == null ? void 0 : a.actions;
|
|
1087
1139
|
}), projectMeta = computed$1(() => {
|
|
1140
|
+
var a;
|
|
1088
1141
|
if (shortcodeData.value)
|
|
1089
|
-
return shortcodeData.value.meta;
|
|
1090
|
-
}), getColorMeta = (
|
|
1091
|
-
var
|
|
1092
|
-
return (i = (
|
|
1142
|
+
return (a = shortcodeData.value) == null ? void 0 : a.meta;
|
|
1143
|
+
}), getColorMeta = (a) => {
|
|
1144
|
+
var d, i;
|
|
1145
|
+
return (i = (d = projectMeta.value) == null ? void 0 : d.find((s) => (s == null ? void 0 : s.meta_key) === a)) == null ? void 0 : i.meta_value;
|
|
1093
1146
|
}, changeRoute = (flowType, polygonItem) => {
|
|
1094
1147
|
switch (flowType) {
|
|
1095
1148
|
case "project":
|
|
1096
1149
|
flow.value = "projectFlow";
|
|
1097
1150
|
break;
|
|
1098
1151
|
case "floor":
|
|
1099
|
-
flow.value = "floorFlow", hoveredData.value = polygonItem;
|
|
1152
|
+
flow.value = "floorFlow", hoveredData.value = polygonItem, activeFloor.value = polygonItem;
|
|
1100
1153
|
break;
|
|
1101
1154
|
case "block":
|
|
1102
|
-
flow.value = "blockFlow", hoveredData.value = polygonItem;
|
|
1155
|
+
flow.value = "blockFlow", hoveredData.value = polygonItem, activeBlock.value = polygonItem;
|
|
1103
1156
|
break;
|
|
1104
1157
|
case "flat":
|
|
1105
1158
|
flow.value = "flatFlow", hoveredData.value = polygonItem;
|
|
1106
1159
|
break;
|
|
1107
1160
|
case "tooltip":
|
|
1108
1161
|
const actionData = polygonItem == null ? void 0 : polygonItem.data;
|
|
1109
|
-
if (hoveredData.value = actionData, actionData.actionType === "url")
|
|
1162
|
+
if (hoveredData.value = actionData, (actionData == null ? void 0 : actionData.actionType) === "url")
|
|
1110
1163
|
window.open(
|
|
1111
|
-
actionData.url,
|
|
1112
|
-
actionData.targetBlank ? "_blank" : "_self"
|
|
1164
|
+
actionData == null ? void 0 : actionData.url,
|
|
1165
|
+
actionData != null && actionData.targetBlank ? "_blank" : "_self"
|
|
1113
1166
|
);
|
|
1114
|
-
else if (actionData.actionType === "modal")
|
|
1167
|
+
else if ((actionData == null ? void 0 : actionData.actionType) === "modal")
|
|
1115
1168
|
showModal.value = !0;
|
|
1116
|
-
else if (actionData.actionType === "script")
|
|
1169
|
+
else if ((actionData == null ? void 0 : actionData.actionType) === "script")
|
|
1117
1170
|
try {
|
|
1118
1171
|
eval(actionData == null ? void 0 : actionData.script);
|
|
1119
|
-
} catch (
|
|
1120
|
-
console.error("Error executing script:",
|
|
1172
|
+
} catch (a) {
|
|
1173
|
+
console.error("Error executing script:", a);
|
|
1121
1174
|
}
|
|
1122
1175
|
break;
|
|
1123
1176
|
}
|
|
@@ -1125,10 +1178,10 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1125
1178
|
return watch(
|
|
1126
1179
|
() => projectMeta.value,
|
|
1127
1180
|
() => {
|
|
1128
|
-
const
|
|
1129
|
-
|
|
1181
|
+
const a = getColorMeta("path_color"), d = getColorMeta("path_hover_color"), i = getColorMeta("reserved_color"), s = getColorMeta("sold_color"), b = getColorMeta("stroke_color"), u = getColorMeta("stroke_width");
|
|
1182
|
+
a && (colors.path = a.toString()), d && (colors.path_hover = d.toString()), i && (colors.reserved = i.toString()), s && (colors.sold = s.toString()), b && (colors.stroke_color = b.toString()), u && (colors.stroke_width = Number(u));
|
|
1130
1183
|
}
|
|
1131
|
-
), (
|
|
1184
|
+
), (a, d) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
1132
1185
|
createVNode(Transition, {
|
|
1133
1186
|
name: "ire-fade-in-out",
|
|
1134
1187
|
mode: "out-in",
|
|
@@ -1144,25 +1197,27 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1144
1197
|
projectMeta: projectMeta.value,
|
|
1145
1198
|
blocks: blocks.value,
|
|
1146
1199
|
actions: actions.value,
|
|
1147
|
-
onChangeComponent:
|
|
1148
|
-
}, null, 8, ["project", "floors", "flats", "projectMeta", "blocks", "actions"])) : flow.value === "blockFlow" && flats.value && floors.value && blocks.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
1200
|
+
onChangeComponent: d[0] || (d[0] = (i, s) => changeRoute(i, s))
|
|
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, {
|
|
1149
1202
|
key: 1,
|
|
1150
|
-
block:
|
|
1203
|
+
block: activeBlock.value,
|
|
1151
1204
|
flats: flats.value,
|
|
1152
1205
|
floors: floors.value,
|
|
1153
|
-
|
|
1154
|
-
|
|
1206
|
+
actions: actions.value,
|
|
1207
|
+
onChangeComponent: d[1] || (d[1] = (i, s) => changeRoute(i, s))
|
|
1208
|
+
}, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$a, {
|
|
1155
1209
|
key: 2,
|
|
1156
1210
|
flats: flats.value,
|
|
1157
|
-
floor:
|
|
1211
|
+
floor: activeFloor.value,
|
|
1158
1212
|
floors: floors.value,
|
|
1159
1213
|
blocks: blocks.value,
|
|
1160
|
-
|
|
1161
|
-
|
|
1214
|
+
actions: actions.value,
|
|
1215
|
+
onChangeComponent: d[2] || (d[2] = (i, s) => changeRoute(i, s))
|
|
1216
|
+
}, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : flow.value === "flatFlow" ? (openBlock(), createBlock(_sfc_main$7, {
|
|
1162
1217
|
key: 3,
|
|
1163
1218
|
flat: hoveredData.value,
|
|
1164
1219
|
floors: floors.value,
|
|
1165
|
-
onChangeComponent:
|
|
1220
|
+
onChangeComponent: d[3] || (d[3] = (i, s) => changeRoute(i, s))
|
|
1166
1221
|
}, null, 8, ["flat", "floors"])) : createCommentVNode("", !0)
|
|
1167
1222
|
])) : createCommentVNode("", !0)
|
|
1168
1223
|
]),
|
|
@@ -1176,7 +1231,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1176
1231
|
default: withCtx(() => [
|
|
1177
1232
|
showModal.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
1178
1233
|
key: 0,
|
|
1179
|
-
onClose:
|
|
1234
|
+
onClose: d[4] || (d[4] = (i) => showModal.value = !1)
|
|
1180
1235
|
}, {
|
|
1181
1236
|
default: withCtx(() => [
|
|
1182
1237
|
createVNode(_sfc_main$3, { modalData: hoveredData.value }, null, 8, ["modalData"])
|