ire-preview 2.3.8 β 2.3.9
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 +331 -331
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { openBlock, createElementBlock, createElementVNode, inject, defineComponent, computed as computed$1, createVNode, Transition, withCtx, toDisplayString, unref, createCommentVNode, Fragment, createTextVNode, createBlock, normalizeClass, normalizeStyle, ref, watch, renderSlot, effectScope, markRaw, hasInjectionContext, reactive, isRef, isReactive, toRaw, getCurrentScope, onScopeDispose, nextTick, toRefs, onMounted, onUnmounted, mergeModels, useModel, withDirectives, renderList, vModelSelect, createStaticVNode, provide, Teleport, createApp } from "vue";
|
|
2
2
|
const _export_sfc = (e, o) => {
|
|
3
3
|
const r = e.__vccOpts || e;
|
|
4
|
-
for (const [t,
|
|
5
|
-
r[t] =
|
|
4
|
+
for (const [t, s] of o)
|
|
5
|
+
r[t] = s;
|
|
6
6
|
return r;
|
|
7
7
|
}, _sfc_main$k = {};
|
|
8
8
|
function _sfc_render$4(e, o) {
|
|
@@ -66,8 +66,8 @@ function prepareDeps(e) {
|
|
|
66
66
|
function cleanupDeps(e) {
|
|
67
67
|
let o, r = e.depsTail, t = r;
|
|
68
68
|
for (; t; ) {
|
|
69
|
-
const
|
|
70
|
-
t.version === -1 ? (t === r && (r =
|
|
69
|
+
const s = t.prevDep;
|
|
70
|
+
t.version === -1 ? (t === r && (r = s), removeSub(t), removeDep(t)) : o = t, t.dep.activeLink = t.prevActiveLink, t.prevActiveLink = void 0, t = s;
|
|
71
71
|
}
|
|
72
72
|
e.deps = o, e.depsTail = r;
|
|
73
73
|
}
|
|
@@ -90,17 +90,17 @@ function refreshComputed(e) {
|
|
|
90
90
|
activeSub = e, shouldTrack = !0;
|
|
91
91
|
try {
|
|
92
92
|
prepareDeps(e);
|
|
93
|
-
const
|
|
94
|
-
(o.version === 0 || hasChanged(
|
|
95
|
-
} catch (
|
|
96
|
-
throw o.version++,
|
|
93
|
+
const s = e.fn(e._value);
|
|
94
|
+
(o.version === 0 || hasChanged(s, e._value)) && (e._value = s, o.version++);
|
|
95
|
+
} catch (s) {
|
|
96
|
+
throw o.version++, s;
|
|
97
97
|
} finally {
|
|
98
98
|
activeSub = r, shouldTrack = t, cleanupDeps(e), e.flags &= -3;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
function removeSub(e, o = !1) {
|
|
102
|
-
const { dep: r, prevSub: t, nextSub:
|
|
103
|
-
if (t && (t.nextSub =
|
|
102
|
+
const { dep: r, prevSub: t, nextSub: s } = e;
|
|
103
|
+
if (t && (t.nextSub = s, e.prevSub = void 0), s && (s.prevSub = t, e.nextSub = void 0), r.subs === e && (r.subs = t, !t && r.computed)) {
|
|
104
104
|
r.computed.flags &= -5;
|
|
105
105
|
for (let i = r.computed.deps; i; i = i.nextDep)
|
|
106
106
|
removeSub(i, !0);
|
|
@@ -182,14 +182,14 @@ class ComputedRefImpl {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
function computed(e, o, r = !1) {
|
|
185
|
-
let t,
|
|
186
|
-
return isFunction(e) ? t = e : (t = e.get,
|
|
185
|
+
let t, s;
|
|
186
|
+
return isFunction(e) ? t = e : (t = e.get, s = e.set), new ComputedRefImpl(t, s, r);
|
|
187
187
|
}
|
|
188
188
|
const tr = (e) => {
|
|
189
189
|
const o = inject("translations");
|
|
190
190
|
return (o == null ? void 0 : o[e]) || e;
|
|
191
191
|
}, currencySymbol = () => {
|
|
192
|
-
var t,
|
|
192
|
+
var t, s, i;
|
|
193
193
|
const e = [
|
|
194
194
|
{ title: "πΊπΈ USD", value: "usd", symbol: "$" },
|
|
195
195
|
// United States
|
|
@@ -257,45 +257,45 @@ const tr = (e) => {
|
|
|
257
257
|
// Oman
|
|
258
258
|
{ title: "π¬πͺ GEL", value: "gel", symbol: "βΎ" }
|
|
259
259
|
// Georgia
|
|
260
|
-
], o = inject("shortcodeData"), r = ((
|
|
261
|
-
return ((i = e.find((
|
|
260
|
+
], o = inject("shortcodeData"), r = ((s = (t = o == null ? void 0 : o.meta) == null ? void 0 : t.find((l) => l.meta_key === "currency")) == null ? void 0 : s.meta_value) || "usd";
|
|
261
|
+
return ((i = e.find((l) => l.value === r)) == null ? void 0 : i.symbol) || "$";
|
|
262
262
|
}, getPrice = (e) => Number(e).toLocaleString("fr-FR"), _hoisted_1$g = {
|
|
263
263
|
key: 0,
|
|
264
|
-
class: "ire-pointer-events-none ire-absolute !ire-bottom-10 !ire-right-10 ire-w-fit ire-select-none ire-rounded-lg ire-border ire-bg-white ire-p-4"
|
|
264
|
+
class: "irep-tooltip-1 ire-pointer-events-none ire-absolute !ire-bottom-10 !ire-right-10 ire-w-fit ire-select-none ire-rounded-lg ire-border ire-bg-white ire-p-4"
|
|
265
265
|
}, _hoisted_2$a = {
|
|
266
266
|
key: 0,
|
|
267
|
-
class: "ire-flex ire-items-center ire-gap-3"
|
|
268
|
-
}, _hoisted_3$9 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$7 = { class: "!ire-text-2xl" }, _hoisted_5$3 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_6$3 = {
|
|
267
|
+
class: "irep-tooltip-1__floor ire-flex ire-items-center ire-gap-3"
|
|
268
|
+
}, _hoisted_3$9 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$7 = { class: "irep-tooltip-1__floor-number !ire-text-2xl" }, _hoisted_5$3 = { class: "irep-tooltip-1__floor-text !ire-text-sm ire-uppercase" }, _hoisted_6$3 = {
|
|
269
269
|
key: 0,
|
|
270
270
|
class: "ire-rounded-lg ire-bg-gray-100 ire-p-6"
|
|
271
271
|
}, _hoisted_7$3 = {
|
|
272
272
|
key: 0,
|
|
273
|
-
class: "!ire-text-2xl"
|
|
273
|
+
class: "irep-tooltip-1__floor-conf !ire-text-2xl"
|
|
274
274
|
}, _hoisted_8$3 = { key: 1 }, _hoisted_9$3 = {
|
|
275
275
|
key: 0,
|
|
276
|
-
class: "ire-flex ire-items-center ire-gap-2"
|
|
277
|
-
}, _hoisted_10$3 = { class: "ire-min-w-3 !ire-text-2xl" }, _hoisted_11$3 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_12$3 = {
|
|
276
|
+
class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
|
|
277
|
+
}, _hoisted_10$3 = { class: "irep-tooltip-1__floor-status-value ire-min-w-3 !ire-text-2xl" }, _hoisted_11$3 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_12$3 = {
|
|
278
278
|
key: 1,
|
|
279
|
-
class: "ire-flex ire-items-center ire-gap-2"
|
|
280
|
-
}, _hoisted_13$2 = { class: "min-w-3 !ire-text-2xl" }, _hoisted_14$2 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_15$2 = {
|
|
279
|
+
class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
|
|
280
|
+
}, _hoisted_13$2 = { class: "irep-tooltip-1__floor-status-value min-w-3 !ire-text-2xl" }, _hoisted_14$2 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_15$2 = {
|
|
281
281
|
key: 2,
|
|
282
|
-
class: "ire-flex ire-items-center ire-gap-2"
|
|
283
|
-
}, _hoisted_16$2 = { class: "ire-min-w-3 !ire-text-2xl" }, _hoisted_17$2 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_18$2 = {
|
|
282
|
+
class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
|
|
283
|
+
}, _hoisted_16$2 = { class: "irep-tooltip-1__floor-status-value ire-min-w-3 !ire-text-2xl" }, _hoisted_17$2 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_18$2 = {
|
|
284
284
|
key: 1,
|
|
285
|
-
class: "ire-flex ire-items-center ire-gap-3"
|
|
286
|
-
}, _hoisted_19$
|
|
285
|
+
class: "irep-tooltip-1__block ire-flex ire-items-center ire-gap-3"
|
|
286
|
+
}, _hoisted_19$2 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_20$2 = { class: "irep-tooltip-1__block-conf text-sm ire-text-gray-700" }, _hoisted_21$2 = { class: "irep-tooltip-1__block-title !text-2xl" }, _hoisted_22$2 = {
|
|
287
287
|
key: 2,
|
|
288
|
-
class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
|
|
289
|
-
}, _hoisted_23$
|
|
288
|
+
class: "irep-tooltip-1__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
|
|
289
|
+
}, _hoisted_23$2 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_24$2 = { class: "irep-tooltip-1__flat-number !ire-text-2xl ire-capitalize" }, _hoisted_25$2 = { class: "irep-tooltip-1__flat-aptitle !ire-mt-2 !ire-text-xs ire-uppercase" }, _hoisted_26$1 = { class: "ire-flex ire-min-w-36 ire-flex-col ire-items-center ire-rounded-lg ire-bg-gray-100 ire-px-7 ire-py-3" }, _hoisted_27$1 = {
|
|
290
290
|
key: 0,
|
|
291
|
-
class: "!ire-text-2xl ire-uppercase"
|
|
292
|
-
}, _hoisted_28$1 = { class: "!ire-text-xs ire-uppercase ire-text-gray-500" }, _hoisted_29$1 = {
|
|
291
|
+
class: "irep-tooltip-1__flat-conf !ire-text-2xl ire-uppercase"
|
|
292
|
+
}, _hoisted_28$1 = { class: "irep-tooltip-1__flat-price !ire-text-xs ire-uppercase ire-text-gray-500" }, _hoisted_29$1 = {
|
|
293
293
|
key: 0,
|
|
294
294
|
class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-py-2"
|
|
295
295
|
}, _hoisted_30$1 = {
|
|
296
296
|
key: 0,
|
|
297
|
-
class: "ire-whitespace-nowrap !ire-text-2xl"
|
|
298
|
-
}, _hoisted_31$1 = { key: 1 }, _hoisted_32 = { class: "!ire-text-xs ire-line-through" }, _hoisted_33 = { class: "ire-whitespace-nowrap !ire-text-2xl" }, _hoisted_34 = { class: "ire-border ire-border-solid ire-border-gray-800 ire-p-2" }, _hoisted_35 = { class: "ire-translate-x-3 ire-bg-white" }, _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
297
|
+
class: "irep-tooltip-1__flat-price-value ire-whitespace-nowrap !ire-text-2xl"
|
|
298
|
+
}, _hoisted_31$1 = { key: 1 }, _hoisted_32 = { class: "irep-tooltip-1__flat-price-line-value !ire-text-xs ire-line-through" }, _hoisted_33 = { class: "irep-tooltip-1__flat-price-value ire-whitespace-nowrap !ire-text-2xl" }, _hoisted_34 = { class: "ire-border ire-border-solid ire-border-gray-800 ire-p-2" }, _hoisted_35 = { class: "irep-tooltip-1__flat-area ire-translate-x-3 ire-bg-white" }, _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
299
299
|
__name: "Tooltip_1",
|
|
300
300
|
props: {
|
|
301
301
|
hoveredData: {},
|
|
@@ -306,10 +306,10 @@ const tr = (e) => {
|
|
|
306
306
|
var t;
|
|
307
307
|
return tr((t = o.hoveredData) == null ? void 0 : t.conf);
|
|
308
308
|
});
|
|
309
|
-
return (t,
|
|
309
|
+
return (t, s) => (openBlock(), createElementBlock("div", null, [
|
|
310
310
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
311
311
|
default: withCtx(() => {
|
|
312
|
-
var i,
|
|
312
|
+
var i, l, f, v, y, E, w, b, _, c, p, a, h, n, d, g, u, $, x, m, k, V, S, D;
|
|
313
313
|
return [
|
|
314
314
|
t.type && t.hoveredData && t.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
315
315
|
t.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
@@ -317,36 +317,36 @@ const tr = (e) => {
|
|
|
317
317
|
createElementVNode("div", _hoisted_4$7, toDisplayString((i = t.hoveredData) == null ? void 0 : i.floor_number), 1),
|
|
318
318
|
createElementVNode("div", _hoisted_5$3, toDisplayString(unref(tr)("floor")), 1)
|
|
319
319
|
]),
|
|
320
|
-
(
|
|
320
|
+
(l = t.hoveredData) != null && l.conf || (v = (f = t.hoveredData) == null ? void 0 : f.flats) != null && v.length ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
321
321
|
r.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(r.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_8$3, [
|
|
322
|
-
(
|
|
322
|
+
(E = (y = t.hoveredData) == null ? void 0 : y.counts) != null && E.available ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
|
|
323
323
|
createElementVNode("div", _hoisted_10$3, toDisplayString(((b = (w = t.hoveredData) == null ? void 0 : w.counts) == null ? void 0 : b.available) || 0), 1),
|
|
324
324
|
createElementVNode("div", _hoisted_11$3, toDisplayString(unref(tr)("available")), 1)
|
|
325
325
|
])) : createCommentVNode("", !0),
|
|
326
|
-
(c = (
|
|
326
|
+
(c = (_ = t.hoveredData) == null ? void 0 : _.counts) != null && c.reserved ? (openBlock(), createElementBlock("div", _hoisted_12$3, [
|
|
327
327
|
createElementVNode("div", _hoisted_13$2, toDisplayString((a = (p = t.hoveredData) == null ? void 0 : p.counts) == null ? void 0 : a.reserved), 1),
|
|
328
328
|
createElementVNode("div", _hoisted_14$2, toDisplayString(unref(tr)("reserved")), 1)
|
|
329
329
|
])) : createCommentVNode("", !0),
|
|
330
|
-
(n = (
|
|
330
|
+
(n = (h = t.hoveredData) == null ? void 0 : h.counts) != null && n.sold ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
|
|
331
331
|
createElementVNode("div", _hoisted_16$2, toDisplayString((g = (d = t.hoveredData) == null ? void 0 : d.counts) == null ? void 0 : g.sold), 1),
|
|
332
332
|
createElementVNode("div", _hoisted_17$2, toDisplayString(unref(tr)("sold")), 1)
|
|
333
333
|
])) : createCommentVNode("", !0)
|
|
334
334
|
]))
|
|
335
335
|
])) : createCommentVNode("", !0)
|
|
336
336
|
])) : t.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_18$2, [
|
|
337
|
-
createElementVNode("div", _hoisted_19$
|
|
338
|
-
createElementVNode("span", _hoisted_20$
|
|
339
|
-
createElementVNode("div", _hoisted_21$
|
|
337
|
+
createElementVNode("div", _hoisted_19$2, [
|
|
338
|
+
createElementVNode("span", _hoisted_20$2, toDisplayString(r.value), 1),
|
|
339
|
+
createElementVNode("div", _hoisted_21$2, toDisplayString((u = t.hoveredData) == null ? void 0 : u.title), 1)
|
|
340
340
|
])
|
|
341
|
-
])) : t.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_22$
|
|
342
|
-
createElementVNode("div", _hoisted_23$
|
|
343
|
-
createElementVNode("div", _hoisted_24$
|
|
344
|
-
createElementVNode("div", _hoisted_25$
|
|
341
|
+
])) : t.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_22$2, [
|
|
342
|
+
createElementVNode("div", _hoisted_23$2, [
|
|
343
|
+
createElementVNode("div", _hoisted_24$2, toDisplayString(($ = t.hoveredData) == null ? void 0 : $.flat_number), 1),
|
|
344
|
+
createElementVNode("div", _hoisted_25$2, toDisplayString(unref(tr)("apartment")), 1)
|
|
345
345
|
]),
|
|
346
346
|
createElementVNode("div", _hoisted_26$1, [
|
|
347
347
|
r.value ? (openBlock(), createElementBlock("div", _hoisted_27$1, toDisplayString(r.value), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
348
348
|
createElementVNode("div", _hoisted_28$1, toDisplayString(unref(tr)("price")), 1),
|
|
349
|
-
(
|
|
349
|
+
(x = t.hoveredData) != null && x.price ? (openBlock(), createElementBlock("div", _hoisted_29$1, [
|
|
350
350
|
createElementVNode("div", null, [
|
|
351
351
|
(m = t.hoveredData) != null && m.offer_price ? (openBlock(), createElementBlock("div", _hoisted_31$1, [
|
|
352
352
|
createElementVNode("div", _hoisted_32, toDisplayString(Number((k = t.hoveredData) == null ? void 0 : k.price).toLocaleString("fr-FR")), 1),
|
|
@@ -365,7 +365,7 @@ const tr = (e) => {
|
|
|
365
365
|
createElementVNode("div", _hoisted_34, [
|
|
366
366
|
createElementVNode("div", _hoisted_35, [
|
|
367
367
|
createTextVNode(toDisplayString(unref(getPrice)(+((D = (S = t.hoveredData) == null ? void 0 : S.type) == null ? void 0 : D.area_m2))) + " m", 1),
|
|
368
|
-
|
|
368
|
+
s[0] || (s[0] = createElementVNode("sup", { class: "ire-bg-white !ire-text-xs" }, " 2 ", -1))
|
|
369
369
|
])
|
|
370
370
|
])
|
|
371
371
|
])) : createCommentVNode("", !0)
|
|
@@ -378,23 +378,23 @@ const tr = (e) => {
|
|
|
378
378
|
}
|
|
379
379
|
}), _hoisted_1$f = {
|
|
380
380
|
key: 0,
|
|
381
|
-
class: "ire-flex ire-flex-col ire-items-center !ire-text-sm"
|
|
382
|
-
}, _hoisted_2$9 = { class: "
|
|
381
|
+
class: "irep-tooltip-2__floor ire-flex ire-flex-col ire-items-center !ire-text-sm"
|
|
382
|
+
}, _hoisted_2$9 = { class: "ire-flex ire-w-full ire-items-center ire-justify-evenly ire-p-4" }, _hoisted_3$8 = { class: "irep-tooltip-2__floor-number ire-text-3xl ire-capitalize" }, _hoisted_4$6 = {
|
|
383
383
|
key: 0,
|
|
384
|
-
class: "ire-text-2xl ire-uppercase"
|
|
385
|
-
}, _hoisted_5$2 = { key: 1 }, _hoisted_6$2 = { class: "ire-text-xs ire-text-gray-400" }, _hoisted_7$2 = { class: "ire-right-[2px] !ire-text-sm ire-text-gray-200" },
|
|
384
|
+
class: "irep-tooltip-2__floor-conf ire-text-2xl ire-uppercase"
|
|
385
|
+
}, _hoisted_5$2 = { key: 1 }, _hoisted_6$2 = { class: "irep-tooltip-2__floor-starting ire-text-xs ire-text-gray-400" }, _hoisted_7$2 = { class: "irep-tooltip-2__floor-price" }, _hoisted_8$2 = { class: "ire-right-[2px] !ire-text-sm ire-text-gray-200" }, _hoisted_9$2 = { class: "ire-flex ire-items-center ire-justify-between ire-gap-2 ire-bg-gray-800 ire-p-2 [&_p]:ire-text-xs [&_p_span]:ire-mr-1" }, _hoisted_10$2 = { class: "irep-tooltip-2__floor-status" }, _hoisted_11$2 = { class: "irep-tooltip-2__floor-status" }, _hoisted_12$2 = { class: "irep-tooltip-2__floor-status" }, _hoisted_13$1 = {
|
|
386
386
|
key: 1,
|
|
387
|
-
class: "p-4 ire-flex ire-items-center ire-gap-3 !ire-text-sm"
|
|
388
|
-
},
|
|
387
|
+
class: "irep-tooltip-2__block p-4 ire-flex ire-items-center ire-gap-3 !ire-text-sm"
|
|
388
|
+
}, _hoisted_14$1 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_15$1 = { class: "irep-tooltip-2__block-title" }, _hoisted_16$1 = { class: "irep-tooltip-2__block-conf ire-text-gray-300 ire-opacity-80" }, _hoisted_17$1 = {
|
|
389
389
|
key: 2,
|
|
390
|
-
class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-1"
|
|
391
|
-
},
|
|
390
|
+
class: "irep-tooltip-2__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-1"
|
|
391
|
+
}, _hoisted_18$1 = { class: "gap-4 ire-flex ire-items-center ire-p-4" }, _hoisted_19$1 = { class: "irep-tooltip-2__flat-number ire-max-w-28 ire-text-sm ire-capitalize" }, _hoisted_20$1 = {
|
|
392
392
|
key: 0,
|
|
393
|
-
class: "ire-text-sm ire-uppercase"
|
|
394
|
-
},
|
|
393
|
+
class: "irep-tooltip-2__flat-conf ire-text-sm ire-uppercase"
|
|
394
|
+
}, _hoisted_21$1 = {
|
|
395
395
|
key: 1,
|
|
396
396
|
class: "ire-flex ire-flex-col ire-gap-2"
|
|
397
|
-
},
|
|
397
|
+
}, _hoisted_22$1 = { class: "irep-tooltip-2__flat-price" }, _hoisted_23$1 = { class: "ire-right-[2px] !ire-text-sm ire-text-gray-200" }, _hoisted_24$1 = { class: "irep-tooltip-2__flat-area" }, _hoisted_25$1 = { class: "ire-right-[2px] !ire-text-sm ire-text-gray-200" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
398
398
|
__name: "Tooltip_2",
|
|
399
399
|
props: {
|
|
400
400
|
hoveredData: {},
|
|
@@ -402,13 +402,13 @@ const tr = (e) => {
|
|
|
402
402
|
mouseTrack: { type: Boolean }
|
|
403
403
|
},
|
|
404
404
|
setup(e) {
|
|
405
|
-
const o = e, r = inject("mouseX"), t = inject("mouseY"),
|
|
405
|
+
const o = e, r = inject("mouseX"), t = inject("mouseY"), s = computed$1(() => {
|
|
406
406
|
var i;
|
|
407
407
|
return tr((i = o.hoveredData) == null ? void 0 : i.conf);
|
|
408
408
|
});
|
|
409
|
-
return (i,
|
|
409
|
+
return (i, l) => (openBlock(), createBlock(Transition, { name: "ire-fade-in-out" }, {
|
|
410
410
|
default: withCtx(() => {
|
|
411
|
-
var
|
|
411
|
+
var f, v, y, E, w, b, _, c, p, a, h, n, d, g;
|
|
412
412
|
return [
|
|
413
413
|
i.type && i.hoveredData && i.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
|
|
414
414
|
key: 0,
|
|
@@ -423,56 +423,56 @@ const tr = (e) => {
|
|
|
423
423
|
)
|
|
424
424
|
}, [
|
|
425
425
|
createElementVNode("div", {
|
|
426
|
-
class: normalizeClass(["tooltip-2 ire-flex ire-origin-top ire-items-center ire-justify-center ire-bg-black ire-text-white ire-transition-transform ire-duration-500 ire-ease-in-out", { "": i.mouseTrack }])
|
|
426
|
+
class: normalizeClass(["irep-tooltip irep-tooltip-2 ire-flex ire-origin-top ire-items-center ire-justify-center ire-bg-black ire-text-white ire-transition-transform ire-duration-500 ire-ease-in-out", { "": i.mouseTrack }])
|
|
427
427
|
}, [
|
|
428
428
|
i.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
429
429
|
createElementVNode("div", _hoisted_2$9, [
|
|
430
|
-
createElementVNode("
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
createElementVNode("
|
|
434
|
-
createElementVNode("
|
|
435
|
-
createTextVNode(toDisplayString(unref(getPrice)(+((y = (
|
|
436
|
-
createElementVNode("span",
|
|
430
|
+
createElementVNode("div", _hoisted_3$8, toDisplayString((f = i.hoveredData) == null ? void 0 : f.floor_number), 1),
|
|
431
|
+
l[0] || (l[0] = createElementVNode("span", null, "|", -1)),
|
|
432
|
+
s.value ? (openBlock(), createElementBlock("div", _hoisted_4$6, toDisplayString(s.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
433
|
+
createElementVNode("div", _hoisted_6$2, toDisplayString(unref(tr)("starting from")) + ": ", 1),
|
|
434
|
+
createElementVNode("div", _hoisted_7$2, [
|
|
435
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((y = (v = i.hoveredData) == null ? void 0 : v.counts) == null ? void 0 : y.minimum_price) || 0)) + " ", 1),
|
|
436
|
+
createElementVNode("span", _hoisted_8$2, toDisplayString(unref(currencySymbol)()), 1)
|
|
437
437
|
])
|
|
438
438
|
]))
|
|
439
439
|
]),
|
|
440
|
-
createElementVNode("div",
|
|
441
|
-
createElementVNode("
|
|
442
|
-
createElementVNode("span", null, toDisplayString(
|
|
440
|
+
createElementVNode("div", _hoisted_9$2, [
|
|
441
|
+
createElementVNode("div", _hoisted_10$2, [
|
|
442
|
+
createElementVNode("span", null, toDisplayString(s.value ? 0 : ((w = (E = i.hoveredData) == null ? void 0 : E.counts) == null ? void 0 : w.available) || 0), 1),
|
|
443
443
|
createTextVNode(" " + toDisplayString(unref(tr)("available")), 1)
|
|
444
444
|
]),
|
|
445
|
-
|
|
446
|
-
createElementVNode("
|
|
447
|
-
createElementVNode("span", null, toDisplayString(
|
|
445
|
+
l[1] || (l[1] = createElementVNode("span", null, "β’", -1)),
|
|
446
|
+
createElementVNode("div", _hoisted_11$2, [
|
|
447
|
+
createElementVNode("span", null, toDisplayString(s.value ? 0 : ((_ = (b = i.hoveredData) == null ? void 0 : b.counts) == null ? void 0 : _.sold) || 0), 1),
|
|
448
448
|
createTextVNode(" " + toDisplayString(unref(tr)("sold")), 1)
|
|
449
449
|
]),
|
|
450
|
-
|
|
451
|
-
createElementVNode("
|
|
452
|
-
createElementVNode("span", null, toDisplayString(
|
|
450
|
+
l[2] || (l[2] = createElementVNode("span", null, "β’", -1)),
|
|
451
|
+
createElementVNode("div", _hoisted_12$2, [
|
|
452
|
+
createElementVNode("span", null, toDisplayString(s.value ? 0 : ((p = (c = i.hoveredData) == null ? void 0 : c.counts) == null ? void 0 : p.reserved) || 0), 1),
|
|
453
453
|
createTextVNode(" " + toDisplayString(unref(tr)("reserved")), 1)
|
|
454
454
|
])
|
|
455
455
|
])
|
|
456
|
-
])) : i.type === "block" ? (openBlock(), createElementBlock("div",
|
|
457
|
-
createElementVNode("div",
|
|
458
|
-
createElementVNode("div",
|
|
459
|
-
createElementVNode("span",
|
|
456
|
+
])) : i.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
457
|
+
createElementVNode("div", _hoisted_14$1, [
|
|
458
|
+
createElementVNode("div", _hoisted_15$1, toDisplayString((a = i.hoveredData) == null ? void 0 : a.title), 1),
|
|
459
|
+
createElementVNode("span", _hoisted_16$1, toDisplayString(s.value), 1)
|
|
460
460
|
])
|
|
461
|
-
])) : i.type === "flat" ? (openBlock(), createElementBlock("div",
|
|
462
|
-
createElementVNode("div",
|
|
463
|
-
createElementVNode("p",
|
|
464
|
-
|
|
465
|
-
|
|
461
|
+
])) : i.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_17$1, [
|
|
462
|
+
createElementVNode("div", _hoisted_18$1, [
|
|
463
|
+
createElementVNode("p", _hoisted_19$1, toDisplayString((h = i.hoveredData) == null ? void 0 : h.flat_number), 1),
|
|
464
|
+
l[4] || (l[4] = createElementVNode("span", null, "|", -1)),
|
|
465
|
+
s.value ? (openBlock(), createElementBlock("div", _hoisted_20$1, toDisplayString(s.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_21$1, [
|
|
466
466
|
createElementVNode("div", null, [
|
|
467
|
-
createElementVNode("
|
|
467
|
+
createElementVNode("div", _hoisted_22$1, [
|
|
468
468
|
createTextVNode(toDisplayString(unref(getPrice)(+((n = i.hoveredData) == null ? void 0 : n.price))) + " ", 1),
|
|
469
|
-
createElementVNode("span",
|
|
469
|
+
createElementVNode("span", _hoisted_23$1, toDisplayString(unref(currencySymbol)()), 1)
|
|
470
470
|
])
|
|
471
471
|
]),
|
|
472
|
-
createElementVNode("div",
|
|
473
|
-
createElementVNode("span",
|
|
472
|
+
createElementVNode("div", _hoisted_24$1, [
|
|
473
|
+
createElementVNode("span", _hoisted_25$1, [
|
|
474
474
|
createTextVNode(toDisplayString(unref(getPrice)(+((g = (d = i.hoveredData) == null ? void 0 : d.type) == null ? void 0 : g.area_m2))) + " m", 1),
|
|
475
|
-
|
|
475
|
+
l[3] || (l[3] = createElementVNode("sup", { class: "ire-bg-transparent !ire-text-xs" }, " 2 ", -1))
|
|
476
476
|
])
|
|
477
477
|
])
|
|
478
478
|
]))
|
|
@@ -485,16 +485,16 @@ const tr = (e) => {
|
|
|
485
485
|
_: 1
|
|
486
486
|
}));
|
|
487
487
|
}
|
|
488
|
-
}), _hoisted_1$e = { class: "tooltip-
|
|
488
|
+
}), _hoisted_1$e = { class: "irep-tooltip irep-tooltip-3 ire-flex ire-w-fit ire-origin-top ire-items-center ire-justify-center ire-rounded-2xl ire-border ire-bg-white ire-p-4 ire-transition-transform ire-duration-500 ire-ease-in-out" }, _hoisted_2$8 = {
|
|
489
489
|
key: 0,
|
|
490
|
-
class: "ire-flex ire-flex-col ire-items-center ire-gap-3"
|
|
491
|
-
}, _hoisted_3$7 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$5 = { class: "!ire-text-2xl" }, _hoisted_5$1 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_6$1 = {
|
|
490
|
+
class: "irep-tooltip-3__floor ire-flex ire-flex-col ire-items-center ire-gap-3"
|
|
491
|
+
}, _hoisted_3$7 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$5 = { class: "irep-tooltip-3__floor-number !ire-text-2xl" }, _hoisted_5$1 = { class: "irep-tooltip-3__floor-text !ire-text-sm ire-uppercase" }, _hoisted_6$1 = {
|
|
492
492
|
key: 1,
|
|
493
|
-
class: "ire-flex ire-items-center ire-gap-3"
|
|
494
|
-
}, _hoisted_7$1 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_8$1 = { class: "!text-2xl" }, _hoisted_9$1 = {
|
|
493
|
+
class: "irep-tooltip-3__block ire-flex ire-items-center ire-gap-3"
|
|
494
|
+
}, _hoisted_7$1 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_8$1 = { class: "irep-tooltip-3__block-title !text-2xl" }, _hoisted_9$1 = {
|
|
495
495
|
key: 2,
|
|
496
|
-
class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
|
|
497
|
-
}, _hoisted_10$1 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_11$1 = { class: "ire-max-w-52 ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_12$1 = { class: "!ire-mt-2 !ire-text-xs ire-uppercase" }, _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
496
|
+
class: "irep-tooltip-3__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
|
|
497
|
+
}, _hoisted_10$1 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_11$1 = { class: "irep-tooltip-3__flat-number ire-max-w-52 ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_12$1 = { class: "irep-tooltip-3__flat-text !ire-mt-2 !ire-text-xs ire-uppercase" }, _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
498
498
|
__name: "Tooltip_3",
|
|
499
499
|
props: {
|
|
500
500
|
hoveredData: {},
|
|
@@ -502,9 +502,9 @@ const tr = (e) => {
|
|
|
502
502
|
},
|
|
503
503
|
setup(e) {
|
|
504
504
|
const o = inject("mouseX"), r = inject("mouseY");
|
|
505
|
-
return (t,
|
|
505
|
+
return (t, s) => (openBlock(), createBlock(Transition, { name: "ire-fade-in" }, {
|
|
506
506
|
default: withCtx(() => {
|
|
507
|
-
var i,
|
|
507
|
+
var i, l, f;
|
|
508
508
|
return [
|
|
509
509
|
t.type && t.hoveredData && t.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
|
|
510
510
|
key: 0,
|
|
@@ -521,11 +521,11 @@ const tr = (e) => {
|
|
|
521
521
|
])
|
|
522
522
|
])) : t.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
523
523
|
createElementVNode("div", _hoisted_7$1, [
|
|
524
|
-
createElementVNode("div", _hoisted_8$1, toDisplayString((
|
|
524
|
+
createElementVNode("div", _hoisted_8$1, toDisplayString((l = t.hoveredData) == null ? void 0 : l.title), 1)
|
|
525
525
|
])
|
|
526
526
|
])) : t.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
|
|
527
527
|
createElementVNode("div", _hoisted_10$1, [
|
|
528
|
-
createElementVNode("div", _hoisted_11$1, toDisplayString((
|
|
528
|
+
createElementVNode("div", _hoisted_11$1, toDisplayString((f = t.hoveredData) == null ? void 0 : f.flat_number), 1),
|
|
529
529
|
createElementVNode("div", _hoisted_12$1, toDisplayString(unref(tr)("apartment")), 1)
|
|
530
530
|
])
|
|
531
531
|
])) : createCommentVNode("", !0)
|
|
@@ -546,49 +546,49 @@ const tr = (e) => {
|
|
|
546
546
|
type: {}
|
|
547
547
|
},
|
|
548
548
|
setup(e) {
|
|
549
|
-
const o = inject("shortcodeData"), r = inject("showFlatModal"), t = ref(),
|
|
550
|
-
var
|
|
551
|
-
return ((
|
|
549
|
+
const o = inject("shortcodeData"), r = inject("showFlatModal"), t = ref(), s = ref(!0), i = computed$1(() => {
|
|
550
|
+
var l;
|
|
551
|
+
return ((l = o.meta.find((f) => f.meta_key === "tooltip")) == null ? void 0 : l.meta_value) || "1";
|
|
552
552
|
});
|
|
553
553
|
return watch(
|
|
554
554
|
() => r == null ? void 0 : r.value,
|
|
555
555
|
() => {
|
|
556
|
-
r != null && r.value ?
|
|
557
|
-
|
|
556
|
+
r != null && r.value ? s.value = !1 : setTimeout(() => {
|
|
557
|
+
s.value = !0;
|
|
558
558
|
}, 400);
|
|
559
559
|
}
|
|
560
|
-
), (
|
|
560
|
+
), (l, f) => (openBlock(), createElementBlock("div", {
|
|
561
561
|
ref_key: "canvasRef",
|
|
562
562
|
ref: t,
|
|
563
563
|
class: "ire-group ire-relative ire-overflow-hidden ire-pt-3"
|
|
564
564
|
}, [
|
|
565
|
-
|
|
566
|
-
renderSlot(
|
|
565
|
+
l.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
566
|
+
renderSlot(l.$slots, "header")
|
|
567
567
|
])) : createCommentVNode("", !0),
|
|
568
|
-
renderSlot(
|
|
568
|
+
renderSlot(l.$slots, "default"),
|
|
569
569
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
570
570
|
default: withCtx(() => [
|
|
571
|
-
|
|
571
|
+
s.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
572
572
|
i.value === "2" ? (openBlock(), createBlock(_sfc_main$i, {
|
|
573
573
|
key: 0,
|
|
574
|
-
"hovered-data":
|
|
575
|
-
type:
|
|
574
|
+
"hovered-data": l.hoverdData,
|
|
575
|
+
type: l.type || "",
|
|
576
576
|
"mouse-track": !0,
|
|
577
|
-
class: "ire-hidden lg:ire-flex [&_.tooltip
|
|
577
|
+
class: "ire-hidden lg:ire-flex [&_.irep-tooltip]:group-active:!ire-scale-110"
|
|
578
578
|
}, null, 8, ["hovered-data", "type"])) : i.value === "3" ? (openBlock(), createBlock(_sfc_main$i, {
|
|
579
579
|
key: 1,
|
|
580
|
-
"hovered-data":
|
|
581
|
-
type:
|
|
580
|
+
"hovered-data": l.hoverdData,
|
|
581
|
+
type: l.type || "",
|
|
582
582
|
class: "ire-hidden lg:ire-flex"
|
|
583
583
|
}, null, 8, ["hovered-data", "type"])) : i.value === "4" ? (openBlock(), createBlock(_sfc_main$h, {
|
|
584
584
|
key: 2,
|
|
585
|
-
"hovered-data":
|
|
586
|
-
type:
|
|
587
|
-
class: "ire-hidden lg:ire-flex [&_.tooltip
|
|
585
|
+
"hovered-data": l.hoverdData,
|
|
586
|
+
type: l.type || "",
|
|
587
|
+
class: "ire-hidden lg:ire-flex [&_.irep-tooltip]:group-active:!ire-scale-110"
|
|
588
588
|
}, null, 8, ["hovered-data", "type"])) : (openBlock(), createBlock(_sfc_main$j, {
|
|
589
589
|
key: 3,
|
|
590
|
-
"hovered-data":
|
|
591
|
-
type:
|
|
590
|
+
"hovered-data": l.hoverdData,
|
|
591
|
+
type: l.type || "",
|
|
592
592
|
class: "ire-hidden lg:ire-block"
|
|
593
593
|
}, null, 8, ["hovered-data", "type"]))
|
|
594
594
|
], 64)) : createCommentVNode("", !0)
|
|
@@ -618,9 +618,9 @@ var MutationType;
|
|
|
618
618
|
function createPinia() {
|
|
619
619
|
const e = effectScope(!0), o = e.run(() => ref({}));
|
|
620
620
|
let r = [], t = [];
|
|
621
|
-
const
|
|
621
|
+
const s = markRaw({
|
|
622
622
|
install(i) {
|
|
623
|
-
setActivePinia(
|
|
623
|
+
setActivePinia(s), s._a = i, i.provide(piniaSymbol, s), i.config.globalProperties.$pinia = s, t.forEach((l) => r.push(l)), t = [];
|
|
624
624
|
},
|
|
625
625
|
use(i) {
|
|
626
626
|
return this._a ? r.push(i) : t.push(i), this;
|
|
@@ -633,17 +633,17 @@ function createPinia() {
|
|
|
633
633
|
_s: /* @__PURE__ */ new Map(),
|
|
634
634
|
state: o
|
|
635
635
|
});
|
|
636
|
-
return
|
|
636
|
+
return s;
|
|
637
637
|
}
|
|
638
638
|
const noop = () => {
|
|
639
639
|
};
|
|
640
640
|
function addSubscription(e, o, r, t = noop) {
|
|
641
641
|
e.push(o);
|
|
642
|
-
const
|
|
642
|
+
const s = () => {
|
|
643
643
|
const i = e.indexOf(o);
|
|
644
644
|
i > -1 && (e.splice(i, 1), t());
|
|
645
645
|
};
|
|
646
|
-
return !r && getCurrentScope() && onScopeDispose(
|
|
646
|
+
return !r && getCurrentScope() && onScopeDispose(s), s;
|
|
647
647
|
}
|
|
648
648
|
function triggerSubscriptions(e, ...o) {
|
|
649
649
|
e.slice().forEach((r) => {
|
|
@@ -656,8 +656,8 @@ function mergeReactiveObjects(e, o) {
|
|
|
656
656
|
for (const r in o) {
|
|
657
657
|
if (!o.hasOwnProperty(r))
|
|
658
658
|
continue;
|
|
659
|
-
const t = o[r],
|
|
660
|
-
isPlainObject(
|
|
659
|
+
const t = o[r], s = e[r];
|
|
660
|
+
isPlainObject(s) && isPlainObject(t) && e.hasOwnProperty(r) && !isRef(t) && !isReactive(t) ? e[r] = mergeReactiveObjects(s, t) : e[r] = t;
|
|
661
661
|
}
|
|
662
662
|
return e;
|
|
663
663
|
}
|
|
@@ -673,44 +673,44 @@ function isComputed(e) {
|
|
|
673
673
|
return !!(isRef(e) && e.effect);
|
|
674
674
|
}
|
|
675
675
|
function createOptionsStore(e, o, r, t) {
|
|
676
|
-
const { state:
|
|
677
|
-
let
|
|
676
|
+
const { state: s, actions: i, getters: l } = o, f = r.state.value[e];
|
|
677
|
+
let v;
|
|
678
678
|
function y() {
|
|
679
|
-
|
|
680
|
-
const
|
|
681
|
-
return assign(
|
|
679
|
+
f || (r.state.value[e] = s ? s() : {});
|
|
680
|
+
const E = toRefs(r.state.value[e]);
|
|
681
|
+
return assign(E, i, Object.keys(l || {}).reduce((w, b) => (w[b] = markRaw(computed$1(() => {
|
|
682
682
|
setActivePinia(r);
|
|
683
|
-
const
|
|
684
|
-
return
|
|
683
|
+
const _ = r._s.get(e);
|
|
684
|
+
return l[b].call(_, _);
|
|
685
685
|
})), w), {}));
|
|
686
686
|
}
|
|
687
|
-
return
|
|
687
|
+
return v = createSetupStore(e, y, o, r, t, !0), v;
|
|
688
688
|
}
|
|
689
|
-
function createSetupStore(e, o, r = {}, t,
|
|
690
|
-
let
|
|
691
|
-
const
|
|
692
|
-
let y,
|
|
689
|
+
function createSetupStore(e, o, r = {}, t, s, i) {
|
|
690
|
+
let l;
|
|
691
|
+
const f = assign({ actions: {} }, r), v = { deep: !0 };
|
|
692
|
+
let y, E, w = [], b = [], _;
|
|
693
693
|
const c = t.state.value[e];
|
|
694
694
|
!i && !c && (t.state.value[e] = {}), ref({});
|
|
695
695
|
let p;
|
|
696
696
|
function a(m) {
|
|
697
697
|
let k;
|
|
698
|
-
y =
|
|
698
|
+
y = E = !1, typeof m == "function" ? (m(t.state.value[e]), k = {
|
|
699
699
|
type: MutationType.patchFunction,
|
|
700
700
|
storeId: e,
|
|
701
|
-
events:
|
|
701
|
+
events: _
|
|
702
702
|
}) : (mergeReactiveObjects(t.state.value[e], m), k = {
|
|
703
703
|
type: MutationType.patchObject,
|
|
704
704
|
payload: m,
|
|
705
705
|
storeId: e,
|
|
706
|
-
events:
|
|
706
|
+
events: _
|
|
707
707
|
});
|
|
708
708
|
const V = p = Symbol();
|
|
709
709
|
nextTick().then(() => {
|
|
710
710
|
p === V && (y = !0);
|
|
711
|
-
}),
|
|
711
|
+
}), E = !0, triggerSubscriptions(w, k, t.state.value[e]);
|
|
712
712
|
}
|
|
713
|
-
const
|
|
713
|
+
const h = i ? function() {
|
|
714
714
|
const { state: k } = r, V = k ? k() : {};
|
|
715
715
|
this.$patch((S) => {
|
|
716
716
|
assign(S, V);
|
|
@@ -720,7 +720,7 @@ function createSetupStore(e, o, r = {}, t, l, i) {
|
|
|
720
720
|
noop
|
|
721
721
|
);
|
|
722
722
|
function n() {
|
|
723
|
-
|
|
723
|
+
l.stop(), w = [], b = [], t._s.delete(e);
|
|
724
724
|
}
|
|
725
725
|
const d = (m, k = "") => {
|
|
726
726
|
if (ACTION_MARKER in m)
|
|
@@ -756,31 +756,31 @@ function createSetupStore(e, o, r = {}, t, l, i) {
|
|
|
756
756
|
$id: e,
|
|
757
757
|
$onAction: addSubscription.bind(null, b),
|
|
758
758
|
$patch: a,
|
|
759
|
-
$reset:
|
|
759
|
+
$reset: h,
|
|
760
760
|
$subscribe(m, k = {}) {
|
|
761
|
-
const V = addSubscription(w, m, k.detached, () => S()), S =
|
|
762
|
-
(k.flush === "sync" ?
|
|
761
|
+
const V = addSubscription(w, m, k.detached, () => S()), S = l.run(() => watch(() => t.state.value[e], (D) => {
|
|
762
|
+
(k.flush === "sync" ? E : y) && m({
|
|
763
763
|
storeId: e,
|
|
764
764
|
type: MutationType.direct,
|
|
765
|
-
events:
|
|
765
|
+
events: _
|
|
766
766
|
}, D);
|
|
767
|
-
}, assign({},
|
|
767
|
+
}, assign({}, v, k)));
|
|
768
768
|
return V;
|
|
769
769
|
},
|
|
770
770
|
$dispose: n
|
|
771
771
|
}, u = reactive(g);
|
|
772
772
|
t._s.set(e, u);
|
|
773
|
-
const
|
|
774
|
-
for (const m in
|
|
775
|
-
const k =
|
|
773
|
+
const x = (t._a && t._a.runWithContext || fallbackRunWithContext)(() => t._e.run(() => (l = effectScope()).run(() => o({ action: d }))));
|
|
774
|
+
for (const m in x) {
|
|
775
|
+
const k = x[m];
|
|
776
776
|
if (isRef(k) && !isComputed(k) || isReactive(k))
|
|
777
777
|
i || (c && shouldHydrate(k) && (isRef(k) ? k.value = c[m] : mergeReactiveObjects(k, c[m])), t.state.value[e][m] = k);
|
|
778
778
|
else if (typeof k == "function") {
|
|
779
779
|
const V = d(k, m);
|
|
780
|
-
|
|
780
|
+
x[m] = V, f.actions[m] = k;
|
|
781
781
|
}
|
|
782
782
|
}
|
|
783
|
-
return assign(u,
|
|
783
|
+
return assign(u, x), assign(toRaw(u), x), Object.defineProperty(u, "$state", {
|
|
784
784
|
get: () => t.state.value[e],
|
|
785
785
|
set: (m) => {
|
|
786
786
|
a((k) => {
|
|
@@ -788,25 +788,25 @@ function createSetupStore(e, o, r = {}, t, l, i) {
|
|
|
788
788
|
});
|
|
789
789
|
}
|
|
790
790
|
}), t._p.forEach((m) => {
|
|
791
|
-
assign(u,
|
|
791
|
+
assign(u, l.run(() => m({
|
|
792
792
|
store: u,
|
|
793
793
|
app: t._a,
|
|
794
794
|
pinia: t,
|
|
795
|
-
options:
|
|
795
|
+
options: f
|
|
796
796
|
})));
|
|
797
|
-
}), c && i && r.hydrate && r.hydrate(u.$state, c), y = !0,
|
|
797
|
+
}), c && i && r.hydrate && r.hydrate(u.$state, c), y = !0, E = !0, u;
|
|
798
798
|
}
|
|
799
799
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
800
800
|
// @__NO_SIDE_EFFECTS__
|
|
801
801
|
function defineStore(e, o, r) {
|
|
802
802
|
let t;
|
|
803
|
-
const
|
|
804
|
-
t =
|
|
805
|
-
function i(
|
|
806
|
-
const
|
|
807
|
-
return
|
|
803
|
+
const s = typeof o == "function";
|
|
804
|
+
t = s ? r : o;
|
|
805
|
+
function i(l, f) {
|
|
806
|
+
const v = hasInjectionContext();
|
|
807
|
+
return l = // in test mode, ignore the argument provided as we can always retrieve a
|
|
808
808
|
// pinia instance with getActivePinia()
|
|
809
|
-
|
|
809
|
+
l || (v ? inject(piniaSymbol, null) : null), l && setActivePinia(l), l = activePinia, l._s.has(e) || (s ? createSetupStore(e, o, t, l) : createOptionsStore(e, t, l)), l._s.get(e);
|
|
810
810
|
}
|
|
811
811
|
return i.$id = e, i;
|
|
812
812
|
}
|
|
@@ -828,81 +828,81 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
828
828
|
},
|
|
829
829
|
emits: ["changeComponent"],
|
|
830
830
|
setup(e, { emit: o }) {
|
|
831
|
-
const r = o, t = e,
|
|
831
|
+
const r = o, t = e, s = useGlobalStore(), i = inject("showFlatModal"), l = ref(null), f = ref(), v = ref(null), y = computed(() => {
|
|
832
832
|
if (t.project)
|
|
833
833
|
return t.project.svg;
|
|
834
|
-
}),
|
|
835
|
-
const
|
|
836
|
-
|
|
834
|
+
}), E = (b) => {
|
|
835
|
+
const _ = b == null ? void 0 : b.target;
|
|
836
|
+
_ && (l.value = _);
|
|
837
837
|
}, w = (b) => {
|
|
838
838
|
var c, p, a;
|
|
839
|
-
const
|
|
840
|
-
(
|
|
839
|
+
const _ = b.target;
|
|
840
|
+
(_ == null ? void 0 : _.nodeName) === "path" && (((c = f.value) == null ? void 0 : c.conf) === "sold" || ((p = f.value) == null ? void 0 : p.conf) === "reserved" || r("changeComponent", ((a = v.value) == null ? void 0 : a.type) || "", f == null ? void 0 : f.value));
|
|
841
841
|
};
|
|
842
842
|
return watch(
|
|
843
843
|
() => i == null ? void 0 : i.value,
|
|
844
844
|
() => {
|
|
845
|
-
i != null && i.value || (
|
|
845
|
+
i != null && i.value || (l.value = null, v.value = null);
|
|
846
846
|
}
|
|
847
847
|
), watch(
|
|
848
|
-
() =>
|
|
848
|
+
() => l.value,
|
|
849
849
|
(b) => {
|
|
850
|
-
var c, p, a,
|
|
850
|
+
var c, p, a, h, n, d, g;
|
|
851
851
|
if (!b) return;
|
|
852
|
-
|
|
853
|
-
const
|
|
854
|
-
if (
|
|
855
|
-
const u =
|
|
856
|
-
if (!u || (
|
|
857
|
-
const $ = (p =
|
|
858
|
-
switch ((a =
|
|
852
|
+
s.hoverdSvg = b;
|
|
853
|
+
const _ = b.parentElement;
|
|
854
|
+
if (_ && (_ == null ? void 0 : _.nodeName) === "g") {
|
|
855
|
+
const u = _ == null ? void 0 : _.getAttribute("id");
|
|
856
|
+
if (!u || (v.value = ((c = t.project) == null ? void 0 : c.polygon_data.find((x) => (x == null ? void 0 : x.key) === u)) || null, !v.value)) return;
|
|
857
|
+
const $ = (p = v.value) == null ? void 0 : p.id;
|
|
858
|
+
switch ((a = v.value) == null ? void 0 : a.type) {
|
|
859
859
|
case "floor":
|
|
860
|
-
const
|
|
860
|
+
const x = (h = t.floors) == null ? void 0 : h.find(
|
|
861
861
|
(S) => S.id === $
|
|
862
862
|
);
|
|
863
|
-
|
|
863
|
+
f.value = x;
|
|
864
864
|
break;
|
|
865
865
|
case "block":
|
|
866
866
|
const m = (n = t.blocks) == null ? void 0 : n.find(
|
|
867
867
|
(S) => (S == null ? void 0 : S.id) === $
|
|
868
868
|
);
|
|
869
|
-
|
|
869
|
+
f.value = m;
|
|
870
870
|
break;
|
|
871
871
|
case "flat":
|
|
872
872
|
const k = (d = t.flats) == null ? void 0 : d.find(
|
|
873
873
|
(S) => (S == null ? void 0 : S.id) === $
|
|
874
874
|
);
|
|
875
|
-
|
|
875
|
+
f.value = k;
|
|
876
876
|
break;
|
|
877
877
|
case "tooltip":
|
|
878
878
|
const V = (g = t.actions) == null ? void 0 : g.find(
|
|
879
879
|
(S) => (S == null ? void 0 : S.id) === $
|
|
880
880
|
);
|
|
881
|
-
|
|
881
|
+
f.value = V;
|
|
882
882
|
break;
|
|
883
883
|
default:
|
|
884
|
-
|
|
884
|
+
f.value = null;
|
|
885
885
|
break;
|
|
886
886
|
}
|
|
887
887
|
} else
|
|
888
|
-
|
|
888
|
+
v.value = null, f.value = null;
|
|
889
889
|
}
|
|
890
890
|
), onMounted(() => {
|
|
891
|
-
document.addEventListener("mousemove",
|
|
891
|
+
document.addEventListener("mousemove", E);
|
|
892
892
|
}), onUnmounted(() => {
|
|
893
|
-
document.removeEventListener("mousemove",
|
|
894
|
-
}), (b,
|
|
893
|
+
document.removeEventListener("mousemove", E);
|
|
894
|
+
}), (b, _) => {
|
|
895
895
|
var c;
|
|
896
896
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
897
|
-
hoverdData:
|
|
898
|
-
type: (c =
|
|
897
|
+
hoverdData: f.value,
|
|
898
|
+
type: (c = v.value) == null ? void 0 : c.type
|
|
899
899
|
}, {
|
|
900
900
|
default: withCtx(() => {
|
|
901
|
-
var p, a,
|
|
901
|
+
var p, a, h, n, d, g;
|
|
902
902
|
return [
|
|
903
903
|
createElementVNode("div", _hoisted_1$c, [
|
|
904
904
|
createElementVNode("img", {
|
|
905
|
-
src: (
|
|
905
|
+
src: (h = (a = (p = b.project) == null ? void 0 : p.project_image) == null ? void 0 : a[0]) == null ? void 0 : h.url,
|
|
906
906
|
alt: "",
|
|
907
907
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
908
908
|
}, null, 8, _hoisted_2$7),
|
|
@@ -911,9 +911,9 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
911
911
|
key: unref(y),
|
|
912
912
|
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", [
|
|
913
913
|
{
|
|
914
|
-
"hover:[&_path]:ire-fill-[var(--reserved-color)]":
|
|
915
|
-
"hover:[&_path]:ire-fill-[var(--sold-color)]":
|
|
916
|
-
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((g =
|
|
914
|
+
"hover:[&_path]:ire-fill-[var(--reserved-color)]": f.value && ((n = f.value) == null ? void 0 : n.conf) === "reserved",
|
|
915
|
+
"hover:[&_path]:ire-fill-[var(--sold-color)]": f.value && ((d = f.value) == null ? void 0 : d.conf) === "sold",
|
|
916
|
+
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((g = f.value) != null && g.conf)
|
|
917
917
|
}
|
|
918
918
|
]]),
|
|
919
919
|
onClick: w
|
|
@@ -947,15 +947,15 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
947
947
|
r.label ? (openBlock(), createElementBlock("p", _hoisted_2$6, toDisplayString(r.label), 1)) : createCommentVNode("", !0),
|
|
948
948
|
createElementVNode("div", _hoisted_3$5, [
|
|
949
949
|
withDirectives(createElementVNode("select", {
|
|
950
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
950
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => o.value = s),
|
|
951
951
|
class: "ire-w-full ire-cursor-pointer ire-appearance-none ire-rounded-none ire-bg-transparent ire-py-2 ire-pl-3 ire-pr-8 ire-text-sm ire-text-slate-700 ire-shadow-sm ire-transition ire-duration-300 ire-ease-linear placeholder:ire-text-slate-400 hover:ire-border-slate-400 focus:ire-border-slate-400 focus:ire-shadow-md focus:ire-outline-none"
|
|
952
952
|
}, [
|
|
953
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.data, (
|
|
954
|
-
var i,
|
|
953
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.data, (s) => {
|
|
954
|
+
var i, l;
|
|
955
955
|
return openBlock(), createElementBlock("option", {
|
|
956
|
-
value:
|
|
957
|
-
disabled: ((i =
|
|
958
|
-
}, toDisplayString(
|
|
956
|
+
value: s.value,
|
|
957
|
+
disabled: ((i = s == null ? void 0 : s.title) == null ? void 0 : i.includes("reserved")) || ((l = s == null ? void 0 : s.title) == null ? void 0 : l.includes("sold"))
|
|
958
|
+
}, toDisplayString(s.title), 9, _hoisted_4$4);
|
|
959
959
|
}), 256))
|
|
960
960
|
], 512), [
|
|
961
961
|
[vModelSelect, o.value]
|
|
@@ -1011,11 +1011,11 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
1011
1011
|
},
|
|
1012
1012
|
emits: ["changeComponent"],
|
|
1013
1013
|
setup(e, { emit: o }) {
|
|
1014
|
-
const r = o, t = e,
|
|
1014
|
+
const r = o, t = e, s = useGlobalStore(), i = inject("showFlatModal"), l = ref(), f = ref(null), v = ref(), y = ref(null), E = ref(), w = ref(), b = computed$1(() => {
|
|
1015
1015
|
var n;
|
|
1016
1016
|
if ((n = t.floor) != null && n.svg)
|
|
1017
1017
|
return t.floor.svg;
|
|
1018
|
-
}),
|
|
1018
|
+
}), _ = computed$1(() => t.floors.filter(
|
|
1019
1019
|
(n) => {
|
|
1020
1020
|
var d, g;
|
|
1021
1021
|
return (
|
|
@@ -1028,8 +1028,8 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
1028
1028
|
var g, u;
|
|
1029
1029
|
const d = (g = t.blocks) == null ? void 0 : g.find(
|
|
1030
1030
|
($) => {
|
|
1031
|
-
var
|
|
1032
|
-
return ($ == null ? void 0 : $.id) === ((
|
|
1031
|
+
var x;
|
|
1032
|
+
return ($ == null ? void 0 : $.id) === ((x = n == null ? void 0 : n.block_id) == null ? void 0 : x.toString());
|
|
1033
1033
|
}
|
|
1034
1034
|
);
|
|
1035
1035
|
return {
|
|
@@ -1038,16 +1038,16 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
1038
1038
|
};
|
|
1039
1039
|
}).sort((n, d) => +(n == null ? void 0 : n.title) - +(d == null ? void 0 : d.title)) || []), c = (n) => {
|
|
1040
1040
|
const d = n.target;
|
|
1041
|
-
d && (
|
|
1041
|
+
d && (f.value = d);
|
|
1042
1042
|
}, p = (n) => {
|
|
1043
1043
|
var g, u, $;
|
|
1044
1044
|
const d = n.target;
|
|
1045
|
-
(d == null ? void 0 : d.nodeName) === "path" && (y.value && "conf" in y.value && (((g = y.value) == null ? void 0 : g.conf) === "sold" || ((u = y.value) == null ? void 0 : u.conf) === "reserved") || r("changeComponent", (($ =
|
|
1045
|
+
(d == null ? void 0 : d.nodeName) === "path" && (y.value && "conf" in y.value && (((g = y.value) == null ? void 0 : g.conf) === "sold" || ((u = y.value) == null ? void 0 : u.conf) === "reserved") || r("changeComponent", (($ = v.value) == null ? void 0 : $.type) || "", y.value));
|
|
1046
1046
|
}, a = () => {
|
|
1047
1047
|
var n;
|
|
1048
|
-
|
|
1049
|
-
var
|
|
1050
|
-
const u = g == null ? void 0 : g.getAttribute("id"), $ = (m = (
|
|
1048
|
+
l.value && ((n = l.value) == null ? void 0 : n.querySelectorAll("g")).forEach((g) => {
|
|
1049
|
+
var x, m, k, V, S, D;
|
|
1050
|
+
const u = g == null ? void 0 : g.getAttribute("id"), $ = (m = (x = t.floor) == null ? void 0 : x.polygon_data) == null ? void 0 : m.find(
|
|
1051
1051
|
(C) => (C == null ? void 0 : C.key) === u
|
|
1052
1052
|
);
|
|
1053
1053
|
if (t.flats)
|
|
@@ -1060,52 +1060,52 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
1060
1060
|
g == null || g.setAttribute("conf", ((D = C == null ? void 0 : C.conf) == null ? void 0 : D.toString()) || "");
|
|
1061
1061
|
}
|
|
1062
1062
|
});
|
|
1063
|
-
},
|
|
1063
|
+
}, h = () => {
|
|
1064
1064
|
var n;
|
|
1065
1065
|
(n = t.floor) != null && n.block_id ? r("changeComponent", "block", w.value) : r("changeComponent", "project", null);
|
|
1066
1066
|
};
|
|
1067
1067
|
return watch(
|
|
1068
|
-
() =>
|
|
1068
|
+
() => f.value,
|
|
1069
1069
|
(n) => {
|
|
1070
|
-
var g, u, $,
|
|
1070
|
+
var g, u, $, x, m, k;
|
|
1071
1071
|
if (!n) return;
|
|
1072
|
-
|
|
1072
|
+
s.hoverdSvg = n;
|
|
1073
1073
|
const d = n == null ? void 0 : n.parentElement;
|
|
1074
1074
|
if (d && (d == null ? void 0 : d.nodeName) === "g") {
|
|
1075
1075
|
const V = d.getAttribute("id");
|
|
1076
|
-
if (!V || (
|
|
1077
|
-
if ((($ =
|
|
1078
|
-
const S = (
|
|
1076
|
+
if (!V || (v.value = ((u = (g = t.floor) == null ? void 0 : g.polygon_data) == null ? void 0 : u.find((S) => (S == null ? void 0 : S.key) === V)) || null, !v.value)) return;
|
|
1077
|
+
if ((($ = v.value) == null ? void 0 : $.type) === "flat") {
|
|
1078
|
+
const S = (x = t.flats) == null ? void 0 : x.find(
|
|
1079
1079
|
(D) => {
|
|
1080
1080
|
var C;
|
|
1081
|
-
return (D == null ? void 0 : D.id) === ((C =
|
|
1081
|
+
return (D == null ? void 0 : D.id) === ((C = v.value) == null ? void 0 : C.id);
|
|
1082
1082
|
}
|
|
1083
1083
|
);
|
|
1084
1084
|
y.value = S ?? null;
|
|
1085
|
-
} else if (((m =
|
|
1085
|
+
} else if (((m = v.value) == null ? void 0 : m.type) === "tooltip") {
|
|
1086
1086
|
const S = (k = t.actions) == null ? void 0 : k.find(
|
|
1087
1087
|
(D) => {
|
|
1088
1088
|
var C;
|
|
1089
|
-
return (D == null ? void 0 : D.id) === ((C =
|
|
1089
|
+
return (D == null ? void 0 : D.id) === ((C = v.value) == null ? void 0 : C.id);
|
|
1090
1090
|
}
|
|
1091
1091
|
);
|
|
1092
1092
|
y.value = S ?? null;
|
|
1093
1093
|
} else
|
|
1094
1094
|
y.value = null;
|
|
1095
1095
|
} else
|
|
1096
|
-
|
|
1096
|
+
v.value = null;
|
|
1097
1097
|
}
|
|
1098
1098
|
), watch(
|
|
1099
1099
|
() => i == null ? void 0 : i.value,
|
|
1100
1100
|
() => {
|
|
1101
|
-
i != null && i.value || (
|
|
1101
|
+
i != null && i.value || (f.value = null, v.value = null);
|
|
1102
1102
|
}
|
|
1103
1103
|
), watch(
|
|
1104
|
-
() =>
|
|
1104
|
+
() => E.value,
|
|
1105
1105
|
() => {
|
|
1106
1106
|
var d;
|
|
1107
1107
|
const n = (d = t.floors) == null ? void 0 : d.find(
|
|
1108
|
-
(g) => (g == null ? void 0 : g.id) === (
|
|
1108
|
+
(g) => (g == null ? void 0 : g.id) === (E == null ? void 0 : E.value)
|
|
1109
1109
|
);
|
|
1110
1110
|
n != null && n.conf || (n && r("changeComponent", "floor", n), setTimeout(() => {
|
|
1111
1111
|
a();
|
|
@@ -1115,10 +1115,10 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
1115
1115
|
var n, d, g;
|
|
1116
1116
|
w.value = (n = t.blocks) == null ? void 0 : n.find(
|
|
1117
1117
|
(u) => {
|
|
1118
|
-
var $,
|
|
1119
|
-
return (u == null ? void 0 : u.id) === ((
|
|
1118
|
+
var $, x;
|
|
1119
|
+
return (u == null ? void 0 : u.id) === ((x = ($ = t.floor) == null ? void 0 : $.block_id) == null ? void 0 : x.toString());
|
|
1120
1120
|
}
|
|
1121
|
-
),
|
|
1121
|
+
), E.value = (g = (d = _.value) == null ? void 0 : d.find(
|
|
1122
1122
|
(u) => {
|
|
1123
1123
|
var $;
|
|
1124
1124
|
return (u == null ? void 0 : u.value) == (($ = t.floor) == null ? void 0 : $.id);
|
|
@@ -1130,30 +1130,30 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
1130
1130
|
var g;
|
|
1131
1131
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
1132
1132
|
hoverdData: y.value,
|
|
1133
|
-
type: (g =
|
|
1133
|
+
type: (g = v.value) == null ? void 0 : g.type
|
|
1134
1134
|
}, {
|
|
1135
1135
|
header: withCtx(() => [
|
|
1136
|
-
createVNode(_sfc_main$c, { onClick:
|
|
1136
|
+
createVNode(_sfc_main$c, { onClick: h }),
|
|
1137
1137
|
createElementVNode("div", _hoisted_1$8, [
|
|
1138
1138
|
createVNode(_sfc_main$e, {
|
|
1139
|
-
modelValue:
|
|
1140
|
-
"onUpdate:modelValue": d[0] || (d[0] = (u) =>
|
|
1141
|
-
data:
|
|
1139
|
+
modelValue: E.value,
|
|
1140
|
+
"onUpdate:modelValue": d[0] || (d[0] = (u) => E.value = u),
|
|
1141
|
+
data: _.value
|
|
1142
1142
|
}, null, 8, ["modelValue", "data"])
|
|
1143
1143
|
])
|
|
1144
1144
|
]),
|
|
1145
1145
|
default: withCtx(() => {
|
|
1146
|
-
var u, $,
|
|
1146
|
+
var u, $, x;
|
|
1147
1147
|
return [
|
|
1148
1148
|
createElementVNode("div", _hoisted_2$4, [
|
|
1149
1149
|
createElementVNode("img", {
|
|
1150
|
-
src: ((
|
|
1150
|
+
src: ((x = ($ = (u = n.floor) == null ? void 0 : u.floor_image) == null ? void 0 : $[0]) == null ? void 0 : x.url) || "",
|
|
1151
1151
|
alt: "",
|
|
1152
1152
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1153
1153
|
}, null, 8, _hoisted_3$4),
|
|
1154
1154
|
(openBlock(), createElementBlock("div", {
|
|
1155
1155
|
ref_key: "svgRef",
|
|
1156
|
-
ref:
|
|
1156
|
+
ref: l,
|
|
1157
1157
|
innerHTML: b.value,
|
|
1158
1158
|
key: b.value,
|
|
1159
1159
|
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",
|
|
@@ -1239,9 +1239,9 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1239
1239
|
},
|
|
1240
1240
|
emits: ["changeComponent"],
|
|
1241
1241
|
setup(e) {
|
|
1242
|
-
const o = e, r = ref(!1), t = ref(0),
|
|
1243
|
-
var
|
|
1244
|
-
const i = r.value ? (
|
|
1242
|
+
const o = e, r = ref(!1), t = ref(0), s = computed$1(() => {
|
|
1243
|
+
var l, f, v, y, E, w;
|
|
1244
|
+
const i = r.value ? (v = (f = (l = o.flat) == null ? void 0 : l.type) == null ? void 0 : f.image_2d) == null ? void 0 : v.length : (w = (E = (y = o.flat) == null ? void 0 : y.type) == null ? void 0 : E.image_3d) == null ? void 0 : w.length;
|
|
1245
1245
|
return ["I", "II", "III"].slice(0, i);
|
|
1246
1246
|
});
|
|
1247
1247
|
return watch(
|
|
@@ -1250,10 +1250,10 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1250
1250
|
t.value = 0;
|
|
1251
1251
|
}
|
|
1252
1252
|
), onMounted(() => {
|
|
1253
|
-
var i,
|
|
1254
|
-
Object.keys(((
|
|
1255
|
-
}), (i,
|
|
1256
|
-
var
|
|
1253
|
+
var i, l;
|
|
1254
|
+
Object.keys(((l = (i = o.flat) == null ? void 0 : i.type) == null ? void 0 : l.image_3d) || {}).length || (r.value = !0);
|
|
1255
|
+
}), (i, l) => {
|
|
1256
|
+
var f, v, y, E, w, b, _, c, p, a, h, n, d, g, u, $, x, m, k, V, S, D, C, B, M, R, N, P, O, A, F;
|
|
1257
1257
|
return openBlock(), createElementBlock("div", null, [
|
|
1258
1258
|
createElementVNode("div", _hoisted_1$5, [
|
|
1259
1259
|
createElementVNode("div", _hoisted_2$3, [
|
|
@@ -1262,7 +1262,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1262
1262
|
mode: "out-in"
|
|
1263
1263
|
}, {
|
|
1264
1264
|
default: withCtx(() => {
|
|
1265
|
-
var j, T, L, I, H, z, W, K, Y, U, X, q, Z, J, Q, G, ee, te, oe, re, ie,
|
|
1265
|
+
var j, T, L, I, H, z, W, K, Y, U, X, q, Z, J, Q, G, ee, te, oe, re, ie, le, se, ne;
|
|
1266
1266
|
return [
|
|
1267
1267
|
r.value && ((I = (L = (T = (j = i.flat) == null ? void 0 : j.type) == null ? void 0 : T.image_2d) == null ? void 0 : L[t.value]) != null && I.url) ? (openBlock(), createElementBlock("img", {
|
|
1268
1268
|
key: (K = (W = (z = (H = i.flat) == null ? void 0 : H.type) == null ? void 0 : z.image_2d) == null ? void 0 : W[t.value]) == null ? void 0 : K.url,
|
|
@@ -1270,7 +1270,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1270
1270
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-[30rem]"
|
|
1271
1271
|
}, null, 8, _hoisted_3$3)) : (G = (Q = (J = (Z = i.flat) == null ? void 0 : Z.type) == null ? void 0 : J.image_3d) == null ? void 0 : Q[t.value]) != null && G.url ? (openBlock(), createElementBlock("img", {
|
|
1272
1272
|
src: (re = (oe = (te = (ee = i.flat) == null ? void 0 : ee.type) == null ? void 0 : te.image_3d) == null ? void 0 : oe[t.value]) == null ? void 0 : re.url,
|
|
1273
|
-
key: (ne = (
|
|
1273
|
+
key: (ne = (se = (le = (ie = i.flat) == null ? void 0 : ie.type) == null ? void 0 : le.image_3d) == null ? void 0 : se[t.value]) == null ? void 0 : ne.url,
|
|
1274
1274
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-[30rem]"
|
|
1275
1275
|
}, null, 8, _hoisted_4$2)) : createCommentVNode("", !0)
|
|
1276
1276
|
];
|
|
@@ -1279,10 +1279,10 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1279
1279
|
}),
|
|
1280
1280
|
createElementVNode("div", _hoisted_5, [
|
|
1281
1281
|
createElementVNode("div", _hoisted_6, [
|
|
1282
|
-
(
|
|
1282
|
+
(E = (y = (v = (f = i.flat) == null ? void 0 : f.type) == null ? void 0 : v.image_3d) == null ? void 0 : y[0]) != null && E.url ? (openBlock(), createElementBlock("div", {
|
|
1283
1283
|
key: 0,
|
|
1284
1284
|
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": !r.value }]),
|
|
1285
|
-
onClick:
|
|
1285
|
+
onClick: l[0] || (l[0] = (j) => r.value = !1)
|
|
1286
1286
|
}, [
|
|
1287
1287
|
createElementVNode("div", null, [
|
|
1288
1288
|
createVNode(Cube, {
|
|
@@ -1296,10 +1296,10 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1296
1296
|
}])
|
|
1297
1297
|
}, toDisplayString(unref(tr)("3d plan")), 3)
|
|
1298
1298
|
], 2)) : createCommentVNode("", !0),
|
|
1299
|
-
(c = (
|
|
1299
|
+
(c = (_ = (b = (w = i.flat) == null ? void 0 : w.type) == null ? void 0 : b.image_2d) == null ? void 0 : _[0]) != null && c.url ? (openBlock(), createElementBlock("div", {
|
|
1300
1300
|
key: 1,
|
|
1301
1301
|
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": r.value }]),
|
|
1302
|
-
onClick:
|
|
1302
|
+
onClick: l[1] || (l[1] = (j) => r.value = !0)
|
|
1303
1303
|
}, [
|
|
1304
1304
|
createVNode(FlatIcon, {
|
|
1305
1305
|
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": r.value }])
|
|
@@ -1312,8 +1312,8 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1312
1312
|
}, toDisplayString(unref(tr)("2d plan")), 3)
|
|
1313
1313
|
], 2)) : createCommentVNode("", !0)
|
|
1314
1314
|
]),
|
|
1315
|
-
((p =
|
|
1316
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
1315
|
+
((p = s.value) == null ? void 0 : p.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
1316
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (j, T) => (openBlock(), createElementBlock("div", {
|
|
1317
1317
|
key: j,
|
|
1318
1318
|
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", {
|
|
1319
1319
|
"ire-bg-black ire-text-white": t.value === T
|
|
@@ -1328,9 +1328,9 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1328
1328
|
createElementVNode("div", _hoisted_11, toDisplayString((a = i.flat) == null ? void 0 : a.flat_number), 1),
|
|
1329
1329
|
createElementVNode("div", _hoisted_12, toDisplayString(unref(tr)("apartment")), 1)
|
|
1330
1330
|
]),
|
|
1331
|
-
(n = (
|
|
1331
|
+
(n = (h = i.flat) == null ? void 0 : h.type) != null && n.title || (g = (d = i.flat) == null ? void 0 : d.type) != null && g.teaser ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
1332
1332
|
createElementVNode("div", _hoisted_14, toDisplayString(($ = (u = i.flat) == null ? void 0 : u.type) == null ? void 0 : $.title), 1),
|
|
1333
|
-
createElementVNode("div", _hoisted_15, toDisplayString((m = (
|
|
1333
|
+
createElementVNode("div", _hoisted_15, toDisplayString((m = (x = i.flat) == null ? void 0 : x.type) == null ? void 0 : m.teaser), 1)
|
|
1334
1334
|
])) : createCommentVNode("", !0),
|
|
1335
1335
|
createElementVNode("div", _hoisted_16, [
|
|
1336
1336
|
(k = i.flat) != null && k.floor_number ? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
@@ -1345,7 +1345,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1345
1345
|
(M = (B = i.flat) == null ? void 0 : B.type) != null && M.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
1346
1346
|
createElementVNode("div", _hoisted_24, [
|
|
1347
1347
|
createTextVNode(toDisplayString(Number((R = i.flat) == null ? void 0 : R.type.area_m2).toLocaleString("fr-FR")) + " ", 1),
|
|
1348
|
-
|
|
1348
|
+
l[2] || (l[2] = createElementVNode("span", null, [
|
|
1349
1349
|
createTextVNode(" m "),
|
|
1350
1350
|
createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
|
|
1351
1351
|
], -1))
|
|
@@ -1434,15 +1434,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1434
1434
|
},
|
|
1435
1435
|
setup(e) {
|
|
1436
1436
|
return (o, r) => {
|
|
1437
|
-
var t,
|
|
1437
|
+
var t, s, i, l, f, v, y, E, w, b, _, c;
|
|
1438
1438
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
1439
|
-
createElementVNode("p", _hoisted_2$1, toDisplayString((
|
|
1439
|
+
createElementVNode("p", _hoisted_2$1, toDisplayString((s = (t = o.modalData) == null ? void 0 : t.modalObject) == null ? void 0 : s.title), 1),
|
|
1440
1440
|
createVNode(_sfc_main$5, {
|
|
1441
|
-
editor: (
|
|
1441
|
+
editor: (l = (i = o.modalData) == null ? void 0 : i.modalObject) == null ? void 0 : l.description
|
|
1442
1442
|
}, null, 8, ["editor"]),
|
|
1443
|
-
(
|
|
1443
|
+
(E = (y = (v = (f = o.modalData) == null ? void 0 : f.modalObject) == null ? void 0 : v.modalImage) == null ? void 0 : y[0]) != null && E.url ? (openBlock(), createElementBlock("img", {
|
|
1444
1444
|
key: 0,
|
|
1445
|
-
src: (c = (
|
|
1445
|
+
src: (c = (_ = (b = (w = o.modalData) == null ? void 0 : w.modalObject) == null ? void 0 : b.modalImage) == null ? void 0 : _[0]) == null ? void 0 : c.url,
|
|
1446
1446
|
alt: "",
|
|
1447
1447
|
class: "ire-mt-5 ire-h-[400px] ire-w-full ire-object-contain"
|
|
1448
1448
|
}, null, 8, _hoisted_3$1)) : createCommentVNode("", !0)
|
|
@@ -1459,99 +1459,99 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1459
1459
|
},
|
|
1460
1460
|
emits: ["changeComponent"],
|
|
1461
1461
|
setup(e, { emit: o }) {
|
|
1462
|
-
const r = o, t = e,
|
|
1463
|
-
var
|
|
1464
|
-
if ((
|
|
1462
|
+
const r = o, t = e, s = useGlobalStore(), i = inject("showFlatModal"), l = ref(), f = ref(null), v = ref(), y = ref(), E = computed$1(() => {
|
|
1463
|
+
var _, c;
|
|
1464
|
+
if ((_ = t.block) != null && _.svg)
|
|
1465
1465
|
return (c = t.block) == null ? void 0 : c.svg;
|
|
1466
|
-
}), w = (
|
|
1467
|
-
const c =
|
|
1468
|
-
c && (
|
|
1469
|
-
}, b = (
|
|
1470
|
-
var p, a,
|
|
1471
|
-
const c =
|
|
1466
|
+
}), w = (_) => {
|
|
1467
|
+
const c = _.target;
|
|
1468
|
+
c && (f.value = c);
|
|
1469
|
+
}, b = (_) => {
|
|
1470
|
+
var p, a, h;
|
|
1471
|
+
const c = _.target;
|
|
1472
1472
|
(c == null ? void 0 : c.nodeName) === "path" && (((p = y.value) == null ? void 0 : p.conf) === "sold" || ((a = y.value) == null ? void 0 : a.conf) === "reserved" || r(
|
|
1473
1473
|
"changeComponent",
|
|
1474
|
-
((
|
|
1474
|
+
((h = v.value) == null ? void 0 : h.type) || "",
|
|
1475
1475
|
y.value
|
|
1476
1476
|
));
|
|
1477
1477
|
};
|
|
1478
1478
|
return watch(
|
|
1479
1479
|
() => i == null ? void 0 : i.value,
|
|
1480
1480
|
() => {
|
|
1481
|
-
i != null && i.value || (
|
|
1481
|
+
i != null && i.value || (f.value = null, v.value = null);
|
|
1482
1482
|
}
|
|
1483
1483
|
), watch(
|
|
1484
|
-
() =>
|
|
1485
|
-
(
|
|
1486
|
-
var p, a,
|
|
1487
|
-
if (!
|
|
1488
|
-
|
|
1489
|
-
const c =
|
|
1484
|
+
() => f.value,
|
|
1485
|
+
(_) => {
|
|
1486
|
+
var p, a, h, n, d, g, u, $;
|
|
1487
|
+
if (!_) return;
|
|
1488
|
+
s.hoverdSvg = _;
|
|
1489
|
+
const c = _ == null ? void 0 : _.parentElement;
|
|
1490
1490
|
if (c && (c == null ? void 0 : c.nodeName) === "g") {
|
|
1491
|
-
const
|
|
1492
|
-
if (!
|
|
1493
|
-
if (((
|
|
1491
|
+
const x = c == null ? void 0 : c.getAttribute("id");
|
|
1492
|
+
if (!x || (v.value = ((a = (p = t.block) == null ? void 0 : p.polygon_data) == null ? void 0 : a.find((m) => (m == null ? void 0 : m.key) === x)) || null, !v.value)) return;
|
|
1493
|
+
if (((h = v.value) == null ? void 0 : h.type) === "floor") {
|
|
1494
1494
|
const m = (n = t.floors) == null ? void 0 : n.find(
|
|
1495
1495
|
(k) => {
|
|
1496
1496
|
var V;
|
|
1497
|
-
return (k == null ? void 0 : k.id) === ((V =
|
|
1497
|
+
return (k == null ? void 0 : k.id) === ((V = v.value) == null ? void 0 : V.id);
|
|
1498
1498
|
}
|
|
1499
1499
|
);
|
|
1500
1500
|
y.value = m;
|
|
1501
|
-
} else if (((d =
|
|
1501
|
+
} else if (((d = v.value) == null ? void 0 : d.type) === "flat") {
|
|
1502
1502
|
const m = (g = t.flats) == null ? void 0 : g.find(
|
|
1503
1503
|
(k) => {
|
|
1504
1504
|
var V;
|
|
1505
|
-
return (k == null ? void 0 : k.id) === ((V =
|
|
1505
|
+
return (k == null ? void 0 : k.id) === ((V = v.value) == null ? void 0 : V.id);
|
|
1506
1506
|
}
|
|
1507
1507
|
);
|
|
1508
1508
|
y.value = m;
|
|
1509
|
-
} else if (((u =
|
|
1509
|
+
} else if (((u = v.value) == null ? void 0 : u.type) === "tooltip") {
|
|
1510
1510
|
const m = ($ = t.actions) == null ? void 0 : $.find(
|
|
1511
1511
|
(k) => {
|
|
1512
1512
|
var V;
|
|
1513
|
-
return (k == null ? void 0 : k.id) === ((V =
|
|
1513
|
+
return (k == null ? void 0 : k.id) === ((V = v.value) == null ? void 0 : V.id);
|
|
1514
1514
|
}
|
|
1515
1515
|
);
|
|
1516
1516
|
y.value = m;
|
|
1517
1517
|
} else
|
|
1518
1518
|
y.value = null;
|
|
1519
1519
|
} else
|
|
1520
|
-
|
|
1520
|
+
v.value = null, y.value = null;
|
|
1521
1521
|
}
|
|
1522
1522
|
), onMounted(() => {
|
|
1523
1523
|
document.addEventListener("mousemove", w);
|
|
1524
1524
|
}), onUnmounted(() => {
|
|
1525
1525
|
document.removeEventListener("mousemove", w);
|
|
1526
|
-
}), (
|
|
1526
|
+
}), (_, c) => {
|
|
1527
1527
|
var p;
|
|
1528
1528
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
1529
1529
|
hoverdData: y.value,
|
|
1530
|
-
type: (p =
|
|
1530
|
+
type: (p = v.value) == null ? void 0 : p.type
|
|
1531
1531
|
}, {
|
|
1532
1532
|
header: withCtx(() => {
|
|
1533
1533
|
var a;
|
|
1534
1534
|
return [
|
|
1535
1535
|
createVNode(_sfc_main$c, {
|
|
1536
|
-
onClick: c[0] || (c[0] = (
|
|
1536
|
+
onClick: c[0] || (c[0] = (h) => _.$emit("changeComponent", "project", null))
|
|
1537
1537
|
}),
|
|
1538
|
-
createElementVNode("p", _hoisted_1, toDisplayString((a =
|
|
1538
|
+
createElementVNode("p", _hoisted_1, toDisplayString((a = _.block) == null ? void 0 : a.title), 1)
|
|
1539
1539
|
];
|
|
1540
1540
|
}),
|
|
1541
1541
|
default: withCtx(() => {
|
|
1542
|
-
var a,
|
|
1542
|
+
var a, h, n, d, g, u;
|
|
1543
1543
|
return [
|
|
1544
1544
|
createElementVNode("div", _hoisted_2, [
|
|
1545
1545
|
createElementVNode("img", {
|
|
1546
|
-
src: ((n = (
|
|
1546
|
+
src: ((n = (h = (a = _.block) == null ? void 0 : a.block_image) == null ? void 0 : h[0]) == null ? void 0 : n.url) || "",
|
|
1547
1547
|
alt: "",
|
|
1548
1548
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1549
1549
|
}, null, 8, _hoisted_3),
|
|
1550
1550
|
(openBlock(), createElementBlock("div", {
|
|
1551
1551
|
ref_key: "svgRef",
|
|
1552
|
-
ref:
|
|
1553
|
-
innerHTML:
|
|
1554
|
-
key:
|
|
1552
|
+
ref: l,
|
|
1553
|
+
innerHTML: E.value,
|
|
1554
|
+
key: E.value,
|
|
1555
1555
|
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", [
|
|
1556
1556
|
{
|
|
1557
1557
|
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((d = y.value) == null ? void 0 : d.conf) === "reserved",
|
|
@@ -1571,27 +1571,27 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1571
1571
|
}), _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1572
1572
|
__name: "MouseTracker",
|
|
1573
1573
|
setup(e) {
|
|
1574
|
-
const o = useGlobalStore(), r = ref(!0), t = ref(-400),
|
|
1575
|
-
let
|
|
1576
|
-
const y = (b,
|
|
1577
|
-
if (
|
|
1574
|
+
const o = useGlobalStore(), r = ref(!0), t = ref(-400), s = ref(-400), i = ref(null);
|
|
1575
|
+
let l = null, f = 0, v = 0;
|
|
1576
|
+
const y = (b, _, c) => b * (1 - c) + _ * c, E = () => {
|
|
1577
|
+
if (l) return;
|
|
1578
1578
|
const b = () => {
|
|
1579
|
-
t.value = y(t.value,
|
|
1579
|
+
t.value = y(t.value, f, 0.06), s.value = y(s.value, v, 0.06), Math.abs(t.value - f) > 0.06 || Math.abs(s.value - v) > 0.06 ? l = requestAnimationFrame(b) : l = null;
|
|
1580
1580
|
};
|
|
1581
|
-
|
|
1581
|
+
l = requestAnimationFrame(b);
|
|
1582
1582
|
}, w = (b) => {
|
|
1583
1583
|
var $;
|
|
1584
|
-
const
|
|
1585
|
-
if (!i.value || !
|
|
1584
|
+
const _ = document.querySelector(".irep-tooltip"), c = (($ = o.hoverdSvg) == null ? void 0 : $.nodeName) === "path" ? o.hoverdSvg : null;
|
|
1585
|
+
if (!i.value || !_ || !c)
|
|
1586
1586
|
return;
|
|
1587
|
-
const p = i.value.getBoundingClientRect(), a = c.getBoundingClientRect(),
|
|
1588
|
-
|
|
1587
|
+
const p = i.value.getBoundingClientRect(), a = c.getBoundingClientRect(), h = _.getBoundingClientRect(), n = p.left + p.width / 2, d = p.top + p.height / 2, g = a.left > n, u = a.bottom > d;
|
|
1588
|
+
f = b.clientX - p.left - (g ? h.width : -20), v = b.clientY - p.top - (u ? h.height : -20), r.value && (t.value = f, s.value = v), E(), r.value = !1;
|
|
1589
1589
|
};
|
|
1590
1590
|
return onMounted(() => {
|
|
1591
1591
|
document.addEventListener("mousemove", w);
|
|
1592
1592
|
}), onUnmounted(() => {
|
|
1593
|
-
document.removeEventListener("mousemove", w),
|
|
1594
|
-
}), provide("mouseX", t), provide("mouseY",
|
|
1593
|
+
document.removeEventListener("mousemove", w), l && cancelAnimationFrame(l);
|
|
1594
|
+
}), provide("mouseX", t), provide("mouseY", s), (b, _) => (openBlock(), createElementBlock("div", {
|
|
1595
1595
|
ref_key: "canvasRef",
|
|
1596
1596
|
ref: i
|
|
1597
1597
|
}, [
|
|
@@ -1604,7 +1604,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1604
1604
|
shortcodeDataProps: {}
|
|
1605
1605
|
},
|
|
1606
1606
|
setup(__props) {
|
|
1607
|
-
var e, o, r, t,
|
|
1607
|
+
var e, o, r, t, s, i, l, f, v, y, E, w, b, _;
|
|
1608
1608
|
const props = __props, getMeta = (c) => props.shortcodeDataProps.meta.find(
|
|
1609
1609
|
(p) => p.meta_key === c
|
|
1610
1610
|
), constants = ref({
|
|
@@ -1612,17 +1612,17 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1612
1612
|
PREVIEW_PATH_HOVER_COLOR: ((o = getMeta("path_hover_color")) == null ? void 0 : o.meta_value) || "rgba(250, 250, 250, 0.54)",
|
|
1613
1613
|
PREVIEW_RESERVED_COLOR: ((r = getMeta("reserved_color")) == null ? void 0 : r.meta_value) || "rgba(255, 247, 89, 0.53)",
|
|
1614
1614
|
PREVIEW_SOLD_COLOR: ((t = getMeta("sold_color")) == null ? void 0 : t.meta_value) || "rgba(219, 64, 64, 0.45)",
|
|
1615
|
-
PREVIEW_STROKE_COLOR: ((
|
|
1615
|
+
PREVIEW_STROKE_COLOR: ((s = getMeta("stroke_color")) == null ? void 0 : s.meta_value) || "rgba(0, 0, 0, 1)",
|
|
1616
1616
|
PREVIEW_STROKE_WIDTH: +((i = getMeta("stroke_width")) == null ? void 0 : i.meta_value) || 1,
|
|
1617
|
-
PREVIEW_BORDER_RADIUS: +((
|
|
1617
|
+
PREVIEW_BORDER_RADIUS: +((l = getMeta("border_radius")) == null ? void 0 : l.meta_value) || 0
|
|
1618
1618
|
}), colors = reactive({
|
|
1619
|
-
path: (
|
|
1620
|
-
path_hover: (
|
|
1619
|
+
path: (f = constants.value) == null ? void 0 : f.PREVIEW_PATH_COLOR,
|
|
1620
|
+
path_hover: (v = constants.value) == null ? void 0 : v.PREVIEW_PATH_HOVER_COLOR,
|
|
1621
1621
|
reserved: (y = constants.value) == null ? void 0 : y.PREVIEW_RESERVED_COLOR,
|
|
1622
|
-
sold: (
|
|
1622
|
+
sold: (E = constants.value) == null ? void 0 : E.PREVIEW_SOLD_COLOR,
|
|
1623
1623
|
stroke_color: (w = constants.value) == null ? void 0 : w.PREVIEW_STROKE_COLOR,
|
|
1624
1624
|
stroke_width: (b = constants.value) == null ? void 0 : b.PREVIEW_STROKE_WIDTH,
|
|
1625
|
-
border_radius: (
|
|
1625
|
+
border_radius: (_ = constants.value) == null ? void 0 : _.PREVIEW_BORDER_RADIUS
|
|
1626
1626
|
}), cssVariables = computed$1(() => ({
|
|
1627
1627
|
"--reserved-color": colors.reserved,
|
|
1628
1628
|
"--sold-color": colors.sold,
|
|
@@ -1642,7 +1642,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1642
1642
|
if (shortcodeData.value)
|
|
1643
1643
|
return (c = shortcodeData.value.floors) == null || c.forEach((a) => {
|
|
1644
1644
|
var d, g;
|
|
1645
|
-
const
|
|
1645
|
+
const h = (g = (d = shortcodeData.value) == null ? void 0 : d.flats) == null ? void 0 : g.filter((u) => {
|
|
1646
1646
|
var $;
|
|
1647
1647
|
return (u == null ? void 0 : u.floor_number) !== (($ = a == null ? void 0 : a.floor_number) == null ? void 0 : $.toString()) ? !1 : a != null && a.polygon_data ? Object == null ? void 0 : Object.values(a == null ? void 0 : a.polygon_data).some(
|
|
1648
1648
|
(m) => {
|
|
@@ -1651,10 +1651,10 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1651
1651
|
}
|
|
1652
1652
|
) : !1;
|
|
1653
1653
|
});
|
|
1654
|
-
a.flats =
|
|
1654
|
+
a.flats = h;
|
|
1655
1655
|
const { conf: n } = a || {};
|
|
1656
|
-
if (
|
|
1657
|
-
const u =
|
|
1656
|
+
if (h != null && h.length && !n) {
|
|
1657
|
+
const u = h == null ? void 0 : h.every((x) => (x == null ? void 0 : x.conf) === "reserved"), $ = h == null ? void 0 : h.every((x) => (x == null ? void 0 : x.conf) === "sold");
|
|
1658
1658
|
u ? a.conf = "reserved" : $ && (a.conf = "sold");
|
|
1659
1659
|
}
|
|
1660
1660
|
}), (p = shortcodeData.value) == null ? void 0 : p.floors;
|
|
@@ -1668,9 +1668,9 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1668
1668
|
var c, p;
|
|
1669
1669
|
if (shortcodeData.value)
|
|
1670
1670
|
return (p = (c = shortcodeData.value) == null ? void 0 : c.flats) == null ? void 0 : p.map((a) => {
|
|
1671
|
-
var
|
|
1671
|
+
var h;
|
|
1672
1672
|
if (a != null && a.use_type || !(a != null && a.type)) {
|
|
1673
|
-
const n = (
|
|
1673
|
+
const n = (h = types.value) == null ? void 0 : h.find((d) => (d == null ? void 0 : d.id) === (a == null ? void 0 : a.type_id));
|
|
1674
1674
|
n && (a.type = n);
|
|
1675
1675
|
}
|
|
1676
1676
|
return a;
|
|
@@ -1685,7 +1685,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1685
1685
|
return (c = shortcodeData.value) == null ? void 0 : c.meta;
|
|
1686
1686
|
}), getColorMeta = (c) => {
|
|
1687
1687
|
var p, a;
|
|
1688
|
-
return (a = (p = projectMeta.value) == null ? void 0 : p.find((
|
|
1688
|
+
return (a = (p = projectMeta.value) == null ? void 0 : p.find((h) => (h == null ? void 0 : h.meta_key) === c)) == null ? void 0 : a.meta_value;
|
|
1689
1689
|
}, changeRoute = (flowType, polygonItem) => {
|
|
1690
1690
|
switch (flowType) {
|
|
1691
1691
|
case "project":
|
|
@@ -1721,8 +1721,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1721
1721
|
return watch(
|
|
1722
1722
|
() => projectMeta.value,
|
|
1723
1723
|
() => {
|
|
1724
|
-
const c = getColorMeta("path_color"), p = getColorMeta("path_hover_color"), a = getColorMeta("reserved_color"),
|
|
1725
|
-
c && (colors.path = c.toString()), p && (colors.path_hover = p.toString()), a && (colors.reserved = a.toString()),
|
|
1724
|
+
const c = getColorMeta("path_color"), p = getColorMeta("path_hover_color"), a = getColorMeta("reserved_color"), h = getColorMeta("sold_color"), n = getColorMeta("stroke_color"), d = getColorMeta("stroke_width");
|
|
1725
|
+
c && (colors.path = c.toString()), p && (colors.path_hover = p.toString()), a && (colors.reserved = a.toString()), h && (colors.sold = h.toString()), n && (colors.stroke_color = n.toString()), d && (colors.stroke_width = Number(d));
|
|
1726
1726
|
}
|
|
1727
1727
|
), provide("showFlatModal", showFlatModal), provide("showFlatModal", showFlatModal), (c, p) => (openBlock(), createBlock(_sfc_main$2, { class: "interactive-real-estate" }, {
|
|
1728
1728
|
default: withCtx(() => [
|
|
@@ -1743,14 +1743,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1743
1743
|
projectMeta: projectMeta.value,
|
|
1744
1744
|
blocks: blocks.value,
|
|
1745
1745
|
actions: actions.value,
|
|
1746
|
-
onChangeComponent: p[0] || (p[0] = (a,
|
|
1746
|
+
onChangeComponent: p[0] || (p[0] = (a, h) => changeRoute(a, h))
|
|
1747
1747
|
}, null, 8, ["project", "floors", "flats", "projectMeta", "blocks", "actions"])) : flow.value === "blockFlow" && flats.value && floors.value && blocks.value && activeBlock.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
1748
1748
|
key: 1,
|
|
1749
1749
|
block: activeBlock.value,
|
|
1750
1750
|
flats: flats.value,
|
|
1751
1751
|
floors: floors.value,
|
|
1752
1752
|
actions: actions.value,
|
|
1753
|
-
onChangeComponent: p[1] || (p[1] = (a,
|
|
1753
|
+
onChangeComponent: p[1] || (p[1] = (a, h) => changeRoute(a, h))
|
|
1754
1754
|
}, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$b, {
|
|
1755
1755
|
key: 2,
|
|
1756
1756
|
flats: flats.value,
|
|
@@ -1758,7 +1758,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1758
1758
|
floors: floors.value,
|
|
1759
1759
|
blocks: blocks.value,
|
|
1760
1760
|
actions: actions.value,
|
|
1761
|
-
onChangeComponent: p[2] || (p[2] = (a,
|
|
1761
|
+
onChangeComponent: p[2] || (p[2] = (a, h) => changeRoute(a, h))
|
|
1762
1762
|
}, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : createCommentVNode("", !0)
|
|
1763
1763
|
], 4)) : createCommentVNode("", !0)
|
|
1764
1764
|
]),
|
|
@@ -1778,7 +1778,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1778
1778
|
createVNode(_sfc_main$8, {
|
|
1779
1779
|
flat: hoveredData.value,
|
|
1780
1780
|
floors: floors.value,
|
|
1781
|
-
onChangeComponent: p[3] || (p[3] = (a,
|
|
1781
|
+
onChangeComponent: p[3] || (p[3] = (a, h) => changeRoute(a, h))
|
|
1782
1782
|
}, null, 8, ["flat", "floors"])
|
|
1783
1783
|
]),
|
|
1784
1784
|
_: 1
|