ire-preview 3.2.46 → 3.2.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { toRaw, computed as computed$1, isRef, isReactive, toRef, hasInjectionContext, inject, effectScope, ref, markRaw, reactive, getCurrentScope, onScopeDispose, watch, nextTick, toRefs, defineComponent, createElementBlock, openBlock, normalizeStyle, unref, renderSlot, createVNode, Transition, withCtx, createCommentVNode, createElementVNode, toDisplayString, Fragment, createTextVNode, createStaticVNode, normalizeClass, createBlock, onMounted, onUnmounted, mergeModels, useModel, withDirectives, renderList, vModelSelect, useSlots, onUpdated, provide, onBeforeUnmount, h as h$1, onBeforeUpdate, vShow, vModelDynamic, withModifiers, vModelText, Teleport, pushScopeId, popScopeId, withScopeId, resolveComponent, resolveDynamicComponent, onBeforeMount } from "vue";
1
+ import { toRaw, computed as computed$1, isRef, isReactive, toRef, hasInjectionContext, inject, effectScope, ref, markRaw, reactive, getCurrentScope, onScopeDispose, watch, nextTick, toRefs, defineComponent, onMounted, onUnmounted, createElementBlock, openBlock, normalizeStyle, unref, renderSlot, createVNode, Transition, withCtx, createCommentVNode, createElementVNode, toDisplayString, Fragment, createTextVNode, createStaticVNode, normalizeClass, createBlock, mergeModels, useModel, withDirectives, renderList, vModelSelect, useSlots, onUpdated, provide, onBeforeUnmount, h as h$1, onBeforeUpdate, vShow, vModelDynamic, withModifiers, vModelText, Teleport, pushScopeId, popScopeId, withScopeId, resolveComponent, resolveDynamicComponent, onBeforeMount } from "vue";
2
2
  import { s as setInnerHTML, d as defaults, S as Swiper$1, e as elementChildren, c as createElement, m as makeElementsArray, a as axios } from "./vendor-CuysB-0b.js";
3
3
  /*!
4
4
  * pinia v3.0.4
@@ -95,62 +95,62 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
95
95
  !Ve && !He && ($e.state.value[Be] = {}), ref({});
96
96
  let We;
97
97
  function qe(Ke) {
98
- let Ye;
99
- Ie = Ae = !1, typeof Ke == "function" ? (Ke($e.state.value[Be]), Ye = {
98
+ let Xe;
99
+ Ie = Ae = !1, typeof Ke == "function" ? (Ke($e.state.value[Be]), Xe = {
100
100
  type: MutationType.patchFunction,
101
101
  storeId: Be,
102
102
  events: Fe
103
- }) : (mergeReactiveObjects($e.state.value[Be], Ke), Ye = {
103
+ }) : (mergeReactiveObjects($e.state.value[Be], Ke), Xe = {
104
104
  type: MutationType.patchObject,
105
105
  payload: Ke,
106
106
  storeId: Be,
107
107
  events: Fe
108
108
  });
109
- const Ge = We = Symbol();
109
+ const Ye = We = Symbol();
110
110
  nextTick().then(() => {
111
- We === Ge && (Ie = !0);
112
- }), Ae = !0, triggerSubscriptions(ze, Ye, $e.state.value[Be]);
111
+ We === Ye && (Ie = !0);
112
+ }), Ae = !0, triggerSubscriptions(ze, Xe, $e.state.value[Be]);
113
113
  }
114
114
  const Ue = Ve ? function() {
115
- const { state: Ye } = ke, Ge = Ye ? Ye() : {};
115
+ const { state: Xe } = ke, Ye = Xe ? Xe() : {};
116
116
  this.$patch((ei) => {
117
- assign(ei, Ge);
117
+ assign(ei, Ye);
118
118
  });
119
119
  } : (
120
120
  /* istanbul ignore next */
121
121
  noop
122
122
  );
123
- function Xe() {
123
+ function Ge() {
124
124
  De.stop(), ze.clear(), je.clear(), $e._s.delete(Be);
125
125
  }
126
- const Je = (Ke, Ye = "") => {
126
+ const Je = (Ke, Xe = "") => {
127
127
  if (ACTION_MARKER in Ke)
128
- return Ke[ACTION_NAME] = Ye, Ke;
129
- const Ge = function() {
128
+ return Ke[ACTION_NAME] = Xe, Ke;
129
+ const Ye = function() {
130
130
  setActivePinia($e);
131
- const ei = Array.from(arguments), oi = /* @__PURE__ */ new Set(), ni = /* @__PURE__ */ new Set();
131
+ const ei = Array.from(arguments), ti = /* @__PURE__ */ new Set(), ni = /* @__PURE__ */ new Set();
132
132
  function ri(li) {
133
- oi.add(li);
133
+ ti.add(li);
134
134
  }
135
- function si(li) {
135
+ function ai(li) {
136
136
  ni.add(li);
137
137
  }
138
138
  triggerSubscriptions(je, {
139
139
  args: ei,
140
- name: Ge[ACTION_NAME],
140
+ name: Ye[ACTION_NAME],
141
141
  store: Qe,
142
142
  after: ri,
143
- onError: si
143
+ onError: ai
144
144
  });
145
- let ai;
145
+ let si;
146
146
  try {
147
- ai = Ke.apply(this && this.$id === Be ? this : Qe, ei);
147
+ si = Ke.apply(this && this.$id === Be ? this : Qe, ei);
148
148
  } catch (li) {
149
149
  throw triggerSubscriptions(ni, li), li;
150
150
  }
151
- return ai instanceof Promise ? ai.then((li) => (triggerSubscriptions(oi, li), li)).catch((li) => (triggerSubscriptions(ni, li), Promise.reject(li))) : (triggerSubscriptions(oi, ai), ai);
151
+ return si instanceof Promise ? si.then((li) => (triggerSubscriptions(ti, li), li)).catch((li) => (triggerSubscriptions(ni, li), Promise.reject(li))) : (triggerSubscriptions(ti, si), si);
152
152
  };
153
- return Ge[ACTION_MARKER] = !0, Ge[ACTION_NAME] = Ye, Ge;
153
+ return Ye[ACTION_MARKER] = !0, Ye[ACTION_NAME] = Xe, Ye;
154
154
  }, Ze = {
155
155
  _p: $e,
156
156
  // _s: scope,
@@ -158,34 +158,34 @@ function createSetupStore(Be, _e, ke = {}, $e, Ne, Ve) {
158
158
  $onAction: addSubscription.bind(null, je),
159
159
  $patch: qe,
160
160
  $reset: Ue,
161
- $subscribe(Ke, Ye = {}) {
162
- const Ge = addSubscription(ze, Ke, Ye.detached, () => ei()), ei = De.run(() => watch(() => $e.state.value[Be], (oi) => {
163
- (Ye.flush === "sync" ? Ae : Ie) && Ke({
161
+ $subscribe(Ke, Xe = {}) {
162
+ const Ye = addSubscription(ze, Ke, Xe.detached, () => ei()), ei = De.run(() => watch(() => $e.state.value[Be], (ti) => {
163
+ (Xe.flush === "sync" ? Ae : Ie) && Ke({
164
164
  storeId: Be,
165
165
  type: MutationType.direct,
166
166
  events: Fe
167
- }, oi);
168
- }, assign({}, Re, Ye)));
169
- return Ge;
167
+ }, ti);
168
+ }, assign({}, Re, Xe)));
169
+ return Ye;
170
170
  },
171
- $dispose: Xe
171
+ $dispose: Ge
172
172
  }, Qe = reactive(Ze);
173
173
  $e._s.set(Be, Qe);
174
- const ti = ($e._a && $e._a.runWithContext || fallbackRunWithContext)(() => $e._e.run(() => (De = effectScope()).run(() => _e({ action: Je }))));
175
- for (const Ke in ti) {
176
- const Ye = ti[Ke];
177
- if (isRef(Ye) && !isComputed(Ye) || isReactive(Ye))
178
- Ve || (He && shouldHydrate(Ye) && (isRef(Ye) ? Ye.value = He[Ke] : mergeReactiveObjects(Ye, He[Ke])), $e.state.value[Be][Ke] = Ye);
179
- else if (typeof Ye == "function") {
180
- const Ge = Je(Ye, Ke);
181
- ti[Ke] = Ge, Le.actions[Ke] = Ye;
174
+ const ii = ($e._a && $e._a.runWithContext || fallbackRunWithContext)(() => $e._e.run(() => (De = effectScope()).run(() => _e({ action: Je }))));
175
+ for (const Ke in ii) {
176
+ const Xe = ii[Ke];
177
+ if (isRef(Xe) && !isComputed(Xe) || isReactive(Xe))
178
+ Ve || (He && shouldHydrate(Xe) && (isRef(Xe) ? Xe.value = He[Ke] : mergeReactiveObjects(Xe, He[Ke])), $e.state.value[Be][Ke] = Xe);
179
+ else if (typeof Xe == "function") {
180
+ const Ye = Je(Xe, Ke);
181
+ ii[Ke] = Ye, Le.actions[Ke] = Xe;
182
182
  }
183
183
  }
184
- return assign(Qe, ti), assign(toRaw(Qe), ti), Object.defineProperty(Qe, "$state", {
184
+ return assign(Qe, ii), assign(toRaw(Qe), ii), Object.defineProperty(Qe, "$state", {
185
185
  get: () => $e.state.value[Be],
186
186
  set: (Ke) => {
187
- qe((Ye) => {
188
- assign(Ye, Ke);
187
+ qe((Xe) => {
188
+ assign(Xe, Ke);
189
189
  });
190
190
  }
191
191
  }), $e._p.forEach((Ke) => {
@@ -227,10 +227,10 @@ function storeToRefs(Be) {
227
227
  return ke;
228
228
  }
229
229
  const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
230
- var We, qe, Ue, Xe, Je, Ze, Qe, ii;
231
- const Be = ref(), _e = ref("1"), ke = ref(), $e = ref(), Ne = (ti) => {
232
- var Ke, Ye, Ge;
233
- return ((Ge = (Ye = (Ke = ke.value) == null ? void 0 : Ke.meta) == null ? void 0 : Ye.find((ei) => (ei == null ? void 0 : ei.meta_key) === ti)) == null ? void 0 : Ge.meta_value) || "";
230
+ var qe, Ue, Ge, Je, Ze, Qe, oi, ii;
231
+ const Be = ref(), _e = ref("1"), ke = ref(), $e = ref(), Ne = (Ke) => {
232
+ var Xe, Ye, ei;
233
+ return ((ei = (Ye = (Xe = ke.value) == null ? void 0 : Xe.meta) == null ? void 0 : Ye.find((ti) => (ti == null ? void 0 : ti.meta_key) === Ke)) == null ? void 0 : ei.meta_value) || null;
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)",
@@ -241,24 +241,24 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
241
241
  PREVIEW_STROKE_WIDTH: +Ne("stroke_width") || 1,
242
242
  PREVIEW_BORDER_RADIUS: +Ne("border_radius") || 0
243
243
  }), De = reactive({
244
- path: (We = Ve.value) == null ? void 0 : We.PREVIEW_PATH_COLOR,
245
- path_hover: (qe = Ve.value) == null ? void 0 : qe.PREVIEW_PATH_HOVER_COLOR,
246
- reserved: (Ue = Ve.value) == null ? void 0 : Ue.PREVIEW_RESERVED_COLOR,
247
- sold: (Xe = Ve.value) == null ? void 0 : Xe.PREVIEW_SOLD_COLOR,
248
- stroke_color: (Je = Ve.value) == null ? void 0 : Je.PREVIEW_STROKE_COLOR,
249
- primary_color: (Ze = Ve.value) == null ? void 0 : Ze.PREVIEW_PRIMARY_COLOR,
250
- stroke_width: (Qe = Ve.value) == null ? void 0 : Qe.PREVIEW_STROKE_WIDTH,
244
+ path: (qe = Ve.value) == null ? void 0 : qe.PREVIEW_PATH_COLOR,
245
+ path_hover: (Ue = Ve.value) == null ? void 0 : Ue.PREVIEW_PATH_HOVER_COLOR,
246
+ reserved: (Ge = Ve.value) == null ? void 0 : Ge.PREVIEW_RESERVED_COLOR,
247
+ sold: (Je = Ve.value) == null ? void 0 : Je.PREVIEW_SOLD_COLOR,
248
+ stroke_color: (Ze = Ve.value) == null ? void 0 : Ze.PREVIEW_STROKE_COLOR,
249
+ primary_color: (Qe = Ve.value) == null ? void 0 : Qe.PREVIEW_PRIMARY_COLOR,
250
+ stroke_width: (oi = Ve.value) == null ? void 0 : oi.PREVIEW_STROKE_WIDTH,
251
251
  border_radius: (ii = Ve.value) == null ? void 0 : ii.PREVIEW_BORDER_RADIUS
252
252
  }), Le = computed$1(() => {
253
- var ti;
254
- return (ti = ke.value) == null ? void 0 : ti.flats.map((Ke) => {
255
- var Ge, ei;
256
- const Ye = Ke != null && Ke.use_type || !(Ke != null && Ke.type) ? ((ei = (Ge = ke.value) == null ? void 0 : Ge.types) == null ? void 0 : ei.find((oi) => oi.id === (Ke == null ? void 0 : Ke.type_id))) ?? (Ke == null ? void 0 : Ke.type) : Ke == null ? void 0 : Ke.type;
257
- return { ...Ke, type: Ye };
253
+ var Ke, Xe;
254
+ return (Xe = (Ke = ke.value) == null ? void 0 : Ke.flats) == null ? void 0 : Xe.map((Ye) => {
255
+ var ti, ni;
256
+ const ei = Ye != null && Ye.use_type || !(Ye != null && Ye.type) ? ((ni = (ti = ke.value) == null ? void 0 : ti.types) == null ? void 0 : ni.find((ri) => ri.id === (Ye == null ? void 0 : Ye.type_id))) ?? (Ye == null ? void 0 : Ye.type) : Ye == null ? void 0 : Ye.type;
257
+ return { ...Ye, type: ei };
258
258
  });
259
259
  }), Re = computed$1(() => Ne("open_reserved_flat") === "true"), Ie = computed$1(() => Ne("open_sold_flat") === "true"), Ae = computed$1(() => Ne("price_rounded") === "true"), ze = computed$1(() => {
260
- var ti;
261
- return (ti = $e.value) == null ? void 0 : ti.translations;
260
+ var Ke;
261
+ return (Ke = $e.value) == null ? void 0 : Ke.translations;
262
262
  }), je = computed$1(() => ({
263
263
  "--reserved-color": De.reserved,
264
264
  "--sold-color": De.sold,
@@ -268,19 +268,34 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
268
268
  "--primary-color": De.primary_color,
269
269
  "--stroke-width": De.stroke_width + "px",
270
270
  "--border-radius": De.border_radius + "px"
271
- })), Fe = (ti) => {
272
- ke.value = ti;
273
- }, He = (ti) => {
274
- $e.value = ti;
271
+ })), Fe = computed$1(() => {
272
+ const Ke = Ne("custom_types");
273
+ return (Array.isArray(Ke) ? Ke : typeof Ke == "string" ? (() => {
274
+ try {
275
+ return JSON.parse(Ke) ?? [];
276
+ } catch {
277
+ return [];
278
+ }
279
+ })() : []).map(
280
+ (Ye) => `.path-color g[conf="${String(Ye.value ?? "").replace(/\\/g, "\\\\").replace(
281
+ /"/g,
282
+ '\\"'
283
+ )}"] path { fill: ${(Ye == null ? void 0 : Ye.type_color) || "var(--path-color)"}; }`
284
+ ).join(`
285
+ `);
286
+ }), He = (Ke) => {
287
+ ke.value = Ke;
288
+ }, We = (Ke) => {
289
+ $e.value = Ke;
275
290
  };
276
291
  return watch(
277
292
  () => {
278
- var ti;
279
- return (ti = ke.value) == null ? void 0 : ti.meta;
293
+ var Ke;
294
+ return (Ke = ke.value) == null ? void 0 : Ke.meta;
280
295
  },
281
296
  () => {
282
- const ti = Ne("path_color"), Ke = Ne("path_hover_color"), Ye = Ne("reserved_color"), Ge = Ne("sold_color"), ei = Ne("stroke_color"), oi = Ne("primary_color"), ni = Ne("stroke_width"), ri = Ne("border_radius");
283
- ti && (De.path = ti.toString()), Ke && (De.path_hover = Ke.toString()), Ye && (De.reserved = Ye.toString()), Ge && (De.sold = Ge.toString()), ei && (De.stroke_color = ei.toString()), ei && (De.stroke_color = ei.toString()), oi && (De.primary_color = oi.toString()), De.stroke_width = Number(ni) || 1, De.border_radius = Number(ri) || 0;
297
+ const Ke = Ne("path_color"), Xe = Ne("path_hover_color"), Ye = Ne("reserved_color"), ei = Ne("sold_color"), ti = Ne("stroke_color"), ni = Ne("primary_color"), ri = Ne("stroke_width"), ai = Ne("border_radius");
298
+ Ke && (De.path = Ke.toString()), Xe && (De.path_hover = Xe.toString()), Ye && (De.reserved = Ye.toString()), ei && (De.sold = ei.toString()), ti && (De.stroke_color = ti.toString()), ti && (De.stroke_color = ti.toString()), ni && (De.primary_color = ni.toString()), De.stroke_width = Number(ri) || 1, De.border_radius = Number(ai) || 0;
284
299
  },
285
300
  { deep: !0 }
286
301
  ), {
@@ -297,18 +312,31 @@ const useGlobalStore = /* @__PURE__ */ defineStore("global", () => {
297
312
  priceRounded: Ae,
298
313
  translations: ze,
299
314
  cssVariables: je,
315
+ customTypesPathCss: Fe,
300
316
  // Mutation
301
- setData: Fe,
302
- setIrePlaginWp: He
317
+ setData: He,
318
+ setIrePlaginWp: We
303
319
  };
304
320
  }), _sfc_main$L = /* @__PURE__ */ defineComponent({
305
321
  __name: "ShortcodeWrapper",
306
322
  setup(Be) {
307
- const _e = useGlobalStore(), { cssVariables: ke } = storeToRefs(_e);
308
- return ($e, Ne) => (openBlock(), createElementBlock("div", {
323
+ const _e = useGlobalStore(), { cssVariables: ke, customTypesPathCss: $e } = storeToRefs(_e), Ne = ref(null), Ve = document.createElement("style");
324
+ return watch(
325
+ $e,
326
+ (De) => {
327
+ Ve.textContent = De ?? "";
328
+ },
329
+ { immediate: !0 }
330
+ ), onMounted(() => {
331
+ Ne.value && Ne.value.appendChild(Ve);
332
+ }), onUnmounted(() => {
333
+ Ve.remove();
334
+ }), (De, Le) => (openBlock(), createElementBlock("div", {
335
+ ref_key: "wrapperRef",
336
+ ref: Ne,
309
337
  style: normalizeStyle(unref(ke))
310
338
  }, [
311
- renderSlot($e.$slots, "default")
339
+ renderSlot(De.$slots, "default")
312
340
  ], 4));
313
341
  }
314
342
  });
@@ -556,7 +584,7 @@ const tr = (Be) => {
556
584
  { title: "🇬🇪 GEL", value: "gel", symbol: "₾" }
557
585
  // Georgia
558
586
  ], ke = ((Ve = (Ne = ($e = useGlobalStore().shortcodeData) == null ? void 0 : $e.meta) == null ? void 0 : Ne.find((Le) => Le.meta_key === "currency")) == null ? void 0 : Ve.meta_value.toString()) || "usd";
559
- return ((De = Be.find((Le) => Le.value === ke)) == null ? void 0 : De.symbol) || "$";
587
+ return ((De = Be == null ? void 0 : Be.find((Le) => Le.value === ke)) == null ? void 0 : De.symbol) || "$";
560
588
  }, getPrice = (Be) => {
561
589
  const _e = useGlobalStore(), ke = _e.priceRounded ? 0 : 2;
562
590
  let $e = Number(Be).toLocaleString("en-US", {
@@ -601,10 +629,13 @@ const tr = (Be) => {
601
629
  }, getNested = (Be, _e) => {
602
630
  var ke;
603
631
  return (ke = _e == null ? void 0 : _e.split(".")) == null ? void 0 : ke.reduce(($e, Ne) => $e ? $e[Ne] : void 0, Be);
632
+ }, getConfValue = (Be) => {
633
+ const ke = useGlobalStore().getMetaValue("custom_types"), $e = ke == null ? void 0 : ke.find((Ne) => Ne.title === Be);
634
+ return $e ? $e.value : Be;
604
635
  }, _hoisted_1$G = {
605
636
  key: 0,
606
637
  class: "irep-tooltip-1 ire-pointer-events-none ire-absolute !ire-bottom-10 !ire-right-10 ire-w-fit ire-select-none ire-rounded-lg ire-border ire-bg-white ire-p-4 ire-text-black"
607
- }, _hoisted_2$m = {
638
+ }, _hoisted_2$n = {
608
639
  key: 0,
609
640
  class: "irep-tooltip-1__floor ire-flex ire-items-center ire-gap-3"
610
641
  }, _hoisted_3$k = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$f = { class: "irep-tooltip-1__floor-number !ire-text-2xl" }, _hoisted_5$b = { class: "irep-tooltip-1__floor-text !ire-text-sm ire-uppercase" }, _hoisted_6$9 = {
@@ -651,10 +682,10 @@ const tr = (Be) => {
651
682
  return ($e, Ne) => (openBlock(), createElementBlock("div", null, [
652
683
  createVNode(Transition, { name: "ire-fade-in-out" }, {
653
684
  default: withCtx(() => {
654
- var Ve, De, Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Xe, Je, Ze, Qe, ii, ti, Ke, Ye, Ge, ei, oi, ni;
685
+ var Ve, De, Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ge, Je, Ze, Qe, oi, ii, Ke, Xe, Ye, ei, ti, ni;
655
686
  return [
656
687
  Be.type && Be.hoveredData && Be.type !== "tooltip" ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
657
- Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$m, [
688
+ Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$n, [
658
689
  createElementVNode("div", _hoisted_3$k, [
659
690
  createElementVNode("div", _hoisted_4$f, toDisplayString((Ve = Be.hoveredData) == null ? void 0 : Ve.floor_number), 1),
660
691
  createElementVNode("div", _hoisted_5$b, toDisplayString(unref(tr)("floor")), 1)
@@ -669,7 +700,7 @@ const tr = (Be) => {
669
700
  createElementVNode("div", _hoisted_13$3, toDisplayString((qe = (We = Be.hoveredData) == null ? void 0 : We.counts) == null ? void 0 : qe.reserved), 1),
670
701
  createElementVNode("div", _hoisted_14$2, toDisplayString(unref(tr)("reserved")), 1)
671
702
  ])) : createCommentVNode("", !0),
672
- (Xe = (Ue = Be.hoveredData) == null ? void 0 : Ue.counts) != null && Xe.sold ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
703
+ (Ge = (Ue = Be.hoveredData) == null ? void 0 : Ue.counts) != null && Ge.sold ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
673
704
  createElementVNode("div", _hoisted_16$2, toDisplayString((Ze = (Je = Be.hoveredData) == null ? void 0 : Je.counts) == null ? void 0 : Ze.sold), 1),
674
705
  createElementVNode("div", _hoisted_17$1, toDisplayString(unref(tr)("sold")), 1)
675
706
  ])) : createCommentVNode("", !0)
@@ -682,17 +713,17 @@ const tr = (Be) => {
682
713
  ])
683
714
  ])) : Be.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_22$1, [
684
715
  createElementVNode("div", _hoisted_23$1, [
685
- createElementVNode("div", _hoisted_24$1, toDisplayString((ii = Be.hoveredData) == null ? void 0 : ii.flat_number), 1),
716
+ createElementVNode("div", _hoisted_24$1, toDisplayString((oi = Be.hoveredData) == null ? void 0 : oi.flat_number), 1),
686
717
  createElementVNode("div", _hoisted_25$1, toDisplayString(unref(tr)("apartment")), 1)
687
718
  ]),
688
719
  createElementVNode("div", _hoisted_26$1, [
689
720
  ke.value ? (openBlock(), createElementBlock("div", _hoisted_27$1, toDisplayString(ke.value), 1)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
690
721
  createElementVNode("div", _hoisted_28$1, toDisplayString(unref(tr)("price")), 1),
691
- (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, [
722
+ (ii = Be.hoveredData) != null && ii.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, [
692
723
  createElementVNode("div", null, [
693
- (Ye = Be.hoveredData) != null && Ye.offer_price ? (openBlock(), createElementBlock("div", _hoisted_32$1, [
724
+ (Xe = Be.hoveredData) != null && Xe.offer_price ? (openBlock(), createElementBlock("div", _hoisted_32$1, [
694
725
  createElementVNode("div", _hoisted_33$1, [
695
- createTextVNode(toDisplayString(unref(getPrice)((Ge = Be.hoveredData) == null ? void 0 : Ge.price)) + " ", 1),
726
+ createTextVNode(toDisplayString(unref(getPrice)((Ye = Be.hoveredData) == null ? void 0 : Ye.price)) + " ", 1),
696
727
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
697
728
  ]),
698
729
  createElementVNode("div", _hoisted_34$1, [
@@ -708,7 +739,7 @@ const tr = (Be) => {
708
739
  ], 64))
709
740
  ]),
710
741
  createElementVNode("div", _hoisted_35$1, [
711
- createElementVNode("div", _hoisted_36$1, toDisplayString(unref(getArea)(+((ni = (oi = Be.hoveredData) == null ? void 0 : oi.type) == null ? void 0 : ni.area_m2))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + "² ", 1)
742
+ createElementVNode("div", _hoisted_36$1, toDisplayString(unref(getArea)(+((ni = (ti = Be.hoveredData) == null ? void 0 : ti.type) == null ? void 0 : ni.area_m2))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + "² ", 1)
712
743
  ])
713
744
  ])) : createCommentVNode("", !0)
714
745
  ])) : createCommentVNode("", !0)
@@ -790,7 +821,7 @@ function _sfc_render$f(Be, _e) {
790
821
  const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_render$f]]), _hoisted_1$C = {
791
822
  key: 0,
792
823
  class: "irep-tooltip-2__floor ire-flex ire-flex-col ire-items-center !ire-text-sm"
793
- }, _hoisted_2$l = { class: "ire-flex ire-w-full ire-items-center ire-justify-evenly ire-p-4" }, _hoisted_3$j = { class: "irep-tooltip-2__floor-number ire-text-3xl ire-capitalize" }, _hoisted_4$e = {
824
+ }, _hoisted_2$m = { class: "ire-flex ire-w-full ire-items-center ire-justify-evenly ire-p-4" }, _hoisted_3$j = { class: "irep-tooltip-2__floor-number ire-text-3xl ire-capitalize" }, _hoisted_4$e = {
794
825
  key: 0,
795
826
  class: "irep-tooltip-2__floor-conf ire-text-2xl ire-uppercase"
796
827
  }, _hoisted_5$a = { key: 1 }, _hoisted_6$8 = { class: "irep-tooltip-2__floor-starting ire-text-sm ire-text-gray-400" }, _hoisted_7$6 = { class: "irep-tooltip-2__floor-price" }, _hoisted_8$4 = { class: "ire-right-[2px] ire-text-gray-200" }, _hoisted_9$3 = { class: "ire-flex ire-items-center ire-justify-between ire-gap-2 ire-bg-gray-800 ire-p-2" }, _hoisted_10$3 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_11$3 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_12$3 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_13$2 = {
@@ -827,7 +858,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
827
858
  return tr((Ve = _e.hoveredData) == null ? void 0 : Ve.conf);
828
859
  });
829
860
  return (Ve, De) => {
830
- var Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Xe, Je, Ze, Qe, ii, ti, Ke, Ye, Ge, ei, oi, ni, ri, si, ai, li, ci, di, fi, ui, hi;
861
+ var Le, Re, Ie, Ae, ze, je, Fe, He, We, qe, Ue, Ge, Je, Ze, Qe, oi, ii, Ke, Xe, Ye, ei, ti, ni, ri, ai, si, li, hi, di, fi, ui, ci;
831
862
  return Be.type && Be.hoveredData && Be.type !== "tooltip" ? (openBlock(), createElementBlock("div", {
832
863
  key: 0,
833
864
  class: normalizeClass(["ire-pointer-events-none ire-absolute ire-select-none", {
@@ -844,7 +875,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
844
875
  class: normalizeClass(["irep-tooltip irep-tooltip-2 ire-flex ire-origin-top ire-items-center ire-justify-center ire-bg-black ire-text-white ire-transition-transform ire-duration-500 ire-ease-in-out", { "": Be.mouseTrack }])
845
876
  }, [
846
877
  Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
847
- createElementVNode("div", _hoisted_2$l, [
878
+ createElementVNode("div", _hoisted_2$m, [
848
879
  createElementVNode("div", _hoisted_3$j, toDisplayString((Le = Be.hoveredData) == null ? void 0 : Le.floor_number), 1),
849
880
  De[0] || (De[0] = createElementVNode("span", null, "|", -1)),
850
881
  Ne.value ? (openBlock(), createElementBlock("div", _hoisted_4$e, toDisplayString(Ne.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_5$a, [
@@ -867,7 +898,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
867
898
  ]),
868
899
  De[2] || (De[2] = createElementVNode("span", null, "•", -1)),
869
900
  createElementVNode("div", _hoisted_12$3, [
870
- createElementVNode("span", null, toDisplayString(Ne.value === "reserved" ? ((Ue = (qe = Be.hoveredData) == null ? void 0 : qe.flats) == null ? void 0 : Ue.length) || 0 : ((Je = (Xe = Be.hoveredData) == null ? void 0 : Xe.counts) == null ? void 0 : Je.reserved) || 0), 1),
901
+ createElementVNode("span", null, toDisplayString(Ne.value === "reserved" ? ((Ue = (qe = Be.hoveredData) == null ? void 0 : qe.flats) == null ? void 0 : Ue.length) || 0 : ((Je = (Ge = Be.hoveredData) == null ? void 0 : Ge.counts) == null ? void 0 : Je.reserved) || 0), 1),
871
902
  createTextVNode(" " + toDisplayString(unref(tr)("reserved")), 1)
872
903
  ])
873
904
  ])
@@ -884,35 +915,35 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
884
915
  createElementVNode("div", _hoisted_22, [
885
916
  createVNode(MoneyBag, { class: "ire-size-5 [&_path]:ire-stroke-white" })
886
917
  ]),
887
- Ne.value ? (openBlock(), createElementBlock("div", _hoisted_23, toDisplayString(Ne.value), 1)) : (ii = Be.hoveredData) != null && ii.request_price ? (openBlock(), createElementBlock("div", _hoisted_24, toDisplayString(unref(tr)("Request Price")), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
918
+ Ne.value ? (openBlock(), createElementBlock("div", _hoisted_23, toDisplayString(Ne.value), 1)) : (oi = Be.hoveredData) != null && oi.request_price ? (openBlock(), createElementBlock("div", _hoisted_24, toDisplayString(unref(tr)("Request Price")), 1)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
888
919
  Be.hoveredData.offer_price ? (openBlock(), createElementBlock("div", _hoisted_25, [
889
920
  createElementVNode("div", _hoisted_26, [
890
- createTextVNode(toDisplayString(unref(getPrice)(+((ti = Be.hoveredData) == null ? void 0 : ti.price))) + " ", 1),
921
+ createTextVNode(toDisplayString(unref(getPrice)(+((ii = Be.hoveredData) == null ? void 0 : ii.price))) + " ", 1),
891
922
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
892
923
  ]),
893
924
  createElementVNode("div", _hoisted_27, [
894
925
  createTextVNode(toDisplayString(unref(getPrice)(+((Ke = Be.hoveredData) == null ? void 0 : Ke.offer_price))) + " ", 1),
895
926
  createElementVNode("span", _hoisted_28, toDisplayString(unref(currencySymbol)()), 1)
896
927
  ])
897
- ])) : (Ye = Be.hoveredData) != null && Ye.price ? (openBlock(), createElementBlock("div", _hoisted_29, [
898
- createTextVNode(toDisplayString(unref(getPrice)(+((Ge = Be.hoveredData) == null ? void 0 : Ge.price))) + " ", 1),
928
+ ])) : (Xe = Be.hoveredData) != null && Xe.price ? (openBlock(), createElementBlock("div", _hoisted_29, [
929
+ createTextVNode(toDisplayString(unref(getPrice)(+((Ye = Be.hoveredData) == null ? void 0 : Ye.price))) + " ", 1),
899
930
  createElementVNode("span", _hoisted_30, toDisplayString(unref(currencySymbol)()), 1)
900
931
  ])) : createCommentVNode("", !0)
901
932
  ], 64))
902
933
  ]),
903
- unref(getArea)(+((oi = (ei = Be.hoveredData) == null ? void 0 : ei.type) == null ? void 0 : oi.area_m2)) && +unref(getArea)(+((ri = (ni = Be.hoveredData) == null ? void 0 : ni.type) == null ? void 0 : ri.area_m2)) > 0 ? (openBlock(), createElementBlock("div", _hoisted_31, [
934
+ unref(getArea)(+((ti = (ei = Be.hoveredData) == null ? void 0 : ei.type) == null ? void 0 : ti.area_m2)) && +unref(getArea)(+((ri = (ni = Be.hoveredData) == null ? void 0 : ni.type) == null ? void 0 : ri.area_m2)) > 0 ? (openBlock(), createElementBlock("div", _hoisted_31, [
904
935
  createElementVNode("div", _hoisted_32, [
905
936
  createVNode(FlatIcon, { class: "ire-size-5 [&_path]:ire-stroke-white" })
906
937
  ]),
907
938
  createElementVNode("div", _hoisted_33, [
908
- 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)
939
+ createElementVNode("span", _hoisted_34, toDisplayString(unref(getArea)(+((si = (ai = Be.hoveredData) == null ? void 0 : ai.type) == null ? void 0 : si.area_m2))) + " " + toDisplayString(unref(getAreaUnitLabel)()) + "² ", 1)
909
940
  ])
910
941
  ])) : createCommentVNode("", !0),
911
- (ci = (li = Be.hoveredData) == null ? void 0 : li.type) != null && ci.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_35, [
942
+ (hi = (li = Be.hoveredData) == null ? void 0 : li.type) != null && hi.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_35, [
912
943
  createElementVNode("div", _hoisted_36, [
913
944
  createVNode(Cube3d, { class: "ire-size-5 [&_path]:ire-stroke-white" })
914
945
  ]),
915
- (fi = (di = Be.hoveredData) == null ? void 0 : di.type) != null && fi.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_37, toDisplayString(unref(tr)("room")) + ": " + toDisplayString((hi = (ui = Be.hoveredData) == null ? void 0 : ui.type) == null ? void 0 : hi.rooms_count), 1)) : createCommentVNode("", !0)
946
+ (fi = (di = Be.hoveredData) == null ? void 0 : di.type) != null && fi.rooms_count ? (openBlock(), createElementBlock("div", _hoisted_37, toDisplayString(unref(tr)("room")) + ": " + toDisplayString((ci = (ui = Be.hoveredData) == null ? void 0 : ui.type) == null ? void 0 : ci.rooms_count), 1)) : createCommentVNode("", !0)
916
947
  ])) : createCommentVNode("", !0)
917
948
  ])
918
949
  ])
@@ -921,7 +952,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
921
952
  ], 6)) : createCommentVNode("", !0);
922
953
  };
923
954
  }
924
- }), _hoisted_1$B = { class: "irep-tooltip irep-tooltip-3 ire-flex ire-w-fit ire-origin-top ire-items-center ire-justify-center ire-rounded-2xl ire-border ire-bg-white ire-p-4 ire-transition-transform ire-duration-500 ire-ease-in-out" }, _hoisted_2$k = {
955
+ }), _hoisted_1$B = { class: "irep-tooltip irep-tooltip-3 ire-flex ire-w-fit ire-origin-top ire-items-center ire-justify-center ire-rounded-2xl ire-border ire-bg-white ire-p-4 ire-transition-transform ire-duration-500 ire-ease-in-out" }, _hoisted_2$l = {
925
956
  key: 0,
926
957
  class: "irep-tooltip-3__floor ire-flex ire-flex-col ire-items-center ire-gap-3"
927
958
  }, _hoisted_3$i = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$d = { class: "irep-tooltip-3__floor-number !ire-text-2xl" }, _hoisted_5$9 = { class: "irep-tooltip-3__floor-text !ire-text-sm ire-uppercase" }, _hoisted_6$7 = {
@@ -948,7 +979,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
948
979
  })
949
980
  }, [
950
981
  createElementVNode("div", _hoisted_1$B, [
951
- Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$k, [
982
+ Be.type === "floor" ? (openBlock(), createElementBlock("div", _hoisted_2$l, [
952
983
  createElementVNode("div", _hoisted_3$i, [
953
984
  createElementVNode("div", _hoisted_4$d, toDisplayString((Ve = Be.hoveredData) == null ? void 0 : Ve.floor_number), 1),
954
985
  createElementVNode("div", _hoisted_5$9, toDisplayString(unref(tr)("floor")), 1)
@@ -968,6 +999,9 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
968
999
  };
969
1000
  }
970
1001
  }), _hoisted_1$A = {
1002
+ ref: "canvasRef",
1003
+ class: "ire-group ire-relative ire-overflow-hidden ire-pt-3"
1004
+ }, _hoisted_2$k = {
971
1005
  key: 0,
972
1006
  class: "py-2 ire-mb-3 ire-flex ire-h-fit ire-items-center ire-justify-between ire-px-4"
973
1007
  }, _sfc_main$E = /* @__PURE__ */ defineComponent({
@@ -977,43 +1011,39 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
977
1011
  type: {}
978
1012
  },
979
1013
  setup(Be) {
980
- const _e = useGlobalStore(), { getMetaValue: ke } = _e, $e = inject("showFlatModal"), Ne = ref(), Ve = ref(!0), De = computed$1(() => ke("tooltip") || "1");
1014
+ const _e = useGlobalStore(), { getMetaValue: ke } = _e, $e = inject("showFlatModal"), Ne = ref(!0), Ve = computed$1(() => ke("tooltip") || "1");
981
1015
  return watch(
982
1016
  () => $e == null ? void 0 : $e.value,
983
1017
  () => {
984
- $e != null && $e.value ? Ve.value = !1 : setTimeout(() => {
985
- Ve.value = !0;
1018
+ $e != null && $e.value ? Ne.value = !1 : setTimeout(() => {
1019
+ Ne.value = !0;
986
1020
  }, 400);
987
1021
  }
988
- ), (Le, Re) => (openBlock(), createElementBlock("div", {
989
- ref_key: "canvasRef",
990
- ref: Ne,
991
- class: "ire-group ire-relative ire-overflow-hidden ire-pt-3"
992
- }, [
993
- Le.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_1$A, [
994
- renderSlot(Le.$slots, "header")
1022
+ ), (De, Le) => (openBlock(), createElementBlock("div", _hoisted_1$A, [
1023
+ De.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_2$k, [
1024
+ renderSlot(De.$slots, "header")
995
1025
  ])) : createCommentVNode("", !0),
996
- renderSlot(Le.$slots, "default"),
1026
+ renderSlot(De.$slots, "default"),
997
1027
  createVNode(Transition, { name: "ire-fade-in-out" }, {
998
1028
  default: withCtx(() => [
999
- Ve.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1000
- De.value === "1" ? (openBlock(), createBlock(_sfc_main$K, {
1029
+ Ne.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1030
+ Ve.value === "1" ? (openBlock(), createBlock(_sfc_main$K, {
1001
1031
  key: 0,
1002
1032
  "hovered-data": Be.hoverdData,
1003
1033
  type: Be.type || "",
1004
1034
  class: "ire-hidden lg:ire-block"
1005
- }, null, 8, ["hovered-data", "type"])) : De.value === "2" ? (openBlock(), createBlock(_sfc_main$G, {
1035
+ }, null, 8, ["hovered-data", "type"])) : Ve.value === "2" ? (openBlock(), createBlock(_sfc_main$G, {
1006
1036
  key: 1,
1007
1037
  "hovered-data": Be.hoverdData,
1008
1038
  type: Be.type || "",
1009
1039
  "mouse-track": !0,
1010
1040
  class: "ire-hidden lg:ire-flex [&_.irep-tooltip]:group-active:!ire-scale-110"
1011
- }, null, 8, ["hovered-data", "type"])) : De.value === "3" ? (openBlock(), createBlock(_sfc_main$G, {
1041
+ }, null, 8, ["hovered-data", "type"])) : Ve.value === "3" ? (openBlock(), createBlock(_sfc_main$G, {
1012
1042
  key: 2,
1013
1043
  "hovered-data": Be.hoverdData,
1014
1044
  type: Be.type || "",
1015
1045
  class: "ire-hidden lg:ire-flex"
1016
- }, null, 8, ["hovered-data", "type"])) : De.value === "4" ? (openBlock(), createBlock(_sfc_main$F, {
1046
+ }, null, 8, ["hovered-data", "type"])) : Ve.value === "4" ? (openBlock(), createBlock(_sfc_main$F, {
1017
1047
  key: 3,
1018
1048
  "hovered-data": Be.hoverdData,
1019
1049
  type: Be.type || "",
@@ -1046,30 +1076,35 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
1046
1076
  }, He = () => {
1047
1077
  var Ue;
1048
1078
  if (!Re.value) return;
1049
- ((Ue = Re.value) == null ? void 0 : Ue.querySelectorAll("g")).forEach((Xe) => {
1050
- var ii, ti, Ke, Ye, Ge;
1051
- const Je = Xe == null ? void 0 : Xe.getAttribute("id"), Ze = (ti = (ii = $e.project) == null ? void 0 : ii.polygon_data) == null ? void 0 : ti.find(
1052
- (ei) => (ei == null ? void 0 : ei.key) === Je
1079
+ ((Ue = Re.value) == null ? void 0 : Ue.querySelectorAll("g")).forEach((Ge) => {
1080
+ var ii, Ke, Xe, Ye, ei;
1081
+ const Je = Ge == null ? void 0 : Ge.getAttribute("id"), Ze = (Ke = (ii = $e.project) == null ? void 0 : ii.polygon_data) == null ? void 0 : Ke.find(
1082
+ (ti) => (ti == null ? void 0 : ti.key) === Je
1053
1083
  ), Qe = Ze == null ? void 0 : Ze.id;
1084
+ let oi = "";
1054
1085
  switch (Ze == null ? void 0 : Ze.type) {
1055
- case "block":
1056
- const ei = (Ke = $e.blocks) == null ? void 0 : Ke.find((ri) => ri.id === Qe);
1057
- Xe.setAttribute("conf", (ei == null ? void 0 : ei.conf) || "");
1086
+ case "block": {
1087
+ const ti = (Xe = $e.blocks) == null ? void 0 : Xe.find((ni) => ni.id === Qe);
1088
+ oi = getConfValue((ti == null ? void 0 : ti.conf) || "");
1058
1089
  break;
1059
- case "floor":
1060
- const oi = (Ye = $e.floors) == null ? void 0 : Ye.find((ri) => ri.id === Qe);
1061
- Xe.setAttribute("conf", (oi == null ? void 0 : oi.conf) || "");
1090
+ }
1091
+ case "floor": {
1092
+ const ti = (Ye = $e.floors) == null ? void 0 : Ye.find((ni) => ni.id === Qe);
1093
+ oi = getConfValue((ti == null ? void 0 : ti.conf) || "");
1062
1094
  break;
1063
- case "flat":
1064
- const ni = (Ge = $e.flats) == null ? void 0 : Ge.find((ri) => ri.id === Qe);
1065
- Xe.setAttribute("conf", (ni == null ? void 0 : ni.conf) || "");
1095
+ }
1096
+ case "flat": {
1097
+ const ti = (ei = $e.flats) == null ? void 0 : ei.find((ni) => ni.id === Qe);
1098
+ oi = getConfValue((ti == null ? void 0 : ti.conf) || "");
1066
1099
  break;
1100
+ }
1067
1101
  }
1102
+ Ge.setAttribute("conf", oi || "");
1068
1103
  });
1069
1104
  }, We = (qe) => {
1070
- var Xe, Je, Ze;
1105
+ var Ge, Je, Ze;
1071
1106
  const Ue = qe.target;
1072
- (Ue == null ? void 0 : Ue.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", ((Ze = ze.value) == null ? void 0 : Ze.type) || "", Ae == null ? void 0 : Ae.value));
1107
+ (Ue == null ? void 0 : Ue.nodeName) === "path" && (((Ge = Ae.value) == null ? void 0 : Ge.conf) === "reserved" && !De.value || ((Je = Ae.value) == null ? void 0 : Je.conf) === "sold" && !Le.value || ke("changeComponent", ((Ze = ze.value) == null ? void 0 : Ze.type) || "", Ae == null ? void 0 : Ae.value));
1073
1108
  };
1074
1109
  return watch(
1075
1110
  () => Ne == null ? void 0 : Ne.value,
@@ -1079,38 +1114,38 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
1079
1114
  ), watch(
1080
1115
  () => Ie.value,
1081
1116
  (qe) => {
1082
- var Xe, Je, Ze, Qe, ii, ti, Ke;
1117
+ var Ge, Je, Ze, Qe, oi, ii, Ke, Xe;
1083
1118
  if (!qe) return;
1084
1119
  Ve.hoverdSvg = qe;
1085
1120
  const Ue = qe.parentElement;
1086
1121
  if (Ue && (Ue == null ? void 0 : Ue.nodeName) === "g") {
1087
1122
  const Ye = Ue == null ? void 0 : Ue.getAttribute("id");
1088
- 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;
1089
- const Ge = (Je = ze.value) == null ? void 0 : Je.id;
1090
- switch ((Ze = ze.value) == null ? void 0 : Ze.type) {
1123
+ if (!Ye || (ze.value = ((Je = (Ge = $e.project) == null ? void 0 : Ge.polygon_data) == null ? void 0 : Je.find((ti) => (ti == null ? void 0 : ti.key) === Ye)) || null, !ze.value)) return;
1124
+ const ei = (Ze = ze.value) == null ? void 0 : Ze.id;
1125
+ switch ((Qe = ze.value) == null ? void 0 : Qe.type) {
1091
1126
  case "floor":
1092
- const ei = (Qe = $e.floors) == null ? void 0 : Qe.find(
1093
- (si) => si.id === Ge
1127
+ const ti = (oi = $e.floors) == null ? void 0 : oi.find(
1128
+ (si) => si.id === ei
1094
1129
  );
1095
- Ae.value = ei;
1130
+ Ae.value = ti;
1096
1131
  break;
1097
1132
  case "block":
1098
- const oi = (ii = $e.blocks) == null ? void 0 : ii.find(
1099
- (si) => (si == null ? void 0 : si.id) === Ge
1133
+ const ni = (ii = $e.blocks) == null ? void 0 : ii.find(
1134
+ (si) => (si == null ? void 0 : si.id) === ei
1100
1135
  );
1101
- Ae.value = oi;
1136
+ Ae.value = ni;
1102
1137
  break;
1103
1138
  case "flat":
1104
- const ni = (ti = $e.flats) == null ? void 0 : ti.find(
1105
- (si) => (si == null ? void 0 : si.id) === Ge
1139
+ const ri = (Ke = $e.flats) == null ? void 0 : Ke.find(
1140
+ (si) => (si == null ? void 0 : si.id) === ei
1106
1141
  );
1107
- Ae.value = ni;
1142
+ Ae.value = ri;
1108
1143
  break;
1109
1144
  case "tooltip":
1110
- const ri = (Ke = $e.actions) == null ? void 0 : Ke.find(
1111
- (si) => (si == null ? void 0 : si.id) === Ge
1145
+ const ai = (Xe = $e.actions) == null ? void 0 : Xe.find(
1146
+ (si) => (si == null ? void 0 : si.id) === ei
1112
1147
  );
1113
- Ae.value = ri;
1148
+ Ae.value = ai;
1114
1149
  break;
1115
1150
  default:
1116
1151
  Ae.value = null;
@@ -1124,10 +1159,10 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_rende
1124
1159
  }), onUnmounted(() => {
1125
1160
  document.removeEventListener("mousemove", Fe);
1126
1161
  }), (qe, Ue) => {
1127
- var Xe;
1162
+ var Ge;
1128
1163
  return openBlock(), createBlock(_sfc_main$E, {
1129
1164
  hoverdData: Ae.value,
1130
- type: (Xe = ze.value) == null ? void 0 : Xe.type
1165
+ type: (Ge = ze.value) == null ? void 0 : Ge.type
1131
1166
  }, {
1132
1167
  default: withCtx(() => {
1133
1168
  var Je, Ze, Qe;
@@ -1233,48 +1268,49 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
1233
1268
  return $e.floor.svg;
1234
1269
  }), We = computed$1(() => $e.floors.filter(
1235
1270
  (Ze) => {
1236
- var Qe, ii;
1271
+ var Qe, oi;
1237
1272
  return (
1238
1273
  // floorItem.conf !== "reserved" &&
1239
1274
  // floorItem.conf !== "sold" &&
1240
- (Qe = $e.floor) != null && Qe.block_id ? (Ze == null ? void 0 : Ze.block_id) === ((ii = $e.floor) == null ? void 0 : ii.block_id) : !(Ze != null && Ze.block_id)
1275
+ (Qe = $e.floor) != null && Qe.block_id ? (Ze == null ? void 0 : Ze.block_id) === ((oi = $e.floor) == null ? void 0 : oi.block_id) : !(Ze != null && Ze.block_id)
1241
1276
  );
1242
1277
  }
1243
1278
  ).map((Ze) => {
1244
- var ii, ti;
1245
- const Qe = (ii = $e.blocks) == null ? void 0 : ii.find(
1279
+ var oi, ii;
1280
+ const Qe = (oi = $e.blocks) == null ? void 0 : oi.find(
1246
1281
  (Ke) => {
1247
- var Ye;
1248
- return (Ke == null ? void 0 : Ke.id) === ((Ye = Ze == null ? void 0 : Ze.block_id) == null ? void 0 : Ye.toString());
1282
+ var Xe;
1283
+ return (Ke == null ? void 0 : Ke.id) === ((Xe = Ze == null ? void 0 : Ze.block_id) == null ? void 0 : Xe.toString());
1249
1284
  }
1250
1285
  );
1251
1286
  return {
1252
- title: ((ti = Ze == null ? void 0 : Ze.floor_number) == null ? void 0 : ti.toString()) + ` ${tr("floor")} ` + (Qe != null && Qe.id ? ` - ${Qe == null ? void 0 : Qe.title}` : "") + (Ze != null && Ze.conf ? " " + Ze.conf : ""),
1287
+ title: ((ii = Ze == null ? void 0 : Ze.floor_number) == null ? void 0 : ii.toString()) + ` ${tr("floor")} ` + (Qe != null && Qe.id ? ` - ${Qe == null ? void 0 : Qe.title}` : "") + (Ze != null && Ze.conf ? " " + Ze.conf : ""),
1253
1288
  value: Ze == null ? void 0 : Ze.id
1254
1289
  };
1255
1290
  }).sort((Ze, Qe) => Ze.title.localeCompare(Qe.title)) || []), qe = (Ze) => {
1256
1291
  const Qe = Ze.target;
1257
1292
  Qe && (Ie.value = Qe);
1258
1293
  }, Ue = (Ze) => {
1259
- var ii, ti, Ke;
1294
+ var oi, ii, Ke;
1260
1295
  const Qe = Ze.target;
1261
- (Qe == null ? void 0 : Qe.nodeName) === "path" && (ze.value && "conf" in ze.value && (((ii = ze.value) == null ? void 0 : ii.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));
1262
- }, Xe = () => {
1296
+ (Qe == null ? void 0 : Qe.nodeName) === "path" && (ze.value && "conf" in ze.value && (((oi = ze.value) == null ? void 0 : oi.conf) === "reserved" && !De.value || ((ii = ze.value) == null ? void 0 : ii.conf) === "sold" && !Le.value) || ke("changeComponent", ((Ke = Ae.value) == null ? void 0 : Ke.type) || "", ze.value));
1297
+ }, Ge = () => {
1263
1298
  var Ze;
1264
- Re.value && ((Ze = Re.value) == null ? void 0 : Ze.querySelectorAll("g")).forEach((ii) => {
1265
- var Ye, Ge, ei, oi, ni, ri;
1266
- const ti = ii == null ? void 0 : ii.getAttribute("id"), Ke = (Ge = (Ye = $e.floor) == null ? void 0 : Ye.polygon_data) == null ? void 0 : Ge.find(
1267
- (si) => (si == null ? void 0 : si.key) === ti
1299
+ Re.value && ((Ze = Re.value) == null ? void 0 : Ze.querySelectorAll("g")).forEach((oi) => {
1300
+ var Ye, ei, ti, ni, ri;
1301
+ const ii = oi == null ? void 0 : oi.getAttribute("id"), Ke = (ei = (Ye = $e.floor) == null ? void 0 : Ye.polygon_data) == null ? void 0 : ei.find(
1302
+ (ai) => (ai == null ? void 0 : ai.key) === ii
1268
1303
  );
1269
- if ($e.flats)
1270
- if ((ei = $e.floor) != null && ei.conf)
1271
- ii.setAttribute("conf", ((oi = $e.floor) == null ? void 0 : oi.conf) || "");
1272
- else {
1273
- const si = (ni = $e.flats) == null ? void 0 : ni.find(
1274
- (ai) => (ai == null ? void 0 : ai.id) === (Ke == null ? void 0 : Ke.id)
1275
- );
1276
- ii == null || ii.setAttribute("conf", ((ri = si == null ? void 0 : si.conf) == null ? void 0 : ri.toString()) || "");
1277
- }
1304
+ if (!$e.flats) return;
1305
+ let Xe = "";
1306
+ if ((ti = $e.floor) != null && ti.conf)
1307
+ Xe = getConfValue(((ni = $e.floor) == null ? void 0 : ni.conf) || ""), oi.setAttribute("conf", Xe || "");
1308
+ else {
1309
+ const ai = (ri = $e.flats) == null ? void 0 : ri.find(
1310
+ (si) => (si == null ? void 0 : si.id) === (Ke == null ? void 0 : Ke.id)
1311
+ );
1312
+ Xe = getConfValue((ai == null ? void 0 : ai.conf) || ""), oi == null || oi.setAttribute("conf", Xe || "");
1313
+ }
1278
1314
  });
1279
1315
  }, Je = () => {
1280
1316
  var Ze;
@@ -1283,29 +1319,29 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
1283
1319
  return watch(
1284
1320
  () => Ie.value,
1285
1321
  (Ze) => {
1286
- var ii, ti, Ke, Ye, Ge, ei, oi;
1322
+ var oi, ii, Ke, Xe, Ye, ei, ti;
1287
1323
  if (!Ze) return;
1288
1324
  Ve.hoverdSvg = Ze;
1289
1325
  const Qe = Ze == null ? void 0 : Ze.parentElement;
1290
1326
  if (Qe && (Qe == null ? void 0 : Qe.nodeName) === "g") {
1291
1327
  const ni = Qe.getAttribute("id");
1292
- if (!ni || (Ae.value = ((ti = (ii = $e.floor) == null ? void 0 : ii.polygon_data) == null ? void 0 : ti.find((ri) => (ri == null ? void 0 : ri.key) === ni)) || null, !Ae.value)) return;
1328
+ if (!ni || (Ae.value = ((ii = (oi = $e.floor) == null ? void 0 : oi.polygon_data) == null ? void 0 : ii.find((ri) => (ri == null ? void 0 : ri.key) === ni)) || null, !Ae.value)) return;
1293
1329
  if (((Ke = Ae.value) == null ? void 0 : Ke.type) === "flat") {
1294
- const ri = (Ye = $e.flats) == null ? void 0 : Ye.find(
1295
- (ai) => {
1330
+ const ri = (Xe = $e.flats) == null ? void 0 : Xe.find(
1331
+ (si) => {
1296
1332
  var li;
1297
- return (ai == null ? void 0 : ai.id) === ((li = Ae.value) == null ? void 0 : li.id);
1333
+ return (si == null ? void 0 : si.id) === ((li = Ae.value) == null ? void 0 : li.id);
1298
1334
  }
1299
- ), si = ri ? {
1335
+ ), ai = ri ? {
1300
1336
  ...ri,
1301
- conf: ri.conf || ((Ge = $e.floor) == null ? void 0 : Ge.conf) || ""
1337
+ conf: ri.conf || ((Ye = $e.floor) == null ? void 0 : Ye.conf) || ""
1302
1338
  } : null;
1303
- ze.value = si;
1339
+ ze.value = ai;
1304
1340
  } else if (((ei = Ae.value) == null ? void 0 : ei.type) === "tooltip") {
1305
- const ri = (oi = $e.actions) == null ? void 0 : oi.find(
1306
- (si) => {
1307
- var ai;
1308
- return (si == null ? void 0 : si.id) === ((ai = Ae.value) == null ? void 0 : ai.id);
1341
+ const ri = (ti = $e.actions) == null ? void 0 : ti.find(
1342
+ (ai) => {
1343
+ var si;
1344
+ return (ai == null ? void 0 : ai.id) === ((si = Ae.value) == null ? void 0 : si.id);
1309
1345
  }
1310
1346
  );
1311
1347
  ze.value = ri ?? null;
@@ -1324,49 +1360,49 @@ const ArrowRight = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["render", _sfc_ren
1324
1360
  () => {
1325
1361
  var Qe;
1326
1362
  const Ze = (Qe = $e.floors) == null ? void 0 : Qe.find(
1327
- (ii) => (ii == null ? void 0 : ii.id) === (je == null ? void 0 : je.value)
1363
+ (oi) => (oi == null ? void 0 : oi.id) === (je == null ? void 0 : je.value)
1328
1364
  );
1329
1365
  Ze && ke("changeComponent", "floor", Ze), setTimeout(() => {
1330
- Xe();
1366
+ Ge();
1331
1367
  }, 0);
1332
1368
  }
1333
1369
  ), onMounted(() => {
1334
- var Ze, Qe, ii;
1370
+ var Ze, Qe, oi;
1335
1371
  Fe.value = (Ze = $e.blocks) == null ? void 0 : Ze.find(
1336
- (ti) => {
1337
- var Ke, Ye;
1338
- return (ti == null ? void 0 : ti.id) === ((Ye = (Ke = $e.floor) == null ? void 0 : Ke.block_id) == null ? void 0 : Ye.toString());
1372
+ (ii) => {
1373
+ var Ke, Xe;
1374
+ return (ii == null ? void 0 : ii.id) === ((Xe = (Ke = $e.floor) == null ? void 0 : Ke.block_id) == null ? void 0 : Xe.toString());
1339
1375
  }
1340
- ), je.value = (ii = (Qe = We.value) == null ? void 0 : Qe.find(
1341
- (ti) => {
1376
+ ), je.value = (oi = (Qe = We.value) == null ? void 0 : Qe.find(
1377
+ (ii) => {
1342
1378
  var Ke;
1343
- return (ti == null ? void 0 : ti.value) == ((Ke = $e.floor) == null ? void 0 : Ke.id);
1379
+ return (ii == null ? void 0 : ii.value) == ((Ke = $e.floor) == null ? void 0 : Ke.id);
1344
1380
  }
1345
- )) == null ? void 0 : ii.value, Xe(), document.addEventListener("mousemove", qe);
1381
+ )) == null ? void 0 : oi.value, Ge(), document.addEventListener("mousemove", qe);
1346
1382
  }), onUnmounted(() => {
1347
1383
  document.removeEventListener("mousemove", qe);
1348
1384
  }), (Ze, Qe) => {
1349
- var ii;
1385
+ var oi;
1350
1386
  return openBlock(), createBlock(_sfc_main$E, {
1351
1387
  hoverdData: ze.value,
1352
- type: (ii = Ae.value) == null ? void 0 : ii.type
1388
+ type: (oi = Ae.value) == null ? void 0 : oi.type
1353
1389
  }, {
1354
1390
  header: withCtx(() => [
1355
1391
  createVNode(_sfc_main$A, { onClick: Je }),
1356
1392
  createElementVNode("div", _hoisted_1$v, [
1357
1393
  createVNode(_sfc_main$C, {
1358
1394
  modelValue: je.value,
1359
- "onUpdate:modelValue": Qe[0] || (Qe[0] = (ti) => je.value = ti),
1395
+ "onUpdate:modelValue": Qe[0] || (Qe[0] = (ii) => je.value = ii),
1360
1396
  data: We.value
1361
1397
  }, null, 8, ["modelValue", "data"])
1362
1398
  ])
1363
1399
  ]),
1364
1400
  default: withCtx(() => {
1365
- var ti, Ke, Ye;
1401
+ var ii, Ke, Xe;
1366
1402
  return [
1367
1403
  createElementVNode("div", _hoisted_2$g, [
1368
1404
  createElementVNode("img", {
1369
- src: ((Ye = (Ke = (ti = Be.floor) == null ? void 0 : ti.floor_image) == null ? void 0 : Ke[0]) == null ? void 0 : Ye.url) || "",
1405
+ src: ((Xe = (Ke = (ii = Be.floor) == null ? void 0 : ii.floor_image) == null ? void 0 : Ke[0]) == null ? void 0 : Xe.url) || "",
1370
1406
  alt: "",
1371
1407
  class: "ire-left-0 ire-top-0 ire-h-full ire-w-full"
1372
1408
  }, null, 8, _hoisted_3$f),
@@ -1829,8 +1865,8 @@ class I extends g {
1829
1865
  const { content: ke, contentRect: $e } = this, { fitWidth: Ne, fitHeight: Ve, fullWidth: De, fullHeight: Le } = $e;
1830
1866
  let Re = De, Ie = Le;
1831
1867
  if (this.option("zoom") || this.angle !== 0) {
1832
- const Ae = !(ke instanceof HTMLImageElement) && (window.getComputedStyle(ke).maxWidth === "none" || window.getComputedStyle(ke).maxHeight === "none"), ze = Ae ? De : Ne, je = Ae ? Le : Ve, Fe = this.getMatrix(_e), He = new DOMPoint(0, 0).matrixTransform(Fe), We = new DOMPoint(0 + ze, 0).matrixTransform(Fe), qe = new DOMPoint(0 + ze, 0 + je).matrixTransform(Fe), Ue = new DOMPoint(0, 0 + je).matrixTransform(Fe), Xe = Math.abs(qe.x - He.x), Je = Math.abs(qe.y - He.y), Ze = Math.abs(Ue.x - We.x), Qe = Math.abs(Ue.y - We.y);
1833
- Re = Math.max(Xe, Ze), Ie = Math.max(Je, Qe);
1868
+ const Ae = !(ke instanceof HTMLImageElement) && (window.getComputedStyle(ke).maxWidth === "none" || window.getComputedStyle(ke).maxHeight === "none"), ze = Ae ? De : Ne, je = Ae ? Le : Ve, Fe = this.getMatrix(_e), He = new DOMPoint(0, 0).matrixTransform(Fe), We = new DOMPoint(0 + ze, 0).matrixTransform(Fe), qe = new DOMPoint(0 + ze, 0 + je).matrixTransform(Fe), Ue = new DOMPoint(0, 0 + je).matrixTransform(Fe), Ge = Math.abs(qe.x - He.x), Je = Math.abs(qe.y - He.y), Ze = Math.abs(Ue.x - We.x), Qe = Math.abs(Ue.y - We.y);
1869
+ Re = Math.max(Ge, Ze), Ie = Math.max(Je, Qe);
1834
1870
  }
1835
1871
  return { contentWidth: Re, contentHeight: Ie };
1836
1872
  }
@@ -1923,8 +1959,8 @@ class I extends g {
1923
1959
  _e.cancelable && _e.preventDefault(), this.container.classList.add(this.cn("isDragging"));
1924
1960
  const We = this.checkBounds(je, Fe);
1925
1961
  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));
1926
- const qe = this.targetScale, Ue = this.minScale, Xe = this.maxScale;
1927
- qe < 0.5 * Ue && (ze = Math.max(ze, Ue)), qe > 1.5 * Xe && (ze = Math.min(ze, Xe)), this.lockedAxis === "y" && t(qe) === t(Ue) && (je = 0), this.lockedAxis === "x" && t(qe) === t(Ue) && (Fe = 0), this.applyChange({ originX: Le, originY: Re, panX: je, panY: Fe, scale: ze, friction: this.option("dragFriction"), ignoreBounds: !0 });
1962
+ const qe = this.targetScale, Ue = this.minScale, Ge = this.maxScale;
1963
+ qe < 0.5 * Ue && (ze = Math.max(ze, Ue)), qe > 1.5 * Ge && (ze = Math.min(ze, Ge)), this.lockedAxis === "y" && t(qe) === t(Ue) && (je = 0), this.lockedAxis === "x" && t(qe) === t(Ue) && (Fe = 0), this.applyChange({ originX: Le, originY: Re, panX: je, panY: Fe, scale: ze, friction: this.option("dragFriction"), ignoreBounds: !0 });
1928
1964
  }
1929
1965
  onPointerUp(_e, ke, $e) {
1930
1966
  if ($e.length) return this.dragOffset.x = 0, this.dragOffset.y = 0, void (this.trackingPoints = []);
@@ -1949,8 +1985,8 @@ class I extends g {
1949
1985
  Je && (je = Math.max(Math.min(je, Je), -1 * Je), Fe = Math.max(Math.min(Fe, Je), -1 * Je));
1950
1986
  }
1951
1987
  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);
1952
- const qe = this.dragOffset.x, Ue = this.dragOffset.y, Xe = this.option("dragMinThreshold") || 0;
1953
- Math.abs(qe) < Xe && Math.abs(Ue) < 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, Ue);
1988
+ const qe = this.dragOffset.x, Ue = this.dragOffset.y, Ge = this.option("dragMinThreshold") || 0;
1989
+ Math.abs(qe) < Ge && Math.abs(Ue) < Ge && (Ae = ze = 0, je = Fe = 0), (this.option("zoom") && (We < this.minScale - 1e-5 || We > this.maxScale + 1e-5) || ke && !Ae && !ze) && (He = 0.35), this.applyChange({ panX: Ae, panY: ze, friction: He }), this.emit("decel", je, Fe, qe, Ue);
1954
1990
  }
1955
1991
  onWheel(_e) {
1956
1992
  var ke = [-_e.deltaX || 0, -_e.deltaY || 0, -_e.detail || 0].reduce(function(Ve, De) {
@@ -1998,20 +2034,20 @@ class I extends g {
1998
2034
  return ri = ni instanceof HTMLImageElement ? ni.naturalHeight : ni instanceof SVGElement ? ni.height.baseVal.value : Math.max(ni.offsetHeight, ni.scrollHeight), ri || 0;
1999
2035
  })(Ve);
2000
2036
  let qe = this.option("width", He) || z, Ue = this.option("height", We) || z;
2001
- const Xe = qe === z, Je = Ue === z;
2002
- typeof qe != "number" && (qe = He), typeof Ue != "number" && (Ue = We), Xe && (qe = He * (Ue / We)), Je && (Ue = We / (He / qe));
2037
+ const Ge = qe === z, Je = Ue === z;
2038
+ typeof qe != "number" && (qe = He), typeof Ue != "number" && (Ue = We), Ge && (qe = He * (Ue / We)), Je && (Ue = We / (He / qe));
2003
2039
  let Ze = Ve.parentElement instanceof HTMLPictureElement ? Ve.parentElement : Ve;
2004
2040
  this.option("transformParent") && (Ze = Ze.parentElement || Ze);
2005
2041
  const Qe = Ze.getAttribute("style") || "";
2006
2042
  Ze.style.setProperty("transform", "none", "important"), De && (Ze.style.width = "", Ze.style.height = ""), Ze.offsetHeight;
2007
- const ii = Ve.getBoundingClientRect();
2008
- let ti = ii.width * $e, Ke = ii.height * $e, Ye = ti, Ge = Ke;
2009
- ti = Math.min(ti, qe), Ke = Math.min(Ke, Ue), De ? { width: ti, height: Ke } = ((ni, ri, si, ai) => {
2010
- const li = si / ni, ci = ai / ri, di = Math.min(li, ci);
2043
+ const oi = Ve.getBoundingClientRect();
2044
+ let ii = oi.width * $e, Ke = oi.height * $e, Xe = ii, Ye = Ke;
2045
+ ii = Math.min(ii, qe), Ke = Math.min(Ke, Ue), De ? { width: ii, height: Ke } = ((ni, ri, ai, si) => {
2046
+ const li = ai / ni, hi = si / ri, di = Math.min(li, hi);
2011
2047
  return { width: ni *= di, height: ri *= di };
2012
- })(qe, Ue, ti, Ke) : (ti = Math.min(ti, qe), Ke = Math.min(Ke, Ue));
2013
- let ei = 0.5 * (Ge - Ke), oi = 0.5 * (Ye - ti);
2014
- this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: ii.top - Le.top + ei, bottom: Le.bottom - ii.bottom + ei, left: ii.left - Le.left + oi, right: Le.right - ii.right + oi, fitWidth: ti, fitHeight: Ke, width: ti, height: Ke, fullWidth: qe, fullHeight: Ue }), Ze.style.cssText = Qe, De && (Ze.style.width = `${ti}px`, Ze.style.height = `${Ke}px`), this.setTransform(), _e !== !0 && this.emit("refresh"), this.ignoreBounds || (t(this.targetScale) < t(this.minScale) ? this.zoomTo(this.minScale, { friction: 0 }) : this.targetScale > this.maxScale ? this.zoomTo(this.maxScale, { friction: 0 }) : this.state === m.Init || this.checkBounds().inBounds || this.requestTick()), this.updateControls();
2048
+ })(qe, Ue, ii, Ke) : (ii = Math.min(ii, qe), Ke = Math.min(Ke, Ue));
2049
+ let ei = 0.5 * (Ye - Ke), ti = 0.5 * (Xe - ii);
2050
+ this.contentRect = Object.assign(Object.assign({}, this.contentRect), { top: oi.top - Le.top + ei, bottom: Le.bottom - oi.bottom + ei, left: oi.left - Le.left + ti, right: Le.right - oi.right + ti, fitWidth: ii, fitHeight: Ke, width: ii, height: Ke, fullWidth: qe, fullHeight: Ue }), Ze.style.cssText = Qe, De && (Ze.style.width = `${ii}px`, Ze.style.height = `${Ke}px`), this.setTransform(), _e !== !0 && this.emit("refresh"), this.ignoreBounds || (t(this.targetScale) < t(this.minScale) ? this.zoomTo(this.minScale, { friction: 0 }) : this.targetScale > this.maxScale ? this.zoomTo(this.maxScale, { friction: 0 }) : this.state === m.Init || this.checkBounds().inBounds || this.requestTick()), this.updateControls();
2015
2051
  }
2016
2052
  calculateBounds() {
2017
2053
  const { contentWidth: _e, contentHeight: ke } = this.calculateContentDim(this.target), { targetScale: $e, lockedAxis: Ne } = this, { fitWidth: Ve, fitHeight: De } = this.contentRect;
@@ -2022,13 +2058,13 @@ class I extends g {
2022
2058
  let { containerRect: je, contentRect: Fe } = this, He = t(Ve * $e, M), We = t(De * $e, M), { innerWidth: qe, innerHeight: Ue } = je;
2023
2059
  if (je.width === He && (qe = je.width), je.width === We && (Ue = je.height), _e > qe) {
2024
2060
  Ie = 0.5 * (_e - qe), Le = -1 * Ie;
2025
- let Xe = 0.5 * (Fe.right - Fe.left);
2026
- Le += Xe, Ie += Xe;
2061
+ let Ge = 0.5 * (Fe.right - Fe.left);
2062
+ Le += Ge, Ie += Ge;
2027
2063
  }
2028
2064
  if (Ve > qe && _e < qe && (Le -= 0.5 * (Ve - qe), Ie -= 0.5 * (Ve - qe)), ke > Ue) {
2029
2065
  Ae = 0.5 * (ke - Ue), Re = -1 * Ae;
2030
- let Xe = 0.5 * (Fe.bottom - Fe.top);
2031
- Re += Xe, Ae += Xe;
2066
+ let Ge = 0.5 * (Fe.bottom - Fe.top);
2067
+ Re += Ge, Ae += Ge;
2032
2068
  }
2033
2069
  De > Ue && ke < Ue && (Le -= 0.5 * (De - Ue), Ie -= 0.5 * (De - Ue));
2034
2070
  }
@@ -2058,8 +2094,8 @@ class I extends g {
2058
2094
  case "toggleZoom":
2059
2095
  case "iterateZoom":
2060
2096
  Ie || Ae ? qe = !0 : Ue = !0;
2061
- const Xe = We.querySelector("g");
2062
- Xe && (Xe.style.display = Ie ? "" : "none");
2097
+ const Ge = We.querySelector("g");
2098
+ Ge && (Ge.style.display = Ie ? "" : "none");
2063
2099
  }
2064
2100
  qe ? (We.removeAttribute("disabled"), We.removeAttribute("tabindex")) : Ue && (We.setAttribute("disabled", ""), We.setAttribute("tabindex", "-1"));
2065
2101
  }
@@ -2075,13 +2111,13 @@ class I extends g {
2075
2111
  let Ue = new DOMMatrix().translate(He, We).translate(Ve, De).translate(_e, ke);
2076
2112
  if (this.option("zoom")) {
2077
2113
  if (!Ae) {
2078
- const Xe = this.targetScale, Je = this.minScale, Ze = this.maxScale;
2079
- Xe * $e < Je && ($e = Je / Xe), Xe * $e > Ze && ($e = Ze / Xe);
2114
+ const Ge = this.targetScale, Je = this.minScale, Ze = this.maxScale;
2115
+ Ge * $e < Je && ($e = Je / Ge), Ge * $e > Ze && ($e = Ze / Ge);
2080
2116
  }
2081
2117
  Ue = Ue.scale($e);
2082
2118
  }
2083
2119
  Ue = Ue.translate(-Ve, -De).translate(-He, -We).multiply(qe), Ne && (Ue = Ue.rotate(Ne)), Re && (Ue = Ue.scale(-1, 1)), Ie && (Ue = Ue.scale(1, -1));
2084
- for (const Xe of v) Xe !== "e" && Xe !== "f" && (Ue[Xe] > this.minScale + 1e-5 || Ue[Xe] < this.minScale - 1e-5) ? this.target[Xe] = Ue[Xe] : this.target[Xe] = t(Ue[Xe], M);
2120
+ for (const Ge of v) Ge !== "e" && Ge !== "f" && (Ue[Ge] > this.minScale + 1e-5 || Ue[Ge] < this.minScale - 1e-5) ? this.target[Ge] = Ue[Ge] : this.target[Ge] = t(Ue[Ge], M);
2085
2121
  (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());
2086
2122
  }
2087
2123
  stop(_e = !1) {
@@ -2547,12 +2583,12 @@ class Q extends g {
2547
2583
  Ze ? (_e === "top" ? (Ze.style.right = "", Ze.style.left = "") : Ze.style.top = "", Je.index !== je ? Ze.style[_e] = Fe === 0 ? "" : `${t(Fe, 1e3)}px` : Ze.style[_e] = "", He += Je.dim + Je.gap, je++) : Fe += Je.dim + Je.gap;
2548
2584
  }
2549
2585
  if (Ne && He && Ve) {
2550
- let Je = getComputedStyle(Ve), Ze = "padding", Qe = ke ? "Right" : "Bottom", ii = parseFloat(Je[Ze + (ke ? "Left" : "Top")]);
2551
- We -= ii, De += ii, De += parseFloat(Je[Ze + Qe]);
2552
- 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`));
2586
+ let Je = getComputedStyle(Ve), Ze = "padding", Qe = ke ? "Right" : "Bottom", oi = parseFloat(Je[Ze + (ke ? "Left" : "Top")]);
2587
+ We -= oi, De += oi, De += parseFloat(Je[Ze + Qe]);
2588
+ for (const ii of Ae) ii.el && (t(ii.pos) < t(De) && t(ii.pos + ii.dim + ii.gap) < t(We) && t(We) > t(Le - De) && (ii.el.style[_e] = `${t(Fe + He, 1e3)}px`), t(ii.pos + ii.gap) >= t(Le - De) && t(ii.pos) > t(We + De) && t(We) < t(De) && (ii.el.style[_e] = `-${t(He, 1e3)}px`));
2553
2589
  }
2554
- let qe, Ue, Xe = [...this.inTransition];
2555
- if (Xe.length > 1 && (qe = Ie[Xe[0]], Ue = Ie[Xe[1]]), qe && Ue) {
2590
+ let qe, Ue, Ge = [...this.inTransition];
2591
+ if (Ge.length > 1 && (qe = Ie[Ge[0]], Ue = Ie[Ge[1]]), qe && Ue) {
2556
2592
  let Je = 0;
2557
2593
  for (const Ze of Ae) Ze.el ? this.inTransition.has(Ze.index) && qe.slides.indexOf(Ze) < 0 && (Ze.el.style[_e] = `${t(Je + (qe.pos - Ue.pos), 1e3)}px`) : Je += Ze.dim + Ze.gap;
2558
2594
  }
@@ -2601,8 +2637,8 @@ class Q extends g {
2601
2637
  this.inTransition.add(We.index), this.createSlideEl(We);
2602
2638
  let qe = He.el, Ue = We.el;
2603
2639
  Fe || ke === J || (ke = "fadeFast", qe = null);
2604
- const Xe = this.isRTL ? "next" : "prev", Je = this.isRTL ? "prev" : "next";
2605
- 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}`)), Ue && (We.transition = ke, Ue.addEventListener(G, this.onAnimationEnd), Ue.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;
2640
+ const Ge = this.isRTL ? "next" : "prev", Je = this.isRTL ? "prev" : "next";
2641
+ 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 : Ge}`)), Ue && (We.transition = ke, Ue.addEventListener(G, this.onAnimationEnd), Ue.classList.add(`f-${ke}In`, `from-${ze > 0 ? Ge : Je}`)), Ie.current[this.axis] = je, Ie.target[this.axis] = je, Ie.requestTick(), this.onChange(Ae), !0;
2606
2642
  }
2607
2643
  manageSlideVisiblity() {
2608
2644
  const _e = /* @__PURE__ */ new Set(), ke = /* @__PURE__ */ new Set(), $e = this.getVisibleSlides(parseFloat(this.option("preload", 0) + "") || 0);
@@ -2837,9 +2873,9 @@ class Q extends g {
2837
2873
  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");
2838
2874
  let je = 0, Fe = 0, He = 0, We = _e === void 0 ? -1 * ((De == null ? void 0 : De.target[this.axis]) || 0) : _e;
2839
2875
  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));
2840
- let qe = Ae, Ue = Ne.find((Xe) => {
2841
- const Je = Xe.pos - 0.5 * qe.gap, Ze = Xe.pos + Xe.dim + 0.5 * Xe.gap;
2842
- return qe = Xe, We >= Je && We < Ze;
2876
+ let qe = Ae, Ue = Ne.find((Ge) => {
2877
+ const Je = Ge.pos - 0.5 * qe.gap, Ze = Ge.pos + Ge.dim + 0.5 * Ge.gap;
2878
+ return qe = Ge, We >= Je && We < Ze;
2843
2879
  });
2844
2880
  return Ue || (Ue = Ae), Fe = this.getPageForSlide(Ue.index), je = Fe + He * Le, { page: je, pageIndex: Fe };
2845
2881
  }
@@ -2975,9 +3011,9 @@ class wt extends _ {
2975
3011
  (((_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" });
2976
3012
  const { x: ze, y: je, scale: Fe, opacity: He } = Ie;
2977
3013
  if (He) {
2978
- const We = ((qe, Ue, Xe, Je) => {
2979
- const Ze = Ue - qe, Qe = Je - Xe;
2980
- return (ii) => Xe + ((ii - qe) / Ze * Qe || 0);
3014
+ const We = ((qe, Ue, Ge, Je) => {
3015
+ const Ze = Ue - qe, Qe = Je - Ge;
3016
+ return (oi) => Ge + ((oi - qe) / Ze * Qe || 0);
2981
3017
  })(Le.scale, Fe, 1, 0);
2982
3018
  Le.on("afterTransform", () => {
2983
3019
  De.style.opacity = We(Le.scale) + "";
@@ -3075,8 +3111,8 @@ class wt extends _ {
3075
3111
  if (!(Ie && Re && Le && De && Ve)) return void $e();
3076
3112
  const { x: Ae, y: ze, scale: je, opacity: Fe } = Ie, He = () => {
3077
3113
  _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));
3078
- }, We = (Xe) => {
3079
- (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));
3114
+ }, We = (Ge) => {
3115
+ (Ge.scale < 0.99 || Ge.scale > 1.01) && !Ge.isDragging || (S(Ve, yt), Le.style.opacity = "", Ge.off("endAnimation", We), Ge.off("touchStart", We), Ge.off("afterTransform", He), ke(Ge));
3080
3116
  };
3081
3117
  De.on("endAnimation", We), De.on("touchStart", We), De.on("afterTransform", He), De.on(["error", "destroy"], () => {
3082
3118
  $e();
@@ -3094,9 +3130,9 @@ class wt extends _ {
3094
3130
  if (!(ze && je && We && qe)) return !1;
3095
3131
  const Ue = Ve.container.getBoundingClientRect();
3096
3132
  He += Ue.left, Fe += Ue.top;
3097
- const Xe = -1 * (He + 0.5 * We - (Ae + 0.5 * ze)), Je = -1 * (Fe + 0.5 * qe - (Ie + 0.5 * je)), Ze = ze / We;
3133
+ const Ge = -1 * (He + 0.5 * We - (Ae + 0.5 * ze)), Je = -1 * (Fe + 0.5 * qe - (Ie + 0.5 * je)), Ze = ze / We;
3098
3134
  let Qe = this.option("zoomOpacity") || !1;
3099
- return Qe === "auto" && (Qe = Math.abs(ze / je - We / qe) > 0.1), { x: Xe, y: Je, scale: Ze, opacity: Qe };
3135
+ return Qe === "auto" && (Qe = Math.abs(ze / je - We / qe) > 0.1), { x: Ge, y: Je, scale: Ze, opacity: Qe };
3100
3136
  }
3101
3137
  attach() {
3102
3138
  const _e = this, ke = _e.instance;
@@ -4376,8 +4412,8 @@ class Oe extends g {
4376
4412
  if (!(ke && ke instanceof Element)) return;
4377
4413
  let Ne, Ve, De, Le;
4378
4414
  if ([...Oe.openers].reverse().find(([He, We]) => !(!He.contains(ke) || ![...We].reverse().find(([qe, Ue]) => {
4379
- let Xe = ke.closest(qe);
4380
- return !!Xe && (Ne = He, Ve = qe, De = Xe, Le = Ue, !0);
4415
+ let Ge = ke.closest(qe);
4416
+ return !!Ge && (Ne = He, Ve = qe, De = Ge, Le = Ue, !0);
4381
4417
  }))), !Ne || !Ve || !De) return;
4382
4418
  Le = Le || {}, _e.preventDefault(), ke = De;
4383
4419
  let Re = [], Ie = u({}, at, Le);
@@ -4633,7 +4669,7 @@ function updateSwiper(Be) {
4633
4669
  scrollbarEl: Le,
4634
4670
  paginationEl: Re
4635
4671
  } = Be;
4636
- const Ie = Ne.filter((Ye) => Ye !== "children" && Ye !== "direction" && Ye !== "wrapperClass"), {
4672
+ const Ie = Ne.filter((Xe) => Xe !== "children" && Xe !== "direction" && Xe !== "wrapperClass"), {
4637
4673
  params: Ae,
4638
4674
  pagination: ze,
4639
4675
  navigation: je,
@@ -4641,19 +4677,19 @@ function updateSwiper(Be) {
4641
4677
  virtual: He,
4642
4678
  thumbs: We
4643
4679
  } = _e;
4644
- let qe, Ue, Xe, Je, Ze, Qe, ii, ti;
4645
- Ne.includes("thumbs") && $e.thumbs && $e.thumbs.swiper && !$e.thumbs.swiper.destroyed && Ae.thumbs && (!Ae.thumbs.swiper || Ae.thumbs.swiper.destroyed) && (qe = !0), Ne.includes("controller") && $e.controller && $e.controller.control && Ae.controller && !Ae.controller.control && (Ue = !0), Ne.includes("pagination") && $e.pagination && ($e.pagination.el || Re) && (Ae.pagination || Ae.pagination === !1) && ze && !ze.el && (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 && (Ze = !0);
4646
- const Ke = (Ye) => {
4647
- _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));
4680
+ let qe, Ue, Ge, Je, Ze, Qe, oi, ii;
4681
+ Ne.includes("thumbs") && $e.thumbs && $e.thumbs.swiper && !$e.thumbs.swiper.destroyed && Ae.thumbs && (!Ae.thumbs.swiper || Ae.thumbs.swiper.destroyed) && (qe = !0), Ne.includes("controller") && $e.controller && $e.controller.control && Ae.controller && !Ae.controller.control && (Ue = !0), Ne.includes("pagination") && $e.pagination && ($e.pagination.el || Re) && (Ae.pagination || Ae.pagination === !1) && ze && !ze.el && (Ge = !0), Ne.includes("scrollbar") && $e.scrollbar && ($e.scrollbar.el || Le) && (Ae.scrollbar || Ae.scrollbar === !1) && Fe && !Fe.el && (Je = !0), Ne.includes("navigation") && $e.navigation && ($e.navigation.prevEl || De) && ($e.navigation.nextEl || Ve) && (Ae.navigation || Ae.navigation === !1) && je && !je.prevEl && !je.nextEl && (Ze = !0);
4682
+ const Ke = (Xe) => {
4683
+ _e[Xe] && (_e[Xe].destroy(), Xe === "navigation" ? (_e.isElement && (_e[Xe].prevEl.remove(), _e[Xe].nextEl.remove()), Ae[Xe].prevEl = void 0, Ae[Xe].nextEl = void 0, _e[Xe].prevEl = void 0, _e[Xe].nextEl = void 0) : (_e.isElement && _e[Xe].el.remove(), Ae[Xe].el = void 0, _e[Xe].el = void 0));
4648
4684
  };
4649
- Ne.includes("loop") && _e.isElement && (Ae.loop && !$e.loop ? Qe = !0 : !Ae.loop && $e.loop ? ii = !0 : ti = !0), Ie.forEach((Ye) => {
4650
- if (isObject(Ae[Ye]) && isObject($e[Ye]))
4651
- Object.assign(Ae[Ye], $e[Ye]), (Ye === "navigation" || Ye === "pagination" || Ye === "scrollbar") && "enabled" in $e[Ye] && !$e[Ye].enabled && Ke(Ye);
4685
+ Ne.includes("loop") && _e.isElement && (Ae.loop && !$e.loop ? Qe = !0 : !Ae.loop && $e.loop ? oi = !0 : ii = !0), Ie.forEach((Xe) => {
4686
+ if (isObject(Ae[Xe]) && isObject($e[Xe]))
4687
+ Object.assign(Ae[Xe], $e[Xe]), (Xe === "navigation" || Xe === "pagination" || Xe === "scrollbar") && "enabled" in $e[Xe] && !$e[Xe].enabled && Ke(Xe);
4652
4688
  else {
4653
- const Ge = $e[Ye];
4654
- (Ge === !0 || Ge === !1) && (Ye === "navigation" || Ye === "pagination" || Ye === "scrollbar") ? Ge === !1 && Ke(Ye) : Ae[Ye] = $e[Ye];
4689
+ const Ye = $e[Xe];
4690
+ (Ye === !0 || Ye === !1) && (Xe === "navigation" || Xe === "pagination" || Xe === "scrollbar") ? Ye === !1 && Ke(Xe) : Ae[Xe] = $e[Xe];
4655
4691
  }
4656
- }), Ie.includes("controller") && !Ue && _e.controller && _e.controller.control && Ae.controller && Ae.controller.control && (_e.controller.control = Ae.controller.control), Ne.includes("children") && ke && He && Ae.virtual.enabled ? (He.slides = ke, He.update(!0)) : Ne.includes("virtual") && He && Ae.virtual.enabled && (ke && (He.slides = ke), He.update(!0)), Ne.includes("children") && ke && Ae.loop && (ti = !0), qe && We.init() && We.update(!0), Ue && (_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()), Ze && (_e.isElement && ((!Ve || typeof Ve == "string") && (Ve = document.createElement("div"), Ve.classList.add("swiper-button-next"), setInnerHTML(Ve, _e.hostEl.constructor.nextButtonSvg), Ve.part.add("button-next"), _e.el.appendChild(Ve)), (!De || typeof De == "string") && (De = document.createElement("div"), De.classList.add("swiper-button-prev"), setInnerHTML(De, _e.hostEl.constructor.prevButtonSvg), De.part.add("button-prev"), _e.el.appendChild(De))), Ve && (Ae.navigation.nextEl = Ve), De && (Ae.navigation.prevEl = De), je.init(), je.update()), Ne.includes("allowSlideNext") && (_e.allowSlideNext = $e.allowSlideNext), Ne.includes("allowSlidePrev") && (_e.allowSlidePrev = $e.allowSlidePrev), Ne.includes("direction") && _e.changeDirection($e.direction, !1), (Qe || ti) && _e.loopDestroy(), (ii || ti) && _e.loopCreate(), _e.update();
4692
+ }), Ie.includes("controller") && !Ue && _e.controller && _e.controller.control && Ae.controller && Ae.controller.control && (_e.controller.control = Ae.controller.control), Ne.includes("children") && ke && He && Ae.virtual.enabled ? (He.slides = ke, He.update(!0)) : Ne.includes("virtual") && He && Ae.virtual.enabled && (ke && (He.slides = ke), He.update(!0)), Ne.includes("children") && ke && Ae.loop && (ii = !0), qe && We.init() && We.update(!0), Ue && (_e.controller.control = Ae.controller.control), Ge && (_e.isElement && (!Re || typeof Re == "string") && (Re = document.createElement("div"), Re.classList.add("swiper-pagination"), Re.part.add("pagination"), _e.el.appendChild(Re)), Re && (Ae.pagination.el = Re), ze.init(), ze.render(), ze.update()), Je && (_e.isElement && (!Le || typeof Le == "string") && (Le = document.createElement("div"), Le.classList.add("swiper-scrollbar"), Le.part.add("scrollbar"), _e.el.appendChild(Le)), Le && (Ae.scrollbar.el = Le), Fe.init(), Fe.updateSize(), Fe.setTranslate()), Ze && (_e.isElement && ((!Ve || typeof Ve == "string") && (Ve = document.createElement("div"), Ve.classList.add("swiper-button-next"), setInnerHTML(Ve, _e.hostEl.constructor.nextButtonSvg), Ve.part.add("button-next"), _e.el.appendChild(Ve)), (!De || typeof De == "string") && (De = document.createElement("div"), De.classList.add("swiper-button-prev"), setInnerHTML(De, _e.hostEl.constructor.prevButtonSvg), De.part.add("button-prev"), _e.el.appendChild(De))), Ve && (Ae.navigation.nextEl = Ve), De && (Ae.navigation.prevEl = De), je.init(), je.update()), Ne.includes("allowSlideNext") && (_e.allowSlideNext = $e.allowSlideNext), Ne.includes("allowSlidePrev") && (_e.allowSlidePrev = $e.allowSlidePrev), Ne.includes("direction") && _e.changeDirection($e.direction, !1), (Qe || ii) && _e.loopDestroy(), (oi || ii) && _e.loopCreate(), _e.update();
4657
4693
  }
4658
4694
  function getParams(Be, _e) {
4659
4695
  Be === void 0 && (Be = {});
@@ -5234,7 +5270,7 @@ const Swiper = {
5234
5270
  value: []
5235
5271
  }, He = {
5236
5272
  value: []
5237
- }, We = ref(null), qe = ref(null), Ue = ref(null), Xe = ref(null), {
5273
+ }, We = ref(null), qe = ref(null), Ue = ref(null), Ge = ref(null), {
5238
5274
  params: Je,
5239
5275
  passedParams: Ze
5240
5276
  } = getParams(Be);
@@ -5243,25 +5279,25 @@ const Swiper = {
5243
5279
  getChildren(ke, Fe, He), Re.value = !0;
5244
5280
  };
5245
5281
  Je.onAny = function(Ke) {
5246
- for (var Ye = arguments.length, Ge = new Array(Ye > 1 ? Ye - 1 : 0), ei = 1; ei < Ye; ei++)
5247
- Ge[ei - 1] = arguments[ei];
5248
- $e(Ke, ...Ge);
5282
+ for (var Xe = arguments.length, Ye = new Array(Xe > 1 ? Xe - 1 : 0), ei = 1; ei < Xe; ei++)
5283
+ Ye[ei - 1] = arguments[ei];
5284
+ $e(Ke, ...Ye);
5249
5285
  }, Object.assign(Je.on, {
5250
5286
  _beforeBreakpoint: Qe,
5251
- _containerClasses(Ke, Ye) {
5252
- De.value = Ye;
5287
+ _containerClasses(Ke, Xe) {
5288
+ De.value = Xe;
5253
5289
  }
5254
5290
  });
5255
- const ii = {
5291
+ const oi = {
5256
5292
  ...Je
5257
5293
  };
5258
- if (delete ii.wrapperClass, ze.value = new Swiper$1(ii), ze.value.virtual && ze.value.params.virtual.enabled) {
5294
+ if (delete oi.wrapperClass, ze.value = new Swiper$1(oi), ze.value.virtual && ze.value.params.virtual.enabled) {
5259
5295
  ze.value.virtual.slides = Fe.value;
5260
5296
  const Ke = {
5261
5297
  cache: !1,
5262
5298
  slides: Fe.value,
5263
- renderExternal: (Ye) => {
5264
- Le.value = Ye;
5299
+ renderExternal: (Xe) => {
5300
+ Le.value = Xe;
5265
5301
  },
5266
5302
  renderExternalUpdate: !1
5267
5303
  };
@@ -5271,15 +5307,15 @@ const Swiper = {
5271
5307
  !Ie.value && ze.value && (ze.value.emitSlidesClasses(), Ie.value = !0);
5272
5308
  const {
5273
5309
  passedParams: Ke
5274
- } = getParams(Be), Ye = getChangedParams(Ke, je.value, Fe.value, He.value, (Ge) => Ge.props && Ge.props.key);
5275
- je.value = Ke, (Ye.length || Re.value) && ze.value && !ze.value.destroyed && updateSwiper({
5310
+ } = getParams(Be), Xe = getChangedParams(Ke, je.value, Fe.value, He.value, (Ye) => Ye.props && Ye.props.key);
5311
+ je.value = Ke, (Xe.length || Re.value) && ze.value && !ze.value.destroyed && updateSwiper({
5276
5312
  swiper: ze.value,
5277
5313
  slides: Fe.value,
5278
5314
  passedParams: Ke,
5279
- changedParams: Ye,
5315
+ changedParams: Xe,
5280
5316
  nextEl: We.value,
5281
5317
  prevEl: qe.value,
5282
- scrollbarEl: Xe.value,
5318
+ scrollbarEl: Ge.value,
5283
5319
  paginationEl: Ue.value
5284
5320
  }), Re.value = !1;
5285
5321
  }), provide("swiper", ze), watch(Le, () => {
@@ -5292,40 +5328,40 @@ const Swiper = {
5292
5328
  nextEl: We.value,
5293
5329
  prevEl: qe.value,
5294
5330
  paginationEl: Ue.value,
5295
- scrollbarEl: Xe.value,
5331
+ scrollbarEl: Ge.value,
5296
5332
  swiper: ze.value
5297
5333
  }, Je), $e("swiper", ze.value));
5298
5334
  }), onBeforeUnmount(() => {
5299
5335
  ze.value && !ze.value.destroyed && ze.value.destroy(!0, !1);
5300
5336
  });
5301
- function ti(Ke) {
5302
- return Je.virtual ? renderVirtual(ze, Ke, Le.value) : (Ke.forEach((Ye, Ge) => {
5303
- Ye.props || (Ye.props = {}), Ye.props.swiperRef = ze, Ye.props.swiperSlideIndex = Ge;
5337
+ function ii(Ke) {
5338
+ return Je.virtual ? renderVirtual(ze, Ke, Le.value) : (Ke.forEach((Xe, Ye) => {
5339
+ Xe.props || (Xe.props = {}), Xe.props.swiperRef = ze, Xe.props.swiperSlideIndex = Ye;
5304
5340
  }), Ke);
5305
5341
  }
5306
5342
  return () => {
5307
5343
  const {
5308
5344
  slides: Ke,
5309
- slots: Ye
5345
+ slots: Xe
5310
5346
  } = getChildren(ke, Fe, He);
5311
5347
  return h$1(Ne, {
5312
5348
  ref: Ae,
5313
5349
  class: uniqueClasses(De.value)
5314
- }, [Ye["container-start"], h$1(Ve, {
5350
+ }, [Xe["container-start"], h$1(Ve, {
5315
5351
  class: wrapperClass(Je.wrapperClass)
5316
- }, [Ye["wrapper-start"], ti(Ke), Ye["wrapper-end"]]), needsNavigation(Be) && [h$1("div", {
5352
+ }, [Xe["wrapper-start"], ii(Ke), Xe["wrapper-end"]]), needsNavigation(Be) && [h$1("div", {
5317
5353
  ref: qe,
5318
5354
  class: "swiper-button-prev"
5319
5355
  }), h$1("div", {
5320
5356
  ref: We,
5321
5357
  class: "swiper-button-next"
5322
5358
  })], needsScrollbar(Be) && h$1("div", {
5323
- ref: Xe,
5359
+ ref: Ge,
5324
5360
  class: "swiper-scrollbar"
5325
5361
  }), needsPagination(Be) && h$1("div", {
5326
5362
  ref: Ue,
5327
5363
  class: "swiper-pagination"
5328
- }), Ye["container-end"]]);
5364
+ }), Xe["container-end"]]);
5329
5365
  };
5330
5366
  }
5331
5367
  }, SwiperSlide = {
@@ -5470,10 +5506,10 @@ function Navigation(Be) {
5470
5506
  nextEl: We,
5471
5507
  prevEl: qe
5472
5508
  }), We = makeElementsArray(We), qe = makeElementsArray(qe);
5473
- const Ue = (Xe, Je) => {
5474
- Xe && Xe.addEventListener("click", Je === "next" ? Ie : Re), !_e.enabled && Xe && Xe.classList.add(...He.lockClass.split(" "));
5509
+ const Ue = (Ge, Je) => {
5510
+ Ge && Ge.addEventListener("click", Je === "next" ? Ie : Re), !_e.enabled && Ge && Ge.classList.add(...He.lockClass.split(" "));
5475
5511
  };
5476
- We.forEach((Xe) => Ue(Xe, "next")), qe.forEach((Xe) => Ue(Xe, "prev"));
5512
+ We.forEach((Ge) => Ue(Ge, "next")), qe.forEach((Ge) => Ue(Ge, "prev"));
5477
5513
  }
5478
5514
  function ze() {
5479
5515
  let {
@@ -5481,8 +5517,8 @@ function Navigation(Be) {
5481
5517
  prevEl: We
5482
5518
  } = _e.navigation;
5483
5519
  He = makeElementsArray(He), We = makeElementsArray(We);
5484
- const qe = (Ue, Xe) => {
5485
- Ue.removeEventListener("click", Xe === "next" ? Ie : Re), Ue.classList.remove(..._e.params.navigation.disabledClass.split(" "));
5520
+ const qe = (Ue, Ge) => {
5521
+ Ue.removeEventListener("click", Ge === "next" ? Ie : Re), Ue.classList.remove(..._e.params.navigation.disabledClass.split(" "));
5486
5522
  };
5487
5523
  He.forEach((Ue) => qe(Ue, "next")), We.forEach((Ue) => qe(Ue, "prev"));
5488
5524
  }
@@ -5508,14 +5544,14 @@ function Navigation(Be) {
5508
5544
  prevEl: Ue
5509
5545
  } = _e.navigation;
5510
5546
  qe = makeElementsArray(qe), Ue = makeElementsArray(Ue);
5511
- const Xe = We.target;
5512
- let Je = Ue.includes(Xe) || qe.includes(Xe);
5547
+ const Ge = We.target;
5548
+ let Je = Ue.includes(Ge) || qe.includes(Ge);
5513
5549
  if (_e.isElement && !Je) {
5514
5550
  const Ze = We.path || We.composedPath && We.composedPath();
5515
5551
  Ze && (Je = Ze.find((Qe) => qe.includes(Qe) || Ue.includes(Qe)));
5516
5552
  }
5517
5553
  if (_e.params.navigation.hideOnClick && !Je) {
5518
- if (_e.pagination && _e.params.pagination && _e.params.pagination.clickable && (_e.pagination.el === Xe || _e.pagination.el.contains(Xe))) return;
5554
+ if (_e.pagination && _e.params.pagination && _e.params.pagination.clickable && (_e.pagination.el === Ge || _e.pagination.el.contains(Ge))) return;
5519
5555
  let Ze;
5520
5556
  qe.length ? Ze = qe[0].classList.contains(_e.params.navigation.hiddenClass) : Ue.length && (Ze = Ue[0].classList.contains(_e.params.navigation.hiddenClass)), Ne(Ze === !0 ? "navigationShow" : "navigationHide"), [...qe, ...Ue].filter((Qe) => !!Qe).forEach((Qe) => Qe.classList.toggle(_e.params.navigation.hiddenClass));
5521
5557
  }
@@ -5569,14 +5605,14 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5569
5605
  },
5570
5606
  setup(Be) {
5571
5607
  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(() => {
5572
- var We, qe, Ue, Xe, Je, Ze;
5573
- return !!((Ue = (qe = (We = _e.flat) == null ? void 0 : We.type) == null ? void 0 : qe.image_2d) != null && Ue.length && ((Ze = (Je = (Xe = _e.flat) == null ? void 0 : Xe.type) == null ? void 0 : Je.image_3d) != null && Ze.length));
5608
+ var We, qe, Ue, Ge, Je, Ze;
5609
+ return !!((Ue = (qe = (We = _e.flat) == null ? void 0 : We.type) == null ? void 0 : qe.image_2d) != null && Ue.length && ((Ze = (Je = (Ge = _e.flat) == null ? void 0 : Ge.type) == null ? void 0 : Je.image_3d) != null && Ze.length));
5574
5610
  }), ze = computed$1(() => {
5575
5611
  var We;
5576
5612
  return $e("shareable_link") === "true" && ((We = Ne.value) == null ? void 0 : We.is_gold);
5577
5613
  }), je = computed$1(() => {
5578
- var qe, Ue, Xe, Je, Ze, Qe;
5579
- return (De.value && ((Ue = (qe = _e.flat.type) == null ? void 0 : qe.image_2d) != null && Ue.length) ? (Xe = _e.flat.type) == null ? void 0 : Xe.image_2d : !De.value && ((Ze = (Je = _e.flat.type) == null ? void 0 : Je.image_3d) != null && Ze.length) ? (Qe = _e.flat.type) == null ? void 0 : Qe.image_3d : []).slice(0, 6);
5614
+ var qe, Ue, Ge, Je, Ze, Qe;
5615
+ return (De.value && ((Ue = (qe = _e.flat.type) == null ? void 0 : qe.image_2d) != null && Ue.length) ? (Ge = _e.flat.type) == null ? void 0 : Ge.image_2d : !De.value && ((Ze = (Je = _e.flat.type) == null ? void 0 : Je.image_3d) != null && Ze.length) ? (Qe = _e.flat.type) == null ? void 0 : Qe.image_3d : []).slice(0, 6);
5580
5616
  }), Fe = async () => {
5581
5617
  Re.value || !ze.value || (await copyToClipboard(window.location.href), Re.value = !0, setTimeout(() => {
5582
5618
  Re.value = !1;
@@ -5588,8 +5624,8 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5588
5624
  () => De.value,
5589
5625
  () => {
5590
5626
  Le.value = 0, Ie.value++, setTimeout(() => {
5591
- var We, qe, Ue, Xe;
5592
- (qe = (We = Ve.value) == null ? void 0 : We.navigation) == null || qe.init(), (Xe = (Ue = Ve.value) == null ? void 0 : Ue.navigation) == null || Xe.update();
5627
+ var We, qe, Ue, Ge;
5628
+ (qe = (We = Ve.value) == null ? void 0 : We.navigation) == null || qe.init(), (Ge = (Ue = Ve.value) == null ? void 0 : Ue.navigation) == null || Ge.update();
5593
5629
  }, 400);
5594
5630
  }
5595
5631
  ), onMounted(() => {
@@ -5597,7 +5633,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5597
5633
  (Ue = Object.keys(((qe = (We = _e.flat) == null ? void 0 : We.type) == null ? void 0 : qe.image_3d) || {})) != null && Ue.length || (De.value = !0);
5598
5634
  }), (We, qe) => (openBlock(), createBlock(FancyBoxComp, { options: {} }, {
5599
5635
  default: withCtx(() => {
5600
- var Ue, Xe, Je, Ze, Qe, ii, ti, Ke, Ye;
5636
+ var Ue, Ge, Je, Ze, Qe, oi, ii, Ke, Xe;
5601
5637
  return [
5602
5638
  createElementVNode("div", _hoisted_1$o, [
5603
5639
  qe[2] || (qe[2] = createElementVNode("div", { class: "ire-hidden ire-w-fit ire-p-4 md:ire-block" }, null, -1)),
@@ -5607,10 +5643,10 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5607
5643
  mode: "out-in"
5608
5644
  }, {
5609
5645
  default: withCtx(() => {
5610
- var Ge;
5646
+ var Ye;
5611
5647
  return [
5612
5648
  (openBlock(), createBlock(unref(Swiper), {
5613
- key: (Ge = je.value[0]) == null ? void 0 : Ge.url,
5649
+ key: (Ye = je.value[0]) == null ? void 0 : Ye.url,
5614
5650
  "slides-per-view": 1,
5615
5651
  "space-between": 50,
5616
5652
  navigation: {
@@ -5623,19 +5659,19 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5623
5659
  onSwiper: He
5624
5660
  }, {
5625
5661
  default: withCtx(() => [
5626
- (openBlock(!0), createElementBlock(Fragment, null, renderList(je.value, (ei, oi) => (openBlock(), createBlock(unref(SwiperSlide), {
5627
- key: (ei == null ? void 0 : ei.url) + oi,
5662
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(je.value, (ei, ti) => (openBlock(), createBlock(unref(SwiperSlide), {
5663
+ key: (ei == null ? void 0 : ei.url) + ti,
5628
5664
  class: "ire-flex !ire-w-full ire-justify-center ire-bg-gray-50 ire-text-center"
5629
5665
  }, {
5630
5666
  default: withCtx(() => [
5631
5667
  (openBlock(), createElementBlock("a", {
5632
- key: (ei == null ? void 0 : ei.url) + oi,
5668
+ key: (ei == null ? void 0 : ei.url) + ti,
5633
5669
  "data-fancybox": De.value ? "gallery-2d" : "gallery-3d",
5634
5670
  href: ei == null ? void 0 : ei.url,
5635
5671
  class: "irep-flat-preview__left-3d ire-flex ire-w-fit ire-items-center ire-justify-center"
5636
5672
  }, [
5637
5673
  (openBlock(), createElementBlock("img", {
5638
- key: (ei == null ? void 0 : ei.url) + oi,
5674
+ key: (ei == null ? void 0 : ei.url) + ti,
5639
5675
  src: ei == null ? void 0 : ei.url,
5640
5676
  class: "ire-h-full ire-max-h-[450px] ire-w-full ire-object-contain ire-object-center"
5641
5677
  }, null, 8, _hoisted_4$a))
@@ -5700,12 +5736,12 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5700
5736
  })
5701
5737
  ])) : createCommentVNode("", !0),
5702
5738
  Ae.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
5703
- (Ze = (Je = (Xe = (Ue = Be.flat) == null ? void 0 : Ue.type) == null ? void 0 : Xe.image_3d) == null ? void 0 : Je[0]) != null && Ze.url ? (openBlock(), createBlock(_sfc_main$x, {
5739
+ (Ze = (Je = (Ge = (Ue = Be.flat) == null ? void 0 : Ue.type) == null ? void 0 : Ge.image_3d) == null ? void 0 : Je[0]) != null && Ze.url ? (openBlock(), createBlock(_sfc_main$x, {
5704
5740
  key: 0,
5705
5741
  title: unref(tr)("3d plan"),
5706
5742
  variant: De.value ? "outline" : "default",
5707
5743
  class: "ire-w-full sm:ire-w-fit",
5708
- onClick: qe[0] || (qe[0] = (Ge) => De.value = !1)
5744
+ onClick: qe[0] || (qe[0] = (Ye) => De.value = !1)
5709
5745
  }, {
5710
5746
  icon: withCtx(() => [
5711
5747
  createVNode(Cube3d, {
@@ -5714,12 +5750,12 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5714
5750
  ]),
5715
5751
  _: 1
5716
5752
  }, 8, ["title", "variant"])) : createCommentVNode("", !0),
5717
- (Ke = (ti = (ii = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : ii.image_2d) == null ? void 0 : ti[0]) != null && Ke.url ? (openBlock(), createBlock(_sfc_main$x, {
5753
+ (Ke = (ii = (oi = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : oi.image_2d) == null ? void 0 : ii[0]) != null && Ke.url ? (openBlock(), createBlock(_sfc_main$x, {
5718
5754
  key: 1,
5719
5755
  title: unref(tr)("2d plan"),
5720
5756
  variant: De.value ? "default" : "outline",
5721
5757
  class: "ire-w-full sm:ire-w-fit",
5722
- onClick: qe[1] || (qe[1] = (Ge) => De.value = !0)
5758
+ onClick: qe[1] || (qe[1] = (Ye) => De.value = !0)
5723
5759
  }, {
5724
5760
  icon: withCtx(() => [
5725
5761
  createVNode(FlatIcon, {
@@ -5731,7 +5767,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5731
5767
  ], 64)) : createCommentVNode("", !0)
5732
5768
  ])
5733
5769
  ]),
5734
- unref($e)("remove_watermark") !== "true" || !((Ye = unref(Ne)) != null && Ye.is_premium) ? (openBlock(), createElementBlock("div", _hoisted_7$4, [
5770
+ unref($e)("remove_watermark") !== "true" || !((Xe = unref(Ne)) != null && Xe.is_premium) ? (openBlock(), createElementBlock("div", _hoisted_7$4, [
5735
5771
  createElementVNode("a", _hoisted_8$2, [
5736
5772
  createVNode(Logo, { class: "ire-size-12" })
5737
5773
  ])
@@ -5915,9 +5951,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5915
5951
  },
5916
5952
  emits: ["changeComponent"],
5917
5953
  setup(Be) {
5918
- const _e = Be, ke = useGlobalStore(), { getMetaValue: $e } = ke, { irePlaginWp: Ne, shortcodeData: Ve } = storeToRefs(ke), De = inject("fromListView"), Le = ref(!1);
5919
- computed$1(() => $e("separator") === "comma");
5920
- const Re = computed$1(() => {
5954
+ const _e = Be, ke = useGlobalStore(), { getMetaValue: $e } = ke, { irePlaginWp: Ne, shortcodeData: Ve } = storeToRefs(ke), De = inject("fromListView"), Le = ref(!1), Re = computed$1(() => {
5921
5955
  var He;
5922
5956
  return (He = Ve.value) == null ? void 0 : He.configs.tableContactUrl;
5923
5957
  }), Ie = computed$1(() => {
@@ -5927,23 +5961,23 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5927
5961
  var He;
5928
5962
  return !!($e("request_callback") === "true" && ((He = Ne.value) != null && He.is_gold));
5929
5963
  }), ze = computed$1(() => {
5930
- var He, We, qe, Ue, Xe, Je;
5931
- return ((qe = (We = (He = _e.flat) == null ? void 0 : He.type) == null ? void 0 : We.image_3d) == null ? void 0 : qe.length) || ((Je = (Xe = (Ue = _e.flat) == null ? void 0 : Ue.type) == null ? void 0 : Xe.image_2d) == null ? void 0 : Je.length);
5964
+ var He, We, qe, Ue, Ge, Je;
5965
+ return ((qe = (We = (He = _e.flat) == null ? void 0 : He.type) == null ? void 0 : We.image_3d) == null ? void 0 : qe.length) || ((Je = (Ge = (Ue = _e.flat) == null ? void 0 : Ue.type) == null ? void 0 : Ge.image_2d) == null ? void 0 : Je.length);
5932
5966
  }), je = () => {
5933
- var qe, Ue, Xe, Je;
5967
+ var qe, Ue, Ge, Je, Ze;
5934
5968
  if (!Ie.value || De) return;
5935
- const He = (qe = Ve.value) == null ? void 0 : qe.floors.find(
5936
- (Ze) => {
5937
- var Qe, ii, ti;
5938
- return ((Qe = Ze.id) == null ? void 0 : Qe.toString()) === ((ti = (ii = _e.flat) == null ? void 0 : ii.floor_id) == null ? void 0 : ti.toString());
5969
+ const He = (Ue = (qe = Ve.value) == null ? void 0 : qe.floors) == null ? void 0 : Ue.find(
5970
+ (Qe) => {
5971
+ var oi, ii, Ke;
5972
+ return ((oi = Qe.id) == null ? void 0 : oi.toString()) === ((Ke = (ii = _e.flat) == null ? void 0 : ii.floor_id) == null ? void 0 : Ke.toString());
5939
5973
  }
5940
5974
  ), We = {
5941
- flatId: (Ue = _e.flat) == null ? void 0 : Ue.id,
5975
+ flatId: (Ge = _e.flat) == null ? void 0 : Ge.id,
5942
5976
  floorId: He == null ? void 0 : He.id,
5943
- projectId: (Je = (Xe = Ve.value) == null ? void 0 : Xe.project) == null ? void 0 : Je.id
5977
+ projectId: (Ze = (Je = Ve.value) == null ? void 0 : Je.project) == null ? void 0 : Ze.id
5944
5978
  };
5945
- Object.entries(We).forEach(([Ze, Qe]) => {
5946
- Ze && Qe && setQuery(Ze, Qe);
5979
+ Object.entries(We).forEach(([Qe, oi]) => {
5980
+ Qe && oi && setQuery(Qe, oi);
5947
5981
  });
5948
5982
  }, Fe = () => {
5949
5983
  var He;
@@ -5956,7 +5990,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5956
5990
  setQuery(We, "");
5957
5991
  });
5958
5992
  }), (He, We) => {
5959
- var qe, Ue, Xe, Je, Ze, Qe, ii, ti, Ke, Ye, Ge, ei, oi, ni, ri, si, ai, li, ci, di, fi, ui, hi, pi, mi, gi, vi, yi, _i, wi, xi, Ci, ki, Si, Ei, $i, Bi, Pi, Mi, Ni, Ti, Oi, Vi, Di, Li;
5993
+ var qe, Ue, Ge, Je, Ze, Qe, oi, ii, Ke, Xe, Ye, ei, ti, ni, ri, ai, si, li, hi, di, fi, ui, ci, pi, mi, gi, vi, yi, _i, wi, xi, Ci, ki, Si, Ei, $i, Bi, Pi, Mi, Ni, Ti, Oi, Vi, Di, Li, Ri;
5960
5994
  return openBlock(), createElementBlock("div", {
5961
5995
  class: normalizeClass(["irep-flat-preview ire-grid", {
5962
5996
  "lg:ire-grid-cols-[1.4fr,1fr]": ze.value
@@ -5982,23 +6016,23 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
5982
6016
  valueClass: "flat_type_value",
5983
6017
  class: "[&_.flat-preview-value]:ire-min-w-fit [&_.flat-preview-value]:ire-font-semibold"
5984
6018
  }, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5985
- (Xe = (Ue = Be.flat) == null ? void 0 : Ue.type) != null && Xe.title || (Ze = (Je = Be.flat) == null ? void 0 : Je.type) != null && Ze.teaser ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
5986
- createElementVNode("div", _hoisted_4$7, toDisplayString((ii = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : ii.title), 1),
5987
- (Ke = (ti = Be.flat) == null ? void 0 : ti.type) != null && Ke.teaser ? (openBlock(), createElementBlock("div", _hoisted_5$5, toDisplayString((Ge = (Ye = Be.flat) == null ? void 0 : Ye.type) == null ? void 0 : Ge.teaser), 1)) : createCommentVNode("", !0)
6019
+ (Ge = (Ue = Be.flat) == null ? void 0 : Ue.type) != null && Ge.title || (Ze = (Je = Be.flat) == null ? void 0 : Je.type) != null && Ze.teaser ? (openBlock(), createElementBlock("div", _hoisted_3$b, [
6020
+ createElementVNode("div", _hoisted_4$7, toDisplayString((oi = (Qe = Be.flat) == null ? void 0 : Qe.type) == null ? void 0 : oi.title), 1),
6021
+ (Ke = (ii = Be.flat) == null ? void 0 : ii.type) != null && Ke.teaser ? (openBlock(), createElementBlock("div", _hoisted_5$5, toDisplayString((Ye = (Xe = Be.flat) == null ? void 0 : Xe.type) == null ? void 0 : Ye.teaser), 1)) : createCommentVNode("", !0)
5988
6022
  ])) : createCommentVNode("", !0),
5989
6023
  createElementVNode("div", _hoisted_6$4, [
5990
6024
  (ei = Be.flat) != null && ei.block_id ? (openBlock(), createBlock(_sfc_main$y, {
5991
6025
  key: 0,
5992
6026
  keyName: unref(tr)("block"),
5993
- value: ((ri = (ni = unref(getBlockById)(+((oi = Be.flat) == null ? void 0 : oi.block_id))) == null ? void 0 : ni.title) == null ? void 0 : ri.toString()) || "",
6027
+ value: ((ri = (ni = unref(getBlockById)(+((ti = Be.flat) == null ? void 0 : ti.block_id))) == null ? void 0 : ni.title) == null ? void 0 : ri.toString()) || "",
5994
6028
  keyClass: "flat_block_key flat_date_key",
5995
6029
  valueClass: "flat_block_value flat_date_value",
5996
6030
  class: "irep-flat-preview__right-floor-block"
5997
6031
  }, null, 8, ["keyName", "value"])) : createCommentVNode("", !0),
5998
- (si = Be.flat) != null && si.floor_id ? (openBlock(), createBlock(_sfc_main$y, {
6032
+ (ai = Be.flat) != null && ai.floor_id ? (openBlock(), createBlock(_sfc_main$y, {
5999
6033
  key: 1,
6000
6034
  keyName: unref(tr)("floor"),
6001
- value: ((ci = (li = unref(getFloorById)(+((ai = Be.flat) == null ? void 0 : ai.floor_id))) == null ? void 0 : li.floor_number) == null ? void 0 : ci.toString()) || "",
6035
+ value: ((hi = (li = unref(getFloorById)(+((si = Be.flat) == null ? void 0 : si.floor_id))) == null ? void 0 : li.floor_number) == null ? void 0 : hi.toString()) || "",
6002
6036
  keyClass: "flat_floor_name_key flat_date_key",
6003
6037
  valueClass: "flat_floor_name_value flat_date_value",
6004
6038
  class: "irep-flat-preview__right-floor-number"
@@ -6006,7 +6040,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
6006
6040
  (di = Be.flat) != null && di.floor_id ? (openBlock(), createBlock(_sfc_main$y, {
6007
6041
  key: 2,
6008
6042
  keyName: unref(tr)("floor title"),
6009
- value: ((hi = (ui = unref(getFloorById)(+((fi = Be.flat) == null ? void 0 : fi.floor_id))) == null ? void 0 : ui.title) == null ? void 0 : hi.toString()) || "",
6043
+ value: ((ci = (ui = unref(getFloorById)(+((fi = Be.flat) == null ? void 0 : fi.floor_id))) == null ? void 0 : ui.title) == null ? void 0 : ci.toString()) || "",
6010
6044
  keyClass: "flat_floor_key flat_date_key",
6011
6045
  valueClass: "flat_floor_value flat_date_value",
6012
6046
  class: "irep-flat-preview__right-floor-title"
@@ -6042,28 +6076,28 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_render$a]
6042
6076
  ]),
6043
6077
  createElementVNode("div", _hoisted_7$3, [
6044
6078
  createElementVNode("div", {
6045
- class: normalizeClass(["irep-flat-modal-price-container ire-w-fit ire-rounded-sm ire-bg-[var(--primary-color)] ire-p-2 ire-text-4xl ire-text-white", [`irep-flat-modal--${((Ci = Be.flat) == null ? void 0 : Ci.conf) || "price"}`]])
6079
+ class: normalizeClass(["irep-flat-modal-price-container ire-w-fit ire-rounded-sm ire-bg-[var(--primary-color)] ire-p-2 ire-text-4xl ire-text-white", [`irep-flat-modal--${((ki = (Ci = Be.flat) == null ? void 0 : Ci.conf) == null ? void 0 : ki.replace(/ /g, "-")) || "price"}`]])
6046
6080
  }, [
6047
- (ki = Be.flat) != null && ki.conf ? (openBlock(), createElementBlock("div", _hoisted_8$1, toDisplayString(unref(tr)(Be.flat.conf)), 1)) : (Si = Be.flat) != null && Si.request_price ? (openBlock(), createElementBlock("div", _hoisted_9$1, toDisplayString(unref(tr)("Request Price")), 1)) : (Ei = Be.flat) != null && Ei.offer_price ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
6081
+ (Si = Be.flat) != null && Si.conf ? (openBlock(), createElementBlock("div", _hoisted_8$1, toDisplayString(unref(tr)(Be.flat.conf)), 1)) : (Ei = Be.flat) != null && Ei.request_price ? (openBlock(), createElementBlock("div", _hoisted_9$1, toDisplayString(unref(tr)("Request Price")), 1)) : ($i = Be.flat) != null && $i.offer_price ? (openBlock(), createElementBlock("div", _hoisted_10$1, [
6048
6082
  createElementVNode("div", _hoisted_11$1, [
6049
- createTextVNode(toDisplayString(unref(getPrice)(Number(($i = Be.flat) == null ? void 0 : $i.price))) + " ", 1),
6083
+ createTextVNode(toDisplayString(unref(getPrice)(Number((Bi = Be.flat) == null ? void 0 : Bi.price))) + " ", 1),
6050
6084
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
6051
6085
  ]),
6052
6086
  createElementVNode("div", null, [
6053
- createTextVNode(toDisplayString(unref(getPrice)(Number((Bi = Be.flat) == null ? void 0 : Bi.offer_price))) + " ", 1),
6087
+ createTextVNode(toDisplayString(unref(getPrice)(Number((Pi = Be.flat) == null ? void 0 : Pi.offer_price))) + " ", 1),
6054
6088
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
6055
6089
  ])
6056
- ])) : (Pi = Be.flat) != null && Pi.price ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
6057
- createTextVNode(toDisplayString(unref(getPrice)(Number((Mi = Be.flat) == null ? void 0 : Mi.price))) + " ", 1),
6090
+ ])) : (Mi = Be.flat) != null && Mi.price ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
6091
+ createTextVNode(toDisplayString(unref(getPrice)(Number((Ni = Be.flat) == null ? void 0 : Ni.price))) + " ", 1),
6058
6092
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
6059
6093
  ])) : createCommentVNode("", !0)
6060
6094
  ], 2),
6061
6095
  createElementVNode("div", _hoisted_13$1, toDisplayString(unref(tr)("price")), 1)
6062
6096
  ]),
6063
6097
  createElementVNode("div", _hoisted_14, [
6064
- (Oi = (Ti = (Ni = Be.flat) == null ? void 0 : Ni.files) == null ? void 0 : Ti[0]) != null && Oi.url ? (openBlock(), createElementBlock("a", {
6098
+ (Vi = (Oi = (Ti = Be.flat) == null ? void 0 : Ti.files) == null ? void 0 : Oi[0]) != null && Vi.url ? (openBlock(), createElementBlock("a", {
6065
6099
  key: 0,
6066
- href: (Li = (Di = (Vi = Be.flat) == null ? void 0 : Vi.files) == null ? void 0 : Di[0]) == null ? void 0 : Li.url,
6100
+ href: (Ri = (Li = (Di = Be.flat) == null ? void 0 : Di.files) == null ? void 0 : Li[0]) == null ? void 0 : Ri.url,
6067
6101
  target: "_blank",
6068
6102
  class: "irep-flat-moda-action-buttons__download-file ire-w-full ire-p-2 !ire-no-underline hover:!ire-no-underline"
6069
6103
  }, [
@@ -6198,9 +6232,9 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6198
6232
  const Ue = qe.target;
6199
6233
  Ue && (Ie.value = Ue);
6200
6234
  }, He = (qe) => {
6201
- var Xe, Je, Ze;
6235
+ var Ge, Je, Ze;
6202
6236
  const Ue = qe.target;
6203
- (Ue == null ? void 0 : Ue.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(
6237
+ (Ue == null ? void 0 : Ue.nodeName) === "path" && (((Ge = ze.value) == null ? void 0 : Ge.conf) === "reserved" && !De.value || ((Je = ze.value) == null ? void 0 : Je.conf) === "sold" && !Le.value || ke(
6204
6238
  "changeComponent",
6205
6239
  ((Ze = Ae.value) == null ? void 0 : Ze.type) || "",
6206
6240
  ze.value
@@ -6208,21 +6242,25 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6208
6242
  }, We = () => {
6209
6243
  var Ue;
6210
6244
  if (!Re.value) return;
6211
- ((Ue = Re.value) == null ? void 0 : Ue.querySelectorAll("g")).forEach((Xe) => {
6212
- var ii, ti, Ke, Ye;
6213
- const Je = Xe == null ? void 0 : Xe.getAttribute("id"), Ze = (ti = (ii = $e.block) == null ? void 0 : ii.polygon_data) == null ? void 0 : ti.find(
6214
- (Ge) => (Ge == null ? void 0 : Ge.key) === Je
6245
+ ((Ue = Re.value) == null ? void 0 : Ue.querySelectorAll("g")).forEach((Ge) => {
6246
+ var ii, Ke, Xe, Ye;
6247
+ const Je = Ge == null ? void 0 : Ge.getAttribute("id"), Ze = (Ke = (ii = $e.block) == null ? void 0 : ii.polygon_data) == null ? void 0 : Ke.find(
6248
+ (ei) => (ei == null ? void 0 : ei.key) === Je
6215
6249
  ), Qe = Ze == null ? void 0 : Ze.id;
6250
+ let oi = "";
6216
6251
  switch (Ze == null ? void 0 : Ze.type) {
6217
- case "floor":
6218
- const Ge = (Ke = $e.floors) == null ? void 0 : Ke.find((oi) => oi.id === Qe);
6219
- Xe.setAttribute("conf", (Ge == null ? void 0 : Ge.conf) || "");
6252
+ case "floor": {
6253
+ const ei = (Xe = $e.floors) == null ? void 0 : Xe.find((ti) => ti.id === Qe);
6254
+ oi = getConfValue((ei == null ? void 0 : ei.conf) || "");
6220
6255
  break;
6221
- case "flat":
6222
- const ei = (Ye = $e.flats) == null ? void 0 : Ye.find((oi) => oi.id === Qe);
6223
- Xe.setAttribute("conf", (ei == null ? void 0 : ei.conf) || "");
6256
+ }
6257
+ case "flat": {
6258
+ const ei = (Ye = $e.flats) == null ? void 0 : Ye.find((ti) => ti.id === Qe);
6259
+ oi = getConfValue((ei == null ? void 0 : ei.conf) || "");
6224
6260
  break;
6261
+ }
6225
6262
  }
6263
+ Ge.setAttribute("conf", oi || "");
6226
6264
  });
6227
6265
  };
6228
6266
  return watch(
@@ -6233,34 +6271,34 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6233
6271
  ), watch(
6234
6272
  () => Ie.value,
6235
6273
  (qe) => {
6236
- var Xe, Je, Ze, Qe, ii, ti, Ke, Ye;
6274
+ var Ge, Je, Ze, Qe, oi, ii, Ke, Xe;
6237
6275
  if (!qe) return;
6238
6276
  Ve.hoverdSvg = qe;
6239
6277
  const Ue = qe == null ? void 0 : qe.parentElement;
6240
6278
  if (Ue && (Ue == null ? void 0 : Ue.nodeName) === "g") {
6241
- const Ge = Ue == null ? void 0 : Ue.getAttribute("id");
6242
- if (!Ge || (Ae.value = ((Je = (Xe = $e.block) == null ? void 0 : Xe.polygon_data) == null ? void 0 : Je.find((ei) => (ei == null ? void 0 : ei.key) === Ge)) || null, !Ae.value)) return;
6279
+ const Ye = Ue == null ? void 0 : Ue.getAttribute("id");
6280
+ if (!Ye || (Ae.value = ((Je = (Ge = $e.block) == null ? void 0 : Ge.polygon_data) == null ? void 0 : Je.find((ei) => (ei == null ? void 0 : ei.key) === Ye)) || null, !Ae.value)) return;
6243
6281
  if (((Ze = Ae.value) == null ? void 0 : Ze.type) === "floor") {
6244
6282
  const ei = (Qe = $e.floors) == null ? void 0 : Qe.find(
6245
- (oi) => {
6283
+ (ti) => {
6246
6284
  var ni;
6247
- return (oi == null ? void 0 : oi.id) === ((ni = Ae.value) == null ? void 0 : ni.id);
6285
+ return (ti == null ? void 0 : ti.id) === ((ni = Ae.value) == null ? void 0 : ni.id);
6248
6286
  }
6249
6287
  );
6250
6288
  ze.value = ei;
6251
- } else if (((ii = Ae.value) == null ? void 0 : ii.type) === "flat") {
6252
- const ei = (ti = $e.flats) == null ? void 0 : ti.find(
6253
- (oi) => {
6289
+ } else if (((oi = Ae.value) == null ? void 0 : oi.type) === "flat") {
6290
+ const ei = (ii = $e.flats) == null ? void 0 : ii.find(
6291
+ (ti) => {
6254
6292
  var ni;
6255
- return (oi == null ? void 0 : oi.id) === ((ni = Ae.value) == null ? void 0 : ni.id);
6293
+ return (ti == null ? void 0 : ti.id) === ((ni = Ae.value) == null ? void 0 : ni.id);
6256
6294
  }
6257
6295
  );
6258
6296
  ze.value = ei;
6259
6297
  } else if (((Ke = Ae.value) == null ? void 0 : Ke.type) === "tooltip") {
6260
- const ei = (Ye = $e.actions) == null ? void 0 : Ye.find(
6261
- (oi) => {
6298
+ const ei = (Xe = $e.actions) == null ? void 0 : Xe.find(
6299
+ (ti) => {
6262
6300
  var ni;
6263
- return (oi == null ? void 0 : oi.id) === ((ni = Ae.value) == null ? void 0 : ni.id);
6301
+ return (ti == null ? void 0 : ti.id) === ((ni = Ae.value) == null ? void 0 : ni.id);
6264
6302
  }
6265
6303
  );
6266
6304
  ze.value = ei;
@@ -6274,10 +6312,10 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6274
6312
  }), onUnmounted(() => {
6275
6313
  document.removeEventListener("mousemove", Fe);
6276
6314
  }), (qe, Ue) => {
6277
- var Xe;
6315
+ var Ge;
6278
6316
  return openBlock(), createBlock(_sfc_main$E, {
6279
6317
  hoverdData: ze.value,
6280
- type: (Xe = Ae.value) == null ? void 0 : Xe.type
6318
+ type: (Ge = Ae.value) == null ? void 0 : Ge.type
6281
6319
  }, {
6282
6320
  header: withCtx(() => {
6283
6321
  var Je;
@@ -6324,11 +6362,11 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6324
6362
  };
6325
6363
  De = requestAnimationFrame(je);
6326
6364
  }, ze = (je) => {
6327
- var ii;
6328
- const Fe = document.querySelector(".irep-tooltip"), He = ((ii = _e.hoverdSvg) == null ? void 0 : ii.nodeName) === "path" ? _e.hoverdSvg : null;
6365
+ var oi;
6366
+ const Fe = document.querySelector(".irep-tooltip"), He = ((oi = _e.hoverdSvg) == null ? void 0 : oi.nodeName) === "path" ? _e.hoverdSvg : null;
6329
6367
  if (!Ve.value || !Fe || !He)
6330
6368
  return;
6331
- const We = Ve.value.getBoundingClientRect(), qe = He.getBoundingClientRect(), Ue = Fe.getBoundingClientRect(), Xe = We.left + We.width / 2, Je = We.top + We.height / 2, Ze = qe.left > Xe, Qe = qe.bottom > Je;
6369
+ const We = Ve.value.getBoundingClientRect(), qe = He.getBoundingClientRect(), Ue = Fe.getBoundingClientRect(), Ge = We.left + We.width / 2, Je = We.top + We.height / 2, Ze = qe.left > Ge, Qe = qe.bottom > Je;
6332
6370
  Le = je.clientX - We.left - (Ze ? Ue.width : -20), Re = je.clientY - We.top - (Qe ? Ue.height : -20), ke.value && ($e.value = Le, Ne.value = Re), Ae(), ke.value = !1;
6333
6371
  };
6334
6372
  return onMounted(() => {
@@ -6382,12 +6420,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6382
6420
  var Be, _e;
6383
6421
  if (shortcodeData.value)
6384
6422
  return (_e = (Be = shortcodeData.value) == null ? void 0 : Be.flats) == null ? void 0 : _e.map((ke) => {
6385
- var $e;
6423
+ var Ve;
6386
6424
  if (ke != null && ke.use_type || !(ke != null && ke.type)) {
6387
- const Ne = ($e = types.value) == null ? void 0 : $e.find((Ve) => (Ve == null ? void 0 : Ve.id) === (ke == null ? void 0 : ke.type_id));
6388
- Ne && (ke.type = Ne);
6425
+ const De = (Ve = types.value) == null ? void 0 : Ve.find((Le) => (Le == null ? void 0 : Le.id) === (ke == null ? void 0 : ke.type_id));
6426
+ De && (ke.type = De);
6389
6427
  }
6390
- return ke;
6428
+ const $e = getMetaValue("custom_types"), Ne = $e == null ? void 0 : $e.find((De) => De.value === ke.conf);
6429
+ return ke.conf = Ne ? Ne.title : ke.conf, ke;
6391
6430
  });
6392
6431
  }), actions = computed$1(() => {
6393
6432
  var Be;
@@ -6417,8 +6456,13 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6417
6456
  if ((polygonItem == null ? void 0 : polygonItem.click_action) === "follow_link") {
6418
6457
  const { link: Be, target: _e } = polygonItem == null ? void 0 : polygonItem.follow_link;
6419
6458
  openNewTab(Be, _e);
6420
- } else
6459
+ } else {
6460
+ const Be = getMetaValue("custom_types"), _e = Be == null ? void 0 : Be.find(
6461
+ (ke) => ke.title === (polygonItem == null ? void 0 : polygonItem.conf)
6462
+ );
6463
+ if (_e && !(_e != null && _e.open_flat_modal)) return;
6421
6464
  polygonItem && (showFlatModal.value = !0);
6465
+ }
6422
6466
  hoveredData.value = polygonItem;
6423
6467
  break;
6424
6468
  case "tooltip":
@@ -6436,11 +6480,11 @@ const Close = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$9
6436
6480
  break;
6437
6481
  }
6438
6482
  }, actionFromQuery = () => {
6439
- var De, Le;
6483
+ var De, Le, Re, Ie;
6440
6484
  if (!isGoldAndSharable.value) return;
6441
6485
  const Be = getQuery("floorId"), _e = getQuery("flatId"), ke = getQuery("projectId"), $e = document.querySelector(
6442
6486
  `[data-project-id="${ke}"]`
6443
- ), Ne = (De = shortcodeData.value) == null ? void 0 : De.floors.find((Re) => Re.id === Be), Ve = (Le = shortcodeData.value) == null ? void 0 : Le.flats.find((Re) => Re.id === _e);
6487
+ ), Ne = (Le = (De = shortcodeData.value) == null ? void 0 : De.floors) == null ? void 0 : Le.find((Ae) => Ae.id === Be), Ve = (Ie = (Re = shortcodeData.value) == null ? void 0 : Re.flats) == null ? void 0 : Ie.find((Ae) => Ae.id === _e);
6444
6488
  Ve && (Ne && changeRoute("floor", Ne), setTimeout(() => {
6445
6489
  $e && $e.scrollIntoView(), changeRoute("flat", Ve);
6446
6490
  }, 400));
@@ -7319,9 +7363,9 @@ const MagnifyIcon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_re
7319
7363
  ], Le = useModel(Be, "filtersObject"), Re = computed$1(() => {
7320
7364
  var He;
7321
7365
  const ze = (((He = ke.value) == null ? void 0 : He.flats.map((We) => We.floor_id).filter((We) => We)) || []).map((We) => {
7322
- var Ue;
7323
- const qe = (Ue = ke.value) == null ? void 0 : Ue.floors.find(
7324
- (Xe) => Xe.id === We
7366
+ var Ue, Ge;
7367
+ const qe = (Ge = (Ue = ke.value) == null ? void 0 : Ue.floors) == null ? void 0 : Ge.find(
7368
+ (Je) => Je.id === We
7325
7369
  );
7326
7370
  return {
7327
7371
  floorId: qe == null ? void 0 : qe.id,
@@ -7493,75 +7537,79 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7493
7537
  }), Ue = computed$1(() => {
7494
7538
  if (Ne.value)
7495
7539
  return Ne.value.types;
7496
- }), Xe = computed$1(() => Ne.value ? Ne.value.flats.map((Ge) => {
7497
- var ri, si, ai, li;
7498
- const ei = (ri = Ne.value) == null ? void 0 : ri.floors.find(
7499
- (ci) => ci.id === Ge.floor_id
7500
- ), oi = (si = Ne.value) == null ? void 0 : si.blocks.find(
7501
- (ci) => ci.id === Ge.block_id
7502
- ), ni = Ge.use_type || !Ge.type ? ((ai = Ue.value) == null ? void 0 : ai.find((ci) => ci.id === Ge.type_id)) ?? Ge.type : Ge.type;
7540
+ }), Ge = computed$1(() => Ne.value ? Ne.value.flats.map((Ye) => {
7541
+ var si, li, hi, di, fi, ui;
7542
+ const ei = (li = (si = Ne.value) == null ? void 0 : si.floors) == null ? void 0 : li.find(
7543
+ (ci) => ci.id === Ye.floor_id
7544
+ ), ti = (di = (hi = Ne.value) == null ? void 0 : hi.blocks) == null ? void 0 : di.find(
7545
+ (ci) => ci.id === Ye.block_id
7546
+ ), ni = Ye.use_type || !Ye.type ? ((fi = Ue.value) == null ? void 0 : fi.find((ci) => ci.id === Ye.type_id)) ?? Ye.type : Ye.type, ri = $e("custom_types"), ai = ri == null ? void 0 : ri.find((ci) => ci.value === Ye.conf);
7503
7547
  return {
7504
- ...Ge,
7548
+ ...Ye,
7505
7549
  type: {
7506
7550
  ...ni,
7507
7551
  area_m2_n: Number(ni == null ? void 0 : ni.area_m2),
7508
- area_m2: getArea(Number(ni == null ? void 0 : ni.area_m2)),
7509
- rooms_count: getRoomCount(Number((li = Ge.type) == null ? void 0 : li.rooms_count))
7552
+ area_m2: `${getArea(Number(ni == null ? void 0 : ni.area_m2))} ${getAreaUnitLabel()}²`,
7553
+ rooms_count: getRoomCount(Number((ui = Ye.type) == null ? void 0 : ui.rooms_count))
7510
7554
  },
7511
- price_n: Number(Ge.price),
7512
- 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()}`,
7555
+ price_n: Number(Ye.price),
7556
+ price: Ye.conf ? ai ? ai.title : tr(Ye.conf) : Ye.request_price ? tr("Request Price") : `${getPrice(Number((Ye == null ? void 0 : Ye.offer_price) || (Ye == null ? void 0 : Ye.price)))} ${currencySymbol()}`,
7513
7557
  floor_title: ei == null ? void 0 : ei.title,
7514
7558
  floor_number: Number.isFinite(Number(ei == null ? void 0 : ei.floor_number)) ? Number(ei == null ? void 0 : ei.floor_number) : "",
7515
- block_title: oi == null ? void 0 : oi.title
7559
+ block_title: ti == null ? void 0 : ti.title,
7560
+ conf: ai ? ai.title : Ye.conf
7516
7561
  };
7517
- }).map((Ge) => {
7518
- var oi;
7519
- const ei = (oi = Ge.type) == null ? void 0 : oi.other.reduce(
7562
+ }).map((Ye) => {
7563
+ var ti;
7564
+ const ei = (ti = Ye.type) == null ? void 0 : ti.other.reduce(
7520
7565
  (ni, ri) => (ni[ri.key] = ri.value, ni),
7521
7566
  {}
7522
7567
  );
7523
- return { ...Ge, type: { ...Ge.type, other: ei } };
7524
- }).sort((Ge, ei) => {
7525
- const oi = Re.value;
7526
- let ni = Ge[oi], ri = ei[oi];
7527
- oi != null && oi.includes(".") && (ni = getNested(Ge, oi), ri = getNested(ei, oi)), ni == null && (ni = "0"), ri == null && (ri = "0");
7528
- const si = ni.toString(), ai = ri.toString();
7529
- return !isNaN(si) && !isNaN(ai) ? Ie.value === "desc" ? ai - si : si - ai : Ie.value === "desc" ? String(ri).localeCompare(String(ni)) : String(ni).localeCompare(String(ri));
7568
+ return { ...Ye, type: { ...Ye.type, other: ei } };
7569
+ }).sort((Ye, ei) => {
7570
+ const ti = Re.value;
7571
+ let ni = Ye[ti], ri = ei[ti];
7572
+ ti != null && ti.includes(".") && (ni = getNested(Ye, ti), ri = getNested(ei, ti)), ni == null && (ni = "0"), ri == null && (ri = "0");
7573
+ const ai = ni.toString(), si = ri.toString();
7574
+ return !isNaN(ai) && !isNaN(si) ? Ie.value === "desc" ? si - ai : ai - si : Ie.value === "desc" ? String(ri).localeCompare(String(ni)) : String(ni).localeCompare(String(ri));
7530
7575
  }) : []), Je = computed$1(() => {
7531
- var Ye;
7532
- return Qe.value ? Math.ceil(((Ye = Ze.value) == null ? void 0 : Ye.length) / ze.value) : 0;
7533
- }), Ze = computed$1(() => Xe.value ? Xe.value.filter((Ge) => {
7534
- var hi, pi, mi, gi, vi;
7535
- const [ei, oi] = qe.value.priceRange.split("-").map(Number), [ni, ri] = qe.value.areaRange.split("-").map(Number), [si, ai] = qe.value.roomRange.split("-").map(Number), li = Ge.price_n >= ei && Ge.price_n <= oi, ci = ((hi = Ge.type) == null ? void 0 : hi.area_m2_n) >= ni && ((pi = Ge.type) == null ? void 0 : pi.area_m2_n) <= ri, di = (mi = qe.value) != null && mi.floor ? Ge.floor_id === qe.value.floor : !0, fi = ai === 1 / 0 || +((gi = Ge.type) == null ? void 0 : gi.rooms_count) >= si && +((vi = Ge.type) == null ? void 0 : vi.rooms_count) <= ai;
7576
+ var Xe;
7577
+ return Qe.value ? Math.ceil(((Xe = Ze.value) == null ? void 0 : Xe.length) / ze.value) : 0;
7578
+ }), Ze = computed$1(() => Ge.value ? Ge.value.filter((Ye) => {
7579
+ var ci, pi, mi, gi, vi;
7580
+ const [ei, ti] = qe.value.priceRange.split("-").map(Number), [ni, ri] = qe.value.areaRange.split("-").map(Number), [ai, si] = qe.value.roomRange.split("-").map(Number), li = Ye.price_n >= ei && Ye.price_n <= ti, hi = ((ci = Ye.type) == null ? void 0 : ci.area_m2_n) >= ni && ((pi = Ye.type) == null ? void 0 : pi.area_m2_n) <= ri, di = (mi = qe.value) != null && mi.floor ? Ye.floor_id === qe.value.floor : !0, fi = si === 1 / 0 || +((gi = Ye.type) == null ? void 0 : gi.rooms_count) >= ai && +((vi = Ye.type) == null ? void 0 : vi.rooms_count) <= si;
7536
7581
  let ui = !0;
7537
- return qe.value.config !== "all" && (qe.value.config === "available" ? ui = !Ge.conf : qe.value.config === "reserved" ? ui = Ge.conf === "reserved" : qe.value.config === "sold" && (ui = Ge.conf === "sold")), li && ci && di && fi && ui;
7582
+ return qe.value.config !== "all" && (qe.value.config === "available" ? ui = !Ye.conf : qe.value.config === "reserved" ? ui = Ye.conf === "reserved" : qe.value.config === "sold" && (ui = Ye.conf === "sold")), li && hi && di && fi && ui;
7538
7583
  }) : []), Qe = computed$1(() => {
7539
7584
  var ei;
7540
7585
  if (!((ei = Ne.value) != null && ei.flats)) return [];
7541
- const Ye = (Fe.value - 1) * ze.value, Ge = Ye + ze.value;
7542
- return Ze.value.slice(Ye, Ge);
7543
- }), ii = (Ye, Ge = !0) => {
7544
- Fe.value = Ye, je.value, Ge && Le(je.value, 50), setQuery("flats-page", Ye.toString());
7545
- }, ti = (Ye, Ge) => {
7546
- Re.value = Ye, Ie.value = Ge;
7547
- }, Ke = (Ye) => {
7548
- const Ge = De.value.find((ei) => ei.id === Ye);
7549
- We.value = Ge, He.value = !0;
7586
+ const Xe = (Fe.value - 1) * ze.value, Ye = Xe + ze.value;
7587
+ return Ze.value.slice(Xe, Ye);
7588
+ }), oi = (Xe, Ye = !0) => {
7589
+ Fe.value = Xe, je.value, Ye && Le(je.value, 50), setQuery("flats-page", Xe.toString());
7590
+ }, ii = (Xe, Ye) => {
7591
+ Re.value = Xe, Ie.value = Ye;
7592
+ }, Ke = (Xe) => {
7593
+ var ni;
7594
+ const Ye = (ni = De.value) == null ? void 0 : ni.find((ri) => ri.id === Xe), ei = $e("custom_types"), ti = ei == null ? void 0 : ei.find(
7595
+ (ri) => ri.value === (Ye == null ? void 0 : Ye.conf)
7596
+ );
7597
+ Ye.conf = ti ? ti.title : Ye == null ? void 0 : Ye.conf, We.value = Ye, He.value = !0;
7550
7598
  };
7551
7599
  return watch(
7552
7600
  () => qe.value,
7553
7601
  () => {
7554
- Fe.value = 1, ii(1, !1);
7602
+ Fe.value = 1, oi(1, !1);
7555
7603
  },
7556
7604
  {
7557
7605
  deep: !0
7558
7606
  }
7559
7607
  ), onMounted(() => {
7560
- const Ye = getQuery("flats-page");
7561
- Ye && !isNaN(Number(Ye)) && (Fe.value = Number(Ye)), _e.perPage && !isNaN(Number(_e.perPage)) && (ze.value = Number(_e.perPage));
7608
+ const Xe = getQuery("flats-page");
7609
+ Xe && !isNaN(Number(Xe)) && (Fe.value = Number(Xe)), _e.perPage && !isNaN(Number(_e.perPage)) && (ze.value = Number(_e.perPage));
7562
7610
  }), onBeforeMount(() => {
7563
7611
  Ae.value = _e.layout === "table", _e.orderBy && (Re.value = _e.orderBy, Ie.value = "asc");
7564
- }), provide("fromListView", _e.fromListView), (Ye, Ge) => (openBlock(), createBlock(_sfc_main$L, { class: "irep-flats-list ire-text-base" }, {
7612
+ }), provide("fromListView", _e.fromListView), (Xe, Ye) => (openBlock(), createBlock(_sfc_main$L, { class: "irep-flats-list ire-text-base" }, {
7565
7613
  default: withCtx(() => {
7566
7614
  var ei;
7567
7615
  return [
@@ -7572,13 +7620,13 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7572
7620
  createElementVNode("div", _hoisted_1, [
7573
7621
  createVNode(_sfc_main$2, {
7574
7622
  "filters-object": qe.value,
7575
- "onUpdate:filtersObject": Ge[0] || (Ge[0] = (oi) => qe.value = oi)
7623
+ "onUpdate:filtersObject": Ye[0] || (Ye[0] = (ti) => qe.value = ti)
7576
7624
  }, null, 8, ["filters-object"])
7577
7625
  ]),
7578
7626
  Be.layout === "mixed" ? (openBlock(), createElementBlock("div", _hoisted_2, [
7579
7627
  createElementVNode("button", {
7580
7628
  class: "irep-flats-top__mode-switcher-button ire-group ire-flex ire-cursor-pointer ire-items-center ire-gap-1 ire-bg-transparent ire-capitalize",
7581
- onClick: Ge[1] || (Ge[1] = (oi) => Ae.value = !Ae.value)
7629
+ onClick: Ye[1] || (Ye[1] = (ti) => Ae.value = !Ae.value)
7582
7630
  }, [
7583
7631
  createElementVNode("div", _hoisted_3, [
7584
7632
  createVNode(Transition, {
@@ -7620,13 +7668,13 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7620
7668
  Ae.value ? (openBlock(), createBlock(_sfc_main$3, {
7621
7669
  key: 0,
7622
7670
  flats: Qe.value,
7623
- onSortColumn: Ge[2] || (Ge[2] = (oi, ni) => ti(oi, ni)),
7624
- onOpenFlat: Ge[3] || (Ge[3] = (oi) => Ke(oi))
7671
+ onSortColumn: Ye[2] || (Ye[2] = (ti, ni) => ii(ti, ni)),
7672
+ onOpenFlat: Ye[3] || (Ye[3] = (ti) => Ke(ti))
7625
7673
  }, null, 8, ["flats"])) : (openBlock(), createElementBlock("div", _hoisted_4, [
7626
- (openBlock(!0), createElementBlock(Fragment, null, renderList(Qe.value, (oi) => (openBlock(), createBlock(_sfc_main$e, {
7627
- key: oi.id,
7628
- flat: oi,
7629
- onOpenFlat: Ge[4] || (Ge[4] = (ni) => Ke(ni))
7674
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(Qe.value, (ti) => (openBlock(), createBlock(_sfc_main$e, {
7675
+ key: ti.id,
7676
+ flat: ti,
7677
+ onOpenFlat: Ye[4] || (Ye[4] = (ni) => Ke(ni))
7630
7678
  }, null, 8, ["flat"]))), 128))
7631
7679
  ]))
7632
7680
  ]),
@@ -7636,8 +7684,8 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7636
7684
  createVNode(unref(script$1), {
7637
7685
  modelValue: Fe.value,
7638
7686
  "onUpdate:modelValue": [
7639
- Ge[5] || (Ge[5] = (oi) => Fe.value = oi),
7640
- ii
7687
+ Ye[5] || (Ye[5] = (ti) => Fe.value = ti),
7688
+ oi
7641
7689
  ],
7642
7690
  pages: Je.value,
7643
7691
  "range-size": 1,
@@ -7654,7 +7702,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_rende
7654
7702
  He.value && We.value ? (openBlock(), createBlock(_sfc_main$m, {
7655
7703
  key: 0,
7656
7704
  style: normalizeStyle(unref(Ve)),
7657
- onClose: Ge[6] || (Ge[6] = (oi) => He.value = !1)
7705
+ onClose: Ye[6] || (Ye[6] = (ti) => He.value = !1)
7658
7706
  }, {
7659
7707
  default: withCtx(() => [
7660
7708
  createVNode(_sfc_main$o, { flat: We.value }, null, 8, ["flat"])