{"version":3,"sources":["app/hooks/useEffectOnce.ts","app/components/LoadingIndicator/Circle.tsx","app/components/LoadingIndicator/Wrapper.ts","app/components/LoadingIndicator/index.tsx","app/utils/loadable.tsx","app/context/state.tsx","app/components/YesNoDialog/index.tsx","app/pages/Error/index.tsx","app/constants/constants.ts","app/components/Ripple/index.tsx","app/pages/Splash/Loadable.tsx","app/pages/Organization/Loadable.tsx","app/pages/Reception/Loadable.tsx","app/pages/Verification/Loadable.tsx","app/pages/Call/Loadable.tsx","app/pages/Respond/Loadable.tsx","app/pages/SearchUser/Loadable.tsx","app/pages/VisitorInputSelection/Loadable.tsx","app/pages/VisitorInput/Loadable.tsx","app/pages/Photography/Loadable.tsx","app/pages/NotFound/Loadable.tsx","app/pages/Division/Loadable.tsx","app/pages/Information/Loadable.tsx","app/pages/CustomQuestion/Loadable.tsx","app/pages/Interphone/Loadable.tsx","styles/global-styles.ts","app/pages/Akerun/Loadable.tsx","app/App.tsx","index.tsx","styles/styled-components.ts","app/recoil/errorRecoil.ts"],"names":["useEffectOnce","effect","useEffect","circleFadeDelay","keyframes","Circle","styled","p","rotate","delay","Wrapper","div","LoadingIndicator","lazyLoad","importFunc","selectorFunc","opts","fallback","lazyFactory","then","module","default","LazyComponent","lazy","lazyLoadComponent","props","initialState","organizationSettings","organizationSetting","geo","appointment","reception_flow","functions","inputSetting","information","visitor","attachment","personnel","nextRoute","isAccepted","division","akerunSetting","akerunUnlockFinishedStatus","customQuestionAnswers","store","createContext","Provider","StateProvider","children","useReducer","state","action","currentState","type","payload","Error","dispatch","value","YesNoDialogType","YesNoDialog","targetElement","document","querySelector","useState","isModalOpen","setIsModalOpen","disableBodyScroll","role","message","YesNo","onClick","enableBodyScroll","onNoAction","onYesAction","P","ErrorPageLazyLoad","ErrorPage","src","alt","RouteType","GEOLOCATION_TOLERANCE_DISTANCE_METER","DEFAULT_THEME_COLOR","KEY_SITE_ID","Routes","organization","reception","verification","search","selection","input","photo","call","respond","confirm","notfound","error","customQuestion","interphone","extensionPhone","akerun","RouteTypes","Object","values","Message","CallPersonnel","CallPersonnelFor","DeprecatedBrowser","TransitionConfirm","ErrorMessage","Common","NetworkError","NotFoundSiteId","Unknown","NotAvailableStorage","Reception","Invalid","VisitNotFound","Camera","QRCode","Location","GeoInvalid","DistanceInvalid","IOSInvalid","AndroidInvalid","Interphone","CallError","NotFoundUser","FailedInitialize","NotAllowedAudio","UnknownPhoneNumber","DisablePhone","SPECIAL_ORGANIZATION_ID","Number","process","defaultText","visitorInputSelectionTitle","visitorInputTitle","businessCardScan","keyboardInput","reason","reasonPlaceholder","captureTitle","captureDetail","captureConfirm","specialOrganizationText","specialOrganizationDisplaySettings","showCompanyName","showName","showNumberVisitors","showReasonSelection","getOrganizationText","key","organizationId","getOrganizationDisplaySettings","Reasons","Const","Timeout","Ripple","showEvents","hideEvents","pointer","hidden","animating","animation","drag","removeOnMouseUp","x","y","showRipple","bind","hideRipple","this","scope","newStyleSheet","createElement","innerHTML","body","prepend","injectKeyFrames","addEventListener","removeEventListener","getPointer","forEach","event","e","touches","changedTouches","pageX","pageY","setState","animationName","size","colour","style","display","top","left","position","width","height","background","textAlign","marginTop","marginLeft","zIndex","borderRadius","border","animationTimingFunction","animationDuration","animationDelay","animationIterationCount","animationDirection","animationFillMode","pointerEvents","ref","elem","React","defaultProps","window","SplashLazyLoad","Splash","OrganizationLazyLoad","Organization","ReceptionLazyLoad","VerificationLazyLoad","Verification","CallLazyLoad","Call","RespondLazyLoad","Respond","SearchUserLazyLoad","SearchUserPage","VisitorInputSelectionLazyLoad","VisitorInputSelection","VisitorInputLazyLoad","VisitorInput","PhotographyLazyLoad","Photography","NotFoundLazyLoad","NotFound","DivisionLazyLoad","DivisionPage","InformationLazyLoad","Information","CustomQuestionLazyLoad","CustomQuestionPage","InterphoneLazyLoad","InterphonePage","GlobalStyleProxy","createGlobalStyle","AkerunLazyLoad","Akerun","queryClient","QueryClient","AppStyle","RouterConfig","useRoutes","path","element","AppError","navigate","useNavigate","popupManager","usePopupManager","appErrorRecoilValue","useAppErrorRecoilValue","navigationType","errMessage","stacktrace","ErrorNavigationType","open","Ok","Back","Reload","location","reload","AppWrapper","useContext","AppContent","useLocation","routeName","pathname","slice","includes","href","client","titleTemplate","defaultTitle","htmlAttributes","lang","name","content","container","getElementById","createRoot","render","App","useRecoilValue","appErrorAtom","useAppErrorRecoilSet","useSetRecoilState","setValue","newValue","currVal","useAppErrorRecoilReset","useResetRecoilState","atom"],"mappings":"sHAAA,6CAGaA,EAAgB,SAACC,GAC5BC,oBAAUD,EAAQ,M,+DCFdE,EAAkBC,YAAH,0GAuCNC,EA5BAC,YAAO,MAAPA,CAAH,sVAMR,SAACC,GAAD,OAAOA,EAAEC,QAAF,0CAEqBD,EAAEC,OAFvB,4CAGiBD,EAAEC,OAHnB,wCAIaD,EAAEC,OAJf,eAaML,GACX,SAACI,GAAD,OAAOA,EAAEE,OAAF,2CAEoBF,EAAEE,MAFtB,sCAGYF,EAAEE,MAHd,eCxBEC,EAPCJ,IAAOK,IAAV,yG,OCmBEC,IAjBU,kBACvB,eAAC,EAAD,WACE,cAAC,EAAD,IACA,cAAC,EAAD,CAAQJ,OAAQ,GAAIC,OAAQ,MAC5B,cAAC,EAAD,CAAQD,OAAQ,GAAIC,OAAQ,IAC5B,cAAC,EAAD,CAAQD,OAAQ,GAAIC,OAAQ,KAC5B,cAAC,EAAD,CAAQD,OAAQ,IAAKC,OAAQ,KAC7B,cAAC,EAAD,CAAQD,OAAQ,IAAKC,OAAQ,KAC7B,cAAC,EAAD,CAAQD,OAAQ,IAAKC,OAAQ,KAC7B,cAAC,EAAD,CAAQD,OAAQ,IAAKC,OAAQ,KAC7B,cAAC,EAAD,CAAQD,OAAQ,IAAKC,OAAQ,KAC7B,cAAC,EAAD,CAAQD,OAAQ,IAAKC,OAAQ,KAC7B,cAAC,EAAD,CAAQD,OAAQ,IAAKC,OAAQ,KAC7B,cAAC,EAAD,CAAQD,OAAQ,IAAKC,OAAQ,U,4FCTpBI,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AAoBtN,MACvB6M,EAAS,IAAD,OAAKjL,IAAOY,eAM3B,CAACyK,IAEG,MAoDMY,EAjDI,WACjB,IAAQlO,EAAUmO,qBAAWzO,KAArBM,MAGFoO,EAAa,WACjB,IAAMJ,EAAWK,cAUjB,OARAvR,aAAc,WACZ,IAAMwR,EAAYN,EAASO,SAASC,MAAM,IAErCxO,GAASkD,IAAWuL,SAASH,IAA2BA,IAAcrM,IAAOY,QAChF2H,OAAOwD,SAASU,KAAOzM,IAAOY,UAKhC,qCACE,cAAC,EAAD,IACA,cAAC,EAAD,QAKN,OACE,cAAC,sBAAD,CAAqB8L,OAAQjC,EAA7B,SACE,eAACE,EAAD,WACE,cAAC,IAAD,CACEgC,cAAc,gCACdC,aAAa,2BACbC,eAAgB,CAAEC,KAAM,MAH1B,SAKE,sBAAMC,KAAK,cAAcC,QAAQ,4FAEnC,cAAC,IAAD,UACE,cAAC,IAAD,UACE,cAAC,gBAAD,UACE,cAAC,IAAD,UACE,cAACb,EAAD,YAKR,cAAC9B,EAAD,IACA,cAAC,EAAD,CAAQxD,OAAQ,CAAC,IAAK,EAAG,GAAID,KAAM,WC/JrCqG,GAAYvO,SAASwO,eAAe,QAC7BC,qBAAWF,IAGnBG,OACH,cAAC,IAAD,UACE,cAACC,EAAD,Q,gFCxBWlS,MAAf,G,4KCDYuQ,E,0BAAAA,O,eAAAA,I,yBAAAA,I,mBAAAA,I,kBAAAA,M,KAaL,IAAMJ,EAAyB,WACpC,OAAOgC,YAAeC,IAGXC,EAAuB,WAClC,IAAM9G,EAAW+G,YAAkBF,GAUnC,MAAO,CACLG,SAVe,SAACC,GAChBjH,GAAS,SAACkH,GACR,OAAO,2BACFA,GACAD,SAUEE,EAAyB,WACpC,OAAOC,YAAoBP,IAGvBA,EAA6CQ,YAAsB,CACvE3J,IAAK,eACLlI,QAAS,S","file":"static/js/main.c3325ae0.chunk.js","sourcesContent":["import { EffectCallback, useEffect } from 'react';\n\n// ref: https://usehooks-ts.com/react-hook/use-effect-once\nexport const useEffectOnce = (effect: EffectCallback) => {\n useEffect(effect, []);\n};\n","import styled, { keyframes } from 'styles/styled-components';\n\nconst circleFadeDelay = keyframes`\n 0%,\n 39%,\n 100% {\n opacity: 0;\n }\n 40% {\n opacity: 1;\n }\n`;\n\nconst Circle = styled('div')<{ rotate?: number, delay?: number }>`\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n ${(p) => p.rotate &&\n `\n -webkit-transform: rotate(${p.rotate}deg);\n -ms-transform: rotate(${p.rotate}deg);\n transform: rotate(${p.rotate}deg);\n `} &:before {\n content: '';\n display: block;\n margin: 0 auto;\n width: 15%;\n height: 15%;\n background-color: #999;\n border-radius: 100%;\n animation: ${circleFadeDelay} 1.2s infinite ease-in-out both;\n ${(p) => p.delay &&\n `\n -webkit-animation-delay: ${p.delay}s;\n animation-delay: ${p.delay}s;\n `};\n }\n`;\n\nexport default Circle;\n","import styled from 'styles/styled-components';\n\nconst Wrapper = styled.div`\n margin: 2em auto;\n width: 40px;\n height: 40px;\n position: relative;\n`;\n\nexport default Wrapper;\n","import * as React from 'react';\nimport Circle from './Circle';\nimport Wrapper from './Wrapper';\n\nconst LoadingIndicator = () => (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n);\n\nexport default LoadingIndicator;\n","import React, { lazy, Suspense } from 'react';\n\ninterface Opts {\n fallback: React.ReactNode;\n}\n\ntype Unpromisify = T extends Promise ? P : never;\n\nexport const lazyLoad = <\n T extends Promise,\n U extends React.ComponentType,\n>(\n importFunc: () => T,\n selectorFunc?: (s: Unpromisify) => U,\n opts: Opts = { fallback: null },\n) => {\n let lazyFactory: () => Promise<{ default: U }> = importFunc;\n\n if (selectorFunc) {\n lazyFactory = () =>\n importFunc().then(module => ({ default: selectorFunc(module) }));\n }\n\n const LazyComponent = lazy(lazyFactory);\n\n const lazyLoadComponent = (props: React.ComponentProps): JSX.Element => (\n \n \n \n );\n\n return lazyLoadComponent;\n};\n","import React, { createContext, useReducer } from 'react';\n\nconst initialState: any = {\n organizationSettings: null,\n organizationSetting: null,\n geo: null,\n appointment: null,\n reception_flow: null,\n functions: null,\n inputSetting: null,\n information: null,\n visitor: null, // 来訪者情報入力値\n attachment: null, // 名刺画像データ\n personnel: null, // 担当者情報\n nextRoute: null, // 遷移先\n isAccepted: null, // 受付済\n division: null, // 選択した部署\n akerunSetting: null, // Akerun設定\n akerunUnlockFinishedStatus: 'none', // Akerun解錠完了ステータス\n customQuestionAnswers: [], // 選択したカスタム質問の答え\n};\n\nexport const store = createContext(initialState);\n\nconst { Provider } = store;\n\nconst StateProvider = ({ children }) => {\n const [state, dispatch] = useReducer((state, action) => {\n const currentState = { ...state };\n switch (action.type) {\n case 'setOrganizationSettings':\n currentState.organizationSettings = action.payload;\n return currentState;\n case 'setOrganizationSetting':\n currentState.organizationSetting = action.payload;\n return currentState;\n case 'setGeo':\n currentState.geo = action.payload;\n return currentState;\n case 'setAppointment':\n currentState.appointment = action.payload;\n return currentState;\n case 'setReceptionFlow':\n currentState.reception_flow = action.payload;\n return currentState;\n case 'setFunctions':\n currentState.functions = action.payload;\n return currentState;\n case 'setInputSetting':\n currentState.inputSetting = action.payload;\n return currentState;\n case 'setInformation':\n currentState.information = action.payload;\n return currentState;\n case 'setVisitor':\n currentState.visitor = action.payload;\n return currentState;\n case 'setAttachment':\n currentState.attachment = action.payload;\n return currentState;\n case 'setPersonnel':\n currentState.personnel = action.payload;\n return currentState;\n case 'setNextRoute':\n currentState.nextRoute = action.payload;\n return currentState;\n case 'setIsAccepted':\n currentState.isAccepted = action.payload;\n return currentState;\n case 'setDivision':\n currentState.division = action.payload;\n return currentState;\n case 'setCustomQuestionAnswers':\n currentState.customQuestionAnswers = action.payload;\n return currentState;\n case 'setAkerunSetting':\n currentState.akerunSetting = action.payload;\n return currentState;\n case 'setAkerunUnlockFinishedStatus':\n currentState.akerunUnlockFinishedStatus = action.payload;\n return currentState;\n default:\n throw new Error();\n }\n }, initialState);\n\n return {children};\n};\n\nexport default StateProvider;\n","import { useState } from 'react';\nimport tw from 'twin.macro';\nimport 'styled-components/macro';\nimport { disableBodyScroll, enableBodyScroll } from 'body-scroll-lock';\nimport { useEffectOnce } from 'app/hooks/useEffectOnce';\n\nexport enum YesNoDialogType {\n YesNo = 'YesNo',\n Ok = 'Ok'\n}\n\nexport interface YesNoDialogProps {\n type: YesNoDialogType\n message: string\n onNoAction?: () => void,\n onYesAction?: () => void,\n onClose?: () => void,\n}\n\nconst YesNoDialog = (props: YesNoDialogProps) => {\n const targetElement = document.querySelector('#root');\n const [isModalOpen, setIsModalOpen] = useState(true);\n\n useEffectOnce(() => {\n disableBodyScroll(targetElement);\n });\n\n const handleNoAction = () => {\n enableBodyScroll(targetElement);\n setIsModalOpen(false);\n if (props.onNoAction) {\n props.onNoAction();\n }\n };\n\n const handleYesAction = () => {\n enableBodyScroll(targetElement);\n setIsModalOpen(false);\n if (props.onYesAction) {\n props.onYesAction();\n }\n };\n\n if (!isModalOpen) return null;\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n {props.message}\n \n \n \n {props.type === YesNoDialogType.YesNo &&\n <>\n \n いいえ\n \n \n >\n }\n \n はい\n \n \n \n \n \n \n );\n};\n\nexport default YesNoDialog;\n","import { Helmet } from 'react-helmet-async';\nimport React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\nimport styled from 'styled-components/macro';\n\nconst Wrapper = styled.div`\n height: 100vh;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n min-height: 320px;\n`;\n\nconst P = styled.p`\n font-weight: bold;\n font-size: 18px;\n white-space: pre-wrap;\n text-align: center;\n`;\n\nexport const ErrorPageLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.ErrorPage,\n {\n fallback: ,\n }\n);\n\nexport function ErrorPage() {\n\n return (\n <>\n \n 受付クラウドシステム ラクネコ\n \n \n アクセスエラー\n \n {`このタブは閉じて\\nもう一度QRコードを\\n読み取ってください`}\n \n >\n );\n}\n","export const GEOLOCATION_TOLERANCE_DISTANCE_METER = 50;\nexport const DEFAULT_THEME_COLOR = '#0c5ba8';\n\nexport const KEY_SITE_ID = 'siteId';\n\nexport const Routes = {\n organization: 'organization',\n reception: 'reception',\n verification: 'verification',\n search: 'search',\n selection: 'selection',\n input: 'input',\n photo: 'photo',\n call: 'call',\n respond: 'respond',\n confirm: 'confirm',\n information: 'information',\n notfound: 'notfound',\n error: 'error',\n division: 'division',\n customQuestion: 'custom-question',\n interphone: 'interphone',\n extensionPhone: 'extension-phone',\n akerun: 'door',\n};\n\nexport enum RouteType {\n Organization = 'organization',\n Reception = 'reception',\n Verification = 'verification',\n Search = 'search',\n Selection = 'selection',\n Input = 'input',\n Photo = 'photo',\n Call = 'call',\n Respond = 'respond',\n Confirm = 'confirm',\n Information = 'information',\n NotFound = 'notfound',\n Error = 'error',\n Division = 'division',\n CustomQuestion = 'custom-question',\n Interphone = 'interphone',\n ExtensionPhone = 'extension-phone',\n Akerun = 'door',\n}\n\nexport const RouteTypes = Object.values(RouteType);\n\nexport const Message = {\n CallPersonnel: 'リクエストを送信しますか?',\n CallPersonnelFor: '%sさま\\nリクエストを送信しますか?',\n DeprecatedBrowser: '非推奨のブラウザでアクセスしています\\n\\n推奨ブラウザでない場合、正しく動作しない可能性があります。\\nあらかじめご了承ください。\\n\\niOS: Safari\\nAndroid: Google Chrome',\n TransitionConfirm: \"このページに戻れなくなりますが続行しますか?\",\n};\n\nexport const ErrorMessage = {\n Common: {\n NetworkError: '通信エラーが発生しました',\n NotFoundSiteId: 'サイトIDが見つかりませんでした',\n Unknown: 'エラーが発生しました\\n管理者に連絡してください',\n NotAvailableStorage: '今の設定ではご利用いただけません。ご利用するにはブラウザの設定を変更してください。',\n },\n Reception: {\n Invalid: '受付設定が不正な状態です\\n管理者に連絡してください',\n VisitNotFound: '訪問先が見つかりませんでした',\n },\n Camera: {\n Invalid: 'カメラが起動出来ませんでした。\\nChromeの方は、\\n「設定」→「Chrome」から\\nカメラを許可してください。',\n },\n QRCode: {\n Invalid: 'QRコードが不正です',\n },\n Location: {\n GeoInvalid: '位置情報が取得できませんでした',\n DistanceInvalid: '受付エリアから離れています。\\n受付QRコードの近くで\\n操作を行ってください。',\n IOSInvalid: '位置情報が取得できませんでした\\n\\n位置情報取得を許可し、\\n受付QRを再度読み込んでください\\n\\n・設定 > プライバシー > 位置情報サービスをONにしてください\\n\\n・設定 > ご使用のブラウザ > 位置情報を確認か許可にしてください',\n AndroidInvalid: '位置情報が取得できませんでした\\n\\n位置情報取得を許可し、\\n受付QRを再度読み込んでください\\n\\n・設定 > 位置情報 > 位置情報へのアクセスをONにしてください\\n\\n・アドレスバーの左側にある\\n鍵アイコンから\\n位置情報権限を許可してください',\n },\n Interphone: {\n CallError: '通話の発信に失敗しました。',\n NotFoundUser: '発信先ユーザーが見つかりません。',\n FailedInitialize: '通話設定の初期化に失敗しました。',\n NotAllowedAudio: 'インターホンにはマイクの許可が必要です。',\n UnknownPhoneNumber: '電話番号が不明です。',\n DisablePhone: '発信先ユーザーの設定が有効ではありません。',\n },\n};\n\n// AIT_RBP-1798 グローブシップ(三菱地所)社向け対応:表示文言の固定切り替え対応\nconst SPECIAL_ORGANIZATION_ID = Number(process.env.REACT_APP_SPECIAL_ORGANIZATION_ID);\n\nconst defaultText = {\n visitorInputSelectionTitle: 'お客様情報の入力方法を選択',\n visitorInputTitle: 'お客様の情報の入力',\n businessCardScan: '名刺をカメラで読み取る',\n keyboardInput: 'テキストで入力する',\n reason: 'ご用件',\n reasonPlaceholder: 'ご用件を選択または入力',\n captureTitle: '名刺を枠内に合わせて撮影してください',\n captureDetail: 'お客様の会社名とお名前を読み取ります',\n captureConfirm: '会社名・お名前が写っていることをご確認ください'\n};\n\nconst specialOrganizationText = {\n [SPECIAL_ORGANIZATION_ID]: {\n visitorInputSelectionTitle: 'リクエスト内容の詳細入力',\n visitorInputTitle: '詳細情報入力',\n businessCardScan: '写真を撮影する',\n keyboardInput: '詳細情報入力',\n reason: '内容',\n reasonPlaceholder: '内容を入力',\n captureTitle: '枠内に合わせて撮影してください',\n captureDetail: ' ',\n captureConfirm: ' '\n }\n};\n\nconst specialOrganizationDisplaySettings: { [key: number]: any } = {\n [SPECIAL_ORGANIZATION_ID]: {\n showCompanyName: false,\n showName: false,\n showNumberVisitors: false,\n showReasonSelection: false,\n },\n};\n\nexport const getOrganizationText = (key, organizationId) => {\n if (specialOrganizationText[organizationId] && specialOrganizationText[organizationId][key]) {\n return specialOrganizationText[organizationId][key];\n }\n return defaultText[key];\n};\n\nexport const getOrganizationDisplaySettings = (organizationId) => {\n return specialOrganizationDisplaySettings[organizationId] || {\n showCompanyName: true,\n showName: true,\n showNumberVisitors: true,\n showReasonSelection: true,\n };\n};\n\nexport const Reasons = [\n '打ち合わせ',\n '商談',\n 'その他'\n];\n\nexport const Const = {\n Interphone: {\n Timeout: 30\n }\n};\n","import * as React from 'react';\n\ninterface InitialProps {\n size: number;\n colour: number[];\n scope: Window;\n children?: React.ReactNode;\n}\n\ninterface State {\n hidden: boolean;\n drag: boolean;\n animating: boolean;\n removeOnMouseUp: boolean;\n animation: string;\n x: number;\n y: number;\n}\n\nclass Ripple extends React.Component {\n static defaultProps = {\n size: 50,\n colour: [135, 206, 250],\n scope: window\n };\n\n showEvents = ['mousedown', 'mousemove', 'touchstart', 'touchmove'];\n hideEvents = ['animationend', 'mouseup', 'touchend'];\n pointer: any;\n\n state = {\n hidden: true,\n animating: false,\n animation: 'rippleFadeIn',\n drag: false,\n removeOnMouseUp: false,\n x: 0,\n y: 0\n };\n\n constructor(props: InitialProps) {\n super(props);\n this.showRipple = this.showRipple.bind(this);\n this.hideRipple = this.hideRipple.bind(this);\n }\n\n getPointer() {\n const { scope, children } = this.props;\n return children ? this.pointer : scope;\n }\n\n injectKeyFrames() {\n const newStyleSheet = document.createElement('style');\n\n const keyframes = `@keyframes rippleFadeIn {\n from {\n transform: scale(0.8);\n opacity: 0.2;\n }\n to {\n transform: scale(1);\n opacity: 0.6;\n }\n }\n\n @keyframes fadeOut {\n from {\n transform: scale(1);\n opacity: 0.6;\n }\n to {\n transform: scale(1);\n opacity: 0.2;\n }\n }\n `;\n\n newStyleSheet.innerHTML = keyframes;\n document.body.prepend(newStyleSheet);\n }\n\n componentDidMount() {\n this.injectKeyFrames();\n this.addEventListener();\n }\n\n componentWillUnmount() {\n this.removeEventListener();\n }\n\n addEventListener() {\n const pointer = this.getPointer();\n // const drag = {isDrag: false}\n this.showEvents.forEach(event => pointer.addEventListener(event, this.showRipple));\n this.hideEvents.forEach(event => pointer.addEventListener(event, this.hideRipple));\n }\n\n removeEventListener() {\n const pointer = this.getPointer();\n this.showEvents.forEach(event => pointer.removeEventListener(event, this.showRipple));\n this.hideEvents.forEach(event => pointer.removeEventListener(event, this.hideRipple));\n }\n\n showRipple(e: any) {\n const { pageX, pageY } = (e.touches && e.touches[0]) || (e.changedTouches && e.changedTouches[0]) || e;\n\n if (e.type === 'mousemove' || e.type === 'touchmove') {\n this.state.drag && this.setState({ x: pageX, y: pageY });\n } else {\n this.setState({ drag: true, animating: true, hidden: false, animation: 'rippleFadeIn', x: pageX, y: pageY });\n }\n }\n\n hideRipple(e: any) {\n if (e.type === 'animationend' && e.animationName === 'rippleFadeIn' && !this.state.drag) {\n this.setState({ hidden: false, drag: false, animating: true, animation: 'fadeOut' });\n } else if (e.type === 'animationend' && e.animationName === 'fadeOut') {\n this.setState({ hidden: true, animating: false, animation: 'rippleFadeIn', removeOnMouseUp: false });\n } else if ((e.type === 'mouseup' || e.type === 'touchend') && !this.state.animating) {\n this.setState({ hidden: true, drag: false, animating: false });\n } else if (e.type === 'animationend' && e.animationName === 'rippleFadeIn' && this.state.drag) {\n this.setState({ removeOnMouseUp: true });\n } else if ((e.type === 'mouseup' || e.type === 'touchend') && this.state.removeOnMouseUp) {\n this.setState({ hidden: false, drag: false, animating: true, animation: 'fadeOut' });\n } else if (e.type === 'mouseup' || e.type === 'touchend') {\n this.setState({ drag: false });\n }\n }\n\n render() {\n const { hidden, x, y, animation } = this.state;\n const { children, size, colour } = this.props;\n\n const style: React.CSSProperties = {\n display: hidden ? 'none' : 'block',\n top: y,\n left: x,\n position: 'fixed',\n width: size,\n height: size,\n background: `rgba(${colour[0]},${colour[1]},${colour[2]},0.2)`,\n textAlign: 'center',\n marginTop: -(size / 2),\n marginLeft: -(size / 2),\n zIndex: 999,\n borderRadius: '100%',\n border: 'none',\n animationName: animation,\n animationTimingFunction: 'ease-out',\n animationDuration: animation === 'rippleFadeIn' ? '0.1s' : '0.1s',\n animationDelay: '0.0s',\n animationIterationCount: 1,\n animationDirection: 'normal',\n animationFillMode: 'forwards',\n pointerEvents: 'none'\n };\n\n return ( this.pointer = elem}>\n \n {children}\n );\n }\n}\n\nexport default Ripple;\n","/**\n * Asynchronously loads the component for SplashPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const SplashLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.Splash,\n {\n fallback: ,\n }\n);\n","/**\n * Asynchronously loads the component for OrganizationPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const OrganizationLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.Organization,\n {\n fallback: ,\n },\n);\n","/**\n * Asynchronously loads the component for ReceptionPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const ReceptionLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.Reception,\n {\n fallback: ,\n }\n);\n","/**\n * Asynchronously loads the component for VerificationPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const VerificationLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.Verification,\n {\n fallback: ,\n },\n);\n","/**\n * Asynchronously loads the component for CallPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const CallLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.Call,\n {\n fallback: ,\n }\n);\n","/**\n * Asynchronously loads the component for RespondPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const RespondLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.Respond,\n {\n fallback: ,\n }\n);\n","/**\n * Asynchronously loads the component for CallPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const SearchUserLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.SearchUserPage,\n {\n fallback: ,\n }\n);\n","/**\n * Asynchronously loads the component for CallPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const VisitorInputSelectionLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.VisitorInputSelection,\n {\n fallback: ,\n },\n);\n","/**\n * Asynchronously loads the component for CallPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const VisitorInputLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.VisitorInput,\n {\n fallback: ,\n },\n);\n","/**\n * Asynchronously loads the component for NotFoundPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const PhotographyLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.Photography,\n {\n fallback: ,\n }\n);\n","/**\n * Asynchronously loads the component for NotFoundPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const NotFoundLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.NotFound,\n {\n fallback: ,\n }\n);\n","/**\n * Asynchronously loads the component for DivisionPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const DivisionLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.DivisionPage,\n {\n fallback: ,\n },\n);\n","/**\n * Asynchronously loads the component for InformationPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from '../../components/LoadingIndicator';\n\nexport const InformationLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.Information,\n {\n fallback: ,\n }\n);\n","/**\n * Asynchronously loads the component for CustomQuestionPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const CustomQuestionLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.CustomQuestionPage,\n {\n fallback: ,\n },\n);\n","/**\n * Asynchronously loads the component for CustomQuestionPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const InterphoneLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.InterphonePage,\n {\n fallback: ,\n },\n);\n","import { createGlobalStyle } from 'styled-components';\n\nconst GlobalStyle = createGlobalStyle`\n * {\n -ms-overflow-style: none;\n }\n ::-webkit-scrollbar {\n display: none;\n }\n ::-moz-scrollbar {\n display: none;\n }\n\n html,\n body {\n height: 100%;\n width: 100%;\n overflow: hidden;\n -ms-overflow-style: none;\n scrollbar-color: transparent transparent;\n overscroll-behavior-y: contain;\n touch-action: pan-down;\n }\n\n body {\n font-family: \"Noto Sans JP\", \"Hiragino Kaku Gothic ProN\", Meiryo, sans-serif;\n }\n\n #root {\n min-width: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n overflow: auto;\n }\n\n p,\n label {\n font-family: \"Noto Sans JP\", \"Hiragino Kaku Gothic ProN\", Meiryo, sans-serif;\n line-height: 1.5em;\n }\n\n input, select {\n font-family: \"Noto Sans JP\", \"Hiragino Kaku Gothic ProN\", Meiryo, sans-serif;\n }\n`;\n\n// https://github.com/styled-components/styled-components/issues/3738\nexport const GlobalStyleProxy: any = GlobalStyle;\n","/**\n * Asynchronously loads the component for CallPage\n */\n\nimport * as React from 'react';\nimport { lazyLoad } from 'app/utils/loadable';\nimport LoadingIndicator from 'app/components/LoadingIndicator';\n\nexport const AkerunLazyLoad = lazyLoad(\n () => import('./index'),\n module => module.Akerun,\n {\n fallback: ,\n }\n);\n","/**\n *\n * App\n *\n * This component is the skeleton around the actual pages, and should only\n * contain code that should be seen on all pages. (e.g. navigation bar)\n */\n\nimport React, { useContext, useEffect } from 'react';\nimport { Helmet } from 'react-helmet-async';\nimport styled from 'styles/styled-components';\nimport {\n BrowserRouter as Router,\n useLocation,\n useNavigate,\n useRoutes,\n} from 'react-router-dom';\nimport { QueryClient, QueryClientProvider } from 'react-query';\nimport { PopupProvider, usePopupManager } from 'react-popup-manager';\n\nimport {\n ErrorMessage,\n Routes,\n RouteType,\n RouteTypes,\n} from './constants/constants';\nimport StateProvider, { store } from './context/state';\n\nimport Ripple from './components/Ripple';\n\nimport { SplashLazyLoad } from './pages/Splash/Loadable';\nimport { OrganizationLazyLoad } from './pages/Organization/Loadable';\nimport { ReceptionLazyLoad } from './pages/Reception/Loadable';\nimport { VerificationLazyLoad } from './pages/Verification/Loadable';\nimport { CallLazyLoad } from './pages/Call/Loadable';\nimport { RespondLazyLoad } from './pages/Respond/Loadable';\nimport { SearchUserLazyLoad } from './pages/SearchUser/Loadable';\nimport { VisitorInputSelectionLazyLoad } from './pages/VisitorInputSelection/Loadable';\nimport { VisitorInputLazyLoad } from './pages/VisitorInput/Loadable';\nimport { PhotographyLazyLoad } from './pages/Photography/Loadable';\nimport { NotFoundLazyLoad } from './pages/NotFound/Loadable';\nimport { DivisionLazyLoad } from './pages/Division/Loadable';\nimport { InformationLazyLoad } from './pages/Information/Loadable';\nimport { CustomQuestionLazyLoad } from './pages/CustomQuestion/Loadable';\nimport { InterphoneLazyLoad } from './pages/Interphone/Loadable';\nimport { useEffectOnce } from 'app/hooks/useEffectOnce';\nimport { RecoilRoot } from 'recoil';\nimport {\n ErrorNavigationType,\n useAppErrorRecoilValue,\n} from 'app/recoil/errorRecoil';\nimport YesNoDialog, { YesNoDialogType } from 'app/components/YesNoDialog';\nimport { ErrorPageLazyLoad } from 'app/pages/Error';\nimport { GlobalStyleProxy } from '../styles/global-styles';\nimport { AkerunLazyLoad } from './pages/Akerun/Loadable';\n\nconst queryClient = new QueryClient();\n\nconst AppStyle = styled.div`\n max-width: initial;\n margin: 0 auto;\n display: flex;\n min-height: 100%;\n /* padding: 0 16px; */\n flex-direction: column;\n`;\n\nconst RouterConfig = () => {\n return useRoutes([\n { path: '/', element: },\n { path: '/:siteId', element: },\n { path: Routes.organization, element: },\n { path: Routes.reception, element: },\n { path: `${Routes.reception}/:receptionFlowId`, element: },\n { path: Routes.verification, element: },\n { path: Routes.call, element: },\n { path: Routes.respond, element: },\n { path: Routes.search, element: },\n { path: Routes.selection, element: },\n { path: Routes.input, element: },\n { path: Routes.information, element: },\n { path: Routes.photo, element: },\n { path: Routes.notfound, element: },\n { path: Routes.division, element: },\n { path: Routes.customQuestion, element: },\n { path: Routes.interphone, element: },\n { path: Routes.extensionPhone, element: },\n { path: Routes.akerun, element: },\n { path: Routes.error, element: },\n ]);\n};\n\nconst AppError = () => {\n const navigate = useNavigate();\n const popupManager = usePopupManager();\n const appErrorRecoilValue = useAppErrorRecoilValue();\n\n useEffect(() => {\n if (appErrorRecoilValue === null) {\n return;\n }\n\n let navigationType = appErrorRecoilValue.navigationType;\n let errMessage = appErrorRecoilValue.message;\n const stacktrace = appErrorRecoilValue.stacktrace;\n if (stacktrace && stacktrace.message === ErrorMessage.Common.NotFoundSiteId) {\n // サイトIDが見つからない場合はエラーを変更\n errMessage = ErrorMessage.QRCode.Invalid;\n navigationType = ErrorNavigationType.Error;\n }\n\n popupManager.open(YesNoDialog, {\n type: YesNoDialogType.Ok,\n message: errMessage,\n onYesAction: () => {\n switch (navigationType) {\n case ErrorNavigationType.Back:\n navigate(-1);\n break;\n case ErrorNavigationType.Reception:\n navigate(`/${Routes.reception}`);\n break;\n case ErrorNavigationType.Reload:\n window.location.reload();\n break;\n case ErrorNavigationType.Error:\n navigate(`/${Routes.error}`);\n break;\n }\n }\n });\n\n }, [appErrorRecoilValue]);\n\n return null;\n};\n\nconst AppWrapper = () => {\n const { state } = useContext(store);\n\n // Routerの中でuseLocationを使用するためのコンポーネント\n const AppContent = () => {\n const location = useLocation();\n\n useEffectOnce(() => {\n const routeName = location.pathname.slice(1);\n // 画面起動時にstateがない且つ、RouteTypesに含まれていない場合はエラー画面に遷移\n if (!state && RouteTypes.includes(routeName as RouteType) && routeName !== Routes.error) {\n window.location.href = Routes.error;\n }\n });\n\n return (\n <>\n \n \n >\n );\n };\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default AppWrapper;\n","/**\n * index.tsx\n *\n * This is the entry file for the application, only setup and boilerplate\n * code.\n */\n\nimport 'react-app-polyfill/ie11';\nimport 'react-app-polyfill/stable';\n\nimport * as React from 'react';\nimport { createRoot } from 'react-dom/client';\n\n// Use consistent styling\nimport 'sanitize.css/sanitize.css';\n\n// Import root app\nimport App from 'app/App';\n\nimport { HelmetProvider } from 'react-helmet-async';\n\nconst container = document.getElementById('root') as HTMLElement;\nconst root = createRoot(container!);\n\n// avoid https://reactjs.org/docs/strict-mode.html#detecting-unexpected-side-effects\nroot.render(\n \n \n \n);\n","import styled, { createGlobalStyle, css, keyframes, ThemeProvider } from 'styled-components/macro';\n\nexport { css, createGlobalStyle, keyframes, ThemeProvider };\nexport default styled;\n","import { atom, RecoilState, useRecoilValue, useResetRecoilState, useSetRecoilState } from 'recoil';\n\nexport enum ErrorNavigationType {\n Back,\n Reception,\n Reload,\n Error,\n}\n\ntype AppError = {\n message: string\n navigationType: ErrorNavigationType\n stacktrace?: Error\n}\n\nexport const useAppErrorRecoilValue = () => {\n return useRecoilValue(appErrorAtom);\n};\n\nexport const useAppErrorRecoilSet = () => {\n const setState = useSetRecoilState(appErrorAtom);\n const setValue = (newValue: AppError) => {\n setState((currVal) => {\n return {\n ...currVal,\n ...newValue,\n };\n });\n };\n\n return {\n setValue: setValue\n };\n};\n\nexport const useAppErrorRecoilReset = () => {\n return useResetRecoilState(appErrorAtom);\n};\n\nconst appErrorAtom: RecoilState = atom({\n key: 'appErrorAtom',\n default: null,\n});\n"],"sourceRoot":""}
アクセスエラー
{`このタブは閉じて\\nもう一度QRコードを\\n読み取ってください`}