{"version":3,"file":"index-74fd43ac.js","sources":["../../src/components/auth/login/LoginContainer.tsx","../../src/pages/auth/login/styles/StylesLoginServiceStyleOne.ts","../../src/pages/auth/login/styles/StylesLoginServiceStyleThree.ts","../../src/pages/auth/login/styles/StylesLoginServiceStyleTwo.ts","../../src/pages/auth/login/styles/GetLoginTemplateService.ts","../../src/pages/auth/login/styles/useGetLoginTemplate.ts","../../src/pages/auth/login/index.tsx"],"sourcesContent":["import { Box } from '@mui/material'\nimport LoginForm from '~/src/components/auth/login/LoginForm'\nimport Title from '~/src/components/mui-wrappers/Title'\nimport { useTranslations } from '~/src/hooks/useTranslations'\n\nconst LoginContainer = () => {\n const { t } = useTranslations()\n\n return (\n <>\n \n \n {t('auth.log_in')}\n \n \n {t('auth.log_in_to_finalize_your_order')}\n \n \n \n >\n )\n}\n\nexport default LoginContainer\n","import { SxProps } from '@mui/material'\nimport StylesLoginServiceInterface from '~/src/pages/auth/login/styles/StylesLoginServiceInterface'\nimport TemplateServiceStyleBase from '~/src/utils/template/TemplateServiceStyleBase'\n\nexport default class StylesLoginServiceStyleOne extends TemplateServiceStyleBase implements StylesLoginServiceInterface {\n public getPageSx(): SxProps {\n return {\n my: 4,\n mt: `calc(var(--eo-safe-area-top) + ${this.muiTheme.spacing(4)})`,\n width: '40%',\n [this.muiTheme.breakpoints.only('xs')]: {\n width: '90%'\n },\n [this.muiTheme.breakpoints.only('sm')]: {\n width: '80%'\n },\n [this.muiTheme.breakpoints.only('md')]: {\n width: '65%'\n }\n }\n }\n\n public getCardContainerSx(): SxProps {\n return {\n p: 4,\n backgroundColor: 'container.main',\n color: 'container.contrastText'\n }\n }\n}\n","import { SxProps } from '@mui/material'\nimport StylesLoginServiceInterface from '~/src/pages/auth/login/styles/StylesLoginServiceInterface'\nimport TemplateServiceStyleBase from '~/src/utils/template/TemplateServiceStyleBase'\n\nexport default class StylesLoginServiceStyleThree extends TemplateServiceStyleBase implements StylesLoginServiceInterface {\n public getPageSx(): SxProps {\n return {\n my: 4,\n mt: `calc(var(--eo-safe-area-top) + ${this.muiTheme.spacing(4)})`,\n width: '60vw',\n [this.muiTheme.breakpoints.only('xs')]: {\n width: '90vw'\n },\n [this.muiTheme.breakpoints.only('sm')]: {\n width: '80vw'\n },\n [this.muiTheme.breakpoints.only('md')]: {\n width: '65vw'\n },\n [this.muiTheme.breakpoints.up('xl')]: {\n width: '50vw',\n maxWidth: '800px'\n }\n }\n }\n\n public getCardContainerSx(): SxProps {\n return {\n p: 4,\n backgroundColor: 'container.main',\n color: 'container.contrastText'\n }\n }\n}\n","import { SxProps } from '@mui/material'\nimport StylesLoginServiceInterface from '~/src/pages/auth/login/styles/StylesLoginServiceInterface'\nimport TemplateServiceStyleBase from '~/src/utils/template/TemplateServiceStyleBase'\n\nexport default class StylesLoginServiceStyleTwo extends TemplateServiceStyleBase implements StylesLoginServiceInterface {\n private _getPageMtSx(): string {\n if (!this.layout?.header.display) {\n return `calc(var(--eo-safe-area-top) + ${this.muiTheme.spacing(4)})`\n }\n\n return this.muiTheme.spacing(4)\n }\n\n public getPageSx(): SxProps {\n return {\n my: 4,\n mt: this._getPageMtSx(),\n width: '40%',\n [this.muiTheme.breakpoints.only('xs')]: {\n width: '90%'\n },\n [this.muiTheme.breakpoints.only('sm')]: {\n width: '80%'\n },\n [this.muiTheme.breakpoints.only('md')]: {\n width: '65%'\n }\n }\n }\n\n public getCardContainerSx(): SxProps {\n return {\n p: 4,\n backgroundColor: 'container.main',\n color: 'container.contrastText'\n }\n }\n}\n","import StylesLoginServiceInterface from '~/src/pages/auth/login/styles/StylesLoginServiceInterface'\nimport StylesLoginServiceStyleOne from '~/src/pages/auth/login/styles/StylesLoginServiceStyleOne'\nimport StylesLoginServiceStyleThree from '~/src/pages/auth/login/styles/StylesLoginServiceStyleThree'\nimport StylesLoginServiceStyleTwo from '~/src/pages/auth/login/styles/StylesLoginServiceStyleTwo'\nimport { CustomMuiTheme } from '~/src/hooks/useCustomMuiTheme'\nimport { TemplateEnum } from '@eo-storefronts/eo-core'\nimport { LayoutState } from '~/src/stores/layout'\n\nconst getLoginTemplateService = (style: TemplateEnum | null, muiTheme: CustomMuiTheme, layout: LayoutState): StylesLoginServiceInterface => {\n switch (style) {\n case TemplateEnum.STYLE_TWO:\n return new StylesLoginServiceStyleTwo(muiTheme, undefined, layout)\n case TemplateEnum.STYLE_THREE:\n return new StylesLoginServiceStyleThree(muiTheme, undefined, layout)\n default:\n return new StylesLoginServiceStyleOne(muiTheme, undefined, layout)\n }\n}\n\nexport default getLoginTemplateService\n","import getLoginTemplateService from '~/src/pages/auth/login/styles/GetLoginTemplateService'\nimport StylesLoginServiceInterface from '~/src/pages/auth/login/styles/StylesLoginServiceInterface'\nimport { useLayout } from '~/src/hooks/layout/useLayout'\nimport { useCustomMuiTheme } from '~/src/hooks/useCustomMuiTheme'\nimport useGetPageStyle from '~/src/hooks/layout/useGetPageStyle'\nimport { useEoValue } from '~/src/hooks/useEoState'\nimport { LAYOUT_STATE } from '~/src/stores/layout'\n\nconst useGetLoginTemplate = (): StylesLoginServiceInterface => {\n const muiTheme = useCustomMuiTheme()\n const pageStyle = useGetPageStyle('login')\n const layout = useEoValue(LAYOUT_STATE)\n\n useLayout('login')\n\n return getLoginTemplateService(pageStyle, muiTheme, layout)\n}\n\nexport default useGetLoginTemplate\n","import { Container } from '@mui/material'\nimport LoginContainer from '~/src/components/auth/login/LoginContainer'\nimport useGetLoginTemplate from '~/src/pages/auth/login/styles/useGetLoginTemplate'\nimport DocumentTitleInjector from '~/src/components/root/DocumentTitleInjector'\nimport ContentContainer from '~/src/components/utils/layout/ContentContainer'\nimport RoutesEnum from '~/src/router/enums/routes.enum'\nimport SlideFromRight from '~/src/components/mui-wrappers/animations/motion/SlideFromRight'\n\nconst Login = () => {\n const pageName: keyof typeof RoutesEnum = 'LOGIN'\n const styles = useGetLoginTemplate()\n\n return (\n \n \n \n \n \n \n \n \n )\n}\n\nexport default Login\n"],"names":["LoginContainer","t","useTranslations","jsxs","Fragment","Box","jsx","Title","LoginForm","StylesLoginServiceStyleOne","TemplateServiceStyleBase","StylesLoginServiceStyleThree","StylesLoginServiceStyleTwo","_a","getLoginTemplateService","style","muiTheme","layout","TemplateEnum","useGetLoginTemplate","useCustomMuiTheme","pageStyle","useGetPageStyle","useEoValue","LAYOUT_STATE","useLayout","Login","pageName","styles","SlideFromRight","DocumentTitleInjector","Container","ContentContainer"],"mappings":"gpBAKA,MAAMA,EAAiB,IAAM,CACrB,KAAA,CAAE,EAAAC,GAAMC,IAEd,OAEIC,EAAA,KAAAC,WAAA,CAAA,SAAA,CAAAD,OAACE,EACC,CAAA,SAAA,CAAAC,MAACC,EAAM,CAAA,QAAQ,KACZ,SAAAN,EAAE,aAAa,EAClB,QACCM,EAAM,CAAA,QAAQ,KACZ,SAAAN,EAAE,oCAAoC,EACzC,CAAA,EACF,QACCO,EAAU,EAAA,CACb,CAAA,CAAA,CAEJ,ECjBA,MAAqBC,UAAmCC,CAAgE,CAC/G,WAAqB,CACnB,MAAA,CACL,GAAI,EACJ,GAAI,kCAAkC,KAAK,SAAS,QAAQ,CAAC,KAC7D,MAAO,MACP,CAAC,KAAK,SAAS,YAAY,KAAK,IAAI,CAAC,EAAG,CACtC,MAAO,KACT,EACA,CAAC,KAAK,SAAS,YAAY,KAAK,IAAI,CAAC,EAAG,CACtC,MAAO,KACT,EACA,CAAC,KAAK,SAAS,YAAY,KAAK,IAAI,CAAC,EAAG,CACtC,MAAO,KACT,CAAA,CAEJ,CAEO,oBAA8B,CAC5B,MAAA,CACL,EAAG,EACH,gBAAiB,iBACjB,MAAO,wBAAA,CAEX,CACF,CCzBA,MAAqBC,UAAqCD,CAAgE,CACjH,WAAqB,CACnB,MAAA,CACL,GAAI,EACJ,GAAI,kCAAkC,KAAK,SAAS,QAAQ,CAAC,KAC7D,MAAO,OACP,CAAC,KAAK,SAAS,YAAY,KAAK,IAAI,CAAC,EAAG,CACtC,MAAO,MACT,EACA,CAAC,KAAK,SAAS,YAAY,KAAK,IA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