diff --git a/bundle.js b/bundle.js index ae7c8bd..c577b61 100644 --- a/bundle.js +++ b/bundle.js @@ -69,4 +69,4 @@ var r=/input|select|textarea|button|object/;function i(e){var t=e.offsetWidth<=0 Copyright (c) 2015 Jed Watson. Based on code that is Copyright 2013-2015, Facebook, Inc. All rights reserved. -*/!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dumpClassLists=function(){0};var r={},i={};t.add=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),n.add(e)}));var n,o},t.remove=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&n.remove(e)}));var n,o}},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,u=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?u="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==u){var s=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==u?"\n "+u:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(e,t,n){var r=n(37),i=n(236);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(38)(!1)).push([e.i,'@keyframes closeWindow{0%{opacity:1}100%{opacity:0}}.ril__outer{background-color:rgba(0,0,0,0.85);outline:none;top:0;left:0;right:0;bottom:0;z-index:1000;width:100%;height:100%;-ms-content-zooming:none;-ms-user-select:none;-ms-touch-select:none;touch-action:none}.ril__outerClosing{opacity:0}.ril__inner{position:absolute;top:0;left:0;right:0;bottom:0}.ril__image,.ril__imagePrev,.ril__imageNext{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;max-width:none;-ms-content-zooming:none;-ms-user-select:none;-ms-touch-select:none;touch-action:none}.ril__imageDiscourager{background-repeat:no-repeat;background-position:center;background-size:contain}.ril__navButtons{border:none;position:absolute;top:0;bottom:0;width:20px;height:34px;padding:40px 30px;margin:auto;cursor:pointer;opacity:0.7}.ril__navButtons:hover{opacity:1}.ril__navButtons:active{opacity:0.7}.ril__navButtonPrev{left:0;background:rgba(0,0,0,0.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==") no-repeat center}.ril__navButtonNext{right:0;background:rgba(0,0,0,0.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+") no-repeat center}.ril__downloadBlocker{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");background-size:cover}.ril__caption,.ril__toolbar{background-color:rgba(0,0,0,0.5);position:absolute;left:0;right:0;display:flex;justify-content:space-between}.ril__caption{bottom:0;max-height:150px;overflow:auto}.ril__captionContent{padding:10px 20px;color:#fff}.ril__toolbar{top:0;height:50px}.ril__toolbarSide{height:50px;margin:0}.ril__toolbarLeftSide{padding-left:20px;padding-right:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.ril__toolbarRightSide{padding-left:0;padding-right:20px;flex:0 0 auto}.ril__toolbarItem{display:inline-block;line-height:50px;padding:0;color:#fff;font-size:120%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ril__toolbarItemChild{vertical-align:middle}.ril__builtinButton{width:40px;height:35px;cursor:pointer;border:none;opacity:0.7}.ril__builtinButton:hover{opacity:1}.ril__builtinButton:active{outline:none}.ril__builtinButtonDisabled{cursor:default;opacity:0.5}.ril__builtinButtonDisabled:hover{opacity:0.5}.ril__closeButton{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJtIDEsMyAxLjI1LC0xLjI1IDcuNSw3LjUgNy41LC03LjUgMS4yNSwxLjI1IC03LjUsNy41IDcuNSw3LjUgLTEuMjUsMS4yNSAtNy41LC03LjUgLTcuNSw3LjUgLTEuMjUsLTEuMjUgNy41LC03LjUgLTcuNSwtNy41IHoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=") no-repeat center}.ril__zoomInButton{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHBhdGggZD0iTTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+") no-repeat center}.ril__zoomOutButton{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=") no-repeat center}.ril__outerAnimating{animation-name:closeWindow}@keyframes pointFade{0%,19.999%,100%{opacity:0}20%{opacity:1}}.ril__loadingCircle{width:60px;height:60px;position:relative}.ril__loadingCirclePoint{width:100%;height:100%;position:absolute;left:0;top:0}.ril__loadingCirclePoint::before{content:\'\';display:block;margin:0 auto;width:11%;height:30%;background-color:#fff;border-radius:30%;animation:pointFade 800ms infinite ease-in-out both}.ril__loadingCirclePoint:nth-of-type(1){transform:rotate(0deg)}.ril__loadingCirclePoint:nth-of-type(7){transform:rotate(180deg)}.ril__loadingCirclePoint:nth-of-type(1)::before,.ril__loadingCirclePoint:nth-of-type(7)::before{animation-delay:-800ms}.ril__loadingCirclePoint:nth-of-type(2){transform:rotate(30deg)}.ril__loadingCirclePoint:nth-of-type(8){transform:rotate(210deg)}.ril__loadingCirclePoint:nth-of-type(2)::before,.ril__loadingCirclePoint:nth-of-type(8)::before{animation-delay:-666ms}.ril__loadingCirclePoint:nth-of-type(3){transform:rotate(60deg)}.ril__loadingCirclePoint:nth-of-type(9){transform:rotate(240deg)}.ril__loadingCirclePoint:nth-of-type(3)::before,.ril__loadingCirclePoint:nth-of-type(9)::before{animation-delay:-533ms}.ril__loadingCirclePoint:nth-of-type(4){transform:rotate(90deg)}.ril__loadingCirclePoint:nth-of-type(10){transform:rotate(270deg)}.ril__loadingCirclePoint:nth-of-type(4)::before,.ril__loadingCirclePoint:nth-of-type(10)::before{animation-delay:-400ms}.ril__loadingCirclePoint:nth-of-type(5){transform:rotate(120deg)}.ril__loadingCirclePoint:nth-of-type(11){transform:rotate(300deg)}.ril__loadingCirclePoint:nth-of-type(5)::before,.ril__loadingCirclePoint:nth-of-type(11)::before{animation-delay:-266ms}.ril__loadingCirclePoint:nth-of-type(6){transform:rotate(150deg)}.ril__loadingCirclePoint:nth-of-type(12){transform:rotate(330deg)}.ril__loadingCirclePoint:nth-of-type(6)::before,.ril__loadingCirclePoint:nth-of-type(12)::before{animation-delay:-133ms}.ril__loadingCirclePoint:nth-of-type(7){transform:rotate(180deg)}.ril__loadingCirclePoint:nth-of-type(13){transform:rotate(360deg)}.ril__loadingCirclePoint:nth-of-type(7)::before,.ril__loadingCirclePoint:nth-of-type(13)::before{animation-delay:0ms}.ril__loadingContainer{position:absolute;top:0;right:0;bottom:0;left:0}.ril__imagePrev .ril__loadingContainer,.ril__imageNext .ril__loadingContainer{display:none}.ril__errorContainer{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#fff}.ril__imagePrev .ril__errorContainer,.ril__imageNext .ril__errorContainer{display:none}.ril__loadingContainer__icon{color:#fff;position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}\n',""]),e.exports=t},function(e,t,n){var r=n(37),i=n(238);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(38)(!1)).push([e.i,".lightbox-container{position:relative}.lightbox-container .overlay{transition:all 0.3s ease-in;position:absolute;height:100%;width:100%;background:rgba(0,0,0,0.6);opacity:0;color:#fff;display:flex;justify-content:center;align-items:center;font-weight:700;font-size:20px;cursor:pointer}.lightbox-container .overlay:hover,.lightbox-container .overlay:focus{opacity:1}\n",""]),e.exports=t},function(e,t,n){var r=n(37),i=n(240);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(38)(!1)).push([e.i,"body{margin:0;padding:0;font-family:'Montserrat', 'Helvetica Neue', Arial, sans-serif}h1,h2,h3,h4,h5{margin-top:0}h1{font-size:4rem;color:#008080}a{color:#008080}button.btn{border-radius:22px !important;padding:10px 20px !important;font-weight:700;transition:.3s ease !important;display:inline-block;background:#FF5C45;color:#ffffff;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;padding:.5rem 1rem;font-size:1rem;font-family:'Montserrat', 'Helvetica Neue', Arial, sans-serif;cursor:pointer}button:focus{outline:none}button.btn.inactive{background:#FF5C45}button.btn.active{background:#008080}.wrapper{max-width:1200px;margin:0 auto}.flex-container{display:flex;flex-wrap:wrap}.flex-item{flex:1 1 40%;min-width:300px;padding:40px}.header-content{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}.header-content label{margin-left:10px}.demo-items{margin-top:20px;margin-bottom:20px}.youtube-video{display:flex;justify-content:flex-start}.image img{margin-bottom:10px}ul li{margin-bottom:10px}footer{padding:2rem 3rem;background:#FFFACD;text-align:center}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,0.1)}\n",""]),e.exports=t},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),o=n(8),a=n.n(o),u={primaryColor:"#FF6C45",lightColor:"#E5E5E5",fontFamily:"sans-serif",fontSize:14,editContainer:{backgroundColor:"rgba(255,255,255,0.3)",outline:"1px dashed rgba(0,0,0,0.5)",position:"relative",cursor:"pointer",margin:"1px",marginBottom:"12px"},editContainerHighlight:{backgroundColor:"rgba(255,255,255,0.9)",zIndex:"2500",outline:"1px solid #FF6C45"},actions:{position:"absolute",right:"6px",bottom:"-12px",display:"flex",alignItems:"center",zIndex:"99",backgroundColor:"#FF6C45",borderRadius:"30px",padding:"2px",width:"fit-content",height:"fit-content"},button:{margin:"1px",border:"1px solid #000",color:"black",backgroundColor:"#fff",height:"18px",width:"18px",borderRadius:"30px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{backgroundColor:"#eee"}},icon:{fontSize:"14px"}},s=i.a.createContext({showEditingControls:!0,theme:u}),l=n(1),c=n.n(l),f=n(100),p=n(2),d=n(39),h=n(275),g=n(41);var A=function(e){var t=e.children,n=e.theme,r=Object(h.a)(),o=i.a.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Object(p.a)({},e,{},t)}(r,n);return null!=e&&(e[g.a]=null!==r),e}),[n,r]);return i.a.createElement(d.a.Provider,{value:o},t)},m=n(95),v=n.n(m),y=n(93),b=n.n(y),_=n(94),w=n.n(_),C=n(91),I=n.n(C);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function D(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ge=function(e){e.classes;var t=e.content,n=he(e,["classes","content"]),r=t.text;return i.a.createElement(K,de({Editor:pe,handleSave:function(e){n.onSave(e)},content:t},n),r)};ge.propTypes={content:c.a.shape({text:c.a.string}).isRequired,onSave:c.a.func.isRequired,onDelete:c.a.func,classes:c.a.string,EditorProps:c.a.object,placeholder:c.a.string},ge.defaultProps={content:{text:""},onSave:function(e){return console.log("Implement a function to save changes!",e)}};var Ae=ge;function me(){return(me=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Se={whiteSpace:"pre-wrap"},Ee=function(e){var t=e.classes,n=e.content,r=Ie(e,["classes","content"]),o=n.text;return i.a.createElement(K,Ce({Editor:we,handleSave:function(e){r.onSave(e)},content:n,classes:t},r),i.a.createElement("span",{className:t,style:Se},o))};Ee.propTypes={content:c.a.shape({text:c.a.string}).isRequired,onSave:c.a.func.isRequired,onDelete:c.a.func,classes:c.a.string,EditorProps:c.a.object},Ee.defaultProps={content:{text:""},onSave:function(e){return console.log("Implement a function to save changes!",e)}};var xe=Ee;function ke(){return(ke=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Pe=function(e){var t=e.className,n=Le(e,["className"]),r=n.content.number;return i.a.createElement(K,Ne({Editor:De,handleSave:function(e){n.onSave(e)},content:{number:r}},n),i.a.createElement("span",{className:t},r))};Pe.propTypes={content:c.a.shape({number:c.a.number}).isRequired,onSave:c.a.func.isRequired,classes:c.a.string,EditorProps:c.a.object},Pe.defaultProps={content:{number:""},onSave:function(e){return console.log("Implement a function to save changes!",e)}};var Re=n(3),Be=n(4);function ze(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}var Ue=r.createContext();var Fe=Ue,Ke=n(5),Qe=n(6);function We(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ye(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){We(e,n),We(t,n)}}),[e,t])}function He(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o0&&Math.abs((e.outerHeightStyle||0)-p)>1||e.overflow!==d)?(m.current+=1,{overflow:d,outerHeightStyle:p}):e}))}),[o,f,e.placeholder]);r.useEffect((function(){var e=He((function(){m.current=0,_()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[_]),Ve((function(){_()})),r.useEffect((function(){m.current=0}),[l]);return r.createElement(r.Fragment,null,r.createElement("textarea",Object(p.a)({value:l,onChange:function(e){m.current=0,d||_(),n&&n(e)},ref:g,rows:f,style:Object(p.a)({height:y.outerHeightStyle,overflow:y.overflow?"hidden":null},s)},c)),r.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:A,tabIndex:-1,style:Object(p.a)({},qe,{},s)}))}));function Ze(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Ze(e.value)&&""!==e.value||t&&Ze(e.defaultValue)&&""!==e.defaultValue)}var $e="undefined"==typeof window?r.useEffect:r.useLayoutEffect,et=r.forwardRef((function(e,t){var n=e["aria-describedby"],i=e.autoComplete,o=e.autoFocus,a=e.classes,u=e.className,s=(e.color,e.defaultValue),l=e.disabled,c=e.endAdornment,f=(e.error,e.fullWidth),d=void 0!==f&&f,h=e.id,g=e.inputComponent,A=void 0===g?"input":g,m=e.inputProps,v=void 0===m?{}:m,y=e.inputRef,b=(e.margin,e.multiline),_=void 0!==b&&b,w=e.name,C=e.onBlur,I=e.onChange,S=e.onClick,E=e.onFocus,x=e.onKeyDown,k=e.onKeyUp,O=e.placeholder,M=e.readOnly,T=e.renderSuffix,j=e.rows,D=e.rowsMax,N=e.rowsMin,L=e.startAdornment,P=e.type,R=void 0===P?"text":P,B=e.value,z=Object(Re.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),U=null!=v.value?v.value:B,F=r.useRef(null!=U).current,K=r.useRef(),Q=r.useCallback((function(e){0}),[]),W=Ye(v.ref,Q),Y=Ye(y,W),H=Ye(K,Y),J=r.useState(!1),V=J[0],q=J[1],G=r.useContext(Ue);var Z=ze({props:e,muiFormControl:G,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});Z.focused=G?G.focused:V,r.useEffect((function(){!G&&l&&V&&(q(!1),C&&C())}),[G,l,V,C]);var X=G&&G.onFilled,$=G&&G.onEmpty,ee=r.useCallback((function(e){Xe(e)?X&&X():$&&$()}),[X,$]);$e((function(){F&&ee({value:U})}),[U,ee,F]);r.useEffect((function(){ee(K.current)}),[]);var te=A,ne=Object(p.a)({},v,{ref:H});"string"!=typeof te?ne=Object(p.a)({inputRef:H,type:R},ne,{ref:null}):_?!j||D||N?(ne=Object(p.a)({rows:j,rowsMax:D},ne),te=Ge):te="textarea":ne=Object(p.a)({type:R},ne);return r.useEffect((function(){G&&G.setAdornedStart(Boolean(L))}),[G,L]),r.createElement("div",Object(p.a)({className:Object(Be.a)(a.root,a["color".concat(Object(Qe.a)(Z.color||"primary"))],u,Z.disabled&&a.disabled,Z.error&&a.error,d&&a.fullWidth,Z.focused&&a.focused,G&&a.formControl,_&&a.multiline,L&&a.adornedStart,c&&a.adornedEnd,"dense"===Z.margin&&a.marginDense),onClick:function(e){K.current&&e.currentTarget===e.target&&K.current.focus(),S&&S(e)},ref:t},z),L,r.createElement(Fe.Provider,{value:null},r.createElement(te,Object(p.a)({"aria-invalid":Z.error,"aria-describedby":n,autoComplete:i,autoFocus:o,defaultValue:s,disabled:Z.disabled,id:h,onAnimationStart:function(e){ee("mui-auto-fill-cancel"===e.animationName?K.current:{value:"x"})},name:w,placeholder:O,readOnly:M,required:Z.required,rows:j,value:U,onKeyDown:x,onKeyUp:k},ne,{className:Object(Be.a)(a.input,v.className,Z.disabled&&a.disabled,_&&a.inputMultiline,Z.hiddenLabel&&a.inputHiddenLabel,L&&a.inputAdornedStart,c&&a.inputAdornedEnd,"search"===R&&a.inputTypeSearch,"dense"===Z.margin&&a.inputMarginDense),onBlur:function(e){C&&C(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):q(!1)},onChange:function(e){if(!F){var t=e.target||K.current;if(null==t)throw new TypeError("Material-UI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://material-ui.com/r/input-component-ref-interface for more info.");ee({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0?.75*a+8:.01;return r.createElement("fieldset",Object(p.a)({"aria-hidden":!0,style:Object(p.a)(Object(at.a)({},"padding".concat(Object(Qe.a)(c)),8),s),className:Object(Be.a)(n.root,i),ref:t},l),r.createElement("legend",{className:n.legend,style:{width:u?f:.01}},r.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),ct=Object(Ke.a)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:0,paddingLeft:8,pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(lt),ft=r.forwardRef((function(e,t){var n=e.classes,i=e.fullWidth,o=void 0!==i&&i,a=e.inputComponent,u=void 0===a?"input":a,s=e.label,l=e.labelWidth,c=void 0===l?0:l,f=e.multiline,d=void 0!==f&&f,h=e.notched,g=e.type,A=void 0===g?"text":g,m=Object(Re.a)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return r.createElement(tt,Object(p.a)({renderSuffix:function(e){return r.createElement(ct,{className:n.notchedOutline,label:s,labelWidth:c,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Object(p.a)({},n,{root:Object(Be.a)(n.root,n.underline),notchedOutline:null}),fullWidth:o,inputComponent:u,multiline:d,ref:t,type:A},m))}));ft.muiName="Input";var pt=Object(Ke.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"dark"===e.palette.type?"0 0 0 100px #266798 inset":null,WebkitTextFillColor:"dark"===e.palette.type?"#fff":null,borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(ft);function dt(){return r.useContext(Fe)}var ht=r.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.className,a=(e.color,e.component),u=void 0===a?"label":a,s=(e.disabled,e.error,e.filled,e.focused,e.required,Object(Re.a)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),l=ze({props:e,muiFormControl:dt(),states:["color","required","focused","disabled","error","filled"]});return r.createElement(u,Object(p.a)({className:Object(Be.a)(i.root,i["color".concat(Object(Qe.a)(l.color||"primary"))],o,l.disabled&&i.disabled,l.error&&i.error,l.filled&&i.filled,l.focused&&i.focused,l.required&&i.required),ref:t},s),n,l.required&&r.createElement("span",{className:Object(Be.a)(i.asterisk,l.error&&i.error)}," ","*"))})),gt=Object(Ke.a)((function(e){return{root:Object(p.a)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(ht),At=r.forwardRef((function(e,t){var n=e.classes,i=e.className,o=e.disableAnimation,a=void 0!==o&&o,u=(e.margin,e.shrink),s=(e.variant,Object(Re.a)(e,["classes","className","disableAnimation","margin","shrink","variant"])),l=dt(),c=u;void 0===c&&l&&(c=l.filled||l.focused||l.adornedStart);var f=ze({props:e,muiFormControl:l,states:["margin","variant"]});return r.createElement(gt,Object(p.a)({"data-shrink":c,className:Object(Be.a)(n.root,i,l&&n.formControl,!a&&n.animated,c&&n.shrink,"dense"===f.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[f.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},s))})),mt=Object(Ke.a)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(At);function vt(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var yt=r.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.className,a=e.color,u=void 0===a?"primary":a,s=e.component,l=void 0===s?"div":s,c=e.disabled,f=void 0!==c&&c,d=e.error,h=void 0!==d&&d,g=e.fullWidth,A=void 0!==g&&g,m=e.hiddenLabel,v=void 0!==m&&m,y=e.margin,b=void 0===y?"none":y,_=e.required,w=void 0!==_&&_,C=e.size,I=e.variant,S=void 0===I?"standard":I,E=Object(Re.a)(e,["children","classes","className","color","component","disabled","error","fullWidth","hiddenLabel","margin","required","size","variant"]),x=r.useState((function(){var e=!1;return n&&r.Children.forEach(n,(function(t){if(vt(t,["Input","Select"])){var n=vt(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),k=x[0],O=x[1],M=r.useState((function(){var e=!1;return n&&r.Children.forEach(n,(function(t){vt(t,["Input","Select"])&&Xe(t.props,!0)&&(e=!0)})),e})),T=M[0],j=M[1],D=r.useState(!1),N=D[0],L=D[1];f&&N&&L(!1);var P=r.useCallback((function(){j(!0)}),[]),R={adornedStart:k,setAdornedStart:O,color:u,disabled:f,error:h,filled:T,focused:N,fullWidth:A,hiddenLabel:v,margin:("small"===C?"dense":void 0)||b,onBlur:function(){L(!1)},onEmpty:r.useCallback((function(){j(!1)}),[]),onFilled:P,onFocus:function(){L(!0)},registerEffect:void 0,required:w,variant:S};return r.createElement(Fe.Provider,{value:R},r.createElement(l,Object(p.a)({className:Object(Be.a)(i.root,o,"none"!==b&&i["margin".concat(Object(Qe.a)(b))],A&&i.fullWidth),ref:t},E),n))})),bt=Object(Ke.a)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(yt),_t=r.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.className,a=e.component,u=void 0===a?"p":a,s=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,Object(Re.a)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),l=ze({props:e,muiFormControl:dt(),states:["variant","margin","disabled","error","filled","focused","required"]});return r.createElement(u,Object(p.a)({className:Object(Be.a)(i.root,("filled"===l.variant||"outlined"===l.variant)&&i.contained,o,l.disabled&&i.disabled,l.error&&i.error,l.filled&&i.filled,l.focused&&i.focused,l.required&&i.required,"dense"===l.margin&&i.marginDense),ref:t},s)," "===n?r.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)})),wt=Object(Ke.a)((function(e){return{root:Object(p.a)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(_t),Ct=n(273),It=n(12),St=n(16),Et=n(17);n(30);function xt(e){return e&&e.ownerDocument||document}function kt(e){return xt(e).defaultView||window}function Ot(){for(var e=arguments.length,t=new Array(e),n=0;n3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Object(It.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&Bt(e,i)}))}function Ft(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Kt(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=xt(e);return t.body===e?kt(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=Rt();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(zt(o)+a,"px"),n=xt(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(zt(e)+a,"px")}))}var u=o.parentElement,s="HTML"===u.nodeName&&"scroll"===window.getComputedStyle(u)["overflow-y"]?u:o;r.push({value:s.style.overflow,key:"overflow",el:s}),s.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Qt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return Object(Pt.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Bt(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ut(t,e.mountNode,e.modalRef,r,!0);var i=Ft(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Ft(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Kt(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Ft(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&Bt(e.modalRef,!0),Ut(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&Bt(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var Wt=function(e){var t=e.children,n=e.disableAutoFocus,i=void 0!==n&&n,a=e.disableEnforceFocus,u=void 0!==a&&a,s=e.disableRestoreFocus,l=void 0!==s&&s,c=e.getDoc,f=e.isEnabled,p=e.open,d=r.useRef(),h=r.useRef(null),g=r.useRef(null),A=r.useRef(),m=r.useRef(null),v=r.useCallback((function(e){m.current=o.findDOMNode(e)}),[]),y=Ye(t.ref,v);return r.useMemo((function(){p&&"undefined"!=typeof window&&(A.current=c().activeElement)}),[p]),r.useEffect((function(){if(p){var e=xt(m.current);i||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){u||!f()||d.current?d.current=!1:m.current&&!m.current.contains(e.activeElement)&&m.current.focus()},n=function(t){!u&&f()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?g.current.focus():h.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(A.current&&A.current.focus&&A.current.focus(),A.current=null)}}}),[i,u,l,f,p]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:y}),r.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelEnd"}))},Yt={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Ht=r.forwardRef((function(e,t){var n=e.invisible,i=void 0!==n&&n,o=e.open,a=Object(Re.a)(e,["invisible","open"]);return o?r.createElement("div",Object(p.a)({"aria-hidden":!0,ref:t},a,{style:Object(p.a)({},Yt.root,{},i?Yt.invisible:{},{},a.style)})):null}));var Jt=new Qt,Vt=r.forwardRef((function(e,t){var n=Object(h.a)(),i=Object(Mt.a)({name:"MuiModal",props:Object(p.a)({},e),theme:n}),a=i.BackdropComponent,u=void 0===a?Ht:a,s=i.BackdropProps,l=i.children,c=i.closeAfterTransition,f=void 0!==c&&c,d=i.container,g=i.disableAutoFocus,A=void 0!==g&&g,m=i.disableBackdropClick,v=void 0!==m&&m,y=i.disableEnforceFocus,b=void 0!==y&&y,_=i.disableEscapeKeyDown,w=void 0!==_&&_,C=i.disablePortal,I=void 0!==C&&C,S=i.disableRestoreFocus,E=void 0!==S&&S,x=i.disableScrollLock,k=void 0!==x&&x,O=i.hideBackdrop,M=void 0!==O&&O,T=i.keepMounted,j=void 0!==T&&T,D=i.manager,N=void 0===D?Jt:D,L=i.onBackdropClick,P=i.onClose,R=i.onEscapeKeyDown,B=i.onRendered,z=i.open,U=Object(Re.a)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=r.useState(!0),K=F[0],Q=F[1],W=r.useRef({}),Y=r.useRef(null),H=r.useRef(null),J=Ye(H,t),V=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),q=function(){return xt(Y.current)},G=function(){return W.current.modalRef=H.current,W.current.mountNode=Y.current,W.current},Z=function(){N.mount(G(),{disableScrollLock:k}),H.current.scrollTop=0},X=Nt((function(){var e=function(e){return e="function"==typeof e?e():e,o.findDOMNode(e)}(d)||q().body;N.add(G(),e),H.current&&Z()})),$=r.useCallback((function(){return N.isTopModal(G())}),[N]),ee=Nt((function(e){Y.current=e,e&&(B&&B(),z&&$()?Z():Bt(H.current,!0))})),te=r.useCallback((function(){N.remove(G())}),[N]);if(r.useEffect((function(){return function(){te()}}),[te]),r.useEffect((function(){z?X():V&&f||te()}),[z,te,V,f,X]),!j&&!z&&(!V||K))return null;var ne=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Lt.a}),re={};return void 0===l.props.tabIndex&&(re.tabIndex=l.props.tabIndex||"-1"),V&&(re.onEnter=Ot((function(){Q(!1)}),l.props.onEnter),re.onExited=Ot((function(){Q(!0),f&&te()}),l.props.onExited)),r.createElement(jt,{ref:ee,container:d,disablePortal:I},r.createElement("div",Object(p.a)({ref:J,onKeyDown:function(e){"Escape"===e.key&&$()&&(e.stopPropagation(),R&&R(e),!w&&P&&P(e,"escapeKeyDown"))},role:"presentation"},U,{style:Object(p.a)({},ne.root,{},!z&&K?ne.hidden:{},{},U.style)}),M?null:r.createElement(u,Object(p.a)({open:z,onClick:function(e){e.target===e.currentTarget&&(L&&L(e),!v&&P&&P(e,"backdropClick"))}},s)),r.createElement(Wt,{disableEnforceFocus:b,disableAutoFocus:A,disableRestoreFocus:E,getDoc:q,isEnabled:$,open:z},r.cloneElement(l,re))))})),qt=n(15),Gt=n(18),Zt=!1,Xt=i.a.createContext(null),$t=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i="exited",r.appearStatus="entering"):i="entered":i=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}Object(Gt.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=a.a.findDOMNode(this);"entering"===t?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context?this.context.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;!t&&!r||Zt?this.safeSetState({status:"entered"},(function(){n.props.onEntered(e)})):(this.props.onEnter(e,i),this.safeSetState({status:"entering"},(function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(e,i)}))}))})))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n&&!Zt?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=Object(qt.a)(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return i.a.createElement(Xt.Provider,{value:null},n(e,r));var o=i.a.Children.only(n);return i.a.createElement(Xt.Provider,{value:null},i.a.cloneElement(o,r))},t}(i.a.Component);function en(){}$t.contextType=Xt,$t.propTypes={},$t.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:en,onEntering:en,onEntered:en,onExit:en,onExiting:en,onExited:en},$t.UNMOUNTED=0,$t.EXITED=1,$t.ENTERING=2,$t.ENTERED=3,$t.EXITING=4;var tn=$t;function nn(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}function rn(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var on={entering:{opacity:1,transform:rn(1)},entered:{opacity:1,transform:"none"}},an=r.forwardRef((function(e,t){var n=e.children,i=e.in,o=e.onEnter,a=e.onExit,u=e.style,s=e.timeout,l=void 0===s?"auto":s,c=Object(Re.a)(e,["children","in","onEnter","onExit","style","timeout"]),f=r.useRef(),d=r.useRef(),h=Ye(n.ref,t),g=st();return r.useEffect((function(){return function(){clearTimeout(f.current)}}),[]),r.createElement(tn,Object(p.a)({appear:!0,in:i,onEnter:function(e,t){!function(e){e.scrollTop}(e);var n,r=nn({style:u,timeout:l},{mode:"enter"}),i=r.duration,a=r.delay;"auto"===l?(n=g.transitions.getAutoHeightDuration(e.clientHeight),d.current=n):n=i,e.style.transition=[g.transitions.create("opacity",{duration:n,delay:a}),g.transitions.create("transform",{duration:.666*n,delay:a})].join(","),o&&o(e,t)},onExit:function(e){var t,n=nn({style:u,timeout:l},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===l?(t=g.transitions.getAutoHeightDuration(e.clientHeight),d.current=t):t=r,e.style.transition=[g.transitions.create("opacity",{duration:t,delay:i}),g.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=rn(.75),a&&a(e)},addEndListener:function(e,t){"auto"===l&&(f.current=setTimeout(t,d.current||0))},timeout:"auto"===l?null:l},c),(function(e,t){return r.cloneElement(n,Object(p.a)({style:Object(p.a)({opacity:0,transform:rn(.75),visibility:"exited"!==e||i?void 0:"hidden"},on[e],{},u,{},n.props.style),ref:h},t))}))}));an.muiSupportAuto=!0;var un=an,sn=r.forwardRef((function(e,t){var n=e.classes,i=e.className,o=e.component,a=void 0===o?"div":o,u=e.square,s=void 0!==u&&u,l=e.elevation,c=void 0===l?1:l,f=e.variant,d=void 0===f?"elevation":f,h=Object(Re.a)(e,["classes","className","component","square","elevation","variant"]);return r.createElement(a,Object(p.a)({className:Object(Be.a)(n.root,i,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},h))})),ln=Object(Ke.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(p.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(sn);function cn(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function fn(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function pn(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function dn(e){return"function"==typeof e?e():e}var hn=r.forwardRef((function(e,t){var n=e.action,i=e.anchorEl,a=e.anchorOrigin,u=void 0===a?{vertical:"top",horizontal:"left"}:a,s=e.anchorPosition,l=e.anchorReference,c=void 0===l?"anchorEl":l,f=e.children,d=e.classes,h=e.className,g=e.container,A=e.elevation,m=void 0===A?8:A,v=e.getContentAnchorEl,y=e.marginThreshold,b=void 0===y?16:y,_=e.onEnter,w=e.onEntered,C=e.onEntering,I=e.onExit,S=e.onExited,E=e.onExiting,x=e.open,k=e.PaperProps,O=void 0===k?{}:k,M=e.transformOrigin,T=void 0===M?{vertical:"top",horizontal:"left"}:M,j=e.TransitionComponent,D=void 0===j?un:j,N=e.transitionDuration,L=void 0===N?"auto":N,P=e.TransitionProps,R=void 0===P?{}:P,B=Object(Re.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),z=r.useRef(),U=r.useCallback((function(e){if("anchorPosition"===c)return s;var t=dn(i),n=(t instanceof kt(t).Element?t:xt(z.current).body).getBoundingClientRect(),r=0===e?u.vertical:"center";return{top:n.top+cn(n,r),left:n.left+fn(n,u.horizontal)}}),[i,u.horizontal,u.vertical,s,c]),F=r.useCallback((function(e){var t=0;if(v&&"anchorEl"===c){var n=v(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[u.vertical,c,v]),K=r.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:cn(e,T.vertical)+t,horizontal:fn(e,T.horizontal)}}),[T.horizontal,T.vertical]),Q=r.useCallback((function(e){var t=F(e),n={width:e.offsetWidth,height:e.offsetHeight},r=K(n,t);if("none"===c)return{top:null,left:null,transformOrigin:pn(r)};var o=U(t),a=o.top-r.vertical,u=o.left-r.horizontal,s=a+n.height,l=u+n.width,f=kt(dn(i)),p=f.innerHeight-b,d=f.innerWidth-b;if(ap){var g=s-p;a-=g,r.vertical+=g}if(ud){var m=l-d;u-=m,r.horizontal+=m}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(u),"px"),transformOrigin:pn(r)}}),[i,c,U,F,K,b]),W=r.useCallback((function(){var e=z.current;if(e){var t=Q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[Q]),Y=r.useCallback((function(e){z.current=o.findDOMNode(e)}),[]);r.useEffect((function(){x&&W()})),r.useImperativeHandle(n,(function(){return x?{updatePosition:function(){W()}}:null}),[x,W]),r.useEffect((function(){if(x){var e=He((function(){W()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[x,W]);var H=L;"auto"!==L||D.muiSupportAuto||(H=void 0);var J=g||(i?xt(dn(i)).body:void 0);return r.createElement(Vt,Object(p.a)({container:J,open:x,ref:t,BackdropProps:{invisible:!0},className:Object(Be.a)(d.root,h)},B),r.createElement(D,Object(p.a)({appear:!0,in:x,onEnter:_,onEntered:w,onExit:I,onExited:S,onExiting:E,timeout:H},R,{onEntering:Ot((function(e,t){C&&C(e,t),W()}),R.onEntering)}),r.createElement(ln,Object(p.a)({elevation:m,ref:Y},O,{className:Object(Be.a)(d.paper,O.className)}),f)))})),gn=Object(Ke.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(hn);var An=r.createContext({}),mn=r.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.className,a=e.component,u=void 0===a?"ul":a,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,f=void 0!==c&&c,d=e.subheader,h=Object(Re.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=r.useMemo((function(){return{dense:l}}),[l]);return r.createElement(An.Provider,{value:g},r.createElement(u,Object(p.a)({className:Object(Be.a)(i.root,o,l&&i.dense,!f&&i.padding,d&&i.subheader),ref:t},h),d,n))})),vn=Object(Ke.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(mn);function yn(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function bn(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function _n(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function wn(e,t,n,r,i,o){for(var a=!1,u=i(e,t,!!t&&n);u;){if(u===e.firstChild){if(a)return;a=!0}var s=!r&&(u.disabled||"true"===u.getAttribute("aria-disabled"));if(u.hasAttribute("tabindex")&&_n(u,o)&&!s)return void u.focus();u=i(e,u,n)}}var Cn="undefined"==typeof window?r.useEffect:r.useLayoutEffect,In=r.forwardRef((function(e,t){var n=e.actions,i=e.autoFocus,a=void 0!==i&&i,u=e.autoFocusItem,s=void 0!==u&&u,l=e.children,c=e.className,f=e.disabledItemsFocusable,d=void 0!==f&&f,h=e.disableListWrap,g=void 0!==h&&h,A=e.onKeyDown,m=e.variant,v=void 0===m?"selectedMenu":m,y=Object(Re.a)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),b=r.useRef(null),_=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Cn((function(){a&&b.current.focus()}),[a]),r.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!b.current.style.width;if(e.clientHeight0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var u=r&&!i.repeating&&_n(r,i);i.previousKeyMatched&&(u||wn(t,r,!1,d,yn,i))?e.preventDefault():i.previousKeyMatched=!1}A&&A(e)},tabIndex:a?0:-1},y),I)})),Sn={vertical:"top",horizontal:"right"},En={vertical:"top",horizontal:"left"},xn=r.forwardRef((function(e,t){var n=e.autoFocus,i=void 0===n||n,a=e.children,u=e.classes,s=e.disableAutoFocusItem,l=void 0!==s&&s,c=e.MenuListProps,f=void 0===c?{}:c,d=e.onClose,h=e.onEntering,g=e.open,A=e.PaperProps,m=void 0===A?{}:A,v=e.PopoverClasses,y=e.transitionDuration,b=void 0===y?"auto":y,_=e.variant,w=void 0===_?"selectedMenu":_,C=Object(Re.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),I=st(),S=i&&!l&&g,E=r.useRef(null),x=r.useRef(null),k=-1;r.Children.map(a,(function(e,t){r.isValidElement(e)&&(e.props.disabled||("menu"!==w&&e.props.selected||-1===k)&&(k=t))}));var O=r.Children.map(a,(function(e,t){return t===k?r.cloneElement(e,{ref:function(t){x.current=o.findDOMNode(t),We(e.ref,t)}}):e}));return r.createElement(gn,Object(p.a)({getContentAnchorEl:function(){return x.current},classes:v,onClose:d,onEntering:function(e,t){E.current&&E.current.adjustStyleForScrollbar(e,I),h&&h(e,t)},anchorOrigin:"rtl"===I.direction?Sn:En,transformOrigin:"rtl"===I.direction?Sn:En,PaperProps:Object(p.a)({},m,{classes:Object(p.a)({},m.classes,{root:u.paper})}),open:g,ref:t,transitionDuration:b},C),r.createElement(In,Object(p.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:E,autoFocus:i&&(-1===k||l),autoFocusItem:S,variant:w},f,{className:Object(Be.a)(u.list,f.className)}),O))})),kn=Object(Ke.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(xn);function On(e){var t=e.controlled,n=e.default,i=(e.name,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],u=o[1];return[i?t:a,r.useCallback((function(e){i||u(e)}),[])]}function Mn(e,t){return"object"===Object(Et.a)(t)&&null!==t?e===t:String(e)===String(t)}var Tn=r.forwardRef((function(e,t){var n=e.autoFocus,i=e.autoWidth,o=e.children,a=e.classes,u=e.className,s=e.defaultValue,l=e.disabled,c=e.displayEmpty,f=e.IconComponent,d=e.inputRef,h=e.labelId,g=e.MenuProps,A=void 0===g?{}:g,m=e.multiple,v=e.name,y=e.onBlur,b=e.onChange,_=e.onClose,w=e.onFocus,C=e.onOpen,I=e.open,S=e.readOnly,E=e.renderValue,x=(e.required,e.SelectDisplayProps),k=void 0===x?{}:x,O=e.tabIndex,M=(e.type,e.value),T=e.variant,j=void 0===T?"standard":T,D=Object(Re.a)(e,["autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","required","SelectDisplayProps","tabIndex","type","value","variant"]),N=On({controlled:M,default:s,name:"SelectInput"}),L=Object(St.a)(N,2),P=L[0],R=L[1],B=r.useRef(null),z=r.useState(null),U=z[0],F=z[1],K=r.useRef(null!=I).current,Q=r.useState(),W=Q[0],Y=Q[1],H=r.useState(!1),J=H[0],V=H[1],q=Ye(t,d);r.useImperativeHandle(q,(function(){return{focus:function(){U.focus()},node:B.current,value:P}}),[U,P]),r.useEffect((function(){n&&U&&U.focus()}),[n,U]);var G,Z,X=function(e,t){e?C&&C(t):_&&_(t),K||(Y(i?null:U.clientWidth),V(e))},$=function(e){return function(t){var n;if(m||X(!1,t),m){n=Array.isArray(P)?Object(It.a)(P):[];var r=P.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;R(n),b&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:v}}),b(t,e))}},ee=null!==U&&(K?I:J);delete D["aria-invalid"];var te=[],ne=!1;(Xe({value:P})||c)&&(E?G=E(P):ne=!0);var re=r.Children.map(o,(function(e){if(!r.isValidElement(e))return null;var t;if(m){if(!Array.isArray(P))throw new Error("Material-UI: the `value` prop must be an array when using the `Select` component with `multiple`.");(t=P.some((function(t){return Mn(t,e.props.value)})))&&ne&&te.push(e.props.children)}else(t=Mn(P,e.props.value))&&ne&&(Z=e.props.children);return t&&!0,r.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:$(e),onKeyUp:function(t){" "===t.key&&t.preventDefault();var n=e.props.onKeyUp;"function"==typeof n&&n(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ne&&(G=m?te.join(", "):Z);var ie,oe=W;!i&&K&&U&&(oe=U.clientWidth),ie=void 0!==O?O:l?null:0;var ae=k.id||(v?"mui-component-select-".concat(v):void 0);return r.createElement(r.Fragment,null,r.createElement("div",Object(p.a)({className:Object(Be.a)(a.root,a.select,a.selectMenu,a[j],u,l&&a.disabled),ref:F,tabIndex:ie,role:"button","aria-expanded":ee?"true":void 0,"aria-labelledby":"".concat(h||""," ").concat(ae||""),"aria-haspopup":"listbox",onKeyDown:function(e){if(!S){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),X(!0,e))}},onMouseDown:l||S?null:function(e){0===e.button&&(e.preventDefault(),U.focus(),X(!0,e))},onBlur:function(e){!ee&&y&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:P,name:v}}),y(e))},onFocus:w},k,{id:ae}),function(e){return null==e||"string"==typeof e&&!e.trim()}(G)?r.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):G),r.createElement("input",Object(p.a)({value:Array.isArray(P)?P.join(","):P,name:v,ref:B,type:"hidden",autoFocus:n},D)),r.createElement(f,{className:Object(Be.a)(a.icon,a["icon".concat(Object(Qe.a)(j))],ee&&a.iconOpen,l&&a.disabled)}),r.createElement(kn,Object(p.a)({id:"menu-".concat(v||""),anchorEl:U,open:ee,onClose:function(e){X(!1,e)}},A,{MenuListProps:Object(p.a)({"aria-labelledby":h,role:"listbox",disableListWrap:!0},A.MenuListProps),PaperProps:Object(p.a)({},A.PaperProps,{style:Object(p.a)({minWidth:oe},null!=A.PaperProps?A.PaperProps.style:null)})}),re))})),jn=n(62);function Dn(e,t){var n=r.memo(r.forwardRef((function(t,n){return r.createElement(jn.a,Object(p.a)({},t,{ref:n}),e)})));return n.muiName=jn.a.muiName,n}var Nn=Dn(r.createElement("path",{d:"M7 10l5 5 5-5z"})),Ln=r.forwardRef((function(e,t){var n=e.classes,i=e.className,o=e.disabled,a=e.IconComponent,u=e.inputRef,s=e.variant,l=void 0===s?"standard":s,c=Object(Re.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return r.createElement(r.Fragment,null,r.createElement("select",Object(p.a)({className:Object(Be.a)(n.root,n.select,n[l],i,o&&n.disabled),disabled:o,ref:u||t},c)),e.multiple?null:r.createElement(a,{className:Object(Be.a)(n.icon,n["icon".concat(Object(Qe.a)(l))],o&&n.disabled)}))})),Pn=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7}}},Rn=r.createElement(rt,null),Bn=r.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.IconComponent,a=void 0===o?Nn:o,u=e.input,s=void 0===u?Rn:u,l=e.inputProps,c=(e.variant,Object(Re.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),f=ze({props:e,muiFormControl:dt(),states:["variant"]});return r.cloneElement(s,Object(p.a)({inputComponent:Ln,inputProps:Object(p.a)({children:n,classes:i,IconComponent:a,variant:f.variant,type:void 0},l,{},s?s.props.inputProps:{}),ref:t},c))}));Bn.muiName="Select";Object(Ke.a)(Pn,{name:"MuiNativeSelect"})(Bn);var zn=Pn,Un=r.createElement(rt,null),Fn=r.createElement(ot,null),Kn=r.forwardRef((function e(t,n){var i=t.autoWidth,o=void 0!==i&&i,a=t.children,u=t.classes,s=t.displayEmpty,l=void 0!==s&&s,c=t.IconComponent,f=void 0===c?Nn:c,d=t.id,h=t.input,g=t.inputProps,A=t.label,m=t.labelId,v=t.labelWidth,y=void 0===v?0:v,b=t.MenuProps,_=t.multiple,w=void 0!==_&&_,C=t.native,I=void 0!==C&&C,S=t.onClose,E=t.onOpen,x=t.open,k=t.renderValue,O=t.SelectDisplayProps,M=t.variant,T=void 0===M?"standard":M,j=Object(Re.a)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),D=I?Ln:Tn,N=ze({props:t,muiFormControl:dt(),states:["variant"]}).variant||T,L=h||{standard:Un,outlined:r.createElement(pt,{label:A,labelWidth:y}),filled:Fn}[N];return r.cloneElement(L,Object(p.a)({inputComponent:D,inputProps:Object(p.a)({children:a,IconComponent:f,variant:N,type:void 0,multiple:w},I?{id:d}:{autoWidth:o,displayEmpty:l,labelId:m,MenuProps:b,onClose:S,onOpen:E,open:x,renderValue:k,SelectDisplayProps:Object(p.a)({id:d},O)},{},g,{classes:g?Object(Ct.a)({baseClasses:u,newClasses:g.classes,Component:e}):u},h?h.props.inputProps:{}),ref:n},j))}));Kn.muiName="Select";var Qn=Object(Ke.a)(zn,{name:"MuiSelect"})(Kn),Wn={standard:rt,filled:ot,outlined:pt},Yn=r.forwardRef((function(e,t){var n=e.autoComplete,i=e.autoFocus,o=void 0!==i&&i,a=e.children,u=e.classes,s=e.className,l=e.color,c=void 0===l?"primary":l,f=e.defaultValue,d=e.disabled,h=void 0!==d&&d,g=e.error,A=void 0!==g&&g,m=e.FormHelperTextProps,v=e.fullWidth,y=void 0!==v&&v,b=e.helperText,_=e.hiddenLabel,w=e.id,C=e.InputLabelProps,I=e.inputProps,S=e.InputProps,E=e.inputRef,x=e.label,k=e.multiline,O=void 0!==k&&k,M=e.name,T=e.onBlur,j=e.onChange,D=e.onFocus,N=e.placeholder,L=e.required,P=void 0!==L&&L,R=e.rows,B=e.rowsMax,z=e.select,U=void 0!==z&&z,F=e.SelectProps,K=e.type,Q=e.value,W=e.variant,Y=void 0===W?"standard":W,H=Object(Re.a)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]);var J={};"outlined"===Y&&(C&&void 0!==C.shrink&&(J.notched=C.shrink),x&&(J.label=r.createElement(r.Fragment,null,x,P&&" *"))),U&&(F&&F.native||(J.id=void 0),J["aria-describedby"]=void 0);var V=b&&w?"".concat(w,"-helper-text"):void 0,q=x&&w?"".concat(w,"-label"):void 0,G=Wn[Y],Z=r.createElement(G,Object(p.a)({"aria-describedby":V,autoComplete:n,autoFocus:o,defaultValue:f,fullWidth:y,multiline:O,name:M,rows:R,rowsMax:B,type:K,value:Q,id:w,inputRef:E,onBlur:T,onChange:j,onFocus:D,placeholder:N,inputProps:I},J,S));return r.createElement(bt,Object(p.a)({className:Object(Be.a)(u.root,s),disabled:h,error:A,fullWidth:y,hiddenLabel:_,ref:t,required:P,color:c,variant:Y},H),x&&r.createElement(mt,Object(p.a)({htmlFor:w,id:q},C),x),U?r.createElement(Qn,Object(p.a)({"aria-describedby":V,id:w,labelId:q,value:Q,input:Z},F),a):Z,b&&r.createElement(wt,Object(p.a)({id:V},m),b))})),Hn=Object(Ke.a)({root:{}},{name:"MuiTextField"})(Yn),Jn=[0,1,2,3,4,5,6,7,8,9,10],Vn=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function qn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var Gn=r.forwardRef((function(e,t){var n=e.alignContent,i=void 0===n?"stretch":n,o=e.alignItems,a=void 0===o?"stretch":o,u=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,f=e.container,d=void 0!==f&&f,h=e.direction,g=void 0===h?"row":h,A=e.item,m=void 0!==A&&A,v=e.justify,y=void 0===v?"flex-start":v,b=e.lg,_=void 0!==b&&b,w=e.md,C=void 0!==w&&w,I=e.sm,S=void 0!==I&&I,E=e.spacing,x=void 0===E?0:E,k=e.wrap,O=void 0===k?"wrap":k,M=e.xl,T=void 0!==M&&M,j=e.xs,D=void 0!==j&&j,N=e.zeroMinWidth,L=void 0!==N&&N,P=Object(Re.a)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),R=Object(Be.a)(u.root,s,d&&[u.container,0!==x&&u["spacing-xs-".concat(String(x))]],m&&u.item,L&&u.zeroMinWidth,"row"!==g&&u["direction-xs-".concat(String(g))],"wrap"!==O&&u["wrap-xs-".concat(String(O))],"stretch"!==a&&u["align-items-xs-".concat(String(a))],"stretch"!==i&&u["align-content-xs-".concat(String(i))],"flex-start"!==y&&u["justify-xs-".concat(String(y))],!1!==D&&u["grid-xs-".concat(String(D))],!1!==S&&u["grid-sm-".concat(String(S))],!1!==C&&u["grid-md-".concat(String(C))],!1!==_&&u["grid-lg-".concat(String(_))],!1!==T&&u["grid-xl-".concat(String(T))]);return r.createElement(c,Object(p.a)({className:R,ref:t},P))})),Zn=Object(Ke.a)((function(e){return Object(p.a)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return Jn.forEach((function(r){var i=e.spacing(r);0!==i&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(qn(i,2)),width:"calc(100% + ".concat(qn(i),")"),"& > $item":{padding:qn(i,2)}})})),n}(e,"xs"),{},e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};Vn.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Object(p.a)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(Gn);function Xn(){return(Xn=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ar=function(e){var t=e.content,n=e.onSave,r=e.classes,o=or(e,["content","onSave","classes"]),a=t.link,u=t.anchor;return i.a.createElement(K,ir({Editor:rr,handleSave:function(e){n(e)},content:{link:a,anchor:u}},o),i.a.createElement("a",{href:a,className:r},u))};ar.propTypes={content:c.a.shape({anchor:c.a.string,link:c.a.string}).isRequired,onSave:c.a.func.isRequired,classes:c.a.string,EditorProps:c.a.shape({anchor:c.a.object,link:c.a.object})},ar.defaultProps={content:{anchor:"",link:""},onSave:function(e){return console.log("Implement a function to save changes!",e)},EditorProps:{anchor:{},link:{}}};var ur=ar,sr=r.forwardRef((function(e,t){var n=e.classes,i=e.className,o=e.component,a=void 0===o?"div":o,u=e.disableGutters,s=void 0!==u&&u,l=e.fixed,c=void 0!==l&&l,f=e.maxWidth,d=void 0===f?"lg":f,h=Object(Re.a)(e,["classes","className","component","disableGutters","fixed","maxWidth"]);return r.createElement(a,Object(p.a)({className:Object(Be.a)(n.root,i,c&&n.fixed,s&&n.disableGutters,!1!==d&&n["maxWidth".concat(Object(Qe.a)(String(d)))]),ref:t},h))})),lr=Object(Ke.a)((function(e){return{root:Object(at.a)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2),display:"block"},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(e.breakpoints.values).reduce((function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t}),{}),maxWidthXs:Object(at.a)({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:Object(at.a)({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:Object(at.a)({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:Object(at.a)({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:Object(at.a)({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}}),{name:"MuiContainer"})(sr);function cr(e){return(cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fr(){return(fr=Object.assign||function(e){for(var t=1;tt.props.maxSize?t.setState({imageError:!0,loading:!1}):t.props.uploadImage(n).then((function(e){t.props.onContentChange(dr({},t.props.content,{image:n,imageSrc:e})),t.setState({preview:e,loading:!1})})):t.setState({loading:!1})})),t.state={loading:!1,imageError:!1,preview:null},t}return n=u,(r=[{key:"render",value:function(){var e=this.props,t=e.showCaption,n=e.editCaption,r=(e.maxSize,e.EditorProps),o=e.content,a=o.caption,u=(o.imageSrc,o.title),s=this.state.preview||"data:image/jpeg;base64,/9j/4QNVRXhpZgAATU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUAAAABAAAAYgEbAAUAAAABAAAAagEoAAMAAAABAAMAAAExAAIAAAAkAAAAcgEyAAIAAAAUAAAAlodpAAQAAAABAAAArAAAANgAEgWsAAAnEAASBawAACcQQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkAMjAyMDowNDowNSAwMDo1NzozMQAAAAADoAEAAwAAAAEAAQAAoAIABAAAAAEAAAAQoAMABAAAAAEAAAAQAAAAAAAAAAYBAwADAAAAAQAGAAABGgAFAAAAAQAAASYBGwAFAAAAAQAAAS4BK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mgAGAAAAAAABADIAAAABAFoAAAAGAAAAAAABADUAAAABAC0AAAAGAAAAAAABOEJJTQP4AAAAAABwAAD/////////////////////////////A+gAAAAA/////////////////////////////wPoAAAAAP////////////////////////////8D6AAAAAD/////////////////////////////A+gAADhCSU0EAAAAAAAAAgAAOEJJTQQCAAAAAAACAAA4QklNBDAAAAAAAAEBADhCSU0ELQAAAAAABgABAAAAAjhCSU0ECAAAAAAAEAAAAAEAAAJAAAACQAAAAAA4QklNBB4AAAAAAAQAAAAAOEJJTQQaAAAAAANJAAAABgAAAAAAAAAAAAAAEAAAABAAAAAKAFUAbgB0AGkAdABsAGUAZAAtADEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAEAAAAAAABudWxsAAAAAgAAAAZib3VuZHNPYmpjAAAAAQAAAAAAAFJjdDEAAAAEAAAAAFRvcCBsb25nAAAAAAAAAABMZWZ0bG9uZwAAAAAAAAAAQnRvbWxvbmcAAAAQAAAAAFJnaHRsb25nAAAAEAAAAAZzbGljZXNWbExzAAAAAU9iamMAAAABAAAAAAAFc2xpY2UAAAASAAAAB3NsaWNlSURsb25nAAAAAAAAAAdncm91cElEbG9uZwAAAAAAAAAGb3JpZ2luZW51bQAAAAxFU2xpY2VPcmlnaW4AAAANYXV0b0dlbmVyYXRlZAAAAABUeXBlZW51bQAAAApFU2xpY2VUeXBlAAAAAEltZyAAAAAGYm91bmRzT2JqYwAAAAEAAAAAAABSY3QxAAAABAAAAABUb3AgbG9uZwAAAAAAAAAATGVmdGxvbmcAAAAAAAAAAEJ0b21sb25nAAAAEAAAAABSZ2h0bG9uZwAAABAAAAADdXJsVEVYVAAAAAEAAAAAAABudWxsVEVYVAAAAAEAAAAAAABNc2dlVEVYVAAAAAEAAAAAAAZhbHRUYWdURVhUAAAAAQAAAAAADmNlbGxUZXh0SXNIVE1MYm9vbAEAA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dHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDw/eHBhY2tldCBlbmQ9InciPz7/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQzYxOTY2LTIuMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAPNRAAEAAAABFsxYWVogAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA+EAAC2z2Rlc2MAAAAAAAAAFklFQyBodHRwOi8vd3d3Lm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fr+A24L3hROHM4lPi2+Nj4+vkc+T85YTmDeaW5x/nqegy6LzpRunQ6lvq5etw6/vshu0R7ZzuKO6070DvzPBY8OXxcvH/8ozzGfOn9DT0wvVQ9d72bfb794r4Gfio+Tj5x/pX+uf7d/wH/Jj9Kf26/kv+3P9t////7gAhQWRvYmUAZIAAAAABAwAQAwIDBgAAAAAAAAAAAAAAAP/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQRDAwMDAwREQwMDAwMDBEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8IAEQgAEAAQAwEiAAIRAQMRAf/EAF4AAQEAAAAAAAAAAAAAAAAAAAAGAQEAAAAAAAAAAAAAAAAAAAAAEAEBAAAAAAAAAAAAAAAAAAAAIBEBAAAAAAAAAAAAAAAAAAAAIBIBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQECEQMRAAAAvgf/2gAIAQIAAQUAf//aAAgBAwABBQB//9oACAEBAAEFAI//2gAIAQICBj8Af//aAAgBAwIGPwB//9oACAEBAQY/AB//2Q==";return i.a.createElement(lr,{maxWidth:"sm"},i.a.createElement(Zn,{container:!0,spacing:1,style:_r.container},i.a.createElement(Zn,{item:!0,xs:12},i.a.createElement("div",{className:"image-preview",style:dr({},_r.preview,{backgroundImage:"url(".concat(s,")")})},i.a.createElement("label",{style:this.state.preview?dr({},_r.button,{background:"#fff"}):_r.button},this.state.loading?i.a.createElement("div",{className:"loader-container"},i.a.createElement("div",{className:"loader"},"loading...")):this.state.preview?"Change image":"Select image",i.a.createElement("input",fr({className:"hidden",hidden:!0,type:"file",accept:"image/*",style:_r.hidden,onChange:this.handleImageChange},r.image)))),this.state.imageError&&i.a.createElement("div",null,"Your file is too big. Please select a file less than ".concat(parseInt(this.props.maxSize)/1048576,"MB."))),i.a.createElement(Zn,{item:!0,xs:12},i.a.createElement(Hn,fr({id:"image-alt-text",label:"Title (alt text)",value:u,onChange:this.handleTitleChange,autoFocus:!0,variant:"outlined",size:"small",margin:"dense",InputProps:{style:_r.input},style:_r.textField},r.anchor)),(t||n)&&i.a.createElement(Hn,fr({id:"image-caption",label:"Caption",value:a,onChange:this.handleCaptionChange,variant:"outlined",size:"small",margin:"dense",InputProps:{style:_r.input},style:_r.textField},r.caption)))))}}])&&hr(n.prototype,r),o&&hr(n,o),u}(i.a.Component);wr.propTypes={content:c.a.shape({imageSrc:c.a.string,caption:c.a.string,title:c.a.string}).isRequired,classes:c.a.string,EditorProps:c.a.shape({image:c.a.object,caption:c.a.object,title:c.a.object}),uploadImage:c.a.func,onContentChange:c.a.func.isRequired},wr.defaultProps={content:{imageSrc:"https://placekitten.com/300/200",caption:"",title:""},EditorProps:{image:{},caption:{},title:{}},uploadImage:function(e){return console.log("Implement a Promise to save file and return URL.",e)},onContentChange:function(e){return console.log("Implement a function to save content changes.",e)}};var Cr=wr;function Ir(){return(Ir=Object.assign||function(e){for(var t=1;tt.props.maxSize?t.setState({fileError:!0,loading:!1}):t.props.uploadFile(n).then((function(e){t.props.onContentChange(Lr({},t.props.content,{file:n,filename:n.name,filepath:e})),t.setState({preview:e,loading:!1})})):t.setState({loading:!1})})),t.state={loading:!1,fileError:!1},t}return n=u,(r=[{key:"render",value:function(){var e=this.props,t=(e.classes,e.EditorProps),n=e.content,r=e.mimetypes,o=(n.filetype,n.filename);return n.filepath,i.a.createElement(Zn,{container:!0,spacing:1,style:Qr.container},i.a.createElement(Zn,{item:!0,xs:12},i.a.createElement("div",{style:Qr.inner},i.a.createElement("label",{style:this.state.preview?Lr({},Qr.button,{background:"#fff"}):Qr.button},this.state.preview?"Change file":"Select file",i.a.createElement("input",Dr({type:"file",hidden:!0,style:Qr.hidden,accept:r,onChange:this.handleFileChange},t))),this.state.fileError&&i.a.createElement("div",null,"Your file is too big. Please select a file less than ".concat(parseInt(this.props.maxSize)/1048576,"MB.")),this.state.loading&&i.a.createElement("div",{className:"loader-container"},i.a.createElement("div",{className:"loader"},"loading...")),this.state.preview&&i.a.createElement("div",{style:Qr.preview},o))))}}])&&Pr(n.prototype,r),o&&Pr(n,o),u}(i.a.Component);Wr.propTypes={content:c.a.shape({file:c.a.object,filename:c.a.string,filepath:c.a.string,caption:c.a.string}).isRequired,uploadFile:c.a.func.isRequired,onContentChange:c.a.func.isRequired,classes:c.a.string,EditorProps:c.a.object,mimetypes:c.a.string},Wr.defaultProps={content:{file:{},filename:"",filepath:"/",caption:""},EditorProps:{},uploadFile:function(e){return console.log("Implement a Promise to save file and return URL.",e)},onContentChange:function(e){return console.log("Implement a function to save content changes.",e)},mimetypes:"application/pdf,application/msword,application/vnd.ms-excel, application/vnd.ms-powerpoint,text/plain,application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.presentationml.slideshow, .csv"};var Yr=Wr;function Hr(){return(Hr=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ei=function(e){var t=e.content,n=e.onSave,r=e.children,o=e.styles,a=e.classes,u=$r(e,["content","onSave","children","styles","classes"]),s=t.imageSrc,l={backgroundImage:"url('".concat(s,"')"),height:"inherit",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"};return i.a.createElement(K,qr({Editor:Cr,handleSave:function(e){n(e)},content:{imageSrc:s},showCaption:!1,isContentClickTarget:!1,showChildren:!0,fullWidth:!0},u),i.a.createElement("div",{className:a,style:Zr({},l,{},o)},r))};ei.propTypes={content:c.a.shape({imageSrc:c.a.string}).isRequired,onSave:c.a.func.isRequired,onDelete:c.a.func,maxSize:c.a.number,styles:c.a.object,classes:c.a.string,EditorProps:c.a.shape({image:c.a.object})},ei.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AAENsYnJib29sAAAAAABSZ3NNYm9vbAAAAAAAQ3JuQ2Jvb2wAAAAAAENudENib29sAAAAAABMYmxzYm9vbAAAAAAATmd0dmJvb2wAAAAAAEVtbERib29sAAAAAABJbnRyYm9vbAAAAAAAQmNrZ09iamMAAAABAAAAAAAAUkdCQwAAAAMAAAAAUmQgIGRvdWJAb+AAAAAAAAAAAABHcm4gZG91YkBv4AAAAAAAAAAAAEJsICBkb3ViQG/gAAAAAAAAAAAAQnJkVFVudEYjUmx0AAAAAAAAAAAAAAAAQmxkIFVudEYjUmx0AAAAAAAAAAAAAAAAUnNsdFVudEYjUHhsQFIAAAAAAAAAAAAKdmVjdG9yRGF0YWJvb2wBAAAAAFBnUHNlbnVtAAAAAFBnUHMAAAAAUGdQQwAAAABMZWZ0VW50RiNSbHQAAAAAAAAAAAAAAABUb3AgVW50RiNSbHQAAAAAAAAAAAAAAABTY2wgVW50RiNQcmNAWQAAAAAAAAAAABBjcm9wV2hlblByaW50aW5nYm9vbAAAAAAOY3JvcFJlY3RCb3R0b21sb25nAAAAAAAAAAxjcm9wUmVjdExlZnRsb25nAAAAAAAAAA1jcm9wUmVjdFJpZ2h0bG9uZwAAAAAAAAALY3JvcFJlY3RUb3Bsb25nAAAAAAA4QklNA+0AAAAAABAASAAAAAEAAQBIAAAAAQABOEJJTQQmAAAAAAAOAAAAAAAAAAAAAD+AAAA4QklNBA0AAAAAAAQAAAB4OEJJTQQZAAAAAAAEAAAAHjhCSU0D8wAAAAAACQAAAAAAAAAAAQA4QklNJxAAAAAAAAoAAQAAAAAAAAABOEJJTQP1AAAAAABIAC9mZgABAGxmZgAGAAAAAAABAC9mZgABAKGZmgAGAAAAAAABADIAAAABAFoAAAAGAAAAAAABADUAAAABAC0AAAAGAAAAAAABOEJJTQP4AAAAAABwAAD/////////////////////////////A+gAAAAA/////////////////////////////wPoAAAAAP////////////////////////////8D6AAAAAD/////////////////////////////A+gAADhCSU0EAAAAAAAAAgAAOEJJTQQCAAAAAAACA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MDEtMDQ6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKE1hY2ludG9zaCkiLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkEyQkI4MzREMzUyMDY4MTE4M0QxRTQ5REY2QjUzOThCIiBzdEV2dDp3aGVuPSIyMDE5LTA0LTExVDE0OjU3OjAxLTA0OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M2IChNYWNpbnRvc2gpIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDwvcmRmOlNlcT4gPC94bXBNTTpIaXN0b3J5PiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8P3hwYWNrZXQgZW5kPSJ3Ij8+/+IMWElDQ19QUk9GSUxFAAEBAAAMSExpbm8CEAAAbW50clJHQiBYWVogB84AAgAJAAYAMQAAYWNzcE1TRlQAAAAASUVDIHNSR0IAAAAAAAAAAAAAAAEAAPbWAAEAAAAA0y1IUCAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARY3BydAAAAVAAAAAzZGVzYwAAAYQAAABsd3RwdAAAAfAAAAAUYmtwdAAAAgQAAAAUclhZWgAAAhgAAAAUZ1hZWgAAAiwAAAAUYlhZWgAAAkAAAAAUZG1uZAAAAlQAAABwZG1kZAAAAsQAAACIdnVlZAAAA0wAAACGdmlldwAAA9QAAAAkbHVtaQAAA/gAAAAUbWVhcwAABAwAAAAkdGVjaAAABDAAAAAMclRSQwAABDwAAAgMZ1RSQwAABDwAAAgMYlRSQwAABDwAAAgMdGV4dAAAAABDb3B5cmlnaHQgKGMpIDE5OTggSGV3bGV0dC1QYWNrYXJkIENvbXBhbnkAAGRlc2MAAAAAAAAAEnNSR0IgSUVDNjE5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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/aAAgBAgABBQBt/wD/2gAIAQMAAQUAbf8A/9oACAEBAAEFALbP/9oACAECAgY/AG3/AP/aAAgBAwIGPwBt/wD/2gAIAQEBBj8AbZ//2Q=="},onSave:function(e){return console.log("Implement a function to save changes!",e)},maxSize:2097152,styles:{},EditorProps:{image:{}}};var ti=ei,ni=(n(115),n(96)),ri=n.n(ni),ii=n(11),oi="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;var ai=function(e){var t=e.children,n=e.defer,i=void 0!==n&&n,o=e.fallback,a=void 0===o?null:o,u=r.useState(!1),s=u[0],l=u[1];return oi((function(){i||l(!0)}),[i]),r.useEffect((function(){i&&l(!0)}),[i]),r.createElement(r.Fragment,null,s?t:a)},ui=!0,si=!1,li=null,ci={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 fi(e){e.metaKey||e.altKey||e.ctrlKey||(ui=!0)}function pi(){ui=!1}function di(){"hidden"===this.visibilityState&&si&&(ui=!0)}function hi(e){var t,n,r,i=e.target;try{return i.matches(":focus-visible")}catch(e){}return ui||(n=(t=i).type,!("INPUT"!==(r=t.tagName)||!ci[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function gi(){si=!0,window.clearTimeout(li),li=window.setTimeout((function(){si=!1}),100)}function Ai(){return{isFocusVisible:hi,onBlurVisible:gi,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",fi,!0),t.addEventListener("mousedown",pi,!0),t.addEventListener("pointerdown",pi,!0),t.addEventListener("touchstart",pi,!0),t.addEventListener("visibilitychange",di,!0))}),[])}}var mi=n(22);function vi(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(r.isValidElement)(e)?t(e):e}(e)})),n}function yi(e,t,n){return null!=n[t]?n[t]:e.props[t]}function bi(e,t,n){var i=vi(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var u={};for(var s in t){if(i[s])for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,a=t.center,u=void 0===a?i||t.pulsate:a,s=t.fakeElement,l=void 0!==s&&s;if("mousedown"===e.type&&h.current)h.current=!1;else{"touchstart"===e.type&&(h.current=!0);var c,f,p,d=l?null:m.current,y=d?d.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(u||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(y.width/2),f=Math.round(y.height/2);else{var b=e.clientX?e.clientX:e.touches[0].clientX,_=e.clientY?e.clientY:e.touches[0].clientY;c=Math.round(b-y.left),f=Math.round(_-y.top)}if(u)(p=Math.sqrt((2*Math.pow(y.width,2)+Math.pow(y.height,2))/3))%2==0&&(p+=1);else{var w=2*Math.max(Math.abs((d?d.clientWidth:0)-c),c)+2,C=2*Math.max(Math.abs((d?d.clientHeight:0)-f),f)+2;p=Math.sqrt(Math.pow(w,2)+Math.pow(C,2))}e.touches?null===A.current&&(A.current=function(){v({pulsate:o,rippleX:c,rippleY:f,rippleSize:p,cb:n})},g.current=setTimeout((function(){A.current&&(A.current(),A.current=null)}),80)):v({pulsate:o,rippleX:c,rippleY:f,rippleSize:p,cb:n})}}),[i,v]),b=r.useCallback((function(){y({},{pulsate:!0})}),[y]),_=r.useCallback((function(e,t){if(clearTimeout(g.current),"touchend"===e.type&&A.current)return e.persist(),A.current(),A.current=null,void(g.current=setTimeout((function(){_(e,t)})));A.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return r.useImperativeHandle(t,(function(){return{pulsate:b,start:y,stop:_}}),[b,y,_]),r.createElement("span",Object(p.a)({className:Object(Be.a)(o.root,a),ref:m},u),r.createElement(Ci,{component:null,exit:!0},l))})),xi=Object(Ke.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(r.memo(Ei)),ki=r.forwardRef((function(e,t){var n=e.action,i=e.buttonRef,a=e.centerRipple,u=void 0!==a&&a,s=e.children,l=e.classes,c=e.className,f=e.component,d=void 0===f?"button":f,h=e.disabled,g=void 0!==h&&h,A=e.disableRipple,m=void 0!==A&&A,v=e.disableTouchRipple,y=void 0!==v&&v,b=e.focusRipple,_=void 0!==b&&b,w=e.focusVisibleClassName,C=e.onBlur,I=e.onClick,S=e.onFocus,E=e.onFocusVisible,x=e.onKeyDown,k=e.onKeyUp,O=e.onMouseDown,M=e.onMouseLeave,T=e.onMouseUp,j=e.onTouchEnd,D=e.onTouchMove,N=e.onTouchStart,L=e.onDragLeave,P=e.tabIndex,R=void 0===P?0:P,B=e.TouchRippleProps,z=e.type,U=void 0===z?"button":z,F=Object(Re.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),K=r.useRef(null);var Q=r.useRef(null),W=r.useState(!1),Y=W[0],H=W[1];g&&Y&&H(!1);var J=Ai(),V=J.isFocusVisible,q=J.onBlurVisible,G=J.ref;function Z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return Nt((function(r){return t&&t(r),!n&&Q.current&&Q.current[e](r),!0}))}r.useImperativeHandle(n,(function(){return{focusVisible:function(){H(!0),K.current.focus()}}}),[]),r.useEffect((function(){Y&&_&&!m&&Q.current.pulsate()}),[m,_,Y]);var X=Z("start",O),$=Z("stop",L),ee=Z("stop",T),te=Z("stop",(function(e){Y&&e.preventDefault(),M&&M(e)})),ne=Z("start",N),re=Z("stop",j),ie=Z("stop",D),oe=Z("stop",(function(e){Y&&(q(e),H(!1)),C&&C(e)}),!1),ae=Nt((function(e){K.current||(K.current=e.currentTarget),V(e)&&(H(!0),E&&E(e)),S&&S(e)})),ue=function(){var e=o.findDOMNode(K.current);return d&&"button"!==d&&!("A"===e.tagName&&e.href)},se=r.useRef(!1),le=Nt((function(e){_&&!se.current&&Y&&Q.current&&" "===e.key&&(se.current=!0,e.persist(),Q.current.stop(e,(function(){Q.current.start(e)}))),e.target===e.currentTarget&&ue()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ue()&&"Enter"===e.key&&!g&&(e.preventDefault(),I&&I(e))})),ce=Nt((function(e){_&&" "===e.key&&Q.current&&Y&&!e.defaultPrevented&&(se.current=!1,e.persist(),Q.current.stop(e,(function(){Q.current.pulsate(e)}))),k&&k(e),I&&e.target===e.currentTarget&&ue()&&" "===e.key&&!e.defaultPrevented&&I(e)})),fe=d;"button"===fe&&F.href&&(fe="a");var pe={};"button"===fe?(pe.type=U,pe.disabled=g):("a"===fe&&F.href||(pe.role="button"),pe["aria-disabled"]=g);var de=Ye(i,t),he=Ye(G,K),ge=Ye(de,he);return r.createElement(fe,Object(p.a)({className:Object(Be.a)(l.root,c,Y&&[l.focusVisible,w],g&&l.disabled),onBlur:oe,onClick:I,onFocus:ae,onKeyDown:le,onKeyUp:ce,onMouseDown:X,onMouseLeave:te,onMouseUp:ee,onDragLeave:$,onTouchEnd:re,onTouchMove:ie,onTouchStart:ne,ref:ge,tabIndex:g?-1:R},pe,F),s,r.createElement(ai,null,m||g?null:r.createElement(xi,Object(p.a)({ref:Q,center:u},B))))})),Oi=Object(Ke.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(ki),Mi=r.forwardRef((function(e,t){var n=e.edge,i=void 0!==n&&n,o=e.children,a=e.classes,u=e.className,s=e.color,l=void 0===s?"default":s,c=e.disabled,f=void 0!==c&&c,d=e.disableFocusRipple,h=void 0!==d&&d,g=e.size,A=void 0===g?"medium":g,m=Object(Re.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return r.createElement(Oi,Object(p.a)({className:Object(Be.a)(a.root,u,"default"!==l&&a["color".concat(Object(Qe.a)(l))],f&&a.disabled,"small"===A&&a["size".concat(Object(Qe.a)(A))],{start:a.edgeStart,end:a.edgeEnd}[i]),centerRipple:!0,focusRipple:!h,disabled:f,ref:t},m),r.createElement("span",{className:a.label},o))})),Ti=Object(Ke.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(ii.b)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(ii.b)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(ii.b)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Mi),ji=r.forwardRef((function(e,t){var n=e.autoFocus,i=e.checked,o=e.checkedIcon,a=e.classes,u=e.className,s=e.defaultChecked,l=e.disabled,c=e.icon,f=e.id,d=e.inputProps,h=e.inputRef,g=e.name,A=e.onBlur,m=e.onChange,v=e.onFocus,y=e.readOnly,b=e.required,_=e.tabIndex,w=e.type,C=e.value,I=Object(Re.a)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),S=On({controlled:i,default:Boolean(s),name:"SwitchBase"}),E=Object(St.a)(S,2),x=E[0],k=E[1],O=dt(),M=l;O&&void 0===M&&(M=O.disabled);var T="checkbox"===w||"radio"===w;return r.createElement(Ti,Object(p.a)({component:"span",className:Object(Be.a)(a.root,u,x&&a.checked,M&&a.disabled),disabled:M,tabIndex:null,role:void 0,onFocus:function(e){v&&v(e),O&&O.onFocus&&O.onFocus(e)},onBlur:function(e){A&&A(e),O&&O.onBlur&&O.onBlur(e)},ref:t},I),r.createElement("input",Object(p.a)({autoFocus:n,checked:i,defaultChecked:s,className:a.input,disabled:M,id:T&&f,name:g,onChange:function(e){var t=e.target.checked;k(t),m&&m(e,t)},readOnly:y,ref:h,required:b,tabIndex:_,type:w,value:C},d)),x?o:c)})),Di=Object(Ke.a)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(ji),Ni=Dn(r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Li=Dn(r.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}));var Pi=Object(Ke.a)((function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}}),{name:"PrivateRadioButtonIcon"})((function(e){var t=e.checked,n=e.classes,i=e.fontSize;return r.createElement("div",{className:Object(Be.a)(n.root,t&&n.checked)},r.createElement(Ni,{fontSize:i}),r.createElement(Li,{fontSize:i,className:n.layer}))}));var Ri=r.createContext();var Bi=r.createElement(Pi,{checked:!0}),zi=r.createElement(Pi,null),Ui=r.forwardRef((function(e,t){var n=e.checked,i=e.classes,o=e.color,a=void 0===o?"secondary":o,u=e.name,s=e.onChange,l=e.size,c=void 0===l?"medium":l,f=Object(Re.a)(e,["checked","classes","color","name","onChange","size"]),d=r.useContext(Ri),h=n,g=Ot(s,d&&d.onChange),A=u;return d&&(void 0===h&&(h=d.value===e.value),void 0===A&&(A=d.name)),r.createElement(Di,Object(p.a)({color:a,type:"radio",icon:r.cloneElement(zi,{fontSize:"small"===c?"small":"default"}),checkedIcon:r.cloneElement(Bi,{fontSize:"small"===c?"small":"default"}),classes:{root:Object(Be.a)(i.root,i["color".concat(Object(Qe.a)(a))]),checked:i.checked,disabled:i.disabled},name:A,checked:h,onChange:g,ref:t},f))})),Fi=Object(Ke.a)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(ii.b)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(ii.b)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})(Ui),Ki=r.forwardRef((function(e,t){var n=e.classes,i=e.className,o=e.row,a=void 0!==o&&o,u=Object(Re.a)(e,["classes","className","row"]);return r.createElement("div",Object(p.a)({className:Object(Be.a)(n.root,i,a&&n.row),ref:t},u))})),Qi=Object(Ke.a)({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(Ki),Wi=r.forwardRef((function(e,t){var n=e.actions,i=e.children,o=e.name,a=e.value,u=e.onChange,s=Object(Re.a)(e,["actions","children","name","value","onChange"]),l=r.useRef(null),c=On({controlled:a,default:e.defaultValue,name:"RadioGroup"}),f=Object(St.a)(c,2),d=f[0],h=f[1];r.useImperativeHandle(n,(function(){return{focus:function(){var e=l.current.querySelector("input:not(:disabled):checked");e||(e=l.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var g=Ye(t,l),A=r.useState(),m=A[0],v=A[1],y=o||m;return r.useEffect((function(){v("mui-radiogroup-".concat(Math.round(1e5*Math.random())))}),[]),r.createElement(Ri.Provider,{value:{name:y,onChange:function(e){h(e.target.value),u&&u(e,e.target.value)},value:d}},r.createElement(Qi,Object(p.a)({role:"radiogroup",ref:g},s),i))})),Yi={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Hi=r.forwardRef((function(e,t){var n=e.align,i=void 0===n?"inherit":n,o=e.classes,a=e.className,u=e.color,s=void 0===u?"initial":u,l=e.component,c=e.display,f=void 0===c?"initial":c,d=e.gutterBottom,h=void 0!==d&&d,g=e.noWrap,A=void 0!==g&&g,m=e.paragraph,v=void 0!==m&&m,y=e.variant,b=void 0===y?"body1":y,_=e.variantMapping,w=void 0===_?Yi:_,C=Object(Re.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),I=l||(v?"p":w[b]||Yi[b])||"span";return r.createElement(I,Object(p.a)({className:Object(Be.a)(o.root,a,"inherit"!==b&&o[b],"initial"!==s&&o["color".concat(Object(Qe.a)(s))],A&&o.noWrap,h&&o.gutterBottom,v&&o.paragraph,"inherit"!==i&&o["align".concat(Object(Qe.a)(i))],"initial"!==f&&o["display".concat(Object(Qe.a)(f))]),ref:t},C))})),Ji=Object(Ke.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Hi),Vi=r.forwardRef((function(e,t){e.checked;var n=e.classes,i=e.className,o=e.control,a=e.disabled,u=(e.inputRef,e.label),s=e.labelPlacement,l=void 0===s?"end":s,c=(e.name,e.onChange,e.value,Object(Re.a)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),f=dt(),d=a;void 0===d&&void 0!==o.props.disabled&&(d=o.props.disabled),void 0===d&&f&&(d=f.disabled);var h={disabled:d};return["checked","name","onChange","value","inputRef"].forEach((function(t){void 0===o.props[t]&&void 0!==e[t]&&(h[t]=e[t])})),r.createElement("label",Object(p.a)({className:Object(Be.a)(n.root,i,"end"!==l&&n["labelPlacement".concat(Object(Qe.a)(l))],d&&n.disabled),ref:t},c),r.cloneElement(o,h),r.createElement(Ji,{component:"span",className:Object(Be.a)(n.label,d&&n.disabled)},u))})),qi=Object(Ke.a)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(Vi);function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xi={header:{display:"flex"},textField:{width:"100%",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",color:"rgba(0,0,0,0.8)",backgroundColor:"#fff"},input:{borderRadius:"0"},container:{padding:"0.5rem"},radioFormLabel:{paddingBottom:"4px"},radioButton:{padding:"4px",paddingLeft:"9px"}},$i=function(e){var t=e.content,n=e.onContentChange,r=function(e){return function(r){var i=r.currentTarget.value;n(function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ro=function(e){var t=e.content,n=e.onSave,r=e.apiKey,o=e.config,a=no(e,["content","onSave","apiKey","config"]),u=t.timelines?t.timelines.split(",").map((function(e){return e.trim()})):[];return i.a.createElement(K,to({Editor:eo,handleSave:function(e){n(e)},content:t},a),i.a.createElement(ri.a,{spreadsheetId:t.spreadsheetId,sheets:u,alignment:t.alignment,interval:t.interval,startYear:t.startYear,apiKey:r,config:o}))};ro.propTypes={content:c.a.shape({spreadsheetId:c.a.string.isRequired,timelines:c.a.string.isRequired,alignment:c.a.string,interval:c.a.string,startYear:c.a.string}).isRequired,config:c.a.object,onSave:c.a.func.isRequired,apiKey:c.a.string.isRequired},ro.defaultProps={content:{spreadsheetId:"1vieT0gVrDOHAvAUW8uUWQZj2heeJr8Xg6bZbvKkFFbQ",timelines:"Toy Story Movies, Jurassic Park Movies, Spiderman Movies"},onSave:function(e){return console.log("Implement a function to save changes!",e)}};var io=ro;function oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ao(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uo={header:{display:"flex"},container:{padding:"0.5rem"},textField:{width:"100%",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",color:"rgba(0,0,0,0.8)",backgroundColor:"#fff"},input:{borderRadius:"0"}},so=function(e){var t=e.content,n=e.onContentChange,r=function(e){return function(r){r.preventDefault(),r.stopPropagation(),n(function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var po=function(e){e.className;var t,n,r,o=fo(e,["className"]),a=o.content,u=a.src,s=a.height,l=a.width,c=(a.allowFullScreen,a.title),f={iframeContainer:{position:"relative",paddingBottom:"".concat(s/l*100,"%"),height:0,overflow:"hidden",width:"100%",maxWidth:"100%"},iframe:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}};return i.a.createElement(K,co({Editor:lo,handleSave:function(e){o.onSave(e)},content:{src:u}},o),i.a.createElement("div",{className:"embedded-iframe",style:f.iframeContainer},i.a.createElement("iframe",(r=c,(n="title")in(t={title:"iframe",src:u,style:f.iframe,frameBorder:"0",allowFullScreen:!0,height:s,width:l})?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))))};po.propTypes={content:c.a.shape({src:c.a.string,height:c.a.string,width:c.a.string,allowFullScreen:c.a.boolean,title:c.a.string}).isRequired,onSave:c.a.func.isRequired},po.defaultProps={content:{src:"https://cdn.knightlab.com/libs/timeline3/latest/embed/index.html?source=1KHAFOibwGI5gqfn9uPGsIRaYUoqB48jtZLJkJhBW_SQ&font=Default&lang=en&initial_zoom=2&height=650",height:"30px",width:"560px",title:"Timeline"},onSave:function(e){return console.log("Implement a function to save changes!",e)}};var ho=po,go=n(97);n(235),n(237);function Ao(e){return(Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mo(){return(mo=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function No(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lo(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var oa={backgroundImg:{imageSrc:"https://www.nomadiclabs.ca/img/nomadic-04.jpg"},title:{text:"Editable Fields Demo!"},textarea:{text:"Check the README on Github for the documentation \n\nHappy editing!"},subtitle:{text:"Go ahead and edit this page!"},paragraph:{text:"

This package makes it easy to implement on-page editing in your awesome React project. Feel free to test it out!

Toggle Show editable fields to switch between the editing interface and the default view.

"},link:{link:"https://github.com/nomadic-labs/react-easy-editables",anchor:"Source code on Github"},image:{imageSrc:"https://placekitten.com/400/300",caption:"Picture of an adorable kitten courtesy of https://placekitten.com"},lightboxImage:{imageSrc:"https://placekitten.com/600/300",caption:"Picture of an adorable kitten courtesy of https://placekitten.com"},file:{filepath:"https://www.nomadiclabs.ca/img/nomadic-04.jpg",filename:"Uploaded file (jpg)"},timeline:{spreadsheetId:"1vieT0gVrDOHAvAUW8uUWQZj2heeJr8Xg6bZbvKkFFbQ",timelines:"Toy Story Movies, Jurassic Park Movies",apiKey:"AIzaSyBT0ozOMS-9tV6HqqMUHsUxqovZ-Jp7UZ8"},youtubeVideo:{src:"https://www.youtube.com/embed/5qap5aO4i9A",title:"lofi hip hop radio",height:"300",width:"560"},collection:{exItem1:{content:{text:"I'm item 1"}},exItem2:{content:{text:"I'm item 2"}}}},aa={content:{text:"I'm a new item!"}},ua=function(e){var t=e.content,n=e.onSave,r=ia(e,["content","onSave"]);return i.a.createElement("div",{className:"demo-items"},i.a.createElement(Ae,ra({content:t,onSave:n},r)))},sa=function(e){return new Promise((function(t){var n=new FileReader;n.addEventListener("load",(function(e){t(e.target.result)})),n.readAsDataURL(e)}))},la=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ta(e,t)}(l,e);var t,n,r,o,a=(t=l,function(){var e,n=ea(t);if($o()){var r=ea(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Zo(this,e)});function l(){var e;qo(this,l);for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var i=Object(r.a)({},t);return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2),i=n(17);function o(e){return e&&"object"===Object(i.a)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?Object(r.a)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n.n(r),o=n(39);function a(){return i.a.useContext(o.a)}},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}n.d(t,"a",(function(){return r}))}]); \ No newline at end of file +*/!function(){"use strict";var i=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:i,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:i&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:i&&!!window.screen};void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dumpClassLists=function(){0};var r={},i={};t.add=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]||(e[t]=0),e[t]+=1}(o,e),n.add(e)}));var n,o},t.remove=function(e,t){return n=e.classList,o="html"==e.nodeName.toLowerCase()?r:i,void t.split(" ").forEach((function(e){!function(e,t){e[t]&&(e[t]-=1)}(o,e),0===o[e]&&n.remove(e)}));var n,o}},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,u=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?u="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(u="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==u){var s=e.displayName||e.name,l="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+l+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==u?"\n "+u:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return a})),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},function(e,t,n){var r=n(37),i=n(236);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(38)(!1)).push([e.i,'@keyframes closeWindow{0%{opacity:1}100%{opacity:0}}.ril__outer{background-color:rgba(0,0,0,0.85);outline:none;top:0;left:0;right:0;bottom:0;z-index:1000;width:100%;height:100%;-ms-content-zooming:none;-ms-user-select:none;-ms-touch-select:none;touch-action:none}.ril__outerClosing{opacity:0}.ril__inner{position:absolute;top:0;left:0;right:0;bottom:0}.ril__image,.ril__imagePrev,.ril__imageNext{position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;max-width:none;-ms-content-zooming:none;-ms-user-select:none;-ms-touch-select:none;touch-action:none}.ril__imageDiscourager{background-repeat:no-repeat;background-position:center;background-size:contain}.ril__navButtons{border:none;position:absolute;top:0;bottom:0;width:20px;height:34px;padding:40px 30px;margin:auto;cursor:pointer;opacity:0.7}.ril__navButtons:hover{opacity:1}.ril__navButtons:active{opacity:0.7}.ril__navButtonPrev{left:0;background:rgba(0,0,0,0.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDE5LDMgLTIsLTIgLTE2LDE2IDE2LDE2IDEsLTEgLTE1LC0xNSAxNSwtMTUgeiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==") no-repeat center}.ril__navButtonNext{right:0;background:rgba(0,0,0,0.2) url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjM0Ij48cGF0aCBkPSJtIDEsMyAyLC0yIDE2LDE2IC0xNiwxNiAtMSwtMSAxNSwtMTUgLTE1LC0xNSB6IiBmaWxsPSIjRkZGIi8+PC9zdmc+") no-repeat center}.ril__downloadBlocker{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");background-size:cover}.ril__caption,.ril__toolbar{background-color:rgba(0,0,0,0.5);position:absolute;left:0;right:0;display:flex;justify-content:space-between}.ril__caption{bottom:0;max-height:150px;overflow:auto}.ril__captionContent{padding:10px 20px;color:#fff}.ril__toolbar{top:0;height:50px}.ril__toolbarSide{height:50px;margin:0}.ril__toolbarLeftSide{padding-left:20px;padding-right:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}.ril__toolbarRightSide{padding-left:0;padding-right:20px;flex:0 0 auto}.ril__toolbarItem{display:inline-block;line-height:50px;padding:0;color:#fff;font-size:120%;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ril__toolbarItemChild{vertical-align:middle}.ril__builtinButton{width:40px;height:35px;cursor:pointer;border:none;opacity:0.7}.ril__builtinButton:hover{opacity:1}.ril__builtinButton:active{outline:none}.ril__builtinButtonDisabled{cursor:default;opacity:0.5}.ril__builtinButtonDisabled:hover{opacity:0.5}.ril__closeButton{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIj48cGF0aCBkPSJtIDEsMyAxLjI1LC0xLjI1IDcuNSw3LjUgNy41LC03LjUgMS4yNSwxLjI1IC03LjUsNy41IDcuNSw3LjUgLTEuMjUsMS4yNSAtNy41LC03LjUgLTcuNSw3LjUgLTEuMjUsLTEuMjUgNy41LC03LjUgLTcuNSwtNy41IHoiIGZpbGw9IiNGRkYiLz48L3N2Zz4=") no-repeat center}.ril__zoomInButton{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PHBhdGggZD0iTTEyIDV2NiIvPjwvZz48Y2lyY2xlIGN4PSIxMiIgY3k9IjgiIHI9IjciIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2ZmZiIgc3Ryb2tlLXdpZHRoPSIyIi8+PC9zdmc+") no-repeat center}.ril__zoomOutButton{background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGcgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCI+PHBhdGggZD0iTTEgMTlsNi02Ii8+PHBhdGggZD0iTTkgOGg2Ii8+PC9nPjxjaXJjbGUgY3g9IjEyIiBjeT0iOCIgcj0iNyIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=") no-repeat center}.ril__outerAnimating{animation-name:closeWindow}@keyframes pointFade{0%,19.999%,100%{opacity:0}20%{opacity:1}}.ril__loadingCircle{width:60px;height:60px;position:relative}.ril__loadingCirclePoint{width:100%;height:100%;position:absolute;left:0;top:0}.ril__loadingCirclePoint::before{content:\'\';display:block;margin:0 auto;width:11%;height:30%;background-color:#fff;border-radius:30%;animation:pointFade 800ms infinite ease-in-out both}.ril__loadingCirclePoint:nth-of-type(1){transform:rotate(0deg)}.ril__loadingCirclePoint:nth-of-type(7){transform:rotate(180deg)}.ril__loadingCirclePoint:nth-of-type(1)::before,.ril__loadingCirclePoint:nth-of-type(7)::before{animation-delay:-800ms}.ril__loadingCirclePoint:nth-of-type(2){transform:rotate(30deg)}.ril__loadingCirclePoint:nth-of-type(8){transform:rotate(210deg)}.ril__loadingCirclePoint:nth-of-type(2)::before,.ril__loadingCirclePoint:nth-of-type(8)::before{animation-delay:-666ms}.ril__loadingCirclePoint:nth-of-type(3){transform:rotate(60deg)}.ril__loadingCirclePoint:nth-of-type(9){transform:rotate(240deg)}.ril__loadingCirclePoint:nth-of-type(3)::before,.ril__loadingCirclePoint:nth-of-type(9)::before{animation-delay:-533ms}.ril__loadingCirclePoint:nth-of-type(4){transform:rotate(90deg)}.ril__loadingCirclePoint:nth-of-type(10){transform:rotate(270deg)}.ril__loadingCirclePoint:nth-of-type(4)::before,.ril__loadingCirclePoint:nth-of-type(10)::before{animation-delay:-400ms}.ril__loadingCirclePoint:nth-of-type(5){transform:rotate(120deg)}.ril__loadingCirclePoint:nth-of-type(11){transform:rotate(300deg)}.ril__loadingCirclePoint:nth-of-type(5)::before,.ril__loadingCirclePoint:nth-of-type(11)::before{animation-delay:-266ms}.ril__loadingCirclePoint:nth-of-type(6){transform:rotate(150deg)}.ril__loadingCirclePoint:nth-of-type(12){transform:rotate(330deg)}.ril__loadingCirclePoint:nth-of-type(6)::before,.ril__loadingCirclePoint:nth-of-type(12)::before{animation-delay:-133ms}.ril__loadingCirclePoint:nth-of-type(7){transform:rotate(180deg)}.ril__loadingCirclePoint:nth-of-type(13){transform:rotate(360deg)}.ril__loadingCirclePoint:nth-of-type(7)::before,.ril__loadingCirclePoint:nth-of-type(13)::before{animation-delay:0ms}.ril__loadingContainer{position:absolute;top:0;right:0;bottom:0;left:0}.ril__imagePrev .ril__loadingContainer,.ril__imageNext .ril__loadingContainer{display:none}.ril__errorContainer{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;color:#fff}.ril__imagePrev .ril__errorContainer,.ril__imageNext .ril__errorContainer{display:none}.ril__loadingContainer__icon{color:#fff;position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%)}\n',""]),e.exports=t},function(e,t,n){var r=n(37),i=n(238);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(38)(!1)).push([e.i,".lightbox-container{position:relative}.lightbox-container .overlay{transition:all 0.3s ease-in;position:absolute;height:100%;width:100%;background:rgba(0,0,0,0.6);opacity:0;color:#fff;display:flex;justify-content:center;align-items:center;font-weight:700;font-size:20px;cursor:pointer}.lightbox-container .overlay:hover,.lightbox-container .overlay:focus{opacity:1}\n",""]),e.exports=t},function(e,t,n){var r=n(37),i=n(240);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[e.i,i,""]]);var o={insert:"head",singleton:!1},a=(r(i,o),i.locals?i.locals:{});e.exports=a},function(e,t,n){(t=n(38)(!1)).push([e.i,"body{margin:0;padding:0;font-family:'Montserrat', 'Helvetica Neue', Arial, sans-serif}h1,h2,h3,h4,h5{margin-top:0}h1{font-size:4rem;color:#008080}a{color:#008080}button.btn{border-radius:22px !important;padding:10px 20px !important;font-weight:700;transition:.3s ease !important;display:inline-block;background:#FF5C45;color:#ffffff;line-height:1.25;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:1px solid transparent;padding:.5rem 1rem;font-size:1rem;font-family:'Montserrat', 'Helvetica Neue', Arial, sans-serif;cursor:pointer}button:focus{outline:none}button.btn.inactive{background:#FF5C45}button.btn.active{background:#008080}.wrapper{max-width:1200px;margin:0 auto}.flex-container{display:flex;flex-wrap:wrap}.flex-item{flex:1 1 40%;min-width:300px;padding:40px}.header-content{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%}.header-content label{margin-left:10px}.demo-items{margin-top:20px;margin-bottom:20px}.youtube-video{display:flex;justify-content:flex-start}.image img{margin-bottom:10px}ul li{margin-bottom:10px}footer{padding:2rem 3rem;background:#FFFACD;text-align:center}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,0.1)}\n",""]),e.exports=t},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),o=n(8),a=n.n(o),u={primaryColor:"#FF6C45",lightColor:"#E5E5E5",fontFamily:"sans-serif",fontSize:14,editContainer:{backgroundColor:"rgba(255,255,255,0.3)",outline:"1px dashed rgba(0,0,0,0.5)",position:"relative",cursor:"pointer",margin:"1px",marginBottom:"12px"},editContainerHighlight:{backgroundColor:"rgba(255,255,255,0.9)",zIndex:"2500",outline:"1px solid #FF6C45"},actions:{position:"absolute",right:"6px",bottom:"-12px",display:"flex",alignItems:"center",zIndex:"99",backgroundColor:"#FF6C45",borderRadius:"30px",padding:"2px",width:"fit-content",height:"fit-content"},button:{margin:"1px",border:"1px solid #000",color:"black",backgroundColor:"#fff",height:"18px",width:"18px",borderRadius:"30px",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center","&:hover":{backgroundColor:"#eee"}},icon:{fontSize:"14px"}},s=i.a.createContext({showEditingControls:!0,theme:u}),l=n(1),c=n.n(l),f=n(100),p=n(2),d=n(39),h=n(275),g=n(41);var A=function(e){var t=e.children,n=e.theme,r=Object(h.a)(),o=i.a.useMemo((function(){var e=null===r?n:function(e,t){return"function"==typeof t?t(e):Object(p.a)({},e,{},t)}(r,n);return null!=e&&(e[g.a]=null!==r),e}),[n,r]);return i.a.createElement(d.a.Provider,{value:o},t)},m=n(95),v=n.n(m),y=n(93),b=n.n(y),_=n(94),w=n.n(_),C=n(91),I=n.n(C);function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function D(e,t){for(var n=0;n=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ge=function(e){e.classes;var t=e.content,n=he(e,["classes","content"]),r=t.text;return i.a.createElement(K,de({Editor:pe,handleSave:function(e){n.onSave(e)},content:t},n),r)};ge.propTypes={content:c.a.shape({text:c.a.string}).isRequired,onSave:c.a.func.isRequired,onDelete:c.a.func,classes:c.a.string,EditorProps:c.a.object,placeholder:c.a.string},ge.defaultProps={content:{text:""},onSave:function(e){return console.log("Implement a function to save changes!",e)}};var Ae=ge;function me(){return(me=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Se={whiteSpace:"pre-wrap"},Ee=function(e){var t=e.classes,n=e.content,r=Ie(e,["classes","content"]),o=n.text;return i.a.createElement(K,Ce({Editor:we,handleSave:function(e){r.onSave(e)},content:n,classes:t},r),i.a.createElement("span",{className:t,style:Se},o))};Ee.propTypes={content:c.a.shape({text:c.a.string}).isRequired,onSave:c.a.func.isRequired,onDelete:c.a.func,classes:c.a.string,EditorProps:c.a.object},Ee.defaultProps={content:{text:""},onSave:function(e){return console.log("Implement a function to save changes!",e)}};var xe=Ee;function ke(){return(ke=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Pe=function(e){var t=e.className,n=Le(e,["className"]),r=n.content.number;return i.a.createElement(K,Ne({Editor:De,handleSave:function(e){n.onSave(e)},content:{number:r}},n),i.a.createElement("span",{className:t},r))};Pe.propTypes={content:c.a.shape({number:c.a.number}).isRequired,onSave:c.a.func.isRequired,classes:c.a.string,EditorProps:c.a.object},Pe.defaultProps={content:{number:""},onSave:function(e){return console.log("Implement a function to save changes!",e)}};var Re=n(3),Be=n(4);function ze(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&void 0===t[n]&&(e[n]=r[n]),e}),{})}var Ue=r.createContext();var Fe=Ue,Ke=n(5),Qe=n(6);function We(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function Ye(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){We(e,n),We(t,n)}}),[e,t])}function He(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o0&&Math.abs((e.outerHeightStyle||0)-p)>1||e.overflow!==d)?(m.current+=1,{overflow:d,outerHeightStyle:p}):e}))}),[o,f,e.placeholder]);r.useEffect((function(){var e=He((function(){m.current=0,_()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[_]),Ve((function(){_()})),r.useEffect((function(){m.current=0}),[l]);return r.createElement(r.Fragment,null,r.createElement("textarea",Object(p.a)({value:l,onChange:function(e){m.current=0,d||_(),n&&n(e)},ref:g,rows:f,style:Object(p.a)({height:y.outerHeightStyle,overflow:y.overflow?"hidden":null},s)},c)),r.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:A,tabIndex:-1,style:Object(p.a)({},qe,{},s)}))}));function Ze(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(Ze(e.value)&&""!==e.value||t&&Ze(e.defaultValue)&&""!==e.defaultValue)}var $e="undefined"==typeof window?r.useEffect:r.useLayoutEffect,et=r.forwardRef((function(e,t){var n=e["aria-describedby"],i=e.autoComplete,o=e.autoFocus,a=e.classes,u=e.className,s=(e.color,e.defaultValue),l=e.disabled,c=e.endAdornment,f=(e.error,e.fullWidth),d=void 0!==f&&f,h=e.id,g=e.inputComponent,A=void 0===g?"input":g,m=e.inputProps,v=void 0===m?{}:m,y=e.inputRef,b=(e.margin,e.multiline),_=void 0!==b&&b,w=e.name,C=e.onBlur,I=e.onChange,S=e.onClick,E=e.onFocus,x=e.onKeyDown,k=e.onKeyUp,O=e.placeholder,M=e.readOnly,T=e.renderSuffix,j=e.rows,D=e.rowsMax,N=e.rowsMin,L=e.startAdornment,P=e.type,R=void 0===P?"text":P,B=e.value,z=Object(Re.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","rowsMax","rowsMin","startAdornment","type","value"]),U=null!=v.value?v.value:B,F=r.useRef(null!=U).current,K=r.useRef(),Q=r.useCallback((function(e){0}),[]),W=Ye(v.ref,Q),Y=Ye(y,W),H=Ye(K,Y),J=r.useState(!1),V=J[0],q=J[1],G=r.useContext(Ue);var Z=ze({props:e,muiFormControl:G,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});Z.focused=G?G.focused:V,r.useEffect((function(){!G&&l&&V&&(q(!1),C&&C())}),[G,l,V,C]);var X=G&&G.onFilled,$=G&&G.onEmpty,ee=r.useCallback((function(e){Xe(e)?X&&X():$&&$()}),[X,$]);$e((function(){F&&ee({value:U})}),[U,ee,F]);r.useEffect((function(){ee(K.current)}),[]);var te=A,ne=Object(p.a)({},v,{ref:H});"string"!=typeof te?ne=Object(p.a)({inputRef:H,type:R},ne,{ref:null}):_?!j||D||N?(ne=Object(p.a)({rows:j,rowsMax:D},ne),te=Ge):te="textarea":ne=Object(p.a)({type:R},ne);return r.useEffect((function(){G&&G.setAdornedStart(Boolean(L))}),[G,L]),r.createElement("div",Object(p.a)({className:Object(Be.a)(a.root,a["color".concat(Object(Qe.a)(Z.color||"primary"))],u,Z.disabled&&a.disabled,Z.error&&a.error,d&&a.fullWidth,Z.focused&&a.focused,G&&a.formControl,_&&a.multiline,L&&a.adornedStart,c&&a.adornedEnd,"dense"===Z.margin&&a.marginDense),onClick:function(e){K.current&&e.currentTarget===e.target&&K.current.focus(),S&&S(e)},ref:t},z),L,r.createElement(Fe.Provider,{value:null},r.createElement(te,Object(p.a)({"aria-invalid":Z.error,"aria-describedby":n,autoComplete:i,autoFocus:o,defaultValue:s,disabled:Z.disabled,id:h,onAnimationStart:function(e){ee("mui-auto-fill-cancel"===e.animationName?K.current:{value:"x"})},name:w,placeholder:O,readOnly:M,required:Z.required,rows:j,value:U,onKeyDown:x,onKeyUp:k},ne,{className:Object(Be.a)(a.input,v.className,Z.disabled&&a.disabled,_&&a.inputMultiline,Z.hiddenLabel&&a.inputHiddenLabel,L&&a.inputAdornedStart,c&&a.inputAdornedEnd,"search"===R&&a.inputTypeSearch,"dense"===Z.margin&&a.inputMarginDense),onBlur:function(e){C&&C(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):q(!1)},onChange:function(e){if(!F){var t=e.target||K.current;if(null==t)throw new TypeError("Material-UI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://material-ui.com/r/input-component-ref-interface for more info.");ee({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0?.75*a+8:.01;return r.createElement("fieldset",Object(p.a)({"aria-hidden":!0,style:Object(p.a)(Object(at.a)({},"padding".concat(Object(Qe.a)(c)),8),s),className:Object(Be.a)(n.root,i),ref:t},l),r.createElement("legend",{className:n.legend,style:{width:u?f:.01}},r.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}})))})),ct=Object(Ke.a)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:0,paddingLeft:8,pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(lt),ft=r.forwardRef((function(e,t){var n=e.classes,i=e.fullWidth,o=void 0!==i&&i,a=e.inputComponent,u=void 0===a?"input":a,s=e.label,l=e.labelWidth,c=void 0===l?0:l,f=e.multiline,d=void 0!==f&&f,h=e.notched,g=e.type,A=void 0===g?"text":g,m=Object(Re.a)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return r.createElement(tt,Object(p.a)({renderSuffix:function(e){return r.createElement(ct,{className:n.notchedOutline,label:s,labelWidth:c,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Object(p.a)({},n,{root:Object(Be.a)(n.root,n.underline),notchedOutline:null}),fullWidth:o,inputComponent:u,multiline:d,ref:t,type:A},m))}));ft.muiName="Input";var pt=Object(Ke.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"dark"===e.palette.type?"0 0 0 100px #266798 inset":null,WebkitTextFillColor:"dark"===e.palette.type?"#fff":null,borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(ft);function dt(){return r.useContext(Fe)}var ht=r.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.className,a=(e.color,e.component),u=void 0===a?"label":a,s=(e.disabled,e.error,e.filled,e.focused,e.required,Object(Re.a)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),l=ze({props:e,muiFormControl:dt(),states:["color","required","focused","disabled","error","filled"]});return r.createElement(u,Object(p.a)({className:Object(Be.a)(i.root,i["color".concat(Object(Qe.a)(l.color||"primary"))],o,l.disabled&&i.disabled,l.error&&i.error,l.filled&&i.filled,l.focused&&i.focused,l.required&&i.required),ref:t},s),n,l.required&&r.createElement("span",{className:Object(Be.a)(i.asterisk,l.error&&i.error)}," ","*"))})),gt=Object(Ke.a)((function(e){return{root:Object(p.a)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(ht),At=r.forwardRef((function(e,t){var n=e.classes,i=e.className,o=e.disableAnimation,a=void 0!==o&&o,u=(e.margin,e.shrink),s=(e.variant,Object(Re.a)(e,["classes","className","disableAnimation","margin","shrink","variant"])),l=dt(),c=u;void 0===c&&l&&(c=l.filled||l.focused||l.adornedStart);var f=ze({props:e,muiFormControl:l,states:["margin","variant"]});return r.createElement(gt,Object(p.a)({"data-shrink":c,className:Object(Be.a)(n.root,i,l&&n.formControl,!a&&n.animated,c&&n.shrink,"dense"===f.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[f.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},s))})),mt=Object(Ke.a)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(At);function vt(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}var yt=r.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.className,a=e.color,u=void 0===a?"primary":a,s=e.component,l=void 0===s?"div":s,c=e.disabled,f=void 0!==c&&c,d=e.error,h=void 0!==d&&d,g=e.fullWidth,A=void 0!==g&&g,m=e.hiddenLabel,v=void 0!==m&&m,y=e.margin,b=void 0===y?"none":y,_=e.required,w=void 0!==_&&_,C=e.size,I=e.variant,S=void 0===I?"standard":I,E=Object(Re.a)(e,["children","classes","className","color","component","disabled","error","fullWidth","hiddenLabel","margin","required","size","variant"]),x=r.useState((function(){var e=!1;return n&&r.Children.forEach(n,(function(t){if(vt(t,["Input","Select"])){var n=vt(t,["Select"])?t.props.input:t;n&&n.props.startAdornment&&(e=!0)}})),e})),k=x[0],O=x[1],M=r.useState((function(){var e=!1;return n&&r.Children.forEach(n,(function(t){vt(t,["Input","Select"])&&Xe(t.props,!0)&&(e=!0)})),e})),T=M[0],j=M[1],D=r.useState(!1),N=D[0],L=D[1];f&&N&&L(!1);var P=r.useCallback((function(){j(!0)}),[]),R={adornedStart:k,setAdornedStart:O,color:u,disabled:f,error:h,filled:T,focused:N,fullWidth:A,hiddenLabel:v,margin:("small"===C?"dense":void 0)||b,onBlur:function(){L(!1)},onEmpty:r.useCallback((function(){j(!1)}),[]),onFilled:P,onFocus:function(){L(!0)},registerEffect:void 0,required:w,variant:S};return r.createElement(Fe.Provider,{value:R},r.createElement(l,Object(p.a)({className:Object(Be.a)(i.root,o,"none"!==b&&i["margin".concat(Object(Qe.a)(b))],A&&i.fullWidth),ref:t},E),n))})),bt=Object(Ke.a)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(yt),_t=r.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.className,a=e.component,u=void 0===a?"p":a,s=(e.disabled,e.error,e.filled,e.focused,e.margin,e.required,e.variant,Object(Re.a)(e,["children","classes","className","component","disabled","error","filled","focused","margin","required","variant"])),l=ze({props:e,muiFormControl:dt(),states:["variant","margin","disabled","error","filled","focused","required"]});return r.createElement(u,Object(p.a)({className:Object(Be.a)(i.root,("filled"===l.variant||"outlined"===l.variant)&&i.contained,o,l.disabled&&i.disabled,l.error&&i.error,l.filled&&i.filled,l.focused&&i.focused,l.required&&i.required,"dense"===l.margin&&i.marginDense),ref:t},s)," "===n?r.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):n)})),wt=Object(Ke.a)((function(e){return{root:Object(p.a)({color:e.palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,margin:0,"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),error:{},disabled:{},marginDense:{marginTop:4},contained:{marginLeft:14,marginRight:14},focused:{},filled:{},required:{}}}),{name:"MuiFormHelperText"})(_t),Ct=n(273),It=n(12),St=n(16),Et=n(17);n(30);function xt(e){return e&&e.ownerDocument||document}function kt(e){return xt(e).defaultView||window}function Ot(){for(var e=arguments.length,t=new Array(e),n=0;n3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Object(It.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&Bt(e,i)}))}function Ft(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function Kt(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=xt(e);return t.body===e?kt(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=Rt();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(zt(o)+a,"px"),n=xt(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(zt(e)+a,"px")}))}var u=o.parentElement,s="HTML"===u.nodeName&&"scroll"===window.getComputedStyle(u)["overflow-y"]?u:o;r.push({value:s.style.overflow,key:"overflow",el:s}),s.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var Qt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return Object(Pt.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&Bt(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);Ut(t,e.mountNode,e.modalRef,r,!0);var i=Ft(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=Ft(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=Kt(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=Ft(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&Bt(e.modalRef,!0),Ut(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&Bt(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var Wt=function(e){var t=e.children,n=e.disableAutoFocus,i=void 0!==n&&n,a=e.disableEnforceFocus,u=void 0!==a&&a,s=e.disableRestoreFocus,l=void 0!==s&&s,c=e.getDoc,f=e.isEnabled,p=e.open,d=r.useRef(),h=r.useRef(null),g=r.useRef(null),A=r.useRef(),m=r.useRef(null),v=r.useCallback((function(e){m.current=o.findDOMNode(e)}),[]),y=Ye(t.ref,v);return r.useMemo((function(){p&&"undefined"!=typeof window&&(A.current=c().activeElement)}),[p]),r.useEffect((function(){if(p){var e=xt(m.current);i||!m.current||m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex",-1),m.current.focus());var t=function(){u||!f()||d.current?d.current=!1:m.current&&!m.current.contains(e.activeElement)&&m.current.focus()},n=function(t){!u&&f()&&9===t.keyCode&&e.activeElement===m.current&&(d.current=!0,t.shiftKey?g.current.focus():h.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var r=setInterval((function(){t()}),50);return function(){clearInterval(r),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),l||(A.current&&A.current.focus&&A.current.focus(),A.current=null)}}}),[i,u,l,f,p]),r.createElement(r.Fragment,null,r.createElement("div",{tabIndex:0,ref:h,"data-test":"sentinelStart"}),r.cloneElement(t,{ref:y}),r.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelEnd"}))},Yt={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},Ht=r.forwardRef((function(e,t){var n=e.invisible,i=void 0!==n&&n,o=e.open,a=Object(Re.a)(e,["invisible","open"]);return o?r.createElement("div",Object(p.a)({"aria-hidden":!0,ref:t},a,{style:Object(p.a)({},Yt.root,{},i?Yt.invisible:{},{},a.style)})):null}));var Jt=new Qt,Vt=r.forwardRef((function(e,t){var n=Object(h.a)(),i=Object(Mt.a)({name:"MuiModal",props:Object(p.a)({},e),theme:n}),a=i.BackdropComponent,u=void 0===a?Ht:a,s=i.BackdropProps,l=i.children,c=i.closeAfterTransition,f=void 0!==c&&c,d=i.container,g=i.disableAutoFocus,A=void 0!==g&&g,m=i.disableBackdropClick,v=void 0!==m&&m,y=i.disableEnforceFocus,b=void 0!==y&&y,_=i.disableEscapeKeyDown,w=void 0!==_&&_,C=i.disablePortal,I=void 0!==C&&C,S=i.disableRestoreFocus,E=void 0!==S&&S,x=i.disableScrollLock,k=void 0!==x&&x,O=i.hideBackdrop,M=void 0!==O&&O,T=i.keepMounted,j=void 0!==T&&T,D=i.manager,N=void 0===D?Jt:D,L=i.onBackdropClick,P=i.onClose,R=i.onEscapeKeyDown,B=i.onRendered,z=i.open,U=Object(Re.a)(i,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),F=r.useState(!0),K=F[0],Q=F[1],W=r.useRef({}),Y=r.useRef(null),H=r.useRef(null),J=Ye(H,t),V=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(i),q=function(){return xt(Y.current)},G=function(){return W.current.modalRef=H.current,W.current.mountNode=Y.current,W.current},Z=function(){N.mount(G(),{disableScrollLock:k}),H.current.scrollTop=0},X=Nt((function(){var e=function(e){return e="function"==typeof e?e():e,o.findDOMNode(e)}(d)||q().body;N.add(G(),e),H.current&&Z()})),$=r.useCallback((function(){return N.isTopModal(G())}),[N]),ee=Nt((function(e){Y.current=e,e&&(B&&B(),z&&$()?Z():Bt(H.current,!0))})),te=r.useCallback((function(){N.remove(G())}),[N]);if(r.useEffect((function(){return function(){te()}}),[te]),r.useEffect((function(){z?X():V&&f||te()}),[z,te,V,f,X]),!j&&!z&&(!V||K))return null;var ne=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:Lt.a}),re={};return void 0===l.props.tabIndex&&(re.tabIndex=l.props.tabIndex||"-1"),V&&(re.onEnter=Ot((function(){Q(!1)}),l.props.onEnter),re.onExited=Ot((function(){Q(!0),f&&te()}),l.props.onExited)),r.createElement(jt,{ref:ee,container:d,disablePortal:I},r.createElement("div",Object(p.a)({ref:J,onKeyDown:function(e){"Escape"===e.key&&$()&&(e.stopPropagation(),R&&R(e),!w&&P&&P(e,"escapeKeyDown"))},role:"presentation"},U,{style:Object(p.a)({},ne.root,{},!z&&K?ne.hidden:{},{},U.style)}),M?null:r.createElement(u,Object(p.a)({open:z,onClick:function(e){e.target===e.currentTarget&&(L&&L(e),!v&&P&&P(e,"backdropClick"))}},s)),r.createElement(Wt,{disableEnforceFocus:b,disableAutoFocus:A,disableRestoreFocus:E,getDoc:q,isEnabled:$,open:z},r.cloneElement(l,re))))})),qt=n(15),Gt=n(18),Zt=!1,Xt=i.a.createContext(null),$t=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i="exited",r.appearStatus="entering"):i="entered":i=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}Object(Gt.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=a.a.findDOMNode(this);"entering"===t?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e,t){var n=this,r=this.props.enter,i=this.context?this.context.isMounting:t,o=this.getTimeouts(),a=i?o.appear:o.enter;!t&&!r||Zt?this.safeSetState({status:"entered"},(function(){n.props.onEntered(e)})):(this.props.onEnter(e,i),this.safeSetState({status:"entering"},(function(){n.props.onEntering(e,i),n.onTransitionEnd(e,a,(function(){n.safeSetState({status:"entered"},(function(){n.props.onEntered(e,i)}))}))})))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n&&!Zt?(this.props.onExit(e),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(e)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=Object(qt.a)(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return i.a.createElement(Xt.Provider,{value:null},n(e,r));var o=i.a.Children.only(n);return i.a.createElement(Xt.Provider,{value:null},i.a.cloneElement(o,r))},t}(i.a.Component);function en(){}$t.contextType=Xt,$t.propTypes={},$t.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:en,onEntering:en,onEntered:en,onExit:en,onExiting:en,onExited:en},$t.UNMOUNTED=0,$t.EXITED=1,$t.ENTERING=2,$t.ENTERED=3,$t.EXITING=4;var tn=$t;function nn(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"==typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}function rn(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var on={entering:{opacity:1,transform:rn(1)},entered:{opacity:1,transform:"none"}},an=r.forwardRef((function(e,t){var n=e.children,i=e.in,o=e.onEnter,a=e.onExit,u=e.style,s=e.timeout,l=void 0===s?"auto":s,c=Object(Re.a)(e,["children","in","onEnter","onExit","style","timeout"]),f=r.useRef(),d=r.useRef(),h=Ye(n.ref,t),g=st();return r.useEffect((function(){return function(){clearTimeout(f.current)}}),[]),r.createElement(tn,Object(p.a)({appear:!0,in:i,onEnter:function(e,t){!function(e){e.scrollTop}(e);var n,r=nn({style:u,timeout:l},{mode:"enter"}),i=r.duration,a=r.delay;"auto"===l?(n=g.transitions.getAutoHeightDuration(e.clientHeight),d.current=n):n=i,e.style.transition=[g.transitions.create("opacity",{duration:n,delay:a}),g.transitions.create("transform",{duration:.666*n,delay:a})].join(","),o&&o(e,t)},onExit:function(e){var t,n=nn({style:u,timeout:l},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===l?(t=g.transitions.getAutoHeightDuration(e.clientHeight),d.current=t):t=r,e.style.transition=[g.transitions.create("opacity",{duration:t,delay:i}),g.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=rn(.75),a&&a(e)},addEndListener:function(e,t){"auto"===l&&(f.current=setTimeout(t,d.current||0))},timeout:"auto"===l?null:l},c),(function(e,t){return r.cloneElement(n,Object(p.a)({style:Object(p.a)({opacity:0,transform:rn(.75),visibility:"exited"!==e||i?void 0:"hidden"},on[e],{},u,{},n.props.style),ref:h},t))}))}));an.muiSupportAuto=!0;var un=an,sn=r.forwardRef((function(e,t){var n=e.classes,i=e.className,o=e.component,a=void 0===o?"div":o,u=e.square,s=void 0!==u&&u,l=e.elevation,c=void 0===l?1:l,f=e.variant,d=void 0===f?"elevation":f,h=Object(Re.a)(e,["classes","className","component","square","elevation","variant"]);return r.createElement(a,Object(p.a)({className:Object(Be.a)(n.root,i,"outlined"===d?n.outlined:n["elevation".concat(c)],!s&&n.rounded),ref:t},h))})),ln=Object(Ke.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(p.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(sn);function cn(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function fn(e,t){var n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function pn(e){return[e.horizontal,e.vertical].map((function(e){return"number"==typeof e?"".concat(e,"px"):e})).join(" ")}function dn(e){return"function"==typeof e?e():e}var hn=r.forwardRef((function(e,t){var n=e.action,i=e.anchorEl,a=e.anchorOrigin,u=void 0===a?{vertical:"top",horizontal:"left"}:a,s=e.anchorPosition,l=e.anchorReference,c=void 0===l?"anchorEl":l,f=e.children,d=e.classes,h=e.className,g=e.container,A=e.elevation,m=void 0===A?8:A,v=e.getContentAnchorEl,y=e.marginThreshold,b=void 0===y?16:y,_=e.onEnter,w=e.onEntered,C=e.onEntering,I=e.onExit,S=e.onExited,E=e.onExiting,x=e.open,k=e.PaperProps,O=void 0===k?{}:k,M=e.transformOrigin,T=void 0===M?{vertical:"top",horizontal:"left"}:M,j=e.TransitionComponent,D=void 0===j?un:j,N=e.transitionDuration,L=void 0===N?"auto":N,P=e.TransitionProps,R=void 0===P?{}:P,B=Object(Re.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),z=r.useRef(),U=r.useCallback((function(e){if("anchorPosition"===c)return s;var t=dn(i),n=(t instanceof kt(t).Element?t:xt(z.current).body).getBoundingClientRect(),r=0===e?u.vertical:"center";return{top:n.top+cn(n,r),left:n.left+fn(n,u.horizontal)}}),[i,u.horizontal,u.vertical,s,c]),F=r.useCallback((function(e){var t=0;if(v&&"anchorEl"===c){var n=v(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[u.vertical,c,v]),K=r.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:cn(e,T.vertical)+t,horizontal:fn(e,T.horizontal)}}),[T.horizontal,T.vertical]),Q=r.useCallback((function(e){var t=F(e),n={width:e.offsetWidth,height:e.offsetHeight},r=K(n,t);if("none"===c)return{top:null,left:null,transformOrigin:pn(r)};var o=U(t),a=o.top-r.vertical,u=o.left-r.horizontal,s=a+n.height,l=u+n.width,f=kt(dn(i)),p=f.innerHeight-b,d=f.innerWidth-b;if(ap){var g=s-p;a-=g,r.vertical+=g}if(ud){var m=l-d;u-=m,r.horizontal+=m}return{top:"".concat(Math.round(a),"px"),left:"".concat(Math.round(u),"px"),transformOrigin:pn(r)}}),[i,c,U,F,K,b]),W=r.useCallback((function(){var e=z.current;if(e){var t=Q(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[Q]),Y=r.useCallback((function(e){z.current=o.findDOMNode(e)}),[]);r.useEffect((function(){x&&W()})),r.useImperativeHandle(n,(function(){return x?{updatePosition:function(){W()}}:null}),[x,W]),r.useEffect((function(){if(x){var e=He((function(){W()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[x,W]);var H=L;"auto"!==L||D.muiSupportAuto||(H=void 0);var J=g||(i?xt(dn(i)).body:void 0);return r.createElement(Vt,Object(p.a)({container:J,open:x,ref:t,BackdropProps:{invisible:!0},className:Object(Be.a)(d.root,h)},B),r.createElement(D,Object(p.a)({appear:!0,in:x,onEnter:_,onEntered:w,onExit:I,onExited:S,onExiting:E,timeout:H},R,{onEntering:Ot((function(e,t){C&&C(e,t),W()}),R.onEntering)}),r.createElement(ln,Object(p.a)({elevation:m,ref:Y},O,{className:Object(Be.a)(d.paper,O.className)}),f)))})),gn=Object(Ke.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(hn);var An=r.createContext({}),mn=r.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.className,a=e.component,u=void 0===a?"ul":a,s=e.dense,l=void 0!==s&&s,c=e.disablePadding,f=void 0!==c&&c,d=e.subheader,h=Object(Re.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),g=r.useMemo((function(){return{dense:l}}),[l]);return r.createElement(An.Provider,{value:g},r.createElement(u,Object(p.a)({className:Object(Be.a)(i.root,o,l&&i.dense,!f&&i.padding,d&&i.subheader),ref:t},h),d,n))})),vn=Object(Ke.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(mn);function yn(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function bn(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function _n(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function wn(e,t,n,r,i,o){for(var a=!1,u=i(e,t,!!t&&n);u;){if(u===e.firstChild){if(a)return;a=!0}var s=!r&&(u.disabled||"true"===u.getAttribute("aria-disabled"));if(u.hasAttribute("tabindex")&&_n(u,o)&&!s)return void u.focus();u=i(e,u,n)}}var Cn="undefined"==typeof window?r.useEffect:r.useLayoutEffect,In=r.forwardRef((function(e,t){var n=e.actions,i=e.autoFocus,a=void 0!==i&&i,u=e.autoFocusItem,s=void 0!==u&&u,l=e.children,c=e.className,f=e.disabledItemsFocusable,d=void 0!==f&&f,h=e.disableListWrap,g=void 0!==h&&h,A=e.onKeyDown,m=e.variant,v=void 0===m?"selectedMenu":m,y=Object(Re.a)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),b=r.useRef(null),_=r.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Cn((function(){a&&b.current.focus()}),[a]),r.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!b.current.style.width;if(e.clientHeight0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var u=r&&!i.repeating&&_n(r,i);i.previousKeyMatched&&(u||wn(t,r,!1,d,yn,i))?e.preventDefault():i.previousKeyMatched=!1}A&&A(e)},tabIndex:a?0:-1},y),I)})),Sn={vertical:"top",horizontal:"right"},En={vertical:"top",horizontal:"left"},xn=r.forwardRef((function(e,t){var n=e.autoFocus,i=void 0===n||n,a=e.children,u=e.classes,s=e.disableAutoFocusItem,l=void 0!==s&&s,c=e.MenuListProps,f=void 0===c?{}:c,d=e.onClose,h=e.onEntering,g=e.open,A=e.PaperProps,m=void 0===A?{}:A,v=e.PopoverClasses,y=e.transitionDuration,b=void 0===y?"auto":y,_=e.variant,w=void 0===_?"selectedMenu":_,C=Object(Re.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","variant"]),I=st(),S=i&&!l&&g,E=r.useRef(null),x=r.useRef(null),k=-1;r.Children.map(a,(function(e,t){r.isValidElement(e)&&(e.props.disabled||("menu"!==w&&e.props.selected||-1===k)&&(k=t))}));var O=r.Children.map(a,(function(e,t){return t===k?r.cloneElement(e,{ref:function(t){x.current=o.findDOMNode(t),We(e.ref,t)}}):e}));return r.createElement(gn,Object(p.a)({getContentAnchorEl:function(){return x.current},classes:v,onClose:d,onEntering:function(e,t){E.current&&E.current.adjustStyleForScrollbar(e,I),h&&h(e,t)},anchorOrigin:"rtl"===I.direction?Sn:En,transformOrigin:"rtl"===I.direction?Sn:En,PaperProps:Object(p.a)({},m,{classes:Object(p.a)({},m.classes,{root:u.paper})}),open:g,ref:t,transitionDuration:b},C),r.createElement(In,Object(p.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),d&&d(e,"tabKeyDown"))},actions:E,autoFocus:i&&(-1===k||l),autoFocusItem:S,variant:w},f,{className:Object(Be.a)(u.list,f.className)}),O))})),kn=Object(Ke.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(xn);function On(e){var t=e.controlled,n=e.default,i=(e.name,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],u=o[1];return[i?t:a,r.useCallback((function(e){i||u(e)}),[])]}function Mn(e,t){return"object"===Object(Et.a)(t)&&null!==t?e===t:String(e)===String(t)}var Tn=r.forwardRef((function(e,t){var n=e.autoFocus,i=e.autoWidth,o=e.children,a=e.classes,u=e.className,s=e.defaultValue,l=e.disabled,c=e.displayEmpty,f=e.IconComponent,d=e.inputRef,h=e.labelId,g=e.MenuProps,A=void 0===g?{}:g,m=e.multiple,v=e.name,y=e.onBlur,b=e.onChange,_=e.onClose,w=e.onFocus,C=e.onOpen,I=e.open,S=e.readOnly,E=e.renderValue,x=(e.required,e.SelectDisplayProps),k=void 0===x?{}:x,O=e.tabIndex,M=(e.type,e.value),T=e.variant,j=void 0===T?"standard":T,D=Object(Re.a)(e,["autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","required","SelectDisplayProps","tabIndex","type","value","variant"]),N=On({controlled:M,default:s,name:"SelectInput"}),L=Object(St.a)(N,2),P=L[0],R=L[1],B=r.useRef(null),z=r.useState(null),U=z[0],F=z[1],K=r.useRef(null!=I).current,Q=r.useState(),W=Q[0],Y=Q[1],H=r.useState(!1),J=H[0],V=H[1],q=Ye(t,d);r.useImperativeHandle(q,(function(){return{focus:function(){U.focus()},node:B.current,value:P}}),[U,P]),r.useEffect((function(){n&&U&&U.focus()}),[n,U]);var G,Z,X=function(e,t){e?C&&C(t):_&&_(t),K||(Y(i?null:U.clientWidth),V(e))},$=function(e){return function(t){var n;if(m||X(!1,t),m){n=Array.isArray(P)?Object(It.a)(P):[];var r=P.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;R(n),b&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:v}}),b(t,e))}},ee=null!==U&&(K?I:J);delete D["aria-invalid"];var te=[],ne=!1;(Xe({value:P})||c)&&(E?G=E(P):ne=!0);var re=r.Children.map(o,(function(e){if(!r.isValidElement(e))return null;var t;if(m){if(!Array.isArray(P))throw new Error("Material-UI: the `value` prop must be an array when using the `Select` component with `multiple`.");(t=P.some((function(t){return Mn(t,e.props.value)})))&&ne&&te.push(e.props.children)}else(t=Mn(P,e.props.value))&&ne&&(Z=e.props.children);return t&&!0,r.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:$(e),onKeyUp:function(t){" "===t.key&&t.preventDefault();var n=e.props.onKeyUp;"function"==typeof n&&n(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ne&&(G=m?te.join(", "):Z);var ie,oe=W;!i&&K&&U&&(oe=U.clientWidth),ie=void 0!==O?O:l?null:0;var ae=k.id||(v?"mui-component-select-".concat(v):void 0);return r.createElement(r.Fragment,null,r.createElement("div",Object(p.a)({className:Object(Be.a)(a.root,a.select,a.selectMenu,a[j],u,l&&a.disabled),ref:F,tabIndex:ie,role:"button","aria-expanded":ee?"true":void 0,"aria-labelledby":"".concat(h||""," ").concat(ae||""),"aria-haspopup":"listbox",onKeyDown:function(e){if(!S){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),X(!0,e))}},onMouseDown:l||S?null:function(e){0===e.button&&(e.preventDefault(),U.focus(),X(!0,e))},onBlur:function(e){!ee&&y&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:P,name:v}}),y(e))},onFocus:w},k,{id:ae}),function(e){return null==e||"string"==typeof e&&!e.trim()}(G)?r.createElement("span",{dangerouslySetInnerHTML:{__html:"​"}}):G),r.createElement("input",Object(p.a)({value:Array.isArray(P)?P.join(","):P,name:v,ref:B,type:"hidden",autoFocus:n},D)),r.createElement(f,{className:Object(Be.a)(a.icon,a["icon".concat(Object(Qe.a)(j))],ee&&a.iconOpen,l&&a.disabled)}),r.createElement(kn,Object(p.a)({id:"menu-".concat(v||""),anchorEl:U,open:ee,onClose:function(e){X(!1,e)}},A,{MenuListProps:Object(p.a)({"aria-labelledby":h,role:"listbox",disableListWrap:!0},A.MenuListProps),PaperProps:Object(p.a)({},A.PaperProps,{style:Object(p.a)({minWidth:oe},null!=A.PaperProps?A.PaperProps.style:null)})}),re))})),jn=n(62);function Dn(e,t){var n=r.memo(r.forwardRef((function(t,n){return r.createElement(jn.a,Object(p.a)({},t,{ref:n}),e)})));return n.muiName=jn.a.muiName,n}var Nn=Dn(r.createElement("path",{d:"M7 10l5 5 5-5z"})),Ln=r.forwardRef((function(e,t){var n=e.classes,i=e.className,o=e.disabled,a=e.IconComponent,u=e.inputRef,s=e.variant,l=void 0===s?"standard":s,c=Object(Re.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return r.createElement(r.Fragment,null,r.createElement("select",Object(p.a)({className:Object(Be.a)(n.root,n.select,n[l],i,o&&n.disabled),disabled:o,ref:u||t},c)),e.multiple?null:r.createElement(a,{className:Object(Be.a)(n.icon,n["icon".concat(Object(Qe.a)(l))],o&&n.disabled)}))})),Pn=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7}}},Rn=r.createElement(rt,null),Bn=r.forwardRef((function(e,t){var n=e.children,i=e.classes,o=e.IconComponent,a=void 0===o?Nn:o,u=e.input,s=void 0===u?Rn:u,l=e.inputProps,c=(e.variant,Object(Re.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),f=ze({props:e,muiFormControl:dt(),states:["variant"]});return r.cloneElement(s,Object(p.a)({inputComponent:Ln,inputProps:Object(p.a)({children:n,classes:i,IconComponent:a,variant:f.variant,type:void 0},l,{},s?s.props.inputProps:{}),ref:t},c))}));Bn.muiName="Select";Object(Ke.a)(Pn,{name:"MuiNativeSelect"})(Bn);var zn=Pn,Un=r.createElement(rt,null),Fn=r.createElement(ot,null),Kn=r.forwardRef((function e(t,n){var i=t.autoWidth,o=void 0!==i&&i,a=t.children,u=t.classes,s=t.displayEmpty,l=void 0!==s&&s,c=t.IconComponent,f=void 0===c?Nn:c,d=t.id,h=t.input,g=t.inputProps,A=t.label,m=t.labelId,v=t.labelWidth,y=void 0===v?0:v,b=t.MenuProps,_=t.multiple,w=void 0!==_&&_,C=t.native,I=void 0!==C&&C,S=t.onClose,E=t.onOpen,x=t.open,k=t.renderValue,O=t.SelectDisplayProps,M=t.variant,T=void 0===M?"standard":M,j=Object(Re.a)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),D=I?Ln:Tn,N=ze({props:t,muiFormControl:dt(),states:["variant"]}).variant||T,L=h||{standard:Un,outlined:r.createElement(pt,{label:A,labelWidth:y}),filled:Fn}[N];return r.cloneElement(L,Object(p.a)({inputComponent:D,inputProps:Object(p.a)({children:a,IconComponent:f,variant:N,type:void 0,multiple:w},I?{id:d}:{autoWidth:o,displayEmpty:l,labelId:m,MenuProps:b,onClose:S,onOpen:E,open:x,renderValue:k,SelectDisplayProps:Object(p.a)({id:d},O)},{},g,{classes:g?Object(Ct.a)({baseClasses:u,newClasses:g.classes,Component:e}):u},h?h.props.inputProps:{}),ref:n},j))}));Kn.muiName="Select";var Qn=Object(Ke.a)(zn,{name:"MuiSelect"})(Kn),Wn={standard:rt,filled:ot,outlined:pt},Yn=r.forwardRef((function(e,t){var n=e.autoComplete,i=e.autoFocus,o=void 0!==i&&i,a=e.children,u=e.classes,s=e.className,l=e.color,c=void 0===l?"primary":l,f=e.defaultValue,d=e.disabled,h=void 0!==d&&d,g=e.error,A=void 0!==g&&g,m=e.FormHelperTextProps,v=e.fullWidth,y=void 0!==v&&v,b=e.helperText,_=e.hiddenLabel,w=e.id,C=e.InputLabelProps,I=e.inputProps,S=e.InputProps,E=e.inputRef,x=e.label,k=e.multiline,O=void 0!==k&&k,M=e.name,T=e.onBlur,j=e.onChange,D=e.onFocus,N=e.placeholder,L=e.required,P=void 0!==L&&L,R=e.rows,B=e.rowsMax,z=e.select,U=void 0!==z&&z,F=e.SelectProps,K=e.type,Q=e.value,W=e.variant,Y=void 0===W?"standard":W,H=Object(Re.a)(e,["autoComplete","autoFocus","children","classes","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","hiddenLabel","id","InputLabelProps","inputProps","InputProps","inputRef","label","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","rowsMax","select","SelectProps","type","value","variant"]);var J={};"outlined"===Y&&(C&&void 0!==C.shrink&&(J.notched=C.shrink),x&&(J.label=r.createElement(r.Fragment,null,x,P&&" *"))),U&&(F&&F.native||(J.id=void 0),J["aria-describedby"]=void 0);var V=b&&w?"".concat(w,"-helper-text"):void 0,q=x&&w?"".concat(w,"-label"):void 0,G=Wn[Y],Z=r.createElement(G,Object(p.a)({"aria-describedby":V,autoComplete:n,autoFocus:o,defaultValue:f,fullWidth:y,multiline:O,name:M,rows:R,rowsMax:B,type:K,value:Q,id:w,inputRef:E,onBlur:T,onChange:j,onFocus:D,placeholder:N,inputProps:I},J,S));return r.createElement(bt,Object(p.a)({className:Object(Be.a)(u.root,s),disabled:h,error:A,fullWidth:y,hiddenLabel:_,ref:t,required:P,color:c,variant:Y},H),x&&r.createElement(mt,Object(p.a)({htmlFor:w,id:q},C),x),U?r.createElement(Qn,Object(p.a)({"aria-describedby":V,id:w,labelId:q,value:Q,input:Z},F),a):Z,b&&r.createElement(wt,Object(p.a)({id:V},m),b))})),Hn=Object(Ke.a)({root:{}},{name:"MuiTextField"})(Yn),Jn=[0,1,2,3,4,5,6,7,8,9,10],Vn=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];function qn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=parseFloat(e);return"".concat(n/t).concat(String(e).replace(String(n),"")||"px")}var Gn=r.forwardRef((function(e,t){var n=e.alignContent,i=void 0===n?"stretch":n,o=e.alignItems,a=void 0===o?"stretch":o,u=e.classes,s=e.className,l=e.component,c=void 0===l?"div":l,f=e.container,d=void 0!==f&&f,h=e.direction,g=void 0===h?"row":h,A=e.item,m=void 0!==A&&A,v=e.justify,y=void 0===v?"flex-start":v,b=e.lg,_=void 0!==b&&b,w=e.md,C=void 0!==w&&w,I=e.sm,S=void 0!==I&&I,E=e.spacing,x=void 0===E?0:E,k=e.wrap,O=void 0===k?"wrap":k,M=e.xl,T=void 0!==M&&M,j=e.xs,D=void 0!==j&&j,N=e.zeroMinWidth,L=void 0!==N&&N,P=Object(Re.a)(e,["alignContent","alignItems","classes","className","component","container","direction","item","justify","lg","md","sm","spacing","wrap","xl","xs","zeroMinWidth"]),R=Object(Be.a)(u.root,s,d&&[u.container,0!==x&&u["spacing-xs-".concat(String(x))]],m&&u.item,L&&u.zeroMinWidth,"row"!==g&&u["direction-xs-".concat(String(g))],"wrap"!==O&&u["wrap-xs-".concat(String(O))],"stretch"!==a&&u["align-items-xs-".concat(String(a))],"stretch"!==i&&u["align-content-xs-".concat(String(i))],"flex-start"!==y&&u["justify-xs-".concat(String(y))],!1!==D&&u["grid-xs-".concat(String(D))],!1!==S&&u["grid-sm-".concat(String(S))],!1!==C&&u["grid-md-".concat(String(C))],!1!==_&&u["grid-lg-".concat(String(_))],!1!==T&&u["grid-xl-".concat(String(T))]);return r.createElement(c,Object(p.a)({className:R,ref:t},P))})),Zn=Object(Ke.a)((function(e){return Object(p.a)({root:{},container:{boxSizing:"border-box",display:"flex",flexWrap:"wrap",width:"100%"},item:{boxSizing:"border-box",margin:"0"},zeroMinWidth:{minWidth:0},"direction-xs-column":{flexDirection:"column"},"direction-xs-column-reverse":{flexDirection:"column-reverse"},"direction-xs-row-reverse":{flexDirection:"row-reverse"},"wrap-xs-nowrap":{flexWrap:"nowrap"},"wrap-xs-wrap-reverse":{flexWrap:"wrap-reverse"},"align-items-xs-center":{alignItems:"center"},"align-items-xs-flex-start":{alignItems:"flex-start"},"align-items-xs-flex-end":{alignItems:"flex-end"},"align-items-xs-baseline":{alignItems:"baseline"},"align-content-xs-center":{alignContent:"center"},"align-content-xs-flex-start":{alignContent:"flex-start"},"align-content-xs-flex-end":{alignContent:"flex-end"},"align-content-xs-space-between":{alignContent:"space-between"},"align-content-xs-space-around":{alignContent:"space-around"},"justify-xs-center":{justifyContent:"center"},"justify-xs-flex-end":{justifyContent:"flex-end"},"justify-xs-space-between":{justifyContent:"space-between"},"justify-xs-space-around":{justifyContent:"space-around"},"justify-xs-space-evenly":{justifyContent:"space-evenly"}},function(e,t){var n={};return Jn.forEach((function(r){var i=e.spacing(r);0!==i&&(n["spacing-".concat(t,"-").concat(r)]={margin:"-".concat(qn(i,2)),width:"calc(100% + ".concat(qn(i),")"),"& > $item":{padding:qn(i,2)}})})),n}(e,"xs"),{},e.breakpoints.keys.reduce((function(t,n){return function(e,t,n){var r={};Vn.forEach((function(e){var t="grid-".concat(n,"-").concat(e);if(!0!==e)if("auto"!==e){var i="".concat(Math.round(e/12*1e8)/1e6,"%");r[t]={flexBasis:i,flexGrow:0,maxWidth:i}}else r[t]={flexBasis:"auto",flexGrow:0,maxWidth:"none"};else r[t]={flexBasis:0,flexGrow:1,maxWidth:"100%"}})),"xs"===n?Object(p.a)(e,r):e[t.breakpoints.up(n)]=r}(t,e,n),t}),{}))}),{name:"MuiGrid"})(Gn);function Xn(){return(Xn=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ar=function(e){var t=e.content,n=e.onSave,r=e.classes,o=or(e,["content","onSave","classes"]),a=t.link,u=t.anchor;return i.a.createElement(K,ir({Editor:rr,handleSave:function(e){n(e)},content:{link:a,anchor:u}},o),i.a.createElement("a",{href:a,className:r},u))};ar.propTypes={content:c.a.shape({anchor:c.a.string,link:c.a.string}).isRequired,onSave:c.a.func.isRequired,classes:c.a.string,EditorProps:c.a.shape({anchor:c.a.object,link:c.a.object})},ar.defaultProps={content:{anchor:"",link:""},onSave:function(e){return console.log("Implement a function to save changes!",e)},EditorProps:{anchor:{},link:{}}};var ur=ar,sr=r.forwardRef((function(e,t){var n=e.classes,i=e.className,o=e.component,a=void 0===o?"div":o,u=e.disableGutters,s=void 0!==u&&u,l=e.fixed,c=void 0!==l&&l,f=e.maxWidth,d=void 0===f?"lg":f,h=Object(Re.a)(e,["classes","className","component","disableGutters","fixed","maxWidth"]);return r.createElement(a,Object(p.a)({className:Object(Be.a)(n.root,i,c&&n.fixed,s&&n.disableGutters,!1!==d&&n["maxWidth".concat(Object(Qe.a)(String(d)))]),ref:t},h))})),lr=Object(Ke.a)((function(e){return{root:Object(at.a)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",paddingLeft:e.spacing(2),paddingRight:e.spacing(2),display:"block"},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),disableGutters:{paddingLeft:0,paddingRight:0},fixed:Object.keys(e.breakpoints.values).reduce((function(t,n){var r=e.breakpoints.values[n];return 0!==r&&(t[e.breakpoints.up(n)]={maxWidth:r}),t}),{}),maxWidthXs:Object(at.a)({},e.breakpoints.up("xs"),{maxWidth:Math.max(e.breakpoints.values.xs,444)}),maxWidthSm:Object(at.a)({},e.breakpoints.up("sm"),{maxWidth:e.breakpoints.values.sm}),maxWidthMd:Object(at.a)({},e.breakpoints.up("md"),{maxWidth:e.breakpoints.values.md}),maxWidthLg:Object(at.a)({},e.breakpoints.up("lg"),{maxWidth:e.breakpoints.values.lg}),maxWidthXl:Object(at.a)({},e.breakpoints.up("xl"),{maxWidth:e.breakpoints.values.xl})}}),{name:"MuiContainer"})(sr);function cr(e){return(cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fr(){return(fr=Object.assign||function(e){for(var t=1;tt.props.maxSize?t.setState({imageError:!0,loading:!1}):t.props.uploadImage(n).then((function(e){t.props.onContentChange(dr({},t.props.content,{image:n,imageSrc:e})),t.setState({preview:e,loading:!1})})):t.setState({loading:!1})})),t.state={loading:!1,imageError:!1,preview:null},t}return n=u,(r=[{key:"render",value:function(){var e=this.props,t=e.showCaption,n=e.editCaption,r=(e.maxSize,e.EditorProps),o=e.content,a=o.caption,u=(o.imageSrc,o.title),s=this.state.preview||"data:image/jpeg;base64,/9j/4QNVRXhpZgAATU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUAAAABAAAAYgEbAAUAAAABAAAAagEoAAMAAAABAAMAAAExAAIAAAAkAAAAcgEyAAIAAAAUAAAAlodpAAQAAAABAAAArAAAANgAEgWsAAAnEAASBawAACcQQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkAMjAyMDowNDowNSAwMDo1NzozMQAAAAADoAEAAwAAAAEAAQAAoAIABAAAAAEAAAAQoAMABAAAAAEAAAAQAAAAAAAAAAYBAwAD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QP1AAAAAABIAC9mZgABAGxmZgAGAAAAAAABAC9mZgABAKGZmgAGAAAAAAABADIAAAABAFoAAAAGAAAAAAABADUAAAABAC0AAAAGAAAAAAABOEJJTQP4AAAAAABwAAD/////////////////////////////A+gAAAAA/////////////////////////////wPoAAAAAP////////////////////////////8D6AAAAAD/////////////////////////////A+gAADhCSU0EAAAAAAAAAgAAOEJJTQQCAAAAAAACAAA4QklNBDAAAAAAAAEBADhCSU0ELQAAAAAABgABAAAAAjhCSU0ECAAAAAAAEAAAAAEAAAJAAAACQAAAAAA4QklNBB4AAAAAAAQAAAAAOEJJTQQaAAAAAANJAAAABgAAAAAAAAAAAAAAEAAAABAAAAAKAFUAbgB0AGkAdABsAGUAZAAtADEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAEAAAAAAABudWxsAAAAAgAAAAZib3VuZHNPYmpjAAAAAQAAAAAAAFJjdDEAAAAEAAAAAFRvcCBsb25nAAAAAAAAAABMZWZ0bG9uZwAAAAAAAAAAQnRvbWxvbmcAAAAQAAAAAFJnaHRsb25nAAAAEAAAAAZzbGljZXNWbExzAAAAAU9iamMAAAABAAAAAAAFc2xpY2UAAAASAAAAB3NsaWNlSURsb25nAAAAAAAAAAdncm91cElEbG9uZwAAAAAAAAAGb3JpZ2luZW51bQAAAAxFU2xpY2VPcmlnaW4AAAANYXV0b0dlbmVyYXRlZAAAAABUeXBlZW51bQAAAApFU2xpY2VUeXBlAAAAAEltZyAAAAAGYm91bmRzT2JqYwAAAAEAAAAAAABSY3QxAAAABAAAAABUb3AgbG9uZwAAAAAAAAAATGVmdGxvbmcAAAAAAAAAAEJ0b21sb25nAAAAEAAAAABSZ2h0bG9uZwAAABAAAAADdXJsVEVYVAAAAAEAAAAAAABudWxsVEVYVAAAAAEAAAAAAABNc2dlVEVYVAAAAAEAAAAAAAZhbHRUYWdUR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yMC0wNC0wNVQwMDo1NzozMS0wNDowMCIgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHN0RXZ0OmNoYW5nZWQ9Ii8iLz4gPC9yZGY6U2VxPiA8L3htcE1NOkhpc3Rvcnk+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDw/eHBhY2tldCBlbmQ9InciPz7/4gxYSUNDX1BST0ZJTEUAAQEAAAxITGlubwIQAABtbnRyUkdCIFhZWiAHzgACAAkABgAxAABhY3NwTVNGVAAAAABJRUMgc1JHQgAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLUhQICAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABFjcHJ0AAABUAAAADNkZXNjAAABhAAAAGx3dHB0AAAB8AAAABRia3B0AAACBAAAABRyWFlaAAACGAAAABRnWFlaAAACLAAAABRiWFlaAAACQAAAABRkbW5kAAACVAAAAHBkbWRkAAACxAAAAIh2dWVkAAADTAAAAIZ2aWV3AAAD1AAAACRsdW1pAAAD+AAAABRtZWFzAAAEDAAAACR0ZWNoAAAEMAAAAAxyVFJDAAAEPAAACAxnVFJDAAAEPAAACAxiVFJDAAAEPAAACAx0ZXh0AAAAAENvcHlyaWdodCAoYykgMTk5OCBIZXdsZXR0LVBhY2thcmQgQ29tcGFueQAAZGVzYwAAAAAAAAASc1JHQiBJRUM2MTk2Ni0yLjEAAAAAAAAAAAAAABJzUkdCIElFQzYxOTY2LTIuMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAWFlaIAAAAAAAAPNRAAEAAAABFsxYWVogAAAAAAAAAAAAAAAAAAAAAFhZWiAAAAAAAABvogAAOPUAAAOQWFlaIAAAAAAAAGKZAAC3hQAAGNpYWVogAAAAAAAAJKAAAA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11zX4Nhk2OjZbNnx2nba+9uA3AXcit0Q3ZbeHN6i3ynfr+A24L3hROHM4lPi2+Nj4+vkc+T85YTmDeaW5x/nqegy6LzpRunQ6lvq5etw6/vshu0R7ZzuKO6070DvzPBY8OXxcvH/8ozzGfOn9DT0wvVQ9d72bfb794r4Gfio+Tj5x/pX+uf7d/wH/Jj9Kf26/kv+3P9t////7gAhQWRvYmUAZIAAAAABAwAQAwIDBgAAAAAAAAAAAAAAAP/bAIQADAgICAkIDAkJDBELCgsRFQ8MDA8VGBMTFRMTGBEMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAENCwsNDg0QDg4QFA4ODhQUDg4ODhQRDAwMDAwREQwMDAwMDBEMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwM/8IAEQgAEAAQAwEiAAIRAQMRAf/EAF4AAQEAAAAAAAAAAAAAAAAAAAAGAQEAAAAAAAAAAAAAAAAAAAAAEAEBAAAAAAAAAAAAAAAAAAAAIBEBAAAAAAAAAAAAAAAAAAAAIBIBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQECEQMRAAAAvgf/2gAIAQIAAQUAf//aAAgBAwABBQB//9oACAEBAAEFAI//2gAIAQICBj8Af//aAAgBAwIGPwB//9oACAEBAQY/AB//2Q==";return i.a.createElement(lr,{maxWidth:"sm"},i.a.createElement(Zn,{container:!0,spacing:1,style:_r.container},i.a.createElement(Zn,{item:!0,xs:12},i.a.createElement("div",{className:"image-preview",style:dr({},_r.preview,{backgroundImage:"url(".concat(s,")")})},i.a.createElement("label",{style:this.state.preview?dr({},_r.button,{background:"#fff"}):_r.button},this.state.loading?i.a.createElement("div",{className:"loader-container"},i.a.createElement("div",{className:"loader"},"loading...")):this.state.preview?"Change image":"Select image",i.a.createElement("input",fr({className:"hidden",hidden:!0,type:"file",accept:"image/*",style:_r.hidden,onChange:this.handleImageChange},r.image)))),this.state.imageError&&i.a.createElement("div",null,"Your file is too big. Please select a file less than ".concat(parseInt(this.props.maxSize)/1048576,"MB."))),i.a.createElement(Zn,{item:!0,xs:12},i.a.createElement(Hn,fr({id:"image-alt-text",label:"Title (alt text)",value:u,onChange:this.handleTitleChange,autoFocus:!0,variant:"outlined",size:"small",margin:"dense",InputProps:{style:_r.input},style:_r.textField},r.anchor)),(t||n)&&i.a.createElement(Hn,fr({id:"image-caption",label:"Caption",value:a,onChange:this.handleCaptionChange,variant:"outlined",size:"small",margin:"dense",InputProps:{style:_r.input},style:_r.textField},r.caption)))))}}])&&hr(n.prototype,r),o&&hr(n,o),u}(i.a.Component);wr.propTypes={content:c.a.shape({imageSrc:c.a.string,caption:c.a.string,title:c.a.string}).isRequired,classes:c.a.string,EditorProps:c.a.shape({image:c.a.object,caption:c.a.object,title:c.a.object}),uploadImage:c.a.func,onContentChange:c.a.func.isRequired},wr.defaultProps={content:{imageSrc:"https://placekitten.com/300/200",caption:"",title:""},EditorProps:{image:{},caption:{},title:{}},uploadImage:function(e){return console.log("Implement a Promise to save file and return URL.",e)},onContentChange:function(e){return console.log("Implement a function to save content changes.",e)}};var Cr=wr;function Ir(){return(Ir=Object.assign||function(e){for(var t=1;tt.props.maxSize?t.setState({fileError:!0,loading:!1}):t.props.uploadFile(n).then((function(e){t.props.onContentChange(Lr({},t.props.content,{file:n,filename:n.name,filepath:e})),t.setState({preview:e,loading:!1})})):t.setState({loading:!1})})),t.state={loading:!1,fileError:!1},t}return n=u,(r=[{key:"render",value:function(){var e=this.props,t=(e.classes,e.EditorProps),n=e.content,r=e.mimetypes,o=(n.filetype,n.filename);return n.filepath,i.a.createElement(Zn,{container:!0,spacing:1,style:Qr.container},i.a.createElement(Zn,{item:!0,xs:12},i.a.createElement("div",{style:Qr.inner},i.a.createElement("label",{style:this.state.preview?Lr({},Qr.button,{background:"#fff"}):Qr.button},this.state.preview?"Change file":"Select file",i.a.createElement("input",Dr({type:"file",hidden:!0,style:Qr.hidden,accept:r,onChange:this.handleFileChange},t))),this.state.fileError&&i.a.createElement("div",null,"Your file is too big. Please select a file less than ".concat(parseInt(this.props.maxSize)/1048576,"MB.")),this.state.loading&&i.a.createElement("div",{className:"loader-container"},i.a.createElement("div",{className:"loader"},"loading...")),this.state.preview&&i.a.createElement("div",{style:Qr.preview},o))))}}])&&Pr(n.prototype,r),o&&Pr(n,o),u}(i.a.Component);Wr.propTypes={content:c.a.shape({file:c.a.object,filename:c.a.string,filepath:c.a.string,caption:c.a.string}).isRequired,uploadFile:c.a.func.isRequired,onContentChange:c.a.func.isRequired,classes:c.a.string,EditorProps:c.a.object,mimetypes:c.a.string},Wr.defaultProps={content:{file:{},filename:"",filepath:"/",caption:""},EditorProps:{},uploadFile:function(e){return console.log("Implement a Promise to save file and return URL.",e)},onContentChange:function(e){return console.log("Implement a function to save content changes.",e)},mimetypes:"application/pdf,application/msword,application/vnd.ms-excel, application/vnd.ms-powerpoint,text/plain,application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.presentationml.slideshow, .csv"};var Yr=Wr;function Hr(){return(Hr=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ei=function(e){var t=e.content,n=e.onSave,r=e.children,o=e.styles,a=e.classes,u=$r(e,["content","onSave","children","styles","classes"]),s=t.imageSrc,l={backgroundImage:"url('".concat(s,"')"),height:"inherit",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:"cover"};return i.a.createElement(K,qr({Editor:Cr,handleSave:function(e){n(e)},content:{imageSrc:s},showCaption:!1,isContentClickTarget:!1,showChildren:!0,fullWidth:!0},u),i.a.createElement("div",{className:a,style:Zr({},l,{},o)},r))};ei.propTypes={content:c.a.shape({imageSrc:c.a.string}).isRequired,onSave:c.a.func.isRequired,onDelete:c.a.func,maxSize:c.a.number,styles:c.a.object,classes:c.a.string,EditorProps:c.a.shape({image:c.a.object})},ei.defaultProps={content:{imageSrc:"data:image/jpeg;base64,/9j/4QTPRXhpZgAATU0AKgAAAAgABwESAAMAAAABAAEAAAEaAAUAAAABAAAAYgEbAAUAAAABAAAAagEoAAMAAAABAAIAAAExAAIAAAAgAAAAcgEyAAIAAAAUAAAAkodpAAQAAAABAAAAqAAAANQACvyAAAAnEAAK/IAAACcQQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKQAyMDE5OjA0OjExIDE0OjU3OjAxAAAAAAOgAQADAAAAAQABAACgAgAEAAAAAQAAAZCgAwAEAAAAAQAAASwAAAAAAAAABgEDAAMAAAABAAYAAAEaAAUAAAABAAABIgEbAAUAAAABAAABKgEoAAMAAAABAAIAAAIBAAQAAAABAAABMgICAAQAAAABAAADlQAAAAAAAABIAAAAAQAAAEgAAAAB/9j/7QAMQWRvYmVfQ00AAf/uAA5BZG9iZQBkgAAAAAH/2wCEAAwICAgJCAwJCQwRCwoLERUPDAwPFRgTExUTExgRDAwMDAwMEQwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBDQsLDQ4NEA4OEBQODg4UFA4ODg4UEQwMDAwMEREMDAwMDAwRDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDP/AABEIAHgAoAMBIgACEQEDEQH/3QAEAAr/xAE/AAABBQEBAQEBAQAAAAAAAAADAAECBAUGBwgJCgsBAAEFAQEBAQEBAAAAAAAAAAEAAgMEBQYHCAkKCxAAAQQBAwIEAgUHBggFAwwzAQACEQMEIRIxBUFRYRMicYEyBhSRobFCIyQVUsFiMzRygtFDByWSU/Dh8WNzNRaisoMmRJNUZEXCo3Q2F9JV4mXys4TD03Xj80YnlKSFtJXE1OT0pbXF1eX1VmZ2hpamtsbW5vY3R1dnd4eXp7fH1+f3EQACAgECBAQDBAUGBwcGBTUBAAIRAyExEgRBUWFxIhMFMoGRFKGxQiPBUtHwMyRi4XKCkkN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T3V0cHV0T3B0aW9ucwAAABcAAAAAQ3B0bmJvb2wAAAAAAENsYnJib29sAAAAAABSZ3NNYm9vbAAAAAAAQ3JuQ2Jvb2wAAAAAAENudENib29sAAAAAABMYmxzYm9vbAAAAAAATmd0dmJvb2wAAAAAAEVtbERib29sAAAAAABJbnRyYm9vbAAAAAAAQmNrZ09iamMAAAABAAAAAAAAUkdCQwAAAAMAAAAAUmQgIGRvdWJAb+AAAAAAAAAAAABHcm4gZG91YkBv4AAAAAAAAAAAAEJsICBkb3ViQG/gAAAAAAAAAAAAQnJkVFVudEYjUmx0AAAAAAAAAAAAAAAAQmxkIFVudEYjUmx0AAAAAAAAAAAAAAAAUnNsdFVudEYjUHhsQFIAAAAAAAAAAAAKdmVjdG9yRGF0YWJvb2wBAAAAAFBnUHNlbnVtAAAAAFBnUHMAAAAAUGdQQwAAAABMZWZ0VW50RiNSbHQAAAAAAAAAAAAAAABUb3AgVW50RiNSbHQAAAAAAAAAAAAAAABTY2wgVW50RiNQcmNAWQAAAAAAAAAAABBjcm9wV2hlblByaW50aW5nYm9vbAAAAAAOY3JvcFJlY3RCb3R0b21sb25nAAAAAAAAAAxjcm9wUmVjdExlZnRsb25nAAAAAAAAAA1jcm9wUmVjdFJpZ2h0bG9uZwAAAAAAAAALY3JvcFJlY3RUb3Bsb25nAAAAAAA4QklNA+0AAAAAABAASAAAAAEAAQBIAAAAAQABOEJJTQQmAAAAAAAOAAAAAAAAAAAAAD+AAAA4QklNBA0AAAAAAAQAAAB4OEJJTQQZAAAAAAAEAAAAHjhCSU0D8wAAAAAACQAAAAAAAAAAAQA4QklNJxAAAAAAAAoAAQAAAAAAAAABOEJJTQP1AAAAAABIAC9mZgABAGxmZgAGAAAAAAABAC9mZgABAKGZmgAGAAAAAAABADIAAAABAFoAAAAGAAAAAAABADUAAAABAC0AAAAGAAAAAAABOEJJTQP4AAAAAABwAAD/////////////////////////////A+gAAAAA/////////////////////////////wPoAAAAAP////////////////////////////8D6AAAAAD/////////////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OEIiIHN0RXZ0OndoZW49IjIwMTktMDQtMTFUMTQ6NTc6MDEtMDQ6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDUzYgKE1hY2ludG9zaCkiLz4gPHJkZjpsaSBzdEV2dDphY3Rpb249InNhdmVkIiBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOkEyQkI4MzREMzUyMDY4MTE4M0QxRTQ5REY2QjUzOThCIiBzdEV2dDp3aGVuPSIyMDE5LTA0LTExVDE0OjU3OjAxLTA0OjAwIiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJBZG9iZSBQaG90b3Nob3AgQ1M2IChNYWNpbnRvc2gpIiBzdEV2dDpjaGFuZ2VkPSIvIi8+IDwvcmRmOlNlcT4gPC94bXBNTTpIaXN0b3J5PiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8P3hwYWNrZXQgZW5kPSJ3Ij8+/+IMWElDQ19QUk9GSUxFAAEBAAAMSExpbm8CEAAAbW50clJHQiBYWVogB84AAgAJAAYAMQAAYWNzcE1TRlQAAAAASUVDIHNSR0IAAAAAAAAAAAAAAAEAAPbWAAEAAAAA0y1IUCAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARY3BydAAAAVAAAAAzZGVzYwAAAYQAAABsd3RwdAAAAfAAAAAUYmtwdAAAAgQAAAAUclhZWgAAAhgAAAAUZ1hZWgAAAiwAAAAUYlhZWgAAAkAAAAAUZG1uZAAAAlQAAABwZG1kZAAAAsQAAACIdnVlZAAAA0wAAACGdmlldwAAA9QAAAAkbHVtaQAAA/gAAAAUbWVhcwAABAwAAAAkdGVjaAAABDAAAAAMclRSQwAABDwAAAgMZ1RSQwAABDwAAAgMYlRSQwAABDwAAAgMdGV4dAAAAABDb3B5cmlnaHQgKGMpIDE5OTggSGV3bGV0dC1QYWNrYXJk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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/aAAgBAgABBQBt/wD/2gAIAQMAAQUAbf8A/9oACAEBAAEFALbP/9oACAECAgY/AG3/AP/aAAgBAwIGPwBt/wD/2gAIAQEBBj8AbZ//2Q=="},onSave:function(e){return console.log("Implement a function to save changes!",e)},maxSize:2097152,styles:{},EditorProps:{image:{}}};var ti=ei,ni=(n(115),n(96)),ri=n.n(ni),ii=n(11),oi="undefined"!=typeof window?r.useLayoutEffect:r.useEffect;var ai=function(e){var t=e.children,n=e.defer,i=void 0!==n&&n,o=e.fallback,a=void 0===o?null:o,u=r.useState(!1),s=u[0],l=u[1];return oi((function(){i||l(!0)}),[i]),r.useEffect((function(){i&&l(!0)}),[i]),r.createElement(r.Fragment,null,s?t:a)},ui=!0,si=!1,li=null,ci={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 fi(e){e.metaKey||e.altKey||e.ctrlKey||(ui=!0)}function pi(){ui=!1}function di(){"hidden"===this.visibilityState&&si&&(ui=!0)}function hi(e){var t,n,r,i=e.target;try{return i.matches(":focus-visible")}catch(e){}return ui||(n=(t=i).type,!("INPUT"!==(r=t.tagName)||!ci[n]||t.readOnly)||"TEXTAREA"===r&&!t.readOnly||!!t.isContentEditable)}function gi(){si=!0,window.clearTimeout(li),li=window.setTimeout((function(){si=!1}),100)}function Ai(){return{isFocusVisible:hi,onBlurVisible:gi,ref:r.useCallback((function(e){var t,n=o.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",fi,!0),t.addEventListener("mousedown",pi,!0),t.addEventListener("pointerdown",pi,!0),t.addEventListener("touchstart",pi,!0),t.addEventListener("visibilitychange",di,!0))}),[])}}var mi=n(22);function vi(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(r.isValidElement)(e)?t(e):e}(e)})),n}function yi(e,t,n){return null!=n[t]?n[t]:e.props[t]}function bi(e,t,n){var i=vi(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var u={};for(var s in t){if(i[s])for(r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,o=void 0!==r&&r,a=t.center,u=void 0===a?i||t.pulsate:a,s=t.fakeElement,l=void 0!==s&&s;if("mousedown"===e.type&&h.current)h.current=!1;else{"touchstart"===e.type&&(h.current=!0);var c,f,p,d=l?null:m.current,y=d?d.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(u||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(y.width/2),f=Math.round(y.height/2);else{var b=e.clientX?e.clientX:e.touches[0].clientX,_=e.clientY?e.clientY:e.touches[0].clientY;c=Math.round(b-y.left),f=Math.round(_-y.top)}if(u)(p=Math.sqrt((2*Math.pow(y.width,2)+Math.pow(y.height,2))/3))%2==0&&(p+=1);else{var w=2*Math.max(Math.abs((d?d.clientWidth:0)-c),c)+2,C=2*Math.max(Math.abs((d?d.clientHeight:0)-f),f)+2;p=Math.sqrt(Math.pow(w,2)+Math.pow(C,2))}e.touches?null===A.current&&(A.current=function(){v({pulsate:o,rippleX:c,rippleY:f,rippleSize:p,cb:n})},g.current=setTimeout((function(){A.current&&(A.current(),A.current=null)}),80)):v({pulsate:o,rippleX:c,rippleY:f,rippleSize:p,cb:n})}}),[i,v]),b=r.useCallback((function(){y({},{pulsate:!0})}),[y]),_=r.useCallback((function(e,t){if(clearTimeout(g.current),"touchend"===e.type&&A.current)return e.persist(),A.current(),A.current=null,void(g.current=setTimeout((function(){_(e,t)})));A.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return r.useImperativeHandle(t,(function(){return{pulsate:b,start:y,stop:_}}),[b,y,_]),r.createElement("span",Object(p.a)({className:Object(Be.a)(o.root,a),ref:m},u),r.createElement(Ci,{component:null,exit:!0},l))})),xi=Object(Ke.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(r.memo(Ei)),ki=r.forwardRef((function(e,t){var n=e.action,i=e.buttonRef,a=e.centerRipple,u=void 0!==a&&a,s=e.children,l=e.classes,c=e.className,f=e.component,d=void 0===f?"button":f,h=e.disabled,g=void 0!==h&&h,A=e.disableRipple,m=void 0!==A&&A,v=e.disableTouchRipple,y=void 0!==v&&v,b=e.focusRipple,_=void 0!==b&&b,w=e.focusVisibleClassName,C=e.onBlur,I=e.onClick,S=e.onFocus,E=e.onFocusVisible,x=e.onKeyDown,k=e.onKeyUp,O=e.onMouseDown,M=e.onMouseLeave,T=e.onMouseUp,j=e.onTouchEnd,D=e.onTouchMove,N=e.onTouchStart,L=e.onDragLeave,P=e.tabIndex,R=void 0===P?0:P,B=e.TouchRippleProps,z=e.type,U=void 0===z?"button":z,F=Object(Re.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),K=r.useRef(null);var Q=r.useRef(null),W=r.useState(!1),Y=W[0],H=W[1];g&&Y&&H(!1);var J=Ai(),V=J.isFocusVisible,q=J.onBlurVisible,G=J.ref;function Z(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:y;return Nt((function(r){return t&&t(r),!n&&Q.current&&Q.current[e](r),!0}))}r.useImperativeHandle(n,(function(){return{focusVisible:function(){H(!0),K.current.focus()}}}),[]),r.useEffect((function(){Y&&_&&!m&&Q.current.pulsate()}),[m,_,Y]);var X=Z("start",O),$=Z("stop",L),ee=Z("stop",T),te=Z("stop",(function(e){Y&&e.preventDefault(),M&&M(e)})),ne=Z("start",N),re=Z("stop",j),ie=Z("stop",D),oe=Z("stop",(function(e){Y&&(q(e),H(!1)),C&&C(e)}),!1),ae=Nt((function(e){K.current||(K.current=e.currentTarget),V(e)&&(H(!0),E&&E(e)),S&&S(e)})),ue=function(){var e=o.findDOMNode(K.current);return d&&"button"!==d&&!("A"===e.tagName&&e.href)},se=r.useRef(!1),le=Nt((function(e){_&&!se.current&&Y&&Q.current&&" "===e.key&&(se.current=!0,e.persist(),Q.current.stop(e,(function(){Q.current.start(e)}))),e.target===e.currentTarget&&ue()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ue()&&"Enter"===e.key&&!g&&(e.preventDefault(),I&&I(e))})),ce=Nt((function(e){_&&" "===e.key&&Q.current&&Y&&!e.defaultPrevented&&(se.current=!1,e.persist(),Q.current.stop(e,(function(){Q.current.pulsate(e)}))),k&&k(e),I&&e.target===e.currentTarget&&ue()&&" "===e.key&&!e.defaultPrevented&&I(e)})),fe=d;"button"===fe&&F.href&&(fe="a");var pe={};"button"===fe?(pe.type=U,pe.disabled=g):("a"===fe&&F.href||(pe.role="button"),pe["aria-disabled"]=g);var de=Ye(i,t),he=Ye(G,K),ge=Ye(de,he);return r.createElement(fe,Object(p.a)({className:Object(Be.a)(l.root,c,Y&&[l.focusVisible,w],g&&l.disabled),onBlur:oe,onClick:I,onFocus:ae,onKeyDown:le,onKeyUp:ce,onMouseDown:X,onMouseLeave:te,onMouseUp:ee,onDragLeave:$,onTouchEnd:re,onTouchMove:ie,onTouchStart:ne,ref:ge,tabIndex:g?-1:R},pe,F),s,r.createElement(ai,null,m||g?null:r.createElement(xi,Object(p.a)({ref:Q,center:u},B))))})),Oi=Object(Ke.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(ki),Mi=r.forwardRef((function(e,t){var n=e.edge,i=void 0!==n&&n,o=e.children,a=e.classes,u=e.className,s=e.color,l=void 0===s?"default":s,c=e.disabled,f=void 0!==c&&c,d=e.disableFocusRipple,h=void 0!==d&&d,g=e.size,A=void 0===g?"medium":g,m=Object(Re.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return r.createElement(Oi,Object(p.a)({className:Object(Be.a)(a.root,u,"default"!==l&&a["color".concat(Object(Qe.a)(l))],f&&a.disabled,"small"===A&&a["size".concat(Object(Qe.a)(A))],{start:a.edgeStart,end:a.edgeEnd}[i]),centerRipple:!0,focusRipple:!h,disabled:f,ref:t},m),r.createElement("span",{className:a.label},o))})),Ti=Object(Ke.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(ii.b)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(ii.b)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(ii.b)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(Mi),ji=r.forwardRef((function(e,t){var n=e.autoFocus,i=e.checked,o=e.checkedIcon,a=e.classes,u=e.className,s=e.defaultChecked,l=e.disabled,c=e.icon,f=e.id,d=e.inputProps,h=e.inputRef,g=e.name,A=e.onBlur,m=e.onChange,v=e.onFocus,y=e.readOnly,b=e.required,_=e.tabIndex,w=e.type,C=e.value,I=Object(Re.a)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),S=On({controlled:i,default:Boolean(s),name:"SwitchBase"}),E=Object(St.a)(S,2),x=E[0],k=E[1],O=dt(),M=l;O&&void 0===M&&(M=O.disabled);var T="checkbox"===w||"radio"===w;return r.createElement(Ti,Object(p.a)({component:"span",className:Object(Be.a)(a.root,u,x&&a.checked,M&&a.disabled),disabled:M,tabIndex:null,role:void 0,onFocus:function(e){v&&v(e),O&&O.onFocus&&O.onFocus(e)},onBlur:function(e){A&&A(e),O&&O.onBlur&&O.onBlur(e)},ref:t},I),r.createElement("input",Object(p.a)({autoFocus:n,checked:i,defaultChecked:s,className:a.input,disabled:M,id:T&&f,name:g,onChange:function(e){var t=e.target.checked;k(t),m&&m(e,t)},readOnly:y,ref:h,required:b,tabIndex:_,type:w,value:C},d)),x?o:c)})),Di=Object(Ke.a)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(ji),Ni=Dn(r.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Li=Dn(r.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}));var Pi=Object(Ke.a)((function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}}),{name:"PrivateRadioButtonIcon"})((function(e){var t=e.checked,n=e.classes,i=e.fontSize;return r.createElement("div",{className:Object(Be.a)(n.root,t&&n.checked)},r.createElement(Ni,{fontSize:i}),r.createElement(Li,{fontSize:i,className:n.layer}))}));var Ri=r.createContext();var Bi=r.createElement(Pi,{checked:!0}),zi=r.createElement(Pi,null),Ui=r.forwardRef((function(e,t){var n=e.checked,i=e.classes,o=e.color,a=void 0===o?"secondary":o,u=e.name,s=e.onChange,l=e.size,c=void 0===l?"medium":l,f=Object(Re.a)(e,["checked","classes","color","name","onChange","size"]),d=r.useContext(Ri),h=n,g=Ot(s,d&&d.onChange),A=u;return d&&(void 0===h&&(h=d.value===e.value),void 0===A&&(A=d.name)),r.createElement(Di,Object(p.a)({color:a,type:"radio",icon:r.cloneElement(zi,{fontSize:"small"===c?"small":"default"}),checkedIcon:r.cloneElement(Bi,{fontSize:"small"===c?"small":"default"}),classes:{root:Object(Be.a)(i.root,i["color".concat(Object(Qe.a)(a))]),checked:i.checked,disabled:i.disabled},name:A,checked:h,onChange:g,ref:t},f))})),Fi=Object(Ke.a)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(ii.b)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(ii.b)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})(Ui),Ki=r.forwardRef((function(e,t){var n=e.classes,i=e.className,o=e.row,a=void 0!==o&&o,u=Object(Re.a)(e,["classes","className","row"]);return r.createElement("div",Object(p.a)({className:Object(Be.a)(n.root,i,a&&n.row),ref:t},u))})),Qi=Object(Ke.a)({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(Ki),Wi=r.forwardRef((function(e,t){var n=e.actions,i=e.children,o=e.name,a=e.value,u=e.onChange,s=Object(Re.a)(e,["actions","children","name","value","onChange"]),l=r.useRef(null),c=On({controlled:a,default:e.defaultValue,name:"RadioGroup"}),f=Object(St.a)(c,2),d=f[0],h=f[1];r.useImperativeHandle(n,(function(){return{focus:function(){var e=l.current.querySelector("input:not(:disabled):checked");e||(e=l.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var g=Ye(t,l),A=r.useState(),m=A[0],v=A[1],y=o||m;return r.useEffect((function(){v("mui-radiogroup-".concat(Math.round(1e5*Math.random())))}),[]),r.createElement(Ri.Provider,{value:{name:y,onChange:function(e){h(e.target.value),u&&u(e,e.target.value)},value:d}},r.createElement(Qi,Object(p.a)({role:"radiogroup",ref:g},s),i))})),Yi={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Hi=r.forwardRef((function(e,t){var n=e.align,i=void 0===n?"inherit":n,o=e.classes,a=e.className,u=e.color,s=void 0===u?"initial":u,l=e.component,c=e.display,f=void 0===c?"initial":c,d=e.gutterBottom,h=void 0!==d&&d,g=e.noWrap,A=void 0!==g&&g,m=e.paragraph,v=void 0!==m&&m,y=e.variant,b=void 0===y?"body1":y,_=e.variantMapping,w=void 0===_?Yi:_,C=Object(Re.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),I=l||(v?"p":w[b]||Yi[b])||"span";return r.createElement(I,Object(p.a)({className:Object(Be.a)(o.root,a,"inherit"!==b&&o[b],"initial"!==s&&o["color".concat(Object(Qe.a)(s))],A&&o.noWrap,h&&o.gutterBottom,v&&o.paragraph,"inherit"!==i&&o["align".concat(Object(Qe.a)(i))],"initial"!==f&&o["display".concat(Object(Qe.a)(f))]),ref:t},C))})),Ji=Object(Ke.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Hi),Vi=r.forwardRef((function(e,t){e.checked;var n=e.classes,i=e.className,o=e.control,a=e.disabled,u=(e.inputRef,e.label),s=e.labelPlacement,l=void 0===s?"end":s,c=(e.name,e.onChange,e.value,Object(Re.a)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),f=dt(),d=a;void 0===d&&void 0!==o.props.disabled&&(d=o.props.disabled),void 0===d&&f&&(d=f.disabled);var h={disabled:d};return["checked","name","onChange","value","inputRef"].forEach((function(t){void 0===o.props[t]&&void 0!==e[t]&&(h[t]=e[t])})),r.createElement("label",Object(p.a)({className:Object(Be.a)(n.root,i,"end"!==l&&n["labelPlacement".concat(Object(Qe.a)(l))],d&&n.disabled),ref:t},c),r.cloneElement(o,h),r.createElement(Ji,{component:"span",className:Object(Be.a)(n.label,d&&n.disabled)},u))})),qi=Object(Ke.a)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}),{name:"MuiFormControlLabel"})(Vi);function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Xi={header:{display:"flex"},textField:{width:"100%",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",color:"rgba(0,0,0,0.8)",backgroundColor:"#fff"},input:{borderRadius:"0"},container:{padding:"0.5rem"},radioFormLabel:{paddingBottom:"4px"},radioButton:{padding:"4px",paddingLeft:"9px"}},$i=function(e){var t=e.content,n=e.onContentChange,r=function(e){return function(r){var i=r.currentTarget.value;n(function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ro=function(e){var t=e.content,n=e.onSave,r=e.apiKey,o=e.config,a=no(e,["content","onSave","apiKey","config"]),u=t.timelines?t.timelines.split(",").map((function(e){return e.trim()})):[];return i.a.createElement(K,to({Editor:eo,handleSave:function(e){n(e)},content:t},a),i.a.createElement(ri.a,{spreadsheetId:t.spreadsheetId,sheets:u,alignment:t.alignment,interval:t.interval,startYear:t.startYear,apiKey:r,config:o}))};ro.propTypes={content:c.a.shape({spreadsheetId:c.a.string.isRequired,timelines:c.a.string.isRequired,alignment:c.a.string,interval:c.a.string,startYear:c.a.string}).isRequired,config:c.a.object,onSave:c.a.func.isRequired,apiKey:c.a.string.isRequired},ro.defaultProps={content:{spreadsheetId:"1vieT0gVrDOHAvAUW8uUWQZj2heeJr8Xg6bZbvKkFFbQ",timelines:"Toy Story Movies, Jurassic Park Movies, Spiderman Movies"},onSave:function(e){return console.log("Implement a function to save changes!",e)}};function io(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ao={header:{display:"flex"},container:{padding:"0.5rem"},textField:{width:"100%",fontSize:"inherit",fontFamily:"inherit",fontWeight:"inherit",color:"rgba(0,0,0,0.8)",backgroundColor:"#fff"},input:{borderRadius:"0"}},uo=function(e){var t=e.content,n=e.onContentChange,r=function(e){return function(r){r.preventDefault(),r.stopPropagation(),n(function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var fo=function(e){e.className;var t,n,r,o=co(e,["className"]),a=o.content,u=a.src,s=a.height,l=a.width,c=(a.allowFullScreen,a.title),f={iframeContainer:{position:"relative",paddingBottom:"".concat(s/l*100,"%"),height:0,overflow:"hidden",width:"100%",maxWidth:"100%"},iframe:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}};return i.a.createElement(K,lo({Editor:so,handleSave:function(e){o.onSave(e)},content:{src:u}},o),i.a.createElement("div",{className:"embedded-iframe",style:f.iframeContainer},i.a.createElement("iframe",(r=c,(n="title")in(t={title:"iframe",src:u,style:f.iframe,frameBorder:"0",allowFullScreen:!0,height:s,width:l})?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))))};fo.propTypes={content:c.a.shape({src:c.a.string,height:c.a.string,width:c.a.string,allowFullScreen:c.a.boolean,title:c.a.string}).isRequired,onSave:c.a.func.isRequired},fo.defaultProps={content:{src:"https://cdn.knightlab.com/libs/timeline3/latest/embed/index.html?source=1KHAFOibwGI5gqfn9uPGsIRaYUoqB48jtZLJkJhBW_SQ&font=Default&lang=en&initial_zoom=2&height=650",height:"30px",width:"560px",title:"Timeline"},onSave:function(e){return console.log("Implement a function to save changes!",e)}};var po=fo,ho=n(97);n(235),n(237);function go(e){return(go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ao(){return(Ao=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Do(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function No(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ia={backgroundImg:{imageSrc:"https://www.nomadiclabs.ca/img/nomadic-04.jpg"},title:{text:"Editable Fields Demo!"},textarea:{text:"Check the README on Github for the documentation \n\nHappy editing!"},subtitle:{text:"Go ahead and edit this page!"},paragraph:{text:"

This package makes it easy to implement on-page editing in your awesome React project. Feel free to test it out!

Toggle Show editable fields to switch between the editing interface and the default view.

"},link:{link:"https://github.com/nomadic-labs/react-easy-editables",anchor:"Source code on Github"},image:{imageSrc:"https://placekitten.com/400/300",caption:"Picture of an adorable kitten courtesy of https://placekitten.com"},lightboxImage:{imageSrc:"https://placekitten.com/600/300",caption:"Picture of an adorable kitten courtesy of https://placekitten.com"},file:{filepath:"https://www.nomadiclabs.ca/img/nomadic-04.jpg",filename:"Uploaded file (jpg)"},timeline:{spreadsheetId:"1vieT0gVrDOHAvAUW8uUWQZj2heeJr8Xg6bZbvKkFFbQ",timelines:"Toy Story Movies, Jurassic Park Movies",apiKey:"AIzaSyBT0ozOMS-9tV6HqqMUHsUxqovZ-Jp7UZ8"},youtubeVideo:{src:"https://www.youtube.com/embed/5qap5aO4i9A",title:"lofi hip hop radio",height:"300",width:"560"},collection:{exItem1:{content:{text:"I'm item 1"}},exItem2:{content:{text:"I'm item 2"}}}},oa={content:{text:"I'm a new item!"}},aa=function(e){var t=e.content,n=e.onSave,r=ra(e,["content","onSave"]);return i.a.createElement("div",{className:"demo-items"},i.a.createElement(Ae,na({content:t,onSave:n},r)))},ua=function(e){return new Promise((function(t){var n=new FileReader;n.addEventListener("load",(function(e){t(e.target.result)})),n.readAsDataURL(e)}))},sa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ea(e,t)}(l,e);var t,n,r,o,a=(t=l,function(){var e,n=$o(t);if(Xo()){var r=$o(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return Go(this,e)});function l(){var e;Vo(this,l);for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var i=Object(r.a)({},t);return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2),i=n(17);function o(e){return e&&"object"===Object(i.a)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?Object(r.a)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n.n(r),o=n(39);function a(){return i.a.useContext(o.a)}},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}n.d(t,"a",(function(){return r}))}]); \ No newline at end of file