@luizleon/sf.prefeiturasp.vuecomponents 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/appResult.d.ts +10 -0
- package/dist/components/internal/ThemeToggle.d.ts +8 -11
- package/dist/index.d.ts +2 -1
- package/dist/lib.es.js +107 -83
- package/dist/lib.es.js.map +1 -1
- package/dist/lib.umd.js +8 -8
- package/dist/lib.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/common/appResult.ts +22 -0
- package/src/components/tabnavigation/TabNavigation.vue +1 -1
- package/src/index.ts +2 -0
- package/src/style/src/components/_tab-navigation.scss +7 -6
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class AppResult<Value = null> {
|
|
2
|
+
constructor(value?: Value | null);
|
|
3
|
+
errors: string[];
|
|
4
|
+
private _value?;
|
|
5
|
+
get value(): Value;
|
|
6
|
+
set value(v: Value);
|
|
7
|
+
get hasSuccess(): boolean;
|
|
8
|
+
get hasError(): boolean;
|
|
9
|
+
WithError(error: string): void;
|
|
10
|
+
}
|
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
declare
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare const ThemeToggleBase: ThemeToggle;
|
|
10
|
-
export {};
|
|
11
|
-
SetInitialTheme(): void;
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
readonly ThemeToggleBase: {
|
|
3
|
+
readonly storedTheme: "light" | "dark" | null;
|
|
4
|
+
readonly IsDark: boolean;
|
|
5
|
+
Toggle(): void;
|
|
6
|
+
EnableDarkMode(): void;
|
|
7
|
+
EnableLightMode(): void;
|
|
8
|
+
SetInitialTheme(): void;
|
|
12
9
|
};
|
|
13
10
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
14
11
|
export default _sfc_main;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,5 +6,6 @@ import SfTabNavigation from "./components/tabnavigation/TabNavigation";
|
|
|
6
6
|
import { UseNavMenuService } from "./services/navMenuService";
|
|
7
7
|
import { UseDialogService } from "./services/dialogService";
|
|
8
8
|
import { AuthService } from "./services/authService";
|
|
9
|
+
import { AppResult } from "./common/appResult";
|
|
9
10
|
import { Cor, Tamanho } from "./enum";
|
|
10
|
-
export { SfLayout, SfIcon, SfNavMenuLink, SfContent, SfTabNavigation, AuthService, UseNavMenuService, UseDialogService, Cor, Tamanho, };
|
|
11
|
+
export { SfLayout, SfIcon, SfNavMenuLink, SfContent, SfTabNavigation, AuthService, AppResult, UseNavMenuService, UseDialogService, Cor, Tamanho, };
|
package/dist/lib.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var ur = Object.defineProperty;
|
|
2
2
|
var dr = (a, o, u) => o in a ? ur(a, o, { enumerable: !0, configurable: !0, writable: !0, value: u }) : a[o] = u;
|
|
3
|
-
var
|
|
3
|
+
var Ie = (a, o, u) => (dr(a, typeof o != "symbol" ? o + "" : o, u), u);
|
|
4
4
|
import { ref, openBlock, createElementBlock, createElementVNode, defineComponent, normalizeStyle, normalizeClass, mergeProps, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, unref, createStaticVNode, createVNode, renderSlot, resolveComponent, withCtx, onMounted, onBeforeUnmount, renderList, nextTick } from "vue";
|
|
5
5
|
class NavMenuService {
|
|
6
6
|
constructor() {
|
|
7
|
-
|
|
7
|
+
Ie(this, "_visible", ref(!1));
|
|
8
8
|
}
|
|
9
9
|
get IsVisible() {
|
|
10
10
|
return this._visible.value === !0;
|
|
@@ -50,7 +50,7 @@ class CssClassBuilder {
|
|
|
50
50
|
* @param value The initial value of the CSS class string.
|
|
51
51
|
*/
|
|
52
52
|
constructor(o) {
|
|
53
|
-
|
|
53
|
+
Ie(this, "retorno");
|
|
54
54
|
this.retorno = o ?? "";
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
@@ -580,7 +580,7 @@ function Keycloak(a) {
|
|
|
580
580
|
return JSON.stringify(c);
|
|
581
581
|
}
|
|
582
582
|
o.createLoginUrl = function(s) {
|
|
583
|
-
var c =
|
|
583
|
+
var c = Fe(), g = Fe(), w = u.redirectUri(s), m = {
|
|
584
584
|
state: c,
|
|
585
585
|
nonce: g,
|
|
586
586
|
redirectUri: encodeURIComponent(w)
|
|
@@ -855,20 +855,20 @@ function Keycloak(a) {
|
|
|
855
855
|
}
|
|
856
856
|
return s = decodeURIComponent(escape(atob(s))), s = JSON.parse(s), s;
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function Fe() {
|
|
859
859
|
var s = "0123456789abcdef", c = T(36, s).split("");
|
|
860
860
|
c[14] = "4", c[19] = s.substr(c[19] & 3 | 8, 1), c[8] = c[13] = c[18] = c[23] = "-";
|
|
861
861
|
var g = c.join("");
|
|
862
862
|
return g;
|
|
863
863
|
}
|
|
864
864
|
function ae(s) {
|
|
865
|
-
var c =
|
|
865
|
+
var c = Ne(s);
|
|
866
866
|
if (c) {
|
|
867
867
|
var g = k.get(c.state);
|
|
868
868
|
return g && (c.valid = !0, c.redirectUri = g.redirectUri, c.storedNonce = g.nonce, c.prompt = g.prompt, c.pkceCodeVerifier = g.pkceCodeVerifier), c;
|
|
869
869
|
}
|
|
870
870
|
}
|
|
871
|
-
function
|
|
871
|
+
function Ne(s) {
|
|
872
872
|
var c;
|
|
873
873
|
switch (o.flow) {
|
|
874
874
|
case "standard":
|
|
@@ -883,7 +883,7 @@ function Keycloak(a) {
|
|
|
883
883
|
}
|
|
884
884
|
c.push("error"), c.push("error_description"), c.push("error_uri");
|
|
885
885
|
var g = s.indexOf("?"), w = s.indexOf("#"), m, C;
|
|
886
|
-
if (o.responseMode === "query" && g !== -1 ? (m = s.substring(0, g), C =
|
|
886
|
+
if (o.responseMode === "query" && g !== -1 ? (m = s.substring(0, g), C = Le(s.substring(g + 1, w !== -1 ? w : s.length), c), C.paramsString !== "" && (m += "?" + C.paramsString), w !== -1 && (m += s.substring(w))) : o.responseMode === "fragment" && w !== -1 && (m = s.substring(0, w), C = Le(s.substring(w + 1), c), C.paramsString !== "" && (m += "#" + C.paramsString)), C && C.oauthParams) {
|
|
887
887
|
if (o.flow === "standard" || o.flow === "hybrid") {
|
|
888
888
|
if ((C.oauthParams.code || C.oauthParams.error) && C.oauthParams.state)
|
|
889
889
|
return C.oauthParams.newUrl = m, C.oauthParams;
|
|
@@ -891,7 +891,7 @@ function Keycloak(a) {
|
|
|
891
891
|
return C.oauthParams.newUrl = m, C.oauthParams;
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function Le(s, c) {
|
|
895
895
|
for (var g = s.split("&"), w = {
|
|
896
896
|
paramsString: "",
|
|
897
897
|
oauthParams: {}
|
|
@@ -1326,18 +1326,18 @@ var sweetalert2 = { exports: {} };
|
|
|
1326
1326
|
scrollbarPadding: !0
|
|
1327
1327
|
}, j = ["allowEscapeKey", "allowOutsideClick", "background", "buttonsStyling", "cancelButtonAriaLabel", "cancelButtonColor", "cancelButtonText", "closeButtonAriaLabel", "closeButtonHtml", "color", "confirmButtonAriaLabel", "confirmButtonColor", "confirmButtonText", "currentProgressStep", "customClass", "denyButtonAriaLabel", "denyButtonColor", "denyButtonText", "didClose", "didDestroy", "footer", "hideClass", "html", "icon", "iconColor", "iconHtml", "imageAlt", "imageHeight", "imageUrl", "imageWidth", "preConfirm", "preDeny", "progressSteps", "returnFocus", "reverseButtons", "showCancelButton", "showCloseButton", "showConfirmButton", "showDenyButton", "text", "title", "titleText", "willClose"], he = {}, Q = ["allowOutsideClick", "allowEnterKey", "backdrop", "focusConfirm", "focusDeny", "focusCancel", "returnFocus", "heightAuto", "keydownListenerCapture"], ie = (e) => Object.prototype.hasOwnProperty.call(D, e), Se = (e) => j.indexOf(e) !== -1, de = (e) => he[e], _e = (e) => {
|
|
1328
1328
|
ie(e) || y('Unknown parameter "'.concat(e, '"'));
|
|
1329
|
-
},
|
|
1329
|
+
}, Fe = (e) => {
|
|
1330
1330
|
Q.includes(e) && y('The parameter "'.concat(e, '" is incompatible with toasts'));
|
|
1331
1331
|
}, ae = (e) => {
|
|
1332
1332
|
de(e) && U(e, de(e));
|
|
1333
|
-
},
|
|
1333
|
+
}, Ne = (e) => {
|
|
1334
1334
|
!e.backdrop && e.allowOutsideClick && y('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');
|
|
1335
1335
|
for (const t in e)
|
|
1336
|
-
_e(t), e.toast &&
|
|
1337
|
-
},
|
|
1336
|
+
_e(t), e.toast && Fe(t), ae(t);
|
|
1337
|
+
}, Le = "swal2-", M = (e) => {
|
|
1338
1338
|
const t = {};
|
|
1339
1339
|
for (const n in e)
|
|
1340
|
-
t[e[n]] =
|
|
1340
|
+
t[e[n]] = Le + e[n];
|
|
1341
1341
|
return t;
|
|
1342
1342
|
}, d = M(["container", "shown", "height-auto", "iosfix", "popup", "modal", "no-backdrop", "no-transition", "toast", "toast-shown", "show", "hide", "close", "title", "html-container", "actions", "confirm", "deny", "cancel", "default-outline", "footer", "icon", "icon-content", "image", "input", "file", "range", "select", "radio", "checkbox", "label", "textarea", "inputerror", "input-label", "validation-message", "progress-steps", "active-progress-step", "progress-step", "progress-step-line", "loader", "loading", "styled", "top", "top-start", "top-end", "top-left", "top-right", "center", "center-start", "center-end", "center-left", "center-right", "bottom", "bottom-start", "bottom-end", "bottom-left", "bottom-right", "grow-row", "grow-column", "grow-fullscreen", "rtl", "timer-progress-bar", "timer-progress-bar-container", "scrollbar-measure", "icon-success", "icon-warning", "icon-info", "icon-question", "icon-error"]), ce = M(["success", "warning", "info", "question", "error"]), N = () => document.body.querySelector(".".concat(d.container)), re = (e) => {
|
|
1343
1343
|
const t = N();
|
|
@@ -1392,7 +1392,7 @@ var sweetalert2 = { exports: {} };
|
|
|
1392
1392
|
return y("Invalid type of customClass.".concat(n, '! Expected string or iterable object, got "').concat(typeof t.customClass[n], '"'));
|
|
1393
1393
|
F(e, t.customClass[n]);
|
|
1394
1394
|
}
|
|
1395
|
-
},
|
|
1395
|
+
}, Ve = (e, t) => {
|
|
1396
1396
|
if (!t)
|
|
1397
1397
|
return null;
|
|
1398
1398
|
switch (t) {
|
|
@@ -1439,12 +1439,12 @@ var sweetalert2 = { exports: {} };
|
|
|
1439
1439
|
}, tt = (e, t, n, r) => {
|
|
1440
1440
|
const p = e.querySelector(t);
|
|
1441
1441
|
p && (p.style[n] = r);
|
|
1442
|
-
},
|
|
1442
|
+
}, Re = (e, t, n) => {
|
|
1443
1443
|
t ? X(e, n) : z(e);
|
|
1444
1444
|
}, ee = (e) => !!(e && (e.offsetWidth || e.offsetHeight || e.getClientRects().length)), Lt = () => !ee(g()) && !ee(w()) && !ee(v()), nt = (e) => e.scrollHeight > e.clientHeight, ot = (e) => {
|
|
1445
1445
|
const t = window.getComputedStyle(e), n = parseFloat(t.getPropertyValue("animation-duration") || "0"), r = parseFloat(t.getPropertyValue("transition-duration") || "0");
|
|
1446
1446
|
return n > 0 || r > 0;
|
|
1447
|
-
},
|
|
1447
|
+
}, De = function(e) {
|
|
1448
1448
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
1449
1449
|
const n = S();
|
|
1450
1450
|
ee(n) && (t && (n.style.transition = "none", n.style.width = "100%"), setTimeout(() => {
|
|
@@ -1524,7 +1524,7 @@ var sweetalert2 = { exports: {} };
|
|
|
1524
1524
|
n.className = d.container, t && F(n, d["no-transition"]), q(n, Nt);
|
|
1525
1525
|
const r = jt(e.target);
|
|
1526
1526
|
r.appendChild(n), $t(e), Xt(r), Dt();
|
|
1527
|
-
},
|
|
1527
|
+
}, je = (e, t) => {
|
|
1528
1528
|
e instanceof HTMLElement ? t.appendChild(e) : typeof e == "object" ? zt(e, t) : e && q(t, e);
|
|
1529
1529
|
}, zt = (e, t) => {
|
|
1530
1530
|
e.jquery ? Wt(t, e) : q(t, e.toString());
|
|
@@ -1558,15 +1558,15 @@ var sweetalert2 = { exports: {} };
|
|
|
1558
1558
|
};
|
|
1559
1559
|
function Yt(e, t, n) {
|
|
1560
1560
|
const r = g(), p = w(), A = v();
|
|
1561
|
-
|
|
1561
|
+
$e(r, "confirm", n), $e(p, "deny", n), $e(A, "cancel", n), Gt(r, p, A, n), n.reverseButtons && (n.toast ? (e.insertBefore(A, r), e.insertBefore(p, r)) : (e.insertBefore(A, t), e.insertBefore(p, t), e.insertBefore(r, t)));
|
|
1562
1562
|
}
|
|
1563
1563
|
function Gt(e, t, n, r) {
|
|
1564
1564
|
if (!r.buttonsStyling)
|
|
1565
1565
|
return se([e, t, n], d.styled);
|
|
1566
1566
|
F([e, t, n], d.styled), r.confirmButtonColor && (e.style.backgroundColor = r.confirmButtonColor, F(e, d["default-outline"])), r.denyButtonColor && (t.style.backgroundColor = r.denyButtonColor, F(t, d["default-outline"])), r.cancelButtonColor && (n.style.backgroundColor = r.cancelButtonColor, F(n, d["default-outline"]));
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1569
|
-
|
|
1568
|
+
function $e(e, t, n) {
|
|
1569
|
+
Re(e, n["show".concat(k(t), "Button")], "inline-block"), q(e, n["".concat(t, "ButtonText")]), e.setAttribute("aria-label", n["".concat(t, "ButtonAriaLabel")]), e.className = d[t], oe(e, n, "".concat(t, "Button")), F(e, n["".concat(t, "ButtonClass")]);
|
|
1570
1570
|
}
|
|
1571
1571
|
function Zt(e, t) {
|
|
1572
1572
|
typeof t == "string" ? e.style.background = t : t || F([document.documentElement, document.body], d["no-backdrop"]);
|
|
@@ -1609,7 +1609,7 @@ var sweetalert2 = { exports: {} };
|
|
|
1609
1609
|
["type", "value", "style"].includes(n) || e.removeAttribute(n);
|
|
1610
1610
|
}
|
|
1611
1611
|
}, an = (e, t) => {
|
|
1612
|
-
const n =
|
|
1612
|
+
const n = Ve(I(), e);
|
|
1613
1613
|
if (n) {
|
|
1614
1614
|
sn(n);
|
|
1615
1615
|
for (const r in t)
|
|
@@ -1618,7 +1618,7 @@ var sweetalert2 = { exports: {} };
|
|
|
1618
1618
|
}, cn = (e) => {
|
|
1619
1619
|
const t = st(e.input);
|
|
1620
1620
|
e.customClass && F(t, e.customClass.input);
|
|
1621
|
-
},
|
|
1621
|
+
}, Xe = (e, t) => {
|
|
1622
1622
|
(!e.placeholder || t.inputPlaceholder) && (e.placeholder = t.inputPlaceholder);
|
|
1623
1623
|
}, Te = (e, t, n) => {
|
|
1624
1624
|
if (n.inputLabel) {
|
|
@@ -1630,7 +1630,7 @@ var sweetalert2 = { exports: {} };
|
|
|
1630
1630
|
const t = d[e] ? d[e] : d.input;
|
|
1631
1631
|
return fe(I(), t);
|
|
1632
1632
|
}, Z = {};
|
|
1633
|
-
Z.text = Z.email = Z.password = Z.number = Z.tel = Z.url = (e, t) => (typeof t.inputValue == "string" || typeof t.inputValue == "number" ? e.value = t.inputValue : J(t.inputValue) || y('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t.inputValue, '"')), Te(e, e, t),
|
|
1633
|
+
Z.text = Z.email = Z.password = Z.number = Z.tel = Z.url = (e, t) => (typeof t.inputValue == "string" || typeof t.inputValue == "number" ? e.value = t.inputValue : J(t.inputValue) || y('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof t.inputValue, '"')), Te(e, e, t), Xe(e, t), e.type = t.input, e), Z.file = (e, t) => (Te(e, e, t), Xe(e, t), e), Z.range = (e, t) => {
|
|
1634
1634
|
const n = e.querySelector("input"), r = e.querySelector("output");
|
|
1635
1635
|
return n.value = t.inputValue, n.type = t.input, r.value = t.inputValue, Te(n, e, t), e;
|
|
1636
1636
|
}, Z.select = (e, t) => {
|
|
@@ -1640,12 +1640,12 @@ var sweetalert2 = { exports: {} };
|
|
|
1640
1640
|
}
|
|
1641
1641
|
return Te(e, e, t), e;
|
|
1642
1642
|
}, Z.radio = (e) => (e.textContent = "", e), Z.checkbox = (e, t) => {
|
|
1643
|
-
const n =
|
|
1643
|
+
const n = Ve(I(), "checkbox");
|
|
1644
1644
|
n.value = "1", n.id = d.checkbox, n.checked = !!t.inputValue;
|
|
1645
1645
|
const r = e.querySelector("span");
|
|
1646
1646
|
return q(r, t.inputPlaceholder), e;
|
|
1647
1647
|
}, Z.textarea = (e, t) => {
|
|
1648
|
-
e.value = t.inputValue,
|
|
1648
|
+
e.value = t.inputValue, Xe(e, t), Te(e, e, t);
|
|
1649
1649
|
const n = (r) => parseInt(window.getComputedStyle(r).marginLeft) + parseInt(window.getComputedStyle(r).marginRight);
|
|
1650
1650
|
return setTimeout(() => {
|
|
1651
1651
|
if ("MutationObserver" in window) {
|
|
@@ -1662,13 +1662,13 @@ var sweetalert2 = { exports: {} };
|
|
|
1662
1662
|
};
|
|
1663
1663
|
const ln = (e, t) => {
|
|
1664
1664
|
const n = be();
|
|
1665
|
-
oe(n, t, "htmlContainer"), t.html ? (
|
|
1665
|
+
oe(n, t, "htmlContainer"), t.html ? (je(t.html, n), X(n, "block")) : t.text ? (n.textContent = t.text, X(n, "block")) : z(n), on(e, t);
|
|
1666
1666
|
}, un = (e, t) => {
|
|
1667
1667
|
const n = _();
|
|
1668
|
-
|
|
1668
|
+
Re(n, t.footer), t.footer && je(t.footer, n), oe(n, t, "footer");
|
|
1669
1669
|
}, dn = (e, t) => {
|
|
1670
1670
|
const n = E();
|
|
1671
|
-
q(n, t.closeButtonHtml), oe(n, t, "closeButton"),
|
|
1671
|
+
q(n, t.closeButtonHtml), oe(n, t, "closeButton"), Re(n, t.showCloseButton), n.setAttribute("aria-label", t.closeButtonAriaLabel);
|
|
1672
1672
|
}, fn = (e, t) => {
|
|
1673
1673
|
const n = H.innerParams.get(e), r = le();
|
|
1674
1674
|
if (n && t.icon === n.icon) {
|
|
@@ -1735,7 +1735,7 @@ var sweetalert2 = { exports: {} };
|
|
|
1735
1735
|
});
|
|
1736
1736
|
}, kn = (e, t) => {
|
|
1737
1737
|
const n = ve();
|
|
1738
|
-
|
|
1738
|
+
Re(n, t.title || t.titleText, "block"), t.title && je(t.title, n), t.titleText && (n.innerText = t.titleText), oe(n, t, "title");
|
|
1739
1739
|
}, Cn = (e, t) => {
|
|
1740
1740
|
const n = N(), r = I();
|
|
1741
1741
|
t.toast ? (Ee(n, "width", t.width), r.style.width = "100%", r.insertBefore(C(), le())) : Ee(r, "width", t.width), Ee(r, "padding", t.padding), t.color && (r.style.color = t.color), t.background && (r.style.background = t.background), z(c()), xn(r, t);
|
|
@@ -1906,7 +1906,7 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
|
|
|
1906
1906
|
}, ht), F([document.documentElement, document.body], d.shown), n.heightAuto && n.backdrop && !n.toast && F([document.documentElement, document.body], d["height-auto"]);
|
|
1907
1907
|
}, ke = (e) => {
|
|
1908
1908
|
let t = I();
|
|
1909
|
-
t || new
|
|
1909
|
+
t || new Oe(), t = I();
|
|
1910
1910
|
const n = C();
|
|
1911
1911
|
$() ? z(le()) : Yn(t, e), X(n), t.setAttribute("data-loading", !0), t.setAttribute("aria-busy", !0), t.focus();
|
|
1912
1912
|
}, Yn = (e, t) => {
|
|
@@ -1929,7 +1929,7 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
|
|
|
1929
1929
|
return t.inputAutoTrim ? n.value.trim() : n.value;
|
|
1930
1930
|
}
|
|
1931
1931
|
}, Qn = (e) => e.checked ? 1 : 0, eo = (e) => e.checked ? e.value : null, to = (e) => e.files.length ? e.getAttribute("multiple") !== null ? e.files : e.files[0] : null, no = (e, t) => {
|
|
1932
|
-
const n = I(), r = (p) => ro[t.input](n,
|
|
1932
|
+
const n = I(), r = (p) => ro[t.input](n, qe(p), t);
|
|
1933
1933
|
V(t.inputOptions) || J(t.inputOptions) ? (ke(g()), T(t.inputOptions).then((p) => {
|
|
1934
1934
|
e.hideLoading(), r(p);
|
|
1935
1935
|
})) : typeof t.inputOptions == "object" ? r(t.inputOptions) : h("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof t.inputOptions));
|
|
@@ -1960,20 +1960,20 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
|
|
|
1960
1960
|
t.forEach((A) => {
|
|
1961
1961
|
const O = A[0], te = A[1], W = document.createElement("input"), xe = document.createElement("label");
|
|
1962
1962
|
W.type = "radio", W.name = d.radio, W.value = O, mt(O, n.inputValue) && (W.checked = !0);
|
|
1963
|
-
const
|
|
1964
|
-
q(
|
|
1963
|
+
const Ze = document.createElement("span");
|
|
1964
|
+
q(Ze, te), Ze.className = d.label, xe.appendChild(W), xe.appendChild(Ze), r.appendChild(xe);
|
|
1965
1965
|
});
|
|
1966
1966
|
const p = r.querySelectorAll("input");
|
|
1967
1967
|
p.length && p[0].focus();
|
|
1968
1968
|
}
|
|
1969
|
-
},
|
|
1969
|
+
}, qe = (e) => {
|
|
1970
1970
|
const t = [];
|
|
1971
1971
|
return typeof Map < "u" && e instanceof Map ? e.forEach((n, r) => {
|
|
1972
1972
|
let p = n;
|
|
1973
|
-
typeof p == "object" && (p =
|
|
1973
|
+
typeof p == "object" && (p = qe(p)), t.push([r, p]);
|
|
1974
1974
|
}) : Object.keys(e).forEach((n) => {
|
|
1975
1975
|
let r = e[n];
|
|
1976
|
-
typeof r == "object" && (r =
|
|
1976
|
+
typeof r == "object" && (r = qe(r)), t.push([n, r]);
|
|
1977
1977
|
}), t;
|
|
1978
1978
|
}, mt = (e, t) => t && t.toString() === e.toString();
|
|
1979
1979
|
function gt() {
|
|
@@ -1989,7 +1989,7 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
|
|
|
1989
1989
|
};
|
|
1990
1990
|
function io(e) {
|
|
1991
1991
|
const t = H.innerParams.get(e || this), n = H.domCache.get(e || this);
|
|
1992
|
-
return n ?
|
|
1992
|
+
return n ? Ve(n.popup, t.input) : null;
|
|
1993
1993
|
}
|
|
1994
1994
|
var Pe = {
|
|
1995
1995
|
swalPromiseResolve: /* @__PURE__ */ new WeakMap(),
|
|
@@ -2003,7 +2003,7 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
|
|
|
2003
2003
|
bt(t), n.toast || (t.keydownHandler = (p) => ho(e, p, r), t.keydownTarget = n.keydownListenerCapture ? window : I(), t.keydownListenerCapture = n.keydownListenerCapture, t.keydownTarget.addEventListener("keydown", t.keydownHandler, {
|
|
2004
2004
|
capture: t.keydownListenerCapture
|
|
2005
2005
|
}), t.keydownHandlerAdded = !0);
|
|
2006
|
-
},
|
|
2006
|
+
}, ze = (e, t, n) => {
|
|
2007
2007
|
const r = G();
|
|
2008
2008
|
if (r.length)
|
|
2009
2009
|
return t = t + n, t === r.length ? t = 0 : t === -1 && (t = r.length - 1), r[t].focus();
|
|
@@ -2025,7 +2025,7 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
|
|
|
2025
2025
|
p = A;
|
|
2026
2026
|
break;
|
|
2027
2027
|
}
|
|
2028
|
-
e.shiftKey ?
|
|
2028
|
+
e.shiftKey ? ze(t, p, -1) : ze(t, p, 1), e.stopPropagation(), e.preventDefault();
|
|
2029
2029
|
}, go = (e) => {
|
|
2030
2030
|
const t = g(), n = w(), r = v();
|
|
2031
2031
|
if (![t, n, r].includes(document.activeElement))
|
|
@@ -2048,7 +2048,7 @@ https://sweetalert2.github.io/#ajax-request`), Ln(e), typeof e.title == "string"
|
|
|
2048
2048
|
function bo() {
|
|
2049
2049
|
se([document.documentElement, document.body], [d.shown, d["height-auto"], d["no-backdrop"], d["toast-shown"]]);
|
|
2050
2050
|
}
|
|
2051
|
-
function
|
|
2051
|
+
function Ue(e) {
|
|
2052
2052
|
e = Co(e);
|
|
2053
2053
|
const t = Pe.swalPromiseResolve.get(this), n = yo(this);
|
|
2054
2054
|
this.isAwaitingPromise() ? e.isDismissed || (He(this), t(e)) : n && t(e);
|
|
@@ -2168,8 +2168,8 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
2168
2168
|
const Ro = (e) => {
|
|
2169
2169
|
St(e), delete e.params, delete P.keydownHandler, delete P.keydownTarget, delete P.currentInstance;
|
|
2170
2170
|
}, St = (e) => {
|
|
2171
|
-
e.isAwaitingPromise() ? (
|
|
2172
|
-
},
|
|
2171
|
+
e.isAwaitingPromise() ? (We(H, e), H.awaitingPromise.set(e, !0)) : (We(Pe, e), We(H, e));
|
|
2172
|
+
}, We = (e, t) => {
|
|
2173
2173
|
for (const n in e)
|
|
2174
2174
|
e[n].delete(t);
|
|
2175
2175
|
};
|
|
@@ -2177,13 +2177,13 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
2177
2177
|
hideLoading: gt,
|
|
2178
2178
|
disableLoading: gt,
|
|
2179
2179
|
getInput: io,
|
|
2180
|
-
close:
|
|
2180
|
+
close: Ue,
|
|
2181
2181
|
isAwaitingPromise: wo,
|
|
2182
2182
|
rejectPromise: ko,
|
|
2183
2183
|
handleAwaitingPromise: He,
|
|
2184
|
-
closePopup:
|
|
2185
|
-
closeModal:
|
|
2186
|
-
closeToast:
|
|
2184
|
+
closePopup: Ue,
|
|
2185
|
+
closeModal: Ue,
|
|
2186
|
+
closeToast: Ue,
|
|
2187
2187
|
enableButtons: _o,
|
|
2188
2188
|
disableButtons: Ao,
|
|
2189
2189
|
enableInput: Eo,
|
|
@@ -2196,10 +2196,10 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
2196
2196
|
});
|
|
2197
2197
|
const Uo = (e) => {
|
|
2198
2198
|
const t = H.innerParams.get(e);
|
|
2199
|
-
e.disableButtons(), t.input ? At(e, "confirm") :
|
|
2199
|
+
e.disableButtons(), t.input ? At(e, "confirm") : Je(e, !0);
|
|
2200
2200
|
}, Mo = (e) => {
|
|
2201
2201
|
const t = H.innerParams.get(e);
|
|
2202
|
-
e.disableButtons(), t.returnInputValueOnDeny ? At(e, "deny") :
|
|
2202
|
+
e.disableButtons(), t.returnInputValueOnDeny ? At(e, "deny") : Ke(e, !1);
|
|
2203
2203
|
}, Oo = (e, t) => {
|
|
2204
2204
|
e.disableButtons(), t(ye.cancel);
|
|
2205
2205
|
}, At = (e, t) => {
|
|
@@ -2207,13 +2207,13 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
2207
2207
|
if (!n.input)
|
|
2208
2208
|
return h('The "input" parameter is needed to be set when using returnInputValueOn'.concat(k(t)));
|
|
2209
2209
|
const r = Zn(e, n);
|
|
2210
|
-
n.inputValidator ? No(e, r, t) : e.getInput().checkValidity() ? t === "deny" ?
|
|
2210
|
+
n.inputValidator ? No(e, r, t) : e.getInput().checkValidity() ? t === "deny" ? Ke(e, r) : Je(e, r) : (e.enableButtons(), e.showValidationMessage(n.validationMessage));
|
|
2211
2211
|
}, No = (e, t, n) => {
|
|
2212
2212
|
const r = H.innerParams.get(e);
|
|
2213
2213
|
e.disableInput(), Promise.resolve().then(() => T(r.inputValidator(t, r.validationMessage))).then((A) => {
|
|
2214
|
-
e.enableButtons(), e.enableInput(), A ? e.showValidationMessage(A) : n === "deny" ?
|
|
2214
|
+
e.enableButtons(), e.enableInput(), A ? e.showValidationMessage(A) : n === "deny" ? Ke(e, t) : Je(e, t);
|
|
2215
2215
|
});
|
|
2216
|
-
},
|
|
2216
|
+
}, Ke = (e, t) => {
|
|
2217
2217
|
const n = H.innerParams.get(e || void 0);
|
|
2218
2218
|
n.showLoaderOnDeny && ke(w()), n.preDeny ? (H.awaitingPromise.set(e || void 0, !0), Promise.resolve().then(() => T(n.preDeny(t, n.validationMessage))).then((p) => {
|
|
2219
2219
|
p === !1 ? (e.hideLoading(), He(e)) : e.closePopup({
|
|
@@ -2231,7 +2231,7 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
2231
2231
|
});
|
|
2232
2232
|
}, Bt = (e, t) => {
|
|
2233
2233
|
e.rejectPromise(t);
|
|
2234
|
-
},
|
|
2234
|
+
}, Je = (e, t) => {
|
|
2235
2235
|
const n = H.innerParams.get(e || void 0);
|
|
2236
2236
|
n.showLoaderOnConfirm && ke(), n.preConfirm ? (e.resetValidationMessage(), H.awaitingPromise.set(e || void 0, !0), Promise.resolve().then(() => T(n.preConfirm(t, n.validationMessage))).then((p) => {
|
|
2237
2237
|
ee(c()) || p === !1 ? (e.hideLoading(), He(e)) : Et(e, typeof p > "u" ? t : p);
|
|
@@ -2244,24 +2244,24 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
2244
2244
|
r && (jo(r) || r.timer || r.input) || n(ye.close);
|
|
2245
2245
|
};
|
|
2246
2246
|
}, jo = (e) => e.showConfirmButton || e.showDenyButton || e.showCancelButton || e.showCloseButton;
|
|
2247
|
-
let
|
|
2247
|
+
let Me = !1;
|
|
2248
2248
|
const $o = (e) => {
|
|
2249
2249
|
e.popup.onmousedown = () => {
|
|
2250
2250
|
e.container.onmouseup = function(t) {
|
|
2251
|
-
e.container.onmouseup = void 0, t.target === e.container && (
|
|
2251
|
+
e.container.onmouseup = void 0, t.target === e.container && (Me = !0);
|
|
2252
2252
|
};
|
|
2253
2253
|
};
|
|
2254
2254
|
}, Xo = (e) => {
|
|
2255
2255
|
e.container.onmousedown = () => {
|
|
2256
2256
|
e.popup.onmouseup = function(t) {
|
|
2257
|
-
e.popup.onmouseup = void 0, (t.target === e.popup || e.popup.contains(t.target)) && (
|
|
2257
|
+
e.popup.onmouseup = void 0, (t.target === e.popup || e.popup.contains(t.target)) && (Me = !0);
|
|
2258
2258
|
};
|
|
2259
2259
|
};
|
|
2260
2260
|
}, qo = (e, t, n) => {
|
|
2261
2261
|
t.container.onclick = (r) => {
|
|
2262
2262
|
const p = H.innerParams.get(e);
|
|
2263
|
-
if (
|
|
2264
|
-
|
|
2263
|
+
if (Me) {
|
|
2264
|
+
Me = !1;
|
|
2265
2265
|
return;
|
|
2266
2266
|
}
|
|
2267
2267
|
r.target === t.container && R(p.allowOutsideClick) && n(ye.backdrop);
|
|
@@ -2293,7 +2293,7 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
2293
2293
|
}, Ht = () => {
|
|
2294
2294
|
if (P.timeout) {
|
|
2295
2295
|
const e = P.timeout.start();
|
|
2296
|
-
return
|
|
2296
|
+
return De(e), e;
|
|
2297
2297
|
}
|
|
2298
2298
|
}, Go = () => {
|
|
2299
2299
|
const e = P.timeout;
|
|
@@ -2301,21 +2301,21 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
2301
2301
|
}, Zo = (e) => {
|
|
2302
2302
|
if (P.timeout) {
|
|
2303
2303
|
const t = P.timeout.increase(e);
|
|
2304
|
-
return
|
|
2304
|
+
return De(t, !0), t;
|
|
2305
2305
|
}
|
|
2306
2306
|
}, Qo = () => P.timeout && P.timeout.isRunning();
|
|
2307
2307
|
let It = !1;
|
|
2308
|
-
const
|
|
2308
|
+
const Ye = {};
|
|
2309
2309
|
function er() {
|
|
2310
2310
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "data-swal-template";
|
|
2311
|
-
|
|
2311
|
+
Ye[e] = this, It || (document.body.addEventListener("click", tr), It = !0);
|
|
2312
2312
|
}
|
|
2313
2313
|
const tr = (e) => {
|
|
2314
2314
|
for (let t = e.target; t && t !== document; t = t.parentNode)
|
|
2315
|
-
for (const n in
|
|
2315
|
+
for (const n in Ye) {
|
|
2316
2316
|
const r = t.getAttribute(n);
|
|
2317
2317
|
if (r) {
|
|
2318
|
-
|
|
2318
|
+
Ye[n].fire({
|
|
2319
2319
|
template: r
|
|
2320
2320
|
});
|
|
2321
2321
|
return;
|
|
@@ -2361,12 +2361,12 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
2361
2361
|
isTimerRunning: Qo,
|
|
2362
2362
|
bindClickHandler: er
|
|
2363
2363
|
});
|
|
2364
|
-
let
|
|
2364
|
+
let Ge;
|
|
2365
2365
|
class Ce {
|
|
2366
2366
|
constructor() {
|
|
2367
2367
|
if (typeof window > "u")
|
|
2368
2368
|
return;
|
|
2369
|
-
|
|
2369
|
+
Ge = this;
|
|
2370
2370
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
2371
2371
|
n[r] = arguments[r];
|
|
2372
2372
|
const p = Object.freeze(this.constructor.argsToParams(n));
|
|
@@ -2383,7 +2383,7 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
2383
2383
|
}
|
|
2384
2384
|
_main(t) {
|
|
2385
2385
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2386
|
-
|
|
2386
|
+
Ne(Object.assign({}, n, t)), P.currentInstance && (P.currentInstance._destroy(), ne() && ut()), P.currentInstance = this;
|
|
2387
2387
|
const r = rr(t, n);
|
|
2388
2388
|
Rn(r), Object.freeze(r), P.timeout && (P.timeout.stop(), delete P.timeout), clearTimeout(P.restoreFocusTimeout);
|
|
2389
2389
|
const p = sr(this);
|
|
@@ -2429,25 +2429,25 @@ If you think this parameter should be updatable, request it here: https://github
|
|
|
2429
2429
|
z(r), t.timer && (e.timeout = new Un(() => {
|
|
2430
2430
|
n("timer"), delete e.timeout;
|
|
2431
2431
|
}, t.timer), t.timerProgressBar && (X(r), oe(r, t, "timerProgressBar"), setTimeout(() => {
|
|
2432
|
-
e.timeout && e.timeout.running &&
|
|
2432
|
+
e.timeout && e.timeout.running && De(t.timer);
|
|
2433
2433
|
})));
|
|
2434
2434
|
}, ar = (e, t) => {
|
|
2435
2435
|
if (!t.toast) {
|
|
2436
2436
|
if (!R(t.allowEnterKey))
|
|
2437
2437
|
return lr();
|
|
2438
|
-
cr(e, t) ||
|
|
2438
|
+
cr(e, t) || ze(t, -1, 1);
|
|
2439
2439
|
}
|
|
2440
2440
|
}, cr = (e, t) => t.focusDeny && ee(e.denyButton) ? (e.denyButton.focus(), !0) : t.focusCancel && ee(e.cancelButton) ? (e.cancelButton.focus(), !0) : t.focusConfirm && ee(e.confirmButton) ? (e.confirmButton.focus(), !0) : !1, lr = () => {
|
|
2441
2441
|
document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur();
|
|
2442
2442
|
};
|
|
2443
2443
|
Object.assign(Ce.prototype, _t), Object.assign(Ce, nr), Object.keys(_t).forEach((e) => {
|
|
2444
2444
|
Ce[e] = function() {
|
|
2445
|
-
if (
|
|
2446
|
-
return
|
|
2445
|
+
if (Ge)
|
|
2446
|
+
return Ge[e](...arguments);
|
|
2447
2447
|
};
|
|
2448
2448
|
}), Ce.DismissReason = ye, Ce.version = "11.4.8";
|
|
2449
|
-
const
|
|
2450
|
-
return
|
|
2449
|
+
const Oe = Ce;
|
|
2450
|
+
return Oe.default = Oe, Oe;
|
|
2451
2451
|
}), typeof commonjsGlobal < "u" && commonjsGlobal.Sweetalert2 && (commonjsGlobal.swal = commonjsGlobal.sweetAlert = commonjsGlobal.Swal = commonjsGlobal.SweetAlert = commonjsGlobal.Sweetalert2);
|
|
2452
2452
|
})(sweetalert2);
|
|
2453
2453
|
var sweetalert2Exports = sweetalert2.exports;
|
|
@@ -2551,7 +2551,7 @@ const ThemeToggleBase = (() => new ThemeToggle())(), _hoisted_1$3 = /* @__PURE__
|
|
|
2551
2551
|
(...f) => unref(ThemeToggleBase).Toggle && unref(ThemeToggleBase).Toggle(...f))
|
|
2552
2552
|
}, _hoisted_2$3));
|
|
2553
2553
|
}
|
|
2554
|
-
}), _hoisted_1$2 = { id: "sf-layout" }, _hoisted_2$2 = /* @__PURE__ */ createElementVNode("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), _hoisted_3$1 = { class: "title" }, _hoisted_4$1 = { class: "sf-layout-nav-header" }, _hoisted_5$1 = /* @__PURE__ */ createElementVNode("span", null, "Menu", -1), _hoisted_6$1 = { class: "sf-layout-nav-content" }, _hoisted_7 = /* @__PURE__ */ createElementVNode("section", { id: "sf-layout-page-title" }, null, -1), _hoisted_8 = { id: "sf-layout-content" }, _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2554
|
+
}), _hoisted_1$2 = { id: "sf-layout" }, _hoisted_2$2 = /* @__PURE__ */ createElementVNode("div", { class: "sf-layout-menu-toggler-logo" }, null, -1), _hoisted_3$1 = { class: "title" }, _hoisted_4$1 = { class: "sf-layout-nav-header" }, _hoisted_5$1 = /* @__PURE__ */ createElementVNode("span", null, "Menu", -1), _hoisted_6$1 = { class: "sf-layout-nav-content" }, _hoisted_7$1 = /* @__PURE__ */ createElementVNode("section", { id: "sf-layout-page-title" }, null, -1), _hoisted_8 = { id: "sf-layout-content" }, _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
2555
2555
|
__name: "Layout",
|
|
2556
2556
|
setup(a) {
|
|
2557
2557
|
const o = UseNavMenuService();
|
|
@@ -2592,7 +2592,7 @@ const ThemeToggleBase = (() => new ThemeToggle())(), _hoisted_1$3 = /* @__PURE__
|
|
|
2592
2592
|
createElementVNode("main", {
|
|
2593
2593
|
class: normalizeClass({ "menu-visible": unref(o).IsVisible })
|
|
2594
2594
|
}, [
|
|
2595
|
-
_hoisted_7,
|
|
2595
|
+
_hoisted_7$1,
|
|
2596
2596
|
createElementVNode("section", _hoisted_8, [
|
|
2597
2597
|
renderSlot(u.$slots, "content")
|
|
2598
2598
|
])
|
|
@@ -2717,7 +2717,7 @@ const ThemeToggleBase = (() => new ThemeToggle())(), _hoisted_1$3 = /* @__PURE__
|
|
|
2717
2717
|
})
|
|
2718
2718
|
], -1), _hoisted_3 = [
|
|
2719
2719
|
_hoisted_2
|
|
2720
|
-
], _hoisted_4 = ["href", "onClick"],
|
|
2720
|
+
], _hoisted_4 = ["data-active"], _hoisted_5 = ["href", "onClick"], _hoisted_6 = /* @__PURE__ */ createElementVNode("svg", {
|
|
2721
2721
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2722
2722
|
fill: "none",
|
|
2723
2723
|
viewBox: "0 0 24 24",
|
|
@@ -2730,8 +2730,8 @@ const ThemeToggleBase = (() => new ThemeToggle())(), _hoisted_1$3 = /* @__PURE__
|
|
|
2730
2730
|
"stroke-linejoin": "round",
|
|
2731
2731
|
d: "M8.25 4.5l7.5 7.5-7.5 7.5"
|
|
2732
2732
|
})
|
|
2733
|
-
], -1),
|
|
2734
|
-
|
|
2733
|
+
], -1), _hoisted_7 = [
|
|
2734
|
+
_hoisted_6
|
|
2735
2735
|
], _sfc_main = /* @__PURE__ */ defineComponent({
|
|
2736
2736
|
__name: "TabNavigation",
|
|
2737
2737
|
props: {
|
|
@@ -2776,7 +2776,7 @@ const ThemeToggleBase = (() => new ThemeToggle())(), _hoisted_1$3 = /* @__PURE__
|
|
|
2776
2776
|
custom: !0
|
|
2777
2777
|
}, {
|
|
2778
2778
|
default: withCtx(({ navigate: V, isActive: T }) => [
|
|
2779
|
-
createElementVNode("li",
|
|
2779
|
+
createElementVNode("li", { "data-active": T }, [
|
|
2780
2780
|
renderSlot(x.$slots, "item", {
|
|
2781
2781
|
item: R,
|
|
2782
2782
|
navigate: V,
|
|
@@ -2786,9 +2786,9 @@ const ThemeToggleBase = (() => new ThemeToggle())(), _hoisted_1$3 = /* @__PURE__
|
|
|
2786
2786
|
href: R.route,
|
|
2787
2787
|
class: normalizeClass({ active: T }),
|
|
2788
2788
|
onClick: V
|
|
2789
|
-
}, toDisplayString(R.text), 11,
|
|
2789
|
+
}, toDisplayString(R.text), 11, _hoisted_5)
|
|
2790
2790
|
])
|
|
2791
|
-
])
|
|
2791
|
+
], 8, _hoisted_4)
|
|
2792
2792
|
]),
|
|
2793
2793
|
_: 2
|
|
2794
2794
|
}, 1032, ["to"]))), 256))
|
|
@@ -2796,11 +2796,34 @@ const ThemeToggleBase = (() => new ThemeToggle())(), _hoisted_1$3 = /* @__PURE__
|
|
|
2796
2796
|
createElementVNode("div", {
|
|
2797
2797
|
class: normalizeClass(["right-arrow", { active: l.value }]),
|
|
2798
2798
|
onClick: B[1] || (B[1] = (R) => y())
|
|
2799
|
-
},
|
|
2799
|
+
}, _hoisted_7, 2)
|
|
2800
2800
|
]);
|
|
2801
2801
|
};
|
|
2802
2802
|
}
|
|
2803
|
-
})
|
|
2803
|
+
});
|
|
2804
|
+
class AppResult {
|
|
2805
|
+
constructor(o = null) {
|
|
2806
|
+
Ie(this, "errors", []);
|
|
2807
|
+
Ie(this, "_value", null);
|
|
2808
|
+
this._value = o;
|
|
2809
|
+
}
|
|
2810
|
+
get value() {
|
|
2811
|
+
return this._value;
|
|
2812
|
+
}
|
|
2813
|
+
set value(o) {
|
|
2814
|
+
this._value = o;
|
|
2815
|
+
}
|
|
2816
|
+
get hasSuccess() {
|
|
2817
|
+
return !this.hasError;
|
|
2818
|
+
}
|
|
2819
|
+
get hasError() {
|
|
2820
|
+
return this.errors.length > 0;
|
|
2821
|
+
}
|
|
2822
|
+
WithError(o) {
|
|
2823
|
+
this.errors.push(o);
|
|
2824
|
+
}
|
|
2825
|
+
}
|
|
2826
|
+
const tema = "", componentes = "";
|
|
2804
2827
|
(() => {
|
|
2805
2828
|
function a() {
|
|
2806
2829
|
nextTick(() => {
|
|
@@ -2819,6 +2842,7 @@ const ThemeToggleBase = (() => new ThemeToggle())(), _hoisted_1$3 = /* @__PURE__
|
|
|
2819
2842
|
})();
|
|
2820
2843
|
ThemeToggleBase.SetInitialTheme();
|
|
2821
2844
|
export {
|
|
2845
|
+
AppResult,
|
|
2822
2846
|
AuthService,
|
|
2823
2847
|
Cor,
|
|
2824
2848
|
_sfc_main$1 as SfContent,
|