ire-preview 2.2.9 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.es.js +117 -112
- package/package.json +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -231,7 +231,7 @@ const _hoisted_1$g = {
|
|
|
231
231
|
return (t, r) => (openBlock(), createElementBlock("div", null, [
|
|
232
232
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
233
233
|
default: withCtx(() => {
|
|
234
|
-
var o, s, c, d, k,
|
|
234
|
+
var o, s, c, d, k, n, f, x, y, u, _, a, v, l, i, p, m, $, h, E, S, g, b, w, V, C, D, R, j;
|
|
235
235
|
return [
|
|
236
236
|
t.type && t.hoveredData && t.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
237
237
|
t.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
@@ -240,13 +240,13 @@ const _hoisted_1$g = {
|
|
|
240
240
|
r[0] || (r[0] = createElementVNode("div", { class: "!ire-text-sm ire-uppercase" }, "Floor", -1))
|
|
241
241
|
]),
|
|
242
242
|
(s = t.hoveredData) != null && s.conf || (d = (c = t.hoveredData) == null ? void 0 : c.flats) != null && d.length ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
243
|
-
(k = t.hoveredData) != null && k.conf ? (openBlock(), createElementBlock("div", _hoisted_6$3, toDisplayString((
|
|
243
|
+
(k = t.hoveredData) != null && k.conf ? (openBlock(), createElementBlock("div", _hoisted_6$3, toDisplayString((n = t.hoveredData) == null ? void 0 : n.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$3, [
|
|
244
244
|
(x = (f = t.hoveredData) == null ? void 0 : f.counts) != null && x.available ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
|
|
245
245
|
createElementVNode("div", _hoisted_9$3, toDisplayString(((u = (y = t.hoveredData) == null ? void 0 : y.counts) == null ? void 0 : u.available) || 0), 1),
|
|
246
246
|
r[1] || (r[1] = createElementVNode("div", { class: "!ire-text-sm ire-uppercase" }, "Available", -1))
|
|
247
247
|
])) : createCommentVNode("", !0),
|
|
248
248
|
(a = (_ = t.hoveredData) == null ? void 0 : _.counts) != null && a.reserved ? (openBlock(), createElementBlock("div", _hoisted_10$3, [
|
|
249
|
-
createElementVNode("div", _hoisted_11$2, toDisplayString((
|
|
249
|
+
createElementVNode("div", _hoisted_11$2, toDisplayString((l = (v = t.hoveredData) == null ? void 0 : v.counts) == null ? void 0 : l.reserved), 1),
|
|
250
250
|
r[2] || (r[2] = createElementVNode("div", { class: "!ire-text-sm ire-uppercase" }, "Reserved", -1))
|
|
251
251
|
])) : createCommentVNode("", !0),
|
|
252
252
|
(p = (i = t.hoveredData) == null ? void 0 : i.counts) != null && p.sold ? (openBlock(), createElementBlock("div", _hoisted_12$2, [
|
|
@@ -328,7 +328,7 @@ const _hoisted_1$g = {
|
|
|
328
328
|
const t = inject("mouseX"), r = inject("mouseY");
|
|
329
329
|
return (o, s) => (openBlock(), createBlock(Transition, { name: "ire-fade-in" }, {
|
|
330
330
|
default: withCtx(() => {
|
|
331
|
-
var c, d, k,
|
|
331
|
+
var c, d, k, n, f, x, y, u, _, a, v, l;
|
|
332
332
|
return [
|
|
333
333
|
o.type && o.hoveredData && o.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
|
|
334
334
|
key: 0,
|
|
@@ -340,7 +340,7 @@ const _hoisted_1$g = {
|
|
|
340
340
|
createElementVNode("div", _hoisted_1$f, [
|
|
341
341
|
o.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
342
342
|
createElementVNode("div", null, "Floor: " + toDisplayString((c = o.hoveredData) == null ? void 0 : c.floor_number), 1),
|
|
343
|
-
(d = o.hoveredData) != null && d.conf ? (openBlock(), createElementBlock("div", _hoisted_3$7, toDisplayString(o.hoveredData.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_4$6, "Available: " + toDisplayString(((
|
|
343
|
+
(d = o.hoveredData) != null && d.conf ? (openBlock(), createElementBlock("div", _hoisted_3$7, toDisplayString(o.hoveredData.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_4$6, "Available: " + toDisplayString(((n = (k = o.hoveredData) == null ? void 0 : k.counts) == null ? void 0 : n.available) || 0), 1))
|
|
344
344
|
])) : o.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
345
345
|
createElementVNode("div", _hoisted_6$2, [
|
|
346
346
|
createElementVNode("div", null, toDisplayString((f = o.hoveredData) == null ? void 0 : f.title), 1),
|
|
@@ -357,7 +357,9 @@ const _hoisted_1$g = {
|
|
|
357
357
|
])
|
|
358
358
|
])),
|
|
359
359
|
createElementVNode("div", _hoisted_13$1, [
|
|
360
|
-
createTextVNode(toDisplayString((v = (a = o.hoveredData) == null ? void 0 : a.type) == null ? void 0 : v.area_m2)
|
|
360
|
+
createTextVNode(toDisplayString((l = Number((v = (a = o.hoveredData) == null ? void 0 : a.type) == null ? void 0 : v.area_m2)) == null ? void 0 : l.toLocaleString(
|
|
361
|
+
"fr-FR"
|
|
362
|
+
)) + " M ", 1),
|
|
361
363
|
s[1] || (s[1] = createElementVNode("sup", { class: "ire-right-[2px] !ire-text-xs ire-text-gray-200" }, " 2 ", -1))
|
|
362
364
|
])
|
|
363
365
|
])) : createCommentVNode("", !0)
|
|
@@ -537,7 +539,7 @@ function isComputed(e) {
|
|
|
537
539
|
}
|
|
538
540
|
function createOptionsStore(e, t, r, o) {
|
|
539
541
|
const { state: s, actions: c, getters: d } = t, k = r.state.value[e];
|
|
540
|
-
let
|
|
542
|
+
let n;
|
|
541
543
|
function f() {
|
|
542
544
|
k || (r.state.value[e] = s ? s() : {});
|
|
543
545
|
const x = toRefs(r.state.value[e]);
|
|
@@ -547,16 +549,16 @@ function createOptionsStore(e, t, r, o) {
|
|
|
547
549
|
return d[u].call(_, _);
|
|
548
550
|
})), y), {}));
|
|
549
551
|
}
|
|
550
|
-
return
|
|
552
|
+
return n = createSetupStore(e, f, t, r, o, !0), n;
|
|
551
553
|
}
|
|
552
554
|
function createSetupStore(e, t, r = {}, o, s, c) {
|
|
553
555
|
let d;
|
|
554
|
-
const k = assign({ actions: {} }, r),
|
|
556
|
+
const k = assign({ actions: {} }, r), n = { deep: !0 };
|
|
555
557
|
let f, x, y = [], u = [], _;
|
|
556
558
|
const a = o.state.value[e];
|
|
557
559
|
!c && !a && (o.state.value[e] = {}), ref({});
|
|
558
560
|
let v;
|
|
559
|
-
function
|
|
561
|
+
function l(g) {
|
|
560
562
|
let b;
|
|
561
563
|
f = x = !1, typeof g == "function" ? (g(o.state.value[e]), b = {
|
|
562
564
|
type: MutationType.patchFunction,
|
|
@@ -618,7 +620,7 @@ function createSetupStore(e, t, r = {}, o, s, c) {
|
|
|
618
620
|
// _s: scope,
|
|
619
621
|
$id: e,
|
|
620
622
|
$onAction: addSubscription.bind(null, u),
|
|
621
|
-
$patch:
|
|
623
|
+
$patch: l,
|
|
622
624
|
$reset: i,
|
|
623
625
|
$subscribe(g, b = {}) {
|
|
624
626
|
const w = addSubscription(y, g, b.detached, () => V()), V = d.run(() => watch(() => o.state.value[e], (C) => {
|
|
@@ -627,7 +629,7 @@ function createSetupStore(e, t, r = {}, o, s, c) {
|
|
|
627
629
|
type: MutationType.direct,
|
|
628
630
|
events: _
|
|
629
631
|
}, C);
|
|
630
|
-
}, assign({},
|
|
632
|
+
}, assign({}, n, b)));
|
|
631
633
|
return w;
|
|
632
634
|
},
|
|
633
635
|
$dispose: p
|
|
@@ -646,7 +648,7 @@ function createSetupStore(e, t, r = {}, o, s, c) {
|
|
|
646
648
|
return assign(h, S), assign(toRaw(h), S), Object.defineProperty(h, "$state", {
|
|
647
649
|
get: () => o.state.value[e],
|
|
648
650
|
set: (g) => {
|
|
649
|
-
|
|
651
|
+
l((b) => {
|
|
650
652
|
assign(b, g);
|
|
651
653
|
});
|
|
652
654
|
}
|
|
@@ -666,10 +668,10 @@ function defineStore(e, t, r) {
|
|
|
666
668
|
const s = typeof t == "function";
|
|
667
669
|
o = s ? r : t;
|
|
668
670
|
function c(d, k) {
|
|
669
|
-
const
|
|
671
|
+
const n = hasInjectionContext();
|
|
670
672
|
return d = // in test mode, ignore the argument provided as we can always retrieve a
|
|
671
673
|
// pinia instance with getActivePinia()
|
|
672
|
-
d || (
|
|
674
|
+
d || (n ? inject(piniaSymbol, null) : null), d && setActivePinia(d), d = activePinia, d._s.has(e) || (s ? createSetupStore(e, t, o, d) : createOptionsStore(e, o, d)), d._s.get(e);
|
|
673
675
|
}
|
|
674
676
|
return c.$id = e, c;
|
|
675
677
|
}
|
|
@@ -691,7 +693,7 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
691
693
|
},
|
|
692
694
|
emits: ["changeComponent"],
|
|
693
695
|
setup(e, { emit: t }) {
|
|
694
|
-
const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(null),
|
|
696
|
+
const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(null), n = computed(() => {
|
|
695
697
|
if (o.project)
|
|
696
698
|
return o.project.svg;
|
|
697
699
|
});
|
|
@@ -713,7 +715,7 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
713
715
|
return watch(
|
|
714
716
|
() => c.value,
|
|
715
717
|
(y) => {
|
|
716
|
-
var _, a, v,
|
|
718
|
+
var _, a, v, l, i, p, m;
|
|
717
719
|
if (!y) return;
|
|
718
720
|
s.hoverdSvg = y;
|
|
719
721
|
const u = y.parentElement;
|
|
@@ -723,7 +725,7 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
723
725
|
const h = (a = k.value) == null ? void 0 : a.id;
|
|
724
726
|
switch ((v = k.value) == null ? void 0 : v.type) {
|
|
725
727
|
case "floor":
|
|
726
|
-
const E = (
|
|
728
|
+
const E = (l = o.floors) == null ? void 0 : l.find(
|
|
727
729
|
(w) => w.id === h
|
|
728
730
|
);
|
|
729
731
|
d.value = E;
|
|
@@ -760,17 +762,17 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
760
762
|
type: (_ = k.value) == null ? void 0 : _.type
|
|
761
763
|
}, {
|
|
762
764
|
default: withCtx(() => {
|
|
763
|
-
var a, v,
|
|
765
|
+
var a, v, l, i, p, m;
|
|
764
766
|
return [
|
|
765
767
|
createElementVNode("div", _hoisted_1$c, [
|
|
766
768
|
createElementVNode("img", {
|
|
767
|
-
src: (
|
|
769
|
+
src: (l = (v = (a = y.project) == null ? void 0 : a.project_image) == null ? void 0 : v[0]) == null ? void 0 : l.url,
|
|
768
770
|
alt: "",
|
|
769
771
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
770
772
|
}, null, 8, _hoisted_2$6),
|
|
771
773
|
(openBlock(), createElementBlock("div", {
|
|
772
|
-
innerHTML: unref(
|
|
773
|
-
key: unref(
|
|
774
|
+
innerHTML: unref(n),
|
|
775
|
+
key: unref(n),
|
|
774
776
|
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 [&_svg]:ire-h-full [&_svg]:ire-w-full", [
|
|
775
777
|
{
|
|
776
778
|
"hover:[&_path]:ire-fill-[var(--reserved-color)]": d.value && ((i = d.value) == null ? void 0 : i.conf) === "reserved",
|
|
@@ -874,7 +876,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
874
876
|
},
|
|
875
877
|
emits: ["changeComponent"],
|
|
876
878
|
setup(e, { emit: t }) {
|
|
877
|
-
const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(),
|
|
879
|
+
const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(), n = ref(null), f = ref(), x = ref(), y = computed$1(() => {
|
|
878
880
|
var i;
|
|
879
881
|
if ((i = o.floor) != null && i.svg)
|
|
880
882
|
return o.floor.svg;
|
|
@@ -905,7 +907,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
905
907
|
}, a = (i) => {
|
|
906
908
|
var m, $, h;
|
|
907
909
|
const p = i.target;
|
|
908
|
-
(p == null ? void 0 : p.nodeName) === "path" && (
|
|
910
|
+
(p == null ? void 0 : p.nodeName) === "path" && (n.value && "conf" in n.value && (((m = n.value) == null ? void 0 : m.conf) === "sold" || (($ = n.value) == null ? void 0 : $.conf) === "reserved") || r("changeComponent", ((h = k.value) == null ? void 0 : h.type) || "", n.value));
|
|
909
911
|
}, v = () => {
|
|
910
912
|
var i;
|
|
911
913
|
c.value && ((i = c.value) == null ? void 0 : i.querySelectorAll("g")).forEach((m) => {
|
|
@@ -923,7 +925,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
923
925
|
m == null || m.setAttribute("conf", ((V = C == null ? void 0 : C.conf) == null ? void 0 : V.toString()) || "");
|
|
924
926
|
}
|
|
925
927
|
});
|
|
926
|
-
},
|
|
928
|
+
}, l = () => {
|
|
927
929
|
var i;
|
|
928
930
|
(i = o.floor) != null && i.block_id ? r("changeComponent", "block", x.value) : r("changeComponent", "project", null);
|
|
929
931
|
};
|
|
@@ -944,7 +946,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
944
946
|
return (V == null ? void 0 : V.id) === ((C = k.value) == null ? void 0 : C.id);
|
|
945
947
|
}
|
|
946
948
|
);
|
|
947
|
-
|
|
949
|
+
n.value = w ?? null;
|
|
948
950
|
} else if (((S = k.value) == null ? void 0 : S.type) === "tooltip") {
|
|
949
951
|
const w = (g = o.actions) == null ? void 0 : g.find(
|
|
950
952
|
(V) => {
|
|
@@ -952,9 +954,9 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
952
954
|
return (V == null ? void 0 : V.id) === ((C = k.value) == null ? void 0 : C.id);
|
|
953
955
|
}
|
|
954
956
|
);
|
|
955
|
-
|
|
957
|
+
n.value = w ?? null;
|
|
956
958
|
} else
|
|
957
|
-
|
|
959
|
+
n.value = null;
|
|
958
960
|
} else
|
|
959
961
|
k.value = null;
|
|
960
962
|
}
|
|
@@ -985,11 +987,11 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
985
987
|
}), (i, p) => {
|
|
986
988
|
var m;
|
|
987
989
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
988
|
-
hoverdData:
|
|
990
|
+
hoverdData: n.value,
|
|
989
991
|
type: (m = k.value) == null ? void 0 : m.type
|
|
990
992
|
}, {
|
|
991
993
|
header: withCtx(() => [
|
|
992
|
-
createVNode(_sfc_main$c, { onClick:
|
|
994
|
+
createVNode(_sfc_main$c, { onClick: l }),
|
|
993
995
|
createElementVNode("div", _hoisted_1$8, [
|
|
994
996
|
createVNode(_sfc_main$e, {
|
|
995
997
|
modelValue: f.value,
|
|
@@ -1084,8 +1086,11 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1084
1086
|
class: "border-b ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b-gray-200 ire-py-2"
|
|
1085
1087
|
}, _hoisted_23 = {
|
|
1086
1088
|
key: 0,
|
|
1087
|
-
class: "!ire-text-2xl"
|
|
1088
|
-
}, _hoisted_24 = {
|
|
1089
|
+
class: "ire-whitespace-nowrap !ire-text-2xl"
|
|
1090
|
+
}, _hoisted_24 = {
|
|
1091
|
+
key: 1,
|
|
1092
|
+
class: "ire-whitespace-nowrap"
|
|
1093
|
+
}, _hoisted_25 = { class: "!ire-text-xs ire-line-through" }, _hoisted_26 = { class: "!ire-text-2xl" }, _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
1089
1094
|
__name: "FlatPreview",
|
|
1090
1095
|
props: {
|
|
1091
1096
|
flat: {},
|
|
@@ -1095,17 +1100,17 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1095
1100
|
setup(e, { emit: t }) {
|
|
1096
1101
|
const r = t, o = e, s = ref(!0), c = ref(0), d = computed$1(() => {
|
|
1097
1102
|
var f, x, y, u, _, a;
|
|
1098
|
-
const
|
|
1099
|
-
return ["I", "II", "III"].slice(0,
|
|
1103
|
+
const n = s.value ? (y = (x = (f = o.flat) == null ? void 0 : f.type) == null ? void 0 : x.image_2d) == null ? void 0 : y.length : (a = (_ = (u = o.flat) == null ? void 0 : u.type) == null ? void 0 : _.image_3d) == null ? void 0 : a.length;
|
|
1104
|
+
return ["I", "II", "III"].slice(0, n);
|
|
1100
1105
|
}), k = () => {
|
|
1101
1106
|
var f;
|
|
1102
|
-
const
|
|
1107
|
+
const n = (f = o.floors) == null ? void 0 : f.find(
|
|
1103
1108
|
(x) => {
|
|
1104
|
-
var y, u, _, a, v,
|
|
1105
|
-
return ((y = x.floor_number) == null ? void 0 : y.toString()) === ((_ = (u = o.flat) == null ? void 0 : u.floor_number) == null ? void 0 : _.toString()) && ((a = o.flat) != null && a.block_id ? ((v = x == null ? void 0 : x.block_id) == null ? void 0 : v.toString()) === ((
|
|
1109
|
+
var y, u, _, a, v, l;
|
|
1110
|
+
return ((y = x.floor_number) == null ? void 0 : y.toString()) === ((_ = (u = o.flat) == null ? void 0 : u.floor_number) == null ? void 0 : _.toString()) && ((a = o.flat) != null && a.block_id ? ((v = x == null ? void 0 : x.block_id) == null ? void 0 : v.toString()) === ((l = o.flat) == null ? void 0 : l.block_id) : !(x != null && x.block_id));
|
|
1106
1111
|
}
|
|
1107
1112
|
);
|
|
1108
|
-
|
|
1113
|
+
n ? r("changeComponent", "floor", n) : r("changeComponent", "project", null);
|
|
1109
1114
|
};
|
|
1110
1115
|
return watch(
|
|
1111
1116
|
() => s.value,
|
|
@@ -1113,15 +1118,15 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1113
1118
|
c.value = 0;
|
|
1114
1119
|
}
|
|
1115
1120
|
), onMounted(() => {
|
|
1116
|
-
var
|
|
1117
|
-
(f = (
|
|
1118
|
-
}), (
|
|
1121
|
+
var n, f;
|
|
1122
|
+
(f = (n = o.flat) == null ? void 0 : n.type) != null && f.image_2d || (s.value = !1);
|
|
1123
|
+
}), (n, f) => (openBlock(), createElementBlock("div", null, [
|
|
1119
1124
|
createVNode(_sfc_main$g, { "hoverd-data": null }, {
|
|
1120
1125
|
header: withCtx(() => [
|
|
1121
1126
|
createVNode(_sfc_main$c, { onClick: k })
|
|
1122
1127
|
]),
|
|
1123
1128
|
default: withCtx(() => {
|
|
1124
|
-
var x, y, u, _, a, v,
|
|
1129
|
+
var x, y, u, _, a, v, l, i, p, m, $, h, E, S, g, b, w, V, C, D, R, j, N, B, P, O, F, A, I, H, W;
|
|
1125
1130
|
return [
|
|
1126
1131
|
createElementVNode("div", _hoisted_1$5, [
|
|
1127
1132
|
createElementVNode("div", _hoisted_2$3, [
|
|
@@ -1132,13 +1137,13 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1132
1137
|
default: withCtx(() => {
|
|
1133
1138
|
var M, L, T, z, X, Y, K, U, q, Z, J, Q, G, ee, te, oe, re, ie, se, le, ne, ae, ce, de;
|
|
1134
1139
|
return [
|
|
1135
|
-
s.value && ((z = (T = (L = (M =
|
|
1136
|
-
key: (U = (K = (Y = (X =
|
|
1137
|
-
src: (Q = (J = (Z = (q =
|
|
1140
|
+
s.value && ((z = (T = (L = (M = n.flat) == null ? void 0 : M.type) == null ? void 0 : L.image_2d) == null ? void 0 : T[c.value]) != null && z.url) ? (openBlock(), createElementBlock("img", {
|
|
1141
|
+
key: (U = (K = (Y = (X = n.flat) == null ? void 0 : X.type) == null ? void 0 : Y.image_2d) == null ? void 0 : K[c.value]) == null ? void 0 : U.url,
|
|
1142
|
+
src: (Q = (J = (Z = (q = n.flat) == null ? void 0 : q.type) == null ? void 0 : Z.image_2d) == null ? void 0 : J[c.value]) == null ? void 0 : Q.url,
|
|
1138
1143
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
|
|
1139
|
-
}, null, 8, _hoisted_3$2)) : (oe = (te = (ee = (G =
|
|
1140
|
-
src: (le = (se = (ie = (re =
|
|
1141
|
-
key: (de = (ce = (ae = (ne =
|
|
1144
|
+
}, null, 8, _hoisted_3$2)) : (oe = (te = (ee = (G = n.flat) == null ? void 0 : G.type) == null ? void 0 : ee.image_3d) == null ? void 0 : te[c.value]) != null && oe.url ? (openBlock(), createElementBlock("img", {
|
|
1145
|
+
src: (le = (se = (ie = (re = n.flat) == null ? void 0 : re.type) == null ? void 0 : ie.image_3d) == null ? void 0 : se[c.value]) == null ? void 0 : le.url,
|
|
1146
|
+
key: (de = (ce = (ae = (ne = n.flat) == null ? void 0 : ne.type) == null ? void 0 : ae.image_3d) == null ? void 0 : ce[c.value]) == null ? void 0 : de.url,
|
|
1142
1147
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
|
|
1143
1148
|
}, null, 8, _hoisted_4$2)) : createCommentVNode("", !0)
|
|
1144
1149
|
];
|
|
@@ -1147,7 +1152,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1147
1152
|
}),
|
|
1148
1153
|
createElementVNode("div", _hoisted_5, [
|
|
1149
1154
|
createElementVNode("div", _hoisted_6, [
|
|
1150
|
-
(_ = (u = (y = (x =
|
|
1155
|
+
(_ = (u = (y = (x = n.flat) == null ? void 0 : x.type) == null ? void 0 : y.image_2d) == null ? void 0 : u[0]) != null && _.url ? (openBlock(), createElementBlock("div", {
|
|
1151
1156
|
key: 0,
|
|
1152
1157
|
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": s.value }]),
|
|
1153
1158
|
onClick: f[0] || (f[0] = (M) => s.value = !0)
|
|
@@ -1162,7 +1167,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1162
1167
|
}])
|
|
1163
1168
|
}, " 2D plan ", 2)
|
|
1164
1169
|
], 2)) : createCommentVNode("", !0),
|
|
1165
|
-
(i = (
|
|
1170
|
+
(i = (l = (v = (a = n.flat) == null ? void 0 : a.type) == null ? void 0 : v.image_3d) == null ? void 0 : l[0]) != null && i.url ? (openBlock(), createElementBlock("div", {
|
|
1166
1171
|
key: 1,
|
|
1167
1172
|
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": !s.value }]),
|
|
1168
1173
|
onClick: f[1] || (f[1] = (M) => s.value = !1)
|
|
@@ -1193,26 +1198,26 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1193
1198
|
]),
|
|
1194
1199
|
createElementVNode("div", _hoisted_9, [
|
|
1195
1200
|
createElementVNode("div", _hoisted_10, [
|
|
1196
|
-
createElementVNode("div", _hoisted_11, toDisplayString((m =
|
|
1201
|
+
createElementVNode("div", _hoisted_11, toDisplayString((m = n.flat) == null ? void 0 : m.flat_number), 1),
|
|
1197
1202
|
f[2] || (f[2] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Apartment", -1))
|
|
1198
1203
|
]),
|
|
1199
|
-
(h = ($ =
|
|
1200
|
-
createElementVNode("div", _hoisted_13, toDisplayString((b = (g =
|
|
1201
|
-
createElementVNode("div", _hoisted_14, toDisplayString((V = (w =
|
|
1204
|
+
(h = ($ = n.flat) == null ? void 0 : $.type) != null && h.title || (S = (E = n.flat) == null ? void 0 : E.type) != null && S.teaser ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
1205
|
+
createElementVNode("div", _hoisted_13, toDisplayString((b = (g = n.flat) == null ? void 0 : g.type) == null ? void 0 : b.title), 1),
|
|
1206
|
+
createElementVNode("div", _hoisted_14, toDisplayString((V = (w = n.flat) == null ? void 0 : w.type) == null ? void 0 : V.teaser), 1)
|
|
1202
1207
|
])) : createCommentVNode("", !0),
|
|
1203
1208
|
createElementVNode("div", _hoisted_15, [
|
|
1204
|
-
(C =
|
|
1205
|
-
createElementVNode("div", _hoisted_17, toDisplayString((D =
|
|
1209
|
+
(C = n.flat) != null && C.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
1210
|
+
createElementVNode("div", _hoisted_17, toDisplayString((D = n.flat) == null ? void 0 : D.floor_number), 1),
|
|
1206
1211
|
f[3] || (f[3] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Floor", -1))
|
|
1207
1212
|
])) : createCommentVNode("", !0),
|
|
1208
|
-
(j = (R =
|
|
1209
|
-
createElementVNode("div", _hoisted_19, toDisplayString((N =
|
|
1213
|
+
(j = (R = n.flat) == null ? void 0 : R.type) != null && j.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
1214
|
+
createElementVNode("div", _hoisted_19, toDisplayString((N = n.flat) == null ? void 0 : N.type.rooms_count), 1),
|
|
1210
1215
|
f[4] || (f[4] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Room", -1))
|
|
1211
1216
|
])) : createCommentVNode("", !0)
|
|
1212
1217
|
]),
|
|
1213
|
-
(P = (B =
|
|
1218
|
+
(P = (B = n.flat) == null ? void 0 : B.type) != null && P.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
1214
1219
|
createElementVNode("div", _hoisted_21, [
|
|
1215
|
-
createTextVNode(toDisplayString((O =
|
|
1220
|
+
createTextVNode(toDisplayString(Number((O = n.flat) == null ? void 0 : O.type.area_m2).toLocaleString("fr-FR")) + " ", 1),
|
|
1216
1221
|
f[5] || (f[5] = createElementVNode("span", { class: "ire-font-light" }, [
|
|
1217
1222
|
createTextVNode(" M "),
|
|
1218
1223
|
createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
|
|
@@ -1220,16 +1225,16 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1220
1225
|
]),
|
|
1221
1226
|
f[6] || (f[6] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Area", -1))
|
|
1222
1227
|
])) : createCommentVNode("", !0),
|
|
1223
|
-
(
|
|
1228
|
+
(F = n.flat) != null && F.price ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
1224
1229
|
createElementVNode("div", null, [
|
|
1225
|
-
(
|
|
1226
|
-
createElementVNode("div", _hoisted_25, toDisplayString(Number((H =
|
|
1230
|
+
(A = n.flat) != null && A.offer_price ? (openBlock(), createElementBlock("div", _hoisted_24, [
|
|
1231
|
+
createElementVNode("div", _hoisted_25, toDisplayString(Number((H = n.flat) == null ? void 0 : H.price).toLocaleString("fr-FR")), 1),
|
|
1227
1232
|
createElementVNode("div", _hoisted_26, [
|
|
1228
|
-
createTextVNode(toDisplayString(Number((W =
|
|
1229
|
-
f[8] || (f[8] = createElementVNode("
|
|
1233
|
+
createTextVNode(toDisplayString(Number((W = n.flat) == null ? void 0 : W.offer_price).toLocaleString("fr-FR")) + " ", 1),
|
|
1234
|
+
f[8] || (f[8] = createElementVNode("span", null, "$", -1))
|
|
1230
1235
|
])
|
|
1231
1236
|
])) : (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
1232
|
-
createTextVNode(toDisplayString(Number((I =
|
|
1237
|
+
createTextVNode(toDisplayString(Number((I = n.flat) == null ? void 0 : I.price).toLocaleString("fr-FR")) + " ", 1),
|
|
1233
1238
|
f[7] || (f[7] = createElementVNode("span", null, "$", -1))
|
|
1234
1239
|
]))
|
|
1235
1240
|
]),
|
|
@@ -1298,13 +1303,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1298
1303
|
},
|
|
1299
1304
|
setup(e) {
|
|
1300
1305
|
return (t, r) => {
|
|
1301
|
-
var o, s, c, d, k,
|
|
1306
|
+
var o, s, c, d, k, n, f, x, y, u, _, a;
|
|
1302
1307
|
return openBlock(), createElementBlock("div", null, [
|
|
1303
1308
|
createElementVNode("p", _hoisted_1$1, toDisplayString((s = (o = t.modalData) == null ? void 0 : o.modalObject) == null ? void 0 : s.title), 1),
|
|
1304
1309
|
createVNode(_sfc_main$5, {
|
|
1305
1310
|
editor: (d = (c = t.modalData) == null ? void 0 : c.modalObject) == null ? void 0 : d.description
|
|
1306
1311
|
}, null, 8, ["editor"]),
|
|
1307
|
-
(x = (f = (
|
|
1312
|
+
(x = (f = (n = (k = t.modalData) == null ? void 0 : k.modalObject) == null ? void 0 : n.modalImage) == null ? void 0 : f[0]) != null && x.url ? (openBlock(), createElementBlock("img", {
|
|
1308
1313
|
key: 0,
|
|
1309
1314
|
src: (a = (_ = (u = (y = t.modalData) == null ? void 0 : y.modalObject) == null ? void 0 : u.modalImage) == null ? void 0 : _[0]) == null ? void 0 : a.url,
|
|
1310
1315
|
alt: "",
|
|
@@ -1323,7 +1328,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1323
1328
|
},
|
|
1324
1329
|
emits: ["changeComponent"],
|
|
1325
1330
|
setup(e, { emit: t }) {
|
|
1326
|
-
const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(),
|
|
1331
|
+
const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(), n = ref(), f = computed$1(() => {
|
|
1327
1332
|
var u, _;
|
|
1328
1333
|
if ((u = o.block) != null && u.svg)
|
|
1329
1334
|
return (_ = o.block) == null ? void 0 : _.svg;
|
|
@@ -1331,32 +1336,32 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1331
1336
|
const _ = u.target;
|
|
1332
1337
|
_ && (d.value = _);
|
|
1333
1338
|
}, y = (u) => {
|
|
1334
|
-
var a, v,
|
|
1339
|
+
var a, v, l;
|
|
1335
1340
|
const _ = u.target;
|
|
1336
|
-
(_ == null ? void 0 : _.nodeName) === "path" && (((a =
|
|
1341
|
+
(_ == null ? void 0 : _.nodeName) === "path" && (((a = n.value) == null ? void 0 : a.conf) === "sold" || ((v = n.value) == null ? void 0 : v.conf) === "reserved" || r(
|
|
1337
1342
|
"changeComponent",
|
|
1338
|
-
((
|
|
1339
|
-
|
|
1343
|
+
((l = k.value) == null ? void 0 : l.type) || "",
|
|
1344
|
+
n.value
|
|
1340
1345
|
));
|
|
1341
1346
|
};
|
|
1342
1347
|
return watch(
|
|
1343
1348
|
() => d.value,
|
|
1344
1349
|
(u) => {
|
|
1345
|
-
var a, v,
|
|
1350
|
+
var a, v, l, i, p, m, $, h;
|
|
1346
1351
|
if (!u) return;
|
|
1347
1352
|
s.hoverdSvg = u;
|
|
1348
1353
|
const _ = u == null ? void 0 : u.parentElement;
|
|
1349
1354
|
if (_ && (_ == null ? void 0 : _.nodeName) === "g") {
|
|
1350
1355
|
const E = _ == null ? void 0 : _.getAttribute("id");
|
|
1351
1356
|
if (!E || (k.value = ((v = (a = o.block) == null ? void 0 : a.polygon_data) == null ? void 0 : v.find((S) => (S == null ? void 0 : S.key) === E)) || null, !k.value)) return;
|
|
1352
|
-
if (((
|
|
1357
|
+
if (((l = k.value) == null ? void 0 : l.type) === "floor") {
|
|
1353
1358
|
const S = (i = o.floors) == null ? void 0 : i.find(
|
|
1354
1359
|
(g) => {
|
|
1355
1360
|
var b;
|
|
1356
1361
|
return (g == null ? void 0 : g.id) === ((b = k.value) == null ? void 0 : b.id);
|
|
1357
1362
|
}
|
|
1358
1363
|
);
|
|
1359
|
-
|
|
1364
|
+
n.value = S;
|
|
1360
1365
|
} else if (((p = k.value) == null ? void 0 : p.type) === "flat") {
|
|
1361
1366
|
const S = (m = o.flats) == null ? void 0 : m.find(
|
|
1362
1367
|
(g) => {
|
|
@@ -1364,7 +1369,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1364
1369
|
return (g == null ? void 0 : g.id) === ((b = k.value) == null ? void 0 : b.id);
|
|
1365
1370
|
}
|
|
1366
1371
|
);
|
|
1367
|
-
|
|
1372
|
+
n.value = S;
|
|
1368
1373
|
} else if ((($ = k.value) == null ? void 0 : $.type) === "tooltip") {
|
|
1369
1374
|
const S = (h = o.actions) == null ? void 0 : h.find(
|
|
1370
1375
|
(g) => {
|
|
@@ -1372,33 +1377,33 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1372
1377
|
return (g == null ? void 0 : g.id) === ((b = k.value) == null ? void 0 : b.id);
|
|
1373
1378
|
}
|
|
1374
1379
|
);
|
|
1375
|
-
|
|
1380
|
+
n.value = S;
|
|
1376
1381
|
} else
|
|
1377
|
-
|
|
1382
|
+
n.value = null;
|
|
1378
1383
|
} else
|
|
1379
|
-
k.value = null,
|
|
1384
|
+
k.value = null, n.value = null;
|
|
1380
1385
|
}
|
|
1381
1386
|
), (u, _) => {
|
|
1382
1387
|
var a;
|
|
1383
1388
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
1384
|
-
hoverdData:
|
|
1389
|
+
hoverdData: n.value,
|
|
1385
1390
|
type: (a = k.value) == null ? void 0 : a.type
|
|
1386
1391
|
}, {
|
|
1387
1392
|
header: withCtx(() => {
|
|
1388
1393
|
var v;
|
|
1389
1394
|
return [
|
|
1390
1395
|
createVNode(_sfc_main$c, {
|
|
1391
|
-
onClick: _[0] || (_[0] = (
|
|
1396
|
+
onClick: _[0] || (_[0] = (l) => u.$emit("changeComponent", "project", null))
|
|
1392
1397
|
}),
|
|
1393
1398
|
createElementVNode("p", _hoisted_1, toDisplayString((v = u.block) == null ? void 0 : v.title), 1)
|
|
1394
1399
|
];
|
|
1395
1400
|
}),
|
|
1396
1401
|
default: withCtx(() => {
|
|
1397
|
-
var v,
|
|
1402
|
+
var v, l, i, p, m, $;
|
|
1398
1403
|
return [
|
|
1399
1404
|
createElementVNode("div", _hoisted_2, [
|
|
1400
1405
|
createElementVNode("img", {
|
|
1401
|
-
src: ((i = (
|
|
1406
|
+
src: ((i = (l = (v = u.block) == null ? void 0 : v.block_image) == null ? void 0 : l[0]) == null ? void 0 : i.url) || "",
|
|
1402
1407
|
alt: "",
|
|
1403
1408
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1404
1409
|
}, null, 8, _hoisted_3),
|
|
@@ -1409,9 +1414,9 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1409
1414
|
key: f.value,
|
|
1410
1415
|
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 [&_svg]:ire-h-full [&_svg]:ire-w-full", [
|
|
1411
1416
|
{
|
|
1412
|
-
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((p =
|
|
1413
|
-
"hover:[&_path]:ire-fill-[var(--sold-color)]": ((m =
|
|
1414
|
-
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !(($ =
|
|
1417
|
+
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((p = n.value) == null ? void 0 : p.conf) === "reserved",
|
|
1418
|
+
"hover:[&_path]:ire-fill-[var(--sold-color)]": ((m = n.value) == null ? void 0 : m.conf) === "sold",
|
|
1419
|
+
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !(($ = n.value) != null && $.conf)
|
|
1415
1420
|
}
|
|
1416
1421
|
]]),
|
|
1417
1422
|
onMouseover: x,
|
|
@@ -1434,14 +1439,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1434
1439
|
if (!s.value || !d || !k) return;
|
|
1435
1440
|
d.style.opacity = "1";
|
|
1436
1441
|
const {
|
|
1437
|
-
bottom:
|
|
1442
|
+
bottom: n,
|
|
1438
1443
|
height: f,
|
|
1439
1444
|
left: x,
|
|
1440
1445
|
right: y,
|
|
1441
1446
|
top: u,
|
|
1442
1447
|
width: _
|
|
1443
|
-
} = s.value.getBoundingClientRect(), { bottom: a, left: v } = k.getBoundingClientRect(), { height:
|
|
1444
|
-
r.value = c.clientX - x - ($ ? i : -20), o.value = c.clientY - u - (h ?
|
|
1448
|
+
} = s.value.getBoundingClientRect(), { bottom: a, left: v } = k.getBoundingClientRect(), { height: l, width: i } = d.getBoundingClientRect(), p = y - _ / 2, m = n - f / 2, $ = v > p, h = a > m;
|
|
1449
|
+
r.value = c.clientX - x - ($ ? i : -20), o.value = c.clientY - u - (h ? l : -20);
|
|
1445
1450
|
}), provide("mouseX", r), provide("mouseY", o), (c, d) => (openBlock(), createElementBlock("div", {
|
|
1446
1451
|
ref_key: "canvasRef",
|
|
1447
1452
|
ref: s
|
|
@@ -1455,7 +1460,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1455
1460
|
shortcodeDataProps: {}
|
|
1456
1461
|
},
|
|
1457
1462
|
setup(__props) {
|
|
1458
|
-
var e, t, r, o, s, c, d, k,
|
|
1463
|
+
var e, t, r, o, s, c, d, k, n, f, x, y, u, _;
|
|
1459
1464
|
const props = __props, getMeta = (a) => props.shortcodeDataProps.meta.find(
|
|
1460
1465
|
(v) => v.meta_key === a
|
|
1461
1466
|
), constants = ref({
|
|
@@ -1468,7 +1473,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1468
1473
|
PREVIEW_BORDER_RADIUS: +((d = getMeta("border_radius")) == null ? void 0 : d.meta_value) || 0
|
|
1469
1474
|
}), colors = reactive({
|
|
1470
1475
|
path: (k = constants.value) == null ? void 0 : k.PREVIEW_PATH_COLOR,
|
|
1471
|
-
path_hover: (
|
|
1476
|
+
path_hover: (n = constants.value) == null ? void 0 : n.PREVIEW_PATH_HOVER_COLOR,
|
|
1472
1477
|
reserved: (f = constants.value) == null ? void 0 : f.PREVIEW_RESERVED_COLOR,
|
|
1473
1478
|
sold: (x = constants.value) == null ? void 0 : x.PREVIEW_SOLD_COLOR,
|
|
1474
1479
|
stroke_color: (y = constants.value) == null ? void 0 : y.PREVIEW_STROKE_COLOR,
|
|
@@ -1491,22 +1496,22 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1491
1496
|
}), floors = computed$1(() => {
|
|
1492
1497
|
var a, v;
|
|
1493
1498
|
if (shortcodeData.value)
|
|
1494
|
-
return (a = shortcodeData.value.floors) == null || a.forEach((
|
|
1499
|
+
return (a = shortcodeData.value.floors) == null || a.forEach((l) => {
|
|
1495
1500
|
var m, $;
|
|
1496
1501
|
const i = ($ = (m = shortcodeData.value) == null ? void 0 : m.flats) == null ? void 0 : $.filter((h) => {
|
|
1497
1502
|
var E;
|
|
1498
|
-
return (h == null ? void 0 : h.floor_number) !== ((E =
|
|
1503
|
+
return (h == null ? void 0 : h.floor_number) !== ((E = l == null ? void 0 : l.floor_number) == null ? void 0 : E.toString()) ? !1 : l != null && l.polygon_data ? Object == null ? void 0 : Object.values(l == null ? void 0 : l.polygon_data).some(
|
|
1499
1504
|
(g) => {
|
|
1500
1505
|
var b;
|
|
1501
|
-
return g != null && g.type && (g == null ? void 0 : g.type) === "flat" && (g == null ? void 0 : g.id) === (h == null ? void 0 : h.id) ?
|
|
1506
|
+
return g != null && g.type && (g == null ? void 0 : g.type) === "flat" && (g == null ? void 0 : g.id) === (h == null ? void 0 : h.id) ? l != null && l.block_id ? (h == null ? void 0 : h.block_id) === ((b = l == null ? void 0 : l.block_id) == null ? void 0 : b.toString()) : !(h != null && h.block_id) : !1;
|
|
1502
1507
|
}
|
|
1503
1508
|
) : !1;
|
|
1504
1509
|
});
|
|
1505
|
-
|
|
1506
|
-
const { conf: p } =
|
|
1510
|
+
l.flats = i;
|
|
1511
|
+
const { conf: p } = l || {};
|
|
1507
1512
|
if (i != null && i.length && !p) {
|
|
1508
1513
|
const h = i == null ? void 0 : i.every((S) => (S == null ? void 0 : S.conf) === "reserved"), E = i == null ? void 0 : i.every((S) => (S == null ? void 0 : S.conf) === "sold");
|
|
1509
|
-
h ?
|
|
1514
|
+
h ? l.conf = "reserved" : E && (l.conf = "sold");
|
|
1510
1515
|
}
|
|
1511
1516
|
}), (v = shortcodeData.value) == null ? void 0 : v.floors;
|
|
1512
1517
|
}), blocks = computed$1(() => {
|
|
@@ -1518,13 +1523,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1518
1523
|
}), flats = computed$1(() => {
|
|
1519
1524
|
var a, v;
|
|
1520
1525
|
if (shortcodeData.value)
|
|
1521
|
-
return (v = (a = shortcodeData.value) == null ? void 0 : a.flats) == null ? void 0 : v.map((
|
|
1526
|
+
return (v = (a = shortcodeData.value) == null ? void 0 : a.flats) == null ? void 0 : v.map((l) => {
|
|
1522
1527
|
var i;
|
|
1523
|
-
if (
|
|
1524
|
-
const p = (i = types.value) == null ? void 0 : i.find((m) => (m == null ? void 0 : m.id) === (
|
|
1525
|
-
p && (
|
|
1528
|
+
if (l != null && l.use_type || !(l != null && l.type)) {
|
|
1529
|
+
const p = (i = types.value) == null ? void 0 : i.find((m) => (m == null ? void 0 : m.id) === (l == null ? void 0 : l.type_id));
|
|
1530
|
+
p && (l.type = p);
|
|
1526
1531
|
}
|
|
1527
|
-
return
|
|
1532
|
+
return l;
|
|
1528
1533
|
});
|
|
1529
1534
|
}), actions = computed$1(() => {
|
|
1530
1535
|
var a;
|
|
@@ -1535,8 +1540,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1535
1540
|
if (shortcodeData.value)
|
|
1536
1541
|
return (a = shortcodeData.value) == null ? void 0 : a.meta;
|
|
1537
1542
|
}), getColorMeta = (a) => {
|
|
1538
|
-
var v,
|
|
1539
|
-
return (
|
|
1543
|
+
var v, l;
|
|
1544
|
+
return (l = (v = projectMeta.value) == null ? void 0 : v.find((i) => (i == null ? void 0 : i.meta_key) === a)) == null ? void 0 : l.meta_value;
|
|
1540
1545
|
}, changeRoute = (flowType, polygonItem) => {
|
|
1541
1546
|
switch (flowType) {
|
|
1542
1547
|
case "project":
|
|
@@ -1572,8 +1577,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1572
1577
|
return watch(
|
|
1573
1578
|
() => projectMeta.value,
|
|
1574
1579
|
() => {
|
|
1575
|
-
const a = getColorMeta("path_color"), v = getColorMeta("path_hover_color"),
|
|
1576
|
-
a && (colors.path = a.toString()), v && (colors.path_hover = v.toString()),
|
|
1580
|
+
const a = getColorMeta("path_color"), v = getColorMeta("path_hover_color"), l = getColorMeta("reserved_color"), i = getColorMeta("sold_color"), p = getColorMeta("stroke_color"), m = getColorMeta("stroke_width");
|
|
1581
|
+
a && (colors.path = a.toString()), v && (colors.path_hover = v.toString()), l && (colors.reserved = l.toString()), i && (colors.sold = i.toString()), p && (colors.stroke_color = p.toString()), m && (colors.stroke_width = Number(m));
|
|
1577
1582
|
}
|
|
1578
1583
|
), (a, v) => (openBlock(), createBlock(_sfc_main$2, { class: "interactive-real-estate" }, {
|
|
1579
1584
|
default: withCtx(() => [
|
|
@@ -1592,14 +1597,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1592
1597
|
projectMeta: projectMeta.value,
|
|
1593
1598
|
blocks: blocks.value,
|
|
1594
1599
|
actions: actions.value,
|
|
1595
|
-
onChangeComponent: v[0] || (v[0] = (
|
|
1600
|
+
onChangeComponent: v[0] || (v[0] = (l, i) => changeRoute(l, i))
|
|
1596
1601
|
}, null, 8, ["project", "floors", "flats", "projectMeta", "blocks", "actions"])) : flow.value === "blockFlow" && flats.value && floors.value && blocks.value && activeBlock.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
1597
1602
|
key: 1,
|
|
1598
1603
|
block: activeBlock.value,
|
|
1599
1604
|
flats: flats.value,
|
|
1600
1605
|
floors: floors.value,
|
|
1601
1606
|
actions: actions.value,
|
|
1602
|
-
onChangeComponent: v[1] || (v[1] = (
|
|
1607
|
+
onChangeComponent: v[1] || (v[1] = (l, i) => changeRoute(l, i))
|
|
1603
1608
|
}, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$b, {
|
|
1604
1609
|
key: 2,
|
|
1605
1610
|
flats: flats.value,
|
|
@@ -1607,12 +1612,12 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1607
1612
|
floors: floors.value,
|
|
1608
1613
|
blocks: blocks.value,
|
|
1609
1614
|
actions: actions.value,
|
|
1610
|
-
onChangeComponent: v[2] || (v[2] = (
|
|
1615
|
+
onChangeComponent: v[2] || (v[2] = (l, i) => changeRoute(l, i))
|
|
1611
1616
|
}, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : flow.value === "flatFlow" ? (openBlock(), createBlock(_sfc_main$8, {
|
|
1612
1617
|
key: 3,
|
|
1613
1618
|
flat: hoveredData.value,
|
|
1614
1619
|
floors: floors.value,
|
|
1615
|
-
onChangeComponent: v[3] || (v[3] = (
|
|
1620
|
+
onChangeComponent: v[3] || (v[3] = (l, i) => changeRoute(l, i))
|
|
1616
1621
|
}, null, 8, ["flat", "floors"])) : createCommentVNode("", !0)
|
|
1617
1622
|
])) : createCommentVNode("", !0)
|
|
1618
1623
|
]),
|
|
@@ -1626,7 +1631,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1626
1631
|
default: withCtx(() => [
|
|
1627
1632
|
showModal.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
1628
1633
|
key: 0,
|
|
1629
|
-
onClose: v[4] || (v[4] = (
|
|
1634
|
+
onClose: v[4] || (v[4] = (l) => showModal.value = !1)
|
|
1630
1635
|
}, {
|
|
1631
1636
|
default: withCtx(() => [
|
|
1632
1637
|
createVNode(_sfc_main$4, { modalData: hoveredData.value }, null, 8, ["modalData"])
|