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AAU,GACpB,CAACyC,EAAWC,EAAa,CAAG1C,EAAAA,QAAc,GAC1C,CAACH,EAAU8C,EAAY,CAAG3C,EAAAA,QAAc,CAAWkC,GA2BzD,OAzBAlC,EAAAA,SAAe,CAAC,KACd4C,EAAAA,CAAIA,CAACC,wBAAwB,CAAC,CAC5BC,aAAa,CACf,GACGC,IAAI,CAAC,IACJJ,EAAY,CACVtD,YAAY,EACZ8C,SAAUa,EAAKC,QAAQ,CACvBb,aAAcY,EAAKE,UAAU,CAAC,gBAAgB,CAC9Cb,MAAOW,EAAKE,UAAU,CAAC,KAAQ,GAEjCV,EAAoB,GACtB,GACCW,KAAK,CAAC,KACLR,EAAYT,GACZM,GAAoB,EACtB,EACJ,EAAG,CAACC,EAAU,EAEdzC,EAAAA,SAAe,CAAC,KACdoD,CAAAA,EAAAA,EAAAA,EAAAA,CAAmBA,CAAC,IAClBV,EAAaW,EACf,EACF,EAAG,EAAE,EAGH,UAACf,EAAkBgB,QAAQ,EACzBxF,MAAO,kBACL8B,WACAC,CACF,WAECoC,GAGP,EAEO,SAASnC,IAId,GAAM,kBAAEF,CAAgB,UAAEC,CAAQ,CAAE,CAAGG,EAAAA,UAAgB,CAACsC,GAExD,GAAIzC,MAAmB,GACrB,MAAM,MAAU,iCAGlB,MAAO,kBACLD,WACAC,CACF,CACF","sources":["webpack://_N_E/ignored|/codebuild/output/src4019214850/src/helloero-new/node_modules/amazon-cognito-identity-js/es/utils|crypto","webpack://_N_E/ignored|/codebuild/output/src4019214850/src/helloero-new/node_modules/crypto-js|crypto","webpack://_N_E/?66d4","webpack://_N_E/../../node_modules/next/dist/api/image.js","webpack://_N_E/../../node_modules/next/dist/api/link.js","webpack://_N_E/../../node_modules/next/dist/api/navigation.js","webpack://_N_E/../../../src/shared/lib/image-external.tsx","webpack://_N_E/../shared/components/features/svgImages/HelloeroBlackImage/helloeroBlack.svg","webpack://_N_E/../shared/components/features/svgImages/HelloeroBlackImage/index.tsx","webpack://_N_E/./src/localShared/components/parts/ServiceCardHelloEro/index.tsx","webpack://_N_E/./src/app/(withLayout)/(index)/_SiteTop/index.hook.tsx","webpack://_N_E/./src/app/(withLayout)/(index)/_SiteTop/index.tsx","webpack://_N_E/./src/configs/appPublicConfig.ts","webpack://_N_E/../shared/components/features/form/FormSubmitButtons/index.tsx","webpack://_N_E/../shared/components/parts/Loading/index.tsx","webpack://_N_E/../shared/components/parts/MainContainer/index.tsx","webpack://_N_E/../shared/components/parts/Spacer/index.tsx","webpack://_N_E/../shared/hooks/useUserInfo.tsx"],"sourcesContent":["/* (ignored) */","/* (ignored) */","import(/* webpackMode: \"eager\", webpackExports: [\"SiteTop\"] */ \"/codebuild/output/src4019214850/src/helloero-new/packages/account/src/app/(withLayout)/(index)/_SiteTop/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","export * from '../client/components/navigation';\n\n//# sourceMappingURL=navigation.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/helloeroBlack.41e15c04.svg\",\"height\":117,\"width\":401,\"blurWidth\":0,\"blurHeight\":0};","import Image from 'next/image';\nimport Icon from './helloeroBlack.svg?url';\nimport type { SvgImageProps } from '../_type';\n\nexport const HelloeroBlackImage: React.FC = ({\n alt,\n ...props\n}) => {alt};\n","import Link from 'next/link';\nimport { appPublicConfig } from '@/configs/appPublicConfig';\nimport { HelloeroBlackImage } from '@/shared/components/features/svgImages/HelloeroBlackImage';\n\nexport const ServiceCardHelloEro: React.FC = () => (\n \n
\n
\n シンプルに、カジュアルに。\n
\n アダルトコンテンツを楽しもう。\n
\n
\n \n
\n
\n \n);\n","import { useRouter } from 'next/navigation';\nimport React from 'react';\nimport { useUserInfo } from '@/shared/hooks/useUserInfo';\n\ntype State = {\n pageStatus: 'INIT' | 'REDIRECT_TO_MEMBER' | 'GUEST_TOP';\n};\n\ntype Action = {\n type: 'INITIALIZED';\n payload: {\n isLoggedIn: boolean;\n };\n};\n\nconst reducer = (state: State, action: Action): State => {\n switch (action.type) {\n case 'INITIALIZED': {\n const { isLoggedIn } = action.payload;\n return {\n ...state,\n pageStatus: isLoggedIn ? 'REDIRECT_TO_MEMBER' : 'GUEST_TOP',\n };\n }\n }\n};\n\ntype UseSiteTop = {\n state: State;\n};\n\nexport function useSiteTop(): UseSiteTop {\n const router = useRouter();\n const { isLoadedUserInfo, userInfo } = useUserInfo();\n\n const [state, dispatch] = React.useReducer(reducer, {\n pageStatus: 'INIT',\n });\n\n React.useEffect(() => {\n switch (state.pageStatus) {\n case 'INIT': {\n if (!isLoadedUserInfo) {\n return;\n }\n dispatch({\n type: 'INITIALIZED',\n payload: {\n isLoggedIn: userInfo.isLoggedIn,\n },\n });\n return;\n }\n\n case 'REDIRECT_TO_MEMBER': {\n router.replace('/settings');\n return;\n }\n }\n }, [isLoadedUserInfo, router, state.pageStatus, userInfo.isLoggedIn]);\n\n return {\n state,\n };\n}\n","'use client';\nimport { ServiceCardHelloEro } from '@/localShared/components/parts/ServiceCardHelloEro';\nimport { FormSubmitButtons } from '@/shared/components/features/form/FormSubmitButtons';\nimport { Loading } from '@/shared/components/parts/Loading';\nimport { MainContainer } from '@/shared/components/parts/MainContainer';\nimport { Spacer } from '@/shared/components/parts/Spacer';\nimport { useSiteTop } from './index.hook';\n\nexport const SiteTop: React.FC = () => {\n const { state } = useSiteTop();\n\n return (\n <>\n {(state.pageStatus === 'INIT' ||\n state.pageStatus === 'REDIRECT_TO_MEMBER') && }\n\n {state.pageStatus === 'GUEST_TOP' && (\n \n \n

サービス

\n \n
\n \n
\n \n \n \n
\n )}\n \n );\n};\n","import type { Config } from 'u-next/config';\n\nconst config = JSON.parse(process.env.publicConfig ?? '') as Config;\n\n/**\n * server/client両方で参照可能\n */\nexport const appPublicConfig = config;\n","import Link from 'next/link';\n\ntype ButtonProps = {\n buttonType: 'button';\n text: string;\n buttonStyle?: 'primary' | 'secondary';\n isLoading?: boolean;\n} & Omit, 'className'>;\n\ntype LinkProps = {\n buttonType: 'link';\n text: string;\n buttonStyle?: 'primary' | 'secondary';\n} & Omit, 'className'>;\n\nfunction isButtonProps(props: ButtonProps | LinkProps): props is ButtonProps {\n return (props as ButtonProps).buttonType === 'button';\n}\n\nexport const FormSubmitButtons: React.FC<{\n buttons: (ButtonProps | LinkProps)[];\n}> = ({ buttons }) => (\n
\n {buttons.map((props, index) => (\n
\n {isButtonProps(props) ? (\n
\n ))}\n
\n);\n\nconst Button: React.FC = ({\n buttonType: _,\n text,\n isLoading,\n buttonStyle = 'primary',\n ...attr\n}) => (\n \n \n
\n
\n
\n \n {text}\n
\n
\n {isLoading && (\n
\n \n \n \n
\n )}\n
\n
\n \n \n);\n\nconst LinkButton: React.FC = ({\n buttonType: _,\n text,\n buttonStyle = 'primary',\n ...attr\n}) => (\n \n \n
\n
\n
\n \n {text}\n
\n
\n
\n \n \n);\n","export const Loading: React.FC = () => (\n
\n \n \n \n \n
\n);\n","import React from 'react';\n\nexport const MainContainer: React.FC = ({\n children,\n}) =>
{children}
;\n","export const Spacer: React.FC<{\n level: 4 | 3 | 2 | 1.5 | 1 | 0.5 | 0.25;\n}> = ({ level }) => (\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","HelloeroBlackImage","alt","src","Icon","width","height","Link","href","appPublicConfig","HELLOERO","passHref","className","div","br","reducer","state","action","type","isLoggedIn","payload","pageStatus","SiteTop","useSiteTop","router","useRouter","isLoadedUserInfo","userInfo","useUserInfo","dispatch","React","replace","Loading","MainContainer","Spacer","level","h2","ServiceCardHelloEro","FormSubmitButtons","buttons","buttonType","text","buttonStyle","JSON","parse","config","map","index","isButtonProps","Button","LinkButton","_","isLoading","attr","button","svg","aria-hidden","viewBox","fill","xmlns","path","d","role","children","initialState","userName","customUserId","email","LoginStateContext","UserInfoProvider","setIsLoadedUserInfo","authState","setAuthState","setUserInfo","Auth","currentAuthenticatedUser","bypassCache","then","user","username","attributes","catch","onAuthUIStateChange","nextAuthState","Provider"],"sourceRoot":"","ignoreList":[0,1,3,4,5]}