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