ire-preview 2.4.4 → 2.4.6
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
|
@@ -660,7 +660,7 @@ const tr = (Ne) => {
|
|
|
660
660
|
return tr(($e = _e.hoveredData) == null ? void 0 : $e.conf);
|
|
661
661
|
});
|
|
662
662
|
return ($e, Be) => {
|
|
663
|
-
var Le, ze, Ae, Ie, je, Fe, Ve, He, Ye, Xe, We, Ze, Ge, qe, Ue, Qe, Je, Ke;
|
|
663
|
+
var Le, ze, Ae, Ie, je, Fe, Ve, He, Ye, Xe, We, Ze, Ge, qe, Ue, Qe, Je, Ke, ei, ii;
|
|
664
664
|
return $e.type && $e.hoveredData && $e.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
|
|
665
665
|
key: 0,
|
|
666
666
|
class: normalizeClass(["ire-pointer-events-none ire-absolute ire-select-none", {
|
|
@@ -695,43 +695,43 @@ const tr = (Ne) => {
|
|
|
695
695
|
]),
|
|
696
696
|
Be[1] || (Be[1] = createElementVNode("span", null, "•", -1)),
|
|
697
697
|
createElementVNode("div", _hoisted_11$2, [
|
|
698
|
-
createElementVNode("span", null, toDisplayString(Re.value === "sold" ? ((Fe = $e.hoveredData) == null ? void 0 : Fe.flats.length) || 0 : ((
|
|
698
|
+
createElementVNode("span", null, toDisplayString(Re.value === "sold" ? ((Ve = (Fe = $e.hoveredData) == null ? void 0 : Fe.flats) == null ? void 0 : Ve.length) || 0 : ((Ye = (He = $e.hoveredData) == null ? void 0 : He.counts) == null ? void 0 : Ye.sold) || 0), 1),
|
|
699
699
|
createTextVNode(" " + toDisplayString(unref(tr)("sold")), 1)
|
|
700
700
|
]),
|
|
701
701
|
Be[2] || (Be[2] = createElementVNode("span", null, "•", -1)),
|
|
702
702
|
createElementVNode("div", _hoisted_12$2, [
|
|
703
|
-
createElementVNode("span", null, toDisplayString(Re.value === "reserved" ? ((
|
|
703
|
+
createElementVNode("span", null, toDisplayString(Re.value === "reserved" ? ((We = (Xe = $e.hoveredData) == null ? void 0 : Xe.flats) == null ? void 0 : We.length) || 0 : ((Ge = (Ze = $e.hoveredData) == null ? void 0 : Ze.counts) == null ? void 0 : Ge.reserved) || 0), 1),
|
|
704
704
|
createTextVNode(" " + toDisplayString(unref(tr)("reserved")), 1)
|
|
705
705
|
])
|
|
706
706
|
])
|
|
707
707
|
])) : $e.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
708
708
|
createElementVNode("div", _hoisted_14$1, [
|
|
709
|
-
createElementVNode("div", _hoisted_15$1, toDisplayString((
|
|
709
|
+
createElementVNode("div", _hoisted_15$1, toDisplayString((qe = $e.hoveredData) == null ? void 0 : qe.title), 1),
|
|
710
710
|
createElementVNode("span", _hoisted_16$1, toDisplayString(Re.value), 1)
|
|
711
711
|
])
|
|
712
712
|
])) : $e.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_17$1, [
|
|
713
713
|
createElementVNode("div", _hoisted_18, [
|
|
714
|
-
createElementVNode("div", _hoisted_19, toDisplayString((
|
|
714
|
+
createElementVNode("div", _hoisted_19, toDisplayString((Ue = $e.hoveredData) == null ? void 0 : Ue.flat_number), 1),
|
|
715
715
|
Be[4] || (Be[4] = createElementVNode("span", null, "|", -1)),
|
|
716
716
|
Re.value ? (openBlock(), createElementBlock("div", _hoisted_20, toDisplayString(Re.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_21, [
|
|
717
717
|
createElementVNode("div", null, [
|
|
718
718
|
$e.hoveredData.offer_price ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
719
719
|
createElementVNode("div", _hoisted_23, [
|
|
720
|
-
createTextVNode(toDisplayString(unref(getPrice)(+((
|
|
720
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((Qe = $e.hoveredData) == null ? void 0 : Qe.price))) + " ", 1),
|
|
721
721
|
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
722
722
|
]),
|
|
723
723
|
createElementVNode("div", _hoisted_24, [
|
|
724
|
-
createTextVNode(toDisplayString(unref(getPrice)(+((
|
|
724
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((Je = $e.hoveredData) == null ? void 0 : Je.offer_price))) + " ", 1),
|
|
725
725
|
createElementVNode("span", _hoisted_25, toDisplayString(unref(currencySymbol)()), 1)
|
|
726
726
|
])
|
|
727
727
|
])) : (openBlock(), createElementBlock("div", _hoisted_26, [
|
|
728
|
-
createTextVNode(toDisplayString(unref(getPrice)(+((
|
|
728
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((Ke = $e.hoveredData) == null ? void 0 : Ke.price))) + " ", 1),
|
|
729
729
|
createElementVNode("span", _hoisted_27, toDisplayString(unref(currencySymbol)()), 1)
|
|
730
730
|
]))
|
|
731
731
|
]),
|
|
732
732
|
createElementVNode("div", _hoisted_28, [
|
|
733
733
|
createElementVNode("span", _hoisted_29, [
|
|
734
|
-
createTextVNode(toDisplayString(unref(getArea)(+((
|
|
734
|
+
createTextVNode(toDisplayString(unref(getArea)(+((ii = (ei = $e.hoveredData) == null ? void 0 : ei.type) == null ? void 0 : ii.area_m2))) + " m", 1),
|
|
735
735
|
Be[3] || (Be[3] = createElementVNode("sup", { class: "ire-bg-transparent !ire-text-base" }, " 2 ", -1))
|
|
736
736
|
])
|
|
737
737
|
])
|
|
@@ -4229,7 +4229,7 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
4229
4229
|
}, toDisplayString(_e.title), 3)
|
|
4230
4230
|
], 2));
|
|
4231
4231
|
}
|
|
4232
|
-
}), _hoisted_1$6 = { class: "ire-flex ire-h-fit ire-w-fit ire-flex-col ire-items-center" }, _hoisted_2$4 = { class: "flat-preview-value ire-min-w-max ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_3$4 = { class: "flat-preview-text ire-border-b ire-border-solid ire-border-b-gray-200 ire-py-2 ire-text-sm ire-
|
|
4232
|
+
}), _hoisted_1$6 = { class: "ire-flex ire-h-fit ire-w-fit ire-flex-col ire-items-center" }, _hoisted_2$4 = { class: "flat-preview-value ire-min-w-max ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_3$4 = { class: "flat-preview-text ire-border-b ire-border-solid ire-border-b-gray-200 ire-py-2 ire-text-sm ire-uppercase ire-text-gray-600" }, _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
4233
4233
|
__name: "FlatPreviewKeyValue",
|
|
4234
4234
|
props: {
|
|
4235
4235
|
keyName: {},
|
|
@@ -4273,10 +4273,10 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
4273
4273
|
De.value = 0;
|
|
4274
4274
|
}
|
|
4275
4275
|
), onMounted(() => {
|
|
4276
|
-
var $e, Be;
|
|
4277
|
-
Object.keys(((Be = ($e = _e.flat) == null ? void 0 : $e.type) == null ? void 0 : Be.image_3d) || {}).length || (ke.value = !0);
|
|
4276
|
+
var $e, Be, Le;
|
|
4277
|
+
(Le = Object.keys(((Be = ($e = _e.flat) == null ? void 0 : $e.type) == null ? void 0 : Be.image_3d) || {})) != null && Le.length || (ke.value = !0);
|
|
4278
4278
|
}), ($e, Be) => {
|
|
4279
|
-
var Le, ze, Ae, Ie, je, Fe, Ve, He, Ye, Xe, We, Ze, Ge, qe, Ue, Qe, Je, Ke, ei, ii, ti, ni, oi, si, ri, ai, li, hi, di, fi, mi, gi;
|
|
4279
|
+
var Le, ze, Ae, Ie, je, Fe, Ve, He, Ye, Xe, We, Ze, Ge, qe, Ue, Qe, Je, Ke, ei, ii, ti, ni, oi, si, ri, ai, li, hi, di, fi, mi, gi, vi;
|
|
4280
4280
|
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
4281
4281
|
createElementVNode("div", _hoisted_2$3, [
|
|
4282
4282
|
(Le = $e.flat) != null && Le.conf ? (openBlock(), createElementBlock("div", _hoisted_3$3, toDisplayString(unref(tr)($e.flat.conf)), 1)) : createCommentVNode("", !0),
|
|
@@ -4287,28 +4287,28 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
4287
4287
|
mode: "out-in"
|
|
4288
4288
|
}, {
|
|
4289
4289
|
default: withCtx(() => {
|
|
4290
|
-
var ci, ui, pi,
|
|
4290
|
+
var ci, ui, pi, bi, yi, _i, wi, xi, Si, Ei, ki, Ci, Pi, Ti, Mi, Oi, Di, Ri, $i, Bi, Ni, Li, Ai, zi, Ii, ji, Vi, Fi, Hi, Wi, Xi, Yi;
|
|
4291
4291
|
return [
|
|
4292
|
-
ke.value && ((
|
|
4292
|
+
ke.value && ((bi = (pi = (ui = (ci = $e.flat) == null ? void 0 : ci.type) == null ? void 0 : ui.image_2d) == null ? void 0 : pi[De.value]) != null && bi.url) ? (openBlock(), createElementBlock("a", {
|
|
4293
4293
|
key: 0,
|
|
4294
4294
|
"data-fancybox": "",
|
|
4295
|
-
href: (
|
|
4295
|
+
href: (xi = (wi = (_i = (yi = $e.flat) == null ? void 0 : yi.type) == null ? void 0 : _i.image_2d) == null ? void 0 : wi[De.value]) == null ? void 0 : xi.url,
|
|
4296
4296
|
class: "irep-flat-preview__left-2d"
|
|
4297
4297
|
}, [
|
|
4298
4298
|
(openBlock(), createElementBlock("img", {
|
|
4299
|
-
key: (
|
|
4300
|
-
src: (
|
|
4299
|
+
key: (Ci = (ki = (Ei = (Si = $e.flat) == null ? void 0 : Si.type) == null ? void 0 : Ei.image_2d) == null ? void 0 : ki[De.value]) == null ? void 0 : Ci.url,
|
|
4300
|
+
src: (Oi = (Mi = (Ti = (Pi = $e.flat) == null ? void 0 : Pi.type) == null ? void 0 : Ti.image_2d) == null ? void 0 : Mi[De.value]) == null ? void 0 : Oi.url,
|
|
4301
4301
|
class: "ire-preview-img"
|
|
4302
4302
|
}, null, 8, _hoisted_5))
|
|
4303
|
-
], 8, _hoisted_4$2)) : ($i = (Ri = (Di =
|
|
4303
|
+
], 8, _hoisted_4$2)) : (Bi = ($i = (Ri = (Di = $e.flat) == null ? void 0 : Di.type) == null ? void 0 : Ri.image_3d) == null ? void 0 : $i[De.value]) != null && Bi.url ? (openBlock(), createElementBlock("a", {
|
|
4304
4304
|
key: 1,
|
|
4305
4305
|
"data-fancybox": "",
|
|
4306
|
-
href: (
|
|
4306
|
+
href: (zi = (Ai = (Li = (Ni = $e.flat) == null ? void 0 : Ni.type) == null ? void 0 : Li.image_3d) == null ? void 0 : Ai[De.value]) == null ? void 0 : zi.url,
|
|
4307
4307
|
class: "irep-flat-preview__left-3d"
|
|
4308
4308
|
}, [
|
|
4309
4309
|
(openBlock(), createElementBlock("img", {
|
|
4310
|
-
key: (
|
|
4311
|
-
src: (
|
|
4310
|
+
key: (Fi = (Vi = (ji = (Ii = $e.flat) == null ? void 0 : Ii.type) == null ? void 0 : ji.image_3d) == null ? void 0 : Vi[De.value]) == null ? void 0 : Fi.url,
|
|
4311
|
+
src: (Yi = (Xi = (Wi = (Hi = $e.flat) == null ? void 0 : Hi.type) == null ? void 0 : Wi.image_3d) == null ? void 0 : Xi[De.value]) == null ? void 0 : Yi.url,
|
|
4312
4312
|
class: "ire-preview-img"
|
|
4313
4313
|
}, null, 8, _hoisted_7))
|
|
4314
4314
|
], 8, _hoisted_6)) : createCommentVNode("", !0)
|
|
@@ -4414,7 +4414,7 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
4414
4414
|
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
4415
4415
|
]),
|
|
4416
4416
|
_: 1
|
|
4417
|
-
}, 8, ["keyName", "value"])) : (di = $e.flat) != null && di.price ? (openBlock(), createBlock(_sfc_main$9, {
|
|
4417
|
+
}, 8, ["keyName", "value"])) : (di = $e.flat) != null && di.price && Number($e.flat.price) > 0 ? (openBlock(), createBlock(_sfc_main$9, {
|
|
4418
4418
|
key: 4,
|
|
4419
4419
|
keyName: unref(tr)("price"),
|
|
4420
4420
|
value: unref(getPrice)(Number((fi = $e.flat) == null ? void 0 : fi.price))
|
|
@@ -4424,7 +4424,7 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
4424
4424
|
]),
|
|
4425
4425
|
_: 1
|
|
4426
4426
|
}, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
4427
|
-
(gi = (mi = $e.flat) == null ? void 0 : mi.type)
|
|
4427
|
+
(vi = (gi = (mi = $e.flat) == null ? void 0 : mi.type) == null ? void 0 : gi.other) != null && vi.length ? (openBlock(!0), createElementBlock(Fragment, { key: 5 }, renderList($e.flat.type.other, (ci) => (openBlock(), createBlock(_sfc_main$9, {
|
|
4428
4428
|
keyName: ci.key,
|
|
4429
4429
|
value: ci.value
|
|
4430
4430
|
}, null, 8, ["keyName", "value"]))), 256)) : createCommentVNode("", !0)
|
|
@@ -7,7 +7,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
7
7
|
actions: ActionItem[] | undefined;
|
|
8
8
|
projectMeta: ProjectMeta[] | undefined;
|
|
9
9
|
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
|
-
changeComponent: (flowComponent: "" | "
|
|
10
|
+
changeComponent: (flowComponent: "" | "tooltip" | "flat" | "floor" | "block", hoveredData: any) => any;
|
|
11
11
|
}, string, import('vue').PublicProps, Readonly<{
|
|
12
12
|
project: ProjectInterface | undefined;
|
|
13
13
|
floors: FloorItem[] | undefined;
|
|
@@ -16,6 +16,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
16
16
|
actions: ActionItem[] | undefined;
|
|
17
17
|
projectMeta: ProjectMeta[] | undefined;
|
|
18
18
|
}> & Readonly<{
|
|
19
|
-
onChangeComponent?: ((flowComponent: "" | "
|
|
19
|
+
onChangeComponent?: ((flowComponent: "" | "tooltip" | "flat" | "floor" | "block", hoveredData: any) => any) | undefined;
|
|
20
20
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
export default _default;
|