{"version":3,"sources":["style/theme.ts","images/logo-header-company.png","images/logo-footer-company.png","components/organisms/GlobalHeader.tsx","components/organisms/GlobalFooter.tsx","App.tsx","config/fetcher.ts","reportWebVitals.ts","style/GlobalStyle.tsx","index.tsx","hooks/useCurrentUser.ts","contexts/CurrentUserContext.tsx","style/GlobalStyled.ts","components/atoms/Spinner.tsx","config/routerUrl.ts","api/cognito.ts","hooks/useAPI.ts"],"names":["theme","white","indigo","red","ivory","black","lightBlack","sky","darkSky","blue","shadow","lightGray","darkGray","whiteGray","gray","levelBlue","1","2","3","4","5","Styled","Body","styled","GlobalStyled","props","Wrapper","CenterRow","LogoImg","img","RightWrapper","Col","NavLinkCol","CenterCol","NavLink","Container","GlobalHeader","useCurrentUser","currentUser","deleteSession","linkArray","value","to","routerUrl","introPage","productPage","processPage","helpPage","loginPage","activeStyle","borderBottom","paddingTop","fontWeight","color","headerLinkList","map","res","i","width","onClick","e","preventDefault","window","location","href","handleClickSignOut","a","Row","Link","alt","src","require","default","TransparentButton","LeftCol","GlobalFooter","HeightRow","bottom","MainPage","lazy","TermPage","PrivacyPage","IntroPage","ProductPage","ProcessPage","HelpPage","SignUpPage","LoginPage","swrConfig","onErrorRetry","error","key","option","revalidate","retryCount","response","status","Header","div","Footer","App","accessToken","getCurrentUser","useEffect","loading","idToken","fetcher","args","API","axios","create","baseURL","process","REACT_APP_API_URL","headers","Authorization","get","data","fallback","Spinner","height","size","exact","path","component","termPage","privacyPage","signUpPage","reportWebVitals","onPerfEntry","Function","then","getCLS","getFID","getFCP","getLCP","getTTFB","createGlobalStyle","GlobalStyle","ReactDOM","render","StrictMode","document","getElementById","useContext","CurrentUserContext","setCurrentUser","useAPI","cookie","createCurrentUser","useCallback","params","session","insert","userId","userSession","signInUserSession","jwtToken","delete","createContext","CurrentUserProvider","children","useState","Provider","animation","fadeInUp","keyframes","Parent","Card","typography","space","layout","Button","button","ImgRow","FadeInUpRow","ContentRow","RightCol","ActiveButton","isActive","RowLink","Title","Keyframes","spinnerSpin","LoadingCircle","CircleSpinner","isLoading","defaultProps","mainPage","cognitoSetting","userPoolID","clientId","region","identityPoolId","attribute","name","birthDate","gender","phoneNumber","phoneNumberVerified","address","detailAddress","addressType","postcode","signUpPath","isSignUpService","cognitoInfo","userData","userName","Username","Pool","userPool","AmazonCognitoIdentity","UserPoolId","ClientId","cognitoUser","cognitoAdmin","AWS","CognitoIdentityServiceProvider","accessKeyId","secretAccessKey","sessionToken","signUp","password","Promise","resolve","reject","attributeData","attributeList","cognitoUserFormat","Name","Value","cognitoUserData","push","err","user","signUpConfirm","confirmCode","confirmRegistration","result","getSession","useCookies","cookies","setCookie","removeCookie","id_token","APIs","getAll","post","forgotPassword","signUpCheck","userInfo","dataUser","authenticationData","Password","authenticationDetails","authenticateUser","onSuccess","onFailure","signOut"],"mappings":"4GAgCeA,IAhCuB,CACrCC,MAAO,UACPC,OAAS,UAETC,IAAK,UAELC,MAAO,UAEPC,MAAO,UACPC,WAAY,UAEZC,IAAK,UACLC,QAAS,UAETC,KAAM,UAENC,OAAQ,sBAERC,UAAW,UACXC,SAAU,UACVC,UAAY,UACZC,KAAM,UAENC,UAAW,CACVC,EAAG,UACHC,EAAG,UACHC,EAAG,UACHC,EAAG,UACHC,EAAG,a,kCC5BL,OAAe,o0I,kCCAf,OAAe,4gI,27ECSf,IAAMC,EAAS,CACdC,KAAMC,YAAOC,IAAaF,KAApBC,CAAF,KACwB,SAAAE,GAAK,OAAIA,EAAMzB,MAAMc,QAIjDY,QAASH,YAAOC,IAAaG,UAApBJ,CAAF,KAMPK,QAASL,IAAOM,IAAT,KAGPC,aAAcP,YAAOC,IAAaO,IAApBR,CAAF,KAGZS,WAAYT,YAAOC,IAAaS,UAApBV,CAAF,KAKVW,QAASX,YAAOC,IAAaU,QAApBX,CAAF,KAMPY,UAAWZ,YAAOC,IAAaW,UAApBZ,CAAF,MA+HKa,EA1HM,WAAO,IAAD,EACaC,cAA/BC,EADkB,EAClBA,YAAaC,EADK,EACLA,cA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OACAX,OACAvF,OAZa,CACdhC,IAAK,kBAAMX,GACXK,OAAQ,SAACrE,GAAD,OAAmB0M,EAAU,WAAY1M,EAAO,CAAEkF,KAAM,OAChEmC,OAAQ,kBAAMsF,EAAa,WAAY,CAAEzH,KAAM,QAU9C6B,QArBc,CACfC,OAAQ,SAACF,GAAD,ODmFMqG,EClFNrG,EDmFF,IAAIyE,SAAQ,SAACC,EAASC,GAC5B,IAAM2B,EAAqB,CAC1B5C,SAAU2C,EAASlG,OACnBoG,SAAUF,EAAS7B,UAGdS,EAAkB1B,EAAYC,SAAS6C,EAASlG,QAEhDqG,EAAwB,IAAI3C,IACjCyC,GAGmB,IAAIzC,IACvBoB,GAGWwB,iBAAiBD,EAAuB,CACnDE,UAAW,SAAClB,GACXd,EAAQc,EAAOtI,QAAQoD,WAExBqG,UAAW,SAACxB,GACXR,EAAOQ,SAtBI,IAACkB,GCjFdxI,IAAK,kBAAM4H,KACXlF,OAAQ,kBD+IM,WACf,IAAMyD,EAAcT,EAAYxK,cACZ,OAAhBiL,GACHA,EAAY4C,UClJEA,S","file":"static/js/main.5a224113.chunk.js","sourcesContent":["const theme: {[key : string] : any} = {\r\n\twhite: '#ffffff',\r\n\tindigo : '#00334F',\r\n\r\n\tred: '#EB4141',\r\n\r\n\tivory: '#F9F9F9',\r\n\r\n\tblack: '#333333',\r\n\tlightBlack: '#1A1A1A',\r\n\r\n\tsky: '#0098FF',\r\n\tdarkSky: '#0B82DC',\r\n\r\n\tblue: '#0676ED',\r\n\r\n\tshadow: 'rgba(0, 0, 0, 0.18)',\r\n\r\n\tlightGray: '#808080',\r\n\tdarkGray: '#575757',\r\n\twhiteGray : '#F1F1F1',\r\n\tgray: '#979797',\r\n\r\n\tlevelBlue: {\r\n\t\t1: '#E5F2FB',\r\n\t\t2: '#B0D7F4',\r\n\t\t3: '#78BAEC',\r\n\t\t4: '#419EE3',\r\n\t\t5: '#0B82DC',\r\n\t},\r\n};\r\n\r\nexport default theme;\r\n","export default \"data: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qg2i/GjAqqIZZdZPGYpg4lk2LRlc3VVFLbY+K+N+jXt+8MsDsH3FS1lrRGsySjVdt1ja5iZ04TOZxaZHNKo9jK22q1eosL7wOkiA1B1HILpCUDNGFuDVCi/VAqJKp1dyvBX9WtLZ7T8iAgiMVnk0ZmEyIyQTw5WkLYWxlftbMv1RmqIl51cM7xTpUxAKEkkftBMLD1tRgaKOv8fYBEYc24u62BuxqJ0kabzM4YlQGvSSUQCNSisPMBiqkgBQuntsaNq8TLJN16k4E1gTJLV/TkUjgkSM0mcKeV91sR5jSw1RP8QgKawZsapGOBMlr1qDQq2Z9djHrSpnp+JiL/1sjoriH4SRBCvKIURVSbAnU3KgOuByVKu1TtdHhttftKDdopgYIZ0Cvxkv2YnTQIZNkGH7UBhVPFoFdDCFdGZpRrCVnsV1I56QB2FaPm1l6HeohXO7I8zy6v+mhe2zHCxe0L4Ve5tpqJtoSnFcEXad7S4aTvbQbxXrAy6rzKGkuL5uQQryj6+6WBXvTvEwOldjuT1e70vh8lhEAVPp5CtTtVu4OKfjGwN9fH/o9SHSH8PlLiREzyTrzSvWAsaMCyV4kSQvjHcrn8yeHhIXeh5/YSUKDmHW7oNnR36X7wrtux+pWHBwcHt2reXrDrhPPz9RQoAsWGIrFEDESly/0kVF0/W3tPu7KJeiN+sfVWgF0nmJ/fnQLVQFF3C+mCFU2SjzcokUy8HkIgCTdGPcVKL5VYh6W3Fey+3XmEsRQYBJREusQb/ipVMHat+Cne0K8Jzas3ZRe459eEjuXgnp4bBZR0bVoghKQplVJSe2I1E395/vz53+/evVt8i9Ke6DBPU6DAzkDJx9fsZLzBn73Kyl4/MUuPryAs/wtTtAx590ggwwAAAABJRU5ErkJggg==\"","import styled from 'styled-components';\r\nimport GlobalStyled from 'style/GlobalStyled';\r\n\r\nimport theme from 'style/theme';\r\n\r\nimport routerUrl from 'config/routerUrl';\r\n\r\nimport useCurrentUser from 'hooks/useCurrentUser';\r\n\r\nconst Styled = {\r\n\tBody: styled(GlobalStyled.Body)`\r\n\t\tborder-bottom: 1px solid ${props => props.theme.gray};\r\n\t\theight: auto;\r\n\t\tpadding: 0;\r\n\t`,\r\n\tWrapper: styled(GlobalStyled.CenterRow)`\r\n\t\tfont-size: 1.15rem;\r\n\t\tcursor: default;\r\n\t\ttext-align: center;\r\n\t\tmargin-top: -1px;\r\n\t`,\r\n\tLogoImg: styled.img`\r\n\t\tpadding: 0.5rem 0;\r\n\t`,\r\n\tRightWrapper: styled(GlobalStyled.Col)`\r\n\t\theight: 100%;\r\n\t`,\r\n\tNavLinkCol: styled(GlobalStyled.CenterCol)`\r\n\t\tcolor: #666666;\r\n\t\theight: 100%;\r\n\t\tmargin-top: 2px;\r\n\t`,\r\n\tNavLink: styled(GlobalStyled.NavLink)`\r\n\t\tdisplay: flex;\r\n\t\theight: 100%;\r\n\t\talign-items: center;\r\n\t\tjustify-content: center;\r\n\t`,\r\n\tContainer: styled(GlobalStyled.Container)`\r\n\t\twidth: 1110px;\r\n\t`,\r\n};\r\n\r\nconst GlobalHeader = () => {\r\n\tconst { currentUser, deleteSession } = useCurrentUser();\r\n\r\n\tlet linkArray = [\r\n\t\t{\r\n\t\t\tvalue: '회사소개',\r\n\t\t\tto: routerUrl.introPage,\r\n\t\t},\r\n\t\t{\r\n\t\t\tvalue: '제품소개',\r\n\t\t\tto: routerUrl.productPage,\r\n\t\t},\r\n\t\t{\r\n\t\t\tvalue: '공정',\r\n\t\t\tto: routerUrl.processPage,\r\n\t\t},\r\n\t\t{\r\n\t\t\tvalue: '견적문의',\r\n\t\t\tto: routerUrl.helpPage,\r\n\t\t},\r\n\t\t{\r\n\t\t\tvalue: '로그인',\r\n\t\t\tto: routerUrl.loginPage,\r\n\t\t},\r\n\t];\r\n\r\n\tif (currentUser) {\r\n\t\tlinkArray = [\r\n\t\t\t{\r\n\t\t\t\tvalue: '회사소개',\r\n\t\t\t\tto: routerUrl.introPage,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tvalue: '제품소개',\r\n\t\t\t\tto: routerUrl.productPage,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tvalue: '공정',\r\n\t\t\t\tto: routerUrl.processPage,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tvalue: '견적문의',\r\n\t\t\t\tto: routerUrl.helpPage,\r\n\t\t\t},\r\n\t\t];\r\n\t}\r\n\r\n\tconst activeStyle = {\r\n\t\tborderBottom: `5px solid ${theme.indigo}`,\r\n\t\tpaddingTop: '5px',\r\n\t\tfontWeight: 500,\r\n\t\tcolor: '#333333',\r\n\t};\r\n\r\n\tconst headerLinkList = linkArray.map(\r\n\t\t(res: { to: string; value: string }, i: number) => {\r\n\t\t\tconst { to, value } = res;\r\n\t\t\treturn (\r\n\t\t\t\t\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t\te.preventDefault();\r\n\t\t\t\t\t\t\twindow.location.href = to;\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\t{value}\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t);\r\n\t\t},\r\n\t);\r\n\r\n\tconst handleClickSignOut = async () => {\r\n\t\tif (currentUser) {\r\n\t\t\tawait deleteSession();\r\n\t\t} else {\r\n\t\t\twindow.location.href = '/login';\r\n\t\t}\r\n\t};\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{headerLinkList}\r\n\t\t\t\t\t\t\t{currentUser ? (\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t\t로그아웃\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t) : (\r\n\t\t\t\t\t\t\t\t''\r\n\t\t\t\t\t\t\t)}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t);\r\n};\r\n\r\nexport default GlobalHeader;\r\n","import styled from 'styled-components';\r\n\r\nimport GlobalStyled from '../../style/GlobalStyled';\r\n\r\nconst Styled = {\r\n\tBody: styled(GlobalStyled.Body)`\r\n\t\tpadding: 0;\r\n\t\tbackground-color: ${props => props.theme.lightBlack};\r\n\t`,\r\n\tContainer: styled(GlobalStyled.Container)`\r\n\t\tpadding: 2rem 0;\r\n\t\tbackground-color: ${props => props.theme.lightBlack};\r\n\t\tcolor: ${props => props.theme.lightGray};\r\n\t`,\r\n\tLeftCol: styled(GlobalStyled.Col)`\r\n\t\talign-items: flex-start;\r\n\t`,\r\n};\r\n\r\nconst GlobalFooter = () => (\r\n\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t회사명 : (주)조은몰드\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t대표이사 : 하진호\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t사업자번호 : 780-86-00094\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t주소 : 경기도 광주시 초월읍 동막골길\r\n\t\t\t\t\t\t\t232(학동리 120) (우편번호 :12731)\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tTel : 031-767-5533 / 031-767-5523\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tFax : 031-768-4455\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tE-Mail : xotndnr7@naver.com\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tCOPYRIGHTⓒ (주)조은몰드., LTD. All rights reserved.\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\r\n\t\r\n);\r\n\r\nexport default GlobalFooter;\r\n","import { Suspense, lazy, useEffect } from 'react';\r\nimport { SWRConfig } from 'swr';\r\nimport styled, { ThemeProvider } from 'styled-components';\r\nimport { BrowserRouter as Router, Route, Switch } from 'react-router-dom';\r\n\r\nimport createFetcher from 'config/fetcher';\r\n\r\nimport theme from 'style/theme';\r\n\r\nimport GlobalHeader from 'components/organisms/GlobalHeader';\r\nimport GlobalFooter from 'components/organisms/GlobalFooter';\r\nimport Spinner from 'components/atoms/Spinner';\r\n\r\nimport routerUrl from 'config/routerUrl';\r\n\r\nimport useCurrentUser from 'hooks/useCurrentUser';\r\n\r\nconst MainPage = lazy(() => import('pages/MainPage'));\r\n\r\nconst TermPage = lazy(() => import('pages/TermPage'));\r\nconst PrivacyPage = lazy(() => import('pages/PrivacyPage'));\r\nconst IntroPage = lazy(() => import('pages/IntroPage'));\r\nconst ProductPage = lazy(() => import('pages/ProductPage'));\r\nconst ProcessPage = lazy(() => import('pages/ProcessPage'));\r\nconst HelpPage = lazy(() => import('pages/HelpPage'));\r\nconst SignUpPage = lazy(() => import('pages/SignUpPage'));\r\nconst LoginPage = lazy(() => import('pages/LoginPage'));\r\n\r\n// const Privacy = lazy(() => importMDX('pages/Privacy.mdx'));\r\n\r\nconst swrConfig: object = {\r\n\tonErrorRetry: (\r\n\t\terror: any,\r\n\t\tkey: any,\r\n\t\toption: any,\r\n\t\trevalidate: any,\r\n\t\t{ retryCount }: any,\r\n\t) => {\r\n\t\t// if (retryCount >= 3) return;\r\n\t\tif (error.response) {\r\n\t\t\tif (error.response.status === 404) return;\r\n\t\t}\r\n\t\t// if (error.response && error.response.status === 403) {\r\n\t\t// \tSwal.fire(globalSwal.apiErr);\r\n\t\t// \treturn;\r\n\t\t// }\r\n\t\t// setTimeout(() => revalidate({ retryCount: retryCount + 1 }), 5000);\r\n\t},\r\n};\r\n\r\nconst Styled = {\r\n\tHeader: styled.div`\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t`,\r\n\tWrapper: styled.div`\r\n\t\twidth: 100%;\r\n\t\tmin-height: 80vh;\r\n\t`,\r\n\tFooter: styled.div`\r\n\t\twidth: 100%;\r\n\t\tmax-height: 20vh;\r\n\t`,\r\n};\r\n\r\nfunction App() {\r\n\tconst { accessToken, getCurrentUser } = useCurrentUser();\r\n\r\n\tuseEffect(() => {\r\n\t\tasync function loading() {\r\n\t\t\tawait getCurrentUser();\r\n\t\t}\r\n\t\tloading();\r\n\t}, [getCurrentUser]);\r\n\r\n\tconst fetcher = createFetcher(accessToken);\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t>\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t\treturn
Err
;\r\n\t\t\t\t\t\t\t\t\t}}\r\n\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t
\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t
\r\n\t);\r\n}\r\n\r\nexport default App;\r\n","import axios from 'axios';\r\n\r\nexport default function createFetcher(idToken: string) {\r\n\treturn async function fetcher(args: string) {\r\n\t\tconst API = axios.create({\r\n\t\t\tbaseURL: process.env.REACT_APP_API_URL || '',\r\n\t\t\theaders: {\r\n\t\t\t\tAuthorization: idToken,\r\n\t\t\t},\r\n\t\t});\r\n\t\tconst res = await API.get(args);\r\n\t\treturn res.data;\r\n\t};\r\n}\r\n","import { ReportHandler } from 'web-vitals';\r\n\r\nconst reportWebVitals = (onPerfEntry?: ReportHandler) => {\r\n if (onPerfEntry && onPerfEntry instanceof Function) {\r\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\r\n getCLS(onPerfEntry);\r\n getFID(onPerfEntry);\r\n getFCP(onPerfEntry);\r\n getLCP(onPerfEntry);\r\n getTTFB(onPerfEntry);\r\n });\r\n }\r\n};\r\n\r\nexport default reportWebVitals;\r\n","import { createGlobalStyle } from 'styled-components';\r\nimport theme from './theme';\r\n\r\nconst GlobalStyle = () => {\r\n\treturn ;\r\n};\r\n\r\nconst Body = createGlobalStyle`\r\n html {\r\n font-size : 14px;\r\n }\r\n body{\r\n color : ${theme.black};\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n font-family: 'Noto Sans KR', sans-serif ;\r\n background-color : ${theme.white};\r\n margin : 0;\r\n }\r\n button {\r\n background-color : rgba(0,0,0,0)\r\n }\r\n img{\r\n max-width: 100%;\r\n vertical-align: middle;\r\n border-style: none;\r\n }\r\n ul{\r\n list-style-type: none;\r\n margin-top: 0;\r\n margin-bottom : 0;\r\n padding-left : 0px;\r\n }\r\n a{\r\n text-decoration : none;\r\n :active {\r\n color : ${theme.black};\r\n }\r\n }\r\n *, ::before, ::after {\r\n box-sizing : border-box;\r\n }\r\n ::-webkit-scrollbar {\r\n width: 6px;\r\n height: 6px;\r\n background-color: #161d37;\r\n }\r\n ::-webkit-scrollbar-thumb {\r\n border-radius: 3px;\r\n -moz-border-radius: 3px;\r\n -webkit-border-radius: 3px;\r\n background-color: #c3c3c3;\r\n }\r\n`;\r\n\r\nexport default GlobalStyle;\r\n","import 'core-js/stable';\r\nimport 'regenerator-runtime/runtime';\r\nimport 'react-app-polyfill/ie9';\r\nimport 'react-app-polyfill/stable';\r\n\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport App from './App';\r\nimport { CurrentUserProvider } from './contexts/CurrentUserContext';\r\nimport reportWebVitals from './reportWebVitals';\r\n\r\nimport GlobalStyle from 'style/GlobalStyle';\r\nimport 'style/font.css';\r\n\r\nReactDOM.render(\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t,\r\n\tdocument.getElementById('root'),\r\n);\r\n\r\n// If you want to start measuring performance in your app, pass a function\r\n// to log results (for example: reportWebVitals(console.log))\r\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\r\nreportWebVitals();\r\n","import { useContext, useCallback } from 'react';\r\n\r\nimport useAPI from 'hooks/useAPI';\r\n\r\nimport { CurrentUserContext } from 'contexts/CurrentUserContext';\r\n\r\nfunction useCurrentUser() {\r\n\tconst [currentUser, setCurrentUser] = useContext(CurrentUserContext);\r\n\tconst [API] = useAPI();\r\n\tconst accessToken = API.cookie.get();\r\n\r\n\tconst createCurrentUser = useCallback(\r\n\t\tasync (params: { userId: string; password: string }) => {\r\n\t\t\ttry {\r\n\t\t\t\tconst userSession = await API.session.insert({\r\n\t\t\t\t\t...params,\r\n\t\t\t\t\tuserId: params.userId,\r\n\t\t\t\t});\r\n\t\t\t\tsetCurrentUser(userSession);\r\n\t\t\t\tAPI.cookie.create(userSession);\r\n\t\t\t\treturn userSession;\r\n\t\t\t} catch (error) {\r\n\t\t\t\tsetCurrentUser(null);\r\n\t\t\t\tthrow error;\r\n\t\t\t}\r\n\t\t\t// eslint-disable-next-line\r\n\t\t},\r\n\t\t[API, setCurrentUser],\r\n\t);\r\n\r\n\tconst getCurrentUser = useCallback(async () => {\r\n\t\ttry {\r\n\t\t\tconst userSession = await API.session.get();\r\n\t\t\tconst idToken = userSession.signInUserSession.idToken.jwtToken;\r\n\t\t\tsetCurrentUser(idToken);\r\n\t\t\tAPI.cookie.create(idToken);\r\n\t\t\treturn idToken;\r\n\t\t} catch (error) {\r\n\t\t\tsetCurrentUser(null);\r\n\t\t\tAPI.cookie.delete();\r\n\t\t\tthrow error;\r\n\t\t}\r\n\t\t// eslint-disable-next-line\r\n\t}, [accessToken, setCurrentUser]);\r\n\r\n\tconst deleteSession = useCallback(async () => {\r\n\t\ttry {\r\n\t\t\tawait API.session.delete();\r\n\t\t} finally {\r\n\t\t\tAPI.cookie.delete();\r\n\t\t\twindow.location.href = '/login';\r\n\t\t}\r\n\t}, [API]);\r\n\r\n\treturn {\r\n\t\tcreateCurrentUser,\r\n\t\tcurrentUser,\r\n\t\taccessToken,\r\n\t\tgetCurrentUser,\r\n\t\tdeleteSession,\r\n\t};\r\n}\r\n\r\nexport default useCurrentUser;\r\n","import React, { createContext, useState } from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nconst CurrentUserContext = createContext(null);\r\n\r\nconst CurrentUserProvider = ({ children }: any) => {\r\n\tconst [currentUser, setCurrentUser] = useState(null);\r\n\treturn (\r\n\t\t\r\n\t\t\t{children}\r\n\t\t\r\n\t);\r\n};\r\n\r\nexport { CurrentUserContext, CurrentUserProvider };\r\n\r\nCurrentUserProvider.propTypes = {\r\n\tchildren: PropTypes.node.isRequired,\r\n};\r\n","import styled, { keyframes } from 'styled-components';\r\nimport {\r\n\ttypography,\r\n\tTypographyProps,\r\n\tspace,\r\n\tSpaceProps,\r\n\tcolor,\r\n\tColorProps,\r\n\tlayout,\r\n} from 'styled-system';\r\nimport { Link, NavLink } from 'react-router-dom';\r\n\r\nconst animation: any = {\r\n\tfadeInUp: keyframes`\r\n\t\t0%{\r\n\t\t\topacity: 0;\r\n\t\t\ttransform: translateY(20px);\r\n\t\t}\r\n\t\t100% {\r\n\t\t\topacity: 1;\r\n\t\t\ttransform: translateY(0px);\r\n\t\t}\r\n\t\t`,\r\n};\r\n\r\nconst Parent = {\r\n\tCard: styled.div`\r\n\t\tdisplay: flex;\r\n\t\twidth: 100%;\r\n\t\tpadding: 1rem;\r\n\t\tbackground-color: ${props => props.theme.white};\r\n\t\tborder-radius: 0.5rem;\r\n\t\tbox-shadow: ${props => props.theme.shadow} 0px 0px 10px 0px;\r\n\t\t${typography}\r\n\t\t${space}\r\n ${color}\r\n ${layout}\r\n\t`,\r\n\tCol: styled.div<\r\n\t\t{ width?: number } & ColorProps & TypographyProps & SpaceProps\r\n\t>`\r\n\t\tdisplay: flex;\r\n\t\twidth: ${props => props.width}%;\r\n\t\talign-items: center;\r\n\t\t${typography}\r\n\t\t${space}\r\n ${color}\r\n\t`,\r\n\tButton: styled.button`\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tjustify-content: center;\r\n\t\toutline: none;\r\n\t\tcolor: ${props => props.theme.white};\r\n\t\tborder: 0px;\r\n\t\tborder-radius: 0.25rem;\r\n\t\tpadding: 0;\r\n\t\tcursor: pointer;\r\n\t\tpadding: 1rem;\r\n\t\tfont-weight: bold;\r\n\t\tbackground-color: ${props => props.theme.black};\r\n\t\t${typography}\r\n\t\t${space}\r\n ${color}\r\n ${layout}\r\n\t`,\r\n\tRow: styled.div<\r\n\t\t{ bottom?: number } & ColorProps & TypographyProps & SpaceProps\r\n\t>`\r\n\t\tdisplay: flex;\r\n\t\twidth: 100%;\r\n\t\tmargin-bottom: ${props => props.bottom}rem;\r\n\t\t${typography}\r\n\t\t${space}\r\n ${color}\r\n ${layout}\r\n\t`,\r\n\tLink: styled(Link)`\r\n\t\tdisplay: flex;\r\n\t\tcolor: inherit;\r\n\t\t${typography}\r\n\t\t${space}\r\n ${color}\r\n ${layout}\r\n\t`,\r\n\tNavLink : styled(NavLink)`\r\n\t\tdisplay: flex;\r\n\t\tcolor: inherit;\r\n\t\t${typography}\r\n\t\t${space}\r\n ${color}\r\n ${layout}\r\n\t`\r\n};\r\n\r\n// const ButtonTheme = {\r\n// blue: {\r\n// backgroundColor: theme.color.blue,\r\n// color: theme.color.white,\r\n// hover: {\r\n// backgroundColor: theme.color.deepBlue\r\n// },\r\n// active: {\r\n// backgroundColor: theme.color.blackBlue\r\n// }\r\n// },\r\n// indigo: {\r\n// backgroundColor: theme.color.whiteIndigo,\r\n// color: theme.color.white,\r\n// hover: {\r\n// backgroundColor: theme.color.blueIndigo\r\n// },\r\n// active: {\r\n// backgroundColor: theme.color.realIndigo\r\n// }\r\n// },\r\n// gray: {\r\n// backgroundColor: theme.color.whiteBlue,\r\n// color: theme.color.white,\r\n// hover: {\r\n// backgroundColor: theme.color.realBlueGray\r\n// },\r\n// active: {\r\n// backgroundColor: theme.color.blackGray\r\n// }\r\n// }\r\n// }\r\n\r\nconst GlobalStyled = {\r\n\tCard: styled(Parent.Card)``,\r\n\tBody: styled.div`\r\n\t\twidth : 100%;\r\n\t\tmin-width: 1100px;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\tjustify-content : center;\r\n\t\talign-items : center;\r\n\t\theight: 100%;\r\n\t\tpadding : 2rem 0;\r\n\t\t${typography}\r\n\t\t${space}\r\n ${color}\r\n\t`,\r\n\r\n\tContainer: styled.div`\r\n\t\tmin-width: 1100px;\r\n\t\tmargin: 0 auto;\r\n\t\theight: 100%;\r\n\t\t${typography}\r\n\t\t${space}\r\n ${color}\r\n\t`,\r\n\r\n\tRow: styled(Parent.Row)``,\r\n\r\n\tImgRow: styled(Parent.Row)`\r\n\t\talign-items: center;\r\n\t`,\r\n\r\n\tFadeInUpRow: styled(Parent.Row)`\r\n\t\tanimation: ${animation.fadeInUp} 1s;\r\n\t`,\r\n\r\n\tHeightRow: styled(Parent.Row)`\r\n\t\tflex-direction: column;\r\n\t`,\r\n\r\n\tContentRow: styled(Parent.Row)`\r\n\t\tpadding: 1rem;\r\n\t\tflex-direction: column;\r\n\t\tborder-bottom: 1px solid ${props => props.theme.lightGray};\r\n\t\t:nth-child(even) {\r\n\t\t\tbackground-color: ${props => props.theme.ivory};\r\n\t\t}\r\n\t\t${typography}\r\n\t\t${space}\r\n ${color}\r\n\t`,\r\n\r\n\tCenterRow: styled(Parent.Row)`\r\n\t\talign-items: center;\r\n\t\tjustify-content: center;\r\n\t`,\r\n\r\n\tCol: styled(Parent.Col)``,\r\n\r\n\tCenterCol: styled(Parent.Col)`\r\n\t\talign-items: center;\r\n\t\tjustify-content: center;\r\n\t`,\r\n\r\n\tRightCol: styled(Parent.Col)`\r\n\t\talign-items: center;\r\n\t\tjustify-content: flex-end;\r\n\t`,\r\n\tButton: styled(Parent.Button)`\r\n\t\twidth: 100%;\r\n\t`,\r\n\tActiveButton: styled(Parent.Button)<{ isActive: boolean | undefined }>`\r\n\t\twidth: 100%;\r\n\t\tbackground-color: ${props =>\r\n\t\t\tprops.isActive ? props.theme.black : props.theme.gray};\r\n\t`,\r\n\tTransparentButton: styled.button`\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tjustify-content: center;\r\n\t\toutline: none;\r\n\t\tbackground-color: inherit;\r\n\t\tborder: 0px;\r\n\t\tcursor: pointer;\r\n\t`,\r\n\tRowLink: styled(Parent.Link)`\r\n\t\twidth: 100%;\r\n\t`,\r\n\tLink: styled(Parent.Link)``,\r\n\tNavLink: styled(Parent.NavLink)``,\r\n\tTitle: styled(Parent.Row)`\r\n\t\tfont-size: 1.15rem;\r\n\t\tfont-weight: bold;\r\n\t\tcolor: ${props => props.theme.lightBlack};\r\n\t`,\r\n\r\n\t// ButtonCard: styled(Parent.Card)`\r\n\t// width : 100%;\r\n\t// padding : 2rem 0;\r\n\t// padding-top : 4rem;\r\n\t// flex-direction : column;\r\n\t// align-items : center;\r\n\t// justify-content : center;\r\n\t// border : 0.175rem solid ${props => props.theme.color.white};\r\n\t// :hover {\r\n\t// background-color : ${props => props.theme.color.whiteSky};\r\n\t// }\r\n\t// :active {\r\n\t// border : 0.175rem solid ${props => props.theme.color.sky};\r\n\t// }\r\n\t// `,\r\n\r\n\t// Button: styled(Parent.Button)`\r\n\t// width : ${props=>props.width}\r\n\t// color : ${props => ButtonTheme[props.colorTheme ? props.colorTheme : 'blue'].color};\r\n\t// background-color : ${props => ButtonTheme[props.colorTheme ? props.colorTheme : 'blue'].backgroundColor};\r\n\t// :hover {\r\n\t// background-color : ${props => ButtonTheme[props.colorTheme ? props.colorTheme : 'blue'].hover.backgroundColor};\r\n\t// }\r\n\t// :active {\r\n\t// background-color : ${props => ButtonTheme[props.colorTheme ? props.colorTheme : 'blue'].active.backgroundColor};\r\n\t// }\r\n\t// `,\r\n\r\n\t// ThemeButton: styled(Parent.Button)`\r\n\r\n\t// `,\r\n\r\n\t// ActiveButton: styled(Parent.Button)`\r\n\t// cursor: ${props => props.isActive ? 'pointer' : 'default'};\r\n\t// color : ${props => ButtonTheme[props.colorTheme ? props.colorTheme : 'blue'].color};\r\n\t// background-color : ${props => ButtonTheme[props.colorTheme ? props.colorTheme : 'blue'].backgroundColor};\r\n\t// opacity: ${props => props.isActive ? 1 : 0.6};\r\n\t// :hover {\r\n\t// background-color : ${props => props.isActive ?\r\n\t// ButtonTheme[props.colorTheme ? props.colorTheme : 'blue'].hover.backgroundColor :\r\n\t// ButtonTheme[props.colorTheme ? props.colorTheme : 'blue'].backgroundColor\r\n\t// };\r\n\t// }\r\n\t// :active {\r\n\t// background-color : ${props => props.isActive ?\r\n\t// ButtonTheme[props.colorTheme ? props.colorTheme : 'blue'].active.backgroundColor :\r\n\t// ButtonTheme[props.colorTheme ? props.colorTheme : 'blue'].backgroundColor\r\n\t// };\r\n\t// }\r\n\t// `,\r\n\r\n\t// ActiveRow: styled(Parent.Row)`\r\n\t// display: ${props => props.isActive ? 'flex' : 'none'};\r\n\t// `,\r\n\r\n\t// BorderButton: styled.button`\r\n\t// border : 2px solid ${props => props.borderColor ? props.borderColor : props.theme.color.blue};\r\n\t// color : ${props => props.borderColor ? props.borderColor : props.theme.color.blue};\r\n\t// border-radius : 0.5rem;\r\n\t// width : 100%;\r\n\t// padding : 0.5rem 0;\r\n\t// outline : none;\r\n\t// ${typography}\r\n\t// ${space}\r\n\t// ${color}\r\n\t// ${layout}\r\n\t// `,\r\n};\r\n\r\nexport default GlobalStyled;\r\n","import React from 'react';\r\nimport styled, { keyframes } from 'styled-components';\r\n\r\nimport GlobalStyled from '../../style/GlobalStyled';\r\n\r\nconst Keyframes = {\r\n\tspinnerSpin: keyframes`\r\n to {\r\n -moz-transform: rotate(360deg); /* FF3.5/3.6 */\r\n -o-transform: rotate(360deg); /* Opera 10.5 */\r\n -webkit-transform: rotate(360deg); /* Saf3.1+ */\r\n transform: rotate(360deg); /* Newer browsers (incl IE9) */\r\n }\r\n `,\r\n};\r\n\r\nconst Styled = {\r\n\tBody: styled(GlobalStyled.CenterRow)<{ height: string }>`\r\n\t\twidth: 100%;\r\n\t\theight: ${props => props.height};\r\n\t\tmargin: auto;\r\n\t`,\r\n\tLoadingCircle: styled.div<{ size: string }>`\r\n\t\tmargin: 0 auto;\r\n\t\twidth: ${props => props.size};\r\n\t\theight: ${props => props.size};\r\n\t\tborder: 0.75rem solid ${props => props.theme.lightGray};\r\n\t\tborder-radius: 50%;\r\n\t\tborder-top-color: ${props => props.theme.black};\r\n\t\tanimation: ${Keyframes.spinnerSpin} 1s ease-in-out infinite;\r\n\t`,\r\n};\r\n\r\ninterface CircleSpinnerInterface {\r\n\tsize: string;\r\n\theight: string;\r\n\tisLoading: boolean;\r\n\tchildren: any;\r\n}\r\n\r\nconst CircleSpinner = (props: CircleSpinnerInterface) => {\r\n\tconst { size, height, isLoading, children } = props;\r\n\r\n\treturn isLoading ? (\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t) : (\r\n\t\t<>{children}\r\n\t);\r\n};\r\n\r\nCircleSpinner.defaultProps = {\r\n\tsize: '100%',\r\n\theight: '',\r\n\tisLoading: true,\r\n\tchildren: '',\r\n};\r\n\r\nexport default CircleSpinner;\r\n","const routerUrl: { [Key: string]: string } = {\r\n\tmainPage: '/',\r\n\ttermPage: '/term',\r\n\tintroPage : '/intro',\r\n\tproductPage : '/product',\r\n\tprivacyPage: '/privacy',\r\n\tprocessPage : '/process',\r\n\thelpPage : '/help',\r\n\tsignUpPage : '/signup',\r\n\tloginPage : '/login',\r\n};\r\n\r\nexport default routerUrl;\r\n","import * as AmazonCognitoIdentity from 'amazon-cognito-identity-js';\r\nimport AWS from 'aws-sdk';\r\n\r\nconst cognitoSetting: any = {\r\n\tuserPoolID: process.env.REACT_APP_COGNITO_USERPOOLID || '',\r\n\tclientId: process.env.REACT_APP_COGNITO_CLIENTID || '',\r\n\tregion: process.env.REACT_APP_COGNITO_REGION || '',\r\n\tidentityPoolId: process.env.REACT_APP_COGNITO_IDENTITYPOOLID || '',\r\n\r\n\tattribute: {\r\n\t\tname: 'name',\r\n\t\tbirthDate: 'custom:birth_date',\r\n\t\tgender: 'gender',\r\n\t\tphoneNumber: 'phone_number',\r\n\t\tphoneNumberVerified: 'phone_number_verified',\r\n\t\taddress: 'address',\r\n\t\tdetailAddress: 'custom:detail_address',\r\n\t\taddressType: 'custom:address_type',\r\n\t\tpostcode: 'custom:postcode',\r\n\t\tsignUpPath: 'custom:signUp_path',\r\n\t\tisSignUpService: 'custom:isSignUpService',\r\n\t},\r\n};\r\n\r\nexport default cognitoSetting;\r\n\r\nconst cognitoInfo = {\r\n\tuserData: (userName: string) => ({\r\n\t\tUsername: userName,\r\n\t\tPool: cognitoInfo.userPool(),\r\n\t}),\r\n\tuserPool: () =>\r\n\t\tnew AmazonCognitoIdentity.CognitoUserPool({\r\n\t\t\tUserPoolId: cognitoSetting.userPoolID,\r\n\t\t\tClientId: cognitoSetting.clientId,\r\n\t\t}),\r\n\tcurrentUser: () => cognitoInfo.userPool().getCurrentUser(),\r\n\tcognitoUser: (userId: string) =>\r\n\t\tnew AmazonCognitoIdentity.CognitoUser(cognitoInfo.userData(userId)),\r\n\tcognitoAdmin: (data: any) =>\r\n\t\tnew AWS.CognitoIdentityServiceProvider({\r\n\t\t\taccessKeyId: data.accessKeyId,\r\n\t\t\tsecretAccessKey: data.secretAccessKey,\r\n\t\t\tsessionToken: data.sessionToken,\r\n\t\t}),\r\n};\r\n\r\nconst getCognitoUser = (userId: string) => {\r\n\treturn cognitoInfo.cognitoUser(userId);\r\n};\r\n\r\nconst getCurrentUser = () => {\r\n\treturn cognitoInfo.currentUser();\r\n};\r\n\r\nconst signUp = ({userId, password, name, phoneNumber}: {\r\n\tuserId: string;\r\n\tpassword: string;\r\n\tname?: string;\r\n\tphoneNumber : string;\r\n}) => {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tconst userPool = cognitoInfo.userPool();\r\n\t\tconst attributeData = [\r\n\t\t\t{\r\n\t\t\t\tname: cognitoSetting.attribute.phoneNumber,\r\n\t\t\t\tvalue: userId,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tname: cognitoSetting.attribute.name,\r\n\t\t\t\tvalue: name,\r\n\t\t\t},\r\n\t\t\t{\r\n\t\t\t\tname: cognitoSetting.attribute.phoneNumber,\r\n\t\t\t\tvalue: phoneNumber,\r\n\t\t\t},\r\n\t\t];\r\n\t\tlet attributeList: any = [];\r\n\r\n\t\tattributeData.map((data: any) => {\r\n\t\t\tconst cognitoUserFormat = {\r\n\t\t\t\tName: data.name,\r\n\t\t\t\tValue: data.value,\r\n\t\t\t};\r\n\t\t\tconst cognitoUserData = new AmazonCognitoIdentity.CognitoUserAttribute(\r\n\t\t\t\tcognitoUserFormat,\r\n\t\t\t);\r\n\t\t\tattributeList.push(cognitoUserData);\r\n\t\t\treturn true;\r\n\t\t});\r\n\r\n\t\tuserPool.signUp(\r\n\t\t\tuserId,\r\n\t\t\tpassword,\r\n\t\t\tattributeList,\r\n\t\t\t[],\r\n\t\t\t(err: any, res: any) => {\r\n\t\t\t\tif (err) {\r\n\t\t\t\t\treject(err);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresolve(res.user);\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t);\r\n\t});\r\n};\r\n\r\nconst isOverlapUserId = (userId: string) => {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tconst cognitoUser = new AmazonCognitoIdentity.CognitoUser(\r\n\t\t\tcognitoInfo.userData(userId),\r\n\t\t);\r\n\t\tcognitoUser.confirmRegistration(\r\n\t\t\t'123456',\r\n\t\t\ttrue,\r\n\t\t\tfunction (err: any, result: any) {\r\n\t\t\t\tif (err) {\r\n\t\t\t\t\treject(err);\r\n\t\t\t\t}\r\n\t\t\t\tresolve(result);\r\n\t\t\t},\r\n\t\t);\r\n\t});\r\n};\r\n\r\nconst signIn = (dataUser: any) => {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tconst authenticationData = {\r\n\t\t\tUsername: dataUser.userId,\r\n\t\t\tPassword: dataUser.password,\r\n\t\t};\r\n\r\n\t\tconst cognitoUserData = cognitoInfo.userData(dataUser.userId);\r\n\r\n\t\tconst authenticationDetails = new AmazonCognitoIdentity.AuthenticationDetails(\r\n\t\t\tauthenticationData,\r\n\t\t);\r\n\r\n\t\tconst cognitoUser = new AmazonCognitoIdentity.CognitoUser(\r\n\t\t\tcognitoUserData,\r\n\t\t);\r\n\r\n\t\tcognitoUser.authenticateUser(authenticationDetails, {\r\n\t\t\tonSuccess: (result: any) => {\r\n\t\t\t\tresolve(result.idToken.jwtToken);\r\n\t\t\t},\r\n\t\t\tonFailure: (err: any) => {\r\n\t\t\t\treject(err);\r\n\t\t\t},\r\n\t\t\t// mfaRequired: function (codeDeliveryDetails) {\r\n\t\t\t// const verificationCode = prompt('Please input verification code', '');\r\n\t\t\t// cognitoUser.sendMFACode(verificationCode, this);\r\n\t\t\t// }\r\n\t\t});\r\n\t});\r\n};\r\n\r\nconst signUpConfirm = ({cognitoUser, confirmCode} :{cognitoUser: any, confirmCode: string | number}) => {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tif (cognitoUser === null) {\r\n\t\t\treject(null);\r\n\t\t} else {\r\n\t\t\tcognitoUser.confirmRegistration(\r\n\t\t\t\tconfirmCode,\r\n\t\t\t\ttrue,\r\n\t\t\t\tfunction (err: any, result: any) {\r\n\t\t\t\t\tif (err) {\r\n\t\t\t\t\t\treject(err);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tresolve(result);\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t);\r\n\t\t}\r\n\t});\r\n};\r\n\r\nconst resendConfirmationCode = (cognitoUser: any) => {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tcognitoUser.resendConfirmationCode(function (err: any, result: any) {\r\n\t\t\tif (err) {\r\n\t\t\t\treject(err);\r\n\t\t\t}\r\n\t\t\tresolve(result);\r\n\t\t});\r\n\t});\r\n};\r\n\r\nconst signOut = () => {\r\n\tconst cognitoUser = cognitoInfo.currentUser();\r\n\tif (cognitoUser !== null) {\r\n\t\tcognitoUser.signOut();\r\n\t}\r\n};\r\n\r\nconst getSession = () => {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tconst cognitoUser = cognitoInfo.currentUser();\r\n\r\n\t\tif (cognitoUser === null) {\r\n\t\t\treject(null);\r\n\t\t} else {\r\n\t\t\tcognitoUser.getSession((err: any, result: any) => {\r\n\t\t\t\tif (err) {\r\n\t\t\t\t\treject(null);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tresolve(cognitoUser);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t});\r\n};\r\n\r\nconst getAttributes = (cognitoUser: any) => {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tcognitoUser.getUserAttributes((err: any, result: any) => {\r\n\t\t\tif (err === !null) {\r\n\t\t\t\treject(err);\r\n\t\t\t} else {\r\n\t\t\t\tresolve(result);\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n};\r\n\r\nconst getSessionAttributes = () => {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tgetSession()\r\n\t\t\t.then(res => {\r\n\t\t\t\tgetAttributes(res)\r\n\t\t\t\t\t.then(res => {\r\n\t\t\t\t\t\tresolve(res);\r\n\t\t\t\t\t})\r\n\t\t\t\t\t.catch((err: any) => {});\r\n\t\t\t})\r\n\t\t\t.catch((err: any) => {\r\n\t\t\t\treject(err);\r\n\t\t\t});\r\n\t});\r\n};\r\n\r\nconst updateAttribute = (attributeData: any, cognitoUser: any) => {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tlet attributeList: any = [];\r\n\t\tattributeData.map((data: any) => {\r\n\t\t\tlet cognitoAttributeForm = {\r\n\t\t\t\tName: data.name,\r\n\t\t\t\tValue: data.value,\r\n\t\t\t};\r\n\t\t\tlet cognitoAttributeData = new AmazonCognitoIdentity.CognitoUserAttribute(\r\n\t\t\t\tcognitoAttributeForm,\r\n\t\t\t);\r\n\t\t\tattributeList.push(cognitoAttributeData);\r\n\t\t\treturn true;\r\n\t\t});\r\n\r\n\t\tcognitoUser.updateAttributes(\r\n\t\t\tattributeList,\r\n\t\t\tfunction (err: any, result: any) {\r\n\t\t\t\tif (err) {\r\n\t\t\t\t\treject(err);\r\n\t\t\t\t}\r\n\t\t\t\tresolve(result);\r\n\t\t\t},\r\n\t\t);\r\n\t});\r\n};\r\n\r\nconst changePassword = (\r\n\tcognitoUser: any,\r\n\toldPassword: string,\r\n\tnewPassword: string,\r\n) => {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tcognitoUser.changePassword(\r\n\t\t\toldPassword,\r\n\t\t\tnewPassword,\r\n\t\t\tfunction (err: any, result: any) {\r\n\t\t\t\tif (err) {\r\n\t\t\t\t\treject(err);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tresolve(result);\r\n\t\t\t},\r\n\t\t);\r\n\t});\r\n};\r\n\r\nconst forgotPassword = (userId: string) => {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tconst cognitoUser = cognitoInfo.cognitoUser(userId);\r\n\t\tcognitoUser.forgotPassword({\r\n\t\t\tonSuccess: function (result: any) {},\r\n\t\t\tonFailure: function (err: any) {\r\n\t\t\t\treject(err);\r\n\t\t\t\tif (err.code === 'CodeMismatchException') {\r\n\t\t\t\t} else {\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tinputVerificationCode() {\r\n\t\t\t\t// const verificationCode = prompt('Please input verification code ' ,'');\r\n\t\t\t\t// const newPassword = prompt('Enter new password ' ,'');\r\n\t\t\t\t// cognitoUser.confirmPassword(verificationCode, newPassword, this);\r\n\t\t\t\tconst result = {\r\n\t\t\t\t\tcognitoUser: cognitoUser,\r\n\t\t\t\t\tobj: this,\r\n\t\t\t\t};\r\n\t\t\t\tresolve(result);\r\n\t\t\t},\r\n\t\t});\r\n\t});\r\n};\r\n\r\nconst confirmPassword = ({\r\n\tcognitoUser,\r\n\tconfirmCode,\r\n\tpassword,\r\n\tcognitoUserObj,\r\n}: {\r\n\tcognitoUser: any;\r\n\tconfirmCode: string;\r\n\tpassword: string;\r\n\tcognitoUserObj: any;\r\n}) => {\r\n\treturn cognitoUser.confirmPassword(confirmCode, password, cognitoUserObj);\r\n};\r\n\r\nconst deleteUser = (cognitoUser: any) => {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tcognitoUser.deleteUser(function (err: any, result: any) {\r\n\t\t\tif (err) {\r\n\t\t\t\treject(err);\r\n\t\t\t} else {\r\n\t\t\t\tresolve(result);\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n};\r\n\r\nconst getAttributeVerificationCode = (cognitoUser: any) => {\r\n\treturn new Promise((resolve, reject) => {\r\n\t\tcognitoUser.getAttributeVerificationCode(\r\n\t\t\tcognitoSetting.attribute.phoneNumber,\r\n\t\t\t{\r\n\t\t\t\tonSuccess: function (result: any) {\r\n\t\t\t\t\t//console.log('call result: ' + result);\r\n\t\t\t\t},\r\n\t\t\t\tonFailure: (err: any) => {\r\n\t\t\t\t\treject(err);\r\n\t\t\t\t},\r\n\t\t\t\tinputVerificationCode: () => {\r\n\t\t\t\t\t//var verificationCode = prompt('Please input verification code: ' ,'');\r\n\t\t\t\t\tconst result = {\r\n\t\t\t\t\t\tcognitoUser: cognitoUser,\r\n\t\t\t\t\t\tobj: this,\r\n\t\t\t\t\t};\r\n\t\t\t\t\tresolve(result);\r\n\t\t\t\t\t// cognitoUser.verifyAttribute(cognitoSetting.attribute.phoneNumber, verificationCode, this);\r\n\t\t\t\t},\r\n\t\t\t},\r\n\t\t);\r\n\t});\r\n};\r\n\r\nconst getIdentity = (idToken: any) => {\r\n\tconst cognitoUserPoolLoginProvider =\r\n\t\t'cognito-idp.' +\r\n\t\tcognitoSetting.region +\r\n\t\t'.amazonaws.com/' +\r\n\t\tcognitoSetting.userPoolID;\r\n\tlet logins: any = {};\r\n\tlogins[cognitoUserPoolLoginProvider] = idToken;\r\n\r\n\tAWS.config.credentials = new AWS.CognitoIdentityCredentials({\r\n\t\tIdentityPoolId: cognitoSetting.identityPoolId,\r\n\t\tLogins: logins,\r\n\t});\r\n\r\n\tAWS.config.update({ region: cognitoSetting.region });\r\n};\r\n\r\nexport {\r\n\tgetCognitoUser,\r\n\tgetCurrentUser,\r\n\tsignUp,\r\n\tisOverlapUserId,\r\n\tsignIn,\r\n\tsignUpConfirm,\r\n\tresendConfirmationCode,\r\n\tsignOut,\r\n\tgetSession,\r\n\tgetAttributes,\r\n\tgetSessionAttributes,\r\n\tupdateAttribute,\r\n\tchangePassword,\r\n\tforgotPassword,\r\n\tconfirmPassword,\r\n\tdeleteUser,\r\n\tgetAttributeVerificationCode,\r\n\tgetIdentity,\r\n};\r\n","import axios from 'axios';\r\nimport { useCookies } from 'react-cookie';\r\nimport { getSession, signOut, signIn, signUp, signUpConfirm } from 'api/cognito';\r\n\r\nfunction useAPI(): any {\r\n\tconst [cookies, setCookie, removeCookie] = useCookies();\r\n\tconst idToken = cookies.id_token;\r\n\r\n\tconst API: any = axios.create({\r\n\t\tbaseURL: process.env.REACT_APP_API_URL || '',\r\n\t\theaders: {\r\n\t\t\tAuthorization: idToken,\r\n\t\t},\r\n\t});\r\n\r\n\tconst APIs: any = {\r\n\t\tgetAll: () => API.get('/get'),\r\n\t};\r\n\r\n\tconst user = {\r\n\t\tcreate: (params: {\r\n\t\t\tuser_phone: string;\r\n\t\t\tnickname: string;\r\n\t\t\tpassword: string;\r\n\t\t}) => API.post('/users/insert', params),\r\n\t\tforgotPassword: (params: { new_password: string }) =>\r\n\t\t\tAPI.post('/users/change-pwd', params),\r\n\t\tsignUpCheck: async({cognitoUser, confirmCode} : {cognitoUser: any, confirmCode: string | number}) =>\r\n\t\t\t{\r\n\t\t\t\tawait signUpConfirm({cognitoUser, confirmCode})\r\n\t\t\t},\r\n\t\tsignUp: async(userInfo: { userId: string;\r\n\t\t\tpassword: string;\r\n\t\t\tname?: string;\r\n\t\t\tphoneNumber : string;\r\n\t\t}) => {\r\n\t\t\tconst result = await signUp(userInfo)\r\n\t\t\treturn result\r\n\t\t}\r\n\t};\r\n\r\n\tconst session = {\r\n\t\tinsert: (params: { userId: string; password: string }) =>\r\n\t\t\tsignIn(params),\r\n\t\tget: () => getSession(),\r\n\t\tdelete: () => signOut(),\r\n\t};\r\n\r\n\r\n\tconst cookie = {\r\n\t\tget: () => idToken,\r\n\t\tcreate: (value: string) => setCookie('id_token', value, { path: '/' }),\r\n\t\tdelete: () => removeCookie('id_token', { path: '/' }),\r\n\t};\r\n\r\n\r\n\treturn [\r\n\t\t{\r\n\t\t\tAPI,\r\n\t\t\tAPIs,\r\n\t\t\tuser,\r\n\t\t\tcookie,\r\n\t\t\tsession\r\n\t\t},\r\n\t];\r\n}\r\n\r\nexport default useAPI;\r\n"],"sourceRoot":""}