ire-preview 2.2.4 → 2.2.5

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 +57 -57
  2. package/package.json +1 -1
package/dist/lib.es.js CHANGED
@@ -220,7 +220,7 @@ const _hoisted_1$g = {
220
220
  class: "ire-flex ire-w-fit ire-flex-col ire-items-center ire-py-2"
221
221
  }, _hoisted_24$1 = {
222
222
  key: 0,
223
- class: "!ire-text-2xl"
223
+ class: "ire-whitespace-nowrap !ire-text-2xl"
224
224
  }, _hoisted_25$1 = { key: 1 }, _hoisted_26$1 = { class: "!ire-text-xs ire-line-through" }, _hoisted_27 = { class: "ire-whitespace-nowrap !ire-text-2xl" }, _hoisted_28 = { class: "ire-border ire-border-solid ire-border-gray-800 ire-p-2" }, _hoisted_29 = { class: "ire-translate-x-3 ire-bg-white" }, _sfc_main$j = /* @__PURE__ */ defineComponent({
225
225
  __name: "Tooltip_1",
226
226
  props: {
@@ -231,7 +231,7 @@ const _hoisted_1$g = {
231
231
  return (t, r) => (openBlock(), createElementBlock("div", null, [
232
232
  createVNode(Transition, { name: "ire-fade-in-out" }, {
233
233
  default: withCtx(() => {
234
- var o, s, c, d, k, l, _, w, y, u, f, a, v, n, i, p, m, $, h, E, S, g, b, x, V, C, D, R;
234
+ var o, s, c, d, k, l, _, x, y, u, f, a, v, n, i, p, m, $, h, E, S, g, b, w, V, C, D, R;
235
235
  return [
236
236
  t.type && t.hoveredData && t.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$g, [
237
237
  t.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$9, [
@@ -241,7 +241,7 @@ const _hoisted_1$g = {
241
241
  ]),
242
242
  (s = t.hoveredData) != null && s.conf || (d = (c = t.hoveredData) == null ? void 0 : c.flats) != null && d.length ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
243
243
  (k = t.hoveredData) != null && k.conf ? (openBlock(), createElementBlock("div", _hoisted_6$3, toDisplayString((l = t.hoveredData) == null ? void 0 : l.conf), 1)) : (openBlock(), createElementBlock("div", _hoisted_7$3, [
244
- (w = (_ = t.hoveredData) == null ? void 0 : _.counts) != null && w.available ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
244
+ (x = (_ = t.hoveredData) == null ? void 0 : _.counts) != null && x.available ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
245
245
  createElementVNode("div", _hoisted_9$3, toDisplayString(((u = (y = t.hoveredData) == null ? void 0 : y.counts) == null ? void 0 : u.available) || 0), 1),
246
246
  r[1] || (r[1] = createElementVNode("div", { class: "!ire-text-sm ire-uppercase" }, "Available", -1))
247
247
  ])) : createCommentVNode("", !0),
@@ -270,7 +270,7 @@ const _hoisted_1$g = {
270
270
  r[7] || (r[7] = createElementVNode("div", { class: "!ire-text-xs ire-uppercase ire-text-gray-500" }, " Price ", -1)),
271
271
  (b = t.hoveredData) != null && b.price ? (openBlock(), createElementBlock("div", _hoisted_23$1, [
272
272
  createElementVNode("div", null, [
273
- (x = t.hoveredData) != null && x.offer_price ? (openBlock(), createElementBlock("div", _hoisted_25$1, [
273
+ (w = t.hoveredData) != null && w.offer_price ? (openBlock(), createElementBlock("div", _hoisted_25$1, [
274
274
  createElementVNode("div", _hoisted_26$1, toDisplayString(Number((V = t.hoveredData) == null ? void 0 : V.price).toLocaleString("fr-FR")), 1),
275
275
  createElementVNode("div", _hoisted_27, [
276
276
  createTextVNode(toDisplayString(Number((C = t.hoveredData) == null ? void 0 : C.offer_price).toLocaleString("fr-FR")) + " ", 1),
@@ -278,7 +278,7 @@ const _hoisted_1$g = {
278
278
  ])
279
279
  ])) : (openBlock(), createElementBlock("div", _hoisted_24$1, [
280
280
  createTextVNode(toDisplayString(Number(t.hoveredData.price).toLocaleString("fr-FR")) + " ", 1),
281
- r[5] || (r[5] = createElementVNode("div", null, "$", -1))
281
+ r[5] || (r[5] = createElementVNode("span", null, "$", -1))
282
282
  ]))
283
283
  ])
284
284
  ])) : createCommentVNode("", !0)
@@ -316,7 +316,7 @@ const _hoisted_1$g = {
316
316
  }, _hoisted_11$1 = {
317
317
  key: 1,
318
318
  class: "ire-flex ire-items-center"
319
- }, _hoisted_12$1 = { class: "!ire-text-sm" }, _hoisted_13$1 = { class: "!ire-text-sm" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
319
+ }, _hoisted_12$1 = { class: "ire-whitespace-nowrap !ire-text-sm" }, _hoisted_13$1 = { class: "ire-whitespace-nowrap !ire-text-sm" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
320
320
  __name: "Tooltip_2",
321
321
  props: {
322
322
  hoveredData: {},
@@ -326,7 +326,7 @@ const _hoisted_1$g = {
326
326
  const t = inject("mouseX"), r = inject("mouseY");
327
327
  return (o, s) => (openBlock(), createBlock(Transition, { name: "ire-fade-in" }, {
328
328
  default: withCtx(() => {
329
- var c, d, k, l, _, w, y, u, f, a, v;
329
+ var c, d, k, l, _, x, y, u, f, a, v;
330
330
  return [
331
331
  o.type && o.hoveredData && o.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
332
332
  key: 0,
@@ -342,7 +342,7 @@ const _hoisted_1$g = {
342
342
  ])) : o.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
343
343
  createElementVNode("div", _hoisted_6$2, [
344
344
  createElementVNode("div", null, toDisplayString((_ = o.hoveredData) == null ? void 0 : _.title), 1),
345
- createElementVNode("span", _hoisted_7$2, toDisplayString((w = o.hoveredData) == null ? void 0 : w.conf), 1)
345
+ createElementVNode("span", _hoisted_7$2, toDisplayString((x = o.hoveredData) == null ? void 0 : x.conf), 1)
346
346
  ])
347
347
  ])) : o.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_8$2, [
348
348
  createElementVNode("div", _hoisted_9$2, toDisplayString((y = o.hoveredData) == null ? void 0 : y.flat_number), 1),
@@ -538,8 +538,8 @@ function createOptionsStore(e, t, r, o) {
538
538
  let l;
539
539
  function _() {
540
540
  k || (r.state.value[e] = s ? s() : {});
541
- const w = toRefs(r.state.value[e]);
542
- return assign(w, c, Object.keys(d || {}).reduce((y, u) => (y[u] = markRaw(computed$1(() => {
541
+ const x = toRefs(r.state.value[e]);
542
+ return assign(x, c, Object.keys(d || {}).reduce((y, u) => (y[u] = markRaw(computed$1(() => {
543
543
  setActivePinia(r);
544
544
  const f = r._s.get(e);
545
545
  return d[u].call(f, f);
@@ -550,13 +550,13 @@ function createOptionsStore(e, t, r, o) {
550
550
  function createSetupStore(e, t, r = {}, o, s, c) {
551
551
  let d;
552
552
  const k = assign({ actions: {} }, r), l = { deep: !0 };
553
- let _, w, y = [], u = [], f;
553
+ let _, x, y = [], u = [], f;
554
554
  const a = o.state.value[e];
555
555
  !c && !a && (o.state.value[e] = {}), ref({});
556
556
  let v;
557
557
  function n(g) {
558
558
  let b;
559
- _ = w = !1, typeof g == "function" ? (g(o.state.value[e]), b = {
559
+ _ = x = !1, typeof g == "function" ? (g(o.state.value[e]), b = {
560
560
  type: MutationType.patchFunction,
561
561
  storeId: e,
562
562
  events: f
@@ -566,15 +566,15 @@ function createSetupStore(e, t, r = {}, o, s, c) {
566
566
  storeId: e,
567
567
  events: f
568
568
  });
569
- const x = v = Symbol();
569
+ const w = v = Symbol();
570
570
  nextTick().then(() => {
571
- v === x && (_ = !0);
572
- }), w = !0, triggerSubscriptions(y, b, o.state.value[e]);
571
+ v === w && (_ = !0);
572
+ }), x = !0, triggerSubscriptions(y, b, o.state.value[e]);
573
573
  }
574
574
  const i = c ? function() {
575
- const { state: b } = r, x = b ? b() : {};
575
+ const { state: b } = r, w = b ? b() : {};
576
576
  this.$patch((V) => {
577
- assign(V, x);
577
+ assign(V, w);
578
578
  });
579
579
  } : (
580
580
  /* istanbul ignore next */
@@ -586,7 +586,7 @@ function createSetupStore(e, t, r = {}, o, s, c) {
586
586
  const m = (g, b = "") => {
587
587
  if (ACTION_MARKER in g)
588
588
  return g[ACTION_NAME] = b, g;
589
- const x = function() {
589
+ const w = function() {
590
590
  setActivePinia(o);
591
591
  const V = Array.from(arguments), C = [], D = [];
592
592
  function R(B) {
@@ -597,7 +597,7 @@ function createSetupStore(e, t, r = {}, o, s, c) {
597
597
  }
598
598
  triggerSubscriptions(u, {
599
599
  args: V,
600
- name: x[ACTION_NAME],
600
+ name: w[ACTION_NAME],
601
601
  store: h,
602
602
  after: R,
603
603
  onError: L
@@ -610,7 +610,7 @@ function createSetupStore(e, t, r = {}, o, s, c) {
610
610
  }
611
611
  return N instanceof Promise ? N.then((B) => (triggerSubscriptions(C, B), B)).catch((B) => (triggerSubscriptions(D, B), Promise.reject(B))) : (triggerSubscriptions(C, N), N);
612
612
  };
613
- return x[ACTION_MARKER] = !0, x[ACTION_NAME] = b, x;
613
+ return w[ACTION_MARKER] = !0, w[ACTION_NAME] = b, w;
614
614
  }, $ = {
615
615
  _p: o,
616
616
  // _s: scope,
@@ -619,14 +619,14 @@ function createSetupStore(e, t, r = {}, o, s, c) {
619
619
  $patch: n,
620
620
  $reset: i,
621
621
  $subscribe(g, b = {}) {
622
- const x = addSubscription(y, g, b.detached, () => V()), V = d.run(() => watch(() => o.state.value[e], (C) => {
623
- (b.flush === "sync" ? w : _) && g({
622
+ const w = addSubscription(y, g, b.detached, () => V()), V = d.run(() => watch(() => o.state.value[e], (C) => {
623
+ (b.flush === "sync" ? x : _) && g({
624
624
  storeId: e,
625
625
  type: MutationType.direct,
626
626
  events: f
627
627
  }, C);
628
628
  }, assign({}, l, b)));
629
- return x;
629
+ return w;
630
630
  },
631
631
  $dispose: p
632
632
  }, h = reactive($);
@@ -637,8 +637,8 @@ function createSetupStore(e, t, r = {}, o, s, c) {
637
637
  if (isRef(b) && !isComputed(b) || isReactive(b))
638
638
  c || (a && shouldHydrate(b) && (isRef(b) ? b.value = a[g] : mergeReactiveObjects(b, a[g])), o.state.value[e][g] = b);
639
639
  else if (typeof b == "function") {
640
- const x = m(b, g);
641
- S[g] = x, k.actions[g] = b;
640
+ const w = m(b, g);
641
+ S[g] = w, k.actions[g] = b;
642
642
  }
643
643
  }
644
644
  return assign(h, S), assign(toRaw(h), S), Object.defineProperty(h, "$state", {
@@ -655,7 +655,7 @@ function createSetupStore(e, t, r = {}, o, s, c) {
655
655
  pinia: o,
656
656
  options: k
657
657
  })));
658
- }), a && c && r.hydrate && r.hydrate(h.$state, a), _ = !0, w = !0, h;
658
+ }), a && c && r.hydrate && r.hydrate(h.$state, a), _ = !0, x = !0, h;
659
659
  }
660
660
  /*! #__NO_SIDE_EFFECTS__ */
661
661
  // @__NO_SIDE_EFFECTS__
@@ -703,7 +703,7 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
703
703
  const _ = (y) => {
704
704
  const u = y.target;
705
705
  u && (c.value = u);
706
- }, w = (y) => {
706
+ }, x = (y) => {
707
707
  var f, a, v;
708
708
  const u = y.target;
709
709
  (u == null ? void 0 : u.nodeName) === "path" && (((f = d.value) == null ? void 0 : f.conf) === "sold" || ((a = d.value) == null ? void 0 : a.conf) === "reserved" || r("changeComponent", ((v = k.value) == null ? void 0 : v.type) || "", d == null ? void 0 : d.value));
@@ -722,25 +722,25 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
722
722
  switch ((v = k.value) == null ? void 0 : v.type) {
723
723
  case "floor":
724
724
  const E = (n = o.floors) == null ? void 0 : n.find(
725
- (x) => x.id === h
725
+ (w) => w.id === h
726
726
  );
727
727
  d.value = E;
728
728
  break;
729
729
  case "block":
730
730
  const S = (i = o.blocks) == null ? void 0 : i.find(
731
- (x) => (x == null ? void 0 : x.id) === h
731
+ (w) => (w == null ? void 0 : w.id) === h
732
732
  );
733
733
  d.value = S;
734
734
  break;
735
735
  case "flat":
736
736
  const g = (p = o.flats) == null ? void 0 : p.find(
737
- (x) => (x == null ? void 0 : x.id) === h
737
+ (w) => (w == null ? void 0 : w.id) === h
738
738
  );
739
739
  d.value = g;
740
740
  break;
741
741
  case "tooltip":
742
742
  const b = (m = o.actions) == null ? void 0 : m.find(
743
- (x) => (x == null ? void 0 : x.id) === h
743
+ (w) => (w == null ? void 0 : w.id) === h
744
744
  );
745
745
  d.value = b;
746
746
  break;
@@ -777,7 +777,7 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
777
777
  }
778
778
  ]]),
779
779
  onMouseover: _,
780
- onClick: w
780
+ onClick: x
781
781
  }, null, 42, _hoisted_3$5))
782
782
  ])
783
783
  ];
@@ -872,7 +872,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
872
872
  },
873
873
  emits: ["changeComponent"],
874
874
  setup(e, { emit: t }) {
875
- const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(), l = ref(null), _ = ref(), w = ref(), y = computed$1(() => {
875
+ const r = t, o = e, s = useGlobalStore(), c = ref(), d = ref(), k = ref(), l = ref(null), _ = ref(), x = ref(), y = computed$1(() => {
876
876
  var i;
877
877
  if ((i = o.floor) != null && i.svg)
878
878
  return o.floor.svg;
@@ -907,7 +907,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
907
907
  }, v = () => {
908
908
  var i;
909
909
  c.value && ((i = c.value) == null ? void 0 : i.querySelectorAll("g")).forEach((m) => {
910
- var E, S, g, b, x, V;
910
+ var E, S, g, b, w, V;
911
911
  const $ = m == null ? void 0 : m.getAttribute("id"), h = (S = (E = o.floor) == null ? void 0 : E.polygon_data) == null ? void 0 : S.find(
912
912
  (C) => (C == null ? void 0 : C.key) === $
913
913
  );
@@ -915,7 +915,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
915
915
  if ((g = o.floor) != null && g.conf)
916
916
  m.setAttribute("conf", ((b = o.floor) == null ? void 0 : b.conf) || "");
917
917
  else {
918
- const C = (x = o.flats) == null ? void 0 : x.find(
918
+ const C = (w = o.flats) == null ? void 0 : w.find(
919
919
  (D) => (D == null ? void 0 : D.id) === (h == null ? void 0 : h.id)
920
920
  );
921
921
  m == null || m.setAttribute("conf", ((V = C == null ? void 0 : C.conf) == null ? void 0 : V.toString()) || "");
@@ -923,7 +923,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
923
923
  });
924
924
  }, n = () => {
925
925
  var i;
926
- (i = o.floor) != null && i.block_id ? r("changeComponent", "block", w.value) : r("changeComponent", "project", null);
926
+ (i = o.floor) != null && i.block_id ? r("changeComponent", "block", x.value) : r("changeComponent", "project", null);
927
927
  };
928
928
  return watch(
929
929
  () => d.value,
@@ -934,23 +934,23 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
934
934
  const p = i == null ? void 0 : i.parentElement;
935
935
  if (p && (p == null ? void 0 : p.nodeName) === "g") {
936
936
  const b = p.getAttribute("id");
937
- if (!b || (k.value = (($ = (m = o.floor) == null ? void 0 : m.polygon_data) == null ? void 0 : $.find((x) => (x == null ? void 0 : x.key) === b)) || null, !k.value)) return;
937
+ if (!b || (k.value = (($ = (m = o.floor) == null ? void 0 : m.polygon_data) == null ? void 0 : $.find((w) => (w == null ? void 0 : w.key) === b)) || null, !k.value)) return;
938
938
  if (((h = k.value) == null ? void 0 : h.type) === "flat") {
939
- const x = (E = o.flats) == null ? void 0 : E.find(
939
+ const w = (E = o.flats) == null ? void 0 : E.find(
940
940
  (V) => {
941
941
  var C;
942
942
  return (V == null ? void 0 : V.id) === ((C = k.value) == null ? void 0 : C.id);
943
943
  }
944
944
  );
945
- l.value = x ?? null;
945
+ l.value = w ?? null;
946
946
  } else if (((S = k.value) == null ? void 0 : S.type) === "tooltip") {
947
- const x = (g = o.actions) == null ? void 0 : g.find(
947
+ const w = (g = o.actions) == null ? void 0 : g.find(
948
948
  (V) => {
949
949
  var C;
950
950
  return (V == null ? void 0 : V.id) === ((C = k.value) == null ? void 0 : C.id);
951
951
  }
952
952
  );
953
- l.value = x ?? null;
953
+ l.value = w ?? null;
954
954
  } else
955
955
  l.value = null;
956
956
  } else
@@ -969,7 +969,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_ren
969
969
  }
970
970
  ), onMounted(() => {
971
971
  var i, p, m;
972
- w.value = (i = o.blocks) == null ? void 0 : i.find(
972
+ x.value = (i = o.blocks) == null ? void 0 : i.find(
973
973
  ($) => {
974
974
  var h, E;
975
975
  return ($ == null ? void 0 : $.id) === ((E = (h = o.floor) == null ? void 0 : h.block_id) == null ? void 0 : E.toString());
@@ -1092,15 +1092,15 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
1092
1092
  emits: ["changeComponent"],
1093
1093
  setup(e, { emit: t }) {
1094
1094
  const r = t, o = e, s = ref(!0), c = ref(0), d = computed$1(() => {
1095
- var _, w, y, u, f, a;
1096
- const l = s.value ? (y = (w = (_ = o.flat) == null ? void 0 : _.type) == null ? void 0 : w.image_2d) == null ? void 0 : y.length : (a = (f = (u = o.flat) == null ? void 0 : u.type) == null ? void 0 : f.image_3d) == null ? void 0 : a.length;
1095
+ var _, x, y, u, f, a;
1096
+ const l = s.value ? (y = (x = (_ = o.flat) == null ? void 0 : _.type) == null ? void 0 : x.image_2d) == null ? void 0 : y.length : (a = (f = (u = o.flat) == null ? void 0 : u.type) == null ? void 0 : f.image_3d) == null ? void 0 : a.length;
1097
1097
  return ["I", "II", "III"].slice(0, l);
1098
1098
  }), k = () => {
1099
1099
  var _;
1100
1100
  const l = (_ = o.floors) == null ? void 0 : _.find(
1101
- (w) => {
1101
+ (x) => {
1102
1102
  var y, u, f, a, v, n;
1103
- return ((y = w.floor_number) == null ? void 0 : y.toString()) === ((f = (u = o.flat) == null ? void 0 : u.floor_number) == null ? void 0 : f.toString()) && ((a = o.flat) != null && a.block_id ? ((v = w == null ? void 0 : w.block_id) == null ? void 0 : v.toString()) === ((n = o.flat) == null ? void 0 : n.block_id) : !(w != null && w.block_id));
1103
+ return ((y = x.floor_number) == null ? void 0 : y.toString()) === ((f = (u = o.flat) == null ? void 0 : u.floor_number) == null ? void 0 : f.toString()) && ((a = o.flat) != null && a.block_id ? ((v = x == null ? void 0 : x.block_id) == null ? void 0 : v.toString()) === ((n = o.flat) == null ? void 0 : n.block_id) : !(x != null && x.block_id));
1104
1104
  }
1105
1105
  );
1106
1106
  l ? r("changeComponent", "floor", l) : r("changeComponent", "project", null);
@@ -1119,7 +1119,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
1119
1119
  createVNode(_sfc_main$c, { onClick: k })
1120
1120
  ]),
1121
1121
  default: withCtx(() => {
1122
- var w, y, u, f, a, v, n, i, p, m, $, h, E, S, g, b, x, V, C, D, R, L, N, B, P, O, A, I, F, H, W;
1122
+ var x, y, u, f, a, v, n, i, p, m, $, h, E, S, g, b, w, V, C, D, R, L, N, B, P, O, A, I, F, H, W;
1123
1123
  return [
1124
1124
  createElementVNode("div", _hoisted_1$5, [
1125
1125
  createElementVNode("div", _hoisted_2$3, [
@@ -1145,7 +1145,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
1145
1145
  }),
1146
1146
  createElementVNode("div", _hoisted_5, [
1147
1147
  createElementVNode("div", _hoisted_6, [
1148
- (f = (u = (y = (w = l.flat) == null ? void 0 : w.type) == null ? void 0 : y.image_2d) == null ? void 0 : u[0]) != null && f.url ? (openBlock(), createElementBlock("div", {
1148
+ (f = (u = (y = (x = l.flat) == null ? void 0 : x.type) == null ? void 0 : y.image_2d) == null ? void 0 : u[0]) != null && f.url ? (openBlock(), createElementBlock("div", {
1149
1149
  key: 0,
1150
1150
  class: normalizeClass(["ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-2 ire-rounded-lg ire-p-3 !ire-text-xs ire-transition-all hover:ire-bg-primary", { "!ire-bg-primary !ire-text-white": s.value }]),
1151
1151
  onClick: _[0] || (_[0] = (j) => s.value = !0)
@@ -1196,7 +1196,7 @@ const Cube = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$1]
1196
1196
  ]),
1197
1197
  (h = ($ = l.flat) == null ? void 0 : $.type) != null && h.title || (S = (E = l.flat) == null ? void 0 : E.type) != null && S.teaser ? (openBlock(), createElementBlock("div", _hoisted_12, [
1198
1198
  createElementVNode("div", _hoisted_13, toDisplayString((b = (g = l.flat) == null ? void 0 : g.type) == null ? void 0 : b.title), 1),
1199
- createElementVNode("div", _hoisted_14, toDisplayString((V = (x = l.flat) == null ? void 0 : x.type) == null ? void 0 : V.teaser), 1)
1199
+ createElementVNode("div", _hoisted_14, toDisplayString((V = (w = l.flat) == null ? void 0 : w.type) == null ? void 0 : V.teaser), 1)
1200
1200
  ])) : createCommentVNode("", !0),
1201
1201
  createElementVNode("div", _hoisted_15, [
1202
1202
  (C = l.flat) != null && C.floor_number ? (openBlock(), createElementBlock("div", _hoisted_16, [
@@ -1296,13 +1296,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1296
1296
  },
1297
1297
  setup(e) {
1298
1298
  return (t, r) => {
1299
- var o, s, c, d, k, l, _, w, y, u, f, a;
1299
+ var o, s, c, d, k, l, _, x, y, u, f, a;
1300
1300
  return openBlock(), createElementBlock("div", null, [
1301
1301
  createElementVNode("p", _hoisted_1$1, toDisplayString((s = (o = t.modalData) == null ? void 0 : o.modalObject) == null ? void 0 : s.title), 1),
1302
1302
  createVNode(_sfc_main$5, {
1303
1303
  editor: (d = (c = t.modalData) == null ? void 0 : c.modalObject) == null ? void 0 : d.description
1304
1304
  }, null, 8, ["editor"]),
1305
- (w = (_ = (l = (k = t.modalData) == null ? void 0 : k.modalObject) == null ? void 0 : l.modalImage) == null ? void 0 : _[0]) != null && w.url ? (openBlock(), createElementBlock("img", {
1305
+ (x = (_ = (l = (k = t.modalData) == null ? void 0 : k.modalObject) == null ? void 0 : l.modalImage) == null ? void 0 : _[0]) != null && x.url ? (openBlock(), createElementBlock("img", {
1306
1306
  key: 0,
1307
1307
  src: (a = (f = (u = (y = t.modalData) == null ? void 0 : y.modalObject) == null ? void 0 : u.modalImage) == null ? void 0 : f[0]) == null ? void 0 : a.url,
1308
1308
  alt: "",
@@ -1325,7 +1325,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1325
1325
  var u, f;
1326
1326
  if ((u = o.block) != null && u.svg)
1327
1327
  return (f = o.block) == null ? void 0 : f.svg;
1328
- }), w = (u) => {
1328
+ }), x = (u) => {
1329
1329
  const f = u.target;
1330
1330
  f && (d.value = f);
1331
1331
  }, y = (u) => {
@@ -1412,7 +1412,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1412
1412
  "hover:[&_path]:ire-fill-[var(--path-hover-color)]": !(($ = l.value) != null && $.conf)
1413
1413
  }
1414
1414
  ]]),
1415
- onMouseover: w,
1415
+ onMouseover: x,
1416
1416
  onClick: y
1417
1417
  }, null, 42, _hoisted_4))
1418
1418
  ])
@@ -1434,12 +1434,12 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1434
1434
  const {
1435
1435
  bottom: l,
1436
1436
  height: _,
1437
- left: w,
1437
+ left: x,
1438
1438
  right: y,
1439
1439
  top: u,
1440
1440
  width: f
1441
1441
  } = s.value.getBoundingClientRect(), { bottom: a, left: v } = k.getBoundingClientRect(), { height: n, width: i } = d.getBoundingClientRect(), p = y - f / 2, m = l - _ / 2, $ = v > p, h = a > m;
1442
- r.value = c.clientX - w - ($ ? i : -20), o.value = c.clientY - u - (h ? n : -20);
1442
+ r.value = c.clientX - x - ($ ? i : -20), o.value = c.clientY - u - (h ? n : -20);
1443
1443
  }), provide("mouseX", r), provide("mouseY", o), (c, d) => (openBlock(), createElementBlock("div", {
1444
1444
  ref_key: "canvasRef",
1445
1445
  ref: s
@@ -1453,7 +1453,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1453
1453
  shortcodeDataProps: {}
1454
1454
  },
1455
1455
  setup(__props) {
1456
- var e, t, r, o, s, c, d, k, l, _, w, y, u, f;
1456
+ var e, t, r, o, s, c, d, k, l, _, x, y, u, f;
1457
1457
  const props = __props, getMeta = (a) => props.shortcodeDataProps.meta.find(
1458
1458
  (v) => v.meta_key === a
1459
1459
  ), constants = ref({
@@ -1468,7 +1468,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
1468
1468
  path: (k = constants.value) == null ? void 0 : k.PREVIEW_PATH_COLOR,
1469
1469
  path_hover: (l = constants.value) == null ? void 0 : l.PREVIEW_PATH_HOVER_COLOR,
1470
1470
  reserved: (_ = constants.value) == null ? void 0 : _.PREVIEW_RESERVED_COLOR,
1471
- sold: (w = constants.value) == null ? void 0 : w.PREVIEW_SOLD_COLOR,
1471
+ sold: (x = constants.value) == null ? void 0 : x.PREVIEW_SOLD_COLOR,
1472
1472
  stroke_color: (y = constants.value) == null ? void 0 : y.PREVIEW_STROKE_COLOR,
1473
1473
  stroke_width: (u = constants.value) == null ? void 0 : u.PREVIEW_STROKE_WIDTH,
1474
1474
  border_radius: (f = constants.value) == null ? void 0 : f.PREVIEW_BORDER_RADIUS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ire-preview",
3
- "version": "2.2.4",
3
+ "version": "2.2.5",
4
4
  "type": "module",
5
5
  "emitDeclarationOnly": true,
6
6
  "declaration": true,