ire-preview 3.1.1 → 3.1.2
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 +37 -37
- 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((
|
|
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((
|
|
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((
|
|
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
|
-
(
|
|
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
|
-
(
|
|
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
|
-
(
|
|
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
|
|
772
|
-
(
|
|
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 =
|
|
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,
|
|
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
|
-
(
|
|
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
|
|
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", ((
|
|
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((
|
|
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
|
|
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
|
-
),
|
|
978
|
-
...
|
|
979
|
-
conf:
|
|
977
|
+
), si = ri ? {
|
|
978
|
+
...ri,
|
|
979
|
+
conf: ri.conf || ((ti = $e.floor) == null ? void 0 : ti.conf) || ""
|
|
980
980
|
} : null;
|
|
981
|
-
ze.value =
|
|
981
|
+
ze.value = si;
|
|
982
982
|
} else if (((ii = Ae.value) == null ? void 0 : ii.type) === "tooltip") {
|
|
983
|
-
const
|
|
984
|
-
(
|
|
983
|
+
const ri = (oi = $e.actions) == null ? void 0 : oi.find(
|
|
984
|
+
(si) => {
|
|
985
985
|
var ai;
|
|
986
|
-
return (
|
|
986
|
+
return (si == null ? void 0 : si.id) === ((ai = Ae.value) == null ? void 0 : ai.id);
|
|
987
987
|
}
|
|
988
988
|
);
|
|
989
|
-
ze.value =
|
|
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
|
|
1689
|
-
return
|
|
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
|
|
1692
|
-
return
|
|
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,
|
|
1704
|
-
const li =
|
|
1705
|
-
return { width: ni *= di, height:
|
|
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();
|
|
@@ -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,
|
|
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
|
-
(
|
|
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"])) : (
|
|
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,
|
|
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 [
|