ire-preview 2.0.5 → 2.0.6

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.
Files changed (2) hide show
  1. package/dist/lib.es.js +338 -338
  2. package/package.json +1 -1
package/dist/lib.es.js CHANGED
@@ -54,8 +54,8 @@ function prepareDeps(o) {
54
54
  function cleanupDeps(o) {
55
55
  let e, t = o.depsTail, r = t;
56
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;
57
+ const c = r.prevDep;
58
+ r.version === -1 ? (r === t && (t = c), removeSub(r), removeDep(r)) : e = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = c;
59
59
  }
60
60
  o.deps = e, o.depsTail = t;
61
61
  }
@@ -78,20 +78,20 @@ function refreshComputed(o) {
78
78
  activeSub = o, shouldTrack = !0;
79
79
  try {
80
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;
81
+ const c = o.fn(o._value);
82
+ (e.version === 0 || hasChanged(c, o._value)) && (o._value = c, e.version++);
83
+ } catch (c) {
84
+ throw e.version++, c;
85
85
  } finally {
86
86
  activeSub = t, shouldTrack = r, cleanupDeps(o), o.flags &= -3;
87
87
  }
88
88
  }
89
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)) {
90
+ const { dep: t, prevSub: r, nextSub: c } = o;
91
+ if (r && (r.nextSub = c, o.prevSub = void 0), c && (c.prevSub = r, o.nextSub = void 0), t.subs === o && (t.subs = r, !r && t.computed)) {
92
92
  t.computed.flags &= -5;
93
- for (let v = t.computed.deps; v; v = v.nextDep)
94
- removeSub(v, !0);
93
+ for (let _ = t.computed.deps; _; _ = _.nextDep)
94
+ removeSub(_, !0);
95
95
  }
96
96
  !e && !--t.sc && t.map && t.map.delete(t.key);
97
97
  }
@@ -170,8 +170,8 @@ class ComputedRefImpl {
170
170
  }
171
171
  }
172
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);
173
+ let r, c;
174
+ return isFunction(o) ? r = o : (r = o.get, c = o.set), new ComputedRefImpl(r, c, t);
175
175
  }
176
176
  const _hoisted_1$f = {
177
177
  key: 0,
@@ -219,7 +219,7 @@ const _hoisted_1$f = {
219
219
  return (e, t) => (openBlock(), createElementBlock("div", null, [
220
220
  createVNode(Transition, { name: "ire-fade-in-out" }, {
221
221
  default: withCtx(() => {
222
- var r, n, v, a, d, i, s, b, u, c, _, h, k, l, p, f, m, g, y, w, x, C, V, $, E, B, N;
222
+ var r, c, _, m, y, p, f, x, v, s, n, i, d, l, a, h, u, k, g, b, w, C, V, $, E, B, N;
223
223
  return [
224
224
  e.type && e.hoveredData && e.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$f, [
225
225
  e.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$8, [
@@ -227,33 +227,33 @@ const _hoisted_1$f = {
227
227
  createElementVNode("p", _hoisted_4$5, toDisplayString((r = e.hoveredData) == null ? void 0 : r.floor_number), 1),
228
228
  t[0] || (t[0] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Floor", -1))
229
229
  ]),
230
- (n = e.hoveredData) != null && n.conf || (a = (v = e.hoveredData) == null ? void 0 : v.flats) != null && a.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
231
- (d = e.hoveredData) != null && d.conf ? (openBlock(), createElementBlock("div", _hoisted_6$1, toDisplayString((i = e.hoveredData) == null ? void 0 : i.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$1, [
232
- (b = (s = e.hoveredData) == null ? void 0 : s.counts) != null && b.available ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
233
- createElementVNode("p", _hoisted_9$1, toDisplayString(((c = (u = e.hoveredData) == null ? void 0 : u.counts) == null ? void 0 : c.available) || 0), 1),
230
+ (c = e.hoveredData) != null && c.conf || (m = (_ = e.hoveredData) == null ? void 0 : _.flats) != null && m.length ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
231
+ (y = e.hoveredData) != null && y.conf ? (openBlock(), createElementBlock("div", _hoisted_6$1, toDisplayString((p = e.hoveredData) == null ? void 0 : p.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$1, [
232
+ (x = (f = e.hoveredData) == null ? void 0 : f.counts) != null && x.available ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
233
+ createElementVNode("p", _hoisted_9$1, toDisplayString(((s = (v = e.hoveredData) == null ? void 0 : v.counts) == null ? void 0 : s.available) || 0), 1),
234
234
  t[1] || (t[1] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Available", -1))
235
235
  ])) : createCommentVNode("", !0),
236
- (h = (_ = e.hoveredData) == null ? void 0 : _.counts) != null && h.reserved ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
237
- createElementVNode("p", _hoisted_11$1, toDisplayString((l = (k = e.hoveredData) == null ? void 0 : k.counts) == null ? void 0 : l.reserved), 1),
236
+ (i = (n = e.hoveredData) == null ? void 0 : n.counts) != null && i.reserved ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
237
+ createElementVNode("p", _hoisted_11$1, toDisplayString((l = (d = e.hoveredData) == null ? void 0 : d.counts) == null ? void 0 : l.reserved), 1),
238
238
  t[2] || (t[2] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Reserved", -1))
239
239
  ])) : createCommentVNode("", !0),
240
- (f = (p = e.hoveredData) == null ? void 0 : p.counts) != null && f.sold ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
241
- createElementVNode("p", _hoisted_13$1, toDisplayString((g = (m = e.hoveredData) == null ? void 0 : m.counts) == null ? void 0 : g.sold), 1),
240
+ (h = (a = e.hoveredData) == null ? void 0 : a.counts) != null && h.sold ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
241
+ createElementVNode("p", _hoisted_13$1, toDisplayString((k = (u = e.hoveredData) == null ? void 0 : u.counts) == null ? void 0 : k.sold), 1),
242
242
  t[3] || (t[3] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Sold", -1))
243
243
  ])) : createCommentVNode("", !0)
244
244
  ]))
245
245
  ])) : createCommentVNode("", !0)
246
246
  ])) : e.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
247
247
  createElementVNode("div", _hoisted_15$1, [
248
- createElementVNode("p", _hoisted_16$1, toDisplayString((y = e.hoveredData) == null ? void 0 : y.title), 1)
248
+ createElementVNode("p", _hoisted_16$1, toDisplayString((g = e.hoveredData) == null ? void 0 : g.title), 1)
249
249
  ])
250
250
  ])) : e.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_17$1, [
251
251
  createElementVNode("div", _hoisted_18$1, [
252
- createElementVNode("p", _hoisted_19$1, toDisplayString((w = e.hoveredData) == null ? void 0 : w.flat_number), 1),
252
+ createElementVNode("p", _hoisted_19$1, toDisplayString((b = e.hoveredData) == null ? void 0 : b.flat_number), 1),
253
253
  t[4] || (t[4] = createElementVNode("p", { class: "!ire-mt-2 !ire-text-xs ire-uppercase" }, "Apartment", -1))
254
254
  ]),
255
255
  createElementVNode("div", _hoisted_20$1, [
256
- (x = e.hoveredData) != null && x.conf ? (openBlock(), createElementBlock("p", _hoisted_21$1, toDisplayString(e.hoveredData.conf), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
256
+ (w = e.hoveredData) != null && w.conf ? (openBlock(), createElementBlock("p", _hoisted_21$1, toDisplayString(e.hoveredData.conf), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
257
257
  t[7] || (t[7] = createElementVNode("p", { class: "!ire-text-xs ire-uppercase ire-text-gray-500" }, "Price", -1)),
258
258
  (C = e.hoveredData) != null && C.price ? (openBlock(), createElementBlock("div", _hoisted_22$1, [
259
259
  createElementVNode("div", null, [
@@ -319,95 +319,95 @@ const _hoisted_1$f = {
319
319
  },
320
320
  emits: ["changeComponent"],
321
321
  setup(o, { emit: e }) {
322
- const t = e, r = o, n = ref(), v = ref(), a = ref(null), d = computed(() => {
322
+ const t = e, r = o, c = ref(), _ = ref(), m = ref(null), y = computed(() => {
323
323
  if (r.project)
324
324
  return r.project.svg;
325
- }), i = computed(() => {
326
- var c, _;
327
- const u = (_ = (c = r.projectMeta) == null ? void 0 : c.find(
328
- (h) => (h == null ? void 0 : h.meta_key) === "project_img_contain"
329
- )) == null ? void 0 : _.meta_value;
330
- return JSON.parse((u == null ? void 0 : u.toString()) || "false");
331
- }), s = (u) => {
332
- const c = u.target;
333
- c && (n.value = c);
334
- }, b = (u) => {
335
- var _, h, k;
336
- const c = u.target;
337
- (c == null ? void 0 : c.nodeName) === "path" && (((_ = v.value) == null ? void 0 : _.conf) === "sold" || ((h = v.value) == null ? void 0 : h.conf) === "reserved" || t("changeComponent", ((k = a.value) == null ? void 0 : k.type) || "", v == null ? void 0 : v.value));
325
+ }), p = computed(() => {
326
+ var s, n;
327
+ const v = (n = (s = r.projectMeta) == null ? void 0 : s.find(
328
+ (i) => (i == null ? void 0 : i.meta_key) === "project_img_contain"
329
+ )) == null ? void 0 : n.meta_value;
330
+ return JSON.parse((v == null ? void 0 : v.toString()) || "false");
331
+ }), f = (v) => {
332
+ const s = v.target;
333
+ s && (c.value = s);
334
+ }, x = (v) => {
335
+ var n, i, d;
336
+ const s = v.target;
337
+ (s == null ? void 0 : s.nodeName) === "path" && (((n = _.value) == null ? void 0 : n.conf) === "sold" || ((i = _.value) == null ? void 0 : i.conf) === "reserved" || t("changeComponent", ((d = m.value) == null ? void 0 : d.type) || "", _ == null ? void 0 : _.value));
338
338
  };
339
339
  return watch(
340
- () => n.value,
341
- (u) => {
342
- var _, h, k, l, p, f, m;
343
- if (!u) return;
344
- const c = u.parentElement;
345
- if (c && (c == null ? void 0 : c.nodeName) === "g") {
346
- const g = c == null ? void 0 : c.getAttribute("id");
347
- if (!g || (a.value = ((_ = r.project) == null ? void 0 : _.polygon_data.find((w) => (w == null ? void 0 : w.key) === g)) || null, !a.value)) return;
348
- const y = (h = a.value) == null ? void 0 : h.id;
349
- switch ((k = a.value) == null ? void 0 : k.type) {
340
+ () => c.value,
341
+ (v) => {
342
+ var n, i, d, l, a, h, u;
343
+ if (!v) return;
344
+ const s = v.parentElement;
345
+ if (s && (s == null ? void 0 : s.nodeName) === "g") {
346
+ const k = s == null ? void 0 : s.getAttribute("id");
347
+ if (!k || (m.value = ((n = r.project) == null ? void 0 : n.polygon_data.find((b) => (b == null ? void 0 : b.key) === k)) || null, !m.value)) return;
348
+ const g = (i = m.value) == null ? void 0 : i.id;
349
+ switch ((d = m.value) == null ? void 0 : d.type) {
350
350
  case "floor":
351
- const w = (l = r.floors) == null ? void 0 : l.find(
352
- ($) => $.id === y
351
+ const b = (l = r.floors) == null ? void 0 : l.find(
352
+ ($) => $.id === g
353
353
  );
354
- v.value = w;
354
+ _.value = b;
355
355
  break;
356
356
  case "block":
357
- const x = (p = r.blocks) == null ? void 0 : p.find(
358
- ($) => ($ == null ? void 0 : $.id) === y
357
+ const w = (a = r.blocks) == null ? void 0 : a.find(
358
+ ($) => ($ == null ? void 0 : $.id) === g
359
359
  );
360
- v.value = x;
360
+ _.value = w;
361
361
  break;
362
362
  case "flat":
363
- const C = (f = r.flats) == null ? void 0 : f.find(
364
- ($) => ($ == null ? void 0 : $.id) === y
363
+ const C = (h = r.flats) == null ? void 0 : h.find(
364
+ ($) => ($ == null ? void 0 : $.id) === g
365
365
  );
366
- v.value = C;
366
+ _.value = C;
367
367
  break;
368
368
  case "tooltip":
369
- const V = (m = r.actions) == null ? void 0 : m.find(
370
- ($) => ($ == null ? void 0 : $.id) === y
369
+ const V = (u = r.actions) == null ? void 0 : u.find(
370
+ ($) => ($ == null ? void 0 : $.id) === g
371
371
  );
372
- v.value = V;
372
+ _.value = V;
373
373
  break;
374
374
  default:
375
- v.value = null;
375
+ _.value = null;
376
376
  break;
377
377
  }
378
378
  } else
379
- a.value = null, v.value = null;
379
+ m.value = null, _.value = null;
380
380
  }
381
- ), (u, c) => {
382
- var _;
381
+ ), (v, s) => {
382
+ var n;
383
383
  return openBlock(), createBlock(_sfc_main$f, {
384
- hoverdData: v.value,
385
- type: (_ = a.value) == null ? void 0 : _.type
384
+ hoverdData: _.value,
385
+ type: (n = m.value) == null ? void 0 : n.type
386
386
  }, {
387
387
  default: withCtx(() => {
388
- var h, k, l, p, f, m;
388
+ var i, d, l, a, h, u;
389
389
  return [
390
390
  createElementVNode("div", _hoisted_1$d, [
391
391
  createElementVNode("img", {
392
- src: (l = (k = (h = u.project) == null ? void 0 : h.project_image) == null ? void 0 : k[0]) == null ? void 0 : l.url,
392
+ src: (l = (d = (i = v.project) == null ? void 0 : i.project_image) == null ? void 0 : d[0]) == null ? void 0 : l.url,
393
393
  alt: "",
394
394
  class: normalizeClass(["ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full", {
395
- "ire-object-contain": unref(i),
396
- "ire-object-cover": !unref(i)
395
+ "ire-object-contain": unref(p),
396
+ "ire-object-cover": !unref(p)
397
397
  }])
398
398
  }, null, 10, _hoisted_2$6),
399
399
  (openBlock(), createElementBlock("div", {
400
400
  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", [
401
401
  {
402
- "hover:[&_path]:ire-fill-[var(--reserved-color)]": v.value && ((p = v.value) == null ? void 0 : p.conf) === "reserved",
403
- "hover:[&_path]:ire-fill-[var(--sold-color)]": v.value && ((f = v.value) == null ? void 0 : f.conf) === "sold",
404
- "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((m = v.value) != null && m.conf)
402
+ "hover:[&_path]:ire-fill-[var(--reserved-color)]": _.value && ((a = _.value) == null ? void 0 : a.conf) === "reserved",
403
+ "hover:[&_path]:ire-fill-[var(--sold-color)]": _.value && ((h = _.value) == null ? void 0 : h.conf) === "sold",
404
+ "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((u = _.value) != null && u.conf)
405
405
  }
406
406
  ]]),
407
- innerHTML: unref(d),
408
- key: unref(d),
409
- onMouseover: s,
410
- onClick: b
407
+ innerHTML: unref(y),
408
+ key: unref(y),
409
+ onMouseover: f,
410
+ onClick: x
411
411
  }, null, 42, _hoisted_3$5))
412
412
  ])
413
413
  ];
@@ -438,15 +438,15 @@ const _hoisted_1$f = {
438
438
  t.label ? (openBlock(), createElementBlock("p", _hoisted_2$5, toDisplayString(t.label), 1)) : createCommentVNode("", !0),
439
439
  createElementVNode("div", _hoisted_3$4, [
440
440
  withDirectives(createElementVNode("select", {
441
- "onUpdate:modelValue": r[0] || (r[0] = (n) => e.value = n),
441
+ "onUpdate:modelValue": r[0] || (r[0] = (c) => e.value = c),
442
442
  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
443
  }, [
444
- (openBlock(!0), createElementBlock(Fragment, null, renderList(t.data, (n) => {
445
- var v, a;
444
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(t.data, (c) => {
445
+ var _, m;
446
446
  return openBlock(), createElementBlock("option", {
447
- value: n.value,
448
- disabled: ((v = n == null ? void 0 : n.title) == null ? void 0 : v.includes("reserved")) || ((a = n == null ? void 0 : n.title) == null ? void 0 : a.includes("sold"))
449
- }, toDisplayString(n.title), 9, _hoisted_4$4);
447
+ value: c.value,
448
+ disabled: ((_ = c == null ? void 0 : c.title) == null ? void 0 : _.includes("reserved")) || ((m = c == null ? void 0 : c.title) == null ? void 0 : m.includes("sold"))
449
+ }, toDisplayString(c.title), 9, _hoisted_4$4);
450
450
  }), 256))
451
451
  ], 512), [
452
452
  [vModelSelect, e.value]
@@ -470,8 +470,8 @@ const _hoisted_1$f = {
470
470
  }
471
471
  }), _export_sfc = (o, e) => {
472
472
  const t = o.__vccOpts || o;
473
- for (const [r, n] of e)
474
- t[r] = n;
473
+ for (const [r, c] of e)
474
+ t[r] = c;
475
475
  return t;
476
476
  }, _sfc_main$c = {}, _hoisted_1$b = {
477
477
  xmlns: "http://www.w3.org/2000/svg",
@@ -507,149 +507,149 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
507
507
  },
508
508
  emits: ["changeComponent"],
509
509
  setup(o, { emit: e }) {
510
- const t = e, r = o, n = ref(), v = ref(), a = ref(), d = ref(null), i = ref(), s = ref(), b = computed$1(() => {
510
+ const t = e, r = o, c = ref(), _ = ref(), m = ref(), y = ref(null), p = ref(), f = ref(), x = computed$1(() => {
511
511
  var l;
512
512
  if ((l = r.floor) != null && l.svg)
513
513
  return r.floor.svg;
514
- }), u = computed$1(() => r.floors.filter(
514
+ }), v = computed$1(() => r.floors.filter(
515
515
  (l) => {
516
- var p, f;
516
+ var a, h;
517
517
  return (
518
518
  // floorItem.conf !== "reserved" &&
519
519
  // floorItem.conf !== "sold" &&
520
- (p = r.floor) != null && p.block_id ? (l == null ? void 0 : l.block_id) === ((f = r.floor) == null ? void 0 : f.block_id) : !(l != null && l.block_id)
520
+ (a = r.floor) != null && a.block_id ? (l == null ? void 0 : l.block_id) === ((h = r.floor) == null ? void 0 : h.block_id) : !(l != null && l.block_id)
521
521
  );
522
522
  }
523
523
  ).map((l) => {
524
- var f, m;
525
- const p = (f = r.blocks) == null ? void 0 : f.find(
526
- (g) => {
527
- var y;
528
- return (g == null ? void 0 : g.id) === ((y = l == null ? void 0 : l.block_id) == null ? void 0 : y.toString());
524
+ var h, u;
525
+ const a = (h = r.blocks) == null ? void 0 : h.find(
526
+ (k) => {
527
+ var g;
528
+ return (k == null ? void 0 : k.id) === ((g = l == null ? void 0 : l.block_id) == null ? void 0 : g.toString());
529
529
  }
530
530
  );
531
531
  return {
532
- title: ((m = l == null ? void 0 : l.floor_number) == null ? void 0 : m.toString()) + " Floor" + (p != null && p.id ? ` - ${p == null ? void 0 : p.title}` : "") + (l != null && l.conf ? " " + l.conf : ""),
532
+ title: ((u = l == null ? void 0 : l.floor_number) == null ? void 0 : u.toString()) + " Floor" + (a != null && a.id ? ` - ${a == null ? void 0 : a.title}` : "") + (l != null && l.conf ? " " + l.conf : ""),
533
533
  value: l == null ? void 0 : l.id
534
534
  };
535
- }).sort((l, p) => +(l == null ? void 0 : l.title) - +(p == null ? void 0 : p.title)) || []), c = (l) => {
536
- const p = l.target;
537
- p && (v.value = p);
538
- }, _ = (l) => {
539
- var f, m, g;
540
- const p = l.target;
541
- (p == null ? void 0 : p.nodeName) === "path" && (d.value && "conf" in d.value && (((f = d.value) == null ? void 0 : f.conf) === "sold" || ((m = d.value) == null ? void 0 : m.conf) === "reserved") || t("changeComponent", ((g = a.value) == null ? void 0 : g.type) || "", d.value));
542
- }, h = () => {
535
+ }).sort((l, a) => +(l == null ? void 0 : l.title) - +(a == null ? void 0 : a.title)) || []), s = (l) => {
536
+ const a = l.target;
537
+ a && (_.value = a);
538
+ }, n = (l) => {
539
+ var h, u, k;
540
+ const a = l.target;
541
+ (a == null ? void 0 : a.nodeName) === "path" && (y.value && "conf" in y.value && (((h = y.value) == null ? void 0 : h.conf) === "sold" || ((u = y.value) == null ? void 0 : u.conf) === "reserved") || t("changeComponent", ((k = m.value) == null ? void 0 : k.type) || "", y.value));
542
+ }, i = () => {
543
543
  var l;
544
- n.value && ((l = n.value) == null ? void 0 : l.querySelectorAll("g")).forEach((f) => {
545
- var y, w, x, C, V, $;
546
- const m = f == null ? void 0 : f.getAttribute("id"), g = (w = (y = r.floor) == null ? void 0 : y.polygon_data) == null ? void 0 : w.find(
547
- (E) => (E == null ? void 0 : E.key) === m
544
+ c.value && ((l = c.value) == null ? void 0 : l.querySelectorAll("g")).forEach((h) => {
545
+ var g, b, w, C, V, $;
546
+ const u = h == null ? void 0 : h.getAttribute("id"), k = (b = (g = r.floor) == null ? void 0 : g.polygon_data) == null ? void 0 : b.find(
547
+ (E) => (E == null ? void 0 : E.key) === u
548
548
  );
549
549
  if (r.flats)
550
- if ((x = r.floor) != null && x.conf)
551
- f.setAttribute("conf", ((C = r.floor) == null ? void 0 : C.conf) || "");
550
+ if ((w = r.floor) != null && w.conf)
551
+ h.setAttribute("conf", ((C = r.floor) == null ? void 0 : C.conf) || "");
552
552
  else {
553
553
  const E = (V = r.flats) == null ? void 0 : V.find(
554
- (B) => (B == null ? void 0 : B.id) === (g == null ? void 0 : g.id)
554
+ (B) => (B == null ? void 0 : B.id) === (k == null ? void 0 : k.id)
555
555
  );
556
- f == null || f.setAttribute("conf", (($ = E == null ? void 0 : E.conf) == null ? void 0 : $.toString()) || "");
556
+ h == null || h.setAttribute("conf", (($ = E == null ? void 0 : E.conf) == null ? void 0 : $.toString()) || "");
557
557
  }
558
558
  });
559
- }, k = () => {
559
+ }, d = () => {
560
560
  var l;
561
- (l = r.floor) != null && l.block_id ? t("changeComponent", "block", s.value) : t("changeComponent", "project", null);
561
+ (l = r.floor) != null && l.block_id ? t("changeComponent", "block", f.value) : t("changeComponent", "project", null);
562
562
  };
563
563
  return watch(
564
- () => v.value,
564
+ () => _.value,
565
565
  (l) => {
566
- var f, m, g, y, w, x;
566
+ var h, u, k, g, b, w;
567
567
  if (!l) return;
568
- const p = l == null ? void 0 : l.parentElement;
569
- if (p && (p == null ? void 0 : p.nodeName) === "g") {
570
- const C = p.getAttribute("id");
571
- if (!C || (a.value = ((m = (f = r.floor) == null ? void 0 : f.polygon_data) == null ? void 0 : m.find((V) => (V == null ? void 0 : V.key) === C)) || null, !a.value)) return;
572
- if (((g = a.value) == null ? void 0 : g.type) === "flat") {
573
- const V = (y = r.flats) == null ? void 0 : y.find(
568
+ const a = l == null ? void 0 : l.parentElement;
569
+ if (a && (a == null ? void 0 : a.nodeName) === "g") {
570
+ const C = a.getAttribute("id");
571
+ if (!C || (m.value = ((u = (h = r.floor) == null ? void 0 : h.polygon_data) == null ? void 0 : u.find((V) => (V == null ? void 0 : V.key) === C)) || null, !m.value)) return;
572
+ if (((k = m.value) == null ? void 0 : k.type) === "flat") {
573
+ const V = (g = r.flats) == null ? void 0 : g.find(
574
574
  ($) => {
575
575
  var E;
576
- return ($ == null ? void 0 : $.id) === ((E = a.value) == null ? void 0 : E.id);
576
+ return ($ == null ? void 0 : $.id) === ((E = m.value) == null ? void 0 : E.id);
577
577
  }
578
578
  );
579
- d.value = V ?? null;
580
- } else if (((w = a.value) == null ? void 0 : w.type) === "tooltip") {
581
- const V = (x = r.actions) == null ? void 0 : x.find(
579
+ y.value = V ?? null;
580
+ } else if (((b = m.value) == null ? void 0 : b.type) === "tooltip") {
581
+ const V = (w = r.actions) == null ? void 0 : w.find(
582
582
  ($) => {
583
583
  var E;
584
- return ($ == null ? void 0 : $.id) === ((E = a.value) == null ? void 0 : E.id);
584
+ return ($ == null ? void 0 : $.id) === ((E = m.value) == null ? void 0 : E.id);
585
585
  }
586
586
  );
587
- d.value = V ?? null;
587
+ y.value = V ?? null;
588
588
  } else
589
- d.value = null;
589
+ y.value = null;
590
590
  } else
591
- a.value = null;
591
+ m.value = null;
592
592
  }
593
593
  ), watch(
594
- () => i.value,
594
+ () => p.value,
595
595
  () => {
596
- var p;
597
- const l = (p = r.floors) == null ? void 0 : p.find(
598
- (f) => (f == null ? void 0 : f.id) === (i == null ? void 0 : i.value)
596
+ var a;
597
+ const l = (a = r.floors) == null ? void 0 : a.find(
598
+ (h) => (h == null ? void 0 : h.id) === (p == null ? void 0 : p.value)
599
599
  );
600
600
  l != null && l.conf || (l && t("changeComponent", "floor", l), setTimeout(() => {
601
- h();
601
+ i();
602
602
  }, 0));
603
603
  }
604
604
  ), onMounted(() => {
605
- var l, p, f;
606
- s.value = (l = r.blocks) == null ? void 0 : l.find(
607
- (m) => {
608
- var g, y;
609
- return (m == null ? void 0 : m.id) === ((y = (g = r.floor) == null ? void 0 : g.block_id) == null ? void 0 : y.toString());
605
+ var l, a, h;
606
+ f.value = (l = r.blocks) == null ? void 0 : l.find(
607
+ (u) => {
608
+ var k, g;
609
+ return (u == null ? void 0 : u.id) === ((g = (k = r.floor) == null ? void 0 : k.block_id) == null ? void 0 : g.toString());
610
610
  }
611
- ), i.value = (f = (p = u.value) == null ? void 0 : p.find(
612
- (m) => {
613
- var g;
614
- return (m == null ? void 0 : m.value) == ((g = r.floor) == null ? void 0 : g.id);
611
+ ), p.value = (h = (a = v.value) == null ? void 0 : a.find(
612
+ (u) => {
613
+ var k;
614
+ return (u == null ? void 0 : u.value) == ((k = r.floor) == null ? void 0 : k.id);
615
615
  }
616
- )) == null ? void 0 : f.value, h();
617
- }), (l, p) => {
618
- var f;
616
+ )) == null ? void 0 : h.value, i();
617
+ }), (l, a) => {
618
+ var h;
619
619
  return openBlock(), createBlock(_sfc_main$f, {
620
- hoverdData: d.value,
621
- type: (f = a.value) == null ? void 0 : f.type
620
+ hoverdData: y.value,
621
+ type: (h = m.value) == null ? void 0 : h.type
622
622
  }, {
623
623
  header: withCtx(() => [
624
- createVNode(_sfc_main$b, { onClick: k }),
624
+ createVNode(_sfc_main$b, { onClick: d }),
625
625
  createElementVNode("div", _hoisted_1$9, [
626
626
  createVNode(_sfc_main$d, {
627
- modelValue: i.value,
628
- "onUpdate:modelValue": p[0] || (p[0] = (m) => i.value = m),
629
- data: u.value
627
+ modelValue: p.value,
628
+ "onUpdate:modelValue": a[0] || (a[0] = (u) => p.value = u),
629
+ data: v.value
630
630
  }, null, 8, ["modelValue", "data"])
631
631
  ])
632
632
  ]),
633
633
  default: withCtx(() => {
634
- var m, g, y, w, x;
634
+ var u, k, g, b, w;
635
635
  return [
636
636
  createElementVNode("div", _hoisted_2$4, [
637
637
  createElementVNode("img", {
638
- src: ((y = (g = (m = l.floor) == null ? void 0 : m.floor_image) == null ? void 0 : g[0]) == null ? void 0 : y.url) || "",
638
+ src: ((g = (k = (u = l.floor) == null ? void 0 : u.floor_image) == null ? void 0 : k[0]) == null ? void 0 : g.url) || "",
639
639
  alt: "",
640
640
  class: normalizeClass(["ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full", {
641
- "ire-object-contain": (w = l.floor) == null ? void 0 : w.img_contain,
642
- "ire-object-cover": !((x = l.floor) != null && x.img_contain)
641
+ "ire-object-contain": (b = l.floor) == null ? void 0 : b.img_contain,
642
+ "ire-object-cover": !((w = l.floor) != null && w.img_contain)
643
643
  }])
644
644
  }, null, 10, _hoisted_3$3),
645
645
  (openBlock(), createElementBlock("div", {
646
646
  ref_key: "svgRef",
647
- ref: n,
647
+ ref: c,
648
648
  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)]",
649
- innerHTML: b.value,
650
- key: b.value,
651
- onMouseover: c,
652
- onClick: _
649
+ innerHTML: x.value,
650
+ key: x.value,
651
+ onMouseover: s,
652
+ onClick: n
653
653
  }, null, 40, _hoisted_4$3))
654
654
  ])
655
655
  ];
@@ -725,35 +725,35 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
725
725
  },
726
726
  emits: ["changeComponent"],
727
727
  setup(o, { emit: e }) {
728
- const t = e, r = o, n = ref(!0), v = ref(0), a = computed$1(() => {
729
- var s, b, u, c, _, h;
730
- const i = n.value ? (u = (b = (s = r.flat) == null ? void 0 : s.type) == null ? void 0 : b.image_2d) == null ? void 0 : u.length : (h = (_ = (c = r.flat) == null ? void 0 : c.type) == null ? void 0 : _.image_3d) == null ? void 0 : h.length;
731
- return ["I", "II", "III"].slice(0, i);
732
- }), d = () => {
733
- var s;
734
- const i = (s = r.floors) == null ? void 0 : s.find(
735
- (b) => {
736
- var u, c, _, h, k, l;
737
- return ((u = b.floor_number) == null ? void 0 : u.toString()) === ((_ = (c = r.flat) == null ? void 0 : c.floor_number) == null ? void 0 : _.toString()) && ((h = r.flat) != null && h.block_id ? ((k = b == null ? void 0 : b.block_id) == null ? void 0 : k.toString()) === ((l = r.flat) == null ? void 0 : l.block_id) : !(b != null && b.block_id));
728
+ const t = e, r = o, c = ref(!0), _ = ref(0), m = computed$1(() => {
729
+ var f, x, v, s, n, i;
730
+ const p = c.value ? (v = (x = (f = r.flat) == null ? void 0 : f.type) == null ? void 0 : x.image_2d) == null ? void 0 : v.length : (i = (n = (s = r.flat) == null ? void 0 : s.type) == null ? void 0 : n.image_3d) == null ? void 0 : i.length;
731
+ return ["I", "II", "III"].slice(0, p);
732
+ }), y = () => {
733
+ var f;
734
+ const p = (f = r.floors) == null ? void 0 : f.find(
735
+ (x) => {
736
+ var v, s, n, i, d, l;
737
+ return ((v = x.floor_number) == null ? void 0 : v.toString()) === ((n = (s = r.flat) == null ? void 0 : s.floor_number) == null ? void 0 : n.toString()) && ((i = r.flat) != null && i.block_id ? ((d = x == null ? void 0 : x.block_id) == null ? void 0 : d.toString()) === ((l = r.flat) == null ? void 0 : l.block_id) : !(x != null && x.block_id));
738
738
  }
739
739
  );
740
- i ? t("changeComponent", "floor", i) : t("changeComponent", "project", null);
740
+ p ? t("changeComponent", "floor", p) : t("changeComponent", "project", null);
741
741
  };
742
742
  return watch(
743
- () => n.value,
743
+ () => c.value,
744
744
  () => {
745
- v.value = 0;
745
+ _.value = 0;
746
746
  }
747
747
  ), onMounted(() => {
748
- var i, s;
749
- (s = (i = r.flat) == null ? void 0 : i.type) != null && s.image_2d || (n.value = !1);
750
- }), (i, s) => (openBlock(), createElementBlock("div", null, [
748
+ var p, f;
749
+ (f = (p = r.flat) == null ? void 0 : p.type) != null && f.image_2d || (c.value = !1);
750
+ }), (p, f) => (openBlock(), createElementBlock("div", null, [
751
751
  createVNode(_sfc_main$f, { "hoverd-data": null }, {
752
752
  header: withCtx(() => [
753
- createVNode(_sfc_main$b, { onClick: d })
753
+ createVNode(_sfc_main$b, { onClick: y })
754
754
  ]),
755
755
  default: withCtx(() => {
756
- var b, u, c, _, h, k, l, p, f, m, g, y, w, x, C, V, $, E, B, N, j, L, T, R, P, O, F;
756
+ var x, v, s, n, i, d, l, a, h, u, k, g, b, w, C, V, $, E, B, N, j, L, T, R, P, O, F;
757
757
  return [
758
758
  createElementVNode("div", _hoisted_1$6, [
759
759
  createElementVNode("div", _hoisted_2$3, [
@@ -764,13 +764,13 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
764
764
  default: withCtx(() => {
765
765
  var D, S, M, I, A, H, z, W, K, Z, q, U, J, Q, X, Y, G, ee, te, oe, re, ie, le, se;
766
766
  return [
767
- n.value && ((I = (M = (S = (D = i.flat) == null ? void 0 : D.type) == null ? void 0 : S.image_2d) == null ? void 0 : M[v.value]) != null && I.url) ? (openBlock(), createElementBlock("img", {
768
- key: (W = (z = (H = (A = i.flat) == null ? void 0 : A.type) == null ? void 0 : H.image_2d) == null ? void 0 : z[v.value]) == null ? void 0 : W.url,
769
- src: (U = (q = (Z = (K = i.flat) == null ? void 0 : K.type) == null ? void 0 : Z.image_2d) == null ? void 0 : q[v.value]) == null ? void 0 : U.url,
767
+ c.value && ((I = (M = (S = (D = p.flat) == null ? void 0 : D.type) == null ? void 0 : S.image_2d) == null ? void 0 : M[_.value]) != null && I.url) ? (openBlock(), createElementBlock("img", {
768
+ key: (W = (z = (H = (A = p.flat) == null ? void 0 : A.type) == null ? void 0 : H.image_2d) == null ? void 0 : z[_.value]) == null ? void 0 : W.url,
769
+ src: (U = (q = (Z = (K = p.flat) == null ? void 0 : K.type) == null ? void 0 : Z.image_2d) == null ? void 0 : q[_.value]) == null ? void 0 : U.url,
770
770
  class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
771
- }, null, 8, _hoisted_3$2)) : (Y = (X = (Q = (J = i.flat) == null ? void 0 : J.type) == null ? void 0 : Q.image_3d) == null ? void 0 : X[v.value]) != null && Y.url ? (openBlock(), createElementBlock("img", {
772
- src: (oe = (te = (ee = (G = i.flat) == null ? void 0 : G.type) == null ? void 0 : ee.image_3d) == null ? void 0 : te[v.value]) == null ? void 0 : oe.url,
773
- key: (se = (le = (ie = (re = i.flat) == null ? void 0 : re.type) == null ? void 0 : ie.image_3d) == null ? void 0 : le[v.value]) == null ? void 0 : se.url,
771
+ }, null, 8, _hoisted_3$2)) : (Y = (X = (Q = (J = p.flat) == null ? void 0 : J.type) == null ? void 0 : Q.image_3d) == null ? void 0 : X[_.value]) != null && Y.url ? (openBlock(), createElementBlock("img", {
772
+ src: (oe = (te = (ee = (G = p.flat) == null ? void 0 : G.type) == null ? void 0 : ee.image_3d) == null ? void 0 : te[_.value]) == null ? void 0 : oe.url,
773
+ key: (se = (le = (ie = (re = p.flat) == null ? void 0 : re.type) == null ? void 0 : ie.image_3d) == null ? void 0 : le[_.value]) == null ? void 0 : se.url,
774
774
  class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
775
775
  }, null, 8, _hoisted_4$2)) : createCommentVNode("", !0)
776
776
  ];
@@ -779,93 +779,93 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
779
779
  }),
780
780
  createElementVNode("div", _hoisted_5, [
781
781
  createElementVNode("div", _hoisted_6, [
782
- (_ = (c = (u = (b = i.flat) == null ? void 0 : b.type) == null ? void 0 : u.image_2d) == null ? void 0 : c[0]) != null && _.url ? (openBlock(), createElementBlock("div", {
782
+ (n = (s = (v = (x = p.flat) == null ? void 0 : x.type) == null ? void 0 : v.image_2d) == null ? void 0 : s[0]) != null && n.url ? (openBlock(), createElementBlock("div", {
783
783
  key: 0,
784
- 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": n.value }]),
785
- onClick: s[0] || (s[0] = (D) => n.value = !0)
784
+ 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": c.value }]),
785
+ onClick: f[0] || (f[0] = (D) => c.value = !0)
786
786
  }, [
787
787
  createVNode(FlatIcon, {
788
- class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": n.value }])
788
+ class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": c.value }])
789
789
  }, null, 8, ["class"]),
790
790
  createElementVNode("p", {
791
791
  class: normalizeClass(["group-hover:!ire-text-white", {
792
- "!ire-text-white": n.value,
793
- "!ire-text-black": !n.value
792
+ "!ire-text-white": c.value,
793
+ "!ire-text-black": !c.value
794
794
  }])
795
795
  }, " 2D plan ", 2)
796
796
  ], 2)) : createCommentVNode("", !0),
797
- (p = (l = (k = (h = i.flat) == null ? void 0 : h.type) == null ? void 0 : k.image_3d) == null ? void 0 : l[0]) != null && p.url ? (openBlock(), createElementBlock("div", {
797
+ (a = (l = (d = (i = p.flat) == null ? void 0 : i.type) == null ? void 0 : d.image_3d) == null ? void 0 : l[0]) != null && a.url ? (openBlock(), createElementBlock("div", {
798
798
  key: 1,
799
- 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": !n.value }]),
800
- onClick: s[1] || (s[1] = (D) => n.value = !1)
799
+ 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": !c.value }]),
800
+ onClick: f[1] || (f[1] = (D) => c.value = !1)
801
801
  }, [
802
802
  createElementVNode("div", null, [
803
803
  createVNode(Cube, {
804
- class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !n.value }])
804
+ class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !c.value }])
805
805
  }, null, 8, ["class"])
806
806
  ]),
807
807
  createElementVNode("p", {
808
808
  class: normalizeClass(["group-hover:!ire-text-white", {
809
- "!ire-text-white": !n.value,
810
- "!ire-text-black": n.value
809
+ "!ire-text-white": !c.value,
810
+ "!ire-text-black": c.value
811
811
  }])
812
812
  }, " 3D plan ", 2)
813
813
  ], 2)) : createCommentVNode("", !0)
814
814
  ]),
815
- ((f = a.value) == null ? void 0 : f.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
816
- (openBlock(!0), createElementBlock(Fragment, null, renderList(a.value, (D, S) => (openBlock(), createElementBlock("div", {
815
+ ((h = m.value) == null ? void 0 : h.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
816
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(m.value, (D, S) => (openBlock(), createElementBlock("div", {
817
817
  key: D,
818
818
  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", {
819
- "ire-bg-black ire-text-white": v.value === S
819
+ "ire-bg-black ire-text-white": _.value === S
820
820
  }]),
821
- onClick: (M) => v.value = S
821
+ onClick: (M) => _.value = S
822
822
  }, toDisplayString(D), 11, _hoisted_8))), 128))
823
823
  ])) : createCommentVNode("", !0)
824
824
  ])
825
825
  ]),
826
826
  createElementVNode("div", _hoisted_9, [
827
827
  createElementVNode("div", _hoisted_10, [
828
- createElementVNode("p", _hoisted_11, toDisplayString((m = i.flat) == null ? void 0 : m.flat_number), 1),
829
- s[2] || (s[2] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Apartment", -1))
828
+ createElementVNode("p", _hoisted_11, toDisplayString((u = p.flat) == null ? void 0 : u.flat_number), 1),
829
+ f[2] || (f[2] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Apartment", -1))
830
830
  ]),
831
831
  createElementVNode("div", _hoisted_12, [
832
- createElementVNode("p", _hoisted_13, toDisplayString((y = (g = i.flat) == null ? void 0 : g.type) == null ? void 0 : y.title), 1),
833
- createElementVNode("p", _hoisted_14, toDisplayString((x = (w = i.flat) == null ? void 0 : w.type) == null ? void 0 : x.teaser), 1)
832
+ createElementVNode("p", _hoisted_13, toDisplayString((g = (k = p.flat) == null ? void 0 : k.type) == null ? void 0 : g.title), 1),
833
+ createElementVNode("p", _hoisted_14, toDisplayString((w = (b = p.flat) == null ? void 0 : b.type) == null ? void 0 : w.teaser), 1)
834
834
  ]),
835
835
  createElementVNode("div", _hoisted_15, [
836
- (C = i.flat) != null && C.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
837
- createElementVNode("p", _hoisted_17, toDisplayString((V = i.flat) == null ? void 0 : V.floor_number), 1),
838
- s[3] || (s[3] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Floor", -1))
836
+ (C = p.flat) != null && C.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
837
+ createElementVNode("p", _hoisted_17, toDisplayString((V = p.flat) == null ? void 0 : V.floor_number), 1),
838
+ f[3] || (f[3] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Floor", -1))
839
839
  ])) : createCommentVNode("", !0),
840
- (E = ($ = i.flat) == null ? void 0 : $.type) != null && E.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
841
- createElementVNode("p", _hoisted_19, toDisplayString((B = i.flat) == null ? void 0 : B.type.rooms_count), 1),
842
- s[4] || (s[4] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Room", -1))
840
+ (E = ($ = p.flat) == null ? void 0 : $.type) != null && E.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
841
+ createElementVNode("p", _hoisted_19, toDisplayString((B = p.flat) == null ? void 0 : B.type.rooms_count), 1),
842
+ f[4] || (f[4] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Room", -1))
843
843
  ])) : createCommentVNode("", !0)
844
844
  ]),
845
- (j = (N = i.flat) == null ? void 0 : N.type) != null && j.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
845
+ (j = (N = p.flat) == null ? void 0 : N.type) != null && j.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
846
846
  createElementVNode("p", _hoisted_21, [
847
- createTextVNode(toDisplayString((L = i.flat) == null ? void 0 : L.type.area_m2) + " ", 1),
848
- s[5] || (s[5] = createElementVNode("span", { class: "ire-font-light" }, [
847
+ createTextVNode(toDisplayString((L = p.flat) == null ? void 0 : L.type.area_m2) + " ", 1),
848
+ f[5] || (f[5] = createElementVNode("span", { class: "ire-font-light" }, [
849
849
  createTextVNode(" M "),
850
850
  createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
851
851
  ], -1))
852
852
  ]),
853
- s[6] || (s[6] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Area", -1))
853
+ f[6] || (f[6] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Area", -1))
854
854
  ])) : createCommentVNode("", !0),
855
- (T = i.flat) != null && T.price ? (openBlock(), createElementBlock("div", _hoisted_22, [
855
+ (T = p.flat) != null && T.price ? (openBlock(), createElementBlock("div", _hoisted_22, [
856
856
  createElementVNode("div", null, [
857
- (R = i.flat) != null && R.offer_price ? (openBlock(), createElementBlock("div", _hoisted_24, [
858
- createElementVNode("p", _hoisted_25, toDisplayString(Number((O = i.flat) == null ? void 0 : O.price).toLocaleString()), 1),
857
+ (R = p.flat) != null && R.offer_price ? (openBlock(), createElementBlock("div", _hoisted_24, [
858
+ createElementVNode("p", _hoisted_25, toDisplayString(Number((O = p.flat) == null ? void 0 : O.price).toLocaleString()), 1),
859
859
  createElementVNode("p", _hoisted_26, [
860
- createTextVNode(toDisplayString(Number((F = i.flat) == null ? void 0 : F.offer_price).toLocaleString()), 1),
861
- s[8] || (s[8] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
860
+ createTextVNode(toDisplayString(Number((F = p.flat) == null ? void 0 : F.offer_price).toLocaleString()), 1),
861
+ f[8] || (f[8] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
862
862
  ])
863
863
  ])) : (openBlock(), createElementBlock("p", _hoisted_23, [
864
- createTextVNode(toDisplayString(Number((P = i.flat) == null ? void 0 : P.price).toLocaleString()), 1),
865
- s[7] || (s[7] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
864
+ createTextVNode(toDisplayString(Number((P = p.flat) == null ? void 0 : P.price).toLocaleString()), 1),
865
+ f[7] || (f[7] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
866
866
  ]))
867
867
  ]),
868
- s[9] || (s[9] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Price", -1))
868
+ f[9] || (f[9] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Price", -1))
869
869
  ])) : createCommentVNode("", !0)
870
870
  ])
871
871
  ])
@@ -930,15 +930,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
930
930
  },
931
931
  setup(o) {
932
932
  return (e, t) => {
933
- var r, n, v, a, d, i, s, b, u, c, _, h;
933
+ var r, c, _, m, y, p, f, x, v, s, n, i;
934
934
  return openBlock(), createElementBlock("div", null, [
935
- createElementVNode("p", _hoisted_1$2, toDisplayString((n = (r = e.modalData) == null ? void 0 : r.modalObject) == null ? void 0 : n.title), 1),
935
+ createElementVNode("p", _hoisted_1$2, toDisplayString((c = (r = e.modalData) == null ? void 0 : r.modalObject) == null ? void 0 : c.title), 1),
936
936
  createVNode(_sfc_main$4, {
937
- editor: (a = (v = e.modalData) == null ? void 0 : v.modalObject) == null ? void 0 : a.description
937
+ editor: (m = (_ = e.modalData) == null ? void 0 : _.modalObject) == null ? void 0 : m.description
938
938
  }, null, 8, ["editor"]),
939
- (b = (s = (i = (d = e.modalData) == null ? void 0 : d.modalObject) == null ? void 0 : i.modalImage) == null ? void 0 : s[0]) != null && b.url ? (openBlock(), createElementBlock("img", {
939
+ (x = (f = (p = (y = e.modalData) == null ? void 0 : y.modalObject) == null ? void 0 : p.modalImage) == null ? void 0 : f[0]) != null && x.url ? (openBlock(), createElementBlock("img", {
940
940
  key: 0,
941
- src: (h = (_ = (c = (u = e.modalData) == null ? void 0 : u.modalObject) == null ? void 0 : c.modalImage) == null ? void 0 : _[0]) == null ? void 0 : h.url,
941
+ src: (i = (n = (s = (v = e.modalData) == null ? void 0 : v.modalObject) == null ? void 0 : s.modalImage) == null ? void 0 : n[0]) == null ? void 0 : i.url,
942
942
  alt: "",
943
943
  class: "ire-mt-5 ire-h-[400px] ire-w-full ire-object-contain"
944
944
  }, null, 8, _hoisted_2$1)) : createCommentVNode("", !0)
@@ -955,101 +955,101 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
955
955
  },
956
956
  emits: ["changeComponent"],
957
957
  setup(o, { emit: e }) {
958
- const t = e, r = o, n = ref(), v = ref(), a = ref(), d = ref(), i = computed$1(() => {
959
- var u, c;
960
- if ((u = r.block) != null && u.svg)
961
- return (c = r.block) == null ? void 0 : c.svg;
962
- }), s = (u) => {
963
- const c = u.target;
964
- c && (v.value = c);
965
- }, b = (u) => {
966
- var _, h, k;
967
- const c = u.target;
968
- (c == null ? void 0 : c.nodeName) === "path" && (((_ = d.value) == null ? void 0 : _.conf) === "sold" || ((h = d.value) == null ? void 0 : h.conf) === "reserved" || t(
958
+ const t = e, r = o, c = ref(), _ = ref(), m = ref(), y = ref(), p = computed$1(() => {
959
+ var v, s;
960
+ if ((v = r.block) != null && v.svg)
961
+ return (s = r.block) == null ? void 0 : s.svg;
962
+ }), f = (v) => {
963
+ const s = v.target;
964
+ s && (_.value = s);
965
+ }, x = (v) => {
966
+ var n, i, d;
967
+ const s = v.target;
968
+ (s == null ? void 0 : s.nodeName) === "path" && (((n = y.value) == null ? void 0 : n.conf) === "sold" || ((i = y.value) == null ? void 0 : i.conf) === "reserved" || t(
969
969
  "changeComponent",
970
- ((k = a.value) == null ? void 0 : k.type) || "",
971
- d.value
970
+ ((d = m.value) == null ? void 0 : d.type) || "",
971
+ y.value
972
972
  ));
973
973
  };
974
974
  return watch(
975
- () => v.value,
976
- (u) => {
977
- var _, h, k, l, p, f, m, g;
978
- if (!u) return;
979
- const c = u == null ? void 0 : u.parentElement;
980
- if (c && (c == null ? void 0 : c.nodeName) === "g") {
981
- const y = c == null ? void 0 : c.getAttribute("id");
982
- if (!y || (a.value = ((h = (_ = r.block) == null ? void 0 : _.polygon_data) == null ? void 0 : h.find((w) => (w == null ? void 0 : w.key) === y)) || null, !a.value)) return;
983
- if (((k = a.value) == null ? void 0 : k.type) === "floor") {
984
- const w = (l = r.floors) == null ? void 0 : l.find(
985
- (x) => {
975
+ () => _.value,
976
+ (v) => {
977
+ var n, i, d, l, a, h, u, k;
978
+ if (!v) return;
979
+ const s = v == null ? void 0 : v.parentElement;
980
+ if (s && (s == null ? void 0 : s.nodeName) === "g") {
981
+ const g = s == null ? void 0 : s.getAttribute("id");
982
+ if (!g || (m.value = ((i = (n = r.block) == null ? void 0 : n.polygon_data) == null ? void 0 : i.find((b) => (b == null ? void 0 : b.key) === g)) || null, !m.value)) return;
983
+ if (((d = m.value) == null ? void 0 : d.type) === "floor") {
984
+ const b = (l = r.floors) == null ? void 0 : l.find(
985
+ (w) => {
986
986
  var C;
987
- return (x == null ? void 0 : x.id) === ((C = a.value) == null ? void 0 : C.id);
987
+ return (w == null ? void 0 : w.id) === ((C = m.value) == null ? void 0 : C.id);
988
988
  }
989
989
  );
990
- d.value = w;
991
- } else if (((p = a.value) == null ? void 0 : p.type) === "flat") {
992
- const w = (f = r.flats) == null ? void 0 : f.find(
993
- (x) => {
990
+ y.value = b;
991
+ } else if (((a = m.value) == null ? void 0 : a.type) === "flat") {
992
+ const b = (h = r.flats) == null ? void 0 : h.find(
993
+ (w) => {
994
994
  var C;
995
- return (x == null ? void 0 : x.id) === ((C = a.value) == null ? void 0 : C.id);
995
+ return (w == null ? void 0 : w.id) === ((C = m.value) == null ? void 0 : C.id);
996
996
  }
997
997
  );
998
- d.value = w;
999
- } else if (((m = a.value) == null ? void 0 : m.type) === "tooltip") {
1000
- const w = (g = r.actions) == null ? void 0 : g.find(
1001
- (x) => {
998
+ y.value = b;
999
+ } else if (((u = m.value) == null ? void 0 : u.type) === "tooltip") {
1000
+ const b = (k = r.actions) == null ? void 0 : k.find(
1001
+ (w) => {
1002
1002
  var C;
1003
- return (x == null ? void 0 : x.id) === ((C = a.value) == null ? void 0 : C.id);
1003
+ return (w == null ? void 0 : w.id) === ((C = m.value) == null ? void 0 : C.id);
1004
1004
  }
1005
1005
  );
1006
- d.value = w;
1006
+ y.value = b;
1007
1007
  } else
1008
- d.value = null;
1008
+ y.value = null;
1009
1009
  } else
1010
- a.value = null, d.value = null;
1010
+ m.value = null, y.value = null;
1011
1011
  }
1012
- ), (u, c) => {
1013
- var _;
1012
+ ), (v, s) => {
1013
+ var n;
1014
1014
  return openBlock(), createBlock(_sfc_main$f, {
1015
- hoverdData: d.value,
1016
- type: (_ = a.value) == null ? void 0 : _.type
1015
+ hoverdData: y.value,
1016
+ type: (n = m.value) == null ? void 0 : n.type
1017
1017
  }, {
1018
1018
  header: withCtx(() => {
1019
- var h;
1019
+ var i;
1020
1020
  return [
1021
1021
  createVNode(_sfc_main$b, {
1022
- onClick: c[0] || (c[0] = (k) => u.$emit("changeComponent", "project", null))
1022
+ onClick: s[0] || (s[0] = (d) => v.$emit("changeComponent", "project", null))
1023
1023
  }),
1024
- createElementVNode("p", _hoisted_1$1, toDisplayString((h = u.block) == null ? void 0 : h.title), 1)
1024
+ createElementVNode("p", _hoisted_1$1, toDisplayString((i = v.block) == null ? void 0 : i.title), 1)
1025
1025
  ];
1026
1026
  }),
1027
1027
  default: withCtx(() => {
1028
- var h, k, l, p, f, m, g, y;
1028
+ var i, d, l, a, h, u, k, g;
1029
1029
  return [
1030
1030
  createElementVNode("div", _hoisted_2, [
1031
1031
  createElementVNode("img", {
1032
- src: ((l = (k = (h = u.block) == null ? void 0 : h.block_image) == null ? void 0 : k[0]) == null ? void 0 : l.url) || "",
1032
+ src: ((l = (d = (i = v.block) == null ? void 0 : i.block_image) == null ? void 0 : d[0]) == null ? void 0 : l.url) || "",
1033
1033
  alt: "",
1034
1034
  class: normalizeClass(["ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full", {
1035
- "ire-object-contain": (p = u.block) == null ? void 0 : p.img_contain,
1036
- "ire-object-cover": !((f = u.block) != null && f.img_contain)
1035
+ "ire-object-contain": (a = v.block) == null ? void 0 : a.img_contain,
1036
+ "ire-object-cover": !((h = v.block) != null && h.img_contain)
1037
1037
  }])
1038
1038
  }, null, 10, _hoisted_3),
1039
1039
  (openBlock(), createElementBlock("div", {
1040
1040
  ref_key: "svgRef",
1041
- ref: n,
1041
+ ref: c,
1042
1042
  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", [
1043
1043
  {
1044
- "hover:[&_path]:ire-fill-[var(--reserved-color)]": ((m = d.value) == null ? void 0 : m.conf) === "reserved",
1045
- "hover:[&_path]:ire-fill-[var(--sold-color)]": ((g = d.value) == null ? void 0 : g.conf) === "sold",
1046
- "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((y = d.value) != null && y.conf)
1044
+ "hover:[&_path]:ire-fill-[var(--reserved-color)]": ((u = y.value) == null ? void 0 : u.conf) === "reserved",
1045
+ "hover:[&_path]:ire-fill-[var(--sold-color)]": ((k = y.value) == null ? void 0 : k.conf) === "sold",
1046
+ "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((g = y.value) != null && g.conf)
1047
1047
  }
1048
1048
  ]]),
1049
- innerHTML: i.value,
1050
- key: i.value,
1051
- onMouseover: s,
1052
- onClick: b
1049
+ innerHTML: p.value,
1050
+ key: p.value,
1051
+ onMouseover: f,
1052
+ onClick: x
1053
1053
  }, null, 42, _hoisted_4))
1054
1054
  ])
1055
1055
  ];
@@ -1064,22 +1064,22 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1064
1064
  shortcodeDataProps: {}
1065
1065
  },
1066
1066
  setup(__props) {
1067
- var o, e, t, r, n, v;
1068
- const props = __props, getMeta = (a) => props.shortcodeDataProps.meta.find(
1069
- (d) => d.meta_key === a
1067
+ var o, e, t, r, c, _, m, y, p, f, x, v;
1068
+ const props = __props, getMeta = (s) => props.shortcodeDataProps.meta.find(
1069
+ (n) => n.meta_key === s
1070
1070
  ), constants = ref({
1071
- PREVIEW_PATH_COLOR: getMeta("path_color").meta_value || "rgba(255, 255, 255, 0.3)",
1072
- PREVIEW_PATH_HOVER_COLOR: getMeta("path_hover_color").meta_value || "rgba(250, 250, 250, 0.54)",
1073
- PREVIEW_RESERVED_COLOR: getMeta("reserved_color").meta_value || "rgba(255, 247, 89, 0.53)",
1074
- PREVIEW_SOLD_COLOR: getMeta("sold_color").meta_value || "rgba(219, 64, 64, 0.45)",
1075
- PREVIEW_STROKE_COLOR: getMeta("stroke_color").meta_value || "rgba(0, 0, 0, 1)",
1076
- PREVIEW_STROKE_WIDTH: +getMeta("stroke_width").meta_value || 0
1071
+ PREVIEW_PATH_COLOR: ((o = getMeta("path_color")) == null ? void 0 : o.meta_value) || "rgba(255, 255, 255, 0.3)",
1072
+ PREVIEW_PATH_HOVER_COLOR: ((e = getMeta("path_hover_color")) == null ? void 0 : e.meta_value) || "rgba(250, 250, 250, 0.54)",
1073
+ PREVIEW_RESERVED_COLOR: ((t = getMeta("reserved_color")) == null ? void 0 : t.meta_value) || "rgba(255, 247, 89, 0.53)",
1074
+ PREVIEW_SOLD_COLOR: ((r = getMeta("sold_color")) == null ? void 0 : r.meta_value) || "rgba(219, 64, 64, 0.45)",
1075
+ PREVIEW_STROKE_COLOR: ((c = getMeta("stroke_color")) == null ? void 0 : c.meta_value) || "rgba(0, 0, 0, 1)",
1076
+ PREVIEW_STROKE_WIDTH: +((_ = getMeta("stroke_width")) == null ? void 0 : _.meta_value) || 0
1077
1077
  }), colors = reactive({
1078
- path: (o = constants.value) == null ? void 0 : o.PREVIEW_PATH_COLOR,
1079
- path_hover: (e = constants.value) == null ? void 0 : e.PREVIEW_PATH_HOVER_COLOR,
1080
- reserved: (t = constants.value) == null ? void 0 : t.PREVIEW_RESERVED_COLOR,
1081
- sold: (r = constants.value) == null ? void 0 : r.PREVIEW_SOLD_COLOR,
1082
- stroke_color: (n = constants.value) == null ? void 0 : n.PREVIEW_STROKE_COLOR,
1078
+ path: (m = constants.value) == null ? void 0 : m.PREVIEW_PATH_COLOR,
1079
+ path_hover: (y = constants.value) == null ? void 0 : y.PREVIEW_PATH_HOVER_COLOR,
1080
+ reserved: (p = constants.value) == null ? void 0 : p.PREVIEW_RESERVED_COLOR,
1081
+ sold: (f = constants.value) == null ? void 0 : f.PREVIEW_SOLD_COLOR,
1082
+ stroke_color: (x = constants.value) == null ? void 0 : x.PREVIEW_STROKE_COLOR,
1083
1083
  stroke_width: (v = constants.value) == null ? void 0 : v.PREVIEW_STROKE_WIDTH
1084
1084
  }), cssVariables = computed$1(() => ({
1085
1085
  "--reserved-color": colors.reserved,
@@ -1091,30 +1091,30 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1091
1091
  })), shortcodeData = ref(props.shortcodeDataProps), flow = ref(
1092
1092
  "projectFlow"
1093
1093
  ), hoveredData = ref(), showModal = ref(!1), activeBlock = ref(), activeFloor = ref(), project = computed$1(() => {
1094
- var a;
1094
+ var s;
1095
1095
  if (shortcodeData.value)
1096
- return (a = shortcodeData.value) == null ? void 0 : a.project;
1096
+ return (s = shortcodeData.value) == null ? void 0 : s.project;
1097
1097
  }), floors = computed$1(() => {
1098
- var a, d;
1098
+ var s, n;
1099
1099
  if (shortcodeData.value)
1100
- return (a = shortcodeData.value.floors) == null || a.forEach((i) => {
1101
- var u, c;
1102
- const s = (c = (u = shortcodeData.value) == null ? void 0 : u.flats) == null ? void 0 : c.filter((_) => {
1103
- var h;
1104
- return (_ == null ? void 0 : _.floor_number) !== ((h = i == null ? void 0 : i.floor_number) == null ? void 0 : h.toString()) ? !1 : i != null && i.polygon_data ? Object == null ? void 0 : Object.values(i == null ? void 0 : i.polygon_data).some(
1105
- (l) => {
1106
- var p;
1107
- return l != null && l.type && (l == null ? void 0 : l.type) === "flat" && (l == null ? void 0 : l.id) === (_ == null ? void 0 : _.id) ? i != null && i.block_id ? (_ == null ? void 0 : _.block_id) === ((p = i == null ? void 0 : i.block_id) == null ? void 0 : p.toString()) : !(_ != null && _.block_id) : !1;
1100
+ return (s = shortcodeData.value.floors) == null || s.forEach((i) => {
1101
+ var a, h;
1102
+ const d = (h = (a = shortcodeData.value) == null ? void 0 : a.flats) == null ? void 0 : h.filter((u) => {
1103
+ var k;
1104
+ return (u == null ? void 0 : u.floor_number) !== ((k = i == null ? void 0 : i.floor_number) == null ? void 0 : k.toString()) ? !1 : i != null && i.polygon_data ? Object == null ? void 0 : Object.values(i == null ? void 0 : i.polygon_data).some(
1105
+ (b) => {
1106
+ var w;
1107
+ return b != null && b.type && (b == null ? void 0 : b.type) === "flat" && (b == null ? void 0 : b.id) === (u == null ? void 0 : u.id) ? i != null && i.block_id ? (u == null ? void 0 : u.block_id) === ((w = i == null ? void 0 : i.block_id) == null ? void 0 : w.toString()) : !(u != null && u.block_id) : !1;
1108
1108
  }
1109
1109
  ) : !1;
1110
1110
  });
1111
- i.flats = s;
1112
- const { conf: b } = i || {};
1113
- if (s != null && s.length && !b) {
1114
- const _ = s == null ? void 0 : s.every((k) => (k == null ? void 0 : k.conf) === "reserved"), h = s == null ? void 0 : s.every((k) => (k == null ? void 0 : k.conf) === "sold");
1115
- _ ? i.conf = "reserved" : h && (i.conf = "sold");
1111
+ i.flats = d;
1112
+ const { conf: l } = i || {};
1113
+ if (d != null && d.length && !l) {
1114
+ const u = d == null ? void 0 : d.every((g) => (g == null ? void 0 : g.conf) === "reserved"), k = d == null ? void 0 : d.every((g) => (g == null ? void 0 : g.conf) === "sold");
1115
+ u ? i.conf = "reserved" : k && (i.conf = "sold");
1116
1116
  }
1117
- }), (d = shortcodeData.value) == null ? void 0 : d.floors;
1117
+ }), (n = shortcodeData.value) == null ? void 0 : n.floors;
1118
1118
  }), blocks = computed$1(() => {
1119
1119
  if (shortcodeData.value)
1120
1120
  return shortcodeData.value.blocks;
@@ -1122,27 +1122,27 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1122
1122
  if (shortcodeData.value)
1123
1123
  return shortcodeData.value.types;
1124
1124
  }), flats = computed$1(() => {
1125
- var a, d;
1125
+ var s, n;
1126
1126
  if (shortcodeData.value)
1127
- return (d = (a = shortcodeData.value) == null ? void 0 : a.flats) == null ? void 0 : d.map((i) => {
1128
- var s;
1127
+ return (n = (s = shortcodeData.value) == null ? void 0 : s.flats) == null ? void 0 : n.map((i) => {
1128
+ var d;
1129
1129
  if (i != null && i.use_type || !(i != null && i.type)) {
1130
- const b = (s = types.value) == null ? void 0 : s.find((u) => (u == null ? void 0 : u.id) === (i == null ? void 0 : i.type_id));
1131
- b && (i.type = b);
1130
+ const l = (d = types.value) == null ? void 0 : d.find((a) => (a == null ? void 0 : a.id) === (i == null ? void 0 : i.type_id));
1131
+ l && (i.type = l);
1132
1132
  }
1133
1133
  return i;
1134
1134
  });
1135
1135
  }), actions = computed$1(() => {
1136
- var a;
1136
+ var s;
1137
1137
  if (shortcodeData.value)
1138
- return (a = shortcodeData.value) == null ? void 0 : a.actions;
1138
+ return (s = shortcodeData.value) == null ? void 0 : s.actions;
1139
1139
  }), projectMeta = computed$1(() => {
1140
- var a;
1140
+ var s;
1141
1141
  if (shortcodeData.value)
1142
- return (a = shortcodeData.value) == null ? void 0 : a.meta;
1143
- }), getColorMeta = (a) => {
1144
- var d, i;
1145
- return (i = (d = projectMeta.value) == null ? void 0 : d.find((s) => (s == null ? void 0 : s.meta_key) === a)) == null ? void 0 : i.meta_value;
1142
+ return (s = shortcodeData.value) == null ? void 0 : s.meta;
1143
+ }), getColorMeta = (s) => {
1144
+ var n, i;
1145
+ return (i = (n = projectMeta.value) == null ? void 0 : n.find((d) => (d == null ? void 0 : d.meta_key) === s)) == null ? void 0 : i.meta_value;
1146
1146
  }, changeRoute = (flowType, polygonItem) => {
1147
1147
  switch (flowType) {
1148
1148
  case "project":
@@ -1169,8 +1169,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1169
1169
  else if ((actionData == null ? void 0 : actionData.actionType) === "script")
1170
1170
  try {
1171
1171
  eval(actionData == null ? void 0 : actionData.script);
1172
- } catch (a) {
1173
- console.error("Error executing script:", a);
1172
+ } catch (s) {
1173
+ console.error("Error executing script:", s);
1174
1174
  }
1175
1175
  break;
1176
1176
  }
@@ -1178,10 +1178,10 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1178
1178
  return watch(
1179
1179
  () => projectMeta.value,
1180
1180
  () => {
1181
- const a = getColorMeta("path_color"), d = getColorMeta("path_hover_color"), i = getColorMeta("reserved_color"), s = getColorMeta("sold_color"), b = getColorMeta("stroke_color"), u = getColorMeta("stroke_width");
1182
- a && (colors.path = a.toString()), d && (colors.path_hover = d.toString()), i && (colors.reserved = i.toString()), s && (colors.sold = s.toString()), b && (colors.stroke_color = b.toString()), u && (colors.stroke_width = Number(u));
1181
+ const s = getColorMeta("path_color"), n = getColorMeta("path_hover_color"), i = getColorMeta("reserved_color"), d = getColorMeta("sold_color"), l = getColorMeta("stroke_color"), a = getColorMeta("stroke_width");
1182
+ s && (colors.path = s.toString()), n && (colors.path_hover = n.toString()), i && (colors.reserved = i.toString()), d && (colors.sold = d.toString()), l && (colors.stroke_color = l.toString()), a && (colors.stroke_width = Number(a));
1183
1183
  }
1184
- ), (a, d) => (openBlock(), createElementBlock("div", _hoisted_1, [
1184
+ ), (s, n) => (openBlock(), createElementBlock("div", _hoisted_1, [
1185
1185
  createVNode(Transition, {
1186
1186
  name: "ire-fade-in-out",
1187
1187
  mode: "out-in",
@@ -1197,14 +1197,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1197
1197
  projectMeta: projectMeta.value,
1198
1198
  blocks: blocks.value,
1199
1199
  actions: actions.value,
1200
- onChangeComponent: d[0] || (d[0] = (i, s) => changeRoute(i, s))
1200
+ onChangeComponent: n[0] || (n[0] = (i, d) => changeRoute(i, d))
1201
1201
  }, null, 8, ["project", "floors", "flats", "projectMeta", "blocks", "actions"])) : flow.value === "blockFlow" && flats.value && floors.value && blocks.value && activeBlock.value ? (openBlock(), createBlock(_sfc_main$2, {
1202
1202
  key: 1,
1203
1203
  block: activeBlock.value,
1204
1204
  flats: flats.value,
1205
1205
  floors: floors.value,
1206
1206
  actions: actions.value,
1207
- onChangeComponent: d[1] || (d[1] = (i, s) => changeRoute(i, s))
1207
+ onChangeComponent: n[1] || (n[1] = (i, d) => changeRoute(i, d))
1208
1208
  }, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$a, {
1209
1209
  key: 2,
1210
1210
  flats: flats.value,
@@ -1212,12 +1212,12 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1212
1212
  floors: floors.value,
1213
1213
  blocks: blocks.value,
1214
1214
  actions: actions.value,
1215
- onChangeComponent: d[2] || (d[2] = (i, s) => changeRoute(i, s))
1215
+ onChangeComponent: n[2] || (n[2] = (i, d) => changeRoute(i, d))
1216
1216
  }, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : flow.value === "flatFlow" ? (openBlock(), createBlock(_sfc_main$7, {
1217
1217
  key: 3,
1218
1218
  flat: hoveredData.value,
1219
1219
  floors: floors.value,
1220
- onChangeComponent: d[3] || (d[3] = (i, s) => changeRoute(i, s))
1220
+ onChangeComponent: n[3] || (n[3] = (i, d) => changeRoute(i, d))
1221
1221
  }, null, 8, ["flat", "floors"])) : createCommentVNode("", !0)
1222
1222
  ])) : createCommentVNode("", !0)
1223
1223
  ]),
@@ -1231,7 +1231,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1231
1231
  default: withCtx(() => [
1232
1232
  showModal.value ? (openBlock(), createBlock(_sfc_main$5, {
1233
1233
  key: 0,
1234
- onClose: d[4] || (d[4] = (i) => showModal.value = !1)
1234
+ onClose: n[4] || (n[4] = (i) => showModal.value = !1)
1235
1235
  }, {
1236
1236
  default: withCtx(() => [
1237
1237
  createVNode(_sfc_main$3, { modalData: hoveredData.value }, null, 8, ["modalData"])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ire-preview",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "type": "module",
5
5
  "emitDeclarationOnly": true,
6
6
  "declaration": true,