@eliseubatista99/react-scaffold-core 1.1.19 → 1.1.21

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,10 +4,16 @@ export interface FormSubmitButton {
4
4
  styles?: React.CSSProperties;
5
5
  content: React.ReactNode;
6
6
  }
7
+ export interface FormSubmitSection {
8
+ renderBeforeSubmitButton?: React.ReactNode;
9
+ submitButton: FormSubmitButton;
10
+ renderAfterSubmitButton?: React.ReactNode;
11
+ styles?: React.CSSProperties;
12
+ }
7
13
  export interface FormProps {
8
14
  children?: React.ReactNode;
9
15
  configurations?: FormFieldConfiguration[];
10
- submitButton: FormSubmitButton;
16
+ submitSection: FormSubmitSection;
11
17
  onMount?: (data: FormFieldOutputData[], hasErrors?: boolean) => Promise<void>;
12
18
  onPreSubmit?: () => void;
13
19
  onSubmit: (data: FormFieldOutputData[], hasErrors?: boolean) => Promise<void>;
@@ -19,10 +19,12 @@ declare const meta: {
19
19
  childrenStyles: {
20
20
  gap: string;
21
21
  };
22
- submitButton: {
23
- content: import("react/jsx-runtime").JSX.Element;
24
- styles: {
25
- marginTop: string;
22
+ submitSection: {
23
+ submitButton: {
24
+ content: import("react/jsx-runtime").JSX.Element;
25
+ styles: {
26
+ marginTop: string;
27
+ };
26
28
  };
27
29
  };
28
30
  onSubmit: (_: import('../../..').FormFieldOutputData[]) => Promise<void>;
@@ -36,3 +38,4 @@ declare const meta: {
36
38
  export default meta;
37
39
  type Story = StoryObj<typeof meta>;
38
40
  export declare const Default: Story;
41
+ export declare const WithAnotherButton: Story;
package/dist/index.cjs.js CHANGED
@@ -125,7 +125,7 @@ React keys must be passed directly to JSX without using spread:
125
125
 
126
126
  Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let y=ke(),E;if(t){let S=typeof t=="string"?Me(t):t;ae(d==="/"||S.pathname?.startsWith(d),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${S.pathname}" was given in the \`location\` prop.`),E=S}else E=y;let M=E.pathname||"/",k=M;if(d!=="/"){let S=d.replace(/^\//,"").split("/");k="/"+M.replace(/^\//,"").split("/").slice(S.length).join("/")}let p=rn(e,{pathname:k});ve(g||p!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),ve(p==null||p[p.length-1].route.element!==void 0||p[p.length-1].route.Component!==void 0||p[p.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let R=Ja(p&&p.map(S=>Object.assign({},S,{params:Object.assign({},u,S.params),pathname:Se([d,a.encodeLocation?a.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?d:Se([d,a.encodeLocation?a.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),s,r,i);return t&&R?$.createElement(Je.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...E},navigationType:"POP"}},R):R}function qa(){let e=ro(),t=Na(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i},s={padding:"2px 4px",backgroundColor:i},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=$.createElement($.Fragment,null,$.createElement("p",null,"💿 Hey developer 👋"),$.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",$.createElement("code",{style:s},"ErrorBoundary")," or"," ",$.createElement("code",{style:s},"errorElement")," prop on your route.")),$.createElement($.Fragment,null,$.createElement("h2",null,"Unexpected Application Error!"),$.createElement("h3",{style:{fontStyle:"italic"}},t),r?$.createElement("pre",{style:a},r):null,c)}var Xa=$.createElement(qa,null),Ga=class extends $.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?$.createElement(Oe.Provider,{value:this.props.routeContext},$.createElement(qt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Ka({routeContext:e,match:t,children:r}){let i=$.useContext(De);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),$.createElement(Oe.Provider,{value:e},r)}function Ja(e,t=[],r=null,i=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,s=r?.errors;if(s!=null){let l=a.findIndex(d=>d.route.id&&s?.[d.route.id]!==void 0);ae(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,l+1))}let c=!1,u=-1;if(r)for(let l=0;l<a.length;l++){let d=a[l];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(u=l),d.route.id){let{loaderData:g,errors:y}=r,E=d.route.loader&&!g.hasOwnProperty(d.route.id)&&(!y||y[d.route.id]===void 0);if(d.route.lazy||E){c=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((l,d,g)=>{let y,E=!1,M=null,k=null;r&&(y=s&&d.route.id?s[d.route.id]:void 0,M=d.route.errorElement||Xa,c&&(u<0&&g===0?(hn("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,k=null):u===g&&(E=!0,k=d.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,g+1)),R=()=>{let S;return y?S=M:E?S=k:d.route.Component?S=$.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=l,$.createElement(Ka,{match:d,routeContext:{outlet:l,matches:p,isDataRoute:r!=null},children:S})};return r&&(d.route.ErrorBoundary||d.route.errorElement||g===0)?$.createElement(Ga,{location:r.location,revalidation:r.revalidation,component:M,error:y,children:R(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):R()},null)}function Gt(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Za(e){let t=$.useContext(De);return ae(t,Gt(e)),t}function Qa(e){let t=$.useContext(Ot);return ae(t,Gt(e)),t}function eo(e){let t=$.useContext(Oe);return ae(t,Gt(e)),t}function Kt(e){let t=eo(e),r=t.matches[t.matches.length-1];return ae(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function to(){return Kt("useRouteId")}function ro(){let e=$.useContext(qt),t=Qa("useRouteError"),r=Kt("useRouteError");return e!==void 0?e:t.errors?.[r]}function no(){let{router:e}=Za("useNavigate"),t=Kt("useNavigate"),r=$.useRef(!1);return fn(()=>{r.current=!0}),$.useCallback(async(a,s={})=>{ve(r.current,cn),r.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var jr={};function hn(e,t,r){!t&&!jr[e]&&(jr[e]=!0,ve(!1,r))}$.memo(io);function io({routes:e,future:t,state:r}){return dn(e,void 0,r,t)}function pn(e){ae(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ao({basename:e="/",children:t=null,location:r,navigationType:i="POP",navigator:a,static:s=!1}){ae(!Ze(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),u=$.useMemo(()=>({basename:c,navigator:a,static:s,future:{}}),[c,a,s]);typeof r=="string"&&(r=Me(r));let{pathname:l="/",search:d="",hash:g="",state:y=null,key:E="default"}=r,M=$.useMemo(()=>{let k=xe(l,c);return k==null?null:{location:{pathname:k,search:d,hash:g,state:y,key:E},navigationType:i}},[c,l,d,g,y,E,i]);return ve(M!=null,`<Router basename="${c}"> is not able to match the URL "${l}${d}${g}" because it does not start with the basename, so the <Router> won't render anything.`),M==null?null:$.createElement(we.Provider,{value:u},$.createElement(Je.Provider,{children:t,value:M}))}function oo({children:e,location:t}){return Ba(Ft(e),t)}function Ft(e,t=[]){let r=[];return $.Children.forEach(e,(i,a)=>{if(!$.isValidElement(i))return;let s=[...t,a];if(i.type===$.Fragment){r.push.apply(r,Ft(i.props.children,s));return}ae(i.type===pn,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ae(!i.props.index||!i.props.children,"An index route cannot have child routes.");let c={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=Ft(i.props.children,s)),r.push(c)}),r}var ut="get",ct="application/x-www-form-urlencoded";function kt(e){return e!=null&&typeof e.tagName=="string"}function so(e){return kt(e)&&e.tagName.toLowerCase()==="button"}function lo(e){return kt(e)&&e.tagName.toLowerCase()==="form"}function uo(e){return kt(e)&&e.tagName.toLowerCase()==="input"}function co(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fo(e,t){return e.button===0&&(!t||t==="_self")&&!co(e)}function Wt(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let i=e[r];return t.concat(Array.isArray(i)?i.map(a=>[r,a]):[[r,i]])},[]))}function ho(e,t){let r=Wt(e);return t&&t.forEach((i,a)=>{r.has(a)||t.getAll(a).forEach(s=>{r.append(a,s)})}),r}var at=null;function po(){if(at===null)try{new FormData(document.createElement("form"),0),at=!1}catch{at=!0}return at}var mo=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $t(e){return e!=null&&!mo.has(e)?(ve(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ct}"`),null):e}function vo(e,t){let r,i,a,s,c;if(lo(e)){let u=e.getAttribute("action");i=u?xe(u,t):null,r=e.getAttribute("method")||ut,a=$t(e.getAttribute("enctype"))||ct,s=new FormData(e)}else if(so(e)||uo(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||u.getAttribute("action");if(i=l?xe(l,t):null,r=e.getAttribute("formmethod")||u.getAttribute("method")||ut,a=$t(e.getAttribute("formenctype"))||$t(u.getAttribute("enctype"))||ct,s=new FormData(u,e),!po()){let{name:d,type:g,value:y}=e;if(g==="image"){let E=d?`${d}.`:"";s.append(`${E}x`,"0"),s.append(`${E}y`,"0")}else d&&s.append(d,y)}}else{if(kt(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ut,i=null,a=ct,c=e}return s&&a==="text/plain"&&(c=s,s=void 0),{action:i,method:r.toLowerCase(),encType:a,formData:s,body:c}}function Jt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function go(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function yo(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function bo(e,t,r){let i=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let c=await go(s,r);return c.links?c.links():[]}return[]}));return Oo(i.flat(1).filter(yo).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function Lr(e,t,r,i,a,s){let c=(l,d)=>r[d]?l.route.id!==r[d].route.id:!0,u=(l,d)=>r[d].pathname!==l.pathname||r[d].route.path?.endsWith("*")&&r[d].params["*"]!==l.params["*"];return s==="assets"?t.filter((l,d)=>c(l,d)||u(l,d)):s==="data"?t.filter((l,d)=>{let g=i.routes[l.route.id];if(!g||!g.hasLoader)return!1;if(c(l,d)||u(l,d))return!0;if(l.route.shouldRevalidate){let y=l.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function wo(e,t,{includeHydrateFallback:r}={}){return So(e.map(i=>{let a=t.routes[i.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),r&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function So(e){return[...new Set(e)]}function xo(e){let t={},r=Object.keys(e).sort();for(let i of r)t[i]=e[i];return t}function Oo(e,t){let r=new Set;return new Set(t),e.reduce((i,a)=>{let s=JSON.stringify(xo(a));return r.has(s)||(r.add(s),i.push({key:s,link:a})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var ko=new Set([100,101,204,205]);function Co(e,t){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname="_root.data":t&&xe(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function mn(){let e=$.useContext(De);return Jt(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Po(){let e=$.useContext(Ot);return Jt(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Zt=$.createContext(void 0);Zt.displayName="FrameworkContext";function vn(){let e=$.useContext(Zt);return Jt(e,"You must render this element inside a <HydratedRouter> element"),e}function Eo(e,t){let r=$.useContext(Zt),[i,a]=$.useState(!1),[s,c]=$.useState(!1),{onFocus:u,onBlur:l,onMouseEnter:d,onMouseLeave:g,onTouchStart:y}=t,E=$.useRef(null);$.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let p=S=>{S.forEach(A=>{c(A.isIntersecting)})},R=new IntersectionObserver(p,{threshold:.5});return E.current&&R.observe(E.current),()=>{R.disconnect()}}},[e]),$.useEffect(()=>{if(i){let p=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(p)}}},[i]);let M=()=>{a(!0)},k=()=>{a(!1),c(!1)};return r?e!=="intent"?[s,E,{}]:[s,E,{onFocus:Ue(u,M),onBlur:Ue(l,k),onMouseEnter:Ue(d,M),onMouseLeave:Ue(g,k),onTouchStart:Ue(y,M)}]:[!1,E,{}]}function Ue(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Ro({page:e,...t}){let{router:r}=mn(),i=$.useMemo(()=>rn(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?$.createElement(_o,{page:e,matches:i,...t}):null}function To(e){let{manifest:t,routeModules:r}=vn(),[i,a]=$.useState([]);return $.useEffect(()=>{let s=!1;return bo(e,t,r).then(c=>{s||a(c)}),()=>{s=!0}},[e,t,r]),i}function _o({page:e,matches:t,...r}){let i=ke(),{manifest:a,routeModules:s}=vn(),{basename:c}=mn(),{loaderData:u,matches:l}=Po(),d=$.useMemo(()=>Lr(e,t,l,a,i,"data"),[e,t,l,a,i]),g=$.useMemo(()=>Lr(e,t,l,a,i,"assets"),[e,t,l,a,i]),y=$.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let k=new Set,p=!1;if(t.forEach(S=>{let A=a.routes[S.route.id];!A||!A.hasLoader||(!d.some(W=>W.route.id===S.route.id)&&S.route.id in u&&s[S.route.id]?.shouldRevalidate||A.hasClientLoader?p=!0:k.add(S.route.id))}),k.size===0)return[];let R=Co(e,c);return p&&k.size>0&&R.searchParams.set("_routes",t.filter(S=>k.has(S.route.id)).map(S=>S.route.id).join(",")),[R.pathname+R.search]},[c,u,i,a,d,t,e,s]),E=$.useMemo(()=>wo(g,a),[g,a]),M=To(g);return $.createElement($.Fragment,null,y.map(k=>$.createElement("link",{key:k,rel:"prefetch",as:"fetch",href:k,...r})),E.map(k=>$.createElement("link",{key:k,rel:"modulepreload",href:k,...r})),M.map(({key:k,link:p})=>$.createElement("link",{key:k,...p})))}function jo(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var gn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{gn&&(window.__reactRouterVersion="7.6.3")}catch{}function Lo({basename:e,children:t,window:r}){let i=$.useRef();i.current==null&&(i.current=ga({window:r,v5Compat:!0}));let a=i.current,[s,c]=$.useState({action:a.action,location:a.location}),u=$.useCallback(l=>{$.startTransition(()=>c(l))},[c]);return $.useLayoutEffect(()=>a.listen(u),[a,u]),$.createElement(ao,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var yn=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bn=$.forwardRef(function({onClick:t,discover:r="render",prefetch:i="none",relative:a,reloadDocument:s,replace:c,state:u,target:l,to:d,preventScrollReset:g,viewTransition:y,...E},M){let{basename:k}=$.useContext(we),p=typeof d=="string"&&yn.test(d),R,S=!1;if(typeof d=="string"&&p&&(R=d,gn))try{let b=new URL(window.location.href),h=d.startsWith("//")?new URL(b.protocol+d):new URL(d),C=xe(h.pathname,k);h.origin===b.origin&&C!=null?d=C+h.search+h.hash:S=!0}catch{ve(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let A=Ua(d,{relative:a}),[W,F,m]=Eo(i,E),w=Io(d,{replace:c,state:u,target:l,preventScrollReset:g,relative:a,viewTransition:y});function x(b){t&&t(b),b.defaultPrevented||w(b)}let T=$.createElement("a",{...E,...m,href:R||A,onClick:S||s?t:x,ref:jo(M,F),target:l,"data-discover":!p&&r==="render"?"true":void 0});return W&&!p?$.createElement($.Fragment,null,T,$.createElement(Ro,{page:A})):T});bn.displayName="Link";var Mo=$.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:i="",end:a=!1,style:s,to:c,viewTransition:u,children:l,...d},g){let y=Qe(c,{relative:d.relative}),E=ke(),M=$.useContext(Ot),{navigator:k,basename:p}=$.useContext(we),R=M!=null&&Wo(y)&&u===!0,S=k.encodeLocation?k.encodeLocation(y).pathname:y.pathname,A=E.pathname,W=M&&M.navigation&&M.navigation.location?M.navigation.location.pathname:null;r||(A=A.toLowerCase(),W=W?W.toLowerCase():null,S=S.toLowerCase()),W&&p&&(W=xe(W,p)||W);const F=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let m=A===S||!a&&A.startsWith(S)&&A.charAt(F)==="/",w=W!=null&&(W===S||!a&&W.startsWith(S)&&W.charAt(S.length)==="/"),x={isActive:m,isPending:w,isTransitioning:R},T=m?t:void 0,b;typeof i=="function"?b=i(x):b=[i,m?"active":null,w?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let h=typeof s=="function"?s(x):s;return $.createElement(bn,{...d,"aria-current":T,className:b,ref:g,style:h,to:c,viewTransition:u},typeof l=="function"?l(x):l)});Mo.displayName="NavLink";var Do=$.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:i,replace:a,state:s,method:c=ut,action:u,onSubmit:l,relative:d,preventScrollReset:g,viewTransition:y,...E},M)=>{let k=No(),p=Fo(u,{relative:d}),R=c.toLowerCase()==="get"?"get":"post",S=typeof u=="string"&&yn.test(u),A=W=>{if(l&&l(W),W.defaultPrevented)return;W.preventDefault();let F=W.nativeEvent.submitter,m=F?.getAttribute("formmethod")||c;k(F||W.currentTarget,{fetcherKey:t,method:m,navigate:r,replace:a,state:s,relative:d,preventScrollReset:g,viewTransition:y})};return $.createElement("form",{ref:M,method:R,action:p,onSubmit:i?l:A,...E,"data-discover":!S&&e==="render"?"true":void 0})});Do.displayName="Form";function $o(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wn(e){let t=$.useContext(De);return ae(t,$o(e)),t}function Io(e,{target:t,replace:r,state:i,preventScrollReset:a,relative:s,viewTransition:c}={}){let u=Xt(),l=ke(),d=Qe(e,{relative:s});return $.useCallback(g=>{if(fo(g,t)){g.preventDefault();let y=r!==void 0?r:Xe(l)===Xe(d);u(e,{replace:y,state:i,preventScrollReset:a,relative:s,viewTransition:c})}},[l,u,d,r,i,t,e,a,s,c])}function Ao(e){ve(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=$.useRef(Wt(e)),r=$.useRef(!1),i=ke(),a=$.useMemo(()=>ho(i.search,r.current?null:t.current),[i.search]),s=Xt(),c=$.useCallback((u,l)=>{const d=Wt(typeof u=="function"?u(a):u);r.current=!0,s("?"+d,l)},[s,a]);return[a,c]}var Ho=0,zo=()=>`__${String(++Ho)}__`;function No(){let{router:e}=wn("useSubmit"),{basename:t}=$.useContext(we),r=to();return $.useCallback(async(i,a={})=>{let{action:s,method:c,encType:u,formData:l,body:d}=vo(i,t);if(a.navigate===!1){let g=a.fetcherKey||zo();await e.fetch(g,r,a.action||s,{preventScrollReset:a.preventScrollReset,formData:l,body:d,formMethod:a.method||c,formEncType:a.encType||u,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:l,body:d,formMethod:a.method||c,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function Fo(e,{relative:t}={}){let{basename:r}=$.useContext(we),i=$.useContext(Oe);ae(i,"useFormAction must be used inside a RouteContext");let[a]=i.matches.slice(-1),s={...Qe(e||".",{relative:t})},c=ke();if(e==null){s.search=c.search;let u=new URLSearchParams(s.search),l=u.getAll("index");if(l.some(g=>g==="")){u.delete("index"),l.filter(y=>y).forEach(y=>u.append("index",y));let g=u.toString();s.search=g?`?${g}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:Se([r,s.pathname])),Xe(s)}function Wo(e,t={}){let r=$.useContext(un);ae(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=wn("useViewTransitionState"),a=Qe(e,{relative:t.relative});if(!r.isTransitioning)return!1;let s=xe(r.currentLocation.pathname,i)||r.currentLocation.pathname,c=xe(r.nextLocation.pathname,i)||r.nextLocation.pathname;return gt(a.pathname,c)!=null||gt(a.pathname,s)!=null}[...ko];const Sn=U.createContext({history:[],addToHistory:()=>{},popFromHistory:()=>"",replaceHistory:()=>{}}),Vo=()=>{const[e,t]=Ao(),r=U.useMemo(()=>Object.fromEntries(e.entries()),[e]),i=U.useCallback(g=>{const y={};return g.forEach(E=>{y[E]=e.get(E)}),y},[e]),a=U.useCallback(g=>{const y=e.get(g);return y==null||y==null,y},[e]),s=U.useCallback(g=>{const y=new URLSearchParams(e);y.delete(g),t(y)},[e,t]),c=U.useCallback(g=>{const y=new URLSearchParams(e);g.forEach(E=>{y.delete(String(E))}),t(y)},[e,t]),u=U.useCallback(()=>{t({})},[e,t]),l=U.useCallback((g,y)=>{t(E=>{const M=new URLSearchParams(E);return y==null?M.delete(g):M.set(g,String(y)),M})},[t]),d=U.useCallback(g=>{t(y=>{const E=new URLSearchParams(y);return Object.entries(g).forEach(([M,k])=>{k==null?E.delete(M):E.set(M,String(k))}),E})},[t]);return{getAll:()=>r,get:a,getMany:i,set:l,setMany:d,remove:s,removeMany:c,removeAll:u}},Uo=()=>{const e=Xt(),t=ke(),r=Vo(),i=U.useContext(Sn),a=l=>{const d=new URL(l.path,"http://dummy-base");return l.params&&Object.entries(l.params).forEach(([g,y])=>{y!=null&&d.searchParams.set(g,String(y))}),d.pathname+d.search},s=U.useCallback(l=>{const d=a(l);l.addToHistory!==!1?(e(d),i.addToHistory(d)):(e(d,{replace:!0}),i.history.length>0&&(i.popFromHistory(1),i.addToHistory(d)))},[e,i.history]),c=U.useCallback(l=>{let d=l||1;i.history.length<d&&(d=i.history.length),e(-d),i.popFromHistory(d)},[e]),u=U.useCallback(()=>{i.replaceHistory([])},[e]);return{currentPath:t.pathname,history:i.history,searchParams:r,goBack:c,goTo:s,clearHistory:u}},Yo=({isReady:e=!0,routes:t,children:r})=>{const i=U.useRef([]),[a,s]=U.useState([]),c=U.useCallback(y=>{i.current=y,s(y)},[]),u=(y,E=!1)=>{let M=[...i.current];E&&(M=M.slice(0,M.length-1)),M=[...M,y],c(M)},l=y=>{let E="",M=[];return i.current.length===0||i.current.length<y?"/":(M=i.current.slice(0,i.current.length-y),E=M[M.length-1],c(M),E)},d=y=>{c(y)},g=t.map(y=>X.jsx(pn,{path:y.path,element:y.render}));return X.jsx(Sn.Provider,{value:{history:a,addToHistory:u,popFromHistory:l,replaceHistory:d},children:X.jsx(Lo,{children:X.jsxs(X.Fragment,{children:[e&&X.jsx(oo,{children:g}),r]})})})},xn=U.createContext({visibleItems:[],isItemVisible:()=>!1,showItem:()=>{},hideItem:()=>{}}),Bo=({children:e})=>{const t=U.useRef([]),[r,i]=U.useState([]),a=U.useCallback(l=>{t.current=l,i(l)},[]),s=U.useCallback(l=>t.current.some(d=>d===l),[]),c=U.useCallback(l=>{s(l)||a([...t.current,l])},[s,a]),u=U.useCallback(l=>{s(l)&&a(t.current.filter(g=>g!==l))},[s,a]);return X.jsx(xn.Provider,{value:{visibleItems:r,isItemVisible:s,showItem:c,hideItem:u},children:e})},et=()=>{const e=U.useContext(xn),t=a=>e.visibleItems.some(s=>s===a),r=a=>{e.showItem(a)},i=a=>{e.hideItem(a)};return{visibleItems:e.visibleItems,isItemVisible:t,showItem:r,hideItem:i}},qo=({id:e,onCloseDrawer:t,drawerCloseOffset:r=15})=>{const{isItemVisible:i}=et(),[a,s]=U.useState({isDragging:!1}),c=U.useRef(null),u=U.useRef(null),l=U.useRef(null),[d,g]=U.useState(0),y=k=>{s(k)},E=k=>{s(k),g(0)};return en({ref:l,onDrag:k=>{s(k);const p=u.current?.clientHeight||0;k.distanceY&&(g(k.distanceY<0?0:-k.distanceY),k.distanceY>=p-r&&(t?.(),E(k)))},onDragEnd:E,onDragStart:y}),{isVisible:i(e),drawerParentRef:c,drawerRef:u,drawerBottomDistance:d,handleRef:l}},Xo=e=>{const{children:t,backgroundStyles:r,contentStyles:i,handle:a}=e,{isVisible:s,drawerParentRef:c,drawerRef:u,handleRef:l,drawerBottomDistance:d}=qo(e);return X.jsx(X.Fragment,{children:s&&X.jsx("div",{ref:c,style:{width:"100%",height:"100%",minHeight:"100vh",left:0,top:0,background:"#00000068",position:"fixed",zIndex:1e3,display:"flex",flexDirection:"column",touchAction:"none",...r},children:X.jsxs("div",{ref:u,style:{width:"100%",height:"fit-content",minHeight:"80px",maxHeight:"90%",background:"#ffffff",borderTopLeftRadius:"16px",borderTopRightRadius:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"24px",zIndex:1001,position:"absolute",bottom:`${d}px`,...i},onClick:g=>{g.stopPropagation()},children:[X.jsx("div",{ref:l,style:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0px",height:"24px",width:"100%",cursor:"pointer",...a?.styles},children:a?.render}),t]})})})},Go=({onPreSubmit:e,onSubmit:t,onChange:r,onMount:i,configurations:a})=>{const s=U.useRef(null),c=U.useRef(!1),u=R=>({name:R.name,value:R.value}),l=()=>{if(!s.current?.elements)return[];const R=Array.from(s.current?.elements).filter(A=>!!A.getAttribute("name")),S=[];for(const A of R)S.push(u(A));return S},d=(R,S,A)=>R==="change"&&S||R==="mount"&&A||R==="submit",g=async(R,S)=>{try{const F=(a||[]).find(m=>m.name===R.name);if(!F)return R;var A=R.value,W=R.value;if(F.emptyValidation&&F.emptyValidation.allow===!1&&!A&&d(S,F.emptyValidation.validateOnChange,F.emptyValidation.validateOnMount))return R.error=F.emptyValidation.errorMessage,R;if(F.minLengthValidation&&A.length<F.minLengthValidation.value&&d(S,F.minLengthValidation.validateOnChange,F.minLengthValidation.validateOnMount))return R.error=F.minLengthValidation.errorMessage,R;if(F.maxLengthValidation&&A.length>F.maxLengthValidation.value&&d(S,F.maxLengthValidation.validateOnChange,F.maxLengthValidation.validateOnMount))return R.error=F.maxLengthValidation.errorMessage,R;if(!isNaN(W)){if(F.minValueValidation&&W<F.minValueValidation.value&&d(S,F.minValueValidation.validateOnChange,F.minValueValidation.validateOnMount))return R.error=F.minValueValidation.errorMessage,R;if(F.maxValueValidation&&W>F.maxValueValidation.value&&d(S,F.maxValueValidation.validateOnChange,F.maxValueValidation.validateOnMount))return R.error=F.maxValueValidation.errorMessage,R}if(F.exactValueValidation&&F.exactValueValidation.value!==R.value&&d(S,F.exactValueValidation.validateOnChange,F.exactValueValidation.validateOnMount))return R.error=F.exactValueValidation.errorMessage,R;for(let m=0;m<(F.validations||[]).length;m++){const w=F.validations?.[m];if(!d(S,w?.validateOnChange,w?.validateOnMount))continue;const x=await F.validations?.[m].validate?.(R.value);if(x)return R.error=x,R}}catch(F){console.error(`Form > Failed To Validate Field ${R.name}: `,F)}return R},y=U.useCallback(async R=>{let S=l();S=await Promise.all(S.map(async W=>await g(W,R)));const A=S.find(W=>W.error!==void 0);return{fields:S,hasErrors:A!==void 0}},[]),E=U.useCallback(async R=>{try{if(c.current)return;c.current=!0,e?.(),R.preventDefault(),R.stopPropagation();const S=await y("submit");c.current=!1,t?.(S.fields,S.hasErrors)}catch(S){c.current=!1,console.error("Form > OnSubmit > Error submitting: ",S)}},[t,e]),M=U.useCallback(async R=>{try{const A=R.target;var S=await y("change");let W=u(A);W=await g(W,"change"),console.log("Form > On Change > ",{result:W,allFieldsValidation:S}),r?.(W,S.fields,S.hasErrors)}catch(A){console.error("Form > onChange > Error changing: ",A)}},[t,e]),k=U.useCallback(async()=>{try{const R=await y("mount");i?.(R.fields,R.hasErrors)}catch(R){console.error("Form > onChange > Error changing: ",R)}},[t,e]),p=R=>{s.current&&s.current.requestSubmit()};return Zr(()=>{k()}),{ref:s,submitForm:p,handleFormSubmission:E,handleFormChange:M}},Ko=Pe.div`
127
127
  display: flex;
128
- width: 100%;
128
+ flex: 1;
129
129
  align-items: center;
130
130
  justify-content: center;
131
131
  background: none;
@@ -138,7 +138,7 @@ Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}
138
138
  > * {
139
139
  pointer-events: none;
140
140
  }
141
- `,Jo=e=>{const{children:t,styles:r,childrenStyles:i,submitButton:a}=e,{ref:s,handleFormSubmission:c,submitForm:u,handleFormChange:l}=Go(e);return X.jsxs("form",{ref:s,onSubmit:c,onChange:l,style:{width:"100%",display:"flex",flexDirection:"column",gap:"8px",flex:1,...r},children:[X.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",gap:"8px",flex:1,...i},children:t}),X.jsx(Ko,{onClick:u,styles:{...a.styles},children:a.content})]})},Zo=({src:e,alt:t="",onClick:r,styles:i})=>X.jsx("img",{src:e,alt:t,style:{overflow:"hidden",position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",objectFit:"cover",...i},onClick:()=>{r?.()}}),Qo=e=>({handleOnBlur:s=>{e.onBlur?.()},handleOnFocus:s=>{e.onFocus?.()},onValueChanged:s=>{e.onChange?.(s.currentTarget.value)},handleOnClick:()=>{e.onClick?.()}}),es=Pe.div`
141
+ `,Jo=e=>{const{children:t,styles:r,childrenStyles:i,submitSection:a}=e,{ref:s,handleFormSubmission:c,submitForm:u,handleFormChange:l}=Go(e);return X.jsxs("form",{ref:s,onSubmit:c,onChange:l,style:{width:"100%",display:"flex",flexDirection:"column",gap:"8px",flex:1,...r},children:[X.jsx("div",{style:{width:"100%",display:"flex",flexDirection:"column",gap:"8px",flex:1,...i},children:t}),X.jsxs("div",{"data-testid":"submit-section",style:{width:"100%",flexDirection:"row",gap:"10px",display:"flex",flexWrap:"wrap",alignItems:"center",justifyContent:"center",...a.styles},children:[a.renderBeforeSubmitButton,X.jsx(Ko,{onClick:u,styles:{...a.submitButton.styles},children:a.submitButton.content}),a.renderAfterSubmitButton]})]})},Zo=({src:e,alt:t="",onClick:r,styles:i})=>X.jsx("img",{src:e,alt:t,style:{overflow:"hidden",position:"relative",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",objectFit:"cover",...i},onClick:()=>{r?.()}}),Qo=e=>({handleOnBlur:s=>{e.onBlur?.()},handleOnFocus:s=>{e.onFocus?.()},onValueChanged:s=>{e.onChange?.(s.currentTarget.value)},handleOnClick:()=>{e.onClick?.()}}),es=Pe.div`
142
142
  display: flex;
143
143
  flex-direction: column;
144
144
  font-family: inherit;
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as $ from "react";
2
- import q, { forwardRef as Cn, useContext as Ut, useEffect as Ir, useState as Ar, useMemo as Hr, useCallback as me, useRef as Pn } from "react";
2
+ import B, { forwardRef as Cn, useContext as Ut, useEffect as Ir, useState as Ar, useMemo as Hr, useCallback as me, useRef as Pn } from "react";
3
3
  var rt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
4
4
  function Yt(e) {
5
5
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -212,24 +212,24 @@ function _n() {
212
212
  }), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
213
213
  }
214
214
  function g(n, f, O, I, D, N, V, U) {
215
- var B = f.children;
216
- if (B !== void 0)
215
+ var q = f.children;
216
+ if (q !== void 0)
217
217
  if (I)
218
- if (T(B)) {
219
- for (I = 0; I < B.length; I++)
220
- y(B[I]);
221
- Object.freeze && Object.freeze(B);
218
+ if (T(q)) {
219
+ for (I = 0; I < q.length; I++)
220
+ y(q[I]);
221
+ Object.freeze && Object.freeze(q);
222
222
  } else
223
223
  console.error(
224
224
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
225
225
  );
226
- else y(B);
226
+ else y(q);
227
227
  if (H.call(f, "key")) {
228
- B = e(n);
228
+ q = e(n);
229
229
  var K = Object.keys(f).filter(function(J) {
230
230
  return J !== "key";
231
231
  });
232
- I = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", v[B + I] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error(
232
+ I = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", v[q + I] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error(
233
233
  `A props object containing a "key" prop is being spread into JSX:
234
234
  let props = %s;
235
235
  <%s {...props} />
@@ -237,22 +237,22 @@ React keys must be passed directly to JSX without using spread:
237
237
  let props = %s;
238
238
  <%s key={someKey} {...props} />`,
239
239
  I,
240
- B,
240
+ q,
241
241
  K,
242
- B
243
- ), v[B + I] = !0);
242
+ q
243
+ ), v[q + I] = !0);
244
244
  }
245
- if (B = null, O !== void 0 && (r(O), B = "" + O), c(f) && (r(f.key), B = "" + f.key), "key" in f) {
245
+ if (q = null, O !== void 0 && (r(O), q = "" + O), c(f) && (r(f.key), q = "" + f.key), "key" in f) {
246
246
  O = {};
247
247
  for (var G in f)
248
248
  G !== "key" && (O[G] = f[G]);
249
249
  } else O = f;
250
- return B && u(
250
+ return q && u(
251
251
  O,
252
252
  typeof n == "function" ? n.displayName || n.name || "Unknown" : n
253
253
  ), d(
254
254
  n,
255
- B,
255
+ q,
256
256
  N,
257
257
  D,
258
258
  a(),
@@ -264,7 +264,7 @@ React keys must be passed directly to JSX without using spread:
264
264
  function y(n) {
265
265
  typeof n == "object" && n !== null && n.$$typeof === M && n._store && (n._store.validated = 1);
266
266
  }
267
- var E = q, M = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), W = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), b = Symbol.for("react.activity"), h = Symbol.for("react.client.reference"), C = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, H = Object.prototype.hasOwnProperty, T = Array.isArray, j = console.createTask ? console.createTask : function() {
267
+ var E = B, M = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), R = Symbol.for("react.strict_mode"), S = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), W = Symbol.for("react.context"), F = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), b = Symbol.for("react.activity"), h = Symbol.for("react.client.reference"), C = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, H = Object.prototype.hasOwnProperty, T = Array.isArray, j = console.createTask ? console.createTask : function() {
268
268
  return null;
269
269
  };
270
270
  E = {
@@ -383,19 +383,19 @@ function Ln() {
383
383
  throw new TypeError(e);
384
384
  w = F(w) || 0, S(x) && (P = !!x.leading, L = "maxWait" in x, h = L ? M(F(x.maxWait) || 0, w) : h, o = "trailing" in x ? !!x.trailing : o);
385
385
  function z(U) {
386
- var B = _, K = b;
387
- return _ = b = void 0, j = U, C = m.apply(K, B), C;
386
+ var q = _, K = b;
387
+ return _ = b = void 0, j = U, C = m.apply(K, q), C;
388
388
  }
389
389
  function v(U) {
390
390
  return j = U, H = setTimeout(O, w), P ? z(U) : C;
391
391
  }
392
392
  function n(U) {
393
- var B = U - T, K = U - j, G = w - B;
393
+ var q = U - T, K = U - j, G = w - q;
394
394
  return L ? k(G, h - K) : G;
395
395
  }
396
396
  function f(U) {
397
- var B = U - T, K = U - j;
398
- return T === void 0 || B >= w || B < 0 || L && K >= h;
397
+ var q = U - T, K = U - j;
398
+ return T === void 0 || q >= w || q < 0 || L && K >= h;
399
399
  }
400
400
  function O() {
401
401
  var U = p();
@@ -413,8 +413,8 @@ function Ln() {
413
413
  return H === void 0 ? C : I(p());
414
414
  }
415
415
  function V() {
416
- var U = p(), B = f(U);
417
- if (_ = arguments, b = this, T = U, B) {
416
+ var U = p(), q = f(U);
417
+ if (_ = arguments, b = this, T = U, q) {
418
418
  if (H === void 0)
419
419
  return v(T);
420
420
  if (L)
@@ -496,7 +496,7 @@ function zr() {
496
496
  Object.defineProperty(e, "__esModule", {
497
497
  value: !0
498
498
  }), e.default = void 0;
499
- var t = r(q);
499
+ var t = r(B);
500
500
  function r(a) {
501
501
  return a && a.__esModule ? a : { default: a };
502
502
  }
@@ -572,7 +572,7 @@ function Ke() {
572
572
  ur = 1, Object.defineProperty(Y, "__esModule", {
573
573
  value: !0
574
574
  }), Y.checkSpecKeys = Y.checkNavigable = Y.changeSlide = Y.canUseDOM = Y.canGoNext = void 0, Y.clamp = d, Y.extractObject = void 0, Y.filterSettings = z, Y.validSettings = Y.swipeStart = Y.swipeMove = Y.swipeEnd = Y.slidesOnRight = Y.slidesOnLeft = Y.slideHandler = Y.siblingDirection = Y.safePreventDefault = Y.lazyStartIndex = Y.lazySlidesOnRight = Y.lazySlidesOnLeft = Y.lazyEndIndex = Y.keyHandler = Y.initializedState = Y.getWidth = Y.getTrackLeft = Y.getTrackCSS = Y.getTrackAnimateCSS = Y.getTotalSlides = Y.getSwipeDirection = Y.getSlideCount = Y.getRequiredLazySlides = Y.getPreClones = Y.getPostClones = Y.getOnDemandLazySlides = Y.getNavigableIndexes = Y.getHeight = void 0;
575
- var e = r(q), t = r(zr());
575
+ var e = r(B), t = r(zr());
576
576
  function r(v) {
577
577
  return v && v.__esModule ? v : { default: v };
578
578
  }
@@ -670,7 +670,7 @@ function Ke() {
670
670
  var U = n.centerMode && parseInt(n.centerPadding) * 2;
671
671
  typeof n.centerPadding == "string" && n.centerPadding.slice(-1) === "%" && (U *= I / 100), V = Math.ceil((I - U) / n.slidesToShow);
672
672
  }
673
- var B = O && S(O.querySelector('[data-index="0"]')), K = B * n.slidesToShow, G = n.currentSlide === void 0 ? n.initialSlide : n.currentSlide;
673
+ var q = O && S(O.querySelector('[data-index="0"]')), K = q * n.slidesToShow, G = n.currentSlide === void 0 ? n.initialSlide : n.currentSlide;
674
674
  n.rtl && n.currentSlide === void 0 && (G = f - 1 - n.initialSlide);
675
675
  var J = n.lazyLoadedList || [], te = y(s(s({}, n), {}, {
676
676
  currentSlide: G,
@@ -683,13 +683,13 @@ function Ke() {
683
683
  listWidth: I,
684
684
  trackWidth: N,
685
685
  currentSlide: G,
686
- slideHeight: B,
686
+ slideHeight: q,
687
687
  listHeight: K,
688
688
  lazyLoadedList: J
689
689
  };
690
690
  return n.autoplaying === null && n.autoplay && (Z.autoplaying = "playing"), Z;
691
691
  }, Y.slideHandler = function(n) {
692
- var f = n.waitForAnimate, O = n.animating, I = n.fade, D = n.infinite, N = n.index, V = n.slideCount, U = n.lazyLoad, B = n.currentSlide, K = n.centerMode, G = n.slidesToScroll, J = n.slidesToShow, te = n.useCSS, Z = n.lazyLoadedList;
692
+ var f = n.waitForAnimate, O = n.animating, I = n.fade, D = n.infinite, N = n.index, V = n.slideCount, U = n.lazyLoad, q = n.currentSlide, K = n.centerMode, G = n.slidesToScroll, J = n.slidesToShow, te = n.useCSS, Z = n.lazyLoadedList;
693
693
  if (f && O) return {};
694
694
  var ee = N, ie, le, Q, oe = {}, ue = {}, ce = D ? N : d(N, 0, V - 1);
695
695
  if (I) {
@@ -704,7 +704,7 @@ function Ke() {
704
704
  targetSlide: ee
705
705
  };
706
706
  } else
707
- ie = ee, ee < 0 ? (ie = ee + V, D ? V % G !== 0 && (ie = V - V % G) : ie = 0) : !W(n) && ee > B ? ee = ie = B : K && ee >= V ? (ee = D ? V : V - 1, ie = D ? 0 : V - 1) : ee >= V && (ie = ee - V, D ? V % G !== 0 && (ie = 0) : ie = V - J), !D && ee + J >= V && (ie = V - J), le = h(s(s({}, n), {}, {
707
+ ie = ee, ee < 0 ? (ie = ee + V, D ? V % G !== 0 && (ie = V - V % G) : ie = 0) : !W(n) && ee > q ? ee = ie = q : K && ee >= V ? (ee = D ? V : V - 1, ie = D ? 0 : V - 1) : ee >= V && (ie = ee - V, D ? V % G !== 0 && (ie = 0) : ie = V - J), !D && ee + J >= V && (ie = V - J), le = h(s(s({}, n), {}, {
708
708
  slideIndex: ee
709
709
  })), Q = h(s(s({}, n), {}, {
710
710
  slideIndex: ie
@@ -739,9 +739,9 @@ function Ke() {
739
739
  nextState: ue
740
740
  };
741
741
  }, Y.changeSlide = function(n, f) {
742
- var O, I, D, N, V, U = n.slidesToScroll, B = n.slidesToShow, K = n.slideCount, G = n.currentSlide, J = n.targetSlide, te = n.lazyLoad, Z = n.infinite;
742
+ var O, I, D, N, V, U = n.slidesToScroll, q = n.slidesToShow, K = n.slideCount, G = n.currentSlide, J = n.targetSlide, te = n.lazyLoad, Z = n.infinite;
743
743
  if (N = K % U !== 0, O = N ? 0 : (K - G) % U, f.message === "previous")
744
- D = O === 0 ? U : B - O, V = G - D, te && !Z && (I = G - D, V = I === -1 ? K - 1 : I), Z || (V = J - U);
744
+ D = O === 0 ? U : q - O, V = G - D, te && !Z && (I = G - D, V = I === -1 ? K - 1 : I), Z || (V = J - U);
745
745
  else if (f.message === "next")
746
746
  D = O === 0 ? U : O, V = G + D, te && !Z && (V = (G + U) % K + O), Z || (V = J + U);
747
747
  else if (f.message === "dots")
@@ -768,7 +768,7 @@ function Ke() {
768
768
  }
769
769
  };
770
770
  }, Y.swipeMove = function(n, f) {
771
- var O = f.scrolling, I = f.animating, D = f.vertical, N = f.swipeToSlide, V = f.verticalSwiping, U = f.rtl, B = f.currentSlide, K = f.edgeFriction, G = f.edgeDragged, J = f.onEdge, te = f.swiped, Z = f.swiping, ee = f.slideCount, ie = f.slidesToScroll, le = f.infinite, Q = f.touchObject, oe = f.swipeEvent, ue = f.listHeight, ce = f.listWidth;
771
+ var O = f.scrolling, I = f.animating, D = f.vertical, N = f.swipeToSlide, V = f.verticalSwiping, U = f.rtl, q = f.currentSlide, K = f.edgeFriction, G = f.edgeDragged, J = f.onEdge, te = f.swiped, Z = f.swiping, ee = f.slideCount, ie = f.slidesToScroll, le = f.infinite, Q = f.touchObject, oe = f.swipeEvent, ue = f.listHeight, ce = f.listWidth;
772
772
  if (!O) {
773
773
  if (I) return g(n);
774
774
  D && N && V && g(n);
@@ -783,7 +783,7 @@ function Ke() {
783
783
  var Ie = (U ? -1 : 1) * (Q.curX > Q.startX ? 1 : -1);
784
784
  V && (Ie = Q.curY > Q.startY ? 1 : -1);
785
785
  var kn = Math.ceil(ee / ie), Pe = A(f.touchObject, V), Ae = Q.swipeLength;
786
- return le || (B === 0 && (Pe === "right" || Pe === "down") || B + 1 >= kn && (Pe === "left" || Pe === "up") || !W(f) && (Pe === "left" || Pe === "up")) && (Ae = Q.swipeLength * K, G === !1 && J && (J(Pe), Re.edgeDragged = !0)), !te && oe && (oe(Pe), Re.swiped = !0), D ? pe = tt + Ae * (ue / ce) * Ie : U ? pe = tt - Ae * Ie : pe = tt + Ae * Ie, V && (pe = tt + Ae * Ie), Re = s(s({}, Re), {}, {
786
+ return le || (q === 0 && (Pe === "right" || Pe === "down") || q + 1 >= kn && (Pe === "left" || Pe === "up") || !W(f) && (Pe === "left" || Pe === "up")) && (Ae = Q.swipeLength * K, G === !1 && J && (J(Pe), Re.edgeDragged = !0)), !te && oe && (oe(Pe), Re.swiped = !0), D ? pe = tt + Ae * (ue / ce) * Ie : U ? pe = tt - Ae * Ie : pe = tt + Ae * Ie, V && (pe = tt + Ae * Ie), Re = s(s({}, Re), {}, {
787
787
  touchObject: Q,
788
788
  swipeLeft: pe,
789
789
  trackStyle: _(s(s({}, f), {}, {
@@ -792,10 +792,10 @@ function Ke() {
792
792
  }), Math.abs(Q.curX - Q.startX) < Math.abs(Q.curY - Q.startY) * 0.8 || Q.swipeLength > 10 && (Re.swiping = !0, g(n)), Re;
793
793
  }
794
794
  }, Y.swipeEnd = function(n, f) {
795
- var O = f.dragging, I = f.swipe, D = f.touchObject, N = f.listWidth, V = f.touchThreshold, U = f.verticalSwiping, B = f.listHeight, K = f.swipeToSlide, G = f.scrolling, J = f.onSwipe, te = f.targetSlide, Z = f.currentSlide, ee = f.infinite;
795
+ var O = f.dragging, I = f.swipe, D = f.touchObject, N = f.listWidth, V = f.touchThreshold, U = f.verticalSwiping, q = f.listHeight, K = f.swipeToSlide, G = f.scrolling, J = f.onSwipe, te = f.targetSlide, Z = f.currentSlide, ee = f.infinite;
796
796
  if (!O)
797
797
  return I && g(n), {};
798
- var ie = U ? B / V : N / V, le = A(D, U), Q = {
798
+ var ie = U ? q / V : N / V, le = A(D, U), Q = {
799
799
  dragging: !1,
800
800
  edgeDragged: !1,
801
801
  scrolling: !1,
@@ -902,11 +902,11 @@ function Ke() {
902
902
  if (n.unslick)
903
903
  return 0;
904
904
  x(n, ["slideIndex", "trackRef", "infinite", "centerMode", "slideCount", "slidesToShow", "slidesToScroll", "slideWidth", "listWidth", "variableWidth", "slideHeight"]);
905
- var f = n.slideIndex, O = n.trackRef, I = n.infinite, D = n.centerMode, N = n.slideCount, V = n.slidesToShow, U = n.slidesToScroll, B = n.slideWidth, K = n.listWidth, G = n.variableWidth, J = n.slideHeight, te = n.fade, Z = n.vertical, ee = 0, ie, le, Q = 0;
905
+ var f = n.slideIndex, O = n.trackRef, I = n.infinite, D = n.centerMode, N = n.slideCount, V = n.slidesToShow, U = n.slidesToScroll, q = n.slideWidth, K = n.listWidth, G = n.variableWidth, J = n.slideHeight, te = n.fade, Z = n.vertical, ee = 0, ie, le, Q = 0;
906
906
  if (te || n.slideCount === 1)
907
907
  return 0;
908
908
  var oe = 0;
909
- if (I ? (oe = -C(n), N % U !== 0 && f + U > N && (oe = -(f > N ? V - (f - N) : N % U)), D && (oe += parseInt(V / 2))) : (N % U !== 0 && f + U > N && (oe = V - N % U), D && (oe = parseInt(V / 2))), ee = oe * B, Q = oe * J, Z ? ie = f * J * -1 + Q : ie = f * B * -1 + ee, G === !0) {
909
+ if (I ? (oe = -C(n), N % U !== 0 && f + U > N && (oe = -(f > N ? V - (f - N) : N % U)), D && (oe += parseInt(V / 2))) : (N % U !== 0 && f + U > N && (oe = V - N % U), D && (oe = parseInt(V / 2))), ee = oe * q, Q = oe * J, Z ? ie = f * J * -1 + Q : ie = f * q * -1 + ee, G === !0) {
910
910
  var ue, ce = O && O.node;
911
911
  if (ue = f + C(n), le = ce && ce.childNodes[ue], ie = le ? le.offsetLeft * -1 : 0, D === !0) {
912
912
  ue = I ? f + C(n) : f, le = ce && ce.children[ue], ie = 0;
@@ -956,7 +956,7 @@ function Mn() {
956
956
  cr = 1, Object.defineProperty(Fe, "__esModule", {
957
957
  value: !0
958
958
  }), Fe.Track = void 0;
959
- var e = i(q), t = i(yt()), r = Ke();
959
+ var e = i(B), t = i(yt()), r = Ke();
960
960
  function i(b) {
961
961
  return b && b.__esModule ? b : { default: b };
962
962
  }
@@ -1192,7 +1192,7 @@ function Dn() {
1192
1192
  Object.defineProperty(We, "__esModule", {
1193
1193
  value: !0
1194
1194
  }), We.Dots = void 0;
1195
- var t = a(q), r = a(yt()), i = Ke();
1195
+ var t = a(B), r = a(yt()), i = Ke();
1196
1196
  function a(m) {
1197
1197
  return m && m.__esModule ? m : { default: m };
1198
1198
  }
@@ -1325,12 +1325,12 @@ function Dn() {
1325
1325
  index: f,
1326
1326
  slidesToScroll: j,
1327
1327
  currentSlide: o
1328
- }, B = this.clickHandler.bind(this, U);
1328
+ }, q = this.clickHandler.bind(this, U);
1329
1329
  n = n.concat(/* @__PURE__ */ t.default.createElement("li", {
1330
1330
  key: f,
1331
1331
  className: V
1332
1332
  }, /* @__PURE__ */ t.default.cloneElement(this.props.customPaging(f), {
1333
- onClick: B
1333
+ onClick: q
1334
1334
  })));
1335
1335
  }
1336
1336
  return /* @__PURE__ */ t.default.cloneElement(this.props.appendDots(n), c({
@@ -1355,7 +1355,7 @@ function $n() {
1355
1355
  Object.defineProperty(_e, "__esModule", {
1356
1356
  value: !0
1357
1357
  }), _e.PrevArrow = _e.NextArrow = void 0;
1358
- var t = a(q), r = a(yt()), i = Ke();
1358
+ var t = a(B), r = a(yt()), i = Ke();
1359
1359
  function a(m) {
1360
1360
  return m && m.__esModule ? m : { default: m };
1361
1361
  }
@@ -1699,24 +1699,24 @@ function Yn(e) {
1699
1699
  if (!t && !r)
1700
1700
  return Wr;
1701
1701
  var i = je(e).getComputedStyle(e), a = Vn(i), s = a.left + a.right, c = a.top + a.bottom, u = mt(i.width), l = mt(i.height);
1702
- if (i.boxSizing === "border-box" && (Math.round(u + s) !== t && (u -= hr(i, "left", "right") + s), Math.round(l + c) !== r && (l -= hr(i, "top", "bottom") + c)), !Bn(e)) {
1702
+ if (i.boxSizing === "border-box" && (Math.round(u + s) !== t && (u -= hr(i, "left", "right") + s), Math.round(l + c) !== r && (l -= hr(i, "top", "bottom") + c)), !qn(e)) {
1703
1703
  var d = Math.round(u + s) - t, g = Math.round(l + c) - r;
1704
1704
  Math.abs(d) !== 1 && (u -= d), Math.abs(g) !== 1 && (l -= g);
1705
1705
  }
1706
1706
  return bt(a.left, a.top, u, l);
1707
1707
  }
1708
- var qn = /* @__PURE__ */ function() {
1708
+ var Bn = /* @__PURE__ */ function() {
1709
1709
  return typeof SVGGraphicsElement < "u" ? function(e) {
1710
1710
  return e instanceof je(e).SVGGraphicsElement;
1711
1711
  } : function(e) {
1712
1712
  return e instanceof je(e).SVGElement && typeof e.getBBox == "function";
1713
1713
  };
1714
1714
  }();
1715
- function Bn(e) {
1715
+ function qn(e) {
1716
1716
  return e === je(e).document.documentElement;
1717
1717
  }
1718
1718
  function Xn(e) {
1719
- return At ? qn(e) ? Un(e) : Yn(e) : Wr;
1719
+ return At ? Bn(e) ? Un(e) : Yn(e) : Wr;
1720
1720
  }
1721
1721
  function Gn(e) {
1722
1722
  var t = e.x, r = e.y, i = e.width, a = e.height, s = typeof DOMRectReadOnly < "u" ? DOMRectReadOnly : Object, c = Object.create(s.prototype);
@@ -1840,7 +1840,7 @@ function ri() {
1840
1840
  pr = 1, Object.defineProperty(Ne, "__esModule", {
1841
1841
  value: !0
1842
1842
  }), Ne.InnerSlider = void 0;
1843
- var e = d(q), t = d(jn()), r = d(Ln()), i = d(yt()), a = Ke(), s = Mn(), c = Dn(), u = $n(), l = d(ti);
1843
+ var e = d(B), t = d(jn()), r = d(Ln()), i = d(yt()), a = Ke(), s = Mn(), c = Dn(), u = $n(), l = d(ti);
1844
1844
  function d(T) {
1845
1845
  return T && T.__esModule ? T : { default: T };
1846
1846
  }
@@ -2086,8 +2086,8 @@ function ri() {
2086
2086
  left: -n + "px"
2087
2087
  };
2088
2088
  if (o.props.centerMode) {
2089
- var B = "".concat(f[o.state.currentSlide], "px");
2090
- U.left = "calc(".concat(U.left, " + (100% - ").concat(B, ") / 2 ) ");
2089
+ var q = "".concat(f[o.state.currentSlide], "px");
2090
+ U.left = "calc(".concat(U.left, " + (100% - ").concat(q, ") / 2 ) ");
2091
2091
  }
2092
2092
  return {
2093
2093
  trackStyle: U
@@ -2144,12 +2144,12 @@ function ri() {
2144
2144
  };
2145
2145
  }), o.props.onLazyLoad && o.props.onLazyLoad(v)) : o.lazyLoadTimer && (clearInterval(o.lazyLoadTimer), delete o.lazyLoadTimer);
2146
2146
  }), h(x(o), "slideHandler", function(v) {
2147
- var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, f = o.props, O = f.asNavFor, I = f.beforeChange, D = f.onLazyLoad, N = f.speed, V = f.afterChange, U = o.state.currentSlide, B = (0, a.slideHandler)(p(p(p({
2147
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, f = o.props, O = f.asNavFor, I = f.beforeChange, D = f.onLazyLoad, N = f.speed, V = f.afterChange, U = o.state.currentSlide, q = (0, a.slideHandler)(p(p(p({
2148
2148
  index: v
2149
2149
  }, o.props), o.state), {}, {
2150
2150
  trackRef: o.track,
2151
2151
  useCSS: o.props.useCSS && !n
2152
- })), K = B.state, G = B.nextState;
2152
+ })), K = q.state, G = q.nextState;
2153
2153
  if (K) {
2154
2154
  I && I(U, K.currentSlide);
2155
2155
  var J = K.lazyLoadedList.filter(function(te) {
@@ -2301,8 +2301,8 @@ function ri() {
2301
2301
  onMouseLeave: N ? o.onDotsLeave : null
2302
2302
  }), I = /* @__PURE__ */ e.default.createElement(c.Dots, D);
2303
2303
  }
2304
- var V, U, B = (0, a.extractObject)(n, ["infinite", "centerMode", "currentSlide", "slideCount", "slidesToShow", "prevArrow", "nextArrow"]);
2305
- B.clickHandler = o.changeSlide, o.props.arrows && (V = /* @__PURE__ */ e.default.createElement(u.PrevArrow, B), U = /* @__PURE__ */ e.default.createElement(u.NextArrow, B));
2304
+ var V, U, q = (0, a.extractObject)(n, ["infinite", "centerMode", "currentSlide", "slideCount", "slidesToShow", "prevArrow", "nextArrow"]);
2305
+ q.clickHandler = o.changeSlide, o.props.arrows && (V = /* @__PURE__ */ e.default.createElement(u.PrevArrow, q), U = /* @__PURE__ */ e.default.createElement(u.NextArrow, q));
2306
2306
  var K = null;
2307
2307
  o.props.vertical && (K = {
2308
2308
  height: o.state.listHeight
@@ -2406,7 +2406,7 @@ function ai() {
2406
2406
  Object.defineProperty(e, "__esModule", {
2407
2407
  value: !0
2408
2408
  }), e.default = void 0;
2409
- var t = c(q), r = ri(), i = c(ii()), a = c(zr()), s = Ke();
2409
+ var t = c(B), r = ri(), i = c(ii()), a = c(zr()), s = Ke();
2410
2410
  function c(_) {
2411
2411
  return _ && _.__esModule ? _ : { default: _ };
2412
2412
  }
@@ -2713,11 +2713,11 @@ var fi = /* @__PURE__ */ function() {
2713
2713
  return (a = i.parentNode) == null ? void 0 : a.removeChild(i);
2714
2714
  }), this.tags = [], this.ctr = 0;
2715
2715
  }, e;
2716
- }(), de = "-ms-", vt = "-moz-", re = "-webkit-", Yr = "comm", qt = "rule", Bt = "decl", di = "@import", qr = "@keyframes", hi = "@layer", pi = Math.abs, wt = String.fromCharCode, mi = Object.assign;
2716
+ }(), de = "-ms-", vt = "-moz-", re = "-webkit-", Yr = "comm", Bt = "rule", qt = "decl", di = "@import", Br = "@keyframes", hi = "@layer", pi = Math.abs, wt = String.fromCharCode, mi = Object.assign;
2717
2717
  function vi(e, t) {
2718
2718
  return fe(e, 0) ^ 45 ? (((t << 2 ^ fe(e, 0)) << 2 ^ fe(e, 1)) << 2 ^ fe(e, 2)) << 2 ^ fe(e, 3) : 0;
2719
2719
  }
2720
- function Br(e) {
2720
+ function qr(e) {
2721
2721
  return e.trim();
2722
2722
  }
2723
2723
  function gi(e, t) {
@@ -2732,7 +2732,7 @@ function zt(e, t) {
2732
2732
  function fe(e, t) {
2733
2733
  return e.charCodeAt(t) | 0;
2734
2734
  }
2735
- function qe(e, t, r) {
2735
+ function Be(e, t, r) {
2736
2736
  return e.slice(t, r);
2737
2737
  }
2738
2738
  function ye(e) {
@@ -2770,9 +2770,9 @@ function ot() {
2770
2770
  return he;
2771
2771
  }
2772
2772
  function Je(e, t) {
2773
- return qe(Me, e, t);
2773
+ return Be(Me, e, t);
2774
2774
  }
2775
- function Be(e) {
2775
+ function qe(e) {
2776
2776
  switch (e) {
2777
2777
  // \0 \t \n \r \s whitespace token
2778
2778
  case 0:
@@ -2817,12 +2817,12 @@ function Kr(e) {
2817
2817
  return Me = "", e;
2818
2818
  }
2819
2819
  function st(e) {
2820
- return Br(Je(he - 1, Nt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
2820
+ return qr(Je(he - 1, Nt(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
2821
2821
  }
2822
2822
  function Si(e) {
2823
2823
  for (; (se = we()) && se < 33; )
2824
2824
  ve();
2825
- return Be(e) > 2 || Be(se) > 3 ? "" : " ";
2825
+ return qe(e) > 2 || qe(se) > 3 ? "" : " ";
2826
2826
  }
2827
2827
  function xi(e, t) {
2828
2828
  for (; --t && ve() && !(se < 48 || se > 102 || se > 57 && se < 65 || se > 70 && se < 97); )
@@ -2858,7 +2858,7 @@ function Oi(e, t) {
2858
2858
  return "/*" + Je(t, he - 1) + "*" + wt(e === 47 ? e : ve());
2859
2859
  }
2860
2860
  function ki(e) {
2861
- for (; !Be(we()); )
2861
+ for (; !qe(we()); )
2862
2862
  ve();
2863
2863
  return Je(e, he);
2864
2864
  }
@@ -2973,15 +2973,15 @@ function lt(e, t, r, i, a, s, c, u, l) {
2973
2973
  }
2974
2974
  function br(e, t, r, i, a, s, c, u, l, d, g) {
2975
2975
  for (var y = a - 1, E = a === 0 ? s : [""], M = Xt(E), k = 0, p = 0, R = 0; k < i; ++k)
2976
- for (var S = 0, A = qe(e, y + 1, y = pi(p = c[k])), W = e; S < M; ++S)
2977
- (W = Br(p > 0 ? E[S] + " " + A : ne(A, /&\f/g, E[S]))) && (l[R++] = W);
2978
- return xt(e, t, r, a === 0 ? qt : u, l, d, g);
2976
+ for (var S = 0, A = Be(e, y + 1, y = pi(p = c[k])), W = e; S < M; ++S)
2977
+ (W = qr(p > 0 ? E[S] + " " + A : ne(A, /&\f/g, E[S]))) && (l[R++] = W);
2978
+ return xt(e, t, r, a === 0 ? Bt : u, l, d, g);
2979
2979
  }
2980
2980
  function Pi(e, t, r) {
2981
- return xt(e, t, r, Yr, wt(bi()), qe(e, 2, -2), 0);
2981
+ return xt(e, t, r, Yr, wt(bi()), Be(e, 2, -2), 0);
2982
2982
  }
2983
2983
  function wr(e, t, r, i) {
2984
- return xt(e, t, r, Bt, qe(e, 0, i), qe(e, i + 1, -1), i);
2984
+ return xt(e, t, r, qt, Be(e, 0, i), Be(e, i + 1, -1), i);
2985
2985
  }
2986
2986
  function Te(e, t) {
2987
2987
  for (var r = "", i = Xt(e), a = 0; a < i; a++)
@@ -2993,13 +2993,13 @@ function Ei(e, t, r, i) {
2993
2993
  case hi:
2994
2994
  if (e.children.length) break;
2995
2995
  case di:
2996
- case Bt:
2996
+ case qt:
2997
2997
  return e.return = e.return || e.value;
2998
2998
  case Yr:
2999
2999
  return "";
3000
- case qr:
3000
+ case Br:
3001
3001
  return e.return = e.value + "{" + Te(e.children, i) + "}";
3002
- case qt:
3002
+ case Bt:
3003
3003
  e.value = e.props.join(",");
3004
3004
  }
3005
3005
  return ye(r = Te(e.children, i)) ? e.return = e.value + "{" + r + "}" : "";
@@ -3024,13 +3024,13 @@ function Jr(e) {
3024
3024
  };
3025
3025
  }
3026
3026
  var Ti = function(t, r, i) {
3027
- for (var a = 0, s = 0; a = s, s = we(), a === 38 && s === 12 && (r[i] = 1), !Be(s); )
3027
+ for (var a = 0, s = 0; a = s, s = we(), a === 38 && s === 12 && (r[i] = 1), !qe(s); )
3028
3028
  ve();
3029
3029
  return Je(t, he);
3030
3030
  }, ji = function(t, r) {
3031
3031
  var i = -1, a = 44;
3032
3032
  do
3033
- switch (Be(a)) {
3033
+ switch (qe(a)) {
3034
3034
  case 0:
3035
3035
  a === 38 && we() === 12 && (r[i] = 1), t[i] += Ti(he - 1, r, i);
3036
3036
  break;
@@ -3215,14 +3215,14 @@ function Zr(e, t) {
3215
3215
  }
3216
3216
  var $i = function(t, r, i, a) {
3217
3217
  if (t.length > -1 && !t.return) switch (t.type) {
3218
- case Bt:
3218
+ case qt:
3219
3219
  t.return = Zr(t.value, t.length);
3220
3220
  break;
3221
- case qr:
3221
+ case Br:
3222
3222
  return Te([Ve(t, {
3223
3223
  value: ne(t.value, "@", "@" + re)
3224
3224
  })], a);
3225
- case qt:
3225
+ case Bt:
3226
3226
  if (t.length) return yi(t.props, function(s) {
3227
3227
  switch (gi(s, /(::plac\w+|:read-\w+)/)) {
3228
3228
  // :read-(only|write)
@@ -3485,7 +3485,7 @@ function Yi(e, t, r) {
3485
3485
  return i;
3486
3486
  }
3487
3487
  var kr = /label:\s*([^\s;{]+)\s*(;|$)/g, be;
3488
- function qi(e, t, r) {
3488
+ function Bi(e, t, r) {
3489
3489
  if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
3490
3490
  return e[0];
3491
3491
  var i = !0, a = "";
@@ -3512,9 +3512,9 @@ function qi(e, t, r) {
3512
3512
  next: be
3513
3513
  };
3514
3514
  }
3515
- var Bi = function(t) {
3515
+ var qi = function(t) {
3516
3516
  return t();
3517
- }, Xi = $.useInsertionEffect ? $.useInsertionEffect : !1, Gi = Xi || Bi, tn = /* @__PURE__ */ $.createContext(
3517
+ }, Xi = $.useInsertionEffect ? $.useInsertionEffect : !1, Gi = Xi || qi, tn = /* @__PURE__ */ $.createContext(
3518
3518
  // we're doing this to avoid preconstruct's dead code elimination in this one case
3519
3519
  // because this module is primarily intended for the browser and node
3520
3520
  // but it's also required in react native and similar environments sometimes
@@ -3580,7 +3580,7 @@ var Ki = function(t) {
3580
3580
  w.theme = $.useContext(Ji);
3581
3581
  }
3582
3582
  typeof R.className == "string" ? F = zi(S.registered, m, R.className) : R.className != null && (F = R.className + " ");
3583
- var _ = qi(y.concat(m), S.registered, w);
3583
+ var _ = Bi(y.concat(m), S.registered, w);
3584
3584
  F += S.key + "-" + _.name, c !== void 0 && (F += " " + c);
3585
3585
  var b = d && u === void 0 ? Cr(W) : l, h = {};
3586
3586
  for (var C in R)
@@ -3837,7 +3837,7 @@ const aa = Ee.div`
3837
3837
  settings: r,
3838
3838
  gap: i = 15
3839
3839
  }) => {
3840
- const [a, s] = q.useState(1), c = q.useRef(null), u = q.useRef(null);
3840
+ const [a, s] = B.useState(1), c = B.useRef(null), u = B.useRef(null);
3841
3841
  var l = {
3842
3842
  dots: !1,
3843
3843
  speed: 500,
@@ -3874,7 +3874,7 @@ const aa = Ee.div`
3874
3874
  res: M
3875
3875
  }), s(M);
3876
3876
  };
3877
- return q.useEffect(() => {
3877
+ return B.useEffect(() => {
3878
3878
  g();
3879
3879
  }, [c, u]), /* @__PURE__ */ X.jsx(aa, { ref: c, styles: { ...e }, children: d.length > 0 && /* @__PURE__ */ X.jsx(li, { ...l, slidesToShow: a, children: d }) });
3880
3880
  }, ls = ({
@@ -3958,10 +3958,10 @@ const aa = Ee.div`
3958
3958
  ]
3959
3959
  }
3960
3960
  ), sa = (e) => Ir(e, []), la = () => {
3961
- const [e, t] = q.useState(
3961
+ const [e, t] = B.useState(
3962
3962
  {}
3963
- ), [r, i] = q.useState(!1);
3964
- return q.useEffect(() => {
3963
+ ), [r, i] = B.useState(!1);
3964
+ return B.useEffect(() => {
3965
3965
  const a = (u) => {
3966
3966
  t({ x: u.clientX, y: u.clientY });
3967
3967
  }, s = (u) => {
@@ -3982,9 +3982,9 @@ const aa = Ee.div`
3982
3982
  onDragStart: r,
3983
3983
  onDragEnd: i
3984
3984
  }) => {
3985
- const a = q.useRef(!1), s = q.useRef(!1), { pointerPosition: c, isPointerDown: u } = la(), l = q.useRef({
3985
+ const a = B.useRef(!1), s = B.useRef(!1), { pointerPosition: c, isPointerDown: u } = la(), l = B.useRef({
3986
3986
  isDragging: !1
3987
- }), d = q.useCallback(
3987
+ }), d = B.useCallback(
3988
3988
  (k) => {
3989
3989
  if (!e || !e.current || !l.current)
3990
3990
  return;
@@ -3992,21 +3992,21 @@ const aa = Ee.div`
3992
3992
  return p.posY = k.y, p.posX = k.x, l.current.startPosX && l.current.posX && (p.distanceX = l.current.startPosX - l.current.posX), l.current.startPosY && l.current.posY && (p.distanceY = -(l.current.startPosY - l.current.posY)), p;
3993
3993
  },
3994
3994
  []
3995
- ), g = q.useCallback(
3995
+ ), g = B.useCallback(
3996
3996
  (k) => {
3997
3997
  k.preventDefault(), k.stopPropagation(), l.current.isDragging = !0, l.current.startPosY = k.clientY, l.current.startPosX = k.clientX;
3998
3998
  const p = d({ x: k.clientX, y: k.clientY });
3999
3999
  p && (l.current = p, r?.(p));
4000
4000
  },
4001
4001
  [d]
4002
- ), y = q.useCallback(
4002
+ ), y = B.useCallback(
4003
4003
  (k) => {
4004
4004
  l.current.isDragging = !1;
4005
4005
  const p = d(c);
4006
4006
  p && (i?.(p), p.startPosX = void 0, p.startPosY = void 0, l.current = p);
4007
4007
  },
4008
4008
  [d, c]
4009
- ), E = q.useCallback(
4009
+ ), E = B.useCallback(
4010
4010
  (k) => {
4011
4011
  if (console.debug(
4012
4012
  "useDrag > onPointerMove > Is Dragging >",
@@ -4017,18 +4017,18 @@ const aa = Ee.div`
4017
4017
  console.debug("useDrag > onPointerMove > Drag Result >", p), p && (t?.(p), l.current = p);
4018
4018
  },
4019
4019
  [d, c]
4020
- ), M = q.useCallback(async () => {
4020
+ ), M = B.useCallback(async () => {
4021
4021
  if (!a.current) {
4022
4022
  for (; !e?.current; )
4023
4023
  await new Promise((k) => setTimeout(k, 300));
4024
4024
  a.current = !0, e.current.onpointerdown = g, e.current.style.touchAction = "none";
4025
4025
  }
4026
4026
  }, [e?.current, g]);
4027
- q.useEffect(() => {
4027
+ B.useEffect(() => {
4028
4028
  M();
4029
- }, [M]), q.useEffect(() => {
4029
+ }, [M]), B.useEffect(() => {
4030
4030
  E();
4031
- }, [c]), q.useEffect(() => {
4031
+ }, [c]), B.useEffect(() => {
4032
4032
  u !== s.current && (s.current = u, u || y());
4033
4033
  }, [u, s.current]);
4034
4034
  }, us = () => {
@@ -4092,13 +4092,13 @@ const aa = Ee.div`
4092
4092
  };
4093
4093
  };
4094
4094
  function cs(e) {
4095
- const [t, r] = Ar(!1), i = q.useMemo(
4095
+ const [t, r] = Ar(!1), i = B.useMemo(
4096
4096
  () => new IntersectionObserver(
4097
4097
  ([a]) => r(a.isIntersecting)
4098
4098
  ),
4099
4099
  []
4100
4100
  );
4101
- return q.useEffect(() => (e?.current && i.observe(e?.current), () => i.disconnect()), [e, i.disconnect, i.observe]), t;
4101
+ return B.useEffect(() => (e?.current && i.observe(e?.current), () => i.disconnect()), [e, i.disconnect, i.observe]), t;
4102
4102
  }
4103
4103
  const ca = {
4104
4104
  xs: 0,
@@ -4888,7 +4888,7 @@ function Ua() {
4888
4888
  e
4889
4889
  ), c = /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ $.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ $.createElement("code", { style: s }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ $.createElement("code", { style: s }, "errorElement"), " prop on your route.")), /* @__PURE__ */ $.createElement($.Fragment, null, /* @__PURE__ */ $.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ $.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ $.createElement("pre", { style: a }, r) : null, c);
4890
4890
  }
4891
- var Ya = /* @__PURE__ */ $.createElement(Ua, null), qa = class extends $.Component {
4891
+ var Ya = /* @__PURE__ */ $.createElement(Ua, null), Ba = class extends $.Component {
4892
4892
  constructor(e) {
4893
4893
  super(e), this.state = {
4894
4894
  location: e.location,
@@ -4927,7 +4927,7 @@ var Ya = /* @__PURE__ */ $.createElement(Ua, null), qa = class extends $.Compone
4927
4927
  )) : this.props.children;
4928
4928
  }
4929
4929
  };
4930
- function Ba({ routeContext: e, match: t, children: r }) {
4930
+ function qa({ routeContext: e, match: t, children: r }) {
4931
4931
  let i = $.useContext($e);
4932
4932
  return i && i.static && i.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ $.createElement(ke.Provider, { value: e }, r);
4933
4933
  }
@@ -4979,7 +4979,7 @@ function Xa(e, t = [], r = null, i = null) {
4979
4979
  let p = t.concat(a.slice(0, g + 1)), R = () => {
4980
4980
  let S;
4981
4981
  return y ? S = M : E ? S = k : d.route.Component ? S = /* @__PURE__ */ $.createElement(d.route.Component, null) : d.route.element ? S = d.route.element : S = l, /* @__PURE__ */ $.createElement(
4982
- Ba,
4982
+ qa,
4983
4983
  {
4984
4984
  match: d,
4985
4985
  routeContext: {
@@ -4992,7 +4992,7 @@ function Xa(e, t = [], r = null, i = null) {
4992
4992
  );
4993
4993
  };
4994
4994
  return r && (d.route.ErrorBoundary || d.route.errorElement || g === 0) ? /* @__PURE__ */ $.createElement(
4995
- qa,
4995
+ Ba,
4996
4996
  {
4997
4997
  location: r.location,
4998
4998
  revalidation: r.revalidation,
@@ -5855,7 +5855,7 @@ function zo(e, t = {}) {
5855
5855
  [
5856
5856
  ...So
5857
5857
  ];
5858
- const Sn = q.createContext({
5858
+ const Sn = B.createContext({
5859
5859
  history: [],
5860
5860
  addToHistory: () => {
5861
5861
  },
@@ -5931,19 +5931,19 @@ const Sn = q.createContext({
5931
5931
  return l.params && Object.entries(l.params).forEach(([g, y]) => {
5932
5932
  y != null && d.searchParams.set(g, String(y));
5933
5933
  }), d.pathname + d.search;
5934
- }, s = q.useCallback(
5934
+ }, s = B.useCallback(
5935
5935
  (l) => {
5936
5936
  const d = a(l);
5937
5937
  l.addToHistory !== !1 ? (e(d), i.addToHistory(d)) : (e(d, { replace: !0 }), i.history.length > 0 && (i.popFromHistory(1), i.addToHistory(d)));
5938
5938
  },
5939
5939
  [e, i.history]
5940
- ), c = q.useCallback(
5940
+ ), c = B.useCallback(
5941
5941
  (l) => {
5942
5942
  let d = l || 1;
5943
5943
  i.history.length < d && (d = i.history.length), e(-d), i.popFromHistory(d);
5944
5944
  },
5945
5945
  [e]
5946
- ), u = q.useCallback(() => {
5946
+ ), u = B.useCallback(() => {
5947
5947
  i.replaceHistory([]);
5948
5948
  }, [e]);
5949
5949
  return {
@@ -5959,7 +5959,7 @@ const Sn = q.createContext({
5959
5959
  routes: t,
5960
5960
  children: r
5961
5961
  }) => {
5962
- const i = q.useRef([]), [a, s] = q.useState([]), c = q.useCallback((y) => {
5962
+ const i = B.useRef([]), [a, s] = B.useState([]), c = B.useCallback((y) => {
5963
5963
  i.current = y, s(y);
5964
5964
  }, []), u = (y, E = !1) => {
5965
5965
  let M = [...i.current];
@@ -5985,7 +5985,7 @@ const Sn = q.createContext({
5985
5985
  ] }) })
5986
5986
  }
5987
5987
  );
5988
- }, xn = q.createContext(
5988
+ }, xn = B.createContext(
5989
5989
  {
5990
5990
  visibleItems: [],
5991
5991
  isItemVisible: () => !1,
@@ -5995,14 +5995,14 @@ const Sn = q.createContext({
5995
5995
  }
5996
5996
  }
5997
5997
  ), ms = ({ children: e }) => {
5998
- const t = q.useRef([]), [r, i] = q.useState([]), a = q.useCallback((l) => {
5998
+ const t = B.useRef([]), [r, i] = B.useState([]), a = B.useCallback((l) => {
5999
5999
  t.current = l, i(l);
6000
- }, []), s = q.useCallback((l) => t.current.some((d) => d === l), []), c = q.useCallback(
6000
+ }, []), s = B.useCallback((l) => t.current.some((d) => d === l), []), c = B.useCallback(
6001
6001
  (l) => {
6002
6002
  s(l) || a([...t.current, l]);
6003
6003
  },
6004
6004
  [s, a]
6005
- ), u = q.useCallback(
6005
+ ), u = B.useCallback(
6006
6006
  (l) => {
6007
6007
  s(l) && a(
6008
6008
  t.current.filter((g) => g !== l)
@@ -6039,9 +6039,9 @@ const Sn = q.createContext({
6039
6039
  onCloseDrawer: t,
6040
6040
  drawerCloseOffset: r = 15
6041
6041
  }) => {
6042
- const { isItemVisible: i } = Ct(), [a, s] = q.useState({
6042
+ const { isItemVisible: i } = Ct(), [a, s] = B.useState({
6043
6043
  isDragging: !1
6044
- }), c = q.useRef(null), u = q.useRef(null), l = q.useRef(null), [d, g] = q.useState(0), y = (k) => {
6044
+ }), c = B.useRef(null), u = B.useRef(null), l = B.useRef(null), [d, g] = B.useState(0), y = (k) => {
6045
6045
  s(k);
6046
6046
  }, E = (k) => {
6047
6047
  s(k), g(0);
@@ -6145,7 +6145,7 @@ const Sn = q.createContext({
6145
6145
  onMount: i,
6146
6146
  configurations: a
6147
6147
  }) => {
6148
- const s = q.useRef(null), c = q.useRef(!1), u = (R) => ({
6148
+ const s = B.useRef(null), c = B.useRef(!1), u = (R) => ({
6149
6149
  name: R.name,
6150
6150
  value: R.value
6151
6151
  }), l = () => {
@@ -6228,7 +6228,7 @@ const Sn = q.createContext({
6228
6228
  );
6229
6229
  const A = S.find((W) => W.error !== void 0);
6230
6230
  return { fields: S, hasErrors: A !== void 0 };
6231
- }, []), E = q.useCallback(
6231
+ }, []), E = B.useCallback(
6232
6232
  async (R) => {
6233
6233
  try {
6234
6234
  if (c.current)
@@ -6241,7 +6241,7 @@ const Sn = q.createContext({
6241
6241
  }
6242
6242
  },
6243
6243
  [t, e]
6244
- ), M = q.useCallback(
6244
+ ), M = B.useCallback(
6245
6245
  async (R) => {
6246
6246
  try {
6247
6247
  const A = R.target;
@@ -6257,7 +6257,7 @@ const Sn = q.createContext({
6257
6257
  }
6258
6258
  },
6259
6259
  [t, e]
6260
- ), k = q.useCallback(async () => {
6260
+ ), k = B.useCallback(async () => {
6261
6261
  try {
6262
6262
  const R = await y("mount");
6263
6263
  i?.(R.fields, R.hasErrors);
@@ -6277,7 +6277,7 @@ const Sn = q.createContext({
6277
6277
  };
6278
6278
  }, Vo = Ee.div`
6279
6279
  display: flex;
6280
- width: 100%;
6280
+ flex: 1;
6281
6281
  align-items: center;
6282
6282
  justify-content: center;
6283
6283
  background: none;
@@ -6291,7 +6291,7 @@ const Sn = q.createContext({
6291
6291
  pointer-events: none;
6292
6292
  }
6293
6293
  `, gs = (e) => {
6294
- const { children: t, styles: r, childrenStyles: i, submitButton: a } = e, { ref: s, handleFormSubmission: c, submitForm: u, handleFormChange: l } = Wo(e);
6294
+ const { children: t, styles: r, childrenStyles: i, submitSection: a } = e, { ref: s, handleFormSubmission: c, submitForm: u, handleFormChange: l } = Wo(e);
6295
6295
  return /* @__PURE__ */ X.jsxs(
6296
6296
  "form",
6297
6297
  {
@@ -6321,14 +6321,34 @@ const Sn = q.createContext({
6321
6321
  children: t
6322
6322
  }
6323
6323
  ),
6324
- /* @__PURE__ */ X.jsx(
6325
- Vo,
6324
+ /* @__PURE__ */ X.jsxs(
6325
+ "div",
6326
6326
  {
6327
- onClick: u,
6328
- styles: {
6327
+ "data-testid": "submit-section",
6328
+ style: {
6329
+ width: "100%",
6330
+ flexDirection: "row",
6331
+ gap: "10px",
6332
+ display: "flex",
6333
+ flexWrap: "wrap",
6334
+ alignItems: "center",
6335
+ justifyContent: "center",
6329
6336
  ...a.styles
6330
6337
  },
6331
- children: a.content
6338
+ children: [
6339
+ a.renderBeforeSubmitButton,
6340
+ /* @__PURE__ */ X.jsx(
6341
+ Vo,
6342
+ {
6343
+ onClick: u,
6344
+ styles: {
6345
+ ...a.submitButton.styles
6346
+ },
6347
+ children: a.submitButton.content
6348
+ }
6349
+ ),
6350
+ a.renderAfterSubmitButton
6351
+ ]
6332
6352
  }
6333
6353
  )
6334
6354
  ]
@@ -6384,7 +6404,7 @@ const Sn = q.createContext({
6384
6404
  input:-webkit-autofill {
6385
6405
  background-color: #00000000;
6386
6406
  }
6387
- `, qo = (e) => {
6407
+ `, Bo = (e) => {
6388
6408
  const { onValueChanged: t, handleOnBlur: r, handleOnFocus: i, handleOnClick: a } = Uo(e), {
6389
6409
  ref: s,
6390
6410
  name: c,
@@ -6561,7 +6581,7 @@ const Sn = q.createContext({
6561
6581
  )
6562
6582
  }
6563
6583
  ) });
6564
- }, Bo = (e) => {
6584
+ }, qo = (e) => {
6565
6585
  const t = Pn(""), r = me(
6566
6586
  (u) => (e.allowNegatives ? (u = u.replace(/-/g, (l, d) => d === 0 ? "-" : ""), u.indexOf("-") > 0 && (u = u.replace(/-/g, ""), u = "-" + u)) : u = u.replace(/-/g, ""), u),
6567
6587
  [e]
@@ -6610,29 +6630,29 @@ const Sn = q.createContext({
6610
6630
  decimalScale: r = 2,
6611
6631
  ...i
6612
6632
  }) => {
6613
- const { props: a } = Bo({
6633
+ const { props: a } = qo({
6614
6634
  allowNegatives: e,
6615
6635
  allowDecimals: t,
6616
6636
  decimalScale: r,
6617
6637
  ...i
6618
6638
  });
6619
- return /* @__PURE__ */ X.jsx(qo, { type: "text", ...a });
6639
+ return /* @__PURE__ */ X.jsx(Bo, { type: "text", ...a });
6620
6640
  }, Xo = (e) => {
6621
- const t = q.useRef(null), r = q.useRef(null), i = q.useRef(null), [a, s] = q.useState(24), [c, u] = q.useState(24), [l, d] = q.useState(300), g = q.useCallback(() => {
6641
+ const t = B.useRef(null), r = B.useRef(null), i = B.useRef(null), [a, s] = B.useState(24), [c, u] = B.useState(24), [l, d] = B.useState(300), g = B.useCallback(() => {
6622
6642
  t.current && s(t.current.clientHeight);
6623
- }, [t, t.current]), y = q.useCallback(() => {
6643
+ }, [t, t.current]), y = B.useCallback(() => {
6624
6644
  r.current && u(r.current.clientHeight);
6625
- }, [r, r.current]), E = q.useCallback(() => {
6645
+ }, [r, r.current]), E = B.useCallback(() => {
6626
6646
  i.current && d(i.current.clientWidth);
6627
- }, [i, i.current]), M = q.useCallback(() => {
6647
+ }, [i, i.current]), M = B.useCallback(() => {
6628
6648
  let k = 0;
6629
6649
  return e.header?.visibility === "always" && (k = k + (a || 0)), e.footer?.visibility === "always" && (k = k + (c || 0)), k;
6630
6650
  }, [r, r.current]);
6631
- return q.useEffect(() => {
6651
+ return B.useEffect(() => {
6632
6652
  g();
6633
- }, [g, t, t.current]), q.useEffect(() => {
6653
+ }, [g, t, t.current]), B.useEffect(() => {
6634
6654
  y();
6635
- }, [y, r, r.current]), q.useEffect(() => {
6655
+ }, [y, r, r.current]), B.useEffect(() => {
6636
6656
  E();
6637
6657
  }, [E, i, i.current]), {
6638
6658
  header: {
@@ -6953,8 +6973,8 @@ function Zo() {
6953
6973
  case y:
6954
6974
  return v ? f(1, D) : f(0, D + 1);
6955
6975
  case g:
6956
- var U = this.$locale().weekStart || 0, B = (I < U ? I + 7 : I) - U;
6957
- return f(v ? N - B : N + (6 - B), D);
6976
+ var U = this.$locale().weekStart || 0, q = (I < U ? I + 7 : I) - U;
6977
+ return f(v ? N - q : N + (6 - q), D);
6958
6978
  case d:
6959
6979
  case k:
6960
6980
  return O(V + "Hours", 0);
@@ -7000,7 +7020,7 @@ function Zo() {
7000
7020
  if (!this.isValid()) return z.invalidDate || p;
7001
7021
  var v = L || "YYYY-MM-DDTHH:mm:ssZ", n = C.z(this), f = this.$H, O = this.$m, I = this.$M, D = z.weekdays, N = z.months, V = z.meridiem, U = function(G, J, te, Z) {
7002
7022
  return G && (G[J] || G(o, v)) || te[J].slice(0, Z);
7003
- }, B = function(G) {
7023
+ }, q = function(G) {
7004
7024
  return C.s(f % 12 || 12, G, "0");
7005
7025
  }, K = V || function(G, J, te) {
7006
7026
  var Z = G < 12 ? "AM" : "PM";
@@ -7038,9 +7058,9 @@ function Zo() {
7038
7058
  case "HH":
7039
7059
  return C.s(f, 2, "0");
7040
7060
  case "h":
7041
- return B(1);
7061
+ return q(1);
7042
7062
  case "hh":
7043
- return B(2);
7063
+ return q(2);
7044
7064
  case "a":
7045
7065
  return K(f, O, !0);
7046
7066
  case "A":
@@ -7481,8 +7501,8 @@ const Es = ({
7481
7501
  styles: r,
7482
7502
  durationInSeconds: i = 3
7483
7503
  }) => {
7484
- const a = q.useRef(!1), { isItemVisible: s, hideItem: c } = Ct();
7485
- return q.useEffect(() => {
7504
+ const a = B.useRef(!1), { isItemVisible: s, hideItem: c } = Ct();
7505
+ return B.useEffect(() => {
7486
7506
  const u = s(e);
7487
7507
  a.current !== u && (a.current = u, u && setTimeout(() => c(e), i * 1e3));
7488
7508
  }, [a, s, c]), /* @__PURE__ */ X.jsx(X.Fragment, { children: s(e) && /* @__PURE__ */ X.jsx(
@@ -7545,7 +7565,7 @@ export {
7545
7565
  gs as Form,
7546
7566
  On as FormsHelper,
7547
7567
  ys as Image,
7548
- qo as InputField,
7568
+ Bo as InputField,
7549
7569
  bs as Loader,
7550
7570
  ws as Modal,
7551
7571
  ps as NavigationProvider,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eliseubatista99/react-scaffold-core",
3
- "version": "1.1.19",
3
+ "version": "1.1.21",
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",