ire-preview 2.3.2 → 2.3.4
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 +481 -461
- package/dist/src/components/demo/layout/MouseTracker.vue.d.ts +18 -0
- 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, normalizeStyle, ref, watch, renderSlot, effectScope, markRaw, hasInjectionContext, reactive, isRef, isReactive, toRaw, getCurrentScope, onScopeDispose, nextTick, toRefs, normalizeClass, mergeModels, useModel, withDirectives, renderList, vModelSelect, onMounted, createStaticVNode, onUnmounted, provide, Teleport, createApp } from "vue";
|
|
2
2
|
const _export_sfc = (t, o) => {
|
|
3
3
|
const r = t.__vccOpts || t;
|
|
4
|
-
for (const [e,
|
|
5
|
-
r[e] =
|
|
4
|
+
for (const [e, s] of o)
|
|
5
|
+
r[e] = s;
|
|
6
6
|
return r;
|
|
7
7
|
}, _sfc_main$k = {};
|
|
8
8
|
function _sfc_render$4(t, o) {
|
|
@@ -66,8 +66,8 @@ function prepareDeps(t) {
|
|
|
66
66
|
function cleanupDeps(t) {
|
|
67
67
|
let o, r = t.depsTail, e = r;
|
|
68
68
|
for (; e; ) {
|
|
69
|
-
const
|
|
70
|
-
e.version === -1 ? (e === r && (r =
|
|
69
|
+
const s = e.prevDep;
|
|
70
|
+
e.version === -1 ? (e === r && (r = s), removeSub(e), removeDep(e)) : o = e, e.dep.activeLink = e.prevActiveLink, e.prevActiveLink = void 0, e = s;
|
|
71
71
|
}
|
|
72
72
|
t.deps = o, t.depsTail = r;
|
|
73
73
|
}
|
|
@@ -90,20 +90,20 @@ function refreshComputed(t) {
|
|
|
90
90
|
activeSub = t, shouldTrack = !0;
|
|
91
91
|
try {
|
|
92
92
|
prepareDeps(t);
|
|
93
|
-
const
|
|
94
|
-
(o.version === 0 || hasChanged(
|
|
95
|
-
} catch (
|
|
96
|
-
throw o.version++,
|
|
93
|
+
const s = t.fn(t._value);
|
|
94
|
+
(o.version === 0 || hasChanged(s, t._value)) && (t._value = s, o.version++);
|
|
95
|
+
} catch (s) {
|
|
96
|
+
throw o.version++, s;
|
|
97
97
|
} finally {
|
|
98
98
|
activeSub = r, shouldTrack = e, cleanupDeps(t), t.flags &= -3;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
function removeSub(t, o = !1) {
|
|
102
|
-
const { dep: r, prevSub: e, nextSub:
|
|
103
|
-
if (e && (e.nextSub =
|
|
102
|
+
const { dep: r, prevSub: e, nextSub: s } = t;
|
|
103
|
+
if (e && (e.nextSub = s, t.prevSub = void 0), s && (s.prevSub = e, t.nextSub = void 0), r.subs === t && (r.subs = e, !e && r.computed)) {
|
|
104
104
|
r.computed.flags &= -5;
|
|
105
|
-
for (let
|
|
106
|
-
removeSub(
|
|
105
|
+
for (let n = r.computed.deps; n; n = n.nextDep)
|
|
106
|
+
removeSub(n, !0);
|
|
107
107
|
}
|
|
108
108
|
!o && !--r.sc && r.map && r.map.delete(r.key);
|
|
109
109
|
}
|
|
@@ -182,8 +182,8 @@ class ComputedRefImpl {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
function computed(t, o, r = !1) {
|
|
185
|
-
let e,
|
|
186
|
-
return isFunction(t) ? e = t : (e = t.get,
|
|
185
|
+
let e, s;
|
|
186
|
+
return isFunction(t) ? e = t : (e = t.get, s = t.set), new ComputedRefImpl(e, s, r);
|
|
187
187
|
}
|
|
188
188
|
const tr = (t) => {
|
|
189
189
|
const o = inject("translations");
|
|
@@ -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 = {
|
|
@@ -235,29 +235,29 @@ const tr = (t) => {
|
|
|
235
235
|
var e;
|
|
236
236
|
return tr((e = o.hoveredData) == null ? void 0 : e.conf);
|
|
237
237
|
});
|
|
238
|
-
return (e,
|
|
238
|
+
return (e, s) => (openBlock(), createElementBlock("div", null, [
|
|
239
239
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
240
240
|
default: withCtx(() => {
|
|
241
|
-
var
|
|
241
|
+
var n, i, u, h, k, x, C, y, v, c, _, a, m, l, d, b, p, $, w, f, g, S, E, D, V;
|
|
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, [
|
|
245
245
|
createElementVNode("div", _hoisted_3$9, [
|
|
246
|
-
createElementVNode("div", _hoisted_4$7, toDisplayString((
|
|
246
|
+
createElementVNode("div", _hoisted_4$7, toDisplayString((n = e.hoveredData) == null ? void 0 : n.floor_number), 1),
|
|
247
247
|
createElementVNode("div", _hoisted_5$3, toDisplayString(unref(tr)("floor")), 1)
|
|
248
248
|
]),
|
|
249
|
-
(i = e.hoveredData) != null && i.conf || (
|
|
249
|
+
(i = e.hoveredData) != null && i.conf || (h = (u = e.hoveredData) == null ? void 0 : u.flats) != null && h.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
|
-
(
|
|
252
|
-
createElementVNode("div", _hoisted_10$3, toDisplayString(((
|
|
251
|
+
(x = (k = e.hoveredData) == null ? void 0 : k.counts) != null && x.available ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
|
|
252
|
+
createElementVNode("div", _hoisted_10$3, toDisplayString(((y = (C = e.hoveredData) == null ? void 0 : C.counts) == null ? void 0 : y.available) || 0), 1),
|
|
253
253
|
createElementVNode("div", _hoisted_11$3, toDisplayString(unref(tr)("available")), 1)
|
|
254
254
|
])) : createCommentVNode("", !0),
|
|
255
|
-
(
|
|
256
|
-
createElementVNode("div", _hoisted_13$2, toDisplayString((a = (
|
|
255
|
+
(c = (v = e.hoveredData) == null ? void 0 : v.counts) != null && c.reserved ? (openBlock(), createElementBlock("div", _hoisted_12$3, [
|
|
256
|
+
createElementVNode("div", _hoisted_13$2, toDisplayString((a = (_ = e.hoveredData) == null ? void 0 : _.counts) == null ? void 0 : a.reserved), 1),
|
|
257
257
|
createElementVNode("div", _hoisted_14$2, toDisplayString(unref(tr)("reserved")), 1)
|
|
258
258
|
])) : createCommentVNode("", !0),
|
|
259
|
-
(
|
|
260
|
-
createElementVNode("div", _hoisted_16$1, toDisplayString((b = (
|
|
259
|
+
(l = (m = e.hoveredData) == null ? void 0 : m.counts) != null && l.sold ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
|
|
260
|
+
createElementVNode("div", _hoisted_16$1, toDisplayString((b = (d = e.hoveredData) == null ? void 0 : d.counts) == null ? void 0 : b.sold), 1),
|
|
261
261
|
createElementVNode("div", _hoisted_17$1, toDisplayString(unref(tr)("sold")), 1)
|
|
262
262
|
])) : createCommentVNode("", !0)
|
|
263
263
|
]))
|
|
@@ -265,27 +265,27 @@ const tr = (t) => {
|
|
|
265
265
|
])) : e.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_18$1, [
|
|
266
266
|
createElementVNode("div", _hoisted_19$1, [
|
|
267
267
|
createElementVNode("span", _hoisted_20$1, toDisplayString(r.value), 1),
|
|
268
|
-
createElementVNode("div", _hoisted_21$1, toDisplayString((
|
|
268
|
+
createElementVNode("div", _hoisted_21$1, toDisplayString((p = e.hoveredData) == null ? void 0 : p.title), 1)
|
|
269
269
|
])
|
|
270
270
|
])) : e.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_22$1, [
|
|
271
271
|
createElementVNode("div", _hoisted_23$1, [
|
|
272
|
-
createElementVNode("div", _hoisted_24$1, toDisplayString((
|
|
272
|
+
createElementVNode("div", _hoisted_24$1, toDisplayString(($ = e.hoveredData) == null ? void 0 : $.flat_number), 1),
|
|
273
273
|
createElementVNode("div", _hoisted_25$1, toDisplayString(unref(tr)("apartment")), 1)
|
|
274
274
|
]),
|
|
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
|
+
(w = e.hoveredData) != null && w.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((S = e.hoveredData) == null ? void 0 : S.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((
|
|
297
|
-
(
|
|
298
|
-
)) == null ? void 0 :
|
|
299
|
-
|
|
296
|
+
createTextVNode(toDisplayString((V = Number(
|
|
297
|
+
(D = (E = e.hoveredData) == null ? void 0 : E.type) == null ? void 0 : D.area_m2
|
|
298
|
+
)) == null ? void 0 : V.toLocaleString("fr-FR")) + " m", 1),
|
|
299
|
+
s[0] || (s[0] = createElementVNode("sup", { class: "ire-bg-white !ire-text-xs" }, " 2 ", -1))
|
|
300
300
|
])
|
|
301
301
|
])
|
|
302
302
|
])) : createCommentVNode("", !0)
|
|
@@ -307,7 +307,7 @@ const tr = (t) => {
|
|
|
307
307
|
})
|
|
308
308
|
]));
|
|
309
309
|
}
|
|
310
|
-
}), _hoisted_1$f = { class: "tooltip-2 ire-flex ire-h-32 ire-w-32 ire-origin-top ire-items-center ire-justify-center ire-rounded-full ire-bg-black ire-p-4 ire-text-white ire-
|
|
310
|
+
}), _hoisted_1$f = { class: "tooltip-2 ire-flex ire-h-32 ire-w-32 ire-origin-top ire-items-center ire-justify-center ire-rounded-full ire-bg-black ire-p-4 ire-text-white ire-transition-transform ire-duration-500 ire-ease-in-out" }, _hoisted_2$9 = {
|
|
311
311
|
key: 0,
|
|
312
312
|
class: "ire-flex ire-flex-col ire-items-center !ire-text-sm"
|
|
313
313
|
}, _hoisted_3$8 = { class: "ire-capitalize" }, _hoisted_4$6 = {
|
|
@@ -328,58 +328,58 @@ 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: {},
|
|
335
335
|
type: {}
|
|
336
336
|
},
|
|
337
337
|
setup(t) {
|
|
338
|
-
const o = t, r = inject("mouseX"), e = inject("mouseY"),
|
|
339
|
-
var
|
|
340
|
-
return tr((
|
|
338
|
+
const o = t, r = inject("mouseX"), e = inject("mouseY"), s = computed$1(() => {
|
|
339
|
+
var n;
|
|
340
|
+
return tr((n = o.hoveredData) == null ? void 0 : n.conf);
|
|
341
341
|
});
|
|
342
|
-
return (
|
|
342
|
+
return (n, i) => (openBlock(), createBlock(Transition, { name: "ire-fade-in" }, {
|
|
343
343
|
default: withCtx(() => {
|
|
344
|
-
var
|
|
344
|
+
var u, h, k, x, C, y, v, c, _;
|
|
345
345
|
return [
|
|
346
|
-
|
|
346
|
+
n.type && n.hoveredData && n.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
|
|
347
347
|
key: 0,
|
|
348
|
-
class: "ire-pointer-events-none ire-absolute ire-left-0 ire-top-0 ire-select-none",
|
|
348
|
+
class: "ire-pointer-events-none ire-absolute ire-left-0 ire-top-0 ire-select-none ire-will-change-transform",
|
|
349
349
|
style: normalizeStyle({
|
|
350
350
|
transform: `translateX(${unref(r) || 0}px) translateY(${unref(e) || 0}px)`
|
|
351
351
|
})
|
|
352
352
|
}, [
|
|
353
353
|
createElementVNode("div", _hoisted_1$f, [
|
|
354
|
-
|
|
354
|
+
n.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
|
|
355
355
|
createElementVNode("div", _hoisted_3$8, [
|
|
356
356
|
createElementVNode("span", null, toDisplayString(unref(tr)("floor")), 1),
|
|
357
|
-
createTextVNode(": " + toDisplayString((
|
|
357
|
+
createTextVNode(": " + toDisplayString((u = n.hoveredData) == null ? void 0 : u.floor_number), 1)
|
|
358
358
|
]),
|
|
359
|
-
|
|
359
|
+
s.value ? (openBlock(), createElementBlock("div", _hoisted_4$6, toDisplayString(s.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
360
360
|
createElementVNode("span", null, toDisplayString(unref(tr)("available")), 1),
|
|
361
|
-
createTextVNode(": " + toDisplayString(((
|
|
361
|
+
createTextVNode(": " + toDisplayString(((k = (h = n.hoveredData) == null ? void 0 : h.counts) == null ? void 0 : k.available) || 0), 1)
|
|
362
362
|
]))
|
|
363
|
-
])) :
|
|
363
|
+
])) : n.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
|
|
364
364
|
createElementVNode("div", _hoisted_7$2, [
|
|
365
|
-
createElementVNode("div", null, toDisplayString((
|
|
366
|
-
createElementVNode("span", _hoisted_8$2, toDisplayString(
|
|
365
|
+
createElementVNode("div", null, toDisplayString((x = n.hoveredData) == null ? void 0 : x.title), 1),
|
|
366
|
+
createElementVNode("span", _hoisted_8$2, toDisplayString(s.value), 1)
|
|
367
367
|
])
|
|
368
|
-
])) :
|
|
369
|
-
createElementVNode("div", _hoisted_10$2, toDisplayString((
|
|
370
|
-
|
|
368
|
+
])) : n.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_9$2, [
|
|
369
|
+
createElementVNode("div", _hoisted_10$2, toDisplayString((C = n.hoveredData) == null ? void 0 : C.flat_number), 1),
|
|
370
|
+
s.value ? (openBlock(), createElementBlock("div", _hoisted_11$2, toDisplayString(s.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_12$2, [
|
|
371
371
|
createElementVNode("div", null, [
|
|
372
372
|
createElementVNode("div", _hoisted_13$1, [
|
|
373
|
-
createTextVNode(toDisplayString(Number((
|
|
374
|
-
|
|
373
|
+
createTextVNode(toDisplayString(Number((y = n.hoveredData) == null ? void 0 : y.price).toLocaleString("fr-FR")) + " ", 1),
|
|
374
|
+
createElementVNode("span", _hoisted_14$1, toDisplayString(unref(tr)("$")), 1)
|
|
375
375
|
])
|
|
376
376
|
])
|
|
377
377
|
])),
|
|
378
|
-
createElementVNode("div",
|
|
379
|
-
createTextVNode(toDisplayString((
|
|
378
|
+
createElementVNode("div", _hoisted_15$1, [
|
|
379
|
+
createTextVNode(toDisplayString((_ = Number((c = (v = n.hoveredData) == null ? void 0 : v.type) == null ? void 0 : c.area_m2)) == null ? void 0 : _.toLocaleString(
|
|
380
380
|
"fr-FR"
|
|
381
|
-
)) + "
|
|
382
|
-
i[
|
|
381
|
+
)) + " m ", 1),
|
|
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
|
])
|
|
@@ -389,7 +389,7 @@ const tr = (t) => {
|
|
|
389
389
|
_: 1
|
|
390
390
|
}));
|
|
391
391
|
}
|
|
392
|
-
}), _hoisted_1$e = { class: "tooltip-2 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-ease-in-out" }, _hoisted_2$8 = {
|
|
392
|
+
}), _hoisted_1$e = { class: "tooltip-2 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 = {
|
|
393
393
|
key: 0,
|
|
394
394
|
class: "ire-flex ire-flex-col ire-items-center ire-gap-3"
|
|
395
395
|
}, _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 = {
|
|
@@ -406,9 +406,9 @@ const tr = (t) => {
|
|
|
406
406
|
},
|
|
407
407
|
setup(t) {
|
|
408
408
|
const o = inject("mouseX"), r = inject("mouseY");
|
|
409
|
-
return (e,
|
|
409
|
+
return (e, s) => (openBlock(), createBlock(Transition, { name: "ire-fade-in" }, {
|
|
410
410
|
default: withCtx(() => {
|
|
411
|
-
var
|
|
411
|
+
var n, i, u;
|
|
412
412
|
return [
|
|
413
413
|
e.type && e.hoveredData && e.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
|
|
414
414
|
key: 0,
|
|
@@ -420,7 +420,7 @@ const tr = (t) => {
|
|
|
420
420
|
createElementVNode("div", _hoisted_1$e, [
|
|
421
421
|
e.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
422
422
|
createElementVNode("div", _hoisted_3$7, [
|
|
423
|
-
createElementVNode("div", _hoisted_4$5, toDisplayString((
|
|
423
|
+
createElementVNode("div", _hoisted_4$5, toDisplayString((n = e.hoveredData) == null ? void 0 : n.floor_number), 1),
|
|
424
424
|
createElementVNode("div", _hoisted_5$1, toDisplayString(unref(tr)("floor")), 1)
|
|
425
425
|
])
|
|
426
426
|
])) : e.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
@@ -429,7 +429,7 @@ const tr = (t) => {
|
|
|
429
429
|
])
|
|
430
430
|
])) : e.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
|
|
431
431
|
createElementVNode("div", _hoisted_10$1, [
|
|
432
|
-
createElementVNode("div", _hoisted_11$1, toDisplayString((
|
|
432
|
+
createElementVNode("div", _hoisted_11$1, toDisplayString((u = e.hoveredData) == null ? void 0 : u.flat_number), 1),
|
|
433
433
|
createElementVNode("div", _hoisted_12$1, toDisplayString(unref(tr)("apartment")), 1)
|
|
434
434
|
])
|
|
435
435
|
])) : createCommentVNode("", !0)
|
|
@@ -450,18 +450,18 @@ const tr = (t) => {
|
|
|
450
450
|
type: {}
|
|
451
451
|
},
|
|
452
452
|
setup(t) {
|
|
453
|
-
const o = inject("shortcodeData"), r = inject("showFlatModal"), e = ref(),
|
|
453
|
+
const o = inject("shortcodeData"), r = inject("showFlatModal"), e = ref(), s = ref(!0), n = computed$1(() => {
|
|
454
454
|
var i;
|
|
455
|
-
return ((i = o.meta.find((
|
|
455
|
+
return ((i = o.meta.find((u) => u.meta_key === "tooltip")) == null ? void 0 : i.meta_value) || "1";
|
|
456
456
|
});
|
|
457
457
|
return watch(
|
|
458
458
|
() => r == null ? void 0 : r.value,
|
|
459
459
|
() => {
|
|
460
|
-
r != null && r.value ?
|
|
461
|
-
|
|
460
|
+
r != null && r.value ? s.value = !1 : setTimeout(() => {
|
|
461
|
+
s.value = !0;
|
|
462
462
|
}, 400);
|
|
463
463
|
}
|
|
464
|
-
), (i,
|
|
464
|
+
), (i, u) => (openBlock(), createElementBlock("div", {
|
|
465
465
|
ref_key: "canvasRef",
|
|
466
466
|
ref: e,
|
|
467
467
|
class: "ire-relative ire-overflow-hidden [&_.tooltip-2]:active:!ire-scale-110"
|
|
@@ -472,13 +472,13 @@ const tr = (t) => {
|
|
|
472
472
|
renderSlot(i.$slots, "default"),
|
|
473
473
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
474
474
|
default: withCtx(() => [
|
|
475
|
-
|
|
476
|
-
|
|
475
|
+
s.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
476
|
+
n.value === "2" ? (openBlock(), createBlock(_sfc_main$i, {
|
|
477
477
|
key: 0,
|
|
478
478
|
"hovered-data": i.hoverdData,
|
|
479
479
|
type: i.type || "",
|
|
480
480
|
class: "ire-hidden lg:ire-flex"
|
|
481
|
-
}, null, 8, ["hovered-data", "type"])) :
|
|
481
|
+
}, null, 8, ["hovered-data", "type"])) : n.value === "3" ? (openBlock(), createBlock(_sfc_main$h, {
|
|
482
482
|
key: 1,
|
|
483
483
|
"hovered-data": i.hoverdData,
|
|
484
484
|
type: i.type || "",
|
|
@@ -516,12 +516,12 @@ var MutationType;
|
|
|
516
516
|
function createPinia() {
|
|
517
517
|
const t = effectScope(!0), o = t.run(() => ref({}));
|
|
518
518
|
let r = [], e = [];
|
|
519
|
-
const
|
|
520
|
-
install(
|
|
521
|
-
setActivePinia(
|
|
519
|
+
const s = markRaw({
|
|
520
|
+
install(n) {
|
|
521
|
+
setActivePinia(s), s._a = n, n.provide(piniaSymbol, s), n.config.globalProperties.$pinia = s, e.forEach((i) => r.push(i)), e = [];
|
|
522
522
|
},
|
|
523
|
-
use(
|
|
524
|
-
return this._a ? r.push(
|
|
523
|
+
use(n) {
|
|
524
|
+
return this._a ? r.push(n) : e.push(n), this;
|
|
525
525
|
},
|
|
526
526
|
_p: r,
|
|
527
527
|
// it's actually undefined here
|
|
@@ -531,17 +531,17 @@ function createPinia() {
|
|
|
531
531
|
_s: /* @__PURE__ */ new Map(),
|
|
532
532
|
state: o
|
|
533
533
|
});
|
|
534
|
-
return
|
|
534
|
+
return s;
|
|
535
535
|
}
|
|
536
536
|
const noop = () => {
|
|
537
537
|
};
|
|
538
538
|
function addSubscription(t, o, r, e = noop) {
|
|
539
539
|
t.push(o);
|
|
540
|
-
const
|
|
541
|
-
const
|
|
542
|
-
|
|
540
|
+
const s = () => {
|
|
541
|
+
const n = t.indexOf(o);
|
|
542
|
+
n > -1 && (t.splice(n, 1), e());
|
|
543
543
|
};
|
|
544
|
-
return !r && getCurrentScope() && onScopeDispose(
|
|
544
|
+
return !r && getCurrentScope() && onScopeDispose(s), s;
|
|
545
545
|
}
|
|
546
546
|
function triggerSubscriptions(t, ...o) {
|
|
547
547
|
t.slice().forEach((r) => {
|
|
@@ -554,8 +554,8 @@ function mergeReactiveObjects(t, o) {
|
|
|
554
554
|
for (const r in o) {
|
|
555
555
|
if (!o.hasOwnProperty(r))
|
|
556
556
|
continue;
|
|
557
|
-
const e = o[r],
|
|
558
|
-
isPlainObject(
|
|
557
|
+
const e = o[r], s = t[r];
|
|
558
|
+
isPlainObject(s) && isPlainObject(e) && t.hasOwnProperty(r) && !isRef(e) && !isReactive(e) ? t[r] = mergeReactiveObjects(s, e) : t[r] = e;
|
|
559
559
|
}
|
|
560
560
|
return t;
|
|
561
561
|
}
|
|
@@ -571,114 +571,114 @@ function isComputed(t) {
|
|
|
571
571
|
return !!(isRef(t) && t.effect);
|
|
572
572
|
}
|
|
573
573
|
function createOptionsStore(t, o, r, e) {
|
|
574
|
-
const { state:
|
|
575
|
-
let
|
|
576
|
-
function
|
|
577
|
-
|
|
578
|
-
const
|
|
579
|
-
return assign(
|
|
574
|
+
const { state: s, actions: n, getters: i } = o, u = r.state.value[t];
|
|
575
|
+
let h;
|
|
576
|
+
function k() {
|
|
577
|
+
u || (r.state.value[t] = s ? s() : {});
|
|
578
|
+
const x = toRefs(r.state.value[t]);
|
|
579
|
+
return assign(x, n, Object.keys(i || {}).reduce((C, y) => (C[y] = markRaw(computed$1(() => {
|
|
580
580
|
setActivePinia(r);
|
|
581
|
-
const
|
|
582
|
-
return i[
|
|
583
|
-
})),
|
|
581
|
+
const v = r._s.get(t);
|
|
582
|
+
return i[y].call(v, v);
|
|
583
|
+
})), C), {}));
|
|
584
584
|
}
|
|
585
|
-
return
|
|
585
|
+
return h = createSetupStore(t, k, o, r, e, !0), h;
|
|
586
586
|
}
|
|
587
|
-
function createSetupStore(t, o, r = {}, e,
|
|
587
|
+
function createSetupStore(t, o, r = {}, e, s, n) {
|
|
588
588
|
let i;
|
|
589
|
-
const
|
|
590
|
-
let
|
|
591
|
-
const
|
|
592
|
-
!
|
|
593
|
-
let
|
|
589
|
+
const u = assign({ actions: {} }, r), h = { deep: !0 };
|
|
590
|
+
let k, x, C = [], y = [], v;
|
|
591
|
+
const c = e.state.value[t];
|
|
592
|
+
!n && !c && (e.state.value[t] = {}), ref({});
|
|
593
|
+
let _;
|
|
594
594
|
function a(f) {
|
|
595
595
|
let g;
|
|
596
|
-
|
|
596
|
+
k = x = !1, typeof f == "function" ? (f(e.state.value[t]), g = {
|
|
597
597
|
type: MutationType.patchFunction,
|
|
598
598
|
storeId: t,
|
|
599
|
-
events:
|
|
599
|
+
events: v
|
|
600
600
|
}) : (mergeReactiveObjects(e.state.value[t], f), g = {
|
|
601
601
|
type: MutationType.patchObject,
|
|
602
602
|
payload: f,
|
|
603
603
|
storeId: t,
|
|
604
|
-
events:
|
|
604
|
+
events: v
|
|
605
605
|
});
|
|
606
|
-
const
|
|
606
|
+
const S = _ = Symbol();
|
|
607
607
|
nextTick().then(() => {
|
|
608
|
-
|
|
609
|
-
}),
|
|
608
|
+
_ === S && (k = !0);
|
|
609
|
+
}), x = !0, triggerSubscriptions(C, g, e.state.value[t]);
|
|
610
610
|
}
|
|
611
|
-
const
|
|
612
|
-
const { state: g } = r,
|
|
613
|
-
this.$patch((
|
|
614
|
-
assign(
|
|
611
|
+
const m = n ? function() {
|
|
612
|
+
const { state: g } = r, S = g ? g() : {};
|
|
613
|
+
this.$patch((E) => {
|
|
614
|
+
assign(E, S);
|
|
615
615
|
});
|
|
616
616
|
} : (
|
|
617
617
|
/* istanbul ignore next */
|
|
618
618
|
noop
|
|
619
619
|
);
|
|
620
|
-
function
|
|
621
|
-
i.stop(),
|
|
620
|
+
function l() {
|
|
621
|
+
i.stop(), C = [], y = [], e._s.delete(t);
|
|
622
622
|
}
|
|
623
|
-
const
|
|
623
|
+
const d = (f, g = "") => {
|
|
624
624
|
if (ACTION_MARKER in f)
|
|
625
625
|
return f[ACTION_NAME] = g, f;
|
|
626
|
-
const
|
|
626
|
+
const S = function() {
|
|
627
627
|
setActivePinia(e);
|
|
628
|
-
const
|
|
629
|
-
function
|
|
630
|
-
|
|
628
|
+
const E = Array.from(arguments), D = [], V = [];
|
|
629
|
+
function N(B) {
|
|
630
|
+
D.push(B);
|
|
631
631
|
}
|
|
632
632
|
function T(B) {
|
|
633
|
-
|
|
633
|
+
V.push(B);
|
|
634
634
|
}
|
|
635
|
-
triggerSubscriptions(
|
|
636
|
-
args:
|
|
637
|
-
name:
|
|
638
|
-
store:
|
|
639
|
-
after:
|
|
635
|
+
triggerSubscriptions(y, {
|
|
636
|
+
args: E,
|
|
637
|
+
name: S[ACTION_NAME],
|
|
638
|
+
store: p,
|
|
639
|
+
after: N,
|
|
640
640
|
onError: T
|
|
641
641
|
});
|
|
642
|
-
let
|
|
642
|
+
let R;
|
|
643
643
|
try {
|
|
644
|
-
|
|
644
|
+
R = f.apply(this && this.$id === t ? this : p, E);
|
|
645
645
|
} catch (B) {
|
|
646
|
-
throw triggerSubscriptions(
|
|
646
|
+
throw triggerSubscriptions(V, B), B;
|
|
647
647
|
}
|
|
648
|
-
return
|
|
648
|
+
return R instanceof Promise ? R.then((B) => (triggerSubscriptions(D, B), B)).catch((B) => (triggerSubscriptions(V, B), Promise.reject(B))) : (triggerSubscriptions(D, R), R);
|
|
649
649
|
};
|
|
650
|
-
return
|
|
650
|
+
return S[ACTION_MARKER] = !0, S[ACTION_NAME] = g, S;
|
|
651
651
|
}, b = {
|
|
652
652
|
_p: e,
|
|
653
653
|
// _s: scope,
|
|
654
654
|
$id: t,
|
|
655
|
-
$onAction: addSubscription.bind(null,
|
|
655
|
+
$onAction: addSubscription.bind(null, y),
|
|
656
656
|
$patch: a,
|
|
657
|
-
$reset:
|
|
657
|
+
$reset: m,
|
|
658
658
|
$subscribe(f, g = {}) {
|
|
659
|
-
const
|
|
660
|
-
(g.flush === "sync" ?
|
|
659
|
+
const S = addSubscription(C, f, g.detached, () => E()), E = i.run(() => watch(() => e.state.value[t], (D) => {
|
|
660
|
+
(g.flush === "sync" ? x : k) && f({
|
|
661
661
|
storeId: t,
|
|
662
662
|
type: MutationType.direct,
|
|
663
|
-
events:
|
|
664
|
-
},
|
|
665
|
-
}, assign({},
|
|
666
|
-
return
|
|
663
|
+
events: v
|
|
664
|
+
}, D);
|
|
665
|
+
}, assign({}, h, g)));
|
|
666
|
+
return S;
|
|
667
667
|
},
|
|
668
|
-
$dispose:
|
|
669
|
-
},
|
|
670
|
-
e._s.set(t,
|
|
671
|
-
const
|
|
672
|
-
for (const f in
|
|
673
|
-
const g =
|
|
668
|
+
$dispose: l
|
|
669
|
+
}, p = reactive(b);
|
|
670
|
+
e._s.set(t, p);
|
|
671
|
+
const w = (e._a && e._a.runWithContext || fallbackRunWithContext)(() => e._e.run(() => (i = effectScope()).run(() => o({ action: d }))));
|
|
672
|
+
for (const f in w) {
|
|
673
|
+
const g = w[f];
|
|
674
674
|
if (isRef(g) && !isComputed(g) || isReactive(g))
|
|
675
|
-
|
|
675
|
+
n || (c && shouldHydrate(g) && (isRef(g) ? g.value = c[f] : mergeReactiveObjects(g, c[f])), e.state.value[t][f] = g);
|
|
676
676
|
else if (typeof g == "function") {
|
|
677
|
-
const
|
|
678
|
-
|
|
677
|
+
const S = d(g, f);
|
|
678
|
+
w[f] = S, u.actions[f] = g;
|
|
679
679
|
}
|
|
680
680
|
}
|
|
681
|
-
return assign(
|
|
681
|
+
return assign(p, w), assign(toRaw(p), w), Object.defineProperty(p, "$state", {
|
|
682
682
|
get: () => e.state.value[t],
|
|
683
683
|
set: (f) => {
|
|
684
684
|
a((g) => {
|
|
@@ -686,27 +686,27 @@ function createSetupStore(t, o, r = {}, e, n, l) {
|
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
688
|
}), e._p.forEach((f) => {
|
|
689
|
-
assign(
|
|
690
|
-
store:
|
|
689
|
+
assign(p, i.run(() => f({
|
|
690
|
+
store: p,
|
|
691
691
|
app: e._a,
|
|
692
692
|
pinia: e,
|
|
693
|
-
options:
|
|
693
|
+
options: u
|
|
694
694
|
})));
|
|
695
|
-
}),
|
|
695
|
+
}), c && n && r.hydrate && r.hydrate(p.$state, c), k = !0, x = !0, p;
|
|
696
696
|
}
|
|
697
697
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
698
698
|
// @__NO_SIDE_EFFECTS__
|
|
699
699
|
function defineStore(t, o, r) {
|
|
700
700
|
let e;
|
|
701
|
-
const
|
|
702
|
-
e =
|
|
703
|
-
function
|
|
704
|
-
const
|
|
701
|
+
const s = typeof o == "function";
|
|
702
|
+
e = s ? r : o;
|
|
703
|
+
function n(i, u) {
|
|
704
|
+
const h = hasInjectionContext();
|
|
705
705
|
return i = // in test mode, ignore the argument provided as we can always retrieve a
|
|
706
706
|
// pinia instance with getActivePinia()
|
|
707
|
-
i || (
|
|
707
|
+
i || (h ? inject(piniaSymbol, null) : null), i && setActivePinia(i), i = activePinia, i._s.has(t) || (s ? createSetupStore(t, o, e, i) : createOptionsStore(t, e, i)), i._s.get(t);
|
|
708
708
|
}
|
|
709
|
-
return
|
|
709
|
+
return n.$id = t, n;
|
|
710
710
|
}
|
|
711
711
|
const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
712
712
|
const t = ref(), o = ref("1");
|
|
@@ -726,73 +726,78 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
726
726
|
},
|
|
727
727
|
emits: ["changeComponent"],
|
|
728
728
|
setup(t, { emit: o }) {
|
|
729
|
-
const r = o, e = t,
|
|
729
|
+
const r = o, e = t, s = useGlobalStore(), n = inject("showFlatModal"), i = ref(null), u = ref(), h = ref(null), k = computed(() => {
|
|
730
730
|
if (e.project)
|
|
731
731
|
return e.project.svg;
|
|
732
|
-
}),
|
|
733
|
-
const
|
|
734
|
-
|
|
735
|
-
},
|
|
736
|
-
var
|
|
737
|
-
const
|
|
738
|
-
(
|
|
732
|
+
}), x = (y) => {
|
|
733
|
+
const v = y == null ? void 0 : y.target;
|
|
734
|
+
v && (i.value = v);
|
|
735
|
+
}, C = (y) => {
|
|
736
|
+
var c, _, a;
|
|
737
|
+
const v = y.target;
|
|
738
|
+
(v == null ? void 0 : v.nodeName) === "path" && (((c = u.value) == null ? void 0 : c.conf) === "sold" || ((_ = u.value) == null ? void 0 : _.conf) === "reserved" || r("changeComponent", ((a = h.value) == null ? void 0 : a.type) || "", u == null ? void 0 : u.value));
|
|
739
739
|
};
|
|
740
740
|
return watch(
|
|
741
|
-
() =>
|
|
742
|
-
(
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
741
|
+
() => n == null ? void 0 : n.value,
|
|
742
|
+
() => {
|
|
743
|
+
n != null && n.value || (i.value = null, h.value = null);
|
|
744
|
+
}
|
|
745
|
+
), watch(
|
|
746
|
+
() => i.value,
|
|
747
|
+
(y) => {
|
|
748
|
+
var c, _, a, m, l, d, b;
|
|
749
|
+
if (!y) return;
|
|
750
|
+
s.hoverdSvg = y;
|
|
751
|
+
const v = y.parentElement;
|
|
752
|
+
if (v && (v == null ? void 0 : v.nodeName) === "g") {
|
|
753
|
+
const p = v == null ? void 0 : v.getAttribute("id");
|
|
754
|
+
if (!p || (h.value = ((c = e.project) == null ? void 0 : c.polygon_data.find((w) => (w == null ? void 0 : w.key) === p)) || null, !h.value)) return;
|
|
755
|
+
const $ = (_ = h.value) == null ? void 0 : _.id;
|
|
756
|
+
switch ((a = h.value) == null ? void 0 : a.type) {
|
|
752
757
|
case "floor":
|
|
753
|
-
const
|
|
754
|
-
(
|
|
758
|
+
const w = (m = e.floors) == null ? void 0 : m.find(
|
|
759
|
+
(E) => E.id === $
|
|
755
760
|
);
|
|
756
|
-
|
|
761
|
+
u.value = w;
|
|
757
762
|
break;
|
|
758
763
|
case "block":
|
|
759
|
-
const
|
|
760
|
-
(
|
|
764
|
+
const f = (l = e.blocks) == null ? void 0 : l.find(
|
|
765
|
+
(E) => (E == null ? void 0 : E.id) === $
|
|
761
766
|
);
|
|
762
|
-
|
|
767
|
+
u.value = f;
|
|
763
768
|
break;
|
|
764
769
|
case "flat":
|
|
765
|
-
const
|
|
766
|
-
(
|
|
770
|
+
const g = (d = e.flats) == null ? void 0 : d.find(
|
|
771
|
+
(E) => (E == null ? void 0 : E.id) === $
|
|
767
772
|
);
|
|
768
|
-
|
|
773
|
+
u.value = g;
|
|
769
774
|
break;
|
|
770
775
|
case "tooltip":
|
|
771
|
-
const
|
|
772
|
-
(
|
|
776
|
+
const S = (b = e.actions) == null ? void 0 : b.find(
|
|
777
|
+
(E) => (E == null ? void 0 : E.id) === $
|
|
773
778
|
);
|
|
774
|
-
|
|
779
|
+
u.value = S;
|
|
775
780
|
break;
|
|
776
781
|
default:
|
|
777
|
-
|
|
782
|
+
u.value = null;
|
|
778
783
|
break;
|
|
779
784
|
}
|
|
780
785
|
} else
|
|
781
|
-
|
|
786
|
+
h.value = null, u.value = null;
|
|
782
787
|
}
|
|
783
|
-
), (
|
|
784
|
-
var
|
|
788
|
+
), (y, v) => {
|
|
789
|
+
var c;
|
|
785
790
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
786
|
-
hoverdData:
|
|
787
|
-
type: (
|
|
788
|
-
onMouseover:
|
|
791
|
+
hoverdData: u.value,
|
|
792
|
+
type: (c = h.value) == null ? void 0 : c.type,
|
|
793
|
+
onMouseover: x
|
|
789
794
|
}, {
|
|
790
795
|
default: withCtx(() => {
|
|
791
|
-
var
|
|
796
|
+
var _, a, m, l, d, b;
|
|
792
797
|
return [
|
|
793
798
|
createElementVNode("div", _hoisted_1$c, [
|
|
794
799
|
createElementVNode("img", {
|
|
795
|
-
src: (
|
|
800
|
+
src: (m = (a = (_ = y.project) == null ? void 0 : _.project_image) == null ? void 0 : a[0]) == null ? void 0 : m.url,
|
|
796
801
|
alt: "",
|
|
797
802
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
798
803
|
}, null, 8, _hoisted_2$7),
|
|
@@ -801,12 +806,12 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
801
806
|
key: unref(k),
|
|
802
807
|
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", [
|
|
803
808
|
{
|
|
804
|
-
"hover:[&_path]:ire-fill-[var(--reserved-color)]":
|
|
805
|
-
"hover:[&_path]:ire-fill-[var(--sold-color)]":
|
|
806
|
-
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((
|
|
809
|
+
"hover:[&_path]:ire-fill-[var(--reserved-color)]": u.value && ((l = u.value) == null ? void 0 : l.conf) === "reserved",
|
|
810
|
+
"hover:[&_path]:ire-fill-[var(--sold-color)]": u.value && ((d = u.value) == null ? void 0 : d.conf) === "sold",
|
|
811
|
+
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((b = u.value) != null && b.conf)
|
|
807
812
|
}
|
|
808
813
|
]]),
|
|
809
|
-
onClick:
|
|
814
|
+
onClick: C
|
|
810
815
|
}, null, 10, _hoisted_3$6))
|
|
811
816
|
])
|
|
812
817
|
];
|
|
@@ -837,15 +842,15 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
837
842
|
r.label ? (openBlock(), createElementBlock("p", _hoisted_2$6, toDisplayString(r.label), 1)) : createCommentVNode("", !0),
|
|
838
843
|
createElementVNode("div", _hoisted_3$5, [
|
|
839
844
|
withDirectives(createElementVNode("select", {
|
|
840
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
845
|
+
"onUpdate:modelValue": e[0] || (e[0] = (s) => o.value = s),
|
|
841
846
|
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"
|
|
842
847
|
}, [
|
|
843
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.data, (
|
|
844
|
-
var
|
|
848
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.data, (s) => {
|
|
849
|
+
var n, i;
|
|
845
850
|
return openBlock(), createElementBlock("option", {
|
|
846
|
-
value:
|
|
847
|
-
disabled: ((
|
|
848
|
-
}, toDisplayString(
|
|
851
|
+
value: s.value,
|
|
852
|
+
disabled: ((n = s == null ? void 0 : s.title) == null ? void 0 : n.includes("reserved")) || ((i = s == null ? void 0 : s.title) == null ? void 0 : i.includes("sold"))
|
|
853
|
+
}, toDisplayString(s.title), 9, _hoisted_4$4);
|
|
849
854
|
}), 256))
|
|
850
855
|
], 512), [
|
|
851
856
|
[vModelSelect, o.value]
|
|
@@ -901,147 +906,152 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
901
906
|
},
|
|
902
907
|
emits: ["changeComponent"],
|
|
903
908
|
setup(t, { emit: o }) {
|
|
904
|
-
const r = o, e = t,
|
|
905
|
-
var
|
|
906
|
-
if ((
|
|
909
|
+
const r = o, e = t, s = useGlobalStore(), n = inject("showFlatModal"), i = ref(), u = ref(null), h = ref(), k = ref(null), x = ref(), C = ref(), y = computed$1(() => {
|
|
910
|
+
var l;
|
|
911
|
+
if ((l = e.floor) != null && l.svg)
|
|
907
912
|
return e.floor.svg;
|
|
908
|
-
}),
|
|
909
|
-
(
|
|
910
|
-
var d,
|
|
913
|
+
}), v = computed$1(() => e.floors.filter(
|
|
914
|
+
(l) => {
|
|
915
|
+
var d, b;
|
|
911
916
|
return (
|
|
912
917
|
// floorItem.conf !== "reserved" &&
|
|
913
918
|
// floorItem.conf !== "sold" &&
|
|
914
|
-
(d = e.floor) != null && d.block_id ? (
|
|
919
|
+
(d = e.floor) != null && d.block_id ? (l == null ? void 0 : l.block_id) === ((b = e.floor) == null ? void 0 : b.block_id) : !(l != null && l.block_id)
|
|
915
920
|
);
|
|
916
921
|
}
|
|
917
|
-
).map((
|
|
918
|
-
var
|
|
919
|
-
const d = (
|
|
920
|
-
(
|
|
921
|
-
var
|
|
922
|
-
return (
|
|
922
|
+
).map((l) => {
|
|
923
|
+
var b, p;
|
|
924
|
+
const d = (b = e.blocks) == null ? void 0 : b.find(
|
|
925
|
+
($) => {
|
|
926
|
+
var w;
|
|
927
|
+
return ($ == null ? void 0 : $.id) === ((w = l == null ? void 0 : l.block_id) == null ? void 0 : w.toString());
|
|
923
928
|
}
|
|
924
929
|
);
|
|
925
930
|
return {
|
|
926
|
-
title: ((
|
|
927
|
-
value:
|
|
931
|
+
title: ((p = l == null ? void 0 : l.floor_number) == null ? void 0 : p.toString()) + " Floor" + (d != null && d.id ? ` - ${d == null ? void 0 : d.title}` : "") + (l != null && l.conf ? " " + l.conf : ""),
|
|
932
|
+
value: l == null ? void 0 : l.id
|
|
928
933
|
};
|
|
929
|
-
}).sort((
|
|
930
|
-
const d =
|
|
931
|
-
d && (
|
|
932
|
-
},
|
|
933
|
-
var
|
|
934
|
-
const d =
|
|
935
|
-
(d == null ? void 0 : d.nodeName) === "path" && (k.value && "conf" in k.value && (((
|
|
936
|
-
},
|
|
937
|
-
var
|
|
938
|
-
|
|
939
|
-
var
|
|
940
|
-
const
|
|
941
|
-
(
|
|
934
|
+
}).sort((l, d) => +(l == null ? void 0 : l.title) - +(d == null ? void 0 : d.title)) || []), c = (l) => {
|
|
935
|
+
const d = l.target;
|
|
936
|
+
d && (u.value = d);
|
|
937
|
+
}, _ = (l) => {
|
|
938
|
+
var b, p, $;
|
|
939
|
+
const d = l.target;
|
|
940
|
+
(d == null ? void 0 : d.nodeName) === "path" && (k.value && "conf" in k.value && (((b = k.value) == null ? void 0 : b.conf) === "sold" || ((p = k.value) == null ? void 0 : p.conf) === "reserved") || r("changeComponent", (($ = h.value) == null ? void 0 : $.type) || "", k.value));
|
|
941
|
+
}, a = () => {
|
|
942
|
+
var l;
|
|
943
|
+
i.value && ((l = i.value) == null ? void 0 : l.querySelectorAll("g")).forEach((b) => {
|
|
944
|
+
var w, f, g, S, E, D;
|
|
945
|
+
const p = b == null ? void 0 : b.getAttribute("id"), $ = (f = (w = e.floor) == null ? void 0 : w.polygon_data) == null ? void 0 : f.find(
|
|
946
|
+
(V) => (V == null ? void 0 : V.key) === p
|
|
942
947
|
);
|
|
943
948
|
if (e.flats)
|
|
944
|
-
if ((
|
|
945
|
-
|
|
949
|
+
if ((g = e.floor) != null && g.conf)
|
|
950
|
+
b.setAttribute("conf", ((S = e.floor) == null ? void 0 : S.conf) || "");
|
|
946
951
|
else {
|
|
947
|
-
const
|
|
948
|
-
(
|
|
952
|
+
const V = (E = e.flats) == null ? void 0 : E.find(
|
|
953
|
+
(N) => (N == null ? void 0 : N.id) === ($ == null ? void 0 : $.id)
|
|
949
954
|
);
|
|
950
|
-
|
|
955
|
+
b == null || b.setAttribute("conf", ((D = V == null ? void 0 : V.conf) == null ? void 0 : D.toString()) || "");
|
|
951
956
|
}
|
|
952
957
|
});
|
|
953
|
-
},
|
|
954
|
-
var
|
|
955
|
-
(
|
|
958
|
+
}, m = () => {
|
|
959
|
+
var l;
|
|
960
|
+
(l = e.floor) != null && l.block_id ? r("changeComponent", "block", C.value) : r("changeComponent", "project", null);
|
|
956
961
|
};
|
|
957
962
|
return watch(
|
|
958
|
-
() =>
|
|
959
|
-
(
|
|
960
|
-
var
|
|
961
|
-
if (!
|
|
962
|
-
|
|
963
|
-
const d =
|
|
963
|
+
() => u.value,
|
|
964
|
+
(l) => {
|
|
965
|
+
var b, p, $, w, f, g;
|
|
966
|
+
if (!l) return;
|
|
967
|
+
s.hoverdSvg = l;
|
|
968
|
+
const d = l == null ? void 0 : l.parentElement;
|
|
964
969
|
if (d && (d == null ? void 0 : d.nodeName) === "g") {
|
|
965
|
-
const
|
|
966
|
-
if (!
|
|
967
|
-
if (((
|
|
968
|
-
const
|
|
969
|
-
(
|
|
970
|
-
var
|
|
971
|
-
return (
|
|
970
|
+
const S = d.getAttribute("id");
|
|
971
|
+
if (!S || (h.value = ((p = (b = e.floor) == null ? void 0 : b.polygon_data) == null ? void 0 : p.find((E) => (E == null ? void 0 : E.key) === S)) || null, !h.value)) return;
|
|
972
|
+
if ((($ = h.value) == null ? void 0 : $.type) === "flat") {
|
|
973
|
+
const E = (w = e.flats) == null ? void 0 : w.find(
|
|
974
|
+
(D) => {
|
|
975
|
+
var V;
|
|
976
|
+
return (D == null ? void 0 : D.id) === ((V = h.value) == null ? void 0 : V.id);
|
|
972
977
|
}
|
|
973
978
|
);
|
|
974
|
-
k.value =
|
|
975
|
-
} else if (((
|
|
976
|
-
const
|
|
977
|
-
(
|
|
978
|
-
var
|
|
979
|
-
return (
|
|
979
|
+
k.value = E ?? null;
|
|
980
|
+
} else if (((f = h.value) == null ? void 0 : f.type) === "tooltip") {
|
|
981
|
+
const E = (g = e.actions) == null ? void 0 : g.find(
|
|
982
|
+
(D) => {
|
|
983
|
+
var V;
|
|
984
|
+
return (D == null ? void 0 : D.id) === ((V = h.value) == null ? void 0 : V.id);
|
|
980
985
|
}
|
|
981
986
|
);
|
|
982
|
-
k.value =
|
|
987
|
+
k.value = E ?? null;
|
|
983
988
|
} else
|
|
984
989
|
k.value = null;
|
|
985
990
|
} else
|
|
986
|
-
|
|
991
|
+
h.value = null;
|
|
987
992
|
}
|
|
988
993
|
), watch(
|
|
989
|
-
() =>
|
|
994
|
+
() => n == null ? void 0 : n.value,
|
|
995
|
+
() => {
|
|
996
|
+
n != null && n.value || (u.value = null, h.value = null);
|
|
997
|
+
}
|
|
998
|
+
), watch(
|
|
999
|
+
() => x.value,
|
|
990
1000
|
() => {
|
|
991
1001
|
var d;
|
|
992
|
-
const
|
|
993
|
-
(
|
|
1002
|
+
const l = (d = e.floors) == null ? void 0 : d.find(
|
|
1003
|
+
(b) => (b == null ? void 0 : b.id) === (x == null ? void 0 : x.value)
|
|
994
1004
|
);
|
|
995
|
-
|
|
996
|
-
|
|
1005
|
+
l != null && l.conf || (l && r("changeComponent", "floor", l), setTimeout(() => {
|
|
1006
|
+
a();
|
|
997
1007
|
}, 0));
|
|
998
1008
|
}
|
|
999
1009
|
), onMounted(() => {
|
|
1000
|
-
var
|
|
1001
|
-
|
|
1002
|
-
(
|
|
1003
|
-
var
|
|
1004
|
-
return (
|
|
1010
|
+
var l, d, b;
|
|
1011
|
+
C.value = (l = e.blocks) == null ? void 0 : l.find(
|
|
1012
|
+
(p) => {
|
|
1013
|
+
var $, w;
|
|
1014
|
+
return (p == null ? void 0 : p.id) === ((w = ($ = e.floor) == null ? void 0 : $.block_id) == null ? void 0 : w.toString());
|
|
1005
1015
|
}
|
|
1006
|
-
),
|
|
1007
|
-
(
|
|
1008
|
-
var
|
|
1009
|
-
return (
|
|
1016
|
+
), x.value = (b = (d = v.value) == null ? void 0 : d.find(
|
|
1017
|
+
(p) => {
|
|
1018
|
+
var $;
|
|
1019
|
+
return (p == null ? void 0 : p.value) == (($ = e.floor) == null ? void 0 : $.id);
|
|
1010
1020
|
}
|
|
1011
|
-
)) == null ? void 0 :
|
|
1012
|
-
}), (
|
|
1013
|
-
var
|
|
1021
|
+
)) == null ? void 0 : b.value, a();
|
|
1022
|
+
}), (l, d) => {
|
|
1023
|
+
var b;
|
|
1014
1024
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
1015
1025
|
hoverdData: k.value,
|
|
1016
|
-
type: (
|
|
1017
|
-
onMouseover:
|
|
1026
|
+
type: (b = h.value) == null ? void 0 : b.type,
|
|
1027
|
+
onMouseover: c
|
|
1018
1028
|
}, {
|
|
1019
1029
|
header: withCtx(() => [
|
|
1020
|
-
createVNode(_sfc_main$c, { onClick:
|
|
1030
|
+
createVNode(_sfc_main$c, { onClick: m }),
|
|
1021
1031
|
createElementVNode("div", _hoisted_1$8, [
|
|
1022
1032
|
createVNode(_sfc_main$e, {
|
|
1023
|
-
modelValue:
|
|
1024
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1025
|
-
data:
|
|
1033
|
+
modelValue: x.value,
|
|
1034
|
+
"onUpdate:modelValue": d[0] || (d[0] = (p) => x.value = p),
|
|
1035
|
+
data: v.value
|
|
1026
1036
|
}, null, 8, ["modelValue", "data"])
|
|
1027
1037
|
])
|
|
1028
1038
|
]),
|
|
1029
1039
|
default: withCtx(() => {
|
|
1030
|
-
var
|
|
1040
|
+
var p, $, w;
|
|
1031
1041
|
return [
|
|
1032
1042
|
createElementVNode("div", _hoisted_2$4, [
|
|
1033
1043
|
createElementVNode("img", {
|
|
1034
|
-
src: ((
|
|
1044
|
+
src: ((w = ($ = (p = l.floor) == null ? void 0 : p.floor_image) == null ? void 0 : $[0]) == null ? void 0 : w.url) || "",
|
|
1035
1045
|
alt: "",
|
|
1036
1046
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1037
1047
|
}, null, 8, _hoisted_3$4),
|
|
1038
1048
|
(openBlock(), createElementBlock("div", {
|
|
1039
1049
|
ref_key: "svgRef",
|
|
1040
|
-
ref:
|
|
1041
|
-
innerHTML:
|
|
1042
|
-
key:
|
|
1050
|
+
ref: i,
|
|
1051
|
+
innerHTML: y.value,
|
|
1052
|
+
key: y.value,
|
|
1043
1053
|
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",
|
|
1044
|
-
onClick:
|
|
1054
|
+
onClick: _
|
|
1045
1055
|
}, null, 8, _hoisted_4$3))
|
|
1046
1056
|
])
|
|
1047
1057
|
];
|
|
@@ -1123,23 +1133,23 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1123
1133
|
},
|
|
1124
1134
|
emits: ["changeComponent"],
|
|
1125
1135
|
setup(t, { emit: o }) {
|
|
1126
|
-
const r = t, e = ref(!1),
|
|
1127
|
-
var
|
|
1128
|
-
const i = e.value ? (
|
|
1136
|
+
const r = t, e = ref(!1), s = ref(0), n = computed$1(() => {
|
|
1137
|
+
var u, h, k, x, C, y;
|
|
1138
|
+
const i = e.value ? (k = (h = (u = r.flat) == null ? void 0 : u.type) == null ? void 0 : h.image_2d) == null ? void 0 : k.length : (y = (C = (x = r.flat) == null ? void 0 : x.type) == null ? void 0 : C.image_3d) == null ? void 0 : y.length;
|
|
1129
1139
|
return ["I", "II", "III"].slice(0, i);
|
|
1130
1140
|
});
|
|
1131
1141
|
return watch(
|
|
1132
1142
|
() => e.value,
|
|
1133
1143
|
() => {
|
|
1134
|
-
|
|
1144
|
+
s.value = 0;
|
|
1135
1145
|
}
|
|
1136
1146
|
), onMounted(() => {
|
|
1137
|
-
var i,
|
|
1138
|
-
(
|
|
1139
|
-
}), (i,
|
|
1147
|
+
var i, u;
|
|
1148
|
+
(u = (i = r.flat) == null ? void 0 : i.type) != null && u.image_3d || (e.value = !0);
|
|
1149
|
+
}), (i, u) => (openBlock(), createElementBlock("div", null, [
|
|
1140
1150
|
createVNode(_sfc_main$g, { "hoverd-data": null }, {
|
|
1141
1151
|
default: withCtx(() => {
|
|
1142
|
-
var k,
|
|
1152
|
+
var h, k, x, C, y, v, c, _, a, m, l, d, b, p, $, w, f, g, S, E, D, V, N, T, R, B, P, O, A, F, I;
|
|
1143
1153
|
return [
|
|
1144
1154
|
createElementVNode("div", _hoisted_1$5, [
|
|
1145
1155
|
createElementVNode("div", _hoisted_2$3, [
|
|
@@ -1148,15 +1158,15 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1148
1158
|
mode: "out-in"
|
|
1149
1159
|
}, {
|
|
1150
1160
|
default: withCtx(() => {
|
|
1151
|
-
var
|
|
1161
|
+
var j, M, L, z, H, W, X, Y, K, U, q, Z, J, Q, G, ee, te, oe, re, ie, se, ne, le, ae;
|
|
1152
1162
|
return [
|
|
1153
|
-
e.value && ((
|
|
1154
|
-
key: (Y = (X = (W = (
|
|
1155
|
-
src: (Z = (q = (U = (K = i.flat) == null ? void 0 : K.type) == null ? void 0 : U.image_2d) == null ? void 0 : q[
|
|
1163
|
+
e.value && ((z = (L = (M = (j = i.flat) == null ? void 0 : j.type) == null ? void 0 : M.image_2d) == null ? void 0 : L[s.value]) != null && z.url) ? (openBlock(), createElementBlock("img", {
|
|
1164
|
+
key: (Y = (X = (W = (H = i.flat) == null ? void 0 : H.type) == null ? void 0 : W.image_2d) == null ? void 0 : X[s.value]) == null ? void 0 : Y.url,
|
|
1165
|
+
src: (Z = (q = (U = (K = i.flat) == null ? void 0 : K.type) == null ? void 0 : U.image_2d) == null ? void 0 : q[s.value]) == null ? void 0 : Z.url,
|
|
1156
1166
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-[30rem]"
|
|
1157
|
-
}, null, 8, _hoisted_3$3)) : (ee = (G = (Q = (J = i.flat) == null ? void 0 : J.type) == null ? void 0 : Q.image_3d) == null ? void 0 : G[
|
|
1158
|
-
src: (ie = (re = (oe = (te = i.flat) == null ? void 0 : te.type) == null ? void 0 : oe.image_3d) == null ? void 0 : re[
|
|
1159
|
-
key: (ae = (le = (ne = (se = i.flat) == null ? void 0 : se.type) == null ? void 0 : ne.image_3d) == null ? void 0 : le[
|
|
1167
|
+
}, null, 8, _hoisted_3$3)) : (ee = (G = (Q = (J = i.flat) == null ? void 0 : J.type) == null ? void 0 : Q.image_3d) == null ? void 0 : G[s.value]) != null && ee.url ? (openBlock(), createElementBlock("img", {
|
|
1168
|
+
src: (ie = (re = (oe = (te = i.flat) == null ? void 0 : te.type) == null ? void 0 : oe.image_3d) == null ? void 0 : re[s.value]) == null ? void 0 : ie.url,
|
|
1169
|
+
key: (ae = (le = (ne = (se = i.flat) == null ? void 0 : se.type) == null ? void 0 : ne.image_3d) == null ? void 0 : le[s.value]) == null ? void 0 : ae.url,
|
|
1160
1170
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-[30rem]"
|
|
1161
1171
|
}, null, 8, _hoisted_4$2)) : createCommentVNode("", !0)
|
|
1162
1172
|
];
|
|
@@ -1165,10 +1175,10 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1165
1175
|
}),
|
|
1166
1176
|
createElementVNode("div", _hoisted_5, [
|
|
1167
1177
|
createElementVNode("div", _hoisted_6, [
|
|
1168
|
-
(
|
|
1178
|
+
(C = (x = (k = (h = i.flat) == null ? void 0 : h.type) == null ? void 0 : k.image_3d) == null ? void 0 : x[0]) != null && C.url ? (openBlock(), createElementBlock("div", {
|
|
1169
1179
|
key: 0,
|
|
1170
1180
|
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
|
-
onClick:
|
|
1181
|
+
onClick: u[0] || (u[0] = (j) => e.value = !1)
|
|
1172
1182
|
}, [
|
|
1173
1183
|
createElementVNode("div", null, [
|
|
1174
1184
|
createVNode(Cube, {
|
|
@@ -1182,10 +1192,10 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1182
1192
|
}])
|
|
1183
1193
|
}, toDisplayString(unref(tr)("3d plan")), 3)
|
|
1184
1194
|
], 2)) : createCommentVNode("", !0),
|
|
1185
|
-
(
|
|
1195
|
+
(_ = (c = (v = (y = i.flat) == null ? void 0 : y.type) == null ? void 0 : v.image_2d) == null ? void 0 : c[0]) != null && _.url ? (openBlock(), createElementBlock("div", {
|
|
1186
1196
|
key: 1,
|
|
1187
1197
|
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 }]),
|
|
1188
|
-
onClick:
|
|
1198
|
+
onClick: u[1] || (u[1] = (j) => e.value = !0)
|
|
1189
1199
|
}, [
|
|
1190
1200
|
createVNode(FlatIcon, {
|
|
1191
1201
|
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": e.value }])
|
|
@@ -1198,41 +1208,41 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1198
1208
|
}, toDisplayString(unref(tr)("2d plan")), 3)
|
|
1199
1209
|
], 2)) : createCommentVNode("", !0)
|
|
1200
1210
|
]),
|
|
1201
|
-
((a =
|
|
1202
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
1203
|
-
key:
|
|
1211
|
+
((a = n.value) == null ? void 0 : a.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
1212
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.value, (j, M) => (openBlock(), createElementBlock("div", {
|
|
1213
|
+
key: j,
|
|
1204
1214
|
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", {
|
|
1205
|
-
"ire-bg-black ire-text-white":
|
|
1215
|
+
"ire-bg-black ire-text-white": s.value === M
|
|
1206
1216
|
}]),
|
|
1207
|
-
onClick: (L) =>
|
|
1208
|
-
}, toDisplayString(
|
|
1217
|
+
onClick: (L) => s.value = M
|
|
1218
|
+
}, toDisplayString(j), 11, _hoisted_8))), 128))
|
|
1209
1219
|
])) : createCommentVNode("", !0)
|
|
1210
1220
|
])
|
|
1211
1221
|
]),
|
|
1212
1222
|
createElementVNode("div", _hoisted_9, [
|
|
1213
1223
|
createElementVNode("div", _hoisted_10, [
|
|
1214
|
-
createElementVNode("div", _hoisted_11, toDisplayString((
|
|
1224
|
+
createElementVNode("div", _hoisted_11, toDisplayString((m = i.flat) == null ? void 0 : m.flat_number), 1),
|
|
1215
1225
|
createElementVNode("div", _hoisted_12, toDisplayString(unref(tr)("apartment")), 1)
|
|
1216
1226
|
]),
|
|
1217
|
-
(
|
|
1218
|
-
createElementVNode("div", _hoisted_14, toDisplayString((
|
|
1227
|
+
(d = (l = i.flat) == null ? void 0 : l.type) != null && d.title || (p = (b = i.flat) == null ? void 0 : b.type) != null && p.teaser ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
1228
|
+
createElementVNode("div", _hoisted_14, toDisplayString((w = ($ = i.flat) == null ? void 0 : $.type) == null ? void 0 : w.title), 1),
|
|
1219
1229
|
createElementVNode("div", _hoisted_15, toDisplayString((g = (f = i.flat) == null ? void 0 : f.type) == null ? void 0 : g.teaser), 1)
|
|
1220
1230
|
])) : createCommentVNode("", !0),
|
|
1221
1231
|
createElementVNode("div", _hoisted_16, [
|
|
1222
|
-
(
|
|
1223
|
-
createElementVNode("div", _hoisted_18, toDisplayString((
|
|
1232
|
+
(S = i.flat) != null && S.floor_number ? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
1233
|
+
createElementVNode("div", _hoisted_18, toDisplayString((E = i.flat) == null ? void 0 : E.floor_number), 1),
|
|
1224
1234
|
createElementVNode("div", _hoisted_19, toDisplayString(unref(tr)("floor")), 1)
|
|
1225
1235
|
])) : createCommentVNode("", !0),
|
|
1226
|
-
(
|
|
1227
|
-
createElementVNode("div", _hoisted_21, toDisplayString((
|
|
1236
|
+
(V = (D = i.flat) == null ? void 0 : D.type) != null && V.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
1237
|
+
createElementVNode("div", _hoisted_21, toDisplayString((N = i.flat) == null ? void 0 : N.type.rooms_count), 1),
|
|
1228
1238
|
createElementVNode("div", _hoisted_22, toDisplayString(unref(tr)("room")), 1)
|
|
1229
1239
|
])) : createCommentVNode("", !0)
|
|
1230
1240
|
]),
|
|
1231
|
-
(
|
|
1241
|
+
(R = (T = i.flat) == null ? void 0 : T.type) != null && R.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
1232
1242
|
createElementVNode("div", _hoisted_24, [
|
|
1233
1243
|
createTextVNode(toDisplayString(Number((B = i.flat) == null ? void 0 : B.type.area_m2).toLocaleString("fr-FR")) + " ", 1),
|
|
1234
|
-
|
|
1235
|
-
createTextVNode("
|
|
1244
|
+
u[2] || (u[2] = createElementVNode("span", null, [
|
|
1245
|
+
createTextVNode(" m "),
|
|
1236
1246
|
createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
|
|
1237
1247
|
], -1))
|
|
1238
1248
|
]),
|
|
@@ -1241,14 +1251,14 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1241
1251
|
(P = i.flat) != null && P.price ? (openBlock(), createElementBlock("div", _hoisted_26, [
|
|
1242
1252
|
createElementVNode("div", null, [
|
|
1243
1253
|
(O = i.flat) != null && O.offer_price ? (openBlock(), createElementBlock("div", _hoisted_28, [
|
|
1244
|
-
createElementVNode("div", _hoisted_29, toDisplayString(Number((
|
|
1254
|
+
createElementVNode("div", _hoisted_29, toDisplayString(Number((F = i.flat) == null ? void 0 : F.price).toLocaleString("fr-FR")), 1),
|
|
1245
1255
|
createElementVNode("div", _hoisted_30, [
|
|
1246
|
-
createTextVNode(toDisplayString(Number((
|
|
1247
|
-
|
|
1256
|
+
createTextVNode(toDisplayString(Number((I = i.flat) == null ? void 0 : I.offer_price).toLocaleString("fr-FR")) + " ", 1),
|
|
1257
|
+
createElementVNode("span", null, toDisplayString(unref(tr)("$")), 1)
|
|
1248
1258
|
])
|
|
1249
1259
|
])) : (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
1250
|
-
createTextVNode(toDisplayString(Number((
|
|
1251
|
-
|
|
1260
|
+
createTextVNode(toDisplayString(Number((A = i.flat) == null ? void 0 : A.price).toLocaleString("fr-FR")) + " ", 1),
|
|
1261
|
+
createElementVNode("span", null, toDisplayString(unref(tr)("$")), 1)
|
|
1252
1262
|
]))
|
|
1253
1263
|
]),
|
|
1254
1264
|
createElementVNode("div", _hoisted_31, toDisplayString(unref(tr)("price")), 1)
|
|
@@ -1321,15 +1331,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1321
1331
|
},
|
|
1322
1332
|
setup(t) {
|
|
1323
1333
|
return (o, r) => {
|
|
1324
|
-
var e,
|
|
1334
|
+
var e, s, n, i, u, h, k, x, C, y, v, c;
|
|
1325
1335
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
1326
|
-
createElementVNode("p", _hoisted_2$1, toDisplayString((
|
|
1336
|
+
createElementVNode("p", _hoisted_2$1, toDisplayString((s = (e = o.modalData) == null ? void 0 : e.modalObject) == null ? void 0 : s.title), 1),
|
|
1327
1337
|
createVNode(_sfc_main$5, {
|
|
1328
|
-
editor: (i = (
|
|
1338
|
+
editor: (i = (n = o.modalData) == null ? void 0 : n.modalObject) == null ? void 0 : i.description
|
|
1329
1339
|
}, null, 8, ["editor"]),
|
|
1330
|
-
(
|
|
1340
|
+
(x = (k = (h = (u = o.modalData) == null ? void 0 : u.modalObject) == null ? void 0 : h.modalImage) == null ? void 0 : k[0]) != null && x.url ? (openBlock(), createElementBlock("img", {
|
|
1331
1341
|
key: 0,
|
|
1332
|
-
src: (
|
|
1342
|
+
src: (c = (v = (y = (C = o.modalData) == null ? void 0 : C.modalObject) == null ? void 0 : y.modalImage) == null ? void 0 : v[0]) == null ? void 0 : c.url,
|
|
1333
1343
|
alt: "",
|
|
1334
1344
|
class: "ire-mt-5 ire-h-[400px] ire-w-full ire-object-contain"
|
|
1335
1345
|
}, null, 8, _hoisted_3$1)) : createCommentVNode("", !0)
|
|
@@ -1346,99 +1356,104 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1346
1356
|
},
|
|
1347
1357
|
emits: ["changeComponent"],
|
|
1348
1358
|
setup(t, { emit: o }) {
|
|
1349
|
-
const r = o, e = t,
|
|
1350
|
-
var
|
|
1351
|
-
if ((
|
|
1352
|
-
return (
|
|
1353
|
-
}),
|
|
1354
|
-
const
|
|
1355
|
-
|
|
1356
|
-
},
|
|
1357
|
-
var
|
|
1358
|
-
const
|
|
1359
|
-
(
|
|
1359
|
+
const r = o, e = t, s = useGlobalStore(), n = inject("showFlatModal"), i = ref(), u = ref(null), h = ref(), k = ref(), x = computed$1(() => {
|
|
1360
|
+
var v, c;
|
|
1361
|
+
if ((v = e.block) != null && v.svg)
|
|
1362
|
+
return (c = e.block) == null ? void 0 : c.svg;
|
|
1363
|
+
}), C = (v) => {
|
|
1364
|
+
const c = v.target;
|
|
1365
|
+
c && (u.value = c);
|
|
1366
|
+
}, y = (v) => {
|
|
1367
|
+
var _, a, m;
|
|
1368
|
+
const c = v.target;
|
|
1369
|
+
(c == null ? void 0 : c.nodeName) === "path" && (((_ = k.value) == null ? void 0 : _.conf) === "sold" || ((a = k.value) == null ? void 0 : a.conf) === "reserved" || r(
|
|
1360
1370
|
"changeComponent",
|
|
1361
|
-
((
|
|
1371
|
+
((m = h.value) == null ? void 0 : m.type) || "",
|
|
1362
1372
|
k.value
|
|
1363
1373
|
));
|
|
1364
1374
|
};
|
|
1365
1375
|
return watch(
|
|
1366
|
-
() =>
|
|
1367
|
-
(
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1376
|
+
() => n == null ? void 0 : n.value,
|
|
1377
|
+
() => {
|
|
1378
|
+
n != null && n.value || (u.value = null, h.value = null);
|
|
1379
|
+
}
|
|
1380
|
+
), watch(
|
|
1381
|
+
() => u.value,
|
|
1382
|
+
(v) => {
|
|
1383
|
+
var _, a, m, l, d, b, p, $;
|
|
1384
|
+
if (!v) return;
|
|
1385
|
+
s.hoverdSvg = v;
|
|
1386
|
+
const c = v == null ? void 0 : v.parentElement;
|
|
1387
|
+
if (c && (c == null ? void 0 : c.nodeName) === "g") {
|
|
1388
|
+
const w = c == null ? void 0 : c.getAttribute("id");
|
|
1389
|
+
if (!w || (h.value = ((a = (_ = e.block) == null ? void 0 : _.polygon_data) == null ? void 0 : a.find((f) => (f == null ? void 0 : f.key) === w)) || null, !h.value)) return;
|
|
1390
|
+
if (((m = h.value) == null ? void 0 : m.type) === "floor") {
|
|
1391
|
+
const f = (l = e.floors) == null ? void 0 : l.find(
|
|
1392
|
+
(g) => {
|
|
1393
|
+
var S;
|
|
1394
|
+
return (g == null ? void 0 : g.id) === ((S = h.value) == null ? void 0 : S.id);
|
|
1380
1395
|
}
|
|
1381
1396
|
);
|
|
1382
|
-
k.value =
|
|
1383
|
-
} else if (((d =
|
|
1384
|
-
const
|
|
1385
|
-
(
|
|
1386
|
-
var
|
|
1387
|
-
return (
|
|
1397
|
+
k.value = f;
|
|
1398
|
+
} else if (((d = h.value) == null ? void 0 : d.type) === "flat") {
|
|
1399
|
+
const f = (b = e.flats) == null ? void 0 : b.find(
|
|
1400
|
+
(g) => {
|
|
1401
|
+
var S;
|
|
1402
|
+
return (g == null ? void 0 : g.id) === ((S = h.value) == null ? void 0 : S.id);
|
|
1388
1403
|
}
|
|
1389
1404
|
);
|
|
1390
|
-
k.value =
|
|
1391
|
-
} else if (((
|
|
1392
|
-
const
|
|
1393
|
-
(
|
|
1394
|
-
var
|
|
1395
|
-
return (
|
|
1405
|
+
k.value = f;
|
|
1406
|
+
} else if (((p = h.value) == null ? void 0 : p.type) === "tooltip") {
|
|
1407
|
+
const f = ($ = e.actions) == null ? void 0 : $.find(
|
|
1408
|
+
(g) => {
|
|
1409
|
+
var S;
|
|
1410
|
+
return (g == null ? void 0 : g.id) === ((S = h.value) == null ? void 0 : S.id);
|
|
1396
1411
|
}
|
|
1397
1412
|
);
|
|
1398
|
-
k.value =
|
|
1413
|
+
k.value = f;
|
|
1399
1414
|
} else
|
|
1400
1415
|
k.value = null;
|
|
1401
1416
|
} else
|
|
1402
|
-
|
|
1417
|
+
h.value = null, k.value = null;
|
|
1403
1418
|
}
|
|
1404
|
-
), (
|
|
1405
|
-
var
|
|
1419
|
+
), (v, c) => {
|
|
1420
|
+
var _;
|
|
1406
1421
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
1407
1422
|
hoverdData: k.value,
|
|
1408
|
-
type: (
|
|
1409
|
-
onMouseover:
|
|
1423
|
+
type: (_ = h.value) == null ? void 0 : _.type,
|
|
1424
|
+
onMouseover: C
|
|
1410
1425
|
}, {
|
|
1411
1426
|
header: withCtx(() => {
|
|
1412
|
-
var
|
|
1427
|
+
var a;
|
|
1413
1428
|
return [
|
|
1414
1429
|
createVNode(_sfc_main$c, {
|
|
1415
|
-
onClick:
|
|
1430
|
+
onClick: c[0] || (c[0] = (m) => v.$emit("changeComponent", "project", null))
|
|
1416
1431
|
}),
|
|
1417
|
-
createElementVNode("p", _hoisted_1, toDisplayString((
|
|
1432
|
+
createElementVNode("p", _hoisted_1, toDisplayString((a = v.block) == null ? void 0 : a.title), 1)
|
|
1418
1433
|
];
|
|
1419
1434
|
}),
|
|
1420
1435
|
default: withCtx(() => {
|
|
1421
|
-
var
|
|
1436
|
+
var a, m, l, d, b, p;
|
|
1422
1437
|
return [
|
|
1423
1438
|
createElementVNode("div", _hoisted_2, [
|
|
1424
1439
|
createElementVNode("img", {
|
|
1425
|
-
src: ((
|
|
1440
|
+
src: ((l = (m = (a = v.block) == null ? void 0 : a.block_image) == null ? void 0 : m[0]) == null ? void 0 : l.url) || "",
|
|
1426
1441
|
alt: "",
|
|
1427
1442
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1428
1443
|
}, null, 8, _hoisted_3),
|
|
1429
1444
|
(openBlock(), createElementBlock("div", {
|
|
1430
1445
|
ref_key: "svgRef",
|
|
1431
|
-
ref:
|
|
1432
|
-
innerHTML:
|
|
1433
|
-
key:
|
|
1446
|
+
ref: i,
|
|
1447
|
+
innerHTML: x.value,
|
|
1448
|
+
key: x.value,
|
|
1434
1449
|
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", [
|
|
1435
1450
|
{
|
|
1436
1451
|
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((d = k.value) == null ? void 0 : d.conf) === "reserved",
|
|
1437
|
-
"hover:[&_path]:ire-fill-[var(--sold-color)]": ((
|
|
1438
|
-
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((
|
|
1452
|
+
"hover:[&_path]:ire-fill-[var(--sold-color)]": ((b = k.value) == null ? void 0 : b.conf) === "sold",
|
|
1453
|
+
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((p = k.value) != null && p.conf)
|
|
1439
1454
|
}
|
|
1440
1455
|
]]),
|
|
1441
|
-
onClick:
|
|
1456
|
+
onClick: y
|
|
1442
1457
|
}, null, 10, _hoisted_4))
|
|
1443
1458
|
])
|
|
1444
1459
|
];
|
|
@@ -1448,28 +1463,33 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1448
1463
|
};
|
|
1449
1464
|
}
|
|
1450
1465
|
}), _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1451
|
-
__name: "
|
|
1466
|
+
__name: "MouseTracker",
|
|
1452
1467
|
setup(t) {
|
|
1453
|
-
const o = useGlobalStore(), r = ref(0), e = ref(0), n = ref(null);
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
}
|
|
1468
|
+
const o = useGlobalStore(), r = ref(!0), e = ref(0), s = ref(0), n = ref(null);
|
|
1469
|
+
let i = null, u = 0, h = 0;
|
|
1470
|
+
const k = (y, v, c) => y * (1 - c) + v * c, x = () => {
|
|
1471
|
+
if (i) return;
|
|
1472
|
+
const y = () => {
|
|
1473
|
+
e.value = k(e.value, u, 0.06), s.value = k(s.value, h, 0.06), Math.abs(e.value - u) > 0.06 || Math.abs(s.value - h) > 0.06 ? i = requestAnimationFrame(y) : i = null;
|
|
1474
|
+
};
|
|
1475
|
+
i = requestAnimationFrame(y);
|
|
1476
|
+
}, C = (y) => {
|
|
1477
|
+
var $;
|
|
1478
|
+
const v = document.querySelector(".tooltip-2"), c = (($ = o.hoverdSvg) == null ? void 0 : $.nodeName) === "path" ? o.hoverdSvg : null;
|
|
1479
|
+
if (!n.value || !v || !c)
|
|
1480
|
+
return;
|
|
1481
|
+
const _ = n.value.getBoundingClientRect(), a = c.getBoundingClientRect(), m = v.getBoundingClientRect(), l = _.left + _.width / 2, d = _.top + _.height / 2, b = a.left > l, p = a.bottom > d;
|
|
1482
|
+
u = y.clientX - _.left - (b ? m.width : -20), h = y.clientY - _.top - (p ? m.height : -20), r.value && (e.value = u, s.value = h), x(), r.value = !1;
|
|
1483
|
+
};
|
|
1484
|
+
return onMounted(() => {
|
|
1485
|
+
document.addEventListener("mousemove", C);
|
|
1486
|
+
}), onUnmounted(() => {
|
|
1487
|
+
document.removeEventListener("mousemove", C), i && cancelAnimationFrame(i);
|
|
1488
|
+
}), provide("mouseX", e), provide("mouseY", s), (y, v) => (openBlock(), createElementBlock("div", {
|
|
1469
1489
|
ref_key: "canvasRef",
|
|
1470
1490
|
ref: n
|
|
1471
1491
|
}, [
|
|
1472
|
-
renderSlot(
|
|
1492
|
+
renderSlot(y.$slots, "default")
|
|
1473
1493
|
], 512));
|
|
1474
1494
|
}
|
|
1475
1495
|
}), _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
@@ -1478,25 +1498,25 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1478
1498
|
shortcodeDataProps: {}
|
|
1479
1499
|
},
|
|
1480
1500
|
setup(__props) {
|
|
1481
|
-
var t, o, r, e,
|
|
1482
|
-
const props = __props, getMeta = (
|
|
1483
|
-
(
|
|
1501
|
+
var t, o, r, e, s, n, i, u, h, k, x, C, y, v;
|
|
1502
|
+
const props = __props, getMeta = (c) => props.shortcodeDataProps.meta.find(
|
|
1503
|
+
(_) => _.meta_key === c
|
|
1484
1504
|
), constants = ref({
|
|
1485
1505
|
PREVIEW_PATH_COLOR: ((t = getMeta("path_color")) == null ? void 0 : t.meta_value) || "rgba(255, 255, 255, 0.3)",
|
|
1486
1506
|
PREVIEW_PATH_HOVER_COLOR: ((o = getMeta("path_hover_color")) == null ? void 0 : o.meta_value) || "rgba(250, 250, 250, 0.54)",
|
|
1487
1507
|
PREVIEW_RESERVED_COLOR: ((r = getMeta("reserved_color")) == null ? void 0 : r.meta_value) || "rgba(255, 247, 89, 0.53)",
|
|
1488
1508
|
PREVIEW_SOLD_COLOR: ((e = getMeta("sold_color")) == null ? void 0 : e.meta_value) || "rgba(219, 64, 64, 0.45)",
|
|
1489
|
-
PREVIEW_STROKE_COLOR: ((
|
|
1490
|
-
PREVIEW_STROKE_WIDTH: +((
|
|
1509
|
+
PREVIEW_STROKE_COLOR: ((s = getMeta("stroke_color")) == null ? void 0 : s.meta_value) || "rgba(0, 0, 0, 1)",
|
|
1510
|
+
PREVIEW_STROKE_WIDTH: +((n = getMeta("stroke_width")) == null ? void 0 : n.meta_value) || 1,
|
|
1491
1511
|
PREVIEW_BORDER_RADIUS: +((i = getMeta("border_radius")) == null ? void 0 : i.meta_value) || 0
|
|
1492
1512
|
}), colors = reactive({
|
|
1493
|
-
path: (
|
|
1494
|
-
path_hover: (
|
|
1495
|
-
reserved: (
|
|
1496
|
-
sold: (
|
|
1497
|
-
stroke_color: (
|
|
1498
|
-
stroke_width: (
|
|
1499
|
-
border_radius: (
|
|
1513
|
+
path: (u = constants.value) == null ? void 0 : u.PREVIEW_PATH_COLOR,
|
|
1514
|
+
path_hover: (h = constants.value) == null ? void 0 : h.PREVIEW_PATH_HOVER_COLOR,
|
|
1515
|
+
reserved: (k = constants.value) == null ? void 0 : k.PREVIEW_RESERVED_COLOR,
|
|
1516
|
+
sold: (x = constants.value) == null ? void 0 : x.PREVIEW_SOLD_COLOR,
|
|
1517
|
+
stroke_color: (C = constants.value) == null ? void 0 : C.PREVIEW_STROKE_COLOR,
|
|
1518
|
+
stroke_width: (y = constants.value) == null ? void 0 : y.PREVIEW_STROKE_WIDTH,
|
|
1519
|
+
border_radius: (v = constants.value) == null ? void 0 : v.PREVIEW_BORDER_RADIUS
|
|
1500
1520
|
}), cssVariables = computed$1(() => ({
|
|
1501
1521
|
"--reserved-color": colors.reserved,
|
|
1502
1522
|
"--sold-color": colors.sold,
|
|
@@ -1508,30 +1528,30 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1508
1528
|
})), shortcodeData = ref(props.shortcodeDataProps), flow = ref(
|
|
1509
1529
|
"projectFlow"
|
|
1510
1530
|
), hoveredData = ref(), showModal = ref(!1), activeBlock = ref(), activeFloor = ref(), showFlatModal = ref(), project = computed$1(() => {
|
|
1511
|
-
var
|
|
1531
|
+
var c;
|
|
1512
1532
|
if (shortcodeData.value)
|
|
1513
|
-
return (
|
|
1533
|
+
return (c = shortcodeData.value) == null ? void 0 : c.project;
|
|
1514
1534
|
}), floors = computed$1(() => {
|
|
1515
|
-
var
|
|
1535
|
+
var c, _;
|
|
1516
1536
|
if (shortcodeData.value)
|
|
1517
|
-
return (
|
|
1518
|
-
var
|
|
1519
|
-
const
|
|
1520
|
-
var
|
|
1521
|
-
return (
|
|
1537
|
+
return (c = shortcodeData.value.floors) == null || c.forEach((a) => {
|
|
1538
|
+
var d, b;
|
|
1539
|
+
const m = (b = (d = shortcodeData.value) == null ? void 0 : d.flats) == null ? void 0 : b.filter((p) => {
|
|
1540
|
+
var $;
|
|
1541
|
+
return (p == null ? void 0 : p.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(
|
|
1522
1542
|
(f) => {
|
|
1523
1543
|
var g;
|
|
1524
|
-
return f != null && f.type && (f == null ? void 0 : f.type) === "flat" && (f == null ? void 0 : f.id) === (
|
|
1544
|
+
return f != null && f.type && (f == null ? void 0 : f.type) === "flat" && (f == null ? void 0 : f.id) === (p == null ? void 0 : p.id) ? a != null && a.block_id ? (p == null ? void 0 : p.block_id) === ((g = a == null ? void 0 : a.block_id) == null ? void 0 : g.toString()) : !(p != null && p.block_id) : !1;
|
|
1525
1545
|
}
|
|
1526
1546
|
) : !1;
|
|
1527
1547
|
});
|
|
1528
|
-
a.flats =
|
|
1529
|
-
const { conf:
|
|
1530
|
-
if (
|
|
1531
|
-
const
|
|
1532
|
-
|
|
1548
|
+
a.flats = m;
|
|
1549
|
+
const { conf: l } = a || {};
|
|
1550
|
+
if (m != null && m.length && !l) {
|
|
1551
|
+
const p = m == null ? void 0 : m.every((w) => (w == null ? void 0 : w.conf) === "reserved"), $ = m == null ? void 0 : m.every((w) => (w == null ? void 0 : w.conf) === "sold");
|
|
1552
|
+
p ? a.conf = "reserved" : $ && (a.conf = "sold");
|
|
1533
1553
|
}
|
|
1534
|
-
}), (
|
|
1554
|
+
}), (_ = shortcodeData.value) == null ? void 0 : _.floors;
|
|
1535
1555
|
}), blocks = computed$1(() => {
|
|
1536
1556
|
if (shortcodeData.value)
|
|
1537
1557
|
return shortcodeData.value.blocks;
|
|
@@ -1539,27 +1559,27 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1539
1559
|
if (shortcodeData.value)
|
|
1540
1560
|
return shortcodeData.value.types;
|
|
1541
1561
|
}), flats = computed$1(() => {
|
|
1542
|
-
var
|
|
1562
|
+
var c, _;
|
|
1543
1563
|
if (shortcodeData.value)
|
|
1544
|
-
return (
|
|
1545
|
-
var
|
|
1564
|
+
return (_ = (c = shortcodeData.value) == null ? void 0 : c.flats) == null ? void 0 : _.map((a) => {
|
|
1565
|
+
var m;
|
|
1546
1566
|
if (a != null && a.use_type || !(a != null && a.type)) {
|
|
1547
|
-
const
|
|
1548
|
-
|
|
1567
|
+
const l = (m = types.value) == null ? void 0 : m.find((d) => (d == null ? void 0 : d.id) === (a == null ? void 0 : a.type_id));
|
|
1568
|
+
l && (a.type = l);
|
|
1549
1569
|
}
|
|
1550
1570
|
return a;
|
|
1551
1571
|
});
|
|
1552
1572
|
}), actions = computed$1(() => {
|
|
1553
|
-
var
|
|
1573
|
+
var c;
|
|
1554
1574
|
if (shortcodeData.value)
|
|
1555
|
-
return (
|
|
1575
|
+
return (c = shortcodeData.value) == null ? void 0 : c.actions;
|
|
1556
1576
|
}), projectMeta = computed$1(() => {
|
|
1557
|
-
var
|
|
1577
|
+
var c;
|
|
1558
1578
|
if (shortcodeData.value)
|
|
1559
|
-
return (
|
|
1560
|
-
}), getColorMeta = (
|
|
1561
|
-
var
|
|
1562
|
-
return (a = (
|
|
1579
|
+
return (c = shortcodeData.value) == null ? void 0 : c.meta;
|
|
1580
|
+
}), getColorMeta = (c) => {
|
|
1581
|
+
var _, a;
|
|
1582
|
+
return (a = (_ = projectMeta.value) == null ? void 0 : _.find((m) => (m == null ? void 0 : m.meta_key) === c)) == null ? void 0 : a.meta_value;
|
|
1563
1583
|
}, changeRoute = (flowType, polygonItem) => {
|
|
1564
1584
|
switch (flowType) {
|
|
1565
1585
|
case "project":
|
|
@@ -1586,8 +1606,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1586
1606
|
else if ((actionData == null ? void 0 : actionData.actionType) === "script")
|
|
1587
1607
|
try {
|
|
1588
1608
|
eval(actionData == null ? void 0 : actionData.script);
|
|
1589
|
-
} catch (
|
|
1590
|
-
console.error("Error executing script:",
|
|
1609
|
+
} catch (c) {
|
|
1610
|
+
console.error("Error executing script:", c);
|
|
1591
1611
|
}
|
|
1592
1612
|
break;
|
|
1593
1613
|
}
|
|
@@ -1595,10 +1615,10 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1595
1615
|
return watch(
|
|
1596
1616
|
() => projectMeta.value,
|
|
1597
1617
|
() => {
|
|
1598
|
-
const
|
|
1599
|
-
|
|
1618
|
+
const c = getColorMeta("path_color"), _ = getColorMeta("path_hover_color"), a = getColorMeta("reserved_color"), m = getColorMeta("sold_color"), l = getColorMeta("stroke_color"), d = getColorMeta("stroke_width");
|
|
1619
|
+
c && (colors.path = c.toString()), _ && (colors.path_hover = _.toString()), a && (colors.reserved = a.toString()), m && (colors.sold = m.toString()), l && (colors.stroke_color = l.toString()), d && (colors.stroke_width = Number(d));
|
|
1600
1620
|
}
|
|
1601
|
-
), provide("showFlatModal", showFlatModal), (
|
|
1621
|
+
), provide("showFlatModal", showFlatModal), (c, _) => (openBlock(), createBlock(_sfc_main$2, { class: "interactive-real-estate" }, {
|
|
1602
1622
|
default: withCtx(() => [
|
|
1603
1623
|
createVNode(Transition, {
|
|
1604
1624
|
name: "ire-fade-in-out",
|
|
@@ -1617,14 +1637,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1617
1637
|
projectMeta: projectMeta.value,
|
|
1618
1638
|
blocks: blocks.value,
|
|
1619
1639
|
actions: actions.value,
|
|
1620
|
-
onChangeComponent:
|
|
1640
|
+
onChangeComponent: _[0] || (_[0] = (a, m) => changeRoute(a, m))
|
|
1621
1641
|
}, null, 8, ["project", "floors", "flats", "projectMeta", "blocks", "actions"])) : flow.value === "blockFlow" && flats.value && floors.value && blocks.value && activeBlock.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
1622
1642
|
key: 1,
|
|
1623
1643
|
block: activeBlock.value,
|
|
1624
1644
|
flats: flats.value,
|
|
1625
1645
|
floors: floors.value,
|
|
1626
1646
|
actions: actions.value,
|
|
1627
|
-
onChangeComponent:
|
|
1647
|
+
onChangeComponent: _[1] || (_[1] = (a, m) => changeRoute(a, m))
|
|
1628
1648
|
}, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$b, {
|
|
1629
1649
|
key: 2,
|
|
1630
1650
|
flats: flats.value,
|
|
@@ -1632,7 +1652,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1632
1652
|
floors: floors.value,
|
|
1633
1653
|
blocks: blocks.value,
|
|
1634
1654
|
actions: actions.value,
|
|
1635
|
-
onChangeComponent:
|
|
1655
|
+
onChangeComponent: _[2] || (_[2] = (a, m) => changeRoute(a, m))
|
|
1636
1656
|
}, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : createCommentVNode("", !0)
|
|
1637
1657
|
], 4)) : createCommentVNode("", !0)
|
|
1638
1658
|
]),
|
|
@@ -1646,13 +1666,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1646
1666
|
default: withCtx(() => [
|
|
1647
1667
|
showFlatModal.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
1648
1668
|
key: 0,
|
|
1649
|
-
onClose:
|
|
1669
|
+
onClose: _[4] || (_[4] = (a) => showFlatModal.value = !1)
|
|
1650
1670
|
}, {
|
|
1651
1671
|
default: withCtx(() => [
|
|
1652
1672
|
createVNode(_sfc_main$8, {
|
|
1653
1673
|
flat: hoveredData.value,
|
|
1654
1674
|
floors: floors.value,
|
|
1655
|
-
onChangeComponent:
|
|
1675
|
+
onChangeComponent: _[3] || (_[3] = (a, m) => changeRoute(a, m))
|
|
1656
1676
|
}, null, 8, ["flat", "floors"])
|
|
1657
1677
|
]),
|
|
1658
1678
|
_: 1
|
|
@@ -1669,7 +1689,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1669
1689
|
default: withCtx(() => [
|
|
1670
1690
|
showModal.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
1671
1691
|
key: 0,
|
|
1672
|
-
onClose:
|
|
1692
|
+
onClose: _[5] || (_[5] = (a) => showModal.value = !1)
|
|
1673
1693
|
}, {
|
|
1674
1694
|
default: withCtx(() => [
|
|
1675
1695
|
createVNode(_sfc_main$4, { modalData: hoveredData.value }, null, 8, ["modalData"])
|