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AY,cAAclI,OAxGN,EAwGkC,aAIxDuO,kBAAmB,CACjBxM,MAAO,OACPgN,UAAW,0EAIbP,WAAY,CACVtG,WAAY,cAAclI,OAnHN,EAmHkC,aAMxD,4BAA6B,CAE3B,KAAM,CACJwC,KAAM,OACNgN,MAAO,QAGT,MAAO,CACLhN,KAAM,OACNgN,MAAO,QAET,OAAQ,CACNhN,KAAM,OACNgN,MAAO,SAGX,4BAA6B,CAE3B,KAAM,CACJhN,KAAM,QACNgN,MAAO,QAGT,MAAO,CACLhN,KAAM,OACNgN,MAAO,OAET,OAAQ,CACNhN,KAAM,OACNgN,MAAO,QAGX,oBAAqB,CACnB,KAAM,CACJzM,QAAS,EACToM,mBAAoB,WAEtB,MAAO,CACLpM,QAAS,EACToM,mBAAoB,WAEtB,OAAQ,CACNpM,QAAS,EACToM,mBAAoB,iBAI5B,GAyHkC,CAChCnC,KAAM,qBADR,CAEG5C,E,4BC1SCqF,EAAyBC,EAAQ,OAEjCC,EAA0BD,EAAQ,OAKtCE,EAAQ,OAAU,EAElB,IAAIrF,EAAQoF,EAAwBD,EAAQ,QAIxCG,GAAW,EAFMJ,EAAuBC,EAAQ,QAElBI,SAAuBvF,EAAMwF,cAAc,OAAQ,CACnFC,EAAG,mDACD,mBAEJJ,EAAQ,EAAUC,C","sources":["components/shared/Dialog/CenterDialog.tsx","components/shared/Dialog/ResultXpDialog/RegisteredUser.tsx","components/zApps/Layout/Login/MyPage/components/XpProgressBar.tsx","../node_modules/@material-ui/core/esm/IconButton/IconButton.js","../node_modules/@material-ui/core/esm/LinearProgress/LinearProgress.js","../node_modules/@material-ui/icons/ArrowForwardIos.js"],"sourcesContent":["import Button from \"@material-ui/core/Button\";\r\nimport Card from \"@material-ui/core/Card\";\r\nimport { makeStyles, Theme } from \"@material-ui/core/styles\";\r\nimport { BaseCSSProperties } from \"@material-ui/core/styles/withStyles\";\r\nimport CloseIcon from \"@material-ui/icons/Close\";\r\nimport { ReactNode, useEffect, useState } from \"react\";\r\nimport { AppState } from \"../../../common/appState\";\r\nimport { useOpenAnimationFinished } from \"../../../common/hooks/panelAndDialog/useOpenAnimationFinished\";\r\nimport { usePanelAndDialogOpenOrder } from \"../../../common/hooks/panelAndDialog/usePanelAndDialogOpenOrder\";\r\nimport { spaceBetween } from \"../../../common/util/Array/spaceBetween\";\r\nimport { zIndex } from \"../../zApps/Layout/zIndex\";\r\nimport ShurikenProgress from \"../Animations/ShurikenProgress\";\r\n\r\nexport function CenterDialog({\r\n open,\r\n transitionMilliseconds = 0,\r\n style,\r\n className,\r\n darkLayerStyle,\r\n children,\r\n onClose,\r\n withoutCloseButton,\r\n globalDialogState,\r\n isChildrenUnmounted,\r\n}: {\r\n open: boolean;\r\n transitionMilliseconds?: number;\r\n style?: BaseCSSProperties;\r\n className?: string;\r\n darkLayerStyle?: BaseCSSProperties;\r\n children: ReactNode;\r\n onClose?: () => void;\r\n withoutCloseButton?: boolean;\r\n globalDialogState?: AppState[keyof AppState]; // When the dialog's global state changed, zIndex increases (especially when targetId changes)\r\n isChildrenUnmounted?: boolean;\r\n}) {\r\n const { openedOrder } = usePanelAndDialogOpenOrder(\r\n globalDialogState,\r\n open,\r\n transitionMilliseconds\r\n );\r\n\r\n const c = useResultDialogStyles({\r\n transitionDuration: `${transitionMilliseconds}ms`,\r\n style,\r\n darkLayerStyle,\r\n openedOrder,\r\n });\r\n\r\n const [isContentShown, setIsContentShown] = useState(false);\r\n\r\n useEffect(() => {\r\n if (open && !isContentShown) {\r\n // when it opens\r\n setTimeout(() => {\r\n setIsContentShown(open);\r\n }, 10);\r\n return;\r\n }\r\n\r\n if (!open && isContentShown) {\r\n // when it closes\r\n setTimeout(() => {\r\n setIsContentShown(false);\r\n }, transitionMilliseconds);\r\n }\r\n }, [open, transitionMilliseconds]);\r\n\r\n const isCompletelyOpened = open && isContentShown;\r\n const { isOpenAnimationFinished } = useOpenAnimationFinished(\r\n isCompletelyOpened,\r\n transitionMilliseconds\r\n );\r\n\r\n if (!open && !isContentShown) {\r\n return null;\r\n }\r\n\r\n return (\r\n \r\n {\r\n ev.stopPropagation();\r\n }}\r\n >\r\n {!withoutCloseButton && (\r\n \r\n \r\n \r\n )}\r\n {isChildrenUnmounted && open ? (\r\n \r\n ) : (\r\n children\r\n )}\r\n \r\n \r\n );\r\n}\r\n\r\nconst useResultDialogStyles = makeStyles<\r\n Theme,\r\n {\r\n transitionDuration: string;\r\n style?: BaseCSSProperties;\r\n darkLayerStyle?: BaseCSSProperties;\r\n openedOrder: number; // 0 to 30, The last opened panel or dialog is 0.\r\n }\r\n>(({ palette }) => ({\r\n darkLayer: ({ transitionDuration, darkLayerStyle, openedOrder }) => ({\r\n position: \"fixed\",\r\n top: 0,\r\n left: 0,\r\n width: \"100%\",\r\n height: \"100%\",\r\n backgroundColor: \"rgba(0,0,0,0.7)\",\r\n display: \"flex\",\r\n justifyContent: \"center\",\r\n alignItems: \"center\",\r\n transitionProperty: \"opacity\",\r\n transitionDuration,\r\n zIndex: zIndex.panelAndDialog.darkLayer(openedOrder),\r\n ...darkLayerStyle,\r\n }),\r\n opacity0: { opacity: 0 },\r\n opacity1: { opacity: 1 },\r\n card: ({ style, openedOrder }) => ({\r\n width: \"100%\",\r\n maxWidth: 350,\r\n height: \"100%\",\r\n maxHeight: 350,\r\n backgroundColor: \"white\",\r\n borderRadius: 16,\r\n zIndex: zIndex.panelAndDialog.panelOrDialog(openedOrder),\r\n ...style,\r\n }),\r\n closeButton: {\r\n borderRadius: \"50%\",\r\n maxWidth: 28,\r\n maxHeight: 28,\r\n minWidth: 28,\r\n minHeight: 28,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"center\",\r\n backgroundColor: palette.success.main,\r\n \"&:hover\": {\r\n backgroundColor: palette.success.light,\r\n },\r\n color: \"white\",\r\n lineHeight: 1,\r\n marginLeft: \"auto\",\r\n marginTop: 3,\r\n marginRight: 3,\r\n padding: 0,\r\n },\r\n closeIcon: { width: 20, height: 20 },\r\n}));\r\n","import Card from \"@material-ui/core/Card\";\r\nimport IconButton from \"@material-ui/core/IconButton\";\r\nimport { makeStyles, Theme } from \"@material-ui/core/styles\";\r\nimport ArrowForwardIcon from \"@material-ui/icons/ArrowForwardIos\";\r\nimport { ReactNode, useEffect, useState } from \"react\";\r\nimport { changeAppState, useAppState } from \"../../../../common/appState\";\r\nimport { useUser } from \"../../../../common/hooks/useUser\";\r\nimport { spaceBetween } from \"../../../../common/util/Array/spaceBetween\";\r\nimport { XpProgressArea } from \"../../../zApps/Layout/Login/MyPage/components/XpProgressBar\";\r\nimport { User } from \"../../User/types\";\r\nimport { CenterDialog } from \"../CenterDialog\";\r\nimport {\r\n AddRegisteredUserXpParams,\r\n RegisteredUserXpDialogState,\r\n} from \"./types\";\r\n\r\nconst setRegisteredUserResultDialogState = (\r\n state: RegisteredUserXpDialogState\r\n) => {\r\n changeAppState(\"registeredUserXpDialogState\", state);\r\n};\r\n\r\nexport async function addRegisteredUserXp(\r\n params: AddRegisteredUserXpParams,\r\n user: User\r\n) {\r\n setRegisteredUserResultDialogState(params);\r\n\r\n /**\r\n * Check isLevelUp\r\n */\r\n const xpToAdd = params.xpToAdd * params.boostRate;\r\n const {\r\n user: newUser,\r\n levelUp,\r\n myRank,\r\n } = await fetchAddXp(xpToAdd, user.userId);\r\n changeAppState(\"user\", newUser);\r\n setRegisteredUserResultDialogState({\r\n ...params,\r\n isLevelUp: levelUp,\r\n myRank,\r\n });\r\n}\r\n\r\nconst initialState: Exclude = {\r\n onCloseCallBack: undefined,\r\n xpToAdd: 0,\r\n topSmallMessage: \"\",\r\n isLevelUp: false,\r\n boostRate: 1,\r\n};\r\n\r\nexport default function ResultXpDialogWrapper() {\r\n const [globalDialogState] = useAppState(\"registeredUserXpDialogState\");\r\n\r\n const open = globalDialogState !== \"close\";\r\n\r\n const [lazyState, setLazyState] =\r\n useState>(initialState);\r\n\r\n useEffect(() => {\r\n if (open) {\r\n setLazyState(globalDialogState);\r\n return;\r\n }\r\n const timeoutId = setTimeout(() => {\r\n // Wait until the animation finishes\r\n setLazyState(initialState);\r\n }, 500);\r\n return () => {\r\n clearTimeout(timeoutId);\r\n };\r\n }, [globalDialogState]);\r\n\r\n const {\r\n onCloseCallBack,\r\n xpToAdd,\r\n topSmallMessage,\r\n isLevelUp,\r\n myRank,\r\n boostRate,\r\n } = lazyState;\r\n\r\n return (\r\n {\r\n setRegisteredUserResultDialogState(\"close\");\r\n onCloseCallBack?.();\r\n }}\r\n xpToAdd={xpToAdd}\r\n topSmallMessage={topSmallMessage}\r\n isLevelUp={isLevelUp}\r\n myRank={myRank}\r\n globalDialogState={globalDialogState}\r\n boostRate={boostRate}\r\n />\r\n );\r\n}\r\n\r\nfunction ResultXpDialog_RegisteredUser({\r\n open,\r\n onClose,\r\n xpToAdd,\r\n topSmallMessage,\r\n isLevelUp,\r\n myRank,\r\n globalDialogState,\r\n boostRate,\r\n}: {\r\n open: boolean;\r\n onClose: () => void;\r\n xpToAdd: number;\r\n topSmallMessage: ReactNode;\r\n isLevelUp?: boolean;\r\n myRank?: number;\r\n globalDialogState: RegisteredUserXpDialogState;\r\n boostRate: number;\r\n}) {\r\n const c = useRegisteredUserResultDialogStyles({ loaded: !!myRank });\r\n const { user } = useUser();\r\n\r\n return (\r\n \r\n
\r\n {isLevelUp && (\r\n \r\n LEVEL UP!\r\n \r\n )}\r\n\r\n
\r\n {topSmallMessage}\r\n

\r\n You got{\" \"}\r\n \r\n {xpToAdd}\r\n {boostRate > 1 && (\r\n ×{boostRate}\r\n )}\r\n {\" \"}\r\n XP!\r\n

\r\n
\r\n\r\n \r\n

Level: {user?.level}

\r\n \r\n {\r\n ev.preventDefault();\r\n ev.stopPropagation();\r\n changeAppState(\"signInPanelState\", {\r\n type: \"myPageTop\",\r\n initialView: \"MyPageUserRankingAroundMe\",\r\n });\r\n }}\r\n >\r\n {`Your ranking is ${myRank || \"\"}`}\r\n \r\n \r\n \r\n
\r\n \r\n\r\n
\r\n \r\n OK\r\n \r\n
\r\n \r\n \r\n );\r\n}\r\nconst useRegisteredUserResultDialogStyles = makeStyles<\r\n Theme,\r\n { loaded: boolean }\r\n>(theme => ({\r\n container: {\r\n margin: \"0 10px\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-between\",\r\n height: 288,\r\n position: \"relative\",\r\n },\r\n xp: { color: theme.palette.secondary.main, marginBottom: 0 },\r\n progressCard: ({ loaded }) => ({\r\n paddingTop: 20,\r\n paddingBottom: 22,\r\n paddingLeft: loaded ? 30 : 0,\r\n paddingRight: loaded ? 30 : 0,\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n justifyContent: \"space-around\",\r\n position: \"relative\",\r\n bottom: 5,\r\n maxWidth: loaded ? 270 : 0,\r\n minHeight: 160,\r\n transition: \"all 700ms\",\r\n overflow: \"hidden\",\r\n }),\r\n level: {\r\n marginBottom: 10,\r\n whiteSpace: \"nowrap\",\r\n },\r\n levelUp: {\r\n position: \"absolute\",\r\n top: -20,\r\n left: -5,\r\n backgroundColor: theme.palette.secondary.main,\r\n color: \"white\",\r\n padding: 5,\r\n transform: \"rotate(-15deg)\",\r\n },\r\n rakingContainer: {\r\n marginTop: 12,\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n fontSize: \"medium\",\r\n color: theme.palette.primary.main,\r\n fontWeight: \"bold\",\r\n cursor: \"pointer\",\r\n transition: \"opacity 200ms\",\r\n opacity: 1,\r\n \"&:hover\": {\r\n opacity: 0.7,\r\n },\r\n whiteSpace: \"nowrap\",\r\n },\r\n arrowIconButton: {\r\n backgroundColor: theme.palette.primary.main,\r\n color: \"white\",\r\n width: 10,\r\n height: 10,\r\n marginLeft: 5,\r\n transition: \"all 200ms\",\r\n \"&:hover\": {\r\n backgroundColor: theme.palette.primary.main,\r\n },\r\n },\r\n arrowIcon: { width: 10, height: 10 },\r\n}));\r\n\r\nasync function fetchAddXp(\r\n xpToAdd: number,\r\n userId: number\r\n): Promise<{ user: User; levelUp: boolean; myRank: number }> {\r\n const formData = new FormData();\r\n formData.append(\"xpToAdd\", xpToAdd.toString());\r\n formData.append(\"userId\", userId.toString());\r\n\r\n const res = await fetch(\"api/User/AddXp\", {\r\n method: \"POST\",\r\n body: formData,\r\n });\r\n return res.json();\r\n}\r\n","import LinearProgress from \"@material-ui/core/LinearProgress\";\r\nimport { makeStyles } from \"@material-ui/core/styles\";\r\nimport { useEffect, useState } from \"react\";\r\nimport { useUser } from \"../../../../../../common/hooks/useUser\";\r\nimport { spaceBetween } from \"../../../../../../common/util/Array/spaceBetween\";\r\nimport { XpProgress } from \"./types\";\r\n\r\nexport function XpProgressArea() {\r\n const c = useXpProgressStyles();\r\n const { user } = useUser();\r\n\r\n const [xpProgress, setXpProgress] = useState(null);\r\n useEffect(() => {\r\n if (user) {\r\n let isStillValid = true;\r\n getXpProgress(user.xp).then(x => {\r\n if (isStillValid) {\r\n setXpProgress(x);\r\n }\r\n });\r\n return () => {\r\n isStillValid = false;\r\n };\r\n }\r\n }, [user?.xp]);\r\n\r\n if (!user) {\r\n return null;\r\n }\r\n\r\n return (\r\n \r\n
\r\n XP: {xpProgress?.xpProgress}/{xpProgress?.necessaryXp}\r\n
\r\n \r\n \r\n );\r\n}\r\nconst useXpProgressStyles = makeStyles(() => ({\r\n container: {\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n transition: \"width 500ms\",\r\n overflow: \"hidden\",\r\n },\r\n width0: { width: 0 },\r\n width210: { width: 210 },\r\n linearProgress: { width: 210, marginBottom: 10 },\r\n}));\r\n\r\nasync function getXpProgress(xp: number): Promise {\r\n const res = await fetch(`api/User/GetXpProgress?xp=${xp}`);\r\n return res.json();\r\n}\r\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@material-ui/utils';\nimport withStyles from '../styles/withStyles';\nimport { alpha } from '../styles/colorManipulator';\nimport ButtonBase from '../ButtonBase';\nimport capitalize from '../utils/capitalize';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n textAlign: 'center',\n flex: '0 0 auto',\n fontSize: theme.typography.pxToRem(24),\n padding: 12,\n borderRadius: '50%',\n overflow: 'visible',\n // Explicitly set the default value to solve a bug on IE 11.\n color: theme.palette.action.active,\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.shortest\n }),\n '&:hover': {\n backgroundColor: alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n '&$disabled': {\n backgroundColor: 'transparent',\n color: theme.palette.action.disabled\n }\n },\n\n /* Styles applied to the root element if `edge=\"start\"`. */\n edgeStart: {\n marginLeft: -12,\n '$sizeSmall&': {\n marginLeft: -3\n }\n },\n\n /* Styles applied to the root element if `edge=\"end\"`. */\n edgeEnd: {\n marginRight: -12,\n '$sizeSmall&': {\n marginRight: -3\n }\n },\n\n /* Styles applied to the root element if `color=\"inherit\"`. */\n colorInherit: {\n color: 'inherit'\n },\n\n /* Styles applied to the root element if `color=\"primary\"`. */\n colorPrimary: {\n color: theme.palette.primary.main,\n '&:hover': {\n backgroundColor: alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n },\n\n /* Styles applied to the root element if `color=\"secondary\"`. */\n colorSecondary: {\n color: theme.palette.secondary.main,\n '&:hover': {\n backgroundColor: alpha(theme.palette.secondary.main, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n },\n\n /* Pseudo-class applied to the root element if `disabled={true}`. */\n disabled: {},\n\n /* Styles applied to the root element if `size=\"small\"`. */\n sizeSmall: {\n padding: 3,\n fontSize: theme.typography.pxToRem(18)\n },\n\n /* Styles applied to the children container element. */\n label: {\n width: '100%',\n display: 'flex',\n alignItems: 'inherit',\n justifyContent: 'inherit'\n }\n };\n};\n/**\n * Refer to the [Icons](/components/icons/) section of the documentation\n * regarding the available icon options.\n */\n\nvar IconButton = /*#__PURE__*/React.forwardRef(function IconButton(props, ref) {\n var _props$edge = props.edge,\n edge = _props$edge === void 0 ? false : _props$edge,\n children = props.children,\n classes = props.classes,\n className = props.className,\n _props$color = props.color,\n color = _props$color === void 0 ? 'default' : _props$color,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$disableFocusRi = props.disableFocusRipple,\n disableFocusRipple = _props$disableFocusRi === void 0 ? false : _props$disableFocusRi,\n _props$size = props.size,\n size = _props$size === void 0 ? 'medium' : _props$size,\n other = _objectWithoutProperties(props, [\"edge\", \"children\", \"classes\", \"className\", \"color\", \"disabled\", \"disableFocusRipple\", \"size\"]);\n\n return /*#__PURE__*/React.createElement(ButtonBase, _extends({\n className: clsx(classes.root, className, color !== 'default' && classes[\"color\".concat(capitalize(color))], disabled && classes.disabled, size === \"small\" && classes[\"size\".concat(capitalize(size))], {\n 'start': classes.edgeStart,\n 'end': classes.edgeEnd\n }[edge]),\n centerRipple: true,\n focusRipple: !disableFocusRipple,\n disabled: disabled,\n ref: ref\n }, other), /*#__PURE__*/React.createElement(\"span\", {\n className: classes.label\n }, children));\n});\nprocess.env.NODE_ENV !== \"production\" ? IconButton.propTypes = {\n /**\n * The icon element.\n */\n children: chainPropTypes(PropTypes.node, function (props) {\n var found = React.Children.toArray(props.children).some(function (child) {\n return /*#__PURE__*/React.isValidElement(child) && child.props.onClick;\n });\n\n if (found) {\n return new Error(['Material-UI: You are providing an onClick event listener ' + 'to a child of a button element.', 'Firefox will never trigger the event.', 'You should move the onClick listener to the parent button element.', 'https://github.com/mui-org/material-ui/issues/13957'].join('\\n'));\n }\n\n return null;\n }),\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object.isRequired,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n */\n color: PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary']),\n\n /**\n * If `true`, the button will be disabled.\n */\n disabled: PropTypes.bool,\n\n /**\n * If `true`, the keyboard focus ripple will be disabled.\n */\n disableFocusRipple: PropTypes.bool,\n\n /**\n * If `true`, the ripple effect will be disabled.\n */\n disableRipple: PropTypes.bool,\n\n /**\n * If given, uses a negative margin to counteract the padding on one\n * side (this is often helpful for aligning the left or right\n * side of the icon with content above or below, without ruining the border\n * size and shape).\n */\n edge: PropTypes.oneOf(['start', 'end', false]),\n\n /**\n * The size of the button.\n * `small` is equivalent to the dense button styling.\n */\n size: PropTypes.oneOf(['small', 'medium'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiIconButton'\n})(IconButton);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport capitalize from '../utils/capitalize';\nimport withStyles from '../styles/withStyles';\nimport { darken, lighten } from '../styles/colorManipulator';\nimport useTheme from '../styles/useTheme';\nvar TRANSITION_DURATION = 4; // seconds\n\nexport var styles = function styles(theme) {\n var getColor = function getColor(color) {\n return theme.palette.type === 'light' ? lighten(color, 0.62) : darken(color, 0.5);\n };\n\n var backgroundPrimary = getColor(theme.palette.primary.main);\n var backgroundSecondary = getColor(theme.palette.secondary.main);\n return {\n /* Styles applied to the root element. */\n root: {\n position: 'relative',\n overflow: 'hidden',\n height: 4,\n '@media print': {\n colorAdjust: 'exact'\n }\n },\n\n /* Styles applied to the root and bar2 element if `color=\"primary\"`; bar2 if `variant=\"buffer\"`. */\n colorPrimary: {\n backgroundColor: backgroundPrimary\n },\n\n /* Styles applied to the root and bar2 elements if `color=\"secondary\"`; bar2 if `variant=\"buffer\"`. */\n colorSecondary: {\n backgroundColor: backgroundSecondary\n },\n\n /* Styles applied to the root element if `variant=\"determinate\"`. */\n determinate: {},\n\n /* Styles applied to the root element if `variant=\"indeterminate\"`. */\n indeterminate: {},\n\n /* Styles applied to the root element if `variant=\"buffer\"`. */\n buffer: {\n backgroundColor: 'transparent'\n },\n\n /* Styles applied to the root element if `variant=\"query\"`. */\n query: {\n transform: 'rotate(180deg)'\n },\n\n /* Styles applied to the additional bar element if `variant=\"buffer\"`. */\n dashed: {\n position: 'absolute',\n marginTop: 0,\n height: '100%',\n width: '100%',\n animation: '$buffer 3s infinite linear'\n },\n\n /* Styles applied to the additional bar element if `variant=\"buffer\"` and `color=\"primary\"`. */\n dashedColorPrimary: {\n backgroundImage: \"radial-gradient(\".concat(backgroundPrimary, \" 0%, \").concat(backgroundPrimary, \" 16%, transparent 42%)\"),\n backgroundSize: '10px 10px',\n backgroundPosition: '0 -23px'\n },\n\n /* Styles applied to the additional bar element if `variant=\"buffer\"` and `color=\"secondary\"`. */\n dashedColorSecondary: {\n backgroundImage: \"radial-gradient(\".concat(backgroundSecondary, \" 0%, \").concat(backgroundSecondary, \" 16%, transparent 42%)\"),\n backgroundSize: '10px 10px',\n backgroundPosition: '0 -23px'\n },\n\n /* Styles applied to the layered bar1 and bar2 elements. */\n bar: {\n width: '100%',\n position: 'absolute',\n left: 0,\n bottom: 0,\n top: 0,\n transition: 'transform 0.2s linear',\n transformOrigin: 'left'\n },\n\n /* Styles applied to the bar elements if `color=\"primary\"`; bar2 if `variant` not \"buffer\". */\n barColorPrimary: {\n backgroundColor: theme.palette.primary.main\n },\n\n /* Styles applied to the bar elements if `color=\"secondary\"`; bar2 if `variant` not \"buffer\". */\n barColorSecondary: {\n backgroundColor: theme.palette.secondary.main\n },\n\n /* Styles applied to the bar1 element if `variant=\"indeterminate or query\"`. */\n bar1Indeterminate: {\n width: 'auto',\n animation: '$indeterminate1 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite'\n },\n\n /* Styles applied to the bar1 element if `variant=\"determinate\"`. */\n bar1Determinate: {\n transition: \"transform .\".concat(TRANSITION_DURATION, \"s linear\")\n },\n\n /* Styles applied to the bar1 element if `variant=\"buffer\"`. */\n bar1Buffer: {\n zIndex: 1,\n transition: \"transform .\".concat(TRANSITION_DURATION, \"s linear\")\n },\n\n /* Styles applied to the bar2 element if `variant=\"indeterminate or query\"`. */\n bar2Indeterminate: {\n width: 'auto',\n animation: '$indeterminate2 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite'\n },\n\n /* Styles applied to the bar2 element if `variant=\"buffer\"`. */\n bar2Buffer: {\n transition: \"transform .\".concat(TRANSITION_DURATION, \"s linear\")\n },\n // Legends:\n // || represents the viewport\n // - represents a light background\n // x represents a dark background\n '@keyframes indeterminate1': {\n // |-----|---x-||-----||-----|\n '0%': {\n left: '-35%',\n right: '100%'\n },\n // |-----|-----||-----||xxxx-|\n '60%': {\n left: '100%',\n right: '-90%'\n },\n '100%': {\n left: '100%',\n right: '-90%'\n }\n },\n '@keyframes indeterminate2': {\n // |xxxxx|xxxxx||-----||-----|\n '0%': {\n left: '-200%',\n right: '100%'\n },\n // |-----|-----||-----||-x----|\n '60%': {\n left: '107%',\n right: '-8%'\n },\n '100%': {\n left: '107%',\n right: '-8%'\n }\n },\n '@keyframes buffer': {\n '0%': {\n opacity: 1,\n backgroundPosition: '0 -23px'\n },\n '50%': {\n opacity: 0,\n backgroundPosition: '0 -23px'\n },\n '100%': {\n opacity: 1,\n backgroundPosition: '-200px -23px'\n }\n }\n };\n};\n/**\n * ## ARIA\n *\n * If the progress bar is describing the loading progress of a particular region of a page,\n * you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`\n * attribute to `true` on that region until it has finished loading.\n */\n\nvar LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(props, ref) {\n var classes = props.classes,\n className = props.className,\n _props$color = props.color,\n color = _props$color === void 0 ? 'primary' : _props$color,\n value = props.value,\n valueBuffer = props.valueBuffer,\n _props$variant = props.variant,\n variant = _props$variant === void 0 ? 'indeterminate' : _props$variant,\n other = _objectWithoutProperties(props, [\"classes\", \"className\", \"color\", \"value\", \"valueBuffer\", \"variant\"]);\n\n var theme = useTheme();\n var rootProps = {};\n var inlineStyles = {\n bar1: {},\n bar2: {}\n };\n\n if (variant === 'determinate' || variant === 'buffer') {\n if (value !== undefined) {\n rootProps['aria-valuenow'] = Math.round(value);\n rootProps['aria-valuemin'] = 0;\n rootProps['aria-valuemax'] = 100;\n var transform = value - 100;\n\n if (theme.direction === 'rtl') {\n transform = -transform;\n }\n\n inlineStyles.bar1.transform = \"translateX(\".concat(transform, \"%)\");\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('Material-UI: You need to provide a value prop ' + 'when using the determinate or buffer variant of LinearProgress .');\n }\n }\n\n if (variant === 'buffer') {\n if (valueBuffer !== undefined) {\n var _transform = (valueBuffer || 0) - 100;\n\n if (theme.direction === 'rtl') {\n _transform = -_transform;\n }\n\n inlineStyles.bar2.transform = \"translateX(\".concat(_transform, \"%)\");\n } else if (process.env.NODE_ENV !== 'production') {\n console.error('Material-UI: You need to provide a valueBuffer prop ' + 'when using the buffer variant of LinearProgress.');\n }\n }\n\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n className: clsx(classes.root, classes[\"color\".concat(capitalize(color))], className, {\n 'determinate': classes.determinate,\n 'indeterminate': classes.indeterminate,\n 'buffer': classes.buffer,\n 'query': classes.query\n }[variant]),\n role: \"progressbar\"\n }, rootProps, {\n ref: ref\n }, other), variant === 'buffer' ? /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(classes.dashed, classes[\"dashedColor\".concat(capitalize(color))])\n }) : null, /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(classes.bar, classes[\"barColor\".concat(capitalize(color))], (variant === 'indeterminate' || variant === 'query') && classes.bar1Indeterminate, {\n 'determinate': classes.bar1Determinate,\n 'buffer': classes.bar1Buffer\n }[variant]),\n style: inlineStyles.bar1\n }), variant === 'determinate' ? null : /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(classes.bar, (variant === 'indeterminate' || variant === 'query') && classes.bar2Indeterminate, variant === 'buffer' ? [classes[\"color\".concat(capitalize(color))], classes.bar2Buffer] : classes[\"barColor\".concat(capitalize(color))]),\n style: inlineStyles.bar2\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? LinearProgress.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n */\n color: PropTypes.oneOf(['primary', 'secondary']),\n\n /**\n * The value of the progress indicator for the determinate and buffer variants.\n * Value between 0 and 100.\n */\n value: PropTypes.number,\n\n /**\n * The value for the buffer variant.\n * Value between 0 and 100.\n */\n valueBuffer: PropTypes.number,\n\n /**\n * The variant to use.\n * Use indeterminate or query when there is no progress value.\n */\n variant: PropTypes.oneOf(['buffer', 'determinate', 'indeterminate', 'query'])\n} : void 0;\nexport default withStyles(styles, {\n name: 'MuiLinearProgress'\n})(LinearProgress);","\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\n\nvar _interopRequireWildcard = require(\"@babel/runtime/helpers/interopRequireWildcard\");\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\n\nvar React = _interopRequireWildcard(require(\"react\"));\n\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\n\nvar _default = (0, _createSvgIcon.default)( /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.88 4.12L13.76 12l-7.88 7.88L8 22l10-10L8 2z\"\n}), 'ArrowForwardIos');\n\nexports.default = _default;"],"names":["CenterDialog","_ref","open","_ref$transitionMillis","transitionMilliseconds","style","className","darkLayerStyle","children","onClose","withoutCloseButton","globalDialogState","isChildrenUnmounted","openedOrder","usePanelAndDialogOpenOrder","c","useResultDialogStyles","transitionDuration","concat","_useState","useState","_useState2","_slicedToArray","isContentShown","setIsContentShown","useEffect","setTimeout","isCompletelyOpened","isOpenAnimationFinished","useOpenAnimationFinished","_jsx","spaceBetween","darkLayer","opacity1","opacity0","onClick","undefined","_jsxs","Card","card","ev","stopPropagation","Button","variant","closeButton","CloseIcon","closeIcon","ShurikenProgress","size","width","height","makeStyles","_ref2","palette","_ref3","_objectSpread","position","top","left","backgroundColor","display","justifyContent","alignItems","transitionProperty","zIndex","opacity","_ref4","maxWidth","maxHeight","borderRadius","minWidth","minHeight","success","main","light","color","lineHeight","marginLeft","marginTop","marginRight","padding","setRegisteredUserResultDialogState","state","changeAppState","addRegisteredUserXp","_x","_x2","_addRegisteredUserXp","apply","arguments","_asyncToGenerator","_regeneratorRuntime","mark","_callee","params","user","xpToAdd","_yield$fetchAddXp","newUser","levelUp","myRank","wrap","_context","prev","next","boostRate","fetchAddXp","userId","sent","isLevelUp","stop","initialState","onCloseCallBack","topSmallMessage","ResultXpDialogWrapper","_useAppState","useAppState","lazyState","setLazyState","timeoutId","clearTimeout","ResultXpDialog_RegisteredUser","useRegisteredUserResultDialogStyles","loaded","useUser","container","xp","progressCard","level","XpProgressArea","rakingContainer","preventDefault","type","initialView","IconButton","arrowIconButton","ArrowForwardIcon","arrowIcon","theme","margin","flexDirection","secondary","marginBottom","paddingTop","paddingBottom","paddingLeft","paddingRight","bottom","transition","overflow","whiteSpace","transform","fontSize","primary","fontWeight","cursor","_x3","_x4","_fetchAddXp","_callee2","formData","res","_context2","FormData","append","toString","fetch","method","body","abrupt","json","useXpProgressStyles","xpProgress","setXpProgress","isStillValid","_getXpProgress","getXpProgress","then","x","width210","width0","necessaryXp","LinearProgress","value","linearProgress","React","props","ref","_props$edge","edge","classes","_props$color","_props$disabled","disabled","_props$disableFocusRi","disableFocusRipple","_props$size","other","_objectWithoutProperties","ButtonBase","_extends","clsx","root","capitalize","edgeStart","edgeEnd","centerRipple","focusRipple","label","withStyles","textAlign","flex","typography","pxToRem","action","active","transitions","create","duration","shortest","alpha","hoverOpacity","colorInherit","colorPrimary","colorSecondary","sizeSmall","name","valueBuffer","_props$variant","useTheme","rootProps","inlineStyles","bar1","bar2","Math","round","direction","process","_transform","determinate","indeterminate","buffer","query","role","dashed","bar","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer","getColor","lighten","darken","backgroundPrimary","backgroundSecondary","colorAdjust","animation","dashedColorPrimary","backgroundImage","backgroundSize","backgroundPosition","dashedColorSecondary","transformOrigin","barColorPrimary","barColorSecondary","right","_interopRequireDefault","require","_interopRequireWildcard","exports","_default","default","createElement","d"],"sourceRoot":""}