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