ire-preview 3.2.42 → 3.2.44
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 +406 -389
- package/dist/src/components/demo/form/PreviewSelect.vue.d.ts +1 -1
- package/dist/src/components/demo/preview/ProjectPreview.vue.d.ts +2 -2
- package/dist/src/components/demo/uiComponents/Button.vue.d.ts +4 -2
- package/dist/src/components/demo/uiComponents/FlatPreviewKeyValue.vue.d.ts +2 -0
- package/dist/src/components/demo/uiComponents/FlatsTable.vue.d.ts +2 -2
- package/dist/src/components/demo/uiComponents/table/Table.vue.d.ts +2 -2
- package/dist/src/store/useGlobal.d.ts +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/lib.es.js
CHANGED
|
@@ -113,8 +113,8 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
|
|
|
113
113
|
}
|
|
114
114
|
const Ue = Ve ? function() {
|
|
115
115
|
const { state: Ze } = ke, ti = Ze ? Ze() : {};
|
|
116
|
-
this.$patch((
|
|
117
|
-
assign(
|
|
116
|
+
this.$patch((Qe) => {
|
|
117
|
+
assign(Qe, ti);
|
|
118
118
|
});
|
|
119
119
|
} : (
|
|
120
120
|
/* istanbul ignore next */
|
|
@@ -128,7 +128,7 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
|
|
|
128
128
|
return Ge[ACTION_NAME] = Ze, Ge;
|
|
129
129
|
const ti = function() {
|
|
130
130
|
setActivePinia($e);
|
|
131
|
-
const
|
|
131
|
+
const Qe = Array.from(arguments), ni = /* @__PURE__ */ new Set(), oi = /* @__PURE__ */ new Set();
|
|
132
132
|
function ri(li) {
|
|
133
133
|
ni.add(li);
|
|
134
134
|
}
|
|
@@ -136,15 +136,15 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
|
|
|
136
136
|
oi.add(li);
|
|
137
137
|
}
|
|
138
138
|
triggerSubscriptions(je, {
|
|
139
|
-
args:
|
|
139
|
+
args: Qe,
|
|
140
140
|
name: ti[ACTION_NAME],
|
|
141
|
-
store:
|
|
141
|
+
store: Je,
|
|
142
142
|
after: ri,
|
|
143
143
|
onError: si
|
|
144
144
|
});
|
|
145
145
|
let ai;
|
|
146
146
|
try {
|
|
147
|
-
ai = Ge.apply(this && this.$id === Be ? this :
|
|
147
|
+
ai = Ge.apply(this && this.$id === Be ? this : Je, Qe);
|
|
148
148
|
} catch (li) {
|
|
149
149
|
throw triggerSubscriptions(oi, li), li;
|
|
150
150
|
}
|
|
@@ -159,7 +159,7 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
|
|
|
159
159
|
$patch: qe,
|
|
160
160
|
$reset: Ue,
|
|
161
161
|
$subscribe(Ge, Ze = {}) {
|
|
162
|
-
const ti = addSubscription(ze, Ge, Ze.detached, () =>
|
|
162
|
+
const ti = addSubscription(ze, Ge, Ze.detached, () => Qe()), Qe = De.run(() => watch(() => $e.state.value[Be], (ni) => {
|
|
163
163
|
(Ze.flush === "sync" ? Ae : Ie) && Ge({
|
|
164
164
|
storeId: Be,
|
|
165
165
|
type: MutationType.direct,
|
|
@@ -169,8 +169,8 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
|
|
|
169
169
|
return ti;
|
|
170
170
|
},
|
|
171
171
|
$dispose: Ye
|
|
172
|
-
},
|
|
173
|
-
$e._s.set(Be,
|
|
172
|
+
}, Je = reactive(Xe);
|
|
173
|
+
$e._s.set(Be, Je);
|
|
174
174
|
const ei = ($e._a && $e._a.runWithContext || fallbackRunWithContext)(() => $e._e.run(() => (De = effectScope()).run(() => _e({ action: Ke }))));
|
|
175
175
|
for (const Ge in ei) {
|
|
176
176
|
const Ze = ei[Ge];
|
|
@@ -181,7 +181,7 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
|
|
|
181
181
|
ei[Ge] = ti, Le.actions[Ge] = Ze;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
return assign(
|
|
184
|
+
return assign(Je, ei), assign(toRaw(Je), ei), Object.defineProperty(Je, "$state", {
|
|
185
185
|
get: () => $e.state.value[Be],
|
|
186
186
|
set: (Ge) => {
|
|
187
187
|
qe((Ze) => {
|
|
@@ -189,13 +189,13 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
|
|
|
189
189
|
});
|
|
190
190
|
}
|
|
191
191
|
}), $e._p.forEach((Ge) => {
|
|
192
|
-
assign(
|
|
193
|
-
store:
|
|
192
|
+
assign(Je, De.run(() => Ge({
|
|
193
|
+
store: Je,
|
|
194
194
|
app: $e._a,
|
|
195
195
|
pinia: $e,
|
|
196
196
|
options: Le
|
|
197
197
|
})));
|
|
198
|
-
}), He && Ve && ke.hydrate && ke.hydrate(
|
|
198
|
+
}), He && Ve && ke.hydrate && ke.hydrate(Je.$state, He), Ie = !0, Ae = !0, Je;
|
|
199
199
|
}
|
|
200
200
|
/*! #__NO_SIDE_EFFECTS__ */
|
|
201
201
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -227,10 +227,10 @@ function storeToRefs(Be) {
|
|
|
227
227
|
return ke;
|
|
228
228
|
}
|
|
229
229
|
const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
230
|
-
var We, qe, Ue, Ye, Ke, Xe,
|
|
230
|
+
var We, qe, Ue, Ye, Ke, Xe, Je, ii;
|
|
231
231
|
const Be = ref(), _e = ref("1"), ke = ref(), $e = ref(), Ne = (ei) => {
|
|
232
232
|
var Ge, Ze, ti;
|
|
233
|
-
return ((ti = (Ze = (Ge = ke.value) == null ? void 0 : Ge.meta) == null ? void 0 : Ze.find((
|
|
233
|
+
return ((ti = (Ze = (Ge = ke.value) == null ? void 0 : Ge.meta) == null ? void 0 : Ze.find((Qe) => (Qe == null ? void 0 : Qe.meta_key) === ei)) == null ? void 0 : ti.meta_value) || "";
|
|
234
234
|
}, Ve = ref({
|
|
235
235
|
PREVIEW_PATH_COLOR: Ne("path_color") || "rgba(255, 255, 255, 0.3)",
|
|
236
236
|
PREVIEW_PATH_HOVER_COLOR: Ne("path_hover_color") || "rgba(250, 250, 250, 0.54)",
|
|
@@ -247,13 +247,13 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
247
247
|
sold: (Ye = Ve.value) == null ? void 0 : Ye.PREVIEW_SOLD_COLOR,
|
|
248
248
|
stroke_color: (Ke = Ve.value) == null ? void 0 : Ke.PREVIEW_STROKE_COLOR,
|
|
249
249
|
primary_color: (Xe = Ve.value) == null ? void 0 : Xe.PREVIEW_PRIMARY_COLOR,
|
|
250
|
-
stroke_width: (
|
|
250
|
+
stroke_width: (Je = Ve.value) == null ? void 0 : Je.PREVIEW_STROKE_WIDTH,
|
|
251
251
|
border_radius: (ii = Ve.value) == null ? void 0 : ii.PREVIEW_BORDER_RADIUS
|
|
252
252
|
}), Le = computed$1(() => {
|
|
253
253
|
var ei;
|
|
254
254
|
return (ei = ke.value) == null ? void 0 : ei.flats.map((Ge) => {
|
|
255
|
-
var ti,
|
|
256
|
-
const Ze = Ge != null && Ge.use_type || !(Ge != null && Ge.type) ? ((
|
|
255
|
+
var ti, Qe;
|
|
256
|
+
const Ze = Ge != null && Ge.use_type || !(Ge != null && Ge.type) ? ((Qe = (ti = ke.value) == null ? void 0 : ti.types) == null ? void 0 : Qe.find((ni) => ni.id === (Ge == null ? void 0 : Ge.type_id))) ?? (Ge == null ? void 0 : Ge.type) : Ge == null ? void 0 : Ge.type;
|
|
257
257
|
return { ...Ge, type: Ze };
|
|
258
258
|
});
|
|
259
259
|
}), Re = computed$1(() => Ne("open_reserved_flat") === "true"), Ie = computed$1(() => Ne("open_sold_flat") === "true"), Ae = computed$1(() => Ne("price_rounded") === "true"), ze = computed$1(() => {
|
|
@@ -279,8 +279,8 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
279
279
|
return (ei = ke.value) == null ? void 0 : ei.meta;
|
|
280
280
|
},
|
|
281
281
|
() => {
|
|
282
|
-
const ei = Ne("path_color"), Ge = Ne("path_hover_color"), Ze = Ne("reserved_color"), ti = Ne("sold_color"),
|
|
283
|
-
ei && (De.path = ei.toString()), Ge && (De.path_hover = Ge.toString()), Ze && (De.reserved = Ze.toString()), ti && (De.sold = ti.toString()),
|
|
282
|
+
const ei = Ne("path_color"), Ge = Ne("path_hover_color"), Ze = Ne("reserved_color"), ti = Ne("sold_color"), Qe = Ne("stroke_color"), ni = Ne("primary_color"), oi = Ne("stroke_width"), ri = Ne("border_radius");
|
|
283
|
+
ei && (De.path = ei.toString()), Ge && (De.path_hover = Ge.toString()), Ze && (De.reserved = Ze.toString()), ti && (De.sold = ti.toString()), Qe && (De.stroke_color = Qe.toString()), Qe && (De.stroke_color = Qe.toString()), ni && (De.primary_color = ni.toString()), De.stroke_width = Number(oi) || 1, De.border_radius = Number(ri) || 0;
|
|
284
284
|
},
|
|
285
285
|
{ deep: !0 }
|
|
286
286
|
), {
|
|
@@ -598,25 +598,25 @@ const tr = (Be) => {
|
|
|
598
598
|
}, _hoisted_1$G = {
|
|
599
599
|
key: 0,
|
|
600
600
|
class: "irep-tooltip-1 ire-pointer-events-none ire-absolute !ire-bottom-10 !ire-right-10 ire-w-fit ire-select-none ire-rounded-lg ire-border ire-bg-white ire-p-4 ire-text-black"
|
|
601
|
-
}, _hoisted_2$
|
|
601
|
+
}, _hoisted_2$m = {
|
|
602
602
|
key: 0,
|
|
603
603
|
class: "irep-tooltip-1__floor ire-flex ire-items-center ire-gap-3"
|
|
604
|
-
}, _hoisted_3$
|
|
604
|
+
}, _hoisted_3$k = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$f = { class: "irep-tooltip-1__floor-number !ire-text-2xl" }, _hoisted_5$b = { class: "irep-tooltip-1__floor-text !ire-text-sm ire-uppercase" }, _hoisted_6$9 = {
|
|
605
605
|
key: 0,
|
|
606
606
|
class: "ire-rounded-lg ire-bg-gray-100 ire-p-6"
|
|
607
607
|
}, _hoisted_7$7 = {
|
|
608
608
|
key: 0,
|
|
609
609
|
class: "irep-tooltip-1__floor-conf !ire-text-2xl"
|
|
610
|
-
}, _hoisted_8$5 = { key: 1 }, _hoisted_9$
|
|
610
|
+
}, _hoisted_8$5 = { key: 1 }, _hoisted_9$4 = {
|
|
611
611
|
key: 0,
|
|
612
612
|
class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
|
|
613
|
-
}, _hoisted_10$
|
|
613
|
+
}, _hoisted_10$4 = { class: "irep-tooltip-1__floor-status-value ire-min-w-3 !ire-text-2xl" }, _hoisted_11$4 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_12$4 = {
|
|
614
614
|
key: 1,
|
|
615
615
|
class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
|
|
616
|
-
}, _hoisted_13$
|
|
616
|
+
}, _hoisted_13$3 = { class: "irep-tooltip-1__floor-status-value min-w-3 !ire-text-2xl" }, _hoisted_14$2 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_15$2 = {
|
|
617
617
|
key: 2,
|
|
618
618
|
class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
|
|
619
|
-
}, _hoisted_16$
|
|
619
|
+
}, _hoisted_16$2 = { class: "irep-tooltip-1__floor-status-value ire-min-w-3 !ire-text-2xl" }, _hoisted_17$1 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_18$1 = {
|
|
620
620
|
key: 1,
|
|
621
621
|
class: "irep-tooltip-1__block ire-flex ire-items-center ire-gap-3"
|
|
622
622
|
}, _hoisted_19$1 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_20$1 = { class: "irep-tooltip-1__block-conf text-sm ire-text-gray-700" }, _hoisted_21$1 = { class: "irep-tooltip-1__block-title !text-2xl" }, _hoisted_22$1 = {
|
|
@@ -645,26 +645,26 @@ const tr = (Be) => {
|
|
|
645
645
|
return ($e, Ne) => (openBlock(), createElementBlock("div", null, [
|
|
646
646
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
647
647
|
default: withCtx(() => {
|
|
648
|
-
var Ve, De, Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ye, Ke, Xe,
|
|
648
|
+
var Ve, De, Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ye, Ke, Xe, Je, ii, ei, Ge, Ze, ti, Qe, ni, oi;
|
|
649
649
|
return [
|
|
650
650
|
Be.type && Be.hoveredData && Be.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
|
|
651
|
-
Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
652
|
-
createElementVNode("div", _hoisted_3$
|
|
651
|
+
Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$m, [
|
|
652
|
+
createElementVNode("div", _hoisted_3$k, [
|
|
653
653
|
createElementVNode("div", _hoisted_4$f, toDisplayString((Ve = Be.hoveredData) == null ? void 0 : Ve.floor_number), 1),
|
|
654
654
|
createElementVNode("div", _hoisted_5$b, toDisplayString(unref(tr)("floor")), 1)
|
|
655
655
|
]),
|
|
656
|
-
(De = Be.hoveredData) != null && De.conf || (Re = (Le = Be.hoveredData) == null ? void 0 : Le.flats) != null && Re.length ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
656
|
+
(De = Be.hoveredData) != null && De.conf || (Re = (Le = Be.hoveredData) == null ? void 0 : Le.flats) != null && Re.length ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
|
|
657
657
|
ke.value ? (openBlock(), createElementBlock("div", _hoisted_7$7, toDisplayString(ke.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_8$5, [
|
|
658
|
-
(Ae = (Ie = Be.hoveredData) == null ? void 0 : Ie.counts) != null && Ae.available ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
659
|
-
createElementVNode("div", _hoisted_10$
|
|
660
|
-
createElementVNode("div", _hoisted_11$
|
|
658
|
+
(Ae = (Ie = Be.hoveredData) == null ? void 0 : Ie.counts) != null && Ae.available ? (openBlock(), createElementBlock("div", _hoisted_9$4, [
|
|
659
|
+
createElementVNode("div", _hoisted_10$4, toDisplayString(((je = (ze = Be.hoveredData) == null ? void 0 : ze.counts) == null ? void 0 : je.available) || 0), 1),
|
|
660
|
+
createElementVNode("div", _hoisted_11$4, toDisplayString(unref(tr)("available")), 1)
|
|
661
661
|
])) : createCommentVNode("", !0),
|
|
662
|
-
(He = (Fe = Be.hoveredData) == null ? void 0 : Fe.counts) != null && He.reserved ? (openBlock(), createElementBlock("div", _hoisted_12$
|
|
663
|
-
createElementVNode("div", _hoisted_13$
|
|
664
|
-
createElementVNode("div", _hoisted_14$
|
|
662
|
+
(He = (Fe = Be.hoveredData) == null ? void 0 : Fe.counts) != null && He.reserved ? (openBlock(), createElementBlock("div", _hoisted_12$4, [
|
|
663
|
+
createElementVNode("div", _hoisted_13$3, toDisplayString((qe = (We = Be.hoveredData) == null ? void 0 : We.counts) == null ? void 0 : qe.reserved), 1),
|
|
664
|
+
createElementVNode("div", _hoisted_14$2, toDisplayString(unref(tr)("reserved")), 1)
|
|
665
665
|
])) : createCommentVNode("", !0),
|
|
666
|
-
(Ye = (Ue = Be.hoveredData) == null ? void 0 : Ue.counts) != null && Ye.sold ? (openBlock(), createElementBlock("div", _hoisted_15$
|
|
667
|
-
createElementVNode("div", _hoisted_16$
|
|
666
|
+
(Ye = (Ue = Be.hoveredData) == null ? void 0 : Ue.counts) != null && Ye.sold ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
|
|
667
|
+
createElementVNode("div", _hoisted_16$2, toDisplayString((Xe = (Ke = Be.hoveredData) == null ? void 0 : Ke.counts) == null ? void 0 : Xe.sold), 1),
|
|
668
668
|
createElementVNode("div", _hoisted_17$1, toDisplayString(unref(tr)("sold")), 1)
|
|
669
669
|
])) : createCommentVNode("", !0)
|
|
670
670
|
]))
|
|
@@ -672,7 +672,7 @@ const tr = (Be) => {
|
|
|
672
672
|
])) : Be.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_18$1, [
|
|
673
673
|
createElementVNode("div", _hoisted_19$1, [
|
|
674
674
|
createElementVNode("span", _hoisted_20$1, toDisplayString(ke.value), 1),
|
|
675
|
-
createElementVNode("div", _hoisted_21$1, toDisplayString((
|
|
675
|
+
createElementVNode("div", _hoisted_21$1, toDisplayString((Je = Be.hoveredData) == null ? void 0 : Je.title), 1)
|
|
676
676
|
])
|
|
677
677
|
])) : Be.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_22$1, [
|
|
678
678
|
createElementVNode("div", _hoisted_23$1, [
|
|
@@ -690,7 +690,7 @@ const tr = (Be) => {
|
|
|
690
690
|
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
691
691
|
]),
|
|
692
692
|
createElementVNode("div", _hoisted_34$1, [
|
|
693
|
-
createTextVNode(toDisplayString(unref(getPrice)((
|
|
693
|
+
createTextVNode(toDisplayString(unref(getPrice)((Qe = Be.hoveredData) == null ? void 0 : Qe.offer_price)) + " ", 1),
|
|
694
694
|
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
695
695
|
])
|
|
696
696
|
])) : (openBlock(), createElementBlock("div", _hoisted_31$1, [
|
|
@@ -784,13 +784,13 @@ function _sfc_render$f(Be, _e) {
|
|
|
784
784
|
const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$f]]), _hoisted_1$C = {
|
|
785
785
|
key: 0,
|
|
786
786
|
class: "irep-tooltip-2__floor ire-flex ire-flex-col ire-items-center !ire-text-sm"
|
|
787
|
-
}, _hoisted_2$
|
|
787
|
+
}, _hoisted_2$l = { class: "ire-flex ire-w-full ire-items-center ire-justify-evenly ire-p-4" }, _hoisted_3$j = { class: "irep-tooltip-2__floor-number ire-text-3xl ire-capitalize" }, _hoisted_4$e = {
|
|
788
788
|
key: 0,
|
|
789
789
|
class: "irep-tooltip-2__floor-conf ire-text-2xl ire-uppercase"
|
|
790
|
-
}, _hoisted_5$a = { key: 1 }, _hoisted_6$
|
|
790
|
+
}, _hoisted_5$a = { key: 1 }, _hoisted_6$8 = { class: "irep-tooltip-2__floor-starting ire-text-sm ire-text-gray-400" }, _hoisted_7$6 = { class: "irep-tooltip-2__floor-price" }, _hoisted_8$4 = { class: "ire-right-[2px] ire-text-gray-200" }, _hoisted_9$3 = { class: "ire-flex ire-items-center ire-justify-between ire-gap-2 ire-bg-gray-800 ire-p-2" }, _hoisted_10$3 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_11$3 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_12$3 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_13$2 = {
|
|
791
791
|
key: 1,
|
|
792
792
|
class: "irep-tooltip-2__block ire-flex ire-items-center ire-gap-3 ire-p-4 !ire-text-sm"
|
|
793
|
-
}, _hoisted_14 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_15 = { class: "irep-tooltip-2__block-title" }, _hoisted_16 = { class: "irep-tooltip-2__block-conf ire-text-gray-300 ire-opacity-80" }, _hoisted_17 = {
|
|
793
|
+
}, _hoisted_14$1 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_15$1 = { class: "irep-tooltip-2__block-title" }, _hoisted_16$1 = { class: "irep-tooltip-2__block-conf ire-text-gray-300 ire-opacity-80" }, _hoisted_17 = {
|
|
794
794
|
key: 2,
|
|
795
795
|
class: "irep-tooltip-2__flat ire-flex ire-w-full ire-max-w-[300px] ire-flex-col ire-items-center ire-gap-1"
|
|
796
796
|
}, _hoisted_18 = { class: "ire-flex ire-flex-col ire-items-center ire-gap-4 ire-p-4" }, _hoisted_19 = { class: "irep-tooltip-2__flat-number ire-text-center ire-text-lg ire-capitalize" }, _hoisted_20 = { class: "ire-grid ire-grid-cols-2 ire-gap-x-8 ire-gap-y-2" }, _hoisted_21 = { class: "ire-flex ire-items-center ire-gap-1" }, _hoisted_22 = { class: "ire-flex ire-items-center ire-justify-center" }, _hoisted_23 = {
|
|
@@ -821,7 +821,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
|
|
|
821
821
|
return tr((Ve = _e.hoveredData) == null ? void 0 : Ve.conf);
|
|
822
822
|
});
|
|
823
823
|
return (Ve, De) => {
|
|
824
|
-
var Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ye, Ke, Xe,
|
|
824
|
+
var Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ye, Ke, Xe, Je, ii, ei, Ge, Ze, ti, Qe, ni, oi, ri, si, ai, li, di, ci, ui, hi, fi;
|
|
825
825
|
return Be.type && Be.hoveredData && Be.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
|
|
826
826
|
key: 0,
|
|
827
827
|
class: normalizeClass(["ire-pointer-events-none ire-absolute ire-select-none", {
|
|
@@ -838,41 +838,41 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
|
|
|
838
838
|
class: normalizeClass(["irep-tooltip irep-tooltip-2 ire-flex ire-origin-top ire-items-center ire-justify-center ire-bg-black ire-text-white ire-transition-transform ire-duration-500 ire-ease-in-out", { "": Be.mouseTrack }])
|
|
839
839
|
}, [
|
|
840
840
|
Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
|
|
841
|
-
createElementVNode("div", _hoisted_2$
|
|
842
|
-
createElementVNode("div", _hoisted_3$
|
|
841
|
+
createElementVNode("div", _hoisted_2$l, [
|
|
842
|
+
createElementVNode("div", _hoisted_3$j, toDisplayString((Le = Be.hoveredData) == null ? void 0 : Le.floor_number), 1),
|
|
843
843
|
De[0] || (De[0] = createElementVNode("span", null, "|", -1)),
|
|
844
844
|
Ne.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, toDisplayString(Ne.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_5$a, [
|
|
845
|
-
createElementVNode("div", _hoisted_6$
|
|
845
|
+
createElementVNode("div", _hoisted_6$8, toDisplayString(unref(tr)("starting from")) + ": ", 1),
|
|
846
846
|
createElementVNode("div", _hoisted_7$6, [
|
|
847
847
|
createTextVNode(toDisplayString(unref(getPrice)(+((Ie = (Re = Be.hoveredData) == null ? void 0 : Re.counts) == null ? void 0 : Ie.minimum_price) || 0)) + " ", 1),
|
|
848
848
|
createElementVNode("span", _hoisted_8$4, toDisplayString(unref(currencySymbol)()), 1)
|
|
849
849
|
])
|
|
850
850
|
]))
|
|
851
851
|
]),
|
|
852
|
-
createElementVNode("div", _hoisted_9$
|
|
853
|
-
createElementVNode("div", _hoisted_10$
|
|
852
|
+
createElementVNode("div", _hoisted_9$3, [
|
|
853
|
+
createElementVNode("div", _hoisted_10$3, [
|
|
854
854
|
createElementVNode("span", null, toDisplayString(Ne.value ? 0 : ((ze = (Ae = Be.hoveredData) == null ? void 0 : Ae.counts) == null ? void 0 : ze.available) || 0), 1),
|
|
855
855
|
createTextVNode(" " + toDisplayString(unref(tr)("available")), 1)
|
|
856
856
|
]),
|
|
857
857
|
De[1] || (De[1] = createElementVNode("span", null, "•", -1)),
|
|
858
|
-
createElementVNode("div", _hoisted_11$
|
|
858
|
+
createElementVNode("div", _hoisted_11$3, [
|
|
859
859
|
createElementVNode("span", null, toDisplayString(Ne.value === "sold" ? ((Fe = (je = Be.hoveredData) == null ? void 0 : je.flats) == null ? void 0 : Fe.length) || 0 : ((We = (He = Be.hoveredData) == null ? void 0 : He.counts) == null ? void 0 : We.sold) || 0), 1),
|
|
860
860
|
createTextVNode(" " + toDisplayString(unref(tr)("sold")), 1)
|
|
861
861
|
]),
|
|
862
862
|
De[2] || (De[2] = createElementVNode("span", null, "•", -1)),
|
|
863
|
-
createElementVNode("div", _hoisted_12$
|
|
863
|
+
createElementVNode("div", _hoisted_12$3, [
|
|
864
864
|
createElementVNode("span", null, toDisplayString(Ne.value === "reserved" ? ((Ue = (qe = Be.hoveredData) == null ? void 0 : qe.flats) == null ? void 0 : Ue.length) || 0 : ((Ke = (Ye = Be.hoveredData) == null ? void 0 : Ye.counts) == null ? void 0 : Ke.reserved) || 0), 1),
|
|
865
865
|
createTextVNode(" " + toDisplayString(unref(tr)("reserved")), 1)
|
|
866
866
|
])
|
|
867
867
|
])
|
|
868
|
-
])) : Be.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_13$
|
|
869
|
-
createElementVNode("div", _hoisted_14, [
|
|
870
|
-
createElementVNode("div", _hoisted_15, toDisplayString((Xe = Be.hoveredData) == null ? void 0 : Xe.title), 1),
|
|
871
|
-
createElementVNode("span", _hoisted_16, toDisplayString(Ne.value), 1)
|
|
868
|
+
])) : Be.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_13$2, [
|
|
869
|
+
createElementVNode("div", _hoisted_14$1, [
|
|
870
|
+
createElementVNode("div", _hoisted_15$1, toDisplayString((Xe = Be.hoveredData) == null ? void 0 : Xe.title), 1),
|
|
871
|
+
createElementVNode("span", _hoisted_16$1, toDisplayString(Ne.value), 1)
|
|
872
872
|
])
|
|
873
873
|
])) : Be.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
874
874
|
createElementVNode("div", _hoisted_18, [
|
|
875
|
-
createElementVNode("div", _hoisted_19, toDisplayString((
|
|
875
|
+
createElementVNode("div", _hoisted_19, toDisplayString((Je = Be.hoveredData) == null ? void 0 : Je.flat_number), 1),
|
|
876
876
|
createElementVNode("div", _hoisted_20, [
|
|
877
877
|
createElementVNode("div", _hoisted_21, [
|
|
878
878
|
createElementVNode("div", _hoisted_22, [
|
|
@@ -894,7 +894,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
|
|
|
894
894
|
])) : createCommentVNode("", !0)
|
|
895
895
|
], 64))
|
|
896
896
|
]),
|
|
897
|
-
unref(getArea)(+((ni = (
|
|
897
|
+
unref(getArea)(+((ni = (Qe = Be.hoveredData) == null ? void 0 : Qe.type) == null ? void 0 : ni.area_m2)) && +unref(getArea)(+((ri = (oi = Be.hoveredData) == null ? void 0 : oi.type) == null ? void 0 : ri.area_m2)) > 0 ? (openBlock(), createElementBlock("div", _hoisted_31, [
|
|
898
898
|
createElementVNode("div", _hoisted_32, [
|
|
899
899
|
createVNode(FlatIcon, { class: "ire-size-5 [&_path]:ire-stroke-white" })
|
|
900
900
|
]),
|
|
@@ -915,16 +915,16 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
|
|
|
915
915
|
], 6)) : createCommentVNode("", !0);
|
|
916
916
|
};
|
|
917
917
|
}
|
|
918
|
-
}), _hoisted_1$B = { class: "irep-tooltip irep-tooltip-3 ire-flex ire-w-fit ire-origin-top ire-items-center ire-justify-center ire-rounded-2xl ire-border ire-bg-white ire-p-4 ire-transition-transform ire-duration-500 ire-ease-in-out" }, _hoisted_2$
|
|
918
|
+
}), _hoisted_1$B = { class: "irep-tooltip irep-tooltip-3 ire-flex ire-w-fit ire-origin-top ire-items-center ire-justify-center ire-rounded-2xl ire-border ire-bg-white ire-p-4 ire-transition-transform ire-duration-500 ire-ease-in-out" }, _hoisted_2$k = {
|
|
919
919
|
key: 0,
|
|
920
920
|
class: "irep-tooltip-3__floor ire-flex ire-flex-col ire-items-center ire-gap-3"
|
|
921
|
-
}, _hoisted_3$
|
|
921
|
+
}, _hoisted_3$i = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$d = { class: "irep-tooltip-3__floor-number !ire-text-2xl" }, _hoisted_5$9 = { class: "irep-tooltip-3__floor-text !ire-text-sm ire-uppercase" }, _hoisted_6$7 = {
|
|
922
922
|
key: 1,
|
|
923
923
|
class: "irep-tooltip-3__block ire-flex ire-items-center ire-gap-3"
|
|
924
|
-
}, _hoisted_7$5 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_8$3 = { class: "irep-tooltip-3__block-title !text-2xl" }, _hoisted_9$
|
|
924
|
+
}, _hoisted_7$5 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_8$3 = { class: "irep-tooltip-3__block-title !text-2xl" }, _hoisted_9$2 = {
|
|
925
925
|
key: 2,
|
|
926
926
|
class: "irep-tooltip-3__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
|
|
927
|
-
}, _hoisted_10$
|
|
927
|
+
}, _hoisted_10$2 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_11$2 = { class: "irep-tooltip-3__flat-number ire-max-w-52 ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_12$2 = { class: "irep-tooltip-3__flat-text !ire-mt-2 ire-text-sm ire-uppercase" }, _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
928
928
|
__name: "Tooltip_3",
|
|
929
929
|
props: {
|
|
930
930
|
hoveredData: {},
|
|
@@ -942,19 +942,19 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
|
|
|
942
942
|
})
|
|
943
943
|
}, [
|
|
944
944
|
createElementVNode("div", _hoisted_1$B, [
|
|
945
|
-
Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
946
|
-
createElementVNode("div", _hoisted_3$
|
|
945
|
+
Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$k, [
|
|
946
|
+
createElementVNode("div", _hoisted_3$i, [
|
|
947
947
|
createElementVNode("div", _hoisted_4$d, toDisplayString((Ve = Be.hoveredData) == null ? void 0 : Ve.floor_number), 1),
|
|
948
948
|
createElementVNode("div", _hoisted_5$9, toDisplayString(unref(tr)("floor")), 1)
|
|
949
949
|
])
|
|
950
|
-
])) : Be.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_6$
|
|
950
|
+
])) : Be.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
|
|
951
951
|
createElementVNode("div", _hoisted_7$5, [
|
|
952
952
|
createElementVNode("div", _hoisted_8$3, toDisplayString((De = Be.hoveredData) == null ? void 0 : De.title), 1)
|
|
953
953
|
])
|
|
954
|
-
])) : Be.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_9$
|
|
955
|
-
createElementVNode("div", _hoisted_10$
|
|
956
|
-
createElementVNode("div", _hoisted_11$
|
|
957
|
-
createElementVNode("div", _hoisted_12$
|
|
954
|
+
])) : Be.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_9$2, [
|
|
955
|
+
createElementVNode("div", _hoisted_10$2, [
|
|
956
|
+
createElementVNode("div", _hoisted_11$2, toDisplayString((Le = Be.hoveredData) == null ? void 0 : Le.flat_number), 1),
|
|
957
|
+
createElementVNode("div", _hoisted_12$2, toDisplayString(unref(tr)("apartment")), 1)
|
|
958
958
|
])
|
|
959
959
|
])) : createCommentVNode("", !0)
|
|
960
960
|
])
|
|
@@ -1019,7 +1019,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
|
|
|
1019
1019
|
})
|
|
1020
1020
|
], 512));
|
|
1021
1021
|
}
|
|
1022
|
-
}), _hoisted_1$z = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_2$
|
|
1022
|
+
}), _hoisted_1$z = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_2$j = ["src"], _hoisted_3$h = ["innerHTML"], _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
1023
1023
|
__name: "ProjectPreview",
|
|
1024
1024
|
props: {
|
|
1025
1025
|
project: {},
|
|
@@ -1043,19 +1043,19 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
|
|
|
1043
1043
|
((Ue = Re.value) == null ? void 0 : Ue.querySelectorAll("g")).forEach((Ye) => {
|
|
1044
1044
|
var ii, ei, Ge, Ze, ti;
|
|
1045
1045
|
const Ke = Ye == null ? void 0 : Ye.getAttribute("id"), Xe = (ei = (ii = $e.project) == null ? void 0 : ii.polygon_data) == null ? void 0 : ei.find(
|
|
1046
|
-
(
|
|
1047
|
-
),
|
|
1046
|
+
(Qe) => (Qe == null ? void 0 : Qe.key) === Ke
|
|
1047
|
+
), Je = Xe == null ? void 0 : Xe.id;
|
|
1048
1048
|
switch (Xe == null ? void 0 : Xe.type) {
|
|
1049
1049
|
case "block":
|
|
1050
|
-
const
|
|
1051
|
-
Ye.setAttribute("conf", (
|
|
1050
|
+
const Qe = (Ge = $e.blocks) == null ? void 0 : Ge.find((ri) => ri.id === Je);
|
|
1051
|
+
Ye.setAttribute("conf", (Qe == null ? void 0 : Qe.conf) || "");
|
|
1052
1052
|
break;
|
|
1053
1053
|
case "floor":
|
|
1054
|
-
const ni = (Ze = $e.floors) == null ? void 0 : Ze.find((ri) => ri.id ===
|
|
1054
|
+
const ni = (Ze = $e.floors) == null ? void 0 : Ze.find((ri) => ri.id === Je);
|
|
1055
1055
|
Ye.setAttribute("conf", (ni == null ? void 0 : ni.conf) || "");
|
|
1056
1056
|
break;
|
|
1057
1057
|
case "flat":
|
|
1058
|
-
const oi = (ti = $e.flats) == null ? void 0 : ti.find((ri) => ri.id ===
|
|
1058
|
+
const oi = (ti = $e.flats) == null ? void 0 : ti.find((ri) => ri.id === Je);
|
|
1059
1059
|
Ye.setAttribute("conf", (oi == null ? void 0 : oi.conf) || "");
|
|
1060
1060
|
break;
|
|
1061
1061
|
}
|
|
@@ -1073,20 +1073,20 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
|
|
|
1073
1073
|
), watch(
|
|
1074
1074
|
() => Ie.value,
|
|
1075
1075
|
(qe) => {
|
|
1076
|
-
var Ye, Ke, Xe,
|
|
1076
|
+
var Ye, Ke, Xe, Je, ii, ei, Ge;
|
|
1077
1077
|
if (!qe) return;
|
|
1078
1078
|
Ve.hoverdSvg = qe;
|
|
1079
1079
|
const Ue = qe.parentElement;
|
|
1080
1080
|
if (Ue && (Ue == null ? void 0 : Ue.nodeName) === "g") {
|
|
1081
1081
|
const Ze = Ue == null ? void 0 : Ue.getAttribute("id");
|
|
1082
|
-
if (!Ze || (ze.value = ((Ye = $e.project) == null ? void 0 : Ye.polygon_data.find((
|
|
1082
|
+
if (!Ze || (ze.value = ((Ye = $e.project) == null ? void 0 : Ye.polygon_data.find((Qe) => (Qe == null ? void 0 : Qe.key) === Ze)) || null, !ze.value)) return;
|
|
1083
1083
|
const ti = (Ke = ze.value) == null ? void 0 : Ke.id;
|
|
1084
1084
|
switch ((Xe = ze.value) == null ? void 0 : Xe.type) {
|
|
1085
1085
|
case "floor":
|
|
1086
|
-
const
|
|
1086
|
+
const Qe = (Je = $e.floors) == null ? void 0 : Je.find(
|
|
1087
1087
|
(si) => si.id === ti
|
|
1088
1088
|
);
|
|
1089
|
-
Ae.value =
|
|
1089
|
+
Ae.value = Qe;
|
|
1090
1090
|
break;
|
|
1091
1091
|
case "block":
|
|
1092
1092
|
const ni = (ii = $e.blocks) == null ? void 0 : ii.find(
|
|
@@ -1124,14 +1124,14 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
|
|
|
1124
1124
|
type: (Ye = ze.value) == null ? void 0 : Ye.type
|
|
1125
1125
|
}, {
|
|
1126
1126
|
default: withCtx(() => {
|
|
1127
|
-
var Ke, Xe,
|
|
1127
|
+
var Ke, Xe, Je;
|
|
1128
1128
|
return [
|
|
1129
1129
|
createElementVNode("div", _hoisted_1$z, [
|
|
1130
1130
|
createElementVNode("img", {
|
|
1131
|
-
src: (
|
|
1131
|
+
src: (Je = (Xe = (Ke = Be.project) == null ? void 0 : Ke.project_image) == null ? void 0 : Xe[0]) == null ? void 0 : Je.url,
|
|
1132
1132
|
alt: "",
|
|
1133
1133
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1134
|
-
}, null, 8, _hoisted_2$
|
|
1134
|
+
}, null, 8, _hoisted_2$j),
|
|
1135
1135
|
(openBlock(), createElementBlock("div", {
|
|
1136
1136
|
innerHTML: unref(je),
|
|
1137
1137
|
key: unref(je),
|
|
@@ -1139,7 +1139,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
|
|
|
1139
1139
|
ref: Re,
|
|
1140
1140
|
class: "canvas path-color ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full",
|
|
1141
1141
|
onClick: We
|
|
1142
|
-
}, null, 8, _hoisted_3$
|
|
1142
|
+
}, null, 8, _hoisted_3$h))
|
|
1143
1143
|
])
|
|
1144
1144
|
];
|
|
1145
1145
|
}),
|
|
@@ -1147,10 +1147,10 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
|
|
|
1147
1147
|
}, 8, ["hoverdData", "type"]);
|
|
1148
1148
|
};
|
|
1149
1149
|
}
|
|
1150
|
-
}), _hoisted_1$y = { class: "irep-select ire-w-full ire-min-w-[150px] ire-max-w-[200px] lg:ire-min-w-[250px]" }, _hoisted_2$
|
|
1150
|
+
}), _hoisted_1$y = { class: "irep-select ire-w-full ire-min-w-[150px] ire-max-w-[200px] lg:ire-min-w-[250px]" }, _hoisted_2$i = {
|
|
1151
1151
|
key: 0,
|
|
1152
1152
|
class: "label"
|
|
1153
|
-
}, _hoisted_3$
|
|
1153
|
+
}, _hoisted_3$g = { class: "ire-relative" }, _hoisted_4$c = ["value", "disabled"], _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
1154
1154
|
__name: "PreviewSelect",
|
|
1155
1155
|
props: /* @__PURE__ */ mergeModels({
|
|
1156
1156
|
data: {},
|
|
@@ -1167,8 +1167,8 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
|
|
|
1167
1167
|
setup(Be) {
|
|
1168
1168
|
const _e = useGlobalStore(), { openReservedFlat: ke, openSoldFlat: $e } = storeToRefs(_e), Ne = useModel(Be, "modelValue");
|
|
1169
1169
|
return (Ve, De) => (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
1170
|
-
Be.label ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
1171
|
-
createElementVNode("div", _hoisted_3$
|
|
1170
|
+
Be.label ? (openBlock(), createElementBlock("p", _hoisted_2$i, toDisplayString(Be.label), 1)) : createCommentVNode("", !0),
|
|
1171
|
+
createElementVNode("div", _hoisted_3$g, [
|
|
1172
1172
|
withDirectives(createElementVNode("select", {
|
|
1173
1173
|
"onUpdate:modelValue": De[0] || (De[0] = (Le) => Ne.value = Le),
|
|
1174
1174
|
class: "no-spinner ire-w-full ire-cursor-pointer ire-appearance-none ire-rounded-md !ire-border-none ire-px-4 ire-py-2 !ire-outline-none !ire-ring-[1px] !ire-ring-gray-200 ire-transition-all focus:!ire-ring-2 focus:!ire-ring-black"
|
|
@@ -1202,15 +1202,15 @@ function _sfc_render$e(Be, _e) {
|
|
|
1202
1202
|
}, null, -1)
|
|
1203
1203
|
])]);
|
|
1204
1204
|
}
|
|
1205
|
-
const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$e]]), _hoisted_1$w = { class: "back-button ire-group/button ire-flex ire-w-fit ire-cursor-pointer ire-items-center ire-gap-1 ire-rounded-lg ire-border ire-bg-gray-50 ire-px-4 ire-py-1 ire-shadow-sm ire-transition-all hover:ire-bg-black" }, _hoisted_2$
|
|
1205
|
+
const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_render$e]]), _hoisted_1$w = { class: "back-button ire-group/button ire-flex ire-w-fit ire-cursor-pointer ire-items-center ire-gap-1 ire-rounded-lg ire-border ire-bg-gray-50 ire-px-4 ire-py-1 ire-shadow-sm ire-transition-all hover:ire-bg-black" }, _hoisted_2$h = { class: "back-button-text !ire-text-base ire-text-black group-hover/button:!ire-text-white" }, _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
1206
1206
|
__name: "BackButton",
|
|
1207
1207
|
setup(Be) {
|
|
1208
1208
|
return (_e, ke) => (openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
1209
1209
|
createVNode(ArrowRight, { class: "ire-w-6 ire-rotate-180 group-hover/button:[&_path]:ire-fill-white" }),
|
|
1210
|
-
createElementVNode("div", _hoisted_2$
|
|
1210
|
+
createElementVNode("div", _hoisted_2$h, toDisplayString(unref(tr)("back")), 1)
|
|
1211
1211
|
]));
|
|
1212
1212
|
}
|
|
1213
|
-
}), _hoisted_1$v = { class: "ire-w-fit ire-bg-white" }, _hoisted_2$
|
|
1213
|
+
}), _hoisted_1$v = { class: "ire-w-fit ire-bg-white" }, _hoisted_2$g = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_3$f = ["src"], _hoisted_4$b = ["innerHTML"], _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
1214
1214
|
__name: "FloorPreview",
|
|
1215
1215
|
props: {
|
|
1216
1216
|
flats: {},
|
|
@@ -1227,41 +1227,41 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
|
|
|
1227
1227
|
return $e.floor.svg;
|
|
1228
1228
|
}), We = computed$1(() => $e.floors.filter(
|
|
1229
1229
|
(Xe) => {
|
|
1230
|
-
var
|
|
1230
|
+
var Je, ii;
|
|
1231
1231
|
return (
|
|
1232
1232
|
// floorItem.conf !== "reserved" &&
|
|
1233
1233
|
// floorItem.conf !== "sold" &&
|
|
1234
|
-
(
|
|
1234
|
+
(Je = $e.floor) != null && Je.block_id ? (Xe == null ? void 0 : Xe.block_id) === ((ii = $e.floor) == null ? void 0 : ii.block_id) : !(Xe != null && Xe.block_id)
|
|
1235
1235
|
);
|
|
1236
1236
|
}
|
|
1237
1237
|
).map((Xe) => {
|
|
1238
1238
|
var ii, ei;
|
|
1239
|
-
const
|
|
1239
|
+
const Je = (ii = $e.blocks) == null ? void 0 : ii.find(
|
|
1240
1240
|
(Ge) => {
|
|
1241
1241
|
var Ze;
|
|
1242
1242
|
return (Ge == null ? void 0 : Ge.id) === ((Ze = Xe == null ? void 0 : Xe.block_id) == null ? void 0 : Ze.toString());
|
|
1243
1243
|
}
|
|
1244
1244
|
);
|
|
1245
1245
|
return {
|
|
1246
|
-
title: ((ei = Xe == null ? void 0 : Xe.floor_number) == null ? void 0 : ei.toString()) + ` ${tr("floor")} ` + (
|
|
1246
|
+
title: ((ei = Xe == null ? void 0 : Xe.floor_number) == null ? void 0 : ei.toString()) + ` ${tr("floor")} ` + (Je != null && Je.id ? ` - ${Je == null ? void 0 : Je.title}` : "") + (Xe != null && Xe.conf ? " " + Xe.conf : ""),
|
|
1247
1247
|
value: Xe == null ? void 0 : Xe.id
|
|
1248
1248
|
};
|
|
1249
|
-
}).sort((Xe,
|
|
1250
|
-
const
|
|
1251
|
-
|
|
1249
|
+
}).sort((Xe, Je) => Xe.title.localeCompare(Je.title)) || []), qe = (Xe) => {
|
|
1250
|
+
const Je = Xe.target;
|
|
1251
|
+
Je && (Ie.value = Je);
|
|
1252
1252
|
}, Ue = (Xe) => {
|
|
1253
1253
|
var ii, ei, Ge;
|
|
1254
|
-
const
|
|
1255
|
-
(
|
|
1254
|
+
const Je = Xe.target;
|
|
1255
|
+
(Je == null ? void 0 : Je.nodeName) === "path" && (ze.value && "conf" in ze.value && (((ii = ze.value) == null ? void 0 : ii.conf) === "reserved" && !De.value || ((ei = ze.value) == null ? void 0 : ei.conf) === "sold" && !Le.value) || ke("changeComponent", ((Ge = Ae.value) == null ? void 0 : Ge.type) || "", ze.value));
|
|
1256
1256
|
}, Ye = () => {
|
|
1257
1257
|
var Xe;
|
|
1258
1258
|
Re.value && ((Xe = Re.value) == null ? void 0 : Xe.querySelectorAll("g")).forEach((ii) => {
|
|
1259
|
-
var Ze, ti,
|
|
1259
|
+
var Ze, ti, Qe, ni, oi, ri;
|
|
1260
1260
|
const ei = ii == null ? void 0 : ii.getAttribute("id"), Ge = (ti = (Ze = $e.floor) == null ? void 0 : Ze.polygon_data) == null ? void 0 : ti.find(
|
|
1261
1261
|
(si) => (si == null ? void 0 : si.key) === ei
|
|
1262
1262
|
);
|
|
1263
1263
|
if ($e.flats)
|
|
1264
|
-
if ((
|
|
1264
|
+
if ((Qe = $e.floor) != null && Qe.conf)
|
|
1265
1265
|
ii.setAttribute("conf", ((ni = $e.floor) == null ? void 0 : ni.conf) || "");
|
|
1266
1266
|
else {
|
|
1267
1267
|
const si = (oi = $e.flats) == null ? void 0 : oi.find(
|
|
@@ -1277,12 +1277,12 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
|
|
|
1277
1277
|
return watch(
|
|
1278
1278
|
() => Ie.value,
|
|
1279
1279
|
(Xe) => {
|
|
1280
|
-
var ii, ei, Ge, Ze, ti,
|
|
1280
|
+
var ii, ei, Ge, Ze, ti, Qe, ni;
|
|
1281
1281
|
if (!Xe) return;
|
|
1282
1282
|
Ve.hoverdSvg = Xe;
|
|
1283
|
-
const
|
|
1284
|
-
if (
|
|
1285
|
-
const oi =
|
|
1283
|
+
const Je = Xe == null ? void 0 : Xe.parentElement;
|
|
1284
|
+
if (Je && (Je == null ? void 0 : Je.nodeName) === "g") {
|
|
1285
|
+
const oi = Je.getAttribute("id");
|
|
1286
1286
|
if (!oi || (Ae.value = ((ei = (ii = $e.floor) == null ? void 0 : ii.polygon_data) == null ? void 0 : ei.find((ri) => (ri == null ? void 0 : ri.key) === oi)) || null, !Ae.value)) return;
|
|
1287
1287
|
if (((Ge = Ae.value) == null ? void 0 : Ge.type) === "flat") {
|
|
1288
1288
|
const ri = (Ze = $e.flats) == null ? void 0 : Ze.find(
|
|
@@ -1295,7 +1295,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
|
|
|
1295
1295
|
conf: ri.conf || ((ti = $e.floor) == null ? void 0 : ti.conf) || ""
|
|
1296
1296
|
} : null;
|
|
1297
1297
|
ze.value = si;
|
|
1298
|
-
} else if (((
|
|
1298
|
+
} else if (((Qe = Ae.value) == null ? void 0 : Qe.type) === "tooltip") {
|
|
1299
1299
|
const ri = (ni = $e.actions) == null ? void 0 : ni.find(
|
|
1300
1300
|
(si) => {
|
|
1301
1301
|
var ai;
|
|
@@ -1316,8 +1316,8 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
|
|
|
1316
1316
|
), watch(
|
|
1317
1317
|
() => je.value,
|
|
1318
1318
|
() => {
|
|
1319
|
-
var
|
|
1320
|
-
const Xe = (
|
|
1319
|
+
var Je;
|
|
1320
|
+
const Xe = (Je = $e.floors) == null ? void 0 : Je.find(
|
|
1321
1321
|
(ii) => (ii == null ? void 0 : ii.id) === (je == null ? void 0 : je.value)
|
|
1322
1322
|
);
|
|
1323
1323
|
Xe && ke("changeComponent", "floor", Xe), setTimeout(() => {
|
|
@@ -1325,13 +1325,13 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
|
|
|
1325
1325
|
}, 0);
|
|
1326
1326
|
}
|
|
1327
1327
|
), onMounted(() => {
|
|
1328
|
-
var Xe,
|
|
1328
|
+
var Xe, Je, ii;
|
|
1329
1329
|
Fe.value = (Xe = $e.blocks) == null ? void 0 : Xe.find(
|
|
1330
1330
|
(ei) => {
|
|
1331
1331
|
var Ge, Ze;
|
|
1332
1332
|
return (ei == null ? void 0 : ei.id) === ((Ze = (Ge = $e.floor) == null ? void 0 : Ge.block_id) == null ? void 0 : Ze.toString());
|
|
1333
1333
|
}
|
|
1334
|
-
), je.value = (ii = (
|
|
1334
|
+
), je.value = (ii = (Je = We.value) == null ? void 0 : Je.find(
|
|
1335
1335
|
(ei) => {
|
|
1336
1336
|
var Ge;
|
|
1337
1337
|
return (ei == null ? void 0 : ei.value) == ((Ge = $e.floor) == null ? void 0 : Ge.id);
|
|
@@ -1339,7 +1339,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
|
|
|
1339
1339
|
)) == null ? void 0 : ii.value, Ye(), document.addEventListener("mousemove", qe);
|
|
1340
1340
|
}), onUnmounted(() => {
|
|
1341
1341
|
document.removeEventListener("mousemove", qe);
|
|
1342
|
-
}), (Xe,
|
|
1342
|
+
}), (Xe, Je) => {
|
|
1343
1343
|
var ii;
|
|
1344
1344
|
return openBlock(), createBlock(_sfc_main$E, {
|
|
1345
1345
|
hoverdData: ze.value,
|
|
@@ -1350,7 +1350,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
|
|
|
1350
1350
|
createElementVNode("div", _hoisted_1$v, [
|
|
1351
1351
|
createVNode(_sfc_main$C, {
|
|
1352
1352
|
modelValue: je.value,
|
|
1353
|
-
"onUpdate:modelValue":
|
|
1353
|
+
"onUpdate:modelValue": Je[0] || (Je[0] = (ei) => je.value = ei),
|
|
1354
1354
|
data: We.value
|
|
1355
1355
|
}, null, 8, ["modelValue", "data"])
|
|
1356
1356
|
])
|
|
@@ -1358,12 +1358,12 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
|
|
|
1358
1358
|
default: withCtx(() => {
|
|
1359
1359
|
var ei, Ge, Ze;
|
|
1360
1360
|
return [
|
|
1361
|
-
createElementVNode("div", _hoisted_2$
|
|
1361
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
1362
1362
|
createElementVNode("img", {
|
|
1363
1363
|
src: ((Ze = (Ge = (ei = Be.floor) == null ? void 0 : ei.floor_image) == null ? void 0 : Ge[0]) == null ? void 0 : Ze.url) || "",
|
|
1364
1364
|
alt: "",
|
|
1365
1365
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1366
|
-
}, null, 8, _hoisted_3$
|
|
1366
|
+
}, null, 8, _hoisted_3$f),
|
|
1367
1367
|
(openBlock(), createElementBlock("div", {
|
|
1368
1368
|
ref_key: "svgRef",
|
|
1369
1369
|
ref: Re,
|
|
@@ -1382,20 +1382,26 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
|
|
|
1382
1382
|
}), _hoisted_1$u = {
|
|
1383
1383
|
key: 0,
|
|
1384
1384
|
class: "ire-flex ire-h-fit ire-w-fit ire-flex-col ire-items-center"
|
|
1385
|
-
},
|
|
1385
|
+
}, _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
1386
1386
|
__name: "FlatPreviewKeyValue",
|
|
1387
1387
|
props: {
|
|
1388
1388
|
keyName: {},
|
|
1389
|
-
value: {}
|
|
1389
|
+
value: {},
|
|
1390
|
+
keyClass: {},
|
|
1391
|
+
valueClass: {}
|
|
1390
1392
|
},
|
|
1391
1393
|
setup(Be) {
|
|
1392
1394
|
return (_e, ke) => Be.value ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
|
|
1393
1395
|
renderSlot(_e.$slots, "top"),
|
|
1394
|
-
createElementVNode("div",
|
|
1396
|
+
createElementVNode("div", {
|
|
1397
|
+
class: normalizeClass(["flat-preview-value ire-text-center ire-text-2xl !ire-font-normal ire-text-black", Be.keyClass])
|
|
1398
|
+
}, [
|
|
1395
1399
|
createTextVNode(toDisplayString(Be.value) + " ", 1),
|
|
1396
1400
|
renderSlot(_e.$slots, "sufix")
|
|
1397
|
-
]),
|
|
1398
|
-
createElementVNode("div",
|
|
1401
|
+
], 2),
|
|
1402
|
+
createElementVNode("div", {
|
|
1403
|
+
class: normalizeClass(["flat-preview-text ire-pt-2 ire-text-sm ire-uppercase ire-text-gray-500", Be.valueClass])
|
|
1404
|
+
}, toDisplayString(Be.keyName), 3)
|
|
1399
1405
|
])) : createCommentVNode("", !0);
|
|
1400
1406
|
}
|
|
1401
1407
|
}), _hoisted_1$t = ["type", "disable"], _hoisted_2$f = {
|
|
@@ -1405,16 +1411,16 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
|
|
|
1405
1411
|
__name: "Button",
|
|
1406
1412
|
props: {
|
|
1407
1413
|
title: {},
|
|
1408
|
-
active: { type: Boolean },
|
|
1409
1414
|
type: {},
|
|
1410
|
-
disable: { type: Boolean }
|
|
1415
|
+
disable: { type: Boolean },
|
|
1416
|
+
variant: { default: "default" }
|
|
1411
1417
|
},
|
|
1412
1418
|
setup(Be) {
|
|
1413
1419
|
const _e = useSlots();
|
|
1414
1420
|
return (ke, $e) => (openBlock(), createElementBlock("button", {
|
|
1415
|
-
class: normalizeClass(["flat-preview-button ire-group ire-flex ire-w-fit ire-cursor-pointer ire-items-center ire-gap-2 ire-rounded-
|
|
1416
|
-
"ire-bg-[var(--primary-color)]
|
|
1417
|
-
"ire-
|
|
1421
|
+
class: normalizeClass(["flat-preview-button ire-group ire-flex ire-w-fit ire-cursor-pointer ire-items-center ire-gap-2 ire-rounded-full ire-px-4 ire-py-2 ire-text-center !ire-transition-all ire-duration-500 active:ire-scale-95 active:ire-bg-[color-mix(in_srgb,var(--primary-color),white_0.2%)]", {
|
|
1422
|
+
"ire-border-none ire-bg-[var(--primary-color)] hover:ire-bg-[color-mix(in_srgb,var(--primary-color),white_20%)]": Be.variant === "default",
|
|
1423
|
+
"ire-bg-transparent ire-ring-1 ire-ring-black hover:ire-bg-[var(--primary-color)] hover:ire-ring-transparent": Be.variant === "outline",
|
|
1418
1424
|
"ire-pointer-events-none ire-bg-gray-500": Be.disable
|
|
1419
1425
|
}]),
|
|
1420
1426
|
type: Be.type || "button",
|
|
@@ -1425,8 +1431,8 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
|
|
|
1425
1431
|
])) : createCommentVNode("", !0),
|
|
1426
1432
|
createElementVNode("div", {
|
|
1427
1433
|
class: normalizeClass(["flat-preview-button-text ire-w-full ire-text-center ire-text-base ire-transition-all group-hover:ire-text-white group-active:ire-text-white", {
|
|
1428
|
-
"ire-text-white": Be.
|
|
1429
|
-
"ire-text-black":
|
|
1434
|
+
"ire-text-white": Be.variant === "default",
|
|
1435
|
+
"ire-text-black group-hover:ire-text-white": Be.variant === "outline"
|
|
1430
1436
|
}])
|
|
1431
1437
|
}, toDisplayString(unref(tr)(Be.title)), 3)
|
|
1432
1438
|
], 10, _hoisted_1$t));
|
|
@@ -1817,8 +1823,8 @@ class I extends g {
|
|
|
1817
1823
|
const { content: ke, contentRect: $e } = this, { fitWidth: Ne, fitHeight: Ve, fullWidth: De, fullHeight: Le } = $e;
|
|
1818
1824
|
let Re = De, Ie = Le;
|
|
1819
1825
|
if (this.option("zoom") || this.angle !== 0) {
|
|
1820
|
-
const Ae = !(ke instanceof HTMLImageElement) && (window.getComputedStyle(ke).maxWidth === "none" || window.getComputedStyle(ke).maxHeight === "none"), ze = Ae ? De : Ne, je = Ae ? Le : Ve, Fe = this.getMatrix(_e), He = new DOMPoint(0, 0).matrixTransform(Fe), We = new DOMPoint(0 + ze, 0).matrixTransform(Fe), qe = new DOMPoint(0 + ze, 0 + je).matrixTransform(Fe), Ue = new DOMPoint(0, 0 + je).matrixTransform(Fe), Ye = Math.abs(qe.x - He.x), Ke = Math.abs(qe.y - He.y), Xe = Math.abs(Ue.x - We.x),
|
|
1821
|
-
Re = Math.max(Ye, Xe), Ie = Math.max(Ke,
|
|
1826
|
+
const Ae = !(ke instanceof HTMLImageElement) && (window.getComputedStyle(ke).maxWidth === "none" || window.getComputedStyle(ke).maxHeight === "none"), ze = Ae ? De : Ne, je = Ae ? Le : Ve, Fe = this.getMatrix(_e), He = new DOMPoint(0, 0).matrixTransform(Fe), We = new DOMPoint(0 + ze, 0).matrixTransform(Fe), qe = new DOMPoint(0 + ze, 0 + je).matrixTransform(Fe), Ue = new DOMPoint(0, 0 + je).matrixTransform(Fe), Ye = Math.abs(qe.x - He.x), Ke = Math.abs(qe.y - He.y), Xe = Math.abs(Ue.x - We.x), Je = Math.abs(Ue.y - We.y);
|
|
1827
|
+
Re = Math.max(Ye, Xe), Ie = Math.max(Ke, Je);
|
|
1822
1828
|
}
|
|
1823
1829
|
return { contentWidth: Re, contentHeight: Ie };
|
|
1824
1830
|
}
|
|
@@ -1990,7 +1996,7 @@ class I extends g {
|
|
|
1990
1996
|
typeof qe != "number" && (qe = He), typeof Ue != "number" && (Ue = We), Ye && (qe = He * (Ue / We)), Ke && (Ue = We / (He / qe));
|
|
1991
1997
|
let Xe = Ve.parentElement instanceof HTMLPictureElement ? Ve.parentElement : Ve;
|
|
1992
1998
|
this.option("transformParent") && (Xe = Xe.parentElement || Xe);
|
|
1993
|
-
const
|
|
1999
|
+
const Je = Xe.getAttribute("style") || "";
|
|
1994
2000
|
Xe.style.setProperty("transform", "none", "important"), De && (Xe.style.width = "", Xe.style.height = ""), Xe.offsetHeight;
|
|
1995
2001
|
const ii = Ve.getBoundingClientRect();
|
|
1996
2002
|
let ei = ii.width * $e, Ge = ii.height * $e, Ze = ei, ti = Ge;
|
|
@@ -1998,8 +2004,8 @@ class I extends g {
|
|
|
1998
2004
|
const li = si / oi, di = ai / ri, ci = Math.min(li, di);
|
|
1999
2005
|
return { width: oi *= ci, height: ri *= ci };
|
|
2000
2006
|
})(qe, Ue, ei, Ge) : (ei = Math.min(ei, qe), Ge = Math.min(Ge, Ue));
|
|
2001
|
-
let
|
|
2002
|
-
this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: ii.top - Le.top +
|
|
2007
|
+
let Qe = 0.5 * (ti - Ge), ni = 0.5 * (Ze - ei);
|
|
2008
|
+
this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: ii.top - Le.top + Qe, bottom: Le.bottom - ii.bottom + Qe, left: ii.left - Le.left + ni, right: Le.right - ii.right + ni, fitWidth: ei, fitHeight: Ge, width: ei, height: Ge, fullWidth: qe, fullHeight: Ue }), Xe.style.cssText = Je, De && (Xe.style.width = `${ei}px`, Xe.style.height = `${Ge}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();
|
|
2003
2009
|
}
|
|
2004
2010
|
calculateBounds() {
|
|
2005
2011
|
const { contentWidth: _e, contentHeight: ke } = this.calculateContentDim(this.target), { targetScale: $e, lockedAxis: Ne } = this, { fitWidth: Ve, fitHeight: De } = this.contentRect;
|
|
@@ -2535,8 +2541,8 @@ class Q extends g {
|
|
|
2535
2541
|
Xe ? (_e === "top" ? (Xe.style.right = "", Xe.style.left = "") : Xe.style.top = "", Ke.index !== je ? Xe.style[_e] = Fe === 0 ? "" : `${t(Fe, 1e3)}px` : Xe.style[_e] = "", He += Ke.dim + Ke.gap, je++) : Fe += Ke.dim + Ke.gap;
|
|
2536
2542
|
}
|
|
2537
2543
|
if (Ne && He && Ve) {
|
|
2538
|
-
let Ke = getComputedStyle(Ve), Xe = "padding",
|
|
2539
|
-
We -= ii, De += ii, De += parseFloat(Ke[Xe +
|
|
2544
|
+
let Ke = getComputedStyle(Ve), Xe = "padding", Je = ke ? "Right" : "Bottom", ii = parseFloat(Ke[Xe + (ke ? "Left" : "Top")]);
|
|
2545
|
+
We -= ii, De += ii, De += parseFloat(Ke[Xe + Je]);
|
|
2540
2546
|
for (const ei of Ae) ei.el && (t(ei.pos) < t(De) && t(ei.pos + ei.dim + ei.gap) < t(We) && t(We) > t(Le - De) && (ei.el.style[_e] = `${t(Fe + He, 1e3)}px`), t(ei.pos + ei.gap) >= t(Le - De) && t(ei.pos) > t(We + De) && t(We) < t(De) && (ei.el.style[_e] = `-${t(He, 1e3)}px`));
|
|
2541
2547
|
}
|
|
2542
2548
|
let qe, Ue, Ye = [...this.inTransition];
|
|
@@ -2964,8 +2970,8 @@ class wt extends _ {
|
|
|
2964
2970
|
const { x: ze, y: je, scale: Fe, opacity: He } = Ie;
|
|
2965
2971
|
if (He) {
|
|
2966
2972
|
const We = ((qe, Ue, Ye, Ke) => {
|
|
2967
|
-
const Xe = Ue - qe,
|
|
2968
|
-
return (ii) => Ye + ((ii - qe) / Xe *
|
|
2973
|
+
const Xe = Ue - qe, Je = Ke - Ye;
|
|
2974
|
+
return (ii) => Ye + ((ii - qe) / Xe * Je || 0);
|
|
2969
2975
|
})(Le.scale, Fe, 1, 0);
|
|
2970
2976
|
Le.on("afterTransform", () => {
|
|
2971
2977
|
De.style.opacity = We(Le.scale) + "";
|
|
@@ -3083,8 +3089,8 @@ class wt extends _ {
|
|
|
3083
3089
|
const Ue = Ve.container.getBoundingClientRect();
|
|
3084
3090
|
He += Ue.left, Fe += Ue.top;
|
|
3085
3091
|
const Ye = -1 * (He + 0.5 * We - (Ae + 0.5 * ze)), Ke = -1 * (Fe + 0.5 * qe - (Ie + 0.5 * je)), Xe = ze / We;
|
|
3086
|
-
let
|
|
3087
|
-
return
|
|
3092
|
+
let Je = this.option("zoomOpacity") || !1;
|
|
3093
|
+
return Je === "auto" && (Je = Math.abs(ze / je - We / qe) > 0.1), { x: Ye, y: Ke, scale: Xe, opacity: Je };
|
|
3088
3094
|
}
|
|
3089
3095
|
attach() {
|
|
3090
3096
|
const _e = this, ke = _e.instance;
|
|
@@ -4629,19 +4635,19 @@ function updateSwiper(Be) {
|
|
|
4629
4635
|
virtual: He,
|
|
4630
4636
|
thumbs: We
|
|
4631
4637
|
} = _e;
|
|
4632
|
-
let qe, Ue, Ye, Ke, Xe,
|
|
4638
|
+
let qe, Ue, Ye, Ke, Xe, Je, ii, ei;
|
|
4633
4639
|
Ne.includes("thumbs") && $e.thumbs && $e.thumbs.swiper && !$e.thumbs.swiper.destroyed && Ae.thumbs && (!Ae.thumbs.swiper || Ae.thumbs.swiper.destroyed) && (qe = !0), Ne.includes("controller") && $e.controller && $e.controller.control && Ae.controller && !Ae.controller.control && (Ue = !0), Ne.includes("pagination") && $e.pagination && ($e.pagination.el || Re) && (Ae.pagination || Ae.pagination === !1) && ze && !ze.el && (Ye = !0), Ne.includes("scrollbar") && $e.scrollbar && ($e.scrollbar.el || Le) && (Ae.scrollbar || Ae.scrollbar === !1) && Fe && !Fe.el && (Ke = !0), Ne.includes("navigation") && $e.navigation && ($e.navigation.prevEl || De) && ($e.navigation.nextEl || Ve) && (Ae.navigation || Ae.navigation === !1) && je && !je.prevEl && !je.nextEl && (Xe = !0);
|
|
4634
4640
|
const Ge = (Ze) => {
|
|
4635
4641
|
_e[Ze] && (_e[Ze].destroy(), Ze === "navigation" ? (_e.isElement && (_e[Ze].prevEl.remove(), _e[Ze].nextEl.remove()), Ae[Ze].prevEl = void 0, Ae[Ze].nextEl = void 0, _e[Ze].prevEl = void 0, _e[Ze].nextEl = void 0) : (_e.isElement && _e[Ze].el.remove(), Ae[Ze].el = void 0, _e[Ze].el = void 0));
|
|
4636
4642
|
};
|
|
4637
|
-
Ne.includes("loop") && _e.isElement && (Ae.loop && !$e.loop ?
|
|
4643
|
+
Ne.includes("loop") && _e.isElement && (Ae.loop && !$e.loop ? Je = !0 : !Ae.loop && $e.loop ? ii = !0 : ei = !0), Ie.forEach((Ze) => {
|
|
4638
4644
|
if (isObject(Ae[Ze]) && isObject($e[Ze]))
|
|
4639
4645
|
Object.assign(Ae[Ze], $e[Ze]), (Ze === "navigation" || Ze === "pagination" || Ze === "scrollbar") && "enabled" in $e[Ze] && !$e[Ze].enabled && Ge(Ze);
|
|
4640
4646
|
else {
|
|
4641
4647
|
const ti = $e[Ze];
|
|
4642
4648
|
(ti === !0 || ti === !1) && (Ze === "navigation" || Ze === "pagination" || Ze === "scrollbar") ? ti === !1 && Ge(Ze) : Ae[Ze] = $e[Ze];
|
|
4643
4649
|
}
|
|
4644
|
-
}), Ie.includes("controller") && !Ue && _e.controller && _e.controller.control && Ae.controller && Ae.controller.control && (_e.controller.control = Ae.controller.control), Ne.includes("children") && ke && He && Ae.virtual.enabled ? (He.slides = ke, He.update(!0)) : Ne.includes("virtual") && He && Ae.virtual.enabled && (ke && (He.slides = ke), He.update(!0)), Ne.includes("children") && ke && Ae.loop && (ei = !0), qe && We.init() && We.update(!0), Ue && (_e.controller.control = Ae.controller.control), Ye && (_e.isElement && (!Re || typeof Re == "string") && (Re = document.createElement("div"), Re.classList.add("swiper-pagination"), Re.part.add("pagination"), _e.el.appendChild(Re)), Re && (Ae.pagination.el = Re), ze.init(), ze.render(), ze.update()), Ke && (_e.isElement && (!Le || typeof Le == "string") && (Le = document.createElement("div"), Le.classList.add("swiper-scrollbar"), Le.part.add("scrollbar"), _e.el.appendChild(Le)), Le && (Ae.scrollbar.el = Le), Fe.init(), Fe.updateSize(), Fe.setTranslate()), Xe && (_e.isElement && ((!Ve || typeof Ve == "string") && (Ve = document.createElement("div"), Ve.classList.add("swiper-button-next"), setInnerHTML(Ve, _e.hostEl.constructor.nextButtonSvg), Ve.part.add("button-next"), _e.el.appendChild(Ve)), (!De || typeof De == "string") && (De = document.createElement("div"), De.classList.add("swiper-button-prev"), setInnerHTML(De, _e.hostEl.constructor.prevButtonSvg), De.part.add("button-prev"), _e.el.appendChild(De))), Ve && (Ae.navigation.nextEl = Ve), De && (Ae.navigation.prevEl = De), je.init(), je.update()), Ne.includes("allowSlideNext") && (_e.allowSlideNext = $e.allowSlideNext), Ne.includes("allowSlidePrev") && (_e.allowSlidePrev = $e.allowSlidePrev), Ne.includes("direction") && _e.changeDirection($e.direction, !1), (
|
|
4650
|
+
}), Ie.includes("controller") && !Ue && _e.controller && _e.controller.control && Ae.controller && Ae.controller.control && (_e.controller.control = Ae.controller.control), Ne.includes("children") && ke && He && Ae.virtual.enabled ? (He.slides = ke, He.update(!0)) : Ne.includes("virtual") && He && Ae.virtual.enabled && (ke && (He.slides = ke), He.update(!0)), Ne.includes("children") && ke && Ae.loop && (ei = !0), qe && We.init() && We.update(!0), Ue && (_e.controller.control = Ae.controller.control), Ye && (_e.isElement && (!Re || typeof Re == "string") && (Re = document.createElement("div"), Re.classList.add("swiper-pagination"), Re.part.add("pagination"), _e.el.appendChild(Re)), Re && (Ae.pagination.el = Re), ze.init(), ze.render(), ze.update()), Ke && (_e.isElement && (!Le || typeof Le == "string") && (Le = document.createElement("div"), Le.classList.add("swiper-scrollbar"), Le.part.add("scrollbar"), _e.el.appendChild(Le)), Le && (Ae.scrollbar.el = Le), Fe.init(), Fe.updateSize(), Fe.setTranslate()), Xe && (_e.isElement && ((!Ve || typeof Ve == "string") && (Ve = document.createElement("div"), Ve.classList.add("swiper-button-next"), setInnerHTML(Ve, _e.hostEl.constructor.nextButtonSvg), Ve.part.add("button-next"), _e.el.appendChild(Ve)), (!De || typeof De == "string") && (De = document.createElement("div"), De.classList.add("swiper-button-prev"), setInnerHTML(De, _e.hostEl.constructor.prevButtonSvg), De.part.add("button-prev"), _e.el.appendChild(De))), Ve && (Ae.navigation.nextEl = Ve), De && (Ae.navigation.prevEl = De), je.init(), je.update()), Ne.includes("allowSlideNext") && (_e.allowSlideNext = $e.allowSlideNext), Ne.includes("allowSlidePrev") && (_e.allowSlidePrev = $e.allowSlidePrev), Ne.includes("direction") && _e.changeDirection($e.direction, !1), (Je || ei) && _e.loopDestroy(), (ii || ei) && _e.loopCreate(), _e.update();
|
|
4645
4651
|
}
|
|
4646
4652
|
function getParams(Be, _e) {
|
|
4647
4653
|
Be === void 0 && (Be = {});
|
|
@@ -5227,15 +5233,15 @@ const Swiper = {
|
|
|
5227
5233
|
passedParams: Xe
|
|
5228
5234
|
} = getParams(Be);
|
|
5229
5235
|
getChildren(ke, Fe, He), je.value = Xe, He.value = Fe.value;
|
|
5230
|
-
const
|
|
5236
|
+
const Je = () => {
|
|
5231
5237
|
getChildren(ke, Fe, He), Re.value = !0;
|
|
5232
5238
|
};
|
|
5233
5239
|
Ke.onAny = function(Ge) {
|
|
5234
|
-
for (var Ze = arguments.length, ti = new Array(Ze > 1 ? Ze - 1 : 0),
|
|
5235
|
-
ti[
|
|
5240
|
+
for (var Ze = arguments.length, ti = new Array(Ze > 1 ? Ze - 1 : 0), Qe = 1; Qe < Ze; Qe++)
|
|
5241
|
+
ti[Qe - 1] = arguments[Qe];
|
|
5236
5242
|
$e(Ge, ...ti);
|
|
5237
5243
|
}, Object.assign(Ke.on, {
|
|
5238
|
-
_beforeBreakpoint:
|
|
5244
|
+
_beforeBreakpoint: Je,
|
|
5239
5245
|
_containerClasses(Ge, Ze) {
|
|
5240
5246
|
De.value = Ze;
|
|
5241
5247
|
}
|
|
@@ -5500,12 +5506,12 @@ function Navigation(Be) {
|
|
|
5500
5506
|
let Ke = Ue.includes(Ye) || qe.includes(Ye);
|
|
5501
5507
|
if (_e.isElement && !Ke) {
|
|
5502
5508
|
const Xe = We.path || We.composedPath && We.composedPath();
|
|
5503
|
-
Xe && (Ke = Xe.find((
|
|
5509
|
+
Xe && (Ke = Xe.find((Je) => qe.includes(Je) || Ue.includes(Je)));
|
|
5504
5510
|
}
|
|
5505
5511
|
if (_e.params.navigation.hideOnClick && !Ke) {
|
|
5506
5512
|
if (_e.pagination && _e.params.pagination && _e.params.pagination.clickable && (_e.pagination.el === Ye || _e.pagination.el.contains(Ye))) return;
|
|
5507
5513
|
let Xe;
|
|
5508
|
-
qe.length ? Xe = qe[0].classList.contains(_e.params.navigation.hiddenClass) : Ue.length && (Xe = Ue[0].classList.contains(_e.params.navigation.hiddenClass)), Ne(Xe === !0 ? "navigationShow" : "navigationHide"), [...qe, ...Ue].filter((
|
|
5514
|
+
qe.length ? Xe = qe[0].classList.contains(_e.params.navigation.hiddenClass) : Ue.length && (Xe = Ue[0].classList.contains(_e.params.navigation.hiddenClass)), Ne(Xe === !0 ? "navigationShow" : "navigationHide"), [...qe, ...Ue].filter((Je) => !!Je).forEach((Je) => Je.classList.toggle(_e.params.navigation.hiddenClass));
|
|
5509
5515
|
}
|
|
5510
5516
|
});
|
|
5511
5517
|
const je = () => {
|
|
@@ -5544,13 +5550,10 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5544
5550
|
}])
|
|
5545
5551
|
}, toDisplayString(Be.title), 3));
|
|
5546
5552
|
}
|
|
5547
|
-
}), _hoisted_1$o = { class: "ire-flex ire-h-full ire-w-full ire-flex-col ire-justify-between ire-overflow-hidden" }, _hoisted_2$e = { class: "ire-
|
|
5548
|
-
key: 1,
|
|
5549
|
-
class: "ire-flex ire-flex-wrap ire-items-center ire-gap-3"
|
|
5550
|
-
}, _hoisted_9$2 = {
|
|
5553
|
+
}), _hoisted_1$o = { class: "ire-flex ire-h-full ire-w-full ire-flex-col ire-justify-between ire-overflow-hidden" }, _hoisted_2$e = { class: "ire-relative ire-grid ire-min-h-52 ire-overflow-hidden" }, _hoisted_3$e = ["data-fancybox", "href"], _hoisted_4$a = ["src"], _hoisted_5$8 = { class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full" }, _hoisted_6$6 = { class: "flex ire-flex-col ire-flex-wrap ire-items-center ire-justify-center ire-gap-4 ire-p-4 sm:ire-flex-row lg:ire-gap-3" }, _hoisted_7$4 = {
|
|
5551
5554
|
key: 0,
|
|
5552
5555
|
class: "ire-absolute ire-right-4 ire-top-4 ire-z-20 ire-aspect-square ire-cursor-pointer md:ire-bottom-4 md:ire-left-4 md:ire-right-[unset] md:ire-top-[unset]"
|
|
5553
|
-
},
|
|
5556
|
+
}, _hoisted_8$2 = {
|
|
5554
5557
|
href: "https://www.ireplugin.com/",
|
|
5555
5558
|
target: "_blank"
|
|
5556
5559
|
}, _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
@@ -5566,8 +5569,8 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5566
5569
|
var We;
|
|
5567
5570
|
return $e("shareable_link") === "true" && ((We = Ne.value) == null ? void 0 : We.is_gold);
|
|
5568
5571
|
}), je = computed$1(() => {
|
|
5569
|
-
var qe, Ue, Ye, Ke, Xe,
|
|
5570
|
-
return (De.value && ((Ue = (qe = _e.flat.type) == null ? void 0 : qe.image_2d) != null && Ue.length) ? (Ye = _e.flat.type) == null ? void 0 : Ye.image_2d : !De.value && ((Xe = (Ke = _e.flat.type) == null ? void 0 : Ke.image_3d) != null && Xe.length) ? (
|
|
5572
|
+
var qe, Ue, Ye, Ke, Xe, Je;
|
|
5573
|
+
return (De.value && ((Ue = (qe = _e.flat.type) == null ? void 0 : qe.image_2d) != null && Ue.length) ? (Ye = _e.flat.type) == null ? void 0 : Ye.image_2d : !De.value && ((Xe = (Ke = _e.flat.type) == null ? void 0 : Ke.image_3d) != null && Xe.length) ? (Je = _e.flat.type) == null ? void 0 : Je.image_3d : []).slice(0, 6);
|
|
5571
5574
|
}), Fe = async () => {
|
|
5572
5575
|
Re.value || !ze.value || (await copyToClipboard(window.location.href), Re.value = !0, setTimeout(() => {
|
|
5573
5576
|
Re.value = !1;
|
|
@@ -5588,17 +5591,11 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5588
5591
|
(Ue = Object.keys(((qe = (We = _e.flat) == null ? void 0 : We.type) == null ? void 0 : qe.image_3d) || {})) != null && Ue.length || (De.value = !0);
|
|
5589
5592
|
}), (We, qe) => (openBlock(), createBlock(FancyBoxComp, { options: {} }, {
|
|
5590
5593
|
default: withCtx(() => {
|
|
5591
|
-
var Ue, Ye, Ke, Xe,
|
|
5594
|
+
var Ue, Ye, Ke, Xe, Je, ii, ei, Ge, Ze;
|
|
5592
5595
|
return [
|
|
5593
5596
|
createElementVNode("div", _hoisted_1$o, [
|
|
5597
|
+
qe[2] || (qe[2] = createElementVNode("div", { class: "ire-hidden ire-w-fit ire-p-4 md:ire-block" }, null, -1)),
|
|
5594
5598
|
createElementVNode("div", _hoisted_2$e, [
|
|
5595
|
-
Be.flat.conf ? (openBlock(), createBlock(_sfc_main$s, {
|
|
5596
|
-
key: 0,
|
|
5597
|
-
title: unref(tr)(Be.flat.conf),
|
|
5598
|
-
"badge-style": Be.flat.conf === "reserved" ? "warning" : "danger"
|
|
5599
|
-
}, null, 8, ["title", "badge-style"])) : createCommentVNode("", !0)
|
|
5600
|
-
]),
|
|
5601
|
-
createElementVNode("div", _hoisted_3$e, [
|
|
5602
5599
|
createVNode(Transition, {
|
|
5603
5600
|
name: "ire-scale",
|
|
5604
5601
|
mode: "out-in"
|
|
@@ -5620,23 +5617,23 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5620
5617
|
onSwiper: He
|
|
5621
5618
|
}, {
|
|
5622
5619
|
default: withCtx(() => [
|
|
5623
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(je.value, (
|
|
5624
|
-
key: (
|
|
5620
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(je.value, (Qe, ni) => (openBlock(), createBlock(unref(SwiperSlide), {
|
|
5621
|
+
key: (Qe == null ? void 0 : Qe.url) + ni,
|
|
5625
5622
|
class: "ire-flex !ire-w-full ire-justify-center ire-bg-gray-50 ire-text-center"
|
|
5626
5623
|
}, {
|
|
5627
5624
|
default: withCtx(() => [
|
|
5628
5625
|
(openBlock(), createElementBlock("a", {
|
|
5629
|
-
key: (
|
|
5626
|
+
key: (Qe == null ? void 0 : Qe.url) + ni,
|
|
5630
5627
|
"data-fancybox": De.value ? "gallery-2d" : "gallery-3d",
|
|
5631
|
-
href:
|
|
5628
|
+
href: Qe == null ? void 0 : Qe.url,
|
|
5632
5629
|
class: "irep-flat-preview__left-3d ire-flex ire-w-fit ire-items-center ire-justify-center"
|
|
5633
5630
|
}, [
|
|
5634
5631
|
(openBlock(), createElementBlock("img", {
|
|
5635
|
-
key: (
|
|
5636
|
-
src:
|
|
5637
|
-
class: "ire-h-full ire-max-h-[
|
|
5638
|
-
}, null, 8,
|
|
5639
|
-
], 8,
|
|
5632
|
+
key: (Qe == null ? void 0 : Qe.url) + ni,
|
|
5633
|
+
src: Qe == null ? void 0 : Qe.url,
|
|
5634
|
+
class: "ire-h-full ire-max-h-[450px] ire-w-full ire-object-contain ire-object-center"
|
|
5635
|
+
}, null, 8, _hoisted_4$a))
|
|
5636
|
+
], 8, _hoisted_3$e))
|
|
5640
5637
|
]),
|
|
5641
5638
|
_: 2
|
|
5642
5639
|
}, 1024))), 128))
|
|
@@ -5647,7 +5644,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5647
5644
|
}),
|
|
5648
5645
|
_: 1
|
|
5649
5646
|
}),
|
|
5650
|
-
withDirectives(createElementVNode("div",
|
|
5647
|
+
withDirectives(createElementVNode("div", _hoisted_5$8, [
|
|
5651
5648
|
createVNode(Transition, {
|
|
5652
5649
|
name: "ire-scale",
|
|
5653
5650
|
mode: "out-in"
|
|
@@ -5680,7 +5677,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5680
5677
|
[vShow, je.value.length > 1]
|
|
5681
5678
|
])
|
|
5682
5679
|
]),
|
|
5683
|
-
createElementVNode("div",
|
|
5680
|
+
createElementVNode("div", _hoisted_6$6, [
|
|
5684
5681
|
ze.value ? (openBlock(), createElementBlock("div", {
|
|
5685
5682
|
key: 0,
|
|
5686
5683
|
class: "ire-flex ire-cursor-pointer ire-items-center ire-justify-center ire-rounded-md ire-p-2 ire-transition-all hover:ire-bg-gray-200 [&_svg]:ire-size-5",
|
|
@@ -5696,11 +5693,12 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5696
5693
|
_: 1
|
|
5697
5694
|
})
|
|
5698
5695
|
])) : createCommentVNode("", !0),
|
|
5699
|
-
Ae.value ? (openBlock(), createElementBlock(
|
|
5696
|
+
Ae.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
5700
5697
|
(Xe = (Ke = (Ye = (Ue = Be.flat) == null ? void 0 : Ue.type) == null ? void 0 : Ye.image_3d) == null ? void 0 : Ke[0]) != null && Xe.url ? (openBlock(), createBlock(_sfc_main$x, {
|
|
5701
5698
|
key: 0,
|
|
5702
5699
|
title: unref(tr)("3d plan"),
|
|
5703
|
-
|
|
5700
|
+
variant: De.value ? "outline" : "default",
|
|
5701
|
+
class: "ire-w-full sm:ire-w-fit",
|
|
5704
5702
|
onClick: qe[0] || (qe[0] = (ti) => De.value = !1)
|
|
5705
5703
|
}, {
|
|
5706
5704
|
icon: withCtx(() => [
|
|
@@ -5709,11 +5707,12 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5709
5707
|
}, null, 8, ["class"])
|
|
5710
5708
|
]),
|
|
5711
5709
|
_: 1
|
|
5712
|
-
}, 8, ["title", "
|
|
5713
|
-
(Ge = (ei = (ii = (
|
|
5710
|
+
}, 8, ["title", "variant"])) : createCommentVNode("", !0),
|
|
5711
|
+
(Ge = (ei = (ii = (Je = Be.flat) == null ? void 0 : Je.type) == null ? void 0 : ii.image_2d) == null ? void 0 : ei[0]) != null && Ge.url ? (openBlock(), createBlock(_sfc_main$x, {
|
|
5714
5712
|
key: 1,
|
|
5715
5713
|
title: unref(tr)("2d plan"),
|
|
5716
|
-
|
|
5714
|
+
variant: De.value ? "default" : "outline",
|
|
5715
|
+
class: "ire-w-full sm:ire-w-fit",
|
|
5717
5716
|
onClick: qe[1] || (qe[1] = (ti) => De.value = !0)
|
|
5718
5717
|
}, {
|
|
5719
5718
|
icon: withCtx(() => [
|
|
@@ -5722,12 +5721,12 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5722
5721
|
}, null, 8, ["class"])
|
|
5723
5722
|
]),
|
|
5724
5723
|
_: 1
|
|
5725
|
-
}, 8, ["title", "
|
|
5726
|
-
])) : createCommentVNode("", !0)
|
|
5724
|
+
}, 8, ["title", "variant"])) : createCommentVNode("", !0)
|
|
5725
|
+
], 64)) : createCommentVNode("", !0)
|
|
5727
5726
|
])
|
|
5728
5727
|
]),
|
|
5729
|
-
unref($e)("remove_watermark") !== "true" || !((Ze = unref(Ne)) != null && Ze.is_premium) ? (openBlock(), createElementBlock("div",
|
|
5730
|
-
createElementVNode("a",
|
|
5728
|
+
unref($e)("remove_watermark") !== "true" || !((Ze = unref(Ne)) != null && Ze.is_premium) ? (openBlock(), createElementBlock("div", _hoisted_7$4, [
|
|
5729
|
+
createElementVNode("a", _hoisted_8$2, [
|
|
5731
5730
|
createVNode(Logo, { class: "ire-size-12" })
|
|
5732
5731
|
])
|
|
5733
5732
|
])) : createCommentVNode("", !0)
|
|
@@ -5785,7 +5784,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5785
5784
|
}, _hoisted_2$c = {
|
|
5786
5785
|
key: 1,
|
|
5787
5786
|
class: "irep-callback-form ire-flex ire-flex-col ire-gap-4"
|
|
5788
|
-
}, _hoisted_3$c = { class: "irep-callback-form__title ire-text-lg ire-font-semibold ire-text-black" }, _hoisted_4$8 = { class: "ire-flex ire-flex-col ire-text-black" }, _hoisted_5$6 = { class: "ire-mb-1 ire-text-base" }, _hoisted_6$
|
|
5787
|
+
}, _hoisted_3$c = { class: "irep-callback-form__title ire-text-lg ire-font-semibold ire-text-black" }, _hoisted_4$8 = { class: "ire-flex ire-flex-col ire-text-black" }, _hoisted_5$6 = { class: "ire-mb-1 ire-text-base" }, _hoisted_6$5 = { class: "irep-callback-form__buttons ire-mt-4 ire-flex ire-flex-wrap ire-gap-3" }, _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
5789
5788
|
__name: "ReservationForm",
|
|
5790
5789
|
props: {
|
|
5791
5790
|
flat: {}
|
|
@@ -5870,17 +5869,17 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5870
5869
|
]),
|
|
5871
5870
|
_: 1
|
|
5872
5871
|
}),
|
|
5873
|
-
createElementVNode("div", _hoisted_6$
|
|
5872
|
+
createElementVNode("div", _hoisted_6$5, [
|
|
5874
5873
|
createVNode(_sfc_main$x, {
|
|
5875
5874
|
type: "button",
|
|
5876
5875
|
title: "back",
|
|
5877
5876
|
class: "ire-flex-1",
|
|
5877
|
+
variant: "outline",
|
|
5878
5878
|
onClick: je[4] || (je[4] = (Fe) => ke("hideForm"))
|
|
5879
5879
|
}),
|
|
5880
5880
|
createVNode(_sfc_main$x, {
|
|
5881
5881
|
type: "submit",
|
|
5882
5882
|
title: "Submit",
|
|
5883
|
-
active: "",
|
|
5884
5883
|
class: "ire-flex-1",
|
|
5885
5884
|
disable: De.value || Le.value
|
|
5886
5885
|
}, null, 8, ["disable"])
|
|
@@ -5890,9 +5889,18 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5890
5889
|
}), _hoisted_1$l = { class: "flex ire-relative ire-overflow-hidden lg:ire-w-full" }, _hoisted_2$b = { class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-justify-center ire-gap-4" }, _hoisted_3$b = {
|
|
5891
5890
|
key: 1,
|
|
5892
5891
|
class: "flat-preview__type ire-text-center"
|
|
5893
|
-
}, _hoisted_4$7 = { class: "flat-preview__type-title !ire-text-lg ire-font-medium ire-text-black" }, _hoisted_5$5 = {
|
|
5892
|
+
}, _hoisted_4$7 = { class: "flat-preview__type-title !ire-text-lg ire-font-medium ire-text-black" }, _hoisted_5$5 = {
|
|
5893
|
+
key: 0,
|
|
5894
|
+
class: "flat-preview-text ire-pt-2 ire-text-sm ire-uppercase ire-text-gray-500"
|
|
5895
|
+
}, _hoisted_6$4 = { class: "ire-mt-4 ire-flex ire-w-full ire-flex-wrap ire-items-center ire-justify-center ire-gap-9 ire-overflow-y-auto lg:ire-max-h-[350px]" }, _hoisted_7$3 = { class: "flex ire-flex-col ire-items-center ire-justify-center" }, _hoisted_8$1 = {
|
|
5896
|
+
key: 0,
|
|
5897
|
+
class: "ire-uppercase"
|
|
5898
|
+
}, _hoisted_9$1 = {
|
|
5899
|
+
key: 1,
|
|
5900
|
+
class: "ire-uppercase"
|
|
5901
|
+
}, _hoisted_10$1 = { key: 2 }, _hoisted_11$1 = { class: "flat-preview-price-through-value ire-text-base ire-line-through ire-decoration-black/50" }, _hoisted_12$1 = { key: 3 }, _hoisted_13$1 = { class: "price-key ire-pt-2 ire-text-sm ire-uppercase ire-text-gray-500" }, _hoisted_14 = { class: "irep-flat-moda-action-buttons ire-flex ire-flex-col ire-text-center sm:ire-flex-row" }, _hoisted_15 = ["href"], _hoisted_16 = {
|
|
5894
5902
|
key: 1,
|
|
5895
|
-
class: "ire-w-full ire-p-2"
|
|
5903
|
+
class: "irep-flat-moda-action-buttons__request-callback ire-w-full ire-p-2"
|
|
5896
5904
|
}, _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
5897
5905
|
__name: "FlatPreview",
|
|
5898
5906
|
props: {
|
|
@@ -5902,45 +5910,50 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5902
5910
|
emits: ["changeComponent"],
|
|
5903
5911
|
setup(Be) {
|
|
5904
5912
|
const _e = Be, ke = useGlobalStore(), { getMetaValue: $e } = ke, { irePlaginWp: Ne, shortcodeData: Ve } = storeToRefs(ke), De = inject("fromListView"), Le = ref(!1), Re = computed$1(() => {
|
|
5905
|
-
var
|
|
5906
|
-
return
|
|
5913
|
+
var He;
|
|
5914
|
+
return (He = Ve.value) == null ? void 0 : He.configs.tableContactUrl;
|
|
5907
5915
|
}), Ie = computed$1(() => {
|
|
5908
|
-
var
|
|
5909
|
-
return
|
|
5916
|
+
var He;
|
|
5917
|
+
return $e("shareable_link") === "true" && ((He = Ne.value) == null ? void 0 : He.is_gold);
|
|
5910
5918
|
}), Ae = computed$1(() => {
|
|
5911
|
-
var
|
|
5912
|
-
return ((
|
|
5913
|
-
}), ze = () => {
|
|
5914
|
-
var He, We, qe, Ue;
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5919
|
+
var He;
|
|
5920
|
+
return !!($e("request_callback") === "true" && ((He = Ne.value) != null && He.is_gold));
|
|
5921
|
+
}), ze = computed$1(() => {
|
|
5922
|
+
var He, We, qe, Ue, Ye, Ke;
|
|
5923
|
+
return ((qe = (We = (He = _e.flat) == null ? void 0 : He.type) == null ? void 0 : We.image_3d) == null ? void 0 : qe.length) || ((Ke = (Ye = (Ue = _e.flat) == null ? void 0 : Ue.type) == null ? void 0 : Ye.image_2d) == null ? void 0 : Ke.length);
|
|
5924
|
+
}), je = () => {
|
|
5925
|
+
var qe, Ue, Ye, Ke;
|
|
5926
|
+
if (!Ie.value || De) return;
|
|
5927
|
+
const He = (qe = Ve.value) == null ? void 0 : qe.floors.find(
|
|
5928
|
+
(Xe) => {
|
|
5929
|
+
var Je, ii, ei;
|
|
5930
|
+
return ((Je = Xe.id) == null ? void 0 : Je.toString()) === ((ei = (ii = _e.flat) == null ? void 0 : ii.floor_id) == null ? void 0 : ei.toString());
|
|
5920
5931
|
}
|
|
5921
|
-
),
|
|
5922
|
-
flatId: (
|
|
5923
|
-
floorId:
|
|
5924
|
-
projectId: (
|
|
5932
|
+
), We = {
|
|
5933
|
+
flatId: (Ue = _e.flat) == null ? void 0 : Ue.id,
|
|
5934
|
+
floorId: He == null ? void 0 : He.id,
|
|
5935
|
+
projectId: (Ke = (Ye = Ve.value) == null ? void 0 : Ye.project) == null ? void 0 : Ke.id
|
|
5925
5936
|
};
|
|
5926
|
-
Object.entries(
|
|
5927
|
-
|
|
5937
|
+
Object.entries(We).forEach(([Xe, Je]) => {
|
|
5938
|
+
Xe && Je && setQuery(Xe, Je);
|
|
5928
5939
|
});
|
|
5940
|
+
}, Fe = () => {
|
|
5941
|
+
Ae.value && $e("redirect_to_callback_url") === "true" ? window.open(Re.value, "_blank") : Le.value = !0;
|
|
5929
5942
|
};
|
|
5930
5943
|
return onMounted(() => {
|
|
5931
|
-
|
|
5944
|
+
je();
|
|
5932
5945
|
}), onUnmounted(() => {
|
|
5933
|
-
["flatId", "floorId", "projectId"].forEach((
|
|
5934
|
-
setQuery(
|
|
5946
|
+
["flatId", "floorId", "projectId"].forEach((We) => {
|
|
5947
|
+
setQuery(We, "");
|
|
5935
5948
|
});
|
|
5936
|
-
}), (
|
|
5937
|
-
var
|
|
5949
|
+
}), (He, We) => {
|
|
5950
|
+
var qe, Ue, Ye, Ke, Xe, Je, ii, ei, Ge, Ze, ti, Qe, ni, oi, ri, si, ai, li, di, ci, ui, hi, fi, pi, mi, gi, bi, yi, _i, wi, xi, Ci, ki, Si, Ei, $i, Bi, Pi, Mi, Ni, Ti, Oi, Vi, Di, Li;
|
|
5938
5951
|
return openBlock(), createElementBlock("div", {
|
|
5939
5952
|
class: normalizeClass(["irep-flat-preview ire-grid", {
|
|
5940
|
-
"lg:ire-grid-cols-[1.4fr,1fr]":
|
|
5953
|
+
"lg:ire-grid-cols-[1.4fr,1fr]": ze.value
|
|
5941
5954
|
}])
|
|
5942
5955
|
}, [
|
|
5943
|
-
|
|
5956
|
+
ze.value && Be.flat ? (openBlock(), createBlock(_sfc_main$r, {
|
|
5944
5957
|
key: 0,
|
|
5945
5958
|
flat: Be.flat,
|
|
5946
5959
|
class: "ire-relative ire-bg-gray-50"
|
|
@@ -5952,39 +5965,49 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5952
5965
|
}])
|
|
5953
5966
|
}, [
|
|
5954
5967
|
createElementVNode("div", _hoisted_2$b, [
|
|
5955
|
-
(
|
|
5968
|
+
(qe = Be.flat) != null && qe.flat_number ? (openBlock(), createBlock(_sfc_main$y, {
|
|
5956
5969
|
key: 0,
|
|
5957
5970
|
keyName: unref(tr)("apartment"),
|
|
5958
5971
|
value: Be.flat.flat_number,
|
|
5972
|
+
keyClass: "flat_type",
|
|
5973
|
+
valueClass: "flat_type_value",
|
|
5959
5974
|
class: "[&_.flat-preview-value]:ire-min-w-fit [&_.flat-preview-value]:ire-font-semibold"
|
|
5960
5975
|
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5961
|
-
(
|
|
5962
|
-
createElementVNode("div", _hoisted_4$7, toDisplayString((
|
|
5963
|
-
|
|
5976
|
+
(Ye = (Ue = Be.flat) == null ? void 0 : Ue.type) != null && Ye.title || (Xe = (Ke = Be.flat) == null ? void 0 : Ke.type) != null && Xe.teaser ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
|
|
5977
|
+
createElementVNode("div", _hoisted_4$7, toDisplayString((ii = (Je = Be.flat) == null ? void 0 : Je.type) == null ? void 0 : ii.title), 1),
|
|
5978
|
+
(Ge = (ei = Be.flat) == null ? void 0 : ei.type) != null && Ge.teaser ? (openBlock(), createElementBlock("div", _hoisted_5$5, toDisplayString((ti = (Ze = Be.flat) == null ? void 0 : Ze.type) == null ? void 0 : ti.teaser), 1)) : createCommentVNode("", !0)
|
|
5964
5979
|
])) : createCommentVNode("", !0),
|
|
5965
|
-
createElementVNode("div", _hoisted_6$
|
|
5966
|
-
(
|
|
5980
|
+
createElementVNode("div", _hoisted_6$4, [
|
|
5981
|
+
(Qe = Be.flat) != null && Qe.block_id ? (openBlock(), createBlock(_sfc_main$y, {
|
|
5967
5982
|
key: 0,
|
|
5968
5983
|
keyName: unref(tr)("block"),
|
|
5969
|
-
value: ((
|
|
5984
|
+
value: ((ri = (oi = unref(getBlockById)(+((ni = Be.flat) == null ? void 0 : ni.block_id))) == null ? void 0 : oi.title) == null ? void 0 : ri.toString()) || "",
|
|
5985
|
+
keyClass: "flat_block_key flat_date_key",
|
|
5986
|
+
valueClass: "flat_block_value flat_date_value",
|
|
5970
5987
|
class: "irep-flat-preview__right-floor-block"
|
|
5971
5988
|
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5972
|
-
(
|
|
5989
|
+
(si = Be.flat) != null && si.floor_id ? (openBlock(), createBlock(_sfc_main$y, {
|
|
5973
5990
|
key: 1,
|
|
5974
5991
|
keyName: unref(tr)("floor"),
|
|
5975
|
-
value: ((
|
|
5992
|
+
value: ((di = (li = unref(getFloorById)(+((ai = Be.flat) == null ? void 0 : ai.floor_id))) == null ? void 0 : li.floor_number) == null ? void 0 : di.toString()) || "",
|
|
5993
|
+
keyClass: "flat_floor_name_key flat_date_key",
|
|
5994
|
+
valueClass: "flat_floor_name_value flat_date_value",
|
|
5976
5995
|
class: "irep-flat-preview__right-floor-number"
|
|
5977
5996
|
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5978
|
-
(
|
|
5997
|
+
(ci = Be.flat) != null && ci.floor_id ? (openBlock(), createBlock(_sfc_main$y, {
|
|
5979
5998
|
key: 2,
|
|
5980
5999
|
keyName: unref(tr)("floor title"),
|
|
5981
|
-
value: ((
|
|
6000
|
+
value: ((fi = (hi = unref(getFloorById)(+((ui = Be.flat) == null ? void 0 : ui.floor_id))) == null ? void 0 : hi.title) == null ? void 0 : fi.toString()) || "",
|
|
6001
|
+
keyClass: "flat_floor_key flat_date_key",
|
|
6002
|
+
valueClass: "flat_floor_value flat_date_value",
|
|
5982
6003
|
class: "irep-flat-preview__right-floor-title"
|
|
5983
6004
|
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5984
|
-
(
|
|
6005
|
+
(mi = (pi = Be.flat) == null ? void 0 : pi.type) != null && mi.area_m2 ? (openBlock(), createBlock(_sfc_main$y, {
|
|
5985
6006
|
key: 3,
|
|
5986
6007
|
keyName: unref(tr)("area"),
|
|
5987
|
-
value: unref(getArea)(Number((
|
|
6008
|
+
value: unref(getArea)(Number((gi = Be.flat) == null ? void 0 : gi.type.area_m2)),
|
|
6009
|
+
keyClass: "flat_area_key flat_date_key",
|
|
6010
|
+
valueClass: "flat_area_value flat_date_value",
|
|
5988
6011
|
class: "irep-flat-preview__right-floor-area"
|
|
5989
6012
|
}, {
|
|
5990
6013
|
sufix: withCtx(() => [
|
|
@@ -5992,73 +6015,66 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
5992
6015
|
]),
|
|
5993
6016
|
_: 1
|
|
5994
6017
|
}, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5995
|
-
(
|
|
6018
|
+
(yi = (bi = Be.flat) == null ? void 0 : bi.type) != null && yi.rooms_count ? (openBlock(), createBlock(_sfc_main$y, {
|
|
5996
6019
|
key: 4,
|
|
5997
6020
|
keyName: unref(tr)("room"),
|
|
5998
6021
|
value: Be.flat.type.rooms_count,
|
|
6022
|
+
keyClass: "flat_rooms_key flat_date_key",
|
|
6023
|
+
valueClass: "flat_rooms_value flat_date_value",
|
|
5999
6024
|
class: "irep-flat-preview__right-floor-room"
|
|
6000
6025
|
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
6001
|
-
(
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
])
|
|
6017
|
-
];
|
|
6018
|
-
}),
|
|
6019
|
-
sufix: withCtx(() => [
|
|
6026
|
+
(xi = (wi = (_i = Be.flat) == null ? void 0 : _i.type) == null ? void 0 : wi.other) != null && xi.length ? (openBlock(!0), createElementBlock(Fragment, { key: 5 }, renderList(Be.flat.type.other, (vi) => (openBlock(), createBlock(_sfc_main$y, {
|
|
6027
|
+
keyName: vi.key,
|
|
6028
|
+
value: vi.value,
|
|
6029
|
+
keyClass: "flat_date_key",
|
|
6030
|
+
valueClass: "flat_date_value"
|
|
6031
|
+
}, null, 8, ["keyName", "value"]))), 256)) : createCommentVNode("", !0)
|
|
6032
|
+
])
|
|
6033
|
+
]),
|
|
6034
|
+
createElementVNode("div", _hoisted_7$3, [
|
|
6035
|
+
createElementVNode("div", {
|
|
6036
|
+
class: normalizeClass(["irep-flat-modal-price-container ire-w-fit ire-rounded-sm ire-bg-[var(--primary-color)] ire-p-2 ire-text-4xl ire-text-white", [`irep-flat-modal--${((Ci = Be.flat) == null ? void 0 : Ci.conf) || "price"}`]])
|
|
6037
|
+
}, [
|
|
6038
|
+
(ki = Be.flat) != null && ki.conf ? (openBlock(), createElementBlock("div", _hoisted_8$1, toDisplayString(unref(tr)(Be.flat.conf)), 1)) : (Si = Be.flat) != null && Si.request_price ? (openBlock(), createElementBlock("div", _hoisted_9$1, toDisplayString(unref(tr)("Request Price")), 1)) : (Ei = Be.flat) != null && Ei.offer_price ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
|
|
6039
|
+
createElementVNode("div", _hoisted_11$1, [
|
|
6040
|
+
createTextVNode(toDisplayString(unref(getPrice)(Number(($i = Be.flat) == null ? void 0 : $i.price))) + " ", 1),
|
|
6020
6041
|
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
6021
6042
|
]),
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
key: 7,
|
|
6025
|
-
keyName: unref(tr)("price"),
|
|
6026
|
-
value: unref(getPrice)(Number((_i = Be.flat) == null ? void 0 : _i.price))
|
|
6027
|
-
}, {
|
|
6028
|
-
sufix: withCtx(() => [
|
|
6043
|
+
createElementVNode("div", null, [
|
|
6044
|
+
createTextVNode(toDisplayString(unref(getPrice)(Number((Bi = Be.flat) == null ? void 0 : Bi.offer_price))) + " ", 1),
|
|
6029
6045
|
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
6030
|
-
])
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
])
|
|
6046
|
+
])
|
|
6047
|
+
])) : (Pi = Be.flat) != null && Pi.price ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
|
|
6048
|
+
createTextVNode(toDisplayString(unref(getPrice)(Number((Mi = Be.flat) == null ? void 0 : Mi.price))) + " ", 1),
|
|
6049
|
+
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
6050
|
+
])) : createCommentVNode("", !0)
|
|
6051
|
+
], 2),
|
|
6052
|
+
createElementVNode("div", _hoisted_13$1, toDisplayString(unref(tr)("price")), 1)
|
|
6038
6053
|
]),
|
|
6039
|
-
createElementVNode("div",
|
|
6040
|
-
(
|
|
6054
|
+
createElementVNode("div", _hoisted_14, [
|
|
6055
|
+
(Oi = (Ti = (Ni = Be.flat) == null ? void 0 : Ni.files) == null ? void 0 : Ti[0]) != null && Oi.url ? (openBlock(), createElementBlock("a", {
|
|
6041
6056
|
key: 0,
|
|
6042
|
-
href: (
|
|
6057
|
+
href: (Li = (Di = (Vi = Be.flat) == null ? void 0 : Vi.files) == null ? void 0 : Di[0]) == null ? void 0 : Li.url,
|
|
6043
6058
|
target: "_blank",
|
|
6044
|
-
class: "ire-w-full ire-p-2 !ire-no-underline hover:!ire-no-underline"
|
|
6059
|
+
class: "irep-flat-moda-action-buttons__download-file ire-w-full ire-p-2 !ire-no-underline hover:!ire-no-underline"
|
|
6045
6060
|
}, [
|
|
6046
6061
|
createVNode(_sfc_main$x, {
|
|
6047
6062
|
title: unref(tr)("download file"),
|
|
6063
|
+
variant: "outline",
|
|
6048
6064
|
class: "ire-w-full"
|
|
6049
6065
|
}, null, 8, ["title"])
|
|
6050
|
-
], 8,
|
|
6051
|
-
|
|
6066
|
+
], 8, _hoisted_15)) : createCommentVNode("", !0),
|
|
6067
|
+
Ae.value ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
6052
6068
|
createVNode(_sfc_main$x, {
|
|
6053
6069
|
title: unref(tr)("request callback"),
|
|
6054
6070
|
active: "",
|
|
6055
6071
|
class: "!ire-w-full",
|
|
6056
|
-
onClick: Fe
|
|
6072
|
+
onClick: Fe
|
|
6057
6073
|
}, null, 8, ["title"])
|
|
6058
6074
|
])) : createCommentVNode("", !0)
|
|
6059
6075
|
])
|
|
6060
6076
|
], 2),
|
|
6061
|
-
|
|
6077
|
+
Ae.value ? (openBlock(), createElementBlock("div", {
|
|
6062
6078
|
key: 0,
|
|
6063
6079
|
class: normalizeClass(["ease-in-out-quint ire-mt-4 ire-h-full ire-w-full ire-flex-[1_0_auto] ire-origin-right ire-px-6 ire-py-4 ire-transition-transform ire-duration-300", {
|
|
6064
6080
|
"!ire-h-0 ire-translate-x-full ire-scale-0": !Le.value,
|
|
@@ -6067,7 +6083,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
|
|
|
6067
6083
|
}, [
|
|
6068
6084
|
createVNode(_sfc_main$p, {
|
|
6069
6085
|
flat: Be.flat,
|
|
6070
|
-
onHideForm:
|
|
6086
|
+
onHideForm: We[0] || (We[0] = (vi) => Le.value = !1)
|
|
6071
6087
|
}, null, 8, ["flat"])
|
|
6072
6088
|
], 2)) : createCommentVNode("", !0)
|
|
6073
6089
|
])
|
|
@@ -6110,7 +6126,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
|
|
|
6110
6126
|
createElementVNode("div", _hoisted_1$j, [
|
|
6111
6127
|
createElementVNode("div", _hoisted_2$a, [
|
|
6112
6128
|
createElementVNode("div", {
|
|
6113
|
-
class: "ire-z-[999] ire-flex ire-aspect-[1/1] ire-w-fit ire-cursor-pointer ire-justify-center ire-rounded-full ire-bg-
|
|
6129
|
+
class: "ire-z-[999] ire-flex ire-aspect-[1/1] ire-w-fit ire-cursor-pointer ire-justify-center ire-rounded-full ire-bg-gray-100 ire-p-2 ire-text-center ire-transition-all hover:ire-bg-gray-600 [&_path]:ire-fill-gray-400 [&_path]:hover:ire-fill-white [&_svg]:ire-size-4",
|
|
6114
6130
|
onClick: Ne[1] || (Ne[1] = (Ve) => $e.$emit("close"))
|
|
6115
6131
|
}, [
|
|
6116
6132
|
createVNode(Close)
|
|
@@ -6187,15 +6203,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
|
|
|
6187
6203
|
var ii, ei, Ge, Ze;
|
|
6188
6204
|
const Ke = Ye == null ? void 0 : Ye.getAttribute("id"), Xe = (ei = (ii = $e.block) == null ? void 0 : ii.polygon_data) == null ? void 0 : ei.find(
|
|
6189
6205
|
(ti) => (ti == null ? void 0 : ti.key) === Ke
|
|
6190
|
-
),
|
|
6206
|
+
), Je = Xe == null ? void 0 : Xe.id;
|
|
6191
6207
|
switch (Xe == null ? void 0 : Xe.type) {
|
|
6192
6208
|
case "floor":
|
|
6193
|
-
const ti = (Ge = $e.floors) == null ? void 0 : Ge.find((ni) => ni.id ===
|
|
6209
|
+
const ti = (Ge = $e.floors) == null ? void 0 : Ge.find((ni) => ni.id === Je);
|
|
6194
6210
|
Ye.setAttribute("conf", (ti == null ? void 0 : ti.conf) || "");
|
|
6195
6211
|
break;
|
|
6196
6212
|
case "flat":
|
|
6197
|
-
const
|
|
6198
|
-
Ye.setAttribute("conf", (
|
|
6213
|
+
const Qe = (Ze = $e.flats) == null ? void 0 : Ze.find((ni) => ni.id === Je);
|
|
6214
|
+
Ye.setAttribute("conf", (Qe == null ? void 0 : Qe.conf) || "");
|
|
6199
6215
|
break;
|
|
6200
6216
|
}
|
|
6201
6217
|
});
|
|
@@ -6208,37 +6224,37 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
|
|
|
6208
6224
|
), watch(
|
|
6209
6225
|
() => Ie.value,
|
|
6210
6226
|
(qe) => {
|
|
6211
|
-
var Ye, Ke, Xe,
|
|
6227
|
+
var Ye, Ke, Xe, Je, ii, ei, Ge, Ze;
|
|
6212
6228
|
if (!qe) return;
|
|
6213
6229
|
Ve.hoverdSvg = qe;
|
|
6214
6230
|
const Ue = qe == null ? void 0 : qe.parentElement;
|
|
6215
6231
|
if (Ue && (Ue == null ? void 0 : Ue.nodeName) === "g") {
|
|
6216
6232
|
const ti = Ue == null ? void 0 : Ue.getAttribute("id");
|
|
6217
|
-
if (!ti || (Ae.value = ((Ke = (Ye = $e.block) == null ? void 0 : Ye.polygon_data) == null ? void 0 : Ke.find((
|
|
6233
|
+
if (!ti || (Ae.value = ((Ke = (Ye = $e.block) == null ? void 0 : Ye.polygon_data) == null ? void 0 : Ke.find((Qe) => (Qe == null ? void 0 : Qe.key) === ti)) || null, !Ae.value)) return;
|
|
6218
6234
|
if (((Xe = Ae.value) == null ? void 0 : Xe.type) === "floor") {
|
|
6219
|
-
const
|
|
6235
|
+
const Qe = (Je = $e.floors) == null ? void 0 : Je.find(
|
|
6220
6236
|
(ni) => {
|
|
6221
6237
|
var oi;
|
|
6222
6238
|
return (ni == null ? void 0 : ni.id) === ((oi = Ae.value) == null ? void 0 : oi.id);
|
|
6223
6239
|
}
|
|
6224
6240
|
);
|
|
6225
|
-
ze.value =
|
|
6241
|
+
ze.value = Qe;
|
|
6226
6242
|
} else if (((ii = Ae.value) == null ? void 0 : ii.type) === "flat") {
|
|
6227
|
-
const
|
|
6243
|
+
const Qe = (ei = $e.flats) == null ? void 0 : ei.find(
|
|
6228
6244
|
(ni) => {
|
|
6229
6245
|
var oi;
|
|
6230
6246
|
return (ni == null ? void 0 : ni.id) === ((oi = Ae.value) == null ? void 0 : oi.id);
|
|
6231
6247
|
}
|
|
6232
6248
|
);
|
|
6233
|
-
ze.value =
|
|
6249
|
+
ze.value = Qe;
|
|
6234
6250
|
} else if (((Ge = Ae.value) == null ? void 0 : Ge.type) === "tooltip") {
|
|
6235
|
-
const
|
|
6251
|
+
const Qe = (Ze = $e.actions) == null ? void 0 : Ze.find(
|
|
6236
6252
|
(ni) => {
|
|
6237
6253
|
var oi;
|
|
6238
6254
|
return (ni == null ? void 0 : ni.id) === ((oi = Ae.value) == null ? void 0 : oi.id);
|
|
6239
6255
|
}
|
|
6240
6256
|
);
|
|
6241
|
-
ze.value =
|
|
6257
|
+
ze.value = Qe;
|
|
6242
6258
|
} else
|
|
6243
6259
|
ze.value = null;
|
|
6244
6260
|
} else
|
|
@@ -6264,11 +6280,11 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
|
|
|
6264
6280
|
];
|
|
6265
6281
|
}),
|
|
6266
6282
|
default: withCtx(() => {
|
|
6267
|
-
var Ke, Xe,
|
|
6283
|
+
var Ke, Xe, Je;
|
|
6268
6284
|
return [
|
|
6269
6285
|
createElementVNode("div", _hoisted_2$8, [
|
|
6270
6286
|
createElementVNode("img", {
|
|
6271
|
-
src: ((
|
|
6287
|
+
src: ((Je = (Xe = (Ke = Be.block) == null ? void 0 : Ke.block_image) == null ? void 0 : Xe[0]) == null ? void 0 : Je.url) || "",
|
|
6272
6288
|
alt: "",
|
|
6273
6289
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
6274
6290
|
}, null, 8, _hoisted_3$8),
|
|
@@ -6303,8 +6319,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
|
|
|
6303
6319
|
const Fe = document.querySelector(".irep-tooltip"), He = ((ii = _e.hoverdSvg) == null ? void 0 : ii.nodeName) === "path" ? _e.hoverdSvg : null;
|
|
6304
6320
|
if (!Ve.value || !Fe || !He)
|
|
6305
6321
|
return;
|
|
6306
|
-
const We = Ve.value.getBoundingClientRect(), qe = He.getBoundingClientRect(), Ue = Fe.getBoundingClientRect(), Ye = We.left + We.width / 2, Ke = We.top + We.height / 2, Xe = qe.left > Ye,
|
|
6307
|
-
Le = je.clientX - We.left - (Xe ? Ue.width : -20), Re = je.clientY - We.top - (
|
|
6322
|
+
const We = Ve.value.getBoundingClientRect(), qe = He.getBoundingClientRect(), Ue = Fe.getBoundingClientRect(), Ye = We.left + We.width / 2, Ke = We.top + We.height / 2, Xe = qe.left > Ye, Je = qe.bottom > Ke;
|
|
6323
|
+
Le = je.clientX - We.left - (Xe ? Ue.width : -20), Re = je.clientY - We.top - (Je ? Ue.height : -20), ke.value && ($e.value = Le, Ne.value = Re), Ae(), ke.value = !1;
|
|
6308
6324
|
};
|
|
6309
6325
|
return onMounted(() => {
|
|
6310
6326
|
document.addEventListener("mousemove", ze);
|
|
@@ -6555,7 +6571,7 @@ function _sfc_render$8(Be, _e) {
|
|
|
6555
6571
|
}, null, -1)
|
|
6556
6572
|
])]);
|
|
6557
6573
|
}
|
|
6558
|
-
const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$8]]), _hoisted_1$e = { class: "ire-relative ire-pt-[70%]" }, _hoisted_2$7 = ["src"], _hoisted_3$7 = { key: 1 }, _hoisted_4$5 = { class: "ire-mt-4 ire-flex ire-flex-col ire-gap-3" }, _hoisted_5$4 = { class: "flex ire-justify-between ire-gap-2 ire-text-center" }, _hoisted_6$
|
|
6574
|
+
const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$8]]), _hoisted_1$e = { class: "ire-relative ire-pt-[70%]" }, _hoisted_2$7 = ["src"], _hoisted_3$7 = { key: 1 }, _hoisted_4$5 = { class: "ire-mt-4 ire-flex ire-flex-col ire-gap-3" }, _hoisted_5$4 = { class: "flex ire-justify-between ire-gap-2 ire-text-center" }, _hoisted_6$3 = { class: "ire-text-left ire-text-lg ire-font-semibold" }, _hoisted_7$2 = { key: 0 }, _hoisted_8 = { key: 1 }, _hoisted_9 = { class: "ire-text-xs ire-text-gray-500 ire-line-through" }, _hoisted_10 = { class: "ire-text-base" }, _hoisted_11 = { key: 2 }, _hoisted_12 = { key: 3 }, _hoisted_13 = { class: "ire-right-[2px] ire-text-base" }, _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
6559
6575
|
__name: "FlatCard",
|
|
6560
6576
|
props: {
|
|
6561
6577
|
flat: {}
|
|
@@ -6587,7 +6603,7 @@ const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_re
|
|
|
6587
6603
|
]),
|
|
6588
6604
|
createElementVNode("div", _hoisted_4$5, [
|
|
6589
6605
|
createElementVNode("div", _hoisted_5$4, [
|
|
6590
|
-
createElementVNode("div", _hoisted_6$
|
|
6606
|
+
createElementVNode("div", _hoisted_6$3, toDisplayString(Be.flat.flat_number), 1),
|
|
6591
6607
|
Be.flat.conf ? (openBlock(), createBlock(_sfc_main$s, {
|
|
6592
6608
|
key: 0,
|
|
6593
6609
|
title: unref(tr)(Be.flat.conf),
|
|
@@ -6968,7 +6984,7 @@ function _sfc_render$5(Be, _e) {
|
|
|
6968
6984
|
}, null, -1)
|
|
6969
6985
|
])]);
|
|
6970
6986
|
}
|
|
6971
|
-
const SortingArrowAsc = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$5]]), _hoisted_1$8 = { class: "ire-overflow-x-auto" }, _hoisted_2$4 = { class: "irep-flats-list__table !ire-m-0 ire-w-full ire-border-collapse ire-border-spacing-0" }, _hoisted_3$4 = { class: "irep-flats-list__table-thead" }, _hoisted_4$3 = { class: "ire-border-b ire-border-b-gray-200" }, _hoisted_5$2 = ["onClick"], _hoisted_6$
|
|
6987
|
+
const SortingArrowAsc = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$5]]), _hoisted_1$8 = { class: "ire-overflow-x-auto" }, _hoisted_2$4 = { class: "irep-flats-list__table !ire-m-0 ire-w-full ire-border-collapse ire-border-spacing-0" }, _hoisted_3$4 = { class: "irep-flats-list__table-thead" }, _hoisted_4$3 = { class: "ire-border-b ire-border-b-gray-200" }, _hoisted_5$2 = ["onClick"], _hoisted_6$2 = { class: "ire-flex ire-min-w-max ire-items-center ire-gap-3" }, _hoisted_7$1 = { class: "irep-flats-list__table-heading ire-font-semibold" }, _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
6972
6988
|
__name: "Table",
|
|
6973
6989
|
props: {
|
|
6974
6990
|
data: {}
|
|
@@ -7005,7 +7021,7 @@ const SortingArrowAsc = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sf
|
|
|
7005
7021
|
}]),
|
|
7006
7022
|
onClick: (Fe) => Ie(je)
|
|
7007
7023
|
}, [
|
|
7008
|
-
createElementVNode("div", _hoisted_6$
|
|
7024
|
+
createElementVNode("div", _hoisted_6$2, [
|
|
7009
7025
|
createElementVNode("div", _hoisted_7$1, toDisplayString(unref(tr)(je == null ? void 0 : je.header)), 1),
|
|
7010
7026
|
createElementVNode("div", {
|
|
7011
7027
|
class: normalizeClass(["ire-flex ire-justify-center ire-text-center [&_svg]:ire-size-3", {
|
|
@@ -7234,7 +7250,7 @@ const MagnifyIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_re
|
|
|
7234
7250
|
}, 8, ["data"]))
|
|
7235
7251
|
]));
|
|
7236
7252
|
}
|
|
7237
|
-
}), _hoisted_1$2 = { class: "irep-flats-list-filters ire-grid ire-w-full ire-gap-x-4 ire-gap-y-2 ire-text-start ire-text-base sm:ire-grid-cols-2 md:ire-grid-cols-3 md:ire-gap-y-2" }, _hoisted_2$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_3$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_4$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_5$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_6 = { class: "irep-flats-list-filters-title -2 ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_7 = { class: "ire-flex ire-items-end ire-justify-end ire-gap-3" }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7253
|
+
}), _hoisted_1$2 = { class: "irep-flats-list-filters ire-grid ire-w-full ire-gap-x-4 ire-gap-y-2 ire-text-start ire-text-base sm:ire-grid-cols-2 md:ire-grid-cols-3 md:ire-gap-y-2" }, _hoisted_2$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_3$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_4$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_5$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_6$1 = { class: "irep-flats-list-filters-title -2 ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_7 = { class: "ire-flex ire-items-end ire-justify-end ire-gap-3" }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7238
7254
|
__name: "Filters",
|
|
7239
7255
|
props: {
|
|
7240
7256
|
filtersObject: {},
|
|
@@ -7368,7 +7384,7 @@ const MagnifyIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_re
|
|
|
7368
7384
|
}, null, 8, ["modelValue"])
|
|
7369
7385
|
]),
|
|
7370
7386
|
createElementVNode("div", null, [
|
|
7371
|
-
createElementVNode("div", _hoisted_6, toDisplayString(unref(tr)("select config")), 1),
|
|
7387
|
+
createElementVNode("div", _hoisted_6$1, toDisplayString(unref(tr)("select config")), 1),
|
|
7372
7388
|
createVNode(_sfc_main$C, {
|
|
7373
7389
|
modelValue: Le.value.config,
|
|
7374
7390
|
"onUpdate:modelValue": ze[4] || (ze[4] = (Fe) => Le.value.config = Fe),
|
|
@@ -7428,16 +7444,16 @@ function _sfc_render(Be, _e) {
|
|
|
7428
7444
|
}, null, -1)
|
|
7429
7445
|
])]);
|
|
7430
7446
|
}
|
|
7431
|
-
const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render]]), _hoisted_1 = {
|
|
7447
|
+
const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render]]), _hoisted_1 = { class: "irep-flats-top" }, _hoisted_2 = {
|
|
7432
7448
|
key: 0,
|
|
7433
7449
|
class: "irep-flats-view-container ire-flex ire-justify-end ire-py-4 ire-text-center"
|
|
7434
|
-
},
|
|
7450
|
+
}, _hoisted_3 = { class: "ire-flex ire-justify-center ire-text-center [&_path]:ire-transition-all group-hover:[&_path]:ire-stroke-gray-500" }, _hoisted_4 = {
|
|
7435
7451
|
key: 1,
|
|
7436
7452
|
class: "irep-flats-cards-list-wrapper ire-grid ire-grid-cols-1 ire-gap-y-8 md:ire-grid-cols-2 lg:ire-grid-cols-3 md:[&>div:nth-child(2n)]:ire-border-r lg:[&>div:nth-child(2n)]:ire-border-r-0 lg:[&>div:nth-child(3n)]:ire-border-r"
|
|
7437
|
-
}, _hoisted_4 = {
|
|
7438
|
-
key: 2,
|
|
7439
|
-
class: "ire-text-center ire-text-lg ire-font-semibold ire-capitalize ire-text-black"
|
|
7440
7453
|
}, _hoisted_5 = {
|
|
7454
|
+
key: 2,
|
|
7455
|
+
class: "ire-mt-6 ire-text-center ire-text-lg ire-font-semibold ire-capitalize ire-text-black"
|
|
7456
|
+
}, _hoisted_6 = {
|
|
7441
7457
|
key: 3,
|
|
7442
7458
|
class: "irep-flats-list__pagination ire-mt-8 ire-flex ire-flex-col ire-items-center ire-gap-4"
|
|
7443
7459
|
}, _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -7472,7 +7488,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
|
|
|
7472
7488
|
var oi, ri, si;
|
|
7473
7489
|
const ti = (oi = $e.value) == null ? void 0 : oi.floors.find(
|
|
7474
7490
|
(ai) => ai.id === Ze.floor_id
|
|
7475
|
-
),
|
|
7491
|
+
), Qe = (ri = $e.value) == null ? void 0 : ri.blocks.find(
|
|
7476
7492
|
(ai) => ai.id === Ze.block_id
|
|
7477
7493
|
), ni = Ze.use_type || !Ze.type ? ((si = qe.value) == null ? void 0 : si.find((ai) => ai.id === Ze.type_id)) ?? Ze.type : Ze.type;
|
|
7478
7494
|
return {
|
|
@@ -7486,27 +7502,27 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
|
|
|
7486
7502
|
price: Ze.conf ? tr(Ze.conf) : Ze.request_price ? tr("Request Price") : `${getPrice(Number((Ze == null ? void 0 : Ze.offer_price) || (Ze == null ? void 0 : Ze.price)))} ${currencySymbol()}`,
|
|
7487
7503
|
floor_title: ti == null ? void 0 : ti.title,
|
|
7488
7504
|
floor_number: Number.isFinite(Number(ti == null ? void 0 : ti.floor_number)) ? Number(ti == null ? void 0 : ti.floor_number) : "",
|
|
7489
|
-
block_title:
|
|
7505
|
+
block_title: Qe == null ? void 0 : Qe.title
|
|
7490
7506
|
};
|
|
7491
7507
|
}).map((Ze) => {
|
|
7492
|
-
var
|
|
7493
|
-
const ti = (
|
|
7508
|
+
var Qe;
|
|
7509
|
+
const ti = (Qe = Ze.type) == null ? void 0 : Qe.other.reduce(
|
|
7494
7510
|
(ni, oi) => (ni[oi.key] = oi.value, ni),
|
|
7495
7511
|
{}
|
|
7496
7512
|
);
|
|
7497
7513
|
return { ...Ze, type: { ...Ze.type, other: ti } };
|
|
7498
7514
|
}).sort((Ze, ti) => {
|
|
7499
|
-
const
|
|
7500
|
-
let ni = Ze[
|
|
7501
|
-
|
|
7515
|
+
const Qe = Le.value;
|
|
7516
|
+
let ni = Ze[Qe], oi = ti[Qe];
|
|
7517
|
+
Qe != null && Qe.includes(".") && (ni = getNested(Ze, Qe), oi = getNested(ti, Qe)), ni == null && (ni = "0"), oi == null && (oi = "0");
|
|
7502
7518
|
const ri = ni.toString(), si = oi.toString();
|
|
7503
7519
|
return !isNaN(ri) && !isNaN(si) ? Re.value === "desc" ? si - ri : ri - si : Re.value === "desc" ? String(oi).localeCompare(String(ni)) : String(ni).localeCompare(String(oi));
|
|
7504
7520
|
}) : []), Ye = computed$1(() => {
|
|
7505
7521
|
var Ge;
|
|
7506
7522
|
return Xe.value ? Math.ceil(((Ge = Ke.value) == null ? void 0 : Ge.length) / Ae.value) : 0;
|
|
7507
7523
|
}), Ke = computed$1(() => Ue.value ? Ue.value.filter((Ge) => {
|
|
7508
|
-
var ui, hi, fi,
|
|
7509
|
-
const [Ze, ti] = We.value.priceRange.split("-").map(Number), [
|
|
7524
|
+
var ui, hi, fi, pi, mi;
|
|
7525
|
+
const [Ze, ti] = We.value.priceRange.split("-").map(Number), [Qe, ni] = We.value.areaRange.split("-").map(Number), [oi, ri] = We.value.roomRange.split("-").map(Number), si = Ge.price_n >= Ze && Ge.price_n <= ti, ai = ((ui = Ge.type) == null ? void 0 : ui.area_m2_n) >= Qe && ((hi = Ge.type) == null ? void 0 : hi.area_m2_n) <= ni, li = (fi = We.value) != null && fi.floor ? Ge.floor_id === We.value.floor : !0, di = +((pi = Ge.type) == null ? void 0 : pi.rooms_count) >= oi && +((mi = Ge.type) == null ? void 0 : mi.rooms_count) <= ri;
|
|
7510
7526
|
let ci = !0;
|
|
7511
7527
|
return We.value.config !== "all" && (We.value.config === "available" ? ci = !Ge.conf : We.value.config === "reserved" ? ci = Ge.conf === "reserved" : We.value.config === "sold" && (ci = Ge.conf === "sold")), si && ai && li && di && ci;
|
|
7512
7528
|
}) : []), Xe = computed$1(() => {
|
|
@@ -7514,7 +7530,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
|
|
|
7514
7530
|
if (!((ti = $e.value) != null && ti.flats)) return [];
|
|
7515
7531
|
const Ge = (je.value - 1) * Ae.value, Ze = Ge + Ae.value;
|
|
7516
7532
|
return Ke.value.slice(Ge, Ze);
|
|
7517
|
-
}),
|
|
7533
|
+
}), Je = (Ge, Ze = !0) => {
|
|
7518
7534
|
je.value = Ge, ze.value, Ze && De(ze.value, 50), setQuery("flats-page", Ge.toString());
|
|
7519
7535
|
}, ii = (Ge, Ze) => {
|
|
7520
7536
|
Le.value = Ge, Re.value = Ze;
|
|
@@ -7525,7 +7541,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
|
|
|
7525
7541
|
return watch(
|
|
7526
7542
|
() => We.value,
|
|
7527
7543
|
() => {
|
|
7528
|
-
je.value = 1,
|
|
7544
|
+
je.value = 1, Je(1, !1);
|
|
7529
7545
|
},
|
|
7530
7546
|
{
|
|
7531
7547
|
deep: !0
|
|
@@ -7541,104 +7557,105 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
|
|
|
7541
7557
|
return [
|
|
7542
7558
|
createElementVNode("div", {
|
|
7543
7559
|
ref_key: "flatsContainer",
|
|
7544
|
-
ref: ze
|
|
7545
|
-
class: "irep-flats-top"
|
|
7560
|
+
ref: ze
|
|
7546
7561
|
}, [
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7562
|
+
createElementVNode("div", _hoisted_1, [
|
|
7563
|
+
createVNode(_sfc_main$2, {
|
|
7564
|
+
"filters-object": We.value,
|
|
7565
|
+
"onUpdate:filtersObject": Ze[0] || (Ze[0] = (Qe) => We.value = Qe)
|
|
7566
|
+
}, null, 8, ["filters-object"])
|
|
7567
|
+
]),
|
|
7568
|
+
Be.layout === "mixed" ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
7569
|
+
createElementVNode("button", {
|
|
7570
|
+
class: "irep-flats-top__mode-switcher-button ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-1 ire-bg-transparent ire-capitalize",
|
|
7571
|
+
onClick: Ze[1] || (Ze[1] = (Qe) => Ie.value = !Ie.value)
|
|
7572
|
+
}, [
|
|
7573
|
+
createElementVNode("div", _hoisted_3, [
|
|
7574
|
+
createVNode(Transition, {
|
|
7575
|
+
name: "ire-fade-in-out",
|
|
7576
|
+
mode: "out-in"
|
|
7577
|
+
}, {
|
|
7578
|
+
default: withCtx(() => [
|
|
7579
|
+
Ie.value ? (openBlock(), createBlock(GridIcon, {
|
|
7580
|
+
key: 0,
|
|
7581
|
+
class: "ire-size-5"
|
|
7582
|
+
})) : (openBlock(), createBlock(TableIcon, {
|
|
7583
|
+
key: 1,
|
|
7584
|
+
class: "ire-size-5"
|
|
7585
|
+
}))
|
|
7586
|
+
]),
|
|
7587
|
+
_: 1
|
|
7588
|
+
})
|
|
7589
|
+
]),
|
|
7558
7590
|
createVNode(Transition, {
|
|
7559
7591
|
name: "ire-fade-in-out",
|
|
7560
7592
|
mode: "out-in"
|
|
7561
7593
|
}, {
|
|
7562
7594
|
default: withCtx(() => [
|
|
7563
|
-
|
|
7564
|
-
key:
|
|
7565
|
-
class: "ire-
|
|
7566
|
-
})) : (
|
|
7567
|
-
key: 1,
|
|
7568
|
-
class: "ire-size-5"
|
|
7569
|
-
}))
|
|
7595
|
+
(openBlock(), createElementBlock("span", {
|
|
7596
|
+
key: String(Ie.value),
|
|
7597
|
+
class: "ire-text-base ire-text-black ire-transition-all group-hover:ire-text-gray-500"
|
|
7598
|
+
}, toDisplayString(Ie.value ? unref(tr)("grid view") : unref(tr)("table view")), 1))
|
|
7570
7599
|
]),
|
|
7571
7600
|
_: 1
|
|
7572
7601
|
})
|
|
7602
|
+
])
|
|
7603
|
+
])) : createCommentVNode("", !0),
|
|
7604
|
+
Xe.value.length ? (openBlock(), createBlock(Transition, {
|
|
7605
|
+
key: 1,
|
|
7606
|
+
name: "ire-fade-in-out",
|
|
7607
|
+
mode: "out-in"
|
|
7608
|
+
}, {
|
|
7609
|
+
default: withCtx(() => [
|
|
7610
|
+
Ie.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
7611
|
+
key: 0,
|
|
7612
|
+
flats: Xe.value,
|
|
7613
|
+
onSortColumn: Ze[2] || (Ze[2] = (Qe, ni) => ii(Qe, ni)),
|
|
7614
|
+
onOpenFlat: Ze[3] || (Ze[3] = (Qe) => ei(Qe))
|
|
7615
|
+
}, null, 8, ["flats"])) : (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
7616
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(Xe.value, (Qe) => (openBlock(), createBlock(_sfc_main$e, {
|
|
7617
|
+
key: Qe.id,
|
|
7618
|
+
flat: Qe,
|
|
7619
|
+
onOpenFlat: Ze[4] || (Ze[4] = (ni) => ei(ni))
|
|
7620
|
+
}, null, 8, ["flat"]))), 128))
|
|
7621
|
+
]))
|
|
7573
7622
|
]),
|
|
7623
|
+
_: 1
|
|
7624
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString(unref(tr)("nothing found")), 1)),
|
|
7625
|
+
(ti = Xe.value) != null && ti.length && Ye.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
7626
|
+
createVNode(unref(script$1), {
|
|
7627
|
+
modelValue: je.value,
|
|
7628
|
+
"onUpdate:modelValue": [
|
|
7629
|
+
Ze[5] || (Ze[5] = (Qe) => je.value = Qe),
|
|
7630
|
+
Je
|
|
7631
|
+
],
|
|
7632
|
+
pages: Ye.value,
|
|
7633
|
+
"range-size": 1,
|
|
7634
|
+
"active-color": "#000000",
|
|
7635
|
+
class: "[&_.Page-active]:!ire-border-none [&_.Page-active]:!ire-text-white [&_button]:!ire-rounded-full [&_button]:ire-transition-all [&_button]:hover:!ire-border-none hover:[&_button]:!ire-bg-gray-600 hover:[&_button]:!ire-text-white"
|
|
7636
|
+
}, null, 8, ["modelValue", "pages"])
|
|
7637
|
+
])) : createCommentVNode("", !0),
|
|
7638
|
+
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
7574
7639
|
createVNode(Transition, {
|
|
7575
7640
|
name: "ire-fade-in-out",
|
|
7576
|
-
|
|
7641
|
+
appear: ""
|
|
7577
7642
|
}, {
|
|
7578
7643
|
default: withCtx(() => [
|
|
7579
|
-
(openBlock(),
|
|
7580
|
-
key:
|
|
7581
|
-
|
|
7582
|
-
|
|
7644
|
+
Fe.value && He.value ? (openBlock(), createBlock(_sfc_main$m, {
|
|
7645
|
+
key: 0,
|
|
7646
|
+
style: normalizeStyle(unref(Ne)),
|
|
7647
|
+
onClose: Ze[6] || (Ze[6] = (Qe) => Fe.value = !1)
|
|
7648
|
+
}, {
|
|
7649
|
+
default: withCtx(() => [
|
|
7650
|
+
createVNode(_sfc_main$o, { flat: He.value }, null, 8, ["flat"])
|
|
7651
|
+
]),
|
|
7652
|
+
_: 1
|
|
7653
|
+
}, 8, ["style"])) : createCommentVNode("", !0)
|
|
7583
7654
|
]),
|
|
7584
7655
|
_: 1
|
|
7585
7656
|
})
|
|
7586
|
-
])
|
|
7587
|
-
]
|
|
7588
|
-
Xe.value.length ? (openBlock(), createBlock(Transition, {
|
|
7589
|
-
key: 1,
|
|
7590
|
-
name: "ire-fade-in-out",
|
|
7591
|
-
mode: "out-in"
|
|
7592
|
-
}, {
|
|
7593
|
-
default: withCtx(() => [
|
|
7594
|
-
Ie.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
7595
|
-
key: 0,
|
|
7596
|
-
flats: Xe.value,
|
|
7597
|
-
onSortColumn: Ze[2] || (Ze[2] = (Je, ni) => ii(Je, ni)),
|
|
7598
|
-
onOpenFlat: Ze[3] || (Ze[3] = (Je) => ei(Je))
|
|
7599
|
-
}, null, 8, ["flats"])) : (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
7600
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(Xe.value, (Je) => (openBlock(), createBlock(_sfc_main$e, {
|
|
7601
|
-
key: Je.id,
|
|
7602
|
-
flat: Je,
|
|
7603
|
-
onOpenFlat: Ze[4] || (Ze[4] = (ni) => ei(ni))
|
|
7604
|
-
}, null, 8, ["flat"]))), 128))
|
|
7605
|
-
]))
|
|
7606
|
-
]),
|
|
7607
|
-
_: 1
|
|
7608
|
-
})) : (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(unref(tr)("nothing found")), 1)),
|
|
7609
|
-
(ti = Xe.value) != null && ti.length && Ye.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
7610
|
-
createVNode(unref(script$1), {
|
|
7611
|
-
modelValue: je.value,
|
|
7612
|
-
"onUpdate:modelValue": [
|
|
7613
|
-
Ze[5] || (Ze[5] = (Je) => je.value = Je),
|
|
7614
|
-
Qe
|
|
7615
|
-
],
|
|
7616
|
-
pages: Ye.value,
|
|
7617
|
-
"range-size": 1,
|
|
7618
|
-
"active-color": "#000000",
|
|
7619
|
-
class: "[&_.Page-active]:!ire-border-none [&_.Page-active]:!ire-text-white [&_button]:!ire-rounded-full [&_button]:ire-transition-all [&_button]:hover:!ire-border-none hover:[&_button]:!ire-bg-gray-600 hover:[&_button]:!ire-text-white"
|
|
7620
|
-
}, null, 8, ["modelValue", "pages"])
|
|
7621
|
-
])) : createCommentVNode("", !0),
|
|
7622
|
-
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
7623
|
-
createVNode(Transition, {
|
|
7624
|
-
name: "ire-fade-in-out",
|
|
7625
|
-
appear: ""
|
|
7626
|
-
}, {
|
|
7627
|
-
default: withCtx(() => [
|
|
7628
|
-
Fe.value && He.value ? (openBlock(), createBlock(_sfc_main$m, {
|
|
7629
|
-
key: 0,
|
|
7630
|
-
style: normalizeStyle(unref(Ne)),
|
|
7631
|
-
onClose: Ze[6] || (Ze[6] = (Je) => Fe.value = !1)
|
|
7632
|
-
}, {
|
|
7633
|
-
default: withCtx(() => [
|
|
7634
|
-
createVNode(_sfc_main$o, { flat: He.value }, null, 8, ["flat"])
|
|
7635
|
-
]),
|
|
7636
|
-
_: 1
|
|
7637
|
-
}, 8, ["style"])) : createCommentVNode("", !0)
|
|
7638
|
-
]),
|
|
7639
|
-
_: 1
|
|
7640
|
-
})
|
|
7641
|
-
]))
|
|
7657
|
+
]))
|
|
7658
|
+
], 512)
|
|
7642
7659
|
];
|
|
7643
7660
|
}),
|
|
7644
7661
|
_: 1
|