@ozo/react-rock
Version:
React 移动端开发脚手架,基于CRA3,通用、开箱即用。
3 lines • 18.9 kB
JavaScript
/*! For license information please see 5a67.d0627f78.chunk.js.LICENSE.txt */
(this["webpackJsonp@ozo/react-rock"]=this["webpackJsonp@ozo/react-rock"]||[]).push([["5a67"],{"6C/C":function(e,t,o){"use strict";var n=o("wx14"),a=o("DSFK"),r=o("25BE"),i=o("BsWD"),c=o("PYwp");var s=o("ODXe"),l=o("Ff2n"),d=o("q1tI"),u=(o("USxY"),o("17x9"),o("iuhU")),p=o("kfZ5"),f=o("H2TA"),m=o("wpWl"),b=o("4Hym"),h=o("tr08"),g=o("bfFb"),y=d.forwardRef((function(e,t){var o=e.children,a=e.classes,r=e.className,i=e.collapsedHeight,c=void 0===i?"0px":i,f=e.component,y=void 0===f?"div":f,v=e.disableStrictModeCompat,x=void 0!==v&&v,O=e.in,j=e.onEnter,C=e.onEntered,E=e.onEntering,S=e.onExit,w=e.onExited,R=e.onExiting,N=e.style,I=e.timeout,$=void 0===I?m.b.standard:I,k=e.TransitionComponent,A=void 0===k?p.a:k,T=Object(l.a)(e,["children","classes","className","collapsedHeight","component","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),M=Object(h.a)(),B=d.useRef(),F=d.useRef(null),D=d.useRef(),P="number"===typeof c?"".concat(c,"px"):c;d.useEffect((function(){return function(){clearTimeout(B.current)}}),[]);var q=M.unstable_strictMode&&!x,H=d.useRef(null),L=Object(g.a)(t,q?H:void 0),z=function(e){return function(t,o){if(e){var n=q?[H.current,t]:[t,o],a=Object(s.a)(n,2),r=a[0],i=a[1];void 0===i?e(r):e(r,i)}}},V=z((function(e,t){e.style.height=P,j&&j(e,t)})),W=z((function(e,t){var o=F.current?F.current.clientHeight:0,n=Object(b.a)({style:N,timeout:$},{mode:"enter"}).duration;if("auto"===$){var a=M.transitions.getAutoHeightDuration(o);e.style.transitionDuration="".concat(a,"ms"),D.current=a}else e.style.transitionDuration="string"===typeof n?n:"".concat(n,"ms");e.style.height="".concat(o,"px"),E&&E(e,t)})),U=z((function(e,t){e.style.height="auto",C&&C(e,t)})),_=z((function(e){var t=F.current?F.current.clientHeight:0;e.style.height="".concat(t,"px"),S&&S(e)})),G=z(w),J=z((function(e){var t=F.current?F.current.clientHeight:0,o=Object(b.a)({style:N,timeout:$},{mode:"exit"}).duration;if("auto"===$){var n=M.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(n,"ms"),D.current=n}else e.style.transitionDuration="string"===typeof o?o:"".concat(o,"ms");e.style.height=P,R&&R(e)}));return d.createElement(A,Object(n.a)({in:O,onEnter:V,onEntered:U,onEntering:W,onExit:_,onExited:G,onExiting:J,addEndListener:function(e,t){var o=q?e:t;"auto"===$&&(B.current=setTimeout(o,D.current||0))},nodeRef:q?H:void 0,timeout:"auto"===$?null:$},T),(function(e,t){return d.createElement(y,Object(n.a)({className:Object(u.a)(a.container,r,{entered:a.entered,exited:!O&&"0px"===P&&a.hidden}[e]),style:Object(n.a)({minHeight:P},N),ref:L},t),d.createElement("div",{className:a.wrapper,ref:F},d.createElement("div",{className:a.wrapperInner},o)))}))}));y.muiSupportAuto=!0;var v=Object(f.a)((function(e){return{container:{height:0,overflow:"hidden",transition:e.transitions.create("height")},entered:{height:"auto",overflow:"visible"},hidden:{visibility:"hidden"},wrapper:{display:"flex"},wrapperInner:{width:"100%"}}}),{name:"MuiCollapse"})(y),x=o("kKAo"),O=o("A7vI");var j=d.forwardRef((function(e,t){var o,p=e.children,f=e.classes,m=e.className,b=e.defaultExpanded,h=void 0!==b&&b,g=e.disabled,y=void 0!==g&&g,j=e.expanded,C=e.onChange,E=e.square,S=void 0!==E&&E,w=e.TransitionComponent,R=void 0===w?v:w,N=e.TransitionProps,I=Object(l.a)(e,["children","classes","className","defaultExpanded","disabled","expanded","onChange","square","TransitionComponent","TransitionProps"]),$=function(e){var t=e.controlled,o=e.default,n=(e.name,e.state,d.useRef(void 0!==t).current),a=d.useState(o),r=a[0],i=a[1];return[n?t:r,d.useCallback((function(e){n||i(e)}),[])]}({controlled:j,default:h,name:"Accordion",state:"expanded"}),k=Object(s.a)($,2),A=k[0],T=k[1],M=d.useCallback((function(e){T(!A),C&&C(e,!A)}),[A,C,T]),B=d.Children.toArray(p),F=(o=B,Object(a.a)(o)||Object(r.a)(o)||Object(i.a)(o)||Object(c.a)()),D=F[0],P=F.slice(1),q=d.useMemo((function(){return{expanded:A,disabled:y,toggle:M}}),[A,y,M]);return d.createElement(x.a,Object(n.a)({className:Object(u.a)(f.root,m,A&&f.expanded,y&&f.disabled,!S&&f.rounded),ref:t,square:S},I),d.createElement(O.a.Provider,{value:q},D),d.createElement(R,Object(n.a)({in:A,timeout:"auto"},N),d.createElement("div",{"aria-labelledby":D.props.id,id:D.props["aria-controls"],role:"region"},P)))}));t.a=Object(f.a)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{position:"relative",transition:e.transitions.create(["margin"],t),"&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:e.palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-child":{"&:before":{display:"none"}},"&$expanded":{margin:"16px 0","&:first-child":{marginTop:0},"&:last-child":{marginBottom:0},"&:before":{opacity:0}},"&$expanded + &":{"&:before":{display:"none"}},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},rounded:{borderRadius:0,"&:first-child":{borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius},"&:last-child":{borderBottomLeftRadius:e.shape.borderRadius,borderBottomRightRadius:e.shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},expanded:{},disabled:{}}}),{name:"MuiAccordion"})(j)},A7vI:function(e,t,o){"use strict";var n=o("q1tI"),a=n.createContext({});t.a=a},Kpcq:function(e,t,o){"use strict";var n=o("wx14"),a=o("Ff2n"),r=o("q1tI"),i=(o("17x9"),o("iuhU")),c=o("H2TA"),s=r.forwardRef((function(e,t){var o=e.classes,c=e.className,s=Object(a.a)(e,["classes","className"]);return(r.createElement("div",Object(n.a)({className:Object(i.a)(o.root,c),ref:t},s)))}));t.a=Object(c.a)((function(e){return{root:{display:"flex",padding:e.spacing(1,2,2)}}}),{name:"MuiAccordionDetails"})(s)},LvTE:function(e,t,o){"use strict";var n=o("wx14"),a=o("Ff2n"),r=o("q1tI"),i=(o("17x9"),o("iuhU")),c=o("VD++"),s=o("H2TA"),l=o("ye/S"),d=o("NqtD"),u=r.forwardRef((function(e,t){var o=e.edge,s=void 0!==o&&o,l=e.children,u=e.classes,p=e.className,f=e.color,m=void 0===f?"default":f,b=e.disabled,h=void 0!==b&&b,g=e.disableFocusRipple,y=void 0!==g&&g,v=e.size,x=void 0===v?"medium":v,O=Object(a.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return(r.createElement(c.a,Object(n.a)({className:Object(i.a)(u.root,p,"default"!==m&&u["color".concat(Object(d.a)(m))],h&&u.disabled,"small"===x&&u["size".concat(Object(d.a)(x))],{start:u.edgeStart,end:u.edgeEnd}[s]),centerRipple:!0,focusRipple:!y,disabled:h,ref:t},O),r.createElement("span",{className:u.label},l)))})),p=Object(s.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(l.c)(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(l.c)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(l.c)(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"})(u),f=o("A7vI"),m=r.forwardRef((function(e,t){var o=e.children,s=e.classes,l=e.className,d=e.expandIcon,u=e.IconButtonProps,m=e.onBlur,b=e.onClick,h=e.onFocusVisible,g=Object(a.a)(e,["children","classes","className","expandIcon","IconButtonProps","onBlur","onClick","onFocusVisible"]),y=r.useState(!1),v=y[0],x=y[1],O=r.useContext(f.a),j=O.disabled,C=void 0!==j&&j,E=O.expanded,S=O.toggle;return r.createElement(c.a,Object(n.a)({focusRipple:!1,disableRipple:!0,disabled:C,component:"div","aria-expanded":E,className:Object(i.a)(s.root,l,C&&s.disabled,E&&s.expanded,v&&s.focused),onFocusVisible:function(e){x(!0),h&&h(e)},onBlur:function(e){x(!1),m&&m(e)},onClick:function(e){S&&S(e),b&&b(e)},ref:t},g),r.createElement("div",{className:Object(i.a)(s.content,E&&s.expanded)},o),d&&r.createElement(p,Object(n.a)({className:Object(i.a)(s.expandIcon,E&&s.expanded),edge:"end",component:"div",tabIndex:null,role:null,"aria-hidden":!0},u),d))}));t.a=Object(s.a)((function(e){var t={duration:e.transitions.duration.shortest};return{root:{display:"flex",minHeight:48,transition:e.transitions.create(["min-height","background-color"],t),padding:e.spacing(0,2),"&:hover:not($disabled)":{cursor:"pointer"},"&$expanded":{minHeight:64},"&$focused":{backgroundColor:e.palette.action.focus},"&$disabled":{opacity:e.palette.action.disabledOpacity}},expanded:{},focused:{},disabled:{},content:{display:"flex",flexGrow:1,transition:e.transitions.create(["margin"],t),margin:"12px 0","&$expanded":{margin:"20px 0"}},expandIcon:{transform:"rotate(0deg)",transition:e.transitions.create("transform",t),"&:hover":{backgroundColor:"transparent"},"&$expanded":{transform:"rotate(180deg)"}}}}),{name:"MuiAccordionSummary"})(m)},MquD:function(e,t,o){"use strict";var n=o("q1tI"),a=n.createContext({});t.a=a},USxY:function(e,t,o){"use strict";e.exports=o("r2IW")},"eD//":function(e,t,o){"use strict";var n=o("wx14"),a=o("Ff2n"),r=o("q1tI"),i=(o("17x9"),o("iuhU")),c=o("H2TA"),s=o("MquD"),l=r.forwardRef((function(e,t){var o=e.children,c=e.classes,l=e.className,d=e.component,u=void 0===d?"ul":d,p=e.dense,f=void 0!==p&&p,m=e.disablePadding,b=void 0!==m&&m,h=e.subheader,g=Object(a.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),y=r.useMemo((function(){return{dense:f}}),[f]);return r.createElement(s.a.Provider,{value:y},r.createElement(u,Object(n.a)({className:Object(i.a)(c.root,l,f&&c.dense,!b&&c.padding,h&&c.subheader),ref:t},g),h,o))}));t.a=Object(c.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(l)},ofer:function(e,t,o){"use strict";var n=o("wx14"),a=o("Ff2n"),r=o("q1tI"),i=(o("17x9"),o("iuhU")),c=o("H2TA"),s=o("NqtD"),l={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},d=r.forwardRef((function(e,t){var o=e.align,c=void 0===o?"inherit":o,d=e.classes,u=e.className,p=e.color,f=void 0===p?"initial":p,m=e.component,b=e.display,h=void 0===b?"initial":b,g=e.gutterBottom,y=void 0!==g&&g,v=e.noWrap,x=void 0!==v&&v,O=e.paragraph,j=void 0!==O&&O,C=e.variant,E=void 0===C?"body1":C,S=e.variantMapping,w=void 0===S?l:S,R=Object(a.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),N=m||(j?"p":w[E]||l[E])||"span";return r.createElement(N,Object(n.a)({className:Object(i.a)(d.root,u,"inherit"!==E&&d[E],"initial"!==f&&d["color".concat(Object(s.a)(f))],x&&d.noWrap,y&&d.gutterBottom,j&&d.paragraph,"inherit"!==c&&d["align".concat(Object(s.a)(c))],"initial"!==h&&d["display".concat(Object(s.a)(h))]),ref:t},R))}));t.a=Object(c.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"})(d)},r2IW:function(e,t,o){"use strict";var n="function"===typeof Symbol&&Symbol.for,a=n?Symbol.for("react.element"):60103,r=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,c=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,d=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,m=n?Symbol.for("react.suspense"):60113,b=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,x=n?Symbol.for("react.responder"):60118,O=n?Symbol.for("react.scope"):60119;function j(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case u:case p:case i:case s:case c:case m:return e;default:switch(e=e&&e.$$typeof){case d:case f:case g:case h:case l:return e;default:return t}}case r:return t}}}function C(e){return j(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=d,t.ContextProvider=l,t.Element=a,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=r,t.Profiler=s,t.StrictMode=c,t.Suspense=m,t.isAsyncMode=function(e){return C(e)||j(e)===u},t.isConcurrentMode=C,t.isContextConsumer=function(e){return j(e)===d},t.isContextProvider=function(e){return j(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return j(e)===f},t.isFragment=function(e){return j(e)===i},t.isLazy=function(e){return j(e)===g},t.isMemo=function(e){return j(e)===h},t.isPortal=function(e){return j(e)===r},t.isProfiler=function(e){return j(e)===s},t.isStrictMode=function(e){return j(e)===c},t.isSuspense=function(e){return j(e)===m},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===p||e===s||e===c||e===m||e===b||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===d||e.$$typeof===f||e.$$typeof===v||e.$$typeof===x||e.$$typeof===O||e.$$typeof===y)},t.typeOf=j},tVbE:function(e,t,o){"use strict";var n=o("wx14"),a=o("Ff2n"),r=o("q1tI"),i=(o("17x9"),o("iuhU")),c=o("H2TA"),s=o("VD++");var l=o("bfFb"),d=o("MquD"),u=o("i8i4"),p="undefined"===typeof window?r.useEffect:r.useLayoutEffect,f=r.forwardRef((function(e,t){var o=e.alignItems,c=void 0===o?"center":o,f=e.autoFocus,m=void 0!==f&&f,b=e.button,h=void 0!==b&&b,g=e.children,y=e.classes,v=e.className,x=e.component,O=e.ContainerComponent,j=void 0===O?"li":O,C=e.ContainerProps,E=(C=void 0===C?{}:C).className,S=Object(a.a)(C,["className"]),w=e.dense,R=void 0!==w&&w,N=e.disabled,I=void 0!==N&&N,$=e.disableGutters,k=void 0!==$&&$,A=e.divider,T=void 0!==A&&A,M=e.focusVisibleClassName,B=e.selected,F=void 0!==B&&B,D=Object(a.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),P=r.useContext(d.a),q={dense:R||P.dense||!1,alignItems:c},H=r.useRef(null);p((function(){m&&H.current&&H.current.focus()}),[m]);var L,z,V=r.Children.toArray(g),W=V.length&&(L=V[V.length-1],z=["ListItemSecondaryAction"],r.isValidElement(L)&&-1!==z.indexOf(L.type.muiName)),U=r.useCallback((function(e){H.current=u.findDOMNode(e)}),[]),_=Object(l.a)(U,t),G=Object(n.a)({className:Object(i.a)(y.root,v,q.dense&&y.dense,!k&&y.gutters,T&&y.divider,I&&y.disabled,h&&y.button,"center"!==c&&y.alignItemsFlexStart,W&&y.secondaryAction,F&&y.selected),disabled:I},D),J=x||"li";return h&&(G.component=x||"div",G.focusVisibleClassName=Object(i.a)(y.focusVisible,M),J=s.a),W?(J=G.component||x?J:"div","li"===j&&("li"===J?J="div":"li"===G.component&&(G.component="div")),r.createElement(d.a.Provider,{value:q},r.createElement(j,Object(n.a)({className:Object(i.a)(y.container,E),ref:_},S),r.createElement(J,G,V),V.pop()))):r.createElement(d.a.Provider,{value:q},r.createElement(J,Object(n.a)({ref:_},G),V))}));t.a=Object(c.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(f)},wb2y:function(e,t,o){"use strict";var n=o("wx14"),a=o("Ff2n"),r=o("q1tI"),i=(o("17x9"),o("iuhU")),c=o("H2TA"),s=o("ye/S"),l=r.forwardRef((function(e,t){var o=e.absolute,c=void 0!==o&&o,s=e.classes,l=e.className,d=e.component,u=void 0===d?"hr":d,p=e.flexItem,f=void 0!==p&&p,m=e.light,b=void 0!==m&&m,h=e.orientation,g=void 0===h?"horizontal":h,y=e.role,v=void 0===y?"hr"!==u?"separator":void 0:y,x=e.variant,O=void 0===x?"fullWidth":x,j=Object(a.a)(e,["absolute","classes","className","component","flexItem","light","orientation","role","variant"]);return(r.createElement(u,Object(n.a)({className:Object(i.a)(s.root,l,"fullWidth"!==O&&s[O],c&&s.absolute,f&&s.flexItem,b&&s.light,"vertical"===g&&s.vertical),role:v,ref:t},j)))}));t.a=Object(c.a)((function(e){return{root:{height:1,margin:0,border:"none",flexShrink:0,backgroundColor:e.palette.divider},absolute:{position:"absolute",bottom:0,left:0,width:"100%"},inset:{marginLeft:72},light:{backgroundColor:Object(s.c)(e.palette.divider,.08)},middle:{marginLeft:e.spacing(2),marginRight:e.spacing(2)},vertical:{height:"100%",width:1},flexItem:{alignSelf:"stretch",height:"auto"}}}),{name:"MuiDivider"})(l)}}]);
//# sourceMappingURL=5a67.d0627f78.chunk.js.map