ire-preview 2.3.7 → 2.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.es.js
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, s] of o)
|
|
5
|
+
r[t] = s;
|
|
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 s =
|
|
70
|
-
|
|
66
|
+
function cleanupDeps(e) {
|
|
67
|
+
let o, r = e.depsTail, t = r;
|
|
68
|
+
for (; t; ) {
|
|
69
|
+
const s = t.prevDep;
|
|
70
|
+
t.version === -1 ? (t === r && (r = s), removeSub(t), removeDep(t)) : o = t, t.dep.activeLink = t.prevActiveLink, t.prevActiveLink = void 0, t = s;
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
e.deps = o, e.depsTail = r;
|
|
73
73
|
}
|
|
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 s =
|
|
94
|
-
(o.version === 0 || hasChanged(s,
|
|
92
|
+
prepareDeps(e);
|
|
93
|
+
const s = e.fn(e._value);
|
|
94
|
+
(o.version === 0 || hasChanged(s, e._value)) && (e._value = s, o.version++);
|
|
95
95
|
} catch (s) {
|
|
96
96
|
throw o.version++, s;
|
|
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: s } = e;
|
|
103
|
+
if (t && (t.nextSub = s, e.prevSub = void 0), s && (s.prevSub = t, e.nextSub = void 0), r.subs === e && (r.subs = t, !t && r.computed)) {
|
|
104
104
|
r.computed.flags &= -5;
|
|
105
|
-
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,111 +181,182 @@ 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, s;
|
|
186
|
+
return isFunction(e) ? t = e : (t = e.get, s = e.set), new ComputedRefImpl(t, s, 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, s, 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 = ((s = (t = o == null ? void 0 : o.meta) == null ? void 0 : t.find((l) => l.meta_key === "currency")) == null ? void 0 : s.meta_value) || "usd";
|
|
261
|
+
return ((i = e.find((l) => l.value === r)) == null ? void 0 : i.symbol) || "$";
|
|
262
|
+
}, getPrice = (e) => Number(e).toLocaleString("fr-FR"), _hoisted_1$g = {
|
|
192
263
|
key: 0,
|
|
193
|
-
class: "ire-pointer-events-none ire-absolute !ire-bottom-10 !ire-right-10 ire-w-fit ire-select-none ire-rounded-lg ire-border ire-bg-white ire-p-4"
|
|
264
|
+
class: "irep-tooltip-1 ire-pointer-events-none ire-absolute !ire-bottom-10 !ire-right-10 ire-w-fit ire-select-none ire-rounded-lg ire-border ire-bg-white ire-p-4"
|
|
194
265
|
}, _hoisted_2$a = {
|
|
195
266
|
key: 0,
|
|
196
|
-
class: "ire-flex ire-items-center ire-gap-3"
|
|
197
|
-
}, _hoisted_3$9 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$7 = { class: "!ire-text-2xl" }, _hoisted_5$3 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_6$3 = {
|
|
267
|
+
class: "irep-tooltip-1__floor ire-flex ire-items-center ire-gap-3"
|
|
268
|
+
}, _hoisted_3$9 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$7 = { class: "irep-tooltip-1__floor-number !ire-text-2xl" }, _hoisted_5$3 = { class: "irep-tooltip-1__floor-text !ire-text-sm ire-uppercase" }, _hoisted_6$3 = {
|
|
198
269
|
key: 0,
|
|
199
270
|
class: "ire-rounded-lg ire-bg-gray-100 ire-p-6"
|
|
200
271
|
}, _hoisted_7$3 = {
|
|
201
272
|
key: 0,
|
|
202
|
-
class: "!ire-text-2xl"
|
|
273
|
+
class: "irep-tooltip-1__floor-conf !ire-text-2xl"
|
|
203
274
|
}, _hoisted_8$3 = { key: 1 }, _hoisted_9$3 = {
|
|
204
275
|
key: 0,
|
|
205
|
-
class: "ire-flex ire-items-center ire-gap-2"
|
|
206
|
-
}, _hoisted_10$3 = { class: "ire-min-w-3 !ire-text-2xl" }, _hoisted_11$3 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_12$3 = {
|
|
276
|
+
class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
|
|
277
|
+
}, _hoisted_10$3 = { class: "irep-tooltip-1__floor-status-value ire-min-w-3 !ire-text-2xl" }, _hoisted_11$3 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_12$3 = {
|
|
207
278
|
key: 1,
|
|
208
|
-
class: "ire-flex ire-items-center ire-gap-2"
|
|
209
|
-
}, _hoisted_13$2 = { class: "min-w-3 !ire-text-2xl" }, _hoisted_14$2 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_15$2 = {
|
|
279
|
+
class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
|
|
280
|
+
}, _hoisted_13$2 = { class: "irep-tooltip-1__floor-status-value min-w-3 !ire-text-2xl" }, _hoisted_14$2 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_15$2 = {
|
|
210
281
|
key: 2,
|
|
211
|
-
class: "ire-flex ire-items-center ire-gap-2"
|
|
212
|
-
}, _hoisted_16$
|
|
282
|
+
class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
|
|
283
|
+
}, _hoisted_16$2 = { class: "irep-tooltip-1__floor-status-value ire-min-w-3 !ire-text-2xl" }, _hoisted_17$2 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_18$2 = {
|
|
213
284
|
key: 1,
|
|
214
|
-
class: "ire-flex ire-items-center ire-gap-3"
|
|
215
|
-
}, _hoisted_19$
|
|
285
|
+
class: "irep-tooltip-1__block ire-flex ire-items-center ire-gap-3"
|
|
286
|
+
}, _hoisted_19$2 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_20$2 = { class: "irep-tooltip-1__block-conf text-sm ire-text-gray-700" }, _hoisted_21$2 = { class: "irep-tooltip-1__block-title !text-2xl" }, _hoisted_22$2 = {
|
|
216
287
|
key: 2,
|
|
217
|
-
class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
|
|
218
|
-
}, _hoisted_23$
|
|
288
|
+
class: "irep-tooltip-1__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
|
|
289
|
+
}, _hoisted_23$2 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_24$2 = { class: "irep-tooltip-1__flat-number !ire-text-2xl ire-capitalize" }, _hoisted_25$2 = { class: "irep-tooltip-1__flat-aptitle !ire-mt-2 !ire-text-xs ire-uppercase" }, _hoisted_26$1 = { class: "ire-flex ire-min-w-36 ire-flex-col ire-items-center ire-rounded-lg ire-bg-gray-100 ire-px-7 ire-py-3" }, _hoisted_27$1 = {
|
|
219
290
|
key: 0,
|
|
220
|
-
class: "!ire-text-2xl ire-uppercase"
|
|
221
|
-
}, _hoisted_28$1 = { class: "!ire-text-xs ire-uppercase ire-text-gray-500" }, _hoisted_29$1 = {
|
|
291
|
+
class: "irep-tooltip-1__flat-conf !ire-text-2xl ire-uppercase"
|
|
292
|
+
}, _hoisted_28$1 = { class: "irep-tooltip-1__flat-price !ire-text-xs ire-uppercase ire-text-gray-500" }, _hoisted_29$1 = {
|
|
222
293
|
key: 0,
|
|
223
294
|
class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-py-2"
|
|
224
295
|
}, _hoisted_30$1 = {
|
|
225
296
|
key: 0,
|
|
226
|
-
class: "ire-whitespace-nowrap !ire-text-2xl"
|
|
227
|
-
}, _hoisted_31$1 = { key: 1 }, _hoisted_32 = { class: "!ire-text-xs ire-line-through" }, _hoisted_33 = { class: "ire-whitespace-nowrap !ire-text-2xl" }, _hoisted_34 = { class: "ire-border ire-border-solid ire-border-gray-800 ire-p-2" }, _hoisted_35 = { class: "ire-translate-x-3 ire-bg-white" }, _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
297
|
+
class: "irep-tooltip-1__flat-price-value ire-whitespace-nowrap !ire-text-2xl"
|
|
298
|
+
}, _hoisted_31$1 = { key: 1 }, _hoisted_32 = { class: "irep-tooltip-1__flat-price-line-value !ire-text-xs ire-line-through" }, _hoisted_33 = { class: "irep-tooltip-1__flat-price-value ire-whitespace-nowrap !ire-text-2xl" }, _hoisted_34 = { class: "ire-border ire-border-solid ire-border-gray-800 ire-p-2" }, _hoisted_35 = { class: "irep-tooltip-1__flat-area ire-translate-x-3 ire-bg-white" }, _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
228
299
|
__name: "Tooltip_1",
|
|
229
300
|
props: {
|
|
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, s) => (openBlock(), createElementBlock("div", null, [
|
|
239
310
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
240
311
|
default: withCtx(() => {
|
|
241
|
-
var
|
|
312
|
+
var i, l, f, v, y, E, w, b, _, c, p, a, h, n, d, g, u, $, x, 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
|
+
(l = t.hoveredData) != null && l.conf || (v = (f = t.hoveredData) == null ? void 0 : f.flats) != null && v.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
|
-
(
|
|
252
|
-
createElementVNode("div", _hoisted_10$3, toDisplayString(((
|
|
322
|
+
(E = (y = t.hoveredData) == null ? void 0 : y.counts) != null && E.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 = (
|
|
256
|
-
createElementVNode("div", _hoisted_13$2, toDisplayString((a = (
|
|
326
|
+
(c = (_ = t.hoveredData) == null ? void 0 : _.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 = (h = t.hoveredData) == null ? void 0 : h.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
|
-
])) :
|
|
266
|
-
createElementVNode("div", _hoisted_19$
|
|
267
|
-
createElementVNode("span", _hoisted_20$
|
|
268
|
-
createElementVNode("div", _hoisted_21$
|
|
336
|
+
])) : t.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_18$2, [
|
|
337
|
+
createElementVNode("div", _hoisted_19$2, [
|
|
338
|
+
createElementVNode("span", _hoisted_20$2, toDisplayString(r.value), 1),
|
|
339
|
+
createElementVNode("div", _hoisted_21$2, toDisplayString((u = t.hoveredData) == null ? void 0 : u.title), 1)
|
|
269
340
|
])
|
|
270
|
-
])) :
|
|
271
|
-
createElementVNode("div", _hoisted_23$
|
|
272
|
-
createElementVNode("div", _hoisted_24$
|
|
273
|
-
createElementVNode("div", _hoisted_25$
|
|
341
|
+
])) : t.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_22$2, [
|
|
342
|
+
createElementVNode("div", _hoisted_23$2, [
|
|
343
|
+
createElementVNode("div", _hoisted_24$2, toDisplayString(($ = t.hoveredData) == null ? void 0 : $.flat_number), 1),
|
|
344
|
+
createElementVNode("div", _hoisted_25$2, toDisplayString(unref(tr)("apartment")), 1)
|
|
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
|
+
(x = t.hoveredData) != null && x.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,9 +364,7 @@ const tr = (t) => {
|
|
|
293
364
|
]),
|
|
294
365
|
createElementVNode("div", _hoisted_34, [
|
|
295
366
|
createElementVNode("div", _hoisted_35, [
|
|
296
|
-
createTextVNode(toDisplayString((
|
|
297
|
-
(D = (E = e.hoveredData) == null ? void 0 : E.type) == null ? void 0 : D.area_m2
|
|
298
|
-
)) == null ? void 0 : V.toLocaleString("fr-FR")) + " m", 1),
|
|
367
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((D = (S = t.hoveredData) == null ? void 0 : S.type) == null ? void 0 : D.area_m2))) + " m", 1),
|
|
299
368
|
s[0] || (s[0] = createElementVNode("sup", { class: "ire-bg-white !ire-text-xs" }, " 2 ", -1))
|
|
300
369
|
])
|
|
301
370
|
])
|
|
@@ -307,110 +376,137 @@ const tr = (t) => {
|
|
|
307
376
|
})
|
|
308
377
|
]));
|
|
309
378
|
}
|
|
310
|
-
}), _hoisted_1$f = {
|
|
379
|
+
}), _hoisted_1$f = {
|
|
311
380
|
key: 0,
|
|
312
|
-
class: "ire-flex ire-flex-col ire-items-center !ire-text-sm"
|
|
313
|
-
}, _hoisted_3$8 = { class: "ire-capitalize" }, _hoisted_4$6 = {
|
|
381
|
+
class: "irep-tooltip-2__floor ire-flex ire-flex-col ire-items-center !ire-text-sm"
|
|
382
|
+
}, _hoisted_2$9 = { class: "ire-flex ire-w-full ire-items-center ire-justify-evenly ire-p-4" }, _hoisted_3$8 = { class: "irep-tooltip-2__floor-number ire-text-3xl ire-capitalize" }, _hoisted_4$6 = {
|
|
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: "irep-tooltip-2__floor-conf ire-text-2xl ire-uppercase"
|
|
385
|
+
}, _hoisted_5$2 = { key: 1 }, _hoisted_6$2 = { class: "irep-tooltip-2__floor-starting ire-text-xs ire-text-gray-400" }, _hoisted_7$2 = { class: "irep-tooltip-2__floor-price" }, _hoisted_8$2 = { class: "ire-right-[2px] !ire-text-sm ire-text-gray-200" }, _hoisted_9$2 = { class: "ire-flex ire-items-center ire-justify-between ire-gap-2 ire-bg-gray-800 ire-p-2 [&_p]:ire-text-xs [&_p_span]:ire-mr-1" }, _hoisted_10$2 = { class: "irep-tooltip-2__floor-status" }, _hoisted_11$2 = { class: "irep-tooltip-2__floor-status" }, _hoisted_12$2 = { class: "irep-tooltip-2__floor-status" }, _hoisted_13$1 = {
|
|
320
386
|
key: 1,
|
|
321
|
-
class: "ire-flex ire-items-center ire-gap-3 !ire-text-sm"
|
|
322
|
-
},
|
|
387
|
+
class: "irep-tooltip-2__block p-4 ire-flex ire-items-center ire-gap-3 !ire-text-sm"
|
|
388
|
+
}, _hoisted_14$1 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_15$1 = { class: "irep-tooltip-2__block-title" }, _hoisted_16$1 = { class: "irep-tooltip-2__block-conf ire-text-gray-300 ire-opacity-80" }, _hoisted_17$1 = {
|
|
323
389
|
key: 2,
|
|
324
|
-
class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-1"
|
|
325
|
-
},
|
|
390
|
+
class: "irep-tooltip-2__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-1"
|
|
391
|
+
}, _hoisted_18$1 = { class: "gap-4 ire-flex ire-items-center ire-p-4" }, _hoisted_19$1 = { class: "irep-tooltip-2__flat-number ire-max-w-28 ire-text-sm ire-capitalize" }, _hoisted_20$1 = {
|
|
326
392
|
key: 0,
|
|
327
|
-
class: "
|
|
328
|
-
},
|
|
393
|
+
class: "irep-tooltip-2__flat-conf ire-text-sm ire-uppercase"
|
|
394
|
+
}, _hoisted_21$1 = {
|
|
329
395
|
key: 1,
|
|
330
|
-
class: "ire-flex ire-
|
|
331
|
-
},
|
|
396
|
+
class: "ire-flex ire-flex-col ire-gap-2"
|
|
397
|
+
}, _hoisted_22$1 = { class: "irep-tooltip-2__flat-price" }, _hoisted_23$1 = { class: "ire-right-[2px] !ire-text-sm ire-text-gray-200" }, _hoisted_24$1 = { class: "irep-tooltip-2__flat-area" }, _hoisted_25$1 = { class: "ire-right-[2px] !ire-text-sm ire-text-gray-200" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
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"), s = computed$1(() => {
|
|
406
|
+
var i;
|
|
407
|
+
return tr((i = o.hoveredData) == null ? void 0 : i.conf);
|
|
341
408
|
});
|
|
342
|
-
return (
|
|
409
|
+
return (i, l) => (openBlock(), createBlock(Transition, { name: "ire-fade-in-out" }, {
|
|
343
410
|
default: withCtx(() => {
|
|
344
|
-
var
|
|
411
|
+
var f, v, y, E, w, b, _, c, p, a, h, 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(["irep-tooltip irep-tooltip-2 ire-flex ire-origin-top ire-items-center ire-justify-center ire-bg-black ire-text-white ire-transition-transform ire-duration-500 ire-ease-in-out", { "": i.mouseTrack }])
|
|
427
|
+
}, [
|
|
428
|
+
i.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
429
|
+
createElementVNode("div", _hoisted_2$9, [
|
|
430
|
+
createElementVNode("div", _hoisted_3$8, toDisplayString((f = i.hoveredData) == null ? void 0 : f.floor_number), 1),
|
|
431
|
+
l[0] || (l[0] = createElementVNode("span", null, "|", -1)),
|
|
432
|
+
s.value ? (openBlock(), createElementBlock("div", _hoisted_4$6, toDisplayString(s.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
433
|
+
createElementVNode("div", _hoisted_6$2, toDisplayString(unref(tr)("starting from")) + ": ", 1),
|
|
434
|
+
createElementVNode("div", _hoisted_7$2, [
|
|
435
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((y = (v = i.hoveredData) == null ? void 0 : v.counts) == null ? void 0 : y.minimum_price) || 0)) + " ", 1),
|
|
436
|
+
createElementVNode("span", _hoisted_8$2, toDisplayString(unref(currencySymbol)()), 1)
|
|
437
|
+
])
|
|
438
|
+
]))
|
|
358
439
|
]),
|
|
359
|
-
|
|
360
|
-
createElementVNode("
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
createElementVNode("div",
|
|
366
|
-
|
|
440
|
+
createElementVNode("div", _hoisted_9$2, [
|
|
441
|
+
createElementVNode("div", _hoisted_10$2, [
|
|
442
|
+
createElementVNode("span", null, toDisplayString(s.value ? 0 : ((w = (E = i.hoveredData) == null ? void 0 : E.counts) == null ? void 0 : w.available) || 0), 1),
|
|
443
|
+
createTextVNode(" " + toDisplayString(unref(tr)("available")), 1)
|
|
444
|
+
]),
|
|
445
|
+
l[1] || (l[1] = createElementVNode("span", null, "•", -1)),
|
|
446
|
+
createElementVNode("div", _hoisted_11$2, [
|
|
447
|
+
createElementVNode("span", null, toDisplayString(s.value ? 0 : ((_ = (b = i.hoveredData) == null ? void 0 : b.counts) == null ? void 0 : _.sold) || 0), 1),
|
|
448
|
+
createTextVNode(" " + toDisplayString(unref(tr)("sold")), 1)
|
|
449
|
+
]),
|
|
450
|
+
l[2] || (l[2] = createElementVNode("span", null, "•", -1)),
|
|
451
|
+
createElementVNode("div", _hoisted_12$2, [
|
|
452
|
+
createElementVNode("span", null, toDisplayString(s.value ? 0 : ((p = (c = i.hoveredData) == null ? void 0 : c.counts) == null ? void 0 : p.reserved) || 0), 1),
|
|
453
|
+
createTextVNode(" " + toDisplayString(unref(tr)("reserved")), 1)
|
|
454
|
+
])
|
|
367
455
|
])
|
|
368
|
-
])) :
|
|
369
|
-
createElementVNode("div",
|
|
370
|
-
|
|
371
|
-
createElementVNode("
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
456
|
+
])) : i.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
457
|
+
createElementVNode("div", _hoisted_14$1, [
|
|
458
|
+
createElementVNode("div", _hoisted_15$1, toDisplayString((a = i.hoveredData) == null ? void 0 : a.title), 1),
|
|
459
|
+
createElementVNode("span", _hoisted_16$1, toDisplayString(s.value), 1)
|
|
460
|
+
])
|
|
461
|
+
])) : i.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_17$1, [
|
|
462
|
+
createElementVNode("div", _hoisted_18$1, [
|
|
463
|
+
createElementVNode("p", _hoisted_19$1, toDisplayString((h = i.hoveredData) == null ? void 0 : h.flat_number), 1),
|
|
464
|
+
l[4] || (l[4] = createElementVNode("span", null, "|", -1)),
|
|
465
|
+
s.value ? (openBlock(), createElementBlock("div", _hoisted_20$1, toDisplayString(s.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_21$1, [
|
|
466
|
+
createElementVNode("div", null, [
|
|
467
|
+
createElementVNode("div", _hoisted_22$1, [
|
|
468
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((n = i.hoveredData) == null ? void 0 : n.price))) + " ", 1),
|
|
469
|
+
createElementVNode("span", _hoisted_23$1, toDisplayString(unref(currencySymbol)()), 1)
|
|
470
|
+
])
|
|
471
|
+
]),
|
|
472
|
+
createElementVNode("div", _hoisted_24$1, [
|
|
473
|
+
createElementVNode("span", _hoisted_25$1, [
|
|
474
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((g = (d = i.hoveredData) == null ? void 0 : d.type) == null ? void 0 : g.area_m2))) + " m", 1),
|
|
475
|
+
l[3] || (l[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
|
|
390
486
|
}));
|
|
391
487
|
}
|
|
392
|
-
}), _hoisted_1$e = { class: "tooltip-
|
|
488
|
+
}), _hoisted_1$e = { class: "irep-tooltip irep-tooltip-3 ire-flex ire-w-fit ire-origin-top ire-items-center ire-justify-center ire-rounded-2xl ire-border ire-bg-white ire-p-4 ire-transition-transform ire-duration-500 ire-ease-in-out" }, _hoisted_2$8 = {
|
|
393
489
|
key: 0,
|
|
394
|
-
class: "ire-flex ire-flex-col ire-items-center ire-gap-3"
|
|
395
|
-
}, _hoisted_3$7 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$5 = { class: "!ire-text-2xl" }, _hoisted_5$1 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_6$1 = {
|
|
490
|
+
class: "irep-tooltip-3__floor ire-flex ire-flex-col ire-items-center ire-gap-3"
|
|
491
|
+
}, _hoisted_3$7 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$5 = { class: "irep-tooltip-3__floor-number !ire-text-2xl" }, _hoisted_5$1 = { class: "irep-tooltip-3__floor-text !ire-text-sm ire-uppercase" }, _hoisted_6$1 = {
|
|
396
492
|
key: 1,
|
|
397
|
-
class: "ire-flex ire-items-center ire-gap-3"
|
|
398
|
-
}, _hoisted_7$1 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_8$1 = { class: "!text-2xl" }, _hoisted_9$1 = {
|
|
493
|
+
class: "irep-tooltip-3__block ire-flex ire-items-center ire-gap-3"
|
|
494
|
+
}, _hoisted_7$1 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_8$1 = { class: "irep-tooltip-3__block-title !text-2xl" }, _hoisted_9$1 = {
|
|
399
495
|
key: 2,
|
|
400
|
-
class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
|
|
401
|
-
}, _hoisted_10$1 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_11$1 = { class: "ire-max-w-52 ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_12$1 = { class: "!ire-mt-2 !ire-text-xs ire-uppercase" }, _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
496
|
+
class: "irep-tooltip-3__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
|
|
497
|
+
}, _hoisted_10$1 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_11$1 = { class: "irep-tooltip-3__flat-number ire-max-w-52 ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_12$1 = { class: "irep-tooltip-3__flat-text !ire-mt-2 !ire-text-xs ire-uppercase" }, _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
402
498
|
__name: "Tooltip_3",
|
|
403
499
|
props: {
|
|
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, s) => (openBlock(), createBlock(Transition, { name: "ire-fade-in" }, {
|
|
410
506
|
default: withCtx(() => {
|
|
411
|
-
var
|
|
507
|
+
var i, l, f;
|
|
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((l = t.hoveredData) == null ? void 0 : l.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((f = t.hoveredData) == null ? void 0 : f.flat_number), 1),
|
|
433
529
|
createElementVNode("div", _hoisted_12$1, toDisplayString(unref(tr)("apartment")), 1)
|
|
434
530
|
])
|
|
435
531
|
])) : createCommentVNode("", !0)
|
|
@@ -449,10 +545,10 @@ 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(), s = ref(!0), i = computed$1(() => {
|
|
550
|
+
var l;
|
|
551
|
+
return ((l = o.meta.find((f) => f.meta_key === "tooltip")) == null ? void 0 : l.meta_value) || "1";
|
|
456
552
|
});
|
|
457
553
|
return watch(
|
|
458
554
|
() => r == null ? void 0 : r.value,
|
|
@@ -461,32 +557,38 @@ const tr = (t) => {
|
|
|
461
557
|
s.value = !0;
|
|
462
558
|
}, 400);
|
|
463
559
|
}
|
|
464
|
-
), (
|
|
560
|
+
), (l, f) => (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
|
+
l.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
|
|
566
|
+
renderSlot(l.$slots, "header")
|
|
471
567
|
])) : createCommentVNode("", !0),
|
|
472
|
-
renderSlot(
|
|
568
|
+
renderSlot(l.$slots, "default"),
|
|
473
569
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
474
570
|
default: withCtx(() => [
|
|
475
571
|
s.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
476
|
-
|
|
572
|
+
i.value === "2" ? (openBlock(), createBlock(_sfc_main$i, {
|
|
477
573
|
key: 0,
|
|
478
|
-
"hovered-data":
|
|
479
|
-
type:
|
|
480
|
-
|
|
481
|
-
|
|
574
|
+
"hovered-data": l.hoverdData,
|
|
575
|
+
type: l.type || "",
|
|
576
|
+
"mouse-track": !0,
|
|
577
|
+
class: "ire-hidden lg:ire-flex [&_.irep-tooltip]: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": l.hoverdData,
|
|
581
|
+
type: l.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": l.hoverdData,
|
|
586
|
+
type: l.type || "",
|
|
587
|
+
class: "ire-hidden lg:ire-flex [&_.irep-tooltip]:group-active:!ire-scale-110"
|
|
588
|
+
}, null, 8, ["hovered-data", "type"])) : (openBlock(), createBlock(_sfc_main$j, {
|
|
589
|
+
key: 3,
|
|
590
|
+
"hovered-data": l.hoverdData,
|
|
591
|
+
type: l.type || "",
|
|
490
592
|
class: "ire-hidden lg:ire-block"
|
|
491
593
|
}, null, 8, ["hovered-data", "type"]))
|
|
492
594
|
], 64)) : createCommentVNode("", !0)
|
|
@@ -502,32 +604,32 @@ 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 = [],
|
|
619
|
+
const e = effectScope(!0), o = e.run(() => ref({}));
|
|
620
|
+
let r = [], t = [];
|
|
519
621
|
const s = markRaw({
|
|
520
|
-
install(
|
|
521
|
-
setActivePinia(s), s._a =
|
|
622
|
+
install(i) {
|
|
623
|
+
setActivePinia(s), s._a = i, i.provide(piniaSymbol, s), i.config.globalProperties.$pinia = s, t.forEach((l) => r.push(l)), 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
|
});
|
|
@@ -535,183 +637,183 @@ function createPinia() {
|
|
|
535
637
|
}
|
|
536
638
|
const noop = () => {
|
|
537
639
|
};
|
|
538
|
-
function addSubscription(
|
|
539
|
-
|
|
640
|
+
function addSubscription(e, o, r, t = noop) {
|
|
641
|
+
e.push(o);
|
|
540
642
|
const s = () => {
|
|
541
|
-
const
|
|
542
|
-
|
|
643
|
+
const i = e.indexOf(o);
|
|
644
|
+
i > -1 && (e.splice(i, 1), t());
|
|
543
645
|
};
|
|
544
646
|
return !r && getCurrentScope() && onScopeDispose(s), s;
|
|
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(s) && isPlainObject(
|
|
659
|
+
const t = o[r], s = e[r];
|
|
660
|
+
isPlainObject(s) && isPlainObject(t) && e.hasOwnProperty(r) && !isRef(t) && !isReactive(t) ? e[r] = mergeReactiveObjects(s, t) : e[r] = t;
|
|
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: s, actions:
|
|
575
|
-
let
|
|
576
|
-
function
|
|
577
|
-
|
|
578
|
-
const
|
|
579
|
-
return assign(
|
|
675
|
+
function createOptionsStore(e, o, r, t) {
|
|
676
|
+
const { state: s, actions: i, getters: l } = o, f = r.state.value[e];
|
|
677
|
+
let v;
|
|
678
|
+
function y() {
|
|
679
|
+
f || (r.state.value[e] = s ? s() : {});
|
|
680
|
+
const E = toRefs(r.state.value[e]);
|
|
681
|
+
return assign(E, i, Object.keys(l || {}).reduce((w, b) => (w[b] = markRaw(computed$1(() => {
|
|
580
682
|
setActivePinia(r);
|
|
581
|
-
const
|
|
582
|
-
return
|
|
583
|
-
})),
|
|
683
|
+
const _ = r._s.get(e);
|
|
684
|
+
return l[b].call(_, _);
|
|
685
|
+
})), w), {}));
|
|
584
686
|
}
|
|
585
|
-
return
|
|
687
|
+
return v = createSetupStore(e, y, o, r, t, !0), v;
|
|
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, s, i) {
|
|
690
|
+
let l;
|
|
691
|
+
const f = assign({ actions: {} }, r), v = { deep: !0 };
|
|
692
|
+
let y, E, w = [], b = [], _;
|
|
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 = E = !1, typeof m == "function" ? (m(t.state.value[e]), k = {
|
|
597
699
|
type: MutationType.patchFunction,
|
|
598
|
-
storeId:
|
|
599
|
-
events:
|
|
600
|
-
}) : (mergeReactiveObjects(
|
|
700
|
+
storeId: e,
|
|
701
|
+
events: _
|
|
702
|
+
}) : (mergeReactiveObjects(t.state.value[e], m), k = {
|
|
601
703
|
type: MutationType.patchObject,
|
|
602
|
-
payload:
|
|
603
|
-
storeId:
|
|
604
|
-
events:
|
|
704
|
+
payload: m,
|
|
705
|
+
storeId: e,
|
|
706
|
+
events: _
|
|
605
707
|
});
|
|
606
|
-
const
|
|
708
|
+
const V = p = Symbol();
|
|
607
709
|
nextTick().then(() => {
|
|
608
|
-
|
|
609
|
-
}),
|
|
710
|
+
p === V && (y = !0);
|
|
711
|
+
}), E = !0, triggerSubscriptions(w, k, t.state.value[e]);
|
|
610
712
|
}
|
|
611
|
-
const
|
|
612
|
-
const { state:
|
|
613
|
-
this.$patch((
|
|
614
|
-
assign(
|
|
713
|
+
const h = 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
|
+
l.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: h,
|
|
760
|
+
$subscribe(m, k = {}) {
|
|
761
|
+
const V = addSubscription(w, m, k.detached, () => S()), S = l.run(() => watch(() => t.state.value[e], (D) => {
|
|
762
|
+
(k.flush === "sync" ? E : y) && m({
|
|
763
|
+
storeId: e,
|
|
662
764
|
type: MutationType.direct,
|
|
663
|
-
events:
|
|
765
|
+
events: _
|
|
664
766
|
}, D);
|
|
665
|
-
}, assign({},
|
|
666
|
-
return
|
|
767
|
+
}, assign({}, v, 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 x = (t._a && t._a.runWithContext || fallbackRunWithContext)(() => t._e.run(() => (l = effectScope()).run(() => o({ action: d }))));
|
|
774
|
+
for (const m in x) {
|
|
775
|
+
const k = x[m];
|
|
776
|
+
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
|
+
x[m] = V, f.actions[m] = k;
|
|
679
781
|
}
|
|
680
782
|
}
|
|
681
|
-
return assign(
|
|
682
|
-
get: () =>
|
|
683
|
-
set: (
|
|
684
|
-
a((
|
|
685
|
-
assign(
|
|
783
|
+
return assign(u, x), assign(toRaw(u), x), 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, l.run(() => m({
|
|
792
|
+
store: u,
|
|
793
|
+
app: t._a,
|
|
794
|
+
pinia: t,
|
|
795
|
+
options: f
|
|
694
796
|
})));
|
|
695
|
-
}), c &&
|
|
797
|
+
}), c && i && r.hydrate && r.hydrate(u.$state, c), y = !0, E = !0, u;
|
|
696
798
|
}
|
|
697
799
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
698
800
|
// @__NO_SIDE_EFFECTS__
|
|
699
|
-
function defineStore(
|
|
700
|
-
let
|
|
801
|
+
function defineStore(e, o, r) {
|
|
802
|
+
let t;
|
|
701
803
|
const s = typeof o == "function";
|
|
702
|
-
|
|
703
|
-
function
|
|
704
|
-
const
|
|
705
|
-
return
|
|
804
|
+
t = s ? r : o;
|
|
805
|
+
function i(l, f) {
|
|
806
|
+
const v = hasInjectionContext();
|
|
807
|
+
return l = // in test mode, ignore the argument provided as we can always retrieve a
|
|
706
808
|
// pinia instance with getActivePinia()
|
|
707
|
-
|
|
809
|
+
l || (v ? inject(piniaSymbol, null) : null), l && setActivePinia(l), l = activePinia, l._s.has(e) || (s ? createSetupStore(e, o, t, l) : createOptionsStore(e, t, l)), l._s.get(e);
|
|
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
|
-
}),
|
|
733
|
-
const
|
|
734
|
-
|
|
735
|
-
},
|
|
736
|
-
var c,
|
|
737
|
-
const
|
|
738
|
-
(
|
|
830
|
+
setup(e, { emit: o }) {
|
|
831
|
+
const r = o, t = e, s = useGlobalStore(), i = inject("showFlatModal"), l = ref(null), f = ref(), v = ref(null), y = computed(() => {
|
|
832
|
+
if (t.project)
|
|
833
|
+
return t.project.svg;
|
|
834
|
+
}), E = (b) => {
|
|
835
|
+
const _ = b == null ? void 0 : b.target;
|
|
836
|
+
_ && (l.value = _);
|
|
837
|
+
}, w = (b) => {
|
|
838
|
+
var c, p, a;
|
|
839
|
+
const _ = b.target;
|
|
840
|
+
(_ == null ? void 0 : _.nodeName) === "path" && (((c = f.value) == null ? void 0 : c.conf) === "sold" || ((p = f.value) == null ? void 0 : p.conf) === "reserved" || r("changeComponent", ((a = v.value) == null ? void 0 : a.type) || "", f == null ? void 0 : f.value));
|
|
739
841
|
};
|
|
740
842
|
return watch(
|
|
741
|
-
() =>
|
|
843
|
+
() => i == null ? void 0 : i.value,
|
|
742
844
|
() => {
|
|
743
|
-
|
|
845
|
+
i != null && i.value || (l.value = null, v.value = null);
|
|
744
846
|
}
|
|
745
847
|
), watch(
|
|
746
|
-
() =>
|
|
747
|
-
(
|
|
748
|
-
var c,
|
|
749
|
-
if (!
|
|
750
|
-
s.hoverdSvg =
|
|
751
|
-
const
|
|
752
|
-
if (
|
|
753
|
-
const
|
|
754
|
-
if (!
|
|
755
|
-
const $ = (
|
|
756
|
-
switch ((a =
|
|
848
|
+
() => l.value,
|
|
849
|
+
(b) => {
|
|
850
|
+
var c, p, a, h, n, d, g;
|
|
851
|
+
if (!b) return;
|
|
852
|
+
s.hoverdSvg = b;
|
|
853
|
+
const _ = b.parentElement;
|
|
854
|
+
if (_ && (_ == null ? void 0 : _.nodeName) === "g") {
|
|
855
|
+
const u = _ == null ? void 0 : _.getAttribute("id");
|
|
856
|
+
if (!u || (v.value = ((c = t.project) == null ? void 0 : c.polygon_data.find((x) => (x == null ? void 0 : x.key) === u)) || null, !v.value)) return;
|
|
857
|
+
const $ = (p = v.value) == null ? void 0 : p.id;
|
|
858
|
+
switch ((a = v.value) == null ? void 0 : a.type) {
|
|
757
859
|
case "floor":
|
|
758
|
-
const
|
|
759
|
-
(
|
|
860
|
+
const x = (h = t.floors) == null ? void 0 : h.find(
|
|
861
|
+
(S) => S.id === $
|
|
760
862
|
);
|
|
761
|
-
|
|
863
|
+
f.value = x;
|
|
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
|
+
f.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
|
+
f.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
|
+
f.value = V;
|
|
780
882
|
break;
|
|
781
883
|
default:
|
|
782
|
-
|
|
884
|
+
f.value = null;
|
|
783
885
|
break;
|
|
784
886
|
}
|
|
785
887
|
} else
|
|
786
|
-
|
|
888
|
+
v.value = null, f.value = null;
|
|
787
889
|
}
|
|
788
|
-
), (
|
|
890
|
+
), onMounted(() => {
|
|
891
|
+
document.addEventListener("mousemove", E);
|
|
892
|
+
}), onUnmounted(() => {
|
|
893
|
+
document.removeEventListener("mousemove", E);
|
|
894
|
+
}), (b, _) => {
|
|
789
895
|
var c;
|
|
790
896
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
791
|
-
hoverdData:
|
|
792
|
-
type: (c =
|
|
793
|
-
onMouseover: x
|
|
897
|
+
hoverdData: f.value,
|
|
898
|
+
type: (c = v.value) == null ? void 0 : c.type
|
|
794
899
|
}, {
|
|
795
900
|
default: withCtx(() => {
|
|
796
|
-
var
|
|
901
|
+
var p, a, h, n, d, g;
|
|
797
902
|
return [
|
|
798
903
|
createElementVNode("div", _hoisted_1$c, [
|
|
799
904
|
createElementVNode("img", {
|
|
800
|
-
src: (
|
|
905
|
+
src: (h = (a = (p = b.project) == null ? void 0 : p.project_image) == null ? void 0 : a[0]) == null ? void 0 : h.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)]": f.value && ((n = f.value) == null ? void 0 : n.conf) === "reserved",
|
|
915
|
+
"hover:[&_path]:ire-fill-[var(--sold-color)]": f.value && ((d = f.value) == null ? void 0 : d.conf) === "sold",
|
|
916
|
+
"hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((g = f.value) != null && g.conf)
|
|
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] = (s) => o.value = s),
|
|
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
953
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(r.data, (s) => {
|
|
849
|
-
var
|
|
954
|
+
var i, l;
|
|
850
955
|
return openBlock(), createElementBlock("option", {
|
|
851
956
|
value: s.value,
|
|
852
|
-
disabled: ((
|
|
957
|
+
disabled: ((i = s == null ? void 0 : s.title) == null ? void 0 : i.includes("reserved")) || ((l = s == null ? void 0 : s.title) == null ? void 0 : l.includes("sold"))
|
|
853
958
|
}, toDisplayString(s.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
|
-
}),
|
|
914
|
-
(
|
|
915
|
-
var d,
|
|
1013
|
+
setup(e, { emit: o }) {
|
|
1014
|
+
const r = o, t = e, s = useGlobalStore(), i = inject("showFlatModal"), l = ref(), f = ref(null), v = ref(), y = ref(null), E = ref(), w = ref(), b = computed$1(() => {
|
|
1015
|
+
var n;
|
|
1016
|
+
if ((n = t.floor) != null && n.svg)
|
|
1017
|
+
return t.floor.svg;
|
|
1018
|
+
}), _ = 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 x;
|
|
1032
|
+
return ($ == null ? void 0 : $.id) === ((x = n == null ? void 0 : n.block_id) == null ? void 0 : x.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 && (f.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", (($ = v.value) == null ? void 0 : $.type) || "", y.value));
|
|
941
1046
|
}, a = () => {
|
|
942
|
-
var
|
|
943
|
-
|
|
944
|
-
var
|
|
945
|
-
const
|
|
946
|
-
(
|
|
1047
|
+
var n;
|
|
1048
|
+
l.value && ((n = l.value) == null ? void 0 : n.querySelectorAll("g")).forEach((g) => {
|
|
1049
|
+
var x, m, k, V, S, D;
|
|
1050
|
+
const u = g == null ? void 0 : g.getAttribute("id"), $ = (m = (x = t.floor) == null ? void 0 : x.polygon_data) == null ? void 0 : m.find(
|
|
1051
|
+
(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
|
+
}, h = () => {
|
|
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
|
-
s.hoverdSvg =
|
|
968
|
-
const d =
|
|
1068
|
+
() => f.value,
|
|
1069
|
+
(n) => {
|
|
1070
|
+
var g, u, $, x, m, k;
|
|
1071
|
+
if (!n) return;
|
|
1072
|
+
s.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 || (v.value = ((u = (g = t.floor) == null ? void 0 : g.polygon_data) == null ? void 0 : u.find((S) => (S == null ? void 0 : S.key) === V)) || null, !v.value)) return;
|
|
1077
|
+
if ((($ = v.value) == null ? void 0 : $.type) === "flat") {
|
|
1078
|
+
const S = (x = t.flats) == null ? void 0 : x.find(
|
|
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 = v.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 = v.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 = v.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
|
+
v.value = null;
|
|
992
1097
|
}
|
|
993
1098
|
), watch(
|
|
994
|
-
() =>
|
|
1099
|
+
() => i == null ? void 0 : i.value,
|
|
995
1100
|
() => {
|
|
996
|
-
|
|
1101
|
+
i != null && i.value || (f.value = null, v.value = null);
|
|
997
1102
|
}
|
|
998
1103
|
), watch(
|
|
999
|
-
() =>
|
|
1104
|
+
() => E.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) === (E == null ? void 0 : E.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 $, x;
|
|
1119
|
+
return (u == null ? void 0 : u.id) === ((x = ($ = t.floor) == null ? void 0 : $.block_id) == null ? void 0 : x.toString());
|
|
1015
1120
|
}
|
|
1016
|
-
),
|
|
1017
|
-
(
|
|
1121
|
+
), E.value = (g = (d = _.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 = v.value) == null ? void 0 : g.type
|
|
1028
1134
|
}, {
|
|
1029
1135
|
header: withCtx(() => [
|
|
1030
|
-
createVNode(_sfc_main$c, { onClick:
|
|
1136
|
+
createVNode(_sfc_main$c, { onClick: h }),
|
|
1031
1137
|
createElementVNode("div", _hoisted_1$8, [
|
|
1032
1138
|
createVNode(_sfc_main$e, {
|
|
1033
|
-
modelValue:
|
|
1034
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1035
|
-
data:
|
|
1139
|
+
modelValue: E.value,
|
|
1140
|
+
"onUpdate:modelValue": d[0] || (d[0] = (u) => E.value = u),
|
|
1141
|
+
data: _.value
|
|
1036
1142
|
}, null, 8, ["modelValue", "data"])
|
|
1037
1143
|
])
|
|
1038
1144
|
]),
|
|
1039
1145
|
default: withCtx(() => {
|
|
1040
|
-
var
|
|
1146
|
+
var u, $, x;
|
|
1041
1147
|
return [
|
|
1042
1148
|
createElementVNode("div", _hoisted_2$4, [
|
|
1043
1149
|
createElementVNode("img", {
|
|
1044
|
-
src: ((
|
|
1150
|
+
src: ((x = ($ = (u = n.floor) == null ? void 0 : u.floor_image) == null ? void 0 : $[0]) == null ? void 0 : x.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: l,
|
|
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",
|
|
@@ -1132,22 +1238,22 @@ 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), s = computed$1(() => {
|
|
1243
|
+
var l, f, v, y, E, w;
|
|
1244
|
+
const i = r.value ? (v = (f = (l = o.flat) == null ? void 0 : l.type) == null ? void 0 : f.image_2d) == null ? void 0 : v.length : (w = (E = (y = o.flat) == null ? void 0 : y.type) == null ? void 0 : E.image_3d) == null ? void 0 : w.length;
|
|
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
|
-
var
|
|
1253
|
+
var i, l;
|
|
1254
|
+
Object.keys(((l = (i = o.flat) == null ? void 0 : i.type) == null ? void 0 : l.image_3d) || {}).length || (r.value = !0);
|
|
1255
|
+
}), (i, l) => {
|
|
1256
|
+
var f, v, y, E, w, b, _, c, p, a, h, n, d, g, u, $, x, m, k, V, S, D, C, B, M, R, N, P, O, A, F;
|
|
1151
1257
|
return openBlock(), createElementBlock("div", null, [
|
|
1152
1258
|
createElementVNode("div", _hoisted_1$5, [
|
|
1153
1259
|
createElementVNode("div", _hoisted_2$3, [
|
|
@@ -1156,15 +1262,15 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1156
1262
|
mode: "out-in"
|
|
1157
1263
|
}, {
|
|
1158
1264
|
default: withCtx(() => {
|
|
1159
|
-
var j,
|
|
1265
|
+
var j, T, L, I, H, z, W, K, Y, U, X, q, Z, J, Q, G, ee, te, oe, re, ie, le, se, ne;
|
|
1160
1266
|
return [
|
|
1161
|
-
|
|
1162
|
-
key: (
|
|
1163
|
-
src: (
|
|
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,
|
|
1164
1270
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-[30rem]"
|
|
1165
|
-
}, null, 8, _hoisted_3$3)) : (
|
|
1166
|
-
src: (
|
|
1167
|
-
key: (
|
|
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 = (se = (le = (ie = i.flat) == null ? void 0 : ie.type) == null ? void 0 : le.image_3d) == null ? void 0 : se[t.value]) == null ? void 0 : ne.url,
|
|
1168
1274
|
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-[30rem]"
|
|
1169
1275
|
}, null, 8, _hoisted_4$2)) : createCommentVNode("", !0)
|
|
1170
1276
|
];
|
|
@@ -1173,90 +1279,90 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1173
1279
|
}),
|
|
1174
1280
|
createElementVNode("div", _hoisted_5, [
|
|
1175
1281
|
createElementVNode("div", _hoisted_6, [
|
|
1176
|
-
(
|
|
1282
|
+
(E = (y = (v = (f = i.flat) == null ? void 0 : f.type) == null ? void 0 : v.image_3d) == null ? void 0 : y[0]) != null && E.url ? (openBlock(), createElementBlock("div", {
|
|
1177
1283
|
key: 0,
|
|
1178
|
-
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": !
|
|
1179
|
-
onClick:
|
|
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: l[0] || (l[0] = (j) => r.value = !1)
|
|
1180
1286
|
}, [
|
|
1181
1287
|
createElementVNode("div", null, [
|
|
1182
1288
|
createVNode(Cube, {
|
|
1183
|
-
class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !
|
|
1289
|
+
class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !r.value }])
|
|
1184
1290
|
}, null, 8, ["class"])
|
|
1185
1291
|
]),
|
|
1186
1292
|
createElementVNode("div", {
|
|
1187
1293
|
class: normalizeClass(["group-hover:!ire-text-white", {
|
|
1188
|
-
"!ire-text-white": !
|
|
1189
|
-
"!ire-text-black":
|
|
1294
|
+
"!ire-text-white": !r.value,
|
|
1295
|
+
"!ire-text-black": r.value
|
|
1190
1296
|
}])
|
|
1191
1297
|
}, toDisplayString(unref(tr)("3d plan")), 3)
|
|
1192
1298
|
], 2)) : createCommentVNode("", !0),
|
|
1193
|
-
(
|
|
1299
|
+
(c = (_ = (b = (w = i.flat) == null ? void 0 : w.type) == null ? void 0 : b.image_2d) == null ? void 0 : _[0]) != null && c.url ? (openBlock(), createElementBlock("div", {
|
|
1194
1300
|
key: 1,
|
|
1195
|
-
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":
|
|
1196
|
-
onClick:
|
|
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: l[1] || (l[1] = (j) => r.value = !0)
|
|
1197
1303
|
}, [
|
|
1198
1304
|
createVNode(FlatIcon, {
|
|
1199
|
-
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white":
|
|
1305
|
+
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": r.value }])
|
|
1200
1306
|
}, null, 8, ["class"]),
|
|
1201
1307
|
createElementVNode("div", {
|
|
1202
1308
|
class: normalizeClass(["group-hover:!ire-text-white", {
|
|
1203
|
-
"!ire-text-white":
|
|
1204
|
-
"!ire-text-black": !
|
|
1309
|
+
"!ire-text-white": r.value,
|
|
1310
|
+
"!ire-text-black": !r.value
|
|
1205
1311
|
}])
|
|
1206
1312
|
}, toDisplayString(unref(tr)("2d plan")), 3)
|
|
1207
1313
|
], 2)) : createCommentVNode("", !0)
|
|
1208
1314
|
]),
|
|
1209
|
-
((
|
|
1210
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
1315
|
+
((p = s.value) == null ? void 0 : p.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
1316
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.value, (j, T) => (openBlock(), createElementBlock("div", {
|
|
1211
1317
|
key: j,
|
|
1212
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", {
|
|
1213
|
-
"ire-bg-black ire-text-white":
|
|
1319
|
+
"ire-bg-black ire-text-white": t.value === T
|
|
1214
1320
|
}]),
|
|
1215
|
-
onClick: (L) =>
|
|
1321
|
+
onClick: (L) => t.value = T
|
|
1216
1322
|
}, toDisplayString(j), 11, _hoisted_8))), 128))
|
|
1217
1323
|
])) : createCommentVNode("", !0)
|
|
1218
1324
|
])
|
|
1219
1325
|
]),
|
|
1220
1326
|
createElementVNode("div", _hoisted_9, [
|
|
1221
1327
|
createElementVNode("div", _hoisted_10, [
|
|
1222
|
-
createElementVNode("div", _hoisted_11, toDisplayString((
|
|
1328
|
+
createElementVNode("div", _hoisted_11, toDisplayString((a = i.flat) == null ? void 0 : a.flat_number), 1),
|
|
1223
1329
|
createElementVNode("div", _hoisted_12, toDisplayString(unref(tr)("apartment")), 1)
|
|
1224
1330
|
]),
|
|
1225
|
-
(
|
|
1226
|
-
createElementVNode("div", _hoisted_14, toDisplayString((
|
|
1227
|
-
createElementVNode("div", _hoisted_15, toDisplayString((
|
|
1331
|
+
(n = (h = i.flat) == null ? void 0 : h.type) != null && n.title || (g = (d = i.flat) == null ? void 0 : d.type) != null && g.teaser ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
1332
|
+
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 = (x = i.flat) == null ? void 0 : x.type) == null ? void 0 : m.teaser), 1)
|
|
1228
1334
|
])) : createCommentVNode("", !0),
|
|
1229
1335
|
createElementVNode("div", _hoisted_16, [
|
|
1230
|
-
(
|
|
1231
|
-
createElementVNode("div", _hoisted_18, toDisplayString((
|
|
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),
|
|
1232
1338
|
createElementVNode("div", _hoisted_19, toDisplayString(unref(tr)("floor")), 1)
|
|
1233
1339
|
])) : createCommentVNode("", !0),
|
|
1234
|
-
(
|
|
1235
|
-
createElementVNode("div", _hoisted_21, toDisplayString((
|
|
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),
|
|
1236
1342
|
createElementVNode("div", _hoisted_22, toDisplayString(unref(tr)("room")), 1)
|
|
1237
1343
|
])) : createCommentVNode("", !0)
|
|
1238
1344
|
]),
|
|
1239
|
-
(
|
|
1345
|
+
(M = (B = i.flat) == null ? void 0 : B.type) != null && M.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
1240
1346
|
createElementVNode("div", _hoisted_24, [
|
|
1241
|
-
createTextVNode(toDisplayString(Number((
|
|
1242
|
-
|
|
1347
|
+
createTextVNode(toDisplayString(Number((R = i.flat) == null ? void 0 : R.type.area_m2).toLocaleString("fr-FR")) + " ", 1),
|
|
1348
|
+
l[2] || (l[2] = createElementVNode("span", null, [
|
|
1243
1349
|
createTextVNode(" m "),
|
|
1244
1350
|
createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
|
|
1245
1351
|
], -1))
|
|
1246
1352
|
]),
|
|
1247
1353
|
createElementVNode("div", _hoisted_25, toDisplayString(unref(tr)("area")), 1)
|
|
1248
1354
|
])) : createCommentVNode("", !0),
|
|
1249
|
-
(
|
|
1355
|
+
(N = i.flat) != null && N.price ? (openBlock(), createElementBlock("div", _hoisted_26, [
|
|
1250
1356
|
createElementVNode("div", null, [
|
|
1251
|
-
(
|
|
1252
|
-
createElementVNode("div", _hoisted_29, toDisplayString(Number((
|
|
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),
|
|
1253
1359
|
createElementVNode("div", _hoisted_30, [
|
|
1254
|
-
createTextVNode(toDisplayString(Number((
|
|
1255
|
-
createElementVNode("span", null, toDisplayString(unref(
|
|
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)
|
|
1256
1362
|
])
|
|
1257
1363
|
])) : (openBlock(), createElementBlock("div", _hoisted_27, [
|
|
1258
|
-
createTextVNode(toDisplayString(Number((
|
|
1259
|
-
createElementVNode("span", null, toDisplayString(unref(
|
|
1364
|
+
createTextVNode(toDisplayString(Number((O = i.flat) == null ? void 0 : O.price).toLocaleString("fr-FR")) + " ", 1),
|
|
1365
|
+
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
1260
1366
|
]))
|
|
1261
1367
|
]),
|
|
1262
1368
|
createElementVNode("div", _hoisted_31, toDisplayString(unref(tr)("price")), 1)
|
|
@@ -1274,35 +1380,37 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
|
|
|
1274
1380
|
height: "20",
|
|
1275
1381
|
viewBox: "0 0 50 50"
|
|
1276
1382
|
};
|
|
1277
|
-
function _sfc_render(
|
|
1383
|
+
function _sfc_render(e, o) {
|
|
1278
1384
|
return openBlock(), createElementBlock("svg", _hoisted_1$4, o[0] || (o[0] = [
|
|
1279
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)
|
|
1280
1386
|
]));
|
|
1281
1387
|
}
|
|
1282
|
-
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({
|
|
1283
1389
|
__name: "PreviewModal",
|
|
1284
1390
|
emits: ["close"],
|
|
1285
|
-
setup(
|
|
1391
|
+
setup(e) {
|
|
1286
1392
|
return onMounted(() => {
|
|
1287
1393
|
const o = window.innerWidth - document.documentElement.clientWidth;
|
|
1288
1394
|
document.body.style.overflow = "hidden", document.body.style.paddingRight = `${o}px`;
|
|
1289
1395
|
}), onUnmounted(() => {
|
|
1290
|
-
|
|
1396
|
+
setTimeout(() => {
|
|
1397
|
+
document.body.style.overflow = "auto", document.body.style.paddingRight = "0";
|
|
1398
|
+
}, 500);
|
|
1291
1399
|
}), (o, r) => (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
1292
1400
|
createElementVNode("div", {
|
|
1293
1401
|
class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full ire-bg-black/40 ire-transition-all",
|
|
1294
|
-
onClick: r[0] || (r[0] = (
|
|
1402
|
+
onClick: r[0] || (r[0] = (t) => o.$emit("close"))
|
|
1295
1403
|
}),
|
|
1296
1404
|
createElementVNode("div", _hoisted_2$2, [
|
|
1297
1405
|
createElementVNode("div", _hoisted_3$2, [
|
|
1298
|
-
createElementVNode("div",
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
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, [
|
|
1306
1414
|
renderSlot(o.$slots, "default")
|
|
1307
1415
|
])
|
|
1308
1416
|
])
|
|
@@ -1313,7 +1421,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1313
1421
|
props: {
|
|
1314
1422
|
editor: {}
|
|
1315
1423
|
},
|
|
1316
|
-
setup(
|
|
1424
|
+
setup(e) {
|
|
1317
1425
|
return (o, r) => (openBlock(), createElementBlock("div", {
|
|
1318
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",
|
|
1319
1427
|
innerHTML: o.editor
|
|
@@ -1324,17 +1432,17 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1324
1432
|
props: {
|
|
1325
1433
|
modalData: {}
|
|
1326
1434
|
},
|
|
1327
|
-
setup(
|
|
1435
|
+
setup(e) {
|
|
1328
1436
|
return (o, r) => {
|
|
1329
|
-
var
|
|
1437
|
+
var t, s, i, l, f, v, y, E, w, b, _, c;
|
|
1330
1438
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
1331
|
-
createElementVNode("p", _hoisted_2$1, toDisplayString((s = (
|
|
1439
|
+
createElementVNode("p", _hoisted_2$1, toDisplayString((s = (t = o.modalData) == null ? void 0 : t.modalObject) == null ? void 0 : s.title), 1),
|
|
1332
1440
|
createVNode(_sfc_main$5, {
|
|
1333
|
-
editor: (
|
|
1441
|
+
editor: (l = (i = o.modalData) == null ? void 0 : i.modalObject) == null ? void 0 : l.description
|
|
1334
1442
|
}, null, 8, ["editor"]),
|
|
1335
|
-
(
|
|
1443
|
+
(E = (y = (v = (f = o.modalData) == null ? void 0 : f.modalObject) == null ? void 0 : v.modalImage) == null ? void 0 : y[0]) != null && E.url ? (openBlock(), createElementBlock("img", {
|
|
1336
1444
|
key: 0,
|
|
1337
|
-
src: (c = (
|
|
1445
|
+
src: (c = (_ = (b = (w = o.modalData) == null ? void 0 : w.modalObject) == null ? void 0 : b.modalImage) == null ? void 0 : _[0]) == null ? void 0 : c.url,
|
|
1338
1446
|
alt: "",
|
|
1339
1447
|
class: "ire-mt-5 ire-h-[400px] ire-w-full ire-object-contain"
|
|
1340
1448
|
}, null, 8, _hoisted_3$1)) : createCommentVNode("", !0)
|
|
@@ -1350,105 +1458,108 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1350
1458
|
actions: {}
|
|
1351
1459
|
},
|
|
1352
1460
|
emits: ["changeComponent"],
|
|
1353
|
-
setup(
|
|
1354
|
-
const r = o,
|
|
1355
|
-
var
|
|
1356
|
-
if ((
|
|
1357
|
-
return (c =
|
|
1358
|
-
}),
|
|
1359
|
-
const c =
|
|
1360
|
-
c && (
|
|
1361
|
-
},
|
|
1362
|
-
var
|
|
1363
|
-
const c =
|
|
1364
|
-
(c == null ? void 0 : c.nodeName) === "path" && (((
|
|
1461
|
+
setup(e, { emit: o }) {
|
|
1462
|
+
const r = o, t = e, s = useGlobalStore(), i = inject("showFlatModal"), l = ref(), f = ref(null), v = ref(), y = ref(), E = computed$1(() => {
|
|
1463
|
+
var _, c;
|
|
1464
|
+
if ((_ = t.block) != null && _.svg)
|
|
1465
|
+
return (c = t.block) == null ? void 0 : c.svg;
|
|
1466
|
+
}), w = (_) => {
|
|
1467
|
+
const c = _.target;
|
|
1468
|
+
c && (f.value = c);
|
|
1469
|
+
}, b = (_) => {
|
|
1470
|
+
var p, a, h;
|
|
1471
|
+
const c = _.target;
|
|
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(
|
|
1365
1473
|
"changeComponent",
|
|
1366
|
-
((
|
|
1367
|
-
|
|
1474
|
+
((h = v.value) == null ? void 0 : h.type) || "",
|
|
1475
|
+
y.value
|
|
1368
1476
|
));
|
|
1369
1477
|
};
|
|
1370
1478
|
return watch(
|
|
1371
|
-
() =>
|
|
1479
|
+
() => i == null ? void 0 : i.value,
|
|
1372
1480
|
() => {
|
|
1373
|
-
|
|
1481
|
+
i != null && i.value || (f.value = null, v.value = null);
|
|
1374
1482
|
}
|
|
1375
1483
|
), watch(
|
|
1376
|
-
() =>
|
|
1377
|
-
(
|
|
1378
|
-
var
|
|
1379
|
-
if (!
|
|
1380
|
-
s.hoverdSvg =
|
|
1381
|
-
const c =
|
|
1484
|
+
() => f.value,
|
|
1485
|
+
(_) => {
|
|
1486
|
+
var p, a, h, n, d, g, u, $;
|
|
1487
|
+
if (!_) return;
|
|
1488
|
+
s.hoverdSvg = _;
|
|
1489
|
+
const c = _ == null ? void 0 : _.parentElement;
|
|
1382
1490
|
if (c && (c == null ? void 0 : c.nodeName) === "g") {
|
|
1383
|
-
const
|
|
1384
|
-
if (!
|
|
1385
|
-
if (((
|
|
1386
|
-
const
|
|
1387
|
-
(
|
|
1388
|
-
var
|
|
1389
|
-
return (
|
|
1491
|
+
const x = c == null ? void 0 : c.getAttribute("id");
|
|
1492
|
+
if (!x || (v.value = ((a = (p = t.block) == null ? void 0 : p.polygon_data) == null ? void 0 : a.find((m) => (m == null ? void 0 : m.key) === x)) || null, !v.value)) return;
|
|
1493
|
+
if (((h = v.value) == null ? void 0 : h.type) === "floor") {
|
|
1494
|
+
const m = (n = t.floors) == null ? void 0 : n.find(
|
|
1495
|
+
(k) => {
|
|
1496
|
+
var V;
|
|
1497
|
+
return (k == null ? void 0 : k.id) === ((V = v.value) == null ? void 0 : V.id);
|
|
1390
1498
|
}
|
|
1391
1499
|
);
|
|
1392
|
-
|
|
1393
|
-
} else if (((d =
|
|
1394
|
-
const
|
|
1395
|
-
(
|
|
1396
|
-
var
|
|
1397
|
-
return (
|
|
1500
|
+
y.value = m;
|
|
1501
|
+
} else if (((d = v.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 = v.value) == null ? void 0 : V.id);
|
|
1398
1506
|
}
|
|
1399
1507
|
);
|
|
1400
|
-
|
|
1401
|
-
} else if (((
|
|
1402
|
-
const
|
|
1403
|
-
(
|
|
1404
|
-
var
|
|
1405
|
-
return (
|
|
1508
|
+
y.value = m;
|
|
1509
|
+
} else if (((u = v.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 = v.value) == null ? void 0 : V.id);
|
|
1406
1514
|
}
|
|
1407
1515
|
);
|
|
1408
|
-
|
|
1516
|
+
y.value = m;
|
|
1409
1517
|
} else
|
|
1410
|
-
|
|
1518
|
+
y.value = null;
|
|
1411
1519
|
} else
|
|
1412
|
-
|
|
1520
|
+
v.value = null, y.value = null;
|
|
1413
1521
|
}
|
|
1414
|
-
), (
|
|
1415
|
-
|
|
1522
|
+
), onMounted(() => {
|
|
1523
|
+
document.addEventListener("mousemove", w);
|
|
1524
|
+
}), onUnmounted(() => {
|
|
1525
|
+
document.removeEventListener("mousemove", w);
|
|
1526
|
+
}), (_, c) => {
|
|
1527
|
+
var p;
|
|
1416
1528
|
return openBlock(), createBlock(_sfc_main$g, {
|
|
1417
|
-
hoverdData:
|
|
1418
|
-
type: (
|
|
1419
|
-
onMouseover: C
|
|
1529
|
+
hoverdData: y.value,
|
|
1530
|
+
type: (p = v.value) == null ? void 0 : p.type
|
|
1420
1531
|
}, {
|
|
1421
1532
|
header: withCtx(() => {
|
|
1422
1533
|
var a;
|
|
1423
1534
|
return [
|
|
1424
1535
|
createVNode(_sfc_main$c, {
|
|
1425
|
-
onClick: c[0] || (c[0] = (
|
|
1536
|
+
onClick: c[0] || (c[0] = (h) => _.$emit("changeComponent", "project", null))
|
|
1426
1537
|
}),
|
|
1427
|
-
createElementVNode("p", _hoisted_1, toDisplayString((a =
|
|
1538
|
+
createElementVNode("p", _hoisted_1, toDisplayString((a = _.block) == null ? void 0 : a.title), 1)
|
|
1428
1539
|
];
|
|
1429
1540
|
}),
|
|
1430
1541
|
default: withCtx(() => {
|
|
1431
|
-
var a,
|
|
1542
|
+
var a, h, n, d, g, u;
|
|
1432
1543
|
return [
|
|
1433
1544
|
createElementVNode("div", _hoisted_2, [
|
|
1434
1545
|
createElementVNode("img", {
|
|
1435
|
-
src: ((
|
|
1546
|
+
src: ((n = (h = (a = _.block) == null ? void 0 : a.block_image) == null ? void 0 : h[0]) == null ? void 0 : n.url) || "",
|
|
1436
1547
|
alt: "",
|
|
1437
1548
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1438
1549
|
}, null, 8, _hoisted_3),
|
|
1439
1550
|
(openBlock(), createElementBlock("div", {
|
|
1440
1551
|
ref_key: "svgRef",
|
|
1441
|
-
ref:
|
|
1442
|
-
innerHTML:
|
|
1443
|
-
key:
|
|
1552
|
+
ref: l,
|
|
1553
|
+
innerHTML: E.value,
|
|
1554
|
+
key: E.value,
|
|
1444
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", [
|
|
1445
1556
|
{
|
|
1446
|
-
"hover:[&_path]:ire-fill-[var(--reserved-color)]": ((d =
|
|
1447
|
-
"hover:[&_path]:ire-fill-[var(--sold-color)]": ((
|
|
1448
|
-
"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)
|
|
1449
1560
|
}
|
|
1450
1561
|
]]),
|
|
1451
|
-
onClick:
|
|
1562
|
+
onClick: b
|
|
1452
1563
|
}, null, 10, _hoisted_4))
|
|
1453
1564
|
])
|
|
1454
1565
|
];
|
|
@@ -1459,32 +1570,32 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1459
1570
|
}
|
|
1460
1571
|
}), _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
1461
1572
|
__name: "MouseTracker",
|
|
1462
|
-
setup(
|
|
1463
|
-
const o = useGlobalStore(), r = ref(!0),
|
|
1464
|
-
let
|
|
1465
|
-
const
|
|
1466
|
-
if (
|
|
1467
|
-
const
|
|
1468
|
-
|
|
1573
|
+
setup(e) {
|
|
1574
|
+
const o = useGlobalStore(), r = ref(!0), t = ref(-400), s = ref(-400), i = ref(null);
|
|
1575
|
+
let l = null, f = 0, v = 0;
|
|
1576
|
+
const y = (b, _, c) => b * (1 - c) + _ * c, E = () => {
|
|
1577
|
+
if (l) return;
|
|
1578
|
+
const b = () => {
|
|
1579
|
+
t.value = y(t.value, f, 0.06), s.value = y(s.value, v, 0.06), Math.abs(t.value - f) > 0.06 || Math.abs(s.value - v) > 0.06 ? l = requestAnimationFrame(b) : l = null;
|
|
1469
1580
|
};
|
|
1470
|
-
|
|
1471
|
-
},
|
|
1581
|
+
l = requestAnimationFrame(b);
|
|
1582
|
+
}, w = (b) => {
|
|
1472
1583
|
var $;
|
|
1473
|
-
const
|
|
1474
|
-
if (!
|
|
1584
|
+
const _ = document.querySelector(".irep-tooltip"), c = (($ = o.hoverdSvg) == null ? void 0 : $.nodeName) === "path" ? o.hoverdSvg : null;
|
|
1585
|
+
if (!i.value || !_ || !c)
|
|
1475
1586
|
return;
|
|
1476
|
-
const
|
|
1477
|
-
|
|
1587
|
+
const p = i.value.getBoundingClientRect(), a = c.getBoundingClientRect(), h = _.getBoundingClientRect(), n = p.left + p.width / 2, d = p.top + p.height / 2, g = a.left > n, u = a.bottom > d;
|
|
1588
|
+
f = b.clientX - p.left - (g ? h.width : -20), v = b.clientY - p.top - (u ? h.height : -20), r.value && (t.value = f, s.value = v), E(), r.value = !1;
|
|
1478
1589
|
};
|
|
1479
1590
|
return onMounted(() => {
|
|
1480
|
-
document.addEventListener("mousemove",
|
|
1591
|
+
document.addEventListener("mousemove", w);
|
|
1481
1592
|
}), onUnmounted(() => {
|
|
1482
|
-
document.removeEventListener("mousemove",
|
|
1483
|
-
}), provide("mouseX",
|
|
1593
|
+
document.removeEventListener("mousemove", w), l && cancelAnimationFrame(l);
|
|
1594
|
+
}), provide("mouseX", t), provide("mouseY", s), (b, _) => (openBlock(), createElementBlock("div", {
|
|
1484
1595
|
ref_key: "canvasRef",
|
|
1485
|
-
ref:
|
|
1596
|
+
ref: i
|
|
1486
1597
|
}, [
|
|
1487
|
-
renderSlot(
|
|
1598
|
+
renderSlot(b.$slots, "default")
|
|
1488
1599
|
], 512));
|
|
1489
1600
|
}
|
|
1490
1601
|
}), _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
@@ -1493,25 +1604,25 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1493
1604
|
shortcodeDataProps: {}
|
|
1494
1605
|
},
|
|
1495
1606
|
setup(__props) {
|
|
1496
|
-
var
|
|
1607
|
+
var e, o, r, t, s, i, l, f, v, y, E, w, b, _;
|
|
1497
1608
|
const props = __props, getMeta = (c) => props.shortcodeDataProps.meta.find(
|
|
1498
|
-
(
|
|
1609
|
+
(p) => p.meta_key === c
|
|
1499
1610
|
), constants = ref({
|
|
1500
|
-
PREVIEW_PATH_COLOR: ((
|
|
1611
|
+
PREVIEW_PATH_COLOR: ((e = getMeta("path_color")) == null ? void 0 : e.meta_value) || "rgba(255, 255, 255, 0.3)",
|
|
1501
1612
|
PREVIEW_PATH_HOVER_COLOR: ((o = getMeta("path_hover_color")) == null ? void 0 : o.meta_value) || "rgba(250, 250, 250, 0.54)",
|
|
1502
1613
|
PREVIEW_RESERVED_COLOR: ((r = getMeta("reserved_color")) == null ? void 0 : r.meta_value) || "rgba(255, 247, 89, 0.53)",
|
|
1503
|
-
PREVIEW_SOLD_COLOR: ((
|
|
1614
|
+
PREVIEW_SOLD_COLOR: ((t = getMeta("sold_color")) == null ? void 0 : t.meta_value) || "rgba(219, 64, 64, 0.45)",
|
|
1504
1615
|
PREVIEW_STROKE_COLOR: ((s = getMeta("stroke_color")) == null ? void 0 : s.meta_value) || "rgba(0, 0, 0, 1)",
|
|
1505
|
-
PREVIEW_STROKE_WIDTH: +((
|
|
1506
|
-
PREVIEW_BORDER_RADIUS: +((
|
|
1616
|
+
PREVIEW_STROKE_WIDTH: +((i = getMeta("stroke_width")) == null ? void 0 : i.meta_value) || 1,
|
|
1617
|
+
PREVIEW_BORDER_RADIUS: +((l = getMeta("border_radius")) == null ? void 0 : l.meta_value) || 0
|
|
1507
1618
|
}), colors = reactive({
|
|
1508
|
-
path: (
|
|
1509
|
-
path_hover: (
|
|
1510
|
-
reserved: (
|
|
1511
|
-
sold: (
|
|
1512
|
-
stroke_color: (
|
|
1513
|
-
stroke_width: (
|
|
1514
|
-
border_radius: (
|
|
1619
|
+
path: (f = constants.value) == null ? void 0 : f.PREVIEW_PATH_COLOR,
|
|
1620
|
+
path_hover: (v = constants.value) == null ? void 0 : v.PREVIEW_PATH_HOVER_COLOR,
|
|
1621
|
+
reserved: (y = constants.value) == null ? void 0 : y.PREVIEW_RESERVED_COLOR,
|
|
1622
|
+
sold: (E = constants.value) == null ? void 0 : E.PREVIEW_SOLD_COLOR,
|
|
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,
|
|
1625
|
+
border_radius: (_ = constants.value) == null ? void 0 : _.PREVIEW_BORDER_RADIUS
|
|
1515
1626
|
}), cssVariables = computed$1(() => ({
|
|
1516
1627
|
"--reserved-color": colors.reserved,
|
|
1517
1628
|
"--sold-color": colors.sold,
|
|
@@ -1527,26 +1638,26 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1527
1638
|
if (shortcodeData.value)
|
|
1528
1639
|
return (c = shortcodeData.value) == null ? void 0 : c.project;
|
|
1529
1640
|
}), floors = computed$1(() => {
|
|
1530
|
-
var c,
|
|
1641
|
+
var c, p;
|
|
1531
1642
|
if (shortcodeData.value)
|
|
1532
1643
|
return (c = shortcodeData.value.floors) == null || c.forEach((a) => {
|
|
1533
|
-
var d,
|
|
1534
|
-
const
|
|
1644
|
+
var d, g;
|
|
1645
|
+
const h = (g = (d = shortcodeData.value) == null ? void 0 : d.flats) == null ? void 0 : g.filter((u) => {
|
|
1535
1646
|
var $;
|
|
1536
|
-
return (
|
|
1537
|
-
(
|
|
1538
|
-
var
|
|
1539
|
-
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;
|
|
1540
1651
|
}
|
|
1541
1652
|
) : !1;
|
|
1542
1653
|
});
|
|
1543
|
-
a.flats =
|
|
1544
|
-
const { conf:
|
|
1545
|
-
if (
|
|
1546
|
-
const
|
|
1547
|
-
|
|
1654
|
+
a.flats = h;
|
|
1655
|
+
const { conf: n } = a || {};
|
|
1656
|
+
if (h != null && h.length && !n) {
|
|
1657
|
+
const u = h == null ? void 0 : h.every((x) => (x == null ? void 0 : x.conf) === "reserved"), $ = h == null ? void 0 : h.every((x) => (x == null ? void 0 : x.conf) === "sold");
|
|
1658
|
+
u ? a.conf = "reserved" : $ && (a.conf = "sold");
|
|
1548
1659
|
}
|
|
1549
|
-
}), (
|
|
1660
|
+
}), (p = shortcodeData.value) == null ? void 0 : p.floors;
|
|
1550
1661
|
}), blocks = computed$1(() => {
|
|
1551
1662
|
if (shortcodeData.value)
|
|
1552
1663
|
return shortcodeData.value.blocks;
|
|
@@ -1554,13 +1665,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1554
1665
|
if (shortcodeData.value)
|
|
1555
1666
|
return shortcodeData.value.types;
|
|
1556
1667
|
}), flats = computed$1(() => {
|
|
1557
|
-
var c,
|
|
1668
|
+
var c, p;
|
|
1558
1669
|
if (shortcodeData.value)
|
|
1559
|
-
return (
|
|
1560
|
-
var
|
|
1670
|
+
return (p = (c = shortcodeData.value) == null ? void 0 : c.flats) == null ? void 0 : p.map((a) => {
|
|
1671
|
+
var h;
|
|
1561
1672
|
if (a != null && a.use_type || !(a != null && a.type)) {
|
|
1562
|
-
const
|
|
1563
|
-
|
|
1673
|
+
const n = (h = types.value) == null ? void 0 : h.find((d) => (d == null ? void 0 : d.id) === (a == null ? void 0 : a.type_id));
|
|
1674
|
+
n && (a.type = n);
|
|
1564
1675
|
}
|
|
1565
1676
|
return a;
|
|
1566
1677
|
});
|
|
@@ -1573,8 +1684,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1573
1684
|
if (shortcodeData.value)
|
|
1574
1685
|
return (c = shortcodeData.value) == null ? void 0 : c.meta;
|
|
1575
1686
|
}), getColorMeta = (c) => {
|
|
1576
|
-
var
|
|
1577
|
-
return (a = (
|
|
1687
|
+
var p, a;
|
|
1688
|
+
return (a = (p = projectMeta.value) == null ? void 0 : p.find((h) => (h == null ? void 0 : h.meta_key) === c)) == null ? void 0 : a.meta_value;
|
|
1578
1689
|
}, changeRoute = (flowType, polygonItem) => {
|
|
1579
1690
|
switch (flowType) {
|
|
1580
1691
|
case "project":
|
|
@@ -1610,10 +1721,10 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1610
1721
|
return watch(
|
|
1611
1722
|
() => projectMeta.value,
|
|
1612
1723
|
() => {
|
|
1613
|
-
const c = getColorMeta("path_color"),
|
|
1614
|
-
c && (colors.path = c.toString()),
|
|
1724
|
+
const c = getColorMeta("path_color"), p = getColorMeta("path_hover_color"), a = getColorMeta("reserved_color"), h = getColorMeta("sold_color"), n = getColorMeta("stroke_color"), d = getColorMeta("stroke_width");
|
|
1725
|
+
c && (colors.path = c.toString()), p && (colors.path_hover = p.toString()), a && (colors.reserved = a.toString()), h && (colors.sold = h.toString()), n && (colors.stroke_color = n.toString()), d && (colors.stroke_width = Number(d));
|
|
1615
1726
|
}
|
|
1616
|
-
), provide("showFlatModal", showFlatModal), (c,
|
|
1727
|
+
), provide("showFlatModal", showFlatModal), provide("showFlatModal", showFlatModal), (c, p) => (openBlock(), createBlock(_sfc_main$2, { class: "interactive-real-estate" }, {
|
|
1617
1728
|
default: withCtx(() => [
|
|
1618
1729
|
createVNode(Transition, {
|
|
1619
1730
|
name: "ire-fade-in-out",
|
|
@@ -1632,14 +1743,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1632
1743
|
projectMeta: projectMeta.value,
|
|
1633
1744
|
blocks: blocks.value,
|
|
1634
1745
|
actions: actions.value,
|
|
1635
|
-
onChangeComponent:
|
|
1746
|
+
onChangeComponent: p[0] || (p[0] = (a, h) => changeRoute(a, h))
|
|
1636
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, {
|
|
1637
1748
|
key: 1,
|
|
1638
1749
|
block: activeBlock.value,
|
|
1639
1750
|
flats: flats.value,
|
|
1640
1751
|
floors: floors.value,
|
|
1641
1752
|
actions: actions.value,
|
|
1642
|
-
onChangeComponent:
|
|
1753
|
+
onChangeComponent: p[1] || (p[1] = (a, h) => changeRoute(a, h))
|
|
1643
1754
|
}, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$b, {
|
|
1644
1755
|
key: 2,
|
|
1645
1756
|
flats: flats.value,
|
|
@@ -1647,7 +1758,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1647
1758
|
floors: floors.value,
|
|
1648
1759
|
blocks: blocks.value,
|
|
1649
1760
|
actions: actions.value,
|
|
1650
|
-
onChangeComponent:
|
|
1761
|
+
onChangeComponent: p[2] || (p[2] = (a, h) => changeRoute(a, h))
|
|
1651
1762
|
}, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : createCommentVNode("", !0)
|
|
1652
1763
|
], 4)) : createCommentVNode("", !0)
|
|
1653
1764
|
]),
|
|
@@ -1661,13 +1772,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1661
1772
|
default: withCtx(() => [
|
|
1662
1773
|
showFlatModal.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
1663
1774
|
key: 0,
|
|
1664
|
-
onClose:
|
|
1775
|
+
onClose: p[4] || (p[4] = (a) => showFlatModal.value = !1)
|
|
1665
1776
|
}, {
|
|
1666
1777
|
default: withCtx(() => [
|
|
1667
1778
|
createVNode(_sfc_main$8, {
|
|
1668
1779
|
flat: hoveredData.value,
|
|
1669
1780
|
floors: floors.value,
|
|
1670
|
-
onChangeComponent:
|
|
1781
|
+
onChangeComponent: p[3] || (p[3] = (a, h) => changeRoute(a, h))
|
|
1671
1782
|
}, null, 8, ["flat", "floors"])
|
|
1672
1783
|
]),
|
|
1673
1784
|
_: 1
|
|
@@ -1684,7 +1795,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1684
1795
|
default: withCtx(() => [
|
|
1685
1796
|
showModal.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
1686
1797
|
key: 0,
|
|
1687
|
-
onClose:
|
|
1798
|
+
onClose: p[5] || (p[5] = (a) => showModal.value = !1)
|
|
1688
1799
|
}, {
|
|
1689
1800
|
default: withCtx(() => [
|
|
1690
1801
|
createVNode(_sfc_main$4, { modalData: hoveredData.value }, null, 8, ["modalData"])
|
|
@@ -1705,9 +1816,9 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
1705
1816
|
data: {},
|
|
1706
1817
|
translations: {}
|
|
1707
1818
|
},
|
|
1708
|
-
setup(
|
|
1709
|
-
const o =
|
|
1710
|
-
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, [
|
|
1711
1822
|
createVNode(_sfc_main$1, { "shortcode-data-props": r.data }, null, 8, ["shortcode-data-props"])
|
|
1712
1823
|
]));
|
|
1713
1824
|
}
|