ire-preview 3.3.7 → 3.3.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/lib.es.js +21 -21
  2. package/package.json +1 -1
package/dist/lib.es.js CHANGED
@@ -593,7 +593,7 @@ const tr = (Be) => {
593
593
  ], ke = ((Ve = (Ne = ($e = useGlobalStore().shortcodeData) == null ? void 0 : $e.meta) == null ? void 0 : Ne.find((De) => De.meta_key === "currency")) == null ? void 0 : Ve.meta_value.toString()) || "usd";
594
594
  return ((Le = Be == null ? void 0 : Be.find((De) => De.value === ke)) == null ? void 0 : Le.symbol) || "$";
595
595
  }, getPrice = (Be) => {
596
- const _e = useGlobalStore(), { getMetaValue: ke, priceRounded: $e } = _e, Ne = ke("separator") === "comma", Ve = $e ? 0 : 2, Le = {
596
+ const _e = useGlobalStore(), { getMetaValue: ke, priceRounded: $e } = _e, Ne = ke("price_separator") === "comma", Ve = $e ? 0 : 2, Le = {
597
597
  minimumFractionDigits: Ve,
598
598
  maximumFractionDigits: Ve
599
599
  };
@@ -661,7 +661,7 @@ const tr = (Be) => {
661
661
  }, _hoisted_3$o = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$k = { class: "irep-tooltip-1__floor-number !ire-text-2xl" }, _hoisted_5$h = { class: "irep-tooltip-1__floor-text !ire-text-sm ire-uppercase" }, _hoisted_6$f = {
662
662
  key: 0,
663
663
  class: "ire-rounded-lg ire-bg-gray-100 ire-p-6"
664
- }, _hoisted_7$c = {
664
+ }, _hoisted_7$d = {
665
665
  key: 0,
666
666
  class: "irep-tooltip-1__floor-conf !ire-text-2xl"
667
667
  }, _hoisted_8$a = { key: 1 }, _hoisted_9$a = {
@@ -714,7 +714,7 @@ const tr = (Be) => {
714
714
  createElementVNode("div", _hoisted_5$h, toDisplayString(unref(tr)("floor")), 1)
715
715
  ]),
716
716
  (Le = Be.hoveredData) != null && Le.conf || (Ae = (De = Be.hoveredData) == null ? void 0 : De.flats) != null && Ae.length ? (openBlock(), createElementBlock("div", _hoisted_6$f, [
717
- ke.value ? (openBlock(), createElementBlock("div", _hoisted_7$c, toDisplayString(ke.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_8$a, [
717
+ ke.value ? (openBlock(), createElementBlock("div", _hoisted_7$d, toDisplayString(ke.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_8$a, [
718
718
  (Re = (Ie = Be.hoveredData) == null ? void 0 : Ie.counts) != null && Re.available ? (openBlock(), createElementBlock("div", _hoisted_9$a, [
719
719
  createElementVNode("div", _hoisted_10$7, toDisplayString(((Fe = (ze = Be.hoveredData) == null ? void 0 : ze.counts) == null ? void 0 : Fe.available) || 0), 1),
720
720
  createElementVNode("div", _hoisted_11$6, toDisplayString(unref(tr)("available")), 1)
@@ -850,7 +850,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_rende
850
850
  }, _hoisted_2$t = { class: "ire-flex ire-w-full ire-items-center ire-justify-evenly ire-p-4" }, _hoisted_3$n = { class: "irep-tooltip-2__floor-number ire-text-3xl ire-capitalize" }, _hoisted_4$j = {
851
851
  key: 0,
852
852
  class: "irep-tooltip-2__floor-conf ire-text-2xl ire-uppercase"
853
- }, _hoisted_5$g = { key: 1 }, _hoisted_6$e = { class: "irep-tooltip-2__floor-starting ire-text-sm ire-text-gray-400" }, _hoisted_7$b = { class: "irep-tooltip-2__floor-price" }, _hoisted_8$9 = { class: "ire-right-[2px] ire-text-gray-200" }, _hoisted_9$9 = { class: "ire-flex ire-items-center ire-justify-between ire-gap-2 ire-bg-gray-800 ire-p-2" }, _hoisted_10$6 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_11$5 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_12$5 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_13$3 = {
853
+ }, _hoisted_5$g = { key: 1 }, _hoisted_6$e = { class: "irep-tooltip-2__floor-starting ire-text-sm ire-text-gray-400" }, _hoisted_7$c = { class: "irep-tooltip-2__floor-price" }, _hoisted_8$9 = { class: "ire-right-[2px] ire-text-gray-200" }, _hoisted_9$9 = { class: "ire-flex ire-items-center ire-justify-between ire-gap-2 ire-bg-gray-800 ire-p-2" }, _hoisted_10$6 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_11$5 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_12$5 = { class: "irep-tooltip-2__floor-status ire-flex ire-gap-1 ire-text-center ire-text-sm" }, _hoisted_13$3 = {
854
854
  key: 1,
855
855
  class: "irep-tooltip-2__block ire-flex ire-items-center ire-gap-3 ire-p-4 !ire-text-sm"
856
856
  }, _hoisted_14$3 = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_15$2 = { class: "irep-tooltip-2__block-title" }, _hoisted_16$2 = { class: "irep-tooltip-2__block-conf ire-text-gray-300 ire-opacity-80" }, _hoisted_17$1 = {
@@ -912,7 +912,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_rende
912
912
  Le[0] || (Le[0] = createElementVNode("span", null, "|", -1)),
913
913
  Ne.value ? (openBlock(), createElementBlock("div", _hoisted_4$j, toDisplayString(Ne.value), 1)) : (openBlock(), createElementBlock("div", _hoisted_5$g, [
914
914
  createElementVNode("div", _hoisted_6$e, toDisplayString(unref(tr)("starting from")) + ": ", 1),
915
- createElementVNode("div", _hoisted_7$b, [
915
+ createElementVNode("div", _hoisted_7$c, [
916
916
  createTextVNode(toDisplayString(unref(getPrice)(+((Ie = (Ae = Be.hoveredData) == null ? void 0 : Ae.counts) == null ? void 0 : Ie.minimum_price) || 0)) + " ", 1),
917
917
  createElementVNode("span", _hoisted_8$9, toDisplayString(unref(currencySymbol)()), 1)
918
918
  ])
@@ -992,7 +992,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_rende
992
992
  }, _hoisted_3$m = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_4$i = { class: "irep-tooltip-3__floor-number !ire-text-2xl" }, _hoisted_5$f = { class: "irep-tooltip-3__floor-text !ire-text-sm ire-uppercase" }, _hoisted_6$d = {
993
993
  key: 1,
994
994
  class: "irep-tooltip-3__block ire-flex ire-items-center ire-gap-3"
995
- }, _hoisted_7$a = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_8$8 = { class: "irep-tooltip-3__block-title !text-2xl" }, _hoisted_9$8 = {
995
+ }, _hoisted_7$b = { class: "ire-flex ire-w-max ire-flex-col ire-items-center" }, _hoisted_8$8 = { class: "irep-tooltip-3__block-title !text-2xl" }, _hoisted_9$8 = {
996
996
  key: 2,
997
997
  class: "irep-tooltip-3__flat ire-flex ire-w-full ire-flex-col ire-items-center ire-gap-3"
998
998
  }, _hoisted_10$5 = { class: "ire-flex ire-flex-col ire-items-center" }, _hoisted_11$4 = { class: "irep-tooltip-3__flat-number ire-max-w-52 ire-text-center !ire-text-2xl ire-capitalize" }, _hoisted_12$4 = { class: "irep-tooltip-3__flat-text !ire-mt-2 ire-text-sm ire-uppercase" }, _sfc_main$W = /* @__PURE__ */ defineComponent({
@@ -1019,7 +1019,7 @@ const MoneyBag = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["render", _sfc_rende
1019
1019
  createElementVNode("div", _hoisted_5$f, toDisplayString(unref(tr)("floor")), 1)
1020
1020
  ])
1021
1021
  ])) : Be.type === "block" ? (openBlock(), createElementBlock("div", _hoisted_6$d, [
1022
- createElementVNode("div", _hoisted_7$a, [
1022
+ createElementVNode("div", _hoisted_7$b, [
1023
1023
  createElementVNode("div", _hoisted_8$8, toDisplayString((Le = Be.hoveredData) == null ? void 0 : Le.title), 1)
1024
1024
  ])
1025
1025
  ])) : Be.type === "flat" ? (openBlock(), createElementBlock("div", _hoisted_9$8, [
@@ -1641,7 +1641,7 @@ function _sfc_render$e(Be, _e) {
1641
1641
  const LineChartIcon = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_render$e]]), _hoisted_1$C = { class: "ire-absolute ire-right-2 ire-top-2 ire-z-[999] ire-flex ire-w-fit" }, _hoisted_2$m = ["aria-label"], _hoisted_3$i = { class: "ire-shrink-0 ire-px-5 ire-pt-4" }, _hoisted_4$f = { class: "ire-mb-4" }, _hoisted_5$e = { class: "ire-text-lg ire-font-bold ire-capitalize ire-text-gray-900" }, _hoisted_6$c = {
1642
1642
  class: "ire-mt-1 ire-flex ire-items-center ire-gap-1.5 ire-text-sm ire-font-medium ire-capitalize",
1643
1643
  style: { color: "#336b73" }
1644
- }, _hoisted_7$9 = {
1644
+ }, _hoisted_7$a = {
1645
1645
  key: 0,
1646
1646
  class: "ire-relative ire-mb-5 ire-rounded-xl ire-bg-white/60 ire-px-2 ire-pb-1 ire-pt-3"
1647
1647
  }, _hoisted_8$7 = ["aria-pressed", "aria-label", "title"], _hoisted_9$7 = ["viewBox"], _hoisted_10$4 = ["d", "stroke"], _hoisted_11$3 = { key: 1 }, _hoisted_12$3 = ["cx", "cy", "r", "fill"], _hoisted_13$2 = ["x", "y"], _hoisted_14$2 = {
@@ -1860,7 +1860,7 @@ const LineChartIcon = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_
1860
1860
  createElementVNode("span", null, toDisplayString(unref(tr)("last 6 months")), 1)
1861
1861
  ])
1862
1862
  ]),
1863
- Xe.value ? (openBlock(), createElementBlock("div", _hoisted_7$9, [
1863
+ Xe.value ? (openBlock(), createElementBlock("div", _hoisted_7$a, [
1864
1864
  createElementVNode("div", {
1865
1865
  type: "button",
1866
1866
  class: "ire-absolute ire-left-2 ire-top-2 ire-z-10 ire-flex ire-size-8 ire-cursor-pointer ire-items-center ire-justify-center ire-rounded-full ire-border ire-border-gray-200 ire-bg-white/95 ire-text-gray-600 ire-shadow-sm ire-transition-colors hover:ire-bg-gray-50 hover:ire-text-gray-900",
@@ -2007,7 +2007,7 @@ const LineChartIcon = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_
2007
2007
  }, _hoisted_4$e = {
2008
2008
  key: 1,
2009
2009
  class: "ire-uppercase"
2010
- }, _hoisted_5$d = { key: 2 }, _hoisted_6$b = { class: "flat-preview-price-through-value ire-text-left ire-text-base ire-line-through ire-decoration-black/50" }, _hoisted_7$8 = { key: 3 }, _hoisted_8$6 = {
2010
+ }, _hoisted_5$d = { key: 2 }, _hoisted_6$b = { class: "flat-preview-price-through-value ire-text-left ire-text-base ire-line-through ire-decoration-black/50" }, _hoisted_7$9 = { key: 3 }, _hoisted_8$6 = {
2011
2011
  key: 4,
2012
2012
  class: "ire-uppercase"
2013
2013
  }, _hoisted_9$6 = {
@@ -2063,7 +2063,7 @@ const LineChartIcon = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_
2063
2063
  createTextVNode(toDisplayString(unref(getPrice)(Number((Xe = Be.flat) == null ? void 0 : Xe.offer_price))) + " ", 1),
2064
2064
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
2065
2065
  ])
2066
- ])) : Number((ei = Be.flat) == null ? void 0 : ei.price) > 0 ? (openBlock(), createElementBlock("div", _hoisted_7$8, [
2066
+ ])) : Number((ei = Be.flat) == null ? void 0 : ei.price) > 0 ? (openBlock(), createElementBlock("div", _hoisted_7$9, [
2067
2067
  createTextVNode(toDisplayString(unref(getPrice)(Number((ri = Be.flat) == null ? void 0 : ri.price))) + " ", 1),
2068
2068
  createElementVNode("span", null, toDisplayString(unref(currencySymbol)()), 1)
2069
2069
  ])) : (openBlock(), createElementBlock("div", _hoisted_8$6, toDisplayString(unref(tr)("available")), 1))
@@ -6064,7 +6064,7 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_r
6064
6064
  }, _hoisted_2$j = ["data-fancybox", "href"], _hoisted_3$g = ["src"], _hoisted_4$d = {
6065
6065
  key: 1,
6066
6066
  class: "ire-pointer-events-none ire-absolute ire-bottom-3 ire-left-1/2 ire-z-20 ire-w-[min(100%,16rem)] -ire-translate-x-1/2 ire-px-2"
6067
- }, _hoisted_5$c = ["aria-label"], _hoisted_6$a = ["aria-selected"], _hoisted_7$7 = { class: "ire-whitespace-nowrap" }, _hoisted_8$5 = ["aria-selected"], _hoisted_9$5 = { class: "ire-whitespace-nowrap" }, _sfc_main$C = /* @__PURE__ */ defineComponent({
6067
+ }, _hoisted_5$c = ["aria-label"], _hoisted_6$a = ["aria-selected"], _hoisted_7$8 = { class: "ire-whitespace-nowrap" }, _hoisted_8$5 = ["aria-selected"], _hoisted_9$5 = { class: "ire-whitespace-nowrap" }, _sfc_main$C = /* @__PURE__ */ defineComponent({
6068
6068
  __name: "FlatSwiperTwo",
6069
6069
  props: {
6070
6070
  flat: {},
@@ -6187,7 +6187,7 @@ const FancyBoxComp = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_r
6187
6187
  createVNode(Cube3d, {
6188
6188
  class: normalizeClass(["ire-size-3.5 ire-shrink-0 sm:ire-size-4 [&_path]:ire-stroke-current", Ne.value ? "ire-text-black" : "ire-text-gray-900"])
6189
6189
  }, null, 8, ["class"]),
6190
- createElementVNode("span", _hoisted_7$7, toDisplayString(unref(tr)("3d plan")), 1)
6190
+ createElementVNode("span", _hoisted_7$8, toDisplayString(unref(tr)("3d plan")), 1)
6191
6191
  ], 10, _hoisted_6$a)) : createCommentVNode("", !0),
6192
6192
  (Ye = (ri = (ei = (Xe = Be.flat) == null ? void 0 : Xe.type) == null ? void 0 : ei.image_2d) == null ? void 0 : ri[0]) != null && Ye.url ? (openBlock(), createElementBlock("div", {
6193
6193
  key: 1,
@@ -6319,7 +6319,7 @@ const DownloadIcon = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_r
6319
6319
  onClick: Ne[0] || (Ne[0] = (He) => ke("showForm"))
6320
6320
  }, [
6321
6321
  createVNode(_sfc_main$B, {
6322
- title: unref(tr)("request callback"),
6322
+ title: unref(tr)("Request callback"),
6323
6323
  active: "",
6324
6324
  class: "!ire-w-full"
6325
6325
  }, {
@@ -6366,7 +6366,7 @@ const DownloadIcon = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_r
6366
6366
  createElementVNode("div", _hoisted_3$e, [
6367
6367
  withDirectives(createElementVNode("input", {
6368
6368
  "onUpdate:modelValue": $e[0] || ($e[0] = (Ne) => _e.value = Ne),
6369
- placeholder: Be.placeholder,
6369
+ placeholder: unref(tr)(Be.placeholder || ""),
6370
6370
  type: Be.type || "text",
6371
6371
  required: Be.required,
6372
6372
  class: "no-spinner ire-w-full ire-rounded-md !ire-border-none !ire-p-2 ire-text-base !ire-outline-none !ire-ring-[1px] !ire-ring-gray-200 ire-transition-all focus:!ire-ring-2 focus:!ire-ring-black"
@@ -6396,7 +6396,7 @@ const DownloadIcon = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_r
6396
6396
  }, _hoisted_2$e = {
6397
6397
  key: 1,
6398
6398
  class: "irep-callback-form ire-flex ire-flex-col ire-gap-4"
6399
- }, _hoisted_3$d = { class: "irep-callback-form__title ire-text-lg ire-font-semibold ire-text-black" }, _hoisted_4$b = { class: "ire-flex ire-flex-col ire-text-black" }, _hoisted_5$a = { class: "ire-mb-1 ire-text-base" }, _hoisted_6$9 = {
6399
+ }, _hoisted_3$d = { class: "irep-callback-form__title ire-text-lg ire-font-semibold ire-text-black" }, _hoisted_4$b = { class: "ire-flex ire-flex-col ire-text-black" }, _hoisted_5$a = { class: "ire-mb-1 ire-text-base" }, _hoisted_6$9 = ["placeholder"], _hoisted_7$7 = {
6400
6400
  key: 0,
6401
6401
  class: "irep-callback-form__buttons ire-mt-4 ire-flex ire-flex-wrap ire-gap-3"
6402
6402
  }, _sfc_main$v = /* @__PURE__ */ defineComponent({
@@ -6474,9 +6474,9 @@ const DownloadIcon = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_r
6474
6474
  createElementVNode("label", _hoisted_5$a, toDisplayString(unref(tr)("Comment")), 1),
6475
6475
  withDirectives(createElementVNode("textarea", {
6476
6476
  "onUpdate:modelValue": Fe[3] || (Fe[3] = (je) => Ve.value.comment = je),
6477
- placeholder: "...",
6477
+ placeholder: unref(tr)("your comment"),
6478
6478
  class: "ire-w-full ire-rounded-md !ire-border-none !ire-p-2 ire-text-base !ire-outline-none !ire-ring-[1px] !ire-ring-gray-200 ire-transition-all focus:!ire-ring-2 focus:!ire-ring-black"
6479
- }, null, 512), [
6479
+ }, null, 8, _hoisted_6$9), [
6480
6480
  [vModelText, Ve.value.comment]
6481
6481
  ])
6482
6482
  ])
@@ -6489,7 +6489,7 @@ const DownloadIcon = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_r
6489
6489
  mode: "out-in"
6490
6490
  }, {
6491
6491
  default: withCtx(() => [
6492
- De.value ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_6$9, [
6492
+ De.value ? createCommentVNode("", !0) : (openBlock(), createElementBlock("div", _hoisted_7$7, [
6493
6493
  createVNode(_sfc_main$B, {
6494
6494
  type: "button",
6495
6495
  title: "back",
@@ -6966,7 +6966,7 @@ const Logo = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$9]
6966
6966
  ], 8, _hoisted_9$2)) : createCommentVNode("", !0),
6967
6967
  Ae.value ? (openBlock(), createElementBlock("div", _hoisted_10$2, [
6968
6968
  createVNode(_sfc_main$B, {
6969
- title: unref(tr)("request callback"),
6969
+ title: unref(tr)("Request callback"),
6970
6970
  active: "",
6971
6971
  class: "!ire-w-full",
6972
6972
  onClick: Re
@@ -8128,7 +8128,7 @@ const SortingArrowAsc = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sf
8128
8128
  ]),
8129
8129
  createElementVNode("tbody", null, [
8130
8130
  (openBlock(!0), createElementBlock(Fragment, null, renderList(Be.data, (Fe, je) => (openBlock(), createBlock(_sfc_main$c, {
8131
- key: je,
8131
+ key: (Fe == null ? void 0 : Fe.id) ?? je,
8132
8132
  row: Fe,
8133
8133
  fields: De.value,
8134
8134
  "row-index": je
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ire-preview",
3
- "version": "3.3.7",
3
+ "version": "3.3.8",
4
4
  "type": "module",
5
5
  "emitDeclarationOnly": true,
6
6
  "declaration": true,