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