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