ire-preview 2.2.6 → 2.2.7
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 +85 -85
- 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, l,
|
|
234
|
+
var o, s, c, d, k, l, f, x, y, u, _, a, v, n, 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, [
|
|
@@ -241,11 +241,11 @@ const _hoisted_1$g = {
|
|
|
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
243
|
(k = t.hoveredData) != null && k.conf ? (openBlock(), createElementBlock("div", _hoisted_6$3, toDisplayString((l = t.hoveredData) == null ? void 0 : l.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$3, [
|
|
244
|
-
(x = (
|
|
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
|
-
(a = (
|
|
248
|
+
(a = (_ = t.hoveredData) == null ? void 0 : _.counts) != null && a.reserved ? (openBlock(), createElementBlock("div", _hoisted_10$3, [
|
|
249
249
|
createElementVNode("div", _hoisted_11$2, toDisplayString((n = (v = t.hoveredData) == null ? void 0 : v.counts) == null ? void 0 : n.reserved), 1),
|
|
250
250
|
r[2] || (r[2] = createElementVNode("div", { class: "!ire-text-sm ire-uppercase" }, "Reserved", -1))
|
|
251
251
|
])) : createCommentVNode("", !0),
|
|
@@ -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, l,
|
|
331
|
+
var c, d, k, l, f, x, y, u, _, a, v;
|
|
332
332
|
return [
|
|
333
333
|
o.type && o.hoveredData && o.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
|
|
334
334
|
key: 0,
|
|
@@ -343,7 +343,7 @@ const _hoisted_1$g = {
|
|
|
343
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(((l = (k = o.hoveredData) == null ? void 0 : k.counts) == null ? void 0 : l.available) || 0), 1))
|
|
344
344
|
])) : o.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
345
345
|
createElementVNode("div", _hoisted_6$2, [
|
|
346
|
-
createElementVNode("div", null, toDisplayString((
|
|
346
|
+
createElementVNode("div", null, toDisplayString((f = o.hoveredData) == null ? void 0 : f.title), 1),
|
|
347
347
|
createElementVNode("span", _hoisted_7$2, toDisplayString((x = o.hoveredData) == null ? void 0 : x.conf), 1)
|
|
348
348
|
])
|
|
349
349
|
])) : o.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_8$2, [
|
|
@@ -351,7 +351,7 @@ const _hoisted_1$g = {
|
|
|
351
351
|
(u = o.hoveredData) != null && u.conf ? (openBlock(), createElementBlock("div", _hoisted_10$2, toDisplayString(o.hoveredData.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_11$1, [
|
|
352
352
|
createElementVNode("div", null, [
|
|
353
353
|
createElementVNode("div", _hoisted_12$1, [
|
|
354
|
-
createTextVNode(toDisplayString(Number((
|
|
354
|
+
createTextVNode(toDisplayString(Number((_ = o.hoveredData) == null ? void 0 : _.price).toLocaleString("fr-FR")) + " ", 1),
|
|
355
355
|
s[0] || (s[0] = createElementVNode("span", { class: "ire-right-[2px] !ire-text-sm ire-text-gray-200" }, " $ ", -1))
|
|
356
356
|
])
|
|
357
357
|
])
|
|
@@ -538,39 +538,39 @@ function isComputed(e) {
|
|
|
538
538
|
function createOptionsStore(e, t, r, o) {
|
|
539
539
|
const { state: s, actions: c, getters: d } = t, k = r.state.value[e];
|
|
540
540
|
let l;
|
|
541
|
-
function
|
|
541
|
+
function f() {
|
|
542
542
|
k || (r.state.value[e] = s ? s() : {});
|
|
543
543
|
const x = toRefs(r.state.value[e]);
|
|
544
544
|
return assign(x, c, Object.keys(d || {}).reduce((y, u) => (y[u] = markRaw(computed$1(() => {
|
|
545
545
|
setActivePinia(r);
|
|
546
|
-
const
|
|
547
|
-
return d[u].call(
|
|
546
|
+
const _ = r._s.get(e);
|
|
547
|
+
return d[u].call(_, _);
|
|
548
548
|
})), y), {}));
|
|
549
549
|
}
|
|
550
|
-
return l = createSetupStore(e,
|
|
550
|
+
return l = createSetupStore(e, f, t, r, o, !0), l;
|
|
551
551
|
}
|
|
552
552
|
function createSetupStore(e, t, r = {}, o, s, c) {
|
|
553
553
|
let d;
|
|
554
554
|
const k = assign({ actions: {} }, r), l = { deep: !0 };
|
|
555
|
-
let
|
|
555
|
+
let f, x, y = [], u = [], _;
|
|
556
556
|
const a = o.state.value[e];
|
|
557
557
|
!c && !a && (o.state.value[e] = {}), ref({});
|
|
558
558
|
let v;
|
|
559
559
|
function n(g) {
|
|
560
560
|
let b;
|
|
561
|
-
|
|
561
|
+
f = x = !1, typeof g == "function" ? (g(o.state.value[e]), b = {
|
|
562
562
|
type: MutationType.patchFunction,
|
|
563
563
|
storeId: e,
|
|
564
|
-
events:
|
|
564
|
+
events: _
|
|
565
565
|
}) : (mergeReactiveObjects(o.state.value[e], g), b = {
|
|
566
566
|
type: MutationType.patchObject,
|
|
567
567
|
payload: g,
|
|
568
568
|
storeId: e,
|
|
569
|
-
events:
|
|
569
|
+
events: _
|
|
570
570
|
});
|
|
571
571
|
const w = v = Symbol();
|
|
572
572
|
nextTick().then(() => {
|
|
573
|
-
v === w && (
|
|
573
|
+
v === w && (f = !0);
|
|
574
574
|
}), x = !0, triggerSubscriptions(y, b, o.state.value[e]);
|
|
575
575
|
}
|
|
576
576
|
const i = c ? function() {
|
|
@@ -622,10 +622,10 @@ function createSetupStore(e, t, r = {}, o, s, c) {
|
|
|
622
622
|
$reset: i,
|
|
623
623
|
$subscribe(g, b = {}) {
|
|
624
624
|
const w = addSubscription(y, g, b.detached, () => V()), V = d.run(() => watch(() => o.state.value[e], (C) => {
|
|
625
|
-
(b.flush === "sync" ? x :
|
|
625
|
+
(b.flush === "sync" ? x : f) && g({
|
|
626
626
|
storeId: e,
|
|
627
627
|
type: MutationType.direct,
|
|
628
|
-
events:
|
|
628
|
+
events: _
|
|
629
629
|
}, C);
|
|
630
630
|
}, assign({}, l, b)));
|
|
631
631
|
return w;
|
|
@@ -657,7 +657,7 @@ function createSetupStore(e, t, r = {}, o, s, c) {
|
|
|
657
657
|
pinia: o,
|
|
658
658
|
options: k
|
|
659
659
|
})));
|
|
660
|
-
}), a && c && r.hydrate && r.hydrate(h.$state, a),
|
|
660
|
+
}), a && c && r.hydrate && r.hydrate(h.$state, a), f = !0, x = !0, h;
|
|
661
661
|
}
|
|
662
662
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
663
663
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -696,30 +696,30 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
696
696
|
return o.project.svg;
|
|
697
697
|
});
|
|
698
698
|
computed(() => {
|
|
699
|
-
var u,
|
|
700
|
-
const y = (
|
|
699
|
+
var u, _;
|
|
700
|
+
const y = (_ = (u = o.projectMeta) == null ? void 0 : u.find(
|
|
701
701
|
(a) => (a == null ? void 0 : a.meta_key) === "project_img_contain"
|
|
702
|
-
)) == null ? void 0 :
|
|
702
|
+
)) == null ? void 0 : _.meta_value;
|
|
703
703
|
return JSON.parse((y == null ? void 0 : y.toString()) || "false");
|
|
704
704
|
});
|
|
705
|
-
const
|
|
705
|
+
const f = (y) => {
|
|
706
706
|
const u = y.target;
|
|
707
707
|
u && (c.value = u);
|
|
708
708
|
}, x = (y) => {
|
|
709
|
-
var
|
|
709
|
+
var _, a, v;
|
|
710
710
|
const u = y.target;
|
|
711
|
-
(u == null ? void 0 : u.nodeName) === "path" && (((
|
|
711
|
+
(u == null ? void 0 : u.nodeName) === "path" && (((_ = d.value) == null ? void 0 : _.conf) === "sold" || ((a = d.value) == null ? void 0 : a.conf) === "reserved" || r("changeComponent", ((v = k.value) == null ? void 0 : v.type) || "", d == null ? void 0 : d.value));
|
|
712
712
|
};
|
|
713
713
|
return watch(
|
|
714
714
|
() => c.value,
|
|
715
715
|
(y) => {
|
|
716
|
-
var
|
|
716
|
+
var _, a, v, n, i, p, m;
|
|
717
717
|
if (!y) return;
|
|
718
718
|
s.hoverdSvg = y;
|
|
719
719
|
const u = y.parentElement;
|
|
720
720
|
if (u && (u == null ? void 0 : u.nodeName) === "g") {
|
|
721
721
|
const $ = u == null ? void 0 : u.getAttribute("id");
|
|
722
|
-
if (!$ || (k.value = ((
|
|
722
|
+
if (!$ || (k.value = ((_ = o.project) == null ? void 0 : _.polygon_data.find((E) => (E == null ? void 0 : E.key) === $)) || null, !k.value)) return;
|
|
723
723
|
const h = (a = k.value) == null ? void 0 : a.id;
|
|
724
724
|
switch ((v = k.value) == null ? void 0 : v.type) {
|
|
725
725
|
case "floor":
|
|
@@ -754,10 +754,10 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
754
754
|
k.value = null, d.value = null;
|
|
755
755
|
}
|
|
756
756
|
), (y, u) => {
|
|
757
|
-
var
|
|
757
|
+
var _;
|
|
758
758
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
759
759
|
hoverdData: d.value,
|
|
760
|
-
type: (
|
|
760
|
+
type: (_ = k.value) == null ? void 0 : _.type
|
|
761
761
|
}, {
|
|
762
762
|
default: withCtx(() => {
|
|
763
763
|
var a, v, n, i, p, m;
|
|
@@ -778,7 +778,7 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
778
778
|
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((m = d.value) != null && m.conf)
|
|
779
779
|
}
|
|
780
780
|
]]),
|
|
781
|
-
onMouseover:
|
|
781
|
+
onMouseover: f,
|
|
782
782
|
onClick: x
|
|
783
783
|
}, null, 42, _hoisted_3$5))
|
|
784
784
|
])
|
|
@@ -874,7 +874,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
874
874
|
},
|
|
875
875
|
emits: ["changeComponent"],
|
|
876
876
|
setup(e, { emit: t }) {
|
|
877
|
-
const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(), l = ref(null),
|
|
877
|
+
const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(), l = ref(null), f = ref(), x = ref(), y = computed$1(() => {
|
|
878
878
|
var i;
|
|
879
879
|
if ((i = o.floor) != null && i.svg)
|
|
880
880
|
return o.floor.svg;
|
|
@@ -899,7 +899,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
899
899
|
title: (($ = i == null ? void 0 : i.floor_number) == null ? void 0 : $.toString()) + " Floor" + (p != null && p.id ? ` - ${p == null ? void 0 : p.title}` : "") + (i != null && i.conf ? " " + i.conf : ""),
|
|
900
900
|
value: i == null ? void 0 : i.id
|
|
901
901
|
};
|
|
902
|
-
}).sort((i, p) => +(i == null ? void 0 : i.title) - +(p == null ? void 0 : p.title)) || []),
|
|
902
|
+
}).sort((i, p) => +(i == null ? void 0 : i.title) - +(p == null ? void 0 : p.title)) || []), _ = (i) => {
|
|
903
903
|
const p = i.target;
|
|
904
904
|
p && (d.value = p);
|
|
905
905
|
}, a = (i) => {
|
|
@@ -959,11 +959,11 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
959
959
|
k.value = null;
|
|
960
960
|
}
|
|
961
961
|
), watch(
|
|
962
|
-
() =>
|
|
962
|
+
() => f.value,
|
|
963
963
|
() => {
|
|
964
964
|
var p;
|
|
965
965
|
const i = (p = o.floors) == null ? void 0 : p.find(
|
|
966
|
-
(m) => (m == null ? void 0 : m.id) === (
|
|
966
|
+
(m) => (m == null ? void 0 : m.id) === (f == null ? void 0 : f.value)
|
|
967
967
|
);
|
|
968
968
|
i != null && i.conf || (i && r("changeComponent", "floor", i), setTimeout(() => {
|
|
969
969
|
v();
|
|
@@ -976,7 +976,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
976
976
|
var h, E;
|
|
977
977
|
return ($ == null ? void 0 : $.id) === ((E = (h = o.floor) == null ? void 0 : h.block_id) == null ? void 0 : E.toString());
|
|
978
978
|
}
|
|
979
|
-
),
|
|
979
|
+
), f.value = (m = (p = u.value) == null ? void 0 : p.find(
|
|
980
980
|
($) => {
|
|
981
981
|
var h;
|
|
982
982
|
return ($ == null ? void 0 : $.value) == ((h = o.floor) == null ? void 0 : h.id);
|
|
@@ -992,8 +992,8 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
992
992
|
createVNode(_sfc_main$c, { onClick: n }),
|
|
993
993
|
createElementVNode("div", _hoisted_1$8, [
|
|
994
994
|
createVNode(_sfc_main$e, {
|
|
995
|
-
modelValue:
|
|
996
|
-
"onUpdate:modelValue": p[0] || (p[0] = ($) =>
|
|
995
|
+
modelValue: f.value,
|
|
996
|
+
"onUpdate:modelValue": p[0] || (p[0] = ($) => f.value = $),
|
|
997
997
|
data: u.value
|
|
998
998
|
}, null, 8, ["modelValue", "data"])
|
|
999
999
|
])
|
|
@@ -1013,7 +1013,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
1013
1013
|
innerHTML: y.value,
|
|
1014
1014
|
key: y.value,
|
|
1015
1015
|
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",
|
|
1016
|
-
onMouseover:
|
|
1016
|
+
onMouseover: _,
|
|
1017
1017
|
onClick: a
|
|
1018
1018
|
}, null, 40, _hoisted_4$3))
|
|
1019
1019
|
])
|
|
@@ -1094,15 +1094,15 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1094
1094
|
emits: ["changeComponent"],
|
|
1095
1095
|
setup(e, { emit: t }) {
|
|
1096
1096
|
const r = t, o = e, s = ref(!0), c = ref(0), d = computed$1(() => {
|
|
1097
|
-
var
|
|
1098
|
-
const l = s.value ? (y = (x = (
|
|
1097
|
+
var f, x, y, u, _, a;
|
|
1098
|
+
const l = 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;
|
|
1099
1099
|
return ["I", "II", "III"].slice(0, l);
|
|
1100
1100
|
}), k = () => {
|
|
1101
|
-
var
|
|
1102
|
-
const l = (
|
|
1101
|
+
var f;
|
|
1102
|
+
const l = (f = o.floors) == null ? void 0 : f.find(
|
|
1103
1103
|
(x) => {
|
|
1104
|
-
var y, u,
|
|
1105
|
-
return ((y = x.floor_number) == null ? void 0 : y.toString()) === ((
|
|
1104
|
+
var y, u, _, a, v, n;
|
|
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()) === ((n = o.flat) == null ? void 0 : n.block_id) : !(x != null && x.block_id));
|
|
1106
1106
|
}
|
|
1107
1107
|
);
|
|
1108
1108
|
l ? r("changeComponent", "floor", l) : r("changeComponent", "project", null);
|
|
@@ -1113,15 +1113,15 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1113
1113
|
c.value = 0;
|
|
1114
1114
|
}
|
|
1115
1115
|
), onMounted(() => {
|
|
1116
|
-
var l,
|
|
1117
|
-
(
|
|
1118
|
-
}), (l,
|
|
1116
|
+
var l, f;
|
|
1117
|
+
(f = (l = o.flat) == null ? void 0 : l.type) != null && f.image_2d || (s.value = !1);
|
|
1118
|
+
}), (l, f) => (openBlock(), createElementBlock("div", null, [
|
|
1119
1119
|
createVNode(_sfc_main$g, { "hoverd-data": null }, {
|
|
1120
1120
|
header: withCtx(() => [
|
|
1121
1121
|
createVNode(_sfc_main$c, { onClick: k })
|
|
1122
1122
|
]),
|
|
1123
1123
|
default: withCtx(() => {
|
|
1124
|
-
var x, y, u,
|
|
1124
|
+
var x, y, u, _, a, v, n, i, p, m, $, h, E, S, g, b, w, V, C, D, R, j, N, B, P, O, A, F, I, H, W;
|
|
1125
1125
|
return [
|
|
1126
1126
|
createElementVNode("div", _hoisted_1$5, [
|
|
1127
1127
|
createElementVNode("div", _hoisted_2$3, [
|
|
@@ -1147,10 +1147,10 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1147
1147
|
}),
|
|
1148
1148
|
createElementVNode("div", _hoisted_5, [
|
|
1149
1149
|
createElementVNode("div", _hoisted_6, [
|
|
1150
|
-
(
|
|
1150
|
+
(_ = (u = (y = (x = l.flat) == null ? void 0 : x.type) == null ? void 0 : y.image_2d) == null ? void 0 : u[0]) != null && _.url ? (openBlock(), createElementBlock("div", {
|
|
1151
1151
|
key: 0,
|
|
1152
1152
|
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
|
-
onClick:
|
|
1153
|
+
onClick: f[0] || (f[0] = (M) => s.value = !0)
|
|
1154
1154
|
}, [
|
|
1155
1155
|
createVNode(FlatIcon, {
|
|
1156
1156
|
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": s.value }])
|
|
@@ -1165,7 +1165,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1165
1165
|
(i = (n = (v = (a = l.flat) == null ? void 0 : a.type) == null ? void 0 : v.image_3d) == null ? void 0 : n[0]) != null && i.url ? (openBlock(), createElementBlock("div", {
|
|
1166
1166
|
key: 1,
|
|
1167
1167
|
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
|
-
onClick:
|
|
1168
|
+
onClick: f[1] || (f[1] = (M) => s.value = !1)
|
|
1169
1169
|
}, [
|
|
1170
1170
|
createElementVNode("div", null, [
|
|
1171
1171
|
createVNode(Cube, {
|
|
@@ -1194,7 +1194,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1194
1194
|
createElementVNode("div", _hoisted_9, [
|
|
1195
1195
|
createElementVNode("div", _hoisted_10, [
|
|
1196
1196
|
createElementVNode("div", _hoisted_11, toDisplayString((m = l.flat) == null ? void 0 : m.flat_number), 1),
|
|
1197
|
-
|
|
1197
|
+
f[2] || (f[2] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Apartment", -1))
|
|
1198
1198
|
]),
|
|
1199
1199
|
(h = ($ = l.flat) == null ? void 0 : $.type) != null && h.title || (S = (E = l.flat) == null ? void 0 : E.type) != null && S.teaser ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
1200
1200
|
createElementVNode("div", _hoisted_13, toDisplayString((b = (g = l.flat) == null ? void 0 : g.type) == null ? void 0 : b.title), 1),
|
|
@@ -1203,37 +1203,37 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1203
1203
|
createElementVNode("div", _hoisted_15, [
|
|
1204
1204
|
(C = l.flat) != null && C.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
1205
1205
|
createElementVNode("div", _hoisted_17, toDisplayString((D = l.flat) == null ? void 0 : D.floor_number), 1),
|
|
1206
|
-
|
|
1206
|
+
f[3] || (f[3] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Floor", -1))
|
|
1207
1207
|
])) : createCommentVNode("", !0),
|
|
1208
1208
|
(j = (R = l.flat) == null ? void 0 : R.type) != null && j.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
1209
1209
|
createElementVNode("div", _hoisted_19, toDisplayString((N = l.flat) == null ? void 0 : N.type.rooms_count), 1),
|
|
1210
|
-
|
|
1210
|
+
f[4] || (f[4] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Room", -1))
|
|
1211
1211
|
])) : createCommentVNode("", !0)
|
|
1212
1212
|
]),
|
|
1213
1213
|
(P = (B = l.flat) == null ? void 0 : B.type) != null && P.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
1214
1214
|
createElementVNode("div", _hoisted_21, [
|
|
1215
1215
|
createTextVNode(toDisplayString((O = l.flat) == null ? void 0 : O.type.area_m2) + " ", 1),
|
|
1216
|
-
|
|
1216
|
+
f[5] || (f[5] = createElementVNode("span", { class: "ire-font-light" }, [
|
|
1217
1217
|
createTextVNode(" M "),
|
|
1218
1218
|
createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
|
|
1219
1219
|
], -1))
|
|
1220
1220
|
]),
|
|
1221
|
-
|
|
1221
|
+
f[6] || (f[6] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Area", -1))
|
|
1222
1222
|
])) : createCommentVNode("", !0),
|
|
1223
1223
|
(A = l.flat) != null && A.price ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
1224
1224
|
createElementVNode("div", null, [
|
|
1225
|
-
(
|
|
1226
|
-
createElementVNode("div", _hoisted_25, toDisplayString(Number((H = l.flat) == null ? void 0 : H.price).toLocaleString()), 1),
|
|
1225
|
+
(F = l.flat) != null && F.offer_price ? (openBlock(), createElementBlock("div", _hoisted_24, [
|
|
1226
|
+
createElementVNode("div", _hoisted_25, toDisplayString(Number((H = l.flat) == null ? void 0 : H.price).toLocaleString("fr-FR")), 1),
|
|
1227
1227
|
createElementVNode("div", _hoisted_26, [
|
|
1228
|
-
createTextVNode(toDisplayString(Number((W = l.flat) == null ? void 0 : W.offer_price).toLocaleString()) + " ", 1),
|
|
1229
|
-
|
|
1228
|
+
createTextVNode(toDisplayString(Number((W = l.flat) == null ? void 0 : W.offer_price).toLocaleString("fr-FR")) + " ", 1),
|
|
1229
|
+
f[8] || (f[8] = createElementVNode("span", { class: "!ire-text-md ire-ml-1" }, "$", -1))
|
|
1230
1230
|
])
|
|
1231
1231
|
])) : (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
1232
|
-
createTextVNode(toDisplayString(Number((
|
|
1233
|
-
|
|
1232
|
+
createTextVNode(toDisplayString(Number((I = l.flat) == null ? void 0 : I.price).toLocaleString("fr-FR")) + " ", 1),
|
|
1233
|
+
f[7] || (f[7] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
|
|
1234
1234
|
]))
|
|
1235
1235
|
]),
|
|
1236
|
-
|
|
1236
|
+
f[9] || (f[9] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Price", -1))
|
|
1237
1237
|
])) : createCommentVNode("", !0)
|
|
1238
1238
|
])
|
|
1239
1239
|
])
|
|
@@ -1298,15 +1298,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1298
1298
|
},
|
|
1299
1299
|
setup(e) {
|
|
1300
1300
|
return (t, r) => {
|
|
1301
|
-
var o, s, c, d, k, l,
|
|
1301
|
+
var o, s, c, d, k, l, f, x, y, u, _, a;
|
|
1302
1302
|
return openBlock(), createElementBlock("div", null, [
|
|
1303
1303
|
createElementVNode("p", _hoisted_1$1, toDisplayString((s = (o = t.modalData) == null ? void 0 : o.modalObject) == null ? void 0 : s.title), 1),
|
|
1304
1304
|
createVNode(_sfc_main$5, {
|
|
1305
1305
|
editor: (d = (c = t.modalData) == null ? void 0 : c.modalObject) == null ? void 0 : d.description
|
|
1306
1306
|
}, null, 8, ["editor"]),
|
|
1307
|
-
(x = (
|
|
1307
|
+
(x = (f = (l = (k = t.modalData) == null ? void 0 : k.modalObject) == null ? void 0 : l.modalImage) == null ? void 0 : f[0]) != null && x.url ? (openBlock(), createElementBlock("img", {
|
|
1308
1308
|
key: 0,
|
|
1309
|
-
src: (a = (
|
|
1309
|
+
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
1310
|
alt: "",
|
|
1311
1311
|
class: "ire-mt-5 ire-h-[400px] ire-w-full ire-object-contain"
|
|
1312
1312
|
}, null, 8, _hoisted_2$1)) : createCommentVNode("", !0)
|
|
@@ -1323,17 +1323,17 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1323
1323
|
},
|
|
1324
1324
|
emits: ["changeComponent"],
|
|
1325
1325
|
setup(e, { emit: t }) {
|
|
1326
|
-
const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(), l = ref(),
|
|
1327
|
-
var u,
|
|
1326
|
+
const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(), l = ref(), f = computed$1(() => {
|
|
1327
|
+
var u, _;
|
|
1328
1328
|
if ((u = o.block) != null && u.svg)
|
|
1329
|
-
return (
|
|
1329
|
+
return (_ = o.block) == null ? void 0 : _.svg;
|
|
1330
1330
|
}), x = (u) => {
|
|
1331
|
-
const
|
|
1332
|
-
|
|
1331
|
+
const _ = u.target;
|
|
1332
|
+
_ && (d.value = _);
|
|
1333
1333
|
}, y = (u) => {
|
|
1334
1334
|
var a, v, n;
|
|
1335
|
-
const
|
|
1336
|
-
(
|
|
1335
|
+
const _ = u.target;
|
|
1336
|
+
(_ == null ? void 0 : _.nodeName) === "path" && (((a = l.value) == null ? void 0 : a.conf) === "sold" || ((v = l.value) == null ? void 0 : v.conf) === "reserved" || r(
|
|
1337
1337
|
"changeComponent",
|
|
1338
1338
|
((n = k.value) == null ? void 0 : n.type) || "",
|
|
1339
1339
|
l.value
|
|
@@ -1345,9 +1345,9 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1345
1345
|
var a, v, n, i, p, m, $, h;
|
|
1346
1346
|
if (!u) return;
|
|
1347
1347
|
s.hoverdSvg = u;
|
|
1348
|
-
const
|
|
1349
|
-
if (
|
|
1350
|
-
const E =
|
|
1348
|
+
const _ = u == null ? void 0 : u.parentElement;
|
|
1349
|
+
if (_ && (_ == null ? void 0 : _.nodeName) === "g") {
|
|
1350
|
+
const E = _ == null ? void 0 : _.getAttribute("id");
|
|
1351
1351
|
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
1352
|
if (((n = k.value) == null ? void 0 : n.type) === "floor") {
|
|
1353
1353
|
const S = (i = o.floors) == null ? void 0 : i.find(
|
|
@@ -1378,7 +1378,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1378
1378
|
} else
|
|
1379
1379
|
k.value = null, l.value = null;
|
|
1380
1380
|
}
|
|
1381
|
-
), (u,
|
|
1381
|
+
), (u, _) => {
|
|
1382
1382
|
var a;
|
|
1383
1383
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
1384
1384
|
hoverdData: l.value,
|
|
@@ -1388,7 +1388,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1388
1388
|
var v;
|
|
1389
1389
|
return [
|
|
1390
1390
|
createVNode(_sfc_main$c, {
|
|
1391
|
-
onClick:
|
|
1391
|
+
onClick: _[0] || (_[0] = (n) => u.$emit("changeComponent", "project", null))
|
|
1392
1392
|
}),
|
|
1393
1393
|
createElementVNode("p", _hoisted_1, toDisplayString((v = u.block) == null ? void 0 : v.title), 1)
|
|
1394
1394
|
];
|
|
@@ -1405,8 +1405,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1405
1405
|
(openBlock(), createElementBlock("div", {
|
|
1406
1406
|
ref_key: "svgRef",
|
|
1407
1407
|
ref: c,
|
|
1408
|
-
innerHTML:
|
|
1409
|
-
key:
|
|
1408
|
+
innerHTML: f.value,
|
|
1409
|
+
key: f.value,
|
|
1410
1410
|
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
1411
|
{
|
|
1412
1412
|
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((p = l.value) == null ? void 0 : p.conf) === "reserved",
|
|
@@ -1435,12 +1435,12 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1435
1435
|
d.style.opacity = "1";
|
|
1436
1436
|
const {
|
|
1437
1437
|
bottom: l,
|
|
1438
|
-
height:
|
|
1438
|
+
height: f,
|
|
1439
1439
|
left: x,
|
|
1440
1440
|
right: y,
|
|
1441
1441
|
top: u,
|
|
1442
|
-
width:
|
|
1443
|
-
} = s.value.getBoundingClientRect(), { bottom: a, left: v } = k.getBoundingClientRect(), { height: n, width: i } = d.getBoundingClientRect(), p = y -
|
|
1442
|
+
width: _
|
|
1443
|
+
} = s.value.getBoundingClientRect(), { bottom: a, left: v } = k.getBoundingClientRect(), { height: n, width: i } = d.getBoundingClientRect(), p = y - _ / 2, m = l - f / 2, $ = v > p, h = a > m;
|
|
1444
1444
|
r.value = c.clientX - x - ($ ? i : -20), o.value = c.clientY - u - (h ? n : -20);
|
|
1445
1445
|
}), provide("mouseX", r), provide("mouseY", o), (c, d) => (openBlock(), createElementBlock("div", {
|
|
1446
1446
|
ref_key: "canvasRef",
|
|
@@ -1455,7 +1455,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1455
1455
|
shortcodeDataProps: {}
|
|
1456
1456
|
},
|
|
1457
1457
|
setup(__props) {
|
|
1458
|
-
var e, t, r, o, s, c, d, k, l,
|
|
1458
|
+
var e, t, r, o, s, c, d, k, l, f, x, y, u, _;
|
|
1459
1459
|
const props = __props, getMeta = (a) => props.shortcodeDataProps.meta.find(
|
|
1460
1460
|
(v) => v.meta_key === a
|
|
1461
1461
|
), constants = ref({
|
|
@@ -1469,11 +1469,11 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1469
1469
|
}), colors = reactive({
|
|
1470
1470
|
path: (k = constants.value) == null ? void 0 : k.PREVIEW_PATH_COLOR,
|
|
1471
1471
|
path_hover: (l = constants.value) == null ? void 0 : l.PREVIEW_PATH_HOVER_COLOR,
|
|
1472
|
-
reserved: (
|
|
1472
|
+
reserved: (f = constants.value) == null ? void 0 : f.PREVIEW_RESERVED_COLOR,
|
|
1473
1473
|
sold: (x = constants.value) == null ? void 0 : x.PREVIEW_SOLD_COLOR,
|
|
1474
1474
|
stroke_color: (y = constants.value) == null ? void 0 : y.PREVIEW_STROKE_COLOR,
|
|
1475
1475
|
stroke_width: (u = constants.value) == null ? void 0 : u.PREVIEW_STROKE_WIDTH,
|
|
1476
|
-
border_radius: (
|
|
1476
|
+
border_radius: (_ = constants.value) == null ? void 0 : _.PREVIEW_BORDER_RADIUS
|
|
1477
1477
|
}), cssVariables = computed$1(() => ({
|
|
1478
1478
|
"--reserved-color": colors.reserved,
|
|
1479
1479
|
"--sold-color": colors.sold,
|