ire-preview 2.3.2 → 2.3.3
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 +120 -120
- package/package.json +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -206,7 +206,7 @@ const tr = (t) => {
|
|
|
206
206
|
}, _hoisted_10$3 = { class: "ire-min-w-3 !ire-text-2xl" }, _hoisted_11$3 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_12$3 = {
|
|
207
207
|
key: 1,
|
|
208
208
|
class: "ire-flex ire-items-center ire-gap-2"
|
|
209
|
-
}, _hoisted_13$2 = { class: "min-w-3 !ire-text-2xl" }, _hoisted_14$2 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_15$
|
|
209
|
+
}, _hoisted_13$2 = { class: "min-w-3 !ire-text-2xl" }, _hoisted_14$2 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_15$2 = {
|
|
210
210
|
key: 2,
|
|
211
211
|
class: "ire-flex ire-items-center ire-gap-2"
|
|
212
212
|
}, _hoisted_16$1 = { class: "ire-min-w-3 !ire-text-2xl" }, _hoisted_17$1 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_18$1 = {
|
|
@@ -238,7 +238,7 @@ const tr = (t) => {
|
|
|
238
238
|
return (e, n) => (openBlock(), createElementBlock("div", null, [
|
|
239
239
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
240
240
|
default: withCtx(() => {
|
|
241
|
-
var l, i, c, k, w,
|
|
241
|
+
var l, i, c, k, w, E, $, h, m, u, p, a, s, d, v, y, _, x, S, f, g, b, V, C, B;
|
|
242
242
|
return [
|
|
243
243
|
e.type && e.hoveredData && e.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
244
244
|
e.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
@@ -248,7 +248,7 @@ const tr = (t) => {
|
|
|
248
248
|
]),
|
|
249
249
|
(i = e.hoveredData) != null && i.conf || (k = (c = e.hoveredData) == null ? void 0 : c.flats) != null && k.length ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
250
250
|
r.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(r.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_8$3, [
|
|
251
|
-
(
|
|
251
|
+
(E = (w = e.hoveredData) == null ? void 0 : w.counts) != null && E.available ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
|
|
252
252
|
createElementVNode("div", _hoisted_10$3, toDisplayString(((h = ($ = e.hoveredData) == null ? void 0 : $.counts) == null ? void 0 : h.available) || 0), 1),
|
|
253
253
|
createElementVNode("div", _hoisted_11$3, toDisplayString(unref(tr)("available")), 1)
|
|
254
254
|
])) : createCommentVNode("", !0),
|
|
@@ -256,8 +256,8 @@ const tr = (t) => {
|
|
|
256
256
|
createElementVNode("div", _hoisted_13$2, toDisplayString((a = (p = e.hoveredData) == null ? void 0 : p.counts) == null ? void 0 : a.reserved), 1),
|
|
257
257
|
createElementVNode("div", _hoisted_14$2, toDisplayString(unref(tr)("reserved")), 1)
|
|
258
258
|
])) : createCommentVNode("", !0),
|
|
259
|
-
(d = (s = e.hoveredData) == null ? void 0 : s.counts) != null && d.sold ? (openBlock(), createElementBlock("div", _hoisted_15$
|
|
260
|
-
createElementVNode("div", _hoisted_16$1, toDisplayString((
|
|
259
|
+
(d = (s = e.hoveredData) == null ? void 0 : s.counts) != null && d.sold ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
|
|
260
|
+
createElementVNode("div", _hoisted_16$1, toDisplayString((y = (v = e.hoveredData) == null ? void 0 : v.counts) == null ? void 0 : y.sold), 1),
|
|
261
261
|
createElementVNode("div", _hoisted_17$1, toDisplayString(unref(tr)("sold")), 1)
|
|
262
262
|
])) : createCommentVNode("", !0)
|
|
263
263
|
]))
|
|
@@ -275,17 +275,17 @@ const tr = (t) => {
|
|
|
275
275
|
createElementVNode("div", _hoisted_26$1, [
|
|
276
276
|
r.value ? (openBlock(), createElementBlock("div", _hoisted_27$1, toDisplayString(r.value), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
277
277
|
createElementVNode("div", _hoisted_28$1, toDisplayString(unref(tr)("price")), 1),
|
|
278
|
-
(
|
|
278
|
+
(S = e.hoveredData) != null && S.price ? (openBlock(), createElementBlock("div", _hoisted_29$1, [
|
|
279
279
|
createElementVNode("div", null, [
|
|
280
280
|
(f = e.hoveredData) != null && f.offer_price ? (openBlock(), createElementBlock("div", _hoisted_31$1, [
|
|
281
281
|
createElementVNode("div", _hoisted_32, toDisplayString(Number((g = e.hoveredData) == null ? void 0 : g.price).toLocaleString("fr-FR")), 1),
|
|
282
282
|
createElementVNode("div", _hoisted_33, [
|
|
283
|
-
createTextVNode(toDisplayString(Number((
|
|
284
|
-
|
|
283
|
+
createTextVNode(toDisplayString(Number((b = e.hoveredData) == null ? void 0 : b.offer_price).toLocaleString("fr-FR")) + " ", 1),
|
|
284
|
+
createElementVNode("span", null, toDisplayString(unref(tr)("$")), 1)
|
|
285
285
|
])
|
|
286
286
|
])) : (openBlock(), createElementBlock("div", _hoisted_30$1, [
|
|
287
287
|
createTextVNode(toDisplayString(Number(e.hoveredData.price).toLocaleString("fr-FR")) + " ", 1),
|
|
288
|
-
|
|
288
|
+
createElementVNode("span", null, toDisplayString(unref(tr)("$")), 1)
|
|
289
289
|
]))
|
|
290
290
|
])
|
|
291
291
|
])) : createCommentVNode("", !0)
|
|
@@ -293,10 +293,10 @@ const tr = (t) => {
|
|
|
293
293
|
]),
|
|
294
294
|
createElementVNode("div", _hoisted_34, [
|
|
295
295
|
createElementVNode("div", _hoisted_35, [
|
|
296
|
-
createTextVNode(toDisplayString((
|
|
296
|
+
createTextVNode(toDisplayString((B = Number(
|
|
297
297
|
(C = (V = e.hoveredData) == null ? void 0 : V.type) == null ? void 0 : C.area_m2
|
|
298
|
-
)) == null ? void 0 :
|
|
299
|
-
n[
|
|
298
|
+
)) == null ? void 0 : B.toLocaleString("fr-FR")) + " M", 1),
|
|
299
|
+
n[0] || (n[0] = createElementVNode("sup", { class: "ire-bg-white !ire-text-xs" }, " 2 ", -1))
|
|
300
300
|
])
|
|
301
301
|
])
|
|
302
302
|
])) : createCommentVNode("", !0)
|
|
@@ -328,7 +328,7 @@ const tr = (t) => {
|
|
|
328
328
|
}, _hoisted_12$2 = {
|
|
329
329
|
key: 1,
|
|
330
330
|
class: "ire-flex ire-items-center"
|
|
331
|
-
}, _hoisted_13$1 = { class: "ire-whitespace-nowrap !ire-text-sm" }, _hoisted_14$1 = { class: "ire-whitespace-nowrap !ire-text-sm" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
331
|
+
}, _hoisted_13$1 = { class: "ire-whitespace-nowrap !ire-text-sm" }, _hoisted_14$1 = { class: "ire-right-[2px] !ire-text-sm ire-text-gray-200" }, _hoisted_15$1 = { class: "ire-whitespace-nowrap !ire-text-sm" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
332
332
|
__name: "Tooltip_2",
|
|
333
333
|
props: {
|
|
334
334
|
hoveredData: {},
|
|
@@ -341,7 +341,7 @@ const tr = (t) => {
|
|
|
341
341
|
});
|
|
342
342
|
return (l, i) => (openBlock(), createBlock(Transition, { name: "ire-fade-in" }, {
|
|
343
343
|
default: withCtx(() => {
|
|
344
|
-
var c, k, w,
|
|
344
|
+
var c, k, w, E, $, h, m, u, p;
|
|
345
345
|
return [
|
|
346
346
|
l.type && l.hoveredData && l.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
|
|
347
347
|
key: 0,
|
|
@@ -362,7 +362,7 @@ const tr = (t) => {
|
|
|
362
362
|
]))
|
|
363
363
|
])) : l.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
364
364
|
createElementVNode("div", _hoisted_7$2, [
|
|
365
|
-
createElementVNode("div", null, toDisplayString((
|
|
365
|
+
createElementVNode("div", null, toDisplayString((E = l.hoveredData) == null ? void 0 : E.title), 1),
|
|
366
366
|
createElementVNode("span", _hoisted_8$2, toDisplayString(n.value), 1)
|
|
367
367
|
])
|
|
368
368
|
])) : l.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_9$2, [
|
|
@@ -371,15 +371,15 @@ const tr = (t) => {
|
|
|
371
371
|
createElementVNode("div", null, [
|
|
372
372
|
createElementVNode("div", _hoisted_13$1, [
|
|
373
373
|
createTextVNode(toDisplayString(Number((h = l.hoveredData) == null ? void 0 : h.price).toLocaleString("fr-FR")) + " ", 1),
|
|
374
|
-
|
|
374
|
+
createElementVNode("span", _hoisted_14$1, toDisplayString(unref(tr)("$")), 1)
|
|
375
375
|
])
|
|
376
376
|
])
|
|
377
377
|
])),
|
|
378
|
-
createElementVNode("div",
|
|
378
|
+
createElementVNode("div", _hoisted_15$1, [
|
|
379
379
|
createTextVNode(toDisplayString((p = Number((u = (m = l.hoveredData) == null ? void 0 : m.type) == null ? void 0 : u.area_m2)) == null ? void 0 : p.toLocaleString(
|
|
380
380
|
"fr-FR"
|
|
381
381
|
)) + " M ", 1),
|
|
382
|
-
i[
|
|
382
|
+
i[0] || (i[0] = createElementVNode("sup", { class: "ire-right-[2px] !ire-text-xs ire-text-gray-200" }, " 2 ", -1))
|
|
383
383
|
])
|
|
384
384
|
])) : createCommentVNode("", !0)
|
|
385
385
|
])
|
|
@@ -575,8 +575,8 @@ function createOptionsStore(t, o, r, e) {
|
|
|
575
575
|
let k;
|
|
576
576
|
function w() {
|
|
577
577
|
c || (r.state.value[t] = n ? n() : {});
|
|
578
|
-
const
|
|
579
|
-
return assign(
|
|
578
|
+
const E = toRefs(r.state.value[t]);
|
|
579
|
+
return assign(E, l, Object.keys(i || {}).reduce(($, h) => ($[h] = markRaw(computed$1(() => {
|
|
580
580
|
setActivePinia(r);
|
|
581
581
|
const m = r._s.get(t);
|
|
582
582
|
return i[h].call(m, m);
|
|
@@ -587,13 +587,13 @@ function createOptionsStore(t, o, r, e) {
|
|
|
587
587
|
function createSetupStore(t, o, r = {}, e, n, l) {
|
|
588
588
|
let i;
|
|
589
589
|
const c = assign({ actions: {} }, r), k = { deep: !0 };
|
|
590
|
-
let w,
|
|
590
|
+
let w, E, $ = [], h = [], m;
|
|
591
591
|
const u = e.state.value[t];
|
|
592
592
|
!l && !u && (e.state.value[t] = {}), ref({});
|
|
593
593
|
let p;
|
|
594
594
|
function a(f) {
|
|
595
595
|
let g;
|
|
596
|
-
w =
|
|
596
|
+
w = E = !1, typeof f == "function" ? (f(e.state.value[t]), g = {
|
|
597
597
|
type: MutationType.patchFunction,
|
|
598
598
|
storeId: t,
|
|
599
599
|
events: m
|
|
@@ -603,15 +603,15 @@ function createSetupStore(t, o, r = {}, e, n, l) {
|
|
|
603
603
|
storeId: t,
|
|
604
604
|
events: m
|
|
605
605
|
});
|
|
606
|
-
const
|
|
606
|
+
const b = p = Symbol();
|
|
607
607
|
nextTick().then(() => {
|
|
608
|
-
p ===
|
|
609
|
-
}),
|
|
608
|
+
p === b && (w = !0);
|
|
609
|
+
}), E = !0, triggerSubscriptions($, g, e.state.value[t]);
|
|
610
610
|
}
|
|
611
611
|
const s = l ? function() {
|
|
612
|
-
const { state: g } = r,
|
|
612
|
+
const { state: g } = r, b = g ? g() : {};
|
|
613
613
|
this.$patch((V) => {
|
|
614
|
-
assign(V,
|
|
614
|
+
assign(V, b);
|
|
615
615
|
});
|
|
616
616
|
} : (
|
|
617
617
|
/* istanbul ignore next */
|
|
@@ -623,18 +623,18 @@ function createSetupStore(t, o, r = {}, e, n, l) {
|
|
|
623
623
|
const v = (f, g = "") => {
|
|
624
624
|
if (ACTION_MARKER in f)
|
|
625
625
|
return f[ACTION_NAME] = g, f;
|
|
626
|
-
const
|
|
626
|
+
const b = function() {
|
|
627
627
|
setActivePinia(e);
|
|
628
|
-
const V = Array.from(arguments), C = [],
|
|
629
|
-
function M(
|
|
630
|
-
C.push(
|
|
628
|
+
const V = Array.from(arguments), C = [], B = [];
|
|
629
|
+
function M(D) {
|
|
630
|
+
C.push(D);
|
|
631
631
|
}
|
|
632
|
-
function T(
|
|
633
|
-
|
|
632
|
+
function T(D) {
|
|
633
|
+
B.push(D);
|
|
634
634
|
}
|
|
635
635
|
triggerSubscriptions(h, {
|
|
636
636
|
args: V,
|
|
637
|
-
name:
|
|
637
|
+
name: b[ACTION_NAME],
|
|
638
638
|
store: _,
|
|
639
639
|
after: M,
|
|
640
640
|
onError: T
|
|
@@ -642,13 +642,13 @@ function createSetupStore(t, o, r = {}, e, n, l) {
|
|
|
642
642
|
let N;
|
|
643
643
|
try {
|
|
644
644
|
N = f.apply(this && this.$id === t ? this : _, V);
|
|
645
|
-
} catch (
|
|
646
|
-
throw triggerSubscriptions(
|
|
645
|
+
} catch (D) {
|
|
646
|
+
throw triggerSubscriptions(B, D), D;
|
|
647
647
|
}
|
|
648
|
-
return N instanceof Promise ? N.then((
|
|
648
|
+
return N instanceof Promise ? N.then((D) => (triggerSubscriptions(C, D), D)).catch((D) => (triggerSubscriptions(B, D), Promise.reject(D))) : (triggerSubscriptions(C, N), N);
|
|
649
649
|
};
|
|
650
|
-
return
|
|
651
|
-
},
|
|
650
|
+
return b[ACTION_MARKER] = !0, b[ACTION_NAME] = g, b;
|
|
651
|
+
}, y = {
|
|
652
652
|
_p: e,
|
|
653
653
|
// _s: scope,
|
|
654
654
|
$id: t,
|
|
@@ -656,29 +656,29 @@ function createSetupStore(t, o, r = {}, e, n, l) {
|
|
|
656
656
|
$patch: a,
|
|
657
657
|
$reset: s,
|
|
658
658
|
$subscribe(f, g = {}) {
|
|
659
|
-
const
|
|
660
|
-
(g.flush === "sync" ?
|
|
659
|
+
const b = addSubscription($, f, g.detached, () => V()), V = i.run(() => watch(() => e.state.value[t], (C) => {
|
|
660
|
+
(g.flush === "sync" ? E : w) && f({
|
|
661
661
|
storeId: t,
|
|
662
662
|
type: MutationType.direct,
|
|
663
663
|
events: m
|
|
664
664
|
}, C);
|
|
665
665
|
}, assign({}, k, g)));
|
|
666
|
-
return
|
|
666
|
+
return b;
|
|
667
667
|
},
|
|
668
668
|
$dispose: d
|
|
669
|
-
}, _ = reactive(
|
|
669
|
+
}, _ = reactive(y);
|
|
670
670
|
e._s.set(t, _);
|
|
671
|
-
const
|
|
672
|
-
for (const f in
|
|
673
|
-
const g =
|
|
671
|
+
const S = (e._a && e._a.runWithContext || fallbackRunWithContext)(() => e._e.run(() => (i = effectScope()).run(() => o({ action: v }))));
|
|
672
|
+
for (const f in S) {
|
|
673
|
+
const g = S[f];
|
|
674
674
|
if (isRef(g) && !isComputed(g) || isReactive(g))
|
|
675
675
|
l || (u && shouldHydrate(g) && (isRef(g) ? g.value = u[f] : mergeReactiveObjects(g, u[f])), e.state.value[t][f] = g);
|
|
676
676
|
else if (typeof g == "function") {
|
|
677
|
-
const
|
|
678
|
-
|
|
677
|
+
const b = v(g, f);
|
|
678
|
+
S[f] = b, c.actions[f] = g;
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
return assign(_,
|
|
681
|
+
return assign(_, S), assign(toRaw(_), S), Object.defineProperty(_, "$state", {
|
|
682
682
|
get: () => e.state.value[t],
|
|
683
683
|
set: (f) => {
|
|
684
684
|
a((g) => {
|
|
@@ -692,7 +692,7 @@ function createSetupStore(t, o, r = {}, e, n, l) {
|
|
|
692
692
|
pinia: e,
|
|
693
693
|
options: c
|
|
694
694
|
})));
|
|
695
|
-
}), u && l && r.hydrate && r.hydrate(_.$state, u), w = !0,
|
|
695
|
+
}), u && l && r.hydrate && r.hydrate(_.$state, u), w = !0, E = !0, _;
|
|
696
696
|
}
|
|
697
697
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
698
698
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -732,7 +732,7 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
732
732
|
}), w = ($) => {
|
|
733
733
|
const h = $.target;
|
|
734
734
|
h && (l.value = h);
|
|
735
|
-
},
|
|
735
|
+
}, E = ($) => {
|
|
736
736
|
var m, u, p;
|
|
737
737
|
const h = $.target;
|
|
738
738
|
(h == null ? void 0 : h.nodeName) === "path" && (((m = i.value) == null ? void 0 : m.conf) === "sold" || ((u = i.value) == null ? void 0 : u.conf) === "reserved" || r("changeComponent", ((p = c.value) == null ? void 0 : p.type) || "", i == null ? void 0 : i.value));
|
|
@@ -745,31 +745,31 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
745
745
|
n.hoverdSvg = $;
|
|
746
746
|
const h = $.parentElement;
|
|
747
747
|
if (h && (h == null ? void 0 : h.nodeName) === "g") {
|
|
748
|
-
const
|
|
749
|
-
if (!
|
|
748
|
+
const y = h == null ? void 0 : h.getAttribute("id");
|
|
749
|
+
if (!y || (c.value = ((m = e.project) == null ? void 0 : m.polygon_data.find((x) => (x == null ? void 0 : x.key) === y)) || null, !c.value)) return;
|
|
750
750
|
const _ = (u = c.value) == null ? void 0 : u.id;
|
|
751
751
|
switch ((p = c.value) == null ? void 0 : p.type) {
|
|
752
752
|
case "floor":
|
|
753
753
|
const x = (a = e.floors) == null ? void 0 : a.find(
|
|
754
|
-
(
|
|
754
|
+
(b) => b.id === _
|
|
755
755
|
);
|
|
756
756
|
i.value = x;
|
|
757
757
|
break;
|
|
758
758
|
case "block":
|
|
759
|
-
const
|
|
760
|
-
(
|
|
759
|
+
const S = (s = e.blocks) == null ? void 0 : s.find(
|
|
760
|
+
(b) => (b == null ? void 0 : b.id) === _
|
|
761
761
|
);
|
|
762
|
-
i.value =
|
|
762
|
+
i.value = S;
|
|
763
763
|
break;
|
|
764
764
|
case "flat":
|
|
765
765
|
const f = (d = e.flats) == null ? void 0 : d.find(
|
|
766
|
-
(
|
|
766
|
+
(b) => (b == null ? void 0 : b.id) === _
|
|
767
767
|
);
|
|
768
768
|
i.value = f;
|
|
769
769
|
break;
|
|
770
770
|
case "tooltip":
|
|
771
771
|
const g = (v = e.actions) == null ? void 0 : v.find(
|
|
772
|
-
(
|
|
772
|
+
(b) => (b == null ? void 0 : b.id) === _
|
|
773
773
|
);
|
|
774
774
|
i.value = g;
|
|
775
775
|
break;
|
|
@@ -806,7 +806,7 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
806
806
|
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((v = i.value) != null && v.conf)
|
|
807
807
|
}
|
|
808
808
|
]]),
|
|
809
|
-
onClick:
|
|
809
|
+
onClick: E
|
|
810
810
|
}, null, 10, _hoisted_3$6))
|
|
811
811
|
])
|
|
812
812
|
];
|
|
@@ -901,7 +901,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
901
901
|
},
|
|
902
902
|
emits: ["changeComponent"],
|
|
903
903
|
setup(t, { emit: o }) {
|
|
904
|
-
const r = o, e = t, n = useGlobalStore(), l = ref(), i = ref(), c = ref(), k = ref(null), w = ref(),
|
|
904
|
+
const r = o, e = t, n = useGlobalStore(), l = ref(), i = ref(), c = ref(), k = ref(null), w = ref(), E = ref(), $ = computed$1(() => {
|
|
905
905
|
var s;
|
|
906
906
|
if ((s = e.floor) != null && s.svg)
|
|
907
907
|
return e.floor.svg;
|
|
@@ -915,7 +915,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
915
915
|
);
|
|
916
916
|
}
|
|
917
917
|
).map((s) => {
|
|
918
|
-
var v,
|
|
918
|
+
var v, y;
|
|
919
919
|
const d = (v = e.blocks) == null ? void 0 : v.find(
|
|
920
920
|
(_) => {
|
|
921
921
|
var x;
|
|
@@ -923,63 +923,63 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
923
923
|
}
|
|
924
924
|
);
|
|
925
925
|
return {
|
|
926
|
-
title: ((
|
|
926
|
+
title: ((y = s == null ? void 0 : s.floor_number) == null ? void 0 : y.toString()) + " Floor" + (d != null && d.id ? ` - ${d == null ? void 0 : d.title}` : "") + (s != null && s.conf ? " " + s.conf : ""),
|
|
927
927
|
value: s == null ? void 0 : s.id
|
|
928
928
|
};
|
|
929
929
|
}).sort((s, d) => +(s == null ? void 0 : s.title) - +(d == null ? void 0 : d.title)) || []), m = (s) => {
|
|
930
930
|
const d = s.target;
|
|
931
931
|
d && (i.value = d);
|
|
932
932
|
}, u = (s) => {
|
|
933
|
-
var v,
|
|
933
|
+
var v, y, _;
|
|
934
934
|
const d = s.target;
|
|
935
|
-
(d == null ? void 0 : d.nodeName) === "path" && (k.value && "conf" in k.value && (((v = k.value) == null ? void 0 : v.conf) === "sold" || ((
|
|
935
|
+
(d == null ? void 0 : d.nodeName) === "path" && (k.value && "conf" in k.value && (((v = k.value) == null ? void 0 : v.conf) === "sold" || ((y = k.value) == null ? void 0 : y.conf) === "reserved") || r("changeComponent", ((_ = c.value) == null ? void 0 : _.type) || "", k.value));
|
|
936
936
|
}, p = () => {
|
|
937
937
|
var s;
|
|
938
938
|
l.value && ((s = l.value) == null ? void 0 : s.querySelectorAll("g")).forEach((v) => {
|
|
939
|
-
var x,
|
|
940
|
-
const
|
|
941
|
-
(C) => (C == null ? void 0 : C.key) ===
|
|
939
|
+
var x, S, f, g, b, V;
|
|
940
|
+
const y = v == null ? void 0 : v.getAttribute("id"), _ = (S = (x = e.floor) == null ? void 0 : x.polygon_data) == null ? void 0 : S.find(
|
|
941
|
+
(C) => (C == null ? void 0 : C.key) === y
|
|
942
942
|
);
|
|
943
943
|
if (e.flats)
|
|
944
944
|
if ((f = e.floor) != null && f.conf)
|
|
945
945
|
v.setAttribute("conf", ((g = e.floor) == null ? void 0 : g.conf) || "");
|
|
946
946
|
else {
|
|
947
|
-
const C = (
|
|
948
|
-
(
|
|
947
|
+
const C = (b = e.flats) == null ? void 0 : b.find(
|
|
948
|
+
(B) => (B == null ? void 0 : B.id) === (_ == null ? void 0 : _.id)
|
|
949
949
|
);
|
|
950
950
|
v == null || v.setAttribute("conf", ((V = C == null ? void 0 : C.conf) == null ? void 0 : V.toString()) || "");
|
|
951
951
|
}
|
|
952
952
|
});
|
|
953
953
|
}, a = () => {
|
|
954
954
|
var s;
|
|
955
|
-
(s = e.floor) != null && s.block_id ? r("changeComponent", "block",
|
|
955
|
+
(s = e.floor) != null && s.block_id ? r("changeComponent", "block", E.value) : r("changeComponent", "project", null);
|
|
956
956
|
};
|
|
957
957
|
return watch(
|
|
958
958
|
() => i.value,
|
|
959
959
|
(s) => {
|
|
960
|
-
var v,
|
|
960
|
+
var v, y, _, x, S, f;
|
|
961
961
|
if (!s) return;
|
|
962
962
|
n.hoverdSvg = s;
|
|
963
963
|
const d = s == null ? void 0 : s.parentElement;
|
|
964
964
|
if (d && (d == null ? void 0 : d.nodeName) === "g") {
|
|
965
965
|
const g = d.getAttribute("id");
|
|
966
|
-
if (!g || (c.value = ((
|
|
966
|
+
if (!g || (c.value = ((y = (v = e.floor) == null ? void 0 : v.polygon_data) == null ? void 0 : y.find((b) => (b == null ? void 0 : b.key) === g)) || null, !c.value)) return;
|
|
967
967
|
if (((_ = c.value) == null ? void 0 : _.type) === "flat") {
|
|
968
|
-
const
|
|
968
|
+
const b = (x = e.flats) == null ? void 0 : x.find(
|
|
969
969
|
(V) => {
|
|
970
970
|
var C;
|
|
971
971
|
return (V == null ? void 0 : V.id) === ((C = c.value) == null ? void 0 : C.id);
|
|
972
972
|
}
|
|
973
973
|
);
|
|
974
|
-
k.value =
|
|
975
|
-
} else if (((
|
|
976
|
-
const
|
|
974
|
+
k.value = b ?? null;
|
|
975
|
+
} else if (((S = c.value) == null ? void 0 : S.type) === "tooltip") {
|
|
976
|
+
const b = (f = e.actions) == null ? void 0 : f.find(
|
|
977
977
|
(V) => {
|
|
978
978
|
var C;
|
|
979
979
|
return (V == null ? void 0 : V.id) === ((C = c.value) == null ? void 0 : C.id);
|
|
980
980
|
}
|
|
981
981
|
);
|
|
982
|
-
k.value =
|
|
982
|
+
k.value = b ?? null;
|
|
983
983
|
} else
|
|
984
984
|
k.value = null;
|
|
985
985
|
} else
|
|
@@ -998,15 +998,15 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
998
998
|
}
|
|
999
999
|
), onMounted(() => {
|
|
1000
1000
|
var s, d, v;
|
|
1001
|
-
|
|
1002
|
-
(
|
|
1001
|
+
E.value = (s = e.blocks) == null ? void 0 : s.find(
|
|
1002
|
+
(y) => {
|
|
1003
1003
|
var _, x;
|
|
1004
|
-
return (
|
|
1004
|
+
return (y == null ? void 0 : y.id) === ((x = (_ = e.floor) == null ? void 0 : _.block_id) == null ? void 0 : x.toString());
|
|
1005
1005
|
}
|
|
1006
1006
|
), w.value = (v = (d = h.value) == null ? void 0 : d.find(
|
|
1007
|
-
(
|
|
1007
|
+
(y) => {
|
|
1008
1008
|
var _;
|
|
1009
|
-
return (
|
|
1009
|
+
return (y == null ? void 0 : y.value) == ((_ = e.floor) == null ? void 0 : _.id);
|
|
1010
1010
|
}
|
|
1011
1011
|
)) == null ? void 0 : v.value, p();
|
|
1012
1012
|
}), (s, d) => {
|
|
@@ -1021,17 +1021,17 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
1021
1021
|
createElementVNode("div", _hoisted_1$8, [
|
|
1022
1022
|
createVNode(_sfc_main$e, {
|
|
1023
1023
|
modelValue: w.value,
|
|
1024
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1024
|
+
"onUpdate:modelValue": d[0] || (d[0] = (y) => w.value = y),
|
|
1025
1025
|
data: h.value
|
|
1026
1026
|
}, null, 8, ["modelValue", "data"])
|
|
1027
1027
|
])
|
|
1028
1028
|
]),
|
|
1029
1029
|
default: withCtx(() => {
|
|
1030
|
-
var
|
|
1030
|
+
var y, _, x;
|
|
1031
1031
|
return [
|
|
1032
1032
|
createElementVNode("div", _hoisted_2$4, [
|
|
1033
1033
|
createElementVNode("img", {
|
|
1034
|
-
src: ((x = (_ = (
|
|
1034
|
+
src: ((x = (_ = (y = s.floor) == null ? void 0 : y.floor_image) == null ? void 0 : _[0]) == null ? void 0 : x.url) || "",
|
|
1035
1035
|
alt: "",
|
|
1036
1036
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1037
1037
|
}, null, 8, _hoisted_3$4),
|
|
@@ -1124,8 +1124,8 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1124
1124
|
emits: ["changeComponent"],
|
|
1125
1125
|
setup(t, { emit: o }) {
|
|
1126
1126
|
const r = t, e = ref(!1), n = ref(0), l = computed$1(() => {
|
|
1127
|
-
var c, k, w,
|
|
1128
|
-
const i = e.value ? (w = (k = (c = r.flat) == null ? void 0 : c.type) == null ? void 0 : k.image_2d) == null ? void 0 : w.length : (h = ($ = (
|
|
1127
|
+
var c, k, w, E, $, h;
|
|
1128
|
+
const i = e.value ? (w = (k = (c = r.flat) == null ? void 0 : c.type) == null ? void 0 : k.image_2d) == null ? void 0 : w.length : (h = ($ = (E = r.flat) == null ? void 0 : E.type) == null ? void 0 : $.image_3d) == null ? void 0 : h.length;
|
|
1129
1129
|
return ["I", "II", "III"].slice(0, i);
|
|
1130
1130
|
});
|
|
1131
1131
|
return watch(
|
|
@@ -1139,7 +1139,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1139
1139
|
}), (i, c) => (openBlock(), createElementBlock("div", null, [
|
|
1140
1140
|
createVNode(_sfc_main$g, { "hoverd-data": null }, {
|
|
1141
1141
|
default: withCtx(() => {
|
|
1142
|
-
var k, w,
|
|
1142
|
+
var k, w, E, $, h, m, u, p, a, s, d, v, y, _, x, S, f, g, b, V, C, B, M, T, N, D, P, O, F, I, A;
|
|
1143
1143
|
return [
|
|
1144
1144
|
createElementVNode("div", _hoisted_1$5, [
|
|
1145
1145
|
createElementVNode("div", _hoisted_2$3, [
|
|
@@ -1165,7 +1165,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1165
1165
|
}),
|
|
1166
1166
|
createElementVNode("div", _hoisted_5, [
|
|
1167
1167
|
createElementVNode("div", _hoisted_6, [
|
|
1168
|
-
($ = (
|
|
1168
|
+
($ = (E = (w = (k = i.flat) == null ? void 0 : k.type) == null ? void 0 : w.image_3d) == null ? void 0 : E[0]) != null && $.url ? (openBlock(), createElementBlock("div", {
|
|
1169
1169
|
key: 0,
|
|
1170
1170
|
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": !e.value }]),
|
|
1171
1171
|
onClick: c[0] || (c[0] = (R) => e.value = !1)
|
|
@@ -1214,23 +1214,23 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1214
1214
|
createElementVNode("div", _hoisted_11, toDisplayString((s = i.flat) == null ? void 0 : s.flat_number), 1),
|
|
1215
1215
|
createElementVNode("div", _hoisted_12, toDisplayString(unref(tr)("apartment")), 1)
|
|
1216
1216
|
]),
|
|
1217
|
-
(v = (d = i.flat) == null ? void 0 : d.type) != null && v.title || (_ = (
|
|
1218
|
-
createElementVNode("div", _hoisted_14, toDisplayString((
|
|
1217
|
+
(v = (d = i.flat) == null ? void 0 : d.type) != null && v.title || (_ = (y = i.flat) == null ? void 0 : y.type) != null && _.teaser ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
1218
|
+
createElementVNode("div", _hoisted_14, toDisplayString((S = (x = i.flat) == null ? void 0 : x.type) == null ? void 0 : S.title), 1),
|
|
1219
1219
|
createElementVNode("div", _hoisted_15, toDisplayString((g = (f = i.flat) == null ? void 0 : f.type) == null ? void 0 : g.teaser), 1)
|
|
1220
1220
|
])) : createCommentVNode("", !0),
|
|
1221
1221
|
createElementVNode("div", _hoisted_16, [
|
|
1222
|
-
(
|
|
1222
|
+
(b = i.flat) != null && b.floor_number ? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
1223
1223
|
createElementVNode("div", _hoisted_18, toDisplayString((V = i.flat) == null ? void 0 : V.floor_number), 1),
|
|
1224
1224
|
createElementVNode("div", _hoisted_19, toDisplayString(unref(tr)("floor")), 1)
|
|
1225
1225
|
])) : createCommentVNode("", !0),
|
|
1226
|
-
(
|
|
1226
|
+
(B = (C = i.flat) == null ? void 0 : C.type) != null && B.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
1227
1227
|
createElementVNode("div", _hoisted_21, toDisplayString((M = i.flat) == null ? void 0 : M.type.rooms_count), 1),
|
|
1228
1228
|
createElementVNode("div", _hoisted_22, toDisplayString(unref(tr)("room")), 1)
|
|
1229
1229
|
])) : createCommentVNode("", !0)
|
|
1230
1230
|
]),
|
|
1231
1231
|
(N = (T = i.flat) == null ? void 0 : T.type) != null && N.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
1232
1232
|
createElementVNode("div", _hoisted_24, [
|
|
1233
|
-
createTextVNode(toDisplayString(Number((
|
|
1233
|
+
createTextVNode(toDisplayString(Number((D = i.flat) == null ? void 0 : D.type.area_m2).toLocaleString("fr-FR")) + " ", 1),
|
|
1234
1234
|
c[2] || (c[2] = createElementVNode("span", { class: "ire-font-light" }, [
|
|
1235
1235
|
createTextVNode(" M "),
|
|
1236
1236
|
createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
|
|
@@ -1244,11 +1244,11 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1244
1244
|
createElementVNode("div", _hoisted_29, toDisplayString(Number((I = i.flat) == null ? void 0 : I.price).toLocaleString("fr-FR")), 1),
|
|
1245
1245
|
createElementVNode("div", _hoisted_30, [
|
|
1246
1246
|
createTextVNode(toDisplayString(Number((A = i.flat) == null ? void 0 : A.offer_price).toLocaleString("fr-FR")) + " ", 1),
|
|
1247
|
-
|
|
1247
|
+
createElementVNode("span", null, toDisplayString(unref(tr)("$")), 1)
|
|
1248
1248
|
])
|
|
1249
1249
|
])) : (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
1250
1250
|
createTextVNode(toDisplayString(Number((F = i.flat) == null ? void 0 : F.price).toLocaleString("fr-FR")) + " ", 1),
|
|
1251
|
-
|
|
1251
|
+
createElementVNode("span", null, toDisplayString(unref(tr)("$")), 1)
|
|
1252
1252
|
]))
|
|
1253
1253
|
]),
|
|
1254
1254
|
createElementVNode("div", _hoisted_31, toDisplayString(unref(tr)("price")), 1)
|
|
@@ -1321,13 +1321,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1321
1321
|
},
|
|
1322
1322
|
setup(t) {
|
|
1323
1323
|
return (o, r) => {
|
|
1324
|
-
var e, n, l, i, c, k, w,
|
|
1324
|
+
var e, n, l, i, c, k, w, E, $, h, m, u;
|
|
1325
1325
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
1326
1326
|
createElementVNode("p", _hoisted_2$1, toDisplayString((n = (e = o.modalData) == null ? void 0 : e.modalObject) == null ? void 0 : n.title), 1),
|
|
1327
1327
|
createVNode(_sfc_main$5, {
|
|
1328
1328
|
editor: (i = (l = o.modalData) == null ? void 0 : l.modalObject) == null ? void 0 : i.description
|
|
1329
1329
|
}, null, 8, ["editor"]),
|
|
1330
|
-
(
|
|
1330
|
+
(E = (w = (k = (c = o.modalData) == null ? void 0 : c.modalObject) == null ? void 0 : k.modalImage) == null ? void 0 : w[0]) != null && E.url ? (openBlock(), createElementBlock("img", {
|
|
1331
1331
|
key: 0,
|
|
1332
1332
|
src: (u = (m = (h = ($ = o.modalData) == null ? void 0 : $.modalObject) == null ? void 0 : h.modalImage) == null ? void 0 : m[0]) == null ? void 0 : u.url,
|
|
1333
1333
|
alt: "",
|
|
@@ -1350,7 +1350,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1350
1350
|
var h, m;
|
|
1351
1351
|
if ((h = e.block) != null && h.svg)
|
|
1352
1352
|
return (m = e.block) == null ? void 0 : m.svg;
|
|
1353
|
-
}),
|
|
1353
|
+
}), E = (h) => {
|
|
1354
1354
|
const m = h.target;
|
|
1355
1355
|
m && (i.value = m);
|
|
1356
1356
|
}, $ = (h) => {
|
|
@@ -1365,37 +1365,37 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1365
1365
|
return watch(
|
|
1366
1366
|
() => i.value,
|
|
1367
1367
|
(h) => {
|
|
1368
|
-
var u, p, a, s, d, v,
|
|
1368
|
+
var u, p, a, s, d, v, y, _;
|
|
1369
1369
|
if (!h) return;
|
|
1370
1370
|
n.hoverdSvg = h;
|
|
1371
1371
|
const m = h == null ? void 0 : h.parentElement;
|
|
1372
1372
|
if (m && (m == null ? void 0 : m.nodeName) === "g") {
|
|
1373
1373
|
const x = m == null ? void 0 : m.getAttribute("id");
|
|
1374
|
-
if (!x || (c.value = ((p = (u = e.block) == null ? void 0 : u.polygon_data) == null ? void 0 : p.find((
|
|
1374
|
+
if (!x || (c.value = ((p = (u = e.block) == null ? void 0 : u.polygon_data) == null ? void 0 : p.find((S) => (S == null ? void 0 : S.key) === x)) || null, !c.value)) return;
|
|
1375
1375
|
if (((a = c.value) == null ? void 0 : a.type) === "floor") {
|
|
1376
|
-
const
|
|
1376
|
+
const S = (s = e.floors) == null ? void 0 : s.find(
|
|
1377
1377
|
(f) => {
|
|
1378
1378
|
var g;
|
|
1379
1379
|
return (f == null ? void 0 : f.id) === ((g = c.value) == null ? void 0 : g.id);
|
|
1380
1380
|
}
|
|
1381
1381
|
);
|
|
1382
|
-
k.value =
|
|
1382
|
+
k.value = S;
|
|
1383
1383
|
} else if (((d = c.value) == null ? void 0 : d.type) === "flat") {
|
|
1384
|
-
const
|
|
1384
|
+
const S = (v = e.flats) == null ? void 0 : v.find(
|
|
1385
1385
|
(f) => {
|
|
1386
1386
|
var g;
|
|
1387
1387
|
return (f == null ? void 0 : f.id) === ((g = c.value) == null ? void 0 : g.id);
|
|
1388
1388
|
}
|
|
1389
1389
|
);
|
|
1390
|
-
k.value =
|
|
1391
|
-
} else if (((
|
|
1392
|
-
const
|
|
1390
|
+
k.value = S;
|
|
1391
|
+
} else if (((y = c.value) == null ? void 0 : y.type) === "tooltip") {
|
|
1392
|
+
const S = (_ = e.actions) == null ? void 0 : _.find(
|
|
1393
1393
|
(f) => {
|
|
1394
1394
|
var g;
|
|
1395
1395
|
return (f == null ? void 0 : f.id) === ((g = c.value) == null ? void 0 : g.id);
|
|
1396
1396
|
}
|
|
1397
1397
|
);
|
|
1398
|
-
k.value =
|
|
1398
|
+
k.value = S;
|
|
1399
1399
|
} else
|
|
1400
1400
|
k.value = null;
|
|
1401
1401
|
} else
|
|
@@ -1406,7 +1406,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1406
1406
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
1407
1407
|
hoverdData: k.value,
|
|
1408
1408
|
type: (u = c.value) == null ? void 0 : u.type,
|
|
1409
|
-
onMouseover:
|
|
1409
|
+
onMouseover: E
|
|
1410
1410
|
}, {
|
|
1411
1411
|
header: withCtx(() => {
|
|
1412
1412
|
var p;
|
|
@@ -1418,7 +1418,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1418
1418
|
];
|
|
1419
1419
|
}),
|
|
1420
1420
|
default: withCtx(() => {
|
|
1421
|
-
var p, a, s, d, v,
|
|
1421
|
+
var p, a, s, d, v, y;
|
|
1422
1422
|
return [
|
|
1423
1423
|
createElementVNode("div", _hoisted_2, [
|
|
1424
1424
|
createElementVNode("img", {
|
|
@@ -1435,7 +1435,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1435
1435
|
{
|
|
1436
1436
|
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((d = k.value) == null ? void 0 : d.conf) === "reserved",
|
|
1437
1437
|
"hover:[&_path]:ire-fill-[var(--sold-color)]": ((v = k.value) == null ? void 0 : v.conf) === "sold",
|
|
1438
|
-
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((
|
|
1438
|
+
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((y = k.value) != null && y.conf)
|
|
1439
1439
|
}
|
|
1440
1440
|
]]),
|
|
1441
1441
|
onClick: $
|
|
@@ -1459,12 +1459,12 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1459
1459
|
const {
|
|
1460
1460
|
bottom: k,
|
|
1461
1461
|
height: w,
|
|
1462
|
-
left:
|
|
1462
|
+
left: E,
|
|
1463
1463
|
right: $,
|
|
1464
1464
|
top: h,
|
|
1465
1465
|
width: m
|
|
1466
|
-
} = n.value.getBoundingClientRect(), { bottom: u, left: p } = c.getBoundingClientRect(), { height: a, width: s } = i.getBoundingClientRect(), d = $ - m / 2, v = k - w / 2,
|
|
1467
|
-
r.value = l.clientX -
|
|
1466
|
+
} = n.value.getBoundingClientRect(), { bottom: u, left: p } = c.getBoundingClientRect(), { height: a, width: s } = i.getBoundingClientRect(), d = $ - m / 2, v = k - w / 2, y = p > d, _ = u > v;
|
|
1467
|
+
r.value = l.clientX - E - (y ? s : -20), e.value = l.clientY - h - (_ ? a : -20);
|
|
1468
1468
|
}), provide("mouseX", r), provide("mouseY", e), (l, i) => (openBlock(), createElementBlock("div", {
|
|
1469
1469
|
ref_key: "canvasRef",
|
|
1470
1470
|
ref: n
|
|
@@ -1478,7 +1478,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1478
1478
|
shortcodeDataProps: {}
|
|
1479
1479
|
},
|
|
1480
1480
|
setup(__props) {
|
|
1481
|
-
var t, o, r, e, n, l, i, c, k, w,
|
|
1481
|
+
var t, o, r, e, n, l, i, c, k, w, E, $, h, m;
|
|
1482
1482
|
const props = __props, getMeta = (u) => props.shortcodeDataProps.meta.find(
|
|
1483
1483
|
(p) => p.meta_key === u
|
|
1484
1484
|
), constants = ref({
|
|
@@ -1493,7 +1493,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1493
1493
|
path: (c = constants.value) == null ? void 0 : c.PREVIEW_PATH_COLOR,
|
|
1494
1494
|
path_hover: (k = constants.value) == null ? void 0 : k.PREVIEW_PATH_HOVER_COLOR,
|
|
1495
1495
|
reserved: (w = constants.value) == null ? void 0 : w.PREVIEW_RESERVED_COLOR,
|
|
1496
|
-
sold: (
|
|
1496
|
+
sold: (E = constants.value) == null ? void 0 : E.PREVIEW_SOLD_COLOR,
|
|
1497
1497
|
stroke_color: ($ = constants.value) == null ? void 0 : $.PREVIEW_STROKE_COLOR,
|
|
1498
1498
|
stroke_width: (h = constants.value) == null ? void 0 : h.PREVIEW_STROKE_WIDTH,
|
|
1499
1499
|
border_radius: (m = constants.value) == null ? void 0 : m.PREVIEW_BORDER_RADIUS
|
|
@@ -1515,8 +1515,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1515
1515
|
var u, p;
|
|
1516
1516
|
if (shortcodeData.value)
|
|
1517
1517
|
return (u = shortcodeData.value.floors) == null || u.forEach((a) => {
|
|
1518
|
-
var v,
|
|
1519
|
-
const s = (
|
|
1518
|
+
var v, y;
|
|
1519
|
+
const s = (y = (v = shortcodeData.value) == null ? void 0 : v.flats) == null ? void 0 : y.filter((_) => {
|
|
1520
1520
|
var x;
|
|
1521
1521
|
return (_ == null ? void 0 : _.floor_number) !== ((x = a == null ? void 0 : a.floor_number) == null ? void 0 : x.toString()) ? !1 : a != null && a.polygon_data ? Object == null ? void 0 : Object.values(a == null ? void 0 : a.polygon_data).some(
|
|
1522
1522
|
(f) => {
|
|
@@ -1528,7 +1528,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1528
1528
|
a.flats = s;
|
|
1529
1529
|
const { conf: d } = a || {};
|
|
1530
1530
|
if (s != null && s.length && !d) {
|
|
1531
|
-
const _ = s == null ? void 0 : s.every((
|
|
1531
|
+
const _ = s == null ? void 0 : s.every((S) => (S == null ? void 0 : S.conf) === "reserved"), x = s == null ? void 0 : s.every((S) => (S == null ? void 0 : S.conf) === "sold");
|
|
1532
1532
|
_ ? a.conf = "reserved" : x && (a.conf = "sold");
|
|
1533
1533
|
}
|
|
1534
1534
|
}), (p = shortcodeData.value) == null ? void 0 : p.floors;
|