@maxtropy/v-components 0.0.6-beta.4 → 0.0.6-beta.5

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.
@@ -8808,9 +8808,13 @@ const Cy = { class: "menu-gorups" }, Ey = { class: "menu-group-title" }, yy = {
8808
8808
  emits: ["change"],
8809
8809
  setup(e, { emit: t }) {
8810
8810
  const n = e, o = C(() => n != null && n.router ? n == null ? void 0 : n.router : null), r = (A) => {
8811
- const g = /^http/.test(A), v = new URL(A);
8812
- let d = !1;
8813
- g && (d = v.origin === window.location.origin), t("change", A), d ? o.value ? o.value.push({ path: v.pathname }) : window.location.assign(A) : A.substring(0, 1) === "/" ? o.value && o.value.push({ path: A }) : window.location.assign(A);
8811
+ const g = /^http/.test(A);
8812
+ let v = !1, d = "";
8813
+ if (g) {
8814
+ const m = new URL(A);
8815
+ d = m.pathname, v = m.origin === window.location.origin;
8816
+ }
8817
+ t("change", A), v ? o.value ? o.value.push({ path: d }) : window.location.assign(A) : A.substring(0, 1) === "/" ? o.value && o.value.push({ path: A }) : window.location.assign(A);
8814
8818
  };
8815
8819
  let s = w([]);
8816
8820
  ls((A) => s.value = A ?? []);
@@ -9004,9 +9008,13 @@ const Oy = /* @__PURE__ */ bo(Ty, [["__scopeId", "data-v-4541908e"]]), co = /* @
9004
9008
  const f = () => {
9005
9009
  r.value && r.value.navigationPreference === zt.AUTO && (l.value && window.clearTimeout(l.value), a.value = !0);
9006
9010
  }, p = (y) => {
9007
- const Q = /^http/.test(y), b = new URL(y);
9008
- let E = !1;
9009
- Q && (E = b.origin === window.location.origin), t("change", y), E ? o.value ? o.value.push({ path: b.pathname }) : window.location.assign(y) : y.substring(0, 1) === "/" ? o.value && o.value.push({ path: y }) : window.location.assign(y);
9011
+ const Q = /^http/.test(y);
9012
+ let b = !1, E = "";
9013
+ if (Q) {
9014
+ const F = new URL(y);
9015
+ E = F.pathname, b = F.origin === window.location.origin;
9016
+ }
9017
+ t("change", y), b ? o.value ? o.value.push({ path: E }) : window.location.assign(y) : y.substring(0, 1) === "/" ? o.value && o.value.push({ path: y }) : window.location.assign(y);
9010
9018
  };
9011
9019
  let A = w([]);
9012
9020
  ls((y) => A.value = y ?? []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxtropy/v-components",
3
- "version": "0.0.6-beta.4",
3
+ "version": "0.0.6-beta.5",
4
4
  "files": [
5
5
  "dist"
6
6
  ],