@eliseubatista99/react-scaffold-core 0.1.72 → 0.1.74

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.
@@ -4,7 +4,7 @@ export declare class TimeHelper {
4
4
  static waitForAsyncCondition: (condition: () => Promise<boolean>) => Promise<void>;
5
5
  static differenceInMonths: (d1: Date, d2: Date) => number;
6
6
  static isDateOneAfterDateTwo: (d1: Date, d2: Date) => boolean;
7
- static isSameDate: (d1: Date, d2: Date) => boolean;
7
+ static isSameDate: (d1: Date | undefined, d2: Date | undefined) => boolean;
8
8
  static getDateInUTC: (date: string | null | undefined) => {
9
9
  day: number;
10
10
  month: number;
@@ -1,9 +1,9 @@
1
1
  type runFetchOptions = Record<string, any>;
2
2
  export declare const useFetch: () => {
3
- get: <OutputType>(endpointUrl: string, options?: runFetchOptions) => Promise<OutputType>;
4
- post: <OutputType>(endpointUrl: string, options?: runFetchOptions) => Promise<OutputType>;
5
- put: <OutputType>(endpointUrl: string, options?: runFetchOptions) => Promise<OutputType>;
6
- patch: <OutputType>(endpointUrl: string, options?: runFetchOptions) => Promise<OutputType>;
7
- delete: <OutputType>(endpointUrl: string, options?: runFetchOptions) => Promise<OutputType>;
3
+ get: <OutputType>(endpointUrl: string, options?: runFetchOptions, headers?: HeadersInit) => Promise<OutputType>;
4
+ post: <OutputType>(endpointUrl: string, options?: runFetchOptions, headers?: HeadersInit) => Promise<OutputType>;
5
+ put: <OutputType>(endpointUrl: string, options?: runFetchOptions, headers?: HeadersInit) => Promise<OutputType>;
6
+ patch: <OutputType>(endpointUrl: string, options?: runFetchOptions, headers?: HeadersInit) => Promise<OutputType>;
7
+ delete: <OutputType>(endpointUrl: string, options?: runFetchOptions, headers?: HeadersInit) => Promise<OutputType>;
8
8
  };
9
9
  export {};
package/dist/index.cjs.js CHANGED
@@ -112,7 +112,7 @@ React keys must be passed directly to JSX without using spread:
112
112
  box-sizing: border-box;
113
113
  display: flex;
114
114
  }
115
- `,aa=({styles:e,content:t,settings:r,gap:i=15})=>{const[a,s]=Y.useState(1),c=Y.useRef(null),l=Y.useRef(null);var u={dots:!1,speed:500,slidesToScroll:1,infinite:!1,variableWidth:!0,arrows:!1,rows:1,...r};const h=t.map((x,j)=>K.jsx(ia,{ref:j===0?l:void 0,styles:{paddingRight:`${i}px`,overflow:"visible",...x.styles},"data-testid":"carousel-slide-item",children:x.content})),g=()=>{if(u.slidesToShow){s(u.slidesToShow);return}const x=(c.current?.offsetWidth||i+1)-i,j=l.current?.offsetWidth||1;let M=Math.floor(x/j);M<1?M=1:M>t.length&&(M=t.length),console.debug("Slides to show > ",{container:x,slide:j,res:M}),s(M)};return Y.useEffect(()=>{g()},[c,l]),K.jsx(na,{ref:c,styles:{...e},children:h.length>0&&K.jsx(oi,{...u,slidesToShow:a,children:h})})},oa=({checked:e,onToggle:t,styles:r,checkedStyles:i,customCheckedRender:a,customUncheckedRender:s})=>{const c=e?{...r,...i}:{...r};return K.jsxs("div",{onClick:l=>{l.preventDefault(),l.stopPropagation(),t?.(!e)},style:{width:"25px",height:"25px",borderRadius:"4px",border:"1px solid #969696ff",background:e?"#000000":"#ffffff",overflow:"hidden",objectFit:"contain",alignItems:"center",justifyContent:"center",display:"flex",...c},children:[e&&a,!e&&s]})},sa=e=>Y.useEffect(e,[]),Jr=()=>{const[e,t]=Y.useState({}),[r,i]=Y.useState(!1);return Y.useEffect(()=>{const a=l=>{t({x:l.clientX,y:l.clientY})},s=l=>{i(!0)},c=l=>{i(!1)};return window.addEventListener("pointermove",a),window.addEventListener("pointerdown",s),window.addEventListener("pointerup",c),()=>{window.removeEventListener("pointermove",a),window.removeEventListener("pointerdown",s),window.removeEventListener("pointerup",c)}},[]),{pointerPosition:e,isPointerDown:r}},Zr=({ref:e,onDrag:t,onDragStart:r,onDragEnd:i})=>{const a=Y.useRef(!1),s=Y.useRef(!1),{pointerPosition:c,isPointerDown:l}=Jr(),u=Y.useRef({isDragging:!1}),h=Y.useCallback(P=>{if(!e||!e.current||!u.current)return;const p={...u.current};return p.posY=P.y,p.posX=P.x,u.current.startPosX&&u.current.posX&&(p.distanceX=u.current.startPosX-u.current.posX),u.current.startPosY&&u.current.posY&&(p.distanceY=-(u.current.startPosY-u.current.posY)),p},[]),g=Y.useCallback(P=>{P.preventDefault(),P.stopPropagation(),u.current.isDragging=!0,u.current.startPosY=P.clientY,u.current.startPosX=P.clientX;const p=h({x:P.clientX,y:P.clientY});p&&(u.current=p,r?.(p))},[h]),x=Y.useCallback(P=>{u.current.isDragging=!1;const p=h(c);p&&(i?.(p),p.startPosX=void 0,p.startPosY=void 0,u.current=p)},[h,c]),j=Y.useCallback(P=>{if(console.debug("useDrag > onPointerMove > Is Dragging >",u.current.isDragging),!u.current.isDragging)return;const p=h(c);console.debug("useDrag > onPointerMove > Drag Result >",p),p&&(t?.(p),u.current=p)},[h,c]),M=Y.useCallback(async()=>{if(!a.current){for(;!e?.current;)await new Promise(P=>setTimeout(P,300));a.current=!0,e.current.onpointerdown=g,e.current.style.touchAction="none"}},[e?.current,g]);Y.useEffect(()=>{M()},[M]),Y.useEffect(()=>{j()},[c]),Y.useEffect(()=>{l!==s.current&&(s.current=l,l||x())},[l,s.current])},la=()=>{const e=(l,u)=>{if(!u)return l;const h=new URLSearchParams;for(const x in u){const j=u[x];Array.isArray(j)?j.forEach(M=>h.append(x,String(M))):j!=null&&h.append(x,String(j))}const g=h.toString();return g?`${l}?${g}`:l},t=async(l,u,h,g)=>await(await fetch(l,{method:u,headers:h,body:g})).json();return{get:async(l,u)=>{const h=e(l,u);return t(h,"GET")},post:async(l,u)=>t(l,"POST",{"Content-Type":"application/json"},JSON.stringify(u)),put:async(l,u)=>t(l,"PUT",{"Content-Type":"application/json"},JSON.stringify(u)),patch:async(l,u)=>t(l,"PATCH",{"Content-Type":"application/json"},JSON.stringify(u)),delete:async(l,u)=>{const h=e(l,u);return t(h,"DELETE")}}};function ua(e){const[t,r]=Y.useState(!1),i=Y.useMemo(()=>new IntersectionObserver(([a])=>r(a.isIntersecting)),[]);return Y.useEffect(()=>(e?.current&&i.observe(e?.current),()=>i.disconnect()),[e,i.disconnect,i.observe]),t}const Qr={xs:0,sm:420,md:768,lg:991,xl:1200,xxl:1440},ca=e=>{const t={...Qr,...e?.breakpointConfiguration},[r,i]=Y.useState(Cr(t)),a=()=>{i(Cr(t))};return Y.useEffect(()=>(window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}),[]),Y.useMemo(()=>r,[r])},fa=(e,t)=>e<t.sm?"xs":e<t.md?"sm":e<t.lg?"md":e<t.xl?"lg":e<t.xxl?"xl":"xxl",da=(e,t)=>e<=t.sm?"mobile":e<=t.md?"tablet":"desktop",Cr=e=>{const t=window.innerWidth,r=window.innerHeight,i=fa(t,e),a=da(t,e);return{currentWidth:t,currentHeight:r,currentBreakpoint:i,currentSize:a}},ha=e=>{const t=e.translations,r=e.language,i=(s,c)=>{if(!s)return;let l=s[r];if(l)return c&&Object.keys(c).forEach(u=>{const h=c[u];l=l.replaceAll(`{{${u}}}`,`${h}`)}),l};return{t:(s,c)=>{if(t[s]){const l=i(t[s],c);return l??s}return s},getTranslation:i}};var Ue={},Pr;function pa(){if(Pr)return Ue;Pr=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.parse=c,Ue.serialize=h;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,s=(()=>{const j=function(){};return j.prototype=Object.create(null),j})();function c(j,M){const P=new s,p=j.length;if(p<2)return P;const I=M?.decode||g;let k=0;do{const F=j.indexOf("=",k);if(F===-1)break;const U=j.indexOf(";",k),B=U===-1?p:U;if(F>B){k=j.lastIndexOf(";",F-1)+1;continue}const v=l(j,k,F),b=u(j,F,v),w=j.slice(v,b);if(P[w]===void 0){let E=l(j,F+1,B),y=u(j,B,E);const d=I(j.slice(E,y));P[w]=d}k=B+1}while(k<p);return P}function l(j,M,P){do{const p=j.charCodeAt(M);if(p!==32&&p!==9)return M}while(++M<P);return P}function u(j,M,P){for(;M>P;){const p=j.charCodeAt(--M);if(p!==32&&p!==9)return M+1}return P}function h(j,M,P){const p=P?.encode||encodeURIComponent;if(!e.test(j))throw new TypeError(`argument name is invalid: ${j}`);const I=p(M);if(!t.test(I))throw new TypeError(`argument val is invalid: ${M}`);let k=j+"="+I;if(!P)return k;if(P.maxAge!==void 0){if(!Number.isInteger(P.maxAge))throw new TypeError(`option maxAge is invalid: ${P.maxAge}`);k+="; Max-Age="+P.maxAge}if(P.domain){if(!r.test(P.domain))throw new TypeError(`option domain is invalid: ${P.domain}`);k+="; Domain="+P.domain}if(P.path){if(!i.test(P.path))throw new TypeError(`option path is invalid: ${P.path}`);k+="; Path="+P.path}if(P.expires){if(!x(P.expires)||!Number.isFinite(P.expires.valueOf()))throw new TypeError(`option expires is invalid: ${P.expires}`);k+="; Expires="+P.expires.toUTCString()}if(P.httpOnly&&(k+="; HttpOnly"),P.secure&&(k+="; Secure"),P.partitioned&&(k+="; Partitioned"),P.priority)switch(typeof P.priority=="string"?P.priority.toLowerCase():void 0){case"low":k+="; Priority=Low";break;case"medium":k+="; Priority=Medium";break;case"high":k+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${P.priority}`)}if(P.sameSite)switch(typeof P.sameSite=="string"?P.sameSite.toLowerCase():P.sameSite){case!0:case"strict":k+="; SameSite=Strict";break;case"lax":k+="; SameSite=Lax";break;case"none":k+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${P.sameSite}`)}return k}function g(j){if(j.indexOf("%")===-1)return j;try{return decodeURIComponent(j)}catch{return j}}function x(j){return a.call(j)==="[object Date]"}return Ue}pa();/**
115
+ `,aa=({styles:e,content:t,settings:r,gap:i=15})=>{const[a,s]=Y.useState(1),c=Y.useRef(null),l=Y.useRef(null);var u={dots:!1,speed:500,slidesToScroll:1,infinite:!1,variableWidth:!0,arrows:!1,rows:1,...r};const h=t.map((x,j)=>K.jsx(ia,{ref:j===0?l:void 0,styles:{paddingRight:`${i}px`,overflow:"visible",...x.styles},"data-testid":"carousel-slide-item",children:x.content})),g=()=>{if(u.slidesToShow){s(u.slidesToShow);return}const x=(c.current?.offsetWidth||i+1)-i,j=l.current?.offsetWidth||1;let M=Math.floor(x/j);M<1?M=1:M>t.length&&(M=t.length),console.debug("Slides to show > ",{container:x,slide:j,res:M}),s(M)};return Y.useEffect(()=>{g()},[c,l]),K.jsx(na,{ref:c,styles:{...e},children:h.length>0&&K.jsx(oi,{...u,slidesToShow:a,children:h})})},oa=({checked:e,onToggle:t,styles:r,checkedStyles:i,customCheckedRender:a,customUncheckedRender:s})=>{const c=e?{...r,...i}:{...r};return K.jsxs("div",{onClick:l=>{l.preventDefault(),l.stopPropagation(),t?.(!e)},style:{width:"25px",height:"25px",borderRadius:"4px",border:"1px solid #969696ff",background:e?"#000000":"#ffffff",overflow:"hidden",objectFit:"contain",alignItems:"center",justifyContent:"center",display:"flex",...c},children:[e&&a,!e&&s]})},sa=e=>Y.useEffect(e,[]),Jr=()=>{const[e,t]=Y.useState({}),[r,i]=Y.useState(!1);return Y.useEffect(()=>{const a=l=>{t({x:l.clientX,y:l.clientY})},s=l=>{i(!0)},c=l=>{i(!1)};return window.addEventListener("pointermove",a),window.addEventListener("pointerdown",s),window.addEventListener("pointerup",c),()=>{window.removeEventListener("pointermove",a),window.removeEventListener("pointerdown",s),window.removeEventListener("pointerup",c)}},[]),{pointerPosition:e,isPointerDown:r}},Zr=({ref:e,onDrag:t,onDragStart:r,onDragEnd:i})=>{const a=Y.useRef(!1),s=Y.useRef(!1),{pointerPosition:c,isPointerDown:l}=Jr(),u=Y.useRef({isDragging:!1}),h=Y.useCallback(P=>{if(!e||!e.current||!u.current)return;const p={...u.current};return p.posY=P.y,p.posX=P.x,u.current.startPosX&&u.current.posX&&(p.distanceX=u.current.startPosX-u.current.posX),u.current.startPosY&&u.current.posY&&(p.distanceY=-(u.current.startPosY-u.current.posY)),p},[]),g=Y.useCallback(P=>{P.preventDefault(),P.stopPropagation(),u.current.isDragging=!0,u.current.startPosY=P.clientY,u.current.startPosX=P.clientX;const p=h({x:P.clientX,y:P.clientY});p&&(u.current=p,r?.(p))},[h]),x=Y.useCallback(P=>{u.current.isDragging=!1;const p=h(c);p&&(i?.(p),p.startPosX=void 0,p.startPosY=void 0,u.current=p)},[h,c]),j=Y.useCallback(P=>{if(console.debug("useDrag > onPointerMove > Is Dragging >",u.current.isDragging),!u.current.isDragging)return;const p=h(c);console.debug("useDrag > onPointerMove > Drag Result >",p),p&&(t?.(p),u.current=p)},[h,c]),M=Y.useCallback(async()=>{if(!a.current){for(;!e?.current;)await new Promise(P=>setTimeout(P,300));a.current=!0,e.current.onpointerdown=g,e.current.style.touchAction="none"}},[e?.current,g]);Y.useEffect(()=>{M()},[M]),Y.useEffect(()=>{j()},[c]),Y.useEffect(()=>{l!==s.current&&(s.current=l,l||x())},[l,s.current])},la=()=>{const e=(l,u)=>{if(!u)return l;const h=new URLSearchParams;for(const x in u){const j=u[x];Array.isArray(j)?j.forEach(M=>h.append(x,String(M))):j!=null&&h.append(x,String(j))}const g=h.toString();return g?`${l}?${g}`:l},t=async(l,u,h,g)=>await(await fetch(l,{method:u,headers:h,body:g})).json();return{get:async(l,u,h)=>{const g=e(l,u);return t(g,"GET",{...h})},post:async(l,u,h)=>t(l,"POST",{"Content-Type":"application/json",...h},JSON.stringify(u)),put:async(l,u,h)=>t(l,"PUT",{"Content-Type":"application/json",...h},JSON.stringify(u)),patch:async(l,u,h)=>t(l,"PATCH",{"Content-Type":"application/json",...h},JSON.stringify(u)),delete:async(l,u,h)=>{const g=e(l,u);return t(g,"DELETE",{...h})}}};function ua(e){const[t,r]=Y.useState(!1),i=Y.useMemo(()=>new IntersectionObserver(([a])=>r(a.isIntersecting)),[]);return Y.useEffect(()=>(e?.current&&i.observe(e?.current),()=>i.disconnect()),[e,i.disconnect,i.observe]),t}const Qr={xs:0,sm:420,md:768,lg:991,xl:1200,xxl:1440},ca=e=>{const t={...Qr,...e?.breakpointConfiguration},[r,i]=Y.useState(Cr(t)),a=()=>{i(Cr(t))};return Y.useEffect(()=>(window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}),[]),Y.useMemo(()=>r,[r])},fa=(e,t)=>e<t.sm?"xs":e<t.md?"sm":e<t.lg?"md":e<t.xl?"lg":e<t.xxl?"xl":"xxl",da=(e,t)=>e<=t.sm?"mobile":e<=t.md?"tablet":"desktop",Cr=e=>{const t=window.innerWidth,r=window.innerHeight,i=fa(t,e),a=da(t,e);return{currentWidth:t,currentHeight:r,currentBreakpoint:i,currentSize:a}},ha=e=>{const t=e.translations,r=e.language,i=(s,c)=>{if(!s)return;let l=s[r];if(l)return c&&Object.keys(c).forEach(u=>{const h=c[u];l=l.replaceAll(`{{${u}}}`,`${h}`)}),l};return{t:(s,c)=>{if(t[s]){const l=i(t[s],c);return l??s}return s},getTranslation:i}};var Ue={},Pr;function pa(){if(Pr)return Ue;Pr=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.parse=c,Ue.serialize=h;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,s=(()=>{const j=function(){};return j.prototype=Object.create(null),j})();function c(j,M){const P=new s,p=j.length;if(p<2)return P;const I=M?.decode||g;let k=0;do{const F=j.indexOf("=",k);if(F===-1)break;const U=j.indexOf(";",k),B=U===-1?p:U;if(F>B){k=j.lastIndexOf(";",F-1)+1;continue}const v=l(j,k,F),b=u(j,F,v),w=j.slice(v,b);if(P[w]===void 0){let E=l(j,F+1,B),y=u(j,B,E);const d=I(j.slice(E,y));P[w]=d}k=B+1}while(k<p);return P}function l(j,M,P){do{const p=j.charCodeAt(M);if(p!==32&&p!==9)return M}while(++M<P);return P}function u(j,M,P){for(;M>P;){const p=j.charCodeAt(--M);if(p!==32&&p!==9)return M+1}return P}function h(j,M,P){const p=P?.encode||encodeURIComponent;if(!e.test(j))throw new TypeError(`argument name is invalid: ${j}`);const I=p(M);if(!t.test(I))throw new TypeError(`argument val is invalid: ${M}`);let k=j+"="+I;if(!P)return k;if(P.maxAge!==void 0){if(!Number.isInteger(P.maxAge))throw new TypeError(`option maxAge is invalid: ${P.maxAge}`);k+="; Max-Age="+P.maxAge}if(P.domain){if(!r.test(P.domain))throw new TypeError(`option domain is invalid: ${P.domain}`);k+="; Domain="+P.domain}if(P.path){if(!i.test(P.path))throw new TypeError(`option path is invalid: ${P.path}`);k+="; Path="+P.path}if(P.expires){if(!x(P.expires)||!Number.isFinite(P.expires.valueOf()))throw new TypeError(`option expires is invalid: ${P.expires}`);k+="; Expires="+P.expires.toUTCString()}if(P.httpOnly&&(k+="; HttpOnly"),P.secure&&(k+="; Secure"),P.partitioned&&(k+="; Partitioned"),P.priority)switch(typeof P.priority=="string"?P.priority.toLowerCase():void 0){case"low":k+="; Priority=Low";break;case"medium":k+="; Priority=Medium";break;case"high":k+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${P.priority}`)}if(P.sameSite)switch(typeof P.sameSite=="string"?P.sameSite.toLowerCase():P.sameSite){case!0:case"strict":k+="; SameSite=Strict";break;case"lax":k+="; SameSite=Lax";break;case"none":k+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${P.sameSite}`)}return k}function g(j){if(j.indexOf("%")===-1)return j;try{return decodeURIComponent(j)}catch{return j}}function x(j){return a.call(j)==="[object Date]"}return Ue}pa();/**
116
116
  * react-router v7.6.3
117
117
  *
118
118
  * Copyright (c) Remix Software Inc.
@@ -176,7 +176,7 @@ Please change the parent <Route path="${k}"> to <Route path="${k==="/"?"*":`${k}
176
176
  box-sizing: border-box;
177
177
  position: relative;
178
178
  }
179
- `,ns=e=>{const{containerStyles:t,pageStyles:r,children:i,allowScroll:a=!0,floatingContent:s,reserveSpaceForScrollbar:c}=e,{footer:l,header:u}=ts(e);return K.jsxs(rs,{id:"page-container",styles:{...t},children:[u.visible&&K.jsx("div",{ref:u.ref,id:"page-header",style:{width:"100%",zIndex:99,position:u.visibility==="fixed"?"relative":"sticky",top:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...u.styles},children:u.content}),K.jsx("div",{id:"page-body",style:{width:"100%",overflow:"hidden",display:"flex",flex:1,marginTop:`-${u.height}px`,marginBottom:`-${l.height}px`},children:K.jsx("div",{id:"page-content",style:{width:"100%",overflowX:"hidden",overflowY:a?"auto":"hidden",display:"flex",flexDirection:"column",flex:1,minHeight:"100%",scrollbarGutter:c?"stable":void 0,paddingLeft:"0px",paddingRight:"0px",paddingTop:`${u.height}px`,paddingBottom:`${l.height}px`,...r},children:i})}),l.visible&&K.jsx("div",{ref:l.ref,id:"page-footer",style:{width:"100%",zIndex:99,position:l.visibility==="fixed"?"relative":"sticky",bottom:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...l.styles},children:l.content})]})};class Sn{static clamp=(t,r,i)=>t>i?i:t<r?r:t}class is{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 as{static getPascalCase=t=>t.replace(/\w+/g,function(r){return r[0].toUpperCase()+r.slice(1).toLowerCase()});static isEqual=(t,r,i=!0)=>i?t===r:t.toUpperCase()===r.toUpperCase()}var ft={exports:{}},os=ft.exports,Dr;function ss(){return Dr||(Dr=1,function(e,t){(function(r,i){e.exports=i()})(os,function(){var r=1e3,i=6e4,a=36e5,s="millisecond",c="second",l="minute",u="hour",h="day",g="week",x="month",j="quarter",M="year",P="date",p="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var C=["th","st","nd","rd"],_=T%100;return"["+T+(C[(_-20)%10]||C[_]||C[0])+"]"}},U=function(T,C,_){var o=String(T);return!o||o.length>=C?T:""+Array(C+1-o.length).join(_)+T},B={s:U,z:function(T){var C=-T.utcOffset(),_=Math.abs(C),o=Math.floor(_/60),H=_%60;return(C<=0?"+":"-")+U(o,2,"0")+":"+U(H,2,"0")},m:function T(C,_){if(C.date()<_.date())return-T(_,C);var o=12*(_.year()-C.year())+(_.month()-C.month()),H=C.clone().add(o,x),m=_-H<0,n=C.clone().add(o+(m?-1:1),x);return+(-(o+(_-H)/(m?H-n:n-H))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:x,y:M,w:g,d:h,D:P,h:u,m:l,s:c,ms:s,Q:j}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},v="en",b={};b[v]=F;var w="$isDayjsObject",E=function(T){return T instanceof A||!(!T||!T[w])},y=function T(C,_,o){var H;if(!C)return v;if(typeof C=="string"){var m=C.toLowerCase();b[m]&&(H=m),_&&(b[m]=_,H=m);var n=C.split("-");if(!H&&n.length>1)return T(n[0])}else{var f=C.name;b[f]=C,H=f}return!o&&H&&(v=H),H||!o&&v},d=function(T,C){if(E(T))return T.clone();var _=typeof C=="object"?C:{};return _.date=T,_.args=arguments,new A(_)},O=B;O.l=y,O.i=E,O.w=function(T,C){return d(T,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var A=function(){function T(_){this.$L=y(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[w]=!0}var C=T.prototype;return C.parse=function(_){this.$d=function(o){var H=o.date,m=o.utc;if(H===null)return new Date(NaN);if(O.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var n=H.match(I);if(n){var f=n[2]-1||0,S=(n[7]||"0").substring(0,3);return m?new Date(Date.UTC(n[1],f,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)):new Date(n[1],f,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)}}return new Date(H)}(_),this.init()},C.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},C.$utils=function(){return O},C.isValid=function(){return this.$d.toString()!==p},C.isSame=function(_,o){var H=d(_);return this.startOf(o)<=H&&H<=this.endOf(o)},C.isAfter=function(_,o){return d(_)<this.startOf(o)},C.isBefore=function(_,o){return this.endOf(o)<d(_)},C.$g=function(_,o,H){return O.u(_)?this[o]:this.set(H,_)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(_,o){var H=this,m=!!O.u(o)||o,n=O.p(_),f=function(G,X){var J=O.w(H.$u?Date.UTC(H.$y,X,G):new Date(H.$y,X,G),H);return m?J:J.endOf(h)},S=function(G,X){return O.w(H.toDate()[G].apply(H.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(X)),H)},$=this.$W,D=this.$M,z=this.$D,N="set"+(this.$u?"UTC":"");switch(n){case M:return m?f(1,0):f(31,11);case x:return m?f(1,D):f(0,D+1);case g:var W=this.$locale().weekStart||0,V=($<W?$+7:$)-W;return f(m?z-V:z+(6-V),D);case h:case P:return S(N+"Hours",0);case u:return S(N+"Minutes",1);case l:return S(N+"Seconds",2);case c:return S(N+"Milliseconds",3);default:return this.clone()}},C.endOf=function(_){return this.startOf(_,!1)},C.$set=function(_,o){var H,m=O.p(_),n="set"+(this.$u?"UTC":""),f=(H={},H[h]=n+"Date",H[P]=n+"Date",H[x]=n+"Month",H[M]=n+"FullYear",H[u]=n+"Hours",H[l]=n+"Minutes",H[c]=n+"Seconds",H[s]=n+"Milliseconds",H)[m],S=m===h?this.$D+(o-this.$W):o;if(m===x||m===M){var $=this.clone().set(P,1);$.$d[f](S),$.init(),this.$d=$.set(P,Math.min(this.$D,$.daysInMonth())).$d}else f&&this.$d[f](S);return this.init(),this},C.set=function(_,o){return this.clone().$set(_,o)},C.get=function(_){return this[O.p(_)]()},C.add=function(_,o){var H,m=this;_=Number(_);var n=O.p(o),f=function(D){var z=d(m);return O.w(z.date(z.date()+Math.round(D*_)),m)};if(n===x)return this.set(x,this.$M+_);if(n===M)return this.set(M,this.$y+_);if(n===h)return f(1);if(n===g)return f(7);var S=(H={},H[l]=i,H[u]=a,H[c]=r,H)[n]||1,$=this.$d.getTime()+_*S;return O.w($,this)},C.subtract=function(_,o){return this.add(-1*_,o)},C.format=function(_){var o=this,H=this.$locale();if(!this.isValid())return H.invalidDate||p;var m=_||"YYYY-MM-DDTHH:mm:ssZ",n=O.z(this),f=this.$H,S=this.$m,$=this.$M,D=H.weekdays,z=H.months,N=H.meridiem,W=function(X,J,te,Z){return X&&(X[J]||X(o,m))||te[J].slice(0,Z)},V=function(X){return O.s(f%12||12,X,"0")},G=N||function(X,J,te){var Z=X<12?"AM":"PM";return te?Z.toLowerCase():Z};return m.replace(k,function(X,J){return J||function(te){switch(te){case"YY":return String(o.$y).slice(-2);case"YYYY":return O.s(o.$y,4,"0");case"M":return $+1;case"MM":return O.s($+1,2,"0");case"MMM":return W(H.monthsShort,$,z,3);case"MMMM":return W(z,$);case"D":return o.$D;case"DD":return O.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return W(H.weekdaysMin,o.$W,D,2);case"ddd":return W(H.weekdaysShort,o.$W,D,3);case"dddd":return D[o.$W];case"H":return String(f);case"HH":return O.s(f,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return G(f,S,!0);case"A":return G(f,S,!1);case"m":return String(S);case"mm":return O.s(S,2,"0");case"s":return String(o.$s);case"ss":return O.s(o.$s,2,"0");case"SSS":return O.s(o.$ms,3,"0");case"Z":return n}return null}(X)||n.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(_,o,H){var m,n=this,f=O.p(o),S=d(_),$=(S.utcOffset()-this.utcOffset())*i,D=this-S,z=function(){return O.m(n,S)};switch(f){case M:m=z()/12;break;case x:m=z();break;case j:m=z()/3;break;case g:m=(D-$)/6048e5;break;case h:m=(D-$)/864e5;break;case u:m=D/a;break;case l:m=D/i;break;case c:m=D/r;break;default:m=D}return H?m:O.a(m)},C.daysInMonth=function(){return this.endOf(x).$D},C.$locale=function(){return b[this.$L]},C.locale=function(_,o){if(!_)return this.$L;var H=this.clone(),m=y(_,o,!0);return m&&(H.$L=m),H},C.clone=function(){return O.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},T}(),R=A.prototype;return d.prototype=R,[["$ms",s],["$s",c],["$m",l],["$H",u],["$W",h],["$M",x],["$y",M],["$D",P]].forEach(function(T){R[T[1]]=function(C){return this.$g(C,T[0],T[1])}}),d.extend=function(T,C){return T.$i||(T(C,A,d),T.$i=!0),d},d.locale=y,d.isDayjs=E,d.unix=function(T){return d(1e3*T)},d.en=b[v],d.Ls=b,d.p={},d})}(ft)),ft.exports}var ls=ss();const dt=Ut(ls);var ht={exports:{}},us=ht.exports,Lr;function cs(){return Lr||(Lr=1,function(e,t){(function(r,i){e.exports=i()})(us,function(){var r="minute",i=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,c,l){var u=c.prototype;l.utc=function(p){var I={date:p,utc:!0,args:arguments};return new c(I)},u.utc=function(p){var I=l(this.toDate(),{locale:this.$L,utc:!0});return p?I.add(this.utcOffset(),r):I},u.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var h=u.parse;u.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),h.call(this,p)};var g=u.init;u.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else g.call(this)};var x=u.utcOffset;u.utcOffset=function(p,I){var k=this.$utils().u;if(k(p))return this.$u?0:k(this.$offset)?x.call(this):this.$offset;if(typeof p=="string"&&(p=function(v){v===void 0&&(v="");var b=v.match(i);if(!b)return null;var w=(""+b[0]).match(a)||["-",0,0],E=w[0],y=60*+w[1]+ +w[2];return y===0?0:E==="+"?y:-y}(p),p===null))return this;var F=Math.abs(p)<=16?60*p:p;if(F===0)return this.utc(I);var U=this.clone();if(I)return U.$offset=F,U.$u=!1,U;var B=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(U=this.local().add(F+B,r)).$offset=F,U.$x.$localOffset=B,U};var j=u.format;u.format=function(p){var I=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return j.call(this,I)},u.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var M=u.toDate;u.toDate=function(p){return p==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():M.call(this)};var P=u.diff;u.diff=function(p,I,k){if(p&&this.$u===p.$u)return P.call(this,p,I,k);var F=this.local(),U=l(p).local();return P.call(F,U,I,k)}}})}(ht)),ht.exports}var fs=cs();const ds=Ut(fs);dt.extend(ds);class hs{static waitForMilliseconds=t=>new Promise(r=>setTimeout(r,t));static waitForCondition=t=>new Promise(r=>{const i=()=>{t()?r():setTimeout(i,100)};i()});static waitForAsyncCondition=t=>new Promise(r=>{const i=async()=>{await t()?r():setTimeout(i,100)};i()});static differenceInMonths=(t,r)=>{let i=0;return i=(r.getFullYear()-t.getFullYear())*12,i-=t.getMonth(),i+=r.getMonth(),i};static isDateOneAfterDateTwo=(t,r)=>t.getFullYear()>=r.getFullYear()&&t.getMonth()>=r.getMonth()?t.getDay()>r.getDay():!1;static isSameDate=(t,r)=>t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate();static getDateInUTC=t=>{try{const r=dt.utc(t),i=r.date(),a=r.month(),s=r.year(),c=r.hour(),l=r.minute(),u=r.day();return{day:i,month:a,year:s,hour:c,minute:l,weekday:u}}catch{return}};static formatDateLocalTime=(t,r)=>t?dt.utc(t).local().format(r||"DD/MM/YYYYㆍHH:mm"):"";static formatDateUTC=(t,r)=>t?dt.utc(t).format(r||"DD/MM/YYYYㆍHH:mm"):""}const ps=({percentage:e,min:t=0,max:r=100,styles:i,barStyles:a})=>{const s=Sn.clamp(e,t,r);return K.jsx("div",{style:{width:"90%",height:"30px",border:"1px solid #000000",borderRadius:"3px",background:"#ffffff",...i},children:K.jsx("div",{style:{width:`${s}%`,height:"100%",background:"#f58b00ff",...a}})})},ms=({checked:e,onClick:t,styles:r,checkedStyles:i,customCheckedRender:a,customUncheckedRender:s})=>{const c=e?{...r,...i}:{...r};return K.jsxs("div",{onClick:l=>{l.preventDefault(),l.stopPropagation(),t?.()},style:{width:"25px",height:"25px",borderRadius:"50%",border:e?"2px solid #000000":"2px solid #969696ff",background:e?"#000000":"#ffffff",overflow:"hidden",objectFit:"contain",alignItems:"center",justifyContent:"center",display:"flex",...c},children:[e&&K.jsxs(K.Fragment,{children:[!a&&K.jsx("div",{style:{borderRadius:"50%",aspectRatio:"1/1",width:"40%",background:"#ffffff"}}),a]}),!e&&s]})},vs=({src:e,width:t="22",height:r="28",stroke:i,viewBox:a="0 0 22 28",fill:s="#000000",alt:c="",onClick:l,styles:u})=>K.jsx("div",{style:{width:"fit-content",height:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",...u},onClick:()=>l?.(),children:K.jsx("svg",{width:t,height:r,viewBox:a,fill:s,stroke:i,xmlns:"http://www.w3.org/2000/svg",style:{display:"flex"},children:e})}),gs=Pe.div`
179
+ `,ns=e=>{const{containerStyles:t,pageStyles:r,children:i,allowScroll:a=!0,floatingContent:s,reserveSpaceForScrollbar:c}=e,{footer:l,header:u}=ts(e);return K.jsxs(rs,{id:"page-container",styles:{...t},children:[u.visible&&K.jsx("div",{ref:u.ref,id:"page-header",style:{width:"100%",zIndex:99,position:u.visibility==="fixed"?"relative":"sticky",top:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...u.styles},children:u.content}),K.jsx("div",{id:"page-body",style:{width:"100%",overflow:"hidden",display:"flex",flex:1,marginTop:`-${u.height}px`,marginBottom:`-${l.height}px`},children:K.jsx("div",{id:"page-content",style:{width:"100%",overflowX:"hidden",overflowY:a?"auto":"hidden",display:"flex",flexDirection:"column",flex:1,minHeight:"100%",scrollbarGutter:c?"stable":void 0,paddingLeft:"0px",paddingRight:"0px",paddingTop:`${u.height}px`,paddingBottom:`${l.height}px`,...r},children:i})}),l.visible&&K.jsx("div",{ref:l.ref,id:"page-footer",style:{width:"100%",zIndex:99,position:l.visibility==="fixed"?"relative":"sticky",bottom:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...l.styles},children:l.content})]})};class Sn{static clamp=(t,r,i)=>t>i?i:t<r?r:t}class is{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 as{static getPascalCase=t=>t.replace(/\w+/g,function(r){return r[0].toUpperCase()+r.slice(1).toLowerCase()});static isEqual=(t,r,i=!0)=>i?t===r:t.toUpperCase()===r.toUpperCase()}var ft={exports:{}},os=ft.exports,Dr;function ss(){return Dr||(Dr=1,function(e,t){(function(r,i){e.exports=i()})(os,function(){var r=1e3,i=6e4,a=36e5,s="millisecond",c="second",l="minute",u="hour",h="day",g="week",x="month",j="quarter",M="year",P="date",p="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var C=["th","st","nd","rd"],_=T%100;return"["+T+(C[(_-20)%10]||C[_]||C[0])+"]"}},U=function(T,C,_){var o=String(T);return!o||o.length>=C?T:""+Array(C+1-o.length).join(_)+T},B={s:U,z:function(T){var C=-T.utcOffset(),_=Math.abs(C),o=Math.floor(_/60),H=_%60;return(C<=0?"+":"-")+U(o,2,"0")+":"+U(H,2,"0")},m:function T(C,_){if(C.date()<_.date())return-T(_,C);var o=12*(_.year()-C.year())+(_.month()-C.month()),H=C.clone().add(o,x),m=_-H<0,n=C.clone().add(o+(m?-1:1),x);return+(-(o+(_-H)/(m?H-n:n-H))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:x,y:M,w:g,d:h,D:P,h:u,m:l,s:c,ms:s,Q:j}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},v="en",b={};b[v]=F;var w="$isDayjsObject",E=function(T){return T instanceof A||!(!T||!T[w])},y=function T(C,_,o){var H;if(!C)return v;if(typeof C=="string"){var m=C.toLowerCase();b[m]&&(H=m),_&&(b[m]=_,H=m);var n=C.split("-");if(!H&&n.length>1)return T(n[0])}else{var f=C.name;b[f]=C,H=f}return!o&&H&&(v=H),H||!o&&v},d=function(T,C){if(E(T))return T.clone();var _=typeof C=="object"?C:{};return _.date=T,_.args=arguments,new A(_)},O=B;O.l=y,O.i=E,O.w=function(T,C){return d(T,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var A=function(){function T(_){this.$L=y(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[w]=!0}var C=T.prototype;return C.parse=function(_){this.$d=function(o){var H=o.date,m=o.utc;if(H===null)return new Date(NaN);if(O.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var n=H.match(I);if(n){var f=n[2]-1||0,S=(n[7]||"0").substring(0,3);return m?new Date(Date.UTC(n[1],f,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)):new Date(n[1],f,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)}}return new Date(H)}(_),this.init()},C.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},C.$utils=function(){return O},C.isValid=function(){return this.$d.toString()!==p},C.isSame=function(_,o){var H=d(_);return this.startOf(o)<=H&&H<=this.endOf(o)},C.isAfter=function(_,o){return d(_)<this.startOf(o)},C.isBefore=function(_,o){return this.endOf(o)<d(_)},C.$g=function(_,o,H){return O.u(_)?this[o]:this.set(H,_)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(_,o){var H=this,m=!!O.u(o)||o,n=O.p(_),f=function(G,X){var J=O.w(H.$u?Date.UTC(H.$y,X,G):new Date(H.$y,X,G),H);return m?J:J.endOf(h)},S=function(G,X){return O.w(H.toDate()[G].apply(H.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(X)),H)},$=this.$W,D=this.$M,z=this.$D,N="set"+(this.$u?"UTC":"");switch(n){case M:return m?f(1,0):f(31,11);case x:return m?f(1,D):f(0,D+1);case g:var W=this.$locale().weekStart||0,V=($<W?$+7:$)-W;return f(m?z-V:z+(6-V),D);case h:case P:return S(N+"Hours",0);case u:return S(N+"Minutes",1);case l:return S(N+"Seconds",2);case c:return S(N+"Milliseconds",3);default:return this.clone()}},C.endOf=function(_){return this.startOf(_,!1)},C.$set=function(_,o){var H,m=O.p(_),n="set"+(this.$u?"UTC":""),f=(H={},H[h]=n+"Date",H[P]=n+"Date",H[x]=n+"Month",H[M]=n+"FullYear",H[u]=n+"Hours",H[l]=n+"Minutes",H[c]=n+"Seconds",H[s]=n+"Milliseconds",H)[m],S=m===h?this.$D+(o-this.$W):o;if(m===x||m===M){var $=this.clone().set(P,1);$.$d[f](S),$.init(),this.$d=$.set(P,Math.min(this.$D,$.daysInMonth())).$d}else f&&this.$d[f](S);return this.init(),this},C.set=function(_,o){return this.clone().$set(_,o)},C.get=function(_){return this[O.p(_)]()},C.add=function(_,o){var H,m=this;_=Number(_);var n=O.p(o),f=function(D){var z=d(m);return O.w(z.date(z.date()+Math.round(D*_)),m)};if(n===x)return this.set(x,this.$M+_);if(n===M)return this.set(M,this.$y+_);if(n===h)return f(1);if(n===g)return f(7);var S=(H={},H[l]=i,H[u]=a,H[c]=r,H)[n]||1,$=this.$d.getTime()+_*S;return O.w($,this)},C.subtract=function(_,o){return this.add(-1*_,o)},C.format=function(_){var o=this,H=this.$locale();if(!this.isValid())return H.invalidDate||p;var m=_||"YYYY-MM-DDTHH:mm:ssZ",n=O.z(this),f=this.$H,S=this.$m,$=this.$M,D=H.weekdays,z=H.months,N=H.meridiem,W=function(X,J,te,Z){return X&&(X[J]||X(o,m))||te[J].slice(0,Z)},V=function(X){return O.s(f%12||12,X,"0")},G=N||function(X,J,te){var Z=X<12?"AM":"PM";return te?Z.toLowerCase():Z};return m.replace(k,function(X,J){return J||function(te){switch(te){case"YY":return String(o.$y).slice(-2);case"YYYY":return O.s(o.$y,4,"0");case"M":return $+1;case"MM":return O.s($+1,2,"0");case"MMM":return W(H.monthsShort,$,z,3);case"MMMM":return W(z,$);case"D":return o.$D;case"DD":return O.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return W(H.weekdaysMin,o.$W,D,2);case"ddd":return W(H.weekdaysShort,o.$W,D,3);case"dddd":return D[o.$W];case"H":return String(f);case"HH":return O.s(f,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return G(f,S,!0);case"A":return G(f,S,!1);case"m":return String(S);case"mm":return O.s(S,2,"0");case"s":return String(o.$s);case"ss":return O.s(o.$s,2,"0");case"SSS":return O.s(o.$ms,3,"0");case"Z":return n}return null}(X)||n.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(_,o,H){var m,n=this,f=O.p(o),S=d(_),$=(S.utcOffset()-this.utcOffset())*i,D=this-S,z=function(){return O.m(n,S)};switch(f){case M:m=z()/12;break;case x:m=z();break;case j:m=z()/3;break;case g:m=(D-$)/6048e5;break;case h:m=(D-$)/864e5;break;case u:m=D/a;break;case l:m=D/i;break;case c:m=D/r;break;default:m=D}return H?m:O.a(m)},C.daysInMonth=function(){return this.endOf(x).$D},C.$locale=function(){return b[this.$L]},C.locale=function(_,o){if(!_)return this.$L;var H=this.clone(),m=y(_,o,!0);return m&&(H.$L=m),H},C.clone=function(){return O.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},T}(),R=A.prototype;return d.prototype=R,[["$ms",s],["$s",c],["$m",l],["$H",u],["$W",h],["$M",x],["$y",M],["$D",P]].forEach(function(T){R[T[1]]=function(C){return this.$g(C,T[0],T[1])}}),d.extend=function(T,C){return T.$i||(T(C,A,d),T.$i=!0),d},d.locale=y,d.isDayjs=E,d.unix=function(T){return d(1e3*T)},d.en=b[v],d.Ls=b,d.p={},d})}(ft)),ft.exports}var ls=ss();const dt=Ut(ls);var ht={exports:{}},us=ht.exports,Lr;function cs(){return Lr||(Lr=1,function(e,t){(function(r,i){e.exports=i()})(us,function(){var r="minute",i=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,c,l){var u=c.prototype;l.utc=function(p){var I={date:p,utc:!0,args:arguments};return new c(I)},u.utc=function(p){var I=l(this.toDate(),{locale:this.$L,utc:!0});return p?I.add(this.utcOffset(),r):I},u.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var h=u.parse;u.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),h.call(this,p)};var g=u.init;u.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else g.call(this)};var x=u.utcOffset;u.utcOffset=function(p,I){var k=this.$utils().u;if(k(p))return this.$u?0:k(this.$offset)?x.call(this):this.$offset;if(typeof p=="string"&&(p=function(v){v===void 0&&(v="");var b=v.match(i);if(!b)return null;var w=(""+b[0]).match(a)||["-",0,0],E=w[0],y=60*+w[1]+ +w[2];return y===0?0:E==="+"?y:-y}(p),p===null))return this;var F=Math.abs(p)<=16?60*p:p;if(F===0)return this.utc(I);var U=this.clone();if(I)return U.$offset=F,U.$u=!1,U;var B=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(U=this.local().add(F+B,r)).$offset=F,U.$x.$localOffset=B,U};var j=u.format;u.format=function(p){var I=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return j.call(this,I)},u.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var M=u.toDate;u.toDate=function(p){return p==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():M.call(this)};var P=u.diff;u.diff=function(p,I,k){if(p&&this.$u===p.$u)return P.call(this,p,I,k);var F=this.local(),U=l(p).local();return P.call(F,U,I,k)}}})}(ht)),ht.exports}var fs=cs();const ds=Ut(fs);dt.extend(ds);class hs{static waitForMilliseconds=t=>new Promise(r=>setTimeout(r,t));static waitForCondition=t=>new Promise(r=>{const i=()=>{t()?r():setTimeout(i,100)};i()});static waitForAsyncCondition=t=>new Promise(r=>{const i=async()=>{await t()?r():setTimeout(i,100)};i()});static differenceInMonths=(t,r)=>{let i=0;return i=(r.getFullYear()-t.getFullYear())*12,i-=t.getMonth(),i+=r.getMonth(),i};static isDateOneAfterDateTwo=(t,r)=>t.getFullYear()>=r.getFullYear()&&t.getMonth()>=r.getMonth()?t.getDay()>r.getDay():!1;static isSameDate=(t,r)=>t?.getFullYear()===r?.getFullYear()&&t?.getMonth()===r?.getMonth()&&t?.getDate()===r?.getDate();static getDateInUTC=t=>{try{const r=dt.utc(t),i=r.date(),a=r.month(),s=r.year(),c=r.hour(),l=r.minute(),u=r.day();return{day:i,month:a,year:s,hour:c,minute:l,weekday:u}}catch{return}};static formatDateLocalTime=(t,r)=>t?dt.utc(t).local().format(r||"DD/MM/YYYYㆍHH:mm"):"";static formatDateUTC=(t,r)=>t?dt.utc(t).format(r||"DD/MM/YYYYㆍHH:mm"):""}const ps=({percentage:e,min:t=0,max:r=100,styles:i,barStyles:a})=>{const s=Sn.clamp(e,t,r);return K.jsx("div",{style:{width:"90%",height:"30px",border:"1px solid #000000",borderRadius:"3px",background:"#ffffff",...i},children:K.jsx("div",{style:{width:`${s}%`,height:"100%",background:"#f58b00ff",...a}})})},ms=({checked:e,onClick:t,styles:r,checkedStyles:i,customCheckedRender:a,customUncheckedRender:s})=>{const c=e?{...r,...i}:{...r};return K.jsxs("div",{onClick:l=>{l.preventDefault(),l.stopPropagation(),t?.()},style:{width:"25px",height:"25px",borderRadius:"50%",border:e?"2px solid #000000":"2px solid #969696ff",background:e?"#000000":"#ffffff",overflow:"hidden",objectFit:"contain",alignItems:"center",justifyContent:"center",display:"flex",...c},children:[e&&K.jsxs(K.Fragment,{children:[!a&&K.jsx("div",{style:{borderRadius:"50%",aspectRatio:"1/1",width:"40%",background:"#ffffff"}}),a]}),!e&&s]})},vs=({src:e,width:t="22",height:r="28",stroke:i,viewBox:a="0 0 22 28",fill:s="#000000",alt:c="",onClick:l,styles:u})=>K.jsx("div",{style:{width:"fit-content",height:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",...u},onClick:()=>l?.(),children:K.jsx("svg",{width:t,height:r,viewBox:a,fill:s,stroke:i,xmlns:"http://www.w3.org/2000/svg",style:{display:"flex"},children:e})}),gs=Pe.div`
180
180
  display: flex;
181
181
  flex-direction: column;
182
182
  font-family: inherit;
package/dist/index.es.js CHANGED
@@ -4001,31 +4001,31 @@ const na = Pe.div`
4001
4001
  body: g
4002
4002
  })).json();
4003
4003
  return {
4004
- get: async (l, u) => {
4005
- const h = e(l, u);
4006
- return t(h, "GET");
4004
+ get: async (l, u, h) => {
4005
+ const g = e(l, u);
4006
+ return t(g, "GET", { ...h });
4007
4007
  },
4008
- post: async (l, u) => t(
4008
+ post: async (l, u, h) => t(
4009
4009
  l,
4010
4010
  "POST",
4011
- { "Content-Type": "application/json" },
4011
+ { "Content-Type": "application/json", ...h },
4012
4012
  JSON.stringify(u)
4013
4013
  ),
4014
- put: async (l, u) => t(
4014
+ put: async (l, u, h) => t(
4015
4015
  l,
4016
4016
  "PUT",
4017
- { "Content-Type": "application/json" },
4017
+ { "Content-Type": "application/json", ...h },
4018
4018
  JSON.stringify(u)
4019
4019
  ),
4020
- patch: async (l, u) => t(
4020
+ patch: async (l, u, h) => t(
4021
4021
  l,
4022
4022
  "PATCH",
4023
- { "Content-Type": "application/json" },
4023
+ { "Content-Type": "application/json", ...h },
4024
4024
  JSON.stringify(u)
4025
4025
  ),
4026
- delete: async (l, u) => {
4027
- const h = e(l, u);
4028
- return t(h, "DELETE");
4026
+ delete: async (l, u, h) => {
4027
+ const g = e(l, u);
4028
+ return t(g, "DELETE", { ...h });
4029
4029
  }
4030
4030
  };
4031
4031
  };
@@ -6904,7 +6904,7 @@ class ws {
6904
6904
  return i = (r.getFullYear() - t.getFullYear()) * 12, i -= t.getMonth(), i += r.getMonth(), i;
6905
6905
  };
6906
6906
  static isDateOneAfterDateTwo = (t, r) => t.getFullYear() >= r.getFullYear() && t.getMonth() >= r.getMonth() ? t.getDay() > r.getDay() : !1;
6907
- static isSameDate = (t, r) => t.getFullYear() === r.getFullYear() && t.getMonth() === r.getMonth() && t.getDate() === r.getDate();
6907
+ static isSameDate = (t, r) => t?.getFullYear() === r?.getFullYear() && t?.getMonth() === r?.getMonth() && t?.getDate() === r?.getDate();
6908
6908
  static getDateInUTC = (t) => {
6909
6909
  try {
6910
6910
  const r = dt.utc(t), i = r.date(), a = r.month(), s = r.year(), c = r.hour(), l = r.minute(), u = r.day();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eliseubatista99/react-scaffold-core",
3
- "version": "0.1.72",
3
+ "version": "0.1.74",
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",