ire-preview 2.2.4 → 2.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.es.js +72 -70
- package/package.json +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -220,7 +220,7 @@ const _hoisted_1$g = {
|
|
|
220
220
|
class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-py-2"
|
|
221
221
|
}, _hoisted_24$1 = {
|
|
222
222
|
key: 0,
|
|
223
|
-
class: "!ire-text-2xl"
|
|
223
|
+
class: "ire-whitespace-nowrap !ire-text-2xl"
|
|
224
224
|
}, _hoisted_25$1 = { key: 1 }, _hoisted_26$1 = { class: "!ire-text-xs ire-line-through" }, _hoisted_27 = { class: "ire-whitespace-nowrap !ire-text-2xl" }, _hoisted_28 = { class: "ire-border ire-border-solid ire-border-gray-800 ire-p-2" }, _hoisted_29 = { class: "ire-translate-x-3 ire-bg-white" }, _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
225
225
|
__name: "Tooltip_1",
|
|
226
226
|
props: {
|
|
@@ -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, _, x, y, u, f, 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,7 +241,7 @@ 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
|
-
(
|
|
244
|
+
(x = (_ = t.hoveredData) == null ? void 0 : _.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),
|
|
@@ -270,7 +270,7 @@ const _hoisted_1$g = {
|
|
|
270
270
|
r[7] || (r[7] = createElementVNode("div", { class: "!ire-text-xs ire-uppercase ire-text-gray-500" }, " Price ", -1)),
|
|
271
271
|
(b = t.hoveredData) != null && b.price ? (openBlock(), createElementBlock("div", _hoisted_23$1, [
|
|
272
272
|
createElementVNode("div", null, [
|
|
273
|
-
(
|
|
273
|
+
(w = t.hoveredData) != null && w.offer_price ? (openBlock(), createElementBlock("div", _hoisted_25$1, [
|
|
274
274
|
createElementVNode("div", _hoisted_26$1, toDisplayString(Number((V = t.hoveredData) == null ? void 0 : V.price).toLocaleString("fr-FR")), 1),
|
|
275
275
|
createElementVNode("div", _hoisted_27, [
|
|
276
276
|
createTextVNode(toDisplayString(Number((C = t.hoveredData) == null ? void 0 : C.offer_price).toLocaleString("fr-FR")) + " ", 1),
|
|
@@ -278,7 +278,7 @@ const _hoisted_1$g = {
|
|
|
278
278
|
])
|
|
279
279
|
])) : (openBlock(), createElementBlock("div", _hoisted_24$1, [
|
|
280
280
|
createTextVNode(toDisplayString(Number(t.hoveredData.price).toLocaleString("fr-FR")) + " ", 1),
|
|
281
|
-
r[5] || (r[5] = createElementVNode("
|
|
281
|
+
r[5] || (r[5] = createElementVNode("span", null, "$", -1))
|
|
282
282
|
]))
|
|
283
283
|
])
|
|
284
284
|
])) : createCommentVNode("", !0)
|
|
@@ -286,7 +286,9 @@ const _hoisted_1$g = {
|
|
|
286
286
|
]),
|
|
287
287
|
createElementVNode("div", _hoisted_28, [
|
|
288
288
|
createElementVNode("div", _hoisted_29, [
|
|
289
|
-
createTextVNode(toDisplayString((
|
|
289
|
+
createTextVNode(toDisplayString((j = Number(
|
|
290
|
+
(R = (D = t.hoveredData) == null ? void 0 : D.type) == null ? void 0 : R.area_m2
|
|
291
|
+
)) == null ? void 0 : j.toLocaleString("fr-FR")) + " M", 1),
|
|
290
292
|
r[8] || (r[8] = createElementVNode("sup", { class: "ire-bg-white !ire-text-xs" }, " 2 ", -1))
|
|
291
293
|
])
|
|
292
294
|
])
|
|
@@ -316,7 +318,7 @@ const _hoisted_1$g = {
|
|
|
316
318
|
}, _hoisted_11$1 = {
|
|
317
319
|
key: 1,
|
|
318
320
|
class: "ire-flex ire-items-center"
|
|
319
|
-
}, _hoisted_12$1 = { class: "!ire-text-sm" }, _hoisted_13$1 = { class: "!ire-text-sm" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
321
|
+
}, _hoisted_12$1 = { class: "ire-whitespace-nowrap !ire-text-sm" }, _hoisted_13$1 = { class: "ire-whitespace-nowrap !ire-text-sm" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
320
322
|
__name: "Tooltip_2",
|
|
321
323
|
props: {
|
|
322
324
|
hoveredData: {},
|
|
@@ -326,7 +328,7 @@ const _hoisted_1$g = {
|
|
|
326
328
|
const t = inject("mouseX"), r = inject("mouseY");
|
|
327
329
|
return (o, s) => (openBlock(), createBlock(Transition, { name: "ire-fade-in" }, {
|
|
328
330
|
default: withCtx(() => {
|
|
329
|
-
var c, d, k, l, _,
|
|
331
|
+
var c, d, k, l, _, x, y, u, f, a, v;
|
|
330
332
|
return [
|
|
331
333
|
o.type && o.hoveredData && o.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
|
|
332
334
|
key: 0,
|
|
@@ -342,7 +344,7 @@ const _hoisted_1$g = {
|
|
|
342
344
|
])) : o.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
343
345
|
createElementVNode("div", _hoisted_6$2, [
|
|
344
346
|
createElementVNode("div", null, toDisplayString((_ = o.hoveredData) == null ? void 0 : _.title), 1),
|
|
345
|
-
createElementVNode("span", _hoisted_7$2, toDisplayString((
|
|
347
|
+
createElementVNode("span", _hoisted_7$2, toDisplayString((x = o.hoveredData) == null ? void 0 : x.conf), 1)
|
|
346
348
|
])
|
|
347
349
|
])) : o.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_8$2, [
|
|
348
350
|
createElementVNode("div", _hoisted_9$2, toDisplayString((y = o.hoveredData) == null ? void 0 : y.flat_number), 1),
|
|
@@ -538,8 +540,8 @@ function createOptionsStore(e, t, r, o) {
|
|
|
538
540
|
let l;
|
|
539
541
|
function _() {
|
|
540
542
|
k || (r.state.value[e] = s ? s() : {});
|
|
541
|
-
const
|
|
542
|
-
return assign(
|
|
543
|
+
const x = toRefs(r.state.value[e]);
|
|
544
|
+
return assign(x, c, Object.keys(d || {}).reduce((y, u) => (y[u] = markRaw(computed$1(() => {
|
|
543
545
|
setActivePinia(r);
|
|
544
546
|
const f = r._s.get(e);
|
|
545
547
|
return d[u].call(f, f);
|
|
@@ -550,13 +552,13 @@ function createOptionsStore(e, t, r, o) {
|
|
|
550
552
|
function createSetupStore(e, t, r = {}, o, s, c) {
|
|
551
553
|
let d;
|
|
552
554
|
const k = assign({ actions: {} }, r), l = { deep: !0 };
|
|
553
|
-
let _,
|
|
555
|
+
let _, x, y = [], u = [], f;
|
|
554
556
|
const a = o.state.value[e];
|
|
555
557
|
!c && !a && (o.state.value[e] = {}), ref({});
|
|
556
558
|
let v;
|
|
557
559
|
function n(g) {
|
|
558
560
|
let b;
|
|
559
|
-
_ =
|
|
561
|
+
_ = x = !1, typeof g == "function" ? (g(o.state.value[e]), b = {
|
|
560
562
|
type: MutationType.patchFunction,
|
|
561
563
|
storeId: e,
|
|
562
564
|
events: f
|
|
@@ -566,15 +568,15 @@ function createSetupStore(e, t, r = {}, o, s, c) {
|
|
|
566
568
|
storeId: e,
|
|
567
569
|
events: f
|
|
568
570
|
});
|
|
569
|
-
const
|
|
571
|
+
const w = v = Symbol();
|
|
570
572
|
nextTick().then(() => {
|
|
571
|
-
v ===
|
|
572
|
-
}),
|
|
573
|
+
v === w && (_ = !0);
|
|
574
|
+
}), x = !0, triggerSubscriptions(y, b, o.state.value[e]);
|
|
573
575
|
}
|
|
574
576
|
const i = c ? function() {
|
|
575
|
-
const { state: b } = r,
|
|
577
|
+
const { state: b } = r, w = b ? b() : {};
|
|
576
578
|
this.$patch((V) => {
|
|
577
|
-
assign(V,
|
|
579
|
+
assign(V, w);
|
|
578
580
|
});
|
|
579
581
|
} : (
|
|
580
582
|
/* istanbul ignore next */
|
|
@@ -586,21 +588,21 @@ function createSetupStore(e, t, r = {}, o, s, c) {
|
|
|
586
588
|
const m = (g, b = "") => {
|
|
587
589
|
if (ACTION_MARKER in g)
|
|
588
590
|
return g[ACTION_NAME] = b, g;
|
|
589
|
-
const
|
|
591
|
+
const w = function() {
|
|
590
592
|
setActivePinia(o);
|
|
591
593
|
const V = Array.from(arguments), C = [], D = [];
|
|
592
594
|
function R(B) {
|
|
593
595
|
C.push(B);
|
|
594
596
|
}
|
|
595
|
-
function
|
|
597
|
+
function j(B) {
|
|
596
598
|
D.push(B);
|
|
597
599
|
}
|
|
598
600
|
triggerSubscriptions(u, {
|
|
599
601
|
args: V,
|
|
600
|
-
name:
|
|
602
|
+
name: w[ACTION_NAME],
|
|
601
603
|
store: h,
|
|
602
604
|
after: R,
|
|
603
|
-
onError:
|
|
605
|
+
onError: j
|
|
604
606
|
});
|
|
605
607
|
let N;
|
|
606
608
|
try {
|
|
@@ -610,7 +612,7 @@ function createSetupStore(e, t, r = {}, o, s, c) {
|
|
|
610
612
|
}
|
|
611
613
|
return N instanceof Promise ? N.then((B) => (triggerSubscriptions(C, B), B)).catch((B) => (triggerSubscriptions(D, B), Promise.reject(B))) : (triggerSubscriptions(C, N), N);
|
|
612
614
|
};
|
|
613
|
-
return
|
|
615
|
+
return w[ACTION_MARKER] = !0, w[ACTION_NAME] = b, w;
|
|
614
616
|
}, $ = {
|
|
615
617
|
_p: o,
|
|
616
618
|
// _s: scope,
|
|
@@ -619,14 +621,14 @@ function createSetupStore(e, t, r = {}, o, s, c) {
|
|
|
619
621
|
$patch: n,
|
|
620
622
|
$reset: i,
|
|
621
623
|
$subscribe(g, b = {}) {
|
|
622
|
-
const
|
|
623
|
-
(b.flush === "sync" ?
|
|
624
|
+
const w = addSubscription(y, g, b.detached, () => V()), V = d.run(() => watch(() => o.state.value[e], (C) => {
|
|
625
|
+
(b.flush === "sync" ? x : _) && g({
|
|
624
626
|
storeId: e,
|
|
625
627
|
type: MutationType.direct,
|
|
626
628
|
events: f
|
|
627
629
|
}, C);
|
|
628
630
|
}, assign({}, l, b)));
|
|
629
|
-
return
|
|
631
|
+
return w;
|
|
630
632
|
},
|
|
631
633
|
$dispose: p
|
|
632
634
|
}, h = reactive($);
|
|
@@ -637,8 +639,8 @@ function createSetupStore(e, t, r = {}, o, s, c) {
|
|
|
637
639
|
if (isRef(b) && !isComputed(b) || isReactive(b))
|
|
638
640
|
c || (a && shouldHydrate(b) && (isRef(b) ? b.value = a[g] : mergeReactiveObjects(b, a[g])), o.state.value[e][g] = b);
|
|
639
641
|
else if (typeof b == "function") {
|
|
640
|
-
const
|
|
641
|
-
S[g] =
|
|
642
|
+
const w = m(b, g);
|
|
643
|
+
S[g] = w, k.actions[g] = b;
|
|
642
644
|
}
|
|
643
645
|
}
|
|
644
646
|
return assign(h, S), assign(toRaw(h), S), Object.defineProperty(h, "$state", {
|
|
@@ -655,7 +657,7 @@ function createSetupStore(e, t, r = {}, o, s, c) {
|
|
|
655
657
|
pinia: o,
|
|
656
658
|
options: k
|
|
657
659
|
})));
|
|
658
|
-
}), a && c && r.hydrate && r.hydrate(h.$state, a), _ = !0,
|
|
660
|
+
}), a && c && r.hydrate && r.hydrate(h.$state, a), _ = !0, x = !0, h;
|
|
659
661
|
}
|
|
660
662
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
661
663
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -703,7 +705,7 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
703
705
|
const _ = (y) => {
|
|
704
706
|
const u = y.target;
|
|
705
707
|
u && (c.value = u);
|
|
706
|
-
},
|
|
708
|
+
}, x = (y) => {
|
|
707
709
|
var f, a, v;
|
|
708
710
|
const u = y.target;
|
|
709
711
|
(u == null ? void 0 : u.nodeName) === "path" && (((f = d.value) == null ? void 0 : f.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));
|
|
@@ -722,25 +724,25 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
722
724
|
switch ((v = k.value) == null ? void 0 : v.type) {
|
|
723
725
|
case "floor":
|
|
724
726
|
const E = (n = o.floors) == null ? void 0 : n.find(
|
|
725
|
-
(
|
|
727
|
+
(w) => w.id === h
|
|
726
728
|
);
|
|
727
729
|
d.value = E;
|
|
728
730
|
break;
|
|
729
731
|
case "block":
|
|
730
732
|
const S = (i = o.blocks) == null ? void 0 : i.find(
|
|
731
|
-
(
|
|
733
|
+
(w) => (w == null ? void 0 : w.id) === h
|
|
732
734
|
);
|
|
733
735
|
d.value = S;
|
|
734
736
|
break;
|
|
735
737
|
case "flat":
|
|
736
738
|
const g = (p = o.flats) == null ? void 0 : p.find(
|
|
737
|
-
(
|
|
739
|
+
(w) => (w == null ? void 0 : w.id) === h
|
|
738
740
|
);
|
|
739
741
|
d.value = g;
|
|
740
742
|
break;
|
|
741
743
|
case "tooltip":
|
|
742
744
|
const b = (m = o.actions) == null ? void 0 : m.find(
|
|
743
|
-
(
|
|
745
|
+
(w) => (w == null ? void 0 : w.id) === h
|
|
744
746
|
);
|
|
745
747
|
d.value = b;
|
|
746
748
|
break;
|
|
@@ -777,7 +779,7 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
777
779
|
}
|
|
778
780
|
]]),
|
|
779
781
|
onMouseover: _,
|
|
780
|
-
onClick:
|
|
782
|
+
onClick: x
|
|
781
783
|
}, null, 42, _hoisted_3$5))
|
|
782
784
|
])
|
|
783
785
|
];
|
|
@@ -872,7 +874,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
872
874
|
},
|
|
873
875
|
emits: ["changeComponent"],
|
|
874
876
|
setup(e, { emit: t }) {
|
|
875
|
-
const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(), l = ref(null), _ = ref(),
|
|
877
|
+
const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(), l = ref(null), _ = ref(), x = ref(), y = computed$1(() => {
|
|
876
878
|
var i;
|
|
877
879
|
if ((i = o.floor) != null && i.svg)
|
|
878
880
|
return o.floor.svg;
|
|
@@ -907,7 +909,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
907
909
|
}, v = () => {
|
|
908
910
|
var i;
|
|
909
911
|
c.value && ((i = c.value) == null ? void 0 : i.querySelectorAll("g")).forEach((m) => {
|
|
910
|
-
var E, S, g, b,
|
|
912
|
+
var E, S, g, b, w, V;
|
|
911
913
|
const $ = m == null ? void 0 : m.getAttribute("id"), h = (S = (E = o.floor) == null ? void 0 : E.polygon_data) == null ? void 0 : S.find(
|
|
912
914
|
(C) => (C == null ? void 0 : C.key) === $
|
|
913
915
|
);
|
|
@@ -915,7 +917,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
915
917
|
if ((g = o.floor) != null && g.conf)
|
|
916
918
|
m.setAttribute("conf", ((b = o.floor) == null ? void 0 : b.conf) || "");
|
|
917
919
|
else {
|
|
918
|
-
const C = (
|
|
920
|
+
const C = (w = o.flats) == null ? void 0 : w.find(
|
|
919
921
|
(D) => (D == null ? void 0 : D.id) === (h == null ? void 0 : h.id)
|
|
920
922
|
);
|
|
921
923
|
m == null || m.setAttribute("conf", ((V = C == null ? void 0 : C.conf) == null ? void 0 : V.toString()) || "");
|
|
@@ -923,7 +925,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
923
925
|
});
|
|
924
926
|
}, n = () => {
|
|
925
927
|
var i;
|
|
926
|
-
(i = o.floor) != null && i.block_id ? r("changeComponent", "block",
|
|
928
|
+
(i = o.floor) != null && i.block_id ? r("changeComponent", "block", x.value) : r("changeComponent", "project", null);
|
|
927
929
|
};
|
|
928
930
|
return watch(
|
|
929
931
|
() => d.value,
|
|
@@ -934,23 +936,23 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
934
936
|
const p = i == null ? void 0 : i.parentElement;
|
|
935
937
|
if (p && (p == null ? void 0 : p.nodeName) === "g") {
|
|
936
938
|
const b = p.getAttribute("id");
|
|
937
|
-
if (!b || (k.value = (($ = (m = o.floor) == null ? void 0 : m.polygon_data) == null ? void 0 : $.find((
|
|
939
|
+
if (!b || (k.value = (($ = (m = o.floor) == null ? void 0 : m.polygon_data) == null ? void 0 : $.find((w) => (w == null ? void 0 : w.key) === b)) || null, !k.value)) return;
|
|
938
940
|
if (((h = k.value) == null ? void 0 : h.type) === "flat") {
|
|
939
|
-
const
|
|
941
|
+
const w = (E = o.flats) == null ? void 0 : E.find(
|
|
940
942
|
(V) => {
|
|
941
943
|
var C;
|
|
942
944
|
return (V == null ? void 0 : V.id) === ((C = k.value) == null ? void 0 : C.id);
|
|
943
945
|
}
|
|
944
946
|
);
|
|
945
|
-
l.value =
|
|
947
|
+
l.value = w ?? null;
|
|
946
948
|
} else if (((S = k.value) == null ? void 0 : S.type) === "tooltip") {
|
|
947
|
-
const
|
|
949
|
+
const w = (g = o.actions) == null ? void 0 : g.find(
|
|
948
950
|
(V) => {
|
|
949
951
|
var C;
|
|
950
952
|
return (V == null ? void 0 : V.id) === ((C = k.value) == null ? void 0 : C.id);
|
|
951
953
|
}
|
|
952
954
|
);
|
|
953
|
-
l.value =
|
|
955
|
+
l.value = w ?? null;
|
|
954
956
|
} else
|
|
955
957
|
l.value = null;
|
|
956
958
|
} else
|
|
@@ -969,7 +971,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
969
971
|
}
|
|
970
972
|
), onMounted(() => {
|
|
971
973
|
var i, p, m;
|
|
972
|
-
|
|
974
|
+
x.value = (i = o.blocks) == null ? void 0 : i.find(
|
|
973
975
|
($) => {
|
|
974
976
|
var h, E;
|
|
975
977
|
return ($ == null ? void 0 : $.id) === ((E = (h = o.floor) == null ? void 0 : h.block_id) == null ? void 0 : E.toString());
|
|
@@ -1092,15 +1094,15 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1092
1094
|
emits: ["changeComponent"],
|
|
1093
1095
|
setup(e, { emit: t }) {
|
|
1094
1096
|
const r = t, o = e, s = ref(!0), c = ref(0), d = computed$1(() => {
|
|
1095
|
-
var _,
|
|
1096
|
-
const l = s.value ? (y = (
|
|
1097
|
+
var _, x, y, u, f, a;
|
|
1098
|
+
const l = s.value ? (y = (x = (_ = o.flat) == null ? void 0 : _.type) == null ? void 0 : x.image_2d) == null ? void 0 : y.length : (a = (f = (u = o.flat) == null ? void 0 : u.type) == null ? void 0 : f.image_3d) == null ? void 0 : a.length;
|
|
1097
1099
|
return ["I", "II", "III"].slice(0, l);
|
|
1098
1100
|
}), k = () => {
|
|
1099
1101
|
var _;
|
|
1100
1102
|
const l = (_ = o.floors) == null ? void 0 : _.find(
|
|
1101
|
-
(
|
|
1103
|
+
(x) => {
|
|
1102
1104
|
var y, u, f, a, v, n;
|
|
1103
|
-
return ((y =
|
|
1105
|
+
return ((y = x.floor_number) == null ? void 0 : y.toString()) === ((f = (u = o.flat) == null ? void 0 : u.floor_number) == null ? void 0 : f.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));
|
|
1104
1106
|
}
|
|
1105
1107
|
);
|
|
1106
1108
|
l ? r("changeComponent", "floor", l) : r("changeComponent", "project", null);
|
|
@@ -1119,7 +1121,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1119
1121
|
createVNode(_sfc_main$c, { onClick: k })
|
|
1120
1122
|
]),
|
|
1121
1123
|
default: withCtx(() => {
|
|
1122
|
-
var
|
|
1124
|
+
var x, y, u, f, a, v, n, i, p, m, $, h, E, S, g, b, w, V, C, D, R, j, N, B, P, O, A, I, F, H, W;
|
|
1123
1125
|
return [
|
|
1124
1126
|
createElementVNode("div", _hoisted_1$5, [
|
|
1125
1127
|
createElementVNode("div", _hoisted_2$3, [
|
|
@@ -1128,9 +1130,9 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1128
1130
|
mode: "out-in"
|
|
1129
1131
|
}, {
|
|
1130
1132
|
default: withCtx(() => {
|
|
1131
|
-
var
|
|
1133
|
+
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;
|
|
1132
1134
|
return [
|
|
1133
|
-
s.value && ((z = (T = (
|
|
1135
|
+
s.value && ((z = (T = (L = (M = l.flat) == null ? void 0 : M.type) == null ? void 0 : L.image_2d) == null ? void 0 : T[c.value]) != null && z.url) ? (openBlock(), createElementBlock("img", {
|
|
1134
1136
|
key: (U = (K = (Y = (X = l.flat) == null ? void 0 : X.type) == null ? void 0 : Y.image_2d) == null ? void 0 : K[c.value]) == null ? void 0 : U.url,
|
|
1135
1137
|
src: (Q = (J = (Z = (q = l.flat) == null ? void 0 : q.type) == null ? void 0 : Z.image_2d) == null ? void 0 : J[c.value]) == null ? void 0 : Q.url,
|
|
1136
1138
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
|
|
@@ -1145,10 +1147,10 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1145
1147
|
}),
|
|
1146
1148
|
createElementVNode("div", _hoisted_5, [
|
|
1147
1149
|
createElementVNode("div", _hoisted_6, [
|
|
1148
|
-
(f = (u = (y = (
|
|
1150
|
+
(f = (u = (y = (x = l.flat) == null ? void 0 : x.type) == null ? void 0 : y.image_2d) == null ? void 0 : u[0]) != null && f.url ? (openBlock(), createElementBlock("div", {
|
|
1149
1151
|
key: 0,
|
|
1150
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 }]),
|
|
1151
|
-
onClick: _[0] || (_[0] = (
|
|
1153
|
+
onClick: _[0] || (_[0] = (M) => s.value = !0)
|
|
1152
1154
|
}, [
|
|
1153
1155
|
createVNode(FlatIcon, {
|
|
1154
1156
|
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": s.value }])
|
|
@@ -1163,7 +1165,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1163
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", {
|
|
1164
1166
|
key: 1,
|
|
1165
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 }]),
|
|
1166
|
-
onClick: _[1] || (_[1] = (
|
|
1168
|
+
onClick: _[1] || (_[1] = (M) => s.value = !1)
|
|
1167
1169
|
}, [
|
|
1168
1170
|
createElementVNode("div", null, [
|
|
1169
1171
|
createVNode(Cube, {
|
|
@@ -1179,13 +1181,13 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1179
1181
|
], 2)) : createCommentVNode("", !0)
|
|
1180
1182
|
]),
|
|
1181
1183
|
((p = d.value) == null ? void 0 : p.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
1182
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(d.value, (
|
|
1183
|
-
key:
|
|
1184
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(d.value, (M, L) => (openBlock(), createElementBlock("div", {
|
|
1185
|
+
key: M,
|
|
1184
1186
|
class: normalizeClass(["ire-flex ire-h-10 ire-w-10 ire-cursor-pointer ire-items-center ire-justify-center ire-rounded-lg ire-p-2 ire-transition-all hover:ire-bg-black hover:ire-text-white", {
|
|
1185
|
-
"ire-bg-black ire-text-white": c.value ===
|
|
1187
|
+
"ire-bg-black ire-text-white": c.value === L
|
|
1186
1188
|
}]),
|
|
1187
|
-
onClick: (T) => c.value =
|
|
1188
|
-
}, toDisplayString(
|
|
1189
|
+
onClick: (T) => c.value = L
|
|
1190
|
+
}, toDisplayString(M), 11, _hoisted_8))), 128))
|
|
1189
1191
|
])) : createCommentVNode("", !0)
|
|
1190
1192
|
])
|
|
1191
1193
|
]),
|
|
@@ -1196,14 +1198,14 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1196
1198
|
]),
|
|
1197
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, [
|
|
1198
1200
|
createElementVNode("div", _hoisted_13, toDisplayString((b = (g = l.flat) == null ? void 0 : g.type) == null ? void 0 : b.title), 1),
|
|
1199
|
-
createElementVNode("div", _hoisted_14, toDisplayString((V = (
|
|
1201
|
+
createElementVNode("div", _hoisted_14, toDisplayString((V = (w = l.flat) == null ? void 0 : w.type) == null ? void 0 : V.teaser), 1)
|
|
1200
1202
|
])) : createCommentVNode("", !0),
|
|
1201
1203
|
createElementVNode("div", _hoisted_15, [
|
|
1202
1204
|
(C = l.flat) != null && C.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
1203
1205
|
createElementVNode("div", _hoisted_17, toDisplayString((D = l.flat) == null ? void 0 : D.floor_number), 1),
|
|
1204
1206
|
_[3] || (_[3] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Floor", -1))
|
|
1205
1207
|
])) : createCommentVNode("", !0),
|
|
1206
|
-
(
|
|
1208
|
+
(j = (R = l.flat) == null ? void 0 : R.type) != null && j.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
1207
1209
|
createElementVNode("div", _hoisted_19, toDisplayString((N = l.flat) == null ? void 0 : N.type.rooms_count), 1),
|
|
1208
1210
|
_[4] || (_[4] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Room", -1))
|
|
1209
1211
|
])) : createCommentVNode("", !0)
|
|
@@ -1296,13 +1298,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1296
1298
|
},
|
|
1297
1299
|
setup(e) {
|
|
1298
1300
|
return (t, r) => {
|
|
1299
|
-
var o, s, c, d, k, l, _,
|
|
1301
|
+
var o, s, c, d, k, l, _, x, y, u, f, a;
|
|
1300
1302
|
return openBlock(), createElementBlock("div", null, [
|
|
1301
1303
|
createElementVNode("p", _hoisted_1$1, toDisplayString((s = (o = t.modalData) == null ? void 0 : o.modalObject) == null ? void 0 : s.title), 1),
|
|
1302
1304
|
createVNode(_sfc_main$5, {
|
|
1303
1305
|
editor: (d = (c = t.modalData) == null ? void 0 : c.modalObject) == null ? void 0 : d.description
|
|
1304
1306
|
}, null, 8, ["editor"]),
|
|
1305
|
-
(
|
|
1307
|
+
(x = (_ = (l = (k = t.modalData) == null ? void 0 : k.modalObject) == null ? void 0 : l.modalImage) == null ? void 0 : _[0]) != null && x.url ? (openBlock(), createElementBlock("img", {
|
|
1306
1308
|
key: 0,
|
|
1307
1309
|
src: (a = (f = (u = (y = t.modalData) == null ? void 0 : y.modalObject) == null ? void 0 : u.modalImage) == null ? void 0 : f[0]) == null ? void 0 : a.url,
|
|
1308
1310
|
alt: "",
|
|
@@ -1325,7 +1327,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1325
1327
|
var u, f;
|
|
1326
1328
|
if ((u = o.block) != null && u.svg)
|
|
1327
1329
|
return (f = o.block) == null ? void 0 : f.svg;
|
|
1328
|
-
}),
|
|
1330
|
+
}), x = (u) => {
|
|
1329
1331
|
const f = u.target;
|
|
1330
1332
|
f && (d.value = f);
|
|
1331
1333
|
}, y = (u) => {
|
|
@@ -1412,7 +1414,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1412
1414
|
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !(($ = l.value) != null && $.conf)
|
|
1413
1415
|
}
|
|
1414
1416
|
]]),
|
|
1415
|
-
onMouseover:
|
|
1417
|
+
onMouseover: x,
|
|
1416
1418
|
onClick: y
|
|
1417
1419
|
}, null, 42, _hoisted_4))
|
|
1418
1420
|
])
|
|
@@ -1434,12 +1436,12 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1434
1436
|
const {
|
|
1435
1437
|
bottom: l,
|
|
1436
1438
|
height: _,
|
|
1437
|
-
left:
|
|
1439
|
+
left: x,
|
|
1438
1440
|
right: y,
|
|
1439
1441
|
top: u,
|
|
1440
1442
|
width: f
|
|
1441
1443
|
} = s.value.getBoundingClientRect(), { bottom: a, left: v } = k.getBoundingClientRect(), { height: n, width: i } = d.getBoundingClientRect(), p = y - f / 2, m = l - _ / 2, $ = v > p, h = a > m;
|
|
1442
|
-
r.value = c.clientX -
|
|
1444
|
+
r.value = c.clientX - x - ($ ? i : -20), o.value = c.clientY - u - (h ? n : -20);
|
|
1443
1445
|
}), provide("mouseX", r), provide("mouseY", o), (c, d) => (openBlock(), createElementBlock("div", {
|
|
1444
1446
|
ref_key: "canvasRef",
|
|
1445
1447
|
ref: s
|
|
@@ -1453,7 +1455,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1453
1455
|
shortcodeDataProps: {}
|
|
1454
1456
|
},
|
|
1455
1457
|
setup(__props) {
|
|
1456
|
-
var e, t, r, o, s, c, d, k, l, _,
|
|
1458
|
+
var e, t, r, o, s, c, d, k, l, _, x, y, u, f;
|
|
1457
1459
|
const props = __props, getMeta = (a) => props.shortcodeDataProps.meta.find(
|
|
1458
1460
|
(v) => v.meta_key === a
|
|
1459
1461
|
), constants = ref({
|
|
@@ -1468,7 +1470,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1468
1470
|
path: (k = constants.value) == null ? void 0 : k.PREVIEW_PATH_COLOR,
|
|
1469
1471
|
path_hover: (l = constants.value) == null ? void 0 : l.PREVIEW_PATH_HOVER_COLOR,
|
|
1470
1472
|
reserved: (_ = constants.value) == null ? void 0 : _.PREVIEW_RESERVED_COLOR,
|
|
1471
|
-
sold: (
|
|
1473
|
+
sold: (x = constants.value) == null ? void 0 : x.PREVIEW_SOLD_COLOR,
|
|
1472
1474
|
stroke_color: (y = constants.value) == null ? void 0 : y.PREVIEW_STROKE_COLOR,
|
|
1473
1475
|
stroke_width: (u = constants.value) == null ? void 0 : u.PREVIEW_STROKE_WIDTH,
|
|
1474
1476
|
border_radius: (f = constants.value) == null ? void 0 : f.PREVIEW_BORDER_RADIUS
|