@eliseubatista99/react-scaffold-core 0.1.29 → 0.1.31
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/components/pageLayout/pageLayout.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +146 -142
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export interface PageLayoutProps {
|
|
|
8
8
|
footer?: PageLayoutHeaderAndFooterProps;
|
|
9
9
|
floatingContent?: React.ReactNode;
|
|
10
10
|
allowScroll?: boolean;
|
|
11
|
-
|
|
11
|
+
reserveSpaceForScrollbar?: boolean;
|
|
12
12
|
containerStyles?: React.CSSProperties;
|
|
13
13
|
pageStyles?: React.CSSProperties;
|
|
14
14
|
children?: React.ReactNode;
|
package/dist/index.cjs.js
CHANGED
|
@@ -94,4 +94,4 @@ Please change the parent <Route path="${k}"> to <Route path="${k==="/"?"*":`${k}
|
|
|
94
94
|
box-sizing: border-box;
|
|
95
95
|
position: relative;
|
|
96
96
|
}
|
|
97
|
-
`,Ya=e=>{const{containerStyles:t,pageStyles:r,children:o,allowScroll:i=!0,floatingContent:a,
|
|
97
|
+
`,Ya=e=>{const{containerStyles:t,pageStyles:r,children:o,allowScroll:i=!0,floatingContent:a,reserveSpaceForScrollbar:l}=e,{footer:f,header:d}=Ba(e);return G.jsxs(Ua,{id:"page-container",styles:{...t},children:[d.visible&&G.jsx("div",{ref:d.ref,id:"page-header",style:{width:"100%",zIndex:99,position:d.visibility==="fixed"?"relative":"sticky",top:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...d.styles},children:d.content}),G.jsx("div",{id:"page-body",style:{width:"100%",overflow:"hidden",display:"flex",flex:1,marginTop:`-${d.height}px`,marginBottom:`-${f.height}px`},children:G.jsx("div",{id:"page-content",style:{width:"100%",overflowX:"hidden",overflowY:i?"auto":"hidden",display:"flex",flexDirection:"column",flex:1,minHeight:"100%",scrollbarGutter:l?"stable":void 0,paddingLeft:"24px",paddingRight:"24px",paddingTop:`${d.height}px`,paddingBottom:`${f.height}px`,...r},children:o})}),f.visible&&G.jsx("div",{ref:f.ref,id:"page-footer",style:{width:"100%",zIndex:99,position:f.visibility==="fixed"?"relative":"sticky",bottom:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...f.styles},children:f.content})]})},Va=({src:e,width:t="22",height:r="28",stroke:o,viewBox:i="0 0 22 28",fill:a="#000000",alt:l="",onClick:f,styles:d})=>G.jsx("div",{style:{width:"fit-content",height:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",...d},onClick:()=>f?.(),children:G.jsx("svg",{width:t,height:r,viewBox:i,fill:a,stroke:o,xmlns:"http://www.w3.org/2000/svg",style:{display:"flex"},children:e})}),Xa=({id:e,children:t,styles:r,durationInSeconds:o=3})=>{const i=q.useRef(!1),{isItemVisible:a,hideItem:l}=et();return q.useEffect(()=>{const f=a(e);i.current!==f&&(i.current=f,f&&setTimeout(()=>l(e),o*1e3))},[i,a,l]),G.jsx(G.Fragment,{children:a(e)&&G.jsx("div",{style:{width:"100px",height:"40px",background:"#534a4aff",color:"#ffffff",position:"fixed",top:"10px",left:"50%",transform:"translateX(-50%)",zIndex:1e3,borderRadius:"20px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"solid 3px #000000ff",...r},onClick:f=>{f.stopPropagation()},children:t})})},Ga=({overflowEllipsis:e,children:t,styles:r})=>G.jsx("p",{style:{fontFamily:"inherit",maxWidth:"100%",overflow:"hidden",whiteSpace:e?"nowrap":"normal",textOverflow:"ellipsis",fontSize:"16px",fontStyle:"normal",lineHeight:"normal",color:"#000000",...r},children:t});class Ka{static isScrollEnabled=()=>document.body.style.overflow==="unset"||document.body.style.overflow==="auto";static disableScroll=()=>{document.body.style.overflow="hidden"};static enableScroll=()=>{document.body.style.overflow="unset"}}class Ja{static getPascalCase=t=>t.replace(/\w+/g,function(r){return r[0].toUpperCase()+r.slice(1).toLowerCase()});static isEqual=(t,r,o=!0)=>o?t===r:t.toUpperCase()===r.toUpperCase()}exports.Button=xn;exports.Carousel=Qi;exports.Drawer=Aa;exports.FeedbackProvider=Ma;exports.Form=Ha;exports.Image=Na;exports.InputField=$a;exports.Loader=Wa;exports.Modal=qa;exports.NavigationProvider=La;exports.PageLayout=Ya;exports.ScrollHelper=Ka;exports.SvgImage=Va;exports.TextHelper=Ja;exports.TimeHelper=Ur;exports.Toast=Xa;exports.Typography=Ga;exports.defaultBreakpoints=Yr;exports.useDidMount=eo;exports.useDrag=Br;exports.useFeedback=et;exports.useFetch=to;exports.useIsTouchingParentElement=ro;exports.useNavigation=Da;exports.usePointer=qr;exports.useResponsive=no;exports.useTranslations=ao;
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _ from "react";
|
|
2
|
-
import
|
|
2
|
+
import B, { forwardRef as pn, useContext as Nt, useEffect as Er, useState as vn, useMemo as mn } from "react";
|
|
3
3
|
var tt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function gn(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -102,7 +102,7 @@ function wn() {
|
|
|
102
102
|
return (n.displayName || "Context") + ".Provider";
|
|
103
103
|
case N:
|
|
104
104
|
return (n._context.displayName || "Context") + ".Consumer";
|
|
105
|
-
case
|
|
105
|
+
case U:
|
|
106
106
|
var u = n.render;
|
|
107
107
|
return n = n.displayName, n || (n = u.displayName || u.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
108
108
|
case y:
|
|
@@ -264,7 +264,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
264
264
|
function E(n) {
|
|
265
265
|
typeof n == "object" && n !== null && n.$$typeof === A && n._store && (n._store.validated = 1);
|
|
266
266
|
}
|
|
267
|
-
var R =
|
|
267
|
+
var R = B, A = Symbol.for("react.transitional.element"), C = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), M = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), N = Symbol.for("react.consumer"), q = Symbol.for("react.context"), U = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), y = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), m = Symbol.for("react.activity"), c = Symbol.for("react.client.reference"), P = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, x = Array.isArray, T = console.createTask ? console.createTask : function() {
|
|
268
268
|
return null;
|
|
269
269
|
};
|
|
270
270
|
R = {
|
|
@@ -379,7 +379,7 @@ function kn() {
|
|
|
379
379
|
var O, m, c, P, L, x, T = 0, D = !1, F = !1, s = !0;
|
|
380
380
|
if (typeof p != "function")
|
|
381
381
|
throw new TypeError(e);
|
|
382
|
-
g =
|
|
382
|
+
g = U(g) || 0, k(y) && (D = !!y.leading, F = "maxWait" in y, c = F ? A(U(y.maxWait) || 0, g) : c, s = "trailing" in y ? !!y.trailing : s);
|
|
383
383
|
function J($) {
|
|
384
384
|
var Y = O, V = m;
|
|
385
385
|
return O = m = void 0, T = $, P = p.apply(V, Y), P;
|
|
@@ -432,7 +432,7 @@ function kn() {
|
|
|
432
432
|
function q(p) {
|
|
433
433
|
return typeof p == "symbol" || N(p) && R.call(p) == r;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function U(p) {
|
|
436
436
|
if (typeof p == "number")
|
|
437
437
|
return p;
|
|
438
438
|
if (q(p))
|
|
@@ -494,7 +494,7 @@ function Rr() {
|
|
|
494
494
|
Object.defineProperty(e, "__esModule", {
|
|
495
495
|
value: !0
|
|
496
496
|
}), e.default = void 0;
|
|
497
|
-
var t = r(
|
|
497
|
+
var t = r(B);
|
|
498
498
|
function r(i) {
|
|
499
499
|
return i && i.__esModule ? i : { default: i };
|
|
500
500
|
}
|
|
@@ -570,7 +570,7 @@ function Ge() {
|
|
|
570
570
|
rr = 1, Object.defineProperty(W, "__esModule", {
|
|
571
571
|
value: !0
|
|
572
572
|
}), W.checkSpecKeys = W.checkNavigable = W.changeSlide = W.canUseDOM = W.canGoNext = void 0, W.clamp = h, W.extractObject = void 0, W.filterSettings = J, W.validSettings = W.swipeStart = W.swipeMove = W.swipeEnd = W.slidesOnRight = W.slidesOnLeft = W.slideHandler = W.siblingDirection = W.safePreventDefault = W.lazyStartIndex = W.lazySlidesOnRight = W.lazySlidesOnLeft = W.lazyEndIndex = W.keyHandler = W.initializedState = W.getWidth = W.getTrackLeft = W.getTrackCSS = W.getTrackAnimateCSS = W.getTotalSlides = W.getSwipeDirection = W.getSlideCount = W.getRequiredLazySlides = W.getPreClones = W.getPostClones = W.getOnDemandLazySlides = W.getNavigableIndexes = W.getHeight = void 0;
|
|
573
|
-
var e = r(
|
|
573
|
+
var e = r(B), t = r(Rr());
|
|
574
574
|
function r(b) {
|
|
575
575
|
return b && b.__esModule ? b : { default: b };
|
|
576
576
|
}
|
|
@@ -828,12 +828,12 @@ function Ge() {
|
|
|
828
828
|
}
|
|
829
829
|
return K;
|
|
830
830
|
};
|
|
831
|
-
var
|
|
831
|
+
var U = W.getNavigableIndexes = function(n) {
|
|
832
832
|
for (var u = n.infinite ? n.slideCount * 2 : n.slideCount, S = n.infinite ? n.slidesToShow * -1 : 0, I = n.infinite ? n.slidesToShow * -1 : 0, j = []; S < u; )
|
|
833
833
|
j.push(S), S = I + n.slidesToScroll, I += Math.min(n.slidesToScroll, n.slidesToShow);
|
|
834
834
|
return j;
|
|
835
835
|
}, p = W.checkNavigable = function(n, u) {
|
|
836
|
-
var S =
|
|
836
|
+
var S = U(n), I = 0;
|
|
837
837
|
if (u > S[S.length - 1])
|
|
838
838
|
u = S[S.length - 1];
|
|
839
839
|
else
|
|
@@ -954,7 +954,7 @@ function On() {
|
|
|
954
954
|
nr = 1, Object.defineProperty(Fe, "__esModule", {
|
|
955
955
|
value: !0
|
|
956
956
|
}), Fe.Track = void 0;
|
|
957
|
-
var e = o(
|
|
957
|
+
var e = o(B), t = o(pt()), r = Ge();
|
|
958
958
|
function o(m) {
|
|
959
959
|
return m && m.__esModule ? m : { default: m };
|
|
960
960
|
}
|
|
@@ -1057,10 +1057,10 @@ function On() {
|
|
|
1057
1057
|
return (c = q(c)) in m ? Object.defineProperty(m, c, { value: P, enumerable: !0, configurable: !0, writable: !0 }) : m[c] = P, m;
|
|
1058
1058
|
}
|
|
1059
1059
|
function q(m) {
|
|
1060
|
-
var c =
|
|
1060
|
+
var c = U(m, "string");
|
|
1061
1061
|
return i(c) == "symbol" ? c : c + "";
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function U(m, c) {
|
|
1064
1064
|
if (i(m) != "object" || !m) return m;
|
|
1065
1065
|
var P = m[Symbol.toPrimitive];
|
|
1066
1066
|
if (P !== void 0) {
|
|
@@ -1190,7 +1190,7 @@ function Cn() {
|
|
|
1190
1190
|
Object.defineProperty($e, "__esModule", {
|
|
1191
1191
|
value: !0
|
|
1192
1192
|
}), $e.Dots = void 0;
|
|
1193
|
-
var t = i(
|
|
1193
|
+
var t = i(B), r = i(pt()), o = Ge();
|
|
1194
1194
|
function i(p) {
|
|
1195
1195
|
return p && p.__esModule ? p : { default: p };
|
|
1196
1196
|
}
|
|
@@ -1288,7 +1288,7 @@ function Cn() {
|
|
|
1288
1288
|
return g.__proto__ || Object.getPrototypeOf(g);
|
|
1289
1289
|
}, q(p);
|
|
1290
1290
|
}
|
|
1291
|
-
var
|
|
1291
|
+
var U = function(g) {
|
|
1292
1292
|
var y;
|
|
1293
1293
|
return g.infinite ? y = Math.ceil(g.slideCount / g.slidesToScroll) : y = Math.ceil((g.slideCount - g.slidesToShow) / g.slidesToScroll) + 1, y;
|
|
1294
1294
|
};
|
|
@@ -1306,7 +1306,7 @@ function Cn() {
|
|
|
1306
1306
|
}, {
|
|
1307
1307
|
key: "render",
|
|
1308
1308
|
value: function() {
|
|
1309
|
-
for (var m = this.props, c = m.onMouseEnter, P = m.onMouseOver, L = m.onMouseLeave, x = m.infinite, T = m.slidesToScroll, D = m.slidesToShow, F = m.slideCount, s = m.currentSlide, J =
|
|
1309
|
+
for (var m = this.props, c = m.onMouseEnter, P = m.onMouseOver, L = m.onMouseLeave, x = m.infinite, T = m.slidesToScroll, D = m.slidesToShow, F = m.slideCount, s = m.currentSlide, J = U({
|
|
1310
1310
|
slideCount: F,
|
|
1311
1311
|
slidesToScroll: T,
|
|
1312
1312
|
slidesToShow: D,
|
|
@@ -1353,7 +1353,7 @@ function Pn() {
|
|
|
1353
1353
|
Object.defineProperty(Ee, "__esModule", {
|
|
1354
1354
|
value: !0
|
|
1355
1355
|
}), Ee.PrevArrow = Ee.NextArrow = void 0;
|
|
1356
|
-
var t = i(
|
|
1356
|
+
var t = i(B), r = i(pt()), o = Ge();
|
|
1357
1357
|
function i(p) {
|
|
1358
1358
|
return p && p.__esModule ? p : { default: p };
|
|
1359
1359
|
}
|
|
@@ -1429,9 +1429,9 @@ function Pn() {
|
|
|
1429
1429
|
function M(p) {
|
|
1430
1430
|
var g = q();
|
|
1431
1431
|
return function() {
|
|
1432
|
-
var y, O =
|
|
1432
|
+
var y, O = U(p);
|
|
1433
1433
|
if (g) {
|
|
1434
|
-
var m =
|
|
1434
|
+
var m = U(this).constructor;
|
|
1435
1435
|
y = Reflect.construct(O, arguments, m);
|
|
1436
1436
|
} else y = O.apply(this, arguments);
|
|
1437
1437
|
return k(this, y);
|
|
@@ -1456,10 +1456,10 @@ function Pn() {
|
|
|
1456
1456
|
return !!p;
|
|
1457
1457
|
})();
|
|
1458
1458
|
}
|
|
1459
|
-
function
|
|
1460
|
-
return
|
|
1459
|
+
function U(p) {
|
|
1460
|
+
return U = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(g) {
|
|
1461
1461
|
return g.__proto__ || Object.getPrototypeOf(g);
|
|
1462
|
-
},
|
|
1462
|
+
}, U(p);
|
|
1463
1463
|
}
|
|
1464
1464
|
return Ee.PrevArrow = /* @__PURE__ */ function(p) {
|
|
1465
1465
|
C(y, p);
|
|
@@ -1825,20 +1825,20 @@ var $n = (
|
|
|
1825
1825
|
return (t = Lr.get(this))[e].apply(t, arguments);
|
|
1826
1826
|
};
|
|
1827
1827
|
});
|
|
1828
|
-
var
|
|
1828
|
+
var Bn = function() {
|
|
1829
1829
|
return typeof ct.ResizeObserver < "u" ? ct.ResizeObserver : Dr;
|
|
1830
1830
|
}();
|
|
1831
|
-
const
|
|
1831
|
+
const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1832
1832
|
__proto__: null,
|
|
1833
|
-
default:
|
|
1834
|
-
}, Symbol.toStringTag, { value: "Module" })), Yn = /* @__PURE__ */ yn(
|
|
1833
|
+
default: Bn
|
|
1834
|
+
}, Symbol.toStringTag, { value: "Module" })), Yn = /* @__PURE__ */ yn(Un);
|
|
1835
1835
|
var sr;
|
|
1836
1836
|
function Vn() {
|
|
1837
1837
|
if (sr) return Ne;
|
|
1838
1838
|
sr = 1, Object.defineProperty(Ne, "__esModule", {
|
|
1839
1839
|
value: !0
|
|
1840
1840
|
}), Ne.InnerSlider = void 0;
|
|
1841
|
-
var e = h(
|
|
1841
|
+
var e = h(B), t = h(xn()), r = h(kn()), o = h(pt()), i = Ge(), a = On(), l = Cn(), f = Pn(), d = h(Yn);
|
|
1842
1842
|
function h(x) {
|
|
1843
1843
|
return x && x.__esModule ? x : { default: x };
|
|
1844
1844
|
}
|
|
@@ -1915,12 +1915,12 @@ function Vn() {
|
|
|
1915
1915
|
}
|
|
1916
1916
|
function q(x, T) {
|
|
1917
1917
|
if (typeof T != "function" && T !== null) throw new TypeError("Super expression must either be null or a function");
|
|
1918
|
-
x.prototype = Object.create(T && T.prototype, { constructor: { value: x, writable: !0, configurable: !0 } }), Object.defineProperty(x, "prototype", { writable: !1 }), T &&
|
|
1918
|
+
x.prototype = Object.create(T && T.prototype, { constructor: { value: x, writable: !0, configurable: !0 } }), Object.defineProperty(x, "prototype", { writable: !1 }), T && U(x, T);
|
|
1919
1919
|
}
|
|
1920
|
-
function
|
|
1921
|
-
return
|
|
1920
|
+
function U(x, T) {
|
|
1921
|
+
return U = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(D, F) {
|
|
1922
1922
|
return D.__proto__ = F, D;
|
|
1923
|
-
},
|
|
1923
|
+
}, U(x, T);
|
|
1924
1924
|
}
|
|
1925
1925
|
function p(x) {
|
|
1926
1926
|
var T = O();
|
|
@@ -2404,7 +2404,7 @@ function Kn() {
|
|
|
2404
2404
|
Object.defineProperty(e, "__esModule", {
|
|
2405
2405
|
value: !0
|
|
2406
2406
|
}), e.default = void 0;
|
|
2407
|
-
var t = l(
|
|
2407
|
+
var t = l(B), r = Vn(), o = l(Gn()), i = l(Rr()), a = Ge();
|
|
2408
2408
|
function l(O) {
|
|
2409
2409
|
return O && O.__esModule ? O : { default: O };
|
|
2410
2410
|
}
|
|
@@ -2471,9 +2471,9 @@ function Kn() {
|
|
|
2471
2471
|
function M(O) {
|
|
2472
2472
|
var m = q();
|
|
2473
2473
|
return function() {
|
|
2474
|
-
var c, P =
|
|
2474
|
+
var c, P = U(O);
|
|
2475
2475
|
if (m) {
|
|
2476
|
-
var L =
|
|
2476
|
+
var L = U(this).constructor;
|
|
2477
2477
|
c = Reflect.construct(P, arguments, L);
|
|
2478
2478
|
} else c = P.apply(this, arguments);
|
|
2479
2479
|
return k(this, c);
|
|
@@ -2498,10 +2498,10 @@ function Kn() {
|
|
|
2498
2498
|
return !!O;
|
|
2499
2499
|
})();
|
|
2500
2500
|
}
|
|
2501
|
-
function
|
|
2502
|
-
return
|
|
2501
|
+
function U(O) {
|
|
2502
|
+
return U = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(m) {
|
|
2503
2503
|
return m.__proto__ || Object.getPrototypeOf(m);
|
|
2504
|
-
},
|
|
2504
|
+
}, U(O);
|
|
2505
2505
|
}
|
|
2506
2506
|
function p(O, m, c) {
|
|
2507
2507
|
return (m = g(m)) in O ? Object.defineProperty(O, m, { value: c, enumerable: !0, configurable: !0, writable: !0 }) : O[m] = c, O;
|
|
@@ -2730,7 +2730,7 @@ function It(e, t) {
|
|
|
2730
2730
|
function fe(e, t) {
|
|
2731
2731
|
return e.charCodeAt(t) | 0;
|
|
2732
2732
|
}
|
|
2733
|
-
function
|
|
2733
|
+
function Ue(e, t, r) {
|
|
2734
2734
|
return e.slice(t, r);
|
|
2735
2735
|
}
|
|
2736
2736
|
function me(e) {
|
|
@@ -2768,7 +2768,7 @@ function ot() {
|
|
|
2768
2768
|
return he;
|
|
2769
2769
|
}
|
|
2770
2770
|
function Ke(e, t) {
|
|
2771
|
-
return
|
|
2771
|
+
return Ue(Le, e, t);
|
|
2772
2772
|
}
|
|
2773
2773
|
function Ye(e) {
|
|
2774
2774
|
switch (e) {
|
|
@@ -2864,7 +2864,7 @@ function mi(e) {
|
|
|
2864
2864
|
return Nr(st("", null, null, null, [""], e = Hr(e), 0, [0], e));
|
|
2865
2865
|
}
|
|
2866
2866
|
function st(e, t, r, o, i, a, l, f, d) {
|
|
2867
|
-
for (var h = 0, w = 0, E = l, R = 0, A = 0, C = 0, v = 1, M = 1, k = 1, N = 0, q = "",
|
|
2867
|
+
for (var h = 0, w = 0, E = l, R = 0, A = 0, C = 0, v = 1, M = 1, k = 1, N = 0, q = "", U = i, p = a, g = o, y = q; M; )
|
|
2868
2868
|
switch (C = N, N = ve()) {
|
|
2869
2869
|
// (
|
|
2870
2870
|
case 40:
|
|
@@ -2921,9 +2921,9 @@ function st(e, t, r, o, i, a, l, f, d) {
|
|
|
2921
2921
|
y += ";";
|
|
2922
2922
|
// { rule/at-rule
|
|
2923
2923
|
default:
|
|
2924
|
-
if (nt(g = dr(y, t, r, h, w, i, f, q,
|
|
2924
|
+
if (nt(g = dr(y, t, r, h, w, i, f, q, U = [], p = [], E), a), N === 123)
|
|
2925
2925
|
if (w === 0)
|
|
2926
|
-
st(y, t, g, g,
|
|
2926
|
+
st(y, t, g, g, U, a, E, f, p);
|
|
2927
2927
|
else
|
|
2928
2928
|
switch (R === 99 && fe(y, 3) === 110 ? 100 : R) {
|
|
2929
2929
|
// d l m s
|
|
@@ -2931,7 +2931,7 @@ function st(e, t, r, o, i, a, l, f, d) {
|
|
|
2931
2931
|
case 108:
|
|
2932
2932
|
case 109:
|
|
2933
2933
|
case 115:
|
|
2934
|
-
st(e, g, g, o && nt(dr(e, g, g, 0, 0, i, f, q, i,
|
|
2934
|
+
st(e, g, g, o && nt(dr(e, g, g, 0, 0, i, f, q, i, U = [], E), p), i, p, E, f, o ? U : p);
|
|
2935
2935
|
break;
|
|
2936
2936
|
default:
|
|
2937
2937
|
st(y, g, g, g, [""], p, 0, f, p);
|
|
@@ -2971,15 +2971,15 @@ function st(e, t, r, o, i, a, l, f, d) {
|
|
|
2971
2971
|
}
|
|
2972
2972
|
function dr(e, t, r, o, i, a, l, f, d, h, w) {
|
|
2973
2973
|
for (var E = i - 1, R = i === 0 ? a : [""], A = Wt(R), C = 0, v = 0, M = 0; C < o; ++C)
|
|
2974
|
-
for (var k = 0, N =
|
|
2974
|
+
for (var k = 0, N = Ue(e, E + 1, E = oi(v = l[C])), q = e; k < A; ++k)
|
|
2975
2975
|
(q = Ar(v > 0 ? R[k] + " " + N : te(N, /&\f/g, R[k]))) && (d[M++] = q);
|
|
2976
2976
|
return yt(e, t, r, i === 0 ? Ft : f, d, h, w);
|
|
2977
2977
|
}
|
|
2978
2978
|
function gi(e, t, r) {
|
|
2979
|
-
return yt(e, t, r, Mr, mt(ci()),
|
|
2979
|
+
return yt(e, t, r, Mr, mt(ci()), Ue(e, 2, -2), 0);
|
|
2980
2980
|
}
|
|
2981
2981
|
function hr(e, t, r, o) {
|
|
2982
|
-
return yt(e, t, r, $t,
|
|
2982
|
+
return yt(e, t, r, $t, Ue(e, 0, o), Ue(e, o + 1, -1), o);
|
|
2983
2983
|
}
|
|
2984
2984
|
function Re(e, t) {
|
|
2985
2985
|
for (var r = "", o = Wt(e), i = 0; i < o; i++)
|
|
@@ -3512,7 +3512,7 @@ function zi(e, t, r) {
|
|
|
3512
3512
|
}
|
|
3513
3513
|
var Hi = function(t) {
|
|
3514
3514
|
return t();
|
|
3515
|
-
}, Ni = _.useInsertionEffect ? _.useInsertionEffect : !1, Fi = Ni || Hi,
|
|
3515
|
+
}, Ni = _.useInsertionEffect ? _.useInsertionEffect : !1, Fi = Ni || Hi, Br = /* @__PURE__ */ _.createContext(
|
|
3516
3516
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
3517
3517
|
// because this module is primarily intended for the browser and node
|
|
3518
3518
|
// but it's also required in react native and similar environments sometimes
|
|
@@ -3523,24 +3523,24 @@ var Hi = function(t) {
|
|
|
3523
3523
|
key: "css"
|
|
3524
3524
|
}) : null
|
|
3525
3525
|
);
|
|
3526
|
-
|
|
3526
|
+
Br.Provider;
|
|
3527
3527
|
var $i = function(t) {
|
|
3528
3528
|
return /* @__PURE__ */ pn(function(r, o) {
|
|
3529
|
-
var i = Nt(
|
|
3529
|
+
var i = Nt(Br);
|
|
3530
3530
|
return t(r, i, o);
|
|
3531
3531
|
});
|
|
3532
|
-
}, Wi = /* @__PURE__ */ _.createContext({}), qi = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,
|
|
3532
|
+
}, Wi = /* @__PURE__ */ _.createContext({}), qi = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Bi = /* @__PURE__ */ Fr(
|
|
3533
3533
|
function(e) {
|
|
3534
3534
|
return qi.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
3535
3535
|
}
|
|
3536
3536
|
/* Z+1 */
|
|
3537
|
-
),
|
|
3537
|
+
), Ui = Bi, Yi = function(t) {
|
|
3538
3538
|
return t !== "theme";
|
|
3539
3539
|
}, yr = function(t) {
|
|
3540
3540
|
return typeof t == "string" && // 96 is one less than the char code
|
|
3541
3541
|
// for "a" so this is checking that
|
|
3542
3542
|
// it's a lowercase character
|
|
3543
|
-
t.charCodeAt(0) > 96 ?
|
|
3543
|
+
t.charCodeAt(0) > 96 ? Ui : Yi;
|
|
3544
3544
|
}, br = function(t, r, o) {
|
|
3545
3545
|
var i;
|
|
3546
3546
|
if (r) {
|
|
@@ -3570,20 +3570,20 @@ var $i = function(t) {
|
|
|
3570
3570
|
E.push(w[C], R[C]);
|
|
3571
3571
|
}
|
|
3572
3572
|
var v = $i(function(M, k, N) {
|
|
3573
|
-
var q = h && M.as || i,
|
|
3573
|
+
var q = h && M.as || i, U = "", p = [], g = M;
|
|
3574
3574
|
if (M.theme == null) {
|
|
3575
3575
|
g = {};
|
|
3576
3576
|
for (var y in M)
|
|
3577
3577
|
g[y] = M[y];
|
|
3578
3578
|
g.theme = _.useContext(Wi);
|
|
3579
3579
|
}
|
|
3580
|
-
typeof M.className == "string" ?
|
|
3580
|
+
typeof M.className == "string" ? U = Ti(k.registered, p, M.className) : M.className != null && (U = M.className + " ");
|
|
3581
3581
|
var O = zi(E.concat(p), k.registered, g);
|
|
3582
|
-
|
|
3582
|
+
U += k.key + "-" + O.name, l !== void 0 && (U += " " + l);
|
|
3583
3583
|
var m = h && f === void 0 ? yr(q) : d, c = {};
|
|
3584
3584
|
for (var P in M)
|
|
3585
3585
|
h && P === "as" || m(P) && (c[P] = M[P]);
|
|
3586
|
-
return c.className =
|
|
3586
|
+
return c.className = U, N && (c.ref = N), /* @__PURE__ */ _.createElement(_.Fragment, null, /* @__PURE__ */ _.createElement(Vi, {
|
|
3587
3587
|
cache: k,
|
|
3588
3588
|
serialized: O,
|
|
3589
3589
|
isStringTag: typeof q == "string"
|
|
@@ -3791,10 +3791,10 @@ const Ki = je.div`
|
|
|
3791
3791
|
));
|
|
3792
3792
|
return /* @__PURE__ */ G.jsx(Ki, { styles: { ...e }, children: /* @__PURE__ */ G.jsx(Qn, { ...i, children: a }) });
|
|
3793
3793
|
}, za = (e) => Er(e, []), Zi = () => {
|
|
3794
|
-
const [e, t] =
|
|
3794
|
+
const [e, t] = B.useState(
|
|
3795
3795
|
{}
|
|
3796
|
-
), [r, o] =
|
|
3797
|
-
return
|
|
3796
|
+
), [r, o] = B.useState(!1);
|
|
3797
|
+
return B.useEffect(() => {
|
|
3798
3798
|
const i = (f) => {
|
|
3799
3799
|
t({ x: f.clientX, y: f.clientY });
|
|
3800
3800
|
}, a = (f) => {
|
|
@@ -3815,9 +3815,9 @@ const Ki = je.div`
|
|
|
3815
3815
|
onDragStart: r,
|
|
3816
3816
|
onDragEnd: o
|
|
3817
3817
|
}) => {
|
|
3818
|
-
const i =
|
|
3818
|
+
const i = B.useRef(!1), a = B.useRef(!1), { pointerPosition: l, isPointerDown: f } = Zi(), d = B.useRef({
|
|
3819
3819
|
isDragging: !1
|
|
3820
|
-
}), h =
|
|
3820
|
+
}), h = B.useCallback(
|
|
3821
3821
|
(C) => {
|
|
3822
3822
|
if (!e || !e.current || !d.current)
|
|
3823
3823
|
return;
|
|
@@ -3825,21 +3825,21 @@ const Ki = je.div`
|
|
|
3825
3825
|
return v.posY = C.y, v.posX = C.x, d.current.startPosX && d.current.posX && (v.distanceX = d.current.startPosX - d.current.posX), d.current.startPosY && d.current.posY && (v.distanceY = -(d.current.startPosY - d.current.posY)), v;
|
|
3826
3826
|
},
|
|
3827
3827
|
[]
|
|
3828
|
-
), w =
|
|
3828
|
+
), w = B.useCallback(
|
|
3829
3829
|
(C) => {
|
|
3830
3830
|
C.preventDefault(), C.stopPropagation(), d.current.isDragging = !0, d.current.startPosY = C.clientY, d.current.startPosX = C.clientX;
|
|
3831
3831
|
const v = h({ x: C.clientX, y: C.clientY });
|
|
3832
3832
|
v && (d.current = v, r?.(v));
|
|
3833
3833
|
},
|
|
3834
3834
|
[h]
|
|
3835
|
-
), E =
|
|
3835
|
+
), E = B.useCallback(
|
|
3836
3836
|
(C) => {
|
|
3837
3837
|
d.current.isDragging = !1;
|
|
3838
3838
|
const v = h(l);
|
|
3839
3839
|
v && (o?.(v), v.startPosX = void 0, v.startPosY = void 0, d.current = v);
|
|
3840
3840
|
},
|
|
3841
3841
|
[h, l]
|
|
3842
|
-
), R =
|
|
3842
|
+
), R = B.useCallback(
|
|
3843
3843
|
(C) => {
|
|
3844
3844
|
if (console.debug(
|
|
3845
3845
|
"useDrag > onPointerMove > Is Dragging >",
|
|
@@ -3850,18 +3850,18 @@ const Ki = je.div`
|
|
|
3850
3850
|
console.debug("useDrag > onPointerMove > Drag Result >", v), v && (t?.(v), d.current = v);
|
|
3851
3851
|
},
|
|
3852
3852
|
[h, l]
|
|
3853
|
-
), A =
|
|
3853
|
+
), A = B.useCallback(async () => {
|
|
3854
3854
|
if (!i.current) {
|
|
3855
3855
|
for (; !e?.current; )
|
|
3856
3856
|
await new Promise((C) => setTimeout(C, 300));
|
|
3857
3857
|
i.current = !0, e.current.onpointerdown = w, e.current.style.touchAction = "none";
|
|
3858
3858
|
}
|
|
3859
3859
|
}, [e?.current, w]);
|
|
3860
|
-
|
|
3860
|
+
B.useEffect(() => {
|
|
3861
3861
|
A();
|
|
3862
|
-
}, [A]),
|
|
3862
|
+
}, [A]), B.useEffect(() => {
|
|
3863
3863
|
R();
|
|
3864
|
-
}, [l]),
|
|
3864
|
+
}, [l]), B.useEffect(() => {
|
|
3865
3865
|
f !== a.current && (a.current = f, f || E());
|
|
3866
3866
|
}, [f, a.current]);
|
|
3867
3867
|
}, Ha = () => {
|
|
@@ -3899,10 +3899,10 @@ class eo {
|
|
|
3899
3899
|
static isDateOneAfterDateTwo = (t, r) => t.getFullYear() >= r.getFullYear() && t.getMonth() >= r.getMonth() ? t.getDay() > r.getDay() : !1;
|
|
3900
3900
|
}
|
|
3901
3901
|
const Na = (e, t = 0) => {
|
|
3902
|
-
const r =
|
|
3902
|
+
const r = B.useRef(0), [o, i] = B.useState(0), a = B.useRef(null), [l, f] = B.useState(!1), d = B.useCallback(() => {
|
|
3903
3903
|
f((E) => !E);
|
|
3904
|
-
}, []), h =
|
|
3905
|
-
return
|
|
3904
|
+
}, []), h = B.useCallback(() => r.current === 0 ? !1 : o >= r.current - t, [t, o]), w = B.useCallback(() => e.current !== null && e.current !== void 0, [e]);
|
|
3905
|
+
return B.useEffect(() => {
|
|
3906
3906
|
const E = () => {
|
|
3907
3907
|
if (!e.current) return;
|
|
3908
3908
|
const A = e.current.scrollHeight - e.current.clientHeight;
|
|
@@ -3987,18 +3987,18 @@ function io() {
|
|
|
3987
3987
|
const N = R.indexOf("=", k);
|
|
3988
3988
|
if (N === -1)
|
|
3989
3989
|
break;
|
|
3990
|
-
const q = R.indexOf(";", k),
|
|
3991
|
-
if (N >
|
|
3990
|
+
const q = R.indexOf(";", k), U = q === -1 ? v : q;
|
|
3991
|
+
if (N > U) {
|
|
3992
3992
|
k = R.lastIndexOf(";", N - 1) + 1;
|
|
3993
3993
|
continue;
|
|
3994
3994
|
}
|
|
3995
3995
|
const p = f(R, k, N), g = d(R, N, p), y = R.slice(p, g);
|
|
3996
3996
|
if (C[y] === void 0) {
|
|
3997
|
-
let O = f(R, N + 1,
|
|
3997
|
+
let O = f(R, N + 1, U), m = d(R, U, O);
|
|
3998
3998
|
const c = M(R.slice(O, m));
|
|
3999
3999
|
C[y] = c;
|
|
4000
4000
|
}
|
|
4001
|
-
k =
|
|
4001
|
+
k = U + 1;
|
|
4002
4002
|
} while (k < v);
|
|
4003
4003
|
return C;
|
|
4004
4004
|
}
|
|
@@ -4195,13 +4195,13 @@ function so(e, t, r, o = {}) {
|
|
|
4195
4195
|
f = "PUSH";
|
|
4196
4196
|
let N = zt(v.location, M, k);
|
|
4197
4197
|
h = w() + 1;
|
|
4198
|
-
let q = kr(N, h),
|
|
4198
|
+
let q = kr(N, h), U = v.createHref(N);
|
|
4199
4199
|
try {
|
|
4200
|
-
l.pushState(q, "",
|
|
4200
|
+
l.pushState(q, "", U);
|
|
4201
4201
|
} catch (p) {
|
|
4202
4202
|
if (p instanceof DOMException && p.name === "DataCloneError")
|
|
4203
4203
|
throw p;
|
|
4204
|
-
i.location.assign(
|
|
4204
|
+
i.location.assign(U);
|
|
4205
4205
|
}
|
|
4206
4206
|
a && d && d({ action: f, location: v.location, delta: 1 });
|
|
4207
4207
|
}
|
|
@@ -4209,8 +4209,8 @@ function so(e, t, r, o = {}) {
|
|
|
4209
4209
|
f = "REPLACE";
|
|
4210
4210
|
let N = zt(v.location, M, k);
|
|
4211
4211
|
h = w();
|
|
4212
|
-
let q = kr(N, h),
|
|
4213
|
-
l.replaceState(q, "",
|
|
4212
|
+
let q = kr(N, h), U = v.createHref(N);
|
|
4213
|
+
l.replaceState(q, "", U), a && d && d({ action: f, location: v.location, delta: 0 });
|
|
4214
4214
|
}
|
|
4215
4215
|
function C(M) {
|
|
4216
4216
|
return lo(M);
|
|
@@ -4255,7 +4255,7 @@ function lo(e, t = !1) {
|
|
|
4255
4255
|
let o = typeof e == "string" ? e : Xe(e);
|
|
4256
4256
|
return o = o.replace(/ $/, "%20"), !t && o.startsWith("//") && (o = r + o), new URL(o, r);
|
|
4257
4257
|
}
|
|
4258
|
-
function
|
|
4258
|
+
function Ur(e, t, r = "/") {
|
|
4259
4259
|
return uo(e, t, r, !1);
|
|
4260
4260
|
}
|
|
4261
4261
|
function uo(e, t, r, o) {
|
|
@@ -4658,7 +4658,7 @@ Please change the parent <Route path="${k}"> to <Route path="${k === "/" ? "*" :
|
|
|
4658
4658
|
let k = h.replace(/^\//, "").split("/");
|
|
4659
4659
|
C = "/" + A.replace(/^\//, "").split("/").slice(k.length).join("/");
|
|
4660
4660
|
}
|
|
4661
|
-
let v =
|
|
4661
|
+
let v = Ur(e, { pathname: C });
|
|
4662
4662
|
be(
|
|
4663
4663
|
w || v != null,
|
|
4664
4664
|
`No routes matched location "${R.pathname}${R.search}${R.hash}" `
|
|
@@ -4706,7 +4706,7 @@ Please change the parent <Route path="${k}"> to <Route path="${k === "/" ? "*" :
|
|
|
4706
4706
|
) : M;
|
|
4707
4707
|
}
|
|
4708
4708
|
function Ao() {
|
|
4709
|
-
let e =
|
|
4709
|
+
let e = Uo(), t = _o(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, o = "rgba(200,200,200, 0.5)", i = { padding: "0.5rem", backgroundColor: o }, a = { padding: "2px 4px", backgroundColor: o }, l = null;
|
|
4710
4710
|
return console.error(
|
|
4711
4711
|
"Error handled by React Router default ErrorBoundary:",
|
|
4712
4712
|
e
|
|
@@ -4828,39 +4828,39 @@ function Fo(e, t = [], r = null, o = null) {
|
|
|
4828
4828
|
) : M();
|
|
4829
4829
|
}, null);
|
|
4830
4830
|
}
|
|
4831
|
-
function
|
|
4831
|
+
function Bt(e) {
|
|
4832
4832
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
4833
4833
|
}
|
|
4834
4834
|
function $o(e) {
|
|
4835
4835
|
let t = _.useContext(Me);
|
|
4836
|
-
return oe(t,
|
|
4836
|
+
return oe(t, Bt(e)), t;
|
|
4837
4837
|
}
|
|
4838
4838
|
function Wo(e) {
|
|
4839
4839
|
let t = _.useContext(bt);
|
|
4840
|
-
return oe(t,
|
|
4840
|
+
return oe(t, Bt(e)), t;
|
|
4841
4841
|
}
|
|
4842
4842
|
function qo(e) {
|
|
4843
4843
|
let t = _.useContext(ke);
|
|
4844
|
-
return oe(t,
|
|
4844
|
+
return oe(t, Bt(e)), t;
|
|
4845
4845
|
}
|
|
4846
|
-
function
|
|
4846
|
+
function Ut(e) {
|
|
4847
4847
|
let t = qo(e), r = t.matches[t.matches.length - 1];
|
|
4848
4848
|
return oe(
|
|
4849
4849
|
r.route.id,
|
|
4850
4850
|
`${e} can only be used on routes that contain a unique "id"`
|
|
4851
4851
|
), r.route.id;
|
|
4852
4852
|
}
|
|
4853
|
-
function
|
|
4854
|
-
return
|
|
4853
|
+
function Bo() {
|
|
4854
|
+
return Ut(
|
|
4855
4855
|
"useRouteId"
|
|
4856
4856
|
/* UseRouteId */
|
|
4857
4857
|
);
|
|
4858
4858
|
}
|
|
4859
|
-
function
|
|
4859
|
+
function Uo() {
|
|
4860
4860
|
let e = _.useContext(qt), t = Wo(
|
|
4861
4861
|
"useRouteError"
|
|
4862
4862
|
/* UseRouteError */
|
|
4863
|
-
), r =
|
|
4863
|
+
), r = Ut(
|
|
4864
4864
|
"useRouteError"
|
|
4865
4865
|
/* UseRouteError */
|
|
4866
4866
|
);
|
|
@@ -4870,7 +4870,7 @@ function Yo() {
|
|
|
4870
4870
|
let { router: e } = $o(
|
|
4871
4871
|
"useNavigate"
|
|
4872
4872
|
/* UseNavigateStable */
|
|
4873
|
-
), t =
|
|
4873
|
+
), t = Ut(
|
|
4874
4874
|
"useNavigate"
|
|
4875
4875
|
/* UseNavigateStable */
|
|
4876
4876
|
), r = _.useRef(!1);
|
|
@@ -5236,15 +5236,15 @@ function pa(e, t) {
|
|
|
5236
5236
|
a,
|
|
5237
5237
|
R,
|
|
5238
5238
|
{
|
|
5239
|
-
onFocus:
|
|
5240
|
-
onBlur:
|
|
5241
|
-
onMouseEnter:
|
|
5242
|
-
onMouseLeave:
|
|
5243
|
-
onTouchStart:
|
|
5239
|
+
onFocus: Be(f, A),
|
|
5240
|
+
onBlur: Be(d, C),
|
|
5241
|
+
onMouseEnter: Be(h, A),
|
|
5242
|
+
onMouseLeave: Be(w, C),
|
|
5243
|
+
onTouchStart: Be(E, A)
|
|
5244
5244
|
}
|
|
5245
5245
|
] : [!1, R, {}];
|
|
5246
5246
|
}
|
|
5247
|
-
function
|
|
5247
|
+
function Be(e, t) {
|
|
5248
5248
|
return (r) => {
|
|
5249
5249
|
e && e(r), r.defaultPrevented || t(r);
|
|
5250
5250
|
};
|
|
@@ -5254,7 +5254,7 @@ function va({
|
|
|
5254
5254
|
...t
|
|
5255
5255
|
}) {
|
|
5256
5256
|
let { router: r } = on(), o = _.useMemo(
|
|
5257
|
-
() =>
|
|
5257
|
+
() => Ur(r.routes, e, r.basename),
|
|
5258
5258
|
[r.routes, e, r.basename]
|
|
5259
5259
|
);
|
|
5260
5260
|
return o ? /* @__PURE__ */ _.createElement(ga, { page: e, matches: o, ...t }) : null;
|
|
@@ -5395,7 +5395,7 @@ var ln = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, un = _.forwardRef(
|
|
|
5395
5395
|
`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
5396
5396
|
);
|
|
5397
5397
|
}
|
|
5398
|
-
let N = Do(h, { relative: i }), [q,
|
|
5398
|
+
let N = Do(h, { relative: i }), [q, U, p] = pa(
|
|
5399
5399
|
o,
|
|
5400
5400
|
R
|
|
5401
5401
|
), g = ka(h, {
|
|
@@ -5418,7 +5418,7 @@ var ln = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, un = _.forwardRef(
|
|
|
5418
5418
|
...p,
|
|
5419
5419
|
href: M || N,
|
|
5420
5420
|
onClick: k || a ? t : y,
|
|
5421
|
-
ref: ya(A,
|
|
5421
|
+
ref: ya(A, U),
|
|
5422
5422
|
target: d,
|
|
5423
5423
|
"data-discover": !v && r === "render" ? "true" : void 0
|
|
5424
5424
|
}
|
|
@@ -5444,8 +5444,8 @@ var wa = _.forwardRef(
|
|
|
5444
5444
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
5445
5445
|
Ra(E) && f === !0, k = C.encodeLocation ? C.encodeLocation(E).pathname : E.pathname, N = R.pathname, q = A && A.navigation && A.navigation.location ? A.navigation.location.pathname : null;
|
|
5446
5446
|
r || (N = N.toLowerCase(), q = q ? q.toLowerCase() : null, k = k.toLowerCase()), q && v && (q = xe(q, v) || q);
|
|
5447
|
-
const
|
|
5448
|
-
let p = N === k || !i && N.startsWith(k) && N.charAt(
|
|
5447
|
+
const U = k !== "/" && k.endsWith("/") ? k.length - 1 : k.length;
|
|
5448
|
+
let p = N === k || !i && N.startsWith(k) && N.charAt(U) === "/", g = q != null && (q === k || !i && q.startsWith(k) && q.charAt(k.length) === "/"), y = {
|
|
5449
5449
|
isActive: p,
|
|
5450
5450
|
isPending: g,
|
|
5451
5451
|
isTransitioning: M
|
|
@@ -5492,8 +5492,8 @@ var Sa = _.forwardRef(
|
|
|
5492
5492
|
let C = Pa(), v = Ea(f, { relative: h }), M = l.toLowerCase() === "get" ? "get" : "post", k = typeof f == "string" && ln.test(f), N = (q) => {
|
|
5493
5493
|
if (d && d(q), q.defaultPrevented) return;
|
|
5494
5494
|
q.preventDefault();
|
|
5495
|
-
let
|
|
5496
|
-
C(
|
|
5495
|
+
let U = q.nativeEvent.submitter, p = U?.getAttribute("formmethod") || l;
|
|
5496
|
+
C(U || q.currentTarget, {
|
|
5497
5497
|
fetcherKey: t,
|
|
5498
5498
|
method: p,
|
|
5499
5499
|
navigate: r,
|
|
@@ -5567,7 +5567,7 @@ function Pa() {
|
|
|
5567
5567
|
let { router: e } = cn(
|
|
5568
5568
|
"useSubmit"
|
|
5569
5569
|
/* UseSubmit */
|
|
5570
|
-
), { basename: t } = _.useContext(we), r =
|
|
5570
|
+
), { basename: t } = _.useContext(we), r = Bo();
|
|
5571
5571
|
return _.useCallback(
|
|
5572
5572
|
async (o, i = {}) => {
|
|
5573
5573
|
let { action: a, method: l, encType: f, formData: d, body: h } = na(
|
|
@@ -5634,7 +5634,7 @@ function Ra(e, t = {}) {
|
|
|
5634
5634
|
[
|
|
5635
5635
|
...fa
|
|
5636
5636
|
];
|
|
5637
|
-
const fn =
|
|
5637
|
+
const fn = B.createContext({
|
|
5638
5638
|
history: [],
|
|
5639
5639
|
addToHistory: () => {
|
|
5640
5640
|
},
|
|
@@ -5645,7 +5645,7 @@ const fn = U.createContext({
|
|
|
5645
5645
|
routes: e,
|
|
5646
5646
|
children: t
|
|
5647
5647
|
}) => {
|
|
5648
|
-
const r =
|
|
5648
|
+
const r = B.useRef(["/"]), [o, i] = B.useState(["/"]), a = B.useCallback((w) => {
|
|
5649
5649
|
r.current = w, i(w);
|
|
5650
5650
|
}, []), l = (w) => {
|
|
5651
5651
|
a([...r.current, w]);
|
|
@@ -5674,18 +5674,18 @@ const fn = U.createContext({
|
|
|
5674
5674
|
}
|
|
5675
5675
|
);
|
|
5676
5676
|
}, qa = () => {
|
|
5677
|
-
const e = en(), t = Ce(), r = Nt(fn), o =
|
|
5677
|
+
const e = en(), t = Ce(), r = Nt(fn), o = B.useCallback(
|
|
5678
5678
|
(l, f = !0) => {
|
|
5679
5679
|
l !== t.pathname && e(l, { replace: !0 }), f && r.addToHistory(l);
|
|
5680
5680
|
},
|
|
5681
5681
|
[t.pathname, e, r]
|
|
5682
|
-
), i =
|
|
5682
|
+
), i = B.useCallback(
|
|
5683
5683
|
(l) => {
|
|
5684
5684
|
const f = l || 1, d = r.popFromHistory(f);
|
|
5685
5685
|
o(d, !1);
|
|
5686
5686
|
},
|
|
5687
5687
|
[o, r]
|
|
5688
|
-
), a =
|
|
5688
|
+
), a = B.useCallback(
|
|
5689
5689
|
(l) => {
|
|
5690
5690
|
r.replaceHistory(l);
|
|
5691
5691
|
},
|
|
@@ -5698,7 +5698,7 @@ const fn = U.createContext({
|
|
|
5698
5698
|
goTo: o,
|
|
5699
5699
|
replaceHistory: a
|
|
5700
5700
|
};
|
|
5701
|
-
}, dn =
|
|
5701
|
+
}, dn = B.createContext(
|
|
5702
5702
|
{
|
|
5703
5703
|
visibleItems: [],
|
|
5704
5704
|
isItemVisible: () => !1,
|
|
@@ -5707,15 +5707,15 @@ const fn = U.createContext({
|
|
|
5707
5707
|
hideItem: () => {
|
|
5708
5708
|
}
|
|
5709
5709
|
}
|
|
5710
|
-
),
|
|
5711
|
-
const t =
|
|
5710
|
+
), Ba = ({ children: e }) => {
|
|
5711
|
+
const t = B.useRef([]), [r, o] = B.useState([]), i = B.useCallback((d) => {
|
|
5712
5712
|
t.current = d, o(d);
|
|
5713
|
-
}, []), a =
|
|
5713
|
+
}, []), a = B.useCallback((d) => t.current.some((h) => h === d), []), l = B.useCallback(
|
|
5714
5714
|
(d) => {
|
|
5715
5715
|
a(d) || i([...t.current, d]);
|
|
5716
5716
|
},
|
|
5717
5717
|
[a, i]
|
|
5718
|
-
), f =
|
|
5718
|
+
), f = B.useCallback(
|
|
5719
5719
|
(d) => {
|
|
5720
5720
|
a(d) && i(
|
|
5721
5721
|
t.current.filter((w) => w !== d)
|
|
@@ -5752,9 +5752,9 @@ const fn = U.createContext({
|
|
|
5752
5752
|
onCloseDrawer: t,
|
|
5753
5753
|
drawerCloseOffset: r = 15
|
|
5754
5754
|
}) => {
|
|
5755
|
-
const { isItemVisible: o } = St(), [i, a] =
|
|
5755
|
+
const { isItemVisible: o } = St(), [i, a] = B.useState({
|
|
5756
5756
|
isDragging: !1
|
|
5757
|
-
}), l =
|
|
5757
|
+
}), l = B.useRef(null), f = B.useRef(null), d = B.useRef(null), [h, w] = B.useState(0), E = (C) => {
|
|
5758
5758
|
a(C);
|
|
5759
5759
|
}, R = (C) => {
|
|
5760
5760
|
a(C), w(0);
|
|
@@ -5775,7 +5775,7 @@ const fn = U.createContext({
|
|
|
5775
5775
|
drawerBottomDistance: h,
|
|
5776
5776
|
handleRef: d
|
|
5777
5777
|
};
|
|
5778
|
-
},
|
|
5778
|
+
}, Ua = (e) => {
|
|
5779
5779
|
const { children: t, backgroundStyles: r, contentStyles: o, handle: i } = e, {
|
|
5780
5780
|
isVisible: a,
|
|
5781
5781
|
drawerParentRef: l,
|
|
@@ -5852,7 +5852,7 @@ const fn = U.createContext({
|
|
|
5852
5852
|
}
|
|
5853
5853
|
) });
|
|
5854
5854
|
}, Ta = ({ onSubmit: e, fields: t }) => {
|
|
5855
|
-
const r =
|
|
5855
|
+
const r = B.useRef(null), o = B.useCallback(
|
|
5856
5856
|
(l) => {
|
|
5857
5857
|
var f = Object.keys(l.currentTarget.elements), d = Object.values(l.currentTarget.elements), h = [];
|
|
5858
5858
|
for (let w = 0; w < f.length; w++) {
|
|
@@ -5868,7 +5868,7 @@ const fn = U.createContext({
|
|
|
5868
5868
|
return h;
|
|
5869
5869
|
},
|
|
5870
5870
|
[e]
|
|
5871
|
-
), i =
|
|
5871
|
+
), i = B.useCallback(
|
|
5872
5872
|
(l) => {
|
|
5873
5873
|
l.preventDefault();
|
|
5874
5874
|
const f = o(l);
|
|
@@ -5884,7 +5884,7 @@ const fn = U.createContext({
|
|
|
5884
5884
|
handleFormSubmission: i
|
|
5885
5885
|
};
|
|
5886
5886
|
}, Ya = (e) => {
|
|
5887
|
-
const { fields: t, styles: r, submitButton: o } = e, { ref: i, handleFormSubmission: a, submitForm: l } = Ta(e), f =
|
|
5887
|
+
const { fields: t, styles: r, submitButton: o } = e, { ref: i, handleFormSubmission: a, submitForm: l } = Ta(e), f = B.useCallback(() => t.map((d) => ({ ...d.content, key: d.name })), [t]);
|
|
5888
5888
|
return /* @__PURE__ */ G.jsxs(
|
|
5889
5889
|
"form",
|
|
5890
5890
|
{
|
|
@@ -6124,17 +6124,17 @@ const fn = U.createContext({
|
|
|
6124
6124
|
}
|
|
6125
6125
|
) });
|
|
6126
6126
|
}, La = (e) => {
|
|
6127
|
-
const t =
|
|
6127
|
+
const t = B.useRef(null), r = B.useRef(null), [o, i] = B.useState(24), [a, l] = B.useState(24), f = B.useCallback(() => {
|
|
6128
6128
|
t.current && i(t.current.clientHeight);
|
|
6129
|
-
}, [t, t.current]), d =
|
|
6129
|
+
}, [t, t.current]), d = B.useCallback(() => {
|
|
6130
6130
|
r.current && l(r.current.clientHeight);
|
|
6131
|
-
}, [r, r.current]), h =
|
|
6131
|
+
}, [r, r.current]), h = B.useCallback(() => {
|
|
6132
6132
|
let w = 0;
|
|
6133
6133
|
return e.header?.visibility === "always" && (w = w + (o || 0)), e.footer?.visibility === "always" && (w = w + (a || 0)), w;
|
|
6134
6134
|
}, [r, r.current]);
|
|
6135
|
-
return
|
|
6135
|
+
return B.useEffect(() => {
|
|
6136
6136
|
f();
|
|
6137
|
-
}, [f, t, t.current]),
|
|
6137
|
+
}, [f, t, t.current]), B.useEffect(() => {
|
|
6138
6138
|
d();
|
|
6139
6139
|
}, [d, r, r.current]), {
|
|
6140
6140
|
header: {
|
|
@@ -6180,7 +6180,7 @@ const fn = U.createContext({
|
|
|
6180
6180
|
children: o,
|
|
6181
6181
|
allowScroll: i = !0,
|
|
6182
6182
|
floatingContent: a,
|
|
6183
|
-
|
|
6183
|
+
reserveSpaceForScrollbar: l
|
|
6184
6184
|
} = e, { footer: f, header: d } = La(e);
|
|
6185
6185
|
return /* @__PURE__ */ G.jsxs(
|
|
6186
6186
|
Da,
|
|
@@ -6214,28 +6214,32 @@ const fn = U.createContext({
|
|
|
6214
6214
|
/* @__PURE__ */ G.jsx(
|
|
6215
6215
|
"div",
|
|
6216
6216
|
{
|
|
6217
|
-
id: "page-
|
|
6217
|
+
id: "page-body",
|
|
6218
6218
|
style: {
|
|
6219
6219
|
width: "100%",
|
|
6220
|
-
|
|
6221
|
-
overflowY: i ? "auto" : "hidden",
|
|
6220
|
+
overflow: "hidden",
|
|
6222
6221
|
display: "flex",
|
|
6223
|
-
|
|
6224
|
-
boxSizing: "border-box",
|
|
6222
|
+
flex: 1,
|
|
6225
6223
|
marginTop: `-${d.height}px`,
|
|
6226
|
-
marginBottom: `-${f.height}px
|
|
6227
|
-
padding: `${d.height}px ${l}px ${f.height}px 0`
|
|
6224
|
+
marginBottom: `-${f.height}px`
|
|
6228
6225
|
},
|
|
6229
6226
|
children: /* @__PURE__ */ G.jsx(
|
|
6230
6227
|
"div",
|
|
6231
6228
|
{
|
|
6229
|
+
id: "page-content",
|
|
6232
6230
|
style: {
|
|
6233
6231
|
width: "100%",
|
|
6232
|
+
overflowX: "hidden",
|
|
6233
|
+
overflowY: i ? "auto" : "hidden",
|
|
6234
|
+
display: "flex",
|
|
6235
|
+
flexDirection: "column",
|
|
6234
6236
|
flex: 1,
|
|
6235
|
-
height: "fit-content",
|
|
6236
6237
|
minHeight: "100%",
|
|
6237
|
-
|
|
6238
|
-
|
|
6238
|
+
scrollbarGutter: l ? "stable" : void 0,
|
|
6239
|
+
paddingLeft: "24px",
|
|
6240
|
+
paddingRight: "24px",
|
|
6241
|
+
paddingTop: `${d.height}px`,
|
|
6242
|
+
paddingBottom: `${f.height}px`,
|
|
6239
6243
|
...r
|
|
6240
6244
|
},
|
|
6241
6245
|
children: o
|
|
@@ -6311,8 +6315,8 @@ const fn = U.createContext({
|
|
|
6311
6315
|
styles: r,
|
|
6312
6316
|
durationInSeconds: o = 3
|
|
6313
6317
|
}) => {
|
|
6314
|
-
const i =
|
|
6315
|
-
return
|
|
6318
|
+
const i = B.useRef(!1), { isItemVisible: a, hideItem: l } = St();
|
|
6319
|
+
return B.useEffect(() => {
|
|
6316
6320
|
const f = a(e);
|
|
6317
6321
|
i.current !== f && (i.current = f, f && setTimeout(() => l(e), o * 1e3));
|
|
6318
6322
|
}, [i, a, l]), /* @__PURE__ */ G.jsx(G.Fragment, { children: a(e) && /* @__PURE__ */ G.jsx(
|
|
@@ -6382,8 +6386,8 @@ class rs {
|
|
|
6382
6386
|
export {
|
|
6383
6387
|
Ia as Button,
|
|
6384
6388
|
Aa as Carousel,
|
|
6385
|
-
|
|
6386
|
-
|
|
6389
|
+
Ua as Drawer,
|
|
6390
|
+
Ba as FeedbackProvider,
|
|
6387
6391
|
Ya as Form,
|
|
6388
6392
|
Va as Image,
|
|
6389
6393
|
Xa as InputField,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eliseubatista99/react-scaffold-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.31",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A library which provides basic components, hooks, helpers and providers to easily build a React application and avoid repeating the usual code.",
|
|
6
6
|
"main": "dist/index.cjs.js",
|