forked from bombastictranz/builder.io
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
01daa01c49ae8a0a6a1f440852d6ebeb129a5ad5.1b0327f85e759079eddb.js.download
1 lines (1 loc) · 11.5 KB
/
01daa01c49ae8a0a6a1f440852d6ebeb129a5ad5.1b0327f85e759079eddb.js.download
1
(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[8],{"5AJ6":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("wx14"),o=n("FdF9"),i=n("HR5l");function a(e,t){var n=function(t,n){return o.default.createElement(i.a,Object(r.a)({ref:n},t),e)};return n.muiName=i.a.muiName,o.default.memo(o.default.forwardRef(n))}},Ovef:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("FdF9"),o="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function i(e){var t=r.useRef(e);return o((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},"VD++":function(e,t,n){"use strict";var r=n("wx14"),o=n("Ff2n"),i=n("FdF9"),a=(n("17x9"),n("iuhU")),u=n("bfFb"),c=n("Ovef"),l=n("H2TA"),s=n("G7As"),p=n("KQm4"),f=n("zLVn"),d=n("JX7q"),h=n("dI71"),b=n("0PSK");function m(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(i.isValidElement)(e)?t(e):e}(e)})),n}function v(e,t,n){return null!=n[t]?n[t]:e.props[t]}function y(e,t,n){var r=m(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var u={};for(var c in t){if(o[c])for(r=0;r<o[c].length;r++){var l=o[c][r];u[o[c][r]]=n(l)}u[c]=n(c)}for(r=0;r<i.length;r++)u[i[r]]=n(i[r]);return u}(t,r);return Object.keys(o).forEach((function(a){var u=o[a];if(Object(i.isValidElement)(u)){var c=a in t,l=a in r,s=t[a],p=Object(i.isValidElement)(s)&&!s.props.in;!l||c&&!p?l||!c||p?l&&c&&Object(i.isValidElement)(s)&&(o[a]=Object(i.cloneElement)(u,{onExited:n.bind(null,u),in:s.props.in,exit:v(u,"exit",e),enter:v(u,"enter",e)})):o[a]=Object(i.cloneElement)(u,{in:!1}):o[a]=Object(i.cloneElement)(u,{onExited:n.bind(null,u),in:!0,exit:v(u,"exit",e),enter:v(u,"enter",e)})}})),o}var g=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},E=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(Object(d.a)(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}Object(h.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,m(n.children,(function(e){return Object(i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:v(e,"appear",n),enter:v(e,"enter",n),exit:v(e,"exit",n)})}))):y(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=m(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=Object(r.a)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Object(f.a)(e,["component","childFactory"]),o=this.state.contextValue,a=g(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.default.createElement(b.a.Provider,{value:o},a):i.default.createElement(b.a.Provider,{value:o},i.default.createElement(t,r,a))},t}(i.default.Component);E.propTypes={},E.defaultProps={component:"div",childFactory:function(e){return e}};var O=E,j="undefined"===typeof window?i.useEffect:i.useLayoutEffect;var w=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,o=e.rippleX,u=e.rippleY,l=e.rippleSize,s=e.in,p=e.onExited,f=void 0===p?function(){}:p,d=e.timeout,h=i.useState(!1),b=h[0],m=h[1],v=Object(a.a)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),y={width:l,height:l,top:-l/2+u,left:-l/2+o},g=Object(a.a)(t.child,b&&t.childLeaving,r&&t.childPulsate),E=Object(c.a)(f);return j((function(){if(!s){m(!0);var e=setTimeout(E,d);return function(){clearTimeout(e)}}}),[E,s,d]),i.createElement("span",{className:v,style:y},i.createElement("span",{className:g}))},x=i.forwardRef((function(e,t){var n=e.center,u=void 0!==n&&n,c=e.classes,l=e.className,s=Object(o.a)(e,["center","classes","className"]),f=i.useState([]),d=f[0],h=f[1],b=i.useRef(0),m=i.useRef(null);i.useEffect((function(){m.current&&(m.current(),m.current=null)}),[d]);var v=i.useRef(!1),y=i.useRef(null),g=i.useRef(null),E=i.useRef(null);i.useEffect((function(){return function(){clearTimeout(y.current)}}),[]);var j=i.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,o=e.rippleSize,a=e.cb;h((function(e){return[].concat(Object(p.a)(e),[i.createElement(w,{key:b.current,classes:c,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:o})])})),b.current+=1,m.current=a}),[c]),x=i.useCallback((function(){var e=arguments.length>0&&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,i=t.center,a=void 0===i?u||t.pulsate:i,c=t.fakeElement,l=void 0!==c&&c;if("mousedown"===e.type&&v.current)v.current=!1;else{"touchstart"===e.type&&(v.current=!0);var s,p,f,d=l?null:E.current,h=d?d.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(a||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)s=Math.round(h.width/2),p=Math.round(h.height/2);else{var b=e.touches?e.touches[0]:e,m=b.clientX,O=b.clientY;s=Math.round(m-h.left),p=Math.round(O-h.top)}if(a)(f=Math.sqrt((2*Math.pow(h.width,2)+Math.pow(h.height,2))/3))%2===0&&(f+=1);else{var w=2*Math.max(Math.abs((d?d.clientWidth:0)-s),s)+2,x=2*Math.max(Math.abs((d?d.clientHeight:0)-p),p)+2;f=Math.sqrt(Math.pow(w,2)+Math.pow(x,2))}e.touches?null===g.current&&(g.current=function(){j({pulsate:o,rippleX:s,rippleY:p,rippleSize:f,cb:n})},y.current=setTimeout((function(){g.current&&(g.current(),g.current=null)}),80)):j({pulsate:o,rippleX:s,rippleY:p,rippleSize:f,cb:n})}}),[u,j]),R=i.useCallback((function(){x({},{pulsate:!0})}),[x]),k=i.useCallback((function(e,t){if(clearTimeout(y.current),"touchend"===e.type&&g.current)return e.persist(),g.current(),g.current=null,void(y.current=setTimeout((function(){k(e,t)})));g.current=null,h((function(e){return e.length>0?e.slice(1):e})),m.current=t}),[]);return i.useImperativeHandle(t,(function(){return{pulsate:R,start:x,stop:k}}),[R,x,k]),i.createElement("span",Object(r.a)({className:Object(a.a)(c.root,l),ref:E},s),i.createElement(O,{component:null,exit:!0},d))})),R=Object(l.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"})(i.memo(x)),k=i.forwardRef((function(e,t){var n=e.action,l=e.buttonRef,p=e.centerRipple,f=void 0!==p&&p,d=e.children,h=e.classes,b=e.className,m=e.component,v=void 0===m?"button":m,y=e.disabled,g=void 0!==y&&y,E=e.disableRipple,O=void 0!==E&&E,j=e.disableTouchRipple,w=void 0!==j&&j,x=e.focusRipple,k=void 0!==x&&x,M=e.focusVisibleClassName,T=e.onBlur,V=e.onClick,D=e.onFocus,C=e.onFocusVisible,F=e.onKeyDown,S=e.onKeyUp,N=e.onMouseDown,P=e.onMouseLeave,I=e.onMouseUp,L=e.onTouchEnd,z=e.onTouchMove,X=e.onTouchStart,K=e.onDragLeave,U=e.tabIndex,A=void 0===U?0:U,B=e.TouchRippleProps,H=e.type,Y=void 0===H?"button":H,J=Object(o.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"]),W=i.useRef(null);var $=i.useRef(null),_=i.useState(!1),q=_[0],G=_[1];g&&q&&G(!1);var Q=Object(s.a)(),Z=Q.isFocusVisible,ee=Q.onBlurVisible,te=Q.ref;function ne(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;return Object(c.a)((function(r){return t&&t(r),!n&&$.current&&$.current[e](r),!0}))}i.useImperativeHandle(n,(function(){return{focusVisible:function(){G(!0),W.current.focus()}}}),[]),i.useEffect((function(){q&&k&&!O&&$.current.pulsate()}),[O,k,q]);var re=ne("start",N),oe=ne("stop",K),ie=ne("stop",I),ae=ne("stop",(function(e){q&&e.preventDefault(),P&&P(e)})),ue=ne("start",X),ce=ne("stop",L),le=ne("stop",z),se=ne("stop",(function(e){q&&(ee(e),G(!1)),T&&T(e)}),!1),pe=Object(c.a)((function(e){W.current||(W.current=e.currentTarget),Z(e)&&(G(!0),C&&C(e)),D&&D(e)})),fe=function(){var e=i.findDOMNode(W.current);return v&&"button"!==v&&!("A"===e.tagName&&e.href)},de=i.useRef(!1),he=Object(c.a)((function(e){k&&!de.current&&q&&$.current&&" "===e.key&&(de.current=!0,e.persist(),$.current.stop(e,(function(){$.current.start(e)}))),e.target===e.currentTarget&&fe()&&" "===e.key&&e.preventDefault(),F&&F(e),e.target===e.currentTarget&&fe()&&"Enter"===e.key&&!g&&(e.preventDefault(),V&&V(e))})),be=Object(c.a)((function(e){k&&" "===e.key&&$.current&&q&&!e.defaultPrevented&&(de.current=!1,e.persist(),$.current.stop(e,(function(){$.current.pulsate(e)}))),S&&S(e),V&&e.target===e.currentTarget&&fe()&&" "===e.key&&!e.defaultPrevented&&V(e)})),me=v;"button"===me&&J.href&&(me="a");var ve={};"button"===me?(ve.type=Y,ve.disabled=g):("a"===me&&J.href||(ve.role="button"),ve["aria-disabled"]=g);var ye=Object(u.a)(l,t),ge=Object(u.a)(te,W),Ee=Object(u.a)(ye,ge),Oe=i.useState(!1),je=Oe[0],we=Oe[1];i.useEffect((function(){we(!0)}),[]);var xe=je&&!O&&!g;return i.createElement(me,Object(r.a)({className:Object(a.a)(h.root,b,q&&[h.focusVisible,M],g&&h.disabled),onBlur:se,onClick:V,onFocus:pe,onKeyDown:he,onKeyUp:be,onMouseDown:re,onMouseLeave:ae,onMouseUp:ie,onDragLeave:oe,onTouchEnd:ce,onTouchMove:le,onTouchStart:ue,ref:Ee,tabIndex:g?-1:A},ve,J),d,xe?i.createElement(R,Object(r.a)({ref:$,center:f},B)):null)}));t.a=Object(l.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"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(k)},"g+pH":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("gk1O");function o(e){return Object(r.a)(e).defaultView||window}},gk1O:function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},l3Wi:function(e,t,n){"use strict";function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=this,u=function(){e.apply(a,o)};clearTimeout(t),t=setTimeout(u,n)}return r.clear=function(){clearTimeout(t)},r}n.d(t,"a",(function(){return r}))}}]);