ire-preview 3.2.21 → 3.2.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toRaw, computed as computed$1, isRef, isReactive, toRef, hasInjectionContext, inject, effectScope, ref, markRaw, reactive, getCurrentScope, onScopeDispose, watch, nextTick, toRefs, defineComponent, createElementBlock, openBlock, normalizeStyle, unref, renderSlot, createVNode, Transition, withCtx, createCommentVNode, createElementVNode, toDisplayString, Fragment, createTextVNode, normalizeClass, createBlock, onMounted, onUnmounted, mergeModels, useModel, withDirectives, renderList, vModelSelect, createStaticVNode, onUpdated, provide, onBeforeUnmount, h as h$1, onBeforeUpdate, vModelDynamic, withModifiers, vModelText, Teleport, pushScopeId, popScopeId, withScopeId, resolveComponent, resolveDynamicComponent, useSlots, onBeforeMount } from "vue";
|
|
1
|
+
import { toRaw, computed as computed$1, isRef, isReactive, toRef, hasInjectionContext, inject, effectScope, ref, markRaw, reactive, getCurrentScope, onScopeDispose, watch, nextTick, toRefs, defineComponent, createElementBlock, openBlock, normalizeStyle, unref, renderSlot, createVNode, Transition, withCtx, createCommentVNode, createElementVNode, toDisplayString, Fragment, createTextVNode, normalizeClass, createBlock, onMounted, onUnmounted, mergeModels, useModel, withDirectives, renderList, vModelSelect, createStaticVNode, onUpdated, provide, onBeforeUnmount, h as h$1, onBeforeUpdate, vShow, vModelDynamic, withModifiers, vModelText, Teleport, pushScopeId, popScopeId, withScopeId, resolveComponent, resolveDynamicComponent, useSlots, onBeforeMount } from "vue";
|
|
2
2
|
import { s as setInnerHTML, d as defaults, S as Swiper$1, e as elementChildren, c as createElement, m as makeElementsArray, a as axios } from "./vendor-CuysB-0b.js";
|
|
3
3
|
/*!
|
|
4
4
|
* pinia v3.0.4
|
|
@@ -113,8 +113,8 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
|
|
|
113
113
|
}
|
|
114
114
|
const Ue = Ve ? function() {
|
|
115
115
|
const { state: Xe } = ke, Ge = Xe ? Xe() : {};
|
|
116
|
-
this.$patch((
|
|
117
|
-
assign(
|
|
116
|
+
this.$patch((ei) => {
|
|
117
|
+
assign(ei, Ge);
|
|
118
118
|
});
|
|
119
119
|
} : (
|
|
120
120
|
/* istanbul ignore next */
|
|
@@ -128,7 +128,7 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
|
|
|
128
128
|
return Ke[ACTION_NAME] = Xe, Ke;
|
|
129
129
|
const Ge = function() {
|
|
130
130
|
setActivePinia($e);
|
|
131
|
-
const
|
|
131
|
+
const ei = Array.from(arguments), ii = /* @__PURE__ */ new Set(), oi = /* @__PURE__ */ new Set();
|
|
132
132
|
function ri(li) {
|
|
133
133
|
ii.add(li);
|
|
134
134
|
}
|
|
@@ -136,7 +136,7 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
|
|
|
136
136
|
oi.add(li);
|
|
137
137
|
}
|
|
138
138
|
triggerSubscriptions(je, {
|
|
139
|
-
args:
|
|
139
|
+
args: ei,
|
|
140
140
|
name: Ge[ACTION_NAME],
|
|
141
141
|
store: Qe,
|
|
142
142
|
after: ri,
|
|
@@ -144,7 +144,7 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
|
|
|
144
144
|
});
|
|
145
145
|
let ai;
|
|
146
146
|
try {
|
|
147
|
-
ai = Ke.apply(this && this.$id === Be ? this : Qe,
|
|
147
|
+
ai = Ke.apply(this && this.$id === Be ? this : Qe, ei);
|
|
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(Ke, Xe = {}) {
|
|
162
|
-
const Ge = addSubscription(ze, Ke, Xe.detached, () =>
|
|
162
|
+
const Ge = addSubscription(ze, Ke, Xe.detached, () => ei()), ei = De.run(() => watch(() => $e.state.value[Be], (ii) => {
|
|
163
163
|
(Xe.flush === "sync" ? Ae : Ie) && Ke({
|
|
164
164
|
storeId: Be,
|
|
165
165
|
type: MutationType.direct,
|
|
@@ -171,17 +171,17 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
|
|
|
171
171
|
$dispose: Ye
|
|
172
172
|
}, Qe = reactive(Ze);
|
|
173
173
|
$e._s.set(Be, Qe);
|
|
174
|
-
const
|
|
175
|
-
for (const Ke in
|
|
176
|
-
const Xe =
|
|
174
|
+
const ti = ($e._a && $e._a.runWithContext || fallbackRunWithContext)(() => $e._e.run(() => (De = effectScope()).run(() => _e({ action: Je }))));
|
|
175
|
+
for (const Ke in ti) {
|
|
176
|
+
const Xe = ti[Ke];
|
|
177
177
|
if (isRef(Xe) && !isComputed(Xe) || isReactive(Xe))
|
|
178
178
|
Ve || (He && shouldHydrate(Xe) && (isRef(Xe) ? Xe.value = He[Ke] : mergeReactiveObjects(Xe, He[Ke])), $e.state.value[Be][Ke] = Xe);
|
|
179
179
|
else if (typeof Xe == "function") {
|
|
180
180
|
const Ge = Je(Xe, Ke);
|
|
181
|
-
|
|
181
|
+
ti[Ke] = Ge, Le.actions[Ke] = Xe;
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
|
-
return assign(Qe,
|
|
184
|
+
return assign(Qe, ti), assign(toRaw(Qe), ti), Object.defineProperty(Qe, "$state", {
|
|
185
185
|
get: () => $e.state.value[Be],
|
|
186
186
|
set: (Ke) => {
|
|
187
187
|
qe((Xe) => {
|
|
@@ -228,9 +228,9 @@ function storeToRefs(Be) {
|
|
|
228
228
|
}
|
|
229
229
|
const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
230
230
|
var We, qe, Ue, Ye, Je, Ze, Qe, ni;
|
|
231
|
-
const Be = ref(), _e = ref("1"), ke = ref(), $e = ref(), Ne = (
|
|
231
|
+
const Be = ref(), _e = ref("1"), ke = ref(), $e = ref(), Ne = (ti) => {
|
|
232
232
|
var Ke, Xe, Ge;
|
|
233
|
-
return ((Ge = (Xe = (Ke = ke.value) == null ? void 0 : Ke.meta) == null ? void 0 : Xe.find((
|
|
233
|
+
return ((Ge = (Xe = (Ke = ke.value) == null ? void 0 : Ke.meta) == null ? void 0 : Xe.find((ei) => (ei == null ? void 0 : ei.meta_key) === ti)) == null ? void 0 : Ge.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)",
|
|
@@ -250,15 +250,15 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
250
250
|
stroke_width: (Qe = Ve.value) == null ? void 0 : Qe.PREVIEW_STROKE_WIDTH,
|
|
251
251
|
border_radius: (ni = Ve.value) == null ? void 0 : ni.PREVIEW_BORDER_RADIUS
|
|
252
252
|
}), Le = computed$1(() => {
|
|
253
|
-
var
|
|
254
|
-
return (
|
|
255
|
-
var Ge,
|
|
256
|
-
const Xe = Ke != null && Ke.use_type || !(Ke != null && Ke.type) ? ((
|
|
253
|
+
var ti;
|
|
254
|
+
return (ti = ke.value) == null ? void 0 : ti.flats.map((Ke) => {
|
|
255
|
+
var Ge, ei;
|
|
256
|
+
const Xe = Ke != null && Ke.use_type || !(Ke != null && Ke.type) ? ((ei = (Ge = ke.value) == null ? void 0 : Ge.types) == null ? void 0 : ei.find((ii) => ii.id === (Ke == null ? void 0 : Ke.type_id))) ?? (Ke == null ? void 0 : Ke.type) : Ke == null ? void 0 : Ke.type;
|
|
257
257
|
return { ...Ke, type: Xe };
|
|
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(() => {
|
|
260
|
-
var
|
|
261
|
-
return (
|
|
260
|
+
var ti;
|
|
261
|
+
return (ti = $e.value) == null ? void 0 : ti.translations;
|
|
262
262
|
}), je = computed$1(() => ({
|
|
263
263
|
"--reserved-color": De.reserved,
|
|
264
264
|
"--sold-color": De.sold,
|
|
@@ -268,19 +268,19 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
268
268
|
"--primary-color": De.primary_color,
|
|
269
269
|
"--stroke-width": De.stroke_width + "px",
|
|
270
270
|
"--border-radius": De.border_radius + "px"
|
|
271
|
-
})), Fe = (
|
|
272
|
-
ke.value =
|
|
273
|
-
}, He = (
|
|
274
|
-
$e.value =
|
|
271
|
+
})), Fe = (ti) => {
|
|
272
|
+
ke.value = ti;
|
|
273
|
+
}, He = (ti) => {
|
|
274
|
+
$e.value = ti;
|
|
275
275
|
};
|
|
276
276
|
return watch(
|
|
277
277
|
() => {
|
|
278
|
-
var
|
|
279
|
-
return (
|
|
278
|
+
var ti;
|
|
279
|
+
return (ti = ke.value) == null ? void 0 : ti.meta;
|
|
280
280
|
},
|
|
281
281
|
() => {
|
|
282
|
-
const
|
|
283
|
-
|
|
282
|
+
const ti = Ne("path_color"), Ke = Ne("path_hover_color"), Xe = Ne("reserved_color"), Ge = Ne("sold_color"), ei = Ne("stroke_color"), ii = Ne("primary_color"), oi = Ne("stroke_width"), ri = Ne("border_radius");
|
|
283
|
+
ti && (De.path = ti.toString()), Ke && (De.path_hover = Ke.toString()), Xe && (De.reserved = Xe.toString()), Ge && (De.sold = Ge.toString()), ei && (De.stroke_color = ei.toString()), ei && (De.stroke_color = ei.toString()), ii && (De.primary_color = ii.toString()), De.stroke_width = Number(oi) || 1, De.border_radius = Number(ri) || 0;
|
|
284
284
|
},
|
|
285
285
|
{ deep: !0 }
|
|
286
286
|
), {
|
|
@@ -301,7 +301,7 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
|
|
|
301
301
|
setData: Fe,
|
|
302
302
|
setIrePlaginWp: He
|
|
303
303
|
};
|
|
304
|
-
}), _sfc_main$
|
|
304
|
+
}), _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
305
305
|
__name: "ShortcodeWrapper",
|
|
306
306
|
setup(Be) {
|
|
307
307
|
const _e = useGlobalStore(), { cssVariables: ke } = storeToRefs(_e);
|
|
@@ -598,7 +598,7 @@ const tr = (Be) => {
|
|
|
598
598
|
}, _hoisted_1$F = {
|
|
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$n = {
|
|
602
602
|
key: 0,
|
|
603
603
|
class: "irep-tooltip-1__floor ire-flex ire-items-center ire-gap-3"
|
|
604
604
|
}, _hoisted_3$l = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$f = { class: "irep-tooltip-1__floor-number !ire-text-2xl" }, _hoisted_5$a = { class: "irep-tooltip-1__floor-text !ire-text-sm ire-uppercase" }, _hoisted_6$8 = {
|
|
@@ -610,10 +610,10 @@ const tr = (Be) => {
|
|
|
610
610
|
}, _hoisted_8$6 = { key: 1 }, _hoisted_9$6 = {
|
|
611
611
|
key: 0,
|
|
612
612
|
class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
|
|
613
|
-
}, _hoisted_10$6 = { class: "irep-tooltip-1__floor-status-value ire-min-w-3 !ire-text-2xl" }, _hoisted_11$
|
|
613
|
+
}, _hoisted_10$6 = { class: "irep-tooltip-1__floor-status-value ire-min-w-3 !ire-text-2xl" }, _hoisted_11$3 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_12$3 = {
|
|
614
614
|
key: 1,
|
|
615
615
|
class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
|
|
616
|
-
}, _hoisted_13$2 = { class: "irep-tooltip-1__floor-status-value min-w-3 !ire-text-2xl" }, _hoisted_14$
|
|
616
|
+
}, _hoisted_13$2 = { class: "irep-tooltip-1__floor-status-value min-w-3 !ire-text-2xl" }, _hoisted_14$1 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_15$1 = {
|
|
617
617
|
key: 2,
|
|
618
618
|
class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
|
|
619
619
|
}, _hoisted_16$1 = { 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 = {
|
|
@@ -631,7 +631,7 @@ const tr = (Be) => {
|
|
|
631
631
|
}, _hoisted_31$1 = {
|
|
632
632
|
key: 0,
|
|
633
633
|
class: "irep-tooltip-1__flat-price-value ire-whitespace-nowrap !ire-text-2xl"
|
|
634
|
-
}, _hoisted_32 = { key: 1 }, _hoisted_33 = { class: "irep-tooltip-1__flat-price-line-value ire-min-w-max !ire-text-sm ire-line-through ire-decoration-black/50" }, _hoisted_34 = { class: "irep-tooltip-1__flat-price-value ire-min-w-max ire-whitespace-nowrap !ire-text-2xl" }, _hoisted_35 = { class: "ire-border ire-border-solid ire-border-gray-800 ire-p-2" }, _hoisted_36 = { class: "irep-tooltip-1__flat-area ire-translate-x-3 ire-bg-white" }, _sfc_main$
|
|
634
|
+
}, _hoisted_32 = { key: 1 }, _hoisted_33 = { class: "irep-tooltip-1__flat-price-line-value ire-min-w-max !ire-text-sm ire-line-through ire-decoration-black/50" }, _hoisted_34 = { class: "irep-tooltip-1__flat-price-value ire-min-w-max ire-whitespace-nowrap !ire-text-2xl" }, _hoisted_35 = { class: "ire-border ire-border-solid ire-border-gray-800 ire-p-2" }, _hoisted_36 = { class: "irep-tooltip-1__flat-area ire-translate-x-3 ire-bg-white" }, _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
635
635
|
__name: "Tooltip_1",
|
|
636
636
|
props: {
|
|
637
637
|
hoveredData: {},
|
|
@@ -645,10 +645,10 @@ 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, Je, Ze, Qe, ni,
|
|
648
|
+
var Ve, De, Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ye, Je, Ze, Qe, ni, ti, Ke, Xe, Ge, ei, ii, oi;
|
|
649
649
|
return [
|
|
650
650
|
Be.type && Be.hoveredData && Be.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
|
|
651
|
-
Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
651
|
+
Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$n, [
|
|
652
652
|
createElementVNode("div", _hoisted_3$l, [
|
|
653
653
|
createElementVNode("div", _hoisted_4$f, toDisplayString((Ve = Be.hoveredData) == null ? void 0 : Ve.floor_number), 1),
|
|
654
654
|
createElementVNode("div", _hoisted_5$a, toDisplayString(unref(tr)("floor")), 1)
|
|
@@ -657,11 +657,11 @@ const tr = (Be) => {
|
|
|
657
657
|
ke.value ? (openBlock(), createElementBlock("div", _hoisted_7$7, toDisplayString(ke.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_8$6, [
|
|
658
658
|
(Ae = (Ie = Be.hoveredData) == null ? void 0 : Ie.counts) != null && Ae.available ? (openBlock(), createElementBlock("div", _hoisted_9$6, [
|
|
659
659
|
createElementVNode("div", _hoisted_10$6, toDisplayString(((je = (ze = Be.hoveredData) == null ? void 0 : ze.counts) == null ? void 0 : je.available) || 0), 1),
|
|
660
|
-
createElementVNode("div", _hoisted_11$
|
|
660
|
+
createElementVNode("div", _hoisted_11$3, toDisplayString(unref(tr)("available")), 1)
|
|
661
661
|
])) : createCommentVNode("", !0),
|
|
662
662
|
(He = (Fe = Be.hoveredData) == null ? void 0 : Fe.counts) != null && He.reserved ? (openBlock(), createElementBlock("div", _hoisted_12$3, [
|
|
663
663
|
createElementVNode("div", _hoisted_13$2, toDisplayString((qe = (We = Be.hoveredData) == null ? void 0 : We.counts) == null ? void 0 : qe.reserved), 1),
|
|
664
|
-
createElementVNode("div", _hoisted_14$
|
|
664
|
+
createElementVNode("div", _hoisted_14$1, toDisplayString(unref(tr)("reserved")), 1)
|
|
665
665
|
])) : createCommentVNode("", !0),
|
|
666
666
|
(Ye = (Ue = Be.hoveredData) == null ? void 0 : Ue.counts) != null && Ye.sold ? (openBlock(), createElementBlock("div", _hoisted_15$1, [
|
|
667
667
|
createElementVNode("div", _hoisted_16$1, toDisplayString((Ze = (Je = Be.hoveredData) == null ? void 0 : Je.counts) == null ? void 0 : Ze.sold), 1),
|
|
@@ -682,7 +682,7 @@ const tr = (Be) => {
|
|
|
682
682
|
createElementVNode("div", _hoisted_26$1, [
|
|
683
683
|
ke.value ? (openBlock(), createElementBlock("div", _hoisted_27$1, toDisplayString(ke.value), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
684
684
|
createElementVNode("div", _hoisted_28$1, toDisplayString(unref(tr)("price")), 1),
|
|
685
|
-
(
|
|
685
|
+
(ti = Be.hoveredData) != null && ti.request_price ? (openBlock(), createElementBlock("div", _hoisted_29$1, toDisplayString(unref(tr)("Request Price")), 1)) : (Ke = Be.hoveredData) != null && Ke.price ? (openBlock(), createElementBlock("div", _hoisted_30$1, [
|
|
686
686
|
createElementVNode("div", null, [
|
|
687
687
|
(Xe = Be.hoveredData) != null && Xe.offer_price ? (openBlock(), createElementBlock("div", _hoisted_32, [
|
|
688
688
|
createElementVNode("div", _hoisted_33, [
|
|
@@ -690,7 +690,7 @@ const tr = (Be) => {
|
|
|
690
690
|
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
691
691
|
]),
|
|
692
692
|
createElementVNode("div", _hoisted_34, [
|
|
693
|
-
createTextVNode(toDisplayString(unref(getPrice)((
|
|
693
|
+
createTextVNode(toDisplayString(unref(getPrice)((ei = Be.hoveredData) == null ? void 0 : ei.offer_price)) + " ", 1),
|
|
694
694
|
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
695
695
|
])
|
|
696
696
|
])) : (openBlock(), createElementBlock("div", _hoisted_31$1, [
|
|
@@ -702,10 +702,7 @@ const tr = (Be) => {
|
|
|
702
702
|
], 64))
|
|
703
703
|
]),
|
|
704
704
|
createElementVNode("div", _hoisted_35, [
|
|
705
|
-
createElementVNode("div", _hoisted_36,
|
|
706
|
-
createTextVNode(toDisplayString(unref(getArea)(+((oi = (ii = Be.hoveredData) == null ? void 0 : ii.type) == null ? void 0 : oi.area_m2))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + " ", 1),
|
|
707
|
-
Ne[0] || (Ne[0] = createElementVNode("sup", { class: "ire-bg-white !ire-text-sm" }, " 2 ", -1))
|
|
708
|
-
])
|
|
705
|
+
createElementVNode("div", _hoisted_36, toDisplayString(unref(getArea)(+((oi = (ii = Be.hoveredData) == null ? void 0 : ii.type) == null ? void 0 : oi.area_m2))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + "² ", 1)
|
|
709
706
|
])
|
|
710
707
|
])) : createCommentVNode("", !0)
|
|
711
708
|
])) : createCommentVNode("", !0)
|
|
@@ -718,13 +715,13 @@ const tr = (Be) => {
|
|
|
718
715
|
}), _hoisted_1$E = {
|
|
719
716
|
key: 0,
|
|
720
717
|
class: "irep-tooltip-2__floor ire-flex ire-flex-col ire-items-center !ire-text-sm"
|
|
721
|
-
}, _hoisted_2$
|
|
718
|
+
}, _hoisted_2$m = { class: "ire-flex ire-w-full ire-items-center ire-justify-evenly ire-p-4" }, _hoisted_3$k = { class: "irep-tooltip-2__floor-number ire-text-3xl ire-capitalize" }, _hoisted_4$e = {
|
|
722
719
|
key: 0,
|
|
723
720
|
class: "irep-tooltip-2__floor-conf ire-text-2xl ire-uppercase"
|
|
724
|
-
}, _hoisted_5$9 = { key: 1 }, _hoisted_6$7 = { class: "irep-tooltip-2__floor-starting ire-text-sm ire-text-gray-400" }, _hoisted_7$6 = { class: "irep-tooltip-2__floor-price" }, _hoisted_8$5 = { class: "ire-right-[2px] ire-text-gray-200" }, _hoisted_9$5 = { class: "ire-flex ire-items-center ire-justify-between ire-gap-2 ire-bg-gray-800 ire-p-2" }, _hoisted_10$5 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_11$
|
|
721
|
+
}, _hoisted_5$9 = { key: 1 }, _hoisted_6$7 = { class: "irep-tooltip-2__floor-starting ire-text-sm ire-text-gray-400" }, _hoisted_7$6 = { class: "irep-tooltip-2__floor-price" }, _hoisted_8$5 = { class: "ire-right-[2px] ire-text-gray-200" }, _hoisted_9$5 = { class: "ire-flex ire-items-center ire-justify-between ire-gap-2 ire-bg-gray-800 ire-p-2" }, _hoisted_10$5 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_11$2 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_12$2 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_13$1 = {
|
|
725
722
|
key: 1,
|
|
726
723
|
class: "irep-tooltip-2__block ire-flex ire-items-center ire-gap-3 ire-p-4 !ire-text-sm"
|
|
727
|
-
}, _hoisted_14
|
|
724
|
+
}, _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 = {
|
|
728
725
|
key: 2,
|
|
729
726
|
class: "irep-tooltip-2__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-1"
|
|
730
727
|
}, _hoisted_18 = { class: "ire-flex ire-items-center ire-gap-4 ire-p-4" }, _hoisted_19 = { class: "irep-tooltip-2__flat-number ire-max-w-28 ire-text-base ire-capitalize" }, _hoisted_20 = {
|
|
@@ -738,8 +735,8 @@ const tr = (Be) => {
|
|
|
738
735
|
class: "irep-tooltip-2__flat-price ire-text-base"
|
|
739
736
|
}, _hoisted_28 = { class: "ire-right-[2px]" }, _hoisted_29 = { class: "irep-tooltip-2__flat-area" }, _hoisted_30 = { class: "ire-right-[2px] ire-text-base" }, _hoisted_31 = {
|
|
740
737
|
key: 2,
|
|
741
|
-
class: "irep-tooltip-2__flat-room-count"
|
|
742
|
-
}, _sfc_main$
|
|
738
|
+
class: "irep-tooltip-2__flat-room-count ire-text-base"
|
|
739
|
+
}, _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
743
740
|
__name: "Tooltip_2",
|
|
744
741
|
props: {
|
|
745
742
|
hoveredData: {},
|
|
@@ -752,7 +749,7 @@ const tr = (Be) => {
|
|
|
752
749
|
return tr((Ve = _e.hoveredData) == null ? void 0 : Ve.conf);
|
|
753
750
|
});
|
|
754
751
|
return (Ve, De) => {
|
|
755
|
-
var Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ye, Je, Ze, Qe, ni,
|
|
752
|
+
var Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ye, Je, Ze, Qe, ni, ti, Ke, Xe, Ge, ei, ii, oi, ri, si, ai;
|
|
756
753
|
return Be.type && Be.hoveredData && Be.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
|
|
757
754
|
key: 0,
|
|
758
755
|
class: normalizeClass(["ire-pointer-events-none ire-absolute ire-select-none", {
|
|
@@ -769,7 +766,7 @@ const tr = (Be) => {
|
|
|
769
766
|
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 }])
|
|
770
767
|
}, [
|
|
771
768
|
Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
|
|
772
|
-
createElementVNode("div", _hoisted_2$
|
|
769
|
+
createElementVNode("div", _hoisted_2$m, [
|
|
773
770
|
createElementVNode("div", _hoisted_3$k, toDisplayString((Le = Be.hoveredData) == null ? void 0 : Le.floor_number), 1),
|
|
774
771
|
De[0] || (De[0] = createElementVNode("span", null, "|", -1)),
|
|
775
772
|
Ne.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, toDisplayString(Ne.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_5$9, [
|
|
@@ -786,7 +783,7 @@ const tr = (Be) => {
|
|
|
786
783
|
createTextVNode(" " + toDisplayString(unref(tr)("available")), 1)
|
|
787
784
|
]),
|
|
788
785
|
De[1] || (De[1] = createElementVNode("span", null, "•", -1)),
|
|
789
|
-
createElementVNode("div", _hoisted_11$
|
|
786
|
+
createElementVNode("div", _hoisted_11$2, [
|
|
790
787
|
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),
|
|
791
788
|
createTextVNode(" " + toDisplayString(unref(tr)("sold")), 1)
|
|
792
789
|
]),
|
|
@@ -797,19 +794,19 @@ const tr = (Be) => {
|
|
|
797
794
|
])
|
|
798
795
|
])
|
|
799
796
|
])) : Be.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
800
|
-
createElementVNode("div", _hoisted_14
|
|
797
|
+
createElementVNode("div", _hoisted_14, [
|
|
801
798
|
createElementVNode("div", _hoisted_15, toDisplayString((Ze = Be.hoveredData) == null ? void 0 : Ze.title), 1),
|
|
802
799
|
createElementVNode("span", _hoisted_16, toDisplayString(Ne.value), 1)
|
|
803
800
|
])
|
|
804
801
|
])) : Be.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_17, [
|
|
805
802
|
createElementVNode("div", _hoisted_18, [
|
|
806
803
|
createElementVNode("div", _hoisted_19, toDisplayString((Qe = Be.hoveredData) == null ? void 0 : Qe.flat_number), 1),
|
|
807
|
-
De[
|
|
804
|
+
De[3] || (De[3] = createElementVNode("span", null, "|", -1)),
|
|
808
805
|
Ne.value ? (openBlock(), createElementBlock("div", _hoisted_20, toDisplayString(Ne.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_21, [
|
|
809
806
|
(ni = Be.hoveredData) != null && ni.request_price ? (openBlock(), createElementBlock("div", _hoisted_22, toDisplayString(unref(tr)("Request Price")), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
810
807
|
Be.hoveredData.offer_price ? (openBlock(), createElementBlock("div", _hoisted_23, [
|
|
811
808
|
createElementVNode("div", _hoisted_24, [
|
|
812
|
-
createTextVNode(toDisplayString(unref(getPrice)(+((
|
|
809
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((ti = Be.hoveredData) == null ? void 0 : ti.price))) + " ", 1),
|
|
813
810
|
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
814
811
|
]),
|
|
815
812
|
createElementVNode("div", _hoisted_25, [
|
|
@@ -822,10 +819,7 @@ const tr = (Be) => {
|
|
|
822
819
|
])) : createCommentVNode("", !0)
|
|
823
820
|
], 64)),
|
|
824
821
|
createElementVNode("div", _hoisted_29, [
|
|
825
|
-
createElementVNode("span", _hoisted_30,
|
|
826
|
-
createTextVNode(toDisplayString(unref(getArea)(+((ii = (ti = Be.hoveredData) == null ? void 0 : ti.type) == null ? void 0 : ii.area_m2))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + " ", 1),
|
|
827
|
-
De[3] || (De[3] = createElementVNode("sup", { class: "ire-bg-transparent ire-text-sm" }, " 2 ", -1))
|
|
828
|
-
])
|
|
822
|
+
createElementVNode("span", _hoisted_30, toDisplayString(unref(getArea)(+((ii = (ei = Be.hoveredData) == null ? void 0 : ei.type) == null ? void 0 : ii.area_m2))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + "² ", 1)
|
|
829
823
|
]),
|
|
830
824
|
(ri = (oi = Be.hoveredData) == null ? void 0 : oi.type) != null && ri.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_31, toDisplayString(unref(tr)("room")) + ": " + toDisplayString((ai = (si = Be.hoveredData) == null ? void 0 : si.type) == null ? void 0 : ai.rooms_count), 1)) : createCommentVNode("", !0)
|
|
831
825
|
]))
|
|
@@ -835,7 +829,7 @@ const tr = (Be) => {
|
|
|
835
829
|
], 6)) : createCommentVNode("", !0);
|
|
836
830
|
};
|
|
837
831
|
}
|
|
838
|
-
}), _hoisted_1$D = { 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$
|
|
832
|
+
}), _hoisted_1$D = { 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$l = {
|
|
839
833
|
key: 0,
|
|
840
834
|
class: "irep-tooltip-3__floor ire-flex ire-flex-col ire-items-center ire-gap-3"
|
|
841
835
|
}, _hoisted_3$j = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$d = { class: "irep-tooltip-3__floor-number !ire-text-2xl" }, _hoisted_5$8 = { class: "irep-tooltip-3__floor-text !ire-text-sm ire-uppercase" }, _hoisted_6$6 = {
|
|
@@ -844,7 +838,7 @@ const tr = (Be) => {
|
|
|
844
838
|
}, _hoisted_7$5 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_8$4 = { class: "irep-tooltip-3__block-title !text-2xl" }, _hoisted_9$4 = {
|
|
845
839
|
key: 2,
|
|
846
840
|
class: "irep-tooltip-3__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
|
|
847
|
-
}, _hoisted_10$4 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_11$
|
|
841
|
+
}, _hoisted_10$4 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_11$1 = { class: "irep-tooltip-3__flat-number ire-max-w-52 ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_12$1 = { class: "irep-tooltip-3__flat-text !ire-mt-2 ire-text-sm ire-uppercase" }, _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
848
842
|
__name: "Tooltip_3",
|
|
849
843
|
props: {
|
|
850
844
|
hoveredData: {},
|
|
@@ -862,7 +856,7 @@ const tr = (Be) => {
|
|
|
862
856
|
})
|
|
863
857
|
}, [
|
|
864
858
|
createElementVNode("div", _hoisted_1$D, [
|
|
865
|
-
Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
859
|
+
Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$l, [
|
|
866
860
|
createElementVNode("div", _hoisted_3$j, [
|
|
867
861
|
createElementVNode("div", _hoisted_4$d, toDisplayString((Ve = Be.hoveredData) == null ? void 0 : Ve.floor_number), 1),
|
|
868
862
|
createElementVNode("div", _hoisted_5$8, toDisplayString(unref(tr)("floor")), 1)
|
|
@@ -873,7 +867,7 @@ const tr = (Be) => {
|
|
|
873
867
|
])
|
|
874
868
|
])) : Be.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_9$4, [
|
|
875
869
|
createElementVNode("div", _hoisted_10$4, [
|
|
876
|
-
createElementVNode("div", _hoisted_11$
|
|
870
|
+
createElementVNode("div", _hoisted_11$1, toDisplayString((Le = Be.hoveredData) == null ? void 0 : Le.flat_number), 1),
|
|
877
871
|
createElementVNode("div", _hoisted_12$1, toDisplayString(unref(tr)("apartment")), 1)
|
|
878
872
|
])
|
|
879
873
|
])) : createCommentVNode("", !0)
|
|
@@ -883,8 +877,8 @@ const tr = (Be) => {
|
|
|
883
877
|
}
|
|
884
878
|
}), _hoisted_1$C = {
|
|
885
879
|
key: 0,
|
|
886
|
-
class: "py-2 ire-mb-3 ire-flex ire-h-
|
|
887
|
-
}, _sfc_main$
|
|
880
|
+
class: "py-2 ire-mb-3 ire-flex ire-h-fit ire-items-center ire-justify-between ire-px-4"
|
|
881
|
+
}, _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
888
882
|
__name: "PreviewLayout",
|
|
889
883
|
props: {
|
|
890
884
|
hoverdData: {},
|
|
@@ -911,23 +905,23 @@ const tr = (Be) => {
|
|
|
911
905
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
912
906
|
default: withCtx(() => [
|
|
913
907
|
Ve.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
914
|
-
De.value === "1" ? (openBlock(), createBlock(_sfc_main$
|
|
908
|
+
De.value === "1" ? (openBlock(), createBlock(_sfc_main$J, {
|
|
915
909
|
key: 0,
|
|
916
910
|
"hovered-data": Be.hoverdData,
|
|
917
911
|
type: Be.type || "",
|
|
918
912
|
class: "ire-hidden lg:ire-block"
|
|
919
|
-
}, null, 8, ["hovered-data", "type"])) : De.value === "2" ? (openBlock(), createBlock(_sfc_main$
|
|
913
|
+
}, null, 8, ["hovered-data", "type"])) : De.value === "2" ? (openBlock(), createBlock(_sfc_main$I, {
|
|
920
914
|
key: 1,
|
|
921
915
|
"hovered-data": Be.hoverdData,
|
|
922
916
|
type: Be.type || "",
|
|
923
917
|
"mouse-track": !0,
|
|
924
918
|
class: "ire-hidden lg:ire-flex [&_.irep-tooltip]:group-active:!ire-scale-110"
|
|
925
|
-
}, null, 8, ["hovered-data", "type"])) : De.value === "3" ? (openBlock(), createBlock(_sfc_main$
|
|
919
|
+
}, null, 8, ["hovered-data", "type"])) : De.value === "3" ? (openBlock(), createBlock(_sfc_main$I, {
|
|
926
920
|
key: 2,
|
|
927
921
|
"hovered-data": Be.hoverdData,
|
|
928
922
|
type: Be.type || "",
|
|
929
923
|
class: "ire-hidden lg:ire-flex"
|
|
930
|
-
}, null, 8, ["hovered-data", "type"])) : De.value === "4" ? (openBlock(), createBlock(_sfc_main$
|
|
924
|
+
}, null, 8, ["hovered-data", "type"])) : De.value === "4" ? (openBlock(), createBlock(_sfc_main$H, {
|
|
931
925
|
key: 3,
|
|
932
926
|
"hovered-data": Be.hoverdData,
|
|
933
927
|
type: Be.type || "",
|
|
@@ -939,7 +933,7 @@ const tr = (Be) => {
|
|
|
939
933
|
})
|
|
940
934
|
], 512));
|
|
941
935
|
}
|
|
942
|
-
}), _hoisted_1$B = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_2$
|
|
936
|
+
}), _hoisted_1$B = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_2$k = ["src"], _hoisted_3$i = ["innerHTML"], _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
943
937
|
__name: "ProjectPreview",
|
|
944
938
|
props: {
|
|
945
939
|
project: {},
|
|
@@ -961,14 +955,14 @@ const tr = (Be) => {
|
|
|
961
955
|
var Ue;
|
|
962
956
|
if (!Re.value) return;
|
|
963
957
|
((Ue = Re.value) == null ? void 0 : Ue.querySelectorAll("g")).forEach((Ye) => {
|
|
964
|
-
var ni,
|
|
965
|
-
const Je = Ye == null ? void 0 : Ye.getAttribute("id"), Ze = (
|
|
966
|
-
(
|
|
958
|
+
var ni, ti, Ke, Xe, Ge;
|
|
959
|
+
const Je = Ye == null ? void 0 : Ye.getAttribute("id"), Ze = (ti = (ni = $e.project) == null ? void 0 : ni.polygon_data) == null ? void 0 : ti.find(
|
|
960
|
+
(ei) => (ei == null ? void 0 : ei.key) === Je
|
|
967
961
|
), Qe = Ze == null ? void 0 : Ze.id;
|
|
968
962
|
switch (Ze == null ? void 0 : Ze.type) {
|
|
969
963
|
case "block":
|
|
970
|
-
const
|
|
971
|
-
Ye.setAttribute("conf", (
|
|
964
|
+
const ei = (Ke = $e.blocks) == null ? void 0 : Ke.find((ri) => ri.id === Qe);
|
|
965
|
+
Ye.setAttribute("conf", (ei == null ? void 0 : ei.conf) || "");
|
|
972
966
|
break;
|
|
973
967
|
case "floor":
|
|
974
968
|
const ii = (Xe = $e.floors) == null ? void 0 : Xe.find((ri) => ri.id === Qe);
|
|
@@ -993,20 +987,20 @@ const tr = (Be) => {
|
|
|
993
987
|
), watch(
|
|
994
988
|
() => Ie.value,
|
|
995
989
|
(qe) => {
|
|
996
|
-
var Ye, Je, Ze, Qe, ni,
|
|
990
|
+
var Ye, Je, Ze, Qe, ni, ti, Ke;
|
|
997
991
|
if (!qe) return;
|
|
998
992
|
Ve.hoverdSvg = qe;
|
|
999
993
|
const Ue = qe.parentElement;
|
|
1000
994
|
if (Ue && (Ue == null ? void 0 : Ue.nodeName) === "g") {
|
|
1001
995
|
const Xe = Ue == null ? void 0 : Ue.getAttribute("id");
|
|
1002
|
-
if (!Xe || (ze.value = ((Ye = $e.project) == null ? void 0 : Ye.polygon_data.find((
|
|
996
|
+
if (!Xe || (ze.value = ((Ye = $e.project) == null ? void 0 : Ye.polygon_data.find((ei) => (ei == null ? void 0 : ei.key) === Xe)) || null, !ze.value)) return;
|
|
1003
997
|
const Ge = (Je = ze.value) == null ? void 0 : Je.id;
|
|
1004
998
|
switch ((Ze = ze.value) == null ? void 0 : Ze.type) {
|
|
1005
999
|
case "floor":
|
|
1006
|
-
const
|
|
1000
|
+
const ei = (Qe = $e.floors) == null ? void 0 : Qe.find(
|
|
1007
1001
|
(si) => si.id === Ge
|
|
1008
1002
|
);
|
|
1009
|
-
Ae.value =
|
|
1003
|
+
Ae.value = ei;
|
|
1010
1004
|
break;
|
|
1011
1005
|
case "block":
|
|
1012
1006
|
const ii = (ni = $e.blocks) == null ? void 0 : ni.find(
|
|
@@ -1015,7 +1009,7 @@ const tr = (Be) => {
|
|
|
1015
1009
|
Ae.value = ii;
|
|
1016
1010
|
break;
|
|
1017
1011
|
case "flat":
|
|
1018
|
-
const oi = (
|
|
1012
|
+
const oi = (ti = $e.flats) == null ? void 0 : ti.find(
|
|
1019
1013
|
(si) => (si == null ? void 0 : si.id) === Ge
|
|
1020
1014
|
);
|
|
1021
1015
|
Ae.value = oi;
|
|
@@ -1039,7 +1033,7 @@ const tr = (Be) => {
|
|
|
1039
1033
|
document.removeEventListener("mousemove", Fe);
|
|
1040
1034
|
}), (qe, Ue) => {
|
|
1041
1035
|
var Ye;
|
|
1042
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1036
|
+
return openBlock(), createBlock(_sfc_main$G, {
|
|
1043
1037
|
hoverdData: Ae.value,
|
|
1044
1038
|
type: (Ye = ze.value) == null ? void 0 : Ye.type
|
|
1045
1039
|
}, {
|
|
@@ -1051,7 +1045,7 @@ const tr = (Be) => {
|
|
|
1051
1045
|
src: (Qe = (Ze = (Je = Be.project) == null ? void 0 : Je.project_image) == null ? void 0 : Ze[0]) == null ? void 0 : Qe.url,
|
|
1052
1046
|
alt: "",
|
|
1053
1047
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1054
|
-
}, null, 8, _hoisted_2$
|
|
1048
|
+
}, null, 8, _hoisted_2$k),
|
|
1055
1049
|
(openBlock(), createElementBlock("div", {
|
|
1056
1050
|
innerHTML: unref(je),
|
|
1057
1051
|
key: unref(je),
|
|
@@ -1067,10 +1061,10 @@ const tr = (Be) => {
|
|
|
1067
1061
|
}, 8, ["hoverdData", "type"]);
|
|
1068
1062
|
};
|
|
1069
1063
|
}
|
|
1070
|
-
}), _hoisted_1$A = { class: "irep-select ire-w-full ire-min-w-[150px] ire-max-w-[200px] lg:ire-min-w-[250px]" }, _hoisted_2$
|
|
1064
|
+
}), _hoisted_1$A = { class: "irep-select ire-w-full ire-min-w-[150px] ire-max-w-[200px] lg:ire-min-w-[250px]" }, _hoisted_2$j = {
|
|
1071
1065
|
key: 0,
|
|
1072
1066
|
class: "label"
|
|
1073
|
-
}, _hoisted_3$h = { class: "ire-relative" }, _hoisted_4$c = ["value", "disabled"], _sfc_main$
|
|
1067
|
+
}, _hoisted_3$h = { class: "ire-relative" }, _hoisted_4$c = ["value", "disabled"], _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
1074
1068
|
__name: "PreviewSelect",
|
|
1075
1069
|
props: /* @__PURE__ */ mergeModels({
|
|
1076
1070
|
data: {},
|
|
@@ -1086,17 +1080,18 @@ const tr = (Be) => {
|
|
|
1086
1080
|
setup(Be) {
|
|
1087
1081
|
const _e = useGlobalStore(), { openReservedFlat: ke, openSoldFlat: $e } = storeToRefs(_e), Ne = useModel(Be, "modelValue");
|
|
1088
1082
|
return (Ve, De) => (openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
1089
|
-
Be.label ? (openBlock(), createElementBlock("p", _hoisted_2$
|
|
1083
|
+
Be.label ? (openBlock(), createElementBlock("p", _hoisted_2$j, toDisplayString(Be.label), 1)) : createCommentVNode("", !0),
|
|
1090
1084
|
createElementVNode("div", _hoisted_3$h, [
|
|
1091
1085
|
withDirectives(createElementVNode("select", {
|
|
1092
1086
|
"onUpdate:modelValue": De[0] || (De[0] = (Le) => Ne.value = Le),
|
|
1093
|
-
class: "no-spinner ire-w-full ire-cursor-pointer ire-appearance-none ire-rounded-md !ire-border-none
|
|
1087
|
+
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"
|
|
1094
1088
|
}, [
|
|
1095
1089
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(Be.data, (Le) => {
|
|
1096
1090
|
var Re, Ie;
|
|
1097
1091
|
return openBlock(), createElementBlock("option", {
|
|
1098
1092
|
value: Le.value,
|
|
1099
|
-
disabled: ((Re = Le == null ? void 0 : Le.title) == null ? void 0 : Re.includes("reserved")) && !unref(ke) || ((Ie = Le == null ? void 0 : Le.title) == null ? void 0 : Ie.includes("sold")) && !unref($e)
|
|
1093
|
+
disabled: ((Re = Le == null ? void 0 : Le.title) == null ? void 0 : Re.includes("reserved")) && !unref(ke) || ((Ie = Le == null ? void 0 : Le.title) == null ? void 0 : Ie.includes("sold")) && !unref($e),
|
|
1094
|
+
class: "ire-text-base"
|
|
1100
1095
|
}, toDisplayString(Le.title), 9, _hoisted_4$c);
|
|
1101
1096
|
}), 256))
|
|
1102
1097
|
], 512), [
|
|
@@ -1110,7 +1105,7 @@ const tr = (Be) => {
|
|
|
1110
1105
|
for (const [$e, Ne] of _e)
|
|
1111
1106
|
ke[$e] = Ne;
|
|
1112
1107
|
return ke;
|
|
1113
|
-
}, _sfc_main$
|
|
1108
|
+
}, _sfc_main$D = {}, _hoisted_1$z = {
|
|
1114
1109
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1115
1110
|
width: "32",
|
|
1116
1111
|
height: "32",
|
|
@@ -1125,15 +1120,15 @@ function _sfc_render$g(Be, _e) {
|
|
|
1125
1120
|
}, null, -1)
|
|
1126
1121
|
])]);
|
|
1127
1122
|
}
|
|
1128
|
-
const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1123
|
+
const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$g]]), _hoisted_1$y = { 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$i = { class: "back-button-text !ire-text-base ire-text-black group-hover/button:!ire-text-white" }, _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
1129
1124
|
__name: "BackButton",
|
|
1130
1125
|
setup(Be) {
|
|
1131
1126
|
return (_e, ke) => (openBlock(), createElementBlock("div", _hoisted_1$y, [
|
|
1132
1127
|
createVNode(ArrowRight, { class: "ire-w-6 ire-rotate-180 group-hover/button:[&_path]:ire-fill-white" }),
|
|
1133
|
-
createElementVNode("div", _hoisted_2$
|
|
1128
|
+
createElementVNode("div", _hoisted_2$i, toDisplayString(unref(tr)("back")), 1)
|
|
1134
1129
|
]));
|
|
1135
1130
|
}
|
|
1136
|
-
}), _hoisted_1$x = { class: "ire-w-fit ire-bg-white" }, _hoisted_2$
|
|
1131
|
+
}), _hoisted_1$x = { class: "ire-w-fit ire-bg-white" }, _hoisted_2$h = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_3$g = ["src"], _hoisted_4$b = ["innerHTML"], _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
1137
1132
|
__name: "FloorPreview",
|
|
1138
1133
|
props: {
|
|
1139
1134
|
flats: {},
|
|
@@ -1158,7 +1153,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
|
|
|
1158
1153
|
);
|
|
1159
1154
|
}
|
|
1160
1155
|
).map((Ze) => {
|
|
1161
|
-
var ni,
|
|
1156
|
+
var ni, ti;
|
|
1162
1157
|
const Qe = (ni = $e.blocks) == null ? void 0 : ni.find(
|
|
1163
1158
|
(Ke) => {
|
|
1164
1159
|
var Xe;
|
|
@@ -1166,25 +1161,25 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
|
|
|
1166
1161
|
}
|
|
1167
1162
|
);
|
|
1168
1163
|
return {
|
|
1169
|
-
title: ((
|
|
1164
|
+
title: ((ti = Ze == null ? void 0 : Ze.floor_number) == null ? void 0 : ti.toString()) + ` ${tr("floor")} ` + (Qe != null && Qe.id ? ` - ${Qe == null ? void 0 : Qe.title}` : "") + (Ze != null && Ze.conf ? " " + Ze.conf : ""),
|
|
1170
1165
|
value: Ze == null ? void 0 : Ze.id
|
|
1171
1166
|
};
|
|
1172
1167
|
}).sort((Ze, Qe) => Ze.title.localeCompare(Qe.title)) || []), qe = (Ze) => {
|
|
1173
1168
|
const Qe = Ze.target;
|
|
1174
1169
|
Qe && (Ie.value = Qe);
|
|
1175
1170
|
}, Ue = (Ze) => {
|
|
1176
|
-
var ni,
|
|
1171
|
+
var ni, ti, Ke;
|
|
1177
1172
|
const Qe = Ze.target;
|
|
1178
|
-
(Qe == null ? void 0 : Qe.nodeName) === "path" && (ze.value && "conf" in ze.value && (((ni = ze.value) == null ? void 0 : ni.conf) === "reserved" && !De.value || ((
|
|
1173
|
+
(Qe == null ? void 0 : Qe.nodeName) === "path" && (ze.value && "conf" in ze.value && (((ni = ze.value) == null ? void 0 : ni.conf) === "reserved" && !De.value || ((ti = ze.value) == null ? void 0 : ti.conf) === "sold" && !Le.value) || ke("changeComponent", ((Ke = Ae.value) == null ? void 0 : Ke.type) || "", ze.value));
|
|
1179
1174
|
}, Ye = () => {
|
|
1180
1175
|
var Ze;
|
|
1181
1176
|
Re.value && ((Ze = Re.value) == null ? void 0 : Ze.querySelectorAll("g")).forEach((ni) => {
|
|
1182
|
-
var Xe, Ge,
|
|
1183
|
-
const
|
|
1184
|
-
(si) => (si == null ? void 0 : si.key) ===
|
|
1177
|
+
var Xe, Ge, ei, ii, oi, ri;
|
|
1178
|
+
const ti = ni == null ? void 0 : ni.getAttribute("id"), Ke = (Ge = (Xe = $e.floor) == null ? void 0 : Xe.polygon_data) == null ? void 0 : Ge.find(
|
|
1179
|
+
(si) => (si == null ? void 0 : si.key) === ti
|
|
1185
1180
|
);
|
|
1186
1181
|
if ($e.flats)
|
|
1187
|
-
if ((
|
|
1182
|
+
if ((ei = $e.floor) != null && ei.conf)
|
|
1188
1183
|
ni.setAttribute("conf", ((ii = $e.floor) == null ? void 0 : ii.conf) || "");
|
|
1189
1184
|
else {
|
|
1190
1185
|
const si = (oi = $e.flats) == null ? void 0 : oi.find(
|
|
@@ -1200,13 +1195,13 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
|
|
|
1200
1195
|
return watch(
|
|
1201
1196
|
() => Ie.value,
|
|
1202
1197
|
(Ze) => {
|
|
1203
|
-
var ni,
|
|
1198
|
+
var ni, ti, Ke, Xe, Ge, ei, ii;
|
|
1204
1199
|
if (!Ze) return;
|
|
1205
1200
|
Ve.hoverdSvg = Ze;
|
|
1206
1201
|
const Qe = Ze == null ? void 0 : Ze.parentElement;
|
|
1207
1202
|
if (Qe && (Qe == null ? void 0 : Qe.nodeName) === "g") {
|
|
1208
1203
|
const oi = Qe.getAttribute("id");
|
|
1209
|
-
if (!oi || (Ae.value = ((
|
|
1204
|
+
if (!oi || (Ae.value = ((ti = (ni = $e.floor) == null ? void 0 : ni.polygon_data) == null ? void 0 : ti.find((ri) => (ri == null ? void 0 : ri.key) === oi)) || null, !Ae.value)) return;
|
|
1210
1205
|
if (((Ke = Ae.value) == null ? void 0 : Ke.type) === "flat") {
|
|
1211
1206
|
const ri = (Xe = $e.flats) == null ? void 0 : Xe.find(
|
|
1212
1207
|
(ai) => {
|
|
@@ -1218,7 +1213,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
|
|
|
1218
1213
|
conf: ri.conf || ((Ge = $e.floor) == null ? void 0 : Ge.conf) || ""
|
|
1219
1214
|
} : null;
|
|
1220
1215
|
ze.value = si;
|
|
1221
|
-
} else if (((
|
|
1216
|
+
} else if (((ei = Ae.value) == null ? void 0 : ei.type) === "tooltip") {
|
|
1222
1217
|
const ri = (ii = $e.actions) == null ? void 0 : ii.find(
|
|
1223
1218
|
(si) => {
|
|
1224
1219
|
var ai;
|
|
@@ -1250,40 +1245,40 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
|
|
|
1250
1245
|
), onMounted(() => {
|
|
1251
1246
|
var Ze, Qe, ni;
|
|
1252
1247
|
Fe.value = (Ze = $e.blocks) == null ? void 0 : Ze.find(
|
|
1253
|
-
(
|
|
1248
|
+
(ti) => {
|
|
1254
1249
|
var Ke, Xe;
|
|
1255
|
-
return (
|
|
1250
|
+
return (ti == null ? void 0 : ti.id) === ((Xe = (Ke = $e.floor) == null ? void 0 : Ke.block_id) == null ? void 0 : Xe.toString());
|
|
1256
1251
|
}
|
|
1257
1252
|
), je.value = (ni = (Qe = We.value) == null ? void 0 : Qe.find(
|
|
1258
|
-
(
|
|
1253
|
+
(ti) => {
|
|
1259
1254
|
var Ke;
|
|
1260
|
-
return (
|
|
1255
|
+
return (ti == null ? void 0 : ti.value) == ((Ke = $e.floor) == null ? void 0 : Ke.id);
|
|
1261
1256
|
}
|
|
1262
1257
|
)) == null ? void 0 : ni.value, Ye(), document.addEventListener("mousemove", qe);
|
|
1263
1258
|
}), onUnmounted(() => {
|
|
1264
1259
|
document.removeEventListener("mousemove", qe);
|
|
1265
1260
|
}), (Ze, Qe) => {
|
|
1266
1261
|
var ni;
|
|
1267
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1262
|
+
return openBlock(), createBlock(_sfc_main$G, {
|
|
1268
1263
|
hoverdData: ze.value,
|
|
1269
1264
|
type: (ni = Ae.value) == null ? void 0 : ni.type
|
|
1270
1265
|
}, {
|
|
1271
1266
|
header: withCtx(() => [
|
|
1272
|
-
createVNode(_sfc_main$
|
|
1267
|
+
createVNode(_sfc_main$C, { onClick: Je }),
|
|
1273
1268
|
createElementVNode("div", _hoisted_1$x, [
|
|
1274
|
-
createVNode(_sfc_main$
|
|
1269
|
+
createVNode(_sfc_main$E, {
|
|
1275
1270
|
modelValue: je.value,
|
|
1276
|
-
"onUpdate:modelValue": Qe[0] || (Qe[0] = (
|
|
1271
|
+
"onUpdate:modelValue": Qe[0] || (Qe[0] = (ti) => je.value = ti),
|
|
1277
1272
|
data: We.value
|
|
1278
1273
|
}, null, 8, ["modelValue", "data"])
|
|
1279
1274
|
])
|
|
1280
1275
|
]),
|
|
1281
1276
|
default: withCtx(() => {
|
|
1282
|
-
var
|
|
1277
|
+
var ti, Ke, Xe;
|
|
1283
1278
|
return [
|
|
1284
|
-
createElementVNode("div", _hoisted_2$
|
|
1279
|
+
createElementVNode("div", _hoisted_2$h, [
|
|
1285
1280
|
createElementVNode("img", {
|
|
1286
|
-
src: ((Xe = (Ke = (
|
|
1281
|
+
src: ((Xe = (Ke = (ti = Be.floor) == null ? void 0 : ti.floor_image) == null ? void 0 : Ke[0]) == null ? void 0 : Xe.url) || "",
|
|
1287
1282
|
alt: "",
|
|
1288
1283
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1289
1284
|
}, null, 8, _hoisted_3$g),
|
|
@@ -1305,7 +1300,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
|
|
|
1305
1300
|
}), _hoisted_1$w = {
|
|
1306
1301
|
key: 0,
|
|
1307
1302
|
class: "ire-flex ire-h-fit ire-w-fit ire-flex-col ire-items-center"
|
|
1308
|
-
}, _hoisted_2$
|
|
1303
|
+
}, _hoisted_2$g = { class: "flat-preview-value ire-text-center !ire-text-2xl !ire-font-normal ire-text-black" }, _hoisted_3$f = { class: "flat-preview-text ire-border-b-gray-200 ire-py-2 ire-text-sm ire-uppercase ire-text-gray-600" }, _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
1309
1304
|
__name: "FlatPreviewKeyValue",
|
|
1310
1305
|
props: {
|
|
1311
1306
|
keyName: {},
|
|
@@ -1314,14 +1309,14 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
|
|
|
1314
1309
|
setup(Be) {
|
|
1315
1310
|
return (_e, ke) => Be.value ? (openBlock(), createElementBlock("div", _hoisted_1$w, [
|
|
1316
1311
|
renderSlot(_e.$slots, "top"),
|
|
1317
|
-
createElementVNode("div", _hoisted_2$
|
|
1312
|
+
createElementVNode("div", _hoisted_2$g, [
|
|
1318
1313
|
createTextVNode(toDisplayString(Be.value) + " ", 1),
|
|
1319
1314
|
renderSlot(_e.$slots, "sufix")
|
|
1320
1315
|
]),
|
|
1321
1316
|
createElementVNode("div", _hoisted_3$f, toDisplayString(Be.keyName), 1)
|
|
1322
1317
|
])) : createCommentVNode("", !0);
|
|
1323
1318
|
}
|
|
1324
|
-
}), _hoisted_1$v = ["type", "disable"], _sfc_main$
|
|
1319
|
+
}), _hoisted_1$v = ["type", "disable"], _hoisted_2$f = { class: "group-active:[&_path]:ire-stroke-white" }, _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
1325
1320
|
__name: "Button",
|
|
1326
1321
|
props: {
|
|
1327
1322
|
title: {},
|
|
@@ -1339,16 +1334,18 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
|
|
|
1339
1334
|
type: Be.type || "button",
|
|
1340
1335
|
disable: Be.disable
|
|
1341
1336
|
}, [
|
|
1342
|
-
|
|
1337
|
+
createElementVNode("div", _hoisted_2$f, [
|
|
1338
|
+
renderSlot(_e.$slots, "icon")
|
|
1339
|
+
]),
|
|
1343
1340
|
createElementVNode("div", {
|
|
1344
|
-
class: normalizeClass(["flat-preview-button-text ire-w-full ire-text-center ire-text-base ire-transition-all group-hover:ire-text-white", {
|
|
1341
|
+
class: normalizeClass(["flat-preview-button-text ire-w-full ire-min-w-max ire-text-center ire-text-base ire-transition-all group-hover:ire-text-white group-active:ire-text-white", {
|
|
1345
1342
|
"ire-text-white": Be.active,
|
|
1346
1343
|
"ire-text-black": !Be.active
|
|
1347
1344
|
}])
|
|
1348
1345
|
}, toDisplayString(unref(tr)(Be.title)), 3)
|
|
1349
1346
|
], 10, _hoisted_1$v));
|
|
1350
1347
|
}
|
|
1351
|
-
}), _sfc_main$
|
|
1348
|
+
}), _sfc_main$y = {}, _hoisted_1$u = {
|
|
1352
1349
|
width: "24",
|
|
1353
1350
|
height: "24",
|
|
1354
1351
|
viewBox: "0 0 24 24",
|
|
@@ -1360,7 +1357,7 @@ function _sfc_render$f(Be, _e) {
|
|
|
1360
1357
|
createStaticVNode('<path d="M5.25 20.25H4.5C4.30109 20.25 4.11032 20.171 3.96967 20.0303C3.82902 19.8897 3.75 19.6989 3.75 19.5V18.75" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10.5 8.25H8.25" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M10.5 20.25H9" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M15.75 15.75V13.5" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.75 15V13.5" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14.25 20.25H15C15.1989 20.25 15.3897 20.171 15.5303 20.0303C15.671 19.8897 15.75 19.6989 15.75 19.5V18.75" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M14.25 8.25H15C15.1989 8.25 15.3897 8.32902 15.5303 8.46967C15.671 8.61032 15.75 8.80109 15.75 9V9.75" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.25 8.25H4.5C4.30109 8.25 4.11032 8.32902 3.96967 8.46967C3.82902 8.61032 3.75 8.80109 3.75 9V9.75" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path><path d="M15.75 15.75H19.5C19.6989 15.75 19.8897 15.671 20.0303 15.5303C20.171 15.3897 20.25 15.1989 20.25 15V4.5C20.25 4.30109 20.171 4.11032 20.0303 3.96967C19.8897 3.82902 19.6989 3.75 19.5 3.75H9C8.80109 3.75 8.61032 3.82902 8.46967 3.96967C8.32902 4.11032 8.25 4.30109 8.25 4.5V8.25" stroke="white" stroke-linecap="round" stroke-linejoin="round"></path>', 9)
|
|
1361
1358
|
])]);
|
|
1362
1359
|
}
|
|
1363
|
-
const FlatIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1360
|
+
const FlatIcon = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$f]]), _sfc_main$x = {}, _hoisted_1$t = {
|
|
1364
1361
|
width: "16",
|
|
1365
1362
|
height: "16",
|
|
1366
1363
|
viewBox: "0 0 20 20",
|
|
@@ -1387,7 +1384,7 @@ function _sfc_render$e(Be, _e) {
|
|
|
1387
1384
|
}, null, -1)
|
|
1388
1385
|
])]);
|
|
1389
1386
|
}
|
|
1390
|
-
const ClipBoard = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1387
|
+
const ClipBoard = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$e]]), _sfc_main$w = {}, _hoisted_1$s = {
|
|
1391
1388
|
width: "16",
|
|
1392
1389
|
height: "16",
|
|
1393
1390
|
viewBox: "0 0 21 21",
|
|
@@ -1405,7 +1402,7 @@ function _sfc_render$d(Be, _e) {
|
|
|
1405
1402
|
}, null, -1)
|
|
1406
1403
|
])]);
|
|
1407
1404
|
}
|
|
1408
|
-
const Correct = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1405
|
+
const Correct = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$d]]), _sfc_main$v = {}, _hoisted_1$r = {
|
|
1409
1406
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1410
1407
|
width: "40px",
|
|
1411
1408
|
height: "40px",
|
|
@@ -1424,7 +1421,7 @@ function _sfc_render$c(Be, _e) {
|
|
|
1424
1421
|
}, null, -1)
|
|
1425
1422
|
])]);
|
|
1426
1423
|
}
|
|
1427
|
-
const Cube3d = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1424
|
+
const Cube3d = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$c]]), t = (Be, _e = 1e4) => (Be = parseFloat(Be + "") || 0, Math.round((Be + Number.EPSILON) * _e) / _e), e = function(Be) {
|
|
1428
1425
|
if (!(Be && Be instanceof Element && Be.offsetParent)) return !1;
|
|
1429
1426
|
const _e = Be.scrollHeight > Be.clientHeight, ke = window.getComputedStyle(Be).overflowY, $e = ke.indexOf("hidden") !== -1, Ne = ke.indexOf("visible") !== -1;
|
|
1430
1427
|
return _e && !$e && !Ne;
|
|
@@ -1941,13 +1938,13 @@ class I extends g {
|
|
|
1941
1938
|
const Qe = Ze.getAttribute("style") || "";
|
|
1942
1939
|
Ze.style.setProperty("transform", "none", "important"), De && (Ze.style.width = "", Ze.style.height = ""), Ze.offsetHeight;
|
|
1943
1940
|
const ni = Ve.getBoundingClientRect();
|
|
1944
|
-
let
|
|
1945
|
-
|
|
1941
|
+
let ti = ni.width * $e, Ke = ni.height * $e, Xe = ti, Ge = Ke;
|
|
1942
|
+
ti = Math.min(ti, qe), Ke = Math.min(Ke, Ue), De ? { width: ti, height: Ke } = ((oi, ri, si, ai) => {
|
|
1946
1943
|
const li = si / oi, ci = ai / ri, di = Math.min(li, ci);
|
|
1947
1944
|
return { width: oi *= di, height: ri *= di };
|
|
1948
|
-
})(qe, Ue,
|
|
1949
|
-
let
|
|
1950
|
-
this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: ni.top - Le.top +
|
|
1945
|
+
})(qe, Ue, ti, Ke) : (ti = Math.min(ti, qe), Ke = Math.min(Ke, Ue));
|
|
1946
|
+
let ei = 0.5 * (Ge - Ke), ii = 0.5 * (Xe - ti);
|
|
1947
|
+
this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: ni.top - Le.top + ei, bottom: Le.bottom - ni.bottom + ei, left: ni.left - Le.left + ii, right: Le.right - ni.right + ii, fitWidth: ti, fitHeight: Ke, width: ti, height: Ke, fullWidth: qe, fullHeight: Ue }), Ze.style.cssText = Qe, De && (Ze.style.width = `${ti}px`, Ze.style.height = `${Ke}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();
|
|
1951
1948
|
}
|
|
1952
1949
|
calculateBounds() {
|
|
1953
1950
|
const { contentWidth: _e, contentHeight: ke } = this.calculateContentDim(this.target), { targetScale: $e, lockedAxis: Ne } = this, { fitWidth: Ve, fitHeight: De } = this.contentRect;
|
|
@@ -2485,7 +2482,7 @@ class Q extends g {
|
|
|
2485
2482
|
if (Ne && He && Ve) {
|
|
2486
2483
|
let Je = getComputedStyle(Ve), Ze = "padding", Qe = ke ? "Right" : "Bottom", ni = parseFloat(Je[Ze + (ke ? "Left" : "Top")]);
|
|
2487
2484
|
We -= ni, De += ni, De += parseFloat(Je[Ze + Qe]);
|
|
2488
|
-
for (const
|
|
2485
|
+
for (const ti of Ae) ti.el && (t(ti.pos) < t(De) && t(ti.pos + ti.dim + ti.gap) < t(We) && t(We) > t(Le - De) && (ti.el.style[_e] = `${t(Fe + He, 1e3)}px`), t(ti.pos + ti.gap) >= t(Le - De) && t(ti.pos) > t(We + De) && t(We) < t(De) && (ti.el.style[_e] = `-${t(He, 1e3)}px`));
|
|
2489
2486
|
}
|
|
2490
2487
|
let qe, Ue, Ye = [...this.inTransition];
|
|
2491
2488
|
if (Ye.length > 1 && (qe = Ie[Ye[0]], Ue = Ie[Ye[1]]), qe && Ue) {
|
|
@@ -4374,7 +4371,7 @@ class Oe extends g {
|
|
|
4374
4371
|
}
|
|
4375
4372
|
}
|
|
4376
4373
|
Object.defineProperty(Oe, "version", { enumerable: !0, configurable: !0, writable: !0, value: "5.0.36" }), Object.defineProperty(Oe, "defaults", { enumerable: !0, configurable: !0, writable: !0, value: at }), Object.defineProperty(Oe, "Plugins", { enumerable: !0, configurable: !0, writable: !0, value: te }), Object.defineProperty(Oe, "openers", { enumerable: !0, configurable: !0, writable: !0, value: /* @__PURE__ */ new Map() });
|
|
4377
|
-
const _sfc_main$
|
|
4374
|
+
const _sfc_main$u = {
|
|
4378
4375
|
props: {
|
|
4379
4376
|
options: Object
|
|
4380
4377
|
},
|
|
@@ -4399,7 +4396,7 @@ function _sfc_render$b(Be, _e, ke, $e, Ne, Ve) {
|
|
|
4399
4396
|
renderSlot(Be.$slots, "default")
|
|
4400
4397
|
], 512);
|
|
4401
4398
|
}
|
|
4402
|
-
const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4399
|
+
const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$b]]), paramsList = [
|
|
4403
4400
|
"eventsPrefix",
|
|
4404
4401
|
"injectStyles",
|
|
4405
4402
|
"injectStylesUrls",
|
|
@@ -4565,19 +4562,19 @@ function updateSwiper(Be) {
|
|
|
4565
4562
|
virtual: He,
|
|
4566
4563
|
thumbs: We
|
|
4567
4564
|
} = _e;
|
|
4568
|
-
let qe, Ue, Ye, Je, Ze, Qe, ni,
|
|
4565
|
+
let qe, Ue, Ye, Je, Ze, Qe, ni, ti;
|
|
4569
4566
|
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 && (Je = !0), Ne.includes("navigation") && $e.navigation && ($e.navigation.prevEl || De) && ($e.navigation.nextEl || Ve) && (Ae.navigation || Ae.navigation === !1) && je && !je.prevEl && !je.nextEl && (Ze = !0);
|
|
4570
4567
|
const Ke = (Xe) => {
|
|
4571
4568
|
_e[Xe] && (_e[Xe].destroy(), Xe === "navigation" ? (_e.isElement && (_e[Xe].prevEl.remove(), _e[Xe].nextEl.remove()), Ae[Xe].prevEl = void 0, Ae[Xe].nextEl = void 0, _e[Xe].prevEl = void 0, _e[Xe].nextEl = void 0) : (_e.isElement && _e[Xe].el.remove(), Ae[Xe].el = void 0, _e[Xe].el = void 0));
|
|
4572
4569
|
};
|
|
4573
|
-
Ne.includes("loop") && _e.isElement && (Ae.loop && !$e.loop ? Qe = !0 : !Ae.loop && $e.loop ? ni = !0 :
|
|
4570
|
+
Ne.includes("loop") && _e.isElement && (Ae.loop && !$e.loop ? Qe = !0 : !Ae.loop && $e.loop ? ni = !0 : ti = !0), Ie.forEach((Xe) => {
|
|
4574
4571
|
if (isObject(Ae[Xe]) && isObject($e[Xe]))
|
|
4575
4572
|
Object.assign(Ae[Xe], $e[Xe]), (Xe === "navigation" || Xe === "pagination" || Xe === "scrollbar") && "enabled" in $e[Xe] && !$e[Xe].enabled && Ke(Xe);
|
|
4576
4573
|
else {
|
|
4577
4574
|
const Ge = $e[Xe];
|
|
4578
4575
|
(Ge === !0 || Ge === !1) && (Xe === "navigation" || Xe === "pagination" || Xe === "scrollbar") ? Ge === !1 && Ke(Xe) : Ae[Xe] = $e[Xe];
|
|
4579
4576
|
}
|
|
4580
|
-
}), 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 && (
|
|
4577
|
+
}), 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 && (ti = !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()), Je && (_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()), Ze && (_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), (Qe || ti) && _e.loopDestroy(), (ni || ti) && _e.loopCreate(), _e.update();
|
|
4581
4578
|
}
|
|
4582
4579
|
function getParams(Be, _e) {
|
|
4583
4580
|
Be === void 0 && (Be = {});
|
|
@@ -5167,8 +5164,8 @@ const Swiper = {
|
|
|
5167
5164
|
getChildren(ke, Fe, He), Re.value = !0;
|
|
5168
5165
|
};
|
|
5169
5166
|
Je.onAny = function(Ke) {
|
|
5170
|
-
for (var Xe = arguments.length, Ge = new Array(Xe > 1 ? Xe - 1 : 0),
|
|
5171
|
-
Ge[
|
|
5167
|
+
for (var Xe = arguments.length, Ge = new Array(Xe > 1 ? Xe - 1 : 0), ei = 1; ei < Xe; ei++)
|
|
5168
|
+
Ge[ei - 1] = arguments[ei];
|
|
5172
5169
|
$e(Ke, ...Ge);
|
|
5173
5170
|
}, Object.assign(Je.on, {
|
|
5174
5171
|
_beforeBreakpoint: Qe,
|
|
@@ -5222,7 +5219,7 @@ const Swiper = {
|
|
|
5222
5219
|
}), onBeforeUnmount(() => {
|
|
5223
5220
|
ze.value && !ze.value.destroyed && ze.value.destroy(!0, !1);
|
|
5224
5221
|
});
|
|
5225
|
-
function
|
|
5222
|
+
function ti(Ke) {
|
|
5226
5223
|
return Je.virtual ? renderVirtual(ze, Ke, Le.value) : (Ke.forEach((Xe, Ge) => {
|
|
5227
5224
|
Xe.props || (Xe.props = {}), Xe.props.swiperRef = ze, Xe.props.swiperSlideIndex = Ge;
|
|
5228
5225
|
}), Ke);
|
|
@@ -5237,7 +5234,7 @@ const Swiper = {
|
|
|
5237
5234
|
class: uniqueClasses(De.value)
|
|
5238
5235
|
}, [Xe["container-start"], h$1(Ve, {
|
|
5239
5236
|
class: wrapperClass(Je.wrapperClass)
|
|
5240
|
-
}, [Xe["wrapper-start"],
|
|
5237
|
+
}, [Xe["wrapper-start"], ti(Ke), Xe["wrapper-end"]]), needsNavigation(Be) && [h$1("div", {
|
|
5241
5238
|
ref: qe,
|
|
5242
5239
|
class: "swiper-button-prev"
|
|
5243
5240
|
}), h$1("div", {
|
|
@@ -5457,7 +5454,7 @@ function Navigation(Be) {
|
|
|
5457
5454
|
destroy: ze
|
|
5458
5455
|
});
|
|
5459
5456
|
}
|
|
5460
|
-
const _sfc_main$
|
|
5457
|
+
const _sfc_main$t = {}, _hoisted_1$p = {
|
|
5461
5458
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5462
5459
|
viewBox: "0 0 256 256"
|
|
5463
5460
|
};
|
|
@@ -5466,13 +5463,27 @@ function _sfc_render$a(Be, _e) {
|
|
|
5466
5463
|
createStaticVNode('<g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><rect class="cls-1" width="256" height="256" rx="128"></rect><path class="cls-2" d="M138.26,42.2C116.44,52.3,113,54,112.25,55.27s-.8,3.9-.8,69.36c0,60.7-.08,68.19-.62,68.65-1,.8-7.54-.62-8.38-1.84-.55-.75-.63-8.63-.63-58.81,0-52.1-.08-58-.67-58.93a4.29,4.29,0,0,0-4.56-1.51c-3.06.92-29,13.53-29.87,14.54l-.92,1v41c0,40.59,0,41-.84,41.47a1.67,1.67,0,0,1-1.59,0c-1.21-.63-7.62-7.5-11.06-11.81s-4.27-4.82-6.53-4.19c-.71.21-4.9,3.14-9.3,6.53s-8.34,6.08-8.71,6c-2.31-.21-3.44.67-3.44,2.68,0,1.68.38,2.27,1.68,2.73a2.76,2.76,0,0,0,3.81-2.06c.46-1.42,1.42-2.34,8.25-7.53a96.6,96.6,0,0,1,8.42-6.08c.92-.25,1.13,0,4.15,3.81,3.93,5,11.18,12.23,12.56,12.49a4.82,4.82,0,0,0,2.39-.3c2.68-1.13,2.51,1.93,2.72-43.35l.21-41.3L83,81.16c7.92-3.77,14.66-6.83,15-6.83a2.05,2.05,0,0,1,1.13.67c.58.59.67,6.49.67,58.6,0,41.59.12,58.26.46,59,.58,1.34,1.46,1.76,5.78,2.81,3.93,1,5.36.84,6.78-.67l1-1.09.12-68.36c.09-64.42.13-68.44.84-69,.55-.5,25.93-12.6,28.48-13.61a1.67,1.67,0,0,1,1.34.5c.84.76.84,1.76.84,75.06,0,82-.21,75.77,2.6,76.74,1.3.46,4.19,0,5.82-.84,2.14-1.13,2,.42,2-47.16,0-24.38.17-44.53.34-44.78.38-.54,28-9.8,29.28-9.8a1.83,1.83,0,0,1,1.38.8c.29.54.42,13.52.42,39.12v38.28l1,1.09a4,4,0,0,0,4.61.92c1.55-.63,7.25-6.53,11.69-12.06,1.8-2.22,3.52-4.07,3.85-4.07,1,0,17.34,12.61,17.34,13.41,0,2.39,3.56,3.6,5.11,1.71a2.85,2.85,0,0,0-2.43-4.77c-1.46,0-2.39-.5-9.8-6.12-4.52-3.39-8.71-6.32-9.34-6.49-1.84-.46-3.43.63-6.41,4.36-4.1,5.19-8.46,9.88-10.34,11.18L191,170.83l-.79-1c-.76-.92-.8-2.39-.8-39.29V92.26L188.15,91a3.78,3.78,0,0,0-2.39-1.21c-1.09,0-26.47,8.12-29.61,9.5-3,1.3-2.81-1.8-2.81,47.42s.21,45.36-2.76,45.95c-1.14.21-1.68.08-2.18-.42-.67-.63-.71-6.37-.8-74.93-.08-58.77-.21-74.44-.63-75.23A5.74,5.74,0,0,0,143.41,40C143.25,40,140.9,41,138.26,42.2Z"></path><path class="cls-2" d="M127.62,71.48a3,3,0,0,0,.17,3.9c.84.75.84,1.29.84,59.35s0,58.64-.84,59.68c-1.72,2.22-.59,4.74,2.09,4.74s3.82-2.52,2.1-4.74c-.84-1-.84-1.67-.84-59.56s0-58.51.84-59.56a4,4,0,0,0,.84-2.05C132.82,70.81,129,69.51,127.62,71.48Z"></path><path class="cls-2" d="M83,99.75c-2.13.8-2.85,3.52-1.25,5,.83.75.83,1.29.83,40.5s0,39.71-.83,40.54a3.38,3.38,0,0,0-.84,2.1,2.8,2.8,0,0,0,5,1.84c1.09-1.42,1.13-2.68,0-3.85-.83-.88-.83-1.47-.83-40.55s0-39.62.83-40.67a4,4,0,0,0,.84-2C86.74,100.84,84.56,99.17,83,99.75Z"></path><path class="cls-2" d="M169.13,121.16a3.21,3.21,0,0,0,.13,4.14c.83.72.83,1.26.83,26.94s0,26.22-.83,26.93c-1.6,1.38-.8,4.81,1.17,4.94,2.34.17,3.27-.38,3.64-2.22a2.61,2.61,0,0,0-.58-2.47c-.88-1.17-.88-1.42-.88-27.23,0-25.38,0-26,.84-27,1-1.39,1-2.27,0-3.65A2.9,2.9,0,0,0,169.13,121.16Z"></path></g></g>', 1)
|
|
5467
5464
|
])]);
|
|
5468
5465
|
}
|
|
5469
|
-
const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
5470
|
-
|
|
5466
|
+
const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]]), _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
5467
|
+
__name: "Badge",
|
|
5468
|
+
props: {
|
|
5469
|
+
title: {},
|
|
5470
|
+
badgeStyle: {}
|
|
5471
|
+
},
|
|
5472
|
+
setup(Be) {
|
|
5473
|
+
return (_e, ke) => (openBlock(), createElementBlock("span", {
|
|
5474
|
+
class: normalizeClass(["inset-ring ire-inline-flex ire-items-center ire-rounded-md ire-px-2 ire-py-1 ire-text-xs ire-font-medium ire-uppercase", {
|
|
5475
|
+
"inset-ring-yellow-400/20 ire-bg-yellow-400/10 ire-text-yellow-500": Be.badgeStyle === "warning",
|
|
5476
|
+
"inset-ring-red-400/20 ire-bg-red-400/10 ire-text-red-400": Be.badgeStyle === "danger"
|
|
5477
|
+
}])
|
|
5478
|
+
}, toDisplayString(Be.title), 3));
|
|
5479
|
+
}
|
|
5480
|
+
}), _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-w-fit ire-p-4" }, _hoisted_3$e = { class: "ire-relative ire-grid ire-overflow-hidden ire-p-4 lg:ire-p-0" }, _hoisted_4$a = ["data-fancybox", "href"], _hoisted_5$7 = ["src"], _hoisted_6$5 = { class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full" }, _hoisted_7$4 = { class: "flex ire-flex-wrap ire-items-center ire-justify-center ire-gap-4 ire-p-4 lg:ire-gap-8" }, _hoisted_8$3 = {
|
|
5481
|
+
key: 0,
|
|
5471
5482
|
class: "ire-flex ire-items-center ire-gap-3"
|
|
5472
|
-
},
|
|
5483
|
+
}, _hoisted_9$3 = {
|
|
5473
5484
|
key: 0,
|
|
5474
5485
|
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]"
|
|
5475
|
-
},
|
|
5486
|
+
}, _hoisted_10$3 = {
|
|
5476
5487
|
href: "https://www.ireplugin.com/",
|
|
5477
5488
|
target: "_blank"
|
|
5478
5489
|
}, _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
@@ -5481,124 +5492,167 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5481
5492
|
flat: {}
|
|
5482
5493
|
},
|
|
5483
5494
|
setup(Be) {
|
|
5484
|
-
const _e = Be, ke = useGlobalStore(), { getMetaValue: $e } = ke, { irePlaginWp: Ne } = storeToRefs(ke)
|
|
5485
|
-
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
return $e("shareable_link") === "true" && ((Fe = Ne.value) == null ? void 0 : Fe.is_gold);
|
|
5495
|
+
const _e = Be, ke = useGlobalStore(), { getMetaValue: $e } = ke, { irePlaginWp: Ne } = storeToRefs(ke);
|
|
5496
|
+
inject("fromListView");
|
|
5497
|
+
const Ve = ref(), De = ref(!1), Le = ref(0), Re = ref(!1), Ie = ref(0), Ae = computed$1(() => {
|
|
5498
|
+
var We, qe, Ue, Ye, Je, Ze;
|
|
5499
|
+
return !!((Ue = (qe = (We = _e.flat) == null ? void 0 : We.type) == null ? void 0 : qe.image_2d) != null && Ue.length && ((Ze = (Je = (Ye = _e.flat) == null ? void 0 : Ye.type) == null ? void 0 : Je.image_3d) != null && Ze.length));
|
|
5490
5500
|
}), ze = computed$1(() => {
|
|
5491
|
-
var
|
|
5492
|
-
return (
|
|
5493
|
-
}), je =
|
|
5494
|
-
|
|
5501
|
+
var We;
|
|
5502
|
+
return $e("shareable_link") === "true" && ((We = Ne.value) == null ? void 0 : We.is_gold);
|
|
5503
|
+
}), je = computed$1(() => {
|
|
5504
|
+
var qe, Ue, Ye, Je, Ze, Qe;
|
|
5505
|
+
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 && ((Ze = (Je = _e.flat.type) == null ? void 0 : Je.image_3d) != null && Ze.length) ? (Qe = _e.flat.type) == null ? void 0 : Qe.image_3d : []).slice(0, 6);
|
|
5506
|
+
}), Fe = async () => {
|
|
5507
|
+
Re.value || !ze.value || (await copyToClipboard(window.location.href), Re.value = !0, setTimeout(() => {
|
|
5495
5508
|
Re.value = !1;
|
|
5496
5509
|
}, 2e3));
|
|
5510
|
+
}, He = (We) => {
|
|
5511
|
+
Ve.value = We;
|
|
5497
5512
|
};
|
|
5498
5513
|
return watch(
|
|
5499
5514
|
() => De.value,
|
|
5500
5515
|
() => {
|
|
5501
|
-
Le.value = 0
|
|
5516
|
+
Le.value = 0, Ie.value++, setTimeout(() => {
|
|
5517
|
+
var We, qe, Ue, Ye;
|
|
5518
|
+
(qe = (We = Ve.value) == null ? void 0 : We.navigation) == null || qe.init(), (Ye = (Ue = Ve.value) == null ? void 0 : Ue.navigation) == null || Ye.update();
|
|
5519
|
+
}, 400);
|
|
5502
5520
|
}
|
|
5503
5521
|
), onMounted(() => {
|
|
5504
|
-
var
|
|
5505
|
-
(
|
|
5506
|
-
}), (
|
|
5522
|
+
var We, qe, Ue;
|
|
5523
|
+
(Ue = Object.keys(((qe = (We = _e.flat) == null ? void 0 : We.type) == null ? void 0 : qe.image_3d) || {})) != null && Ue.length || (De.value = !0);
|
|
5524
|
+
}), (We, qe) => (openBlock(), createBlock(FancyBoxComp, { options: {} }, {
|
|
5507
5525
|
default: withCtx(() => {
|
|
5508
|
-
var
|
|
5526
|
+
var Ue, Ye, Je, Ze, Qe, ni, ti, Ke, Xe;
|
|
5509
5527
|
return [
|
|
5510
5528
|
createElementVNode("div", _hoisted_1$o, [
|
|
5511
5529
|
createElementVNode("div", _hoisted_2$e, [
|
|
5512
|
-
|
|
5530
|
+
Be.flat.conf ? (openBlock(), createBlock(_sfc_main$s, {
|
|
5513
5531
|
key: 0,
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
}])
|
|
5518
|
-
}, toDisplayString(unref(tr)(Be.flat.conf)), 3)) : createCommentVNode("", !0)
|
|
5532
|
+
title: unref(tr)(Be.flat.conf),
|
|
5533
|
+
"badge-style": Be.flat.conf === "reserved" ? "warning" : "danger"
|
|
5534
|
+
}, null, 8, ["title", "badge-style"])) : createCommentVNode("", !0)
|
|
5519
5535
|
]),
|
|
5520
5536
|
createElementVNode("div", _hoisted_3$e, [
|
|
5521
|
-
(
|
|
5522
|
-
|
|
5523
|
-
"
|
|
5524
|
-
"space-between": 50,
|
|
5525
|
-
navigation: {
|
|
5526
|
-
nextEl: ".ire-swiper-button-next",
|
|
5527
|
-
prevEl: ".ire-swiper-button-prev",
|
|
5528
|
-
disabledClass: "swiper-button-disabled"
|
|
5529
|
-
},
|
|
5530
|
-
modules: [unref(Navigation)],
|
|
5531
|
-
class: "ire-w-full"
|
|
5537
|
+
createVNode(Transition, {
|
|
5538
|
+
name: "ire-scale",
|
|
5539
|
+
mode: "out-in"
|
|
5532
5540
|
}, {
|
|
5533
|
-
default: withCtx(() =>
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
},
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5541
|
+
default: withCtx(() => {
|
|
5542
|
+
var Ge;
|
|
5543
|
+
return [
|
|
5544
|
+
(openBlock(), createBlock(unref(Swiper), {
|
|
5545
|
+
key: (Ge = je.value[0]) == null ? void 0 : Ge.url,
|
|
5546
|
+
"slides-per-view": 1,
|
|
5547
|
+
"space-between": 50,
|
|
5548
|
+
navigation: {
|
|
5549
|
+
nextEl: ".ire-swiper-button-next",
|
|
5550
|
+
prevEl: ".ire-swiper-button-prev",
|
|
5551
|
+
disabledClass: "swiper-button-disabled"
|
|
5552
|
+
},
|
|
5553
|
+
modules: [unref(Navigation)],
|
|
5554
|
+
class: "ire-w-full",
|
|
5555
|
+
onSwiper: He
|
|
5556
|
+
}, {
|
|
5557
|
+
default: withCtx(() => [
|
|
5558
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(je.value, (ei) => (openBlock(), createBlock(unref(SwiperSlide), {
|
|
5559
|
+
key: ei == null ? void 0 : ei.url,
|
|
5560
|
+
class: "ire-flex !ire-w-full ire-justify-center ire-bg-gray-50 ire-text-center"
|
|
5561
|
+
}, {
|
|
5562
|
+
default: withCtx(() => [
|
|
5563
|
+
(openBlock(), createElementBlock("a", {
|
|
5564
|
+
key: ei == null ? void 0 : ei.url,
|
|
5565
|
+
"data-fancybox": De.value ? "gallery-2d" : "gallery-3d",
|
|
5566
|
+
href: ei == null ? void 0 : ei.url,
|
|
5567
|
+
class: "irep-flat-preview__left-3d ire-flex ire-w-fit ire-justify-center ire-text-center"
|
|
5568
|
+
}, [
|
|
5569
|
+
(openBlock(), createElementBlock("img", {
|
|
5570
|
+
key: ei == null ? void 0 : ei.url,
|
|
5571
|
+
src: ei == null ? void 0 : ei.url,
|
|
5572
|
+
class: "ire-preview-img"
|
|
5573
|
+
}, null, 8, _hoisted_5$7))
|
|
5574
|
+
], 8, _hoisted_4$a))
|
|
5575
|
+
]),
|
|
5576
|
+
_: 2
|
|
5577
|
+
}, 1024))), 128))
|
|
5578
|
+
]),
|
|
5579
|
+
_: 1
|
|
5580
|
+
}, 8, ["modules"]))
|
|
5581
|
+
];
|
|
5582
|
+
}),
|
|
5555
5583
|
_: 1
|
|
5556
|
-
}
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5584
|
+
}),
|
|
5585
|
+
withDirectives(createElementVNode("div", _hoisted_6$5, [
|
|
5586
|
+
createVNode(Transition, {
|
|
5587
|
+
name: "ire-scale",
|
|
5588
|
+
mode: "out-in"
|
|
5589
|
+
}, {
|
|
5590
|
+
default: withCtx(() => [
|
|
5591
|
+
(openBlock(), createElementBlock("div", {
|
|
5592
|
+
key: Ie.value,
|
|
5593
|
+
class: "ire-swiper-button-prev ire-group ire-absolute ire-left-0 ire-top-0 ire-z-10 ire-hidden ire-h-full ire-cursor-pointer ire-items-center ire-justify-center ire-transition-all md:ire-flex"
|
|
5594
|
+
}, [
|
|
5595
|
+
createVNode(ArrowRight, { class: "ire-m-2 ire-size-10 ire-rotate-180 ire-rounded-lg ire-bg-[var(--primary-color)] ire-transition-all group-hover:ire-bg-[color-mix(in_srgb,var(--primary-color),white_20%)] [&_path]:ire-fill-white" })
|
|
5596
|
+
]))
|
|
5597
|
+
]),
|
|
5598
|
+
_: 1
|
|
5599
|
+
}),
|
|
5600
|
+
createVNode(Transition, {
|
|
5601
|
+
name: "ire-scale",
|
|
5602
|
+
mode: "out-in"
|
|
5603
|
+
}, {
|
|
5604
|
+
default: withCtx(() => [
|
|
5605
|
+
(openBlock(), createElementBlock("div", {
|
|
5606
|
+
key: Ie.value,
|
|
5607
|
+
class: "ire-swiper-button-next ire-group ire-absolute ire-right-0 ire-top-0 ire-z-10 ire-hidden ire-h-full ire-cursor-pointer ire-items-center ire-justify-center ire-transition-all md:ire-flex"
|
|
5608
|
+
}, [
|
|
5609
|
+
createVNode(ArrowRight, { class: "ire-m-2 ire-size-10 ire-rounded-lg ire-bg-[var(--primary-color)] ire-transition-all group-hover:ire-bg-[color-mix(in_srgb,var(--primary-color),white_20%)] [&_path]:ire-fill-white" })
|
|
5610
|
+
]))
|
|
5611
|
+
]),
|
|
5612
|
+
_: 1
|
|
5613
|
+
})
|
|
5614
|
+
], 512), [
|
|
5615
|
+
[vShow, je.value.length > 1]
|
|
5616
|
+
])
|
|
5565
5617
|
]),
|
|
5566
|
-
createElementVNode("div",
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5618
|
+
createElementVNode("div", _hoisted_7$4, [
|
|
5619
|
+
createElementVNode("div", {
|
|
5620
|
+
class: "ire-cursor-pointer ire-rounded-md ire-p-2 ire-transition-all hover:ire-bg-gray-200 [&_svg]:ire-size-5",
|
|
5621
|
+
onClick: Fe
|
|
5622
|
+
}, [
|
|
5623
|
+
createVNode(Transition, {
|
|
5624
|
+
name: "ire-scale",
|
|
5625
|
+
mode: "out-in"
|
|
5626
|
+
}, {
|
|
5627
|
+
default: withCtx(() => [
|
|
5628
|
+
Re.value ? (openBlock(), createBlock(Correct, { key: 0 })) : (openBlock(), createBlock(ClipBoard, { key: 1 }))
|
|
5629
|
+
]),
|
|
5630
|
+
_: 1
|
|
5631
|
+
})
|
|
5632
|
+
]),
|
|
5633
|
+
Ae.value ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
|
|
5634
|
+
(Ze = (Je = (Ye = (Ue = Be.flat) == null ? void 0 : Ue.type) == null ? void 0 : Ye.image_3d) == null ? void 0 : Je[0]) != null && Ze.url ? (openBlock(), createBlock(_sfc_main$z, {
|
|
5581
5635
|
key: 0,
|
|
5582
5636
|
title: unref(tr)("3d plan"),
|
|
5583
5637
|
active: !De.value,
|
|
5584
|
-
onClick:
|
|
5638
|
+
onClick: qe[0] || (qe[0] = (Ge) => De.value = !1)
|
|
5585
5639
|
}, {
|
|
5586
5640
|
icon: withCtx(() => [
|
|
5587
5641
|
createVNode(Cube3d, {
|
|
5588
|
-
class: normalizeClass(["ire-size-
|
|
5642
|
+
class: normalizeClass(["ire-size-5 group-active:ire-stroke-white [&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !De.value }])
|
|
5589
5643
|
}, null, 8, ["class"])
|
|
5590
5644
|
]),
|
|
5591
5645
|
_: 1
|
|
5592
5646
|
}, 8, ["title", "active"])) : createCommentVNode("", !0),
|
|
5593
|
-
(Ke = (
|
|
5647
|
+
(Ke = (ti = (ni = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : ni.image_2d) == null ? void 0 : ti[0]) != null && Ke.url ? (openBlock(), createBlock(_sfc_main$z, {
|
|
5594
5648
|
key: 1,
|
|
5595
5649
|
title: unref(tr)("2d plan"),
|
|
5596
5650
|
active: De.value,
|
|
5597
|
-
onClick:
|
|
5651
|
+
onClick: qe[1] || (qe[1] = (Ge) => De.value = !0)
|
|
5598
5652
|
}, {
|
|
5599
5653
|
icon: withCtx(() => [
|
|
5600
5654
|
createVNode(FlatIcon, {
|
|
5601
|
-
class: normalizeClass(["ire-size-
|
|
5655
|
+
class: normalizeClass(["ire-size-5 group-active:ire-stroke-white [&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": De.value }])
|
|
5602
5656
|
}, null, 8, ["class"])
|
|
5603
5657
|
]),
|
|
5604
5658
|
_: 1
|
|
@@ -5606,8 +5660,8 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5606
5660
|
])) : createCommentVNode("", !0)
|
|
5607
5661
|
])
|
|
5608
5662
|
]),
|
|
5609
|
-
unref($e)("remove_watermark") !== "true" || !((Xe = unref(Ne)) != null && Xe.is_premium) ? (openBlock(), createElementBlock("div",
|
|
5610
|
-
createElementVNode("a",
|
|
5663
|
+
unref($e)("remove_watermark") !== "true" || !((Xe = unref(Ne)) != null && Xe.is_premium) ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
|
|
5664
|
+
createElementVNode("a", _hoisted_10$3, [
|
|
5611
5665
|
createVNode(Logo, { class: "ire-size-12" })
|
|
5612
5666
|
])
|
|
5613
5667
|
])) : createCommentVNode("", !0)
|
|
@@ -5616,7 +5670,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5616
5670
|
_: 1
|
|
5617
5671
|
}));
|
|
5618
5672
|
}
|
|
5619
|
-
}), _hoisted_1$n = { class: "ire-flex ire-w-full ire-flex-col ire-items-start ire-text-black" }, _hoisted_2$d = { class: "ire-mb-1" }, _hoisted_3$d = { class: "relative ire-w-full" }, _hoisted_4$9 = ["placeholder", "type", "required"], _hoisted_5$6 = { class: "ire-absolute ire-right-3 ire-top-1/2 -ire-translate-y-1/2" }, _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
5673
|
+
}), _hoisted_1$n = { class: "ire-flex ire-w-full ire-flex-col ire-items-start ire-text-black" }, _hoisted_2$d = { class: "ire-mb-1 ire-text-base" }, _hoisted_3$d = { class: "relative ire-w-full" }, _hoisted_4$9 = ["placeholder", "type", "required"], _hoisted_5$6 = { class: "ire-absolute ire-right-3 ire-top-1/2 -ire-translate-y-1/2" }, _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
5620
5674
|
__name: "Input",
|
|
5621
5675
|
props: /* @__PURE__ */ mergeModels({
|
|
5622
5676
|
label: {},
|
|
@@ -5638,7 +5692,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5638
5692
|
placeholder: Be.placeholder,
|
|
5639
5693
|
type: Be.type || "text",
|
|
5640
5694
|
required: Be.required,
|
|
5641
|
-
class: "no-spinner ire-w-full ire-rounded-md !ire-border-none !ire-p-2 !ire-outline-none !ire-ring-[1px] !ire-ring-gray-200 ire-transition-all focus:!ire-ring-2 focus:!ire-ring-black"
|
|
5695
|
+
class: "no-spinner ire-w-full ire-rounded-md !ire-border-none !ire-p-2 ire-text-base !ire-outline-none !ire-ring-[1px] !ire-ring-gray-200 ire-transition-all focus:!ire-ring-2 focus:!ire-ring-black"
|
|
5642
5696
|
}, null, 8, _hoisted_4$9), [
|
|
5643
5697
|
[vModelDynamic, _e.value]
|
|
5644
5698
|
]),
|
|
@@ -5665,7 +5719,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5665
5719
|
}, _hoisted_2$c = {
|
|
5666
5720
|
key: 1,
|
|
5667
5721
|
class: "irep-callback-form ire-flex ire-flex-col ire-gap-4"
|
|
5668
|
-
}, _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$5 = { class: "ire-mb-1" }, _hoisted_6$4 = { class: "irep-callback-form__buttons flex ire-mt-4 ire-flex-col ire-gap-3 md:ire-flex-row" }, _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
5722
|
+
}, _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$5 = { class: "ire-mb-1 ire-text-base" }, _hoisted_6$4 = { class: "irep-callback-form__buttons flex ire-mt-4 ire-flex-col ire-gap-3 md:ire-flex-row" }, _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
5669
5723
|
__name: "ReservationForm",
|
|
5670
5724
|
props: {
|
|
5671
5725
|
flat: {}
|
|
@@ -5741,7 +5795,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5741
5795
|
withDirectives(createElementVNode("textarea", {
|
|
5742
5796
|
"onUpdate:modelValue": je[3] || (je[3] = (Fe) => Ve.value.comment = Fe),
|
|
5743
5797
|
placeholder: "...",
|
|
5744
|
-
class: "ire-w-full ire-rounded-md !ire-border-none !ire-p-2 !ire-outline-none !ire-ring-[1px] !ire-ring-gray-200 ire-transition-all focus:!ire-ring-2 focus:!ire-ring-black"
|
|
5798
|
+
class: "ire-w-full ire-rounded-md !ire-border-none !ire-p-2 ire-text-base !ire-outline-none !ire-ring-[1px] !ire-ring-gray-200 ire-transition-all focus:!ire-ring-2 focus:!ire-ring-black"
|
|
5745
5799
|
}, null, 512), [
|
|
5746
5800
|
[vModelText, Ve.value.comment]
|
|
5747
5801
|
])
|
|
@@ -5751,12 +5805,12 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5751
5805
|
_: 1
|
|
5752
5806
|
}),
|
|
5753
5807
|
createElementVNode("div", _hoisted_6$4, [
|
|
5754
|
-
createVNode(_sfc_main$
|
|
5808
|
+
createVNode(_sfc_main$z, {
|
|
5755
5809
|
type: "button",
|
|
5756
5810
|
title: "back",
|
|
5757
5811
|
onClick: je[4] || (je[4] = (Fe) => ke("hideForm"))
|
|
5758
5812
|
}),
|
|
5759
|
-
createVNode(_sfc_main$
|
|
5813
|
+
createVNode(_sfc_main$z, {
|
|
5760
5814
|
type: "submit",
|
|
5761
5815
|
title: "Submit",
|
|
5762
5816
|
active: "",
|
|
@@ -5768,7 +5822,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5768
5822
|
}), _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-6" }, _hoisted_3$b = {
|
|
5769
5823
|
key: 1,
|
|
5770
5824
|
class: "flat-preview__type ire-text-center"
|
|
5771
|
-
}, _hoisted_4$7 = { class: "flat-preview__type-title !ire-text-lg ire-font-medium ire-text-black" }, _hoisted_5$4 = { class: "flat-preview__type-teaser ire-mt-1 ire-text-gray-700" }, _hoisted_6$3 = { class: "ire-mt-4 ire-flex ire-w-full ire-flex-wrap ire-items-center ire-justify-center ire-gap-x-16 ire-gap-y-8" }, _hoisted_7$3 = { class: "flat-preview-price-through-value ire-text-base ire-line-through ire-decoration-black/50" }, _hoisted_8$2 = { class: "ire-flex ire-flex-col ire-text-center lg:ire-flex-row" }, _hoisted_9$2 = ["href"], _hoisted_10$2 = {
|
|
5825
|
+
}, _hoisted_4$7 = { class: "flat-preview__type-title !ire-text-lg ire-font-medium ire-text-black" }, _hoisted_5$4 = { class: "flat-preview__type-teaser ire-mt-1 ire-text-base ire-text-gray-700" }, _hoisted_6$3 = { class: "ire-mt-4 ire-flex ire-w-full ire-flex-wrap ire-items-center ire-justify-center ire-gap-x-16 ire-gap-y-8" }, _hoisted_7$3 = { class: "flat-preview-price-through-value ire-text-base ire-line-through ire-decoration-black/50" }, _hoisted_8$2 = { class: "ire-flex ire-flex-col ire-text-center lg:ire-flex-row" }, _hoisted_9$2 = ["href"], _hoisted_10$2 = {
|
|
5772
5826
|
key: 1,
|
|
5773
5827
|
class: "ire-w-full ire-p-2"
|
|
5774
5828
|
}, _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
@@ -5812,10 +5866,10 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5812
5866
|
setQuery(Fe, "");
|
|
5813
5867
|
});
|
|
5814
5868
|
}), (je, Fe) => {
|
|
5815
|
-
var He, We, qe, Ue, Ye, Je, Ze, Qe, ni,
|
|
5869
|
+
var He, We, qe, Ue, Ye, Je, Ze, Qe, ni, ti, Ke, Xe, Ge, ei, ii, oi, ri, si, ai, li, ci, di, hi, fi, pi, mi, vi, gi, bi, yi, _i, xi, wi, ki, Si, Ci;
|
|
5816
5870
|
return openBlock(), createElementBlock("div", {
|
|
5817
5871
|
class: normalizeClass(["irep-flat-preview ire-grid", {
|
|
5818
|
-
"lg:ire-grid-cols-[1.
|
|
5872
|
+
"lg:ire-grid-cols-[1.3fr,1fr]": Ae.value
|
|
5819
5873
|
}])
|
|
5820
5874
|
}, [
|
|
5821
5875
|
Ae.value && Be.flat ? (openBlock(), createBlock(_sfc_main$r, {
|
|
@@ -5830,7 +5884,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5830
5884
|
}])
|
|
5831
5885
|
}, [
|
|
5832
5886
|
createElementVNode("div", _hoisted_2$b, [
|
|
5833
|
-
(He = Be.flat) != null && He.flat_number ? (openBlock(), createBlock(_sfc_main$
|
|
5887
|
+
(He = Be.flat) != null && He.flat_number ? (openBlock(), createBlock(_sfc_main$A, {
|
|
5834
5888
|
key: 0,
|
|
5835
5889
|
keyName: unref(tr)("apartment"),
|
|
5836
5890
|
value: Be.flat.flat_number,
|
|
@@ -5841,17 +5895,17 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5841
5895
|
createElementVNode("div", _hoisted_5$4, toDisplayString((ni = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : ni.teaser), 1)
|
|
5842
5896
|
])) : createCommentVNode("", !0),
|
|
5843
5897
|
createElementVNode("div", _hoisted_6$3, [
|
|
5844
|
-
(
|
|
5898
|
+
(ti = Be.flat) != null && ti.block_id ? (openBlock(), createBlock(_sfc_main$A, {
|
|
5845
5899
|
key: 0,
|
|
5846
5900
|
keyName: unref(tr)("block"),
|
|
5847
5901
|
value: ((Ge = (Xe = unref(getBlockById)(+((Ke = Be.flat) == null ? void 0 : Ke.block_id))) == null ? void 0 : Xe.title) == null ? void 0 : Ge.toString()) || ""
|
|
5848
5902
|
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5849
|
-
(
|
|
5903
|
+
(ei = Be.flat) != null && ei.floor_id ? (openBlock(), createBlock(_sfc_main$A, {
|
|
5850
5904
|
key: 1,
|
|
5851
5905
|
keyName: unref(tr)("floor"),
|
|
5852
5906
|
value: ((ri = (oi = unref(getFloorById)(+((ii = Be.flat) == null ? void 0 : ii.floor_id))) == null ? void 0 : oi.floor_number) == null ? void 0 : ri.toString()) || ""
|
|
5853
5907
|
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5854
|
-
(ai = (si = Be.flat) == null ? void 0 : si.type) != null && ai.area_m2 ? (openBlock(), createBlock(_sfc_main$
|
|
5908
|
+
(ai = (si = Be.flat) == null ? void 0 : si.type) != null && ai.area_m2 ? (openBlock(), createBlock(_sfc_main$A, {
|
|
5855
5909
|
key: 2,
|
|
5856
5910
|
keyName: unref(tr)("area"),
|
|
5857
5911
|
value: unref(getArea)(Number((li = Be.flat) == null ? void 0 : li.type.area_m2))
|
|
@@ -5861,16 +5915,16 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5861
5915
|
]),
|
|
5862
5916
|
_: 1
|
|
5863
5917
|
}, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5864
|
-
(di = (ci = Be.flat) == null ? void 0 : ci.type) != null && di.rooms_count ? (openBlock(), createBlock(_sfc_main$
|
|
5918
|
+
(di = (ci = Be.flat) == null ? void 0 : ci.type) != null && di.rooms_count ? (openBlock(), createBlock(_sfc_main$A, {
|
|
5865
5919
|
key: 3,
|
|
5866
5920
|
keyName: unref(tr)("room"),
|
|
5867
5921
|
value: Be.flat.type.rooms_count
|
|
5868
5922
|
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5869
|
-
(hi = Be.flat) != null && hi.request_price ? (openBlock(), createBlock(_sfc_main$
|
|
5923
|
+
(hi = Be.flat) != null && hi.request_price ? (openBlock(), createBlock(_sfc_main$A, {
|
|
5870
5924
|
key: 4,
|
|
5871
5925
|
keyName: unref(tr)("price"),
|
|
5872
5926
|
value: unref(tr)("Request Price")
|
|
5873
|
-
}, null, 8, ["keyName", "value"])) : (fi = Be.flat) != null && fi.offer_price ? (openBlock(), createBlock(_sfc_main$
|
|
5927
|
+
}, null, 8, ["keyName", "value"])) : (fi = Be.flat) != null && fi.offer_price ? (openBlock(), createBlock(_sfc_main$A, {
|
|
5874
5928
|
key: 5,
|
|
5875
5929
|
keyName: unref(tr)("price"),
|
|
5876
5930
|
value: unref(getPrice)(Number((pi = Be.flat) == null ? void 0 : pi.offer_price))
|
|
@@ -5888,7 +5942,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5888
5942
|
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
5889
5943
|
]),
|
|
5890
5944
|
_: 1
|
|
5891
|
-
}, 8, ["keyName", "value"])) : (mi = Be.flat) != null && mi.price && Number(Be.flat.price) > 0 ? (openBlock(), createBlock(_sfc_main$
|
|
5945
|
+
}, 8, ["keyName", "value"])) : (mi = Be.flat) != null && mi.price && Number(Be.flat.price) > 0 ? (openBlock(), createBlock(_sfc_main$A, {
|
|
5892
5946
|
key: 6,
|
|
5893
5947
|
keyName: unref(tr)("price"),
|
|
5894
5948
|
value: unref(getPrice)(Number((vi = Be.flat) == null ? void 0 : vi.price))
|
|
@@ -5898,7 +5952,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5898
5952
|
]),
|
|
5899
5953
|
_: 1
|
|
5900
5954
|
}, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
5901
|
-
(yi = (bi = (gi = Be.flat) == null ? void 0 : gi.type) == null ? void 0 : bi.other) != null && yi.length ? (openBlock(!0), createElementBlock(Fragment, { key: 7 }, renderList(Be.flat.type.other, (ui) => (openBlock(), createBlock(_sfc_main$
|
|
5955
|
+
(yi = (bi = (gi = Be.flat) == null ? void 0 : gi.type) == null ? void 0 : bi.other) != null && yi.length ? (openBlock(!0), createElementBlock(Fragment, { key: 7 }, renderList(Be.flat.type.other, (ui) => (openBlock(), createBlock(_sfc_main$A, {
|
|
5902
5956
|
keyName: ui.key,
|
|
5903
5957
|
value: ui.value
|
|
5904
5958
|
}, null, 8, ["keyName", "value"]))), 256)) : createCommentVNode("", !0)
|
|
@@ -5907,16 +5961,16 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
|
|
|
5907
5961
|
createElementVNode("div", _hoisted_8$2, [
|
|
5908
5962
|
(wi = (xi = (_i = Be.flat) == null ? void 0 : _i.files) == null ? void 0 : xi[0]) != null && wi.url ? (openBlock(), createElementBlock("a", {
|
|
5909
5963
|
key: 0,
|
|
5910
|
-
href: (
|
|
5964
|
+
href: (Ci = (Si = (ki = Be.flat) == null ? void 0 : ki.files) == null ? void 0 : Si[0]) == null ? void 0 : Ci.url,
|
|
5911
5965
|
target: "_blank",
|
|
5912
5966
|
class: "ire-w-full ire-p-2"
|
|
5913
5967
|
}, [
|
|
5914
|
-
createVNode(_sfc_main$
|
|
5968
|
+
createVNode(_sfc_main$z, {
|
|
5915
5969
|
title: unref(tr)("download file")
|
|
5916
5970
|
}, null, 8, ["title"])
|
|
5917
5971
|
], 8, _hoisted_9$2)) : createCommentVNode("", !0),
|
|
5918
5972
|
Ie.value ? (openBlock(), createElementBlock("div", _hoisted_10$2, [
|
|
5919
|
-
createVNode(_sfc_main$
|
|
5973
|
+
createVNode(_sfc_main$z, {
|
|
5920
5974
|
title: unref(tr)("request callback"),
|
|
5921
5975
|
active: "",
|
|
5922
5976
|
onClick: Fe[0] || (Fe[0] = (ui) => Le.value = !0)
|
|
@@ -6050,8 +6104,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
|
|
|
6050
6104
|
var Ue;
|
|
6051
6105
|
if (!Re.value) return;
|
|
6052
6106
|
((Ue = Re.value) == null ? void 0 : Ue.querySelectorAll("g")).forEach((Ye) => {
|
|
6053
|
-
var ni,
|
|
6054
|
-
const Je = Ye == null ? void 0 : Ye.getAttribute("id"), Ze = (
|
|
6107
|
+
var ni, ti, Ke, Xe;
|
|
6108
|
+
const Je = Ye == null ? void 0 : Ye.getAttribute("id"), Ze = (ti = (ni = $e.block) == null ? void 0 : ni.polygon_data) == null ? void 0 : ti.find(
|
|
6055
6109
|
(Ge) => (Ge == null ? void 0 : Ge.key) === Je
|
|
6056
6110
|
), Qe = Ze == null ? void 0 : Ze.id;
|
|
6057
6111
|
switch (Ze == null ? void 0 : Ze.type) {
|
|
@@ -6060,8 +6114,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
|
|
|
6060
6114
|
Ye.setAttribute("conf", (Ge == null ? void 0 : Ge.conf) || "");
|
|
6061
6115
|
break;
|
|
6062
6116
|
case "flat":
|
|
6063
|
-
const
|
|
6064
|
-
Ye.setAttribute("conf", (
|
|
6117
|
+
const ei = (Xe = $e.flats) == null ? void 0 : Xe.find((ii) => ii.id === Qe);
|
|
6118
|
+
Ye.setAttribute("conf", (ei == null ? void 0 : ei.conf) || "");
|
|
6065
6119
|
break;
|
|
6066
6120
|
}
|
|
6067
6121
|
});
|
|
@@ -6074,37 +6128,37 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
|
|
|
6074
6128
|
), watch(
|
|
6075
6129
|
() => Ie.value,
|
|
6076
6130
|
(qe) => {
|
|
6077
|
-
var Ye, Je, Ze, Qe, ni,
|
|
6131
|
+
var Ye, Je, Ze, Qe, ni, ti, Ke, Xe;
|
|
6078
6132
|
if (!qe) return;
|
|
6079
6133
|
Ve.hoverdSvg = qe;
|
|
6080
6134
|
const Ue = qe == null ? void 0 : qe.parentElement;
|
|
6081
6135
|
if (Ue && (Ue == null ? void 0 : Ue.nodeName) === "g") {
|
|
6082
6136
|
const Ge = Ue == null ? void 0 : Ue.getAttribute("id");
|
|
6083
|
-
if (!Ge || (Ae.value = ((Je = (Ye = $e.block) == null ? void 0 : Ye.polygon_data) == null ? void 0 : Je.find((
|
|
6137
|
+
if (!Ge || (Ae.value = ((Je = (Ye = $e.block) == null ? void 0 : Ye.polygon_data) == null ? void 0 : Je.find((ei) => (ei == null ? void 0 : ei.key) === Ge)) || null, !Ae.value)) return;
|
|
6084
6138
|
if (((Ze = Ae.value) == null ? void 0 : Ze.type) === "floor") {
|
|
6085
|
-
const
|
|
6139
|
+
const ei = (Qe = $e.floors) == null ? void 0 : Qe.find(
|
|
6086
6140
|
(ii) => {
|
|
6087
6141
|
var oi;
|
|
6088
6142
|
return (ii == null ? void 0 : ii.id) === ((oi = Ae.value) == null ? void 0 : oi.id);
|
|
6089
6143
|
}
|
|
6090
6144
|
);
|
|
6091
|
-
ze.value =
|
|
6145
|
+
ze.value = ei;
|
|
6092
6146
|
} else if (((ni = Ae.value) == null ? void 0 : ni.type) === "flat") {
|
|
6093
|
-
const
|
|
6147
|
+
const ei = (ti = $e.flats) == null ? void 0 : ti.find(
|
|
6094
6148
|
(ii) => {
|
|
6095
6149
|
var oi;
|
|
6096
6150
|
return (ii == null ? void 0 : ii.id) === ((oi = Ae.value) == null ? void 0 : oi.id);
|
|
6097
6151
|
}
|
|
6098
6152
|
);
|
|
6099
|
-
ze.value =
|
|
6153
|
+
ze.value = ei;
|
|
6100
6154
|
} else if (((Ke = Ae.value) == null ? void 0 : Ke.type) === "tooltip") {
|
|
6101
|
-
const
|
|
6155
|
+
const ei = (Xe = $e.actions) == null ? void 0 : Xe.find(
|
|
6102
6156
|
(ii) => {
|
|
6103
6157
|
var oi;
|
|
6104
6158
|
return (ii == null ? void 0 : ii.id) === ((oi = Ae.value) == null ? void 0 : oi.id);
|
|
6105
6159
|
}
|
|
6106
6160
|
);
|
|
6107
|
-
ze.value =
|
|
6161
|
+
ze.value = ei;
|
|
6108
6162
|
} else
|
|
6109
6163
|
ze.value = null;
|
|
6110
6164
|
} else
|
|
@@ -6116,14 +6170,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
|
|
|
6116
6170
|
document.removeEventListener("mousemove", Fe);
|
|
6117
6171
|
}), (qe, Ue) => {
|
|
6118
6172
|
var Ye;
|
|
6119
|
-
return openBlock(), createBlock(_sfc_main$
|
|
6173
|
+
return openBlock(), createBlock(_sfc_main$G, {
|
|
6120
6174
|
hoverdData: ze.value,
|
|
6121
6175
|
type: (Ye = Ae.value) == null ? void 0 : Ye.type
|
|
6122
6176
|
}, {
|
|
6123
6177
|
header: withCtx(() => {
|
|
6124
6178
|
var Je;
|
|
6125
6179
|
return [
|
|
6126
|
-
createVNode(_sfc_main$
|
|
6180
|
+
createVNode(_sfc_main$C, {
|
|
6127
6181
|
onClick: Ue[0] || (Ue[0] = (Ze) => qe.$emit("changeComponent", "project", null))
|
|
6128
6182
|
}),
|
|
6129
6183
|
createElementVNode("div", _hoisted_1$g, toDisplayString((Je = Be.block) == null ? void 0 : Je.title), 1)
|
|
@@ -6296,7 +6350,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
|
|
|
6296
6350
|
}, {
|
|
6297
6351
|
default: withCtx(() => [
|
|
6298
6352
|
unref(shortcodeData) ? (openBlock(), createElementBlock("div", { key: flow.value }, [
|
|
6299
|
-
flow.value === "projectFlow" ? (openBlock(), createBlock(_sfc_main$
|
|
6353
|
+
flow.value === "projectFlow" ? (openBlock(), createBlock(_sfc_main$F, {
|
|
6300
6354
|
key: 0,
|
|
6301
6355
|
project: project.value,
|
|
6302
6356
|
floors: floors.value,
|
|
@@ -6312,7 +6366,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
|
|
|
6312
6366
|
floors: floors.value,
|
|
6313
6367
|
actions: actions.value,
|
|
6314
6368
|
onChangeComponent: _e[1] || (_e[1] = (ke, $e) => changeRoute(ke, $e))
|
|
6315
|
-
}, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$
|
|
6369
|
+
}, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$B, {
|
|
6316
6370
|
key: 2,
|
|
6317
6371
|
flats: flats.value,
|
|
6318
6372
|
floor: activeFloor.value,
|
|
@@ -6379,7 +6433,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
|
|
|
6379
6433
|
},
|
|
6380
6434
|
setup(Be) {
|
|
6381
6435
|
const _e = Be, ke = useGlobalStore();
|
|
6382
|
-
return ke.setData(_e.data), ke.setIrePlaginWp(_e.irePlugin), provide("fromListView", !1), ($e, Ne) => (openBlock(), createBlock(_sfc_main$
|
|
6436
|
+
return ke.setData(_e.data), ke.setIrePlaginWp(_e.irePlugin), provide("fromListView", !1), ($e, Ne) => (openBlock(), createBlock(_sfc_main$K, null, {
|
|
6383
6437
|
default: withCtx(() => [
|
|
6384
6438
|
createVNode(_sfc_main$h)
|
|
6385
6439
|
]),
|
|
@@ -6421,13 +6475,7 @@ function _sfc_render$8(Be, _e) {
|
|
|
6421
6475
|
}, null, -1)
|
|
6422
6476
|
])]);
|
|
6423
6477
|
}
|
|
6424
|
-
const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$8]]), _hoisted_1$e = { class: "ire-relative ire-pt-[85%]" }, _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$3 = { class: "flex ire-justify-between ire-gap-2 ire-text-center" }, _hoisted_6$2 = { class: "ire-text-left ire-text-lg ire-font-semibold" }, _hoisted_7$2 = {
|
|
6425
|
-
key: 0,
|
|
6426
|
-
class: "ire-h-fit ire-rounded-sm ire-bg-yellow-500 ire-px-2 ire-text-sm ire-uppercase ire-text-yellow-100"
|
|
6427
|
-
}, _hoisted_8$1 = {
|
|
6428
|
-
key: 1,
|
|
6429
|
-
class: "ire-h-fit ire-rounded-sm ire-bg-red-500 ire-px-2 ire-text-sm ire-uppercase ire-text-red-100"
|
|
6430
|
-
}, _hoisted_9$1 = { key: 0 }, _hoisted_10$1 = { key: 1 }, _hoisted_11 = { class: "ire-text-xs ire-text-gray-500 ire-line-through" }, _hoisted_12 = { key: 2 }, _hoisted_13 = { key: 3 }, _hoisted_14 = { class: "ire-right-[2px] ire-text-base" }, _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
6478
|
+
const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$8]]), _hoisted_1$e = { class: "ire-relative ire-pt-[85%]" }, _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$3 = { class: "flex ire-justify-between ire-gap-2 ire-text-center" }, _hoisted_6$2 = { class: "ire-text-left ire-text-lg ire-font-semibold" }, _hoisted_7$2 = { key: 0 }, _hoisted_8$1 = { key: 1 }, _hoisted_9$1 = { class: "ire-text-xs ire-text-gray-500 ire-line-through" }, _hoisted_10$1 = { 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({
|
|
6431
6479
|
__name: "FlatCard",
|
|
6432
6480
|
props: {
|
|
6433
6481
|
flat: {}
|
|
@@ -6444,7 +6492,7 @@ const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_re
|
|
|
6444
6492
|
return (Ve, De) => {
|
|
6445
6493
|
var Le, Re;
|
|
6446
6494
|
return openBlock(), createElementBlock("div", {
|
|
6447
|
-
class: "ire-cursor-pointer ire-rounded-sm ire-border ire-border-solid ire-border-gray-
|
|
6495
|
+
class: "ire-cursor-pointer ire-rounded-sm ire-border ire-border-solid ire-border-gray-300 ire-bg-gray-50 ire-p-2 ire-text-black ire-transition-all ire-duration-300 hover:ire-bg-gray-100",
|
|
6448
6496
|
onClick: De[0] || (De[0] = (Ie) => ke("openFlat", Be.flat.id))
|
|
6449
6497
|
}, [
|
|
6450
6498
|
createElementVNode("div", _hoisted_1$e, [
|
|
@@ -6460,14 +6508,18 @@ const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_re
|
|
|
6460
6508
|
createElementVNode("div", _hoisted_4$5, [
|
|
6461
6509
|
createElementVNode("div", _hoisted_5$3, [
|
|
6462
6510
|
createElementVNode("div", _hoisted_6$2, toDisplayString(Be.flat.flat_number), 1),
|
|
6463
|
-
Be.flat.conf
|
|
6511
|
+
Be.flat.conf ? (openBlock(), createBlock(_sfc_main$s, {
|
|
6512
|
+
key: 0,
|
|
6513
|
+
title: unref(tr)(Be.flat.conf),
|
|
6514
|
+
"badge-style": Be.flat.conf === "reserved" ? "warning" : "danger"
|
|
6515
|
+
}, null, 8, ["title", "badge-style"])) : createCommentVNode("", !0)
|
|
6464
6516
|
]),
|
|
6465
|
-
Be.flat.request_price ? (openBlock(), createElementBlock("div",
|
|
6466
|
-
createElementVNode("div",
|
|
6467
|
-
createElementVNode("div",
|
|
6468
|
-
])) : Be.flat.price !== "0.00" ? (openBlock(), createElementBlock("div",
|
|
6469
|
-
(Le = Be.flat.type) != null && Le.area_m2 ? (openBlock(), createElementBlock("div",
|
|
6470
|
-
createElementVNode("span",
|
|
6517
|
+
Be.flat.request_price ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(unref(tr)("Request Price")), 1)) : Be.flat.offer_price ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
|
|
6518
|
+
createElementVNode("div", _hoisted_9$1, toDisplayString(unref(getPrice)(+Be.flat.price_n)) + " " + toDisplayString(unref(currencySymbol)()), 1),
|
|
6519
|
+
createElementVNode("div", _hoisted_10$1, toDisplayString(unref(getPrice)(+Be.flat.offer_price)) + " " + toDisplayString(unref(currencySymbol)()), 1)
|
|
6520
|
+
])) : Be.flat.price !== "0.00" ? (openBlock(), createElementBlock("div", _hoisted_11, toDisplayString(unref(getPrice)(+Be.flat.price_n)) + " " + toDisplayString(unref(currencySymbol)()), 1)) : createCommentVNode("", !0),
|
|
6521
|
+
(Le = Be.flat.type) != null && Le.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_12, [
|
|
6522
|
+
createElementVNode("span", _hoisted_13, [
|
|
6471
6523
|
createTextVNode(toDisplayString(unref(getArea)(+((Re = Be.flat.type) == null ? void 0 : Re.area_m2_n))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + " ", 1),
|
|
6472
6524
|
De[1] || (De[1] = createElementVNode("sup", { class: "ire-bg-transparent ire-text-sm" }, " 2 ", -1))
|
|
6473
6525
|
])
|
|
@@ -7102,7 +7154,7 @@ const MagnifyIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_re
|
|
|
7102
7154
|
}, 8, ["data"]))
|
|
7103
7155
|
]));
|
|
7104
7156
|
}
|
|
7105
|
-
}), _hoisted_1$2 = { class: "irep-flats-list-filters ire-space-y-4 ire-p-8" }, _hoisted_2$1 = { class: "irep-flats-list-filters-title mb-2 ire-text-
|
|
7157
|
+
}), _hoisted_1$2 = { class: "irep-flats-list-filters ire-space-y-4 ire-p-8 ire-text-base" }, _hoisted_2$1 = { class: "irep-flats-list-filters-title mb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_3$1 = { class: "flex ire-flex-col ire-gap-2 ire-text-center md:ire-flex-row" }, _hoisted_4$1 = { class: "irep-flats-list-filters-title mb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_5 = { class: "flex ire-flex-col ire-gap-2 ire-text-center md:ire-flex-row" }, _hoisted_6 = { class: "irep-flats-list-filters-title mb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_7 = { class: "flex ire-flex-col ire-gap-2 ire-text-center md:ire-flex-row" }, _hoisted_8 = { class: "irep-flats-list-filters-title mb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_9 = { class: "flex ire-flex-col ire-gap-2 ire-text-center md:ire-flex-row" }, _hoisted_10 = { class: "irep-flats-list-filters-title ire-mb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
7106
7158
|
__name: "Filters",
|
|
7107
7159
|
props: {
|
|
7108
7160
|
filtersObject: {},
|
|
@@ -7215,7 +7267,7 @@ const MagnifyIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_re
|
|
|
7215
7267
|
]),
|
|
7216
7268
|
createElementVNode("div", null, [
|
|
7217
7269
|
createElementVNode("div", _hoisted_10, toDisplayString(unref(tr)("select config")), 1),
|
|
7218
|
-
createVNode(_sfc_main$
|
|
7270
|
+
createVNode(_sfc_main$E, {
|
|
7219
7271
|
modelValue: Ne.value.config,
|
|
7220
7272
|
"onUpdate:modelValue": De[8] || (De[8] = (Le) => Ne.value.config = Le),
|
|
7221
7273
|
data: $e,
|
|
@@ -7223,7 +7275,7 @@ const MagnifyIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_re
|
|
|
7223
7275
|
class: "irep-flats-list-filters-select"
|
|
7224
7276
|
}, null, 8, ["modelValue"])
|
|
7225
7277
|
]),
|
|
7226
|
-
createVNode(_sfc_main$
|
|
7278
|
+
createVNode(_sfc_main$z, {
|
|
7227
7279
|
title: unref(tr)("filter"),
|
|
7228
7280
|
active: "",
|
|
7229
7281
|
class: "irep-flats-list-filters-submit-btn !ire-w-fit ire-capitalize",
|
|
@@ -7308,7 +7360,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
|
|
|
7308
7360
|
return $e.value.types;
|
|
7309
7361
|
}), Ye = computed$1(() => $e.value ? $e.value.flats.map((Ge) => {
|
|
7310
7362
|
var ri, si, ai;
|
|
7311
|
-
const
|
|
7363
|
+
const ei = (ri = $e.value) == null ? void 0 : ri.floors.find(
|
|
7312
7364
|
(li) => li.id === Ge.floor_id
|
|
7313
7365
|
), ii = (si = $e.value) == null ? void 0 : si.blocks.find(
|
|
7314
7366
|
(li) => li.id === Ge.block_id
|
|
@@ -7322,21 +7374,21 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
|
|
|
7322
7374
|
},
|
|
7323
7375
|
price_n: Number(Ge.price),
|
|
7324
7376
|
price: Ge.conf ? tr(Ge.conf) : Ge.request_price ? tr("Request Price") : `${getPrice(Number((Ge == null ? void 0 : Ge.offer_price) || (Ge == null ? void 0 : Ge.price)))} ${currencySymbol()}`,
|
|
7325
|
-
floor_title:
|
|
7326
|
-
floor_number: Number(
|
|
7377
|
+
floor_title: ei == null ? void 0 : ei.title,
|
|
7378
|
+
floor_number: Number(ei == null ? void 0 : ei.floor_number),
|
|
7327
7379
|
block_title: ii
|
|
7328
7380
|
};
|
|
7329
7381
|
}).map((Ge) => {
|
|
7330
7382
|
var ii;
|
|
7331
|
-
const
|
|
7383
|
+
const ei = (ii = Ge.type) == null ? void 0 : ii.other.reduce(
|
|
7332
7384
|
(oi, ri) => (oi[ri.key] = ri.value, oi),
|
|
7333
7385
|
{}
|
|
7334
7386
|
);
|
|
7335
|
-
return { ...Ge, type: { ...Ge.type, other:
|
|
7336
|
-
}).sort((Ge,
|
|
7387
|
+
return { ...Ge, type: { ...Ge.type, other: ei } };
|
|
7388
|
+
}).sort((Ge, ei) => {
|
|
7337
7389
|
const ii = Le.value;
|
|
7338
|
-
let oi = Ge[ii], ri =
|
|
7339
|
-
ii != null && ii.includes(".") && (oi = getNested(Ge, ii), ri = getNested(
|
|
7390
|
+
let oi = Ge[ii], ri = ei[ii];
|
|
7391
|
+
ii != null && ii.includes(".") && (oi = getNested(Ge, ii), ri = getNested(ei, ii)), oi == null && (oi = "0"), ri == null && (ri = "0");
|
|
7340
7392
|
const si = oi.toString(), ai = ri.toString();
|
|
7341
7393
|
return !isNaN(si) && !isNaN(ai) ? Re.value === "desc" ? ai - si : si - ai : Re.value === "desc" ? String(ri).localeCompare(String(oi)) : String(oi).localeCompare(String(ri));
|
|
7342
7394
|
}) : []), Je = computed$1(() => {
|
|
@@ -7344,9 +7396,9 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
|
|
|
7344
7396
|
return Qe.value ? Math.ceil(((Xe = Ze.value) == null ? void 0 : Xe.length) / ze.value) : 0;
|
|
7345
7397
|
}), Ze = computed$1(() => Ye.value ? Ye.value.filter((Xe) => {
|
|
7346
7398
|
var hi, fi, pi, mi, vi, gi, bi, yi;
|
|
7347
|
-
let Ge = !0,
|
|
7399
|
+
let Ge = !0, ei = !0, ii = !0, oi = !0, ri = !0, si = !0, ai = !0, li = !0, ci = !0;
|
|
7348
7400
|
const di = !(Xe != null && Xe.conf) && !(Xe != null && Xe.request_price);
|
|
7349
|
-
if (qe.value.priceMin && (Ge = Xe.price_n >= qe.value.priceMin && di), qe.value.priceMax && (
|
|
7401
|
+
if (qe.value.priceMin && (Ge = Xe.price_n >= qe.value.priceMin && di), qe.value.priceMax && (ei = Xe.price_n <= qe.value.priceMax && di), qe.value.areaMin && (ii = ((hi = Xe.type) == null ? void 0 : hi.area_m2_n) && ((fi = Xe.type) == null ? void 0 : fi.area_m2_n) >= qe.value.areaMin), qe.value.areaMax && (oi = ((pi = Xe.type) == null ? void 0 : pi.area_m2_n) && ((mi = Xe.type) == null ? void 0 : mi.area_m2_n) <= qe.value.areaMax), qe.value.floorMin && (ri = (Xe == null ? void 0 : Xe.floor_number) && +(Xe == null ? void 0 : Xe.floor_number) >= +qe.value.floorMin), qe.value.floorMax && (si = (Xe == null ? void 0 : Xe.floor_number) && +(Xe == null ? void 0 : Xe.floor_number) <= +qe.value.floorMax), qe.value.roomMin && (ai = ((vi = Xe.type) == null ? void 0 : vi.rooms_count) && +((gi = Xe.type) == null ? void 0 : gi.rooms_count) >= +qe.value.roomMin), qe.value.roomMax && (li = ((bi = Xe.type) == null ? void 0 : bi.rooms_count) && +((yi = Xe.type) == null ? void 0 : yi.rooms_count) <= +qe.value.roomMax), qe.value.config)
|
|
7350
7402
|
switch (qe.value.config) {
|
|
7351
7403
|
case "available":
|
|
7352
7404
|
ci = !Xe.conf;
|
|
@@ -7358,18 +7410,18 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
|
|
|
7358
7410
|
ci = Xe.conf === "sold";
|
|
7359
7411
|
break;
|
|
7360
7412
|
}
|
|
7361
|
-
return Ge &&
|
|
7413
|
+
return Ge && ei && ii && oi && ri && si && ai && li && ci;
|
|
7362
7414
|
}) : []), Qe = computed$1(() => {
|
|
7363
|
-
var
|
|
7364
|
-
if (!((
|
|
7415
|
+
var ei;
|
|
7416
|
+
if (!((ei = $e.value) != null && ei.flats)) return [];
|
|
7365
7417
|
const Xe = (Fe.value - 1) * ze.value, Ge = Xe + ze.value;
|
|
7366
7418
|
return Ze.value.slice(Xe, Ge);
|
|
7367
7419
|
}), ni = (Xe) => {
|
|
7368
7420
|
Fe.value = Xe, De(je.value), je.value, setQuery("flats-page", Xe.toString());
|
|
7369
|
-
},
|
|
7421
|
+
}, ti = (Xe, Ge) => {
|
|
7370
7422
|
Le.value = Xe, Re.value = Ge;
|
|
7371
7423
|
}, Ke = (Xe) => {
|
|
7372
|
-
const Ge = Ve.value.find((
|
|
7424
|
+
const Ge = Ve.value.find((ei) => ei.id === Xe);
|
|
7373
7425
|
We.value = Ge, He.value = !0;
|
|
7374
7426
|
};
|
|
7375
7427
|
return watch(
|
|
@@ -7385,12 +7437,12 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
|
|
|
7385
7437
|
Xe && !isNaN(Number(Xe)) && (Fe.value = Number(Xe)), _e.perPage && !isNaN(Number(_e.perPage)) && (ze.value = Number(_e.perPage));
|
|
7386
7438
|
}), onBeforeMount(() => {
|
|
7387
7439
|
Ae.value = _e.layout === "table";
|
|
7388
|
-
}), provide("fromListView", _e.fromListView), (Xe, Ge) => (openBlock(), createBlock(_sfc_main$
|
|
7440
|
+
}), provide("fromListView", _e.fromListView), (Xe, Ge) => (openBlock(), createBlock(_sfc_main$K, { class: "irep-flats-list ire-text-base" }, {
|
|
7389
7441
|
default: withCtx(() => {
|
|
7390
|
-
var
|
|
7442
|
+
var ei;
|
|
7391
7443
|
return [
|
|
7392
7444
|
createElementVNode("div", _hoisted_1, [
|
|
7393
|
-
createVNode(_sfc_main$
|
|
7445
|
+
createVNode(_sfc_main$z, {
|
|
7394
7446
|
title: unref(tr)("filters"),
|
|
7395
7447
|
active: "",
|
|
7396
7448
|
class: "irep-flats-top__filters-button !ire-w-fit ire-capitalize",
|
|
@@ -7425,7 +7477,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
|
|
|
7425
7477
|
default: withCtx(() => [
|
|
7426
7478
|
(openBlock(), createElementBlock("span", {
|
|
7427
7479
|
key: String(Ae.value),
|
|
7428
|
-
class: "ire-text-black ire-transition-all group-hover:ire-text-gray-500"
|
|
7480
|
+
class: "ire-text-base ire-text-black ire-transition-all group-hover:ire-text-gray-500"
|
|
7429
7481
|
}, toDisplayString(Ae.value ? unref(tr)("grid view") : unref(tr)("table view")), 1))
|
|
7430
7482
|
]),
|
|
7431
7483
|
_: 1
|
|
@@ -7441,7 +7493,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
|
|
|
7441
7493
|
Ae.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
7442
7494
|
key: 0,
|
|
7443
7495
|
flats: Qe.value,
|
|
7444
|
-
onSortColumn: Ge[2] || (Ge[2] = (ii, oi) =>
|
|
7496
|
+
onSortColumn: Ge[2] || (Ge[2] = (ii, oi) => ti(ii, oi)),
|
|
7445
7497
|
onOpenFlat: Ge[3] || (Ge[3] = (ii) => Ke(ii))
|
|
7446
7498
|
}, null, 8, ["flats"])) : (openBlock(), createElementBlock("div", {
|
|
7447
7499
|
key: 1,
|
|
@@ -7458,7 +7510,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
|
|
|
7458
7510
|
]),
|
|
7459
7511
|
_: 1
|
|
7460
7512
|
})) : (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(unref(tr)("nothing found")), 1)),
|
|
7461
|
-
(
|
|
7513
|
+
(ei = Qe.value) != null && ei.length && Je.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
7462
7514
|
createElementVNode("div", null, [
|
|
7463
7515
|
createVNode(unref(script$1), {
|
|
7464
7516
|
modelValue: Fe.value,
|