@j4jinxx/modal
Version:
Minimal Modal/Dialog React Component
29 lines (28 loc) • 35.2 kB
JavaScript
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=e(require("react"));function r(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function n(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i,a={exports:{}},c={exports:{}},u={};var f,s,l,p,y,d,m,b,v,g,h,O,S,w,E={};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function j(){return s||(s=1,"production"===process.env.NODE_ENV?c.exports=function(){if(i)return u;i=1;var e="function"==typeof Symbol&&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,c=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,y=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,O=e?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var i=e.$$typeof;switch(i){case t:switch(e=e.type){case s:case l:case n:case a:case o:case y:return e;default:switch(e=e&&e.$$typeof){case f:case p:case b:case m:case c:return e;default:return i}}case r:return i}}}function w(e){return S(e)===l}return u.AsyncMode=s,u.ConcurrentMode=l,u.ContextConsumer=f,u.ContextProvider=c,u.Element=t,u.ForwardRef=p,u.Fragment=n,u.Lazy=b,u.Memo=m,u.Portal=r,u.Profiler=a,u.StrictMode=o,u.Suspense=y,u.isAsyncMode=function(e){return w(e)||S(e)===s},u.isConcurrentMode=w,u.isContextConsumer=function(e){return S(e)===f},u.isContextProvider=function(e){return S(e)===c},u.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},u.isForwardRef=function(e){return S(e)===p},u.isFragment=function(e){return S(e)===n},u.isLazy=function(e){return S(e)===b},u.isMemo=function(e){return S(e)===m},u.isPortal=function(e){return S(e)===r},u.isProfiler=function(e){return S(e)===a},u.isStrictMode=function(e){return S(e)===o},u.isSuspense=function(e){return S(e)===y},u.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===l||e===a||e===o||e===y||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===m||e.$$typeof===c||e.$$typeof===f||e.$$typeof===p||e.$$typeof===g||e.$$typeof===h||e.$$typeof===O||e.$$typeof===v)},u.typeOf=S,u}():c.exports=(f||(f=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&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,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,d=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function h(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case u:case f:case n:case i:case o:case l:return m;default:var b=m&&m.$$typeof;switch(b){case c:case s:case d:case y:case a:return b;default:return p}}case r:return p}}}var O=u,S=f,w=c,j=a,x=t,$=s,P=n,T=d,C=y,_=r,k=i,N=o,I=l,R=!1;function M(e){return h(e)===f}E.AsyncMode=O,E.ConcurrentMode=S,E.ContextConsumer=w,E.ContextProvider=j,E.Element=x,E.ForwardRef=$,E.Fragment=P,E.Lazy=T,E.Memo=C,E.Portal=_,E.Profiler=k,E.StrictMode=N,E.Suspense=I,E.isAsyncMode=function(e){return R||(R=!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.")),M(e)||h(e)===u},E.isConcurrentMode=M,E.isContextConsumer=function(e){return h(e)===c},E.isContextProvider=function(e){return h(e)===a},E.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},E.isForwardRef=function(e){return h(e)===s},E.isFragment=function(e){return h(e)===n},E.isLazy=function(e){return h(e)===d},E.isMemo=function(e){return h(e)===y},E.isPortal=function(e){return h(e)===r},E.isProfiler=function(e){return h(e)===i},E.isStrictMode=function(e){return h(e)===o},E.isSuspense=function(e){return h(e)===l},E.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===f||e===i||e===o||e===l||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===y||e.$$typeof===a||e.$$typeof===c||e.$$typeof===s||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g||e.$$typeof===m)},E.typeOf=h}()),E)),c.exports}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function x(){if(p)return l;p=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return l=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(n,o){for(var i,a,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),u=1;u<arguments.length;u++){for(var f in i=Object(arguments[u]))t.call(i,f)&&(c[f]=i[f]);if(e){a=e(i);for(var s=0;s<a.length;s++)r.call(i,a[s])&&(c[a[s]]=i[a[s]])}}return c},l}function $(){if(d)return y;d=1;return y="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function P(){return b?m:(b=1,m=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var T=j();a.exports=function(){if(O)return h;O=1;var e=j(),t=x(),r=$(),n=P(),o=function(){if(g)return v;g=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=$(),r={},n=P();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,c,u){if("production"!==process.env.NODE_ENV)for(var f in o)if(n(o,f)){var s;try{if("function"!=typeof o[f]){var l=Error((c||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=o[f](i,f,c,a,null,t)}catch(e){s=e}if(!s||s instanceof Error||e((c||"React class")+": type specification of "+a+" `"+f+"` 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 r)){r[s.message]=!0;var p=u?u():"";e("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},v=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),h=function(c,u){var f="function"==typeof Symbol&&Symbol.iterator,s="@@iterator",l="<<anonymous>>",p={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:m(a),arrayOf:function(e){return m((function(t,n,o,i,a){if("function"!=typeof e)return new d("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=t[n];if(!Array.isArray(c))return new d("Invalid "+i+" `"+a+"` of type `"+h(c)+"` supplied to `"+o+"`, expected an array.");for(var u=0;u<c.length;u++){var f=e(c,u,o,i,a+"["+u+"]",r);if(f instanceof Error)return f}return null}))},element:m((function(e,t,r,n,o){var i=e[t];return c(i)?null:new d("Invalid "+n+" `"+o+"` of type `"+h(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:m((function(t,r,n,o,i){var a=t[r];return e.isValidElementType(a)?null:new d("Invalid "+o+" `"+i+"` of type `"+h(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,r,n,o,i){if(!(t[r]instanceof e)){var a=e.name||l;return new d("Invalid "+o+" `"+i+"` of type `"+((c=t[r]).constructor&&c.constructor.name?c.constructor.name:l)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:m((function(e,t,r,n,o){return g(e[t])?null:new d("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,o,i,a,c){if("function"!=typeof e)return new d("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var u=t[o],f=h(u);if("object"!==f)return new d("Invalid "+a+" `"+c+"` of type `"+f+"` supplied to `"+i+"`, expected an object.");for(var s in u)if(n(u,s)){var l=e(u,s,i,a,c+"."+s,r);if(l instanceof Error)return l}return null}))},oneOf:function(e){return Array.isArray(e)?m((function(t,r,n,o,i){for(var a=t[r],c=0;c<e.length;c++)if(y(a,e[c]))return null;var u=JSON.stringify(e,(function(e,t){return"symbol"===O(t)?String(t):t}));return new d("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"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]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+S(o)+" at index "+t+"."),a}return m((function(t,o,i,a,c){for(var u=[],f=0;f<e.length;f++){var s=(0,e[f])(t,o,i,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&u.push(s.data.expectedType)}return new d("Invalid "+a+" `"+c+"` supplied to `"+i+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,n,o,i,a){var c=t[n],u=h(c);if("object"!==u)return new d("Invalid "+i+" `"+a+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");for(var f in e){var s=e[f];if("function"!=typeof s)return v(o,i,a,f,O(s));var l=s(c,f,o,i,a+"."+f,r);if(l)return l}return null}))},exact:function(e){return m((function(o,i,a,c,u){var f=o[i],s=h(f);if("object"!==s)return new d("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var l=t({},o[i],e);for(var p in l){var y=e[p];if(n(e,p)&&"function"!=typeof y)return v(a,c,u,p,O(y));if(!y)return new d("Invalid "+c+" `"+u+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=y(f,p,a,c,u+"."+p,r);if(m)return m}return null}))}};function y(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function o(o,a,c,f,s,p,y){if(f=f||l,p=p||c,y!==r){if(u){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var b=f+":"+c;!t[b]&&n<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+f+"`. 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."),t[b]=!0,n++)}}return null==a[c]?o?null===a[c]?new d("The "+s+" `"+p+"` is marked as required in `"+f+"`, but its value is `null`."):new d("The "+s+" `"+p+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(a,c,f,s,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function b(e){return m((function(t,r,n,o,i,a){var c=t[r];return h(c)!==e?new d("Invalid "+o+" `"+i+"` of type `"+O(c)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function v(e,t,r,n,o){return new d((e||"React class")+": "+t+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function g(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(g);if(null===e||c(e))return!0;var t=function(e){var t=e&&(f&&e[f]||e[s]);if("function"==typeof t)return t}(e);if(!t)return!1;var r,n=t.call(e);if(t!==e.entries){for(;!(r=n.next()).done;)if(!g(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function h(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function O(e){if(null==e)return""+e;var t=h(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function S(e){var t=O(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return d.prototype=Error.prototype,p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},h}()(T.isElement,!0)}else a.exports=function(){if(w)return S;w=1;var e=$();function t(){}function r(){}return r.resetWarningCache=t,S=function(){function n(t,r,n,o,i,a){if(a!==e){var c=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 c.name="Invariant Violation",c}}function o(){return n}n.isRequired=n;var i={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 i.PropTypes=i,i}}()();var C=o(a.exports);function _(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_(Object(r),!0).forEach((function(t){N(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function N(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(){return I=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},I.apply(this,arguments)}var R,M,A,V,D,F,z,W,q,L,Y,U,J,B,H,G={exports:{}},K={exports:{}},Q={},X={};
/** @license React v16.13.1
* react-is.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
function Z(){return A||(A=1,"production"===process.env.NODE_ENV?K.exports=function(){if(R)return Q;R=1;var e="function"==typeof Symbol&&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,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,d=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function h(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case u:case f:case n:case i:case o:case l:return e;default:switch(e=e&&e.$$typeof){case c:case s:case d:case y:case a:return e;default:return p}}case r:return p}}}function O(e){return h(e)===f}return Q.AsyncMode=u,Q.ConcurrentMode=f,Q.ContextConsumer=c,Q.ContextProvider=a,Q.Element=t,Q.ForwardRef=s,Q.Fragment=n,Q.Lazy=d,Q.Memo=y,Q.Portal=r,Q.Profiler=i,Q.StrictMode=o,Q.Suspense=l,Q.isAsyncMode=function(e){return O(e)||h(e)===u},Q.isConcurrentMode=O,Q.isContextConsumer=function(e){return h(e)===c},Q.isContextProvider=function(e){return h(e)===a},Q.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Q.isForwardRef=function(e){return h(e)===s},Q.isFragment=function(e){return h(e)===n},Q.isLazy=function(e){return h(e)===d},Q.isMemo=function(e){return h(e)===y},Q.isPortal=function(e){return h(e)===r},Q.isProfiler=function(e){return h(e)===i},Q.isStrictMode=function(e){return h(e)===o},Q.isSuspense=function(e){return h(e)===l},Q.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===f||e===i||e===o||e===l||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===y||e.$$typeof===a||e.$$typeof===c||e.$$typeof===s||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g||e.$$typeof===m)},Q.typeOf=h,Q}():K.exports=(M||(M=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&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,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,s=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,d=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,b=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,g=e?Symbol.for("react.scope"):60119;function h(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var m=e.type;switch(m){case u:case f:case n:case i:case o:case l:return m;default:var b=m&&m.$$typeof;switch(b){case c:case s:case d:case y:case a:return b;default:return p}}case r:return p}}}var O=u,S=f,w=c,E=a,j=t,x=s,$=n,P=d,T=y,C=r,_=i,k=o,N=l,I=!1;function R(e){return h(e)===f}X.AsyncMode=O,X.ConcurrentMode=S,X.ContextConsumer=w,X.ContextProvider=E,X.Element=j,X.ForwardRef=x,X.Fragment=$,X.Lazy=P,X.Memo=T,X.Portal=C,X.Profiler=_,X.StrictMode=k,X.Suspense=N,X.isAsyncMode=function(e){return I||(I=!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.")),R(e)||h(e)===u},X.isConcurrentMode=R,X.isContextConsumer=function(e){return h(e)===c},X.isContextProvider=function(e){return h(e)===a},X.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},X.isForwardRef=function(e){return h(e)===s},X.isFragment=function(e){return h(e)===n},X.isLazy=function(e){return h(e)===d},X.isMemo=function(e){return h(e)===y},X.isPortal=function(e){return h(e)===r},X.isProfiler=function(e){return h(e)===i},X.isStrictMode=function(e){return h(e)===o},X.isSuspense=function(e){return h(e)===l},X.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===f||e===i||e===o||e===l||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===y||e.$$typeof===a||e.$$typeof===c||e.$$typeof===s||e.$$typeof===b||e.$$typeof===v||e.$$typeof===g||e.$$typeof===m)},X.typeOf=h}()),X)),K.exports}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function ee(){return z?F:(z=1,F="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}function te(){return q?W:(q=1,W=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var re=Z();G.exports=function(){if(J)return U;J=1;var e=Z(),t=function(){if(D)return V;D=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;return V=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(n,o){for(var i,a,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),u=1;u<arguments.length;u++){for(var f in i=Object(arguments[u]))t.call(i,f)&&(c[f]=i[f]);if(e){a=e(i);for(var s=0;s<a.length;s++)r.call(i,a[s])&&(c[a[s]]=i[a[s]])}}return c},V}(),r=ee(),n=te(),o=function(){if(Y)return L;Y=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=ee(),r={},n=te();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function o(o,i,a,c,u){if("production"!==process.env.NODE_ENV)for(var f in o)if(n(o,f)){var s;try{if("function"!=typeof o[f]){var l=Error((c||"React class")+": "+a+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=o[f](i,f,c,a,null,t)}catch(e){s=e}if(!s||s instanceof Error||e((c||"React class")+": type specification of "+a+" `"+f+"` 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 r)){r[s.message]=!0;var p=u?u():"";e("Failed "+a+" type: "+s.message+(null!=p?p:""))}}}return o.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(r={})},L=o}(),i=function(){};function a(){return null}return"production"!==process.env.NODE_ENV&&(i=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),U=function(c,u){var f="function"==typeof Symbol&&Symbol.iterator,s="<<anonymous>>",l={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:d(a),arrayOf:function(e){return d((function(t,n,o,i,a){if("function"!=typeof e)return new y("Property `"+a+"` of component `"+o+"` has invalid PropType notation inside arrayOf.");var c=t[n];if(!Array.isArray(c))return new y("Invalid "+i+" `"+a+"` of type `"+g(c)+"` supplied to `"+o+"`, expected an array.");for(var u=0;u<c.length;u++){var f=e(c,u,o,i,a+"["+u+"]",r);if(f instanceof Error)return f}return null}))},element:d((function(e,t,r,n,o){var i=e[t];return c(i)?null:new y("Invalid "+n+" `"+o+"` of type `"+g(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:d((function(t,r,n,o,i){var a=t[r];return e.isValidElementType(a)?null:new y("Invalid "+o+" `"+i+"` of type `"+g(a)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return d((function(t,r,n,o,i){if(!(t[r]instanceof e)){var a=e.name||s;return new y("Invalid "+o+" `"+i+"` of type `"+((c=t[r]).constructor&&c.constructor.name?c.constructor.name:s)+"` supplied to `"+n+"`, expected instance of `"+a+"`.")}var c;return null}))},node:d((function(e,t,r,n,o){return v(e[t])?null:new y("Invalid "+n+" `"+o+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return d((function(t,o,i,a,c){if("function"!=typeof e)return new y("Property `"+c+"` of component `"+i+"` has invalid PropType notation inside objectOf.");var u=t[o],f=g(u);if("object"!==f)return new y("Invalid "+a+" `"+c+"` of type `"+f+"` supplied to `"+i+"`, expected an object.");for(var s in u)if(n(u,s)){var l=e(u,s,i,a,c+"."+s,r);if(l instanceof Error)return l}return null}))},oneOf:function(e){return Array.isArray(e)?d((function(t,r,n,o,i){for(var a=t[r],c=0;c<e.length;c++)if(p(a,e[c]))return null;var u=JSON.stringify(e,(function(e,t){return"symbol"===h(t)?String(t):t}));return new y("Invalid "+o+" `"+i+"` of value `"+String(a)+"` supplied to `"+n+"`, expected one of "+u+".")})):("production"!==process.env.NODE_ENV&&i(arguments.length>1?"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]).":"Invalid argument supplied to oneOf, expected an array."),a)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var t=0;t<e.length;t++){var o=e[t];if("function"!=typeof o)return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+O(o)+" at index "+t+"."),a}return d((function(t,o,i,a,c){for(var u=[],f=0;f<e.length;f++){var s=(0,e[f])(t,o,i,a,c,r);if(null==s)return null;s.data&&n(s.data,"expectedType")&&u.push(s.data.expectedType)}return new y("Invalid "+a+" `"+c+"` supplied to `"+i+"`"+(u.length>0?", expected one of type ["+u.join(", ")+"]":"")+".")}))},shape:function(e){return d((function(t,n,o,i,a){var c=t[n],u=g(c);if("object"!==u)return new y("Invalid "+i+" `"+a+"` of type `"+u+"` supplied to `"+o+"`, expected `object`.");for(var f in e){var s=e[f];if("function"!=typeof s)return b(o,i,a,f,h(s));var l=s(c,f,o,i,a+"."+f,r);if(l)return l}return null}))},exact:function(e){return d((function(o,i,a,c,u){var f=o[i],s=g(f);if("object"!==s)return new y("Invalid "+c+" `"+u+"` of type `"+s+"` supplied to `"+a+"`, expected `object`.");var l=t({},o[i],e);for(var p in l){var d=e[p];if(n(e,p)&&"function"!=typeof d)return b(a,c,u,p,h(d));if(!d)return new y("Invalid "+c+" `"+u+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(o[i],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var m=d(f,p,a,c,u+"."+p,r);if(m)return m}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function y(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function d(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function o(o,a,c,f,l,p,d){if(f=f||s,p=p||c,d!==r){if(u){var m=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 m.name="Invariant Violation",m}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var b=f+":"+c;!t[b]&&n<3&&(i("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+f+"`. 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."),t[b]=!0,n++)}}return null==a[c]?o?null===a[c]?new y("The "+l+" `"+p+"` is marked as required in `"+f+"`, but its value is `null`."):new y("The "+l+" `"+p+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(a,c,f,l,p)}var a=o.bind(null,!1);return a.isRequired=o.bind(null,!0),a}function m(e){return d((function(t,r,n,o,i,a){var c=t[r];return g(c)!==e?new y("Invalid "+o+" `"+i+"` of type `"+h(c)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function b(e,t,r,n,o){return new y((e||"React class")+": "+t+" type `"+r+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+o+"`.")}function v(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(v);if(null===e||c(e))return!0;var t=function(e){var t=e&&(f&&e[f]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var r,n=t.call(e);if(t!==e.entries){for(;!(r=n.next()).done;)if(!v(r.value))return!1}else for(;!(r=n.next()).done;){var o=r.value;if(o&&!v(o[1]))return!1}return!0;default:return!1}}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function h(e){if(null==e)return""+e;var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function O(e){var t=h(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return y.prototype=Error.prototype,l.checkPropTypes=o,l.resetWarningCache=o.resetWarningCache,l.PropTypes=l,l},U}()(re.isElement,!0)}else G.exports=function(){if(H)return B;H=1;var e=ee();function t(){}function r(){}return r.resetWarningCache=t,B=function(){function n(t,r,n,o,i,a){if(a!==e){var c=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 c.name="Invariant Violation",c}}function o(){return n}n.isRequired=n;var i={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 i.PropTypes=i,i}}()();var ne,oe=(ne=G.exports)&&ne.__esModule&&Object.prototype.hasOwnProperty.call(ne,"default")?ne.default:ne,ie=["opened","onClose","color","style"],ae=function(e){var r=e.opened,n=void 0!==r&&r,o=e.onClose,i=void 0===o?function(){}:o,a=e.color,c=void 0===a?"#e0e0e0":a,u=e.style,f=void 0===u?{}:u,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ie);return t.default.useEffect((function(){var e=document.getElementsByTagName("html")[0];return e.style.overflow=n?"hidden":null,function(){e.style.overflow=null}}),[n]),t.default.createElement("div",I({style:k({position:"fixed",width:"100%",height:"100%",top:0,left:0,right:0,bottom:0,overflow:"hidden",cursor:"pointer",transition:"opacity 0.3s, visibility 0.3s",zIndex:1008,WebkitTapHighlightColor:"transparent",userSelect:"none",backgroundColor:"".concat(c),opacity:n?.75:0,visibility:n?"visible":"hidden"},f),onClick:i},s))};ae.propTypes={opened:oe.bool,onClose:oe.func,color:oe.string,className:oe.string,style:oe.object},ae.defaultProps={opened:!1,onClose:function(){},color:"#e0e0e0"};var ce=function(e){var r=e.title,o=e.opened,i=void 0!==o&&o,a=e.size,c=void 0===a?"md":a,u=e.onClose,f=void 0===u?function(){}:u,s=e.color,l=void 0===s?"#ffffff":s,p=e.overlayColor,y=void 0===p?"#e0e0e0":p,d=e.onOverlayClick,m=void 0===d?function(){}:d,b=e.children;return t.default.createElement(t.default.Fragment,null,t.default.createElement(ae,{opened:i,color:y,onClose:m}),t.default.createElement("div",{title:"modal",style:{position:"fixed",alignItems:"center",justifyContent:"center",bottom:0,right:0,top:0,left:0,overflow:"hidden",padding:".4rem",zIndex:1010,display:i?"flex":"none",opacity:i?1:0,cursor:"pointer"},role:"dialog"},t.default.createElement("div",{title:"modal-container",style:n(n({background:"".concat(l),borderRadius:".1rem",boxShadow:"0 .2rem .5rem rgba(48, 55, 66, .3)",flexDirection:"column",maxHeight:"75vh",width:"100%",display:i?"flex":"none",maxWidth:"sm"==c?"320px":"lg"==c?"960px":"640px",padding:"sm"==c?"0 .4rem":"0 .8rem"},"boxShadow","lg"==c?"none":"0 .2rem .5rem rgba(48, 55, 66, .3)"),"cursor","default"),role:"document",tabIndex:"-1"},t.default.createElement("div",{title:"modal-container-header",style:{padding:".8rem"}},t.default.createElement("button",{title:"header-close-btn",style:{border:"none",backgroundColor:"inherit",padding:"4px",fontFamily:"inherit",fontWeight:500,fontSize:"1rem",cursor:"pointer",color:"inherit",float:"right"},type:"button",onClick:f},"✖"),t.default.createElement("div",{title:"header-title",style:{fontSize:18,fontWeight:500}},r)),t.default.createElement("div",{title:"modal-container-body",style:{overflowY:"auto",padding:".8rem",position:"relative"}},b))))};ce.propTypes={title:C.string,opened:C.bool,size:C.oneOf(["sm","md","lg"]),onClose:C.func,onOverlayClick:C.func,color:C.string,overlayColor:C.string,children:C.node,className:C.string,style:C.object},ce.defaultProps={title:"Modal Title",opened:!1,size:"md",color:"#ffffff",overlayColor:"#e0e0e0",onClose:function(){},onOverlayClick:function(){}},module.exports=ce;