ire-preview 3.2.20 → 3.2.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.es.js CHANGED
@@ -94,27 +94,27 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
94
94
  const He = $e.state.value[Be];
95
95
  !Ve && !He && ($e.state.value[Be] = {}), ref({});
96
96
  let We;
97
- function qe(Ke) {
97
+ function qe(Ge) {
98
98
  let Xe;
99
- Ie = Ae = !1, typeof Ke == "function" ? (Ke($e.state.value[Be]), Xe = {
99
+ Ie = Ae = !1, typeof Ge == "function" ? (Ge($e.state.value[Be]), Xe = {
100
100
  type: MutationType.patchFunction,
101
101
  storeId: Be,
102
102
  events: Fe
103
- }) : (mergeReactiveObjects($e.state.value[Be], Ke), Xe = {
103
+ }) : (mergeReactiveObjects($e.state.value[Be], Ge), Xe = {
104
104
  type: MutationType.patchObject,
105
- payload: Ke,
105
+ payload: Ge,
106
106
  storeId: Be,
107
107
  events: Fe
108
108
  });
109
- const Ge = We = Symbol();
109
+ const Ke = We = Symbol();
110
110
  nextTick().then(() => {
111
- We === Ge && (Ie = !0);
111
+ We === Ke && (Ie = !0);
112
112
  }), Ae = !0, triggerSubscriptions(ze, Xe, $e.state.value[Be]);
113
113
  }
114
114
  const Ue = Ve ? function() {
115
- const { state: Xe } = ke, Ge = Xe ? Xe() : {};
115
+ const { state: Xe } = ke, Ke = Xe ? Xe() : {};
116
116
  this.$patch((ti) => {
117
- assign(ti, Ge);
117
+ assign(ti, Ke);
118
118
  });
119
119
  } : (
120
120
  /* istanbul ignore next */
@@ -123,10 +123,10 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
123
123
  function Ye() {
124
124
  De.stop(), ze.clear(), je.clear(), $e._s.delete(Be);
125
125
  }
126
- const Je = (Ke, Xe = "") => {
127
- if (ACTION_MARKER in Ke)
128
- return Ke[ACTION_NAME] = Xe, Ke;
129
- const Ge = function() {
126
+ const Je = (Ge, Xe = "") => {
127
+ if (ACTION_MARKER in Ge)
128
+ return Ge[ACTION_NAME] = Xe, Ge;
129
+ const Ke = function() {
130
130
  setActivePinia($e);
131
131
  const ti = Array.from(arguments), ii = /* @__PURE__ */ new Set(), oi = /* @__PURE__ */ new Set();
132
132
  function ri(li) {
@@ -137,20 +137,20 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
137
137
  }
138
138
  triggerSubscriptions(je, {
139
139
  args: ti,
140
- name: Ge[ACTION_NAME],
140
+ name: Ke[ACTION_NAME],
141
141
  store: Qe,
142
142
  after: ri,
143
143
  onError: si
144
144
  });
145
145
  let ai;
146
146
  try {
147
- ai = Ke.apply(this && this.$id === Be ? this : Qe, ti);
147
+ ai = Ge.apply(this && this.$id === Be ? this : Qe, ti);
148
148
  } catch (li) {
149
149
  throw triggerSubscriptions(oi, li), li;
150
150
  }
151
151
  return ai instanceof Promise ? ai.then((li) => (triggerSubscriptions(ii, li), li)).catch((li) => (triggerSubscriptions(oi, li), Promise.reject(li))) : (triggerSubscriptions(ii, ai), ai);
152
152
  };
153
- return Ge[ACTION_MARKER] = !0, Ge[ACTION_NAME] = Xe, Ge;
153
+ return Ke[ACTION_MARKER] = !0, Ke[ACTION_NAME] = Xe, Ke;
154
154
  }, Ze = {
155
155
  _p: $e,
156
156
  // _s: scope,
@@ -158,38 +158,38 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
158
158
  $onAction: addSubscription.bind(null, je),
159
159
  $patch: qe,
160
160
  $reset: Ue,
161
- $subscribe(Ke, Xe = {}) {
162
- const Ge = addSubscription(ze, Ke, Xe.detached, () => ti()), ti = De.run(() => watch(() => $e.state.value[Be], (ii) => {
163
- (Xe.flush === "sync" ? Ae : Ie) && Ke({
161
+ $subscribe(Ge, Xe = {}) {
162
+ const Ke = addSubscription(ze, Ge, Xe.detached, () => ti()), ti = De.run(() => watch(() => $e.state.value[Be], (ii) => {
163
+ (Xe.flush === "sync" ? Ae : Ie) && Ge({
164
164
  storeId: Be,
165
165
  type: MutationType.direct,
166
166
  events: Fe
167
167
  }, ii);
168
168
  }, assign({}, Re, Xe)));
169
- return Ge;
169
+ return Ke;
170
170
  },
171
171
  $dispose: Ye
172
172
  }, Qe = reactive(Ze);
173
173
  $e._s.set(Be, Qe);
174
174
  const ei = ($e._a && $e._a.runWithContext || fallbackRunWithContext)(() => $e._e.run(() => (De = effectScope()).run(() => _e({ action: Je }))));
175
- for (const Ke in ei) {
176
- const Xe = ei[Ke];
175
+ for (const Ge in ei) {
176
+ const Xe = ei[Ge];
177
177
  if (isRef(Xe) && !isComputed(Xe) || isReactive(Xe))
178
- Ve || (He && shouldHydrate(Xe) && (isRef(Xe) ? Xe.value = He[Ke] : mergeReactiveObjects(Xe, He[Ke])), $e.state.value[Be][Ke] = Xe);
178
+ Ve || (He && shouldHydrate(Xe) && (isRef(Xe) ? Xe.value = He[Ge] : mergeReactiveObjects(Xe, He[Ge])), $e.state.value[Be][Ge] = Xe);
179
179
  else if (typeof Xe == "function") {
180
- const Ge = Je(Xe, Ke);
181
- ei[Ke] = Ge, Le.actions[Ke] = Xe;
180
+ const Ke = Je(Xe, Ge);
181
+ ei[Ge] = Ke, Le.actions[Ge] = Xe;
182
182
  }
183
183
  }
184
184
  return assign(Qe, ei), assign(toRaw(Qe), ei), Object.defineProperty(Qe, "$state", {
185
185
  get: () => $e.state.value[Be],
186
- set: (Ke) => {
186
+ set: (Ge) => {
187
187
  qe((Xe) => {
188
- assign(Xe, Ke);
188
+ assign(Xe, Ge);
189
189
  });
190
190
  }
191
- }), $e._p.forEach((Ke) => {
192
- assign(Qe, De.run(() => Ke({
191
+ }), $e._p.forEach((Ge) => {
192
+ assign(Qe, De.run(() => Ge({
193
193
  store: Qe,
194
194
  app: $e._a,
195
195
  pinia: $e,
@@ -229,8 +229,8 @@ function storeToRefs(Be) {
229
229
  const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
230
230
  var We, qe, Ue, Ye, Je, Ze, Qe, ni;
231
231
  const Be = ref(), _e = ref("1"), ke = ref(), $e = ref(), Ne = (ei) => {
232
- var Ke, Xe, Ge;
233
- return ((Ge = (Xe = (Ke = ke.value) == null ? void 0 : Ke.meta) == null ? void 0 : Xe.find((ti) => (ti == null ? void 0 : ti.meta_key) === ei)) == null ? void 0 : Ge.meta_value) || "";
232
+ var Ge, Xe, Ke;
233
+ return ((Ke = (Xe = (Ge = ke.value) == null ? void 0 : Ge.meta) == null ? void 0 : Xe.find((ti) => (ti == null ? void 0 : ti.meta_key) === ei)) == null ? void 0 : Ke.meta_value) || "";
234
234
  }, Ve = ref({
235
235
  PREVIEW_PATH_COLOR: Ne("path_color") || "rgba(255, 255, 255, 0.3)",
236
236
  PREVIEW_PATH_HOVER_COLOR: Ne("path_hover_color") || "rgba(250, 250, 250, 0.54)",
@@ -251,10 +251,10 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
251
251
  border_radius: (ni = Ve.value) == null ? void 0 : ni.PREVIEW_BORDER_RADIUS
252
252
  }), Le = computed$1(() => {
253
253
  var ei;
254
- return (ei = ke.value) == null ? void 0 : ei.flats.map((Ke) => {
255
- var Ge, ti;
256
- const Xe = Ke != null && Ke.use_type || !(Ke != null && Ke.type) ? ((ti = (Ge = ke.value) == null ? void 0 : Ge.types) == null ? void 0 : ti.find((ii) => ii.id === (Ke == null ? void 0 : Ke.type_id))) ?? (Ke == null ? void 0 : Ke.type) : Ke == null ? void 0 : Ke.type;
257
- return { ...Ke, type: Xe };
254
+ return (ei = ke.value) == null ? void 0 : ei.flats.map((Ge) => {
255
+ var Ke, ti;
256
+ const Xe = Ge != null && Ge.use_type || !(Ge != null && Ge.type) ? ((ti = (Ke = ke.value) == null ? void 0 : Ke.types) == null ? void 0 : ti.find((ii) => ii.id === (Ge == null ? void 0 : Ge.type_id))) ?? (Ge == null ? void 0 : Ge.type) : Ge == null ? void 0 : Ge.type;
257
+ return { ...Ge, type: Xe };
258
258
  });
259
259
  }), Re = computed$1(() => Ne("open_reserved_flat") === "true"), Ie = computed$1(() => Ne("open_sold_flat") === "true"), Ae = computed$1(() => Ne("price_rounded") === "true"), ze = computed$1(() => {
260
260
  var ei;
@@ -279,8 +279,8 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
279
279
  return (ei = ke.value) == null ? void 0 : ei.meta;
280
280
  },
281
281
  () => {
282
- const ei = Ne("path_color"), Ke = Ne("path_hover_color"), Xe = Ne("reserved_color"), Ge = Ne("sold_color"), ti = Ne("stroke_color"), ii = Ne("primary_color"), oi = Ne("stroke_width"), ri = Ne("border_radius");
283
- ei && (De.path = ei.toString()), Ke && (De.path_hover = Ke.toString()), Xe && (De.reserved = Xe.toString()), Ge && (De.sold = Ge.toString()), ti && (De.stroke_color = ti.toString()), ti && (De.stroke_color = ti.toString()), ii && (De.primary_color = ii.toString()), De.stroke_width = Number(oi) || 1, De.border_radius = Number(ri) || 0;
282
+ const ei = Ne("path_color"), Ge = Ne("path_hover_color"), Xe = Ne("reserved_color"), Ke = Ne("sold_color"), ti = Ne("stroke_color"), ii = Ne("primary_color"), oi = Ne("stroke_width"), ri = Ne("border_radius");
283
+ ei && (De.path = ei.toString()), Ge && (De.path_hover = Ge.toString()), Xe && (De.reserved = Xe.toString()), Ke && (De.sold = Ke.toString()), ti && (De.stroke_color = ti.toString()), ti && (De.stroke_color = ti.toString()), ii && (De.primary_color = ii.toString()), De.stroke_width = Number(oi) || 1, De.border_radius = Number(ri) || 0;
284
284
  },
285
285
  { deep: !0 }
286
286
  ), {
@@ -301,7 +301,7 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
301
301
  setData: Fe,
302
302
  setIrePlaginWp: He
303
303
  };
304
- }), _sfc_main$J = /* @__PURE__ */ defineComponent({
304
+ }), _sfc_main$K = /* @__PURE__ */ defineComponent({
305
305
  __name: "ShortcodeWrapper",
306
306
  setup(Be) {
307
307
  const _e = useGlobalStore(), { cssVariables: ke } = storeToRefs(_e);
@@ -564,7 +564,14 @@ const tr = (Be) => {
564
564
  maximumFractionDigits: ke
565
565
  });
566
566
  return _e.getMetaValue("currency") === "chf" && ($e = $e.replaceAll(",", "'")), $e;
567
- }, getArea = (Be) => Number(Be).toLocaleString(), getAreaUnitLabel = () => useGlobalStore().getMetaValue("area_unit") ?? "m", getFloorById = (Be) => {
567
+ }, getArea = (Be) => Number(Be).toLocaleString(), getAreaUnitLabel = () => useGlobalStore().getMetaValue("area_unit") ?? "m", getBlockById = (Be) => {
568
+ var ke, $e;
569
+ const _e = useGlobalStore();
570
+ if (Be)
571
+ return ($e = (ke = _e.shortcodeData) == null ? void 0 : ke.blocks) == null ? void 0 : $e.find(
572
+ (Ne) => Ne.id === (Be == null ? void 0 : Be.toString())
573
+ );
574
+ }, getFloorById = (Be) => {
568
575
  var ke, $e;
569
576
  const _e = useGlobalStore();
570
577
  if (Be)
@@ -606,7 +613,7 @@ const tr = (Be) => {
606
613
  }, _hoisted_10$6 = { class: "irep-tooltip-1__floor-status-value ire-min-w-3 !ire-text-2xl" }, _hoisted_11$4 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_12$3 = {
607
614
  key: 1,
608
615
  class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
609
- }, _hoisted_13$2 = { class: "irep-tooltip-1__floor-status-value min-w-3 !ire-text-2xl" }, _hoisted_14$2 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_15$1 = {
616
+ }, _hoisted_13$1 = { class: "irep-tooltip-1__floor-status-value min-w-3 !ire-text-2xl" }, _hoisted_14$1 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_15$1 = {
610
617
  key: 2,
611
618
  class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
612
619
  }, _hoisted_16$1 = { class: "irep-tooltip-1__floor-status-value ire-min-w-3 !ire-text-2xl" }, _hoisted_17$1 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_18$1 = {
@@ -624,7 +631,7 @@ const tr = (Be) => {
624
631
  }, _hoisted_31$1 = {
625
632
  key: 0,
626
633
  class: "irep-tooltip-1__flat-price-value ire-whitespace-nowrap !ire-text-2xl"
627
- }, _hoisted_32 = { key: 1 }, _hoisted_33 = { class: "irep-tooltip-1__flat-price-line-value ire-min-w-max !ire-text-sm ire-line-through ire-decoration-black/50" }, _hoisted_34 = { class: "irep-tooltip-1__flat-price-value ire-min-w-max ire-whitespace-nowrap !ire-text-2xl" }, _hoisted_35 = { class: "ire-border ire-border-solid ire-border-gray-800 ire-p-2" }, _hoisted_36 = { class: "irep-tooltip-1__flat-area ire-translate-x-3 ire-bg-white" }, _sfc_main$I = /* @__PURE__ */ defineComponent({
634
+ }, _hoisted_32 = { key: 1 }, _hoisted_33 = { class: "irep-tooltip-1__flat-price-line-value ire-min-w-max !ire-text-sm ire-line-through ire-decoration-black/50" }, _hoisted_34 = { class: "irep-tooltip-1__flat-price-value ire-min-w-max ire-whitespace-nowrap !ire-text-2xl" }, _hoisted_35 = { class: "ire-border ire-border-solid ire-border-gray-800 ire-p-2" }, _hoisted_36 = { class: "irep-tooltip-1__flat-area ire-translate-x-3 ire-bg-white" }, _sfc_main$J = /* @__PURE__ */ defineComponent({
628
635
  __name: "Tooltip_1",
629
636
  props: {
630
637
  hoveredData: {},
@@ -638,7 +645,7 @@ const tr = (Be) => {
638
645
  return ($e, Ne) => (openBlock(), createElementBlock("div", null, [
639
646
  createVNode(Transition, { name: "ire-fade-in-out" }, {
640
647
  default: withCtx(() => {
641
- var Ve, De, Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ye, Je, Ze, Qe, ni, ei, Ke, Xe, Ge, ti, ii, oi;
648
+ var Ve, De, Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ye, Je, Ze, Qe, ni, ei, Ge, Xe, Ke, ti, ii, oi;
642
649
  return [
643
650
  Be.type && Be.hoveredData && Be.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$F, [
644
651
  Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$m, [
@@ -653,8 +660,8 @@ const tr = (Be) => {
653
660
  createElementVNode("div", _hoisted_11$4, toDisplayString(unref(tr)("available")), 1)
654
661
  ])) : createCommentVNode("", !0),
655
662
  (He = (Fe = Be.hoveredData) == null ? void 0 : Fe.counts) != null && He.reserved ? (openBlock(), createElementBlock("div", _hoisted_12$3, [
656
- createElementVNode("div", _hoisted_13$2, toDisplayString((qe = (We = Be.hoveredData) == null ? void 0 : We.counts) == null ? void 0 : qe.reserved), 1),
657
- createElementVNode("div", _hoisted_14$2, toDisplayString(unref(tr)("reserved")), 1)
663
+ createElementVNode("div", _hoisted_13$1, toDisplayString((qe = (We = Be.hoveredData) == null ? void 0 : We.counts) == null ? void 0 : qe.reserved), 1),
664
+ createElementVNode("div", _hoisted_14$1, toDisplayString(unref(tr)("reserved")), 1)
658
665
  ])) : createCommentVNode("", !0),
659
666
  (Ye = (Ue = Be.hoveredData) == null ? void 0 : Ue.counts) != null && Ye.sold ? (openBlock(), createElementBlock("div", _hoisted_15$1, [
660
667
  createElementVNode("div", _hoisted_16$1, toDisplayString((Ze = (Je = Be.hoveredData) == null ? void 0 : Je.counts) == null ? void 0 : Ze.sold), 1),
@@ -675,11 +682,11 @@ const tr = (Be) => {
675
682
  createElementVNode("div", _hoisted_26$1, [
676
683
  ke.value ? (openBlock(), createElementBlock("div", _hoisted_27$1, toDisplayString(ke.value), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
677
684
  createElementVNode("div", _hoisted_28$1, toDisplayString(unref(tr)("price")), 1),
678
- (ei = Be.hoveredData) != null && ei.request_price ? (openBlock(), createElementBlock("div", _hoisted_29$1, toDisplayString(unref(tr)("Request Price")), 1)) : (Ke = Be.hoveredData) != null && Ke.price ? (openBlock(), createElementBlock("div", _hoisted_30$1, [
685
+ (ei = Be.hoveredData) != null && ei.request_price ? (openBlock(), createElementBlock("div", _hoisted_29$1, toDisplayString(unref(tr)("Request Price")), 1)) : (Ge = Be.hoveredData) != null && Ge.price ? (openBlock(), createElementBlock("div", _hoisted_30$1, [
679
686
  createElementVNode("div", null, [
680
687
  (Xe = Be.hoveredData) != null && Xe.offer_price ? (openBlock(), createElementBlock("div", _hoisted_32, [
681
688
  createElementVNode("div", _hoisted_33, [
682
- createTextVNode(toDisplayString(unref(getPrice)((Ge = Be.hoveredData) == null ? void 0 : Ge.price)) + " ", 1),
689
+ createTextVNode(toDisplayString(unref(getPrice)((Ke = Be.hoveredData) == null ? void 0 : Ke.price)) + " ", 1),
683
690
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
684
691
  ]),
685
692
  createElementVNode("div", _hoisted_34, [
@@ -695,10 +702,7 @@ const tr = (Be) => {
695
702
  ], 64))
696
703
  ]),
697
704
  createElementVNode("div", _hoisted_35, [
698
- createElementVNode("div", _hoisted_36, [
699
- createTextVNode(toDisplayString(unref(getArea)(+((oi = (ii = Be.hoveredData) == null ? void 0 : ii.type) == null ? void 0 : oi.area_m2))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + " ", 1),
700
- Ne[0] || (Ne[0] = createElementVNode("sup", { class: "ire-bg-white !ire-text-sm" }, " 2 ", -1))
701
- ])
705
+ createElementVNode("div", _hoisted_36, toDisplayString(unref(getArea)(+((oi = (ii = Be.hoveredData) == null ? void 0 : ii.type) == null ? void 0 : oi.area_m2))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + "² ", 1)
702
706
  ])
703
707
  ])) : createCommentVNode("", !0)
704
708
  ])) : createCommentVNode("", !0)
@@ -714,10 +718,10 @@ const tr = (Be) => {
714
718
  }, _hoisted_2$l = { class: "ire-flex ire-w-full ire-items-center ire-justify-evenly ire-p-4" }, _hoisted_3$k = { class: "irep-tooltip-2__floor-number ire-text-3xl ire-capitalize" }, _hoisted_4$e = {
715
719
  key: 0,
716
720
  class: "irep-tooltip-2__floor-conf ire-text-2xl ire-uppercase"
717
- }, _hoisted_5$9 = { key: 1 }, _hoisted_6$7 = { class: "irep-tooltip-2__floor-starting ire-text-sm ire-text-gray-400" }, _hoisted_7$6 = { class: "irep-tooltip-2__floor-price" }, _hoisted_8$5 = { class: "ire-right-[2px] ire-text-gray-200" }, _hoisted_9$5 = { class: "ire-flex ire-items-center ire-justify-between ire-gap-2 ire-bg-gray-800 ire-p-2" }, _hoisted_10$5 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_11$3 = { 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 = {
721
+ }, _hoisted_5$9 = { key: 1 }, _hoisted_6$7 = { class: "irep-tooltip-2__floor-starting ire-text-sm ire-text-gray-400" }, _hoisted_7$6 = { class: "irep-tooltip-2__floor-price" }, _hoisted_8$5 = { class: "ire-right-[2px] ire-text-gray-200" }, _hoisted_9$5 = { class: "ire-flex ire-items-center ire-justify-between ire-gap-2 ire-bg-gray-800 ire-p-2" }, _hoisted_10$5 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_11$3 = { 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 = {
718
722
  key: 1,
719
723
  class: "irep-tooltip-2__block ire-flex ire-items-center ire-gap-3 ire-p-4 !ire-text-sm"
720
- }, _hoisted_14$1 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_15 = { class: "irep-tooltip-2__block-title" }, _hoisted_16 = { class: "irep-tooltip-2__block-conf ire-text-gray-300 ire-opacity-80" }, _hoisted_17 = {
724
+ }, _hoisted_14 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_15 = { class: "irep-tooltip-2__block-title" }, _hoisted_16 = { class: "irep-tooltip-2__block-conf ire-text-gray-300 ire-opacity-80" }, _hoisted_17 = {
721
725
  key: 2,
722
726
  class: "irep-tooltip-2__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-1"
723
727
  }, _hoisted_18 = { class: "ire-flex ire-items-center ire-gap-4 ire-p-4" }, _hoisted_19 = { class: "irep-tooltip-2__flat-number ire-max-w-28 ire-text-base ire-capitalize" }, _hoisted_20 = {
@@ -732,7 +736,7 @@ const tr = (Be) => {
732
736
  }, _hoisted_28 = { class: "ire-right-[2px]" }, _hoisted_29 = { class: "irep-tooltip-2__flat-area" }, _hoisted_30 = { class: "ire-right-[2px] ire-text-base" }, _hoisted_31 = {
733
737
  key: 2,
734
738
  class: "irep-tooltip-2__flat-room-count"
735
- }, _sfc_main$H = /* @__PURE__ */ defineComponent({
739
+ }, _sfc_main$I = /* @__PURE__ */ defineComponent({
736
740
  __name: "Tooltip_2",
737
741
  props: {
738
742
  hoveredData: {},
@@ -745,7 +749,7 @@ const tr = (Be) => {
745
749
  return tr((Ve = _e.hoveredData) == null ? void 0 : Ve.conf);
746
750
  });
747
751
  return (Ve, De) => {
748
- var Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ye, Je, Ze, Qe, ni, ei, Ke, Xe, Ge, ti, ii, oi, ri, si, ai;
752
+ var Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ye, Je, Ze, Qe, ni, ei, Ge, Xe, Ke, ti, ii, oi, ri, si, ai;
749
753
  return Be.type && Be.hoveredData && Be.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
750
754
  key: 0,
751
755
  class: normalizeClass(["ire-pointer-events-none ire-absolute ire-select-none", {
@@ -789,15 +793,15 @@ const tr = (Be) => {
789
793
  createTextVNode(" " + toDisplayString(unref(tr)("reserved")), 1)
790
794
  ])
791
795
  ])
792
- ])) : Be.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
793
- createElementVNode("div", _hoisted_14$1, [
796
+ ])) : Be.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_13, [
797
+ createElementVNode("div", _hoisted_14, [
794
798
  createElementVNode("div", _hoisted_15, toDisplayString((Ze = Be.hoveredData) == null ? void 0 : Ze.title), 1),
795
799
  createElementVNode("span", _hoisted_16, toDisplayString(Ne.value), 1)
796
800
  ])
797
801
  ])) : Be.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_17, [
798
802
  createElementVNode("div", _hoisted_18, [
799
803
  createElementVNode("div", _hoisted_19, toDisplayString((Qe = Be.hoveredData) == null ? void 0 : Qe.flat_number), 1),
800
- De[4] || (De[4] = createElementVNode("span", null, "|", -1)),
804
+ De[3] || (De[3] = createElementVNode("span", null, "|", -1)),
801
805
  Ne.value ? (openBlock(), createElementBlock("div", _hoisted_20, toDisplayString(Ne.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_21, [
802
806
  (ni = Be.hoveredData) != null && ni.request_price ? (openBlock(), createElementBlock("div", _hoisted_22, toDisplayString(unref(tr)("Request Price")), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
803
807
  Be.hoveredData.offer_price ? (openBlock(), createElementBlock("div", _hoisted_23, [
@@ -806,19 +810,16 @@ const tr = (Be) => {
806
810
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
807
811
  ]),
808
812
  createElementVNode("div", _hoisted_25, [
809
- createTextVNode(toDisplayString(unref(getPrice)(+((Ke = Be.hoveredData) == null ? void 0 : Ke.offer_price))) + " ", 1),
813
+ createTextVNode(toDisplayString(unref(getPrice)(+((Ge = Be.hoveredData) == null ? void 0 : Ge.offer_price))) + " ", 1),
810
814
  createElementVNode("span", _hoisted_26, toDisplayString(unref(currencySymbol)()), 1)
811
815
  ])
812
816
  ])) : (Xe = Be.hoveredData) != null && Xe.price ? (openBlock(), createElementBlock("div", _hoisted_27, [
813
- createTextVNode(toDisplayString(unref(getPrice)(+((Ge = Be.hoveredData) == null ? void 0 : Ge.price))) + " ", 1),
817
+ createTextVNode(toDisplayString(unref(getPrice)(+((Ke = Be.hoveredData) == null ? void 0 : Ke.price))) + " ", 1),
814
818
  createElementVNode("span", _hoisted_28, toDisplayString(unref(currencySymbol)()), 1)
815
819
  ])) : createCommentVNode("", !0)
816
820
  ], 64)),
817
821
  createElementVNode("div", _hoisted_29, [
818
- createElementVNode("span", _hoisted_30, [
819
- createTextVNode(toDisplayString(unref(getArea)(+((ii = (ti = Be.hoveredData) == null ? void 0 : ti.type) == null ? void 0 : ii.area_m2))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + " ", 1),
820
- De[3] || (De[3] = createElementVNode("sup", { class: "ire-bg-transparent ire-text-sm" }, " 2 ", -1))
821
- ])
822
+ createElementVNode("span", _hoisted_30, toDisplayString(unref(getArea)(+((ii = (ti = Be.hoveredData) == null ? void 0 : ti.type) == null ? void 0 : ii.area_m2))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + "² ", 1)
822
823
  ]),
823
824
  (ri = (oi = Be.hoveredData) == null ? void 0 : oi.type) != null && ri.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_31, toDisplayString(unref(tr)("room")) + ": " + toDisplayString((ai = (si = Be.hoveredData) == null ? void 0 : si.type) == null ? void 0 : ai.rooms_count), 1)) : createCommentVNode("", !0)
824
825
  ]))
@@ -837,7 +838,7 @@ const tr = (Be) => {
837
838
  }, _hoisted_7$5 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_8$4 = { class: "irep-tooltip-3__block-title !text-2xl" }, _hoisted_9$4 = {
838
839
  key: 2,
839
840
  class: "irep-tooltip-3__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
840
- }, _hoisted_10$4 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_11$2 = { class: "irep-tooltip-3__flat-number ire-max-w-52 ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_12$1 = { class: "irep-tooltip-3__flat-text !ire-mt-2 ire-text-sm ire-uppercase" }, _sfc_main$G = /* @__PURE__ */ defineComponent({
841
+ }, _hoisted_10$4 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_11$2 = { class: "irep-tooltip-3__flat-number ire-max-w-52 ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_12$1 = { class: "irep-tooltip-3__flat-text !ire-mt-2 ire-text-sm ire-uppercase" }, _sfc_main$H = /* @__PURE__ */ defineComponent({
841
842
  __name: "Tooltip_3",
842
843
  props: {
843
844
  hoveredData: {},
@@ -877,7 +878,7 @@ const tr = (Be) => {
877
878
  }), _hoisted_1$C = {
878
879
  key: 0,
879
880
  class: "py-2 ire-mb-3 ire-flex ire-h-[48px] ire-items-center ire-justify-between ire-px-4"
880
- }, _sfc_main$F = /* @__PURE__ */ defineComponent({
881
+ }, _sfc_main$G = /* @__PURE__ */ defineComponent({
881
882
  __name: "PreviewLayout",
882
883
  props: {
883
884
  hoverdData: {},
@@ -904,23 +905,23 @@ const tr = (Be) => {
904
905
  createVNode(Transition, { name: "ire-fade-in-out" }, {
905
906
  default: withCtx(() => [
906
907
  Ve.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
907
- De.value === "1" ? (openBlock(), createBlock(_sfc_main$I, {
908
+ De.value === "1" ? (openBlock(), createBlock(_sfc_main$J, {
908
909
  key: 0,
909
910
  "hovered-data": Be.hoverdData,
910
911
  type: Be.type || "",
911
912
  class: "ire-hidden lg:ire-block"
912
- }, null, 8, ["hovered-data", "type"])) : De.value === "2" ? (openBlock(), createBlock(_sfc_main$H, {
913
+ }, null, 8, ["hovered-data", "type"])) : De.value === "2" ? (openBlock(), createBlock(_sfc_main$I, {
913
914
  key: 1,
914
915
  "hovered-data": Be.hoverdData,
915
916
  type: Be.type || "",
916
917
  "mouse-track": !0,
917
918
  class: "ire-hidden lg:ire-flex [&_.irep-tooltip]:group-active:!ire-scale-110"
918
- }, null, 8, ["hovered-data", "type"])) : De.value === "3" ? (openBlock(), createBlock(_sfc_main$H, {
919
+ }, null, 8, ["hovered-data", "type"])) : De.value === "3" ? (openBlock(), createBlock(_sfc_main$I, {
919
920
  key: 2,
920
921
  "hovered-data": Be.hoverdData,
921
922
  type: Be.type || "",
922
923
  class: "ire-hidden lg:ire-flex"
923
- }, null, 8, ["hovered-data", "type"])) : De.value === "4" ? (openBlock(), createBlock(_sfc_main$G, {
924
+ }, null, 8, ["hovered-data", "type"])) : De.value === "4" ? (openBlock(), createBlock(_sfc_main$H, {
924
925
  key: 3,
925
926
  "hovered-data": Be.hoverdData,
926
927
  type: Be.type || "",
@@ -932,7 +933,7 @@ const tr = (Be) => {
932
933
  })
933
934
  ], 512));
934
935
  }
935
- }), _hoisted_1$B = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_2$j = ["src"], _hoisted_3$i = ["innerHTML"], _sfc_main$E = /* @__PURE__ */ defineComponent({
936
+ }), _hoisted_1$B = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_2$j = ["src"], _hoisted_3$i = ["innerHTML"], _sfc_main$F = /* @__PURE__ */ defineComponent({
936
937
  __name: "ProjectPreview",
937
938
  props: {
938
939
  project: {},
@@ -954,13 +955,13 @@ const tr = (Be) => {
954
955
  var Ue;
955
956
  if (!Re.value) return;
956
957
  ((Ue = Re.value) == null ? void 0 : Ue.querySelectorAll("g")).forEach((Ye) => {
957
- var ni, ei, Ke, Xe, Ge;
958
+ var ni, ei, Ge, Xe, Ke;
958
959
  const Je = Ye == null ? void 0 : Ye.getAttribute("id"), Ze = (ei = (ni = $e.project) == null ? void 0 : ni.polygon_data) == null ? void 0 : ei.find(
959
960
  (ti) => (ti == null ? void 0 : ti.key) === Je
960
961
  ), Qe = Ze == null ? void 0 : Ze.id;
961
962
  switch (Ze == null ? void 0 : Ze.type) {
962
963
  case "block":
963
- const ti = (Ke = $e.blocks) == null ? void 0 : Ke.find((ri) => ri.id === Qe);
964
+ const ti = (Ge = $e.blocks) == null ? void 0 : Ge.find((ri) => ri.id === Qe);
964
965
  Ye.setAttribute("conf", (ti == null ? void 0 : ti.conf) || "");
965
966
  break;
966
967
  case "floor":
@@ -968,7 +969,7 @@ const tr = (Be) => {
968
969
  Ye.setAttribute("conf", (ii == null ? void 0 : ii.conf) || "");
969
970
  break;
970
971
  case "flat":
971
- const oi = (Ge = $e.flats) == null ? void 0 : Ge.find((ri) => ri.id === Qe);
972
+ const oi = (Ke = $e.flats) == null ? void 0 : Ke.find((ri) => ri.id === Qe);
972
973
  Ye.setAttribute("conf", (oi == null ? void 0 : oi.conf) || "");
973
974
  break;
974
975
  }
@@ -986,36 +987,36 @@ const tr = (Be) => {
986
987
  ), watch(
987
988
  () => Ie.value,
988
989
  (qe) => {
989
- var Ye, Je, Ze, Qe, ni, ei, Ke;
990
+ var Ye, Je, Ze, Qe, ni, ei, Ge;
990
991
  if (!qe) return;
991
992
  Ve.hoverdSvg = qe;
992
993
  const Ue = qe.parentElement;
993
994
  if (Ue && (Ue == null ? void 0 : Ue.nodeName) === "g") {
994
995
  const Xe = Ue == null ? void 0 : Ue.getAttribute("id");
995
996
  if (!Xe || (ze.value = ((Ye = $e.project) == null ? void 0 : Ye.polygon_data.find((ti) => (ti == null ? void 0 : ti.key) === Xe)) || null, !ze.value)) return;
996
- const Ge = (Je = ze.value) == null ? void 0 : Je.id;
997
+ const Ke = (Je = ze.value) == null ? void 0 : Je.id;
997
998
  switch ((Ze = ze.value) == null ? void 0 : Ze.type) {
998
999
  case "floor":
999
1000
  const ti = (Qe = $e.floors) == null ? void 0 : Qe.find(
1000
- (si) => si.id === Ge
1001
+ (si) => si.id === Ke
1001
1002
  );
1002
1003
  Ae.value = ti;
1003
1004
  break;
1004
1005
  case "block":
1005
1006
  const ii = (ni = $e.blocks) == null ? void 0 : ni.find(
1006
- (si) => (si == null ? void 0 : si.id) === Ge
1007
+ (si) => (si == null ? void 0 : si.id) === Ke
1007
1008
  );
1008
1009
  Ae.value = ii;
1009
1010
  break;
1010
1011
  case "flat":
1011
1012
  const oi = (ei = $e.flats) == null ? void 0 : ei.find(
1012
- (si) => (si == null ? void 0 : si.id) === Ge
1013
+ (si) => (si == null ? void 0 : si.id) === Ke
1013
1014
  );
1014
1015
  Ae.value = oi;
1015
1016
  break;
1016
1017
  case "tooltip":
1017
- const ri = (Ke = $e.actions) == null ? void 0 : Ke.find(
1018
- (si) => (si == null ? void 0 : si.id) === Ge
1018
+ const ri = (Ge = $e.actions) == null ? void 0 : Ge.find(
1019
+ (si) => (si == null ? void 0 : si.id) === Ke
1019
1020
  );
1020
1021
  Ae.value = ri;
1021
1022
  break;
@@ -1032,7 +1033,7 @@ const tr = (Be) => {
1032
1033
  document.removeEventListener("mousemove", Fe);
1033
1034
  }), (qe, Ue) => {
1034
1035
  var Ye;
1035
- return openBlock(), createBlock(_sfc_main$F, {
1036
+ return openBlock(), createBlock(_sfc_main$G, {
1036
1037
  hoverdData: Ae.value,
1037
1038
  type: (Ye = ze.value) == null ? void 0 : Ye.type
1038
1039
  }, {
@@ -1063,7 +1064,7 @@ const tr = (Be) => {
1063
1064
  }), _hoisted_1$A = { class: "irep-select ire-w-full ire-min-w-[150px] ire-max-w-[200px] lg:ire-min-w-[250px]" }, _hoisted_2$i = {
1064
1065
  key: 0,
1065
1066
  class: "label"
1066
- }, _hoisted_3$h = { class: "ire-relative" }, _hoisted_4$c = ["value", "disabled"], _sfc_main$D = /* @__PURE__ */ defineComponent({
1067
+ }, _hoisted_3$h = { class: "ire-relative" }, _hoisted_4$c = ["value", "disabled"], _sfc_main$E = /* @__PURE__ */ defineComponent({
1067
1068
  __name: "PreviewSelect",
1068
1069
  props: /* @__PURE__ */ mergeModels({
1069
1070
  data: {},
@@ -1103,7 +1104,7 @@ const tr = (Be) => {
1103
1104
  for (const [$e, Ne] of _e)
1104
1105
  ke[$e] = Ne;
1105
1106
  return ke;
1106
- }, _sfc_main$C = {}, _hoisted_1$z = {
1107
+ }, _sfc_main$D = {}, _hoisted_1$z = {
1107
1108
  xmlns: "http://www.w3.org/2000/svg",
1108
1109
  width: "32",
1109
1110
  height: "32",
@@ -1118,7 +1119,7 @@ function _sfc_render$g(Be, _e) {
1118
1119
  }, null, -1)
1119
1120
  ])]);
1120
1121
  }
1121
- const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$g]]), _hoisted_1$y = { class: "back-button ire-group/button ire-flex ire-w-fit ire-cursor-pointer ire-items-center ire-gap-1 ire-rounded-lg ire-border ire-bg-gray-50 ire-px-4 ire-py-2 ire-shadow-sm ire-transition-all hover:ire-bg-black lg:ire-px-5 lg:ire-py-2" }, _hoisted_2$h = { class: "back-button-text !ire-text-sm ire-text-black group-hover/button:!ire-text-white lg:!ire-text-balance" }, _sfc_main$B = /* @__PURE__ */ defineComponent({
1122
+ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_render$g]]), _hoisted_1$y = { class: "back-button ire-group/button ire-flex ire-w-fit ire-cursor-pointer ire-items-center ire-gap-1 ire-rounded-lg ire-border ire-bg-gray-50 ire-px-4 ire-py-2 ire-shadow-sm ire-transition-all hover:ire-bg-black lg:ire-px-5 lg:ire-py-2" }, _hoisted_2$h = { class: "back-button-text !ire-text-sm ire-text-black group-hover/button:!ire-text-white lg:!ire-text-balance" }, _sfc_main$C = /* @__PURE__ */ defineComponent({
1122
1123
  __name: "BackButton",
1123
1124
  setup(Be) {
1124
1125
  return (_e, ke) => (openBlock(), createElementBlock("div", _hoisted_1$y, [
@@ -1126,7 +1127,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
1126
1127
  createElementVNode("div", _hoisted_2$h, toDisplayString(unref(tr)("back")), 1)
1127
1128
  ]));
1128
1129
  }
1129
- }), _hoisted_1$x = { class: "ire-w-fit ire-bg-white" }, _hoisted_2$g = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_3$g = ["src"], _hoisted_4$b = ["innerHTML"], _sfc_main$A = /* @__PURE__ */ defineComponent({
1130
+ }), _hoisted_1$x = { class: "ire-w-fit ire-bg-white" }, _hoisted_2$g = { class: "ire-relative ire-h-full ire-select-none ire-overflow-hidden" }, _hoisted_3$g = ["src"], _hoisted_4$b = ["innerHTML"], _sfc_main$B = /* @__PURE__ */ defineComponent({
1130
1131
  __name: "FloorPreview",
1131
1132
  props: {
1132
1133
  flats: {},
@@ -1153,9 +1154,9 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
1153
1154
  ).map((Ze) => {
1154
1155
  var ni, ei;
1155
1156
  const Qe = (ni = $e.blocks) == null ? void 0 : ni.find(
1156
- (Ke) => {
1157
+ (Ge) => {
1157
1158
  var Xe;
1158
- return (Ke == null ? void 0 : Ke.id) === ((Xe = Ze == null ? void 0 : Ze.block_id) == null ? void 0 : Xe.toString());
1159
+ return (Ge == null ? void 0 : Ge.id) === ((Xe = Ze == null ? void 0 : Ze.block_id) == null ? void 0 : Xe.toString());
1159
1160
  }
1160
1161
  );
1161
1162
  return {
@@ -1166,14 +1167,14 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
1166
1167
  const Qe = Ze.target;
1167
1168
  Qe && (Ie.value = Qe);
1168
1169
  }, Ue = (Ze) => {
1169
- var ni, ei, Ke;
1170
+ var ni, ei, Ge;
1170
1171
  const Qe = Ze.target;
1171
- (Qe == null ? void 0 : Qe.nodeName) === "path" && (ze.value && "conf" in ze.value && (((ni = ze.value) == null ? void 0 : ni.conf) === "reserved" && !De.value || ((ei = ze.value) == null ? void 0 : ei.conf) === "sold" && !Le.value) || ke("changeComponent", ((Ke = Ae.value) == null ? void 0 : Ke.type) || "", ze.value));
1172
+ (Qe == null ? void 0 : Qe.nodeName) === "path" && (ze.value && "conf" in ze.value && (((ni = ze.value) == null ? void 0 : ni.conf) === "reserved" && !De.value || ((ei = ze.value) == null ? void 0 : ei.conf) === "sold" && !Le.value) || ke("changeComponent", ((Ge = Ae.value) == null ? void 0 : Ge.type) || "", ze.value));
1172
1173
  }, Ye = () => {
1173
1174
  var Ze;
1174
1175
  Re.value && ((Ze = Re.value) == null ? void 0 : Ze.querySelectorAll("g")).forEach((ni) => {
1175
- var Xe, Ge, ti, ii, oi, ri;
1176
- const ei = ni == null ? void 0 : ni.getAttribute("id"), Ke = (Ge = (Xe = $e.floor) == null ? void 0 : Xe.polygon_data) == null ? void 0 : Ge.find(
1176
+ var Xe, Ke, ti, ii, oi, ri;
1177
+ const ei = ni == null ? void 0 : ni.getAttribute("id"), Ge = (Ke = (Xe = $e.floor) == null ? void 0 : Xe.polygon_data) == null ? void 0 : Ke.find(
1177
1178
  (si) => (si == null ? void 0 : si.key) === ei
1178
1179
  );
1179
1180
  if ($e.flats)
@@ -1181,7 +1182,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
1181
1182
  ni.setAttribute("conf", ((ii = $e.floor) == null ? void 0 : ii.conf) || "");
1182
1183
  else {
1183
1184
  const si = (oi = $e.flats) == null ? void 0 : oi.find(
1184
- (ai) => (ai == null ? void 0 : ai.id) === (Ke == null ? void 0 : Ke.id)
1185
+ (ai) => (ai == null ? void 0 : ai.id) === (Ge == null ? void 0 : Ge.id)
1185
1186
  );
1186
1187
  ni == null || ni.setAttribute("conf", ((ri = si == null ? void 0 : si.conf) == null ? void 0 : ri.toString()) || "");
1187
1188
  }
@@ -1193,14 +1194,14 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
1193
1194
  return watch(
1194
1195
  () => Ie.value,
1195
1196
  (Ze) => {
1196
- var ni, ei, Ke, Xe, Ge, ti, ii;
1197
+ var ni, ei, Ge, Xe, Ke, ti, ii;
1197
1198
  if (!Ze) return;
1198
1199
  Ve.hoverdSvg = Ze;
1199
1200
  const Qe = Ze == null ? void 0 : Ze.parentElement;
1200
1201
  if (Qe && (Qe == null ? void 0 : Qe.nodeName) === "g") {
1201
1202
  const oi = Qe.getAttribute("id");
1202
1203
  if (!oi || (Ae.value = ((ei = (ni = $e.floor) == null ? void 0 : ni.polygon_data) == null ? void 0 : ei.find((ri) => (ri == null ? void 0 : ri.key) === oi)) || null, !Ae.value)) return;
1203
- if (((Ke = Ae.value) == null ? void 0 : Ke.type) === "flat") {
1204
+ if (((Ge = Ae.value) == null ? void 0 : Ge.type) === "flat") {
1204
1205
  const ri = (Xe = $e.flats) == null ? void 0 : Xe.find(
1205
1206
  (ai) => {
1206
1207
  var li;
@@ -1208,7 +1209,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
1208
1209
  }
1209
1210
  ), si = ri ? {
1210
1211
  ...ri,
1211
- conf: ri.conf || ((Ge = $e.floor) == null ? void 0 : Ge.conf) || ""
1212
+ conf: ri.conf || ((Ke = $e.floor) == null ? void 0 : Ke.conf) || ""
1212
1213
  } : null;
1213
1214
  ze.value = si;
1214
1215
  } else if (((ti = Ae.value) == null ? void 0 : ti.type) === "tooltip") {
@@ -1244,27 +1245,27 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
1244
1245
  var Ze, Qe, ni;
1245
1246
  Fe.value = (Ze = $e.blocks) == null ? void 0 : Ze.find(
1246
1247
  (ei) => {
1247
- var Ke, Xe;
1248
- return (ei == null ? void 0 : ei.id) === ((Xe = (Ke = $e.floor) == null ? void 0 : Ke.block_id) == null ? void 0 : Xe.toString());
1248
+ var Ge, Xe;
1249
+ return (ei == null ? void 0 : ei.id) === ((Xe = (Ge = $e.floor) == null ? void 0 : Ge.block_id) == null ? void 0 : Xe.toString());
1249
1250
  }
1250
1251
  ), je.value = (ni = (Qe = We.value) == null ? void 0 : Qe.find(
1251
1252
  (ei) => {
1252
- var Ke;
1253
- return (ei == null ? void 0 : ei.value) == ((Ke = $e.floor) == null ? void 0 : Ke.id);
1253
+ var Ge;
1254
+ return (ei == null ? void 0 : ei.value) == ((Ge = $e.floor) == null ? void 0 : Ge.id);
1254
1255
  }
1255
1256
  )) == null ? void 0 : ni.value, Ye(), document.addEventListener("mousemove", qe);
1256
1257
  }), onUnmounted(() => {
1257
1258
  document.removeEventListener("mousemove", qe);
1258
1259
  }), (Ze, Qe) => {
1259
1260
  var ni;
1260
- return openBlock(), createBlock(_sfc_main$F, {
1261
+ return openBlock(), createBlock(_sfc_main$G, {
1261
1262
  hoverdData: ze.value,
1262
1263
  type: (ni = Ae.value) == null ? void 0 : ni.type
1263
1264
  }, {
1264
1265
  header: withCtx(() => [
1265
- createVNode(_sfc_main$B, { onClick: Je }),
1266
+ createVNode(_sfc_main$C, { onClick: Je }),
1266
1267
  createElementVNode("div", _hoisted_1$x, [
1267
- createVNode(_sfc_main$D, {
1268
+ createVNode(_sfc_main$E, {
1268
1269
  modelValue: je.value,
1269
1270
  "onUpdate:modelValue": Qe[0] || (Qe[0] = (ei) => je.value = ei),
1270
1271
  data: We.value
@@ -1272,11 +1273,11 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
1272
1273
  ])
1273
1274
  ]),
1274
1275
  default: withCtx(() => {
1275
- var ei, Ke, Xe;
1276
+ var ei, Ge, Xe;
1276
1277
  return [
1277
1278
  createElementVNode("div", _hoisted_2$g, [
1278
1279
  createElementVNode("img", {
1279
- src: ((Xe = (Ke = (ei = Be.floor) == null ? void 0 : ei.floor_image) == null ? void 0 : Ke[0]) == null ? void 0 : Xe.url) || "",
1280
+ src: ((Xe = (Ge = (ei = Be.floor) == null ? void 0 : ei.floor_image) == null ? void 0 : Ge[0]) == null ? void 0 : Xe.url) || "",
1280
1281
  alt: "",
1281
1282
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
1282
1283
  }, null, 8, _hoisted_3$g),
@@ -1298,7 +1299,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
1298
1299
  }), _hoisted_1$w = {
1299
1300
  key: 0,
1300
1301
  class: "ire-flex ire-h-fit ire-w-fit ire-flex-col ire-items-center"
1301
- }, _hoisted_2$f = { class: "flat-preview-value ire-text-center !ire-text-2xl !ire-font-normal ire-text-black" }, _hoisted_3$f = { class: "flat-preview-text ire-border-b-gray-200 ire-py-2 ire-text-sm ire-uppercase ire-text-gray-600" }, _sfc_main$z = /* @__PURE__ */ defineComponent({
1302
+ }, _hoisted_2$f = { class: "flat-preview-value ire-text-center !ire-text-2xl !ire-font-normal ire-text-black" }, _hoisted_3$f = { class: "flat-preview-text ire-border-b-gray-200 ire-py-2 ire-text-sm ire-uppercase ire-text-gray-600" }, _sfc_main$A = /* @__PURE__ */ defineComponent({
1302
1303
  __name: "FlatPreviewKeyValue",
1303
1304
  props: {
1304
1305
  keyName: {},
@@ -1314,7 +1315,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
1314
1315
  createElementVNode("div", _hoisted_3$f, toDisplayString(Be.keyName), 1)
1315
1316
  ])) : createCommentVNode("", !0);
1316
1317
  }
1317
- }), _hoisted_1$v = ["type", "disable"], _sfc_main$y = /* @__PURE__ */ defineComponent({
1318
+ }), _hoisted_1$v = ["type", "disable"], _sfc_main$z = /* @__PURE__ */ defineComponent({
1318
1319
  __name: "Button",
1319
1320
  props: {
1320
1321
  title: {},
@@ -1334,14 +1335,14 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_ren
1334
1335
  }, [
1335
1336
  renderSlot(_e.$slots, "icon"),
1336
1337
  createElementVNode("div", {
1337
- class: normalizeClass(["flat-preview-button-text ire-w-full ire-text-center ire-text-base ire-transition-all group-hover:ire-text-white", {
1338
+ class: normalizeClass(["flat-preview-button-text ire-w-full ire-text-center ire-text-base ire-transition-all group-hover:ire-text-white group-active:ire-text-white", {
1338
1339
  "ire-text-white": Be.active,
1339
1340
  "ire-text-black": !Be.active
1340
1341
  }])
1341
1342
  }, toDisplayString(unref(tr)(Be.title)), 3)
1342
1343
  ], 10, _hoisted_1$v));
1343
1344
  }
1344
- }), _sfc_main$x = {}, _hoisted_1$u = {
1345
+ }), _sfc_main$y = {}, _hoisted_1$u = {
1345
1346
  width: "24",
1346
1347
  height: "24",
1347
1348
  viewBox: "0 0 24 24",
@@ -1353,7 +1354,7 @@ function _sfc_render$f(Be, _e) {
1353
1354
  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)
1354
1355
  ])]);
1355
1356
  }
1356
- const FlatIcon = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$f]]), _sfc_main$w = {}, _hoisted_1$t = {
1357
+ const FlatIcon = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["render", _sfc_render$f]]), _sfc_main$x = {}, _hoisted_1$t = {
1357
1358
  width: "16",
1358
1359
  height: "16",
1359
1360
  viewBox: "0 0 20 20",
@@ -1380,7 +1381,7 @@ function _sfc_render$e(Be, _e) {
1380
1381
  }, null, -1)
1381
1382
  ])]);
1382
1383
  }
1383
- const ClipBoard = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$e]]), _sfc_main$v = {}, _hoisted_1$s = {
1384
+ const ClipBoard = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["render", _sfc_render$e]]), _sfc_main$w = {}, _hoisted_1$s = {
1384
1385
  width: "16",
1385
1386
  height: "16",
1386
1387
  viewBox: "0 0 21 21",
@@ -1398,7 +1399,7 @@ function _sfc_render$d(Be, _e) {
1398
1399
  }, null, -1)
1399
1400
  ])]);
1400
1401
  }
1401
- const Correct = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$d]]), _sfc_main$u = {}, _hoisted_1$r = {
1402
+ const Correct = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _sfc_render$d]]), _sfc_main$v = {}, _hoisted_1$r = {
1402
1403
  xmlns: "http://www.w3.org/2000/svg",
1403
1404
  width: "40px",
1404
1405
  height: "40px",
@@ -1417,7 +1418,7 @@ function _sfc_render$c(Be, _e) {
1417
1418
  }, null, -1)
1418
1419
  ])]);
1419
1420
  }
1420
- const Cube3d = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$c]]), t = (Be, _e = 1e4) => (Be = parseFloat(Be + "") || 0, Math.round((Be + Number.EPSILON) * _e) / _e), e = function(Be) {
1421
+ const Cube3d = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["render", _sfc_render$c]]), t = (Be, _e = 1e4) => (Be = parseFloat(Be + "") || 0, Math.round((Be + Number.EPSILON) * _e) / _e), e = function(Be) {
1421
1422
  if (!(Be && Be instanceof Element && Be.offsetParent)) return !1;
1422
1423
  const _e = Be.scrollHeight > Be.clientHeight, ke = window.getComputedStyle(Be).overflowY, $e = ke.indexOf("hidden") !== -1, Ne = ke.indexOf("visible") !== -1;
1423
1424
  return _e && !$e && !Ne;
@@ -1934,13 +1935,13 @@ class I extends g {
1934
1935
  const Qe = Ze.getAttribute("style") || "";
1935
1936
  Ze.style.setProperty("transform", "none", "important"), De && (Ze.style.width = "", Ze.style.height = ""), Ze.offsetHeight;
1936
1937
  const ni = Ve.getBoundingClientRect();
1937
- let ei = ni.width * $e, Ke = ni.height * $e, Xe = ei, Ge = Ke;
1938
- ei = Math.min(ei, qe), Ke = Math.min(Ke, Ue), De ? { width: ei, height: Ke } = ((oi, ri, si, ai) => {
1938
+ let ei = ni.width * $e, Ge = ni.height * $e, Xe = ei, Ke = Ge;
1939
+ ei = Math.min(ei, qe), Ge = Math.min(Ge, Ue), De ? { width: ei, height: Ge } = ((oi, ri, si, ai) => {
1939
1940
  const li = si / oi, ci = ai / ri, di = Math.min(li, ci);
1940
1941
  return { width: oi *= di, height: ri *= di };
1941
- })(qe, Ue, ei, Ke) : (ei = Math.min(ei, qe), Ke = Math.min(Ke, Ue));
1942
- let ti = 0.5 * (Ge - Ke), ii = 0.5 * (Xe - ei);
1943
- this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: ni.top - Le.top + ti, bottom: Le.bottom - ni.bottom + ti, left: ni.left - Le.left + ii, right: Le.right - ni.right + ii, fitWidth: ei, fitHeight: Ke, width: ei, height: Ke, fullWidth: qe, fullHeight: Ue }), Ze.style.cssText = Qe, De && (Ze.style.width = `${ei}px`, Ze.style.height = `${Ke}px`), this.setTransform(), _e !== !0 && this.emit("refresh"), this.ignoreBounds || (t(this.targetScale) < t(this.minScale) ? this.zoomTo(this.minScale, { friction: 0 }) : this.targetScale > this.maxScale ? this.zoomTo(this.maxScale, { friction: 0 }) : this.state === m.Init || this.checkBounds().inBounds || this.requestTick()), this.updateControls();
1942
+ })(qe, Ue, ei, Ge) : (ei = Math.min(ei, qe), Ge = Math.min(Ge, Ue));
1943
+ let ti = 0.5 * (Ke - Ge), ii = 0.5 * (Xe - ei);
1944
+ this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: ni.top - Le.top + ti, bottom: Le.bottom - ni.bottom + ti, left: ni.left - Le.left + ii, right: Le.right - ni.right + ii, fitWidth: ei, fitHeight: Ge, width: ei, height: Ge, fullWidth: qe, fullHeight: Ue }), Ze.style.cssText = Qe, De && (Ze.style.width = `${ei}px`, Ze.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();
1944
1945
  }
1945
1946
  calculateBounds() {
1946
1947
  const { contentWidth: _e, contentHeight: ke } = this.calculateContentDim(this.target), { targetScale: $e, lockedAxis: Ne } = this, { fitWidth: Ve, fitHeight: De } = this.contentRect;
@@ -4367,7 +4368,7 @@ class Oe extends g {
4367
4368
  }
4368
4369
  }
4369
4370
  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() });
4370
- const _sfc_main$t = {
4371
+ const _sfc_main$u = {
4371
4372
  props: {
4372
4373
  options: Object
4373
4374
  },
@@ -4392,7 +4393,7 @@ function _sfc_render$b(Be, _e, ke, $e, Ne, Ve) {
4392
4393
  renderSlot(Be.$slots, "default")
4393
4394
  ], 512);
4394
4395
  }
4395
- const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$b]]), paramsList = [
4396
+ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["render", _sfc_render$b]]), paramsList = [
4396
4397
  "eventsPrefix",
4397
4398
  "injectStyles",
4398
4399
  "injectStylesUrls",
@@ -4560,15 +4561,15 @@ function updateSwiper(Be) {
4560
4561
  } = _e;
4561
4562
  let qe, Ue, Ye, Je, Ze, Qe, ni, ei;
4562
4563
  Ne.includes("thumbs") && $e.thumbs && $e.thumbs.swiper && !$e.thumbs.swiper.destroyed && Ae.thumbs && (!Ae.thumbs.swiper || Ae.thumbs.swiper.destroyed) && (qe = !0), Ne.includes("controller") && $e.controller && $e.controller.control && Ae.controller && !Ae.controller.control && (Ue = !0), Ne.includes("pagination") && $e.pagination && ($e.pagination.el || Re) && (Ae.pagination || Ae.pagination === !1) && ze && !ze.el && (Ye = !0), Ne.includes("scrollbar") && $e.scrollbar && ($e.scrollbar.el || Le) && (Ae.scrollbar || Ae.scrollbar === !1) && Fe && !Fe.el && (Je = !0), Ne.includes("navigation") && $e.navigation && ($e.navigation.prevEl || De) && ($e.navigation.nextEl || Ve) && (Ae.navigation || Ae.navigation === !1) && je && !je.prevEl && !je.nextEl && (Ze = !0);
4563
- const Ke = (Xe) => {
4564
+ const Ge = (Xe) => {
4564
4565
  _e[Xe] && (_e[Xe].destroy(), Xe === "navigation" ? (_e.isElement && (_e[Xe].prevEl.remove(), _e[Xe].nextEl.remove()), Ae[Xe].prevEl = void 0, Ae[Xe].nextEl = void 0, _e[Xe].prevEl = void 0, _e[Xe].nextEl = void 0) : (_e.isElement && _e[Xe].el.remove(), Ae[Xe].el = void 0, _e[Xe].el = void 0));
4565
4566
  };
4566
4567
  Ne.includes("loop") && _e.isElement && (Ae.loop && !$e.loop ? Qe = !0 : !Ae.loop && $e.loop ? ni = !0 : ei = !0), Ie.forEach((Xe) => {
4567
4568
  if (isObject(Ae[Xe]) && isObject($e[Xe]))
4568
- Object.assign(Ae[Xe], $e[Xe]), (Xe === "navigation" || Xe === "pagination" || Xe === "scrollbar") && "enabled" in $e[Xe] && !$e[Xe].enabled && Ke(Xe);
4569
+ Object.assign(Ae[Xe], $e[Xe]), (Xe === "navigation" || Xe === "pagination" || Xe === "scrollbar") && "enabled" in $e[Xe] && !$e[Xe].enabled && Ge(Xe);
4569
4570
  else {
4570
- const Ge = $e[Xe];
4571
- (Ge === !0 || Ge === !1) && (Xe === "navigation" || Xe === "pagination" || Xe === "scrollbar") ? Ge === !1 && Ke(Xe) : Ae[Xe] = $e[Xe];
4571
+ const Ke = $e[Xe];
4572
+ (Ke === !0 || Ke === !1) && (Xe === "navigation" || Xe === "pagination" || Xe === "scrollbar") ? Ke === !1 && Ge(Xe) : Ae[Xe] = $e[Xe];
4572
4573
  }
4573
4574
  }), Ie.includes("controller") && !Ue && _e.controller && _e.controller.control && Ae.controller && Ae.controller.control && (_e.controller.control = Ae.controller.control), Ne.includes("children") && ke && He && Ae.virtual.enabled ? (He.slides = ke, He.update(!0)) : Ne.includes("virtual") && He && Ae.virtual.enabled && (ke && (He.slides = ke), He.update(!0)), Ne.includes("children") && ke && Ae.loop && (ei = !0), qe && We.init() && We.update(!0), Ue && (_e.controller.control = Ae.controller.control), Ye && (_e.isElement && (!Re || typeof Re == "string") && (Re = document.createElement("div"), Re.classList.add("swiper-pagination"), Re.part.add("pagination"), _e.el.appendChild(Re)), Re && (Ae.pagination.el = Re), ze.init(), ze.render(), ze.update()), Je && (_e.isElement && (!Le || typeof Le == "string") && (Le = document.createElement("div"), Le.classList.add("swiper-scrollbar"), Le.part.add("scrollbar"), _e.el.appendChild(Le)), Le && (Ae.scrollbar.el = Le), Fe.init(), Fe.updateSize(), Fe.setTranslate()), Ze && (_e.isElement && ((!Ve || typeof Ve == "string") && (Ve = document.createElement("div"), Ve.classList.add("swiper-button-next"), setInnerHTML(Ve, _e.hostEl.constructor.nextButtonSvg), Ve.part.add("button-next"), _e.el.appendChild(Ve)), (!De || typeof De == "string") && (De = document.createElement("div"), De.classList.add("swiper-button-prev"), setInnerHTML(De, _e.hostEl.constructor.prevButtonSvg), De.part.add("button-prev"), _e.el.appendChild(De))), Ve && (Ae.navigation.nextEl = Ve), De && (Ae.navigation.prevEl = De), je.init(), je.update()), Ne.includes("allowSlideNext") && (_e.allowSlideNext = $e.allowSlideNext), Ne.includes("allowSlidePrev") && (_e.allowSlidePrev = $e.allowSlidePrev), Ne.includes("direction") && _e.changeDirection($e.direction, !1), (Qe || ei) && _e.loopDestroy(), (ni || ei) && _e.loopCreate(), _e.update();
4574
4575
  }
@@ -5159,13 +5160,13 @@ const Swiper = {
5159
5160
  const Qe = () => {
5160
5161
  getChildren(ke, Fe, He), Re.value = !0;
5161
5162
  };
5162
- Je.onAny = function(Ke) {
5163
- for (var Xe = arguments.length, Ge = new Array(Xe > 1 ? Xe - 1 : 0), ti = 1; ti < Xe; ti++)
5164
- Ge[ti - 1] = arguments[ti];
5165
- $e(Ke, ...Ge);
5163
+ Je.onAny = function(Ge) {
5164
+ for (var Xe = arguments.length, Ke = new Array(Xe > 1 ? Xe - 1 : 0), ti = 1; ti < Xe; ti++)
5165
+ Ke[ti - 1] = arguments[ti];
5166
+ $e(Ge, ...Ke);
5166
5167
  }, Object.assign(Je.on, {
5167
5168
  _beforeBreakpoint: Qe,
5168
- _containerClasses(Ke, Xe) {
5169
+ _containerClasses(Ge, Xe) {
5169
5170
  De.value = Xe;
5170
5171
  }
5171
5172
  });
@@ -5174,7 +5175,7 @@ const Swiper = {
5174
5175
  };
5175
5176
  if (delete ni.wrapperClass, ze.value = new Swiper$1(ni), ze.value.virtual && ze.value.params.virtual.enabled) {
5176
5177
  ze.value.virtual.slides = Fe.value;
5177
- const Ke = {
5178
+ const Ge = {
5178
5179
  cache: !1,
5179
5180
  slides: Fe.value,
5180
5181
  renderExternal: (Xe) => {
@@ -5182,17 +5183,17 @@ const Swiper = {
5182
5183
  },
5183
5184
  renderExternalUpdate: !1
5184
5185
  };
5185
- extend(ze.value.params.virtual, Ke), extend(ze.value.originalParams.virtual, Ke);
5186
+ extend(ze.value.params.virtual, Ge), extend(ze.value.originalParams.virtual, Ge);
5186
5187
  }
5187
5188
  onUpdated(() => {
5188
5189
  !Ie.value && ze.value && (ze.value.emitSlidesClasses(), Ie.value = !0);
5189
5190
  const {
5190
- passedParams: Ke
5191
- } = getParams(Be), Xe = getChangedParams(Ke, je.value, Fe.value, He.value, (Ge) => Ge.props && Ge.props.key);
5192
- je.value = Ke, (Xe.length || Re.value) && ze.value && !ze.value.destroyed && updateSwiper({
5191
+ passedParams: Ge
5192
+ } = getParams(Be), Xe = getChangedParams(Ge, je.value, Fe.value, He.value, (Ke) => Ke.props && Ke.props.key);
5193
+ je.value = Ge, (Xe.length || Re.value) && ze.value && !ze.value.destroyed && updateSwiper({
5193
5194
  swiper: ze.value,
5194
5195
  slides: Fe.value,
5195
- passedParams: Ke,
5196
+ passedParams: Ge,
5196
5197
  changedParams: Xe,
5197
5198
  nextEl: We.value,
5198
5199
  prevEl: qe.value,
@@ -5215,14 +5216,14 @@ const Swiper = {
5215
5216
  }), onBeforeUnmount(() => {
5216
5217
  ze.value && !ze.value.destroyed && ze.value.destroy(!0, !1);
5217
5218
  });
5218
- function ei(Ke) {
5219
- return Je.virtual ? renderVirtual(ze, Ke, Le.value) : (Ke.forEach((Xe, Ge) => {
5220
- Xe.props || (Xe.props = {}), Xe.props.swiperRef = ze, Xe.props.swiperSlideIndex = Ge;
5221
- }), Ke);
5219
+ function ei(Ge) {
5220
+ return Je.virtual ? renderVirtual(ze, Ge, Le.value) : (Ge.forEach((Xe, Ke) => {
5221
+ Xe.props || (Xe.props = {}), Xe.props.swiperRef = ze, Xe.props.swiperSlideIndex = Ke;
5222
+ }), Ge);
5222
5223
  }
5223
5224
  return () => {
5224
5225
  const {
5225
- slides: Ke,
5226
+ slides: Ge,
5226
5227
  slots: Xe
5227
5228
  } = getChildren(ke, Fe, He);
5228
5229
  return h$1(Ne, {
@@ -5230,7 +5231,7 @@ const Swiper = {
5230
5231
  class: uniqueClasses(De.value)
5231
5232
  }, [Xe["container-start"], h$1(Ve, {
5232
5233
  class: wrapperClass(Je.wrapperClass)
5233
- }, [Xe["wrapper-start"], ei(Ke), Xe["wrapper-end"]]), needsNavigation(Be) && [h$1("div", {
5234
+ }, [Xe["wrapper-start"], ei(Ge), Xe["wrapper-end"]]), needsNavigation(Be) && [h$1("div", {
5234
5235
  ref: qe,
5235
5236
  class: "swiper-button-prev"
5236
5237
  }), h$1("div", {
@@ -5450,7 +5451,7 @@ function Navigation(Be) {
5450
5451
  destroy: ze
5451
5452
  });
5452
5453
  }
5453
- const _sfc_main$s = {}, _hoisted_1$p = {
5454
+ const _sfc_main$t = {}, _hoisted_1$p = {
5454
5455
  xmlns: "http://www.w3.org/2000/svg",
5455
5456
  viewBox: "0 0 256 256"
5456
5457
  };
@@ -5459,8 +5460,22 @@ function _sfc_render$a(Be, _e) {
5459
5460
  createStaticVNode('<g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><rect class="cls-1" width="256" height="256" rx="128"></rect><path class="cls-2" d="M138.26,42.2C116.44,52.3,113,54,112.25,55.27s-.8,3.9-.8,69.36c0,60.7-.08,68.19-.62,68.65-1,.8-7.54-.62-8.38-1.84-.55-.75-.63-8.63-.63-58.81,0-52.1-.08-58-.67-58.93a4.29,4.29,0,0,0-4.56-1.51c-3.06.92-29,13.53-29.87,14.54l-.92,1v41c0,40.59,0,41-.84,41.47a1.67,1.67,0,0,1-1.59,0c-1.21-.63-7.62-7.5-11.06-11.81s-4.27-4.82-6.53-4.19c-.71.21-4.9,3.14-9.3,6.53s-8.34,6.08-8.71,6c-2.31-.21-3.44.67-3.44,2.68,0,1.68.38,2.27,1.68,2.73a2.76,2.76,0,0,0,3.81-2.06c.46-1.42,1.42-2.34,8.25-7.53a96.6,96.6,0,0,1,8.42-6.08c.92-.25,1.13,0,4.15,3.81,3.93,5,11.18,12.23,12.56,12.49a4.82,4.82,0,0,0,2.39-.3c2.68-1.13,2.51,1.93,2.72-43.35l.21-41.3L83,81.16c7.92-3.77,14.66-6.83,15-6.83a2.05,2.05,0,0,1,1.13.67c.58.59.67,6.49.67,58.6,0,41.59.12,58.26.46,59,.58,1.34,1.46,1.76,5.78,2.81,3.93,1,5.36.84,6.78-.67l1-1.09.12-68.36c.09-64.42.13-68.44.84-69,.55-.5,25.93-12.6,28.48-13.61a1.67,1.67,0,0,1,1.34.5c.84.76.84,1.76.84,75.06,0,82-.21,75.77,2.6,76.74,1.3.46,4.19,0,5.82-.84,2.14-1.13,2,.42,2-47.16,0-24.38.17-44.53.34-44.78.38-.54,28-9.8,29.28-9.8a1.83,1.83,0,0,1,1.38.8c.29.54.42,13.52.42,39.12v38.28l1,1.09a4,4,0,0,0,4.61.92c1.55-.63,7.25-6.53,11.69-12.06,1.8-2.22,3.52-4.07,3.85-4.07,1,0,17.34,12.61,17.34,13.41,0,2.39,3.56,3.6,5.11,1.71a2.85,2.85,0,0,0-2.43-4.77c-1.46,0-2.39-.5-9.8-6.12-4.52-3.39-8.71-6.32-9.34-6.49-1.84-.46-3.43.63-6.41,4.36-4.1,5.19-8.46,9.88-10.34,11.18L191,170.83l-.79-1c-.76-.92-.8-2.39-.8-39.29V92.26L188.15,91a3.78,3.78,0,0,0-2.39-1.21c-1.09,0-26.47,8.12-29.61,9.5-3,1.3-2.81-1.8-2.81,47.42s.21,45.36-2.76,45.95c-1.14.21-1.68.08-2.18-.42-.67-.63-.71-6.37-.8-74.93-.08-58.77-.21-74.44-.63-75.23A5.74,5.74,0,0,0,143.41,40C143.25,40,140.9,41,138.26,42.2Z"></path><path class="cls-2" d="M127.62,71.48a3,3,0,0,0,.17,3.9c.84.75.84,1.29.84,59.35s0,58.64-.84,59.68c-1.72,2.22-.59,4.74,2.09,4.74s3.82-2.52,2.1-4.74c-.84-1-.84-1.67-.84-59.56s0-58.51.84-59.56a4,4,0,0,0,.84-2.05C132.82,70.81,129,69.51,127.62,71.48Z"></path><path class="cls-2" d="M83,99.75c-2.13.8-2.85,3.52-1.25,5,.83.75.83,1.29.83,40.5s0,39.71-.83,40.54a3.38,3.38,0,0,0-.84,2.1,2.8,2.8,0,0,0,5,1.84c1.09-1.42,1.13-2.68,0-3.85-.83-.88-.83-1.47-.83-40.55s0-39.62.83-40.67a4,4,0,0,0,.84-2C86.74,100.84,84.56,99.17,83,99.75Z"></path><path class="cls-2" d="M169.13,121.16a3.21,3.21,0,0,0,.13,4.14c.83.72.83,1.26.83,26.94s0,26.22-.83,26.93c-1.6,1.38-.8,4.81,1.17,4.94,2.34.17,3.27-.38,3.64-2.22a2.61,2.61,0,0,0-.58-2.47c-.88-1.17-.88-1.42-.88-27.23,0-25.38,0-26,.84-27,1-1.39,1-2.27,0-3.65A2.9,2.9,0,0,0,169.13,121.16Z"></path></g></g>', 1)
5460
5461
  ])]);
5461
5462
  }
5462
- const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]]), _hoisted_1$o = { class: "ire-flex ire-h-full ire-w-full ire-flex-col ire-justify-between ire-overflow-hidden" }, _hoisted_2$e = { class: "ire-w-fit ire-p-4" }, _hoisted_3$e = { class: "ire-relative ire-grid ire-overflow-hidden ire-p-4 lg:ire-p-0" }, _hoisted_4$a = ["data-fancybox", "href"], _hoisted_5$7 = ["src"], _hoisted_6$5 = { class: "ire-swiper-button-prev ire-group ire-absolute ire-left-0 ire-top-0 ire-z-10 ire-hidden ire-h-full ire-cursor-pointer ire-items-center ire-justify-center md:ire-flex" }, _hoisted_7$4 = { class: "ire-swiper-button-next ire-group ire-absolute ire-right-0 ire-top-0 ire-z-10 ire-hidden ire-h-full ire-cursor-pointer ire-items-center ire-justify-center md:ire-flex" }, _hoisted_8$3 = { class: "flex ire-flex-wrap ire-items-center ire-justify-center ire-gap-4 ire-p-4 lg:ire-gap-8" }, _hoisted_9$3 = {
5463
- key: 1,
5463
+ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]]), _sfc_main$s = /* @__PURE__ */ defineComponent({
5464
+ __name: "Badge",
5465
+ props: {
5466
+ title: {},
5467
+ badgeStyle: {}
5468
+ },
5469
+ setup(Be) {
5470
+ return (_e, ke) => (openBlock(), createElementBlock("span", {
5471
+ class: normalizeClass(["inset-ring ire-inline-flex ire-items-center ire-rounded-md ire-px-2 ire-py-1 ire-text-xs ire-font-medium ire-uppercase", {
5472
+ "inset-ring-yellow-400/20 ire-bg-yellow-400/10 ire-text-yellow-500": Be.badgeStyle === "warning",
5473
+ "inset-ring-red-400/20 ire-bg-red-400/10 ire-text-red-400": Be.badgeStyle === "danger"
5474
+ }])
5475
+ }, toDisplayString(Be.title), 3));
5476
+ }
5477
+ }), _hoisted_1$o = { class: "ire-flex ire-h-full ire-w-full ire-flex-col ire-justify-between ire-overflow-hidden" }, _hoisted_2$e = { class: "ire-w-fit ire-p-4" }, _hoisted_3$e = { class: "ire-relative ire-grid ire-overflow-hidden ire-p-4 lg:ire-p-0" }, _hoisted_4$a = ["data-fancybox", "href"], _hoisted_5$7 = ["src"], _hoisted_6$5 = { class: "ire-swiper-button-prev ire-group ire-absolute ire-left-0 ire-top-0 ire-z-10 ire-hidden ire-h-full ire-cursor-pointer ire-items-center ire-justify-center md:ire-flex" }, _hoisted_7$4 = { class: "ire-swiper-button-next ire-group ire-absolute ire-right-0 ire-top-0 ire-z-10 ire-hidden ire-h-full ire-cursor-pointer ire-items-center ire-justify-center md:ire-flex" }, _hoisted_8$3 = { class: "flex ire-flex-wrap ire-items-center ire-justify-center ire-gap-4 ire-p-4 lg:ire-gap-8" }, _hoisted_9$3 = {
5478
+ key: 0,
5464
5479
  class: "ire-flex ire-items-center ire-gap-3"
5465
5480
  }, _hoisted_10$3 = {
5466
5481
  key: 0,
@@ -5474,80 +5489,91 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
5474
5489
  flat: {}
5475
5490
  },
5476
5491
  setup(Be) {
5477
- const _e = Be, ke = useGlobalStore(), { getMetaValue: $e } = ke, { irePlaginWp: Ne } = storeToRefs(ke), Ve = inject("fromListView"), De = ref(!1), Le = ref(0), Re = ref(!1), Ie = computed$1(() => {
5478
- var Fe, He, We, qe, Ue, Ye;
5479
- return !!((We = (He = (Fe = _e.flat) == null ? void 0 : Fe.type) == null ? void 0 : He.image_2d) != null && We.length && ((Ye = (Ue = (qe = _e.flat) == null ? void 0 : qe.type) == null ? void 0 : Ue.image_3d) != null && Ye.length));
5492
+ const _e = Be, ke = useGlobalStore(), { getMetaValue: $e } = ke, { irePlaginWp: Ne } = storeToRefs(ke);
5493
+ inject("fromListView");
5494
+ const Ve = ref(!1), De = ref(0), Le = ref(!1), Re = computed$1(() => {
5495
+ var je, Fe, He, We, qe, Ue;
5496
+ return !!((He = (Fe = (je = _e.flat) == null ? void 0 : je.type) == null ? void 0 : Fe.image_2d) != null && He.length && ((Ue = (qe = (We = _e.flat) == null ? void 0 : We.type) == null ? void 0 : qe.image_3d) != null && Ue.length));
5497
+ }), Ie = computed$1(() => {
5498
+ var je;
5499
+ return $e("shareable_link") === "true" && ((je = Ne.value) == null ? void 0 : je.is_gold);
5480
5500
  }), Ae = computed$1(() => {
5481
- var Fe;
5482
- return $e("shareable_link") === "true" && ((Fe = Ne.value) == null ? void 0 : Fe.is_gold);
5483
- }), ze = computed$1(() => {
5484
- var He, We, qe, Ue, Ye, Je;
5485
- return (De.value && ((We = (He = _e.flat.type) == null ? void 0 : He.image_2d) != null && We.length) ? (qe = _e.flat.type) == null ? void 0 : qe.image_2d : !De.value && ((Ye = (Ue = _e.flat.type) == null ? void 0 : Ue.image_3d) != null && Ye.length) ? (Je = _e.flat.type) == null ? void 0 : Je.image_3d : []).slice(0, 6);
5486
- }), je = async () => {
5487
- Re.value || !Ae.value || (await copyToClipboard(window.location.href), Re.value = !0, setTimeout(() => {
5488
- Re.value = !1;
5501
+ var Fe, He, We, qe, Ue, Ye;
5502
+ return (Ve.value && ((He = (Fe = _e.flat.type) == null ? void 0 : Fe.image_2d) != null && He.length) ? (We = _e.flat.type) == null ? void 0 : We.image_2d : !Ve.value && ((Ue = (qe = _e.flat.type) == null ? void 0 : qe.image_3d) != null && Ue.length) ? (Ye = _e.flat.type) == null ? void 0 : Ye.image_3d : []).slice(0, 6);
5503
+ }), ze = async () => {
5504
+ Le.value || !Ie.value || (await copyToClipboard(window.location.href), Le.value = !0, setTimeout(() => {
5505
+ Le.value = !1;
5489
5506
  }, 2e3));
5490
5507
  };
5491
5508
  return watch(
5492
- () => De.value,
5509
+ () => Ve.value,
5493
5510
  () => {
5494
- Le.value = 0;
5511
+ De.value = 0;
5495
5512
  }
5496
5513
  ), onMounted(() => {
5497
- var Fe, He, We;
5498
- (We = Object.keys(((He = (Fe = _e.flat) == null ? void 0 : Fe.type) == null ? void 0 : He.image_3d) || {})) != null && We.length || (De.value = !0);
5499
- }), (Fe, He) => (openBlock(), createBlock(FancyBoxComp, { options: {} }, {
5514
+ var je, Fe, He;
5515
+ (He = Object.keys(((Fe = (je = _e.flat) == null ? void 0 : je.type) == null ? void 0 : Fe.image_3d) || {})) != null && He.length || (Ve.value = !0);
5516
+ }), (je, Fe) => (openBlock(), createBlock(FancyBoxComp, { options: {} }, {
5500
5517
  default: withCtx(() => {
5501
- var We, qe, Ue, Ye, Je, Ze, Qe, ni, ei, Ke, Xe;
5518
+ var He, We, qe, Ue, Ye, Je, Ze, Qe, ni;
5502
5519
  return [
5503
5520
  createElementVNode("div", _hoisted_1$o, [
5504
5521
  createElementVNode("div", _hoisted_2$e, [
5505
- (We = Be.flat) != null && We.conf ? (openBlock(), createElementBlock("div", {
5522
+ Be.flat.conf ? (openBlock(), createBlock(_sfc_main$s, {
5506
5523
  key: 0,
5507
- class: normalizeClass(["irep-flat-preview__left-conf ire-w-fit ire-rounded-md ire-px-[15px] ire-py-[2px] ire-text-start ire-uppercase ire-text-white", {
5508
- "ire-bg-red-500": Be.flat.conf === "sold",
5509
- "ire-bg-yellow-500": Be.flat.conf === "reserved"
5510
- }])
5511
- }, toDisplayString(unref(tr)(Be.flat.conf)), 3)) : createCommentVNode("", !0)
5524
+ title: unref(tr)(Be.flat.conf),
5525
+ "badge-style": Be.flat.conf === "reserved" ? "warning" : "danger"
5526
+ }, null, 8, ["title", "badge-style"])) : createCommentVNode("", !0)
5512
5527
  ]),
5513
5528
  createElementVNode("div", _hoisted_3$e, [
5514
- (openBlock(), createBlock(unref(Swiper), {
5515
- key: (qe = ze.value[0]) == null ? void 0 : qe.url,
5516
- "slides-per-view": 1,
5517
- "space-between": 50,
5518
- navigation: {
5519
- nextEl: ".ire-swiper-button-next",
5520
- prevEl: ".ire-swiper-button-prev",
5521
- disabledClass: "swiper-button-disabled"
5522
- },
5523
- modules: [unref(Navigation)],
5524
- class: "ire-w-full"
5529
+ createVNode(Transition, {
5530
+ name: "scale",
5531
+ mode: "out-in"
5525
5532
  }, {
5526
- default: withCtx(() => [
5527
- (openBlock(!0), createElementBlock(Fragment, null, renderList(ze.value, (Ge) => (openBlock(), createBlock(unref(SwiperSlide), {
5528
- key: Ge == null ? void 0 : Ge.url,
5529
- class: "ire-flex !ire-w-full ire-justify-center ire-bg-gray-50 ire-text-center"
5530
- }, {
5531
- default: withCtx(() => [
5532
- (openBlock(), createElementBlock("a", {
5533
- key: Ge == null ? void 0 : Ge.url,
5534
- "data-fancybox": De.value ? "gallery-2d" : "gallery-3d",
5535
- href: Ge == null ? void 0 : Ge.url,
5536
- class: "irep-flat-preview__left-3d ire-flex ire-w-fit ire-justify-center ire-text-center"
5537
- }, [
5538
- (openBlock(), createElementBlock("img", {
5533
+ default: withCtx(() => {
5534
+ var ei;
5535
+ return [
5536
+ (openBlock(), createBlock(unref(Swiper), {
5537
+ key: (ei = Ae.value[0]) == null ? void 0 : ei.url,
5538
+ "slides-per-view": 1,
5539
+ "space-between": 50,
5540
+ navigation: {
5541
+ nextEl: ".ire-swiper-button-next",
5542
+ prevEl: ".ire-swiper-button-prev",
5543
+ disabledClass: "swiper-button-disabled"
5544
+ },
5545
+ modules: [unref(Navigation)],
5546
+ class: "ire-w-full"
5547
+ }, {
5548
+ default: withCtx(() => [
5549
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(Ae.value, (Ge) => (openBlock(), createBlock(unref(SwiperSlide), {
5539
5550
  key: Ge == null ? void 0 : Ge.url,
5540
- src: Ge == null ? void 0 : Ge.url,
5541
- class: "ire-preview-img"
5542
- }, null, 8, _hoisted_5$7))
5543
- ], 8, _hoisted_4$a))
5544
- ]),
5545
- _: 2
5546
- }, 1024))), 128))
5547
- ]),
5551
+ class: "ire-flex !ire-w-full ire-justify-center ire-bg-gray-50 ire-text-center"
5552
+ }, {
5553
+ default: withCtx(() => [
5554
+ (openBlock(), createElementBlock("a", {
5555
+ key: Ge == null ? void 0 : Ge.url,
5556
+ "data-fancybox": Ve.value ? "gallery-2d" : "gallery-3d",
5557
+ href: Ge == null ? void 0 : Ge.url,
5558
+ class: "irep-flat-preview__left-3d ire-flex ire-w-fit ire-justify-center ire-text-center"
5559
+ }, [
5560
+ (openBlock(), createElementBlock("img", {
5561
+ key: Ge == null ? void 0 : Ge.url,
5562
+ src: Ge == null ? void 0 : Ge.url,
5563
+ class: "ire-preview-img"
5564
+ }, null, 8, _hoisted_5$7))
5565
+ ], 8, _hoisted_4$a))
5566
+ ]),
5567
+ _: 2
5568
+ }, 1024))), 128))
5569
+ ]),
5570
+ _: 1
5571
+ }, 8, ["modules"]))
5572
+ ];
5573
+ }),
5548
5574
  _: 1
5549
- }, 8, ["modules"])),
5550
- ze.value.length > 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
5575
+ }),
5576
+ Ae.value.length > 1 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
5551
5577
  createElementVNode("div", _hoisted_6$5, [
5552
5578
  createVNode(ArrowRight, { class: "ire-m-2 ire-rotate-180 ire-rounded-lg ire-bg-[var(--primary-color)] ire-transition-all group-hover:ire-bg-[color-mix(in_srgb,var(--primary-color),white_20%)] [&_path]:ire-fill-white" })
5553
5579
  ]),
@@ -5557,41 +5583,43 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
5557
5583
  ], 64)) : createCommentVNode("", !0)
5558
5584
  ]),
5559
5585
  createElementVNode("div", _hoisted_8$3, [
5560
- Ae.value && !unref(Ve) ? (openBlock(), createBlock(_sfc_main$y, {
5561
- key: 0,
5562
- title: Re.value ? unref(tr)("copied") : unref(tr)("copy"),
5563
- active: "",
5564
- class: "ire-h-fit !ire-w-[105px] [&_svg]:ire-size-5",
5565
- onClick: je
5566
- }, {
5567
- icon: withCtx(() => [
5568
- Re.value ? (openBlock(), createBlock(Correct, { key: 0 })) : (openBlock(), createBlock(ClipBoard, { key: 1 }))
5569
- ]),
5570
- _: 1
5571
- }, 8, ["title"])) : createCommentVNode("", !0),
5572
- Ie.value ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
5573
- (Ze = (Je = (Ye = (Ue = Be.flat) == null ? void 0 : Ue.type) == null ? void 0 : Ye.image_3d) == null ? void 0 : Je[0]) != null && Ze.url ? (openBlock(), createBlock(_sfc_main$y, {
5586
+ createElementVNode("div", {
5587
+ class: "ire-cursor-pointer ire-rounded-md ire-p-2 ire-transition-all hover:ire-bg-gray-200",
5588
+ onClick: ze
5589
+ }, [
5590
+ createVNode(Transition, {
5591
+ name: "scale",
5592
+ mode: "out-in"
5593
+ }, {
5594
+ default: withCtx(() => [
5595
+ Le.value ? (openBlock(), createBlock(Correct, { key: 0 })) : (openBlock(), createBlock(ClipBoard, { key: 1 }))
5596
+ ]),
5597
+ _: 1
5598
+ })
5599
+ ]),
5600
+ Re.value ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
5601
+ (Ue = (qe = (We = (He = Be.flat) == null ? void 0 : He.type) == null ? void 0 : We.image_3d) == null ? void 0 : qe[0]) != null && Ue.url ? (openBlock(), createBlock(_sfc_main$z, {
5574
5602
  key: 0,
5575
5603
  title: unref(tr)("3d plan"),
5576
- active: !De.value,
5577
- onClick: He[0] || (He[0] = (Ge) => De.value = !1)
5604
+ active: !Ve.value,
5605
+ onClick: Fe[0] || (Fe[0] = (ei) => Ve.value = !1)
5578
5606
  }, {
5579
5607
  icon: withCtx(() => [
5580
5608
  createVNode(Cube3d, {
5581
- class: normalizeClass(["ire-size-6 [&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !De.value }])
5609
+ class: normalizeClass(["ire-size-6 group-active:ire-stroke-white [&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": !Ve.value }])
5582
5610
  }, null, 8, ["class"])
5583
5611
  ]),
5584
5612
  _: 1
5585
5613
  }, 8, ["title", "active"])) : createCommentVNode("", !0),
5586
- (Ke = (ei = (ni = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : ni.image_2d) == null ? void 0 : ei[0]) != null && Ke.url ? (openBlock(), createBlock(_sfc_main$y, {
5614
+ (Qe = (Ze = (Je = (Ye = Be.flat) == null ? void 0 : Ye.type) == null ? void 0 : Je.image_2d) == null ? void 0 : Ze[0]) != null && Qe.url ? (openBlock(), createBlock(_sfc_main$z, {
5587
5615
  key: 1,
5588
5616
  title: unref(tr)("2d plan"),
5589
- active: De.value,
5590
- onClick: He[1] || (He[1] = (Ge) => De.value = !0)
5617
+ active: Ve.value,
5618
+ onClick: Fe[1] || (Fe[1] = (ei) => Ve.value = !0)
5591
5619
  }, {
5592
5620
  icon: withCtx(() => [
5593
5621
  createVNode(FlatIcon, {
5594
- class: normalizeClass(["ire-size-6 [&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": De.value }])
5622
+ class: normalizeClass(["ire-size-6 group-active:ire-stroke-white [&_path]:ire-stroke-black group-hover:[&_path]:ire-stroke-white", { "[&_path]:!ire-stroke-white": Ve.value }])
5595
5623
  }, null, 8, ["class"])
5596
5624
  ]),
5597
5625
  _: 1
@@ -5599,7 +5627,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
5599
5627
  ])) : createCommentVNode("", !0)
5600
5628
  ])
5601
5629
  ]),
5602
- unref($e)("remove_watermark") !== "true" || !((Xe = unref(Ne)) != null && Xe.is_premium) ? (openBlock(), createElementBlock("div", _hoisted_10$3, [
5630
+ unref($e)("remove_watermark") !== "true" || !((ni = unref(Ne)) != null && ni.is_premium) ? (openBlock(), createElementBlock("div", _hoisted_10$3, [
5603
5631
  createElementVNode("a", _hoisted_11$1, [
5604
5632
  createVNode(Logo, { class: "ire-size-12" })
5605
5633
  ])
@@ -5744,12 +5772,12 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
5744
5772
  _: 1
5745
5773
  }),
5746
5774
  createElementVNode("div", _hoisted_6$4, [
5747
- createVNode(_sfc_main$y, {
5775
+ createVNode(_sfc_main$z, {
5748
5776
  type: "button",
5749
5777
  title: "back",
5750
5778
  onClick: je[4] || (je[4] = (Fe) => ke("hideForm"))
5751
5779
  }),
5752
- createVNode(_sfc_main$y, {
5780
+ createVNode(_sfc_main$z, {
5753
5781
  type: "submit",
5754
5782
  title: "Submit",
5755
5783
  active: "",
@@ -5805,7 +5833,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
5805
5833
  setQuery(Fe, "");
5806
5834
  });
5807
5835
  }), (je, Fe) => {
5808
- var He, We, qe, Ue, Ye, Je, Ze, Qe, ni, ei, Ke, Xe, Ge, ti, ii, oi, ri, si, ai, li, ci, di, hi, fi, pi, mi, vi, gi, bi, yi, _i, xi;
5836
+ var He, We, qe, Ue, Ye, Je, Ze, Qe, ni, ei, Ge, Xe, Ke, ti, ii, oi, ri, si, ai, li, ci, di, hi, fi, pi, mi, vi, gi, bi, yi, _i, xi, wi, ki, Si, Ci;
5809
5837
  return openBlock(), createElementBlock("div", {
5810
5838
  class: normalizeClass(["irep-flat-preview ire-grid", {
5811
5839
  "lg:ire-grid-cols-[1.5fr,1fr]": Ae.value
@@ -5823,7 +5851,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
5823
5851
  }])
5824
5852
  }, [
5825
5853
  createElementVNode("div", _hoisted_2$b, [
5826
- (He = Be.flat) != null && He.flat_number ? (openBlock(), createBlock(_sfc_main$z, {
5854
+ (He = Be.flat) != null && He.flat_number ? (openBlock(), createBlock(_sfc_main$A, {
5827
5855
  key: 0,
5828
5856
  keyName: unref(tr)("apartment"),
5829
5857
  value: Be.flat.flat_number,
@@ -5834,34 +5862,39 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
5834
5862
  createElementVNode("div", _hoisted_5$4, toDisplayString((ni = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : ni.teaser), 1)
5835
5863
  ])) : createCommentVNode("", !0),
5836
5864
  createElementVNode("div", _hoisted_6$3, [
5837
- (ei = Be.flat) != null && ei.floor_id ? (openBlock(), createBlock(_sfc_main$z, {
5865
+ (ei = Be.flat) != null && ei.block_id ? (openBlock(), createBlock(_sfc_main$A, {
5838
5866
  key: 0,
5839
- keyName: unref(tr)("floor"),
5840
- value: ((Ge = (Xe = unref(getFloorById)(+((Ke = Be.flat) == null ? void 0 : Ke.floor_id))) == null ? void 0 : Xe.floor_number) == null ? void 0 : Ge.toString()) || ""
5867
+ keyName: unref(tr)("block"),
5868
+ value: ((Ke = (Xe = unref(getBlockById)(+((Ge = Be.flat) == null ? void 0 : Ge.block_id))) == null ? void 0 : Xe.title) == null ? void 0 : Ke.toString()) || ""
5841
5869
  }, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5842
- (ii = (ti = Be.flat) == null ? void 0 : ti.type) != null && ii.area_m2 ? (openBlock(), createBlock(_sfc_main$z, {
5870
+ (ti = Be.flat) != null && ti.floor_id ? (openBlock(), createBlock(_sfc_main$A, {
5843
5871
  key: 1,
5872
+ keyName: unref(tr)("floor"),
5873
+ value: ((ri = (oi = unref(getFloorById)(+((ii = Be.flat) == null ? void 0 : ii.floor_id))) == null ? void 0 : oi.floor_number) == null ? void 0 : ri.toString()) || ""
5874
+ }, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5875
+ (ai = (si = Be.flat) == null ? void 0 : si.type) != null && ai.area_m2 ? (openBlock(), createBlock(_sfc_main$A, {
5876
+ key: 2,
5844
5877
  keyName: unref(tr)("area"),
5845
- value: unref(getArea)(Number((oi = Be.flat) == null ? void 0 : oi.type.area_m2))
5878
+ value: unref(getArea)(Number((li = Be.flat) == null ? void 0 : li.type.area_m2))
5846
5879
  }, {
5847
5880
  sufix: withCtx(() => [
5848
5881
  createElementVNode("span", null, toDisplayString(unref(getAreaUnitLabel)()) + "² ", 1)
5849
5882
  ]),
5850
5883
  _: 1
5851
5884
  }, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5852
- (si = (ri = Be.flat) == null ? void 0 : ri.type) != null && si.rooms_count ? (openBlock(), createBlock(_sfc_main$z, {
5853
- key: 2,
5885
+ (di = (ci = Be.flat) == null ? void 0 : ci.type) != null && di.rooms_count ? (openBlock(), createBlock(_sfc_main$A, {
5886
+ key: 3,
5854
5887
  keyName: unref(tr)("room"),
5855
5888
  value: Be.flat.type.rooms_count
5856
5889
  }, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5857
- (ai = Be.flat) != null && ai.request_price ? (openBlock(), createBlock(_sfc_main$z, {
5858
- key: 3,
5890
+ (hi = Be.flat) != null && hi.request_price ? (openBlock(), createBlock(_sfc_main$A, {
5891
+ key: 4,
5859
5892
  keyName: unref(tr)("price"),
5860
5893
  value: unref(tr)("Request Price")
5861
- }, null, 8, ["keyName", "value"])) : (li = Be.flat) != null && li.offer_price ? (openBlock(), createBlock(_sfc_main$z, {
5862
- key: 4,
5894
+ }, null, 8, ["keyName", "value"])) : (fi = Be.flat) != null && fi.offer_price ? (openBlock(), createBlock(_sfc_main$A, {
5895
+ key: 5,
5863
5896
  keyName: unref(tr)("price"),
5864
- value: unref(getPrice)(Number((ci = Be.flat) == null ? void 0 : ci.offer_price))
5897
+ value: unref(getPrice)(Number((pi = Be.flat) == null ? void 0 : pi.offer_price))
5865
5898
  }, {
5866
5899
  top: withCtx(() => {
5867
5900
  var ui;
@@ -5876,35 +5909,35 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$a]
5876
5909
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
5877
5910
  ]),
5878
5911
  _: 1
5879
- }, 8, ["keyName", "value"])) : (di = Be.flat) != null && di.price && Number(Be.flat.price) > 0 ? (openBlock(), createBlock(_sfc_main$z, {
5880
- key: 5,
5912
+ }, 8, ["keyName", "value"])) : (mi = Be.flat) != null && mi.price && Number(Be.flat.price) > 0 ? (openBlock(), createBlock(_sfc_main$A, {
5913
+ key: 6,
5881
5914
  keyName: unref(tr)("price"),
5882
- value: unref(getPrice)(Number((hi = Be.flat) == null ? void 0 : hi.price))
5915
+ value: unref(getPrice)(Number((vi = Be.flat) == null ? void 0 : vi.price))
5883
5916
  }, {
5884
5917
  sufix: withCtx(() => [
5885
5918
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
5886
5919
  ]),
5887
5920
  _: 1
5888
5921
  }, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5889
- (mi = (pi = (fi = Be.flat) == null ? void 0 : fi.type) == null ? void 0 : pi.other) != null && mi.length ? (openBlock(!0), createElementBlock(Fragment, { key: 6 }, renderList(Be.flat.type.other, (ui) => (openBlock(), createBlock(_sfc_main$z, {
5922
+ (yi = (bi = (gi = Be.flat) == null ? void 0 : gi.type) == null ? void 0 : bi.other) != null && yi.length ? (openBlock(!0), createElementBlock(Fragment, { key: 7 }, renderList(Be.flat.type.other, (ui) => (openBlock(), createBlock(_sfc_main$A, {
5890
5923
  keyName: ui.key,
5891
5924
  value: ui.value
5892
5925
  }, null, 8, ["keyName", "value"]))), 256)) : createCommentVNode("", !0)
5893
5926
  ])
5894
5927
  ]),
5895
5928
  createElementVNode("div", _hoisted_8$2, [
5896
- (bi = (gi = (vi = Be.flat) == null ? void 0 : vi.files) == null ? void 0 : gi[0]) != null && bi.url ? (openBlock(), createElementBlock("a", {
5929
+ (wi = (xi = (_i = Be.flat) == null ? void 0 : _i.files) == null ? void 0 : xi[0]) != null && wi.url ? (openBlock(), createElementBlock("a", {
5897
5930
  key: 0,
5898
- href: (xi = (_i = (yi = Be.flat) == null ? void 0 : yi.files) == null ? void 0 : _i[0]) == null ? void 0 : xi.url,
5931
+ href: (Ci = (Si = (ki = Be.flat) == null ? void 0 : ki.files) == null ? void 0 : Si[0]) == null ? void 0 : Ci.url,
5899
5932
  target: "_blank",
5900
5933
  class: "ire-w-full ire-p-2"
5901
5934
  }, [
5902
- createVNode(_sfc_main$y, {
5935
+ createVNode(_sfc_main$z, {
5903
5936
  title: unref(tr)("download file")
5904
5937
  }, null, 8, ["title"])
5905
5938
  ], 8, _hoisted_9$2)) : createCommentVNode("", !0),
5906
5939
  Ie.value ? (openBlock(), createElementBlock("div", _hoisted_10$2, [
5907
- createVNode(_sfc_main$y, {
5940
+ createVNode(_sfc_main$z, {
5908
5941
  title: unref(tr)("request callback"),
5909
5942
  active: "",
5910
5943
  onClick: Fe[0] || (Fe[0] = (ui) => Le.value = !0)
@@ -6038,14 +6071,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6038
6071
  var Ue;
6039
6072
  if (!Re.value) return;
6040
6073
  ((Ue = Re.value) == null ? void 0 : Ue.querySelectorAll("g")).forEach((Ye) => {
6041
- var ni, ei, Ke, Xe;
6074
+ var ni, ei, Ge, Xe;
6042
6075
  const Je = Ye == null ? void 0 : Ye.getAttribute("id"), Ze = (ei = (ni = $e.block) == null ? void 0 : ni.polygon_data) == null ? void 0 : ei.find(
6043
- (Ge) => (Ge == null ? void 0 : Ge.key) === Je
6076
+ (Ke) => (Ke == null ? void 0 : Ke.key) === Je
6044
6077
  ), Qe = Ze == null ? void 0 : Ze.id;
6045
6078
  switch (Ze == null ? void 0 : Ze.type) {
6046
6079
  case "floor":
6047
- const Ge = (Ke = $e.floors) == null ? void 0 : Ke.find((ii) => ii.id === Qe);
6048
- Ye.setAttribute("conf", (Ge == null ? void 0 : Ge.conf) || "");
6080
+ const Ke = (Ge = $e.floors) == null ? void 0 : Ge.find((ii) => ii.id === Qe);
6081
+ Ye.setAttribute("conf", (Ke == null ? void 0 : Ke.conf) || "");
6049
6082
  break;
6050
6083
  case "flat":
6051
6084
  const ti = (Xe = $e.flats) == null ? void 0 : Xe.find((ii) => ii.id === Qe);
@@ -6062,13 +6095,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6062
6095
  ), watch(
6063
6096
  () => Ie.value,
6064
6097
  (qe) => {
6065
- var Ye, Je, Ze, Qe, ni, ei, Ke, Xe;
6098
+ var Ye, Je, Ze, Qe, ni, ei, Ge, Xe;
6066
6099
  if (!qe) return;
6067
6100
  Ve.hoverdSvg = qe;
6068
6101
  const Ue = qe == null ? void 0 : qe.parentElement;
6069
6102
  if (Ue && (Ue == null ? void 0 : Ue.nodeName) === "g") {
6070
- const Ge = Ue == null ? void 0 : Ue.getAttribute("id");
6071
- if (!Ge || (Ae.value = ((Je = (Ye = $e.block) == null ? void 0 : Ye.polygon_data) == null ? void 0 : Je.find((ti) => (ti == null ? void 0 : ti.key) === Ge)) || null, !Ae.value)) return;
6103
+ const Ke = Ue == null ? void 0 : Ue.getAttribute("id");
6104
+ if (!Ke || (Ae.value = ((Je = (Ye = $e.block) == null ? void 0 : Ye.polygon_data) == null ? void 0 : Je.find((ti) => (ti == null ? void 0 : ti.key) === Ke)) || null, !Ae.value)) return;
6072
6105
  if (((Ze = Ae.value) == null ? void 0 : Ze.type) === "floor") {
6073
6106
  const ti = (Qe = $e.floors) == null ? void 0 : Qe.find(
6074
6107
  (ii) => {
@@ -6085,7 +6118,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6085
6118
  }
6086
6119
  );
6087
6120
  ze.value = ti;
6088
- } else if (((Ke = Ae.value) == null ? void 0 : Ke.type) === "tooltip") {
6121
+ } else if (((Ge = Ae.value) == null ? void 0 : Ge.type) === "tooltip") {
6089
6122
  const ti = (Xe = $e.actions) == null ? void 0 : Xe.find(
6090
6123
  (ii) => {
6091
6124
  var oi;
@@ -6104,14 +6137,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6104
6137
  document.removeEventListener("mousemove", Fe);
6105
6138
  }), (qe, Ue) => {
6106
6139
  var Ye;
6107
- return openBlock(), createBlock(_sfc_main$F, {
6140
+ return openBlock(), createBlock(_sfc_main$G, {
6108
6141
  hoverdData: ze.value,
6109
6142
  type: (Ye = Ae.value) == null ? void 0 : Ye.type
6110
6143
  }, {
6111
6144
  header: withCtx(() => {
6112
6145
  var Je;
6113
6146
  return [
6114
- createVNode(_sfc_main$B, {
6147
+ createVNode(_sfc_main$C, {
6115
6148
  onClick: Ue[0] || (Ue[0] = (Ze) => qe.$emit("changeComponent", "project", null))
6116
6149
  }),
6117
6150
  createElementVNode("div", _hoisted_1$g, toDisplayString((Je = Be.block) == null ? void 0 : Je.title), 1)
@@ -6284,7 +6317,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6284
6317
  }, {
6285
6318
  default: withCtx(() => [
6286
6319
  unref(shortcodeData) ? (openBlock(), createElementBlock("div", { key: flow.value }, [
6287
- flow.value === "projectFlow" ? (openBlock(), createBlock(_sfc_main$E, {
6320
+ flow.value === "projectFlow" ? (openBlock(), createBlock(_sfc_main$F, {
6288
6321
  key: 0,
6289
6322
  project: project.value,
6290
6323
  floors: floors.value,
@@ -6300,7 +6333,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6300
6333
  floors: floors.value,
6301
6334
  actions: actions.value,
6302
6335
  onChangeComponent: _e[1] || (_e[1] = (ke, $e) => changeRoute(ke, $e))
6303
- }, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$A, {
6336
+ }, null, 8, ["block", "flats", "floors", "actions"])) : flow.value === "floorFlow" && floors.value && activeFloor.value ? (openBlock(), createBlock(_sfc_main$B, {
6304
6337
  key: 2,
6305
6338
  flats: flats.value,
6306
6339
  floor: activeFloor.value,
@@ -6367,7 +6400,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6367
6400
  },
6368
6401
  setup(Be) {
6369
6402
  const _e = Be, ke = useGlobalStore();
6370
- return ke.setData(_e.data), ke.setIrePlaginWp(_e.irePlugin), provide("fromListView", !1), ($e, Ne) => (openBlock(), createBlock(_sfc_main$J, null, {
6403
+ return ke.setData(_e.data), ke.setIrePlaginWp(_e.irePlugin), provide("fromListView", !1), ($e, Ne) => (openBlock(), createBlock(_sfc_main$K, null, {
6371
6404
  default: withCtx(() => [
6372
6405
  createVNode(_sfc_main$h)
6373
6406
  ]),
@@ -6409,13 +6442,7 @@ function _sfc_render$8(Be, _e) {
6409
6442
  }, null, -1)
6410
6443
  ])]);
6411
6444
  }
6412
- const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$8]]), _hoisted_1$e = { class: "ire-relative ire-pt-[85%]" }, _hoisted_2$7 = ["src"], _hoisted_3$7 = { key: 1 }, _hoisted_4$5 = { class: "ire-mt-4 ire-flex ire-flex-col ire-gap-3" }, _hoisted_5$3 = { class: "flex ire-justify-between ire-gap-2 ire-text-center" }, _hoisted_6$2 = { class: "ire-text-left ire-text-lg ire-font-semibold" }, _hoisted_7$2 = {
6413
- key: 0,
6414
- class: "ire-h-fit ire-rounded-sm ire-bg-yellow-500 ire-px-2 ire-text-sm ire-uppercase ire-text-yellow-100"
6415
- }, _hoisted_8$1 = {
6416
- key: 1,
6417
- class: "ire-h-fit ire-rounded-sm ire-bg-red-500 ire-px-2 ire-text-sm ire-uppercase ire-text-red-100"
6418
- }, _hoisted_9$1 = { key: 0 }, _hoisted_10$1 = { key: 1 }, _hoisted_11 = { class: "ire-text-xs ire-text-gray-500 ire-line-through" }, _hoisted_12 = { key: 2 }, _hoisted_13 = { key: 3 }, _hoisted_14 = { class: "ire-right-[2px] ire-text-base" }, _sfc_main$e = /* @__PURE__ */ defineComponent({
6445
+ const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$8]]), _hoisted_1$e = { class: "ire-relative ire-pt-[85%]" }, _hoisted_2$7 = ["src"], _hoisted_3$7 = { key: 1 }, _hoisted_4$5 = { class: "ire-mt-4 ire-flex ire-flex-col ire-gap-3" }, _hoisted_5$3 = { class: "flex ire-justify-between ire-gap-2 ire-text-center" }, _hoisted_6$2 = { class: "ire-text-left ire-text-lg ire-font-semibold" }, _hoisted_7$2 = { key: 0 }, _hoisted_8$1 = { key: 1 }, _hoisted_9$1 = { class: "ire-text-xs ire-text-gray-500 ire-line-through" }, _hoisted_10$1 = { key: 2 }, _hoisted_11 = { key: 3 }, _hoisted_12 = { class: "ire-right-[2px] ire-text-base" }, _sfc_main$e = /* @__PURE__ */ defineComponent({
6419
6446
  __name: "FlatCard",
6420
6447
  props: {
6421
6448
  flat: {}
@@ -6448,14 +6475,18 @@ const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_re
6448
6475
  createElementVNode("div", _hoisted_4$5, [
6449
6476
  createElementVNode("div", _hoisted_5$3, [
6450
6477
  createElementVNode("div", _hoisted_6$2, toDisplayString(Be.flat.flat_number), 1),
6451
- Be.flat.conf === "reserved" ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(unref(tr)("reserved")), 1)) : Be.flat.conf === "sold" ? (openBlock(), createElementBlock("div", _hoisted_8$1, toDisplayString(unref(tr)("sold")), 1)) : createCommentVNode("", !0)
6478
+ Be.flat.conf ? (openBlock(), createBlock(_sfc_main$s, {
6479
+ key: 0,
6480
+ title: unref(tr)(Be.flat.conf),
6481
+ "badge-style": Be.flat.conf === "reserved" ? "warning" : "danger"
6482
+ }, null, 8, ["title", "badge-style"])) : createCommentVNode("", !0)
6452
6483
  ]),
6453
- Be.flat.request_price ? (openBlock(), createElementBlock("div", _hoisted_9$1, toDisplayString(unref(tr)("Request Price")), 1)) : Be.flat.offer_price ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
6454
- createElementVNode("div", _hoisted_11, toDisplayString(unref(getPrice)(+Be.flat.price_n)) + " " + toDisplayString(unref(currencySymbol)()), 1),
6484
+ Be.flat.request_price ? (openBlock(), createElementBlock("div", _hoisted_7$2, toDisplayString(unref(tr)("Request Price")), 1)) : Be.flat.offer_price ? (openBlock(), createElementBlock("div", _hoisted_8$1, [
6485
+ createElementVNode("div", _hoisted_9$1, toDisplayString(unref(getPrice)(+Be.flat.price_n)) + " " + toDisplayString(unref(currencySymbol)()), 1),
6455
6486
  createElementVNode("div", null, toDisplayString(unref(getPrice)(+Be.flat.offer_price)) + " " + toDisplayString(unref(currencySymbol)()), 1)
6456
- ])) : Be.flat.price !== "0.00" ? (openBlock(), createElementBlock("div", _hoisted_12, toDisplayString(unref(getPrice)(+Be.flat.price_n)) + " " + toDisplayString(unref(currencySymbol)()), 1)) : createCommentVNode("", !0),
6457
- (Le = Be.flat.type) != null && Le.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_13, [
6458
- createElementVNode("span", _hoisted_14, [
6487
+ ])) : Be.flat.price !== "0.00" ? (openBlock(), createElementBlock("div", _hoisted_10$1, toDisplayString(unref(getPrice)(+Be.flat.price_n)) + " " + toDisplayString(unref(currencySymbol)()), 1)) : createCommentVNode("", !0),
6488
+ (Le = Be.flat.type) != null && Le.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_11, [
6489
+ createElementVNode("span", _hoisted_12, [
6459
6490
  createTextVNode(toDisplayString(unref(getArea)(+((Re = Be.flat.type) == null ? void 0 : Re.area_m2_n))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + " ", 1),
6460
6491
  De[1] || (De[1] = createElementVNode("sup", { class: "ire-bg-transparent ire-text-sm" }, " 2 ", -1))
6461
6492
  ])
@@ -7203,7 +7234,7 @@ const MagnifyIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_re
7203
7234
  ]),
7204
7235
  createElementVNode("div", null, [
7205
7236
  createElementVNode("div", _hoisted_10, toDisplayString(unref(tr)("select config")), 1),
7206
- createVNode(_sfc_main$D, {
7237
+ createVNode(_sfc_main$E, {
7207
7238
  modelValue: Ne.value.config,
7208
7239
  "onUpdate:modelValue": De[8] || (De[8] = (Le) => Ne.value.config = Le),
7209
7240
  data: $e,
@@ -7211,7 +7242,7 @@ const MagnifyIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_re
7211
7242
  class: "irep-flats-list-filters-select"
7212
7243
  }, null, 8, ["modelValue"])
7213
7244
  ]),
7214
- createVNode(_sfc_main$y, {
7245
+ createVNode(_sfc_main$z, {
7215
7246
  title: unref(tr)("filter"),
7216
7247
  active: "",
7217
7248
  class: "irep-flats-list-filters-submit-btn !ire-w-fit ire-capitalize",
@@ -7294,37 +7325,37 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7294
7325
  }), Ue = computed$1(() => {
7295
7326
  if ($e.value)
7296
7327
  return $e.value.types;
7297
- }), Ye = computed$1(() => $e.value ? $e.value.flats.map((Ge) => {
7328
+ }), Ye = computed$1(() => $e.value ? $e.value.flats.map((Ke) => {
7298
7329
  var ri, si, ai;
7299
7330
  const ti = (ri = $e.value) == null ? void 0 : ri.floors.find(
7300
- (li) => li.id === Ge.floor_id
7331
+ (li) => li.id === Ke.floor_id
7301
7332
  ), ii = (si = $e.value) == null ? void 0 : si.blocks.find(
7302
- (li) => li.id === Ge.block_id
7303
- ), oi = Ge.use_type || !Ge.type ? ((ai = Ue.value) == null ? void 0 : ai.find((li) => li.id === Ge.type_id)) ?? Ge.type : Ge.type;
7333
+ (li) => li.id === Ke.block_id
7334
+ ), oi = Ke.use_type || !Ke.type ? ((ai = Ue.value) == null ? void 0 : ai.find((li) => li.id === Ke.type_id)) ?? Ke.type : Ke.type;
7304
7335
  return {
7305
- ...Ge,
7336
+ ...Ke,
7306
7337
  type: {
7307
7338
  ...oi,
7308
7339
  area_m2_n: Number(oi == null ? void 0 : oi.area_m2),
7309
7340
  area_m2: `${oi == null ? void 0 : oi.area_m2} ${getAreaUnitLabel()}²`
7310
7341
  },
7311
- price_n: Number(Ge.price),
7312
- price: Ge.conf ? tr(Ge.conf) : Ge.request_price ? tr("Request Price") : `${getPrice(Number((Ge == null ? void 0 : Ge.offer_price) || (Ge == null ? void 0 : Ge.price)))} ${currencySymbol()}`,
7342
+ price_n: Number(Ke.price),
7343
+ price: Ke.conf ? tr(Ke.conf) : Ke.request_price ? tr("Request Price") : `${getPrice(Number((Ke == null ? void 0 : Ke.offer_price) || (Ke == null ? void 0 : Ke.price)))} ${currencySymbol()}`,
7313
7344
  floor_title: ti == null ? void 0 : ti.title,
7314
7345
  floor_number: Number(ti == null ? void 0 : ti.floor_number),
7315
7346
  block_title: ii
7316
7347
  };
7317
- }).map((Ge) => {
7348
+ }).map((Ke) => {
7318
7349
  var ii;
7319
- const ti = (ii = Ge.type) == null ? void 0 : ii.other.reduce(
7350
+ const ti = (ii = Ke.type) == null ? void 0 : ii.other.reduce(
7320
7351
  (oi, ri) => (oi[ri.key] = ri.value, oi),
7321
7352
  {}
7322
7353
  );
7323
- return { ...Ge, type: { ...Ge.type, other: ti } };
7324
- }).sort((Ge, ti) => {
7354
+ return { ...Ke, type: { ...Ke.type, other: ti } };
7355
+ }).sort((Ke, ti) => {
7325
7356
  const ii = Le.value;
7326
- let oi = Ge[ii], ri = ti[ii];
7327
- ii != null && ii.includes(".") && (oi = getNested(Ge, ii), ri = getNested(ti, ii)), oi == null && (oi = "0"), ri == null && (ri = "0");
7357
+ let oi = Ke[ii], ri = ti[ii];
7358
+ ii != null && ii.includes(".") && (oi = getNested(Ke, ii), ri = getNested(ti, ii)), oi == null && (oi = "0"), ri == null && (ri = "0");
7328
7359
  const si = oi.toString(), ai = ri.toString();
7329
7360
  return !isNaN(si) && !isNaN(ai) ? Re.value === "desc" ? ai - si : si - ai : Re.value === "desc" ? String(ri).localeCompare(String(oi)) : String(oi).localeCompare(String(ri));
7330
7361
  }) : []), Je = computed$1(() => {
@@ -7332,9 +7363,9 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7332
7363
  return Qe.value ? Math.ceil(((Xe = Ze.value) == null ? void 0 : Xe.length) / ze.value) : 0;
7333
7364
  }), Ze = computed$1(() => Ye.value ? Ye.value.filter((Xe) => {
7334
7365
  var hi, fi, pi, mi, vi, gi, bi, yi;
7335
- let Ge = !0, ti = !0, ii = !0, oi = !0, ri = !0, si = !0, ai = !0, li = !0, ci = !0;
7366
+ let Ke = !0, ti = !0, ii = !0, oi = !0, ri = !0, si = !0, ai = !0, li = !0, ci = !0;
7336
7367
  const di = !(Xe != null && Xe.conf) && !(Xe != null && Xe.request_price);
7337
- if (qe.value.priceMin && (Ge = Xe.price_n >= qe.value.priceMin && di), qe.value.priceMax && (ti = Xe.price_n <= qe.value.priceMax && di), qe.value.areaMin && (ii = ((hi = Xe.type) == null ? void 0 : hi.area_m2_n) && ((fi = Xe.type) == null ? void 0 : fi.area_m2_n) >= qe.value.areaMin), qe.value.areaMax && (oi = ((pi = Xe.type) == null ? void 0 : pi.area_m2_n) && ((mi = Xe.type) == null ? void 0 : mi.area_m2_n) <= qe.value.areaMax), qe.value.floorMin && (ri = (Xe == null ? void 0 : Xe.floor_number) && +(Xe == null ? void 0 : Xe.floor_number) >= +qe.value.floorMin), qe.value.floorMax && (si = (Xe == null ? void 0 : Xe.floor_number) && +(Xe == null ? void 0 : Xe.floor_number) <= +qe.value.floorMax), qe.value.roomMin && (ai = ((vi = Xe.type) == null ? void 0 : vi.rooms_count) && +((gi = Xe.type) == null ? void 0 : gi.rooms_count) >= +qe.value.roomMin), qe.value.roomMax && (li = ((bi = Xe.type) == null ? void 0 : bi.rooms_count) && +((yi = Xe.type) == null ? void 0 : yi.rooms_count) <= +qe.value.roomMax), qe.value.config)
7368
+ if (qe.value.priceMin && (Ke = Xe.price_n >= qe.value.priceMin && di), qe.value.priceMax && (ti = Xe.price_n <= qe.value.priceMax && di), qe.value.areaMin && (ii = ((hi = Xe.type) == null ? void 0 : hi.area_m2_n) && ((fi = Xe.type) == null ? void 0 : fi.area_m2_n) >= qe.value.areaMin), qe.value.areaMax && (oi = ((pi = Xe.type) == null ? void 0 : pi.area_m2_n) && ((mi = Xe.type) == null ? void 0 : mi.area_m2_n) <= qe.value.areaMax), qe.value.floorMin && (ri = (Xe == null ? void 0 : Xe.floor_number) && +(Xe == null ? void 0 : Xe.floor_number) >= +qe.value.floorMin), qe.value.floorMax && (si = (Xe == null ? void 0 : Xe.floor_number) && +(Xe == null ? void 0 : Xe.floor_number) <= +qe.value.floorMax), qe.value.roomMin && (ai = ((vi = Xe.type) == null ? void 0 : vi.rooms_count) && +((gi = Xe.type) == null ? void 0 : gi.rooms_count) >= +qe.value.roomMin), qe.value.roomMax && (li = ((bi = Xe.type) == null ? void 0 : bi.rooms_count) && +((yi = Xe.type) == null ? void 0 : yi.rooms_count) <= +qe.value.roomMax), qe.value.config)
7338
7369
  switch (qe.value.config) {
7339
7370
  case "available":
7340
7371
  ci = !Xe.conf;
@@ -7346,19 +7377,19 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7346
7377
  ci = Xe.conf === "sold";
7347
7378
  break;
7348
7379
  }
7349
- return Ge && ti && ii && oi && ri && si && ai && li && ci;
7380
+ return Ke && ti && ii && oi && ri && si && ai && li && ci;
7350
7381
  }) : []), Qe = computed$1(() => {
7351
7382
  var ti;
7352
7383
  if (!((ti = $e.value) != null && ti.flats)) return [];
7353
- const Xe = (Fe.value - 1) * ze.value, Ge = Xe + ze.value;
7354
- return Ze.value.slice(Xe, Ge);
7384
+ const Xe = (Fe.value - 1) * ze.value, Ke = Xe + ze.value;
7385
+ return Ze.value.slice(Xe, Ke);
7355
7386
  }), ni = (Xe) => {
7356
7387
  Fe.value = Xe, De(je.value), je.value, setQuery("flats-page", Xe.toString());
7357
- }, ei = (Xe, Ge) => {
7358
- Le.value = Xe, Re.value = Ge;
7359
- }, Ke = (Xe) => {
7360
- const Ge = Ve.value.find((ti) => ti.id === Xe);
7361
- We.value = Ge, He.value = !0;
7388
+ }, ei = (Xe, Ke) => {
7389
+ Le.value = Xe, Re.value = Ke;
7390
+ }, Ge = (Xe) => {
7391
+ const Ke = Ve.value.find((ti) => ti.id === Xe);
7392
+ We.value = Ke, He.value = !0;
7362
7393
  };
7363
7394
  return watch(
7364
7395
  () => qe.value,
@@ -7373,21 +7404,21 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7373
7404
  Xe && !isNaN(Number(Xe)) && (Fe.value = Number(Xe)), _e.perPage && !isNaN(Number(_e.perPage)) && (ze.value = Number(_e.perPage));
7374
7405
  }), onBeforeMount(() => {
7375
7406
  Ae.value = _e.layout === "table";
7376
- }), provide("fromListView", _e.fromListView), (Xe, Ge) => (openBlock(), createBlock(_sfc_main$J, { class: "irep-flats-list" }, {
7407
+ }), provide("fromListView", _e.fromListView), (Xe, Ke) => (openBlock(), createBlock(_sfc_main$K, { class: "irep-flats-list" }, {
7377
7408
  default: withCtx(() => {
7378
7409
  var ti;
7379
7410
  return [
7380
7411
  createElementVNode("div", _hoisted_1, [
7381
- createVNode(_sfc_main$y, {
7412
+ createVNode(_sfc_main$z, {
7382
7413
  title: unref(tr)("filters"),
7383
7414
  active: "",
7384
7415
  class: "irep-flats-top__filters-button !ire-w-fit ire-capitalize",
7385
- onClick: Ge[0] || (Ge[0] = (ii) => Ie.value = !0)
7416
+ onClick: Ke[0] || (Ke[0] = (ii) => Ie.value = !0)
7386
7417
  }, null, 8, ["title"]),
7387
7418
  Be.layout === "mixed" ? (openBlock(), createElementBlock("button", {
7388
7419
  key: 0,
7389
7420
  class: "irep-flats-top__mode-switcher-button ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-1 ire-bg-transparent",
7390
- onClick: Ge[1] || (Ge[1] = (ii) => Ae.value = !Ae.value)
7421
+ onClick: Ke[1] || (Ke[1] = (ii) => Ae.value = !Ae.value)
7391
7422
  }, [
7392
7423
  createElementVNode("div", _hoisted_2, [
7393
7424
  createVNode(Transition, {
@@ -7429,8 +7460,8 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7429
7460
  Ae.value ? (openBlock(), createBlock(_sfc_main$3, {
7430
7461
  key: 0,
7431
7462
  flats: Qe.value,
7432
- onSortColumn: Ge[2] || (Ge[2] = (ii, oi) => ei(ii, oi)),
7433
- onOpenFlat: Ge[3] || (Ge[3] = (ii) => Ke(ii))
7463
+ onSortColumn: Ke[2] || (Ke[2] = (ii, oi) => ei(ii, oi)),
7464
+ onOpenFlat: Ke[3] || (Ke[3] = (ii) => Ge(ii))
7434
7465
  }, null, 8, ["flats"])) : (openBlock(), createElementBlock("div", {
7435
7466
  key: 1,
7436
7467
  ref_key: "flatsContainer",
@@ -7440,7 +7471,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7440
7471
  (openBlock(!0), createElementBlock(Fragment, null, renderList(Qe.value, (ii) => (openBlock(), createBlock(_sfc_main$e, {
7441
7472
  key: ii.id,
7442
7473
  flat: ii,
7443
- onOpenFlat: Ge[4] || (Ge[4] = (oi) => Ke(oi))
7474
+ onOpenFlat: Ke[4] || (Ke[4] = (oi) => Ge(oi))
7444
7475
  }, null, 8, ["flat"]))), 128))
7445
7476
  ], 512))
7446
7477
  ]),
@@ -7451,7 +7482,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7451
7482
  createVNode(unref(script$1), {
7452
7483
  modelValue: Fe.value,
7453
7484
  "onUpdate:modelValue": [
7454
- Ge[5] || (Ge[5] = (ii) => Fe.value = ii),
7485
+ Ke[5] || (Ke[5] = (ii) => Fe.value = ii),
7455
7486
  ni
7456
7487
  ],
7457
7488
  pages: Je.value,
@@ -7469,7 +7500,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7469
7500
  He.value && We.value ? (openBlock(), createBlock(_sfc_main$m, {
7470
7501
  key: 0,
7471
7502
  style: normalizeStyle(unref(Ne)),
7472
- onClose: Ge[6] || (Ge[6] = (ii) => He.value = !1)
7503
+ onClose: Ke[6] || (Ke[6] = (ii) => He.value = !1)
7473
7504
  }, {
7474
7505
  default: withCtx(() => [
7475
7506
  createVNode(_sfc_main$o, { flat: We.value }, null, 8, ["flat"])
@@ -7488,13 +7519,13 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7488
7519
  default: withCtx(() => [
7489
7520
  Ie.value ? (openBlock(), createBlock(_sfc_main$m, {
7490
7521
  key: 0,
7491
- onClose: Ge[9] || (Ge[9] = (ii) => Ie.value = !1)
7522
+ onClose: Ke[9] || (Ke[9] = (ii) => Ie.value = !1)
7492
7523
  }, {
7493
7524
  default: withCtx(() => [
7494
7525
  createVNode(_sfc_main$2, {
7495
7526
  "filters-object": qe.value,
7496
- "onUpdate:filtersObject": Ge[7] || (Ge[7] = (ii) => qe.value = ii),
7497
- onFilterFlatsList: Ge[8] || (Ge[8] = (ii) => Ie.value = !1)
7527
+ "onUpdate:filtersObject": Ke[7] || (Ke[7] = (ii) => qe.value = ii),
7528
+ onFilterFlatsList: Ke[8] || (Ke[8] = (ii) => Ie.value = !1)
7498
7529
  }, null, 8, ["filters-object"])
7499
7530
  ]),
7500
7531
  _: 1