beca-ui 2.1.0-beta.60 → 2.1.0-beta.62

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/beca-ui.js +18 -21
  2. package/package.json +1 -1
package/dist/beca-ui.js CHANGED
@@ -93780,23 +93780,16 @@ const pnt = [
93780
93780
  }
93781
93781
  );
93782
93782
  }, de = (Oe) => {
93783
- const Fe = Oe.phoneNumber.split(",");
93783
+ const Fe = Oe.phoneNumber ? Oe.phoneNumber.split(",").filter((De) => (De == null ? void 0 : De.length) > 0).map((De) => De.trim()) : [];
93784
93784
  return /* @__PURE__ */ Yt("div", { className: "menu-support-item", children: [
93785
93785
  /* @__PURE__ */ z("span", { className: "menu-support-item__name", children: Oe.title }),
93786
93786
  `
93787
93787
  `,
93788
- Fe.map((De, qe) => /* @__PURE__ */ z("div", { children: /* @__PURE__ */ Yt(
93789
- "a",
93790
- {
93791
- href: "tel:" + De.trim(),
93792
- className: "menu-support-item__phone",
93793
- children: [
93794
- /* @__PURE__ */ z(ont, { color: "var(--info-color-5)" }),
93795
- " ",
93796
- /* @__PURE__ */ z("span", { className: "menu-support-item__phone-number", children: De.trim() })
93797
- ]
93798
- }
93799
- ) }, `phone-number-${qe}`))
93788
+ Fe.map((De, qe) => /* @__PURE__ */ z("div", { children: /* @__PURE__ */ Yt("a", { href: "tel:" + De, className: "menu-support-item__phone", children: [
93789
+ /* @__PURE__ */ z(ont, { color: "var(--info-color-5)" }),
93790
+ " ",
93791
+ /* @__PURE__ */ z("span", { className: "menu-support-item__phone-number", children: De })
93792
+ ] }) }, `phone-number-${qe}`))
93800
93793
  ] });
93801
93794
  }, pe = async () => {
93802
93795
  try {
@@ -99988,17 +99981,21 @@ const Eit = 52, $it = 68, Oit = (e) => {
99988
99981
  }
99989
99982
  };
99990
99983
  return Zt(() => {
99984
+ var T;
99985
+ const $ = [...n].sort(
99986
+ (R, I) => (R.order ?? 0) - (I.order ?? 0)
99987
+ );
99991
99988
  if (S != null && S.appMenu) {
99992
- if (S.appMenu.items) {
99993
- const $ = [...S.appMenu.items];
99994
- n.forEach((T) => {
99995
- $.some((R) => R.id === T.id) || $.push(T);
99996
- }), m($);
99989
+ if (((T = S.appMenu.items) == null ? void 0 : T.length) > 0) {
99990
+ const R = [...S.appMenu.items];
99991
+ n.forEach((I) => {
99992
+ R.some((P) => P.id === I.id) || R.push(I);
99993
+ }), m(R);
99997
99994
  } else
99998
- m(n);
99995
+ m($);
99999
99996
  S.appMenu.totalDisplay !== void 0 ? v(S.appMenu.totalDisplay) : v(o);
100000
99997
  } else
100001
- m(n);
99998
+ m($);
100002
99999
  }, [S == null ? void 0 : S.appMenu, JSON.stringify(n)]), /* @__PURE__ */ Yt("div", { className: "app-menu", children: [
100003
100000
  /* @__PURE__ */ z("div", { className: "app-main-logo-wrap", children: /* @__PURE__ */ z("a", { href: "/", children: /* @__PURE__ */ z("img", { src: t, className: "app-main-logo" }) }) }),
100004
100001
  /* @__PURE__ */ Yt("div", { className: "app-menu-items-wrap", children: [
@@ -100281,7 +100278,7 @@ const R7 = iu({
100281
100278
  return Zt(() => {
100282
100279
  if (D) {
100283
100280
  const Ee = JSON.parse(D.userTheme ?? "{}"), Me = { ...JSON.parse(D.adminTheme ?? "{}"), ...Ee };
100284
- xe(Me), se(Ee);
100281
+ xe(Me), se(Me);
100285
100282
  const Re = document.querySelector(":root");
100286
100283
  Re && Re.style.setProperty(
100287
100284
  "--regular-font",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beca-ui",
3
- "version": "2.1.0-beta.60",
3
+ "version": "2.1.0-beta.62",
4
4
  "description": "Becawork UI",
5
5
  "license": "MIT",
6
6
  "author": {