ire-preview 2.0.1 → 2.0.3

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
@@ -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, p, c, l, i, a, m, d, u, g, h, b, s, f, k, _, v, y, w;
222
+ var r, n, p, d, a, i, l, h, c, u, g, m, b, s, f, k, _, v, y, w;
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, [
@@ -228,16 +228,16 @@ const _hoisted_1$f = {
228
228
  t[0] || (t[0] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Floor", -1))
229
229
  ]),
230
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),
231
+ (d = e.hoveredData) != null && d.conf ? (openBlock(), createElementBlock("div", _hoisted_6$1, toDisplayString(e.hoveredData.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$1, [
232
+ (i = (a = e.hoveredData) == null ? void 0 : a.counts) != null && i.available ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
233
+ createElementVNode("p", _hoisted_9$1, toDisplayString(((h = (l = e.hoveredData) == null ? void 0 : l.counts) == null ? void 0 : h.available) || 0), 1),
234
234
  t[1] || (t[1] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Available", -1))
235
235
  ])) : createCommentVNode("", !0),
236
- (u = (d = e.hoveredData) == null ? void 0 : d.counts) != null && u.reserved ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
236
+ (u = (c = e.hoveredData) == null ? void 0 : c.counts) != null && u.reserved ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
237
237
  createElementVNode("p", _hoisted_11$1, toDisplayString(e.hoveredData.counts.reserved), 1),
238
238
  t[2] || (t[2] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Reserved", -1))
239
239
  ])) : createCommentVNode("", !0),
240
- (h = (g = e.hoveredData) == null ? void 0 : g.counts) != null && h.sold ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
240
+ (m = (g = e.hoveredData) == null ? void 0 : g.counts) != null && m.sold ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
241
241
  createElementVNode("p", _hoisted_13$1, toDisplayString(e.hoveredData.counts.sold), 1),
242
242
  t[3] || (t[3] = createElementVNode("p", { class: "!ire-text-sm ire-uppercase" }, "Sold", -1))
243
243
  ])) : createCommentVNode("", !0)
@@ -319,33 +319,33 @@ const _hoisted_1$f = {
319
319
  },
320
320
  emits: ["changeComponent"],
321
321
  setup(o, { emit: e }) {
322
- const t = e, r = o, n = ref(), p = ref(), c = ref(null), l = computed(() => {
322
+ const t = e, r = o, n = ref(), p = ref(), d = ref(null), a = computed(() => {
323
323
  if (r.project)
324
324
  return r.project.svg;
325
325
  }), i = computed(() => {
326
326
  var u, g;
327
- const d = (g = (u = r.projectMeta) == null ? void 0 : u.find(
328
- (h) => h.meta_key === "project_img_contain"
327
+ const c = (g = (u = r.projectMeta) == null ? void 0 : u.find(
328
+ (m) => m.meta_key === "project_img_contain"
329
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;
330
+ return JSON.parse((c == null ? void 0 : c.toString()) || "false");
331
+ }), l = (c) => {
332
+ const u = c.target;
333
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));
334
+ }, h = (c) => {
335
+ var g, m, b;
336
+ c.target.nodeName === "path" && (((g = p.value) == null ? void 0 : g.conf) === "sold" || ((m = p.value) == null ? void 0 : m.conf) === "reserved" || t("changeComponent", ((b = d.value) == null ? void 0 : b.type) || "", p.value));
337
337
  };
338
338
  return watch(
339
339
  () => n.value,
340
- (d) => {
341
- var g, h, b, s, f, k, _;
342
- if (!d) return;
343
- const u = d.parentElement;
340
+ (c) => {
341
+ var g, m, b, s, f, k, _;
342
+ if (!c) return;
343
+ const u = c.parentElement;
344
344
  if (u && u.nodeName === "g") {
345
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) {
346
+ if (!v || (d.value = ((g = r.project) == null ? void 0 : g.polygon_data.find((w) => w.key === v)) || null, !d.value)) return;
347
+ const y = (m = d.value) == null ? void 0 : m.id;
348
+ switch ((b = d.value) == null ? void 0 : b.type) {
349
349
  case "floor":
350
350
  const w = (s = r.floors) == null ? void 0 : s.find(
351
351
  (x) => x.id === y
@@ -373,20 +373,20 @@ const _hoisted_1$f = {
373
373
  break;
374
374
  }
375
375
  } else
376
- c.value = null, p.value = null;
376
+ d.value = null, p.value = null;
377
377
  }
378
- ), (d, u) => {
378
+ ), (c, u) => {
379
379
  var g;
380
380
  return openBlock(), createBlock(_sfc_main$f, {
381
381
  hoverdData: p.value,
382
- type: (g = c.value) == null ? void 0 : g.type
382
+ type: (g = d.value) == null ? void 0 : g.type
383
383
  }, {
384
384
  default: withCtx(() => {
385
- var h, b, s, f;
385
+ var m, b, s, f;
386
386
  return [
387
387
  createElementVNode("div", _hoisted_1$d, [
388
388
  createElementVNode("img", {
389
- src: (h = d.project) == null ? void 0 : h.project_image[0].url,
389
+ src: (m = c.project) == null ? void 0 : m.project_image[0].url,
390
390
  alt: "",
391
391
  class: normalizeClass(["ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full", {
392
392
  "ire-object-contain": unref(i),
@@ -401,10 +401,10 @@ const _hoisted_1$f = {
401
401
  "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((f = p.value) != null && f.conf)
402
402
  }
403
403
  ]]),
404
- innerHTML: unref(l),
405
- key: unref(l),
406
- onMouseover: a,
407
- onClick: m
404
+ innerHTML: unref(a),
405
+ key: unref(a),
406
+ onMouseover: l,
407
+ onClick: h
408
408
  }, null, 42, _hoisted_3$5))
409
409
  ])
410
410
  ];
@@ -413,7 +413,10 @@ const _hoisted_1$f = {
413
413
  }, 8, ["hoverdData", "type"]);
414
414
  };
415
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({
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 = {
417
+ key: 0,
418
+ class: "label"
419
+ }, _hoisted_3$4 = { class: "ire-relative" }, _hoisted_4$4 = ["value", "disabled"], _sfc_main$d = /* @__PURE__ */ defineComponent({
417
420
  __name: "PreviewSelect",
418
421
  props: /* @__PURE__ */ mergeModels({
419
422
  data: {},
@@ -429,7 +432,7 @@ const _hoisted_1$f = {
429
432
  setup(o) {
430
433
  const e = useModel(o, "modelValue");
431
434
  return (t, r) => (openBlock(), createElementBlock("div", _hoisted_1$c, [
432
- createElementVNode("p", _hoisted_2$5, toDisplayString(t.label), 1),
435
+ t.label ? (openBlock(), createElementBlock("p", _hoisted_2$5, toDisplayString(t.label), 1)) : createCommentVNode("", !0),
433
436
  createElementVNode("div", _hoisted_3$4, [
434
437
  withDirectives(createElementVNode("select", {
435
438
  "onUpdate:modelValue": r[0] || (r[0] = (n) => e.value = n),
@@ -497,11 +500,11 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
497
500
  },
498
501
  emits: ["changeComponent"],
499
502
  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(() => {
503
+ const t = e, r = o, n = ref(), p = ref(), d = ref(), a = ref(), i = ref(), l = ref(), h = computed$1(() => {
501
504
  var s;
502
505
  if ((s = r.floor) != null && s.svg)
503
506
  return r.floor.svg;
504
- }), d = computed$1(() => r.floors.filter(
507
+ }), c = computed$1(() => r.floors.filter(
505
508
  (s) => (
506
509
  // floorItem.conf !== "reserved" &&
507
510
  // floorItem.conf !== "sold" &&
@@ -524,8 +527,8 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
524
527
  f && (p.value = f);
525
528
  }, g = (s) => {
526
529
  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 = () => {
530
+ s.target.nodeName === "path" && (((k = a.value) == null ? void 0 : k.conf) === "sold" || ((_ = a.value) == null ? void 0 : _.conf) === "reserved" || t("changeComponent", ((v = d.value) == null ? void 0 : v.type) || "", a.value));
531
+ }, m = () => {
529
532
  n.value && n.value.querySelectorAll("g").forEach((f) => {
530
533
  var v, y, w;
531
534
  const k = f.getAttribute("id"), _ = r.floor.polygon_data.find(
@@ -542,7 +545,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
542
545
  }
543
546
  });
544
547
  }, b = () => {
545
- r.floor.block_id ? t("changeComponent", "block", a.value) : t("changeComponent", "project", null);
548
+ r.floor.block_id ? t("changeComponent", "block", l.value) : t("changeComponent", "project", null);
546
549
  };
547
550
  return watch(
548
551
  () => p.value,
@@ -552,18 +555,18 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
552
555
  const f = s.parentElement;
553
556
  if (f && f.nodeName === "g") {
554
557
  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") {
558
+ if (!y || (d.value = ((k = r.floor) == null ? void 0 : k.polygon_data.find((w) => w.key === y)) || null, !d.value)) return;
559
+ if (((_ = d.value) == null ? void 0 : _.type) === "flat") {
557
560
  const w = (v = r.flats) == null ? void 0 : v.find(
558
561
  ($) => {
559
562
  var C;
560
- return ($ == null ? void 0 : $.id) === ((C = c.value) == null ? void 0 : C.id);
563
+ return ($ == null ? void 0 : $.id) === ((C = d.value) == null ? void 0 : C.id);
561
564
  }
562
565
  );
563
- l.value = w;
566
+ a.value = w;
564
567
  }
565
568
  } else
566
- c.value = null;
569
+ d.value = null;
567
570
  }
568
571
  ), watch(
569
572
  () => i.value,
@@ -572,27 +575,27 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
572
575
  (f) => f.id === i.value
573
576
  );
574
577
  s != null && s.conf || (s && t("changeComponent", "floor", s), setTimeout(() => {
575
- h();
578
+ m();
576
579
  }, 0));
577
580
  }
578
581
  ), onMounted(() => {
579
582
  var s, f, k;
580
- a.value = (s = r.blocks) == null ? void 0 : s.find(
583
+ l.value = (s = r.blocks) == null ? void 0 : s.find(
581
584
  (_) => {
582
585
  var v;
583
586
  return _.id === ((v = r.floor.block_id) == null ? void 0 : v.toString());
584
587
  }
585
- ), i.value = (k = (f = d.value) == null ? void 0 : f.find(
588
+ ), i.value = (k = (f = c.value) == null ? void 0 : f.find(
586
589
  (_) => {
587
590
  var v;
588
591
  return (_ == null ? void 0 : _.value) == ((v = r.floor) == null ? void 0 : v.id);
589
592
  }
590
- )) == null ? void 0 : k.value, h();
593
+ )) == null ? void 0 : k.value, m();
591
594
  }), (s, f) => {
592
595
  var k;
593
596
  return openBlock(), createBlock(_sfc_main$f, {
594
- hoverdData: l.value,
595
- type: (k = c.value) == null ? void 0 : k.type
597
+ hoverdData: a.value,
598
+ type: (k = d.value) == null ? void 0 : k.type
596
599
  }, {
597
600
  header: withCtx(() => [
598
601
  createVNode(_sfc_main$b, { onClick: b }),
@@ -600,7 +603,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
600
603
  createVNode(_sfc_main$d, {
601
604
  modelValue: i.value,
602
605
  "onUpdate:modelValue": f[0] || (f[0] = (_) => i.value = _),
603
- data: d.value
606
+ data: c.value
604
607
  }, null, 8, ["modelValue", "data"])
605
608
  ])
606
609
  ]),
@@ -620,8 +623,8 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_ren
620
623
  ref_key: "svgRef",
621
624
  ref: n,
622
625
  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,
626
+ innerHTML: h.value,
627
+ key: h.value,
625
628
  onMouseover: u,
626
629
  onClick: g
627
630
  }, null, 40, _hoisted_4$3))
@@ -699,16 +702,16 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
699
702
  },
700
703
  emits: ["changeComponent"],
701
704
  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
+ const t = e, r = o, n = ref(!0), p = ref(0), d = computed$1(() => {
706
+ var l, h, c, u, g, m;
707
+ const i = n.value ? (c = (h = (l = r.flat) == null ? void 0 : l.type) == null ? void 0 : h.image_2d) == null ? void 0 : c.length : (m = (g = (u = r.flat) == null ? void 0 : u.type) == null ? void 0 : g.image_3d) == null ? void 0 : m.length;
705
708
  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);
709
+ }), a = () => {
710
+ var l;
711
+ const i = (l = r.floors) == null ? void 0 : l.find(
712
+ (h) => {
713
+ var c, u, g, m;
714
+ return ((c = h.floor_number) == null ? void 0 : c.toString()) === ((g = (u = r.flat) == null ? void 0 : u.floor_number) == null ? void 0 : g.toString()) && (r.flat.block_id ? ((m = h == null ? void 0 : h.block_id) == null ? void 0 : m.toString()) === r.flat.block_id : !h.block_id);
712
715
  }
713
716
  );
714
717
  i ? t("changeComponent", "floor", i) : t("changeComponent", "project", null);
@@ -719,15 +722,15 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
719
722
  p.value = 0;
720
723
  }
721
724
  ), 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
+ var i, l;
726
+ (l = (i = r.flat) == null ? void 0 : i.type) != null && l.image_2d || (n.value = !1);
727
+ }), (i, l) => (openBlock(), createElementBlock("div", null, [
725
728
  createVNode(_sfc_main$f, { "hoverd-data": null }, {
726
729
  header: withCtx(() => [
727
- createVNode(_sfc_main$b, { onClick: l })
730
+ createVNode(_sfc_main$b, { onClick: a })
728
731
  ]),
729
732
  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;
733
+ var h, c, u, g, m, b, s, f, k, _, v, y, w, $, C, D, x, N, S, M, j, L, T;
731
734
  return [
732
735
  createElementVNode("div", _hoisted_1$6, [
733
736
  createElementVNode("div", _hoisted_2$3, [
@@ -736,9 +739,9 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
736
739
  mode: "out-in"
737
740
  }, {
738
741
  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;
742
+ var E, V, B, R, P, O, I, F, A, H, z, W, K, G, Z, q, U, J, Q, X, Y, ee, te, oe;
740
743
  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", {
744
+ n.value && ((R = (B = (V = (E = i.flat) == null ? void 0 : E.type) == null ? void 0 : V.image_2d) == null ? void 0 : B[p.value]) != null && R.url) ? (openBlock(), createElementBlock("img", {
742
745
  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
746
  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
747
  class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-96"
@@ -753,36 +756,36 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
753
756
  }),
754
757
  createElementVNode("div", _hoisted_5, [
755
758
  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", {
759
+ (g = (u = (c = (h = i.flat) == null ? void 0 : h.type) == null ? void 0 : c.image_2d) == null ? void 0 : u[0]) != null && g.url ? (openBlock(), createElementBlock("div", {
757
760
  key: 0,
758
761
  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)
762
+ onClick: l[0] || (l[0] = (E) => n.value = !0)
760
763
  }, [
761
764
  createVNode(FlatIcon, {
762
765
  class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": n.value }])
763
766
  }, null, 8, ["class"]),
764
- a[2] || (a[2] = createElementVNode("p", null, "2D plan", -1))
767
+ l[2] || (l[2] = createElementVNode("p", null, "2D plan", -1))
765
768
  ], 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", {
769
+ (f = (s = (b = (m = i.flat) == null ? void 0 : m.type) == null ? void 0 : b.image_3d) == null ? void 0 : s[0]) != null && f.url ? (openBlock(), createElementBlock("div", {
767
770
  key: 1,
768
771
  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)
772
+ onClick: l[1] || (l[1] = (E) => n.value = !1)
770
773
  }, [
771
774
  createElementVNode("div", null, [
772
775
  createVNode(Cube, {
773
776
  class: normalizeClass(["group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !n.value }])
774
777
  }, null, 8, ["class"])
775
778
  ]),
776
- a[3] || (a[3] = createElementVNode("p", null, "3D plan", -1))
779
+ l[3] || (l[3] = createElementVNode("p", null, "3D plan", -1))
777
780
  ], 2)) : createCommentVNode("", !0)
778
781
  ]),
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", {
782
+ ((k = d.value) == null ? void 0 : k.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_7, [
783
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(d.value, (E, V) => (openBlock(), createElementBlock("div", {
781
784
  key: E,
782
785
  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
786
  "ire-bg-black ire-text-white": p.value === V
784
787
  }]),
785
- onClick: (N) => p.value = V
788
+ onClick: (B) => p.value = V
786
789
  }, toDisplayString(E), 11, _hoisted_8))), 128))
787
790
  ])) : createCommentVNode("", !0)
788
791
  ])
@@ -790,7 +793,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
790
793
  createElementVNode("div", _hoisted_9, [
791
794
  createElementVNode("div", _hoisted_10, [
792
795
  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))
796
+ l[4] || (l[4] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Apartment", -1))
794
797
  ]),
795
798
  createElementVNode("div", _hoisted_12, [
796
799
  createElementVNode("p", _hoisted_13, toDisplayString((y = (v = i.flat) == null ? void 0 : v.type) == null ? void 0 : y.title), 1),
@@ -799,22 +802,22 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
799
802
  createElementVNode("div", _hoisted_15, [
800
803
  (C = i.flat) != null && C.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
801
804
  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))
805
+ l[5] || (l[5] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Floor", -1))
803
806
  ])) : createCommentVNode("", !0),
804
807
  (x = (D = i.flat) == null ? void 0 : D.type) != null && x.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_18, [
805
808
  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))
809
+ l[6] || (l[6] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Room", -1))
807
810
  ])) : createCommentVNode("", !0)
808
811
  ]),
809
- (S = (B = i.flat) == null ? void 0 : B.type) != null && S.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
812
+ (S = (N = i.flat) == null ? void 0 : N.type) != null && S.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_20, [
810
813
  createElementVNode("p", _hoisted_21, [
811
814
  createTextVNode(toDisplayString(i.flat.type.area_m2) + " ", 1),
812
- a[7] || (a[7] = createElementVNode("span", { class: "ire-font-light" }, [
815
+ l[7] || (l[7] = createElementVNode("span", { class: "ire-font-light" }, [
813
816
  createTextVNode(" M "),
814
817
  createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
815
818
  ], -1))
816
819
  ]),
817
- a[8] || (a[8] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Area", -1))
820
+ l[8] || (l[8] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Area", -1))
818
821
  ])) : createCommentVNode("", !0),
819
822
  (M = i.flat) != null && M.price ? (openBlock(), createElementBlock("div", _hoisted_22, [
820
823
  createElementVNode("div", null, [
@@ -822,14 +825,14 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]
822
825
  createElementVNode("p", _hoisted_25, toDisplayString(Number((L = i.flat) == null ? void 0 : L.price).toLocaleString()), 1),
823
826
  createElementVNode("p", _hoisted_26, [
824
827
  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))
828
+ l[10] || (l[10] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
826
829
  ])
827
830
  ])) : (openBlock(), createElementBlock("p", _hoisted_23, [
828
831
  createTextVNode(toDisplayString(Number(i.flat.price).toLocaleString()), 1),
829
- a[9] || (a[9] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
832
+ l[9] || (l[9] = createElementVNode("sup", { class: "!ire-text-sm" }, "$", -1))
830
833
  ]))
831
834
  ]),
832
- a[11] || (a[11] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Price", -1))
835
+ l[11] || (l[11] = createElementVNode("p", { class: "!ire-text-xs ire-text-gray-600" }, "Price", -1))
833
836
  ])) : createCommentVNode("", !0)
834
837
  ])
835
838
  ])
@@ -894,15 +897,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
894
897
  },
895
898
  setup(o) {
896
899
  return (e, t) => {
897
- var r, n, p, c, l, i, a, m;
900
+ var r, n, p, d, a, i, l, h;
898
901
  return openBlock(), createElementBlock("div", null, [
899
902
  createElementVNode("p", _hoisted_1$2, toDisplayString((n = (r = e.modalData) == null ? void 0 : r.modalObject) == null ? void 0 : n.title), 1),
900
903
  createVNode(_sfc_main$4, {
901
- editor: (c = (p = e.modalData) == null ? void 0 : p.modalObject) == null ? void 0 : c.description
904
+ editor: (d = (p = e.modalData) == null ? void 0 : p.modalObject) == null ? void 0 : d.description
902
905
  }, null, 8, ["editor"]),
903
- (i = (l = e.modalData.modalObject.modalImage) == null ? void 0 : l[0]) != null && i.url ? (openBlock(), createElementBlock("img", {
906
+ (i = (a = e.modalData.modalObject.modalImage) == null ? void 0 : a[0]) != null && i.url ? (openBlock(), createElementBlock("img", {
904
907
  key: 0,
905
- src: (m = (a = e.modalData.modalObject.modalImage) == null ? void 0 : a[0]) == null ? void 0 : m.url,
908
+ src: (h = (l = e.modalData.modalObject.modalImage) == null ? void 0 : l[0]) == null ? void 0 : h.url,
906
909
  alt: "",
907
910
  class: "ire-mt-5 ire-h-[400px] ire-w-full ire-object-contain"
908
911
  }, null, 8, _hoisted_2$1)) : createCommentVNode("", !0)
@@ -918,76 +921,76 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
918
921
  },
919
922
  emits: ["changeComponent"],
920
923
  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
+ const t = e, r = o, n = ref(), p = ref(), d = ref(), a = ref(), i = computed$1(() => {
925
+ var c, u;
926
+ if ((c = r.block) != null && c.svg)
924
927
  return (u = r.block) == null ? void 0 : u.svg;
925
- }), a = (d) => {
926
- const u = d.target;
928
+ }), l = (c) => {
929
+ const u = c.target;
927
930
  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
+ }, h = (c) => {
932
+ var g, m, b;
933
+ c.target.nodeName === "path" && (((g = a.value) == null ? void 0 : g.conf) === "sold" || ((m = a.value) == null ? void 0 : m.conf) === "reserved" || t(
931
934
  "changeComponent",
932
- ((b = c.value) == null ? void 0 : b.type) || "",
933
- l.value
935
+ ((b = d.value) == null ? void 0 : b.type) || "",
936
+ a.value
934
937
  ));
935
938
  };
936
939
  return watch(
937
940
  () => p.value,
938
- (d) => {
939
- var g, h, b, s, f;
940
- if (!d) return;
941
- const u = d.parentElement;
941
+ (c) => {
942
+ var g, m, b, s, f;
943
+ if (!c) return;
944
+ const u = c.parentElement;
942
945
  if (u && u.nodeName === "g") {
943
946
  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") {
947
+ if (!k || (d.value = ((g = r.block) == null ? void 0 : g.polygon_data.find((_) => _.key === k)) || null, !d.value)) return;
948
+ if (((m = d.value) == null ? void 0 : m.type) === "floor") {
946
949
  const _ = (b = r.floors) == null ? void 0 : b.find(
947
950
  (v) => {
948
951
  var y;
949
- return (v == null ? void 0 : v.id) === ((y = c.value) == null ? void 0 : y.id);
952
+ return (v == null ? void 0 : v.id) === ((y = d.value) == null ? void 0 : y.id);
950
953
  }
951
954
  );
952
- l.value = _;
953
- } else if (((s = c.value) == null ? void 0 : s.type) === "flat") {
955
+ a.value = _;
956
+ } else if (((s = d.value) == null ? void 0 : s.type) === "flat") {
954
957
  const _ = (f = r.flats) == null ? void 0 : f.find(
955
958
  (v) => {
956
959
  var y;
957
- return (v == null ? void 0 : v.id) === ((y = c.value) == null ? void 0 : y.id);
960
+ return (v == null ? void 0 : v.id) === ((y = d.value) == null ? void 0 : y.id);
958
961
  }
959
962
  );
960
- l.value = _;
963
+ a.value = _;
961
964
  } else
962
- l.value = null;
965
+ a.value = null;
963
966
  } else
964
- c.value = null, l.value = null;
967
+ d.value = null, a.value = null;
965
968
  }
966
- ), (d, u) => {
969
+ ), (c, u) => {
967
970
  var g;
968
971
  return openBlock(), createBlock(_sfc_main$f, {
969
- hoverdData: l.value,
970
- type: (g = c.value) == null ? void 0 : g.type
972
+ hoverdData: a.value,
973
+ type: (g = d.value) == null ? void 0 : g.type
971
974
  }, {
972
975
  header: withCtx(() => {
973
- var h;
976
+ var m;
974
977
  return [
975
978
  createVNode(_sfc_main$b, {
976
- onClick: u[0] || (u[0] = (b) => d.$emit("changeComponent", "project", null))
979
+ onClick: u[0] || (u[0] = (b) => c.$emit("changeComponent", "project", null))
977
980
  }),
978
- createElementVNode("p", _hoisted_1$1, toDisplayString((h = d.block) == null ? void 0 : h.title), 1)
981
+ createElementVNode("p", _hoisted_1$1, toDisplayString((m = c.block) == null ? void 0 : m.title), 1)
979
982
  ];
980
983
  }),
981
984
  default: withCtx(() => {
982
- var h, b, s, f, k, _;
985
+ var m, b, s, f, k, _;
983
986
  return [
984
987
  createElementVNode("div", _hoisted_2, [
985
988
  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) || "",
989
+ src: ((s = (b = (m = c.block) == null ? void 0 : m.block_image) == null ? void 0 : b[0]) == null ? void 0 : s.url) || "",
987
990
  alt: "",
988
991
  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
992
+ "ire-object-contain": c.block.img_contain,
993
+ "ire-object-cover": !c.block.img_contain
991
994
  }])
992
995
  }, null, 10, _hoisted_3),
993
996
  (openBlock(), createElementBlock("div", {
@@ -995,15 +998,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
995
998
  ref: n,
996
999
  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
1000
  {
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
+ "hover:[&_path]:ire-fill-[var(--reserved-color)]": ((f = a.value) == null ? void 0 : f.conf) === "reserved",
1002
+ "hover:[&_path]:ire-fill-[var(--sold-color)]": ((k = a.value) == null ? void 0 : k.conf) === "sold",
1003
+ "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !((_ = a.value) != null && _.conf)
1001
1004
  }
1002
1005
  ]]),
1003
1006
  innerHTML: i.value,
1004
1007
  key: i.value,
1005
- onMouseover: a,
1006
- onClick: m
1008
+ onMouseover: l,
1009
+ onClick: h
1007
1010
  }, null, 42, _hoisted_4))
1008
1011
  ])
1009
1012
  ];
@@ -1019,8 +1022,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1019
1022
  },
1020
1023
  setup(__props) {
1021
1024
  var o, e, t, r, n, p;
1022
- const props = __props, getMeta = (c) => props.shortcodeDataProps.meta.find(
1023
- (l) => l.meta_key === c
1025
+ const props = __props, getMeta = (d) => props.shortcodeDataProps.meta.find(
1026
+ (a) => a.meta_key === d
1024
1027
  ), constants = ref({
1025
1028
  PREVIEW_PATH_COLOR: getMeta("path_color").meta_value || "rgba(255, 255, 255, 0.3)",
1026
1029
  PREVIEW_PATH_HOVER_COLOR: getMeta("path_hover_color").meta_value || "rgba(250, 250, 250, 0.54)",
@@ -1048,17 +1051,17 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1048
1051
  if (shortcodeData.value)
1049
1052
  return shortcodeData.value.project;
1050
1053
  }), floors = computed$1(() => {
1051
- var c;
1054
+ var d;
1052
1055
  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
+ return (d = shortcodeData.value.floors) == null || d.forEach((a) => {
1057
+ const i = shortcodeData.value.flats.filter((h) => h.floor_number !== a.floor_number.toString() ? !1 : Object.values(a.polygon_data).some(
1058
+ (u) => u.type && u.type === "flat" && u.id === h.id ? a.block_id ? h.block_id === a.block_id.toString() : !h.block_id : !1
1056
1059
  ));
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");
1060
+ a.flats = i;
1061
+ const { conf: l } = a || {};
1062
+ if (i != null && i.length && !l) {
1063
+ const h = i.every((u) => u.conf === "reserved"), c = i.every((u) => u.conf === "sold");
1064
+ h ? a.conf = "reserved" : c && (a.conf = "sold");
1062
1065
  }
1063
1066
  }), shortcodeData.value.floors;
1064
1067
  }), blocks = computed$1(() => {
@@ -1068,15 +1071,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1068
1071
  if (shortcodeData.value)
1069
1072
  return shortcodeData.value.types;
1070
1073
  }), flats = computed$1(() => {
1071
- var c;
1074
+ var d, a;
1072
1075
  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);
1076
+ return (a = (d = shortcodeData.value) == null ? void 0 : d.flats) == null ? void 0 : a.map((i) => {
1077
+ var l;
1078
+ if (i != null && i.use_type || !(i != null && i.type)) {
1079
+ const h = (l = types.value) == null ? void 0 : l.find((c) => c.id === i.type_id);
1080
+ h && (i.type = h);
1078
1081
  }
1079
- return l;
1082
+ return i;
1080
1083
  });
1081
1084
  }), actions = computed$1(() => {
1082
1085
  if (shortcodeData.value)
@@ -1084,9 +1087,9 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1084
1087
  }), projectMeta = computed$1(() => {
1085
1088
  if (shortcodeData.value)
1086
1089
  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
+ }), getColorMeta = (d) => {
1091
+ var a, i;
1092
+ return (i = (a = projectMeta.value) == null ? void 0 : a.find((l) => l.meta_key === d)) == null ? void 0 : i.meta_value;
1090
1093
  }, changeRoute = (flowType, polygonItem) => {
1091
1094
  switch (flowType) {
1092
1095
  case "project":
@@ -1113,8 +1116,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1113
1116
  else if (actionData.actionType === "script")
1114
1117
  try {
1115
1118
  eval(actionData == null ? void 0 : actionData.script);
1116
- } catch (c) {
1117
- console.error("Error executing script:", c);
1119
+ } catch (d) {
1120
+ console.error("Error executing script:", d);
1118
1121
  }
1119
1122
  break;
1120
1123
  }
@@ -1122,10 +1125,10 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1122
1125
  return watch(
1123
1126
  () => projectMeta.value,
1124
1127
  () => {
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));
1128
+ const d = getColorMeta("path_color"), a = getColorMeta("path_hover_color"), i = getColorMeta("reserved_color"), l = getColorMeta("sold_color"), h = getColorMeta("stroke_color"), c = getColorMeta("stroke_width");
1129
+ d && (colors.path = d.toString()), a && (colors.path_hover = a.toString()), i && (colors.reserved = i.toString()), l && (colors.sold = l.toString()), h && (colors.stroke_color = h.toString()), c && (colors.stroke_width = Number(c));
1127
1130
  }
1128
- ), (c, l) => (openBlock(), createElementBlock("div", _hoisted_1, [
1131
+ ), (d, a) => (openBlock(), createElementBlock("div", _hoisted_1, [
1129
1132
  createVNode(Transition, {
1130
1133
  name: "ire-fade-in-out",
1131
1134
  mode: "out-in",
@@ -1141,25 +1144,25 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1141
1144
  projectMeta: projectMeta.value,
1142
1145
  blocks: blocks.value,
1143
1146
  actions: actions.value,
1144
- onChangeComponent: l[0] || (l[0] = (i, a) => changeRoute(i, a))
1147
+ onChangeComponent: a[0] || (a[0] = (i, l) => changeRoute(i, l))
1145
1148
  }, null, 8, ["project", "floors", "flats", "projectMeta", "blocks", "actions"])) : flow.value === "blockFlow" && flats.value && floors.value && blocks.value ? (openBlock(), createBlock(_sfc_main$2, {
1146
1149
  key: 1,
1147
1150
  block: hoveredData.value,
1148
1151
  flats: flats.value,
1149
1152
  floors: floors.value,
1150
- onChangeComponent: l[1] || (l[1] = (i, a) => changeRoute(i, a))
1153
+ onChangeComponent: a[1] || (a[1] = (i, l) => changeRoute(i, l))
1151
1154
  }, null, 8, ["block", "flats", "floors"])) : flow.value === "floorFlow" && floors.value ? (openBlock(), createBlock(_sfc_main$a, {
1152
1155
  key: 2,
1153
1156
  flats: flats.value,
1154
1157
  floor: hoveredData.value,
1155
1158
  floors: floors.value,
1156
1159
  blocks: blocks.value,
1157
- onChangeComponent: l[2] || (l[2] = (i, a) => changeRoute(i, a))
1160
+ onChangeComponent: a[2] || (a[2] = (i, l) => changeRoute(i, l))
1158
1161
  }, null, 8, ["flats", "floor", "floors", "blocks"])) : flow.value === "flatFlow" ? (openBlock(), createBlock(_sfc_main$7, {
1159
1162
  key: 3,
1160
1163
  flat: hoveredData.value,
1161
1164
  floors: floors.value,
1162
- onChangeComponent: l[3] || (l[3] = (i, a) => changeRoute(i, a))
1165
+ onChangeComponent: a[3] || (a[3] = (i, l) => changeRoute(i, l))
1163
1166
  }, null, 8, ["flat", "floors"])) : createCommentVNode("", !0)
1164
1167
  ])) : createCommentVNode("", !0)
1165
1168
  ]),
@@ -1173,7 +1176,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render]]
1173
1176
  default: withCtx(() => [
1174
1177
  showModal.value ? (openBlock(), createBlock(_sfc_main$5, {
1175
1178
  key: 0,
1176
- onClose: l[4] || (l[4] = (i) => showModal.value = !1)
1179
+ onClose: a[4] || (a[4] = (i) => showModal.value = !1)
1177
1180
  }, {
1178
1181
  default: withCtx(() => [
1179
1182
  createVNode(_sfc_main$3, { modalData: hoveredData.value }, null, 8, ["modalData"])
@@ -14,8 +14,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
14
14
  }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
15
  "onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
16
16
  }>, {
17
- label: string;
18
17
  placeholder: string;
18
+ label: string;
19
19
  clearable: boolean;
20
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
21
  export default _default;
@@ -4,12 +4,12 @@ declare const _default: import('vue').DefineComponent<{
4
4
  flats: FlatItem[];
5
5
  floors: FloorItem[];
6
6
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7
- changeComponent: (flow: "" | "project" | "flat" | "floor" | "block", hoveredData: any) => any;
7
+ changeComponent: (flow: "" | "flat" | "floor" | "block" | "project", hoveredData: any) => any;
8
8
  }, string, import('vue').PublicProps, Readonly<{
9
9
  block: BlockItem;
10
10
  flats: FlatItem[];
11
11
  floors: FloorItem[];
12
12
  }> & Readonly<{
13
- onChangeComponent?: ((flow: "" | "project" | "flat" | "floor" | "block", hoveredData: any) => any) | undefined;
13
+ onChangeComponent?: ((flow: "" | "flat" | "floor" | "block" | "project", hoveredData: any) => any) | undefined;
14
14
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
15
15
  export default _default;
@@ -3,11 +3,11 @@ declare const _default: import('vue').DefineComponent<{
3
3
  flat: FlatItem | undefined;
4
4
  floors: FloorItem[] | undefined;
5
5
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
6
- changeComponent: (flow: "" | "project" | "flat" | "floor" | "block", hoveredData: any) => any;
6
+ changeComponent: (flow: "" | "flat" | "floor" | "block" | "project", hoveredData: any) => any;
7
7
  }, string, import('vue').PublicProps, Readonly<{
8
8
  flat: FlatItem | undefined;
9
9
  floors: FloorItem[] | undefined;
10
10
  }> & Readonly<{
11
- onChangeComponent?: ((flow: "" | "project" | "flat" | "floor" | "block", hoveredData: any) => any) | undefined;
11
+ onChangeComponent?: ((flow: "" | "flat" | "floor" | "block" | "project", hoveredData: any) => any) | undefined;
12
12
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
13
  export default _default;
@@ -5,13 +5,13 @@ declare const _default: import('vue').DefineComponent<{
5
5
  floors: FloorItem[];
6
6
  blocks?: BlockItem[];
7
7
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
- changeComponent: (flow: "" | "project" | "flat" | "floor" | "block", hoveredData: any) => any;
8
+ changeComponent: (flow: "" | "flat" | "floor" | "block" | "project", hoveredData: any) => any;
9
9
  }, string, import('vue').PublicProps, Readonly<{
10
10
  flats: FlatItem[] | undefined;
11
11
  floor: FloorItem;
12
12
  floors: FloorItem[];
13
13
  blocks?: BlockItem[];
14
14
  }> & Readonly<{
15
- onChangeComponent?: ((flow: "" | "project" | "flat" | "floor" | "block", hoveredData: any) => any) | undefined;
15
+ onChangeComponent?: ((flow: "" | "flat" | "floor" | "block" | "project", hoveredData: any) => any) | undefined;
16
16
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
17
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ire-preview",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "type": "module",
5
5
  "emitDeclarationOnly": true,
6
6
  "declaration": true,