ire-preview 2.1.4 → 2.1.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 +56 -56
- package/package.json +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -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 o, c, v, m, y, _, f,
|
|
222
|
+
var o, c, v, m, y, _, f, k, d, s, n, i, u, l, a, h, p, g, b, w, $, C, x, V, E, D, N, S;
|
|
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, [
|
|
@@ -229,7 +229,7 @@ const _hoisted_1$f = {
|
|
|
229
229
|
]),
|
|
230
230
|
(c = e.hoveredData) != null && c.conf || (m = (v = e.hoveredData) == null ? void 0 : v.flats) != null && m.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
231
231
|
(y = e.hoveredData) != null && y.conf ? (openBlock(), createElementBlock("div", _hoisted_6$1, toDisplayString((_ = e.hoveredData) == null ? void 0 : _.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
232
|
-
(
|
|
232
|
+
(k = (f = e.hoveredData) == null ? void 0 : f.counts) != null && k.available ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
233
233
|
createElementVNode("p", _hoisted_9$1, toDisplayString(((s = (d = e.hoveredData) == null ? void 0 : d.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),
|
|
@@ -238,7 +238,7 @@ const _hoisted_1$f = {
|
|
|
238
238
|
t[2] || (t[2] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Reserved", -1))
|
|
239
239
|
])) : createCommentVNode("", !0),
|
|
240
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((
|
|
241
|
+
createElementVNode("p", _hoisted_13$1, toDisplayString((g = (p = e.hoveredData) == null ? void 0 : p.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
|
]))
|
|
@@ -326,51 +326,51 @@ const _hoisted_1$f = {
|
|
|
326
326
|
});
|
|
327
327
|
computed(() => {
|
|
328
328
|
var d, s;
|
|
329
|
-
const
|
|
329
|
+
const k = (s = (d = o.projectMeta) == null ? void 0 : d.find(
|
|
330
330
|
(n) => (n == null ? void 0 : n.meta_key) === "project_img_contain"
|
|
331
331
|
)) == null ? void 0 : s.meta_value;
|
|
332
|
-
return JSON.parse((
|
|
332
|
+
return JSON.parse((k == null ? void 0 : k.toString()) || "false");
|
|
333
333
|
});
|
|
334
|
-
const _ = (
|
|
335
|
-
const d =
|
|
334
|
+
const _ = (k) => {
|
|
335
|
+
const d = k.target;
|
|
336
336
|
d && (c.value = d);
|
|
337
|
-
}, f = (
|
|
337
|
+
}, f = (k) => {
|
|
338
338
|
var s, n, i;
|
|
339
|
-
const d =
|
|
339
|
+
const d = k.target;
|
|
340
340
|
(d == null ? void 0 : d.nodeName) === "path" && (((s = v.value) == null ? void 0 : s.conf) === "sold" || ((n = v.value) == null ? void 0 : n.conf) === "reserved" || t("changeComponent", ((i = m.value) == null ? void 0 : i.type) || "", v == null ? void 0 : v.value));
|
|
341
341
|
};
|
|
342
342
|
return watch(
|
|
343
343
|
() => c.value,
|
|
344
|
-
(
|
|
344
|
+
(k) => {
|
|
345
345
|
var s, n, i, u, l, a, h;
|
|
346
|
-
if (!
|
|
347
|
-
const d =
|
|
346
|
+
if (!k) return;
|
|
347
|
+
const d = k.parentElement;
|
|
348
348
|
if (d && (d == null ? void 0 : d.nodeName) === "g") {
|
|
349
349
|
const p = d == null ? void 0 : d.getAttribute("id");
|
|
350
350
|
if (!p || (m.value = ((s = o.project) == null ? void 0 : s.polygon_data.find((b) => (b == null ? void 0 : b.key) === p)) || null, !m.value)) return;
|
|
351
|
-
const
|
|
351
|
+
const g = (n = m.value) == null ? void 0 : n.id;
|
|
352
352
|
switch ((i = m.value) == null ? void 0 : i.type) {
|
|
353
353
|
case "floor":
|
|
354
354
|
const b = (u = o.floors) == null ? void 0 : u.find(
|
|
355
|
-
(x) => x.id ===
|
|
355
|
+
(x) => x.id === g
|
|
356
356
|
);
|
|
357
357
|
v.value = b;
|
|
358
358
|
break;
|
|
359
359
|
case "block":
|
|
360
360
|
const w = (l = o.blocks) == null ? void 0 : l.find(
|
|
361
|
-
(x) => (x == null ? void 0 : x.id) ===
|
|
361
|
+
(x) => (x == null ? void 0 : x.id) === g
|
|
362
362
|
);
|
|
363
363
|
v.value = w;
|
|
364
364
|
break;
|
|
365
365
|
case "flat":
|
|
366
366
|
const $ = (a = o.flats) == null ? void 0 : a.find(
|
|
367
|
-
(x) => (x == null ? void 0 : x.id) ===
|
|
367
|
+
(x) => (x == null ? void 0 : x.id) === g
|
|
368
368
|
);
|
|
369
369
|
v.value = $;
|
|
370
370
|
break;
|
|
371
371
|
case "tooltip":
|
|
372
372
|
const C = (h = o.actions) == null ? void 0 : h.find(
|
|
373
|
-
(x) => (x == null ? void 0 : x.id) ===
|
|
373
|
+
(x) => (x == null ? void 0 : x.id) === g
|
|
374
374
|
);
|
|
375
375
|
v.value = C;
|
|
376
376
|
break;
|
|
@@ -381,7 +381,7 @@ const _hoisted_1$f = {
|
|
|
381
381
|
} else
|
|
382
382
|
m.value = null, v.value = null;
|
|
383
383
|
}
|
|
384
|
-
), (
|
|
384
|
+
), (k, d) => {
|
|
385
385
|
var s;
|
|
386
386
|
return openBlock(), createBlock(_sfc_main$f, {
|
|
387
387
|
hoverdData: v.value,
|
|
@@ -392,7 +392,7 @@ const _hoisted_1$f = {
|
|
|
392
392
|
return [
|
|
393
393
|
createElementVNode("div", _hoisted_1$d, [
|
|
394
394
|
createElementVNode("img", {
|
|
395
|
-
src: (u = (i = (n =
|
|
395
|
+
src: (u = (i = (n = k.project) == null ? void 0 : n.project_image) == null ? void 0 : i[0]) == null ? void 0 : u.url,
|
|
396
396
|
alt: "",
|
|
397
397
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
398
398
|
}, null, 8, _hoisted_2$6),
|
|
@@ -507,7 +507,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
|
|
|
507
507
|
},
|
|
508
508
|
emits: ["changeComponent"],
|
|
509
509
|
setup(r, { emit: e }) {
|
|
510
|
-
const t = e, o = r, c = ref(), v = ref(), m = ref(), y = ref(null), _ = ref(), f = ref(),
|
|
510
|
+
const t = e, o = r, c = ref(), v = ref(), m = ref(), y = ref(null), _ = ref(), f = ref(), k = computed$1(() => {
|
|
511
511
|
var l;
|
|
512
512
|
if ((l = o.floor) != null && l.svg)
|
|
513
513
|
return o.floor.svg;
|
|
@@ -523,9 +523,9 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
|
|
|
523
523
|
).map((l) => {
|
|
524
524
|
var h, p;
|
|
525
525
|
const a = (h = o.blocks) == null ? void 0 : h.find(
|
|
526
|
-
(
|
|
526
|
+
(g) => {
|
|
527
527
|
var b;
|
|
528
|
-
return (
|
|
528
|
+
return (g == null ? void 0 : g.id) === ((b = l == null ? void 0 : l.block_id) == null ? void 0 : b.toString());
|
|
529
529
|
}
|
|
530
530
|
);
|
|
531
531
|
return {
|
|
@@ -536,14 +536,14 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
|
|
|
536
536
|
const a = l.target;
|
|
537
537
|
a && (v.value = a);
|
|
538
538
|
}, n = (l) => {
|
|
539
|
-
var h, p,
|
|
539
|
+
var h, p, g;
|
|
540
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" || ((p = y.value) == null ? void 0 : p.conf) === "reserved") || t("changeComponent", ((
|
|
541
|
+
(a == null ? void 0 : a.nodeName) === "path" && (y.value && "conf" in y.value && (((h = y.value) == null ? void 0 : h.conf) === "sold" || ((p = y.value) == null ? void 0 : p.conf) === "reserved") || t("changeComponent", ((g = m.value) == null ? void 0 : g.type) || "", y.value));
|
|
542
542
|
}, i = () => {
|
|
543
543
|
var l;
|
|
544
544
|
c.value && ((l = c.value) == null ? void 0 : l.querySelectorAll("g")).forEach((h) => {
|
|
545
545
|
var b, w, $, C, x, V;
|
|
546
|
-
const p = h == null ? void 0 : h.getAttribute("id"),
|
|
546
|
+
const p = h == null ? void 0 : h.getAttribute("id"), g = (w = (b = o.floor) == null ? void 0 : b.polygon_data) == null ? void 0 : w.find(
|
|
547
547
|
(E) => (E == null ? void 0 : E.key) === p
|
|
548
548
|
);
|
|
549
549
|
if (o.flats)
|
|
@@ -551,7 +551,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
|
|
|
551
551
|
h.setAttribute("conf", ((C = o.floor) == null ? void 0 : C.conf) || "");
|
|
552
552
|
else {
|
|
553
553
|
const E = (x = o.flats) == null ? void 0 : x.find(
|
|
554
|
-
(D) => (D == null ? void 0 : D.id) === (
|
|
554
|
+
(D) => (D == null ? void 0 : D.id) === (g == null ? void 0 : g.id)
|
|
555
555
|
);
|
|
556
556
|
h == null || h.setAttribute("conf", ((V = E == null ? void 0 : E.conf) == null ? void 0 : V.toString()) || "");
|
|
557
557
|
}
|
|
@@ -563,13 +563,13 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
|
|
|
563
563
|
return watch(
|
|
564
564
|
() => v.value,
|
|
565
565
|
(l) => {
|
|
566
|
-
var h, p,
|
|
566
|
+
var h, p, g, b, w, $;
|
|
567
567
|
if (!l) return;
|
|
568
568
|
const a = l == null ? void 0 : l.parentElement;
|
|
569
569
|
if (a && (a == null ? void 0 : a.nodeName) === "g") {
|
|
570
570
|
const C = a.getAttribute("id");
|
|
571
571
|
if (!C || (m.value = ((p = (h = o.floor) == null ? void 0 : h.polygon_data) == null ? void 0 : p.find((x) => (x == null ? void 0 : x.key) === C)) || null, !m.value)) return;
|
|
572
|
-
if (((
|
|
572
|
+
if (((g = m.value) == null ? void 0 : g.type) === "flat") {
|
|
573
573
|
const x = (b = o.flats) == null ? void 0 : b.find(
|
|
574
574
|
(V) => {
|
|
575
575
|
var E;
|
|
@@ -605,13 +605,13 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
|
|
|
605
605
|
var l, a, h;
|
|
606
606
|
f.value = (l = o.blocks) == null ? void 0 : l.find(
|
|
607
607
|
(p) => {
|
|
608
|
-
var
|
|
609
|
-
return (p == null ? void 0 : p.id) === ((b = (
|
|
608
|
+
var g, b;
|
|
609
|
+
return (p == null ? void 0 : p.id) === ((b = (g = o.floor) == null ? void 0 : g.block_id) == null ? void 0 : b.toString());
|
|
610
610
|
}
|
|
611
611
|
), _.value = (h = (a = d.value) == null ? void 0 : a.find(
|
|
612
612
|
(p) => {
|
|
613
|
-
var
|
|
614
|
-
return (p == null ? void 0 : p.value) == ((
|
|
613
|
+
var g;
|
|
614
|
+
return (p == null ? void 0 : p.value) == ((g = o.floor) == null ? void 0 : g.id);
|
|
615
615
|
}
|
|
616
616
|
)) == null ? void 0 : h.value, i();
|
|
617
617
|
}), (l, a) => {
|
|
@@ -631,19 +631,19 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
|
|
|
631
631
|
])
|
|
632
632
|
]),
|
|
633
633
|
default: withCtx(() => {
|
|
634
|
-
var p,
|
|
634
|
+
var p, g, b;
|
|
635
635
|
return [
|
|
636
636
|
createElementVNode("div", _hoisted_2$4, [
|
|
637
637
|
createElementVNode("img", {
|
|
638
|
-
src: ((b = (
|
|
638
|
+
src: ((b = (g = (p = l.floor) == null ? void 0 : p.floor_image) == null ? void 0 : g[0]) == null ? void 0 : b.url) || "",
|
|
639
639
|
alt: "",
|
|
640
640
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
641
641
|
}, null, 8, _hoisted_3$3),
|
|
642
642
|
(openBlock(), createElementBlock("div", {
|
|
643
643
|
ref_key: "svgRef",
|
|
644
644
|
ref: c,
|
|
645
|
-
innerHTML:
|
|
646
|
-
key:
|
|
645
|
+
innerHTML: k.value,
|
|
646
|
+
key: k.value,
|
|
647
647
|
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)] [&_svg]:ire-h-full [&_svg]:ire-w-full",
|
|
648
648
|
onMouseover: s,
|
|
649
649
|
onClick: n
|
|
@@ -723,15 +723,15 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
723
723
|
emits: ["changeComponent"],
|
|
724
724
|
setup(r, { emit: e }) {
|
|
725
725
|
const t = e, o = r, c = ref(!0), v = ref(0), m = computed$1(() => {
|
|
726
|
-
var f,
|
|
727
|
-
const _ = c.value ? (d = (
|
|
726
|
+
var f, k, d, s, n, i;
|
|
727
|
+
const _ = c.value ? (d = (k = (f = o.flat) == null ? void 0 : f.type) == null ? void 0 : k.image_2d) == null ? void 0 : d.length : (i = (n = (s = o.flat) == null ? void 0 : s.type) == null ? void 0 : n.image_3d) == null ? void 0 : i.length;
|
|
728
728
|
return ["I", "II", "III"].slice(0, _);
|
|
729
729
|
}), y = () => {
|
|
730
730
|
var f;
|
|
731
731
|
const _ = (f = o.floors) == null ? void 0 : f.find(
|
|
732
|
-
(
|
|
732
|
+
(k) => {
|
|
733
733
|
var d, s, n, i, u, l;
|
|
734
|
-
return ((d =
|
|
734
|
+
return ((d = k.floor_number) == null ? void 0 : d.toString()) === ((n = (s = o.flat) == null ? void 0 : s.floor_number) == null ? void 0 : n.toString()) && ((i = o.flat) != null && i.block_id ? ((u = k == null ? void 0 : k.block_id) == null ? void 0 : u.toString()) === ((l = o.flat) == null ? void 0 : l.block_id) : !(k != null && k.block_id));
|
|
735
735
|
}
|
|
736
736
|
);
|
|
737
737
|
_ ? t("changeComponent", "floor", _) : t("changeComponent", "project", null);
|
|
@@ -750,7 +750,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
750
750
|
createVNode(_sfc_main$b, { onClick: y })
|
|
751
751
|
]),
|
|
752
752
|
default: withCtx(() => {
|
|
753
|
-
var
|
|
753
|
+
var k, d, s, n, i, u, l, a, h, p, g, b, w, $, C, x, V, E, D, N, S, j, T, R, P, O, F;
|
|
754
754
|
return [
|
|
755
755
|
createElementVNode("div", _hoisted_1$6, [
|
|
756
756
|
createElementVNode("div", _hoisted_2$3, [
|
|
@@ -776,7 +776,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
776
776
|
}),
|
|
777
777
|
createElementVNode("div", _hoisted_5, [
|
|
778
778
|
createElementVNode("div", _hoisted_6, [
|
|
779
|
-
(n = (s = (d = (
|
|
779
|
+
(n = (s = (d = (k = _.flat) == null ? void 0 : k.type) == null ? void 0 : d.image_2d) == null ? void 0 : s[0]) != null && n.url ? (openBlock(), createElementBlock("div", {
|
|
780
780
|
key: 0,
|
|
781
781
|
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 }]),
|
|
782
782
|
onClick: f[0] || (f[0] = (B) => c.value = !0)
|
|
@@ -826,7 +826,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
826
826
|
f[2] || (f[2] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Apartment", -1))
|
|
827
827
|
]),
|
|
828
828
|
createElementVNode("div", _hoisted_12, [
|
|
829
|
-
createElementVNode("p", _hoisted_13, toDisplayString((b = (
|
|
829
|
+
createElementVNode("p", _hoisted_13, toDisplayString((b = (g = _.flat) == null ? void 0 : g.type) == null ? void 0 : b.title), 1),
|
|
830
830
|
createElementVNode("p", _hoisted_14, toDisplayString(($ = (w = _.flat) == null ? void 0 : w.type) == null ? void 0 : $.teaser), 1)
|
|
831
831
|
]),
|
|
832
832
|
createElementVNode("div", _hoisted_15, [
|
|
@@ -927,13 +927,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
927
927
|
},
|
|
928
928
|
setup(r) {
|
|
929
929
|
return (e, t) => {
|
|
930
|
-
var o, c, v, m, y, _, f,
|
|
930
|
+
var o, c, v, m, y, _, f, k, d, s, n, i;
|
|
931
931
|
return openBlock(), createElementBlock("div", null, [
|
|
932
932
|
createElementVNode("p", _hoisted_1$2, toDisplayString((c = (o = e.modalData) == null ? void 0 : o.modalObject) == null ? void 0 : c.title), 1),
|
|
933
933
|
createVNode(_sfc_main$4, {
|
|
934
934
|
editor: (m = (v = e.modalData) == null ? void 0 : v.modalObject) == null ? void 0 : m.description
|
|
935
935
|
}, null, 8, ["editor"]),
|
|
936
|
-
(
|
|
936
|
+
(k = (f = (_ = (y = e.modalData) == null ? void 0 : y.modalObject) == null ? void 0 : _.modalImage) == null ? void 0 : f[0]) != null && k.url ? (openBlock(), createElementBlock("img", {
|
|
937
937
|
key: 0,
|
|
938
938
|
src: (i = (n = (s = (d = e.modalData) == null ? void 0 : d.modalObject) == null ? void 0 : s.modalImage) == null ? void 0 : n[0]) == null ? void 0 : i.url,
|
|
939
939
|
alt: "",
|
|
@@ -959,7 +959,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
959
959
|
}), f = (d) => {
|
|
960
960
|
const s = d.target;
|
|
961
961
|
s && (v.value = s);
|
|
962
|
-
},
|
|
962
|
+
}, k = (d) => {
|
|
963
963
|
var n, i, u;
|
|
964
964
|
const s = d.target;
|
|
965
965
|
(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(
|
|
@@ -971,7 +971,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
971
971
|
return watch(
|
|
972
972
|
() => v.value,
|
|
973
973
|
(d) => {
|
|
974
|
-
var n, i, u, l, a, h, p,
|
|
974
|
+
var n, i, u, l, a, h, p, g;
|
|
975
975
|
if (!d) return;
|
|
976
976
|
const s = d == null ? void 0 : d.parentElement;
|
|
977
977
|
if (s && (s == null ? void 0 : s.nodeName) === "g") {
|
|
@@ -994,7 +994,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
994
994
|
);
|
|
995
995
|
y.value = w;
|
|
996
996
|
} else if (((p = m.value) == null ? void 0 : p.type) === "tooltip") {
|
|
997
|
-
const w = (
|
|
997
|
+
const w = (g = o.actions) == null ? void 0 : g.find(
|
|
998
998
|
($) => {
|
|
999
999
|
var C;
|
|
1000
1000
|
return ($ == null ? void 0 : $.id) === ((C = m.value) == null ? void 0 : C.id);
|
|
@@ -1043,7 +1043,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1043
1043
|
}
|
|
1044
1044
|
]]),
|
|
1045
1045
|
onMouseover: f,
|
|
1046
|
-
onClick:
|
|
1046
|
+
onClick: k
|
|
1047
1047
|
}, null, 42, _hoisted_4))
|
|
1048
1048
|
])
|
|
1049
1049
|
];
|
|
@@ -1052,13 +1052,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1052
1052
|
}, 8, ["hoverdData", "type"]);
|
|
1053
1053
|
};
|
|
1054
1054
|
}
|
|
1055
|
-
}), _hoisted_1 = { class: "
|
|
1055
|
+
}), _hoisted_1 = { class: "interactive-real-estate" }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
1056
1056
|
__name: "Preview",
|
|
1057
1057
|
props: {
|
|
1058
1058
|
shortcodeDataProps: {}
|
|
1059
1059
|
},
|
|
1060
1060
|
setup(__props) {
|
|
1061
|
-
var r, e, t, o, c, v, m, y, _, f,
|
|
1061
|
+
var r, e, t, o, c, v, m, y, _, f, k, d;
|
|
1062
1062
|
const props = __props, getMeta = (s) => props.shortcodeDataProps.meta.find(
|
|
1063
1063
|
(n) => n.meta_key === s
|
|
1064
1064
|
), constants = ref({
|
|
@@ -1073,7 +1073,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1073
1073
|
path_hover: (y = constants.value) == null ? void 0 : y.PREVIEW_PATH_HOVER_COLOR,
|
|
1074
1074
|
reserved: (_ = constants.value) == null ? void 0 : _.PREVIEW_RESERVED_COLOR,
|
|
1075
1075
|
sold: (f = constants.value) == null ? void 0 : f.PREVIEW_SOLD_COLOR,
|
|
1076
|
-
stroke_color: (
|
|
1076
|
+
stroke_color: (k = constants.value) == null ? void 0 : k.PREVIEW_STROKE_COLOR,
|
|
1077
1077
|
stroke_width: (d = constants.value) == null ? void 0 : d.PREVIEW_STROKE_WIDTH
|
|
1078
1078
|
}), cssVariables = computed$1(() => ({
|
|
1079
1079
|
"--reserved-color": colors.reserved,
|
|
@@ -1094,8 +1094,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1094
1094
|
return (s = shortcodeData.value.floors) == null || s.forEach((i) => {
|
|
1095
1095
|
var a, h;
|
|
1096
1096
|
const u = (h = (a = shortcodeData.value) == null ? void 0 : a.flats) == null ? void 0 : h.filter((p) => {
|
|
1097
|
-
var
|
|
1098
|
-
return (p == null ? void 0 : p.floor_number) !== ((
|
|
1097
|
+
var g;
|
|
1098
|
+
return (p == null ? void 0 : p.floor_number) !== ((g = i == null ? void 0 : i.floor_number) == null ? void 0 : g.toString()) ? !1 : i != null && i.polygon_data ? Object == null ? void 0 : Object.values(i == null ? void 0 : i.polygon_data).some(
|
|
1099
1099
|
(w) => {
|
|
1100
1100
|
var $;
|
|
1101
1101
|
return w != null && w.type && (w == null ? void 0 : w.type) === "flat" && (w == null ? void 0 : w.id) === (p == null ? void 0 : p.id) ? i != null && i.block_id ? (p == null ? void 0 : p.block_id) === (($ = i == null ? void 0 : i.block_id) == null ? void 0 : $.toString()) : !(p != null && p.block_id) : !1;
|
|
@@ -1105,8 +1105,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1105
1105
|
i.flats = u;
|
|
1106
1106
|
const { conf: l } = i || {};
|
|
1107
1107
|
if (u != null && u.length && !l) {
|
|
1108
|
-
const p = u == null ? void 0 : u.every((b) => (b == null ? void 0 : b.conf) === "reserved"),
|
|
1109
|
-
p ? i.conf = "reserved" :
|
|
1108
|
+
const p = u == null ? void 0 : u.every((b) => (b == null ? void 0 : b.conf) === "reserved"), g = u == null ? void 0 : u.every((b) => (b == null ? void 0 : b.conf) === "sold");
|
|
1109
|
+
p ? i.conf = "reserved" : g && (i.conf = "sold");
|
|
1110
1110
|
}
|
|
1111
1111
|
}), (n = shortcodeData.value) == null ? void 0 : n.floors;
|
|
1112
1112
|
}), blocks = computed$1(() => {
|