ire-preview 2.3.0 → 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, n, f, x, y, u, _, a, v, l, 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((n = t.hoveredData) == null ? void 0 : n.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((l = (v = t.hoveredData) == null ? void 0 : v.counts) == null ? void 0 : l.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,67 +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, n, f, x, y, u, _, a, v, l;
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(((n = (k = o.hoveredData) == null ? void 0 : k.counts) == null ? void 0 : n.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((l = Number((v = (a = o.hoveredData) == null ? void 0 : a.type) == null ? void 0 : v.area_m2)) == null ? void 0 : l.toLocaleString(
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(
361
380
  "fr-FR"
362
381
  )) + " M ", 1),
363
- s[1] || (s[1] = createElementVNode("sup", { class: "ire-right-[2px] !ire-text-xs ire-text-gray-200" }, " 2 ", -1))
382
+ i[1] || (i[1] = createElementVNode("sup", { class: "ire-right-[2px] !ire-text-xs ire-text-gray-200" }, " 2 ", -1))
364
383
  ])
365
384
  ])) : createCommentVNode("", !0)
366
385
  ])
@@ -370,48 +389,48 @@ const _hoisted_1$g = {
370
389
  _: 1
371
390
  }));
372
391
  }
373
- }), _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 = {
374
393
  key: 0,
375
394
  class: "ire-flex ire-flex-col ire-items-center ire-gap-3"
376
- }, _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 = {
377
396
  key: 1,
378
397
  class: "ire-flex ire-items-center ire-gap-3"
379
- }, _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 = {
380
399
  key: 2,
381
400
  class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
382
- }, _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({
383
402
  __name: "Tooltip_3",
384
403
  props: {
385
404
  hoveredData: {},
386
405
  type: {}
387
406
  },
388
- setup(e) {
389
- const t = inject("mouseX"), r = inject("mouseY");
390
- 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" }, {
391
410
  default: withCtx(() => {
392
- var c, d, k;
411
+ var l, i, c;
393
412
  return [
394
- o.type && o.hoveredData && o.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
413
+ e.type && e.hoveredData && e.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
395
414
  key: 0,
396
415
  class: "ire-pointer-events-none ire-absolute ire-left-0 ire-top-0 ire-select-none",
397
416
  style: normalizeStyle({
398
- transform: `translateX(${unref(t) || 0}px) translateY(${unref(r) || 0}px)`
417
+ transform: `translateX(${unref(o) || 0}px) translateY(${unref(r) || 0}px)`
399
418
  })
400
419
  }, [
401
420
  createElementVNode("div", _hoisted_1$e, [
402
- o.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
403
- createElementVNode("div", _hoisted_3$6, [
404
- createElementVNode("div", _hoisted_4$5, toDisplayString((c = o.hoveredData) == null ? void 0 : c.floor_number), 1),
405
- 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)
406
425
  ])
407
- ])) : o.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
408
- createElementVNode("div", _hoisted_6$1, [
409
- 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)
410
429
  ])
411
- ])) : o.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
412
- createElementVNode("div", _hoisted_9$1, [
413
- createElementVNode("div", _hoisted_10$1, toDisplayString((k = o.hoveredData) == null ? void 0 : k.flat_number), 1),
414
- 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)
415
434
  ])
416
435
  ])) : createCommentVNode("", !0)
417
436
  ])
@@ -430,36 +449,50 @@ const _hoisted_1$g = {
430
449
  hoverdData: {},
431
450
  type: {}
432
451
  },
433
- setup(e) {
434
- const t = ref(), r = inject("shortcodeData"), o = computed$1(() => {
435
- var s;
436
- 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";
437
456
  });
438
- 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", {
439
465
  ref_key: "canvasRef",
440
- ref: t,
441
- 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"
442
468
  }, [
443
- s.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
444
- renderSlot(s.$slots, "header")
469
+ i.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$d, [
470
+ renderSlot(i.$slots, "header")
445
471
  ])) : createCommentVNode("", !0),
446
- renderSlot(s.$slots, "default"),
447
- o.value === "2" ? (openBlock(), createBlock(_sfc_main$i, {
448
- key: 1,
449
- "hovered-data": s.hoverdData,
450
- type: s.type || "",
451
- class: "ire-hidden lg:ire-flex"
452
- }, null, 8, ["hovered-data", "type"])) : o.value === "3" ? (openBlock(), createBlock(_sfc_main$h, {
453
- key: 2,
454
- "hovered-data": s.hoverdData,
455
- type: s.type || "",
456
- class: "ire-hidden lg:ire-flex"
457
- }, null, 8, ["hovered-data", "type"])) : (openBlock(), createBlock(_sfc_main$j, {
458
- key: 3,
459
- "hovered-data": s.hoverdData,
460
- type: s.type || "",
461
- class: "ire-hidden lg:ire-block"
462
- }, 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
+ })
463
496
  ], 512));
464
497
  }
465
498
  });
@@ -469,219 +502,219 @@ const _hoisted_1$g = {
469
502
  * @license MIT
470
503
  */
471
504
  let activePinia;
472
- const setActivePinia = (e) => activePinia = e, piniaSymbol = (
505
+ const setActivePinia = (t) => activePinia = t, piniaSymbol = (
473
506
  /* istanbul ignore next */
474
507
  Symbol()
475
508
  );
476
- function isPlainObject(e) {
477
- 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";
478
511
  }
479
512
  var MutationType;
480
- (function(e) {
481
- 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";
482
515
  })(MutationType || (MutationType = {}));
483
516
  function createPinia() {
484
- const e = effectScope(!0), t = e.run(() => ref({}));
485
- let r = [], o = [];
486
- const s = markRaw({
487
- install(c) {
488
- 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 = [];
489
522
  },
490
- use(c) {
491
- return this._a ? r.push(c) : o.push(c), this;
523
+ use(l) {
524
+ return this._a ? r.push(l) : e.push(l), this;
492
525
  },
493
526
  _p: r,
494
527
  // it's actually undefined here
495
528
  // @ts-expect-error
496
529
  _a: null,
497
- _e: e,
530
+ _e: t,
498
531
  _s: /* @__PURE__ */ new Map(),
499
- state: t
532
+ state: o
500
533
  });
501
- return s;
534
+ return n;
502
535
  }
503
536
  const noop = () => {
504
537
  };
505
- function addSubscription(e, t, r, o = noop) {
506
- e.push(t);
507
- const s = () => {
508
- const c = e.indexOf(t);
509
- 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());
510
543
  };
511
- return !r && getCurrentScope() && onScopeDispose(s), s;
544
+ return !r && getCurrentScope() && onScopeDispose(n), n;
512
545
  }
513
- function triggerSubscriptions(e, ...t) {
514
- e.slice().forEach((r) => {
515
- r(...t);
546
+ function triggerSubscriptions(t, ...o) {
547
+ t.slice().forEach((r) => {
548
+ r(...o);
516
549
  });
517
550
  }
518
- const fallbackRunWithContext = (e) => e(), ACTION_MARKER = Symbol(), ACTION_NAME = Symbol();
519
- function mergeReactiveObjects(e, t) {
520
- 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);
521
- for (const r in t) {
522
- 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))
523
556
  continue;
524
- const o = t[r], s = e[r];
525
- 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;
526
559
  }
527
- return e;
560
+ return t;
528
561
  }
529
562
  const skipHydrateSymbol = (
530
563
  /* istanbul ignore next */
531
564
  Symbol()
532
565
  );
533
- function shouldHydrate(e) {
534
- return !isPlainObject(e) || !e.hasOwnProperty(skipHydrateSymbol);
566
+ function shouldHydrate(t) {
567
+ return !isPlainObject(t) || !t.hasOwnProperty(skipHydrateSymbol);
535
568
  }
536
569
  const { assign } = Object;
537
- function isComputed(e) {
538
- return !!(isRef(e) && e.effect);
570
+ function isComputed(t) {
571
+ return !!(isRef(t) && t.effect);
539
572
  }
540
- function createOptionsStore(e, t, r, o) {
541
- const { state: s, actions: c, getters: d } = t, k = r.state.value[e];
542
- let n;
543
- function f() {
544
- k || (r.state.value[e] = s ? s() : {});
545
- const x = toRefs(r.state.value[e]);
546
- 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(() => {
547
580
  setActivePinia(r);
548
- const _ = r._s.get(e);
549
- return d[u].call(_, _);
550
- })), y), {}));
581
+ const m = r._s.get(t);
582
+ return i[h].call(m, m);
583
+ })), $), {}));
551
584
  }
552
- return n = createSetupStore(e, f, t, r, o, !0), n;
585
+ return k = createSetupStore(t, w, o, r, e, !0), k;
553
586
  }
554
- function createSetupStore(e, t, r = {}, o, s, c) {
555
- let d;
556
- const k = assign({ actions: {} }, r), n = { deep: !0 };
557
- let f, x, y = [], u = [], _;
558
- const a = o.state.value[e];
559
- !c && !a && (o.state.value[e] = {}), ref({});
560
- let v;
561
- function l(g) {
562
- let b;
563
- 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 = {
564
597
  type: MutationType.patchFunction,
565
- storeId: e,
566
- events: _
567
- }) : (mergeReactiveObjects(o.state.value[e], g), b = {
598
+ storeId: t,
599
+ events: m
600
+ }) : (mergeReactiveObjects(e.state.value[t], f), g = {
568
601
  type: MutationType.patchObject,
569
- payload: g,
570
- storeId: e,
571
- events: _
602
+ payload: f,
603
+ storeId: t,
604
+ events: m
572
605
  });
573
- const w = v = Symbol();
606
+ const y = p = Symbol();
574
607
  nextTick().then(() => {
575
- v === w && (f = !0);
576
- }), x = !0, triggerSubscriptions(y, b, o.state.value[e]);
608
+ p === y && (w = !0);
609
+ }), S = !0, triggerSubscriptions($, g, e.state.value[t]);
577
610
  }
578
- const i = c ? function() {
579
- const { state: b } = r, w = b ? b() : {};
611
+ const s = l ? function() {
612
+ const { state: g } = r, y = g ? g() : {};
580
613
  this.$patch((V) => {
581
- assign(V, w);
614
+ assign(V, y);
582
615
  });
583
616
  } : (
584
617
  /* istanbul ignore next */
585
618
  noop
586
619
  );
587
- function p() {
588
- d.stop(), y = [], u = [], o._s.delete(e);
620
+ function d() {
621
+ i.stop(), $ = [], h = [], e._s.delete(t);
589
622
  }
590
- const m = (g, b = "") => {
591
- if (ACTION_MARKER in g)
592
- return g[ACTION_NAME] = b, g;
593
- const w = function() {
594
- 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);
595
628
  const V = Array.from(arguments), C = [], D = [];
596
- function R(B) {
629
+ function M(B) {
597
630
  C.push(B);
598
631
  }
599
- function j(B) {
632
+ function T(B) {
600
633
  D.push(B);
601
634
  }
602
- triggerSubscriptions(u, {
635
+ triggerSubscriptions(h, {
603
636
  args: V,
604
- name: w[ACTION_NAME],
605
- store: h,
606
- after: R,
607
- onError: j
637
+ name: y[ACTION_NAME],
638
+ store: _,
639
+ after: M,
640
+ onError: T
608
641
  });
609
642
  let N;
610
643
  try {
611
- N = g.apply(this && this.$id === e ? this : h, V);
644
+ N = f.apply(this && this.$id === t ? this : _, V);
612
645
  } catch (B) {
613
646
  throw triggerSubscriptions(D, B), B;
614
647
  }
615
648
  return N instanceof Promise ? N.then((B) => (triggerSubscriptions(C, B), B)).catch((B) => (triggerSubscriptions(D, B), Promise.reject(B))) : (triggerSubscriptions(C, N), N);
616
649
  };
617
- return w[ACTION_MARKER] = !0, w[ACTION_NAME] = b, w;
618
- }, $ = {
619
- _p: o,
650
+ return y[ACTION_MARKER] = !0, y[ACTION_NAME] = g, y;
651
+ }, b = {
652
+ _p: e,
620
653
  // _s: scope,
621
- $id: e,
622
- $onAction: addSubscription.bind(null, u),
623
- $patch: l,
624
- $reset: i,
625
- $subscribe(g, b = {}) {
626
- const w = addSubscription(y, g, b.detached, () => V()), V = d.run(() => watch(() => o.state.value[e], (C) => {
627
- (b.flush === "sync" ? x : f) && g({
628
- 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,
629
662
  type: MutationType.direct,
630
- events: _
663
+ events: m
631
664
  }, C);
632
- }, assign({}, n, b)));
633
- return w;
665
+ }, assign({}, k, g)));
666
+ return y;
634
667
  },
635
- $dispose: p
636
- }, h = reactive($);
637
- o._s.set(e, h);
638
- const S = (o._a && o._a.runWithContext || fallbackRunWithContext)(() => o._e.run(() => (d = effectScope()).run(() => t({ action: m }))));
639
- for (const g in S) {
640
- const b = S[g];
641
- if (isRef(b) && !isComputed(b) || isReactive(b))
642
- c || (a && shouldHydrate(b) && (isRef(b) ? b.value = a[g] : mergeReactiveObjects(b, a[g])), o.state.value[e][g] = b);
643
- else if (typeof b == "function") {
644
- const w = m(b, g);
645
- 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;
646
679
  }
647
680
  }
648
- return assign(h, S), assign(toRaw(h), S), Object.defineProperty(h, "$state", {
649
- get: () => o.state.value[e],
650
- set: (g) => {
651
- l((b) => {
652
- 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);
653
686
  });
654
687
  }
655
- }), o._p.forEach((g) => {
656
- assign(h, d.run(() => g({
657
- store: h,
658
- app: o._a,
659
- pinia: o,
660
- options: k
688
+ }), e._p.forEach((f) => {
689
+ assign(_, i.run(() => f({
690
+ store: _,
691
+ app: e._a,
692
+ pinia: e,
693
+ options: c
661
694
  })));
662
- }), 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, _;
663
696
  }
664
697
  /*! #__NO_SIDE_EFFECTS__ */
665
698
  // @__NO_SIDE_EFFECTS__
666
- function defineStore(e, t, r) {
667
- let o;
668
- const s = typeof t == "function";
669
- o = s ? r : t;
670
- function c(d, k) {
671
- const n = hasInjectionContext();
672
- 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
673
706
  // pinia instance with getActivePinia()
674
- d || (n ? 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);
675
708
  }
676
- return c.$id = e, c;
709
+ return l.$id = t, l;
677
710
  }
678
711
  const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
679
- const e = ref(), t = ref("1");
712
+ const t = ref(), o = ref("1");
680
713
  return {
681
- hoverdSvg: e,
682
- tooltip: t
714
+ hoverdSvg: t,
715
+ tooltip: o
683
716
  };
684
- }), _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({
685
718
  __name: "ProjectPreview",
686
719
  props: {
687
720
  project: {},
@@ -692,97 +725,89 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
692
725
  projectMeta: {}
693
726
  },
694
727
  emits: ["changeComponent"],
695
- setup(e, { emit: t }) {
696
- const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(null), n = computed(() => {
697
- if (o.project)
698
- return o.project.svg;
699
- });
700
- computed(() => {
701
- var u, _;
702
- const y = (_ = (u = o.projectMeta) == null ? void 0 : u.find(
703
- (a) => (a == null ? void 0 : a.meta_key) === "project_img_contain"
704
- )) == null ? void 0 : _.meta_value;
705
- return JSON.parse((y == null ? void 0 : y.toString()) || "false");
706
- });
707
- const f = (y) => {
708
- const u = y.target;
709
- u && (c.value = u);
710
- }, x = (y) => {
711
- var _, a, v;
712
- const u = y.target;
713
- (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));
714
739
  };
715
740
  return watch(
716
- () => c.value,
717
- (y) => {
718
- var _, a, v, l, i, p, m;
719
- if (!y) return;
720
- s.hoverdSvg = y;
721
- const u = y.parentElement;
722
- if (u && (u == null ? void 0 : u.nodeName) === "g") {
723
- const $ = u == null ? void 0 : u.getAttribute("id");
724
- if (!$ || (k.value = ((_ = o.project) == null ? void 0 : _.polygon_data.find((E) => (E == null ? void 0 : E.key) === $)) || null, !k.value)) return;
725
- const h = (a = k.value) == null ? void 0 : a.id;
726
- 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) {
727
752
  case "floor":
728
- const E = (l = o.floors) == null ? void 0 : l.find(
729
- (w) => w.id === h
753
+ const x = (a = e.floors) == null ? void 0 : a.find(
754
+ (y) => y.id === _
730
755
  );
731
- d.value = E;
756
+ i.value = x;
732
757
  break;
733
758
  case "block":
734
- const S = (i = o.blocks) == null ? void 0 : i.find(
735
- (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) === _
736
761
  );
737
- d.value = S;
762
+ i.value = E;
738
763
  break;
739
764
  case "flat":
740
- const g = (p = o.flats) == null ? void 0 : p.find(
741
- (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) === _
742
767
  );
743
- d.value = g;
768
+ i.value = f;
744
769
  break;
745
770
  case "tooltip":
746
- const b = (m = o.actions) == null ? void 0 : m.find(
747
- (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) === _
748
773
  );
749
- d.value = b;
774
+ i.value = g;
750
775
  break;
751
776
  default:
752
- d.value = null;
777
+ i.value = null;
753
778
  break;
754
779
  }
755
780
  } else
756
- k.value = null, d.value = null;
781
+ c.value = null, i.value = null;
757
782
  }
758
- ), (y, u) => {
759
- var _;
783
+ ), ($, h) => {
784
+ var m;
760
785
  return openBlock(), createBlock(_sfc_main$g, {
761
- hoverdData: d.value,
762
- type: (_ = k.value) == null ? void 0 : _.type
786
+ hoverdData: i.value,
787
+ type: (m = c.value) == null ? void 0 : m.type,
788
+ onMouseover: w
763
789
  }, {
764
790
  default: withCtx(() => {
765
- var a, v, l, i, p, m;
791
+ var u, p, a, s, d, v;
766
792
  return [
767
793
  createElementVNode("div", _hoisted_1$c, [
768
794
  createElementVNode("img", {
769
- src: (l = (v = (a = y.project) == null ? void 0 : a.project_image) == null ? void 0 : v[0]) == null ? void 0 : l.url,
795
+ src: (a = (p = (u = $.project) == null ? void 0 : u.project_image) == null ? void 0 : p[0]) == null ? void 0 : a.url,
770
796
  alt: "",
771
797
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
772
- }, null, 8, _hoisted_2$6),
798
+ }, null, 8, _hoisted_2$7),
773
799
  (openBlock(), createElementBlock("div", {
774
- innerHTML: unref(n),
775
- key: unref(n),
800
+ innerHTML: unref(k),
801
+ key: unref(k),
776
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", [
777
803
  {
778
- "hover:[&_path]:ire-fill-[var(--reserved-color)]": d.value && ((i = d.value) == null ? void 0 : i.conf) === "reserved",
779
- "hover:[&_path]:ire-fill-[var(--sold-color)]": d.value && ((p = d.value) == null ? void 0 : p.conf) === "sold",
780
- "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)
781
807
  }
782
808
  ]]),
783
- onMouseover: f,
784
- onClick: x
785
- }, null, 42, _hoisted_3$5))
809
+ onClick: S
810
+ }, null, 10, _hoisted_3$6))
786
811
  ])
787
812
  ];
788
813
  }),
@@ -790,10 +815,10 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
790
815
  }, 8, ["hoverdData", "type"]);
791
816
  };
792
817
  }
793
- }), _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 = {
794
819
  key: 0,
795
820
  class: "label"
796
- }, _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({
797
822
  __name: "PreviewSelect",
798
823
  props: /* @__PURE__ */ mergeModels({
799
824
  data: {},
@@ -806,26 +831,26 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
806
831
  modelModifiers: {}
807
832
  }),
808
833
  emits: ["update:modelValue"],
809
- setup(e) {
810
- const t = useModel(e, "modelValue");
811
- return (r, o) => (openBlock(), createElementBlock("div", _hoisted_1$b, [
812
- r.label ? (openBlock(), createElementBlock("p", _hoisted_2$5, toDisplayString(r.label), 1)) : createCommentVNode("", !0),
813
- 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, [
814
839
  withDirectives(createElementVNode("select", {
815
- "onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s),
840
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => o.value = n),
816
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"
817
842
  }, [
818
- (openBlock(!0), createElementBlock(Fragment, null, renderList(r.data, (s) => {
819
- var c, d;
843
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(r.data, (n) => {
844
+ var l, i;
820
845
  return openBlock(), createElementBlock("option", {
821
- value: s.value,
822
- 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"))
823
- }, 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);
824
849
  }), 256))
825
850
  ], 512), [
826
- [vModelSelect, t.value]
851
+ [vModelSelect, o.value]
827
852
  ]),
828
- o[1] || (o[1] = createElementVNode("svg", {
853
+ e[1] || (e[1] = createElementVNode("svg", {
829
854
  xmlns: "http://www.w3.org/2000/svg",
830
855
  fill: "none",
831
856
  viewBox: "0 0 24 24",
@@ -849,23 +874,23 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
849
874
  viewBox: "0 0 32 32",
850
875
  fill: "none"
851
876
  };
852
- function _sfc_render$3(e, t) {
853
- 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] = [
854
879
  createElementVNode("path", {
855
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",
856
881
  fill: "#44546F"
857
882
  }, null, -1)
858
883
  ]));
859
884
  }
860
- 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({
861
886
  __name: "BackButton",
862
- setup(e) {
863
- return (t, r) => (openBlock(), createElementBlock("div", _hoisted_1$9, [
887
+ setup(t) {
888
+ return (o, r) => (openBlock(), createElementBlock("div", _hoisted_1$9, [
864
889
  createVNode(ArrowRight, { class: "ire-w-6 ire-rotate-180 group-hover:[&_path]:ire-fill-white" }),
865
- 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)
866
891
  ]));
867
892
  }
868
- }), _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({
869
894
  __name: "FloorPreview",
870
895
  props: {
871
896
  flats: {},
@@ -875,149 +900,149 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
875
900
  actions: {}
876
901
  },
877
902
  emits: ["changeComponent"],
878
- setup(e, { emit: t }) {
879
- const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(), n = ref(null), f = ref(), x = ref(), y = computed$1(() => {
880
- var i;
881
- if ((i = o.floor) != null && i.svg)
882
- return o.floor.svg;
883
- }), u = computed$1(() => o.floors.filter(
884
- (i) => {
885
- 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;
886
911
  return (
887
912
  // floorItem.conf !== "reserved" &&
888
913
  // floorItem.conf !== "sold" &&
889
- (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)
890
915
  );
891
916
  }
892
- ).map((i) => {
893
- var m, $;
894
- const p = (m = o.blocks) == null ? void 0 : m.find(
895
- (h) => {
896
- var E;
897
- 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());
898
923
  }
899
924
  );
900
925
  return {
901
- 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 : ""),
902
- 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
903
928
  };
904
- }).sort((i, p) => +(i == null ? void 0 : i.title) - +(p == null ? void 0 : p.title)) || []), _ = (i) => {
905
- const p = i.target;
906
- p && (d.value = p);
907
- }, a = (i) => {
908
- var m, $, h;
909
- const p = i.target;
910
- (p == null ? void 0 : p.nodeName) === "path" && (n.value && "conf" in n.value && (((m = n.value) == null ? void 0 : m.conf) === "sold" || (($ = n.value) == null ? void 0 : $.conf) === "reserved") || r("changeComponent", ((h = k.value) == null ? void 0 : h.type) || "", n.value));
911
- }, v = () => {
912
- var i;
913
- c.value && ((i = c.value) == null ? void 0 : i.querySelectorAll("g")).forEach((m) => {
914
- var E, S, g, b, w, V;
915
- const $ = m == null ? void 0 : m.getAttribute("id"), h = (S = (E = o.floor) == null ? void 0 : E.polygon_data) == null ? void 0 : S.find(
916
- (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
917
942
  );
918
- if (o.flats)
919
- if ((g = o.floor) != null && g.conf)
920
- 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) || "");
921
946
  else {
922
- const C = (w = o.flats) == null ? void 0 : w.find(
923
- (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)
924
949
  );
925
- 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()) || "");
926
951
  }
927
952
  });
928
- }, l = () => {
929
- var i;
930
- (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);
931
956
  };
932
957
  return watch(
933
- () => d.value,
934
- (i) => {
935
- var m, $, h, E, S, g;
936
- if (!i) return;
937
- s.hoverdSvg = i;
938
- const p = i == null ? void 0 : i.parentElement;
939
- if (p && (p == null ? void 0 : p.nodeName) === "g") {
940
- const b = p.getAttribute("id");
941
- 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;
942
- if (((h = k.value) == null ? void 0 : h.type) === "flat") {
943
- 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(
944
969
  (V) => {
945
970
  var C;
946
- 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);
947
972
  }
948
973
  );
949
- n.value = w ?? null;
950
- } else if (((S = k.value) == null ? void 0 : S.type) === "tooltip") {
951
- 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(
952
977
  (V) => {
953
978
  var C;
954
- 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);
955
980
  }
956
981
  );
957
- n.value = w ?? null;
982
+ k.value = y ?? null;
958
983
  } else
959
- n.value = null;
984
+ k.value = null;
960
985
  } else
961
- k.value = null;
986
+ c.value = null;
962
987
  }
963
988
  ), watch(
964
- () => f.value,
989
+ () => w.value,
965
990
  () => {
966
- var p;
967
- const i = (p = o.floors) == null ? void 0 : p.find(
968
- (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)
969
994
  );
970
- i != null && i.conf || (i && r("changeComponent", "floor", i), setTimeout(() => {
971
- v();
995
+ s != null && s.conf || (s && r("changeComponent", "floor", s), setTimeout(() => {
996
+ p();
972
997
  }, 0));
973
998
  }
974
999
  ), onMounted(() => {
975
- var i, p, m;
976
- x.value = (i = o.blocks) == null ? void 0 : i.find(
977
- ($) => {
978
- var h, E;
979
- 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());
980
1005
  }
981
- ), f.value = (m = (p = u.value) == null ? void 0 : p.find(
982
- ($) => {
983
- var h;
984
- 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);
985
1010
  }
986
- )) == null ? void 0 : m.value, v();
987
- }), (i, p) => {
988
- var m;
1011
+ )) == null ? void 0 : v.value, p();
1012
+ }), (s, d) => {
1013
+ var v;
989
1014
  return openBlock(), createBlock(_sfc_main$g, {
990
- hoverdData: n.value,
991
- 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
992
1018
  }, {
993
1019
  header: withCtx(() => [
994
- createVNode(_sfc_main$c, { onClick: l }),
1020
+ createVNode(_sfc_main$c, { onClick: a }),
995
1021
  createElementVNode("div", _hoisted_1$8, [
996
1022
  createVNode(_sfc_main$e, {
997
- modelValue: f.value,
998
- "onUpdate:modelValue": p[0] || (p[0] = ($) => f.value = $),
999
- data: u.value
1023
+ modelValue: w.value,
1024
+ "onUpdate:modelValue": d[0] || (d[0] = (b) => w.value = b),
1025
+ data: h.value
1000
1026
  }, null, 8, ["modelValue", "data"])
1001
1027
  ])
1002
1028
  ]),
1003
1029
  default: withCtx(() => {
1004
- var $, h, E;
1030
+ var b, _, x;
1005
1031
  return [
1006
1032
  createElementVNode("div", _hoisted_2$4, [
1007
1033
  createElementVNode("img", {
1008
- 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) || "",
1009
1035
  alt: "",
1010
1036
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
1011
- }, null, 8, _hoisted_3$3),
1037
+ }, null, 8, _hoisted_3$4),
1012
1038
  (openBlock(), createElementBlock("div", {
1013
1039
  ref_key: "svgRef",
1014
- ref: c,
1015
- innerHTML: y.value,
1016
- key: y.value,
1040
+ ref: l,
1041
+ innerHTML: $.value,
1042
+ key: $.value,
1017
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",
1018
- onMouseover: _,
1019
- onClick: a
1020
- }, null, 40, _hoisted_4$3))
1044
+ onClick: u
1045
+ }, null, 8, _hoisted_4$3))
1021
1046
  ])
1022
1047
  ];
1023
1048
  }),
@@ -1032,8 +1057,8 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
1032
1057
  fill: "none",
1033
1058
  xmlns: "http://www.w3.org/2000/svg"
1034
1059
  };
1035
- function _sfc_render$2(e, t) {
1036
- 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] = [
1037
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)
1038
1063
  ]));
1039
1064
  }
@@ -1044,8 +1069,8 @@ const FlatIcon = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_rende
1044
1069
  fill: "none",
1045
1070
  xmlns: "http://www.w3.org/2000/svg"
1046
1071
  };
1047
- function _sfc_render$1(e, t) {
1048
- 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] = [
1049
1074
  createElementVNode("path", {
1050
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",
1051
1076
  stroke: "#222222",
@@ -1066,67 +1091,55 @@ function _sfc_render$1(e, t) {
1066
1091
  }, null, -1)
1067
1092
  ]));
1068
1093
  }
1069
- 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 = {
1070
1095
  key: 0,
1071
1096
  class: "ire-ml-4 ire-flex ire-items-center ire-gap-1"
1072
- }, _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 = {
1073
1098
  key: 0,
1074
1099
  class: "ire-text-center"
1075
- }, _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 = {
1076
1101
  key: 0,
1077
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"
1078
- }, _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 = {
1079
1104
  key: 1,
1080
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"
1081
- }, _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 = {
1082
1107
  key: 1,
1083
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"
1084
- }, _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 = {
1085
1110
  key: 2,
1086
1111
  class: "border-b ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b-gray-200 ire-py-2"
1087
- }, _hoisted_23 = {
1112
+ }, _hoisted_27 = {
1088
1113
  key: 0,
1089
1114
  class: "ire-whitespace-nowrap !ire-text-2xl"
1090
- }, _hoisted_24 = {
1115
+ }, _hoisted_28 = {
1091
1116
  key: 1,
1092
- class: "ire-whitespace-nowrap"
1093
- }, _hoisted_25 = { class: "!ire-text-xs ire-line-through" }, _hoisted_26 = { class: "!ire-text-2xl" }, _sfc_main$8 = /* @__PURE__ */ defineComponent({
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({
1094
1119
  __name: "FlatPreview",
1095
1120
  props: {
1096
1121
  flat: {},
1097
1122
  floors: {}
1098
1123
  },
1099
1124
  emits: ["changeComponent"],
1100
- setup(e, { emit: t }) {
1101
- const r = t, o = e, s = ref(!0), c = ref(0), d = computed$1(() => {
1102
- var f, x, y, u, _, a;
1103
- const n = 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;
1104
- return ["I", "II", "III"].slice(0, n);
1105
- }), k = () => {
1106
- var f;
1107
- const n = (f = o.floors) == null ? void 0 : f.find(
1108
- (x) => {
1109
- var y, u, _, a, v, l;
1110
- 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()) === ((l = o.flat) == null ? void 0 : l.block_id) : !(x != null && x.block_id));
1111
- }
1112
- );
1113
- n ? r("changeComponent", "floor", n) : r("changeComponent", "project", null);
1114
- };
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
+ });
1115
1131
  return watch(
1116
- () => s.value,
1132
+ () => e.value,
1117
1133
  () => {
1118
- c.value = 0;
1134
+ n.value = 0;
1119
1135
  }
1120
1136
  ), onMounted(() => {
1121
- var n, f;
1122
- (f = (n = o.flat) == null ? void 0 : n.type) != null && f.image_2d || (s.value = !1);
1123
- }), (n, 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, [
1124
1140
  createVNode(_sfc_main$g, { "hoverd-data": null }, {
1125
- header: withCtx(() => [
1126
- createVNode(_sfc_main$c, { onClick: k })
1127
- ]),
1128
1141
  default: withCtx(() => {
1129
- var x, y, u, _, a, v, l, i, p, m, $, h, E, S, g, b, w, V, C, D, R, j, N, B, P, O, F, A, 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;
1130
1143
  return [
1131
1144
  createElementVNode("div", _hoisted_1$5, [
1132
1145
  createElementVNode("div", _hoisted_2$3, [
@@ -1135,16 +1148,16 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
1135
1148
  mode: "out-in"
1136
1149
  }, {
1137
1150
  default: withCtx(() => {
1138
- 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;
1139
1152
  return [
1140
- s.value && ((z = (T = (L = (M = n.flat) == null ? void 0 : M.type) == null ? void 0 : L.image_2d) == null ? void 0 : T[c.value]) != null && z.url) ? (openBlock(), createElementBlock("img", {
1141
- key: (U = (K = (Y = (X = n.flat) == null ? void 0 : X.type) == null ? void 0 : Y.image_2d) == null ? void 0 : K[c.value]) == null ? void 0 : U.url,
1142
- src: (Q = (J = (Z = (q = n.flat) == null ? void 0 : q.type) == null ? void 0 : Z.image_2d) == null ? void 0 : J[c.value]) == null ? void 0 : Q.url,
1143
- class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
1144
- }, null, 8, _hoisted_3$2)) : (oe = (te = (ee = (G = n.flat) == null ? void 0 : G.type) == null ? void 0 : ee.image_3d) == null ? void 0 : te[c.value]) != null && oe.url ? (openBlock(), createElementBlock("img", {
1145
- src: (le = (se = (ie = (re = n.flat) == null ? void 0 : re.type) == null ? void 0 : ie.image_3d) == null ? void 0 : se[c.value]) == null ? void 0 : le.url,
1146
- key: (de = (ce = (ae = (ne = n.flat) == null ? void 0 : ne.type) == null ? void 0 : ae.image_3d) == null ? void 0 : ce[c.value]) == null ? void 0 : de.url,
1147
- 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]"
1148
1161
  }, null, 8, _hoisted_4$2)) : createCommentVNode("", !0)
1149
1162
  ];
1150
1163
  }),
@@ -1152,93 +1165,93 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
1152
1165
  }),
1153
1166
  createElementVNode("div", _hoisted_5, [
1154
1167
  createElementVNode("div", _hoisted_6, [
1155
- (_ = (u = (y = (x = n.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", {
1156
1169
  key: 0,
1157
- 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 }]),
1158
- 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)
1159
1172
  }, [
1160
- createVNode(FlatIcon, {
1161
- class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": s.value }])
1162
- }, 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
+ ]),
1163
1178
  createElementVNode("div", {
1164
1179
  class: normalizeClass(["group-hover:!ire-text-white", {
1165
- "!ire-text-white": s.value,
1166
- "!ire-text-black": !s.value
1180
+ "!ire-text-white": !e.value,
1181
+ "!ire-text-black": e.value
1167
1182
  }])
1168
- }, " 2D plan ", 2)
1183
+ }, toDisplayString(unref(tr)("3d plan")), 3)
1169
1184
  ], 2)) : createCommentVNode("", !0),
1170
- (i = (l = (v = (a = n.flat) == null ? void 0 : a.type) == null ? void 0 : v.image_3d) == null ? void 0 : l[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", {
1171
1186
  key: 1,
1172
- 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 }]),
1173
- 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)
1174
1189
  }, [
1175
- createElementVNode("div", null, [
1176
- createVNode(Cube, {
1177
- class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !s.value }])
1178
- }, null, 8, ["class"])
1179
- ]),
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"]),
1180
1193
  createElementVNode("div", {
1181
1194
  class: normalizeClass(["group-hover:!ire-text-white", {
1182
- "!ire-text-white": !s.value,
1183
- "!ire-text-black": s.value
1195
+ "!ire-text-white": e.value,
1196
+ "!ire-text-black": !e.value
1184
1197
  }])
1185
- }, " 3D plan ", 2)
1198
+ }, toDisplayString(unref(tr)("2d plan")), 3)
1186
1199
  ], 2)) : createCommentVNode("", !0)
1187
1200
  ]),
1188
- ((p = d.value) == null ? void 0 : p.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
1189
- (openBlock(!0), createElementBlock(Fragment, null, renderList(d.value, (M, L) => (openBlock(), createElementBlock("div", {
1190
- 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,
1191
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", {
1192
- "ire-bg-black ire-text-white": c.value === L
1205
+ "ire-bg-black ire-text-white": n.value === j
1193
1206
  }]),
1194
- onClick: (T) => c.value = L
1195
- }, toDisplayString(M), 11, _hoisted_8))), 128))
1207
+ onClick: (L) => n.value = j
1208
+ }, toDisplayString(R), 11, _hoisted_8))), 128))
1196
1209
  ])) : createCommentVNode("", !0)
1197
1210
  ])
1198
1211
  ]),
1199
1212
  createElementVNode("div", _hoisted_9, [
1200
1213
  createElementVNode("div", _hoisted_10, [
1201
- createElementVNode("div", _hoisted_11, toDisplayString((m = n.flat) == null ? void 0 : m.flat_number), 1),
1202
- 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)
1203
1216
  ]),
1204
- (h = ($ = n.flat) == null ? void 0 : $.type) != null && h.title || (S = (E = n.flat) == null ? void 0 : E.type) != null && S.teaser ? (openBlock(), createElementBlock("div", _hoisted_12, [
1205
- createElementVNode("div", _hoisted_13, toDisplayString((b = (g = n.flat) == null ? void 0 : g.type) == null ? void 0 : b.title), 1),
1206
- createElementVNode("div", _hoisted_14, toDisplayString((V = (w = n.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)
1207
1220
  ])) : createCommentVNode("", !0),
1208
- createElementVNode("div", _hoisted_15, [
1209
- (C = n.flat) != null && C.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
1210
- createElementVNode("div", _hoisted_17, toDisplayString((D = n.flat) == null ? void 0 : D.floor_number), 1),
1211
- 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)
1212
1225
  ])) : createCommentVNode("", !0),
1213
- (j = (R = n.flat) == null ? void 0 : R.type) != null && j.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
1214
- createElementVNode("div", _hoisted_19, toDisplayString((N = n.flat) == null ? void 0 : N.type.rooms_count), 1),
1215
- 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)
1216
1229
  ])) : createCommentVNode("", !0)
1217
1230
  ]),
1218
- (P = (B = n.flat) == null ? void 0 : B.type) != null && P.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
1219
- createElementVNode("div", _hoisted_21, [
1220
- createTextVNode(toDisplayString(Number((O = n.flat) == null ? void 0 : O.type.area_m2).toLocaleString("fr-FR")) + " ", 1),
1221
- 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" }, [
1222
1235
  createTextVNode(" M "),
1223
1236
  createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
1224
1237
  ], -1))
1225
1238
  ]),
1226
- 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)
1227
1240
  ])) : createCommentVNode("", !0),
1228
- (F = n.flat) != null && F.price ? (openBlock(), createElementBlock("div", _hoisted_22, [
1241
+ (P = i.flat) != null && P.price ? (openBlock(), createElementBlock("div", _hoisted_26, [
1229
1242
  createElementVNode("div", null, [
1230
- (A = n.flat) != null && A.offer_price ? (openBlock(), createElementBlock("div", _hoisted_24, [
1231
- createElementVNode("div", _hoisted_25, toDisplayString(Number((H = n.flat) == null ? void 0 : H.price).toLocaleString("fr-FR")), 1),
1232
- createElementVNode("div", _hoisted_26, [
1233
- createTextVNode(toDisplayString(Number((W = n.flat) == null ? void 0 : W.offer_price).toLocaleString("fr-FR")) + " ", 1),
1234
- f[8] || (f[8] = createElementVNode("span", null, "$", -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))
1235
1248
  ])
1236
- ])) : (openBlock(), createElementBlock("div", _hoisted_23, [
1237
- createTextVNode(toDisplayString(Number((I = n.flat) == null ? void 0 : I.price).toLocaleString("fr-FR")) + " ", 1),
1238
- 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))
1239
1252
  ]))
1240
1253
  ]),
1241
- 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)
1242
1255
  ])) : createCommentVNode("", !0)
1243
1256
  ])
1244
1257
  ])
@@ -1256,31 +1269,36 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
1256
1269
  height: "20",
1257
1270
  viewBox: "0 0 50 50"
1258
1271
  };
1259
- function _sfc_render(e, t) {
1260
- 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] = [
1261
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)
1262
1275
  ]));
1263
1276
  }
1264
- 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({
1265
1278
  __name: "PreviewModal",
1266
1279
  emits: ["close"],
1267
- setup(e) {
1268
- 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, [
1269
1287
  createElementVNode("div", {
1270
1288
  class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full ire-bg-black/40 ire-transition-all",
1271
- onClick: r[0] || (r[0] = (o) => t.$emit("close"))
1289
+ onClick: r[0] || (r[0] = (e) => o.$emit("close"))
1272
1290
  }),
1273
1291
  createElementVNode("div", _hoisted_2$2, [
1274
- createElementVNode("div", _hoisted_3$1, [
1275
- createElementVNode("div", {
1276
- 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",
1277
- onClick: r[1] || (r[1] = (o) => t.$emit("close"))
1278
- }, [
1279
- createVNode(Close)
1280
- ])
1281
- ]),
1282
- createElementVNode("div", _hoisted_4$1, [
1283
- 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")
1284
1302
  ])
1285
1303
  ])
1286
1304
  ]));
@@ -1290,31 +1308,31 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1290
1308
  props: {
1291
1309
  editor: {}
1292
1310
  },
1293
- setup(e) {
1294
- return (t, r) => (openBlock(), createElementBlock("div", {
1311
+ setup(t) {
1312
+ return (o, r) => (openBlock(), createElementBlock("div", {
1295
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",
1296
- innerHTML: t.editor
1314
+ innerHTML: o.editor
1297
1315
  }, null, 8, _hoisted_1$2));
1298
1316
  }
1299
- }), _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({
1300
1318
  __name: "ActionModal",
1301
1319
  props: {
1302
1320
  modalData: {}
1303
1321
  },
1304
- setup(e) {
1305
- return (t, r) => {
1306
- var o, s, c, d, k, n, f, x, y, u, _, a;
1307
- return openBlock(), createElementBlock("div", null, [
1308
- 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),
1309
1327
  createVNode(_sfc_main$5, {
1310
- 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
1311
1329
  }, null, 8, ["editor"]),
1312
- (x = (f = (n = (k = t.modalData) == null ? void 0 : k.modalObject) == null ? void 0 : n.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", {
1313
1331
  key: 0,
1314
- 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,
1315
1333
  alt: "",
1316
1334
  class: "ire-mt-5 ire-h-[400px] ire-w-full ire-object-contain"
1317
- }, null, 8, _hoisted_2$1)) : createCommentVNode("", !0)
1335
+ }, null, 8, _hoisted_3$1)) : createCommentVNode("", !0)
1318
1336
  ]);
1319
1337
  };
1320
1338
  }
@@ -1327,101 +1345,101 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1327
1345
  actions: {}
1328
1346
  },
1329
1347
  emits: ["changeComponent"],
1330
- setup(e, { emit: t }) {
1331
- const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(), n = ref(), f = computed$1(() => {
1332
- var u, _;
1333
- if ((u = o.block) != null && u.svg)
1334
- return (_ = o.block) == null ? void 0 : _.svg;
1335
- }), x = (u) => {
1336
- const _ = u.target;
1337
- _ && (d.value = _);
1338
- }, y = (u) => {
1339
- var a, v, l;
1340
- const _ = u.target;
1341
- (_ == null ? void 0 : _.nodeName) === "path" && (((a = n.value) == null ? void 0 : a.conf) === "sold" || ((v = n.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(
1342
1360
  "changeComponent",
1343
- ((l = k.value) == null ? void 0 : l.type) || "",
1344
- n.value
1361
+ ((a = c.value) == null ? void 0 : a.type) || "",
1362
+ k.value
1345
1363
  ));
1346
1364
  };
1347
1365
  return watch(
1348
- () => d.value,
1349
- (u) => {
1350
- var a, v, l, i, p, m, $, h;
1351
- if (!u) return;
1352
- s.hoverdSvg = u;
1353
- const _ = u == null ? void 0 : u.parentElement;
1354
- if (_ && (_ == null ? void 0 : _.nodeName) === "g") {
1355
- const E = _ == null ? void 0 : _.getAttribute("id");
1356
- 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;
1357
- if (((l = k.value) == null ? void 0 : l.type) === "floor") {
1358
- const S = (i = o.floors) == null ? void 0 : i.find(
1359
- (g) => {
1360
- var b;
1361
- 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);
1362
1380
  }
1363
1381
  );
1364
- n.value = S;
1365
- } else if (((p = k.value) == null ? void 0 : p.type) === "flat") {
1366
- const S = (m = o.flats) == null ? void 0 : m.find(
1367
- (g) => {
1368
- var b;
1369
- 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);
1370
1388
  }
1371
1389
  );
1372
- n.value = S;
1373
- } else if ((($ = k.value) == null ? void 0 : $.type) === "tooltip") {
1374
- const S = (h = o.actions) == null ? void 0 : h.find(
1375
- (g) => {
1376
- var b;
1377
- 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);
1378
1396
  }
1379
1397
  );
1380
- n.value = S;
1398
+ k.value = E;
1381
1399
  } else
1382
- n.value = null;
1400
+ k.value = null;
1383
1401
  } else
1384
- k.value = null, n.value = null;
1402
+ c.value = null, k.value = null;
1385
1403
  }
1386
- ), (u, _) => {
1387
- var a;
1404
+ ), (h, m) => {
1405
+ var u;
1388
1406
  return openBlock(), createBlock(_sfc_main$g, {
1389
- hoverdData: n.value,
1390
- 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
1391
1410
  }, {
1392
1411
  header: withCtx(() => {
1393
- var v;
1412
+ var p;
1394
1413
  return [
1395
1414
  createVNode(_sfc_main$c, {
1396
- onClick: _[0] || (_[0] = (l) => u.$emit("changeComponent", "project", null))
1415
+ onClick: m[0] || (m[0] = (a) => h.$emit("changeComponent", "project", null))
1397
1416
  }),
1398
- 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)
1399
1418
  ];
1400
1419
  }),
1401
1420
  default: withCtx(() => {
1402
- var v, l, i, p, m, $;
1421
+ var p, a, s, d, v, b;
1403
1422
  return [
1404
1423
  createElementVNode("div", _hoisted_2, [
1405
1424
  createElementVNode("img", {
1406
- src: ((i = (l = (v = u.block) == null ? void 0 : v.block_image) == null ? void 0 : l[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) || "",
1407
1426
  alt: "",
1408
1427
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
1409
1428
  }, null, 8, _hoisted_3),
1410
1429
  (openBlock(), createElementBlock("div", {
1411
1430
  ref_key: "svgRef",
1412
- ref: c,
1413
- innerHTML: f.value,
1414
- key: f.value,
1431
+ ref: l,
1432
+ innerHTML: w.value,
1433
+ key: w.value,
1415
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", [
1416
1435
  {
1417
- "hover:[&_path]:ire-fill-[var(--reserved-color)]": ((p = n.value) == null ? void 0 : p.conf) === "reserved",
1418
- "hover:[&_path]:ire-fill-[var(--sold-color)]": ((m = n.value) == null ? void 0 : m.conf) === "sold",
1419
- "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !(($ = n.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)
1420
1439
  }
1421
1440
  ]]),
1422
- onMouseover: x,
1423
- onClick: y
1424
- }, null, 42, _hoisted_4))
1441
+ onClick: $
1442
+ }, null, 10, _hoisted_4))
1425
1443
  ])
1426
1444
  ];
1427
1445
  }),
@@ -1431,27 +1449,27 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1431
1449
  }
1432
1450
  }), _sfc_main$2 = /* @__PURE__ */ defineComponent({
1433
1451
  __name: "GlobalProvider",
1434
- setup(e) {
1435
- const t = useGlobalStore(), r = ref(0), o = ref(0), s = ref(null);
1436
- return document.addEventListener("mousemove", (c) => {
1437
- var E;
1438
- const d = document.querySelector(".tooltip-2"), k = ((E = t.hoverdSvg) == null ? void 0 : E.nodeName) === "path" ? t.hoverdSvg : null;
1439
- if (!s.value || !d || !k) return;
1440
- 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";
1441
1459
  const {
1442
- bottom: n,
1443
- height: f,
1444
- left: x,
1445
- right: y,
1446
- top: u,
1447
- width: _
1448
- } = s.value.getBoundingClientRect(), { bottom: a, left: v } = k.getBoundingClientRect(), { height: l, width: i } = d.getBoundingClientRect(), p = y - _ / 2, m = n - f / 2, $ = v > p, h = a > m;
1449
- r.value = c.clientX - x - ($ ? i : -20), o.value = c.clientY - u - (h ? l : -20);
1450
- }), 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", {
1451
1469
  ref_key: "canvasRef",
1452
- ref: s
1470
+ ref: n
1453
1471
  }, [
1454
- renderSlot(c.$slots, "default")
1472
+ renderSlot(l.$slots, "default")
1455
1473
  ], 512));
1456
1474
  }
1457
1475
  }), _sfc_main$1 = /* @__PURE__ */ defineComponent({
@@ -1460,25 +1478,25 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1460
1478
  shortcodeDataProps: {}
1461
1479
  },
1462
1480
  setup(__props) {
1463
- var e, t, r, o, s, c, d, k, n, f, x, y, u, _;
1464
- const props = __props, getMeta = (a) => props.shortcodeDataProps.meta.find(
1465
- (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
1466
1484
  ), constants = ref({
1467
- PREVIEW_PATH_COLOR: ((e = getMeta("path_color")) == null ? void 0 : e.meta_value) || "rgba(255, 255, 255, 0.3)",
1468
- 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)",
1469
1487
  PREVIEW_RESERVED_COLOR: ((r = getMeta("reserved_color")) == null ? void 0 : r.meta_value) || "rgba(255, 247, 89, 0.53)",
1470
- PREVIEW_SOLD_COLOR: ((o = getMeta("sold_color")) == null ? void 0 : o.meta_value) || "rgba(219, 64, 64, 0.45)",
1471
- PREVIEW_STROKE_COLOR: ((s = getMeta("stroke_color")) == null ? void 0 : s.meta_value) || "rgba(0, 0, 0, 1)",
1472
- PREVIEW_STROKE_WIDTH: +((c = getMeta("stroke_width")) == null ? void 0 : c.meta_value) || 1,
1473
- 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
1474
1492
  }), colors = reactive({
1475
- path: (k = constants.value) == null ? void 0 : k.PREVIEW_PATH_COLOR,
1476
- path_hover: (n = constants.value) == null ? void 0 : n.PREVIEW_PATH_HOVER_COLOR,
1477
- reserved: (f = constants.value) == null ? void 0 : f.PREVIEW_RESERVED_COLOR,
1478
- sold: (x = constants.value) == null ? void 0 : x.PREVIEW_SOLD_COLOR,
1479
- stroke_color: (y = constants.value) == null ? void 0 : y.PREVIEW_STROKE_COLOR,
1480
- stroke_width: (u = constants.value) == null ? void 0 : u.PREVIEW_STROKE_WIDTH,
1481
- 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
1482
1500
  }), cssVariables = computed$1(() => ({
1483
1501
  "--reserved-color": colors.reserved,
1484
1502
  "--sold-color": colors.sold,
@@ -1489,31 +1507,31 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1489
1507
  "--border-radius": colors.border_radius + "px"
1490
1508
  })), shortcodeData = ref(props.shortcodeDataProps), flow = ref(
1491
1509
  "projectFlow"
1492
- ), hoveredData = ref(), showModal = ref(!1), activeBlock = ref(), activeFloor = ref(), project = computed$1(() => {
1493
- var a;
1510
+ ), hoveredData = ref(), showModal = ref(!1), activeBlock = ref(), activeFloor = ref(), showFlatModal = ref(), project = computed$1(() => {
1511
+ var u;
1494
1512
  if (shortcodeData.value)
1495
- return (a = shortcodeData.value) == null ? void 0 : a.project;
1513
+ return (u = shortcodeData.value) == null ? void 0 : u.project;
1496
1514
  }), floors = computed$1(() => {
1497
- var a, v;
1515
+ var u, p;
1498
1516
  if (shortcodeData.value)
1499
- return (a = shortcodeData.value.floors) == null || a.forEach((l) => {
1500
- var m, $;
1501
- const i = ($ = (m = shortcodeData.value) == null ? void 0 : m.flats) == null ? void 0 : $.filter((h) => {
1502
- var E;
1503
- return (h == null ? void 0 : h.floor_number) !== ((E = l == null ? void 0 : l.floor_number) == null ? void 0 : E.toString()) ? !1 : l != null && l.polygon_data ? Object == null ? void 0 : Object.values(l == null ? void 0 : l.polygon_data).some(
1504
- (g) => {
1505
- var b;
1506
- return g != null && g.type && (g == null ? void 0 : g.type) === "flat" && (g == null ? void 0 : g.id) === (h == null ? void 0 : h.id) ? l != null && l.block_id ? (h == null ? void 0 : h.block_id) === ((b = l == null ? void 0 : l.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;
1507
1525
  }
1508
1526
  ) : !1;
1509
1527
  });
1510
- l.flats = i;
1511
- const { conf: p } = l || {};
1512
- if (i != null && i.length && !p) {
1513
- 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");
1514
- h ? l.conf = "reserved" : E && (l.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");
1515
1533
  }
1516
- }), (v = shortcodeData.value) == null ? void 0 : v.floors;
1534
+ }), (p = shortcodeData.value) == null ? void 0 : p.floors;
1517
1535
  }), blocks = computed$1(() => {
1518
1536
  if (shortcodeData.value)
1519
1537
  return shortcodeData.value.blocks;
@@ -1521,27 +1539,27 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1521
1539
  if (shortcodeData.value)
1522
1540
  return shortcodeData.value.types;
1523
1541
  }), flats = computed$1(() => {
1524
- var a, v;
1542
+ var u, p;
1525
1543
  if (shortcodeData.value)
1526
- return (v = (a = shortcodeData.value) == null ? void 0 : a.flats) == null ? void 0 : v.map((l) => {
1527
- var i;
1528
- if (l != null && l.use_type || !(l != null && l.type)) {
1529
- const p = (i = types.value) == null ? void 0 : i.find((m) => (m == null ? void 0 : m.id) === (l == null ? void 0 : l.type_id));
1530
- p && (l.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);
1531
1549
  }
1532
- return l;
1550
+ return a;
1533
1551
  });
1534
1552
  }), actions = computed$1(() => {
1535
- var a;
1553
+ var u;
1536
1554
  if (shortcodeData.value)
1537
- return (a = shortcodeData.value) == null ? void 0 : a.actions;
1555
+ return (u = shortcodeData.value) == null ? void 0 : u.actions;
1538
1556
  }), projectMeta = computed$1(() => {
1539
- var a;
1557
+ var u;
1540
1558
  if (shortcodeData.value)
1541
- return (a = shortcodeData.value) == null ? void 0 : a.meta;
1542
- }), getColorMeta = (a) => {
1543
- var v, l;
1544
- return (l = (v = projectMeta.value) == null ? void 0 : v.find((i) => (i == null ? void 0 : i.meta_key) === a)) == null ? void 0 : l.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;
1545
1563
  }, changeRoute = (flowType, polygonItem) => {
1546
1564
  switch (flowType) {
1547
1565
  case "project":
@@ -1554,7 +1572,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1554
1572
  flow.value = "blockFlow", hoveredData.value = polygonItem, activeBlock.value = polygonItem;
1555
1573
  break;
1556
1574
  case "flat":
1557
- flow.value = "flatFlow", hoveredData.value = polygonItem;
1575
+ showFlatModal.value = !0, hoveredData.value = polygonItem;
1558
1576
  break;
1559
1577
  case "tooltip":
1560
1578
  const actionData = polygonItem == null ? void 0 : polygonItem.data;
@@ -1568,8 +1586,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1568
1586
  else if ((actionData == null ? void 0 : actionData.actionType) === "script")
1569
1587
  try {
1570
1588
  eval(actionData == null ? void 0 : actionData.script);
1571
- } catch (a) {
1572
- console.error("Error executing script:", a);
1589
+ } catch (u) {
1590
+ console.error("Error executing script:", u);
1573
1591
  }
1574
1592
  break;
1575
1593
  }
@@ -1577,18 +1595,20 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1577
1595
  return watch(
1578
1596
  () => projectMeta.value,
1579
1597
  () => {
1580
- const a = getColorMeta("path_color"), v = getColorMeta("path_hover_color"), l = getColorMeta("reserved_color"), i = getColorMeta("sold_color"), p = getColorMeta("stroke_color"), m = getColorMeta("stroke_width");
1581
- a && (colors.path = a.toString()), v && (colors.path_hover = v.toString()), l && (colors.reserved = l.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));
1582
1600
  }
1583
- ), (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" }, {
1584
1602
  default: withCtx(() => [
1585
1603
  createVNode(Transition, {
1586
1604
  name: "ire-fade-in-out",
1587
- mode: "out-in",
1588
- style: normalizeStyle(cssVariables.value)
1605
+ mode: "out-in"
1589
1606
  }, {
1590
1607
  default: withCtx(() => [
1591
- shortcodeData.value ? (openBlock(), createElementBlock("div", { key: flow.value }, [
1608
+ shortcodeData.value ? (openBlock(), createElementBlock("div", {
1609
+ key: flow.value,
1610
+ style: normalizeStyle(cssVariables.value)
1611
+ }, [
1592
1612
  flow.value === "projectFlow" ? (openBlock(), createBlock(_sfc_main$f, {
1593
1613
  key: 0,
1594
1614
  project: project.value,
@@ -1597,14 +1617,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1597
1617
  projectMeta: projectMeta.value,
1598
1618
  blocks: blocks.value,
1599
1619
  actions: actions.value,
1600
- onChangeComponent: v[0] || (v[0] = (l, i) => changeRoute(l, i))
1620
+ onChangeComponent: p[0] || (p[0] = (a, s) => changeRoute(a, s))
1601
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, {
1602
1622
  key: 1,
1603
1623
  block: activeBlock.value,
1604
1624
  flats: flats.value,
1605
1625
  floors: floors.value,
1606
1626
  actions: actions.value,
1607
- onChangeComponent: v[1] || (v[1] = (l, i) => changeRoute(l, i))
1627
+ onChangeComponent: p[1] || (p[1] = (a, s) => changeRoute(a, s))
1608
1628
  }, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$b, {
1609
1629
  key: 2,
1610
1630
  flats: flats.value,
@@ -1612,17 +1632,35 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1612
1632
  floors: floors.value,
1613
1633
  blocks: blocks.value,
1614
1634
  actions: actions.value,
1615
- onChangeComponent: v[2] || (v[2] = (l, i) => changeRoute(l, i))
1616
- }, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : flow.value === "flatFlow" ? (openBlock(), createBlock(_sfc_main$8, {
1617
- key: 3,
1618
- flat: hoveredData.value,
1619
- floors: floors.value,
1620
- onChangeComponent: v[3] || (v[3] = (l, i) => changeRoute(l, i))
1621
- }, null, 8, ["flat", "floors"])) : createCommentVNode("", !0)
1622
- ])) : 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)
1623
1638
  ]),
1624
1639
  _: 1
1625
- }, 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
+ ])),
1626
1664
  (openBlock(), createBlock(Teleport, { to: "body" }, [
1627
1665
  createVNode(Transition, {
1628
1666
  name: "ire-fade-in-out",
@@ -1631,7 +1669,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1631
1669
  default: withCtx(() => [
1632
1670
  showModal.value ? (openBlock(), createBlock(_sfc_main$6, {
1633
1671
  key: 0,
1634
- onClose: v[4] || (v[4] = (l) => showModal.value = !1)
1672
+ onClose: p[5] || (p[5] = (a) => showModal.value = !1)
1635
1673
  }, {
1636
1674
  default: withCtx(() => [
1637
1675
  createVNode(_sfc_main$4, { modalData: hoveredData.value }, null, 8, ["modalData"])
@@ -1649,10 +1687,12 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1649
1687
  }), _sfc_main = /* @__PURE__ */ defineComponent({
1650
1688
  __name: "Project",
1651
1689
  props: {
1652
- data: {}
1690
+ data: {},
1691
+ translations: {}
1653
1692
  },
1654
- setup(e) {
1655
- 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, [
1656
1696
  createVNode(_sfc_main$1, { "shortcode-data-props": r.data }, null, 8, ["shortcode-data-props"])
1657
1697
  ]));
1658
1698
  }