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I,qBAAG2I,OAAoBrQ,MAAIsS,OAClD,GAAsCC,EAAAA,EAAAA,YAA9BC,EAAR,KAAoBC,EAApB,KAeA,OAbAP,EAAAA,EAAAA,YAAU,WACR,IAAMQ,EAAoBtB,EAAAA,EAAAA,kBAA4B,CACpDuB,QAAShE,EAAUgD,WAAAA,IAEf7B,EAAME,GAAAA,GACNwC,EAAa/F,EAChBmG,QAAO,SAAArL,GAAI,OAAIA,EAAK0I,QACpBvI,KAAI,SAAAH,GAAI,wBAAUA,EAAS,CAAEyJ,WAAYnB,EAActI,EAAMuI,QAChEkC,EAAa5C,EAAM,CAAE+B,QAASuB,IAC9BjC,EAAc+B,EAAY9B,GAAGjD,SAAQ,SAAA9F,GAAC,OAAIqK,EAAarK,EAAE1G,KAAM0G,MAC/D8K,EAAcD,KACb,CAAEH,EAAQQ,SAEN,CACLC,MAAOhB,GAAa,GACpBrF,KAAM+F,IAkBRO,YAAa,CACX3Q,SAAAA,EACAiM,SAAAA,EACAoC,cAAAA,EACAc,aAAAA,EACAoB,QAAShE,EACTqE,SAAU5D,EACV6D,WAAY3D,GAEd0C,aAAAA,EACAC,OAAAA","sources":["webpack://acaba/./node_modules/@material-ui/lab/esm/TabContext/TabContext.js","webpack://acaba/./src/components/popup/change/element/ElementBox.tsx","webpack://acaba/./src/components/popup/change/element/styled.ts","webpack://acaba/./src/compose/popup/change/ViewModeSelector.tsx","webpack://acaba/./src/compose/popup/change/chat/ChatBubble.tsx","webpack://acaba/./src/compose/popup/change/chat/styled.ts","webpack://acaba/./src/components/card/CardToolbar.tsx","webpack://acaba/./node_modules/@material-ui/lab/esm/TabPanel/TabPanel.js","webpack://acaba/./node_modules/@material-ui/core/esm/BottomNavigationAction/BottomNavigationAction.js","webpack://acaba/./src/compose/popup/change/styled.ts","webpack://acaba/./src/compose/popup/change/Album.tsx","webpack://acaba/./src/components/card/custom/CardActions.tsx","webpack://acaba/./src/model/UserCollectionEx.model.ts","webpack://acaba/./src/use/filter/impl/useChangeFilter.ts"],"sourcesContent":["import * as React from 'react';\n\n/**\r\n * @type {React.Context<{ idPrefix: string; value: string } | null>}\r\n */\nvar Context = React.createContext(null);\n\nif (process.env.NODE_ENV !== 'production') {\n Context.displayName = 'TabContext';\n}\n\nfunction useUniquePrefix() {\n var _React$useState = React.useState(null),\n id = _React$useState[0],\n setId = _React$useState[1];\n\n React.useEffect(function () {\n setId(\"mui-p-\".concat(Math.round(Math.random() * 1e5)));\n }, []);\n return id;\n}\n\nexport default function TabContext(props) {\n var children = props.children,\n value = props.value;\n var idPrefix = useUniquePrefix();\n var context = React.useMemo(function () {\n return {\n idPrefix: idPrefix,\n value: value\n };\n }, [idPrefix, value]);\n return /*#__PURE__*/React.createElement(Context.Provider, {\n value: context\n }, children);\n}\nprocess.env.NODE_ENV !== \"production\" ? void 0 : void 0;\n/**\r\n * @returns {unknown}\r\n */\n\nexport function useTabContext() {\n return React.useContext(Context);\n}\nexport function getPanelId(context, value) {\n var idPrefix = context.idPrefix;\n\n if (idPrefix === null) {\n return null;\n }\n\n return \"\".concat(context.idPrefix, \"-P-\").concat(value);\n}\nexport function getTabId(context, value) {\n var idPrefix = context.idPrefix;\n\n if (idPrefix === null) {\n return null;\n }\n\n return \"\".concat(context.idPrefix, \"-T-\").concat(value);\n}","import { IElementModel } from 'model/Element.model';\nimport { IUserElementModelEx } from 'model/UserElement.model';\nimport React, { FC } from 'react';\nimport { getSize } from 'utils/helpers';\nimport { IClassName } from 'utils/interface';\nimport { ElementBoxWrapper } from './styled';\n\nexport const ElementBox: FC = ({\n className,\n order,\n name,\n group,\n amount,\n}) => {\n\n return (\n \n { order }\n \n { group && }\n { amount > 1 ? x{ amount } : <>}\n \n );\n};\n","import { grayColor, whiteColor } from 'components/theme/constants';\nimport styled, { css } from 'styled-components';\nimport { ISize } from 'utils/interface';\nconst getNameSize = size => ({\n [ISize.S]: 0.75,\n [ISize.M]: 0.65,\n [ISize.L]: 0.6\n}[size])\nexport const ElementBoxWrapper = styled.div`\n position: relative;\n background: ${grayColor[6]};\n font-size: 0.75rem;\n line-height: 0.75rem;\n width: 100%;\n height: 4rem;\n border: 1px solid ${grayColor[17]};\n border-radius: 4px;\n padding: 0.25rem;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n & i {\n white-space: nowrap;\n }\n & strong {\n display: block;\n font-size: ${({ size }) => getNameSize(size)}rem;\n }\n & span {\n background: ${grayColor[15]};\n color: ${whiteColor};\n position: absolute;\n bottom: 0;\n width: 100%;\n margin-left: -4px;\n font-size: 0.6rem;\n padding: 1px 1px 0;\n white-space: nowrap;\n }\n & em {\n font-size: 0.45rem;\n background: white;\n float: right;\n position: absolute;\n bottom: 0;\n right: 0;\n padding: 1px;\n }\n`\nexport const MiniCard = styled.span`\n height: 1rem;\n border: 1px solid ${grayColor[17]};\n border-radius: 3px;\n font-size: 0.7rem;\n padding: 0 2px;\n margin: 0;\n line-height: 1rem;\n background: ${grayColor[14]};\n min-width: 1rem;\n border-right-color: ${grayColor[15]};\n border-bottom-color: ${grayColor[15]};\n display: inline-block;\n white-space: nowrap;\n`","import React, { FC } from 'react';\nimport icons from 'components/theme/icons';\nimport { ButtonIconWrapperStyled } from 'components/button/styled';\nimport { Icon } from 'components/styled';\nimport { SecondaryButton, SecondaryEmptyButton } from 'components/common/common.styled';\n\nexport enum ViewMode {\n SMALL = 'SMALL',\n BIG = 'BIG'\n}\n\nconst { SMALL, BIG } = ViewMode\n\ninterface IProps {\n mode: ViewMode;\n onChange: (mode: ViewMode) => void;\n className: string;\n}\nexport const ViewModeSelector: FC = ({\n mode,\n onChange,\n className\n}) => {\n \n const icon = {\n [SMALL]: icons.viewSmall,\n [BIG]: icons.viewBig\n }[mode]\n\n const Button = {\n [SMALL]: SecondaryButton,\n [BIG]: SecondaryEmptyButton\n }[mode]\n\n return (\n \n );\n};\n","import React, { FC } from 'react'\nimport {\n ChatBubbleWrapperStyled,\n ChatContentWrapperStyled,\n ChatContentStyled,\n ChatDateStyled,\n ChatNameStyled,\n ChatContentWrapperActionStyled\n} from 'compose/popup/change/chat/styled'\nimport { IChildren } from 'utils/interface'\n\ninterface IBubble extends IChildren {\n name?: string;\n date?: string;\n className?: string;\n}\n\nexport const ChatBubble: FC = ({\n name,\n date,\n className,\n children\n}) => {\n\n const Content = name ? ChatContentWrapperStyled : ChatContentWrapperActionStyled\n return (\n \n { name && { name }\n { date }\n }\n \n {children}\n { !name && { date }}\n \n \n )\n}","import { grayColor, hexToRgb, infoColor, roseColor, successColor } from 'components/theme/constants';\nimport styled, { css } from 'styled-components';\nimport { randomColor, randomDarkColor } from 'utils/helpers';\n\nexport const ChatWrapper = styled.ul`\n font-size: 75%;\n padding: 0.5rem;\n margin: 0 0 0.8rem;\n overflow: auto;\n max-height: 50vh;\n\n list-style: none;\n counter-reset: item;\n\n background-color: ${grayColor[2]};\n border-radius: 4px;\n @media (max-width: 768px) {\n max-height: 40vh;\n }\n`\nexport const ChatItem = styled.li`\n counter-increment: item;\n margin-bottom: 0.5rem;\n display: grid;\n grid-template-columns: 1.5rem 1fr;\n\n &:before {\n content: counter(item);\n background: lightblue;\n border-radius: 100%;\n color: white;\n width: 1.6em;\n text-align: center;\n display: inline-block;\n height: 1.6em;\n line-height: 1.8em;\n }\n`\nexport const ChatWrite = styled.div`\n display: grid;\n grid-template-columns: 1fr;\n width: 100%;\n`\n\nexport const ChatBubbleWrapperStyled = styled.div`\n border-radius: 0 0.5rem 0 0.5rem;\n background-color: ${grayColor[6]};\n box-shadow: 0 1px .5px rgba(${hexToRgb(grayColor[1])},.5);\n padding: 0.2rem;\n`\nexport const ChatNameStyled = styled.div`\n font-weight: 500;\n color: ${({ name }) => randomDarkColor(name)};\n`\nexport const ChatDateStyled = styled.span`\n float: right;\n margin: 0 2px 0 0;\n color: ${infoColor[0]};\n position: relative;\n font-style: normal;\n font-weight: 500;\n`\nexport const ChatContentWrapperStyled = styled.div`\n padding: 2px 0 4px 4px;\n box-sizing: border-box;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n`\nexport const ChatContentWrapperActionStyled = styled(ChatContentWrapperStyled)`\n color: ${roseColor[0]};\n font-style: italic;\n font-weight: 400;\n`\nexport const ChatContentStyled = styled.span`\n`","import React, { FC, memo } from 'react';\nimport { IChildren } from 'utils/interface';\nimport { IconDefinition } from 'components/theme/icons';\n\nimport {\n ButtonStyled,\n CardContentStyled, CardToolbarStyled, CardToolbarWrapperStyled,\n} from './styled';\n\nexport interface IProps extends IChildren {\n color?: 'success' | 'info' | ''\n title: string;\n icon?: IconDefinition;\n onClick?: () => void;\n className?: string;\n}\n\n\nconst CardToolbarMemo: FC = ({\n color,\n title,\n icon,\n onClick,\n className,\n children\n}) => {\n\n return (\n <>\n \n \n { title }\n \n { icon && }\n \n \n { children }\n \n \n );\n};\n\nexport const CardToolbar = memo(CardToolbarMemo);\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { withStyles } from '@material-ui/core/styles';\nimport { getPanelId, getTabId, useTabContext } from '../TabContext';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n padding: theme.spacing(3)\n }\n };\n};\nvar TabPanel = /*#__PURE__*/React.forwardRef(function TabPanel(props, ref) {\n var children = props.children,\n className = props.className,\n classes = props.classes,\n value = props.value,\n other = _objectWithoutProperties(props, [\"children\", \"className\", \"classes\", \"value\"]);\n\n var context = useTabContext();\n\n if (context === null) {\n throw new TypeError('No TabContext provided');\n }\n\n var id = getPanelId(context, value);\n var tabId = getTabId(context, value);\n return /*#__PURE__*/React.createElement(\"div\", _extends({\n \"aria-labelledby\": tabId,\n className: clsx(classes.root, className),\n hidden: value !== context.value,\n id: id,\n ref: ref,\n role: \"tabpanel\"\n }, other), value === context.value && children);\n});\nprocess.env.NODE_ENV !== \"production\" ? void 0 : void 0;\nexport default withStyles(styles, {\n name: 'MuiTabPanel'\n})(TabPanel);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport withStyles from '../styles/withStyles';\nimport ButtonBase from '../ButtonBase';\nimport unsupportedProp from '../utils/unsupportedProp';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n transition: theme.transitions.create(['color', 'padding-top'], {\n duration: theme.transitions.duration.short\n }),\n padding: '6px 12px 8px',\n minWidth: 80,\n maxWidth: 168,\n color: theme.palette.text.secondary,\n flex: '1',\n '&$iconOnly': {\n paddingTop: 16\n },\n '&$selected': {\n paddingTop: 6,\n color: theme.palette.primary.main\n }\n },\n\n /* Pseudo-class applied to the root element if selected. */\n selected: {},\n\n /* Pseudo-class applied to the root element if `showLabel={false}` and not selected. */\n iconOnly: {},\n\n /* Styles applied to the span element that wraps the icon and label. */\n wrapper: {\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n flexDirection: 'column'\n },\n\n /* Styles applied to the label's span element. */\n label: {\n fontFamily: theme.typography.fontFamily,\n fontSize: theme.typography.pxToRem(12),\n opacity: 1,\n transition: 'font-size 0.2s, opacity 0.2s',\n transitionDelay: '0.1s',\n '&$iconOnly': {\n opacity: 0,\n transitionDelay: '0s'\n },\n '&$selected': {\n fontSize: theme.typography.pxToRem(14)\n }\n }\n };\n};\nvar BottomNavigationAction = /*#__PURE__*/React.forwardRef(function BottomNavigationAction(props, ref) {\n var classes = props.classes,\n className = props.className,\n icon = props.icon,\n label = props.label,\n onChange = props.onChange,\n onClick = props.onClick,\n selected = props.selected,\n showLabel = props.showLabel,\n value = props.value,\n other = _objectWithoutProperties(props, [\"classes\", \"className\", \"icon\", \"label\", \"onChange\", \"onClick\", \"selected\", \"showLabel\", \"value\"]);\n\n var handleChange = function handleChange(event) {\n if (onChange) {\n onChange(event, value);\n }\n\n if (onClick) {\n onClick(event);\n }\n };\n\n return /*#__PURE__*/React.createElement(ButtonBase, _extends({\n ref: ref,\n className: clsx(classes.root, className, selected ? classes.selected : !showLabel && classes.iconOnly),\n focusRipple: true,\n onClick: handleChange\n }, other), /*#__PURE__*/React.createElement(\"span\", {\n className: classes.wrapper\n }, icon, /*#__PURE__*/React.createElement(\"span\", {\n className: clsx(classes.label, selected ? classes.selected : !showLabel && classes.iconOnly)\n }, label)));\n});\nprocess.env.NODE_ENV !== \"production\" ? void 0 : void 0;\nexport default withStyles(styles, {\n name: 'MuiBottomNavigationAction'\n})(BottomNavigationAction);","import styled, { css } from 'styled-components';\nimport { Button } from 'components/button/custom/styled';\nimport { CardToolbar } from 'components/card/CardToolbar';\nimport { Card, Container, Grid } from 'components/core';\nimport { grayColor, infoColor, roseColor, whiteColor } from 'components/theme/constants';\nimport icons from 'components/theme/icons';\nimport shadows from 'components/theme/shadows';\nimport { Icon } from 'components/styled';\nimport { Drawer } from 'components/drawer/Drawer';\nimport { Album } from './Album';\nimport { Textarea } from 'components/form/styled';\nimport { CardActions } from 'components/card/custom/CardActions';\nimport { TabPanel } from '@material-ui/lab';\nimport { ChatBubble } from './chat/ChatBubble';\nimport { BottomNavigationAction } from '@material-ui/core';\nimport { CustomStepper } from 'components/list/stepper/CustomStepper';\nimport { TextDefault } from 'components/typography';\nimport { ViewModeSelector } from './ViewModeSelector';\nimport { ElementBox } from '../../../components/popup/change/element/ElementBox';\nimport { UserDataButton } from 'components/card/custom/styled';\n\nconst errorColor = '#f42';\n\nexport const AddressCardStyled = styled(Card)`\n font-size: 0.75rem;\n padding: 0.5rem;\n color: ${grayColor[7]};\n background-color: ${grayColor[2]};\n\n & span:first-of-type {\n margin-top: 0;\n font-weight: bold;\n }\n & span {\n margin-top: 0.5rem;\n display: block;\n }\n\n & br {\n display: block;\n margin-top: 0.5em;\n }\n & img {\n position: absolute;\n right: 1.5rem;\n }\n`\nexport const ActionLinksWrapperStyled = styled.div`\n clear: both;\n display: inline-block;\n`\nexport const AlbumStyled = styled(Album)`\n display: flex;\n width: 100%;\n list-style: none;\n margin: 0;\n padding: 0;\n flex-wrap: wrap;\n\n &.selected {\n li > div {\n background-color: ${infoColor[6]};\n }\n }\n`\n\nexport const AlbumThreeRowStyled = styled(AlbumStyled).attrs(props => ({\n item: ElementBox,\n}))`\n display: grid;\n\n grid-template-columns: repeat(3, 1fr);\n grid-column-gap: 3px;\n grid-row-gap: 3px;\n\n @media (max-width: 540px) {\n grid-template-columns: repeat(2, 1fr);\n }\n max-height: 13rem;\n overflow: auto;\n width: 100%;\n`\nexport const AlbumBigCardStyled = styled(AlbumStyled).attrs(props => ({\n item: ElementBox,\n}))`\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n & li {\n width: 4rem;\n }\n`\nexport const Block = styled(Grid).attrs(props => ({\n item: true,\n sm: 12,\n md: 6\n}))`\n width: 100%;\n`\nexport const BlockLarge = styled(Grid).attrs(props => ({\n item: true,\n md: 12,\n lg: 6\n}))`\n width: 100%;\n`\nexport const BlockUser = styled(Block)`\n width: 100%;\n`\nexport const BottomNavigationActionStyled = styled(BottomNavigationAction)`\n background-color: ${grayColor[2]};\n`\n\nexport const ButtonAvatarStyled = styled.span`\n position: relative;\n height: 2.5rem;\n width: 2.5rem;\n margin: 0 0.5rem 0 0;\n`\n\n\nexport const ButtonEdit = styled(Button).attrs(props => ({\n color: 'rose',\n icon: icons.edit\n}))`\n`\nexport const ButtonRandom = styled(Button).attrs(props => ({\n color: 'rose'\n}))`\n`\nexport const ChatBubbleStyled = styled(ChatBubble)`\n position: absolute;\n top: 0;\n right: 0;\n width: 10rem;\n font-size: 70%;\n opacity: 0.5;\n`\nexport const CardActionsStyled = styled(CardActions)`\n ${({ variant }) => variant === 'raw'\n && css`\n border: 0;\n box-shadow: none;\n > div {\n padding: 0 0.5rem 0.5rem;\n }\n `}\n`\nexport const CardActionsTotalStyled = styled(CardActionsStyled)`\n background: transparent;\n color: ${whiteColor};\n`\n\nexport const CardToolbarStyled = styled(CardToolbar)`\n height: 2rem;\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n min-height: 2rem;\n font-size: 0.7rem;\n font-weight: bold;\n display: flex;\n justify-content: space-between;\n width: 100%;\n`\n\n\nexport const CustomStepperStyled = styled(CustomStepper)`\n background: ${grayColor[0]};\n padding: 0.25rem 0;\n border-bottom: 1px solid ${grayColor[1]};\n\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n\n .MuiTypography-body2 {\n font-size: 0.7rem;\n }\n`\nexport const CustomStepperBlockStyled = styled.div`\n height: 2rem;\n width: 100%;\n`\n\nexport const DrawerBottom = styled(Drawer).attrs(props => ({\n variant: 'permanent',\n anchor: 'bottom',\n open: true\n}))`\n opacity: 1;\n .h-drawerDark {\n padding: 0rem;\n\n ${({ theme }) => css`\n ${theme.breakpoints.up('sm')} {\n & > div {\n flex-direction: row;\n }\n }\n `}\n }\n .MuiDrawer-paper {\n border-top: 0;\n }\n`\n\nexport const IntroWrapper = styled.div`\n width: 100%;\n padding: 1.5rem;\n background: ${infoColor[5]};\n font-size: 0.7rem;\n color: ${grayColor[1]};\n`\nexport const MaxiListWrapper = styled.div`\n display: block;\n & li {\n display: grid;\n }\n`\nexport const MessageIcon = styled(Icon)\n .attrs(props => ({\n icon: icons.help,\n size: '2x',\n }))`\n position: absolute;\n right: 2.5rem;\n top: -2.4rem;\n z-index: 9999;\n color: ${infoColor[7]};\n`\n\n\nexport const NumberBig = styled.span`\n font-size: 1.2rem;\n font-weight: bold;\n line-height: 1rem;\n`\nexport const NumberSmall = styled.span`\n line-height: 1rem;\n`\nexport const NumberWrapper = styled.span`\n float: right;\n width: auto;\n color: white;\n padding: 0.25rem 0.375rem;\n display: flex;\n align-items: center;\n flex-flow: row;\n font-size: 0.75rem;\n font-weight: normal;\n\n border-radius: 5px;\n box-shadow: ${shadows.shadowDefault};\n background-color: ${({ error }) => error ? errorColor : grayColor[18]};\n\n & svg {\n margin: 0 0.25rem 0 0.1rem;\n }\n`\nexport const NumberWrapperTotal = styled(NumberWrapper)`\n padding: 0.5rem;\n\n & span {\n font-size: 1.5rem;\n }\n`\nexport const TabWrapperSmallStyled = styled.div`\n display: none;\n @media (min-width: 768px) {\n display: block;\n }\n`\nexport const TabWrapperBigStyled = styled.div`\n display: none;\n @media (min-width: 768px) {\n display: block;\n }\n`\nexport const TabPanelStyled = styled(TabPanel)`\n padding: 0.5rem;\n width: 100%;\n`\nexport const TextareaStyled = styled(Textarea)`\n label {\n font-size: 0.9rem;\n }\n .MuiInputBase-root {\n padding: 0.5rem;\n }\n`\nexport const TextResult = styled(TextDefault)`\n font-size: 0.9rem;\n padding-bottom: 0.5rem;\n`\nexport const TotalButton = styled(Button).attrs(props => ({\n color: 'primary'\n}))`\n float: right;\n`\nexport const TotalError = styled.p`\n color: ${whiteColor};\n font-size: 0.6rem;\n font-weight: bold;\n\n border-radius: 4px;\n line-height: 1rem;\n`\nexport const ToolbarLabelStyled = styled.span`\n font-size: 0.7rem;\n display: block;\n`\n\nexport const UserDataCard = styled.div`\n flex: 1;\n width: 100%;\n`\nexport const UserDataWrapper = styled(Card)`\n width: 100%;\n display: flex;\n box-shadow: none;\n\n @media (min-width: 768px) {\n flex-flow: column;\n align-items: center;\n }\n`\nexport const ViewModeSelectorStyled = styled(ViewModeSelector)`\n position: absolute;\n right: 1rem;\n padding: 0.5rem 0.6rem;\n margin-top: -0.75rem;\n min-width: 2.25rem;\n border: 1px solid ${roseColor[0]};\n`\nexport const ChangeWrapperFullStyled = styled(Container)`\n margin-bottom: 8rem;\n padding: 1rem;\n`\n\n\n\nexport const AddressButton = styled(UserDataButton).attrs(props => ({\n icon: icons.address\n}))`\n`\nexport const ButtonChat = styled(UserDataButton).attrs(props => ({\n iconRight: icons.chat\n}))`\n margin-left: 0.5rem;\n`","import { IUserElementModel } from 'model/UserElement.model';\nimport React, { FC, ReactNode } from 'react';\nimport { IElementMap, TElement } from 'utils/interface';\nimport { MiniCard } from '../../../components/popup/change/element/styled';\n\nexport interface IAlbumProps {\n items?: TElement[];\n elements?: IElementMap;\n userElements?: {[key: string]: IUserElementModel};\n extraContent?: {[key: string]: ReactNode };\n item?: React.FC;\n onClick?: (o: string, i: number) => void;\n variant?: string;\n className?: string;\n}\nexport const Album: FC = ({\n items = [],\n elements = {},\n userElements = {},\n extraContent = {},\n item,\n onClick,\n variant,\n className\n}) => {\n const Item = item || MiniCard\n return (\n
    \n {items.map((o, i) => {\n const el = elements[o]\n const uel = userElements[o]\n const xtra = extraContent[o]\n return (\n
  • onClick(o, i) : null}>\n {o}\n { xtra }\n
  • \n )\n })}\n
\n );\n};\n","import React, { FC } from 'react';\n\nimport { IChildrenOpt, IMenuLink } from 'utils/interface';\n\nimport {\n BottomNavigationStyled,\n CustomActionsCardColor,\n CustomActionsCardWhite,\n CustomCardBody,\n CustomCardColorHeaderToolbar,\n CustomCardWhiteHeaderToolbar,\n UserDataButton,\n} from './styled';\n\nexport type TAnchorLink = 'top' | 'bottom' | 'both';\ninterface IProps extends IChildrenOpt {\n background?: string;\n variant?: 'invert';\n anchorLinks?: TAnchorLink;\n color?: string;\n buttonColor?: string;\n overflow?: boolean;\n content?: React.ReactNode;\n actionLinks?: IMenuLink[];\n className?: string;\n}\n\nexport const \nCardActions: FC = ({\n background = '',\n variant,\n color = '',\n buttonColor = 'primary',\n content = '',\n overflow = undefined,\n children = '',\n actionLinks = [],\n anchorLinks = 'bottom',\n className\n}) => {\n const inverted = variant === 'invert'\n const Wrapper = inverted ? CustomActionsCardWhite : CustomActionsCardColor\n const Header = inverted ? CustomCardColorHeaderToolbar : CustomCardWhiteHeaderToolbar\n const Body = CustomCardBody\n const showActions = !!actionLinks.length\n\n const actions = (\n actionLinks.map((item, i) => (\n {item.text}\n ))\n )\n return (\n \n
\n {content}\n
\n { showActions && anchorLinks !== 'bottom' &&\n { actions }}\n { children && {children}}\n { showActions && anchorLinks !== 'top' &&\n { actions }}\n
\n );\n};\n","import { mapArrayBy, mapBy } from \"utils/helpers\";\nimport { IElementDoubleMap, IMappedElementDoubleMap, IMappedElementMap } from \"utils/interface\";\nimport { IElementModel } from \"./Element.model\";\nimport { IUserCollectionModel } from \"./UserCollection.model\";\nimport { IUserElementModel, IUserElementModelEx } from \"./UserElement.model\";\nimport { IUserExchangeModel } from \"./UserExchange.model\";\n\nexport interface IUserCollectionExModel {\n code: number;\n userCollection: IUserCollectionModel;\n elements: IElementModel[];\n userElements: IUserElementModel[];\n exchanges: IUserExchangeModel[];\n countExchanges: number;\n countFaults: number;\n countRepeated:number;\n}\n\nexport default class UserCollectionExModel {\n/*\n {\n \"id\":119,\n \"iduser\":22,\n \"CodigoC\":5,\n \"Fecha\":\"0000-00-00 00:00:00\",\n \"FechaMod\":\"2019-02-20 11:37:09\",\n \"Caracteristicas\":\"3NNN:SNN\",\n \"Comentarios\":\"\",\n \"EFaltas\":\"\",\n \"ERepes\":\"\"\n }\n*/\n static groups = {\n B: 'group', // B: Basica\n C: 'group', // C: Coloca\n N: 'group', // N: Nuevo Fichaje Act.\n O: 'type' // O: other\n }\n static toElementMaps = (list: IUserCollectionExModel[]): IMappedElementMap => {\n return list?.reduce((tot, items: IUserCollectionExModel): IMappedElementMap => {\n tot[items.elements[0].code] = {\n mappedElements: mapBy(items.elements, 'order'),\n mappedUserElements: (items.userElements || []).reduce((acc, uel) => {\n const ob: IUserElementModelEx = { ...uel, amount: 1 }\n if (acc[uel.order]) {\n ob.amount = acc[uel.order].amount + 1\n }\n acc[uel.order] = ob\n return acc\n }, {})\n }\n return tot\n }, {})\n }\n\n static paginateWithGroups= (list: T[], pagLength: number): T[][] => {\n const get = (arr, pk) => {\n const arrPages = []\n const mapElementsByGroup = {}\n \n arr.forEach((item) => {\n if (item) {\n const key = item[pk]\n if (!mapElementsByGroup[key]) {\n mapElementsByGroup[key] = []\n }\n mapElementsByGroup[key].push(item) \n }\n })\n Object.keys(mapElementsByGroup).forEach((x) => {\n const arrByGroup = mapElementsByGroup[x]\n for (var i = 0, l = arrByGroup.length; i < l; i += pagLength) {\n const elements = arrByGroup.splice(0, pagLength);\n arrPages.push(elements)\n }\n })\n return arrPages\n }\n const byType = mapArrayBy(list, 'type')\n let result = []\n for (var key in byType) {\n result = result.concat(get(byType[key], UserCollectionExModel.groups[key] ? 'group' : 'type'));\n }\n return result\n }\n}\n","import { TFilterOptionUpdate } from \"compose/filter/FilterCompose\";\nimport { ChangeFilter, ChangeState } from \"model/UserChange.model\";\nimport { IUserExchangeModel } from \"model/UserExchange.model\";\nimport moment, { Moment } from \"moment\";\nimport { useEffect, useState } from \"react\";\nimport { filters } from \"setup/constants\";\nimport useI18n from \"use/i18n/useI18n\"\nimport { ISortModelMap } from \"utils/interface\";\nimport FilterModel, { IFilterModelMap, TFilterMapper } from \"../store/model/FilterModel\";\nimport SortModel from \"../store/model/SortModel\";\nimport SortTypeEnum from \"../store/model/SortTypeEnum\";\nimport useFilter from \"../useFilter\";\ninterface ISearchData {\n changeDays: number;\n loginDays: number;\n name: string;\n}\ninterface IUserExchangeModelParsed extends IUserExchangeModel {\n searchData: ISearchData\n}\n\nconst filterId = filters.change\n\n/*\n- ordenar por: estado/fecha/nombre usuario\n- buscar por: nombre de usuario\n- filtros:\n - rango de fechas\n - en progreso/completados/cancelados\n*/\n\n/* SORT */\nconst sortLabelIds = {\n state: 'filter.sort.state',\n date: 'filter.sort.date',\n access: 'filter.sort.access',\n collector: 'filter.sort.collector',\n}\nenum ChangeSort {\n STATE = 'state',\n DATE = 'date',\n ACCESS = 'access',\n COLLECTOR = 'collector'\n} \nconst SORT_MAP: ISortModelMap = {\n [ChangeSort.STATE]: [\n { name: 'change.stateId', type: SortTypeEnum.Number, asc: true },\n ],\n [ChangeSort.ACCESS]: [\n { name: 'searchData.loginDays', type: SortTypeEnum.Date, asc: false },\n { name: 'searchData.changeDays', type: SortTypeEnum.Date, asc: false },\n { name: 'change.stateId', type: SortTypeEnum.Number, asc: true },\n ],\n [ChangeSort.DATE]: [\n { name: 'searchData.changeDays', type: SortTypeEnum.Date, asc: false },\n { name: 'searchData.loginDays', type: SortTypeEnum.Date, asc: false },\n { name: 'change.stateId', type: SortTypeEnum.Number, asc: true },\n ],\n [ChangeSort.COLLECTOR]: [\n { name: 'searchData.name', type: SortTypeEnum.String, asc: true },\n { name: 'change.stateId', type: SortTypeEnum.Number, asc: true },\n ]\n}\n/* FILTER */\nconst labelIds = {\n byCollector: 'filter.by.collector',\n byCollection: 'filter.by.collection',\n byState: 'filter.by.state',\n searchChange: 'filter.by.searchChange',\n stateInProgress: 'filter.label.changeState.inprogress',\n stateCompleted: 'filter.label.changeState.complete',\n stateCancelled: 'filter.label.changeState.cancelled'\n}\nconst { SORT, SEARCH, STATE, COLLECTOR, COLLECTION } = ChangeFilter\n\nconst FILTER_MAP: IFilterModelMap = {\n [STATE]: { name: STATE, label: labelIds.byState, input: ChangeState.PROGRESS, server: true },\n [COLLECTOR]: { name: COLLECTOR, label: labelIds.byCollector, input: '', hideFilter: true },\n [COLLECTION]: { name: COLLECTION, label: labelIds.byCollection, input: '' },\n [SEARCH]: { name: SEARCH, label: labelIds.searchChange, input: '' },\n [SORT]: { name: SORT, label: '', input: ChangeSort.ACCESS },\n}\nconst getSearchData = (item: IUserExchangeModel, now: Moment): ISearchData => {\n const loginDays = moment(item.user.lastLogin * 1000).diff(now, 'days')\n const changeDays = moment(item.change.endDate).diff(now, 'days')\n const name = FilterModel.flatName(item.user.username)\n\n return { loginDays, changeDays, name }\n}\nconst updateOptions = (list: IUserExchangeModelParsed[], t: any): TFilterOptionUpdate[] => {\n const searchOptions = {}\n const stateOptions = [\n { title: t(labelIds.stateInProgress), value: ChangeState.PROGRESS },\n { title: t(labelIds.stateCompleted), value: ChangeState.COMPLETE },\n { title: t(labelIds.stateCancelled), value: ChangeState.CANCELLED }\n ]\n const collectionOptions = {}\n const collectorOptions = {}\n\n list.forEach(item => {\n const { user, exchanges, searchData } = item\n collectorOptions[user.iduser] = { title: user.username, value: user.iduser }\n exchanges.forEach(({ collection }) => {\n if (collection && collection.code) {\n collectionOptions[collection.code] = { title: collection.name, value: collection.code }\n }\n })\n \n searchOptions[user.iduser] = searchData.name\n })\n return [\n { name: STATE, options: stateOptions },\n { name: COLLECTOR, options: FilterModel.EMPTY.concat(SortModel.sortOptions(collectorOptions)) },\n { name: COLLECTION, options: FilterModel.EMPTY.concat(SortModel.sortOptions(collectionOptions)) },\n { name: SEARCH, query: (value: any, input: any) => searchOptions[value].indexOf(input) !== -1 },\n ]\n}\nconst filterMapper: TFilterMapper = (\n { change, user, exchanges },\n { name, input, query }\n) => {\n return {\n [SEARCH]: query && input && query(user.iduser, input),\n [STATE]: true,\n // [STATE]: ({ // no se si es necesario\n // [ChangeState.PROGRESS]: change.stateId < 7,\n // [ChangeState.COMPLETE]: change.stateId >= 7 && change.stateId < 10,\n // [ChangeState.CANCELLED]: change.stateId > 10\n // })[input],\n [COLLECTOR]: user.iduser === input,\n [COLLECTION]: !!exchanges.find(e => e.collection?.code === input),\n }[name]\n}\n\n\nconst useChangeFilter = () => {\n const { t, tm } = useI18n()\n const sortLabels = tm(sortLabelIds)\n\n const {\n getFilter,\n getInit,\n onChange,\n updateFilter,\n values,\n } = useFilter(filterId)\n\n const init = () => {\n useEffect(() => { getInit(FILTER_MAP, t, ChangeSort.ACCESS)}, [])\n }\n\n const process = (list: IUserExchangeModel[]) => {\n let listIds = list.map(({ change }) => change.id).sort()\n const [ parsedList, setParsedList ] = useState()\n\n useEffect(() => {\n const sortFilterOptions = SortModel.updateSortOptions({\n sortMap: SORT_MAP, sortLabels\n })\n const now = moment()\n const parsedList = list\n .filter(item => item.user) // there are changes with a user that is not anymore\n .map(item => ({ ...item, ...{ searchData: getSearchData(item, now) }}))\n updateFilter(SORT, { options: sortFilterOptions })\n updateOptions(parsedList, t).forEach(o => updateFilter(o.name, o))\n setParsedList(parsedList)\n }, [ listIds.join() ])\n \n return {\n model: getFilter || [],\n list: parsedList\n }\n }\n\n const { state, user } = values()\n \n useEffect(() => {\n if (state) {\n updateFilter(SEARCH, { disabled: false })\n }\n if (!state && !user) {\n updateFilter(STATE, { input: ChangeState.PROGRESS })\n }\n }, [ state, user ])\n\n return {\n init,\n process,\n filterProps: {\n onChange,\n filterId,\n updateOptions,\n filterMapper,\n sortMap: SORT_MAP,\n sortName: SORT,\n searchName: SEARCH\n },\n updateFilter,\n values\n } \n}\n\nexport default useChangeFilter"],"names":["Context","TabContext","props","_React$useState","id","setId","children","value","idPrefix","concat","Math","round","random","context","Provider","useTabContext","getPanelId","getTabId","ElementBox","className","order","name","group","amount","size","getSize","dangerouslySetInnerHTML","__html","ElementBoxWrapper","styled","grayColor","ISize","getNameSize","whiteColor","MiniCard","ViewMode","SMALL","BIG","ViewModeSelector","mode","onChange","icon","icons","Button","SecondaryButton","SecondaryEmptyButton","onClick","ChatBubble","date","Content","ChatContentWrapperStyled","ChatContentWrapperActionStyled","ChatWrapper","ChatItem","ChatWrite","ChatBubbleWrapperStyled","hexToRgb","ChatNameStyled","randomDarkColor","ChatDateStyled","infoColor","roseColor","ChatContentStyled","CardToolbarMemo","color","title","CardToolbar","memo","TabPanel","ref","classes","other","TypeError","tabId","root","hidden","role","withStyles","theme","padding","spacing","BottomNavigationAction","label","selected","showLabel","ButtonBase","iconOnly","focusRipple","event","wrapper","transition","transitions","create","duration","short","minWidth","maxWidth","palette","text","secondary","flex","paddingTop","primary","main","display","alignItems","justifyContent","width","flexDirection","fontFamily","typography","fontSize","pxToRem","opacity","transitionDelay","AddressCardStyled","Card","ActionLinksWrapperStyled","AlbumStyled","items","elements","userElements","extraContent","item","variant","Item","map","o","i","el","uel","xtra","key","AlbumThreeRowStyled","attrs","AlbumBigCardStyled","Block","Grid","sm","md","BlockLarge","lg","ButtonAvatarStyled","CardActionsStyled","background","buttonColor","content","overflow","undefined","actionLinks","anchorLinks","inverted","Wrapper","CustomActionsCardWhite","CustomActionsCardColor","Header","CustomCardColorHeaderToolbar","CustomCardWhiteHeaderToolbar","Body","CustomCardBody","showActions","length","actions","disabled","showLabels","css","CardActionsTotalStyled","CardToolbarStyled","CustomStepperStyled","CustomStepper","CustomStepperBlockStyled","DrawerBottom","Drawer","anchor","open","breakpoints","up","MaxiListWrapper","MessageIcon","Icon","NumberBig","NumberSmall","NumberWrapper","shadows","error","NumberWrapperTotal","TabPanelStyled","TextareaStyled","Textarea","TextResult","TextDefault","TotalError","ToolbarLabelStyled","ViewModeSelectorStyled","ChangeWrapperFullStyled","Container","UserDataButton","iconRight","UserCollectionExModel","groups","B","C","N","O","toElementMaps","list","reduce","tot","code","mappedElements","mapBy","mappedUserElements","acc","ob","paginateWithGroups","pagLength","get","arr","pk","arrPages","mapElementsByGroup","forEach","push","Object","keys","x","arrByGroup","l","splice","byType","mapArrayBy","result","ChangeSort","filterId","filters","sortLabelIds","state","access","collector","SORT_MAP","STATE","type","SortTypeEnum","asc","ACCESS","DATE","COLLECTOR","labelIds","SORT","ChangeFilter","SEARCH","COLLECTION","FILTER_MAP","input","ChangeState","server","hideFilter","getSearchData","now","loginDays","moment","user","lastLogin","diff","changeDays","change","endDate","FilterModel","username","updateOptions","t","searchOptions","stateOptions","collectionOptions","collectorOptions","exchanges","searchData","iduser","collection","options","SortModel","query","indexOf","filterMapper","find","e","useI18n","sortLabels","tm","useFilter","getFilter","getInit","updateFilter","values","useEffect","init","process","listIds","sort","useState","parsedList","setParsedList","sortFilterOptions","sortMap","filter","join","model","filterProps","sortName","searchName"],"sourceRoot":""}