@s_mart/dropzone 4.0.2 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +4 -97
- package/package.json +24 -21
package/dist/index.mjs
CHANGED
|
@@ -1,28 +1,4 @@
|
|
|
1
|
-
var $o=Object.create;var xt=Object.defineProperty;var Ro=Object.getOwnPropertyDescriptor;var Mo=Object.getOwnPropertyNames;var Io=Object.getPrototypeOf,jo=Object.prototype.hasOwnProperty;var oe=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var ko=(e,r,t,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of Mo(r))!jo.call(e,n)&&n!==t&&xt(e,n,{get:()=>r[n],enumerable:!(o=Ro(r,n))||o.enumerable});return e};var Nr=(e,r,t)=>(t=e!=null?$o(Io(e)):{},ko(r||!e||!e.__esModule?xt(t,"default",{value:e,enumerable:!0}):t,e));var bt=oe(k=>{"use strict";var G=typeof Symbol=="function"&&Symbol.for,Br=G?Symbol.for("react.element"):60103,Lr=G?Symbol.for("react.portal"):60106,Je=G?Symbol.for("react.fragment"):60107,Ze=G?Symbol.for("react.strict_mode"):60108,Qe=G?Symbol.for("react.profiler"):60114,er=G?Symbol.for("react.provider"):60109,rr=G?Symbol.for("react.context"):60110,Fr=G?Symbol.for("react.async_mode"):60111,tr=G?Symbol.for("react.concurrent_mode"):60111,or=G?Symbol.for("react.forward_ref"):60112,nr=G?Symbol.for("react.suspense"):60113,Yo=G?Symbol.for("react.suspense_list"):60120,ar=G?Symbol.for("react.memo"):60115,sr=G?Symbol.for("react.lazy"):60116,Vo=G?Symbol.for("react.block"):60121,Ko=G?Symbol.for("react.fundamental"):60117,Go=G?Symbol.for("react.responder"):60118,qo=G?Symbol.for("react.scope"):60119;function ne(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case Br:switch(e=e.type,e){case Fr:case tr:case Je:case Qe:case Ze:case nr:return e;default:switch(e=e&&e.$$typeof,e){case rr:case or:case sr:case ar:case er:return e;default:return r}}case Lr:return r}}}function ht(e){return ne(e)===tr}k.AsyncMode=Fr;k.ConcurrentMode=tr;k.ContextConsumer=rr;k.ContextProvider=er;k.Element=Br;k.ForwardRef=or;k.Fragment=Je;k.Lazy=sr;k.Memo=ar;k.Portal=Lr;k.Profiler=Qe;k.StrictMode=Ze;k.Suspense=nr;k.isAsyncMode=function(e){return ht(e)||ne(e)===Fr};k.isConcurrentMode=ht;k.isContextConsumer=function(e){return ne(e)===rr};k.isContextProvider=function(e){return ne(e)===er};k.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Br};k.isForwardRef=function(e){return ne(e)===or};k.isFragment=function(e){return ne(e)===Je};k.isLazy=function(e){return ne(e)===sr};k.isMemo=function(e){return ne(e)===ar};k.isPortal=function(e){return ne(e)===Lr};k.isProfiler=function(e){return ne(e)===Qe};k.isStrictMode=function(e){return ne(e)===Ze};k.isSuspense=function(e){return ne(e)===nr};k.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Je||e===tr||e===Qe||e===Ze||e===nr||e===Yo||typeof e=="object"&&e!==null&&(e.$$typeof===sr||e.$$typeof===ar||e.$$typeof===er||e.$$typeof===rr||e.$$typeof===or||e.$$typeof===Ko||e.$$typeof===Go||e.$$typeof===qo||e.$$typeof===Vo)};k.typeOf=ne});var vt=oe(D=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var e=typeof Symbol=="function"&&Symbol.for,r=e?Symbol.for("react.element"):60103,t=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,p=e?Symbol.for("react.context"):60110,i=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,l=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,O=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,V=e?Symbol.for("react.scope"):60119;function re(y){return typeof y=="string"||typeof y=="function"||y===o||y===u||y===a||y===n||y===b||y===l||typeof y=="object"&&y!==null&&(y.$$typeof===x||y.$$typeof===v||y.$$typeof===s||y.$$typeof===p||y.$$typeof===d||y.$$typeof===O||y.$$typeof===M||y.$$typeof===V||y.$$typeof===m)}function I(y){if(typeof y=="object"&&y!==null){var Be=y.$$typeof;switch(Be){case r:var g=y.type;switch(g){case i:case u:case o:case a:case n:case b:return g;default:var Ae=g&&g.$$typeof;switch(Ae){case p:case d:case x:case v:case s:return Ae;default:return Be}}case t:return Be}}}var L=i,fe=u,te=p,de=s,q=r,R=d,Q=o,xe=x,f=v,c=t,E=a,P=n,T=b,C=!1;function S(y){return C||(C=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_(y)||I(y)===i}function _(y){return I(y)===u}function w(y){return I(y)===p}function j(y){return I(y)===s}function A(y){return typeof y=="object"&&y!==null&&y.$$typeof===r}function H(y){return I(y)===d}function K(y){return I(y)===o}function le(y){return I(y)===x}function Mr(y){return I(y)===v}function Ir(y){return I(y)===t}function jr(y){return I(y)===a}function kr(y){return I(y)===n}function Dr(y){return I(y)===b}D.AsyncMode=L,D.ConcurrentMode=fe,D.ContextConsumer=te,D.ContextProvider=de,D.Element=q,D.ForwardRef=R,D.Fragment=Q,D.Lazy=xe,D.Memo=f,D.Portal=c,D.Profiler=E,D.StrictMode=P,D.Suspense=T,D.isAsyncMode=S,D.isConcurrentMode=_,D.isContextConsumer=w,D.isContextProvider=j,D.isElement=A,D.isForwardRef=H,D.isFragment=K,D.isLazy=le,D.isMemo=Mr,D.isPortal=Ir,D.isProfiler=jr,D.isStrictMode=kr,D.isSuspense=Dr,D.isValidElementType=re,D.typeOf=I}()});var Ur=oe((bs,zr)=>{"use strict";process.env.NODE_ENV==="production"?zr.exports=bt():zr.exports=vt()});var St=oe((vs,Et)=>{"use strict";var Tt=Object.getOwnPropertySymbols,Ho=Object.prototype.hasOwnProperty,Xo=Object.prototype.propertyIsEnumerable;function Jo(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Zo(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;var o=Object.getOwnPropertyNames(r).map(function(a){return r[a]});if(o.join("")!=="0123456789")return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(a){n[a]=a}),Object.keys(Object.assign({},n)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}Et.exports=Zo()?Object.assign:function(e,r){for(var t,o=Jo(e),n,a=1;a<arguments.length;a++){t=Object(arguments[a]);for(var s in t)Ho.call(t,s)&&(o[s]=t[s]);if(Tt){n=Tt(t);for(var p=0;p<n.length;p++)Xo.call(t,n[p])&&(o[n[p]]=t[n[p]])}}return o}});var ir=oe((Ts,_t)=>{"use strict";var Qo="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";_t.exports=Qo});var Wr=oe((Es,Ot)=>{Ot.exports=Function.call.bind(Object.prototype.hasOwnProperty)});var $t=oe((Ss,At)=>{"use strict";var Yr=function(){};process.env.NODE_ENV!=="production"&&(Pt=ir(),fr={},Ct=Wr(),Yr=function(e){var r="Warning: "+e;typeof console<"u"&&console.error(r);try{throw new Error(r)}catch{}});var Pt,fr,Ct;function wt(e,r,t,o,n){if(process.env.NODE_ENV!=="production"){for(var a in e)if(Ct(e,a)){var s;try{if(typeof e[a]!="function"){var p=Error((o||"React class")+": "+t+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}s=e[a](r,a,o,t,null,Pt)}catch(u){s=u}if(s&&!(s instanceof Error)&&Yr((o||"React class")+": type specification of "+t+" `"+a+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof 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)."),s instanceof Error&&!(s.message in fr)){fr[s.message]=!0;var i=n?n():"";Yr("Failed "+t+" type: "+s.message+(i??""))}}}}wt.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(fr={})};At.exports=wt});var It=oe((_s,Mt)=>{"use strict";var en=Ur(),rn=St(),Me=ir(),Vr=Wr(),Rt=$t(),Ie=function(){};process.env.NODE_ENV!=="production"&&(Ie=function(e){var r="Warning: "+e;typeof console<"u"&&console.error(r);try{throw new Error(r)}catch{}});function ur(){return null}Mt.exports=function(e,r){var t=typeof Symbol=="function"&&Symbol.iterator,o="@@iterator";function n(f){var c=f&&(t&&f[t]||f[o]);if(typeof c=="function")return c}var a="<<anonymous>>",s={array:d("array"),bigint:d("bigint"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:b(),arrayOf:l,element:v(),elementType:x(),instanceOf:m,node:re(),objectOf:M,oneOf:O,oneOfType:V,shape:L,exact:fe};function p(f,c){return f===c?f!==0||1/f===1/c:f!==f&&c!==c}function i(f,c){this.message=f,this.data=c&&typeof c=="object"?c:{},this.stack=""}i.prototype=Error.prototype;function u(f){if(process.env.NODE_ENV!=="production")var c={},E=0;function P(C,S,_,w,j,A,H){if(w=w||a,A=A||_,H!==Me){if(r){var K=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw K.name="Invariant Violation",K}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var le=w+":"+_;!c[le]&&E<3&&(Ie("You are manually calling a React.PropTypes validation function for the `"+A+"` prop on `"+w+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),c[le]=!0,E++)}}return S[_]==null?C?S[_]===null?new i("The "+j+" `"+A+"` is marked as required "+("in `"+w+"`, but its value is `null`.")):new i("The "+j+" `"+A+"` is marked as required in "+("`"+w+"`, but its value is `undefined`.")):null:f(S,_,w,j,A)}var T=P.bind(null,!1);return T.isRequired=P.bind(null,!0),T}function d(f){function c(E,P,T,C,S,_){var w=E[P],j=q(w);if(j!==f){var A=R(w);return new i("Invalid "+C+" `"+S+"` of type "+("`"+A+"` supplied to `"+T+"`, expected ")+("`"+f+"`."),{expectedType:f})}return null}return u(c)}function b(){return u(ur)}function l(f){function c(E,P,T,C,S){if(typeof f!="function")return new i("Property `"+S+"` of component `"+T+"` has invalid PropType notation inside arrayOf.");var _=E[P];if(!Array.isArray(_)){var w=q(_);return new i("Invalid "+C+" `"+S+"` of type "+("`"+w+"` supplied to `"+T+"`, expected an array."))}for(var j=0;j<_.length;j++){var A=f(_,j,T,C,S+"["+j+"]",Me);if(A instanceof Error)return A}return null}return u(c)}function v(){function f(c,E,P,T,C){var S=c[E];if(!e(S)){var _=q(S);return new i("Invalid "+T+" `"+C+"` of type "+("`"+_+"` supplied to `"+P+"`, expected a single ReactElement."))}return null}return u(f)}function x(){function f(c,E,P,T,C){var S=c[E];if(!en.isValidElementType(S)){var _=q(S);return new i("Invalid "+T+" `"+C+"` of type "+("`"+_+"` supplied to `"+P+"`, expected a single ReactElement type."))}return null}return u(f)}function m(f){function c(E,P,T,C,S){if(!(E[P]instanceof f)){var _=f.name||a,w=xe(E[P]);return new i("Invalid "+C+" `"+S+"` of type "+("`"+w+"` supplied to `"+T+"`, expected ")+("instance of `"+_+"`."))}return null}return u(c)}function O(f){if(!Array.isArray(f))return process.env.NODE_ENV!=="production"&&(arguments.length>1?Ie("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):Ie("Invalid argument supplied to oneOf, expected an array.")),ur;function c(E,P,T,C,S){for(var _=E[P],w=0;w<f.length;w++)if(p(_,f[w]))return null;var j=JSON.stringify(f,function(H,K){var le=R(K);return le==="symbol"?String(K):K});return new i("Invalid "+C+" `"+S+"` of value `"+String(_)+"` "+("supplied to `"+T+"`, expected one of "+j+"."))}return u(c)}function M(f){function c(E,P,T,C,S){if(typeof f!="function")return new i("Property `"+S+"` of component `"+T+"` has invalid PropType notation inside objectOf.");var _=E[P],w=q(_);if(w!=="object")return new i("Invalid "+C+" `"+S+"` of type "+("`"+w+"` supplied to `"+T+"`, expected an object."));for(var j in _)if(Vr(_,j)){var A=f(_,j,T,C,S+"."+j,Me);if(A instanceof Error)return A}return null}return u(c)}function V(f){if(!Array.isArray(f))return process.env.NODE_ENV!=="production"&&Ie("Invalid argument supplied to oneOfType, expected an instance of array."),ur;for(var c=0;c<f.length;c++){var E=f[c];if(typeof E!="function")return Ie("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Q(E)+" at index "+c+"."),ur}function P(T,C,S,_,w){for(var j=[],A=0;A<f.length;A++){var H=f[A],K=H(T,C,S,_,w,Me);if(K==null)return null;K.data&&Vr(K.data,"expectedType")&&j.push(K.data.expectedType)}var le=j.length>0?", expected one of type ["+j.join(", ")+"]":"";return new i("Invalid "+_+" `"+w+"` supplied to "+("`"+S+"`"+le+"."))}return u(P)}function re(){function f(c,E,P,T,C){return te(c[E])?null:new i("Invalid "+T+" `"+C+"` supplied to "+("`"+P+"`, expected a ReactNode."))}return u(f)}function I(f,c,E,P,T){return new i((f||"React class")+": "+c+" type `"+E+"."+P+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+T+"`.")}function L(f){function c(E,P,T,C,S){var _=E[P],w=q(_);if(w!=="object")return new i("Invalid "+C+" `"+S+"` of type `"+w+"` "+("supplied to `"+T+"`, expected `object`."));for(var j in f){var A=f[j];if(typeof A!="function")return I(T,C,S,j,R(A));var H=A(_,j,T,C,S+"."+j,Me);if(H)return H}return null}return u(c)}function fe(f){function c(E,P,T,C,S){var _=E[P],w=q(_);if(w!=="object")return new i("Invalid "+C+" `"+S+"` of type `"+w+"` "+("supplied to `"+T+"`, expected `object`."));var j=rn({},E[P],f);for(var A in j){var H=f[A];if(Vr(f,A)&&typeof H!="function")return I(T,C,S,A,R(H));if(!H)return new i("Invalid "+C+" `"+S+"` key `"+A+"` supplied to `"+T+"`.\nBad object: "+JSON.stringify(E[P],null," ")+`
|
|
2
|
-
Valid keys: `+JSON.stringify(Object.keys(f),null," "));var K=H(_,A,T,C,S+"."+A,Me);if(K)return K}return null}return u(c)}function te(f){switch(typeof f){case"number":case"string":case"undefined":return!0;case"boolean":return!f;case"object":if(Array.isArray(f))return f.every(te);if(f===null||e(f))return!0;var c=n(f);if(c){var E=c.call(f),P;if(c!==f.entries){for(;!(P=E.next()).done;)if(!te(P.value))return!1}else for(;!(P=E.next()).done;){var T=P.value;if(T&&!te(T[1]))return!1}}else return!1;return!0;default:return!1}}function de(f,c){return f==="symbol"?!0:c?c["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&c instanceof Symbol:!1}function q(f){var c=typeof f;return Array.isArray(f)?"array":f instanceof RegExp?"object":de(c,f)?"symbol":c}function R(f){if(typeof f>"u"||f===null)return""+f;var c=q(f);if(c==="object"){if(f instanceof Date)return"date";if(f instanceof RegExp)return"regexp"}return c}function Q(f){var c=R(f);switch(c){case"array":case"object":return"an "+c;case"boolean":case"date":case"regexp":return"a "+c;default:return c}}function xe(f){return!f.constructor||!f.constructor.name?a:f.constructor.name}return s.checkPropTypes=Rt,s.resetWarningCache=Rt.resetWarningCache,s.PropTypes=s,s}});var Nt=oe((Os,Dt)=>{"use strict";var tn=ir();function jt(){}function kt(){}kt.resetWarningCache=jt;Dt.exports=function(){function e(o,n,a,s,p,i){if(i!==tn){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function r(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:kt,resetWarningCache:jt};return t.PropTypes=t,t}});var Gr=oe((Ps,Kr)=>{process.env.NODE_ENV!=="production"?(Bt=Ur(),Lt=!0,Kr.exports=It()(Bt.isElement,Lt)):Kr.exports=Nt()();var Bt,Lt});var zt=oe(N=>{"use strict";var qr=Symbol.for("react.element"),Hr=Symbol.for("react.portal"),lr=Symbol.for("react.fragment"),pr=Symbol.for("react.strict_mode"),cr=Symbol.for("react.profiler"),mr=Symbol.for("react.provider"),dr=Symbol.for("react.context"),on=Symbol.for("react.server_context"),xr=Symbol.for("react.forward_ref"),yr=Symbol.for("react.suspense"),gr=Symbol.for("react.suspense_list"),hr=Symbol.for("react.memo"),br=Symbol.for("react.lazy"),nn=Symbol.for("react.offscreen"),Ft;Ft=Symbol.for("react.module.reference");function se(e){if(typeof e=="object"&&e!==null){var r=e.$$typeof;switch(r){case qr:switch(e=e.type,e){case lr:case cr:case pr:case yr:case gr:return e;default:switch(e=e&&e.$$typeof,e){case on:case dr:case xr:case br:case hr:case mr:return e;default:return r}}case Hr:return r}}}N.ContextConsumer=dr;N.ContextProvider=mr;N.Element=qr;N.ForwardRef=xr;N.Fragment=lr;N.Lazy=br;N.Memo=hr;N.Portal=Hr;N.Profiler=cr;N.StrictMode=pr;N.Suspense=yr;N.SuspenseList=gr;N.isAsyncMode=function(){return!1};N.isConcurrentMode=function(){return!1};N.isContextConsumer=function(e){return se(e)===dr};N.isContextProvider=function(e){return se(e)===mr};N.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qr};N.isForwardRef=function(e){return se(e)===xr};N.isFragment=function(e){return se(e)===lr};N.isLazy=function(e){return se(e)===br};N.isMemo=function(e){return se(e)===hr};N.isPortal=function(e){return se(e)===Hr};N.isProfiler=function(e){return se(e)===cr};N.isStrictMode=function(e){return se(e)===pr};N.isSuspense=function(e){return se(e)===yr};N.isSuspenseList=function(e){return se(e)===gr};N.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===lr||e===cr||e===pr||e===yr||e===gr||e===nn||typeof e=="object"&&e!==null&&(e.$$typeof===br||e.$$typeof===hr||e.$$typeof===mr||e.$$typeof===dr||e.$$typeof===xr||e.$$typeof===Ft||e.getModuleId!==void 0)};N.typeOf=se});var Ut=oe(B=>{"use strict";process.env.NODE_ENV!=="production"&&function(){"use strict";var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),p=Symbol.for("react.server_context"),i=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),x=!1,m=!1,O=!1,M=!1,V=!1,re;re=Symbol.for("react.module.reference");function I(g){return!!(typeof g=="string"||typeof g=="function"||g===t||g===n||V||g===o||g===u||g===d||M||g===v||x||m||O||typeof g=="object"&&g!==null&&(g.$$typeof===l||g.$$typeof===b||g.$$typeof===a||g.$$typeof===s||g.$$typeof===i||g.$$typeof===re||g.getModuleId!==void 0))}function L(g){if(typeof g=="object"&&g!==null){var Ae=g.$$typeof;switch(Ae){case e:var Xe=g.type;switch(Xe){case t:case n:case o:case u:case d:return Xe;default:var dt=Xe&&Xe.$$typeof;switch(dt){case p:case s:case i:case l:case b:case a:return dt;default:return Ae}}case r:return Ae}}}var fe=s,te=a,de=e,q=i,R=t,Q=l,xe=b,f=r,c=n,E=o,P=u,T=d,C=!1,S=!1;function _(g){return C||(C=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function w(g){return S||(S=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(g){return L(g)===s}function A(g){return L(g)===a}function H(g){return typeof g=="object"&&g!==null&&g.$$typeof===e}function K(g){return L(g)===i}function le(g){return L(g)===t}function Mr(g){return L(g)===l}function Ir(g){return L(g)===b}function jr(g){return L(g)===r}function kr(g){return L(g)===n}function Dr(g){return L(g)===o}function y(g){return L(g)===u}function Be(g){return L(g)===d}B.ContextConsumer=fe,B.ContextProvider=te,B.Element=de,B.ForwardRef=q,B.Fragment=R,B.Lazy=Q,B.Memo=xe,B.Portal=f,B.Profiler=c,B.StrictMode=E,B.Suspense=P,B.SuspenseList=T,B.isAsyncMode=_,B.isConcurrentMode=w,B.isContextConsumer=j,B.isContextProvider=A,B.isElement=H,B.isForwardRef=K,B.isFragment=le,B.isLazy=Mr,B.isMemo=Ir,B.isPortal=jr,B.isProfiler=kr,B.isStrictMode=Dr,B.isSuspense=y,B.isSuspenseList=Be,B.isValidElementType=I,B.typeOf=L}()});var Wt=oe(($s,Xr)=>{"use strict";process.env.NODE_ENV==="production"?Xr.exports=zt():Xr.exports=Ut()});import qa,{useEffect as Ha}from"react";import{Dropzone as Xa,FileItem as Ja}from"@dropzone-ui/react";var Do={black:"#000",white:"#fff"},$e=Do;var No={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Te=No;var Bo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ee=Bo;var Lo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Se=Lo;var Fo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},_e=Fo;var zo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Oe=zo;var Uo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Re=Uo;var Wo={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},yt=Wo;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},h.apply(this,arguments)}function me(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function gt(e){if(!me(e))return e;let r={};return Object.keys(e).forEach(t=>{r[t]=gt(e[t])}),r}function X(e,r,t={clone:!0}){let o=t.clone?h({},e):e;return me(e)&&me(r)&&Object.keys(r).forEach(n=>{n!=="__proto__"&&(me(r[n])&&n in e&&me(e[n])?o[n]=X(e[n],r[n],t):t.clone?o[n]=me(r[n])?gt(r[n]):r[n]:o[n]=r[n])}),o}function ae(e){let r="https://mui.com/production-error/?code="+e;for(let t=1;t<arguments.length;t+=1)r+="&args[]="+encodeURIComponent(arguments[t]);return"Minified MUI error #"+e+"; visit "+r+" for the full message."}var vr=Nr(Wt()),an=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function sn(e){let r=`${e}`.match(an);return r&&r[1]||""}function Vt(e,r=""){return e.displayName||e.name||sn(e)||r}function Yt(e,r,t){let o=Vt(r);return e.displayName||(o!==""?`${t}(${o})`:t)}function Tr(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Vt(e,"Component");if(typeof e=="object")switch(e.$$typeof){case vr.ForwardRef:return Yt(e,e.render,"ForwardRef");case vr.Memo:return Yt(e,e.type,"memo");default:return}}}function J(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ae(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Le(e,r){let t=h({},r);return Object.keys(e).forEach(o=>{if(o.toString().match(/^(components|slots)$/))t[o]=h({},e[o],t[o]);else if(o.toString().match(/^(componentsProps|slotProps)$/)){let n=e[o]||{},a=r[o];t[o]={},!a||!Object.keys(a)?t[o]=n:!n||!Object.keys(n)?t[o]=a:(t[o]=h({},a),Object.keys(n).forEach(s=>{t[o][s]=Le(n[s],a[s])}))}else t[o]===void 0&&(t[o]=e[o])}),t}function je(e,r,t=void 0){let o={};return Object.keys(e).forEach(n=>{o[n]=e[n].reduce((a,s)=>{if(s){let p=r(s);p!==""&&a.push(p),t&&t[s]&&a.push(t[s])}return a},[]).join(" ")}),o}var Kt=e=>e,fn=()=>{let e=Kt;return{configure(r){e=r},generate(r){return e(r)},reset(){e=Kt}}},un=fn(),Jr=un;var ln={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function pe(e,r,t="Mui"){let o=ln[r];return o?`${t}-${o}`:`${Jr.generate(e)}-${r}`}function Fe(e,r,t="Mui"){let o={};return r.forEach(n=>{o[n]=pe(e,n,t)}),o}var Er="$$material";function W(e,r){if(e==null)return{};var t={},o=Object.keys(e),n,a;for(a=0;a<o.length;a++)n=o[a],!(r.indexOf(n)>=0)&&(t[n]=e[n]);return t}import pn from"@emotion/styled";import{ThemeContext as qt,keyframes as xi,css as yi}from"@emotion/react";function Zr(e,r){let t=pn(e,r);return process.env.NODE_ENV!=="production"?(...o)=>{let n=typeof e=="string"?`"${e}"`:"component";return o.length===0?console.error([`MUI: Seems like you called \`styled(${n})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
3
|
-
`)):o.some(a=>a===void 0)&&console.error(`MUI: the styled(${n})(...args) API requires all its args to be defined.`),t(...o)}:t}var Gt=(e,r)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=r(e.__emotion_styles))};var cn=["values","unit","step"];var mn=e=>{let r=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return r.sort((t,o)=>t.val-o.val),r.reduce((t,o)=>h({},t,{[o.key]:o.val}),{})};function Qr(e){let{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:t="px",step:o=5}=e,n=W(e,cn),a=mn(r),s=Object.keys(a);function p(l){return`@media (min-width:${typeof r[l]=="number"?r[l]:l}${t})`}function i(l){return`@media (max-width:${(typeof r[l]=="number"?r[l]:l)-o/100}${t})`}function u(l,v){let x=s.indexOf(v);return`@media (min-width:${typeof r[l]=="number"?r[l]:l}${t}) and (max-width:${(x!==-1&&typeof r[s[x]]=="number"?r[s[x]]:v)-o/100}${t})`}function d(l){return s.indexOf(l)+1<s.length?u(l,s[s.indexOf(l)+1]):p(l)}function b(l){let v=s.indexOf(l);return v===0?p(s[1]):v===s.length-1?i(s[v]):u(l,s[s.indexOf(l)+1]).replace("@media","@media not all and")}return h({keys:s,values:a,up:p,down:i,between:u,only:d,not:b,unit:t},n)}var dn={borderRadius:4},Ht=dn;var ke=Nr(Gr()),xn=process.env.NODE_ENV!=="production"?ke.default.oneOfType([ke.default.number,ke.default.string,ke.default.object,ke.default.array]):{},ie=xn;function yn(e,r){return r?X(e,r,{clone:!1}):e}var ye=yn;var Sr={xs:0,sm:600,md:900,lg:1200,xl:1536},Xt={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Sr[e]}px)`};function Z(e,r,t){let o=e.theme||{};if(Array.isArray(r)){let a=o.breakpoints||Xt;return r.reduce((s,p,i)=>(s[a.up(a.keys[i])]=t(r[i]),s),{})}if(typeof r=="object"){let a=o.breakpoints||Xt;return Object.keys(r).reduce((s,p)=>{if(Object.keys(a.values||Sr).indexOf(p)!==-1){let i=a.up(p);s[i]=t(r[p],p)}else{let i=p;s[i]=r[i]}return s},{})}return t(r)}function Jt(e={}){var r;return((r=e.keys)==null?void 0:r.reduce((o,n)=>{let a=e.up(n);return o[a]={},o},{}))||{}}function Zt(e,r){return e.reduce((t,o)=>{let n=t[o];return(!n||Object.keys(n).length===0)&&delete t[o],t},r)}function De(e,r,t=!0){if(!r||typeof r!="string")return null;if(e&&e.vars&&t){let o=`vars.${r}`.split(".").reduce((n,a)=>n&&n[a]?n[a]:null,e);if(o!=null)return o}return r.split(".").reduce((o,n)=>o&&o[n]!=null?o[n]:null,e)}function ze(e,r,t,o=t){let n;return typeof e=="function"?n=e(t):Array.isArray(e)?n=e[t]||o:n=De(e,t)||o,r&&(n=r(n,o,e)),n}function gn(e){let{prop:r,cssProperty:t=e.prop,themeKey:o,transform:n}=e,a=s=>{if(s[r]==null)return null;let p=s[r],i=s.theme,u=De(i,o)||{};return Z(s,p,b=>{let l=ze(u,n,b);return b===l&&typeof b=="string"&&(l=ze(u,n,`${r}${b==="default"?"":J(b)}`,b)),t===!1?l:{[t]:l}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[r]:ie}:{},a.filterProps=[r],a}var $=gn;function et(e){let r={};return t=>(r[t]===void 0&&(r[t]=e(t)),r[t])}var hn={m:"margin",p:"padding"},bn={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Qt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vn=et(e=>{if(e.length>2)if(Qt[e])e=Qt[e];else return[e];let[r,t]=e.split(""),o=hn[r],n=bn[t]||"";return Array.isArray(n)?n.map(a=>o+a):[o+n]}),_r=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Or=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],rt=[..._r,...Or];function Pe(e,r,t,o){var n;let a=(n=De(e,r,!1))!=null?n:t;return typeof a=="number"?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&typeof s!="number"&&console.error(`MUI: Expected ${o} argument to be a number or a string, got ${s}.`),a*s):Array.isArray(a)?s=>typeof s=="string"?s:(process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>a.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${s} > ${a.length-1}, you need to add the missing values.`].join(`
|
|
4
|
-
`)):console.error([`MUI: The \`theme.${r}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${r}\` as a number.`].join(`
|
|
5
|
-
`))),a[s]):typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${r}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
6
|
-
`)),()=>{})}function tt(e){return Pe(e,"spacing",8,"spacing")}function Ce(e,r){if(typeof r=="string"||r==null)return r;let t=Math.abs(r),o=e(t);return r>=0?o:typeof o=="number"?-o:`-${o}`}function Tn(e,r){return t=>e.reduce((o,n)=>(o[n]=Ce(r,t),o),{})}function En(e,r,t,o){if(r.indexOf(t)===-1)return null;let n=vn(t),a=Tn(n,o),s=e[t];return Z(e,s,a)}function ot(e,r){let t=tt(e.theme);return Object.keys(e).map(o=>En(e,r,o,t)).reduce(ye,{})}function z(e){return ot(e,_r)}z.propTypes=process.env.NODE_ENV!=="production"?_r.reduce((e,r)=>(e[r]=ie,e),{}):{};z.filterProps=_r;function U(e){return ot(e,Or)}U.propTypes=process.env.NODE_ENV!=="production"?Or.reduce((e,r)=>(e[r]=ie,e),{}):{};U.filterProps=Or;function eo(e){return ot(e,rt)}eo.propTypes=process.env.NODE_ENV!=="production"?rt.reduce((e,r)=>(e[r]=ie,e),{}):{};eo.filterProps=rt;function nt(e=8){if(e.mui)return e;let r=tt({spacing:e}),t=(...o)=>(process.env.NODE_ENV!=="production"&&(o.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${o.length}`)),(o.length===0?[1]:o).map(a=>{let s=r(a);return typeof s=="number"?`${s}px`:s}).join(" "));return t.mui=!0,t}function Sn(...e){let r=e.reduce((o,n)=>(n.filterProps.forEach(a=>{o[a]=n}),o),{}),t=o=>Object.keys(o).reduce((n,a)=>r[a]?ye(n,r[a](o)):n,{});return t.propTypes=process.env.NODE_ENV!=="production"?e.reduce((o,n)=>Object.assign(o,n.propTypes),{}):{},t.filterProps=e.reduce((o,n)=>o.concat(n.filterProps),[]),t}var ge=Sn;function ue(e){return typeof e!="number"?e:`${e}px solid`}var _n=$({prop:"border",themeKey:"borders",transform:ue}),On=$({prop:"borderTop",themeKey:"borders",transform:ue}),Pn=$({prop:"borderRight",themeKey:"borders",transform:ue}),Cn=$({prop:"borderBottom",themeKey:"borders",transform:ue}),wn=$({prop:"borderLeft",themeKey:"borders",transform:ue}),An=$({prop:"borderColor",themeKey:"palette"}),$n=$({prop:"borderTopColor",themeKey:"palette"}),Rn=$({prop:"borderRightColor",themeKey:"palette"}),Mn=$({prop:"borderBottomColor",themeKey:"palette"}),In=$({prop:"borderLeftColor",themeKey:"palette"}),Ue=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let r=Pe(e.theme,"shape.borderRadius",4,"borderRadius"),t=o=>({borderRadius:Ce(r,o)});return Z(e,e.borderRadius,t)}return null};Ue.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:ie}:{};Ue.filterProps=["borderRadius"];var Ki=ge(_n,On,Pn,Cn,wn,An,$n,Rn,Mn,In,Ue);var We=e=>{if(e.gap!==void 0&&e.gap!==null){let r=Pe(e.theme,"spacing",8,"gap"),t=o=>({gap:Ce(r,o)});return Z(e,e.gap,t)}return null};We.propTypes=process.env.NODE_ENV!=="production"?{gap:ie}:{};We.filterProps=["gap"];var Ye=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let r=Pe(e.theme,"spacing",8,"columnGap"),t=o=>({columnGap:Ce(r,o)});return Z(e,e.columnGap,t)}return null};Ye.propTypes=process.env.NODE_ENV!=="production"?{columnGap:ie}:{};Ye.filterProps=["columnGap"];var Ve=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let r=Pe(e.theme,"spacing",8,"rowGap"),t=o=>({rowGap:Ce(r,o)});return Z(e,e.rowGap,t)}return null};Ve.propTypes=process.env.NODE_ENV!=="production"?{rowGap:ie}:{};Ve.filterProps=["rowGap"];var jn=$({prop:"gridColumn"}),kn=$({prop:"gridRow"}),Dn=$({prop:"gridAutoFlow"}),Nn=$({prop:"gridAutoColumns"}),Bn=$({prop:"gridAutoRows"}),Ln=$({prop:"gridTemplateColumns"}),Fn=$({prop:"gridTemplateRows"}),zn=$({prop:"gridTemplateAreas"}),Un=$({prop:"gridArea"}),Qi=ge(We,Ye,Ve,jn,kn,Dn,Nn,Bn,Ln,Fn,zn,Un);function we(e,r){return r==="grey"?r:e}var Wn=$({prop:"color",themeKey:"palette",transform:we}),Yn=$({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:we}),Vn=$({prop:"backgroundColor",themeKey:"palette",transform:we}),of=ge(Wn,Yn,Vn);function ee(e){return e<=1&&e!==0?`${e*100}%`:e}var Kn=$({prop:"width",transform:ee}),Pr=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){let r=t=>{var o;return{maxWidth:((o=e.theme)==null||(o=o.breakpoints)==null||(o=o.values)==null?void 0:o[t])||Sr[t]||ee(t)}};return Z(e,e.maxWidth,r)}return null};Pr.filterProps=["maxWidth"];var Gn=$({prop:"minWidth",transform:ee}),qn=$({prop:"height",transform:ee}),Hn=$({prop:"maxHeight",transform:ee}),Xn=$({prop:"minHeight",transform:ee}),uf=$({prop:"size",cssProperty:"width",transform:ee}),lf=$({prop:"size",cssProperty:"height",transform:ee}),Jn=$({prop:"boxSizing"}),pf=ge(Kn,Pr,Gn,qn,Hn,Xn,Jn);var Zn={border:{themeKey:"borders",transform:ue},borderTop:{themeKey:"borders",transform:ue},borderRight:{themeKey:"borders",transform:ue},borderBottom:{themeKey:"borders",transform:ue},borderLeft:{themeKey:"borders",transform:ue},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ue},color:{themeKey:"palette",transform:we},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:we},backgroundColor:{themeKey:"palette",transform:we},p:{style:U},pt:{style:U},pr:{style:U},pb:{style:U},pl:{style:U},px:{style:U},py:{style:U},padding:{style:U},paddingTop:{style:U},paddingRight:{style:U},paddingBottom:{style:U},paddingLeft:{style:U},paddingX:{style:U},paddingY:{style:U},paddingInline:{style:U},paddingInlineStart:{style:U},paddingInlineEnd:{style:U},paddingBlock:{style:U},paddingBlockStart:{style:U},paddingBlockEnd:{style:U},m:{style:z},mt:{style:z},mr:{style:z},mb:{style:z},ml:{style:z},mx:{style:z},my:{style:z},margin:{style:z},marginTop:{style:z},marginRight:{style:z},marginBottom:{style:z},marginLeft:{style:z},marginX:{style:z},marginY:{style:z},marginInline:{style:z},marginInlineStart:{style:z},marginInlineEnd:{style:z},marginBlock:{style:z},marginBlockStart:{style:z},marginBlockEnd:{style:z},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:We},rowGap:{style:Ve},columnGap:{style:Ye},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ee},maxWidth:{style:Pr},minWidth:{transform:ee},height:{transform:ee},maxHeight:{transform:ee},minHeight:{transform:ee},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ce=Zn;function Qn(...e){let r=e.reduce((o,n)=>o.concat(Object.keys(n)),[]),t=new Set(r);return e.every(o=>t.size===Object.keys(o).length)}function ea(e,r){return typeof e=="function"?e(r):e}function ro(){function e(t,o,n,a){let s={[t]:o,theme:n},p=a[t];if(!p)return{[t]:o};let{cssProperty:i=t,themeKey:u,transform:d,style:b}=p;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[t]:o};let l=De(n,u)||{};return b?b(s):Z(s,o,x=>{let m=ze(l,d,x);return x===m&&typeof x=="string"&&(m=ze(l,d,`${t}${x==="default"?"":J(x)}`,x)),i===!1?m:{[i]:m}})}function r(t){var o;let{sx:n,theme:a={}}=t||{};if(!n)return null;let s=(o=a.unstable_sxConfig)!=null?o:ce;function p(i){let u=i;if(typeof i=="function")u=i(a);else if(typeof i!="object")return i;if(!u)return null;let d=Jt(a.breakpoints),b=Object.keys(d),l=d;return Object.keys(u).forEach(v=>{let x=ea(u[v],a);if(x!=null)if(typeof x=="object")if(s[v])l=ye(l,e(v,x,a,s));else{let m=Z({theme:a},x,O=>({[v]:O}));Qn(m,x)?l[v]=r({sx:x,theme:a}):l=ye(l,m)}else l=ye(l,e(v,x,a,s))}),Zt(b,l)}return Array.isArray(n)?n.map(p):p(n)}return r}var to=ro();to.filterProps=["sx"];var he=to;var ra=["breakpoints","palette","spacing","shape"];function ta(e={},...r){let{breakpoints:t={},palette:o={},spacing:n,shape:a={}}=e,s=W(e,ra),p=Qr(t),i=nt(n),u=X({breakpoints:p,direction:"ltr",components:{},palette:h({mode:"light"},o),spacing:i,shape:h({},Ht,a)},s);return u=r.reduce((d,b)=>X(d,b),u),u.unstable_sxConfig=h({},ce,s?.unstable_sxConfig),u.unstable_sx=function(b){return he({sx:b,theme:this})},u}var be=ta;import*as oo from"react";function oa(e){return Object.keys(e).length===0}function na(e=null){let r=oo.useContext(qt);return!r||oa(r)?e:r}var no=na;var aa=be();function sa(e=aa){return no(e)}var ao=sa;var ia=["sx"],fa=e=>{var r,t;let o={systemProps:{},otherProps:{}},n=(r=e==null||(t=e.theme)==null?void 0:t.unstable_sxConfig)!=null?r:ce;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Ke(e){let{sx:r}=e,t=W(e,ia),{systemProps:o,otherProps:n}=fa(t),a;return Array.isArray(r)?a=[o,...r]:typeof r=="function"?a=(...s)=>{let p=r(...s);return me(p)?h({},o,p):o}:a=h({},o,r),h({},n,{sx:a})}function so(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=so(e[r]))&&(o&&(o+=" "),o+=t);else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function ua(){for(var e,r,t=0,o="";t<arguments.length;)(e=arguments[t++])&&(r=so(e))&&(o&&(o+=" "),o+=r);return o}var io=ua;var la=["variant"];function fo(e){return e.length===0}function Cr(e){let{variant:r}=e,t=W(e,la),o=r||"";return Object.keys(t).sort().forEach(n=>{n==="color"?o+=fo(o)?e[n]:J(e[n]):o+=`${fo(o)?n:J(n)}${J(e[n].toString())}`}),o}var pa=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ca(e){return Object.keys(e).length===0}function ma(e){return typeof e=="string"&&e.charCodeAt(0)>96}var da=(e,r)=>r.components&&r.components[e]&&r.components[e].styleOverrides?r.components[e].styleOverrides:null,xa=(e,r)=>{let t=[];r&&r.components&&r.components[e]&&r.components[e].variants&&(t=r.components[e].variants);let o={};return t.forEach(n=>{let a=Cr(n.props);o[a]=n.style}),o},ya=(e,r,t,o)=>{var n;let{ownerState:a={}}=e,s=[],p=t==null||(n=t.components)==null||(n=n[o])==null?void 0:n.variants;return p&&p.forEach(i=>{let u=!0;Object.keys(i.props).forEach(d=>{a[d]!==i.props[d]&&e[d]!==i.props[d]&&(u=!1)}),u&&s.push(r[Cr(i.props)])}),s};function qe(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}var ga=be(),uo=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ge({defaultTheme:e,theme:r,themeId:t}){return ca(r)?e:r[t]||r}function ha(e){return e?(r,t)=>t[e]:null}function wr(e={}){let{themeId:r,defaultTheme:t=ga,rootShouldForwardProp:o=qe,slotShouldForwardProp:n=qe}=e,a=s=>he(h({},s,{theme:Ge(h({},s,{defaultTheme:t,themeId:r}))}));return a.__mui_systemSx=!0,(s,p={})=>{Gt(s,I=>I.filter(L=>!(L!=null&&L.__mui_systemSx)));let{name:i,slot:u,skipVariantsResolver:d,skipSx:b,overridesResolver:l=ha(uo(u))}=p,v=W(p,pa),x=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,m=b||!1,O;process.env.NODE_ENV!=="production"&&i&&(O=`${i}-${uo(u||"Root")}`);let M=qe;u==="Root"||u==="root"?M=o:u?M=n:ma(s)&&(M=void 0);let V=Zr(s,h({shouldForwardProp:M,label:O},v)),re=(I,...L)=>{let fe=L?L.map(R=>typeof R=="function"&&R.__emotion_real!==R?Q=>R(h({},Q,{theme:Ge(h({},Q,{defaultTheme:t,themeId:r}))})):R):[],te=I;i&&l&&fe.push(R=>{let Q=Ge(h({},R,{defaultTheme:t,themeId:r})),xe=da(i,Q);if(xe){let f={};return Object.entries(xe).forEach(([c,E])=>{f[c]=typeof E=="function"?E(h({},R,{theme:Q})):E}),l(R,f)}return null}),i&&!x&&fe.push(R=>{let Q=Ge(h({},R,{defaultTheme:t,themeId:r}));return ya(R,xa(i,Q),Q,i)}),m||fe.push(a);let de=fe.length-L.length;if(Array.isArray(I)&&de>0){let R=new Array(de).fill("");te=[...I,...R],te.raw=[...I.raw,...R]}else typeof I=="function"&&I.__emotion_real!==I&&(te=R=>I(h({},R,{theme:Ge(h({},R,{defaultTheme:t,themeId:r}))})));let q=V(te,...fe);if(process.env.NODE_ENV!=="production"){let R;i&&(R=`${i}${J(u||"")}`),R===void 0&&(R=`Styled(${Tr(s)})`),q.displayName=R}return s.muiName&&(q.muiName=s.muiName),q};return V.withConfig&&(re.withConfig=V.withConfig),re}}function Ar(e){let{theme:r,name:t,props:o}=e;return!r||!r.components||!r.components[t]||!r.components[t].defaultProps?o:Le(r.components[t].defaultProps,o)}function He({props:e,name:r,defaultTheme:t,themeId:o}){let n=ao(t);return o&&(n=n[o]||n),Ar({theme:n,name:r,props:e})}function po(e,r=0,t=1){return process.env.NODE_ENV!=="production"&&(e<r||e>t)&&console.error(`MUI: The value provided ${e} is out of range [${r}, ${t}].`),Math.min(Math.max(r,e),t)}function ba(e){e=e.slice(1);let r=new RegExp(`.{1,${e.length>=6?2:1}}`,"g"),t=e.match(r);return t&&t[0].length===1&&(t=t.map(o=>o+o)),t?`rgb${t.length===4?"a":""}(${t.map((o,n)=>n<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Ne(e){if(e.type)return e;if(e.charAt(0)==="#")return Ne(ba(e));let r=e.indexOf("("),t=e.substring(0,r);if(["rgb","rgba","hsl","hsla","color"].indexOf(t)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
7
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:ae(9,e));let o=e.substring(r+1,e.length-1),n;if(t==="color"){if(o=o.split(" "),n=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${n}\` color space.
|
|
8
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ae(10,n))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:t,values:o,colorSpace:n}}function at(e){let{type:r,colorSpace:t}=e,{values:o}=e;return r.indexOf("rgb")!==-1?o=o.map((n,a)=>a<3?parseInt(n,10):n):r.indexOf("hsl")!==-1&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),r.indexOf("color")!==-1?o=`${t} ${o.join(" ")}`:o=`${o.join(", ")}`,`${r}(${o})`}function va(e){e=Ne(e);let{values:r}=e,t=r[0],o=r[1]/100,n=r[2]/100,a=o*Math.min(n,1-n),s=(u,d=(u+t/30)%12)=>n-a*Math.max(Math.min(d-3,9-d,1),-1),p="rgb",i=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(p+="a",i.push(r[3])),at({type:p,values:i})}function lo(e){e=Ne(e);let r=e.type==="hsl"||e.type==="hsla"?Ne(va(e)).values:e.values;return r=r.map(t=>(e.type!=="color"&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function st(e,r){let t=lo(e),o=lo(r);return(Math.max(t,o)+.05)/(Math.min(t,o)+.05)}function co(e,r){if(e=Ne(e),r=po(r),e.type.indexOf("hsl")!==-1)e.values[2]*=1-r;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)e.values[t]*=1-r;return at(e)}function mo(e,r){if(e=Ne(e),r=po(r),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*r;else if(e.type.indexOf("rgb")!==-1)for(let t=0;t<3;t+=1)e.values[t]+=(255-e.values[t])*r;else if(e.type.indexOf("color")!==-1)for(let t=0;t<3;t+=1)e.values[t]+=(1-e.values[t])*r;return at(e)}function it(e,r){return h({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},r)}var Ta=["mode","contrastThreshold","tonalOffset"],xo={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:$e.white,default:$e.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},ft={text:{primary:$e.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:$e.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function yo(e,r,t,o){let n=o.light||o,a=o.dark||o*1.5;e[r]||(e.hasOwnProperty(t)?e[r]=e[t]:r==="light"?e.light=mo(e.main,n):r==="dark"&&(e.dark=co(e.main,a)))}function Ea(e="light"){return e==="dark"?{main:Se[200],light:Se[50],dark:Se[400]}:{main:Se[700],light:Se[400],dark:Se[800]}}function Sa(e="light"){return e==="dark"?{main:Ee[200],light:Ee[50],dark:Ee[400]}:{main:Ee[500],light:Ee[300],dark:Ee[700]}}function _a(e="light"){return e==="dark"?{main:Te[500],light:Te[300],dark:Te[700]}:{main:Te[700],light:Te[400],dark:Te[800]}}function Oa(e="light"){return e==="dark"?{main:_e[400],light:_e[300],dark:_e[700]}:{main:_e[700],light:_e[500],dark:_e[900]}}function Pa(e="light"){return e==="dark"?{main:Oe[400],light:Oe[300],dark:Oe[700]}:{main:Oe[800],light:Oe[500],dark:Oe[900]}}function Ca(e="light"){return e==="dark"?{main:Re[400],light:Re[300],dark:Re[700]}:{main:"#ed6c02",light:Re[500],dark:Re[900]}}function ut(e){let{mode:r="light",contrastThreshold:t=3,tonalOffset:o=.2}=e,n=W(e,Ta),a=e.primary||Ea(r),s=e.secondary||Sa(r),p=e.error||_a(r),i=e.info||Oa(r),u=e.success||Pa(r),d=e.warning||Ca(r);function b(m){let O=st(m,ft.text.primary)>=t?ft.text.primary:xo.text.primary;if(process.env.NODE_ENV!=="production"){let M=st(m,O);M<3&&console.error([`MUI: The contrast ratio of ${M}:1 for ${O} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
9
|
-
`))}return O}let l=({color:m,name:O,mainShade:M=500,lightShade:V=300,darkShade:re=700})=>{if(m=h({},m),!m.main&&m[M]&&(m.main=m[M]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${O?` (${O})`:""} provided to augmentColor(color) is invalid.
|
|
10
|
-
The color object needs to have a \`main\` property or a \`${M}\` property.`:ae(11,O?` (${O})`:"",M));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${O?` (${O})`:""} provided to augmentColor(color) is invalid.
|
|
11
|
-
\`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead.
|
|
12
|
-
|
|
13
|
-
Did you intend to use one of the following approaches?
|
|
14
|
-
|
|
15
|
-
import { green } from "@mui/material/colors";
|
|
16
|
-
|
|
17
|
-
const theme1 = createTheme({ palette: {
|
|
18
|
-
primary: green,
|
|
19
|
-
} });
|
|
20
|
-
|
|
21
|
-
const theme2 = createTheme({ palette: {
|
|
22
|
-
primary: { main: green[500] },
|
|
23
|
-
} });`:ae(12,O?` (${O})`:"",JSON.stringify(m.main)));return yo(m,"light",V,o),yo(m,"dark",re,o),m.contrastText||(m.contrastText=b(m.main)),m},v={dark:ft,light:xo};return process.env.NODE_ENV!=="production"&&(v[r]||console.error(`MUI: The palette mode \`${r}\` is not supported.`)),X(h({common:h({},$e),mode:r,primary:l({color:a,name:"primary"}),secondary:l({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:l({color:p,name:"error"}),warning:l({color:d,name:"warning"}),info:l({color:i,name:"info"}),success:l({color:u,name:"success"}),grey:yt,contrastThreshold:t,getContrastText:b,augmentColor:l,tonalOffset:o},v[r]),n)}var wa=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Aa(e){return Math.round(e*1e5)/1e5}var go={textTransform:"uppercase"},ho='"Roboto", "Helvetica", "Arial", sans-serif';function lt(e,r){let t=typeof r=="function"?r(e):r,{fontFamily:o=ho,fontSize:n=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:p=500,fontWeightBold:i=700,htmlFontSize:u=16,allVariants:d,pxToRem:b}=t,l=W(t,wa);process.env.NODE_ENV!=="production"&&(typeof n!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));let v=n/14,x=b||(M=>`${M/u*v}rem`),m=(M,V,re,I,L)=>h({fontFamily:o,fontWeight:M,fontSize:x(V),lineHeight:re},o===ho?{letterSpacing:`${Aa(I/V)}em`}:{},L,d),O={h1:m(a,96,1.167,-1.5),h2:m(a,60,1.2,-.5),h3:m(s,48,1.167,0),h4:m(s,34,1.235,.25),h5:m(s,24,1.334,0),h6:m(p,20,1.6,.15),subtitle1:m(s,16,1.75,.15),subtitle2:m(p,14,1.57,.1),body1:m(s,16,1.5,.15),body2:m(s,14,1.43,.15),button:m(p,14,1.75,.4,go),caption:m(s,12,1.66,.4),overline:m(s,12,2.66,1,go),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return X(h({htmlFontSize:u,pxToRem:x,fontFamily:o,fontSize:n,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:p,fontWeightBold:i},O),l,{clone:!1})}function F(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${.2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${.14})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${.12})`].join(",")}var $a=["none",F(0,2,1,-1,0,1,1,0,0,1,3,0),F(0,3,1,-2,0,2,2,0,0,1,5,0),F(0,3,3,-2,0,3,4,0,0,1,8,0),F(0,2,4,-1,0,4,5,0,0,1,10,0),F(0,3,5,-1,0,5,8,0,0,1,14,0),F(0,3,5,-1,0,6,10,0,0,1,18,0),F(0,4,5,-2,0,7,10,1,0,2,16,1),F(0,5,5,-3,0,8,10,1,0,3,14,2),F(0,5,6,-3,0,9,12,1,0,3,16,2),F(0,6,6,-3,0,10,14,1,0,4,18,3),F(0,6,7,-4,0,11,15,1,0,4,20,3),F(0,7,8,-4,0,12,17,2,0,5,22,4),F(0,7,8,-4,0,13,19,2,0,5,24,4),F(0,7,9,-4,0,14,21,2,0,5,26,4),F(0,8,9,-5,0,15,22,2,0,6,28,5),F(0,8,10,-5,0,16,24,2,0,6,30,5),F(0,8,11,-5,0,17,26,2,0,6,32,5),F(0,9,11,-5,0,18,28,2,0,7,34,6),F(0,9,12,-6,0,19,29,2,0,7,36,6),F(0,10,13,-6,0,20,31,3,0,8,38,7),F(0,10,13,-6,0,21,33,3,0,8,40,7),F(0,10,14,-6,0,22,35,3,0,8,42,7),F(0,11,14,-7,0,23,36,3,0,9,44,8),F(0,11,15,-7,0,24,38,3,0,9,46,8)],bo=$a;var Ra=["duration","easing","delay"],Ma={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ia={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function vo(e){return`${Math.round(e)}ms`}function ja(e){if(!e)return 0;let r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function pt(e){let r=h({},Ma,e.easing),t=h({},Ia,e.duration);return h({getAutoHeightDuration:ja,create:(n=["all"],a={})=>{let{duration:s=t.standard,easing:p=r.easeInOut,delay:i=0}=a,u=W(a,Ra);if(process.env.NODE_ENV!=="production"){let d=l=>typeof l=="string",b=l=>!isNaN(parseFloat(l));!d(n)&&!Array.isArray(n)&&console.error('MUI: Argument "props" must be a string or Array.'),!b(s)&&!d(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),d(p)||console.error('MUI: Argument "easing" must be a string.'),!b(i)&&!d(i)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
24
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(n)?n:[n]).map(d=>`${d} ${typeof s=="string"?s:vo(s)} ${p} ${typeof i=="string"?i:vo(i)}`).join(",")}},e,{easing:r,duration:t})}var ka={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},To=ka;var Da=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Na(e={},...r){let{mixins:t={},palette:o={},transitions:n={},typography:a={}}=e,s=W(e,Da);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":ae(18));let p=ut(o),i=be(e),u=X(i,{mixins:it(i.breakpoints,t),palette:p,shadows:bo.slice(),typography:lt(p,a),transitions:pt(n),zIndex:h({},To)});if(u=X(u,s),u=r.reduce((d,b)=>X(d,b),u),process.env.NODE_ENV!=="production"){let d=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],b=(l,v)=>{let x;for(x in l){let m=l[x];if(d.indexOf(x)!==-1&&Object.keys(m).length>0){if(process.env.NODE_ENV!=="production"){let O=pe("",x);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${x}\` internal state.`,"You can not override it like this: ",JSON.stringify(l,null,2),"",`Instead, you need to use the '&.${O}' syntax:`,JSON.stringify({root:{[`&.${O}`]:m}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
25
|
-
`))}l[x]={}}}};Object.keys(u.components).forEach(l=>{let v=u.components[l].styleOverrides;v&&l.indexOf("Mui")===0&&b(v,l)})}return u.unstable_sxConfig=h({},ce,s?.unstable_sxConfig),u.unstable_sx=function(b){return he({sx:b,theme:this})},u}var Eo=Na;var Ba=Eo(),$r=Ba;function ct({props:e,name:r}){return He({props:e,name:r,defaultTheme:$r,themeId:Er})}var La=e=>qe(e)&&e!=="classes";var Fa=wr({themeId:Er,defaultTheme:$r,rootShouldForwardProp:La}),So=Fa;var mt=J;var Y=Nr(Gr());import*as Po from"react";function _o(e){return pe("MuiTypography",e)}var Nl=Fe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);import{jsx as Ua}from"react/jsx-runtime";var za=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Wa=e=>{let{align:r,gutterBottom:t,noWrap:o,paragraph:n,variant:a,classes:s}=e,p={root:["root",a,e.align!=="inherit"&&`align${mt(r)}`,t&&"gutterBottom",o&&"noWrap",n&&"paragraph"]};return je(p,_o,s)},Ya=So("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,t.variant&&r[t.variant],t.align!=="inherit"&&r[`align${mt(t.align)}`],t.noWrap&&r.noWrap,t.gutterBottom&&r.gutterBottom,t.paragraph&&r.paragraph]}})(({theme:e,ownerState:r})=>h({margin:0},r.variant==="inherit"&&{font:"inherit"},r.variant!=="inherit"&&e.typography[r.variant],r.align!=="inherit"&&{textAlign:r.align},r.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},r.gutterBottom&&{marginBottom:"0.35em"},r.paragraph&&{marginBottom:16})),Oo={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Va={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Ka=e=>Va[e]||e,Co=Po.forwardRef(function(r,t){let o=ct({props:r,name:"MuiTypography"}),n=Ka(o.color),a=Ke(h({},o,{color:n})),{align:s="inherit",className:p,component:i,gutterBottom:u=!1,noWrap:d=!1,paragraph:b=!1,variant:l="body1",variantMapping:v=Oo}=a,x=W(a,za),m=h({},a,{align:s,color:n,className:p,component:i,gutterBottom:u,noWrap:d,paragraph:b,variant:l,variantMapping:v}),O=i||(b?"p":v[l]||Oo[l])||"span",M=Wa(m);return Ua(Ya,h({as:O,ref:t,ownerState:m,className:io(M.root,p)},x))});process.env.NODE_ENV!=="production"&&(Co.propTypes={align:Y.default.oneOf(["center","inherit","justify","left","right"]),children:Y.default.node,classes:Y.default.object,className:Y.default.string,component:Y.default.elementType,gutterBottom:Y.default.bool,noWrap:Y.default.bool,paragraph:Y.default.bool,sx:Y.default.oneOfType([Y.default.arrayOf(Y.default.oneOfType([Y.default.func,Y.default.object,Y.default.bool])),Y.default.func,Y.default.object]),variant:Y.default.oneOfType([Y.default.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),Y.default.string]),variantMapping:Y.default.object});var Rr=Co;import{LIcon as Za,Tooltip as Qa}from"@s_mart/core";import{lineTimes as es}from"@s_mart/regular-icons";import Ga from"@emotion/styled";import{colorPalette as wo}from"@s_mart/tokens";var Ao=Ga.button`
|
|
1
|
+
import P,{useEffect as T}from"react";import{Dropzone as b,FileItem as A}from"@dropzone-ui/react";import{Typography as q}from"@s_mart/core";import{LIcon as w,Tooltip as N}from"@s_mart/core";import{lineTimes as k}from"@s_mart/regular-icons";import x from"@emotion/styled";import{colorPalette as c}from"@s_mart/tokens";var m=x.button`
|
|
26
2
|
display: flex;
|
|
27
3
|
align-items: center;
|
|
28
4
|
justify-content: center;
|
|
@@ -42,79 +18,10 @@ const theme2 = createTheme({ palette: {
|
|
|
42
18
|
cursor: pointer;
|
|
43
19
|
transition: all 0.3s ease;
|
|
44
20
|
|
|
45
|
-
color: ${
|
|
21
|
+
color: ${c.neutral[500]};
|
|
46
22
|
|
|
47
23
|
&:hover {
|
|
48
|
-
background-color: ${
|
|
24
|
+
background-color: ${c.neutral[40]};
|
|
49
25
|
transition: all 0.3s ease;
|
|
50
26
|
}
|
|
51
|
-
`;import{useNotification as
|
|
52
|
-
/*! Bundled license information:
|
|
53
|
-
|
|
54
|
-
react-is/cjs/react-is.production.min.js:
|
|
55
|
-
(** @license React v16.13.1
|
|
56
|
-
* react-is.production.min.js
|
|
57
|
-
*
|
|
58
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
59
|
-
*
|
|
60
|
-
* This source code is licensed under the MIT license found in the
|
|
61
|
-
* LICENSE file in the root directory of this source tree.
|
|
62
|
-
*)
|
|
63
|
-
|
|
64
|
-
react-is/cjs/react-is.development.js:
|
|
65
|
-
(** @license React v16.13.1
|
|
66
|
-
* react-is.development.js
|
|
67
|
-
*
|
|
68
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
69
|
-
*
|
|
70
|
-
* This source code is licensed under the MIT license found in the
|
|
71
|
-
* LICENSE file in the root directory of this source tree.
|
|
72
|
-
*)
|
|
73
|
-
|
|
74
|
-
object-assign/index.js:
|
|
75
|
-
(*
|
|
76
|
-
object-assign
|
|
77
|
-
(c) Sindre Sorhus
|
|
78
|
-
@license MIT
|
|
79
|
-
*)
|
|
80
|
-
|
|
81
|
-
react-is/cjs/react-is.production.min.js:
|
|
82
|
-
(**
|
|
83
|
-
* @license React
|
|
84
|
-
* react-is.production.min.js
|
|
85
|
-
*
|
|
86
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the MIT license found in the
|
|
89
|
-
* LICENSE file in the root directory of this source tree.
|
|
90
|
-
*)
|
|
91
|
-
|
|
92
|
-
react-is/cjs/react-is.development.js:
|
|
93
|
-
(**
|
|
94
|
-
* @license React
|
|
95
|
-
* react-is.development.js
|
|
96
|
-
*
|
|
97
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
98
|
-
*
|
|
99
|
-
* This source code is licensed under the MIT license found in the
|
|
100
|
-
* LICENSE file in the root directory of this source tree.
|
|
101
|
-
*)
|
|
102
|
-
|
|
103
|
-
@mui/styled-engine/index.js:
|
|
104
|
-
(**
|
|
105
|
-
* @mui/styled-engine v5.14.6
|
|
106
|
-
*
|
|
107
|
-
* @license MIT
|
|
108
|
-
* This source code is licensed under the MIT license found in the
|
|
109
|
-
* LICENSE file in the root directory of this source tree.
|
|
110
|
-
*)
|
|
111
|
-
|
|
112
|
-
@mui/material/index.js:
|
|
113
|
-
(**
|
|
114
|
-
* @mui/material v5.14.6
|
|
115
|
-
*
|
|
116
|
-
* @license MIT
|
|
117
|
-
* This source code is licensed under the MIT license found in the
|
|
118
|
-
* LICENSE file in the root directory of this source tree.
|
|
119
|
-
*)
|
|
120
|
-
*/
|
|
27
|
+
`;import{useNotification as B}from"@s_mart/hooks";import{Fragment as U,jsx as t,jsxs as _}from"react/jsx-runtime";var I=({showDeleteAllFilesButton:u=!0,placeholder:h,fileItemProps:D,initialValue:n=[],onClean:v,onReset:g,tratamentoFilesOnChange:p,...f})=>{let{setNotification:d}=B(),[l,a]=P.useState(n),z=e=>{let o=e.filter(i=>i.valid===!0);a(o);let r={variant:"warning",autoHideDuration:5e3};if(e.length>0){let i=e.filter(s=>s.valid===!1);i.length===1?d({...r,title:`Arquivo ${i[0].file.name} inv\xE1lido`,message:i[0].errors?.[0]}):i.length>1&&i.forEach(s=>{d({...r,title:`Arquivo ${s.file.name} inv\xE1lido`,message:s.errors?.[0]})})}},y=()=>{a([]),g?.()},F=e=>{let o=l.filter(r=>r.id!==e.id);a(o),v?.(o)};return T(()=>{n.length&&a(n)},[n]),t(b,{localization:"PT-pt",header:!1,footer:!1,headerClassName:"header",view:"grid",value:l,...f,onChange:async e=>{let o=e;if(p){let r=await p(e);r&&(o=r)}z(o),f.onChange?.(o)},children:l.length===0?t("div",{children:h||"Arraste os arquivos aqui ou clique para selecionar"}):_(U,{children:[u&&t(N,{title:t(q,{variant:"bodyMD",children:"Remover"}),children:t(m,{onClick:e=>{e.preventDefault(),e.stopPropagation(),y()},children:t(w,{icon:k,size:"24px"})})}),t("div",{style:{display:"flex"},children:l?.map(e=>t(A,{info:!0,localization:"PT-pt",preview:!0,...e,...D,onDelete:()=>F(e)},e.id))})]})})};export{I as Dropzone};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@s_mart/dropzone",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -9,37 +9,40 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"dist/**"
|
|
11
11
|
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsup src/index.tsx --minify --format esm --dts --external react",
|
|
14
|
-
"dev": "tsup src/index.tsx --format esm --watch --dts --external react",
|
|
15
|
-
"lint": "eslint src/**/*.ts* --fix"
|
|
16
|
-
},
|
|
17
12
|
"dependencies": {
|
|
18
13
|
"@dropzone-ui/react": "^6.7.20",
|
|
19
|
-
"@s_mart/core": "*",
|
|
20
|
-
"@s_mart/hooks": "*",
|
|
21
|
-
"@s_mart/regular-icons": "*",
|
|
22
|
-
"@s_mart/tokens": "*",
|
|
23
|
-
"@types/react": "^18.2.21",
|
|
24
|
-
"@types/react-dom": "18.2.4",
|
|
25
14
|
"tsup": "^6.7.0",
|
|
26
|
-
"
|
|
15
|
+
"@types/react": ">=18.2.21",
|
|
16
|
+
"@types/react-dom": ">=18.2.4",
|
|
17
|
+
"typescript": "^5.2.2",
|
|
18
|
+
"@s_mart/core": "5.0.1",
|
|
19
|
+
"@s_mart/hooks": "5.0.1",
|
|
20
|
+
"@s_mart/regular-icons": "5.0.1",
|
|
21
|
+
"eslint-config-smarten": "4.0.1",
|
|
22
|
+
"@s_mart/tokens": "5.0.0",
|
|
23
|
+
"@s_mart/typed": "5.0.0"
|
|
27
24
|
},
|
|
28
25
|
"peerDependencies": {
|
|
29
26
|
"@emotion/react": ">=11.10.8",
|
|
30
27
|
"@emotion/styled": ">=11.10.8",
|
|
31
|
-
"@
|
|
32
|
-
"@
|
|
33
|
-
"@s_mart/regular-icons": "*",
|
|
34
|
-
"@s_mart/tokens": "*",
|
|
28
|
+
"@types/react": ">=18.2.21",
|
|
29
|
+
"@types/react-dom": ">=18.2.4",
|
|
35
30
|
"axios": ">=1.3.3",
|
|
36
31
|
"react": ">=18.2.0",
|
|
37
32
|
"react-dom": ">=18.2.0",
|
|
38
|
-
"typescript": ">=5.2.2"
|
|
33
|
+
"typescript": ">=5.2.2",
|
|
34
|
+
"@s_mart/core": "5.0.1",
|
|
35
|
+
"@s_mart/hooks": "5.0.1",
|
|
36
|
+
"@s_mart/regular-icons": "5.0.1",
|
|
37
|
+
"@s_mart/tokens": "5.0.0",
|
|
38
|
+
"@s_mart/typed": "5.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
"eslint": "^8.47.0"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "tsup src/index.tsx --minify --format esm --dts --external react",
|
|
45
|
+
"dev": "tsup src/index.tsx --format esm --watch --dts --external react",
|
|
46
|
+
"lint": "eslint src/**/*.ts* --fix"
|
|
44
47
|
}
|
|
45
48
|
}
|