ire-preview 1.0.4 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.es.js CHANGED
@@ -1,23 +1,1202 @@
1
- import { defineComponent as e, openBlock as n, createElementBlock as o, toDisplayString as _ } from "vue";
2
- const c = { class: "bg-blue-500" }, i = /* @__PURE__ */ e({
3
- __name: "MyButton",
1
+ import { defineComponent, openBlock, createElementBlock, createVNode, Transition, withCtx, createElementVNode, toDisplayString, createCommentVNode, Fragment, createTextVNode, renderSlot, ref, watch, createBlock, normalizeClass, unref, mergeModels, useModel, withDirectives, renderList, vModelSelect, computed as computed$1, onMounted, createStaticVNode, reactive, normalizeStyle, Teleport } from "vue";
2
+ /**
3
+ * @vue/shared v3.5.12
4
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
+ * @license MIT
6
+ **/
7
+ const extend = Object.assign, isFunction = (o) => typeof o == "function", isSymbol = (o) => typeof o == "symbol", hasChanged = (o, e) => !Object.is(o, e);
8
+ /**
9
+ * @vue/reactivity v3.5.12
10
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
11
+ * @license MIT
12
+ **/
13
+ let activeSub, batchDepth = 0, batchedSub, batchedComputed;
14
+ function batch(o, e = !1) {
15
+ if (o.flags |= 8, e) {
16
+ o.next = batchedComputed, batchedComputed = o;
17
+ return;
18
+ }
19
+ o.next = batchedSub, batchedSub = o;
20
+ }
21
+ function startBatch() {
22
+ batchDepth++;
23
+ }
24
+ function endBatch() {
25
+ if (--batchDepth > 0)
26
+ return;
27
+ if (batchedComputed) {
28
+ let e = batchedComputed;
29
+ for (batchedComputed = void 0; e; ) {
30
+ const t = e.next;
31
+ e.next = void 0, e.flags &= -9, e = t;
32
+ }
33
+ }
34
+ let o;
35
+ for (; batchedSub; ) {
36
+ let e = batchedSub;
37
+ for (batchedSub = void 0; e; ) {
38
+ const t = e.next;
39
+ if (e.next = void 0, e.flags &= -9, e.flags & 1)
40
+ try {
41
+ e.trigger();
42
+ } catch (r) {
43
+ o || (o = r);
44
+ }
45
+ e = t;
46
+ }
47
+ }
48
+ if (o) throw o;
49
+ }
50
+ function prepareDeps(o) {
51
+ for (let e = o.deps; e; e = e.nextDep)
52
+ e.version = -1, e.prevActiveLink = e.dep.activeLink, e.dep.activeLink = e;
53
+ }
54
+ function cleanupDeps(o) {
55
+ let e, t = o.depsTail, r = t;
56
+ for (; r; ) {
57
+ const n = r.prevDep;
58
+ r.version === -1 ? (r === t && (t = n), removeSub(r), removeDep(r)) : e = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = n;
59
+ }
60
+ o.deps = e, o.depsTail = t;
61
+ }
62
+ function isDirty(o) {
63
+ for (let e = o.deps; e; e = e.nextDep)
64
+ if (e.dep.version !== e.version || e.dep.computed && (refreshComputed(e.dep.computed) || e.dep.version !== e.version))
65
+ return !0;
66
+ return !!o._dirty;
67
+ }
68
+ function refreshComputed(o) {
69
+ if (o.flags & 4 && !(o.flags & 16) || (o.flags &= -17, o.globalVersion === globalVersion))
70
+ return;
71
+ o.globalVersion = globalVersion;
72
+ const e = o.dep;
73
+ if (o.flags |= 2, e.version > 0 && !o.isSSR && o.deps && !isDirty(o)) {
74
+ o.flags &= -3;
75
+ return;
76
+ }
77
+ const t = activeSub, r = shouldTrack;
78
+ activeSub = o, shouldTrack = !0;
79
+ try {
80
+ prepareDeps(o);
81
+ const n = o.fn(o._value);
82
+ (e.version === 0 || hasChanged(n, o._value)) && (o._value = n, e.version++);
83
+ } catch (n) {
84
+ throw e.version++, n;
85
+ } finally {
86
+ activeSub = t, shouldTrack = r, cleanupDeps(o), o.flags &= -3;
87
+ }
88
+ }
89
+ function removeSub(o, e = !1) {
90
+ const { dep: t, prevSub: r, nextSub: n } = o;
91
+ if (r && (r.nextSub = n, o.prevSub = void 0), n && (n.prevSub = r, o.nextSub = void 0), t.subs === o && (t.subs = r, !r && t.computed)) {
92
+ t.computed.flags &= -5;
93
+ for (let p = t.computed.deps; p; p = p.nextDep)
94
+ removeSub(p, !0);
95
+ }
96
+ !e && !--t.sc && t.map && t.map.delete(t.key);
97
+ }
98
+ function removeDep(o) {
99
+ const { prevDep: e, nextDep: t } = o;
100
+ e && (e.nextDep = t, o.prevDep = void 0), t && (t.prevDep = e, o.nextDep = void 0);
101
+ }
102
+ let shouldTrack = !0, globalVersion = 0;
103
+ class Link {
104
+ constructor(e, t) {
105
+ this.sub = e, this.dep = t, this.version = t.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
106
+ }
107
+ }
108
+ class Dep {
109
+ constructor(e) {
110
+ this.computed = e, this.version = 0, this.activeLink = void 0, this.subs = void 0, this.map = void 0, this.key = void 0, this.sc = 0;
111
+ }
112
+ track(e) {
113
+ if (!activeSub || !shouldTrack || activeSub === this.computed)
114
+ return;
115
+ let t = this.activeLink;
116
+ if (t === void 0 || t.sub !== activeSub)
117
+ t = this.activeLink = new Link(activeSub, this), activeSub.deps ? (t.prevDep = activeSub.depsTail, activeSub.depsTail.nextDep = t, activeSub.depsTail = t) : activeSub.deps = activeSub.depsTail = t, addSub(t);
118
+ else if (t.version === -1 && (t.version = this.version, t.nextDep)) {
119
+ const r = t.nextDep;
120
+ r.prevDep = t.prevDep, t.prevDep && (t.prevDep.nextDep = r), t.prevDep = activeSub.depsTail, t.nextDep = void 0, activeSub.depsTail.nextDep = t, activeSub.depsTail = t, activeSub.deps === t && (activeSub.deps = r);
121
+ }
122
+ return t;
123
+ }
124
+ trigger(e) {
125
+ this.version++, globalVersion++, this.notify(e);
126
+ }
127
+ notify(e) {
128
+ startBatch();
129
+ try {
130
+ for (let t = this.subs; t; t = t.prevSub)
131
+ t.sub.notify() && t.sub.dep.notify();
132
+ } finally {
133
+ endBatch();
134
+ }
135
+ }
136
+ }
137
+ function addSub(o) {
138
+ if (o.dep.sc++, o.sub.flags & 4) {
139
+ const e = o.dep.computed;
140
+ if (e && !o.dep.subs) {
141
+ e.flags |= 20;
142
+ for (let r = e.deps; r; r = r.nextDep)
143
+ addSub(r);
144
+ }
145
+ const t = o.dep.subs;
146
+ t !== o && (o.prevSub = t, t && (t.nextSub = o)), o.dep.subs = o;
147
+ }
148
+ }
149
+ new Set(
150
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((o) => o !== "arguments" && o !== "caller").map((o) => Symbol[o]).filter(isSymbol)
151
+ );
152
+ class ComputedRefImpl {
153
+ constructor(e, t, r) {
154
+ this.fn = e, this.setter = t, 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 = !t, this.isSSR = r;
155
+ }
156
+ /**
157
+ * @internal
158
+ */
159
+ notify() {
160
+ if (this.flags |= 16, !(this.flags & 8) && // avoid infinite self recursion
161
+ activeSub !== this)
162
+ return batch(this, !0), !0;
163
+ }
164
+ get value() {
165
+ const e = this.dep.track();
166
+ return refreshComputed(this), e && (e.version = this.dep.version), this._value;
167
+ }
168
+ set value(e) {
169
+ this.setter && this.setter(e);
170
+ }
171
+ }
172
+ function computed(o, e, t = !1) {
173
+ let r, n;
174
+ return isFunction(o) ? r = o : (r = o.get, n = o.set), new ComputedRefImpl(r, n, t);
175
+ }
176
+ const _hoisted_1$f = {
177
+ key: 0,
178
+ 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$8 = {
180
+ key: 0,
181
+ class: "ire-flex ire-items-center ire-gap-3"
182
+ }, _hoisted_3$6 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$5 = { class: "!ire-text-2xl" }, _hoisted_5$1 = {
183
+ key: 0,
184
+ class: "ire-rounded-lg ire-bg-gray-100 ire-p-6"
185
+ }, _hoisted_6$1 = {
186
+ key: 0,
187
+ class: "!ire-text-2xl"
188
+ }, _hoisted_7$1 = { key: 1 }, _hoisted_8$1 = {
189
+ key: 0,
190
+ class: "ire-flex ire-items-center ire-gap-2"
191
+ }, _hoisted_9$1 = { class: "ire-min-w-3 !ire-text-2xl" }, _hoisted_10$1 = {
192
+ key: 1,
193
+ class: "ire-flex ire-items-center ire-gap-2"
194
+ }, _hoisted_11$1 = { class: "min-w-3 !ire-text-2xl" }, _hoisted_12$1 = {
195
+ key: 2,
196
+ class: "ire-flex ire-items-center ire-gap-2"
197
+ }, _hoisted_13$1 = { class: "ire-min-w-3 !ire-text-2xl" }, _hoisted_14$1 = {
198
+ key: 1,
199
+ class: "ire-flex ire-items-center ire-gap-3"
200
+ }, _hoisted_15$1 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_16$1 = { class: "!text-2xl" }, _hoisted_17$1 = {
201
+ key: 2,
202
+ class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
203
+ }, _hoisted_18$1 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_19$1 = { class: "!ire-text-2xl ire-capitalize" }, _hoisted_20$1 = { class: "ire-flex ire-min-w-36 ire-flex-col ire-items-center ire-rounded-lg ire-bg-gray-100 ire-px-7 ire-py-3" }, _hoisted_21$1 = {
204
+ key: 0,
205
+ class: "!ire-text-2xl ire-uppercase"
206
+ }, _hoisted_22$1 = {
207
+ key: 0,
208
+ class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-py-2"
209
+ }, _hoisted_23$1 = {
210
+ key: 0,
211
+ class: "!ire-text-2xl"
212
+ }, _hoisted_24$1 = { key: 1 }, _hoisted_25$1 = { class: "!ire-text-xs ire-line-through" }, _hoisted_26$1 = { class: "!ire-text-2xl" }, _hoisted_27 = { class: "ire-border ire-border-gray-800 ire-p-2" }, _hoisted_28 = { class: "ire-translate-x-3 ire-bg-white" }, _sfc_main$g = /* @__PURE__ */ defineComponent({
213
+ __name: "Tooltip_1",
214
+ props: {
215
+ hoveredData: {},
216
+ type: {}
217
+ },
218
+ setup(o) {
219
+ return (e, t) => (openBlock(), createElementBlock("div", null, [
220
+ createVNode(Transition, { name: "ire-fade-in-out" }, {
221
+ default: withCtx(() => {
222
+ var r, n, p, c, l, i, a, m, d, u, g, h, b, s, f, k, _, v, y, w;
223
+ return [
224
+ e.type && e.hoveredData && e.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
225
+ e.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
226
+ createElementVNode("div", _hoisted_3$6, [
227
+ createElementVNode("p", _hoisted_4$5, toDisplayString(e.hoveredData.floor_number), 1),
228
+ t[0] || (t[0] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Floor", -1))
229
+ ]),
230
+ (r = e.hoveredData) != null && r.conf || (p = (n = e.hoveredData) == null ? void 0 : n.flats) != null && p.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
231
+ (c = e.hoveredData) != null && c.conf ? (openBlock(), createElementBlock("div", _hoisted_6$1, toDisplayString(e.hoveredData.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$1, [
232
+ (i = (l = e.hoveredData) == null ? void 0 : l.counts) != null && i.available ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
233
+ createElementVNode("p", _hoisted_9$1, toDisplayString(((m = (a = e.hoveredData) == null ? void 0 : a.counts) == null ? void 0 : m.available) || 0), 1),
234
+ t[1] || (t[1] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Available", -1))
235
+ ])) : createCommentVNode("", !0),
236
+ (u = (d = e.hoveredData) == null ? void 0 : d.counts) != null && u.reserved ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
237
+ createElementVNode("p", _hoisted_11$1, toDisplayString(e.hoveredData.counts.reserved), 1),
238
+ t[2] || (t[2] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Reserved", -1))
239
+ ])) : createCommentVNode("", !0),
240
+ (h = (g = e.hoveredData) == null ? void 0 : g.counts) != null && h.sold ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
241
+ createElementVNode("p", _hoisted_13$1, toDisplayString(e.hoveredData.counts.sold), 1),
242
+ t[3] || (t[3] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Sold", -1))
243
+ ])) : createCommentVNode("", !0)
244
+ ]))
245
+ ])) : createCommentVNode("", !0)
246
+ ])) : e.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
247
+ createElementVNode("div", _hoisted_15$1, [
248
+ createElementVNode("p", _hoisted_16$1, toDisplayString(e.hoveredData.title), 1)
249
+ ])
250
+ ])) : e.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_17$1, [
251
+ createElementVNode("div", _hoisted_18$1, [
252
+ createElementVNode("p", _hoisted_19$1, toDisplayString((b = e.hoveredData) == null ? void 0 : b.flat_number), 1),
253
+ t[4] || (t[4] = createElementVNode("p", { class: "!ire-mt-2 !ire-text-xs ire-uppercase" }, "Apartment", -1))
254
+ ]),
255
+ createElementVNode("div", _hoisted_20$1, [
256
+ (s = e.hoveredData) != null && s.conf ? (openBlock(), createElementBlock("p", _hoisted_21$1, toDisplayString(e.hoveredData.conf), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
257
+ t[7] || (t[7] = createElementVNode("p", { class: "!ire-text-xs ire-uppercase ire-text-gray-500" }, "Price", -1)),
258
+ (f = e.hoveredData) != null && f.price ? (openBlock(), createElementBlock("div", _hoisted_22$1, [
259
+ createElementVNode("div", null, [
260
+ (k = e.hoveredData) != null && k.offer_price ? (openBlock(), createElementBlock("div", _hoisted_24$1, [
261
+ createElementVNode("p", _hoisted_25$1, toDisplayString(Number((_ = e.hoveredData) == null ? void 0 : _.price).toLocaleString()), 1),
262
+ createElementVNode("p", _hoisted_26$1, [
263
+ createTextVNode(toDisplayString(Number((v = e.hoveredData) == null ? void 0 : v.offer_price).toLocaleString()), 1),
264
+ t[6] || (t[6] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
265
+ ])
266
+ ])) : (openBlock(), createElementBlock("p", _hoisted_23$1, [
267
+ createTextVNode(toDisplayString(Number(e.hoveredData.price).toLocaleString()), 1),
268
+ t[5] || (t[5] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
269
+ ]))
270
+ ])
271
+ ])) : createCommentVNode("", !0)
272
+ ], 64))
273
+ ]),
274
+ createElementVNode("div", _hoisted_27, [
275
+ createElementVNode("p", _hoisted_28, [
276
+ createTextVNode(toDisplayString((w = (y = e.hoveredData) == null ? void 0 : y.type) == null ? void 0 : w.area_m2) + " M", 1),
277
+ t[8] || (t[8] = createElementVNode("sup", { class: "ire-bg-white !ire-text-xs" }, " 2 ", -1))
278
+ ])
279
+ ])
280
+ ])) : createCommentVNode("", !0)
281
+ ])) : createCommentVNode("", !0)
282
+ ];
283
+ }),
284
+ _: 1
285
+ })
286
+ ]));
287
+ }
288
+ }), _hoisted_1$e = { class: "ire-relative" }, _hoisted_2$7 = {
289
+ key: 0,
290
+ class: "ire-mb-3 ire-flex ire-h-[48px] ire-items-center ire-justify-between ire-px-4"
291
+ }, _sfc_main$f = /* @__PURE__ */ defineComponent({
292
+ __name: "PreviewLayout",
293
+ props: {
294
+ hoverdData: {},
295
+ type: {}
296
+ },
297
+ setup(o) {
298
+ return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$e, [
299
+ e.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_2$7, [
300
+ renderSlot(e.$slots, "header")
301
+ ])) : createCommentVNode("", !0),
302
+ renderSlot(e.$slots, "default"),
303
+ createVNode(_sfc_main$g, {
304
+ "hovered-data": e.hoverdData,
305
+ type: e.type || "",
306
+ class: "ire-hidden lg:ire-block"
307
+ }, null, 8, ["hovered-data", "type"])
308
+ ]));
309
+ }
310
+ }), _hoisted_1$d = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden ire-pt-[50%]" }, _hoisted_2$6 = ["src"], _hoisted_3$5 = ["innerHTML"], _sfc_main$e = /* @__PURE__ */ defineComponent({
311
+ __name: "ProjectPreview",
312
+ props: {
313
+ project: {},
314
+ floors: {},
315
+ blocks: {},
316
+ flats: {},
317
+ actions: {},
318
+ projectMeta: {}
319
+ },
320
+ emits: ["changeComponent"],
321
+ setup(o, { emit: e }) {
322
+ const t = e, r = o, n = ref(), p = ref(), c = ref(null), l = computed(() => {
323
+ if (r.project)
324
+ return r.project.svg;
325
+ }), i = computed(() => {
326
+ var u, g;
327
+ const d = (g = (u = r.projectMeta) == null ? void 0 : u.find(
328
+ (h) => h.meta_key === "project_img_contain"
329
+ )) == null ? void 0 : g.meta_value;
330
+ return JSON.parse((d == null ? void 0 : d.toString()) || "false");
331
+ }), a = (d) => {
332
+ const u = d.target;
333
+ u && (n.value = u);
334
+ }, m = (d) => {
335
+ var g, h, b;
336
+ d.target.nodeName === "path" && (((g = p.value) == null ? void 0 : g.conf) === "sold" || ((h = p.value) == null ? void 0 : h.conf) === "reserved" || t("changeComponent", ((b = c.value) == null ? void 0 : b.type) || "", p.value));
337
+ };
338
+ return watch(
339
+ () => n.value,
340
+ (d) => {
341
+ var g, h, b, s, f, k, _;
342
+ if (!d) return;
343
+ const u = d.parentElement;
344
+ if (u && u.nodeName === "g") {
345
+ const v = u.getAttribute("id");
346
+ if (!v || (c.value = ((g = r.project) == null ? void 0 : g.polygon_data.find((w) => w.key === v)) || null, !c.value)) return;
347
+ const y = (h = c.value) == null ? void 0 : h.id;
348
+ switch ((b = c.value) == null ? void 0 : b.type) {
349
+ case "floor":
350
+ const w = (s = r.floors) == null ? void 0 : s.find(
351
+ (x) => x.id === y
352
+ );
353
+ p.value = w;
354
+ break;
355
+ case "block":
356
+ const $ = (f = r.blocks) == null ? void 0 : f.find(
357
+ (x) => x.id === y
358
+ );
359
+ p.value = $;
360
+ break;
361
+ case "flat":
362
+ const C = (k = r.flats) == null ? void 0 : k.find((x) => x.id === y);
363
+ p.value = C;
364
+ break;
365
+ case "tooltip":
366
+ const D = (_ = r.actions) == null ? void 0 : _.find(
367
+ (x) => x.id === y
368
+ );
369
+ p.value = D;
370
+ break;
371
+ default:
372
+ p.value = null;
373
+ break;
374
+ }
375
+ } else
376
+ c.value = null, p.value = null;
377
+ }
378
+ ), (d, u) => {
379
+ var g;
380
+ return openBlock(), createBlock(_sfc_main$f, {
381
+ hoverdData: p.value,
382
+ type: (g = c.value) == null ? void 0 : g.type
383
+ }, {
384
+ default: withCtx(() => {
385
+ var h, b, s, f;
386
+ return [
387
+ createElementVNode("div", _hoisted_1$d, [
388
+ createElementVNode("img", {
389
+ src: (h = d.project) == null ? void 0 : h.project_image[0].url,
390
+ alt: "",
391
+ class: normalizeClass(["ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full", {
392
+ "ire-object-contain": unref(i),
393
+ "ire-object-cover": !unref(i)
394
+ }])
395
+ }, null, 10, _hoisted_2$6),
396
+ (openBlock(), createElementBlock("div", {
397
+ 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", [
398
+ {
399
+ "hover:[&_path]:ire-fill-[var(--reserved-color)]": p.value && ((b = p.value) == null ? void 0 : b.conf) === "reserved",
400
+ "hover:[&_path]:ire-fill-[var(--sold-color)]": p.value && ((s = p.value) == null ? void 0 : s.conf) === "sold",
401
+ "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((f = p.value) != null && f.conf)
402
+ }
403
+ ]]),
404
+ innerHTML: unref(l),
405
+ key: unref(l),
406
+ onMouseover: a,
407
+ onClick: m
408
+ }, null, 42, _hoisted_3$5))
409
+ ])
410
+ ];
411
+ }),
412
+ _: 1
413
+ }, 8, ["hoverdData", "type"]);
414
+ };
415
+ }
416
+ }), _hoisted_1$c = { 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 = { class: "label" }, _hoisted_3$4 = { class: "ire-relative" }, _hoisted_4$4 = ["value", "disabled"], _sfc_main$d = /* @__PURE__ */ defineComponent({
417
+ __name: "PreviewSelect",
418
+ props: /* @__PURE__ */ mergeModels({
419
+ data: {},
420
+ placeholder: { default: "Choose" },
421
+ label: { default: "" },
422
+ clearable: { type: Boolean, default: !1 },
423
+ required: { type: Boolean }
424
+ }, {
425
+ modelValue: {},
426
+ modelModifiers: {}
427
+ }),
428
+ emits: ["update:modelValue"],
429
+ setup(o) {
430
+ const e = useModel(o, "modelValue");
431
+ return (t, r) => (openBlock(), createElementBlock("div", _hoisted_1$c, [
432
+ createElementVNode("p", _hoisted_2$5, toDisplayString(t.label), 1),
433
+ createElementVNode("div", _hoisted_3$4, [
434
+ withDirectives(createElementVNode("select", {
435
+ "onUpdate:modelValue": r[0] || (r[0] = (n) => e.value = n),
436
+ 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"
437
+ }, [
438
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(t.data, (n) => (openBlock(), createElementBlock("option", {
439
+ value: n.value,
440
+ disabled: n.title.includes("reserved") || n.title.includes("sold")
441
+ }, toDisplayString(n.title), 9, _hoisted_4$4))), 256))
442
+ ], 512), [
443
+ [vModelSelect, e.value]
444
+ ]),
445
+ r[1] || (r[1] = createElementVNode("svg", {
446
+ xmlns: "http://www.w3.org/2000/svg",
447
+ fill: "none",
448
+ viewBox: "0 0 24 24",
449
+ "stroke-width": "1.2",
450
+ stroke: "currentColor",
451
+ class: "ire-absolute ire-right-2.5 ire-top-2.5 ire-ml-1 ire-h-5 ire-w-5 ire-text-slate-700"
452
+ }, [
453
+ createElementVNode("path", {
454
+ "stroke-linecap": "round",
455
+ "stroke-linejoin": "round",
456
+ d: "M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"
457
+ })
458
+ ], -1))
459
+ ])
460
+ ]));
461
+ }
462
+ }), _export_sfc = (o, e) => {
463
+ const t = o.__vccOpts || o;
464
+ for (const [r, n] of e)
465
+ t[r] = n;
466
+ return t;
467
+ }, _sfc_main$c = {}, _hoisted_1$b = {
468
+ xmlns: "http://www.w3.org/2000/svg",
469
+ width: "32",
470
+ height: "32",
471
+ viewBox: "0 0 32 32",
472
+ fill: "none"
473
+ };
474
+ function _sfc_render$3(o, e) {
475
+ return openBlock(), createElementBlock("svg", _hoisted_1$b, e[0] || (e[0] = [
476
+ createElementVNode("path", {
477
+ 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",
478
+ fill: "#44546F"
479
+ }, null, -1)
480
+ ]));
481
+ }
482
+ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$3]]), _hoisted_1$a = { 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 hover:ire-text-white lg:ire-px-5 lg:ire-py-2" }, _sfc_main$b = /* @__PURE__ */ defineComponent({
483
+ __name: "BackButton",
484
+ setup(o) {
485
+ return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$a, [
486
+ createVNode(ArrowRight, { class: "ire-w-6 ire-rotate-180 group-hover:[&_path]:ire-fill-white" }),
487
+ t[0] || (t[0] = createElementVNode("p", { class: "!ire-text-sm lg:!ire-text-balance" }, "Back", -1))
488
+ ]));
489
+ }
490
+ }), _hoisted_1$9 = { class: "ire-w-fit ire-bg-white" }, _hoisted_2$4 = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden ire-pt-[50%]" }, _hoisted_3$3 = ["src"], _hoisted_4$3 = ["innerHTML"], _sfc_main$a = /* @__PURE__ */ defineComponent({
491
+ __name: "FloorPreview",
492
+ props: {
493
+ flats: {},
494
+ floor: {},
495
+ floors: {},
496
+ blocks: {}
497
+ },
498
+ emits: ["changeComponent"],
499
+ setup(o, { emit: e }) {
500
+ const t = e, r = o, n = ref(), p = ref(), c = ref(), l = ref(), i = ref(), a = ref(), m = computed$1(() => {
501
+ var s;
502
+ if ((s = r.floor) != null && s.svg)
503
+ return r.floor.svg;
504
+ }), d = computed$1(() => r.floors.filter(
505
+ (s) => (
506
+ // floorItem.conf !== "reserved" &&
507
+ // floorItem.conf !== "sold" &&
508
+ r.floor.block_id ? s.block_id === r.floor.block_id : !s.block_id
509
+ )
510
+ ).map((s) => {
511
+ var k, _;
512
+ const f = (k = r.blocks) == null ? void 0 : k.find(
513
+ (v) => {
514
+ var y;
515
+ return (v == null ? void 0 : v.id) === ((y = s.block_id) == null ? void 0 : y.toString());
516
+ }
517
+ );
518
+ return {
519
+ title: ((_ = s == null ? void 0 : s.floor_number) == null ? void 0 : _.toString()) + " Floor" + (f != null && f.id ? ` - ${f == null ? void 0 : f.title}` : "") + (s != null && s.conf ? " " + s.conf : ""),
520
+ value: s.id
521
+ };
522
+ }).sort((s, f) => +s.title - +f.title) || []), u = (s) => {
523
+ const f = s.target;
524
+ f && (p.value = f);
525
+ }, g = (s) => {
526
+ var k, _, v;
527
+ s.target.nodeName === "path" && (((k = l.value) == null ? void 0 : k.conf) === "sold" || ((_ = l.value) == null ? void 0 : _.conf) === "reserved" || t("changeComponent", ((v = c.value) == null ? void 0 : v.type) || "", l.value));
528
+ }, h = () => {
529
+ n.value && n.value.querySelectorAll("g").forEach((f) => {
530
+ var v, y, w;
531
+ const k = f.getAttribute("id"), _ = r.floor.polygon_data.find(
532
+ ($) => $.key === k
533
+ );
534
+ if (r.flats)
535
+ if (r.floor.conf)
536
+ f.setAttribute("conf", ((v = r.floor) == null ? void 0 : v.conf) || "");
537
+ else {
538
+ const $ = (y = r.flats) == null ? void 0 : y.find(
539
+ (C) => C.id === (_ == null ? void 0 : _.id)
540
+ );
541
+ f.setAttribute("conf", ((w = $ == null ? void 0 : $.conf) == null ? void 0 : w.toString()) || "");
542
+ }
543
+ });
544
+ }, b = () => {
545
+ r.floor.block_id ? t("changeComponent", "block", a.value) : t("changeComponent", "project", null);
546
+ };
547
+ return watch(
548
+ () => p.value,
549
+ (s) => {
550
+ var k, _, v;
551
+ if (!s) return;
552
+ const f = s.parentElement;
553
+ if (f && f.nodeName === "g") {
554
+ const y = f.getAttribute("id");
555
+ if (!y || (c.value = ((k = r.floor) == null ? void 0 : k.polygon_data.find((w) => w.key === y)) || null, !c.value)) return;
556
+ if (((_ = c.value) == null ? void 0 : _.type) === "flat") {
557
+ const w = (v = r.flats) == null ? void 0 : v.find(
558
+ ($) => {
559
+ var C;
560
+ return ($ == null ? void 0 : $.id) === ((C = c.value) == null ? void 0 : C.id);
561
+ }
562
+ );
563
+ l.value = w;
564
+ }
565
+ } else
566
+ c.value = null;
567
+ }
568
+ ), watch(
569
+ () => i.value,
570
+ () => {
571
+ const s = r.floors.find(
572
+ (f) => f.id === i.value
573
+ );
574
+ s != null && s.conf || (s && t("changeComponent", "floor", s), setTimeout(() => {
575
+ h();
576
+ }, 0));
577
+ }
578
+ ), onMounted(() => {
579
+ var s, f, k;
580
+ a.value = (s = r.blocks) == null ? void 0 : s.find(
581
+ (_) => {
582
+ var v;
583
+ return _.id === ((v = r.floor.block_id) == null ? void 0 : v.toString());
584
+ }
585
+ ), i.value = (k = (f = d.value) == null ? void 0 : f.find(
586
+ (_) => {
587
+ var v;
588
+ return (_ == null ? void 0 : _.value) == ((v = r.floor) == null ? void 0 : v.id);
589
+ }
590
+ )) == null ? void 0 : k.value, h();
591
+ }), (s, f) => {
592
+ var k;
593
+ return openBlock(), createBlock(_sfc_main$f, {
594
+ hoverdData: l.value,
595
+ type: (k = c.value) == null ? void 0 : k.type
596
+ }, {
597
+ header: withCtx(() => [
598
+ createVNode(_sfc_main$b, { onClick: b }),
599
+ createElementVNode("div", _hoisted_1$9, [
600
+ createVNode(_sfc_main$d, {
601
+ modelValue: i.value,
602
+ "onUpdate:modelValue": f[0] || (f[0] = (_) => i.value = _),
603
+ data: d.value
604
+ }, null, 8, ["modelValue", "data"])
605
+ ])
606
+ ]),
607
+ default: withCtx(() => {
608
+ var _, v;
609
+ return [
610
+ createElementVNode("div", _hoisted_2$4, [
611
+ createElementVNode("img", {
612
+ src: ((v = (_ = s.floor.floor_image) == null ? void 0 : _[0]) == null ? void 0 : v.url) || "",
613
+ alt: "",
614
+ class: normalizeClass(["ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full", {
615
+ "ire-object-contain": s.floor.img_contain,
616
+ "ire-object-cover": !s.floor.img_contain
617
+ }])
618
+ }, null, 10, _hoisted_3$3),
619
+ (openBlock(), createElementBlock("div", {
620
+ ref_key: "svgRef",
621
+ ref: n,
622
+ 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)]",
623
+ innerHTML: m.value,
624
+ key: m.value,
625
+ onMouseover: u,
626
+ onClick: g
627
+ }, null, 40, _hoisted_4$3))
628
+ ])
629
+ ];
630
+ }),
631
+ _: 1
632
+ }, 8, ["hoverdData", "type"]);
633
+ };
634
+ }
635
+ }), _sfc_main$9 = {}, _hoisted_1$8 = {
636
+ width: "24",
637
+ height: "24",
638
+ viewBox: "0 0 24 24",
639
+ fill: "none",
640
+ xmlns: "http://www.w3.org/2000/svg"
641
+ };
642
+ function _sfc_render$2(o, e) {
643
+ return openBlock(), createElementBlock("svg", _hoisted_1$8, e[0] || (e[0] = [
644
+ 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)
645
+ ]));
646
+ }
647
+ const FlatIcon = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$2]]), _sfc_main$8 = {}, _hoisted_1$7 = {
648
+ width: "24",
649
+ height: "24",
650
+ viewBox: "0 0 24 24",
651
+ fill: "none",
652
+ xmlns: "http://www.w3.org/2000/svg"
653
+ };
654
+ function _sfc_render$1(o, e) {
655
+ return openBlock(), createElementBlock("svg", _hoisted_1$7, e[0] || (e[0] = [
656
+ createElementVNode("path", {
657
+ 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",
658
+ stroke: "#222222",
659
+ "stroke-linecap": "round",
660
+ "stroke-linejoin": "round"
661
+ }, null, -1),
662
+ createElementVNode("path", {
663
+ d: "M20.8953 6.99365L12.0828 11.9999L3.10156 6.99365",
664
+ stroke: "#222222",
665
+ "stroke-linecap": "round",
666
+ "stroke-linejoin": "round"
667
+ }, null, -1),
668
+ createElementVNode("path", {
669
+ d: "M12.0844 12L12 22.0125",
670
+ stroke: "#222222",
671
+ "stroke-linecap": "round",
672
+ "stroke-linejoin": "round"
673
+ }, null, -1)
674
+ ]));
675
+ }
676
+ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]]), _hoisted_1$6 = { 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" }, _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 = {
677
+ key: 0,
678
+ class: "ire-ml-4 ire-flex ire-items-center ire-gap-1"
679
+ }, _hoisted_8 = ["onClick"], _hoisted_9 = { class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-2 lg:ire-w-auto" }, _hoisted_10 = { class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b ire-border-b-gray-200 ire-py-4" }, _hoisted_11 = { class: "!ire-text-2xl ire-font-semibold ire-capitalize" }, _hoisted_12 = { class: "ire-text-center" }, _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 = {
680
+ key: 0,
681
+ class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b ire-border-b-gray-200 ire-py-4"
682
+ }, _hoisted_17 = { class: "!ire-text-2xl" }, _hoisted_18 = {
683
+ key: 1,
684
+ class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b ire-border-b-gray-200 ire-py-4"
685
+ }, _hoisted_19 = { class: "!ire-text-2xl" }, _hoisted_20 = {
686
+ key: 0,
687
+ class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b ire-border-b-gray-200 ire-py-4"
688
+ }, _hoisted_21 = { class: "!ire-text-2xl" }, _hoisted_22 = {
689
+ key: 1,
690
+ class: "border-b ire-flex ire-w-fit ire-flex-col ire-items-center ire-border-b-gray-200 ire-py-4"
691
+ }, _hoisted_23 = {
692
+ key: 0,
693
+ class: "!ire-text-2xl"
694
+ }, _hoisted_24 = { key: 1 }, _hoisted_25 = { class: "!ire-text-xs ire-line-through" }, _hoisted_26 = { class: "!ire-text-2xl" }, _sfc_main$7 = /* @__PURE__ */ defineComponent({
695
+ __name: "FlatPreview",
696
+ props: {
697
+ flat: {},
698
+ floors: {}
699
+ },
700
+ emits: ["changeComponent"],
701
+ setup(o, { emit: e }) {
702
+ const t = e, r = o, n = ref(!0), p = ref(0), c = computed$1(() => {
703
+ var a, m, d, u, g, h;
704
+ const i = n.value ? (d = (m = (a = r.flat) == null ? void 0 : a.type) == null ? void 0 : m.image_2d) == null ? void 0 : d.length : (h = (g = (u = r.flat) == null ? void 0 : u.type) == null ? void 0 : g.image_3d) == null ? void 0 : h.length;
705
+ return ["I", "II", "III"].slice(0, i);
706
+ }), l = () => {
707
+ var a;
708
+ const i = (a = r.floors) == null ? void 0 : a.find(
709
+ (m) => {
710
+ var d, u, g, h;
711
+ return ((d = m.floor_number) == null ? void 0 : d.toString()) === ((g = (u = r.flat) == null ? void 0 : u.floor_number) == null ? void 0 : g.toString()) && (r.flat.block_id ? ((h = m == null ? void 0 : m.block_id) == null ? void 0 : h.toString()) === r.flat.block_id : !m.block_id);
712
+ }
713
+ );
714
+ i ? t("changeComponent", "floor", i) : t("changeComponent", "project", null);
715
+ };
716
+ return watch(
717
+ () => n.value,
718
+ () => {
719
+ p.value = 0;
720
+ }
721
+ ), onMounted(() => {
722
+ var i, a;
723
+ (a = (i = r.flat) == null ? void 0 : i.type) != null && a.image_2d || (n.value = !1);
724
+ }), (i, a) => (openBlock(), createElementBlock("div", null, [
725
+ createVNode(_sfc_main$f, { "hoverd-data": null }, {
726
+ header: withCtx(() => [
727
+ createVNode(_sfc_main$b, { onClick: l })
728
+ ]),
729
+ default: withCtx(() => {
730
+ var m, d, u, g, h, b, s, f, k, _, v, y, w, $, C, D, x, B, S, M, j, L, T;
731
+ return [
732
+ createElementVNode("div", _hoisted_1$6, [
733
+ createElementVNode("div", _hoisted_2$3, [
734
+ createVNode(Transition, {
735
+ name: "ire-fade-in-out",
736
+ mode: "out-in"
737
+ }, {
738
+ default: withCtx(() => {
739
+ var E, V, N, R, P, O, I, F, A, H, z, W, K, G, Z, q, U, J, Q, X, Y, ee, te, oe;
740
+ return [
741
+ n.value && ((R = (N = (V = (E = i.flat) == null ? void 0 : E.type) == null ? void 0 : V.image_2d) == null ? void 0 : N[p.value]) != null && R.url) ? (openBlock(), createElementBlock("img", {
742
+ key: (F = (I = (O = (P = i.flat) == null ? void 0 : P.type) == null ? void 0 : O.image_2d) == null ? void 0 : I[p.value]) == null ? void 0 : F.url,
743
+ src: (W = (z = (H = (A = i.flat) == null ? void 0 : A.type) == null ? void 0 : H.image_2d) == null ? void 0 : z[p.value]) == null ? void 0 : W.url,
744
+ class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
745
+ }, null, 8, _hoisted_3$2)) : (q = (Z = (G = (K = i.flat) == null ? void 0 : K.type) == null ? void 0 : G.image_3d) == null ? void 0 : Z[p.value]) != null && q.url ? (openBlock(), createElementBlock("img", {
746
+ src: (X = (Q = (J = (U = i.flat) == null ? void 0 : U.type) == null ? void 0 : J.image_3d) == null ? void 0 : Q[p.value]) == null ? void 0 : X.url,
747
+ key: (oe = (te = (ee = (Y = i.flat) == null ? void 0 : Y.type) == null ? void 0 : ee.image_3d) == null ? void 0 : te[p.value]) == null ? void 0 : oe.url,
748
+ class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
749
+ }, null, 8, _hoisted_4$2)) : createCommentVNode("", !0)
750
+ ];
751
+ }),
752
+ _: 1
753
+ }),
754
+ createElementVNode("div", _hoisted_5, [
755
+ createElementVNode("div", _hoisted_6, [
756
+ (g = (u = (d = (m = i.flat) == null ? void 0 : m.type) == null ? void 0 : d.image_2d) == null ? void 0 : u[0]) != null && g.url ? (openBlock(), createElementBlock("div", {
757
+ key: 0,
758
+ 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 hover:ire-text-white", { "ire-bg-primary ire-text-white": n.value }]),
759
+ onClick: a[0] || (a[0] = (E) => n.value = !0)
760
+ }, [
761
+ createVNode(FlatIcon, {
762
+ class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": n.value }])
763
+ }, null, 8, ["class"]),
764
+ a[2] || (a[2] = createElementVNode("p", null, "2D plan", -1))
765
+ ], 2)) : createCommentVNode("", !0),
766
+ (f = (s = (b = (h = i.flat) == null ? void 0 : h.type) == null ? void 0 : b.image_3d) == null ? void 0 : s[0]) != null && f.url ? (openBlock(), createElementBlock("div", {
767
+ key: 1,
768
+ 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 hover:ire-text-white", { "ire-bg-primary ire-text-white": !n.value }]),
769
+ onClick: a[1] || (a[1] = (E) => n.value = !1)
770
+ }, [
771
+ createElementVNode("div", null, [
772
+ createVNode(Cube, {
773
+ class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !n.value }])
774
+ }, null, 8, ["class"])
775
+ ]),
776
+ a[3] || (a[3] = createElementVNode("p", null, "3D plan", -1))
777
+ ], 2)) : createCommentVNode("", !0)
778
+ ]),
779
+ ((k = c.value) == null ? void 0 : k.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
780
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(c.value, (E, V) => (openBlock(), createElementBlock("div", {
781
+ key: E,
782
+ 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", {
783
+ "ire-bg-black ire-text-white": p.value === V
784
+ }]),
785
+ onClick: (N) => p.value = V
786
+ }, toDisplayString(E), 11, _hoisted_8))), 128))
787
+ ])) : createCommentVNode("", !0)
788
+ ])
789
+ ]),
790
+ createElementVNode("div", _hoisted_9, [
791
+ createElementVNode("div", _hoisted_10, [
792
+ createElementVNode("p", _hoisted_11, toDisplayString((_ = i.flat) == null ? void 0 : _.flat_number), 1),
793
+ a[4] || (a[4] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Apartment", -1))
794
+ ]),
795
+ createElementVNode("div", _hoisted_12, [
796
+ createElementVNode("p", _hoisted_13, toDisplayString((y = (v = i.flat) == null ? void 0 : v.type) == null ? void 0 : y.title), 1),
797
+ createElementVNode("p", _hoisted_14, toDisplayString(($ = (w = i.flat) == null ? void 0 : w.type) == null ? void 0 : $.teaser), 1)
798
+ ]),
799
+ createElementVNode("div", _hoisted_15, [
800
+ (C = i.flat) != null && C.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
801
+ createElementVNode("p", _hoisted_17, toDisplayString(i.flat.floor_number), 1),
802
+ a[5] || (a[5] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Floor", -1))
803
+ ])) : createCommentVNode("", !0),
804
+ (x = (D = i.flat) == null ? void 0 : D.type) != null && x.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
805
+ createElementVNode("p", _hoisted_19, toDisplayString(i.flat.type.rooms_count), 1),
806
+ a[6] || (a[6] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Room", -1))
807
+ ])) : createCommentVNode("", !0)
808
+ ]),
809
+ (S = (B = i.flat) == null ? void 0 : B.type) != null && S.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
810
+ createElementVNode("p", _hoisted_21, [
811
+ createTextVNode(toDisplayString(i.flat.type.area_m2) + " ", 1),
812
+ a[7] || (a[7] = createElementVNode("span", { class: "ire-font-light" }, [
813
+ createTextVNode(" M "),
814
+ createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
815
+ ], -1))
816
+ ]),
817
+ a[8] || (a[8] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Area", -1))
818
+ ])) : createCommentVNode("", !0),
819
+ (M = i.flat) != null && M.price ? (openBlock(), createElementBlock("div", _hoisted_22, [
820
+ createElementVNode("div", null, [
821
+ (j = i.flat) != null && j.offer_price ? (openBlock(), createElementBlock("div", _hoisted_24, [
822
+ createElementVNode("p", _hoisted_25, toDisplayString(Number((L = i.flat) == null ? void 0 : L.price).toLocaleString()), 1),
823
+ createElementVNode("p", _hoisted_26, [
824
+ createTextVNode(toDisplayString(Number((T = i.flat) == null ? void 0 : T.offer_price).toLocaleString()), 1),
825
+ a[10] || (a[10] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
826
+ ])
827
+ ])) : (openBlock(), createElementBlock("p", _hoisted_23, [
828
+ createTextVNode(toDisplayString(Number(i.flat.price).toLocaleString()), 1),
829
+ a[9] || (a[9] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
830
+ ]))
831
+ ]),
832
+ a[11] || (a[11] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Price", -1))
833
+ ])) : createCommentVNode("", !0)
834
+ ])
835
+ ])
836
+ ];
837
+ }),
838
+ _: 1
839
+ })
840
+ ]));
841
+ }
842
+ }), _sfc_main$6 = {}, _hoisted_1$5 = {
843
+ xmlns: "http://www.w3.org/2000/svg",
844
+ x: "0px",
845
+ y: "0px",
846
+ width: "20",
847
+ height: "20",
848
+ viewBox: "0 0 50 50"
849
+ };
850
+ function _sfc_render(o, e) {
851
+ return openBlock(), createElementBlock("svg", _hoisted_1$5, e[0] || (e[0] = [
852
+ 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)
853
+ ]));
854
+ }
855
+ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]), _hoisted_1$4 = { 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-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$5 = /* @__PURE__ */ defineComponent({
856
+ __name: "PreviewModal",
857
+ emits: ["close"],
858
+ setup(o) {
859
+ return (e, t) => (openBlock(), createElementBlock("div", _hoisted_1$4, [
860
+ createElementVNode("div", {
861
+ class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full ire-bg-black/40 ire-transition-all",
862
+ onClick: t[0] || (t[0] = (r) => e.$emit("close"))
863
+ }),
864
+ createElementVNode("div", _hoisted_2$2, [
865
+ createElementVNode("div", _hoisted_3$1, [
866
+ createElementVNode("div", {
867
+ 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",
868
+ onClick: t[1] || (t[1] = (r) => e.$emit("close"))
869
+ }, [
870
+ createVNode(Close)
871
+ ])
872
+ ]),
873
+ createElementVNode("div", _hoisted_4$1, [
874
+ renderSlot(e.$slots, "default")
875
+ ])
876
+ ])
877
+ ]));
878
+ }
879
+ }), _hoisted_1$3 = ["innerHTML"], _sfc_main$4 = /* @__PURE__ */ defineComponent({
880
+ __name: "BaseEditor",
881
+ props: {
882
+ editor: {}
883
+ },
884
+ setup(o) {
885
+ return (e, t) => (openBlock(), createElementBlock("div", {
886
+ 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",
887
+ innerHTML: e.editor
888
+ }, null, 8, _hoisted_1$3));
889
+ }
890
+ }), _hoisted_1$2 = { class: "!ire-text-3xl ire-font-bold" }, _hoisted_2$1 = ["src"], _sfc_main$3 = /* @__PURE__ */ defineComponent({
891
+ __name: "ActionModal",
892
+ props: {
893
+ modalData: {}
894
+ },
895
+ setup(o) {
896
+ return (e, t) => {
897
+ var r, n, p, c, l, i, a, m;
898
+ return openBlock(), createElementBlock("div", null, [
899
+ createElementVNode("p", _hoisted_1$2, toDisplayString((n = (r = e.modalData) == null ? void 0 : r.modalObject) == null ? void 0 : n.title), 1),
900
+ createVNode(_sfc_main$4, {
901
+ editor: (c = (p = e.modalData) == null ? void 0 : p.modalObject) == null ? void 0 : c.description
902
+ }, null, 8, ["editor"]),
903
+ (i = (l = e.modalData.modalObject.modalImage) == null ? void 0 : l[0]) != null && i.url ? (openBlock(), createElementBlock("img", {
904
+ key: 0,
905
+ src: (m = (a = e.modalData.modalObject.modalImage) == null ? void 0 : a[0]) == null ? void 0 : m.url,
906
+ alt: "",
907
+ class: "ire-mt-5 ire-h-[400px] ire-w-full ire-object-contain"
908
+ }, null, 8, _hoisted_2$1)) : createCommentVNode("", !0)
909
+ ]);
910
+ };
911
+ }
912
+ }), _hoisted_1$1 = { class: "lg:!ire-text-xl" }, _hoisted_2 = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden ire-pt-[50%]" }, _hoisted_3 = ["src"], _hoisted_4 = ["innerHTML"], _sfc_main$2 = /* @__PURE__ */ defineComponent({
913
+ __name: "BlockPreview",
914
+ props: {
915
+ block: {},
916
+ flats: {},
917
+ floors: {}
918
+ },
919
+ emits: ["changeComponent"],
920
+ setup(o, { emit: e }) {
921
+ const t = e, r = o, n = ref(), p = ref(), c = ref(), l = ref(), i = computed$1(() => {
922
+ var d, u;
923
+ if ((d = r.block) != null && d.svg)
924
+ return (u = r.block) == null ? void 0 : u.svg;
925
+ }), a = (d) => {
926
+ const u = d.target;
927
+ u && (p.value = u);
928
+ }, m = (d) => {
929
+ var g, h, b;
930
+ d.target.nodeName === "path" && (((g = l.value) == null ? void 0 : g.conf) === "sold" || ((h = l.value) == null ? void 0 : h.conf) === "reserved" || t(
931
+ "changeComponent",
932
+ ((b = c.value) == null ? void 0 : b.type) || "",
933
+ l.value
934
+ ));
935
+ };
936
+ return watch(
937
+ () => p.value,
938
+ (d) => {
939
+ var g, h, b, s, f;
940
+ if (!d) return;
941
+ const u = d.parentElement;
942
+ if (u && u.nodeName === "g") {
943
+ const k = u.getAttribute("id");
944
+ if (!k || (c.value = ((g = r.block) == null ? void 0 : g.polygon_data.find((_) => _.key === k)) || null, !c.value)) return;
945
+ if (((h = c.value) == null ? void 0 : h.type) === "floor") {
946
+ const _ = (b = r.floors) == null ? void 0 : b.find(
947
+ (v) => {
948
+ var y;
949
+ return (v == null ? void 0 : v.id) === ((y = c.value) == null ? void 0 : y.id);
950
+ }
951
+ );
952
+ l.value = _;
953
+ } else if (((s = c.value) == null ? void 0 : s.type) === "flat") {
954
+ const _ = (f = r.flats) == null ? void 0 : f.find(
955
+ (v) => {
956
+ var y;
957
+ return (v == null ? void 0 : v.id) === ((y = c.value) == null ? void 0 : y.id);
958
+ }
959
+ );
960
+ l.value = _;
961
+ } else
962
+ l.value = null;
963
+ } else
964
+ c.value = null, l.value = null;
965
+ }
966
+ ), (d, u) => {
967
+ var g;
968
+ return openBlock(), createBlock(_sfc_main$f, {
969
+ hoverdData: l.value,
970
+ type: (g = c.value) == null ? void 0 : g.type
971
+ }, {
972
+ header: withCtx(() => {
973
+ var h;
974
+ return [
975
+ createVNode(_sfc_main$b, {
976
+ onClick: u[0] || (u[0] = (b) => d.$emit("changeComponent", "project", null))
977
+ }),
978
+ createElementVNode("p", _hoisted_1$1, toDisplayString((h = d.block) == null ? void 0 : h.title), 1)
979
+ ];
980
+ }),
981
+ default: withCtx(() => {
982
+ var h, b, s, f, k, _;
983
+ return [
984
+ createElementVNode("div", _hoisted_2, [
985
+ createElementVNode("img", {
986
+ src: ((s = (b = (h = d.block) == null ? void 0 : h.block_image) == null ? void 0 : b[0]) == null ? void 0 : s.url) || "",
987
+ alt: "",
988
+ class: normalizeClass(["ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full", {
989
+ "ire-object-contain": d.block.img_contain,
990
+ "ire-object-cover": !d.block.img_contain
991
+ }])
992
+ }, null, 10, _hoisted_3),
993
+ (openBlock(), createElementBlock("div", {
994
+ ref_key: "svgRef",
995
+ ref: n,
996
+ 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", [
997
+ {
998
+ "hover:[&_path]:ire-fill-[var(--reserved-color)]": ((f = l.value) == null ? void 0 : f.conf) === "reserved",
999
+ "hover:[&_path]:ire-fill-[var(--sold-color)]": ((k = l.value) == null ? void 0 : k.conf) === "sold",
1000
+ "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((_ = l.value) != null && _.conf)
1001
+ }
1002
+ ]]),
1003
+ innerHTML: i.value,
1004
+ key: i.value,
1005
+ onMouseover: a,
1006
+ onClick: m
1007
+ }, null, 42, _hoisted_4))
1008
+ ])
1009
+ ];
1010
+ }),
1011
+ _: 1
1012
+ }, 8, ["hoverdData", "type"]);
1013
+ };
1014
+ }
1015
+ }), _hoisted_1 = { class: "ire-strokee" }, _sfc_main$1 = /* @__PURE__ */ defineComponent({
1016
+ __name: "Preview",
4
1017
  props: {
5
- text: {}
1018
+ shortcodeDataProps: {}
6
1019
  },
7
- setup(s) {
8
- return (t, r) => (n(), o("button", c, _(t.text), 1));
1020
+ setup(__props) {
1021
+ var o, e, t, r, n, p;
1022
+ const props = __props, getMeta = (c) => props.shortcodeDataProps.meta.find(
1023
+ (l) => l.meta_key === c
1024
+ ), constants = ref({
1025
+ PREVIEW_PATH_COLOR: getMeta("path_color").meta_value || "rgba(255, 255, 255, 0.3)",
1026
+ PREVIEW_PATH_HOVER_COLOR: getMeta("path_hover_color").meta_value || "rgba(250, 250, 250, 0.54)",
1027
+ PREVIEW_RESERVED_COLOR: getMeta("reserved_color").meta_value || "rgba(255, 247, 89, 0.53)",
1028
+ PREVIEW_SOLD_COLOR: getMeta("sold_color").meta_value || "rgba(219, 64, 64, 0.45)",
1029
+ PREVIEW_STROKE_COLOR: getMeta("stroke_color").meta_value || "rgba(0, 0, 0, 1)",
1030
+ PREVIEW_STROKE_WIDTH: +getMeta("stroke_width").meta_value || 0
1031
+ }), colors = reactive({
1032
+ path: (o = constants.value) == null ? void 0 : o.PREVIEW_PATH_COLOR,
1033
+ path_hover: (e = constants.value) == null ? void 0 : e.PREVIEW_PATH_HOVER_COLOR,
1034
+ reserved: (t = constants.value) == null ? void 0 : t.PREVIEW_RESERVED_COLOR,
1035
+ sold: (r = constants.value) == null ? void 0 : r.PREVIEW_SOLD_COLOR,
1036
+ stroke_color: (n = constants.value) == null ? void 0 : n.PREVIEW_STROKE_COLOR,
1037
+ stroke_width: (p = constants.value) == null ? void 0 : p.PREVIEW_STROKE_WIDTH
1038
+ }), cssVariables = computed$1(() => ({
1039
+ "--reserved-color": colors.reserved,
1040
+ "--sold-color": colors.sold,
1041
+ "--path-hover-color": colors.path_hover,
1042
+ "--path-color": colors.path,
1043
+ "--stroke-color": colors.stroke_color,
1044
+ "--stroke-width": colors.stroke_width + "px"
1045
+ })), shortcodeData = ref(props.shortcodeDataProps), flow = ref(
1046
+ "projectFlow"
1047
+ ), hoveredData = ref(), showModal = ref(!1), project = computed$1(() => {
1048
+ if (shortcodeData.value)
1049
+ return shortcodeData.value.project;
1050
+ }), floors = computed$1(() => {
1051
+ var c;
1052
+ if (shortcodeData.value)
1053
+ return (c = shortcodeData.value.floors) == null || c.forEach((l) => {
1054
+ const i = shortcodeData.value.flats.filter((m) => m.floor_number !== l.floor_number.toString() ? !1 : Object.values(l.polygon_data).some(
1055
+ (u) => u.type && u.type === "flat" && u.id === m.id ? l.block_id ? m.block_id === l.block_id.toString() : !m.block_id : !1
1056
+ ));
1057
+ l.flats = i;
1058
+ const { conf: a } = l || {};
1059
+ if (i != null && i.length && !a) {
1060
+ const m = i.every((u) => u.conf === "reserved"), d = i.every((u) => u.conf === "sold");
1061
+ m ? l.conf = "reserved" : d && (l.conf = "sold");
1062
+ }
1063
+ }), shortcodeData.value.floors;
1064
+ }), blocks = computed$1(() => {
1065
+ if (shortcodeData.value)
1066
+ return shortcodeData.value.blocks;
1067
+ }), types = computed$1(() => {
1068
+ if (shortcodeData.value)
1069
+ return shortcodeData.value.types;
1070
+ }), flats = computed$1(() => {
1071
+ var c;
1072
+ if (shortcodeData.value)
1073
+ return (c = shortcodeData.value) == null ? void 0 : c.flats.map((l) => {
1074
+ var i;
1075
+ if (l != null && l.use_type || !(l != null && l.type)) {
1076
+ const a = (i = types.value) == null ? void 0 : i.find((m) => m.id === l.type_id);
1077
+ a && (l.type = a);
1078
+ }
1079
+ return l;
1080
+ });
1081
+ }), actions = computed$1(() => {
1082
+ if (shortcodeData.value)
1083
+ return shortcodeData.value.actions;
1084
+ }), projectMeta = computed$1(() => {
1085
+ if (shortcodeData.value)
1086
+ return shortcodeData.value.meta;
1087
+ }), getColorMeta = (c) => {
1088
+ var l, i;
1089
+ return (i = (l = projectMeta.value) == null ? void 0 : l.find((a) => a.meta_key === c)) == null ? void 0 : i.meta_value;
1090
+ }, changeRoute = (flowType, polygonItem) => {
1091
+ switch (flowType) {
1092
+ case "project":
1093
+ flow.value = "projectFlow";
1094
+ break;
1095
+ case "floor":
1096
+ flow.value = "floorFlow", hoveredData.value = polygonItem;
1097
+ break;
1098
+ case "block":
1099
+ flow.value = "blockFlow", hoveredData.value = polygonItem;
1100
+ break;
1101
+ case "flat":
1102
+ flow.value = "flatFlow", hoveredData.value = polygonItem;
1103
+ break;
1104
+ case "tooltip":
1105
+ const actionData = polygonItem == null ? void 0 : polygonItem.data;
1106
+ if (hoveredData.value = actionData, actionData.actionType === "url")
1107
+ window.open(
1108
+ actionData.url,
1109
+ actionData.targetBlank ? "_blank" : "_self"
1110
+ );
1111
+ else if (actionData.actionType === "modal")
1112
+ showModal.value = !0;
1113
+ else if (actionData.actionType === "script")
1114
+ try {
1115
+ eval(actionData == null ? void 0 : actionData.script);
1116
+ } catch (c) {
1117
+ console.error("Error executing script:", c);
1118
+ }
1119
+ break;
1120
+ }
1121
+ };
1122
+ return watch(
1123
+ () => projectMeta.value,
1124
+ () => {
1125
+ const c = getColorMeta("path_color"), l = getColorMeta("path_hover_color"), i = getColorMeta("reserved_color"), a = getColorMeta("sold_color"), m = getColorMeta("stroke_color"), d = getColorMeta("stroke_width");
1126
+ c && (colors.path = c.toString()), l && (colors.path_hover = l.toString()), i && (colors.reserved = i.toString()), a && (colors.sold = a.toString()), m && (colors.stroke_color = m.toString()), d && (colors.stroke_width = Number(d));
1127
+ }
1128
+ ), (c, l) => (openBlock(), createElementBlock("div", _hoisted_1, [
1129
+ createVNode(Transition, {
1130
+ name: "ire-fade-in-out",
1131
+ mode: "out-in",
1132
+ style: normalizeStyle(cssVariables.value)
1133
+ }, {
1134
+ default: withCtx(() => [
1135
+ shortcodeData.value ? (openBlock(), createElementBlock("div", { key: flow.value }, [
1136
+ flow.value === "projectFlow" ? (openBlock(), createBlock(_sfc_main$e, {
1137
+ key: 0,
1138
+ project: project.value,
1139
+ floors: floors.value,
1140
+ flats: flats.value,
1141
+ projectMeta: projectMeta.value,
1142
+ blocks: blocks.value,
1143
+ actions: actions.value,
1144
+ onChangeComponent: l[0] || (l[0] = (i, a) => changeRoute(i, a))
1145
+ }, null, 8, ["project", "floors", "flats", "projectMeta", "blocks", "actions"])) : flow.value === "blockFlow" && flats.value && floors.value && blocks.value ? (openBlock(), createBlock(_sfc_main$2, {
1146
+ key: 1,
1147
+ block: hoveredData.value,
1148
+ flats: flats.value,
1149
+ floors: floors.value,
1150
+ onChangeComponent: l[1] || (l[1] = (i, a) => changeRoute(i, a))
1151
+ }, null, 8, ["block", "flats", "floors"])) : flow.value === "floorFlow" && floors.value ? (openBlock(), createBlock(_sfc_main$a, {
1152
+ key: 2,
1153
+ flats: flats.value,
1154
+ floor: hoveredData.value,
1155
+ floors: floors.value,
1156
+ blocks: blocks.value,
1157
+ onChangeComponent: l[2] || (l[2] = (i, a) => changeRoute(i, a))
1158
+ }, null, 8, ["flats", "floor", "floors", "blocks"])) : flow.value === "flatFlow" ? (openBlock(), createBlock(_sfc_main$7, {
1159
+ key: 3,
1160
+ flat: hoveredData.value,
1161
+ floors: floors.value,
1162
+ onChangeComponent: l[3] || (l[3] = (i, a) => changeRoute(i, a))
1163
+ }, null, 8, ["flat", "floors"])) : createCommentVNode("", !0)
1164
+ ])) : createCommentVNode("", !0)
1165
+ ]),
1166
+ _: 1
1167
+ }, 8, ["style"]),
1168
+ (openBlock(), createBlock(Teleport, { to: "body" }, [
1169
+ createVNode(Transition, {
1170
+ name: "ire-fade-in-out",
1171
+ appear: ""
1172
+ }, {
1173
+ default: withCtx(() => [
1174
+ showModal.value ? (openBlock(), createBlock(_sfc_main$5, {
1175
+ key: 0,
1176
+ onClose: l[4] || (l[4] = (i) => showModal.value = !1)
1177
+ }, {
1178
+ default: withCtx(() => [
1179
+ createVNode(_sfc_main$3, { modalData: hoveredData.value }, null, 8, ["modalData"])
1180
+ ]),
1181
+ _: 1
1182
+ })) : createCommentVNode("", !0)
1183
+ ]),
1184
+ _: 1
1185
+ })
1186
+ ]))
1187
+ ]));
9
1188
  }
10
- }), p = { class: "bg-pink-500 text-orange-200" }, u = /* @__PURE__ */ e({
11
- __name: "MyDiv",
1189
+ }), _sfc_main = /* @__PURE__ */ defineComponent({
1190
+ __name: "Project",
12
1191
  props: {
13
- title: {},
14
- width: {}
1192
+ data: {}
15
1193
  },
16
- setup(s) {
17
- return (t, r) => (n(), o("button", p, "from package (ch anged 2)"));
1194
+ setup(o) {
1195
+ return (e, t) => (openBlock(), createElementBlock("div", null, [
1196
+ createVNode(_sfc_main$1, { "shortcode-data-props": e.data }, null, 8, ["shortcode-data-props"])
1197
+ ]));
18
1198
  }
19
1199
  });
20
1200
  export {
21
- i as MyButton,
22
- u as MyDiv
1201
+ _sfc_main as Project
23
1202
  };