ire-preview 2.3.15 → 2.3.17
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 +374 -369
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/src/App.vue.d.ts +0 -2
- package/dist/src/components/Project.vue.d.ts +0 -8
- package/dist/src/components/demo/form/PreviewSelect.vue.d.ts +0 -21
- package/dist/src/components/demo/layout/MouseTracker.vue.d.ts +0 -18
- package/dist/src/components/demo/layout/PreviewLayout.vue.d.ts +0 -25
- package/dist/src/components/demo/preview/ActionModal.vue.d.ts +0 -7
- package/dist/src/components/demo/preview/BlockPreview.vue.d.ts +0 -17
- package/dist/src/components/demo/preview/FlatPreview.vue.d.ts +0 -13
- package/dist/src/components/demo/preview/FloorPreview.vue.d.ts +0 -19
- package/dist/src/components/demo/preview/Preview.vue.d.ts +0 -6
- package/dist/src/components/demo/preview/ProjectPreview.vue.d.ts +0 -21
- package/dist/src/components/demo/preview/Tooltip_1.vue.d.ts +0 -8
- package/dist/src/components/demo/preview/Tooltip_2.vue.d.ts +0 -10
- package/dist/src/components/demo/preview/Tooltip_3.vue.d.ts +0 -8
- package/dist/src/components/demo/uiComponents/BackButton.vue.d.ts +0 -2
- package/dist/src/components/demo/uiComponents/BaseEditor.vue.d.ts +0 -6
- package/dist/src/components/demo/uiComponents/Button.vue.d.ts +0 -22
- package/dist/src/components/demo/uiComponents/FlatPreviewKeyValue.vue.d.ts +0 -23
- package/dist/src/components/demo/uiComponents/PreviewModal.vue.d.ts +0 -20
- package/dist/src/components/icons/ArrowRight.vue.d.ts +0 -2
- package/dist/src/components/icons/Close.vue.d.ts +0 -2
- package/dist/src/components/icons/Cube.vue.d.ts +0 -2
- package/dist/src/components/icons/FlatIcon.vue.d.ts +0 -2
- package/dist/src/components/index.d.ts +0 -1
- package/dist/src/composable/helper.d.ts +0 -3
- package/dist/src/interfaces/index.d.ts +0 -4
- package/dist/src/main.d.ts +0 -2
- package/dist/src/store/useGlobal.d.ts +0 -31
- package/dist/src/types/DemoTypes.d.ts +0 -225
- package/dist/styles.d.ts +0 -1
package/dist/lib.es.js
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const _export_sfc = (Le, _e) => {
|
|
3
|
-
const ke = Le.__vccOpts || Le;
|
|
4
|
-
for (const [De, $e] of _e)
|
|
5
|
-
ke[De] = $e;
|
|
6
|
-
return ke;
|
|
7
|
-
}, _sfc_main$m = {};
|
|
8
|
-
function _sfc_render$4(Le, _e) {
|
|
9
|
-
return openBlock(), createElementBlock("div", null, _e[0] || (_e[0] = [
|
|
10
|
-
createElementVNode("h1", { class: "underline" }, "undeliner", -1)
|
|
11
|
-
]));
|
|
12
|
-
}
|
|
13
|
-
const App = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$4]]);
|
|
1
|
+
import { effectScope, ref, markRaw, toRaw, computed as computed$1, isRef, isReactive, toRef, hasInjectionContext, inject, watch, reactive, getCurrentScope, onScopeDispose, nextTick, toRefs, defineComponent, openBlock, createElementBlock, createVNode, Transition, withCtx, createElementVNode, toDisplayString, unref, createCommentVNode, Fragment, createTextVNode, normalizeClass, normalizeStyle, renderSlot, createBlock, onMounted, onUnmounted, mergeModels, useModel, withDirectives, renderList, vModelSelect, createStaticVNode, provide, Teleport, createApp, h as h$1 } from "vue";
|
|
14
2
|
/*!
|
|
15
3
|
* pinia v3.0.1
|
|
16
4
|
* (c) 2025 Eduardo San Martin Morote
|
|
@@ -106,15 +94,15 @@ function createSetupStore(Le, _e, ke = {}, De, $e, Re) {
|
|
|
106
94
|
const He = De.state.value[Le];
|
|
107
95
|
!Re && !He && (De.state.value[Le] = {}), ref({});
|
|
108
96
|
let We;
|
|
109
|
-
function Xe(
|
|
97
|
+
function Xe(Ge) {
|
|
110
98
|
let ei;
|
|
111
|
-
Ae = Ie = !1, typeof
|
|
99
|
+
Ae = Ie = !1, typeof Ge == "function" ? (Ge(De.state.value[Le]), ei = {
|
|
112
100
|
type: MutationType.patchFunction,
|
|
113
101
|
storeId: Le,
|
|
114
102
|
events: Ve
|
|
115
|
-
}) : (mergeReactiveObjects(De.state.value[Le],
|
|
103
|
+
}) : (mergeReactiveObjects(De.state.value[Le], Ge), ei = {
|
|
116
104
|
type: MutationType.patchObject,
|
|
117
|
-
payload:
|
|
105
|
+
payload: Ge,
|
|
118
106
|
storeId: Le,
|
|
119
107
|
events: Ve
|
|
120
108
|
});
|
|
@@ -135,9 +123,9 @@ function createSetupStore(Le, _e, ke = {}, De, $e, Re) {
|
|
|
135
123
|
function Ze() {
|
|
136
124
|
Be.stop(), je = [], Fe = [], De._s.delete(Le);
|
|
137
125
|
}
|
|
138
|
-
const
|
|
139
|
-
if (ACTION_MARKER in
|
|
140
|
-
return
|
|
126
|
+
const Ke = (Ge, ei = "") => {
|
|
127
|
+
if (ACTION_MARKER in Ge)
|
|
128
|
+
return Ge[ACTION_NAME] = ei, Ge;
|
|
141
129
|
const ii = function() {
|
|
142
130
|
setActivePinia(De);
|
|
143
131
|
const oi = Array.from(arguments), ni = [], ti = [];
|
|
@@ -156,7 +144,7 @@ function createSetupStore(Le, _e, ke = {}, De, $e, Re) {
|
|
|
156
144
|
});
|
|
157
145
|
let ri;
|
|
158
146
|
try {
|
|
159
|
-
ri =
|
|
147
|
+
ri = Ge.apply(this && this.$id === Le ? this : Ue, oi);
|
|
160
148
|
} catch (li) {
|
|
161
149
|
throw triggerSubscriptions(ti, li), li;
|
|
162
150
|
}
|
|
@@ -170,9 +158,9 @@ function createSetupStore(Le, _e, ke = {}, De, $e, Re) {
|
|
|
170
158
|
$onAction: addSubscription.bind(null, Fe),
|
|
171
159
|
$patch: Xe,
|
|
172
160
|
$reset: Ye,
|
|
173
|
-
$subscribe(
|
|
174
|
-
const ii = addSubscription(je,
|
|
175
|
-
(ei.flush === "sync" ? Ie : Ae) &&
|
|
161
|
+
$subscribe(Ge, ei = {}) {
|
|
162
|
+
const ii = addSubscription(je, Ge, ei.detached, () => oi()), oi = Be.run(() => watch(() => De.state.value[Le], (ni) => {
|
|
163
|
+
(ei.flush === "sync" ? Ie : Ae) && Ge({
|
|
176
164
|
storeId: Le,
|
|
177
165
|
type: MutationType.direct,
|
|
178
166
|
events: Ve
|
|
@@ -183,25 +171,25 @@ function createSetupStore(Le, _e, ke = {}, De, $e, Re) {
|
|
|
183
171
|
$dispose: Ze
|
|
184
172
|
}, Ue = reactive(qe);
|
|
185
173
|
De._s.set(Le, Ue);
|
|
186
|
-
const Je = (De._a && De._a.runWithContext || fallbackRunWithContext)(() => De._e.run(() => (Be = effectScope()).run(() => _e({ action:
|
|
187
|
-
for (const
|
|
188
|
-
const ei = Je[
|
|
174
|
+
const Je = (De._a && De._a.runWithContext || fallbackRunWithContext)(() => De._e.run(() => (Be = effectScope()).run(() => _e({ action: Ke }))));
|
|
175
|
+
for (const Ge in Je) {
|
|
176
|
+
const ei = Je[Ge];
|
|
189
177
|
if (isRef(ei) && !isComputed(ei) || isReactive(ei))
|
|
190
|
-
Re || (He && shouldHydrate(ei) && (isRef(ei) ? ei.value = He[
|
|
178
|
+
Re || (He && shouldHydrate(ei) && (isRef(ei) ? ei.value = He[Ge] : mergeReactiveObjects(ei, He[Ge])), De.state.value[Le][Ge] = ei);
|
|
191
179
|
else if (typeof ei == "function") {
|
|
192
|
-
const ii =
|
|
193
|
-
Je[
|
|
180
|
+
const ii = Ke(ei, Ge);
|
|
181
|
+
Je[Ge] = ii, Ne.actions[Ge] = ei;
|
|
194
182
|
}
|
|
195
183
|
}
|
|
196
184
|
return assign(Ue, Je), assign(toRaw(Ue), Je), Object.defineProperty(Ue, "$state", {
|
|
197
185
|
get: () => De.state.value[Le],
|
|
198
|
-
set: (
|
|
186
|
+
set: (Ge) => {
|
|
199
187
|
Xe((ei) => {
|
|
200
|
-
assign(ei,
|
|
188
|
+
assign(ei, Ge);
|
|
201
189
|
});
|
|
202
190
|
}
|
|
203
|
-
}), De._p.forEach((
|
|
204
|
-
assign(Ue, Be.run(() =>
|
|
191
|
+
}), De._p.forEach((Ge) => {
|
|
192
|
+
assign(Ue, Be.run(() => Ge({
|
|
205
193
|
store: Ue,
|
|
206
194
|
app: De._a,
|
|
207
195
|
pinia: De,
|
|
@@ -518,7 +506,7 @@ const tr = (Le) => {
|
|
|
518
506
|
minimumFractionDigits: ke,
|
|
519
507
|
maximumFractionDigits: ke
|
|
520
508
|
});
|
|
521
|
-
}, _hoisted_1$h = {
|
|
509
|
+
}, getArea = (Le) => Number(Le).toLocaleString(), _hoisted_1$h = {
|
|
522
510
|
key: 0,
|
|
523
511
|
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"
|
|
524
512
|
}, _hoisted_2$b = {
|
|
@@ -545,7 +533,7 @@ const tr = (Le) => {
|
|
|
545
533
|
}, _hoisted_19$1 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_20$1 = { class: "irep-tooltip-1__block-conf text-sm ire-text-gray-700" }, _hoisted_21$1 = { class: "irep-tooltip-1__block-title !text-2xl" }, _hoisted_22$1 = {
|
|
546
534
|
key: 2,
|
|
547
535
|
class: "irep-tooltip-1__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
|
|
548
|
-
}, _hoisted_23$1 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_24$1 = { class: "irep-tooltip-1__flat-number !ire-text-2xl ire-capitalize" }, _hoisted_25$1 = { class: "irep-tooltip-1__flat-aptitle !ire-mt-2 !ire-text-sm ire-uppercase" }, _hoisted_26$1 = { class: "ire-flex ire-min-w-36 ire-flex-col ire-items-center ire-rounded-lg ire-bg-gray-100 ire-px-7 ire-py-3" }, _hoisted_27$1 = {
|
|
536
|
+
}, _hoisted_23$1 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_24$1 = { class: "irep-tooltip-1__flat-number ire-max-w-60 ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_25$1 = { class: "irep-tooltip-1__flat-aptitle !ire-mt-2 !ire-text-sm ire-uppercase" }, _hoisted_26$1 = { class: "ire-flex ire-min-w-36 ire-flex-col ire-items-center ire-rounded-lg ire-bg-gray-100 ire-px-7 ire-py-3" }, _hoisted_27$1 = {
|
|
549
537
|
key: 0,
|
|
550
538
|
class: "irep-tooltip-1__flat-conf !ire-text-2xl ire-uppercase"
|
|
551
539
|
}, _hoisted_28$1 = { class: "irep-tooltip-1__flat-price !ire-text-sm ire-uppercase ire-text-gray-500" }, _hoisted_29$1 = {
|
|
@@ -554,7 +542,7 @@ const tr = (Le) => {
|
|
|
554
542
|
}, _hoisted_30 = {
|
|
555
543
|
key: 0,
|
|
556
544
|
class: "irep-tooltip-1__flat-price-value ire-whitespace-nowrap !ire-text-2xl"
|
|
557
|
-
}, _hoisted_31 = { key: 1 }, _hoisted_32 = { class: "irep-tooltip-1__flat-price-line-value !ire-text-sm ire-line-through" }, _hoisted_33 = { class: "irep-tooltip-1__flat-price-value ire-whitespace-nowrap !ire-text-2xl" }, _hoisted_34 = { class: "ire-border ire-border-solid ire-border-gray-800 ire-p-2" }, _hoisted_35 = { class: "irep-tooltip-1__flat-area ire-translate-x-3 ire-bg-white" }, _sfc_main$
|
|
545
|
+
}, _hoisted_31 = { key: 1 }, _hoisted_32 = { class: "irep-tooltip-1__flat-price-line-value ire-min-w-max !ire-text-sm ire-line-through" }, _hoisted_33 = { class: "irep-tooltip-1__flat-price-value ire-min-w-max ire-whitespace-nowrap !ire-text-2xl" }, _hoisted_34 = { class: "ire-border ire-border-solid ire-border-gray-800 ire-p-2" }, _hoisted_35 = { class: "irep-tooltip-1__flat-area ire-translate-x-3 ire-bg-white" }, _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
558
546
|
__name: "Tooltip_1",
|
|
559
547
|
props: {
|
|
560
548
|
hoveredData: {},
|
|
@@ -568,7 +556,7 @@ const tr = (Le) => {
|
|
|
568
556
|
return (De, $e) => (openBlock(), createElementBlock("div", null, [
|
|
569
557
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
570
558
|
default: withCtx(() => {
|
|
571
|
-
var Re, Be, Ne, ze, Ae, Ie, je, Fe, Ve, He, We, Xe, Ye, Ze,
|
|
559
|
+
var Re, Be, Ne, ze, Ae, Ie, je, Fe, Ve, He, We, Xe, Ye, Ze, Ke, qe, Ue, Qe, Je, Ge, ei, ii, oi, ni;
|
|
572
560
|
return [
|
|
573
561
|
De.type && De.hoveredData && De.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
574
562
|
De.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
|
|
@@ -587,7 +575,7 @@ const tr = (Le) => {
|
|
|
587
575
|
createElementVNode("div", _hoisted_14$2, toDisplayString(unref(tr)("reserved")), 1)
|
|
588
576
|
])) : createCommentVNode("", !0),
|
|
589
577
|
(Ze = (Ye = De.hoveredData) == null ? void 0 : Ye.counts) != null && Ze.sold ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
|
|
590
|
-
createElementVNode("div", _hoisted_16$2, toDisplayString((qe = (
|
|
578
|
+
createElementVNode("div", _hoisted_16$2, toDisplayString((qe = (Ke = De.hoveredData) == null ? void 0 : Ke.counts) == null ? void 0 : qe.sold), 1),
|
|
591
579
|
createElementVNode("div", _hoisted_17$2, toDisplayString(unref(tr)("sold")), 1)
|
|
592
580
|
])) : createCommentVNode("", !0)
|
|
593
581
|
]))
|
|
@@ -607,8 +595,11 @@ const tr = (Le) => {
|
|
|
607
595
|
createElementVNode("div", _hoisted_28$1, toDisplayString(unref(tr)("price")), 1),
|
|
608
596
|
(Je = De.hoveredData) != null && Je.price ? (openBlock(), createElementBlock("div", _hoisted_29$1, [
|
|
609
597
|
createElementVNode("div", null, [
|
|
610
|
-
(
|
|
611
|
-
createElementVNode("div", _hoisted_32,
|
|
598
|
+
(Ge = De.hoveredData) != null && Ge.offer_price ? (openBlock(), createElementBlock("div", _hoisted_31, [
|
|
599
|
+
createElementVNode("div", _hoisted_32, [
|
|
600
|
+
createTextVNode(toDisplayString(unref(getPrice)((ei = De.hoveredData) == null ? void 0 : ei.price)) + " ", 1),
|
|
601
|
+
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
602
|
+
]),
|
|
612
603
|
createElementVNode("div", _hoisted_33, [
|
|
613
604
|
createTextVNode(toDisplayString(unref(getPrice)((ii = De.hoveredData) == null ? void 0 : ii.offer_price)) + " ", 1),
|
|
614
605
|
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
@@ -623,7 +614,7 @@ const tr = (Le) => {
|
|
|
623
614
|
]),
|
|
624
615
|
createElementVNode("div", _hoisted_34, [
|
|
625
616
|
createElementVNode("div", _hoisted_35, [
|
|
626
|
-
createTextVNode(toDisplayString(unref(
|
|
617
|
+
createTextVNode(toDisplayString(unref(getArea)(+((ni = (oi = De.hoveredData) == null ? void 0 : oi.type) == null ? void 0 : ni.area_m2))) + " m", 1),
|
|
627
618
|
$e[0] || ($e[0] = createElementVNode("sup", { class: "ire-bg-white !ire-text-sm" }, " 2 ", -1))
|
|
628
619
|
])
|
|
629
620
|
])
|
|
@@ -641,7 +632,7 @@ const tr = (Le) => {
|
|
|
641
632
|
}, _hoisted_2$a = { class: "ire-flex ire-w-full ire-items-center ire-justify-evenly ire-p-4" }, _hoisted_3$9 = { class: "irep-tooltip-2__floor-number ire-text-3xl ire-capitalize" }, _hoisted_4$6 = {
|
|
642
633
|
key: 0,
|
|
643
634
|
class: "irep-tooltip-2__floor-conf ire-text-2xl ire-uppercase"
|
|
644
|
-
}, _hoisted_5$2 = { key: 1 }, _hoisted_6$2 = { class: "irep-tooltip-2__floor-starting ire-text-
|
|
635
|
+
}, _hoisted_5$2 = { key: 1 }, _hoisted_6$2 = { class: "irep-tooltip-2__floor-starting ire-text-sm ire-text-gray-400" }, _hoisted_7$2 = { class: "irep-tooltip-2__floor-price" }, _hoisted_8$2 = { class: "ire-right-[2px] ire-text-gray-200" }, _hoisted_9$2 = { class: "ire-flex ire-items-center ire-justify-between ire-gap-2 ire-bg-gray-800 ire-p-2" }, _hoisted_10$2 = { 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 = {
|
|
645
636
|
key: 1,
|
|
646
637
|
class: "irep-tooltip-2__block p-4 ire-flex ire-items-center ire-gap-3 !ire-text-sm"
|
|
647
638
|
}, _hoisted_14$1 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_15$1 = { class: "irep-tooltip-2__block-title" }, _hoisted_16$1 = { class: "irep-tooltip-2__block-conf ire-text-gray-300 ire-opacity-80" }, _hoisted_17$1 = {
|
|
@@ -656,7 +647,7 @@ const tr = (Le) => {
|
|
|
656
647
|
}, _hoisted_22 = { key: 0 }, _hoisted_23 = { class: "ire-text-sm ire-line-through" }, _hoisted_24 = { class: "irep-tooltip-2__flat-price ire-text-base" }, _hoisted_25 = { class: "ire-right-[2px]" }, _hoisted_26 = {
|
|
657
648
|
key: 1,
|
|
658
649
|
class: "irep-tooltip-2__flat-price ire-text-base"
|
|
659
|
-
}, _hoisted_27 = { class: "ire-right-[2px]" }, _hoisted_28 = { class: "irep-tooltip-2__flat-area" }, _hoisted_29 = { class: "ire-right-[2px] ire-text-base" }, _sfc_main$
|
|
650
|
+
}, _hoisted_27 = { class: "ire-right-[2px]" }, _hoisted_28 = { class: "irep-tooltip-2__flat-area" }, _hoisted_29 = { class: "ire-right-[2px] ire-text-base" }, _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
660
651
|
__name: "Tooltip_2",
|
|
661
652
|
props: {
|
|
662
653
|
hoveredData: {},
|
|
@@ -669,7 +660,7 @@ const tr = (Le) => {
|
|
|
669
660
|
return tr((Re = _e.hoveredData) == null ? void 0 : Re.conf);
|
|
670
661
|
});
|
|
671
662
|
return (Re, Be) => {
|
|
672
|
-
var Ne, ze, Ae, Ie, je, Fe, Ve, He, We, Xe, Ye, Ze,
|
|
663
|
+
var Ne, ze, Ae, Ie, je, Fe, Ve, He, We, Xe, Ye, Ze, Ke, qe, Ue, Qe, Je, Ge;
|
|
673
664
|
return Re.type && Re.hoveredData && Re.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
|
|
674
665
|
key: 0,
|
|
675
666
|
class: normalizeClass(["ire-pointer-events-none ire-absolute ire-select-none", {
|
|
@@ -704,43 +695,43 @@ const tr = (Le) => {
|
|
|
704
695
|
]),
|
|
705
696
|
Be[1] || (Be[1] = createElementVNode("span", null, "•", -1)),
|
|
706
697
|
createElementVNode("div", _hoisted_11$2, [
|
|
707
|
-
createElementVNode("span", null, toDisplayString($e.value ? 0 : ((
|
|
698
|
+
createElementVNode("span", null, toDisplayString($e.value === "sold" ? ((Fe = Re.hoveredData) == null ? void 0 : Fe.flats.length) || 0 : ((He = (Ve = Re.hoveredData) == null ? void 0 : Ve.counts) == null ? void 0 : He.sold) || 0), 1),
|
|
708
699
|
createTextVNode(" " + toDisplayString(unref(tr)("sold")), 1)
|
|
709
700
|
]),
|
|
710
701
|
Be[2] || (Be[2] = createElementVNode("span", null, "•", -1)),
|
|
711
702
|
createElementVNode("div", _hoisted_12$2, [
|
|
712
|
-
createElementVNode("span", null, toDisplayString($e.value ? 0 : ((
|
|
703
|
+
createElementVNode("span", null, toDisplayString($e.value === "reserved" ? ((We = Re.hoveredData) == null ? void 0 : We.flats.length) || 0 : ((Ye = (Xe = Re.hoveredData) == null ? void 0 : Xe.counts) == null ? void 0 : Ye.reserved) || 0), 1),
|
|
713
704
|
createTextVNode(" " + toDisplayString(unref(tr)("reserved")), 1)
|
|
714
705
|
])
|
|
715
706
|
])
|
|
716
707
|
])) : Re.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
|
|
717
708
|
createElementVNode("div", _hoisted_14$1, [
|
|
718
|
-
createElementVNode("div", _hoisted_15$1, toDisplayString((
|
|
709
|
+
createElementVNode("div", _hoisted_15$1, toDisplayString((Ze = Re.hoveredData) == null ? void 0 : Ze.title), 1),
|
|
719
710
|
createElementVNode("span", _hoisted_16$1, toDisplayString($e.value), 1)
|
|
720
711
|
])
|
|
721
712
|
])) : Re.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_17$1, [
|
|
722
713
|
createElementVNode("div", _hoisted_18, [
|
|
723
|
-
createElementVNode("div", _hoisted_19, toDisplayString((
|
|
714
|
+
createElementVNode("div", _hoisted_19, toDisplayString((Ke = Re.hoveredData) == null ? void 0 : Ke.flat_number), 1),
|
|
724
715
|
Be[4] || (Be[4] = createElementVNode("span", null, "|", -1)),
|
|
725
716
|
$e.value ? (openBlock(), createElementBlock("div", _hoisted_20, toDisplayString($e.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_21, [
|
|
726
717
|
createElementVNode("div", null, [
|
|
727
718
|
Re.hoveredData.offer_price ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
728
719
|
createElementVNode("div", _hoisted_23, [
|
|
729
|
-
createTextVNode(toDisplayString(unref(getPrice)(+((
|
|
720
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((qe = Re.hoveredData) == null ? void 0 : qe.price))) + " ", 1),
|
|
730
721
|
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
731
722
|
]),
|
|
732
723
|
createElementVNode("div", _hoisted_24, [
|
|
733
|
-
createTextVNode(toDisplayString(unref(getPrice)(+((
|
|
724
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((Ue = Re.hoveredData) == null ? void 0 : Ue.offer_price))) + " ", 1),
|
|
734
725
|
createElementVNode("span", _hoisted_25, toDisplayString(unref(currencySymbol)()), 1)
|
|
735
726
|
])
|
|
736
727
|
])) : (openBlock(), createElementBlock("div", _hoisted_26, [
|
|
737
|
-
createTextVNode(toDisplayString(unref(getPrice)(+((
|
|
728
|
+
createTextVNode(toDisplayString(unref(getPrice)(+((Qe = Re.hoveredData) == null ? void 0 : Qe.price))) + " ", 1),
|
|
738
729
|
createElementVNode("span", _hoisted_27, toDisplayString(unref(currencySymbol)()), 1)
|
|
739
730
|
]))
|
|
740
731
|
]),
|
|
741
732
|
createElementVNode("div", _hoisted_28, [
|
|
742
733
|
createElementVNode("span", _hoisted_29, [
|
|
743
|
-
createTextVNode(toDisplayString(unref(
|
|
734
|
+
createTextVNode(toDisplayString(unref(getArea)(+((Ge = (Je = Re.hoveredData) == null ? void 0 : Je.type) == null ? void 0 : Ge.area_m2))) + " m", 1),
|
|
744
735
|
Be[3] || (Be[3] = createElementVNode("sup", { class: "ire-bg-transparent !ire-text-base" }, " 2 ", -1))
|
|
745
736
|
])
|
|
746
737
|
])
|
|
@@ -760,7 +751,7 @@ const tr = (Le) => {
|
|
|
760
751
|
}, _hoisted_7$1 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_8$1 = { class: "irep-tooltip-3__block-title !text-2xl" }, _hoisted_9$1 = {
|
|
761
752
|
key: 2,
|
|
762
753
|
class: "irep-tooltip-3__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
|
|
763
|
-
}, _hoisted_10$1 = { 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$
|
|
754
|
+
}, _hoisted_10$1 = { 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$k = /* @__PURE__ */ defineComponent({
|
|
764
755
|
__name: "Tooltip_3",
|
|
765
756
|
props: {
|
|
766
757
|
hoveredData: {},
|
|
@@ -800,17 +791,14 @@ const tr = (Le) => {
|
|
|
800
791
|
}), _hoisted_1$e = {
|
|
801
792
|
key: 0,
|
|
802
793
|
class: "py-2 ire-mb-3 ire-flex ire-h-[48px] ire-items-center ire-justify-between ire-px-4"
|
|
803
|
-
}, _sfc_main$
|
|
794
|
+
}, _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
804
795
|
__name: "PreviewLayout",
|
|
805
796
|
props: {
|
|
806
797
|
hoverdData: {},
|
|
807
798
|
type: {}
|
|
808
799
|
},
|
|
809
800
|
setup(Le) {
|
|
810
|
-
const _e = useGlobalStore(), {
|
|
811
|
-
var Ne;
|
|
812
|
-
return ((Ne = ke.value.meta.find((ze) => ze.meta_key === "tooltip")) == null ? void 0 : Ne.meta_value) || "1";
|
|
813
|
-
});
|
|
801
|
+
const _e = useGlobalStore(), { getMetaValue: ke } = _e, De = inject("showFlatModal"), $e = ref(), Re = ref(!0), Be = computed$1(() => ke("tooltip") || "1");
|
|
814
802
|
return watch(
|
|
815
803
|
() => De == null ? void 0 : De.value,
|
|
816
804
|
() => {
|
|
@@ -830,23 +818,23 @@ const tr = (Le) => {
|
|
|
830
818
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
831
819
|
default: withCtx(() => [
|
|
832
820
|
Re.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
833
|
-
Be.value === "2" ? (openBlock(), createBlock(_sfc_main$
|
|
821
|
+
Be.value === "2" ? (openBlock(), createBlock(_sfc_main$l, {
|
|
834
822
|
key: 0,
|
|
835
823
|
"hovered-data": Ne.hoverdData,
|
|
836
824
|
type: Ne.type || "",
|
|
837
825
|
"mouse-track": !0,
|
|
838
826
|
class: "ire-hidden lg:ire-flex [&_.irep-tooltip]:group-active:!ire-scale-110"
|
|
839
|
-
}, null, 8, ["hovered-data", "type"])) : Be.value === "3" ? (openBlock(), createBlock(_sfc_main$
|
|
827
|
+
}, null, 8, ["hovered-data", "type"])) : Be.value === "3" ? (openBlock(), createBlock(_sfc_main$l, {
|
|
840
828
|
key: 1,
|
|
841
829
|
"hovered-data": Ne.hoverdData,
|
|
842
830
|
type: Ne.type || "",
|
|
843
831
|
class: "ire-hidden lg:ire-flex"
|
|
844
|
-
}, null, 8, ["hovered-data", "type"])) : Be.value === "4" ? (openBlock(), createBlock(_sfc_main$
|
|
832
|
+
}, null, 8, ["hovered-data", "type"])) : Be.value === "4" ? (openBlock(), createBlock(_sfc_main$k, {
|
|
845
833
|
key: 2,
|
|
846
834
|
"hovered-data": Ne.hoverdData,
|
|
847
835
|
type: Ne.type || "",
|
|
848
836
|
class: "ire-hidden lg:ire-flex [&_.irep-tooltip]:group-active:!ire-scale-110"
|
|
849
|
-
}, null, 8, ["hovered-data", "type"])) : (openBlock(), createBlock(_sfc_main$
|
|
837
|
+
}, null, 8, ["hovered-data", "type"])) : (openBlock(), createBlock(_sfc_main$m, {
|
|
850
838
|
key: 3,
|
|
851
839
|
"hovered-data": Ne.hoverdData,
|
|
852
840
|
type: Ne.type || "",
|
|
@@ -858,7 +846,7 @@ const tr = (Le) => {
|
|
|
858
846
|
})
|
|
859
847
|
], 512));
|
|
860
848
|
}
|
|
861
|
-
}), _hoisted_1$d = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_2$8 = ["src"], _hoisted_3$7 = ["innerHTML"], _sfc_main$
|
|
849
|
+
}), _hoisted_1$d = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_2$8 = ["src"], _hoisted_3$7 = ["innerHTML"], _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
862
850
|
__name: "ProjectPreview",
|
|
863
851
|
props: {
|
|
864
852
|
project: {},
|
|
@@ -889,36 +877,36 @@ const tr = (Le) => {
|
|
|
889
877
|
), watch(
|
|
890
878
|
() => ze.value,
|
|
891
879
|
(He) => {
|
|
892
|
-
var Xe, Ye, Ze,
|
|
880
|
+
var Xe, Ye, Ze, Ke, qe, Ue, Qe;
|
|
893
881
|
if (!He) return;
|
|
894
882
|
Re.hoverdSvg = He;
|
|
895
883
|
const We = He.parentElement;
|
|
896
884
|
if (We && (We == null ? void 0 : We.nodeName) === "g") {
|
|
897
885
|
const Je = We == null ? void 0 : We.getAttribute("id");
|
|
898
886
|
if (!Je || (Ie.value = ((Xe = De.project) == null ? void 0 : Xe.polygon_data.find((ei) => (ei == null ? void 0 : ei.key) === Je)) || null, !Ie.value)) return;
|
|
899
|
-
const
|
|
887
|
+
const Ge = (Ye = Ie.value) == null ? void 0 : Ye.id;
|
|
900
888
|
switch ((Ze = Ie.value) == null ? void 0 : Ze.type) {
|
|
901
889
|
case "floor":
|
|
902
|
-
const ei = (
|
|
903
|
-
(ti) => ti.id ===
|
|
890
|
+
const ei = (Ke = De.floors) == null ? void 0 : Ke.find(
|
|
891
|
+
(ti) => ti.id === Ge
|
|
904
892
|
);
|
|
905
893
|
Ae.value = ei;
|
|
906
894
|
break;
|
|
907
895
|
case "block":
|
|
908
896
|
const ii = (qe = De.blocks) == null ? void 0 : qe.find(
|
|
909
|
-
(ti) => (ti == null ? void 0 : ti.id) ===
|
|
897
|
+
(ti) => (ti == null ? void 0 : ti.id) === Ge
|
|
910
898
|
);
|
|
911
899
|
Ae.value = ii;
|
|
912
900
|
break;
|
|
913
901
|
case "flat":
|
|
914
902
|
const oi = (Ue = De.flats) == null ? void 0 : Ue.find(
|
|
915
|
-
(ti) => (ti == null ? void 0 : ti.id) ===
|
|
903
|
+
(ti) => (ti == null ? void 0 : ti.id) === Ge
|
|
916
904
|
);
|
|
917
905
|
Ae.value = oi;
|
|
918
906
|
break;
|
|
919
907
|
case "tooltip":
|
|
920
908
|
const ni = (Qe = De.actions) == null ? void 0 : Qe.find(
|
|
921
|
-
(ti) => (ti == null ? void 0 : ti.id) ===
|
|
909
|
+
(ti) => (ti == null ? void 0 : ti.id) === Ge
|
|
922
910
|
);
|
|
923
911
|
Ae.value = ni;
|
|
924
912
|
break;
|
|
@@ -935,16 +923,16 @@ const tr = (Le) => {
|
|
|
935
923
|
document.removeEventListener("mousemove", Fe);
|
|
936
924
|
}), (He, We) => {
|
|
937
925
|
var Xe;
|
|
938
|
-
return openBlock(), createBlock(_sfc_main$
|
|
926
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
939
927
|
hoverdData: Ae.value,
|
|
940
928
|
type: (Xe = Ie.value) == null ? void 0 : Xe.type
|
|
941
929
|
}, {
|
|
942
930
|
default: withCtx(() => {
|
|
943
|
-
var Ye, Ze,
|
|
931
|
+
var Ye, Ze, Ke, qe, Ue, Qe;
|
|
944
932
|
return [
|
|
945
933
|
createElementVNode("div", _hoisted_1$d, [
|
|
946
934
|
createElementVNode("img", {
|
|
947
|
-
src: (
|
|
935
|
+
src: (Ke = (Ze = (Ye = He.project) == null ? void 0 : Ye.project_image) == null ? void 0 : Ze[0]) == null ? void 0 : Ke.url,
|
|
948
936
|
alt: "",
|
|
949
937
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
950
938
|
}, null, 8, _hoisted_2$8),
|
|
@@ -970,7 +958,7 @@ const tr = (Le) => {
|
|
|
970
958
|
}), _hoisted_1$c = { class: "select ire-w-full ire-min-w-[150px] ire-max-w-[200px] ire-border ire-border-slate-200 lg:ire-min-w-[250px]" }, _hoisted_2$7 = {
|
|
971
959
|
key: 0,
|
|
972
960
|
class: "label"
|
|
973
|
-
}, _hoisted_3$6 = { class: "ire-relative" }, _hoisted_4$4 = ["value", "disabled"], _sfc_main$
|
|
961
|
+
}, _hoisted_3$6 = { class: "ire-relative" }, _hoisted_4$4 = ["value", "disabled"], _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
974
962
|
__name: "PreviewSelect",
|
|
975
963
|
props: /* @__PURE__ */ mergeModels({
|
|
976
964
|
data: {},
|
|
@@ -1019,14 +1007,19 @@ const tr = (Le) => {
|
|
|
1019
1007
|
])
|
|
1020
1008
|
]));
|
|
1021
1009
|
}
|
|
1022
|
-
}),
|
|
1010
|
+
}), _export_sfc = (Le, _e) => {
|
|
1011
|
+
const ke = Le.__vccOpts || Le;
|
|
1012
|
+
for (const [De, $e] of _e)
|
|
1013
|
+
ke[De] = $e;
|
|
1014
|
+
return ke;
|
|
1015
|
+
}, _sfc_main$g = {}, _hoisted_1$b = {
|
|
1023
1016
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1024
1017
|
width: "32",
|
|
1025
1018
|
height: "32",
|
|
1026
1019
|
viewBox: "0 0 32 32",
|
|
1027
1020
|
fill: "none"
|
|
1028
1021
|
};
|
|
1029
|
-
function _sfc_render$
|
|
1022
|
+
function _sfc_render$4(Le, _e) {
|
|
1030
1023
|
return openBlock(), createElementBlock("svg", _hoisted_1$b, _e[0] || (_e[0] = [
|
|
1031
1024
|
createElementVNode("path", {
|
|
1032
1025
|
d: "M22.7074 16.7076L12.7074 26.7076C12.6145 26.8005 12.5042 26.8742 12.3828 26.9245C12.2614 26.9747 12.1313 27.0006 11.9999 27.0006C11.8686 27.0006 11.7384 26.9747 11.617 26.9245C11.4957 26.8742 11.3854 26.8005 11.2924 26.7076C11.1995 26.6147 11.1258 26.5044 11.0756 26.383C11.0253 26.2616 10.9994 26.1315 10.9994 26.0001C10.9994 25.8687 11.0253 25.7386 11.0756 25.6172C11.1258 25.4958 11.1995 25.3855 11.2924 25.2926L20.5862 16.0001L11.2924 6.70757C11.1048 6.51993 10.9994 6.26543 10.9994 6.00007C10.9994 5.7347 11.1048 5.48021 11.2924 5.29257C11.4801 5.10493 11.7346 4.99951 11.9999 4.99951C12.2653 4.99951 12.5198 5.10493 12.7074 5.29257L22.7074 15.2926C22.8004 15.3854 22.8742 15.4957 22.9245 15.6171C22.9748 15.7385 23.0007 15.8687 23.0007 16.0001C23.0007 16.1315 22.9748 16.2616 22.9245 16.383C22.8742 16.5044 22.8004 16.6147 22.7074 16.7076Z",
|
|
@@ -1034,7 +1027,7 @@ function _sfc_render$3(Le, _e) {
|
|
|
1034
1027
|
}, null, -1)
|
|
1035
1028
|
]));
|
|
1036
1029
|
}
|
|
1037
|
-
const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1030
|
+
const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$4]]), _hoisted_1$a = { 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-2 ire-shadow-sm ire-transition-all hover:ire-bg-black lg:ire-px-5 lg:ire-py-2" }, _hoisted_2$6 = { class: "back-button-text !ire-text-sm ire-text-black group-hover/button:!ire-text-white lg:!ire-text-balance" }, _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
1038
1031
|
__name: "BackButton",
|
|
1039
1032
|
setup(Le) {
|
|
1040
1033
|
return (_e, ke) => (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
@@ -1042,7 +1035,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_ren
|
|
|
1042
1035
|
createElementVNode("div", _hoisted_2$6, toDisplayString(unref(tr)("back")), 1)
|
|
1043
1036
|
]));
|
|
1044
1037
|
}
|
|
1045
|
-
}), _hoisted_1$9 = { class: "ire-w-fit ire-bg-white" }, _hoisted_2$5 = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_3$5 = ["src"], _hoisted_4$3 = ["innerHTML"], _sfc_main$
|
|
1038
|
+
}), _hoisted_1$9 = { class: "ire-w-fit ire-bg-white" }, _hoisted_2$5 = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_3$5 = ["src"], _hoisted_4$3 = ["innerHTML"], _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
1046
1039
|
__name: "FloorPreview",
|
|
1047
1040
|
props: {
|
|
1048
1041
|
flats: {},
|
|
@@ -1069,9 +1062,9 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_ren
|
|
|
1069
1062
|
).map((qe) => {
|
|
1070
1063
|
var Qe, Je;
|
|
1071
1064
|
const Ue = (Qe = De.blocks) == null ? void 0 : Qe.find(
|
|
1072
|
-
(
|
|
1065
|
+
(Ge) => {
|
|
1073
1066
|
var ei;
|
|
1074
|
-
return (
|
|
1067
|
+
return (Ge == null ? void 0 : Ge.id) === ((ei = qe == null ? void 0 : qe.block_id) == null ? void 0 : ei.toString());
|
|
1075
1068
|
}
|
|
1076
1069
|
);
|
|
1077
1070
|
return {
|
|
@@ -1082,14 +1075,14 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_ren
|
|
|
1082
1075
|
const Ue = qe.target;
|
|
1083
1076
|
Ue && (Ae.value = Ue);
|
|
1084
1077
|
}, Ye = (qe) => {
|
|
1085
|
-
var Qe, Je,
|
|
1078
|
+
var Qe, Je, Ge;
|
|
1086
1079
|
const Ue = qe.target;
|
|
1087
|
-
(Ue == null ? void 0 : Ue.nodeName) === "path" && (je.value && "conf" in je.value && (((Qe = je.value) == null ? void 0 : Qe.conf) === "reserved" && !Be.value || ((Je = je.value) == null ? void 0 : Je.conf) === "sold" && !Ne.value) || ke("changeComponent", ((
|
|
1080
|
+
(Ue == null ? void 0 : Ue.nodeName) === "path" && (je.value && "conf" in je.value && (((Qe = je.value) == null ? void 0 : Qe.conf) === "reserved" && !Be.value || ((Je = je.value) == null ? void 0 : Je.conf) === "sold" && !Ne.value) || ke("changeComponent", ((Ge = Ie.value) == null ? void 0 : Ge.type) || "", je.value));
|
|
1088
1081
|
}, Ze = () => {
|
|
1089
1082
|
var qe;
|
|
1090
1083
|
ze.value && ((qe = ze.value) == null ? void 0 : qe.querySelectorAll("g")).forEach((Qe) => {
|
|
1091
1084
|
var ei, ii, oi, ni, ti, si;
|
|
1092
|
-
const Je = Qe == null ? void 0 : Qe.getAttribute("id"),
|
|
1085
|
+
const Je = Qe == null ? void 0 : Qe.getAttribute("id"), Ge = (ii = (ei = De.floor) == null ? void 0 : ei.polygon_data) == null ? void 0 : ii.find(
|
|
1093
1086
|
(ai) => (ai == null ? void 0 : ai.key) === Je
|
|
1094
1087
|
);
|
|
1095
1088
|
if (De.flats)
|
|
@@ -1097,26 +1090,26 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_ren
|
|
|
1097
1090
|
Qe.setAttribute("conf", ((ni = De.floor) == null ? void 0 : ni.conf) || "");
|
|
1098
1091
|
else {
|
|
1099
1092
|
const ai = (ti = De.flats) == null ? void 0 : ti.find(
|
|
1100
|
-
(ri) => (ri == null ? void 0 : ri.id) === (
|
|
1093
|
+
(ri) => (ri == null ? void 0 : ri.id) === (Ge == null ? void 0 : Ge.id)
|
|
1101
1094
|
);
|
|
1102
1095
|
Qe == null || Qe.setAttribute("conf", ((si = ai == null ? void 0 : ai.conf) == null ? void 0 : si.toString()) || "");
|
|
1103
1096
|
}
|
|
1104
1097
|
});
|
|
1105
|
-
},
|
|
1098
|
+
}, Ke = () => {
|
|
1106
1099
|
var qe;
|
|
1107
1100
|
(qe = De.floor) != null && qe.block_id ? ke("changeComponent", "block", Ve.value) : ke("changeComponent", "project", null);
|
|
1108
1101
|
};
|
|
1109
1102
|
return watch(
|
|
1110
1103
|
() => Ae.value,
|
|
1111
1104
|
(qe) => {
|
|
1112
|
-
var Qe, Je,
|
|
1105
|
+
var Qe, Je, Ge, ei, ii, oi, ni;
|
|
1113
1106
|
if (!qe) return;
|
|
1114
1107
|
Re.hoverdSvg = qe;
|
|
1115
1108
|
const Ue = qe == null ? void 0 : qe.parentElement;
|
|
1116
1109
|
if (Ue && (Ue == null ? void 0 : Ue.nodeName) === "g") {
|
|
1117
1110
|
const ti = Ue.getAttribute("id");
|
|
1118
1111
|
if (!ti || (Ie.value = ((Je = (Qe = De.floor) == null ? void 0 : Qe.polygon_data) == null ? void 0 : Je.find((si) => (si == null ? void 0 : si.key) === ti)) || null, !Ie.value)) return;
|
|
1119
|
-
if (((
|
|
1112
|
+
if (((Ge = Ie.value) == null ? void 0 : Ge.type) === "flat") {
|
|
1120
1113
|
const si = (ei = De.flats) == null ? void 0 : ei.find(
|
|
1121
1114
|
(ri) => {
|
|
1122
1115
|
var li;
|
|
@@ -1160,27 +1153,27 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_ren
|
|
|
1160
1153
|
var qe, Ue, Qe;
|
|
1161
1154
|
Ve.value = (qe = De.blocks) == null ? void 0 : qe.find(
|
|
1162
1155
|
(Je) => {
|
|
1163
|
-
var
|
|
1164
|
-
return (Je == null ? void 0 : Je.id) === ((ei = (
|
|
1156
|
+
var Ge, ei;
|
|
1157
|
+
return (Je == null ? void 0 : Je.id) === ((ei = (Ge = De.floor) == null ? void 0 : Ge.block_id) == null ? void 0 : ei.toString());
|
|
1165
1158
|
}
|
|
1166
1159
|
), Fe.value = (Qe = (Ue = We.value) == null ? void 0 : Ue.find(
|
|
1167
1160
|
(Je) => {
|
|
1168
|
-
var
|
|
1169
|
-
return (Je == null ? void 0 : Je.value) == ((
|
|
1161
|
+
var Ge;
|
|
1162
|
+
return (Je == null ? void 0 : Je.value) == ((Ge = De.floor) == null ? void 0 : Ge.id);
|
|
1170
1163
|
}
|
|
1171
1164
|
)) == null ? void 0 : Qe.value, Ze(), document.addEventListener("mousemove", Xe);
|
|
1172
1165
|
}), onUnmounted(() => {
|
|
1173
1166
|
document.removeEventListener("mousemove", Xe);
|
|
1174
1167
|
}), (qe, Ue) => {
|
|
1175
1168
|
var Qe;
|
|
1176
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1169
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
1177
1170
|
hoverdData: je.value,
|
|
1178
1171
|
type: (Qe = Ie.value) == null ? void 0 : Qe.type
|
|
1179
1172
|
}, {
|
|
1180
1173
|
header: withCtx(() => [
|
|
1181
|
-
createVNode(_sfc_main$
|
|
1174
|
+
createVNode(_sfc_main$f, { onClick: Ke }),
|
|
1182
1175
|
createElementVNode("div", _hoisted_1$9, [
|
|
1183
|
-
createVNode(_sfc_main$
|
|
1176
|
+
createVNode(_sfc_main$h, {
|
|
1184
1177
|
modelValue: Fe.value,
|
|
1185
1178
|
"onUpdate:modelValue": Ue[0] || (Ue[0] = (Je) => Fe.value = Je),
|
|
1186
1179
|
data: We.value
|
|
@@ -1188,11 +1181,11 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_ren
|
|
|
1188
1181
|
])
|
|
1189
1182
|
]),
|
|
1190
1183
|
default: withCtx(() => {
|
|
1191
|
-
var Je,
|
|
1184
|
+
var Je, Ge, ei;
|
|
1192
1185
|
return [
|
|
1193
1186
|
createElementVNode("div", _hoisted_2$5, [
|
|
1194
1187
|
createElementVNode("img", {
|
|
1195
|
-
src: ((ei = (
|
|
1188
|
+
src: ((ei = (Ge = (Je = qe.floor) == null ? void 0 : Je.floor_image) == null ? void 0 : Ge[0]) == null ? void 0 : ei.url) || "",
|
|
1196
1189
|
alt: "",
|
|
1197
1190
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
1198
1191
|
}, null, 8, _hoisted_3$5),
|
|
@@ -1211,19 +1204,19 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_ren
|
|
|
1211
1204
|
}, 8, ["hoverdData", "type"]);
|
|
1212
1205
|
};
|
|
1213
1206
|
}
|
|
1214
|
-
}), _sfc_main$
|
|
1207
|
+
}), _sfc_main$d = {}, _hoisted_1$8 = {
|
|
1215
1208
|
width: "24",
|
|
1216
1209
|
height: "24",
|
|
1217
1210
|
viewBox: "0 0 24 24",
|
|
1218
1211
|
fill: "none",
|
|
1219
1212
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1220
1213
|
};
|
|
1221
|
-
function _sfc_render$
|
|
1214
|
+
function _sfc_render$3(Le, _e) {
|
|
1222
1215
|
return openBlock(), createElementBlock("svg", _hoisted_1$8, _e[0] || (_e[0] = [
|
|
1223
1216
|
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)
|
|
1224
1217
|
]));
|
|
1225
1218
|
}
|
|
1226
|
-
const FlatIcon = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
1219
|
+
const FlatIcon = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$3]]), t = (Le, _e = 1e4) => (Le = parseFloat(Le + "") || 0, Math.round((Le + Number.EPSILON) * _e) / _e), e = function(Le) {
|
|
1227
1220
|
if (!(Le && Le instanceof Element && Le.offsetParent)) return !1;
|
|
1228
1221
|
const _e = Le.scrollHeight > Le.clientHeight, ke = window.getComputedStyle(Le).overflowY, De = ke.indexOf("hidden") !== -1, $e = ke.indexOf("visible") !== -1;
|
|
1229
1222
|
return _e && !De && !$e;
|
|
@@ -1564,8 +1557,8 @@ class I extends g {
|
|
|
1564
1557
|
const { content: ke, contentRect: De } = this, { fitWidth: $e, fitHeight: Re, fullWidth: Be, fullHeight: Ne } = De;
|
|
1565
1558
|
let ze = Be, Ae = Ne;
|
|
1566
1559
|
if (this.option("zoom") || this.angle !== 0) {
|
|
1567
|
-
const Ie = !(ke instanceof HTMLImageElement) && (window.getComputedStyle(ke).maxWidth === "none" || window.getComputedStyle(ke).maxHeight === "none"), je = Ie ? Be : $e, Fe = Ie ? Ne : Re, Ve = this.getMatrix(_e), He = new DOMPoint(0, 0).matrixTransform(Ve), We = new DOMPoint(0 + je, 0).matrixTransform(Ve), Xe = new DOMPoint(0 + je, 0 + Fe).matrixTransform(Ve), Ye = new DOMPoint(0, 0 + Fe).matrixTransform(Ve), Ze = Math.abs(Xe.x - He.x),
|
|
1568
|
-
ze = Math.max(Ze, qe), Ae = Math.max(
|
|
1560
|
+
const Ie = !(ke instanceof HTMLImageElement) && (window.getComputedStyle(ke).maxWidth === "none" || window.getComputedStyle(ke).maxHeight === "none"), je = Ie ? Be : $e, Fe = Ie ? Ne : Re, Ve = this.getMatrix(_e), He = new DOMPoint(0, 0).matrixTransform(Ve), We = new DOMPoint(0 + je, 0).matrixTransform(Ve), Xe = new DOMPoint(0 + je, 0 + Fe).matrixTransform(Ve), Ye = new DOMPoint(0, 0 + Fe).matrixTransform(Ve), Ze = Math.abs(Xe.x - He.x), Ke = Math.abs(Xe.y - He.y), qe = Math.abs(Ye.x - We.x), Ue = Math.abs(Ye.y - We.y);
|
|
1561
|
+
ze = Math.max(Ze, qe), Ae = Math.max(Ke, Ue);
|
|
1569
1562
|
}
|
|
1570
1563
|
return { contentWidth: ze, contentHeight: Ae };
|
|
1571
1564
|
}
|
|
@@ -1642,8 +1635,8 @@ class I extends g {
|
|
|
1642
1635
|
const { content: $e } = this, Re = h(De[0], De[1]), Be = h(ke[0], ke[1]);
|
|
1643
1636
|
let Ne = 0, ze = 0;
|
|
1644
1637
|
if (ke.length > 1) {
|
|
1645
|
-
const
|
|
1646
|
-
Ne = Re.clientX -
|
|
1638
|
+
const Ke = $e.getBoundingClientRect();
|
|
1639
|
+
Ne = Re.clientX - Ke.left - 0.5 * Ke.width, ze = Re.clientY - Ke.top - 0.5 * Ke.height;
|
|
1647
1640
|
}
|
|
1648
1641
|
const Ae = c(De[0], De[1]), Ie = c(ke[0], ke[1]);
|
|
1649
1642
|
let je = Ae ? Ie / Ae : 1, Fe = Be.clientX - Re.clientX, Ve = Be.clientY - Re.clientY;
|
|
@@ -1651,8 +1644,8 @@ class I extends g {
|
|
|
1651
1644
|
let He = t(this.targetScale) === t(this.minScale) && this.option("lockAxis");
|
|
1652
1645
|
if (He && !this.lockedAxis) if (He === "xy" || He === "y" || _e.type === "touchmove") {
|
|
1653
1646
|
if (Math.abs(this.dragOffset.x) < 6 && Math.abs(this.dragOffset.y) < 6) return void _e.preventDefault();
|
|
1654
|
-
const
|
|
1655
|
-
this.lockedAxis =
|
|
1647
|
+
const Ke = Math.abs(180 * Math.atan2(this.dragOffset.y, this.dragOffset.x) / Math.PI);
|
|
1648
|
+
this.lockedAxis = Ke > 45 && Ke < 135 ? "y" : "x", this.dragOffset.x = 0, this.dragOffset.y = 0, Fe = 0, Ve = 0;
|
|
1656
1649
|
} else this.lockedAxis = He;
|
|
1657
1650
|
if (i(_e.target, this.content) && (He = "x", this.dragOffset.y = 0), He && He !== "xy" && this.lockedAxis !== He && t(this.targetScale) === t(this.minScale)) return;
|
|
1658
1651
|
_e.cancelable && _e.preventDefault(), this.container.classList.add(this.cn("isDragging"));
|
|
@@ -1669,7 +1662,7 @@ class I extends g {
|
|
|
1669
1662
|
var _e;
|
|
1670
1663
|
const ke = this.isScaling;
|
|
1671
1664
|
this.rAF && (cancelAnimationFrame(this.rAF), this.rAF = null), this.isBouncingX = !1, this.isBouncingY = !1;
|
|
1672
|
-
for (const
|
|
1665
|
+
for (const Ke of v) this.velocity[Ke] = 0;
|
|
1673
1666
|
this.target.e = this.current.e, this.target.f = this.current.f, S(this.container, "is-scaling"), S(this.container, "is-animating"), this.isTicking = !1;
|
|
1674
1667
|
const { trackingPoints: De } = this, $e = De[0], Re = De[De.length - 1];
|
|
1675
1668
|
let Be = 0, Ne = 0, ze = 0;
|
|
@@ -1680,8 +1673,8 @@ class I extends g {
|
|
|
1680
1673
|
const We = this.targetScale;
|
|
1681
1674
|
if (ze > 0) {
|
|
1682
1675
|
Fe = Math.abs(Be) > 3 ? Be / (ze / 30) : 0, Ve = Math.abs(Ne) > 3 ? Ne / (ze / 30) : 0;
|
|
1683
|
-
const
|
|
1684
|
-
|
|
1676
|
+
const Ke = this.option("maxVelocity");
|
|
1677
|
+
Ke && (Fe = Math.max(Math.min(Fe, Ke), -1 * Ke), Ve = Math.max(Math.min(Ve, Ke), -1 * Ke));
|
|
1685
1678
|
}
|
|
1686
1679
|
Fe && (Ie = Fe / (1 / (1 - He) - 1)), Ve && (je = Ve / (1 / (1 - He) - 1)), (this.option("lockAxis") === "y" || this.option("lockAxis") === "xy" && this.lockedAxis === "y" && t(We) === this.minScale) && (Ie = Fe = 0), (this.option("lockAxis") === "x" || this.option("lockAxis") === "xy" && this.lockedAxis === "x" && t(We) === this.minScale) && (je = Ve = 0);
|
|
1687
1680
|
const Xe = this.dragOffset.x, Ye = this.dragOffset.y, Ze = this.option("dragMinThreshold") || 0;
|
|
@@ -1733,20 +1726,20 @@ class I extends g {
|
|
|
1733
1726
|
return si = ti instanceof HTMLImageElement ? ti.naturalHeight : ti instanceof SVGElement ? ti.height.baseVal.value : Math.max(ti.offsetHeight, ti.scrollHeight), si || 0;
|
|
1734
1727
|
})(Re);
|
|
1735
1728
|
let Xe = this.option("width", He) || z, Ye = this.option("height", We) || z;
|
|
1736
|
-
const Ze = Xe === z,
|
|
1737
|
-
typeof Xe != "number" && (Xe = He), typeof Ye != "number" && (Ye = We), Ze && (Xe = He * (Ye / We)),
|
|
1729
|
+
const Ze = Xe === z, Ke = Ye === z;
|
|
1730
|
+
typeof Xe != "number" && (Xe = He), typeof Ye != "number" && (Ye = We), Ze && (Xe = He * (Ye / We)), Ke && (Ye = We / (He / Xe));
|
|
1738
1731
|
let qe = Re.parentElement instanceof HTMLPictureElement ? Re.parentElement : Re;
|
|
1739
1732
|
this.option("transformParent") && (qe = qe.parentElement || qe);
|
|
1740
1733
|
const Ue = qe.getAttribute("style") || "";
|
|
1741
1734
|
qe.style.setProperty("transform", "none", "important"), Be && (qe.style.width = "", qe.style.height = ""), qe.offsetHeight;
|
|
1742
1735
|
const Qe = Re.getBoundingClientRect();
|
|
1743
|
-
let Je = Qe.width * De,
|
|
1744
|
-
Je = Math.min(Je, Xe),
|
|
1736
|
+
let Je = Qe.width * De, Ge = Qe.height * De, ei = Je, ii = Ge;
|
|
1737
|
+
Je = Math.min(Je, Xe), Ge = Math.min(Ge, Ye), Be ? { width: Je, height: Ge } = ((ti, si, ai, ri) => {
|
|
1745
1738
|
const li = ai / ti, ui = ri / si, di = Math.min(li, ui);
|
|
1746
1739
|
return { width: ti *= di, height: si *= di };
|
|
1747
|
-
})(Xe, Ye, Je,
|
|
1748
|
-
let oi = 0.5 * (ii -
|
|
1749
|
-
this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: Qe.top - Ne.top + oi, bottom: Ne.bottom - Qe.bottom + oi, left: Qe.left - Ne.left + ni, right: Ne.right - Qe.right + ni, fitWidth: Je, fitHeight:
|
|
1740
|
+
})(Xe, Ye, Je, Ge) : (Je = Math.min(Je, Xe), Ge = Math.min(Ge, Ye));
|
|
1741
|
+
let oi = 0.5 * (ii - Ge), ni = 0.5 * (ei - Je);
|
|
1742
|
+
this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: Qe.top - Ne.top + oi, bottom: Ne.bottom - Qe.bottom + oi, left: Qe.left - Ne.left + ni, right: Ne.right - Qe.right + ni, fitWidth: Je, fitHeight: Ge, width: Je, height: Ge, fullWidth: Xe, fullHeight: Ye }), qe.style.cssText = Ue, Be && (qe.style.width = `${Je}px`, qe.style.height = `${Ge}px`), this.setTransform(), _e !== !0 && this.emit("refresh"), this.ignoreBounds || (t(this.targetScale) < t(this.minScale) ? this.zoomTo(this.minScale, { friction: 0 }) : this.targetScale > this.maxScale ? this.zoomTo(this.maxScale, { friction: 0 }) : this.state === m.Init || this.checkBounds().inBounds || this.requestTick()), this.updateControls();
|
|
1750
1743
|
}
|
|
1751
1744
|
calculateBounds() {
|
|
1752
1745
|
const { contentWidth: _e, contentHeight: ke } = this.calculateContentDim(this.target), { targetScale: De, lockedAxis: $e } = this, { fitWidth: Re, fitHeight: Be } = this.contentRect;
|
|
@@ -1810,8 +1803,8 @@ class I extends g {
|
|
|
1810
1803
|
let Ye = new DOMMatrix().translate(He, We).translate(Re, Be).translate(_e, ke);
|
|
1811
1804
|
if (this.option("zoom")) {
|
|
1812
1805
|
if (!Ie) {
|
|
1813
|
-
const Ze = this.targetScale,
|
|
1814
|
-
Ze * De <
|
|
1806
|
+
const Ze = this.targetScale, Ke = this.minScale, qe = this.maxScale;
|
|
1807
|
+
Ze * De < Ke && (De = Ke / Ze), Ze * De > qe && (De = qe / Ze);
|
|
1815
1808
|
}
|
|
1816
1809
|
Ye = Ye.scale(De);
|
|
1817
1810
|
}
|
|
@@ -2277,19 +2270,19 @@ class Q extends g {
|
|
|
2277
2270
|
repositionSlides() {
|
|
2278
2271
|
let _e, { isHorizontal: ke, isRTL: De, isInfinite: $e, viewport: Re, viewportDim: Be, contentDim: Ne, page: ze, pages: Ae, slides: Ie, panzoom: je } = this, Fe = 0, Ve = 0, He = 0, We = 0;
|
|
2279
2272
|
je ? We = -1 * je.current[this.axis] : Ae[ze] && (We = Ae[ze].pos || 0), _e = ke ? De ? "right" : "left" : "top", De && ke && (We *= -1);
|
|
2280
|
-
for (const
|
|
2281
|
-
const qe =
|
|
2282
|
-
qe ? (_e === "top" ? (qe.style.right = "", qe.style.left = "") : qe.style.top = "",
|
|
2273
|
+
for (const Ke of Ie) {
|
|
2274
|
+
const qe = Ke.el;
|
|
2275
|
+
qe ? (_e === "top" ? (qe.style.right = "", qe.style.left = "") : qe.style.top = "", Ke.index !== Fe ? qe.style[_e] = Ve === 0 ? "" : `${t(Ve, 1e3)}px` : qe.style[_e] = "", He += Ke.dim + Ke.gap, Fe++) : Ve += Ke.dim + Ke.gap;
|
|
2283
2276
|
}
|
|
2284
2277
|
if ($e && He && Re) {
|
|
2285
|
-
let
|
|
2286
|
-
We -= Qe, Be += Qe, Be += parseFloat(
|
|
2278
|
+
let Ke = getComputedStyle(Re), qe = "padding", Ue = ke ? "Right" : "Bottom", Qe = parseFloat(Ke[qe + (ke ? "Left" : "Top")]);
|
|
2279
|
+
We -= Qe, Be += Qe, Be += parseFloat(Ke[qe + Ue]);
|
|
2287
2280
|
for (const Je of Ie) Je.el && (t(Je.pos) < t(Be) && t(Je.pos + Je.dim + Je.gap) < t(We) && t(We) > t(Ne - Be) && (Je.el.style[_e] = `${t(Ve + He, 1e3)}px`), t(Je.pos + Je.gap) >= t(Ne - Be) && t(Je.pos) > t(We + Be) && t(We) < t(Be) && (Je.el.style[_e] = `-${t(He, 1e3)}px`));
|
|
2288
2281
|
}
|
|
2289
2282
|
let Xe, Ye, Ze = [...this.inTransition];
|
|
2290
2283
|
if (Ze.length > 1 && (Xe = Ae[Ze[0]], Ye = Ae[Ze[1]]), Xe && Ye) {
|
|
2291
|
-
let
|
|
2292
|
-
for (const qe of Ie) qe.el ? this.inTransition.has(qe.index) && Xe.slides.indexOf(qe) < 0 && (qe.el.style[_e] = `${t(
|
|
2284
|
+
let Ke = 0;
|
|
2285
|
+
for (const qe of Ie) qe.el ? this.inTransition.has(qe.index) && Xe.slides.indexOf(qe) < 0 && (qe.el.style[_e] = `${t(Ke + (Xe.pos - Ye.pos), 1e3)}px`) : Ke += qe.dim + qe.gap;
|
|
2293
2286
|
}
|
|
2294
2287
|
}
|
|
2295
2288
|
createSlideEl(_e) {
|
|
@@ -2336,8 +2329,8 @@ class Q extends g {
|
|
|
2336
2329
|
this.inTransition.add(We.index), this.createSlideEl(We);
|
|
2337
2330
|
let Xe = He.el, Ye = We.el;
|
|
2338
2331
|
Ve || ke === J || (ke = "fadeFast", Xe = null);
|
|
2339
|
-
const Ze = this.isRTL ? "next" : "prev",
|
|
2340
|
-
return Xe && (this.inTransition.add(He.index), He.transition = ke, Xe.addEventListener(G, this.onAnimationEnd), Xe.classList.add(`f-${ke}Out`, `to-${je > 0 ?
|
|
2332
|
+
const Ze = this.isRTL ? "next" : "prev", Ke = this.isRTL ? "prev" : "next";
|
|
2333
|
+
return Xe && (this.inTransition.add(He.index), He.transition = ke, Xe.addEventListener(G, this.onAnimationEnd), Xe.classList.add(`f-${ke}Out`, `to-${je > 0 ? Ke : Ze}`)), Ye && (We.transition = ke, Ye.addEventListener(G, this.onAnimationEnd), Ye.classList.add(`f-${ke}In`, `from-${je > 0 ? Ze : Ke}`)), Ae.current[this.axis] = Fe, Ae.target[this.axis] = Fe, Ae.requestTick(), this.onChange(Ie), !0;
|
|
2341
2334
|
}
|
|
2342
2335
|
manageSlideVisiblity() {
|
|
2343
2336
|
const _e = /* @__PURE__ */ new Set(), ke = /* @__PURE__ */ new Set(), De = this.getVisibleSlides(parseFloat(this.option("preload", 0) + "") || 0);
|
|
@@ -2573,8 +2566,8 @@ class Q extends g {
|
|
|
2573
2566
|
let Fe = 0, Ve = 0, He = 0, We = _e === void 0 ? -1 * ((Be == null ? void 0 : Be.target[this.axis]) || 0) : _e;
|
|
2574
2567
|
je && (We += 0.5 * ke), this.isInfinite ? (We < Ae.pos - 0.5 * Ie.gap && (We -= De, He = -1), We > Ie.pos + Ie.dim + 0.5 * Ie.gap && (We -= De, He = 1)) : We = Math.max(Ae.pos || 0, Math.min(We, Ie.pos));
|
|
2575
2568
|
let Xe = Ie, Ye = $e.find((Ze) => {
|
|
2576
|
-
const
|
|
2577
|
-
return Xe = Ze, We >=
|
|
2569
|
+
const Ke = Ze.pos - 0.5 * Xe.gap, qe = Ze.pos + Ze.dim + 0.5 * Ze.gap;
|
|
2570
|
+
return Xe = Ze, We >= Ke && We < qe;
|
|
2578
2571
|
});
|
|
2579
2572
|
return Ye || (Ye = Ie), Ve = this.getPageForSlide(Ye.index), Fe = Ve + He * Ne, { page: Fe, pageIndex: Ve };
|
|
2580
2573
|
}
|
|
@@ -2710,8 +2703,8 @@ class wt extends _ {
|
|
|
2710
2703
|
(((_e = window.visualViewport) === null || _e === void 0 ? void 0 : _e.scale) || 1) === 1 && Object.assign(De.style, { position: "absolute", top: `${De.offsetTop + window.scrollY}px`, left: `${De.offsetLeft + window.scrollX}px`, bottom: "auto", right: "auto", width: `${Ie.width}px`, height: `${Ie.height}px`, overflow: "hidden" });
|
|
2711
2704
|
const { x: je, y: Fe, scale: Ve, opacity: He } = Ae;
|
|
2712
2705
|
if (He) {
|
|
2713
|
-
const We = ((Xe, Ye, Ze,
|
|
2714
|
-
const qe = Ye - Xe, Ue =
|
|
2706
|
+
const We = ((Xe, Ye, Ze, Ke) => {
|
|
2707
|
+
const qe = Ye - Xe, Ue = Ke - Ze;
|
|
2715
2708
|
return (Qe) => Ze + ((Qe - Xe) / qe * Ue || 0);
|
|
2716
2709
|
})(Ne.scale, Ve, 1, 0);
|
|
2717
2710
|
Ne.on("afterTransform", () => {
|
|
@@ -2829,9 +2822,9 @@ class wt extends _ {
|
|
|
2829
2822
|
if (!(je && Fe && We && Xe)) return !1;
|
|
2830
2823
|
const Ye = Re.container.getBoundingClientRect();
|
|
2831
2824
|
He += Ye.left, Ve += Ye.top;
|
|
2832
|
-
const Ze = -1 * (He + 0.5 * We - (Ie + 0.5 * je)),
|
|
2825
|
+
const Ze = -1 * (He + 0.5 * We - (Ie + 0.5 * je)), Ke = -1 * (Ve + 0.5 * Xe - (Ae + 0.5 * Fe)), qe = je / We;
|
|
2833
2826
|
let Ue = this.option("zoomOpacity") || !1;
|
|
2834
|
-
return Ue === "auto" && (Ue = Math.abs(je / Fe - We / Xe) > 0.1), { x: Ze, y:
|
|
2827
|
+
return Ue === "auto" && (Ue = Math.abs(je / Fe - We / Xe) > 0.1), { x: Ze, y: Ke, scale: qe, opacity: Ue };
|
|
2835
2828
|
}
|
|
2836
2829
|
attach() {
|
|
2837
2830
|
const _e = this, ke = _e.instance;
|
|
@@ -4173,7 +4166,7 @@ class Oe extends g {
|
|
|
4173
4166
|
}
|
|
4174
4167
|
}
|
|
4175
4168
|
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() });
|
|
4176
|
-
const _sfc_main$
|
|
4169
|
+
const _sfc_main$c = {
|
|
4177
4170
|
props: {
|
|
4178
4171
|
options: Object
|
|
4179
4172
|
},
|
|
@@ -4191,12 +4184,12 @@ const _sfc_main$b = {
|
|
|
4191
4184
|
Oe.destroy();
|
|
4192
4185
|
}
|
|
4193
4186
|
}, _hoisted_1$7 = { ref: "container" };
|
|
4194
|
-
function _sfc_render$
|
|
4187
|
+
function _sfc_render$2(Le, _e, ke, De, $e, Re) {
|
|
4195
4188
|
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
4196
4189
|
renderSlot(Le.$slots, "default")
|
|
4197
4190
|
], 512);
|
|
4198
4191
|
}
|
|
4199
|
-
const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4192
|
+
const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$2]]), _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
4200
4193
|
__name: "Button",
|
|
4201
4194
|
props: {
|
|
4202
4195
|
title: {},
|
|
@@ -4217,7 +4210,7 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
4217
4210
|
}, toDisplayString(_e.title), 3)
|
|
4218
4211
|
], 2));
|
|
4219
4212
|
}
|
|
4220
|
-
}), _hoisted_1$6 = { class: "ire-flex ire-h-fit ire-w-fit ire-flex-col ire-items-center" }, _hoisted_2$4 = { class: "flat-preview-value ire-min-w-max ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_3$4 = { class: "flat-preview-text ire-border-b ire-border-solid ire-border-b-gray-200 ire-py-2 ire-text-sm ire-capitalize ire-text-gray-600" }, _sfc_main$
|
|
4213
|
+
}), _hoisted_1$6 = { class: "ire-flex ire-h-fit ire-w-fit ire-flex-col ire-items-center" }, _hoisted_2$4 = { class: "flat-preview-value ire-min-w-max ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_3$4 = { class: "flat-preview-text ire-border-b ire-border-solid ire-border-b-gray-200 ire-py-2 ire-text-sm ire-capitalize ire-text-gray-600" }, _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
4221
4214
|
__name: "FlatPreviewKeyValue",
|
|
4222
4215
|
props: {
|
|
4223
4216
|
keyName: {},
|
|
@@ -4233,16 +4226,16 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
4233
4226
|
createElementVNode("div", _hoisted_3$4, toDisplayString(_e.keyName), 1)
|
|
4234
4227
|
]));
|
|
4235
4228
|
}
|
|
4236
|
-
}), _hoisted_1$5 = { class: "ire-flex ire-flex-col ire-items-start ire-justify-center lg:ire-flex-row" }, _hoisted_2$3 = { class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-justify-center ire-bg-gray-50 ire-p-4 lg:ire-w-auto [&_img]:ire-rounded-none" }, _hoisted_3$3 = {
|
|
4229
|
+
}), _hoisted_1$5 = { class: "irep-flat-preview ire-flex ire-flex-col ire-items-start ire-justify-center lg:ire-flex-row" }, _hoisted_2$3 = { class: "irep-flat-preview__left ire-flex ire-w-full ire-flex-col ire-items-center ire-justify-center ire-bg-gray-50 ire-p-4 lg:ire-w-auto [&_img]:ire-rounded-none" }, _hoisted_3$3 = {
|
|
4237
4230
|
key: 0,
|
|
4238
|
-
class: "ire-w-full ire-p-3 ire-text-start ire-capitalize"
|
|
4231
|
+
class: "irep-flat-preview__left-conf ire-w-full ire-p-3 ire-text-start ire-capitalize"
|
|
4239
4232
|
}, _hoisted_4$2 = ["href"], _hoisted_5 = ["src"], _hoisted_6 = ["href"], _hoisted_7 = ["src"], _hoisted_8 = { class: "ire-mt-5 ire-flex ire-flex-col ire-items-center ire-gap-3 lg:ire-flex-row" }, _hoisted_9 = { class: "ire-flex ire-w-fit ire-items-center ire-gap-1 ire-border-gray-400 ire-p-1" }, _hoisted_10 = {
|
|
4240
4233
|
key: 0,
|
|
4241
|
-
class: "ire-ml-4 ire-flex ire-items-center ire-gap-1"
|
|
4242
|
-
}, _hoisted_11 = ["onClick"], _hoisted_12 = { class: "flat-
|
|
4234
|
+
class: "irep-flat-preview__left-pagination ire-ml-4 ire-flex ire-items-center ire-gap-1"
|
|
4235
|
+
}, _hoisted_11 = ["onClick"], _hoisted_12 = { class: "irep-flat-preview__right ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-6 ire-px-6 ire-py-4 lg:ire-w-[380px]" }, _hoisted_13 = {
|
|
4243
4236
|
key: 1,
|
|
4244
4237
|
class: "flat-preview__type ire-text-center"
|
|
4245
|
-
}, _hoisted_14 = { class: "flat-preview__type-title !ire-text-lg ire-font-medium" }, _hoisted_15 = { class: "flat-preview__type-teaser ire-mt-1 ire-text-gray-600" }, _hoisted_16 = { 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_17 = { class: "flat-preview-price-through-value ire-text-base ire-line-through ire-decoration-black/50" }, _sfc_main$
|
|
4238
|
+
}, _hoisted_14 = { class: "flat-preview__type-title !ire-text-lg ire-font-medium" }, _hoisted_15 = { class: "flat-preview__type-teaser ire-mt-1 ire-text-gray-600" }, _hoisted_16 = { 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_17 = { class: "flat-preview-price-through-value ire-text-base ire-line-through ire-decoration-black/50" }, _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
4246
4239
|
__name: "FlatPreview",
|
|
4247
4240
|
props: {
|
|
4248
4241
|
flat: {},
|
|
@@ -4264,160 +4257,160 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
4264
4257
|
var Re, Be;
|
|
4265
4258
|
Object.keys(((Be = (Re = _e.flat) == null ? void 0 : Re.type) == null ? void 0 : Be.image_3d) || {}).length || (ke.value = !0);
|
|
4266
4259
|
}), (Re, Be) => {
|
|
4267
|
-
var Ne, ze, Ae, Ie, je, Fe, Ve, He, We, Xe, Ye, Ze,
|
|
4268
|
-
return openBlock(), createElementBlock("div",
|
|
4269
|
-
createElementVNode("div",
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
mode: "out-in"
|
|
4277
|
-
}, {
|
|
4278
|
-
default: withCtx(() => {
|
|
4279
|
-
var ci, hi, pi, mi, gi, vi, bi, yi, _i, wi, xi, Si, Ei, ki, Ci, Pi, Ti, Mi, Oi, Di, $i, Ri, Bi, Li, Ni, Ai, zi, Ii, ji, Vi, Fi, Hi;
|
|
4280
|
-
return [
|
|
4281
|
-
ke.value && ((mi = (pi = (hi = (ci = Re.flat) == null ? void 0 : ci.type) == null ? void 0 : hi.image_2d) == null ? void 0 : pi[De.value]) != null && mi.url) ? (openBlock(), createElementBlock("a", {
|
|
4282
|
-
key: 0,
|
|
4283
|
-
"data-fancybox": "",
|
|
4284
|
-
href: (yi = (bi = (vi = (gi = Re.flat) == null ? void 0 : gi.type) == null ? void 0 : vi.image_2d) == null ? void 0 : bi[De.value]) == null ? void 0 : yi.url
|
|
4285
|
-
}, [
|
|
4286
|
-
(openBlock(), createElementBlock("img", {
|
|
4287
|
-
key: (Si = (xi = (wi = (_i = Re.flat) == null ? void 0 : _i.type) == null ? void 0 : wi.image_2d) == null ? void 0 : xi[De.value]) == null ? void 0 : Si.url,
|
|
4288
|
-
src: (Pi = (Ci = (ki = (Ei = Re.flat) == null ? void 0 : Ei.type) == null ? void 0 : ki.image_2d) == null ? void 0 : Ci[De.value]) == null ? void 0 : Pi.url,
|
|
4289
|
-
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-[30rem] xl:ire-h-[30rem] xl:ire-w-[35rem]"
|
|
4290
|
-
}, null, 8, _hoisted_5))
|
|
4291
|
-
], 8, _hoisted_4$2)) : (Di = (Oi = (Mi = (Ti = Re.flat) == null ? void 0 : Ti.type) == null ? void 0 : Mi.image_3d) == null ? void 0 : Oi[De.value]) != null && Di.url ? (openBlock(), createElementBlock("a", {
|
|
4292
|
-
key: 1,
|
|
4293
|
-
"data-fancybox": "",
|
|
4294
|
-
href: (Li = (Bi = (Ri = ($i = Re.flat) == null ? void 0 : $i.type) == null ? void 0 : Ri.image_3d) == null ? void 0 : Bi[De.value]) == null ? void 0 : Li.url
|
|
4295
|
-
}, [
|
|
4296
|
-
(openBlock(), createElementBlock("img", {
|
|
4297
|
-
key: (Ii = (zi = (Ai = (Ni = Re.flat) == null ? void 0 : Ni.type) == null ? void 0 : Ai.image_3d) == null ? void 0 : zi[De.value]) == null ? void 0 : Ii.url,
|
|
4298
|
-
src: (Hi = (Fi = (Vi = (ji = Re.flat) == null ? void 0 : ji.type) == null ? void 0 : Vi.image_3d) == null ? void 0 : Fi[De.value]) == null ? void 0 : Hi.url,
|
|
4299
|
-
class: "ire-h-full ire-w-full ire-object-contain ire-object-top lg:ire-h-96 lg:ire-w-[30rem] xl:ire-h-[30rem] xl:ire-w-[35rem]"
|
|
4300
|
-
}, null, 8, _hoisted_7))
|
|
4301
|
-
], 8, _hoisted_6)) : createCommentVNode("", !0)
|
|
4302
|
-
];
|
|
4303
|
-
}),
|
|
4304
|
-
_: 1
|
|
4305
|
-
})
|
|
4306
|
-
]),
|
|
4307
|
-
_: 1
|
|
4308
|
-
}),
|
|
4309
|
-
createElementVNode("div", _hoisted_8, [
|
|
4310
|
-
createElementVNode("div", _hoisted_9, [
|
|
4311
|
-
(je = (Ie = (Ae = (ze = Re.flat) == null ? void 0 : ze.type) == null ? void 0 : Ae.image_3d) == null ? void 0 : Ie[0]) != null && je.url ? (openBlock(), createBlock(_sfc_main$a, {
|
|
4312
|
-
key: 0,
|
|
4313
|
-
title: unref(tr)("3d plan"),
|
|
4314
|
-
active: !ke.value,
|
|
4315
|
-
class: "flat-preview-button",
|
|
4316
|
-
onClick: Be[0] || (Be[0] = (ci) => ke.value = !1)
|
|
4317
|
-
}, {
|
|
4318
|
-
icon: withCtx(() => [
|
|
4319
|
-
createVNode(FlatIcon, {
|
|
4320
|
-
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !ke.value }])
|
|
4321
|
-
}, null, 8, ["class"])
|
|
4322
|
-
]),
|
|
4323
|
-
_: 1
|
|
4324
|
-
}, 8, ["title", "active"])) : createCommentVNode("", !0),
|
|
4325
|
-
(We = (He = (Ve = (Fe = Re.flat) == null ? void 0 : Fe.type) == null ? void 0 : Ve.image_2d) == null ? void 0 : He[0]) != null && We.url ? (openBlock(), createBlock(_sfc_main$a, {
|
|
4326
|
-
key: 1,
|
|
4327
|
-
title: unref(tr)("2d plan"),
|
|
4328
|
-
active: ke.value,
|
|
4329
|
-
class: "flat-preview-button",
|
|
4330
|
-
onClick: Be[1] || (Be[1] = (ci) => ke.value = !0)
|
|
4331
|
-
}, {
|
|
4332
|
-
icon: withCtx(() => [
|
|
4333
|
-
createVNode(FlatIcon, {
|
|
4334
|
-
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": ke.value }])
|
|
4335
|
-
}, null, 8, ["class"])
|
|
4336
|
-
]),
|
|
4337
|
-
_: 1
|
|
4338
|
-
}, 8, ["title", "active"])) : createCommentVNode("", !0)
|
|
4339
|
-
]),
|
|
4340
|
-
((Xe = $e.value) == null ? void 0 : Xe.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
4341
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList($e.value, (ci, hi) => (openBlock(), createElementBlock("div", {
|
|
4342
|
-
key: ci,
|
|
4343
|
-
class: normalizeClass(["ire-flex ire-h-10 ire-w-10 ire-cursor-pointer ire-items-center ire-justify-center ire-rounded-lg ire-p-2 ire-transition-all hover:ire-bg-black hover:ire-text-white", {
|
|
4344
|
-
"ire-bg-black ire-text-white": De.value === hi
|
|
4345
|
-
}]),
|
|
4346
|
-
onClick: (pi) => De.value = hi
|
|
4347
|
-
}, toDisplayString(ci), 11, _hoisted_11))), 128))
|
|
4348
|
-
])) : createCommentVNode("", !0)
|
|
4349
|
-
])
|
|
4350
|
-
]),
|
|
4351
|
-
createElementVNode("div", _hoisted_12, [
|
|
4352
|
-
(Ye = Re.flat) != null && Ye.flat_number ? (openBlock(), createBlock(_sfc_main$9, {
|
|
4353
|
-
key: 0,
|
|
4354
|
-
keyName: unref(tr)("apartment"),
|
|
4355
|
-
value: Re.flat.flat_number,
|
|
4356
|
-
class: "[&_.flat-preview-value]:ire-min-w-fit [&_.flat-preview-value]:ire-font-semibold"
|
|
4357
|
-
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
4358
|
-
(Ge = (Ze = Re.flat) == null ? void 0 : Ze.type) != null && Ge.title || (Ue = (qe = Re.flat) == null ? void 0 : qe.type) != null && Ue.teaser ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
4359
|
-
createElementVNode("div", _hoisted_14, toDisplayString((Je = (Qe = Re.flat) == null ? void 0 : Qe.type) == null ? void 0 : Je.title), 1),
|
|
4360
|
-
createElementVNode("div", _hoisted_15, toDisplayString((ei = (Ke = Re.flat) == null ? void 0 : Ke.type) == null ? void 0 : ei.teaser), 1)
|
|
4361
|
-
])) : createCommentVNode("", !0),
|
|
4362
|
-
createElementVNode("div", _hoisted_16, [
|
|
4363
|
-
(ii = Re.flat) != null && ii.floor_number ? (openBlock(), createBlock(_sfc_main$9, {
|
|
4364
|
-
key: 0,
|
|
4365
|
-
keyName: unref(tr)("floor"),
|
|
4366
|
-
value: (oi = Re.flat) == null ? void 0 : oi.floor_number
|
|
4367
|
-
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
4368
|
-
(ti = (ni = Re.flat) == null ? void 0 : ni.type) != null && ti.area_m2 ? (openBlock(), createBlock(_sfc_main$9, {
|
|
4369
|
-
key: 1,
|
|
4370
|
-
keyName: unref(tr)("area"),
|
|
4371
|
-
value: unref(getPrice)(Number((si = Re.flat) == null ? void 0 : si.type.area_m2))
|
|
4372
|
-
}, {
|
|
4373
|
-
sufix: withCtx(() => Be[2] || (Be[2] = [
|
|
4374
|
-
createElementVNode("span", null, [
|
|
4375
|
-
createTextVNode(" m "),
|
|
4376
|
-
createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
|
|
4377
|
-
], -1)
|
|
4378
|
-
])),
|
|
4379
|
-
_: 1
|
|
4380
|
-
}, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
4381
|
-
(ri = (ai = Re.flat) == null ? void 0 : ai.type) != null && ri.rooms_count ? (openBlock(), createBlock(_sfc_main$9, {
|
|
4382
|
-
key: 2,
|
|
4383
|
-
keyName: unref(tr)("room"),
|
|
4384
|
-
value: Re.flat.type.rooms_count
|
|
4385
|
-
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
4386
|
-
(li = Re.flat) != null && li.offer_price ? (openBlock(), createBlock(_sfc_main$9, {
|
|
4387
|
-
key: 3,
|
|
4388
|
-
keyName: unref(tr)("price"),
|
|
4389
|
-
value: unref(getPrice)(Number((ui = Re.flat) == null ? void 0 : ui.offer_price))
|
|
4260
|
+
var Ne, ze, Ae, Ie, je, Fe, Ve, He, We, Xe, Ye, Ze, Ke, qe, Ue, Qe, Je, Ge, ei, ii, oi, ni, ti, si, ai, ri, li, ui, di, fi;
|
|
4261
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
4262
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
4263
|
+
(Ne = Re.flat) != null && Ne.conf ? (openBlock(), createElementBlock("div", _hoisted_3$3, toDisplayString(unref(tr)(Re.flat.conf)), 1)) : createCommentVNode("", !0),
|
|
4264
|
+
createVNode(FancyBoxComp, { options: {} }, {
|
|
4265
|
+
default: withCtx(() => [
|
|
4266
|
+
createVNode(Transition, {
|
|
4267
|
+
name: "ire-fade-in-out",
|
|
4268
|
+
mode: "out-in"
|
|
4390
4269
|
}, {
|
|
4391
|
-
|
|
4392
|
-
var ci;
|
|
4270
|
+
default: withCtx(() => {
|
|
4271
|
+
var ci, hi, pi, mi, gi, vi, bi, yi, _i, wi, xi, Si, Ei, ki, Ci, Pi, Ti, Mi, Oi, Di, $i, Ri, Bi, Li, Ni, Ai, zi, Ii, ji, Vi, Fi, Hi;
|
|
4393
4272
|
return [
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4273
|
+
ke.value && ((mi = (pi = (hi = (ci = Re.flat) == null ? void 0 : ci.type) == null ? void 0 : hi.image_2d) == null ? void 0 : pi[De.value]) != null && mi.url) ? (openBlock(), createElementBlock("a", {
|
|
4274
|
+
key: 0,
|
|
4275
|
+
"data-fancybox": "",
|
|
4276
|
+
href: (yi = (bi = (vi = (gi = Re.flat) == null ? void 0 : gi.type) == null ? void 0 : vi.image_2d) == null ? void 0 : bi[De.value]) == null ? void 0 : yi.url,
|
|
4277
|
+
class: "irep-flat-preview__left-2d"
|
|
4278
|
+
}, [
|
|
4279
|
+
(openBlock(), createElementBlock("img", {
|
|
4280
|
+
key: (Si = (xi = (wi = (_i = Re.flat) == null ? void 0 : _i.type) == null ? void 0 : wi.image_2d) == null ? void 0 : xi[De.value]) == null ? void 0 : Si.url,
|
|
4281
|
+
src: (Pi = (Ci = (ki = (Ei = Re.flat) == null ? void 0 : Ei.type) == null ? void 0 : ki.image_2d) == null ? void 0 : Ci[De.value]) == null ? void 0 : Pi.url,
|
|
4282
|
+
class: "ire-preview-img"
|
|
4283
|
+
}, null, 8, _hoisted_5))
|
|
4284
|
+
], 8, _hoisted_4$2)) : (Di = (Oi = (Mi = (Ti = Re.flat) == null ? void 0 : Ti.type) == null ? void 0 : Mi.image_3d) == null ? void 0 : Oi[De.value]) != null && Di.url ? (openBlock(), createElementBlock("a", {
|
|
4285
|
+
key: 1,
|
|
4286
|
+
"data-fancybox": "",
|
|
4287
|
+
href: (Li = (Bi = (Ri = ($i = Re.flat) == null ? void 0 : $i.type) == null ? void 0 : Ri.image_3d) == null ? void 0 : Bi[De.value]) == null ? void 0 : Li.url,
|
|
4288
|
+
class: "irep-flat-preview__left-3d"
|
|
4289
|
+
}, [
|
|
4290
|
+
(openBlock(), createElementBlock("img", {
|
|
4291
|
+
key: (Ii = (zi = (Ai = (Ni = Re.flat) == null ? void 0 : Ni.type) == null ? void 0 : Ai.image_3d) == null ? void 0 : zi[De.value]) == null ? void 0 : Ii.url,
|
|
4292
|
+
src: (Hi = (Fi = (Vi = (ji = Re.flat) == null ? void 0 : ji.type) == null ? void 0 : Vi.image_3d) == null ? void 0 : Fi[De.value]) == null ? void 0 : Hi.url,
|
|
4293
|
+
class: "ire-preview-img"
|
|
4294
|
+
}, null, 8, _hoisted_7))
|
|
4295
|
+
], 8, _hoisted_6)) : createCommentVNode("", !0)
|
|
4398
4296
|
];
|
|
4399
4297
|
}),
|
|
4400
|
-
|
|
4401
|
-
|
|
4298
|
+
_: 1
|
|
4299
|
+
})
|
|
4300
|
+
]),
|
|
4301
|
+
_: 1
|
|
4302
|
+
}),
|
|
4303
|
+
createElementVNode("div", _hoisted_8, [
|
|
4304
|
+
createElementVNode("div", _hoisted_9, [
|
|
4305
|
+
(je = (Ie = (Ae = (ze = Re.flat) == null ? void 0 : ze.type) == null ? void 0 : Ae.image_3d) == null ? void 0 : Ie[0]) != null && je.url ? (openBlock(), createBlock(_sfc_main$b, {
|
|
4306
|
+
key: 0,
|
|
4307
|
+
title: unref(tr)("3d plan"),
|
|
4308
|
+
active: !ke.value,
|
|
4309
|
+
class: "flat-preview-button",
|
|
4310
|
+
onClick: Be[0] || (Be[0] = (ci) => ke.value = !1)
|
|
4311
|
+
}, {
|
|
4312
|
+
icon: withCtx(() => [
|
|
4313
|
+
createVNode(FlatIcon, {
|
|
4314
|
+
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !ke.value }])
|
|
4315
|
+
}, null, 8, ["class"])
|
|
4402
4316
|
]),
|
|
4403
4317
|
_: 1
|
|
4404
|
-
}, 8, ["
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4318
|
+
}, 8, ["title", "active"])) : createCommentVNode("", !0),
|
|
4319
|
+
(We = (He = (Ve = (Fe = Re.flat) == null ? void 0 : Fe.type) == null ? void 0 : Ve.image_2d) == null ? void 0 : He[0]) != null && We.url ? (openBlock(), createBlock(_sfc_main$b, {
|
|
4320
|
+
key: 1,
|
|
4321
|
+
title: unref(tr)("2d plan"),
|
|
4322
|
+
active: ke.value,
|
|
4323
|
+
class: "flat-preview-button",
|
|
4324
|
+
onClick: Be[1] || (Be[1] = (ci) => ke.value = !0)
|
|
4408
4325
|
}, {
|
|
4409
|
-
|
|
4410
|
-
|
|
4326
|
+
icon: withCtx(() => [
|
|
4327
|
+
createVNode(FlatIcon, {
|
|
4328
|
+
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": ke.value }])
|
|
4329
|
+
}, null, 8, ["class"])
|
|
4411
4330
|
]),
|
|
4412
4331
|
_: 1
|
|
4413
|
-
}, 8, ["
|
|
4414
|
-
])
|
|
4332
|
+
}, 8, ["title", "active"])) : createCommentVNode("", !0)
|
|
4333
|
+
]),
|
|
4334
|
+
((Xe = $e.value) == null ? void 0 : Xe.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
4335
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList($e.value, (ci, hi) => (openBlock(), createElementBlock("div", {
|
|
4336
|
+
key: ci,
|
|
4337
|
+
class: normalizeClass(["irep-flat-preview__left-pagination-item ire-flex ire-h-10 ire-w-10 ire-cursor-pointer ire-items-center ire-justify-center ire-rounded-lg ire-p-2 ire-transition-all hover:ire-bg-black hover:ire-text-white", {
|
|
4338
|
+
"irep-flat-preview__left-pagination-item--active ire-bg-black ire-text-white": De.value === hi
|
|
4339
|
+
}]),
|
|
4340
|
+
onClick: (pi) => De.value = hi
|
|
4341
|
+
}, toDisplayString(ci), 11, _hoisted_11))), 128))
|
|
4342
|
+
])) : createCommentVNode("", !0)
|
|
4343
|
+
])
|
|
4344
|
+
]),
|
|
4345
|
+
createElementVNode("div", _hoisted_12, [
|
|
4346
|
+
(Ye = Re.flat) != null && Ye.flat_number ? (openBlock(), createBlock(_sfc_main$a, {
|
|
4347
|
+
key: 0,
|
|
4348
|
+
keyName: unref(tr)("apartment"),
|
|
4349
|
+
value: Re.flat.flat_number,
|
|
4350
|
+
class: "[&_.flat-preview-value]:ire-min-w-fit [&_.flat-preview-value]:ire-font-semibold"
|
|
4351
|
+
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
4352
|
+
(Ke = (Ze = Re.flat) == null ? void 0 : Ze.type) != null && Ke.title || (Ue = (qe = Re.flat) == null ? void 0 : qe.type) != null && Ue.teaser ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
4353
|
+
createElementVNode("div", _hoisted_14, toDisplayString((Je = (Qe = Re.flat) == null ? void 0 : Qe.type) == null ? void 0 : Je.title), 1),
|
|
4354
|
+
createElementVNode("div", _hoisted_15, toDisplayString((ei = (Ge = Re.flat) == null ? void 0 : Ge.type) == null ? void 0 : ei.teaser), 1)
|
|
4355
|
+
])) : createCommentVNode("", !0),
|
|
4356
|
+
createElementVNode("div", _hoisted_16, [
|
|
4357
|
+
(ii = Re.flat) != null && ii.floor_number ? (openBlock(), createBlock(_sfc_main$a, {
|
|
4358
|
+
key: 0,
|
|
4359
|
+
keyName: unref(tr)("floor"),
|
|
4360
|
+
value: (oi = Re.flat) == null ? void 0 : oi.floor_number
|
|
4361
|
+
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
4362
|
+
(ti = (ni = Re.flat) == null ? void 0 : ni.type) != null && ti.area_m2 ? (openBlock(), createBlock(_sfc_main$a, {
|
|
4363
|
+
key: 1,
|
|
4364
|
+
keyName: unref(tr)("area"),
|
|
4365
|
+
value: unref(getArea)(Number((si = Re.flat) == null ? void 0 : si.type.area_m2))
|
|
4366
|
+
}, {
|
|
4367
|
+
sufix: withCtx(() => Be[2] || (Be[2] = [
|
|
4368
|
+
createElementVNode("span", null, [
|
|
4369
|
+
createTextVNode(" m "),
|
|
4370
|
+
createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
|
|
4371
|
+
], -1)
|
|
4372
|
+
])),
|
|
4373
|
+
_: 1
|
|
4374
|
+
}, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
4375
|
+
(ri = (ai = Re.flat) == null ? void 0 : ai.type) != null && ri.rooms_count ? (openBlock(), createBlock(_sfc_main$a, {
|
|
4376
|
+
key: 2,
|
|
4377
|
+
keyName: unref(tr)("room"),
|
|
4378
|
+
value: Re.flat.type.rooms_count
|
|
4379
|
+
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
4380
|
+
(li = Re.flat) != null && li.offer_price ? (openBlock(), createBlock(_sfc_main$a, {
|
|
4381
|
+
key: 3,
|
|
4382
|
+
keyName: unref(tr)("price"),
|
|
4383
|
+
value: unref(getPrice)(Number((ui = Re.flat) == null ? void 0 : ui.offer_price))
|
|
4384
|
+
}, {
|
|
4385
|
+
top: withCtx(() => {
|
|
4386
|
+
var ci;
|
|
4387
|
+
return [
|
|
4388
|
+
createElementVNode("div", _hoisted_17, [
|
|
4389
|
+
createTextVNode(toDisplayString(unref(getPrice)(Number((ci = Re.flat) == null ? void 0 : ci.price))) + " ", 1),
|
|
4390
|
+
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
4391
|
+
])
|
|
4392
|
+
];
|
|
4393
|
+
}),
|
|
4394
|
+
sufix: withCtx(() => [
|
|
4395
|
+
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
4396
|
+
]),
|
|
4397
|
+
_: 1
|
|
4398
|
+
}, 8, ["keyName", "value"])) : (di = Re.flat) != null && di.price ? (openBlock(), createBlock(_sfc_main$a, {
|
|
4399
|
+
key: 4,
|
|
4400
|
+
keyName: unref(tr)("price"),
|
|
4401
|
+
value: unref(getPrice)(Number((fi = Re.flat) == null ? void 0 : fi.price))
|
|
4402
|
+
}, {
|
|
4403
|
+
sufix: withCtx(() => [
|
|
4404
|
+
createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
|
|
4405
|
+
]),
|
|
4406
|
+
_: 1
|
|
4407
|
+
}, 8, ["keyName", "value"])) : createCommentVNode("", !0)
|
|
4415
4408
|
])
|
|
4416
4409
|
])
|
|
4417
4410
|
]);
|
|
4418
4411
|
};
|
|
4419
4412
|
}
|
|
4420
|
-
}), _sfc_main$
|
|
4413
|
+
}), _sfc_main$8 = {}, _hoisted_1$4 = {
|
|
4421
4414
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4422
4415
|
x: "0px",
|
|
4423
4416
|
y: "0px",
|
|
@@ -4425,12 +4418,12 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
4425
4418
|
height: "20",
|
|
4426
4419
|
viewBox: "0 0 50 50"
|
|
4427
4420
|
};
|
|
4428
|
-
function _sfc_render(Le, _e) {
|
|
4421
|
+
function _sfc_render$1(Le, _e) {
|
|
4429
4422
|
return openBlock(), createElementBlock("svg", _hoisted_1$4, _e[0] || (_e[0] = [
|
|
4430
4423
|
createElementVNode("path", { d: "M 9.15625 6.3125 L 6.3125 9.15625 L 22.15625 25 L 6.21875 40.96875 L 9.03125 43.78125 L 25 27.84375 L 40.9375 43.78125 L 43.78125 40.9375 L 27.84375 25 L 43.6875 9.15625 L 40.84375 6.3125 L 25 22.15625 Z" }, null, -1)
|
|
4431
4424
|
]));
|
|
4432
4425
|
}
|
|
4433
|
-
const Close = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
4426
|
+
const Close = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1]]), _hoisted_1$3 = { class: "ire-fixed ire-left-0 ire-top-0 ire-z-[99999] ire-flex ire-h-full ire-w-full ire-cursor-pointer ire-items-center ire-justify-center ire-p-4 lg:ire-p-32" }, _hoisted_2$2 = { class: "ire-relative ire-min-w-full ire-max-w-[1920px] ire-cursor-default ire-overflow-hidden ire-rounded-lg ire-bg-white lg:ire-min-w-[500px]" }, _hoisted_3$2 = { class: "ire-absolute ire-right-0 ire-top-0 ire-flex ire-w-full ire-flex-row-reverse" }, _hoisted_4$1 = { class: "ire-h-fit ire-max-h-[95svh] ire-overflow-y-auto" }, _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
4434
4427
|
__name: "PreviewModal",
|
|
4435
4428
|
emits: ["close"],
|
|
4436
4429
|
setup(Le) {
|
|
@@ -4461,7 +4454,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4461
4454
|
])
|
|
4462
4455
|
]));
|
|
4463
4456
|
}
|
|
4464
|
-
}), _hoisted_1$2 = ["innerHTML"], _sfc_main$
|
|
4457
|
+
}), _hoisted_1$2 = ["innerHTML"], _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
4465
4458
|
__name: "BaseEditor",
|
|
4466
4459
|
props: {
|
|
4467
4460
|
editor: {}
|
|
@@ -4472,7 +4465,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4472
4465
|
innerHTML: _e.editor
|
|
4473
4466
|
}, null, 8, _hoisted_1$2));
|
|
4474
4467
|
}
|
|
4475
|
-
}), _hoisted_1$1 = { class: "ire-p-5" }, _hoisted_2$1 = { class: "ire-mb-3 !ire-text-3xl ire-font-bold" }, _hoisted_3$1 = ["src"], _sfc_main$
|
|
4468
|
+
}), _hoisted_1$1 = { class: "ire-p-5" }, _hoisted_2$1 = { class: "ire-mb-3 !ire-text-3xl ire-font-bold" }, _hoisted_3$1 = ["src"], _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
4476
4469
|
__name: "ActionModal",
|
|
4477
4470
|
props: {
|
|
4478
4471
|
modalData: {}
|
|
@@ -4482,7 +4475,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4482
4475
|
var De, $e, Re, Be, Ne, ze, Ae, Ie, je, Fe, Ve, He;
|
|
4483
4476
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
4484
4477
|
createElementVNode("p", _hoisted_2$1, toDisplayString(($e = (De = _e.modalData) == null ? void 0 : De.modalObject) == null ? void 0 : $e.title), 1),
|
|
4485
|
-
createVNode(_sfc_main$
|
|
4478
|
+
createVNode(_sfc_main$6, {
|
|
4486
4479
|
editor: (Be = (Re = _e.modalData) == null ? void 0 : Re.modalObject) == null ? void 0 : Be.description
|
|
4487
4480
|
}, null, 8, ["editor"]),
|
|
4488
4481
|
(Ie = (Ae = (ze = (Ne = _e.modalData) == null ? void 0 : Ne.modalObject) == null ? void 0 : ze.modalImage) == null ? void 0 : Ae[0]) != null && Ie.url ? (openBlock(), createElementBlock("img", {
|
|
@@ -4494,7 +4487,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4494
4487
|
]);
|
|
4495
4488
|
};
|
|
4496
4489
|
}
|
|
4497
|
-
}), _hoisted_1 = { class: "block-title lg:!ire-text-xl" }, _hoisted_2 = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_3 = ["src"], _hoisted_4 = ["innerHTML"], _sfc_main$
|
|
4490
|
+
}), _hoisted_1 = { class: "block-title lg:!ire-text-xl" }, _hoisted_2 = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_3 = ["src"], _hoisted_4 = ["innerHTML"], _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
4498
4491
|
__name: "BlockPreview",
|
|
4499
4492
|
props: {
|
|
4500
4493
|
block: {},
|
|
@@ -4512,11 +4505,11 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4512
4505
|
const Xe = We.target;
|
|
4513
4506
|
Xe && (Ae.value = Xe);
|
|
4514
4507
|
}, He = (We) => {
|
|
4515
|
-
var Ye, Ze,
|
|
4508
|
+
var Ye, Ze, Ke;
|
|
4516
4509
|
const Xe = We.target;
|
|
4517
4510
|
(Xe == null ? void 0 : Xe.nodeName) === "path" && (((Ye = je.value) == null ? void 0 : Ye.conf) === "reserved" && !Be.value || ((Ze = je.value) == null ? void 0 : Ze.conf) === "sold" && !Ne.value || ke(
|
|
4518
4511
|
"changeComponent",
|
|
4519
|
-
((
|
|
4512
|
+
((Ke = Ie.value) == null ? void 0 : Ke.type) || "",
|
|
4520
4513
|
je.value
|
|
4521
4514
|
));
|
|
4522
4515
|
};
|
|
@@ -4528,14 +4521,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4528
4521
|
), watch(
|
|
4529
4522
|
() => Ae.value,
|
|
4530
4523
|
(We) => {
|
|
4531
|
-
var Ye, Ze,
|
|
4524
|
+
var Ye, Ze, Ke, qe, Ue, Qe, Je, Ge;
|
|
4532
4525
|
if (!We) return;
|
|
4533
4526
|
Re.hoverdSvg = We;
|
|
4534
4527
|
const Xe = We == null ? void 0 : We.parentElement;
|
|
4535
4528
|
if (Xe && (Xe == null ? void 0 : Xe.nodeName) === "g") {
|
|
4536
4529
|
const ei = Xe == null ? void 0 : Xe.getAttribute("id");
|
|
4537
4530
|
if (!ei || (Ie.value = ((Ze = (Ye = De.block) == null ? void 0 : Ye.polygon_data) == null ? void 0 : Ze.find((ii) => (ii == null ? void 0 : ii.key) === ei)) || null, !Ie.value)) return;
|
|
4538
|
-
if (((
|
|
4531
|
+
if (((Ke = Ie.value) == null ? void 0 : Ke.type) === "floor") {
|
|
4539
4532
|
const ii = (qe = De.floors) == null ? void 0 : qe.find(
|
|
4540
4533
|
(oi) => {
|
|
4541
4534
|
var ni;
|
|
@@ -4552,7 +4545,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4552
4545
|
);
|
|
4553
4546
|
je.value = ii;
|
|
4554
4547
|
} else if (((Je = Ie.value) == null ? void 0 : Je.type) === "tooltip") {
|
|
4555
|
-
const ii = (
|
|
4548
|
+
const ii = (Ge = De.actions) == null ? void 0 : Ge.find(
|
|
4556
4549
|
(oi) => {
|
|
4557
4550
|
var ni;
|
|
4558
4551
|
return (oi == null ? void 0 : oi.id) === ((ni = Ie.value) == null ? void 0 : ni.id);
|
|
@@ -4570,25 +4563,25 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4570
4563
|
document.removeEventListener("mousemove", Ve);
|
|
4571
4564
|
}), (We, Xe) => {
|
|
4572
4565
|
var Ye;
|
|
4573
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4566
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
4574
4567
|
hoverdData: je.value,
|
|
4575
4568
|
type: (Ye = Ie.value) == null ? void 0 : Ye.type
|
|
4576
4569
|
}, {
|
|
4577
4570
|
header: withCtx(() => {
|
|
4578
4571
|
var Ze;
|
|
4579
4572
|
return [
|
|
4580
|
-
createVNode(_sfc_main$
|
|
4581
|
-
onClick: Xe[0] || (Xe[0] = (
|
|
4573
|
+
createVNode(_sfc_main$f, {
|
|
4574
|
+
onClick: Xe[0] || (Xe[0] = (Ke) => We.$emit("changeComponent", "project", null))
|
|
4582
4575
|
}),
|
|
4583
4576
|
createElementVNode("div", _hoisted_1, toDisplayString((Ze = We.block) == null ? void 0 : Ze.title), 1)
|
|
4584
4577
|
];
|
|
4585
4578
|
}),
|
|
4586
4579
|
default: withCtx(() => {
|
|
4587
|
-
var Ze,
|
|
4580
|
+
var Ze, Ke, qe, Ue, Qe, Je;
|
|
4588
4581
|
return [
|
|
4589
4582
|
createElementVNode("div", _hoisted_2, [
|
|
4590
4583
|
createElementVNode("img", {
|
|
4591
|
-
src: ((qe = (
|
|
4584
|
+
src: ((qe = (Ke = (Ze = We.block) == null ? void 0 : Ze.block_image) == null ? void 0 : Ke[0]) == null ? void 0 : qe.url) || "",
|
|
4592
4585
|
alt: "",
|
|
4593
4586
|
class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
|
|
4594
4587
|
}, null, 8, _hoisted_3),
|
|
@@ -4613,7 +4606,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4613
4606
|
}, 8, ["hoverdData", "type"]);
|
|
4614
4607
|
};
|
|
4615
4608
|
}
|
|
4616
|
-
}), _sfc_main$
|
|
4609
|
+
}), _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
4617
4610
|
__name: "MouseTracker",
|
|
4618
4611
|
setup(Le) {
|
|
4619
4612
|
const _e = useGlobalStore(), ke = ref(!0), De = ref(-400), $e = ref(-400), Re = ref(null);
|
|
@@ -4629,7 +4622,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4629
4622
|
const Ve = document.querySelector(".irep-tooltip"), He = ((Qe = _e.hoverdSvg) == null ? void 0 : Qe.nodeName) === "path" ? _e.hoverdSvg : null;
|
|
4630
4623
|
if (!Re.value || !Ve || !He)
|
|
4631
4624
|
return;
|
|
4632
|
-
const We = Re.value.getBoundingClientRect(), Xe = He.getBoundingClientRect(), Ye = Ve.getBoundingClientRect(), Ze = We.left + We.width / 2,
|
|
4625
|
+
const We = Re.value.getBoundingClientRect(), Xe = He.getBoundingClientRect(), Ye = Ve.getBoundingClientRect(), Ze = We.left + We.width / 2, Ke = We.top + We.height / 2, qe = Xe.left > Ze, Ue = Xe.bottom > Ke;
|
|
4633
4626
|
Ne = Fe.clientX - We.left - (qe ? Ye.width : -20), ze = Fe.clientY - We.top - (Ue ? Ye.height : -20), ke.value && (De.value = Ne, $e.value = ze), Ie(), ke.value = !1;
|
|
4634
4627
|
};
|
|
4635
4628
|
return onMounted(() => {
|
|
@@ -4643,31 +4636,29 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4643
4636
|
renderSlot(Fe.$slots, "default")
|
|
4644
4637
|
], 512));
|
|
4645
4638
|
}
|
|
4646
|
-
}), _sfc_main$
|
|
4639
|
+
}), _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
4647
4640
|
__name: "Preview",
|
|
4648
4641
|
props: {
|
|
4649
4642
|
shortcodeDataProps: {}
|
|
4650
4643
|
},
|
|
4651
4644
|
setup(__props) {
|
|
4652
|
-
var Le, _e, ke, De, $e, Re, Be
|
|
4653
|
-
const props = __props, globalStore = useGlobalStore(), { getMetaValue } = globalStore,
|
|
4654
|
-
(
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
PREVIEW_STROKE_WIDTH: +((Re = getMeta("stroke_width")) == null ? void 0 : Re.meta_value) || 1,
|
|
4662
|
-
PREVIEW_BORDER_RADIUS: +((Be = getMeta("border_radius")) == null ? void 0 : Be.meta_value) || 0
|
|
4645
|
+
var Le, _e, ke, De, $e, Re, Be;
|
|
4646
|
+
const props = __props, globalStore = useGlobalStore(), { getMetaValue } = globalStore, constants = ref({
|
|
4647
|
+
PREVIEW_PATH_COLOR: getMetaValue("path_color") || "rgba(255, 255, 255, 0.3)",
|
|
4648
|
+
PREVIEW_PATH_HOVER_COLOR: getMetaValue("path_hover_color") || "rgba(250, 250, 250, 0.54)",
|
|
4649
|
+
PREVIEW_RESERVED_COLOR: getMetaValue("reserved_color") || "rgba(255, 247, 89, 0.53)",
|
|
4650
|
+
PREVIEW_SOLD_COLOR: getMetaValue("sold_color") || "rgba(219, 64, 64, 0.45)",
|
|
4651
|
+
PREVIEW_STROKE_COLOR: getMetaValue("stroke_color") || "rgba(0, 0, 0, 1)",
|
|
4652
|
+
PREVIEW_STROKE_WIDTH: +getMetaValue("stroke_width") || 1,
|
|
4653
|
+
PREVIEW_BORDER_RADIUS: +getMetaValue("border_radius") || 0
|
|
4663
4654
|
}), colors = reactive({
|
|
4664
|
-
path: (
|
|
4665
|
-
path_hover: (
|
|
4666
|
-
reserved: (
|
|
4667
|
-
sold: (
|
|
4668
|
-
stroke_color: (
|
|
4669
|
-
stroke_width: (
|
|
4670
|
-
border_radius: (
|
|
4655
|
+
path: (Le = constants.value) == null ? void 0 : Le.PREVIEW_PATH_COLOR,
|
|
4656
|
+
path_hover: (_e = constants.value) == null ? void 0 : _e.PREVIEW_PATH_HOVER_COLOR,
|
|
4657
|
+
reserved: (ke = constants.value) == null ? void 0 : ke.PREVIEW_RESERVED_COLOR,
|
|
4658
|
+
sold: (De = constants.value) == null ? void 0 : De.PREVIEW_SOLD_COLOR,
|
|
4659
|
+
stroke_color: ($e = constants.value) == null ? void 0 : $e.PREVIEW_STROKE_COLOR,
|
|
4660
|
+
stroke_width: (Re = constants.value) == null ? void 0 : Re.PREVIEW_STROKE_WIDTH,
|
|
4661
|
+
border_radius: (Be = constants.value) == null ? void 0 : Be.PREVIEW_BORDER_RADIUS
|
|
4671
4662
|
}), cssVariables = computed$1(() => ({
|
|
4672
4663
|
"--reserved-color": colors.reserved,
|
|
4673
4664
|
"--sold-color": colors.sold,
|
|
@@ -4679,30 +4670,30 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4679
4670
|
})), shortcodeData = ref(props.shortcodeDataProps), flow = ref(
|
|
4680
4671
|
"projectFlow"
|
|
4681
4672
|
), hoveredData = ref(), showModal = ref(!1), activeBlock = ref(), activeFloor = ref(), showFlatModal = ref(), project = computed$1(() => {
|
|
4682
|
-
var
|
|
4673
|
+
var Ne;
|
|
4683
4674
|
if (shortcodeData.value)
|
|
4684
|
-
return (
|
|
4675
|
+
return (Ne = shortcodeData.value) == null ? void 0 : Ne.project;
|
|
4685
4676
|
}), floors = computed$1(() => {
|
|
4686
|
-
var
|
|
4677
|
+
var Ne, ze;
|
|
4687
4678
|
if (shortcodeData.value)
|
|
4688
|
-
return (
|
|
4689
|
-
var
|
|
4690
|
-
const
|
|
4691
|
-
var
|
|
4692
|
-
return (
|
|
4693
|
-
(
|
|
4694
|
-
var
|
|
4695
|
-
return
|
|
4679
|
+
return (Ne = shortcodeData.value.floors) == null || Ne.forEach((Ae) => {
|
|
4680
|
+
var Fe, Ve;
|
|
4681
|
+
const Ie = (Ve = (Fe = shortcodeData.value) == null ? void 0 : Fe.flats) == null ? void 0 : Ve.filter((He) => {
|
|
4682
|
+
var We;
|
|
4683
|
+
return (He == null ? void 0 : He.floor_number) !== ((We = Ae == null ? void 0 : Ae.floor_number) == null ? void 0 : We.toString()) ? !1 : Ae != null && Ae.polygon_data ? Object == null ? void 0 : Object.values(Ae == null ? void 0 : Ae.polygon_data).some(
|
|
4684
|
+
(Ye) => {
|
|
4685
|
+
var Ze;
|
|
4686
|
+
return Ye != null && Ye.type && (Ye == null ? void 0 : Ye.type) === "flat" && (Ye == null ? void 0 : Ye.id) === (He == null ? void 0 : He.id) ? Ae != null && Ae.block_id ? (He == null ? void 0 : He.block_id) === ((Ze = Ae == null ? void 0 : Ae.block_id) == null ? void 0 : Ze.toString()) : !(He != null && He.block_id) : !1;
|
|
4696
4687
|
}
|
|
4697
4688
|
) : !1;
|
|
4698
4689
|
});
|
|
4699
|
-
|
|
4700
|
-
const { conf:
|
|
4701
|
-
if (
|
|
4702
|
-
const
|
|
4703
|
-
|
|
4690
|
+
Ae.flats = Ie;
|
|
4691
|
+
const { conf: je } = Ae || {};
|
|
4692
|
+
if (Ie != null && Ie.length && !je) {
|
|
4693
|
+
const He = Ie == null ? void 0 : Ie.every((Xe) => (Xe == null ? void 0 : Xe.conf) === "reserved"), We = Ie == null ? void 0 : Ie.every((Xe) => (Xe == null ? void 0 : Xe.conf) === "sold");
|
|
4694
|
+
He ? Ae.conf = "reserved" : We && (Ae.conf = "sold");
|
|
4704
4695
|
}
|
|
4705
|
-
}), (
|
|
4696
|
+
}), (ze = shortcodeData.value) == null ? void 0 : ze.floors;
|
|
4706
4697
|
}), blocks = computed$1(() => {
|
|
4707
4698
|
if (shortcodeData.value)
|
|
4708
4699
|
return shortcodeData.value.blocks;
|
|
@@ -4710,24 +4701,24 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4710
4701
|
if (shortcodeData.value)
|
|
4711
4702
|
return shortcodeData.value.types;
|
|
4712
4703
|
}), flats = computed$1(() => {
|
|
4713
|
-
var
|
|
4704
|
+
var Ne, ze;
|
|
4714
4705
|
if (shortcodeData.value)
|
|
4715
|
-
return (
|
|
4716
|
-
var
|
|
4717
|
-
if (
|
|
4718
|
-
const
|
|
4719
|
-
|
|
4706
|
+
return (ze = (Ne = shortcodeData.value) == null ? void 0 : Ne.flats) == null ? void 0 : ze.map((Ae) => {
|
|
4707
|
+
var Ie;
|
|
4708
|
+
if (Ae != null && Ae.use_type || !(Ae != null && Ae.type)) {
|
|
4709
|
+
const je = (Ie = types.value) == null ? void 0 : Ie.find((Fe) => (Fe == null ? void 0 : Fe.id) === (Ae == null ? void 0 : Ae.type_id));
|
|
4710
|
+
je && (Ae.type = je);
|
|
4720
4711
|
}
|
|
4721
|
-
return
|
|
4712
|
+
return Ae;
|
|
4722
4713
|
});
|
|
4723
4714
|
}), actions = computed$1(() => {
|
|
4724
|
-
var
|
|
4715
|
+
var Ne;
|
|
4725
4716
|
if (shortcodeData.value)
|
|
4726
|
-
return (
|
|
4717
|
+
return (Ne = shortcodeData.value) == null ? void 0 : Ne.actions;
|
|
4727
4718
|
}), projectMeta = computed$1(() => {
|
|
4728
|
-
var
|
|
4719
|
+
var Ne;
|
|
4729
4720
|
if (shortcodeData.value)
|
|
4730
|
-
return (
|
|
4721
|
+
return (Ne = shortcodeData.value) == null ? void 0 : Ne.meta;
|
|
4731
4722
|
}), changeRoute = (flowType, polygonItem) => {
|
|
4732
4723
|
switch (flowType) {
|
|
4733
4724
|
case "project":
|
|
@@ -4754,8 +4745,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4754
4745
|
else if ((actionData == null ? void 0 : actionData.actionType) === "script")
|
|
4755
4746
|
try {
|
|
4756
4747
|
eval(actionData == null ? void 0 : actionData.script);
|
|
4757
|
-
} catch (
|
|
4758
|
-
console.error("Error executing script:",
|
|
4748
|
+
} catch (Ne) {
|
|
4749
|
+
console.error("Error executing script:", Ne);
|
|
4759
4750
|
}
|
|
4760
4751
|
break;
|
|
4761
4752
|
}
|
|
@@ -4763,10 +4754,10 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4763
4754
|
return watch(
|
|
4764
4755
|
() => projectMeta.value,
|
|
4765
4756
|
() => {
|
|
4766
|
-
const
|
|
4767
|
-
|
|
4757
|
+
const Ne = getMetaValue("path_color"), ze = getMetaValue("path_hover_color"), Ae = getMetaValue("reserved_color"), Ie = getMetaValue("sold_color"), je = getMetaValue("stroke_color"), Fe = getMetaValue("stroke_width");
|
|
4758
|
+
Ne && (colors.path = Ne.toString()), ze && (colors.path_hover = ze.toString()), Ae && (colors.reserved = Ae.toString()), Ie && (colors.sold = Ie.toString()), je && (colors.stroke_color = je.toString()), Fe && (colors.stroke_width = Number(Fe));
|
|
4768
4759
|
}
|
|
4769
|
-
), provide("showFlatModal", showFlatModal), (
|
|
4760
|
+
), provide("showFlatModal", showFlatModal), (Ne, ze) => (openBlock(), createBlock(_sfc_main$3, { class: "interactive-real-estate ire-text-[16px]" }, {
|
|
4770
4761
|
default: withCtx(() => [
|
|
4771
4762
|
createVNode(Transition, {
|
|
4772
4763
|
name: "ire-fade-in-out",
|
|
@@ -4777,7 +4768,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4777
4768
|
key: flow.value,
|
|
4778
4769
|
style: normalizeStyle(cssVariables.value)
|
|
4779
4770
|
}, [
|
|
4780
|
-
flow.value === "projectFlow" ? (openBlock(), createBlock(_sfc_main$
|
|
4771
|
+
flow.value === "projectFlow" ? (openBlock(), createBlock(_sfc_main$i, {
|
|
4781
4772
|
key: 0,
|
|
4782
4773
|
project: project.value,
|
|
4783
4774
|
floors: floors.value,
|
|
@@ -4785,22 +4776,22 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4785
4776
|
projectMeta: projectMeta.value,
|
|
4786
4777
|
blocks: blocks.value,
|
|
4787
4778
|
actions: actions.value,
|
|
4788
|
-
onChangeComponent:
|
|
4789
|
-
}, null, 8, ["project", "floors", "flats", "projectMeta", "blocks", "actions"])) : flow.value === "blockFlow" && flats.value && floors.value && blocks.value && activeBlock.value ? (openBlock(), createBlock(_sfc_main$
|
|
4779
|
+
onChangeComponent: ze[0] || (ze[0] = (Ae, Ie) => changeRoute(Ae, Ie))
|
|
4780
|
+
}, null, 8, ["project", "floors", "flats", "projectMeta", "blocks", "actions"])) : flow.value === "blockFlow" && flats.value && floors.value && blocks.value && activeBlock.value ? (openBlock(), createBlock(_sfc_main$4, {
|
|
4790
4781
|
key: 1,
|
|
4791
4782
|
block: activeBlock.value,
|
|
4792
4783
|
flats: flats.value,
|
|
4793
4784
|
floors: floors.value,
|
|
4794
4785
|
actions: actions.value,
|
|
4795
|
-
onChangeComponent:
|
|
4796
|
-
}, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$
|
|
4786
|
+
onChangeComponent: ze[1] || (ze[1] = (Ae, Ie) => changeRoute(Ae, Ie))
|
|
4787
|
+
}, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$e, {
|
|
4797
4788
|
key: 2,
|
|
4798
4789
|
flats: flats.value,
|
|
4799
4790
|
floor: activeFloor.value,
|
|
4800
4791
|
floors: floors.value,
|
|
4801
4792
|
blocks: blocks.value,
|
|
4802
4793
|
actions: actions.value,
|
|
4803
|
-
onChangeComponent:
|
|
4794
|
+
onChangeComponent: ze[2] || (ze[2] = (Ae, Ie) => changeRoute(Ae, Ie))
|
|
4804
4795
|
}, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : createCommentVNode("", !0)
|
|
4805
4796
|
], 4)) : createCommentVNode("", !0)
|
|
4806
4797
|
]),
|
|
@@ -4812,15 +4803,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4812
4803
|
appear: ""
|
|
4813
4804
|
}, {
|
|
4814
4805
|
default: withCtx(() => [
|
|
4815
|
-
showFlatModal.value ? (openBlock(), createBlock(_sfc_main$
|
|
4806
|
+
showFlatModal.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
4816
4807
|
key: 0,
|
|
4817
|
-
onClose:
|
|
4808
|
+
onClose: ze[4] || (ze[4] = (Ae) => showFlatModal.value = !1)
|
|
4818
4809
|
}, {
|
|
4819
4810
|
default: withCtx(() => [
|
|
4820
|
-
createVNode(_sfc_main$
|
|
4811
|
+
createVNode(_sfc_main$9, {
|
|
4821
4812
|
flat: hoveredData.value,
|
|
4822
4813
|
floors: floors.value,
|
|
4823
|
-
onChangeComponent:
|
|
4814
|
+
onChangeComponent: ze[3] || (ze[3] = (Ae, Ie) => changeRoute(Ae, Ie))
|
|
4824
4815
|
}, null, 8, ["flat", "floors"])
|
|
4825
4816
|
]),
|
|
4826
4817
|
_: 1
|
|
@@ -4835,12 +4826,12 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4835
4826
|
appear: ""
|
|
4836
4827
|
}, {
|
|
4837
4828
|
default: withCtx(() => [
|
|
4838
|
-
showModal.value ? (openBlock(), createBlock(_sfc_main$
|
|
4829
|
+
showModal.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
4839
4830
|
key: 0,
|
|
4840
|
-
onClose:
|
|
4831
|
+
onClose: ze[5] || (ze[5] = (Ae) => showModal.value = !1)
|
|
4841
4832
|
}, {
|
|
4842
4833
|
default: withCtx(() => [
|
|
4843
|
-
createVNode(_sfc_main$
|
|
4834
|
+
createVNode(_sfc_main$5, { modalData: hoveredData.value }, null, 8, ["modalData"])
|
|
4844
4835
|
]),
|
|
4845
4836
|
_: 1
|
|
4846
4837
|
})) : createCommentVNode("", !0)
|
|
@@ -4852,7 +4843,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4852
4843
|
_: 1
|
|
4853
4844
|
}));
|
|
4854
4845
|
}
|
|
4855
|
-
}), _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4846
|
+
}), _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4856
4847
|
__name: "Project",
|
|
4857
4848
|
props: {
|
|
4858
4849
|
data: {},
|
|
@@ -4861,12 +4852,26 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4861
4852
|
setup(Le) {
|
|
4862
4853
|
const _e = Le, ke = useGlobalStore();
|
|
4863
4854
|
return ke.setData(_e.data), ke.translations = _e.translations, (De, $e) => (openBlock(), createElementBlock("div", null, [
|
|
4864
|
-
createVNode(_sfc_main$
|
|
4855
|
+
createVNode(_sfc_main$2, { "shortcode-data-props": De.data }, null, 8, ["shortcode-data-props"])
|
|
4865
4856
|
]));
|
|
4866
4857
|
}
|
|
4867
|
-
}),
|
|
4858
|
+
}), _sfc_main = {};
|
|
4859
|
+
function _sfc_render(Le, _e) {
|
|
4860
|
+
return openBlock(), createElementBlock("div", null, _e[0] || (_e[0] = [
|
|
4861
|
+
createElementVNode("h1", { class: "underline" }, "undeliner", -1)
|
|
4862
|
+
]));
|
|
4863
|
+
}
|
|
4864
|
+
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
4865
|
+
function createProjectApp(Le) {
|
|
4866
|
+
const _e = createApp({
|
|
4867
|
+
render: () => h$1(_sfc_main$1, Le)
|
|
4868
|
+
}), ke = createPinia();
|
|
4869
|
+
return _e.use(ke), _e;
|
|
4870
|
+
}
|
|
4871
|
+
const pinia = createPinia(), app = createApp(App);
|
|
4868
4872
|
app.use(pinia);
|
|
4869
4873
|
app.mount("#app");
|
|
4870
4874
|
export {
|
|
4871
|
-
_sfc_main as Project
|
|
4875
|
+
_sfc_main$1 as Project,
|
|
4876
|
+
createProjectApp
|
|
4872
4877
|
};
|