-
Notifications
You must be signed in to change notification settings - Fork 0
/
component---src-pages-index-js-23a6e464a826caa25771.js
2 lines (2 loc) · 31.8 KB
/
component---src-pages-index-js-23a6e464a826caa25771.js
1
2
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{"28cb":function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));a("DNiP");function n(e){var t=e.props,a=e.states,n=e.muiFormControl;return a.reduce((function(e,a){return e[a]=t[a],n&&void 0===t[a]&&(e[a]=n[a]),e}),{})}},"4hqb":function(e,t,a){"use strict";a.d(t,"b",(function(){return i}));var n=a("q1tI"),r=a.n(n),o=r.a.createContext();function i(){return r.a.useContext(o)}t.a=o},ADg1:function(e,t,a){"use strict";a("8+KV");var n=a("k1TG"),r=a("aXB2"),o=a("q1tI"),i=a.n(o),c=(a("17x9"),a("iuhU")),l=a("ByqB"),s=a("H2TA"),d=a("NqtD"),u=a("ucBr"),m=a("4hqb"),f=i.a.forwardRef((function(e,t){var a=e.children,o=e.classes,s=e.className,f=e.color,p=void 0===f?"primary":f,h=e.component,b=void 0===h?"div":h,g=e.disabled,v=void 0!==g&&g,y=e.error,E=void 0!==y&&y,x=e.fullWidth,O=void 0!==x&&x,j=e.hiddenLabel,k=void 0!==j&&j,w=e.margin,C=void 0===w?"none":w,N=e.required,A=void 0!==N&&N,S=e.size,_=e.variant,z=void 0===_?"standard":_,D=Object(r.a)(e,["children","classes","className","color","component","disabled","error","fullWidth","hiddenLabel","margin","required","size","variant"]),B=i.a.useState((function(){var e=!1;return a&&i.a.Children.forEach(a,(function(t){if(Object(u.a)(t,["Input","Select"])){var a=Object(u.a)(t,["Select"])?t.props.input:t;a&&Object(l.a)(a.props)&&(e=!0)}})),e})),I=B[0],M=B[1],R=i.a.useState((function(){var e=!1;return a&&i.a.Children.forEach(a,(function(t){Object(u.a)(t,["Input","Select"])&&Object(l.b)(t.props,!0)&&(e=!0)})),e})),q=R[0],T=R[1],H=i.a.useState(!1),F=H[0],L=H[1];v&&F&&L(!1);var W=i.a.useCallback((function(){T(!0)}),[]),P={adornedStart:I,setAdornedStart:M,color:p,disabled:v,error:E,filled:q,focused:F,hiddenLabel:k,margin:("small"===S?"dense":void 0)||C,onBlur:function(){L(!1)},onEmpty:i.a.useCallback((function(){T(!1)}),[]),onFilled:W,onFocus:function(){L(!0)},registerEffect:void 0,required:A,variant:z};return i.a.createElement(m.a.Provider,{value:P},i.a.createElement(b,Object(n.a)({className:Object(c.a)(o.root,s,"none"!==C&&o["margin".concat(Object(d.a)(C))],O&&o.fullWidth),ref:t},D),a))}));t.a=Object(s.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"})(f)},As0B:function(e,t,a){"use strict";a.d(t,"a",(function(){return c}));var n=a("k1TG"),r=a("q1tI"),o=a.n(r),i=a("HR5l");function c(e,t){var a=o.a.memo(o.a.forwardRef((function(t,a){return o.a.createElement(i.a,Object(n.a)({},t,{ref:a}),e)})));return a.muiName=i.a.muiName,a}},ByqB:function(e,t,a){"use strict";a.d(t,"b",(function(){return r})),a.d(t,"a",(function(){return o}));a("LK8F");function n(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function r(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(n(e.value)&&""!==e.value||t&&n(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}},EHdT:function(e,t,a){"use strict";a.d(t,"a",(function(){return i}));var n=a("q1tI"),r=a.n(n),o=a("4hqb");function i(){return r.a.useContext(o.a)}},JQEk:function(e,t,a){"use strict";var n=a("k1TG"),r=a("aXB2"),o=a("q1tI"),i=a.n(o),c=a("iuhU"),l=(a("17x9"),a("kfZ5")),s=a("H2TA"),d=a("wpWl"),u=a("4Hym"),m=a("tr08"),f=i.a.forwardRef((function(e,t){var a=e.children,o=e.classes,s=e.className,f=e.collapsedHeight,p=void 0===f?"0px":f,h=e.component,b=void 0===h?"div":h,g=e.in,v=e.onEnter,y=e.onEntered,E=e.onEntering,x=e.onExit,O=e.onExiting,j=e.style,k=e.timeout,w=void 0===k?d.b.standard:k,C=Object(r.a)(e,["children","classes","className","collapsedHeight","component","in","onEnter","onEntered","onEntering","onExit","onExiting","style","timeout"]),N=Object(m.a)(),A=i.a.useRef(),S=i.a.useRef(null),_=i.a.useRef(),z="number"==typeof p?"".concat(p,"px"):p;i.a.useEffect((function(){return function(){clearTimeout(A.current)}}),[]);return i.a.createElement(l.a,Object(n.a)({in:g,onEnter:function(e,t){e.style.height=z,v&&v(e,t)},onEntered:function(e,t){e.style.height="auto",y&&y(e,t)},onEntering:function(e,t){var a=S.current?S.current.clientHeight:0,n=Object(u.a)({style:j,timeout:w},{mode:"enter"}).duration;if("auto"===w){var r=N.transitions.getAutoHeightDuration(a);e.style.transitionDuration="".concat(r,"ms"),_.current=r}else e.style.transitionDuration="string"==typeof n?n:"".concat(n,"ms");e.style.height="".concat(a,"px"),E&&E(e,t)},onExit:function(e){var t=S.current?S.current.clientHeight:0;e.style.height="".concat(t,"px"),x&&x(e)},onExiting:function(e){var t=S.current?S.current.clientHeight:0,a=Object(u.a)({style:j,timeout:w},{mode:"exit"}).duration;if("auto"===w){var n=N.transitions.getAutoHeightDuration(t);e.style.transitionDuration="".concat(n,"ms"),_.current=n}else e.style.transitionDuration="string"==typeof a?a:"".concat(a,"ms");e.style.height=z,O&&O(e)},addEndListener:function(e,t){"auto"===w&&(A.current=setTimeout(t,_.current||0))},timeout:"auto"===w?null:w},C),(function(e,r){return i.a.createElement(b,Object(n.a)({className:Object(c.a)(o.container,s,{entered:o.entered,exited:!g&&"0px"===z&&o.hidden}[e]),style:Object(n.a)({minHeight:z},j),ref:t},r),i.a.createElement("div",{className:o.wrapper,ref:S},i.a.createElement("div",{className:o.wrapperInner},a)))}))}));f.muiSupportAuto=!0,t.a=Object(s.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"})(f)},JxCS:function(e,t,a){"use strict";a("HAE/");var n=a("5NKs");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(a("q1tI")),o=(0,n(a("8/g6")).default)(r.default.createElement("path",{d:"M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"}),"Dashboard");t.default=o},NDwu:function(e,t,a){"use strict";var n=a("aXB2"),r=a("k1TG"),o=a("q1tI"),i=a.n(o),c=(a("17x9"),a("iuhU")),l=a("28cb"),s=a("EHdT"),d=a("NqtD"),u=a("H2TA"),m=i.a.forwardRef((function(e,t){var a=e.children,o=e.classes,u=e.className,m=(e.color,e.component),f=void 0===m?"label":m,p=(e.disabled,e.error,e.filled,e.focused,e.required,Object(n.a)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),h=Object(s.a)(),b=Object(l.a)({props:e,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]});return i.a.createElement(f,Object(r.a)({className:Object(c.a)(o.root,o["color".concat(Object(d.a)(b.color||"primary"))],u,b.disabled&&o.disabled,b.error&&o.error,b.filled&&o.filled,b.focused&&o.focused,b.required&&o.required),ref:t},p),a,b.required&&i.a.createElement("span",{className:Object(c.a)(o.asterisk,b.error&&o.error)}," ","*"))}));t.a=Object(u.a)((function(e){return{root:Object(r.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"})(m)},RXBc:function(e,t,a){"use strict";a.r(t);a("XfO3"),a("HEwt"),a("a1Th"),a("rE2o"),a("ioFf"),a("rGqo"),a("yt8O"),a("Btvt"),a("hhXQ"),a("KKXr");var n=a("q1tI"),r=a.n(n),o=a("9kay"),i=a("vOnD"),c=a("aXB2"),l=a("k1TG"),s=(a("17x9"),a("iuhU")),d=a("H2TA"),u=a("VD++"),m=a("NqtD"),f=r.a.forwardRef((function(e,t){var a=e.children,n=e.classes,o=e.className,i=e.color,d=void 0===i?"default":i,f=e.component,p=void 0===f?"button":f,h=e.disabled,b=void 0!==h&&h,g=e.disableFocusRipple,v=void 0!==g&&g,y=e.focusVisibleClassName,E=e.size,x=void 0===E?"large":E,O=e.variant,j=void 0===O?"round":O,k=Object(c.a)(e,["children","classes","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"]);return r.a.createElement(u.a,Object(l.a)({className:Object(s.a)(n.root,o,"round"!==j&&n.extended,"large"!==x&&n["size".concat(Object(m.a)(x))],b&&n.disabled,{primary:n.primary,secondary:n.secondary,inherit:n.colorInherit}[d]),component:p,disabled:b,focusRipple:!v,focusVisibleClassName:Object(s.a)(n.focusVisible,y),ref:t},k),r.a.createElement("span",{className:n.label},a))})),p=Object(d.a)((function(e){return{root:Object(l.a)({},e.typography.button,{boxSizing:"border-box",minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,boxShadow:e.shadows[6],"&:active":{boxShadow:e.shadows[12]},color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],"&$focusVisible":{boxShadow:e.shadows[6]},"&:hover":{backgroundColor:e.palette.grey.A100,"@media (hover: none)":{backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground},textDecoration:"none"},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},primary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},secondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},extended:{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48,"&$sizeSmall":{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"&$sizeMedium":{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40}},focusVisible:{},disabled:{},colorInherit:{color:"inherit"},sizeSmall:{width:40,height:40},sizeMedium:{width:48,height:48}}}),{name:"MuiFab"})(f),h=a("ofer"),b=a("JxCS"),g=a.n(b),v=a("7t3Y"),y=a("7xaS"),E=a("AaR6"),x=a("7Qib"),O=a("hA7R"),j=a("NDwu"),k=a("ADg1"),w=r.a.forwardRef((function(e,t){var a=e.classes,n=e.className,o=e.row,i=void 0!==o&&o,d=Object(c.a)(e,["classes","className","row"]);return r.a.createElement("div",Object(l.a)({className:Object(s.a)(a.root,n,i&&a.row),ref:t},d))})),C=Object(d.a)({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(w),N=(a("8+KV"),a("f3/d"),a("EHdT")),A=r.a.forwardRef((function(e,t){e.checked;var a=e.classes,n=e.className,o=e.control,i=e.disabled,d=(e.inputRef,e.label),u=e.labelPlacement,f=void 0===u?"end":u,p=(e.name,e.onChange,e.value,Object(c.a)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),b=Object(N.a)(),g=i;void 0===g&&void 0!==o.props.disabled&&(g=o.props.disabled),void 0===g&&b&&(g=b.disabled);var v={disabled:g};return["checked","name","onChange","value","inputRef"].forEach((function(t){void 0===o.props[t]&&void 0!==e[t]&&(v[t]=e[t])})),r.a.createElement("label",Object(l.a)({className:Object(s.a)(a.root,n,"end"!==f&&a["labelPlacement".concat(Object(m.a)(f))],g&&a.disabled),ref:t},p),r.a.cloneElement(o,v),r.a.createElement(h.a,{component:"span",className:Object(s.a)(a.label,g&&a.disabled)},d))})),S=Object(d.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"})(A),_=a("8j0Q"),z=a("yCxk"),D=a("PsDL"),B=r.a.forwardRef((function(e,t){var a=e.autoFocus,n=e.checked,o=e.checkedIcon,i=e.classes,d=e.className,u=e.defaultChecked,m=e.disabled,f=e.icon,p=e.id,h=e.inputProps,b=e.inputRef,g=e.name,v=e.onBlur,y=e.onChange,E=e.onFocus,x=e.readOnly,O=e.required,j=e.tabIndex,k=e.type,w=e.value,C=Object(c.a)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),A=Object(z.a)({controlled:n,default:Boolean(u),name:"SwitchBase"}),S=Object(_.a)(A,2),B=S[0],I=S[1],M=Object(N.a)(),R=m;M&&void 0===R&&(R=M.disabled);var q="checkbox"===k||"radio"===k;return r.a.createElement(D.a,Object(l.a)({component:"span",className:Object(s.a)(i.root,d,B&&i.checked,R&&i.disabled),disabled:R,tabIndex:null,role:void 0,onFocus:function(e){E&&E(e),M&&M.onFocus&&M.onFocus(e)},onBlur:function(e){v&&v(e),M&&M.onBlur&&M.onBlur(e)},ref:t},C),r.a.createElement("input",Object(l.a)({autoFocus:a,checked:n,defaultChecked:u,className:i.input,disabled:R,id:q&&p,name:g,onChange:function(e){var t=e.target.checked;I(t),y&&y(e,t)},readOnly:x,ref:b,required:O,tabIndex:j,type:k,value:w},h)),B?o:f)})),I=Object(d.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"})(B),M=a("As0B"),R=Object(M.a)(r.a.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),q=Object(M.a)(r.a.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),T=a("ye/S"),H=Object(M.a)(r.a.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),F=r.a.createElement(q,null),L=r.a.createElement(R,null),W=r.a.createElement(H,null),P=r.a.forwardRef((function(e,t){var a=e.checkedIcon,n=void 0===a?F:a,o=e.classes,i=e.color,d=void 0===i?"secondary":i,u=e.disabled,f=void 0!==u&&u,p=e.icon,h=void 0===p?L:p,b=e.indeterminate,g=void 0!==b&&b,v=e.indeterminateIcon,y=void 0===v?W:v,E=e.inputProps,x=e.size,O=void 0===x?"medium":x,j=Object(c.a)(e,["checkedIcon","classes","color","disabled","icon","indeterminate","indeterminateIcon","inputProps","size"]);return r.a.createElement(I,Object(l.a)({type:"checkbox",classes:{root:Object(s.a)(o.root,o["color".concat(Object(m.a)(d))],g&&o.indeterminate),checked:o.checked,disabled:o.disabled},color:d,inputProps:Object(l.a)({"data-indeterminate":g},E),icon:r.a.cloneElement(g?y:h,{fontSize:"small"===O?"small":"default"}),checkedIcon:r.a.cloneElement(g?y:n,{fontSize:"small"===O?"small":"default"}),ref:t,disabled:f},j))})),$=Object(d.a)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(T.c)(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(T.c)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(P),V=a("zQNl"),X=a("g67X"),J=a("JQEk"),G=a("ZiQX"),K=r.a.forwardRef((function(e,t){var a=e.classes,n=e.className,o=Object(c.a)(e,["classes","className"]);return r.a.createElement(h.a,Object(l.a)({gutterBottom:!0,component:"div",ref:t,className:Object(s.a)(a.root,n)},o))})),Q=Object(d.a)((function(e){return{root:{fontWeight:e.typography.fontWeightMedium,marginTop:-2}}}),{name:"MuiAlertTitle"})(K),U=a("efpO"),Z=a("ety/"),Y=a("h4XU"),ee=Object(i.e)(G.a).withConfig({displayName:"AlertMessage__StyledAlert",componentId:"sc-143q50v-0"})(["&&{margin-bottom:20px;a,a:visited{color:",";text-decoration:underline;}}"],(function(e){return"filled"===e.variant?"white":e.theme.palette.primary.main})),te=i.e.div.withConfig({displayName:"AlertMessage__AlertMessagesWrapper",componentId:"sc-143q50v-1"})(["","{display:flex;justify-content:space-between;flex-wrap:wrap;> *{flex:0 0 calc(50% - 12px);margin-right:24px;}>:nth-child(even){margin-right:0;}}"],E.b.up("lg")),ae=function(e){var t=e.edge,a=e.dispatch,n=Object(o.b)().i18n,i=t.node,c=i.title,l=i.message,s=i.severity,d=i.variant,u=i.enabled,m=i.id,f=r.a.useState(!0),p=f[0],h=f[1];return"Y"===u?(c=Object(U.b)(n,t.node,"title"),l=Object(U.b)(n,t.node,"message"),s=s||"info",d=d||"standard",r.a.createElement(J.a,{in:p},r.a.createElement(ee,{severity:s,variant:d,action:r.a.createElement(D.a,{"aria-label":"close",color:"inherit",size:"small",onClick:function(){h(!1),a({type:Y.a,alert_id:m})}},Object(X.a)("close"))},c&&r.a.createElement(Q,null,c),r.a.createElement("span",{dangerouslySetInnerHTML:{__html:l}})))):null},ne=function(e){var t=V.data.allAlert.edges,a=r.a.useContext(Z.b).pageOptions,n=a.dispatch,o=a.state,i=r.a.useState([]),c=i[0],l=i[1];return r.a.useEffect((function(){l(t.filter((function(e){return-1===o.closedAlerts.indexOf(e.node.id)})))}),[]),r.a.createElement(te,{className:e.className},c.map((function(e,t){return r.a.createElement(ae,{edge:e,key:t,dispatch:n})})))},re=a("yDJ3"),oe=a.n(re);function ie(e){var t,a,n;return t=e,a=0,n=1,e=(Math.min(Math.max(a,t),n)-a)/(n-a),e=(e-=1)*e*e+1}var ce=r.a.forwardRef((function(e,t){var a,n=e.classes,o=e.className,i=e.color,d=void 0===i?"primary":i,u=e.disableShrink,f=void 0!==u&&u,p=e.size,h=void 0===p?40:p,b=e.style,g=e.thickness,v=void 0===g?3.6:g,y=e.value,E=void 0===y?0:y,x=e.variant,O=void 0===x?"indeterminate":x,j=Object(c.a)(e,["classes","className","color","disableShrink","size","style","thickness","value","variant"]),k={},w={},C={};if("determinate"===O||"static"===O){var N=2*Math.PI*((44-v)/2);k.strokeDasharray=N.toFixed(3),C["aria-valuenow"]=Math.round(E),"static"===O?(k.strokeDashoffset="".concat(((100-E)/100*N).toFixed(3),"px"),w.transform="rotate(-90deg)"):(k.strokeDashoffset="".concat((a=(100-E)/100,a*a*N).toFixed(3),"px"),w.transform="rotate(".concat((270*ie(E/70)).toFixed(3),"deg)"))}return r.a.createElement("div",Object(l.a)({className:Object(s.a)(n.root,o,"inherit"!==d&&n["color".concat(Object(m.a)(d))],{indeterminate:n.indeterminate,static:n.static}[O]),style:Object(l.a)({width:h,height:h},w,{},b),ref:t,role:"progressbar"},C,j),r.a.createElement("svg",{className:n.svg,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44)},r.a.createElement("circle",{className:Object(s.a)(n.circle,f&&n.circleDisableShrink,{indeterminate:n.circleIndeterminate,static:n.circleStatic}[O]),style:k,cx:44,cy:44,r:(44-v)/2,fill:"none",strokeWidth:v})))})),le=Object(d.a)((function(e){return{root:{display:"inline-block"},static:{transition:e.transitions.create("transform")},indeterminate:{animation:"$circular-rotate 1.4s linear infinite"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},svg:{display:"block"},circle:{stroke:"currentColor"},circleStatic:{transition:e.transitions.create("stroke-dashoffset")},circleIndeterminate:{animation:"$circular-dash 1.4s ease-in-out infinite",strokeDasharray:"80px, 200px",strokeDashoffset:"0px"},"@keyframes circular-rotate":{"100%":{transform:"rotate(360deg)"}},"@keyframes circular-dash":{"0%":{strokeDasharray:"1px, 200px",strokeDashoffset:"0px"},"50%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-15px"},"100%":{strokeDasharray:"100px, 200px",strokeDashoffset:"-125px"}},circleDisableShrink:{animation:"none"}}}),{name:"MuiCircularProgress",flip:!1})(ce),se=a("Kfvu");function de(e){return function(e){if(Array.isArray(e)){for(var t=0,a=new Array(e.length);t<e.length;t++)a[t]=e[t];return a}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}a.d(t,"default",(function(){return ge}));var ue=["daily_stat","carousel","important_information","outbound_alert","confirmed_chart","passenger_daily","friendly_links","latest_cases"],me=["isolation_beds"],fe=i.e.div.withConfig({displayName:"pages__ModuleContainer",componentId:"sc-1looqh3-0"})(["margin-bottom:8px;"]),pe=Object(i.e)(ne).withConfig({displayName:"pages__IndexAlertMessage",componentId:"sc-1looqh3-1"})(["","{> *{flex:1 0 100%;margin-right:0;}}"],E.b.up("lg")),he=i.e.div.withConfig({displayName:"pages__IndexContainer",componentId:"sc-1looqh3-2"})([".fab{position:fixed;bottom:80px;right:20px;","{bottom:40px;right:40px;}}.settingContainer{background-color:white;padding:8px;}h2{margin-top:4px;margin-bottom:4px;}"],E.b.up("md")),be=Object(i.e)((function(e){return r.a.createElement("div",{className:e.className},r.a.createElement(le,null))})).withConfig({displayName:"pages__ComponentLoading",componentId:"sc-1looqh3-3"})(["width:100%;"]);function ge(e){var t=e.data,i=Object(o.b)().t,c=r.a.useState([]),l=c[0],s=c[1],d=r.a.useState(!1),u=d[0],m=d[1],f={},b=function(e,t,a,n){var r=void 0===n?{}:n,o=r.rowSpan,c=void 0===o?1:o,l=r.showTitle,s=void 0===l||l;f[e]={id:e,title:i(t),component:a,rowSpan:c,showTitle:s}},E=function(e,t){if(f[e]){var a=f[e].component;return r.a.createElement(fe,null,f[e].showTitle&&r.a.createElement(h.a,{variant:"h2"},f[e].title),r.a.createElement(n.Suspense,{fallback:r.a.createElement(be,null)},r.a.createElement(a,{data:t})))}return r.a.createElement(r.a.Fragment,null)},w="index-dashboard-module";b("daily_stat","dashboard.latest_figures",r.a.lazy((function(){return Promise.all([a.e(0),a.e(24)]).then(a.bind(null,"6J3j"))}))),b("important_information","dashboard.important_information",r.a.lazy((function(){return Promise.all([a.e(0),a.e(32)]).then(a.bind(null,"mUc4"))})),{showTitle:!1}),b("confirmed_chart","dashboard.case_highlights_area",r.a.lazy((function(){return Promise.all([a.e(0),a.e(21)]).then(a.bind(null,"k1U8"))})),{rowSpan:4}),b("confirmed_digest_gender","dashboard.case_highlights_gender",r.a.lazy((function(){return Promise.all([a.e(1),a.e(0),a.e(23)]).then(a.bind(null,"Cqeh"))})),{rowSpan:2}),b("passenger_daily","dashboard.daily_passengers",r.a.lazy((function(){return Promise.all([a.e(0),a.e(31)]).then(a.bind(null,"0BW2"))}))),b("confirmed_digest_age","dashboard.case_highlights_age",r.a.lazy((function(){return Promise.all([a.e(0),a.e(30)]).then(a.bind(null,"+S1Z"))}))),b("outbound_alert","dashboard.outbound_alert",r.a.lazy((function(){return a.e(28).then(a.bind(null,"5bY2"))})),{rowSpan:3,showTitle:!1}),b("carousel","dashboard.carousel",r.a.lazy((function(){return Promise.all([a.e(1),a.e(26)]).then(a.bind(null,"eh56"))})),{showTitle:!1}),b("friendly_links","dashboard.friendly_links",r.a.lazy((function(){return a.e(29).then(a.bind(null,"+S9r"))})),{showTitle:!1}),b("latest_cases","dashboard.latest_cases",r.a.lazy((function(){return a.e(27).then(a.bind(null,"xjVJ"))})),{rowSpan:6}),b("epidemic_chart","dashboard.epidemic_chart",r.a.lazy((function(){return a.e(20).then(a.bind(null,"RJnz"))})),{rowSpan:4}),b("isolation_beds","dashboard.isolation_beds",r.a.lazy((function(){return Promise.all([a.e(0),a.e(25)]).then(a.bind(null,"3rfK"))})),{rowSpan:2}),r.a.useEffect((function(){var e=Object(x.d)(w),t=Object(x.d)("index-dashboard-module-new"),a=[];if(t){var n=t.split(",");me.forEach((function(e){n.indexOf(e)<0&&a.push(e)}))}else a=me;Object(x.f)("index-dashboard-module-new",me),s(e?e.split(",").concat(a):ue.concat(a))}),[]);for(var N=[],A=0,_=0,z=0;z<l.length;z++){var D=f[l[z]];_>=A?(A+=oe()(D,"rowSpan",1),N.push("left")):(_+=oe()(D,"rowSpan",1),N.push("right"))}return r.a.createElement(r.a.Fragment,null,r.a.createElement(v.a,{title:"Home"}),r.a.createElement(y.a,null,r.a.createElement(he,null,u&&r.a.createElement(fe,{className:"settingContainer"},r.a.createElement(k.a,{component:"fieldset"},r.a.createElement(j.a,{component:"legend"},i("dashboard.settings")),Object.values(f).map((function(e){return r.a.createElement(C,null,r.a.createElement(S,{control:r.a.createElement($,{color:"primary",checked:l.indexOf(e.id)>=0,onChange:function(){return t=e.id,(a=l.indexOf(t))>=0?l.splice(a,1):l.push(t),s(de(l)),Object(x.f)(w,de(l)),void Object(se.trackCustomEvent)({category:"dashboard",action:"module_change",label:l.join(",")});var t,a}}),label:e.title}))})))),r.a.createElement(O.c,null,r.a.createElement(O.b,null,r.a.createElement(pe,null),l.filter((function(e,t){return"left"===N[t]})).map((function(e,a){return r.a.createElement(r.a.Fragment,{key:a},E(e,t))}))),r.a.createElement(O.b,null,l.filter((function(e,t){return"right"===N[t]})).map((function(e,a){return r.a.createElement(r.a.Fragment,{key:a},E(e,t))})))),r.a.createElement(p,{color:"primary",className:"fab",onClick:function(){u||window.scrollTo(0,0),m(!u)}},r.a.createElement(g.a,null)))))}},ZiQX:function(e,t,a){"use strict";var n=a("aXB2"),r=a("k1TG"),o=a("q1tI"),i=a.n(o),c=(a("17x9"),a("iuhU")),l=a("ye/S"),s=a("H2TA"),d=a("kKAo"),u=a("HR5l");function m(e,t){var a=i.a.memo(i.a.forwardRef((function(t,a){return i.a.createElement(u.a,Object(r.a)({ref:a},t),e)})));return a.muiName=u.a.muiName,a}var f=m(i.a.createElement("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),p=m(i.a.createElement("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),h=m(i.a.createElement("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),b=m(i.a.createElement("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),g=m(i.a.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),v=a("PsDL"),y=a("NqtD"),E={success:i.a.createElement(f,{fontSize:"inherit"}),warning:i.a.createElement(p,{fontSize:"inherit"}),error:i.a.createElement(h,{fontSize:"inherit"}),info:i.a.createElement(b,{fontSize:"inherit"})},x=i.a.createElement(g,{fontSize:"small"}),O=i.a.forwardRef((function(e,t){var a=e.action,o=e.children,l=e.classes,s=e.className,u=e.closeText,m=void 0===u?"Close":u,f=e.color,p=e.icon,h=e.iconMapping,b=void 0===h?E:h,g=e.onClose,O=e.role,j=void 0===O?"alert":O,k=e.severity,w=void 0===k?"success":k,C=e.variant,N=void 0===C?"standard":C,A=Object(n.a)(e,["action","children","classes","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"]);return i.a.createElement(d.a,Object(r.a)({role:j,square:!0,elevation:0,className:Object(c.a)(l.root,l["".concat(N).concat(Object(y.a)(f||w))],s),ref:t},A),!1!==p?i.a.createElement("div",{className:l.icon},p||b[w]||E[w]):null,i.a.createElement("div",{className:l.message},o),null!=a?i.a.createElement("div",{className:l.action},a):null,null==a&&g?i.a.createElement("div",{className:l.action},i.a.createElement(v.a,{size:"small","aria-label":m,title:m,color:"inherit",onClick:g},x)):null)}));t.a=Object(s.a)((function(e){return{root:Object(r.a)({},e.typography.body2,{borderRadius:e.shape.borderRadius,backgroundColor:"transparent",display:"flex",padding:"6px 16px"}),standardSuccess:{color:Object(l.a)(e.palette.success.main,.6),backgroundColor:Object(l.e)(e.palette.success.main,.9),"& $icon":{color:e.palette.success.main}},standardInfo:{color:Object(l.a)(e.palette.info.main,.6),backgroundColor:Object(l.e)(e.palette.info.main,.9),"& $icon":{color:e.palette.info.main}},standardWarning:{color:Object(l.a)(e.palette.warning.main,.6),backgroundColor:Object(l.e)(e.palette.warning.main,.9),"& $icon":{color:e.palette.warning.main}},standardError:{color:Object(l.a)(e.palette.error.main,.6),backgroundColor:Object(l.e)(e.palette.error.main,.9),"& $icon":{color:e.palette.error.main}},outlinedSuccess:{color:"light"===e.palette.type?Object(l.a)(e.palette.success.main,.6):Object(l.e)(e.palette.success.main,.6),border:"1px solid ".concat(e.palette.success.main),"& $icon":{color:e.palette.success.main}},outlinedInfo:{color:"light"===e.palette.type?Object(l.a)(e.palette.info.main,.6):Object(l.e)(e.palette.info.main,.6),border:"1px solid ".concat(e.palette.info.main),"& $icon":{color:e.palette.info.main}},outlinedWarning:{color:"light"===e.palette.type?Object(l.a)(e.palette.warning.main,.6):Object(l.e)(e.palette.warning.main,.6),border:"1px solid ".concat(e.palette.warning.main),"& $icon":{color:e.palette.warning.main}},outlinedError:{color:"light"===e.palette.type?Object(l.a)(e.palette.error.main,.6):Object(l.e)(e.palette.error.main,.6),border:"1px solid ".concat(e.palette.error.main),"& $icon":{color:e.palette.error.main}},filledSuccess:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.success.main},filledInfo:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.info.main},filledWarning:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.warning.main},filledError:{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:e.palette.error.main},icon:{marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9},message:{padding:"8px 0",display:"flex",flexDirection:"column",justifyContent:"center"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}}}),{name:"MuiAlert"})(O)},hA7R:function(e,t,a){"use strict";a.d(t,"a",(function(){return d})),a.d(t,"b",(function(){return u})),a.d(t,"c",(function(){return f}));a("rGqo"),a("yt8O"),a("Btvt"),a("RW0V");var n=a("q1tI"),r=a.n(n),o=a("vOnD"),i=a("hlFM"),c=a("AaR6");function l(e,t){if(null==e)return{};var a,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)a=o[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}var s=Object(o.e)(i.a).withConfig({displayName:"Container",componentId:"sc-1ima7f0-0"})(["margin-top:16px;"]);function d(e){var t=e.children,a=l(e,["children"]);return r.a.createElement(s,a,t)}var u=Object(o.e)((function(e){var t=e.children,a=l(e,["children"]);return r.a.createElement(i.a,a,t)})).withConfig({displayName:"Container__SessionWrapper",componentId:"sc-1ima7f0-1"})(["margin-bottom:16px;"]),m=o.e.div.withConfig({displayName:"Container__StyledSplitWrapper",componentId:"sc-1ima7f0-2"})(["","{display:flex;align-items:flex-start;","{flex:1 0 calc(50% - 12px);&:nth-of-type(2){flex:0 0 calc(50% - 12px);margin-left:24px;}}}"],c.b.up("lg"),u);function f(e){var t=e.children,a=l(e,["children"]);return r.a.createElement(m,a,t)}},yCxk:function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));a("f3/d");var n=a("q1tI"),r=a.n(n);function o(e){var t=e.controlled,a=e.default,n=(e.name,r.a.useRef(void 0!==t).current),o=r.a.useState(a),i=o[0],c=o[1];return[n?t:i,r.a.useCallback((function(e){n||c(e)}),[])]}},zQNl:function(e){e.exports=JSON.parse('{"data":{"allAlert":{"edges":[{"node":{"id":"1fa626da-936a-57be-80bf-fe8400f798fe","title_en":"Recommended reading material","title_zh":"推薦讀物","message_en":"(Chinese Only) The article \\"<a href=\\"https://www.thestandnews.com/society/%E4%B8%8D%E6%98%AF%E6%95%B8%E5%AD%97-%E6%98%AF%E4%BA%BA%E5%91%BD-%E6%AD%A6%E6%BC%A2%E8%82%BA%E7%82%8E%E9%A6%99%E6%B8%AF%E7%97%85%E9%80%9D%E8%80%85%E7%9A%84%E8%A8%98%E9%8C%84/\\" target=\\"_blank\\">不是數字,是人命 — 武漢肺炎香港病逝者的記錄</a>\\" from The Stand News restores the story and details behind each case number, as every of them is more than just a figure on some charts.","message_zh":"由立場新聞所撰寫的《<a href=\\"https://www.thestandnews.com/society/%E4%B8%8D%E6%98%AF%E6%95%B8%E5%AD%97-%E6%98%AF%E4%BA%BA%E5%91%BD-%E6%AD%A6%E6%BC%A2%E8%82%BA%E7%82%8E%E9%A6%99%E6%B8%AF%E7%97%85%E9%80%9D%E8%80%85%E7%9A%84%E8%A8%98%E9%8C%84/\\" target=\\"_blank\\">不是數字,是人命 — 武漢肺炎香港病逝者的記錄</a>》,是疫症底下一個個病逝者的故事。","severity":"info","variant":"filled","enabled":"Y"}}]}}}')}},0,[1,0,23,21,24,25,30,31,32,26,20,27,28,29]]);
//# sourceMappingURL=component---src-pages-index-js-23a6e464a826caa25771.js.map