ire-preview 2.1.5 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib.es.js +439 -436
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -4,19 +4,19 @@ import { defineComponent, openBlock, createElementBlock, createVNode, Transition
|
|
|
4
4
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
5
|
* @license MIT
|
|
6
6
|
**/
|
|
7
|
-
const extend = Object.assign, isFunction = (
|
|
7
|
+
const extend = Object.assign, isFunction = (o) => typeof o == "function", isSymbol = (o) => typeof o == "symbol", hasChanged = (o, e) => !Object.is(o, e);
|
|
8
8
|
/**
|
|
9
9
|
* @vue/reactivity v3.5.12
|
|
10
10
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
11
11
|
* @license MIT
|
|
12
12
|
**/
|
|
13
13
|
let activeSub, batchDepth = 0, batchedSub, batchedComputed;
|
|
14
|
-
function batch(
|
|
15
|
-
if (
|
|
16
|
-
|
|
14
|
+
function batch(o, e = !1) {
|
|
15
|
+
if (o.flags |= 8, e) {
|
|
16
|
+
o.next = batchedComputed, batchedComputed = o;
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
o.next = batchedSub, batchedSub = o;
|
|
20
20
|
}
|
|
21
21
|
function startBatch() {
|
|
22
22
|
batchDepth++;
|
|
@@ -27,82 +27,82 @@ function endBatch() {
|
|
|
27
27
|
if (batchedComputed) {
|
|
28
28
|
let e = batchedComputed;
|
|
29
29
|
for (batchedComputed = void 0; e; ) {
|
|
30
|
-
const
|
|
31
|
-
e.next = void 0, e.flags &= -9, e =
|
|
30
|
+
const r = e.next;
|
|
31
|
+
e.next = void 0, e.flags &= -9, e = r;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
let
|
|
34
|
+
let o;
|
|
35
35
|
for (; batchedSub; ) {
|
|
36
36
|
let e = batchedSub;
|
|
37
37
|
for (batchedSub = void 0; e; ) {
|
|
38
|
-
const
|
|
38
|
+
const r = e.next;
|
|
39
39
|
if (e.next = void 0, e.flags &= -9, e.flags & 1)
|
|
40
40
|
try {
|
|
41
41
|
e.trigger();
|
|
42
|
-
} catch (
|
|
43
|
-
|
|
42
|
+
} catch (i) {
|
|
43
|
+
o || (o = i);
|
|
44
44
|
}
|
|
45
|
-
e =
|
|
45
|
+
e = r;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
if (
|
|
48
|
+
if (o) throw o;
|
|
49
49
|
}
|
|
50
|
-
function prepareDeps(
|
|
51
|
-
for (let e =
|
|
50
|
+
function prepareDeps(o) {
|
|
51
|
+
for (let e = o.deps; e; e = e.nextDep)
|
|
52
52
|
e.version = -1, e.prevActiveLink = e.dep.activeLink, e.dep.activeLink = e;
|
|
53
53
|
}
|
|
54
|
-
function cleanupDeps(
|
|
55
|
-
let e,
|
|
56
|
-
for (;
|
|
57
|
-
const
|
|
58
|
-
|
|
54
|
+
function cleanupDeps(o) {
|
|
55
|
+
let e, r = o.depsTail, i = r;
|
|
56
|
+
for (; i; ) {
|
|
57
|
+
const a = i.prevDep;
|
|
58
|
+
i.version === -1 ? (i === r && (r = a), removeSub(i), removeDep(i)) : e = i, i.dep.activeLink = i.prevActiveLink, i.prevActiveLink = void 0, i = a;
|
|
59
59
|
}
|
|
60
|
-
|
|
60
|
+
o.deps = e, o.depsTail = r;
|
|
61
61
|
}
|
|
62
|
-
function isDirty(
|
|
63
|
-
for (let e =
|
|
62
|
+
function isDirty(o) {
|
|
63
|
+
for (let e = o.deps; e; e = e.nextDep)
|
|
64
64
|
if (e.dep.version !== e.version || e.dep.computed && (refreshComputed(e.dep.computed) || e.dep.version !== e.version))
|
|
65
65
|
return !0;
|
|
66
|
-
return !!
|
|
66
|
+
return !!o._dirty;
|
|
67
67
|
}
|
|
68
|
-
function refreshComputed(
|
|
69
|
-
if (
|
|
68
|
+
function refreshComputed(o) {
|
|
69
|
+
if (o.flags & 4 && !(o.flags & 16) || (o.flags &= -17, o.globalVersion === globalVersion))
|
|
70
70
|
return;
|
|
71
|
-
|
|
72
|
-
const e =
|
|
73
|
-
if (
|
|
74
|
-
|
|
71
|
+
o.globalVersion = globalVersion;
|
|
72
|
+
const e = o.dep;
|
|
73
|
+
if (o.flags |= 2, e.version > 0 && !o.isSSR && o.deps && !isDirty(o)) {
|
|
74
|
+
o.flags &= -3;
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
|
-
const
|
|
78
|
-
activeSub =
|
|
77
|
+
const r = activeSub, i = shouldTrack;
|
|
78
|
+
activeSub = o, shouldTrack = !0;
|
|
79
79
|
try {
|
|
80
|
-
prepareDeps(
|
|
81
|
-
const
|
|
82
|
-
(e.version === 0 || hasChanged(
|
|
83
|
-
} catch (
|
|
84
|
-
throw e.version++,
|
|
80
|
+
prepareDeps(o);
|
|
81
|
+
const a = o.fn(o._value);
|
|
82
|
+
(e.version === 0 || hasChanged(a, o._value)) && (o._value = a, e.version++);
|
|
83
|
+
} catch (a) {
|
|
84
|
+
throw e.version++, a;
|
|
85
85
|
} finally {
|
|
86
|
-
activeSub =
|
|
86
|
+
activeSub = r, shouldTrack = i, cleanupDeps(o), o.flags &= -3;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function removeSub(
|
|
90
|
-
const { dep:
|
|
91
|
-
if (
|
|
92
|
-
|
|
93
|
-
for (let
|
|
94
|
-
removeSub(
|
|
89
|
+
function removeSub(o, e = !1) {
|
|
90
|
+
const { dep: r, prevSub: i, nextSub: a } = o;
|
|
91
|
+
if (i && (i.nextSub = a, o.prevSub = void 0), a && (a.prevSub = i, o.nextSub = void 0), r.subs === o && (r.subs = i, !i && r.computed)) {
|
|
92
|
+
r.computed.flags &= -5;
|
|
93
|
+
for (let p = r.computed.deps; p; p = p.nextDep)
|
|
94
|
+
removeSub(p, !0);
|
|
95
95
|
}
|
|
96
|
-
!e && !--
|
|
96
|
+
!e && !--r.sc && r.map && r.map.delete(r.key);
|
|
97
97
|
}
|
|
98
|
-
function removeDep(
|
|
99
|
-
const { prevDep: e, nextDep:
|
|
100
|
-
e && (e.nextDep =
|
|
98
|
+
function removeDep(o) {
|
|
99
|
+
const { prevDep: e, nextDep: r } = o;
|
|
100
|
+
e && (e.nextDep = r, o.prevDep = void 0), r && (r.prevDep = e, o.nextDep = void 0);
|
|
101
101
|
}
|
|
102
102
|
let shouldTrack = !0, globalVersion = 0;
|
|
103
103
|
class Link {
|
|
104
|
-
constructor(e,
|
|
105
|
-
this.sub = e, this.dep =
|
|
104
|
+
constructor(e, r) {
|
|
105
|
+
this.sub = e, this.dep = r, this.version = r.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
class Dep {
|
|
@@ -112,14 +112,14 @@ class Dep {
|
|
|
112
112
|
track(e) {
|
|
113
113
|
if (!activeSub || !shouldTrack || activeSub === this.computed)
|
|
114
114
|
return;
|
|
115
|
-
let
|
|
116
|
-
if (
|
|
117
|
-
|
|
118
|
-
else if (
|
|
119
|
-
const
|
|
120
|
-
|
|
115
|
+
let r = this.activeLink;
|
|
116
|
+
if (r === void 0 || r.sub !== activeSub)
|
|
117
|
+
r = this.activeLink = new Link(activeSub, this), activeSub.deps ? (r.prevDep = activeSub.depsTail, activeSub.depsTail.nextDep = r, activeSub.depsTail = r) : activeSub.deps = activeSub.depsTail = r, addSub(r);
|
|
118
|
+
else if (r.version === -1 && (r.version = this.version, r.nextDep)) {
|
|
119
|
+
const i = r.nextDep;
|
|
120
|
+
i.prevDep = r.prevDep, r.prevDep && (r.prevDep.nextDep = i), r.prevDep = activeSub.depsTail, r.nextDep = void 0, activeSub.depsTail.nextDep = r, activeSub.depsTail = r, activeSub.deps === r && (activeSub.deps = i);
|
|
121
121
|
}
|
|
122
|
-
return
|
|
122
|
+
return r;
|
|
123
123
|
}
|
|
124
124
|
trigger(e) {
|
|
125
125
|
this.version++, globalVersion++, this.notify(e);
|
|
@@ -127,31 +127,31 @@ class Dep {
|
|
|
127
127
|
notify(e) {
|
|
128
128
|
startBatch();
|
|
129
129
|
try {
|
|
130
|
-
for (let
|
|
131
|
-
|
|
130
|
+
for (let r = this.subs; r; r = r.prevSub)
|
|
131
|
+
r.sub.notify() && r.sub.dep.notify();
|
|
132
132
|
} finally {
|
|
133
133
|
endBatch();
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
function addSub(
|
|
138
|
-
if (
|
|
139
|
-
const e =
|
|
140
|
-
if (e && !
|
|
137
|
+
function addSub(o) {
|
|
138
|
+
if (o.dep.sc++, o.sub.flags & 4) {
|
|
139
|
+
const e = o.dep.computed;
|
|
140
|
+
if (e && !o.dep.subs) {
|
|
141
141
|
e.flags |= 20;
|
|
142
|
-
for (let
|
|
143
|
-
addSub(
|
|
142
|
+
for (let i = e.deps; i; i = i.nextDep)
|
|
143
|
+
addSub(i);
|
|
144
144
|
}
|
|
145
|
-
const
|
|
146
|
-
|
|
145
|
+
const r = o.dep.subs;
|
|
146
|
+
r !== o && (o.prevSub = r, r && (r.nextSub = o)), o.dep.subs = o;
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
new Set(
|
|
150
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((
|
|
150
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((o) => o !== "arguments" && o !== "caller").map((o) => Symbol[o]).filter(isSymbol)
|
|
151
151
|
);
|
|
152
152
|
class ComputedRefImpl {
|
|
153
|
-
constructor(e,
|
|
154
|
-
this.fn = e, this.setter =
|
|
153
|
+
constructor(e, r, i) {
|
|
154
|
+
this.fn = e, this.setter = r, this._value = void 0, this.dep = new Dep(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = globalVersion - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !r, this.isSSR = i;
|
|
155
155
|
}
|
|
156
156
|
/**
|
|
157
157
|
* @internal
|
|
@@ -169,9 +169,9 @@ class ComputedRefImpl {
|
|
|
169
169
|
this.setter && this.setter(e);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
function computed(
|
|
173
|
-
let
|
|
174
|
-
return isFunction(
|
|
172
|
+
function computed(o, e, r = !1) {
|
|
173
|
+
let i, a;
|
|
174
|
+
return isFunction(o) ? i = o : (i = o.get, a = o.set), new ComputedRefImpl(i, a, r);
|
|
175
175
|
}
|
|
176
176
|
const _hoisted_1$f = {
|
|
177
177
|
key: 0,
|
|
@@ -215,58 +215,58 @@ const _hoisted_1$f = {
|
|
|
215
215
|
hoveredData: {},
|
|
216
216
|
type: {}
|
|
217
217
|
},
|
|
218
|
-
setup(
|
|
219
|
-
return (e,
|
|
218
|
+
setup(o) {
|
|
219
|
+
return (e, r) => (openBlock(), createElementBlock("div", null, [
|
|
220
220
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
221
221
|
default: withCtx(() => {
|
|
222
|
-
var
|
|
222
|
+
var i, a, p, f, y, d, h, k, n, u, g, s, _, t, l, c, v, b, m, E, w, $, x, C, V, D, N, S;
|
|
223
223
|
return [
|
|
224
224
|
e.type && e.hoveredData && e.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
225
225
|
e.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
226
226
|
createElementVNode("div", _hoisted_3$6, [
|
|
227
|
-
createElementVNode("p", _hoisted_4$5, toDisplayString((
|
|
228
|
-
|
|
227
|
+
createElementVNode("p", _hoisted_4$5, toDisplayString((i = e.hoveredData) == null ? void 0 : i.floor_number), 1),
|
|
228
|
+
r[0] || (r[0] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Floor", -1))
|
|
229
229
|
]),
|
|
230
|
-
(
|
|
231
|
-
(y = e.hoveredData) != null && y.conf ? (openBlock(), createElementBlock("div", _hoisted_6$1, toDisplayString((
|
|
232
|
-
(k = (
|
|
233
|
-
createElementVNode("p", _hoisted_9$1, toDisplayString(((
|
|
234
|
-
|
|
230
|
+
(a = e.hoveredData) != null && a.conf || (f = (p = e.hoveredData) == null ? void 0 : p.flats) != null && f.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
231
|
+
(y = e.hoveredData) != null && y.conf ? (openBlock(), createElementBlock("div", _hoisted_6$1, toDisplayString((d = e.hoveredData) == null ? void 0 : d.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$1, [
|
|
232
|
+
(k = (h = e.hoveredData) == null ? void 0 : h.counts) != null && k.available ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
233
|
+
createElementVNode("p", _hoisted_9$1, toDisplayString(((u = (n = e.hoveredData) == null ? void 0 : n.counts) == null ? void 0 : u.available) || 0), 1),
|
|
234
|
+
r[1] || (r[1] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Available", -1))
|
|
235
235
|
])) : createCommentVNode("", !0),
|
|
236
|
-
(
|
|
237
|
-
createElementVNode("p", _hoisted_11$1, toDisplayString((
|
|
238
|
-
|
|
236
|
+
(s = (g = e.hoveredData) == null ? void 0 : g.counts) != null && s.reserved ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
237
|
+
createElementVNode("p", _hoisted_11$1, toDisplayString((t = (_ = e.hoveredData) == null ? void 0 : _.counts) == null ? void 0 : t.reserved), 1),
|
|
238
|
+
r[2] || (r[2] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Reserved", -1))
|
|
239
239
|
])) : createCommentVNode("", !0),
|
|
240
|
-
(
|
|
241
|
-
createElementVNode("p", _hoisted_13$1, toDisplayString((
|
|
242
|
-
|
|
240
|
+
(c = (l = e.hoveredData) == null ? void 0 : l.counts) != null && c.sold ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
|
|
241
|
+
createElementVNode("p", _hoisted_13$1, toDisplayString((b = (v = e.hoveredData) == null ? void 0 : v.counts) == null ? void 0 : b.sold), 1),
|
|
242
|
+
r[3] || (r[3] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Sold", -1))
|
|
243
243
|
])) : createCommentVNode("", !0)
|
|
244
244
|
]))
|
|
245
245
|
])) : createCommentVNode("", !0)
|
|
246
246
|
])) : e.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
|
|
247
247
|
createElementVNode("div", _hoisted_15$1, [
|
|
248
|
-
createElementVNode("span", _hoisted_16$1, toDisplayString((
|
|
249
|
-
createElementVNode("p", _hoisted_17$1, toDisplayString((
|
|
248
|
+
createElementVNode("span", _hoisted_16$1, toDisplayString((m = e.hoveredData) == null ? void 0 : m.conf), 1),
|
|
249
|
+
createElementVNode("p", _hoisted_17$1, toDisplayString((E = e.hoveredData) == null ? void 0 : E.title), 1)
|
|
250
250
|
])
|
|
251
251
|
])) : e.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_18$1, [
|
|
252
252
|
createElementVNode("div", _hoisted_19$1, [
|
|
253
|
-
createElementVNode("p", _hoisted_20$1, toDisplayString((
|
|
254
|
-
|
|
253
|
+
createElementVNode("p", _hoisted_20$1, toDisplayString((w = e.hoveredData) == null ? void 0 : w.flat_number), 1),
|
|
254
|
+
r[4] || (r[4] = createElementVNode("p", { class: "!ire-mt-2 !ire-text-xs ire-uppercase" }, "Apartment", -1))
|
|
255
255
|
]),
|
|
256
256
|
createElementVNode("div", _hoisted_21$1, [
|
|
257
|
-
(
|
|
258
|
-
|
|
257
|
+
($ = e.hoveredData) != null && $.conf ? (openBlock(), createElementBlock("p", _hoisted_22$1, toDisplayString(e.hoveredData.conf), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
258
|
+
r[7] || (r[7] = createElementVNode("p", { class: "!ire-text-xs ire-uppercase ire-text-gray-500" }, "Price", -1)),
|
|
259
259
|
(x = e.hoveredData) != null && x.price ? (openBlock(), createElementBlock("div", _hoisted_23$1, [
|
|
260
260
|
createElementVNode("div", null, [
|
|
261
|
-
(
|
|
262
|
-
createElementVNode("p", _hoisted_26$1, toDisplayString(Number((
|
|
261
|
+
(C = e.hoveredData) != null && C.offer_price ? (openBlock(), createElementBlock("div", _hoisted_25$1, [
|
|
262
|
+
createElementVNode("p", _hoisted_26$1, toDisplayString(Number((V = e.hoveredData) == null ? void 0 : V.price).toLocaleString()), 1),
|
|
263
263
|
createElementVNode("p", _hoisted_27, [
|
|
264
264
|
createTextVNode(toDisplayString(Number((D = e.hoveredData) == null ? void 0 : D.offer_price).toLocaleString()), 1),
|
|
265
|
-
|
|
265
|
+
r[6] || (r[6] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
|
|
266
266
|
])
|
|
267
267
|
])) : (openBlock(), createElementBlock("p", _hoisted_24$1, [
|
|
268
268
|
createTextVNode(toDisplayString(Number(e.hoveredData.price).toLocaleString()), 1),
|
|
269
|
-
|
|
269
|
+
r[5] || (r[5] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
|
|
270
270
|
]))
|
|
271
271
|
])
|
|
272
272
|
])) : createCommentVNode("", !0)
|
|
@@ -275,7 +275,7 @@ const _hoisted_1$f = {
|
|
|
275
275
|
createElementVNode("div", _hoisted_28, [
|
|
276
276
|
createElementVNode("p", _hoisted_29, [
|
|
277
277
|
createTextVNode(toDisplayString((S = (N = e.hoveredData) == null ? void 0 : N.type) == null ? void 0 : S.area_m2) + " M", 1),
|
|
278
|
-
|
|
278
|
+
r[8] || (r[8] = createElementVNode("sup", { class: "ire-bg-white !ire-text-xs" }, " 2 ", -1))
|
|
279
279
|
])
|
|
280
280
|
])
|
|
281
281
|
])) : createCommentVNode("", !0)
|
|
@@ -295,8 +295,8 @@ const _hoisted_1$f = {
|
|
|
295
295
|
hoverdData: {},
|
|
296
296
|
type: {}
|
|
297
297
|
},
|
|
298
|
-
setup(
|
|
299
|
-
return (e,
|
|
298
|
+
setup(o) {
|
|
299
|
+
return (e, r) => (openBlock(), createElementBlock("div", _hoisted_1$e, [
|
|
300
300
|
e.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
|
|
301
301
|
renderSlot(e.$slots, "header")
|
|
302
302
|
])) : createCommentVNode("", !0),
|
|
@@ -319,80 +319,80 @@ const _hoisted_1$f = {
|
|
|
319
319
|
projectMeta: {}
|
|
320
320
|
},
|
|
321
321
|
emits: ["changeComponent"],
|
|
322
|
-
setup(
|
|
323
|
-
const
|
|
324
|
-
if (
|
|
325
|
-
return
|
|
322
|
+
setup(o, { emit: e }) {
|
|
323
|
+
const r = e, i = o, a = ref(), p = ref(), f = ref(null), y = computed(() => {
|
|
324
|
+
if (i.project)
|
|
325
|
+
return i.project.svg;
|
|
326
326
|
});
|
|
327
327
|
computed(() => {
|
|
328
|
-
var
|
|
329
|
-
const k = (
|
|
330
|
-
(
|
|
331
|
-
)) == null ? void 0 :
|
|
328
|
+
var n, u;
|
|
329
|
+
const k = (u = (n = i.projectMeta) == null ? void 0 : n.find(
|
|
330
|
+
(g) => (g == null ? void 0 : g.meta_key) === "project_img_contain"
|
|
331
|
+
)) == null ? void 0 : u.meta_value;
|
|
332
332
|
return JSON.parse((k == null ? void 0 : k.toString()) || "false");
|
|
333
333
|
});
|
|
334
|
-
const
|
|
335
|
-
const
|
|
336
|
-
|
|
337
|
-
},
|
|
338
|
-
var
|
|
339
|
-
const
|
|
340
|
-
(
|
|
334
|
+
const d = (k) => {
|
|
335
|
+
const n = k.target;
|
|
336
|
+
n && (a.value = n);
|
|
337
|
+
}, h = (k) => {
|
|
338
|
+
var u, g, s;
|
|
339
|
+
const n = k.target;
|
|
340
|
+
(n == null ? void 0 : n.nodeName) === "path" && (((u = p.value) == null ? void 0 : u.conf) === "sold" || ((g = p.value) == null ? void 0 : g.conf) === "reserved" || r("changeComponent", ((s = f.value) == null ? void 0 : s.type) || "", p == null ? void 0 : p.value));
|
|
341
341
|
};
|
|
342
342
|
return watch(
|
|
343
|
-
() =>
|
|
343
|
+
() => a.value,
|
|
344
344
|
(k) => {
|
|
345
|
-
var
|
|
345
|
+
var u, g, s, _, t, l, c;
|
|
346
346
|
if (!k) return;
|
|
347
|
-
const
|
|
348
|
-
if (
|
|
349
|
-
const
|
|
350
|
-
if (!
|
|
351
|
-
const
|
|
352
|
-
switch ((
|
|
347
|
+
const n = k.parentElement;
|
|
348
|
+
if (n && (n == null ? void 0 : n.nodeName) === "g") {
|
|
349
|
+
const v = n == null ? void 0 : n.getAttribute("id");
|
|
350
|
+
if (!v || (f.value = ((u = i.project) == null ? void 0 : u.polygon_data.find((m) => (m == null ? void 0 : m.key) === v)) || null, !f.value)) return;
|
|
351
|
+
const b = (g = f.value) == null ? void 0 : g.id;
|
|
352
|
+
switch ((s = f.value) == null ? void 0 : s.type) {
|
|
353
353
|
case "floor":
|
|
354
|
-
const
|
|
355
|
-
(x) => x.id ===
|
|
354
|
+
const m = (_ = i.floors) == null ? void 0 : _.find(
|
|
355
|
+
(x) => x.id === b
|
|
356
356
|
);
|
|
357
|
-
|
|
357
|
+
p.value = m;
|
|
358
358
|
break;
|
|
359
359
|
case "block":
|
|
360
|
-
const
|
|
361
|
-
(x) => (x == null ? void 0 : x.id) ===
|
|
360
|
+
const E = (t = i.blocks) == null ? void 0 : t.find(
|
|
361
|
+
(x) => (x == null ? void 0 : x.id) === b
|
|
362
362
|
);
|
|
363
|
-
|
|
363
|
+
p.value = E;
|
|
364
364
|
break;
|
|
365
365
|
case "flat":
|
|
366
|
-
const
|
|
367
|
-
(x) => (x == null ? void 0 : x.id) ===
|
|
366
|
+
const w = (l = i.flats) == null ? void 0 : l.find(
|
|
367
|
+
(x) => (x == null ? void 0 : x.id) === b
|
|
368
368
|
);
|
|
369
|
-
|
|
369
|
+
p.value = w;
|
|
370
370
|
break;
|
|
371
371
|
case "tooltip":
|
|
372
|
-
const
|
|
373
|
-
(x) => (x == null ? void 0 : x.id) ===
|
|
372
|
+
const $ = (c = i.actions) == null ? void 0 : c.find(
|
|
373
|
+
(x) => (x == null ? void 0 : x.id) === b
|
|
374
374
|
);
|
|
375
|
-
|
|
375
|
+
p.value = $;
|
|
376
376
|
break;
|
|
377
377
|
default:
|
|
378
|
-
|
|
378
|
+
p.value = null;
|
|
379
379
|
break;
|
|
380
380
|
}
|
|
381
381
|
} else
|
|
382
|
-
|
|
382
|
+
f.value = null, p.value = null;
|
|
383
383
|
}
|
|
384
|
-
), (k,
|
|
385
|
-
var
|
|
384
|
+
), (k, n) => {
|
|
385
|
+
var u;
|
|
386
386
|
return openBlock(), createBlock(_sfc_main$f, {
|
|
387
|
-
hoverdData:
|
|
388
|
-
type: (
|
|
387
|
+
hoverdData: p.value,
|
|
388
|
+
type: (u = f.value) == null ? void 0 : u.type
|
|
389
389
|
}, {
|
|
390
390
|
default: withCtx(() => {
|
|
391
|
-
var
|
|
391
|
+
var g, s, _, t, l, c;
|
|
392
392
|
return [
|
|
393
393
|
createElementVNode("div", _hoisted_1$d, [
|
|
394
394
|
createElementVNode("img", {
|
|
395
|
-
src: (
|
|
395
|
+
src: (_ = (s = (g = k.project) == null ? void 0 : g.project_image) == null ? void 0 : s[0]) == null ? void 0 : _.url,
|
|
396
396
|
alt: "",
|
|
397
397
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
398
398
|
}, null, 8, _hoisted_2$6),
|
|
@@ -401,13 +401,13 @@ const _hoisted_1$f = {
|
|
|
401
401
|
key: unref(y),
|
|
402
402
|
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", [
|
|
403
403
|
{
|
|
404
|
-
"hover:[&_path]:ire-fill-[var(--reserved-color)]":
|
|
405
|
-
"hover:[&_path]:ire-fill-[var(--sold-color)]":
|
|
406
|
-
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((
|
|
404
|
+
"hover:[&_path]:ire-fill-[var(--reserved-color)]": p.value && ((t = p.value) == null ? void 0 : t.conf) === "reserved",
|
|
405
|
+
"hover:[&_path]:ire-fill-[var(--sold-color)]": p.value && ((l = p.value) == null ? void 0 : l.conf) === "sold",
|
|
406
|
+
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((c = p.value) != null && c.conf)
|
|
407
407
|
}
|
|
408
408
|
]]),
|
|
409
|
-
onMouseover:
|
|
410
|
-
onClick:
|
|
409
|
+
onMouseover: d,
|
|
410
|
+
onClick: h
|
|
411
411
|
}, null, 42, _hoisted_3$5))
|
|
412
412
|
])
|
|
413
413
|
];
|
|
@@ -432,26 +432,26 @@ const _hoisted_1$f = {
|
|
|
432
432
|
modelModifiers: {}
|
|
433
433
|
}),
|
|
434
434
|
emits: ["update:modelValue"],
|
|
435
|
-
setup(
|
|
436
|
-
const e = useModel(
|
|
437
|
-
return (
|
|
438
|
-
|
|
435
|
+
setup(o) {
|
|
436
|
+
const e = useModel(o, "modelValue");
|
|
437
|
+
return (r, i) => (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
438
|
+
r.label ? (openBlock(), createElementBlock("p", _hoisted_2$5, toDisplayString(r.label), 1)) : createCommentVNode("", !0),
|
|
439
439
|
createElementVNode("div", _hoisted_3$4, [
|
|
440
440
|
withDirectives(createElementVNode("select", {
|
|
441
|
-
"onUpdate:modelValue":
|
|
441
|
+
"onUpdate:modelValue": i[0] || (i[0] = (a) => e.value = a),
|
|
442
442
|
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"
|
|
443
443
|
}, [
|
|
444
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
445
|
-
var
|
|
444
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.data, (a) => {
|
|
445
|
+
var p, f;
|
|
446
446
|
return openBlock(), createElementBlock("option", {
|
|
447
|
-
value:
|
|
448
|
-
disabled: ((
|
|
449
|
-
}, toDisplayString(
|
|
447
|
+
value: a.value,
|
|
448
|
+
disabled: ((p = a == null ? void 0 : a.title) == null ? void 0 : p.includes("reserved")) || ((f = a == null ? void 0 : a.title) == null ? void 0 : f.includes("sold"))
|
|
449
|
+
}, toDisplayString(a.title), 9, _hoisted_4$4);
|
|
450
450
|
}), 256))
|
|
451
451
|
], 512), [
|
|
452
452
|
[vModelSelect, e.value]
|
|
453
453
|
]),
|
|
454
|
-
|
|
454
|
+
i[1] || (i[1] = createElementVNode("svg", {
|
|
455
455
|
xmlns: "http://www.w3.org/2000/svg",
|
|
456
456
|
fill: "none",
|
|
457
457
|
viewBox: "0 0 24 24",
|
|
@@ -468,11 +468,11 @@ const _hoisted_1$f = {
|
|
|
468
468
|
])
|
|
469
469
|
]));
|
|
470
470
|
}
|
|
471
|
-
}), _export_sfc = (
|
|
472
|
-
const
|
|
473
|
-
for (const [
|
|
474
|
-
|
|
475
|
-
return
|
|
471
|
+
}), _export_sfc = (o, e) => {
|
|
472
|
+
const r = o.__vccOpts || o;
|
|
473
|
+
for (const [i, a] of e)
|
|
474
|
+
r[i] = a;
|
|
475
|
+
return r;
|
|
476
476
|
}, _sfc_main$c = {}, _hoisted_1$b = {
|
|
477
477
|
xmlns: "http://www.w3.org/2000/svg",
|
|
478
478
|
width: "32",
|
|
@@ -480,7 +480,7 @@ const _hoisted_1$f = {
|
|
|
480
480
|
viewBox: "0 0 32 32",
|
|
481
481
|
fill: "none"
|
|
482
482
|
};
|
|
483
|
-
function _sfc_render$3(
|
|
483
|
+
function _sfc_render$3(o, e) {
|
|
484
484
|
return openBlock(), createElementBlock("svg", _hoisted_1$b, e[0] || (e[0] = [
|
|
485
485
|
createElementVNode("path", {
|
|
486
486
|
d: "M22.7074 16.7076L12.7074 26.7076C12.6145 26.8005 12.5042 26.8742 12.3828 26.9245C12.2614 26.9747 12.1313 27.0006 11.9999 27.0006C11.8686 27.0006 11.7384 26.9747 11.617 26.9245C11.4957 26.8742 11.3854 26.8005 11.2924 26.7076C11.1995 26.6147 11.1258 26.5044 11.0756 26.383C11.0253 26.2616 10.9994 26.1315 10.9994 26.0001C10.9994 25.8687 11.0253 25.7386 11.0756 25.6172C11.1258 25.4958 11.1995 25.3855 11.2924 25.2926L20.5862 16.0001L11.2924 6.70757C11.1048 6.51993 10.9994 6.26543 10.9994 6.00007C10.9994 5.7347 11.1048 5.48021 11.2924 5.29257C11.4801 5.10493 11.7346 4.99951 11.9999 4.99951C12.2653 4.99951 12.5198 5.10493 12.7074 5.29257L22.7074 15.2926C22.8004 15.3854 22.8742 15.4957 22.9245 15.6171C22.9748 15.7385 23.0007 15.8687 23.0007 16.0001C23.0007 16.1315 22.9748 16.2616 22.9245 16.383C22.8742 16.5044 22.8004 16.6147 22.7074 16.7076Z",
|
|
@@ -490,10 +490,10 @@ function _sfc_render$3(r, e) {
|
|
|
490
490
|
}
|
|
491
491
|
const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$3]]), _hoisted_1$a = { class: "ire-group ire-flex ire-w-fit ire-cursor-pointer ire-items-center ire-gap-1 ire-rounded-lg ire-border ire-bg-gray-50 ire-px-4 ire-py-2 ire-shadow-sm ire-transition-all hover:ire-bg-black lg:ire-px-5 lg:ire-py-2" }, _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
492
492
|
__name: "BackButton",
|
|
493
|
-
setup(
|
|
494
|
-
return (e,
|
|
493
|
+
setup(o) {
|
|
494
|
+
return (e, r) => (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
495
495
|
createVNode(ArrowRight, { class: "ire-w-6 ire-rotate-180 group-hover:[&_path]:ire-fill-white" }),
|
|
496
|
-
|
|
496
|
+
r[0] || (r[0] = createElementVNode("p", { class: "!ire-text-sm group-hover:!ire-text-white lg:!ire-text-balance" }, " Back ", -1))
|
|
497
497
|
]));
|
|
498
498
|
}
|
|
499
499
|
}), _hoisted_1$9 = { class: "ire-w-fit ire-bg-white" }, _hoisted_2$4 = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_3$3 = ["src"], _hoisted_4$3 = ["innerHTML"], _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
@@ -506,147 +506,147 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
|
|
|
506
506
|
actions: {}
|
|
507
507
|
},
|
|
508
508
|
emits: ["changeComponent"],
|
|
509
|
-
setup(
|
|
510
|
-
const
|
|
511
|
-
var
|
|
512
|
-
if ((
|
|
513
|
-
return
|
|
514
|
-
}),
|
|
515
|
-
(
|
|
516
|
-
var
|
|
509
|
+
setup(o, { emit: e }) {
|
|
510
|
+
const r = e, i = o, a = ref(), p = ref(), f = ref(), y = ref(null), d = ref(), h = ref(), k = computed$1(() => {
|
|
511
|
+
var t;
|
|
512
|
+
if ((t = i.floor) != null && t.svg)
|
|
513
|
+
return i.floor.svg;
|
|
514
|
+
}), n = computed$1(() => i.floors.filter(
|
|
515
|
+
(t) => {
|
|
516
|
+
var l, c;
|
|
517
517
|
return (
|
|
518
518
|
// floorItem.conf !== "reserved" &&
|
|
519
519
|
// floorItem.conf !== "sold" &&
|
|
520
|
-
(
|
|
520
|
+
(l = i.floor) != null && l.block_id ? (t == null ? void 0 : t.block_id) === ((c = i.floor) == null ? void 0 : c.block_id) : !(t != null && t.block_id)
|
|
521
521
|
);
|
|
522
522
|
}
|
|
523
|
-
).map((
|
|
524
|
-
var
|
|
525
|
-
const
|
|
526
|
-
(
|
|
527
|
-
var
|
|
528
|
-
return (
|
|
523
|
+
).map((t) => {
|
|
524
|
+
var c, v;
|
|
525
|
+
const l = (c = i.blocks) == null ? void 0 : c.find(
|
|
526
|
+
(b) => {
|
|
527
|
+
var m;
|
|
528
|
+
return (b == null ? void 0 : b.id) === ((m = t == null ? void 0 : t.block_id) == null ? void 0 : m.toString());
|
|
529
529
|
}
|
|
530
530
|
);
|
|
531
531
|
return {
|
|
532
|
-
title: ((
|
|
533
|
-
value:
|
|
532
|
+
title: ((v = t == null ? void 0 : t.floor_number) == null ? void 0 : v.toString()) + " Floor" + (l != null && l.id ? ` - ${l == null ? void 0 : l.title}` : "") + (t != null && t.conf ? " " + t.conf : ""),
|
|
533
|
+
value: t == null ? void 0 : t.id
|
|
534
534
|
};
|
|
535
|
-
}).sort((
|
|
536
|
-
const
|
|
537
|
-
|
|
538
|
-
},
|
|
539
|
-
var
|
|
540
|
-
const
|
|
541
|
-
(
|
|
542
|
-
},
|
|
543
|
-
var
|
|
544
|
-
|
|
545
|
-
var
|
|
546
|
-
const
|
|
547
|
-
(
|
|
535
|
+
}).sort((t, l) => +(t == null ? void 0 : t.title) - +(l == null ? void 0 : l.title)) || []), u = (t) => {
|
|
536
|
+
const l = t.target;
|
|
537
|
+
l && (p.value = l);
|
|
538
|
+
}, g = (t) => {
|
|
539
|
+
var c, v, b;
|
|
540
|
+
const l = t.target;
|
|
541
|
+
(l == null ? void 0 : l.nodeName) === "path" && (y.value && "conf" in y.value && (((c = y.value) == null ? void 0 : c.conf) === "sold" || ((v = y.value) == null ? void 0 : v.conf) === "reserved") || r("changeComponent", ((b = f.value) == null ? void 0 : b.type) || "", y.value));
|
|
542
|
+
}, s = () => {
|
|
543
|
+
var t;
|
|
544
|
+
a.value && ((t = a.value) == null ? void 0 : t.querySelectorAll("g")).forEach((c) => {
|
|
545
|
+
var m, E, w, $, x, C;
|
|
546
|
+
const v = c == null ? void 0 : c.getAttribute("id"), b = (E = (m = i.floor) == null ? void 0 : m.polygon_data) == null ? void 0 : E.find(
|
|
547
|
+
(V) => (V == null ? void 0 : V.key) === v
|
|
548
548
|
);
|
|
549
|
-
if (
|
|
550
|
-
if ((
|
|
551
|
-
|
|
549
|
+
if (i.flats)
|
|
550
|
+
if ((w = i.floor) != null && w.conf)
|
|
551
|
+
c.setAttribute("conf", (($ = i.floor) == null ? void 0 : $.conf) || "");
|
|
552
552
|
else {
|
|
553
|
-
const
|
|
554
|
-
(D) => (D == null ? void 0 : D.id) === (
|
|
553
|
+
const V = (x = i.flats) == null ? void 0 : x.find(
|
|
554
|
+
(D) => (D == null ? void 0 : D.id) === (b == null ? void 0 : b.id)
|
|
555
555
|
);
|
|
556
|
-
|
|
556
|
+
c == null || c.setAttribute("conf", ((C = V == null ? void 0 : V.conf) == null ? void 0 : C.toString()) || "");
|
|
557
557
|
}
|
|
558
558
|
});
|
|
559
|
-
},
|
|
560
|
-
var
|
|
561
|
-
(
|
|
559
|
+
}, _ = () => {
|
|
560
|
+
var t;
|
|
561
|
+
(t = i.floor) != null && t.block_id ? r("changeComponent", "block", h.value) : r("changeComponent", "project", null);
|
|
562
562
|
};
|
|
563
563
|
return watch(
|
|
564
|
-
() =>
|
|
565
|
-
(
|
|
566
|
-
var
|
|
567
|
-
if (!
|
|
568
|
-
const
|
|
569
|
-
if (
|
|
570
|
-
const
|
|
571
|
-
if (
|
|
572
|
-
if (((
|
|
573
|
-
const x = (
|
|
574
|
-
(
|
|
575
|
-
var
|
|
576
|
-
return (
|
|
564
|
+
() => p.value,
|
|
565
|
+
(t) => {
|
|
566
|
+
var c, v, b, m, E, w;
|
|
567
|
+
if (!t) return;
|
|
568
|
+
const l = t == null ? void 0 : t.parentElement;
|
|
569
|
+
if (l && (l == null ? void 0 : l.nodeName) === "g") {
|
|
570
|
+
const $ = l.getAttribute("id");
|
|
571
|
+
if (!$ || (f.value = ((v = (c = i.floor) == null ? void 0 : c.polygon_data) == null ? void 0 : v.find((x) => (x == null ? void 0 : x.key) === $)) || null, !f.value)) return;
|
|
572
|
+
if (((b = f.value) == null ? void 0 : b.type) === "flat") {
|
|
573
|
+
const x = (m = i.flats) == null ? void 0 : m.find(
|
|
574
|
+
(C) => {
|
|
575
|
+
var V;
|
|
576
|
+
return (C == null ? void 0 : C.id) === ((V = f.value) == null ? void 0 : V.id);
|
|
577
577
|
}
|
|
578
578
|
);
|
|
579
579
|
y.value = x ?? null;
|
|
580
|
-
} else if (((
|
|
581
|
-
const x = (
|
|
582
|
-
(
|
|
583
|
-
var
|
|
584
|
-
return (
|
|
580
|
+
} else if (((E = f.value) == null ? void 0 : E.type) === "tooltip") {
|
|
581
|
+
const x = (w = i.actions) == null ? void 0 : w.find(
|
|
582
|
+
(C) => {
|
|
583
|
+
var V;
|
|
584
|
+
return (C == null ? void 0 : C.id) === ((V = f.value) == null ? void 0 : V.id);
|
|
585
585
|
}
|
|
586
586
|
);
|
|
587
587
|
y.value = x ?? null;
|
|
588
588
|
} else
|
|
589
589
|
y.value = null;
|
|
590
590
|
} else
|
|
591
|
-
|
|
591
|
+
f.value = null;
|
|
592
592
|
}
|
|
593
593
|
), watch(
|
|
594
|
-
() =>
|
|
594
|
+
() => d.value,
|
|
595
595
|
() => {
|
|
596
|
-
var
|
|
597
|
-
const
|
|
598
|
-
(
|
|
596
|
+
var l;
|
|
597
|
+
const t = (l = i.floors) == null ? void 0 : l.find(
|
|
598
|
+
(c) => (c == null ? void 0 : c.id) === (d == null ? void 0 : d.value)
|
|
599
599
|
);
|
|
600
|
-
|
|
601
|
-
|
|
600
|
+
t != null && t.conf || (t && r("changeComponent", "floor", t), setTimeout(() => {
|
|
601
|
+
s();
|
|
602
602
|
}, 0));
|
|
603
603
|
}
|
|
604
604
|
), onMounted(() => {
|
|
605
|
-
var
|
|
606
|
-
|
|
607
|
-
(
|
|
608
|
-
var
|
|
609
|
-
return (
|
|
605
|
+
var t, l, c;
|
|
606
|
+
h.value = (t = i.blocks) == null ? void 0 : t.find(
|
|
607
|
+
(v) => {
|
|
608
|
+
var b, m;
|
|
609
|
+
return (v == null ? void 0 : v.id) === ((m = (b = i.floor) == null ? void 0 : b.block_id) == null ? void 0 : m.toString());
|
|
610
610
|
}
|
|
611
|
-
),
|
|
612
|
-
(
|
|
613
|
-
var
|
|
614
|
-
return (
|
|
611
|
+
), d.value = (c = (l = n.value) == null ? void 0 : l.find(
|
|
612
|
+
(v) => {
|
|
613
|
+
var b;
|
|
614
|
+
return (v == null ? void 0 : v.value) == ((b = i.floor) == null ? void 0 : b.id);
|
|
615
615
|
}
|
|
616
|
-
)) == null ? void 0 :
|
|
617
|
-
}), (
|
|
618
|
-
var
|
|
616
|
+
)) == null ? void 0 : c.value, s();
|
|
617
|
+
}), (t, l) => {
|
|
618
|
+
var c;
|
|
619
619
|
return openBlock(), createBlock(_sfc_main$f, {
|
|
620
620
|
hoverdData: y.value,
|
|
621
|
-
type: (
|
|
621
|
+
type: (c = f.value) == null ? void 0 : c.type
|
|
622
622
|
}, {
|
|
623
623
|
header: withCtx(() => [
|
|
624
|
-
createVNode(_sfc_main$b, { onClick:
|
|
624
|
+
createVNode(_sfc_main$b, { onClick: _ }),
|
|
625
625
|
createElementVNode("div", _hoisted_1$9, [
|
|
626
626
|
createVNode(_sfc_main$d, {
|
|
627
|
-
modelValue:
|
|
628
|
-
"onUpdate:modelValue":
|
|
629
|
-
data:
|
|
627
|
+
modelValue: d.value,
|
|
628
|
+
"onUpdate:modelValue": l[0] || (l[0] = (v) => d.value = v),
|
|
629
|
+
data: n.value
|
|
630
630
|
}, null, 8, ["modelValue", "data"])
|
|
631
631
|
])
|
|
632
632
|
]),
|
|
633
633
|
default: withCtx(() => {
|
|
634
|
-
var
|
|
634
|
+
var v, b, m;
|
|
635
635
|
return [
|
|
636
636
|
createElementVNode("div", _hoisted_2$4, [
|
|
637
637
|
createElementVNode("img", {
|
|
638
|
-
src: ((
|
|
638
|
+
src: ((m = (b = (v = t.floor) == null ? void 0 : v.floor_image) == null ? void 0 : b[0]) == null ? void 0 : m.url) || "",
|
|
639
639
|
alt: "",
|
|
640
640
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
641
641
|
}, null, 8, _hoisted_3$3),
|
|
642
642
|
(openBlock(), createElementBlock("div", {
|
|
643
643
|
ref_key: "svgRef",
|
|
644
|
-
ref:
|
|
644
|
+
ref: a,
|
|
645
645
|
innerHTML: k.value,
|
|
646
646
|
key: k.value,
|
|
647
647
|
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",
|
|
648
|
-
onMouseover:
|
|
649
|
-
onClick:
|
|
648
|
+
onMouseover: u,
|
|
649
|
+
onClick: g
|
|
650
650
|
}, null, 40, _hoisted_4$3))
|
|
651
651
|
])
|
|
652
652
|
];
|
|
@@ -662,7 +662,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
|
|
|
662
662
|
fill: "none",
|
|
663
663
|
xmlns: "http://www.w3.org/2000/svg"
|
|
664
664
|
};
|
|
665
|
-
function _sfc_render$2(
|
|
665
|
+
function _sfc_render$2(o, e) {
|
|
666
666
|
return openBlock(), createElementBlock("svg", _hoisted_1$8, e[0] || (e[0] = [
|
|
667
667
|
createStaticVNode('<path d="M5.25 20.25H4.5C4.30109 20.25 4.11032 20.171 3.96967 20.0303C3.82902 19.8897 3.75 19.6989 3.75 19.5V18.75" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10.5 8.25H8.25" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10.5 20.25H9" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M15.75 15.75V13.5" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.75 15V13.5" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14.25 20.25H15C15.1989 20.25 15.3897 20.171 15.5303 20.0303C15.671 19.8897 15.75 19.6989 15.75 19.5V18.75" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14.25 8.25H15C15.1989 8.25 15.3897 8.32902 15.5303 8.46967C15.671 8.61032 15.75 8.80109 15.75 9V9.75" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.25 8.25H4.5C4.30109 8.25 4.11032 8.32902 3.96967 8.46967C3.82902 8.61032 3.75 8.80109 3.75 9V9.75" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M15.75 15.75H19.5C19.6989 15.75 19.8897 15.671 20.0303 15.5303C20.171 15.3897 20.25 15.1989 20.25 15V4.5C20.25 4.30109 20.171 4.11032 20.0303 3.96967C19.8897 3.82902 19.6989 3.75 19.5 3.75H9C8.80109 3.75 8.61032 3.82902 8.46967 3.96967C8.32902 4.11032 8.25 4.30109 8.25 4.5V8.25" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path>', 9)
|
|
668
668
|
]));
|
|
@@ -674,7 +674,7 @@ const FlatIcon = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_rende
|
|
|
674
674
|
fill: "none",
|
|
675
675
|
xmlns: "http://www.w3.org/2000/svg"
|
|
676
676
|
};
|
|
677
|
-
function _sfc_render$1(
|
|
677
|
+
function _sfc_render$1(o, e) {
|
|
678
678
|
return openBlock(), createElementBlock("svg", _hoisted_1$7, e[0] || (e[0] = [
|
|
679
679
|
createElementVNode("path", {
|
|
680
680
|
d: "M21 16.622V7.37824C20.9993 7.24472 20.9634 7.11375 20.8959 6.99853C20.8284 6.88331 20.7317 6.78793 20.6156 6.72199L12.3656 2.08137C12.2545 2.01719 12.1284 1.9834 12 1.9834C11.8716 1.9834 11.7455 2.01719 11.6344 2.08137L3.38437 6.72199C3.26827 6.78793 3.1716 6.88331 3.10411 6.99853C3.03663 7.11375 3.00072 7.24472 3 7.37824V16.622C3.00072 16.7555 3.03663 16.8865 3.10411 17.0017C3.1716 17.1169 3.26827 17.2123 3.38437 17.2782L11.6344 21.9189C11.7455 21.983 11.8716 22.0168 12 22.0168C12.1284 22.0168 12.2545 21.983 12.3656 21.9189L20.6156 17.2782C20.7317 17.2123 20.8284 17.1169 20.8959 17.0017C20.9634 16.8865 20.9993 16.7555 21 16.622V16.622Z",
|
|
@@ -721,36 +721,36 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
721
721
|
floors: {}
|
|
722
722
|
},
|
|
723
723
|
emits: ["changeComponent"],
|
|
724
|
-
setup(
|
|
725
|
-
const
|
|
726
|
-
var
|
|
727
|
-
const
|
|
728
|
-
return ["I", "II", "III"].slice(0,
|
|
724
|
+
setup(o, { emit: e }) {
|
|
725
|
+
const r = e, i = o, a = ref(!0), p = ref(0), f = computed$1(() => {
|
|
726
|
+
var h, k, n, u, g, s;
|
|
727
|
+
const d = a.value ? (n = (k = (h = i.flat) == null ? void 0 : h.type) == null ? void 0 : k.image_2d) == null ? void 0 : n.length : (s = (g = (u = i.flat) == null ? void 0 : u.type) == null ? void 0 : g.image_3d) == null ? void 0 : s.length;
|
|
728
|
+
return ["I", "II", "III"].slice(0, d);
|
|
729
729
|
}), y = () => {
|
|
730
|
-
var
|
|
731
|
-
const
|
|
730
|
+
var h;
|
|
731
|
+
const d = (h = i.floors) == null ? void 0 : h.find(
|
|
732
732
|
(k) => {
|
|
733
|
-
var
|
|
734
|
-
return ((
|
|
733
|
+
var n, u, g, s, _, t;
|
|
734
|
+
return ((n = k.floor_number) == null ? void 0 : n.toString()) === ((g = (u = i.flat) == null ? void 0 : u.floor_number) == null ? void 0 : g.toString()) && ((s = i.flat) != null && s.block_id ? ((_ = k == null ? void 0 : k.block_id) == null ? void 0 : _.toString()) === ((t = i.flat) == null ? void 0 : t.block_id) : !(k != null && k.block_id));
|
|
735
735
|
}
|
|
736
736
|
);
|
|
737
|
-
|
|
737
|
+
d ? r("changeComponent", "floor", d) : r("changeComponent", "project", null);
|
|
738
738
|
};
|
|
739
739
|
return watch(
|
|
740
|
-
() =>
|
|
740
|
+
() => a.value,
|
|
741
741
|
() => {
|
|
742
|
-
|
|
742
|
+
p.value = 0;
|
|
743
743
|
}
|
|
744
744
|
), onMounted(() => {
|
|
745
|
-
var
|
|
746
|
-
(
|
|
747
|
-
}), (
|
|
745
|
+
var d, h;
|
|
746
|
+
(h = (d = i.flat) == null ? void 0 : d.type) != null && h.image_2d || (a.value = !1);
|
|
747
|
+
}), (d, h) => (openBlock(), createElementBlock("div", null, [
|
|
748
748
|
createVNode(_sfc_main$f, { "hoverd-data": null }, {
|
|
749
749
|
header: withCtx(() => [
|
|
750
750
|
createVNode(_sfc_main$b, { onClick: y })
|
|
751
751
|
]),
|
|
752
752
|
default: withCtx(() => {
|
|
753
|
-
var k,
|
|
753
|
+
var k, n, u, g, s, _, t, l, c, v, b, m, E, w, $, x, C, V, D, N, S, j, R, T, P, O, F;
|
|
754
754
|
return [
|
|
755
755
|
createElementVNode("div", _hoisted_1$6, [
|
|
756
756
|
createElementVNode("div", _hoisted_2$3, [
|
|
@@ -759,15 +759,15 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
759
759
|
mode: "out-in"
|
|
760
760
|
}, {
|
|
761
761
|
default: withCtx(() => {
|
|
762
|
-
var B, M, L, I, A, H, z, W, K, Z, q,
|
|
762
|
+
var B, M, L, I, A, H, z, W, K, U, Z, q, J, Q, X, Y, G, ee, te, re, oe, ie, le, se;
|
|
763
763
|
return [
|
|
764
|
-
|
|
765
|
-
key: (W = (z = (H = (A =
|
|
766
|
-
src: (
|
|
764
|
+
a.value && ((I = (L = (M = (B = d.flat) == null ? void 0 : B.type) == null ? void 0 : M.image_2d) == null ? void 0 : L[p.value]) != null && I.url) ? (openBlock(), createElementBlock("img", {
|
|
765
|
+
key: (W = (z = (H = (A = d.flat) == null ? void 0 : A.type) == null ? void 0 : H.image_2d) == null ? void 0 : z[p.value]) == null ? void 0 : W.url,
|
|
766
|
+
src: (q = (Z = (U = (K = d.flat) == null ? void 0 : K.type) == null ? void 0 : U.image_2d) == null ? void 0 : Z[p.value]) == null ? void 0 : q.url,
|
|
767
767
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
|
|
768
|
-
}, null, 8, _hoisted_3$2)) : (Y = (X = (Q = (J =
|
|
769
|
-
src: (re = (te = (ee = (G =
|
|
770
|
-
key: (se = (le = (ie = (oe =
|
|
768
|
+
}, null, 8, _hoisted_3$2)) : (Y = (X = (Q = (J = d.flat) == null ? void 0 : J.type) == null ? void 0 : Q.image_3d) == null ? void 0 : X[p.value]) != null && Y.url ? (openBlock(), createElementBlock("img", {
|
|
769
|
+
src: (re = (te = (ee = (G = d.flat) == null ? void 0 : G.type) == null ? void 0 : ee.image_3d) == null ? void 0 : te[p.value]) == null ? void 0 : re.url,
|
|
770
|
+
key: (se = (le = (ie = (oe = d.flat) == null ? void 0 : oe.type) == null ? void 0 : ie.image_3d) == null ? void 0 : le[p.value]) == null ? void 0 : se.url,
|
|
771
771
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
|
|
772
772
|
}, null, 8, _hoisted_4$2)) : createCommentVNode("", !0)
|
|
773
773
|
];
|
|
@@ -776,93 +776,93 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
776
776
|
}),
|
|
777
777
|
createElementVNode("div", _hoisted_5, [
|
|
778
778
|
createElementVNode("div", _hoisted_6, [
|
|
779
|
-
(
|
|
779
|
+
(g = (u = (n = (k = d.flat) == null ? void 0 : k.type) == null ? void 0 : n.image_2d) == null ? void 0 : u[0]) != null && g.url ? (openBlock(), createElementBlock("div", {
|
|
780
780
|
key: 0,
|
|
781
|
-
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":
|
|
782
|
-
onClick:
|
|
781
|
+
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": a.value }]),
|
|
782
|
+
onClick: h[0] || (h[0] = (B) => a.value = !0)
|
|
783
783
|
}, [
|
|
784
784
|
createVNode(FlatIcon, {
|
|
785
|
-
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white":
|
|
785
|
+
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": a.value }])
|
|
786
786
|
}, null, 8, ["class"]),
|
|
787
787
|
createElementVNode("p", {
|
|
788
788
|
class: normalizeClass(["group-hover:!ire-text-white", {
|
|
789
|
-
"!ire-text-white":
|
|
790
|
-
"!ire-text-black": !
|
|
789
|
+
"!ire-text-white": a.value,
|
|
790
|
+
"!ire-text-black": !a.value
|
|
791
791
|
}])
|
|
792
792
|
}, " 2D plan ", 2)
|
|
793
793
|
], 2)) : createCommentVNode("", !0),
|
|
794
|
-
(
|
|
794
|
+
(l = (t = (_ = (s = d.flat) == null ? void 0 : s.type) == null ? void 0 : _.image_3d) == null ? void 0 : t[0]) != null && l.url ? (openBlock(), createElementBlock("div", {
|
|
795
795
|
key: 1,
|
|
796
|
-
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": !
|
|
797
|
-
onClick:
|
|
796
|
+
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": !a.value }]),
|
|
797
|
+
onClick: h[1] || (h[1] = (B) => a.value = !1)
|
|
798
798
|
}, [
|
|
799
799
|
createElementVNode("div", null, [
|
|
800
800
|
createVNode(Cube, {
|
|
801
|
-
class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !
|
|
801
|
+
class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !a.value }])
|
|
802
802
|
}, null, 8, ["class"])
|
|
803
803
|
]),
|
|
804
804
|
createElementVNode("p", {
|
|
805
805
|
class: normalizeClass(["group-hover:!ire-text-white", {
|
|
806
|
-
"!ire-text-white": !
|
|
807
|
-
"!ire-text-black":
|
|
806
|
+
"!ire-text-white": !a.value,
|
|
807
|
+
"!ire-text-black": a.value
|
|
808
808
|
}])
|
|
809
809
|
}, " 3D plan ", 2)
|
|
810
810
|
], 2)) : createCommentVNode("", !0)
|
|
811
811
|
]),
|
|
812
|
-
((
|
|
813
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
812
|
+
((c = f.value) == null ? void 0 : c.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
813
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(f.value, (B, M) => (openBlock(), createElementBlock("div", {
|
|
814
814
|
key: B,
|
|
815
815
|
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", {
|
|
816
|
-
"ire-bg-black ire-text-white":
|
|
816
|
+
"ire-bg-black ire-text-white": p.value === M
|
|
817
817
|
}]),
|
|
818
|
-
onClick: (L) =>
|
|
818
|
+
onClick: (L) => p.value = M
|
|
819
819
|
}, toDisplayString(B), 11, _hoisted_8))), 128))
|
|
820
820
|
])) : createCommentVNode("", !0)
|
|
821
821
|
])
|
|
822
822
|
]),
|
|
823
823
|
createElementVNode("div", _hoisted_9, [
|
|
824
824
|
createElementVNode("div", _hoisted_10, [
|
|
825
|
-
createElementVNode("p", _hoisted_11, toDisplayString((
|
|
826
|
-
|
|
825
|
+
createElementVNode("p", _hoisted_11, toDisplayString((v = d.flat) == null ? void 0 : v.flat_number), 1),
|
|
826
|
+
h[2] || (h[2] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Apartment", -1))
|
|
827
827
|
]),
|
|
828
828
|
createElementVNode("div", _hoisted_12, [
|
|
829
|
-
createElementVNode("p", _hoisted_13, toDisplayString((
|
|
830
|
-
createElementVNode("p", _hoisted_14, toDisplayString((
|
|
829
|
+
createElementVNode("p", _hoisted_13, toDisplayString((m = (b = d.flat) == null ? void 0 : b.type) == null ? void 0 : m.title), 1),
|
|
830
|
+
createElementVNode("p", _hoisted_14, toDisplayString((w = (E = d.flat) == null ? void 0 : E.type) == null ? void 0 : w.teaser), 1)
|
|
831
831
|
]),
|
|
832
832
|
createElementVNode("div", _hoisted_15, [
|
|
833
|
-
(
|
|
834
|
-
createElementVNode("p", _hoisted_17, toDisplayString((x =
|
|
835
|
-
|
|
833
|
+
($ = d.flat) != null && $.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
834
|
+
createElementVNode("p", _hoisted_17, toDisplayString((x = d.flat) == null ? void 0 : x.floor_number), 1),
|
|
835
|
+
h[3] || (h[3] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Floor", -1))
|
|
836
836
|
])) : createCommentVNode("", !0),
|
|
837
|
-
(
|
|
838
|
-
createElementVNode("p", _hoisted_19, toDisplayString((D =
|
|
839
|
-
|
|
837
|
+
(V = (C = d.flat) == null ? void 0 : C.type) != null && V.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
|
|
838
|
+
createElementVNode("p", _hoisted_19, toDisplayString((D = d.flat) == null ? void 0 : D.type.rooms_count), 1),
|
|
839
|
+
h[4] || (h[4] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Room", -1))
|
|
840
840
|
])) : createCommentVNode("", !0)
|
|
841
841
|
]),
|
|
842
|
-
(S = (N =
|
|
842
|
+
(S = (N = d.flat) == null ? void 0 : N.type) != null && S.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
843
843
|
createElementVNode("p", _hoisted_21, [
|
|
844
|
-
createTextVNode(toDisplayString((j =
|
|
845
|
-
|
|
844
|
+
createTextVNode(toDisplayString((j = d.flat) == null ? void 0 : j.type.area_m2) + " ", 1),
|
|
845
|
+
h[5] || (h[5] = createElementVNode("span", { class: "ire-font-light" }, [
|
|
846
846
|
createTextVNode(" M "),
|
|
847
847
|
createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
|
|
848
848
|
], -1))
|
|
849
849
|
]),
|
|
850
|
-
|
|
850
|
+
h[6] || (h[6] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Area", -1))
|
|
851
851
|
])) : createCommentVNode("", !0),
|
|
852
|
-
(
|
|
852
|
+
(R = d.flat) != null && R.price ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
853
853
|
createElementVNode("div", null, [
|
|
854
|
-
(
|
|
855
|
-
createElementVNode("p", _hoisted_25, toDisplayString(Number((O =
|
|
854
|
+
(T = d.flat) != null && T.offer_price ? (openBlock(), createElementBlock("div", _hoisted_24, [
|
|
855
|
+
createElementVNode("p", _hoisted_25, toDisplayString(Number((O = d.flat) == null ? void 0 : O.price).toLocaleString()), 1),
|
|
856
856
|
createElementVNode("p", _hoisted_26, [
|
|
857
|
-
createTextVNode(toDisplayString(Number((F =
|
|
858
|
-
|
|
857
|
+
createTextVNode(toDisplayString(Number((F = d.flat) == null ? void 0 : F.offer_price).toLocaleString()), 1),
|
|
858
|
+
h[8] || (h[8] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
|
|
859
859
|
])
|
|
860
860
|
])) : (openBlock(), createElementBlock("p", _hoisted_23, [
|
|
861
|
-
createTextVNode(toDisplayString(Number((P =
|
|
862
|
-
|
|
861
|
+
createTextVNode(toDisplayString(Number((P = d.flat) == null ? void 0 : P.price).toLocaleString()), 1),
|
|
862
|
+
h[7] || (h[7] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
|
|
863
863
|
]))
|
|
864
864
|
]),
|
|
865
|
-
|
|
865
|
+
h[9] || (h[9] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Price", -1))
|
|
866
866
|
])) : createCommentVNode("", !0)
|
|
867
867
|
])
|
|
868
868
|
])
|
|
@@ -880,7 +880,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
|
|
|
880
880
|
height: "20",
|
|
881
881
|
viewBox: "0 0 50 50"
|
|
882
882
|
};
|
|
883
|
-
function _sfc_render(
|
|
883
|
+
function _sfc_render(o, e) {
|
|
884
884
|
return openBlock(), createElementBlock("svg", _hoisted_1$5, e[0] || (e[0] = [
|
|
885
885
|
createElementVNode("path", { d: "M 9.15625 6.3125 L 6.3125 9.15625 L 22.15625 25 L 6.21875 40.96875 L 9.03125 43.78125 L 25 27.84375 L 40.9375 43.78125 L 43.78125 40.9375 L 27.84375 25 L 43.6875 9.15625 L 40.84375 6.3125 L 25 22.15625 Z" }, null, -1)
|
|
886
886
|
]));
|
|
@@ -888,17 +888,17 @@ function _sfc_render(r, e) {
|
|
|
888
888
|
const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]), _hoisted_1$4 = { class: "ire-fixed ire-left-0 ire-top-0 ire-z-[99999] ire-flex ire-h-full ire-w-full ire-cursor-pointer ire-items-center ire-justify-center ire-p-4 lg:ire-p-32" }, _hoisted_2$2 = { class: "ire-relative ire-h-fit ire-max-h-[80%] ire-min-w-full ire-max-w-[1280px] ire-cursor-default ire-overflow-y-auto ire-rounded-l-sm ire-bg-white lg:ire-min-w-[500px]" }, _hoisted_3$1 = { class: "ire-sticky ire-right-full ire-top-0 ire-flex ire-w-full ire-flex-row-reverse" }, _hoisted_4$1 = { class: "ire-h-full ire-w-full ire-cursor-auto ire-p-5 ire-pt-1" }, _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
889
889
|
__name: "PreviewModal",
|
|
890
890
|
emits: ["close"],
|
|
891
|
-
setup(
|
|
892
|
-
return (e,
|
|
891
|
+
setup(o) {
|
|
892
|
+
return (e, r) => (openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
893
893
|
createElementVNode("div", {
|
|
894
894
|
class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full ire-bg-black/40 ire-transition-all",
|
|
895
|
-
onClick:
|
|
895
|
+
onClick: r[0] || (r[0] = (i) => e.$emit("close"))
|
|
896
896
|
}),
|
|
897
897
|
createElementVNode("div", _hoisted_2$2, [
|
|
898
898
|
createElementVNode("div", _hoisted_3$1, [
|
|
899
899
|
createElementVNode("div", {
|
|
900
900
|
class: "ire-z-[999] ire-mx-3 ire-my-2 ire-w-fit ire-cursor-pointer ire-rounded-full ire-p-1 ire-transition-all hover:ire-bg-gray-600 [&_path]:ire-fill-gray-400 [&_path]:hover:ire-fill-white [&_svg]:ire-h-3 [&_svg]:ire-w-3",
|
|
901
|
-
onClick:
|
|
901
|
+
onClick: r[1] || (r[1] = (i) => e.$emit("close"))
|
|
902
902
|
}, [
|
|
903
903
|
createVNode(Close)
|
|
904
904
|
])
|
|
@@ -914,8 +914,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
914
914
|
props: {
|
|
915
915
|
editor: {}
|
|
916
916
|
},
|
|
917
|
-
setup(
|
|
918
|
-
return (e,
|
|
917
|
+
setup(o) {
|
|
918
|
+
return (e, r) => (openBlock(), createElementBlock("div", {
|
|
919
919
|
class: "[&_ul]:ire-columns-1 [&_a]:ire-cursor-pointer [&_a]:ire-text-[#2980b9] [&_a]:ire-underline [&_ul]:ire-flex [&_ul]:ire-flex-col [&_ul]:ire-gap-2 [&_ul_li]:ire-relative [&_ul_li]:ire-pl-[20px] [&_ul_li]:after:ire-absolute [&_ul_li]:after:ire-left-2 [&_ul_li]:after:ire-top-[10px] [&_ul_li]:after:ire-h-[4px] [&_ul_li]:after:ire-w-[4px] [&_ul_li]:after:ire-rounded-[50%] [&_ul_li]:after:ire-bg-black",
|
|
920
920
|
innerHTML: e.editor
|
|
921
921
|
}, null, 8, _hoisted_1$3));
|
|
@@ -925,17 +925,17 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
925
925
|
props: {
|
|
926
926
|
modalData: {}
|
|
927
927
|
},
|
|
928
|
-
setup(
|
|
929
|
-
return (e,
|
|
930
|
-
var
|
|
928
|
+
setup(o) {
|
|
929
|
+
return (e, r) => {
|
|
930
|
+
var i, a, p, f, y, d, h, k, n, u, g, s;
|
|
931
931
|
return openBlock(), createElementBlock("div", null, [
|
|
932
|
-
createElementVNode("p", _hoisted_1$2, toDisplayString((
|
|
932
|
+
createElementVNode("p", _hoisted_1$2, toDisplayString((a = (i = e.modalData) == null ? void 0 : i.modalObject) == null ? void 0 : a.title), 1),
|
|
933
933
|
createVNode(_sfc_main$4, {
|
|
934
|
-
editor: (
|
|
934
|
+
editor: (f = (p = e.modalData) == null ? void 0 : p.modalObject) == null ? void 0 : f.description
|
|
935
935
|
}, null, 8, ["editor"]),
|
|
936
|
-
(k = (
|
|
936
|
+
(k = (h = (d = (y = e.modalData) == null ? void 0 : y.modalObject) == null ? void 0 : d.modalImage) == null ? void 0 : h[0]) != null && k.url ? (openBlock(), createElementBlock("img", {
|
|
937
937
|
key: 0,
|
|
938
|
-
src: (
|
|
938
|
+
src: (s = (g = (u = (n = e.modalData) == null ? void 0 : n.modalObject) == null ? void 0 : u.modalImage) == null ? void 0 : g[0]) == null ? void 0 : s.url,
|
|
939
939
|
alt: "",
|
|
940
940
|
class: "ire-mt-5 ire-h-[400px] ire-w-full ire-object-contain"
|
|
941
941
|
}, null, 8, _hoisted_2$1)) : createCommentVNode("", !0)
|
|
@@ -951,98 +951,98 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
951
951
|
actions: {}
|
|
952
952
|
},
|
|
953
953
|
emits: ["changeComponent"],
|
|
954
|
-
setup(
|
|
955
|
-
const
|
|
956
|
-
var
|
|
957
|
-
if ((
|
|
958
|
-
return (
|
|
959
|
-
}),
|
|
960
|
-
const
|
|
961
|
-
|
|
962
|
-
}, k = (
|
|
963
|
-
var
|
|
964
|
-
const
|
|
965
|
-
(
|
|
954
|
+
setup(o, { emit: e }) {
|
|
955
|
+
const r = e, i = o, a = ref(), p = ref(), f = ref(), y = ref(), d = computed$1(() => {
|
|
956
|
+
var n, u;
|
|
957
|
+
if ((n = i.block) != null && n.svg)
|
|
958
|
+
return (u = i.block) == null ? void 0 : u.svg;
|
|
959
|
+
}), h = (n) => {
|
|
960
|
+
const u = n.target;
|
|
961
|
+
u && (p.value = u);
|
|
962
|
+
}, k = (n) => {
|
|
963
|
+
var g, s, _;
|
|
964
|
+
const u = n.target;
|
|
965
|
+
(u == null ? void 0 : u.nodeName) === "path" && (((g = y.value) == null ? void 0 : g.conf) === "sold" || ((s = y.value) == null ? void 0 : s.conf) === "reserved" || r(
|
|
966
966
|
"changeComponent",
|
|
967
|
-
((
|
|
967
|
+
((_ = f.value) == null ? void 0 : _.type) || "",
|
|
968
968
|
y.value
|
|
969
969
|
));
|
|
970
970
|
};
|
|
971
971
|
return watch(
|
|
972
|
-
() =>
|
|
973
|
-
(
|
|
974
|
-
var
|
|
975
|
-
if (!
|
|
976
|
-
const
|
|
977
|
-
if (
|
|
978
|
-
const
|
|
979
|
-
if (!
|
|
980
|
-
if (((
|
|
981
|
-
const
|
|
982
|
-
(
|
|
983
|
-
var
|
|
984
|
-
return (
|
|
972
|
+
() => p.value,
|
|
973
|
+
(n) => {
|
|
974
|
+
var g, s, _, t, l, c, v, b;
|
|
975
|
+
if (!n) return;
|
|
976
|
+
const u = n == null ? void 0 : n.parentElement;
|
|
977
|
+
if (u && (u == null ? void 0 : u.nodeName) === "g") {
|
|
978
|
+
const m = u == null ? void 0 : u.getAttribute("id");
|
|
979
|
+
if (!m || (f.value = ((s = (g = i.block) == null ? void 0 : g.polygon_data) == null ? void 0 : s.find((E) => (E == null ? void 0 : E.key) === m)) || null, !f.value)) return;
|
|
980
|
+
if (((_ = f.value) == null ? void 0 : _.type) === "floor") {
|
|
981
|
+
const E = (t = i.floors) == null ? void 0 : t.find(
|
|
982
|
+
(w) => {
|
|
983
|
+
var $;
|
|
984
|
+
return (w == null ? void 0 : w.id) === (($ = f.value) == null ? void 0 : $.id);
|
|
985
985
|
}
|
|
986
986
|
);
|
|
987
|
-
y.value =
|
|
988
|
-
} else if (((
|
|
989
|
-
const
|
|
990
|
-
(
|
|
991
|
-
var
|
|
992
|
-
return (
|
|
987
|
+
y.value = E;
|
|
988
|
+
} else if (((l = f.value) == null ? void 0 : l.type) === "flat") {
|
|
989
|
+
const E = (c = i.flats) == null ? void 0 : c.find(
|
|
990
|
+
(w) => {
|
|
991
|
+
var $;
|
|
992
|
+
return (w == null ? void 0 : w.id) === (($ = f.value) == null ? void 0 : $.id);
|
|
993
993
|
}
|
|
994
994
|
);
|
|
995
|
-
y.value =
|
|
996
|
-
} else if (((
|
|
997
|
-
const
|
|
998
|
-
(
|
|
999
|
-
var
|
|
1000
|
-
return (
|
|
995
|
+
y.value = E;
|
|
996
|
+
} else if (((v = f.value) == null ? void 0 : v.type) === "tooltip") {
|
|
997
|
+
const E = (b = i.actions) == null ? void 0 : b.find(
|
|
998
|
+
(w) => {
|
|
999
|
+
var $;
|
|
1000
|
+
return (w == null ? void 0 : w.id) === (($ = f.value) == null ? void 0 : $.id);
|
|
1001
1001
|
}
|
|
1002
1002
|
);
|
|
1003
|
-
y.value =
|
|
1003
|
+
y.value = E;
|
|
1004
1004
|
} else
|
|
1005
1005
|
y.value = null;
|
|
1006
1006
|
} else
|
|
1007
|
-
|
|
1007
|
+
f.value = null, y.value = null;
|
|
1008
1008
|
}
|
|
1009
|
-
), (
|
|
1010
|
-
var
|
|
1009
|
+
), (n, u) => {
|
|
1010
|
+
var g;
|
|
1011
1011
|
return openBlock(), createBlock(_sfc_main$f, {
|
|
1012
1012
|
hoverdData: y.value,
|
|
1013
|
-
type: (
|
|
1013
|
+
type: (g = f.value) == null ? void 0 : g.type
|
|
1014
1014
|
}, {
|
|
1015
1015
|
header: withCtx(() => {
|
|
1016
|
-
var
|
|
1016
|
+
var s;
|
|
1017
1017
|
return [
|
|
1018
1018
|
createVNode(_sfc_main$b, {
|
|
1019
|
-
onClick:
|
|
1019
|
+
onClick: u[0] || (u[0] = (_) => n.$emit("changeComponent", "project", null))
|
|
1020
1020
|
}),
|
|
1021
|
-
createElementVNode("p", _hoisted_1$1, toDisplayString((
|
|
1021
|
+
createElementVNode("p", _hoisted_1$1, toDisplayString((s = n.block) == null ? void 0 : s.title), 1)
|
|
1022
1022
|
];
|
|
1023
1023
|
}),
|
|
1024
1024
|
default: withCtx(() => {
|
|
1025
|
-
var
|
|
1025
|
+
var s, _, t, l, c, v;
|
|
1026
1026
|
return [
|
|
1027
1027
|
createElementVNode("div", _hoisted_2, [
|
|
1028
1028
|
createElementVNode("img", {
|
|
1029
|
-
src: ((
|
|
1029
|
+
src: ((t = (_ = (s = n.block) == null ? void 0 : s.block_image) == null ? void 0 : _[0]) == null ? void 0 : t.url) || "",
|
|
1030
1030
|
alt: "",
|
|
1031
1031
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1032
1032
|
}, null, 8, _hoisted_3),
|
|
1033
1033
|
(openBlock(), createElementBlock("div", {
|
|
1034
1034
|
ref_key: "svgRef",
|
|
1035
|
-
ref:
|
|
1036
|
-
innerHTML:
|
|
1037
|
-
key:
|
|
1035
|
+
ref: a,
|
|
1036
|
+
innerHTML: d.value,
|
|
1037
|
+
key: d.value,
|
|
1038
1038
|
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", [
|
|
1039
1039
|
{
|
|
1040
|
-
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((
|
|
1041
|
-
"hover:[&_path]:ire-fill-[var(--sold-color)]": ((
|
|
1042
|
-
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((
|
|
1040
|
+
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((l = y.value) == null ? void 0 : l.conf) === "reserved",
|
|
1041
|
+
"hover:[&_path]:ire-fill-[var(--sold-color)]": ((c = y.value) == null ? void 0 : c.conf) === "sold",
|
|
1042
|
+
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((v = y.value) != null && v.conf)
|
|
1043
1043
|
}
|
|
1044
1044
|
]]),
|
|
1045
|
-
onMouseover:
|
|
1045
|
+
onMouseover: h,
|
|
1046
1046
|
onClick: k
|
|
1047
1047
|
}, null, 42, _hoisted_4))
|
|
1048
1048
|
])
|
|
@@ -1058,30 +1058,33 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1058
1058
|
shortcodeDataProps: {}
|
|
1059
1059
|
},
|
|
1060
1060
|
setup(__props) {
|
|
1061
|
-
var
|
|
1061
|
+
var o, e, r, i, a, p, f, y, d, h, k, n, u, g;
|
|
1062
1062
|
const props = __props, getMeta = (s) => props.shortcodeDataProps.meta.find(
|
|
1063
|
-
(
|
|
1063
|
+
(_) => _.meta_key === s
|
|
1064
1064
|
), constants = ref({
|
|
1065
|
-
PREVIEW_PATH_COLOR: ((
|
|
1065
|
+
PREVIEW_PATH_COLOR: ((o = getMeta("path_color")) == null ? void 0 : o.meta_value) || "rgba(255, 255, 255, 0.3)",
|
|
1066
1066
|
PREVIEW_PATH_HOVER_COLOR: ((e = getMeta("path_hover_color")) == null ? void 0 : e.meta_value) || "rgba(250, 250, 250, 0.54)",
|
|
1067
|
-
PREVIEW_RESERVED_COLOR: ((
|
|
1068
|
-
PREVIEW_SOLD_COLOR: ((
|
|
1069
|
-
PREVIEW_STROKE_COLOR: ((
|
|
1070
|
-
PREVIEW_STROKE_WIDTH: +((
|
|
1067
|
+
PREVIEW_RESERVED_COLOR: ((r = getMeta("reserved_color")) == null ? void 0 : r.meta_value) || "rgba(255, 247, 89, 0.53)",
|
|
1068
|
+
PREVIEW_SOLD_COLOR: ((i = getMeta("sold_color")) == null ? void 0 : i.meta_value) || "rgba(219, 64, 64, 0.45)",
|
|
1069
|
+
PREVIEW_STROKE_COLOR: ((a = getMeta("stroke_color")) == null ? void 0 : a.meta_value) || "rgba(0, 0, 0, 1)",
|
|
1070
|
+
PREVIEW_STROKE_WIDTH: +((p = getMeta("stroke_width")) == null ? void 0 : p.meta_value) || 1,
|
|
1071
|
+
PREVIEW_BORDER_RADIUS: +((f = getMeta("border_radius")) == null ? void 0 : f.meta_value) || 0
|
|
1071
1072
|
}), colors = reactive({
|
|
1072
|
-
path: (
|
|
1073
|
-
path_hover: (
|
|
1074
|
-
reserved: (
|
|
1075
|
-
sold: (
|
|
1076
|
-
stroke_color: (
|
|
1077
|
-
stroke_width: (
|
|
1073
|
+
path: (y = constants.value) == null ? void 0 : y.PREVIEW_PATH_COLOR,
|
|
1074
|
+
path_hover: (d = constants.value) == null ? void 0 : d.PREVIEW_PATH_HOVER_COLOR,
|
|
1075
|
+
reserved: (h = constants.value) == null ? void 0 : h.PREVIEW_RESERVED_COLOR,
|
|
1076
|
+
sold: (k = constants.value) == null ? void 0 : k.PREVIEW_SOLD_COLOR,
|
|
1077
|
+
stroke_color: (n = constants.value) == null ? void 0 : n.PREVIEW_STROKE_COLOR,
|
|
1078
|
+
stroke_width: (u = constants.value) == null ? void 0 : u.PREVIEW_STROKE_WIDTH,
|
|
1079
|
+
border_radius: (g = constants.value) == null ? void 0 : g.PREVIEW_BORDER_RADIUS
|
|
1078
1080
|
}), cssVariables = computed$1(() => ({
|
|
1079
1081
|
"--reserved-color": colors.reserved,
|
|
1080
1082
|
"--sold-color": colors.sold,
|
|
1081
1083
|
"--path-hover-color": colors.path_hover,
|
|
1082
1084
|
"--path-color": colors.path,
|
|
1083
1085
|
"--stroke-color": colors.stroke_color,
|
|
1084
|
-
"--stroke-width": colors.stroke_width + "px"
|
|
1086
|
+
"--stroke-width": colors.stroke_width + "px",
|
|
1087
|
+
"--border-radius": colors.border_radius + "px"
|
|
1085
1088
|
})), shortcodeData = ref(props.shortcodeDataProps), flow = ref(
|
|
1086
1089
|
"projectFlow"
|
|
1087
1090
|
), hoveredData = ref(), showModal = ref(!1), activeBlock = ref(), activeFloor = ref(), project = computed$1(() => {
|
|
@@ -1089,26 +1092,26 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1089
1092
|
if (shortcodeData.value)
|
|
1090
1093
|
return (s = shortcodeData.value) == null ? void 0 : s.project;
|
|
1091
1094
|
}), floors = computed$1(() => {
|
|
1092
|
-
var s,
|
|
1095
|
+
var s, _;
|
|
1093
1096
|
if (shortcodeData.value)
|
|
1094
|
-
return (s = shortcodeData.value.floors) == null || s.forEach((
|
|
1095
|
-
var
|
|
1096
|
-
const
|
|
1097
|
-
var
|
|
1098
|
-
return (
|
|
1099
|
-
(
|
|
1100
|
-
var
|
|
1101
|
-
return
|
|
1097
|
+
return (s = shortcodeData.value.floors) == null || s.forEach((t) => {
|
|
1098
|
+
var v, b;
|
|
1099
|
+
const l = (b = (v = shortcodeData.value) == null ? void 0 : v.flats) == null ? void 0 : b.filter((m) => {
|
|
1100
|
+
var E;
|
|
1101
|
+
return (m == null ? void 0 : m.floor_number) !== ((E = t == null ? void 0 : t.floor_number) == null ? void 0 : E.toString()) ? !1 : t != null && t.polygon_data ? Object == null ? void 0 : Object.values(t == null ? void 0 : t.polygon_data).some(
|
|
1102
|
+
($) => {
|
|
1103
|
+
var x;
|
|
1104
|
+
return $ != null && $.type && ($ == null ? void 0 : $.type) === "flat" && ($ == null ? void 0 : $.id) === (m == null ? void 0 : m.id) ? t != null && t.block_id ? (m == null ? void 0 : m.block_id) === ((x = t == null ? void 0 : t.block_id) == null ? void 0 : x.toString()) : !(m != null && m.block_id) : !1;
|
|
1102
1105
|
}
|
|
1103
1106
|
) : !1;
|
|
1104
1107
|
});
|
|
1105
|
-
|
|
1106
|
-
const { conf:
|
|
1107
|
-
if (
|
|
1108
|
-
const
|
|
1109
|
-
|
|
1108
|
+
t.flats = l;
|
|
1109
|
+
const { conf: c } = t || {};
|
|
1110
|
+
if (l != null && l.length && !c) {
|
|
1111
|
+
const m = l == null ? void 0 : l.every((w) => (w == null ? void 0 : w.conf) === "reserved"), E = l == null ? void 0 : l.every((w) => (w == null ? void 0 : w.conf) === "sold");
|
|
1112
|
+
m ? t.conf = "reserved" : E && (t.conf = "sold");
|
|
1110
1113
|
}
|
|
1111
|
-
}), (
|
|
1114
|
+
}), (_ = shortcodeData.value) == null ? void 0 : _.floors;
|
|
1112
1115
|
}), blocks = computed$1(() => {
|
|
1113
1116
|
if (shortcodeData.value)
|
|
1114
1117
|
return shortcodeData.value.blocks;
|
|
@@ -1116,15 +1119,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1116
1119
|
if (shortcodeData.value)
|
|
1117
1120
|
return shortcodeData.value.types;
|
|
1118
1121
|
}), flats = computed$1(() => {
|
|
1119
|
-
var s,
|
|
1122
|
+
var s, _;
|
|
1120
1123
|
if (shortcodeData.value)
|
|
1121
|
-
return (
|
|
1122
|
-
var
|
|
1123
|
-
if (
|
|
1124
|
-
const
|
|
1125
|
-
|
|
1124
|
+
return (_ = (s = shortcodeData.value) == null ? void 0 : s.flats) == null ? void 0 : _.map((t) => {
|
|
1125
|
+
var l;
|
|
1126
|
+
if (t != null && t.use_type || !(t != null && t.type)) {
|
|
1127
|
+
const c = (l = types.value) == null ? void 0 : l.find((v) => (v == null ? void 0 : v.id) === (t == null ? void 0 : t.type_id));
|
|
1128
|
+
c && (t.type = c);
|
|
1126
1129
|
}
|
|
1127
|
-
return
|
|
1130
|
+
return t;
|
|
1128
1131
|
});
|
|
1129
1132
|
}), actions = computed$1(() => {
|
|
1130
1133
|
var s;
|
|
@@ -1135,8 +1138,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1135
1138
|
if (shortcodeData.value)
|
|
1136
1139
|
return (s = shortcodeData.value) == null ? void 0 : s.meta;
|
|
1137
1140
|
}), getColorMeta = (s) => {
|
|
1138
|
-
var
|
|
1139
|
-
return (
|
|
1141
|
+
var _, t;
|
|
1142
|
+
return (t = (_ = projectMeta.value) == null ? void 0 : _.find((l) => (l == null ? void 0 : l.meta_key) === s)) == null ? void 0 : t.meta_value;
|
|
1140
1143
|
}, changeRoute = (flowType, polygonItem) => {
|
|
1141
1144
|
switch (flowType) {
|
|
1142
1145
|
case "project":
|
|
@@ -1172,10 +1175,10 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1172
1175
|
return watch(
|
|
1173
1176
|
() => projectMeta.value,
|
|
1174
1177
|
() => {
|
|
1175
|
-
const s = getColorMeta("path_color"),
|
|
1176
|
-
s && (colors.path = s.toString()),
|
|
1178
|
+
const s = getColorMeta("path_color"), _ = getColorMeta("path_hover_color"), t = getColorMeta("reserved_color"), l = getColorMeta("sold_color"), c = getColorMeta("stroke_color"), v = getColorMeta("stroke_width");
|
|
1179
|
+
s && (colors.path = s.toString()), _ && (colors.path_hover = _.toString()), t && (colors.reserved = t.toString()), l && (colors.sold = l.toString()), c && (colors.stroke_color = c.toString()), v && (colors.stroke_width = Number(v));
|
|
1177
1180
|
}
|
|
1178
|
-
), (s,
|
|
1181
|
+
), (s, _) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
1179
1182
|
createVNode(Transition, {
|
|
1180
1183
|
name: "ire-fade-in-out",
|
|
1181
1184
|
mode: "out-in",
|
|
@@ -1191,14 +1194,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1191
1194
|
projectMeta: projectMeta.value,
|
|
1192
1195
|
blocks: blocks.value,
|
|
1193
1196
|
actions: actions.value,
|
|
1194
|
-
onChangeComponent:
|
|
1197
|
+
onChangeComponent: _[0] || (_[0] = (t, l) => changeRoute(t, l))
|
|
1195
1198
|
}, null, 8, ["project", "floors", "flats", "projectMeta", "blocks", "actions"])) : flow.value === "blockFlow" && flats.value && floors.value && blocks.value && activeBlock.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
1196
1199
|
key: 1,
|
|
1197
1200
|
block: activeBlock.value,
|
|
1198
1201
|
flats: flats.value,
|
|
1199
1202
|
floors: floors.value,
|
|
1200
1203
|
actions: actions.value,
|
|
1201
|
-
onChangeComponent:
|
|
1204
|
+
onChangeComponent: _[1] || (_[1] = (t, l) => changeRoute(t, l))
|
|
1202
1205
|
}, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$a, {
|
|
1203
1206
|
key: 2,
|
|
1204
1207
|
flats: flats.value,
|
|
@@ -1206,12 +1209,12 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1206
1209
|
floors: floors.value,
|
|
1207
1210
|
blocks: blocks.value,
|
|
1208
1211
|
actions: actions.value,
|
|
1209
|
-
onChangeComponent:
|
|
1212
|
+
onChangeComponent: _[2] || (_[2] = (t, l) => changeRoute(t, l))
|
|
1210
1213
|
}, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : flow.value === "flatFlow" ? (openBlock(), createBlock(_sfc_main$7, {
|
|
1211
1214
|
key: 3,
|
|
1212
1215
|
flat: hoveredData.value,
|
|
1213
1216
|
floors: floors.value,
|
|
1214
|
-
onChangeComponent:
|
|
1217
|
+
onChangeComponent: _[3] || (_[3] = (t, l) => changeRoute(t, l))
|
|
1215
1218
|
}, null, 8, ["flat", "floors"])) : createCommentVNode("", !0)
|
|
1216
1219
|
])) : createCommentVNode("", !0)
|
|
1217
1220
|
]),
|
|
@@ -1225,7 +1228,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1225
1228
|
default: withCtx(() => [
|
|
1226
1229
|
showModal.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
1227
1230
|
key: 0,
|
|
1228
|
-
onClose:
|
|
1231
|
+
onClose: _[4] || (_[4] = (t) => showModal.value = !1)
|
|
1229
1232
|
}, {
|
|
1230
1233
|
default: withCtx(() => [
|
|
1231
1234
|
createVNode(_sfc_main$3, { modalData: hoveredData.value }, null, 8, ["modalData"])
|
|
@@ -1243,8 +1246,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
|
|
|
1243
1246
|
props: {
|
|
1244
1247
|
data: {}
|
|
1245
1248
|
},
|
|
1246
|
-
setup(
|
|
1247
|
-
return (e,
|
|
1249
|
+
setup(o) {
|
|
1250
|
+
return (e, r) => (openBlock(), createElementBlock("div", null, [
|
|
1248
1251
|
createVNode(_sfc_main$1, { "shortcode-data-props": e.data }, null, 8, ["shortcode-data-props"])
|
|
1249
1252
|
]));
|
|
1250
1253
|
}
|