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EAAG,CAAEJ,KAAK,EAAOI,OAAO,GACxB,EAAG,CAAEJ,KAAK,EAAOI,OAAO,IACxB6E,wCCnBG,IAAKlH,kEAAAA,GAAAA,EAAAA,EAAAA,KAAAA,GAAAA,OAAAA,EAAAA,EAAAA,MAAAA,GAAAA,QAAAA,EAAAA,EAAAA,SAAAA,GAAAA,YAAAA,IAAAA,EAAAA,SAKSD,EAAAA,aAAAA,EAkBZ2W,WAAa,SAACC,GAAD,MAAyD,MAArBA,EAAYlc,MAlBjDsF,EAmBZ6W,QAAU,SAACD,GAAD,MAAyD,MAArBA,EAAYlc,MAnB9CsF,EAoBZ8W,eAAiB,SAACpc,GAAD,MAA8C,CACpEqc,EAAG9W,EAA0B+W,MAC7BC,EAAGhX,EAA0BiX,SAC7B,GAAKjX,EAA0BkX,MAC/Bzc","sources":["webpack://acaba/./node_modules/classnames/index.js","webpack://acaba/./src/components/album/styled.ts","webpack://acaba/./src/components/album/AlbumWrapper.tsx","webpack://acaba/./src/components/button/ButtonList.tsx","webpack://acaba/./src/components/popup/collection/PopupCollection.tsx","webpack://acaba/./src/compose/styled.ts","webpack://acaba/./src/components/popup/collection/styled.ts","webpack://acaba/./src/compose/Description.tsx","webpack://acaba/./src/components/popup/share/styled.ts","webpack://acaba/./src/use/popup/impl/usePopupCollection.ts","webpack://acaba/./src/compose/popup/PopupCollectionCompose.tsx","webpack://acaba/./src/components/popup/edit/styled.ts","webpack://acaba/./src/components/popup/edit/EditContainer.tsx","webpack://acaba/./src/use/popup/impl/usePopupCollectionEdit.ts","webpack://acaba/./src/compose/popup/PopupCollectionEditCompose.tsx","webpack://acaba/./src/use/popup/impl/usePopupCollectionShare.ts","webpack://acaba/./node_modules/react-share/es/utils/assert.js","webpack://acaba/./node_modules/react-share/es/utils/objectToGetParams.js","webpack://acaba/./node_modules/react-share/es/ShareButton.js","webpack://acaba/./node_modules/react-share/es/hocs/createShareButton.js","webpack://acaba/./node_modules/react-share/es/FacebookShareButton.js","webpack://acaba/./node_modules/react-share/es/TwitterShareButton.js","webpack://acaba/./node_modules/react-share/es/WhatsappShareButton.js","webpack://acaba/./src/components/popup/share/ShareButton.tsx","webpack://acaba/./src/components/popup/share/ShareContainer.tsx","webpack://acaba/./src/compose/popup/PopupCollectionShareCompose.tsx","webpack://acaba/./src/model/UserCollection.model.ts","webpack://acaba/./src/model/UserElement.model.ts"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n 'use strict';\n\n var hasOwn = {}.hasOwnProperty;\n function classNames() {\n var classes = '';\n for (var i = 0; i < arguments.length; i++) {\n var arg = arguments[i];\n if (arg) {\n classes = appendClass(classes, parseValue(arg));\n }\n }\n return classes;\n }\n function parseValue(arg) {\n if (typeof arg === 'string' || typeof arg === 'number') {\n return arg;\n }\n if (typeof arg !== 'object') {\n return '';\n }\n if (Array.isArray(arg)) {\n return classNames.apply(null, arg);\n }\n if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n return arg.toString();\n }\n var classes = '';\n for (var key in arg) {\n if (hasOwn.call(arg, key) && arg[key]) {\n classes = appendClass(classes, key);\n }\n }\n return classes;\n }\n function appendClass(value, newClass) {\n if (!newClass) {\n return value;\n }\n if (value) {\n return value + ' ' + newClass;\n }\n return value + newClass;\n }\n if (typeof module !== 'undefined' && module.exports) {\n classNames.default = classNames;\n module.exports = classNames;\n } else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n // register as 'classnames', consistent with npm package name\n define('classnames', [], function () {\n return classNames;\n });\n } else {\n window.classNames = classNames;\n }\n})();","import { MaxiListWrapper } from 'compose/popup/change/styled'\nimport styled, { css } from 'styled-components'\n\n\nexport const AlbumWrapperStyled = styled.ul`\n margin: 0 0.2rem;\n padding: 1rem;\n list-style: none;\n\n display: grid;\n grid-template-columns: repeat(8,1fr);\n grid-column-gap: 3px;\n grid-row-gap: 3px;\n & > li {\n width: 7rem;\n }\n`\nexport const MaxiListWrapperAlbum = styled(MaxiListWrapper)`\n \n & > li {\n span {\n height: 2rem;\n overflow: hidden;\n }\n }\n ${({ variant }) => variant === 'list' ?\n css`\n margin-top: 0.2rem;\n `\n : css`\n margin-top: 0.2rem;\n margin-bottom: 0.2rem;\n &, & > ul {\n height: auto;\n max-height: 10rem;\n }\n `}\n`\n\nexport const GroupStyled = styled.p`\n margin: 0;\n height: 0.6rem;\n width: 14rem;\n font-size: 0.5rem;\n`\n","import React, { FC } from 'react';\nimport { IAlbumProps } from 'compose/popup/change/Album';\nimport { IElementModel } from 'model/Element.model';\nimport { AlbumWrapperStyled, GroupStyled, MaxiListWrapperAlbum } from './styled';\n\nexport interface IAlbumWrapperProps {\n album: React.FC;\n albumProps: Omit;\n pages: IElementModel[][];\n variant?: 'list' | 'album';\n}\nexport const AlbumWrapper: FC = ({\n album: Album,\n albumProps,\n variant,\n pages,\n}) => {\n let lastKey = ''\n return (\n (\n {pages.map((page, index) => {\n const items = page.map((item) => item.order)\n const { group, type } = page[0]\n // const lastGroup = index - 1 < 0 ? undefined : pages[index - 1][0].group\n\n const key = `${type && type !== 'B' && type !== group\n ? type\n : group}`\n const showGroup = lastKey !== key || index % 8 === 0\n\n lastKey = key\n return (\n
  • \n \n \n \n \n
  • \n )})}\n
    )\n );\n};\n","import React, { FC, memo, useEffect, useState } from 'react';\nimport { ButtonListItemStyled, ButtonListWrapper, SwitchStyled } from './styled';\nimport { RawButtonWithIcon, IButtonProps } from 'components/button/RawButtonWithIcon';\nimport { PrimaryButton, SecondaryButton, TransparentButton } from 'components/common/common.styled';\nimport { Text1 } from 'components/typography';\nimport { HeroColor } from 'components/hero/Hero';\nimport { ISimpleButtonProps } from 'utils/interface';\n\nexport enum IButtonTypes {\n 'default',\n 'primary',\n 'secondary'\n}\n\nexport interface IButtonListProps extends IButtonProps {\n color?: HeroColor;\n toggle?: boolean;\n message?: string;\n type?: IButtonTypes;\n list?: ISimpleButtonProps[];\n}\ninterface IProps {\n buttons: IButtonListProps[];\n}\nconst ButtonListMemo: FC = ({\n buttons\n}) => {\n return (\n \n { buttons.map(({ toggle, message, children, type, list, color, ...rest}, i: number) => (\n \n { list \n ? (\n <>\n { children }\n
      {list.map(({ onClick, label }) =>\n
    • \n \n { label }\n \n
    • \n )}\n
    \n \n )\n : \n \n { message\n ? {children} {message} \n : children\n }\n { toggle !== undefined && }\n \n }\n
    ))}\n
    \n );\n};\n\nexport const ButtonList = memo(ButtonListMemo)\n\nfunction getItem(type: IButtonTypes = IButtonTypes.default) {\n return {\n [IButtonTypes.default]: TransparentButton,\n [IButtonTypes.primary]: PrimaryButton,\n [IButtonTypes.secondary]: SecondaryButton,\n }[type]\n}\n\ninterface ISwitchProps {\n checked: boolean;\n disabled?: boolean;\n}\nconst CustomSwitch: FC = ({\n checked,\n disabled = false\n}) => {\n const [ isDisabled, setDisabled ] = useState(disabled)\n \n useEffect(() => {\n setDisabled(false)\n }, [ checked ])\n const handleClick = e => {\n e.preventDefault()\n setDisabled(true)\n }\n return \n}","import { ButtonList, IButtonListProps } from 'components/button/ButtonList';\nimport { NameWrapper } from 'components/common/NameWrapper';\nimport { FullModalStyled, HeroStyled } from 'compose/popup/_shared/styled';\nimport CollectionModel, { ICollectionModel } from 'model/Collection.model';\nimport React, { FC } from 'react';\nimport { IChildren } from 'utils/interface';\nimport { LinearProgressStyled } from 'components/status/styled'\nimport { BigNameCollectionStyled, CardRaisedCollectionStyled, DescriptionStyled } from './styled';\nimport { CardPopupStyled } from 'components/card/styled';\n\ninterface IProps extends IChildren {\n collection: ICollectionModel;\n open?: boolean;\n close?: () => void;\n refresh?: boolean;\n showProgress?: boolean;\n description?: boolean;\n noPadding?: boolean;\n contentHero?: React.ReactNode;\n buttons: IButtonListProps[];\n title?: React.ReactNode;\n}\nexport const PopupCollection: FC = ({\n collection,\n open,\n close,\n refresh,\n showProgress,\n description,\n contentHero,\n noPadding,\n buttons,\n title,\n children,\n}) => {\n\n const { code, name = '', description: collectionDescription } = collection || {}\n const image = code && CollectionModel.getImage(code)\n\n return (<>{ open && code &&\n {name}}\n >\n { showProgress && }\n
    \n \n \n \n { description && (\n \n
    \n )}\n { contentHero }\n
    \n \n <>\n { children }\n {!refresh && !!buttons.length && }\n \n \n \n });\n};\n","import styled, { css } from 'styled-components';\nimport { PrimaryEmptyButton, TextStyled } from 'components/common/common.styled';\nimport icons from 'components/theme/icons';\n\nexport const DescriptionWrapperStyled = styled.div`\n display: flex;\n width: 100%;\n flex-wrap: wrap;\n justify-content: space-around;\n position: relative;\n`\nexport const DescriptionTextStyled = styled(TextStyled).attrs(props => ({\n smallText: true,\n}))`\n text-align: justify;\n max-height: 4.66rem;\n overflow: hidden;\n &.opened {\n max-height: none;\n height: auto;\n }\n`\nexport const MoreButton = styled(PrimaryEmptyButton).attrs(props => ({\n iconRight: icons.arrowRight\n}))`\n &.MuiButton-outlined {\n right: 1rem;\n background: white;\n position: absolute;\n bottom: 0rem;\n padding: 0;\n }\n\n`\n\n","import { TextStyled } from 'components/common/common.styled'\nimport { Description } from 'compose/Description'\nimport styled, { css } from 'styled-components'\nimport { CardRaisedStyled } from '../../../compose/popup/_shared/styled'\n\nexport const BigNameCollectionStyled = styled.span`\n font-size: 0.8rem;\n z-index: 1;\n`\nexport const CardRaisedCollectionStyled = styled(CardRaisedStyled).attrs(\n { color: 'gray' }\n)`\n`\nexport const DescriptionStyled = styled(Description)`\n ${({ theme }) => css`\n ${theme.breakpoints.up('md')} {\n width: 25rem;\n }\n ${theme.breakpoints.up('sm')} {\n width: 20rem;\n }\n `}\n padding: 1rem;\n text-align: justify;\n`","import React, { FC, useEffect, useRef, useState } from 'react';\nimport useI18n from 'use/i18n/useI18n';\nimport { DescriptionWrapperStyled, DescriptionTextStyled, MoreButton } from 'compose/styled';\n\ninterface IProps {\n className?: string;\n toggle?: boolean;\n}\nexport const Description: FC = ({\n className,\n toggle,\n children\n}) => {\n const { t } = useI18n()\n const more = t('common.more')\n const less = t('common.less')\n const [ opened, open ] = useState(false)\n const [ showButton, setShowButton ] = useState(false)\n const onClick = () => {\n open(!opened)\n if (!toggle) {\n setShowButton(false)\n }\n }\n const containerRef = useRef(null);\n useEffect(() => {\n const hasClamping = (el) => {\n const { clientHeight, scrollHeight } = el;\n return clientHeight !== scrollHeight;\n };\n if (containerRef.current) {\n setShowButton(hasClamping(containerRef.current));\n }\n }, [containerRef])\n\n return (\n \n { children }\n \n { showButton && { opened ? less : more }}\n \n )\n}\n\n","import styled, { css } from 'styled-components'\nimport { MiniCard } from 'components/popup/change/element/styled'\nimport { AlbumStyled, MaxiListWrapper } from 'compose/popup/change/styled'\nimport { dangerColor, facebookColor, grayColor, hexToRgb, successColor, twitterColor, whatsappColor, whiteColor } from 'components/theme/constants'\nimport { ElementBox } from 'components/popup/change/element/ElementBox'\nimport UserElementModel, { IUserElementModelTypeEnum } from 'model/UserElement.model'\nimport shadows from 'components/theme/shadows'\nimport { buttonBackground } from 'components/common/styled'\nimport { Text1Styled } from 'compose/popup/cookies/styled'\nimport { CardCollectionSkeleton } from 'components/card/styled'\n\nconst shareWidth = '62rem'\n\nexport type IElementType = 'fault' | 'repeated' | ''\nconst getElementBackgroundColor = (variant: IUserElementModelTypeEnum) => {\n return {\n [IUserElementModelTypeEnum.FAULT]: dangerColor[8],\n [IUserElementModelTypeEnum.REPEATED]: successColor[8],\n [IUserElementModelTypeEnum.NONE]: 'inherit'\n }[variant]\n}\nexport const ElementBoxShareStyled = styled(ElementBox).attrs(props => ({\n variant: UserElementModel.getTypeVariant(props.type)\n}))`\n height: 2.35rem;\n line-height: 0.5rem;\n font-size: 0.5rem;\n overflow: hidden;\n padding: 1px;\n & strong {\n font-size: 0.52rem;\n width: 2.5rem;\n }\n & span {\n font-size: 0.4rem;\n margin: 0 -1px;\n }\n ${({ variant }) => css`\n background-color: ${getElementBackgroundColor(variant)};\n border: 1px solid;\n `}\n`\nexport const ElementBoxMiniCardShareStyled = styled(ElementBoxShareStyled)`\n height: 1rem;\n width: auto;\n font-size: 0.5rem;\n line-height: 0.4rem;\n padding: 2px;\n \n & strong {\n display: none;\n }\n & span {\n display: none;\n }\n border-color: ${grayColor[6]};\n\n`\nexport const AlbumShareStyled = styled(AlbumStyled).attrs(props => ({\n item: ElementBoxShareStyled\n}))`\n display: grid;\n\n grid-template-columns: repeat(3, 1fr);\n grid-column-gap: 3px;\n grid-row-gap: 3px;\n\n height: 8rem;\n overflow: auto;\n margin: 0;\n`\nexport const AlbumShareTextStyled = styled(AlbumStyled).attrs(props => ({\n item: ElementBoxMiniCardShareStyled\n}))`\n display: flex;\n flex-wrap: wrap;\n\n margin: 0;\n\n > li {\n\n }\n`\nexport const HiddenCanvasStyled = styled.div`\n position: absolute;\n width: ${shareWidth};\n background-color: ${whiteColor};\n left: 10000px;\n ${({ hidden }) => hidden && css`\n display: none;\n `}\n`\nexport const ImgContainerStyled = styled.div`\n overflow: scroll;\n width: 100%;\n & img {\n width: auto;\n }\n`\n\nexport const MiniCardShareStyled = styled(MiniCard)`\n height: 2.35rem;\n line-height: 0.5rem;\n font-size: 0.5rem;\n overflow: hidden;\n`\nexport const ShareDescriptionStyled = styled(Text1Styled)`\n padding: 1rem;\n text-align: justify;\n`\nexport const ShareButtonsWrapperStyled = styled.div`\n padding: 1rem;\n display: flex;\n list-style: none;\n\n & button {\n margin: 0 0 0 0.5rem;\n height: 2rem;\n width: 2rem;\n border-radius: 50%;\n border: 0;\n color: ${whiteColor};\n\n &.facebook {\n ${buttonBackground({ color: 'facebook' })};\n }\n &.twitter {\n ${buttonBackground({ color: 'twitter' })};\n }\n &.whatsapp {\n ${buttonBackground({ color: 'whatsapp' })};\n }\n }\n`\nexport const ShareContainerStyled = styled.div`\n border: 1px solid;\n`\nexport const ShareContainerWrapperStyled = styled.div`\n position: relative;\n height: 60vh;\n overflow: auto;\n border: 1px solid ${grayColor[0]};\n\n`\n\nexport const ShareTitleStyled = styled.p`\n width: ${shareWidth};\n padding: 0.5rem 1rem;\n margin: 0;\n font-style: italic;\n`\n\nexport const ShareWrapperStyled = styled.ul`\n width: ${shareWidth};\n border-top: 1px solid ${grayColor[0]};\n margin: 0 0.2rem;\n padding: 1rem;\n list-style: none;\n\n ${({ variant }) => variant === 'list' ?\n css`\n display: flex;\n flex-direction: column;\n & > li {\n margin-bottom: 0.75rem;\n &:last-of-type {\n margin-bottom: 0rem;\n }\n }\n `\n : \n css`\n display: grid;\n grid-template-columns: repeat(8,1fr);\n grid-column-gap: 3px;\n grid-row-gap: 3px;\n & > li {\n width: 7rem;\n }\n `\n } \n\n`\nexport const MaxiListWrapperShare = styled(MaxiListWrapper)`\n \n & > li {\n span {\n height: 2rem;\n overflow: hidden;\n }\n }\n ${({ variant }) => variant === 'list' ?\n css`\n margin-top: 0.2rem;\n `\n : css`\n margin-top: 0.2rem;\n margin-bottom: 0.2rem;\n &, & > ul {\n height: auto;\n max-height: 10rem;\n }\n `}\n`\n\nexport const GroupStyled = styled.p`\n margin: 0;\n height: 0.6rem;\n width: 14rem;\n font-size: 0.5rem;\n`\n","import { useState, useEffect } from \"react\"\nimport { navigate } from 'gatsby'\nimport { POPUP_COLLECTION_QUERY } from \"graphql/query\"\nimport { modals, nav, routes } from \"setup/constants\"\n\nimport UserCollectionModel from \"model/UserCollection.model\"\nimport { IUserCollectionExModel } from \"model/UserCollectionEx.model\"\nimport useAuth from \"use/auth/useAuth\"\nimport { useControlledMutation, useQueryAll } from \"use/fetch/useQuery\"\nimport useI18n from \"use/i18n/useI18n\"\nimport { useModalCollection, useModalCollectionEdit, useModalCollectionShare, useModalConfirm } from \"use/modal/useModal\"\nimport useFullModal, { IProcess } from \"../useFullModal\"\n\nimport { DELETE_COLLECTION_MUTATION, FAV_COLLECTION_MUTATION, SLEEP_COLLECTION_MUTATION } from \"graphql/mutation\"\nimport { IUserExchangeModel } from \"model/UserExchange.model\"\nimport { ChangeFilter, ChangeState, StatesCancelled, StatesCompleted, StatesInProgress } from \"model/UserChange.model\"\nimport useChangeFilter from \"use/filter/impl/useChangeFilter\"\nimport { IPopupCollectionData } from \"use/popup/impl/interface\"\nimport { IPopupCollectionResult } from \"compose/popup/interface\"\nimport environment from 'setup/environment'\n\n\nconst modalId = modals.collection\nconst labelIds = {\n changesInProgress: 'popup.collection.changes.inProgress',\n changesCompleted: 'popup.collection.changes.completed',\n changesCancelled: 'popup.collection.changes.cancelled',\n confirmDelete: 'confirm.deleteCollection',\n countExchanges: 'popup.collection.countExchanges',\n countFaults: 'popup.collection.countFaults',\n countRepeated: 'popup.collection.countRepeated',\n delete: 'popup.collection.delete',\n edit: 'popup.collection.edit',\n fav: 'popup.collection.fav',\n historical: 'popup.collection.historical',\n index: 'popup.collection.index',\n join: 'popup.collection.join',\n share: 'popup.collection.share.title',\n sleep: 'popup.collection.sleep',\n sleepMessage: 'popup.collection.sleepMessage',\n year: 'popup.collection.year',\n serverError: 'server.database'\n}\n\nconst { STATE, COLLECTOR, COLLECTION } = ChangeFilter\nconst { PROGRESS, COMPLETE, CANCELLED } = ChangeState\n\n\n\nconst usePopupCollection = () => useFullModal({\n labelIds,\n modalId,\n process\n})\n\nexport default usePopupCollection\n\n\nfunction process (data: IPopupCollectionData): IPopupCollectionResult & IProcess {\n const { t, tm } = useI18n()\n const labels = tm(labelIds)\n const userId = useAuth().user\n const { refetch, close: closeCollection } = useModalCollection()\n const { open: openConfirm, close: closeConfirm } = useModalConfirm()\n const { open: openCollectionEdit } = useModalCollectionEdit()\n const { open: openCollectionShare } = useModalCollectionShare()\n const { updateFilter } = useChangeFilter()\n const [ refreshing, setRefreshing ] = useState(false)\n const [ favToggle, setFavToggle ] = useState(false)\n const [ sleepToggle, setSleepToggle ] = useState(false)\n const { code, name } = data || {}\n const variables = {\n codes: [code],\n userId,\n changes: true,\n userElements: true\n }\n\n const refresh = () => code && get(variables)\n const toggleFav = () => setFavToggle(!favToggle)\n const toggleSleep = () => setSleepToggle(!sleepToggle)\n // DATA MANAGEMENT\n const { get, loading, list } = useQueryAll('userCollectionEx', POPUP_COLLECTION_QUERY)\n const fail = () => {\n setRefreshing(true)\n setTimeout(() => {\n setRefreshing(false)\n })\n }\n const [ favCollection, favResult ] = useControlledMutation({\n name: 'favCollection',\n mutation: FAV_COLLECTION_MUTATION,\n refetch,\n success: toggleFav,\n fail\n })\n\n const [ sleepCollection, sleepResult ] = useControlledMutation({\n name: 'sleepCollection',\n mutation: SLEEP_COLLECTION_MUTATION,\n refetch,\n success: toggleSleep,\n fail\n })\n\n const [ deleteCollection, deleteResult ] = useControlledMutation({\n name: 'deleteCollection',\n mutation: DELETE_COLLECTION_MUTATION,\n refetch,\n okMessage: true,\n success: closeCollection\n })\n\n const onClickDelete = () => {\n openConfirm({\n accept: () => {\n deleteCollection({ variables: { params: { code, userId, value: 1 } }})\n closeConfirm()\n },\n cancel: closeConfirm,\n // text: t(labelIds.confirmDelete),\n text: t('server.database'),\n severity: 'info'\n })\n }\n\n const { userCollection, countRepeated, countFaults, exchanges } = list && list[0] || {}\n const { collection, priority = 1 } = userCollection || {}\n \n const numExchanges = getNumExchanges(exchanges)\n const values = userCollection\n ? {\n year: collection.year || null,\n fav: favToggle,\n sleep: sleepToggle,\n countRepeated,\n countFaults,\n } : {}\n\n const changesLabels = {\n changesInProgress: numExchanges.inProgress && t(labels.changesInProgress, { num: numExchanges.inProgress }),\n changesCompleted: numExchanges.completed && t(labels.changesCompleted, { num: numExchanges.completed }),\n changesCancelled: numExchanges.cancelled && t(labels.changesCancelled, { num: numExchanges.cancelled })\n }\n\n useEffect(() => {\n const { fav, sleep } = UserCollectionModel.parsePriority(priority)\n setFavToggle(fav)\n setSleepToggle(sleep)\n }, [ priority ])\n\n const editProd = () => navigate(nav.userCollectionEditRoute(code))\n const editDev = () => {\n closeCollection()\n openCollectionEdit({ collection })\n }\n\n const goToChanges = (state: ChangeState) => {\n updateFilter(STATE, { input: state })\n updateFilter(COLLECTOR, { input: '' })\n updateFilter(COLLECTION, { input: code })\n navigate(routes.userChanges)\n }\n const actions = {\n edit: environment.isProduction ? editProd : editDev,\n changesInProgress: () => goToChanges(PROGRESS),\n changesCompleted: () => goToChanges(COMPLETE),\n changesCancelled: () => goToChanges(CANCELLED),\n index: () => navigate(nav.publicCollection({ name })),\n // share: () => navigate(nav.userCollectionShareRoute(code)),\n share: () => {\n closeCollection()\n openCollectionShare({ collection })\n }, \n fav: () => {\n setSleepToggle(false)\n favCollection({ variables: { params: { code, userId, value: favToggle ? 0 : 1 } }})\n },\n sleep: () => {\n setFavToggle(false)\n sleepCollection({ variables: { params: { code, userId, value: sleepToggle ? 0 : 1 } }})\n },\n delete: onClickDelete\n }\n \n return {\n refresh,\n labels: {\n ...labels,\n ...changesLabels\n },\n values,\n actions,\n collection,\n showProgress: loading || favResult.loading || sleepResult.loading || deleteResult.loading,\n refreshing\n }\n}\n\n\nfunction getNumExchanges(exchanges: IUserExchangeModel[] = []) {\n const states = {}\n const toStateInit = (num) => states[num] = 0\n const toStateAdd = (num) => states[num]++\n const reduceStates = (tot, state) => { tot+=states[state]; return tot }\n StatesInProgress.forEach(toStateInit)\n StatesCompleted.forEach(toStateInit)\n StatesCancelled.forEach(toStateInit)\n exchanges.forEach((exchange) => toStateAdd(exchange.change.stateId))\n\n return {\n inProgress: StatesInProgress.reduce(reduceStates, 0),\n completed: StatesCompleted.reduce(reduceStates, 0),\n cancelled: StatesCancelled.reduce(reduceStates, 0),\n }\n}","import React, { FC } from 'react'\nimport icons from 'components/theme/icons'\nimport { CardItem } from './_shared/CardItem'\n\nimport {\n ListStyled,\n} from './_shared/styled'\n\nimport { PopupCollection } from 'components/popup/collection/PopupCollection'\nimport usePopupCollection from 'use/popup/impl/usePopupCollection'\nimport { IButtonListProps, IButtonTypes } from 'components/button/ButtonList'\nimport { HeroColor } from 'components/hero/Hero'\nimport { DescriptionStyled } from 'components/popup/collection/styled'\n\nexport const PopupCollectionCompose: FC = () => {\n const { labels, result, fullModal } = usePopupCollection()\n const {\n collection,\n actions,\n refreshing,\n showProgress,\n values\n } = result\n\n const listHistorical = [\n labels.changesInProgress && { label: labels.changesInProgress, onClick: actions.changesInProgress },\n labels.changesCompleted && { label: labels.changesCompleted, onClick: actions.changesCompleted },\n labels.changesCancelled && { label: labels.changesCancelled, onClick: actions.changesCancelled },\n ].filter(Boolean)\n\n const buttons: IButtonListProps[] = actions ? [\n { children: labels.edit, icon: icons.edit, onClick: actions.edit, type: IButtonTypes.primary },\n listHistorical.length && { children: labels.historical, list: listHistorical, icon: icons.historical },\n { children: labels.fav, icon: icons.fav, onClick: actions.fav, toggle: values.fav },\n { children: labels.sleep, message: labels.sleepMessage, icon: icons.sleep, onClick: actions.sleep, toggle: values.sleep },\n { children: labels.share, icon: icons.share, onClick: actions.share },\n { children: labels.index, icon: icons.index, onClick: actions.index },\n { color: HeroColor.danger, children: labels.delete, icon: icons.delete, onClick: actions.delete }\n ].filter(Boolean) : []\n\n return (\n <>{fullModal.open &&\n \n \n \n \n \n \n \n }\n \n )\n}\n","import styled, { css } from 'styled-components'\nimport { AlbumStyled } from 'compose/popup/change/styled'\nimport { ElementBoxShareStyled } from '../share/styled'\n\nexport const EditContainerStyled = styled.div`\n border: 1px solid;\n \n overflow: scroll;\n margin: 1rem;\n width: calc(100% - 2rem);\n\n ${({ theme }) => css`\n ${theme.breakpoints.down('xs')} {\n margin: 0.2rem;\n width: calc(100% - 0.4rem);\n }\n `}\n`\nexport const AlbumEditStyled = styled(AlbumStyled).attrs(props => ({\n item: ElementBoxShareStyled\n}))`\n display: grid;\n\n grid-template-columns: repeat(3, 1fr);\n grid-column-gap: 3px;\n grid-row-gap: 3px;\n\n height: 8rem;\n overflow: auto;\n margin: 0;\n`","import { AlbumWrapper } from 'components/album/AlbumWrapper';\nimport { IAlbumProps } from 'compose/popup/change/Album';\nimport { IElementModel } from 'model/Element.model';\nimport UserCollectionExModel from 'model/UserCollectionEx.model';\nimport React, { FC } from 'react';\nimport { AlbumEditStyled, EditContainerStyled } from './styled';\n\nexport interface IEditContainerProps {\n labels: {\n title: string;\n footer: string;\n faults: string;\n repeated: string; \n };\n elements: IElementModel[];\n albumProps: Omit\n}\n\nexport const EditContainer: FC = ({\n labels,\n elements,\n albumProps,\n}) => {\n const paginate = UserCollectionExModel.paginateWithGroups\n return (\n \n \n \n );\n};\n","import { modals } from 'setup/constants'\nimport useI18n from 'use/i18n/useI18n'\nimport useFullModal, { IProcess } from '../useFullModal'\nimport { useQueryAll } from 'use/fetch/useQuery'\nimport UserCollectionExModel, { IUserCollectionExModel } from 'model/UserCollectionEx.model'\nimport { useEffect } from 'react'\nimport useAuth from 'use/auth/useAuth'\nimport { IPopupCollectionEditData } from './interface'\nimport { IPopupCollectionEditResult } from 'compose/popup/interface'\nimport { POPUP_COLLECTION_EDIT_QUERY } from 'graphql/query'\n\n\nconst modalId = modals.collectionEdit\nconst labelIds = {\n text: 'popup.collection.share.text',\n title: 'popup.collection.share.title',\n brand: 'common.url',\n faults: 'popup.collection.share.faults',\n repeated: 'popup.collection.share.repeated',\n loading: 'popup.collection.share.loading',\n description: 'popup.collection.share.description',\n}\n\nconst usePopupCollectionEdit = () => useFullModal({\n labelIds,\n modalId,\n process\n})\n\nexport default usePopupCollectionEdit\n\nfunction process (data: IPopupCollectionEditData): IPopupCollectionEditResult & IProcess {\n const { t, tm } = useI18n()\n const labels = tm(labelIds)\n const userId = useAuth().user\n const { collection } = data || {}\n const { code, name } = collection || {}\n\n // DATA MANAGEMENT\n const elementsQuery = useQueryAll('userCollectionEx', POPUP_COLLECTION_EDIT_QUERY)\n const { elements = [] } = (elementsQuery.list || [])[0] || {}\n \n useEffect(() => {\n elementsQuery.get({\n codes: [code],\n userId,\n elements: true,\n userElements: true,\n })\n }, [code])\n\n const { mappedElements = {}, mappedUserElements = {} } = (UserCollectionExModel.toElementMaps(elementsQuery.list) || {})[code] || {}\n const showProgress = elementsQuery.loading\n\n return {\n showProgress,\n editContainerProps: {\n elements,\n albumProps: {\n elements: mappedElements,\n userElements: mappedUserElements,\n onClick: (a, b) => console.log('click', a, b) \n },\n labels: {\n title: name,\n footer: labels.brand,\n faults: labels.faults,\n repeated: labels.repeated,\n }\n },\n loadingCollectionData: elementsQuery.loading,\n labels\n }\n}","import React, { FC } from 'react'\n\nimport { LinearProgressStyled } from 'components/status/styled'\nimport { FullModalStyled } from './_shared/styled'\nimport { BigNameCollectionStyled } from 'components/popup/collection/styled'\nimport { EditContainer } from 'components/popup/edit/EditContainer'\nimport usePopupCollectionEdit from 'use/popup/impl/usePopupCollectionEdit'\n\n\nexport const PopupCollectionEditCompose: FC = () => {\n const { labels, result, fullModal } = usePopupCollectionEdit()\n const {\n editContainerProps,\n showProgress,\n } = result || {}\n\n return (\n <>{ fullModal.open &&\n {labels.title}}\n >\n { showProgress && }\n \n \n }\n \n )\n}\n","import { modals, routes } from 'setup/constants'\nimport useI18n from 'use/i18n/useI18n'\nimport useFullModal, { IProcess } from '../useFullModal'\nimport { useQueryAll } from 'use/fetch/useQuery'\nimport UserCollectionExModel, { IUserCollectionExModel } from 'model/UserCollectionEx.model'\nimport { POPUP_COLLECTION_SHARE_QUERY } from 'graphql/query'\nimport { useEffect, useState } from 'react'\nimport useAuth from 'use/auth/useAuth'\nimport { IPopupCollectionShareData } from 'use/popup/impl/interface'\nimport { IPopupCollectionShareResult } from 'compose/popup/interface'\nimport UserElementModel, { IUserElementModelEx } from 'model/UserElement.model'\nimport DateModel, { IDateFormat } from 'model/Date.model'\n\n\nconst modalId = modals.collectionShare\nconst labelIds = {\n text: 'popup.collection.share.text',\n title: 'popup.collection.share.title',\n brand: 'common.url',\n faults: 'popup.collection.share.faults',\n repeated: 'popup.collection.share.repeated',\n loading: 'popup.collection.share.loading',\n description: 'popup.collection.share.description',\n}\n\nconst usePopupCollectionShare = () => useFullModal({\n labelIds,\n modalId,\n process\n})\n\nexport default usePopupCollectionShare\n\nfunction process (data: IPopupCollectionShareData): IPopupCollectionShareResult & IProcess {\n const { t, tm } = useI18n()\n const labels = tm(labelIds)\n const userId = useAuth().user\n const { collection } = data || {}\n const { code, name } = collection || {}\n\n const text = t(labelIds.text, { name })\n const [ url, setUrl ] = useState()\n const handleImage = (img: string) => {\n setUrl(routes.imgShare(img))\n }\n\n // DATA MANAGEMENT\n const elementsQuery = useQueryAll('userCollectionEx', POPUP_COLLECTION_SHARE_QUERY)\n const { elements = [] } = (elementsQuery.list || [])[0] || {}\n \n useEffect(() => {\n setUrl('')\n elementsQuery.get({\n codes: [code],\n userId,\n elements: true,\n userElements: true,\n })\n }, [code])\n\n const today = DateModel.format(new Date().getTime(), IDateFormat.short)\n const { mappedElements = {}, mappedUserElements = {} } = (UserCollectionExModel.toElementMaps(elementsQuery.list) || {})[code] || {}\n const faults = Object.values(mappedUserElements)\n .filter((e: IUserElementModelEx) => UserElementModel.isFault(mappedUserElements[e.order]))\n .map((e: IUserElementModelEx) => mappedElements[e.order])\n const repeated = Object.values(mappedUserElements)\n .filter((e: IUserElementModelEx) => UserElementModel.isRepeated(mappedUserElements[e.order]))\n .map((e: IUserElementModelEx) => mappedElements[e.order])\n \n const title = `${name} (${labels.brand}) ${today}`\n\n return {\n collection,\n shareContainerProps: {\n elements,\n faults,\n repeated,\n albumProps: {\n elements: mappedElements,\n userElements: mappedUserElements\n },\n labels: {\n title,\n footer: labels.brand,\n faults: labels.faults,\n repeated: labels.repeated,\n }\n },\n loadingCollectionData: elementsQuery.loading,\n url,\n text,\n handleImage,\n labels\n }\n}","var __extends = this && this.__extends || function () {\n var _extendStatics = function extendStatics(d, b) {\n _extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n }\n };\n\n return _extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n\n _extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar AssertionError =\n/** @class */\nfunction (_super) {\n __extends(AssertionError, _super);\n\n function AssertionError(message) {\n var _this = _super.call(this, message) || this;\n\n _this.name = 'AssertionError';\n return _this;\n }\n\n return AssertionError;\n}(Error);\n\nexport default function assert(value, message) {\n if (!value) {\n throw new AssertionError(message);\n }\n}","export default function objectToGetParams(object) {\n var params = Object.entries(object).filter(function (_a) {\n var value = _a[1];\n return value !== undefined && value !== null;\n }).map(function (_a) {\n var key = _a[0],\n value = _a[1];\n return \"\".concat(encodeURIComponent(key), \"=\").concat(encodeURIComponent(String(value)));\n });\n return params.length > 0 ? \"?\".concat(params.join('&')) : '';\n}","var __extends = this && this.__extends || function () {\n var _extendStatics = function extendStatics(d, b) {\n _extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n }\n };\n\n return _extendStatics(d, b);\n };\n\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n\n _extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign.apply(this, arguments);\n};\n\nvar __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {\n function adopt(value) {\n return value instanceof P ? value : new P(function (resolve) {\n resolve(value);\n });\n }\n\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) {\n try {\n step(generator.next(value));\n } catch (e) {\n reject(e);\n }\n }\n\n function rejected(value) {\n try {\n step(generator[\"throw\"](value));\n } catch (e) {\n reject(e);\n }\n }\n\n function step(result) {\n result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);\n }\n\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\nvar __generator = this && this.__generator || function (thisArg, body) {\n var _ = {\n label: 0,\n sent: function sent() {\n if (t[0] & 1) throw t[1];\n return t[1];\n },\n trys: [],\n ops: []\n },\n f,\n y,\n t,\n g;\n return g = {\n next: verb(0),\n \"throw\": verb(1),\n \"return\": verb(2)\n }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function () {\n return this;\n }), g;\n\n function verb(n) {\n return function (v) {\n return step([n, v]);\n };\n }\n\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n\n while (_) {\n try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n\n switch (op[0]) {\n case 0:\n case 1:\n t = op;\n break;\n\n case 4:\n _.label++;\n return {\n value: op[1],\n done: false\n };\n\n case 5:\n _.label++;\n y = op[1];\n op = [0];\n continue;\n\n case 7:\n op = _.ops.pop();\n\n _.trys.pop();\n\n continue;\n\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {\n _ = 0;\n continue;\n }\n\n if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {\n _.label = op[1];\n break;\n }\n\n if (op[0] === 6 && _.label < t[1]) {\n _.label = t[1];\n t = op;\n break;\n }\n\n if (t && _.label < t[2]) {\n _.label = t[2];\n\n _.ops.push(op);\n\n break;\n }\n\n if (t[2]) _.ops.pop();\n\n _.trys.pop();\n\n continue;\n }\n\n op = body.call(thisArg, _);\n } catch (e) {\n op = [6, e];\n y = 0;\n } finally {\n f = t = 0;\n }\n }\n\n if (op[0] & 5) throw op[1];\n return {\n value: op[0] ? op[1] : void 0,\n done: true\n };\n }\n};\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nimport React, { Component } from 'react';\nimport cx from 'classnames';\n\nvar isPromise = function isPromise(obj) {\n return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';\n};\n\nvar getBoxPositionOnWindowCenter = function getBoxPositionOnWindowCenter(width, height) {\n return {\n left: window.outerWidth / 2 + (window.screenX || window.screenLeft || 0) - width / 2,\n top: window.outerHeight / 2 + (window.screenY || window.screenTop || 0) - height / 2\n };\n};\n\nvar getBoxPositionOnScreenCenter = function getBoxPositionOnScreenCenter(width, height) {\n return {\n top: (window.screen.height - height) / 2,\n left: (window.screen.width - width) / 2\n };\n};\n\nfunction windowOpen(url, _a, onClose) {\n var height = _a.height,\n width = _a.width,\n configRest = __rest(_a, [\"height\", \"width\"]);\n\n var config = __assign({\n height: height,\n width: width,\n location: 'no',\n toolbar: 'no',\n status: 'no',\n directories: 'no',\n menubar: 'no',\n scrollbars: 'yes',\n resizable: 'no',\n centerscreen: 'yes',\n chrome: 'yes'\n }, configRest);\n\n var shareDialog = window.open(url, '', Object.keys(config).map(function (key) {\n return \"\".concat(key, \"=\").concat(config[key]);\n }).join(', '));\n\n if (onClose) {\n var interval_1 = window.setInterval(function () {\n try {\n if (shareDialog === null || shareDialog.closed) {\n window.clearInterval(interval_1);\n onClose(shareDialog);\n }\n } catch (e) {\n /* eslint-disable no-console */\n console.error(e);\n /* eslint-enable no-console */\n }\n }, 1000);\n }\n\n return shareDialog;\n}\n\nvar ShareButton =\n/** @class */\nfunction (_super) {\n __extends(ShareButton, _super);\n\n function ShareButton() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n\n _this.openShareDialog = function (link) {\n var _a = _this.props,\n onShareWindowClose = _a.onShareWindowClose,\n _b = _a.windowHeight,\n windowHeight = _b === void 0 ? 400 : _b,\n _c = _a.windowPosition,\n windowPosition = _c === void 0 ? 'windowCenter' : _c,\n _d = _a.windowWidth,\n windowWidth = _d === void 0 ? 550 : _d;\n\n var windowConfig = __assign({\n height: windowHeight,\n width: windowWidth\n }, windowPosition === 'windowCenter' ? getBoxPositionOnWindowCenter(windowWidth, windowHeight) : getBoxPositionOnScreenCenter(windowWidth, windowHeight));\n\n windowOpen(link, windowConfig, onShareWindowClose);\n };\n\n _this.handleClick = function (event) {\n return __awaiter(_this, void 0, void 0, function () {\n var _a, beforeOnClick, disabled, networkLink, onClick, url, openShareDialogOnClick, opts, link, returnVal;\n\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = this.props, beforeOnClick = _a.beforeOnClick, disabled = _a.disabled, networkLink = _a.networkLink, onClick = _a.onClick, url = _a.url, openShareDialogOnClick = _a.openShareDialogOnClick, opts = _a.opts;\n link = networkLink(url, opts);\n\n if (disabled) {\n return [2\n /*return*/\n ];\n }\n\n event.preventDefault();\n if (!beforeOnClick) return [3\n /*break*/\n , 2];\n returnVal = beforeOnClick();\n if (!isPromise(returnVal)) return [3\n /*break*/\n , 2];\n return [4\n /*yield*/\n , returnVal];\n\n case 1:\n _b.sent();\n\n _b.label = 2;\n\n case 2:\n if (openShareDialogOnClick) {\n this.openShareDialog(link);\n }\n\n if (onClick) {\n onClick(event, link);\n }\n\n return [2\n /*return*/\n ];\n }\n });\n });\n };\n\n return _this;\n }\n\n ShareButton.prototype.render = function () {\n var _a = this.props,\n beforeOnClick = _a.beforeOnClick,\n children = _a.children,\n className = _a.className,\n disabled = _a.disabled,\n disabledStyle = _a.disabledStyle,\n forwardedRef = _a.forwardedRef,\n networkLink = _a.networkLink,\n networkName = _a.networkName,\n onShareWindowClose = _a.onShareWindowClose,\n openShareDialogOnClick = _a.openShareDialogOnClick,\n opts = _a.opts,\n resetButtonStyle = _a.resetButtonStyle,\n style = _a.style,\n url = _a.url,\n windowHeight = _a.windowHeight,\n windowPosition = _a.windowPosition,\n windowWidth = _a.windowWidth,\n rest = __rest(_a, [\"beforeOnClick\", \"children\", \"className\", \"disabled\", \"disabledStyle\", \"forwardedRef\", \"networkLink\", \"networkName\", \"onShareWindowClose\", \"openShareDialogOnClick\", \"opts\", \"resetButtonStyle\", \"style\", \"url\", \"windowHeight\", \"windowPosition\", \"windowWidth\"]);\n\n var newClassName = cx('react-share__ShareButton', {\n 'react-share__ShareButton--disabled': !!disabled,\n disabled: !!disabled\n }, className);\n var newStyle = resetButtonStyle ? __assign(__assign({\n backgroundColor: 'transparent',\n border: 'none',\n padding: 0,\n font: 'inherit',\n color: 'inherit',\n cursor: 'pointer'\n }, style), disabled && disabledStyle) : __assign(__assign({}, style), disabled && disabledStyle);\n return React.createElement(\"button\", __assign({}, rest, {\n \"aria-label\": rest['aria-label'] || networkName,\n className: newClassName,\n onClick: this.handleClick,\n ref: forwardedRef,\n style: newStyle\n }), children);\n };\n\n ShareButton.defaultProps = {\n disabledStyle: {\n opacity: 0.6\n },\n openShareDialogOnClick: true,\n resetButtonStyle: true\n };\n return ShareButton;\n}(Component);\n\nexport default ShareButton;","var __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign.apply(this, arguments);\n};\n\nimport React, { forwardRef } from 'react';\nimport ShareButton from '../ShareButton';\n\nfunction createShareButton(networkName, link, optsMap, defaultProps) {\n function CreatedButton(props, ref) {\n var opts = optsMap(props);\n\n var passedProps = __assign({}, props); // remove keys from passed props that are passed as opts\n\n\n var optsKeys = Object.keys(opts);\n optsKeys.forEach(function (key) {\n delete passedProps[key];\n });\n return React.createElement(ShareButton, __assign({}, defaultProps, passedProps, {\n forwardedRef: ref,\n networkName: networkName,\n networkLink: link,\n opts: optsMap(props)\n }));\n }\n\n CreatedButton.displayName = \"ShareButton-\".concat(networkName);\n return forwardRef(CreatedButton);\n}\n\nexport default createShareButton;","import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction facebookLink(url, _a) {\n var quote = _a.quote,\n hashtag = _a.hashtag;\n assert(url, 'facebook.url');\n return 'https://www.facebook.com/sharer/sharer.php' + objectToGetParams({\n u: url,\n quote: quote,\n hashtag: hashtag\n });\n}\n\nvar FacebookShareButton = createShareButton('facebook', facebookLink, function (props) {\n return {\n quote: props.quote,\n hashtag: props.hashtag\n };\n}, {\n windowWidth: 550,\n windowHeight: 400\n});\nexport default FacebookShareButton;","import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction twitterLink(url, _a) {\n var title = _a.title,\n via = _a.via,\n _b = _a.hashtags,\n hashtags = _b === void 0 ? [] : _b,\n _c = _a.related,\n related = _c === void 0 ? [] : _c;\n assert(url, 'twitter.url');\n assert(Array.isArray(hashtags), 'twitter.hashtags is not an array');\n assert(Array.isArray(related), 'twitter.related is not an array');\n return 'https://twitter.com/share' + objectToGetParams({\n url: url,\n text: title,\n via: via,\n hashtags: hashtags.length > 0 ? hashtags.join(',') : undefined,\n related: related.length > 0 ? related.join(',') : undefined\n });\n}\n\nvar TwitterShareButton = createShareButton('twitter', twitterLink, function (props) {\n return {\n hashtags: props.hashtags,\n title: props.title,\n via: props.via,\n related: props.related\n };\n}, {\n windowWidth: 550,\n windowHeight: 400\n});\nexport default TwitterShareButton;","import assert from './utils/assert';\nimport objectToGetParams from './utils/objectToGetParams';\nimport createShareButton from './hocs/createShareButton';\n\nfunction isMobileOrTablet() {\n return /(android|iphone|ipad|mobile)/i.test(navigator.userAgent);\n}\n\nfunction whatsappLink(url, _a) {\n var title = _a.title,\n separator = _a.separator;\n assert(url, 'whatsapp.url');\n return 'https://' + (isMobileOrTablet() ? 'api' : 'web') + '.whatsapp.com/send' + objectToGetParams({\n text: title ? title + separator + url : url\n });\n}\n\nvar WhatsappShareButton = createShareButton('whatsapp', whatsappLink, function (props) {\n return {\n title: props.title,\n separator: props.separator || ' '\n };\n}, {\n windowWidth: 550,\n windowHeight: 400\n});\nexport default WhatsappShareButton;","\nimport React, { FC } from 'react';\nimport icons from 'components/theme/icons';\nimport { Icon } from 'components/styled';\nimport { RawButtonWithIcon } from 'components/button/RawButtonWithIcon';\nimport {\n FacebookShareButton,\n TwitterShareButton,\n WhatsappShareButton,\n} from 'react-share'\n\n// const isMobileOrTablet = () => {\n// return /(android|iphone|ipad|mobile)/i.test(navigator.userAgent);\n// }\n// const whatsappLink = (url, { text }) => {\n// return `https://${isMobileOrTablet() ? 'api' : 'web'}.whatsapp.com/send?text=${encodeURIComponent(text)}%20${encodeURIComponent(url)}`\n// }\n\n// const WhatsappShareButton = ({ children, className, url, text = '' }) => {\n// const href = whatsappLink(url, { text })\n// return (\n// { children }\n// )\n// }\ninterface IProps {\n variant: 'facebook' | 'whatsapp' | 'twitter';\n url: string;\n text: string;\n className?: string;\n}\nexport const ShareButton: FC = ({\n variant,\n url,\n text,\n className,\n}) => {\n \n const Button = {\n facebook: FacebookShareButton,\n twitter: TwitterShareButton,\n whatsapp: WhatsappShareButton,\n }[variant] || RawButtonWithIcon;\n\n const params = {\n facebook: {\n quote: text,\n hashtag: 'acabaramos'\n },\n twitter: {\n title: text,\n hashtags: ['acabaramos']\n },\n whatsapp: {\n title: text\n },\n }[variant] || {}\n\n return (\n \n );\n};\n","import { AlbumWrapper } from 'components/album/AlbumWrapper';\nimport { ShareContainerStyled, ShareTitleStyled, AlbumShareStyled, AlbumShareTextStyled } from 'components/popup/share/styled';\nimport { IAlbumProps } from 'compose/popup/change/Album';\nimport { IElementModel } from 'model/Element.model';\nimport UserCollectionExModel from 'model/UserCollectionEx.model';\nimport React, { FC } from 'react';\n\nexport interface IShareContainerProps {\n labels: {\n title: string;\n footer: string;\n faults: string;\n repeated: string; \n };\n elements: IElementModel[];\n faults: IElementModel[];\n repeated: IElementModel[];\n albumProps: Omit\n}\n\nexport const ShareContainer: FC = ({\n labels,\n elements,\n faults,\n repeated,\n albumProps,\n}) => {\n const paginate = UserCollectionExModel.paginateWithGroups\n return (\n \n { labels.title }\n \n { !!faults.length && <>\n { labels.faults }\n \n }\n { !!repeated.length && <>\n { labels.repeated }\n \n }\n { labels.footer }\n \n );\n};\n","import React, { FC, Suspense } from 'react'\n\nimport usePopupCollectionShare from 'use/popup/impl/usePopupCollectionShare'\nimport { PopupCollection } from 'components/popup/collection/PopupCollection'\nimport { LinearProgressStyled } from 'components/status/styled'\nimport { ShareButtonsWrapperStyled, ShareDescriptionStyled } from 'components/popup/share/styled'\nimport { ShareButton } from 'components/popup/share/ShareButton'\nimport { IShareContainerProps, ShareContainer } from 'components/popup/share/ShareContainer'\nimport useAuth from 'use/auth/useAuth'\nimport { IShareContainerComposeProps } from 'compose/popup/share/ShareContainerComposeLazy'\n\nexport const PopupCollectionShareCompose: FC = () => {\n const userId = useAuth().user\n const { labels, result, fullModal } = usePopupCollectionShare()\n const {\n collection,\n shareContainerProps,\n loadingCollectionData,\n handleImage,\n url,\n text\n } = result\n const { code, name } = collection || {}\n\n const showProgress = loadingCollectionData || !url\n const params = {\n url,\n text\n }\n\n return (\n <>{fullModal.open &&\n \n { labels.description }\n { url && (\n \n \n \n \n \n )\n }\n \n )}\n collection={collection}\n noPadding\n buttons={[]}\n title={labels.title}>\n \n \n }\n )\n}\ninterface IShareProps {\n composeProps: IShareContainerComposeProps;\n containerProps: IShareContainerProps;\n}\n\nconst Share = React.memo((props: IShareProps) => {\n const ShareContainerComposeLazy = React.lazy(() =>\n import('compose/popup/share/ShareContainerComposeLazy')\n .then(({ ShareContainerComposeLazy }) => ({ default: ShareContainerComposeLazy }))\n )\n\n return (\n }>\n \n \n \n \n )\n}, (prev, actual) => {\n return prev.composeProps.loadingCollectionData === actual.composeProps.loadingCollectionData\n})\n","import { ICollectionModel } from \"./Collection.model\";\n\nexport enum CollectionState {\n ACTIVE = 'ACTIVE',\n FAVORITE = 'FAVORITE',\n SLEEP = 'SLEEP',\n ALL = 'ALL'\n}\nexport interface IUserCollectionModel {\n id: number; // Coleuser.id\n iduser: number; // Chat\n collection: ICollectionModel; //CodigoC\n lastUpdated: string; // FechaMod\n priority: number;\n settings: string; // Caracteristicas\n countElements: number;\n}\n\nexport default class UserCollectionModel {\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 parsePriority = (priority: number) => ({\n 2: { fav: true, sleep: false },\n 1: { fav: false, sleep: false },\n 0: { fav: false, sleep: true }\n }[priority])\n\n}\n","export interface IUserElementModel {\n id: number; // id\n iduser: number; // iduser\n code: number; // CodigoC\n order: string; // Orden\n state: string; // Estado\n date: string; // FechaAlta\n type: string; // Tipo\n index: number; // IdEU\n changeId: number; // IdCamb\n changeState: string; // EstadoCamb\n}\n\nexport interface IUserElementModelEx extends IUserElementModel {\n amount: number;\n}\n\nexport enum IUserElementModelTypeEnum {\n NONE,\n FAULT,\n REPEATED,\n}\nexport default class UserElementModel {\n\n/*\n Elemuser\n {\n \"id\":100051663,\n \"iduser\":21,\n \"CodigoC\":214,\n \"Orden\":\"107\",\n \"IdEU\":1,\n \"FechaAlta\":\"2018-11-09 12:24:51\",\n \"Tipo\":\"R\",\n \"Estado\":\"\",\n \"IdCamb\":0,\n \"EstadoCamb\":\"\",\n \"Foto\":\"\"\n }\n*/\n static isRepeated = (userElement: IUserElementModel) => userElement.type === 'R'\n static isFault = (userElement: IUserElementModel) => userElement.type === 'N'\n static getTypeVariant = (type: string): IUserElementModelTypeEnum => ({\n N: IUserElementModelTypeEnum.FAULT,\n R: IUserElementModelTypeEnum.REPEATED,\n '': IUserElementModelTypeEnum.NONE\n }[type])\n}"],"names":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","appendClass","parseValue","Array","isArray","apply","toString","Object","prototype","includes","key","call","value","newClass","module","exports","default","AlbumWrapperStyled","styled","MaxiListWrapperAlbum","MaxiListWrapper","variant","css","GroupStyled","AlbumWrapper","Album","album","albumProps","pages","lastKey","map","page","index","items","item","order","group","type","showGroup","dangerouslySetInnerHTML","__html","IButtonTypes","ButtonListMemo","buttons","toggle","message","children","list","color","rest","Text1","onClick","label","getItem","undefined","CustomSwitch","checked","ButtonList","memo","TransparentButton","primary","PrimaryButton","secondary","SecondaryButton","disabled","useState","isDisabled","setDisabled","useEffect","e","preventDefault","PopupCollection","collection","open","close","refresh","showProgress","description","contentHero","noPadding","title","code","name","collectionDescription","image","CollectionModel","headerDark","reduced","big","DescriptionWrapperStyled","DescriptionTextStyled","TextStyled","attrs","props","smallText","MoreButton","PrimaryEmptyButton","iconRight","icons","BigNameCollectionStyled","DescriptionStyled","CardRaisedStyled","className","t","useI18n","more","less","opened","showButton","setShowButton","containerRef","useRef","el","current","clientHeight","scrollHeight","ref","theme","breakpoints","up","shareWidth","ElementBoxShareStyled","ElementBox","UserElementModel","IUserElementModelTypeEnum","dangerColor","successColor","getElementBackgroundColor","ElementBoxMiniCardShareStyled","grayColor","AlbumShareStyled","AlbumStyled","AlbumShareTextStyled","HiddenCanvasStyled","whiteColor","hidden","ImgContainerStyled","ShareDescriptionStyled","MiniCard","Text1Styled","ShareButtonsWrapperStyled","buttonBackground","ShareContainerStyled","ShareContainerWrapperStyled","ShareTitleStyled","modalId","modals","labelIds","changesInProgress","changesCompleted","changesCancelled","confirmDelete","countExchanges","countFaults","countRepeated","delete","edit","fav","historical","join","share","sleep","sleepMessage","year","serverError","STATE","ChangeFilter","COLLECTOR","COLLECTION","PROGRESS","ChangeState","COMPLETE","CANCELLED","useFullModal","process","data","_useI18n","labels","tm","userId","useAuth","user","_useModalCollection","useModalCollection","refetch","closeCollection","_useModalConfirm","useModalConfirm","openConfirm","closeConfirm","openCollectionEdit","useModalCollectionEdit","openCollectionShare","useModalCollectionShare","updateFilter","useChangeFilter","_useState","refreshing","setRefreshing","_useState2","favToggle","setFavToggle","_useState3","sleepToggle","setSleepToggle","_ref","variables","codes","changes","userElements","_useQueryAll","useQueryAll","POPUP_COLLECTION_QUERY","get","loading","fail","setTimeout","_useControlledMutatio","useControlledMutation","mutation","FAV_COLLECTION_MUTATION","success","favCollection","favResult","_useControlledMutatio2","SLEEP_COLLECTION_MUTATION","sleepCollection","sleepResult","_useControlledMutatio3","DELETE_COLLECTION_MUTATION","okMessage","deleteCollection","deleteResult","_ref2","userCollection","exchanges","_ref3","_ref3$priority","priority","numExchanges","states","toStateInit","num","toStateAdd","reduceStates","tot","state","StatesInProgress","StatesCompleted","StatesCancelled","forEach","exchange","change","stateId","inProgress","completed","cancelled","getNumExchanges","values","changesLabels","_UserCollectionModel$","UserCollectionModel","goToChanges","input","navigate","routes","actions","environment","nav","params","accept","cancel","text","severity","assign","PopupCollectionCompose","usePopupCollection","result","fullModal","listHistorical","filter","Boolean","icon","HeroColor","CardItem","EditContainerStyled","down","AlbumEditStyled","EditContainer","elements","paginate","UserCollectionExModel","brand","faults","repeated","elementsQuery","POPUP_COLLECTION_EDIT_QUERY","mappedElements","mappedUserElements","editContainerProps","a","b","console","log","footer","loadingCollectionData","PopupCollectionEditCompose","usePopupCollectionEdit","url","setUrl","POPUP_COLLECTION_SHARE_QUERY","today","DateModel","Date","getTime","IDateFormat","shareContainerProps","handleImage","img","_extendStatics","__extends","d","setPrototypeOf","__proto__","p","TypeError","String","__","this","constructor","create","AssertionError","_super","_this","Error","assert","objectToGetParams","object","entries","_a","concat","encodeURIComponent","__assign","s","n","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","rejected","done","then","__generator","body","f","y","g","_","sent","trys","ops","verb","Symbol","iterator","v","op","pop","push","__rest","indexOf","getOwnPropertySymbols","propertyIsEnumerable","isPromise","obj","getBoxPositionOnWindowCenter","width","height","left","window","outerWidth","screenX","screenLeft","top","outerHeight","screenY","screenTop","getBoxPositionOnScreenCenter","screen","windowOpen","onClose","configRest","config","location","toolbar","status","directories","menubar","scrollbars","resizable","centerscreen","chrome","shareDialog","keys","interval_1","setInterval","closed","clearInterval","error","ShareButton","openShareDialog","link","onShareWindowClose","_b","windowHeight","_c","windowPosition","_d","windowWidth","handleClick","event","beforeOnClick","networkLink","openShareDialogOnClick","opts","returnVal","render","disabledStyle","forwardedRef","networkName","resetButtonStyle","style","newClassName","newStyle","backgroundColor","border","padding","font","cursor","defaultProps","opacity","Component","optsMap","CreatedButton","passedProps","displayName","forwardRef","quote","hashtag","u","via","hashtags","related","separator","test","navigator","userAgent","Button","facebook","FacebookShareButton","twitter","TwitterShareButton","whatsapp","WhatsappShareButton","RawButtonWithIcon","ShareContainer","PopupCollectionShareCompose","usePopupCollectionShare","Share","composeProps","loadingLabel","containerProps","React","ShareContainerComposeLazy","Suspense","fallback","prev","actual","CollectionState","parsePriority","isRepeated","userElement","isFault","getTypeVariant","N","FAULT","R","REPEATED","NONE"],"sourceRoot":""}