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EZC,EAA+BC,EADEA,QAAQ,CACDC,qBAAqB,CAACF,KAAK,CAGzE,MACE,GAAAG,EAAA1B,GAAA,EAACuB,EAAAA,CACCJ,WAAY,CACVQ,OAAQ,GAAAD,EAAA1B,GAAA,EAAC2B,SAAAA,CAAAA,GACTC,GAAI,GAAAF,EAAA1B,GAAA,EAAC4B,KAAAA,CAAAA,GACLzC,EAAG,GAAAuC,EAAA1B,GAAA,EAACb,IAAAA,CAAAA,GACJ0C,GAAI,GAAAH,EAAA1B,GAAA,EAAC6B,KAAAA,CAAAA,GACLC,GAAI,GAAAJ,EAAA1B,GAAA,EAAC8B,KAAAA,CAAAA,GACL,GAAGX,CAAU,EAEd,GAAGC,CAAK,EAGf","sources":["webpack://_N_E/./src/components/RegisterCancelModal/styles.ts","webpack://_N_E/./src/components/RegisterCancelModal/Content/styles.ts","webpack://_N_E/./src/components/RegisterCancelModal/Content/index.tsx","webpack://_N_E/./src/components/RegisterCancelModal/index.tsx","webpack://_N_E/../../packages/common/src/components/TransWithDefault/index.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport Color from 'color';\nimport { Image as NextImage } from '@starsoft/common/components';\nimport { getComputedColor } from '@/utils/theme';\n\nexport const Container = styled.div`\n width: 95vw;\n max-width: 400px;\n height: fit-content;\n background-color: ${({ theme }) => theme.vars.palette.background.paper};\n border-radius: ${({ theme }) => theme.vars.shape.borderRadius};\n display: flex;\n flex-direction: column;\n padding: 24px 0px;\n\n @media (max-width: 768px) {\n padding: 16px 0px;\n }\n`;\n\nexport const TextContainer = styled.div`\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n display: flex;\n flex-direction: column;\n width: 100%;\n padding: 16px;\n z-index: 7;\n`;\n\nexport const TitleLogin = styled.div`\n font-size: 38px;\n color: ${({ theme }) => theme.vars.palette.text.primary};\n font-weight: 500;\n line-height: 1.2;\n max-width: 70%;\n`;\n\nexport const DescriptionLogin = styled.div`\n font-size: 18px;\n color: ${({ theme }) =>\n Color(getComputedColor(theme.vars.palette.text.primary))\n .alpha(0.8)\n .toString()};\n line-height: 1.1rem;\n max-width: 70%;\n font-weight: 300;\n`;\n\nexport const Image = styled(NextImage)`\n height: 100%;\n object-fit: fill;\n opacity: 0.7;\n object-position: center;\n`;\n\nexport const ModalHeader = styled.div`\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 24px;\n`;\n\nexport const Spacer = styled.div`\n height: 20px;\n`;\n\nexport const Content = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 0 24px;\n overflow-y: auto;\n\n &::-webkit-scrollbar {\n display: none;\n }\n\n &::-webkit-scrollbar-track {\n display: none;\n }\n\n &::-webkit-scrollbar-thumb {\n display: none;\n }\n\n @media (max-width: 768px) {\n padding: 0 16px;\n }\n`;\n\nexport const DesktopOnly = styled.div`\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const SpacerCurrency = styled.div`\n margin-left: 5px;\n`;\n\nexport const Currency = styled(NextImage)`\n width: 20px;\n height: 20px;\n margin-right: 5px;\n`;\n\nexport const AmountLabel = styled.div`\n font-size: 14px;\n color: ${({ theme }) => theme.vars.palette.text.primary};\n padding-top: 2px;\n`;\n\nexport const SubHeader = styled.div`\n font-size: 24px;\n margin-bottom: 10px;\n font-weight: 500;\n width: 100%;\n text-align: left;\n`;\n","import styled, { css } from 'styled-components';\nimport { ButtonProps } from './props';\nimport Color from 'color';\nimport Link from '@/components/core/Link';\nimport { getComputedColor } from '@/utils/theme';\n\nexport const Container = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n flex-direction: column;\n gap: 24px;\n`;\n\nexport const Content = styled.div`\n display: flex;\n width: 100%;\n flex-direction: column;\n align-items: center;\n gap: 16px;\n`;\n\nexport const ButtonWrapper = styled.div`\n display: flex;\n align-items: center;\n flex-direction: column;\n width: 100%;\n gap: 10px;\n`;\n\nexport const Button = styled(Link)`\n all: unset;\n box-sizing: border-box;\n width: 100%;\n height: ${({ theme }) => theme.vars.shape.boxHeight};\n min-height: ${({ theme }) => theme.vars.shape.boxHeight};\n border: none;\n border-radius: ${({ theme }) => theme.vars.shape.borderRadius};\n background-color: ${({ theme }) => theme.vars.palette.primary.main};\n color: ${({ theme }) => theme.vars.palette.primary.contrastText};\n pointer-events: ${({ disabled }) => (disabled ? 'none' : 'all')};\n opacity: ${({ disabled }) => (disabled ? '0.7' : '1')};\n font-size: 13px;\n font-weight: 600;\n cursor: pointer;\n transition: background 0.25s ease-in-out;\n display: flex;\n justify-content: center;\n align-items: center;\n\n &:hover {\n background-color: ${({ theme }) => theme.vars.palette.secondary.main};\n }\n\n ${({ secondaryStyles }) =>\n secondaryStyles &&\n css`\n color: ${({ theme }) => theme.vars.palette.text.secondary} !important;\n background-color: ${({ theme }) =>\n Color(getComputedColor(theme.vars.palette.background.paper))\n .lighten(0.3)\n .toString()};\n transition:\n background 0.25s ease-in-out,\n color 0.25s ease-in-out;\n\n &:hover {\n background-color: ${({ theme }) =>\n Color(getComputedColor(theme.vars.palette.background.default))\n .lighten(0.5)\n .toString()};\n color: ${({ theme }) => theme.vars.palette.text.primary} !important;\n }\n `}\n`;\n\nexport const Description = styled.p`\n color: ${({ theme }) => theme.vars.palette.text.secondary};\n text-align: center;\n font-size: 14px;\n font-weight: 400;\n`;\n\nexport const Title = styled.h3`\n color: ${({ theme }) => theme.vars.palette.text.primary};\n font-size: 18px;\n font-weight: 500;\n`;\n","import useTranslation from 'next-translate/useTranslation';\nimport {\n Button,\n ButtonWrapper,\n Container,\n Content,\n Description,\n Title,\n} from './styles';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { TransWithDefault } from '@starsoft/common/components';\nimport { useCurrentModal } from '@/hooks/modals/useCurrentModal';\nimport { usePathname } from '@/hooks/usePathname';\n\nexport default function CancelRegisterContent() {\n const { t } = useTranslation('common');\n const pathname: string = usePathname();\n const modal = useCurrentModal(ModalsKey);\n\n return (\n \n \n {t('cancel_register_title')}\n \n \n \n \n \n \n \n \n \n );\n}\n","import { Container, ModalHeader, Content } from './styles';\nimport CancelRegisterContent from './Content';\nimport { CloseButton, Modal } from '@starsoft/common/components';\nimport { useModal } from '@/hooks/modals/useModal';\nimport { ModalsKey } from '@/enums/modalsKey';\nimport { useUserAccount } from '@/api/user/queries';\n\nexport default function CancelRegisterModal() {\n const { handleContainer, isOpen, onClose } = useModal(\n ModalsKey.CancelRegister,\n );\n const { isAuthorized } = useUserAccount();\n\n return (\n \n \n \n
\n onClose()} />\n \n \n \n \n \n \n );\n}\n","import { useSettingsStore } from '@starsoft/common/hooks/useSettingsStore';\nimport { CommonSettings } from '@starsoft/common/interfaces';\nimport { Trans as ITrans } from '@starsoft/common/interfaces/trans';\nimport { ComponentType } from 'react';\n\n/**\n * TransWithDefault Component\n * This component is responsible for rendering a translation component with default fallback.\n * It utilizes the settings store to determine the appropriate translation component to use.\n *\n * @param {ITrans} props - The properties for the component.\n * @param {object} props.components - Custom components to be used within the translation text.\n * @param {string} props.i18nKey - The internationalization key for the translation.\n * @param {object} props.values - The values to be interpolated in the translation string.\n *\n * @returns {JSX.Element} The rendered translation component with provided components and props.\n *\n * @example\n * // Usage example:\n * , br:
}}\n * i18nKey=\"example_key\"\n * values={{ name: 'John' }}\n * />\n */\nexport function TransWithDefault({ components, ...props }: ITrans) {\n const { state } = useSettingsStore();\n const settings: CommonSettings = state.settings;\n const Trans: ComponentType = settings.translationComponents.Trans;\n\n // Render the Trans component with provided components and props\n return (\n ,\n br:
,\n p:

,\n ul:

    ,\n li:
  • ,\n ...components,\n }}\n {...props}\n />\n );\n}\n"],"names":["Container","styled","div","withConfig","theme","param","vars","palette","background","paper","shape","borderRadius","text","primary","Color","getComputedColor","alpha","toString","NextImage","ModalHeader","Content","ButtonWrapper","Button","Link","boxHeight","main","contrastText","disabled","secondary","secondaryStyles","css","lighten","default","Description","p","Title","h3","CancelRegisterContent","t","useTranslation","pathname","usePathname","modal","useCurrentModal","ModalsKey","jsx_runtime","jsxs","jsx","TransWithDefault","i18nKey","Register","href","replace","concat","CancelRegisterModal","handleContainer","isOpen","onClose","useModal","CancelRegister","isAuthorized","useUserAccount","Modal","open","onClick","CloseButton","components","props","state","useSettingsStore","Trans","settings","translationComponents","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","strong","br","ul","li"],"sourceRoot":""}