ire-preview 3.1.1 → 3.1.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.
Files changed (2) hide show
  1. package/dist/lib.es.js +38 -38
  2. package/package.json +1 -1
package/dist/lib.es.js CHANGED
@@ -714,15 +714,15 @@ const tr = (Ne) => {
714
714
  ), Ke = Ue == null ? void 0 : Ue.id;
715
715
  switch (Ue == null ? void 0 : Ue.type) {
716
716
  case "block":
717
- const ii = (ei = $e.blocks) == null ? void 0 : ei.find((si) => si.id === Ke);
717
+ const ii = (ei = $e.blocks) == null ? void 0 : ei.find((ri) => ri.id === Ke);
718
718
  Ye.setAttribute("conf", (ii == null ? void 0 : ii.conf) || "");
719
719
  break;
720
720
  case "floor":
721
- const oi = (Ge = $e.floors) == null ? void 0 : Ge.find((si) => si.id === Ke);
721
+ const oi = (Ge = $e.floors) == null ? void 0 : Ge.find((ri) => ri.id === Ke);
722
722
  Ye.setAttribute("conf", (oi == null ? void 0 : oi.conf) || "");
723
723
  break;
724
724
  case "flat":
725
- const ni = (ti = $e.flats) == null ? void 0 : ti.find((si) => si.id === Ke);
725
+ const ni = (ti = $e.flats) == null ? void 0 : ti.find((ri) => ri.id === Ke);
726
726
  Ye.setAttribute("conf", (ni == null ? void 0 : ni.conf) || "");
727
727
  break;
728
728
  }
@@ -751,27 +751,27 @@ const tr = (Ne) => {
751
751
  switch ((Ue = ze.value) == null ? void 0 : Ue.type) {
752
752
  case "floor":
753
753
  const ii = (Ke = $e.floors) == null ? void 0 : Ke.find(
754
- (ri) => ri.id === ti
754
+ (si) => si.id === ti
755
755
  );
756
756
  Ae.value = ii;
757
757
  break;
758
758
  case "block":
759
759
  const oi = (Qe = $e.blocks) == null ? void 0 : Qe.find(
760
- (ri) => (ri == null ? void 0 : ri.id) === ti
760
+ (si) => (si == null ? void 0 : si.id) === ti
761
761
  );
762
762
  Ae.value = oi;
763
763
  break;
764
764
  case "flat":
765
765
  const ni = (Je = $e.flats) == null ? void 0 : Je.find(
766
- (ri) => (ri == null ? void 0 : ri.id) === ti
766
+ (si) => (si == null ? void 0 : si.id) === ti
767
767
  );
768
768
  Ae.value = ni;
769
769
  break;
770
770
  case "tooltip":
771
- const si = (ei = $e.actions) == null ? void 0 : ei.find(
772
- (ri) => (ri == null ? void 0 : ri.id) === ti
771
+ const ri = (ei = $e.actions) == null ? void 0 : ei.find(
772
+ (si) => (si == null ? void 0 : si.id) === ti
773
773
  );
774
- Ae.value = si;
774
+ Ae.value = ri;
775
775
  break;
776
776
  default:
777
777
  Ae.value = null;
@@ -940,18 +940,18 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_ren
940
940
  }, Ye = () => {
941
941
  var Ue;
942
942
  Re.value && ((Ue = Re.value) == null ? void 0 : Ue.querySelectorAll("g")).forEach((Qe) => {
943
- var Ge, ti, ii, oi, ni, si;
943
+ var Ge, ti, ii, oi, ni, ri;
944
944
  const Je = Qe == null ? void 0 : Qe.getAttribute("id"), ei = (ti = (Ge = $e.floor) == null ? void 0 : Ge.polygon_data) == null ? void 0 : ti.find(
945
- (ri) => (ri == null ? void 0 : ri.key) === Je
945
+ (si) => (si == null ? void 0 : si.key) === Je
946
946
  );
947
947
  if ($e.flats)
948
948
  if ((ii = $e.floor) != null && ii.conf)
949
949
  Qe.setAttribute("conf", ((oi = $e.floor) == null ? void 0 : oi.conf) || "");
950
950
  else {
951
- const ri = (ni = $e.flats) == null ? void 0 : ni.find(
951
+ const si = (ni = $e.flats) == null ? void 0 : ni.find(
952
952
  (ai) => (ai == null ? void 0 : ai.id) === (ei == null ? void 0 : ei.id)
953
953
  );
954
- Qe == null || Qe.setAttribute("conf", ((si = ri == null ? void 0 : ri.conf) == null ? void 0 : si.toString()) || "");
954
+ Qe == null || Qe.setAttribute("conf", ((ri = si == null ? void 0 : si.conf) == null ? void 0 : ri.toString()) || "");
955
955
  }
956
956
  });
957
957
  }, Ze = () => {
@@ -967,26 +967,26 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_ren
967
967
  const Ke = Ue == null ? void 0 : Ue.parentElement;
968
968
  if (Ke && (Ke == null ? void 0 : Ke.nodeName) === "g") {
969
969
  const ni = Ke.getAttribute("id");
970
- if (!ni || (Ae.value = ((Je = (Qe = $e.floor) == null ? void 0 : Qe.polygon_data) == null ? void 0 : Je.find((si) => (si == null ? void 0 : si.key) === ni)) || null, !Ae.value)) return;
970
+ if (!ni || (Ae.value = ((Je = (Qe = $e.floor) == null ? void 0 : Qe.polygon_data) == null ? void 0 : Je.find((ri) => (ri == null ? void 0 : ri.key) === ni)) || null, !Ae.value)) return;
971
971
  if (((ei = Ae.value) == null ? void 0 : ei.type) === "flat") {
972
- const si = (Ge = $e.flats) == null ? void 0 : Ge.find(
972
+ const ri = (Ge = $e.flats) == null ? void 0 : Ge.find(
973
973
  (ai) => {
974
974
  var li;
975
975
  return (ai == null ? void 0 : ai.id) === ((li = Ae.value) == null ? void 0 : li.id);
976
976
  }
977
- ), ri = si ? {
978
- ...si,
979
- conf: si.conf || ((ti = $e.floor) == null ? void 0 : ti.conf) || ""
977
+ ), si = ri ? {
978
+ ...ri,
979
+ conf: ri.conf || ((ti = $e.floor) == null ? void 0 : ti.conf) || ""
980
980
  } : null;
981
- ze.value = ri;
981
+ ze.value = si;
982
982
  } else if (((ii = Ae.value) == null ? void 0 : ii.type) === "tooltip") {
983
- const si = (oi = $e.actions) == null ? void 0 : oi.find(
984
- (ri) => {
983
+ const ri = (oi = $e.actions) == null ? void 0 : oi.find(
984
+ (si) => {
985
985
  var ai;
986
- return (ri == null ? void 0 : ri.id) === ((ai = Ae.value) == null ? void 0 : ai.id);
986
+ return (si == null ? void 0 : si.id) === ((ai = Ae.value) == null ? void 0 : ai.id);
987
987
  }
988
988
  );
989
- ze.value = si ?? null;
989
+ ze.value = ri ?? null;
990
990
  } else
991
991
  ze.value = null;
992
992
  } else
@@ -1685,11 +1685,11 @@ class I extends g {
1685
1685
  const ze = parseFloat(Re.paddingTop) + parseFloat(Re.paddingBottom), je = Ie - (parseFloat(Re.paddingLeft) + parseFloat(Re.paddingRight)), Fe = Ae - ze;
1686
1686
  this.containerRect = { width: Ie, height: Ae, innerWidth: je, innerHeight: Fe };
1687
1687
  const He = parseFloat(De.dataset.width || "") || ((ni) => {
1688
- let si = 0;
1689
- return si = ni instanceof HTMLImageElement ? ni.naturalWidth : ni instanceof SVGElement ? ni.width.baseVal.value : Math.max(ni.offsetWidth, ni.scrollWidth), si || 0;
1688
+ let ri = 0;
1689
+ return ri = ni instanceof HTMLImageElement ? ni.naturalWidth : ni instanceof SVGElement ? ni.width.baseVal.value : Math.max(ni.offsetWidth, ni.scrollWidth), ri || 0;
1690
1690
  })(De), We = parseFloat(De.dataset.height || "") || ((ni) => {
1691
- let si = 0;
1692
- return si = ni instanceof HTMLImageElement ? ni.naturalHeight : ni instanceof SVGElement ? ni.height.baseVal.value : Math.max(ni.offsetHeight, ni.scrollHeight), si || 0;
1691
+ let ri = 0;
1692
+ return ri = ni instanceof HTMLImageElement ? ni.naturalHeight : ni instanceof SVGElement ? ni.height.baseVal.value : Math.max(ni.offsetHeight, ni.scrollHeight), ri || 0;
1693
1693
  })(De);
1694
1694
  let qe = this.option("width", He) || z, Xe = this.option("height", We) || z;
1695
1695
  const Ye = qe === z, Ze = Xe === z;
@@ -1700,9 +1700,9 @@ class I extends g {
1700
1700
  Ue.style.setProperty("transform", "none", "important"), Le && (Ue.style.width = "", Ue.style.height = ""), Ue.offsetHeight;
1701
1701
  const Qe = De.getBoundingClientRect();
1702
1702
  let Je = Qe.width * $e, ei = Qe.height * $e, Ge = Je, ti = ei;
1703
- Je = Math.min(Je, qe), ei = Math.min(ei, Xe), Le ? { width: Je, height: ei } = ((ni, si, ri, ai) => {
1704
- const li = ri / ni, ui = ai / si, di = Math.min(li, ui);
1705
- return { width: ni *= di, height: si *= di };
1703
+ Je = Math.min(Je, qe), ei = Math.min(ei, Xe), Le ? { width: Je, height: ei } = ((ni, ri, si, ai) => {
1704
+ const li = si / ni, ui = ai / ri, di = Math.min(li, ui);
1705
+ return { width: ni *= di, height: ri *= di };
1706
1706
  })(qe, Xe, Je, ei) : (Je = Math.min(Je, qe), ei = Math.min(ei, Xe));
1707
1707
  let ii = 0.5 * (ti - ei), oi = 0.5 * (Ge - Je);
1708
1708
  this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: Qe.top - Ve.top + ii, bottom: Ve.bottom - Qe.bottom + ii, left: Qe.left - Ve.left + oi, right: Ve.right - Qe.right + oi, fitWidth: Je, fitHeight: ei, width: Je, height: ei, fullWidth: qe, fullHeight: Xe }), Ue.style.cssText = Ke, Le && (Ue.style.width = `${Je}px`, Ue.style.height = `${ei}px`), this.setTransform(), _e !== !0 && this.emit("refresh"), this.ignoreBounds || (t(this.targetScale) < t(this.minScale) ? this.zoomTo(this.minScale, { friction: 0 }) : this.targetScale > this.maxScale ? this.zoomTo(this.maxScale, { friction: 0 }) : this.state === m.Init || this.checkBounds().inBounds || this.requestTick()), this.updateControls();
@@ -5222,7 +5222,7 @@ function _sfc_render$2(Ne, _e) {
5222
5222
  createStaticVNode('<g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><rect class="cls-1" width="256" height="256" rx="128"></rect><path class="cls-2" d="M138.26,42.2C116.44,52.3,113,54,112.25,55.27s-.8,3.9-.8,69.36c0,60.7-.08,68.19-.62,68.65-1,.8-7.54-.62-8.38-1.84-.55-.75-.63-8.63-.63-58.81,0-52.1-.08-58-.67-58.93a4.29,4.29,0,0,0-4.56-1.51c-3.06.92-29,13.53-29.87,14.54l-.92,1v41c0,40.59,0,41-.84,41.47a1.67,1.67,0,0,1-1.59,0c-1.21-.63-7.62-7.5-11.06-11.81s-4.27-4.82-6.53-4.19c-.71.21-4.9,3.14-9.3,6.53s-8.34,6.08-8.71,6c-2.31-.21-3.44.67-3.44,2.68,0,1.68.38,2.27,1.68,2.73a2.76,2.76,0,0,0,3.81-2.06c.46-1.42,1.42-2.34,8.25-7.53a96.6,96.6,0,0,1,8.42-6.08c.92-.25,1.13,0,4.15,3.81,3.93,5,11.18,12.23,12.56,12.49a4.82,4.82,0,0,0,2.39-.3c2.68-1.13,2.51,1.93,2.72-43.35l.21-41.3L83,81.16c7.92-3.77,14.66-6.83,15-6.83a2.05,2.05,0,0,1,1.13.67c.58.59.67,6.49.67,58.6,0,41.59.12,58.26.46,59,.58,1.34,1.46,1.76,5.78,2.81,3.93,1,5.36.84,6.78-.67l1-1.09.12-68.36c.09-64.42.13-68.44.84-69,.55-.5,25.93-12.6,28.48-13.61a1.67,1.67,0,0,1,1.34.5c.84.76.84,1.76.84,75.06,0,82-.21,75.77,2.6,76.74,1.3.46,4.19,0,5.82-.84,2.14-1.13,2,.42,2-47.16,0-24.38.17-44.53.34-44.78.38-.54,28-9.8,29.28-9.8a1.83,1.83,0,0,1,1.38.8c.29.54.42,13.52.42,39.12v38.28l1,1.09a4,4,0,0,0,4.61.92c1.55-.63,7.25-6.53,11.69-12.06,1.8-2.22,3.52-4.07,3.85-4.07,1,0,17.34,12.61,17.34,13.41,0,2.39,3.56,3.6,5.11,1.71a2.85,2.85,0,0,0-2.43-4.77c-1.46,0-2.39-.5-9.8-6.12-4.52-3.39-8.71-6.32-9.34-6.49-1.84-.46-3.43.63-6.41,4.36-4.1,5.19-8.46,9.88-10.34,11.18L191,170.83l-.79-1c-.76-.92-.8-2.39-.8-39.29V92.26L188.15,91a3.78,3.78,0,0,0-2.39-1.21c-1.09,0-26.47,8.12-29.61,9.5-3,1.3-2.81-1.8-2.81,47.42s.21,45.36-2.76,45.95c-1.14.21-1.68.08-2.18-.42-.67-.63-.71-6.37-.8-74.93-.08-58.77-.21-74.44-.63-75.23A5.74,5.74,0,0,0,143.41,40C143.25,40,140.9,41,138.26,42.2Z"></path><path class="cls-2" d="M127.62,71.48a3,3,0,0,0,.17,3.9c.84.75.84,1.29.84,59.35s0,58.64-.84,59.68c-1.72,2.22-.59,4.74,2.09,4.74s3.82-2.52,2.1-4.74c-.84-1-.84-1.67-.84-59.56s0-58.51.84-59.56a4,4,0,0,0,.84-2.05C132.82,70.81,129,69.51,127.62,71.48Z"></path><path class="cls-2" d="M83,99.75c-2.13.8-2.85,3.52-1.25,5,.83.75.83,1.29.83,40.5s0,39.71-.83,40.54a3.38,3.38,0,0,0-.84,2.1,2.8,2.8,0,0,0,5,1.84c1.09-1.42,1.13-2.68,0-3.85-.83-.88-.83-1.47-.83-40.55s0-39.62.83-40.67a4,4,0,0,0,.84-2C86.74,100.84,84.56,99.17,83,99.75Z"></path><path class="cls-2" d="M169.13,121.16a3.21,3.21,0,0,0,.13,4.14c.83.72.83,1.26.83,26.94s0,26.22-.83,26.93c-1.6,1.38-.8,4.81,1.17,4.94,2.34.17,3.27-.38,3.64-2.22a2.61,2.61,0,0,0-.58-2.47c-.88-1.17-.88-1.42-.88-27.23,0-25.38,0-26,.84-27,1-1.39,1-2.27,0-3.65A2.9,2.9,0,0,0,169.13,121.16Z"></path></g></g>', 1)
5223
5223
  ]));
5224
5224
  }
5225
- const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$2]]), _hoisted_1$h = { class: "ire-w-full ire-overflow-hidden" }, _hoisted_2$d = { class: "ire-w-full ire-p-4" }, _hoisted_3$9 = { class: "ire-relative ire-p-4 lg:ire-p-0" }, _hoisted_4$5 = ["data-fancybox", "href"], _hoisted_5$3 = ["src"], _hoisted_6$2 = { class: "ire-swiper-button-prev ire-group ire-absolute ire-left-0 ire-top-0 ire-z-10 ire-hidden ire-h-full ire-cursor-pointer ire-items-center ire-justify-center md:ire-flex" }, _hoisted_7$2 = { class: "ire-swiper-button-next ire-group ire-absolute ire-right-0 ire-top-0 ire-z-10 ire-hidden ire-h-full ire-cursor-pointer ire-items-center ire-justify-center md:ire-flex" }, _hoisted_8$2 = { class: "flex ire-flex-wrap ire-items-center ire-justify-center ire-gap-4 ire-p-4 lg:ire-gap-8" }, _hoisted_9$1 = {
5225
+ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$2]]), _hoisted_1$h = { class: "ire-w-full ire-overflow-hidden" }, _hoisted_2$d = { class: "ire-w-fit ire-p-4" }, _hoisted_3$9 = { class: "ire-relative ire-p-4 lg:ire-p-0" }, _hoisted_4$5 = ["data-fancybox", "href"], _hoisted_5$3 = ["src"], _hoisted_6$2 = { class: "ire-swiper-button-prev ire-group ire-absolute ire-left-0 ire-top-0 ire-z-10 ire-hidden ire-h-full ire-cursor-pointer ire-items-center ire-justify-center md:ire-flex" }, _hoisted_7$2 = { class: "ire-swiper-button-next ire-group ire-absolute ire-right-0 ire-top-0 ire-z-10 ire-hidden ire-h-full ire-cursor-pointer ire-items-center ire-justify-center md:ire-flex" }, _hoisted_8$2 = { class: "flex ire-flex-wrap ire-items-center ire-justify-center ire-gap-4 ire-p-4 lg:ire-gap-8" }, _hoisted_9$1 = {
5226
5226
  key: 1,
5227
5227
  class: "ire-flex ire-items-center ire-gap-3"
5228
5228
  }, _hoisted_10$1 = {
@@ -5415,8 +5415,8 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$2]
5415
5415
  class: "ire-text-black"
5416
5416
  }, _hoisted_2$b = {
5417
5417
  key: 1,
5418
- class: "ire-flex ire-flex-col ire-gap-4"
5419
- }, _hoisted_3$7 = { class: "ire-text-lg ire-font-semibold ire-text-black" }, _hoisted_4$4 = { class: "flex ire-mt-4 ire-gap-3" }, _sfc_main$c = /* @__PURE__ */ defineComponent({
5418
+ class: "irep-callback-form ire-flex ire-flex-col ire-gap-4"
5419
+ }, _hoisted_3$7 = { class: "irep-callback-form__title ire-text-lg ire-font-semibold ire-text-black" }, _hoisted_4$4 = { class: "irep-callback-form__buttons flex ire-mt-4 ire-gap-3" }, _sfc_main$c = /* @__PURE__ */ defineComponent({
5420
5420
  __name: "ReservationForm",
5421
5421
  props: {
5422
5422
  flat: {}
@@ -5563,7 +5563,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$2]
5563
5563
  setQuery(Fe, "");
5564
5564
  });
5565
5565
  }), (je, Fe) => {
5566
- var He, We, qe, Xe, Ye, Ze, Ue, Ke, Qe, Je, ei, Ge, ti, ii, oi, ni, si, ri, ai, li, ui, di, hi, pi;
5566
+ var He, We, qe, Xe, Ye, Ze, Ue, Ke, Qe, Je, ei, Ge, ti, ii, oi, ni, ri, si, ai, li, ui, di, hi, pi;
5567
5567
  return openBlock(), createElementBlock("div", {
5568
5568
  class: normalizeClass(["irep-flat-preview ire-grid", {
5569
5569
  "md:ire-grid-cols-[1.5fr,1fr]": Ae.value
@@ -5615,11 +5615,11 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$2]
5615
5615
  keyName: unref(tr)("room"),
5616
5616
  value: je.flat.type.rooms_count
5617
5617
  }, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5618
- (si = je.flat) != null && si.request_price ? (openBlock(), createBlock(_sfc_main$m, {
5618
+ (ri = je.flat) != null && ri.request_price ? (openBlock(), createBlock(_sfc_main$m, {
5619
5619
  key: 3,
5620
5620
  keyName: unref(tr)("price"),
5621
5621
  value: unref(tr)("Request Price")
5622
- }, null, 8, ["keyName", "value"])) : (ri = je.flat) != null && ri.offer_price ? (openBlock(), createBlock(_sfc_main$m, {
5622
+ }, null, 8, ["keyName", "value"])) : (si = je.flat) != null && si.offer_price ? (openBlock(), createBlock(_sfc_main$m, {
5623
5623
  key: 4,
5624
5624
  keyName: unref(tr)("price"),
5625
5625
  value: unref(getPrice)(Number((ai = je.flat) == null ? void 0 : ai.offer_price))
@@ -6499,7 +6499,7 @@ const _hoisted_1 = { class: "ire-py-4" }, _hoisted_2 = {
6499
6499
  class: "ire-text-center ire-capitalize ire-text-black"
6500
6500
  }, _hoisted_3 = {
6501
6501
  key: 2,
6502
- class: "ire-mt-4 ire-flex ire-w-full ire-items-center ire-justify-center [&_.Page-active]:ire-text-white [&_ul]:ire-list-[none]"
6502
+ class: "irep-flats-list__pagination ire-mt-4 ire-flex ire-w-full ire-items-center ire-justify-center [&_.Page-active]:ire-text-white [&_ul]:ire-list-[none]"
6503
6503
  }, _sfc_main = /* @__PURE__ */ defineComponent({
6504
6504
  __name: "FlatsList",
6505
6505
  props: {
@@ -6538,7 +6538,7 @@ const _hoisted_1 = { class: "ire-py-4" }, _hoisted_2 = {
6538
6538
  ), onMounted(() => {
6539
6539
  const He = getQuery("flats-page");
6540
6540
  He && !isNaN(Number(He)) && (Re.value = Number(He)), _e.perPage && !isNaN(Number(_e.perPage)) && (Le.value = Number(_e.perPage));
6541
- }), provide("fromListView", _e.fromListView), (He, We) => (openBlock(), createBlock(_sfc_main$w, null, {
6541
+ }), provide("fromListView", _e.fromListView), (He, We) => (openBlock(), createBlock(_sfc_main$w, { class: "irep-flats-list" }, {
6542
6542
  default: withCtx(() => {
6543
6543
  var qe;
6544
6544
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ire-preview",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "type": "module",
5
5
  "emitDeclarationOnly": true,
6
6
  "declaration": true,