nectiasw 0.0.81 → 0.0.83
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/context/index.d.ts +1 -0
- package/dist/index.es.js +60 -311
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +37 -37
- package/dist/index.umd.js.map +1 -1
- package/dist/providers/https/index.d.ts +1 -2
- package/dist/providers/microfront/types.d.ts +1 -0
- package/package.json +2 -2
package/dist/context/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type ContextProps = Partial<CommonSignalConnection> & {
|
|
|
16
16
|
expanded?: boolean;
|
|
17
17
|
history?: BrowserHistory;
|
|
18
18
|
environment?: Record<string, string>;
|
|
19
|
+
onClear?: () => void;
|
|
19
20
|
onExpand?: (status?: boolean) => void;
|
|
20
21
|
onSignal?: (signal?: CommonSignalConnection) => void;
|
|
21
22
|
onAcessDenied?: (route: string) => void;
|
package/dist/index.es.js
CHANGED
|
@@ -34641,7 +34641,7 @@ const Datepicker = React__default.memo((props) => {
|
|
|
34641
34641
|
format: format2,
|
|
34642
34642
|
minDate,
|
|
34643
34643
|
maxDate,
|
|
34644
|
-
readOnly
|
|
34644
|
+
readOnly,
|
|
34645
34645
|
disabled,
|
|
34646
34646
|
onChange,
|
|
34647
34647
|
className,
|
|
@@ -34777,7 +34777,7 @@ const Datepicker = React__default.memo((props) => {
|
|
|
34777
34777
|
locale: "es",
|
|
34778
34778
|
minDate,
|
|
34779
34779
|
maxDate,
|
|
34780
|
-
readOnly
|
|
34780
|
+
readOnly,
|
|
34781
34781
|
disabled,
|
|
34782
34782
|
selected: props == null ? void 0 : props.date,
|
|
34783
34783
|
wrapperClassName: className,
|
|
@@ -34814,7 +34814,7 @@ const Datepicker = React__default.memo((props) => {
|
|
|
34814
34814
|
open,
|
|
34815
34815
|
locale: "es",
|
|
34816
34816
|
value,
|
|
34817
|
-
readOnly
|
|
34817
|
+
readOnly,
|
|
34818
34818
|
disabled,
|
|
34819
34819
|
selected: props == null ? void 0 : props.date,
|
|
34820
34820
|
minDate,
|
|
@@ -41606,12 +41606,10 @@ class HttpClient {
|
|
|
41606
41606
|
baseURL,
|
|
41607
41607
|
timeout: timeout2,
|
|
41608
41608
|
headers = {},
|
|
41609
|
-
logger = console.log,
|
|
41610
41609
|
requestInterceptor = (config2) => config2,
|
|
41611
41610
|
responseInterceptor = (response) => response
|
|
41612
41611
|
} = {}) {
|
|
41613
41612
|
__publicField(this, "https");
|
|
41614
|
-
__publicField(this, "logger");
|
|
41615
41613
|
__publicField(this, "requestInterceptor");
|
|
41616
41614
|
__publicField(this, "responseInterceptor");
|
|
41617
41615
|
this.https = axios.create({
|
|
@@ -41619,12 +41617,10 @@ class HttpClient {
|
|
|
41619
41617
|
timeout: timeout2,
|
|
41620
41618
|
headers
|
|
41621
41619
|
});
|
|
41622
|
-
this.logger = logger;
|
|
41623
41620
|
this.requestInterceptor = this.https.interceptors.request.use(
|
|
41624
41621
|
requestInterceptor,
|
|
41625
41622
|
(error2) => {
|
|
41626
41623
|
var _a3;
|
|
41627
|
-
this.logger("requestError", error2);
|
|
41628
41624
|
if (((_a3 = error2.request) == null ? void 0 : _a3.status) === HttpStatusCode.Unauthorized) {
|
|
41629
41625
|
const event = new CustomEvent("@unauthorized", {
|
|
41630
41626
|
detail: error2
|
|
@@ -41638,7 +41634,6 @@ class HttpClient {
|
|
|
41638
41634
|
responseInterceptor,
|
|
41639
41635
|
(error2) => {
|
|
41640
41636
|
var _a3;
|
|
41641
|
-
this.logger("responseError", error2);
|
|
41642
41637
|
if (((_a3 = error2.response) == null ? void 0 : _a3.status) === HttpStatusCode.Unauthorized) {
|
|
41643
41638
|
const event = new CustomEvent("@unauthorized", {
|
|
41644
41639
|
detail: error2
|
|
@@ -49688,7 +49683,7 @@ const resetAllStores = () => {
|
|
|
49688
49683
|
}
|
|
49689
49684
|
};
|
|
49690
49685
|
/*!
|
|
49691
|
-
* sweetalert2 v11.14.
|
|
49686
|
+
* sweetalert2 v11.14.5
|
|
49692
49687
|
* Released under the MIT License.
|
|
49693
49688
|
*/
|
|
49694
49689
|
function _assertClassBrand(e, t, n) {
|
|
@@ -51109,12 +51104,13 @@ const prepareResolveValue = (resolveValue) => {
|
|
|
51109
51104
|
}, resolveValue);
|
|
51110
51105
|
};
|
|
51111
51106
|
const handlePopupAnimation = (instance, popup, innerParams) => {
|
|
51107
|
+
var _globalState$eventEmi;
|
|
51112
51108
|
const container = getContainer();
|
|
51113
51109
|
const animationIsSupported = hasCssAnimation(popup);
|
|
51114
51110
|
if (typeof innerParams.willClose === "function") {
|
|
51115
51111
|
innerParams.willClose(popup);
|
|
51116
51112
|
}
|
|
51117
|
-
globalState.eventEmitter.emit("willClose", popup);
|
|
51113
|
+
(_globalState$eventEmi = globalState.eventEmitter) === null || _globalState$eventEmi === void 0 || _globalState$eventEmi.emit("willClose", popup);
|
|
51118
51114
|
if (animationIsSupported) {
|
|
51119
51115
|
animatePopup(instance, popup, container, innerParams.returnFocus, innerParams.didClose);
|
|
51120
51116
|
} else {
|
|
@@ -51125,7 +51121,8 @@ const animatePopup = (instance, popup, container, returnFocus, didClose) => {
|
|
|
51125
51121
|
globalState.swalCloseEventFinishedCallback = removePopupAndResetState.bind(null, instance, container, returnFocus, didClose);
|
|
51126
51122
|
const swalCloseAnimationFinished = function(e) {
|
|
51127
51123
|
if (e.target === popup) {
|
|
51128
|
-
|
|
51124
|
+
var _globalState$swalClos;
|
|
51125
|
+
(_globalState$swalClos = globalState.swalCloseEventFinishedCallback) === null || _globalState$swalClos === void 0 || _globalState$swalClos.call(globalState);
|
|
51129
51126
|
delete globalState.swalCloseEventFinishedCallback;
|
|
51130
51127
|
popup.removeEventListener("animationend", swalCloseAnimationFinished);
|
|
51131
51128
|
popup.removeEventListener("transitionend", swalCloseAnimationFinished);
|
|
@@ -51136,10 +51133,11 @@ const animatePopup = (instance, popup, container, returnFocus, didClose) => {
|
|
|
51136
51133
|
};
|
|
51137
51134
|
const triggerDidCloseAndDispose = (instance, didClose) => {
|
|
51138
51135
|
setTimeout(() => {
|
|
51136
|
+
var _globalState$eventEmi2;
|
|
51139
51137
|
if (typeof didClose === "function") {
|
|
51140
51138
|
didClose.bind(instance.params)();
|
|
51141
51139
|
}
|
|
51142
|
-
globalState.eventEmitter.emit("didClose");
|
|
51140
|
+
(_globalState$eventEmi2 = globalState.eventEmitter) === null || _globalState$eventEmi2 === void 0 || _globalState$eventEmi2.emit("didClose");
|
|
51143
51141
|
if (instance._destroy) {
|
|
51144
51142
|
instance._destroy();
|
|
51145
51143
|
}
|
|
@@ -52578,7 +52576,7 @@ const initFocus = (domCache, innerParams) => {
|
|
|
52578
52576
|
setFocus(-1, 1);
|
|
52579
52577
|
};
|
|
52580
52578
|
const focusAutofocus = (domCache) => {
|
|
52581
|
-
const autofocusElements = domCache.popup.querySelectorAll("[autofocus]");
|
|
52579
|
+
const autofocusElements = Array.from(domCache.popup.querySelectorAll("[autofocus]"));
|
|
52582
52580
|
for (const autofocusElement of autofocusElements) {
|
|
52583
52581
|
if (autofocusElement instanceof HTMLElement && isVisible$1(autofocusElement)) {
|
|
52584
52582
|
autofocusElement.focus();
|
|
@@ -52652,7 +52650,7 @@ Object.keys(instanceMethods).forEach((key) => {
|
|
|
52652
52650
|
};
|
|
52653
52651
|
});
|
|
52654
52652
|
SweetAlert.DismissReason = DismissReason;
|
|
52655
|
-
SweetAlert.version = "11.14.
|
|
52653
|
+
SweetAlert.version = "11.14.5";
|
|
52656
52654
|
const Swal = SweetAlert;
|
|
52657
52655
|
Swal.default = Swal;
|
|
52658
52656
|
"undefined" != typeof document && function(e, t) {
|
|
@@ -52664,250 +52662,6 @@ Swal.default = Swal;
|
|
|
52664
52662
|
n.innerText = t;
|
|
52665
52663
|
}
|
|
52666
52664
|
}(document, '.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{animation:swal2-toast-hide .1s forwards}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:rgba(0,0,0,.4)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:hsl(0,0%,33%);font-family:inherit;font-size:1rem}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2))}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:0;border-radius:.25em;background:initial;background-color:#7066e0;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):focus-visible{box-shadow:0 0 0 3px rgba(112,102,224,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:0;border-radius:.25em;background:initial;background-color:#dc3741;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):focus-visible{box-shadow:0 0 0 3px rgba(220,55,65,.5)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:0;border-radius:.25em;background:initial;background-color:#6e7881;color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):focus-visible{box-shadow:0 0 0 3px rgba(110,120,129,.5)}div:where(.swal2-container) button:where(.swal2-styled).swal2-default-outline:focus-visible{box-shadow:0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:inherit;font-size:1em;text-align:center}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em}div:where(.swal2-container) button:where(.swal2-close){z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:rgba(0,0,0,0);color:#ccc;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:none;background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) .swal2-html-container{z-index:1;justify-content:center;margin:0;padding:1em 1.6em .3em;overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid hsl(0,0%,85%);border-radius:.1875em;background:rgba(0,0,0,0);box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:#fff}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:rgba(0,0,0,0);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:rgba(0,0,0,0);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:#fff;color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:hsl(0,0%,94%);color:#666;font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:0.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}div:where(.swal2-icon).swal2-warning{border-color:rgb(249.95234375,205.965625,167.74765625);color:#f8bb86}div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}div:where(.swal2-icon).swal2-info{border-color:rgb(156.7033492823,224.2822966507,246.2966507177);color:#3fc3ee}div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}div:where(.swal2-icon).swal2-question{border-color:rgb(200.8064516129,217.9677419355,225.1935483871);color:#87adbd}div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:swal2-show .3s}.swal2-hide{animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-show{0%{transform:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}');
|
|
52667
|
-
var Action;
|
|
52668
|
-
(function(Action2) {
|
|
52669
|
-
Action2["Pop"] = "POP";
|
|
52670
|
-
Action2["Push"] = "PUSH";
|
|
52671
|
-
Action2["Replace"] = "REPLACE";
|
|
52672
|
-
})(Action || (Action = {}));
|
|
52673
|
-
var readOnly = process.env.NODE_ENV !== "production" ? function(obj) {
|
|
52674
|
-
return Object.freeze(obj);
|
|
52675
|
-
} : function(obj) {
|
|
52676
|
-
return obj;
|
|
52677
|
-
};
|
|
52678
|
-
function warning(cond, message2) {
|
|
52679
|
-
{
|
|
52680
|
-
if (typeof console !== "undefined") console.warn(message2);
|
|
52681
|
-
try {
|
|
52682
|
-
throw new Error(message2);
|
|
52683
|
-
} catch (e) {
|
|
52684
|
-
}
|
|
52685
|
-
}
|
|
52686
|
-
}
|
|
52687
|
-
var BeforeUnloadEventType = "beforeunload";
|
|
52688
|
-
var PopStateEventType = "popstate";
|
|
52689
|
-
function createBrowserHistory(options2) {
|
|
52690
|
-
if (options2 === void 0) {
|
|
52691
|
-
options2 = {};
|
|
52692
|
-
}
|
|
52693
|
-
var _options = options2, _options$window = _options.window, window2 = _options$window === void 0 ? document.defaultView : _options$window;
|
|
52694
|
-
var globalHistory = window2.history;
|
|
52695
|
-
function getIndexAndLocation() {
|
|
52696
|
-
var _window$location = window2.location, pathname = _window$location.pathname, search = _window$location.search, hash = _window$location.hash;
|
|
52697
|
-
var state = globalHistory.state || {};
|
|
52698
|
-
return [state.idx, readOnly({
|
|
52699
|
-
pathname,
|
|
52700
|
-
search,
|
|
52701
|
-
hash,
|
|
52702
|
-
state: state.usr || null,
|
|
52703
|
-
key: state.key || "default"
|
|
52704
|
-
})];
|
|
52705
|
-
}
|
|
52706
|
-
var blockedPopTx = null;
|
|
52707
|
-
function handlePop() {
|
|
52708
|
-
if (blockedPopTx) {
|
|
52709
|
-
blockers.call(blockedPopTx);
|
|
52710
|
-
blockedPopTx = null;
|
|
52711
|
-
} else {
|
|
52712
|
-
var nextAction = Action.Pop;
|
|
52713
|
-
var _getIndexAndLocation = getIndexAndLocation(), nextIndex = _getIndexAndLocation[0], nextLocation = _getIndexAndLocation[1];
|
|
52714
|
-
if (blockers.length) {
|
|
52715
|
-
if (nextIndex != null) {
|
|
52716
|
-
var delta = index2 - nextIndex;
|
|
52717
|
-
if (delta) {
|
|
52718
|
-
blockedPopTx = {
|
|
52719
|
-
action: nextAction,
|
|
52720
|
-
location: nextLocation,
|
|
52721
|
-
retry: function retry() {
|
|
52722
|
-
go(delta * -1);
|
|
52723
|
-
}
|
|
52724
|
-
};
|
|
52725
|
-
go(delta);
|
|
52726
|
-
}
|
|
52727
|
-
} else {
|
|
52728
|
-
process.env.NODE_ENV !== "production" ? warning(
|
|
52729
|
-
false,
|
|
52730
|
-
// TODO: Write up a doc that explains our blocking strategy in
|
|
52731
|
-
// detail and link to it here so people can understand better what
|
|
52732
|
-
// is going on and how to avoid it.
|
|
52733
|
-
"You are trying to block a POP navigation to a location that was not created by the history library. The block will fail silently in production, but in general you should do all navigation with the history library (instead of using window.history.pushState directly) to avoid this situation."
|
|
52734
|
-
) : void 0;
|
|
52735
|
-
}
|
|
52736
|
-
} else {
|
|
52737
|
-
applyTx(nextAction);
|
|
52738
|
-
}
|
|
52739
|
-
}
|
|
52740
|
-
}
|
|
52741
|
-
window2.addEventListener(PopStateEventType, handlePop);
|
|
52742
|
-
var action = Action.Pop;
|
|
52743
|
-
var _getIndexAndLocation2 = getIndexAndLocation(), index2 = _getIndexAndLocation2[0], location2 = _getIndexAndLocation2[1];
|
|
52744
|
-
var listeners = createEvents();
|
|
52745
|
-
var blockers = createEvents();
|
|
52746
|
-
if (index2 == null) {
|
|
52747
|
-
index2 = 0;
|
|
52748
|
-
globalHistory.replaceState(_extends$7({}, globalHistory.state, {
|
|
52749
|
-
idx: index2
|
|
52750
|
-
}), "");
|
|
52751
|
-
}
|
|
52752
|
-
function createHref(to2) {
|
|
52753
|
-
return typeof to2 === "string" ? to2 : createPath(to2);
|
|
52754
|
-
}
|
|
52755
|
-
function getNextLocation(to2, state) {
|
|
52756
|
-
if (state === void 0) {
|
|
52757
|
-
state = null;
|
|
52758
|
-
}
|
|
52759
|
-
return readOnly(_extends$7({
|
|
52760
|
-
pathname: location2.pathname,
|
|
52761
|
-
hash: "",
|
|
52762
|
-
search: ""
|
|
52763
|
-
}, typeof to2 === "string" ? parsePath(to2) : to2, {
|
|
52764
|
-
state,
|
|
52765
|
-
key: createKey()
|
|
52766
|
-
}));
|
|
52767
|
-
}
|
|
52768
|
-
function getHistoryStateAndUrl(nextLocation, index3) {
|
|
52769
|
-
return [{
|
|
52770
|
-
usr: nextLocation.state,
|
|
52771
|
-
key: nextLocation.key,
|
|
52772
|
-
idx: index3
|
|
52773
|
-
}, createHref(nextLocation)];
|
|
52774
|
-
}
|
|
52775
|
-
function allowTx(action2, location3, retry) {
|
|
52776
|
-
return !blockers.length || (blockers.call({
|
|
52777
|
-
action: action2,
|
|
52778
|
-
location: location3,
|
|
52779
|
-
retry
|
|
52780
|
-
}), false);
|
|
52781
|
-
}
|
|
52782
|
-
function applyTx(nextAction) {
|
|
52783
|
-
action = nextAction;
|
|
52784
|
-
var _getIndexAndLocation3 = getIndexAndLocation();
|
|
52785
|
-
index2 = _getIndexAndLocation3[0];
|
|
52786
|
-
location2 = _getIndexAndLocation3[1];
|
|
52787
|
-
listeners.call({
|
|
52788
|
-
action,
|
|
52789
|
-
location: location2
|
|
52790
|
-
});
|
|
52791
|
-
}
|
|
52792
|
-
function push(to2, state) {
|
|
52793
|
-
var nextAction = Action.Push;
|
|
52794
|
-
var nextLocation = getNextLocation(to2, state);
|
|
52795
|
-
function retry() {
|
|
52796
|
-
push(to2, state);
|
|
52797
|
-
}
|
|
52798
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
52799
|
-
var _getHistoryStateAndUr = getHistoryStateAndUrl(nextLocation, index2 + 1), historyState = _getHistoryStateAndUr[0], url = _getHistoryStateAndUr[1];
|
|
52800
|
-
try {
|
|
52801
|
-
globalHistory.pushState(historyState, "", url);
|
|
52802
|
-
} catch (error2) {
|
|
52803
|
-
window2.location.assign(url);
|
|
52804
|
-
}
|
|
52805
|
-
applyTx(nextAction);
|
|
52806
|
-
}
|
|
52807
|
-
}
|
|
52808
|
-
function replace(to2, state) {
|
|
52809
|
-
var nextAction = Action.Replace;
|
|
52810
|
-
var nextLocation = getNextLocation(to2, state);
|
|
52811
|
-
function retry() {
|
|
52812
|
-
replace(to2, state);
|
|
52813
|
-
}
|
|
52814
|
-
if (allowTx(nextAction, nextLocation, retry)) {
|
|
52815
|
-
var _getHistoryStateAndUr2 = getHistoryStateAndUrl(nextLocation, index2), historyState = _getHistoryStateAndUr2[0], url = _getHistoryStateAndUr2[1];
|
|
52816
|
-
globalHistory.replaceState(historyState, "", url);
|
|
52817
|
-
applyTx(nextAction);
|
|
52818
|
-
}
|
|
52819
|
-
}
|
|
52820
|
-
function go(delta) {
|
|
52821
|
-
globalHistory.go(delta);
|
|
52822
|
-
}
|
|
52823
|
-
var history = {
|
|
52824
|
-
get action() {
|
|
52825
|
-
return action;
|
|
52826
|
-
},
|
|
52827
|
-
get location() {
|
|
52828
|
-
return location2;
|
|
52829
|
-
},
|
|
52830
|
-
createHref,
|
|
52831
|
-
push,
|
|
52832
|
-
replace,
|
|
52833
|
-
go,
|
|
52834
|
-
back: function back() {
|
|
52835
|
-
go(-1);
|
|
52836
|
-
},
|
|
52837
|
-
forward: function forward() {
|
|
52838
|
-
go(1);
|
|
52839
|
-
},
|
|
52840
|
-
listen: function listen(listener) {
|
|
52841
|
-
return listeners.push(listener);
|
|
52842
|
-
},
|
|
52843
|
-
block: function block(blocker) {
|
|
52844
|
-
var unblock = blockers.push(blocker);
|
|
52845
|
-
if (blockers.length === 1) {
|
|
52846
|
-
window2.addEventListener(BeforeUnloadEventType, promptBeforeUnload);
|
|
52847
|
-
}
|
|
52848
|
-
return function() {
|
|
52849
|
-
unblock();
|
|
52850
|
-
if (!blockers.length) {
|
|
52851
|
-
window2.removeEventListener(BeforeUnloadEventType, promptBeforeUnload);
|
|
52852
|
-
}
|
|
52853
|
-
};
|
|
52854
|
-
}
|
|
52855
|
-
};
|
|
52856
|
-
return history;
|
|
52857
|
-
}
|
|
52858
|
-
function promptBeforeUnload(event) {
|
|
52859
|
-
event.preventDefault();
|
|
52860
|
-
event.returnValue = "";
|
|
52861
|
-
}
|
|
52862
|
-
function createEvents() {
|
|
52863
|
-
var handlers = [];
|
|
52864
|
-
return {
|
|
52865
|
-
get length() {
|
|
52866
|
-
return handlers.length;
|
|
52867
|
-
},
|
|
52868
|
-
push: function push(fn) {
|
|
52869
|
-
handlers.push(fn);
|
|
52870
|
-
return function() {
|
|
52871
|
-
handlers = handlers.filter(function(handler2) {
|
|
52872
|
-
return handler2 !== fn;
|
|
52873
|
-
});
|
|
52874
|
-
};
|
|
52875
|
-
},
|
|
52876
|
-
call: function call(arg) {
|
|
52877
|
-
handlers.forEach(function(fn) {
|
|
52878
|
-
return fn && fn(arg);
|
|
52879
|
-
});
|
|
52880
|
-
}
|
|
52881
|
-
};
|
|
52882
|
-
}
|
|
52883
|
-
function createKey() {
|
|
52884
|
-
return Math.random().toString(36).substr(2, 8);
|
|
52885
|
-
}
|
|
52886
|
-
function createPath(_ref) {
|
|
52887
|
-
var _ref$pathname = _ref.pathname, pathname = _ref$pathname === void 0 ? "/" : _ref$pathname, _ref$search = _ref.search, search = _ref$search === void 0 ? "" : _ref$search, _ref$hash = _ref.hash, hash = _ref$hash === void 0 ? "" : _ref$hash;
|
|
52888
|
-
if (search && search !== "?") pathname += search.charAt(0) === "?" ? search : "?" + search;
|
|
52889
|
-
if (hash && hash !== "#") pathname += hash.charAt(0) === "#" ? hash : "#" + hash;
|
|
52890
|
-
return pathname;
|
|
52891
|
-
}
|
|
52892
|
-
function parsePath(path) {
|
|
52893
|
-
var parsedPath = {};
|
|
52894
|
-
if (path) {
|
|
52895
|
-
var hashIndex = path.indexOf("#");
|
|
52896
|
-
if (hashIndex >= 0) {
|
|
52897
|
-
parsedPath.hash = path.substr(hashIndex);
|
|
52898
|
-
path = path.substr(0, hashIndex);
|
|
52899
|
-
}
|
|
52900
|
-
var searchIndex = path.indexOf("?");
|
|
52901
|
-
if (searchIndex >= 0) {
|
|
52902
|
-
parsedPath.search = path.substr(searchIndex);
|
|
52903
|
-
path = path.substr(0, searchIndex);
|
|
52904
|
-
}
|
|
52905
|
-
if (path) {
|
|
52906
|
-
parsedPath.pathname = path;
|
|
52907
|
-
}
|
|
52908
|
-
}
|
|
52909
|
-
return parsedPath;
|
|
52910
|
-
}
|
|
52911
52665
|
const roles = ["otic", "otec", "empresa"];
|
|
52912
52666
|
const assign = (realm_access) => {
|
|
52913
52667
|
const role = roles.find((role2) => realm_access.includes(role2));
|
|
@@ -52921,37 +52675,64 @@ const renderName = (name) => {
|
|
|
52921
52675
|
};
|
|
52922
52676
|
const MicrofrontHost = React__default.memo((props) => {
|
|
52923
52677
|
const {
|
|
52924
|
-
app,
|
|
52925
52678
|
layout = true,
|
|
52926
52679
|
navbar = () => true,
|
|
52927
52680
|
sidebar = () => true,
|
|
52928
52681
|
footer: footer2,
|
|
52929
52682
|
navigation,
|
|
52930
52683
|
environment,
|
|
52931
|
-
observerToken = true,
|
|
52932
52684
|
previousPath = false,
|
|
52933
52685
|
includeNavbarDropdown
|
|
52934
52686
|
} = props;
|
|
52935
|
-
const [signal, setSignal] = React__default.useState({});
|
|
52936
|
-
const history = React__default.useRef(createBrowserHistory());
|
|
52937
52687
|
const dismiss = React__default.useRef(true);
|
|
52938
|
-
|
|
52939
|
-
|
|
52940
|
-
|
|
52941
|
-
|
|
52942
|
-
|
|
52943
|
-
|
|
52688
|
+
const authentication = React__default.useRef(props == null ? void 0 : props.onAuthCallback);
|
|
52689
|
+
const [signal, setSignal] = React__default.useState({});
|
|
52690
|
+
const handleAuthCallback = React__default.useCallback(async () => {
|
|
52691
|
+
var _a3;
|
|
52692
|
+
setSignal((signal2) => ({
|
|
52693
|
+
...signal2,
|
|
52694
|
+
loading: true
|
|
52695
|
+
}));
|
|
52696
|
+
try {
|
|
52697
|
+
const data = await ((_a3 = authentication == null ? void 0 : authentication.current) == null ? void 0 : _a3.call(authentication));
|
|
52698
|
+
setSignal((signal2) => {
|
|
52699
|
+
var _a4, _b2, _c2, _d;
|
|
52700
|
+
return {
|
|
52701
|
+
...signal2,
|
|
52702
|
+
info: data.info,
|
|
52703
|
+
user: data.user,
|
|
52704
|
+
session: {
|
|
52705
|
+
token: data.token,
|
|
52706
|
+
refreshToken: data.refreshToken
|
|
52707
|
+
},
|
|
52708
|
+
ref: {
|
|
52709
|
+
lastName: renderName((_a4 = signal2 == null ? void 0 : signal2.user) == null ? void 0 : _a4.lastName),
|
|
52710
|
+
firstName: renderName((_b2 = signal2 == null ? void 0 : signal2.user) == null ? void 0 : _b2.firstName),
|
|
52711
|
+
role: assign(((_d = (_c2 = signal2 == null ? void 0 : signal2.info) == null ? void 0 : _c2.realm_access) == null ? void 0 : _d.roles) ?? [])
|
|
52712
|
+
}
|
|
52713
|
+
};
|
|
52714
|
+
});
|
|
52715
|
+
} catch (e) {
|
|
52716
|
+
console.debug("Microfront Error:", e);
|
|
52717
|
+
} finally {
|
|
52718
|
+
setSignal((signal2) => ({
|
|
52719
|
+
...signal2,
|
|
52720
|
+
loading: false
|
|
52944
52721
|
}));
|
|
52945
|
-
}
|
|
52946
|
-
|
|
52947
|
-
)
|
|
52722
|
+
}
|
|
52723
|
+
}, []);
|
|
52724
|
+
React__default.useEffect(() => {
|
|
52725
|
+
handleAuthCallback();
|
|
52726
|
+
}, [handleAuthCallback]);
|
|
52948
52727
|
const onSignal = React__default.useCallback((signal2) => {
|
|
52949
52728
|
if (signal2) {
|
|
52950
52729
|
setSignal(signal2);
|
|
52951
52730
|
}
|
|
52952
52731
|
}, []);
|
|
52732
|
+
const onClear = React__default.useCallback(() => {
|
|
52733
|
+
setSignal({});
|
|
52734
|
+
}, []);
|
|
52953
52735
|
const onAcessDenied = React__default.useCallback(async (route) => {
|
|
52954
|
-
var _a3;
|
|
52955
52736
|
if (dismiss.current) {
|
|
52956
52737
|
dismiss.current = false;
|
|
52957
52738
|
await Swal.fire({
|
|
@@ -52962,63 +52743,31 @@ const MicrofrontHost = React__default.memo((props) => {
|
|
|
52962
52743
|
showCancelButton: false,
|
|
52963
52744
|
showConfirmButton: false
|
|
52964
52745
|
});
|
|
52965
|
-
(
|
|
52966
|
-
pathname: route
|
|
52967
|
-
});
|
|
52746
|
+
navigateToUrl(route);
|
|
52968
52747
|
dismiss.current = true;
|
|
52969
52748
|
}
|
|
52970
52749
|
}, []);
|
|
52971
|
-
React__default.useEffect(() => {
|
|
52972
|
-
if (typeof props.loading === "boolean") {
|
|
52973
|
-
setSignal((currentSingal) => ({
|
|
52974
|
-
...currentSingal,
|
|
52975
|
-
loading: props.loading
|
|
52976
|
-
}));
|
|
52977
|
-
}
|
|
52978
|
-
}, [props.loading]);
|
|
52979
|
-
React__default.useEffect(() => {
|
|
52980
|
-
if (observerToken) {
|
|
52981
|
-
observe(EventMap.SIGNAL, (signalRef) => {
|
|
52982
|
-
setSignal({
|
|
52983
|
-
...signalRef,
|
|
52984
|
-
loading: false
|
|
52985
|
-
});
|
|
52986
|
-
});
|
|
52987
|
-
}
|
|
52988
|
-
}, [app, observerToken]);
|
|
52989
52750
|
const context = React__default.useMemo(() => {
|
|
52990
|
-
var _a3, _b2, _c2, _d;
|
|
52991
52751
|
return {
|
|
52992
52752
|
...signal,
|
|
52753
|
+
onClear,
|
|
52993
52754
|
onSignal,
|
|
52994
52755
|
onAcessDenied,
|
|
52995
|
-
|
|
52996
|
-
environment,
|
|
52997
|
-
ref: {
|
|
52998
|
-
lastName: renderName((_a3 = signal == null ? void 0 : signal.user) == null ? void 0 : _a3.lastName),
|
|
52999
|
-
firstName: renderName((_b2 = signal == null ? void 0 : signal.user) == null ? void 0 : _b2.firstName),
|
|
53000
|
-
role: assign(((_d = (_c2 = signal == null ? void 0 : signal.info) == null ? void 0 : _c2.realm_access) == null ? void 0 : _d.roles) ?? [])
|
|
53001
|
-
}
|
|
52756
|
+
environment
|
|
53002
52757
|
};
|
|
53003
|
-
}, [signal, environment, onSignal, onAcessDenied]);
|
|
52758
|
+
}, [signal, environment, onClear, onSignal, onAcessDenied]);
|
|
53004
52759
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(SignalContext.Provider, { value: context, children: layout ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
53005
52760
|
Layout,
|
|
53006
52761
|
{
|
|
53007
52762
|
menu: navigation,
|
|
53008
|
-
includeNavbar: navbar == null ? void 0 : navbar(
|
|
53009
|
-
signal,
|
|
53010
|
-
signal.loading
|
|
53011
|
-
),
|
|
53012
|
-
includeSidebar: sidebar == null ? void 0 : sidebar(
|
|
53013
|
-
signal,
|
|
53014
|
-
signal.loading
|
|
53015
|
-
),
|
|
53016
52763
|
includeFooter: footer2,
|
|
53017
52764
|
previousPath,
|
|
52765
|
+
includeNavbar: navbar == null ? void 0 : navbar(signal, signal.loading),
|
|
52766
|
+
includeSidebar: sidebar == null ? void 0 : sidebar(signal, signal.loading),
|
|
53018
52767
|
includeNavbarDropdown,
|
|
53019
52768
|
children: signal.loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, { status: true }) : props.children
|
|
53020
52769
|
}
|
|
53021
|
-
) : /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
52770
|
+
) : /* @__PURE__ */ jsxRuntimeExports.jsx(React__default.Fragment, { children: signal.loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loading, { status: true }) : props.children }) });
|
|
53022
52771
|
});
|
|
53023
52772
|
var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
|
|
53024
52773
|
LogLevel2[LogLevel2["DEBUG"] = 0] = "DEBUG";
|