Socket
Socket
Sign inDemoInstall

@insightphp/insight

Package Overview
Dependencies
53
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

dist/HomePage.b373a727.mjs

1015

dist/insight.es.js

@@ -1,8 +0,9 @@

import { defineComponent as h, computed as y, openBlock as l, createElementBlock as c, createElementVNode as e, withModifiers as _, normalizeClass as b, renderSlot as u, createBlock as v, unref as s, createCommentVNode as f, createVNode as a, withCtx as d, createTextVNode as p, Fragment as k, renderList as j, createStaticVNode as C, ref as $ } from "vue";
import { Menu as M, MenuItem as g } from "@insightphp/elements";
import { Portal as m, registerPages as O, registerComponents as w } from "@insightphp/inertia-view";
class S {
import { defineComponent as H, computed as je, openBlock as w, createElementBlock as N, createElementVNode as h, withModifiers as B, normalizeClass as F, renderSlot as P, createBlock as L, unref as b, createCommentVNode as Z, createVNode as O, withCtx as _, createTextVNode as T, onMounted as Ne, onBeforeUnmount as Se, ref as V, Fragment as se, renderList as ue, toDisplayString as ke, h as C, mergeProps as Ee } from "vue";
import { Menu as ve, MenuItem as A } from "@insightphp/elements";
import { Portal as $, registerPages as Pe, registerComponents as ce } from "@insightphp/inertia-view";
import { Inertia as $e } from "@inertiajs/inertia";
class Ce {
}
const N = new S(), P = { class: "bg-white grid grid-cols-5 h-16 border-b border-gray-200 px-4" }, B = { class: "lg:col-span-2 flex flex-row items-center" }, z = /* @__PURE__ */ e("div", { class: "hidden lg:inline-flex items-center" }, [
/* @__PURE__ */ e("svg", {
const Ae = new Ce(), Fe = { class: "bg-white grid grid-cols-5 h-16 border-b border-gray-200 px-4" }, De = { class: "lg:col-span-2 flex flex-row items-center" }, Te = /* @__PURE__ */ h("div", { class: "hidden lg:inline-flex items-center" }, [
/* @__PURE__ */ h("svg", {
class: "w-8 h-8 mr-2 text-primary-500",

@@ -13,3 +14,3 @@ xmlns: "http://www.w3.org/2000/svg",

}, [
/* @__PURE__ */ e("path", {
/* @__PURE__ */ h("path", {
fill: "currentColor",

@@ -19,4 +20,4 @@ d: "M27,0C12.1,0,0,12.1,0,27c0,14.9,12.1,27,27,27c14.9,0,27-12.1,27-27C54,12.1,41.9,0,27,0z M43.3,19l-8.1,1.8l-8,1.8l8,1.8v7.3v0V39L27,40.8l-8.1,1.8v-7.3l8.1-1.8l8-1.8l-8-1.8l-8.1-1.8l-8.1-1.8v0v-7.3v0l8.1-1.8l8.1-1.8l8.1-1.8l8.1-1.8V19z"

]),
/* @__PURE__ */ e("span", { class: "text-black font-medium text-lg" }, "Insight")
], -1), V = /* @__PURE__ */ e("svg", {
/* @__PURE__ */ h("span", { class: "text-black font-medium text-lg" }, "Insight")
], -1), Re = /* @__PURE__ */ h("svg", {
xmlns: "http://www.w3.org/2000/svg",

@@ -29,3 +30,3 @@ fill: "none",

}, [
/* @__PURE__ */ e("path", {
/* @__PURE__ */ h("path", {
"stroke-linecap": "round",

@@ -35,6 +36,6 @@ "stroke-linejoin": "round",

})
], -1), I = [
V
], L = { class: "hidden lg:block ml-4" }, H = { class: "col-span-3 lg:col-span-1 flex flex-row items-center justify-center" }, T = /* @__PURE__ */ e("span", { class: "inline-flex items-center text-gray-500" }, [
/* @__PURE__ */ e("svg", {
], -1), Le = [
Re
], Me = { class: "hidden lg:block ml-4" }, Be = { class: "col-span-3 lg:col-span-1 flex flex-row items-center justify-center" }, ze = /* @__PURE__ */ h("span", { class: "inline-flex items-center text-gray-500" }, [
/* @__PURE__ */ h("svg", {
xmlns: "http://www.w3.org/2000/svg",

@@ -47,3 +48,3 @@ fill: "none",

}, [
/* @__PURE__ */ e("path", {
/* @__PURE__ */ h("path", {
"stroke-linecap": "round",

@@ -54,15 +55,15 @@ "stroke-linejoin": "round",

]),
/* @__PURE__ */ e("span", { class: "text-sm ml-2" }, "Search\u2026")
], -1), D = { class: "inline-flex items-center space-x-2" }, E = {
/* @__PURE__ */ h("span", { class: "text-sm ml-2" }, "Search\u2026")
], -1), He = { class: "inline-flex items-center space-x-2" }, Ie = {
key: 0,
class: "text-xs font-sans text-gray-400 border rounded px-2"
}, F = {
}, Ve = {
key: 1,
class: "text-xs font-sans text-gray-400 border rounded px-2"
}, A = { class: "lg:col-span-2 flex flex-row items-center justify-end" }, K = { class: "hidden lg:block mr-2" }, R = /* @__PURE__ */ e("button", { class: "inline-flex items-center hover:bg-primary-50 text-sm text-gray-900 hover:text-primary-700 font-medium py-1 px-2 rounded-lg transition-colors duration-300" }, [
/* @__PURE__ */ e("img", {
}, Qe = { class: "lg:col-span-2 flex flex-row items-center justify-end" }, Ue = { class: "hidden lg:block mr-2" }, qe = /* @__PURE__ */ h("button", { class: "inline-flex items-center hover:bg-primary-50 text-sm text-gray-900 hover:text-primary-700 font-medium py-1 px-2 rounded-lg transition-colors duration-300" }, [
/* @__PURE__ */ h("img", {
class: "w-8 h-8 rounded-full",
src: "https://ui-avatars.com/api/?name=Peter+Stovka&color=9333ea&background=f3e8ff"
})
], -1), U = /* @__PURE__ */ p("Repositories"), q = /* @__PURE__ */ p("Issues "), G = /* @__PURE__ */ e("span", { class: "badge warning ml-2" }, "2 New", -1), J = /* @__PURE__ */ p("Profile"), Q = /* @__PURE__ */ p("Settings"), W = /* @__PURE__ */ p("Log Out"), X = /* @__PURE__ */ h({
], -1), Ze = /* @__PURE__ */ T("Repositories"), Ke = /* @__PURE__ */ T("Issues "), Ge = /* @__PURE__ */ h("span", { class: "badge warning ml-2" }, "2 New", -1), We = /* @__PURE__ */ T("Profile"), Xe = /* @__PURE__ */ T("Settings"), Ye = /* @__PURE__ */ T("Log Out"), Je = /* @__PURE__ */ H({
__name: "Header",

@@ -76,78 +77,78 @@ props: {

emits: ["toggleDrawer", "toggleSearch"],
setup(t, { emit: o }) {
const n = y(() => navigator.platform.toUpperCase().indexOf("MAC") >= 0);
return (r, i) => (l(), c("div", P, [
e("div", B, [
z,
e("button", {
onClick: i[0] || (i[0] = _((x) => o("toggleDrawer"), ["prevent"])),
class: b(["lg:hidden rounded-lg p-2 transition-colors duration-300", [t.mobileOpen ? "text-primary-700 bg-primary-100" : "hover:bg-primary-100 hover:text-primary-700"]])
}, I, 2),
e("div", L, [
u(r.$slots, "left-navigation", {}, () => [
t.leftNavigation ? (l(), v(s(m), {
setup(i, { emit: e }) {
const t = je(() => navigator.platform.toUpperCase().indexOf("MAC") >= 0);
return (r, l) => (w(), N("div", Fe, [
h("div", De, [
Te,
h("button", {
onClick: l[0] || (l[0] = B((n) => e("toggleDrawer"), ["prevent"])),
class: F(["lg:hidden rounded-lg p-2 transition-colors duration-300", [i.mobileOpen ? "text-primary-700 bg-primary-100" : "hover:bg-primary-100 hover:text-primary-700"]])
}, Le, 2),
h("div", Me, [
P(r.$slots, "left-navigation", {}, () => [
i.leftNavigation ? (w(), L(b($), {
key: 0,
component: t.leftNavigation
}, null, 8, ["component"])) : f("", !0)
component: i.leftNavigation
}, null, 8, ["component"])) : Z("", !0)
])
])
]),
e("div", H, [
u(r.$slots, "center", {}, () => [
t.showSearch ? (l(), c("button", {
h("div", Be, [
P(r.$slots, "center", {}, () => [
i.showSearch ? (w(), N("button", {
key: 0,
onClick: i[1] || (i[1] = _((x) => o("toggleSearch"), ["prevent"])),
onClick: l[1] || (l[1] = B((n) => e("toggleSearch"), ["prevent"])),
class: "w-full max-w-xs flex justify-between items-center border border-gray-300 rounded-lg px-2 py-2"
}, [
T,
e("div", D, [
s(n) ? (l(), c("kbd", E, "\u2318K")) : (l(), c("kbd", F, "CTRL+K"))
ze,
h("div", He, [
b(t) ? (w(), N("kbd", Ie, "\u2318K")) : (w(), N("kbd", Ve, "CTRL+K"))
])
])) : f("", !0)
])) : Z("", !0)
])
]),
e("div", A, [
e("div", K, [
u(r.$slots, "right-navigation", {}, () => [
t.rightNavigation ? (l(), v(s(m), {
h("div", Qe, [
h("div", Ue, [
P(r.$slots, "right-navigation", {}, () => [
i.rightNavigation ? (w(), L(b($), {
key: 0,
component: t.rightNavigation
}, null, 8, ["component"])) : f("", !0)
component: i.rightNavigation
}, null, 8, ["component"])) : Z("", !0)
])
]),
e("div", null, [
a(s(M), {
h("div", null, [
O(b(ve), {
class: "w-48",
placement: "bottom-right"
}, {
toggle: d(() => [
R
toggle: _(() => [
qe
]),
default: d(() => [
a(s(g), { class: "menu-item" }, {
default: d(() => [
U
default: _(() => [
O(b(A), { class: "menu-item" }, {
default: _(() => [
Ze
]),
_: 1
}),
a(s(g), { class: "menu-item" }, {
default: d(() => [
q,
G
O(b(A), { class: "menu-item" }, {
default: _(() => [
Ke,
Ge
]),
_: 1
}),
a(s(g), { class: "menu-item" }, {
default: d(() => [
J
O(b(A), { class: "menu-item" }, {
default: _(() => [
We
]),
_: 1
}),
a(s(g), { class: "menu-item" }, {
default: d(() => [
Q
O(b(A), { class: "menu-item" }, {
default: _(() => [
Xe
]),
_: 1
}),
a(s(g), {
O(b(A), {
as: "a",

@@ -157,4 +158,4 @@ href: "#",

}, {
default: d(() => [
W
default: _(() => [
Ye
]),

@@ -170,11 +171,662 @@ _: 1

}
}), Y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
}), et = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: X
}, Symbol.toStringTag, { value: "Module" })), Z = (t, o) => {
const n = t.__vccOpts || t;
for (const [r, i] of o)
n[r] = i;
return n;
}, ee = { class: "flex flex-row" }, te = { class: "text-sm mr-2" }, oe = /* @__PURE__ */ h({
default: Je
}, Symbol.toStringTag, { value: "Module" }));
var tt = String.prototype.replace, rt = /%20/g, K = {
RFC1738: "RFC1738",
RFC3986: "RFC3986"
}, re = {
default: K.RFC3986,
formatters: {
RFC1738: function(i) {
return tt.call(i, rt, "+");
},
RFC3986: function(i) {
return String(i);
}
},
RFC1738: K.RFC1738,
RFC3986: K.RFC3986
}, nt = re, G = Object.prototype.hasOwnProperty, k = Array.isArray, j = function() {
for (var i = [], e = 0; e < 256; ++e)
i.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
return i;
}(), it = function(e) {
for (; e.length > 1; ) {
var t = e.pop(), r = t.obj[t.prop];
if (k(r)) {
for (var l = [], n = 0; n < r.length; ++n)
typeof r[n] < "u" && l.push(r[n]);
t.obj[t.prop] = l;
}
}
}, he = function(e, t) {
for (var r = t && t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, l = 0; l < e.length; ++l)
typeof e[l] < "u" && (r[l] = e[l]);
return r;
}, at = function i(e, t, r) {
if (!t)
return e;
if (typeof t != "object") {
if (k(e))
e.push(t);
else if (e && typeof e == "object")
(r && (r.plainObjects || r.allowPrototypes) || !G.call(Object.prototype, t)) && (e[t] = !0);
else
return [e, t];
return e;
}
if (!e || typeof e != "object")
return [e].concat(t);
var l = e;
return k(e) && !k(t) && (l = he(e, r)), k(e) && k(t) ? (t.forEach(function(n, a) {
if (G.call(e, a)) {
var s = e[a];
s && typeof s == "object" && n && typeof n == "object" ? e[a] = i(s, n, r) : e.push(n);
} else
e[a] = n;
}), e) : Object.keys(t).reduce(function(n, a) {
var s = t[a];
return G.call(n, a) ? n[a] = i(n[a], s, r) : n[a] = s, n;
}, l);
}, ot = function(e, t) {
return Object.keys(t).reduce(function(r, l) {
return r[l] = t[l], r;
}, e);
}, lt = function(i, e, t) {
var r = i.replace(/\+/g, " ");
if (t === "iso-8859-1")
return r.replace(/%[0-9a-f]{2}/gi, unescape);
try {
return decodeURIComponent(r);
} catch {
return r;
}
}, st = function(e, t, r, l, n) {
if (e.length === 0)
return e;
var a = e;
if (typeof e == "symbol" ? a = Symbol.prototype.toString.call(e) : typeof e != "string" && (a = String(e)), r === "iso-8859-1")
return escape(a).replace(/%u[0-9a-f]{4}/gi, function(c) {
return "%26%23" + parseInt(c.slice(2), 16) + "%3B";
});
for (var s = "", u = 0; u < a.length; ++u) {
var o = a.charCodeAt(u);
if (o === 45 || o === 46 || o === 95 || o === 126 || o >= 48 && o <= 57 || o >= 65 && o <= 90 || o >= 97 && o <= 122 || n === nt.RFC1738 && (o === 40 || o === 41)) {
s += a.charAt(u);
continue;
}
if (o < 128) {
s = s + j[o];
continue;
}
if (o < 2048) {
s = s + (j[192 | o >> 6] + j[128 | o & 63]);
continue;
}
if (o < 55296 || o >= 57344) {
s = s + (j[224 | o >> 12] + j[128 | o >> 6 & 63] + j[128 | o & 63]);
continue;
}
u += 1, o = 65536 + ((o & 1023) << 10 | a.charCodeAt(u) & 1023), s += j[240 | o >> 18] + j[128 | o >> 12 & 63] + j[128 | o >> 6 & 63] + j[128 | o & 63];
}
return s;
}, ut = function(e) {
for (var t = [{ obj: { o: e }, prop: "o" }], r = [], l = 0; l < t.length; ++l)
for (var n = t[l], a = n.obj[n.prop], s = Object.keys(a), u = 0; u < s.length; ++u) {
var o = s[u], c = a[o];
typeof c == "object" && c !== null && r.indexOf(c) === -1 && (t.push({ obj: a, prop: o }), r.push(c));
}
return it(t), e;
}, ct = function(e) {
return Object.prototype.toString.call(e) === "[object RegExp]";
}, ft = function(e) {
return !e || typeof e != "object" ? !1 : !!(e.constructor && e.constructor.isBuffer && e.constructor.isBuffer(e));
}, dt = function(e, t) {
return [].concat(e, t);
}, pt = function(e, t) {
if (k(e)) {
for (var r = [], l = 0; l < e.length; l += 1)
r.push(t(e[l]));
return r;
}
return t(e);
}, me = {
arrayToObject: he,
assign: ot,
combine: dt,
compact: ut,
decode: lt,
encode: st,
isBuffer: ft,
isRegExp: ct,
maybeMap: pt,
merge: at
}, X = me, M = re, vt = Object.prototype.hasOwnProperty, fe = {
brackets: function(e) {
return e + "[]";
},
comma: "comma",
indices: function(e, t) {
return e + "[" + t + "]";
},
repeat: function(e) {
return e;
}
}, E = Array.isArray, ht = String.prototype.split, mt = Array.prototype.push, ge = function(i, e) {
mt.apply(i, E(e) ? e : [e]);
}, gt = Date.prototype.toISOString, de = M.default, y = {
addQueryPrefix: !1,
allowDots: !1,
charset: "utf-8",
charsetSentinel: !1,
delimiter: "&",
encode: !0,
encoder: X.encode,
encodeValuesOnly: !1,
format: de,
formatter: M.formatters[de],
indices: !1,
serializeDate: function(e) {
return gt.call(e);
},
skipNulls: !1,
strictNullHandling: !1
}, yt = function(e) {
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || typeof e == "symbol" || typeof e == "bigint";
}, bt = function i(e, t, r, l, n, a, s, u, o, c, f, m, v, d) {
var p = e;
if (typeof s == "function" ? p = s(t, p) : p instanceof Date ? p = c(p) : r === "comma" && E(p) && (p = X.maybeMap(p, function(q) {
return q instanceof Date ? c(q) : q;
})), p === null) {
if (l)
return a && !v ? a(t, y.encoder, d, "key", f) : t;
p = "";
}
if (yt(p) || X.isBuffer(p)) {
if (a) {
var ne = v ? t : a(t, y.encoder, d, "key", f);
if (r === "comma" && v) {
for (var ie = ht.call(String(p), ","), ae = "", I = 0; I < ie.length; ++I)
ae += (I === 0 ? "" : ",") + m(a(ie[I], y.encoder, d, "value", f));
return [m(ne) + "=" + ae];
}
return [m(ne) + "=" + m(a(p, y.encoder, d, "value", f))];
}
return [m(t) + "=" + m(String(p))];
}
var Q = [];
if (typeof p > "u")
return Q;
var R;
if (r === "comma" && E(p))
R = [{ value: p.length > 0 ? p.join(",") || null : void 0 }];
else if (E(s))
R = s;
else {
var oe = Object.keys(p);
R = u ? oe.sort(u) : oe;
}
for (var U = 0; U < R.length; ++U) {
var S = R[U], le = typeof S == "object" && typeof S.value < "u" ? S.value : p[S];
if (!(n && le === null)) {
var Oe = E(p) ? typeof r == "function" ? r(t, S) : t : t + (o ? "." + S : "[" + S + "]");
ge(Q, i(
le,
Oe,
r,
l,
n,
a,
s,
u,
o,
c,
f,
m,
v,
d
));
}
}
return Q;
}, wt = function(e) {
if (!e)
return y;
if (e.encoder !== null && typeof e.encoder < "u" && typeof e.encoder != "function")
throw new TypeError("Encoder has to be a function.");
var t = e.charset || y.charset;
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
var r = M.default;
if (typeof e.format < "u") {
if (!vt.call(M.formatters, e.format))
throw new TypeError("Unknown format option provided.");
r = e.format;
}
var l = M.formatters[r], n = y.filter;
return (typeof e.filter == "function" || E(e.filter)) && (n = e.filter), {
addQueryPrefix: typeof e.addQueryPrefix == "boolean" ? e.addQueryPrefix : y.addQueryPrefix,
allowDots: typeof e.allowDots > "u" ? y.allowDots : !!e.allowDots,
charset: t,
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : y.charsetSentinel,
delimiter: typeof e.delimiter > "u" ? y.delimiter : e.delimiter,
encode: typeof e.encode == "boolean" ? e.encode : y.encode,
encoder: typeof e.encoder == "function" ? e.encoder : y.encoder,
encodeValuesOnly: typeof e.encodeValuesOnly == "boolean" ? e.encodeValuesOnly : y.encodeValuesOnly,
filter: n,
format: r,
formatter: l,
serializeDate: typeof e.serializeDate == "function" ? e.serializeDate : y.serializeDate,
skipNulls: typeof e.skipNulls == "boolean" ? e.skipNulls : y.skipNulls,
sort: typeof e.sort == "function" ? e.sort : null,
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : y.strictNullHandling
};
}, xt = function(i, e) {
var t = i, r = wt(e), l, n;
typeof r.filter == "function" ? (n = r.filter, t = n("", t)) : E(r.filter) && (n = r.filter, l = n);
var a = [];
if (typeof t != "object" || t === null)
return "";
var s;
e && e.arrayFormat in fe ? s = e.arrayFormat : e && "indices" in e ? s = e.indices ? "indices" : "repeat" : s = "indices";
var u = fe[s];
l || (l = Object.keys(t)), r.sort && l.sort(r.sort);
for (var o = 0; o < l.length; ++o) {
var c = l[o];
r.skipNulls && t[c] === null || ge(a, bt(
t[c],
c,
u,
r.strictNullHandling,
r.skipNulls,
r.encode ? r.encoder : null,
r.filter,
r.sort,
r.allowDots,
r.serializeDate,
r.format,
r.formatter,
r.encodeValuesOnly,
r.charset
));
}
var f = a.join(r.delimiter), m = r.addQueryPrefix === !0 ? "?" : "";
return r.charsetSentinel && (r.charset === "iso-8859-1" ? m += "utf8=%26%2310003%3B&" : m += "utf8=%E2%9C%93&"), f.length > 0 ? m + f : "";
}, D = me, Y = Object.prototype.hasOwnProperty, _t = Array.isArray, g = {
allowDots: !1,
allowPrototypes: !1,
arrayLimit: 20,
charset: "utf-8",
charsetSentinel: !1,
comma: !1,
decoder: D.decode,
delimiter: "&",
depth: 5,
ignoreQueryPrefix: !1,
interpretNumericEntities: !1,
parameterLimit: 1e3,
parseArrays: !0,
plainObjects: !1,
strictNullHandling: !1
}, Ot = function(i) {
return i.replace(/&#(\d+);/g, function(e, t) {
return String.fromCharCode(parseInt(t, 10));
});
}, ye = function(i, e) {
return i && typeof i == "string" && e.comma && i.indexOf(",") > -1 ? i.split(",") : i;
}, jt = "utf8=%26%2310003%3B", Nt = "utf8=%E2%9C%93", St = function(e, t) {
var r = {}, l = t.ignoreQueryPrefix ? e.replace(/^\?/, "") : e, n = t.parameterLimit === 1 / 0 ? void 0 : t.parameterLimit, a = l.split(t.delimiter, n), s = -1, u, o = t.charset;
if (t.charsetSentinel)
for (u = 0; u < a.length; ++u)
a[u].indexOf("utf8=") === 0 && (a[u] === Nt ? o = "utf-8" : a[u] === jt && (o = "iso-8859-1"), s = u, u = a.length);
for (u = 0; u < a.length; ++u)
if (u !== s) {
var c = a[u], f = c.indexOf("]="), m = f === -1 ? c.indexOf("=") : f + 1, v, d;
m === -1 ? (v = t.decoder(c, g.decoder, o, "key"), d = t.strictNullHandling ? null : "") : (v = t.decoder(c.slice(0, m), g.decoder, o, "key"), d = D.maybeMap(
ye(c.slice(m + 1), t),
function(p) {
return t.decoder(p, g.decoder, o, "value");
}
)), d && t.interpretNumericEntities && o === "iso-8859-1" && (d = Ot(d)), c.indexOf("[]=") > -1 && (d = _t(d) ? [d] : d), Y.call(r, v) ? r[v] = D.combine(r[v], d) : r[v] = d;
}
return r;
}, kt = function(i, e, t, r) {
for (var l = r ? e : ye(e, t), n = i.length - 1; n >= 0; --n) {
var a, s = i[n];
if (s === "[]" && t.parseArrays)
a = [].concat(l);
else {
a = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
var u = s.charAt(0) === "[" && s.charAt(s.length - 1) === "]" ? s.slice(1, -1) : s, o = parseInt(u, 10);
!t.parseArrays && u === "" ? a = { 0: l } : !isNaN(o) && s !== u && String(o) === u && o >= 0 && t.parseArrays && o <= t.arrayLimit ? (a = [], a[o] = l) : u !== "__proto__" && (a[u] = l);
}
l = a;
}
return l;
}, Et = function(e, t, r, l) {
if (!!e) {
var n = r.allowDots ? e.replace(/\.([^.[]+)/g, "[$1]") : e, a = /(\[[^[\]]*])/, s = /(\[[^[\]]*])/g, u = r.depth > 0 && a.exec(n), o = u ? n.slice(0, u.index) : n, c = [];
if (o) {
if (!r.plainObjects && Y.call(Object.prototype, o) && !r.allowPrototypes)
return;
c.push(o);
}
for (var f = 0; r.depth > 0 && (u = s.exec(n)) !== null && f < r.depth; ) {
if (f += 1, !r.plainObjects && Y.call(Object.prototype, u[1].slice(1, -1)) && !r.allowPrototypes)
return;
c.push(u[1]);
}
return u && c.push("[" + n.slice(u.index) + "]"), kt(c, t, r, l);
}
}, Pt = function(e) {
if (!e)
return g;
if (e.decoder !== null && e.decoder !== void 0 && typeof e.decoder != "function")
throw new TypeError("Decoder has to be a function.");
if (typeof e.charset < "u" && e.charset !== "utf-8" && e.charset !== "iso-8859-1")
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
var t = typeof e.charset > "u" ? g.charset : e.charset;
return {
allowDots: typeof e.allowDots > "u" ? g.allowDots : !!e.allowDots,
allowPrototypes: typeof e.allowPrototypes == "boolean" ? e.allowPrototypes : g.allowPrototypes,
arrayLimit: typeof e.arrayLimit == "number" ? e.arrayLimit : g.arrayLimit,
charset: t,
charsetSentinel: typeof e.charsetSentinel == "boolean" ? e.charsetSentinel : g.charsetSentinel,
comma: typeof e.comma == "boolean" ? e.comma : g.comma,
decoder: typeof e.decoder == "function" ? e.decoder : g.decoder,
delimiter: typeof e.delimiter == "string" || D.isRegExp(e.delimiter) ? e.delimiter : g.delimiter,
depth: typeof e.depth == "number" || e.depth === !1 ? +e.depth : g.depth,
ignoreQueryPrefix: e.ignoreQueryPrefix === !0,
interpretNumericEntities: typeof e.interpretNumericEntities == "boolean" ? e.interpretNumericEntities : g.interpretNumericEntities,
parameterLimit: typeof e.parameterLimit == "number" ? e.parameterLimit : g.parameterLimit,
parseArrays: e.parseArrays !== !1,
plainObjects: typeof e.plainObjects == "boolean" ? e.plainObjects : g.plainObjects,
strictNullHandling: typeof e.strictNullHandling == "boolean" ? e.strictNullHandling : g.strictNullHandling
};
}, $t = function(i, e) {
var t = Pt(e);
if (i === "" || i === null || typeof i > "u")
return t.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
for (var r = typeof i == "string" ? St(i, t) : i, l = t.plainObjects ? /* @__PURE__ */ Object.create(null) : {}, n = Object.keys(r), a = 0; a < n.length; ++a) {
var s = n[a], u = Et(s, r[s], t, typeof i == "string");
l = D.merge(l, u, t);
}
return D.compact(l);
}, Ct = xt, At = $t, Ft = re, be = {
formats: Ft,
parse: At,
stringify: Ct
};
function pe(i, e) {
for (var t = 0; t < e.length; t++) {
var r = e[t];
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(i, r.key, r);
}
}
function we(i, e, t) {
return e && pe(i.prototype, e), t && pe(i, t), Object.defineProperty(i, "prototype", { writable: !1 }), i;
}
function x() {
return x = Object.assign ? Object.assign.bind() : function(i) {
for (var e = 1; e < arguments.length; e++) {
var t = arguments[e];
for (var r in t)
Object.prototype.hasOwnProperty.call(t, r) && (i[r] = t[r]);
}
return i;
}, x.apply(this, arguments);
}
function J(i) {
return J = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
return e.__proto__ || Object.getPrototypeOf(e);
}, J(i);
}
function z(i, e) {
return z = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, r) {
return t.__proto__ = r, t;
}, z(i, e);
}
function Dt() {
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
return !1;
if (typeof Proxy == "function")
return !0;
try {
return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
})), !0;
} catch {
return !1;
}
}
function ee(i, e, t) {
return ee = Dt() ? Reflect.construct.bind() : function(r, l, n) {
var a = [null];
a.push.apply(a, l);
var s = new (Function.bind.apply(r, a))();
return n && z(s, n.prototype), s;
}, ee.apply(null, arguments);
}
function te(i) {
var e = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
return te = function(t) {
if (t === null || Function.toString.call(t).indexOf("[native code]") === -1)
return t;
if (typeof t != "function")
throw new TypeError("Super expression must either be null or a function");
if (e !== void 0) {
if (e.has(t))
return e.get(t);
e.set(t, r);
}
function r() {
return ee(t, arguments, J(this).constructor);
}
return r.prototype = Object.create(t.prototype, { constructor: { value: r, enumerable: !1, writable: !0, configurable: !0 } }), z(r, t);
}, te(i);
}
var W = /* @__PURE__ */ function() {
function i(t, r, l) {
var n, a;
this.name = t, this.definition = r, this.bindings = (n = r.bindings) != null ? n : {}, this.wheres = (a = r.wheres) != null ? a : {}, this.config = l;
}
var e = i.prototype;
return e.matchesUrl = function(t) {
var r = this;
if (!this.definition.methods.includes("GET"))
return !1;
var l = this.template.replace(/(\/?){([^}?]*)(\??)}/g, function(o, c, f, m) {
var v, d = "(?<" + f + ">" + (((v = r.wheres[f]) == null ? void 0 : v.replace(/(^\^)|(\$$)/g, "")) || "[^/?]+") + ")";
return m ? "(" + c + d + ")?" : "" + c + d;
}).replace(/^\w+:\/\//, ""), n = t.replace(/^\w+:\/\//, "").split("?"), a = n[0], s = n[1], u = new RegExp("^" + l + "/?$").exec(a);
return !!u && { params: u.groups, query: be.parse(s) };
}, e.compile = function(t) {
var r = this, l = this.parameterSegments;
return l.length ? this.template.replace(/{([^}?]+)(\??)}/g, function(n, a, s) {
var u, o, c;
if (!s && [null, void 0].includes(t[a]))
throw new Error("Ziggy error: '" + a + "' parameter is required for route '" + r.name + "'.");
if (l[l.length - 1].name === a && r.wheres[a] === ".*")
return encodeURIComponent((c = t[a]) != null ? c : "").replace(/%2F/g, "/");
if (r.wheres[a] && !new RegExp("^" + (s ? "(" + r.wheres[a] + ")?" : r.wheres[a]) + "$").test((u = t[a]) != null ? u : ""))
throw new Error("Ziggy error: '" + a + "' parameter does not match required format '" + r.wheres[a] + "' for route '" + r.name + "'.");
return encodeURIComponent((o = t[a]) != null ? o : "");
}).replace(/\/+$/, "") : this.template;
}, we(i, [{ key: "template", get: function() {
return ((this.config.absolute ? this.definition.domain ? "" + this.config.url.match(/^\w+:\/\//)[0] + this.definition.domain + (this.config.port ? ":" + this.config.port : "") : this.config.url : "") + "/" + this.definition.uri).replace(/\/+$/, "");
} }, { key: "parameterSegments", get: function() {
var t, r;
return (t = (r = this.template.match(/{[^}?]+\??}/g)) == null ? void 0 : r.map(function(l) {
return { name: l.replace(/{|\??}/g, ""), required: !/\?}$/.test(l) };
})) != null ? t : [];
} }]), i;
}(), Tt = /* @__PURE__ */ function(i) {
var e, t;
function r(n, a, s, u) {
var o;
if (s === void 0 && (s = !0), (o = i.call(this) || this).t = u != null ? u : typeof Ziggy < "u" ? Ziggy : globalThis == null ? void 0 : globalThis.Ziggy, o.t = x({}, o.t, { absolute: s }), n) {
if (!o.t.routes[n])
throw new Error("Ziggy error: route '" + n + "' is not in the route list.");
o.i = new W(n, o.t.routes[n], o.t), o.u = o.o(a);
}
return o;
}
t = i, (e = r).prototype = Object.create(t.prototype), e.prototype.constructor = e, z(e, t);
var l = r.prototype;
return l.toString = function() {
var n = this, a = Object.keys(this.u).filter(function(s) {
return !n.i.parameterSegments.some(function(u) {
return u.name === s;
});
}).filter(function(s) {
return s !== "_query";
}).reduce(function(s, u) {
var o;
return x({}, s, ((o = {})[u] = n.u[u], o));
}, {});
return this.i.compile(this.u) + be.stringify(x({}, a, this.u._query), { addQueryPrefix: !0, arrayFormat: "indices", encodeValuesOnly: !0, skipNulls: !0, encoder: function(s, u) {
return typeof s == "boolean" ? Number(s) : u(s);
} });
}, l.l = function(n) {
var a = this;
n ? this.t.absolute && n.startsWith("/") && (n = this.h().host + n) : n = this.v();
var s = {}, u = Object.entries(this.t.routes).find(function(o) {
return s = new W(o[0], o[1], a.t).matchesUrl(n);
}) || [void 0, void 0];
return x({ name: u[0] }, s, { route: u[1] });
}, l.v = function() {
var n = this.h(), a = n.pathname, s = n.search;
return (this.t.absolute ? n.host + a : a.replace(this.t.url.replace(/^\w*:\/\/[^/]+/, ""), "").replace(/^\/+/, "/")) + s;
}, l.current = function(n, a) {
var s = this.l(), u = s.name, o = s.params, c = s.query, f = s.route;
if (!n)
return u;
var m = new RegExp("^" + n.replace(/\./g, "\\.").replace(/\*/g, ".*") + "$").test(u);
if ([null, void 0].includes(a) || !m)
return m;
var v = new W(u, f, this.t);
a = this.o(a, v);
var d = x({}, o, c);
return !(!Object.values(a).every(function(p) {
return !p;
}) || Object.values(d).some(function(p) {
return p !== void 0;
})) || Object.entries(a).every(function(p) {
return d[p[0]] == p[1];
});
}, l.h = function() {
var n, a, s, u, o, c, f = typeof window < "u" ? window.location : {}, m = f.host, v = f.pathname, d = f.search;
return { host: (n = (a = this.t.location) == null ? void 0 : a.host) != null ? n : m === void 0 ? "" : m, pathname: (s = (u = this.t.location) == null ? void 0 : u.pathname) != null ? s : v === void 0 ? "" : v, search: (o = (c = this.t.location) == null ? void 0 : c.search) != null ? o : d === void 0 ? "" : d };
}, l.has = function(n) {
return Object.keys(this.t.routes).includes(n);
}, l.o = function(n, a) {
var s = this;
n === void 0 && (n = {}), a === void 0 && (a = this.i), n != null || (n = {}), n = ["string", "number"].includes(typeof n) ? [n] : n;
var u = a.parameterSegments.filter(function(c) {
return !s.t.defaults[c.name];
});
if (Array.isArray(n))
n = n.reduce(function(c, f, m) {
var v, d;
return x({}, c, u[m] ? ((v = {})[u[m].name] = f, v) : typeof f == "object" ? f : ((d = {})[f] = "", d));
}, {});
else if (u.length === 1 && !n[u[0].name] && (n.hasOwnProperty(Object.values(a.bindings)[0]) || n.hasOwnProperty("id"))) {
var o;
(o = {})[u[0].name] = n, n = o;
}
return x({}, this.g(a), this.p(n, a));
}, l.g = function(n) {
var a = this;
return n.parameterSegments.filter(function(s) {
return a.t.defaults[s.name];
}).reduce(function(s, u, o) {
var c, f = u.name;
return x({}, s, ((c = {})[f] = a.t.defaults[f], c));
}, {});
}, l.p = function(n, a) {
var s = a.bindings, u = a.parameterSegments;
return Object.entries(n).reduce(function(o, c) {
var f, m, v = c[0], d = c[1];
if (!d || typeof d != "object" || Array.isArray(d) || !u.some(function(p) {
return p.name === v;
}))
return x({}, o, ((m = {})[v] = d, m));
if (!d.hasOwnProperty(s[v])) {
if (!d.hasOwnProperty("id"))
throw new Error("Ziggy error: object passed as '" + v + "' parameter is missing route model binding key '" + s[v] + "'.");
s[v] = "id";
}
return x({}, o, ((f = {})[v] = d[s[v]], f));
}, {});
}, l.valueOf = function() {
return this.toString();
}, l.check = function(n) {
return this.has(n);
}, we(r, [{ key: "params", get: function() {
var n = this.l();
return x({}, n.params, n.query);
} }]), r;
}(/* @__PURE__ */ te(String));
function Rt(i, e, t, r) {
var l = new Tt(i, e, t, r);
return i ? l.toString() : l;
}
function Lt(i) {
return !!i.activatedOnRoutes.some((e) => Rt().current(e.route, e.params));
}
function xe(i) {
const e = (o) => {
const c = o.link.isActive;
return c ? Lt(c) : !1;
}, t = (o) => ({
item: o,
isActive: V(e(o)),
childNavigation: o.childNavigation ? r(o.childNavigation) : null,
isExpanded: V(!1)
}), r = (o) => ({
items: o.items.map((c) => t(c)),
childActive: V(!1)
}), l = r(i), n = (o) => o.items.some((c) => c.isActive.value ? !0 : c.childNavigation ? n(c.childNavigation) : !1), a = (o) => {
o.items.forEach((c) => {
c.isActive.value = e(c.item), c.childNavigation && a(c.childNavigation);
}), o.childActive.value = o.items.some((c) => c.isActive.value);
}, s = (o, c = !1) => {
o.items.forEach((f) => {
if (f.childNavigation) {
if (c && f.isExpanded.value) {
s(f.childNavigation, c);
return;
}
f.isExpanded.value = f.isActive.value || n(f.childNavigation), s(f.childNavigation);
} else {
if (c && f.isExpanded.value)
return;
f.isExpanded.value = f.isActive.value;
}
});
};
let u;
return Ne(() => {
u = $e.on("finish", () => {
a(l), s(l, !0);
}), a(l), s(l);
}), Se(() => {
u();
}), {
navigation: l
};
}
const Mt = { class: "flex flex-row" }, Bt = /* @__PURE__ */ h("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
class: "w-5 h-5 ml-0.5"
}, [
/* @__PURE__ */ h("path", {
"fill-rule": "evenodd",
d: "M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",
"clip-rule": "evenodd"
})
], -1), zt = /* @__PURE__ */ H({
__name: "HeaderNavigation",

@@ -184,72 +836,189 @@ props: {

},
setup(t) {
return console.log(t.navigation), (n, r) => (l(), c("ul", ee, [
(l(!0), c(k, null, j(t.navigation.items, (i) => (l(), c("li", te, [
a(s(m), {
component: i.link
}, null, 8, ["component"])
setup(i) {
const e = i, { navigation: t } = xe(e.navigation);
return (r, l) => (w(), N("ul", Mt, [
(w(!0), N(se, null, ue(b(t).items, (n) => (w(), N("li", null, [
n.childNavigation ? (w(), L(b(ve), {
key: 0,
class: "w-48"
}, {
toggle: _(() => [
h("button", {
class: F(["inline-flex items-center text-sm font-medium text-gray-700 px-3 py-2 rounded-lg transition-colors duration-150", [n.isActive.value || n.childNavigation.childActive.value ? "bg-primary-50 text-primary-700" : "hover:text-gray-600"]])
}, [
T(ke(n.item.link.title) + " ", 1),
Bt
], 2)
]),
default: _(() => [
(w(!0), N(se, null, ue(n.childNavigation.items, (a) => (w(), L(b(A), { as: "template" }, {
default: _(() => [
O(b($), {
class: F(["menu-item", { "bg-primary-50 text-primary-700": a.isActive.value }]),
component: a.item.link
}, null, 8, ["component", "class"])
]),
_: 2
}, 1024))), 256))
]),
_: 2
}, 1024)) : (w(), L(b($), {
key: 1,
class: F(["text-sm font-medium text-gray-700 px-3 py-2 rounded-lg transition-colors duration-150 flex", { "bg-primary-50 text-primary-700": n.isActive.value }]),
component: n.item.link
}, null, 8, ["class", "component"]))
]))), 256))
]));
}
}), se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
}), Ht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: oe
}, Symbol.toStringTag, { value: "Module" })), le = /* @__PURE__ */ C('<div class="px-4 pt-4"><ul class="side-menu"><li><a href="">Dashboard</a></li><li><a href="">Projects</a></li><li><a href="">Issues</a></li><li><button>Projects</button><ul><li><a href="">Elements</a></li><li><a href="">Forms</a></li><li><a href="">Tables</a></li></ul><span class="caret"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5"></path></svg></span></li><li class="expanded"><button>Settings</button><ul><li><a href="">Profile</a></li><li><a href="">Team</a></li><li class="expanded"><button>Billing</button><ul><li><a href="">Invoices</a></li><li class="expanded"><button>Payments</button><ul><li><a href="">History</a></li><li class="active"><a href="">Failed Payments</a></li></ul><span class="caret"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5"></path></svg></span></li></ul><span class="caret"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5"></path></svg></span></li></ul><span class="caret"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5"></path></svg></span></li></ul></div>', 1), ne = [
le
], re = /* @__PURE__ */ h({
default: zt
}, Symbol.toStringTag, { value: "Module" }));
function It(i, e, t) {
if (t.childNavigation) {
const r = [];
return t.item.link.location == "#" ? r.push(
C("button", {
onClick: B(() => {
t.isExpanded.value = !t.isExpanded.value;
}, ["prevent"])
}, t.item.link.title)
) : r.push(
C($, {
component: t.item.link,
onClick: B(() => {
t.isExpanded.value = !0;
}, ["prevent"])
})
), e && r.push(C(e, {
toggle: () => {
t.isExpanded.value = !t.isExpanded.value;
}
})), r.push(_e(i, e, t.childNavigation)), C("li", Ee({
class: { expanded: t.isExpanded.value, active: t.isActive.value }
}), r);
} else
return C(i, { item: t.item, active: t.isActive });
}
function _e(i, e, t, r = {}) {
const l = [];
return t.items.forEach((n) => {
l.push(It(i, e, n));
}), C("ul", r, l);
}
const Vt = H({
props: {
navigation: { type: Object, required: !0 }
},
setup(i, { slots: e }) {
const t = e.item, r = e.caret;
if (!t)
throw new Error("The #item slot is missing in NavigationTree.");
const l = xe(i.navigation);
return () => _e(t, r, l.navigation, { class: ["side-menu"] });
}
}), Qt = { class: "px-4 pt-4" }, Ut = ["onClick"], qt = /* @__PURE__ */ h("svg", {
xmlns: "http://www.w3.org/2000/svg",
fill: "none",
viewBox: "0 0 24 24",
"stroke-width": "1.5",
stroke: "currentColor",
class: "w-4 h-4"
}, [
/* @__PURE__ */ h("path", {
"stroke-linecap": "round",
"stroke-linejoin": "round",
d: "M19.5 8.25l-7.5 7.5-7.5-7.5"
})
], -1), Zt = [
qt
], Kt = /* @__PURE__ */ H({
__name: "Drawer",
props: {
mobileOpen: { type: Boolean, default: !1 }
mobileOpen: { type: Boolean, default: !1 },
navigation: null
},
emits: ["mobileClose"],
setup(t, { emit: o }) {
return (n, r) => (l(), c("div", {
class: b(["fixed bg-white border-r border-gray-200 z-10 min-h-full h-full w-full sm:w-56 pt-16 lg:left-0 transition-all duration-300", [t.mobileOpen ? "left-0" : "-left-full sm:-left-56"]])
}, ne, 2));
setup(i, { emit: e }) {
return (t, r) => (w(), N("div", {
class: F(["fixed bg-white border-r border-gray-200 z-10 min-h-full h-full w-full sm:w-56 pt-16 lg:left-0 transition-all duration-300", [i.mobileOpen ? "left-0" : "-left-full sm:-left-56"]])
}, [
h("div", Qt, [
O(Vt, { navigation: i.navigation }, {
item: _(({ item: l, active: n }) => [
h("li", {
class: F({ active: n.value })
}, [
O(b($), {
component: l.link
}, null, 8, ["component"])
], 2)
]),
caret: _(({ toggle: l }) => [
h("span", {
onClick: B(l, ["prevent"]),
class: "caret"
}, Zt, 8, Ut)
]),
_: 1
}, 8, ["navigation"])
])
], 2));
}
}), ie = { class: "bg-white min-h-full" }, ae = { class: "fixed z-20 w-full" }, ce = { class: "h-full min-w-max-content lg:pl-56 pt-16" }, de = /* @__PURE__ */ h({
}), Gt = { class: "bg-white min-h-full" }, Wt = { class: "fixed z-20 w-full" }, Xt = { class: "h-full min-w-max-content lg:pl-56 pt-16" }, Yt = /* @__PURE__ */ H({
__name: "DrawerLayout",
props: {
header: null
header: null,
navigation: null
},
setup(t) {
const o = $(!1);
return (n, r) => (l(), c("div", ie, [
u(n.$slots, "header", {}, () => [
e("div", ae, [
a(s(m), {
component: t.header,
"mobile-open": o.value,
onToggleDrawer: r[0] || (r[0] = (i) => o.value = !o.value)
setup(i) {
const e = V(!1);
return (t, r) => (w(), N("div", Gt, [
P(t.$slots, "header", {}, () => [
h("div", Wt, [
O(b($), {
component: i.header,
"mobile-open": e.value,
onToggleDrawer: r[0] || (r[0] = (l) => e.value = !e.value)
}, null, 8, ["component", "mobile-open"])
])
]),
u(n.$slots, "sidebar", {}, () => [
a(s(re), { "mobile-open": o.value }, null, 8, ["mobile-open"])
P(t.$slots, "sidebar", {}, () => [
O(b(Kt), {
"mobile-open": e.value,
navigation: i.navigation
}, null, 8, ["mobile-open", "navigation"])
]),
e("div", ce, [
u(n.$slots, "default")
h("div", Xt, [
P(t.$slots, "default")
])
]));
}
}), ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
}), Jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: de
}, Symbol.toStringTag, { value: "Module" })), ge = {};
function pe(t, o) {
return u(t.$slots, "default");
default: Yt
}, Symbol.toStringTag, { value: "Module" })), er = (i, e) => {
const t = i.__vccOpts || i;
for (const [r, l] of e)
t[r] = l;
return t;
}, tr = {};
function rr(i, e) {
return P(i.$slots, "default");
}
const me = /* @__PURE__ */ Z(ge, [["render", pe]]), he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
const nr = /* @__PURE__ */ er(tr, [["render", rr]]), ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
__proto__: null,
default: me
default: nr
}, Symbol.toStringTag, { value: "Module" }));
function we(t = {}) {
return O(/* @__PURE__ */ Object.assign({ "./Pages/HomePage.vue": () => import("./HomePage.6118065b.mjs") }), "insight"), w(/* @__PURE__ */ Object.assign({ "./View/Components/Header.vue": Y, "./View/Components/HeaderNavigation.vue": se }), "insight"), w(/* @__PURE__ */ Object.assign({ "./View/Layouts/DrawerLayout.vue": ue, "./View/Layouts/InsightLayout.vue": he }), "insight"), N;
function ur(i = {}) {
return Pe(/* @__PURE__ */ Object.assign({ "./Pages/HomePage.vue": () => import("./HomePage.b373a727.mjs") }), "insight"), ce(/* @__PURE__ */ Object.assign({ "./View/Components/Header.vue": et, "./View/Components/HeaderNavigation.vue": Ht }), "insight"), ce(/* @__PURE__ */ Object.assign({ "./View/Layouts/DrawerLayout.vue": Jt, "./View/Layouts/InsightLayout.vue": ir }), "insight"), Ae;
}
export {
X as Header,
oe as HeaderNavigation,
N as Insight,
S as InsightApp,
we as bootInsight
Je as Header,
zt as HeaderNavigation,
Ae as Insight,
Ce as InsightApp,
ur as bootInsight,
Lt as isActivated,
xe as useStatefulNavigation
};

2

dist/insight.umd.js

@@ -1,1 +0,1 @@

(function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@insightphp/elements"),require("@insightphp/inertia-view")):typeof define=="function"&&define.amd?define(["exports","vue","@insightphp/elements","@insightphp/inertia-view"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.Insight={},n.Vue,n.Elements,n.InertiaView))})(this,function(n,e,i,a){"use strict";class c{}const d=new c,h={class:"bg-white grid grid-cols-5 h-16 border-b border-gray-200 px-4"},g={class:"lg:col-span-2 flex flex-row items-center"},f=e.createElementVNode("div",{class:"hidden lg:inline-flex items-center"},[e.createElementVNode("svg",{class:"w-8 h-8 mr-2 text-primary-500",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 54.1 54.1","xml:space":"preserve"},[e.createElementVNode("path",{fill:"currentColor",d:"M27,0C12.1,0,0,12.1,0,27c0,14.9,12.1,27,27,27c14.9,0,27-12.1,27-27C54,12.1,41.9,0,27,0z M43.3,19l-8.1,1.8l-8,1.8l8,1.8v7.3v0V39L27,40.8l-8.1,1.8v-7.3l8.1-1.8l8-1.8l-8-1.8l-8.1-1.8l-8.1-1.8v0v-7.3v0l8.1-1.8l8.1-1.8l8.1-1.8l8.1-1.8V19z"})]),e.createElementVNode("span",{class:"text-black font-medium text-lg"},"Insight")],-1),_=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"})],-1)],u={class:"hidden lg:block ml-4"},w={class:"col-span-3 lg:col-span-1 flex flex-row items-center justify-center"},b=e.createElementVNode("span",{class:"inline-flex items-center text-gray-500"},[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 15.75l-2.489-2.489m0 0a3.375 3.375 0 10-4.773-4.773 3.375 3.375 0 004.774 4.774zM21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]),e.createElementVNode("span",{class:"text-sm ml-2"},"Search\u2026")],-1),x={class:"inline-flex items-center space-x-2"},k={key:0,class:"text-xs font-sans text-gray-400 border rounded px-2"},N={key:1,class:"text-xs font-sans text-gray-400 border rounded px-2"},y={class:"lg:col-span-2 flex flex-row items-center justify-end"},V={class:"hidden lg:block mr-2"},E=e.createElementVNode("button",{class:"inline-flex items-center hover:bg-primary-50 text-sm text-gray-900 hover:text-primary-700 font-medium py-1 px-2 rounded-lg transition-colors duration-300"},[e.createElementVNode("img",{class:"w-8 h-8 rounded-full",src:"https://ui-avatars.com/api/?name=Peter+Stovka&color=9333ea&background=f3e8ff"})],-1),C=e.createTextVNode("Repositories"),B=e.createTextVNode("Issues "),S=e.createElementVNode("span",{class:"badge warning ml-2"},"2 New",-1),$=e.createTextVNode("Profile"),M=e.createTextVNode("Settings"),j=e.createTextVNode("Log Out"),m=e.defineComponent({__name:"Header",props:{mobileOpen:{type:Boolean,default:!1},leftNavigation:null,rightNavigation:null,showSearch:{type:Boolean,default:!1}},emits:["toggleDrawer","toggleSearch"],setup(t,{emit:o}){const s=e.computed(()=>navigator.platform.toUpperCase().indexOf("MAC")>=0);return(l,r)=>(e.openBlock(),e.createElementBlock("div",h,[e.createElementVNode("div",g,[f,e.createElementVNode("button",{onClick:r[0]||(r[0]=e.withModifiers(Z=>o("toggleDrawer"),["prevent"])),class:e.normalizeClass(["lg:hidden rounded-lg p-2 transition-colors duration-300",[t.mobileOpen?"text-primary-700 bg-primary-100":"hover:bg-primary-100 hover:text-primary-700"]])},_,2),e.createElementVNode("div",u,[e.renderSlot(l.$slots,"left-navigation",{},()=>[t.leftNavigation?(e.openBlock(),e.createBlock(e.unref(a.Portal),{key:0,component:t.leftNavigation},null,8,["component"])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",w,[e.renderSlot(l.$slots,"center",{},()=>[t.showSearch?(e.openBlock(),e.createElementBlock("button",{key:0,onClick:r[1]||(r[1]=e.withModifiers(Z=>o("toggleSearch"),["prevent"])),class:"w-full max-w-xs flex justify-between items-center border border-gray-300 rounded-lg px-2 py-2"},[b,e.createElementVNode("div",x,[e.unref(s)?(e.openBlock(),e.createElementBlock("kbd",k,"\u2318K")):(e.openBlock(),e.createElementBlock("kbd",N,"CTRL+K"))])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",y,[e.createElementVNode("div",V,[e.renderSlot(l.$slots,"right-navigation",{},()=>[t.rightNavigation?(e.openBlock(),e.createBlock(e.unref(a.Portal),{key:0,component:t.rightNavigation},null,8,["component"])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",null,[e.createVNode(e.unref(i.Menu),{class:"w-48",placement:"bottom-right"},{toggle:e.withCtx(()=>[E]),default:e.withCtx(()=>[e.createVNode(e.unref(i.MenuItem),{class:"menu-item"},{default:e.withCtx(()=>[C]),_:1}),e.createVNode(e.unref(i.MenuItem),{class:"menu-item"},{default:e.withCtx(()=>[B,S]),_:1}),e.createVNode(e.unref(i.MenuItem),{class:"menu-item"},{default:e.withCtx(()=>[$]),_:1}),e.createVNode(e.unref(i.MenuItem),{class:"menu-item"},{default:e.withCtx(()=>[M]),_:1}),e.createVNode(e.unref(i.MenuItem),{as:"a",href:"#",class:"menu-item danger"},{default:e.withCtx(()=>[j]),_:1})]),_:1})])])]))}}),P=Object.freeze(Object.defineProperty({__proto__:null,default:m},Symbol.toStringTag,{value:"Module"})),O=(t,o)=>{const s=t.__vccOpts||t;for(const[l,r]of o)s[l]=r;return s},I={class:"flex flex-row"},T={class:"text-sm mr-2"},p=e.defineComponent({__name:"HeaderNavigation",props:{navigation:null},setup(t){return console.log(t.navigation),(s,l)=>(e.openBlock(),e.createElementBlock("ul",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.navigation.items,r=>(e.openBlock(),e.createElementBlock("li",T,[e.createVNode(e.unref(a.Portal),{component:r.link},null,8,["component"])]))),256))]))}}),z=Object.freeze(Object.defineProperty({__proto__:null,default:p},Symbol.toStringTag,{value:"Module"})),H=[e.createStaticVNode('<div class="px-4 pt-4"><ul class="side-menu"><li><a href="">Dashboard</a></li><li><a href="">Projects</a></li><li><a href="">Issues</a></li><li><button>Projects</button><ul><li><a href="">Elements</a></li><li><a href="">Forms</a></li><li><a href="">Tables</a></li></ul><span class="caret"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5"></path></svg></span></li><li class="expanded"><button>Settings</button><ul><li><a href="">Profile</a></li><li><a href="">Team</a></li><li class="expanded"><button>Billing</button><ul><li><a href="">Invoices</a></li><li class="expanded"><button>Payments</button><ul><li><a href="">History</a></li><li class="active"><a href="">Failed Payments</a></li></ul><span class="caret"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5"></path></svg></span></li></ul><span class="caret"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5"></path></svg></span></li></ul><span class="caret"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-4 h-4"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 8.25l-7.5 7.5-7.5-7.5"></path></svg></span></li></ul></div>',1)],L=e.defineComponent({__name:"Drawer",props:{mobileOpen:{type:Boolean,default:!1}},emits:["mobileClose"],setup(t,{emit:o}){return(s,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["fixed bg-white border-r border-gray-200 z-10 min-h-full h-full w-full sm:w-56 pt-16 lg:left-0 transition-all duration-300",[t.mobileOpen?"left-0":"-left-full sm:-left-56"]])},H,2))}}),D={class:"bg-white min-h-full"},A={class:"fixed z-20 w-full"},q={class:"h-full min-w-max-content lg:pl-56 pt-16"},F=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"DrawerLayout",props:{header:null},setup(t){const o=e.ref(!1);return(s,l)=>(e.openBlock(),e.createElementBlock("div",D,[e.renderSlot(s.$slots,"header",{},()=>[e.createElementVNode("div",A,[e.createVNode(e.unref(a.Portal),{component:t.header,"mobile-open":o.value,onToggleDrawer:l[0]||(l[0]=r=>o.value=!o.value)},null,8,["component","mobile-open"])])]),e.renderSlot(s.$slots,"sidebar",{},()=>[e.createVNode(e.unref(L),{"mobile-open":o.value},null,8,["mobile-open"])]),e.createElementVNode("div",q,[e.renderSlot(s.$slots,"default")])]))}})},Symbol.toStringTag,{value:"Module"})),K={};function R(t,o){return e.renderSlot(t.$slots,"default")}const U=Object.freeze(Object.defineProperty({__proto__:null,default:O(K,[["render",R]])},Symbol.toStringTag,{value:"Module"}));function W(t={}){return a.registerPages(Object.assign({"./Pages/HomePage.vue":()=>Promise.resolve().then(()=>Y)}),"insight"),a.registerComponents(Object.assign({"./View/Components/Header.vue":P,"./View/Components/HeaderNavigation.vue":z}),"insight"),a.registerComponents(Object.assign({"./View/Layouts/DrawerLayout.vue":F,"./View/Layouts/InsightLayout.vue":U}),"insight"),d}const G={class:"p-8"},J=e.createElementVNode("h4",{class:"text-2xl font-medium"},"Welcome Back, Peter",-1),Q={class:"bg-white mt-6 border border-gray-200 shadow-sm drop-shadow-sm p-4 rounded-lg"},X={class:"mt-4"},Y=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"HomePage",props:{location:null},setup(t){const o=e.ref(1);return(s,l)=>(e.openBlock(),e.createElementBlock("div",G,[J,e.createElementVNode("div",Q,[e.createElementVNode("p",null,e.toDisplayString(t.location),1)]),e.createElementVNode("div",X,[e.createElementVNode("p",null,"Counter: "+e.toDisplayString(o.value),1),e.createElementVNode("button",{class:"btn small mt-2",onClick:l[0]||(l[0]=e.withModifiers(r=>o.value++,["prevent"]))},"Add")])]))}})},Symbol.toStringTag,{value:"Module"}));n.Header=m,n.HeaderNavigation=p,n.Insight=d,n.InsightApp=c,n.bootInsight=W,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
(function(y,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@insightphp/elements"),require("@insightphp/inertia-view"),require("@inertiajs/inertia"),require("@inertiajs/inertia-vue3")):typeof define=="function"&&define.amd?define(["exports","vue","@insightphp/elements","@insightphp/inertia-view","@inertiajs/inertia","@inertiajs/inertia-vue3"],t):(y=typeof globalThis<"u"?globalThis:y||self,t(y.Insight={},y.Vue,y.Elements,y.InertiaView,y.Inertia,y.InertiaVue))})(this,function(y,t,N,_,ue,de){"use strict";class q{}const U=new q,pe={class:"bg-white grid grid-cols-5 h-16 border-b border-gray-200 px-4"},he={class:"lg:col-span-2 flex flex-row items-center"},me=t.createElementVNode("div",{class:"hidden lg:inline-flex items-center"},[t.createElementVNode("svg",{class:"w-8 h-8 mr-2 text-primary-500",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 54.1 54.1","xml:space":"preserve"},[t.createElementVNode("path",{fill:"currentColor",d:"M27,0C12.1,0,0,12.1,0,27c0,14.9,12.1,27,27,27c14.9,0,27-12.1,27-27C54,12.1,41.9,0,27,0z M43.3,19l-8.1,1.8l-8,1.8l8,1.8v7.3v0V39L27,40.8l-8.1,1.8v-7.3l8.1-1.8l8-1.8l-8-1.8l-8.1-1.8l-8.1-1.8v0v-7.3v0l8.1-1.8l8.1-1.8l8.1-1.8l8.1-1.8V19z"})]),t.createElementVNode("span",{class:"text-black font-medium text-lg"},"Insight")],-1),ge=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25H12"})],-1)],ye={class:"hidden lg:block ml-4"},ve={class:"col-span-3 lg:col-span-1 flex flex-row items-center justify-center"},be=t.createElementVNode("span",{class:"inline-flex items-center text-gray-500"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 15.75l-2.489-2.489m0 0a3.375 3.375 0 10-4.773-4.773 3.375 3.375 0 004.774 4.774zM21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]),t.createElementVNode("span",{class:"text-sm ml-2"},"Search\u2026")],-1),we={class:"inline-flex items-center space-x-2"},_e={key:0,class:"text-xs font-sans text-gray-400 border rounded px-2"},xe={key:1,class:"text-xs font-sans text-gray-400 border rounded px-2"},Ne={class:"lg:col-span-2 flex flex-row items-center justify-end"},Oe={class:"hidden lg:block mr-2"},Ee=t.createElementVNode("button",{class:"inline-flex items-center hover:bg-primary-50 text-sm text-gray-900 hover:text-primary-700 font-medium py-1 px-2 rounded-lg transition-colors duration-300"},[t.createElementVNode("img",{class:"w-8 h-8 rounded-full",src:"https://ui-avatars.com/api/?name=Peter+Stovka&color=9333ea&background=f3e8ff"})],-1),je=t.createTextVNode("Repositories"),ke=t.createTextVNode("Issues "),Se=t.createElementVNode("span",{class:"badge warning ml-2"},"2 New",-1),Ce=t.createTextVNode("Profile"),Ve=t.createTextVNode("Settings"),Pe=t.createTextVNode("Log Out"),Z=t.defineComponent({__name:"Header",props:{mobileOpen:{type:Boolean,default:!1},leftNavigation:null,rightNavigation:null,showSearch:{type:Boolean,default:!1}},emits:["toggleDrawer","toggleSearch"],setup(o,{emit:e}){const r=t.computed(()=>navigator.platform.toUpperCase().indexOf("MAC")>=0);return(n,s)=>(t.openBlock(),t.createElementBlock("div",pe,[t.createElementVNode("div",he,[me,t.createElementVNode("button",{onClick:s[0]||(s[0]=t.withModifiers(i=>e("toggleDrawer"),["prevent"])),class:t.normalizeClass(["lg:hidden rounded-lg p-2 transition-colors duration-300",[o.mobileOpen?"text-primary-700 bg-primary-100":"hover:bg-primary-100 hover:text-primary-700"]])},ge,2),t.createElementVNode("div",ye,[t.renderSlot(n.$slots,"left-navigation",{},()=>[o.leftNavigation?(t.openBlock(),t.createBlock(t.unref(_.Portal),{key:0,component:o.leftNavigation},null,8,["component"])):t.createCommentVNode("",!0)])])]),t.createElementVNode("div",ve,[t.renderSlot(n.$slots,"center",{},()=>[o.showSearch?(t.openBlock(),t.createElementBlock("button",{key:0,onClick:s[1]||(s[1]=t.withModifiers(i=>e("toggleSearch"),["prevent"])),class:"w-full max-w-xs flex justify-between items-center border border-gray-300 rounded-lg px-2 py-2"},[be,t.createElementVNode("div",we,[t.unref(r)?(t.openBlock(),t.createElementBlock("kbd",_e,"\u2318K")):(t.openBlock(),t.createElementBlock("kbd",xe,"CTRL+K"))])])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",Ne,[t.createElementVNode("div",Oe,[t.renderSlot(n.$slots,"right-navigation",{},()=>[o.rightNavigation?(t.openBlock(),t.createBlock(t.unref(_.Portal),{key:0,component:o.rightNavigation},null,8,["component"])):t.createCommentVNode("",!0)])]),t.createElementVNode("div",null,[t.createVNode(t.unref(N.Menu),{class:"w-48",placement:"bottom-right"},{toggle:t.withCtx(()=>[Ee]),default:t.withCtx(()=>[t.createVNode(t.unref(N.MenuItem),{class:"menu-item"},{default:t.withCtx(()=>[je]),_:1}),t.createVNode(t.unref(N.MenuItem),{class:"menu-item"},{default:t.withCtx(()=>[ke,Se]),_:1}),t.createVNode(t.unref(N.MenuItem),{class:"menu-item"},{default:t.withCtx(()=>[Ce]),_:1}),t.createVNode(t.unref(N.MenuItem),{class:"menu-item"},{default:t.withCtx(()=>[Ve]),_:1}),t.createVNode(t.unref(N.MenuItem),{as:"a",href:"#",class:"menu-item danger"},{default:t.withCtx(()=>[Pe]),_:1})]),_:1})])])]))}}),$e=Object.freeze(Object.defineProperty({__proto__:null,default:Z},Symbol.toStringTag,{value:"Module"}));var Be=String.prototype.replace,Ae=/%20/g,$={RFC1738:"RFC1738",RFC3986:"RFC3986"},B={default:$.RFC3986,formatters:{RFC1738:function(o){return Be.call(o,Ae,"+")},RFC3986:function(o){return String(o)}},RFC1738:$.RFC1738,RFC3986:$.RFC3986},Me=B,A=Object.prototype.hasOwnProperty,O=Array.isArray,x=function(){for(var o=[],e=0;e<256;++e)o.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return o}(),Te=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(O(n)){for(var s=[],i=0;i<n.length;++i)typeof n[i]<"u"&&s.push(n[i]);r.obj[r.prop]=s}}},K=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},s=0;s<e.length;++s)typeof e[s]<"u"&&(n[s]=e[s]);return n},Fe=function o(e,r,n){if(!r)return e;if(typeof r!="object"){if(O(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!A.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var s=e;return O(e)&&!O(r)&&(s=K(e,n)),O(e)&&O(r)?(r.forEach(function(i,a){if(A.call(e,a)){var c=e[a];c&&typeof c=="object"&&i&&typeof i=="object"?e[a]=o(c,i,n):e.push(i)}else e[a]=i}),e):Object.keys(r).reduce(function(i,a){var c=r[a];return A.call(i,a)?i[a]=o(i[a],c,n):i[a]=c,i},s)},De=function(e,r){return Object.keys(r).reduce(function(n,s){return n[s]=r[s],n},e)},Ie=function(o,e,r){var n=o.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Le=function(e,r,n,s,i){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(u){return"%26%23"+parseInt(u.slice(2),16)+"%3B"});for(var c="",f=0;f<a.length;++f){var l=a.charCodeAt(f);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===Me.RFC1738&&(l===40||l===41)){c+=a.charAt(f);continue}if(l<128){c=c+x[l];continue}if(l<2048){c=c+(x[192|l>>6]+x[128|l&63]);continue}if(l<55296||l>=57344){c=c+(x[224|l>>12]+x[128|l>>6&63]+x[128|l&63]);continue}f+=1,l=65536+((l&1023)<<10|a.charCodeAt(f)&1023),c+=x[240|l>>18]+x[128|l>>12&63]+x[128|l>>6&63]+x[128|l&63]}return c},ze=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],s=0;s<r.length;++s)for(var i=r[s],a=i.obj[i.prop],c=Object.keys(a),f=0;f<c.length;++f){var l=c[f],u=a[l];typeof u=="object"&&u!==null&&n.indexOf(u)===-1&&(r.push({obj:a,prop:l}),n.push(u))}return Te(r),e},Re=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},He=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Qe=function(e,r){return[].concat(e,r)},qe=function(e,r){if(O(e)){for(var n=[],s=0;s<e.length;s+=1)n.push(r(e[s]));return n}return r(e)},W={arrayToObject:K,assign:De,combine:Qe,compact:ze,decode:Ie,encode:Le,isBuffer:He,isRegExp:Re,maybeMap:qe,merge:Fe},M=W,S=B,Ue=Object.prototype.hasOwnProperty,G={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},E=Array.isArray,Ze=String.prototype.split,Ke=Array.prototype.push,X=function(o,e){Ke.apply(o,E(e)?e:[e])},We=Date.prototype.toISOString,Y=S.default,v={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:M.encode,encodeValuesOnly:!1,format:Y,formatter:S.formatters[Y],indices:!1,serializeDate:function(e){return We.call(e)},skipNulls:!1,strictNullHandling:!1},Ge=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},Xe=function o(e,r,n,s,i,a,c,f,l,u,d,g,m,p){var h=e;if(typeof c=="function"?h=c(r,h):h instanceof Date?h=u(h):n==="comma"&&E(h)&&(h=M.maybeMap(h,function(Q){return Q instanceof Date?u(Q):Q})),h===null){if(s)return a&&!m?a(r,v.encoder,p,"key",d):r;h=""}if(Ge(h)||M.isBuffer(h)){if(a){var ae=m?r:a(r,v.encoder,p,"key",d);if(n==="comma"&&m){for(var le=Ze.call(String(h),","),se="",P=0;P<le.length;++P)se+=(P===0?"":",")+g(a(le[P],v.encoder,p,"value",d));return[g(ae)+"="+se]}return[g(ae)+"="+g(a(h,v.encoder,p,"value",d))]}return[g(r)+"="+g(String(h))]}var R=[];if(typeof h>"u")return R;var V;if(n==="comma"&&E(h))V=[{value:h.length>0?h.join(",")||null:void 0}];else if(E(c))V=c;else{var ce=Object.keys(h);V=f?ce.sort(f):ce}for(var H=0;H<V.length;++H){var j=V[H],fe=typeof j=="object"&&typeof j.value<"u"?j.value:h[j];if(!(i&&fe===null)){var It=E(h)?typeof n=="function"?n(r,j):r:r+(l?"."+j:"["+j+"]");X(R,o(fe,It,n,s,i,a,c,f,l,u,d,g,m,p))}}return R},Ye=function(e){if(!e)return v;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||v.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=S.default;if(typeof e.format<"u"){if(!Ue.call(S.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var s=S.formatters[n],i=v.filter;return(typeof e.filter=="function"||E(e.filter))&&(i=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:v.addQueryPrefix,allowDots:typeof e.allowDots>"u"?v.allowDots:!!e.allowDots,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:v.charsetSentinel,delimiter:typeof e.delimiter>"u"?v.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:v.encode,encoder:typeof e.encoder=="function"?e.encoder:v.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:v.encodeValuesOnly,filter:i,format:n,formatter:s,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:v.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:v.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:v.strictNullHandling}},Je=function(o,e){var r=o,n=Ye(e),s,i;typeof n.filter=="function"?(i=n.filter,r=i("",r)):E(n.filter)&&(i=n.filter,s=i);var a=[];if(typeof r!="object"||r===null)return"";var c;e&&e.arrayFormat in G?c=e.arrayFormat:e&&"indices"in e?c=e.indices?"indices":"repeat":c="indices";var f=G[c];s||(s=Object.keys(r)),n.sort&&s.sort(n.sort);for(var l=0;l<s.length;++l){var u=s[l];n.skipNulls&&r[u]===null||X(a,Xe(r[u],u,f,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset))}var d=a.join(n.delimiter),g=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),d.length>0?g+d:""},k=W,T=Object.prototype.hasOwnProperty,et=Array.isArray,b={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:k.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},tt=function(o){return o.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},J=function(o,e){return o&&typeof o=="string"&&e.comma&&o.indexOf(",")>-1?o.split(","):o},rt="utf8=%26%2310003%3B",nt="utf8=%E2%9C%93",it=function(e,r){var n={},s=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,a=s.split(r.delimiter,i),c=-1,f,l=r.charset;if(r.charsetSentinel)for(f=0;f<a.length;++f)a[f].indexOf("utf8=")===0&&(a[f]===nt?l="utf-8":a[f]===rt&&(l="iso-8859-1"),c=f,f=a.length);for(f=0;f<a.length;++f)if(f!==c){var u=a[f],d=u.indexOf("]="),g=d===-1?u.indexOf("="):d+1,m,p;g===-1?(m=r.decoder(u,b.decoder,l,"key"),p=r.strictNullHandling?null:""):(m=r.decoder(u.slice(0,g),b.decoder,l,"key"),p=k.maybeMap(J(u.slice(g+1),r),function(h){return r.decoder(h,b.decoder,l,"value")})),p&&r.interpretNumericEntities&&l==="iso-8859-1"&&(p=tt(p)),u.indexOf("[]=")>-1&&(p=et(p)?[p]:p),T.call(n,m)?n[m]=k.combine(n[m],p):n[m]=p}return n},ot=function(o,e,r,n){for(var s=n?e:J(e,r),i=o.length-1;i>=0;--i){var a,c=o[i];if(c==="[]"&&r.parseArrays)a=[].concat(s);else{a=r.plainObjects?Object.create(null):{};var f=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,l=parseInt(f,10);!r.parseArrays&&f===""?a={0:s}:!isNaN(l)&&c!==f&&String(l)===f&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(a=[],a[l]=s):f!=="__proto__"&&(a[f]=s)}s=a}return s},at=function(e,r,n,s){if(!!e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,f=n.depth>0&&a.exec(i),l=f?i.slice(0,f.index):i,u=[];if(l){if(!n.plainObjects&&T.call(Object.prototype,l)&&!n.allowPrototypes)return;u.push(l)}for(var d=0;n.depth>0&&(f=c.exec(i))!==null&&d<n.depth;){if(d+=1,!n.plainObjects&&T.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(f[1])}return f&&u.push("["+i.slice(f.index)+"]"),ot(u,r,n,s)}},lt=function(e){if(!e)return b;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof e.charset>"u"?b.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?b.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:b.allowPrototypes,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:b.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:b.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:b.comma,decoder:typeof e.decoder=="function"?e.decoder:b.decoder,delimiter:typeof e.delimiter=="string"||k.isRegExp(e.delimiter)?e.delimiter:b.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:b.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:b.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:b.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:b.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:b.strictNullHandling}},st=function(o,e){var r=lt(e);if(o===""||o===null||typeof o>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof o=="string"?it(o,r):o,s=r.plainObjects?Object.create(null):{},i=Object.keys(n),a=0;a<i.length;++a){var c=i[a],f=at(c,n[c],r,typeof o=="string");s=k.merge(s,f,r)}return k.compact(s)},ct=Je,ft=st,ut=B,ee={formats:ut,parse:ft,stringify:ct};function te(o,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,n.key,n)}}function re(o,e,r){return e&&te(o.prototype,e),r&&te(o,r),Object.defineProperty(o,"prototype",{writable:!1}),o}function w(){return w=Object.assign?Object.assign.bind():function(o){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[n]=r[n])}return o},w.apply(this,arguments)}function F(o){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(o)}function C(o,e){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},C(o,e)}function dt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function D(o,e,r){return D=dt()?Reflect.construct.bind():function(n,s,i){var a=[null];a.push.apply(a,s);var c=new(Function.bind.apply(n,a));return i&&C(c,i.prototype),c},D.apply(null,arguments)}function I(o){var e=typeof Map=="function"?new Map:void 0;return I=function(r){if(r===null||Function.toString.call(r).indexOf("[native code]")===-1)return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,n)}function n(){return D(r,arguments,F(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),C(n,r)},I(o)}var L=function(){function o(r,n,s){var i,a;this.name=r,this.definition=n,this.bindings=(i=n.bindings)!=null?i:{},this.wheres=(a=n.wheres)!=null?a:{},this.config=s}var e=o.prototype;return e.matchesUrl=function(r){var n=this;if(!this.definition.methods.includes("GET"))return!1;var s=this.template.replace(/(\/?){([^}?]*)(\??)}/g,function(l,u,d,g){var m,p="(?<"+d+">"+(((m=n.wheres[d])==null?void 0:m.replace(/(^\^)|(\$$)/g,""))||"[^/?]+")+")";return g?"("+u+p+")?":""+u+p}).replace(/^\w+:\/\//,""),i=r.replace(/^\w+:\/\//,"").split("?"),a=i[0],c=i[1],f=new RegExp("^"+s+"/?$").exec(a);return!!f&&{params:f.groups,query:ee.parse(c)}},e.compile=function(r){var n=this,s=this.parameterSegments;return s.length?this.template.replace(/{([^}?]+)(\??)}/g,function(i,a,c){var f,l,u;if(!c&&[null,void 0].includes(r[a]))throw new Error("Ziggy error: '"+a+"' parameter is required for route '"+n.name+"'.");if(s[s.length-1].name===a&&n.wheres[a]===".*")return encodeURIComponent((u=r[a])!=null?u:"").replace(/%2F/g,"/");if(n.wheres[a]&&!new RegExp("^"+(c?"("+n.wheres[a]+")?":n.wheres[a])+"$").test((f=r[a])!=null?f:""))throw new Error("Ziggy error: '"+a+"' parameter does not match required format '"+n.wheres[a]+"' for route '"+n.name+"'.");return encodeURIComponent((l=r[a])!=null?l:"")}).replace(/\/+$/,""):this.template},re(o,[{key:"template",get:function(){return((this.config.absolute?this.definition.domain?""+this.config.url.match(/^\w+:\/\//)[0]+this.definition.domain+(this.config.port?":"+this.config.port:""):this.config.url:"")+"/"+this.definition.uri).replace(/\/+$/,"")}},{key:"parameterSegments",get:function(){var r,n;return(r=(n=this.template.match(/{[^}?]+\??}/g))==null?void 0:n.map(function(s){return{name:s.replace(/{|\??}/g,""),required:!/\?}$/.test(s)}}))!=null?r:[]}}]),o}(),pt=function(o){var e,r;function n(i,a,c,f){var l;if(c===void 0&&(c=!0),(l=o.call(this)||this).t=f!=null?f:typeof Ziggy<"u"?Ziggy:globalThis==null?void 0:globalThis.Ziggy,l.t=w({},l.t,{absolute:c}),i){if(!l.t.routes[i])throw new Error("Ziggy error: route '"+i+"' is not in the route list.");l.i=new L(i,l.t.routes[i],l.t),l.u=l.o(a)}return l}r=o,(e=n).prototype=Object.create(r.prototype),e.prototype.constructor=e,C(e,r);var s=n.prototype;return s.toString=function(){var i=this,a=Object.keys(this.u).filter(function(c){return!i.i.parameterSegments.some(function(f){return f.name===c})}).filter(function(c){return c!=="_query"}).reduce(function(c,f){var l;return w({},c,((l={})[f]=i.u[f],l))},{});return this.i.compile(this.u)+ee.stringify(w({},a,this.u._query),{addQueryPrefix:!0,arrayFormat:"indices",encodeValuesOnly:!0,skipNulls:!0,encoder:function(c,f){return typeof c=="boolean"?Number(c):f(c)}})},s.l=function(i){var a=this;i?this.t.absolute&&i.startsWith("/")&&(i=this.h().host+i):i=this.v();var c={},f=Object.entries(this.t.routes).find(function(l){return c=new L(l[0],l[1],a.t).matchesUrl(i)})||[void 0,void 0];return w({name:f[0]},c,{route:f[1]})},s.v=function(){var i=this.h(),a=i.pathname,c=i.search;return(this.t.absolute?i.host+a:a.replace(this.t.url.replace(/^\w*:\/\/[^/]+/,""),"").replace(/^\/+/,"/"))+c},s.current=function(i,a){var c=this.l(),f=c.name,l=c.params,u=c.query,d=c.route;if(!i)return f;var g=new RegExp("^"+i.replace(/\./g,"\\.").replace(/\*/g,".*")+"$").test(f);if([null,void 0].includes(a)||!g)return g;var m=new L(f,d,this.t);a=this.o(a,m);var p=w({},l,u);return!(!Object.values(a).every(function(h){return!h})||Object.values(p).some(function(h){return h!==void 0}))||Object.entries(a).every(function(h){return p[h[0]]==h[1]})},s.h=function(){var i,a,c,f,l,u,d=typeof window<"u"?window.location:{},g=d.host,m=d.pathname,p=d.search;return{host:(i=(a=this.t.location)==null?void 0:a.host)!=null?i:g===void 0?"":g,pathname:(c=(f=this.t.location)==null?void 0:f.pathname)!=null?c:m===void 0?"":m,search:(l=(u=this.t.location)==null?void 0:u.search)!=null?l:p===void 0?"":p}},s.has=function(i){return Object.keys(this.t.routes).includes(i)},s.o=function(i,a){var c=this;i===void 0&&(i={}),a===void 0&&(a=this.i),i!=null||(i={}),i=["string","number"].includes(typeof i)?[i]:i;var f=a.parameterSegments.filter(function(u){return!c.t.defaults[u.name]});if(Array.isArray(i))i=i.reduce(function(u,d,g){var m,p;return w({},u,f[g]?((m={})[f[g].name]=d,m):typeof d=="object"?d:((p={})[d]="",p))},{});else if(f.length===1&&!i[f[0].name]&&(i.hasOwnProperty(Object.values(a.bindings)[0])||i.hasOwnProperty("id"))){var l;(l={})[f[0].name]=i,i=l}return w({},this.g(a),this.p(i,a))},s.g=function(i){var a=this;return i.parameterSegments.filter(function(c){return a.t.defaults[c.name]}).reduce(function(c,f,l){var u,d=f.name;return w({},c,((u={})[d]=a.t.defaults[d],u))},{})},s.p=function(i,a){var c=a.bindings,f=a.parameterSegments;return Object.entries(i).reduce(function(l,u){var d,g,m=u[0],p=u[1];if(!p||typeof p!="object"||Array.isArray(p)||!f.some(function(h){return h.name===m}))return w({},l,((g={})[m]=p,g));if(!p.hasOwnProperty(c[m])){if(!p.hasOwnProperty("id"))throw new Error("Ziggy error: object passed as '"+m+"' parameter is missing route model binding key '"+c[m]+"'.");c[m]="id"}return w({},l,((d={})[m]=p[c[m]],d))},{})},s.valueOf=function(){return this.toString()},s.check=function(i){return this.has(i)},re(n,[{key:"params",get:function(){var i=this.l();return w({},i.params,i.query)}}]),n}(I(String));function ht(o,e,r,n){var s=new pt(o,e,r,n);return o?s.toString():s}function ne(o){return!!o.activatedOnRoutes.some(e=>ht().current(e.route,e.params))}function z(o){const e=l=>{const u=l.link.isActive;return u?ne(u):!1},r=l=>({item:l,isActive:t.ref(e(l)),childNavigation:l.childNavigation?n(l.childNavigation):null,isExpanded:t.ref(!1)}),n=l=>({items:l.items.map(u=>r(u)),childActive:t.ref(!1)}),s=n(o),i=l=>l.items.some(u=>u.isActive.value?!0:u.childNavigation?i(u.childNavigation):!1),a=l=>{l.items.forEach(u=>{u.isActive.value=e(u.item),u.childNavigation&&a(u.childNavigation)}),l.childActive.value=l.items.some(u=>u.isActive.value)},c=(l,u=!1)=>{l.items.forEach(d=>{if(d.childNavigation){if(u&&d.isExpanded.value){c(d.childNavigation,u);return}d.isExpanded.value=d.isActive.value||i(d.childNavigation),c(d.childNavigation)}else{if(u&&d.isExpanded.value)return;d.isExpanded.value=d.isActive.value}})};let f;return t.onMounted(()=>{f=ue.Inertia.on("finish",()=>{a(s),c(s,!0)}),a(s),c(s)}),t.onBeforeUnmount(()=>{f()}),{navigation:s}}const mt={class:"flex flex-row"},gt=t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",class:"w-5 h-5 ml-0.5"},[t.createElementVNode("path",{"fill-rule":"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z","clip-rule":"evenodd"})],-1),ie=t.defineComponent({__name:"HeaderNavigation",props:{navigation:null},setup(o){const e=o,{navigation:r}=z(e.navigation);return(n,s)=>(t.openBlock(),t.createElementBlock("ul",mt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(t.unref(r).items,i=>(t.openBlock(),t.createElementBlock("li",null,[i.childNavigation?(t.openBlock(),t.createBlock(t.unref(N.Menu),{key:0,class:"w-48"},{toggle:t.withCtx(()=>[t.createElementVNode("button",{class:t.normalizeClass(["inline-flex items-center text-sm font-medium text-gray-700 px-3 py-2 rounded-lg transition-colors duration-150",[i.isActive.value||i.childNavigation.childActive.value?"bg-primary-50 text-primary-700":"hover:text-gray-600"]])},[t.createTextVNode(t.toDisplayString(i.item.link.title)+" ",1),gt],2)]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.childNavigation.items,a=>(t.openBlock(),t.createBlock(t.unref(N.MenuItem),{as:"template"},{default:t.withCtx(()=>[t.createVNode(t.unref(_.Portal),{class:t.normalizeClass(["menu-item",{"bg-primary-50 text-primary-700":a.isActive.value}]),component:a.item.link},null,8,["component","class"])]),_:2},1024))),256))]),_:2},1024)):(t.openBlock(),t.createBlock(t.unref(_.Portal),{key:1,class:t.normalizeClass(["text-sm font-medium text-gray-700 px-3 py-2 rounded-lg transition-colors duration-150 flex",{"bg-primary-50 text-primary-700":i.isActive.value}]),component:i.item.link},null,8,["class","component"]))]))),256))]))}}),yt=Object.freeze(Object.defineProperty({__proto__:null,default:ie},Symbol.toStringTag,{value:"Module"}));function vt(o,e,r){if(r.childNavigation){const n=[];return r.item.link.location=="#"?n.push(t.h("button",{onClick:t.withModifiers(()=>{r.isExpanded.value=!r.isExpanded.value},["prevent"])},r.item.link.title)):n.push(t.h(_.Portal,{component:r.item.link,onClick:t.withModifiers(()=>{r.isExpanded.value=!0},["prevent"])})),e&&n.push(t.h(e,{toggle:()=>{r.isExpanded.value=!r.isExpanded.value}})),n.push(oe(o,e,r.childNavigation)),t.h("li",t.mergeProps({class:{expanded:r.isExpanded.value,active:r.isActive.value}}),n)}else return t.h(o,{item:r.item,active:r.isActive})}function oe(o,e,r,n={}){const s=[];return r.items.forEach(i=>{s.push(vt(o,e,i))}),t.h("ul",n,s)}const bt=t.defineComponent({props:{navigation:{type:Object,required:!0}},setup(o,{slots:e}){const r=e.item,n=e.caret;if(!r)throw new Error("The #item slot is missing in NavigationTree.");const s=z(o.navigation);return()=>oe(r,n,s.navigation,{class:["side-menu"]})}}),wt={class:"px-4 pt-4"},_t=["onClick"],xt=[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-4 h-4"},[t.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})],-1)],Nt=t.defineComponent({__name:"Drawer",props:{mobileOpen:{type:Boolean,default:!1},navigation:null},emits:["mobileClose"],setup(o,{emit:e}){return(r,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fixed bg-white border-r border-gray-200 z-10 min-h-full h-full w-full sm:w-56 pt-16 lg:left-0 transition-all duration-300",[o.mobileOpen?"left-0":"-left-full sm:-left-56"]])},[t.createElementVNode("div",wt,[t.createVNode(bt,{navigation:o.navigation},{item:t.withCtx(({item:s,active:i})=>[t.createElementVNode("li",{class:t.normalizeClass({active:i.value})},[t.createVNode(t.unref(_.Portal),{component:s.link},null,8,["component"])],2)]),caret:t.withCtx(({toggle:s})=>[t.createElementVNode("span",{onClick:t.withModifiers(s,["prevent"]),class:"caret"},xt,8,_t)]),_:1},8,["navigation"])])],2))}}),Ot={class:"bg-white min-h-full"},Et={class:"fixed z-20 w-full"},jt={class:"h-full min-w-max-content lg:pl-56 pt-16"},kt=Object.freeze(Object.defineProperty({__proto__:null,default:t.defineComponent({__name:"DrawerLayout",props:{header:null,navigation:null},setup(o){const e=t.ref(!1);return(r,n)=>(t.openBlock(),t.createElementBlock("div",Ot,[t.renderSlot(r.$slots,"header",{},()=>[t.createElementVNode("div",Et,[t.createVNode(t.unref(_.Portal),{component:o.header,"mobile-open":e.value,onToggleDrawer:n[0]||(n[0]=s=>e.value=!e.value)},null,8,["component","mobile-open"])])]),t.renderSlot(r.$slots,"sidebar",{},()=>[t.createVNode(t.unref(Nt),{"mobile-open":e.value,navigation:o.navigation},null,8,["mobile-open","navigation"])]),t.createElementVNode("div",jt,[t.renderSlot(r.$slots,"default")])]))}})},Symbol.toStringTag,{value:"Module"})),St=(o,e)=>{const r=o.__vccOpts||o;for(const[n,s]of e)r[n]=s;return r},Ct={};function Vt(o,e){return t.renderSlot(o.$slots,"default")}const Pt=Object.freeze(Object.defineProperty({__proto__:null,default:St(Ct,[["render",Vt]])},Symbol.toStringTag,{value:"Module"}));function $t(o={}){return _.registerPages(Object.assign({"./Pages/HomePage.vue":()=>Promise.resolve().then(()=>Dt)}),"insight"),_.registerComponents(Object.assign({"./View/Components/Header.vue":$e,"./View/Components/HeaderNavigation.vue":yt}),"insight"),_.registerComponents(Object.assign({"./View/Layouts/DrawerLayout.vue":kt,"./View/Layouts/InsightLayout.vue":Pt}),"insight"),U}const Bt={class:"p-8"},At=t.createElementVNode("h4",{class:"text-2xl font-medium"},"Welcome Back, Peter",-1),Mt={class:"bg-white mt-6 border border-gray-200 shadow-sm drop-shadow-sm p-4 rounded-lg"},Tt=t.createTextVNode("Dashboard / Overview"),Ft={class:"mt-4"},Dt=Object.freeze(Object.defineProperty({__proto__:null,default:t.defineComponent({__name:"HomePage",props:{location:null},setup(o){const e=t.ref(1);return(r,n)=>(t.openBlock(),t.createElementBlock("div",Bt,[At,t.createElementVNode("div",Mt,[t.createElementVNode("p",null,t.toDisplayString(o.location),1),t.createVNode(t.unref(de.Link),{href:"/insight/dashboard/overview"},{default:t.withCtx(()=>[Tt]),_:1})]),t.createElementVNode("div",Ft,[t.createElementVNode("p",null,"Counter: "+t.toDisplayString(e.value),1),t.createElementVNode("button",{class:"btn small mt-2",onClick:n[0]||(n[0]=t.withModifiers(s=>e.value++,["prevent"]))},"Add")])]))}})},Symbol.toStringTag,{value:"Module"}));y.Header=Z,y.HeaderNavigation=ie,y.Insight=U,y.InsightApp=q,y.bootInsight=$t,y.isActivated=ne,y.useStatefulNavigation=z,Object.defineProperties(y,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});

@@ -8,3 +8,3 @@ {

"resources/js/Pages/HomePage.vue": {
"file": "HomePage.6118065b.mjs",
"file": "HomePage.b373a727.mjs",
"src": "resources/js/Pages/HomePage.vue",

@@ -11,0 +11,0 @@ "isDynamicEntry": true

@@ -0,3 +1,5 @@

import type { Models } from "../models";
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
mobileOpen: boolean;
navigation: Models.Navigation;
}>, {

@@ -7,2 +9,3 @@ mobileOpen: boolean;

mobileOpen: boolean;
navigation: Models.Navigation;
}>, {

@@ -9,0 +12,0 @@ mobileOpen: boolean;

@@ -1,2 +0,1 @@

export { default as Button } from './Button.vue';
export { default as Drawer } from './Drawer.vue';

@@ -5,2 +5,3 @@ import { Insight, InsightApp } from "./insight";

export * from './models';
export * from './Composables';
export { bootInsight, Insight, InsightApp };
import type { Component } from "@insightphp/inertia-view";
import type { Models } from "../../models";
declare const _default: {

@@ -8,2 +9,3 @@ new (...args: any[]): {

header: Component;
navigation: Models.Navigation;
}>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;

@@ -25,2 +27,3 @@ $attrs: {

header: Component;
navigation: Models.Navigation;
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {

@@ -48,2 +51,3 @@ beforeCreate?: ((() => void) | (() => void)[]) | undefined;

header: Component;
navigation: Models.Navigation;
}>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;

@@ -55,2 +59,3 @@ __isFragment?: undefined;

header: Component;
navigation: Models.Navigation;
}>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {

@@ -57,0 +62,0 @@ $slots: {

{
"name": "@insightphp/insight",
"version": "0.2.1",
"version": "0.2.2",
"description": "Laravel package for building control panels.",

@@ -47,2 +47,3 @@ "repository": {

"@types/node": "^16.11.47",
"@types/ziggy-js": "^1.3.2",
"@vitejs/plugin-vue": "^3.0.3",

@@ -62,4 +63,5 @@ "@vue/tsconfig": "^0.1.3",

"@insightphp/inertia-view": "^0.4",
"vue": "^3.2"
"vue": "^3.2",
"ziggy-js": "^1.4.6"
}
}

@@ -1,2 +0,1 @@

export { default as Button } from './Button.vue'
export { default as Drawer } from './Drawer.vue'

@@ -6,2 +6,3 @@ import { Insight, InsightApp } from "./insight";

export * from './models'
export * from './Composables'

@@ -8,0 +9,0 @@ export {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc