ire-preview 3.2.35 → 3.2.38

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
@@ -95,97 +95,97 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
95
95
  !Ve && !He && ($e.state.value[Be] = {}), ref({});
96
96
  let We;
97
97
  function qe(Ge) {
98
- let Ye;
99
- Ie = Ae = !1, typeof Ge == "function" ? (Ge($e.state.value[Be]), Ye = {
98
+ let Ze;
99
+ Ie = Ae = !1, typeof Ge == "function" ? (Ge($e.state.value[Be]), Ze = {
100
100
  type: MutationType.patchFunction,
101
101
  storeId: Be,
102
102
  events: Fe
103
- }) : (mergeReactiveObjects($e.state.value[Be], Ge), Ye = {
103
+ }) : (mergeReactiveObjects($e.state.value[Be], Ge), Ze = {
104
104
  type: MutationType.patchObject,
105
105
  payload: Ge,
106
106
  storeId: Be,
107
107
  events: Fe
108
108
  });
109
- const Ke = We = Symbol();
109
+ const ti = We = Symbol();
110
110
  nextTick().then(() => {
111
- We === Ke && (Ie = !0);
112
- }), Ae = !0, triggerSubscriptions(ze, Ye, $e.state.value[Be]);
111
+ We === ti && (Ie = !0);
112
+ }), Ae = !0, triggerSubscriptions(ze, Ze, $e.state.value[Be]);
113
113
  }
114
- const Ze = Ve ? function() {
115
- const { state: Ye } = ke, Ke = Ye ? Ye() : {};
116
- this.$patch((ei) => {
117
- assign(ei, Ke);
114
+ const Ue = Ve ? function() {
115
+ const { state: Ze } = ke, ti = Ze ? Ze() : {};
116
+ this.$patch((Je) => {
117
+ assign(Je, ti);
118
118
  });
119
119
  } : (
120
120
  /* istanbul ignore next */
121
121
  noop
122
122
  );
123
- function Xe() {
123
+ function Ye() {
124
124
  De.stop(), ze.clear(), je.clear(), $e._s.delete(Be);
125
125
  }
126
- const Je = (Ge, Ye = "") => {
126
+ const Ke = (Ge, Ze = "") => {
127
127
  if (ACTION_MARKER in Ge)
128
- return Ge[ACTION_NAME] = Ye, Ge;
129
- const Ke = function() {
128
+ return Ge[ACTION_NAME] = Ze, Ge;
129
+ const ti = function() {
130
130
  setActivePinia($e);
131
- const ei = Array.from(arguments), ii = /* @__PURE__ */ new Set(), oi = /* @__PURE__ */ new Set();
131
+ const Je = Array.from(arguments), ni = /* @__PURE__ */ new Set(), oi = /* @__PURE__ */ new Set();
132
132
  function ri(li) {
133
- ii.add(li);
133
+ ni.add(li);
134
134
  }
135
135
  function si(li) {
136
136
  oi.add(li);
137
137
  }
138
138
  triggerSubscriptions(je, {
139
- args: ei,
140
- name: Ke[ACTION_NAME],
139
+ args: Je,
140
+ name: ti[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 = Ge.apply(this && this.$id === Be ? this : Qe, ei);
147
+ ai = Ge.apply(this && this.$id === Be ? this : Qe, Je);
148
148
  } catch (li) {
149
149
  throw triggerSubscriptions(oi, li), li;
150
150
  }
151
- return ai instanceof Promise ? ai.then((li) => (triggerSubscriptions(ii, li), li)).catch((li) => (triggerSubscriptions(oi, li), Promise.reject(li))) : (triggerSubscriptions(ii, ai), ai);
151
+ return ai instanceof Promise ? ai.then((li) => (triggerSubscriptions(ni, li), li)).catch((li) => (triggerSubscriptions(oi, li), Promise.reject(li))) : (triggerSubscriptions(ni, ai), ai);
152
152
  };
153
- return Ke[ACTION_MARKER] = !0, Ke[ACTION_NAME] = Ye, Ke;
154
- }, Ue = {
153
+ return ti[ACTION_MARKER] = !0, ti[ACTION_NAME] = Ze, ti;
154
+ }, Xe = {
155
155
  _p: $e,
156
156
  // _s: scope,
157
157
  $id: Be,
158
158
  $onAction: addSubscription.bind(null, je),
159
159
  $patch: qe,
160
- $reset: Ze,
161
- $subscribe(Ge, Ye = {}) {
162
- const Ke = addSubscription(ze, Ge, Ye.detached, () => ei()), ei = De.run(() => watch(() => $e.state.value[Be], (ii) => {
163
- (Ye.flush === "sync" ? Ae : Ie) && Ge({
160
+ $reset: Ue,
161
+ $subscribe(Ge, Ze = {}) {
162
+ const ti = addSubscription(ze, Ge, Ze.detached, () => Je()), Je = De.run(() => watch(() => $e.state.value[Be], (ni) => {
163
+ (Ze.flush === "sync" ? Ae : Ie) && Ge({
164
164
  storeId: Be,
165
165
  type: MutationType.direct,
166
166
  events: Fe
167
- }, ii);
168
- }, assign({}, Re, Ye)));
169
- return Ke;
167
+ }, ni);
168
+ }, assign({}, Re, Ze)));
169
+ return ti;
170
170
  },
171
- $dispose: Xe
172
- }, Qe = reactive(Ue);
171
+ $dispose: Ye
172
+ }, Qe = reactive(Xe);
173
173
  $e._s.set(Be, Qe);
174
- const ti = ($e._a && $e._a.runWithContext || fallbackRunWithContext)(() => $e._e.run(() => (De = effectScope()).run(() => _e({ action: Je }))));
175
- for (const Ge in ti) {
176
- const Ye = ti[Ge];
177
- if (isRef(Ye) && !isComputed(Ye) || isReactive(Ye))
178
- Ve || (He && shouldHydrate(Ye) && (isRef(Ye) ? Ye.value = He[Ge] : mergeReactiveObjects(Ye, He[Ge])), $e.state.value[Be][Ge] = Ye);
179
- else if (typeof Ye == "function") {
180
- const Ke = Je(Ye, Ge);
181
- ti[Ge] = Ke, Le.actions[Ge] = Ye;
174
+ const ei = ($e._a && $e._a.runWithContext || fallbackRunWithContext)(() => $e._e.run(() => (De = effectScope()).run(() => _e({ action: Ke }))));
175
+ for (const Ge in ei) {
176
+ const Ze = ei[Ge];
177
+ if (isRef(Ze) && !isComputed(Ze) || isReactive(Ze))
178
+ Ve || (He && shouldHydrate(Ze) && (isRef(Ze) ? Ze.value = He[Ge] : mergeReactiveObjects(Ze, He[Ge])), $e.state.value[Be][Ge] = Ze);
179
+ else if (typeof Ze == "function") {
180
+ const ti = Ke(Ze, Ge);
181
+ ei[Ge] = ti, Le.actions[Ge] = Ze;
182
182
  }
183
183
  }
184
- return assign(Qe, ti), assign(toRaw(Qe), ti), Object.defineProperty(Qe, "$state", {
184
+ return assign(Qe, ei), assign(toRaw(Qe), ei), Object.defineProperty(Qe, "$state", {
185
185
  get: () => $e.state.value[Be],
186
186
  set: (Ge) => {
187
- qe((Ye) => {
188
- assign(Ye, Ge);
187
+ qe((Ze) => {
188
+ assign(Ze, Ge);
189
189
  });
190
190
  }
191
191
  }), $e._p.forEach((Ge) => {
@@ -227,10 +227,10 @@ function storeToRefs(Be) {
227
227
  return ke;
228
228
  }
229
229
  const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
230
- var We, qe, Ze, Xe, Je, Ue, Qe, ni;
231
- const Be = ref(), _e = ref("1"), ke = ref(), $e = ref(), Ne = (ti) => {
232
- var Ge, Ye, Ke;
233
- return ((Ke = (Ye = (Ge = ke.value) == null ? void 0 : Ge.meta) == null ? void 0 : Ye.find((ei) => (ei == null ? void 0 : ei.meta_key) === ti)) == null ? void 0 : Ke.meta_value) || "";
230
+ var We, qe, Ue, Ye, Ke, Xe, Qe, ii;
231
+ const Be = ref(), _e = ref("1"), ke = ref(), $e = ref(), Ne = (ei) => {
232
+ var Ge, Ze, ti;
233
+ return ((ti = (Ze = (Ge = ke.value) == null ? void 0 : Ge.meta) == null ? void 0 : Ze.find((Je) => (Je == null ? void 0 : Je.meta_key) === ei)) == null ? void 0 : ti.meta_value) || "";
234
234
  }, Ve = ref({
235
235
  PREVIEW_PATH_COLOR: Ne("path_color") || "rgba(255, 255, 255, 0.3)",
236
236
  PREVIEW_PATH_HOVER_COLOR: Ne("path_hover_color") || "rgba(250, 250, 250, 0.54)",
@@ -243,22 +243,22 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
243
243
  }), De = reactive({
244
244
  path: (We = Ve.value) == null ? void 0 : We.PREVIEW_PATH_COLOR,
245
245
  path_hover: (qe = Ve.value) == null ? void 0 : qe.PREVIEW_PATH_HOVER_COLOR,
246
- reserved: (Ze = Ve.value) == null ? void 0 : Ze.PREVIEW_RESERVED_COLOR,
247
- sold: (Xe = Ve.value) == null ? void 0 : Xe.PREVIEW_SOLD_COLOR,
248
- stroke_color: (Je = Ve.value) == null ? void 0 : Je.PREVIEW_STROKE_COLOR,
249
- primary_color: (Ue = Ve.value) == null ? void 0 : Ue.PREVIEW_PRIMARY_COLOR,
246
+ reserved: (Ue = Ve.value) == null ? void 0 : Ue.PREVIEW_RESERVED_COLOR,
247
+ sold: (Ye = Ve.value) == null ? void 0 : Ye.PREVIEW_SOLD_COLOR,
248
+ stroke_color: (Ke = Ve.value) == null ? void 0 : Ke.PREVIEW_STROKE_COLOR,
249
+ primary_color: (Xe = Ve.value) == null ? void 0 : Xe.PREVIEW_PRIMARY_COLOR,
250
250
  stroke_width: (Qe = Ve.value) == null ? void 0 : Qe.PREVIEW_STROKE_WIDTH,
251
- border_radius: (ni = Ve.value) == null ? void 0 : ni.PREVIEW_BORDER_RADIUS
251
+ border_radius: (ii = Ve.value) == null ? void 0 : ii.PREVIEW_BORDER_RADIUS
252
252
  }), Le = computed$1(() => {
253
- var ti;
254
- return (ti = ke.value) == null ? void 0 : ti.flats.map((Ge) => {
255
- var Ke, ei;
256
- const Ye = Ge != null && Ge.use_type || !(Ge != null && Ge.type) ? ((ei = (Ke = ke.value) == null ? void 0 : Ke.types) == null ? void 0 : ei.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: Ye };
253
+ var ei;
254
+ return (ei = ke.value) == null ? void 0 : ei.flats.map((Ge) => {
255
+ var ti, Je;
256
+ const Ze = Ge != null && Ge.use_type || !(Ge != null && Ge.type) ? ((Je = (ti = ke.value) == null ? void 0 : ti.types) == null ? void 0 : Je.find((ni) => ni.id === (Ge == null ? void 0 : Ge.type_id))) ?? (Ge == null ? void 0 : Ge.type) : Ge == null ? void 0 : Ge.type;
257
+ return { ...Ge, type: Ze };
258
258
  });
259
259
  }), Re = computed$1(() => Ne("open_reserved_flat") === "true"), Ie = computed$1(() => Ne("open_sold_flat") === "true"), Ae = computed$1(() => Ne("price_rounded") === "true"), ze = computed$1(() => {
260
- var ti;
261
- return (ti = $e.value) == null ? void 0 : ti.translations;
260
+ var ei;
261
+ return (ei = $e.value) == null ? void 0 : ei.translations;
262
262
  }), je = computed$1(() => ({
263
263
  "--reserved-color": De.reserved,
264
264
  "--sold-color": De.sold,
@@ -268,19 +268,19 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
268
268
  "--primary-color": De.primary_color,
269
269
  "--stroke-width": De.stroke_width + "px",
270
270
  "--border-radius": De.border_radius + "px"
271
- })), Fe = (ti) => {
272
- ke.value = ti;
273
- }, He = (ti) => {
274
- $e.value = ti;
271
+ })), Fe = (ei) => {
272
+ ke.value = ei;
273
+ }, He = (ei) => {
274
+ $e.value = ei;
275
275
  };
276
276
  return watch(
277
277
  () => {
278
- var ti;
279
- return (ti = ke.value) == null ? void 0 : ti.meta;
278
+ var ei;
279
+ return (ei = ke.value) == null ? void 0 : ei.meta;
280
280
  },
281
281
  () => {
282
- const ti = Ne("path_color"), Ge = Ne("path_hover_color"), Ye = Ne("reserved_color"), Ke = Ne("sold_color"), ei = Ne("stroke_color"), ii = Ne("primary_color"), oi = Ne("stroke_width"), ri = Ne("border_radius");
283
- ti && (De.path = ti.toString()), Ge && (De.path_hover = Ge.toString()), Ye && (De.reserved = Ye.toString()), Ke && (De.sold = Ke.toString()), ei && (De.stroke_color = ei.toString()), ei && (De.stroke_color = ei.toString()), ii && (De.primary_color = ii.toString()), De.stroke_width = Number(oi) || 1, De.border_radius = Number(ri) || 0;
282
+ const ei = Ne("path_color"), Ge = Ne("path_hover_color"), Ze = Ne("reserved_color"), ti = Ne("sold_color"), Je = Ne("stroke_color"), ni = Ne("primary_color"), oi = Ne("stroke_width"), ri = Ne("border_radius");
283
+ ei && (De.path = ei.toString()), Ge && (De.path_hover = Ge.toString()), Ze && (De.reserved = Ze.toString()), ti && (De.sold = ti.toString()), Je && (De.stroke_color = Je.toString()), Je && (De.stroke_color = Je.toString()), ni && (De.primary_color = ni.toString()), De.stroke_width = Number(oi) || 1, De.border_radius = Number(ri) || 0;
284
284
  },
285
285
  { deep: !0 }
286
286
  ), {
@@ -607,10 +607,10 @@ const tr = (Be) => {
607
607
  }, _hoisted_7$7 = {
608
608
  key: 0,
609
609
  class: "irep-tooltip-1__floor-conf !ire-text-2xl"
610
- }, _hoisted_8$6 = { key: 1 }, _hoisted_9$6 = {
610
+ }, _hoisted_8$5 = { key: 1 }, _hoisted_9$5 = {
611
611
  key: 0,
612
612
  class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
613
- }, _hoisted_10$6 = { class: "irep-tooltip-1__floor-status-value ire-min-w-3 !ire-text-2xl" }, _hoisted_11$3 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_12$3 = {
613
+ }, _hoisted_10$5 = { class: "irep-tooltip-1__floor-status-value ire-min-w-3 !ire-text-2xl" }, _hoisted_11$3 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_12$3 = {
614
614
  key: 1,
615
615
  class: "irep-tooltip-1__floor-status ire-flex ire-items-center ire-gap-2"
616
616
  }, _hoisted_13$2 = { class: "irep-tooltip-1__floor-status-value min-w-3 !ire-text-2xl" }, _hoisted_14$1 = { class: "irep-tooltip-1__floor-status-text !ire-text-sm ire-uppercase" }, _hoisted_15$1 = {
@@ -645,7 +645,7 @@ const tr = (Be) => {
645
645
  return ($e, Ne) => (openBlock(), createElementBlock("div", null, [
646
646
  createVNode(Transition, { name: "ire-fade-in-out" }, {
647
647
  default: withCtx(() => {
648
- var Ve, De, Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ze, Xe, Je, Ue, Qe, ni, ti, Ge, Ye, Ke, ei, ii, oi;
648
+ var Ve, De, Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ye, Ke, Xe, Qe, ii, ei, Ge, Ze, ti, Je, ni, oi;
649
649
  return [
650
650
  Be.type && Be.hoveredData && Be.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
651
651
  Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$n, [
@@ -654,17 +654,17 @@ const tr = (Be) => {
654
654
  createElementVNode("div", _hoisted_5$b, toDisplayString(unref(tr)("floor")), 1)
655
655
  ]),
656
656
  (De = Be.hoveredData) != null && De.conf || (Re = (Le = Be.hoveredData) == null ? void 0 : Le.flats) != null && Re.length ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
657
- ke.value ? (openBlock(), createElementBlock("div", _hoisted_7$7, toDisplayString(ke.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_8$6, [
658
- (Ae = (Ie = Be.hoveredData) == null ? void 0 : Ie.counts) != null && Ae.available ? (openBlock(), createElementBlock("div", _hoisted_9$6, [
659
- createElementVNode("div", _hoisted_10$6, toDisplayString(((je = (ze = Be.hoveredData) == null ? void 0 : ze.counts) == null ? void 0 : je.available) || 0), 1),
657
+ ke.value ? (openBlock(), createElementBlock("div", _hoisted_7$7, toDisplayString(ke.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_8$5, [
658
+ (Ae = (Ie = Be.hoveredData) == null ? void 0 : Ie.counts) != null && Ae.available ? (openBlock(), createElementBlock("div", _hoisted_9$5, [
659
+ createElementVNode("div", _hoisted_10$5, toDisplayString(((je = (ze = Be.hoveredData) == null ? void 0 : ze.counts) == null ? void 0 : je.available) || 0), 1),
660
660
  createElementVNode("div", _hoisted_11$3, toDisplayString(unref(tr)("available")), 1)
661
661
  ])) : createCommentVNode("", !0),
662
662
  (He = (Fe = Be.hoveredData) == null ? void 0 : Fe.counts) != null && He.reserved ? (openBlock(), createElementBlock("div", _hoisted_12$3, [
663
663
  createElementVNode("div", _hoisted_13$2, toDisplayString((qe = (We = Be.hoveredData) == null ? void 0 : We.counts) == null ? void 0 : qe.reserved), 1),
664
664
  createElementVNode("div", _hoisted_14$1, toDisplayString(unref(tr)("reserved")), 1)
665
665
  ])) : createCommentVNode("", !0),
666
- (Xe = (Ze = Be.hoveredData) == null ? void 0 : Ze.counts) != null && Xe.sold ? (openBlock(), createElementBlock("div", _hoisted_15$1, [
667
- createElementVNode("div", _hoisted_16$1, toDisplayString((Ue = (Je = Be.hoveredData) == null ? void 0 : Je.counts) == null ? void 0 : Ue.sold), 1),
666
+ (Ye = (Ue = Be.hoveredData) == null ? void 0 : Ue.counts) != null && Ye.sold ? (openBlock(), createElementBlock("div", _hoisted_15$1, [
667
+ createElementVNode("div", _hoisted_16$1, toDisplayString((Xe = (Ke = Be.hoveredData) == null ? void 0 : Ke.counts) == null ? void 0 : Xe.sold), 1),
668
668
  createElementVNode("div", _hoisted_17$1, toDisplayString(unref(tr)("sold")), 1)
669
669
  ])) : createCommentVNode("", !0)
670
670
  ]))
@@ -676,21 +676,21 @@ const tr = (Be) => {
676
676
  ])
677
677
  ])) : Be.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_22$1, [
678
678
  createElementVNode("div", _hoisted_23$1, [
679
- createElementVNode("div", _hoisted_24$1, toDisplayString((ni = Be.hoveredData) == null ? void 0 : ni.flat_number), 1),
679
+ createElementVNode("div", _hoisted_24$1, toDisplayString((ii = Be.hoveredData) == null ? void 0 : ii.flat_number), 1),
680
680
  createElementVNode("div", _hoisted_25$1, toDisplayString(unref(tr)("apartment")), 1)
681
681
  ]),
682
682
  createElementVNode("div", _hoisted_26$1, [
683
683
  ke.value ? (openBlock(), createElementBlock("div", _hoisted_27$1, toDisplayString(ke.value), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
684
684
  createElementVNode("div", _hoisted_28$1, toDisplayString(unref(tr)("price")), 1),
685
- (ti = Be.hoveredData) != null && ti.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, [
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, [
686
686
  createElementVNode("div", null, [
687
- (Ye = Be.hoveredData) != null && Ye.offer_price ? (openBlock(), createElementBlock("div", _hoisted_32$1, [
687
+ (Ze = Be.hoveredData) != null && Ze.offer_price ? (openBlock(), createElementBlock("div", _hoisted_32$1, [
688
688
  createElementVNode("div", _hoisted_33$1, [
689
- createTextVNode(toDisplayString(unref(getPrice)((Ke = Be.hoveredData) == null ? void 0 : Ke.price)) + " ", 1),
689
+ createTextVNode(toDisplayString(unref(getPrice)((ti = Be.hoveredData) == null ? void 0 : ti.price)) + " ", 1),
690
690
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
691
691
  ]),
692
692
  createElementVNode("div", _hoisted_34$1, [
693
- createTextVNode(toDisplayString(unref(getPrice)((ei = Be.hoveredData) == null ? void 0 : ei.offer_price)) + " ", 1),
693
+ createTextVNode(toDisplayString(unref(getPrice)((Je = Be.hoveredData) == null ? void 0 : Je.offer_price)) + " ", 1),
694
694
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
695
695
  ])
696
696
  ])) : (openBlock(), createElementBlock("div", _hoisted_31$1, [
@@ -702,7 +702,7 @@ const tr = (Be) => {
702
702
  ], 64))
703
703
  ]),
704
704
  createElementVNode("div", _hoisted_35$1, [
705
- createElementVNode("div", _hoisted_36$1, toDisplayString(unref(getArea)(+((oi = (ii = Be.hoveredData) == null ? void 0 : ii.type) == null ? void 0 : oi.area_m2))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + "² ", 1)
705
+ createElementVNode("div", _hoisted_36$1, toDisplayString(unref(getArea)(+((oi = (ni = Be.hoveredData) == null ? void 0 : ni.type) == null ? void 0 : oi.area_m2))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + "² ", 1)
706
706
  ])
707
707
  ])) : createCommentVNode("", !0)
708
708
  ])) : createCommentVNode("", !0)
@@ -787,7 +787,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
787
787
  }, _hoisted_2$m = { class: "ire-flex ire-w-full ire-items-center ire-justify-evenly ire-p-4" }, _hoisted_3$k = { class: "irep-tooltip-2__floor-number ire-text-3xl ire-capitalize" }, _hoisted_4$e = {
788
788
  key: 0,
789
789
  class: "irep-tooltip-2__floor-conf ire-text-2xl ire-uppercase"
790
- }, _hoisted_5$a = { key: 1 }, _hoisted_6$7 = { class: "irep-tooltip-2__floor-starting ire-text-sm ire-text-gray-400" }, _hoisted_7$6 = { class: "irep-tooltip-2__floor-price" }, _hoisted_8$5 = { class: "ire-right-[2px] ire-text-gray-200" }, _hoisted_9$5 = { class: "ire-flex ire-items-center ire-justify-between ire-gap-2 ire-bg-gray-800 ire-p-2" }, _hoisted_10$5 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_11$2 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_12$2 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_13$1 = {
790
+ }, _hoisted_5$a = { 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$4 = { class: "ire-right-[2px] ire-text-gray-200" }, _hoisted_9$4 = { class: "ire-flex ire-items-center ire-justify-between ire-gap-2 ire-bg-gray-800 ire-p-2" }, _hoisted_10$4 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_11$2 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_12$2 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_13$1 = {
791
791
  key: 1,
792
792
  class: "irep-tooltip-2__block ire-flex ire-items-center ire-gap-3 ire-p-4 !ire-text-sm"
793
793
  }, _hoisted_14 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_15 = { class: "irep-tooltip-2__block-title" }, _hoisted_16 = { class: "irep-tooltip-2__block-conf ire-text-gray-300 ire-opacity-80" }, _hoisted_17 = {
@@ -821,7 +821,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
821
821
  return tr((Ve = _e.hoveredData) == null ? void 0 : Ve.conf);
822
822
  });
823
823
  return (Ve, De) => {
824
- var Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ze, Xe, Je, Ue, Qe, ni, ti, Ge, Ye, Ke, ei, ii, oi, ri, si, ai, li, ui, ci, di, hi, fi;
824
+ var Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ye, Ke, Xe, Qe, ii, ei, Ge, Ze, ti, Je, ni, oi, ri, si, ai, li, di, ci, ui, hi, fi;
825
825
  return Be.type && Be.hoveredData && Be.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
826
826
  key: 0,
827
827
  class: normalizeClass(["ire-pointer-events-none ire-absolute ire-select-none", {
@@ -845,12 +845,12 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
845
845
  createElementVNode("div", _hoisted_6$7, toDisplayString(unref(tr)("starting from")) + ": ", 1),
846
846
  createElementVNode("div", _hoisted_7$6, [
847
847
  createTextVNode(toDisplayString(unref(getPrice)(+((Ie = (Re = Be.hoveredData) == null ? void 0 : Re.counts) == null ? void 0 : Ie.minimum_price) || 0)) + " ", 1),
848
- createElementVNode("span", _hoisted_8$5, toDisplayString(unref(currencySymbol)()), 1)
848
+ createElementVNode("span", _hoisted_8$4, toDisplayString(unref(currencySymbol)()), 1)
849
849
  ])
850
850
  ]))
851
851
  ]),
852
- createElementVNode("div", _hoisted_9$5, [
853
- createElementVNode("div", _hoisted_10$5, [
852
+ createElementVNode("div", _hoisted_9$4, [
853
+ createElementVNode("div", _hoisted_10$4, [
854
854
  createElementVNode("span", null, toDisplayString(Ne.value ? 0 : ((ze = (Ae = Be.hoveredData) == null ? void 0 : Ae.counts) == null ? void 0 : ze.available) || 0), 1),
855
855
  createTextVNode(" " + toDisplayString(unref(tr)("available")), 1)
856
856
  ]),
@@ -861,13 +861,13 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
861
861
  ]),
862
862
  De[2] || (De[2] = createElementVNode("span", null, "•", -1)),
863
863
  createElementVNode("div", _hoisted_12$2, [
864
- createElementVNode("span", null, toDisplayString(Ne.value === "reserved" ? ((Ze = (qe = Be.hoveredData) == null ? void 0 : qe.flats) == null ? void 0 : Ze.length) || 0 : ((Je = (Xe = Be.hoveredData) == null ? void 0 : Xe.counts) == null ? void 0 : Je.reserved) || 0), 1),
864
+ createElementVNode("span", null, toDisplayString(Ne.value === "reserved" ? ((Ue = (qe = Be.hoveredData) == null ? void 0 : qe.flats) == null ? void 0 : Ue.length) || 0 : ((Ke = (Ye = Be.hoveredData) == null ? void 0 : Ye.counts) == null ? void 0 : Ke.reserved) || 0), 1),
865
865
  createTextVNode(" " + toDisplayString(unref(tr)("reserved")), 1)
866
866
  ])
867
867
  ])
868
868
  ])) : Be.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
869
869
  createElementVNode("div", _hoisted_14, [
870
- createElementVNode("div", _hoisted_15, toDisplayString((Ue = Be.hoveredData) == null ? void 0 : Ue.title), 1),
870
+ createElementVNode("div", _hoisted_15, toDisplayString((Xe = Be.hoveredData) == null ? void 0 : Xe.title), 1),
871
871
  createElementVNode("span", _hoisted_16, toDisplayString(Ne.value), 1)
872
872
  ])
873
873
  ])) : Be.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_17, [
@@ -878,23 +878,23 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
878
878
  createElementVNode("div", _hoisted_22, [
879
879
  createVNode(MoneyBag, { class: "ire-size-5 [&_path]:ire-stroke-white" })
880
880
  ]),
881
- Ne.value ? (openBlock(), createElementBlock("div", _hoisted_23, toDisplayString(Ne.value), 1)) : (ni = Be.hoveredData) != null && ni.request_price ? (openBlock(), createElementBlock("div", _hoisted_24, toDisplayString(unref(tr)("Request Price")), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
881
+ Ne.value ? (openBlock(), createElementBlock("div", _hoisted_23, toDisplayString(Ne.value), 1)) : (ii = Be.hoveredData) != null && ii.request_price ? (openBlock(), createElementBlock("div", _hoisted_24, toDisplayString(unref(tr)("Request Price")), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
882
882
  Be.hoveredData.offer_price ? (openBlock(), createElementBlock("div", _hoisted_25, [
883
883
  createElementVNode("div", _hoisted_26, [
884
- createTextVNode(toDisplayString(unref(getPrice)(+((ti = Be.hoveredData) == null ? void 0 : ti.price))) + " ", 1),
884
+ createTextVNode(toDisplayString(unref(getPrice)(+((ei = Be.hoveredData) == null ? void 0 : ei.price))) + " ", 1),
885
885
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
886
886
  ]),
887
887
  createElementVNode("div", _hoisted_27, [
888
888
  createTextVNode(toDisplayString(unref(getPrice)(+((Ge = Be.hoveredData) == null ? void 0 : Ge.offer_price))) + " ", 1),
889
889
  createElementVNode("span", _hoisted_28, toDisplayString(unref(currencySymbol)()), 1)
890
890
  ])
891
- ])) : (Ye = Be.hoveredData) != null && Ye.price ? (openBlock(), createElementBlock("div", _hoisted_29, [
892
- createTextVNode(toDisplayString(unref(getPrice)(+((Ke = Be.hoveredData) == null ? void 0 : Ke.price))) + " ", 1),
891
+ ])) : (Ze = Be.hoveredData) != null && Ze.price ? (openBlock(), createElementBlock("div", _hoisted_29, [
892
+ createTextVNode(toDisplayString(unref(getPrice)(+((ti = Be.hoveredData) == null ? void 0 : ti.price))) + " ", 1),
893
893
  createElementVNode("span", _hoisted_30, toDisplayString(unref(currencySymbol)()), 1)
894
894
  ])) : createCommentVNode("", !0)
895
895
  ], 64))
896
896
  ]),
897
- unref(getArea)(+((ii = (ei = Be.hoveredData) == null ? void 0 : ei.type) == null ? void 0 : ii.area_m2)) && +unref(getArea)(+((ri = (oi = Be.hoveredData) == null ? void 0 : oi.type) == null ? void 0 : ri.area_m2)) > 0 ? (openBlock(), createElementBlock("div", _hoisted_31, [
897
+ unref(getArea)(+((ni = (Je = Be.hoveredData) == null ? void 0 : Je.type) == null ? void 0 : ni.area_m2)) && +unref(getArea)(+((ri = (oi = Be.hoveredData) == null ? void 0 : oi.type) == null ? void 0 : ri.area_m2)) > 0 ? (openBlock(), createElementBlock("div", _hoisted_31, [
898
898
  createElementVNode("div", _hoisted_32, [
899
899
  createVNode(FlatIcon, { class: "ire-size-5 [&_path]:ire-stroke-white" })
900
900
  ]),
@@ -902,11 +902,11 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
902
902
  createElementVNode("span", _hoisted_34, toDisplayString(unref(getArea)(+((ai = (si = Be.hoveredData) == null ? void 0 : si.type) == null ? void 0 : ai.area_m2))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + "² ", 1)
903
903
  ])
904
904
  ])) : createCommentVNode("", !0),
905
- (ui = (li = Be.hoveredData) == null ? void 0 : li.type) != null && ui.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_35, [
905
+ (di = (li = Be.hoveredData) == null ? void 0 : li.type) != null && di.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_35, [
906
906
  createElementVNode("div", _hoisted_36, [
907
907
  createVNode(Cube3d, { class: "ire-size-5 [&_path]:ire-stroke-white" })
908
908
  ]),
909
- (di = (ci = Be.hoveredData) == null ? void 0 : ci.type) != null && di.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_37, toDisplayString(unref(tr)("room")) + ": " + toDisplayString((fi = (hi = Be.hoveredData) == null ? void 0 : hi.type) == null ? void 0 : fi.rooms_count), 1)) : createCommentVNode("", !0)
909
+ (ui = (ci = Be.hoveredData) == null ? void 0 : ci.type) != null && ui.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_37, toDisplayString(unref(tr)("room")) + ": " + toDisplayString((fi = (hi = Be.hoveredData) == null ? void 0 : hi.type) == null ? void 0 : fi.rooms_count), 1)) : createCommentVNode("", !0)
910
910
  ])) : createCommentVNode("", !0)
911
911
  ])
912
912
  ])
@@ -921,10 +921,10 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
921
921
  }, _hoisted_3$j = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$d = { class: "irep-tooltip-3__floor-number !ire-text-2xl" }, _hoisted_5$9 = { class: "irep-tooltip-3__floor-text !ire-text-sm ire-uppercase" }, _hoisted_6$6 = {
922
922
  key: 1,
923
923
  class: "irep-tooltip-3__block ire-flex ire-items-center ire-gap-3"
924
- }, _hoisted_7$5 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_8$4 = { class: "irep-tooltip-3__block-title !text-2xl" }, _hoisted_9$4 = {
924
+ }, _hoisted_7$5 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_8$3 = { class: "irep-tooltip-3__block-title !text-2xl" }, _hoisted_9$3 = {
925
925
  key: 2,
926
926
  class: "irep-tooltip-3__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
927
- }, _hoisted_10$4 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_11$1 = { class: "irep-tooltip-3__flat-number ire-max-w-52 ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_12$1 = { class: "irep-tooltip-3__flat-text !ire-mt-2 ire-text-sm ire-uppercase" }, _sfc_main$F = /* @__PURE__ */ defineComponent({
927
+ }, _hoisted_10$3 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_11$1 = { class: "irep-tooltip-3__flat-number ire-max-w-52 ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_12$1 = { class: "irep-tooltip-3__flat-text !ire-mt-2 ire-text-sm ire-uppercase" }, _sfc_main$F = /* @__PURE__ */ defineComponent({
928
928
  __name: "Tooltip_3",
929
929
  props: {
930
930
  hoveredData: {},
@@ -949,10 +949,10 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
949
949
  ])
950
950
  ])) : Be.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_6$6, [
951
951
  createElementVNode("div", _hoisted_7$5, [
952
- createElementVNode("div", _hoisted_8$4, toDisplayString((De = Be.hoveredData) == null ? void 0 : De.title), 1)
952
+ createElementVNode("div", _hoisted_8$3, toDisplayString((De = Be.hoveredData) == null ? void 0 : De.title), 1)
953
953
  ])
954
- ])) : Be.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_9$4, [
955
- createElementVNode("div", _hoisted_10$4, [
954
+ ])) : Be.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
955
+ createElementVNode("div", _hoisted_10$3, [
956
956
  createElementVNode("div", _hoisted_11$1, toDisplayString((Le = Be.hoveredData) == null ? void 0 : Le.flat_number), 1),
957
957
  createElementVNode("div", _hoisted_12$1, toDisplayString(unref(tr)("apartment")), 1)
958
958
  ])
@@ -1035,35 +1035,35 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
1035
1035
  if ($e.project)
1036
1036
  return $e.project.svg;
1037
1037
  }), Fe = (qe) => {
1038
- const Ze = qe == null ? void 0 : qe.target;
1039
- Ze && (Ie.value = Ze);
1038
+ const Ue = qe == null ? void 0 : qe.target;
1039
+ Ue && (Ie.value = Ue);
1040
1040
  }, He = () => {
1041
- var Ze;
1041
+ var Ue;
1042
1042
  if (!Re.value) return;
1043
- ((Ze = Re.value) == null ? void 0 : Ze.querySelectorAll("g")).forEach((Xe) => {
1044
- var ni, ti, Ge, Ye, Ke;
1045
- const Je = Xe == null ? void 0 : Xe.getAttribute("id"), Ue = (ti = (ni = $e.project) == null ? void 0 : ni.polygon_data) == null ? void 0 : ti.find(
1046
- (ei) => (ei == null ? void 0 : ei.key) === Je
1047
- ), Qe = Ue == null ? void 0 : Ue.id;
1048
- switch (Ue == null ? void 0 : Ue.type) {
1043
+ ((Ue = Re.value) == null ? void 0 : Ue.querySelectorAll("g")).forEach((Ye) => {
1044
+ var ii, ei, Ge, Ze, ti;
1045
+ const Ke = Ye == null ? void 0 : Ye.getAttribute("id"), Xe = (ei = (ii = $e.project) == null ? void 0 : ii.polygon_data) == null ? void 0 : ei.find(
1046
+ (Je) => (Je == null ? void 0 : Je.key) === Ke
1047
+ ), Qe = Xe == null ? void 0 : Xe.id;
1048
+ switch (Xe == null ? void 0 : Xe.type) {
1049
1049
  case "block":
1050
- const ei = (Ge = $e.blocks) == null ? void 0 : Ge.find((ri) => ri.id === Qe);
1051
- Xe.setAttribute("conf", (ei == null ? void 0 : ei.conf) || "");
1050
+ const Je = (Ge = $e.blocks) == null ? void 0 : Ge.find((ri) => ri.id === Qe);
1051
+ Ye.setAttribute("conf", (Je == null ? void 0 : Je.conf) || "");
1052
1052
  break;
1053
1053
  case "floor":
1054
- const ii = (Ye = $e.floors) == null ? void 0 : Ye.find((ri) => ri.id === Qe);
1055
- Xe.setAttribute("conf", (ii == null ? void 0 : ii.conf) || "");
1054
+ const ni = (Ze = $e.floors) == null ? void 0 : Ze.find((ri) => ri.id === Qe);
1055
+ Ye.setAttribute("conf", (ni == null ? void 0 : ni.conf) || "");
1056
1056
  break;
1057
1057
  case "flat":
1058
- const oi = (Ke = $e.flats) == null ? void 0 : Ke.find((ri) => ri.id === Qe);
1059
- Xe.setAttribute("conf", (oi == null ? void 0 : oi.conf) || "");
1058
+ const oi = (ti = $e.flats) == null ? void 0 : ti.find((ri) => ri.id === Qe);
1059
+ Ye.setAttribute("conf", (oi == null ? void 0 : oi.conf) || "");
1060
1060
  break;
1061
1061
  }
1062
1062
  });
1063
1063
  }, We = (qe) => {
1064
- var Xe, Je, Ue;
1065
- const Ze = qe.target;
1066
- (Ze == null ? void 0 : Ze.nodeName) === "path" && (((Xe = Ae.value) == null ? void 0 : Xe.conf) === "reserved" && !De.value || ((Je = Ae.value) == null ? void 0 : Je.conf) === "sold" && !Le.value || ke("changeComponent", ((Ue = ze.value) == null ? void 0 : Ue.type) || "", Ae == null ? void 0 : Ae.value));
1064
+ var Ye, Ke, Xe;
1065
+ const Ue = qe.target;
1066
+ (Ue == null ? void 0 : Ue.nodeName) === "path" && (((Ye = Ae.value) == null ? void 0 : Ye.conf) === "reserved" && !De.value || ((Ke = Ae.value) == null ? void 0 : Ke.conf) === "sold" && !Le.value || ke("changeComponent", ((Xe = ze.value) == null ? void 0 : Xe.type) || "", Ae == null ? void 0 : Ae.value));
1067
1067
  };
1068
1068
  return watch(
1069
1069
  () => Ne == null ? void 0 : Ne.value,
@@ -1073,36 +1073,36 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
1073
1073
  ), watch(
1074
1074
  () => Ie.value,
1075
1075
  (qe) => {
1076
- var Xe, Je, Ue, Qe, ni, ti, Ge;
1076
+ var Ye, Ke, Xe, Qe, ii, ei, Ge;
1077
1077
  if (!qe) return;
1078
1078
  Ve.hoverdSvg = qe;
1079
- const Ze = qe.parentElement;
1080
- if (Ze && (Ze == null ? void 0 : Ze.nodeName) === "g") {
1081
- const Ye = Ze == null ? void 0 : Ze.getAttribute("id");
1082
- if (!Ye || (ze.value = ((Xe = $e.project) == null ? void 0 : Xe.polygon_data.find((ei) => (ei == null ? void 0 : ei.key) === Ye)) || null, !ze.value)) return;
1083
- const Ke = (Je = ze.value) == null ? void 0 : Je.id;
1084
- switch ((Ue = ze.value) == null ? void 0 : Ue.type) {
1079
+ const Ue = qe.parentElement;
1080
+ if (Ue && (Ue == null ? void 0 : Ue.nodeName) === "g") {
1081
+ const Ze = Ue == null ? void 0 : Ue.getAttribute("id");
1082
+ if (!Ze || (ze.value = ((Ye = $e.project) == null ? void 0 : Ye.polygon_data.find((Je) => (Je == null ? void 0 : Je.key) === Ze)) || null, !ze.value)) return;
1083
+ const ti = (Ke = ze.value) == null ? void 0 : Ke.id;
1084
+ switch ((Xe = ze.value) == null ? void 0 : Xe.type) {
1085
1085
  case "floor":
1086
- const ei = (Qe = $e.floors) == null ? void 0 : Qe.find(
1087
- (si) => si.id === Ke
1086
+ const Je = (Qe = $e.floors) == null ? void 0 : Qe.find(
1087
+ (si) => si.id === ti
1088
1088
  );
1089
- Ae.value = ei;
1089
+ Ae.value = Je;
1090
1090
  break;
1091
1091
  case "block":
1092
- const ii = (ni = $e.blocks) == null ? void 0 : ni.find(
1093
- (si) => (si == null ? void 0 : si.id) === Ke
1092
+ const ni = (ii = $e.blocks) == null ? void 0 : ii.find(
1093
+ (si) => (si == null ? void 0 : si.id) === ti
1094
1094
  );
1095
- Ae.value = ii;
1095
+ Ae.value = ni;
1096
1096
  break;
1097
1097
  case "flat":
1098
- const oi = (ti = $e.flats) == null ? void 0 : ti.find(
1099
- (si) => (si == null ? void 0 : si.id) === Ke
1098
+ const oi = (ei = $e.flats) == null ? void 0 : ei.find(
1099
+ (si) => (si == null ? void 0 : si.id) === ti
1100
1100
  );
1101
1101
  Ae.value = oi;
1102
1102
  break;
1103
1103
  case "tooltip":
1104
1104
  const ri = (Ge = $e.actions) == null ? void 0 : Ge.find(
1105
- (si) => (si == null ? void 0 : si.id) === Ke
1105
+ (si) => (si == null ? void 0 : si.id) === ti
1106
1106
  );
1107
1107
  Ae.value = ri;
1108
1108
  break;
@@ -1117,18 +1117,18 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
1117
1117
  document.addEventListener("mousemove", Fe), He();
1118
1118
  }), onUnmounted(() => {
1119
1119
  document.removeEventListener("mousemove", Fe);
1120
- }), (qe, Ze) => {
1121
- var Xe;
1120
+ }), (qe, Ue) => {
1121
+ var Ye;
1122
1122
  return openBlock(), createBlock(_sfc_main$E, {
1123
1123
  hoverdData: Ae.value,
1124
- type: (Xe = ze.value) == null ? void 0 : Xe.type
1124
+ type: (Ye = ze.value) == null ? void 0 : Ye.type
1125
1125
  }, {
1126
1126
  default: withCtx(() => {
1127
- var Je, Ue, Qe;
1127
+ var Ke, Xe, Qe;
1128
1128
  return [
1129
1129
  createElementVNode("div", _hoisted_1$z, [
1130
1130
  createElementVNode("img", {
1131
- src: (Qe = (Ue = (Je = Be.project) == null ? void 0 : Je.project_image) == null ? void 0 : Ue[0]) == null ? void 0 : Qe.url,
1131
+ src: (Qe = (Xe = (Ke = Be.project) == null ? void 0 : Ke.project_image) == null ? void 0 : Xe[0]) == null ? void 0 : Qe.url,
1132
1132
  alt: "",
1133
1133
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
1134
1134
  }, null, 8, _hoisted_2$k),
@@ -1222,81 +1222,81 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
1222
1222
  emits: ["changeComponent"],
1223
1223
  setup(Be, { emit: _e }) {
1224
1224
  const ke = _e, $e = Be, Ne = inject("showFlatModal"), Ve = useGlobalStore(), { openReservedFlat: De, openSoldFlat: Le } = storeToRefs(Ve), Re = ref(), Ie = ref(null), Ae = ref(), ze = ref(null), je = ref(), Fe = ref(), He = computed$1(() => {
1225
- var Ue;
1226
- if ((Ue = $e.floor) != null && Ue.svg)
1225
+ var Xe;
1226
+ if ((Xe = $e.floor) != null && Xe.svg)
1227
1227
  return $e.floor.svg;
1228
1228
  }), We = computed$1(() => $e.floors.filter(
1229
- (Ue) => {
1230
- var Qe, ni;
1229
+ (Xe) => {
1230
+ var Qe, ii;
1231
1231
  return (
1232
1232
  // floorItem.conf !== "reserved" &&
1233
1233
  // floorItem.conf !== "sold" &&
1234
- (Qe = $e.floor) != null && Qe.block_id ? (Ue == null ? void 0 : Ue.block_id) === ((ni = $e.floor) == null ? void 0 : ni.block_id) : !(Ue != null && Ue.block_id)
1234
+ (Qe = $e.floor) != null && Qe.block_id ? (Xe == null ? void 0 : Xe.block_id) === ((ii = $e.floor) == null ? void 0 : ii.block_id) : !(Xe != null && Xe.block_id)
1235
1235
  );
1236
1236
  }
1237
- ).map((Ue) => {
1238
- var ni, ti;
1239
- const Qe = (ni = $e.blocks) == null ? void 0 : ni.find(
1237
+ ).map((Xe) => {
1238
+ var ii, ei;
1239
+ const Qe = (ii = $e.blocks) == null ? void 0 : ii.find(
1240
1240
  (Ge) => {
1241
- var Ye;
1242
- return (Ge == null ? void 0 : Ge.id) === ((Ye = Ue == null ? void 0 : Ue.block_id) == null ? void 0 : Ye.toString());
1241
+ var Ze;
1242
+ return (Ge == null ? void 0 : Ge.id) === ((Ze = Xe == null ? void 0 : Xe.block_id) == null ? void 0 : Ze.toString());
1243
1243
  }
1244
1244
  );
1245
1245
  return {
1246
- title: ((ti = Ue == null ? void 0 : Ue.floor_number) == null ? void 0 : ti.toString()) + ` ${tr("floor")} ` + (Qe != null && Qe.id ? ` - ${Qe == null ? void 0 : Qe.title}` : "") + (Ue != null && Ue.conf ? " " + Ue.conf : ""),
1247
- value: Ue == null ? void 0 : Ue.id
1246
+ title: ((ei = Xe == null ? void 0 : Xe.floor_number) == null ? void 0 : ei.toString()) + ` ${tr("floor")} ` + (Qe != null && Qe.id ? ` - ${Qe == null ? void 0 : Qe.title}` : "") + (Xe != null && Xe.conf ? " " + Xe.conf : ""),
1247
+ value: Xe == null ? void 0 : Xe.id
1248
1248
  };
1249
- }).sort((Ue, Qe) => Ue.title.localeCompare(Qe.title)) || []), qe = (Ue) => {
1250
- const Qe = Ue.target;
1249
+ }).sort((Xe, Qe) => Xe.title.localeCompare(Qe.title)) || []), qe = (Xe) => {
1250
+ const Qe = Xe.target;
1251
1251
  Qe && (Ie.value = Qe);
1252
- }, Ze = (Ue) => {
1253
- var ni, ti, Ge;
1254
- const Qe = Ue.target;
1255
- (Qe == null ? void 0 : Qe.nodeName) === "path" && (ze.value && "conf" in ze.value && (((ni = ze.value) == null ? void 0 : ni.conf) === "reserved" && !De.value || ((ti = ze.value) == null ? void 0 : ti.conf) === "sold" && !Le.value) || ke("changeComponent", ((Ge = Ae.value) == null ? void 0 : Ge.type) || "", ze.value));
1256
- }, Xe = () => {
1257
- var Ue;
1258
- Re.value && ((Ue = Re.value) == null ? void 0 : Ue.querySelectorAll("g")).forEach((ni) => {
1259
- var Ye, Ke, ei, ii, oi, ri;
1260
- const ti = ni == null ? void 0 : ni.getAttribute("id"), Ge = (Ke = (Ye = $e.floor) == null ? void 0 : Ye.polygon_data) == null ? void 0 : Ke.find(
1261
- (si) => (si == null ? void 0 : si.key) === ti
1252
+ }, Ue = (Xe) => {
1253
+ var ii, ei, Ge;
1254
+ const Qe = Xe.target;
1255
+ (Qe == null ? void 0 : Qe.nodeName) === "path" && (ze.value && "conf" in ze.value && (((ii = ze.value) == null ? void 0 : ii.conf) === "reserved" && !De.value || ((ei = ze.value) == null ? void 0 : ei.conf) === "sold" && !Le.value) || ke("changeComponent", ((Ge = Ae.value) == null ? void 0 : Ge.type) || "", ze.value));
1256
+ }, Ye = () => {
1257
+ var Xe;
1258
+ Re.value && ((Xe = Re.value) == null ? void 0 : Xe.querySelectorAll("g")).forEach((ii) => {
1259
+ var Ze, ti, Je, ni, oi, ri;
1260
+ const ei = ii == null ? void 0 : ii.getAttribute("id"), Ge = (ti = (Ze = $e.floor) == null ? void 0 : Ze.polygon_data) == null ? void 0 : ti.find(
1261
+ (si) => (si == null ? void 0 : si.key) === ei
1262
1262
  );
1263
1263
  if ($e.flats)
1264
- if ((ei = $e.floor) != null && ei.conf)
1265
- ni.setAttribute("conf", ((ii = $e.floor) == null ? void 0 : ii.conf) || "");
1264
+ if ((Je = $e.floor) != null && Je.conf)
1265
+ ii.setAttribute("conf", ((ni = $e.floor) == null ? void 0 : ni.conf) || "");
1266
1266
  else {
1267
1267
  const si = (oi = $e.flats) == null ? void 0 : oi.find(
1268
1268
  (ai) => (ai == null ? void 0 : ai.id) === (Ge == null ? void 0 : Ge.id)
1269
1269
  );
1270
- ni == null || ni.setAttribute("conf", ((ri = si == null ? void 0 : si.conf) == null ? void 0 : ri.toString()) || "");
1270
+ ii == null || ii.setAttribute("conf", ((ri = si == null ? void 0 : si.conf) == null ? void 0 : ri.toString()) || "");
1271
1271
  }
1272
1272
  });
1273
- }, Je = () => {
1274
- var Ue;
1275
- (Ue = $e.floor) != null && Ue.block_id ? ke("changeComponent", "block", Fe.value) : ke("changeComponent", "project", null);
1273
+ }, Ke = () => {
1274
+ var Xe;
1275
+ (Xe = $e.floor) != null && Xe.block_id ? ke("changeComponent", "block", Fe.value) : ke("changeComponent", "project", null);
1276
1276
  };
1277
1277
  return watch(
1278
1278
  () => Ie.value,
1279
- (Ue) => {
1280
- var ni, ti, Ge, Ye, Ke, ei, ii;
1281
- if (!Ue) return;
1282
- Ve.hoverdSvg = Ue;
1283
- const Qe = Ue == null ? void 0 : Ue.parentElement;
1279
+ (Xe) => {
1280
+ var ii, ei, Ge, Ze, ti, Je, ni;
1281
+ if (!Xe) return;
1282
+ Ve.hoverdSvg = Xe;
1283
+ const Qe = Xe == null ? void 0 : Xe.parentElement;
1284
1284
  if (Qe && (Qe == null ? void 0 : Qe.nodeName) === "g") {
1285
1285
  const oi = Qe.getAttribute("id");
1286
- if (!oi || (Ae.value = ((ti = (ni = $e.floor) == null ? void 0 : ni.polygon_data) == null ? void 0 : ti.find((ri) => (ri == null ? void 0 : ri.key) === oi)) || null, !Ae.value)) return;
1286
+ if (!oi || (Ae.value = ((ei = (ii = $e.floor) == null ? void 0 : ii.polygon_data) == null ? void 0 : ei.find((ri) => (ri == null ? void 0 : ri.key) === oi)) || null, !Ae.value)) return;
1287
1287
  if (((Ge = Ae.value) == null ? void 0 : Ge.type) === "flat") {
1288
- const ri = (Ye = $e.flats) == null ? void 0 : Ye.find(
1288
+ const ri = (Ze = $e.flats) == null ? void 0 : Ze.find(
1289
1289
  (ai) => {
1290
1290
  var li;
1291
1291
  return (ai == null ? void 0 : ai.id) === ((li = Ae.value) == null ? void 0 : li.id);
1292
1292
  }
1293
1293
  ), si = ri ? {
1294
1294
  ...ri,
1295
- conf: ri.conf || ((Ke = $e.floor) == null ? void 0 : Ke.conf) || ""
1295
+ conf: ri.conf || ((ti = $e.floor) == null ? void 0 : ti.conf) || ""
1296
1296
  } : null;
1297
1297
  ze.value = si;
1298
- } else if (((ei = Ae.value) == null ? void 0 : ei.type) === "tooltip") {
1299
- const ri = (ii = $e.actions) == null ? void 0 : ii.find(
1298
+ } else if (((Je = Ae.value) == null ? void 0 : Je.type) === "tooltip") {
1299
+ const ri = (ni = $e.actions) == null ? void 0 : ni.find(
1300
1300
  (si) => {
1301
1301
  var ai;
1302
1302
  return (si == null ? void 0 : si.id) === ((ai = Ae.value) == null ? void 0 : ai.id);
@@ -1317,50 +1317,50 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
1317
1317
  () => je.value,
1318
1318
  () => {
1319
1319
  var Qe;
1320
- const Ue = (Qe = $e.floors) == null ? void 0 : Qe.find(
1321
- (ni) => (ni == null ? void 0 : ni.id) === (je == null ? void 0 : je.value)
1320
+ const Xe = (Qe = $e.floors) == null ? void 0 : Qe.find(
1321
+ (ii) => (ii == null ? void 0 : ii.id) === (je == null ? void 0 : je.value)
1322
1322
  );
1323
- Ue && ke("changeComponent", "floor", Ue), setTimeout(() => {
1324
- Xe();
1323
+ Xe && ke("changeComponent", "floor", Xe), setTimeout(() => {
1324
+ Ye();
1325
1325
  }, 0);
1326
1326
  }
1327
1327
  ), onMounted(() => {
1328
- var Ue, Qe, ni;
1329
- Fe.value = (Ue = $e.blocks) == null ? void 0 : Ue.find(
1330
- (ti) => {
1331
- var Ge, Ye;
1332
- return (ti == null ? void 0 : ti.id) === ((Ye = (Ge = $e.floor) == null ? void 0 : Ge.block_id) == null ? void 0 : Ye.toString());
1328
+ var Xe, Qe, ii;
1329
+ Fe.value = (Xe = $e.blocks) == null ? void 0 : Xe.find(
1330
+ (ei) => {
1331
+ var Ge, Ze;
1332
+ return (ei == null ? void 0 : ei.id) === ((Ze = (Ge = $e.floor) == null ? void 0 : Ge.block_id) == null ? void 0 : Ze.toString());
1333
1333
  }
1334
- ), je.value = (ni = (Qe = We.value) == null ? void 0 : Qe.find(
1335
- (ti) => {
1334
+ ), je.value = (ii = (Qe = We.value) == null ? void 0 : Qe.find(
1335
+ (ei) => {
1336
1336
  var Ge;
1337
- return (ti == null ? void 0 : ti.value) == ((Ge = $e.floor) == null ? void 0 : Ge.id);
1337
+ return (ei == null ? void 0 : ei.value) == ((Ge = $e.floor) == null ? void 0 : Ge.id);
1338
1338
  }
1339
- )) == null ? void 0 : ni.value, Xe(), document.addEventListener("mousemove", qe);
1339
+ )) == null ? void 0 : ii.value, Ye(), document.addEventListener("mousemove", qe);
1340
1340
  }), onUnmounted(() => {
1341
1341
  document.removeEventListener("mousemove", qe);
1342
- }), (Ue, Qe) => {
1343
- var ni;
1342
+ }), (Xe, Qe) => {
1343
+ var ii;
1344
1344
  return openBlock(), createBlock(_sfc_main$E, {
1345
1345
  hoverdData: ze.value,
1346
- type: (ni = Ae.value) == null ? void 0 : ni.type
1346
+ type: (ii = Ae.value) == null ? void 0 : ii.type
1347
1347
  }, {
1348
1348
  header: withCtx(() => [
1349
- createVNode(_sfc_main$A, { onClick: Je }),
1349
+ createVNode(_sfc_main$A, { onClick: Ke }),
1350
1350
  createElementVNode("div", _hoisted_1$v, [
1351
1351
  createVNode(_sfc_main$C, {
1352
1352
  modelValue: je.value,
1353
- "onUpdate:modelValue": Qe[0] || (Qe[0] = (ti) => je.value = ti),
1353
+ "onUpdate:modelValue": Qe[0] || (Qe[0] = (ei) => je.value = ei),
1354
1354
  data: We.value
1355
1355
  }, null, 8, ["modelValue", "data"])
1356
1356
  ])
1357
1357
  ]),
1358
1358
  default: withCtx(() => {
1359
- var ti, Ge, Ye;
1359
+ var ei, Ge, Ze;
1360
1360
  return [
1361
1361
  createElementVNode("div", _hoisted_2$h, [
1362
1362
  createElementVNode("img", {
1363
- src: ((Ye = (Ge = (ti = Be.floor) == null ? void 0 : ti.floor_image) == null ? void 0 : Ge[0]) == null ? void 0 : Ye.url) || "",
1363
+ src: ((Ze = (Ge = (ei = Be.floor) == null ? void 0 : ei.floor_image) == null ? void 0 : Ge[0]) == null ? void 0 : Ze.url) || "",
1364
1364
  alt: "",
1365
1365
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
1366
1366
  }, null, 8, _hoisted_3$g),
@@ -1370,7 +1370,7 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
1370
1370
  innerHTML: He.value,
1371
1371
  key: He.value,
1372
1372
  class: "canvas path-color ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full",
1373
- onClick: Ze
1373
+ onClick: Ue
1374
1374
  }, null, 8, _hoisted_4$b))
1375
1375
  ])
1376
1376
  ];
@@ -1817,8 +1817,8 @@ class I extends g {
1817
1817
  const { content: ke, contentRect: $e } = this, { fitWidth: Ne, fitHeight: Ve, fullWidth: De, fullHeight: Le } = $e;
1818
1818
  let Re = De, Ie = Le;
1819
1819
  if (this.option("zoom") || this.angle !== 0) {
1820
- const Ae = !(ke instanceof HTMLImageElement) && (window.getComputedStyle(ke).maxWidth === "none" || window.getComputedStyle(ke).maxHeight === "none"), ze = Ae ? De : Ne, je = Ae ? Le : Ve, Fe = this.getMatrix(_e), He = new DOMPoint(0, 0).matrixTransform(Fe), We = new DOMPoint(0 + ze, 0).matrixTransform(Fe), qe = new DOMPoint(0 + ze, 0 + je).matrixTransform(Fe), Ze = new DOMPoint(0, 0 + je).matrixTransform(Fe), Xe = Math.abs(qe.x - He.x), Je = Math.abs(qe.y - He.y), Ue = Math.abs(Ze.x - We.x), Qe = Math.abs(Ze.y - We.y);
1821
- Re = Math.max(Xe, Ue), Ie = Math.max(Je, Qe);
1820
+ const Ae = !(ke instanceof HTMLImageElement) && (window.getComputedStyle(ke).maxWidth === "none" || window.getComputedStyle(ke).maxHeight === "none"), ze = Ae ? De : Ne, je = Ae ? Le : Ve, Fe = this.getMatrix(_e), He = new DOMPoint(0, 0).matrixTransform(Fe), We = new DOMPoint(0 + ze, 0).matrixTransform(Fe), qe = new DOMPoint(0 + ze, 0 + je).matrixTransform(Fe), Ue = new DOMPoint(0, 0 + je).matrixTransform(Fe), Ye = Math.abs(qe.x - He.x), Ke = Math.abs(qe.y - He.y), Xe = Math.abs(Ue.x - We.x), Qe = Math.abs(Ue.y - We.y);
1821
+ Re = Math.max(Ye, Xe), Ie = Math.max(Ke, Qe);
1822
1822
  }
1823
1823
  return { contentWidth: Re, contentHeight: Ie };
1824
1824
  }
@@ -1895,8 +1895,8 @@ class I extends g {
1895
1895
  const { content: Ne } = this, Ve = h($e[0], $e[1]), De = h(ke[0], ke[1]);
1896
1896
  let Le = 0, Re = 0;
1897
1897
  if (ke.length > 1) {
1898
- const Je = Ne.getBoundingClientRect();
1899
- Le = Ve.clientX - Je.left - 0.5 * Je.width, Re = Ve.clientY - Je.top - 0.5 * Je.height;
1898
+ const Ke = Ne.getBoundingClientRect();
1899
+ Le = Ve.clientX - Ke.left - 0.5 * Ke.width, Re = Ve.clientY - Ke.top - 0.5 * Ke.height;
1900
1900
  }
1901
1901
  const Ie = c($e[0], $e[1]), Ae = c(ke[0], ke[1]);
1902
1902
  let ze = Ie ? Ae / Ie : 1, je = De.clientX - Ve.clientX, Fe = De.clientY - Ve.clientY;
@@ -1904,15 +1904,15 @@ class I extends g {
1904
1904
  let He = t(this.targetScale) === t(this.minScale) && this.option("lockAxis");
1905
1905
  if (He && !this.lockedAxis) if (He === "xy" || He === "y" || _e.type === "touchmove") {
1906
1906
  if (Math.abs(this.dragOffset.x) < 6 && Math.abs(this.dragOffset.y) < 6) return void _e.preventDefault();
1907
- const Je = Math.abs(180 * Math.atan2(this.dragOffset.y, this.dragOffset.x) / Math.PI);
1908
- this.lockedAxis = Je > 45 && Je < 135 ? "y" : "x", this.dragOffset.x = 0, this.dragOffset.y = 0, je = 0, Fe = 0;
1907
+ const Ke = Math.abs(180 * Math.atan2(this.dragOffset.y, this.dragOffset.x) / Math.PI);
1908
+ this.lockedAxis = Ke > 45 && Ke < 135 ? "y" : "x", this.dragOffset.x = 0, this.dragOffset.y = 0, je = 0, Fe = 0;
1909
1909
  } else this.lockedAxis = He;
1910
1910
  if (i(_e.target, this.content) && (He = "x", this.dragOffset.y = 0), He && He !== "xy" && this.lockedAxis !== He && t(this.targetScale) === t(this.minScale)) return;
1911
1911
  _e.cancelable && _e.preventDefault(), this.container.classList.add(this.cn("isDragging"));
1912
1912
  const We = this.checkBounds(je, Fe);
1913
1913
  this.option("rubberband") ? (this.isInfinite !== "x" && (We.xDiff > 0 && je < 0 || We.xDiff < 0 && je > 0) && (je *= Math.max(0, 0.5 - Math.abs(0.75 / this.contentRect.fitWidth * We.xDiff))), this.isInfinite !== "y" && (We.yDiff > 0 && Fe < 0 || We.yDiff < 0 && Fe > 0) && (Fe *= Math.max(0, 0.5 - Math.abs(0.75 / this.contentRect.fitHeight * We.yDiff)))) : (We.xDiff && (je = 0), We.yDiff && (Fe = 0));
1914
- const qe = this.targetScale, Ze = this.minScale, Xe = this.maxScale;
1915
- qe < 0.5 * Ze && (ze = Math.max(ze, Ze)), qe > 1.5 * Xe && (ze = Math.min(ze, Xe)), this.lockedAxis === "y" && t(qe) === t(Ze) && (je = 0), this.lockedAxis === "x" && t(qe) === t(Ze) && (Fe = 0), this.applyChange({ originX: Le, originY: Re, panX: je, panY: Fe, scale: ze, friction: this.option("dragFriction"), ignoreBounds: !0 });
1914
+ const qe = this.targetScale, Ue = this.minScale, Ye = this.maxScale;
1915
+ qe < 0.5 * Ue && (ze = Math.max(ze, Ue)), qe > 1.5 * Ye && (ze = Math.min(ze, Ye)), this.lockedAxis === "y" && t(qe) === t(Ue) && (je = 0), this.lockedAxis === "x" && t(qe) === t(Ue) && (Fe = 0), this.applyChange({ originX: Le, originY: Re, panX: je, panY: Fe, scale: ze, friction: this.option("dragFriction"), ignoreBounds: !0 });
1916
1916
  }
1917
1917
  onPointerUp(_e, ke, $e) {
1918
1918
  if ($e.length) return this.dragOffset.x = 0, this.dragOffset.y = 0, void (this.trackingPoints = []);
@@ -1922,7 +1922,7 @@ class I extends g {
1922
1922
  var _e;
1923
1923
  const ke = this.isScaling;
1924
1924
  this.rAF && (cancelAnimationFrame(this.rAF), this.rAF = null), this.isBouncingX = !1, this.isBouncingY = !1;
1925
- for (const Je of v) this.velocity[Je] = 0;
1925
+ for (const Ke of v) this.velocity[Ke] = 0;
1926
1926
  this.target.e = this.current.e, this.target.f = this.current.f, S(this.container, "is-scaling"), S(this.container, "is-animating"), this.isTicking = !1;
1927
1927
  const { trackingPoints: $e } = this, Ne = $e[0], Ve = $e[$e.length - 1];
1928
1928
  let De = 0, Le = 0, Re = 0;
@@ -1933,12 +1933,12 @@ class I extends g {
1933
1933
  const We = this.targetScale;
1934
1934
  if (Re > 0) {
1935
1935
  je = Math.abs(De) > 3 ? De / (Re / 30) : 0, Fe = Math.abs(Le) > 3 ? Le / (Re / 30) : 0;
1936
- const Je = this.option("maxVelocity");
1937
- Je && (je = Math.max(Math.min(je, Je), -1 * Je), Fe = Math.max(Math.min(Fe, Je), -1 * Je));
1936
+ const Ke = this.option("maxVelocity");
1937
+ Ke && (je = Math.max(Math.min(je, Ke), -1 * Ke), Fe = Math.max(Math.min(Fe, Ke), -1 * Ke));
1938
1938
  }
1939
1939
  je && (Ae = je / (1 / (1 - He) - 1)), Fe && (ze = Fe / (1 / (1 - He) - 1)), (this.option("lockAxis") === "y" || this.option("lockAxis") === "xy" && this.lockedAxis === "y" && t(We) === this.minScale) && (Ae = je = 0), (this.option("lockAxis") === "x" || this.option("lockAxis") === "xy" && this.lockedAxis === "x" && t(We) === this.minScale) && (ze = Fe = 0);
1940
- const qe = this.dragOffset.x, Ze = this.dragOffset.y, Xe = this.option("dragMinThreshold") || 0;
1941
- Math.abs(qe) < Xe && Math.abs(Ze) < Xe && (Ae = ze = 0, je = Fe = 0), (this.option("zoom") && (We < this.minScale - 1e-5 || We > this.maxScale + 1e-5) || ke && !Ae && !ze) && (He = 0.35), this.applyChange({ panX: Ae, panY: ze, friction: He }), this.emit("decel", je, Fe, qe, Ze);
1940
+ const qe = this.dragOffset.x, Ue = this.dragOffset.y, Ye = this.option("dragMinThreshold") || 0;
1941
+ Math.abs(qe) < Ye && Math.abs(Ue) < Ye && (Ae = ze = 0, je = Fe = 0), (this.option("zoom") && (We < this.minScale - 1e-5 || We > this.maxScale + 1e-5) || ke && !Ae && !ze) && (He = 0.35), this.applyChange({ panX: Ae, panY: ze, friction: He }), this.emit("decel", je, Fe, qe, Ue);
1942
1942
  }
1943
1943
  onWheel(_e) {
1944
1944
  var ke = [-_e.deltaX || 0, -_e.deltaY || 0, -_e.detail || 0].reduce(function(Ve, De) {
@@ -1962,8 +1962,8 @@ class I extends g {
1962
1962
  this.emit("beforeTransform");
1963
1963
  const { current: _e, target: ke, content: $e, contentRect: Ne } = this, Ve = Object.assign({}, C);
1964
1964
  for (const qe of v) {
1965
- const Ze = qe == "e" || qe === "f" ? M : T;
1966
- Ve[qe] = t(_e[qe], Ze), Math.abs(ke[qe] - _e[qe]) < (qe == "e" || qe === "f" ? 0.51 : 1e-3) && (_e[qe] = ke[qe]);
1965
+ const Ue = qe == "e" || qe === "f" ? M : T;
1966
+ Ve[qe] = t(_e[qe], Ue), Math.abs(ke[qe] - _e[qe]) < (qe == "e" || qe === "f" ? 0.51 : 1e-3) && (_e[qe] = ke[qe]);
1967
1967
  }
1968
1968
  let { a: De, b: Le, c: Re, d: Ie, e: Ae, f: ze } = Ve, je = `matrix(${De}, ${Le}, ${Re}, ${Ie}, ${Ae}, ${ze})`, Fe = $e.parentElement instanceof HTMLPictureElement ? $e.parentElement : $e;
1969
1969
  if (this.option("transformParent") && (Fe = Fe.parentElement || Fe), Fe.style.transform === je) return;
@@ -1985,21 +1985,21 @@ class I extends g {
1985
1985
  let ri = 0;
1986
1986
  return ri = oi instanceof HTMLImageElement ? oi.naturalHeight : oi instanceof SVGElement ? oi.height.baseVal.value : Math.max(oi.offsetHeight, oi.scrollHeight), ri || 0;
1987
1987
  })(Ve);
1988
- let qe = this.option("width", He) || z, Ze = this.option("height", We) || z;
1989
- const Xe = qe === z, Je = Ze === z;
1990
- typeof qe != "number" && (qe = He), typeof Ze != "number" && (Ze = We), Xe && (qe = He * (Ze / We)), Je && (Ze = We / (He / qe));
1991
- let Ue = Ve.parentElement instanceof HTMLPictureElement ? Ve.parentElement : Ve;
1992
- this.option("transformParent") && (Ue = Ue.parentElement || Ue);
1993
- const Qe = Ue.getAttribute("style") || "";
1994
- Ue.style.setProperty("transform", "none", "important"), De && (Ue.style.width = "", Ue.style.height = ""), Ue.offsetHeight;
1995
- const ni = Ve.getBoundingClientRect();
1996
- let ti = ni.width * $e, Ge = ni.height * $e, Ye = ti, Ke = Ge;
1997
- ti = Math.min(ti, qe), Ge = Math.min(Ge, Ze), De ? { width: ti, height: Ge } = ((oi, ri, si, ai) => {
1998
- const li = si / oi, ui = ai / ri, ci = Math.min(li, ui);
1988
+ let qe = this.option("width", He) || z, Ue = this.option("height", We) || z;
1989
+ const Ye = qe === z, Ke = Ue === z;
1990
+ typeof qe != "number" && (qe = He), typeof Ue != "number" && (Ue = We), Ye && (qe = He * (Ue / We)), Ke && (Ue = We / (He / qe));
1991
+ let Xe = Ve.parentElement instanceof HTMLPictureElement ? Ve.parentElement : Ve;
1992
+ this.option("transformParent") && (Xe = Xe.parentElement || Xe);
1993
+ const Qe = Xe.getAttribute("style") || "";
1994
+ Xe.style.setProperty("transform", "none", "important"), De && (Xe.style.width = "", Xe.style.height = ""), Xe.offsetHeight;
1995
+ const ii = Ve.getBoundingClientRect();
1996
+ let ei = ii.width * $e, Ge = ii.height * $e, Ze = ei, ti = Ge;
1997
+ ei = Math.min(ei, qe), Ge = Math.min(Ge, Ue), De ? { width: ei, height: Ge } = ((oi, ri, si, ai) => {
1998
+ const li = si / oi, di = ai / ri, ci = Math.min(li, di);
1999
1999
  return { width: oi *= ci, height: ri *= ci };
2000
- })(qe, Ze, ti, Ge) : (ti = Math.min(ti, qe), Ge = Math.min(Ge, Ze));
2001
- let ei = 0.5 * (Ke - Ge), ii = 0.5 * (Ye - ti);
2002
- this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: ni.top - Le.top + ei, bottom: Le.bottom - ni.bottom + ei, left: ni.left - Le.left + ii, right: Le.right - ni.right + ii, fitWidth: ti, fitHeight: Ge, width: ti, height: Ge, fullWidth: qe, fullHeight: Ze }), Ue.style.cssText = Qe, De && (Ue.style.width = `${ti}px`, Ue.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();
2000
+ })(qe, Ue, ei, Ge) : (ei = Math.min(ei, qe), Ge = Math.min(Ge, Ue));
2001
+ let Je = 0.5 * (ti - Ge), ni = 0.5 * (Ze - ei);
2002
+ this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: ii.top - Le.top + Je, bottom: Le.bottom - ii.bottom + Je, left: ii.left - Le.left + ni, right: Le.right - ii.right + ni, fitWidth: ei, fitHeight: Ge, width: ei, height: Ge, fullWidth: qe, fullHeight: Ue }), Xe.style.cssText = Qe, De && (Xe.style.width = `${ei}px`, Xe.style.height = `${Ge}px`), this.setTransform(), _e !== !0 && this.emit("refresh"), this.ignoreBounds || (t(this.targetScale) < t(this.minScale) ? this.zoomTo(this.minScale, { friction: 0 }) : this.targetScale > this.maxScale ? this.zoomTo(this.maxScale, { friction: 0 }) : this.state === m.Init || this.checkBounds().inBounds || this.requestTick()), this.updateControls();
2003
2003
  }
2004
2004
  calculateBounds() {
2005
2005
  const { contentWidth: _e, contentHeight: ke } = this.calculateContentDim(this.target), { targetScale: $e, lockedAxis: Ne } = this, { fitWidth: Ve, fitHeight: De } = this.contentRect;
@@ -2007,18 +2007,18 @@ class I extends g {
2007
2007
  const ze = this.option("infinite");
2008
2008
  if (ze === !0 || Ne && ze === Ne) Le = -1 / 0, Ie = 1 / 0, Re = -1 / 0, Ae = 1 / 0;
2009
2009
  else {
2010
- let { containerRect: je, contentRect: Fe } = this, He = t(Ve * $e, M), We = t(De * $e, M), { innerWidth: qe, innerHeight: Ze } = je;
2011
- if (je.width === He && (qe = je.width), je.width === We && (Ze = je.height), _e > qe) {
2010
+ let { containerRect: je, contentRect: Fe } = this, He = t(Ve * $e, M), We = t(De * $e, M), { innerWidth: qe, innerHeight: Ue } = je;
2011
+ if (je.width === He && (qe = je.width), je.width === We && (Ue = je.height), _e > qe) {
2012
2012
  Ie = 0.5 * (_e - qe), Le = -1 * Ie;
2013
- let Xe = 0.5 * (Fe.right - Fe.left);
2014
- Le += Xe, Ie += Xe;
2013
+ let Ye = 0.5 * (Fe.right - Fe.left);
2014
+ Le += Ye, Ie += Ye;
2015
2015
  }
2016
- if (Ve > qe && _e < qe && (Le -= 0.5 * (Ve - qe), Ie -= 0.5 * (Ve - qe)), ke > Ze) {
2017
- Ae = 0.5 * (ke - Ze), Re = -1 * Ae;
2018
- let Xe = 0.5 * (Fe.bottom - Fe.top);
2019
- Re += Xe, Ae += Xe;
2016
+ if (Ve > qe && _e < qe && (Le -= 0.5 * (Ve - qe), Ie -= 0.5 * (Ve - qe)), ke > Ue) {
2017
+ Ae = 0.5 * (ke - Ue), Re = -1 * Ae;
2018
+ let Ye = 0.5 * (Fe.bottom - Fe.top);
2019
+ Re += Ye, Ae += Ye;
2020
2020
  }
2021
- De > Ze && ke < Ze && (Le -= 0.5 * (De - Ze), Ie -= 0.5 * (De - Ze));
2021
+ De > Ue && ke < Ue && (Le -= 0.5 * (De - Ue), Ie -= 0.5 * (De - Ue));
2022
2022
  }
2023
2023
  return { x: { min: Le, max: Ie }, y: { min: Re, max: Ae } };
2024
2024
  }
@@ -2035,21 +2035,21 @@ class I extends g {
2035
2035
  let Fe = Ie && t(Le) > t(Ve), He = !Fe && !je && Ae && t(Le) < t(Ve);
2036
2036
  o(ke, this.cn("canZoomIn"), Fe), o(ke, this.cn("canZoomOut"), He);
2037
2037
  for (const We of ke.querySelectorAll("[data-panzoom-action]")) {
2038
- let qe = !1, Ze = !1;
2038
+ let qe = !1, Ue = !1;
2039
2039
  switch (We.dataset.panzoomAction) {
2040
2040
  case "zoomIn":
2041
- Ie ? qe = !0 : Ze = !0;
2041
+ Ie ? qe = !0 : Ue = !0;
2042
2042
  break;
2043
2043
  case "zoomOut":
2044
- Ae ? qe = !0 : Ze = !0;
2044
+ Ae ? qe = !0 : Ue = !0;
2045
2045
  break;
2046
2046
  case "toggleZoom":
2047
2047
  case "iterateZoom":
2048
- Ie || Ae ? qe = !0 : Ze = !0;
2049
- const Xe = We.querySelector("g");
2050
- Xe && (Xe.style.display = Ie ? "" : "none");
2048
+ Ie || Ae ? qe = !0 : Ue = !0;
2049
+ const Ye = We.querySelector("g");
2050
+ Ye && (Ye.style.display = Ie ? "" : "none");
2051
2051
  }
2052
- qe ? (We.removeAttribute("disabled"), We.removeAttribute("tabindex")) : Ze && (We.setAttribute("disabled", ""), We.setAttribute("tabindex", "-1"));
2052
+ qe ? (We.removeAttribute("disabled"), We.removeAttribute("tabindex")) : Ue && (We.setAttribute("disabled", ""), We.setAttribute("tabindex", "-1"));
2053
2053
  }
2054
2054
  }
2055
2055
  panTo({ x: _e = this.target.e, y: ke = this.target.f, scale: $e = this.targetScale, friction: Ne = this.option("friction"), angle: Ve = 0, originX: De = 0, originY: Le = 0, flipX: Re = !1, flipY: Ie = !1, ignoreBounds: Ae = !1 }) {
@@ -2060,16 +2060,16 @@ class I extends g {
2060
2060
  if (je === m.Destroy) return;
2061
2061
  this.rAF && (cancelAnimationFrame(this.rAF), this.rAF = null), this.friction = Le || 0, this.ignoreBounds = Ae;
2062
2062
  const { current: Fe } = this, He = Fe.e, We = Fe.f, qe = this.getMatrix(this.target);
2063
- let Ze = new DOMMatrix().translate(He, We).translate(Ve, De).translate(_e, ke);
2063
+ let Ue = new DOMMatrix().translate(He, We).translate(Ve, De).translate(_e, ke);
2064
2064
  if (this.option("zoom")) {
2065
2065
  if (!Ae) {
2066
- const Xe = this.targetScale, Je = this.minScale, Ue = this.maxScale;
2067
- Xe * $e < Je && ($e = Je / Xe), Xe * $e > Ue && ($e = Ue / Xe);
2066
+ const Ye = this.targetScale, Ke = this.minScale, Xe = this.maxScale;
2067
+ Ye * $e < Ke && ($e = Ke / Ye), Ye * $e > Xe && ($e = Xe / Ye);
2068
2068
  }
2069
- Ze = Ze.scale($e);
2069
+ Ue = Ue.scale($e);
2070
2070
  }
2071
- Ze = Ze.translate(-Ve, -De).translate(-He, -We).multiply(qe), Ne && (Ze = Ze.rotate(Ne)), Re && (Ze = Ze.scale(-1, 1)), Ie && (Ze = Ze.scale(1, -1));
2072
- for (const Xe of v) Xe !== "e" && Xe !== "f" && (Ze[Xe] > this.minScale + 1e-5 || Ze[Xe] < this.minScale - 1e-5) ? this.target[Xe] = Ze[Xe] : this.target[Xe] = t(Ze[Xe], M);
2071
+ Ue = Ue.translate(-Ve, -De).translate(-He, -We).multiply(qe), Ne && (Ue = Ue.rotate(Ne)), Re && (Ue = Ue.scale(-1, 1)), Ie && (Ue = Ue.scale(1, -1));
2072
+ for (const Ye of v) Ye !== "e" && Ye !== "f" && (Ue[Ye] > this.minScale + 1e-5 || Ue[Ye] < this.minScale - 1e-5) ? this.target[Ye] = Ue[Ye] : this.target[Ye] = t(Ue[Ye], M);
2073
2073
  (this.targetScale < this.scale || Math.abs($e - 1) > 0.1 || this.panMode === O || ze === !1) && !Ae && this.clampTargetBounds(), je === m.Init ? this.animate() : this.isResting || (this.state = m.Panning, this.requestTick());
2074
2074
  }
2075
2075
  stop(_e = !1) {
@@ -2530,19 +2530,19 @@ class Q extends g {
2530
2530
  repositionSlides() {
2531
2531
  let _e, { isHorizontal: ke, isRTL: $e, isInfinite: Ne, viewport: Ve, viewportDim: De, contentDim: Le, page: Re, pages: Ie, slides: Ae, panzoom: ze } = this, je = 0, Fe = 0, He = 0, We = 0;
2532
2532
  ze ? We = -1 * ze.current[this.axis] : Ie[Re] && (We = Ie[Re].pos || 0), _e = ke ? $e ? "right" : "left" : "top", $e && ke && (We *= -1);
2533
- for (const Je of Ae) {
2534
- const Ue = Je.el;
2535
- Ue ? (_e === "top" ? (Ue.style.right = "", Ue.style.left = "") : Ue.style.top = "", Je.index !== je ? Ue.style[_e] = Fe === 0 ? "" : `${t(Fe, 1e3)}px` : Ue.style[_e] = "", He += Je.dim + Je.gap, je++) : Fe += Je.dim + Je.gap;
2533
+ for (const Ke of Ae) {
2534
+ const Xe = Ke.el;
2535
+ Xe ? (_e === "top" ? (Xe.style.right = "", Xe.style.left = "") : Xe.style.top = "", Ke.index !== je ? Xe.style[_e] = Fe === 0 ? "" : `${t(Fe, 1e3)}px` : Xe.style[_e] = "", He += Ke.dim + Ke.gap, je++) : Fe += Ke.dim + Ke.gap;
2536
2536
  }
2537
2537
  if (Ne && He && Ve) {
2538
- let Je = getComputedStyle(Ve), Ue = "padding", Qe = ke ? "Right" : "Bottom", ni = parseFloat(Je[Ue + (ke ? "Left" : "Top")]);
2539
- We -= ni, De += ni, De += parseFloat(Je[Ue + Qe]);
2540
- for (const ti of Ae) ti.el && (t(ti.pos) < t(De) && t(ti.pos + ti.dim + ti.gap) < t(We) && t(We) > t(Le - De) && (ti.el.style[_e] = `${t(Fe + He, 1e3)}px`), t(ti.pos + ti.gap) >= t(Le - De) && t(ti.pos) > t(We + De) && t(We) < t(De) && (ti.el.style[_e] = `-${t(He, 1e3)}px`));
2538
+ let Ke = getComputedStyle(Ve), Xe = "padding", Qe = ke ? "Right" : "Bottom", ii = parseFloat(Ke[Xe + (ke ? "Left" : "Top")]);
2539
+ We -= ii, De += ii, De += parseFloat(Ke[Xe + Qe]);
2540
+ for (const ei of Ae) ei.el && (t(ei.pos) < t(De) && t(ei.pos + ei.dim + ei.gap) < t(We) && t(We) > t(Le - De) && (ei.el.style[_e] = `${t(Fe + He, 1e3)}px`), t(ei.pos + ei.gap) >= t(Le - De) && t(ei.pos) > t(We + De) && t(We) < t(De) && (ei.el.style[_e] = `-${t(He, 1e3)}px`));
2541
2541
  }
2542
- let qe, Ze, Xe = [...this.inTransition];
2543
- if (Xe.length > 1 && (qe = Ie[Xe[0]], Ze = Ie[Xe[1]]), qe && Ze) {
2544
- let Je = 0;
2545
- for (const Ue of Ae) Ue.el ? this.inTransition.has(Ue.index) && qe.slides.indexOf(Ue) < 0 && (Ue.el.style[_e] = `${t(Je + (qe.pos - Ze.pos), 1e3)}px`) : Je += Ue.dim + Ue.gap;
2542
+ let qe, Ue, Ye = [...this.inTransition];
2543
+ if (Ye.length > 1 && (qe = Ie[Ye[0]], Ue = Ie[Ye[1]]), qe && Ue) {
2544
+ let Ke = 0;
2545
+ for (const Xe of Ae) Xe.el ? this.inTransition.has(Xe.index) && qe.slides.indexOf(Xe) < 0 && (Xe.el.style[_e] = `${t(Ke + (qe.pos - Ue.pos), 1e3)}px`) : Ke += Xe.dim + Xe.gap;
2546
2546
  }
2547
2547
  }
2548
2548
  createSlideEl(_e) {
@@ -2587,10 +2587,10 @@ class Q extends g {
2587
2587
  P(this.container, this.cn("inTransition"));
2588
2588
  const He = ((Ve = Re[Le]) === null || Ve === void 0 ? void 0 : Ve.slides[0]) || null, We = ((De = Re[Ae]) === null || De === void 0 ? void 0 : De.slides[0]) || null;
2589
2589
  this.inTransition.add(We.index), this.createSlideEl(We);
2590
- let qe = He.el, Ze = We.el;
2590
+ let qe = He.el, Ue = We.el;
2591
2591
  Fe || ke === J || (ke = "fadeFast", qe = null);
2592
- const Xe = this.isRTL ? "next" : "prev", Je = this.isRTL ? "prev" : "next";
2593
- return qe && (this.inTransition.add(He.index), He.transition = ke, qe.addEventListener(G, this.onAnimationEnd), qe.classList.add(`f-${ke}Out`, `to-${ze > 0 ? Je : Xe}`)), Ze && (We.transition = ke, Ze.addEventListener(G, this.onAnimationEnd), Ze.classList.add(`f-${ke}In`, `from-${ze > 0 ? Xe : Je}`)), Ie.current[this.axis] = je, Ie.target[this.axis] = je, Ie.requestTick(), this.onChange(Ae), !0;
2592
+ const Ye = this.isRTL ? "next" : "prev", Ke = this.isRTL ? "prev" : "next";
2593
+ return qe && (this.inTransition.add(He.index), He.transition = ke, qe.addEventListener(G, this.onAnimationEnd), qe.classList.add(`f-${ke}Out`, `to-${ze > 0 ? Ke : Ye}`)), Ue && (We.transition = ke, Ue.addEventListener(G, this.onAnimationEnd), Ue.classList.add(`f-${ke}In`, `from-${ze > 0 ? Ye : Ke}`)), Ie.current[this.axis] = je, Ie.target[this.axis] = je, Ie.requestTick(), this.onChange(Ae), !0;
2594
2594
  }
2595
2595
  manageSlideVisiblity() {
2596
2596
  const _e = /* @__PURE__ */ new Set(), ke = /* @__PURE__ */ new Set(), $e = this.getVisibleSlides(parseFloat(this.option("preload", 0) + "") || 0);
@@ -2746,8 +2746,8 @@ class Q extends g {
2746
2746
  for (let Fe = 0; Fe < this.slides.length; Fe++) this.slides[Fe].index = Fe;
2747
2747
  for (const Fe of je) this.emit("beforeInitSlide", Fe, Fe.index);
2748
2748
  if (this.page >= _e && (this.page += je.length), this.updateMetrics(), Le) {
2749
- const Fe = ((Ve = this.pages[this.page]) === null || Ve === void 0 ? void 0 : Ve.pos) || 0, He = ((De = this.pages[this.page]) === null || De === void 0 ? void 0 : De.dim) || 0, We = this.pages.length || 1, qe = this.isRTL ? Ie - He : He - Ie, Ze = this.isRTL ? Re - Fe : Fe - Re;
2750
- Ae && We === 1 ? (_e <= this.page && (Le.current[this.axis] -= qe, Le.target[this.axis] -= qe), Le.panTo({ [this.isHorizontal ? "x" : "y"]: -1 * Fe })) : Ze && _e <= this.page && (Le.target[this.axis] -= Ze, Le.current[this.axis] -= Ze, Le.requestTick());
2749
+ const Fe = ((Ve = this.pages[this.page]) === null || Ve === void 0 ? void 0 : Ve.pos) || 0, He = ((De = this.pages[this.page]) === null || De === void 0 ? void 0 : De.dim) || 0, We = this.pages.length || 1, qe = this.isRTL ? Ie - He : He - Ie, Ue = this.isRTL ? Re - Fe : Fe - Re;
2750
+ Ae && We === 1 ? (_e <= this.page && (Le.current[this.axis] -= qe, Le.target[this.axis] -= qe), Le.panTo({ [this.isHorizontal ? "x" : "y"]: -1 * Fe })) : Ue && _e <= this.page && (Le.target[this.axis] -= Ue, Le.current[this.axis] -= Ue, Le.requestTick());
2751
2751
  }
2752
2752
  for (const Fe of je) this.emit("initSlide", Fe, Fe.index);
2753
2753
  }
@@ -2825,11 +2825,11 @@ class Q extends g {
2825
2825
  const { viewportDim: ke, contentDim: $e, slides: Ne, pages: Ve, panzoom: De } = this, Le = Ve.length, Re = Ne.length, Ie = Ne[0], Ae = Ne[Re - 1], ze = this.option("center");
2826
2826
  let je = 0, Fe = 0, He = 0, We = _e === void 0 ? -1 * ((De == null ? void 0 : De.target[this.axis]) || 0) : _e;
2827
2827
  ze && (We += 0.5 * ke), this.isInfinite ? (We < Ie.pos - 0.5 * Ae.gap && (We -= $e, He = -1), We > Ae.pos + Ae.dim + 0.5 * Ae.gap && (We -= $e, He = 1)) : We = Math.max(Ie.pos || 0, Math.min(We, Ae.pos));
2828
- let qe = Ae, Ze = Ne.find((Xe) => {
2829
- const Je = Xe.pos - 0.5 * qe.gap, Ue = Xe.pos + Xe.dim + 0.5 * Xe.gap;
2830
- return qe = Xe, We >= Je && We < Ue;
2828
+ let qe = Ae, Ue = Ne.find((Ye) => {
2829
+ const Ke = Ye.pos - 0.5 * qe.gap, Xe = Ye.pos + Ye.dim + 0.5 * Ye.gap;
2830
+ return qe = Ye, We >= Ke && We < Xe;
2831
2831
  });
2832
- return Ze || (Ze = Ae), Fe = this.getPageForSlide(Ze.index), je = Fe + He * Le, { page: je, pageIndex: Fe };
2832
+ return Ue || (Ue = Ae), Fe = this.getPageForSlide(Ue.index), je = Fe + He * Le, { page: je, pageIndex: Fe };
2833
2833
  }
2834
2834
  setPageFromPosition() {
2835
2835
  const { pageIndex: _e } = this.getPageFromPosition();
@@ -2963,9 +2963,9 @@ class wt extends _ {
2963
2963
  (((_e = window.visualViewport) === null || _e === void 0 ? void 0 : _e.scale) || 1) === 1 && Object.assign($e.style, { position: "absolute", top: `${$e.offsetTop + window.scrollY}px`, left: `${$e.offsetLeft + window.scrollX}px`, bottom: "auto", right: "auto", width: `${Ae.width}px`, height: `${Ae.height}px`, overflow: "hidden" });
2964
2964
  const { x: ze, y: je, scale: Fe, opacity: He } = Ie;
2965
2965
  if (He) {
2966
- const We = ((qe, Ze, Xe, Je) => {
2967
- const Ue = Ze - qe, Qe = Je - Xe;
2968
- return (ni) => Xe + ((ni - qe) / Ue * Qe || 0);
2966
+ const We = ((qe, Ue, Ye, Ke) => {
2967
+ const Xe = Ue - qe, Qe = Ke - Ye;
2968
+ return (ii) => Ye + ((ii - qe) / Xe * Qe || 0);
2969
2969
  })(Le.scale, Fe, 1, 0);
2970
2970
  Le.on("afterTransform", () => {
2971
2971
  De.style.opacity = We(Le.scale) + "";
@@ -2999,8 +2999,8 @@ class wt extends _ {
2999
2999
  }, 200));
3000
3000
  };
3001
3001
  (Ae = Le, new Promise((We, qe) => {
3002
- const Ze = new Image();
3003
- Ze.onload = We, Ze.onerror = qe, Ze.src = Ae;
3002
+ const Ue = new Image();
3003
+ Ue.onload = We, Ue.onerror = qe, Ue.src = Ae;
3004
3004
  })).then(() => {
3005
3005
  $e.hideLoading(_e), _e.state = lt.Opening, this.instance.emit("reveal", _e), this.zoomIn(_e).then(() => {
3006
3006
  He(), this.instance.done(_e);
@@ -3063,14 +3063,14 @@ class wt extends _ {
3063
3063
  if (!(Ie && Re && Le && De && Ve)) return void $e();
3064
3064
  const { x: Ae, y: ze, scale: je, opacity: Fe } = Ie, He = () => {
3065
3065
  _e.state !== lt.Closing && (Fe && (Le.style.opacity = Math.max(Math.min(1, 1 - (1 - De.scale) / (1 - je)), 0) + ""), De.scale >= 1 && De.scale > De.targetScale - 0.1 && ke(De));
3066
- }, We = (Xe) => {
3067
- (Xe.scale < 0.99 || Xe.scale > 1.01) && !Xe.isDragging || (S(Ve, yt), Le.style.opacity = "", Xe.off("endAnimation", We), Xe.off("touchStart", We), Xe.off("afterTransform", He), ke(Xe));
3066
+ }, We = (Ye) => {
3067
+ (Ye.scale < 0.99 || Ye.scale > 1.01) && !Ye.isDragging || (S(Ve, yt), Le.style.opacity = "", Ye.off("endAnimation", We), Ye.off("touchStart", We), Ye.off("afterTransform", He), ke(Ye));
3068
3068
  };
3069
3069
  De.on("endAnimation", We), De.on("touchStart", We), De.on("afterTransform", He), De.on(["error", "destroy"], () => {
3070
3070
  $e();
3071
3071
  }), De.panTo({ x: Ae, y: ze, scale: je, friction: 0, ignoreBounds: !0 }), De.stop("current");
3072
- const qe = { event: De.panMode === "mousemove" ? Ne.prevMouseMoveEvent || Ne.options.event : void 0 }, Ze = this.optionFor(_e, "initialSize");
3073
- P(Ve, yt), Ne.hideLoading(_e), Ze === "full" ? De.zoomToFull(qe) : Ze === "cover" ? De.zoomToCover(qe) : Ze === "max" ? De.zoomToMax(qe) : De.reset(0.172);
3072
+ const qe = { event: De.panMode === "mousemove" ? Ne.prevMouseMoveEvent || Ne.options.event : void 0 }, Ue = this.optionFor(_e, "initialSize");
3073
+ P(Ve, yt), Ne.hideLoading(_e), Ue === "full" ? De.zoomToFull(qe) : Ue === "cover" ? De.zoomToCover(qe) : Ue === "max" ? De.zoomToMax(qe) : De.reset(0.172);
3074
3074
  });
3075
3075
  }
3076
3076
  getZoomInfo(_e) {
@@ -3080,11 +3080,11 @@ class wt extends _ {
3080
3080
  if ((Re ? Re.scale : 1) !== 1) return !1;
3081
3081
  let { top: Ie, left: Ae, width: ze, height: je } = Ne.getBoundingClientRect(), { top: Fe, left: He, fitWidth: We, fitHeight: qe } = Ve.contentRect;
3082
3082
  if (!(ze && je && We && qe)) return !1;
3083
- const Ze = Ve.container.getBoundingClientRect();
3084
- He += Ze.left, Fe += Ze.top;
3085
- const Xe = -1 * (He + 0.5 * We - (Ae + 0.5 * ze)), Je = -1 * (Fe + 0.5 * qe - (Ie + 0.5 * je)), Ue = ze / We;
3083
+ const Ue = Ve.container.getBoundingClientRect();
3084
+ He += Ue.left, Fe += Ue.top;
3085
+ const Ye = -1 * (He + 0.5 * We - (Ae + 0.5 * ze)), Ke = -1 * (Fe + 0.5 * qe - (Ie + 0.5 * je)), Xe = ze / We;
3086
3086
  let Qe = this.option("zoomOpacity") || !1;
3087
- return Qe === "auto" && (Qe = Math.abs(ze / je - We / qe) > 0.1), { x: Xe, y: Je, scale: Ue, opacity: Qe };
3087
+ return Qe === "auto" && (Qe = Math.abs(ze / je - We / qe) > 0.1), { x: Ye, y: Ke, scale: Xe, opacity: Qe };
3088
3088
  }
3089
3089
  attach() {
3090
3090
  const _e = this, ke = _e.instance;
@@ -3592,8 +3592,8 @@ let $t = class extends _ {
3592
3592
  }
3593
3593
  return [-1, void 0];
3594
3594
  }, Ve = (We, qe) => {
3595
- const Ze = document.elementFromPoint(We, qe);
3596
- return Ze ? Ne(Ze) : [-1, void 0];
3595
+ const Ue = document.elementFromPoint(We, qe);
3596
+ return Ue ? Ne(Ue) : [-1, void 0];
3597
3597
  };
3598
3598
  let [De, Le] = Ne(Be.target);
3599
3599
  if (De > -1) return;
@@ -3609,8 +3609,8 @@ let $t = class extends _ {
3609
3609
  if (!(!((_e = Ne.slides[Be]) === null || _e === void 0) && _e.el)) return 0;
3610
3610
  const Ie = 0.5 * (Ve - De), Ae = $e.pages.length - 1;
3611
3611
  let ze = $e.getProgress(0), je = $e.getProgress(Ae), Fe = $e.getProgress(Be, !1, !0), He = 0, We = Ie + Re + Le;
3612
- const qe = ze < 0 && ze > -1, Ze = je > 0 && je < 1;
3613
- return Be === 0 ? (He = We * Math.abs(ze), Ze && ze === 1 && (He -= We * Math.abs(je))) : Be === Ae ? (He = We * Math.abs(je) * -1, qe && je === -1 && (He += We * Math.abs(ze))) : qe || Ze ? (He = -1 * We, He += We * Math.abs(ze), He += We * (1 - Math.abs(je))) : He = We * Fe, He;
3612
+ const qe = ze < 0 && ze > -1, Ue = je > 0 && je < 1;
3613
+ return Be === 0 ? (He = We * Math.abs(ze), Ue && ze === 1 && (He -= We * Math.abs(je))) : Be === Ae ? (He = We * Math.abs(je) * -1, qe && je === -1 && (He += We * Math.abs(ze))) : qe || Ue ? (He = -1 * We, He += We * Math.abs(ze), He += We * (1 - Math.abs(je))) : He = We * Fe, He;
3614
3614
  }
3615
3615
  setProps(Be) {
3616
3616
  var _e;
@@ -4154,11 +4154,11 @@ class Oe extends g {
4154
4154
  const He = !Fe.offsetParent || !!Fe.closest('[aria-hidden="true"]'), We = Re && Re.contains(Fe), qe = !De.contains(Fe);
4155
4155
  if (Fe === Ve || (We || qe) && !He) {
4156
4156
  Ae.push(Fe);
4157
- const Ze = Fe.dataset.origTabindex;
4158
- Ze !== void 0 && Ze && (Fe.tabIndex = parseFloat(Ze)), Fe.removeAttribute("data-orig-tabindex"), !Fe.hasAttribute("autoFocus") && ze || (ze = Fe);
4157
+ const Ue = Fe.dataset.origTabindex;
4158
+ Ue !== void 0 && Ue && (Fe.tabIndex = parseFloat(Ue)), Fe.removeAttribute("data-orig-tabindex"), !Fe.hasAttribute("autoFocus") && ze || (ze = Fe);
4159
4159
  } else {
4160
- const Ze = Fe.dataset.origTabindex === void 0 ? Fe.getAttribute("tabindex") || "" : Fe.dataset.origTabindex;
4161
- Ze && (Fe.dataset.origTabindex = Ze), Fe.tabIndex = -1;
4160
+ const Ue = Fe.dataset.origTabindex === void 0 ? Fe.getAttribute("tabindex") || "" : Fe.dataset.origTabindex;
4161
+ Ue && (Fe.dataset.origTabindex = Ue), Fe.tabIndex = -1;
4162
4162
  }
4163
4163
  }
4164
4164
  let je = null;
@@ -4363,9 +4363,9 @@ class Oe extends g {
4363
4363
  }
4364
4364
  if (!(ke && ke instanceof Element)) return;
4365
4365
  let Ne, Ve, De, Le;
4366
- if ([...Oe.openers].reverse().find(([He, We]) => !(!He.contains(ke) || ![...We].reverse().find(([qe, Ze]) => {
4367
- let Xe = ke.closest(qe);
4368
- return !!Xe && (Ne = He, Ve = qe, De = Xe, Le = Ze, !0);
4366
+ if ([...Oe.openers].reverse().find(([He, We]) => !(!He.contains(ke) || ![...We].reverse().find(([qe, Ue]) => {
4367
+ let Ye = ke.closest(qe);
4368
+ return !!Ye && (Ne = He, Ve = qe, De = Ye, Le = Ue, !0);
4369
4369
  }))), !Ne || !Ve || !De) return;
4370
4370
  Le = Le || {}, _e.preventDefault(), ke = De;
4371
4371
  let Re = [], Ie = u({}, at, Le);
@@ -4621,7 +4621,7 @@ function updateSwiper(Be) {
4621
4621
  scrollbarEl: Le,
4622
4622
  paginationEl: Re
4623
4623
  } = Be;
4624
- const Ie = Ne.filter((Ye) => Ye !== "children" && Ye !== "direction" && Ye !== "wrapperClass"), {
4624
+ const Ie = Ne.filter((Ze) => Ze !== "children" && Ze !== "direction" && Ze !== "wrapperClass"), {
4625
4625
  params: Ae,
4626
4626
  pagination: ze,
4627
4627
  navigation: je,
@@ -4629,19 +4629,19 @@ function updateSwiper(Be) {
4629
4629
  virtual: He,
4630
4630
  thumbs: We
4631
4631
  } = _e;
4632
- let qe, Ze, Xe, Je, Ue, Qe, ni, ti;
4633
- 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 && (Ze = !0), Ne.includes("pagination") && $e.pagination && ($e.pagination.el || Re) && (Ae.pagination || Ae.pagination === !1) && ze && !ze.el && (Xe = !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 && (Ue = !0);
4634
- const Ge = (Ye) => {
4635
- _e[Ye] && (_e[Ye].destroy(), Ye === "navigation" ? (_e.isElement && (_e[Ye].prevEl.remove(), _e[Ye].nextEl.remove()), Ae[Ye].prevEl = void 0, Ae[Ye].nextEl = void 0, _e[Ye].prevEl = void 0, _e[Ye].nextEl = void 0) : (_e.isElement && _e[Ye].el.remove(), Ae[Ye].el = void 0, _e[Ye].el = void 0));
4632
+ let qe, Ue, Ye, Ke, Xe, Qe, ii, ei;
4633
+ Ne.includes("thumbs") && $e.thumbs && $e.thumbs.swiper && !$e.thumbs.swiper.destroyed && Ae.thumbs && (!Ae.thumbs.swiper || Ae.thumbs.swiper.destroyed) && (qe = !0), Ne.includes("controller") && $e.controller && $e.controller.control && Ae.controller && !Ae.controller.control && (Ue = !0), Ne.includes("pagination") && $e.pagination && ($e.pagination.el || Re) && (Ae.pagination || Ae.pagination === !1) && ze && !ze.el && (Ye = !0), Ne.includes("scrollbar") && $e.scrollbar && ($e.scrollbar.el || Le) && (Ae.scrollbar || Ae.scrollbar === !1) && Fe && !Fe.el && (Ke = !0), Ne.includes("navigation") && $e.navigation && ($e.navigation.prevEl || De) && ($e.navigation.nextEl || Ve) && (Ae.navigation || Ae.navigation === !1) && je && !je.prevEl && !je.nextEl && (Xe = !0);
4634
+ const Ge = (Ze) => {
4635
+ _e[Ze] && (_e[Ze].destroy(), Ze === "navigation" ? (_e.isElement && (_e[Ze].prevEl.remove(), _e[Ze].nextEl.remove()), Ae[Ze].prevEl = void 0, Ae[Ze].nextEl = void 0, _e[Ze].prevEl = void 0, _e[Ze].nextEl = void 0) : (_e.isElement && _e[Ze].el.remove(), Ae[Ze].el = void 0, _e[Ze].el = void 0));
4636
4636
  };
4637
- Ne.includes("loop") && _e.isElement && (Ae.loop && !$e.loop ? Qe = !0 : !Ae.loop && $e.loop ? ni = !0 : ti = !0), Ie.forEach((Ye) => {
4638
- if (isObject(Ae[Ye]) && isObject($e[Ye]))
4639
- Object.assign(Ae[Ye], $e[Ye]), (Ye === "navigation" || Ye === "pagination" || Ye === "scrollbar") && "enabled" in $e[Ye] && !$e[Ye].enabled && Ge(Ye);
4637
+ Ne.includes("loop") && _e.isElement && (Ae.loop && !$e.loop ? Qe = !0 : !Ae.loop && $e.loop ? ii = !0 : ei = !0), Ie.forEach((Ze) => {
4638
+ if (isObject(Ae[Ze]) && isObject($e[Ze]))
4639
+ Object.assign(Ae[Ze], $e[Ze]), (Ze === "navigation" || Ze === "pagination" || Ze === "scrollbar") && "enabled" in $e[Ze] && !$e[Ze].enabled && Ge(Ze);
4640
4640
  else {
4641
- const Ke = $e[Ye];
4642
- (Ke === !0 || Ke === !1) && (Ye === "navigation" || Ye === "pagination" || Ye === "scrollbar") ? Ke === !1 && Ge(Ye) : Ae[Ye] = $e[Ye];
4641
+ const ti = $e[Ze];
4642
+ (ti === !0 || ti === !1) && (Ze === "navigation" || Ze === "pagination" || Ze === "scrollbar") ? ti === !1 && Ge(Ze) : Ae[Ze] = $e[Ze];
4643
4643
  }
4644
- }), Ie.includes("controller") && !Ze && _e.controller && _e.controller.control && Ae.controller && Ae.controller.control && (_e.controller.control = Ae.controller.control), Ne.includes("children") && ke && He && Ae.virtual.enabled ? (He.slides = ke, He.update(!0)) : Ne.includes("virtual") && He && Ae.virtual.enabled && (ke && (He.slides = ke), He.update(!0)), Ne.includes("children") && ke && Ae.loop && (ti = !0), qe && We.init() && We.update(!0), Ze && (_e.controller.control = Ae.controller.control), Xe && (_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()), Ue && (_e.isElement && ((!Ve || typeof Ve == "string") && (Ve = document.createElement("div"), Ve.classList.add("swiper-button-next"), setInnerHTML(Ve, _e.hostEl.constructor.nextButtonSvg), Ve.part.add("button-next"), _e.el.appendChild(Ve)), (!De || typeof De == "string") && (De = document.createElement("div"), De.classList.add("swiper-button-prev"), setInnerHTML(De, _e.hostEl.constructor.prevButtonSvg), De.part.add("button-prev"), _e.el.appendChild(De))), Ve && (Ae.navigation.nextEl = Ve), De && (Ae.navigation.prevEl = De), je.init(), je.update()), Ne.includes("allowSlideNext") && (_e.allowSlideNext = $e.allowSlideNext), Ne.includes("allowSlidePrev") && (_e.allowSlidePrev = $e.allowSlidePrev), Ne.includes("direction") && _e.changeDirection($e.direction, !1), (Qe || ti) && _e.loopDestroy(), (ni || ti) && _e.loopCreate(), _e.update();
4644
+ }), Ie.includes("controller") && !Ue && _e.controller && _e.controller.control && Ae.controller && Ae.controller.control && (_e.controller.control = Ae.controller.control), Ne.includes("children") && ke && He && Ae.virtual.enabled ? (He.slides = ke, He.update(!0)) : Ne.includes("virtual") && He && Ae.virtual.enabled && (ke && (He.slides = ke), He.update(!0)), Ne.includes("children") && ke && Ae.loop && (ei = !0), qe && We.init() && We.update(!0), Ue && (_e.controller.control = Ae.controller.control), Ye && (_e.isElement && (!Re || typeof Re == "string") && (Re = document.createElement("div"), Re.classList.add("swiper-pagination"), Re.part.add("pagination"), _e.el.appendChild(Re)), Re && (Ae.pagination.el = Re), ze.init(), ze.render(), ze.update()), Ke && (_e.isElement && (!Le || typeof Le == "string") && (Le = document.createElement("div"), Le.classList.add("swiper-scrollbar"), Le.part.add("scrollbar"), _e.el.appendChild(Le)), Le && (Ae.scrollbar.el = Le), Fe.init(), Fe.updateSize(), Fe.setTranslate()), Xe && (_e.isElement && ((!Ve || typeof Ve == "string") && (Ve = document.createElement("div"), Ve.classList.add("swiper-button-next"), setInnerHTML(Ve, _e.hostEl.constructor.nextButtonSvg), Ve.part.add("button-next"), _e.el.appendChild(Ve)), (!De || typeof De == "string") && (De = document.createElement("div"), De.classList.add("swiper-button-prev"), setInnerHTML(De, _e.hostEl.constructor.prevButtonSvg), De.part.add("button-prev"), _e.el.appendChild(De))), Ve && (Ae.navigation.nextEl = Ve), De && (Ae.navigation.prevEl = De), je.init(), je.update()), Ne.includes("allowSlideNext") && (_e.allowSlideNext = $e.allowSlideNext), Ne.includes("allowSlidePrev") && (_e.allowSlidePrev = $e.allowSlidePrev), Ne.includes("direction") && _e.changeDirection($e.direction, !1), (Qe || ei) && _e.loopDestroy(), (ii || ei) && _e.loopCreate(), _e.update();
4645
4645
  }
4646
4646
  function getParams(Be, _e) {
4647
4647
  Be === void 0 && (Be = {});
@@ -5222,34 +5222,34 @@ const Swiper = {
5222
5222
  value: []
5223
5223
  }, He = {
5224
5224
  value: []
5225
- }, We = ref(null), qe = ref(null), Ze = ref(null), Xe = ref(null), {
5226
- params: Je,
5227
- passedParams: Ue
5225
+ }, We = ref(null), qe = ref(null), Ue = ref(null), Ye = ref(null), {
5226
+ params: Ke,
5227
+ passedParams: Xe
5228
5228
  } = getParams(Be);
5229
- getChildren(ke, Fe, He), je.value = Ue, He.value = Fe.value;
5229
+ getChildren(ke, Fe, He), je.value = Xe, He.value = Fe.value;
5230
5230
  const Qe = () => {
5231
5231
  getChildren(ke, Fe, He), Re.value = !0;
5232
5232
  };
5233
- Je.onAny = function(Ge) {
5234
- for (var Ye = arguments.length, Ke = new Array(Ye > 1 ? Ye - 1 : 0), ei = 1; ei < Ye; ei++)
5235
- Ke[ei - 1] = arguments[ei];
5236
- $e(Ge, ...Ke);
5237
- }, Object.assign(Je.on, {
5233
+ Ke.onAny = function(Ge) {
5234
+ for (var Ze = arguments.length, ti = new Array(Ze > 1 ? Ze - 1 : 0), Je = 1; Je < Ze; Je++)
5235
+ ti[Je - 1] = arguments[Je];
5236
+ $e(Ge, ...ti);
5237
+ }, Object.assign(Ke.on, {
5238
5238
  _beforeBreakpoint: Qe,
5239
- _containerClasses(Ge, Ye) {
5240
- De.value = Ye;
5239
+ _containerClasses(Ge, Ze) {
5240
+ De.value = Ze;
5241
5241
  }
5242
5242
  });
5243
- const ni = {
5244
- ...Je
5243
+ const ii = {
5244
+ ...Ke
5245
5245
  };
5246
- if (delete ni.wrapperClass, ze.value = new Swiper$1(ni), ze.value.virtual && ze.value.params.virtual.enabled) {
5246
+ if (delete ii.wrapperClass, ze.value = new Swiper$1(ii), ze.value.virtual && ze.value.params.virtual.enabled) {
5247
5247
  ze.value.virtual.slides = Fe.value;
5248
5248
  const Ge = {
5249
5249
  cache: !1,
5250
5250
  slides: Fe.value,
5251
- renderExternal: (Ye) => {
5252
- Le.value = Ye;
5251
+ renderExternal: (Ze) => {
5252
+ Le.value = Ze;
5253
5253
  },
5254
5254
  renderExternalUpdate: !1
5255
5255
  };
@@ -5259,16 +5259,16 @@ const Swiper = {
5259
5259
  !Ie.value && ze.value && (ze.value.emitSlidesClasses(), Ie.value = !0);
5260
5260
  const {
5261
5261
  passedParams: Ge
5262
- } = getParams(Be), Ye = getChangedParams(Ge, je.value, Fe.value, He.value, (Ke) => Ke.props && Ke.props.key);
5263
- je.value = Ge, (Ye.length || Re.value) && ze.value && !ze.value.destroyed && updateSwiper({
5262
+ } = getParams(Be), Ze = getChangedParams(Ge, je.value, Fe.value, He.value, (ti) => ti.props && ti.props.key);
5263
+ je.value = Ge, (Ze.length || Re.value) && ze.value && !ze.value.destroyed && updateSwiper({
5264
5264
  swiper: ze.value,
5265
5265
  slides: Fe.value,
5266
5266
  passedParams: Ge,
5267
- changedParams: Ye,
5267
+ changedParams: Ze,
5268
5268
  nextEl: We.value,
5269
5269
  prevEl: qe.value,
5270
- scrollbarEl: Xe.value,
5271
- paginationEl: Ze.value
5270
+ scrollbarEl: Ye.value,
5271
+ paginationEl: Ue.value
5272
5272
  }), Re.value = !1;
5273
5273
  }), provide("swiper", ze), watch(Le, () => {
5274
5274
  nextTick(() => {
@@ -5279,41 +5279,41 @@ const Swiper = {
5279
5279
  el: Ae.value,
5280
5280
  nextEl: We.value,
5281
5281
  prevEl: qe.value,
5282
- paginationEl: Ze.value,
5283
- scrollbarEl: Xe.value,
5282
+ paginationEl: Ue.value,
5283
+ scrollbarEl: Ye.value,
5284
5284
  swiper: ze.value
5285
- }, Je), $e("swiper", ze.value));
5285
+ }, Ke), $e("swiper", ze.value));
5286
5286
  }), onBeforeUnmount(() => {
5287
5287
  ze.value && !ze.value.destroyed && ze.value.destroy(!0, !1);
5288
5288
  });
5289
- function ti(Ge) {
5290
- return Je.virtual ? renderVirtual(ze, Ge, Le.value) : (Ge.forEach((Ye, Ke) => {
5291
- Ye.props || (Ye.props = {}), Ye.props.swiperRef = ze, Ye.props.swiperSlideIndex = Ke;
5289
+ function ei(Ge) {
5290
+ return Ke.virtual ? renderVirtual(ze, Ge, Le.value) : (Ge.forEach((Ze, ti) => {
5291
+ Ze.props || (Ze.props = {}), Ze.props.swiperRef = ze, Ze.props.swiperSlideIndex = ti;
5292
5292
  }), Ge);
5293
5293
  }
5294
5294
  return () => {
5295
5295
  const {
5296
5296
  slides: Ge,
5297
- slots: Ye
5297
+ slots: Ze
5298
5298
  } = getChildren(ke, Fe, He);
5299
5299
  return h$1(Ne, {
5300
5300
  ref: Ae,
5301
5301
  class: uniqueClasses(De.value)
5302
- }, [Ye["container-start"], h$1(Ve, {
5303
- class: wrapperClass(Je.wrapperClass)
5304
- }, [Ye["wrapper-start"], ti(Ge), Ye["wrapper-end"]]), needsNavigation(Be) && [h$1("div", {
5302
+ }, [Ze["container-start"], h$1(Ve, {
5303
+ class: wrapperClass(Ke.wrapperClass)
5304
+ }, [Ze["wrapper-start"], ei(Ge), Ze["wrapper-end"]]), needsNavigation(Be) && [h$1("div", {
5305
5305
  ref: qe,
5306
5306
  class: "swiper-button-prev"
5307
5307
  }), h$1("div", {
5308
5308
  ref: We,
5309
5309
  class: "swiper-button-next"
5310
5310
  })], needsScrollbar(Be) && h$1("div", {
5311
- ref: Xe,
5311
+ ref: Ye,
5312
5312
  class: "swiper-scrollbar"
5313
5313
  }), needsPagination(Be) && h$1("div", {
5314
- ref: Ze,
5314
+ ref: Ue,
5315
5315
  class: "swiper-pagination"
5316
- }), Ye["container-end"]]);
5316
+ }), Ze["container-end"]]);
5317
5317
  };
5318
5318
  }
5319
5319
  }, SwiperSlide = {
@@ -5426,8 +5426,8 @@ function Navigation(Be) {
5426
5426
  }
5427
5427
  function De(He, We) {
5428
5428
  const qe = _e.params.navigation;
5429
- He = makeElementsArray(He), He.forEach((Ze) => {
5430
- Ze && (Ze.classList[We ? "add" : "remove"](...qe.disabledClass.split(" ")), Ze.tagName === "BUTTON" && (Ze.disabled = We), _e.params.watchOverflow && _e.enabled && Ze.classList[_e.isLocked ? "add" : "remove"](qe.lockClass));
5429
+ He = makeElementsArray(He), He.forEach((Ue) => {
5430
+ Ue && (Ue.classList[We ? "add" : "remove"](...qe.disabledClass.split(" ")), Ue.tagName === "BUTTON" && (Ue.disabled = We), _e.params.watchOverflow && _e.enabled && Ue.classList[_e.isLocked ? "add" : "remove"](qe.lockClass));
5431
5431
  });
5432
5432
  }
5433
5433
  function Le() {
@@ -5458,10 +5458,10 @@ function Navigation(Be) {
5458
5458
  nextEl: We,
5459
5459
  prevEl: qe
5460
5460
  }), We = makeElementsArray(We), qe = makeElementsArray(qe);
5461
- const Ze = (Xe, Je) => {
5462
- Xe && Xe.addEventListener("click", Je === "next" ? Ie : Re), !_e.enabled && Xe && Xe.classList.add(...He.lockClass.split(" "));
5461
+ const Ue = (Ye, Ke) => {
5462
+ Ye && Ye.addEventListener("click", Ke === "next" ? Ie : Re), !_e.enabled && Ye && Ye.classList.add(...He.lockClass.split(" "));
5463
5463
  };
5464
- We.forEach((Xe) => Ze(Xe, "next")), qe.forEach((Xe) => Ze(Xe, "prev"));
5464
+ We.forEach((Ye) => Ue(Ye, "next")), qe.forEach((Ye) => Ue(Ye, "prev"));
5465
5465
  }
5466
5466
  function ze() {
5467
5467
  let {
@@ -5469,10 +5469,10 @@ function Navigation(Be) {
5469
5469
  prevEl: We
5470
5470
  } = _e.navigation;
5471
5471
  He = makeElementsArray(He), We = makeElementsArray(We);
5472
- const qe = (Ze, Xe) => {
5473
- Ze.removeEventListener("click", Xe === "next" ? Ie : Re), Ze.classList.remove(..._e.params.navigation.disabledClass.split(" "));
5472
+ const qe = (Ue, Ye) => {
5473
+ Ue.removeEventListener("click", Ye === "next" ? Ie : Re), Ue.classList.remove(..._e.params.navigation.disabledClass.split(" "));
5474
5474
  };
5475
- He.forEach((Ze) => qe(Ze, "next")), We.forEach((Ze) => qe(Ze, "prev"));
5475
+ He.forEach((Ue) => qe(Ue, "next")), We.forEach((Ue) => qe(Ue, "prev"));
5476
5476
  }
5477
5477
  $e("init", () => {
5478
5478
  _e.params.navigation.enabled === !1 ? Fe() : (Ae(), Le());
@@ -5493,19 +5493,19 @@ function Navigation(Be) {
5493
5493
  }), $e("click", (He, We) => {
5494
5494
  let {
5495
5495
  nextEl: qe,
5496
- prevEl: Ze
5496
+ prevEl: Ue
5497
5497
  } = _e.navigation;
5498
- qe = makeElementsArray(qe), Ze = makeElementsArray(Ze);
5499
- const Xe = We.target;
5500
- let Je = Ze.includes(Xe) || qe.includes(Xe);
5501
- if (_e.isElement && !Je) {
5502
- const Ue = We.path || We.composedPath && We.composedPath();
5503
- Ue && (Je = Ue.find((Qe) => qe.includes(Qe) || Ze.includes(Qe)));
5498
+ qe = makeElementsArray(qe), Ue = makeElementsArray(Ue);
5499
+ const Ye = We.target;
5500
+ let Ke = Ue.includes(Ye) || qe.includes(Ye);
5501
+ if (_e.isElement && !Ke) {
5502
+ const Xe = We.path || We.composedPath && We.composedPath();
5503
+ Xe && (Ke = Xe.find((Qe) => qe.includes(Qe) || Ue.includes(Qe)));
5504
5504
  }
5505
- if (_e.params.navigation.hideOnClick && !Je) {
5506
- if (_e.pagination && _e.params.pagination && _e.params.pagination.clickable && (_e.pagination.el === Xe || _e.pagination.el.contains(Xe))) return;
5507
- let Ue;
5508
- qe.length ? Ue = qe[0].classList.contains(_e.params.navigation.hiddenClass) : Ze.length && (Ue = Ze[0].classList.contains(_e.params.navigation.hiddenClass)), Ne(Ue === !0 ? "navigationShow" : "navigationHide"), [...qe, ...Ze].filter((Qe) => !!Qe).forEach((Qe) => Qe.classList.toggle(_e.params.navigation.hiddenClass));
5505
+ if (_e.params.navigation.hideOnClick && !Ke) {
5506
+ if (_e.pagination && _e.params.pagination && _e.params.pagination.clickable && (_e.pagination.el === Ye || _e.pagination.el.contains(Ye))) return;
5507
+ let Xe;
5508
+ qe.length ? Xe = qe[0].classList.contains(_e.params.navigation.hiddenClass) : Ue.length && (Xe = Ue[0].classList.contains(_e.params.navigation.hiddenClass)), Ne(Xe === !0 ? "navigationShow" : "navigationHide"), [...qe, ...Ue].filter((Qe) => !!Qe).forEach((Qe) => Qe.classList.toggle(_e.params.navigation.hiddenClass));
5509
5509
  }
5510
5510
  });
5511
5511
  const je = () => {
@@ -5544,13 +5544,13 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5544
5544
  }])
5545
5545
  }, toDisplayString(Be.title), 3));
5546
5546
  }
5547
- }), _hoisted_1$o = { class: "ire-flex ire-h-full ire-w-full ire-flex-col ire-justify-between ire-overflow-hidden" }, _hoisted_2$e = { class: "ire-w-fit ire-p-4" }, _hoisted_3$e = { class: "ire-relative ire-grid ire-overflow-hidden" }, _hoisted_4$a = ["data-fancybox", "href"], _hoisted_5$4 = ["src"], _hoisted_6$5 = { class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full" }, _hoisted_7$4 = { class: "flex ire-flex-wrap ire-items-center ire-justify-center ire-gap-4 ire-p-4 lg:ire-gap-8" }, _hoisted_8$3 = {
5547
+ }), _hoisted_1$o = { class: "ire-flex ire-h-full ire-w-full ire-flex-col ire-justify-between ire-overflow-hidden" }, _hoisted_2$e = { class: "ire-w-fit ire-p-4" }, _hoisted_3$e = { class: "ire-relative ire-grid ire-min-h-52 ire-overflow-hidden" }, _hoisted_4$a = ["data-fancybox", "href"], _hoisted_5$8 = ["src"], _hoisted_6$5 = { class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full" }, _hoisted_7$4 = { class: "flex ire-flex-wrap ire-items-center ire-justify-center ire-gap-4 ire-p-4 lg:ire-gap-8" }, _hoisted_8$2 = {
5548
5548
  key: 0,
5549
5549
  class: "ire-flex ire-items-center ire-gap-3"
5550
- }, _hoisted_9$3 = {
5550
+ }, _hoisted_9$2 = {
5551
5551
  key: 0,
5552
5552
  class: "ire-absolute ire-right-4 ire-top-4 ire-z-20 ire-aspect-square ire-cursor-pointer md:ire-bottom-4 md:ire-left-4 md:ire-right-[unset] md:ire-top-[unset]"
5553
- }, _hoisted_10$3 = {
5553
+ }, _hoisted_10$2 = {
5554
5554
  href: "https://www.ireplugin.com/",
5555
5555
  target: "_blank"
5556
5556
  }, _sfc_main$r = /* @__PURE__ */ defineComponent({
@@ -5560,14 +5560,14 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5560
5560
  },
5561
5561
  setup(Be) {
5562
5562
  const _e = Be, ke = useGlobalStore(), { getMetaValue: $e } = ke, { irePlaginWp: Ne } = storeToRefs(ke), Ve = ref(), De = ref(!1), Le = ref(0), Re = ref(!1), Ie = ref(0), Ae = computed$1(() => {
5563
- var We, qe, Ze, Xe, Je, Ue;
5564
- return !!((Ze = (qe = (We = _e.flat) == null ? void 0 : We.type) == null ? void 0 : qe.image_2d) != null && Ze.length && ((Ue = (Je = (Xe = _e.flat) == null ? void 0 : Xe.type) == null ? void 0 : Je.image_3d) != null && Ue.length));
5563
+ var We, qe, Ue, Ye, Ke, Xe;
5564
+ return !!((Ue = (qe = (We = _e.flat) == null ? void 0 : We.type) == null ? void 0 : qe.image_2d) != null && Ue.length && ((Xe = (Ke = (Ye = _e.flat) == null ? void 0 : Ye.type) == null ? void 0 : Ke.image_3d) != null && Xe.length));
5565
5565
  }), ze = computed$1(() => {
5566
5566
  var We;
5567
5567
  return $e("shareable_link") === "true" && ((We = Ne.value) == null ? void 0 : We.is_gold);
5568
5568
  }), je = computed$1(() => {
5569
- var qe, Ze, Xe, Je, Ue, Qe;
5570
- return (De.value && ((Ze = (qe = _e.flat.type) == null ? void 0 : qe.image_2d) != null && Ze.length) ? (Xe = _e.flat.type) == null ? void 0 : Xe.image_2d : !De.value && ((Ue = (Je = _e.flat.type) == null ? void 0 : Je.image_3d) != null && Ue.length) ? (Qe = _e.flat.type) == null ? void 0 : Qe.image_3d : []).slice(0, 6);
5569
+ var qe, Ue, Ye, Ke, Xe, Qe;
5570
+ return (De.value && ((Ue = (qe = _e.flat.type) == null ? void 0 : qe.image_2d) != null && Ue.length) ? (Ye = _e.flat.type) == null ? void 0 : Ye.image_2d : !De.value && ((Xe = (Ke = _e.flat.type) == null ? void 0 : Ke.image_3d) != null && Xe.length) ? (Qe = _e.flat.type) == null ? void 0 : Qe.image_3d : []).slice(0, 6);
5571
5571
  }), Fe = async () => {
5572
5572
  Re.value || !ze.value || (await copyToClipboard(window.location.href), Re.value = !0, setTimeout(() => {
5573
5573
  Re.value = !1;
@@ -5579,16 +5579,16 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5579
5579
  () => De.value,
5580
5580
  () => {
5581
5581
  Le.value = 0, Ie.value++, setTimeout(() => {
5582
- var We, qe, Ze, Xe;
5583
- (qe = (We = Ve.value) == null ? void 0 : We.navigation) == null || qe.init(), (Xe = (Ze = Ve.value) == null ? void 0 : Ze.navigation) == null || Xe.update();
5582
+ var We, qe, Ue, Ye;
5583
+ (qe = (We = Ve.value) == null ? void 0 : We.navigation) == null || qe.init(), (Ye = (Ue = Ve.value) == null ? void 0 : Ue.navigation) == null || Ye.update();
5584
5584
  }, 400);
5585
5585
  }
5586
5586
  ), onMounted(() => {
5587
- var We, qe, Ze;
5588
- (Ze = Object.keys(((qe = (We = _e.flat) == null ? void 0 : We.type) == null ? void 0 : qe.image_3d) || {})) != null && Ze.length || (De.value = !0);
5587
+ var We, qe, Ue;
5588
+ (Ue = Object.keys(((qe = (We = _e.flat) == null ? void 0 : We.type) == null ? void 0 : qe.image_3d) || {})) != null && Ue.length || (De.value = !0);
5589
5589
  }), (We, qe) => (openBlock(), createBlock(FancyBoxComp, { options: {} }, {
5590
5590
  default: withCtx(() => {
5591
- var Ze, Xe, Je, Ue, Qe, ni, ti, Ge, Ye;
5591
+ var Ue, Ye, Ke, Xe, Qe, ii, ei, Ge, Ze;
5592
5592
  return [
5593
5593
  createElementVNode("div", _hoisted_1$o, [
5594
5594
  createElementVNode("div", _hoisted_2$e, [
@@ -5604,10 +5604,10 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5604
5604
  mode: "out-in"
5605
5605
  }, {
5606
5606
  default: withCtx(() => {
5607
- var Ke;
5607
+ var ti;
5608
5608
  return [
5609
5609
  (openBlock(), createBlock(unref(Swiper), {
5610
- key: (Ke = je.value[0]) == null ? void 0 : Ke.url,
5610
+ key: (ti = je.value[0]) == null ? void 0 : ti.url,
5611
5611
  "slides-per-view": 1,
5612
5612
  "space-between": 50,
5613
5613
  navigation: {
@@ -5620,22 +5620,22 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5620
5620
  onSwiper: He
5621
5621
  }, {
5622
5622
  default: withCtx(() => [
5623
- (openBlock(!0), createElementBlock(Fragment, null, renderList(je.value, (ei, ii) => (openBlock(), createBlock(unref(SwiperSlide), {
5624
- key: (ei == null ? void 0 : ei.url) + ii,
5623
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(je.value, (Je, ni) => (openBlock(), createBlock(unref(SwiperSlide), {
5624
+ key: (Je == null ? void 0 : Je.url) + ni,
5625
5625
  class: "ire-flex !ire-w-full ire-justify-center ire-bg-gray-50 ire-text-center"
5626
5626
  }, {
5627
5627
  default: withCtx(() => [
5628
5628
  (openBlock(), createElementBlock("a", {
5629
- key: (ei == null ? void 0 : ei.url) + ii,
5629
+ key: (Je == null ? void 0 : Je.url) + ni,
5630
5630
  "data-fancybox": De.value ? "gallery-2d" : "gallery-3d",
5631
- href: ei == null ? void 0 : ei.url,
5631
+ href: Je == null ? void 0 : Je.url,
5632
5632
  class: "irep-flat-preview__left-3d ire-flex ire-w-fit ire-items-center ire-justify-center"
5633
5633
  }, [
5634
5634
  (openBlock(), createElementBlock("img", {
5635
- key: (ei == null ? void 0 : ei.url) + ii,
5636
- src: ei == null ? void 0 : ei.url,
5635
+ key: (Je == null ? void 0 : Je.url) + ni,
5636
+ src: Je == null ? void 0 : Je.url,
5637
5637
  class: "ire-h-full ire-max-h-[500px] ire-w-full ire-object-contain ire-object-center"
5638
- }, null, 8, _hoisted_5$4))
5638
+ }, null, 8, _hoisted_5$8))
5639
5639
  ], 8, _hoisted_4$a))
5640
5640
  ]),
5641
5641
  _: 2
@@ -5695,12 +5695,12 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5695
5695
  _: 1
5696
5696
  })
5697
5697
  ]),
5698
- Ae.value ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
5699
- (Ue = (Je = (Xe = (Ze = Be.flat) == null ? void 0 : Ze.type) == null ? void 0 : Xe.image_3d) == null ? void 0 : Je[0]) != null && Ue.url ? (openBlock(), createBlock(_sfc_main$x, {
5698
+ Ae.value ? (openBlock(), createElementBlock("div", _hoisted_8$2, [
5699
+ (Xe = (Ke = (Ye = (Ue = Be.flat) == null ? void 0 : Ue.type) == null ? void 0 : Ye.image_3d) == null ? void 0 : Ke[0]) != null && Xe.url ? (openBlock(), createBlock(_sfc_main$x, {
5700
5700
  key: 0,
5701
5701
  title: unref(tr)("3d plan"),
5702
5702
  active: !De.value,
5703
- onClick: qe[0] || (qe[0] = (Ke) => De.value = !1)
5703
+ onClick: qe[0] || (qe[0] = (ti) => De.value = !1)
5704
5704
  }, {
5705
5705
  icon: withCtx(() => [
5706
5706
  createVNode(Cube3d, {
@@ -5709,11 +5709,11 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5709
5709
  ]),
5710
5710
  _: 1
5711
5711
  }, 8, ["title", "active"])) : createCommentVNode("", !0),
5712
- (Ge = (ti = (ni = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : ni.image_2d) == null ? void 0 : ti[0]) != null && Ge.url ? (openBlock(), createBlock(_sfc_main$x, {
5712
+ (Ge = (ei = (ii = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : ii.image_2d) == null ? void 0 : ei[0]) != null && Ge.url ? (openBlock(), createBlock(_sfc_main$x, {
5713
5713
  key: 1,
5714
5714
  title: unref(tr)("2d plan"),
5715
5715
  active: De.value,
5716
- onClick: qe[1] || (qe[1] = (Ke) => De.value = !0)
5716
+ onClick: qe[1] || (qe[1] = (ti) => De.value = !0)
5717
5717
  }, {
5718
5718
  icon: withCtx(() => [
5719
5719
  createVNode(FlatIcon, {
@@ -5725,8 +5725,8 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5725
5725
  ])) : createCommentVNode("", !0)
5726
5726
  ])
5727
5727
  ]),
5728
- unref($e)("remove_watermark") !== "true" || !((Ye = unref(Ne)) != null && Ye.is_premium) ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
5729
- createElementVNode("a", _hoisted_10$3, [
5728
+ unref($e)("remove_watermark") !== "true" || !((Ze = unref(Ne)) != null && Ze.is_premium) ? (openBlock(), createElementBlock("div", _hoisted_9$2, [
5729
+ createElementVNode("a", _hoisted_10$2, [
5730
5730
  createVNode(Logo, { class: "ire-size-12" })
5731
5731
  ])
5732
5732
  ])) : createCommentVNode("", !0)
@@ -5889,7 +5889,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5889
5889
  }), _hoisted_1$l = { class: "flex ire-relative ire-overflow-hidden lg:ire-w-full" }, _hoisted_2$b = { class: "ire-flex ire-w-full ire-flex-col ire-items-center ire-justify-center ire-gap-4" }, _hoisted_3$b = {
5890
5890
  key: 1,
5891
5891
  class: "flat-preview__type ire-text-center"
5892
- }, _hoisted_4$7 = { class: "flat-preview__type-title !ire-text-lg ire-font-medium ire-text-black" }, _hoisted_5$5 = { class: "flat-preview__type-teaser ire-mt-1 ire-text-base ire-text-gray-700" }, _hoisted_6$3 = { class: "ire-mt-4 ire-flex ire-w-full ire-flex-wrap ire-items-center ire-justify-center ire-gap-9 ire-overflow-y-auto lg:ire-max-h-[405px]" }, _hoisted_7$3 = { class: "flat-preview-price-through-value ire-text-base ire-line-through ire-decoration-black/50" }, _hoisted_8$2 = { class: "ire-flex ire-flex-col ire-text-center lg:ire-flex-row" }, _hoisted_9$2 = ["href"], _hoisted_10$2 = {
5892
+ }, _hoisted_4$7 = { class: "flat-preview__type-title !ire-text-lg ire-font-medium ire-text-black" }, _hoisted_5$5 = { class: "flat-preview__type-teaser ire-mt-1 ire-text-base ire-text-gray-700" }, _hoisted_6$3 = { class: "ire-mt-4 ire-flex ire-w-full ire-flex-wrap ire-items-center ire-justify-center ire-gap-9 ire-overflow-y-auto lg:ire-max-h-[405px]" }, _hoisted_7$3 = { class: "flat-preview-price-through-value ire-text-base ire-line-through ire-decoration-black/50" }, _hoisted_8$1 = { class: "ire-flex ire-flex-col ire-text-center lg:ire-flex-row" }, _hoisted_9$1 = ["href"], _hoisted_10$1 = {
5893
5893
  key: 1,
5894
5894
  class: "ire-w-full ire-p-2"
5895
5895
  }, _sfc_main$o = /* @__PURE__ */ defineComponent({
@@ -5907,23 +5907,23 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5907
5907
  var je;
5908
5908
  return !!($e("request_callback") === "true" && ((je = Ne.value) != null && je.is_gold));
5909
5909
  }), Ae = computed$1(() => {
5910
- var je, Fe, He, We, qe, Ze;
5911
- return ((He = (Fe = (je = _e.flat) == null ? void 0 : je.type) == null ? void 0 : Fe.image_3d) == null ? void 0 : He.length) || ((Ze = (qe = (We = _e.flat) == null ? void 0 : We.type) == null ? void 0 : qe.image_2d) == null ? void 0 : Ze.length);
5910
+ var je, Fe, He, We, qe, Ue;
5911
+ return ((He = (Fe = (je = _e.flat) == null ? void 0 : je.type) == null ? void 0 : Fe.image_3d) == null ? void 0 : He.length) || ((Ue = (qe = (We = _e.flat) == null ? void 0 : We.type) == null ? void 0 : qe.image_2d) == null ? void 0 : Ue.length);
5912
5912
  }), ze = () => {
5913
- var He, We, qe, Ze;
5913
+ var He, We, qe, Ue;
5914
5914
  if (!Re.value || De) return;
5915
5915
  const je = (He = Ve.value) == null ? void 0 : He.floors.find(
5916
- (Xe) => {
5917
- var Je, Ue, Qe;
5918
- return ((Je = Xe.id) == null ? void 0 : Je.toString()) === ((Qe = (Ue = _e.flat) == null ? void 0 : Ue.floor_id) == null ? void 0 : Qe.toString());
5916
+ (Ye) => {
5917
+ var Ke, Xe, Qe;
5918
+ return ((Ke = Ye.id) == null ? void 0 : Ke.toString()) === ((Qe = (Xe = _e.flat) == null ? void 0 : Xe.floor_id) == null ? void 0 : Qe.toString());
5919
5919
  }
5920
5920
  ), Fe = {
5921
5921
  flatId: (We = _e.flat) == null ? void 0 : We.id,
5922
5922
  floorId: je == null ? void 0 : je.id,
5923
- projectId: (Ze = (qe = Ve.value) == null ? void 0 : qe.project) == null ? void 0 : Ze.id
5923
+ projectId: (Ue = (qe = Ve.value) == null ? void 0 : qe.project) == null ? void 0 : Ue.id
5924
5924
  };
5925
- Object.entries(Fe).forEach(([Xe, Je]) => {
5926
- Xe && Je && setQuery(Xe, Je);
5925
+ Object.entries(Fe).forEach(([Ye, Ke]) => {
5926
+ Ye && Ke && setQuery(Ye, Ke);
5927
5927
  });
5928
5928
  };
5929
5929
  return onMounted(() => {
@@ -5933,7 +5933,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5933
5933
  setQuery(Fe, "");
5934
5934
  });
5935
5935
  }), (je, Fe) => {
5936
- var He, We, qe, Ze, Xe, Je, Ue, Qe, ni, ti, Ge, Ye, Ke, ei, ii, oi, ri, si, ai, li, ui, ci, di, hi, fi, mi, vi, gi, bi, yi, _i, wi, xi, Ci, ki, Si;
5936
+ var He, We, qe, Ue, Ye, Ke, Xe, Qe, ii, ei, Ge, Ze, ti, Je, ni, oi, ri, si, ai, li, di, ci, ui, hi, fi, mi, gi, vi, bi, yi, _i, wi, xi, Ci, ki, Si;
5937
5937
  return openBlock(), createElementBlock("div", {
5938
5938
  class: normalizeClass(["irep-flat-preview ire-grid", {
5939
5939
  "lg:ire-grid-cols-[1.4fr,1fr]": Ae.value
@@ -5957,20 +5957,20 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5957
5957
  value: Be.flat.flat_number,
5958
5958
  class: "[&_.flat-preview-value]:ire-min-w-fit [&_.flat-preview-value]:ire-font-semibold"
5959
5959
  }, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5960
- (qe = (We = Be.flat) == null ? void 0 : We.type) != null && qe.title || (Xe = (Ze = Be.flat) == null ? void 0 : Ze.type) != null && Xe.teaser ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
5961
- createElementVNode("div", _hoisted_4$7, toDisplayString((Ue = (Je = Be.flat) == null ? void 0 : Je.type) == null ? void 0 : Ue.title), 1),
5962
- createElementVNode("div", _hoisted_5$5, toDisplayString((ni = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : ni.teaser), 1)
5960
+ (qe = (We = Be.flat) == null ? void 0 : We.type) != null && qe.title || (Ye = (Ue = Be.flat) == null ? void 0 : Ue.type) != null && Ye.teaser ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
5961
+ createElementVNode("div", _hoisted_4$7, toDisplayString((Xe = (Ke = Be.flat) == null ? void 0 : Ke.type) == null ? void 0 : Xe.title), 1),
5962
+ createElementVNode("div", _hoisted_5$5, toDisplayString((ii = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : ii.teaser), 1)
5963
5963
  ])) : createCommentVNode("", !0),
5964
5964
  createElementVNode("div", _hoisted_6$3, [
5965
- (ti = Be.flat) != null && ti.block_id ? (openBlock(), createBlock(_sfc_main$y, {
5965
+ (ei = Be.flat) != null && ei.block_id ? (openBlock(), createBlock(_sfc_main$y, {
5966
5966
  key: 0,
5967
5967
  keyName: unref(tr)("block"),
5968
- value: ((Ke = (Ye = unref(getBlockById)(+((Ge = Be.flat) == null ? void 0 : Ge.block_id))) == null ? void 0 : Ye.title) == null ? void 0 : Ke.toString()) || ""
5968
+ value: ((ti = (Ze = unref(getBlockById)(+((Ge = Be.flat) == null ? void 0 : Ge.block_id))) == null ? void 0 : Ze.title) == null ? void 0 : ti.toString()) || ""
5969
5969
  }, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5970
- (ei = Be.flat) != null && ei.floor_id ? (openBlock(), createBlock(_sfc_main$y, {
5970
+ (Je = Be.flat) != null && Je.floor_id ? (openBlock(), createBlock(_sfc_main$y, {
5971
5971
  key: 1,
5972
5972
  keyName: unref(tr)("floor"),
5973
- 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()) || ""
5973
+ value: ((ri = (oi = unref(getFloorById)(+((ni = Be.flat) == null ? void 0 : ni.floor_id))) == null ? void 0 : oi.floor_number) == null ? void 0 : ri.toString()) || ""
5974
5974
  }, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5975
5975
  (ai = (si = Be.flat) == null ? void 0 : si.type) != null && ai.area_m2 ? (openBlock(), createBlock(_sfc_main$y, {
5976
5976
  key: 2,
@@ -5982,12 +5982,12 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5982
5982
  ]),
5983
5983
  _: 1
5984
5984
  }, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5985
- (ci = (ui = Be.flat) == null ? void 0 : ui.type) != null && ci.rooms_count ? (openBlock(), createBlock(_sfc_main$y, {
5985
+ (ci = (di = Be.flat) == null ? void 0 : di.type) != null && ci.rooms_count ? (openBlock(), createBlock(_sfc_main$y, {
5986
5986
  key: 3,
5987
5987
  keyName: unref(tr)("room"),
5988
5988
  value: Be.flat.type.rooms_count
5989
5989
  }, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5990
- (di = Be.flat) != null && di.request_price ? (openBlock(), createBlock(_sfc_main$y, {
5990
+ (ui = Be.flat) != null && ui.request_price ? (openBlock(), createBlock(_sfc_main$y, {
5991
5991
  key: 4,
5992
5992
  keyName: unref(tr)("price"),
5993
5993
  value: unref(tr)("Request Price")
@@ -6012,20 +6012,20 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
6012
6012
  }, 8, ["keyName", "value"])) : (mi = Be.flat) != null && mi.price && Number(Be.flat.price) > 0 ? (openBlock(), createBlock(_sfc_main$y, {
6013
6013
  key: 6,
6014
6014
  keyName: unref(tr)("price"),
6015
- value: unref(getPrice)(Number((vi = Be.flat) == null ? void 0 : vi.price))
6015
+ value: unref(getPrice)(Number((gi = Be.flat) == null ? void 0 : gi.price))
6016
6016
  }, {
6017
6017
  sufix: withCtx(() => [
6018
6018
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
6019
6019
  ]),
6020
6020
  _: 1
6021
6021
  }, 8, ["keyName", "value"])) : createCommentVNode("", !0),
6022
- (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, (pi) => (openBlock(), createBlock(_sfc_main$y, {
6022
+ (yi = (bi = (vi = Be.flat) == null ? void 0 : vi.type) == null ? void 0 : bi.other) != null && yi.length ? (openBlock(!0), createElementBlock(Fragment, { key: 7 }, renderList(Be.flat.type.other, (pi) => (openBlock(), createBlock(_sfc_main$y, {
6023
6023
  keyName: pi.key,
6024
6024
  value: pi.value
6025
6025
  }, null, 8, ["keyName", "value"]))), 256)) : createCommentVNode("", !0)
6026
6026
  ])
6027
6027
  ]),
6028
- createElementVNode("div", _hoisted_8$2, [
6028
+ createElementVNode("div", _hoisted_8$1, [
6029
6029
  (xi = (wi = (_i = Be.flat) == null ? void 0 : _i.files) == null ? void 0 : wi[0]) != null && xi.url ? (openBlock(), createElementBlock("a", {
6030
6030
  key: 0,
6031
6031
  href: (Si = (ki = (Ci = Be.flat) == null ? void 0 : Ci.files) == null ? void 0 : ki[0]) == null ? void 0 : Si.url,
@@ -6035,8 +6035,8 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
6035
6035
  createVNode(_sfc_main$x, {
6036
6036
  title: unref(tr)("download file")
6037
6037
  }, null, 8, ["title"])
6038
- ], 8, _hoisted_9$2)) : createCommentVNode("", !0),
6039
- Ie.value ? (openBlock(), createElementBlock("div", _hoisted_10$2, [
6038
+ ], 8, _hoisted_9$1)) : createCommentVNode("", !0),
6039
+ Ie.value ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
6040
6040
  createVNode(_sfc_main$x, {
6041
6041
  title: unref(tr)("request callback"),
6042
6042
  active: "",
@@ -6153,36 +6153,36 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6153
6153
  emits: ["changeComponent"],
6154
6154
  setup(Be, { emit: _e }) {
6155
6155
  const ke = _e, $e = Be, Ne = inject("showFlatModal"), Ve = useGlobalStore(), { openReservedFlat: De, openSoldFlat: Le } = storeToRefs(Ve), Re = ref(), Ie = ref(null), Ae = ref(), ze = ref(), je = computed$1(() => {
6156
- var qe, Ze;
6156
+ var qe, Ue;
6157
6157
  if ((qe = $e.block) != null && qe.svg)
6158
- return (Ze = $e.block) == null ? void 0 : Ze.svg;
6158
+ return (Ue = $e.block) == null ? void 0 : Ue.svg;
6159
6159
  }), Fe = (qe) => {
6160
- const Ze = qe.target;
6161
- Ze && (Ie.value = Ze);
6160
+ const Ue = qe.target;
6161
+ Ue && (Ie.value = Ue);
6162
6162
  }, He = (qe) => {
6163
- var Xe, Je, Ue;
6164
- const Ze = qe.target;
6165
- (Ze == null ? void 0 : Ze.nodeName) === "path" && (((Xe = ze.value) == null ? void 0 : Xe.conf) === "reserved" && !De.value || ((Je = ze.value) == null ? void 0 : Je.conf) === "sold" && !Le.value || ke(
6163
+ var Ye, Ke, Xe;
6164
+ const Ue = qe.target;
6165
+ (Ue == null ? void 0 : Ue.nodeName) === "path" && (((Ye = ze.value) == null ? void 0 : Ye.conf) === "reserved" && !De.value || ((Ke = ze.value) == null ? void 0 : Ke.conf) === "sold" && !Le.value || ke(
6166
6166
  "changeComponent",
6167
- ((Ue = Ae.value) == null ? void 0 : Ue.type) || "",
6167
+ ((Xe = Ae.value) == null ? void 0 : Xe.type) || "",
6168
6168
  ze.value
6169
6169
  ));
6170
6170
  }, We = () => {
6171
- var Ze;
6171
+ var Ue;
6172
6172
  if (!Re.value) return;
6173
- ((Ze = Re.value) == null ? void 0 : Ze.querySelectorAll("g")).forEach((Xe) => {
6174
- var ni, ti, Ge, Ye;
6175
- const Je = Xe == null ? void 0 : Xe.getAttribute("id"), Ue = (ti = (ni = $e.block) == null ? void 0 : ni.polygon_data) == null ? void 0 : ti.find(
6176
- (Ke) => (Ke == null ? void 0 : Ke.key) === Je
6177
- ), Qe = Ue == null ? void 0 : Ue.id;
6178
- switch (Ue == null ? void 0 : Ue.type) {
6173
+ ((Ue = Re.value) == null ? void 0 : Ue.querySelectorAll("g")).forEach((Ye) => {
6174
+ var ii, ei, Ge, Ze;
6175
+ const Ke = Ye == null ? void 0 : Ye.getAttribute("id"), Xe = (ei = (ii = $e.block) == null ? void 0 : ii.polygon_data) == null ? void 0 : ei.find(
6176
+ (ti) => (ti == null ? void 0 : ti.key) === Ke
6177
+ ), Qe = Xe == null ? void 0 : Xe.id;
6178
+ switch (Xe == null ? void 0 : Xe.type) {
6179
6179
  case "floor":
6180
- const Ke = (Ge = $e.floors) == null ? void 0 : Ge.find((ii) => ii.id === Qe);
6181
- Xe.setAttribute("conf", (Ke == null ? void 0 : Ke.conf) || "");
6180
+ const ti = (Ge = $e.floors) == null ? void 0 : Ge.find((ni) => ni.id === Qe);
6181
+ Ye.setAttribute("conf", (ti == null ? void 0 : ti.conf) || "");
6182
6182
  break;
6183
6183
  case "flat":
6184
- const ei = (Ye = $e.flats) == null ? void 0 : Ye.find((ii) => ii.id === Qe);
6185
- Xe.setAttribute("conf", (ei == null ? void 0 : ei.conf) || "");
6184
+ const Je = (Ze = $e.flats) == null ? void 0 : Ze.find((ni) => ni.id === Qe);
6185
+ Ye.setAttribute("conf", (Je == null ? void 0 : Je.conf) || "");
6186
6186
  break;
6187
6187
  }
6188
6188
  });
@@ -6195,37 +6195,37 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6195
6195
  ), watch(
6196
6196
  () => Ie.value,
6197
6197
  (qe) => {
6198
- var Xe, Je, Ue, Qe, ni, ti, Ge, Ye;
6198
+ var Ye, Ke, Xe, Qe, ii, ei, Ge, Ze;
6199
6199
  if (!qe) return;
6200
6200
  Ve.hoverdSvg = qe;
6201
- const Ze = qe == null ? void 0 : qe.parentElement;
6202
- if (Ze && (Ze == null ? void 0 : Ze.nodeName) === "g") {
6203
- const Ke = Ze == null ? void 0 : Ze.getAttribute("id");
6204
- if (!Ke || (Ae.value = ((Je = (Xe = $e.block) == null ? void 0 : Xe.polygon_data) == null ? void 0 : Je.find((ei) => (ei == null ? void 0 : ei.key) === Ke)) || null, !Ae.value)) return;
6205
- if (((Ue = Ae.value) == null ? void 0 : Ue.type) === "floor") {
6206
- const ei = (Qe = $e.floors) == null ? void 0 : Qe.find(
6207
- (ii) => {
6201
+ const Ue = qe == null ? void 0 : qe.parentElement;
6202
+ if (Ue && (Ue == null ? void 0 : Ue.nodeName) === "g") {
6203
+ const ti = Ue == null ? void 0 : Ue.getAttribute("id");
6204
+ if (!ti || (Ae.value = ((Ke = (Ye = $e.block) == null ? void 0 : Ye.polygon_data) == null ? void 0 : Ke.find((Je) => (Je == null ? void 0 : Je.key) === ti)) || null, !Ae.value)) return;
6205
+ if (((Xe = Ae.value) == null ? void 0 : Xe.type) === "floor") {
6206
+ const Je = (Qe = $e.floors) == null ? void 0 : Qe.find(
6207
+ (ni) => {
6208
6208
  var oi;
6209
- return (ii == null ? void 0 : ii.id) === ((oi = Ae.value) == null ? void 0 : oi.id);
6209
+ return (ni == null ? void 0 : ni.id) === ((oi = Ae.value) == null ? void 0 : oi.id);
6210
6210
  }
6211
6211
  );
6212
- ze.value = ei;
6213
- } else if (((ni = Ae.value) == null ? void 0 : ni.type) === "flat") {
6214
- const ei = (ti = $e.flats) == null ? void 0 : ti.find(
6215
- (ii) => {
6212
+ ze.value = Je;
6213
+ } else if (((ii = Ae.value) == null ? void 0 : ii.type) === "flat") {
6214
+ const Je = (ei = $e.flats) == null ? void 0 : ei.find(
6215
+ (ni) => {
6216
6216
  var oi;
6217
- return (ii == null ? void 0 : ii.id) === ((oi = Ae.value) == null ? void 0 : oi.id);
6217
+ return (ni == null ? void 0 : ni.id) === ((oi = Ae.value) == null ? void 0 : oi.id);
6218
6218
  }
6219
6219
  );
6220
- ze.value = ei;
6220
+ ze.value = Je;
6221
6221
  } else if (((Ge = Ae.value) == null ? void 0 : Ge.type) === "tooltip") {
6222
- const ei = (Ye = $e.actions) == null ? void 0 : Ye.find(
6223
- (ii) => {
6222
+ const Je = (Ze = $e.actions) == null ? void 0 : Ze.find(
6223
+ (ni) => {
6224
6224
  var oi;
6225
- return (ii == null ? void 0 : ii.id) === ((oi = Ae.value) == null ? void 0 : oi.id);
6225
+ return (ni == null ? void 0 : ni.id) === ((oi = Ae.value) == null ? void 0 : oi.id);
6226
6226
  }
6227
6227
  );
6228
- ze.value = ei;
6228
+ ze.value = Je;
6229
6229
  } else
6230
6230
  ze.value = null;
6231
6231
  } else
@@ -6235,27 +6235,27 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6235
6235
  We(), document.addEventListener("mousemove", Fe);
6236
6236
  }), onUnmounted(() => {
6237
6237
  document.removeEventListener("mousemove", Fe);
6238
- }), (qe, Ze) => {
6239
- var Xe;
6238
+ }), (qe, Ue) => {
6239
+ var Ye;
6240
6240
  return openBlock(), createBlock(_sfc_main$E, {
6241
6241
  hoverdData: ze.value,
6242
- type: (Xe = Ae.value) == null ? void 0 : Xe.type
6242
+ type: (Ye = Ae.value) == null ? void 0 : Ye.type
6243
6243
  }, {
6244
6244
  header: withCtx(() => {
6245
- var Je;
6245
+ var Ke;
6246
6246
  return [
6247
6247
  createVNode(_sfc_main$A, {
6248
- onClick: Ze[0] || (Ze[0] = (Ue) => qe.$emit("changeComponent", "project", null))
6248
+ onClick: Ue[0] || (Ue[0] = (Xe) => qe.$emit("changeComponent", "project", null))
6249
6249
  }),
6250
- createElementVNode("div", _hoisted_1$g, toDisplayString((Je = Be.block) == null ? void 0 : Je.title), 1)
6250
+ createElementVNode("div", _hoisted_1$g, toDisplayString((Ke = Be.block) == null ? void 0 : Ke.title), 1)
6251
6251
  ];
6252
6252
  }),
6253
6253
  default: withCtx(() => {
6254
- var Je, Ue, Qe;
6254
+ var Ke, Xe, Qe;
6255
6255
  return [
6256
6256
  createElementVNode("div", _hoisted_2$8, [
6257
6257
  createElementVNode("img", {
6258
- src: ((Qe = (Ue = (Je = Be.block) == null ? void 0 : Je.block_image) == null ? void 0 : Ue[0]) == null ? void 0 : Qe.url) || "",
6258
+ src: ((Qe = (Xe = (Ke = Be.block) == null ? void 0 : Ke.block_image) == null ? void 0 : Xe[0]) == null ? void 0 : Qe.url) || "",
6259
6259
  alt: "",
6260
6260
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
6261
6261
  }, null, 8, _hoisted_3$8),
@@ -6286,12 +6286,12 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6286
6286
  };
6287
6287
  De = requestAnimationFrame(je);
6288
6288
  }, ze = (je) => {
6289
- var ni;
6290
- const Fe = document.querySelector(".irep-tooltip"), He = ((ni = _e.hoverdSvg) == null ? void 0 : ni.nodeName) === "path" ? _e.hoverdSvg : null;
6289
+ var ii;
6290
+ const Fe = document.querySelector(".irep-tooltip"), He = ((ii = _e.hoverdSvg) == null ? void 0 : ii.nodeName) === "path" ? _e.hoverdSvg : null;
6291
6291
  if (!Ve.value || !Fe || !He)
6292
6292
  return;
6293
- const We = Ve.value.getBoundingClientRect(), qe = He.getBoundingClientRect(), Ze = Fe.getBoundingClientRect(), Xe = We.left + We.width / 2, Je = We.top + We.height / 2, Ue = qe.left > Xe, Qe = qe.bottom > Je;
6294
- Le = je.clientX - We.left - (Ue ? Ze.width : -20), Re = je.clientY - We.top - (Qe ? Ze.height : -20), ke.value && ($e.value = Le, Ne.value = Re), Ae(), ke.value = !1;
6293
+ const We = Ve.value.getBoundingClientRect(), qe = He.getBoundingClientRect(), Ue = Fe.getBoundingClientRect(), Ye = We.left + We.width / 2, Ke = We.top + We.height / 2, Xe = qe.left > Ye, Qe = qe.bottom > Ke;
6294
+ Le = je.clientX - We.left - (Xe ? Ue.width : -20), Re = je.clientY - We.top - (Qe ? Ue.height : -20), ke.value && ($e.value = Le, Ne.value = Re), Ae(), ke.value = !1;
6295
6295
  };
6296
6296
  return onMounted(() => {
6297
6297
  document.addEventListener("mousemove", ze);
@@ -6509,7 +6509,7 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6509
6509
  }
6510
6510
  });
6511
6511
  function useScroll() {
6512
- return { scrollToWithOffset: (_e, ke = 200) => {
6512
+ return { scrollToWithOffset: (_e, ke = 0) => {
6513
6513
  if (_e) {
6514
6514
  const Ne = _e.getBoundingClientRect().top + window.pageYOffset - ke;
6515
6515
  window.scrollTo({
@@ -6542,7 +6542,7 @@ function _sfc_render$8(Be, _e) {
6542
6542
  }, null, -1)
6543
6543
  ])]);
6544
6544
  }
6545
- 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$1 = { class: "flex ire-justify-between ire-gap-2 ire-text-center" }, _hoisted_6$2 = { class: "ire-text-left ire-text-lg ire-font-semibold" }, _hoisted_7$2 = { key: 0 }, _hoisted_8$1 = { key: 1 }, _hoisted_9$1 = { class: "ire-text-xs ire-text-gray-500 ire-line-through" }, _hoisted_10$1 = { class: "ire-text-base" }, _hoisted_11 = { key: 2 }, _hoisted_12 = { key: 3 }, _hoisted_13 = { class: "ire-right-[2px] ire-text-base" }, _sfc_main$e = /* @__PURE__ */ defineComponent({
6545
+ const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$8]]), _hoisted_1$e = { class: "ire-relative ire-pt-[70%]" }, _hoisted_2$7 = ["src"], _hoisted_3$7 = { key: 1 }, _hoisted_4$5 = { class: "ire-mt-4 ire-flex ire-flex-col ire-gap-3" }, _hoisted_5$4 = { class: "flex ire-justify-between ire-gap-2 ire-text-center" }, _hoisted_6$2 = { class: "ire-text-left ire-text-lg ire-font-semibold" }, _hoisted_7$2 = { key: 0 }, _hoisted_8 = { key: 1 }, _hoisted_9 = { class: "ire-text-xs ire-text-gray-500 ire-line-through" }, _hoisted_10 = { class: "ire-text-base" }, _hoisted_11 = { key: 2 }, _hoisted_12 = { key: 3 }, _hoisted_13 = { class: "ire-right-[2px] ire-text-base" }, _sfc_main$e = /* @__PURE__ */ defineComponent({
6546
6546
  __name: "FlatCard",
6547
6547
  props: {
6548
6548
  flat: {}
@@ -6559,7 +6559,7 @@ const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_re
6559
6559
  return (Ve, De) => {
6560
6560
  var Le, Re;
6561
6561
  return openBlock(), createElementBlock("div", {
6562
- class: "ire-border-l-solid ire-group ire-cursor-pointer ire-rounded-sm ire-border-b ire-border-gray-200 ire-p-2 ire-text-black ire-transition-all ire-duration-300 md:ire-border-b-0 md:ire-border-l md:ire-p-4",
6562
+ class: "irep-flat-card ire-border-l-solid ire-group ire-cursor-pointer ire-rounded-sm ire-border-b ire-border-gray-200 ire-p-2 ire-pb-8 ire-text-black ire-transition-all ire-duration-300 md:ire-border-b-0 md:ire-border-l md:ire-p-8",
6563
6563
  onClick: De[0] || (De[0] = (Ie) => ke("openFlat", Be.flat.id))
6564
6564
  }, [
6565
6565
  createElementVNode("div", _hoisted_1$e, [
@@ -6569,11 +6569,11 @@ const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_re
6569
6569
  alt: "",
6570
6570
  class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full ire-object-cover ire-transition-all ire-duration-700 ire-ease-[cubic-bezier(0.25,1,0.5,1)] group-hover:ire-scale-95"
6571
6571
  }, null, 8, _hoisted_2$7)) : (openBlock(), createElementBlock("div", _hoisted_3$7, [
6572
- createVNode(Placeholder, { class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full" })
6572
+ createVNode(Placeholder, { class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full ire-bg-gray-100 ire-transition-all ire-duration-700 ire-ease-[cubic-bezier(0.25,1,0.5,1)] group-hover:ire-scale-95 [&_rect]:ire-fill-gray-100" })
6573
6573
  ]))
6574
6574
  ]),
6575
6575
  createElementVNode("div", _hoisted_4$5, [
6576
- createElementVNode("div", _hoisted_5$1, [
6576
+ createElementVNode("div", _hoisted_5$4, [
6577
6577
  createElementVNode("div", _hoisted_6$2, toDisplayString(Be.flat.flat_number), 1),
6578
6578
  Be.flat.conf ? (openBlock(), createBlock(_sfc_main$s, {
6579
6579
  key: 0,
@@ -6581,9 +6581,9 @@ const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_re
6581
6581
  "badge-style": Be.flat.conf === "reserved" ? "warning" : "danger"
6582
6582
  }, null, 8, ["title", "badge-style"])) : createCommentVNode("", !0)
6583
6583
  ]),
6584
- 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, [
6585
- createElementVNode("div", _hoisted_9$1, toDisplayString(unref(getPrice)(+Be.flat.price_n)) + " " + toDisplayString(unref(currencySymbol)()), 1),
6586
- createElementVNode("div", _hoisted_10$1, toDisplayString(unref(getPrice)(+Be.flat.offer_price)) + " " + toDisplayString(unref(currencySymbol)()), 1)
6584
+ 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, [
6585
+ createElementVNode("div", _hoisted_9, toDisplayString(unref(getPrice)(+Be.flat.price_n)) + " " + toDisplayString(unref(currencySymbol)()), 1),
6586
+ createElementVNode("div", _hoisted_10, toDisplayString(unref(getPrice)(+Be.flat.offer_price)) + " " + toDisplayString(unref(currencySymbol)()), 1)
6587
6587
  ])) : Be.flat.price !== "0.00" ? (openBlock(), createElementBlock("div", _hoisted_11, toDisplayString(unref(getPrice)(+Be.flat.price_n)) + " " + toDisplayString(unref(currencySymbol)()), 1)) : createCommentVNode("", !0),
6588
6588
  (Le = Be.flat.type) != null && Le.area_m2 ? (openBlock(), createElementBlock("div", _hoisted_12, [
6589
6589
  createElementVNode("span", _hoisted_13, [
@@ -7221,132 +7221,147 @@ const MagnifyIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_re
7221
7221
  }, 8, ["data"]))
7222
7222
  ]));
7223
7223
  }
7224
- }), _hoisted_1$2 = { class: "irep-flats-list-filters ire-grid ire-gap-4 ire-p-8 ire-text-base sm:ire-grid-cols-2" }, _hoisted_2$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_3$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_4$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_5 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_6 = { class: "irep-flats-list-filters-title -2 ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_7 = { class: "ire-flex ire-items-end ire-justify-end ire-gap-3" }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
7224
+ }), _hoisted_1$2 = { class: "irep-flats-list-filters ire-grid ire-w-full ire-gap-x-4 ire-gap-y-2 ire-text-start ire-text-base sm:ire-grid-cols-2 md:ire-grid-cols-3 md:ire-gap-y-2" }, _hoisted_2$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_3$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_4$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_5$1 = { class: "irep-flats-list-filters-title ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_6 = { class: "irep-flats-list-filters-title -2 ire-pb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_7 = { class: "ire-flex ire-items-end ire-justify-end ire-gap-3" }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
7225
7225
  __name: "Filters",
7226
7226
  props: {
7227
7227
  filtersObject: {},
7228
7228
  filtersObjectModifiers: {}
7229
7229
  },
7230
- emits: /* @__PURE__ */ mergeModels(["filterFlatsList"], ["update:filtersObject"]),
7231
- setup(Be, { emit: _e }) {
7232
- const ke = _e, $e = useGlobalStore(), { shortcodeData: Ne } = storeToRefs($e), Ve = [
7230
+ emits: ["update:filtersObject"],
7231
+ setup(Be) {
7232
+ const _e = useGlobalStore(), { shortcodeData: ke } = storeToRefs(_e), $e = [
7233
7233
  { title: tr("any price"), value: "0-Infinity" },
7234
- { title: `${tr("under")} ${currencySymbol()}50,000`, value: "0-50000" },
7235
7234
  {
7236
- title: `${currencySymbol()}50,000 - ${currencySymbol()}100,000`,
7235
+ title: `${currencySymbol()} 0 - ${currencySymbol()} 50,000`,
7236
+ value: "0-50000"
7237
+ },
7238
+ {
7239
+ title: `${currencySymbol()} 50,000 - ${currencySymbol()} 100,000`,
7237
7240
  value: "50000-100000"
7238
7241
  },
7239
7242
  {
7240
- title: `${currencySymbol()}100,000 - ${currencySymbol()}200,000`,
7243
+ title: `${currencySymbol()} 100,000 - ${currencySymbol()} 200,000`,
7241
7244
  value: "100000-200000"
7242
7245
  },
7243
7246
  {
7244
- title: `${currencySymbol()}200,000 - ${currencySymbol()}500,000`,
7247
+ title: `${currencySymbol()} 200,000 - ${currencySymbol()} 500,000`,
7245
7248
  value: "200000-500000"
7246
7249
  },
7247
- { title: `${currencySymbol()}500,000+`, value: "500000-Infinity" }
7248
- ], De = [
7250
+ { title: `${currencySymbol()} 500,000+`, value: "500000-Infinity" }
7251
+ ], Ne = [
7249
7252
  { title: tr("any area"), value: "0-Infinity" },
7250
- { title: `${tr("under")} 40 ${getAreaUnitLabel()}²`, value: "0-40" },
7251
- { title: `40 - 60 ${getAreaUnitLabel()}²`, value: "40-60" },
7252
- { title: `60 - 90 ${getAreaUnitLabel()}²`, value: "60-90" },
7253
- { title: `90 - 120 ${getAreaUnitLabel()}²`, value: "90-120" },
7253
+ {
7254
+ title: `0 ${getAreaUnitLabel()}² - 40 ${getAreaUnitLabel()}²`,
7255
+ value: "0-40"
7256
+ },
7257
+ {
7258
+ title: `40 ${getAreaUnitLabel()}² - 60 ${getAreaUnitLabel()}²`,
7259
+ value: "40-60"
7260
+ },
7261
+ {
7262
+ title: `60 ${getAreaUnitLabel()}² - 90 ${getAreaUnitLabel()}²`,
7263
+ value: "60-90"
7264
+ },
7265
+ {
7266
+ title: `90 ${getAreaUnitLabel()}² - 120 ${getAreaUnitLabel()}²`,
7267
+ value: "90-120"
7268
+ },
7254
7269
  { title: `120 ${getAreaUnitLabel()}² +`, value: "120-Infinity" }
7255
- ], Le = [
7270
+ ], Ve = [
7256
7271
  { title: tr("any room"), value: "0-Infinity" },
7257
7272
  { title: `1 ${tr("room")}`, value: "1-1" },
7258
7273
  { title: `2 ${tr("rooms")}`, value: "2-2" },
7259
7274
  { title: `3 ${tr("rooms")}`, value: "3-3" },
7260
7275
  { title: `4+ ${tr("rooms")}`, value: "4-Infinity" }
7261
- ], Re = [
7276
+ ], De = [
7262
7277
  { title: tr("all"), value: "all" },
7263
7278
  { title: tr("available"), value: "available" },
7264
7279
  { title: tr("reserved"), value: "reserved" },
7265
7280
  { title: tr("sold"), value: "sold" }
7266
- ], Ie = useModel(Be, "filtersObject"), Ae = computed$1(() => {
7267
- var qe;
7268
- const Fe = (((qe = Ne.value) == null ? void 0 : qe.flats.map((Ze) => Ze.floor_id).filter((Ze) => Ze)) || []).map((Ze) => {
7269
- var Je;
7270
- const Xe = (Je = Ne.value) == null ? void 0 : Je.floors.find(
7271
- (Ue) => Ue.id === Ze
7281
+ ], Le = useModel(Be, "filtersObject"), Re = computed$1(() => {
7282
+ var He;
7283
+ const ze = (((He = ke.value) == null ? void 0 : He.flats.map((We) => We.floor_id).filter((We) => We)) || []).map((We) => {
7284
+ var Ue;
7285
+ const qe = (Ue = ke.value) == null ? void 0 : Ue.floors.find(
7286
+ (Ye) => Ye.id === We
7272
7287
  );
7273
7288
  return {
7274
- floorId: Xe == null ? void 0 : Xe.id,
7275
- floorNumber: Number(Xe == null ? void 0 : Xe.floor_number)
7289
+ floorId: qe == null ? void 0 : qe.id,
7290
+ floorNumber: Number(qe == null ? void 0 : qe.floor_number)
7276
7291
  };
7277
- }), We = [
7278
- ...new Map(Fe.map((Ze) => [Ze.floorNumber, Ze])).values()
7279
- ].sort((Ze, Xe) => Ze.floorNumber - Xe.floorNumber).map((Ze) => ({
7280
- title: Ze.floorNumber.toString(),
7281
- value: Ze.floorId || ""
7292
+ }), Fe = [
7293
+ ...new Map(ze.map((We) => [We.floorNumber, We])).values()
7294
+ ].sort((We, qe) => We.floorNumber - qe.floorNumber).map((We) => ({
7295
+ title: We.floorNumber.toString(),
7296
+ value: We.floorId || ""
7282
7297
  }));
7283
7298
  return [
7284
7299
  {
7285
- title: "Any Floor",
7300
+ title: tr("any floor"),
7286
7301
  value: ""
7287
7302
  },
7288
- ...We
7303
+ ...Fe
7289
7304
  ];
7290
- }), ze = () => {
7291
- Ie.value = {
7305
+ }), Ie = () => {
7306
+ Le.value = {
7292
7307
  priceRange: "0-Infinity",
7293
7308
  areaRange: "0-Infinity",
7294
7309
  floor: "",
7295
7310
  roomRange: "0-Infinity",
7296
7311
  config: "all"
7297
- }, ke("filterFlatsList");
7312
+ };
7298
7313
  };
7299
- return (je, Fe) => {
7300
- var He;
7314
+ return (Ae, ze) => {
7315
+ var je;
7301
7316
  return openBlock(), createElementBlock("div", _hoisted_1$2, [
7302
7317
  createElementVNode("div", null, [
7303
7318
  createElementVNode("div", _hoisted_2$1, toDisplayString(unref(tr)("price")), 1),
7304
7319
  createVNode(_sfc_main$C, {
7305
- modelValue: Ie.value.priceRange,
7306
- "onUpdate:modelValue": Fe[0] || (Fe[0] = (We) => Ie.value.priceRange = We),
7307
- data: Ve,
7320
+ modelValue: Le.value.priceRange,
7321
+ "onUpdate:modelValue": ze[0] || (ze[0] = (Fe) => Le.value.priceRange = Fe),
7322
+ data: $e,
7308
7323
  disabled: !1,
7309
- class: "irep-flats-list-filters-select ire-max-w-full [&_select]:ire-capitalize"
7324
+ class: "irep-flats-list-filters-select ire-max-w-full"
7310
7325
  }, null, 8, ["modelValue"])
7311
7326
  ]),
7312
7327
  createElementVNode("div", null, [
7313
7328
  createElementVNode("div", _hoisted_3$1, toDisplayString(unref(tr)("area")), 1),
7314
7329
  createVNode(_sfc_main$C, {
7315
- modelValue: Ie.value.areaRange,
7316
- "onUpdate:modelValue": Fe[1] || (Fe[1] = (We) => Ie.value.areaRange = We),
7317
- data: De,
7330
+ modelValue: Le.value.areaRange,
7331
+ "onUpdate:modelValue": ze[1] || (ze[1] = (Fe) => Le.value.areaRange = Fe),
7332
+ data: Ne,
7318
7333
  disabled: !1,
7319
- class: "irep-flats-list-filters-select ire-max-w-full [&_select]:ire-capitalize"
7334
+ class: "irep-flats-list-filters-select ire-max-w-full"
7320
7335
  }, null, 8, ["modelValue"])
7321
7336
  ]),
7322
7337
  createElementVNode("div", null, [
7323
7338
  createElementVNode("div", _hoisted_4$1, toDisplayString(unref(tr)("floor number")), 1),
7324
7339
  createVNode(_sfc_main$C, {
7325
- modelValue: Ie.value.floor,
7326
- "onUpdate:modelValue": Fe[2] || (Fe[2] = (We) => Ie.value.floor = We),
7327
- data: Ae.value,
7328
- disabled: !((He = Ae.value) != null && He.length),
7329
- class: "irep-flats-list-filters-select ire-max-w-full [&_select]:ire-capitalize"
7340
+ modelValue: Le.value.floor,
7341
+ "onUpdate:modelValue": ze[2] || (ze[2] = (Fe) => Le.value.floor = Fe),
7342
+ data: Re.value,
7343
+ disabled: !((je = Re.value) != null && je.length),
7344
+ class: "irep-flats-list-filters-select ire-max-w-full"
7330
7345
  }, null, 8, ["modelValue", "data", "disabled"])
7331
7346
  ]),
7332
7347
  createElementVNode("div", null, [
7333
- createElementVNode("div", _hoisted_5, toDisplayString(unref(tr)("rooms count")), 1),
7348
+ createElementVNode("div", _hoisted_5$1, toDisplayString(unref(tr)("rooms count")), 1),
7334
7349
  createVNode(_sfc_main$C, {
7335
- modelValue: Ie.value.roomRange,
7336
- "onUpdate:modelValue": Fe[3] || (Fe[3] = (We) => Ie.value.roomRange = We),
7337
- data: Le,
7350
+ modelValue: Le.value.roomRange,
7351
+ "onUpdate:modelValue": ze[3] || (ze[3] = (Fe) => Le.value.roomRange = Fe),
7352
+ data: Ve,
7338
7353
  disabled: !1,
7339
- class: "irep-flats-list-filters-select ire-max-w-full [&_select]:ire-capitalize"
7354
+ class: "irep-flats-list-filters-select ire-max-w-full"
7340
7355
  }, null, 8, ["modelValue"])
7341
7356
  ]),
7342
7357
  createElementVNode("div", null, [
7343
7358
  createElementVNode("div", _hoisted_6, toDisplayString(unref(tr)("select config")), 1),
7344
7359
  createVNode(_sfc_main$C, {
7345
- modelValue: Ie.value.config,
7346
- "onUpdate:modelValue": Fe[4] || (Fe[4] = (We) => Ie.value.config = We),
7347
- data: Re,
7360
+ modelValue: Le.value.config,
7361
+ "onUpdate:modelValue": ze[4] || (ze[4] = (Fe) => Le.value.config = Fe),
7362
+ data: De,
7348
7363
  disabled: !1,
7349
- class: "irep-flats-list-filters-select ire-max-w-full [&_select]:ire-capitalize"
7364
+ class: "irep-flats-list-filters-select ire-max-w-full"
7350
7365
  }, null, 8, ["modelValue"])
7351
7366
  ]),
7352
7367
  createElementVNode("div", _hoisted_7, [
@@ -7354,13 +7369,7 @@ const MagnifyIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_re
7354
7369
  title: unref(tr)("reset"),
7355
7370
  active: "",
7356
7371
  class: "irep-flats-list-filters-submit-btn !ire-w-fit ire-capitalize",
7357
- onClick: ze
7358
- }, null, 8, ["title"]),
7359
- createVNode(_sfc_main$x, {
7360
- title: unref(tr)("filter"),
7361
- active: "",
7362
- class: "irep-flats-list-filters-submit-btn !ire-w-fit ire-capitalize",
7363
- onClick: Fe[5] || (Fe[5] = (We) => ke("filterFlatsList"))
7372
+ onClick: Ie
7364
7373
  }, null, 8, ["title"])
7365
7374
  ])
7366
7375
  ]);
@@ -7406,10 +7415,13 @@ function _sfc_render(Be, _e) {
7406
7415
  }, null, -1)
7407
7416
  ])]);
7408
7417
  }
7409
- const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render]]), _hoisted_1 = { class: "irep-flats-top ire-flex ire-justify-between ire-py-4 ire-text-center" }, _hoisted_2 = { class: "ire-flex ire-justify-center ire-text-center [&_path]:ire-transition-all group-hover:[&_path]:ire-stroke-gray-500" }, _hoisted_3 = {
7418
+ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render]]), _hoisted_1 = { class: "irep-flats-view-container ire-flex ire-justify-end ire-py-4 ire-text-center" }, _hoisted_2 = { class: "ire-flex ire-justify-center ire-text-center [&_path]:ire-transition-all group-hover:[&_path]:ire-stroke-gray-500" }, _hoisted_3 = {
7410
7419
  key: 1,
7411
- class: "ire-text-center ire-text-lg ire-font-semibold ire-capitalize ire-text-black"
7420
+ class: "irep-flats-cards-list-wrapper ire-grid ire-grid-cols-1 ire-gap-y-8 md:ire-grid-cols-2 lg:ire-grid-cols-3 md:[&>div:nth-child(2n)]:ire-border-r lg:[&>div:nth-child(2n)]:ire-border-r-0 lg:[&>div:nth-child(3n)]:ire-border-r"
7412
7421
  }, _hoisted_4 = {
7422
+ key: 1,
7423
+ class: "ire-text-center ire-text-lg ire-font-semibold ire-capitalize ire-text-black"
7424
+ }, _hoisted_5 = {
7413
7425
  key: 2,
7414
7426
  class: "irep-flats-list__pagination ire-mt-8 ire-flex ire-flex-col ire-items-center ire-gap-4"
7415
7427
  }, _sfc_main = /* @__PURE__ */ defineComponent({
@@ -7431,97 +7443,101 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7431
7443
  ke.setData(_e.data), ke.setIrePlaginWp(_e.irePlugin);
7432
7444
  const Le = ref(""), Re = ref("");
7433
7445
  provide("sortField", Le), provide("sortOrder", Re);
7434
- const Ie = ref(!1), Ae = ref(!1), ze = ref(6), je = ref(), Fe = ref(1), He = ref(!1), We = ref(), qe = ref({
7446
+ const Ie = ref(!1), Ae = ref(6), ze = ref(), je = ref(1), Fe = ref(!1), He = ref(), We = ref({
7435
7447
  priceRange: "0-Infinity",
7436
7448
  areaRange: "0-Infinity",
7437
7449
  floor: "",
7438
7450
  roomRange: "0-Infinity",
7439
7451
  config: "all"
7440
- }), Ze = computed$1(() => {
7452
+ }), qe = computed$1(() => {
7441
7453
  if ($e.value)
7442
7454
  return $e.value.types;
7443
- }), Xe = computed$1(() => $e.value ? $e.value.flats.map((Ke) => {
7444
- var ri, si, ai;
7445
- const ei = (ri = $e.value) == null ? void 0 : ri.floors.find(
7446
- (li) => li.id === Ke.floor_id
7447
- ), ii = (si = $e.value) == null ? void 0 : si.blocks.find(
7448
- (li) => li.id === Ke.block_id
7449
- ), oi = Ke.use_type || !Ke.type ? ((ai = Ze.value) == null ? void 0 : ai.find((li) => li.id === Ke.type_id)) ?? Ke.type : Ke.type;
7455
+ }), Ue = computed$1(() => $e.value ? $e.value.flats.map((Ze) => {
7456
+ var oi, ri, si;
7457
+ const ti = (oi = $e.value) == null ? void 0 : oi.floors.find(
7458
+ (ai) => ai.id === Ze.floor_id
7459
+ ), Je = (ri = $e.value) == null ? void 0 : ri.blocks.find(
7460
+ (ai) => ai.id === Ze.block_id
7461
+ ), ni = Ze.use_type || !Ze.type ? ((si = qe.value) == null ? void 0 : si.find((ai) => ai.id === Ze.type_id)) ?? Ze.type : Ze.type;
7450
7462
  return {
7451
- ...Ke,
7463
+ ...Ze,
7452
7464
  type: {
7453
- ...oi,
7454
- area_m2_n: Number(oi == null ? void 0 : oi.area_m2),
7455
- area_m2: `${oi == null ? void 0 : oi.area_m2} ${getAreaUnitLabel()}²`
7465
+ ...ni,
7466
+ area_m2_n: Number(ni == null ? void 0 : ni.area_m2),
7467
+ area_m2: `${ni == null ? void 0 : ni.area_m2} ${getAreaUnitLabel()}²`
7456
7468
  },
7457
- price_n: Number(Ke.price),
7458
- 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()}`,
7459
- floor_title: ei == null ? void 0 : ei.title,
7460
- floor_number: Number(ei == null ? void 0 : ei.floor_number),
7461
- block_title: ii == null ? void 0 : ii.title
7469
+ price_n: Number(Ze.price),
7470
+ price: Ze.conf ? tr(Ze.conf) : Ze.request_price ? tr("Request Price") : `${getPrice(Number((Ze == null ? void 0 : Ze.offer_price) || (Ze == null ? void 0 : Ze.price)))} ${currencySymbol()}`,
7471
+ floor_title: ti == null ? void 0 : ti.title,
7472
+ floor_number: Number(ti == null ? void 0 : ti.floor_number),
7473
+ block_title: Je == null ? void 0 : Je.title
7462
7474
  };
7463
- }).map((Ke) => {
7464
- var ii;
7465
- const ei = (ii = Ke.type) == null ? void 0 : ii.other.reduce(
7466
- (oi, ri) => (oi[ri.key] = ri.value, oi),
7475
+ }).map((Ze) => {
7476
+ var Je;
7477
+ const ti = (Je = Ze.type) == null ? void 0 : Je.other.reduce(
7478
+ (ni, oi) => (ni[oi.key] = oi.value, ni),
7467
7479
  {}
7468
7480
  );
7469
- return { ...Ke, type: { ...Ke.type, other: ei } };
7470
- }).sort((Ke, ei) => {
7471
- const ii = Le.value;
7472
- let oi = Ke[ii], ri = ei[ii];
7473
- ii != null && ii.includes(".") && (oi = getNested(Ke, ii), ri = getNested(ei, ii)), oi == null && (oi = "0"), ri == null && (ri = "0");
7474
- const si = oi.toString(), ai = ri.toString();
7475
- 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));
7476
- }) : []), Je = computed$1(() => {
7477
- var Ye;
7478
- return Qe.value ? Math.ceil(((Ye = Ue.value) == null ? void 0 : Ye.length) / ze.value) : 0;
7479
- }), Ue = computed$1(() => Xe.value ? Xe.value.filter((Ye) => {
7480
- var hi, fi, mi, vi, gi;
7481
- const [Ke, ei] = qe.value.priceRange.split("-").map(Number), [ii, oi] = qe.value.areaRange.split("-").map(Number), [ri, si] = qe.value.roomRange.split("-").map(Number), ai = Ye.price_n >= Ke && Ye.price_n <= ei, li = ((hi = Ye.type) == null ? void 0 : hi.area_m2_n) >= ii && ((fi = Ye.type) == null ? void 0 : fi.area_m2_n) <= oi, ui = (mi = qe.value) != null && mi.floor ? Ye.floor_id === qe.value.floor : !0, ci = +((vi = Ye.type) == null ? void 0 : vi.rooms_count) >= ri && +((gi = Ye.type) == null ? void 0 : gi.rooms_count) <= si;
7482
- let di = !0;
7483
- return qe.value.config !== "all" && (qe.value.config === "available" ? di = !Ye.conf : qe.value.config === "reserved" ? di = Ye.conf === "reserved" : qe.value.config === "sold" && (di = Ye.conf === "sold")), ai && li && ui && ci && di;
7484
- }) : []), Qe = computed$1(() => {
7485
- var ei;
7486
- if (!((ei = $e.value) != null && ei.flats)) return [];
7487
- const Ye = (Fe.value - 1) * ze.value, Ke = Ye + ze.value;
7488
- return Ue.value.slice(Ye, Ke);
7489
- }), ni = (Ye) => {
7490
- Fe.value = Ye, De(je.value), je.value, setQuery("flats-page", Ye.toString());
7491
- }, ti = (Ye, Ke) => {
7492
- Le.value = Ye, Re.value = Ke;
7493
- }, Ge = (Ye) => {
7494
- const Ke = Ve.value.find((ei) => ei.id === Ye);
7495
- We.value = Ke, He.value = !0;
7481
+ return { ...Ze, type: { ...Ze.type, other: ti } };
7482
+ }).sort((Ze, ti) => {
7483
+ const Je = Le.value;
7484
+ let ni = Ze[Je], oi = ti[Je];
7485
+ Je != null && Je.includes(".") && (ni = getNested(Ze, Je), oi = getNested(ti, Je)), ni == null && (ni = "0"), oi == null && (oi = "0");
7486
+ const ri = ni.toString(), si = oi.toString();
7487
+ return !isNaN(ri) && !isNaN(si) ? Re.value === "desc" ? si - ri : ri - si : Re.value === "desc" ? String(oi).localeCompare(String(ni)) : String(ni).localeCompare(String(oi));
7488
+ }) : []), Ye = computed$1(() => {
7489
+ var Ge;
7490
+ return Xe.value ? Math.ceil(((Ge = Ke.value) == null ? void 0 : Ge.length) / Ae.value) : 0;
7491
+ }), Ke = computed$1(() => Ue.value ? Ue.value.filter((Ge) => {
7492
+ var ui, hi, fi, mi, gi;
7493
+ const [Ze, ti] = We.value.priceRange.split("-").map(Number), [Je, ni] = We.value.areaRange.split("-").map(Number), [oi, ri] = We.value.roomRange.split("-").map(Number), si = Ge.price_n >= Ze && Ge.price_n <= ti, ai = ((ui = Ge.type) == null ? void 0 : ui.area_m2_n) >= Je && ((hi = Ge.type) == null ? void 0 : hi.area_m2_n) <= ni, li = (fi = We.value) != null && fi.floor ? Ge.floor_id === We.value.floor : !0, di = +((mi = Ge.type) == null ? void 0 : mi.rooms_count) >= oi && +((gi = Ge.type) == null ? void 0 : gi.rooms_count) <= ri;
7494
+ let ci = !0;
7495
+ return We.value.config !== "all" && (We.value.config === "available" ? ci = !Ge.conf : We.value.config === "reserved" ? ci = Ge.conf === "reserved" : We.value.config === "sold" && (ci = Ge.conf === "sold")), si && ai && li && di && ci;
7496
+ }) : []), Xe = computed$1(() => {
7497
+ var ti;
7498
+ if (!((ti = $e.value) != null && ti.flats)) return [];
7499
+ const Ge = (je.value - 1) * Ae.value, Ze = Ge + Ae.value;
7500
+ return Ke.value.slice(Ge, Ze);
7501
+ }), Qe = (Ge) => {
7502
+ je.value = Ge, De(ze.value, 50), ze.value, setQuery("flats-page", Ge.toString());
7503
+ }, ii = (Ge, Ze) => {
7504
+ Le.value = Ge, Re.value = Ze;
7505
+ }, ei = (Ge) => {
7506
+ const Ze = Ve.value.find((ti) => ti.id === Ge);
7507
+ He.value = Ze, Fe.value = !0;
7496
7508
  };
7497
7509
  return watch(
7498
- () => qe.value,
7510
+ () => We.value,
7499
7511
  () => {
7500
- Fe.value = 1, ni(1);
7512
+ je.value = 1, Qe(1);
7501
7513
  },
7502
7514
  {
7503
7515
  deep: !0
7504
7516
  }
7505
7517
  ), onMounted(() => {
7506
- const Ye = getQuery("flats-page");
7507
- Ye && !isNaN(Number(Ye)) && (Fe.value = Number(Ye)), _e.perPage && !isNaN(Number(_e.perPage)) && (ze.value = Number(_e.perPage));
7518
+ const Ge = getQuery("flats-page");
7519
+ Ge && !isNaN(Number(Ge)) && (je.value = Number(Ge)), _e.perPage && !isNaN(Number(_e.perPage)) && (Ae.value = Number(_e.perPage));
7508
7520
  }), onBeforeMount(() => {
7509
- Ae.value = _e.layout === "table", _e.orderBy && (Le.value = _e.orderBy, Re.value = "asc");
7510
- }), provide("fromListView", _e.fromListView), (Ye, Ke) => (openBlock(), createBlock(_sfc_main$L, { class: "irep-flats-list ire-text-base" }, {
7521
+ Ie.value = _e.layout === "table", _e.orderBy && (Le.value = _e.orderBy, Re.value = "asc");
7522
+ }), provide("fromListView", _e.fromListView), (Ge, Ze) => (openBlock(), createBlock(_sfc_main$L, { class: "irep-flats-list ire-text-base" }, {
7511
7523
  default: withCtx(() => {
7512
- var ei;
7524
+ var ti;
7513
7525
  return [
7526
+ createElementVNode("div", {
7527
+ ref_key: "flatsContainer",
7528
+ ref: ze,
7529
+ class: "irep-flats-top"
7530
+ }, [
7531
+ createVNode(_sfc_main$2, {
7532
+ "filters-object": We.value,
7533
+ "onUpdate:filtersObject": Ze[0] || (Ze[0] = (Je) => We.value = Je)
7534
+ }, null, 8, ["filters-object"])
7535
+ ], 512),
7514
7536
  createElementVNode("div", _hoisted_1, [
7515
- createVNode(_sfc_main$x, {
7516
- title: unref(tr)("filters"),
7517
- active: "",
7518
- class: "irep-flats-top__filters-button !ire-w-fit ire-capitalize",
7519
- onClick: Ke[0] || (Ke[0] = (ii) => Ie.value = !0)
7520
- }, null, 8, ["title"]),
7521
7537
  Be.layout === "mixed" ? (openBlock(), createElementBlock("button", {
7522
7538
  key: 0,
7523
- class: "irep-flats-top__mode-switcher-button ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-1 ire-bg-transparent",
7524
- onClick: Ke[1] || (Ke[1] = (ii) => Ae.value = !Ae.value)
7539
+ class: "irep-flats-top__mode-switcher-button ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-1 ire-bg-transparent ire-capitalize",
7540
+ onClick: Ze[1] || (Ze[1] = (Je) => Ie.value = !Ie.value)
7525
7541
  }, [
7526
7542
  createElementVNode("div", _hoisted_2, [
7527
7543
  createVNode(Transition, {
@@ -7529,7 +7545,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7529
7545
  mode: "out-in"
7530
7546
  }, {
7531
7547
  default: withCtx(() => [
7532
- Ae.value ? (openBlock(), createBlock(GridIcon, {
7548
+ Ie.value ? (openBlock(), createBlock(GridIcon, {
7533
7549
  key: 0,
7534
7550
  class: "ire-size-5"
7535
7551
  })) : (openBlock(), createBlock(TableIcon, {
@@ -7546,48 +7562,43 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7546
7562
  }, {
7547
7563
  default: withCtx(() => [
7548
7564
  (openBlock(), createElementBlock("span", {
7549
- key: String(Ae.value),
7565
+ key: String(Ie.value),
7550
7566
  class: "ire-text-base ire-text-black ire-transition-all group-hover:ire-text-gray-500"
7551
- }, toDisplayString(Ae.value ? unref(tr)("grid view") : unref(tr)("table view")), 1))
7567
+ }, toDisplayString(Ie.value ? unref(tr)("grid view") : unref(tr)("table view")), 1))
7552
7568
  ]),
7553
7569
  _: 1
7554
7570
  })
7555
7571
  ])) : createCommentVNode("", !0)
7556
7572
  ]),
7557
- Qe.value.length ? (openBlock(), createBlock(Transition, {
7573
+ Xe.value.length ? (openBlock(), createBlock(Transition, {
7558
7574
  key: 0,
7559
7575
  name: "ire-fade-in-out",
7560
7576
  mode: "out-in"
7561
7577
  }, {
7562
7578
  default: withCtx(() => [
7563
- Ae.value ? (openBlock(), createBlock(_sfc_main$3, {
7579
+ Ie.value ? (openBlock(), createBlock(_sfc_main$3, {
7564
7580
  key: 0,
7565
- flats: Qe.value,
7566
- onSortColumn: Ke[2] || (Ke[2] = (ii, oi) => ti(ii, oi)),
7567
- onOpenFlat: Ke[3] || (Ke[3] = (ii) => Ge(ii))
7568
- }, null, 8, ["flats"])) : (openBlock(), createElementBlock("div", {
7569
- key: 1,
7570
- ref_key: "flatsContainer",
7571
- ref: je,
7572
- class: "ire-grid ire-grid-cols-1 md:ire-grid-cols-2 md:ire-gap-4 lg:ire-grid-cols-3 md:[&>div:nth-child(2n)]:ire-border-r lg:[&>div:nth-child(2n)]:ire-border-r-0 lg:[&>div:nth-child(3n)]:ire-border-r"
7573
- }, [
7574
- (openBlock(!0), createElementBlock(Fragment, null, renderList(Qe.value, (ii) => (openBlock(), createBlock(_sfc_main$e, {
7575
- key: ii.id,
7576
- flat: ii,
7577
- onOpenFlat: Ke[4] || (Ke[4] = (oi) => Ge(oi))
7581
+ flats: Xe.value,
7582
+ onSortColumn: Ze[2] || (Ze[2] = (Je, ni) => ii(Je, ni)),
7583
+ onOpenFlat: Ze[3] || (Ze[3] = (Je) => ei(Je))
7584
+ }, null, 8, ["flats"])) : (openBlock(), createElementBlock("div", _hoisted_3, [
7585
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(Xe.value, (Je) => (openBlock(), createBlock(_sfc_main$e, {
7586
+ key: Je.id,
7587
+ flat: Je,
7588
+ onOpenFlat: Ze[4] || (Ze[4] = (ni) => ei(ni))
7578
7589
  }, null, 8, ["flat"]))), 128))
7579
- ], 512))
7590
+ ]))
7580
7591
  ]),
7581
7592
  _: 1
7582
- })) : (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(unref(tr)("nothing found")), 1)),
7583
- (ei = Qe.value) != null && ei.length && Je.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_4, [
7593
+ })) : (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString(unref(tr)("nothing found")), 1)),
7594
+ (ti = Xe.value) != null && ti.length && Ye.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_5, [
7584
7595
  createVNode(unref(script$1), {
7585
- modelValue: Fe.value,
7596
+ modelValue: je.value,
7586
7597
  "onUpdate:modelValue": [
7587
- Ke[5] || (Ke[5] = (ii) => Fe.value = ii),
7588
- ni
7598
+ Ze[5] || (Ze[5] = (Je) => je.value = Je),
7599
+ Qe
7589
7600
  ],
7590
- pages: Je.value,
7601
+ pages: Ye.value,
7591
7602
  "range-size": 1,
7592
7603
  "active-color": "#000000",
7593
7604
  class: "[&_.Page-active]:!ire-border-none [&_.Page-active]:!ire-text-white [&_button]:!ire-rounded-full [&_button]:ire-transition-all [&_button]:hover:!ire-border-none hover:[&_button]:!ire-bg-gray-600 hover:[&_button]:!ire-text-white"
@@ -7599,42 +7610,19 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7599
7610
  appear: ""
7600
7611
  }, {
7601
7612
  default: withCtx(() => [
7602
- He.value && We.value ? (openBlock(), createBlock(_sfc_main$m, {
7613
+ Fe.value && He.value ? (openBlock(), createBlock(_sfc_main$m, {
7603
7614
  key: 0,
7604
7615
  style: normalizeStyle(unref(Ne)),
7605
- onClose: Ke[6] || (Ke[6] = (ii) => He.value = !1)
7616
+ onClose: Ze[6] || (Ze[6] = (Je) => Fe.value = !1)
7606
7617
  }, {
7607
7618
  default: withCtx(() => [
7608
- createVNode(_sfc_main$o, { flat: We.value }, null, 8, ["flat"])
7619
+ createVNode(_sfc_main$o, { flat: He.value }, null, 8, ["flat"])
7609
7620
  ]),
7610
7621
  _: 1
7611
7622
  }, 8, ["style"])) : createCommentVNode("", !0)
7612
7623
  ]),
7613
7624
  _: 1
7614
7625
  })
7615
- ])),
7616
- (openBlock(), createBlock(Teleport, { to: "body" }, [
7617
- createVNode(Transition, {
7618
- name: "ire-fade-in-out",
7619
- appear: ""
7620
- }, {
7621
- default: withCtx(() => [
7622
- Ie.value ? (openBlock(), createBlock(_sfc_main$m, {
7623
- key: 0,
7624
- onClose: Ke[9] || (Ke[9] = (ii) => Ie.value = !1)
7625
- }, {
7626
- default: withCtx(() => [
7627
- createVNode(_sfc_main$2, {
7628
- "filters-object": qe.value,
7629
- "onUpdate:filtersObject": Ke[7] || (Ke[7] = (ii) => qe.value = ii),
7630
- onFilterFlatsList: Ke[8] || (Ke[8] = (ii) => Ie.value = !1)
7631
- }, null, 8, ["filters-object"])
7632
- ]),
7633
- _: 1
7634
- })) : createCommentVNode("", !0)
7635
- ]),
7636
- _: 1
7637
- })
7638
7626
  ]))
7639
7627
  ];
7640
7628
  }),