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, normalizeClass, mergeModels, useModel, withDirectives, renderList, vModelSelect, onMounted, createStaticVNode, onUnmounted, provide, Teleport, createApp } from "vue";
2
- const _export_sfc = (t, o) => {
3
- const r = t.__vccOpts || t;
4
- for (const [e, s] of o)
5
- r[e] = s;
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(t, o) {
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 = (t) => typeof t == "function", isSymbol = (t) => typeof t == "symbol", hasChanged = (t, o) => !Object.is(t, o);
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(t, o = !1) {
27
- if (t.flags |= 8, o) {
28
- t.next = batchedComputed, batchedComputed = t;
26
+ function batch(e, o = !1) {
27
+ if (e.flags |= 8, o) {
28
+ e.next = batchedComputed, batchedComputed = e;
29
29
  return;
30
30
  }
31
- t.next = batchedSub, batchedSub = t;
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 t;
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 (e) {
55
- t || (t = e);
54
+ } catch (t) {
55
+ e || (e = t);
56
56
  }
57
57
  o = r;
58
58
  }
59
59
  }
60
- if (t) throw t;
60
+ if (e) throw e;
61
61
  }
62
- function prepareDeps(t) {
63
- for (let o = t.deps; o; o = o.nextDep)
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(t) {
67
- let o, r = t.depsTail, e = r;
68
- for (; e; ) {
69
- const s = e.prevDep;
70
- e.version === -1 ? (e === r && (r = s), removeSub(e), removeDep(e)) : o = e, e.dep.activeLink = e.prevActiveLink, e.prevActiveLink = void 0, e = s;
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
- t.deps = o, t.depsTail = r;
72
+ e.deps = o, e.depsTail = r;
73
73
  }
74
- function isDirty(t) {
75
- for (let o = t.deps; o; o = o.nextDep)
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 !!t._dirty;
78
+ return !!e._dirty;
79
79
  }
80
- function refreshComputed(t) {
81
- if (t.flags & 4 && !(t.flags & 16) || (t.flags &= -17, t.globalVersion === globalVersion))
80
+ function refreshComputed(e) {
81
+ if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === globalVersion))
82
82
  return;
83
- t.globalVersion = globalVersion;
84
- const o = t.dep;
85
- if (t.flags |= 2, o.version > 0 && !t.isSSR && t.deps && !isDirty(t)) {
86
- t.flags &= -3;
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, e = shouldTrack;
90
- activeSub = t, shouldTrack = !0;
89
+ const r = activeSub, t = shouldTrack;
90
+ activeSub = e, shouldTrack = !0;
91
91
  try {
92
- prepareDeps(t);
93
- const s = t.fn(t._value);
94
- (o.version === 0 || hasChanged(s, t._value)) && (t._value = s, o.version++);
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 = e, cleanupDeps(t), t.flags &= -3;
98
+ activeSub = r, shouldTrack = t, cleanupDeps(e), e.flags &= -3;
99
99
  }
100
100
  }
101
- function removeSub(t, o = !1) {
102
- const { dep: r, prevSub: e, nextSub: s } = t;
103
- if (e && (e.nextSub = s, t.prevSub = void 0), s && (s.prevSub = e, t.nextSub = void 0), r.subs === t && (r.subs = e, !e && r.computed)) {
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 n = r.computed.deps; n; n = n.nextDep)
106
- removeSub(n, !0);
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(t) {
111
- const { prevDep: o, nextDep: r } = t;
112
- o && (o.nextDep = r, t.prevDep = void 0), r && (r.prevDep = o, t.nextDep = void 0);
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 e = r.nextDep;
132
- e.prevDep = r.prevDep, r.prevDep && (r.prevDep.nextDep = e), r.prevDep = activeSub.depsTail, r.nextDep = void 0, activeSub.depsTail.nextDep = r, activeSub.depsTail = r, activeSub.deps === r && (activeSub.deps = e);
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(t) {
150
- if (t.dep.sc++, t.sub.flags & 4) {
151
- const o = t.dep.computed;
152
- if (o && !t.dep.subs) {
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 e = o.deps; e; e = e.nextDep)
155
- addSub(e);
154
+ for (let t = o.deps; t; t = t.nextDep)
155
+ addSub(t);
156
156
  }
157
- const r = t.dep.subs;
158
- r !== t && (t.prevSub = r, r && (r.nextSub = t)), t.dep.subs = t;
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((t) => t !== "arguments" && t !== "caller").map((t) => Symbol[t]).filter(isSymbol)
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, e) {
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 = e;
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(t, o, r = !1) {
185
- let e, s;
186
- return isFunction(t) ? e = t : (e = t.get, s = t.set), new ComputedRefImpl(e, s, r);
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 = (t) => {
188
+ const tr = (e) => {
189
189
  const o = inject("translations");
190
- return (o == null ? void 0 : o[t]) || t;
191
- }, _hoisted_1$g = {
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$1 = { class: "ire-min-w-3 !ire-text-2xl" }, _hoisted_17$1 = { class: "!ire-text-sm ire-uppercase" }, _hoisted_18$1 = {
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$1 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_20$1 = { class: "text-sm ire-text-gray-700" }, _hoisted_21$1 = { class: "!text-2xl" }, _hoisted_22$1 = {
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$1 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_24$1 = { class: "!ire-text-2xl ire-capitalize" }, _hoisted_25$1 = { class: "!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 = {
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(t) {
234
- const o = t, r = computed$1(() => {
235
- var e;
236
- return tr((e = o.hoveredData) == null ? void 0 : e.conf);
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 (e, s) => (openBlock(), createElementBlock("div", null, [
309
+ return (t, s) => (openBlock(), createElementBlock("div", null, [
239
310
  createVNode(Transition, { name: "ire-fade-in-out" }, {
240
311
  default: withCtx(() => {
241
- var n, i, u, h, k, x, C, y, v, c, _, a, m, l, d, b, p, $, w, f, g, S, E, D, V;
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
- e.type && e.hoveredData && e.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
244
- e.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
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((n = e.hoveredData) == null ? void 0 : n.floor_number), 1),
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
- (i = e.hoveredData) != null && i.conf || (h = (u = e.hoveredData) == null ? void 0 : u.flats) != null && h.length ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
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
- (x = (k = e.hoveredData) == null ? void 0 : k.counts) != null && x.available ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
252
- createElementVNode("div", _hoisted_10$3, toDisplayString(((y = (C = e.hoveredData) == null ? void 0 : C.counts) == null ? void 0 : y.available) || 0), 1),
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 = (v = e.hoveredData) == null ? void 0 : v.counts) != null && c.reserved ? (openBlock(), createElementBlock("div", _hoisted_12$3, [
256
- createElementVNode("div", _hoisted_13$2, toDisplayString((a = (_ = e.hoveredData) == null ? void 0 : _.counts) == null ? void 0 : a.reserved), 1),
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
- (l = (m = e.hoveredData) == null ? void 0 : m.counts) != null && l.sold ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
260
- createElementVNode("div", _hoisted_16$1, toDisplayString((b = (d = e.hoveredData) == null ? void 0 : d.counts) == null ? void 0 : b.sold), 1),
261
- createElementVNode("div", _hoisted_17$1, toDisplayString(unref(tr)("sold")), 1)
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
- ])) : e.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_18$1, [
266
- createElementVNode("div", _hoisted_19$1, [
267
- createElementVNode("span", _hoisted_20$1, toDisplayString(r.value), 1),
268
- createElementVNode("div", _hoisted_21$1, toDisplayString((p = e.hoveredData) == null ? void 0 : p.title), 1)
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
- ])) : e.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_22$1, [
271
- createElementVNode("div", _hoisted_23$1, [
272
- createElementVNode("div", _hoisted_24$1, toDisplayString(($ = e.hoveredData) == null ? void 0 : $.flat_number), 1),
273
- createElementVNode("div", _hoisted_25$1, toDisplayString(unref(tr)("apartment")), 1)
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
- (w = e.hoveredData) != null && w.price ? (openBlock(), createElementBlock("div", _hoisted_29$1, [
349
+ (x = t.hoveredData) != null && x.price ? (openBlock(), createElementBlock("div", _hoisted_29$1, [
279
350
  createElementVNode("div", null, [
280
- (f = e.hoveredData) != null && f.offer_price ? (openBlock(), createElementBlock("div", _hoisted_31$1, [
281
- createElementVNode("div", _hoisted_32, toDisplayString(Number((g = e.hoveredData) == null ? void 0 : g.price).toLocaleString("fr-FR")), 1),
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((S = e.hoveredData) == null ? void 0 : S.offer_price).toLocaleString("fr-FR")) + " ", 1),
284
- createElementVNode("span", null, toDisplayString(unref(tr)("$")), 1)
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(e.hoveredData.price).toLocaleString("fr-FR")) + " ", 1),
288
- createElementVNode("span", null, toDisplayString(unref(tr)("$")), 1)
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((V = Number(
297
- (D = (E = e.hoveredData) == null ? void 0 : E.type) == null ? void 0 : D.area_m2
298
- )) == null ? void 0 : V.toLocaleString("fr-FR")) + " m", 1),
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 = { class: "tooltip-2 ire-flex ire-h-32 ire-w-32 ire-origin-top ire-items-center ire-justify-center ire-rounded-full ire-bg-black ire-p-4 ire-text-white ire-transition-transform ire-duration-500 ire-ease-in-out" }, _hoisted_2$9 = {
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-capitalize"
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
- }, _hoisted_7$2 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_8$2 = { class: "ire-text-gray-300 ire-opacity-80" }, _hoisted_9$2 = {
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
- }, _hoisted_10$2 = { class: "ire-line-clamp-2 ire-max-w-52 ire-text-center !ire-text-sm ire-capitalize" }, _hoisted_11$2 = {
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: "!ire-text-sm ire-uppercase"
328
- }, _hoisted_12$2 = {
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-items-center"
331
- }, _hoisted_13$1 = { class: "ire-whitespace-nowrap !ire-text-sm" }, _hoisted_14$1 = { class: "ire-right-[2px] !ire-text-sm ire-text-gray-200" }, _hoisted_15$1 = { class: "ire-whitespace-nowrap !ire-text-sm" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
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(t) {
338
- const o = t, r = inject("mouseX"), e = inject("mouseY"), s = computed$1(() => {
339
- var n;
340
- return tr((n = o.hoveredData) == null ? void 0 : n.conf);
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 (n, i) => (openBlock(), createBlock(Transition, { name: "ire-fade-in" }, {
409
+ return (i, l) => (openBlock(), createBlock(Transition, { name: "ire-fade-in-out" }, {
343
410
  default: withCtx(() => {
344
- var u, h, k, x, C, y, v, c, _;
411
+ var f, v, y, E, w, b, _, c, p, a, h, n, d, g;
345
412
  return [
346
- n.type && n.hoveredData && n.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
413
+ i.type && i.hoveredData && i.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
347
414
  key: 0,
348
- class: "ire-pointer-events-none ire-absolute ire-left-0 ire-top-0 ire-select-none",
349
- style: normalizeStyle({
350
- transform: `translateX(${unref(r) || 0}px) translateY(${unref(e) || 0}px)`
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", _hoisted_1$f, [
354
- n.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
355
- createElementVNode("div", _hoisted_3$8, [
356
- createElementVNode("span", null, toDisplayString(unref(tr)("floor")), 1),
357
- createTextVNode(": " + toDisplayString((u = n.hoveredData) == null ? void 0 : u.floor_number), 1)
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
- s.value ? (openBlock(), createElementBlock("div", _hoisted_4$6, toDisplayString(s.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_5$2, [
360
- createElementVNode("span", null, toDisplayString(unref(tr)("available")), 1),
361
- createTextVNode(": " + toDisplayString(((k = (h = n.hoveredData) == null ? void 0 : h.counts) == null ? void 0 : k.available) || 0), 1)
362
- ]))
363
- ])) : n.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
364
- createElementVNode("div", _hoisted_7$2, [
365
- createElementVNode("div", null, toDisplayString((x = n.hoveredData) == null ? void 0 : x.title), 1),
366
- createElementVNode("span", _hoisted_8$2, toDisplayString(s.value), 1)
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
- ])) : n.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_9$2, [
369
- createElementVNode("div", _hoisted_10$2, toDisplayString((C = n.hoveredData) == null ? void 0 : C.flat_number), 1),
370
- s.value ? (openBlock(), createElementBlock("div", _hoisted_11$2, toDisplayString(s.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_12$2, [
371
- createElementVNode("div", null, [
372
- createElementVNode("div", _hoisted_13$1, [
373
- createTextVNode(toDisplayString(Number((y = n.hoveredData) == null ? void 0 : y.price).toLocaleString("fr-FR")) + " ", 1),
374
- createElementVNode("span", _hoisted_14$1, toDisplayString(unref(tr)("$")), 1)
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
- ], 4)) : createCommentVNode("", !0)
481
+ ], 2)
482
+ ], 6)) : createCommentVNode("", !0)
387
483
  ];
388
484
  }),
389
485
  _: 1
390
486
  }));
391
487
  }
392
- }), _hoisted_1$e = { class: "tooltip-2 ire-flex ire-w-fit ire-origin-top ire-items-center ire-justify-center ire-rounded-2xl ire-border ire-bg-white ire-p-4 ire-transition-transform ire-duration-500 ire-ease-in-out" }, _hoisted_2$8 = {
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(t) {
503
+ setup(e) {
408
504
  const o = inject("mouseX"), r = inject("mouseY");
409
- return (e, s) => (openBlock(), createBlock(Transition, { name: "ire-fade-in" }, {
505
+ return (t, s) => (openBlock(), createBlock(Transition, { name: "ire-fade-in" }, {
410
506
  default: withCtx(() => {
411
- var n, i, u;
507
+ var i, l, f;
412
508
  return [
413
- e.type && e.hoveredData && e.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
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
- e.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
517
+ t.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
422
518
  createElementVNode("div", _hoisted_3$7, [
423
- createElementVNode("div", _hoisted_4$5, toDisplayString((n = e.hoveredData) == null ? void 0 : n.floor_number), 1),
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
- ])) : e.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
522
+ ])) : t.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
427
523
  createElementVNode("div", _hoisted_7$1, [
428
- createElementVNode("div", _hoisted_8$1, toDisplayString((i = e.hoveredData) == null ? void 0 : i.title), 1)
524
+ createElementVNode("div", _hoisted_8$1, toDisplayString((l = t.hoveredData) == null ? void 0 : l.title), 1)
429
525
  ])
430
- ])) : e.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
526
+ ])) : t.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
431
527
  createElementVNode("div", _hoisted_10$1, [
432
- createElementVNode("div", _hoisted_11$1, toDisplayString((u = e.hoveredData) == null ? void 0 : u.flat_number), 1),
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(t) {
453
- const o = inject("shortcodeData"), r = inject("showFlatModal"), e = ref(), s = ref(!0), n = computed$1(() => {
454
- var i;
455
- return ((i = o.meta.find((u) => u.meta_key === "tooltip")) == null ? void 0 : i.meta_value) || "1";
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
- ), (i, u) => (openBlock(), createElementBlock("div", {
560
+ ), (l, f) => (openBlock(), createElementBlock("div", {
465
561
  ref_key: "canvasRef",
466
- ref: e,
467
- class: "ire-relative ire-overflow-hidden ire-pt-3 [&_.tooltip-2]:active:!ire-scale-110"
562
+ ref: t,
563
+ class: "ire-group ire-relative ire-overflow-hidden ire-pt-3"
468
564
  }, [
469
- i.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
470
- renderSlot(i.$slots, "header")
565
+ l.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
566
+ renderSlot(l.$slots, "header")
471
567
  ])) : createCommentVNode("", !0),
472
- renderSlot(i.$slots, "default"),
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
- n.value === "2" ? (openBlock(), createBlock(_sfc_main$i, {
572
+ i.value === "2" ? (openBlock(), createBlock(_sfc_main$i, {
477
573
  key: 0,
478
- "hovered-data": i.hoverdData,
479
- type: i.type || "",
480
- class: "ire-hidden lg:ire-flex"
481
- }, null, 8, ["hovered-data", "type"])) : n.value === "3" ? (openBlock(), createBlock(_sfc_main$h, {
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": i.hoverdData,
484
- type: i.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$j, {
583
+ }, null, 8, ["hovered-data", "type"])) : i.value === "4" ? (openBlock(), createBlock(_sfc_main$h, {
487
584
  key: 2,
488
- "hovered-data": i.hoverdData,
489
- type: i.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 = (t) => activePinia = t, piniaSymbol = (
607
+ const setActivePinia = (e) => activePinia = e, piniaSymbol = (
506
608
  /* istanbul ignore next */
507
609
  Symbol()
508
610
  );
509
- function isPlainObject(t) {
510
- return t && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && typeof t.toJSON != "function";
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(t) {
514
- t.direct = "direct", t.patchObject = "patch object", t.patchFunction = "patch function";
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 t = effectScope(!0), o = t.run(() => ref({}));
518
- let r = [], e = [];
619
+ const e = effectScope(!0), o = e.run(() => ref({}));
620
+ let r = [], t = [];
519
621
  const s = markRaw({
520
- install(n) {
521
- setActivePinia(s), s._a = n, n.provide(piniaSymbol, s), n.config.globalProperties.$pinia = s, e.forEach((i) => r.push(i)), e = [];
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(n) {
524
- return this._a ? r.push(n) : e.push(n), this;
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: t,
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(t, o, r, e = noop) {
539
- t.push(o);
640
+ function addSubscription(e, o, r, t = noop) {
641
+ e.push(o);
540
642
  const s = () => {
541
- const n = t.indexOf(o);
542
- n > -1 && (t.splice(n, 1), e());
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(t, ...o) {
547
- t.slice().forEach((r) => {
648
+ function triggerSubscriptions(e, ...o) {
649
+ e.slice().forEach((r) => {
548
650
  r(...o);
549
651
  });
550
652
  }
551
- const fallbackRunWithContext = (t) => t(), ACTION_MARKER = Symbol(), ACTION_NAME = Symbol();
552
- function mergeReactiveObjects(t, o) {
553
- t instanceof Map && o instanceof Map ? o.forEach((r, e) => t.set(e, r)) : t instanceof Set && o instanceof Set && o.forEach(t.add, t);
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 e = o[r], s = t[r];
558
- isPlainObject(s) && isPlainObject(e) && t.hasOwnProperty(r) && !isRef(e) && !isReactive(e) ? t[r] = mergeReactiveObjects(s, e) : t[r] = e;
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 t;
662
+ return e;
561
663
  }
562
664
  const skipHydrateSymbol = (
563
665
  /* istanbul ignore next */
564
666
  Symbol()
565
667
  );
566
- function shouldHydrate(t) {
567
- return !isPlainObject(t) || !t.hasOwnProperty(skipHydrateSymbol);
668
+ function shouldHydrate(e) {
669
+ return !isPlainObject(e) || !e.hasOwnProperty(skipHydrateSymbol);
568
670
  }
569
671
  const { assign } = Object;
570
- function isComputed(t) {
571
- return !!(isRef(t) && t.effect);
672
+ function isComputed(e) {
673
+ return !!(isRef(e) && e.effect);
572
674
  }
573
- function createOptionsStore(t, o, r, e) {
574
- const { state: s, actions: n, getters: i } = o, u = r.state.value[t];
575
- let h;
576
- function k() {
577
- u || (r.state.value[t] = s ? s() : {});
578
- const x = toRefs(r.state.value[t]);
579
- return assign(x, n, Object.keys(i || {}).reduce((C, y) => (C[y] = markRaw(computed$1(() => {
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 v = r._s.get(t);
582
- return i[y].call(v, v);
583
- })), C), {}));
683
+ const _ = r._s.get(e);
684
+ return l[b].call(_, _);
685
+ })), w), {}));
584
686
  }
585
- return h = createSetupStore(t, k, o, r, e, !0), h;
687
+ return v = createSetupStore(e, y, o, r, t, !0), v;
586
688
  }
587
- function createSetupStore(t, o, r = {}, e, s, n) {
588
- let i;
589
- const u = assign({ actions: {} }, r), h = { deep: !0 };
590
- let k, x, C = [], y = [], v;
591
- const c = e.state.value[t];
592
- !n && !c && (e.state.value[t] = {}), ref({});
593
- let _;
594
- function a(f) {
595
- let g;
596
- k = x = !1, typeof f == "function" ? (f(e.state.value[t]), g = {
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: t,
599
- events: v
600
- }) : (mergeReactiveObjects(e.state.value[t], f), g = {
700
+ storeId: e,
701
+ events: _
702
+ }) : (mergeReactiveObjects(t.state.value[e], m), k = {
601
703
  type: MutationType.patchObject,
602
- payload: f,
603
- storeId: t,
604
- events: v
704
+ payload: m,
705
+ storeId: e,
706
+ events: _
605
707
  });
606
- const S = _ = Symbol();
708
+ const V = p = Symbol();
607
709
  nextTick().then(() => {
608
- _ === S && (k = !0);
609
- }), x = !0, triggerSubscriptions(C, g, e.state.value[t]);
710
+ p === V && (y = !0);
711
+ }), E = !0, triggerSubscriptions(w, k, t.state.value[e]);
610
712
  }
611
- const m = n ? function() {
612
- const { state: g } = r, S = g ? g() : {};
613
- this.$patch((E) => {
614
- assign(E, S);
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 l() {
621
- i.stop(), C = [], y = [], e._s.delete(t);
722
+ function n() {
723
+ l.stop(), w = [], b = [], t._s.delete(e);
622
724
  }
623
- const d = (f, g = "") => {
624
- if (ACTION_MARKER in f)
625
- return f[ACTION_NAME] = g, f;
626
- const S = function() {
627
- setActivePinia(e);
628
- const E = Array.from(arguments), D = [], V = [];
629
- function N(B) {
630
- D.push(B);
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 T(B) {
633
- V.push(B);
734
+ function M(N) {
735
+ C.push(N);
634
736
  }
635
- triggerSubscriptions(y, {
636
- args: E,
637
- name: S[ACTION_NAME],
638
- store: p,
639
- after: N,
640
- onError: T
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 = f.apply(this && this.$id === t ? this : p, E);
645
- } catch (B) {
646
- throw triggerSubscriptions(V, B), B;
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((B) => (triggerSubscriptions(D, B), B)).catch((B) => (triggerSubscriptions(V, B), Promise.reject(B))) : (triggerSubscriptions(D, R), R);
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 S[ACTION_MARKER] = !0, S[ACTION_NAME] = g, S;
651
- }, b = {
652
- _p: e,
752
+ return V[ACTION_MARKER] = !0, V[ACTION_NAME] = k, V;
753
+ }, g = {
754
+ _p: t,
653
755
  // _s: scope,
654
- $id: t,
655
- $onAction: addSubscription.bind(null, y),
756
+ $id: e,
757
+ $onAction: addSubscription.bind(null, b),
656
758
  $patch: a,
657
- $reset: m,
658
- $subscribe(f, g = {}) {
659
- const S = addSubscription(C, f, g.detached, () => E()), E = i.run(() => watch(() => e.state.value[t], (D) => {
660
- (g.flush === "sync" ? x : k) && f({
661
- storeId: t,
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: v
765
+ events: _
664
766
  }, D);
665
- }, assign({}, h, g)));
666
- return S;
767
+ }, assign({}, v, k)));
768
+ return V;
667
769
  },
668
- $dispose: l
669
- }, p = reactive(b);
670
- e._s.set(t, p);
671
- const w = (e._a && e._a.runWithContext || fallbackRunWithContext)(() => e._e.run(() => (i = effectScope()).run(() => o({ action: d }))));
672
- for (const f in w) {
673
- const g = w[f];
674
- if (isRef(g) && !isComputed(g) || isReactive(g))
675
- n || (c && shouldHydrate(g) && (isRef(g) ? g.value = c[f] : mergeReactiveObjects(g, c[f])), e.state.value[t][f] = g);
676
- else if (typeof g == "function") {
677
- const S = d(g, f);
678
- w[f] = S, u.actions[f] = g;
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(p, w), assign(toRaw(p), w), Object.defineProperty(p, "$state", {
682
- get: () => e.state.value[t],
683
- set: (f) => {
684
- a((g) => {
685
- assign(g, f);
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
- }), e._p.forEach((f) => {
689
- assign(p, i.run(() => f({
690
- store: p,
691
- app: e._a,
692
- pinia: e,
693
- options: u
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 && n && r.hydrate && r.hydrate(p.$state, c), k = !0, x = !0, p;
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(t, o, r) {
700
- let e;
801
+ function defineStore(e, o, r) {
802
+ let t;
701
803
  const s = typeof o == "function";
702
- e = s ? r : o;
703
- function n(i, u) {
704
- const h = hasInjectionContext();
705
- return i = // in test mode, ignore the argument provided as we can always retrieve a
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
- i || (h ? inject(piniaSymbol, null) : null), i && setActivePinia(i), i = activePinia, i._s.has(t) || (s ? createSetupStore(t, o, e, i) : createOptionsStore(t, e, i)), i._s.get(t);
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 n.$id = t, n;
811
+ return i.$id = e, i;
710
812
  }
711
813
  const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
712
- const t = ref(), o = ref("1");
814
+ const e = ref(), o = ref("1");
713
815
  return {
714
- hoverdSvg: t,
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(t, { emit: o }) {
729
- const r = o, e = t, s = useGlobalStore(), n = inject("showFlatModal"), i = ref(null), u = ref(), h = ref(null), k = computed(() => {
730
- if (e.project)
731
- return e.project.svg;
732
- }), x = (y) => {
733
- const v = y == null ? void 0 : y.target;
734
- v && (i.value = v);
735
- }, C = (y) => {
736
- var c, _, a;
737
- const v = y.target;
738
- (v == null ? void 0 : v.nodeName) === "path" && (((c = u.value) == null ? void 0 : c.conf) === "sold" || ((_ = u.value) == null ? void 0 : _.conf) === "reserved" || r("changeComponent", ((a = h.value) == null ? void 0 : a.type) || "", u == null ? void 0 : u.value));
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
- () => n == null ? void 0 : n.value,
843
+ () => i == null ? void 0 : i.value,
742
844
  () => {
743
- n != null && n.value || (i.value = null, h.value = null);
845
+ i != null && i.value || (l.value = null, v.value = null);
744
846
  }
745
847
  ), watch(
746
- () => i.value,
747
- (y) => {
748
- var c, _, a, m, l, d, b;
749
- if (!y) return;
750
- s.hoverdSvg = y;
751
- const v = y.parentElement;
752
- if (v && (v == null ? void 0 : v.nodeName) === "g") {
753
- const p = v == null ? void 0 : v.getAttribute("id");
754
- if (!p || (h.value = ((c = e.project) == null ? void 0 : c.polygon_data.find((w) => (w == null ? void 0 : w.key) === p)) || null, !h.value)) return;
755
- const $ = (_ = h.value) == null ? void 0 : _.id;
756
- switch ((a = h.value) == null ? void 0 : a.type) {
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 w = (m = e.floors) == null ? void 0 : m.find(
759
- (E) => E.id === $
860
+ const x = (h = t.floors) == null ? void 0 : h.find(
861
+ (S) => S.id === $
760
862
  );
761
- u.value = w;
863
+ f.value = x;
762
864
  break;
763
865
  case "block":
764
- const f = (l = e.blocks) == null ? void 0 : l.find(
765
- (E) => (E == null ? void 0 : E.id) === $
866
+ const m = (n = t.blocks) == null ? void 0 : n.find(
867
+ (S) => (S == null ? void 0 : S.id) === $
766
868
  );
767
- u.value = f;
869
+ f.value = m;
768
870
  break;
769
871
  case "flat":
770
- const g = (d = e.flats) == null ? void 0 : d.find(
771
- (E) => (E == null ? void 0 : E.id) === $
872
+ const k = (d = t.flats) == null ? void 0 : d.find(
873
+ (S) => (S == null ? void 0 : S.id) === $
772
874
  );
773
- u.value = g;
875
+ f.value = k;
774
876
  break;
775
877
  case "tooltip":
776
- const S = (b = e.actions) == null ? void 0 : b.find(
777
- (E) => (E == null ? void 0 : E.id) === $
878
+ const V = (g = t.actions) == null ? void 0 : g.find(
879
+ (S) => (S == null ? void 0 : S.id) === $
778
880
  );
779
- u.value = S;
881
+ f.value = V;
780
882
  break;
781
883
  default:
782
- u.value = null;
884
+ f.value = null;
783
885
  break;
784
886
  }
785
887
  } else
786
- h.value = null, u.value = null;
888
+ v.value = null, f.value = null;
787
889
  }
788
- ), (y, v) => {
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: u.value,
792
- type: (c = h.value) == null ? void 0 : c.type,
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 _, a, m, l, d, b;
901
+ var p, a, h, n, d, g;
797
902
  return [
798
903
  createElementVNode("div", _hoisted_1$c, [
799
904
  createElementVNode("img", {
800
- src: (m = (a = (_ = y.project) == null ? void 0 : _.project_image) == null ? void 0 : a[0]) == null ? void 0 : m.url,
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(k),
806
- key: unref(k),
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)]": u.value && ((l = u.value) == null ? void 0 : l.conf) === "reserved",
810
- "hover:[&_path]:ire-fill-[var(--sold-color)]": u.value && ((d = u.value) == null ? void 0 : d.conf) === "sold",
811
- "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((b = u.value) != null && b.conf)
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: C
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(t) {
840
- const o = useModel(t, "modelValue");
841
- return (r, e) => (openBlock(), createElementBlock("div", _hoisted_1$b, [
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": e[0] || (e[0] = (s) => o.value = s),
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 n, i;
954
+ var i, l;
850
955
  return openBlock(), createElementBlock("option", {
851
956
  value: s.value,
852
- disabled: ((n = s == null ? void 0 : s.title) == null ? void 0 : n.includes("reserved")) || ((i = s == null ? void 0 : s.title) == null ? void 0 : i.includes("sold"))
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
- e[1] || (e[1] = createElementVNode("svg", {
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(t, o) {
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(t) {
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("p", _hoisted_2$5, toDisplayString(unref(tr)("back")), 1)
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(t, { emit: o }) {
909
- const r = o, e = t, s = useGlobalStore(), n = inject("showFlatModal"), i = ref(), u = ref(null), h = ref(), k = ref(null), x = ref(), C = ref(), y = computed$1(() => {
910
- var l;
911
- if ((l = e.floor) != null && l.svg)
912
- return e.floor.svg;
913
- }), v = computed$1(() => e.floors.filter(
914
- (l) => {
915
- var d, b;
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 = e.floor) != null && d.block_id ? (l == null ? void 0 : l.block_id) === ((b = e.floor) == null ? void 0 : b.block_id) : !(l != null && l.block_id)
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((l) => {
923
- var b, p;
924
- const d = (b = e.blocks) == null ? void 0 : b.find(
1027
+ ).map((n) => {
1028
+ var g, u;
1029
+ const d = (g = t.blocks) == null ? void 0 : g.find(
925
1030
  ($) => {
926
- var w;
927
- return ($ == null ? void 0 : $.id) === ((w = l == null ? void 0 : l.block_id) == null ? void 0 : w.toString());
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: ((p = l == null ? void 0 : l.floor_number) == null ? void 0 : p.toString()) + " Floor" + (d != null && d.id ? ` - ${d == null ? void 0 : d.title}` : "") + (l != null && l.conf ? " " + l.conf : ""),
932
- value: l == null ? void 0 : l.id
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((l, d) => +(l == null ? void 0 : l.title) - +(d == null ? void 0 : d.title)) || []), c = (l) => {
935
- const d = l.target;
936
- d && (u.value = d);
937
- }, _ = (l) => {
938
- var b, p, $;
939
- const d = l.target;
940
- (d == null ? void 0 : d.nodeName) === "path" && (k.value && "conf" in k.value && (((b = k.value) == null ? void 0 : b.conf) === "sold" || ((p = k.value) == null ? void 0 : p.conf) === "reserved") || r("changeComponent", (($ = h.value) == null ? void 0 : $.type) || "", k.value));
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 l;
943
- i.value && ((l = i.value) == null ? void 0 : l.querySelectorAll("g")).forEach((b) => {
944
- var w, f, g, S, E, D;
945
- const p = b == null ? void 0 : b.getAttribute("id"), $ = (f = (w = e.floor) == null ? void 0 : w.polygon_data) == null ? void 0 : f.find(
946
- (V) => (V == null ? void 0 : V.key) === p
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 (e.flats)
949
- if ((g = e.floor) != null && g.conf)
950
- b.setAttribute("conf", ((S = e.floor) == null ? void 0 : S.conf) || "");
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 V = (E = e.flats) == null ? void 0 : E.find(
953
- (N) => (N == null ? void 0 : N.id) === ($ == null ? void 0 : $.id)
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
- b == null || b.setAttribute("conf", ((D = V == null ? void 0 : V.conf) == null ? void 0 : D.toString()) || "");
1060
+ g == null || g.setAttribute("conf", ((D = C == null ? void 0 : C.conf) == null ? void 0 : D.toString()) || "");
956
1061
  }
957
1062
  });
958
- }, m = () => {
959
- var l;
960
- (l = e.floor) != null && l.block_id ? r("changeComponent", "block", C.value) : r("changeComponent", "project", null);
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
- () => u.value,
964
- (l) => {
965
- var b, p, $, w, f, g;
966
- if (!l) return;
967
- s.hoverdSvg = l;
968
- const d = l == null ? void 0 : l.parentElement;
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 S = d.getAttribute("id");
971
- if (!S || (h.value = ((p = (b = e.floor) == null ? void 0 : b.polygon_data) == null ? void 0 : p.find((E) => (E == null ? void 0 : E.key) === S)) || null, !h.value)) return;
972
- if ((($ = h.value) == null ? void 0 : $.type) === "flat") {
973
- const E = (w = e.flats) == null ? void 0 : w.find(
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 V;
976
- return (D == null ? void 0 : D.id) === ((V = h.value) == null ? void 0 : V.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
- k.value = E ?? null;
980
- } else if (((f = h.value) == null ? void 0 : f.type) === "tooltip") {
981
- const E = (g = e.actions) == null ? void 0 : g.find(
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 V;
984
- return (D == null ? void 0 : D.id) === ((V = h.value) == null ? void 0 : V.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
- k.value = E ?? null;
1092
+ y.value = S ?? null;
988
1093
  } else
989
- k.value = null;
1094
+ y.value = null;
990
1095
  } else
991
- h.value = null;
1096
+ v.value = null;
992
1097
  }
993
1098
  ), watch(
994
- () => n == null ? void 0 : n.value,
1099
+ () => i == null ? void 0 : i.value,
995
1100
  () => {
996
- n != null && n.value || (u.value = null, h.value = null);
1101
+ i != null && i.value || (f.value = null, v.value = null);
997
1102
  }
998
1103
  ), watch(
999
- () => x.value,
1104
+ () => E.value,
1000
1105
  () => {
1001
1106
  var d;
1002
- const l = (d = e.floors) == null ? void 0 : d.find(
1003
- (b) => (b == null ? void 0 : b.id) === (x == null ? void 0 : x.value)
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
- l != null && l.conf || (l && r("changeComponent", "floor", l), setTimeout(() => {
1110
+ n != null && n.conf || (n && r("changeComponent", "floor", n), setTimeout(() => {
1006
1111
  a();
1007
1112
  }, 0));
1008
1113
  }
1009
1114
  ), onMounted(() => {
1010
- var l, d, b;
1011
- C.value = (l = e.blocks) == null ? void 0 : l.find(
1012
- (p) => {
1013
- var $, w;
1014
- return (p == null ? void 0 : p.id) === ((w = ($ = e.floor) == null ? void 0 : $.block_id) == null ? void 0 : w.toString());
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
- ), x.value = (b = (d = v.value) == null ? void 0 : d.find(
1017
- (p) => {
1121
+ ), E.value = (g = (d = _.value) == null ? void 0 : d.find(
1122
+ (u) => {
1018
1123
  var $;
1019
- return (p == null ? void 0 : p.value) == (($ = e.floor) == null ? void 0 : $.id);
1124
+ return (u == null ? void 0 : u.value) == (($ = t.floor) == null ? void 0 : $.id);
1020
1125
  }
1021
- )) == null ? void 0 : b.value, a();
1022
- }), (l, d) => {
1023
- var b;
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: k.value,
1026
- type: (b = h.value) == null ? void 0 : b.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: m }),
1136
+ createVNode(_sfc_main$c, { onClick: h }),
1031
1137
  createElementVNode("div", _hoisted_1$8, [
1032
1138
  createVNode(_sfc_main$e, {
1033
- modelValue: x.value,
1034
- "onUpdate:modelValue": d[0] || (d[0] = (p) => x.value = p),
1035
- data: v.value
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 p, $, w;
1146
+ var u, $, x;
1041
1147
  return [
1042
1148
  createElementVNode("div", _hoisted_2$4, [
1043
1149
  createElementVNode("img", {
1044
- src: ((w = ($ = (p = l.floor) == null ? void 0 : p.floor_image) == null ? void 0 : $[0]) == null ? void 0 : w.url) || "",
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: i,
1051
- innerHTML: y.value,
1052
- key: y.value,
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(t, o) {
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(t, o) {
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(t, { emit: o }) {
1136
- const r = t, e = ref(!1), s = ref(0), n = computed$1(() => {
1137
- var u, h, k, x, C, y;
1138
- const i = e.value ? (k = (h = (u = r.flat) == null ? void 0 : u.type) == null ? void 0 : h.image_2d) == null ? void 0 : k.length : (y = (C = (x = r.flat) == null ? void 0 : x.type) == null ? void 0 : C.image_3d) == null ? void 0 : y.length;
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
- () => e.value,
1248
+ () => r.value,
1143
1249
  () => {
1144
- s.value = 0;
1250
+ t.value = 0;
1145
1251
  }
1146
1252
  ), onMounted(() => {
1147
- var i, u;
1148
- Object.keys(((u = (i = r.flat) == null ? void 0 : i.type) == null ? void 0 : u.image_3d) || {}).length || (e.value = !0);
1149
- }), (i, u) => {
1150
- var h, k, x, C, y, v, c, _, a, m, l, d, b, p, $, w, f, g, S, E, D, V, N, T, R, B, P, O, A, F, I;
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, M, L, z, H, W, X, Y, K, U, q, Z, J, Q, G, ee, te, oe, re, ie, se, ne, le, ae;
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
- e.value && ((z = (L = (M = (j = i.flat) == null ? void 0 : j.type) == null ? void 0 : M.image_2d) == null ? void 0 : L[s.value]) != null && z.url) ? (openBlock(), createElementBlock("img", {
1162
- key: (Y = (X = (W = (H = i.flat) == null ? void 0 : H.type) == null ? void 0 : W.image_2d) == null ? void 0 : X[s.value]) == null ? void 0 : Y.url,
1163
- src: (Z = (q = (U = (K = i.flat) == null ? void 0 : K.type) == null ? void 0 : U.image_2d) == null ? void 0 : q[s.value]) == null ? void 0 : Z.url,
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)) : (ee = (G = (Q = (J = i.flat) == null ? void 0 : J.type) == null ? void 0 : Q.image_3d) == null ? void 0 : G[s.value]) != null && ee.url ? (openBlock(), createElementBlock("img", {
1166
- src: (ie = (re = (oe = (te = i.flat) == null ? void 0 : te.type) == null ? void 0 : oe.image_3d) == null ? void 0 : re[s.value]) == null ? void 0 : ie.url,
1167
- key: (ae = (le = (ne = (se = i.flat) == null ? void 0 : se.type) == null ? void 0 : ne.image_3d) == null ? void 0 : le[s.value]) == null ? void 0 : ae.url,
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
- (C = (x = (k = (h = i.flat) == null ? void 0 : h.type) == null ? void 0 : k.image_3d) == null ? void 0 : x[0]) != null && C.url ? (openBlock(), createElementBlock("div", {
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": !e.value }]),
1179
- onClick: u[0] || (u[0] = (j) => e.value = !1)
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": !e.value }])
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": !e.value,
1189
- "!ire-text-black": e.value
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
- (_ = (c = (v = (y = i.flat) == null ? void 0 : y.type) == null ? void 0 : v.image_2d) == null ? void 0 : c[0]) != null && _.url ? (openBlock(), createElementBlock("div", {
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": e.value }]),
1196
- onClick: u[1] || (u[1] = (j) => e.value = !0)
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": e.value }])
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": e.value,
1204
- "!ire-text-black": !e.value
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
- ((a = n.value) == null ? void 0 : a.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
1210
- (openBlock(!0), createElementBlock(Fragment, null, renderList(n.value, (j, M) => (openBlock(), createElementBlock("div", {
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": s.value === M
1319
+ "ire-bg-black ire-text-white": t.value === T
1214
1320
  }]),
1215
- onClick: (L) => s.value = M
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((m = i.flat) == null ? void 0 : m.flat_number), 1),
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
- (d = (l = i.flat) == null ? void 0 : l.type) != null && d.title || (p = (b = i.flat) == null ? void 0 : b.type) != null && p.teaser ? (openBlock(), createElementBlock("div", _hoisted_13, [
1226
- createElementVNode("div", _hoisted_14, toDisplayString((w = ($ = i.flat) == null ? void 0 : $.type) == null ? void 0 : w.title), 1),
1227
- createElementVNode("div", _hoisted_15, toDisplayString((g = (f = i.flat) == null ? void 0 : f.type) == null ? void 0 : g.teaser), 1)
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
- (S = i.flat) != null && S.floor_number ? (openBlock(), createElementBlock("div", _hoisted_17, [
1231
- createElementVNode("div", _hoisted_18, toDisplayString((E = i.flat) == null ? void 0 : E.floor_number), 1),
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
- (V = (D = i.flat) == null ? void 0 : D.type) != null && V.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_20, [
1235
- createElementVNode("div", _hoisted_21, toDisplayString((N = i.flat) == null ? void 0 : N.type.rooms_count), 1),
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
- (R = (T = i.flat) == null ? void 0 : T.type) != null && R.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_23, [
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((B = i.flat) == null ? void 0 : B.type.area_m2).toLocaleString("fr-FR")) + " ", 1),
1242
- u[2] || (u[2] = createElementVNode("span", null, [
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
- (P = i.flat) != null && P.price ? (openBlock(), createElementBlock("div", _hoisted_26, [
1355
+ (N = i.flat) != null && N.price ? (openBlock(), createElementBlock("div", _hoisted_26, [
1250
1356
  createElementVNode("div", null, [
1251
- (O = i.flat) != null && O.offer_price ? (openBlock(), createElementBlock("div", _hoisted_28, [
1252
- createElementVNode("div", _hoisted_29, toDisplayString(Number((F = i.flat) == null ? void 0 : F.price).toLocaleString("fr-FR")), 1),
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((I = i.flat) == null ? void 0 : I.offer_price).toLocaleString("fr-FR")) + " ", 1),
1255
- createElementVNode("span", null, toDisplayString(unref(tr)("$")), 1)
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((A = i.flat) == null ? void 0 : A.price).toLocaleString("fr-FR")) + " ", 1),
1259
- createElementVNode("span", null, toDisplayString(unref(tr)("$")), 1)
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(t, o) {
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-h-fit ire-max-h-[95svh] ire-min-w-full ire-max-w-[1280px] ire-cursor-default ire-overflow-y-auto ire-rounded-lg ire-bg-white lg:ire-min-w-[500px]" }, _hoisted_3$2 = { class: "ire-h-full ire-w-full ire-cursor-auto" }, _hoisted_4$1 = { class: "ire-absolute ire-right-0 ire-top-0 ire-flex ire-w-full ire-flex-row-reverse" }, _sfc_main$6 = /* @__PURE__ */ defineComponent({
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(t) {
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
- document.body.style.overflow = "auto", document.body.style.paddingRight = "0";
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] = (e) => o.$emit("close"))
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", _hoisted_4$1, [
1299
- createElementVNode("div", {
1300
- class: "ire-z-[999] ire-mx-3 ire-my-2 ire-w-fit ire-cursor-pointer ire-rounded-full ire-p-1 ire-transition-all hover:ire-bg-gray-600 [&_path]:ire-fill-gray-400 [&_path]:hover:ire-fill-white [&_svg]:ire-h-3 [&_svg]:ire-w-3",
1301
- onClick: r[1] || (r[1] = (e) => o.$emit("close"))
1302
- }, [
1303
- createVNode(Close)
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(t) {
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(t) {
1435
+ setup(e) {
1328
1436
  return (o, r) => {
1329
- var e, s, n, i, u, h, k, x, C, y, v, c;
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 = (e = o.modalData) == null ? void 0 : e.modalObject) == null ? void 0 : s.title), 1),
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: (i = (n = o.modalData) == null ? void 0 : n.modalObject) == null ? void 0 : i.description
1441
+ editor: (l = (i = o.modalData) == null ? void 0 : i.modalObject) == null ? void 0 : l.description
1334
1442
  }, null, 8, ["editor"]),
1335
- (x = (k = (h = (u = o.modalData) == null ? void 0 : u.modalObject) == null ? void 0 : h.modalImage) == null ? void 0 : k[0]) != null && x.url ? (openBlock(), createElementBlock("img", {
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 = (v = (y = (C = o.modalData) == null ? void 0 : C.modalObject) == null ? void 0 : y.modalImage) == null ? void 0 : v[0]) == null ? void 0 : c.url,
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(t, { emit: o }) {
1354
- const r = o, e = t, s = useGlobalStore(), n = inject("showFlatModal"), i = ref(), u = ref(null), h = ref(), k = ref(), x = computed$1(() => {
1355
- var v, c;
1356
- if ((v = e.block) != null && v.svg)
1357
- return (c = e.block) == null ? void 0 : c.svg;
1358
- }), C = (v) => {
1359
- const c = v.target;
1360
- c && (u.value = c);
1361
- }, y = (v) => {
1362
- var _, a, m;
1363
- const c = v.target;
1364
- (c == null ? void 0 : c.nodeName) === "path" && (((_ = k.value) == null ? void 0 : _.conf) === "sold" || ((a = k.value) == null ? void 0 : a.conf) === "reserved" || r(
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
- ((m = h.value) == null ? void 0 : m.type) || "",
1367
- k.value
1474
+ ((h = v.value) == null ? void 0 : h.type) || "",
1475
+ y.value
1368
1476
  ));
1369
1477
  };
1370
1478
  return watch(
1371
- () => n == null ? void 0 : n.value,
1479
+ () => i == null ? void 0 : i.value,
1372
1480
  () => {
1373
- n != null && n.value || (u.value = null, h.value = null);
1481
+ i != null && i.value || (f.value = null, v.value = null);
1374
1482
  }
1375
1483
  ), watch(
1376
- () => u.value,
1377
- (v) => {
1378
- var _, a, m, l, d, b, p, $;
1379
- if (!v) return;
1380
- s.hoverdSvg = v;
1381
- const c = v == null ? void 0 : v.parentElement;
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 w = c == null ? void 0 : c.getAttribute("id");
1384
- if (!w || (h.value = ((a = (_ = e.block) == null ? void 0 : _.polygon_data) == null ? void 0 : a.find((f) => (f == null ? void 0 : f.key) === w)) || null, !h.value)) return;
1385
- if (((m = h.value) == null ? void 0 : m.type) === "floor") {
1386
- const f = (l = e.floors) == null ? void 0 : l.find(
1387
- (g) => {
1388
- var S;
1389
- return (g == null ? void 0 : g.id) === ((S = h.value) == null ? void 0 : S.id);
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
- k.value = f;
1393
- } else if (((d = h.value) == null ? void 0 : d.type) === "flat") {
1394
- const f = (b = e.flats) == null ? void 0 : b.find(
1395
- (g) => {
1396
- var S;
1397
- return (g == null ? void 0 : g.id) === ((S = h.value) == null ? void 0 : S.id);
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
- k.value = f;
1401
- } else if (((p = h.value) == null ? void 0 : p.type) === "tooltip") {
1402
- const f = ($ = e.actions) == null ? void 0 : $.find(
1403
- (g) => {
1404
- var S;
1405
- return (g == null ? void 0 : g.id) === ((S = h.value) == null ? void 0 : S.id);
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
- k.value = f;
1516
+ y.value = m;
1409
1517
  } else
1410
- k.value = null;
1518
+ y.value = null;
1411
1519
  } else
1412
- h.value = null, k.value = null;
1520
+ v.value = null, y.value = null;
1413
1521
  }
1414
- ), (v, c) => {
1415
- var _;
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: k.value,
1418
- type: (_ = h.value) == null ? void 0 : _.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] = (m) => v.$emit("changeComponent", "project", null))
1536
+ onClick: c[0] || (c[0] = (h) => _.$emit("changeComponent", "project", null))
1426
1537
  }),
1427
- createElementVNode("p", _hoisted_1, toDisplayString((a = v.block) == null ? void 0 : a.title), 1)
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, m, l, d, b, p;
1542
+ var a, h, n, d, g, u;
1432
1543
  return [
1433
1544
  createElementVNode("div", _hoisted_2, [
1434
1545
  createElementVNode("img", {
1435
- src: ((l = (m = (a = v.block) == null ? void 0 : a.block_image) == null ? void 0 : m[0]) == null ? void 0 : l.url) || "",
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: i,
1442
- innerHTML: x.value,
1443
- key: x.value,
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 = k.value) == null ? void 0 : d.conf) === "reserved",
1447
- "hover:[&_path]:ire-fill-[var(--sold-color)]": ((b = k.value) == null ? void 0 : b.conf) === "sold",
1448
- "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((p = k.value) != null && p.conf)
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: y
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(t) {
1463
- const o = useGlobalStore(), r = ref(!0), e = ref(0), s = ref(0), n = ref(null);
1464
- let i = null, u = 0, h = 0;
1465
- const k = (y, v, c) => y * (1 - c) + v * c, x = () => {
1466
- if (i) return;
1467
- const y = () => {
1468
- e.value = k(e.value, u, 0.06), s.value = k(s.value, h, 0.06), Math.abs(e.value - u) > 0.06 || Math.abs(s.value - h) > 0.06 ? i = requestAnimationFrame(y) : i = null;
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
- i = requestAnimationFrame(y);
1471
- }, C = (y) => {
1581
+ l = requestAnimationFrame(b);
1582
+ }, w = (b) => {
1472
1583
  var $;
1473
- const v = document.querySelector(".tooltip-2"), c = (($ = o.hoverdSvg) == null ? void 0 : $.nodeName) === "path" ? o.hoverdSvg : null;
1474
- if (!n.value || !v || !c)
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 _ = n.value.getBoundingClientRect(), a = c.getBoundingClientRect(), m = v.getBoundingClientRect(), l = _.left + _.width / 2, d = _.top + _.height / 2, b = a.left > l, p = a.bottom > d;
1477
- u = y.clientX - _.left - (b ? m.width : -20), h = y.clientY - _.top - (p ? m.height : -20), r.value && (e.value = u, s.value = h), x(), r.value = !1;
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", C);
1591
+ document.addEventListener("mousemove", w);
1481
1592
  }), onUnmounted(() => {
1482
- document.removeEventListener("mousemove", C), i && cancelAnimationFrame(i);
1483
- }), provide("mouseX", e), provide("mouseY", s), (y, v) => (openBlock(), createElementBlock("div", {
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: n
1596
+ ref: i
1486
1597
  }, [
1487
- renderSlot(y.$slots, "default")
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 t, o, r, e, s, n, i, u, h, k, x, C, y, v;
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
- (_) => _.meta_key === c
1609
+ (p) => p.meta_key === c
1499
1610
  ), constants = ref({
1500
- PREVIEW_PATH_COLOR: ((t = getMeta("path_color")) == null ? void 0 : t.meta_value) || "rgba(255, 255, 255, 0.3)",
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: ((e = getMeta("sold_color")) == null ? void 0 : e.meta_value) || "rgba(219, 64, 64, 0.45)",
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: +((n = getMeta("stroke_width")) == null ? void 0 : n.meta_value) || 1,
1506
- PREVIEW_BORDER_RADIUS: +((i = getMeta("border_radius")) == null ? void 0 : i.meta_value) || 0
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: (u = constants.value) == null ? void 0 : u.PREVIEW_PATH_COLOR,
1509
- path_hover: (h = constants.value) == null ? void 0 : h.PREVIEW_PATH_HOVER_COLOR,
1510
- reserved: (k = constants.value) == null ? void 0 : k.PREVIEW_RESERVED_COLOR,
1511
- sold: (x = constants.value) == null ? void 0 : x.PREVIEW_SOLD_COLOR,
1512
- stroke_color: (C = constants.value) == null ? void 0 : C.PREVIEW_STROKE_COLOR,
1513
- stroke_width: (y = constants.value) == null ? void 0 : y.PREVIEW_STROKE_WIDTH,
1514
- border_radius: (v = constants.value) == null ? void 0 : v.PREVIEW_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, b;
1534
- const m = (b = (d = shortcodeData.value) == null ? void 0 : d.flats) == null ? void 0 : b.filter((p) => {
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 (p == null ? void 0 : p.floor_number) !== (($ = a == null ? void 0 : a.floor_number) == null ? void 0 : $.toString()) ? !1 : a != null && a.polygon_data ? Object == null ? void 0 : Object.values(a == null ? void 0 : a.polygon_data).some(
1537
- (f) => {
1538
- var g;
1539
- return f != null && f.type && (f == null ? void 0 : f.type) === "flat" && (f == null ? void 0 : f.id) === (p == null ? void 0 : p.id) ? a != null && a.block_id ? (p == null ? void 0 : p.block_id) === ((g = a == null ? void 0 : a.block_id) == null ? void 0 : g.toString()) : !(p != null && p.block_id) : !1;
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 = m;
1544
- const { conf: l } = a || {};
1545
- if (m != null && m.length && !l) {
1546
- const p = m == null ? void 0 : m.every((w) => (w == null ? void 0 : w.conf) === "reserved"), $ = m == null ? void 0 : m.every((w) => (w == null ? void 0 : w.conf) === "sold");
1547
- p ? a.conf = "reserved" : $ && (a.conf = "sold");
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
- }), (_ = shortcodeData.value) == null ? void 0 : _.floors;
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 (_ = (c = shortcodeData.value) == null ? void 0 : c.flats) == null ? void 0 : _.map((a) => {
1560
- var m;
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 l = (m = types.value) == null ? void 0 : m.find((d) => (d == null ? void 0 : d.id) === (a == null ? void 0 : a.type_id));
1563
- l && (a.type = l);
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 _, a;
1577
- return (a = (_ = projectMeta.value) == null ? void 0 : _.find((m) => (m == null ? void 0 : m.meta_key) === c)) == null ? void 0 : a.meta_value;
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"), _ = getColorMeta("path_hover_color"), a = getColorMeta("reserved_color"), m = getColorMeta("sold_color"), l = getColorMeta("stroke_color"), d = getColorMeta("stroke_width");
1614
- c && (colors.path = c.toString()), _ && (colors.path_hover = _.toString()), a && (colors.reserved = a.toString()), m && (colors.sold = m.toString()), l && (colors.stroke_color = l.toString()), d && (colors.stroke_width = Number(d));
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, _) => (openBlock(), createBlock(_sfc_main$2, { class: "interactive-real-estate" }, {
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: _[0] || (_[0] = (a, m) => changeRoute(a, m))
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: _[1] || (_[1] = (a, m) => changeRoute(a, m))
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: _[2] || (_[2] = (a, m) => changeRoute(a, m))
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: _[4] || (_[4] = (a) => showFlatModal.value = !1)
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: _[3] || (_[3] = (a, m) => changeRoute(a, m))
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: _[5] || (_[5] = (a) => showModal.value = !1)
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(t) {
1709
- const o = t;
1710
- return provide("shortcodeData", o.data), provide("translations", o.translations), (r, e) => (openBlock(), createElementBlock("div", null, [
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
  }