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AC7B/B,YAAY,EACZC,SAAU,GACV+B,aAAc,GACdC,MAAO,EACT,EAEMC,EAAoBzB,EAAAA,aAAmB,CAAC,CAC5CZ,kBAAkB,EAClBC,SAAUiC,CACZ,GAEaI,EAAsD,OAAC,CAClEC,UAAQ,CACT,GACO,CAACvC,EAAkBwC,EAAoB,CAC3C5B,EAAAA,QAAc,EAAU,GACpB,CAAC6B,EAAWC,EAAa,CAAG9B,EAAAA,QAAc,GAC1C,CAACX,EAAU0C,EAAY,CAAG/B,EAAAA,QAAc,CAAWsB,GA2BzD,OAzBAtB,EAAAA,SAAe,CAAC,KACdgC,EAAAA,CAAIA,CAACC,wBAAwB,CAAC,CAC5BC,aAAa,CACf,GACGC,IAAI,CAAC,IACJJ,EAAY,CACVxC,YAAY,EACZC,SAAU4C,EAAKC,QAAQ,CACvBd,aAAca,EAAKE,UAAU,CAAC,gBAAgB,CAC9Cd,MAAOY,EAAKE,UAAU,CAAC,KACzB,GACAV,GAAoB,EACtB,GACCW,KAAK,CAAC,KACLR,EAAYT,GACZM,GAAoB,EACtB,EACJ,EAAG,CAACC,EAAU,EAEd7B,EAAAA,SAAe,CAAC,KACdwC,CAAAA,EAAAA,EAAAA,EAAAA,CAAmBA,CAAC,IAClBV,EAAaW,EACf,EACF,EAAG,EAAE,EAGH,UAAChB,EAAkBiB,QAAQ,EACzB1E,MAAO,CACLoB,4BACAC,CACF,WAECsC,GAGP,EAAE,SAEcrC,IAId,GAAM,kBAAEF,CAAgB,CAAEC,UAAQ,CAAE,CAAGW,EAAAA,UAAgB,CAACyB,GAExD,GAAiB,MAAM,CAAnBpC,EACF,MAAM,MAAU,iCAGlB,MAAO,kBACLD,WACAC,CACF,CACF","sources":["webpack://_N_E/ignored|/codebuild/output/src3425201333/src/helloero-new/node_modules/amazon-cognito-identity-js/es/utils|crypto","webpack://_N_E/ignored|/codebuild/output/src3425201333/src/helloero-new/node_modules/crypto-js|crypto","webpack://_N_E/?4b19","webpack://_N_E/../../node_modules/next/dist/api/image.js","webpack://_N_E/../../node_modules/next/dist/api/link.js","webpack://_N_E/../../../src/shared/lib/image-external.tsx","webpack://_N_E/../shared/components/features/svgImages/HamburgerWhiteImage/hamburger_white.svg","webpack://_N_E/../shared/components/features/svgImages/HamburgerWhiteImage/index.tsx","webpack://_N_E/../shared/components/layouts/HelloEroLayout/Header/MenuButton/index.tsx","webpack://_N_E/../shared/components/layouts/HelloEroLayout/Header/UserName/index.tsx","webpack://_N_E/../shared/components/features/svgImages/CloseWhiteImage/close_white.svg","webpack://_N_E/../shared/components/features/svgImages/CloseWhiteImage/index.tsx","webpack://_N_E/../shared/components/features/svgImages/ArrowRightWhiteImage/arrow_right_white.svg","webpack://_N_E/../shared/components/features/svgImages/ArrowRightWhiteImage/index.tsx","webpack://_N_E/../shared/components/features/svgImages/HelloeroRedRotateImage/helloeroRedRotate.svg","webpack://_N_E/../shared/components/features/svgImages/HelloeroRedRotateImage/index.tsx","webpack://_N_E/../shared/components/layouts/HelloEroLayout/OverlayMenus/useMenuList.ts","webpack://_N_E/../shared/components/layouts/HelloEroLayout/OverlayMenus/DeskTopMenus/index.tsx","webpack://_N_E/../shared/components/features/svgImages/HelloeroRedImage/helloeroRed.svg","webpack://_N_E/../shared/components/features/svgImages/HelloeroRedImage/index.tsx","webpack://_N_E/../shared/components/layouts/HelloEroLayout/OverlayMenus/MobileMenus/index.tsx","webpack://_N_E/../shared/components/layouts/HelloEroLayout/OverlayMenus/index.tsx","webpack://_N_E/../shared/components/layouts/HelloEroLayout/useH2uLayoutMenu.ts","webpack://_N_E/../shared/hooks/useUserInfo.tsx"],"sourcesContent":["/* (ignored) */","/* (ignored) */","import(/* webpackMode: \"eager\" */ \"/codebuild/output/src3425201333/src/helloero-new/node_modules/next/dist/client/image-component.js\");\n;\nimport(/* webpackMode: \"eager\" */ \"/codebuild/output/src3425201333/src/helloero-new/node_modules/next/dist/client/link.js\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"MenuButton\"] */ \"/codebuild/output/src3425201333/src/helloero-new/packages/shared/components/layouts/HelloEroLayout/Header/MenuButton/index.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"UserName\"] */ \"/codebuild/output/src3425201333/src/helloero-new/packages/shared/components/layouts/HelloEroLayout/Header/UserName/index.tsx\");\n;\nimport(/* webpackMode: \"eager\", webpackExports: [\"OverlayMenus\"] */ \"/codebuild/output/src3425201333/src/helloero-new/packages/shared/components/layouts/HelloEroLayout/OverlayMenus/index.tsx\");\n","export { default } from '../shared/lib/image-external';\nexport * from '../shared/lib/image-external';\n\n//# sourceMappingURL=image.js.map","export { default } from '../client/link';\nexport * from '../client/link';\n\n//# sourceMappingURL=link.js.map","import type { ImageConfigComplete, ImageLoaderProps } from './image-config'\nimport type { ImageProps, ImageLoader, StaticImageData } from './get-img-props'\n\nimport { getImgProps } from './get-img-props'\nimport { Image } from '../../client/image-component'\n\n// @ts-ignore - This is replaced by webpack alias\nimport defaultLoader from 'next/dist/shared/lib/image-loader'\n\n/**\n * For more advanced use cases, you can call `getImageProps()`\n * to get the props that would be passed to the underlying `` element,\n * and instead pass to them to another component, style, canvas, etc.\n *\n * Read more: [Next.js docs: `getImageProps`](https://nextjs.org/docs/app/api-reference/components/image#getimageprops)\n */\nexport function getImageProps(imgProps: ImageProps) {\n const { props } = getImgProps(imgProps, {\n defaultLoader,\n // This is replaced by webpack define plugin\n imgConf: process.env.__NEXT_IMAGE_OPTS as any as ImageConfigComplete,\n })\n // Normally we don't care about undefined props because we pass to JSX,\n // but this exported function could be used by the end user for anything\n // so we delete undefined props to clean it up a little.\n for (const [key, value] of Object.entries(props)) {\n if (value === undefined) {\n delete props[key as keyof typeof props]\n }\n }\n return { props }\n}\n\nexport default Image\n\nexport type { ImageProps, ImageLoaderProps, ImageLoader, StaticImageData }\n","export default {\"src\":\"/_next/static/media/hamburger_white.a8437886.svg\",\"height\":34,\"width\":34,\"blurWidth\":0,\"blurHeight\":0};","import Image from 'next/image';\nimport Icon from './hamburger_white.svg?url';\nimport type { SvgImageProps } from '../_type';\n\nexport const HamburgerWhiteImage: React.FC = ({\n alt,\n ...props\n}) => {alt};\n","'use client';\nimport React from 'react';\nimport { HamburgerWhiteImage } from '../../../../features/svgImages/HamburgerWhiteImage';\nimport { useH2uLayoutMenu } from '../../useH2uLayoutMenu';\n\nexport const MenuButton: React.FC = () => {\n const { setIsMenuOpen } = useH2uLayoutMenu();\n\n return (\n {\n setIsMenuOpen(true);\n }}\n onKeyDown={(e) => {\n if (e.key !== 'Enter') {\n return;\n }\n setIsMenuOpen(true);\n }}\n >\n \n \n );\n};\n","'use client';\nimport { useUserInfo } from '../../../../../hooks/useUserInfo';\n\nexport const UserName: React.FC = () => {\n const { isLoadedUserInfo, userInfo } = useUserInfo();\n\n return (\n
\n {isLoadedUserInfo && userInfo.isLoggedIn ? userInfo.userName : ''}\n
\n );\n};\n","export default {\"src\":\"/_next/static/media/close_white.52a09c41.svg\",\"height\":34,\"width\":34,\"blurWidth\":0,\"blurHeight\":0};","import Image from 'next/image';\nimport Icon from './close_white.svg?url';\nimport type { SvgImageProps } from '../_type';\n\nexport const CloseWhiteImage: React.FC = ({ alt, ...props }) => (\n {alt}\n);\n","export default {\"src\":\"/_next/static/media/arrow_right_white.a6c0371e.svg\",\"height\":16,\"width\":16,\"blurWidth\":0,\"blurHeight\":0};","import Image from 'next/image';\nimport Icon from './arrow_right_white.svg?url';\nimport type { SvgImageProps } from '../_type';\n\nexport const ArrowRightWhiteImage: React.FC = ({\n alt,\n ...props\n}) => {alt};\n","export default {\"src\":\"/_next/static/media/helloeroRedRotate.c8b1210d.svg\",\"height\":401,\"width\":116,\"blurWidth\":0,\"blurHeight\":0};","import Image from 'next/image';\nimport Icon from './helloeroRedRotate.svg?url';\nimport type { SvgImageProps } from '../_type';\n\nexport const HelloeroRedRotateImage: React.FC = ({\n alt,\n ...props\n}) => {alt};\n","import React from 'react';\nimport { useUserInfo } from '../../../../hooks/useUserInfo';\nimport type { Config } from 'u-next/config';\n\nexport function useMenuList({ config }: { config: Config }) {\n const { isLoadedUserInfo, userInfo } = useUserInfo();\n const [menus, setMenus] = React.useState<\n {\n text: string;\n href: string;\n }[]\n >([]);\n\n React.useEffect(() => {\n setMenus([\n isLoadedUserInfo && userInfo.isLoggedIn\n ? {\n text: 'アカウント',\n href: config.ACCOUNT,\n }\n : {\n text: 'ログイン/登録',\n href: `${config.ACCOUNT}/login`,\n },\n {\n text: 'ヘルプ',\n href: config.HELP,\n },\n ]);\n }, [config.ACCOUNT, config.HELP, isLoadedUserInfo, userInfo.isLoggedIn]);\n\n return {\n menus,\n };\n}\n","import Link from 'next/link';\nimport { ArrowRightWhiteImage } from '../../../../features/svgImages/ArrowRightWhiteImage';\nimport { HelloeroRedRotateImage } from '../../../../features/svgImages/HelloeroRedRotateImage';\nimport { useMenuList } from '../useMenuList';\nimport type { Config } from 'u-next/config';\n\nexport const DeskTopMenus: React.FC<{\n config: Config;\n}> = ({ config }) => {\n const { menus } = useMenuList({ config });\n\n return (\n
\n
\n
\n
\n \n
\n
\n
\n
    \n {menus.map(({ text, href }) => (\n
  • \n \n
    {text}
    \n \n \n
  • \n ))}\n
\n
\n
\n
\n );\n};\n","export default {\"src\":\"/_next/static/media/helloeroRed.e34c8751.svg\",\"height\":116,\"width\":401,\"blurWidth\":0,\"blurHeight\":0};","import Image from 'next/image';\nimport Icon from './helloeroRed.svg?url';\nimport type { SvgImageProps } from '../_type';\n\nexport const HelloeroRedImage: React.FC = ({\n alt,\n ...props\n}) => {alt};\n","import Link from 'next/link';\nimport { ArrowRightWhiteImage } from '../../../../features/svgImages/ArrowRightWhiteImage';\nimport { HelloeroRedImage } from '../../../../features/svgImages/HelloeroRedImage';\nimport { useMenuList } from '../useMenuList';\nimport type { Config } from 'u-next/config';\n\nexport const MobileMenus: React.FC<{\n config: Config;\n}> = ({ config }) => {\n const { menus } = useMenuList({ config });\n\n return (\n
\n
\n
\n
    \n {menus.map(({ text, href }) => (\n
  • \n \n
    {text}
    \n \n \n
  • \n ))}\n
\n
\n
\n
\n \n
\n
\n
\n
\n );\n};\n","'use client';\nimport { createPortal } from 'react-dom';\nimport { CloseWhiteImage } from '../../../features/svgImages/CloseWhiteImage';\nimport { useH2uLayoutMenu } from '../useH2uLayoutMenu';\nimport { DeskTopMenus } from './DeskTopMenus';\nimport { MobileMenus } from './MobileMenus';\nimport type { Config } from 'u-next/config';\n\nexport const OverlayMenus: React.FC<{\n config: Config;\n}> = ({ config }) => {\n const { isMenuOpen, setIsMenuOpen } = useH2uLayoutMenu();\n\n return isMenuOpen\n ? createPortal(\n
\n
\n
\n
\n \n
\n
\n \n
\n
\n
\n {\n setIsMenuOpen(false);\n }}\n onKeyDown={(e) => {\n if (e.key !== 'Enter') {\n return;\n }\n setIsMenuOpen(false);\n }}\n >\n \n
\n
\n
,\n document.getElementById('modal') as Element\n )\n : null;\n};\n","import { atom, useAtom } from 'jotai';\n\nconst isMenuOpenAtom = atom(false);\n\nexport function useH2uLayoutMenu() {\n const [isMenuOpen, setIsMenuOpen] = useAtom(isMenuOpenAtom);\n return {\n isMenuOpen,\n setIsMenuOpen,\n };\n}\n","'use client';\nimport { onAuthUIStateChange } from '@aws-amplify/ui-components';\nimport { Auth } from 'aws-amplify';\nimport React from 'react';\nimport type { AuthState } from '@aws-amplify/ui-components';\n\ntype UserInfo = {\n isLoggedIn: boolean;\n userName: string | null;\n customUserId: string | null;\n email: string | null;\n};\n\nconst initialState: UserInfo = {\n isLoggedIn: false,\n userName: '',\n customUserId: '',\n email: '',\n};\n\nconst LoginStateContext = React.createContext({\n isLoadedUserInfo: false,\n userInfo: initialState,\n});\n\nexport const UserInfoProvider: React.FC = ({\n children,\n}) => {\n const [isLoadedUserInfo, setIsLoadedUserInfo] =\n React.useState(false);\n const [authState, setAuthState] = React.useState();\n const [userInfo, setUserInfo] = React.useState(initialState);\n\n React.useEffect(() => {\n Auth.currentAuthenticatedUser({\n bypassCache: true,\n })\n .then((user) => {\n setUserInfo({\n isLoggedIn: true,\n userName: user.username,\n customUserId: user.attributes['custom:userid'], // 少々強引な取り方\n email: user.attributes['email'], // 少々強引な取り方\n });\n setIsLoadedUserInfo(true);\n })\n .catch(() => {\n setUserInfo(initialState);\n setIsLoadedUserInfo(true);\n });\n }, [authState]);\n\n React.useEffect(() => {\n onAuthUIStateChange((nextAuthState) => {\n setAuthState(nextAuthState);\n });\n }, []);\n\n return (\n \n {children}\n \n );\n};\n\nexport function useUserInfo(): {\n isLoadedUserInfo: boolean;\n userInfo: UserInfo;\n} {\n const { isLoadedUserInfo, userInfo } = React.useContext(LoginStateContext);\n\n if (userInfo === null) {\n throw new Error('can not find UserInfoProvider');\n }\n\n return {\n isLoadedUserInfo,\n userInfo,\n };\n}\n"],"names":["getImageProps","imgProps","props","getImgProps","defaultLoader","imgConf","process","key","value","Object","entries","undefined","Image","HamburgerWhiteImage","alt","src","Icon","MenuButton","setIsMenuOpen","useH2uLayoutMenu","div","className","role","tabIndex","onClick","onKeyDown","e","UserName","isLoadedUserInfo","userInfo","useUserInfo","isLoggedIn","userName","CloseWhiteImage","ArrowRightWhiteImage","HelloeroRedRotateImage","useMenuList","config","menus","setMenus","React","text","href","ACCOUNT","HELP","DeskTopMenus","ul","map","li","Link","HelloeroRedImage","width","height","OverlayMenus","isMenuOpen","createPortal","MobileMenus","document","getElementById","isMenuOpenAtom","atom","useAtom","initialState","customUserId","email","LoginStateContext","UserInfoProvider","children","setIsLoadedUserInfo","authState","setAuthState","setUserInfo","Auth","currentAuthenticatedUser","bypassCache","then","user","username","attributes","catch","onAuthUIStateChange","nextAuthState","Provider"],"sourceRoot":"","ignoreList":[0,1,3,4]}