ire-preview 3.2.33 → 3.2.35

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.
Files changed (61) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/dist/lib.es.js +491 -492
  3. package/dist/src/components/demo/form/Input.vue.d.ts +30 -0
  4. package/dist/src/components/demo/form/PreviewSelect.vue.d.ts +22 -0
  5. package/dist/src/components/demo/layout/MouseTracker.vue.d.ts +21 -0
  6. package/dist/src/components/demo/layout/PreviewLayout.vue.d.ts +26 -0
  7. package/dist/src/components/demo/layout/ShortcodeWrapper.vue.d.ts +17 -0
  8. package/dist/src/components/demo/preview/ActionModal.vue.d.ts +6 -0
  9. package/dist/src/components/demo/preview/BlockPreview.vue.d.ts +15 -0
  10. package/dist/src/components/demo/preview/FlatPreview.vue.d.ts +11 -0
  11. package/dist/src/components/demo/preview/FloorPreview.vue.d.ts +16 -0
  12. package/dist/src/components/demo/preview/Preview.vue.d.ts +2 -0
  13. package/dist/src/components/demo/preview/ProjectPreview.vue.d.ts +17 -0
  14. package/dist/src/components/demo/preview/tooltips/Tooltip_1.vue.d.ts +6 -0
  15. package/dist/src/components/demo/preview/tooltips/Tooltip_2.vue.d.ts +7 -0
  16. package/dist/src/components/demo/preview/tooltips/Tooltip_3.vue.d.ts +6 -0
  17. package/dist/src/components/demo/uiComponents/BackButton.vue.d.ts +2 -0
  18. package/dist/src/components/demo/uiComponents/Badge.vue.d.ts +6 -0
  19. package/dist/src/components/demo/uiComponents/BaseEditor.vue.d.ts +5 -0
  20. package/dist/src/components/demo/uiComponents/Button.vue.d.ts +23 -0
  21. package/dist/src/components/demo/uiComponents/Filters.vue.d.ts +12 -0
  22. package/dist/src/components/demo/uiComponents/FlatCard.vue.d.ts +10 -0
  23. package/dist/src/components/demo/uiComponents/FlatModalImage.vue.d.ts +6 -0
  24. package/dist/src/components/demo/uiComponents/FlatPreviewKeyValue.vue.d.ts +22 -0
  25. package/dist/src/components/demo/uiComponents/FlatsTable.vue.d.ts +12 -0
  26. package/dist/src/components/demo/uiComponents/PreviewModal.vue.d.ts +21 -0
  27. package/dist/src/components/demo/uiComponents/ReservationForm.vue.d.ts +10 -0
  28. package/dist/src/components/demo/uiComponents/table/Column.vue.d.ts +2 -0
  29. package/dist/src/components/demo/uiComponents/table/Table.vue.d.ts +9 -0
  30. package/dist/src/components/demo/uiComponents/table/TableAction.vue.d.ts +10 -0
  31. package/dist/src/components/demo/uiComponents/table/TableCol.vue.d.ts +6 -0
  32. package/dist/src/components/icons/ArrowRight.vue.d.ts +2 -0
  33. package/dist/src/components/icons/ClipBoard.vue.d.ts +2 -0
  34. package/dist/src/components/icons/Close.vue.d.ts +2 -0
  35. package/dist/src/components/icons/ContactIcon.vue.d.ts +2 -0
  36. package/dist/src/components/icons/Correct.vue.d.ts +2 -0
  37. package/dist/src/components/icons/Cube3d.vue.d.ts +2 -0
  38. package/dist/src/components/icons/DownloadIcon.vue.d.ts +2 -0
  39. package/dist/src/components/icons/FlatIcon.vue.d.ts +2 -0
  40. package/dist/src/components/icons/GridIcon.vue.d.ts +2 -0
  41. package/dist/src/components/icons/Logo.vue.d.ts +2 -0
  42. package/dist/src/components/icons/MagnifyIcon.vue.d.ts +2 -0
  43. package/dist/src/components/icons/MoneyBag.vue.d.ts +2 -0
  44. package/dist/src/components/icons/Placeholder.vue.d.ts +2 -0
  45. package/dist/src/components/icons/SortingArrow.vue.d.ts +2 -0
  46. package/dist/src/components/icons/SortingArrowAsc.vue.d.ts +2 -0
  47. package/dist/src/components/icons/TableIcon.vue.d.ts +2 -0
  48. package/dist/src/composable/helper.d.ts +11 -0
  49. package/dist/src/composable/useScroll.d.ts +3 -0
  50. package/dist/src/interfaces/components.d.ts +218 -0
  51. package/dist/src/interfaces/index.d.ts +11 -0
  52. package/dist/src/main.d.ts +5 -0
  53. package/dist/src/shortcodes/FlatsList.vue.d.ts +12 -0
  54. package/dist/src/shortcodes/Project.vue.d.ts +6 -0
  55. package/dist/src/shortcodes/index.d.ts +2 -0
  56. package/dist/src/store/useGlobal.d.ts +71 -0
  57. package/dist/src/types/DemoTypes.d.ts +238 -0
  58. package/dist/src/utils/axios.d.ts +2 -0
  59. package/dist/styles.css +1 -1
  60. package/dist/styles.d.ts +1 -0
  61. package/package.json +1 -1
package/dist/lib.es.js CHANGED
@@ -94,39 +94,39 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
94
94
  const He = $e.state.value[Be];
95
95
  !Ve && !He && ($e.state.value[Be] = {}), ref({});
96
96
  let We;
97
- function qe(Ke) {
98
- let Ue;
99
- Ie = Ae = !1, typeof Ke == "function" ? (Ke($e.state.value[Be]), Ue = {
97
+ function qe(Ge) {
98
+ let Ye;
99
+ Ie = Ae = !1, typeof Ge == "function" ? (Ge($e.state.value[Be]), Ye = {
100
100
  type: MutationType.patchFunction,
101
101
  storeId: Be,
102
102
  events: Fe
103
- }) : (mergeReactiveObjects($e.state.value[Be], Ke), Ue = {
103
+ }) : (mergeReactiveObjects($e.state.value[Be], Ge), Ye = {
104
104
  type: MutationType.patchObject,
105
- payload: Ke,
105
+ payload: Ge,
106
106
  storeId: Be,
107
107
  events: Fe
108
108
  });
109
- const Ge = We = Symbol();
109
+ const Ke = We = Symbol();
110
110
  nextTick().then(() => {
111
- We === Ge && (Ie = !0);
112
- }), Ae = !0, triggerSubscriptions(ze, Ue, $e.state.value[Be]);
111
+ We === Ke && (Ie = !0);
112
+ }), Ae = !0, triggerSubscriptions(ze, Ye, $e.state.value[Be]);
113
113
  }
114
114
  const Ze = Ve ? function() {
115
- const { state: Ue } = ke, Ge = Ue ? Ue() : {};
115
+ const { state: Ye } = ke, Ke = Ye ? Ye() : {};
116
116
  this.$patch((ei) => {
117
- assign(ei, Ge);
117
+ assign(ei, Ke);
118
118
  });
119
119
  } : (
120
120
  /* istanbul ignore next */
121
121
  noop
122
122
  );
123
- function Ye() {
123
+ function Xe() {
124
124
  De.stop(), ze.clear(), je.clear(), $e._s.delete(Be);
125
125
  }
126
- const Je = (Ke, Ue = "") => {
127
- if (ACTION_MARKER in Ke)
128
- return Ke[ACTION_NAME] = Ue, Ke;
129
- const Ge = function() {
126
+ const Je = (Ge, Ye = "") => {
127
+ if (ACTION_MARKER in Ge)
128
+ return Ge[ACTION_NAME] = Ye, Ge;
129
+ const Ke = function() {
130
130
  setActivePinia($e);
131
131
  const ei = Array.from(arguments), ii = /* @__PURE__ */ new Set(), oi = /* @__PURE__ */ new Set();
132
132
  function ri(li) {
@@ -137,59 +137,59 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
137
137
  }
138
138
  triggerSubscriptions(je, {
139
139
  args: ei,
140
- name: Ge[ACTION_NAME],
140
+ name: Ke[ACTION_NAME],
141
141
  store: Qe,
142
142
  after: ri,
143
143
  onError: si
144
144
  });
145
145
  let ai;
146
146
  try {
147
- ai = Ke.apply(this && this.$id === Be ? this : Qe, ei);
147
+ ai = Ge.apply(this && this.$id === Be ? this : Qe, ei);
148
148
  } catch (li) {
149
149
  throw triggerSubscriptions(oi, li), li;
150
150
  }
151
151
  return ai instanceof Promise ? ai.then((li) => (triggerSubscriptions(ii, li), li)).catch((li) => (triggerSubscriptions(oi, li), Promise.reject(li))) : (triggerSubscriptions(ii, ai), ai);
152
152
  };
153
- return Ge[ACTION_MARKER] = !0, Ge[ACTION_NAME] = Ue, Ge;
154
- }, Xe = {
153
+ return Ke[ACTION_MARKER] = !0, Ke[ACTION_NAME] = Ye, Ke;
154
+ }, Ue = {
155
155
  _p: $e,
156
156
  // _s: scope,
157
157
  $id: Be,
158
158
  $onAction: addSubscription.bind(null, je),
159
159
  $patch: qe,
160
160
  $reset: Ze,
161
- $subscribe(Ke, Ue = {}) {
162
- const Ge = addSubscription(ze, Ke, Ue.detached, () => ei()), ei = De.run(() => watch(() => $e.state.value[Be], (ii) => {
163
- (Ue.flush === "sync" ? Ae : Ie) && Ke({
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({
164
164
  storeId: Be,
165
165
  type: MutationType.direct,
166
166
  events: Fe
167
167
  }, ii);
168
- }, assign({}, Re, Ue)));
169
- return Ge;
168
+ }, assign({}, Re, Ye)));
169
+ return Ke;
170
170
  },
171
- $dispose: Ye
172
- }, Qe = reactive(Xe);
171
+ $dispose: Xe
172
+ }, Qe = reactive(Ue);
173
173
  $e._s.set(Be, Qe);
174
174
  const ti = ($e._a && $e._a.runWithContext || fallbackRunWithContext)(() => $e._e.run(() => (De = effectScope()).run(() => _e({ action: Je }))));
175
- for (const Ke in ti) {
176
- const Ue = ti[Ke];
177
- if (isRef(Ue) && !isComputed(Ue) || isReactive(Ue))
178
- Ve || (He && shouldHydrate(Ue) && (isRef(Ue) ? Ue.value = He[Ke] : mergeReactiveObjects(Ue, He[Ke])), $e.state.value[Be][Ke] = Ue);
179
- else if (typeof Ue == "function") {
180
- const Ge = Je(Ue, Ke);
181
- ti[Ke] = Ge, Le.actions[Ke] = Ue;
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;
182
182
  }
183
183
  }
184
184
  return assign(Qe, ti), assign(toRaw(Qe), ti), Object.defineProperty(Qe, "$state", {
185
185
  get: () => $e.state.value[Be],
186
- set: (Ke) => {
187
- qe((Ue) => {
188
- assign(Ue, Ke);
186
+ set: (Ge) => {
187
+ qe((Ye) => {
188
+ assign(Ye, Ge);
189
189
  });
190
190
  }
191
- }), $e._p.forEach((Ke) => {
192
- assign(Qe, De.run(() => Ke({
191
+ }), $e._p.forEach((Ge) => {
192
+ assign(Qe, De.run(() => Ge({
193
193
  store: Qe,
194
194
  app: $e._a,
195
195
  pinia: $e,
@@ -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, Ye, Je, Xe, Qe, ni;
230
+ var We, qe, Ze, Xe, Je, Ue, Qe, ni;
231
231
  const Be = ref(), _e = ref("1"), ke = ref(), $e = ref(), Ne = (ti) => {
232
- var Ke, Ue, Ge;
233
- return ((Ge = (Ue = (Ke = ke.value) == null ? void 0 : Ke.meta) == null ? void 0 : Ue.find((ei) => (ei == null ? void 0 : ei.meta_key) === ti)) == null ? void 0 : Ge.meta_value) || "";
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) || "";
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)",
@@ -244,17 +244,17 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
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
246
  reserved: (Ze = Ve.value) == null ? void 0 : Ze.PREVIEW_RESERVED_COLOR,
247
- sold: (Ye = Ve.value) == null ? void 0 : Ye.PREVIEW_SOLD_COLOR,
247
+ sold: (Xe = Ve.value) == null ? void 0 : Xe.PREVIEW_SOLD_COLOR,
248
248
  stroke_color: (Je = Ve.value) == null ? void 0 : Je.PREVIEW_STROKE_COLOR,
249
- primary_color: (Xe = Ve.value) == null ? void 0 : Xe.PREVIEW_PRIMARY_COLOR,
249
+ primary_color: (Ue = Ve.value) == null ? void 0 : Ue.PREVIEW_PRIMARY_COLOR,
250
250
  stroke_width: (Qe = Ve.value) == null ? void 0 : Qe.PREVIEW_STROKE_WIDTH,
251
251
  border_radius: (ni = Ve.value) == null ? void 0 : ni.PREVIEW_BORDER_RADIUS
252
252
  }), Le = computed$1(() => {
253
253
  var ti;
254
- return (ti = ke.value) == null ? void 0 : ti.flats.map((Ke) => {
255
- var Ge, ei;
256
- const Ue = Ke != null && Ke.use_type || !(Ke != null && Ke.type) ? ((ei = (Ge = ke.value) == null ? void 0 : Ge.types) == null ? void 0 : ei.find((ii) => ii.id === (Ke == null ? void 0 : Ke.type_id))) ?? (Ke == null ? void 0 : Ke.type) : Ke == null ? void 0 : Ke.type;
257
- return { ...Ke, type: Ue };
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 };
258
258
  });
259
259
  }), Re = computed$1(() => Ne("open_reserved_flat") === "true"), Ie = computed$1(() => Ne("open_sold_flat") === "true"), Ae = computed$1(() => Ne("price_rounded") === "true"), ze = computed$1(() => {
260
260
  var ti;
@@ -279,8 +279,8 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
279
279
  return (ti = ke.value) == null ? void 0 : ti.meta;
280
280
  },
281
281
  () => {
282
- const ti = Ne("path_color"), Ke = Ne("path_hover_color"), Ue = Ne("reserved_color"), Ge = Ne("sold_color"), ei = Ne("stroke_color"), ii = Ne("primary_color"), oi = Ne("stroke_width"), ri = Ne("border_radius");
283
- ti && (De.path = ti.toString()), Ke && (De.path_hover = Ke.toString()), Ue && (De.reserved = Ue.toString()), Ge && (De.sold = Ge.toString()), ei && (De.stroke_color = ei.toString()), ei && (De.stroke_color = ei.toString()), ii && (De.primary_color = ii.toString()), De.stroke_width = Number(oi) || 1, De.border_radius = Number(ri) || 0;
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;
284
284
  },
285
285
  { deep: !0 }
286
286
  ), {
@@ -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, Ye, Je, Xe, Qe, ni, ti, Ke, Ue, Ge, ei, ii, oi;
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;
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, [
@@ -663,8 +663,8 @@ const tr = (Be) => {
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
- (Ye = (Ze = Be.hoveredData) == null ? void 0 : Ze.counts) != null && Ye.sold ? (openBlock(), createElementBlock("div", _hoisted_15$1, [
667
- createElementVNode("div", _hoisted_16$1, toDisplayString((Xe = (Je = Be.hoveredData) == null ? void 0 : Je.counts) == null ? void 0 : Xe.sold), 1),
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),
668
668
  createElementVNode("div", _hoisted_17$1, toDisplayString(unref(tr)("sold")), 1)
669
669
  ])) : createCommentVNode("", !0)
670
670
  ]))
@@ -682,11 +682,11 @@ const tr = (Be) => {
682
682
  createElementVNode("div", _hoisted_26$1, [
683
683
  ke.value ? (openBlock(), createElementBlock("div", _hoisted_27$1, toDisplayString(ke.value), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
684
684
  createElementVNode("div", _hoisted_28$1, toDisplayString(unref(tr)("price")), 1),
685
- (ti = Be.hoveredData) != null && ti.request_price ? (openBlock(), createElementBlock("div", _hoisted_29$1, toDisplayString(unref(tr)("Request Price")), 1)) : (Ke = Be.hoveredData) != null && Ke.price ? (openBlock(), createElementBlock("div", _hoisted_30$1, [
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, [
686
686
  createElementVNode("div", null, [
687
- (Ue = Be.hoveredData) != null && Ue.offer_price ? (openBlock(), createElementBlock("div", _hoisted_32$1, [
687
+ (Ye = Be.hoveredData) != null && Ye.offer_price ? (openBlock(), createElementBlock("div", _hoisted_32$1, [
688
688
  createElementVNode("div", _hoisted_33$1, [
689
- createTextVNode(toDisplayString(unref(getPrice)((Ge = Be.hoveredData) == null ? void 0 : Ge.price)) + " ", 1),
689
+ createTextVNode(toDisplayString(unref(getPrice)((Ke = Be.hoveredData) == null ? void 0 : Ke.price)) + " ", 1),
690
690
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
691
691
  ]),
692
692
  createElementVNode("div", _hoisted_34$1, [
@@ -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, Ye, Je, Xe, Qe, ni, ti, Ke, Ue, Ge, ei, ii, oi, ri, si, ai, li, ci, di, ui, hi, fi;
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;
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", {
@@ -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 = (Ye = Be.hoveredData) == null ? void 0 : Ye.counts) == null ? void 0 : Je.reserved) || 0), 1),
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),
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((Xe = Be.hoveredData) == null ? void 0 : Xe.title), 1),
870
+ createElementVNode("div", _hoisted_15, toDisplayString((Ue = Be.hoveredData) == null ? void 0 : Ue.title), 1),
871
871
  createElementVNode("span", _hoisted_16, toDisplayString(Ne.value), 1)
872
872
  ])
873
873
  ])) : Be.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_17, [
@@ -885,11 +885,11 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
885
885
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
886
886
  ]),
887
887
  createElementVNode("div", _hoisted_27, [
888
- createTextVNode(toDisplayString(unref(getPrice)(+((Ke = Be.hoveredData) == null ? void 0 : Ke.offer_price))) + " ", 1),
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
- ])) : (Ue = Be.hoveredData) != null && Ue.price ? (openBlock(), createElementBlock("div", _hoisted_29, [
892
- createTextVNode(toDisplayString(unref(getPrice)(+((Ge = Be.hoveredData) == null ? void 0 : Ge.price))) + " ", 1),
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),
893
893
  createElementVNode("span", _hoisted_30, toDisplayString(unref(currencySymbol)()), 1)
894
894
  ])) : createCommentVNode("", !0)
895
895
  ], 64))
@@ -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
- (ci = (li = Be.hoveredData) == null ? void 0 : li.type) != null && ci.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_35, [
905
+ (ui = (li = Be.hoveredData) == null ? void 0 : li.type) != null && ui.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
- (ui = (di = Be.hoveredData) == null ? void 0 : di.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)
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)
910
910
  ])) : createCommentVNode("", !0)
911
911
  ])
912
912
  ])
@@ -1040,30 +1040,30 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
1040
1040
  }, He = () => {
1041
1041
  var Ze;
1042
1042
  if (!Re.value) return;
1043
- ((Ze = Re.value) == null ? void 0 : Ze.querySelectorAll("g")).forEach((Ye) => {
1044
- var ni, ti, Ke, Ue, Ge;
1045
- const Je = Ye == null ? void 0 : Ye.getAttribute("id"), Xe = (ti = (ni = $e.project) == null ? void 0 : ni.polygon_data) == null ? void 0 : ti.find(
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
1046
  (ei) => (ei == null ? void 0 : ei.key) === Je
1047
- ), Qe = Xe == null ? void 0 : Xe.id;
1048
- switch (Xe == null ? void 0 : Xe.type) {
1047
+ ), Qe = Ue == null ? void 0 : Ue.id;
1048
+ switch (Ue == null ? void 0 : Ue.type) {
1049
1049
  case "block":
1050
- const ei = (Ke = $e.blocks) == null ? void 0 : Ke.find((ri) => ri.id === Qe);
1051
- Ye.setAttribute("conf", (ei == null ? void 0 : ei.conf) || "");
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) || "");
1052
1052
  break;
1053
1053
  case "floor":
1054
- const ii = (Ue = $e.floors) == null ? void 0 : Ue.find((ri) => ri.id === Qe);
1055
- Ye.setAttribute("conf", (ii == null ? void 0 : ii.conf) || "");
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) || "");
1056
1056
  break;
1057
1057
  case "flat":
1058
- const oi = (Ge = $e.flats) == null ? void 0 : Ge.find((ri) => ri.id === Qe);
1059
- Ye.setAttribute("conf", (oi == null ? void 0 : oi.conf) || "");
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) || "");
1060
1060
  break;
1061
1061
  }
1062
1062
  });
1063
1063
  }, We = (qe) => {
1064
- var Ye, Je, Xe;
1064
+ var Xe, Je, Ue;
1065
1065
  const Ze = qe.target;
1066
- (Ze == null ? void 0 : Ze.nodeName) === "path" && (((Ye = Ae.value) == null ? void 0 : Ye.conf) === "reserved" && !De.value || ((Je = Ae.value) == null ? void 0 : Je.conf) === "sold" && !Le.value || ke("changeComponent", ((Xe = ze.value) == null ? void 0 : Xe.type) || "", Ae == null ? void 0 : Ae.value));
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));
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 Ye, Je, Xe, Qe, ni, ti, Ke;
1076
+ var Xe, Je, Ue, Qe, ni, ti, Ge;
1077
1077
  if (!qe) return;
1078
1078
  Ve.hoverdSvg = qe;
1079
1079
  const Ze = qe.parentElement;
1080
1080
  if (Ze && (Ze == null ? void 0 : Ze.nodeName) === "g") {
1081
- const Ue = Ze == null ? void 0 : Ze.getAttribute("id");
1082
- if (!Ue || (ze.value = ((Ye = $e.project) == null ? void 0 : Ye.polygon_data.find((ei) => (ei == null ? void 0 : ei.key) === Ue)) || null, !ze.value)) return;
1083
- const Ge = (Je = ze.value) == null ? void 0 : Je.id;
1084
- switch ((Xe = ze.value) == null ? void 0 : Xe.type) {
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) {
1085
1085
  case "floor":
1086
1086
  const ei = (Qe = $e.floors) == null ? void 0 : Qe.find(
1087
- (si) => si.id === Ge
1087
+ (si) => si.id === Ke
1088
1088
  );
1089
1089
  Ae.value = ei;
1090
1090
  break;
1091
1091
  case "block":
1092
1092
  const ii = (ni = $e.blocks) == null ? void 0 : ni.find(
1093
- (si) => (si == null ? void 0 : si.id) === Ge
1093
+ (si) => (si == null ? void 0 : si.id) === Ke
1094
1094
  );
1095
1095
  Ae.value = ii;
1096
1096
  break;
1097
1097
  case "flat":
1098
1098
  const oi = (ti = $e.flats) == null ? void 0 : ti.find(
1099
- (si) => (si == null ? void 0 : si.id) === Ge
1099
+ (si) => (si == null ? void 0 : si.id) === Ke
1100
1100
  );
1101
1101
  Ae.value = oi;
1102
1102
  break;
1103
1103
  case "tooltip":
1104
- const ri = (Ke = $e.actions) == null ? void 0 : Ke.find(
1105
- (si) => (si == null ? void 0 : si.id) === Ge
1104
+ const ri = (Ge = $e.actions) == null ? void 0 : Ge.find(
1105
+ (si) => (si == null ? void 0 : si.id) === Ke
1106
1106
  );
1107
1107
  Ae.value = ri;
1108
1108
  break;
@@ -1118,17 +1118,17 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
1118
1118
  }), onUnmounted(() => {
1119
1119
  document.removeEventListener("mousemove", Fe);
1120
1120
  }), (qe, Ze) => {
1121
- var Ye;
1121
+ var Xe;
1122
1122
  return openBlock(), createBlock(_sfc_main$E, {
1123
1123
  hoverdData: Ae.value,
1124
- type: (Ye = ze.value) == null ? void 0 : Ye.type
1124
+ type: (Xe = ze.value) == null ? void 0 : Xe.type
1125
1125
  }, {
1126
1126
  default: withCtx(() => {
1127
- var Je, Xe, Qe;
1127
+ var Je, Ue, Qe;
1128
1128
  return [
1129
1129
  createElementVNode("div", _hoisted_1$z, [
1130
1130
  createElementVNode("img", {
1131
- src: (Qe = (Xe = (Je = Be.project) == null ? void 0 : Je.project_image) == null ? void 0 : Xe[0]) == null ? void 0 : Qe.url,
1131
+ src: (Qe = (Ue = (Je = Be.project) == null ? void 0 : Je.project_image) == null ? void 0 : Ue[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),
@@ -1157,7 +1157,8 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
1157
1157
  placeholder: { default: "Choose" },
1158
1158
  label: { default: "" },
1159
1159
  clearable: { type: Boolean, default: !1 },
1160
- required: { type: Boolean }
1160
+ required: { type: Boolean },
1161
+ disabled: { type: Boolean }
1161
1162
  }, {
1162
1163
  modelValue: {},
1163
1164
  modelModifiers: {}
@@ -1176,7 +1177,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
1176
1177
  var Re, Ie;
1177
1178
  return openBlock(), createElementBlock("option", {
1178
1179
  value: Le.value,
1179
- disabled: ((Re = Le == null ? void 0 : Le.title) == null ? void 0 : Re.includes("reserved")) && !unref(ke) || ((Ie = Le == null ? void 0 : Le.title) == null ? void 0 : Ie.includes("sold")) && !unref($e),
1180
+ disabled: ((Re = Le == null ? void 0 : Le.title) == null ? void 0 : Re.includes("reserved")) && !unref(ke) || ((Ie = Le == null ? void 0 : Le.title) == null ? void 0 : Ie.includes("sold")) && !unref($e) || Be.disabled,
1180
1181
  class: "ire-text-base"
1181
1182
  }, toDisplayString(Le.title), 9, _hoisted_4$c);
1182
1183
  }), 256))
@@ -1221,42 +1222,42 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
1221
1222
  emits: ["changeComponent"],
1222
1223
  setup(Be, { emit: _e }) {
1223
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(() => {
1224
- var Xe;
1225
- if ((Xe = $e.floor) != null && Xe.svg)
1225
+ var Ue;
1226
+ if ((Ue = $e.floor) != null && Ue.svg)
1226
1227
  return $e.floor.svg;
1227
1228
  }), We = computed$1(() => $e.floors.filter(
1228
- (Xe) => {
1229
+ (Ue) => {
1229
1230
  var Qe, ni;
1230
1231
  return (
1231
1232
  // floorItem.conf !== "reserved" &&
1232
1233
  // floorItem.conf !== "sold" &&
1233
- (Qe = $e.floor) != null && Qe.block_id ? (Xe == null ? void 0 : Xe.block_id) === ((ni = $e.floor) == null ? void 0 : ni.block_id) : !(Xe != null && Xe.block_id)
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
1235
  );
1235
1236
  }
1236
- ).map((Xe) => {
1237
+ ).map((Ue) => {
1237
1238
  var ni, ti;
1238
1239
  const Qe = (ni = $e.blocks) == null ? void 0 : ni.find(
1239
- (Ke) => {
1240
- var Ue;
1241
- return (Ke == null ? void 0 : Ke.id) === ((Ue = Xe == null ? void 0 : Xe.block_id) == null ? void 0 : Ue.toString());
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());
1242
1243
  }
1243
1244
  );
1244
1245
  return {
1245
- title: ((ti = Xe == null ? void 0 : Xe.floor_number) == null ? void 0 : ti.toString()) + ` ${tr("floor")} ` + (Qe != null && Qe.id ? ` - ${Qe == null ? void 0 : Qe.title}` : "") + (Xe != null && Xe.conf ? " " + Xe.conf : ""),
1246
- value: Xe == null ? void 0 : Xe.id
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
1247
1248
  };
1248
- }).sort((Xe, Qe) => Xe.title.localeCompare(Qe.title)) || []), qe = (Xe) => {
1249
- const Qe = Xe.target;
1249
+ }).sort((Ue, Qe) => Ue.title.localeCompare(Qe.title)) || []), qe = (Ue) => {
1250
+ const Qe = Ue.target;
1250
1251
  Qe && (Ie.value = Qe);
1251
- }, Ze = (Xe) => {
1252
- var ni, ti, Ke;
1253
- const Qe = Xe.target;
1254
- (Qe == null ? void 0 : Qe.nodeName) === "path" && (ze.value && "conf" in ze.value && (((ni = ze.value) == null ? void 0 : ni.conf) === "reserved" && !De.value || ((ti = ze.value) == null ? void 0 : ti.conf) === "sold" && !Le.value) || ke("changeComponent", ((Ke = Ae.value) == null ? void 0 : Ke.type) || "", ze.value));
1255
- }, Ye = () => {
1256
- var Xe;
1257
- Re.value && ((Xe = Re.value) == null ? void 0 : Xe.querySelectorAll("g")).forEach((ni) => {
1258
- var Ue, Ge, ei, ii, oi, ri;
1259
- const ti = ni == null ? void 0 : ni.getAttribute("id"), Ke = (Ge = (Ue = $e.floor) == null ? void 0 : Ue.polygon_data) == null ? void 0 : Ge.find(
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(
1260
1261
  (si) => (si == null ? void 0 : si.key) === ti
1261
1262
  );
1262
1263
  if ($e.flats)
@@ -1264,34 +1265,34 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
1264
1265
  ni.setAttribute("conf", ((ii = $e.floor) == null ? void 0 : ii.conf) || "");
1265
1266
  else {
1266
1267
  const si = (oi = $e.flats) == null ? void 0 : oi.find(
1267
- (ai) => (ai == null ? void 0 : ai.id) === (Ke == null ? void 0 : Ke.id)
1268
+ (ai) => (ai == null ? void 0 : ai.id) === (Ge == null ? void 0 : Ge.id)
1268
1269
  );
1269
1270
  ni == null || ni.setAttribute("conf", ((ri = si == null ? void 0 : si.conf) == null ? void 0 : ri.toString()) || "");
1270
1271
  }
1271
1272
  });
1272
1273
  }, Je = () => {
1273
- var Xe;
1274
- (Xe = $e.floor) != null && Xe.block_id ? ke("changeComponent", "block", Fe.value) : ke("changeComponent", "project", null);
1274
+ var Ue;
1275
+ (Ue = $e.floor) != null && Ue.block_id ? ke("changeComponent", "block", Fe.value) : ke("changeComponent", "project", null);
1275
1276
  };
1276
1277
  return watch(
1277
1278
  () => Ie.value,
1278
- (Xe) => {
1279
- var ni, ti, Ke, Ue, Ge, ei, ii;
1280
- if (!Xe) return;
1281
- Ve.hoverdSvg = Xe;
1282
- const Qe = Xe == null ? void 0 : Xe.parentElement;
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;
1283
1284
  if (Qe && (Qe == null ? void 0 : Qe.nodeName) === "g") {
1284
1285
  const oi = Qe.getAttribute("id");
1285
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 (((Ke = Ae.value) == null ? void 0 : Ke.type) === "flat") {
1287
- const ri = (Ue = $e.flats) == null ? void 0 : Ue.find(
1287
+ if (((Ge = Ae.value) == null ? void 0 : Ge.type) === "flat") {
1288
+ const ri = (Ye = $e.flats) == null ? void 0 : Ye.find(
1288
1289
  (ai) => {
1289
1290
  var li;
1290
1291
  return (ai == null ? void 0 : ai.id) === ((li = Ae.value) == null ? void 0 : li.id);
1291
1292
  }
1292
1293
  ), si = ri ? {
1293
1294
  ...ri,
1294
- conf: ri.conf || ((Ge = $e.floor) == null ? void 0 : Ge.conf) || ""
1295
+ conf: ri.conf || ((Ke = $e.floor) == null ? void 0 : Ke.conf) || ""
1295
1296
  } : null;
1296
1297
  ze.value = si;
1297
1298
  } else if (((ei = Ae.value) == null ? void 0 : ei.type) === "tooltip") {
@@ -1316,29 +1317,29 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
1316
1317
  () => je.value,
1317
1318
  () => {
1318
1319
  var Qe;
1319
- const Xe = (Qe = $e.floors) == null ? void 0 : Qe.find(
1320
+ const Ue = (Qe = $e.floors) == null ? void 0 : Qe.find(
1320
1321
  (ni) => (ni == null ? void 0 : ni.id) === (je == null ? void 0 : je.value)
1321
1322
  );
1322
- Xe && ke("changeComponent", "floor", Xe), setTimeout(() => {
1323
- Ye();
1323
+ Ue && ke("changeComponent", "floor", Ue), setTimeout(() => {
1324
+ Xe();
1324
1325
  }, 0);
1325
1326
  }
1326
1327
  ), onMounted(() => {
1327
- var Xe, Qe, ni;
1328
- Fe.value = (Xe = $e.blocks) == null ? void 0 : Xe.find(
1328
+ var Ue, Qe, ni;
1329
+ Fe.value = (Ue = $e.blocks) == null ? void 0 : Ue.find(
1329
1330
  (ti) => {
1330
- var Ke, Ue;
1331
- return (ti == null ? void 0 : ti.id) === ((Ue = (Ke = $e.floor) == null ? void 0 : Ke.block_id) == null ? void 0 : Ue.toString());
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());
1332
1333
  }
1333
1334
  ), je.value = (ni = (Qe = We.value) == null ? void 0 : Qe.find(
1334
1335
  (ti) => {
1335
- var Ke;
1336
- return (ti == null ? void 0 : ti.value) == ((Ke = $e.floor) == null ? void 0 : Ke.id);
1336
+ var Ge;
1337
+ return (ti == null ? void 0 : ti.value) == ((Ge = $e.floor) == null ? void 0 : Ge.id);
1337
1338
  }
1338
- )) == null ? void 0 : ni.value, Ye(), document.addEventListener("mousemove", qe);
1339
+ )) == null ? void 0 : ni.value, Xe(), document.addEventListener("mousemove", qe);
1339
1340
  }), onUnmounted(() => {
1340
1341
  document.removeEventListener("mousemove", qe);
1341
- }), (Xe, Qe) => {
1342
+ }), (Ue, Qe) => {
1342
1343
  var ni;
1343
1344
  return openBlock(), createBlock(_sfc_main$E, {
1344
1345
  hoverdData: ze.value,
@@ -1355,11 +1356,11 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
1355
1356
  ])
1356
1357
  ]),
1357
1358
  default: withCtx(() => {
1358
- var ti, Ke, Ue;
1359
+ var ti, Ge, Ye;
1359
1360
  return [
1360
1361
  createElementVNode("div", _hoisted_2$h, [
1361
1362
  createElementVNode("img", {
1362
- src: ((Ue = (Ke = (ti = Be.floor) == null ? void 0 : ti.floor_image) == null ? void 0 : Ke[0]) == null ? void 0 : Ue.url) || "",
1363
+ src: ((Ye = (Ge = (ti = Be.floor) == null ? void 0 : ti.floor_image) == null ? void 0 : Ge[0]) == null ? void 0 : Ye.url) || "",
1363
1364
  alt: "",
1364
1365
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
1365
1366
  }, null, 8, _hoisted_3$g),
@@ -1816,8 +1817,8 @@ class I extends g {
1816
1817
  const { content: ke, contentRect: $e } = this, { fitWidth: Ne, fitHeight: Ve, fullWidth: De, fullHeight: Le } = $e;
1817
1818
  let Re = De, Ie = Le;
1818
1819
  if (this.option("zoom") || this.angle !== 0) {
1819
- 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), Ye = Math.abs(qe.x - He.x), Je = Math.abs(qe.y - He.y), Xe = Math.abs(Ze.x - We.x), Qe = Math.abs(Ze.y - We.y);
1820
- Re = Math.max(Ye, Xe), 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), 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);
1821
1822
  }
1822
1823
  return { contentWidth: Re, contentHeight: Ie };
1823
1824
  }
@@ -1910,8 +1911,8 @@ class I extends g {
1910
1911
  _e.cancelable && _e.preventDefault(), this.container.classList.add(this.cn("isDragging"));
1911
1912
  const We = this.checkBounds(je, Fe);
1912
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));
1913
- const qe = this.targetScale, Ze = this.minScale, Ye = this.maxScale;
1914
- qe < 0.5 * Ze && (ze = Math.max(ze, Ze)), qe > 1.5 * Ye && (ze = Math.min(ze, Ye)), 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, 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 });
1915
1916
  }
1916
1917
  onPointerUp(_e, ke, $e) {
1917
1918
  if ($e.length) return this.dragOffset.x = 0, this.dragOffset.y = 0, void (this.trackingPoints = []);
@@ -1936,8 +1937,8 @@ class I extends g {
1936
1937
  Je && (je = Math.max(Math.min(je, Je), -1 * Je), Fe = Math.max(Math.min(Fe, Je), -1 * Je));
1937
1938
  }
1938
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);
1939
- const qe = this.dragOffset.x, Ze = this.dragOffset.y, Ye = this.option("dragMinThreshold") || 0;
1940
- Math.abs(qe) < Ye && Math.abs(Ze) < 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, Ze);
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);
1941
1942
  }
1942
1943
  onWheel(_e) {
1943
1944
  var ke = [-_e.deltaX || 0, -_e.deltaY || 0, -_e.detail || 0].reduce(function(Ve, De) {
@@ -1985,20 +1986,20 @@ class I extends g {
1985
1986
  return ri = oi instanceof HTMLImageElement ? oi.naturalHeight : oi instanceof SVGElement ? oi.height.baseVal.value : Math.max(oi.offsetHeight, oi.scrollHeight), ri || 0;
1986
1987
  })(Ve);
1987
1988
  let qe = this.option("width", He) || z, Ze = this.option("height", We) || z;
1988
- const Ye = qe === z, Je = Ze === z;
1989
- typeof qe != "number" && (qe = He), typeof Ze != "number" && (Ze = We), Ye && (qe = He * (Ze / We)), Je && (Ze = We / (He / qe));
1990
- let Xe = Ve.parentElement instanceof HTMLPictureElement ? Ve.parentElement : Ve;
1991
- this.option("transformParent") && (Xe = Xe.parentElement || Xe);
1992
- const Qe = Xe.getAttribute("style") || "";
1993
- Xe.style.setProperty("transform", "none", "important"), De && (Xe.style.width = "", Xe.style.height = ""), Xe.offsetHeight;
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;
1994
1995
  const ni = Ve.getBoundingClientRect();
1995
- let ti = ni.width * $e, Ke = ni.height * $e, Ue = ti, Ge = Ke;
1996
- ti = Math.min(ti, qe), Ke = Math.min(Ke, Ze), De ? { width: ti, height: Ke } = ((oi, ri, si, ai) => {
1997
- const li = si / oi, ci = ai / ri, di = Math.min(li, ci);
1998
- return { width: oi *= di, height: ri *= di };
1999
- })(qe, Ze, ti, Ke) : (ti = Math.min(ti, qe), Ke = Math.min(Ke, Ze));
2000
- let ei = 0.5 * (Ge - Ke), ii = 0.5 * (Ue - ti);
2001
- this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: ni.top - Le.top + ei, bottom: Le.bottom - ni.bottom + ei, left: ni.left - Le.left + ii, right: Le.right - ni.right + ii, fitWidth: ti, fitHeight: Ke, width: ti, height: Ke, fullWidth: qe, fullHeight: Ze }), Xe.style.cssText = Qe, De && (Xe.style.width = `${ti}px`, Xe.style.height = `${Ke}px`), this.setTransform(), _e !== !0 && this.emit("refresh"), this.ignoreBounds || (t(this.targetScale) < t(this.minScale) ? this.zoomTo(this.minScale, { friction: 0 }) : this.targetScale > this.maxScale ? this.zoomTo(this.maxScale, { friction: 0 }) : this.state === m.Init || this.checkBounds().inBounds || this.requestTick()), this.updateControls();
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);
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();
2002
2003
  }
2003
2004
  calculateBounds() {
2004
2005
  const { contentWidth: _e, contentHeight: ke } = this.calculateContentDim(this.target), { targetScale: $e, lockedAxis: Ne } = this, { fitWidth: Ve, fitHeight: De } = this.contentRect;
@@ -2009,13 +2010,13 @@ class I extends g {
2009
2010
  let { containerRect: je, contentRect: Fe } = this, He = t(Ve * $e, M), We = t(De * $e, M), { innerWidth: qe, innerHeight: Ze } = je;
2010
2011
  if (je.width === He && (qe = je.width), je.width === We && (Ze = je.height), _e > qe) {
2011
2012
  Ie = 0.5 * (_e - qe), Le = -1 * Ie;
2012
- let Ye = 0.5 * (Fe.right - Fe.left);
2013
- Le += Ye, Ie += Ye;
2013
+ let Xe = 0.5 * (Fe.right - Fe.left);
2014
+ Le += Xe, Ie += Xe;
2014
2015
  }
2015
2016
  if (Ve > qe && _e < qe && (Le -= 0.5 * (Ve - qe), Ie -= 0.5 * (Ve - qe)), ke > Ze) {
2016
2017
  Ae = 0.5 * (ke - Ze), Re = -1 * Ae;
2017
- let Ye = 0.5 * (Fe.bottom - Fe.top);
2018
- Re += Ye, Ae += Ye;
2018
+ let Xe = 0.5 * (Fe.bottom - Fe.top);
2019
+ Re += Xe, Ae += Xe;
2019
2020
  }
2020
2021
  De > Ze && ke < Ze && (Le -= 0.5 * (De - Ze), Ie -= 0.5 * (De - Ze));
2021
2022
  }
@@ -2045,8 +2046,8 @@ class I extends g {
2045
2046
  case "toggleZoom":
2046
2047
  case "iterateZoom":
2047
2048
  Ie || Ae ? qe = !0 : Ze = !0;
2048
- const Ye = We.querySelector("g");
2049
- Ye && (Ye.style.display = Ie ? "" : "none");
2049
+ const Xe = We.querySelector("g");
2050
+ Xe && (Xe.style.display = Ie ? "" : "none");
2050
2051
  }
2051
2052
  qe ? (We.removeAttribute("disabled"), We.removeAttribute("tabindex")) : Ze && (We.setAttribute("disabled", ""), We.setAttribute("tabindex", "-1"));
2052
2053
  }
@@ -2062,13 +2063,13 @@ class I extends g {
2062
2063
  let Ze = new DOMMatrix().translate(He, We).translate(Ve, De).translate(_e, ke);
2063
2064
  if (this.option("zoom")) {
2064
2065
  if (!Ae) {
2065
- const Ye = this.targetScale, Je = this.minScale, Xe = this.maxScale;
2066
- Ye * $e < Je && ($e = Je / Ye), Ye * $e > Xe && ($e = Xe / Ye);
2066
+ const Xe = this.targetScale, Je = this.minScale, Ue = this.maxScale;
2067
+ Xe * $e < Je && ($e = Je / Xe), Xe * $e > Ue && ($e = Ue / Xe);
2067
2068
  }
2068
2069
  Ze = Ze.scale($e);
2069
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));
2071
- for (const Ye of v) Ye !== "e" && Ye !== "f" && (Ze[Ye] > this.minScale + 1e-5 || Ze[Ye] < this.minScale - 1e-5) ? this.target[Ye] = Ze[Ye] : this.target[Ye] = t(Ze[Ye], M);
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);
2072
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());
2073
2074
  }
2074
2075
  stop(_e = !1) {
@@ -2530,18 +2531,18 @@ class Q extends g {
2530
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;
2531
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);
2532
2533
  for (const Je of Ae) {
2533
- const Xe = Je.el;
2534
- Xe ? (_e === "top" ? (Xe.style.right = "", Xe.style.left = "") : Xe.style.top = "", Je.index !== je ? Xe.style[_e] = Fe === 0 ? "" : `${t(Fe, 1e3)}px` : Xe.style[_e] = "", He += Je.dim + Je.gap, je++) : Fe += Je.dim + Je.gap;
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;
2535
2536
  }
2536
2537
  if (Ne && He && Ve) {
2537
- let Je = getComputedStyle(Ve), Xe = "padding", Qe = ke ? "Right" : "Bottom", ni = parseFloat(Je[Xe + (ke ? "Left" : "Top")]);
2538
- We -= ni, De += ni, De += parseFloat(Je[Xe + Qe]);
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]);
2539
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`));
2540
2541
  }
2541
- let qe, Ze, Ye = [...this.inTransition];
2542
- if (Ye.length > 1 && (qe = Ie[Ye[0]], Ze = Ie[Ye[1]]), qe && Ze) {
2542
+ let qe, Ze, Xe = [...this.inTransition];
2543
+ if (Xe.length > 1 && (qe = Ie[Xe[0]], Ze = Ie[Xe[1]]), qe && Ze) {
2543
2544
  let Je = 0;
2544
- for (const Xe of Ae) Xe.el ? this.inTransition.has(Xe.index) && qe.slides.indexOf(Xe) < 0 && (Xe.el.style[_e] = `${t(Je + (qe.pos - Ze.pos), 1e3)}px`) : Je += Xe.dim + Xe.gap;
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;
2545
2546
  }
2546
2547
  }
2547
2548
  createSlideEl(_e) {
@@ -2588,8 +2589,8 @@ class Q extends g {
2588
2589
  this.inTransition.add(We.index), this.createSlideEl(We);
2589
2590
  let qe = He.el, Ze = We.el;
2590
2591
  Fe || ke === J || (ke = "fadeFast", qe = null);
2591
- const Ye = this.isRTL ? "next" : "prev", Je = this.isRTL ? "prev" : "next";
2592
- 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 : Ye}`)), Ze && (We.transition = ke, Ze.addEventListener(G, this.onAnimationEnd), Ze.classList.add(`f-${ke}In`, `from-${ze > 0 ? Ye : Je}`)), Ie.current[this.axis] = je, Ie.target[this.axis] = je, Ie.requestTick(), this.onChange(Ae), !0;
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;
2593
2594
  }
2594
2595
  manageSlideVisiblity() {
2595
2596
  const _e = /* @__PURE__ */ new Set(), ke = /* @__PURE__ */ new Set(), $e = this.getVisibleSlides(parseFloat(this.option("preload", 0) + "") || 0);
@@ -2824,9 +2825,9 @@ class Q extends g {
2824
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");
2825
2826
  let je = 0, Fe = 0, He = 0, We = _e === void 0 ? -1 * ((De == null ? void 0 : De.target[this.axis]) || 0) : _e;
2826
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));
2827
- let qe = Ae, Ze = Ne.find((Ye) => {
2828
- const Je = Ye.pos - 0.5 * qe.gap, Xe = Ye.pos + Ye.dim + 0.5 * Ye.gap;
2829
- return qe = Ye, We >= Je && We < Xe;
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;
2830
2831
  });
2831
2832
  return Ze || (Ze = Ae), Fe = this.getPageForSlide(Ze.index), je = Fe + He * Le, { page: je, pageIndex: Fe };
2832
2833
  }
@@ -2962,9 +2963,9 @@ class wt extends _ {
2962
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" });
2963
2964
  const { x: ze, y: je, scale: Fe, opacity: He } = Ie;
2964
2965
  if (He) {
2965
- const We = ((qe, Ze, Ye, Je) => {
2966
- const Xe = Ze - qe, Qe = Je - Ye;
2967
- return (ni) => Ye + ((ni - qe) / Xe * Qe || 0);
2966
+ const We = ((qe, Ze, Xe, Je) => {
2967
+ const Ue = Ze - qe, Qe = Je - Xe;
2968
+ return (ni) => Xe + ((ni - qe) / Ue * Qe || 0);
2968
2969
  })(Le.scale, Fe, 1, 0);
2969
2970
  Le.on("afterTransform", () => {
2970
2971
  De.style.opacity = We(Le.scale) + "";
@@ -3062,8 +3063,8 @@ class wt extends _ {
3062
3063
  if (!(Ie && Re && Le && De && Ve)) return void $e();
3063
3064
  const { x: Ae, y: ze, scale: je, opacity: Fe } = Ie, He = () => {
3064
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));
3065
- }, We = (Ye) => {
3066
- (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));
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));
3067
3068
  };
3068
3069
  De.on("endAnimation", We), De.on("touchStart", We), De.on("afterTransform", He), De.on(["error", "destroy"], () => {
3069
3070
  $e();
@@ -3081,9 +3082,9 @@ class wt extends _ {
3081
3082
  if (!(ze && je && We && qe)) return !1;
3082
3083
  const Ze = Ve.container.getBoundingClientRect();
3083
3084
  He += Ze.left, Fe += Ze.top;
3084
- const Ye = -1 * (He + 0.5 * We - (Ae + 0.5 * ze)), Je = -1 * (Fe + 0.5 * qe - (Ie + 0.5 * je)), Xe = ze / We;
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;
3085
3086
  let Qe = this.option("zoomOpacity") || !1;
3086
- return Qe === "auto" && (Qe = Math.abs(ze / je - We / qe) > 0.1), { x: Ye, y: Je, scale: Xe, opacity: Qe };
3087
+ return Qe === "auto" && (Qe = Math.abs(ze / je - We / qe) > 0.1), { x: Xe, y: Je, scale: Ue, opacity: Qe };
3087
3088
  }
3088
3089
  attach() {
3089
3090
  const _e = this, ke = _e.instance;
@@ -4363,8 +4364,8 @@ class Oe extends g {
4363
4364
  if (!(ke && ke instanceof Element)) return;
4364
4365
  let Ne, Ve, De, Le;
4365
4366
  if ([...Oe.openers].reverse().find(([He, We]) => !(!He.contains(ke) || ![...We].reverse().find(([qe, Ze]) => {
4366
- let Ye = ke.closest(qe);
4367
- return !!Ye && (Ne = He, Ve = qe, De = Ye, Le = Ze, !0);
4367
+ let Xe = ke.closest(qe);
4368
+ return !!Xe && (Ne = He, Ve = qe, De = Xe, Le = Ze, !0);
4368
4369
  }))), !Ne || !Ve || !De) return;
4369
4370
  Le = Le || {}, _e.preventDefault(), ke = De;
4370
4371
  let Re = [], Ie = u({}, at, Le);
@@ -4620,7 +4621,7 @@ function updateSwiper(Be) {
4620
4621
  scrollbarEl: Le,
4621
4622
  paginationEl: Re
4622
4623
  } = Be;
4623
- const Ie = Ne.filter((Ue) => Ue !== "children" && Ue !== "direction" && Ue !== "wrapperClass"), {
4624
+ const Ie = Ne.filter((Ye) => Ye !== "children" && Ye !== "direction" && Ye !== "wrapperClass"), {
4624
4625
  params: Ae,
4625
4626
  pagination: ze,
4626
4627
  navigation: je,
@@ -4628,19 +4629,19 @@ function updateSwiper(Be) {
4628
4629
  virtual: He,
4629
4630
  thumbs: We
4630
4631
  } = _e;
4631
- let qe, Ze, Ye, Je, Xe, Qe, ni, ti;
4632
- 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 && (Ye = !0), Ne.includes("scrollbar") && $e.scrollbar && ($e.scrollbar.el || Le) && (Ae.scrollbar || Ae.scrollbar === !1) && Fe && !Fe.el && (Je = !0), Ne.includes("navigation") && $e.navigation && ($e.navigation.prevEl || De) && ($e.navigation.nextEl || Ve) && (Ae.navigation || Ae.navigation === !1) && je && !je.prevEl && !je.nextEl && (Xe = !0);
4633
- const Ke = (Ue) => {
4634
- _e[Ue] && (_e[Ue].destroy(), Ue === "navigation" ? (_e.isElement && (_e[Ue].prevEl.remove(), _e[Ue].nextEl.remove()), Ae[Ue].prevEl = void 0, Ae[Ue].nextEl = void 0, _e[Ue].prevEl = void 0, _e[Ue].nextEl = void 0) : (_e.isElement && _e[Ue].el.remove(), Ae[Ue].el = void 0, _e[Ue].el = void 0));
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));
4635
4636
  };
4636
- Ne.includes("loop") && _e.isElement && (Ae.loop && !$e.loop ? Qe = !0 : !Ae.loop && $e.loop ? ni = !0 : ti = !0), Ie.forEach((Ue) => {
4637
- if (isObject(Ae[Ue]) && isObject($e[Ue]))
4638
- Object.assign(Ae[Ue], $e[Ue]), (Ue === "navigation" || Ue === "pagination" || Ue === "scrollbar") && "enabled" in $e[Ue] && !$e[Ue].enabled && Ke(Ue);
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);
4639
4640
  else {
4640
- const Ge = $e[Ue];
4641
- (Ge === !0 || Ge === !1) && (Ue === "navigation" || Ue === "pagination" || Ue === "scrollbar") ? Ge === !1 && Ke(Ue) : Ae[Ue] = $e[Ue];
4641
+ const Ke = $e[Ye];
4642
+ (Ke === !0 || Ke === !1) && (Ye === "navigation" || Ye === "pagination" || Ye === "scrollbar") ? Ke === !1 && Ge(Ye) : Ae[Ye] = $e[Ye];
4642
4643
  }
4643
- }), 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), Ye && (_e.isElement && (!Re || typeof Re == "string") && (Re = document.createElement("div"), Re.classList.add("swiper-pagination"), Re.part.add("pagination"), _e.el.appendChild(Re)), Re && (Ae.pagination.el = Re), ze.init(), ze.render(), ze.update()), Je && (_e.isElement && (!Le || typeof Le == "string") && (Le = document.createElement("div"), Le.classList.add("swiper-scrollbar"), Le.part.add("scrollbar"), _e.el.appendChild(Le)), Le && (Ae.scrollbar.el = Le), Fe.init(), Fe.updateSize(), Fe.setTranslate()), 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 || ti) && _e.loopDestroy(), (ni || ti) && _e.loopCreate(), _e.update();
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
4645
  }
4645
4646
  function getParams(Be, _e) {
4646
4647
  Be === void 0 && (Be = {});
@@ -5221,22 +5222,22 @@ const Swiper = {
5221
5222
  value: []
5222
5223
  }, He = {
5223
5224
  value: []
5224
- }, We = ref(null), qe = ref(null), Ze = ref(null), Ye = ref(null), {
5225
+ }, We = ref(null), qe = ref(null), Ze = ref(null), Xe = ref(null), {
5225
5226
  params: Je,
5226
- passedParams: Xe
5227
+ passedParams: Ue
5227
5228
  } = getParams(Be);
5228
- getChildren(ke, Fe, He), je.value = Xe, He.value = Fe.value;
5229
+ getChildren(ke, Fe, He), je.value = Ue, He.value = Fe.value;
5229
5230
  const Qe = () => {
5230
5231
  getChildren(ke, Fe, He), Re.value = !0;
5231
5232
  };
5232
- Je.onAny = function(Ke) {
5233
- for (var Ue = arguments.length, Ge = new Array(Ue > 1 ? Ue - 1 : 0), ei = 1; ei < Ue; ei++)
5234
- Ge[ei - 1] = arguments[ei];
5235
- $e(Ke, ...Ge);
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);
5236
5237
  }, Object.assign(Je.on, {
5237
5238
  _beforeBreakpoint: Qe,
5238
- _containerClasses(Ke, Ue) {
5239
- De.value = Ue;
5239
+ _containerClasses(Ge, Ye) {
5240
+ De.value = Ye;
5240
5241
  }
5241
5242
  });
5242
5243
  const ni = {
@@ -5244,29 +5245,29 @@ const Swiper = {
5244
5245
  };
5245
5246
  if (delete ni.wrapperClass, ze.value = new Swiper$1(ni), ze.value.virtual && ze.value.params.virtual.enabled) {
5246
5247
  ze.value.virtual.slides = Fe.value;
5247
- const Ke = {
5248
+ const Ge = {
5248
5249
  cache: !1,
5249
5250
  slides: Fe.value,
5250
- renderExternal: (Ue) => {
5251
- Le.value = Ue;
5251
+ renderExternal: (Ye) => {
5252
+ Le.value = Ye;
5252
5253
  },
5253
5254
  renderExternalUpdate: !1
5254
5255
  };
5255
- extend(ze.value.params.virtual, Ke), extend(ze.value.originalParams.virtual, Ke);
5256
+ extend(ze.value.params.virtual, Ge), extend(ze.value.originalParams.virtual, Ge);
5256
5257
  }
5257
5258
  onUpdated(() => {
5258
5259
  !Ie.value && ze.value && (ze.value.emitSlidesClasses(), Ie.value = !0);
5259
5260
  const {
5260
- passedParams: Ke
5261
- } = getParams(Be), Ue = getChangedParams(Ke, je.value, Fe.value, He.value, (Ge) => Ge.props && Ge.props.key);
5262
- je.value = Ke, (Ue.length || Re.value) && ze.value && !ze.value.destroyed && updateSwiper({
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({
5263
5264
  swiper: ze.value,
5264
5265
  slides: Fe.value,
5265
- passedParams: Ke,
5266
- changedParams: Ue,
5266
+ passedParams: Ge,
5267
+ changedParams: Ye,
5267
5268
  nextEl: We.value,
5268
5269
  prevEl: qe.value,
5269
- scrollbarEl: Ye.value,
5270
+ scrollbarEl: Xe.value,
5270
5271
  paginationEl: Ze.value
5271
5272
  }), Re.value = !1;
5272
5273
  }), provide("swiper", ze), watch(Le, () => {
@@ -5279,40 +5280,40 @@ const Swiper = {
5279
5280
  nextEl: We.value,
5280
5281
  prevEl: qe.value,
5281
5282
  paginationEl: Ze.value,
5282
- scrollbarEl: Ye.value,
5283
+ scrollbarEl: Xe.value,
5283
5284
  swiper: ze.value
5284
5285
  }, Je), $e("swiper", ze.value));
5285
5286
  }), onBeforeUnmount(() => {
5286
5287
  ze.value && !ze.value.destroyed && ze.value.destroy(!0, !1);
5287
5288
  });
5288
- function ti(Ke) {
5289
- return Je.virtual ? renderVirtual(ze, Ke, Le.value) : (Ke.forEach((Ue, Ge) => {
5290
- Ue.props || (Ue.props = {}), Ue.props.swiperRef = ze, Ue.props.swiperSlideIndex = Ge;
5291
- }), Ke);
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;
5292
+ }), Ge);
5292
5293
  }
5293
5294
  return () => {
5294
5295
  const {
5295
- slides: Ke,
5296
- slots: Ue
5296
+ slides: Ge,
5297
+ slots: Ye
5297
5298
  } = getChildren(ke, Fe, He);
5298
5299
  return h$1(Ne, {
5299
5300
  ref: Ae,
5300
5301
  class: uniqueClasses(De.value)
5301
- }, [Ue["container-start"], h$1(Ve, {
5302
+ }, [Ye["container-start"], h$1(Ve, {
5302
5303
  class: wrapperClass(Je.wrapperClass)
5303
- }, [Ue["wrapper-start"], ti(Ke), Ue["wrapper-end"]]), needsNavigation(Be) && [h$1("div", {
5304
+ }, [Ye["wrapper-start"], ti(Ge), Ye["wrapper-end"]]), needsNavigation(Be) && [h$1("div", {
5304
5305
  ref: qe,
5305
5306
  class: "swiper-button-prev"
5306
5307
  }), h$1("div", {
5307
5308
  ref: We,
5308
5309
  class: "swiper-button-next"
5309
5310
  })], needsScrollbar(Be) && h$1("div", {
5310
- ref: Ye,
5311
+ ref: Xe,
5311
5312
  class: "swiper-scrollbar"
5312
5313
  }), needsPagination(Be) && h$1("div", {
5313
5314
  ref: Ze,
5314
5315
  class: "swiper-pagination"
5315
- }), Ue["container-end"]]);
5316
+ }), Ye["container-end"]]);
5316
5317
  };
5317
5318
  }
5318
5319
  }, SwiperSlide = {
@@ -5457,10 +5458,10 @@ function Navigation(Be) {
5457
5458
  nextEl: We,
5458
5459
  prevEl: qe
5459
5460
  }), We = makeElementsArray(We), qe = makeElementsArray(qe);
5460
- const Ze = (Ye, Je) => {
5461
- Ye && Ye.addEventListener("click", Je === "next" ? Ie : Re), !_e.enabled && Ye && Ye.classList.add(...He.lockClass.split(" "));
5461
+ const Ze = (Xe, Je) => {
5462
+ Xe && Xe.addEventListener("click", Je === "next" ? Ie : Re), !_e.enabled && Xe && Xe.classList.add(...He.lockClass.split(" "));
5462
5463
  };
5463
- We.forEach((Ye) => Ze(Ye, "next")), qe.forEach((Ye) => Ze(Ye, "prev"));
5464
+ We.forEach((Xe) => Ze(Xe, "next")), qe.forEach((Xe) => Ze(Xe, "prev"));
5464
5465
  }
5465
5466
  function ze() {
5466
5467
  let {
@@ -5468,8 +5469,8 @@ function Navigation(Be) {
5468
5469
  prevEl: We
5469
5470
  } = _e.navigation;
5470
5471
  He = makeElementsArray(He), We = makeElementsArray(We);
5471
- const qe = (Ze, Ye) => {
5472
- Ze.removeEventListener("click", Ye === "next" ? Ie : Re), Ze.classList.remove(..._e.params.navigation.disabledClass.split(" "));
5472
+ const qe = (Ze, Xe) => {
5473
+ Ze.removeEventListener("click", Xe === "next" ? Ie : Re), Ze.classList.remove(..._e.params.navigation.disabledClass.split(" "));
5473
5474
  };
5474
5475
  He.forEach((Ze) => qe(Ze, "next")), We.forEach((Ze) => qe(Ze, "prev"));
5475
5476
  }
@@ -5495,16 +5496,16 @@ function Navigation(Be) {
5495
5496
  prevEl: Ze
5496
5497
  } = _e.navigation;
5497
5498
  qe = makeElementsArray(qe), Ze = makeElementsArray(Ze);
5498
- const Ye = We.target;
5499
- let Je = Ze.includes(Ye) || qe.includes(Ye);
5499
+ const Xe = We.target;
5500
+ let Je = Ze.includes(Xe) || qe.includes(Xe);
5500
5501
  if (_e.isElement && !Je) {
5501
- const Xe = We.path || We.composedPath && We.composedPath();
5502
- Xe && (Je = Xe.find((Qe) => qe.includes(Qe) || Ze.includes(Qe)));
5502
+ const Ue = We.path || We.composedPath && We.composedPath();
5503
+ Ue && (Je = Ue.find((Qe) => qe.includes(Qe) || Ze.includes(Qe)));
5503
5504
  }
5504
5505
  if (_e.params.navigation.hideOnClick && !Je) {
5505
- if (_e.pagination && _e.params.pagination && _e.params.pagination.clickable && (_e.pagination.el === Ye || _e.pagination.el.contains(Ye))) return;
5506
- let Xe;
5507
- qe.length ? Xe = qe[0].classList.contains(_e.params.navigation.hiddenClass) : Ze.length && (Xe = Ze[0].classList.contains(_e.params.navigation.hiddenClass)), Ne(Xe === !0 ? "navigationShow" : "navigationHide"), [...qe, ...Ze].filter((Qe) => !!Qe).forEach((Qe) => Qe.classList.toggle(_e.params.navigation.hiddenClass));
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));
5508
5509
  }
5509
5510
  });
5510
5511
  const je = () => {
@@ -5543,7 +5544,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5543
5544
  }])
5544
5545
  }, toDisplayString(Be.title), 3));
5545
5546
  }
5546
- }), _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$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$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-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
5548
  key: 0,
5548
5549
  class: "ire-flex ire-items-center ire-gap-3"
5549
5550
  }, _hoisted_9$3 = {
@@ -5559,14 +5560,14 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5559
5560
  },
5560
5561
  setup(Be) {
5561
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(() => {
5562
- var We, qe, Ze, Ye, Je, Xe;
5563
- return !!((Ze = (qe = (We = _e.flat) == null ? void 0 : We.type) == null ? void 0 : qe.image_2d) != null && Ze.length && ((Xe = (Je = (Ye = _e.flat) == null ? void 0 : Ye.type) == null ? void 0 : Je.image_3d) != null && Xe.length));
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));
5564
5565
  }), ze = computed$1(() => {
5565
5566
  var We;
5566
5567
  return $e("shareable_link") === "true" && ((We = Ne.value) == null ? void 0 : We.is_gold);
5567
5568
  }), je = computed$1(() => {
5568
- var qe, Ze, Ye, Je, Xe, Qe;
5569
- return (De.value && ((Ze = (qe = _e.flat.type) == null ? void 0 : qe.image_2d) != null && Ze.length) ? (Ye = _e.flat.type) == null ? void 0 : Ye.image_2d : !De.value && ((Xe = (Je = _e.flat.type) == null ? void 0 : Je.image_3d) != null && Xe.length) ? (Qe = _e.flat.type) == null ? void 0 : Qe.image_3d : []).slice(0, 6);
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);
5570
5571
  }), Fe = async () => {
5571
5572
  Re.value || !ze.value || (await copyToClipboard(window.location.href), Re.value = !0, setTimeout(() => {
5572
5573
  Re.value = !1;
@@ -5578,8 +5579,8 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5578
5579
  () => De.value,
5579
5580
  () => {
5580
5581
  Le.value = 0, Ie.value++, setTimeout(() => {
5581
- var We, qe, Ze, Ye;
5582
- (qe = (We = Ve.value) == null ? void 0 : We.navigation) == null || qe.init(), (Ye = (Ze = Ve.value) == null ? void 0 : Ze.navigation) == null || Ye.update();
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();
5583
5584
  }, 400);
5584
5585
  }
5585
5586
  ), onMounted(() => {
@@ -5587,7 +5588,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5587
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);
5588
5589
  }), (We, qe) => (openBlock(), createBlock(FancyBoxComp, { options: {} }, {
5589
5590
  default: withCtx(() => {
5590
- var Ze, Ye, Je, Xe, Qe, ni, ti, Ke, Ue;
5591
+ var Ze, Xe, Je, Ue, Qe, ni, ti, Ge, Ye;
5591
5592
  return [
5592
5593
  createElementVNode("div", _hoisted_1$o, [
5593
5594
  createElementVNode("div", _hoisted_2$e, [
@@ -5603,10 +5604,10 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5603
5604
  mode: "out-in"
5604
5605
  }, {
5605
5606
  default: withCtx(() => {
5606
- var Ge;
5607
+ var Ke;
5607
5608
  return [
5608
5609
  (openBlock(), createBlock(unref(Swiper), {
5609
- key: (Ge = je.value[0]) == null ? void 0 : Ge.url,
5610
+ key: (Ke = je.value[0]) == null ? void 0 : Ke.url,
5610
5611
  "slides-per-view": 1,
5611
5612
  "space-between": 50,
5612
5613
  navigation: {
@@ -5634,7 +5635,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5634
5635
  key: (ei == null ? void 0 : ei.url) + ii,
5635
5636
  src: ei == null ? void 0 : ei.url,
5636
5637
  class: "ire-h-full ire-max-h-[500px] ire-w-full ire-object-contain ire-object-center"
5637
- }, null, 8, _hoisted_5$8))
5638
+ }, null, 8, _hoisted_5$4))
5638
5639
  ], 8, _hoisted_4$a))
5639
5640
  ]),
5640
5641
  _: 2
@@ -5695,11 +5696,11 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5695
5696
  })
5696
5697
  ]),
5697
5698
  Ae.value ? (openBlock(), createElementBlock("div", _hoisted_8$3, [
5698
- (Xe = (Je = (Ye = (Ze = Be.flat) == null ? void 0 : Ze.type) == null ? void 0 : Ye.image_3d) == null ? void 0 : Je[0]) != null && Xe.url ? (openBlock(), createBlock(_sfc_main$x, {
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, {
5699
5700
  key: 0,
5700
5701
  title: unref(tr)("3d plan"),
5701
5702
  active: !De.value,
5702
- onClick: qe[0] || (qe[0] = (Ge) => De.value = !1)
5703
+ onClick: qe[0] || (qe[0] = (Ke) => De.value = !1)
5703
5704
  }, {
5704
5705
  icon: withCtx(() => [
5705
5706
  createVNode(Cube3d, {
@@ -5708,11 +5709,11 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5708
5709
  ]),
5709
5710
  _: 1
5710
5711
  }, 8, ["title", "active"])) : createCommentVNode("", !0),
5711
- (Ke = (ti = (ni = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : ni.image_2d) == null ? void 0 : ti[0]) != null && Ke.url ? (openBlock(), createBlock(_sfc_main$x, {
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
5713
  key: 1,
5713
5714
  title: unref(tr)("2d plan"),
5714
5715
  active: De.value,
5715
- onClick: qe[1] || (qe[1] = (Ge) => De.value = !0)
5716
+ onClick: qe[1] || (qe[1] = (Ke) => De.value = !0)
5716
5717
  }, {
5717
5718
  icon: withCtx(() => [
5718
5719
  createVNode(FlatIcon, {
@@ -5724,7 +5725,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5724
5725
  ])) : createCommentVNode("", !0)
5725
5726
  ])
5726
5727
  ]),
5727
- unref($e)("remove_watermark") !== "true" || !((Ue = unref(Ne)) != null && Ue.is_premium) ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
5728
+ unref($e)("remove_watermark") !== "true" || !((Ye = unref(Ne)) != null && Ye.is_premium) ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
5728
5729
  createElementVNode("a", _hoisted_10$3, [
5729
5730
  createVNode(Logo, { class: "ire-size-12" })
5730
5731
  ])
@@ -5912,17 +5913,17 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5912
5913
  var He, We, qe, Ze;
5913
5914
  if (!Re.value || De) return;
5914
5915
  const je = (He = Ve.value) == null ? void 0 : He.floors.find(
5915
- (Ye) => {
5916
- var Je, Xe, Qe;
5917
- return ((Je = Ye.id) == null ? void 0 : Je.toString()) === ((Qe = (Xe = _e.flat) == null ? void 0 : Xe.floor_id) == null ? void 0 : Qe.toString());
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());
5918
5919
  }
5919
5920
  ), Fe = {
5920
5921
  flatId: (We = _e.flat) == null ? void 0 : We.id,
5921
5922
  floorId: je == null ? void 0 : je.id,
5922
5923
  projectId: (Ze = (qe = Ve.value) == null ? void 0 : qe.project) == null ? void 0 : Ze.id
5923
5924
  };
5924
- Object.entries(Fe).forEach(([Ye, Je]) => {
5925
- Ye && Je && setQuery(Ye, Je);
5925
+ Object.entries(Fe).forEach(([Xe, Je]) => {
5926
+ Xe && Je && setQuery(Xe, Je);
5926
5927
  });
5927
5928
  };
5928
5929
  return onMounted(() => {
@@ -5932,7 +5933,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5932
5933
  setQuery(Fe, "");
5933
5934
  });
5934
5935
  }), (je, Fe) => {
5935
- var He, We, qe, Ze, Ye, Je, Xe, Qe, ni, ti, Ke, Ue, Ge, ei, ii, oi, ri, si, ai, li, ci, di, ui, hi, fi, mi, vi, gi, bi, yi, _i, xi, wi, Ci, ki, Si;
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
5937
  return openBlock(), createElementBlock("div", {
5937
5938
  class: normalizeClass(["irep-flat-preview ire-grid", {
5938
5939
  "lg:ire-grid-cols-[1.4fr,1fr]": Ae.value
@@ -5956,15 +5957,15 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5956
5957
  value: Be.flat.flat_number,
5957
5958
  class: "[&_.flat-preview-value]:ire-min-w-fit [&_.flat-preview-value]:ire-font-semibold"
5958
5959
  }, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5959
- (qe = (We = Be.flat) == null ? void 0 : We.type) != null && qe.title || (Ye = (Ze = Be.flat) == null ? void 0 : Ze.type) != null && Ye.teaser ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
5960
- createElementVNode("div", _hoisted_4$7, toDisplayString((Xe = (Je = Be.flat) == null ? void 0 : Je.type) == null ? void 0 : Xe.title), 1),
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),
5961
5962
  createElementVNode("div", _hoisted_5$5, toDisplayString((ni = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : ni.teaser), 1)
5962
5963
  ])) : createCommentVNode("", !0),
5963
5964
  createElementVNode("div", _hoisted_6$3, [
5964
5965
  (ti = Be.flat) != null && ti.block_id ? (openBlock(), createBlock(_sfc_main$y, {
5965
5966
  key: 0,
5966
5967
  keyName: unref(tr)("block"),
5967
- value: ((Ge = (Ue = unref(getBlockById)(+((Ke = Be.flat) == null ? void 0 : Ke.block_id))) == null ? void 0 : Ue.title) == null ? void 0 : Ge.toString()) || ""
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
5969
  }, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5969
5970
  (ei = Be.flat) != null && ei.floor_id ? (openBlock(), createBlock(_sfc_main$y, {
5970
5971
  key: 1,
@@ -5981,12 +5982,12 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5981
5982
  ]),
5982
5983
  _: 1
5983
5984
  }, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5984
- (di = (ci = Be.flat) == null ? void 0 : ci.type) != null && di.rooms_count ? (openBlock(), createBlock(_sfc_main$y, {
5985
+ (ci = (ui = Be.flat) == null ? void 0 : ui.type) != null && ci.rooms_count ? (openBlock(), createBlock(_sfc_main$y, {
5985
5986
  key: 3,
5986
5987
  keyName: unref(tr)("room"),
5987
5988
  value: Be.flat.type.rooms_count
5988
5989
  }, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5989
- (ui = Be.flat) != null && ui.request_price ? (openBlock(), createBlock(_sfc_main$y, {
5990
+ (di = Be.flat) != null && di.request_price ? (openBlock(), createBlock(_sfc_main$y, {
5990
5991
  key: 4,
5991
5992
  keyName: unref(tr)("price"),
5992
5993
  value: unref(tr)("Request Price")
@@ -6025,7 +6026,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
6025
6026
  ])
6026
6027
  ]),
6027
6028
  createElementVNode("div", _hoisted_8$2, [
6028
- (wi = (xi = (_i = Be.flat) == null ? void 0 : _i.files) == null ? void 0 : xi[0]) != null && wi.url ? (openBlock(), createElementBlock("a", {
6029
+ (xi = (wi = (_i = Be.flat) == null ? void 0 : _i.files) == null ? void 0 : wi[0]) != null && xi.url ? (openBlock(), createElementBlock("a", {
6029
6030
  key: 0,
6030
6031
  href: (Si = (ki = (Ci = Be.flat) == null ? void 0 : Ci.files) == null ? void 0 : ki[0]) == null ? void 0 : Si.url,
6031
6032
  target: "_blank",
@@ -6159,29 +6160,29 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6159
6160
  const Ze = qe.target;
6160
6161
  Ze && (Ie.value = Ze);
6161
6162
  }, He = (qe) => {
6162
- var Ye, Je, Xe;
6163
+ var Xe, Je, Ue;
6163
6164
  const Ze = qe.target;
6164
- (Ze == null ? void 0 : Ze.nodeName) === "path" && (((Ye = ze.value) == null ? void 0 : Ye.conf) === "reserved" && !De.value || ((Je = ze.value) == null ? void 0 : Je.conf) === "sold" && !Le.value || ke(
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(
6165
6166
  "changeComponent",
6166
- ((Xe = Ae.value) == null ? void 0 : Xe.type) || "",
6167
+ ((Ue = Ae.value) == null ? void 0 : Ue.type) || "",
6167
6168
  ze.value
6168
6169
  ));
6169
6170
  }, We = () => {
6170
6171
  var Ze;
6171
6172
  if (!Re.value) return;
6172
- ((Ze = Re.value) == null ? void 0 : Ze.querySelectorAll("g")).forEach((Ye) => {
6173
- var ni, ti, Ke, Ue;
6174
- const Je = Ye == null ? void 0 : Ye.getAttribute("id"), Xe = (ti = (ni = $e.block) == null ? void 0 : ni.polygon_data) == null ? void 0 : ti.find(
6175
- (Ge) => (Ge == null ? void 0 : Ge.key) === Je
6176
- ), Qe = Xe == null ? void 0 : Xe.id;
6177
- switch (Xe == null ? void 0 : Xe.type) {
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) {
6178
6179
  case "floor":
6179
- const Ge = (Ke = $e.floors) == null ? void 0 : Ke.find((ii) => ii.id === Qe);
6180
- Ye.setAttribute("conf", (Ge == null ? void 0 : Ge.conf) || "");
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) || "");
6181
6182
  break;
6182
6183
  case "flat":
6183
- const ei = (Ue = $e.flats) == null ? void 0 : Ue.find((ii) => ii.id === Qe);
6184
- Ye.setAttribute("conf", (ei == null ? void 0 : ei.conf) || "");
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) || "");
6185
6186
  break;
6186
6187
  }
6187
6188
  });
@@ -6194,14 +6195,14 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6194
6195
  ), watch(
6195
6196
  () => Ie.value,
6196
6197
  (qe) => {
6197
- var Ye, Je, Xe, Qe, ni, ti, Ke, Ue;
6198
+ var Xe, Je, Ue, Qe, ni, ti, Ge, Ye;
6198
6199
  if (!qe) return;
6199
6200
  Ve.hoverdSvg = qe;
6200
6201
  const Ze = qe == null ? void 0 : qe.parentElement;
6201
6202
  if (Ze && (Ze == null ? void 0 : Ze.nodeName) === "g") {
6202
- const Ge = Ze == null ? void 0 : Ze.getAttribute("id");
6203
- if (!Ge || (Ae.value = ((Je = (Ye = $e.block) == null ? void 0 : Ye.polygon_data) == null ? void 0 : Je.find((ei) => (ei == null ? void 0 : ei.key) === Ge)) || null, !Ae.value)) return;
6204
- if (((Xe = Ae.value) == null ? void 0 : Xe.type) === "floor") {
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") {
6205
6206
  const ei = (Qe = $e.floors) == null ? void 0 : Qe.find(
6206
6207
  (ii) => {
6207
6208
  var oi;
@@ -6217,8 +6218,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6217
6218
  }
6218
6219
  );
6219
6220
  ze.value = ei;
6220
- } else if (((Ke = Ae.value) == null ? void 0 : Ke.type) === "tooltip") {
6221
- const ei = (Ue = $e.actions) == null ? void 0 : Ue.find(
6221
+ } else if (((Ge = Ae.value) == null ? void 0 : Ge.type) === "tooltip") {
6222
+ const ei = (Ye = $e.actions) == null ? void 0 : Ye.find(
6222
6223
  (ii) => {
6223
6224
  var oi;
6224
6225
  return (ii == null ? void 0 : ii.id) === ((oi = Ae.value) == null ? void 0 : oi.id);
@@ -6235,26 +6236,26 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6235
6236
  }), onUnmounted(() => {
6236
6237
  document.removeEventListener("mousemove", Fe);
6237
6238
  }), (qe, Ze) => {
6238
- var Ye;
6239
+ var Xe;
6239
6240
  return openBlock(), createBlock(_sfc_main$E, {
6240
6241
  hoverdData: ze.value,
6241
- type: (Ye = Ae.value) == null ? void 0 : Ye.type
6242
+ type: (Xe = Ae.value) == null ? void 0 : Xe.type
6242
6243
  }, {
6243
6244
  header: withCtx(() => {
6244
6245
  var Je;
6245
6246
  return [
6246
6247
  createVNode(_sfc_main$A, {
6247
- onClick: Ze[0] || (Ze[0] = (Xe) => qe.$emit("changeComponent", "project", null))
6248
+ onClick: Ze[0] || (Ze[0] = (Ue) => qe.$emit("changeComponent", "project", null))
6248
6249
  }),
6249
6250
  createElementVNode("div", _hoisted_1$g, toDisplayString((Je = Be.block) == null ? void 0 : Je.title), 1)
6250
6251
  ];
6251
6252
  }),
6252
6253
  default: withCtx(() => {
6253
- var Je, Xe, Qe;
6254
+ var Je, Ue, Qe;
6254
6255
  return [
6255
6256
  createElementVNode("div", _hoisted_2$8, [
6256
6257
  createElementVNode("img", {
6257
- src: ((Qe = (Xe = (Je = Be.block) == null ? void 0 : Je.block_image) == null ? void 0 : Xe[0]) == null ? void 0 : Qe.url) || "",
6258
+ src: ((Qe = (Ue = (Je = Be.block) == null ? void 0 : Je.block_image) == null ? void 0 : Ue[0]) == null ? void 0 : Qe.url) || "",
6258
6259
  alt: "",
6259
6260
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
6260
6261
  }, null, 8, _hoisted_3$8),
@@ -6289,8 +6290,8 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6289
6290
  const Fe = document.querySelector(".irep-tooltip"), He = ((ni = _e.hoverdSvg) == null ? void 0 : ni.nodeName) === "path" ? _e.hoverdSvg : null;
6290
6291
  if (!Ve.value || !Fe || !He)
6291
6292
  return;
6292
- const We = Ve.value.getBoundingClientRect(), qe = He.getBoundingClientRect(), Ze = Fe.getBoundingClientRect(), Ye = We.left + We.width / 2, Je = We.top + We.height / 2, Xe = qe.left > Ye, Qe = qe.bottom > Je;
6293
- Le = je.clientX - We.left - (Xe ? 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(), 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;
6294
6295
  };
6295
6296
  return onMounted(() => {
6296
6297
  document.addEventListener("mousemove", ze);
@@ -6541,7 +6542,7 @@ function _sfc_render$8(Be, _e) {
6541
6542
  }, null, -1)
6542
6543
  ])]);
6543
6544
  }
6544
- 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$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$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-[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
6546
  __name: "FlatCard",
6546
6547
  props: {
6547
6548
  flat: {}
@@ -6558,7 +6559,7 @@ const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_re
6558
6559
  return (Ve, De) => {
6559
6560
  var Le, Re;
6560
6561
  return openBlock(), createElementBlock("div", {
6561
- class: "ire-cursor-pointer ire-rounded-sm ire-border ire-border-solid ire-border-gray-300 ire-bg-gray-50 ire-p-2 ire-text-black ire-transition-all ire-duration-300 hover:ire-bg-gray-100",
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
6563
  onClick: De[0] || (De[0] = (Ie) => ke("openFlat", Be.flat.id))
6563
6564
  }, [
6564
6565
  createElementVNode("div", _hoisted_1$e, [
@@ -6566,13 +6567,13 @@ const Placeholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_re
6566
6567
  key: 0,
6567
6568
  src: Ne.value[0],
6568
6569
  alt: "",
6569
- class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full ire-object-cover"
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"
6570
6571
  }, null, 8, _hoisted_2$7)) : (openBlock(), createElementBlock("div", _hoisted_3$7, [
6571
6572
  createVNode(Placeholder, { class: "ire-absolute ire-left-0 ire-top-0 ire-h-full ire-w-full" })
6572
6573
  ]))
6573
6574
  ]),
6574
6575
  createElementVNode("div", _hoisted_4$5, [
6575
- createElementVNode("div", _hoisted_5$4, [
6576
+ createElementVNode("div", _hoisted_5$1, [
6576
6577
  createElementVNode("div", _hoisted_6$2, toDisplayString(Be.flat.flat_number), 1),
6577
6578
  Be.flat.conf ? (openBlock(), createBlock(_sfc_main$s, {
6578
6579
  key: 0,
@@ -7220,7 +7221,7 @@ const MagnifyIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_re
7220
7221
  }, 8, ["data"]))
7221
7222
  ]));
7222
7223
  }
7223
- }), _hoisted_1$2 = { class: "irep-flats-list-filters ire-space-y-4 ire-p-8 ire-text-base" }, _hoisted_2$1 = { class: "irep-flats-list-filters-title mb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_3$1 = { class: "flex ire-flex-col ire-gap-2 ire-text-center md:ire-flex-row" }, _hoisted_4$1 = { class: "irep-flats-list-filters-title mb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_5$1 = { class: "flex ire-flex-col ire-gap-2 ire-text-center md:ire-flex-row" }, _hoisted_6 = { class: "irep-flats-list-filters-title mb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_7 = { class: "flex ire-flex-col ire-gap-2 ire-text-center md:ire-flex-row" }, _hoisted_8 = { class: "irep-flats-list-filters-title mb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _hoisted_9 = { class: "flex ire-flex-col ire-gap-2 ire-text-center md:ire-flex-row" }, _hoisted_10 = { class: "irep-flats-list-filters-title ire-mb-2 ire-text-lg ire-font-semibold ire-capitalize ire-text-black" }, _sfc_main$2 = /* @__PURE__ */ defineComponent({
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
7225
  __name: "Filters",
7225
7226
  props: {
7226
7227
  filtersObject: {},
@@ -7228,126 +7229,142 @@ const MagnifyIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_re
7228
7229
  },
7229
7230
  emits: /* @__PURE__ */ mergeModels(["filterFlatsList"], ["update:filtersObject"]),
7230
7231
  setup(Be, { emit: _e }) {
7231
- const ke = _e, $e = [
7232
- { value: "all", title: tr("all") },
7233
- { value: "available", title: tr("available") },
7234
- { value: "reserved", title: tr("reserved") },
7235
- { value: "sold", title: tr("sold") }
7236
- ], Ne = useModel(Be, "filtersObject");
7237
- return (Ve, De) => (openBlock(), createElementBlock("div", _hoisted_1$2, [
7238
- createElementVNode("div", null, [
7239
- createElementVNode("div", _hoisted_2$1, toDisplayString(unref(tr)("price")), 1),
7240
- createElementVNode("div", _hoisted_3$1, [
7241
- createVNode(_sfc_main$q, {
7242
- modelValue: Ne.value.priceMin,
7243
- "onUpdate:modelValue": De[0] || (De[0] = (Le) => Ne.value.priceMin = Le),
7244
- label: unref(tr)("min"),
7245
- type: "number",
7246
- class: "irep-flats-list-filters-input"
7247
- }, {
7248
- "right-icon": withCtx(() => [
7249
- createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
7250
- ]),
7251
- _: 1
7252
- }, 8, ["modelValue", "label"]),
7253
- createVNode(_sfc_main$q, {
7254
- modelValue: Ne.value.priceMax,
7255
- "onUpdate:modelValue": De[1] || (De[1] = (Le) => Ne.value.priceMax = Le),
7256
- label: unref(tr)("max"),
7257
- type: "number",
7258
- class: "irep-flats-list-filters-input"
7259
- }, {
7260
- "right-icon": withCtx(() => [
7261
- createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
7262
- ]),
7263
- _: 1
7264
- }, 8, ["modelValue", "label"])
7265
- ])
7266
- ]),
7267
- createElementVNode("div", null, [
7268
- createElementVNode("div", _hoisted_4$1, toDisplayString(unref(tr)("area")), 1),
7269
- createElementVNode("div", _hoisted_5$1, [
7270
- createVNode(_sfc_main$q, {
7271
- modelValue: Ne.value.areaMin,
7272
- "onUpdate:modelValue": De[2] || (De[2] = (Le) => Ne.value.areaMin = Le),
7273
- label: unref(tr)("min"),
7274
- type: "number",
7275
- class: "irep-flats-list-filters-input"
7276
- }, {
7277
- "right-icon": withCtx(() => [
7278
- createElementVNode("span", null, toDisplayString(unref(getAreaUnitLabel)()) + "² ", 1)
7279
- ]),
7280
- _: 1
7281
- }, 8, ["modelValue", "label"]),
7282
- createVNode(_sfc_main$q, {
7283
- modelValue: Ne.value.areaMax,
7284
- "onUpdate:modelValue": De[3] || (De[3] = (Le) => Ne.value.areaMax = Le),
7285
- label: unref(tr)("max"),
7286
- type: "number",
7287
- class: "irep-flats-list-filters-input"
7288
- }, {
7289
- "right-icon": withCtx(() => [
7290
- createElementVNode("span", null, toDisplayString(unref(getAreaUnitLabel)()) + "² ", 1)
7291
- ]),
7292
- _: 1
7293
- }, 8, ["modelValue", "label"])
7294
- ])
7295
- ]),
7296
- createElementVNode("div", null, [
7297
- createElementVNode("div", _hoisted_6, toDisplayString(unref(tr)("floor number")), 1),
7232
+ const ke = _e, $e = useGlobalStore(), { shortcodeData: Ne } = storeToRefs($e), Ve = [
7233
+ { title: tr("any price"), value: "0-Infinity" },
7234
+ { title: `${tr("under")} ${currencySymbol()}50,000`, value: "0-50000" },
7235
+ {
7236
+ title: `${currencySymbol()}50,000 - ${currencySymbol()}100,000`,
7237
+ value: "50000-100000"
7238
+ },
7239
+ {
7240
+ title: `${currencySymbol()}100,000 - ${currencySymbol()}200,000`,
7241
+ value: "100000-200000"
7242
+ },
7243
+ {
7244
+ title: `${currencySymbol()}200,000 - ${currencySymbol()}500,000`,
7245
+ value: "200000-500000"
7246
+ },
7247
+ { title: `${currencySymbol()}500,000+`, value: "500000-Infinity" }
7248
+ ], De = [
7249
+ { 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" },
7254
+ { title: `120 ${getAreaUnitLabel()}² +`, value: "120-Infinity" }
7255
+ ], Le = [
7256
+ { title: tr("any room"), value: "0-Infinity" },
7257
+ { title: `1 ${tr("room")}`, value: "1-1" },
7258
+ { title: `2 ${tr("rooms")}`, value: "2-2" },
7259
+ { title: `3 ${tr("rooms")}`, value: "3-3" },
7260
+ { title: `4+ ${tr("rooms")}`, value: "4-Infinity" }
7261
+ ], Re = [
7262
+ { title: tr("all"), value: "all" },
7263
+ { title: tr("available"), value: "available" },
7264
+ { title: tr("reserved"), value: "reserved" },
7265
+ { 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
7272
+ );
7273
+ return {
7274
+ floorId: Xe == null ? void 0 : Xe.id,
7275
+ floorNumber: Number(Xe == null ? void 0 : Xe.floor_number)
7276
+ };
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 || ""
7282
+ }));
7283
+ return [
7284
+ {
7285
+ title: "Any Floor",
7286
+ value: ""
7287
+ },
7288
+ ...We
7289
+ ];
7290
+ }), ze = () => {
7291
+ Ie.value = {
7292
+ priceRange: "0-Infinity",
7293
+ areaRange: "0-Infinity",
7294
+ floor: "",
7295
+ roomRange: "0-Infinity",
7296
+ config: "all"
7297
+ }, ke("filterFlatsList");
7298
+ };
7299
+ return (je, Fe) => {
7300
+ var He;
7301
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [
7302
+ createElementVNode("div", null, [
7303
+ createElementVNode("div", _hoisted_2$1, toDisplayString(unref(tr)("price")), 1),
7304
+ createVNode(_sfc_main$C, {
7305
+ modelValue: Ie.value.priceRange,
7306
+ "onUpdate:modelValue": Fe[0] || (Fe[0] = (We) => Ie.value.priceRange = We),
7307
+ data: Ve,
7308
+ disabled: !1,
7309
+ class: "irep-flats-list-filters-select ire-max-w-full [&_select]:ire-capitalize"
7310
+ }, null, 8, ["modelValue"])
7311
+ ]),
7312
+ createElementVNode("div", null, [
7313
+ createElementVNode("div", _hoisted_3$1, toDisplayString(unref(tr)("area")), 1),
7314
+ createVNode(_sfc_main$C, {
7315
+ modelValue: Ie.value.areaRange,
7316
+ "onUpdate:modelValue": Fe[1] || (Fe[1] = (We) => Ie.value.areaRange = We),
7317
+ data: De,
7318
+ disabled: !1,
7319
+ class: "irep-flats-list-filters-select ire-max-w-full [&_select]:ire-capitalize"
7320
+ }, null, 8, ["modelValue"])
7321
+ ]),
7322
+ createElementVNode("div", null, [
7323
+ createElementVNode("div", _hoisted_4$1, toDisplayString(unref(tr)("floor number")), 1),
7324
+ 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"
7330
+ }, null, 8, ["modelValue", "data", "disabled"])
7331
+ ]),
7332
+ createElementVNode("div", null, [
7333
+ createElementVNode("div", _hoisted_5, toDisplayString(unref(tr)("rooms count")), 1),
7334
+ createVNode(_sfc_main$C, {
7335
+ modelValue: Ie.value.roomRange,
7336
+ "onUpdate:modelValue": Fe[3] || (Fe[3] = (We) => Ie.value.roomRange = We),
7337
+ data: Le,
7338
+ disabled: !1,
7339
+ class: "irep-flats-list-filters-select ire-max-w-full [&_select]:ire-capitalize"
7340
+ }, null, 8, ["modelValue"])
7341
+ ]),
7342
+ createElementVNode("div", null, [
7343
+ createElementVNode("div", _hoisted_6, toDisplayString(unref(tr)("select config")), 1),
7344
+ createVNode(_sfc_main$C, {
7345
+ modelValue: Ie.value.config,
7346
+ "onUpdate:modelValue": Fe[4] || (Fe[4] = (We) => Ie.value.config = We),
7347
+ data: Re,
7348
+ disabled: !1,
7349
+ class: "irep-flats-list-filters-select ire-max-w-full [&_select]:ire-capitalize"
7350
+ }, null, 8, ["modelValue"])
7351
+ ]),
7298
7352
  createElementVNode("div", _hoisted_7, [
7299
- createVNode(_sfc_main$q, {
7300
- modelValue: Ne.value.floorMin,
7301
- "onUpdate:modelValue": De[4] || (De[4] = (Le) => Ne.value.floorMin = Le),
7302
- label: unref(tr)("min"),
7303
- type: "number",
7304
- class: "irep-flats-list-filters-input"
7305
- }, null, 8, ["modelValue", "label"]),
7306
- createVNode(_sfc_main$q, {
7307
- modelValue: Ne.value.floorMax,
7308
- "onUpdate:modelValue": De[5] || (De[5] = (Le) => Ne.value.floorMax = Le),
7309
- label: unref(tr)("max"),
7310
- type: "number",
7311
- class: "irep-flats-list-filters-input"
7312
- }, null, 8, ["modelValue", "label"])
7353
+ createVNode(_sfc_main$x, {
7354
+ title: unref(tr)("reset"),
7355
+ active: "",
7356
+ 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"))
7364
+ }, null, 8, ["title"])
7313
7365
  ])
7314
- ]),
7315
- createElementVNode("div", null, [
7316
- createElementVNode("div", _hoisted_8, toDisplayString(unref(tr)("rooms count")), 1),
7317
- createElementVNode("div", _hoisted_9, [
7318
- createVNode(_sfc_main$q, {
7319
- modelValue: Ne.value.roomMin,
7320
- "onUpdate:modelValue": De[6] || (De[6] = (Le) => Ne.value.roomMin = Le),
7321
- label: unref(tr)("min"),
7322
- type: "number",
7323
- class: "irep-flats-list-filters-input"
7324
- }, null, 8, ["modelValue", "label"]),
7325
- createVNode(_sfc_main$q, {
7326
- modelValue: Ne.value.roomMax,
7327
- "onUpdate:modelValue": De[7] || (De[7] = (Le) => Ne.value.roomMax = Le),
7328
- label: unref(tr)("max"),
7329
- type: "number",
7330
- class: "irep-flats-list-filters-input"
7331
- }, null, 8, ["modelValue", "label"])
7332
- ])
7333
- ]),
7334
- createElementVNode("div", null, [
7335
- createElementVNode("div", _hoisted_10, toDisplayString(unref(tr)("select config")), 1),
7336
- createVNode(_sfc_main$C, {
7337
- modelValue: Ne.value.config,
7338
- "onUpdate:modelValue": De[8] || (De[8] = (Le) => Ne.value.config = Le),
7339
- data: $e,
7340
- disabled: !1,
7341
- class: "irep-flats-list-filters-select"
7342
- }, null, 8, ["modelValue"])
7343
- ]),
7344
- createVNode(_sfc_main$x, {
7345
- title: unref(tr)("filter"),
7346
- active: "",
7347
- class: "irep-flats-list-filters-submit-btn !ire-w-fit ire-capitalize",
7348
- onClick: De[9] || (De[9] = (Le) => ke("filterFlatsList"))
7349
- }, null, 8, ["title"])
7350
- ]));
7366
+ ]);
7367
+ };
7351
7368
  }
7352
7369
  }), _sfc_main$1 = {}, _hoisted_1$1 = {
7353
7370
  xmlns: "http://www.w3.org/2000/svg",
@@ -7395,7 +7412,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7395
7412
  }, _hoisted_4 = {
7396
7413
  key: 2,
7397
7414
  class: "irep-flats-list__pagination ire-mt-8 ire-flex ire-flex-col ire-items-center ire-gap-4"
7398
- }, _hoisted_5 = { class: "ire-rounded-xl ire-border ire-border-gray-100 ire-bg-white ire-p-2 ire-shadow-sm" }, _sfc_main = /* @__PURE__ */ defineComponent({
7415
+ }, _sfc_main = /* @__PURE__ */ defineComponent({
7399
7416
  __name: "FlatsList",
7400
7417
  props: {
7401
7418
  data: {},
@@ -7415,83 +7432,67 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7415
7432
  const Le = ref(""), Re = ref("");
7416
7433
  provide("sortField", Le), provide("sortOrder", Re);
7417
7434
  const Ie = ref(!1), Ae = ref(!1), ze = ref(6), je = ref(), Fe = ref(1), He = ref(!1), We = ref(), qe = ref({
7418
- priceMin: "",
7419
- priceMax: "",
7420
- areaMin: "",
7421
- areaMax: "",
7422
- floorMin: "",
7423
- floorMax: "",
7424
- roomMin: "",
7425
- roomMax: "",
7435
+ priceRange: "0-Infinity",
7436
+ areaRange: "0-Infinity",
7437
+ floor: "",
7438
+ roomRange: "0-Infinity",
7426
7439
  config: "all"
7427
7440
  }), Ze = computed$1(() => {
7428
7441
  if ($e.value)
7429
7442
  return $e.value.types;
7430
- }), Ye = computed$1(() => $e.value ? $e.value.flats.map((Ge) => {
7443
+ }), Xe = computed$1(() => $e.value ? $e.value.flats.map((Ke) => {
7431
7444
  var ri, si, ai;
7432
7445
  const ei = (ri = $e.value) == null ? void 0 : ri.floors.find(
7433
- (li) => li.id === Ge.floor_id
7446
+ (li) => li.id === Ke.floor_id
7434
7447
  ), ii = (si = $e.value) == null ? void 0 : si.blocks.find(
7435
- (li) => li.id === Ge.block_id
7436
- ), oi = Ge.use_type || !Ge.type ? ((ai = Ze.value) == null ? void 0 : ai.find((li) => li.id === Ge.type_id)) ?? Ge.type : Ge.type;
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;
7437
7450
  return {
7438
- ...Ge,
7451
+ ...Ke,
7439
7452
  type: {
7440
7453
  ...oi,
7441
7454
  area_m2_n: Number(oi == null ? void 0 : oi.area_m2),
7442
7455
  area_m2: `${oi == null ? void 0 : oi.area_m2} ${getAreaUnitLabel()}²`
7443
7456
  },
7444
- price_n: Number(Ge.price),
7445
- price: Ge.conf ? tr(Ge.conf) : Ge.request_price ? tr("Request Price") : `${getPrice(Number((Ge == null ? void 0 : Ge.offer_price) || (Ge == null ? void 0 : Ge.price)))} ${currencySymbol()}`,
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()}`,
7446
7459
  floor_title: ei == null ? void 0 : ei.title,
7447
7460
  floor_number: Number(ei == null ? void 0 : ei.floor_number),
7448
7461
  block_title: ii == null ? void 0 : ii.title
7449
7462
  };
7450
- }).map((Ge) => {
7463
+ }).map((Ke) => {
7451
7464
  var ii;
7452
- const ei = (ii = Ge.type) == null ? void 0 : ii.other.reduce(
7465
+ const ei = (ii = Ke.type) == null ? void 0 : ii.other.reduce(
7453
7466
  (oi, ri) => (oi[ri.key] = ri.value, oi),
7454
7467
  {}
7455
7468
  );
7456
- return { ...Ge, type: { ...Ge.type, other: ei } };
7457
- }).sort((Ge, ei) => {
7469
+ return { ...Ke, type: { ...Ke.type, other: ei } };
7470
+ }).sort((Ke, ei) => {
7458
7471
  const ii = Le.value;
7459
- let oi = Ge[ii], ri = ei[ii];
7460
- ii != null && ii.includes(".") && (oi = getNested(Ge, ii), ri = getNested(ei, ii)), oi == null && (oi = "0"), ri == null && (ri = "0");
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");
7461
7474
  const si = oi.toString(), ai = ri.toString();
7462
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));
7463
7476
  }) : []), Je = computed$1(() => {
7464
- var Ue;
7465
- return Qe.value ? Math.ceil(((Ue = Xe.value) == null ? void 0 : Ue.length) / ze.value) : 0;
7466
- }), Xe = computed$1(() => Ye.value ? Ye.value.filter((Ue) => {
7467
- var ui, hi, fi, mi, vi, gi, bi, yi;
7468
- let Ge = !0, ei = !0, ii = !0, oi = !0, ri = !0, si = !0, ai = !0, li = !0, ci = !0;
7469
- const di = !(Ue != null && Ue.conf) && !(Ue != null && Ue.request_price);
7470
- if (qe.value.priceMin && (Ge = Ue.price_n >= qe.value.priceMin && di), qe.value.priceMax && (ei = Ue.price_n <= qe.value.priceMax && di), qe.value.areaMin && (ii = ((ui = Ue.type) == null ? void 0 : ui.area_m2_n) && ((hi = Ue.type) == null ? void 0 : hi.area_m2_n) >= qe.value.areaMin), qe.value.areaMax && (oi = ((fi = Ue.type) == null ? void 0 : fi.area_m2_n) && ((mi = Ue.type) == null ? void 0 : mi.area_m2_n) <= qe.value.areaMax), qe.value.floorMin && (ri = (Ue == null ? void 0 : Ue.floor_number) && +(Ue == null ? void 0 : Ue.floor_number) >= +qe.value.floorMin), qe.value.floorMax && (si = (Ue == null ? void 0 : Ue.floor_number) && +(Ue == null ? void 0 : Ue.floor_number) <= +qe.value.floorMax), qe.value.roomMin && (ai = ((vi = Ue.type) == null ? void 0 : vi.rooms_count) && +((gi = Ue.type) == null ? void 0 : gi.rooms_count) >= +qe.value.roomMin), qe.value.roomMax && (li = ((bi = Ue.type) == null ? void 0 : bi.rooms_count) && +((yi = Ue.type) == null ? void 0 : yi.rooms_count) <= +qe.value.roomMax), qe.value.config)
7471
- switch (qe.value.config) {
7472
- case "available":
7473
- ci = !Ue.conf;
7474
- break;
7475
- case "reserved":
7476
- ci = Ue.conf === "reserved";
7477
- break;
7478
- case "sold":
7479
- ci = Ue.conf === "sold";
7480
- break;
7481
- }
7482
- return Ge && ei && ii && oi && ri && si && ai && li && ci;
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;
7483
7484
  }) : []), Qe = computed$1(() => {
7484
7485
  var ei;
7485
7486
  if (!((ei = $e.value) != null && ei.flats)) return [];
7486
- const Ue = (Fe.value - 1) * ze.value, Ge = Ue + ze.value;
7487
- return Xe.value.slice(Ue, Ge);
7488
- }), ni = (Ue) => {
7489
- Fe.value = Ue, De(je.value), je.value, setQuery("flats-page", Ue.toString());
7490
- }, ti = (Ue, Ge) => {
7491
- Le.value = Ue, Re.value = Ge;
7492
- }, Ke = (Ue) => {
7493
- const Ge = Ve.value.find((ei) => ei.id === Ue);
7494
- We.value = Ge, He.value = !0;
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;
7495
7496
  };
7496
7497
  return watch(
7497
7498
  () => qe.value,
@@ -7502,11 +7503,11 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7502
7503
  deep: !0
7503
7504
  }
7504
7505
  ), onMounted(() => {
7505
- const Ue = getQuery("flats-page");
7506
- Ue && !isNaN(Number(Ue)) && (Fe.value = Number(Ue)), _e.perPage && !isNaN(Number(_e.perPage)) && (ze.value = Number(_e.perPage));
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));
7507
7508
  }), onBeforeMount(() => {
7508
7509
  Ae.value = _e.layout === "table", _e.orderBy && (Le.value = _e.orderBy, Re.value = "asc");
7509
- }), provide("fromListView", _e.fromListView), (Ue, Ge) => (openBlock(), createBlock(_sfc_main$L, { class: "irep-flats-list ire-text-base" }, {
7510
+ }), provide("fromListView", _e.fromListView), (Ye, Ke) => (openBlock(), createBlock(_sfc_main$L, { class: "irep-flats-list ire-text-base" }, {
7510
7511
  default: withCtx(() => {
7511
7512
  var ei;
7512
7513
  return [
@@ -7515,12 +7516,12 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7515
7516
  title: unref(tr)("filters"),
7516
7517
  active: "",
7517
7518
  class: "irep-flats-top__filters-button !ire-w-fit ire-capitalize",
7518
- onClick: Ge[0] || (Ge[0] = (ii) => Ie.value = !0)
7519
+ onClick: Ke[0] || (Ke[0] = (ii) => Ie.value = !0)
7519
7520
  }, null, 8, ["title"]),
7520
7521
  Be.layout === "mixed" ? (openBlock(), createElementBlock("button", {
7521
7522
  key: 0,
7522
7523
  class: "irep-flats-top__mode-switcher-button ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-1 ire-bg-transparent",
7523
- onClick: Ge[1] || (Ge[1] = (ii) => Ae.value = !Ae.value)
7524
+ onClick: Ke[1] || (Ke[1] = (ii) => Ae.value = !Ae.value)
7524
7525
  }, [
7525
7526
  createElementVNode("div", _hoisted_2, [
7526
7527
  createVNode(Transition, {
@@ -7562,37 +7563,35 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7562
7563
  Ae.value ? (openBlock(), createBlock(_sfc_main$3, {
7563
7564
  key: 0,
7564
7565
  flats: Qe.value,
7565
- onSortColumn: Ge[2] || (Ge[2] = (ii, oi) => ti(ii, oi)),
7566
- onOpenFlat: Ge[3] || (Ge[3] = (ii) => Ke(ii))
7566
+ onSortColumn: Ke[2] || (Ke[2] = (ii, oi) => ti(ii, oi)),
7567
+ onOpenFlat: Ke[3] || (Ke[3] = (ii) => Ge(ii))
7567
7568
  }, null, 8, ["flats"])) : (openBlock(), createElementBlock("div", {
7568
7569
  key: 1,
7569
7570
  ref_key: "flatsContainer",
7570
7571
  ref: je,
7571
- class: "ire-grid ire-grid-cols-1 ire-gap-2 md:ire-grid-cols-2 lg:ire-grid-cols-3 xl:ire-grid-cols-4"
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"
7572
7573
  }, [
7573
7574
  (openBlock(!0), createElementBlock(Fragment, null, renderList(Qe.value, (ii) => (openBlock(), createBlock(_sfc_main$e, {
7574
7575
  key: ii.id,
7575
7576
  flat: ii,
7576
- onOpenFlat: Ge[4] || (Ge[4] = (oi) => Ke(oi))
7577
+ onOpenFlat: Ke[4] || (Ke[4] = (oi) => Ge(oi))
7577
7578
  }, null, 8, ["flat"]))), 128))
7578
7579
  ], 512))
7579
7580
  ]),
7580
7581
  _: 1
7581
7582
  })) : (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(unref(tr)("nothing found")), 1)),
7582
7583
  (ei = Qe.value) != null && ei.length && Je.value > 1 ? (openBlock(), createElementBlock("div", _hoisted_4, [
7583
- createElementVNode("div", _hoisted_5, [
7584
- createVNode(unref(script$1), {
7585
- modelValue: Fe.value,
7586
- "onUpdate:modelValue": [
7587
- Ge[5] || (Ge[5] = (ii) => Fe.value = ii),
7588
- ni
7589
- ],
7590
- pages: Je.value,
7591
- "range-size": 1,
7592
- "active-color": "#000000",
7593
- class: "[&_.Page-active]:!ire-text-white"
7594
- }, null, 8, ["modelValue", "pages"])
7595
- ])
7584
+ createVNode(unref(script$1), {
7585
+ modelValue: Fe.value,
7586
+ "onUpdate:modelValue": [
7587
+ Ke[5] || (Ke[5] = (ii) => Fe.value = ii),
7588
+ ni
7589
+ ],
7590
+ pages: Je.value,
7591
+ "range-size": 1,
7592
+ "active-color": "#000000",
7593
+ 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"
7594
+ }, null, 8, ["modelValue", "pages"])
7596
7595
  ])) : createCommentVNode("", !0),
7597
7596
  (openBlock(), createBlock(Teleport, { to: "body" }, [
7598
7597
  createVNode(Transition, {
@@ -7603,7 +7602,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7603
7602
  He.value && We.value ? (openBlock(), createBlock(_sfc_main$m, {
7604
7603
  key: 0,
7605
7604
  style: normalizeStyle(unref(Ne)),
7606
- onClose: Ge[6] || (Ge[6] = (ii) => He.value = !1)
7605
+ onClose: Ke[6] || (Ke[6] = (ii) => He.value = !1)
7607
7606
  }, {
7608
7607
  default: withCtx(() => [
7609
7608
  createVNode(_sfc_main$o, { flat: We.value }, null, 8, ["flat"])
@@ -7622,13 +7621,13 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7622
7621
  default: withCtx(() => [
7623
7622
  Ie.value ? (openBlock(), createBlock(_sfc_main$m, {
7624
7623
  key: 0,
7625
- onClose: Ge[9] || (Ge[9] = (ii) => Ie.value = !1)
7624
+ onClose: Ke[9] || (Ke[9] = (ii) => Ie.value = !1)
7626
7625
  }, {
7627
7626
  default: withCtx(() => [
7628
7627
  createVNode(_sfc_main$2, {
7629
7628
  "filters-object": qe.value,
7630
- "onUpdate:filtersObject": Ge[7] || (Ge[7] = (ii) => qe.value = ii),
7631
- onFilterFlatsList: Ge[8] || (Ge[8] = (ii) => Ie.value = !1)
7629
+ "onUpdate:filtersObject": Ke[7] || (Ke[7] = (ii) => qe.value = ii),
7630
+ onFilterFlatsList: Ke[8] || (Ke[8] = (ii) => Ie.value = !1)
7632
7631
  }, null, 8, ["filters-object"])
7633
7632
  ]),
7634
7633
  _: 1