nectiasw 0.0.86 → 0.0.88
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/index.es.js +263 -21
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +13 -13
- package/dist/index.umd.js.map +1 -1
- package/dist/providers/microfront/types.d.ts +1 -1
- package/package.json +1 -1
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: readOnly2,
|
|
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: readOnly2,
|
|
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: readOnly2,
|
|
34818
34818
|
disabled,
|
|
34819
34819
|
selected: props == null ? void 0 : props.date,
|
|
34820
34820
|
minDate,
|
|
@@ -52662,6 +52662,250 @@ Swal.default = Swal;
|
|
|
52662
52662
|
n.innerText = t;
|
|
52663
52663
|
}
|
|
52664
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}');
|
|
52665
|
+
var Action;
|
|
52666
|
+
(function(Action2) {
|
|
52667
|
+
Action2["Pop"] = "POP";
|
|
52668
|
+
Action2["Push"] = "PUSH";
|
|
52669
|
+
Action2["Replace"] = "REPLACE";
|
|
52670
|
+
})(Action || (Action = {}));
|
|
52671
|
+
var readOnly = process.env.NODE_ENV !== "production" ? function(obj) {
|
|
52672
|
+
return Object.freeze(obj);
|
|
52673
|
+
} : function(obj) {
|
|
52674
|
+
return obj;
|
|
52675
|
+
};
|
|
52676
|
+
function warning(cond, message2) {
|
|
52677
|
+
{
|
|
52678
|
+
if (typeof console !== "undefined") console.warn(message2);
|
|
52679
|
+
try {
|
|
52680
|
+
throw new Error(message2);
|
|
52681
|
+
} catch (e) {
|
|
52682
|
+
}
|
|
52683
|
+
}
|
|
52684
|
+
}
|
|
52685
|
+
var BeforeUnloadEventType = "beforeunload";
|
|
52686
|
+
var PopStateEventType = "popstate";
|
|
52687
|
+
function createBrowserHistory(options2) {
|
|
52688
|
+
if (options2 === void 0) {
|
|
52689
|
+
options2 = {};
|
|
52690
|
+
}
|
|
52691
|
+
var _options = options2, _options$window = _options.window, window2 = _options$window === void 0 ? document.defaultView : _options$window;
|
|
52692
|
+
var globalHistory = window2.history;
|
|
52693
|
+
function getIndexAndLocation() {
|
|
52694
|
+
var _window$location = window2.location, pathname = _window$location.pathname, search = _window$location.search, hash = _window$location.hash;
|
|
52695
|
+
var state = globalHistory.state || {};
|
|
52696
|
+
return [state.idx, readOnly({
|
|
52697
|
+
pathname,
|
|
52698
|
+
search,
|
|
52699
|
+
hash,
|
|
52700
|
+
state: state.usr || null,
|
|
52701
|
+
key: state.key || "default"
|
|
52702
|
+
})];
|
|
52703
|
+
}
|
|
52704
|
+
var blockedPopTx = null;
|
|
52705
|
+
function handlePop() {
|
|
52706
|
+
if (blockedPopTx) {
|
|
52707
|
+
blockers.call(blockedPopTx);
|
|
52708
|
+
blockedPopTx = null;
|
|
52709
|
+
} else {
|
|
52710
|
+
var nextAction = Action.Pop;
|
|
52711
|
+
var _getIndexAndLocation = getIndexAndLocation(), nextIndex = _getIndexAndLocation[0], nextLocation = _getIndexAndLocation[1];
|
|
52712
|
+
if (blockers.length) {
|
|
52713
|
+
if (nextIndex != null) {
|
|
52714
|
+
var delta = index2 - nextIndex;
|
|
52715
|
+
if (delta) {
|
|
52716
|
+
blockedPopTx = {
|
|
52717
|
+
action: nextAction,
|
|
52718
|
+
location: nextLocation,
|
|
52719
|
+
retry: function retry() {
|
|
52720
|
+
go(delta * -1);
|
|
52721
|
+
}
|
|
52722
|
+
};
|
|
52723
|
+
go(delta);
|
|
52724
|
+
}
|
|
52725
|
+
} else {
|
|
52726
|
+
process.env.NODE_ENV !== "production" ? warning(
|
|
52727
|
+
false,
|
|
52728
|
+
// TODO: Write up a doc that explains our blocking strategy in
|
|
52729
|
+
// detail and link to it here so people can understand better what
|
|
52730
|
+
// is going on and how to avoid it.
|
|
52731
|
+
"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."
|
|
52732
|
+
) : void 0;
|
|
52733
|
+
}
|
|
52734
|
+
} else {
|
|
52735
|
+
applyTx(nextAction);
|
|
52736
|
+
}
|
|
52737
|
+
}
|
|
52738
|
+
}
|
|
52739
|
+
window2.addEventListener(PopStateEventType, handlePop);
|
|
52740
|
+
var action = Action.Pop;
|
|
52741
|
+
var _getIndexAndLocation2 = getIndexAndLocation(), index2 = _getIndexAndLocation2[0], location2 = _getIndexAndLocation2[1];
|
|
52742
|
+
var listeners = createEvents();
|
|
52743
|
+
var blockers = createEvents();
|
|
52744
|
+
if (index2 == null) {
|
|
52745
|
+
index2 = 0;
|
|
52746
|
+
globalHistory.replaceState(_extends$7({}, globalHistory.state, {
|
|
52747
|
+
idx: index2
|
|
52748
|
+
}), "");
|
|
52749
|
+
}
|
|
52750
|
+
function createHref(to2) {
|
|
52751
|
+
return typeof to2 === "string" ? to2 : createPath(to2);
|
|
52752
|
+
}
|
|
52753
|
+
function getNextLocation(to2, state) {
|
|
52754
|
+
if (state === void 0) {
|
|
52755
|
+
state = null;
|
|
52756
|
+
}
|
|
52757
|
+
return readOnly(_extends$7({
|
|
52758
|
+
pathname: location2.pathname,
|
|
52759
|
+
hash: "",
|
|
52760
|
+
search: ""
|
|
52761
|
+
}, typeof to2 === "string" ? parsePath(to2) : to2, {
|
|
52762
|
+
state,
|
|
52763
|
+
key: createKey()
|
|
52764
|
+
}));
|
|
52765
|
+
}
|
|
52766
|
+
function getHistoryStateAndUrl(nextLocation, index3) {
|
|
52767
|
+
return [{
|
|
52768
|
+
usr: nextLocation.state,
|
|
52769
|
+
key: nextLocation.key,
|
|
52770
|
+
idx: index3
|
|
52771
|
+
}, createHref(nextLocation)];
|
|
52772
|
+
}
|
|
52773
|
+
function allowTx(action2, location3, retry) {
|
|
52774
|
+
return !blockers.length || (blockers.call({
|
|
52775
|
+
action: action2,
|
|
52776
|
+
location: location3,
|
|
52777
|
+
retry
|
|
52778
|
+
}), false);
|
|
52779
|
+
}
|
|
52780
|
+
function applyTx(nextAction) {
|
|
52781
|
+
action = nextAction;
|
|
52782
|
+
var _getIndexAndLocation3 = getIndexAndLocation();
|
|
52783
|
+
index2 = _getIndexAndLocation3[0];
|
|
52784
|
+
location2 = _getIndexAndLocation3[1];
|
|
52785
|
+
listeners.call({
|
|
52786
|
+
action,
|
|
52787
|
+
location: location2
|
|
52788
|
+
});
|
|
52789
|
+
}
|
|
52790
|
+
function push(to2, state) {
|
|
52791
|
+
var nextAction = Action.Push;
|
|
52792
|
+
var nextLocation = getNextLocation(to2, state);
|
|
52793
|
+
function retry() {
|
|
52794
|
+
push(to2, state);
|
|
52795
|
+
}
|
|
52796
|
+
if (allowTx(nextAction, nextLocation, retry)) {
|
|
52797
|
+
var _getHistoryStateAndUr = getHistoryStateAndUrl(nextLocation, index2 + 1), historyState = _getHistoryStateAndUr[0], url = _getHistoryStateAndUr[1];
|
|
52798
|
+
try {
|
|
52799
|
+
globalHistory.pushState(historyState, "", url);
|
|
52800
|
+
} catch (error2) {
|
|
52801
|
+
window2.location.assign(url);
|
|
52802
|
+
}
|
|
52803
|
+
applyTx(nextAction);
|
|
52804
|
+
}
|
|
52805
|
+
}
|
|
52806
|
+
function replace(to2, state) {
|
|
52807
|
+
var nextAction = Action.Replace;
|
|
52808
|
+
var nextLocation = getNextLocation(to2, state);
|
|
52809
|
+
function retry() {
|
|
52810
|
+
replace(to2, state);
|
|
52811
|
+
}
|
|
52812
|
+
if (allowTx(nextAction, nextLocation, retry)) {
|
|
52813
|
+
var _getHistoryStateAndUr2 = getHistoryStateAndUrl(nextLocation, index2), historyState = _getHistoryStateAndUr2[0], url = _getHistoryStateAndUr2[1];
|
|
52814
|
+
globalHistory.replaceState(historyState, "", url);
|
|
52815
|
+
applyTx(nextAction);
|
|
52816
|
+
}
|
|
52817
|
+
}
|
|
52818
|
+
function go(delta) {
|
|
52819
|
+
globalHistory.go(delta);
|
|
52820
|
+
}
|
|
52821
|
+
var history = {
|
|
52822
|
+
get action() {
|
|
52823
|
+
return action;
|
|
52824
|
+
},
|
|
52825
|
+
get location() {
|
|
52826
|
+
return location2;
|
|
52827
|
+
},
|
|
52828
|
+
createHref,
|
|
52829
|
+
push,
|
|
52830
|
+
replace,
|
|
52831
|
+
go,
|
|
52832
|
+
back: function back() {
|
|
52833
|
+
go(-1);
|
|
52834
|
+
},
|
|
52835
|
+
forward: function forward() {
|
|
52836
|
+
go(1);
|
|
52837
|
+
},
|
|
52838
|
+
listen: function listen(listener) {
|
|
52839
|
+
return listeners.push(listener);
|
|
52840
|
+
},
|
|
52841
|
+
block: function block(blocker) {
|
|
52842
|
+
var unblock = blockers.push(blocker);
|
|
52843
|
+
if (blockers.length === 1) {
|
|
52844
|
+
window2.addEventListener(BeforeUnloadEventType, promptBeforeUnload);
|
|
52845
|
+
}
|
|
52846
|
+
return function() {
|
|
52847
|
+
unblock();
|
|
52848
|
+
if (!blockers.length) {
|
|
52849
|
+
window2.removeEventListener(BeforeUnloadEventType, promptBeforeUnload);
|
|
52850
|
+
}
|
|
52851
|
+
};
|
|
52852
|
+
}
|
|
52853
|
+
};
|
|
52854
|
+
return history;
|
|
52855
|
+
}
|
|
52856
|
+
function promptBeforeUnload(event) {
|
|
52857
|
+
event.preventDefault();
|
|
52858
|
+
event.returnValue = "";
|
|
52859
|
+
}
|
|
52860
|
+
function createEvents() {
|
|
52861
|
+
var handlers = [];
|
|
52862
|
+
return {
|
|
52863
|
+
get length() {
|
|
52864
|
+
return handlers.length;
|
|
52865
|
+
},
|
|
52866
|
+
push: function push(fn) {
|
|
52867
|
+
handlers.push(fn);
|
|
52868
|
+
return function() {
|
|
52869
|
+
handlers = handlers.filter(function(handler2) {
|
|
52870
|
+
return handler2 !== fn;
|
|
52871
|
+
});
|
|
52872
|
+
};
|
|
52873
|
+
},
|
|
52874
|
+
call: function call(arg) {
|
|
52875
|
+
handlers.forEach(function(fn) {
|
|
52876
|
+
return fn && fn(arg);
|
|
52877
|
+
});
|
|
52878
|
+
}
|
|
52879
|
+
};
|
|
52880
|
+
}
|
|
52881
|
+
function createKey() {
|
|
52882
|
+
return Math.random().toString(36).substr(2, 8);
|
|
52883
|
+
}
|
|
52884
|
+
function createPath(_ref) {
|
|
52885
|
+
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;
|
|
52886
|
+
if (search && search !== "?") pathname += search.charAt(0) === "?" ? search : "?" + search;
|
|
52887
|
+
if (hash && hash !== "#") pathname += hash.charAt(0) === "#" ? hash : "#" + hash;
|
|
52888
|
+
return pathname;
|
|
52889
|
+
}
|
|
52890
|
+
function parsePath(path) {
|
|
52891
|
+
var parsedPath = {};
|
|
52892
|
+
if (path) {
|
|
52893
|
+
var hashIndex = path.indexOf("#");
|
|
52894
|
+
if (hashIndex >= 0) {
|
|
52895
|
+
parsedPath.hash = path.substr(hashIndex);
|
|
52896
|
+
path = path.substr(0, hashIndex);
|
|
52897
|
+
}
|
|
52898
|
+
var searchIndex = path.indexOf("?");
|
|
52899
|
+
if (searchIndex >= 0) {
|
|
52900
|
+
parsedPath.search = path.substr(searchIndex);
|
|
52901
|
+
path = path.substr(0, searchIndex);
|
|
52902
|
+
}
|
|
52903
|
+
if (path) {
|
|
52904
|
+
parsedPath.pathname = path;
|
|
52905
|
+
}
|
|
52906
|
+
}
|
|
52907
|
+
return parsedPath;
|
|
52908
|
+
}
|
|
52665
52909
|
const roles = ["otic", "otec", "empresa"];
|
|
52666
52910
|
const assign = (realm_access) => {
|
|
52667
52911
|
const role = roles.find((role2) => realm_access.includes(role2));
|
|
@@ -52685,6 +52929,7 @@ const MicrofrontHost = React__default.memo((props) => {
|
|
|
52685
52929
|
includeNavbarDropdown
|
|
52686
52930
|
} = props;
|
|
52687
52931
|
const dismiss = React__default.useRef(true);
|
|
52932
|
+
const history = React__default.useRef(createBrowserHistory());
|
|
52688
52933
|
const [signal, setSignal] = React__default.useState({});
|
|
52689
52934
|
const handleAuthCallback = React__default.useCallback(async () => {
|
|
52690
52935
|
var _a3;
|
|
@@ -52694,24 +52939,20 @@ const MicrofrontHost = React__default.memo((props) => {
|
|
|
52694
52939
|
}));
|
|
52695
52940
|
try {
|
|
52696
52941
|
const data = await ((_a3 = props == null ? void 0 : props.onAuthCallback) == null ? void 0 : _a3.call(props));
|
|
52697
|
-
|
|
52698
|
-
|
|
52699
|
-
|
|
52700
|
-
|
|
52701
|
-
|
|
52702
|
-
|
|
52703
|
-
|
|
52704
|
-
|
|
52705
|
-
|
|
52706
|
-
|
|
52707
|
-
|
|
52708
|
-
|
|
52709
|
-
|
|
52710
|
-
|
|
52711
|
-
refreshToken: data == null ? void 0 : data.refreshToken
|
|
52712
|
-
}
|
|
52713
|
-
};
|
|
52714
|
-
});
|
|
52942
|
+
setSignal((signal2) => ({
|
|
52943
|
+
...signal2,
|
|
52944
|
+
user: data,
|
|
52945
|
+
ref: {
|
|
52946
|
+
lastName: renderName(data == null ? void 0 : data.lastName),
|
|
52947
|
+
firstName: renderName(data == null ? void 0 : data.firstName),
|
|
52948
|
+
role: assign(data == null ? void 0 : data.roles)
|
|
52949
|
+
},
|
|
52950
|
+
session: {
|
|
52951
|
+
token: data == null ? void 0 : data.token,
|
|
52952
|
+
refreshToken: data == null ? void 0 : data.refreshToken
|
|
52953
|
+
},
|
|
52954
|
+
info: (data == null ? void 0 : data.token) ? jwtDecode(data.token) : void 0
|
|
52955
|
+
}));
|
|
52715
52956
|
} catch (e) {
|
|
52716
52957
|
console.debug("Microfront Error:", e);
|
|
52717
52958
|
} finally {
|
|
@@ -52753,6 +52994,7 @@ const MicrofrontHost = React__default.memo((props) => {
|
|
|
52753
52994
|
onClear,
|
|
52754
52995
|
onSignal,
|
|
52755
52996
|
onAcessDenied,
|
|
52997
|
+
history: history.current,
|
|
52756
52998
|
environment
|
|
52757
52999
|
};
|
|
52758
53000
|
}, [signal, environment, onClear, onSignal, onAcessDenied]);
|