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