ire-preview 2.1.6 → 2.2.1

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,34 @@
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";
1
+ import { openBlock, createElementBlock, createElementVNode, defineComponent, createVNode, Transition, withCtx, toDisplayString, createCommentVNode, Fragment, createTextVNode, inject, createBlock, normalizeStyle, unref, ref, computed as computed$1, renderSlot, effectScope, markRaw, hasInjectionContext, watch, reactive, isRef, isReactive, toRaw, getCurrentScope, onScopeDispose, nextTick, toRefs, normalizeClass, mergeModels, useModel, withDirectives, renderList, vModelSelect, onMounted, createStaticVNode, provide, Teleport, createApp } from "vue";
2
+ const _export_sfc = (e, t) => {
3
+ const r = e.__vccOpts || e;
4
+ for (const [o, s] of t)
5
+ r[o] = s;
6
+ return r;
7
+ }, _sfc_main$k = {};
8
+ function _sfc_render$4(e, t) {
9
+ return openBlock(), createElementBlock("div", null, t[0] || (t[0] = [
10
+ createElementVNode("h1", { class: "underline" }, "undeliner", -1)
11
+ ]));
12
+ }
13
+ const App = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$4]]);
2
14
  /**
3
15
  * @vue/shared v3.5.12
4
16
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
17
  * @license MIT
6
18
  **/
7
- const extend = Object.assign, isFunction = (o) => typeof o == "function", isSymbol = (o) => typeof o == "symbol", hasChanged = (o, e) => !Object.is(o, e);
19
+ const extend = Object.assign, isFunction = (e) => typeof e == "function", isSymbol = (e) => typeof e == "symbol", hasChanged = (e, t) => !Object.is(e, t);
8
20
  /**
9
21
  * @vue/reactivity v3.5.12
10
22
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
11
23
  * @license MIT
12
24
  **/
13
25
  let activeSub, batchDepth = 0, batchedSub, batchedComputed;
14
- function batch(o, e = !1) {
15
- if (o.flags |= 8, e) {
16
- o.next = batchedComputed, batchedComputed = o;
26
+ function batch(e, t = !1) {
27
+ if (e.flags |= 8, t) {
28
+ e.next = batchedComputed, batchedComputed = e;
17
29
  return;
18
30
  }
19
- o.next = batchedSub, batchedSub = o;
31
+ e.next = batchedSub, batchedSub = e;
20
32
  }
21
33
  function startBatch() {
22
34
  batchDepth++;
@@ -25,106 +37,106 @@ function endBatch() {
25
37
  if (--batchDepth > 0)
26
38
  return;
27
39
  if (batchedComputed) {
28
- let e = batchedComputed;
29
- for (batchedComputed = void 0; e; ) {
30
- const r = e.next;
31
- e.next = void 0, e.flags &= -9, e = r;
40
+ let t = batchedComputed;
41
+ for (batchedComputed = void 0; t; ) {
42
+ const r = t.next;
43
+ t.next = void 0, t.flags &= -9, t = r;
32
44
  }
33
45
  }
34
- let o;
46
+ let e;
35
47
  for (; batchedSub; ) {
36
- let e = batchedSub;
37
- for (batchedSub = void 0; e; ) {
38
- const r = e.next;
39
- if (e.next = void 0, e.flags &= -9, e.flags & 1)
48
+ let t = batchedSub;
49
+ for (batchedSub = void 0; t; ) {
50
+ const r = t.next;
51
+ if (t.next = void 0, t.flags &= -9, t.flags & 1)
40
52
  try {
41
- e.trigger();
42
- } catch (i) {
43
- o || (o = i);
53
+ t.trigger();
54
+ } catch (o) {
55
+ e || (e = o);
44
56
  }
45
- e = r;
57
+ t = r;
46
58
  }
47
59
  }
48
- if (o) throw o;
60
+ if (e) throw e;
49
61
  }
50
- function prepareDeps(o) {
51
- for (let e = o.deps; e; e = e.nextDep)
52
- e.version = -1, e.prevActiveLink = e.dep.activeLink, e.dep.activeLink = e;
62
+ function prepareDeps(e) {
63
+ for (let t = e.deps; t; t = t.nextDep)
64
+ t.version = -1, t.prevActiveLink = t.dep.activeLink, t.dep.activeLink = t;
53
65
  }
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;
66
+ function cleanupDeps(e) {
67
+ let t, r = e.depsTail, o = r;
68
+ for (; o; ) {
69
+ const s = o.prevDep;
70
+ o.version === -1 ? (o === r && (r = s), removeSub(o), removeDep(o)) : t = o, o.dep.activeLink = o.prevActiveLink, o.prevActiveLink = void 0, o = s;
59
71
  }
60
- o.deps = e, o.depsTail = r;
72
+ e.deps = t, e.depsTail = r;
61
73
  }
62
- function isDirty(o) {
63
- for (let e = o.deps; e; e = e.nextDep)
64
- if (e.dep.version !== e.version || e.dep.computed && (refreshComputed(e.dep.computed) || e.dep.version !== e.version))
74
+ function isDirty(e) {
75
+ for (let t = e.deps; t; t = t.nextDep)
76
+ if (t.dep.version !== t.version || t.dep.computed && (refreshComputed(t.dep.computed) || t.dep.version !== t.version))
65
77
  return !0;
66
- return !!o._dirty;
78
+ return !!e._dirty;
67
79
  }
68
- function refreshComputed(o) {
69
- if (o.flags & 4 && !(o.flags & 16) || (o.flags &= -17, o.globalVersion === globalVersion))
80
+ function refreshComputed(e) {
81
+ if (e.flags & 4 && !(e.flags & 16) || (e.flags &= -17, e.globalVersion === globalVersion))
70
82
  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;
83
+ e.globalVersion = globalVersion;
84
+ const t = e.dep;
85
+ if (e.flags |= 2, t.version > 0 && !e.isSSR && e.deps && !isDirty(e)) {
86
+ e.flags &= -3;
75
87
  return;
76
88
  }
77
- const r = activeSub, i = shouldTrack;
78
- activeSub = o, shouldTrack = !0;
89
+ const r = activeSub, o = shouldTrack;
90
+ activeSub = e, shouldTrack = !0;
79
91
  try {
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;
92
+ prepareDeps(e);
93
+ const s = e.fn(e._value);
94
+ (t.version === 0 || hasChanged(s, e._value)) && (e._value = s, t.version++);
95
+ } catch (s) {
96
+ throw t.version++, s;
85
97
  } finally {
86
- activeSub = r, shouldTrack = i, cleanupDeps(o), o.flags &= -3;
98
+ activeSub = r, shouldTrack = o, cleanupDeps(e), e.flags &= -3;
87
99
  }
88
100
  }
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)) {
101
+ function removeSub(e, t = !1) {
102
+ const { dep: r, prevSub: o, nextSub: s } = e;
103
+ if (o && (o.nextSub = s, e.prevSub = void 0), s && (s.prevSub = o, e.nextSub = void 0), r.subs === e && (r.subs = o, !o && r.computed)) {
92
104
  r.computed.flags &= -5;
93
- for (let p = r.computed.deps; p; p = p.nextDep)
94
- removeSub(p, !0);
105
+ for (let c = r.computed.deps; c; c = c.nextDep)
106
+ removeSub(c, !0);
95
107
  }
96
- !e && !--r.sc && r.map && r.map.delete(r.key);
108
+ !t && !--r.sc && r.map && r.map.delete(r.key);
97
109
  }
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);
110
+ function removeDep(e) {
111
+ const { prevDep: t, nextDep: r } = e;
112
+ t && (t.nextDep = r, e.prevDep = void 0), r && (r.prevDep = t, e.nextDep = void 0);
101
113
  }
102
114
  let shouldTrack = !0, globalVersion = 0;
103
115
  class Link {
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;
116
+ constructor(t, r) {
117
+ this.sub = t, this.dep = r, this.version = r.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
106
118
  }
107
119
  }
108
120
  class Dep {
109
- constructor(e) {
110
- this.computed = e, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0;
121
+ constructor(t) {
122
+ this.computed = t, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0;
111
123
  }
112
- track(e) {
124
+ track(t) {
113
125
  if (!activeSub || !shouldTrack || activeSub === this.computed)
114
126
  return;
115
127
  let r = this.activeLink;
116
128
  if (r === void 0 || r.sub !== activeSub)
117
129
  r = this.activeLink = new Link(activeSub, this), activeSub.deps ? (r.prevDep = activeSub.depsTail, activeSub.depsTail.nextDep = r, activeSub.depsTail = r) : activeSub.deps = activeSub.depsTail = r, addSub(r);
118
130
  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);
131
+ const o = r.nextDep;
132
+ o.prevDep = r.prevDep, r.prevDep && (r.prevDep.nextDep = o), r.prevDep = activeSub.depsTail, r.nextDep = void 0, activeSub.depsTail.nextDep = r, activeSub.depsTail = r, activeSub.deps === r && (activeSub.deps = o);
121
133
  }
122
134
  return r;
123
135
  }
124
- trigger(e) {
125
- this.version++, globalVersion++, this.notify(e);
136
+ trigger(t) {
137
+ this.version++, globalVersion++, this.notify(t);
126
138
  }
127
- notify(e) {
139
+ notify(t) {
128
140
  startBatch();
129
141
  try {
130
142
  for (let r = this.subs; r; r = r.prevSub)
@@ -134,24 +146,24 @@ class Dep {
134
146
  }
135
147
  }
136
148
  }
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
- e.flags |= 20;
142
- for (let i = e.deps; i; i = i.nextDep)
143
- addSub(i);
149
+ function addSub(e) {
150
+ if (e.dep.sc++, e.sub.flags & 4) {
151
+ const t = e.dep.computed;
152
+ if (t && !e.dep.subs) {
153
+ t.flags |= 20;
154
+ for (let o = t.deps; o; o = o.nextDep)
155
+ addSub(o);
144
156
  }
145
- const r = o.dep.subs;
146
- r !== o && (o.prevSub = r, r && (r.nextSub = o)), o.dep.subs = o;
157
+ const r = e.dep.subs;
158
+ r !== e && (e.prevSub = r, r && (r.nextSub = e)), e.dep.subs = e;
147
159
  }
148
160
  }
149
161
  new Set(
150
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((o) => o !== "arguments" && o !== "caller").map((o) => Symbol[o]).filter(isSymbol)
162
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(isSymbol)
151
163
  );
152
164
  class ComputedRefImpl {
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;
165
+ constructor(t, r, o) {
166
+ this.fn = t, 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 = o;
155
167
  }
156
168
  /**
157
169
  * @internal
@@ -162,39 +174,39 @@ class ComputedRefImpl {
162
174
  return batch(this, !0), !0;
163
175
  }
164
176
  get value() {
165
- const e = this.dep.track();
166
- return refreshComputed(this), e && (e.version = this.dep.version), this._value;
177
+ const t = this.dep.track();
178
+ return refreshComputed(this), t && (t.version = this.dep.version), this._value;
167
179
  }
168
- set value(e) {
169
- this.setter && this.setter(e);
180
+ set value(t) {
181
+ this.setter && this.setter(t);
170
182
  }
171
183
  }
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);
184
+ function computed(e, t, r = !1) {
185
+ let o, s;
186
+ return isFunction(e) ? o = e : (o = e.get, s = e.set), new ComputedRefImpl(o, s, r);
175
187
  }
176
- const _hoisted_1$f = {
188
+ const _hoisted_1$g = {
177
189
  key: 0,
178
190
  class: "ire-pointer-events-none ire-absolute !ire-bottom-10 !ire-right-10 ire-w-fit ire-select-none ire-rounded-lg ire-border ire-bg-white ire-p-4"
179
- }, _hoisted_2$8 = {
191
+ }, _hoisted_2$9 = {
180
192
  key: 0,
181
193
  class: "ire-flex ire-items-center ire-gap-3"
182
- }, _hoisted_3$6 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$5 = { class: "!ire-text-2xl" }, _hoisted_5$1 = {
194
+ }, _hoisted_3$8 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$7 = { class: "!ire-text-2xl" }, _hoisted_5$3 = {
183
195
  key: 0,
184
196
  class: "ire-rounded-lg ire-bg-gray-100 ire-p-6"
185
- }, _hoisted_6$1 = {
197
+ }, _hoisted_6$3 = {
186
198
  key: 0,
187
199
  class: "!ire-text-2xl"
188
- }, _hoisted_7$1 = { key: 1 }, _hoisted_8$1 = {
200
+ }, _hoisted_7$3 = { key: 1 }, _hoisted_8$3 = {
189
201
  key: 0,
190
202
  class: "ire-flex ire-items-center ire-gap-2"
191
- }, _hoisted_9$1 = { class: "ire-min-w-3 !ire-text-2xl" }, _hoisted_10$1 = {
203
+ }, _hoisted_9$3 = { class: "ire-min-w-3 !ire-text-2xl" }, _hoisted_10$3 = {
192
204
  key: 1,
193
205
  class: "ire-flex ire-items-center ire-gap-2"
194
- }, _hoisted_11$1 = { class: "min-w-3 !ire-text-2xl" }, _hoisted_12$1 = {
206
+ }, _hoisted_11$2 = { class: "min-w-3 !ire-text-2xl" }, _hoisted_12$2 = {
195
207
  key: 2,
196
208
  class: "ire-flex ire-items-center ire-gap-2"
197
- }, _hoisted_13$1 = { class: "ire-min-w-3 !ire-text-2xl" }, _hoisted_14$1 = {
209
+ }, _hoisted_13$2 = { class: "ire-min-w-3 !ire-text-2xl" }, _hoisted_14$1 = {
198
210
  key: 1,
199
211
  class: "ire-flex ire-items-center ire-gap-3"
200
212
  }, _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 = {
@@ -209,63 +221,63 @@ const _hoisted_1$f = {
209
221
  }, _hoisted_24$1 = {
210
222
  key: 0,
211
223
  class: "!ire-text-2xl"
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({
224
+ }, _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-solid ire-border-gray-800 ire-p-2" }, _hoisted_29 = { class: "ire-translate-x-3 ire-bg-white" }, _sfc_main$j = /* @__PURE__ */ defineComponent({
213
225
  __name: "Tooltip_1",
214
226
  props: {
215
227
  hoveredData: {},
216
228
  type: {}
217
229
  },
218
- setup(o) {
219
- return (e, r) => (openBlock(), createElementBlock("div", null, [
230
+ setup(e) {
231
+ return (t, r) => (openBlock(), createElementBlock("div", null, [
220
232
  createVNode(Transition, { name: "ire-fade-in-out" }, {
221
233
  default: withCtx(() => {
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;
234
+ var o, s, c, d, k, l, _, w, y, u, f, a, v, n, i, p, m, $, h, E, S, g, b, x, V, C, D, R;
223
235
  return [
224
- e.type && e.hoveredData && e.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
225
- e.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
226
- createElementVNode("div", _hoisted_3$6, [
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))
236
+ t.type && t.hoveredData && t.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
237
+ t.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
238
+ createElementVNode("div", _hoisted_3$8, [
239
+ createElementVNode("div", _hoisted_4$7, toDisplayString((o = t.hoveredData) == null ? void 0 : o.floor_number), 1),
240
+ r[0] || (r[0] = createElementVNode("div", { class: "!ire-text-sm ire-uppercase" }, "Floor", -1))
229
241
  ]),
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))
242
+ (s = t.hoveredData) != null && s.conf || (d = (c = t.hoveredData) == null ? void 0 : c.flats) != null && d.length ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
243
+ (k = t.hoveredData) != null && k.conf ? (openBlock(), createElementBlock("div", _hoisted_6$3, toDisplayString((l = t.hoveredData) == null ? void 0 : l.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$3, [
244
+ (w = (_ = t.hoveredData) == null ? void 0 : _.counts) != null && w.available ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
245
+ createElementVNode("div", _hoisted_9$3, toDisplayString(((u = (y = t.hoveredData) == null ? void 0 : y.counts) == null ? void 0 : u.available) || 0), 1),
246
+ r[1] || (r[1] = createElementVNode("div", { class: "!ire-text-sm ire-uppercase" }, "Available", -1))
235
247
  ])) : createCommentVNode("", !0),
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))
248
+ (a = (f = t.hoveredData) == null ? void 0 : f.counts) != null && a.reserved ? (openBlock(), createElementBlock("div", _hoisted_10$3, [
249
+ createElementVNode("div", _hoisted_11$2, toDisplayString((n = (v = t.hoveredData) == null ? void 0 : v.counts) == null ? void 0 : n.reserved), 1),
250
+ r[2] || (r[2] = createElementVNode("div", { class: "!ire-text-sm ire-uppercase" }, "Reserved", -1))
239
251
  ])) : createCommentVNode("", !0),
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))
252
+ (p = (i = t.hoveredData) == null ? void 0 : i.counts) != null && p.sold ? (openBlock(), createElementBlock("div", _hoisted_12$2, [
253
+ createElementVNode("div", _hoisted_13$2, toDisplayString(($ = (m = t.hoveredData) == null ? void 0 : m.counts) == null ? void 0 : $.sold), 1),
254
+ r[3] || (r[3] = createElementVNode("div", { class: "!ire-text-sm ire-uppercase" }, "Sold", -1))
243
255
  ])) : createCommentVNode("", !0)
244
256
  ]))
245
257
  ])) : createCommentVNode("", !0)
246
- ])) : e.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
258
+ ])) : t.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
247
259
  createElementVNode("div", _hoisted_15$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)
260
+ createElementVNode("span", _hoisted_16$1, toDisplayString((h = t.hoveredData) == null ? void 0 : h.conf), 1),
261
+ createElementVNode("div", _hoisted_17$1, toDisplayString((E = t.hoveredData) == null ? void 0 : E.title), 1)
250
262
  ])
251
- ])) : e.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_18$1, [
263
+ ])) : t.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_18$1, [
252
264
  createElementVNode("div", _hoisted_19$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))
265
+ createElementVNode("div", _hoisted_20$1, toDisplayString((S = t.hoveredData) == null ? void 0 : S.flat_number), 1),
266
+ r[4] || (r[4] = createElementVNode("div", { class: "!ire-mt-2 !ire-text-xs ire-uppercase" }, "Apartment", -1))
255
267
  ]),
256
268
  createElementVNode("div", _hoisted_21$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
- (x = e.hoveredData) != null && x.price ? (openBlock(), createElementBlock("div", _hoisted_23$1, [
269
+ (g = t.hoveredData) != null && g.conf ? (openBlock(), createElementBlock("div", _hoisted_22$1, toDisplayString(t.hoveredData.conf), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
270
+ r[7] || (r[7] = createElementVNode("div", { class: "!ire-text-xs ire-uppercase ire-text-gray-500" }, " Price ", -1)),
271
+ (b = t.hoveredData) != null && b.price ? (openBlock(), createElementBlock("div", _hoisted_23$1, [
260
272
  createElementVNode("div", null, [
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
- createElementVNode("p", _hoisted_27, [
264
- createTextVNode(toDisplayString(Number((D = e.hoveredData) == null ? void 0 : D.offer_price).toLocaleString()), 1),
273
+ (x = t.hoveredData) != null && x.offer_price ? (openBlock(), createElementBlock("div", _hoisted_25$1, [
274
+ createElementVNode("div", _hoisted_26$1, toDisplayString(Number((V = t.hoveredData) == null ? void 0 : V.price).toLocaleString()), 1),
275
+ createElementVNode("div", _hoisted_27, [
276
+ createTextVNode(toDisplayString(Number((C = t.hoveredData) == null ? void 0 : C.offer_price).toLocaleString()), 1),
265
277
  r[6] || (r[6] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
266
278
  ])
267
- ])) : (openBlock(), createElementBlock("p", _hoisted_24$1, [
268
- createTextVNode(toDisplayString(Number(e.hoveredData.price).toLocaleString()), 1),
279
+ ])) : (openBlock(), createElementBlock("div", _hoisted_24$1, [
280
+ createTextVNode(toDisplayString(Number(t.hoveredData.price).toLocaleString()), 1),
269
281
  r[5] || (r[5] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
270
282
  ]))
271
283
  ])
@@ -273,8 +285,8 @@ const _hoisted_1$f = {
273
285
  ], 64))
274
286
  ]),
275
287
  createElementVNode("div", _hoisted_28, [
276
- createElementVNode("p", _hoisted_29, [
277
- createTextVNode(toDisplayString((S = (N = e.hoveredData) == null ? void 0 : N.type) == null ? void 0 : S.area_m2) + " M", 1),
288
+ createElementVNode("div", _hoisted_29, [
289
+ createTextVNode(toDisplayString((R = (D = t.hoveredData) == null ? void 0 : D.type) == null ? void 0 : R.area_m2) + " M", 1),
278
290
  r[8] || (r[8] = createElementVNode("sup", { class: "ire-bg-white !ire-text-xs" }, " 2 ", -1))
279
291
  ])
280
292
  ])
@@ -286,29 +298,386 @@ const _hoisted_1$f = {
286
298
  })
287
299
  ]));
288
300
  }
289
- }), _hoisted_1$e = { class: "ire-relative" }, _hoisted_2$7 = {
301
+ }), _hoisted_1$f = { class: "tooltip-2 ire-flex ire-h-32 ire-w-32 ire-origin-top ire-items-center ire-justify-center ire-rounded-full ire-bg-black ire-p-4 ire-text-white ire-opacity-0 ire-transition-transform ire-duration-500 ire-ease-in-out" }, _hoisted_2$8 = {
302
+ key: 0,
303
+ class: "ire-flex ire-flex-col ire-items-center !ire-text-sm"
304
+ }, _hoisted_3$7 = {
305
+ key: 0,
306
+ class: "ire-uppercase"
307
+ }, _hoisted_4$6 = { key: 1 }, _hoisted_5$2 = {
308
+ key: 1,
309
+ class: "ire-flex ire-items-center ire-gap-3 !ire-text-sm"
310
+ }, _hoisted_6$2 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_7$2 = { class: "ire-text-gray-300 ire-opacity-80" }, _hoisted_8$2 = {
311
+ key: 2,
312
+ class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-1"
313
+ }, _hoisted_9$2 = { class: "ire-line-clamp-2 ire-max-w-52 ire-text-center !ire-text-sm ire-capitalize" }, _hoisted_10$2 = {
314
+ key: 0,
315
+ class: "!ire-text-sm ire-uppercase"
316
+ }, _hoisted_11$1 = {
317
+ key: 1,
318
+ class: "ire-flex ire-items-center"
319
+ }, _hoisted_12$1 = { class: "!ire-text-sm" }, _hoisted_13$1 = { class: "!ire-text-sm" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
320
+ __name: "Tooltip_2",
321
+ props: {
322
+ hoveredData: {},
323
+ type: {}
324
+ },
325
+ setup(e) {
326
+ const t = inject("mouseX"), r = inject("mouseY");
327
+ return (o, s) => (openBlock(), createBlock(Transition, { name: "ire-fade-in" }, {
328
+ default: withCtx(() => {
329
+ var c, d, k, l, _, w, y, u, f, a, v;
330
+ return [
331
+ o.type && o.hoveredData && o.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
332
+ key: 0,
333
+ class: "ire-pointer-events-none ire-absolute ire-left-0 ire-top-0 ire-select-none",
334
+ style: normalizeStyle({
335
+ transform: `translateX(${unref(t) || 0}px) translateY(${unref(r) || 0}px)`
336
+ })
337
+ }, [
338
+ createElementVNode("div", _hoisted_1$f, [
339
+ o.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
340
+ createElementVNode("div", null, "Floor: " + toDisplayString((c = o.hoveredData) == null ? void 0 : c.floor_number), 1),
341
+ (d = o.hoveredData) != null && d.conf ? (openBlock(), createElementBlock("div", _hoisted_3$7, toDisplayString(o.hoveredData.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_4$6, "Available: " + toDisplayString(((l = (k = o.hoveredData) == null ? void 0 : k.counts) == null ? void 0 : l.available) || 0), 1))
342
+ ])) : o.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
343
+ createElementVNode("div", _hoisted_6$2, [
344
+ createElementVNode("div", null, toDisplayString((_ = o.hoveredData) == null ? void 0 : _.title), 1),
345
+ createElementVNode("span", _hoisted_7$2, toDisplayString((w = o.hoveredData) == null ? void 0 : w.conf), 1)
346
+ ])
347
+ ])) : o.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_8$2, [
348
+ createElementVNode("div", _hoisted_9$2, toDisplayString((y = o.hoveredData) == null ? void 0 : y.flat_number), 1),
349
+ (u = o.hoveredData) != null && u.conf ? (openBlock(), createElementBlock("div", _hoisted_10$2, toDisplayString(o.hoveredData.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_11$1, [
350
+ createElementVNode("div", null, [
351
+ createElementVNode("div", _hoisted_12$1, [
352
+ createTextVNode(toDisplayString(Number((f = o.hoveredData) == null ? void 0 : f.price).toLocaleString()) + " ", 1),
353
+ s[0] || (s[0] = createElementVNode("sup", { class: "ire-right-[2px] !ire-text-sm ire-text-gray-200" }, " $ ", -1))
354
+ ])
355
+ ])
356
+ ])),
357
+ createElementVNode("div", _hoisted_13$1, [
358
+ createTextVNode(toDisplayString((v = (a = o.hoveredData) == null ? void 0 : a.type) == null ? void 0 : v.area_m2) + " M ", 1),
359
+ s[1] || (s[1] = createElementVNode("sup", { class: "ire-right-[2px] !ire-text-xs ire-text-gray-200" }, " 2 ", -1))
360
+ ])
361
+ ])) : createCommentVNode("", !0)
362
+ ])
363
+ ], 4)) : createCommentVNode("", !0)
364
+ ];
365
+ }),
366
+ _: 1
367
+ }));
368
+ }
369
+ }), _hoisted_1$e = { class: "tooltip-2 ire-flex ire-w-fit ire-origin-top ire-items-center ire-justify-center ire-rounded-2xl ire-border ire-bg-white ire-p-4 ire-transition-transform ire-ease-in-out" }, _hoisted_2$7 = {
370
+ key: 0,
371
+ class: "ire-flex ire-flex-col ire-items-center ire-gap-3"
372
+ }, _hoisted_3$6 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$5 = { class: "!ire-text-2xl" }, _hoisted_5$1 = {
373
+ key: 1,
374
+ class: "ire-flex ire-items-center ire-gap-3"
375
+ }, _hoisted_6$1 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_7$1 = { class: "!text-2xl" }, _hoisted_8$1 = {
376
+ key: 2,
377
+ class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
378
+ }, _hoisted_9$1 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_10$1 = { class: "ire-max-w-52 ire-text-center !ire-text-2xl ire-capitalize" }, _sfc_main$h = /* @__PURE__ */ defineComponent({
379
+ __name: "Tooltip_3",
380
+ props: {
381
+ hoveredData: {},
382
+ type: {}
383
+ },
384
+ setup(e) {
385
+ const t = inject("mouseX"), r = inject("mouseY");
386
+ return (o, s) => (openBlock(), createBlock(Transition, { name: "ire-fade-in" }, {
387
+ default: withCtx(() => {
388
+ var c, d, k;
389
+ return [
390
+ o.type && o.hoveredData && o.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
391
+ key: 0,
392
+ class: "ire-pointer-events-none ire-absolute ire-left-0 ire-top-0 ire-select-none",
393
+ style: normalizeStyle({
394
+ transform: `translateX(${unref(t) || 0}px) translateY(${unref(r) || 0}px)`
395
+ })
396
+ }, [
397
+ createElementVNode("div", _hoisted_1$e, [
398
+ o.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
399
+ createElementVNode("div", _hoisted_3$6, [
400
+ createElementVNode("div", _hoisted_4$5, toDisplayString((c = o.hoveredData) == null ? void 0 : c.floor_number), 1),
401
+ s[0] || (s[0] = createElementVNode("div", { class: "!ire-text-sm ire-uppercase" }, "Floor", -1))
402
+ ])
403
+ ])) : o.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
404
+ createElementVNode("div", _hoisted_6$1, [
405
+ createElementVNode("div", _hoisted_7$1, toDisplayString((d = o.hoveredData) == null ? void 0 : d.title), 1)
406
+ ])
407
+ ])) : o.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
408
+ createElementVNode("div", _hoisted_9$1, [
409
+ createElementVNode("div", _hoisted_10$1, toDisplayString((k = o.hoveredData) == null ? void 0 : k.flat_number), 1),
410
+ s[1] || (s[1] = createElementVNode("div", { class: "!ire-mt-2 !ire-text-xs ire-uppercase" }, "Apartment", -1))
411
+ ])
412
+ ])) : createCommentVNode("", !0)
413
+ ])
414
+ ], 4)) : createCommentVNode("", !0)
415
+ ];
416
+ }),
417
+ _: 1
418
+ }));
419
+ }
420
+ }), _hoisted_1$d = {
290
421
  key: 0,
291
- class: "ire-mb-3 ire-flex ire-h-[48px] ire-items-center ire-justify-between ire-px-4"
292
- }, _sfc_main$f = /* @__PURE__ */ defineComponent({
422
+ class: "py-2 ire-mb-3 ire-flex ire-h-[48px] ire-items-center ire-justify-between ire-px-4"
423
+ }, _sfc_main$g = /* @__PURE__ */ defineComponent({
293
424
  __name: "PreviewLayout",
294
425
  props: {
295
426
  hoverdData: {},
296
427
  type: {}
297
428
  },
298
- setup(o) {
299
- return (e, r) => (openBlock(), createElementBlock("div", _hoisted_1$e, [
300
- e.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
301
- renderSlot(e.$slots, "header")
429
+ setup(e) {
430
+ const t = ref(), r = inject("shortcodeData"), o = computed$1(() => {
431
+ var s;
432
+ return ((s = r.meta.find((c) => c.meta_key === "tooltip")) == null ? void 0 : s.meta_value) || "1";
433
+ });
434
+ return (s, c) => (openBlock(), createElementBlock("div", {
435
+ ref_key: "canvasRef",
436
+ ref: t,
437
+ class: "ire-relative ire-overflow-hidden [&_.tooltip-2]:active:!ire-scale-110"
438
+ }, [
439
+ s.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
440
+ renderSlot(s.$slots, "header")
302
441
  ])) : createCommentVNode("", !0),
303
- renderSlot(e.$slots, "default"),
304
- createVNode(_sfc_main$g, {
305
- "hovered-data": e.hoverdData,
306
- type: e.type || "",
442
+ renderSlot(s.$slots, "default"),
443
+ o.value === "2" ? (openBlock(), createBlock(_sfc_main$i, {
444
+ key: 1,
445
+ "hovered-data": s.hoverdData,
446
+ type: s.type || "",
447
+ class: "ire-hidden lg:ire-flex"
448
+ }, null, 8, ["hovered-data", "type"])) : o.value === "3" ? (openBlock(), createBlock(_sfc_main$h, {
449
+ key: 2,
450
+ "hovered-data": s.hoverdData,
451
+ type: s.type || "",
452
+ class: "ire-hidden lg:ire-flex"
453
+ }, null, 8, ["hovered-data", "type"])) : (openBlock(), createBlock(_sfc_main$j, {
454
+ key: 3,
455
+ "hovered-data": s.hoverdData,
456
+ type: s.type || "",
307
457
  class: "ire-hidden lg:ire-block"
308
- }, null, 8, ["hovered-data", "type"])
309
- ]));
458
+ }, null, 8, ["hovered-data", "type"]))
459
+ ], 512));
460
+ }
461
+ });
462
+ /*!
463
+ * pinia v3.0.1
464
+ * (c) 2025 Eduardo San Martin Morote
465
+ * @license MIT
466
+ */
467
+ let activePinia;
468
+ const setActivePinia = (e) => activePinia = e, piniaSymbol = (
469
+ /* istanbul ignore next */
470
+ Symbol()
471
+ );
472
+ function isPlainObject(e) {
473
+ return e && typeof e == "object" && Object.prototype.toString.call(e) === "[object Object]" && typeof e.toJSON != "function";
474
+ }
475
+ var MutationType;
476
+ (function(e) {
477
+ e.direct = "direct", e.patchObject = "patch object", e.patchFunction = "patch function";
478
+ })(MutationType || (MutationType = {}));
479
+ function createPinia() {
480
+ const e = effectScope(!0), t = e.run(() => ref({}));
481
+ let r = [], o = [];
482
+ const s = markRaw({
483
+ install(c) {
484
+ setActivePinia(s), s._a = c, c.provide(piniaSymbol, s), c.config.globalProperties.$pinia = s, o.forEach((d) => r.push(d)), o = [];
485
+ },
486
+ use(c) {
487
+ return this._a ? r.push(c) : o.push(c), this;
488
+ },
489
+ _p: r,
490
+ // it's actually undefined here
491
+ // @ts-expect-error
492
+ _a: null,
493
+ _e: e,
494
+ _s: /* @__PURE__ */ new Map(),
495
+ state: t
496
+ });
497
+ return s;
498
+ }
499
+ const noop = () => {
500
+ };
501
+ function addSubscription(e, t, r, o = noop) {
502
+ e.push(t);
503
+ const s = () => {
504
+ const c = e.indexOf(t);
505
+ c > -1 && (e.splice(c, 1), o());
506
+ };
507
+ return !r && getCurrentScope() && onScopeDispose(s), s;
508
+ }
509
+ function triggerSubscriptions(e, ...t) {
510
+ e.slice().forEach((r) => {
511
+ r(...t);
512
+ });
513
+ }
514
+ const fallbackRunWithContext = (e) => e(), ACTION_MARKER = Symbol(), ACTION_NAME = Symbol();
515
+ function mergeReactiveObjects(e, t) {
516
+ e instanceof Map && t instanceof Map ? t.forEach((r, o) => e.set(o, r)) : e instanceof Set && t instanceof Set && t.forEach(e.add, e);
517
+ for (const r in t) {
518
+ if (!t.hasOwnProperty(r))
519
+ continue;
520
+ const o = t[r], s = e[r];
521
+ isPlainObject(s) && isPlainObject(o) && e.hasOwnProperty(r) && !isRef(o) && !isReactive(o) ? e[r] = mergeReactiveObjects(s, o) : e[r] = o;
522
+ }
523
+ return e;
524
+ }
525
+ const skipHydrateSymbol = (
526
+ /* istanbul ignore next */
527
+ Symbol()
528
+ );
529
+ function shouldHydrate(e) {
530
+ return !isPlainObject(e) || !e.hasOwnProperty(skipHydrateSymbol);
531
+ }
532
+ const { assign } = Object;
533
+ function isComputed(e) {
534
+ return !!(isRef(e) && e.effect);
535
+ }
536
+ function createOptionsStore(e, t, r, o) {
537
+ const { state: s, actions: c, getters: d } = t, k = r.state.value[e];
538
+ let l;
539
+ function _() {
540
+ k || (r.state.value[e] = s ? s() : {});
541
+ const w = toRefs(r.state.value[e]);
542
+ return assign(w, c, Object.keys(d || {}).reduce((y, u) => (y[u] = markRaw(computed$1(() => {
543
+ setActivePinia(r);
544
+ const f = r._s.get(e);
545
+ return d[u].call(f, f);
546
+ })), y), {}));
547
+ }
548
+ return l = createSetupStore(e, _, t, r, o, !0), l;
549
+ }
550
+ function createSetupStore(e, t, r = {}, o, s, c) {
551
+ let d;
552
+ const k = assign({ actions: {} }, r), l = { deep: !0 };
553
+ let _, w, y = [], u = [], f;
554
+ const a = o.state.value[e];
555
+ !c && !a && (o.state.value[e] = {}), ref({});
556
+ let v;
557
+ function n(g) {
558
+ let b;
559
+ _ = w = !1, typeof g == "function" ? (g(o.state.value[e]), b = {
560
+ type: MutationType.patchFunction,
561
+ storeId: e,
562
+ events: f
563
+ }) : (mergeReactiveObjects(o.state.value[e], g), b = {
564
+ type: MutationType.patchObject,
565
+ payload: g,
566
+ storeId: e,
567
+ events: f
568
+ });
569
+ const x = v = Symbol();
570
+ nextTick().then(() => {
571
+ v === x && (_ = !0);
572
+ }), w = !0, triggerSubscriptions(y, b, o.state.value[e]);
573
+ }
574
+ const i = c ? function() {
575
+ const { state: b } = r, x = b ? b() : {};
576
+ this.$patch((V) => {
577
+ assign(V, x);
578
+ });
579
+ } : (
580
+ /* istanbul ignore next */
581
+ noop
582
+ );
583
+ function p() {
584
+ d.stop(), y = [], u = [], o._s.delete(e);
310
585
  }
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({
586
+ const m = (g, b = "") => {
587
+ if (ACTION_MARKER in g)
588
+ return g[ACTION_NAME] = b, g;
589
+ const x = function() {
590
+ setActivePinia(o);
591
+ const V = Array.from(arguments), C = [], D = [];
592
+ function R(B) {
593
+ C.push(B);
594
+ }
595
+ function L(B) {
596
+ D.push(B);
597
+ }
598
+ triggerSubscriptions(u, {
599
+ args: V,
600
+ name: x[ACTION_NAME],
601
+ store: h,
602
+ after: R,
603
+ onError: L
604
+ });
605
+ let N;
606
+ try {
607
+ N = g.apply(this && this.$id === e ? this : h, V);
608
+ } catch (B) {
609
+ throw triggerSubscriptions(D, B), B;
610
+ }
611
+ return N instanceof Promise ? N.then((B) => (triggerSubscriptions(C, B), B)).catch((B) => (triggerSubscriptions(D, B), Promise.reject(B))) : (triggerSubscriptions(C, N), N);
612
+ };
613
+ return x[ACTION_MARKER] = !0, x[ACTION_NAME] = b, x;
614
+ }, $ = {
615
+ _p: o,
616
+ // _s: scope,
617
+ $id: e,
618
+ $onAction: addSubscription.bind(null, u),
619
+ $patch: n,
620
+ $reset: i,
621
+ $subscribe(g, b = {}) {
622
+ const x = addSubscription(y, g, b.detached, () => V()), V = d.run(() => watch(() => o.state.value[e], (C) => {
623
+ (b.flush === "sync" ? w : _) && g({
624
+ storeId: e,
625
+ type: MutationType.direct,
626
+ events: f
627
+ }, C);
628
+ }, assign({}, l, b)));
629
+ return x;
630
+ },
631
+ $dispose: p
632
+ }, h = reactive($);
633
+ o._s.set(e, h);
634
+ const S = (o._a && o._a.runWithContext || fallbackRunWithContext)(() => o._e.run(() => (d = effectScope()).run(() => t({ action: m }))));
635
+ for (const g in S) {
636
+ const b = S[g];
637
+ if (isRef(b) && !isComputed(b) || isReactive(b))
638
+ c || (a && shouldHydrate(b) && (isRef(b) ? b.value = a[g] : mergeReactiveObjects(b, a[g])), o.state.value[e][g] = b);
639
+ else if (typeof b == "function") {
640
+ const x = m(b, g);
641
+ S[g] = x, k.actions[g] = b;
642
+ }
643
+ }
644
+ return assign(h, S), assign(toRaw(h), S), Object.defineProperty(h, "$state", {
645
+ get: () => o.state.value[e],
646
+ set: (g) => {
647
+ n((b) => {
648
+ assign(b, g);
649
+ });
650
+ }
651
+ }), o._p.forEach((g) => {
652
+ assign(h, d.run(() => g({
653
+ store: h,
654
+ app: o._a,
655
+ pinia: o,
656
+ options: k
657
+ })));
658
+ }), a && c && r.hydrate && r.hydrate(h.$state, a), _ = !0, w = !0, h;
659
+ }
660
+ /*! #__NO_SIDE_EFFECTS__ */
661
+ // @__NO_SIDE_EFFECTS__
662
+ function defineStore(e, t, r) {
663
+ let o;
664
+ const s = typeof t == "function";
665
+ o = s ? r : t;
666
+ function c(d, k) {
667
+ const l = hasInjectionContext();
668
+ return d = // in test mode, ignore the argument provided as we can always retrieve a
669
+ // pinia instance with getActivePinia()
670
+ d || (l ? inject(piniaSymbol, null) : null), d && setActivePinia(d), d = activePinia, d._s.has(e) || (s ? createSetupStore(e, t, o, d) : createOptionsStore(e, o, d)), d._s.get(e);
671
+ }
672
+ return c.$id = e, c;
673
+ }
674
+ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
675
+ const e = ref(), t = ref("1");
676
+ return {
677
+ hoverdSvg: e,
678
+ tooltip: t
679
+ };
680
+ }), _hoisted_1$c = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_2$6 = ["src"], _hoisted_3$5 = ["innerHTML"], _sfc_main$f = /* @__PURE__ */ defineComponent({
312
681
  __name: "ProjectPreview",
313
682
  props: {
314
683
  project: {},
@@ -319,95 +688,96 @@ const _hoisted_1$f = {
319
688
  projectMeta: {}
320
689
  },
321
690
  emits: ["changeComponent"],
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;
691
+ setup(e, { emit: t }) {
692
+ const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(null), l = computed(() => {
693
+ if (o.project)
694
+ return o.project.svg;
326
695
  });
327
696
  computed(() => {
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");
697
+ var u, f;
698
+ const y = (f = (u = o.projectMeta) == null ? void 0 : u.find(
699
+ (a) => (a == null ? void 0 : a.meta_key) === "project_img_contain"
700
+ )) == null ? void 0 : f.meta_value;
701
+ return JSON.parse((y == null ? void 0 : y.toString()) || "false");
333
702
  });
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));
703
+ const _ = (y) => {
704
+ const u = y.target;
705
+ u && (c.value = u);
706
+ }, w = (y) => {
707
+ var f, a, v;
708
+ const u = y.target;
709
+ (u == null ? void 0 : u.nodeName) === "path" && (((f = d.value) == null ? void 0 : f.conf) === "sold" || ((a = d.value) == null ? void 0 : a.conf) === "reserved" || r("changeComponent", ((v = k.value) == null ? void 0 : v.type) || "", d == null ? void 0 : d.value));
341
710
  };
342
711
  return watch(
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) {
712
+ () => c.value,
713
+ (y) => {
714
+ var f, a, v, n, i, p, m;
715
+ if (!y) return;
716
+ s.hoverdSvg = y;
717
+ const u = y.parentElement;
718
+ if (u && (u == null ? void 0 : u.nodeName) === "g") {
719
+ const $ = u == null ? void 0 : u.getAttribute("id");
720
+ if (!$ || (k.value = ((f = o.project) == null ? void 0 : f.polygon_data.find((E) => (E == null ? void 0 : E.key) === $)) || null, !k.value)) return;
721
+ const h = (a = k.value) == null ? void 0 : a.id;
722
+ switch ((v = k.value) == null ? void 0 : v.type) {
353
723
  case "floor":
354
- const m = (_ = i.floors) == null ? void 0 : _.find(
355
- (x) => x.id === b
724
+ const E = (n = o.floors) == null ? void 0 : n.find(
725
+ (x) => x.id === h
356
726
  );
357
- p.value = m;
727
+ d.value = E;
358
728
  break;
359
729
  case "block":
360
- const E = (t = i.blocks) == null ? void 0 : t.find(
361
- (x) => (x == null ? void 0 : x.id) === b
730
+ const S = (i = o.blocks) == null ? void 0 : i.find(
731
+ (x) => (x == null ? void 0 : x.id) === h
362
732
  );
363
- p.value = E;
733
+ d.value = S;
364
734
  break;
365
735
  case "flat":
366
- const w = (l = i.flats) == null ? void 0 : l.find(
367
- (x) => (x == null ? void 0 : x.id) === b
736
+ const g = (p = o.flats) == null ? void 0 : p.find(
737
+ (x) => (x == null ? void 0 : x.id) === h
368
738
  );
369
- p.value = w;
739
+ d.value = g;
370
740
  break;
371
741
  case "tooltip":
372
- const $ = (c = i.actions) == null ? void 0 : c.find(
373
- (x) => (x == null ? void 0 : x.id) === b
742
+ const b = (m = o.actions) == null ? void 0 : m.find(
743
+ (x) => (x == null ? void 0 : x.id) === h
374
744
  );
375
- p.value = $;
745
+ d.value = b;
376
746
  break;
377
747
  default:
378
- p.value = null;
748
+ d.value = null;
379
749
  break;
380
750
  }
381
751
  } else
382
- f.value = null, p.value = null;
752
+ k.value = null, d.value = null;
383
753
  }
384
- ), (k, n) => {
385
- var u;
386
- return openBlock(), createBlock(_sfc_main$f, {
387
- hoverdData: p.value,
388
- type: (u = f.value) == null ? void 0 : u.type
754
+ ), (y, u) => {
755
+ var f;
756
+ return openBlock(), createBlock(_sfc_main$g, {
757
+ hoverdData: d.value,
758
+ type: (f = k.value) == null ? void 0 : f.type
389
759
  }, {
390
760
  default: withCtx(() => {
391
- var g, s, _, t, l, c;
761
+ var a, v, n, i, p, m;
392
762
  return [
393
- createElementVNode("div", _hoisted_1$d, [
763
+ createElementVNode("div", _hoisted_1$c, [
394
764
  createElementVNode("img", {
395
- src: (_ = (s = (g = k.project) == null ? void 0 : g.project_image) == null ? void 0 : s[0]) == null ? void 0 : _.url,
765
+ src: (n = (v = (a = y.project) == null ? void 0 : a.project_image) == null ? void 0 : v[0]) == null ? void 0 : n.url,
396
766
  alt: "",
397
767
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
398
768
  }, null, 8, _hoisted_2$6),
399
769
  (openBlock(), createElementBlock("div", {
400
- innerHTML: unref(y),
401
- key: unref(y),
770
+ innerHTML: unref(l),
771
+ key: unref(l),
402
772
  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
773
  {
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)
774
+ "hover:[&_path]:ire-fill-[var(--reserved-color)]": d.value && ((i = d.value) == null ? void 0 : i.conf) === "reserved",
775
+ "hover:[&_path]:ire-fill-[var(--sold-color)]": d.value && ((p = d.value) == null ? void 0 : p.conf) === "sold",
776
+ "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((m = d.value) != null && m.conf)
407
777
  }
408
778
  ]]),
409
- onMouseover: d,
410
- onClick: h
779
+ onMouseover: _,
780
+ onClick: w
411
781
  }, null, 42, _hoisted_3$5))
412
782
  ])
413
783
  ];
@@ -416,10 +786,10 @@ const _hoisted_1$f = {
416
786
  }, 8, ["hoverdData", "type"]);
417
787
  };
418
788
  }
419
- }), _hoisted_1$c = { class: "ire-w-full ire-min-w-[150px] ire-max-w-[200px] ire-border ire-border-slate-200 lg:ire-min-w-[250px]" }, _hoisted_2$5 = {
789
+ }), _hoisted_1$b = { class: "ire-w-full ire-min-w-[150px] ire-max-w-[200px] ire-border ire-border-slate-200 lg:ire-min-w-[250px]" }, _hoisted_2$5 = {
420
790
  key: 0,
421
791
  class: "label"
422
- }, _hoisted_3$4 = { class: "ire-relative" }, _hoisted_4$4 = ["value", "disabled"], _sfc_main$d = /* @__PURE__ */ defineComponent({
792
+ }, _hoisted_3$4 = { class: "ire-relative" }, _hoisted_4$4 = ["value", "disabled"], _sfc_main$e = /* @__PURE__ */ defineComponent({
423
793
  __name: "PreviewSelect",
424
794
  props: /* @__PURE__ */ mergeModels({
425
795
  data: {},
@@ -432,26 +802,26 @@ const _hoisted_1$f = {
432
802
  modelModifiers: {}
433
803
  }),
434
804
  emits: ["update:modelValue"],
435
- setup(o) {
436
- const e = useModel(o, "modelValue");
437
- return (r, i) => (openBlock(), createElementBlock("div", _hoisted_1$c, [
805
+ setup(e) {
806
+ const t = useModel(e, "modelValue");
807
+ return (r, o) => (openBlock(), createElementBlock("div", _hoisted_1$b, [
438
808
  r.label ? (openBlock(), createElementBlock("p", _hoisted_2$5, toDisplayString(r.label), 1)) : createCommentVNode("", !0),
439
809
  createElementVNode("div", _hoisted_3$4, [
440
810
  withDirectives(createElementVNode("select", {
441
- "onUpdate:modelValue": i[0] || (i[0] = (a) => e.value = a),
811
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s),
442
812
  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
813
  }, [
444
- (openBlock(!0), createElementBlock(Fragment, null, renderList(r.data, (a) => {
445
- var p, f;
814
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(r.data, (s) => {
815
+ var c, d;
446
816
  return openBlock(), createElementBlock("option", {
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);
817
+ value: s.value,
818
+ disabled: ((c = s == null ? void 0 : s.title) == null ? void 0 : c.includes("reserved")) || ((d = s == null ? void 0 : s.title) == null ? void 0 : d.includes("sold"))
819
+ }, toDisplayString(s.title), 9, _hoisted_4$4);
450
820
  }), 256))
451
821
  ], 512), [
452
- [vModelSelect, e.value]
822
+ [vModelSelect, t.value]
453
823
  ]),
454
- i[1] || (i[1] = createElementVNode("svg", {
824
+ o[1] || (o[1] = createElementVNode("svg", {
455
825
  xmlns: "http://www.w3.org/2000/svg",
456
826
  fill: "none",
457
827
  viewBox: "0 0 24 24",
@@ -468,35 +838,30 @@ const _hoisted_1$f = {
468
838
  ])
469
839
  ]));
470
840
  }
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
- }, _sfc_main$c = {}, _hoisted_1$b = {
841
+ }), _sfc_main$d = {}, _hoisted_1$a = {
477
842
  xmlns: "http://www.w3.org/2000/svg",
478
843
  width: "32",
479
844
  height: "32",
480
845
  viewBox: "0 0 32 32",
481
846
  fill: "none"
482
847
  };
483
- function _sfc_render$3(o, e) {
484
- return openBlock(), createElementBlock("svg", _hoisted_1$b, e[0] || (e[0] = [
848
+ function _sfc_render$3(e, t) {
849
+ return openBlock(), createElementBlock("svg", _hoisted_1$a, t[0] || (t[0] = [
485
850
  createElementVNode("path", {
486
851
  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",
487
852
  fill: "#44546F"
488
853
  }, null, -1)
489
854
  ]));
490
855
  }
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({
856
+ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$3]]), _hoisted_1$9 = { class: "ire-group ire-flex ire-w-fit ire-cursor-pointer ire-items-center ire-gap-1 ire-rounded-lg ire-border ire-bg-gray-50 ire-px-4 ire-py-2 ire-shadow-sm ire-transition-all hover:ire-bg-black lg:ire-px-5 lg:ire-py-2" }, _sfc_main$c = /* @__PURE__ */ defineComponent({
492
857
  __name: "BackButton",
493
- setup(o) {
494
- return (e, r) => (openBlock(), createElementBlock("div", _hoisted_1$a, [
858
+ setup(e) {
859
+ return (t, r) => (openBlock(), createElementBlock("div", _hoisted_1$9, [
495
860
  createVNode(ArrowRight, { class: "ire-w-6 ire-rotate-180 group-hover:[&_path]:ire-fill-white" }),
496
861
  r[0] || (r[0] = createElementVNode("p", { class: "!ire-text-sm group-hover:!ire-text-white lg:!ire-text-balance" }, " Back ", -1))
497
862
  ]));
498
863
  }
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({
864
+ }), _hoisted_1$8 = { class: "ire-w-fit ire-bg-white" }, _hoisted_2$4 = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_3$3 = ["src"], _hoisted_4$3 = ["innerHTML"], _sfc_main$b = /* @__PURE__ */ defineComponent({
500
865
  __name: "FloorPreview",
501
866
  props: {
502
867
  flats: {},
@@ -506,147 +871,148 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
506
871
  actions: {}
507
872
  },
508
873
  emits: ["changeComponent"],
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;
874
+ setup(e, { emit: t }) {
875
+ const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(), l = ref(null), _ = ref(), w = ref(), y = computed$1(() => {
876
+ var i;
877
+ if ((i = o.floor) != null && i.svg)
878
+ return o.floor.svg;
879
+ }), u = computed$1(() => o.floors.filter(
880
+ (i) => {
881
+ var p, m;
517
882
  return (
518
883
  // floorItem.conf !== "reserved" &&
519
884
  // floorItem.conf !== "sold" &&
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)
885
+ (p = o.floor) != null && p.block_id ? (i == null ? void 0 : i.block_id) === ((m = o.floor) == null ? void 0 : m.block_id) : !(i != null && i.block_id)
521
886
  );
522
887
  }
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());
888
+ ).map((i) => {
889
+ var m, $;
890
+ const p = (m = o.blocks) == null ? void 0 : m.find(
891
+ (h) => {
892
+ var E;
893
+ return (h == null ? void 0 : h.id) === ((E = i == null ? void 0 : i.block_id) == null ? void 0 : E.toString());
529
894
  }
530
895
  );
531
896
  return {
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
897
+ title: (($ = i == null ? void 0 : i.floor_number) == null ? void 0 : $.toString()) + " Floor" + (p != null && p.id ? ` - ${p == null ? void 0 : p.title}` : "") + (i != null && i.conf ? " " + i.conf : ""),
898
+ value: i == null ? void 0 : i.id
534
899
  };
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
900
+ }).sort((i, p) => +(i == null ? void 0 : i.title) - +(p == null ? void 0 : p.title)) || []), f = (i) => {
901
+ const p = i.target;
902
+ p && (d.value = p);
903
+ }, a = (i) => {
904
+ var m, $, h;
905
+ const p = i.target;
906
+ (p == null ? void 0 : p.nodeName) === "path" && (l.value && "conf" in l.value && (((m = l.value) == null ? void 0 : m.conf) === "sold" || (($ = l.value) == null ? void 0 : $.conf) === "reserved") || r("changeComponent", ((h = k.value) == null ? void 0 : h.type) || "", l.value));
907
+ }, v = () => {
908
+ var i;
909
+ c.value && ((i = c.value) == null ? void 0 : i.querySelectorAll("g")).forEach((m) => {
910
+ var E, S, g, b, x, V;
911
+ const $ = m == null ? void 0 : m.getAttribute("id"), h = (S = (E = o.floor) == null ? void 0 : E.polygon_data) == null ? void 0 : S.find(
912
+ (C) => (C == null ? void 0 : C.key) === $
548
913
  );
549
- if (i.flats)
550
- if ((w = i.floor) != null && w.conf)
551
- c.setAttribute("conf", (($ = i.floor) == null ? void 0 : $.conf) || "");
914
+ if (o.flats)
915
+ if ((g = o.floor) != null && g.conf)
916
+ m.setAttribute("conf", ((b = o.floor) == null ? void 0 : b.conf) || "");
552
917
  else {
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)
918
+ const C = (x = o.flats) == null ? void 0 : x.find(
919
+ (D) => (D == null ? void 0 : D.id) === (h == null ? void 0 : h.id)
555
920
  );
556
- c == null || c.setAttribute("conf", ((C = V == null ? void 0 : V.conf) == null ? void 0 : C.toString()) || "");
921
+ m == null || m.setAttribute("conf", ((V = C == null ? void 0 : C.conf) == null ? void 0 : V.toString()) || "");
557
922
  }
558
923
  });
559
- }, _ = () => {
560
- var t;
561
- (t = i.floor) != null && t.block_id ? r("changeComponent", "block", h.value) : r("changeComponent", "project", null);
924
+ }, n = () => {
925
+ var i;
926
+ (i = o.floor) != null && i.block_id ? r("changeComponent", "block", w.value) : r("changeComponent", "project", null);
562
927
  };
563
928
  return watch(
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);
929
+ () => d.value,
930
+ (i) => {
931
+ var m, $, h, E, S, g;
932
+ if (!i) return;
933
+ s.hoverdSvg = i;
934
+ const p = i == null ? void 0 : i.parentElement;
935
+ if (p && (p == null ? void 0 : p.nodeName) === "g") {
936
+ const b = p.getAttribute("id");
937
+ if (!b || (k.value = (($ = (m = o.floor) == null ? void 0 : m.polygon_data) == null ? void 0 : $.find((x) => (x == null ? void 0 : x.key) === b)) || null, !k.value)) return;
938
+ if (((h = k.value) == null ? void 0 : h.type) === "flat") {
939
+ const x = (E = o.flats) == null ? void 0 : E.find(
940
+ (V) => {
941
+ var C;
942
+ return (V == null ? void 0 : V.id) === ((C = k.value) == null ? void 0 : C.id);
577
943
  }
578
944
  );
579
- y.value = x ?? null;
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);
945
+ l.value = x ?? null;
946
+ } else if (((S = k.value) == null ? void 0 : S.type) === "tooltip") {
947
+ const x = (g = o.actions) == null ? void 0 : g.find(
948
+ (V) => {
949
+ var C;
950
+ return (V == null ? void 0 : V.id) === ((C = k.value) == null ? void 0 : C.id);
585
951
  }
586
952
  );
587
- y.value = x ?? null;
953
+ l.value = x ?? null;
588
954
  } else
589
- y.value = null;
955
+ l.value = null;
590
956
  } else
591
- f.value = null;
957
+ k.value = null;
592
958
  }
593
959
  ), watch(
594
- () => d.value,
960
+ () => _.value,
595
961
  () => {
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)
962
+ var p;
963
+ const i = (p = o.floors) == null ? void 0 : p.find(
964
+ (m) => (m == null ? void 0 : m.id) === (_ == null ? void 0 : _.value)
599
965
  );
600
- t != null && t.conf || (t && r("changeComponent", "floor", t), setTimeout(() => {
601
- s();
966
+ i != null && i.conf || (i && r("changeComponent", "floor", i), setTimeout(() => {
967
+ v();
602
968
  }, 0));
603
969
  }
604
970
  ), onMounted(() => {
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());
971
+ var i, p, m;
972
+ w.value = (i = o.blocks) == null ? void 0 : i.find(
973
+ ($) => {
974
+ var h, E;
975
+ return ($ == null ? void 0 : $.id) === ((E = (h = o.floor) == null ? void 0 : h.block_id) == null ? void 0 : E.toString());
610
976
  }
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);
977
+ ), _.value = (m = (p = u.value) == null ? void 0 : p.find(
978
+ ($) => {
979
+ var h;
980
+ return ($ == null ? void 0 : $.value) == ((h = o.floor) == null ? void 0 : h.id);
615
981
  }
616
- )) == null ? void 0 : c.value, s();
617
- }), (t, l) => {
618
- var c;
619
- return openBlock(), createBlock(_sfc_main$f, {
620
- hoverdData: y.value,
621
- type: (c = f.value) == null ? void 0 : c.type
982
+ )) == null ? void 0 : m.value, v();
983
+ }), (i, p) => {
984
+ var m;
985
+ return openBlock(), createBlock(_sfc_main$g, {
986
+ hoverdData: l.value,
987
+ type: (m = k.value) == null ? void 0 : m.type
622
988
  }, {
623
989
  header: withCtx(() => [
624
- createVNode(_sfc_main$b, { onClick: _ }),
625
- createElementVNode("div", _hoisted_1$9, [
626
- createVNode(_sfc_main$d, {
627
- modelValue: d.value,
628
- "onUpdate:modelValue": l[0] || (l[0] = (v) => d.value = v),
629
- data: n.value
990
+ createVNode(_sfc_main$c, { onClick: n }),
991
+ createElementVNode("div", _hoisted_1$8, [
992
+ createVNode(_sfc_main$e, {
993
+ modelValue: _.value,
994
+ "onUpdate:modelValue": p[0] || (p[0] = ($) => _.value = $),
995
+ data: u.value
630
996
  }, null, 8, ["modelValue", "data"])
631
997
  ])
632
998
  ]),
633
999
  default: withCtx(() => {
634
- var v, b, m;
1000
+ var $, h, E;
635
1001
  return [
636
1002
  createElementVNode("div", _hoisted_2$4, [
637
1003
  createElementVNode("img", {
638
- src: ((m = (b = (v = t.floor) == null ? void 0 : v.floor_image) == null ? void 0 : b[0]) == null ? void 0 : m.url) || "",
1004
+ src: ((E = (h = ($ = i.floor) == null ? void 0 : $.floor_image) == null ? void 0 : h[0]) == null ? void 0 : E.url) || "",
639
1005
  alt: "",
640
1006
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
641
1007
  }, null, 8, _hoisted_3$3),
642
1008
  (openBlock(), createElementBlock("div", {
643
1009
  ref_key: "svgRef",
644
- ref: a,
645
- innerHTML: k.value,
646
- key: k.value,
1010
+ ref: c,
1011
+ innerHTML: y.value,
1012
+ key: y.value,
647
1013
  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: u,
649
- onClick: g
1014
+ onMouseover: f,
1015
+ onClick: a
650
1016
  }, null, 40, _hoisted_4$3))
651
1017
  ])
652
1018
  ];
@@ -655,27 +1021,27 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
655
1021
  }, 8, ["hoverdData", "type"]);
656
1022
  };
657
1023
  }
658
- }), _sfc_main$9 = {}, _hoisted_1$8 = {
1024
+ }), _sfc_main$a = {}, _hoisted_1$7 = {
659
1025
  width: "24",
660
1026
  height: "24",
661
1027
  viewBox: "0 0 24 24",
662
1028
  fill: "none",
663
1029
  xmlns: "http://www.w3.org/2000/svg"
664
1030
  };
665
- function _sfc_render$2(o, e) {
666
- return openBlock(), createElementBlock("svg", _hoisted_1$8, e[0] || (e[0] = [
1031
+ function _sfc_render$2(e, t) {
1032
+ return openBlock(), createElementBlock("svg", _hoisted_1$7, t[0] || (t[0] = [
667
1033
  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
1034
  ]));
669
1035
  }
670
- const FlatIcon = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$2]]), _sfc_main$8 = {}, _hoisted_1$7 = {
1036
+ const FlatIcon = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$2]]), _sfc_main$9 = {}, _hoisted_1$6 = {
671
1037
  width: "24",
672
1038
  height: "24",
673
1039
  viewBox: "0 0 24 24",
674
1040
  fill: "none",
675
1041
  xmlns: "http://www.w3.org/2000/svg"
676
1042
  };
677
- function _sfc_render$1(o, e) {
678
- return openBlock(), createElementBlock("svg", _hoisted_1$7, e[0] || (e[0] = [
1043
+ function _sfc_render$1(e, t) {
1044
+ return openBlock(), createElementBlock("svg", _hoisted_1$6, t[0] || (t[0] = [
679
1045
  createElementVNode("path", {
680
1046
  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",
681
1047
  stroke: "#222222",
@@ -696,78 +1062,81 @@ function _sfc_render$1(o, e) {
696
1062
  }, null, -1)
697
1063
  ]));
698
1064
  }
699
- const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]]), _hoisted_1$6 = { class: "ire-flex ire-flex-col ire-items-start ire-justify-center ire-gap-5 lg:ire-flex-row lg:ire-gap-20" }, _hoisted_2$3 = { class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-justify-center ire-px-4 lg:ire-w-auto lg:ire-px-0" }, _hoisted_3$2 = ["src"], _hoisted_4$2 = ["src"], _hoisted_5 = { class: "ire-mt-5 ire-flex ire-flex-col ire-items-center ire-gap-3 lg:ire-flex-row" }, _hoisted_6 = { class: "ire-flex ire-w-fit ire-items-center ire-gap-1 ire-border-gray-400 ire-p-1" }, _hoisted_7 = {
1065
+ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]]), _hoisted_1$5 = { class: "ire-flex ire-flex-col ire-items-start ire-justify-center ire-gap-5 lg:ire-flex-row lg:ire-gap-20" }, _hoisted_2$3 = { class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-justify-center ire-px-4 lg:ire-w-auto lg:ire-px-0 [&_img]:ire-rounded-none" }, _hoisted_3$2 = ["src"], _hoisted_4$2 = ["src"], _hoisted_5 = { class: "ire-mt-5 ire-flex ire-flex-col ire-items-center ire-gap-3 lg:ire-flex-row" }, _hoisted_6 = { class: "ire-flex ire-w-fit ire-items-center ire-gap-1 ire-border-gray-400 ire-p-1" }, _hoisted_7 = {
700
1066
  key: 0,
701
1067
  class: "ire-ml-4 ire-flex ire-items-center ire-gap-1"
702
- }, _hoisted_8 = ["onClick"], _hoisted_9 = { class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-2 lg:ire-w-auto" }, _hoisted_10 = { class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b ire-border-b-gray-200 ire-py-4" }, _hoisted_11 = { class: "!ire-text-2xl ire-font-semibold ire-capitalize" }, _hoisted_12 = { class: "ire-text-center" }, _hoisted_13 = { class: "!ire-text-lg ire-font-semibold" }, _hoisted_14 = { class: "ire-mt-1 ire-text-gray-600" }, _hoisted_15 = { class: "ire-flex ire-items-center ire-gap-3" }, _hoisted_16 = {
1068
+ }, _hoisted_8 = ["onClick"], _hoisted_9 = { class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3 lg:ire-w-auto" }, _hoisted_10 = { class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b ire-border-solid ire-border-b-gray-200 ire-py-2" }, _hoisted_11 = { class: "!ire-text-2xl ire-font-semibold ire-capitalize" }, _hoisted_12 = {
703
1069
  key: 0,
704
- class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b ire-border-b-gray-200 ire-py-4"
1070
+ class: "ire-text-center"
1071
+ }, _hoisted_13 = { class: "!ire-text-lg ire-font-semibold" }, _hoisted_14 = { class: "ire-mt-1 ire-text-gray-600" }, _hoisted_15 = { class: "ire-flex ire-items-center ire-gap-3" }, _hoisted_16 = {
1072
+ key: 0,
1073
+ class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b ire-border-solid ire-border-b-gray-200 ire-py-2"
705
1074
  }, _hoisted_17 = { class: "!ire-text-2xl" }, _hoisted_18 = {
706
1075
  key: 1,
707
- class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b ire-border-b-gray-200 ire-py-4"
1076
+ class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b ire-border-solid ire-border-b-gray-200 ire-py-2"
708
1077
  }, _hoisted_19 = { class: "!ire-text-2xl" }, _hoisted_20 = {
709
- key: 0,
710
- class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b ire-border-b-gray-200 ire-py-4"
711
- }, _hoisted_21 = { class: "!ire-text-2xl" }, _hoisted_22 = {
712
1078
  key: 1,
713
- class: "border-b ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b-gray-200 ire-py-4"
1079
+ class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b ire-border-solid ire-border-b-gray-200 ire-py-2"
1080
+ }, _hoisted_21 = { class: "!ire-text-2xl" }, _hoisted_22 = {
1081
+ key: 2,
1082
+ class: "border-b ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b-gray-200 ire-py-2"
714
1083
  }, _hoisted_23 = {
715
1084
  key: 0,
716
1085
  class: "!ire-text-2xl"
717
- }, _hoisted_24 = { key: 1 }, _hoisted_25 = { class: "!ire-text-xs ire-line-through" }, _hoisted_26 = { class: "!ire-text-2xl" }, _sfc_main$7 = /* @__PURE__ */ defineComponent({
1086
+ }, _hoisted_24 = { key: 1 }, _hoisted_25 = { class: "!ire-text-xs ire-line-through" }, _hoisted_26 = { class: "!ire-text-2xl" }, _sfc_main$8 = /* @__PURE__ */ defineComponent({
718
1087
  __name: "FlatPreview",
719
1088
  props: {
720
1089
  flat: {},
721
1090
  floors: {}
722
1091
  },
723
1092
  emits: ["changeComponent"],
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
- }), y = () => {
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));
1093
+ setup(e, { emit: t }) {
1094
+ const r = t, o = e, s = ref(!0), c = ref(0), d = computed$1(() => {
1095
+ var _, w, y, u, f, a;
1096
+ const l = s.value ? (y = (w = (_ = o.flat) == null ? void 0 : _.type) == null ? void 0 : w.image_2d) == null ? void 0 : y.length : (a = (f = (u = o.flat) == null ? void 0 : u.type) == null ? void 0 : f.image_3d) == null ? void 0 : a.length;
1097
+ return ["I", "II", "III"].slice(0, l);
1098
+ }), k = () => {
1099
+ var _;
1100
+ const l = (_ = o.floors) == null ? void 0 : _.find(
1101
+ (w) => {
1102
+ var y, u, f, a, v, n;
1103
+ return ((y = w.floor_number) == null ? void 0 : y.toString()) === ((f = (u = o.flat) == null ? void 0 : u.floor_number) == null ? void 0 : f.toString()) && ((a = o.flat) != null && a.block_id ? ((v = w == null ? void 0 : w.block_id) == null ? void 0 : v.toString()) === ((n = o.flat) == null ? void 0 : n.block_id) : !(w != null && w.block_id));
735
1104
  }
736
1105
  );
737
- d ? r("changeComponent", "floor", d) : r("changeComponent", "project", null);
1106
+ l ? r("changeComponent", "floor", l) : r("changeComponent", "project", null);
738
1107
  };
739
1108
  return watch(
740
- () => a.value,
1109
+ () => s.value,
741
1110
  () => {
742
- p.value = 0;
1111
+ c.value = 0;
743
1112
  }
744
1113
  ), onMounted(() => {
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
- createVNode(_sfc_main$f, { "hoverd-data": null }, {
1114
+ var l, _;
1115
+ (_ = (l = o.flat) == null ? void 0 : l.type) != null && _.image_2d || (s.value = !1);
1116
+ }), (l, _) => (openBlock(), createElementBlock("div", null, [
1117
+ createVNode(_sfc_main$g, { "hoverd-data": null }, {
749
1118
  header: withCtx(() => [
750
- createVNode(_sfc_main$b, { onClick: y })
1119
+ createVNode(_sfc_main$c, { onClick: k })
751
1120
  ]),
752
1121
  default: withCtx(() => {
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;
1122
+ var w, y, u, f, a, v, n, i, p, m, $, h, E, S, g, b, x, V, C, D, R, L, N, B, P, O, A, I, F, H, W;
754
1123
  return [
755
- createElementVNode("div", _hoisted_1$6, [
1124
+ createElementVNode("div", _hoisted_1$5, [
756
1125
  createElementVNode("div", _hoisted_2$3, [
757
1126
  createVNode(Transition, {
758
1127
  name: "ire-fade-in-out",
759
1128
  mode: "out-in"
760
1129
  }, {
761
1130
  default: withCtx(() => {
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;
1131
+ var j, M, T, z, X, Y, K, U, q, Z, J, Q, G, ee, te, oe, re, ie, se, le, ne, ae, ce, de;
763
1132
  return [
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,
1133
+ s.value && ((z = (T = (M = (j = l.flat) == null ? void 0 : j.type) == null ? void 0 : M.image_2d) == null ? void 0 : T[c.value]) != null && z.url) ? (openBlock(), createElementBlock("img", {
1134
+ key: (U = (K = (Y = (X = l.flat) == null ? void 0 : X.type) == null ? void 0 : Y.image_2d) == null ? void 0 : K[c.value]) == null ? void 0 : U.url,
1135
+ src: (Q = (J = (Z = (q = l.flat) == null ? void 0 : q.type) == null ? void 0 : Z.image_2d) == null ? void 0 : J[c.value]) == null ? void 0 : Q.url,
767
1136
  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 = 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,
1137
+ }, null, 8, _hoisted_3$2)) : (oe = (te = (ee = (G = l.flat) == null ? void 0 : G.type) == null ? void 0 : ee.image_3d) == null ? void 0 : te[c.value]) != null && oe.url ? (openBlock(), createElementBlock("img", {
1138
+ src: (le = (se = (ie = (re = l.flat) == null ? void 0 : re.type) == null ? void 0 : ie.image_3d) == null ? void 0 : se[c.value]) == null ? void 0 : le.url,
1139
+ key: (de = (ce = (ae = (ne = l.flat) == null ? void 0 : ne.type) == null ? void 0 : ae.image_3d) == null ? void 0 : ce[c.value]) == null ? void 0 : de.url,
771
1140
  class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
772
1141
  }, null, 8, _hoisted_4$2)) : createCommentVNode("", !0)
773
1142
  ];
@@ -776,93 +1145,93 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
776
1145
  }),
777
1146
  createElementVNode("div", _hoisted_5, [
778
1147
  createElementVNode("div", _hoisted_6, [
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", {
1148
+ (f = (u = (y = (w = l.flat) == null ? void 0 : w.type) == null ? void 0 : y.image_2d) == null ? void 0 : u[0]) != null && f.url ? (openBlock(), createElementBlock("div", {
780
1149
  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": a.value }]),
782
- onClick: h[0] || (h[0] = (B) => a.value = !0)
1150
+ 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": s.value }]),
1151
+ onClick: _[0] || (_[0] = (j) => s.value = !0)
783
1152
  }, [
784
1153
  createVNode(FlatIcon, {
785
- class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": a.value }])
1154
+ class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": s.value }])
786
1155
  }, null, 8, ["class"]),
787
- createElementVNode("p", {
1156
+ createElementVNode("div", {
788
1157
  class: normalizeClass(["group-hover:!ire-text-white", {
789
- "!ire-text-white": a.value,
790
- "!ire-text-black": !a.value
1158
+ "!ire-text-white": s.value,
1159
+ "!ire-text-black": !s.value
791
1160
  }])
792
1161
  }, " 2D plan ", 2)
793
1162
  ], 2)) : createCommentVNode("", !0),
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", {
1163
+ (i = (n = (v = (a = l.flat) == null ? void 0 : a.type) == null ? void 0 : v.image_3d) == null ? void 0 : n[0]) != null && i.url ? (openBlock(), createElementBlock("div", {
795
1164
  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": !a.value }]),
797
- onClick: h[1] || (h[1] = (B) => a.value = !1)
1165
+ 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": !s.value }]),
1166
+ onClick: _[1] || (_[1] = (j) => s.value = !1)
798
1167
  }, [
799
1168
  createElementVNode("div", null, [
800
1169
  createVNode(Cube, {
801
- class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !a.value }])
1170
+ class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !s.value }])
802
1171
  }, null, 8, ["class"])
803
1172
  ]),
804
- createElementVNode("p", {
1173
+ createElementVNode("div", {
805
1174
  class: normalizeClass(["group-hover:!ire-text-white", {
806
- "!ire-text-white": !a.value,
807
- "!ire-text-black": a.value
1175
+ "!ire-text-white": !s.value,
1176
+ "!ire-text-black": s.value
808
1177
  }])
809
1178
  }, " 3D plan ", 2)
810
1179
  ], 2)) : createCommentVNode("", !0)
811
1180
  ]),
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
- key: B,
1181
+ ((p = d.value) == null ? void 0 : p.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
1182
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(d.value, (j, M) => (openBlock(), createElementBlock("div", {
1183
+ key: j,
815
1184
  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": p.value === M
1185
+ "ire-bg-black ire-text-white": c.value === M
817
1186
  }]),
818
- onClick: (L) => p.value = M
819
- }, toDisplayString(B), 11, _hoisted_8))), 128))
1187
+ onClick: (T) => c.value = M
1188
+ }, toDisplayString(j), 11, _hoisted_8))), 128))
820
1189
  ])) : createCommentVNode("", !0)
821
1190
  ])
822
1191
  ]),
823
1192
  createElementVNode("div", _hoisted_9, [
824
1193
  createElementVNode("div", _hoisted_10, [
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
- ]),
828
- createElementVNode("div", _hoisted_12, [
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)
1194
+ createElementVNode("div", _hoisted_11, toDisplayString((m = l.flat) == null ? void 0 : m.flat_number), 1),
1195
+ _[2] || (_[2] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Apartment", -1))
831
1196
  ]),
1197
+ (h = ($ = l.flat) == null ? void 0 : $.type) != null && h.title || (S = (E = l.flat) == null ? void 0 : E.type) != null && S.teaser ? (openBlock(), createElementBlock("div", _hoisted_12, [
1198
+ createElementVNode("div", _hoisted_13, toDisplayString((b = (g = l.flat) == null ? void 0 : g.type) == null ? void 0 : b.title), 1),
1199
+ createElementVNode("div", _hoisted_14, toDisplayString((V = (x = l.flat) == null ? void 0 : x.type) == null ? void 0 : V.teaser), 1)
1200
+ ])) : createCommentVNode("", !0),
832
1201
  createElementVNode("div", _hoisted_15, [
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))
1202
+ (C = l.flat) != null && C.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
1203
+ createElementVNode("div", _hoisted_17, toDisplayString((D = l.flat) == null ? void 0 : D.floor_number), 1),
1204
+ _[3] || (_[3] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Floor", -1))
836
1205
  ])) : createCommentVNode("", !0),
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))
1206
+ (L = (R = l.flat) == null ? void 0 : R.type) != null && L.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
1207
+ createElementVNode("div", _hoisted_19, toDisplayString((N = l.flat) == null ? void 0 : N.type.rooms_count), 1),
1208
+ _[4] || (_[4] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Room", -1))
840
1209
  ])) : createCommentVNode("", !0)
841
1210
  ]),
842
- (S = (N = d.flat) == null ? void 0 : N.type) != null && S.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
843
- createElementVNode("p", _hoisted_21, [
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" }, [
1211
+ (P = (B = l.flat) == null ? void 0 : B.type) != null && P.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
1212
+ createElementVNode("div", _hoisted_21, [
1213
+ createTextVNode(toDisplayString((O = l.flat) == null ? void 0 : O.type.area_m2) + " ", 1),
1214
+ _[5] || (_[5] = createElementVNode("span", { class: "ire-font-light" }, [
846
1215
  createTextVNode(" M "),
847
1216
  createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
848
1217
  ], -1))
849
1218
  ]),
850
- h[6] || (h[6] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Area", -1))
1219
+ _[6] || (_[6] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Area", -1))
851
1220
  ])) : createCommentVNode("", !0),
852
- (R = d.flat) != null && R.price ? (openBlock(), createElementBlock("div", _hoisted_22, [
1221
+ (A = l.flat) != null && A.price ? (openBlock(), createElementBlock("div", _hoisted_22, [
853
1222
  createElementVNode("div", null, [
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
- createElementVNode("p", _hoisted_26, [
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))
1223
+ (I = l.flat) != null && I.offer_price ? (openBlock(), createElementBlock("div", _hoisted_24, [
1224
+ createElementVNode("div", _hoisted_25, toDisplayString(Number((H = l.flat) == null ? void 0 : H.price).toLocaleString()), 1),
1225
+ createElementVNode("div", _hoisted_26, [
1226
+ createTextVNode(toDisplayString(Number((W = l.flat) == null ? void 0 : W.offer_price).toLocaleString()), 1),
1227
+ _[8] || (_[8] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
859
1228
  ])
860
- ])) : (openBlock(), createElementBlock("p", _hoisted_23, [
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))
1229
+ ])) : (openBlock(), createElementBlock("div", _hoisted_23, [
1230
+ createTextVNode(toDisplayString(Number((F = l.flat) == null ? void 0 : F.price).toLocaleString()), 1),
1231
+ _[7] || (_[7] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
863
1232
  ]))
864
1233
  ]),
865
- h[9] || (h[9] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Price", -1))
1234
+ _[9] || (_[9] = createElementVNode("div", { class: "!ire-text-xs ire-text-gray-600" }, "Price", -1))
866
1235
  ])) : createCommentVNode("", !0)
867
1236
  ])
868
1237
  ])
@@ -872,7 +1241,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
872
1241
  })
873
1242
  ]));
874
1243
  }
875
- }), _sfc_main$6 = {}, _hoisted_1$5 = {
1244
+ }), _sfc_main$7 = {}, _hoisted_1$4 = {
876
1245
  xmlns: "http://www.w3.org/2000/svg",
877
1246
  x: "0px",
878
1247
  y: "0px",
@@ -880,69 +1249,69 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
880
1249
  height: "20",
881
1250
  viewBox: "0 0 50 50"
882
1251
  };
883
- function _sfc_render(o, e) {
884
- return openBlock(), createElementBlock("svg", _hoisted_1$5, e[0] || (e[0] = [
1252
+ function _sfc_render(e, t) {
1253
+ return openBlock(), createElementBlock("svg", _hoisted_1$4, t[0] || (t[0] = [
885
1254
  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
1255
  ]));
887
1256
  }
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({
1257
+ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]), _hoisted_1$3 = { class: "ire-fixed ire-left-0 ire-top-0 ire-z-[99999] ire-flex ire-h-full ire-w-full ire-cursor-pointer ire-items-center ire-justify-center ire-p-4 lg:ire-p-32" }, _hoisted_2$2 = { class: "ire-relative ire-h-fit ire-max-h-[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$6 = /* @__PURE__ */ defineComponent({
889
1258
  __name: "PreviewModal",
890
1259
  emits: ["close"],
891
- setup(o) {
892
- return (e, r) => (openBlock(), createElementBlock("div", _hoisted_1$4, [
1260
+ setup(e) {
1261
+ return (t, r) => (openBlock(), createElementBlock("div", _hoisted_1$3, [
893
1262
  createElementVNode("div", {
894
1263
  class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full ire-bg-black/40 ire-transition-all",
895
- onClick: r[0] || (r[0] = (i) => e.$emit("close"))
1264
+ onClick: r[0] || (r[0] = (o) => t.$emit("close"))
896
1265
  }),
897
1266
  createElementVNode("div", _hoisted_2$2, [
898
1267
  createElementVNode("div", _hoisted_3$1, [
899
1268
  createElementVNode("div", {
900
1269
  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: r[1] || (r[1] = (i) => e.$emit("close"))
1270
+ onClick: r[1] || (r[1] = (o) => t.$emit("close"))
902
1271
  }, [
903
1272
  createVNode(Close)
904
1273
  ])
905
1274
  ]),
906
1275
  createElementVNode("div", _hoisted_4$1, [
907
- renderSlot(e.$slots, "default")
1276
+ renderSlot(t.$slots, "default")
908
1277
  ])
909
1278
  ])
910
1279
  ]));
911
1280
  }
912
- }), _hoisted_1$3 = ["innerHTML"], _sfc_main$4 = /* @__PURE__ */ defineComponent({
1281
+ }), _hoisted_1$2 = ["innerHTML"], _sfc_main$5 = /* @__PURE__ */ defineComponent({
913
1282
  __name: "BaseEditor",
914
1283
  props: {
915
1284
  editor: {}
916
1285
  },
917
- setup(o) {
918
- return (e, r) => (openBlock(), createElementBlock("div", {
1286
+ setup(e) {
1287
+ return (t, r) => (openBlock(), createElementBlock("div", {
919
1288
  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
- innerHTML: e.editor
921
- }, null, 8, _hoisted_1$3));
1289
+ innerHTML: t.editor
1290
+ }, null, 8, _hoisted_1$2));
922
1291
  }
923
- }), _hoisted_1$2 = { class: "ire-mb-3 !ire-text-3xl ire-font-bold" }, _hoisted_2$1 = ["src"], _sfc_main$3 = /* @__PURE__ */ defineComponent({
1292
+ }), _hoisted_1$1 = { class: "ire-mb-3 !ire-text-3xl ire-font-bold" }, _hoisted_2$1 = ["src"], _sfc_main$4 = /* @__PURE__ */ defineComponent({
924
1293
  __name: "ActionModal",
925
1294
  props: {
926
1295
  modalData: {}
927
1296
  },
928
- setup(o) {
929
- return (e, r) => {
930
- var i, a, p, f, y, d, h, k, n, u, g, s;
1297
+ setup(e) {
1298
+ return (t, r) => {
1299
+ var o, s, c, d, k, l, _, w, y, u, f, a;
931
1300
  return openBlock(), createElementBlock("div", null, [
932
- createElementVNode("p", _hoisted_1$2, toDisplayString((a = (i = e.modalData) == null ? void 0 : i.modalObject) == null ? void 0 : a.title), 1),
933
- createVNode(_sfc_main$4, {
934
- editor: (f = (p = e.modalData) == null ? void 0 : p.modalObject) == null ? void 0 : f.description
1301
+ createElementVNode("p", _hoisted_1$1, toDisplayString((s = (o = t.modalData) == null ? void 0 : o.modalObject) == null ? void 0 : s.title), 1),
1302
+ createVNode(_sfc_main$5, {
1303
+ editor: (d = (c = t.modalData) == null ? void 0 : c.modalObject) == null ? void 0 : d.description
935
1304
  }, null, 8, ["editor"]),
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", {
1305
+ (w = (_ = (l = (k = t.modalData) == null ? void 0 : k.modalObject) == null ? void 0 : l.modalImage) == null ? void 0 : _[0]) != null && w.url ? (openBlock(), createElementBlock("img", {
937
1306
  key: 0,
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,
1307
+ src: (a = (f = (u = (y = t.modalData) == null ? void 0 : y.modalObject) == null ? void 0 : u.modalImage) == null ? void 0 : f[0]) == null ? void 0 : a.url,
939
1308
  alt: "",
940
1309
  class: "ire-mt-5 ire-h-[400px] ire-w-full ire-object-contain"
941
1310
  }, null, 8, _hoisted_2$1)) : createCommentVNode("", !0)
942
1311
  ]);
943
1312
  };
944
1313
  }
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({
1314
+ }), _hoisted_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$3 = /* @__PURE__ */ defineComponent({
946
1315
  __name: "BlockPreview",
947
1316
  props: {
948
1317
  block: {},
@@ -951,99 +1320,100 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
951
1320
  actions: {}
952
1321
  },
953
1322
  emits: ["changeComponent"],
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(
1323
+ setup(e, { emit: t }) {
1324
+ const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(), l = ref(), _ = computed$1(() => {
1325
+ var u, f;
1326
+ if ((u = o.block) != null && u.svg)
1327
+ return (f = o.block) == null ? void 0 : f.svg;
1328
+ }), w = (u) => {
1329
+ const f = u.target;
1330
+ f && (d.value = f);
1331
+ }, y = (u) => {
1332
+ var a, v, n;
1333
+ const f = u.target;
1334
+ (f == null ? void 0 : f.nodeName) === "path" && (((a = l.value) == null ? void 0 : a.conf) === "sold" || ((v = l.value) == null ? void 0 : v.conf) === "reserved" || r(
966
1335
  "changeComponent",
967
- ((_ = f.value) == null ? void 0 : _.type) || "",
968
- y.value
1336
+ ((n = k.value) == null ? void 0 : n.type) || "",
1337
+ l.value
969
1338
  ));
970
1339
  };
971
1340
  return watch(
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);
1341
+ () => d.value,
1342
+ (u) => {
1343
+ var a, v, n, i, p, m, $, h;
1344
+ if (!u) return;
1345
+ s.hoverdSvg = u;
1346
+ const f = u == null ? void 0 : u.parentElement;
1347
+ if (f && (f == null ? void 0 : f.nodeName) === "g") {
1348
+ const E = f == null ? void 0 : f.getAttribute("id");
1349
+ if (!E || (k.value = ((v = (a = o.block) == null ? void 0 : a.polygon_data) == null ? void 0 : v.find((S) => (S == null ? void 0 : S.key) === E)) || null, !k.value)) return;
1350
+ if (((n = k.value) == null ? void 0 : n.type) === "floor") {
1351
+ const S = (i = o.floors) == null ? void 0 : i.find(
1352
+ (g) => {
1353
+ var b;
1354
+ return (g == null ? void 0 : g.id) === ((b = k.value) == null ? void 0 : b.id);
985
1355
  }
986
1356
  );
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);
1357
+ l.value = S;
1358
+ } else if (((p = k.value) == null ? void 0 : p.type) === "flat") {
1359
+ const S = (m = o.flats) == null ? void 0 : m.find(
1360
+ (g) => {
1361
+ var b;
1362
+ return (g == null ? void 0 : g.id) === ((b = k.value) == null ? void 0 : b.id);
993
1363
  }
994
1364
  );
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);
1365
+ l.value = S;
1366
+ } else if ((($ = k.value) == null ? void 0 : $.type) === "tooltip") {
1367
+ const S = (h = o.actions) == null ? void 0 : h.find(
1368
+ (g) => {
1369
+ var b;
1370
+ return (g == null ? void 0 : g.id) === ((b = k.value) == null ? void 0 : b.id);
1001
1371
  }
1002
1372
  );
1003
- y.value = E;
1373
+ l.value = S;
1004
1374
  } else
1005
- y.value = null;
1375
+ l.value = null;
1006
1376
  } else
1007
- f.value = null, y.value = null;
1377
+ k.value = null, l.value = null;
1008
1378
  }
1009
- ), (n, u) => {
1010
- var g;
1011
- return openBlock(), createBlock(_sfc_main$f, {
1012
- hoverdData: y.value,
1013
- type: (g = f.value) == null ? void 0 : g.type
1379
+ ), (u, f) => {
1380
+ var a;
1381
+ return openBlock(), createBlock(_sfc_main$g, {
1382
+ hoverdData: l.value,
1383
+ type: (a = k.value) == null ? void 0 : a.type
1014
1384
  }, {
1015
1385
  header: withCtx(() => {
1016
- var s;
1386
+ var v;
1017
1387
  return [
1018
- createVNode(_sfc_main$b, {
1019
- onClick: u[0] || (u[0] = (_) => n.$emit("changeComponent", "project", null))
1388
+ createVNode(_sfc_main$c, {
1389
+ onClick: f[0] || (f[0] = (n) => u.$emit("changeComponent", "project", null))
1020
1390
  }),
1021
- createElementVNode("p", _hoisted_1$1, toDisplayString((s = n.block) == null ? void 0 : s.title), 1)
1391
+ createElementVNode("p", _hoisted_1, toDisplayString((v = u.block) == null ? void 0 : v.title), 1)
1022
1392
  ];
1023
1393
  }),
1024
1394
  default: withCtx(() => {
1025
- var s, _, t, l, c, v;
1395
+ var v, n, i, p, m, $;
1026
1396
  return [
1027
1397
  createElementVNode("div", _hoisted_2, [
1028
1398
  createElementVNode("img", {
1029
- src: ((t = (_ = (s = n.block) == null ? void 0 : s.block_image) == null ? void 0 : _[0]) == null ? void 0 : t.url) || "",
1399
+ src: ((i = (n = (v = u.block) == null ? void 0 : v.block_image) == null ? void 0 : n[0]) == null ? void 0 : i.url) || "",
1030
1400
  alt: "",
1031
1401
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
1032
1402
  }, null, 8, _hoisted_3),
1033
1403
  (openBlock(), createElementBlock("div", {
1034
1404
  ref_key: "svgRef",
1035
- ref: a,
1036
- innerHTML: d.value,
1037
- key: d.value,
1405
+ ref: c,
1406
+ innerHTML: _.value,
1407
+ key: _.value,
1038
1408
  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
1409
  {
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)
1410
+ "hover:[&_path]:ire-fill-[var(--reserved-color)]": ((p = l.value) == null ? void 0 : p.conf) === "reserved",
1411
+ "hover:[&_path]:ire-fill-[var(--sold-color)]": ((m = l.value) == null ? void 0 : m.conf) === "sold",
1412
+ "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !(($ = l.value) != null && $.conf)
1043
1413
  }
1044
1414
  ]]),
1045
- onMouseover: h,
1046
- onClick: k
1415
+ onMouseover: w,
1416
+ onClick: y
1047
1417
  }, null, 42, _hoisted_4))
1048
1418
  ])
1049
1419
  ];
@@ -1052,31 +1422,56 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1052
1422
  }, 8, ["hoverdData", "type"]);
1053
1423
  };
1054
1424
  }
1055
- }), _hoisted_1 = { class: "interactive-real-estate" }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
1425
+ }), _sfc_main$2 = /* @__PURE__ */ defineComponent({
1426
+ __name: "GlobalProvider",
1427
+ setup(e) {
1428
+ const t = useGlobalStore(), r = ref(0), o = ref(0), s = ref(null);
1429
+ return document.addEventListener("mousemove", (c) => {
1430
+ var E;
1431
+ const d = document.querySelector(".tooltip-2"), k = ((E = t.hoverdSvg) == null ? void 0 : E.nodeName) === "path" ? t.hoverdSvg : null;
1432
+ if (!s.value || !d || !k) return;
1433
+ d.style.opacity = "1";
1434
+ const {
1435
+ bottom: l,
1436
+ height: _,
1437
+ left: w,
1438
+ right: y,
1439
+ top: u,
1440
+ width: f
1441
+ } = s.value.getBoundingClientRect(), { bottom: a, left: v } = k.getBoundingClientRect(), { height: n, width: i } = d.getBoundingClientRect(), p = y - f / 2, m = l - _ / 2, $ = v > p, h = a > m;
1442
+ r.value = c.clientX - w - ($ ? i : -20), o.value = c.clientY - u - (h ? n : -20);
1443
+ }), provide("mouseX", r), provide("mouseY", o), (c, d) => (openBlock(), createElementBlock("div", {
1444
+ ref_key: "canvasRef",
1445
+ ref: s
1446
+ }, [
1447
+ renderSlot(c.$slots, "default")
1448
+ ], 512));
1449
+ }
1450
+ }), _sfc_main$1 = /* @__PURE__ */ defineComponent({
1056
1451
  __name: "Preview",
1057
1452
  props: {
1058
1453
  shortcodeDataProps: {}
1059
1454
  },
1060
1455
  setup(__props) {
1061
- var o, e, r, i, a, p, f, y, d, h, k, n, u, g;
1062
- const props = __props, getMeta = (s) => props.shortcodeDataProps.meta.find(
1063
- (_) => _.meta_key === s
1456
+ var e, t, r, o, s, c, d, k, l, _, w, y, u, f;
1457
+ const props = __props, getMeta = (a) => props.shortcodeDataProps.meta.find(
1458
+ (v) => v.meta_key === a
1064
1459
  ), constants = ref({
1065
- PREVIEW_PATH_COLOR: ((o = getMeta("path_color")) == null ? void 0 : o.meta_value) || "rgba(255, 255, 255, 0.3)",
1066
- PREVIEW_PATH_HOVER_COLOR: ((e = getMeta("path_hover_color")) == null ? void 0 : e.meta_value) || "rgba(250, 250, 250, 0.54)",
1460
+ PREVIEW_PATH_COLOR: ((e = getMeta("path_color")) == null ? void 0 : e.meta_value) || "rgba(255, 255, 255, 0.3)",
1461
+ PREVIEW_PATH_HOVER_COLOR: ((t = getMeta("path_hover_color")) == null ? void 0 : t.meta_value) || "rgba(250, 250, 250, 0.54)",
1067
1462
  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
1463
+ PREVIEW_SOLD_COLOR: ((o = getMeta("sold_color")) == null ? void 0 : o.meta_value) || "rgba(219, 64, 64, 0.45)",
1464
+ PREVIEW_STROKE_COLOR: ((s = getMeta("stroke_color")) == null ? void 0 : s.meta_value) || "rgba(0, 0, 0, 1)",
1465
+ PREVIEW_STROKE_WIDTH: +((c = getMeta("stroke_width")) == null ? void 0 : c.meta_value) || 1,
1466
+ PREVIEW_BORDER_RADIUS: +((d = getMeta("border_radius")) == null ? void 0 : d.meta_value) || 0
1072
1467
  }), colors = reactive({
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,
1468
+ path: (k = constants.value) == null ? void 0 : k.PREVIEW_PATH_COLOR,
1469
+ path_hover: (l = constants.value) == null ? void 0 : l.PREVIEW_PATH_HOVER_COLOR,
1470
+ reserved: (_ = constants.value) == null ? void 0 : _.PREVIEW_RESERVED_COLOR,
1471
+ sold: (w = constants.value) == null ? void 0 : w.PREVIEW_SOLD_COLOR,
1472
+ stroke_color: (y = constants.value) == null ? void 0 : y.PREVIEW_STROKE_COLOR,
1078
1473
  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
1474
+ border_radius: (f = constants.value) == null ? void 0 : f.PREVIEW_BORDER_RADIUS
1080
1475
  }), cssVariables = computed$1(() => ({
1081
1476
  "--reserved-color": colors.reserved,
1082
1477
  "--sold-color": colors.sold,
@@ -1088,30 +1483,30 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1088
1483
  })), shortcodeData = ref(props.shortcodeDataProps), flow = ref(
1089
1484
  "projectFlow"
1090
1485
  ), hoveredData = ref(), showModal = ref(!1), activeBlock = ref(), activeFloor = ref(), project = computed$1(() => {
1091
- var s;
1486
+ var a;
1092
1487
  if (shortcodeData.value)
1093
- return (s = shortcodeData.value) == null ? void 0 : s.project;
1488
+ return (a = shortcodeData.value) == null ? void 0 : a.project;
1094
1489
  }), floors = computed$1(() => {
1095
- var s, _;
1490
+ var a, v;
1096
1491
  if (shortcodeData.value)
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) => {
1492
+ return (a = shortcodeData.value.floors) == null || a.forEach((n) => {
1493
+ var m, $;
1494
+ const i = ($ = (m = shortcodeData.value) == null ? void 0 : m.flats) == null ? void 0 : $.filter((h) => {
1100
1495
  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;
1496
+ return (h == null ? void 0 : h.floor_number) !== ((E = n == null ? void 0 : n.floor_number) == null ? void 0 : E.toString()) ? !1 : n != null && n.polygon_data ? Object == null ? void 0 : Object.values(n == null ? void 0 : n.polygon_data).some(
1497
+ (g) => {
1498
+ var b;
1499
+ return g != null && g.type && (g == null ? void 0 : g.type) === "flat" && (g == null ? void 0 : g.id) === (h == null ? void 0 : h.id) ? n != null && n.block_id ? (h == null ? void 0 : h.block_id) === ((b = n == null ? void 0 : n.block_id) == null ? void 0 : b.toString()) : !(h != null && h.block_id) : !1;
1105
1500
  }
1106
1501
  ) : !1;
1107
1502
  });
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");
1503
+ n.flats = i;
1504
+ const { conf: p } = n || {};
1505
+ if (i != null && i.length && !p) {
1506
+ const h = i == null ? void 0 : i.every((S) => (S == null ? void 0 : S.conf) === "reserved"), E = i == null ? void 0 : i.every((S) => (S == null ? void 0 : S.conf) === "sold");
1507
+ h ? n.conf = "reserved" : E && (n.conf = "sold");
1113
1508
  }
1114
- }), (_ = shortcodeData.value) == null ? void 0 : _.floors;
1509
+ }), (v = shortcodeData.value) == null ? void 0 : v.floors;
1115
1510
  }), blocks = computed$1(() => {
1116
1511
  if (shortcodeData.value)
1117
1512
  return shortcodeData.value.blocks;
@@ -1119,27 +1514,27 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1119
1514
  if (shortcodeData.value)
1120
1515
  return shortcodeData.value.types;
1121
1516
  }), flats = computed$1(() => {
1122
- var s, _;
1517
+ var a, v;
1123
1518
  if (shortcodeData.value)
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);
1519
+ return (v = (a = shortcodeData.value) == null ? void 0 : a.flats) == null ? void 0 : v.map((n) => {
1520
+ var i;
1521
+ if (n != null && n.use_type || !(n != null && n.type)) {
1522
+ const p = (i = types.value) == null ? void 0 : i.find((m) => (m == null ? void 0 : m.id) === (n == null ? void 0 : n.type_id));
1523
+ p && (n.type = p);
1129
1524
  }
1130
- return t;
1525
+ return n;
1131
1526
  });
1132
1527
  }), actions = computed$1(() => {
1133
- var s;
1528
+ var a;
1134
1529
  if (shortcodeData.value)
1135
- return (s = shortcodeData.value) == null ? void 0 : s.actions;
1530
+ return (a = shortcodeData.value) == null ? void 0 : a.actions;
1136
1531
  }), projectMeta = computed$1(() => {
1137
- var s;
1532
+ var a;
1138
1533
  if (shortcodeData.value)
1139
- return (s = shortcodeData.value) == null ? void 0 : s.meta;
1140
- }), getColorMeta = (s) => {
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;
1534
+ return (a = shortcodeData.value) == null ? void 0 : a.meta;
1535
+ }), getColorMeta = (a) => {
1536
+ var v, n;
1537
+ return (n = (v = projectMeta.value) == null ? void 0 : v.find((i) => (i == null ? void 0 : i.meta_key) === a)) == null ? void 0 : n.meta_value;
1143
1538
  }, changeRoute = (flowType, polygonItem) => {
1144
1539
  switch (flowType) {
1145
1540
  case "project":
@@ -1166,8 +1561,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1166
1561
  else if ((actionData == null ? void 0 : actionData.actionType) === "script")
1167
1562
  try {
1168
1563
  eval(actionData == null ? void 0 : actionData.script);
1169
- } catch (s) {
1170
- console.error("Error executing script:", s);
1564
+ } catch (a) {
1565
+ console.error("Error executing script:", a);
1171
1566
  }
1172
1567
  break;
1173
1568
  }
@@ -1175,83 +1570,88 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1175
1570
  return watch(
1176
1571
  () => projectMeta.value,
1177
1572
  () => {
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));
1573
+ const a = getColorMeta("path_color"), v = getColorMeta("path_hover_color"), n = getColorMeta("reserved_color"), i = getColorMeta("sold_color"), p = getColorMeta("stroke_color"), m = getColorMeta("stroke_width");
1574
+ a && (colors.path = a.toString()), v && (colors.path_hover = v.toString()), n && (colors.reserved = n.toString()), i && (colors.sold = i.toString()), p && (colors.stroke_color = p.toString()), m && (colors.stroke_width = Number(m));
1180
1575
  }
1181
- ), (s, _) => (openBlock(), createElementBlock("div", _hoisted_1, [
1182
- createVNode(Transition, {
1183
- name: "ire-fade-in-out",
1184
- mode: "out-in",
1185
- style: normalizeStyle(cssVariables.value)
1186
- }, {
1187
- default: withCtx(() => [
1188
- shortcodeData.value ? (openBlock(), createElementBlock("div", { key: flow.value }, [
1189
- flow.value === "projectFlow" ? (openBlock(), createBlock(_sfc_main$e, {
1190
- key: 0,
1191
- project: project.value,
1192
- floors: floors.value,
1193
- flats: flats.value,
1194
- projectMeta: projectMeta.value,
1195
- blocks: blocks.value,
1196
- actions: actions.value,
1197
- onChangeComponent: _[0] || (_[0] = (t, l) => changeRoute(t, l))
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, {
1199
- key: 1,
1200
- block: activeBlock.value,
1201
- flats: flats.value,
1202
- floors: floors.value,
1203
- actions: actions.value,
1204
- onChangeComponent: _[1] || (_[1] = (t, l) => changeRoute(t, l))
1205
- }, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$a, {
1206
- key: 2,
1207
- flats: flats.value,
1208
- floor: activeFloor.value,
1209
- floors: floors.value,
1210
- blocks: blocks.value,
1211
- actions: actions.value,
1212
- onChangeComponent: _[2] || (_[2] = (t, l) => changeRoute(t, l))
1213
- }, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : flow.value === "flatFlow" ? (openBlock(), createBlock(_sfc_main$7, {
1214
- key: 3,
1215
- flat: hoveredData.value,
1216
- floors: floors.value,
1217
- onChangeComponent: _[3] || (_[3] = (t, l) => changeRoute(t, l))
1218
- }, null, 8, ["flat", "floors"])) : createCommentVNode("", !0)
1219
- ])) : createCommentVNode("", !0)
1220
- ]),
1221
- _: 1
1222
- }, 8, ["style"]),
1223
- (openBlock(), createBlock(Teleport, { to: "body" }, [
1576
+ ), (a, v) => (openBlock(), createBlock(_sfc_main$2, { class: "interactive-real-estate" }, {
1577
+ default: withCtx(() => [
1224
1578
  createVNode(Transition, {
1225
1579
  name: "ire-fade-in-out",
1226
- appear: ""
1580
+ mode: "out-in",
1581
+ style: normalizeStyle(cssVariables.value)
1227
1582
  }, {
1228
1583
  default: withCtx(() => [
1229
- showModal.value ? (openBlock(), createBlock(_sfc_main$5, {
1230
- key: 0,
1231
- onClose: _[4] || (_[4] = (t) => showModal.value = !1)
1232
- }, {
1233
- default: withCtx(() => [
1234
- createVNode(_sfc_main$3, { modalData: hoveredData.value }, null, 8, ["modalData"])
1235
- ]),
1236
- _: 1
1237
- })) : createCommentVNode("", !0)
1584
+ shortcodeData.value ? (openBlock(), createElementBlock("div", { key: flow.value }, [
1585
+ flow.value === "projectFlow" ? (openBlock(), createBlock(_sfc_main$f, {
1586
+ key: 0,
1587
+ project: project.value,
1588
+ floors: floors.value,
1589
+ flats: flats.value,
1590
+ projectMeta: projectMeta.value,
1591
+ blocks: blocks.value,
1592
+ actions: actions.value,
1593
+ onChangeComponent: v[0] || (v[0] = (n, i) => changeRoute(n, i))
1594
+ }, null, 8, ["project", "floors", "flats", "projectMeta", "blocks", "actions"])) : flow.value === "blockFlow" && flats.value && floors.value && blocks.value && activeBlock.value ? (openBlock(), createBlock(_sfc_main$3, {
1595
+ key: 1,
1596
+ block: activeBlock.value,
1597
+ flats: flats.value,
1598
+ floors: floors.value,
1599
+ actions: actions.value,
1600
+ onChangeComponent: v[1] || (v[1] = (n, i) => changeRoute(n, i))
1601
+ }, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$b, {
1602
+ key: 2,
1603
+ flats: flats.value,
1604
+ floor: activeFloor.value,
1605
+ floors: floors.value,
1606
+ blocks: blocks.value,
1607
+ actions: actions.value,
1608
+ onChangeComponent: v[2] || (v[2] = (n, i) => changeRoute(n, i))
1609
+ }, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : flow.value === "flatFlow" ? (openBlock(), createBlock(_sfc_main$8, {
1610
+ key: 3,
1611
+ flat: hoveredData.value,
1612
+ floors: floors.value,
1613
+ onChangeComponent: v[3] || (v[3] = (n, i) => changeRoute(n, i))
1614
+ }, null, 8, ["flat", "floors"])) : createCommentVNode("", !0)
1615
+ ])) : createCommentVNode("", !0)
1238
1616
  ]),
1239
1617
  _: 1
1240
- })
1241
- ]))
1242
- ]));
1618
+ }, 8, ["style"]),
1619
+ (openBlock(), createBlock(Teleport, { to: "body" }, [
1620
+ createVNode(Transition, {
1621
+ name: "ire-fade-in-out",
1622
+ appear: ""
1623
+ }, {
1624
+ default: withCtx(() => [
1625
+ showModal.value ? (openBlock(), createBlock(_sfc_main$6, {
1626
+ key: 0,
1627
+ onClose: v[4] || (v[4] = (n) => showModal.value = !1)
1628
+ }, {
1629
+ default: withCtx(() => [
1630
+ createVNode(_sfc_main$4, { modalData: hoveredData.value }, null, 8, ["modalData"])
1631
+ ]),
1632
+ _: 1
1633
+ })) : createCommentVNode("", !0)
1634
+ ]),
1635
+ _: 1
1636
+ })
1637
+ ]))
1638
+ ]),
1639
+ _: 1
1640
+ }));
1243
1641
  }
1244
1642
  }), _sfc_main = /* @__PURE__ */ defineComponent({
1245
1643
  __name: "Project",
1246
1644
  props: {
1247
1645
  data: {}
1248
1646
  },
1249
- setup(o) {
1250
- return (e, r) => (openBlock(), createElementBlock("div", null, [
1251
- createVNode(_sfc_main$1, { "shortcode-data-props": e.data }, null, 8, ["shortcode-data-props"])
1647
+ setup(e) {
1648
+ return provide("shortcodeData", e.data), (r, o) => (openBlock(), createElementBlock("div", null, [
1649
+ createVNode(_sfc_main$1, { "shortcode-data-props": r.data }, null, 8, ["shortcode-data-props"])
1252
1650
  ]));
1253
1651
  }
1254
- });
1652
+ }), pinia = createPinia(), app = createApp(App);
1653
+ app.use(pinia);
1654
+ app.mount("#app");
1255
1655
  export {
1256
1656
  _sfc_main as Project
1257
1657
  };