ire-preview 2.1.4 → 2.1.6

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
@@ -4,19 +4,19 @@ import { defineComponent, openBlock, createElementBlock, createVNode, Transition
4
4
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
5
  * @license MIT
6
6
  **/
7
- const extend = Object.assign, isFunction = (r) => typeof r == "function", isSymbol = (r) => typeof r == "symbol", hasChanged = (r, e) => !Object.is(r, e);
7
+ const extend = Object.assign, isFunction = (o) => typeof o == "function", isSymbol = (o) => typeof o == "symbol", hasChanged = (o, e) => !Object.is(o, 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(r, e = !1) {
15
- if (r.flags |= 8, e) {
16
- r.next = batchedComputed, batchedComputed = r;
14
+ function batch(o, e = !1) {
15
+ if (o.flags |= 8, e) {
16
+ o.next = batchedComputed, batchedComputed = o;
17
17
  return;
18
18
  }
19
- r.next = batchedSub, batchedSub = r;
19
+ o.next = batchedSub, batchedSub = o;
20
20
  }
21
21
  function startBatch() {
22
22
  batchDepth++;
@@ -27,82 +27,82 @@ function endBatch() {
27
27
  if (batchedComputed) {
28
28
  let e = batchedComputed;
29
29
  for (batchedComputed = void 0; e; ) {
30
- const t = e.next;
31
- e.next = void 0, e.flags &= -9, e = t;
30
+ const r = e.next;
31
+ e.next = void 0, e.flags &= -9, e = r;
32
32
  }
33
33
  }
34
- let r;
34
+ let o;
35
35
  for (; batchedSub; ) {
36
36
  let e = batchedSub;
37
37
  for (batchedSub = void 0; e; ) {
38
- const t = e.next;
38
+ const r = e.next;
39
39
  if (e.next = void 0, e.flags &= -9, e.flags & 1)
40
40
  try {
41
41
  e.trigger();
42
- } catch (o) {
43
- r || (r = o);
42
+ } catch (i) {
43
+ o || (o = i);
44
44
  }
45
- e = t;
45
+ e = r;
46
46
  }
47
47
  }
48
- if (r) throw r;
48
+ if (o) throw o;
49
49
  }
50
- function prepareDeps(r) {
51
- for (let e = r.deps; e; e = e.nextDep)
50
+ function prepareDeps(o) {
51
+ for (let e = o.deps; e; e = e.nextDep)
52
52
  e.version = -1, e.prevActiveLink = e.dep.activeLink, e.dep.activeLink = e;
53
53
  }
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;
54
+ function cleanupDeps(o) {
55
+ let e, r = o.depsTail, i = r;
56
+ for (; i; ) {
57
+ const a = i.prevDep;
58
+ i.version === -1 ? (i === r && (r = a), removeSub(i), removeDep(i)) : e = i, i.dep.activeLink = i.prevActiveLink, i.prevActiveLink = void 0, i = a;
59
59
  }
60
- r.deps = e, r.depsTail = t;
60
+ o.deps = e, o.depsTail = r;
61
61
  }
62
- function isDirty(r) {
63
- for (let e = r.deps; e; e = e.nextDep)
62
+ function isDirty(o) {
63
+ for (let e = o.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 !!r._dirty;
66
+ return !!o._dirty;
67
67
  }
68
- function refreshComputed(r) {
69
- if (r.flags & 4 && !(r.flags & 16) || (r.flags &= -17, r.globalVersion === globalVersion))
68
+ function refreshComputed(o) {
69
+ if (o.flags & 4 && !(o.flags & 16) || (o.flags &= -17, o.globalVersion === globalVersion))
70
70
  return;
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;
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;
75
75
  return;
76
76
  }
77
- const t = activeSub, o = shouldTrack;
78
- activeSub = r, shouldTrack = !0;
77
+ const r = activeSub, i = shouldTrack;
78
+ activeSub = o, shouldTrack = !0;
79
79
  try {
80
- prepareDeps(r);
81
- const c = r.fn(r._value);
82
- (e.version === 0 || hasChanged(c, r._value)) && (r._value = c, e.version++);
83
- } catch (c) {
84
- throw e.version++, c;
80
+ prepareDeps(o);
81
+ const a = o.fn(o._value);
82
+ (e.version === 0 || hasChanged(a, o._value)) && (o._value = a, e.version++);
83
+ } catch (a) {
84
+ throw e.version++, a;
85
85
  } finally {
86
- activeSub = t, shouldTrack = o, cleanupDeps(r), r.flags &= -3;
86
+ activeSub = r, shouldTrack = i, cleanupDeps(o), o.flags &= -3;
87
87
  }
88
88
  }
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
- t.computed.flags &= -5;
93
- for (let v = t.computed.deps; v; v = v.nextDep)
94
- removeSub(v, !0);
89
+ function removeSub(o, e = !1) {
90
+ const { dep: r, prevSub: i, nextSub: a } = o;
91
+ if (i && (i.nextSub = a, o.prevSub = void 0), a && (a.prevSub = i, o.nextSub = void 0), r.subs === o && (r.subs = i, !i && r.computed)) {
92
+ r.computed.flags &= -5;
93
+ for (let p = r.computed.deps; p; p = p.nextDep)
94
+ removeSub(p, !0);
95
95
  }
96
- !e && !--t.sc && t.map && t.map.delete(t.key);
96
+ !e && !--r.sc && r.map && r.map.delete(r.key);
97
97
  }
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);
98
+ function removeDep(o) {
99
+ const { prevDep: e, nextDep: r } = o;
100
+ e && (e.nextDep = r, o.prevDep = void 0), r && (r.prevDep = e, o.nextDep = void 0);
101
101
  }
102
102
  let shouldTrack = !0, globalVersion = 0;
103
103
  class Link {
104
- constructor(e, t) {
105
- this.sub = e, this.dep = t, this.version = t.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
104
+ constructor(e, r) {
105
+ this.sub = e, this.dep = r, this.version = r.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
106
106
  }
107
107
  }
108
108
  class Dep {
@@ -112,14 +112,14 @@ class Dep {
112
112
  track(e) {
113
113
  if (!activeSub || !shouldTrack || activeSub === this.computed)
114
114
  return;
115
- let t = this.activeLink;
116
- if (t === void 0 || t.sub !== activeSub)
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
- else if (t.version === -1 && (t.version = this.version, t.nextDep)) {
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);
115
+ let r = this.activeLink;
116
+ if (r === void 0 || r.sub !== activeSub)
117
+ r = this.activeLink = new Link(activeSub, this), activeSub.deps ? (r.prevDep = activeSub.depsTail, activeSub.depsTail.nextDep = r, activeSub.depsTail = r) : activeSub.deps = activeSub.depsTail = r, addSub(r);
118
+ else if (r.version === -1 && (r.version = this.version, r.nextDep)) {
119
+ const i = r.nextDep;
120
+ i.prevDep = r.prevDep, r.prevDep && (r.prevDep.nextDep = i), r.prevDep = activeSub.depsTail, r.nextDep = void 0, activeSub.depsTail.nextDep = r, activeSub.depsTail = r, activeSub.deps === r && (activeSub.deps = i);
121
121
  }
122
- return t;
122
+ return r;
123
123
  }
124
124
  trigger(e) {
125
125
  this.version++, globalVersion++, this.notify(e);
@@ -127,31 +127,31 @@ class Dep {
127
127
  notify(e) {
128
128
  startBatch();
129
129
  try {
130
- for (let t = this.subs; t; t = t.prevSub)
131
- t.sub.notify() && t.sub.dep.notify();
130
+ for (let r = this.subs; r; r = r.prevSub)
131
+ r.sub.notify() && r.sub.dep.notify();
132
132
  } finally {
133
133
  endBatch();
134
134
  }
135
135
  }
136
136
  }
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) {
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) {
141
141
  e.flags |= 20;
142
- for (let o = e.deps; o; o = o.nextDep)
143
- addSub(o);
142
+ for (let i = e.deps; i; i = i.nextDep)
143
+ addSub(i);
144
144
  }
145
- const t = r.dep.subs;
146
- t !== r && (r.prevSub = t, t && (t.nextSub = r)), r.dep.subs = r;
145
+ const r = o.dep.subs;
146
+ r !== o && (o.prevSub = r, r && (r.nextSub = o)), o.dep.subs = o;
147
147
  }
148
148
  }
149
149
  new Set(
150
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((r) => r !== "arguments" && r !== "caller").map((r) => Symbol[r]).filter(isSymbol)
150
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((o) => o !== "arguments" && o !== "caller").map((o) => Symbol[o]).filter(isSymbol)
151
151
  );
152
152
  class ComputedRefImpl {
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;
153
+ constructor(e, r, i) {
154
+ this.fn = e, this.setter = r, this._value = void 0, this.dep = new Dep(this), this.__v_isRef = !0, this.deps = void 0, this.depsTail = void 0, this.flags = 16, this.globalVersion = globalVersion - 1, this.next = void 0, this.effect = this, this.__v_isReadonly = !r, this.isSSR = i;
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(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);
172
+ function computed(o, e, r = !1) {
173
+ let i, a;
174
+ return isFunction(o) ? i = o : (i = o.get, a = o.set), new ComputedRefImpl(i, a, r);
175
175
  }
176
176
  const _hoisted_1$f = {
177
177
  key: 0,
@@ -215,58 +215,58 @@ const _hoisted_1$f = {
215
215
  hoveredData: {},
216
216
  type: {}
217
217
  },
218
- setup(r) {
219
- return (e, t) => (openBlock(), createElementBlock("div", null, [
218
+ setup(o) {
219
+ return (e, r) => (openBlock(), createElementBlock("div", null, [
220
220
  createVNode(Transition, { name: "ire-fade-in-out" }, {
221
221
  default: withCtx(() => {
222
- var o, c, v, m, y, _, f, g, d, s, n, i, u, l, a, h, p, k, b, w, $, C, x, V, E, D, N, S;
222
+ var i, a, p, f, y, d, h, k, n, u, g, s, _, t, l, c, v, b, m, E, w, $, x, C, V, 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((o = e.hoveredData) == null ? void 0 : o.floor_number), 1),
228
- t[0] || (t[0] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Floor", -1))
227
+ createElementVNode("p", _hoisted_4$5, toDisplayString((i = e.hoveredData) == null ? void 0 : i.floor_number), 1),
228
+ r[0] || (r[0] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Floor", -1))
229
229
  ]),
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
- t[1] || (t[1] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Available", -1))
230
+ (a = e.hoveredData) != null && a.conf || (f = (p = e.hoveredData) == null ? void 0 : p.flats) != null && f.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
231
+ (y = e.hoveredData) != null && y.conf ? (openBlock(), createElementBlock("div", _hoisted_6$1, toDisplayString((d = e.hoveredData) == null ? void 0 : d.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$1, [
232
+ (k = (h = e.hoveredData) == null ? void 0 : h.counts) != null && k.available ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
233
+ createElementVNode("p", _hoisted_9$1, toDisplayString(((u = (n = e.hoveredData) == null ? void 0 : n.counts) == null ? void 0 : u.available) || 0), 1),
234
+ r[1] || (r[1] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Available", -1))
235
235
  ])) : createCommentVNode("", !0),
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 = (u = e.hoveredData) == null ? void 0 : u.counts) == null ? void 0 : l.reserved), 1),
238
- t[2] || (t[2] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Reserved", -1))
236
+ (s = (g = e.hoveredData) == null ? void 0 : g.counts) != null && s.reserved ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
237
+ createElementVNode("p", _hoisted_11$1, toDisplayString((t = (_ = e.hoveredData) == null ? void 0 : _.counts) == null ? void 0 : t.reserved), 1),
238
+ r[2] || (r[2] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Reserved", -1))
239
239
  ])) : createCommentVNode("", !0),
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 = (p = e.hoveredData) == null ? void 0 : p.counts) == null ? void 0 : k.sold), 1),
242
- t[3] || (t[3] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Sold", -1))
240
+ (c = (l = e.hoveredData) == null ? void 0 : l.counts) != null && c.sold ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
241
+ createElementVNode("p", _hoisted_13$1, toDisplayString((b = (v = e.hoveredData) == null ? void 0 : v.counts) == null ? void 0 : b.sold), 1),
242
+ r[3] || (r[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", _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)
248
+ createElementVNode("span", _hoisted_16$1, toDisplayString((m = e.hoveredData) == null ? void 0 : m.conf), 1),
249
+ createElementVNode("p", _hoisted_17$1, toDisplayString((E = e.hoveredData) == null ? void 0 : E.title), 1)
250
250
  ])
251
251
  ])) : e.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_18$1, [
252
252
  createElementVNode("div", _hoisted_19$1, [
253
- createElementVNode("p", _hoisted_20$1, toDisplayString(($ = e.hoveredData) == null ? void 0 : $.flat_number), 1),
254
- t[4] || (t[4] = createElementVNode("p", { class: "!ire-mt-2 !ire-text-xs ire-uppercase" }, "Apartment", -1))
253
+ createElementVNode("p", _hoisted_20$1, toDisplayString((w = e.hoveredData) == null ? void 0 : w.flat_number), 1),
254
+ r[4] || (r[4] = createElementVNode("p", { class: "!ire-mt-2 !ire-text-xs ire-uppercase" }, "Apartment", -1))
255
255
  ]),
256
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
- t[7] || (t[7] = createElementVNode("p", { class: "!ire-text-xs ire-uppercase ire-text-gray-500" }, "Price", -1)),
257
+ ($ = e.hoveredData) != null && $.conf ? (openBlock(), createElementBlock("p", _hoisted_22$1, toDisplayString(e.hoveredData.conf), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
258
+ r[7] || (r[7] = createElementVNode("p", { class: "!ire-text-xs ire-uppercase ire-text-gray-500" }, "Price", -1)),
259
259
  (x = e.hoveredData) != null && x.price ? (openBlock(), createElementBlock("div", _hoisted_23$1, [
260
260
  createElementVNode("div", null, [
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),
261
+ (C = e.hoveredData) != null && C.offer_price ? (openBlock(), createElementBlock("div", _hoisted_25$1, [
262
+ createElementVNode("p", _hoisted_26$1, toDisplayString(Number((V = e.hoveredData) == null ? void 0 : V.price).toLocaleString()), 1),
263
263
  createElementVNode("p", _hoisted_27, [
264
264
  createTextVNode(toDisplayString(Number((D = e.hoveredData) == null ? void 0 : D.offer_price).toLocaleString()), 1),
265
- t[6] || (t[6] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
265
+ r[6] || (r[6] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
266
266
  ])
267
267
  ])) : (openBlock(), createElementBlock("p", _hoisted_24$1, [
268
268
  createTextVNode(toDisplayString(Number(e.hoveredData.price).toLocaleString()), 1),
269
- t[5] || (t[5] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
269
+ r[5] || (r[5] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
270
270
  ]))
271
271
  ])
272
272
  ])) : createCommentVNode("", !0)
@@ -275,7 +275,7 @@ const _hoisted_1$f = {
275
275
  createElementVNode("div", _hoisted_28, [
276
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
- t[8] || (t[8] = createElementVNode("sup", { class: "ire-bg-white !ire-text-xs" }, " 2 ", -1))
278
+ r[8] || (r[8] = createElementVNode("sup", { class: "ire-bg-white !ire-text-xs" }, " 2 ", -1))
279
279
  ])
280
280
  ])
281
281
  ])) : createCommentVNode("", !0)
@@ -295,8 +295,8 @@ const _hoisted_1$f = {
295
295
  hoverdData: {},
296
296
  type: {}
297
297
  },
298
- setup(r) {
299
- return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$e, [
298
+ setup(o) {
299
+ return (e, r) => (openBlock(), createElementBlock("div", _hoisted_1$e, [
300
300
  e.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
301
301
  renderSlot(e.$slots, "header")
302
302
  ])) : createCommentVNode("", !0),
@@ -319,80 +319,80 @@ const _hoisted_1$f = {
319
319
  projectMeta: {}
320
320
  },
321
321
  emits: ["changeComponent"],
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;
322
+ setup(o, { emit: e }) {
323
+ const r = e, i = o, a = ref(), p = ref(), f = ref(null), y = computed(() => {
324
+ if (i.project)
325
+ return i.project.svg;
326
326
  });
327
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");
328
+ var n, u;
329
+ const k = (u = (n = i.projectMeta) == null ? void 0 : n.find(
330
+ (g) => (g == null ? void 0 : g.meta_key) === "project_img_contain"
331
+ )) == null ? void 0 : u.meta_value;
332
+ return JSON.parse((k == null ? void 0 : k.toString()) || "false");
333
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));
334
+ const d = (k) => {
335
+ const n = k.target;
336
+ n && (a.value = n);
337
+ }, h = (k) => {
338
+ var u, g, s;
339
+ const n = k.target;
340
+ (n == null ? void 0 : n.nodeName) === "path" && (((u = p.value) == null ? void 0 : u.conf) === "sold" || ((g = p.value) == null ? void 0 : g.conf) === "reserved" || r("changeComponent", ((s = f.value) == null ? void 0 : s.type) || "", p == null ? void 0 : p.value));
341
341
  };
342
342
  return watch(
343
- () => c.value,
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) {
343
+ () => a.value,
344
+ (k) => {
345
+ var u, g, s, _, t, l, c;
346
+ if (!k) return;
347
+ const n = k.parentElement;
348
+ if (n && (n == null ? void 0 : n.nodeName) === "g") {
349
+ const v = n == null ? void 0 : n.getAttribute("id");
350
+ if (!v || (f.value = ((u = i.project) == null ? void 0 : u.polygon_data.find((m) => (m == null ? void 0 : m.key) === v)) || null, !f.value)) return;
351
+ const b = (g = f.value) == null ? void 0 : g.id;
352
+ switch ((s = f.value) == null ? void 0 : s.type) {
353
353
  case "floor":
354
- const b = (u = o.floors) == null ? void 0 : u.find(
355
- (x) => x.id === k
354
+ const m = (_ = i.floors) == null ? void 0 : _.find(
355
+ (x) => x.id === b
356
356
  );
357
- v.value = b;
357
+ p.value = m;
358
358
  break;
359
359
  case "block":
360
- const w = (l = o.blocks) == null ? void 0 : l.find(
361
- (x) => (x == null ? void 0 : x.id) === k
360
+ const E = (t = i.blocks) == null ? void 0 : t.find(
361
+ (x) => (x == null ? void 0 : x.id) === b
362
362
  );
363
- v.value = w;
363
+ p.value = E;
364
364
  break;
365
365
  case "flat":
366
- const $ = (a = o.flats) == null ? void 0 : a.find(
367
- (x) => (x == null ? void 0 : x.id) === k
366
+ const w = (l = i.flats) == null ? void 0 : l.find(
367
+ (x) => (x == null ? void 0 : x.id) === b
368
368
  );
369
- v.value = $;
369
+ p.value = w;
370
370
  break;
371
371
  case "tooltip":
372
- const C = (h = o.actions) == null ? void 0 : h.find(
373
- (x) => (x == null ? void 0 : x.id) === k
372
+ const $ = (c = i.actions) == null ? void 0 : c.find(
373
+ (x) => (x == null ? void 0 : x.id) === b
374
374
  );
375
- v.value = C;
375
+ p.value = $;
376
376
  break;
377
377
  default:
378
- v.value = null;
378
+ p.value = null;
379
379
  break;
380
380
  }
381
381
  } else
382
- m.value = null, v.value = null;
382
+ f.value = null, p.value = null;
383
383
  }
384
- ), (g, d) => {
385
- var s;
384
+ ), (k, n) => {
385
+ var u;
386
386
  return openBlock(), createBlock(_sfc_main$f, {
387
- hoverdData: v.value,
388
- type: (s = m.value) == null ? void 0 : s.type
387
+ hoverdData: p.value,
388
+ type: (u = f.value) == null ? void 0 : u.type
389
389
  }, {
390
390
  default: withCtx(() => {
391
- var n, i, u, l, a, h;
391
+ var g, s, _, t, l, c;
392
392
  return [
393
393
  createElementVNode("div", _hoisted_1$d, [
394
394
  createElementVNode("img", {
395
- src: (u = (i = (n = g.project) == null ? void 0 : n.project_image) == null ? void 0 : i[0]) == null ? void 0 : u.url,
395
+ src: (_ = (s = (g = k.project) == null ? void 0 : g.project_image) == null ? void 0 : s[0]) == null ? void 0 : _.url,
396
396
  alt: "",
397
397
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
398
398
  }, null, 8, _hoisted_2$6),
@@ -401,13 +401,13 @@ const _hoisted_1$f = {
401
401
  key: unref(y),
402
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", [
403
403
  {
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)
404
+ "hover:[&_path]:ire-fill-[var(--reserved-color)]": p.value && ((t = p.value) == null ? void 0 : t.conf) === "reserved",
405
+ "hover:[&_path]:ire-fill-[var(--sold-color)]": p.value && ((l = p.value) == null ? void 0 : l.conf) === "sold",
406
+ "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((c = p.value) != null && c.conf)
407
407
  }
408
408
  ]]),
409
- onMouseover: _,
410
- onClick: f
409
+ onMouseover: d,
410
+ onClick: h
411
411
  }, null, 42, _hoisted_3$5))
412
412
  ])
413
413
  ];
@@ -432,26 +432,26 @@ const _hoisted_1$f = {
432
432
  modelModifiers: {}
433
433
  }),
434
434
  emits: ["update:modelValue"],
435
- setup(r) {
436
- const e = useModel(r, "modelValue");
437
- return (t, o) => (openBlock(), createElementBlock("div", _hoisted_1$c, [
438
- t.label ? (openBlock(), createElementBlock("p", _hoisted_2$5, toDisplayString(t.label), 1)) : createCommentVNode("", !0),
435
+ setup(o) {
436
+ const e = useModel(o, "modelValue");
437
+ return (r, i) => (openBlock(), createElementBlock("div", _hoisted_1$c, [
438
+ r.label ? (openBlock(), createElementBlock("p", _hoisted_2$5, toDisplayString(r.label), 1)) : createCommentVNode("", !0),
439
439
  createElementVNode("div", _hoisted_3$4, [
440
440
  withDirectives(createElementVNode("select", {
441
- "onUpdate:modelValue": o[0] || (o[0] = (c) => e.value = c),
441
+ "onUpdate:modelValue": i[0] || (i[0] = (a) => e.value = a),
442
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"
443
443
  }, [
444
- (openBlock(!0), createElementBlock(Fragment, null, renderList(t.data, (c) => {
445
- var v, m;
444
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(r.data, (a) => {
445
+ var p, f;
446
446
  return openBlock(), createElementBlock("option", {
447
- value: c.value,
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"))
449
- }, toDisplayString(c.title), 9, _hoisted_4$4);
447
+ value: a.value,
448
+ disabled: ((p = a == null ? void 0 : a.title) == null ? void 0 : p.includes("reserved")) || ((f = a == null ? void 0 : a.title) == null ? void 0 : f.includes("sold"))
449
+ }, toDisplayString(a.title), 9, _hoisted_4$4);
450
450
  }), 256))
451
451
  ], 512), [
452
452
  [vModelSelect, e.value]
453
453
  ]),
454
- o[1] || (o[1] = createElementVNode("svg", {
454
+ i[1] || (i[1] = createElementVNode("svg", {
455
455
  xmlns: "http://www.w3.org/2000/svg",
456
456
  fill: "none",
457
457
  viewBox: "0 0 24 24",
@@ -468,11 +468,11 @@ const _hoisted_1$f = {
468
468
  ])
469
469
  ]));
470
470
  }
471
- }), _export_sfc = (r, e) => {
472
- const t = r.__vccOpts || r;
473
- for (const [o, c] of e)
474
- t[o] = c;
475
- return t;
471
+ }), _export_sfc = (o, e) => {
472
+ const r = o.__vccOpts || o;
473
+ for (const [i, a] of e)
474
+ r[i] = a;
475
+ return r;
476
476
  }, _sfc_main$c = {}, _hoisted_1$b = {
477
477
  xmlns: "http://www.w3.org/2000/svg",
478
478
  width: "32",
@@ -480,7 +480,7 @@ const _hoisted_1$f = {
480
480
  viewBox: "0 0 32 32",
481
481
  fill: "none"
482
482
  };
483
- function _sfc_render$3(r, e) {
483
+ function _sfc_render$3(o, e) {
484
484
  return openBlock(), createElementBlock("svg", _hoisted_1$b, e[0] || (e[0] = [
485
485
  createElementVNode("path", {
486
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",
@@ -490,10 +490,10 @@ function _sfc_render$3(r, e) {
490
490
  }
491
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({
492
492
  __name: "BackButton",
493
- setup(r) {
494
- return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$a, [
493
+ setup(o) {
494
+ return (e, r) => (openBlock(), createElementBlock("div", _hoisted_1$a, [
495
495
  createVNode(ArrowRight, { class: "ire-w-6 ire-rotate-180 group-hover:[&_path]:ire-fill-white" }),
496
- t[0] || (t[0] = createElementVNode("p", { class: "!ire-text-sm group-hover:!ire-text-white lg:!ire-text-balance" }, " Back ", -1))
496
+ r[0] || (r[0] = createElementVNode("p", { class: "!ire-text-sm group-hover:!ire-text-white lg:!ire-text-balance" }, " Back ", -1))
497
497
  ]));
498
498
  }
499
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({
@@ -506,147 +506,147 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
506
506
  actions: {}
507
507
  },
508
508
  emits: ["changeComponent"],
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(() => {
511
- var l;
512
- if ((l = o.floor) != null && l.svg)
513
- return o.floor.svg;
514
- }), d = computed$1(() => o.floors.filter(
515
- (l) => {
516
- var a, h;
509
+ setup(o, { emit: e }) {
510
+ const r = e, i = o, a = ref(), p = ref(), f = ref(), y = ref(null), d = ref(), h = ref(), k = computed$1(() => {
511
+ var t;
512
+ if ((t = i.floor) != null && t.svg)
513
+ return i.floor.svg;
514
+ }), n = computed$1(() => i.floors.filter(
515
+ (t) => {
516
+ var l, c;
517
517
  return (
518
518
  // floorItem.conf !== "reserved" &&
519
519
  // floorItem.conf !== "sold" &&
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)
520
+ (l = i.floor) != null && l.block_id ? (t == null ? void 0 : t.block_id) === ((c = i.floor) == null ? void 0 : c.block_id) : !(t != null && t.block_id)
521
521
  );
522
522
  }
523
- ).map((l) => {
524
- var h, p;
525
- const a = (h = o.blocks) == null ? void 0 : h.find(
526
- (k) => {
527
- var b;
528
- return (k == null ? void 0 : k.id) === ((b = l == null ? void 0 : l.block_id) == null ? void 0 : b.toString());
523
+ ).map((t) => {
524
+ var c, v;
525
+ const l = (c = i.blocks) == null ? void 0 : c.find(
526
+ (b) => {
527
+ var m;
528
+ return (b == null ? void 0 : b.id) === ((m = t == null ? void 0 : t.block_id) == null ? void 0 : m.toString());
529
529
  }
530
530
  );
531
531
  return {
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 : ""),
533
- value: l == null ? void 0 : l.id
532
+ title: ((v = t == null ? void 0 : t.floor_number) == null ? void 0 : v.toString()) + " Floor" + (l != null && l.id ? ` - ${l == null ? void 0 : l.title}` : "") + (t != null && t.conf ? " " + t.conf : ""),
533
+ value: t == null ? void 0 : t.id
534
534
  };
535
- }).sort((l, a) => +(l == null ? void 0 : l.title) - +(a == null ? void 0 : a.title)) || []), s = (l) => {
536
- const a = l.target;
537
- a && (v.value = a);
538
- }, n = (l) => {
539
- var h, p, k;
540
- const a = l.target;
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));
542
- }, i = () => {
543
- var l;
544
- c.value && ((l = c.value) == null ? void 0 : l.querySelectorAll("g")).forEach((h) => {
545
- var b, w, $, C, x, 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
535
+ }).sort((t, l) => +(t == null ? void 0 : t.title) - +(l == null ? void 0 : l.title)) || []), u = (t) => {
536
+ const l = t.target;
537
+ l && (p.value = l);
538
+ }, g = (t) => {
539
+ var c, v, b;
540
+ const l = t.target;
541
+ (l == null ? void 0 : l.nodeName) === "path" && (y.value && "conf" in y.value && (((c = y.value) == null ? void 0 : c.conf) === "sold" || ((v = y.value) == null ? void 0 : v.conf) === "reserved") || r("changeComponent", ((b = f.value) == null ? void 0 : b.type) || "", y.value));
542
+ }, s = () => {
543
+ var t;
544
+ a.value && ((t = a.value) == null ? void 0 : t.querySelectorAll("g")).forEach((c) => {
545
+ var m, E, w, $, x, C;
546
+ const v = c == null ? void 0 : c.getAttribute("id"), b = (E = (m = i.floor) == null ? void 0 : m.polygon_data) == null ? void 0 : E.find(
547
+ (V) => (V == null ? void 0 : V.key) === v
548
548
  );
549
- if (o.flats)
550
- if (($ = o.floor) != null && $.conf)
551
- h.setAttribute("conf", ((C = o.floor) == null ? void 0 : C.conf) || "");
549
+ if (i.flats)
550
+ if ((w = i.floor) != null && w.conf)
551
+ c.setAttribute("conf", (($ = i.floor) == null ? void 0 : $.conf) || "");
552
552
  else {
553
- const E = (x = o.flats) == null ? void 0 : x.find(
554
- (D) => (D == null ? void 0 : D.id) === (k == null ? void 0 : k.id)
553
+ const V = (x = i.flats) == null ? void 0 : x.find(
554
+ (D) => (D == null ? void 0 : D.id) === (b == null ? void 0 : b.id)
555
555
  );
556
- h == null || h.setAttribute("conf", ((V = E == null ? void 0 : E.conf) == null ? void 0 : V.toString()) || "");
556
+ c == null || c.setAttribute("conf", ((C = V == null ? void 0 : V.conf) == null ? void 0 : C.toString()) || "");
557
557
  }
558
558
  });
559
- }, u = () => {
560
- var l;
561
- (l = o.floor) != null && l.block_id ? t("changeComponent", "block", f.value) : t("changeComponent", "project", null);
559
+ }, _ = () => {
560
+ var t;
561
+ (t = i.floor) != null && t.block_id ? r("changeComponent", "block", h.value) : r("changeComponent", "project", null);
562
562
  };
563
563
  return watch(
564
- () => v.value,
565
- (l) => {
566
- var h, p, k, b, w, $;
567
- if (!l) return;
568
- const a = l == null ? void 0 : l.parentElement;
569
- if (a && (a == null ? void 0 : a.nodeName) === "g") {
570
- const C = a.getAttribute("id");
571
- if (!C || (m.value = ((p = (h = o.floor) == null ? void 0 : h.polygon_data) == null ? void 0 : p.find((x) => (x == null ? void 0 : x.key) === C)) || null, !m.value)) return;
572
- if (((k = m.value) == null ? void 0 : k.type) === "flat") {
573
- const x = (b = o.flats) == null ? void 0 : b.find(
574
- (V) => {
575
- var E;
576
- return (V == null ? void 0 : V.id) === ((E = m.value) == null ? void 0 : E.id);
564
+ () => p.value,
565
+ (t) => {
566
+ var c, v, b, m, E, w;
567
+ if (!t) return;
568
+ const l = t == null ? void 0 : t.parentElement;
569
+ if (l && (l == null ? void 0 : l.nodeName) === "g") {
570
+ const $ = l.getAttribute("id");
571
+ if (!$ || (f.value = ((v = (c = i.floor) == null ? void 0 : c.polygon_data) == null ? void 0 : v.find((x) => (x == null ? void 0 : x.key) === $)) || null, !f.value)) return;
572
+ if (((b = f.value) == null ? void 0 : b.type) === "flat") {
573
+ const x = (m = i.flats) == null ? void 0 : m.find(
574
+ (C) => {
575
+ var V;
576
+ return (C == null ? void 0 : C.id) === ((V = f.value) == null ? void 0 : V.id);
577
577
  }
578
578
  );
579
579
  y.value = x ?? null;
580
- } else if (((w = m.value) == null ? void 0 : w.type) === "tooltip") {
581
- const x = ($ = o.actions) == null ? void 0 : $.find(
582
- (V) => {
583
- var E;
584
- return (V == null ? void 0 : V.id) === ((E = m.value) == null ? void 0 : E.id);
580
+ } else if (((E = f.value) == null ? void 0 : E.type) === "tooltip") {
581
+ const x = (w = i.actions) == null ? void 0 : w.find(
582
+ (C) => {
583
+ var V;
584
+ return (C == null ? void 0 : C.id) === ((V = f.value) == null ? void 0 : V.id);
585
585
  }
586
586
  );
587
587
  y.value = x ?? null;
588
588
  } else
589
589
  y.value = null;
590
590
  } else
591
- m.value = null;
591
+ f.value = null;
592
592
  }
593
593
  ), watch(
594
- () => _.value,
594
+ () => d.value,
595
595
  () => {
596
- var a;
597
- const l = (a = o.floors) == null ? void 0 : a.find(
598
- (h) => (h == null ? void 0 : h.id) === (_ == null ? void 0 : _.value)
596
+ var l;
597
+ const t = (l = i.floors) == null ? void 0 : l.find(
598
+ (c) => (c == null ? void 0 : c.id) === (d == null ? void 0 : d.value)
599
599
  );
600
- l != null && l.conf || (l && t("changeComponent", "floor", l), setTimeout(() => {
601
- i();
600
+ t != null && t.conf || (t && r("changeComponent", "floor", t), setTimeout(() => {
601
+ s();
602
602
  }, 0));
603
603
  }
604
604
  ), onMounted(() => {
605
- var l, a, h;
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());
605
+ var t, l, c;
606
+ h.value = (t = i.blocks) == null ? void 0 : t.find(
607
+ (v) => {
608
+ var b, m;
609
+ return (v == null ? void 0 : v.id) === ((m = (b = i.floor) == null ? void 0 : b.block_id) == null ? void 0 : m.toString());
610
610
  }
611
- ), _.value = (h = (a = d.value) == null ? void 0 : a.find(
612
- (p) => {
613
- var k;
614
- return (p == null ? void 0 : p.value) == ((k = o.floor) == null ? void 0 : k.id);
611
+ ), d.value = (c = (l = n.value) == null ? void 0 : l.find(
612
+ (v) => {
613
+ var b;
614
+ return (v == null ? void 0 : v.value) == ((b = i.floor) == null ? void 0 : b.id);
615
615
  }
616
- )) == null ? void 0 : h.value, i();
617
- }), (l, a) => {
618
- var h;
616
+ )) == null ? void 0 : c.value, s();
617
+ }), (t, l) => {
618
+ var c;
619
619
  return openBlock(), createBlock(_sfc_main$f, {
620
620
  hoverdData: y.value,
621
- type: (h = m.value) == null ? void 0 : h.type
621
+ type: (c = f.value) == null ? void 0 : c.type
622
622
  }, {
623
623
  header: withCtx(() => [
624
- createVNode(_sfc_main$b, { onClick: u }),
624
+ createVNode(_sfc_main$b, { onClick: _ }),
625
625
  createElementVNode("div", _hoisted_1$9, [
626
626
  createVNode(_sfc_main$d, {
627
- modelValue: _.value,
628
- "onUpdate:modelValue": a[0] || (a[0] = (p) => _.value = p),
629
- data: d.value
627
+ modelValue: d.value,
628
+ "onUpdate:modelValue": l[0] || (l[0] = (v) => d.value = v),
629
+ data: n.value
630
630
  }, null, 8, ["modelValue", "data"])
631
631
  ])
632
632
  ]),
633
633
  default: withCtx(() => {
634
- var p, k, b;
634
+ var v, b, m;
635
635
  return [
636
636
  createElementVNode("div", _hoisted_2$4, [
637
637
  createElementVNode("img", {
638
- src: ((b = (k = (p = l.floor) == null ? void 0 : p.floor_image) == null ? void 0 : k[0]) == null ? void 0 : b.url) || "",
638
+ src: ((m = (b = (v = t.floor) == null ? void 0 : v.floor_image) == null ? void 0 : b[0]) == null ? void 0 : m.url) || "",
639
639
  alt: "",
640
640
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
641
641
  }, null, 8, _hoisted_3$3),
642
642
  (openBlock(), createElementBlock("div", {
643
643
  ref_key: "svgRef",
644
- ref: c,
645
- innerHTML: g.value,
646
- key: g.value,
644
+ ref: a,
645
+ innerHTML: k.value,
646
+ key: k.value,
647
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",
648
- onMouseover: s,
649
- onClick: n
648
+ onMouseover: u,
649
+ onClick: g
650
650
  }, null, 40, _hoisted_4$3))
651
651
  ])
652
652
  ];
@@ -662,7 +662,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
662
662
  fill: "none",
663
663
  xmlns: "http://www.w3.org/2000/svg"
664
664
  };
665
- function _sfc_render$2(r, e) {
665
+ function _sfc_render$2(o, e) {
666
666
  return openBlock(), createElementBlock("svg", _hoisted_1$8, e[0] || (e[0] = [
667
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)
668
668
  ]));
@@ -674,7 +674,7 @@ const FlatIcon = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_rende
674
674
  fill: "none",
675
675
  xmlns: "http://www.w3.org/2000/svg"
676
676
  };
677
- function _sfc_render$1(r, e) {
677
+ function _sfc_render$1(o, e) {
678
678
  return openBlock(), createElementBlock("svg", _hoisted_1$7, e[0] || (e[0] = [
679
679
  createElementVNode("path", {
680
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",
@@ -721,36 +721,36 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
721
721
  floors: {}
722
722
  },
723
723
  emits: ["changeComponent"],
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, _);
724
+ setup(o, { emit: e }) {
725
+ const r = e, i = o, a = ref(!0), p = ref(0), f = computed$1(() => {
726
+ var h, k, n, u, g, s;
727
+ const d = a.value ? (n = (k = (h = i.flat) == null ? void 0 : h.type) == null ? void 0 : k.image_2d) == null ? void 0 : n.length : (s = (g = (u = i.flat) == null ? void 0 : u.type) == null ? void 0 : g.image_3d) == null ? void 0 : s.length;
728
+ return ["I", "II", "III"].slice(0, d);
729
729
  }), y = () => {
730
- var f;
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));
730
+ var h;
731
+ const d = (h = i.floors) == null ? void 0 : h.find(
732
+ (k) => {
733
+ var n, u, g, s, _, t;
734
+ return ((n = k.floor_number) == null ? void 0 : n.toString()) === ((g = (u = i.flat) == null ? void 0 : u.floor_number) == null ? void 0 : g.toString()) && ((s = i.flat) != null && s.block_id ? ((_ = k == null ? void 0 : k.block_id) == null ? void 0 : _.toString()) === ((t = i.flat) == null ? void 0 : t.block_id) : !(k != null && k.block_id));
735
735
  }
736
736
  );
737
- _ ? t("changeComponent", "floor", _) : t("changeComponent", "project", null);
737
+ d ? r("changeComponent", "floor", d) : r("changeComponent", "project", null);
738
738
  };
739
739
  return watch(
740
- () => c.value,
740
+ () => a.value,
741
741
  () => {
742
- v.value = 0;
742
+ p.value = 0;
743
743
  }
744
744
  ), onMounted(() => {
745
- var _, f;
746
- (f = (_ = o.flat) == null ? void 0 : _.type) != null && f.image_2d || (c.value = !1);
747
- }), (_, f) => (openBlock(), createElementBlock("div", null, [
745
+ var d, h;
746
+ (h = (d = i.flat) == null ? void 0 : d.type) != null && h.image_2d || (a.value = !1);
747
+ }), (d, h) => (openBlock(), createElementBlock("div", null, [
748
748
  createVNode(_sfc_main$f, { "hoverd-data": null }, {
749
749
  header: withCtx(() => [
750
750
  createVNode(_sfc_main$b, { onClick: y })
751
751
  ]),
752
752
  default: withCtx(() => {
753
- var g, d, s, n, i, u, l, a, h, p, k, b, w, $, C, x, V, E, D, N, S, j, T, R, P, O, F;
753
+ var k, n, u, g, s, _, t, l, c, v, b, m, E, w, $, x, C, V, D, N, S, j, R, T, P, O, F;
754
754
  return [
755
755
  createElementVNode("div", _hoisted_1$6, [
756
756
  createElementVNode("div", _hoisted_2$3, [
@@ -759,15 +759,15 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
759
759
  mode: "out-in"
760
760
  }, {
761
761
  default: withCtx(() => {
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;
762
+ var B, M, L, I, A, H, z, W, K, U, Z, q, J, Q, X, Y, G, ee, te, re, oe, ie, le, se;
763
763
  return [
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,
764
+ a.value && ((I = (L = (M = (B = d.flat) == null ? void 0 : B.type) == null ? void 0 : M.image_2d) == null ? void 0 : L[p.value]) != null && I.url) ? (openBlock(), createElementBlock("img", {
765
+ key: (W = (z = (H = (A = d.flat) == null ? void 0 : A.type) == null ? void 0 : H.image_2d) == null ? void 0 : z[p.value]) == null ? void 0 : W.url,
766
+ src: (q = (Z = (U = (K = d.flat) == null ? void 0 : K.type) == null ? void 0 : U.image_2d) == null ? void 0 : Z[p.value]) == null ? void 0 : q.url,
767
767
  class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
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,
768
+ }, null, 8, _hoisted_3$2)) : (Y = (X = (Q = (J = d.flat) == null ? void 0 : J.type) == null ? void 0 : Q.image_3d) == null ? void 0 : X[p.value]) != null && Y.url ? (openBlock(), createElementBlock("img", {
769
+ src: (re = (te = (ee = (G = d.flat) == null ? void 0 : G.type) == null ? void 0 : ee.image_3d) == null ? void 0 : te[p.value]) == null ? void 0 : re.url,
770
+ key: (se = (le = (ie = (oe = d.flat) == null ? void 0 : oe.type) == null ? void 0 : ie.image_3d) == null ? void 0 : le[p.value]) == null ? void 0 : se.url,
771
771
  class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
772
772
  }, null, 8, _hoisted_4$2)) : createCommentVNode("", !0)
773
773
  ];
@@ -776,93 +776,93 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
776
776
  }),
777
777
  createElementVNode("div", _hoisted_5, [
778
778
  createElementVNode("div", _hoisted_6, [
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", {
779
+ (g = (u = (n = (k = d.flat) == null ? void 0 : k.type) == null ? void 0 : n.image_2d) == null ? void 0 : u[0]) != null && g.url ? (openBlock(), createElementBlock("div", {
780
780
  key: 0,
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 }]),
782
- onClick: f[0] || (f[0] = (B) => c.value = !0)
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": a.value }]),
782
+ onClick: h[0] || (h[0] = (B) => a.value = !0)
783
783
  }, [
784
784
  createVNode(FlatIcon, {
785
- class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": c.value }])
785
+ class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": a.value }])
786
786
  }, null, 8, ["class"]),
787
787
  createElementVNode("p", {
788
788
  class: normalizeClass(["group-hover:!ire-text-white", {
789
- "!ire-text-white": c.value,
790
- "!ire-text-black": !c.value
789
+ "!ire-text-white": a.value,
790
+ "!ire-text-black": !a.value
791
791
  }])
792
792
  }, " 2D plan ", 2)
793
793
  ], 2)) : createCommentVNode("", !0),
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", {
794
+ (l = (t = (_ = (s = d.flat) == null ? void 0 : s.type) == null ? void 0 : _.image_3d) == null ? void 0 : t[0]) != null && l.url ? (openBlock(), createElementBlock("div", {
795
795
  key: 1,
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 }]),
797
- onClick: f[1] || (f[1] = (B) => c.value = !1)
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": !a.value }]),
797
+ onClick: h[1] || (h[1] = (B) => a.value = !1)
798
798
  }, [
799
799
  createElementVNode("div", null, [
800
800
  createVNode(Cube, {
801
- class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !c.value }])
801
+ class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !a.value }])
802
802
  }, null, 8, ["class"])
803
803
  ]),
804
804
  createElementVNode("p", {
805
805
  class: normalizeClass(["group-hover:!ire-text-white", {
806
- "!ire-text-white": !c.value,
807
- "!ire-text-black": c.value
806
+ "!ire-text-white": !a.value,
807
+ "!ire-text-black": a.value
808
808
  }])
809
809
  }, " 3D plan ", 2)
810
810
  ], 2)) : createCommentVNode("", !0)
811
811
  ]),
812
- ((h = m.value) == null ? void 0 : h.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
813
- (openBlock(!0), createElementBlock(Fragment, null, renderList(m.value, (B, M) => (openBlock(), createElementBlock("div", {
812
+ ((c = f.value) == null ? void 0 : c.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
813
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(f.value, (B, M) => (openBlock(), createElementBlock("div", {
814
814
  key: B,
815
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", {
816
- "ire-bg-black ire-text-white": v.value === M
816
+ "ire-bg-black ire-text-white": p.value === M
817
817
  }]),
818
- onClick: (L) => v.value = M
818
+ onClick: (L) => p.value = M
819
819
  }, toDisplayString(B), 11, _hoisted_8))), 128))
820
820
  ])) : createCommentVNode("", !0)
821
821
  ])
822
822
  ]),
823
823
  createElementVNode("div", _hoisted_9, [
824
824
  createElementVNode("div", _hoisted_10, [
825
- createElementVNode("p", _hoisted_11, toDisplayString((p = _.flat) == null ? void 0 : p.flat_number), 1),
826
- f[2] || (f[2] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Apartment", -1))
825
+ createElementVNode("p", _hoisted_11, toDisplayString((v = d.flat) == null ? void 0 : v.flat_number), 1),
826
+ h[2] || (h[2] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Apartment", -1))
827
827
  ]),
828
828
  createElementVNode("div", _hoisted_12, [
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(($ = (w = _.flat) == null ? void 0 : w.type) == null ? void 0 : $.teaser), 1)
829
+ createElementVNode("p", _hoisted_13, toDisplayString((m = (b = d.flat) == null ? void 0 : b.type) == null ? void 0 : m.title), 1),
830
+ createElementVNode("p", _hoisted_14, toDisplayString((w = (E = d.flat) == null ? void 0 : E.type) == null ? void 0 : w.teaser), 1)
831
831
  ]),
832
832
  createElementVNode("div", _hoisted_15, [
833
- (C = _.flat) != null && C.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
834
- createElementVNode("p", _hoisted_17, toDisplayString((x = _.flat) == null ? void 0 : x.floor_number), 1),
835
- f[3] || (f[3] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Floor", -1))
833
+ ($ = d.flat) != null && $.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
834
+ createElementVNode("p", _hoisted_17, toDisplayString((x = d.flat) == null ? void 0 : x.floor_number), 1),
835
+ h[3] || (h[3] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Floor", -1))
836
836
  ])) : createCommentVNode("", !0),
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),
839
- f[4] || (f[4] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Room", -1))
837
+ (V = (C = d.flat) == null ? void 0 : C.type) != null && V.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
838
+ createElementVNode("p", _hoisted_19, toDisplayString((D = d.flat) == null ? void 0 : D.type.rooms_count), 1),
839
+ h[4] || (h[4] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Room", -1))
840
840
  ])) : createCommentVNode("", !0)
841
841
  ]),
842
- (S = (N = _.flat) == null ? void 0 : N.type) != null && S.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
842
+ (S = (N = d.flat) == null ? void 0 : N.type) != null && S.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
843
843
  createElementVNode("p", _hoisted_21, [
844
- createTextVNode(toDisplayString((j = _.flat) == null ? void 0 : j.type.area_m2) + " ", 1),
845
- f[5] || (f[5] = createElementVNode("span", { class: "ire-font-light" }, [
844
+ createTextVNode(toDisplayString((j = d.flat) == null ? void 0 : j.type.area_m2) + " ", 1),
845
+ h[5] || (h[5] = createElementVNode("span", { class: "ire-font-light" }, [
846
846
  createTextVNode(" M "),
847
847
  createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
848
848
  ], -1))
849
849
  ]),
850
- f[6] || (f[6] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Area", -1))
850
+ h[6] || (h[6] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Area", -1))
851
851
  ])) : createCommentVNode("", !0),
852
- (T = _.flat) != null && T.price ? (openBlock(), createElementBlock("div", _hoisted_22, [
852
+ (R = d.flat) != null && R.price ? (openBlock(), createElementBlock("div", _hoisted_22, [
853
853
  createElementVNode("div", null, [
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),
854
+ (T = d.flat) != null && T.offer_price ? (openBlock(), createElementBlock("div", _hoisted_24, [
855
+ createElementVNode("p", _hoisted_25, toDisplayString(Number((O = d.flat) == null ? void 0 : O.price).toLocaleString()), 1),
856
856
  createElementVNode("p", _hoisted_26, [
857
- createTextVNode(toDisplayString(Number((F = _.flat) == null ? void 0 : F.offer_price).toLocaleString()), 1),
858
- f[8] || (f[8] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
857
+ createTextVNode(toDisplayString(Number((F = d.flat) == null ? void 0 : F.offer_price).toLocaleString()), 1),
858
+ h[8] || (h[8] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
859
859
  ])
860
860
  ])) : (openBlock(), createElementBlock("p", _hoisted_23, [
861
- createTextVNode(toDisplayString(Number((P = _.flat) == null ? void 0 : P.price).toLocaleString()), 1),
862
- f[7] || (f[7] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
861
+ createTextVNode(toDisplayString(Number((P = d.flat) == null ? void 0 : P.price).toLocaleString()), 1),
862
+ h[7] || (h[7] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
863
863
  ]))
864
864
  ]),
865
- f[9] || (f[9] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Price", -1))
865
+ h[9] || (h[9] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Price", -1))
866
866
  ])) : createCommentVNode("", !0)
867
867
  ])
868
868
  ])
@@ -880,7 +880,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
880
880
  height: "20",
881
881
  viewBox: "0 0 50 50"
882
882
  };
883
- function _sfc_render(r, e) {
883
+ function _sfc_render(o, e) {
884
884
  return openBlock(), createElementBlock("svg", _hoisted_1$5, e[0] || (e[0] = [
885
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)
886
886
  ]));
@@ -888,17 +888,17 @@ function _sfc_render(r, e) {
888
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-max-w-[1280px] 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({
889
889
  __name: "PreviewModal",
890
890
  emits: ["close"],
891
- setup(r) {
892
- return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$4, [
891
+ setup(o) {
892
+ return (e, r) => (openBlock(), createElementBlock("div", _hoisted_1$4, [
893
893
  createElementVNode("div", {
894
894
  class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full ire-bg-black/40 ire-transition-all",
895
- onClick: t[0] || (t[0] = (o) => e.$emit("close"))
895
+ onClick: r[0] || (r[0] = (i) => e.$emit("close"))
896
896
  }),
897
897
  createElementVNode("div", _hoisted_2$2, [
898
898
  createElementVNode("div", _hoisted_3$1, [
899
899
  createElementVNode("div", {
900
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",
901
- onClick: t[1] || (t[1] = (o) => e.$emit("close"))
901
+ onClick: r[1] || (r[1] = (i) => e.$emit("close"))
902
902
  }, [
903
903
  createVNode(Close)
904
904
  ])
@@ -914,8 +914,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
914
914
  props: {
915
915
  editor: {}
916
916
  },
917
- setup(r) {
918
- return (e, t) => (openBlock(), createElementBlock("div", {
917
+ setup(o) {
918
+ return (e, r) => (openBlock(), createElementBlock("div", {
919
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",
920
920
  innerHTML: e.editor
921
921
  }, null, 8, _hoisted_1$3));
@@ -925,17 +925,17 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
925
925
  props: {
926
926
  modalData: {}
927
927
  },
928
- setup(r) {
929
- return (e, t) => {
930
- var o, c, v, m, y, _, f, g, d, s, n, i;
928
+ setup(o) {
929
+ return (e, r) => {
930
+ var i, a, p, f, y, d, h, k, n, u, g, s;
931
931
  return openBlock(), createElementBlock("div", null, [
932
- createElementVNode("p", _hoisted_1$2, toDisplayString((c = (o = e.modalData) == null ? void 0 : o.modalObject) == null ? void 0 : c.title), 1),
932
+ createElementVNode("p", _hoisted_1$2, toDisplayString((a = (i = e.modalData) == null ? void 0 : i.modalObject) == null ? void 0 : a.title), 1),
933
933
  createVNode(_sfc_main$4, {
934
- editor: (m = (v = e.modalData) == null ? void 0 : v.modalObject) == null ? void 0 : m.description
934
+ editor: (f = (p = e.modalData) == null ? void 0 : p.modalObject) == null ? void 0 : f.description
935
935
  }, null, 8, ["editor"]),
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", {
936
+ (k = (h = (d = (y = e.modalData) == null ? void 0 : y.modalObject) == null ? void 0 : d.modalImage) == null ? void 0 : h[0]) != null && k.url ? (openBlock(), createElementBlock("img", {
937
937
  key: 0,
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,
938
+ src: (s = (g = (u = (n = e.modalData) == null ? void 0 : n.modalObject) == null ? void 0 : u.modalImage) == null ? void 0 : g[0]) == null ? void 0 : s.url,
939
939
  alt: "",
940
940
  class: "ire-mt-5 ire-h-[400px] ire-w-full ire-object-contain"
941
941
  }, null, 8, _hoisted_2$1)) : createCommentVNode("", !0)
@@ -951,99 +951,99 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
951
951
  actions: {}
952
952
  },
953
953
  emits: ["changeComponent"],
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;
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(
954
+ setup(o, { emit: e }) {
955
+ const r = e, i = o, a = ref(), p = ref(), f = ref(), y = ref(), d = computed$1(() => {
956
+ var n, u;
957
+ if ((n = i.block) != null && n.svg)
958
+ return (u = i.block) == null ? void 0 : u.svg;
959
+ }), h = (n) => {
960
+ const u = n.target;
961
+ u && (p.value = u);
962
+ }, k = (n) => {
963
+ var g, s, _;
964
+ const u = n.target;
965
+ (u == null ? void 0 : u.nodeName) === "path" && (((g = y.value) == null ? void 0 : g.conf) === "sold" || ((s = y.value) == null ? void 0 : s.conf) === "reserved" || r(
966
966
  "changeComponent",
967
- ((u = m.value) == null ? void 0 : u.type) || "",
967
+ ((_ = f.value) == null ? void 0 : _.type) || "",
968
968
  y.value
969
969
  ));
970
970
  };
971
971
  return watch(
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;
977
- if (s && (s == null ? void 0 : s.nodeName) === "g") {
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
- ($) => {
983
- var C;
984
- return ($ == null ? void 0 : $.id) === ((C = m.value) == null ? void 0 : C.id);
972
+ () => p.value,
973
+ (n) => {
974
+ var g, s, _, t, l, c, v, b;
975
+ if (!n) return;
976
+ const u = n == null ? void 0 : n.parentElement;
977
+ if (u && (u == null ? void 0 : u.nodeName) === "g") {
978
+ const m = u == null ? void 0 : u.getAttribute("id");
979
+ if (!m || (f.value = ((s = (g = i.block) == null ? void 0 : g.polygon_data) == null ? void 0 : s.find((E) => (E == null ? void 0 : E.key) === m)) || null, !f.value)) return;
980
+ if (((_ = f.value) == null ? void 0 : _.type) === "floor") {
981
+ const E = (t = i.floors) == null ? void 0 : t.find(
982
+ (w) => {
983
+ var $;
984
+ return (w == null ? void 0 : w.id) === (($ = f.value) == null ? void 0 : $.id);
985
985
  }
986
986
  );
987
- y.value = w;
988
- } else if (((a = m.value) == null ? void 0 : a.type) === "flat") {
989
- const w = (h = o.flats) == null ? void 0 : h.find(
990
- ($) => {
991
- var C;
992
- return ($ == null ? void 0 : $.id) === ((C = m.value) == null ? void 0 : C.id);
987
+ y.value = E;
988
+ } else if (((l = f.value) == null ? void 0 : l.type) === "flat") {
989
+ const E = (c = i.flats) == null ? void 0 : c.find(
990
+ (w) => {
991
+ var $;
992
+ return (w == null ? void 0 : w.id) === (($ = f.value) == null ? void 0 : $.id);
993
993
  }
994
994
  );
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
- ($) => {
999
- var C;
1000
- return ($ == null ? void 0 : $.id) === ((C = m.value) == null ? void 0 : C.id);
995
+ y.value = E;
996
+ } else if (((v = f.value) == null ? void 0 : v.type) === "tooltip") {
997
+ const E = (b = i.actions) == null ? void 0 : b.find(
998
+ (w) => {
999
+ var $;
1000
+ return (w == null ? void 0 : w.id) === (($ = f.value) == null ? void 0 : $.id);
1001
1001
  }
1002
1002
  );
1003
- y.value = w;
1003
+ y.value = E;
1004
1004
  } else
1005
1005
  y.value = null;
1006
1006
  } else
1007
- m.value = null, y.value = null;
1007
+ f.value = null, y.value = null;
1008
1008
  }
1009
- ), (d, s) => {
1010
- var n;
1009
+ ), (n, u) => {
1010
+ var g;
1011
1011
  return openBlock(), createBlock(_sfc_main$f, {
1012
1012
  hoverdData: y.value,
1013
- type: (n = m.value) == null ? void 0 : n.type
1013
+ type: (g = f.value) == null ? void 0 : g.type
1014
1014
  }, {
1015
1015
  header: withCtx(() => {
1016
- var i;
1016
+ var s;
1017
1017
  return [
1018
1018
  createVNode(_sfc_main$b, {
1019
- onClick: s[0] || (s[0] = (u) => d.$emit("changeComponent", "project", null))
1019
+ onClick: u[0] || (u[0] = (_) => n.$emit("changeComponent", "project", null))
1020
1020
  }),
1021
- createElementVNode("p", _hoisted_1$1, toDisplayString((i = d.block) == null ? void 0 : i.title), 1)
1021
+ createElementVNode("p", _hoisted_1$1, toDisplayString((s = n.block) == null ? void 0 : s.title), 1)
1022
1022
  ];
1023
1023
  }),
1024
1024
  default: withCtx(() => {
1025
- var i, u, l, a, h, p;
1025
+ var s, _, t, l, c, v;
1026
1026
  return [
1027
1027
  createElementVNode("div", _hoisted_2, [
1028
1028
  createElementVNode("img", {
1029
- src: ((l = (u = (i = d.block) == null ? void 0 : i.block_image) == null ? void 0 : u[0]) == null ? void 0 : l.url) || "",
1029
+ src: ((t = (_ = (s = n.block) == null ? void 0 : s.block_image) == null ? void 0 : _[0]) == null ? void 0 : t.url) || "",
1030
1030
  alt: "",
1031
1031
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
1032
1032
  }, null, 8, _hoisted_3),
1033
1033
  (openBlock(), createElementBlock("div", {
1034
1034
  ref_key: "svgRef",
1035
- ref: c,
1036
- innerHTML: _.value,
1037
- key: _.value,
1035
+ ref: a,
1036
+ innerHTML: d.value,
1037
+ key: d.value,
1038
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", [
1039
1039
  {
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)
1040
+ "hover:[&_path]:ire-fill-[var(--reserved-color)]": ((l = y.value) == null ? void 0 : l.conf) === "reserved",
1041
+ "hover:[&_path]:ire-fill-[var(--sold-color)]": ((c = y.value) == null ? void 0 : c.conf) === "sold",
1042
+ "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((v = y.value) != null && v.conf)
1043
1043
  }
1044
1044
  ]]),
1045
- onMouseover: f,
1046
- onClick: g
1045
+ onMouseover: h,
1046
+ onClick: k
1047
1047
  }, null, 42, _hoisted_4))
1048
1048
  ])
1049
1049
  ];
@@ -1052,36 +1052,39 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1052
1052
  }, 8, ["hoverdData", "type"]);
1053
1053
  };
1054
1054
  }
1055
- }), _hoisted_1 = { class: "ire-strokee" }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
1055
+ }), _hoisted_1 = { class: "interactive-real-estate" }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
1056
1056
  __name: "Preview",
1057
1057
  props: {
1058
1058
  shortcodeDataProps: {}
1059
1059
  },
1060
1060
  setup(__props) {
1061
- var r, e, t, o, c, v, m, y, _, f, g, d;
1061
+ var o, e, r, i, a, p, f, y, d, h, k, n, u, g;
1062
1062
  const props = __props, getMeta = (s) => props.shortcodeDataProps.meta.find(
1063
- (n) => n.meta_key === s
1063
+ (_) => _.meta_key === s
1064
1064
  ), constants = ref({
1065
- PREVIEW_PATH_COLOR: ((r = getMeta("path_color")) == null ? void 0 : r.meta_value) || "rgba(255, 255, 255, 0.3)",
1065
+ PREVIEW_PATH_COLOR: ((o = getMeta("path_color")) == null ? void 0 : o.meta_value) || "rgba(255, 255, 255, 0.3)",
1066
1066
  PREVIEW_PATH_HOVER_COLOR: ((e = getMeta("path_hover_color")) == null ? void 0 : e.meta_value) || "rgba(250, 250, 250, 0.54)",
1067
- PREVIEW_RESERVED_COLOR: ((t = getMeta("reserved_color")) == null ? void 0 : t.meta_value) || "rgba(255, 247, 89, 0.53)",
1068
- PREVIEW_SOLD_COLOR: ((o = getMeta("sold_color")) == null ? void 0 : o.meta_value) || "rgba(219, 64, 64, 0.45)",
1069
- PREVIEW_STROKE_COLOR: ((c = getMeta("stroke_color")) == null ? void 0 : c.meta_value) || "rgba(0, 0, 0, 1)",
1070
- PREVIEW_STROKE_WIDTH: +((v = getMeta("stroke_width")) == null ? void 0 : v.meta_value) || 1
1067
+ PREVIEW_RESERVED_COLOR: ((r = getMeta("reserved_color")) == null ? void 0 : r.meta_value) || "rgba(255, 247, 89, 0.53)",
1068
+ PREVIEW_SOLD_COLOR: ((i = getMeta("sold_color")) == null ? void 0 : i.meta_value) || "rgba(219, 64, 64, 0.45)",
1069
+ PREVIEW_STROKE_COLOR: ((a = getMeta("stroke_color")) == null ? void 0 : a.meta_value) || "rgba(0, 0, 0, 1)",
1070
+ PREVIEW_STROKE_WIDTH: +((p = getMeta("stroke_width")) == null ? void 0 : p.meta_value) || 1,
1071
+ PREVIEW_BORDER_RADIUS: +((f = getMeta("border_radius")) == null ? void 0 : f.meta_value) || 0
1071
1072
  }), colors = reactive({
1072
- path: (m = constants.value) == null ? void 0 : m.PREVIEW_PATH_COLOR,
1073
- path_hover: (y = constants.value) == null ? void 0 : y.PREVIEW_PATH_HOVER_COLOR,
1074
- reserved: (_ = constants.value) == null ? void 0 : _.PREVIEW_RESERVED_COLOR,
1075
- sold: (f = constants.value) == null ? void 0 : f.PREVIEW_SOLD_COLOR,
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
1073
+ path: (y = constants.value) == null ? void 0 : y.PREVIEW_PATH_COLOR,
1074
+ path_hover: (d = constants.value) == null ? void 0 : d.PREVIEW_PATH_HOVER_COLOR,
1075
+ reserved: (h = constants.value) == null ? void 0 : h.PREVIEW_RESERVED_COLOR,
1076
+ sold: (k = constants.value) == null ? void 0 : k.PREVIEW_SOLD_COLOR,
1077
+ stroke_color: (n = constants.value) == null ? void 0 : n.PREVIEW_STROKE_COLOR,
1078
+ stroke_width: (u = constants.value) == null ? void 0 : u.PREVIEW_STROKE_WIDTH,
1079
+ border_radius: (g = constants.value) == null ? void 0 : g.PREVIEW_BORDER_RADIUS
1078
1080
  }), cssVariables = computed$1(() => ({
1079
1081
  "--reserved-color": colors.reserved,
1080
1082
  "--sold-color": colors.sold,
1081
1083
  "--path-hover-color": colors.path_hover,
1082
1084
  "--path-color": colors.path,
1083
1085
  "--stroke-color": colors.stroke_color,
1084
- "--stroke-width": colors.stroke_width + "px"
1086
+ "--stroke-width": colors.stroke_width + "px",
1087
+ "--border-radius": colors.border_radius + "px"
1085
1088
  })), shortcodeData = ref(props.shortcodeDataProps), flow = ref(
1086
1089
  "projectFlow"
1087
1090
  ), hoveredData = ref(), showModal = ref(!1), activeBlock = ref(), activeFloor = ref(), project = computed$1(() => {
@@ -1089,26 +1092,26 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1089
1092
  if (shortcodeData.value)
1090
1093
  return (s = shortcodeData.value) == null ? void 0 : s.project;
1091
1094
  }), floors = computed$1(() => {
1092
- var s, n;
1095
+ var s, _;
1093
1096
  if (shortcodeData.value)
1094
- return (s = shortcodeData.value.floors) == null || s.forEach((i) => {
1095
- var a, h;
1096
- const u = (h = (a = shortcodeData.value) == null ? void 0 : a.flats) == null ? void 0 : h.filter((p) => {
1097
- var k;
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 $;
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) === (($ = i == null ? void 0 : i.block_id) == null ? void 0 : $.toString()) : !(p != null && p.block_id) : !1;
1097
+ return (s = shortcodeData.value.floors) == null || s.forEach((t) => {
1098
+ var v, b;
1099
+ const l = (b = (v = shortcodeData.value) == null ? void 0 : v.flats) == null ? void 0 : b.filter((m) => {
1100
+ var E;
1101
+ return (m == null ? void 0 : m.floor_number) !== ((E = t == null ? void 0 : t.floor_number) == null ? void 0 : E.toString()) ? !1 : t != null && t.polygon_data ? Object == null ? void 0 : Object.values(t == null ? void 0 : t.polygon_data).some(
1102
+ ($) => {
1103
+ var x;
1104
+ return $ != null && $.type && ($ == null ? void 0 : $.type) === "flat" && ($ == null ? void 0 : $.id) === (m == null ? void 0 : m.id) ? t != null && t.block_id ? (m == null ? void 0 : m.block_id) === ((x = t == null ? void 0 : t.block_id) == null ? void 0 : x.toString()) : !(m != null && m.block_id) : !1;
1102
1105
  }
1103
1106
  ) : !1;
1104
1107
  });
1105
- i.flats = u;
1106
- const { conf: l } = i || {};
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");
1108
+ t.flats = l;
1109
+ const { conf: c } = t || {};
1110
+ if (l != null && l.length && !c) {
1111
+ const m = l == null ? void 0 : l.every((w) => (w == null ? void 0 : w.conf) === "reserved"), E = l == null ? void 0 : l.every((w) => (w == null ? void 0 : w.conf) === "sold");
1112
+ m ? t.conf = "reserved" : E && (t.conf = "sold");
1110
1113
  }
1111
- }), (n = shortcodeData.value) == null ? void 0 : n.floors;
1114
+ }), (_ = shortcodeData.value) == null ? void 0 : _.floors;
1112
1115
  }), blocks = computed$1(() => {
1113
1116
  if (shortcodeData.value)
1114
1117
  return shortcodeData.value.blocks;
@@ -1116,15 +1119,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1116
1119
  if (shortcodeData.value)
1117
1120
  return shortcodeData.value.types;
1118
1121
  }), flats = computed$1(() => {
1119
- var s, n;
1122
+ var s, _;
1120
1123
  if (shortcodeData.value)
1121
- return (n = (s = shortcodeData.value) == null ? void 0 : s.flats) == null ? void 0 : n.map((i) => {
1122
- var u;
1123
- if (i != null && i.use_type || !(i != null && i.type)) {
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));
1125
- l && (i.type = l);
1124
+ return (_ = (s = shortcodeData.value) == null ? void 0 : s.flats) == null ? void 0 : _.map((t) => {
1125
+ var l;
1126
+ if (t != null && t.use_type || !(t != null && t.type)) {
1127
+ const c = (l = types.value) == null ? void 0 : l.find((v) => (v == null ? void 0 : v.id) === (t == null ? void 0 : t.type_id));
1128
+ c && (t.type = c);
1126
1129
  }
1127
- return i;
1130
+ return t;
1128
1131
  });
1129
1132
  }), actions = computed$1(() => {
1130
1133
  var s;
@@ -1135,8 +1138,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1135
1138
  if (shortcodeData.value)
1136
1139
  return (s = shortcodeData.value) == null ? void 0 : s.meta;
1137
1140
  }), getColorMeta = (s) => {
1138
- var n, i;
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;
1141
+ var _, t;
1142
+ return (t = (_ = projectMeta.value) == null ? void 0 : _.find((l) => (l == null ? void 0 : l.meta_key) === s)) == null ? void 0 : t.meta_value;
1140
1143
  }, changeRoute = (flowType, polygonItem) => {
1141
1144
  switch (flowType) {
1142
1145
  case "project":
@@ -1172,10 +1175,10 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1172
1175
  return watch(
1173
1176
  () => projectMeta.value,
1174
1177
  () => {
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));
1178
+ const s = getColorMeta("path_color"), _ = getColorMeta("path_hover_color"), t = getColorMeta("reserved_color"), l = getColorMeta("sold_color"), c = getColorMeta("stroke_color"), v = getColorMeta("stroke_width");
1179
+ s && (colors.path = s.toString()), _ && (colors.path_hover = _.toString()), t && (colors.reserved = t.toString()), l && (colors.sold = l.toString()), c && (colors.stroke_color = c.toString()), v && (colors.stroke_width = Number(v));
1177
1180
  }
1178
- ), (s, n) => (openBlock(), createElementBlock("div", _hoisted_1, [
1181
+ ), (s, _) => (openBlock(), createElementBlock("div", _hoisted_1, [
1179
1182
  createVNode(Transition, {
1180
1183
  name: "ire-fade-in-out",
1181
1184
  mode: "out-in",
@@ -1191,14 +1194,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1191
1194
  projectMeta: projectMeta.value,
1192
1195
  blocks: blocks.value,
1193
1196
  actions: actions.value,
1194
- onChangeComponent: n[0] || (n[0] = (i, u) => changeRoute(i, u))
1197
+ onChangeComponent: _[0] || (_[0] = (t, l) => changeRoute(t, l))
1195
1198
  }, null, 8, ["project", "floors", "flats", "projectMeta", "blocks", "actions"])) : flow.value === "blockFlow" && flats.value && floors.value && blocks.value && activeBlock.value ? (openBlock(), createBlock(_sfc_main$2, {
1196
1199
  key: 1,
1197
1200
  block: activeBlock.value,
1198
1201
  flats: flats.value,
1199
1202
  floors: floors.value,
1200
1203
  actions: actions.value,
1201
- onChangeComponent: n[1] || (n[1] = (i, u) => changeRoute(i, u))
1204
+ onChangeComponent: _[1] || (_[1] = (t, l) => changeRoute(t, l))
1202
1205
  }, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$a, {
1203
1206
  key: 2,
1204
1207
  flats: flats.value,
@@ -1206,12 +1209,12 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1206
1209
  floors: floors.value,
1207
1210
  blocks: blocks.value,
1208
1211
  actions: actions.value,
1209
- onChangeComponent: n[2] || (n[2] = (i, u) => changeRoute(i, u))
1212
+ onChangeComponent: _[2] || (_[2] = (t, l) => changeRoute(t, l))
1210
1213
  }, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : flow.value === "flatFlow" ? (openBlock(), createBlock(_sfc_main$7, {
1211
1214
  key: 3,
1212
1215
  flat: hoveredData.value,
1213
1216
  floors: floors.value,
1214
- onChangeComponent: n[3] || (n[3] = (i, u) => changeRoute(i, u))
1217
+ onChangeComponent: _[3] || (_[3] = (t, l) => changeRoute(t, l))
1215
1218
  }, null, 8, ["flat", "floors"])) : createCommentVNode("", !0)
1216
1219
  ])) : createCommentVNode("", !0)
1217
1220
  ]),
@@ -1225,7 +1228,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1225
1228
  default: withCtx(() => [
1226
1229
  showModal.value ? (openBlock(), createBlock(_sfc_main$5, {
1227
1230
  key: 0,
1228
- onClose: n[4] || (n[4] = (i) => showModal.value = !1)
1231
+ onClose: _[4] || (_[4] = (t) => showModal.value = !1)
1229
1232
  }, {
1230
1233
  default: withCtx(() => [
1231
1234
  createVNode(_sfc_main$3, { modalData: hoveredData.value }, null, 8, ["modalData"])
@@ -1243,8 +1246,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1243
1246
  props: {
1244
1247
  data: {}
1245
1248
  },
1246
- setup(r) {
1247
- return (e, t) => (openBlock(), createElementBlock("div", null, [
1249
+ setup(o) {
1250
+ return (e, r) => (openBlock(), createElementBlock("div", null, [
1248
1251
  createVNode(_sfc_main$1, { "shortcode-data-props": e.data }, null, 8, ["shortcode-data-props"])
1249
1252
  ]));
1250
1253
  }