ire-preview 3.2.20 → 3.2.21
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
|
@@ -564,7 +564,14 @@ const tr = (Be) => {
|
|
|
564
564
|
maximumFractionDigits: ke
|
|
565
565
|
});
|
|
566
566
|
return _e.getMetaValue("currency") === "chf" && ($e = $e.replaceAll(",", "'")), $e;
|
|
567
|
-
}, getArea = (Be) => Number(Be).toLocaleString(), getAreaUnitLabel = () => useGlobalStore().getMetaValue("area_unit") ?? "m",
|
|
567
|
+
}, getArea = (Be) => Number(Be).toLocaleString(), getAreaUnitLabel = () => useGlobalStore().getMetaValue("area_unit") ?? "m", getBlockById = (Be) => {
|
|
568
|
+
var ke, $e;
|
|
569
|
+
const _e = useGlobalStore();
|
|
570
|
+
if (Be)
|
|
571
|
+
return ($e = (ke = _e.shortcodeData) == null ? void 0 : ke.blocks) == null ? void 0 : $e.find(
|
|
572
|
+
(Ne) => Ne.id === (Be == null ? void 0 : Be.toString())
|
|
573
|
+
);
|
|
574
|
+
}, getFloorById = (Be) => {
|
|
568
575
|
var ke, $e;
|
|
569
576
|
const _e = useGlobalStore();
|
|
570
577
|
if (Be)
|
|
@@ -5805,7 +5812,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5805
5812
|
setQuery(Fe, "");
|
|
5806
5813
|
});
|
|
5807
5814
|
}), (je, Fe) => {
|
|
5808
|
-
var He, We, qe, Ue, Ye, Je, Ze, Qe, ni, ei, Ke, Xe, Ge, ti, ii, oi, ri, si, ai, li, ci, di, hi, fi, pi, mi, vi, gi, bi, yi, _i, xi;
|
|
5815
|
+
var He, We, qe, Ue, Ye, Je, Ze, Qe, ni, ei, Ke, Xe, Ge, ti, ii, oi, ri, si, ai, li, ci, di, hi, fi, pi, mi, vi, gi, bi, yi, _i, xi, wi, ki, Si, Ei;
|
|
5809
5816
|
return openBlock(), createElementBlock("div", {
|
|
5810
5817
|
class: normalizeClass(["irep-flat-preview ire-grid", {
|
|
5811
5818
|
"lg:ire-grid-cols-[1.5fr,1fr]": Ae.value
|
|
@@ -5834,34 +5841,39 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5834
5841
|
createElementVNode("div", _hoisted_5$4, toDisplayString((ni = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : ni.teaser), 1)
|
|
5835
5842
|
])) : createCommentVNode("", !0),
|
|
5836
5843
|
createElementVNode("div", _hoisted_6$3, [
|
|
5837
|
-
(ei = Be.flat) != null && ei.
|
|
5844
|
+
(ei = Be.flat) != null && ei.block_id ? (openBlock(), createBlock(_sfc_main$z, {
|
|
5838
5845
|
key: 0,
|
|
5839
|
-
keyName: unref(tr)("
|
|
5840
|
-
value: ((Ge = (Xe = unref(
|
|
5846
|
+
keyName: unref(tr)("block"),
|
|
5847
|
+
value: ((Ge = (Xe = unref(getBlockById)(+((Ke = Be.flat) == null ? void 0 : Ke.block_id))) == null ? void 0 : Xe.title) == null ? void 0 : Ge.toString()) || ""
|
|
5841
5848
|
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5842
|
-
(
|
|
5849
|
+
(ti = Be.flat) != null && ti.floor_id ? (openBlock(), createBlock(_sfc_main$z, {
|
|
5843
5850
|
key: 1,
|
|
5851
|
+
keyName: unref(tr)("floor"),
|
|
5852
|
+
value: ((ri = (oi = unref(getFloorById)(+((ii = Be.flat) == null ? void 0 : ii.floor_id))) == null ? void 0 : oi.floor_number) == null ? void 0 : ri.toString()) || ""
|
|
5853
|
+
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5854
|
+
(ai = (si = Be.flat) == null ? void 0 : si.type) != null && ai.area_m2 ? (openBlock(), createBlock(_sfc_main$z, {
|
|
5855
|
+
key: 2,
|
|
5844
5856
|
keyName: unref(tr)("area"),
|
|
5845
|
-
value: unref(getArea)(Number((
|
|
5857
|
+
value: unref(getArea)(Number((li = Be.flat) == null ? void 0 : li.type.area_m2))
|
|
5846
5858
|
}, {
|
|
5847
5859
|
sufix: withCtx(() => [
|
|
5848
5860
|
createElementVNode("span", null, toDisplayString(unref(getAreaUnitLabel)()) + "² ", 1)
|
|
5849
5861
|
]),
|
|
5850
5862
|
_: 1
|
|
5851
5863
|
}, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5852
|
-
(
|
|
5853
|
-
key:
|
|
5864
|
+
(di = (ci = Be.flat) == null ? void 0 : ci.type) != null && di.rooms_count ? (openBlock(), createBlock(_sfc_main$z, {
|
|
5865
|
+
key: 3,
|
|
5854
5866
|
keyName: unref(tr)("room"),
|
|
5855
5867
|
value: Be.flat.type.rooms_count
|
|
5856
5868
|
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5857
|
-
(
|
|
5858
|
-
key:
|
|
5869
|
+
(hi = Be.flat) != null && hi.request_price ? (openBlock(), createBlock(_sfc_main$z, {
|
|
5870
|
+
key: 4,
|
|
5859
5871
|
keyName: unref(tr)("price"),
|
|
5860
5872
|
value: unref(tr)("Request Price")
|
|
5861
|
-
}, null, 8, ["keyName", "value"])) : (
|
|
5862
|
-
key:
|
|
5873
|
+
}, null, 8, ["keyName", "value"])) : (fi = Be.flat) != null && fi.offer_price ? (openBlock(), createBlock(_sfc_main$z, {
|
|
5874
|
+
key: 5,
|
|
5863
5875
|
keyName: unref(tr)("price"),
|
|
5864
|
-
value: unref(getPrice)(Number((
|
|
5876
|
+
value: unref(getPrice)(Number((pi = Be.flat) == null ? void 0 : pi.offer_price))
|
|
5865
5877
|
}, {
|
|
5866
5878
|
top: withCtx(() => {
|
|
5867
5879
|
var ui;
|
|
@@ -5876,26 +5888,26 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5876
5888
|
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
5877
5889
|
]),
|
|
5878
5890
|
_: 1
|
|
5879
|
-
}, 8, ["keyName", "value"])) : (
|
|
5880
|
-
key:
|
|
5891
|
+
}, 8, ["keyName", "value"])) : (mi = Be.flat) != null && mi.price && Number(Be.flat.price) > 0 ? (openBlock(), createBlock(_sfc_main$z, {
|
|
5892
|
+
key: 6,
|
|
5881
5893
|
keyName: unref(tr)("price"),
|
|
5882
|
-
value: unref(getPrice)(Number((
|
|
5894
|
+
value: unref(getPrice)(Number((vi = Be.flat) == null ? void 0 : vi.price))
|
|
5883
5895
|
}, {
|
|
5884
5896
|
sufix: withCtx(() => [
|
|
5885
5897
|
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
5886
5898
|
]),
|
|
5887
5899
|
_: 1
|
|
5888
5900
|
}, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5889
|
-
(
|
|
5901
|
+
(yi = (bi = (gi = Be.flat) == null ? void 0 : gi.type) == null ? void 0 : bi.other) != null && yi.length ? (openBlock(!0), createElementBlock(Fragment, { key: 7 }, renderList(Be.flat.type.other, (ui) => (openBlock(), createBlock(_sfc_main$z, {
|
|
5890
5902
|
keyName: ui.key,
|
|
5891
5903
|
value: ui.value
|
|
5892
5904
|
}, null, 8, ["keyName", "value"]))), 256)) : createCommentVNode("", !0)
|
|
5893
5905
|
])
|
|
5894
5906
|
]),
|
|
5895
5907
|
createElementVNode("div", _hoisted_8$2, [
|
|
5896
|
-
(
|
|
5908
|
+
(wi = (xi = (_i = Be.flat) == null ? void 0 : _i.files) == null ? void 0 : xi[0]) != null && wi.url ? (openBlock(), createElementBlock("a", {
|
|
5897
5909
|
key: 0,
|
|
5898
|
-
href: (
|
|
5910
|
+
href: (Ei = (Si = (ki = Be.flat) == null ? void 0 : ki.files) == null ? void 0 : Si[0]) == null ? void 0 : Ei.url,
|
|
5899
5911
|
target: "_blank",
|
|
5900
5912
|
class: "ire-w-full ire-p-2"
|
|
5901
5913
|
}, [
|
|
@@ -3,6 +3,7 @@ export declare const currencySymbol: () => string;
|
|
|
3
3
|
export declare const getPrice: (price: number) => string;
|
|
4
4
|
export declare const getArea: (area: number) => string;
|
|
5
5
|
export declare const getAreaUnitLabel: () => string | number;
|
|
6
|
+
export declare const getBlockById: (id: number) => import('../types/DemoTypes').BlockItem | undefined;
|
|
6
7
|
export declare const getFloorById: (id: number) => import('../types/DemoTypes').FloorItem | undefined;
|
|
7
8
|
export declare const setQuery: (key: string, value: string) => void;
|
|
8
9
|
export declare const getQuery: (key: string) => string | null;
|
|
@@ -22,7 +22,7 @@ export declare const useGlobalStore: import('pinia').StoreDefinition<"global", P
|
|
|
22
22
|
}>;
|
|
23
23
|
setData: (data: any) => void;
|
|
24
24
|
setIrePlaginWp: (val: IrePlagin) => void;
|
|
25
|
-
}, "
|
|
25
|
+
}, "hoverdSvg" | "tooltip" | "shortcodeData" | "irePlaginWp">, Pick<{
|
|
26
26
|
hoverdSvg: import('vue').Ref<any, any>;
|
|
27
27
|
tooltip: import('vue').Ref<string, string>;
|
|
28
28
|
shortcodeData: import('vue').Ref<ShortcodeData | undefined, ShortcodeData | undefined>;
|