ire-preview 2.3.3 → 2.3.4

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