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KAAAU,UAAA,CAAAA,GAC7C,EACAwB,cAAA,SAAA3B,CAAA,EACA,OAAAD,EAAAN,EAAA,GAA6B,KAAAO,SAAA,CAAAA,GAAA,KAAAG,UAAA,CAC7B,CACA,EACA,CACAA,WAAA,CAAoBhJ,MAAAhE,OAAAyO,MAAA,CAAA3B,EAAA,EACpBD,UAAA,CAAmB7I,MAAAhE,OAAAyO,MAAA,CAAA5B,EAAA,CACnB,EAEA,EAlHA,CACAwB,KAAA,SAAArK,CAAA,EAIA,MAHA,MAAAA,CAAA,KACAA,CAAAA,EAAAA,EAAAkK,KAAA,QAEAlK,EAAA6C,OAAA,oBAAsCyG,mBACtC,EACAM,MAAA,SAAA5J,CAAA,EACA,OAAAqJ,mBAAArJ,GAAA6C,OAAA,CACA,2CACAyG,mBAEA,CACA,EAuGA,CAAmCvH,KAAA","sources":["webpack://_N_E/?f565","webpack://_N_E/./src/components/pages/login/LoginPage.tsx","webpack://_N_E/./src/components/partsGroups/navigation/ResearcherFooter.tsx","webpack://_N_E/./src/components/partsGroups/navigation/ResearcherLogoutHeader.tsx","webpack://_N_E/./src/components/providers/AuthProvider.tsx","webpack://_N_E/./src/libs/apiUrls.ts","webpack://_N_E/../../packages/ui/src/buttons/ButtonDefault.tsx","webpack://_N_E/./src/styles/components/pages/Login.module.scss","webpack://_N_E/./src/styles/components/partsGroups/navigation/ResearcherHeader.module.scss","webpack://_N_E/../../packages/ui/src/styles/components/parts/Input.module.scss","webpack://_N_E/../../packages/ui/src/styles/components/partsGroups/Footer.module.scss","webpack://_N_E/../../packages/ui/src/styles/components/parts/Button.module.css","webpack://_N_E/../../node_modules/js-cookie/dist/js.cookie.mjs","webpack://_N_E/"],"sourcesContent":["import(/* webpackMode: \"eager\" */ \"/codebuild/output/src487489695/src/frontend/apps/researchers/src/components/pages/login/LoginPage.tsx\")","'use client'\n\nimport Link from 'next/link'\nimport Image from 'next/image'\nimport ButtonDefault from 'ui/src/buttons/ButtonDefault'\nimport ResearcherLogoutHeader from '@/components/partsGroups/navigation/ResearcherLogoutHeader'\nimport ResearcherFooter from '@/components/partsGroups/navigation/ResearcherFooter'\nimport styles from '@/styles/components/pages/Login.module.scss'\nimport inputstyles from 'ui/src/styles/components/parts/Input.module.scss'\nimport { useLocale } from '@/features/i18n/hooks/useLocale'\nimport { appUrls } from '@/libs/appUrls'\nimport { useRouter } from 'next/navigation'\nimport { useState } from 'react'\nimport { apiUrls } from '@/libs/apiUrls'\nimport { TUser } from '@/libs/types/TUser'\nimport { setTUser, setToken } from '@/components/providers/AuthProvider'\nimport * as Sentry from '@sentry/nextjs'\n\ninterface Errors {\n mailAddress?: string\n password?: string\n}\n\nconst roleIds = {\n admin: 10,\n company: 20,\n personal: 30,\n companyBanList: 201,\n companyOnlyShow: 202,\n company12Plus: 2012,\n company200: 200,\n}\n\nexport default function LoginPage() {\n const { locale, t } = useLocale()\n const router = useRouter()\n\n const [inputs, setInputs] = useState({\n mailAddress: '',\n password: '',\n rememberMe: false,\n })\n const [errors, setErrors] = useState({})\n const [loginError, setLoginError] = useState('')\n\n const loginAction = async () => {\n let newErrors: Errors = {}\n if (!inputs.mailAddress) {\n newErrors.mailAddress = t.validate.required\n }\n if (!inputs.password) {\n newErrors.password = t.validate.required\n }\n\n if (Object.keys(newErrors).length) {\n setErrors(newErrors)\n return\n }\n setErrors({})\n\n const data = {\n roleId: roleIds.personal.toString(),\n loginAccount: inputs.mailAddress,\n password: inputs.password,\n }\n\n let loginError = ''\n let tUser: TUser, token: string\n try {\n const response = await fetch(apiUrls.auth.login(), {\n method: 'post',\n body: JSON.stringify(data),\n headers: { Accept: 'application/json', 'Content-Type': 'application/json;charset=utf-8' },\n cache: 'no-store',\n })\n if (response.ok) {\n const result = await response.json()\n switch (result.status) {\n case 1: // 成功\n tUser = result.extend['tUser']\n token = result.extend['srustRetsToken']\n\n tUser.password = '' // ハッシュではあるが、念のために消す\n break\n case 2: // ユーザが存在しない\n loginError = t.login.UserNotExist\n break\n case 3: // パスワードが一致しない\n loginError = t.login.WrongPassword\n break\n case 4: // (個人) 審査中\n loginError = t.login.NotApproved\n break\n case 5: // (個人) 審査失敗\n loginError = t.login.ApprovalFailed\n break\n case 0: // 失敗\n default:\n loginError = t.login.Failed\n // console.log(result.msg)\n }\n } else {\n loginError = t.login.Failed\n // console.log(response.statusText)\n }\n\n if (loginError) {\n throw new Error()\n }\n } catch {\n if (!loginError) {\n loginError = t.login.NetworkError\n }\n\n setLoginError(loginError)\n // Sentryにエラーを送信\n Sentry.captureException(loginError)\n return\n }\n\n setTUser(tUser!, inputs.rememberMe)\n setToken(token!, inputs.rememberMe)\n router.push(appUrls.index(locale))\n }\n\n return (\n <>\n
\n \n
\n
\n
\n \n

{t.login.LoginPage}

\n {process.env.NEXT_PUBLIC_ENV === 'development' && (\n

{t.login.TestEnvironment}

\n )}\n
\n {/*\n
    \n
  • \n \n
  • \n
  • \n \n
  • \n
\n */}\n {\n e.preventDefault()\n loginAction()\n }}\n >\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{t.login.Email}
\n setInputs({ ...inputs, mailAddress: e.target.value })}\n />\n {errors.mailAddress ? (\n {errors.mailAddress}\n ) : null}\n
{t.login.Password}
\n setInputs({ ...inputs, password: e.target.value })}\n />\n {errors.password ? (\n {errors.password}\n ) : null}\n
\n
\n setInputs({ ...inputs, rememberMe: e.target.checked })}\n />\n \n
\n
\n {loginError ? {loginError} : null}\n
\n
\n \n
\n {t.login.ForgotPassword}\n
\n
\n {t.login.RegisterLink}\n
\n \n {process.env.NEXT_PUBLIC_ENV === 'development' && (\n \n )}\n
\n \n
\n
\n \n
\n \n )\n}\n","'use client'\n\nimport { useLocale } from '@/features/i18n/hooks/useLocale'\n// TODO: Truborepoが対応したらSCSSに変更する\n// TODO: ts-ignoreをなくす\n// @ts-ignore\nimport styles from 'ui/src/styles/components/partsGroups/Footer.module.scss'\n\nexport default function ResearcherFooter({ className }: { className?: string }) {\n const { t } = useLocale()\n\n return (\n <>\n \n \n )\n}\n","'use client'\n\nimport Image from 'next/image'\nimport styles from '@/styles/components/partsGroups/navigation/ResearcherHeader.module.scss'\nimport Link from 'next/link'\nimport { useLocale } from '@/features/i18n/hooks/useLocale'\nimport { appUrls } from '@/libs/appUrls'\nimport { usePathname, useRouter, useSearchParams } from 'next/navigation'\n\nexport default function ResearcherHeader({ className }: { className?: string }) {\n const { locale, t } = useLocale()\n const router = useRouter()\n const path = usePathname()\n const query = useSearchParams()\n\n const languages = [\n { label: t.Japanese, value: 'ja' },\n { label: t.English, value: 'en' },\n ]\n const selectedLanguage = languages.find((lang) => lang.value === locale)\n\n return (\n <>\n
\n \n \"CoA\n \n
\n {\n const originalPath = path.replace('/ja', '').replace('/en', '')\n let redirectPath = `/${e.target.value}${originalPath}`\n\n if (query) {\n redirectPath += `?${query.toString()}`\n }\n\n router.push(redirectPath)\n }}\n >\n {languages.map((lang) => (\n
\n
\n \n )\n}\n","'use client'\n\nimport { useRouter } from 'next/navigation'\nimport { TUser } from '@/libs/types/TUser'\nimport { ReactNode, createContext, useContext, useEffect, useState } from 'react'\nimport { appUrls } from '@/libs/appUrls'\nimport { apiUrls } from '@/libs/apiUrls'\nimport Cookies from 'js-cookie'\nimport { useLocale } from '@/features/i18n/hooks/useLocale'\n\nexport function getTUser(): TUser | undefined {\n const json = window.sessionStorage.getItem('user') ?? Cookies.get('user')\n return json && JSON.parse(json)\n}\n\nexport function setTUser(tUser: TUser, remember: boolean) {\n const json = JSON.stringify(tUser)\n const expires = remember ? 30 : 0.5 // 30 or 0.5日\n Cookies.set('user', json, { secure: true, expires: expires, path: '/' })\n}\n\nexport function getToken(): string | undefined {\n return window.sessionStorage.getItem('token') ?? Cookies.get('token')\n}\n\nexport function setToken(token: string, remember: boolean) {\n const expires = remember ? 30 : 0.5 // 30 or 0.5日\n Cookies.set('token', token, { secure: true, expires: expires, path: '/' })\n}\n\ninterface Props {\n tUser: TUser\n token: string\n signOut: () => void\n}\n\nconst AuthContext = createContext(undefined)\n\nexport const AuthProvider = ({ children }: { children: ReactNode }) => {\n const { locale } = useLocale()\n const router = useRouter()\n\n const [tUser, setTUser] = useState()\n const [token, setToken] = useState()\n\n useEffect(() => {\n const tUser = getTUser()\n const token = getToken()\n if (tUser && token) {\n setTUser(tUser)\n setToken(token)\n } else {\n router.push(appUrls.login(locale))\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [])\n\n const signOut = () => {\n if (!tUser || !token) {\n setTUser(undefined)\n setToken(undefined)\n window.sessionStorage.removeItem('user')\n window.sessionStorage.removeItem('token')\n\n router.push(appUrls.login(locale))\n return\n }\n\n const data = {\n userId: tUser.id,\n roleId: 30, // 研究者ユーザーと企業ユーザーの設定値を分ける処理(研究者: 30, 企業: 200)\n token: token,\n pageViewCount: 0,\n }\n\n setTUser(undefined)\n setToken(undefined)\n window.sessionStorage.removeItem('user')\n window.sessionStorage.removeItem('token')\n Cookies.remove('user')\n Cookies.remove('token')\n\n fetch(apiUrls.auth.logout(), {\n method: 'post',\n body: JSON.stringify(data),\n headers: { Accept: 'application/json', 'Content-Type': 'application/json;charset=utf-8' },\n cache: 'no-store',\n })\n\n router.push(appUrls.login(locale))\n }\n\n const context = {\n tUser: tUser!,\n token: token!,\n signOut,\n }\n return {children}\n}\n\nexport const useAuth = (): Props => {\n const context = useContext(AuthContext)\n\n if (!context) {\n throw new Error('context is missing')\n }\n\n return context\n}\n","export const apiUrls = {\n apiHost: () => {\n return process.env.NEXT_PUBLIC_API_DOMAIN ?? ''\n },\n auth: {\n login: () => `${apiUrls.apiHost()}/api/user/doLogin`,\n logout: () => `${apiUrls.apiHost()}/api/user/invalidateUser`,\n },\n user: {\n changePassword: () => `${apiUrls.apiHost()}/api/user/changePassWord`,\n changeUserEmail: () => `${apiUrls.apiHost()}/api/email/changeUserEmail`,\n sendResetPasswordEmail: () => `${apiUrls.apiHost()}/api/email/checkUser`,\n getResearchArea: () => `${apiUrls.apiHost()}/api/user/getResearchArea`,\n checkAccountExist: () => `${apiUrls.apiHost()}/api/user/checkAccountExist`,\n doRegister: () => `${apiUrls.apiHost()}/api/user/doRegister`,\n doFollow: () => `${apiUrls.apiHost()}/api/user/doFollow`,\n },\n company: {\n getCompanyInfo: () => `${apiUrls.apiHost()}/api/company/getCompanyInfoByID`,\n },\n personal: {\n getPersonInfo: () => `${apiUrls.apiHost()}/api/personal/getPersonInfo`,\n savePersonInfo: () => `${apiUrls.apiHost()}/api/personal/savePersonInfo`,\n getWorkExperience: () => `${apiUrls.apiHost()}/api/personal/getWorkExperience`,\n addWorkExperience: () => `${apiUrls.apiHost()}/api/personal/addWorkExperience`,\n editWorkExperience: () => `${apiUrls.apiHost()}/api/personal/editWorkExperience`,\n deleteWorkExperience: () => `${apiUrls.apiHost()}/api/personal/deleteWorkExperience`,\n getPaperByPersonId: () => `${apiUrls.apiHost()}/api/personal/getPaperByPersonId`,\n getAchievementByPersonId: () => `${apiUrls.apiHost()}/api/personal/getAchievementByPersonId`,\n upAchievement: () => `${apiUrls.apiHost()}/api/personal/upResearchAchievement`,\n updateAchievement: () => `${apiUrls.apiHost()}/api/personal/updateResearchAchievement`,\n deleteAchievement: () => `${apiUrls.apiHost()}/api/personal/deleteResearchAchievement`,\n upPaper: () => `${apiUrls.apiHost()}/api/personal/upPaper`,\n uploadPaper: () => `${apiUrls.apiHost()}/api/personal/uploadPaper`,\n updatePaper: () => `${apiUrls.apiHost()}/api/personal/updatePaper`,\n deletePaper: () => `${apiUrls.apiHost()}/api/personal/deletePaper`,\n getRecruitmentInfoList: () => `${apiUrls.apiHost()}/api/company/getRecruitmentInfoList`,\n getRecruitmentSimilarList: () => `${apiUrls.apiHost()}/api/company/getSimilarRecruitment`,\n getRecruitmentList: () => `${apiUrls.apiHost()}/api/company/getRecruitmentList`,\n getRecruitmentRecentList: () => `${apiUrls.apiHost()}/api/history/getRecentlyView`,\n saveRecruitmentRecent: () => `${apiUrls.apiHost()}/api/history/saveViewedJobHistory`,\n getFollowList: () => `${apiUrls.apiHost()}/api/company/getFollowList`,\n createJobInfo: () => `${apiUrls.apiHost()}/api/personal/addJobInfo`,\n editJobInfo: () => `${apiUrls.apiHost()}/api/personal/modJobInfo`,\n },\n recruitment: {\n addInterview: () => `${apiUrls.apiHost()}/api/interview/addInterview`,\n getFillPercent: () => `${apiUrls.apiHost()}/api/personal/getFillPercent`,\n },\n chat: {\n list: () => `${apiUrls.apiHost()}/api/chat/getChatInfo`,\n archiveList: () => `${apiUrls.apiHost()}/api/chat/getArchivedChatInfo`,\n messages: () => `${apiUrls.apiHost()}/api/chat/getChatMessage`,\n archive: () => `${apiUrls.apiHost()}/api/chat/archive`,\n delete: () => `${apiUrls.apiHost()}/api/chat/deleteChatInfo`,\n count: () => `${apiUrls.apiHost()}/api/chat/getChatCount`,\n sendReminder: () => `${apiUrls.apiHost()}/api/chat/emailMessageReminder`,\n sendRecruit: () => `${apiUrls.apiHost()}/api/chat/saveRecruitMsg`,\n send: () => `${apiUrls.apiHost()}/api/chat/saveRecruitMsg`,\n getChatInfoOfOtherSend: () => `${apiUrls.apiHost()}/api/chat/getChatInfoOfOtherSend`,\n getChatInfoOfSelfSend: () => `${apiUrls.apiHost()}/api/chat/getChatInfoOfSelfSend`,\n },\n file: {\n upload: () => `${apiUrls.apiHost()}/page/file/upload`,\n uploadBase64: () => `${apiUrls.apiHost()}/api/file/uploadBase64Image`,\n },\n}\n","\"use client\";\n\n// TODO: Truborepoが対応したらSCSSに変更する\nimport Link from \"next/link\";\n// @ts-ignore\nimport styles from \"./../styles/components/parts/Button.module.css\";\n\nexport default function ButtonDefault({\n className,\n label,\n size = \"md\",\n color = \"primary\",\n type = \"button\",\n icon,\n disabled,\n action,\n href,\n target,\n}: {\n className?: string;\n label: string;\n size?: \"sm\" | \"md\";\n color?: \"primary\" | \"secondary\" | \"tertiary\"| \"tertiarySquare\" | \"black\" | \"fav\";\n type?: \"button\" | \"submit\" | \"reset\";\n icon?: string;\n disabled?: boolean;\n action?: () => void;\n href?: string;\n target?: string;\n}) {\n const iconClassName = icon ? `icon icon-${icon}` : \"\";\n return !disabled && href ? (\n \n {label}\n \n ) : (\n \n {icon && }\n {label}\n \n );\n}\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"login\":\"Login_login__uaAMN\",\"login__inner\":\"Login_login__inner__zajyT\",\"login__head\":\"Login_login__head__360Td\",\"login__logo\":\"Login_login__logo__lGCqP\",\"login__title\":\"Login_login__title__L2GnL\",\"login__label\":\"Login_login__label__u0YH5\",\"login__lead\":\"Login_login__lead__NWiec\",\"login__body\":\"Login_login__body__RMtRQ\",\"login__action\":\"Login_login__action__ftbe7\",\"login__link\":\"Login_login__link__tNxZK\",\"login__regist_table\":\"Login_login__regist_table__OGW92\",\"login__tab\":\"Login_login__tab__s_8AZ\",\"active\":\"Login_active__IYHIk\",\"login__error\":\"Login_login__error__HWCfA\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"researcherHeader\":\"ResearcherHeader_researcherHeader__1QUfU\",\"researcherHeader__logo\":\"ResearcherHeader_researcherHeader__logo__m3Pij\",\"researcherHeader__content\":\"ResearcherHeader_researcherHeader__content__DnQDa\",\"select\":\"ResearcherHeader_select__xcosh\",\"researcherHeader__menu\":\"ResearcherHeader_researcherHeader__menu___2jKD\",\"researcherHeader__menu__link\":\"ResearcherHeader_researcherHeader__menu__link__Gp_LE\",\"current\":\"ResearcherHeader_current__Wfr5R\",\"researcherHeader__menu__text\":\"ResearcherHeader_researcherHeader__menu__text__wYsop\",\"researcherHeader__menu__count\":\"ResearcherHeader_researcherHeader__menu__count__qtqBf\",\"researcherHeader__lang\":\"ResearcherHeader_researcherHeader__lang__EgP3v\",\"researcherHeader__user\":\"ResearcherHeader_researcherHeader__user__zYYw8\",\"researcherHeader__submenu__info\":\"ResearcherHeader_researcherHeader__submenu__info__LzKLy\",\"researcherHeader__submenu__info__list\":\"ResearcherHeader_researcherHeader__submenu__info__list__amwDo\",\"researcherHeader__submenu__info__date\":\"ResearcherHeader_researcherHeader__submenu__info__date__ktefJ\",\"researcherHeader__submenu__info__title\":\"ResearcherHeader_researcherHeader__submenu__info__title__K_pZG\",\"researcherHeader__submenu__info__text\":\"ResearcherHeader_researcherHeader__submenu__info__text__LxpPP\",\"researcherHeader__submenu__user\":\"ResearcherHeader_researcherHeader__submenu__user__cBcOH\",\"researcherHeader__submenu__user__list\":\"ResearcherHeader_researcherHeader__submenu__user__list__jcIWi\",\"researcherHeader__submenu__user__link\":\"ResearcherHeader_researcherHeader__submenu__user__link__v4eK4\",\"icon\":\"ResearcherHeader_icon__QnIe5\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"input__must\":\"Input_input__must__QIeLb\",\"inputInline\":\"Input_inputInline__z0O8J\",\"inputText\":\"Input_inputText__5yk4k\",\"inputTextArea\":\"Input_inputTextArea__JNK0E\",\"inputSelect\":\"Input_inputSelect__MbNpo\",\"emptySelect\":\"Input_emptySelect__OFFRc\",\"inputRadio\":\"Input_inputRadio__4qn7S\",\"inputCheckBox\":\"Input_inputCheckBox____Z2j\",\"inputCheckBox__white\":\"Input_inputCheckBox__white__WmRBA\",\"inputCheckBox__single\":\"Input_inputCheckBox__single__cUAkV\",\"form__regist_table\":\"Input_form__regist_table__nU__k\",\"form__bottom\":\"Input_form__bottom__r7Vwz\",\"form__agree\":\"Input_form__agree__Mb51U\",\"inputText__l\":\"Input_inputText__l__rwypn\",\"inputSelect__l\":\"Input_inputSelect__l__ZEvdf\",\"select__l\":\"Input_select__l__l35Y_\",\"inputTextArea__l\":\"Input_inputTextArea__l__eAi6c\",\"inputCheckBox__l\":\"Input_inputCheckBox__l__EcEb7\",\"inputRadio__l\":\"Input_inputRadio__l__IZofB\",\"gray\":\"Input_gray__qruB9\",\"multiselect\":\"Input_multiselect__zo2v7\",\"multiselect__title\":\"Input_multiselect__title__M8NgJ\",\"multiselect__selected\":\"Input_multiselect__selected__aDfeQ\",\"multiselect__selected__item\":\"Input_multiselect__selected__item__qnBH5\",\"multiselect__body\":\"Input_multiselect__body__Y6Nhd\",\"multiselect__checkbox\":\"Input_multiselect__checkbox__l2NIg\",\"multiselect__checkbox__item\":\"Input_multiselect__checkbox__item___fgHT\",\"multiselect__placeholder\":\"Input_multiselect__placeholder__jH2F8\",\"error\":\"Input_error__rtCxj\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"footer__nav\":\"Footer_footer__nav__KH_a7\",\"footer__copyright\":\"Footer_footer__copyright___L_2p\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"link\":\"Button_link__yLR2_\",\"buttonDefault\":\"Button_buttonDefault__8cuIL\",\"buttonDefault__primary\":\"Button_buttonDefault__primary__APCFZ\",\"buttonDefault__secondary\":\"Button_buttonDefault__secondary__UtGkX\",\"buttonDefault__tertiary\":\"Button_buttonDefault__tertiary__DJGvP\",\"buttonDefault__tertiarySquare\":\"Button_buttonDefault__tertiarySquare__M1aH7\",\"buttonDefault__disabled\":\"Button_buttonDefault__disabled__m9VR4\",\"buttonDefault__fav\":\"Button_buttonDefault__fav__XOt0_\",\"buttonDefault__back\":\"Button_buttonDefault__back__a7BWi\",\"buttonDefault__sm\":\"Button_buttonDefault__sm__8Jdvq\",\"buttonTableShowMore\":\"Button_buttonTableShowMore___36D_\",\"buttonTable\":\"Button_buttonTable__G4sao\",\"buttonTableSort\":\"Button_buttonTableSort__qimj4\",\"icon\":\"Button_icon__5408J\",\"buttonIcon\":\"Button_buttonIcon__VwsKR\",\"buttonIcon__text\":\"Button_buttonIcon__text__E02c5\",\"buttonIcon__gabage\":\"Button_buttonIcon__gabage__dHlPl\",\"buttonIconSelected\":\"Button_buttonIconSelected__2UmrB\"};","/*! js-cookie v3.0.5 | MIT */\n/* eslint-disable no-var */\nfunction assign (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n target[key] = source[key];\n }\n }\n return target\n}\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\nvar defaultConverter = {\n read: function (value) {\n if (value[0] === '\"') {\n value = value.slice(1, -1);\n }\n return value.replace(/(%[\\dA-F]{2})+/gi, decodeURIComponent)\n },\n write: function (value) {\n return encodeURIComponent(value).replace(\n /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,\n decodeURIComponent\n )\n }\n};\n/* eslint-enable no-var */\n\n/* eslint-disable no-var */\n\nfunction init (converter, defaultAttributes) {\n function set (name, value, attributes) {\n if (typeof document === 'undefined') {\n return\n }\n\n attributes = assign({}, defaultAttributes, attributes);\n\n if (typeof attributes.expires === 'number') {\n attributes.expires = new Date(Date.now() + attributes.expires * 864e5);\n }\n if (attributes.expires) {\n attributes.expires = attributes.expires.toUTCString();\n }\n\n name = encodeURIComponent(name)\n .replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent)\n .replace(/[()]/g, escape);\n\n var stringifiedAttributes = '';\n for (var attributeName in attributes) {\n if (!attributes[attributeName]) {\n continue\n }\n\n stringifiedAttributes += '; ' + attributeName;\n\n if (attributes[attributeName] === true) {\n continue\n }\n\n // Considers RFC 6265 section 5.2:\n // ...\n // 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n // character:\n // Consume the characters of the unparsed-attributes up to,\n // not including, the first %x3B (\";\") character.\n // ...\n stringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n }\n\n return (document.cookie =\n name + '=' + converter.write(value, name) + stringifiedAttributes)\n }\n\n function get (name) {\n if (typeof document === 'undefined' || (arguments.length && !name)) {\n return\n }\n\n // To prevent the for loop in the first place assign an empty array\n // in case there are no cookies at all.\n var cookies = document.cookie ? document.cookie.split('; ') : [];\n var jar = {};\n for (var i = 0; i < cookies.length; i++) {\n var parts = cookies[i].split('=');\n var value = parts.slice(1).join('=');\n\n try {\n var found = decodeURIComponent(parts[0]);\n jar[found] = converter.read(value, found);\n\n if (name === found) {\n break\n }\n } catch (e) {}\n }\n\n return name ? jar[name] : jar\n }\n\n return Object.create(\n {\n set,\n get,\n remove: function (name, attributes) {\n set(\n name,\n '',\n assign({}, attributes, {\n expires: -1\n })\n );\n },\n withAttributes: function (attributes) {\n return init(this.converter, assign({}, this.attributes, attributes))\n },\n withConverter: function (converter) {\n return init(assign({}, this.converter, converter), this.attributes)\n }\n },\n {\n attributes: { value: Object.freeze(defaultAttributes) },\n converter: { value: Object.freeze(converter) }\n }\n )\n}\n\nvar api = init(defaultConverter, { path: '/' });\n/* eslint-enable no-var */\n\nexport { api as default };\n"],"names":["Promise","resolve","then","__webpack_require__","bind","roleIds","admin","company","personal","companyBanList","companyOnlyShow","company12Plus","company200","LoginPage","locale","t","useLocale","router","useRouter","inputs","setInputs","useState","mailAddress","password","rememberMe","errors","setErrors","loginError","setLoginError","loginAction","tUser","token","newErrors","validate","required","Object","keys","length","data","roleId","toString","loginAccount","response","fetch","apiUrls","method","body","JSON","stringify","headers","Accept","cache","ok","result","json","status","extend","login","UserNotExist","WrongPassword","NotApproved","ApprovalFailed","Failed","e","NetworkError","Sentry","setTUser","setToken","push","appUrls","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Fragment","jsxs","div","className","ResearcherLogoutHeader","styles","Image","src","alt","width","height","h1","process","form","onSubmit","preventDefault","table","tbody","tr","th","Email","td","input","type","inputstyles","placeholder","EmailPlaceholder","value","onChange","target","span","Password","PasswordPlaceholder","name","id","checked","label","htmlFor","RememberMe","small","ButtonDefault","color","button","Login","Link","href","ForgotPassword","RegisterLink","a","CorporateLink","ResearcherFooter","param","footer","nav","ul","li","Terms","ResearcherHeader","path","usePathname","query","useSearchParams","languages","Japanese","English","selectedLanguage","find","lang","header","select","defaultValue","originalPath","replace","redirectPath","concat","map","option","getTUser","window","sessionStorage","getItem","Cookies","parse","remember","secure","expires","getToken","AuthContext","createContext","undefined","AuthProvider","children","useEffect","signOut","removeItem","userId","pageViewCount","Provider","useAuth","context","useContext","apiHost","auth","logout","user","changePassword","changeUserEmail","sendResetPasswordEmail","getResearchArea","checkAccountExist","doRegister","doFollow","getCompanyInfo","getPersonInfo","savePersonInfo","getWorkExperience","addWorkExperience","editWorkExperience","deleteWorkExperience","getPaperByPersonId","getAchievementByPersonId","upAchievement","updateAchievement","deleteAchievement","upPaper","uploadPaper","updatePaper","deletePaper","getRecruitmentInfoList","getRecruitmentSimilarList","getRecruitmentList","getRecruitmentRecentList","saveRecruitmentRecent","getFollowList","createJobInfo","editJobInfo","recruitment","addInterview","getFillPercent","chat","list","archiveList","messages","archive","delete","count","sendReminder","sendRecruit","send","getChatInfoOfOtherSend","getChatInfoOfSelfSend","file","upload","uploadBase64","size","icon","disabled","action","onClick","module","exports","assign","i","arguments","source","key","api","init","converter","defaultAttributes","set","attributes","document","Date","now","toUTCString","encodeURIComponent","decodeURIComponent","escape","stringifiedAttributes","attributeName","split","cookie","write","create","get","cookies","jar","parts","slice","join","found","read","remove","withAttributes","withConverter","freeze"],"sourceRoot":""}