@hotelinking/ui 9.41.35 → 9.41.36

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/ui.es.js CHANGED
@@ -1,6 +1,6 @@
1
- import { defineComponent as B, openBlock as s, createBlock as _, resolveDynamicComponent as qe, normalizeClass as h, createElementBlock as n, createCommentVNode as b, renderSlot as F, createElementVNode as e, ref as A, watch as W, computed as P, unref as c, withCtx as v, toDisplayString as u, createVNode as g, createTextVNode as D, Transition as re, Fragment as k, renderList as $, withDirectives as C, vModelDynamic as He, vShow as S, withModifiers as xe, vModelText as Ue, createStaticVNode as Q, resolveComponent as ke, vModelCheckbox as Ce, isRef as Be, reactive as Me, TransitionGroup as Ee, onMounted as Ze } from "vue";
1
+ import { defineComponent as B, openBlock as s, createBlock as _, resolveDynamicComponent as qe, normalizeClass as h, createElementBlock as n, createCommentVNode as b, renderSlot as F, createElementVNode as e, ref as A, watch as W, computed as O, unref as c, withCtx as v, toDisplayString as u, createVNode as g, createTextVNode as D, Transition as re, Fragment as k, renderList as $, withDirectives as C, vModelDynamic as He, vShow as S, withModifiers as xe, vModelText as Ue, createStaticVNode as Q, resolveComponent as ke, vModelCheckbox as Ce, isRef as Be, reactive as Me, TransitionGroup as Ee, onMounted as Ze } from "vue";
2
2
  import { Menu as de, MenuButton as ue, MenuItems as ce, MenuItem as ge, Combobox as Se, ComboboxLabel as Je, ComboboxInput as je, ComboboxButton as De, ComboboxOptions as Te, ComboboxOption as ze, SwitchGroup as Ge, Switch as We, SwitchLabel as Qe, TransitionRoot as pe, Dialog as me, TransitionChild as J, DialogPanel as fe, DialogTitle as Le, Disclosure as ye, DisclosureButton as U, DisclosurePanel as he } from "@headlessui/vue";
3
- import z from "dayjs";
3
+ import L from "dayjs";
4
4
  import ve from "vue3-apexcharts";
5
5
  import Ke from "vue3-draggable";
6
6
  import Xe from "@vueform/slider";
@@ -580,7 +580,7 @@ const kt = { class: "flex justify-between" }, _t = {
580
580
  },
581
581
  emits: ["optionSelected"],
582
582
  setup(p, { emit: i }) {
583
- const l = i, a = p, r = P(() => {
583
+ const l = i, a = p, r = O(() => {
584
584
  let t = a.items.find((m) => m.active === !0);
585
585
  return t ? t.name : a.label;
586
586
  }), o = (t) => {
@@ -909,7 +909,7 @@ const kt = { class: "flex justify-between" }, _t = {
909
909
  },
910
910
  emits: ["selectChanged"],
911
911
  setup(p, { emit: i }) {
912
- const l = A(""), a = i, r = p, o = P(() => l.value === "" ? r.items : r.items.filter((d) => d.name.toLowerCase().includes(l.value.toLowerCase()))), t = (d) => (d == null ? void 0 : d.name) ?? "", m = P(() => r.select);
912
+ const l = A(""), a = i, r = p, o = O(() => l.value === "" ? r.items : r.items.filter((d) => d.name.toLowerCase().includes(l.value.toLowerCase()))), t = (d) => (d == null ? void 0 : d.name) ?? "", m = O(() => r.select);
913
913
  return (d, f) => d.loading ? (s(), n("div", Kt, [
914
914
  f[4] || (f[4] = e("div", { class: "h-2.5 bg-gray-200 rounded-full dark:bg-gray-300 w-1/2" }, null, -1)),
915
915
  g(c(ie), {
@@ -1592,7 +1592,7 @@ const kt = { class: "flex justify-between" }, _t = {
1592
1592
  },
1593
1593
  emits: ["closeNotification"],
1594
1594
  setup(p, { emit: i }) {
1595
- const l = p, a = P(() => l.show);
1595
+ const l = p, a = O(() => l.show);
1596
1596
  return (r, o) => (s(), n("div", {
1597
1597
  "aria-live": "assertive",
1598
1598
  class: h([{ fixed: r.fixed }, "inset-0 flex items-end px-4 py-6 pointer-events-none sm:p-6 sm:items-start"])
@@ -1726,7 +1726,7 @@ function gl(p) {
1726
1726
  var pl = { exports: {} };
1727
1727
  (function(p, i) {
1728
1728
  (function(l, a) {
1729
- p.exports = a(z);
1729
+ p.exports = a(L);
1730
1730
  })(ee, function(l) {
1731
1731
  function a(t) {
1732
1732
  return t && typeof t == "object" && "default" in t ? t : { default: t };
@@ -1740,7 +1740,7 @@ var pl = { exports: {} };
1740
1740
  var ml = { exports: {} };
1741
1741
  (function(p, i) {
1742
1742
  (function(l, a) {
1743
- p.exports = a(z);
1743
+ p.exports = a(L);
1744
1744
  })(ee, function(l) {
1745
1745
  function a(d) {
1746
1746
  return d && typeof d == "object" && "default" in d ? d : { default: d };
@@ -1770,7 +1770,7 @@ var fl = { exports: {} };
1770
1770
  var yl = { exports: {} };
1771
1771
  (function(p, i) {
1772
1772
  (function(l, a) {
1773
- p.exports = a(z);
1773
+ p.exports = a(L);
1774
1774
  })(ee, function(l) {
1775
1775
  function a(t) {
1776
1776
  return t && typeof t == "object" && "default" in t ? t : { default: t };
@@ -1791,13 +1791,13 @@ const te = (p, i) => {
1791
1791
  components: { ChevronLeftIcon: Pe, ChevronRightIcon: X },
1792
1792
  computed: {
1793
1793
  currentDate() {
1794
- return z(this.selectedDate).locale("es");
1794
+ return L(this.selectedDate).locale("es");
1795
1795
  },
1796
1796
  today() {
1797
- return z(/* @__PURE__ */ new Date()).locale("es");
1797
+ return L(/* @__PURE__ */ new Date()).locale("es");
1798
1798
  },
1799
1799
  formatedDate() {
1800
- return z(this.currentDate).locale("es").format("DD MMM YYYY");
1800
+ return L(this.currentDate).locale("es").format("DD MMM YYYY");
1801
1801
  }
1802
1802
  },
1803
1803
  props: {
@@ -1811,9 +1811,9 @@ const te = (p, i) => {
1811
1811
  let l;
1812
1812
  if (i === "previous") {
1813
1813
  if (this.currentDate <= this.today) return;
1814
- p === "day" && (l = z(this.currentDate).subtract(1, "day")), p === "month" && (l = z(this.currentDate).subtract(1, "month")), p === "year" && (l = z(this.currentDate).subtract(1, "year")), l <= this.today && (l = this.currentDate = this.today);
1814
+ p === "day" && (l = L(this.currentDate).subtract(1, "day")), p === "month" && (l = L(this.currentDate).subtract(1, "month")), p === "year" && (l = L(this.currentDate).subtract(1, "year")), l <= this.today && (l = this.currentDate = this.today);
1815
1815
  }
1816
- i === "next" && (p === "day" && (l = z(this.selectedDate).add(1, "day")), p === "month" && (l = z(this.selectedDate).add(1, "month")), p === "year" && (l = z(this.selectedDate).add(1, "year"))), this.$emit("dateSelected", l);
1816
+ i === "next" && (p === "day" && (l = L(this.selectedDate).add(1, "day")), p === "month" && (l = L(this.selectedDate).add(1, "month")), p === "year" && (l = L(this.selectedDate).add(1, "year"))), this.$emit("dateSelected", l);
1817
1817
  }
1818
1818
  }
1819
1819
  }, vl = { class: "dateSelector flex items-center text-white flex-row" }, bl = { class: "pagination flex items-center my-1 md:my-0" }, wl = { class: "date mx-4 font-bold text-center text-indigo-600 select-none uppercase" }, xl = { class: "pagination flex items-center my-1 sm:my-0" };
@@ -1981,12 +1981,12 @@ const Nl = /* @__PURE__ */ gl(Ll), Al = {
1981
1981
  },
1982
1982
  computed: {
1983
1983
  currentDay() {
1984
- return z.extend(Nl), {
1985
- dayName: z(this.day).locale("es").format("ddd"),
1986
- day: z(this.day).locale("es").format("DD"),
1987
- month: z(this.day).locale("es").format("MMM."),
1988
- isWeekend: z(this.day).format("d") == 6 || z(this.day).format("d") == 0,
1989
- isToday: z(this.day).isToday()
1984
+ return L.extend(Nl), {
1985
+ dayName: L(this.day).locale("es").format("ddd"),
1986
+ day: L(this.day).locale("es").format("DD"),
1987
+ month: L(this.day).locale("es").format("MMM."),
1988
+ isWeekend: L(this.day).format("d") == 6 || L(this.day).format("d") == 0,
1989
+ isToday: L(this.day).isToday()
1990
1990
  };
1991
1991
  }
1992
1992
  }
@@ -2020,7 +2020,7 @@ const Fl = /* @__PURE__ */ te(Al, [["render", Vl]]), Il = {
2020
2020
  computed: {
2021
2021
  currentDay() {
2022
2022
  return {
2023
- isWeekend: z(this.price.date).format("d") == 6 || z(this.price.date).format("d") == 0,
2023
+ isWeekend: L(this.price.date).format("d") == 6 || L(this.price.date).format("d") == 0,
2024
2024
  price: this.price.price
2025
2025
  };
2026
2026
  }
@@ -2104,20 +2104,20 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2104
2104
  },
2105
2105
  emits: ["dateChanged", "changeCategoryBulkPrices", "changeCategorySelectionPrice", "changeCategoryUpgradePrice", "changeRoomPrice", "tableAction"],
2106
2106
  setup(p, { emit: i }) {
2107
- const l = p, a = i, r = A(/* @__PURE__ */ new Date()), o = A(/* @__PURE__ */ new Date()), t = A([]), m = P(() => {
2107
+ const l = p, a = i, r = A(/* @__PURE__ */ new Date()), o = A(/* @__PURE__ */ new Date()), t = A([]), m = O(() => {
2108
2108
  let x = [];
2109
- for (let O = 0; O < 14; O++)
2110
- x.push(z(o.value).add(O, "day"));
2109
+ for (let Y = 0; Y < 14; Y++)
2110
+ x.push(L(o.value).add(Y, "day"));
2111
2111
  return x;
2112
- }), d = P(() => t.value.length > 0 && t.value.length < l.rooms.length), f = (x) => {
2113
- z(x).isBefore(r.value) || (o.value = x, a("dateChanged", o.value));
2112
+ }), d = O(() => t.value.length > 0 && t.value.length < l.rooms.length), f = (x) => {
2113
+ L(x).isBefore(r.value) || (o.value = x, a("dateChanged", o.value));
2114
2114
  }, y = (x) => {
2115
- let O = l.category.selectionPrices.find((N) => z(N.date).isSame(x.date));
2116
- return O ? O.price : x.price;
2115
+ let Y = l.category.selectionPrices.find((N) => L(N.date).isSame(x.date));
2116
+ return Y ? Y.price : x.price;
2117
2117
  }, w = (x) => {
2118
- t.value = x.target.checked ? l.rooms.map((O) => O.id) : [];
2119
- }, M = () => a("changeCategoryBulkPrices"), Y = (x) => a("changeCategorySelectionPrice", x), I = (x) => a("changeCategoryUpgradePrice", x), T = (x) => a("tableAction", x), H = (x) => a("changeRoomPrice", x);
2120
- return (x, O) => {
2118
+ t.value = x.target.checked ? l.rooms.map((Y) => Y.id) : [];
2119
+ }, M = () => a("changeCategoryBulkPrices"), P = (x) => a("changeCategorySelectionPrice", x), I = (x) => a("changeCategoryUpgradePrice", x), z = (x) => a("tableAction", x), H = (x, Y, N) => a("changeRoomPrice", { price: x, roomId: Y, roomName: N });
2120
+ return (x, Y) => {
2121
2121
  var N, se;
2122
2122
  return x.loading ? (s(), _(Fe, { key: 1 })) : (s(), n("div", Hl, [
2123
2123
  e("div", Ul, [
@@ -2129,17 +2129,17 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2129
2129
  e("th", Wl, [
2130
2130
  g(_l, {
2131
2131
  selectedDate: o.value,
2132
- onDateSelected: O[0] || (O[0] = (L) => f(L))
2132
+ onDateSelected: Y[0] || (Y[0] = (T) => f(T))
2133
2133
  }, null, 8, ["selectedDate"])
2134
2134
  ]),
2135
- (s(!0), n(k, null, $(m.value, (L, V) => (s(), n("th", {
2135
+ (s(!0), n(k, null, $(m.value, (T, V) => (s(), n("th", {
2136
2136
  scope: "col",
2137
2137
  key: V,
2138
2138
  class: "text-sm font-semibold text-gray-900 p-0"
2139
2139
  }, [
2140
2140
  g(Fl, {
2141
2141
  class: "border-l border-gray-200 px-6 py-3",
2142
- day: L
2142
+ day: T
2143
2143
  }, null, 8, ["day"])
2144
2144
  ]))), 128))
2145
2145
  ]),
@@ -2161,14 +2161,14 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2161
2161
  ]),
2162
2162
  x.type === "discounts" ? (s(), n("tr", Kl, [
2163
2163
  e("td", Xl, u(x.literals.pricesDiscount), 1),
2164
- (s(!0), n(k, null, $(x.category.selectionPrices, (L, V) => (s(), n("td", {
2164
+ (s(!0), n(k, null, $(x.category.selectionPrices, (T, V) => (s(), n("td", {
2165
2165
  key: V,
2166
2166
  class: "p-0"
2167
2167
  }, [
2168
2168
  g(le, {
2169
- onClick: (K) => Y(L),
2169
+ onClick: (K) => P(T),
2170
2170
  class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",
2171
- price: L,
2171
+ price: T,
2172
2172
  currency: x.currency.symbol,
2173
2173
  isBasePrice: !0
2174
2174
  }, null, 8, ["onClick", "price", "currency"])
@@ -2176,14 +2176,14 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2176
2176
  ])) : b("", !0),
2177
2177
  x.type === "prices" ? (s(), n("tr", eo, [
2178
2178
  e("td", to, u(x.literals.pricesSelection), 1),
2179
- (s(!0), n(k, null, $(x.category.selectionPrices, (L, V) => (s(), n("td", {
2179
+ (s(!0), n(k, null, $(x.category.selectionPrices, (T, V) => (s(), n("td", {
2180
2180
  key: V,
2181
2181
  class: "p-0"
2182
2182
  }, [
2183
2183
  g(le, {
2184
- onClick: (K) => Y(L),
2184
+ onClick: (K) => P(T),
2185
2185
  class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer",
2186
- price: L,
2186
+ price: T,
2187
2187
  currency: x.currency.symbol,
2188
2188
  isBasePrice: !0
2189
2189
  }, null, 8, ["onClick", "price", "currency"])
@@ -2191,14 +2191,14 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2191
2191
  ])) : b("", !0),
2192
2192
  x.type === "prices" ? (s(), n("tr", so, [
2193
2193
  e("td", lo, u(x.literals.pricesUpgrade), 1),
2194
- (s(!0), n(k, null, $(x.category.upgradePrices, (L, V) => (s(), n("td", {
2194
+ (s(!0), n(k, null, $(x.category.upgradePrices, (T, V) => (s(), n("td", {
2195
2195
  key: V,
2196
2196
  class: "p-0"
2197
2197
  }, [
2198
2198
  g(le, {
2199
- onClick: (K) => I(L),
2199
+ onClick: (K) => I(T),
2200
2200
  class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 font-bold cursor-pointer bg-gray-100",
2201
- price: L,
2201
+ price: T,
2202
2202
  currency: x.currency.symbol,
2203
2203
  isBasePrice: !0
2204
2204
  }, null, 8, ["onClick", "price", "currency"])
@@ -2207,12 +2207,12 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2207
2207
  e("tr", null, [
2208
2208
  e("th", oo, [
2209
2209
  ((N = t.value) == null ? void 0 : N.length) > 0 && ((se = x.actions) == null ? void 0 : se.length) > 0 ? (s(), n("div", ro, [
2210
- (s(!0), n(k, null, $(x.actions, (L, V) => (s(), n("button", {
2211
- onClick: (K) => T({ action: L.id, items: t.value }),
2210
+ (s(!0), n(k, null, $(x.actions, (T, V) => (s(), n("button", {
2211
+ onClick: (K) => z({ action: T.id, items: t.value }),
2212
2212
  key: V,
2213
2213
  type: "button",
2214
2214
  class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30"
2215
- }, u(L.name), 9, no))), 128))
2215
+ }, u(T.name), 9, no))), 128))
2216
2216
  ])) : b("", !0),
2217
2217
  e("span", null, u(x.literals.pricesSelection), 1)
2218
2218
  ])
@@ -2230,14 +2230,14 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2230
2230
  ]),
2231
2231
  e("th", co, u(x.literals.building), 1),
2232
2232
  e("th", go, u(x.literals.floor), 1),
2233
- O[2] || (O[2] = e("th", {
2233
+ Y[2] || (Y[2] = e("th", {
2234
2234
  colspan: "14",
2235
2235
  scope: "colgroup",
2236
2236
  class: "bg-gray-100 py-2 pl-4 pr-3 text-left font-semibold text-gray-900"
2237
2237
  }, null, -1))
2238
2238
  ]),
2239
- (s(!0), n(k, null, $(x.rooms, (L) => (s(), n("tr", {
2240
- key: L.name,
2239
+ (s(!0), n(k, null, $(x.rooms, (T) => (s(), n("tr", {
2240
+ key: T.name,
2241
2241
  class: h([{ "even:bg-gray-100": x.type === "prices", "odd:bg-gray-100": x.type === "discounts" }])
2242
2242
  }, [
2243
2243
  e("td", po, [
@@ -2245,21 +2245,21 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2245
2245
  C(e("input", {
2246
2246
  type: "checkbox",
2247
2247
  class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600",
2248
- value: L.name,
2249
- "onUpdate:modelValue": O[1] || (O[1] = (V) => t.value = V)
2248
+ value: T.name,
2249
+ "onUpdate:modelValue": Y[1] || (Y[1] = (V) => t.value = V)
2250
2250
  }, null, 8, fo), [
2251
2251
  [Ce, t.value]
2252
2252
  ]),
2253
- e("span", yo, u(L.name), 1)
2253
+ e("span", yo, u(T.name), 1)
2254
2254
  ]),
2255
- e("td", ho, u(L.building), 1),
2256
- e("td", vo, u(L.floor), 1),
2257
- (s(!0), n(k, null, $(L.selectionPrices, (V, K) => (s(), n("td", {
2255
+ e("td", ho, u(T.building), 1),
2256
+ e("td", vo, u(T.floor), 1),
2257
+ (s(!0), n(k, null, $(T.selectionPrices, (V, K) => (s(), n("td", {
2258
2258
  class: "p-0",
2259
2259
  key: K
2260
2260
  }, [
2261
2261
  g(le, {
2262
- onClick: (Hi) => H(V),
2262
+ onClick: (Hi) => H(V, T.id, T.name),
2263
2263
  class: "border-l border-gray-200 px-6 py-3 text-indigo-600 hover:text-indigo-400 cursor-pointer",
2264
2264
  price: V,
2265
2265
  currency: x.currency.symbol,
@@ -2281,7 +2281,7 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2281
2281
  emits: ["rangeSelected"],
2282
2282
  setup(p, { emit: i }) {
2283
2283
  const l = i, a = p;
2284
- let r = P(() => a.range);
2284
+ let r = O(() => a.range);
2285
2285
  const o = (t) => {
2286
2286
  r = t, l("rangeSelected", t);
2287
2287
  };
@@ -2340,7 +2340,7 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2340
2340
  },
2341
2341
  colors: function() {
2342
2342
  return a.isNps ? [
2343
- function({ value: M, seriesIndex: Y, dataPointIndex: I, w: T }) {
2343
+ function({ value: M, seriesIndex: P, dataPointIndex: I, w: z }) {
2344
2344
  if (I <= 5) return "#F87171";
2345
2345
  if (I > 5 && I <= 7) return "#eab308";
2346
2346
  if (I >= 8) return "#84cc16";
@@ -2387,10 +2387,10 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2387
2387
  }), a.type === "area" && (o.tooltip = { intersect: !0, shared: !1 });
2388
2388
  const t = () => (o.chart.stacked = a.stacked, { ...o, ...a.options, plotOptions: { bar: { horizontal: a.horizontal } } }), m = (M) => {
2389
2389
  l("selectedRange", { range: M, chartId: a.id });
2390
- }, d = P(() => a.series), f = P(() => t()), y = () => l("chartUpdated"), w = (M, Y, I) => {
2391
- l("dataPointSelection", { id: a.id, chartContext: Y, config: I, event: M });
2390
+ }, d = O(() => a.series), f = O(() => t()), y = () => l("chartUpdated"), w = (M, P, I) => {
2391
+ l("dataPointSelection", { id: a.id, chartContext: P, config: I, event: M });
2392
2392
  };
2393
- return (M, Y) => (s(), n(k, null, [
2393
+ return (M, P) => (s(), n(k, null, [
2394
2394
  C(e("div", {
2395
2395
  class: h(["h-[" + M.height + "px]", "card chart apex-chart px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6 flex grow"])
2396
2396
  }, [
@@ -2408,7 +2408,7 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2408
2408
  loading: !1,
2409
2409
  color: "red"
2410
2410
  }, null, 8, ["icon"]),
2411
- Y[0] || (Y[0] = D()),
2411
+ P[0] || (P[0] = D()),
2412
2412
  e("span", $o, u(M.npsLiterals.unhappy), 1)
2413
2413
  ]),
2414
2414
  _: 1
@@ -2424,7 +2424,7 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2424
2424
  loading: !1,
2425
2425
  color: "yellow"
2426
2426
  }, null, 8, ["icon"]),
2427
- Y[1] || (Y[1] = D()),
2427
+ P[1] || (P[1] = D()),
2428
2428
  e("span", Co, u(M.npsLiterals.neutral), 1)
2429
2429
  ]),
2430
2430
  _: 1
@@ -2440,7 +2440,7 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2440
2440
  loading: !1,
2441
2441
  color: "green"
2442
2442
  }, null, 8, ["icon"]),
2443
- Y[2] || (Y[2] = D()),
2443
+ P[2] || (P[2] = D()),
2444
2444
  e("span", Bo, u(M.npsLiterals.happy), 1)
2445
2445
  ]),
2446
2446
  _: 1
@@ -2472,14 +2472,14 @@ const le = /* @__PURE__ */ te(Il, [["render", ql]]), Hl = {
2472
2472
  loading: !1,
2473
2473
  size: "huge"
2474
2474
  }, null, 8, ["icon"]),
2475
- Y[3] || (Y[3] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1))
2475
+ P[3] || (P[3] = e("p", { class: "text-xs uppercase text-gray-300 font-bold" }, "No data", -1))
2476
2476
  ], 512), [
2477
2477
  [S, M.empty]
2478
2478
  ])
2479
2479
  ], 2), [
2480
2480
  [S, !M.loading]
2481
2481
  ]),
2482
- C(e("div", jo, Y[4] || (Y[4] = [
2482
+ C(e("div", jo, P[4] || (P[4] = [
2483
2483
  e("div", {
2484
2484
  role: "status",
2485
2485
  class: "w-full animate-pulse h-full flex flex-col"
@@ -2574,11 +2574,11 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
2574
2574
  },
2575
2575
  emits: ["changePage"],
2576
2576
  setup(p, { emit: i }) {
2577
- const l = i, a = p, r = A(3), o = P(
2577
+ const l = i, a = p, r = A(3), o = O(
2578
2578
  () => Math.max(1, Number(a.current) - Number(r.value))
2579
- ), t = P(
2579
+ ), t = O(
2580
2580
  () => Math.min(Number(a.current) + Number(r.value), Number(a.total))
2581
- ), m = P(() => {
2581
+ ), m = O(() => {
2582
2582
  let d = [];
2583
2583
  for (let f = Number(o.value); f <= Number(t.value); f++)
2584
2584
  d.push(f);
@@ -2986,7 +2986,7 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
2986
2986
  emits: ["tableAction", "orderBy", "customEmit", "selectedItemsDeleted"],
2987
2987
  setup(p, { emit: i }) {
2988
2988
  let l = A([]), a = A(""), r = A(!1);
2989
- const o = i, t = p, m = P(
2989
+ const o = i, t = p, m = O(
2990
2990
  () => l.value.length > 0 && l.value.length < t.items.length
2991
2991
  ), d = (w, M) => {
2992
2992
  a.value !== w && M && (a.value = w), M || (a.value = void 0);
@@ -2998,19 +2998,19 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
2998
2998
  return W(() => t.resetSelected, (w) => {
2999
2999
  r.value = w, w && r.value && (l.value = [], r.value = !w, o("selectedItemsDeleted"));
3000
3000
  }), (w, M) => {
3001
- var Y, I;
3001
+ var P, I;
3002
3002
  return w.loading ? (s(), _(Fe, { key: 1 })) : (s(), n("div", Nr, [
3003
3003
  e("div", Ar, [
3004
3004
  e("div", Yr, [
3005
3005
  e("div", Pr, [
3006
3006
  e("div", Or, [
3007
- ((Y = c(l)) == null ? void 0 : Y.length) > 0 && ((I = w.actions) == null ? void 0 : I.length) > 0 ? (s(), n("div", Vr, [
3008
- (s(!0), n(k, null, $(w.actions, (T, H) => (s(), n("button", {
3009
- onClick: (x) => w.$emit("tableAction", { action: T.id, items: c(l) }),
3007
+ ((P = c(l)) == null ? void 0 : P.length) > 0 && ((I = w.actions) == null ? void 0 : I.length) > 0 ? (s(), n("div", Vr, [
3008
+ (s(!0), n(k, null, $(w.actions, (z, H) => (s(), n("button", {
3009
+ onClick: (x) => w.$emit("tableAction", { action: z.id, items: c(l) }),
3010
3010
  key: H,
3011
3011
  type: "button",
3012
3012
  class: "inline-flex items-center rounded bg-indigo-600 hover:bg-indigo-800 px-2.5 py-1.5 text-xs font-medium text-white shadow-sm disabled:cursor-not-allowed disabled:opacity-30"
3013
- }, u(T.name), 9, Fr))), 128))
3013
+ }, u(z.name), 9, Fr))), 128))
3014
3014
  ])) : b("", !0),
3015
3015
  e("table", Ir, [
3016
3016
  e("thead", Rr, [
@@ -3028,71 +3028,71 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
3028
3028
  onChange: f
3029
3029
  }, null, 40, qr)) : b("", !0)
3030
3030
  ], 2),
3031
- (s(!0), n(k, null, $(w.header, (T, H) => (s(), n("th", {
3031
+ (s(!0), n(k, null, $(w.header, (z, H) => (s(), n("th", {
3032
3032
  key: H,
3033
3033
  class: "py-3.5 pr-3 text-left font-semibold text-gray-900 relative",
3034
3034
  scope: "col",
3035
- onMouseover: (x) => d(T.name, !0),
3036
- onMouseleave: (x) => d(T.name, !1)
3035
+ onMouseover: (x) => d(z.name, !0),
3036
+ onMouseleave: (x) => d(z.name, !1)
3037
3037
  }, [
3038
- T.tooltip ? C((s(), _(Lr, {
3038
+ z.tooltip ? C((s(), _(Lr, {
3039
3039
  key: 0,
3040
- tip: T.tooltip
3040
+ tip: z.tooltip
3041
3041
  }, null, 8, ["tip"])), [
3042
- [S, c(a) === T.name]
3042
+ [S, c(a) === z.name]
3043
3043
  ]) : b("", !0),
3044
- T.value ? (s(), n("button", {
3044
+ z.value ? (s(), n("button", {
3045
3045
  key: 1,
3046
3046
  class: "group flex items-center uppercase text-xs relative text-nowrap",
3047
- onClick: (x) => o("orderBy", { value: T.value, orderDirection: w.orderDirection === "asc" ? "desc" : "asc" })
3047
+ onClick: (x) => o("orderBy", { value: z.value, orderDirection: w.orderDirection === "asc" ? "desc" : "asc" })
3048
3048
  }, [
3049
- e("span", null, u(T.name), 1),
3049
+ e("span", null, u(z.name), 1),
3050
3050
  e("span", {
3051
3051
  class: h([[
3052
- T.value === w.orderedBy ? "bg-indigo-600 text-white group-hover:bg-gray-300" : "text-gray-400 group-hover:visible group-focus:visible"
3052
+ z.value === w.orderedBy ? "bg-indigo-600 text-white group-hover:bg-gray-300" : "text-gray-400 group-hover:visible group-focus:visible"
3053
3053
  ], "ml-2 flex-none rounded group-hover:bg-indigo-200 group-hover:text-white"])
3054
3054
  }, [
3055
3055
  g(j, {
3056
3056
  icon: w.orderDirection === "asc" ? c(oe) : c(pt),
3057
3057
  loading: w.loading,
3058
- color: T.value === w.orderedBy ? "white" : "primary"
3058
+ color: z.value === w.orderedBy ? "white" : "primary"
3059
3059
  }, null, 8, ["icon", "loading", "color"])
3060
3060
  ], 2)
3061
3061
  ], 8, Ur)) : (s(), n("p", Er, [
3062
- e("span", null, u(T.name), 1)
3062
+ e("span", null, u(z.name), 1)
3063
3063
  ]))
3064
3064
  ], 40, Hr))), 128))
3065
3065
  ])
3066
3066
  ]),
3067
3067
  e("tbody", Zr, [
3068
- (s(!0), n(k, null, $(w.items, (T, H) => {
3069
- var x, O;
3068
+ (s(!0), n(k, null, $(w.items, (z, H) => {
3069
+ var x, Y;
3070
3070
  return s(), n("tr", {
3071
- key: T.id,
3071
+ key: z.id,
3072
3072
  class: h([
3073
- c(l).includes(T.id) && "bg-gray-50",
3073
+ c(l).includes(z.id) && "bg-gray-50",
3074
3074
  H % 2 === 0 ? void 0 : "bg-gray-50"
3075
3075
  ])
3076
3076
  }, [
3077
3077
  e("td", {
3078
3078
  class: h([((x = w.actions) == null ? void 0 : x.length) > 0 ? "w-2" : "w-0", "relative"])
3079
3079
  }, [
3080
- c(l).includes(T.id) ? (s(), n("div", Jr)) : b("", !0),
3081
- ((O = w.actions) == null ? void 0 : O.length) > 0 ? C((s(), n("input", {
3080
+ c(l).includes(z.id) ? (s(), n("div", Jr)) : b("", !0),
3081
+ ((Y = w.actions) == null ? void 0 : Y.length) > 0 ? C((s(), n("input", {
3082
3082
  key: 1,
3083
3083
  "onUpdate:modelValue": M[0] || (M[0] = (N) => Be(l) ? l.value = N : l = N),
3084
- value: T.id,
3084
+ value: z.id,
3085
3085
  class: "absolute left-4 top-1/2 -mt-2 h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-500 flex-wrap",
3086
3086
  type: "checkbox"
3087
3087
  }, null, 8, Gr)), [
3088
3088
  [Ce, c(l)]
3089
3089
  ]) : b("", !0)
3090
3090
  ], 2),
3091
- (s(!0), n(k, null, $(T.row, (N, se) => (s(), n("td", {
3091
+ (s(!0), n(k, null, $(z.row, (N, se) => (s(), n("td", {
3092
3092
  key: se,
3093
3093
  class: h([
3094
3094
  "whitespace-nowrap py-4 pr-3 text-sm",
3095
- c(l).includes(T.id) ? "text-indigo-600" : "text-gray-900"
3095
+ c(l).includes(z.id) ? "text-indigo-600" : "text-gray-900"
3096
3096
  ])
3097
3097
  }, [
3098
3098
  typeof N == "object" && N.type === "tag" ? (s(), _(R, {
@@ -3107,7 +3107,7 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
3107
3107
  }, 1032, ["loading", "color"])) : typeof N == "object" && N.type === "link" ? (s(), n("span", {
3108
3108
  key: 1,
3109
3109
  class: "text-indigo-600 hover:text-indigo-400 cursor-pointer",
3110
- onClick: (L) => y(N)
3110
+ onClick: (T) => y(N)
3111
3111
  }, u(N.content), 9, Wr)) : typeof N == "object" && N.type === "href" ? (s(), n("a", {
3112
3112
  key: 2,
3113
3113
  class: "text-indigo-600 hover:text-indigo-400 cursor-pointer",
@@ -3540,7 +3540,7 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
3540
3540
  }
3541
3541
  }
3542
3542
  };
3543
- const o = P(() => ({ ...a.options, ...r })), t = P(() => a.series), m = () => l("chartUpdated"), d = (f, y, w) => {
3543
+ const o = O(() => ({ ...a.options, ...r })), t = O(() => a.series), m = () => l("chartUpdated"), d = (f, y, w) => {
3544
3544
  l("dataPointSelection", { id: a.id, chartContext: y, config: w, event: f });
3545
3545
  };
3546
3546
  return (f, y) => (s(), n(k, null, [
@@ -3928,7 +3928,7 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
3928
3928
  }
3929
3929
  }
3930
3930
  };
3931
- const o = () => ({ ...r, ...a.options }), t = P(() => a.series), m = P(() => o()), d = () => l("chartUpdated"), f = (y, w, M) => {
3931
+ const o = () => ({ ...r, ...a.options }), t = O(() => a.series), m = O(() => o()), d = () => l("chartUpdated"), f = (y, w, M) => {
3932
3932
  l("dataPointSelection", { id: a.id, chartContext: w, config: M, event: y });
3933
3933
  };
3934
3934
  return (y, w) => (s(), n(k, null, [
@@ -4428,7 +4428,7 @@ const No = /* @__PURE__ */ te(To, [["render", Lo]]), Ao = /* @__PURE__ */ B({
4428
4428
  },
4429
4429
  emits: ["productBarClick", "sideBarClick", "selectChanged", "topBarClick"],
4430
4430
  setup(p, { emit: i }) {
4431
- const l = p, a = A(""), r = P(() => a.value === "" ? l.topbar.selectItems : l.topbar.selectItems.filter((d) => d.name.toLowerCase().includes(a.value.toLowerCase()))), o = (d) => (d == null ? void 0 : d.name) ?? "", t = P(() => l.topbar.selectedItem), m = A(!1);
4431
+ const l = p, a = A(""), r = O(() => a.value === "" ? l.topbar.selectItems : l.topbar.selectItems.filter((d) => d.name.toLowerCase().includes(a.value.toLowerCase()))), o = (d) => (d == null ? void 0 : d.name) ?? "", t = O(() => l.topbar.selectedItem), m = A(!1);
4432
4432
  return (d, f) => (s(), n("div", null, [
4433
4433
  g(c(pe), {
4434
4434
  as: "template",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hotelinking/ui",
3
3
  "private": false,
4
- "version": "9.41.35",
4
+ "version": "9.41.36",
5
5
  "files": [
6
6
  "dist"
7
7
  ],