@carto/ps-react-ui 1.0.0 → 1.1.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/ps-react-ui.js +18906 -0
- package/dist/types/components/input-file/types.d.ts +1 -0
- package/package.json +16 -43
- package/dist/ps-react-ui.es.js +0 -1932
- package/dist/ps-react-ui.umd.js +0 -49
package/dist/ps-react-ui.umd.js
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
(function(X,Y){typeof exports=="object"&&typeof module<"u"?Y(exports,require("react"),require("@material-ui/core"),require("@material-ui/styles"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@material-ui/core","@material-ui/styles","react-dom"],Y):(X=typeof globalThis<"u"?globalThis:X||self,Y(X.PsReactUi={},X.react,X["@material-ui/core"],X["@material-ui/styles"],X["react-dom"]))})(this,function(X,Y,G,wt,St){"use strict";const _t=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function Ue(e){if(e&&e.__esModule)return e;const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const k=Ue(Y),se=_t(Y),Rt=Ue(St);function qe(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=qe(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function ie(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=qe(e))&&(n&&(n+=" "),n+=t);return n}function At(e){var t=e.default;if(typeof t=="function"){var r=function(){return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var ve={},Le={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Le);var Be={exports:{}},Ye={exports:{}};(function(e){function t(r){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ye),function(e){var t=Ye.exports.default;function r(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,f=new WeakMap;return(r=function(c){return c?f:a})(o)}function n(o,a){if(!a&&o&&o.__esModule)return o;if(o===null||t(o)!=="object"&&typeof o!="function")return{default:o};var f=r(a);if(f&&f.has(o))return f.get(o);var s={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in o)if(m!=="default"&&Object.prototype.hasOwnProperty.call(o,m)){var d=c?Object.getOwnPropertyDescriptor(o,m):null;d&&(d.get||d.set)?Object.defineProperty(s,m,d):s[m]=o[m]}return s.default=o,f&&f.set(o,s),s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Be);var ge={};function Pt(e,t){return process.env.NODE_ENV==="production"?function(){return null}:function(){return e.apply(void 0,arguments)||t.apply(void 0,arguments)}}function L(){return L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},L.apply(this,arguments)}function he(e){return he=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},he(e)}function ye(e){return e&&he(e)==="object"&&e.constructor===Object}function ue(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?L({},e):e;return ye(e)&&ye(t)&&Object.keys(t).forEach(function(o){o!=="__proto__"&&(ye(t[o])&&o in e?n[o]=ue(e[o],t[o],r):n[o]=t[o])}),n}var V={exports:{}},be={exports:{}},I={};/** @license React v16.13.1
|
2
|
-
* react-is.production.min.js
|
3
|
-
*
|
4
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
5
|
-
*
|
6
|
-
* This source code is licensed under the MIT license found in the
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
8
|
-
*/var He;function Ct(){if(He)return I;He=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,q=e?Symbol.for("react.scope"):60119;function j(u){if(typeof u=="object"&&u!==null){var D=u.$$typeof;switch(D){case t:switch(u=u.type,u){case c:case m:case n:case a:case o:case g:return u;default:switch(u=u&&u.$$typeof,u){case s:case d:case h:case v:case f:return u;default:return D}}case r:return D}}}function C(u){return j(u)===m}return I.AsyncMode=c,I.ConcurrentMode=m,I.ContextConsumer=s,I.ContextProvider=f,I.Element=t,I.ForwardRef=d,I.Fragment=n,I.Lazy=h,I.Memo=v,I.Portal=r,I.Profiler=a,I.StrictMode=o,I.Suspense=g,I.isAsyncMode=function(u){return C(u)||j(u)===c},I.isConcurrentMode=C,I.isContextConsumer=function(u){return j(u)===s},I.isContextProvider=function(u){return j(u)===f},I.isElement=function(u){return typeof u=="object"&&u!==null&&u.$$typeof===t},I.isForwardRef=function(u){return j(u)===d},I.isFragment=function(u){return j(u)===n},I.isLazy=function(u){return j(u)===h},I.isMemo=function(u){return j(u)===v},I.isPortal=function(u){return j(u)===r},I.isProfiler=function(u){return j(u)===a},I.isStrictMode=function(u){return j(u)===o},I.isSuspense=function(u){return j(u)===g},I.isValidElementType=function(u){return typeof u=="string"||typeof u=="function"||u===n||u===m||u===a||u===o||u===g||u===b||typeof u=="object"&&u!==null&&(u.$$typeof===h||u.$$typeof===v||u.$$typeof===f||u.$$typeof===s||u.$$typeof===d||u.$$typeof===x||u.$$typeof===N||u.$$typeof===q||u.$$typeof===y)},I.typeOf=j,I}var M={};/** @license React v16.13.1
|
9
|
-
* react-is.development.js
|
10
|
-
*
|
11
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
12
|
-
*
|
13
|
-
* This source code is licensed under the MIT license found in the
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
15
|
-
*/var Je;function It(){return Je||(Je=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,q=e?Symbol.for("react.scope"):60119;function j(l){return typeof l=="string"||typeof l=="function"||l===n||l===m||l===a||l===o||l===g||l===b||typeof l=="object"&&l!==null&&(l.$$typeof===h||l.$$typeof===v||l.$$typeof===f||l.$$typeof===s||l.$$typeof===d||l.$$typeof===x||l.$$typeof===N||l.$$typeof===q||l.$$typeof===y)}function C(l){if(typeof l=="object"&&l!==null){var Q=l.$$typeof;switch(Q){case t:var me=l.type;switch(me){case c:case m:case n:case a:case o:case g:return me;default:var Tt=me&&me.$$typeof;switch(Tt){case s:case d:case h:case v:case f:return Tt;default:return Q}}case r:return Q}}}var u=c,D=m,H=s,z=f,_=t,U=d,J=n,F=h,Z=v,ee=r,re=a,K=o,ne=g,pe=!1;function Ve(l){return pe||(pe=!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.")),i(l)||C(l)===c}function i(l){return C(l)===m}function p(l){return C(l)===s}function S(l){return C(l)===f}function T(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function E(l){return C(l)===d}function R(l){return C(l)===n}function O(l){return C(l)===h}function w(l){return C(l)===v}function A(l){return C(l)===r}function $(l){return C(l)===a}function P(l){return C(l)===o}function B(l){return C(l)===g}M.AsyncMode=u,M.ConcurrentMode=D,M.ContextConsumer=H,M.ContextProvider=z,M.Element=_,M.ForwardRef=U,M.Fragment=J,M.Lazy=F,M.Memo=Z,M.Portal=ee,M.Profiler=re,M.StrictMode=K,M.Suspense=ne,M.isAsyncMode=Ve,M.isConcurrentMode=i,M.isContextConsumer=p,M.isContextProvider=S,M.isElement=T,M.isForwardRef=E,M.isFragment=R,M.isLazy=O,M.isMemo=w,M.isPortal=A,M.isProfiler=$,M.isStrictMode=P,M.isSuspense=B,M.isValidElementType=j,M.typeOf=C}()),M}var Ke;function Xe(){return Ke||(Ke=1,function(e){process.env.NODE_ENV==="production"?e.exports=Ct():e.exports=It()}(be)),be.exports}/*
|
16
|
-
object-assign
|
17
|
-
(c) Sindre Sorhus
|
18
|
-
@license MIT
|
19
|
-
*/var Ee,Ge;function Mt(){if(Ge)return Ee;Ge=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var f={},s=0;s<10;s++)f["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(f).map(function(d){return f[d]});if(c.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(d){m[d]=d}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Ee=o()?Object.assign:function(a,f){for(var s,c=n(a),m,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var g in s)t.call(s,g)&&(c[g]=s[g]);if(e){m=e(s);for(var b=0;b<m.length;b++)r.call(s,m[b])&&(c[m[b]]=s[m[b]])}}return c},Ee}var xe,Ze;function Oe(){if(Ze)return xe;Ze=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return xe=e,xe}var Te,Qe;function et(){return Qe||(Qe=1,Te=Function.call.bind(Object.prototype.hasOwnProperty)),Te}var we,tt;function Nt(){if(tt)return we;tt=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Oe(),r={},n=et();e=function(a){var f="Warning: "+a;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}}}function o(a,f,s,c,m){if(process.env.NODE_ENV!=="production"){for(var d in a)if(n(a,d)){var g;try{if(typeof a[d]!="function"){var b=Error((c||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}g=a[d](f,d,c,s,null,t)}catch(h){g=h}if(g&&!(g instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in r)){r[g.message]=!0;var v=m?m():"";e("Failed "+s+" type: "+g.message+(v??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},we=o,we}var Se,rt;function $t(){if(rt)return Se;rt=1;var e=Xe(),t=Mt(),r=Oe(),n=et(),o=Nt(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function f(){return null}return Se=function(s,c){var m=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function g(i){var p=i&&(m&&i[m]||i[d]);if(typeof p=="function")return p}var b="<<anonymous>>",v={array:N("array"),bigint:N("bigint"),bool:N("boolean"),func:N("function"),number:N("number"),object:N("object"),string:N("string"),symbol:N("symbol"),any:q(),arrayOf:j,element:C(),elementType:u(),instanceOf:D,node:U(),objectOf:z,oneOf:H,oneOfType:_,shape:F,exact:Z};function h(i,p){return i===p?i!==0||1/i===1/p:i!==i&&p!==p}function y(i,p){this.message=i,this.data=p&&typeof p=="object"?p:{},this.stack=""}y.prototype=Error.prototype;function x(i){if(process.env.NODE_ENV!=="production")var p={},S=0;function T(R,O,w,A,$,P,B){if(A=A||b,P=P||w,B!==r){if(c){var l=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 l.name="Invariant Violation",l}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Q=A+":"+w;!p[Q]&&S<3&&(a("You are manually calling a React.PropTypes validation function for the `"+P+"` prop on `"+A+"`. 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."),p[Q]=!0,S++)}}return O[w]==null?R?O[w]===null?new y("The "+$+" `"+P+"` is marked as required "+("in `"+A+"`, but its value is `null`.")):new y("The "+$+" `"+P+"` is marked as required in "+("`"+A+"`, but its value is `undefined`.")):null:i(O,w,A,$,P)}var E=T.bind(null,!1);return E.isRequired=T.bind(null,!0),E}function N(i){function p(S,T,E,R,O,w){var A=S[T],$=K(A);if($!==i){var P=ne(A);return new y("Invalid "+R+" `"+O+"` of type "+("`"+P+"` supplied to `"+E+"`, expected ")+("`"+i+"`."),{expectedType:i})}return null}return x(p)}function q(){return x(f)}function j(i){function p(S,T,E,R,O){if(typeof i!="function")return new y("Property `"+O+"` of component `"+E+"` has invalid PropType notation inside arrayOf.");var w=S[T];if(!Array.isArray(w)){var A=K(w);return new y("Invalid "+R+" `"+O+"` of type "+("`"+A+"` supplied to `"+E+"`, expected an array."))}for(var $=0;$<w.length;$++){var P=i(w,$,E,R,O+"["+$+"]",r);if(P instanceof Error)return P}return null}return x(p)}function C(){function i(p,S,T,E,R){var O=p[S];if(!s(O)){var w=K(O);return new y("Invalid "+E+" `"+R+"` of type "+("`"+w+"` supplied to `"+T+"`, expected a single ReactElement."))}return null}return x(i)}function u(){function i(p,S,T,E,R){var O=p[S];if(!e.isValidElementType(O)){var w=K(O);return new y("Invalid "+E+" `"+R+"` of type "+("`"+w+"` supplied to `"+T+"`, expected a single ReactElement type."))}return null}return x(i)}function D(i){function p(S,T,E,R,O){if(!(S[T]instanceof i)){var w=i.name||b,A=Ve(S[T]);return new y("Invalid "+R+" `"+O+"` of type "+("`"+A+"` supplied to `"+E+"`, expected ")+("instance of `"+w+"`."))}return null}return x(p)}function H(i){if(!Array.isArray(i))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),f;function p(S,T,E,R,O){for(var w=S[T],A=0;A<i.length;A++)if(h(w,i[A]))return null;var $=JSON.stringify(i,function(B,l){var Q=ne(l);return Q==="symbol"?String(l):l});return new y("Invalid "+R+" `"+O+"` of value `"+String(w)+"` "+("supplied to `"+E+"`, expected one of "+$+"."))}return x(p)}function z(i){function p(S,T,E,R,O){if(typeof i!="function")return new y("Property `"+O+"` of component `"+E+"` has invalid PropType notation inside objectOf.");var w=S[T],A=K(w);if(A!=="object")return new y("Invalid "+R+" `"+O+"` of type "+("`"+A+"` supplied to `"+E+"`, expected an object."));for(var $ in w)if(n(w,$)){var P=i(w,$,E,R,O+"."+$,r);if(P instanceof Error)return P}return null}return x(p)}function _(i){if(!Array.isArray(i))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),f;for(var p=0;p<i.length;p++){var S=i[p];if(typeof S!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+pe(S)+" at index "+p+"."),f}function T(E,R,O,w,A){for(var $=[],P=0;P<i.length;P++){var B=i[P],l=B(E,R,O,w,A,r);if(l==null)return null;l.data&&n(l.data,"expectedType")&&$.push(l.data.expectedType)}var Q=$.length>0?", expected one of type ["+$.join(", ")+"]":"";return new y("Invalid "+w+" `"+A+"` supplied to "+("`"+O+"`"+Q+"."))}return x(T)}function U(){function i(p,S,T,E,R){return ee(p[S])?null:new y("Invalid "+E+" `"+R+"` supplied to "+("`"+T+"`, expected a ReactNode."))}return x(i)}function J(i,p,S,T,E){return new y((i||"React class")+": "+p+" type `"+S+"."+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+E+"`.")}function F(i){function p(S,T,E,R,O){var w=S[T],A=K(w);if(A!=="object")return new y("Invalid "+R+" `"+O+"` of type `"+A+"` "+("supplied to `"+E+"`, expected `object`."));for(var $ in i){var P=i[$];if(typeof P!="function")return J(E,R,O,$,ne(P));var B=P(w,$,E,R,O+"."+$,r);if(B)return B}return null}return x(p)}function Z(i){function p(S,T,E,R,O){var w=S[T],A=K(w);if(A!=="object")return new y("Invalid "+R+" `"+O+"` of type `"+A+"` "+("supplied to `"+E+"`, expected `object`."));var $=t({},S[T],i);for(var P in $){var B=i[P];if(n(i,P)&&typeof B!="function")return J(E,R,O,P,ne(B));if(!B)return new y("Invalid "+R+" `"+O+"` key `"+P+"` supplied to `"+E+"`.\nBad object: "+JSON.stringify(S[T],null," ")+`
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(i),null," "));var l=B(w,P,E,R,O+"."+P,r);if(l)return l}return null}return x(p)}function ee(i){switch(typeof i){case"number":case"string":case"undefined":return!0;case"boolean":return!i;case"object":if(Array.isArray(i))return i.every(ee);if(i===null||s(i))return!0;var p=g(i);if(p){var S=p.call(i),T;if(p!==i.entries){for(;!(T=S.next()).done;)if(!ee(T.value))return!1}else for(;!(T=S.next()).done;){var E=T.value;if(E&&!ee(E[1]))return!1}}else return!1;return!0;default:return!1}}function re(i,p){return i==="symbol"?!0:p?p["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&p instanceof Symbol:!1}function K(i){var p=typeof i;return Array.isArray(i)?"array":i instanceof RegExp?"object":re(p,i)?"symbol":p}function ne(i){if(typeof i>"u"||i===null)return""+i;var p=K(i);if(p==="object"){if(i instanceof Date)return"date";if(i instanceof RegExp)return"regexp"}return p}function pe(i){var p=ne(i);switch(p){case"array":case"object":return"an "+p;case"boolean":case"date":case"regexp":return"a "+p;default:return p}}function Ve(i){return!i.constructor||!i.constructor.name?b:i.constructor.name}return v.checkPropTypes=o,v.resetWarningCache=o.resetWarningCache,v.PropTypes=v,v},Se}var _e,nt;function Dt(){if(nt)return _e;nt=1;var e=Oe();function t(){}function r(){}return r.resetWarningCache=t,_e=function(){function n(f,s,c,m,d,g){if(g!==e){var b=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 b.name="Invariant Violation",b}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},_e}if(process.env.NODE_ENV!=="production"){var jt=Xe(),Wt=!0;V.exports=$t()(jt.isElement,Wt)}else V.exports=Dt()();function ce(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fe(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}function Re(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: capitalize(string) expects a string argument.":fe(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ft(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(n,o){return o==null?n:(process.env.NODE_ENV!=="production"&&typeof o!="function"&&console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null."),function(){for(var f=arguments.length,s=new Array(f),c=0;c<f;c++)s[c]=arguments[c];n.apply(this,s),o.apply(this,s)})},function(){})}function zt(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,a;for(a=0;a<n.length;a++)o=n[a],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function oe(e,t){if(e==null)return{};var r=zt(e,t),n,o;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],!(t.indexOf(n)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,n)||(r[n]=e[n]))}return r}var te=["xs","sm","md","lg","xl"];function kt(e){var t=e.values,r=t===void 0?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,n=e.unit,o=n===void 0?"px":n,a=e.step,f=a===void 0?5:a,s=oe(e,["values","unit","step"]);function c(h){var y=typeof r[h]=="number"?r[h]:h;return"@media (min-width:".concat(y).concat(o,")")}function m(h){var y=te.indexOf(h)+1,x=r[te[y]];if(y===te.length)return c("xs");var N=typeof x=="number"&&y>0?x:h;return"@media (max-width:".concat(N-f/100).concat(o,")")}function d(h,y){var x=te.indexOf(y);return x===te.length-1?c(h):"@media (min-width:".concat(typeof r[h]=="number"?r[h]:h).concat(o,") and ")+"(max-width:".concat((x!==-1&&typeof r[te[x+1]]=="number"?r[te[x+1]]:y)-f/100).concat(o,")")}function g(h){return d(h,h)}var b=!1;function v(h){return process.env.NODE_ENV!=="production"&&(b||(b=!0,console.warn(["Material-UI: The `theme.breakpoints.width` utility is deprecated because it's redundant.","Use the `theme.breakpoints.values` instead."].join(`
|
21
|
-
`)))),r[h]}return L({keys:te,values:r,up:c,down:m,between:d,only:g,width:v},s)}function Vt(e,t,r){var n;return L({gutters:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",`
|
22
|
-
paddingLeft: theme.spacing(2),
|
23
|
-
paddingRight: theme.spacing(2),
|
24
|
-
[theme.breakpoints.up('sm')]: {
|
25
|
-
paddingLeft: theme.spacing(3),
|
26
|
-
paddingRight: theme.spacing(3),
|
27
|
-
},
|
28
|
-
`].join(`
|
29
|
-
`)),L({paddingLeft:t(2),paddingRight:t(2)},a,ce({},e.up("sm"),L({paddingLeft:t(3),paddingRight:t(3)},a[e.up("sm")])))},toolbar:(n={minHeight:56},ce(n,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),ce(n,e.up("sm"),{minHeight:64}),n)},r)}var Ut={black:"#000",white:"#fff"};const le=Ut;var qt={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const Ae=qt;var Lt={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const Pe=Lt;var Bt={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const Ce=Bt;var Yt={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"};const Ie=Yt;var Ht={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"};const Me=Ht;var Jt={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"};const Ne=Jt;var Kt={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"};const $e=Kt;function ot(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error("Material-UI: The value provided ".concat(e," is out of range [").concat(t,", ").concat(r,"].")),Math.min(Math.max(t,e),r)}function Xt(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(function(n){return n+n})),r?"rgb".concat(r.length===4?"a":"","(").concat(r.map(function(n,o){return o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3}).join(", "),")"):""}function Gt(e){e=ae(e);var t=e,r=t.values,n=r[0],o=r[1]/100,a=r[2]/100,f=o*Math.min(a,1-a),s=function(g){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(g+n/30)%12;return a-f*Math.max(Math.min(b-3,9-b,1),-1)},c="rgb",m=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",m.push(r[3])),De({type:c,values:m})}function ae(e){if(e.type)return e;if(e.charAt(0)==="#")return ae(Xt(e));var t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: Unsupported `".concat(e,"` color.\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."):fe(3,e));var n=e.substring(t+1,e.length-1).split(",");return n=n.map(function(o){return parseFloat(o)}),{type:r,values:n}}function De(e){var t=e.type,r=e.values;return t.indexOf("rgb")!==-1?r=r.map(function(n,o){return o<3?parseInt(n,10):n}):t.indexOf("hsl")!==-1&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function at(e,t){var r=it(e),n=it(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function it(e){e=ae(e);var t=e.type==="hsl"?ae(Gt(e)).values:e.values;return t=t.map(function(r){return r/=255,r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Zt(e,t){if(e=ae(e),t=ot(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)e.values[r]*=1-t;return De(e)}function Qt(e,t){if(e=ae(e),t=ot(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return De(e)}var ut={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:le.white,default:Ae[50]},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}},je={text:{primary:le.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Ae[800],default:"#303030"},action:{active:le.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 st(e,t,r,n){var o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Qt(e.main,o):t==="dark"&&(e.dark=Zt(e.main,a)))}function er(e){var t=e.primary,r=t===void 0?{light:Pe[300],main:Pe[500],dark:Pe[700]}:t,n=e.secondary,o=n===void 0?{light:Ce.A200,main:Ce.A400,dark:Ce.A700}:n,a=e.error,f=a===void 0?{light:Ie[300],main:Ie[500],dark:Ie[700]}:a,s=e.warning,c=s===void 0?{light:Me[300],main:Me[500],dark:Me[700]}:s,m=e.info,d=m===void 0?{light:Ne[300],main:Ne[500],dark:Ne[700]}:m,g=e.success,b=g===void 0?{light:$e[300],main:$e[500],dark:$e[700]}:g,v=e.type,h=v===void 0?"light":v,y=e.contrastThreshold,x=y===void 0?3:y,N=e.tonalOffset,q=N===void 0?.2:N,j=oe(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function C(z){var _=at(z,je.text.primary)>=x?je.text.primary:ut.text.primary;if(process.env.NODE_ENV!=="production"){var U=at(z,_);U<3&&console.error(["Material-UI: The contrast ratio of ".concat(U,":1 for ").concat(_," on ").concat(z),"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(`
|
30
|
-
`))}return _}var u=function(_){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,F=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(_=L({},_),!_.main&&_[U]&&(_.main=_[U]),!_.main)throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: The color provided to augmentColor(color) is invalid.\nThe color object needs to have a `main` property or a `".concat(U,"` property."):fe(4,U));if(typeof _.main!="string")throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(_.main),`\` was provided instead.
|
31
|
-
|
32
|
-
Did you intend to use one of the following approaches?
|
33
|
-
|
34
|
-
import {\xA0green } from "@material-ui/core/colors";
|
35
|
-
|
36
|
-
const theme1 = createTheme({ palette: {
|
37
|
-
primary: green,
|
38
|
-
} });
|
39
|
-
|
40
|
-
const theme2 = createTheme({ palette: {
|
41
|
-
primary: { main: green[500] },
|
42
|
-
} });`):fe(5,JSON.stringify(_.main)));return st(_,"light",J,q),st(_,"dark",F,q),_.contrastText||(_.contrastText=C(_.main)),_},D={dark:je,light:ut};process.env.NODE_ENV!=="production"&&(D[h]||console.error("Material-UI: The palette type `".concat(h,"` is not supported.")));var H=ue(L({common:le,type:h,primary:u(r),secondary:u(o,"A400","A200","A700"),error:u(f),warning:u(c),info:u(d),success:u(b),grey:Ae,contrastThreshold:x,getContrastText:C,augmentColor:u,tonalOffset:q},D[h]),j);return H}function ct(e){return Math.round(e*1e5)/1e5}var ft=!1;function tr(e){return process.env.NODE_ENV!=="production"&&(ft||(console.warn(["Material-UI: The `theme.typography.round` helper is deprecated.","Head to https://mui.com/r/migration-v4/#theme for a migration path."].join(`
|
43
|
-
`)),ft=!0)),ct(e)}var lt={textTransform:"uppercase"},dt='"Roboto", "Helvetica", "Arial", sans-serif';function rr(e,t){var r=typeof t=="function"?t(e):t,n=r.fontFamily,o=n===void 0?dt:n,a=r.fontSize,f=a===void 0?14:a,s=r.fontWeightLight,c=s===void 0?300:s,m=r.fontWeightRegular,d=m===void 0?400:m,g=r.fontWeightMedium,b=g===void 0?500:g,v=r.fontWeightBold,h=v===void 0?700:v,y=r.htmlFontSize,x=y===void 0?16:y,N=r.allVariants,q=r.pxToRem,j=oe(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);process.env.NODE_ENV!=="production"&&(typeof f!="number"&&console.error("Material-UI: `fontSize` is required to be a number."),typeof x!="number"&&console.error("Material-UI: `htmlFontSize` is required to be a number."));var C=f/14,u=q||function(z){return"".concat(z/x*C,"rem")},D=function(_,U,J,F,Z){return L({fontFamily:o,fontWeight:_,fontSize:u(U),lineHeight:J},o===dt?{letterSpacing:"".concat(ct(F/U),"em")}:{},Z,N)},H={h1:D(c,96,1.167,-1.5),h2:D(c,60,1.2,-.5),h3:D(d,48,1.167,0),h4:D(d,34,1.235,.25),h5:D(d,24,1.334,0),h6:D(b,20,1.6,.15),subtitle1:D(d,16,1.75,.15),subtitle2:D(b,14,1.57,.1),body1:D(d,16,1.5,.15),body2:D(d,14,1.43,.15),button:D(b,14,1.75,.4,lt),caption:D(d,12,1.66,.4),overline:D(d,12,2.66,1,lt)};return ue(L({htmlFontSize:x,pxToRem:u,round:tr,fontFamily:o,fontSize:f,fontWeightLight:c,fontWeightRegular:d,fontWeightMedium:b,fontWeightBold:h},H),j,{clone:!1})}var nr=.2,or=.14,ar=.12;function W(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(nr,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(or,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(ar,")")].join(",")}var ir=["none",W(0,2,1,-1,0,1,1,0,0,1,3,0),W(0,3,1,-2,0,2,2,0,0,1,5,0),W(0,3,3,-2,0,3,4,0,0,1,8,0),W(0,2,4,-1,0,4,5,0,0,1,10,0),W(0,3,5,-1,0,5,8,0,0,1,14,0),W(0,3,5,-1,0,6,10,0,0,1,18,0),W(0,4,5,-2,0,7,10,1,0,2,16,1),W(0,5,5,-3,0,8,10,1,0,3,14,2),W(0,5,6,-3,0,9,12,1,0,3,16,2),W(0,6,6,-3,0,10,14,1,0,4,18,3),W(0,6,7,-4,0,11,15,1,0,4,20,3),W(0,7,8,-4,0,12,17,2,0,5,22,4),W(0,7,8,-4,0,13,19,2,0,5,24,4),W(0,7,9,-4,0,14,21,2,0,5,26,4),W(0,8,9,-5,0,15,22,2,0,6,28,5),W(0,8,10,-5,0,16,24,2,0,6,30,5),W(0,8,11,-5,0,17,26,2,0,6,32,5),W(0,9,11,-5,0,18,28,2,0,7,34,6),W(0,9,12,-6,0,19,29,2,0,7,36,6),W(0,10,13,-6,0,20,31,3,0,8,38,7),W(0,10,13,-6,0,21,33,3,0,8,40,7),W(0,10,14,-6,0,22,35,3,0,8,42,7),W(0,11,14,-7,0,23,36,3,0,9,44,8),W(0,11,15,-7,0,24,38,3,0,9,46,8)];const ur=ir;var sr={borderRadius:4};const cr=sr;var fr=process.env.NODE_ENV!=="production"?V.exports.oneOfType([V.exports.number,V.exports.string,V.exports.object,V.exports.array]):{};const lr=fr;var dr=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function pr(e){var t=e.spacing||8;return typeof t=="number"?function(r){return process.env.NODE_ENV!=="production"&&typeof r!="number"&&console.error("Material-UI: Expected spacing argument to be a number, got ".concat(r,".")),t*r}:Array.isArray(t)?function(r){return process.env.NODE_ENV!=="production"&&r>t.length-1&&console.error(["Material-UI: The value provided (".concat(r,") overflows."),"The supported values are: ".concat(JSON.stringify(t),"."),"".concat(r," > ").concat(t.length-1,", you need to add the missing values.")].join(`
|
44
|
-
`)),t[r]}:typeof t=="function"?t:(process.env.NODE_ENV!=="production"&&console.error(["Material-UI: The `theme.spacing` value (".concat(t,") is invalid."),"It should be a number, an array or a function."].join(`
|
45
|
-
`)),function(){})}process.env.NODE_ENV!=="production"&&dr.reduce(function(e,t){return e[t]=lr,e},{});var pt;function mr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(e.mui)return e;var t=pr({spacing:e}),r=function(){for(var o=arguments.length,a=new Array(o),f=0;f<o;f++)a[f]=arguments[f];return process.env.NODE_ENV!=="production"&&(a.length<=4||console.error("Material-UI: Too many arguments provided, expected between 0 and 4, got ".concat(a.length))),a.length===0?t(1):a.length===1?t(a[0]):a.map(function(s){if(typeof s=="string")return s;var c=t(s);return typeof c=="number"?"".concat(c,"px"):c}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return process.env.NODE_ENV!=="production"&&((!pt||process.env.NODE_ENV==="test")&&console.error(["Material-UI: theme.spacing.unit usage has been deprecated.","It will be removed in v5.","You can replace `theme.spacing.unit * y` with `theme.spacing(y)`.","","You can use the `https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod/README.md#theme-spacing-api` migration helper to make the process smoother."].join(`
|
46
|
-
`)),pt=!0),e}}),r.mui=!0,r}var mt={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)"},vt={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function gt(e){return"".concat(Math.round(e),"ms")}const vr={easing:mt,duration:vt,create:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["all"],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.duration,o=n===void 0?vt.standard:n,a=r.easing,f=a===void 0?mt.easeInOut:a,s=r.delay,c=s===void 0?0:s,m=oe(r,["duration","easing","delay"]);if(process.env.NODE_ENV!=="production"){var d=function(v){return typeof v=="string"},g=function(v){return!isNaN(parseFloat(v))};!d(t)&&!Array.isArray(t)&&console.error('Material-UI: Argument "props" must be a string or Array.'),!g(o)&&!d(o)&&console.error('Material-UI: Argument "duration" must be a number or a string but found '.concat(o,".")),d(f)||console.error('Material-UI: Argument "easing" must be a string.'),!g(c)&&!d(c)&&console.error('Material-UI: Argument "delay" must be a number or a string.'),Object.keys(m).length!==0&&console.error("Material-UI: Unrecognized argument(s) [".concat(Object.keys(m).join(","),"]."))}return(Array.isArray(t)?t:[t]).map(function(b){return"".concat(b," ").concat(typeof o=="string"?o:gt(o)," ").concat(f," ").concat(typeof c=="string"?c:gt(c))}).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var r=t/36;return Math.round((4+15*Math.pow(r,.25)+r/5)*10)}};var gr={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const hr=gr;function yr(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.breakpoints,r=t===void 0?{}:t,n=e.mixins,o=n===void 0?{}:n,a=e.palette,f=a===void 0?{}:a,s=e.spacing,c=e.typography,m=c===void 0?{}:c,d=oe(e,["breakpoints","mixins","palette","spacing","typography"]),g=er(f),b=kt(r),v=mr(s),h=ue({breakpoints:b,direction:"ltr",mixins:Vt(b,v,o),overrides:{},palette:g,props:{},shadows:ur,typography:rr(g,m),spacing:v,shape:cr,transitions:vr,zIndex:hr},d),y=arguments.length,x=new Array(y>1?y-1:0),N=1;N<y;N++)x[N-1]=arguments[N];if(h=x.reduce(function(C,u){return ue(C,u)},h),process.env.NODE_ENV!=="production"){var q=["checked","disabled","error","focused","focusVisible","required","expanded","selected"],j=function C(u,D){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,z;for(z in u){var _=u[z];H===1?z.indexOf("Mui")===0&&_&&C(_,z,H+1):q.indexOf(z)!==-1&&Object.keys(_).length>0&&(process.env.NODE_ENV!=="production"&&console.error(["Material-UI: The `".concat(D,"` component increases ")+"the CSS specificity of the `".concat(z,"` internal state."),"You can not override it like this: ",JSON.stringify(u,null,2),"","Instead, you need to use the $ruleName syntax:",JSON.stringify({root:ce({},"&$".concat(z),_)},null,2),"","https://mui.com/r/pseudo-classes-guide"].join(`
|
47
|
-
`)),u[z]={})}};j(h.overrides)}return h}var br=yr();const Er=br;function xr(e,t){return wt.withStyles(e,L({defaultTheme:Er},t))}var Or=function(t){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:t.typography.pxToRem(24),transition:t.transitions.create("fill",{duration:t.transitions.duration.shorter})},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorAction:{color:t.palette.action.active},colorError:{color:t.palette.error.main},colorDisabled:{color:t.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:t.typography.pxToRem(20)},fontSizeLarge:{fontSize:t.typography.pxToRem(35)}}},We=k.forwardRef(function(t,r){var n=t.children,o=t.classes,a=t.className,f=t.color,s=f===void 0?"inherit":f,c=t.component,m=c===void 0?"svg":c,d=t.fontSize,g=d===void 0?"medium":d,b=t.htmlColor,v=t.titleAccess,h=t.viewBox,y=h===void 0?"0 0 24 24":h,x=oe(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return k.createElement(m,L({className:ie(o.root,a,s!=="inherit"&&o["color".concat(Re(s))],g!=="default"&&g!=="medium"&&o["fontSize".concat(Re(g))]),focusable:"false",viewBox:y,color:b,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:r},x),n,v?k.createElement("title",null,v):null)});process.env.NODE_ENV!=="production"&&(We.propTypes={children:V.exports.node,classes:V.exports.object,className:V.exports.string,color:V.exports.oneOf(["action","disabled","error","inherit","primary","secondary"]),component:V.exports.elementType,fontSize:Pt(V.exports.oneOf(["default","inherit","large","medium","small"]),function(e){var t=e.fontSize;if(t==="default")throw new Error('Material-UI: `fontSize="default"` is deprecated. Use `fontSize="medium"` instead.');return null}),htmlColor:V.exports.string,shapeRendering:V.exports.string,titleAccess:V.exports.string,viewBox:V.exports.string}),We.muiName="SvgIcon";const ht=xr(Or,{name:"MuiSvgIcon"})(We);function Tr(e,t){var r=function(o,a){return se.default.createElement(ht,L({ref:a},o),e)};return process.env.NODE_ENV!=="production"&&(r.displayName="".concat(t,"Icon")),r.muiName=ht.muiName,se.default.memo(se.default.forwardRef(r))}function wr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:166,r;function n(){for(var o=arguments.length,a=new Array(o),f=0;f<o;f++)a[f]=arguments[f];var s=this,c=function(){e.apply(s,a)};clearTimeout(r),r=setTimeout(c,t)}return n.clear=function(){clearTimeout(r)},n}function Sr(e,t){return process.env.NODE_ENV==="production"?function(){return null}:function(r,n,o,a,f){var s=o||"<<anonymous>>",c=f||n;return typeof r[n]<"u"?new Error("The ".concat(a," `").concat(c,"` of ")+"`".concat(s,"` is deprecated. ").concat(t)):null}}function _r(e,t){return k.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function yt(e){return e&&e.ownerDocument||document}function Rr(e){var t=yt(e);return t.defaultView||window}function Ar(e){if(process.env.NODE_ENV==="production")return function(){return null};var t=function(n){return function(o,a,f,s,c){var m=c||a;return typeof o[a]<"u"&&!o[n]?new Error("The prop `".concat(m,"` of ")+"`".concat(e,"` must be used on `").concat(n,"`.")):null}};return t}function Fe(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Pr(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;var a=o||t;return typeof e[t]<"u"?new Error("The prop `".concat(a,"` is not supported. Please remove it.")):null}function Cr(e){var t=e.controlled,r=e.default,n=e.name,o=e.state,a=o===void 0?"value":o,f=k.useRef(t!==void 0),s=f.current,c=k.useState(r),m=c[0],d=c[1],g=s?t:m;if(process.env.NODE_ENV!=="production"){k.useEffect(function(){s!==(t!==void 0)&&console.error(["Material-UI: A component is changing the ".concat(s?"":"un","controlled ").concat(a," state of ").concat(n," to be ").concat(s?"un":"","controlled."),"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled ".concat(n," ")+"element for the lifetime of the component.","The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
48
|
-
`))},[t]);var b=k.useRef(r),v=b.current;k.useEffect(function(){!s&&v!==r&&console.error(["Material-UI: A component is changing the default ".concat(a," state of an uncontrolled ").concat(n," after being initialized. ")+"To suppress this warning opt to use a controlled ".concat(n,".")].join(`
|
49
|
-
`))},[JSON.stringify(r)])}var h=k.useCallback(function(y){s||d(y)},[]);return[g,h]}var Ir=typeof window<"u"?k.useLayoutEffect:k.useEffect;function Mr(e){var t=k.useRef(e);return Ir(function(){t.current=e}),k.useCallback(function(){return t.current.apply(void 0,arguments)},[])}function Nr(e,t){return k.useMemo(function(){return e==null&&t==null?null:function(r){Fe(e,r),Fe(t,r)}},[e,t])}function $r(e){var t=k.useState(e),r=t[0],n=t[1],o=e||r;return k.useEffect(function(){r==null&&n("mui-".concat(Math.round(Math.random()*1e5)))},[r]),o}var de=!0,ze=!1,bt=null,Dr={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function jr(e){var t=e.type,r=e.tagName;return!!(r==="INPUT"&&Dr[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Wr(e){e.metaKey||e.altKey||e.ctrlKey||(de=!0)}function ke(){de=!1}function Fr(){this.visibilityState==="hidden"&&ze&&(de=!0)}function zr(e){e.addEventListener("keydown",Wr,!0),e.addEventListener("mousedown",ke,!0),e.addEventListener("pointerdown",ke,!0),e.addEventListener("touchstart",ke,!0),e.addEventListener("visibilitychange",Fr,!0)}function Et(e){var t=e.target;try{return t.matches(":focus-visible")}catch{}return de||jr(t)}function kr(){ze=!0,window.clearTimeout(bt),bt=window.setTimeout(function(){ze=!1},100)}function Vr(){var e=k.useCallback(function(t){var r=Rt.findDOMNode(t);r!=null&&zr(r.ownerDocument)},[]);return process.env.NODE_ENV!=="production"&&k.useDebugValue(Et),{isFocusVisible:Et,onBlurVisible:kr,ref:e}}const Ur=At(Object.freeze(Object.defineProperty({__proto__:null,capitalize:Re,createChainedFunction:Ft,createSvgIcon:Tr,debounce:wr,deprecatedPropType:Sr,isMuiElement:_r,ownerDocument:yt,ownerWindow:Rr,requirePropFactory:Ar,setRef:Fe,unsupportedProp:Pr,useControlled:Cr,useEventCallback:Mr,useForkRef:Nr,unstable_useId:$r,useIsFocusVisible:Vr},Symbol.toStringTag,{value:"Module"})));var xt;function qr(){return xt||(xt=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Ur}(ge)),ge}var Lr=Le.exports,Br=Be.exports;Object.defineProperty(ve,"__esModule",{value:!0});var Ot=ve.default=void 0,Yr=Br(se.default),Hr=Lr(qr()),Jr=(0,Hr.default)(Yr.createElement("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline");Ot=ve.default=Jr;const Kr=G.makeStyles(({palette:e,spacing:t,typography:r})=>({inputFileWrapper:{outlineWidth:0},inputFile:{outline:"none",display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",flex:1,height:t(7),minHeight:t(7),padding:t(0,1,0,2),backgroundColor:({variant:n})=>n==="filled"?e.action.hover:e.common.white,border:"2px solid",borderColor:({variant:n})=>n==="filled"?"transparent":e.action.disabled,borderRadius:t(.5),color:e.text.secondary,transition:"border-color 0.25s ease, background-color 0.25s ease","&:hover":{backgroundColor:({variant:n})=>n==="filled"?e.action.selected:e.common.white,borderColor:({variant:n})=>n==="filled"?"transparent":e.text.primary},"&:focus-visible":{outlineStyle:"solid",outlineWidth:2,outlineColor:e.primary.main}},over:{borderColor:()=>e.primary.main},files:{borderColor:({variant:n})=>n==="filled"?"transparent":e.action.disabled},textWrapper:{display:"flex",flexDirection:"column",position:"relative",maxWidth:"calc(100% - 110px)",height:"100%",color:"inherit"},placeholder:{position:"absolute",top:"50%",transform:"translateY(-50%)",transition:"all 0.2s ease-in-out"},placeholderFiles:{top:t(1),transform:"translateY(0)",opacity:1,...r.caption},filesText:{position:"absolute",top:t(4),opacity:0,transition:"all 0.2s ease-in-out"},filesTextFiles:{top:t(3),opacity:1},helperText:{fontWeight:r.body1.fontWeight},uploadButton:{outlineWidth:0,"&:focus-visible":{outline:"none",backgroundColor:e.primary.main,color:e.common.white}},clearButton:{outlineWidth:0,marginTop:t(2),marginRight:t(.5),color:e.error.main,"&:focus-visible":{outline:"none",backgroundColor:e.action.hover,color:e.error.main}},disabled:{"& $inputFile":{color:e.text.disabled,borderColor:()=>e.text.disabled,backgroundColor:()=>e.action.hover,pointerEvents:"none"},"& $helperText":{color:e.action.disabled}},error:{"& $inputFile":{borderColor:()=>e.error.main},"& $files":{color:e.error.main},"& $helperText":{color:e.error.main}},inputHidden:{display:"none"}}));function Xr({id:e="fileupload",placeholder:t="Upload file",buttonText:r="Browse",multipleSummaryText:n="files selected",helperText:o,accept:a="application/JSON",multiple:f=!1,required:s=!1,disabled:c=!1,error:m=!1,variant:d="outlined",defaultValue:g=[],onChange:b}){const v=Kr({variant:d}),h=Y.useRef(null),[y,x]=Y.useState(g),[N,q]=Y.useState(""),[j,C]=Y.useState(!1);Y.useEffect(()=>{x(g)},[g]),Y.useEffect(()=>{let F=y?.[0]?.name;y.length>1&&(F=`${y.length} ${n}`),q(F)},[y,n]);const u=F=>{h.current?.click(),F.stopPropagation()},D=F=>{F.preventDefault(),C(!0)},H=F=>{F.preventDefault(),C(!1)},z=F=>{F.preventDefault();const Z=[],ee=F.dataTransfer.items;for(let re=0;re<ee.length;re++){const K=ee[re].getAsFile();Z.push(K)}C(!1),J(Z)},_=F=>{const Z=Array.from(F.target.files);J(Z)},U=()=>{h.current&&(h.current.value=""),J([])},J=F=>{x(F),b(F)};return React.createElement(G.Box,{className:ie(v.inputFileWrapper,{[v.error]:m},{[v.disabled]:c})},React.createElement(G.Box,{tabIndex:0,"aria-controls":"fileupload","aria-label":t,className:ie(v.inputFile,{[v.over]:j},{[v.files]:N}),onDragOver:D,onDragLeave:H,onDrop:z},React.createElement(G.Box,{className:v.textWrapper},React.createElement(G.Typography,{variant:"body1",color:"inherit",noWrap:!0,className:ie(v.placeholder,{[v.placeholderFiles]:N})},t),React.createElement(G.Typography,{variant:"body1",color:"textPrimary",noWrap:!0,className:ie(v.filesText,{[v.filesTextFiles]:N})},N)),y.length?React.createElement(G.IconButton,{size:"small",className:v.clearButton,onClick:U},React.createElement(Ot,null)):React.createElement(G.Button,{variant:"text",color:"primary",className:v.uploadButton,disabled:c,onClick:u},r),React.createElement("input",{id:e,ref:h,className:v.inputHidden,type:"file",tabIndex:-1,"aria-hidden":!0,accept:a,required:s,multiple:f,disabled:c,onChange:_})),o&&React.createElement(G.Box,{mt:.5,ml:2},React.createElement(G.Typography,{variant:"caption",color:"textSecondary",className:v.helperText},o)))}X.InputFile=Xr,Object.defineProperties(X,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|