thecore-auth 0.0.37 → 0.0.38

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.
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Je;function Lt(){if(Je)return X;Je=1;var t=d,n=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,c=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function p(v,f,x){var j,w={},S=null,T=null;x!==void 0&&(S=""+x),f.key!==void 0&&(S=""+f.key),f.ref!==void 0&&(T=f.ref);for(j in f)s.call(f,j)&&!u.hasOwnProperty(j)&&(w[j]=f[j]);if(v&&v.defaultProps)for(j in f=v.defaultProps,f)w[j]===void 0&&(w[j]=f[j]);return{$$typeof:n,type:v,key:S,ref:T,props:w,_owner:c.current}}return X.Fragment=a,X.jsx=p,X.jsxs=p,X}var Z={};/**
9
+ */var Je;function Lt(){if(Je)return X;Je=1;var t=d,n=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,c=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function p(v,f,x){var j,w={},S=null,T=null;x!==void 0&&(S=""+x),f.key!==void 0&&(S=""+f.key),f.ref!==void 0&&(T=f.ref);for(j in f)s.call(f,j)&&!u.hasOwnProperty(j)&&(w[j]=f[j]);if(v&&v.defaultProps)for(j in f=v.defaultProps,f)w[j]===void 0&&(w[j]=f[j]);return{$$typeof:n,type:v,key:S,ref:T,props:w,_owner:c.current}}return X.Fragment=o,X.jsx=p,X.jsxs=p,X}var Z={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,20 +14,20 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Ke;function Ft(){return Ke||(Ke=1,process.env.NODE_ENV!=="production"&&function(){var t=d,n=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),v=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),k=Symbol.iterator,$="@@iterator";function P(e){if(e===null||typeof e!="object")return null;var r=k&&e[k]||e[$];return typeof r=="function"?r:null}var m=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var r=arguments.length,o=new Array(r>1?r-1:0),l=1;l<r;l++)o[l-1]=arguments[l];N("error",e,o)}}function N(e,r,o){{var l=m.ReactDebugCurrentFrame,b=l.getStackAddendum();b!==""&&(r+="%s",o=o.concat([b]));var y=o.map(function(h){return String(h)});y.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,y)}}var D=!1,ue=!1,fe=!1,A=!1,L=!1,M;M=Symbol.for("react.module.reference");function F(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===u||L||e===c||e===x||e===j||A||e===T||D||ue||fe||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===w||e.$$typeof===p||e.$$typeof===v||e.$$typeof===f||e.$$typeof===M||e.getModuleId!==void 0))}function te(e,r,o){var l=e.displayName;if(l)return l;var b=r.displayName||r.name||"";return b!==""?o+"("+b+")":o}function B(e){return e.displayName||"Context"}function z(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case s:return"Fragment";case a:return"Portal";case u:return"Profiler";case c:return"StrictMode";case x:return"Suspense";case j:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v:var r=e;return B(r)+".Consumer";case p:var o=e;return B(o._context)+".Provider";case f:return te(e,e.render,"ForwardRef");case w:var l=e.displayName||null;return l!==null?l:z(e.type)||"Memo";case S:{var b=e,y=b._payload,h=b._init;try{return z(h(y))}catch{return null}}}return null}var W=Object.assign,G=0,Ce,Se,Re,Te,_e,Pe,Oe;function ke(){}ke.__reactDisabledLog=!0;function lt(){{if(G===0){Ce=console.log,Se=console.info,Re=console.warn,Te=console.error,_e=console.group,Pe=console.groupCollapsed,Oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}}function ct(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},e,{value:Ce}),info:W({},e,{value:Se}),warn:W({},e,{value:Re}),error:W({},e,{value:Te}),group:W({},e,{value:_e}),groupCollapsed:W({},e,{value:Pe}),groupEnd:W({},e,{value:Oe})})}G<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var de=m.ReactCurrentDispatcher,ge;function re(e,r,o){{if(ge===void 0)try{throw Error()}catch(b){var l=b.stack.trim().match(/\n( *(at )?)/);ge=l&&l[1]||""}return`
18
- `+ge+e}}var ve=!1,ne;{var ut=typeof WeakMap=="function"?WeakMap:Map;ne=new ut}function Ae(e,r){if(!e||ve)return"";{var o=ne.get(e);if(o!==void 0)return o}var l;ve=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=de.current,de.current=null,lt();try{if(r){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(O){l=O}Reflect.construct(e,[],h)}else{try{h.call()}catch(O){l=O}e.call(h.prototype)}}else{try{throw Error()}catch(O){l=O}e()}}catch(O){if(O&&l&&typeof O.stack=="string"){for(var g=O.stack.split(`
17
+ */var Ke;function Ft(){return Ke||(Ke=1,process.env.NODE_ENV!=="production"&&function(){var t=d,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),v=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),T=Symbol.for("react.offscreen"),k=Symbol.iterator,$="@@iterator";function P(e){if(e===null||typeof e!="object")return null;var r=k&&e[k]||e[$];return typeof r=="function"?r:null}var m=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(e){{for(var r=arguments.length,a=new Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];N("error",e,a)}}function N(e,r,a){{var l=m.ReactDebugCurrentFrame,b=l.getStackAddendum();b!==""&&(r+="%s",a=a.concat([b]));var y=a.map(function(h){return String(h)});y.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,y)}}var D=!1,ue=!1,fe=!1,A=!1,L=!1,M;M=Symbol.for("react.module.reference");function F(e){return!!(typeof e=="string"||typeof e=="function"||e===s||e===u||L||e===c||e===x||e===j||A||e===T||D||ue||fe||typeof e=="object"&&e!==null&&(e.$$typeof===S||e.$$typeof===w||e.$$typeof===p||e.$$typeof===v||e.$$typeof===f||e.$$typeof===M||e.getModuleId!==void 0))}function te(e,r,a){var l=e.displayName;if(l)return l;var b=r.displayName||r.name||"";return b!==""?a+"("+b+")":a}function B(e){return e.displayName||"Context"}function z(e){if(e==null)return null;if(typeof e.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case s:return"Fragment";case o:return"Portal";case u:return"Profiler";case c:return"StrictMode";case x:return"Suspense";case j:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case v:var r=e;return B(r)+".Consumer";case p:var a=e;return B(a._context)+".Provider";case f:return te(e,e.render,"ForwardRef");case w:var l=e.displayName||null;return l!==null?l:z(e.type)||"Memo";case S:{var b=e,y=b._payload,h=b._init;try{return z(h(y))}catch{return null}}}return null}var W=Object.assign,G=0,Ce,Se,Re,Te,_e,Pe,Oe;function ke(){}ke.__reactDisabledLog=!0;function lt(){{if(G===0){Ce=console.log,Se=console.info,Re=console.warn,Te=console.error,_e=console.group,Pe=console.groupCollapsed,Oe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ke,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}G++}}function ct(){{if(G--,G===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:W({},e,{value:Ce}),info:W({},e,{value:Se}),warn:W({},e,{value:Re}),error:W({},e,{value:Te}),group:W({},e,{value:_e}),groupCollapsed:W({},e,{value:Pe}),groupEnd:W({},e,{value:Oe})})}G<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var de=m.ReactCurrentDispatcher,ge;function re(e,r,a){{if(ge===void 0)try{throw Error()}catch(b){var l=b.stack.trim().match(/\n( *(at )?)/);ge=l&&l[1]||""}return`
18
+ `+ge+e}}var ve=!1,ne;{var ut=typeof WeakMap=="function"?WeakMap:Map;ne=new ut}function Ae(e,r){if(!e||ve)return"";{var a=ne.get(e);if(a!==void 0)return a}var l;ve=!0;var b=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=de.current,de.current=null,lt();try{if(r){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(O){l=O}Reflect.construct(e,[],h)}else{try{h.call()}catch(O){l=O}e.call(h.prototype)}}else{try{throw Error()}catch(O){l=O}e()}}catch(O){if(O&&l&&typeof O.stack=="string"){for(var g=O.stack.split(`
19
19
  `),_=l.stack.split(`
20
20
  `),C=g.length-1,R=_.length-1;C>=1&&R>=0&&g[C]!==_[R];)R--;for(;C>=1&&R>=0;C--,R--)if(g[C]!==_[R]){if(C!==1||R!==1)do if(C--,R--,R<0||g[C]!==_[R]){var I=`
21
- `+g[C].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,I),I}while(C>=1&&R>=0);break}}}finally{ve=!1,de.current=y,ct(),Error.prepareStackTrace=b}var Y=e?e.displayName||e.name:"",V=Y?re(Y):"";return typeof e=="function"&&ne.set(e,V),V}function ft(e,r,o){return Ae(e,!1)}function dt(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ae(e,r,o){if(e==null)return"";if(typeof e=="function")return Ae(e,dt(e));if(typeof e=="string")return re(e);switch(e){case x:return re("Suspense");case j:return re("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return ft(e.render);case w:return ae(e.type,r,o);case S:{var l=e,b=l._payload,y=l._init;try{return ae(y(b),r,o)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,Ie={},Ne=m.ReactDebugCurrentFrame;function oe(e){if(e){var r=e._owner,o=ae(e.type,e._source,r?r.type:null);Ne.setExtraStackFrame(o)}else Ne.setExtraStackFrame(null)}function gt(e,r,o,l,b){{var y=Function.call.bind(H);for(var h in e)if(y(e,h)){var g=void 0;try{if(typeof e[h]!="function"){var _=Error((l||"React class")+": "+o+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}g=e[h](r,h,l,o,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(C){g=C}g&&!(g instanceof Error)&&(oe(b),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",o,h,typeof g),oe(null)),g instanceof Error&&!(g.message in Ie)&&(Ie[g.message]=!0,oe(b),E("Failed %s type: %s",o,g.message),oe(null))}}}var vt=Array.isArray;function pe(e){return vt(e)}function pt(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,o=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return o}}function ht(e){try{return De(e),!1}catch{return!0}}function De(e){return""+e}function $e(e){if(ht(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(e)),De(e)}var Le=m.ReactCurrentOwner,mt={key:!0,ref:!0,__self:!0,__source:!0},Fe,Me;function bt(e){if(H.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function xt(e){if(H.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function yt(e,r){typeof e.ref=="string"&&Le.current}function Et(e,r){{var o=function(){Fe||(Fe=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}}function jt(e,r){{var o=function(){Me||(Me=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};o.isReactWarning=!0,Object.defineProperty(e,"ref",{get:o,configurable:!0})}}var wt=function(e,r,o,l,b,y,h){var g={$$typeof:n,type:e,key:r,ref:o,props:h,_owner:y};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Ct(e,r,o,l,b){{var y,h={},g=null,_=null;o!==void 0&&($e(o),g=""+o),xt(r)&&($e(r.key),g=""+r.key),bt(r)&&(_=r.ref,yt(r,b));for(y in r)H.call(r,y)&&!mt.hasOwnProperty(y)&&(h[y]=r[y]);if(e&&e.defaultProps){var C=e.defaultProps;for(y in C)h[y]===void 0&&(h[y]=C[y])}if(g||_){var R=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Et(h,R),_&&jt(h,R)}return wt(e,g,_,b,l,Le.current,h)}}var he=m.ReactCurrentOwner,ze=m.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,o=ae(e.type,e._source,r?r.type:null);ze.setExtraStackFrame(o)}else ze.setExtraStackFrame(null)}var me;me=!1;function be(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function We(){{if(he.current){var e=z(he.current.type);if(e)return`
21
+ `+g[C].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),typeof e=="function"&&ne.set(e,I),I}while(C>=1&&R>=0);break}}}finally{ve=!1,de.current=y,ct(),Error.prepareStackTrace=b}var Y=e?e.displayName||e.name:"",V=Y?re(Y):"";return typeof e=="function"&&ne.set(e,V),V}function ft(e,r,a){return Ae(e,!1)}function dt(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function oe(e,r,a){if(e==null)return"";if(typeof e=="function")return Ae(e,dt(e));if(typeof e=="string")return re(e);switch(e){case x:return re("Suspense");case j:return re("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case f:return ft(e.render);case w:return oe(e.type,r,a);case S:{var l=e,b=l._payload,y=l._init;try{return oe(y(b),r,a)}catch{}}}return""}var H=Object.prototype.hasOwnProperty,Ie={},Ne=m.ReactDebugCurrentFrame;function ae(e){if(e){var r=e._owner,a=oe(e.type,e._source,r?r.type:null);Ne.setExtraStackFrame(a)}else Ne.setExtraStackFrame(null)}function gt(e,r,a,l,b){{var y=Function.call.bind(H);for(var h in e)if(y(e,h)){var g=void 0;try{if(typeof e[h]!="function"){var _=Error((l||"React class")+": "+a+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw _.name="Invariant Violation",_}g=e[h](r,h,l,a,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(C){g=C}g&&!(g instanceof Error)&&(ae(b),E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",l||"React class",a,h,typeof g),ae(null)),g instanceof Error&&!(g.message in Ie)&&(Ie[g.message]=!0,ae(b),E("Failed %s type: %s",a,g.message),ae(null))}}}var vt=Array.isArray;function pe(e){return vt(e)}function pt(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,a=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return a}}function ht(e){try{return De(e),!1}catch{return!0}}function De(e){return""+e}function $e(e){if(ht(e))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",pt(e)),De(e)}var Le=m.ReactCurrentOwner,mt={key:!0,ref:!0,__self:!0,__source:!0},Fe,Me;function bt(e){if(H.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function xt(e){if(H.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function yt(e,r){typeof e.ref=="string"&&Le.current}function Et(e,r){{var a=function(){Fe||(Fe=!0,E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};a.isReactWarning=!0,Object.defineProperty(e,"key",{get:a,configurable:!0})}}function jt(e,r){{var a=function(){Me||(Me=!0,E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};a.isReactWarning=!0,Object.defineProperty(e,"ref",{get:a,configurable:!0})}}var wt=function(e,r,a,l,b,y,h){var g={$$typeof:n,type:e,key:r,ref:a,props:h,_owner:y};return g._store={},Object.defineProperty(g._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(g,"_self",{configurable:!1,enumerable:!1,writable:!1,value:l}),Object.defineProperty(g,"_source",{configurable:!1,enumerable:!1,writable:!1,value:b}),Object.freeze&&(Object.freeze(g.props),Object.freeze(g)),g};function Ct(e,r,a,l,b){{var y,h={},g=null,_=null;a!==void 0&&($e(a),g=""+a),xt(r)&&($e(r.key),g=""+r.key),bt(r)&&(_=r.ref,yt(r,b));for(y in r)H.call(r,y)&&!mt.hasOwnProperty(y)&&(h[y]=r[y]);if(e&&e.defaultProps){var C=e.defaultProps;for(y in C)h[y]===void 0&&(h[y]=C[y])}if(g||_){var R=typeof e=="function"?e.displayName||e.name||"Unknown":e;g&&Et(h,R),_&&jt(h,R)}return wt(e,g,_,b,l,Le.current,h)}}var he=m.ReactCurrentOwner,ze=m.ReactDebugCurrentFrame;function U(e){if(e){var r=e._owner,a=oe(e.type,e._source,r?r.type:null);ze.setExtraStackFrame(a)}else ze.setExtraStackFrame(null)}var me;me=!1;function be(e){return typeof e=="object"&&e!==null&&e.$$typeof===n}function We(){{if(he.current){var e=z(he.current.type);if(e)return`
22
22
 
23
- Check the render method of \``+e+"`."}return""}}function St(e){return""}var Ve={};function Rt(e){{var r=We();if(!r){var o=typeof e=="string"?e:e.displayName||e.name;o&&(r=`
23
+ Check the render method of \``+e+"`."}return""}}function St(e){return""}var Ve={};function Rt(e){{var r=We();if(!r){var a=typeof e=="string"?e:e.displayName||e.name;a&&(r=`
24
24
 
25
- Check the top-level render call using <`+o+">.")}return r}}function Be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var o=Rt(r);if(Ve[o])return;Ve[o]=!0;var l="";e&&e._owner&&e._owner!==he.current&&(l=" It was passed a child from "+z(e._owner.type)+"."),U(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',o,l),U(null)}}function Ue(e,r){{if(typeof e!="object")return;if(pe(e))for(var o=0;o<e.length;o++){var l=e[o];be(l)&&Be(l,r)}else if(be(e))e._store&&(e._store.validated=!0);else if(e){var b=P(e);if(typeof b=="function"&&b!==e.entries)for(var y=b.call(e),h;!(h=y.next()).done;)be(h.value)&&Be(h.value,r)}}}function Tt(e){{var r=e.type;if(r==null||typeof r=="string")return;var o;if(typeof r=="function")o=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===w))o=r.propTypes;else return;if(o){var l=z(r);gt(o,e.props,"prop",l,e)}else if(r.PropTypes!==void 0&&!me){me=!0;var b=z(r);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _t(e){{for(var r=Object.keys(e.props),o=0;o<r.length;o++){var l=r[o];if(l!=="children"&&l!=="key"){U(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),U(null);break}}e.ref!==null&&(U(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}var Ye={};function qe(e,r,o,l,b,y){{var h=F(e);if(!h){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _=St();_?g+=_:g+=We();var C;e===null?C="null":pe(e)?C="array":e!==void 0&&e.$$typeof===n?(C="<"+(z(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):C=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,g)}var R=Ct(e,r,o,b,y);if(R==null)return R;if(h){var I=r.children;if(I!==void 0)if(l)if(pe(I)){for(var Y=0;Y<I.length;Y++)Ue(I[Y],e);Object.freeze&&Object.freeze(I)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ue(I,e)}if(H.call(r,"key")){var V=z(e),O=Object.keys(r).filter(function(Nt){return Nt!=="key"}),xe=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!Ye[V+xe]){var It=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+a+">.")}return r}}function Be(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var a=Rt(r);if(Ve[a])return;Ve[a]=!0;var l="";e&&e._owner&&e._owner!==he.current&&(l=" It was passed a child from "+z(e._owner.type)+"."),U(e),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',a,l),U(null)}}function Ue(e,r){{if(typeof e!="object")return;if(pe(e))for(var a=0;a<e.length;a++){var l=e[a];be(l)&&Be(l,r)}else if(be(e))e._store&&(e._store.validated=!0);else if(e){var b=P(e);if(typeof b=="function"&&b!==e.entries)for(var y=b.call(e),h;!(h=y.next()).done;)be(h.value)&&Be(h.value,r)}}}function Tt(e){{var r=e.type;if(r==null||typeof r=="string")return;var a;if(typeof r=="function")a=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===f||r.$$typeof===w))a=r.propTypes;else return;if(a){var l=z(r);gt(a,e.props,"prop",l,e)}else if(r.PropTypes!==void 0&&!me){me=!0;var b=z(r);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",b||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _t(e){{for(var r=Object.keys(e.props),a=0;a<r.length;a++){var l=r[a];if(l!=="children"&&l!=="key"){U(e),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",l),U(null);break}}e.ref!==null&&(U(e),E("Invalid attribute `ref` supplied to `React.Fragment`."),U(null))}}var Ye={};function qe(e,r,a,l,b,y){{var h=F(e);if(!h){var g="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(g+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var _=St();_?g+=_:g+=We();var C;e===null?C="null":pe(e)?C="array":e!==void 0&&e.$$typeof===n?(C="<"+(z(e.type)||"Unknown")+" />",g=" Did you accidentally export a JSX literal instead of a component?"):C=typeof e,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",C,g)}var R=Ct(e,r,a,b,y);if(R==null)return R;if(h){var I=r.children;if(I!==void 0)if(l)if(pe(I)){for(var Y=0;Y<I.length;Y++)Ue(I[Y],e);Object.freeze&&Object.freeze(I)}else E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ue(I,e)}if(H.call(r,"key")){var V=z(e),O=Object.keys(r).filter(function(Nt){return Nt!=="key"}),xe=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!Ye[V+xe]){var It=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,xe,V,It,V),Ye[V+xe]=!0}}return e===s?_t(R):Tt(R),R}}function Pt(e,r,o){return qe(e,r,o,!0)}function Ot(e,r,o){return qe(e,r,o,!1)}var kt=Ot,At=Pt;Z.Fragment=s,Z.jsx=kt,Z.jsxs=At}()),Z}var Ge;function Mt(){return Ge||(Ge=1,process.env.NODE_ENV==="production"?se.exports=Lt():se.exports=Ft()),se.exports}var i=Mt();const Ze=d.createContext(),zt=({children:t})=>{const[n,a]=d.useState(!1);return i.jsx(Ze.Provider,{value:{isLoading:n,setIsLoading:a},children:t})},je=()=>{const t=d.useContext(Ze);if(t===void 0)throw new Error("Non puoi settare il loading");return t},Qe=({errorMessage:t,errorShow:n})=>i.jsx("section",{className:n?"":"hidden",children:i.jsxs("div",{className:"container mx-auto",children:[i.jsx("h1",{className:"text-center text-8xl my-12",children:"Errore"}),i.jsx("pre",{className:"text-xl",children:t})]})}),et=d.createContext(),Wt=({children:t})=>{const[n,a]=d.useState({}),[s,c]=d.useState(!1),u=`Creare un file config.json in public per il correto funzionamento
30
+ <%s key={someKey} {...props} />`,xe,V,It,V),Ye[V+xe]=!0}}return e===s?_t(R):Tt(R),R}}function Pt(e,r,a){return qe(e,r,a,!0)}function Ot(e,r,a){return qe(e,r,a,!1)}var kt=Ot,At=Pt;Z.Fragment=s,Z.jsx=kt,Z.jsxs=At}()),Z}var Ge;function Mt(){return Ge||(Ge=1,process.env.NODE_ENV==="production"?se.exports=Lt():se.exports=Ft()),se.exports}var i=Mt();const Ze=d.createContext(),zt=({children:t})=>{const[n,o]=d.useState(!1);return i.jsx(Ze.Provider,{value:{isLoading:n,setIsLoading:o},children:t})},je=()=>{const t=d.useContext(Ze);if(t===void 0)throw new Error("Non puoi settare il loading");return t},Qe=({errorMessage:t,errorShow:n})=>i.jsx("section",{className:n?"":"hidden",children:i.jsxs("div",{className:"container mx-auto",children:[i.jsx("h1",{className:"text-center text-8xl my-12",children:"Errore"}),i.jsx("pre",{className:"text-xl",children:t})]})}),et=d.createContext(),Wt=({children:t})=>{const[n,o]=d.useState({}),[s,c]=d.useState(!1),u=`Creare un file config.json in public per il correto funzionamento
31
31
  Esempio di config.json:
32
32
 
33
33
  {
@@ -44,4 +44,4 @@ Esempio di config.json:
44
44
  "defaultMessage": ""
45
45
  },
46
46
  "clearLoginFormOnError":
47
- }`,p=async()=>{try{const f=await(await fetch("/config.json")).json();a(f)}catch(v){console.error(v),c(!0)}};return d.useEffect(()=>{p()},[]),Object.keys(n).length===0?i.jsx(Qe,{errorShow:s,errorMessage:u}):i.jsx(et.Provider,{value:n,children:t})},ce=()=>{const t=d.useContext(et);if(t===void 0)throw new Error("Non puoi leggere i config");return t},tt=d.createContext(),Vt=({children:t})=>{const[n,a]=d.useState(!1),[s,c]=d.useState(),[u,p]=d.useState(),v={showAlert:n,setShowAlert:a,typeAlert:s,setTypeAlert:c,messageAlert:u,setMessageAlert:p};return i.jsx(tt.Provider,{value:v,children:t})},K=()=>{const t=d.useContext(tt);if(t===void 0)throw new Error("Non puoi modificare l'alert");return t};let q;const Q=async(t,n,a)=>{if(q)return q;try{const c=await(await fetch("/config.json")).json(),u=c.baseUri,{unauthorized:p,notFound:v,defaultMessage:f}=c.axiosErrors;return q=$t.create({baseURL:u,timeout:3e3}),q.interceptors.request.use(x=>x),q.interceptors.response.use(x=>x,x=>{if(x.response)switch(t(!0),n("danger"),x.response.status){case 401:localStorage.removeItem("accessToken"),a(p);break;case 404:a(v);break;default:a(`${f} ${x.response.status} ${x.response.data.error}`)}return Promise.reject(x)}),q}catch(s){console.error(s)}},rt=d.createContext(),Bt=({children:t})=>{const{heartbeatEndpoint:n,infiniteSession:a,timeDeducted:s,authenticatedEndpoint:c}=ce(),{setIsLoading:u}=je(),{setShowAlert:p,setMessageAlert:v,setTypeAlert:f}=K(),x=J.useNavigate(),[j,w]=d.useState(null),[S,T]=d.useState(),[k,$]=d.useState(),[P,m]=d.useState(),E=async(A,L)=>{A.preventDefault();try{u(!0),p(!1);const F=await(await Q(p,f,v)).post(c,{auth:L}),te=F.data.id,B=F.headers.token;B&&(localStorage.setItem("accessToken",B),localStorage.setItem("id",te),w(!0),T(B),x(`/dashboard/${te}`))}catch(M){console.error(M),u(!1)}},N=()=>{localStorage.removeItem("accessToken"),localStorage.removeItem("id"),w(!1),T(null)},D=async()=>{try{const A=localStorage.getItem("accessToken"),F=(await(await Q(p,f,v)).get(`${n}`,{headers:{Authorization:A}})).headers.token;localStorage.setItem("accessToken",F),T(F)}catch(A){console.error(A),N()}},ue=()=>{if(!S)return;const L=Dt(S).exp,M=Math.floor(Date.now()/1e3),F=(L-M)*1e3;m(F),$(F-s)};d.useEffect(()=>{if(localStorage.getItem("accessToken"))w(!0);else{w(!1);return}},[]),d.useEffect(()=>{ue();let A;a&&S&&k&&(A=setInterval(()=>{D()},k));let L;return!a&&S&&P&&(L=setTimeout(()=>{N(),p(!0),f("danger"),v("Sessione scaduta")},P)),()=>{A&&clearInterval(A),L&&clearTimeout(L)}},[S,k]);const fe={isAuthenticated:j,setIsAuthenticated:w,login:E,logout:N,setCurrentToken:T};return i.jsx(rt.Provider,{value:fe,children:t})},we=()=>{const t=d.useContext(rt);if(t===void 0)throw new Error("Non sei dentro al Auth Provider");return t},Ut=()=>{const{isAuthenticated:t}=we(),{setShowAlert:n,setTypeAlert:a,setMessageAlert:s}=K(),c=localStorage.getItem("accessToken");return d.useEffect(()=>{!t&&!c&&(n(!0),a("danger"),s("Non sei autorizzato"))},[]),t===null?null:t?i.jsx(J.Outlet,{}):i.jsx(J.Navigate,{to:"/"})};var nt={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},He=d.createContext&&d.createContext(nt),Yt=["attr","size","title"];function qt(t,n){if(t==null)return{};var a=Jt(t,n),s,c;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(c=0;c<u.length;c++)s=u[c],!(n.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(t,s)&&(a[s]=t[s])}return a}function Jt(t,n){if(t==null)return{};var a={};for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){if(n.indexOf(s)>=0)continue;a[s]=t[s]}return a}function ie(){return ie=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])}return t},ie.apply(this,arguments)}function Xe(t,n){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);n&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),a.push.apply(a,s)}return a}function le(t){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Xe(Object(a),!0).forEach(function(s){Kt(t,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Xe(Object(a)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(a,s))})}return t}function Kt(t,n,a){return n=Gt(n),n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t}function Gt(t){var n=Ht(t,"string");return typeof n=="symbol"?n:n+""}function Ht(t,n){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var s=a.call(t,n||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}function at(t){return t&&t.map((n,a)=>d.createElement(n.tag,le({key:a},n.attr),at(n.child)))}function ee(t){return n=>d.createElement(Xt,ie({attr:le({},t.attr)},n),at(t.child))}function Xt(t){var n=a=>{var{attr:s,size:c,title:u}=t,p=qt(t,Yt),v=c||a.size||"1em",f;return a.className&&(f=a.className),t.className&&(f=(f?f+" ":"")+t.className),d.createElement("svg",ie({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,s,p,{className:f,style:le(le({color:t.color||a.color},a.style),t.style),height:v,width:v,xmlns:"http://www.w3.org/2000/svg"}),u&&d.createElement("title",null,u),t.children)};return He!==void 0?d.createElement(He.Consumer,null,a=>n(a)):n(nt)}function Zt(t){return ee({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0c-4.355 0-7.898 3.481-7.998 7.812 0.092-3.779 2.966-6.812 6.498-6.812 3.59 0 6.5 3.134 6.5 7 0 0.828 0.672 1.5 1.5 1.5s1.5-0.672 1.5-1.5c0-4.418-3.582-8-8-8zM8 16c4.355 0 7.898-3.481 7.998-7.812-0.092 3.779-2.966 6.812-6.498 6.812-3.59 0-6.5-3.134-6.5-7 0-0.828-0.672-1.5-1.5-1.5s-1.5 0.672-1.5 1.5c0 4.418 3.582 8 8 8z"},child:[]}]})(t)}const ot=()=>i.jsxs("div",{className:"fixed top-0 bottom-0 left-0 right-0 flex items-center justify-center bg-[#00000080]",children:[i.jsx(Zt,{className:"text-[20rem] relative animate-spin text-white"}),i.jsx("p",{className:"text-white text-2xl select-none absolute",children:"Loading..."})]});function Qt(t){return ee({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor"},child:[]}]})(t)}function er(t){return ee({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"},child:[]}]})(t)}function tr(t){return ee({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"},child:[]}]})(t)}function rr(t){return ee({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M17.47 250.9C88.82 328.1 158 397.6 224.5 485.5c72.3-143.8 146.3-288.1 268.4-444.37L460 26.06C356.9 135.4 276.8 238.9 207.2 361.9c-48.4-43.6-126.62-105.3-174.38-137z"},child:[]}]})(t)}const st=()=>{const{showAlert:t,setShowAlert:n,messageAlert:a,typeAlert:s}=K(),{alertTimeout:c}=ce(),[u,p]=d.useState(0),v={danger:{bgColor:"bg-red-50",textColor:"text-red-700",buttonBg:"bg-red-50",hoverBg:"hover:bg-red-200",focusRing:"focus:ring-red-400",progressColor:"bg-red-400"},info:{bgColor:"bg-blue-50",textColor:"text-blue-700",buttonBg:"bg-blue-50",hoverBg:"hover:bg-blue-200",focusRing:"focus:ring-blue-400",progressColor:"bg-blue-400"},success:{bgColor:"bg-green-50",textColor:"text-green-700",buttonBg:"bg-green-50",hoverBg:"hover:bg-green-200",focusRing:"focus:ring-green-400",progressColor:"bg-green-400"}},{bgColor:f,textColor:x,buttonBg:j,hoverBg:w,focusRing:S,progressColor:T}=v[s],k=P=>{switch(P){case"danger":return i.jsx(tr,{className:"text-xl"});case"info":return i.jsx(er,{className:"text-xl"});case"success":return i.jsx(rr,{className:"text-xl"})}},$=()=>{n(!t)};return d.useEffect(()=>{let P;const E=100/(c/100);P=setInterval(()=>{p(D=>D>=100?(clearInterval(P),100):D+E)},100);const N=setTimeout(()=>{$()},c);return()=>{clearTimeout(N),clearInterval(P)}},[]),i.jsxs("div",{className:`flex items-center p-4 pt-6 ${x} rounded-lg ${f} mx-auto fixed top-[calc(100vh-100px)] right-10`,role:"alert",children:[i.jsx("div",{className:"w-full bg-gray-200 rounded-t-lg overflow-hidden h-2.5 dark:bg-gray-700 absolute top-0 left-0 right-0",children:i.jsx("div",{className:`${T} h-2.5 rounded-t-lg`,style:{width:`${u}%`}})}),k(s),i.jsx("div",{className:"px-4 text-sm font-medium",children:a}),i.jsx("button",{type:"button",className:`ms-auto ${j} rounded-lg focus:ring-2 ${S} p-1.5 ${w} inline-flex items-center justify-center h-8 w-8`,title:"Close",onClick:$,children:i.jsx(Qt,{className:"text-xl"})})]})},nr=()=>{const{isLoading:t}=je(),{showAlert:n}=K();return i.jsxs(i.Fragment,{children:[t&&i.jsx(ot,{}),i.jsxs("main",{className:t?"hidden":"",children:[n&&i.jsx(st,{}),i.jsx(J.Outlet,{})]})]})},ye=t=>{const{inputType:n,inputId:a,inputPlaceholder:s,inputRequired:c,inputValue:u,inputChange:p}=t,f=["text","email","password","search","tel","url"].includes(n)?n:"text";return i.jsx("input",{type:f,id:a,className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:s,required:c??!0,value:u,onChange:p})},Ee=({label:t,labelId:n,labelStyle:a})=>i.jsx("label",{htmlFor:n,className:`${a??"block mb-2 text-sm font-medium text-gray-900"}`,children:t}),it=t=>{const{formStyle:n,userData:a,userInput:s,title:c,buttonStyle:u,formData:p,changeValue:v,submitForm:f}=t;return i.jsxs("form",{onSubmit:f,className:`${n.size} ${n.rounded} ${n.shadow} ${n.bgColor}`,children:[i.jsx("h1",{className:`${c.size} ${c.position} ${c.spacing}`,children:c.text}),i.jsxs("div",{className:"flex justify-center flex-col gap-1 my-4 w-1/2 mx-auto",children:[i.jsx(Ee,{labelId:"user-email",label:s.label}),i.jsx(ye,{inputType:s.label,inputId:"user-email",inputPlaceholder:s.placeholder,inputValue:a?p[a]:p.email,inputChange:x=>{v(a||"email",x.target.value)}})]}),i.jsxs("div",{className:"flex justify-center flex-col gap-1 my-4 w-1/2 mx-auto",children:[i.jsx(Ee,{labelId:"password",label:"Password"}),i.jsx(ye,{inputType:"password",inputId:"password",inputPlaceholder:"Password",inputValue:p.password,inputChange:x=>{v("password",x.target.value)}})]}),i.jsx("div",{className:`flex ${u.position} items-center ${u.spacing}`,children:i.jsx("button",{className:`${u.color} ${u.hoverColor} ${u.textColor} font-bold ${u.size} ${u.rounded}`,children:u.text})})]})},ar=t=>{const{formStyle:n={size:"w-[800px]",bgColor:"bg-slate-50",rounded:"rounded-lg",shadow:"shadow-lg"},userData:a,userInput:s={label:"Email",type:"email",placeholder:"email@email.it"},title:c={text:"Login",size:"text-4xl",position:"text-center",spacing:"my-12"},buttonStyle:u={position:"justify-center",spacing:"my-12",color:"bg-blue-500",hoverColor:"hover:bg-blue-700",textColor:"text-white",size:"py-2 px-4",rounded:"rounded-full",text:"Login"}}=t,{login:p}=we(),{setShowAlert:v,setTypeAlert:f,setMessageAlert:x}=K(),{clearLoginFormOnError:j}=ce(),w=J.useNavigate(),S={email:"",password:""},[T,k]=d.useState(S),$=(m,E)=>{k(N=>({...N,[m]:E}))},P=m=>{p(m,T),j&&k(S)};return d.useEffect(()=>{const m=localStorage.getItem("id");localStorage.getItem("accessToken")&&m&&(w(`/dashboard/${m}`),v(!0),f("info"),x("Sei già loggato"))},[]),i.jsx("section",{children:i.jsx("div",{className:"container mx-auto flex items-center justify-center h-screen",children:i.jsx(it,{submitForm:P,formData:T,changeValue:$,formStyle:n,userData:a,userInput:s,title:c,buttonStyle:u})})})},or=()=>{const{id:t}=J.useParams(),{logout:n,setCurrentToken:a}=we(),{usersEndpoint:s}=ce(),{setIsLoading:c}=je(),{setShowAlert:u,setTypeAlert:p,setMessageAlert:v}=K(),[f,x]=d.useState({}),[j,w]=d.useState(null),[S,T]=d.useState(!1),k=async()=>{try{c(!0);const m=localStorage.getItem("accessToken");if(!m){n(),u(!0),p("danger"),v("Sessione scaduta");return}a(m);const D=(await(await Q(u,p,v)).get(`${s}${t}`,{headers:{Authorization:m}})).data;x(D),c(!1)}catch(m){console.error(m),c(!1),n()}},$=async()=>{try{T(!0);const m=localStorage.getItem("accessToken");if(!m){n(),u(!0),p("danger"),v("Sessione scaduta");return}const D=(await(await Q(u,p,v)).get(`${s}`,{headers:{Authorization:m}})).data;w(D),D&&T(!1)}catch(m){console.error(m),c(!1),m.status===401&&n(),T(!1)}},P=()=>{n(),u(!0),p("info"),v("Hai effettuato il logout")};return d.useEffect(()=>{k()},[]),i.jsx("section",{children:i.jsxs("div",{className:"container mx-auto py-8",children:[i.jsxs("div",{className:"flex items-center justify-center gap-8 h-20",children:[i.jsxs("h1",{className:"text-4xl text-center text-slate-800",children:["Email: ",f.email]}),i.jsx("button",{onClick:P,className:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded-full",children:"Logout"})]}),i.jsx("div",{className:"flex justify-center items-center my-12",children:i.jsx("button",{onClick:$,className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full disabled:bg-blue-300 disabled:text-gray-500 disabled:cursor-not-allowed",disabled:S,children:"Lista degli utenti"})}),i.jsx("div",{className:"flex justify-center items-center",children:j&&i.jsx("ul",{children:j.map(m=>i.jsxs("li",{className:"text-xl my-4",children:[m.id," - ",m.email]},`user-${m.id}`))})})]})})};exports.Alert=st;exports.AlertProvider=Vt;exports.AuthPage=Ut;exports.AuthProvider=Bt;exports.ConfigProvider=Wt;exports.Dashboard=or;exports.DefaultLayout=nr;exports.ErrorPage=Qe;exports.Input=ye;exports.InputLabel=Ee;exports.Loading=ot;exports.LoadingProvider=zt;exports.Login=ar;exports.LoginForm=it;exports.fetchAxiosConfig=Q;
47
+ }`,p=async()=>{try{const f=await(await fetch("/config.json")).json();o(f)}catch(v){console.error(v),c(!0)}};return d.useEffect(()=>{p()},[]),Object.keys(n).length===0?i.jsx(Qe,{errorShow:s,errorMessage:u}):i.jsx(et.Provider,{value:n,children:t})},ce=()=>{const t=d.useContext(et);if(t===void 0)throw new Error("Non puoi leggere i config");return t},tt=d.createContext(),Vt=({children:t})=>{const[n,o]=d.useState(!1),[s,c]=d.useState(),[u,p]=d.useState(),v={showAlert:n,setShowAlert:o,typeAlert:s,setTypeAlert:c,messageAlert:u,setMessageAlert:p};return i.jsx(tt.Provider,{value:v,children:t})},K=()=>{const t=d.useContext(tt);if(t===void 0)throw new Error("Non puoi modificare l'alert");return t};let q;const Q=async(t,n,o)=>{if(q)return q;try{const c=await(await fetch("/config.json")).json(),u=c.baseUri,{unauthorized:p,notFound:v,defaultMessage:f}=c.axiosErrors;return q=$t.create({baseURL:u,timeout:5e3}),q.interceptors.request.use(x=>x),q.interceptors.response.use(x=>x,x=>{if(x.response)switch(t(!0),n("danger"),x.response.status){case 401:localStorage.removeItem("accessToken"),o(p);break;case 404:o(v);break;default:o(`${f} ${x.response.status} ${x.response.data.error}`)}return Promise.reject(x)}),q}catch(s){console.error(s)}},rt=d.createContext(),Bt=({children:t})=>{const{heartbeatEndpoint:n,infiniteSession:o,timeDeducted:s,authenticatedEndpoint:c}=ce(),{setIsLoading:u}=je(),{setShowAlert:p,setMessageAlert:v,setTypeAlert:f}=K(),x=J.useNavigate(),[j,w]=d.useState(null),[S,T]=d.useState(),[k,$]=d.useState(),[P,m]=d.useState(),E=async(A,L)=>{A.preventDefault();try{u(!0),p(!1);const F=await(await Q(p,f,v)).post(c,{auth:L}),te=F.data.id,B=F.headers.token;B&&(localStorage.setItem("accessToken",B),localStorage.setItem("id",te),w(!0),T(B),x(`/dashboard/${te}`))}catch(M){console.error(M),u(!1)}},N=()=>{localStorage.removeItem("accessToken"),localStorage.removeItem("id"),w(!1),T(null)},D=async()=>{try{const A=localStorage.getItem("accessToken"),F=(await(await Q(p,f,v)).get(`${n}`,{headers:{Authorization:A}})).headers.token;localStorage.setItem("accessToken",F),T(F)}catch(A){console.error(A),N()}},ue=()=>{if(!S)return;const L=Dt(S).exp,M=Math.floor(Date.now()/1e3),F=(L-M)*1e3;m(F),$(F-s)};d.useEffect(()=>{if(localStorage.getItem("accessToken"))w(!0);else{w(!1);return}},[]),d.useEffect(()=>{ue();let A;o&&S&&k&&(A=setInterval(()=>{D()},k));let L;return!o&&S&&P&&(L=setTimeout(()=>{N(),p(!0),f("danger"),v("Sessione scaduta")},P)),()=>{A&&clearInterval(A),L&&clearTimeout(L)}},[S,k]);const fe={isAuthenticated:j,setIsAuthenticated:w,login:E,logout:N,setCurrentToken:T};return i.jsx(rt.Provider,{value:fe,children:t})},we=()=>{const t=d.useContext(rt);if(t===void 0)throw new Error("Non sei dentro al Auth Provider");return t},Ut=()=>{const{isAuthenticated:t}=we(),{setShowAlert:n,setTypeAlert:o,setMessageAlert:s}=K(),c=localStorage.getItem("accessToken");return d.useEffect(()=>{!t&&!c&&(n(!0),o("danger"),s("Non sei autorizzato"))},[]),t===null?null:t?i.jsx(J.Outlet,{}):i.jsx(J.Navigate,{to:"/"})};var nt={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},He=d.createContext&&d.createContext(nt),Yt=["attr","size","title"];function qt(t,n){if(t==null)return{};var o=Jt(t,n),s,c;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(c=0;c<u.length;c++)s=u[c],!(n.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(t,s)&&(o[s]=t[s])}return o}function Jt(t,n){if(t==null)return{};var o={};for(var s in t)if(Object.prototype.hasOwnProperty.call(t,s)){if(n.indexOf(s)>=0)continue;o[s]=t[s]}return o}function ie(){return ie=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(t[s]=o[s])}return t},ie.apply(this,arguments)}function Xe(t,n){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);n&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(t,c).enumerable})),o.push.apply(o,s)}return o}function le(t){for(var n=1;n<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?Xe(Object(o),!0).forEach(function(s){Kt(t,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):Xe(Object(o)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(o,s))})}return t}function Kt(t,n,o){return n=Gt(n),n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t}function Gt(t){var n=Ht(t,"string");return typeof n=="symbol"?n:n+""}function Ht(t,n){if(typeof t!="object"||!t)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var s=o.call(t,n||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}function ot(t){return t&&t.map((n,o)=>d.createElement(n.tag,le({key:o},n.attr),ot(n.child)))}function ee(t){return n=>d.createElement(Xt,ie({attr:le({},t.attr)},n),ot(t.child))}function Xt(t){var n=o=>{var{attr:s,size:c,title:u}=t,p=qt(t,Yt),v=c||o.size||"1em",f;return o.className&&(f=o.className),t.className&&(f=(f?f+" ":"")+t.className),d.createElement("svg",ie({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},o.attr,s,p,{className:f,style:le(le({color:t.color||o.color},o.style),t.style),height:v,width:v,xmlns:"http://www.w3.org/2000/svg"}),u&&d.createElement("title",null,u),t.children)};return He!==void 0?d.createElement(He.Consumer,null,o=>n(o)):n(nt)}function Zt(t){return ee({tag:"svg",attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0c-4.355 0-7.898 3.481-7.998 7.812 0.092-3.779 2.966-6.812 6.498-6.812 3.59 0 6.5 3.134 6.5 7 0 0.828 0.672 1.5 1.5 1.5s1.5-0.672 1.5-1.5c0-4.418-3.582-8-8-8zM8 16c4.355 0 7.898-3.481 7.998-7.812-0.092 3.779-2.966 6.812-6.498 6.812-3.59 0-6.5-3.134-6.5-7 0-0.828-0.672-1.5-1.5-1.5s-1.5 0.672-1.5 1.5c0 4.418 3.582 8 8 8z"},child:[]}]})(t)}const at=()=>i.jsxs("div",{className:"fixed top-0 bottom-0 left-0 right-0 flex items-center justify-center bg-[#00000080]",children:[i.jsx(Zt,{className:"text-[20rem] relative animate-spin text-white"}),i.jsx("p",{className:"text-white text-2xl select-none absolute",children:"Loading..."})]});function Qt(t){return ee({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor"},child:[]}]})(t)}function er(t){return ee({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"},child:[]}]})(t)}function tr(t){return ee({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 0 1 0-96 48.01 48.01 0 0 1 0 96z"},child:[]}]})(t)}function rr(t){return ee({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M17.47 250.9C88.82 328.1 158 397.6 224.5 485.5c72.3-143.8 146.3-288.1 268.4-444.37L460 26.06C356.9 135.4 276.8 238.9 207.2 361.9c-48.4-43.6-126.62-105.3-174.38-137z"},child:[]}]})(t)}const st=()=>{const{showAlert:t,setShowAlert:n,messageAlert:o,typeAlert:s}=K(),{alertTimeout:c}=ce(),[u,p]=d.useState(0),v={danger:{bgColor:"bg-red-50",textColor:"text-red-700",buttonBg:"bg-red-50",hoverBg:"hover:bg-red-200",focusRing:"focus:ring-red-400",progressColor:"bg-red-400"},info:{bgColor:"bg-blue-50",textColor:"text-blue-700",buttonBg:"bg-blue-50",hoverBg:"hover:bg-blue-200",focusRing:"focus:ring-blue-400",progressColor:"bg-blue-400"},success:{bgColor:"bg-green-50",textColor:"text-green-700",buttonBg:"bg-green-50",hoverBg:"hover:bg-green-200",focusRing:"focus:ring-green-400",progressColor:"bg-green-400"}},{bgColor:f,textColor:x,buttonBg:j,hoverBg:w,focusRing:S,progressColor:T}=v[s],k=P=>{switch(P){case"danger":return i.jsx(tr,{className:"text-xl"});case"info":return i.jsx(er,{className:"text-xl"});case"success":return i.jsx(rr,{className:"text-xl"})}},$=()=>{n(!t)};return d.useEffect(()=>{let P;const E=100/(c/100);P=setInterval(()=>{p(D=>D>=100?(clearInterval(P),100):D+E)},100);const N=setTimeout(()=>{$()},c);return()=>{clearTimeout(N),clearInterval(P)}},[]),i.jsxs("div",{className:`flex items-center p-4 pt-6 ${x} rounded-lg ${f} mx-auto fixed top-[calc(100vh-100px)] right-10`,role:"alert",children:[i.jsx("div",{className:"w-full bg-gray-200 rounded-t-lg overflow-hidden h-2.5 dark:bg-gray-700 absolute top-0 left-0 right-0",children:i.jsx("div",{className:`${T} h-2.5 rounded-t-lg`,style:{width:`${u}%`}})}),k(s),i.jsx("div",{className:"px-4 text-sm font-medium",children:o}),i.jsx("button",{type:"button",className:`ms-auto ${j} rounded-lg focus:ring-2 ${S} p-1.5 ${w} inline-flex items-center justify-center h-8 w-8 cursor-pointer`,title:"Close",onClick:$,children:i.jsx(Qt,{className:"text-xl"})})]})},nr=()=>{const{isLoading:t}=je(),{showAlert:n}=K();return i.jsxs(i.Fragment,{children:[t&&i.jsx(at,{}),i.jsxs("main",{className:t?"hidden":"",children:[n&&i.jsx(st,{}),i.jsx(J.Outlet,{})]})]})},ye=t=>{const{inputType:n,inputId:o,inputPlaceholder:s,inputRequired:c,inputValue:u,inputChange:p}=t,f=["text","email","password","search","tel","url"].includes(n)?n:"text";return i.jsx("input",{type:f,id:o,className:"bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5",placeholder:s,required:c??!0,value:u,onChange:p})},Ee=({label:t,labelId:n,labelStyle:o})=>i.jsx("label",{htmlFor:n,className:`${o??"block mb-2 text-sm font-medium text-gray-900"}`,children:t}),it=t=>{const{formStyle:n,userData:o,userInput:s,title:c,buttonStyle:u,formData:p,changeValue:v,submitForm:f}=t;return i.jsxs("form",{onSubmit:f,className:`${n.size} ${n.rounded} ${n.shadow} ${n.bgColor}`,children:[i.jsx("h1",{className:`${c.size} ${c.position} ${c.spacing}`,children:c.text}),i.jsxs("div",{className:"flex justify-center flex-col gap-1 my-4 w-1/2 mx-auto",children:[i.jsx(Ee,{labelId:"user-email",label:s.label}),i.jsx(ye,{inputType:s.label,inputId:"user-email",inputPlaceholder:s.placeholder,inputValue:o?p[o]:p.email,inputChange:x=>{v(o||"email",x.target.value)}})]}),i.jsxs("div",{className:"flex justify-center flex-col gap-1 my-4 w-1/2 mx-auto",children:[i.jsx(Ee,{labelId:"password",label:"Password"}),i.jsx(ye,{inputType:"password",inputId:"password",inputPlaceholder:"Password",inputValue:p.password,inputChange:x=>{v("password",x.target.value)}})]}),i.jsx("div",{className:`flex ${u.position} items-center ${u.spacing}`,children:i.jsx("button",{className:`${u.color} ${u.hoverColor} ${u.textColor} font-bold cursor-pointer ${u.size} ${u.rounded}`,children:u.text})})]})},or=t=>{const{formStyle:n={size:"w-[800px]",bgColor:"bg-slate-50",rounded:"rounded-lg",shadow:"shadow-lg"},userData:o,userInput:s={label:"Email",type:"email",placeholder:"email@email.it"},title:c={text:"Login",size:"text-4xl",position:"text-center",spacing:"my-12"},buttonStyle:u={position:"justify-center",spacing:"my-12",color:"bg-blue-500",hoverColor:"hover:bg-blue-700",textColor:"text-white",size:"py-2 px-4",rounded:"rounded-full",text:"Login"}}=t,{login:p}=we(),{setShowAlert:v,setTypeAlert:f,setMessageAlert:x}=K(),{clearLoginFormOnError:j}=ce(),w=J.useNavigate(),S={email:"",password:""},[T,k]=d.useState(S),$=(m,E)=>{k(N=>({...N,[m]:E}))},P=m=>{p(m,T),j&&k(S)};return d.useEffect(()=>{const m=localStorage.getItem("id");localStorage.getItem("accessToken")&&m&&(w(`/dashboard/${m}`),v(!0),f("info"),x("Sei già loggato"))},[]),i.jsx("section",{children:i.jsx("div",{className:"container mx-auto flex items-center justify-center h-screen",children:i.jsx(it,{submitForm:P,formData:T,changeValue:$,formStyle:n,userData:o,userInput:s,title:c,buttonStyle:u})})})},ar=()=>{const{id:t}=J.useParams(),{logout:n,setCurrentToken:o}=we(),{usersEndpoint:s}=ce(),{setIsLoading:c}=je(),{setShowAlert:u,setTypeAlert:p,setMessageAlert:v}=K(),[f,x]=d.useState({}),[j,w]=d.useState(null),[S,T]=d.useState(!1),k=async()=>{try{c(!0);const m=localStorage.getItem("accessToken");if(!m){n(),u(!0),p("danger"),v("Sessione scaduta");return}o(m);const D=(await(await Q(u,p,v)).get(`${s}${t}`,{headers:{Authorization:m}})).data;x(D),c(!1)}catch(m){console.error(m),c(!1),n()}},$=async()=>{try{T(!0);const m=localStorage.getItem("accessToken");if(!m){n(),u(!0),p("danger"),v("Sessione scaduta");return}const D=(await(await Q(u,p,v)).get(`${s}`,{headers:{Authorization:m}})).data;w(D),D&&T(!1)}catch(m){console.error(m),c(!1),m.status===401&&n(),T(!1)}},P=()=>{n(),u(!0),p("info"),v("Hai effettuato il logout")};return d.useEffect(()=>{k()},[]),i.jsx("section",{children:i.jsxs("div",{className:"container mx-auto py-8",children:[i.jsxs("div",{className:"flex items-center justify-center gap-8 h-20",children:[i.jsxs("h1",{className:"text-4xl text-center text-slate-800",children:["Email: ",f.email]}),i.jsx("button",{onClick:P,className:"bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded-full cursor-pointer",children:"Logout"})]}),i.jsx("div",{className:"flex justify-center items-center my-12",children:i.jsx("button",{onClick:$,className:"bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full disabled:bg-blue-300 disabled:text-gray-500 disabled:cursor-not-allowed cursor-pointer",disabled:S,children:"Lista degli utenti"})}),i.jsx("div",{className:"flex justify-center items-center",children:j&&i.jsx("ul",{children:j.map(m=>i.jsxs("li",{className:"text-xl my-4",children:[m.id," - ",m.email]},`user-${m.id}`))})})]})})};exports.Alert=st;exports.AlertProvider=Vt;exports.AuthPage=Ut;exports.AuthProvider=Bt;exports.ConfigProvider=Wt;exports.Dashboard=ar;exports.DefaultLayout=nr;exports.ErrorPage=Qe;exports.Input=ye;exports.InputLabel=Ee;exports.Loading=at;exports.LoadingProvider=zt;exports.Login=or;exports.LoginForm=it;exports.fetchAxiosConfig=Q;
@@ -0,0 +1 @@
1
+ /*! tailwindcss v4.0.3 | MIT License | https://tailwindcss.com */@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-serif:ui-serif,Georgia,Cambria,"Times New Roman",Times,serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-50:oklch(.971 .013 17.38);--color-red-100:oklch(.936 .032 17.717);--color-red-200:oklch(.885 .062 18.334);--color-red-300:oklch(.808 .114 19.571);--color-red-400:oklch(.704 .191 22.216);--color-red-500:oklch(.637 .237 25.331);--color-red-600:oklch(.577 .245 27.325);--color-red-700:oklch(.505 .213 27.518);--color-red-800:oklch(.444 .177 26.899);--color-red-900:oklch(.396 .141 25.723);--color-red-950:oklch(.258 .092 26.042);--color-orange-50:oklch(.98 .016 73.684);--color-orange-100:oklch(.954 .038 75.164);--color-orange-200:oklch(.901 .076 70.697);--color-orange-300:oklch(.837 .128 66.29);--color-orange-400:oklch(.75 .183 55.934);--color-orange-500:oklch(.705 .213 47.604);--color-orange-600:oklch(.646 .222 41.116);--color-orange-700:oklch(.553 .195 38.402);--color-orange-800:oklch(.47 .157 37.304);--color-orange-900:oklch(.408 .123 38.172);--color-orange-950:oklch(.266 .079 36.259);--color-amber-50:oklch(.987 .022 95.277);--color-amber-100:oklch(.962 .059 95.617);--color-amber-200:oklch(.924 .12 95.746);--color-amber-300:oklch(.879 .169 91.605);--color-amber-400:oklch(.828 .189 84.429);--color-amber-500:oklch(.769 .188 70.08);--color-amber-600:oklch(.666 .179 58.318);--color-amber-700:oklch(.555 .163 48.998);--color-amber-800:oklch(.473 .137 46.201);--color-amber-900:oklch(.414 .112 45.904);--color-amber-950:oklch(.279 .077 45.635);--color-yellow-50:oklch(.987 .026 102.212);--color-yellow-100:oklch(.973 .071 103.193);--color-yellow-200:oklch(.945 .129 101.54);--color-yellow-300:oklch(.905 .182 98.111);--color-yellow-400:oklch(.852 .199 91.936);--color-yellow-500:oklch(.795 .184 86.047);--color-yellow-600:oklch(.681 .162 75.834);--color-yellow-700:oklch(.554 .135 66.442);--color-yellow-800:oklch(.476 .114 61.907);--color-yellow-900:oklch(.421 .095 57.708);--color-yellow-950:oklch(.286 .066 53.813);--color-lime-50:oklch(.986 .031 120.757);--color-lime-100:oklch(.967 .067 122.328);--color-lime-200:oklch(.938 .127 124.321);--color-lime-300:oklch(.897 .196 126.665);--color-lime-400:oklch(.841 .238 128.85);--color-lime-500:oklch(.768 .233 130.85);--color-lime-600:oklch(.648 .2 131.684);--color-lime-700:oklch(.532 .157 131.589);--color-lime-800:oklch(.453 .124 130.933);--color-lime-900:oklch(.405 .101 131.063);--color-lime-950:oklch(.274 .072 132.109);--color-green-50:oklch(.982 .018 155.826);--color-green-100:oklch(.962 .044 156.743);--color-green-200:oklch(.925 .084 155.995);--color-green-300:oklch(.871 .15 154.449);--color-green-400:oklch(.792 .209 151.711);--color-green-500:oklch(.723 .219 149.579);--color-green-600:oklch(.627 .194 149.214);--color-green-700:oklch(.527 .154 150.069);--color-green-800:oklch(.448 .119 151.328);--color-green-900:oklch(.393 .095 152.535);--color-green-950:oklch(.266 .065 152.934);--color-emerald-50:oklch(.979 .021 166.113);--color-emerald-100:oklch(.95 .052 163.051);--color-emerald-200:oklch(.905 .093 164.15);--color-emerald-300:oklch(.845 .143 164.978);--color-emerald-400:oklch(.765 .177 163.223);--color-emerald-500:oklch(.696 .17 162.48);--color-emerald-600:oklch(.596 .145 163.225);--color-emerald-700:oklch(.508 .118 165.612);--color-emerald-800:oklch(.432 .095 166.913);--color-emerald-900:oklch(.378 .077 168.94);--color-emerald-950:oklch(.262 .051 172.552);--color-teal-50:oklch(.984 .014 180.72);--color-teal-100:oklch(.953 .051 180.801);--color-teal-200:oklch(.91 .096 180.426);--color-teal-300:oklch(.855 .138 181.071);--color-teal-400:oklch(.777 .152 181.912);--color-teal-500:oklch(.704 .14 182.503);--color-teal-600:oklch(.6 .118 184.704);--color-teal-700:oklch(.511 .096 186.391);--color-teal-800:oklch(.437 .078 188.216);--color-teal-900:oklch(.386 .063 188.416);--color-teal-950:oklch(.277 .046 192.524);--color-cyan-50:oklch(.984 .019 200.873);--color-cyan-100:oklch(.956 .045 203.388);--color-cyan-200:oklch(.917 .08 205.041);--color-cyan-300:oklch(.865 .127 207.078);--color-cyan-400:oklch(.789 .154 211.53);--color-cyan-500:oklch(.715 .143 215.221);--color-cyan-600:oklch(.609 .126 221.723);--color-cyan-700:oklch(.52 .105 223.128);--color-cyan-800:oklch(.45 .085 224.283);--color-cyan-900:oklch(.398 .07 227.392);--color-cyan-950:oklch(.302 .056 229.695);--color-sky-50:oklch(.977 .013 236.62);--color-sky-100:oklch(.951 .026 236.824);--color-sky-200:oklch(.901 .058 230.902);--color-sky-300:oklch(.828 .111 230.318);--color-sky-400:oklch(.746 .16 232.661);--color-sky-500:oklch(.685 .169 237.323);--color-sky-600:oklch(.588 .158 241.966);--color-sky-700:oklch(.5 .134 242.749);--color-sky-800:oklch(.443 .11 240.79);--color-sky-900:oklch(.391 .09 240.876);--color-sky-950:oklch(.293 .066 243.157);--color-blue-50:oklch(.97 .014 254.604);--color-blue-100:oklch(.932 .032 255.585);--color-blue-200:oklch(.882 .059 254.128);--color-blue-300:oklch(.809 .105 251.813);--color-blue-400:oklch(.707 .165 254.624);--color-blue-500:oklch(.623 .214 259.815);--color-blue-600:oklch(.546 .245 262.881);--color-blue-700:oklch(.488 .243 264.376);--color-blue-800:oklch(.424 .199 265.638);--color-blue-900:oklch(.379 .146 265.522);--color-blue-950:oklch(.282 .091 267.935);--color-indigo-50:oklch(.962 .018 272.314);--color-indigo-100:oklch(.93 .034 272.788);--color-indigo-200:oklch(.87 .065 274.039);--color-indigo-300:oklch(.785 .115 274.713);--color-indigo-400:oklch(.673 .182 276.935);--color-indigo-500:oklch(.585 .233 277.117);--color-indigo-600:oklch(.511 .262 276.966);--color-indigo-700:oklch(.457 .24 277.023);--color-indigo-800:oklch(.398 .195 277.366);--color-indigo-900:oklch(.359 .144 278.697);--color-indigo-950:oklch(.257 .09 281.288);--color-violet-50:oklch(.969 .016 293.756);--color-violet-100:oklch(.943 .029 294.588);--color-violet-200:oklch(.894 .057 293.283);--color-violet-300:oklch(.811 .111 293.571);--color-violet-400:oklch(.702 .183 293.541);--color-violet-500:oklch(.606 .25 292.717);--color-violet-600:oklch(.541 .281 293.009);--color-violet-700:oklch(.491 .27 292.581);--color-violet-800:oklch(.432 .232 292.759);--color-violet-900:oklch(.38 .189 293.745);--color-violet-950:oklch(.283 .141 291.089);--color-purple-50:oklch(.977 .014 308.299);--color-purple-100:oklch(.946 .033 307.174);--color-purple-200:oklch(.902 .063 306.703);--color-purple-300:oklch(.827 .119 306.383);--color-purple-400:oklch(.714 .203 305.504);--color-purple-500:oklch(.627 .265 303.9);--color-purple-600:oklch(.558 .288 302.321);--color-purple-700:oklch(.496 .265 301.924);--color-purple-800:oklch(.438 .218 303.724);--color-purple-900:oklch(.381 .176 304.987);--color-purple-950:oklch(.291 .149 302.717);--color-fuchsia-50:oklch(.977 .017 320.058);--color-fuchsia-100:oklch(.952 .037 318.852);--color-fuchsia-200:oklch(.903 .076 319.62);--color-fuchsia-300:oklch(.833 .145 321.434);--color-fuchsia-400:oklch(.74 .238 322.16);--color-fuchsia-500:oklch(.667 .295 322.15);--color-fuchsia-600:oklch(.591 .293 322.896);--color-fuchsia-700:oklch(.518 .253 323.949);--color-fuchsia-800:oklch(.452 .211 324.591);--color-fuchsia-900:oklch(.401 .17 325.612);--color-fuchsia-950:oklch(.293 .136 325.661);--color-pink-50:oklch(.971 .014 343.198);--color-pink-100:oklch(.948 .028 342.258);--color-pink-200:oklch(.899 .061 343.231);--color-pink-300:oklch(.823 .12 346.018);--color-pink-400:oklch(.718 .202 349.761);--color-pink-500:oklch(.656 .241 354.308);--color-pink-600:oklch(.592 .249 .584);--color-pink-700:oklch(.525 .223 3.958);--color-pink-800:oklch(.459 .187 3.815);--color-pink-900:oklch(.408 .153 2.432);--color-pink-950:oklch(.284 .109 3.907);--color-rose-50:oklch(.969 .015 12.422);--color-rose-100:oklch(.941 .03 12.58);--color-rose-200:oklch(.892 .058 10.001);--color-rose-300:oklch(.81 .117 11.638);--color-rose-400:oklch(.712 .194 13.428);--color-rose-500:oklch(.645 .246 16.439);--color-rose-600:oklch(.586 .253 17.585);--color-rose-700:oklch(.514 .222 16.935);--color-rose-800:oklch(.455 .188 13.697);--color-rose-900:oklch(.41 .159 10.272);--color-rose-950:oklch(.271 .105 12.094);--color-slate-50:oklch(.984 .003 247.858);--color-slate-100:oklch(.968 .007 247.896);--color-slate-200:oklch(.929 .013 255.508);--color-slate-300:oklch(.869 .022 252.894);--color-slate-400:oklch(.704 .04 256.788);--color-slate-500:oklch(.554 .046 257.417);--color-slate-600:oklch(.446 .043 257.281);--color-slate-700:oklch(.372 .044 257.287);--color-slate-800:oklch(.279 .041 260.031);--color-slate-900:oklch(.208 .042 265.755);--color-slate-950:oklch(.129 .042 264.695);--color-gray-50:oklch(.985 .002 247.839);--color-gray-100:oklch(.967 .003 264.542);--color-gray-200:oklch(.928 .006 264.531);--color-gray-300:oklch(.872 .01 258.338);--color-gray-400:oklch(.707 .022 261.325);--color-gray-500:oklch(.551 .027 264.364);--color-gray-600:oklch(.446 .03 256.802);--color-gray-700:oklch(.373 .034 259.733);--color-gray-800:oklch(.278 .033 256.848);--color-gray-900:oklch(.21 .034 264.665);--color-gray-950:oklch(.13 .028 261.692);--color-zinc-50:oklch(.985 0 0);--color-zinc-100:oklch(.967 .001 286.375);--color-zinc-200:oklch(.92 .004 286.32);--color-zinc-300:oklch(.871 .006 286.286);--color-zinc-400:oklch(.705 .015 286.067);--color-zinc-500:oklch(.552 .016 285.938);--color-zinc-600:oklch(.442 .017 285.786);--color-zinc-700:oklch(.37 .013 285.805);--color-zinc-800:oklch(.274 .006 286.033);--color-zinc-900:oklch(.21 .006 285.885);--color-zinc-950:oklch(.141 .005 285.823);--color-neutral-50:oklch(.985 0 0);--color-neutral-100:oklch(.97 0 0);--color-neutral-200:oklch(.922 0 0);--color-neutral-300:oklch(.87 0 0);--color-neutral-400:oklch(.708 0 0);--color-neutral-500:oklch(.556 0 0);--color-neutral-600:oklch(.439 0 0);--color-neutral-700:oklch(.371 0 0);--color-neutral-800:oklch(.269 0 0);--color-neutral-900:oklch(.205 0 0);--color-neutral-950:oklch(.145 0 0);--color-stone-50:oklch(.985 .001 106.423);--color-stone-100:oklch(.97 .001 106.424);--color-stone-200:oklch(.923 .003 48.717);--color-stone-300:oklch(.869 .005 56.366);--color-stone-400:oklch(.709 .01 56.259);--color-stone-500:oklch(.553 .013 58.071);--color-stone-600:oklch(.444 .011 73.639);--color-stone-700:oklch(.374 .01 67.558);--color-stone-800:oklch(.268 .007 34.298);--color-stone-900:oklch(.216 .006 56.043);--color-stone-950:oklch(.147 .004 49.25);--color-black:#000;--color-white:#fff;--spacing:.25rem;--breakpoint-sm:40rem;--breakpoint-md:48rem;--breakpoint-lg:64rem;--breakpoint-xl:80rem;--breakpoint-2xl:96rem;--container-3xs:16rem;--container-2xs:18rem;--container-xs:20rem;--container-sm:24rem;--container-md:28rem;--container-lg:32rem;--container-xl:36rem;--container-2xl:42rem;--container-3xl:48rem;--container-4xl:56rem;--container-5xl:64rem;--container-6xl:72rem;--container-7xl:80rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-extralight:200;--font-weight-light:300;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--font-weight-extrabold:800;--font-weight-black:900;--tracking-tighter:-.05em;--tracking-tight:-.025em;--tracking-normal:0em;--tracking-wide:.025em;--tracking-wider:.05em;--tracking-widest:.1em;--leading-tight:1.25;--leading-snug:1.375;--leading-normal:1.5;--leading-relaxed:1.625;--leading-loose:2;--radius-xs:.125rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--radius-3xl:1.5rem;--radius-4xl:2rem;--shadow-2xs:0 1px #0000000d;--shadow-xs:0 1px 2px 0 #0000000d;--shadow-sm:0 1px 3px 0 #0000001a,0 1px 2px -1px #0000001a;--shadow-md:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;--shadow-lg:0 10px 15px -3px #0000001a,0 4px 6px -4px #0000001a;--shadow-xl:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;--shadow-2xl:0 25px 50px -12px #00000040;--inset-shadow-2xs:inset 0 1px #0000000d;--inset-shadow-xs:inset 0 1px 1px #0000000d;--inset-shadow-sm:inset 0 2px 4px #0000000d;--drop-shadow-xs:0 1px 1px #0000000d;--drop-shadow-sm:0 1px 2px #00000026;--drop-shadow-md:0 3px 3px #0000001f;--drop-shadow-lg:0 4px 4px #00000026;--drop-shadow-xl:0 9px 7px #0000001a;--drop-shadow-2xl:0 25px 25px #00000026;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-spin:spin 1s linear infinite;--animate-ping:ping 1s cubic-bezier(0,0,.2,1)infinite;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--animate-bounce:bounce 1s infinite;--blur-xs:4px;--blur-sm:8px;--blur-md:12px;--blur-lg:16px;--blur-xl:24px;--blur-2xl:40px;--blur-3xl:64px;--perspective-dramatic:100px;--perspective-near:300px;--perspective-normal:500px;--perspective-midrange:800px;--perspective-distant:1200px;--aspect-video:16/9;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-font-feature-settings:var(--font-sans--font-feature-settings);--default-font-variation-settings:var(--font-sans--font-variation-settings);--default-mono-font-family:var(--font-mono);--default-mono-font-feature-settings:var(--font-mono--font-feature-settings);--default-mono-font-variation-settings:var(--font-mono--font-variation-settings)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}body{line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1;color:color-mix(in oklab,currentColor 50%,transparent)}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:calc(var(--spacing)*0)}.top-\[calc\(100vh-100px\)\]{top:calc(100vh - 100px)}.right-0{right:calc(var(--spacing)*0)}.right-10{right:calc(var(--spacing)*10)}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.m-29\.5{margin:calc(var(--spacing)*29.5)}.m-40{margin:calc(var(--spacing)*40)}.m-44{margin:calc(var(--spacing)*44)}.m-52{margin:calc(var(--spacing)*52)}.m-56{margin:calc(var(--spacing)*56)}.mx-auto{margin-inline:auto}.my-4{margin-block:calc(var(--spacing)*4)}.my-12{margin-block:calc(var(--spacing)*12)}.ms-auto{margin-inline-start:auto}.mb-2{margin-bottom:calc(var(--spacing)*2)}.block{display:block}.flex{display:flex}.hidden{display:none}.inline-flex{display:inline-flex}.h-2\.5{height:calc(var(--spacing)*2.5)}.h-8{height:calc(var(--spacing)*8)}.h-20{height:calc(var(--spacing)*20)}.h-screen{height:100vh}.w-1\/2{width:50%}.w-8{width:calc(var(--spacing)*8)}.w-\[800px\]{width:800px}.w-full{width:100%}.shrink{flex-shrink:1}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x)var(--tw-rotate-y)var(--tw-rotate-z)var(--tw-skew-x)var(--tw-skew-y)}.animate-spin{animation:var(--animate-spin)}.cursor-pointer{cursor:pointer}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-8{gap:calc(var(--spacing)*8)}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-full{border-radius:3.40282e38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-t-lg{border-top-left-radius:var(--radius-lg);border-top-right-radius:var(--radius-lg)}.border{border-style:var(--tw-border-style);border-width:1px}.border-gray-300{border-color:var(--color-gray-300)}.bg-\[\#00000080\]{background-color:#00000080}.bg-blue-50{background-color:var(--color-blue-50)}.bg-blue-400{background-color:var(--color-blue-400)}.bg-blue-500{background-color:var(--color-blue-500)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-green-50{background-color:var(--color-green-50)}.bg-green-400{background-color:var(--color-green-400)}.bg-red-50{background-color:var(--color-red-50)}.bg-red-400{background-color:var(--color-red-400)}.bg-red-500{background-color:var(--color-red-500)}.bg-slate-50{background-color:var(--color-slate-50)}.p-1\.5{padding:calc(var(--spacing)*1.5)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-4{padding:calc(var(--spacing)*4)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.py-8{padding-block:calc(var(--spacing)*8)}.pt-6{padding-top:calc(var(--spacing)*6)}.text-center{text-align:center}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-4xl{font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-8xl{font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-\[20rem\]{font-size:20rem}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.text-blue-700{color:var(--color-blue-700)}.text-gray-900{color:var(--color-gray-900)}.text-green-700{color:var(--color-green-700)}.text-red-700{color:var(--color-red-700)}.text-slate-800{color:var(--color-slate-800)}.text-white{color:var(--color-white)}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.filter{filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.hover\:bg-blue-200:hover{background-color:var(--color-blue-200)}.hover\:bg-blue-700:hover{background-color:var(--color-blue-700)}.hover\:bg-green-200:hover{background-color:var(--color-green-200)}.hover\:bg-red-200:hover{background-color:var(--color-red-200)}.hover\:bg-red-700:hover{background-color:var(--color-red-700)}}.focus\:border-blue-500:focus{border-color:var(--color-blue-500)}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentColor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-blue-400:focus{--tw-ring-color:var(--color-blue-400)}.focus\:ring-blue-500:focus{--tw-ring-color:var(--color-blue-500)}.focus\:ring-green-400:focus{--tw-ring-color:var(--color-green-400)}.focus\:ring-red-400:focus{--tw-ring-color:var(--color-red-400)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:bg-blue-300:disabled{background-color:var(--color-blue-300)}.disabled\:text-gray-500:disabled{color:var(--color-gray-500)}@media (prefers-color-scheme:dark){.dark\:bg-gray-700{background-color:var(--color-gray-700)}}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes ping{75%,to{opacity:0;transform:scale(2)}}@keyframes pulse{50%{opacity:.5}}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}@property --tw-rotate-x{syntax:"*";inherits:false;initial-value:rotateX(0)}@property --tw-rotate-y{syntax:"*";inherits:false;initial-value:rotateY(0)}@property --tw-rotate-z{syntax:"*";inherits:false;initial-value:rotateZ(0)}@property --tw-skew-x{syntax:"*";inherits:false;initial-value:skewX(0)}@property --tw-skew-y{syntax:"*";inherits:false;initial-value:skewY(0)}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}
@@ -696,7 +696,7 @@ const ie = async (t, n, o) => {
696
696
  const c = await (await fetch("/config.json")).json(), u = c.baseUri, { unauthorized: v, notFound: g, defaultMessage: f } = c.axiosErrors;
697
697
  return K = zt.create({
698
698
  baseURL: u,
699
- timeout: 3e3
699
+ timeout: 5e3
700
700
  }), K.interceptors.request.use(
701
701
  (b) => b
702
702
  ), K.interceptors.response.use(
@@ -974,7 +974,7 @@ const nr = () => {
974
974
  "button",
975
975
  {
976
976
  type: "button",
977
- className: `ms-auto ${j} rounded-lg focus:ring-2 ${C} p-1.5 ${w} inline-flex items-center justify-center h-8 w-8`,
977
+ className: `ms-auto ${j} rounded-lg focus:ring-2 ${C} p-1.5 ${w} inline-flex items-center justify-center h-8 w-8 cursor-pointer`,
978
978
  title: "Close",
979
979
  onClick: $,
980
980
  children: /* @__PURE__ */ i.jsx(Qt, { className: "text-xl" })
@@ -1054,7 +1054,7 @@ const nr = () => {
1054
1054
  }
1055
1055
  )
1056
1056
  ] }),
1057
- /* @__PURE__ */ i.jsx("div", { className: `flex ${u.position} items-center ${u.spacing}`, children: /* @__PURE__ */ i.jsx("button", { className: `${u.color} ${u.hoverColor} ${u.textColor} font-bold ${u.size} ${u.rounded}`, children: u.text }) })
1057
+ /* @__PURE__ */ i.jsx("div", { className: `flex ${u.position} items-center ${u.spacing}`, children: /* @__PURE__ */ i.jsx("button", { className: `${u.color} ${u.hoverColor} ${u.textColor} font-bold cursor-pointer ${u.size} ${u.rounded}`, children: u.text }) })
1058
1058
  ] });
1059
1059
  }, pr = (t) => {
1060
1060
  const {
@@ -1163,7 +1163,7 @@ const nr = () => {
1163
1163
  "button",
1164
1164
  {
1165
1165
  onClick: O,
1166
- className: "bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded-full",
1166
+ className: "bg-red-500 hover:bg-red-700 text-white font-bold py-2 px-4 rounded-full cursor-pointer",
1167
1167
  children: "Logout"
1168
1168
  }
1169
1169
  )
@@ -1172,7 +1172,7 @@ const nr = () => {
1172
1172
  "button",
1173
1173
  {
1174
1174
  onClick: $,
1175
- className: "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full disabled:bg-blue-300 disabled:text-gray-500 disabled:cursor-not-allowed",
1175
+ className: "bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded-full disabled:bg-blue-300 disabled:text-gray-500 disabled:cursor-not-allowed cursor-pointer",
1176
1176
  disabled: C,
1177
1177
  children: "Lista degli utenti"
1178
1178
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "thecore-auth",
3
3
  "private": false,
4
- "version": "0.0.37",
4
+ "version": "0.0.38",
5
5
  "type": "module",
6
6
  "main": "dist/thecore-auth.cjs.js",
7
7
  "module": "dist/thecore-auth.esm.js",
@@ -17,41 +17,38 @@
17
17
  "lint": "eslint .",
18
18
  "preview": "vite preview"
19
19
  },
20
- "peerDependencies": {
21
- "react": "^18.0.0",
22
- "react-dom": "^18.0.0",
23
- "react-router-dom": "^7.1.3",
20
+ "peerDependencies": {
24
21
  "axios": "^1.7.9",
25
22
  "jwt-decode": "^3.1.2",
26
- "react-icons": "^5.4.0"
27
- },
28
- "peerDependenciesMeta": {
29
- "tailwindcss": {
30
- "optional": true
31
- }
23
+ "react": "^18.0.0",
24
+ "react-dom": "^18.0.0",
25
+ "react-icons": "^5.4.0",
26
+ "react-router-dom": "^7.1.3"
32
27
  },
33
28
  "devDependencies": {
34
29
  "@eslint/js": "^9.17.0",
30
+ "@tailwindcss/postcss": "^4.0.0",
35
31
  "@types/react": "^18.3.18",
36
32
  "@types/react-dom": "^18.3.5",
37
33
  "@vitejs/plugin-react": "^4.3.4",
38
34
  "autoprefixer": "^10.4.20",
35
+ "axios": "^1.7.9",
39
36
  "eslint": "^9.17.0",
40
37
  "eslint-plugin-react": "^7.37.2",
41
38
  "eslint-plugin-react-hooks": "^5.0.0",
42
39
  "eslint-plugin-react-refresh": "^0.4.16",
43
40
  "globals": "^15.14.0",
44
- "postcss": "^8.5.1",
45
- "tailwindcss": "^3.4.17",
46
- "vite": "^6.0.5",
47
- "axios": "^1.7.9",
48
41
  "jwt-decode": "^3.1.2",
42
+ "postcss": "^8.5.1",
49
43
  "react-icons": "^5.4.0",
50
- "react-router-dom": "^7.1.3"
44
+ "react-router-dom": "^7.1.3",
45
+ "tailwindcss": "^4.0.3",
46
+ "vite": "^6.0.5"
51
47
  },
52
48
  "files": [
53
49
  "dist",
54
50
  "README.md",
51
+ "dist/thecore-auth.css",
55
52
  "!dist/config.json"
56
53
  ],
57
54
  "repository": {
@@ -66,5 +63,8 @@
66
63
  ],
67
64
  "author": "Santiago Galvan<santiagogalvancolorado@gmail.com>",
68
65
  "license": "MIT",
69
- "description": "Un pacchetto per l'autenticazione in React utilizzando JWT nell'accezione implementata in thecore e React Router"
66
+ "description": "Un pacchetto per l'autenticazione in React utilizzando JWT nell'accezione implementata in thecore e React Router",
67
+ "dependencies": {
68
+ "@tailwindcss/vite": "^4.0.3"
69
+ }
70
70
  }