ire-preview 2.3.16 → 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 +268 -266
- 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/FlatIcon.vue.d.ts +0 -2
- package/dist/src/components/index.d.ts +0 -1
- package/dist/src/composable/helper.d.ts +0 -4
- 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
|
|
@@ -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-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$
|
|
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: {},
|
|
@@ -644,7 +632,7 @@ const tr = (Le) => {
|
|
|
644
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 = {
|
|
645
633
|
key: 0,
|
|
646
634
|
class: "irep-tooltip-2__floor-conf ire-text-2xl ire-uppercase"
|
|
647
|
-
}, _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 = {
|
|
648
636
|
key: 1,
|
|
649
637
|
class: "irep-tooltip-2__block p-4 ire-flex ire-items-center ire-gap-3 !ire-text-sm"
|
|
650
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 = {
|
|
@@ -659,7 +647,7 @@ const tr = (Le) => {
|
|
|
659
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 = {
|
|
660
648
|
key: 1,
|
|
661
649
|
class: "irep-tooltip-2__flat-price ire-text-base"
|
|
662
|
-
}, _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({
|
|
663
651
|
__name: "Tooltip_2",
|
|
664
652
|
props: {
|
|
665
653
|
hoveredData: {},
|
|
@@ -763,7 +751,7 @@ const tr = (Le) => {
|
|
|
763
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 = {
|
|
764
752
|
key: 2,
|
|
765
753
|
class: "irep-tooltip-3__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
|
|
766
|
-
}, _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({
|
|
767
755
|
__name: "Tooltip_3",
|
|
768
756
|
props: {
|
|
769
757
|
hoveredData: {},
|
|
@@ -803,17 +791,14 @@ const tr = (Le) => {
|
|
|
803
791
|
}), _hoisted_1$e = {
|
|
804
792
|
key: 0,
|
|
805
793
|
class: "py-2 ire-mb-3 ire-flex ire-h-[48px] ire-items-center ire-justify-between ire-px-4"
|
|
806
|
-
}, _sfc_main$
|
|
794
|
+
}, _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
807
795
|
__name: "PreviewLayout",
|
|
808
796
|
props: {
|
|
809
797
|
hoverdData: {},
|
|
810
798
|
type: {}
|
|
811
799
|
},
|
|
812
800
|
setup(Le) {
|
|
813
|
-
const _e = useGlobalStore(), {
|
|
814
|
-
var Ne;
|
|
815
|
-
return ((Ne = ke.value.meta.find((ze) => ze.meta_key === "tooltip")) == null ? void 0 : Ne.meta_value) || "1";
|
|
816
|
-
});
|
|
801
|
+
const _e = useGlobalStore(), { getMetaValue: ke } = _e, De = inject("showFlatModal"), $e = ref(), Re = ref(!0), Be = computed$1(() => ke("tooltip") || "1");
|
|
817
802
|
return watch(
|
|
818
803
|
() => De == null ? void 0 : De.value,
|
|
819
804
|
() => {
|
|
@@ -833,23 +818,23 @@ const tr = (Le) => {
|
|
|
833
818
|
createVNode(Transition, { name: "ire-fade-in-out" }, {
|
|
834
819
|
default: withCtx(() => [
|
|
835
820
|
Re.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
836
|
-
Be.value === "2" ? (openBlock(), createBlock(_sfc_main$
|
|
821
|
+
Be.value === "2" ? (openBlock(), createBlock(_sfc_main$l, {
|
|
837
822
|
key: 0,
|
|
838
823
|
"hovered-data": Ne.hoverdData,
|
|
839
824
|
type: Ne.type || "",
|
|
840
825
|
"mouse-track": !0,
|
|
841
826
|
class: "ire-hidden lg:ire-flex [&_.irep-tooltip]:group-active:!ire-scale-110"
|
|
842
|
-
}, 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, {
|
|
843
828
|
key: 1,
|
|
844
829
|
"hovered-data": Ne.hoverdData,
|
|
845
830
|
type: Ne.type || "",
|
|
846
831
|
class: "ire-hidden lg:ire-flex"
|
|
847
|
-
}, 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, {
|
|
848
833
|
key: 2,
|
|
849
834
|
"hovered-data": Ne.hoverdData,
|
|
850
835
|
type: Ne.type || "",
|
|
851
836
|
class: "ire-hidden lg:ire-flex [&_.irep-tooltip]:group-active:!ire-scale-110"
|
|
852
|
-
}, null, 8, ["hovered-data", "type"])) : (openBlock(), createBlock(_sfc_main$
|
|
837
|
+
}, null, 8, ["hovered-data", "type"])) : (openBlock(), createBlock(_sfc_main$m, {
|
|
853
838
|
key: 3,
|
|
854
839
|
"hovered-data": Ne.hoverdData,
|
|
855
840
|
type: Ne.type || "",
|
|
@@ -861,7 +846,7 @@ const tr = (Le) => {
|
|
|
861
846
|
})
|
|
862
847
|
], 512));
|
|
863
848
|
}
|
|
864
|
-
}), _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({
|
|
865
850
|
__name: "ProjectPreview",
|
|
866
851
|
props: {
|
|
867
852
|
project: {},
|
|
@@ -938,7 +923,7 @@ const tr = (Le) => {
|
|
|
938
923
|
document.removeEventListener("mousemove", Fe);
|
|
939
924
|
}), (He, We) => {
|
|
940
925
|
var Xe;
|
|
941
|
-
return openBlock(), createBlock(_sfc_main$
|
|
926
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
942
927
|
hoverdData: Ae.value,
|
|
943
928
|
type: (Xe = Ie.value) == null ? void 0 : Xe.type
|
|
944
929
|
}, {
|
|
@@ -973,7 +958,7 @@ const tr = (Le) => {
|
|
|
973
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 = {
|
|
974
959
|
key: 0,
|
|
975
960
|
class: "label"
|
|
976
|
-
}, _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({
|
|
977
962
|
__name: "PreviewSelect",
|
|
978
963
|
props: /* @__PURE__ */ mergeModels({
|
|
979
964
|
data: {},
|
|
@@ -1022,14 +1007,19 @@ const tr = (Le) => {
|
|
|
1022
1007
|
])
|
|
1023
1008
|
]));
|
|
1024
1009
|
}
|
|
1025
|
-
}),
|
|
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 = {
|
|
1026
1016
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1027
1017
|
width: "32",
|
|
1028
1018
|
height: "32",
|
|
1029
1019
|
viewBox: "0 0 32 32",
|
|
1030
1020
|
fill: "none"
|
|
1031
1021
|
};
|
|
1032
|
-
function _sfc_render$
|
|
1022
|
+
function _sfc_render$4(Le, _e) {
|
|
1033
1023
|
return openBlock(), createElementBlock("svg", _hoisted_1$b, _e[0] || (_e[0] = [
|
|
1034
1024
|
createElementVNode("path", {
|
|
1035
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",
|
|
@@ -1037,7 +1027,7 @@ function _sfc_render$3(Le, _e) {
|
|
|
1037
1027
|
}, null, -1)
|
|
1038
1028
|
]));
|
|
1039
1029
|
}
|
|
1040
|
-
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({
|
|
1041
1031
|
__name: "BackButton",
|
|
1042
1032
|
setup(Le) {
|
|
1043
1033
|
return (_e, ke) => (openBlock(), createElementBlock("div", _hoisted_1$a, [
|
|
@@ -1045,7 +1035,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_ren
|
|
|
1045
1035
|
createElementVNode("div", _hoisted_2$6, toDisplayString(unref(tr)("back")), 1)
|
|
1046
1036
|
]));
|
|
1047
1037
|
}
|
|
1048
|
-
}), _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({
|
|
1049
1039
|
__name: "FloorPreview",
|
|
1050
1040
|
props: {
|
|
1051
1041
|
flats: {},
|
|
@@ -1176,14 +1166,14 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_ren
|
|
|
1176
1166
|
document.removeEventListener("mousemove", Xe);
|
|
1177
1167
|
}), (qe, Ue) => {
|
|
1178
1168
|
var Qe;
|
|
1179
|
-
return openBlock(), createBlock(_sfc_main$
|
|
1169
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
1180
1170
|
hoverdData: je.value,
|
|
1181
1171
|
type: (Qe = Ie.value) == null ? void 0 : Qe.type
|
|
1182
1172
|
}, {
|
|
1183
1173
|
header: withCtx(() => [
|
|
1184
|
-
createVNode(_sfc_main$
|
|
1174
|
+
createVNode(_sfc_main$f, { onClick: Ke }),
|
|
1185
1175
|
createElementVNode("div", _hoisted_1$9, [
|
|
1186
|
-
createVNode(_sfc_main$
|
|
1176
|
+
createVNode(_sfc_main$h, {
|
|
1187
1177
|
modelValue: Fe.value,
|
|
1188
1178
|
"onUpdate:modelValue": Ue[0] || (Ue[0] = (Je) => Fe.value = Je),
|
|
1189
1179
|
data: We.value
|
|
@@ -1214,19 +1204,19 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_ren
|
|
|
1214
1204
|
}, 8, ["hoverdData", "type"]);
|
|
1215
1205
|
};
|
|
1216
1206
|
}
|
|
1217
|
-
}), _sfc_main$
|
|
1207
|
+
}), _sfc_main$d = {}, _hoisted_1$8 = {
|
|
1218
1208
|
width: "24",
|
|
1219
1209
|
height: "24",
|
|
1220
1210
|
viewBox: "0 0 24 24",
|
|
1221
1211
|
fill: "none",
|
|
1222
1212
|
xmlns: "http://www.w3.org/2000/svg"
|
|
1223
1213
|
};
|
|
1224
|
-
function _sfc_render$
|
|
1214
|
+
function _sfc_render$3(Le, _e) {
|
|
1225
1215
|
return openBlock(), createElementBlock("svg", _hoisted_1$8, _e[0] || (_e[0] = [
|
|
1226
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)
|
|
1227
1217
|
]));
|
|
1228
1218
|
}
|
|
1229
|
-
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) {
|
|
1230
1220
|
if (!(Le && Le instanceof Element && Le.offsetParent)) return !1;
|
|
1231
1221
|
const _e = Le.scrollHeight > Le.clientHeight, ke = window.getComputedStyle(Le).overflowY, De = ke.indexOf("hidden") !== -1, $e = ke.indexOf("visible") !== -1;
|
|
1232
1222
|
return _e && !De && !$e;
|
|
@@ -4176,7 +4166,7 @@ class Oe extends g {
|
|
|
4176
4166
|
}
|
|
4177
4167
|
}
|
|
4178
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() });
|
|
4179
|
-
const _sfc_main$
|
|
4169
|
+
const _sfc_main$c = {
|
|
4180
4170
|
props: {
|
|
4181
4171
|
options: Object
|
|
4182
4172
|
},
|
|
@@ -4194,12 +4184,12 @@ const _sfc_main$b = {
|
|
|
4194
4184
|
Oe.destroy();
|
|
4195
4185
|
}
|
|
4196
4186
|
}, _hoisted_1$7 = { ref: "container" };
|
|
4197
|
-
function _sfc_render$
|
|
4187
|
+
function _sfc_render$2(Le, _e, ke, De, $e, Re) {
|
|
4198
4188
|
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
4199
4189
|
renderSlot(Le.$slots, "default")
|
|
4200
4190
|
], 512);
|
|
4201
4191
|
}
|
|
4202
|
-
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({
|
|
4203
4193
|
__name: "Button",
|
|
4204
4194
|
props: {
|
|
4205
4195
|
title: {},
|
|
@@ -4220,7 +4210,7 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
4220
4210
|
}, toDisplayString(_e.title), 3)
|
|
4221
4211
|
], 2));
|
|
4222
4212
|
}
|
|
4223
|
-
}), _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({
|
|
4224
4214
|
__name: "FlatPreviewKeyValue",
|
|
4225
4215
|
props: {
|
|
4226
4216
|
keyName: {},
|
|
@@ -4236,16 +4226,16 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
4236
4226
|
createElementVNode("div", _hoisted_3$4, toDisplayString(_e.keyName), 1)
|
|
4237
4227
|
]));
|
|
4238
4228
|
}
|
|
4239
|
-
}), _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 = {
|
|
4240
4230
|
key: 0,
|
|
4241
|
-
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"
|
|
4242
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 = {
|
|
4243
4233
|
key: 0,
|
|
4244
|
-
class: "ire-ml-4 ire-flex ire-items-center ire-gap-1"
|
|
4245
|
-
}, _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 = {
|
|
4246
4236
|
key: 1,
|
|
4247
4237
|
class: "flat-preview__type ire-text-center"
|
|
4248
|
-
}, _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({
|
|
4249
4239
|
__name: "FlatPreview",
|
|
4250
4240
|
props: {
|
|
4251
4241
|
flat: {},
|
|
@@ -4268,159 +4258,159 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
4268
4258
|
Object.keys(((Be = (Re = _e.flat) == null ? void 0 : Re.type) == null ? void 0 : Be.image_3d) || {}).length || (ke.value = !0);
|
|
4269
4259
|
}), (Re, Be) => {
|
|
4270
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;
|
|
4271
|
-
return openBlock(), createElementBlock("div",
|
|
4272
|
-
createElementVNode("div",
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
|
|
4279
|
-
mode: "out-in"
|
|
4280
|
-
}, {
|
|
4281
|
-
default: withCtx(() => {
|
|
4282
|
-
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;
|
|
4283
|
-
return [
|
|
4284
|
-
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", {
|
|
4285
|
-
key: 0,
|
|
4286
|
-
"data-fancybox": "",
|
|
4287
|
-
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
|
|
4288
|
-
}, [
|
|
4289
|
-
(openBlock(), createElementBlock("img", {
|
|
4290
|
-
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,
|
|
4291
|
-
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,
|
|
4292
|
-
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]"
|
|
4293
|
-
}, null, 8, _hoisted_5))
|
|
4294
|
-
], 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", {
|
|
4295
|
-
key: 1,
|
|
4296
|
-
"data-fancybox": "",
|
|
4297
|
-
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
|
|
4298
|
-
}, [
|
|
4299
|
-
(openBlock(), createElementBlock("img", {
|
|
4300
|
-
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,
|
|
4301
|
-
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,
|
|
4302
|
-
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]"
|
|
4303
|
-
}, null, 8, _hoisted_7))
|
|
4304
|
-
], 8, _hoisted_6)) : createCommentVNode("", !0)
|
|
4305
|
-
];
|
|
4306
|
-
}),
|
|
4307
|
-
_: 1
|
|
4308
|
-
})
|
|
4309
|
-
]),
|
|
4310
|
-
_: 1
|
|
4311
|
-
}),
|
|
4312
|
-
createElementVNode("div", _hoisted_8, [
|
|
4313
|
-
createElementVNode("div", _hoisted_9, [
|
|
4314
|
-
(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, {
|
|
4315
|
-
key: 0,
|
|
4316
|
-
title: unref(tr)("3d plan"),
|
|
4317
|
-
active: !ke.value,
|
|
4318
|
-
class: "flat-preview-button",
|
|
4319
|
-
onClick: Be[0] || (Be[0] = (ci) => ke.value = !1)
|
|
4320
|
-
}, {
|
|
4321
|
-
icon: withCtx(() => [
|
|
4322
|
-
createVNode(FlatIcon, {
|
|
4323
|
-
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !ke.value }])
|
|
4324
|
-
}, null, 8, ["class"])
|
|
4325
|
-
]),
|
|
4326
|
-
_: 1
|
|
4327
|
-
}, 8, ["title", "active"])) : createCommentVNode("", !0),
|
|
4328
|
-
(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, {
|
|
4329
|
-
key: 1,
|
|
4330
|
-
title: unref(tr)("2d plan"),
|
|
4331
|
-
active: ke.value,
|
|
4332
|
-
class: "flat-preview-button",
|
|
4333
|
-
onClick: Be[1] || (Be[1] = (ci) => ke.value = !0)
|
|
4334
|
-
}, {
|
|
4335
|
-
icon: withCtx(() => [
|
|
4336
|
-
createVNode(FlatIcon, {
|
|
4337
|
-
class: normalizeClass(["[&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": ke.value }])
|
|
4338
|
-
}, null, 8, ["class"])
|
|
4339
|
-
]),
|
|
4340
|
-
_: 1
|
|
4341
|
-
}, 8, ["title", "active"])) : createCommentVNode("", !0)
|
|
4342
|
-
]),
|
|
4343
|
-
((Xe = $e.value) == null ? void 0 : Xe.length) > 1 ? (openBlock(), createElementBlock("div", _hoisted_10, [
|
|
4344
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList($e.value, (ci, hi) => (openBlock(), createElementBlock("div", {
|
|
4345
|
-
key: ci,
|
|
4346
|
-
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", {
|
|
4347
|
-
"ire-bg-black ire-text-white": De.value === hi
|
|
4348
|
-
}]),
|
|
4349
|
-
onClick: (pi) => De.value = hi
|
|
4350
|
-
}, toDisplayString(ci), 11, _hoisted_11))), 128))
|
|
4351
|
-
])) : createCommentVNode("", !0)
|
|
4352
|
-
])
|
|
4353
|
-
]),
|
|
4354
|
-
createElementVNode("div", _hoisted_12, [
|
|
4355
|
-
(Ye = Re.flat) != null && Ye.flat_number ? (openBlock(), createBlock(_sfc_main$9, {
|
|
4356
|
-
key: 0,
|
|
4357
|
-
keyName: unref(tr)("apartment"),
|
|
4358
|
-
value: Re.flat.flat_number,
|
|
4359
|
-
class: "[&_.flat-preview-value]:ire-min-w-fit [&_.flat-preview-value]:ire-font-semibold"
|
|
4360
|
-
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
4361
|
-
(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, [
|
|
4362
|
-
createElementVNode("div", _hoisted_14, toDisplayString((Je = (Qe = Re.flat) == null ? void 0 : Qe.type) == null ? void 0 : Je.title), 1),
|
|
4363
|
-
createElementVNode("div", _hoisted_15, toDisplayString((ei = (Ge = Re.flat) == null ? void 0 : Ge.type) == null ? void 0 : ei.teaser), 1)
|
|
4364
|
-
])) : createCommentVNode("", !0),
|
|
4365
|
-
createElementVNode("div", _hoisted_16, [
|
|
4366
|
-
(ii = Re.flat) != null && ii.floor_number ? (openBlock(), createBlock(_sfc_main$9, {
|
|
4367
|
-
key: 0,
|
|
4368
|
-
keyName: unref(tr)("floor"),
|
|
4369
|
-
value: (oi = Re.flat) == null ? void 0 : oi.floor_number
|
|
4370
|
-
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
4371
|
-
(ti = (ni = Re.flat) == null ? void 0 : ni.type) != null && ti.area_m2 ? (openBlock(), createBlock(_sfc_main$9, {
|
|
4372
|
-
key: 1,
|
|
4373
|
-
keyName: unref(tr)("area"),
|
|
4374
|
-
value: unref(getArea)(Number((si = Re.flat) == null ? void 0 : si.type.area_m2))
|
|
4375
|
-
}, {
|
|
4376
|
-
sufix: withCtx(() => Be[2] || (Be[2] = [
|
|
4377
|
-
createElementVNode("span", null, [
|
|
4378
|
-
createTextVNode(" m "),
|
|
4379
|
-
createElementVNode("sup", { class: "ire-inline-block -ire-translate-x-1 !ire-text-sm" }, " 2 ")
|
|
4380
|
-
], -1)
|
|
4381
|
-
])),
|
|
4382
|
-
_: 1
|
|
4383
|
-
}, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
4384
|
-
(ri = (ai = Re.flat) == null ? void 0 : ai.type) != null && ri.rooms_count ? (openBlock(), createBlock(_sfc_main$9, {
|
|
4385
|
-
key: 2,
|
|
4386
|
-
keyName: unref(tr)("room"),
|
|
4387
|
-
value: Re.flat.type.rooms_count
|
|
4388
|
-
}, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
|
|
4389
|
-
(li = Re.flat) != null && li.offer_price ? (openBlock(), createBlock(_sfc_main$9, {
|
|
4390
|
-
key: 3,
|
|
4391
|
-
keyName: unref(tr)("price"),
|
|
4392
|
-
value: unref(getPrice)(Number((ui = Re.flat) == null ? void 0 : ui.offer_price))
|
|
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"
|
|
4393
4269
|
}, {
|
|
4394
|
-
|
|
4395
|
-
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;
|
|
4396
4272
|
return [
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
|
|
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)
|
|
4401
4296
|
];
|
|
4402
4297
|
}),
|
|
4403
|
-
|
|
4404
|
-
|
|
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"])
|
|
4405
4316
|
]),
|
|
4406
4317
|
_: 1
|
|
4407
|
-
}, 8, ["
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
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)
|
|
4411
4325
|
}, {
|
|
4412
|
-
|
|
4413
|
-
|
|
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"])
|
|
4414
4330
|
]),
|
|
4415
4331
|
_: 1
|
|
4416
|
-
}, 8, ["
|
|
4417
|
-
])
|
|
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)
|
|
4418
4408
|
])
|
|
4419
4409
|
])
|
|
4420
4410
|
]);
|
|
4421
4411
|
};
|
|
4422
4412
|
}
|
|
4423
|
-
}), _sfc_main$
|
|
4413
|
+
}), _sfc_main$8 = {}, _hoisted_1$4 = {
|
|
4424
4414
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4425
4415
|
x: "0px",
|
|
4426
4416
|
y: "0px",
|
|
@@ -4428,12 +4418,12 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
4428
4418
|
height: "20",
|
|
4429
4419
|
viewBox: "0 0 50 50"
|
|
4430
4420
|
};
|
|
4431
|
-
function _sfc_render(Le, _e) {
|
|
4421
|
+
function _sfc_render$1(Le, _e) {
|
|
4432
4422
|
return openBlock(), createElementBlock("svg", _hoisted_1$4, _e[0] || (_e[0] = [
|
|
4433
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)
|
|
4434
4424
|
]));
|
|
4435
4425
|
}
|
|
4436
|
-
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({
|
|
4437
4427
|
__name: "PreviewModal",
|
|
4438
4428
|
emits: ["close"],
|
|
4439
4429
|
setup(Le) {
|
|
@@ -4464,7 +4454,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4464
4454
|
])
|
|
4465
4455
|
]));
|
|
4466
4456
|
}
|
|
4467
|
-
}), _hoisted_1$2 = ["innerHTML"], _sfc_main$
|
|
4457
|
+
}), _hoisted_1$2 = ["innerHTML"], _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
4468
4458
|
__name: "BaseEditor",
|
|
4469
4459
|
props: {
|
|
4470
4460
|
editor: {}
|
|
@@ -4475,7 +4465,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4475
4465
|
innerHTML: _e.editor
|
|
4476
4466
|
}, null, 8, _hoisted_1$2));
|
|
4477
4467
|
}
|
|
4478
|
-
}), _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({
|
|
4479
4469
|
__name: "ActionModal",
|
|
4480
4470
|
props: {
|
|
4481
4471
|
modalData: {}
|
|
@@ -4485,7 +4475,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4485
4475
|
var De, $e, Re, Be, Ne, ze, Ae, Ie, je, Fe, Ve, He;
|
|
4486
4476
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
4487
4477
|
createElementVNode("p", _hoisted_2$1, toDisplayString(($e = (De = _e.modalData) == null ? void 0 : De.modalObject) == null ? void 0 : $e.title), 1),
|
|
4488
|
-
createVNode(_sfc_main$
|
|
4478
|
+
createVNode(_sfc_main$6, {
|
|
4489
4479
|
editor: (Be = (Re = _e.modalData) == null ? void 0 : Re.modalObject) == null ? void 0 : Be.description
|
|
4490
4480
|
}, null, 8, ["editor"]),
|
|
4491
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", {
|
|
@@ -4497,7 +4487,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4497
4487
|
]);
|
|
4498
4488
|
};
|
|
4499
4489
|
}
|
|
4500
|
-
}), _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({
|
|
4501
4491
|
__name: "BlockPreview",
|
|
4502
4492
|
props: {
|
|
4503
4493
|
block: {},
|
|
@@ -4573,14 +4563,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4573
4563
|
document.removeEventListener("mousemove", Ve);
|
|
4574
4564
|
}), (We, Xe) => {
|
|
4575
4565
|
var Ye;
|
|
4576
|
-
return openBlock(), createBlock(_sfc_main$
|
|
4566
|
+
return openBlock(), createBlock(_sfc_main$j, {
|
|
4577
4567
|
hoverdData: je.value,
|
|
4578
4568
|
type: (Ye = Ie.value) == null ? void 0 : Ye.type
|
|
4579
4569
|
}, {
|
|
4580
4570
|
header: withCtx(() => {
|
|
4581
4571
|
var Ze;
|
|
4582
4572
|
return [
|
|
4583
|
-
createVNode(_sfc_main$
|
|
4573
|
+
createVNode(_sfc_main$f, {
|
|
4584
4574
|
onClick: Xe[0] || (Xe[0] = (Ke) => We.$emit("changeComponent", "project", null))
|
|
4585
4575
|
}),
|
|
4586
4576
|
createElementVNode("div", _hoisted_1, toDisplayString((Ze = We.block) == null ? void 0 : Ze.title), 1)
|
|
@@ -4616,7 +4606,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4616
4606
|
}, 8, ["hoverdData", "type"]);
|
|
4617
4607
|
};
|
|
4618
4608
|
}
|
|
4619
|
-
}), _sfc_main$
|
|
4609
|
+
}), _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
4620
4610
|
__name: "MouseTracker",
|
|
4621
4611
|
setup(Le) {
|
|
4622
4612
|
const _e = useGlobalStore(), ke = ref(!0), De = ref(-400), $e = ref(-400), Re = ref(null);
|
|
@@ -4646,31 +4636,29 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4646
4636
|
renderSlot(Fe.$slots, "default")
|
|
4647
4637
|
], 512));
|
|
4648
4638
|
}
|
|
4649
|
-
}), _sfc_main$
|
|
4639
|
+
}), _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
4650
4640
|
__name: "Preview",
|
|
4651
4641
|
props: {
|
|
4652
4642
|
shortcodeDataProps: {}
|
|
4653
4643
|
},
|
|
4654
4644
|
setup(__props) {
|
|
4655
|
-
var Le, _e, ke, De, $e, Re, Be
|
|
4656
|
-
const props = __props, globalStore = useGlobalStore(), { getMetaValue } = globalStore,
|
|
4657
|
-
(
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
PREVIEW_STROKE_WIDTH: +((Re = getMeta("stroke_width")) == null ? void 0 : Re.meta_value) || 1,
|
|
4665
|
-
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
|
|
4666
4654
|
}), colors = reactive({
|
|
4667
|
-
path: (
|
|
4668
|
-
path_hover: (
|
|
4669
|
-
reserved: (
|
|
4670
|
-
sold: (
|
|
4671
|
-
stroke_color: (
|
|
4672
|
-
stroke_width: (
|
|
4673
|
-
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
|
|
4674
4662
|
}), cssVariables = computed$1(() => ({
|
|
4675
4663
|
"--reserved-color": colors.reserved,
|
|
4676
4664
|
"--sold-color": colors.sold,
|
|
@@ -4682,30 +4670,30 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4682
4670
|
})), shortcodeData = ref(props.shortcodeDataProps), flow = ref(
|
|
4683
4671
|
"projectFlow"
|
|
4684
4672
|
), hoveredData = ref(), showModal = ref(!1), activeBlock = ref(), activeFloor = ref(), showFlatModal = ref(), project = computed$1(() => {
|
|
4685
|
-
var
|
|
4673
|
+
var Ne;
|
|
4686
4674
|
if (shortcodeData.value)
|
|
4687
|
-
return (
|
|
4675
|
+
return (Ne = shortcodeData.value) == null ? void 0 : Ne.project;
|
|
4688
4676
|
}), floors = computed$1(() => {
|
|
4689
|
-
var
|
|
4677
|
+
var Ne, ze;
|
|
4690
4678
|
if (shortcodeData.value)
|
|
4691
|
-
return (
|
|
4692
|
-
var
|
|
4693
|
-
const
|
|
4694
|
-
var
|
|
4695
|
-
return (
|
|
4696
|
-
(
|
|
4697
|
-
var
|
|
4698
|
-
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;
|
|
4699
4687
|
}
|
|
4700
4688
|
) : !1;
|
|
4701
4689
|
});
|
|
4702
|
-
|
|
4703
|
-
const { conf:
|
|
4704
|
-
if (
|
|
4705
|
-
const
|
|
4706
|
-
|
|
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");
|
|
4707
4695
|
}
|
|
4708
|
-
}), (
|
|
4696
|
+
}), (ze = shortcodeData.value) == null ? void 0 : ze.floors;
|
|
4709
4697
|
}), blocks = computed$1(() => {
|
|
4710
4698
|
if (shortcodeData.value)
|
|
4711
4699
|
return shortcodeData.value.blocks;
|
|
@@ -4713,24 +4701,24 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4713
4701
|
if (shortcodeData.value)
|
|
4714
4702
|
return shortcodeData.value.types;
|
|
4715
4703
|
}), flats = computed$1(() => {
|
|
4716
|
-
var
|
|
4704
|
+
var Ne, ze;
|
|
4717
4705
|
if (shortcodeData.value)
|
|
4718
|
-
return (
|
|
4719
|
-
var
|
|
4720
|
-
if (
|
|
4721
|
-
const
|
|
4722
|
-
|
|
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);
|
|
4723
4711
|
}
|
|
4724
|
-
return
|
|
4712
|
+
return Ae;
|
|
4725
4713
|
});
|
|
4726
4714
|
}), actions = computed$1(() => {
|
|
4727
|
-
var
|
|
4715
|
+
var Ne;
|
|
4728
4716
|
if (shortcodeData.value)
|
|
4729
|
-
return (
|
|
4717
|
+
return (Ne = shortcodeData.value) == null ? void 0 : Ne.actions;
|
|
4730
4718
|
}), projectMeta = computed$1(() => {
|
|
4731
|
-
var
|
|
4719
|
+
var Ne;
|
|
4732
4720
|
if (shortcodeData.value)
|
|
4733
|
-
return (
|
|
4721
|
+
return (Ne = shortcodeData.value) == null ? void 0 : Ne.meta;
|
|
4734
4722
|
}), changeRoute = (flowType, polygonItem) => {
|
|
4735
4723
|
switch (flowType) {
|
|
4736
4724
|
case "project":
|
|
@@ -4757,8 +4745,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4757
4745
|
else if ((actionData == null ? void 0 : actionData.actionType) === "script")
|
|
4758
4746
|
try {
|
|
4759
4747
|
eval(actionData == null ? void 0 : actionData.script);
|
|
4760
|
-
} catch (
|
|
4761
|
-
console.error("Error executing script:",
|
|
4748
|
+
} catch (Ne) {
|
|
4749
|
+
console.error("Error executing script:", Ne);
|
|
4762
4750
|
}
|
|
4763
4751
|
break;
|
|
4764
4752
|
}
|
|
@@ -4766,10 +4754,10 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4766
4754
|
return watch(
|
|
4767
4755
|
() => projectMeta.value,
|
|
4768
4756
|
() => {
|
|
4769
|
-
const
|
|
4770
|
-
|
|
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));
|
|
4771
4759
|
}
|
|
4772
|
-
), provide("showFlatModal", showFlatModal), (
|
|
4760
|
+
), provide("showFlatModal", showFlatModal), (Ne, ze) => (openBlock(), createBlock(_sfc_main$3, { class: "interactive-real-estate ire-text-[16px]" }, {
|
|
4773
4761
|
default: withCtx(() => [
|
|
4774
4762
|
createVNode(Transition, {
|
|
4775
4763
|
name: "ire-fade-in-out",
|
|
@@ -4780,7 +4768,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4780
4768
|
key: flow.value,
|
|
4781
4769
|
style: normalizeStyle(cssVariables.value)
|
|
4782
4770
|
}, [
|
|
4783
|
-
flow.value === "projectFlow" ? (openBlock(), createBlock(_sfc_main$
|
|
4771
|
+
flow.value === "projectFlow" ? (openBlock(), createBlock(_sfc_main$i, {
|
|
4784
4772
|
key: 0,
|
|
4785
4773
|
project: project.value,
|
|
4786
4774
|
floors: floors.value,
|
|
@@ -4788,22 +4776,22 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4788
4776
|
projectMeta: projectMeta.value,
|
|
4789
4777
|
blocks: blocks.value,
|
|
4790
4778
|
actions: actions.value,
|
|
4791
|
-
onChangeComponent:
|
|
4792
|
-
}, 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, {
|
|
4793
4781
|
key: 1,
|
|
4794
4782
|
block: activeBlock.value,
|
|
4795
4783
|
flats: flats.value,
|
|
4796
4784
|
floors: floors.value,
|
|
4797
4785
|
actions: actions.value,
|
|
4798
|
-
onChangeComponent:
|
|
4799
|
-
}, 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, {
|
|
4800
4788
|
key: 2,
|
|
4801
4789
|
flats: flats.value,
|
|
4802
4790
|
floor: activeFloor.value,
|
|
4803
4791
|
floors: floors.value,
|
|
4804
4792
|
blocks: blocks.value,
|
|
4805
4793
|
actions: actions.value,
|
|
4806
|
-
onChangeComponent:
|
|
4794
|
+
onChangeComponent: ze[2] || (ze[2] = (Ae, Ie) => changeRoute(Ae, Ie))
|
|
4807
4795
|
}, null, 8, ["flats", "floor", "floors", "blocks", "actions"])) : createCommentVNode("", !0)
|
|
4808
4796
|
], 4)) : createCommentVNode("", !0)
|
|
4809
4797
|
]),
|
|
@@ -4815,15 +4803,15 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4815
4803
|
appear: ""
|
|
4816
4804
|
}, {
|
|
4817
4805
|
default: withCtx(() => [
|
|
4818
|
-
showFlatModal.value ? (openBlock(), createBlock(_sfc_main$
|
|
4806
|
+
showFlatModal.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
4819
4807
|
key: 0,
|
|
4820
|
-
onClose:
|
|
4808
|
+
onClose: ze[4] || (ze[4] = (Ae) => showFlatModal.value = !1)
|
|
4821
4809
|
}, {
|
|
4822
4810
|
default: withCtx(() => [
|
|
4823
|
-
createVNode(_sfc_main$
|
|
4811
|
+
createVNode(_sfc_main$9, {
|
|
4824
4812
|
flat: hoveredData.value,
|
|
4825
4813
|
floors: floors.value,
|
|
4826
|
-
onChangeComponent:
|
|
4814
|
+
onChangeComponent: ze[3] || (ze[3] = (Ae, Ie) => changeRoute(Ae, Ie))
|
|
4827
4815
|
}, null, 8, ["flat", "floors"])
|
|
4828
4816
|
]),
|
|
4829
4817
|
_: 1
|
|
@@ -4838,12 +4826,12 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4838
4826
|
appear: ""
|
|
4839
4827
|
}, {
|
|
4840
4828
|
default: withCtx(() => [
|
|
4841
|
-
showModal.value ? (openBlock(), createBlock(_sfc_main$
|
|
4829
|
+
showModal.value ? (openBlock(), createBlock(_sfc_main$7, {
|
|
4842
4830
|
key: 0,
|
|
4843
|
-
onClose:
|
|
4831
|
+
onClose: ze[5] || (ze[5] = (Ae) => showModal.value = !1)
|
|
4844
4832
|
}, {
|
|
4845
4833
|
default: withCtx(() => [
|
|
4846
|
-
createVNode(_sfc_main$
|
|
4834
|
+
createVNode(_sfc_main$5, { modalData: hoveredData.value }, null, 8, ["modalData"])
|
|
4847
4835
|
]),
|
|
4848
4836
|
_: 1
|
|
4849
4837
|
})) : createCommentVNode("", !0)
|
|
@@ -4855,7 +4843,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4855
4843
|
_: 1
|
|
4856
4844
|
}));
|
|
4857
4845
|
}
|
|
4858
|
-
}), _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4846
|
+
}), _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
4859
4847
|
__name: "Project",
|
|
4860
4848
|
props: {
|
|
4861
4849
|
data: {},
|
|
@@ -4864,12 +4852,26 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]
|
|
|
4864
4852
|
setup(Le) {
|
|
4865
4853
|
const _e = Le, ke = useGlobalStore();
|
|
4866
4854
|
return ke.setData(_e.data), ke.translations = _e.translations, (De, $e) => (openBlock(), createElementBlock("div", null, [
|
|
4867
|
-
createVNode(_sfc_main$
|
|
4855
|
+
createVNode(_sfc_main$2, { "shortcode-data-props": De.data }, null, 8, ["shortcode-data-props"])
|
|
4868
4856
|
]));
|
|
4869
4857
|
}
|
|
4870
|
-
}),
|
|
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);
|
|
4871
4872
|
app.use(pinia);
|
|
4872
4873
|
app.mount("#app");
|
|
4873
4874
|
export {
|
|
4874
|
-
_sfc_main as Project
|
|
4875
|
+
_sfc_main$1 as Project,
|
|
4876
|
+
createProjectApp
|
|
4875
4877
|
};
|