ire-preview 2.3.6 → 2.3.8
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
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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,
|
|
2
|
-
const _export_sfc = (
|
|
3
|
-
const r =
|
|
4
|
-
for (const [
|
|
5
|
-
r[
|
|
1
|
+
import { openBlock, createElementBlock, createElementVNode, inject, defineComponent, computed as computed$1, createVNode, Transition, withCtx, toDisplayString, unref, createCommentVNode, Fragment, createTextVNode, createBlock, normalizeClass, normalizeStyle, ref, watch, renderSlot, effectScope, markRaw, hasInjectionContext, reactive, isRef, isReactive, toRaw, getCurrentScope, onScopeDispose, nextTick, toRefs, onMounted, onUnmounted, mergeModels, useModel, withDirectives, renderList, vModelSelect, createStaticVNode, provide, Teleport, createApp } from "vue";
|
|
2
|
+
const _export_sfc = (e, o) => {
|
|
3
|
+
const r = e.__vccOpts || e;
|
|
4
|
+
for (const [t, l] of o)
|
|
5
|
+
r[t] = l;
|
|
6
6
|
return r;
|
|
7
7
|
}, _sfc_main$k = {};
|
|
8
|
-
function _sfc_render$4(
|
|
8
|
+
function _sfc_render$4(e, o) {
|
|
9
9
|
return openBlock(), createElementBlock("div", null, o[0] || (o[0] = [
|
|
10
10
|
createElementVNode("h1", { class: "underline" }, "undeliner", -1)
|
|
11
11
|
]));
|
|
@@ -16,19 +16,19 @@ const App = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$4]]
|
|
|
16
16
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
17
17
|
* @license MIT
|
|
18
18
|
**/
|
|
19
|
-
const extend = Object.assign, isFunction = (
|
|
19
|
+
const extend = Object.assign, isFunction = (e) => typeof e == "function", isSymbol = (e) => typeof e == "symbol", hasChanged = (e, o) => !Object.is(e, o);
|
|
20
20
|
/**
|
|
21
21
|
* @vue/reactivity v3.5.12
|
|
22
22
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
23
23
|
* @license MIT
|
|
24
24
|
**/
|
|
25
25
|
let activeSub, batchDepth = 0, batchedSub, batchedComputed;
|
|
26
|
-
function batch(
|
|
27
|
-
if (
|
|
28
|
-
|
|
26
|
+
function batch(e, o = !1) {
|
|
27
|
+
if (e.flags |= 8, o) {
|
|
28
|
+
e.next = batchedComputed, batchedComputed = e;
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
e.next = batchedSub, batchedSub = e;
|
|
32
32
|
}
|
|
33
33
|
function startBatch() {
|
|
34
34
|
batchDepth++;
|
|
@@ -43,7 +43,7 @@ function endBatch() {
|
|
|
43
43
|
o.next = void 0, o.flags &= -9, o = r;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
let
|
|
46
|
+
let e;
|
|
47
47
|
for (; batchedSub; ) {
|
|
48
48
|
let o = batchedSub;
|
|
49
49
|
for (batchedSub = void 0; o; ) {
|
|
@@ -51,65 +51,65 @@ function endBatch() {
|
|
|
51
51
|
if (o.next = void 0, o.flags &= -9, o.flags & 1)
|
|
52
52
|
try {
|
|
53
53
|
o.trigger();
|
|
54
|
-
} catch (
|
|
55
|
-
|
|
54
|
+
} catch (t) {
|
|
55
|
+
e || (e = t);
|
|
56
56
|
}
|
|
57
57
|
o = r;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
if (
|
|
60
|
+
if (e) throw e;
|
|
61
61
|
}
|
|
62
|
-
function prepareDeps(
|
|
63
|
-
for (let o =
|
|
62
|
+
function prepareDeps(e) {
|
|
63
|
+
for (let o = e.deps; o; o = o.nextDep)
|
|
64
64
|
o.version = -1, o.prevActiveLink = o.dep.activeLink, o.dep.activeLink = o;
|
|
65
65
|
}
|
|
66
|
-
function cleanupDeps(
|
|
67
|
-
let o, r =
|
|
68
|
-
for (;
|
|
69
|
-
const
|
|
70
|
-
|
|
66
|
+
function cleanupDeps(e) {
|
|
67
|
+
let o, r = e.depsTail, t = r;
|
|
68
|
+
for (; t; ) {
|
|
69
|
+
const l = t.prevDep;
|
|
70
|
+
t.version === -1 ? (t === r && (r = l), removeSub(t), removeDep(t)) : o = t, t.dep.activeLink = t.prevActiveLink, t.prevActiveLink = void 0, t = l;
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
e.deps = o, e.depsTail = r;
|
|
73
73
|
}
|
|
74
|
-
function isDirty(
|
|
75
|
-
for (let o =
|
|
74
|
+
function isDirty(e) {
|
|
75
|
+
for (let o = e.deps; o; o = o.nextDep)
|
|
76
76
|
if (o.dep.version !== o.version || o.dep.computed && (refreshComputed(o.dep.computed) || o.dep.version !== o.version))
|
|
77
77
|
return !0;
|
|
78
|
-
return !!
|
|
78
|
+
return !!e._dirty;
|
|
79
79
|
}
|
|
80
|
-
function refreshComputed(
|
|
81
|
-
if (
|
|
80
|
+
function refreshComputed(e) {
|
|
81
|
+
if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === globalVersion))
|
|
82
82
|
return;
|
|
83
|
-
|
|
84
|
-
const o =
|
|
85
|
-
if (
|
|
86
|
-
|
|
83
|
+
e.globalVersion = globalVersion;
|
|
84
|
+
const o = e.dep;
|
|
85
|
+
if (e.flags |= 2, o.version > 0 && !e.isSSR && e.deps && !isDirty(e)) {
|
|
86
|
+
e.flags &= -3;
|
|
87
87
|
return;
|
|
88
88
|
}
|
|
89
|
-
const r = activeSub,
|
|
90
|
-
activeSub =
|
|
89
|
+
const r = activeSub, t = shouldTrack;
|
|
90
|
+
activeSub = e, shouldTrack = !0;
|
|
91
91
|
try {
|
|
92
|
-
prepareDeps(
|
|
93
|
-
const
|
|
94
|
-
(o.version === 0 || hasChanged(
|
|
95
|
-
} catch (
|
|
96
|
-
throw o.version++,
|
|
92
|
+
prepareDeps(e);
|
|
93
|
+
const l = e.fn(e._value);
|
|
94
|
+
(o.version === 0 || hasChanged(l, e._value)) && (e._value = l, o.version++);
|
|
95
|
+
} catch (l) {
|
|
96
|
+
throw o.version++, l;
|
|
97
97
|
} finally {
|
|
98
|
-
activeSub = r, shouldTrack =
|
|
98
|
+
activeSub = r, shouldTrack = t, cleanupDeps(e), e.flags &= -3;
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
function removeSub(
|
|
102
|
-
const { dep: r, prevSub:
|
|
103
|
-
if (
|
|
101
|
+
function removeSub(e, o = !1) {
|
|
102
|
+
const { dep: r, prevSub: t, nextSub: l } = e;
|
|
103
|
+
if (t && (t.nextSub = l, e.prevSub = void 0), l && (l.prevSub = t, e.nextSub = void 0), r.subs === e && (r.subs = t, !t && r.computed)) {
|
|
104
104
|
r.computed.flags &= -5;
|
|
105
|
-
for (let
|
|
106
|
-
removeSub(
|
|
105
|
+
for (let i = r.computed.deps; i; i = i.nextDep)
|
|
106
|
+
removeSub(i, !0);
|
|
107
107
|
}
|
|
108
108
|
!o && !--r.sc && r.map && r.map.delete(r.key);
|
|
109
109
|
}
|
|
110
|
-
function removeDep(
|
|
111
|
-
const { prevDep: o, nextDep: r } =
|
|
112
|
-
o && (o.nextDep = r,
|
|
110
|
+
function removeDep(e) {
|
|
111
|
+
const { prevDep: o, nextDep: r } = e;
|
|
112
|
+
o && (o.nextDep = r, e.prevDep = void 0), r && (r.prevDep = o, e.nextDep = void 0);
|
|
113
113
|
}
|
|
114
114
|
let shouldTrack = !0, globalVersion = 0;
|
|
115
115
|
class Link {
|
|
@@ -128,8 +128,8 @@ class Dep {
|
|
|
128
128
|
if (r === void 0 || r.sub !== activeSub)
|
|
129
129
|
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);
|
|
130
130
|
else if (r.version === -1 && (r.version = this.version, r.nextDep)) {
|
|
131
|
-
const
|
|
132
|
-
|
|
131
|
+
const t = r.nextDep;
|
|
132
|
+
t.prevDep = r.prevDep, r.prevDep && (r.prevDep.nextDep = t), r.prevDep = activeSub.depsTail, r.nextDep = void 0, activeSub.depsTail.nextDep = r, activeSub.depsTail = r, activeSub.deps === r && (activeSub.deps = t);
|
|
133
133
|
}
|
|
134
134
|
return r;
|
|
135
135
|
}
|
|
@@ -146,24 +146,24 @@ class Dep {
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
function addSub(
|
|
150
|
-
if (
|
|
151
|
-
const o =
|
|
152
|
-
if (o && !
|
|
149
|
+
function addSub(e) {
|
|
150
|
+
if (e.dep.sc++, e.sub.flags & 4) {
|
|
151
|
+
const o = e.dep.computed;
|
|
152
|
+
if (o && !e.dep.subs) {
|
|
153
153
|
o.flags |= 20;
|
|
154
|
-
for (let
|
|
155
|
-
addSub(
|
|
154
|
+
for (let t = o.deps; t; t = t.nextDep)
|
|
155
|
+
addSub(t);
|
|
156
156
|
}
|
|
157
|
-
const r =
|
|
158
|
-
r !==
|
|
157
|
+
const r = e.dep.subs;
|
|
158
|
+
r !== e && (e.prevSub = r, r && (r.nextSub = e)), e.dep.subs = e;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
new Set(
|
|
162
|
-
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((
|
|
162
|
+
/* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(isSymbol)
|
|
163
163
|
);
|
|
164
164
|
class ComputedRefImpl {
|
|
165
|
-
constructor(o, r,
|
|
166
|
-
this.fn = o, 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 =
|
|
165
|
+
constructor(o, r, t) {
|
|
166
|
+
this.fn = o, 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 = t;
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
169
|
* @internal
|
|
@@ -181,14 +181,85 @@ class ComputedRefImpl {
|
|
|
181
181
|
this.setter && this.setter(o);
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
function computed(
|
|
185
|
-
let
|
|
186
|
-
return isFunction(
|
|
184
|
+
function computed(e, o, r = !1) {
|
|
185
|
+
let t, l;
|
|
186
|
+
return isFunction(e) ? t = e : (t = e.get, l = e.set), new ComputedRefImpl(t, l, r);
|
|
187
187
|
}
|
|
188
|
-
const tr = (
|
|
188
|
+
const tr = (e) => {
|
|
189
189
|
const o = inject("translations");
|
|
190
|
-
return (o == null ? void 0 : o[
|
|
191
|
-
},
|
|
190
|
+
return (o == null ? void 0 : o[e]) || e;
|
|
191
|
+
}, currencySymbol = () => {
|
|
192
|
+
var t, l, i;
|
|
193
|
+
const e = [
|
|
194
|
+
{ title: "🇺🇸 USD", value: "usd", symbol: "$" },
|
|
195
|
+
// United States
|
|
196
|
+
{ title: "🇪🇺 EUR", value: "eur", symbol: "€" },
|
|
197
|
+
// European Union
|
|
198
|
+
{ title: "🇬🇧 GBP", value: "gbp", symbol: "£" },
|
|
199
|
+
// United Kingdom
|
|
200
|
+
{ title: "🇯🇵 JPY", value: "jpy", symbol: "¥" },
|
|
201
|
+
// Japan
|
|
202
|
+
{ title: "🇦🇺 AUD", value: "aud", symbol: "A$" },
|
|
203
|
+
// Australia
|
|
204
|
+
{ title: "🇨🇦 CAD", value: "cad", symbol: "C$" },
|
|
205
|
+
// Canada
|
|
206
|
+
{ title: "🇨🇭 CHF", value: "chf", symbol: "CHF" },
|
|
207
|
+
// Switzerland
|
|
208
|
+
{ title: "🇨🇳 CNY", value: "cny", symbol: "¥" },
|
|
209
|
+
// China
|
|
210
|
+
{ title: "🇮🇳 INR", value: "inr", symbol: "₹" },
|
|
211
|
+
// India
|
|
212
|
+
{ title: "🇸🇬 SGD", value: "sgd", symbol: "S$" },
|
|
213
|
+
// Singapore
|
|
214
|
+
{ title: "🇳🇿 NZD", value: "nzd", symbol: "NZ$" },
|
|
215
|
+
// New Zealand
|
|
216
|
+
{ title: "🇰🇷 KRW", value: "krw", symbol: "₩" },
|
|
217
|
+
// South Korea
|
|
218
|
+
{ title: "🇧🇷 BRL", value: "brl", symbol: "R$" },
|
|
219
|
+
// Brazil
|
|
220
|
+
{ title: "🇷🇺 RUB", value: "rub", symbol: "₽" },
|
|
221
|
+
// Russia
|
|
222
|
+
{ title: "🇿🇦 ZAR", value: "zar", symbol: "R" },
|
|
223
|
+
// South Africa
|
|
224
|
+
{ title: "🇲🇽 MXN", value: "mxn", symbol: "Mex$" },
|
|
225
|
+
// Mexico
|
|
226
|
+
{ title: "🇭🇰 HKD", value: "hkd", symbol: "HK$" },
|
|
227
|
+
// Hong Kong
|
|
228
|
+
{ title: "🇹🇷 TRY", value: "try", symbol: "₺" },
|
|
229
|
+
// Turkey
|
|
230
|
+
{ title: "🇸🇪 SEK", value: "sek", symbol: "kr" },
|
|
231
|
+
// Sweden
|
|
232
|
+
{ title: "🇳🇴 NOK", value: "nok", symbol: "kr" },
|
|
233
|
+
// Norway
|
|
234
|
+
{ title: "🇩🇰 DKK", value: "dkk", symbol: "kr" },
|
|
235
|
+
// Denmark
|
|
236
|
+
{ title: "🇵🇱 PLN", value: "pln", symbol: "zł" },
|
|
237
|
+
// Poland
|
|
238
|
+
{ title: "🇹🇭 THB", value: "thb", symbol: "฿" },
|
|
239
|
+
// Thailand
|
|
240
|
+
{ title: "🇮🇩 IDR", value: "idr", symbol: "Rp" },
|
|
241
|
+
// Indonesia
|
|
242
|
+
{ title: "🇲🇾 MYR", value: "myr", symbol: "RM" },
|
|
243
|
+
// Malaysia
|
|
244
|
+
{ title: "🇵🇭 PHP", value: "php", symbol: "₱" },
|
|
245
|
+
// Philippines
|
|
246
|
+
{ title: "🇦🇪 AED", value: "aed", symbol: "د.إ" },
|
|
247
|
+
// United Arab Emirates
|
|
248
|
+
{ title: "🇸🇦 SAR", value: "sar", symbol: "﷼" },
|
|
249
|
+
// Saudi Arabia
|
|
250
|
+
{ title: "🇶🇦 QAR", value: "qar", symbol: "﷼" },
|
|
251
|
+
// Qatar
|
|
252
|
+
{ title: "🇰🇼 KWD", value: "kwd", symbol: "د.ك" },
|
|
253
|
+
// Kuwait
|
|
254
|
+
{ title: "🇧🇭 BHD", value: "bhd", symbol: ".د.ب" },
|
|
255
|
+
// Bahrain
|
|
256
|
+
{ title: "🇴🇲 OMR", value: "omr", symbol: "﷼" },
|
|
257
|
+
// Oman
|
|
258
|
+
{ title: "🇬🇪 GEL", value: "gel", symbol: "₾" }
|
|
259
|
+
// Georgia
|
|
260
|
+
], o = inject("shortcodeData"), r = ((l = (t = o == null ? void 0 : o.meta) == null ? void 0 : t.find((s) => s.meta_key === "currency")) == null ? void 0 : l.meta_value) || "usd";
|
|
261
|
+
return ((i = e.find((s) => s.value === r)) == null ? void 0 : i.symbol) || "$";
|
|
262
|
+
}, getPrice = (e) => Number(e).toLocaleString("fr-FR"), _hoisted_1$g = {
|
|
192
263
|
key: 0,
|
|
193
264
|
class: "ire-pointer-events-none ire-absolute !ire-bottom-10 !ire-right-10 ire-w-fit ire-select-none ire-rounded-lg ire-border ire-bg-white ire-p-4"
|
|
194
265
|
}, _hoisted_2$a = {
|
|
@@ -209,7 +280,7 @@ const tr = (t) => {
|
|
|
209
280
|
}, _hoisted_13$2 = { class: "min-w-3 !ire-text-2xl" }, _hoisted_14$2 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_15$2 = {
|
|
210
281
|
key: 2,
|
|
211
282
|
class: "ire-flex ire-items-center ire-gap-2"
|
|
212
|
-
}, _hoisted_16$
|
|
283
|
+
}, _hoisted_16$2 = { class: "ire-min-w-3 !ire-text-2xl" }, _hoisted_17$2 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_18$2 = {
|
|
213
284
|
key: 1,
|
|
214
285
|
class: "ire-flex ire-items-center ire-gap-3"
|
|
215
286
|
}, _hoisted_19$1 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_20$1 = { class: "text-sm ire-text-gray-700" }, _hoisted_21$1 = { class: "!text-2xl" }, _hoisted_22$1 = {
|
|
@@ -230,62 +301,62 @@ const tr = (t) => {
|
|
|
230
301
|
hoveredData: {},
|
|
231
302
|
type: {}
|
|
232
303
|
},
|
|
233
|
-
setup(
|
|
234
|
-
const o =
|
|
235
|
-
var
|
|
236
|
-
return tr((
|
|
304
|
+
setup(e) {
|
|
305
|
+
const o = e, r = computed$1(() => {
|
|
306
|
+
var t;
|
|
307
|
+
return tr((t = o.hoveredData) == null ? void 0 : t.conf);
|
|
237
308
|
});
|
|
238
|
-
return (
|
|
309
|
+
return (t, l) => (openBlock(), createElementBlock("div", null, [
|
|
239
310
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
240
311
|
default: withCtx(() => {
|
|
241
|
-
var
|
|
312
|
+
var i, s, h, _, y, x, w, b, v, c, p, a, f, n, d, g, u, $, E, m, k, V, S, D;
|
|
242
313
|
return [
|
|
243
|
-
|
|
244
|
-
|
|
314
|
+
t.type && t.hoveredData && t.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
315
|
+
t.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
|
|
245
316
|
createElementVNode("div", _hoisted_3$9, [
|
|
246
|
-
createElementVNode("div", _hoisted_4$7, toDisplayString((
|
|
317
|
+
createElementVNode("div", _hoisted_4$7, toDisplayString((i = t.hoveredData) == null ? void 0 : i.floor_number), 1),
|
|
247
318
|
createElementVNode("div", _hoisted_5$3, toDisplayString(unref(tr)("floor")), 1)
|
|
248
319
|
]),
|
|
249
|
-
(
|
|
320
|
+
(s = t.hoveredData) != null && s.conf || (_ = (h = t.hoveredData) == null ? void 0 : h.flats) != null && _.length ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
|
|
250
321
|
r.value ? (openBlock(), createElementBlock("div", _hoisted_7$3, toDisplayString(r.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_8$3, [
|
|
251
|
-
(x = (
|
|
252
|
-
createElementVNode("div", _hoisted_10$3, toDisplayString(((
|
|
322
|
+
(x = (y = t.hoveredData) == null ? void 0 : y.counts) != null && x.available ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
|
|
323
|
+
createElementVNode("div", _hoisted_10$3, toDisplayString(((b = (w = t.hoveredData) == null ? void 0 : w.counts) == null ? void 0 : b.available) || 0), 1),
|
|
253
324
|
createElementVNode("div", _hoisted_11$3, toDisplayString(unref(tr)("available")), 1)
|
|
254
325
|
])) : createCommentVNode("", !0),
|
|
255
|
-
(c = (v =
|
|
256
|
-
createElementVNode("div", _hoisted_13$2, toDisplayString((a = (
|
|
326
|
+
(c = (v = t.hoveredData) == null ? void 0 : v.counts) != null && c.reserved ? (openBlock(), createElementBlock("div", _hoisted_12$3, [
|
|
327
|
+
createElementVNode("div", _hoisted_13$2, toDisplayString((a = (p = t.hoveredData) == null ? void 0 : p.counts) == null ? void 0 : a.reserved), 1),
|
|
257
328
|
createElementVNode("div", _hoisted_14$2, toDisplayString(unref(tr)("reserved")), 1)
|
|
258
329
|
])) : createCommentVNode("", !0),
|
|
259
|
-
(
|
|
260
|
-
createElementVNode("div", _hoisted_16$
|
|
261
|
-
createElementVNode("div", _hoisted_17$
|
|
330
|
+
(n = (f = t.hoveredData) == null ? void 0 : f.counts) != null && n.sold ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
|
|
331
|
+
createElementVNode("div", _hoisted_16$2, toDisplayString((g = (d = t.hoveredData) == null ? void 0 : d.counts) == null ? void 0 : g.sold), 1),
|
|
332
|
+
createElementVNode("div", _hoisted_17$2, toDisplayString(unref(tr)("sold")), 1)
|
|
262
333
|
])) : createCommentVNode("", !0)
|
|
263
334
|
]))
|
|
264
335
|
])) : createCommentVNode("", !0)
|
|
265
|
-
])) :
|
|
336
|
+
])) : t.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_18$2, [
|
|
266
337
|
createElementVNode("div", _hoisted_19$1, [
|
|
267
338
|
createElementVNode("span", _hoisted_20$1, toDisplayString(r.value), 1),
|
|
268
|
-
createElementVNode("div", _hoisted_21$1, toDisplayString((
|
|
339
|
+
createElementVNode("div", _hoisted_21$1, toDisplayString((u = t.hoveredData) == null ? void 0 : u.title), 1)
|
|
269
340
|
])
|
|
270
|
-
])) :
|
|
341
|
+
])) : t.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_22$1, [
|
|
271
342
|
createElementVNode("div", _hoisted_23$1, [
|
|
272
|
-
createElementVNode("div", _hoisted_24$1, toDisplayString(($ =
|
|
343
|
+
createElementVNode("div", _hoisted_24$1, toDisplayString(($ = t.hoveredData) == null ? void 0 : $.flat_number), 1),
|
|
273
344
|
createElementVNode("div", _hoisted_25$1, toDisplayString(unref(tr)("apartment")), 1)
|
|
274
345
|
]),
|
|
275
346
|
createElementVNode("div", _hoisted_26$1, [
|
|
276
347
|
r.value ? (openBlock(), createElementBlock("div", _hoisted_27$1, toDisplayString(r.value), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
277
348
|
createElementVNode("div", _hoisted_28$1, toDisplayString(unref(tr)("price")), 1),
|
|
278
|
-
(
|
|
349
|
+
(E = t.hoveredData) != null && E.price ? (openBlock(), createElementBlock("div", _hoisted_29$1, [
|
|
279
350
|
createElementVNode("div", null, [
|
|
280
|
-
(
|
|
281
|
-
createElementVNode("div", _hoisted_32, toDisplayString(Number((
|
|
351
|
+
(m = t.hoveredData) != null && m.offer_price ? (openBlock(), createElementBlock("div", _hoisted_31$1, [
|
|
352
|
+
createElementVNode("div", _hoisted_32, toDisplayString(Number((k = t.hoveredData) == null ? void 0 : k.price).toLocaleString("fr-FR")), 1),
|
|
282
353
|
createElementVNode("div", _hoisted_33, [
|
|
283
|
-
createTextVNode(toDisplayString(Number((
|
|
284
|
-
createElementVNode("span", null, toDisplayString(unref(
|
|
354
|
+
createTextVNode(toDisplayString(Number((V = t.hoveredData) == null ? void 0 : V.offer_price).toLocaleString("fr-FR")) + " ", 1),
|
|
355
|
+
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
285
356
|
])
|
|
286
357
|
])) : (openBlock(), createElementBlock("div", _hoisted_30$1, [
|
|
287
|
-
createTextVNode(toDisplayString(Number(
|
|
288
|
-
createElementVNode("span", null, toDisplayString(unref(
|
|
358
|
+
createTextVNode(toDisplayString(Number(t.hoveredData.price).toLocaleString("fr-FR")) + " ", 1),
|
|
359
|
+
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
289
360
|
]))
|
|
290
361
|
])
|
|
291
362
|
])) : createCommentVNode("", !0)
|
|
@@ -293,10 +364,8 @@ const tr = (t) => {
|
|
|
293
364
|
]),
|
|
294
365
|
createElementVNode("div", _hoisted_34, [
|
|
295
366
|
createElementVNode("div", _hoisted_35, [
|
|
296
|
-
createTextVNode(toDisplayString((
|
|
297
|
-
|
|
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))
|
|
367
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((D = (S = t.hoveredData) == null ? void 0 : S.type) == null ? void 0 : D.area_m2))) + " m", 1),
|
|
368
|
+
l[0] || (l[0] = createElementVNode("sup", { class: "ire-bg-white !ire-text-xs" }, " 2 ", -1))
|
|
300
369
|
])
|
|
301
370
|
])
|
|
302
371
|
])) : createCommentVNode("", !0)
|
|
@@ -307,83 +376,110 @@ const tr = (t) => {
|
|
|
307
376
|
})
|
|
308
377
|
]));
|
|
309
378
|
}
|
|
310
|
-
}), _hoisted_1$f = {
|
|
379
|
+
}), _hoisted_1$f = {
|
|
311
380
|
key: 0,
|
|
312
381
|
class: "ire-flex ire-flex-col ire-items-center !ire-text-sm"
|
|
313
|
-
}, _hoisted_3$8 = { class: "ire-capitalize" }, _hoisted_4$6 = {
|
|
382
|
+
}, _hoisted_2$9 = { class: "gap-6 ire-flex ire-items-center ire-p-4" }, _hoisted_3$8 = { class: "ire-text-3xl ire-capitalize" }, _hoisted_4$6 = {
|
|
314
383
|
key: 0,
|
|
315
|
-
class: "ire-
|
|
316
|
-
}, _hoisted_5$2 = {
|
|
317
|
-
key: 1,
|
|
318
|
-
class: "ire-text-nowrap ire-capitalize"
|
|
319
|
-
}, _hoisted_6$2 = {
|
|
384
|
+
class: "ire-text-2xl ire-uppercase"
|
|
385
|
+
}, _hoisted_5$2 = { key: 1 }, _hoisted_6$2 = { class: "ire-text-xs ire-text-gray-400" }, _hoisted_7$2 = { class: "ire-right-[2px] !ire-text-sm ire-text-gray-200" }, _hoisted_8$2 = { class: "ire-flex ire-items-center ire-justify-between ire-gap-2 ire-bg-gray-800 ire-p-2 [&_p]:ire-text-xs [&_p_span]:ire-mr-1" }, _hoisted_9$2 = {
|
|
320
386
|
key: 1,
|
|
321
|
-
class: "ire-flex ire-items-center ire-gap-3 !ire-text-sm"
|
|
322
|
-
},
|
|
387
|
+
class: "p-4 ire-flex ire-items-center ire-gap-3 !ire-text-sm"
|
|
388
|
+
}, _hoisted_10$2 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_11$2 = { class: "ire-text-gray-300 ire-opacity-80" }, _hoisted_12$2 = {
|
|
323
389
|
key: 2,
|
|
324
390
|
class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-1"
|
|
325
|
-
},
|
|
391
|
+
}, _hoisted_13$1 = { class: "gap-4 ire-flex ire-items-center ire-p-4" }, _hoisted_14$1 = { class: "ire-max-w-28 ire-text-sm ire-capitalize" }, _hoisted_15$1 = {
|
|
326
392
|
key: 0,
|
|
327
|
-
class: "
|
|
328
|
-
},
|
|
393
|
+
class: "ire-text-sm ire-uppercase"
|
|
394
|
+
}, _hoisted_16$1 = {
|
|
329
395
|
key: 1,
|
|
330
|
-
class: "ire-flex ire-
|
|
331
|
-
},
|
|
396
|
+
class: "ire-flex ire-flex-col ire-gap-2"
|
|
397
|
+
}, _hoisted_17$1 = { class: "ire-right-[2px] !ire-text-sm ire-text-gray-200" }, _hoisted_18$1 = { class: "ire-right-[2px] !ire-text-sm ire-text-gray-200" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
332
398
|
__name: "Tooltip_2",
|
|
333
399
|
props: {
|
|
334
400
|
hoveredData: {},
|
|
335
|
-
type: {}
|
|
401
|
+
type: {},
|
|
402
|
+
mouseTrack: { type: Boolean }
|
|
336
403
|
},
|
|
337
|
-
setup(
|
|
338
|
-
const o =
|
|
339
|
-
var
|
|
340
|
-
return tr((
|
|
404
|
+
setup(e) {
|
|
405
|
+
const o = e, r = inject("mouseX"), t = inject("mouseY"), l = computed$1(() => {
|
|
406
|
+
var i;
|
|
407
|
+
return tr((i = o.hoveredData) == null ? void 0 : i.conf);
|
|
341
408
|
});
|
|
342
|
-
return (
|
|
409
|
+
return (i, s) => (openBlock(), createBlock(Transition, { name: "ire-fade-in-out" }, {
|
|
343
410
|
default: withCtx(() => {
|
|
344
|
-
var
|
|
411
|
+
var h, _, y, x, w, b, v, c, p, a, f, n, d, g;
|
|
345
412
|
return [
|
|
346
|
-
|
|
413
|
+
i.type && i.hoveredData && i.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
|
|
347
414
|
key: 0,
|
|
348
|
-
class: "ire-pointer-events-none ire-absolute ire-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
})
|
|
415
|
+
class: normalizeClass(["ire-pointer-events-none ire-absolute ire-select-none", {
|
|
416
|
+
"ire-left-0 ire-top-0": i.mouseTrack,
|
|
417
|
+
"ire-bottom-4 ire-right-4": !i.mouseTrack
|
|
418
|
+
}]),
|
|
419
|
+
style: normalizeStyle(
|
|
420
|
+
i.mouseTrack ? {
|
|
421
|
+
transform: `translateX(${unref(r) || 0}px) translateY(${unref(t) || 0}px)`
|
|
422
|
+
} : {}
|
|
423
|
+
)
|
|
352
424
|
}, [
|
|
353
|
-
createElementVNode("div",
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
425
|
+
createElementVNode("div", {
|
|
426
|
+
class: normalizeClass(["tooltip-2 ire-flex ire-origin-top ire-items-center ire-justify-center ire-bg-black ire-text-white ire-transition-transform ire-duration-500 ire-ease-in-out", { "": i.mouseTrack }])
|
|
427
|
+
}, [
|
|
428
|
+
i.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
429
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
430
|
+
createElementVNode("p", _hoisted_3$8, toDisplayString((h = i.hoveredData) == null ? void 0 : h.floor_number), 1),
|
|
431
|
+
s[0] || (s[0] = createElementVNode("span", null, "|", -1)),
|
|
432
|
+
l.value ? (openBlock(), createElementBlock("div", _hoisted_4$6, toDisplayString(l.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
433
|
+
createElementVNode("p", _hoisted_6$2, toDisplayString(unref(tr)("starting from")) + ": ", 1),
|
|
434
|
+
createElementVNode("p", null, [
|
|
435
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((y = (_ = i.hoveredData) == null ? void 0 : _.counts) == null ? void 0 : y.minimum_price) || 0)) + " ", 1),
|
|
436
|
+
createElementVNode("span", _hoisted_7$2, toDisplayString(unref(currencySymbol)()), 1)
|
|
437
|
+
])
|
|
438
|
+
]))
|
|
358
439
|
]),
|
|
359
|
-
|
|
360
|
-
createElementVNode("
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
createElementVNode("
|
|
366
|
-
|
|
440
|
+
createElementVNode("div", _hoisted_8$2, [
|
|
441
|
+
createElementVNode("p", null, [
|
|
442
|
+
createElementVNode("span", null, toDisplayString(l.value ? 0 : ((w = (x = i.hoveredData) == null ? void 0 : x.counts) == null ? void 0 : w.available) || 0), 1),
|
|
443
|
+
createTextVNode(" " + toDisplayString(unref(tr)("available")), 1)
|
|
444
|
+
]),
|
|
445
|
+
s[1] || (s[1] = createElementVNode("span", null, "•", -1)),
|
|
446
|
+
createElementVNode("p", null, [
|
|
447
|
+
createElementVNode("span", null, toDisplayString(l.value ? 0 : ((v = (b = i.hoveredData) == null ? void 0 : b.counts) == null ? void 0 : v.sold) || 0), 1),
|
|
448
|
+
createTextVNode(" " + toDisplayString(unref(tr)("sold")), 1)
|
|
449
|
+
]),
|
|
450
|
+
s[2] || (s[2] = createElementVNode("span", null, "•", -1)),
|
|
451
|
+
createElementVNode("p", null, [
|
|
452
|
+
createElementVNode("span", null, toDisplayString(l.value ? 0 : ((p = (c = i.hoveredData) == null ? void 0 : c.counts) == null ? void 0 : p.reserved) || 0), 1),
|
|
453
|
+
createTextVNode(" " + toDisplayString(unref(tr)("reserved")), 1)
|
|
454
|
+
])
|
|
367
455
|
])
|
|
368
|
-
])) :
|
|
369
|
-
createElementVNode("div", _hoisted_10$2,
|
|
370
|
-
|
|
371
|
-
createElementVNode("
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
456
|
+
])) : i.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_9$2, [
|
|
457
|
+
createElementVNode("div", _hoisted_10$2, [
|
|
458
|
+
createElementVNode("div", null, toDisplayString((a = i.hoveredData) == null ? void 0 : a.title), 1),
|
|
459
|
+
createElementVNode("span", _hoisted_11$2, toDisplayString(l.value), 1)
|
|
460
|
+
])
|
|
461
|
+
])) : i.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_12$2, [
|
|
462
|
+
createElementVNode("div", _hoisted_13$1, [
|
|
463
|
+
createElementVNode("p", _hoisted_14$1, toDisplayString((f = i.hoveredData) == null ? void 0 : f.flat_number), 1),
|
|
464
|
+
s[4] || (s[4] = createElementVNode("span", null, "|", -1)),
|
|
465
|
+
l.value ? (openBlock(), createElementBlock("div", _hoisted_15$1, toDisplayString(l.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_16$1, [
|
|
466
|
+
createElementVNode("div", null, [
|
|
467
|
+
createElementVNode("p", null, [
|
|
468
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((n = i.hoveredData) == null ? void 0 : n.price))) + " ", 1),
|
|
469
|
+
createElementVNode("span", _hoisted_17$1, toDisplayString(unref(currencySymbol)()), 1)
|
|
470
|
+
])
|
|
471
|
+
]),
|
|
472
|
+
createElementVNode("div", null, [
|
|
473
|
+
createElementVNode("span", _hoisted_18$1, [
|
|
474
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((g = (d = i.hoveredData) == null ? void 0 : d.type) == null ? void 0 : g.area_m2))) + " m", 1),
|
|
475
|
+
s[3] || (s[3] = createElementVNode("sup", { class: "ire-bg-transparent !ire-text-xs" }, " 2 ", -1))
|
|
476
|
+
])
|
|
375
477
|
])
|
|
376
|
-
])
|
|
377
|
-
])),
|
|
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
|
-
"fr-FR"
|
|
381
|
-
)) + " m ", 1),
|
|
382
|
-
i[0] || (i[0] = createElementVNode("sup", { class: "ire-right-[2px] !ire-text-xs ire-text-gray-200" }, " 2 ", -1))
|
|
478
|
+
]))
|
|
383
479
|
])
|
|
384
480
|
])) : createCommentVNode("", !0)
|
|
385
|
-
])
|
|
386
|
-
],
|
|
481
|
+
], 2)
|
|
482
|
+
], 6)) : createCommentVNode("", !0)
|
|
387
483
|
];
|
|
388
484
|
}),
|
|
389
485
|
_: 1
|
|
@@ -404,13 +500,13 @@ const tr = (t) => {
|
|
|
404
500
|
hoveredData: {},
|
|
405
501
|
type: {}
|
|
406
502
|
},
|
|
407
|
-
setup(
|
|
503
|
+
setup(e) {
|
|
408
504
|
const o = inject("mouseX"), r = inject("mouseY");
|
|
409
|
-
return (
|
|
505
|
+
return (t, l) => (openBlock(), createBlock(Transition, { name: "ire-fade-in" }, {
|
|
410
506
|
default: withCtx(() => {
|
|
411
|
-
var
|
|
507
|
+
var i, s, h;
|
|
412
508
|
return [
|
|
413
|
-
|
|
509
|
+
t.type && t.hoveredData && t.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
|
|
414
510
|
key: 0,
|
|
415
511
|
class: "ire-pointer-events-none ire-absolute ire-left-0 ire-top-0 ire-select-none",
|
|
416
512
|
style: normalizeStyle({
|
|
@@ -418,18 +514,18 @@ const tr = (t) => {
|
|
|
418
514
|
})
|
|
419
515
|
}, [
|
|
420
516
|
createElementVNode("div", _hoisted_1$e, [
|
|
421
|
-
|
|
517
|
+
t.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
|
|
422
518
|
createElementVNode("div", _hoisted_3$7, [
|
|
423
|
-
createElementVNode("div", _hoisted_4$5, toDisplayString((
|
|
519
|
+
createElementVNode("div", _hoisted_4$5, toDisplayString((i = t.hoveredData) == null ? void 0 : i.floor_number), 1),
|
|
424
520
|
createElementVNode("div", _hoisted_5$1, toDisplayString(unref(tr)("floor")), 1)
|
|
425
521
|
])
|
|
426
|
-
])) :
|
|
522
|
+
])) : t.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
|
|
427
523
|
createElementVNode("div", _hoisted_7$1, [
|
|
428
|
-
createElementVNode("div", _hoisted_8$1, toDisplayString((
|
|
524
|
+
createElementVNode("div", _hoisted_8$1, toDisplayString((s = t.hoveredData) == null ? void 0 : s.title), 1)
|
|
429
525
|
])
|
|
430
|
-
])) :
|
|
526
|
+
])) : t.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
|
|
431
527
|
createElementVNode("div", _hoisted_10$1, [
|
|
432
|
-
createElementVNode("div", _hoisted_11$1, toDisplayString((
|
|
528
|
+
createElementVNode("div", _hoisted_11$1, toDisplayString((h = t.hoveredData) == null ? void 0 : h.flat_number), 1),
|
|
433
529
|
createElementVNode("div", _hoisted_12$1, toDisplayString(unref(tr)("apartment")), 1)
|
|
434
530
|
])
|
|
435
531
|
])) : createCommentVNode("", !0)
|
|
@@ -449,44 +545,50 @@ const tr = (t) => {
|
|
|
449
545
|
hoverdData: {},
|
|
450
546
|
type: {}
|
|
451
547
|
},
|
|
452
|
-
setup(
|
|
453
|
-
const o = inject("shortcodeData"), r = inject("showFlatModal"),
|
|
454
|
-
var
|
|
455
|
-
return ((
|
|
548
|
+
setup(e) {
|
|
549
|
+
const o = inject("shortcodeData"), r = inject("showFlatModal"), t = ref(), l = ref(!0), i = computed$1(() => {
|
|
550
|
+
var s;
|
|
551
|
+
return ((s = o.meta.find((h) => h.meta_key === "tooltip")) == null ? void 0 : s.meta_value) || "1";
|
|
456
552
|
});
|
|
457
553
|
return watch(
|
|
458
554
|
() => r == null ? void 0 : r.value,
|
|
459
555
|
() => {
|
|
460
|
-
r != null && r.value ?
|
|
461
|
-
|
|
556
|
+
r != null && r.value ? l.value = !1 : setTimeout(() => {
|
|
557
|
+
l.value = !0;
|
|
462
558
|
}, 400);
|
|
463
559
|
}
|
|
464
|
-
), (
|
|
560
|
+
), (s, h) => (openBlock(), createElementBlock("div", {
|
|
465
561
|
ref_key: "canvasRef",
|
|
466
|
-
ref:
|
|
467
|
-
class: "ire-relative ire-overflow-hidden ire-pt-3
|
|
562
|
+
ref: t,
|
|
563
|
+
class: "ire-group ire-relative ire-overflow-hidden ire-pt-3"
|
|
468
564
|
}, [
|
|
469
|
-
|
|
470
|
-
renderSlot(
|
|
565
|
+
s.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
566
|
+
renderSlot(s.$slots, "header")
|
|
471
567
|
])) : createCommentVNode("", !0),
|
|
472
|
-
renderSlot(
|
|
568
|
+
renderSlot(s.$slots, "default"),
|
|
473
569
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
474
570
|
default: withCtx(() => [
|
|
475
|
-
|
|
476
|
-
|
|
571
|
+
l.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
572
|
+
i.value === "2" ? (openBlock(), createBlock(_sfc_main$i, {
|
|
477
573
|
key: 0,
|
|
478
|
-
"hovered-data":
|
|
479
|
-
type:
|
|
480
|
-
|
|
481
|
-
|
|
574
|
+
"hovered-data": s.hoverdData,
|
|
575
|
+
type: s.type || "",
|
|
576
|
+
"mouse-track": !0,
|
|
577
|
+
class: "ire-hidden lg:ire-flex [&_.tooltip-2]:group-active:!ire-scale-110"
|
|
578
|
+
}, null, 8, ["hovered-data", "type"])) : i.value === "3" ? (openBlock(), createBlock(_sfc_main$i, {
|
|
482
579
|
key: 1,
|
|
483
|
-
"hovered-data":
|
|
484
|
-
type:
|
|
580
|
+
"hovered-data": s.hoverdData,
|
|
581
|
+
type: s.type || "",
|
|
485
582
|
class: "ire-hidden lg:ire-flex"
|
|
486
|
-
}, null, 8, ["hovered-data", "type"])) : (openBlock(), createBlock(_sfc_main$
|
|
583
|
+
}, null, 8, ["hovered-data", "type"])) : i.value === "4" ? (openBlock(), createBlock(_sfc_main$h, {
|
|
487
584
|
key: 2,
|
|
488
|
-
"hovered-data":
|
|
489
|
-
type:
|
|
585
|
+
"hovered-data": s.hoverdData,
|
|
586
|
+
type: s.type || "",
|
|
587
|
+
class: "ire-hidden lg:ire-flex [&_.tooltip-2]:group-active:!ire-scale-110"
|
|
588
|
+
}, null, 8, ["hovered-data", "type"])) : (openBlock(), createBlock(_sfc_main$j, {
|
|
589
|
+
key: 3,
|
|
590
|
+
"hovered-data": s.hoverdData,
|
|
591
|
+
type: s.type || "",
|
|
490
592
|
class: "ire-hidden lg:ire-block"
|
|
491
593
|
}, null, 8, ["hovered-data", "type"]))
|
|
492
594
|
], 64)) : createCommentVNode("", !0)
|
|
@@ -502,216 +604,216 @@ const tr = (t) => {
|
|
|
502
604
|
* @license MIT
|
|
503
605
|
*/
|
|
504
606
|
let activePinia;
|
|
505
|
-
const setActivePinia = (
|
|
607
|
+
const setActivePinia = (e) => activePinia = e, piniaSymbol = (
|
|
506
608
|
/* istanbul ignore next */
|
|
507
609
|
Symbol()
|
|
508
610
|
);
|
|
509
|
-
function isPlainObject(
|
|
510
|
-
return
|
|
611
|
+
function isPlainObject(e) {
|
|
612
|
+
return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
|
|
511
613
|
}
|
|
512
614
|
var MutationType;
|
|
513
|
-
(function(
|
|
514
|
-
|
|
615
|
+
(function(e) {
|
|
616
|
+
e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
|
|
515
617
|
})(MutationType || (MutationType = {}));
|
|
516
618
|
function createPinia() {
|
|
517
|
-
const
|
|
518
|
-
let r = [],
|
|
519
|
-
const
|
|
520
|
-
install(
|
|
521
|
-
setActivePinia(
|
|
619
|
+
const e = effectScope(!0), o = e.run(() => ref({}));
|
|
620
|
+
let r = [], t = [];
|
|
621
|
+
const l = markRaw({
|
|
622
|
+
install(i) {
|
|
623
|
+
setActivePinia(l), l._a = i, i.provide(piniaSymbol, l), i.config.globalProperties.$pinia = l, t.forEach((s) => r.push(s)), t = [];
|
|
522
624
|
},
|
|
523
|
-
use(
|
|
524
|
-
return this._a ? r.push(
|
|
625
|
+
use(i) {
|
|
626
|
+
return this._a ? r.push(i) : t.push(i), this;
|
|
525
627
|
},
|
|
526
628
|
_p: r,
|
|
527
629
|
// it's actually undefined here
|
|
528
630
|
// @ts-expect-error
|
|
529
631
|
_a: null,
|
|
530
|
-
_e:
|
|
632
|
+
_e: e,
|
|
531
633
|
_s: /* @__PURE__ */ new Map(),
|
|
532
634
|
state: o
|
|
533
635
|
});
|
|
534
|
-
return
|
|
636
|
+
return l;
|
|
535
637
|
}
|
|
536
638
|
const noop = () => {
|
|
537
639
|
};
|
|
538
|
-
function addSubscription(
|
|
539
|
-
|
|
540
|
-
const
|
|
541
|
-
const
|
|
542
|
-
|
|
640
|
+
function addSubscription(e, o, r, t = noop) {
|
|
641
|
+
e.push(o);
|
|
642
|
+
const l = () => {
|
|
643
|
+
const i = e.indexOf(o);
|
|
644
|
+
i > -1 && (e.splice(i, 1), t());
|
|
543
645
|
};
|
|
544
|
-
return !r && getCurrentScope() && onScopeDispose(
|
|
646
|
+
return !r && getCurrentScope() && onScopeDispose(l), l;
|
|
545
647
|
}
|
|
546
|
-
function triggerSubscriptions(
|
|
547
|
-
|
|
648
|
+
function triggerSubscriptions(e, ...o) {
|
|
649
|
+
e.slice().forEach((r) => {
|
|
548
650
|
r(...o);
|
|
549
651
|
});
|
|
550
652
|
}
|
|
551
|
-
const fallbackRunWithContext = (
|
|
552
|
-
function mergeReactiveObjects(
|
|
553
|
-
|
|
653
|
+
const fallbackRunWithContext = (e) => e(), ACTION_MARKER = Symbol(), ACTION_NAME = Symbol();
|
|
654
|
+
function mergeReactiveObjects(e, o) {
|
|
655
|
+
e instanceof Map && o instanceof Map ? o.forEach((r, t) => e.set(t, r)) : e instanceof Set && o instanceof Set && o.forEach(e.add, e);
|
|
554
656
|
for (const r in o) {
|
|
555
657
|
if (!o.hasOwnProperty(r))
|
|
556
658
|
continue;
|
|
557
|
-
const
|
|
558
|
-
isPlainObject(
|
|
659
|
+
const t = o[r], l = e[r];
|
|
660
|
+
isPlainObject(l) && isPlainObject(t) && e.hasOwnProperty(r) && !isRef(t) && !isReactive(t) ? e[r] = mergeReactiveObjects(l, t) : e[r] = t;
|
|
559
661
|
}
|
|
560
|
-
return
|
|
662
|
+
return e;
|
|
561
663
|
}
|
|
562
664
|
const skipHydrateSymbol = (
|
|
563
665
|
/* istanbul ignore next */
|
|
564
666
|
Symbol()
|
|
565
667
|
);
|
|
566
|
-
function shouldHydrate(
|
|
567
|
-
return !isPlainObject(
|
|
668
|
+
function shouldHydrate(e) {
|
|
669
|
+
return !isPlainObject(e) || !e.hasOwnProperty(skipHydrateSymbol);
|
|
568
670
|
}
|
|
569
671
|
const { assign } = Object;
|
|
570
|
-
function isComputed(
|
|
571
|
-
return !!(isRef(
|
|
672
|
+
function isComputed(e) {
|
|
673
|
+
return !!(isRef(e) && e.effect);
|
|
572
674
|
}
|
|
573
|
-
function createOptionsStore(
|
|
574
|
-
const { state:
|
|
575
|
-
let
|
|
576
|
-
function
|
|
577
|
-
|
|
578
|
-
const x = toRefs(r.state.value[
|
|
579
|
-
return assign(x,
|
|
675
|
+
function createOptionsStore(e, o, r, t) {
|
|
676
|
+
const { state: l, actions: i, getters: s } = o, h = r.state.value[e];
|
|
677
|
+
let _;
|
|
678
|
+
function y() {
|
|
679
|
+
h || (r.state.value[e] = l ? l() : {});
|
|
680
|
+
const x = toRefs(r.state.value[e]);
|
|
681
|
+
return assign(x, i, Object.keys(s || {}).reduce((w, b) => (w[b] = markRaw(computed$1(() => {
|
|
580
682
|
setActivePinia(r);
|
|
581
|
-
const v = r._s.get(
|
|
582
|
-
return
|
|
583
|
-
})),
|
|
683
|
+
const v = r._s.get(e);
|
|
684
|
+
return s[b].call(v, v);
|
|
685
|
+
})), w), {}));
|
|
584
686
|
}
|
|
585
|
-
return
|
|
687
|
+
return _ = createSetupStore(e, y, o, r, t, !0), _;
|
|
586
688
|
}
|
|
587
|
-
function createSetupStore(
|
|
588
|
-
let
|
|
589
|
-
const
|
|
590
|
-
let
|
|
591
|
-
const c =
|
|
592
|
-
!
|
|
593
|
-
let
|
|
594
|
-
function a(
|
|
595
|
-
let
|
|
596
|
-
|
|
689
|
+
function createSetupStore(e, o, r = {}, t, l, i) {
|
|
690
|
+
let s;
|
|
691
|
+
const h = assign({ actions: {} }, r), _ = { deep: !0 };
|
|
692
|
+
let y, x, w = [], b = [], v;
|
|
693
|
+
const c = t.state.value[e];
|
|
694
|
+
!i && !c && (t.state.value[e] = {}), ref({});
|
|
695
|
+
let p;
|
|
696
|
+
function a(m) {
|
|
697
|
+
let k;
|
|
698
|
+
y = x = !1, typeof m == "function" ? (m(t.state.value[e]), k = {
|
|
597
699
|
type: MutationType.patchFunction,
|
|
598
|
-
storeId:
|
|
700
|
+
storeId: e,
|
|
599
701
|
events: v
|
|
600
|
-
}) : (mergeReactiveObjects(
|
|
702
|
+
}) : (mergeReactiveObjects(t.state.value[e], m), k = {
|
|
601
703
|
type: MutationType.patchObject,
|
|
602
|
-
payload:
|
|
603
|
-
storeId:
|
|
704
|
+
payload: m,
|
|
705
|
+
storeId: e,
|
|
604
706
|
events: v
|
|
605
707
|
});
|
|
606
|
-
const
|
|
708
|
+
const V = p = Symbol();
|
|
607
709
|
nextTick().then(() => {
|
|
608
|
-
|
|
609
|
-
}), x = !0, triggerSubscriptions(
|
|
710
|
+
p === V && (y = !0);
|
|
711
|
+
}), x = !0, triggerSubscriptions(w, k, t.state.value[e]);
|
|
610
712
|
}
|
|
611
|
-
const
|
|
612
|
-
const { state:
|
|
613
|
-
this.$patch((
|
|
614
|
-
assign(
|
|
713
|
+
const f = i ? function() {
|
|
714
|
+
const { state: k } = r, V = k ? k() : {};
|
|
715
|
+
this.$patch((S) => {
|
|
716
|
+
assign(S, V);
|
|
615
717
|
});
|
|
616
718
|
} : (
|
|
617
719
|
/* istanbul ignore next */
|
|
618
720
|
noop
|
|
619
721
|
);
|
|
620
|
-
function
|
|
621
|
-
|
|
722
|
+
function n() {
|
|
723
|
+
s.stop(), w = [], b = [], t._s.delete(e);
|
|
622
724
|
}
|
|
623
|
-
const d = (
|
|
624
|
-
if (ACTION_MARKER in
|
|
625
|
-
return
|
|
626
|
-
const
|
|
627
|
-
setActivePinia(
|
|
628
|
-
const
|
|
629
|
-
function N
|
|
630
|
-
D.push(
|
|
725
|
+
const d = (m, k = "") => {
|
|
726
|
+
if (ACTION_MARKER in m)
|
|
727
|
+
return m[ACTION_NAME] = k, m;
|
|
728
|
+
const V = function() {
|
|
729
|
+
setActivePinia(t);
|
|
730
|
+
const S = Array.from(arguments), D = [], C = [];
|
|
731
|
+
function B(N) {
|
|
732
|
+
D.push(N);
|
|
631
733
|
}
|
|
632
|
-
function
|
|
633
|
-
|
|
734
|
+
function M(N) {
|
|
735
|
+
C.push(N);
|
|
634
736
|
}
|
|
635
|
-
triggerSubscriptions(
|
|
636
|
-
args:
|
|
637
|
-
name:
|
|
638
|
-
store:
|
|
639
|
-
after:
|
|
640
|
-
onError:
|
|
737
|
+
triggerSubscriptions(b, {
|
|
738
|
+
args: S,
|
|
739
|
+
name: V[ACTION_NAME],
|
|
740
|
+
store: u,
|
|
741
|
+
after: B,
|
|
742
|
+
onError: M
|
|
641
743
|
});
|
|
642
744
|
let R;
|
|
643
745
|
try {
|
|
644
|
-
R =
|
|
645
|
-
} catch (
|
|
646
|
-
throw triggerSubscriptions(
|
|
746
|
+
R = m.apply(this && this.$id === e ? this : u, S);
|
|
747
|
+
} catch (N) {
|
|
748
|
+
throw triggerSubscriptions(C, N), N;
|
|
647
749
|
}
|
|
648
|
-
return R instanceof Promise ? R.then((
|
|
750
|
+
return R instanceof Promise ? R.then((N) => (triggerSubscriptions(D, N), N)).catch((N) => (triggerSubscriptions(C, N), Promise.reject(N))) : (triggerSubscriptions(D, R), R);
|
|
649
751
|
};
|
|
650
|
-
return
|
|
651
|
-
},
|
|
652
|
-
_p:
|
|
752
|
+
return V[ACTION_MARKER] = !0, V[ACTION_NAME] = k, V;
|
|
753
|
+
}, g = {
|
|
754
|
+
_p: t,
|
|
653
755
|
// _s: scope,
|
|
654
|
-
$id:
|
|
655
|
-
$onAction: addSubscription.bind(null,
|
|
756
|
+
$id: e,
|
|
757
|
+
$onAction: addSubscription.bind(null, b),
|
|
656
758
|
$patch: a,
|
|
657
|
-
$reset:
|
|
658
|
-
$subscribe(
|
|
659
|
-
const
|
|
660
|
-
(
|
|
661
|
-
storeId:
|
|
759
|
+
$reset: f,
|
|
760
|
+
$subscribe(m, k = {}) {
|
|
761
|
+
const V = addSubscription(w, m, k.detached, () => S()), S = s.run(() => watch(() => t.state.value[e], (D) => {
|
|
762
|
+
(k.flush === "sync" ? x : y) && m({
|
|
763
|
+
storeId: e,
|
|
662
764
|
type: MutationType.direct,
|
|
663
765
|
events: v
|
|
664
766
|
}, D);
|
|
665
|
-
}, assign({},
|
|
666
|
-
return
|
|
767
|
+
}, assign({}, _, k)));
|
|
768
|
+
return V;
|
|
667
769
|
},
|
|
668
|
-
$dispose:
|
|
669
|
-
},
|
|
670
|
-
|
|
671
|
-
const
|
|
672
|
-
for (const
|
|
673
|
-
const
|
|
674
|
-
if (isRef(
|
|
675
|
-
|
|
676
|
-
else if (typeof
|
|
677
|
-
const
|
|
678
|
-
|
|
770
|
+
$dispose: n
|
|
771
|
+
}, u = reactive(g);
|
|
772
|
+
t._s.set(e, u);
|
|
773
|
+
const E = (t._a && t._a.runWithContext || fallbackRunWithContext)(() => t._e.run(() => (s = effectScope()).run(() => o({ action: d }))));
|
|
774
|
+
for (const m in E) {
|
|
775
|
+
const k = E[m];
|
|
776
|
+
if (isRef(k) && !isComputed(k) || isReactive(k))
|
|
777
|
+
i || (c && shouldHydrate(k) && (isRef(k) ? k.value = c[m] : mergeReactiveObjects(k, c[m])), t.state.value[e][m] = k);
|
|
778
|
+
else if (typeof k == "function") {
|
|
779
|
+
const V = d(k, m);
|
|
780
|
+
E[m] = V, h.actions[m] = k;
|
|
679
781
|
}
|
|
680
782
|
}
|
|
681
|
-
return assign(
|
|
682
|
-
get: () =>
|
|
683
|
-
set: (
|
|
684
|
-
a((
|
|
685
|
-
assign(
|
|
783
|
+
return assign(u, E), assign(toRaw(u), E), Object.defineProperty(u, "$state", {
|
|
784
|
+
get: () => t.state.value[e],
|
|
785
|
+
set: (m) => {
|
|
786
|
+
a((k) => {
|
|
787
|
+
assign(k, m);
|
|
686
788
|
});
|
|
687
789
|
}
|
|
688
|
-
}),
|
|
689
|
-
assign(
|
|
690
|
-
store:
|
|
691
|
-
app:
|
|
692
|
-
pinia:
|
|
693
|
-
options:
|
|
790
|
+
}), t._p.forEach((m) => {
|
|
791
|
+
assign(u, s.run(() => m({
|
|
792
|
+
store: u,
|
|
793
|
+
app: t._a,
|
|
794
|
+
pinia: t,
|
|
795
|
+
options: h
|
|
694
796
|
})));
|
|
695
|
-
}), c &&
|
|
797
|
+
}), c && i && r.hydrate && r.hydrate(u.$state, c), y = !0, x = !0, u;
|
|
696
798
|
}
|
|
697
799
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
698
800
|
// @__NO_SIDE_EFFECTS__
|
|
699
|
-
function defineStore(
|
|
700
|
-
let
|
|
701
|
-
const
|
|
702
|
-
|
|
703
|
-
function
|
|
704
|
-
const
|
|
705
|
-
return
|
|
801
|
+
function defineStore(e, o, r) {
|
|
802
|
+
let t;
|
|
803
|
+
const l = typeof o == "function";
|
|
804
|
+
t = l ? r : o;
|
|
805
|
+
function i(s, h) {
|
|
806
|
+
const _ = hasInjectionContext();
|
|
807
|
+
return s = // in test mode, ignore the argument provided as we can always retrieve a
|
|
706
808
|
// pinia instance with getActivePinia()
|
|
707
|
-
|
|
809
|
+
s || (_ ? inject(piniaSymbol, null) : null), s && setActivePinia(s), s = activePinia, s._s.has(e) || (l ? createSetupStore(e, o, t, s) : createOptionsStore(e, t, s)), s._s.get(e);
|
|
708
810
|
}
|
|
709
|
-
return
|
|
811
|
+
return i.$id = e, i;
|
|
710
812
|
}
|
|
711
813
|
const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
712
|
-
const
|
|
814
|
+
const e = ref(), o = ref("1");
|
|
713
815
|
return {
|
|
714
|
-
hoverdSvg:
|
|
816
|
+
hoverdSvg: e,
|
|
715
817
|
tooltip: o
|
|
716
818
|
};
|
|
717
819
|
}), _hoisted_1$c = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_2$7 = ["src"], _hoisted_3$6 = ["innerHTML"], _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
@@ -725,93 +827,96 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
725
827
|
projectMeta: {}
|
|
726
828
|
},
|
|
727
829
|
emits: ["changeComponent"],
|
|
728
|
-
setup(
|
|
729
|
-
const r = o,
|
|
730
|
-
if (
|
|
731
|
-
return
|
|
732
|
-
}), x = (
|
|
733
|
-
const v =
|
|
734
|
-
v && (
|
|
735
|
-
},
|
|
736
|
-
var c,
|
|
737
|
-
const v =
|
|
738
|
-
(v == null ? void 0 : v.nodeName) === "path" && (((c =
|
|
830
|
+
setup(e, { emit: o }) {
|
|
831
|
+
const r = o, t = e, l = useGlobalStore(), i = inject("showFlatModal"), s = ref(null), h = ref(), _ = ref(null), y = computed(() => {
|
|
832
|
+
if (t.project)
|
|
833
|
+
return t.project.svg;
|
|
834
|
+
}), x = (b) => {
|
|
835
|
+
const v = b == null ? void 0 : b.target;
|
|
836
|
+
v && (s.value = v);
|
|
837
|
+
}, w = (b) => {
|
|
838
|
+
var c, p, a;
|
|
839
|
+
const v = b.target;
|
|
840
|
+
(v == null ? void 0 : v.nodeName) === "path" && (((c = h.value) == null ? void 0 : c.conf) === "sold" || ((p = h.value) == null ? void 0 : p.conf) === "reserved" || r("changeComponent", ((a = _.value) == null ? void 0 : a.type) || "", h == null ? void 0 : h.value));
|
|
739
841
|
};
|
|
740
842
|
return watch(
|
|
741
|
-
() =>
|
|
843
|
+
() => i == null ? void 0 : i.value,
|
|
742
844
|
() => {
|
|
743
|
-
|
|
845
|
+
i != null && i.value || (s.value = null, _.value = null);
|
|
744
846
|
}
|
|
745
847
|
), watch(
|
|
746
|
-
() =>
|
|
747
|
-
(
|
|
748
|
-
var c,
|
|
749
|
-
if (!
|
|
750
|
-
|
|
751
|
-
const v =
|
|
848
|
+
() => s.value,
|
|
849
|
+
(b) => {
|
|
850
|
+
var c, p, a, f, n, d, g;
|
|
851
|
+
if (!b) return;
|
|
852
|
+
l.hoverdSvg = b;
|
|
853
|
+
const v = b.parentElement;
|
|
752
854
|
if (v && (v == null ? void 0 : v.nodeName) === "g") {
|
|
753
|
-
const
|
|
754
|
-
if (!
|
|
755
|
-
const $ = (
|
|
756
|
-
switch ((a =
|
|
855
|
+
const u = v == null ? void 0 : v.getAttribute("id");
|
|
856
|
+
if (!u || (_.value = ((c = t.project) == null ? void 0 : c.polygon_data.find((E) => (E == null ? void 0 : E.key) === u)) || null, !_.value)) return;
|
|
857
|
+
const $ = (p = _.value) == null ? void 0 : p.id;
|
|
858
|
+
switch ((a = _.value) == null ? void 0 : a.type) {
|
|
757
859
|
case "floor":
|
|
758
|
-
const
|
|
759
|
-
(
|
|
860
|
+
const E = (f = t.floors) == null ? void 0 : f.find(
|
|
861
|
+
(S) => S.id === $
|
|
760
862
|
);
|
|
761
|
-
|
|
863
|
+
h.value = E;
|
|
762
864
|
break;
|
|
763
865
|
case "block":
|
|
764
|
-
const
|
|
765
|
-
(
|
|
866
|
+
const m = (n = t.blocks) == null ? void 0 : n.find(
|
|
867
|
+
(S) => (S == null ? void 0 : S.id) === $
|
|
766
868
|
);
|
|
767
|
-
|
|
869
|
+
h.value = m;
|
|
768
870
|
break;
|
|
769
871
|
case "flat":
|
|
770
|
-
const
|
|
771
|
-
(
|
|
872
|
+
const k = (d = t.flats) == null ? void 0 : d.find(
|
|
873
|
+
(S) => (S == null ? void 0 : S.id) === $
|
|
772
874
|
);
|
|
773
|
-
|
|
875
|
+
h.value = k;
|
|
774
876
|
break;
|
|
775
877
|
case "tooltip":
|
|
776
|
-
const
|
|
777
|
-
(
|
|
878
|
+
const V = (g = t.actions) == null ? void 0 : g.find(
|
|
879
|
+
(S) => (S == null ? void 0 : S.id) === $
|
|
778
880
|
);
|
|
779
|
-
|
|
881
|
+
h.value = V;
|
|
780
882
|
break;
|
|
781
883
|
default:
|
|
782
|
-
|
|
884
|
+
h.value = null;
|
|
783
885
|
break;
|
|
784
886
|
}
|
|
785
887
|
} else
|
|
786
|
-
|
|
888
|
+
_.value = null, h.value = null;
|
|
787
889
|
}
|
|
788
|
-
), (
|
|
890
|
+
), onMounted(() => {
|
|
891
|
+
document.addEventListener("mousemove", x);
|
|
892
|
+
}), onUnmounted(() => {
|
|
893
|
+
document.removeEventListener("mousemove", x);
|
|
894
|
+
}), (b, v) => {
|
|
789
895
|
var c;
|
|
790
896
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
791
|
-
hoverdData:
|
|
792
|
-
type: (c =
|
|
793
|
-
onMouseover: x
|
|
897
|
+
hoverdData: h.value,
|
|
898
|
+
type: (c = _.value) == null ? void 0 : c.type
|
|
794
899
|
}, {
|
|
795
900
|
default: withCtx(() => {
|
|
796
|
-
var
|
|
901
|
+
var p, a, f, n, d, g;
|
|
797
902
|
return [
|
|
798
903
|
createElementVNode("div", _hoisted_1$c, [
|
|
799
904
|
createElementVNode("img", {
|
|
800
|
-
src: (
|
|
905
|
+
src: (f = (a = (p = b.project) == null ? void 0 : p.project_image) == null ? void 0 : a[0]) == null ? void 0 : f.url,
|
|
801
906
|
alt: "",
|
|
802
907
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
803
908
|
}, null, 8, _hoisted_2$7),
|
|
804
909
|
(openBlock(), createElementBlock("div", {
|
|
805
|
-
innerHTML: unref(
|
|
806
|
-
key: unref(
|
|
910
|
+
innerHTML: unref(y),
|
|
911
|
+
key: unref(y),
|
|
807
912
|
class: normalizeClass(["canvas ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full [&_path]:ire-cursor-pointer [&_path]:ire-fill-[var(--path-color)] [&_path]:ire-transition-all [&_svg]:ire-h-full [&_svg]:ire-w-full", [
|
|
808
913
|
{
|
|
809
|
-
"hover:[&_path]:ire-fill-[var(--reserved-color)]":
|
|
810
|
-
"hover:[&_path]:ire-fill-[var(--sold-color)]":
|
|
811
|
-
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((
|
|
914
|
+
"hover:[&_path]:ire-fill-[var(--reserved-color)]": h.value && ((n = h.value) == null ? void 0 : n.conf) === "reserved",
|
|
915
|
+
"hover:[&_path]:ire-fill-[var(--sold-color)]": h.value && ((d = h.value) == null ? void 0 : d.conf) === "sold",
|
|
916
|
+
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((g = h.value) != null && g.conf)
|
|
812
917
|
}
|
|
813
918
|
]]),
|
|
814
|
-
onClick:
|
|
919
|
+
onClick: w
|
|
815
920
|
}, null, 10, _hoisted_3$6))
|
|
816
921
|
])
|
|
817
922
|
];
|
|
@@ -836,26 +941,26 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
836
941
|
modelModifiers: {}
|
|
837
942
|
}),
|
|
838
943
|
emits: ["update:modelValue"],
|
|
839
|
-
setup(
|
|
840
|
-
const o = useModel(
|
|
841
|
-
return (r,
|
|
944
|
+
setup(e) {
|
|
945
|
+
const o = useModel(e, "modelValue");
|
|
946
|
+
return (r, t) => (openBlock(), createElementBlock("div", _hoisted_1$b, [
|
|
842
947
|
r.label ? (openBlock(), createElementBlock("p", _hoisted_2$6, toDisplayString(r.label), 1)) : createCommentVNode("", !0),
|
|
843
948
|
createElementVNode("div", _hoisted_3$5, [
|
|
844
949
|
withDirectives(createElementVNode("select", {
|
|
845
|
-
"onUpdate:modelValue":
|
|
950
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => o.value = l),
|
|
846
951
|
class: "ire-w-full ire-cursor-pointer ire-appearance-none ire-rounded-none ire-bg-transparent ire-py-2 ire-pl-3 ire-pr-8 ire-text-sm ire-text-slate-700 ire-shadow-sm ire-transition ire-duration-300 ire-ease-linear placeholder:ire-text-slate-400 hover:ire-border-slate-400 focus:ire-border-slate-400 focus:ire-shadow-md focus:ire-outline-none"
|
|
847
952
|
}, [
|
|
848
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.data, (
|
|
849
|
-
var
|
|
953
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.data, (l) => {
|
|
954
|
+
var i, s;
|
|
850
955
|
return openBlock(), createElementBlock("option", {
|
|
851
|
-
value:
|
|
852
|
-
disabled: ((
|
|
853
|
-
}, toDisplayString(
|
|
956
|
+
value: l.value,
|
|
957
|
+
disabled: ((i = l == null ? void 0 : l.title) == null ? void 0 : i.includes("reserved")) || ((s = l == null ? void 0 : l.title) == null ? void 0 : s.includes("sold"))
|
|
958
|
+
}, toDisplayString(l.title), 9, _hoisted_4$4);
|
|
854
959
|
}), 256))
|
|
855
960
|
], 512), [
|
|
856
961
|
[vModelSelect, o.value]
|
|
857
962
|
]),
|
|
858
|
-
|
|
963
|
+
t[1] || (t[1] = createElementVNode("svg", {
|
|
859
964
|
xmlns: "http://www.w3.org/2000/svg",
|
|
860
965
|
fill: "none",
|
|
861
966
|
viewBox: "0 0 24 24",
|
|
@@ -879,7 +984,7 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
879
984
|
viewBox: "0 0 32 32",
|
|
880
985
|
fill: "none"
|
|
881
986
|
};
|
|
882
|
-
function _sfc_render$3(
|
|
987
|
+
function _sfc_render$3(e, o) {
|
|
883
988
|
return openBlock(), createElementBlock("svg", _hoisted_1$a, o[0] || (o[0] = [
|
|
884
989
|
createElementVNode("path", {
|
|
885
990
|
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",
|
|
@@ -887,12 +992,12 @@ function _sfc_render$3(t, o) {
|
|
|
887
992
|
}, null, -1)
|
|
888
993
|
]));
|
|
889
994
|
}
|
|
890
|
-
const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$3]]), _hoisted_1$9 = { 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" }, _hoisted_2$5 = { class: "!ire-text-sm group-hover:!ire-text-white lg:!ire-text-balance" }, _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
995
|
+
const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$3]]), _hoisted_1$9 = { class: "ire-group/button 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" }, _hoisted_2$5 = { class: "!ire-text-sm ire-text-black group-hover/button:!ire-text-white lg:!ire-text-balance" }, _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
891
996
|
__name: "BackButton",
|
|
892
|
-
setup(
|
|
997
|
+
setup(e) {
|
|
893
998
|
return (o, r) => (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
894
|
-
createVNode(ArrowRight, { class: "ire-w-6 ire-rotate-180 group-hover:[&_path]:ire-fill-white" }),
|
|
895
|
-
createElementVNode("
|
|
999
|
+
createVNode(ArrowRight, { class: "ire-w-6 ire-rotate-180 group-hover/button:[&_path]:ire-fill-white" }),
|
|
1000
|
+
createElementVNode("div", _hoisted_2$5, toDisplayString(unref(tr)("back")), 1)
|
|
896
1001
|
]));
|
|
897
1002
|
}
|
|
898
1003
|
}), _hoisted_1$8 = { class: "ire-w-fit ire-bg-white" }, _hoisted_2$4 = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_3$4 = ["src"], _hoisted_4$3 = ["innerHTML"], _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
@@ -905,153 +1010,154 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
905
1010
|
actions: {}
|
|
906
1011
|
},
|
|
907
1012
|
emits: ["changeComponent"],
|
|
908
|
-
setup(
|
|
909
|
-
const r = o,
|
|
910
|
-
var
|
|
911
|
-
if ((
|
|
912
|
-
return
|
|
913
|
-
}), v = computed$1(() =>
|
|
914
|
-
(
|
|
915
|
-
var d,
|
|
1013
|
+
setup(e, { emit: o }) {
|
|
1014
|
+
const r = o, t = e, l = useGlobalStore(), i = inject("showFlatModal"), s = ref(), h = ref(null), _ = ref(), y = ref(null), x = ref(), w = ref(), b = computed$1(() => {
|
|
1015
|
+
var n;
|
|
1016
|
+
if ((n = t.floor) != null && n.svg)
|
|
1017
|
+
return t.floor.svg;
|
|
1018
|
+
}), v = computed$1(() => t.floors.filter(
|
|
1019
|
+
(n) => {
|
|
1020
|
+
var d, g;
|
|
916
1021
|
return (
|
|
917
1022
|
// floorItem.conf !== "reserved" &&
|
|
918
1023
|
// floorItem.conf !== "sold" &&
|
|
919
|
-
(d =
|
|
1024
|
+
(d = t.floor) != null && d.block_id ? (n == null ? void 0 : n.block_id) === ((g = t.floor) == null ? void 0 : g.block_id) : !(n != null && n.block_id)
|
|
920
1025
|
);
|
|
921
1026
|
}
|
|
922
|
-
).map((
|
|
923
|
-
var
|
|
924
|
-
const d = (
|
|
1027
|
+
).map((n) => {
|
|
1028
|
+
var g, u;
|
|
1029
|
+
const d = (g = t.blocks) == null ? void 0 : g.find(
|
|
925
1030
|
($) => {
|
|
926
|
-
var
|
|
927
|
-
return ($ == null ? void 0 : $.id) === ((
|
|
1031
|
+
var E;
|
|
1032
|
+
return ($ == null ? void 0 : $.id) === ((E = n == null ? void 0 : n.block_id) == null ? void 0 : E.toString());
|
|
928
1033
|
}
|
|
929
1034
|
);
|
|
930
1035
|
return {
|
|
931
|
-
title: ((
|
|
932
|
-
value:
|
|
1036
|
+
title: ((u = n == null ? void 0 : n.floor_number) == null ? void 0 : u.toString()) + " Floor" + (d != null && d.id ? ` - ${d == null ? void 0 : d.title}` : "") + (n != null && n.conf ? " " + n.conf : ""),
|
|
1037
|
+
value: n == null ? void 0 : n.id
|
|
933
1038
|
};
|
|
934
|
-
}).sort((
|
|
935
|
-
const d =
|
|
936
|
-
d && (
|
|
937
|
-
},
|
|
938
|
-
var
|
|
939
|
-
const d =
|
|
940
|
-
(d == null ? void 0 : d.nodeName) === "path" && (
|
|
1039
|
+
}).sort((n, d) => +(n == null ? void 0 : n.title) - +(d == null ? void 0 : d.title)) || []), c = (n) => {
|
|
1040
|
+
const d = n.target;
|
|
1041
|
+
d && (h.value = d);
|
|
1042
|
+
}, p = (n) => {
|
|
1043
|
+
var g, u, $;
|
|
1044
|
+
const d = n.target;
|
|
1045
|
+
(d == null ? void 0 : d.nodeName) === "path" && (y.value && "conf" in y.value && (((g = y.value) == null ? void 0 : g.conf) === "sold" || ((u = y.value) == null ? void 0 : u.conf) === "reserved") || r("changeComponent", (($ = _.value) == null ? void 0 : $.type) || "", y.value));
|
|
941
1046
|
}, a = () => {
|
|
942
|
-
var
|
|
943
|
-
|
|
944
|
-
var
|
|
945
|
-
const
|
|
946
|
-
(
|
|
1047
|
+
var n;
|
|
1048
|
+
s.value && ((n = s.value) == null ? void 0 : n.querySelectorAll("g")).forEach((g) => {
|
|
1049
|
+
var E, m, k, V, S, D;
|
|
1050
|
+
const u = g == null ? void 0 : g.getAttribute("id"), $ = (m = (E = t.floor) == null ? void 0 : E.polygon_data) == null ? void 0 : m.find(
|
|
1051
|
+
(C) => (C == null ? void 0 : C.key) === u
|
|
947
1052
|
);
|
|
948
|
-
if (
|
|
949
|
-
if ((
|
|
950
|
-
|
|
1053
|
+
if (t.flats)
|
|
1054
|
+
if ((k = t.floor) != null && k.conf)
|
|
1055
|
+
g.setAttribute("conf", ((V = t.floor) == null ? void 0 : V.conf) || "");
|
|
951
1056
|
else {
|
|
952
|
-
const
|
|
953
|
-
(
|
|
1057
|
+
const C = (S = t.flats) == null ? void 0 : S.find(
|
|
1058
|
+
(B) => (B == null ? void 0 : B.id) === ($ == null ? void 0 : $.id)
|
|
954
1059
|
);
|
|
955
|
-
|
|
1060
|
+
g == null || g.setAttribute("conf", ((D = C == null ? void 0 : C.conf) == null ? void 0 : D.toString()) || "");
|
|
956
1061
|
}
|
|
957
1062
|
});
|
|
958
|
-
},
|
|
959
|
-
var
|
|
960
|
-
(
|
|
1063
|
+
}, f = () => {
|
|
1064
|
+
var n;
|
|
1065
|
+
(n = t.floor) != null && n.block_id ? r("changeComponent", "block", w.value) : r("changeComponent", "project", null);
|
|
961
1066
|
};
|
|
962
1067
|
return watch(
|
|
963
|
-
() =>
|
|
964
|
-
(
|
|
965
|
-
var
|
|
966
|
-
if (!
|
|
967
|
-
|
|
968
|
-
const d =
|
|
1068
|
+
() => h.value,
|
|
1069
|
+
(n) => {
|
|
1070
|
+
var g, u, $, E, m, k;
|
|
1071
|
+
if (!n) return;
|
|
1072
|
+
l.hoverdSvg = n;
|
|
1073
|
+
const d = n == null ? void 0 : n.parentElement;
|
|
969
1074
|
if (d && (d == null ? void 0 : d.nodeName) === "g") {
|
|
970
|
-
const
|
|
971
|
-
if (!
|
|
972
|
-
if ((($ =
|
|
973
|
-
const
|
|
1075
|
+
const V = d.getAttribute("id");
|
|
1076
|
+
if (!V || (_.value = ((u = (g = t.floor) == null ? void 0 : g.polygon_data) == null ? void 0 : u.find((S) => (S == null ? void 0 : S.key) === V)) || null, !_.value)) return;
|
|
1077
|
+
if ((($ = _.value) == null ? void 0 : $.type) === "flat") {
|
|
1078
|
+
const S = (E = t.flats) == null ? void 0 : E.find(
|
|
974
1079
|
(D) => {
|
|
975
|
-
var
|
|
976
|
-
return (D == null ? void 0 : D.id) === ((
|
|
1080
|
+
var C;
|
|
1081
|
+
return (D == null ? void 0 : D.id) === ((C = _.value) == null ? void 0 : C.id);
|
|
977
1082
|
}
|
|
978
1083
|
);
|
|
979
|
-
|
|
980
|
-
} else if (((
|
|
981
|
-
const
|
|
1084
|
+
y.value = S ?? null;
|
|
1085
|
+
} else if (((m = _.value) == null ? void 0 : m.type) === "tooltip") {
|
|
1086
|
+
const S = (k = t.actions) == null ? void 0 : k.find(
|
|
982
1087
|
(D) => {
|
|
983
|
-
var
|
|
984
|
-
return (D == null ? void 0 : D.id) === ((
|
|
1088
|
+
var C;
|
|
1089
|
+
return (D == null ? void 0 : D.id) === ((C = _.value) == null ? void 0 : C.id);
|
|
985
1090
|
}
|
|
986
1091
|
);
|
|
987
|
-
|
|
1092
|
+
y.value = S ?? null;
|
|
988
1093
|
} else
|
|
989
|
-
|
|
1094
|
+
y.value = null;
|
|
990
1095
|
} else
|
|
991
|
-
|
|
1096
|
+
_.value = null;
|
|
992
1097
|
}
|
|
993
1098
|
), watch(
|
|
994
|
-
() =>
|
|
1099
|
+
() => i == null ? void 0 : i.value,
|
|
995
1100
|
() => {
|
|
996
|
-
|
|
1101
|
+
i != null && i.value || (h.value = null, _.value = null);
|
|
997
1102
|
}
|
|
998
1103
|
), watch(
|
|
999
1104
|
() => x.value,
|
|
1000
1105
|
() => {
|
|
1001
1106
|
var d;
|
|
1002
|
-
const
|
|
1003
|
-
(
|
|
1107
|
+
const n = (d = t.floors) == null ? void 0 : d.find(
|
|
1108
|
+
(g) => (g == null ? void 0 : g.id) === (x == null ? void 0 : x.value)
|
|
1004
1109
|
);
|
|
1005
|
-
|
|
1110
|
+
n != null && n.conf || (n && r("changeComponent", "floor", n), setTimeout(() => {
|
|
1006
1111
|
a();
|
|
1007
1112
|
}, 0));
|
|
1008
1113
|
}
|
|
1009
1114
|
), onMounted(() => {
|
|
1010
|
-
var
|
|
1011
|
-
|
|
1012
|
-
(
|
|
1013
|
-
var $,
|
|
1014
|
-
return (
|
|
1115
|
+
var n, d, g;
|
|
1116
|
+
w.value = (n = t.blocks) == null ? void 0 : n.find(
|
|
1117
|
+
(u) => {
|
|
1118
|
+
var $, E;
|
|
1119
|
+
return (u == null ? void 0 : u.id) === ((E = ($ = t.floor) == null ? void 0 : $.block_id) == null ? void 0 : E.toString());
|
|
1015
1120
|
}
|
|
1016
|
-
), x.value = (
|
|
1017
|
-
(
|
|
1121
|
+
), x.value = (g = (d = v.value) == null ? void 0 : d.find(
|
|
1122
|
+
(u) => {
|
|
1018
1123
|
var $;
|
|
1019
|
-
return (
|
|
1124
|
+
return (u == null ? void 0 : u.value) == (($ = t.floor) == null ? void 0 : $.id);
|
|
1020
1125
|
}
|
|
1021
|
-
)) == null ? void 0 :
|
|
1022
|
-
}), (
|
|
1023
|
-
|
|
1126
|
+
)) == null ? void 0 : g.value, a(), document.addEventListener("mousemove", c);
|
|
1127
|
+
}), onUnmounted(() => {
|
|
1128
|
+
document.removeEventListener("mousemove", c);
|
|
1129
|
+
}), (n, d) => {
|
|
1130
|
+
var g;
|
|
1024
1131
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
1025
|
-
hoverdData:
|
|
1026
|
-
type: (
|
|
1027
|
-
onMouseover: c
|
|
1132
|
+
hoverdData: y.value,
|
|
1133
|
+
type: (g = _.value) == null ? void 0 : g.type
|
|
1028
1134
|
}, {
|
|
1029
1135
|
header: withCtx(() => [
|
|
1030
|
-
createVNode(_sfc_main$c, { onClick:
|
|
1136
|
+
createVNode(_sfc_main$c, { onClick: f }),
|
|
1031
1137
|
createElementVNode("div", _hoisted_1$8, [
|
|
1032
1138
|
createVNode(_sfc_main$e, {
|
|
1033
1139
|
modelValue: x.value,
|
|
1034
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1140
|
+
"onUpdate:modelValue": d[0] || (d[0] = (u) => x.value = u),
|
|
1035
1141
|
data: v.value
|
|
1036
1142
|
}, null, 8, ["modelValue", "data"])
|
|
1037
1143
|
])
|
|
1038
1144
|
]),
|
|
1039
1145
|
default: withCtx(() => {
|
|
1040
|
-
var
|
|
1146
|
+
var u, $, E;
|
|
1041
1147
|
return [
|
|
1042
1148
|
createElementVNode("div", _hoisted_2$4, [
|
|
1043
1149
|
createElementVNode("img", {
|
|
1044
|
-
src: ((
|
|
1150
|
+
src: ((E = ($ = (u = n.floor) == null ? void 0 : u.floor_image) == null ? void 0 : $[0]) == null ? void 0 : E.url) || "",
|
|
1045
1151
|
alt: "",
|
|
1046
1152
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1047
1153
|
}, null, 8, _hoisted_3$4),
|
|
1048
1154
|
(openBlock(), createElementBlock("div", {
|
|
1049
1155
|
ref_key: "svgRef",
|
|
1050
|
-
ref:
|
|
1051
|
-
innerHTML:
|
|
1052
|
-
key:
|
|
1156
|
+
ref: s,
|
|
1157
|
+
innerHTML: b.value,
|
|
1158
|
+
key: b.value,
|
|
1053
1159
|
class: "canvas ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full [&_g[conf=reserved]_path]:ire-fill-[var(--reserved-color)] [&_g[conf=sold]_path]:ire-fill-[var(--sold-color)] [&_path]:ire-cursor-pointer [&_path]:ire-fill-[var(--path-color)] [&_path]:!ire-transition-all hover:[&_path]:ire-fill-[var(--path-hover-color)] [&_svg]:ire-h-full [&_svg]:ire-w-full",
|
|
1054
|
-
onClick:
|
|
1160
|
+
onClick: p
|
|
1055
1161
|
}, null, 8, _hoisted_4$3))
|
|
1056
1162
|
])
|
|
1057
1163
|
];
|
|
@@ -1067,7 +1173,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
|
|
|
1067
1173
|
fill: "none",
|
|
1068
1174
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1069
1175
|
};
|
|
1070
|
-
function _sfc_render$2(
|
|
1176
|
+
function _sfc_render$2(e, o) {
|
|
1071
1177
|
return openBlock(), createElementBlock("svg", _hoisted_1$7, o[0] || (o[0] = [
|
|
1072
1178
|
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)
|
|
1073
1179
|
]));
|
|
@@ -1079,7 +1185,7 @@ const FlatIcon = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_rende
|
|
|
1079
1185
|
fill: "none",
|
|
1080
1186
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1081
1187
|
};
|
|
1082
|
-
function _sfc_render$1(
|
|
1188
|
+
function _sfc_render$1(e, o) {
|
|
1083
1189
|
return openBlock(), createElementBlock("svg", _hoisted_1$6, o[0] || (o[0] = [
|
|
1084
1190
|
createElementVNode("path", {
|
|
1085
1191
|
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",
|
|
@@ -1104,7 +1210,7 @@ function _sfc_render$1(t, o) {
|
|
|
1104
1210
|
const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]]), _hoisted_1$5 = { class: "ire-flex ire-flex-col ire-items-start ire-justify-center lg:ire-flex-row" }, _hoisted_2$3 = { class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-justify-center ire-bg-gray-50 ire-p-4 lg:ire-w-auto [&_img]:ire-rounded-none" }, _hoisted_3$3 = ["src"], _hoisted_4$2 = ["src"], _hoisted_5 = { class: "ire-mt-5 ire-flex ire-flex-col ire-items-center ire-gap-3 lg:ire-flex-row" }, _hoisted_6 = { class: "ire-flex ire-w-fit ire-items-center ire-gap-1 ire-border-gray-400 ire-p-1" }, _hoisted_7 = {
|
|
1105
1211
|
key: 0,
|
|
1106
1212
|
class: "ire-ml-4 ire-flex ire-items-center ire-gap-1"
|
|
1107
|
-
}, _hoisted_8 = ["onClick"], _hoisted_9 = { class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3 ire-px-16 ire-py-
|
|
1213
|
+
}, _hoisted_8 = ["onClick"], _hoisted_9 = { class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3 ire-px-16 ire-py-4 lg:ire-w-auto" }, _hoisted_10 = { class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b ire-border-solid ire-border-b-gray-200 ire-py-2" }, _hoisted_11 = { class: "!ire-text-2xl ire-font-medium ire-capitalize" }, _hoisted_12 = { class: "!ire-text-xs ire-capitalize ire-text-gray-600" }, _hoisted_13 = {
|
|
1108
1214
|
key: 0,
|
|
1109
1215
|
class: "ire-text-center"
|
|
1110
1216
|
}, _hoisted_14 = { class: "!ire-text-lg ire-font-medium" }, _hoisted_15 = { class: "ire-mt-1 ire-text-gray-600" }, _hoisted_16 = { class: "ire-flex ire-items-center ire-gap-3" }, _hoisted_17 = {
|
|
@@ -1132,144 +1238,139 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1132
1238
|
floors: {}
|
|
1133
1239
|
},
|
|
1134
1240
|
emits: ["changeComponent"],
|
|
1135
|
-
setup(
|
|
1136
|
-
const
|
|
1137
|
-
var
|
|
1138
|
-
const i =
|
|
1241
|
+
setup(e) {
|
|
1242
|
+
const o = e, r = ref(!1), t = ref(0), l = computed$1(() => {
|
|
1243
|
+
var s, h, _, y, x, w;
|
|
1244
|
+
const i = r.value ? (_ = (h = (s = o.flat) == null ? void 0 : s.type) == null ? void 0 : h.image_2d) == null ? void 0 : _.length : (w = (x = (y = o.flat) == null ? void 0 : y.type) == null ? void 0 : x.image_3d) == null ? void 0 : w.length;
|
|
1139
1245
|
return ["I", "II", "III"].slice(0, i);
|
|
1140
1246
|
});
|
|
1141
1247
|
return watch(
|
|
1142
|
-
() =>
|
|
1248
|
+
() => r.value,
|
|
1143
1249
|
() => {
|
|
1144
|
-
|
|
1250
|
+
t.value = 0;
|
|
1145
1251
|
}
|
|
1146
1252
|
), onMounted(() => {
|
|
1147
|
-
var i,
|
|
1148
|
-
Object.keys(((
|
|
1149
|
-
}), (i,
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
onClick: u[0] || (u[0] = (j) => e.value = !1)
|
|
1182
|
-
}, [
|
|
1183
|
-
createElementVNode("div", null, [
|
|
1184
|
-
createVNode(Cube, {
|
|
1185
|
-
class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !e.value }])
|
|
1186
|
-
}, null, 8, ["class"])
|
|
1187
|
-
]),
|
|
1188
|
-
createElementVNode("div", {
|
|
1189
|
-
class: normalizeClass(["group-hover:!ire-text-white", {
|
|
1190
|
-
"!ire-text-white": !e.value,
|
|
1191
|
-
"!ire-text-black": e.value
|
|
1192
|
-
}])
|
|
1193
|
-
}, toDisplayString(unref(tr)("3d plan")), 3)
|
|
1194
|
-
], 2)) : createCommentVNode("", !0),
|
|
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", {
|
|
1196
|
-
key: 1,
|
|
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 }]),
|
|
1198
|
-
onClick: u[1] || (u[1] = (j) => e.value = !0)
|
|
1199
|
-
}, [
|
|
1200
|
-
createVNode(FlatIcon, {
|
|
1201
|
-
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": e.value }])
|
|
1202
|
-
}, null, 8, ["class"]),
|
|
1203
|
-
createElementVNode("div", {
|
|
1204
|
-
class: normalizeClass(["group-hover:!ire-text-white", {
|
|
1205
|
-
"!ire-text-white": e.value,
|
|
1206
|
-
"!ire-text-black": !e.value
|
|
1207
|
-
}])
|
|
1208
|
-
}, toDisplayString(unref(tr)("2d plan")), 3)
|
|
1209
|
-
], 2)) : createCommentVNode("", !0)
|
|
1210
|
-
]),
|
|
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,
|
|
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", {
|
|
1215
|
-
"ire-bg-black ire-text-white": s.value === M
|
|
1216
|
-
}]),
|
|
1217
|
-
onClick: (L) => s.value = M
|
|
1218
|
-
}, toDisplayString(j), 11, _hoisted_8))), 128))
|
|
1219
|
-
])) : createCommentVNode("", !0)
|
|
1220
|
-
])
|
|
1221
|
-
]),
|
|
1222
|
-
createElementVNode("div", _hoisted_9, [
|
|
1223
|
-
createElementVNode("div", _hoisted_10, [
|
|
1224
|
-
createElementVNode("div", _hoisted_11, toDisplayString((m = i.flat) == null ? void 0 : m.flat_number), 1),
|
|
1225
|
-
createElementVNode("div", _hoisted_12, toDisplayString(unref(tr)("apartment")), 1)
|
|
1226
|
-
]),
|
|
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),
|
|
1229
|
-
createElementVNode("div", _hoisted_15, toDisplayString((g = (f = i.flat) == null ? void 0 : f.type) == null ? void 0 : g.teaser), 1)
|
|
1230
|
-
])) : createCommentVNode("", !0),
|
|
1231
|
-
createElementVNode("div", _hoisted_16, [
|
|
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),
|
|
1234
|
-
createElementVNode("div", _hoisted_19, toDisplayString(unref(tr)("floor")), 1)
|
|
1235
|
-
])) : createCommentVNode("", !0),
|
|
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),
|
|
1238
|
-
createElementVNode("div", _hoisted_22, toDisplayString(unref(tr)("room")), 1)
|
|
1239
|
-
])) : createCommentVNode("", !0)
|
|
1240
|
-
]),
|
|
1241
|
-
(R = (T = i.flat) == null ? void 0 : T.type) != null && R.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
1242
|
-
createElementVNode("div", _hoisted_24, [
|
|
1243
|
-
createTextVNode(toDisplayString(Number((B = i.flat) == null ? void 0 : B.type.area_m2).toLocaleString("fr-FR")) + " ", 1),
|
|
1244
|
-
u[2] || (u[2] = createElementVNode("span", null, [
|
|
1245
|
-
createTextVNode(" m "),
|
|
1246
|
-
createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
|
|
1247
|
-
], -1))
|
|
1248
|
-
]),
|
|
1249
|
-
createElementVNode("div", _hoisted_25, toDisplayString(unref(tr)("area")), 1)
|
|
1250
|
-
])) : createCommentVNode("", !0),
|
|
1251
|
-
(P = i.flat) != null && P.price ? (openBlock(), createElementBlock("div", _hoisted_26, [
|
|
1253
|
+
var i, s;
|
|
1254
|
+
Object.keys(((s = (i = o.flat) == null ? void 0 : i.type) == null ? void 0 : s.image_3d) || {}).length || (r.value = !0);
|
|
1255
|
+
}), (i, s) => {
|
|
1256
|
+
var h, _, y, x, w, b, v, c, p, a, f, n, d, g, u, $, E, m, k, V, S, D, C, B, M, R, N, P, O, A, F;
|
|
1257
|
+
return openBlock(), createElementBlock("div", null, [
|
|
1258
|
+
createElementVNode("div", _hoisted_1$5, [
|
|
1259
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
1260
|
+
createVNode(Transition, {
|
|
1261
|
+
name: "ire-fade-in-out",
|
|
1262
|
+
mode: "out-in"
|
|
1263
|
+
}, {
|
|
1264
|
+
default: withCtx(() => {
|
|
1265
|
+
var j, T, L, I, H, z, W, K, Y, U, X, q, Z, J, Q, G, ee, te, oe, re, ie, se, le, ne;
|
|
1266
|
+
return [
|
|
1267
|
+
r.value && ((I = (L = (T = (j = i.flat) == null ? void 0 : j.type) == null ? void 0 : T.image_2d) == null ? void 0 : L[t.value]) != null && I.url) ? (openBlock(), createElementBlock("img", {
|
|
1268
|
+
key: (K = (W = (z = (H = i.flat) == null ? void 0 : H.type) == null ? void 0 : z.image_2d) == null ? void 0 : W[t.value]) == null ? void 0 : K.url,
|
|
1269
|
+
src: (q = (X = (U = (Y = i.flat) == null ? void 0 : Y.type) == null ? void 0 : U.image_2d) == null ? void 0 : X[t.value]) == null ? void 0 : q.url,
|
|
1270
|
+
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-[30rem]"
|
|
1271
|
+
}, null, 8, _hoisted_3$3)) : (G = (Q = (J = (Z = i.flat) == null ? void 0 : Z.type) == null ? void 0 : J.image_3d) == null ? void 0 : Q[t.value]) != null && G.url ? (openBlock(), createElementBlock("img", {
|
|
1272
|
+
src: (re = (oe = (te = (ee = i.flat) == null ? void 0 : ee.type) == null ? void 0 : te.image_3d) == null ? void 0 : oe[t.value]) == null ? void 0 : re.url,
|
|
1273
|
+
key: (ne = (le = (se = (ie = i.flat) == null ? void 0 : ie.type) == null ? void 0 : se.image_3d) == null ? void 0 : le[t.value]) == null ? void 0 : ne.url,
|
|
1274
|
+
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-[30rem]"
|
|
1275
|
+
}, null, 8, _hoisted_4$2)) : createCommentVNode("", !0)
|
|
1276
|
+
];
|
|
1277
|
+
}),
|
|
1278
|
+
_: 1
|
|
1279
|
+
}),
|
|
1280
|
+
createElementVNode("div", _hoisted_5, [
|
|
1281
|
+
createElementVNode("div", _hoisted_6, [
|
|
1282
|
+
(x = (y = (_ = (h = i.flat) == null ? void 0 : h.type) == null ? void 0 : _.image_3d) == null ? void 0 : y[0]) != null && x.url ? (openBlock(), createElementBlock("div", {
|
|
1283
|
+
key: 0,
|
|
1284
|
+
class: normalizeClass(["ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-2 ire-rounded-lg ire-p-3 !ire-text-xs ire-transition-all hover:ire-bg-primary", { "!ire-bg-primary !ire-text-white": !r.value }]),
|
|
1285
|
+
onClick: s[0] || (s[0] = (j) => r.value = !1)
|
|
1286
|
+
}, [
|
|
1252
1287
|
createElementVNode("div", null, [
|
|
1253
|
-
(
|
|
1254
|
-
|
|
1255
|
-
|
|
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)
|
|
1258
|
-
])
|
|
1259
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
1260
|
-
createTextVNode(toDisplayString(Number((A = i.flat) == null ? void 0 : A.price).toLocaleString("fr-FR")) + " ", 1),
|
|
1261
|
-
createElementVNode("span", null, toDisplayString(unref(tr)("$")), 1)
|
|
1262
|
-
]))
|
|
1288
|
+
createVNode(Cube, {
|
|
1289
|
+
class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !r.value }])
|
|
1290
|
+
}, null, 8, ["class"])
|
|
1263
1291
|
]),
|
|
1264
|
-
createElementVNode("div",
|
|
1265
|
-
|
|
1266
|
-
|
|
1292
|
+
createElementVNode("div", {
|
|
1293
|
+
class: normalizeClass(["group-hover:!ire-text-white", {
|
|
1294
|
+
"!ire-text-white": !r.value,
|
|
1295
|
+
"!ire-text-black": r.value
|
|
1296
|
+
}])
|
|
1297
|
+
}, toDisplayString(unref(tr)("3d plan")), 3)
|
|
1298
|
+
], 2)) : createCommentVNode("", !0),
|
|
1299
|
+
(c = (v = (b = (w = i.flat) == null ? void 0 : w.type) == null ? void 0 : b.image_2d) == null ? void 0 : v[0]) != null && c.url ? (openBlock(), createElementBlock("div", {
|
|
1300
|
+
key: 1,
|
|
1301
|
+
class: normalizeClass(["ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-2 ire-rounded-lg ire-p-3 !ire-text-xs ire-transition-all hover:ire-bg-primary", { "!ire-bg-primary !ire-text-white": r.value }]),
|
|
1302
|
+
onClick: s[1] || (s[1] = (j) => r.value = !0)
|
|
1303
|
+
}, [
|
|
1304
|
+
createVNode(FlatIcon, {
|
|
1305
|
+
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": r.value }])
|
|
1306
|
+
}, null, 8, ["class"]),
|
|
1307
|
+
createElementVNode("div", {
|
|
1308
|
+
class: normalizeClass(["group-hover:!ire-text-white", {
|
|
1309
|
+
"!ire-text-white": r.value,
|
|
1310
|
+
"!ire-text-black": !r.value
|
|
1311
|
+
}])
|
|
1312
|
+
}, toDisplayString(unref(tr)("2d plan")), 3)
|
|
1313
|
+
], 2)) : createCommentVNode("", !0)
|
|
1314
|
+
]),
|
|
1315
|
+
((p = l.value) == null ? void 0 : p.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
1316
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(l.value, (j, T) => (openBlock(), createElementBlock("div", {
|
|
1317
|
+
key: j,
|
|
1318
|
+
class: normalizeClass(["ire-flex ire-h-10 ire-w-10 ire-cursor-pointer ire-items-center ire-justify-center ire-rounded-lg ire-p-2 ire-transition-all hover:ire-bg-black hover:ire-text-white", {
|
|
1319
|
+
"ire-bg-black ire-text-white": t.value === T
|
|
1320
|
+
}]),
|
|
1321
|
+
onClick: (L) => t.value = T
|
|
1322
|
+
}, toDisplayString(j), 11, _hoisted_8))), 128))
|
|
1323
|
+
])) : createCommentVNode("", !0)
|
|
1267
1324
|
])
|
|
1268
|
-
]
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1325
|
+
]),
|
|
1326
|
+
createElementVNode("div", _hoisted_9, [
|
|
1327
|
+
createElementVNode("div", _hoisted_10, [
|
|
1328
|
+
createElementVNode("div", _hoisted_11, toDisplayString((a = i.flat) == null ? void 0 : a.flat_number), 1),
|
|
1329
|
+
createElementVNode("div", _hoisted_12, toDisplayString(unref(tr)("apartment")), 1)
|
|
1330
|
+
]),
|
|
1331
|
+
(n = (f = i.flat) == null ? void 0 : f.type) != null && n.title || (g = (d = i.flat) == null ? void 0 : d.type) != null && g.teaser ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
1332
|
+
createElementVNode("div", _hoisted_14, toDisplayString(($ = (u = i.flat) == null ? void 0 : u.type) == null ? void 0 : $.title), 1),
|
|
1333
|
+
createElementVNode("div", _hoisted_15, toDisplayString((m = (E = i.flat) == null ? void 0 : E.type) == null ? void 0 : m.teaser), 1)
|
|
1334
|
+
])) : createCommentVNode("", !0),
|
|
1335
|
+
createElementVNode("div", _hoisted_16, [
|
|
1336
|
+
(k = i.flat) != null && k.floor_number ? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
1337
|
+
createElementVNode("div", _hoisted_18, toDisplayString((V = i.flat) == null ? void 0 : V.floor_number), 1),
|
|
1338
|
+
createElementVNode("div", _hoisted_19, toDisplayString(unref(tr)("floor")), 1)
|
|
1339
|
+
])) : createCommentVNode("", !0),
|
|
1340
|
+
(D = (S = i.flat) == null ? void 0 : S.type) != null && D.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_20, [
|
|
1341
|
+
createElementVNode("div", _hoisted_21, toDisplayString((C = i.flat) == null ? void 0 : C.type.rooms_count), 1),
|
|
1342
|
+
createElementVNode("div", _hoisted_22, toDisplayString(unref(tr)("room")), 1)
|
|
1343
|
+
])) : createCommentVNode("", !0)
|
|
1344
|
+
]),
|
|
1345
|
+
(M = (B = i.flat) == null ? void 0 : B.type) != null && M.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
1346
|
+
createElementVNode("div", _hoisted_24, [
|
|
1347
|
+
createTextVNode(toDisplayString(Number((R = i.flat) == null ? void 0 : R.type.area_m2).toLocaleString("fr-FR")) + " ", 1),
|
|
1348
|
+
s[2] || (s[2] = createElementVNode("span", null, [
|
|
1349
|
+
createTextVNode(" m "),
|
|
1350
|
+
createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
|
|
1351
|
+
], -1))
|
|
1352
|
+
]),
|
|
1353
|
+
createElementVNode("div", _hoisted_25, toDisplayString(unref(tr)("area")), 1)
|
|
1354
|
+
])) : createCommentVNode("", !0),
|
|
1355
|
+
(N = i.flat) != null && N.price ? (openBlock(), createElementBlock("div", _hoisted_26, [
|
|
1356
|
+
createElementVNode("div", null, [
|
|
1357
|
+
(P = i.flat) != null && P.offer_price ? (openBlock(), createElementBlock("div", _hoisted_28, [
|
|
1358
|
+
createElementVNode("div", _hoisted_29, toDisplayString(Number((A = i.flat) == null ? void 0 : A.price).toLocaleString("fr-FR")), 1),
|
|
1359
|
+
createElementVNode("div", _hoisted_30, [
|
|
1360
|
+
createTextVNode(toDisplayString(Number((F = i.flat) == null ? void 0 : F.offer_price).toLocaleString("fr-FR")) + " ", 1),
|
|
1361
|
+
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
1362
|
+
])
|
|
1363
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
1364
|
+
createTextVNode(toDisplayString(Number((O = i.flat) == null ? void 0 : O.price).toLocaleString("fr-FR")) + " ", 1),
|
|
1365
|
+
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
1366
|
+
]))
|
|
1367
|
+
]),
|
|
1368
|
+
createElementVNode("div", _hoisted_31, toDisplayString(unref(tr)("price")), 1)
|
|
1369
|
+
])) : createCommentVNode("", !0)
|
|
1370
|
+
])
|
|
1371
|
+
])
|
|
1372
|
+
]);
|
|
1373
|
+
};
|
|
1273
1374
|
}
|
|
1274
1375
|
}), _sfc_main$7 = {}, _hoisted_1$4 = {
|
|
1275
1376
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1279,35 +1380,37 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1279
1380
|
height: "20",
|
|
1280
1381
|
viewBox: "0 0 50 50"
|
|
1281
1382
|
};
|
|
1282
|
-
function _sfc_render(
|
|
1383
|
+
function _sfc_render(e, o) {
|
|
1283
1384
|
return openBlock(), createElementBlock("svg", _hoisted_1$4, o[0] || (o[0] = [
|
|
1284
1385
|
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)
|
|
1285
1386
|
]));
|
|
1286
1387
|
}
|
|
1287
|
-
const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]), _hoisted_1$3 = { 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-
|
|
1388
|
+
const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]), _hoisted_1$3 = { 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-min-w-full ire-max-w-[1280px] ire-cursor-default ire-rounded-lg ire-bg-white lg:ire-min-w-[500px]" }, _hoisted_3$2 = { class: "ire-absolute ire-right-0 ire-top-0 ire-flex ire-w-full ire-flex-row-reverse" }, _hoisted_4$1 = { class: "ire-h-fit ire-max-h-[95svh] ire-overflow-y-auto" }, _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
1288
1389
|
__name: "PreviewModal",
|
|
1289
1390
|
emits: ["close"],
|
|
1290
|
-
setup(
|
|
1391
|
+
setup(e) {
|
|
1291
1392
|
return onMounted(() => {
|
|
1292
1393
|
const o = window.innerWidth - document.documentElement.clientWidth;
|
|
1293
1394
|
document.body.style.overflow = "hidden", document.body.style.paddingRight = `${o}px`;
|
|
1294
1395
|
}), onUnmounted(() => {
|
|
1295
|
-
|
|
1396
|
+
setTimeout(() => {
|
|
1397
|
+
document.body.style.overflow = "auto", document.body.style.paddingRight = "0";
|
|
1398
|
+
}, 500);
|
|
1296
1399
|
}), (o, r) => (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
1297
1400
|
createElementVNode("div", {
|
|
1298
1401
|
class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full ire-bg-black/40 ire-transition-all",
|
|
1299
|
-
onClick: r[0] || (r[0] = (
|
|
1402
|
+
onClick: r[0] || (r[0] = (t) => o.$emit("close"))
|
|
1300
1403
|
}),
|
|
1301
1404
|
createElementVNode("div", _hoisted_2$2, [
|
|
1302
1405
|
createElementVNode("div", _hoisted_3$2, [
|
|
1303
|
-
createElementVNode("div",
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1406
|
+
createElementVNode("div", {
|
|
1407
|
+
class: "ire-z-[999] ire-mx-3 ire-my-2 ire-w-fit ire-cursor-pointer ire-rounded-full ire-bg-white 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",
|
|
1408
|
+
onClick: r[1] || (r[1] = (t) => o.$emit("close"))
|
|
1409
|
+
}, [
|
|
1410
|
+
createVNode(Close)
|
|
1411
|
+
])
|
|
1412
|
+
]),
|
|
1413
|
+
createElementVNode("div", _hoisted_4$1, [
|
|
1311
1414
|
renderSlot(o.$slots, "default")
|
|
1312
1415
|
])
|
|
1313
1416
|
])
|
|
@@ -1318,7 +1421,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1318
1421
|
props: {
|
|
1319
1422
|
editor: {}
|
|
1320
1423
|
},
|
|
1321
|
-
setup(
|
|
1424
|
+
setup(e) {
|
|
1322
1425
|
return (o, r) => (openBlock(), createElementBlock("div", {
|
|
1323
1426
|
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",
|
|
1324
1427
|
innerHTML: o.editor
|
|
@@ -1329,17 +1432,17 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1329
1432
|
props: {
|
|
1330
1433
|
modalData: {}
|
|
1331
1434
|
},
|
|
1332
|
-
setup(
|
|
1435
|
+
setup(e) {
|
|
1333
1436
|
return (o, r) => {
|
|
1334
|
-
var
|
|
1437
|
+
var t, l, i, s, h, _, y, x, w, b, v, c;
|
|
1335
1438
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
1336
|
-
createElementVNode("p", _hoisted_2$1, toDisplayString((
|
|
1439
|
+
createElementVNode("p", _hoisted_2$1, toDisplayString((l = (t = o.modalData) == null ? void 0 : t.modalObject) == null ? void 0 : l.title), 1),
|
|
1337
1440
|
createVNode(_sfc_main$5, {
|
|
1338
|
-
editor: (
|
|
1441
|
+
editor: (s = (i = o.modalData) == null ? void 0 : i.modalObject) == null ? void 0 : s.description
|
|
1339
1442
|
}, null, 8, ["editor"]),
|
|
1340
|
-
(x = (
|
|
1443
|
+
(x = (y = (_ = (h = o.modalData) == null ? void 0 : h.modalObject) == null ? void 0 : _.modalImage) == null ? void 0 : y[0]) != null && x.url ? (openBlock(), createElementBlock("img", {
|
|
1341
1444
|
key: 0,
|
|
1342
|
-
src: (c = (v = (
|
|
1445
|
+
src: (c = (v = (b = (w = o.modalData) == null ? void 0 : w.modalObject) == null ? void 0 : b.modalImage) == null ? void 0 : v[0]) == null ? void 0 : c.url,
|
|
1343
1446
|
alt: "",
|
|
1344
1447
|
class: "ire-mt-5 ire-h-[400px] ire-w-full ire-object-contain"
|
|
1345
1448
|
}, null, 8, _hoisted_3$1)) : createCommentVNode("", !0)
|
|
@@ -1355,105 +1458,108 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1355
1458
|
actions: {}
|
|
1356
1459
|
},
|
|
1357
1460
|
emits: ["changeComponent"],
|
|
1358
|
-
setup(
|
|
1359
|
-
const r = o,
|
|
1461
|
+
setup(e, { emit: o }) {
|
|
1462
|
+
const r = o, t = e, l = useGlobalStore(), i = inject("showFlatModal"), s = ref(), h = ref(null), _ = ref(), y = ref(), x = computed$1(() => {
|
|
1360
1463
|
var v, c;
|
|
1361
|
-
if ((v =
|
|
1362
|
-
return (c =
|
|
1363
|
-
}),
|
|
1464
|
+
if ((v = t.block) != null && v.svg)
|
|
1465
|
+
return (c = t.block) == null ? void 0 : c.svg;
|
|
1466
|
+
}), w = (v) => {
|
|
1364
1467
|
const c = v.target;
|
|
1365
|
-
c && (
|
|
1366
|
-
},
|
|
1367
|
-
var
|
|
1468
|
+
c && (h.value = c);
|
|
1469
|
+
}, b = (v) => {
|
|
1470
|
+
var p, a, f;
|
|
1368
1471
|
const c = v.target;
|
|
1369
|
-
(c == null ? void 0 : c.nodeName) === "path" && (((
|
|
1472
|
+
(c == null ? void 0 : c.nodeName) === "path" && (((p = y.value) == null ? void 0 : p.conf) === "sold" || ((a = y.value) == null ? void 0 : a.conf) === "reserved" || r(
|
|
1370
1473
|
"changeComponent",
|
|
1371
|
-
((
|
|
1372
|
-
|
|
1474
|
+
((f = _.value) == null ? void 0 : f.type) || "",
|
|
1475
|
+
y.value
|
|
1373
1476
|
));
|
|
1374
1477
|
};
|
|
1375
1478
|
return watch(
|
|
1376
|
-
() =>
|
|
1479
|
+
() => i == null ? void 0 : i.value,
|
|
1377
1480
|
() => {
|
|
1378
|
-
|
|
1481
|
+
i != null && i.value || (h.value = null, _.value = null);
|
|
1379
1482
|
}
|
|
1380
1483
|
), watch(
|
|
1381
|
-
() =>
|
|
1484
|
+
() => h.value,
|
|
1382
1485
|
(v) => {
|
|
1383
|
-
var
|
|
1486
|
+
var p, a, f, n, d, g, u, $;
|
|
1384
1487
|
if (!v) return;
|
|
1385
|
-
|
|
1488
|
+
l.hoverdSvg = v;
|
|
1386
1489
|
const c = v == null ? void 0 : v.parentElement;
|
|
1387
1490
|
if (c && (c == null ? void 0 : c.nodeName) === "g") {
|
|
1388
|
-
const
|
|
1389
|
-
if (!
|
|
1390
|
-
if (((
|
|
1391
|
-
const
|
|
1392
|
-
(
|
|
1393
|
-
var
|
|
1394
|
-
return (
|
|
1491
|
+
const E = c == null ? void 0 : c.getAttribute("id");
|
|
1492
|
+
if (!E || (_.value = ((a = (p = t.block) == null ? void 0 : p.polygon_data) == null ? void 0 : a.find((m) => (m == null ? void 0 : m.key) === E)) || null, !_.value)) return;
|
|
1493
|
+
if (((f = _.value) == null ? void 0 : f.type) === "floor") {
|
|
1494
|
+
const m = (n = t.floors) == null ? void 0 : n.find(
|
|
1495
|
+
(k) => {
|
|
1496
|
+
var V;
|
|
1497
|
+
return (k == null ? void 0 : k.id) === ((V = _.value) == null ? void 0 : V.id);
|
|
1395
1498
|
}
|
|
1396
1499
|
);
|
|
1397
|
-
|
|
1398
|
-
} else if (((d =
|
|
1399
|
-
const
|
|
1400
|
-
(
|
|
1401
|
-
var
|
|
1402
|
-
return (
|
|
1500
|
+
y.value = m;
|
|
1501
|
+
} else if (((d = _.value) == null ? void 0 : d.type) === "flat") {
|
|
1502
|
+
const m = (g = t.flats) == null ? void 0 : g.find(
|
|
1503
|
+
(k) => {
|
|
1504
|
+
var V;
|
|
1505
|
+
return (k == null ? void 0 : k.id) === ((V = _.value) == null ? void 0 : V.id);
|
|
1403
1506
|
}
|
|
1404
1507
|
);
|
|
1405
|
-
|
|
1406
|
-
} else if (((
|
|
1407
|
-
const
|
|
1408
|
-
(
|
|
1409
|
-
var
|
|
1410
|
-
return (
|
|
1508
|
+
y.value = m;
|
|
1509
|
+
} else if (((u = _.value) == null ? void 0 : u.type) === "tooltip") {
|
|
1510
|
+
const m = ($ = t.actions) == null ? void 0 : $.find(
|
|
1511
|
+
(k) => {
|
|
1512
|
+
var V;
|
|
1513
|
+
return (k == null ? void 0 : k.id) === ((V = _.value) == null ? void 0 : V.id);
|
|
1411
1514
|
}
|
|
1412
1515
|
);
|
|
1413
|
-
|
|
1516
|
+
y.value = m;
|
|
1414
1517
|
} else
|
|
1415
|
-
|
|
1518
|
+
y.value = null;
|
|
1416
1519
|
} else
|
|
1417
|
-
|
|
1520
|
+
_.value = null, y.value = null;
|
|
1418
1521
|
}
|
|
1419
|
-
), (
|
|
1420
|
-
|
|
1522
|
+
), onMounted(() => {
|
|
1523
|
+
document.addEventListener("mousemove", w);
|
|
1524
|
+
}), onUnmounted(() => {
|
|
1525
|
+
document.removeEventListener("mousemove", w);
|
|
1526
|
+
}), (v, c) => {
|
|
1527
|
+
var p;
|
|
1421
1528
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
1422
|
-
hoverdData:
|
|
1423
|
-
type: (
|
|
1424
|
-
onMouseover: C
|
|
1529
|
+
hoverdData: y.value,
|
|
1530
|
+
type: (p = _.value) == null ? void 0 : p.type
|
|
1425
1531
|
}, {
|
|
1426
1532
|
header: withCtx(() => {
|
|
1427
1533
|
var a;
|
|
1428
1534
|
return [
|
|
1429
1535
|
createVNode(_sfc_main$c, {
|
|
1430
|
-
onClick: c[0] || (c[0] = (
|
|
1536
|
+
onClick: c[0] || (c[0] = (f) => v.$emit("changeComponent", "project", null))
|
|
1431
1537
|
}),
|
|
1432
1538
|
createElementVNode("p", _hoisted_1, toDisplayString((a = v.block) == null ? void 0 : a.title), 1)
|
|
1433
1539
|
];
|
|
1434
1540
|
}),
|
|
1435
1541
|
default: withCtx(() => {
|
|
1436
|
-
var a,
|
|
1542
|
+
var a, f, n, d, g, u;
|
|
1437
1543
|
return [
|
|
1438
1544
|
createElementVNode("div", _hoisted_2, [
|
|
1439
1545
|
createElementVNode("img", {
|
|
1440
|
-
src: ((
|
|
1546
|
+
src: ((n = (f = (a = v.block) == null ? void 0 : a.block_image) == null ? void 0 : f[0]) == null ? void 0 : n.url) || "",
|
|
1441
1547
|
alt: "",
|
|
1442
1548
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1443
1549
|
}, null, 8, _hoisted_3),
|
|
1444
1550
|
(openBlock(), createElementBlock("div", {
|
|
1445
1551
|
ref_key: "svgRef",
|
|
1446
|
-
ref:
|
|
1552
|
+
ref: s,
|
|
1447
1553
|
innerHTML: x.value,
|
|
1448
1554
|
key: x.value,
|
|
1449
1555
|
class: normalizeClass(["canvas ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full [&_path]:ire-cursor-pointer [&_path]:ire-fill-[var(--path-color)] [&_path]:ire-transition-all [&_svg]:ire-h-full [&_svg]:ire-w-full", [
|
|
1450
1556
|
{
|
|
1451
|
-
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((d =
|
|
1452
|
-
"hover:[&_path]:ire-fill-[var(--sold-color)]": ((
|
|
1453
|
-
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((
|
|
1557
|
+
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((d = y.value) == null ? void 0 : d.conf) === "reserved",
|
|
1558
|
+
"hover:[&_path]:ire-fill-[var(--sold-color)]": ((g = y.value) == null ? void 0 : g.conf) === "sold",
|
|
1559
|
+
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((u = y.value) != null && u.conf)
|
|
1454
1560
|
}
|
|
1455
1561
|
]]),
|
|
1456
|
-
onClick:
|
|
1562
|
+
onClick: b
|
|
1457
1563
|
}, null, 10, _hoisted_4))
|
|
1458
1564
|
])
|
|
1459
1565
|
];
|
|
@@ -1464,32 +1570,32 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1464
1570
|
}
|
|
1465
1571
|
}), _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1466
1572
|
__name: "MouseTracker",
|
|
1467
|
-
setup(
|
|
1468
|
-
const o = useGlobalStore(), r = ref(!0),
|
|
1469
|
-
let
|
|
1470
|
-
const
|
|
1471
|
-
if (
|
|
1472
|
-
const
|
|
1473
|
-
|
|
1573
|
+
setup(e) {
|
|
1574
|
+
const o = useGlobalStore(), r = ref(!0), t = ref(-400), l = ref(-400), i = ref(null);
|
|
1575
|
+
let s = null, h = 0, _ = 0;
|
|
1576
|
+
const y = (b, v, c) => b * (1 - c) + v * c, x = () => {
|
|
1577
|
+
if (s) return;
|
|
1578
|
+
const b = () => {
|
|
1579
|
+
t.value = y(t.value, h, 0.06), l.value = y(l.value, _, 0.06), Math.abs(t.value - h) > 0.06 || Math.abs(l.value - _) > 0.06 ? s = requestAnimationFrame(b) : s = null;
|
|
1474
1580
|
};
|
|
1475
|
-
|
|
1476
|
-
},
|
|
1581
|
+
s = requestAnimationFrame(b);
|
|
1582
|
+
}, w = (b) => {
|
|
1477
1583
|
var $;
|
|
1478
1584
|
const v = document.querySelector(".tooltip-2"), c = (($ = o.hoverdSvg) == null ? void 0 : $.nodeName) === "path" ? o.hoverdSvg : null;
|
|
1479
|
-
if (!
|
|
1585
|
+
if (!i.value || !v || !c)
|
|
1480
1586
|
return;
|
|
1481
|
-
const
|
|
1482
|
-
|
|
1587
|
+
const p = i.value.getBoundingClientRect(), a = c.getBoundingClientRect(), f = v.getBoundingClientRect(), n = p.left + p.width / 2, d = p.top + p.height / 2, g = a.left > n, u = a.bottom > d;
|
|
1588
|
+
h = b.clientX - p.left - (g ? f.width : -20), _ = b.clientY - p.top - (u ? f.height : -20), r.value && (t.value = h, l.value = _), x(), r.value = !1;
|
|
1483
1589
|
};
|
|
1484
1590
|
return onMounted(() => {
|
|
1485
|
-
document.addEventListener("mousemove",
|
|
1591
|
+
document.addEventListener("mousemove", w);
|
|
1486
1592
|
}), onUnmounted(() => {
|
|
1487
|
-
document.removeEventListener("mousemove",
|
|
1488
|
-
}), provide("mouseX",
|
|
1593
|
+
document.removeEventListener("mousemove", w), s && cancelAnimationFrame(s);
|
|
1594
|
+
}), provide("mouseX", t), provide("mouseY", l), (b, v) => (openBlock(), createElementBlock("div", {
|
|
1489
1595
|
ref_key: "canvasRef",
|
|
1490
|
-
ref:
|
|
1596
|
+
ref: i
|
|
1491
1597
|
}, [
|
|
1492
|
-
renderSlot(
|
|
1598
|
+
renderSlot(b.$slots, "default")
|
|
1493
1599
|
], 512));
|
|
1494
1600
|
}
|
|
1495
1601
|
}), _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
@@ -1498,24 +1604,24 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1498
1604
|
shortcodeDataProps: {}
|
|
1499
1605
|
},
|
|
1500
1606
|
setup(__props) {
|
|
1501
|
-
var
|
|
1607
|
+
var e, o, r, t, l, i, s, h, _, y, x, w, b, v;
|
|
1502
1608
|
const props = __props, getMeta = (c) => props.shortcodeDataProps.meta.find(
|
|
1503
|
-
(
|
|
1609
|
+
(p) => p.meta_key === c
|
|
1504
1610
|
), constants = ref({
|
|
1505
|
-
PREVIEW_PATH_COLOR: ((
|
|
1611
|
+
PREVIEW_PATH_COLOR: ((e = getMeta("path_color")) == null ? void 0 : e.meta_value) || "rgba(255, 255, 255, 0.3)",
|
|
1506
1612
|
PREVIEW_PATH_HOVER_COLOR: ((o = getMeta("path_hover_color")) == null ? void 0 : o.meta_value) || "rgba(250, 250, 250, 0.54)",
|
|
1507
1613
|
PREVIEW_RESERVED_COLOR: ((r = getMeta("reserved_color")) == null ? void 0 : r.meta_value) || "rgba(255, 247, 89, 0.53)",
|
|
1508
|
-
PREVIEW_SOLD_COLOR: ((
|
|
1509
|
-
PREVIEW_STROKE_COLOR: ((
|
|
1510
|
-
PREVIEW_STROKE_WIDTH: +((
|
|
1511
|
-
PREVIEW_BORDER_RADIUS: +((
|
|
1614
|
+
PREVIEW_SOLD_COLOR: ((t = getMeta("sold_color")) == null ? void 0 : t.meta_value) || "rgba(219, 64, 64, 0.45)",
|
|
1615
|
+
PREVIEW_STROKE_COLOR: ((l = getMeta("stroke_color")) == null ? void 0 : l.meta_value) || "rgba(0, 0, 0, 1)",
|
|
1616
|
+
PREVIEW_STROKE_WIDTH: +((i = getMeta("stroke_width")) == null ? void 0 : i.meta_value) || 1,
|
|
1617
|
+
PREVIEW_BORDER_RADIUS: +((s = getMeta("border_radius")) == null ? void 0 : s.meta_value) || 0
|
|
1512
1618
|
}), colors = reactive({
|
|
1513
|
-
path: (
|
|
1514
|
-
path_hover: (
|
|
1515
|
-
reserved: (
|
|
1619
|
+
path: (h = constants.value) == null ? void 0 : h.PREVIEW_PATH_COLOR,
|
|
1620
|
+
path_hover: (_ = constants.value) == null ? void 0 : _.PREVIEW_PATH_HOVER_COLOR,
|
|
1621
|
+
reserved: (y = constants.value) == null ? void 0 : y.PREVIEW_RESERVED_COLOR,
|
|
1516
1622
|
sold: (x = constants.value) == null ? void 0 : x.PREVIEW_SOLD_COLOR,
|
|
1517
|
-
stroke_color: (
|
|
1518
|
-
stroke_width: (
|
|
1623
|
+
stroke_color: (w = constants.value) == null ? void 0 : w.PREVIEW_STROKE_COLOR,
|
|
1624
|
+
stroke_width: (b = constants.value) == null ? void 0 : b.PREVIEW_STROKE_WIDTH,
|
|
1519
1625
|
border_radius: (v = constants.value) == null ? void 0 : v.PREVIEW_BORDER_RADIUS
|
|
1520
1626
|
}), cssVariables = computed$1(() => ({
|
|
1521
1627
|
"--reserved-color": colors.reserved,
|
|
@@ -1532,26 +1638,26 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1532
1638
|
if (shortcodeData.value)
|
|
1533
1639
|
return (c = shortcodeData.value) == null ? void 0 : c.project;
|
|
1534
1640
|
}), floors = computed$1(() => {
|
|
1535
|
-
var c,
|
|
1641
|
+
var c, p;
|
|
1536
1642
|
if (shortcodeData.value)
|
|
1537
1643
|
return (c = shortcodeData.value.floors) == null || c.forEach((a) => {
|
|
1538
|
-
var d,
|
|
1539
|
-
const
|
|
1644
|
+
var d, g;
|
|
1645
|
+
const f = (g = (d = shortcodeData.value) == null ? void 0 : d.flats) == null ? void 0 : g.filter((u) => {
|
|
1540
1646
|
var $;
|
|
1541
|
-
return (
|
|
1542
|
-
(
|
|
1543
|
-
var
|
|
1544
|
-
return
|
|
1647
|
+
return (u == null ? void 0 : u.floor_number) !== (($ = a == null ? void 0 : a.floor_number) == null ? void 0 : $.toString()) ? !1 : a != null && a.polygon_data ? Object == null ? void 0 : Object.values(a == null ? void 0 : a.polygon_data).some(
|
|
1648
|
+
(m) => {
|
|
1649
|
+
var k;
|
|
1650
|
+
return m != null && m.type && (m == null ? void 0 : m.type) === "flat" && (m == null ? void 0 : m.id) === (u == null ? void 0 : u.id) ? a != null && a.block_id ? (u == null ? void 0 : u.block_id) === ((k = a == null ? void 0 : a.block_id) == null ? void 0 : k.toString()) : !(u != null && u.block_id) : !1;
|
|
1545
1651
|
}
|
|
1546
1652
|
) : !1;
|
|
1547
1653
|
});
|
|
1548
|
-
a.flats =
|
|
1549
|
-
const { conf:
|
|
1550
|
-
if (
|
|
1551
|
-
const
|
|
1552
|
-
|
|
1654
|
+
a.flats = f;
|
|
1655
|
+
const { conf: n } = a || {};
|
|
1656
|
+
if (f != null && f.length && !n) {
|
|
1657
|
+
const u = f == null ? void 0 : f.every((E) => (E == null ? void 0 : E.conf) === "reserved"), $ = f == null ? void 0 : f.every((E) => (E == null ? void 0 : E.conf) === "sold");
|
|
1658
|
+
u ? a.conf = "reserved" : $ && (a.conf = "sold");
|
|
1553
1659
|
}
|
|
1554
|
-
}), (
|
|
1660
|
+
}), (p = shortcodeData.value) == null ? void 0 : p.floors;
|
|
1555
1661
|
}), blocks = computed$1(() => {
|
|
1556
1662
|
if (shortcodeData.value)
|
|
1557
1663
|
return shortcodeData.value.blocks;
|
|
@@ -1559,13 +1665,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1559
1665
|
if (shortcodeData.value)
|
|
1560
1666
|
return shortcodeData.value.types;
|
|
1561
1667
|
}), flats = computed$1(() => {
|
|
1562
|
-
var c,
|
|
1668
|
+
var c, p;
|
|
1563
1669
|
if (shortcodeData.value)
|
|
1564
|
-
return (
|
|
1565
|
-
var
|
|
1670
|
+
return (p = (c = shortcodeData.value) == null ? void 0 : c.flats) == null ? void 0 : p.map((a) => {
|
|
1671
|
+
var f;
|
|
1566
1672
|
if (a != null && a.use_type || !(a != null && a.type)) {
|
|
1567
|
-
const
|
|
1568
|
-
|
|
1673
|
+
const n = (f = types.value) == null ? void 0 : f.find((d) => (d == null ? void 0 : d.id) === (a == null ? void 0 : a.type_id));
|
|
1674
|
+
n && (a.type = n);
|
|
1569
1675
|
}
|
|
1570
1676
|
return a;
|
|
1571
1677
|
});
|
|
@@ -1578,8 +1684,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1578
1684
|
if (shortcodeData.value)
|
|
1579
1685
|
return (c = shortcodeData.value) == null ? void 0 : c.meta;
|
|
1580
1686
|
}), getColorMeta = (c) => {
|
|
1581
|
-
var
|
|
1582
|
-
return (a = (
|
|
1687
|
+
var p, a;
|
|
1688
|
+
return (a = (p = projectMeta.value) == null ? void 0 : p.find((f) => (f == null ? void 0 : f.meta_key) === c)) == null ? void 0 : a.meta_value;
|
|
1583
1689
|
}, changeRoute = (flowType, polygonItem) => {
|
|
1584
1690
|
switch (flowType) {
|
|
1585
1691
|
case "project":
|
|
@@ -1615,10 +1721,10 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1615
1721
|
return watch(
|
|
1616
1722
|
() => projectMeta.value,
|
|
1617
1723
|
() => {
|
|
1618
|
-
const c = getColorMeta("path_color"),
|
|
1619
|
-
c && (colors.path = c.toString()),
|
|
1724
|
+
const c = getColorMeta("path_color"), p = getColorMeta("path_hover_color"), a = getColorMeta("reserved_color"), f = getColorMeta("sold_color"), n = getColorMeta("stroke_color"), d = getColorMeta("stroke_width");
|
|
1725
|
+
c && (colors.path = c.toString()), p && (colors.path_hover = p.toString()), a && (colors.reserved = a.toString()), f && (colors.sold = f.toString()), n && (colors.stroke_color = n.toString()), d && (colors.stroke_width = Number(d));
|
|
1620
1726
|
}
|
|
1621
|
-
), provide("showFlatModal", showFlatModal), (c,
|
|
1727
|
+
), provide("showFlatModal", showFlatModal), provide("showFlatModal", showFlatModal), (c, p) => (openBlock(), createBlock(_sfc_main$2, { class: "interactive-real-estate" }, {
|
|
1622
1728
|
default: withCtx(() => [
|
|
1623
1729
|
createVNode(Transition, {
|
|
1624
1730
|
name: "ire-fade-in-out",
|
|
@@ -1637,14 +1743,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1637
1743
|
projectMeta: projectMeta.value,
|
|
1638
1744
|
blocks: blocks.value,
|
|
1639
1745
|
actions: actions.value,
|
|
1640
|
-
onChangeComponent:
|
|
1746
|
+
onChangeComponent: p[0] || (p[0] = (a, f) => changeRoute(a, f))
|
|
1641
1747
|
}, null, 8, ["project", "floors", "flats", "projectMeta", "blocks", "actions"])) : flow.value === "blockFlow" && flats.value && floors.value && blocks.value && activeBlock.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
1642
1748
|
key: 1,
|
|
1643
1749
|
block: activeBlock.value,
|
|
1644
1750
|
flats: flats.value,
|
|
1645
1751
|
floors: floors.value,
|
|
1646
1752
|
actions: actions.value,
|
|
1647
|
-
onChangeComponent:
|
|
1753
|
+
onChangeComponent: p[1] || (p[1] = (a, f) => changeRoute(a, f))
|
|
1648
1754
|
}, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$b, {
|
|
1649
1755
|
key: 2,
|
|
1650
1756
|
flats: flats.value,
|
|
@@ -1652,7 +1758,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1652
1758
|
floors: floors.value,
|
|
1653
1759
|
blocks: blocks.value,
|
|
1654
1760
|
actions: actions.value,
|
|
1655
|
-
onChangeComponent:
|
|
1761
|
+
onChangeComponent: p[2] || (p[2] = (a, f) => changeRoute(a, f))
|
|
1656
1762
|
}, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : createCommentVNode("", !0)
|
|
1657
1763
|
], 4)) : createCommentVNode("", !0)
|
|
1658
1764
|
]),
|
|
@@ -1666,13 +1772,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1666
1772
|
default: withCtx(() => [
|
|
1667
1773
|
showFlatModal.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
1668
1774
|
key: 0,
|
|
1669
|
-
onClose:
|
|
1775
|
+
onClose: p[4] || (p[4] = (a) => showFlatModal.value = !1)
|
|
1670
1776
|
}, {
|
|
1671
1777
|
default: withCtx(() => [
|
|
1672
1778
|
createVNode(_sfc_main$8, {
|
|
1673
1779
|
flat: hoveredData.value,
|
|
1674
1780
|
floors: floors.value,
|
|
1675
|
-
onChangeComponent:
|
|
1781
|
+
onChangeComponent: p[3] || (p[3] = (a, f) => changeRoute(a, f))
|
|
1676
1782
|
}, null, 8, ["flat", "floors"])
|
|
1677
1783
|
]),
|
|
1678
1784
|
_: 1
|
|
@@ -1689,7 +1795,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1689
1795
|
default: withCtx(() => [
|
|
1690
1796
|
showModal.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
1691
1797
|
key: 0,
|
|
1692
|
-
onClose:
|
|
1798
|
+
onClose: p[5] || (p[5] = (a) => showModal.value = !1)
|
|
1693
1799
|
}, {
|
|
1694
1800
|
default: withCtx(() => [
|
|
1695
1801
|
createVNode(_sfc_main$4, { modalData: hoveredData.value }, null, 8, ["modalData"])
|
|
@@ -1710,9 +1816,9 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1710
1816
|
data: {},
|
|
1711
1817
|
translations: {}
|
|
1712
1818
|
},
|
|
1713
|
-
setup(
|
|
1714
|
-
const o =
|
|
1715
|
-
return provide("shortcodeData", o.data), provide("translations", o.translations), (r,
|
|
1819
|
+
setup(e) {
|
|
1820
|
+
const o = e;
|
|
1821
|
+
return provide("shortcodeData", o.data), provide("translations", o.translations), (r, t) => (openBlock(), createElementBlock("div", null, [
|
|
1716
1822
|
createVNode(_sfc_main$1, { "shortcode-data-props": r.data }, null, 8, ["shortcode-data-props"])
|
|
1717
1823
|
]));
|
|
1718
1824
|
}
|