{"version":3,"sources":["containers/ForbiddenPage/index.tsx","components/Alert/Alert.tsx","configs/styled.tsx","components/Button/Button.tsx","components/Col/Col.tsx","components/Divider/Divider.tsx","components/Form/FormItem.tsx","components/Formik/FormErrorMessage.tsx","components/Input/Input.tsx","components/Input/Password.tsx","components/Input/Search.tsx","components/Layout/Header.tsx","components/Layout/Sider.tsx","components/Layout/Content.tsx","components/Pagination/Pagination.tsx","components/Row/Row.tsx","components/Select/Select.tsx","components/Spin/Spin.tsx","components/Typography/Title.tsx","components/Typography/Paragraph.tsx","components/Typography/Text.tsx","components/Table/TableFooter.tsx","components/Label/Label.style.ts","components/Label/Label.tsx","components/Tag/Tag.style.ts","containers/DriverPortalPage/components/Banner.tsx","components/Tag/Tag.tsx","containers/DriverPortalPage/components/DriverPortalLayout.tsx","hooks/useLocalStorageSignup.ts","hooks/usePrompt.ts","hooks/useQueryParams/index.ts","services/clients/RestClient.ts","services/driverPortal/AddressService.ts","services/driverPortal/UploadService.ts","services/driverPortal/index.ts","services/driverPortal/AuthenticationService.ts","utils/transformResponseError.ts","utils/dotObjectExpander.ts","containers/DriverPortalPage/components/SelectLoading.tsx","containers/DriverPortalPage/components/InputCheckBox.tsx","components/ReturnOrderModal/Loading.tsx","containers/DriverPortalPage/components/Alert.tsx","services/driverPortal/DriverPortal.interface.ts","utils/documentRejected.ts","utils/shouldDisableEdit.ts","containers/DriverPortalPage/components/Divider.tsx","containers/DriverPortalPage/components/TextBold.tsx","containers/DriverPortalPage/components/TextRegular.tsx","containers/DriverPortalPage/components/Title.tsx","containers/DriverPortalPage/MainPage/components/ConfirmReturnModal.tsx","containers/DriverPortalPage/components/HeaderPortal.style.ts","hooks/useIsWebView.ts","containers/DriverPortalPage/components/HeaderPortal.tsx","containers/DriverPortalPage/MainPage/components/DocumentsReviewStatus.tsx","containers/DriverPortalPage/MainPage/components/ConfirmLogoutModal.tsx","containers/DriverPortalPage/MainPage/components/LogoutButton.tsx","containers/DriverPortalPage/MainPage/components/Logout.tsx","containers/DriverPortalPage/MainPage/components/HeaderPortal.tsx","containers/DriverPortalPage/MainPage/components/ReturnButton.tsx","containers/DriverPortalPage/MainPage/ErrorPage.tsx","containers/DriverPortalPage/MainPage/PersonalInformationPage/index.tsx","utils/validateThaiCitizen.ts","containers/DriverPortalPage/SignupPage/index.tsx","containers/DriverPortalPage/LoginPage/index.tsx","containers/DriverPortalPage/index.tsx","hooks/usePrevious.ts","components/OTPInput/SingleInput.tsx","components/OTPInput/index.tsx","services/driverPortal/AuthenticationService.interface.ts","containers/DriverPortalPage/components/CountDown.tsx","containers/DriverPortalPage/OTPPage/OTPForm.tsx","containers/DriverPortalPage/MainPage/components/DocumentStatus.tsx","containers/DriverPortalPage/OTPPage/index.tsx","containers/DriverPortalPage/components/Loading.tsx","containers/DriverPortalPage/MainPage/Approval.tsx","containers/DriverPortalPage/MainPage/components/Menu/Item.tsx","containers/DriverPortalPage/MainPage/components/Menu/index.tsx","containers/DriverPortalPage/MainPage/Rejection.tsx","containers/DriverPortalPage/MainPage/index.tsx","containers/DriverPortalPage/PrivacyPolicyPage/index.tsx","containers/DriverPortalPage/MainPage/components/RequiredTitle.tsx","containers/DriverPortalPage/MainPage/components/BulletList.tsx","containers/DriverPortalPage/MainPage/components/PreviewButton.tsx","utils/dateUtils.ts","containers/DriverPortalPage/MainPage/components/UploadImage.tsx","containers/DriverPortalPage/MainPage/components/UploadImageForm.tsx","utils/findImagePath.ts","hooks/useUpdateExpireDateImages.ts","containers/DriverPortalPage/MainPage/components/Information.tsx","services/users/AuthService.ts","services/users/UserService.ts","contexts/sessionContext.tsx","containers/DriverPortalPage/MainPage/IdentityPage/index.tsx","containers/DriverPortalPage/MainPage/VaccinationCertificatePage/index.tsx","containers/DriverPortalPage/MainPage/BookBankPage/index.tsx","containers/DriverPortalPage/MainPage/VehicleInformationPage/index.tsx","containers/DriverPortalPage/MainPage/DriverLicensePage/index.tsx","containers/DriverPortalPage/MainPage/VoluntaryInsurancePage/index.tsx","containers/DriverPortalPage/MainPage/OnlineTrainingPage/Success.tsx","containers/DriverPortalPage/components/MessageDisplay.tsx","configs/routeConfig.ts","containers/DriverPortalPage/TermsAndConditionPage/index.tsx","containers/DriverPortalPage/MainPage/OnlineTrainingPage/index.tsx","containers/NotFoundPage/Loadable.tsx","utils/loadable.tsx","containers/App/AuthenticatedRoute.tsx","containers/App/UnAuthenticatedRoute.tsx","containers/App/routes.tsx","containers/App/index.tsx","serviceWorker.ts","services/clients/DriverPortalClient.ts","contexts/authContext.tsx","contexts/appContext.tsx","index.tsx","assets/images/driver-portal/bg-modal-consent.png","assets/images/driver-portal/approval.svg","assets/images/driver-portal/all-now-logo.svg","assets/images/driver-portal/information.svg","assets/images/driver-portal/google-play-download-android-app.svg","assets/images/driver-portal/rejection.svg","assets/images/driver-portal/preview/driver-id-card.png","assets/images/driver-portal/preview/name-changing.png","assets/images/driver-portal/preview/vaccine.png","assets/images/driver-portal/preview/book-bank.png","assets/images/driver-portal/preview/compulsory.png","assets/images/driver-portal/preview/consent.png","assets/images/driver-portal/preview/vehicle-registration.png","assets/images/driver-portal/preview/vehicle-insurance.png","assets/images/driver-portal/preview/driving-license.png","assets/images/driver-portal/preview/voluntary-insurance.png"],"names":["Forbidden","style","textAlign","marginTop","fontSize","fontFamily","color","lineHeight","Alert","props","blackColor","Color","hsl","primaryColor","primaryHoverColor","theme","palettes","primary","toString","primary90","fade","primary80","primaryHover","primaryText","primaryBackground","black","black85","black60","black50","black45","black40","black30","black20","border","white","orange","yellow","red","pink","darkGrey","grey","grey97","lightGrayWhite","pastelRed","pastelBlue","pastelGreen","pastelYellow","pickup","delivery","lightBlueGray","lightYellow","blue","status","created","inProgress","assigned","changeDriver","findingDriver","findingNewDriver","pickingUp","pickedUp","delivering","delivered","noDriver","changePickUpTime","rejected","cancelled","failed","received","partiallyDelivered","unsuccessfullyDelivered","driverRejected","returnOrder","documentsStatus","draft","waitingApprove","approved","expired","documentsStatusText","documentStatus","pending","submitted","documentStatusText","alert","info","background","icon","error","warning","blackTextBold","blackTextNormal","disabledText","whiteSmoke","gray40","lightViolet","lightIndigo","heather","phoneText","busyText","redCircle","whitePrimary","fonts","SFProDisplayBold","SFProDisplayRegular","SFProTextSemiBold","SFProTextRegular","SFProTextMedium","SFProTextBold","NotoSands","NotoSansTh","xxxxs","xxxs","xxs","xs","sm","md","lg","xl","xxl","xxxl","fontWeight","regular","medium","bold","spacing","xxxxl","elementSize","navbarDividerHeight","headerHeight","filterPanelHeight","navbarDriverPortalHeight","paginationHeight","tabHeight","tabPanelWidth","tabNotifyButtonWidth","tabNotifyButtonHeight","tabDividerHeight","siderWidth","subNavHeight","previewImageMaxWidth","previewImageMaxHeight","tagBorderRadius","device","mobileS","mobileM","mobileL","tablet","laptop","laptopL","desktop","desktopL","zIndices","infoWindowsMarker","styled","children","Col","Divider","FormItem","Item","FormErrorMessage","name","alertType","render","msg","type","message","banner","defaultProps","Password","Search","Header","Sider","ContentBase","Content","PaginationBase","React","memo","Row","Select","options","optionLabelProp","map","option","idx","title","value","disabled","rest","Option","key","Spin","Title","Paragraph","Text","StyledLabel","forwardRef","ref","text","className","strong","StyledTag","Banner","clickAble","marginBottom","justify","align","width","height","viewBox","fill","xmlns","d","DriverPortalLayout","minHeight","padding","paddingTop","paddingBottom","initialState","provinceName","vehicleType","firstname","lastname","citizenId","phone","referrerCode","isAcceptedTerm","byPassLogin","otpRefCode","expiredAt","otpDigit","vendorName","getLocalStorageSignup","localStorageSignup","localStorage","getItem","JSON","parse","setLocalStorageSignup","signup","prvLocalStorageSignup","nextLocalStorageSignup","setItem","stringify","useLocalStorageSignup","useEffect","setValues","useCallback","getValue","getValues","clearValues","removeItem","initBeforeUnLoad","showExitPrompt","window","onbeforeunload","event","e","preventDefault","returnValue","usePrompt","isDetectedAction","useState","showPrompt","setShowPrompt","onload","useQueryParams","history","useHistory","useRouteMatch","path","params","search","useLocation","updateParams","updatedParams","Object","assign","push","pathname","URLSearchParams","pushUrl","url","useQueryString","ResponseError","Error","constructor","request","statusText","headers","data","super","this","RequestError","RestClient","config","axios","create","timeout","then","response","handleResponse","catch","notFoundAsNull","Promise","reject","handleError","get","method","post","put","delete","apiKeyALLNOW","process","REACT_APP_DRIVER_PORTAL_ALL_NOW_KEY","NotFound","authenticationService","restClient","accessTokenName","refreshTokenName","googleLinkedName","userId","baseURL","getToken","setToken","token","removeToken","buildRequestHeaders","req","Authorization","authorization","apiKey","projectId","companyId","idToken","getUserToken","accessToken","getUserId","getAccessToken","hasAccessToken","Boolean","hasGoogleLinked","login","refreshToken","googleId","loginVerify","signupVerify","vendorVerify","logout","requestOTP","linkGoogle","revokeGoogle","addressService","buildHeaders","buildHeadersALLNOW","provinces","limit","select","sort","districts","subDistricts","getStore","uploadService","updateExpireDateFile","updateExpireDate","fileId","expireDate","endpoint","body","getFile","responseType","URL","createObjectURL","uploadFile","mapValidationError","errors","_errors","fieldName","reason","parseIt","obj","undefined","includes","parsed","dot","object","entries","defaultError","transformResponseError","responseError","isValidationError","length","_error","transformMutationResponseError","SelectLoading","display","justifyContent","alignItems","InputCheckBox","checked","onChecked","paddingLeft","textIndent","verticalAlign","onChange","marginLeft","Loading","position","left","top","backgroundColor","InfoCircleFilled","CloseCircleFilled","ExclamationCircleFilled","BulletList","items","margin","index","bulletLists","borderRadius","maxWidth","marginRight","APPROVE_STATUS","DOCUMENTS_STATUSES","MENU_STATUSES","RIDER_TYPE","DocumentReviewStatus","STATUS_RESPONSE","mapDocumentsReviewStatus","approveStatus","WAITING_APPROVE","getDocumentRejectMessage","document","documentReviewStatus","isDocumentRejected","shouldDisableEdit","TextBold","fontStyle","TextRegular","ModalStyle","ConfirmReturnModal","when","isShow","currentPath","setCurrentPath","block","prompt","handleOK","a","handleCancel","visible","onOk","onCancel","closable","footer","onClick","View","ImageLogo","img","HeaderPortal","cursor","src","allNowLogo","useIsWebView","queryString","QueryString","view","WEB_VIEW","StatusTag","documentsReviewStatuses","textColor","DocumentsReviewStatus","find","trim","getStatus","statusName","ConfirmLogoutModal","formik","setVisible","resetForm","LogoutButton","dirty","setDirty","handleClickLogout","isSubmitting","visibleModal","Logout","disabledDivider","orientation","overlay","trigger","MenuOutlined","MainHeaderPortal","isWebView","documentsReviewStatusName","ReturnButton","LeftOutlined","ErrorPage","Information","ReloadOutlined","location","reload","validatePersonalInfo","Yup","shape","taxAddress","isAddressAccordingToIDCard","postalCode","is","required","province","district","subDistrict","address","emergencyContact","relationship","matches","preferredServiceAreas","of","LOTUS","test","values","createError","preferredServiceAreasForCPALL","storeName","CPALL","getAddressProvinces","buildPersonalInformationPayload","payload","serviceAvailableType","filter","preferredServiceArea","getPreferredServiceAreaProvince","personalInformation","getPreferredServiceAreaProvinceForCPALL","getPreferredServiceAreaDistrict","getPreferredServiceAreaDistrictForCPALL","getPreferredServiceAreaSubDistrictForCPALL","getPreferredServiceAreaStoreForCPALL","PersonalInformationPage","provinceOptions","setProvinceOptions","districtsOptions","setDistrictsOptions","subDistrictsOptions","setSubDistrictsOptions","districtsOptionsServiceArea","setDistrictsOptionsServiceArea","districtsOptionsServiceAreaForCPALL","setDistrictsOptionsServiceAreaForCPALL","subDistrictsOptionsServiceAreaForCPALL","setSubDistrictsOptionsServiceAreaForCPALL","storeOptionsServiceAreaForCPALL","setStoreOptionsServiceAreaForCPALL","loadingPage","setLoadingPage","loadingSelect","setLoadingSelect","disableEdit","setDisableEdit","isShowModal","setIsShowModal","formDirty","setFormDirty","riderType","setRiderType","useQuery","getPersonalInformationError","getPersonalInformationLoading","loading","getPersonalInformationStatus","mutationPersonalInformation","useMutation","formValues","mutate","allowCriminalRecordConsent","setAllowCriminalRecordConsent","goToMainPage","buildInitialPreferredServiceAreas","_preferredServiceAreas","sequence","districtId","isAllowEmergencyContact","buildInitialPreferredServiceAreasForCPALL","subDistrictId","storeCode","useFormik","initialValues","enableReinitialize","validationSchema","validate","context","err","inner","reduce","acc","curr","onSubmit","action","UNAUTHORIZED","setErrors","setFormikState","state","touched","success","isDirty","buildPreferredServiceAreas","preferredServiceAreaForCPALL","buildPreferredServiceAreasForCPALL","validateForm","_provinces","_id","TH","getProvinces","personalInfo","vendor","getDefaultServiceAvailableType","setFieldValue","getAddressDistricts","provinceId","administrativeAreaLevel1","getDistrict","_districts","getAddressSubDistricts","sublocalityLevel1","getAddressStore","servicearea","getSubDistrict","_subDistricts","postalcode","postCode","getServiceAreaDistrict","selectedServiceAreas","districtOptions","prevDistrictsOptions","_districtsOptions","getServiceAreaDistrictForCPALL","getServiceAreaSubDistrict","subDistrictOptions","prevSubDistrictsOptions","_subDistrictsOptions","getStoreForCPALL","storeDetails","storeOptions","storeDetail","prevStoreOptions","_storeOptions","initialPreferredServiceAreas","findProvinceByName","provinceOption","getInitialAddress","_district","getInitialPreferredServiceArea","forEach","getInitialPreferredServiceAreaByCPALL","handleUnauthorized","removeServiceAreaOptions","serviceAreaSequence","_districtsOption","removeServiceAreaOptionsForCPALL","handleSelectedProvince","setFieldTouched","handleClearProvince","handleSelectedProvinceForCPALL","handleSelectedDistrict","handleClearDistrict","handleSelectedDistrictForCPALL","handleSelectedSubDistrictForCPALL","handleSelectedStoreForCPALL","shouldDisplayErrorMessage","getIn","isComplete","areas","every","area","shouldDisabledSubmit","documentsReviewStatus","handleSubmit","target","label","labelCol","span","colon","validateStatus","help","size","placeholder","handleChange","onBlur","handleBlur","showSearch","optionFilterProp","provinceSelected","districtSelected","subDistrictSelected","_","uniqBy","postCodeSelected","maxLength","gutter","notFoundContent","allowClear","clearIcon","CloseCircleOutlined","htmlType","assertThaiId","thaiId","match","fragmentStr","digits","split","totalSum","total","digit","checkSumCal","lastDigit","phoneRegExp","validateSignUp","nullable","oneOf","buildSignUpPayload","SignUpForm","isDisableSubmit","setIsDisableSubmit","setProvinces","subcontractorName","setSubcontractorName","showInvalidSubContractorModal","setShowInvalidSubContractorModal","verifyVendor","subcontractorQueryParam","handleChangeInput","vehicles","vehicleSelected","to","href","centered","validateLogin","buildLoginPayload","LoginForm","disableSubmit","setDisableSubmit","destroy","errorObj","keyBy","resultError","errorCodes","TabPane","TabStyled","DriverPortal","activeTab","setActiveTap","pathName","setDefaultTab","activeKey","defaultActiveKey","replace","tab","usePrevious","useRef","current","SingleOTPInput","focus","autoFocus","inputRef","prevFocus","touch","setTouch","useLayoutEffect","LoginType","VendorName","OTPInput","isNumberInput","onChangeOTP","inputClassName","inputStyle","resetValues","activeInput","setActiveInput","Array","otpValues","setOTPValues","handleOtpChange","otp","otpValue","join","getRightValue","str","changedValue","Number","changeCodeAtFocus","updatedOTPValues","focusInput","inputIndex","selectedIndex","Math","max","min","focusPrevInput","focusNextInput","handleOnFocus","handleOnChange","val","currentTarget","handleOnKeyDown","pressedKey","handleOnPaste","pastedData","clipboardData","getData","slice","nextFocusIndex","shift","SingleInput","onFocus","onKeyDown","onPaste","convertMillisecondsToSeconds","milliseconds","floor","Countdown","onChangeSeconds","remainingTime","setRemainingTime","seconds","setSeconds","Date","getTime","endTime","setEndTime","nowTime","newRemainingTime","countDownSeconds","intervalId","setInterval","clearInterval","prevSeconds","nextSeconds","disableButtonRequestOTP","otpCountdownSeconds","disableRequestOTP","buildLoginWithPhonePayload","otpCode","PHONE","handlerSubmitOTPForm","signupPayload","loginPayload","Status","OTPForm","sessionSignup","otpLength","initialOtpExpiredAt","t","toISOString","defaultOTPExpiredAt","initialOtpRefCode","setDisableRequestOTP","visibleRequestOTPText","setVisibleRequestOTPText","resetOtpValues","setResetOtpValues","otpCountDownSeconds","setOtpCountDownSeconds","otpExpiredAt","setOtpExpiredAt","setOtpRefCode","handleClickResendOTP","handleCountDownChange","CountDown","OTPPage","minWidth","Approval","GOOGLE_PLAY_STORE","alertMessage","ApproveIcon","googlePlayLogo","webViewDisplayStatuses","PENDING","SUBMITTED","REJECTED","EXPIRED","webPortalDisplayStatuses","APPROVED","documentStatuses","getIcon","ExclamationCircleOutlined","ClockCircleOutlined","CheckCircleOutlined","DocumentStatus","shouldDisplay","MenuItem","item","handleClickItem","Meta","description","RightOutlined","getMenuConfigs","menu","code","MenuList","menuConfigs","itemLayout","dataSource","renderItem","Rejection","RejectIcon","allowSubmitDocument","documents","getPendingDocuments","getRequiredDocuments","MainMenu","driverDocumentsReview","onReload","reviewMessage","getDocumentsReviewMessage","handlerMutateError","errorStatus","handleClickSubmitDocumentReview","mutateError","shouldDisableButtonSubmit","hidden","isWaitingApprove","MainPage","query","TERMINATED","displayComponent","PrivacyPolicyPage","RequiredTitle","TIME_FORMAT","PreviewButton","isModalVisible","setIsModalVisible","alt","maxHeight","objectFit","getCurrentDate","moment","utc","ONE_DAY_EXPIRE_DATE","date","add","valueOf","uploadFailNotification","_message","buildPayloadUploadImage","files","folderType","formData","FormData","append","UploadImage","onRemove","pathImage","nameImage","folder","consent","fileLists","setFileLists","previewVisible","setPreviewVisible","consentModal","setConsentModal","consentChecked","setConsentChecked","previewImage","setPreviewImage","previewTitle","setPreviewTitle","getImage","uid","fileName","thumbUrl","handlePreview","file","handleRequestUpload","onSuccess","uploadFileForm","handleRemove","accept","listType","beforeUpload","isValidateAcceptImageTypes","isValidateLimitSize","uploadChange","fileList","customRequest","onPreview","showUploadList","showRemoveIcon","UploadOutlined","closeIcon","maskClosable","BgModalConsent","content","UploadImageForm","styleTitle","requiredTitle","bulletList","previewUrl","renderCheckbox","getFileIds","formRequest","paths","fileIds","splitPath","lastIndex","useUpdateExpireDateImages","handleUpdateError","filesResponse","expireDateFileErrors","updateByFiles","updateByFileIds","AuthService","getTokenName","tokenType","isAuthenticated","tokenName","shouldRefreshToken","_token","decoded","jwt","decode","currentDate","unix","exp","diff","setTime","expires","UserService","authService","getSession","_refreshToken","statusCodes","forgotPassword","resetPassword","userService","initialSessionState","isSessionExpire","session","userState","initialSessionValue","username","projectName","companyName","roleId","roleName","permissions","SessionContext","createContext","displayName","ImageTypes","SessionProvider","sessionState","setSessionState","setUserState","sessionData","user","companies","company","project","roles","role","sessionContextValues","Provider","imageKeys","DRIVER_PHOTO_DOCUMENT","CITIZEN_ID_DOCUMENT","NAME_CHANGE_DOCUMENT","validateIdentity","citizen","id","IdentityPage","imageDeletionFiles","setImageDeletionFiles","filesToUpload","setFilesToUpload","useContext","useSession","shouldDisplayButton","setShouldDisplayButton","identity","getIdentityError","getIdentityLoading","getIdentityStatus","mutationIdentity","uploadImage","createdAt","image","driverPhotoDocument","isAllowConsent","citizenIDDocument","nameChangeDocument","isAllowCriminalRecord","all","imageType","payloadIdentity","uploadImageErrors","imageDeleteFiles","handleRemoveImage","DriverIdCardPreviewImage","DriverNameChangingPreviewImage","DOCUMENT","validateVaccinationCertificate","VaccinationCertificatePage","disabledSubmit","setDisabledSubmit","checkedBox","setCheckedBox","vaccinationCertificate","getVaccinationCertificateError","getVaccinationCertificateLoading","getVaccinationCertificateStatus","mutationVaccinationCertificate","VaccinePreviewImage","accountNumberRegExp","validateBookBank","accountNumber","BookBankPage","bookBank","getBookBankError","getBookBankLoading","getBookBankStatus","mutationBookBank","handleSelect","BookBankImage","REGISTRATION_DOCUMENT","CAR_TAX_STICKER_DOCUMENT","VEHICLE_INSURANCE_DOCUMENT","CONSENT_FORM_DOCUMENT","convertToLocalDateTime","isoString","format","convertDateTimeToUTC","localDateTime","validateVehicleInformation","ownership","serviceType","registrationType","issueDate","expiryDate","parent","agreementMadeOn","policyIssuedOn","registrationDocument","carTaxStickerDocument","vehicleInsuranceDocument","consentFormDocument","VehicleInformationPage","setConsentFormDocument","vehicleInformation","getVehicleInformationError","getVehicleInformationLoading","getVehicleInformationStatus","mutationVehicleInformation","ownerInsurance","payloadVehicleInformation","consentDocumentImage","consentFormError","keys","VehicleRegistrationImage","CompulsoryImage","VehicleInsurnaceImage","vehicleOwnerTypes","ConsentImage","licensePlateTypes","validateDriverLicense","DriverLicensePage","driverLicense","getDriverLicenseError","getDriverLicenseLoading","getDriverLicenseStatus","mutationDriverLicense","DriverLicenseImage","VOLUNTARY_INSURANCE_DOCUMENT","validateVoluntaryInsuranceInformation","insuranceDocument","OnlineTrainingPage","onlineTraining","flexDirection","MessageDisplay","RouteConfigs","component","ForbiddenPage","exact","isPrivate","insuranceInformation","getInsuranceInformationError","getInsuranceInformationLoading","getInsuranceStatus","mutationVoluntaryInsurance","firstName","lastName","payloadInsurance","VoluntaryInsuranceImage","Success","open","OnlineTrainingSuccessPage","loadable","importFunc","fallback","LazyComponent","lazy","Component","setLoading","spinning","Routers","routers","route","NotFoundPage","App","hostname","host","DRIVER_PORTAL_BASEURL","DriverPortalClient","createClient","requestInterceptors","initialAuthState","AuthContext","AuthProvider","loginState","setLoginState","useMemo","authContextValues","AppProvider","client","ReactDOM","getUserConfirmation","basename","getElementById","navigator","serviceWorker","ready","registration","unregister","module","exports"],"mappings":"qQAoBeA,EAlBG,IAEd,yBAAKC,MAAO,CAAEC,UAAW,WACvB,uBACED,MAAO,CACLE,UAAW,OACXC,SAAU,UACVC,WAAY,iBACZC,MAAO,sBACPC,WAAY,YANhB,kB,2DCKSC,EAJuB,IAAkB,IAAbC,EAAY,oBACrD,OAAO,sBAAeA,I,wECLlBC,EAAaC,IAAMC,IAAI,WACvBC,EAAeF,IAAMC,IAAI,WACzBE,EAAoBH,IAAMC,IAAI,WAEvBG,EAAQ,CACnBC,SAAU,CACRC,QAASJ,EAAaK,WACtBC,UAAWN,EAAaO,KAAK,IAAKF,WAClCG,UAAWR,EAAaO,KAAK,IAAKF,WAClCI,aAAcR,EAAkBM,KAAK,IAAKF,WAC1CK,YAAa,UACbC,kBAAmB,UACnBC,MAAOf,EAAWQ,WAClBQ,QAAShB,EAAWU,KAAK,KAAMF,WAC/BS,QAASjB,EAAWU,KAAK,IAAKF,WAC9BU,QAASlB,EAAWU,KAAK,IAAKF,WAC9BW,QAASnB,EAAWU,KAAK,KAAMF,WAC/BY,QAASpB,EAAWU,KAAK,IAAKF,WAC9Ba,QAASrB,EAAWU,KAAK,IAAKF,WAC9Bc,QAAStB,EAAWU,KAAK,IAAKF,WAC9Be,OAAQ,UACRC,MAAO,UACPC,OAAQ,UACRC,OAAQ,UACRC,IAAK,UACLC,KAAM,UACNC,SAAU,UACVC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3B,EAAWn3B,YACxBO,aAAc42B,EAAW52B,aACzBrD,KAAMi6B,EAAWj6B,MACdxG,GAGL,OACE,kBAACugC,GAAY1J,SAAb,CAAsB72B,MAAO4gC,GAC1B3iC,ICpEQ4iC,GAXe7rC,IAAU,IAC9BiJ,EAAajJ,EAAbiJ,SACR,OACE,kBAAC,yBAAD,CAAuB6iC,OAAQX,IAC7B,kBAAC,KAAD,CAAe7qC,MAAOA,GACpB,kBAACkrC,GAAD,KAAeviC,MCJvB8iC,IAAStiC,OACP,kBAAC,GAAD,KACE,kBAAC,KAAD,CACEuiC,oBAAqB,OAGrBC,SAAUl5B,KAEV,kBAAC,GAAD,QAGJuH,SAAS4xB,eAAe,SJoHpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMp6B,KAAKq6B,IACjCA,EAAaC,gB,kBKzInBC,EAAOC,QAAU,89P,ycCAjBD,EAAOC,QAAU,IAA0B,sC,oBCA3CD,EAAOC,QAAU,IAA0B,0C,oBCA3CD,EAAOC,QAAU,IAA0B,yC,oBCA3CD,EAAOC,QAAU,IAA0B,8D,oBCA3CD,EAAOC,QAAU,IAA0B,uC,oBCA3CD,EAAOC,QAAU,IAA0B,4C,oBCA3CD,EAAOC,QAAU,IAA0B,2C,oBCA3CD,EAAOC,QAAU,IAA0B,qC,oBCA3CD,EAAOC,QAAU,IAA0B,uC,oBCA3CD,EAAOC,QAAU,IAA0B,wC,oBCA3CD,EAAOC,QAAU,IAA0B,qC,oBCA3CD,EAAOC,QAAU,IAA0B,kD,oBCA3CD,EAAOC,QAAU,IAA0B,+C,40BCA3CD,EAAOC,QAAU,IAA0B,6C,oBCA3CD,EAAOC,QAAU,IAA0B,iD","file":"static/js/main.89c44f2c.chunk.js","sourcesContent":["import React from 'react';\n\nconst Forbidden = (): JSX.Element => {\n return (\n
\n \n 403 Forbidden\n

\n
\n );\n};\n\nexport default Forbidden;\n","import React from 'react';\nimport { Alert as AlertBase } from 'antd';\nimport { AlertProps } from 'antd/lib/alert';\n\nexport interface IAlertProps extends AlertProps {}\n\nconst Alert: React.FC = ({ ...props }) => {\n return ;\n};\n\nexport default Alert;\n","import Color from 'color';\n\nconst blackColor = Color.hsl('#000000');\nconst primaryColor = Color.hsl('#1747FF');\nconst primaryHoverColor = Color.hsl('#004EFF');\n\nexport const theme = {\n palettes: {\n primary: primaryColor.toString(),\n primary90: primaryColor.fade(0.1).toString(),\n primary80: primaryColor.fade(0.2).toString(),\n primaryHover: primaryHoverColor.fade(0.7).toString(),\n primaryText: '#070707',\n primaryBackground: '#FAFAFA',\n black: blackColor.toString(),\n black85: blackColor.fade(0.15).toString(),\n black60: blackColor.fade(0.4).toString(),\n black50: blackColor.fade(0.5).toString(),\n black45: blackColor.fade(0.55).toString(),\n black40: blackColor.fade(0.6).toString(),\n black30: blackColor.fade(0.7).toString(),\n black20: blackColor.fade(0.8).toString(),\n border: '#E5E5E5',\n white: '#FFFFFF',\n orange: '#FF6800',\n yellow: '#FFC92C',\n red: '#FF0000',\n pink: '#F00A7E',\n darkGrey: '#656565',\n grey: '#BEBEBE',\n grey97: '#00000008',\n lightGrayWhite: '#F0F2F5',\n pastelRed: '#FF8583',\n pastelBlue: '#008BDB',\n pastelGreen: '#17BFA5',\n pastelYellow: '#FFB12A',\n pickup: '#FFC92C',\n delivery: '#FE1918',\n lightBlueGray: '#E8EDFF',\n lightYellow: '#FBC02D',\n blue: '#004EFF',\n status: {\n created: '#4972FE',\n inProgress: '#7C4DFF',\n assigned: '#20BEAC',\n changeDriver: '#20BEAC',\n findingDriver: '#7C4DFF',\n findingNewDriver: '#7C4DFF',\n pickingUp: '#FBC02D',\n pickedUp: '#20BEAC',\n delivering: '#FBC02D',\n delivered: '#20BEAC',\n noDriver: '#F44336',\n changePickUpTime: '#4972FE',\n rejected: '#B0BEC5',\n cancelled: '#B0BEC5',\n failed: '#B0BEC5',\n received: '#4972FE',\n partiallyDelivered: '#20BEAC',\n unsuccessfullyDelivered: '#B0BEC5',\n driverRejected: '#B0BEC5',\n returnOrder: '#FBC02D',\n },\n documentsStatus: {\n draft: '#F5F5F5',\n waitingApprove: '#F0F5FF',\n approved: '#F6FFED',\n rejected: '#FFF1F0',\n expired: '#FFF1F0',\n },\n documentsStatusText: {\n draft: '#8C8C8C',\n waitingApprove: '#2F54EB',\n approved: '#52C41A',\n rejected: '#FF4D4F',\n },\n documentStatus: {\n pending: '#F0F0F0',\n submitted: '#F0F5FF',\n rejected: '#FFF1F0',\n approved: '#F6FFED',\n expired: '#FFF1F0',\n },\n documentStatusText: {\n pending: blackColor.fade(0.75).toString(),\n submitted: '#2F54EB',\n rejected: '#FF4D4F',\n approved: '#52C41A',\n expired: '#FF4D4F',\n },\n alert: {\n info: {\n border: '#91D5FF',\n background: '#E6F7FF',\n icon: '#1689f4',\n },\n error: {\n border: '#FFCCC7',\n background: '#FFF1F0',\n icon: '#FF4d50',\n },\n warning: {\n border: '#FFE58F',\n background: '#FFFBE6',\n icon: '#FBAD13',\n },\n },\n blackTextBold: '#222222',\n blackTextNormal: '#333333',\n disabledText: '#BBBBBB',\n whiteSmoke: '#F2F2F2',\n gray40: '#666666',\n lightViolet: '#7C4DFF',\n lightIndigo: '#4972FE',\n heather: '#B0BEC5',\n phoneText: '#666666',\n busyText: '#B0BEC5',\n redCircle: '#e80000',\n },\n border: {\n whitePrimary: '#F2F2F2',\n },\n fonts: {\n SFProDisplayBold: 'SF Pro Display Bold',\n SFProDisplayRegular: 'SF Pro Display Regular',\n SFProTextSemiBold: 'SF Pro Text Semibold',\n SFProTextRegular: 'SF Pro Text Regular',\n SFProTextMedium: 'SF Pro Text Medium',\n SFProTextBold: 'SF Pro Text Bold',\n NotoSands: 'Noto Sans',\n NotoSansTh: 'Noto Sans Thai',\n },\n fontSize: {\n xxxxs: '0.625rem', // 10 px\n xxxs: '0.75rem', // 12 px\n xxs: '0.8125rem', // 13 px\n xs: '0.875rem', // 14 px\n sm: '0.9375rem', // 15 px\n md: '1rem', // 16 px\n lg: '1.125rem', // 18 px\n xl: '1.25rem', // 20 px\n xxl: '1.5rem', // 24 px\n xxxl: '2.25rem', // 36 px\n },\n fontWeight: {\n regular: 400,\n medium: 500,\n bold: 700,\n },\n spacing: {\n xxxs: '1px',\n xxs: '2px',\n xs: '5px',\n sm: '10px',\n md: '15px',\n lg: '20px',\n xl: '25px',\n xxl: '30px',\n xxxl: '50px',\n xxxxl: '80px',\n },\n elementSize: {\n navbarDividerHeight: '30px',\n headerHeight: '50px',\n filterPanelHeight: '80px',\n navbarDriverPortalHeight: '64px',\n paginationHeight: '50px',\n tabHeight: '50px',\n tabPanelWidth: '160px',\n tabNotifyButtonWidth: '30px',\n tabNotifyButtonHeight: '25px',\n tabDividerHeight: '25px',\n siderWidth: '50px',\n subNavHeight: '50px',\n previewImageMaxWidth: '100%',\n previewImageMaxHeight: '100%',\n tagBorderRadius: '25px',\n },\n device: {\n mobileS: `(max-width: ${'320px'})`,\n mobileM: `(max-width: ${'375px'})`,\n mobileL: `(max-width: ${'425px'})`,\n tablet: `(max-width: ${'768px'})`,\n laptop: `(max-width: ${'1024px'})`,\n laptopL: `(max-width: ${'1440px'})`,\n desktop: `(max-width: ${'2560px'})`,\n desktopL: `(max-width: ${'2560px'})`,\n },\n zIndices: {\n infoWindowsMarker: 10,\n },\n};\n\ntype Theme = typeof theme;\n\nexport interface ThemeProps {\n theme: Theme;\n}\n","import React from 'react';\nimport { Button as ButtonBase } from 'antd';\nimport { ButtonProps } from 'antd/lib/button';\nimport styled from '@emotion/styled';\nimport { theme } from '../../configs/styled';\n\nexport interface IButtonProps extends ButtonProps {\n children?: React.ReactNode;\n}\n\nconst Button: React.FC = ({ children, ...props }) => {\n return {children};\n};\n\nexport default styled(Button)`\n &.ant-btn-primary:hover,\n &.ant-btn-primary:focus {\n color: ${theme.palettes.white};\n background-color: ${theme.palettes.primary80};\n border-color: ${theme.palettes.primary80};\n }\n border-radius: 2px;\n &.ant-btn-primary {\n color: ${theme.palettes.white};\n background-color: ${theme.palettes.primary};\n border-color: ${theme.palettes.primary};\n }\n`;\n","import React from 'react';\nimport { Col as ColBase } from 'antd';\nimport { ColProps } from 'antd/lib/col';\n\nexport interface IColProp extends ColProps {\n children?: React.ReactNode;\n}\n\nconst Col: React.FC = ({ children, ...props }) => {\n return {children};\n};\n\nexport default Col;\n","import React from 'react';\nimport { Divider as DividerBase } from 'antd';\nimport { DividerProps } from 'antd/lib/divider';\n\nexport interface IDividerProps extends DividerProps {\n children?: React.ReactNode;\n}\n\nconst Divider: React.FC = ({ children, ...props }) => {\n return {children};\n};\n\nexport default Divider;\n","import React from 'react';\nimport { Form } from 'antd';\nimport { FormItemProps } from 'antd/lib/form';\n\nexport interface IFormProps extends FormItemProps {}\n\nconst FormItem: React.FC = ({ children, ...props }) => {\n return {children};\n};\n\nexport default FormItem;\n","import { ErrorMessage } from 'formik';\nimport React from 'react';\nimport { Alert } from '../Alert';\nimport { theme } from '../../configs/styled';\n\nexport interface IFromErrorMessageProps {\n name: string;\n marginTop?: string;\n alertType?: 'success' | 'info' | 'warning' | 'error' | undefined;\n}\n\nconst FormErrorMessage: React.FC = ({\n name,\n marginTop,\n alertType,\n}) => {\n return (\n (\n \n )}\n name={name}\n />\n );\n};\n\nFormErrorMessage.defaultProps = {\n marginTop: theme.spacing.lg,\n alertType: 'error',\n};\n\nexport default FormErrorMessage;\n","import React from 'react';\nimport { Input as InputBase } from 'antd';\nimport { InputProps } from 'antd/lib/input';\nimport styled from '@emotion/styled';\n\nexport interface IInputProps extends InputProps {\n style?: React.CSSProperties;\n}\n\nconst Input: React.FC = ({ style, ...props }) => {\n return ;\n};\n\nexport default styled(Input)`\n &.ant-input {\n border-radius: 2px;\n }\n`;\n","import React from 'react';\nimport { Input } from 'antd';\nimport { InputProps } from 'antd/lib/input';\nimport styled from '@emotion/styled';\n\nexport interface IPasswordProps extends InputProps {\n style?: React.CSSProperties;\n}\n\nconst Password: React.FC = ({ style, ...props }) => {\n return ;\n};\n\nexport default styled(Password)`\n &.ant-input-affix-wrapper {\n border-radius: 2px;\n }\n`;\n","import React from 'react';\nimport { Input } from 'antd';\nimport { InputProps } from 'antd/lib/input';\nimport styled from '@emotion/styled';\n\nexport interface ISearchProps extends InputProps {}\n\nconst Search: React.FC = ({ ...props }) => {\n return ;\n};\n\nexport default styled(Search)``;\n","import React from 'react';\nimport { Layout } from 'antd';\nimport { LayoutProps } from 'antd/lib/layout';\n\nconst HeaderBase = Layout.Header;\n\nexport interface ILayoutProps extends LayoutProps {}\n\nconst Header: React.FC = ({ children, ...props }) => {\n return {children};\n};\n\nexport default Header;\n","import React from 'react';\nimport { Layout } from 'antd';\nimport { SiderProps } from 'antd/lib/layout/Sider';\n\nconst SiderBase = Layout.Sider;\n\nexport interface ISiderProps extends SiderProps {}\n\nconst Sider: React.FC = ({ children, ...props }) => {\n return {children};\n};\n\nexport default Sider;\n","import React from 'react';\nimport { Layout } from 'antd';\nimport { LayoutProps } from 'antd/lib/layout';\nimport styled from '@emotion/styled';\nimport { theme } from '../../configs/styled';\n\nconst ContentBase = Layout.Content;\n\nexport interface ILayoutProps extends LayoutProps {}\n\nconst Content: React.FC = ({ children, ...props }) => {\n return {children};\n};\n\nexport default styled(Content)`\n background-color: ${theme.palettes.primaryBackground};\n padding: ${theme.spacing.xl};\n margin: 0;\n height: 100vh;\n`;\n","import React from 'react';\nimport { Pagination as PaginationAntd } from 'antd';\nimport { PaginationProps } from 'antd/lib/pagination';\nimport styled from '@emotion/styled';\nimport { theme } from '../../configs/styled';\n\nexport interface IPaginationProps extends PaginationProps {}\n\nconst PaginationBase = styled(PaginationAntd)`\n outline: none;\n .ant-pagination-item {\n border-radius: 1px;\n color: gray !important;\n width: ${theme.spacing.xxl};\n height: ${theme.spacing.xxl};\n border: none;\n z-index: 100;\n a {\n color: grey;\n }\n &:hover {\n background-color: ${theme.palettes.primaryHover};\n }\n &:hover > a {\n color: ${theme.palettes.primary};\n }\n }\n .ant-pagination-item-active {\n background-color: ${theme.palettes.primary};\n &:hover {\n background-color: ${theme.palettes.primary};\n }\n & > a {\n color: ${theme.palettes.white} !important;\n }\n }\n .ant-pagination-item-link {\n border: none;\n color: gray;\n }\n color: gray;\n font-size: 13px;\n`;\n\nconst Pagination: React.FC = ({ ...props }) => {\n return ;\n};\n\nexport default React.memo(Pagination);\n","import React from 'react';\nimport { Row as RowBase } from 'antd';\nimport { RowProps } from 'antd/lib/row';\n\nexport interface IRowProp extends RowProps {\n children?: React.ReactNode;\n}\n\nconst Row: React.FC = ({ children, ...props }) => {\n return {children};\n};\n\nexport default Row;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { Select as SelectBase } from 'antd';\nimport { SelectProps } from 'antd/lib/select';\nimport { theme } from 'configs/styled';\nimport React from 'react';\n\nexport interface ISelectOptionProps {\n title: string;\n value: string | number;\n disabled?: boolean;\n className?: string;\n style?: React.CSSProperties;\n}\n\nexport interface ISelectProps extends SelectProps {\n options: ISelectOptionProps[];\n icon?: React.ReactNode;\n fontFamily?: string;\n}\n\nconst Select: React.FC = ({\n fontFamily = theme.fonts.NotoSansTh,\n options,\n ...props\n}) => {\n return (\n \n {options.map((option, idx) => {\n const { title, value, style, disabled, ...rest } = option;\n let color = theme.palettes.black85;\n if (disabled) {\n color = theme.palettes.black40;\n }\n\n return (\n \n {title}\n {props.value === value && props.icon}\n \n );\n })}\n \n );\n};\n\nexport default Select;\n","import React from 'react';\nimport { Spin as SpinBase } from 'antd';\nimport { SpinProps } from 'antd/lib/spin';\n\nexport interface ISpinProps extends SpinProps {\n children?: React.ReactNode;\n}\n\nconst Spin: React.FC = ({ children, ...props }) => {\n return {children};\n};\n\nexport default Spin;\n","import React from 'react';\nimport { Typography } from 'antd';\nimport { TitleProps } from 'antd/lib/typography/Title';\nimport styled from '@emotion/styled';\n\nexport interface ITitlePropsProps extends TitleProps {}\n\nconst Title: React.FC = ({ ...props }) => {\n return ;\n};\n\nexport default styled(Title)``;\n","import React from 'react';\nimport { Typography } from 'antd';\nimport { ParagraphProps } from 'antd/lib/typography/Paragraph';\nimport styled from '@emotion/styled';\n\nexport interface IParagraphPropsProps extends ParagraphProps {}\n\nconst Paragraph: React.FC = ({ ...props }) => {\n return ;\n};\n\nexport default styled(Paragraph)``;\n","import React from 'react';\nimport { Typography } from 'antd';\nimport { TextProps } from 'antd/lib/typography/Text';\nimport styled from '@emotion/styled';\n\nexport interface ITextPropsProps extends TextProps {}\n\nconst Text: React.FC = ({ ...props }) => {\n return ;\n};\n\nexport default styled(Text)``;\n","import styled from '@emotion/styled';\nimport React from 'react';\nimport { RiRefreshLine } from 'react-icons/ri';\nimport { theme } from '../../configs/styled';\nimport { Col } from '../Col';\nimport { Divider } from '../Divider';\nimport { Pagination } from '../Pagination';\nimport { Row } from '../Row';\nimport { Select } from '../Select';\nimport { ISelectOptionProps } from '../Select/Select';\nimport { Text } from '../Typography';\n\nconst TableFooterBase = styled(Row)`\n min-height: ${theme.elementSize.paginationHeight};\n border-top: 1px solid ${theme.palettes.border};\n`;\n\nconst pageOptions: ISelectOptionProps[] = [\n { title: '10', value: '10' },\n { title: '20', value: '20' },\n { title: '50', value: '50' },\n];\n\nexport interface ITableFooterProps {\n total: number;\n page: number;\n limit: number;\n onPageChange?: (page: number, pageSize?: number | undefined) => void;\n onClickRefresh?: (event: React.MouseEvent) => void;\n onLimitPageChange?: (value: number) => void;\n}\n\nconst TableFooter: React.FC = ({\n total,\n page,\n limit,\n onPageChange,\n onClickRefresh,\n onLimitPageChange,\n}) => {\n return (\n \n \n Rows per page:\n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default TableFooter;\n","import styled from '@emotion/styled';\nimport { theme } from 'configs/styled';\n\nexport const StyledLabel = styled('div')`\n span {\n color: ${props => props.color};\n }\n .normal {\n font-size: ${theme.fontSize.xs};\n }\n .large {\n font-size: ${theme.fontSize.md};\n }\n .small {\n font-size: ${theme.fontSize.xxxs};\n }\n`;\n","import React, { forwardRef } from 'react';\nimport { StyledLabel } from './Label.style';\nimport { ILabelProps } from './Label.type';\nimport { Typography } from 'antd';\nimport { theme } from 'configs/styled';\n\nconst Label = forwardRef(function Label(\n {\n fontSize = 'normal',\n color = theme.palettes.blackTextBold,\n bold = false,\n text = '',\n ...props\n },\n ref,\n) {\n return (\n \n \n {text}\n \n \n );\n});\n\nexport default Label;\n","import styled from '@emotion/styled';\nimport { theme } from 'configs/styled';\n\nexport const StyledTag = styled('div')`\n .white {\n background: ${theme.palettes.white};\n }\n .base-tag {\n margin: 0;\n border: none;\n border-radius: 100px;\n padding: 2px 9px;\n }\n .click-able {\n cursor: pointer;\n }\n .primary {\n background: ${theme.palettes.lightViolet};\n }\n .secondary {\n background: ${theme.palettes.heather};\n }\n .info {\n background: ${theme.palettes.lightIndigo};\n }\n .warning {\n background: ${theme.palettes.lightYellow};\n }\n`;\n","import React from 'react';\nimport { Row, Text } from 'components';\nimport { theme } from 'configs/styled';\n\nconst Banner = () => {\n return (\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n สมัครเป็นคนขับกับ ALL NOW รับงานง่าย รับเงินง่าย\n \n \n
\n );\n};\n\nexport default Banner;\n","import React, { forwardRef } from 'react';\nimport { StyledTag } from './Tag.style';\nimport { ITagProps } from './Tag.type';\nimport { Tag as TagBase } from 'antd';\n\nconst Tag = forwardRef(function Tag(\n { color = 'white', clickAble = false, ...props },\n ref,\n) {\n return (\n \n \n {props.children}\n \n \n );\n});\n\nexport default Tag;\n","import { Col, Row } from 'antd';\nimport { theme } from 'configs/styled';\nimport React from 'react';\n\nexport interface IDriverPortalLayout {}\n\nconst DriverPortalLayout: React.FC = props => {\n const { children } = props;\n\n return (\n <>\n \n \n \n {children}\n \n \n \n \n );\n};\n\nexport default DriverPortalLayout;\n","import { useEffect, useCallback } from 'react';\n\nexport interface ILocalStorageSignup {\n provinceName: string;\n vehicleType: string;\n firstname: string;\n lastname: string;\n citizenId: string;\n phone: string;\n referrerCode: string;\n isAcceptedTerm: boolean;\n byPassLogin: boolean;\n otpRefCode: string;\n expiredAt: string;\n otpDigit: number;\n vendorName: string;\n}\n\ntype IGetValueSignupKey = keyof ILocalStorageSignup;\n\nconst initialState = {\n provinceName: '',\n vehicleType: '',\n firstname: '',\n lastname: '',\n citizenId: '',\n phone: '',\n referrerCode: '',\n isAcceptedTerm: true,\n byPassLogin: true,\n otpRefCode: '',\n expiredAt: '',\n otpDigit: 6,\n vendorName: '',\n};\n\nconst signupKey = 'signup';\n\nfunction getLocalStorageSignup() {\n const localStorageSignup = localStorage.getItem(signupKey);\n if (!localStorageSignup) return null;\n return JSON.parse(localStorageSignup) as ILocalStorageSignup;\n}\n\nfunction setLocalStorageSignup(signup: ILocalStorageSignup) {\n const prvLocalStorageSignup = getLocalStorageSignup();\n if (prvLocalStorageSignup) {\n const nextLocalStorageSignup = { ...prvLocalStorageSignup, ...signup };\n localStorage.setItem(signupKey, JSON.stringify(nextLocalStorageSignup));\n } else {\n localStorage.setItem(signupKey, JSON.stringify(signup));\n }\n return getLocalStorageSignup();\n}\n\nfunction clearLocalStorageSignup() {\n localStorage.removeItem(signupKey);\n}\n\nexport function useLocalStorageSignup() {\n useEffect(() => {\n const localStorageSignup = getLocalStorageSignup();\n if (!localStorageSignup) {\n setLocalStorageSignup(initialState);\n }\n }, []);\n\n const setValues = useCallback((signup: ILocalStorageSignup) => {\n const _signup = setLocalStorageSignup(signup);\n return _signup;\n }, []);\n\n const getValue = useCallback((key: K) => {\n const signup = getLocalStorageSignup();\n if (signup) {\n return signup[key] as ILocalStorageSignup[K];\n }\n return null;\n }, []);\n\n const getValues = useCallback(() => {\n const signup = getLocalStorageSignup();\n return signup;\n }, []);\n\n const clearValues = useCallback(() => {\n clearLocalStorageSignup();\n }, []);\n\n return {\n getValues,\n getValue,\n setValues,\n clearValues,\n };\n}\n","import { useState, useEffect } from 'react';\n\nconst initBeforeUnLoad = (showExitPrompt: boolean) => {\n window.onbeforeunload = (event: BeforeUnloadEvent) => {\n if (showExitPrompt) {\n const e = event || window.event;\n e.preventDefault();\n if (e) {\n e.returnValue = '';\n }\n return '';\n }\n };\n};\n\nfunction usePrompt(isDetectedAction = false) {\n const [showPrompt, setShowPrompt] = useState(isDetectedAction);\n\n window.onload = function () {\n initBeforeUnLoad(showPrompt);\n };\n\n useEffect(() => {\n initBeforeUnLoad(showPrompt);\n }, [showPrompt]);\n\n return [showPrompt, setShowPrompt] as const;\n}\n\nexport default usePrompt;\n","import { useHistory, useRouteMatch, useLocation } from 'react-router-dom';\n\nexport const useQueryParams = () => {\n const history = useHistory();\n const { path, params } = useRouteMatch();\n const location = useLocation();\n const search = location.search;\n\n const updateParams = (updatedParams: any) => {\n Object.assign(params, updatedParams);\n history.push({\n pathname: path,\n search: `?${new URLSearchParams(params)}`,\n });\n };\n const pushUrl = (url: string, search: any) => {\n history.push({\n pathname: url,\n search: search,\n });\n };\n\n const useQueryString = () => {\n return new URLSearchParams(search);\n };\n\n return { updateParams, pushUrl, useQueryString, search };\n};\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport axios, {\n AxiosInstance,\n AxiosRequestConfig,\n AxiosResponse,\n Method,\n} from 'axios';\n\nexport interface IConfig {\n baseURL?: string;\n headers?: any;\n notFoundAsNull?: boolean;\n}\n\nexport interface IRequest extends AxiosRequestConfig {\n url?: string;\n method?: Method;\n headers?: any;\n params?: Params;\n data?: any;\n}\n\nexport interface IRestClient {\n request(request: IRequest): Promise;\n get(url: string, request: IRequest): Promise;\n post(url: string, request: IRequest): Promise;\n put(url: string, request: IRequest): Promise;\n delete(url: string, request: IRequest): Promise;\n}\n\nexport type Params = { [key: string]: string | number | boolean };\n\nexport class ResponseError extends Error {\n status?: number;\n statusText?: string;\n data?: any;\n headers?: any;\n request?: AxiosRequestConfig;\n\n constructor(\n request: AxiosRequestConfig,\n status: number,\n statusText?: string,\n headers?: any,\n data?: any,\n ) {\n super(`${status} ${statusText}`);\n this.status = status;\n this.statusText = statusText;\n this.headers = headers;\n this.data = data;\n this.request = request;\n }\n}\n\nexport class RequestError extends Error {\n message: string;\n request: AxiosRequestConfig;\n\n constructor(request: AxiosRequestConfig, message: string) {\n super(message);\n this.message = message;\n this.request = request;\n }\n}\n\nfunction handleError(error: any, config: IConfig = {}) {\n if (error.response) {\n if (error.response.status === 404 && config.notFoundAsNull === true) {\n return Promise.reject(null);\n }\n\n // The request was made and the server responded with a status code\n // that falls out of the range of 2xx\n const { status, statusText, headers, data } = error.response;\n\n return Promise.reject(\n new ResponseError(config, status, statusText, headers, data),\n );\n } else if (error.request) {\n // The request was made but no response was received\n // `error.request` is an instance of XMLHttpRequest in the browser and an instance of\n // http.ClientRequest in node.js\n const { message } = error;\n return Promise.reject(new RequestError(error.config, message));\n }\n\n return Promise.reject(error);\n}\n\nfunction handleResponse(response: AxiosResponse) {\n return response.data;\n}\n\nexport class RestClient implements IRestClient {\n private axios: AxiosInstance;\n\n constructor(private config?: IConfig) {\n this.axios = axios.create(config);\n this.config = config;\n }\n\n request(request: IRequest): Promise {\n const config: AxiosRequestConfig = {\n ...request,\n timeout: 30000,\n };\n\n return this.axios\n .request(config)\n .then((response: AxiosResponse) => handleResponse(response))\n .catch((error: any) => handleError(error, this.config));\n }\n\n get(url: string, request: IRequest = {}) {\n return this.request({\n method: 'GET',\n url,\n ...request,\n });\n }\n\n post(url: string, request: IRequest = {}) {\n return this.request({\n method: 'POST',\n url,\n ...request,\n });\n }\n\n put(url: string, request: IRequest = {}) {\n return this.request({\n method: 'PUT',\n url,\n ...request,\n });\n }\n\n delete(url: string, request: IRequest = {}) {\n return this.request({\n method: 'DELETE',\n url,\n ...request,\n });\n }\n}\n","import { IRestClient, RestClient } from 'services/clients/RestClient';\nimport { IAddressResponse } from './Address.interface';\nimport { IStoreResponse } from './Store.interface';\n\nconst baseURL = process.env.REACT_APP_ADDRESS_AND_ZONING_BASE_URL || '';\nconst apiKey = process.env.REACT_APP_DRIVER_PORTAL_API_KEY || '';\nconst apiKeyALLNOW = process.env.REACT_APP_DRIVER_PORTAL_ALL_NOW_KEY || '';\n\nexport class AddressService {\n private restClient: IRestClient;\n\n constructor() {\n this.restClient = new RestClient({\n baseURL,\n });\n }\n\n private buildHeaders() {\n return { 'x-api-key': apiKey };\n }\n\n private buildHeadersALLNOW() {\n return { 'x-api-key': apiKeyALLNOW };\n }\n\n async provinces(): Promise {\n const path = '/v1/administrativeAreaLevel1s';\n const headers = this.buildHeaders();\n const response: IAddressResponse = await this.restClient.get(path, {\n params: {\n limit: 100,\n select: 'name.TH',\n sort: '{\"name.TH\":1}',\n },\n headers,\n });\n return response;\n }\n\n async districts(request: any): Promise {\n const path = '/v1/sublocalityLevel1s';\n const headers = this.buildHeaders();\n const response: IAddressResponse = await this.restClient.get(path, {\n params: {\n search: request,\n limit: 100,\n select: 'name.TH',\n sort: '{\"name.TH\":1}',\n },\n headers,\n });\n return response;\n }\n\n async subDistricts(request: any): Promise {\n const path = '/v1/sublocalityLevel2s';\n const headers = this.buildHeaders();\n const response: IAddressResponse = await this.restClient.get(path, {\n params: {\n search: request,\n limit: 300,\n select: 'name.TH postCode',\n sort: '{\"name.TH\":1}',\n },\n headers,\n });\n return response;\n }\n\n async getStore(request: any): Promise {\n const path = '/v1/store';\n const headers = this.buildHeadersALLNOW();\n const response: IStoreResponse[] = await this.restClient.get(path, {\n params: {\n search: request,\n },\n headers,\n });\n return response;\n }\n}\n","import { Action } from 'react-fetching-library';\nimport { IRestClient, RestClient } from 'services/clients/RestClient';\nimport { IRequestHeader } from 'services/driverPortal/AuthenticationService.interface';\nimport { authenticationService } from '.';\nimport { IUpdateExpireDateRequest } from './DriverPortal.interface';\nimport { IUploadFileResponse } from './Upload.interface';\n\nclass NotFound extends Error {}\n\nconst baseURL = process.env.REACT_APP_API_BASE_URL || '';\nconst apiKey = process.env.REACT_APP_DRIVER_PORTAL_API_KEY || '';\n\nexport class UploadService {\n private restClient: IRestClient;\n constructor() {\n this.restClient = new RestClient({\n baseURL,\n });\n }\n\n private buildRequestHeaders(req: IRequestHeader) {\n return {\n Authorization: req?.authorization,\n 'x-api-key': req?.apiKey,\n };\n }\n\n async getFile(path: string): Promise {\n if (!path) throw new NotFound(`${path} not found`);\n\n const response = (await this.restClient.request({\n method: 'GET',\n url: `/driver/portal/v1/ondemand/drivers/file${path}`,\n headers: this.buildRequestHeaders({\n apiKey,\n authorization: authenticationService.getAccessToken(),\n }),\n responseType: 'blob',\n })) as Blob;\n\n return URL.createObjectURL(response);\n }\n\n async uploadFile(request: FormData) {\n const path = '/v3/file-service/upload';\n return this.restClient.post(path, {\n data: request,\n headers: this.buildRequestHeaders({\n apiKey,\n }),\n });\n }\n\n updateExpireDateFile = (\n updateExpireDate: IUpdateExpireDateRequest,\n ): Action => {\n const { fileId, expireDate } = updateExpireDate;\n return {\n method: 'PUT',\n endpoint: `/v3/file-service/upload/${fileId}`,\n body: { expireDate },\n };\n };\n}\n","import { AddressService } from './AddressService';\nimport { AuthenticationService } from './AuthenticationService';\nimport { UploadService } from './UploadService';\n\nexport const authenticationService = new AuthenticationService();\n\nexport const addressService = new AddressService();\n\nexport const uploadService = new UploadService();\n","import axios from 'axios';\nimport { IRestClient, RestClient } from 'services/clients/RestClient';\nimport {\n GetVendorRequest,\n ILinkGoogleResponse,\n ILoginResponse,\n ILoginVerifyRequest,\n ILoginWithPhoneRequest,\n IOTPRequest,\n IOTPResponse,\n IRequestHeader,\n ISignUpRequest,\n ISignUpVerifyRequest,\n IVendorResponse,\n} from 'services/driverPortal/AuthenticationService.interface';\n\nconst baseURL = process.env.REACT_APP_DRIVER_PORTAL_BASE_URL || '';\nconst apiKey = process.env.REACT_APP_DRIVER_PORTAL_API_KEY || '';\nconst projectId = process.env.REACT_APP_DRIVER_PORTAL_ALL_NOW_PROJECT_ID || '';\nconst companyId = process.env.REACT_APP_DRIVER_PORTAL_ALL_NOW_COMPANY_ID || '';\n\nexport class AuthenticationService {\n private restClient: IRestClient;\n private accessTokenName = 'driver-portal-access-token';\n private refreshTokenName = 'driver-portal-refresh-token';\n private googleLinkedName = 'driver-portal-google-linked';\n private userId = 'driver-portal-user-id';\n\n constructor() {\n this.restClient = new RestClient({\n baseURL,\n });\n }\n\n private getToken(name: string) {\n const token = localStorage.getItem(name);\n return token;\n }\n\n private setToken(name: string, token: string) {\n localStorage.setItem(name, token);\n }\n\n private removeToken(name: string) {\n localStorage.removeItem(name);\n }\n\n private buildRequestHeaders(req: IRequestHeader) {\n return {\n Authorization: req?.authorization,\n 'x-api-key': req?.apiKey,\n 'project-id': req?.projectId,\n 'company-id': req?.companyId,\n 'id-token': req?.idToken,\n };\n }\n\n getUserToken() {\n return {\n userId: this.getToken(this.userId) || '',\n accessToken: this.getToken(this.accessTokenName) || '',\n };\n }\n\n getUserId() {\n return this.getToken(this.userId);\n }\n\n getAccessToken() {\n return this.getToken(this.accessTokenName);\n }\n\n hasAccessToken() {\n return Boolean(this.getToken(this.accessTokenName));\n }\n\n hasGoogleLinked() {\n return Boolean(this.getToken(this.googleLinkedName));\n }\n\n async login(request: T) {\n const path = '/v1/ondemand/drivers/login';\n const response = await this.restClient.post(path, {\n data: request,\n headers: this.buildRequestHeaders({ apiKey }),\n });\n\n //set access token\n const { token, refreshToken, googleId, userId } = response?.data;\n this.setToken(this.accessTokenName, token);\n this.setToken(this.refreshTokenName, refreshToken);\n this.setToken(this.userId, userId);\n googleId && this.setToken(this.googleLinkedName, 'LINKED');\n return response;\n }\n\n async loginVerify(request: ILoginVerifyRequest) {\n const path = '/v1/ondemand/drivers/login/verify';\n return this.restClient.post(path, {\n data: request,\n headers: this.buildRequestHeaders({ apiKey }),\n });\n }\n\n async signup(request: ISignUpRequest) {\n const path = '/v1/ondemand/drivers/signup';\n const response = await this.restClient.post(path, {\n data: request,\n headers: this.buildRequestHeaders({\n apiKey,\n companyId,\n projectId,\n }),\n });\n\n //set access token\n const { token, refreshToken, userId } = response?.data;\n this.setToken(this.accessTokenName, token);\n this.setToken(this.refreshTokenName, refreshToken);\n this.setToken(this.userId, userId);\n\n return response;\n }\n\n async signupVerify(request: ISignUpVerifyRequest) {\n const path = '/v1/ondemand/drivers/signup/verify';\n return this.restClient.post(path, {\n data: request,\n headers: this.buildRequestHeaders({\n apiKey,\n companyId,\n projectId,\n }),\n });\n }\n\n async vendorVerify(request: GetVendorRequest) {\n const path = '/v1/ondemand/drivers/vendor';\n try {\n const response = await this.restClient.post(path, {\n data: request,\n headers: this.buildRequestHeaders({\n apiKey,\n companyId,\n projectId,\n }),\n });\n\n return response;\n } catch (error) {\n return null;\n }\n }\n\n async logout() {\n try {\n const path = '/v1/ondemand/drivers/logout';\n const response = await this.restClient.post(path, {\n headers: this.buildRequestHeaders({\n apiKey,\n authorization: this.getToken(this.accessTokenName),\n }),\n });\n return response;\n } catch (error) {\n } finally {\n // remove tokens\n this.removeToken(this.accessTokenName);\n this.removeToken(this.refreshTokenName);\n this.removeToken(this.googleLinkedName);\n this.removeToken(this.userId);\n }\n }\n\n async requestOTP(request: IOTPRequest) {\n const path = '/v1/ondemand/drivers/otp';\n return this.restClient.post(path, {\n data: request,\n headers: this.buildRequestHeaders({ apiKey }),\n });\n }\n\n async linkGoogle(idToken: string) {\n const path = '/v1/ondemand/drivers/google/link';\n const response = await this.restClient.post(path, {\n headers: this.buildRequestHeaders({\n apiKey,\n authorization: this.getToken(this.accessTokenName),\n idToken,\n }),\n });\n\n const { googleId } = response?.data;\n googleId && this.setToken(this.googleLinkedName, 'LINKED');\n\n return response;\n }\n\n async revokeGoogle(accessToken: string) {\n const path = 'https://accounts.google.com/o/oauth2/revoke';\n return await axios.post(path, {\n token: accessToken,\n });\n }\n}\n","import { message } from 'antd';\nimport { parseIt } from './dotObjectExpander';\n\nexport interface DefaultError {\n title?: string;\n message?: string;\n}\n\ninterface ValidationError {\n fieldName: string;\n reason: string;\n errorCodes: string[];\n}\n\nexport interface IResponseError {\n data: { error: DefaultError; errors: ValidationError[] };\n}\n\nexport interface IErrors {\n [key: string]: any;\n}\n\nexport interface IMutationResponseError {\n error?: DefaultError;\n errors?: ValidationError[];\n}\n\nexport interface IError {\n isValidationError?: boolean;\n error?: DefaultError;\n errors: IErrors;\n}\n\nfunction mapValidationError(errors: ValidationError[] = []) {\n const _errors: IErrors = {};\n\n for (const error of errors) {\n _errors[error.fieldName] = error.reason;\n }\n\n return parseIt(_errors);\n}\n\nfunction defaultError(error?: DefaultError) {\n if (error?.message === 'INVALID_TOKEN') {\n return { message: 'เซสชั่นหมดอายุ กรุณาเข้าสู่ระบบใหม่อีกครั้ง' };\n }\n if (!error) {\n return { message: 'ขออภัย เกิดข้อผิดพลาดบางประการ กรุณาลองใหม่อีกครั้ง' };\n }\n\n return Object.assign(\n { message: 'ขออภัย เกิดข้อผิดพลาดบางประการ กรุณาลองใหม่อีกครั้ง' },\n error,\n );\n}\n\nexport function transformResponseError(responseError: IResponseError): IError {\n const { error, errors } = responseError?.data;\n const isValidationError = errors.length > 0;\n\n const _error = defaultError(error);\n\n if (!isValidationError) {\n message.error(_error.message);\n }\n\n return {\n isValidationError,\n error: _error,\n errors: mapValidationError(errors),\n };\n}\n\nexport function transformMutationResponseError(\n responseError: IMutationResponseError,\n): IError {\n const { error, errors } = responseError;\n\n const isValidationError = errors && errors.length > 0;\n\n const _error = defaultError(error);\n\n if (!isValidationError) {\n message.error(_error.message);\n }\n\n return {\n isValidationError,\n error: _error,\n errors: mapValidationError(errors),\n };\n}\n","import dot from 'dot-object';\n\nexport function parseIt(obj: any) {\n // NULL and undefined check\n if ([undefined, null].includes(obj)) {\n return obj;\n }\n\n // Check for circular reference\n let parsed;\n try {\n parsed = JSON.parse(JSON.stringify(obj));\n } catch (e) {\n throw new Error('Cannot parse object with circular reference');\n }\n\n // Process dotted keys at top-level\n try {\n parsed = dot.object(parsed);\n } catch (e) {\n throw new Error(`dotObject threw a parsing error: ${e.message}`);\n }\n\n // Find child objects\n for (const [key, value] of Object.entries(parsed)) {\n // Process an object recursively\n if (typeof value === 'object') {\n (parsed as any)[key] = parseIt(value);\n }\n }\n\n return parsed;\n}\n","import { Spin } from 'components';\nimport React from 'react';\n\nconst SelectLoading = () => {\n return (\n \n \n \n );\n};\n\nexport default SelectLoading;\n","import React from 'react';\n\nexport interface InputCheckBoxProp {\n name: string;\n text: string;\n checked?: boolean;\n onChecked: (it: any) => void;\n disabled?: boolean;\n}\n\nconst InputCheckBox = ({\n name,\n text,\n checked,\n onChecked,\n disabled = false,\n}: InputCheckBoxProp) => {\n return (\n <>\n \n \n \n {text}\n \n \n
\n \n );\n};\n\nexport default InputCheckBox;\n","import { Spin } from 'antd';\nimport React from 'react';\n\nconst Loading = () => {\n return (\n
\n \n
\n );\n};\n\nexport default Loading;\n","import {\n CloseCircleFilled,\n ExclamationCircleFilled,\n InfoCircleFilled,\n} from '@ant-design/icons';\nimport { theme } from 'configs/styled';\nimport React from 'react';\n\nexport interface IAlert {\n type: 'info' | 'warning' | 'error';\n message?: string;\n title?: string;\n bulletLists?: string[];\n style?: React.CSSProperties;\n}\n\nconst alertType = {\n info: {\n style: {\n border: `1px solid ${theme.palettes.alert.info.border}`,\n backgroundColor: theme.palettes.alert.info.background,\n },\n icon: (\n \n ),\n },\n error: {\n style: {\n border: `1px solid ${theme.palettes.alert.error.border}`,\n backgroundColor: theme.palettes.alert.error.background,\n },\n icon: (\n \n ),\n },\n warning: {\n style: {\n border: `1px solid ${theme.palettes.alert.warning.border}`,\n backgroundColor: theme.palettes.alert.warning.background,\n },\n icon: (\n \n ),\n },\n};\n\nconst BulletList: React.FC<{ items: string[] }> = ({ items }) => {\n return (\n
    \n {items.map((message: string, index: number) => {\n return
  • {message}
  • ;\n })}\n
\n );\n};\n\nconst Alert: React.FC = props => {\n const { type, message, title, bulletLists, style } = props;\n const alert = alertType[type];\n\n return (\n \n \n {alert.icon}\n \n
\n {title &&

{title}

}\n {message &&

{message}

}\n {bulletLists && }\n
\n \n );\n};\n\nAlert.defaultProps = {\n message: '',\n};\n\nexport default Alert;\n","import { IError } from 'utils/transformResponseError';\n\nexport enum APPROVE_STATUS {\n DRAFT = 'draft',\n WAITING_APPROVE = 'waiting_approve',\n APPROVED = 'approved',\n REJECTED = 'rejected',\n TERMINATED = 'terminated',\n}\n\nexport enum DOCUMENTS_STATUSES {\n PENDING = 'pending',\n INCOMPLETE = 'incomplete',\n COMPLETED = 'completed',\n}\n\nexport enum MENU_STATUSES {\n PENDING = 'ยังไม่ได้ส่ง',\n SUBMITTED = 'ส่งแล้ว',\n REJECTED = 'แก้ไขข้อมูล',\n APPROVED = 'อนุมัติ',\n EXPIRED = 'หมดอายุ',\n}\n\nexport enum RIDER_TYPE {\n LOTUS = 'LOTUS',\n CPALL = 'CPALL',\n}\n\nexport interface IDriverDocumentsReview {\n approveStatus: APPROVE_STATUS;\n documents: IDocument[];\n documentsStatus: DOCUMENTS_STATUSES;\n documentsReviewStatus: IDocumentsReviewStatus;\n documentReviewStatus: IDocumentReviewStatus;\n}\n\nexport interface IMainResponse {\n data: IDriverDocumentsReview;\n}\n\nexport interface IUpdateReviewStatusRequest {\n status: APPROVE_STATUS;\n}\n\nexport interface IUpdateReviewStatusResponse {}\n\nexport interface IDocument {\n status: string;\n title: string;\n code: string;\n required: boolean;\n path: string;\n}\n\nexport interface IDocumentsReviewStatus {\n status: string;\n message?: string;\n}\n\nexport interface IDocumentReviewStatus {\n status: string;\n message?: string;\n}\n\nexport enum DocumentReviewStatus {\n INCOMPLETE = 'INCOMPLETE',\n PENDING = 'PENDING',\n COMPLETED = 'COMPLETED',\n}\ninterface IDocumentImage {\n image: string;\n createdAt: string;\n isAllowConsent?: boolean;\n}\n\ninterface IBookBankData {\n status: DocumentReviewStatus;\n rejectReasonCode: string;\n document: IDocumentImage;\n accountNumber: string;\n name: string;\n branch: string;\n accountName: string;\n accountType: string;\n note: string;\n createdAt: string;\n updatedAt: string;\n documentsReviewStatus: IDocumentsReviewStatus;\n documentReviewStatus: IDocumentReviewStatus;\n editedBy: string;\n approveStatus: APPROVE_STATUS;\n}\n\nexport interface IBookBankResponse {\n data: IBookBankData;\n}\n\ninterface IVaccinationCertificateData {\n status: DocumentReviewStatus;\n rejectReasonCode: string;\n document: IDocumentImage;\n dose: string;\n note: string;\n createdAt: string;\n updatedAt: string;\n documentsReviewStatus: IDocumentsReviewStatus;\n documentReviewStatus: IDocumentReviewStatus;\n editedBy: string;\n name: string;\n approveStatus: APPROVE_STATUS;\n}\n\nexport interface IVaccinationCertificateResponse {\n data: IVaccinationCertificateData;\n}\n\ninterface IOnlineTrainingData {\n status: DocumentReviewStatus;\n trainingVideo: string;\n quiz: string;\n note: string;\n createdAt: string;\n updatedAt: string;\n documentsReviewStatus: IDocumentsReviewStatus;\n documentReviewStatus: IDocumentReviewStatus;\n}\n\nexport interface IOnlineTrainingResponse {\n data: IOnlineTrainingData;\n}\n\ninterface IVehicleInsuranceData {\n status: DocumentReviewStatus;\n insuranceDocument: IDocumentImage;\n ownerInsurance: string;\n chassisNumber: string;\n issueDate: string;\n expiryDate: string;\n agreementDate: string;\n policyIssueDate: string;\n documentsReviewStatus: IDocumentsReviewStatus;\n documentReviewStatus: IDocumentReviewStatus;\n}\n\ninterface IVehicleInformationData {\n status: DocumentReviewStatus;\n rejectReasonCode: string;\n serviceType: string;\n registrationDocument: IDocumentImage;\n plateNumber: string;\n brand: string;\n model: string;\n registrationType: string;\n ownership: string;\n ownerInsurance: string;\n consentFormDocument: IDocumentImage;\n carTaxStickerDocument: IDocumentImage;\n vehicleInsuranceDocument: IDocumentImage;\n documentsReviewStatus: IDocumentsReviewStatus;\n documentReviewStatus: IDocumentReviewStatus;\n editedBy: string;\n approveStatus: APPROVE_STATUS;\n firstname?: string;\n lastname?: string;\n issueDate?: string;\n expiryDate?: string;\n agreementMadeOn?: string;\n policyIssuedOn?: string;\n}\n\nexport interface IVehicleInformationResponse {\n data: IVehicleInformationData;\n}\n\ninterface IVoluntaryInsuranceData {\n ownerInsurance?: string;\n status: DocumentReviewStatus;\n rejectReasonCode: string;\n insuranceDocument: IDocumentImage;\n documentsReviewStatus: IDocumentsReviewStatus;\n documentReviewStatus: IDocumentReviewStatus;\n editedBy: string;\n approveStatus: APPROVE_STATUS;\n firstName?: string;\n lastName?: string;\n issueDate?: string;\n expiryDate?: string;\n agreementMadeOn?: string;\n policyIssuedOn?: string;\n}\n\nexport interface IVoluntaryInsuranceResponse {\n data: IVoluntaryInsuranceData;\n}\n\ninterface IDriverLicenseData {\n status: DocumentReviewStatus;\n rejectReasonCode: string;\n type: string;\n document: IDocumentImage;\n issueDate: string;\n expiryDate: string;\n note: string;\n createdAt: string;\n updatedAt: string;\n documentsReviewStatus: IDocumentsReviewStatus;\n documentReviewStatus: IDocumentReviewStatus;\n editedBy: string;\n approveStatus: APPROVE_STATUS;\n}\n\nexport interface IDriverLicenseResponse {\n data: IDriverLicenseData;\n}\n\ninterface ICitizen {\n id: string;\n issueDate: string;\n expiryDate: string;\n}\n\ninterface IIdentityData {\n status: DocumentReviewStatus;\n rejectReasonCode: string;\n driverPhotoDocument: IDocumentImage;\n citizenIDDocument: IDocumentImage;\n nameChangeDocument: IDocumentImage;\n birthDate: string;\n citizen: ICitizen;\n note: string;\n createdAt: string;\n updatedAt: string;\n documentsReviewStatus: IDocumentsReviewStatus;\n documentReviewStatus: IDocumentReviewStatus;\n editedBy: string;\n approveStatus: APPROVE_STATUS;\n isAllowCriminalRecord: boolean;\n}\n\nexport interface IIdentityResponse extends IError {\n data: IIdentityData;\n}\n\nexport interface IPreferredServiceAreas {\n districtId?: string;\n province?: string;\n district?: string;\n isAllowEmergencyContact: boolean;\n}\n\nexport interface IPreferredServiceAreasForCPALL {\n districtId?: string;\n province?: string;\n district?: string;\n subDistrict?: string;\n subDistrictId?: string;\n storeCode?: string;\n storeName?: string;\n isAllowEmergencyContact: boolean;\n}\n\nexport interface ITaxAddress {\n isAddressAccordingToIDCard: boolean;\n address?: string;\n province?: string;\n district?: string;\n subDistrict?: string;\n postalCode?: string;\n}\n\nexport interface IEmergencyContact {\n name: string;\n relationship: string;\n phone: string;\n}\n\ninterface IPersonalInformationData {\n status: DocumentReviewStatus;\n rejectReasonCode: string;\n taxAddress: ITaxAddress;\n emergencyContact: IEmergencyContact;\n preferredServiceAreas: IPreferredServiceAreas[];\n preferredServiceAreasForCPALL: IPreferredServiceAreasForCPALL[];\n serviceAvailableType: string;\n note: string;\n createdAt: string;\n updatedAt: string;\n documentsReviewStatus: IDocumentsReviewStatus;\n documentReviewStatus: IDocumentReviewStatus;\n editedBy: string;\n editedAt: string;\n updatedBy: string;\n approveStatus: APPROVE_STATUS;\n vendor: IVendor;\n isAllowEmergencyContact: boolean;\n}\n\nexport interface IPersonalInformationResponse {\n data: IPersonalInformationData;\n}\n\nexport interface IExpireDateFileResponse {\n name: string;\n s3name: string;\n folderType: string;\n createdByUser: string;\n expireDate: string;\n fileId: string;\n createdAt: string;\n updatedAt: string;\n}\n\nexport interface IUpdateExpireDateRequest {\n fileId: string;\n expireDate: number;\n}\n\nexport enum STATUS_RESPONSE {\n UNAUTHORIZED = 401,\n}\n\nexport interface IVendor {\n staffCode: string | null;\n vendorName: string;\n}\n","import {\n APPROVE_STATUS,\n IDocumentReviewStatus,\n IDocumentsReviewStatus,\n} from 'services/driverPortal/DriverPortal.interface';\n\ninterface IResponseDocument {\n data: {\n documentReviewStatus?: IDocumentReviewStatus;\n documentsReviewStatus?: IDocumentsReviewStatus;\n };\n}\n\nexport function getDocumentsReviewMessage(document?: IDocumentsReviewStatus) {\n return document?.message || '';\n}\n\nexport function mapDocumentsReviewStatus(approveStatus?: APPROVE_STATUS) {\n if (approveStatus === APPROVE_STATUS.WAITING_APPROVE) {\n return 'info';\n }\n\n return 'warning';\n}\n\nexport function getDocumentRejectMessage(document?: IResponseDocument) {\n return document?.data?.documentReviewStatus?.message || '';\n}\n\nexport function isDocumentRejected(document?: IResponseDocument) {\n return document?.data?.documentReviewStatus?.status === 'rejected';\n}\n","import { APPROVE_STATUS } from 'services/driverPortal/DriverPortal.interface';\n\ninterface IDisableEdit {\n data?: {\n approveStatus?: APPROVE_STATUS;\n documentReviewStatus?: {\n status?: string;\n };\n };\n}\n\nexport function shouldDisableEdit(response?: IDisableEdit) {\n if (!response?.data) return false;\n\n const { approveStatus, documentReviewStatus } = response?.data || {};\n\n return (\n approveStatus === APPROVE_STATUS.WAITING_APPROVE &&\n documentReviewStatus?.status !== 'rejected'\n );\n}\n","import React from 'react';\nimport { Divider as DividerComponent } from 'antd';\nimport { DividerProps } from 'antd/lib/divider';\nimport { theme } from 'configs/styled';\n\nconst Divider: React.FC = ({ ...props }) => {\n return (\n \n );\n};\n\nexport default Divider;\n","import React from 'react';\nimport { Text as TextComponent } from 'components';\nimport { TextProps } from 'antd/lib/typography/Text';\nimport { theme } from 'configs/styled';\n\nexport interface ITextBoldProps extends TextProps {\n fontSize?: string;\n color?: string;\n margin?: string;\n display?: string;\n}\n\nconst TextBold: React.FC = ({\n color = theme.palettes.black60,\n fontSize = theme.fontSize.xs,\n margin = '0px 3px',\n display = 'inline',\n ...props\n}) => {\n return (\n \n );\n};\n\nexport default TextBold;\n","import React from 'react';\nimport { Text as TextComponent } from 'components';\nimport { TextProps } from 'antd/lib/typography/Text';\nimport { theme } from 'configs/styled';\n\nexport interface ITextLRegularProps extends TextProps {\n fontSize?: string;\n color?: string;\n display?: string;\n margin?: string;\n}\n\nconst TextRegular: React.FC = ({\n fontSize = theme.fontSize.xs,\n color = theme.palettes.black45,\n display = 'inline',\n margin = '0px',\n ...props\n}) => {\n return (\n \n );\n};\n\nexport default TextRegular;\n","import { TitleProps } from 'antd/lib/typography/Title';\nimport React from 'react';\nimport { Title as TitleComponent } from 'components';\nimport { theme } from 'configs/styled';\n\nexport interface ITitleProps extends TitleProps {\n color?: string;\n fontSize?: string;\n style?: React.CSSProperties;\n}\n\nconst Title: React.FC = ({\n color = theme.palettes.black85,\n fontSize = theme.fontSize.xl,\n style,\n ...props\n}) => {\n return (\n \n );\n};\n\nexport default Title;\n","import styled from '@emotion/styled';\nimport { Modal } from 'antd';\nimport { Button } from 'components';\nimport { theme } from 'configs/styled';\nimport { useQueryParams } from 'hooks/useQueryParams';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport { useHistory } from 'react-router-dom';\n\nconst ModalStyle = styled(Modal)`\n .ant-modal-content {\n font-family: ${theme.fonts.NotoSansTh}, ${theme.fonts.NotoSands};\n }\n`;\n\ninterface IConfirmReturnModal {\n isShow: boolean;\n}\n\nconst ConfirmReturnModal: React.FC = props => {\n const { isShow: when } = props;\n const { search, pushUrl } = useQueryParams();\n const history = useHistory();\n\n const [showPrompt, setShowPrompt] = useState(false);\n const [currentPath, setCurrentPath] = useState('');\n\n useEffect(() => {\n if (when) {\n history.block(prompt => {\n setCurrentPath(prompt.pathname);\n setShowPrompt(true);\n return '';\n });\n } else {\n history.block(() => {});\n }\n\n return () => {\n history.block(() => {});\n };\n }, [history, when]);\n\n const handleOK = useCallback(async () => {\n history.block(() => {});\n pushUrl(currentPath, search);\n }, [currentPath, history]);\n\n const handleCancel = () => {\n setShowPrompt(false);\n };\n\n return (\n \n ยกเลิก\n ,\n ,\n ]}\n >\n ข้อมูลของคุณยังไม่ได้ทำการบันทึกลงฐานข้อมูลของระบบ\n คุณต้องการที่จะออกจากหน้านี้หรือไม่ ?\n \n );\n};\n\nexport default ConfirmReturnModal;\n","import styled from '@emotion/styled';\n\nexport const ImageLogo = styled.img`\n width: 140px;\n height: 60px;\n`;\n","import { useLocation } from 'react-router-dom';\nimport QueryString from 'query-string';\n\nenum View {\n WEB_VIEW = 'WEB_VIEW',\n}\n\nexport const useIsWebView = () => {\n const { search } = useLocation();\n const queryString = QueryString.parse(search);\n if (queryString?.view === View.WEB_VIEW) {\n return true;\n }\n return false;\n};\n","import allNowLogo from 'assets/images/driver-portal/all-now-logo.svg';\nimport { Col, Row } from 'components';\nimport { theme } from 'configs/styled';\nimport { useQueryParams } from 'hooks';\nimport React from 'react';\nimport { ImageLogo } from './HeaderPortal.style';\n\nexport interface IHeaderPortal {}\n\nconst HeaderPortal: React.FC = props => {\n const { children } = props;\n const { search, pushUrl } = useQueryParams();\n\n const goToMainPage = () => {\n pushUrl('/', search);\n };\n\n return (\n \n \n \n \n \n {children}\n \n \n \n \n );\n};\n\nexport default HeaderPortal;\n","import styled from '@emotion/styled';\nimport { Tag } from 'antd';\nimport { theme } from 'configs/styled';\nimport React from 'react';\n\nexport const StatusTag = styled(Tag)`\n border-radius: ${theme.elementSize.tagBorderRadius};\n text-align: 'center';\n font-family: ${theme.fonts.NotoSansTh};\n font-style: normal;\n font-weight: ${theme.fontWeight.regular};\n font-size: ${theme.fontSize.xs};\n line-height: '22px';\n border: 0;\n`;\n\nconst documentsReviewStatuses = [\n {\n name: 'ส่งข้อมูล',\n color: theme.palettes.documentsStatus.draft,\n textColor: theme.palettes.documentsStatusText.draft,\n },\n {\n name: 'กำลังตรวจสอบ',\n color: theme.palettes.documentsStatus.waitingApprove,\n textColor: theme.palettes.documentsStatusText.waitingApprove,\n },\n {\n name: 'อนุมัติแล้ว',\n color: theme.palettes.documentsStatus.approved,\n textColor: theme.palettes.documentsStatusText.approved,\n },\n {\n name: 'ข้อมูลไม่ถูกต้อง',\n color: theme.palettes.documentsStatus.rejected,\n textColor: theme.palettes.documentsStatusText.rejected,\n },\n];\n\nfunction getStatus(name = '') {\n return documentsReviewStatuses.find(status => status.name === name.trim());\n}\n\ninterface DocumentsReviewStatusProps {\n statusName?: string;\n}\n\nconst DocumentsReviewStatus: React.FC = props => {\n const { statusName } = props;\n const status = getStatus(statusName);\n\n return status ? (\n <>\n \n {status.name}\n \n \n ) : (\n <>\n );\n};\n\nDocumentsReviewStatus.defaultProps = {\n statusName: '',\n};\n\nexport default DocumentsReviewStatus;\n","import styled from '@emotion/styled';\nimport { Modal } from 'antd';\nimport { Button } from 'components';\nimport { theme } from 'configs/styled';\nimport { FormikProps, FormikValues } from 'formik';\nimport { useQueryParams } from 'hooks/useQueryParams';\nimport React, { useState } from 'react';\nimport { authenticationService } from 'services/driverPortal';\n\nconst ModalStyle = styled(Modal)`\n .ant-modal-content {\n font-family: ${theme.fonts.NotoSansTh}, ${theme.fonts.NotoSands};\n }\n`;\n\ninterface IConfirmReturnModal {\n visible?: boolean;\n onCancel?: Function;\n formik?: FormikProps;\n}\n\nconst ConfirmLogoutModal: React.FC = props => {\n const { onCancel, formik } = props;\n const [visible, setVisible] = useState(props.visible);\n const { search, pushUrl } = useQueryParams();\n\n const handleOK = async () => {\n formik?.resetForm({});\n await authenticationService.logout();\n pushUrl('/login', search);\n };\n\n const handleCancel = () => {\n onCancel && onCancel(false);\n setVisible(false);\n };\n\n return (\n \n ยกเลิก\n ,\n ,\n ]}\n >\n ข้อมูลของคุณยังไม่ได้ทำการบันทึกลงฐานข้อมูลของระบบ\n คุณต้องการที่จะออกจากหน้านี้หรือไม่ ?\n \n );\n};\n\nexport default ConfirmLogoutModal;\n","import { Button } from 'components';\nimport { theme } from 'configs/styled';\nimport { FormikProps, FormikValues } from 'formik';\nimport { useQueryParams } from 'hooks/useQueryParams';\nimport React, { useEffect, useState } from 'react';\nimport { authenticationService } from 'services/driverPortal';\nimport ConfirmLogoutModal from './ConfirmLogoutModal';\n\ninterface ILogoutButton {\n formik?: FormikProps;\n}\n\nconst LogoutButton: React.FC = props => {\n const { formik } = props;\n const { search, pushUrl } = useQueryParams();\n const [visible, setVisible] = useState(false);\n const [dirty, setDirty] = useState(formik?.dirty || false);\n\n const handleClickLogout = async () => {\n if (!dirty) {\n await authenticationService.logout();\n pushUrl('/login', search);\n }\n setVisible(true);\n };\n\n const handleCancel = (visibleModal: boolean) => {\n setVisible(visibleModal);\n };\n\n useEffect(() => {\n if (!formik) return;\n const { dirty, isSubmitting } = formik;\n\n const isDirty = !isSubmitting && dirty;\n setDirty(isDirty);\n }, [formik, dirty]);\n\n return (\n <>\n \n ออกจากระบบ\n \n {visible && (\n \n )}\n \n );\n};\n\nexport default LogoutButton;\n","import { MenuOutlined } from '@ant-design/icons';\nimport { Dropdown } from 'antd';\nimport { Col, Row, Divider, Button } from 'components';\nimport { theme } from 'configs/styled';\nimport { FormikProps, FormikValues } from 'formik';\nimport React from 'react';\n\nimport LogoutButton from './LogoutButton';\n\ninterface ILogout {\n disabledDivider?: boolean;\n formik?: FormikProps;\n}\n\nconst Logout: React.FC = props => {\n const { disabledDivider, formik } = props;\n return (\n \n \n {!disabledDivider && (\n \n )}\n \n \n \n }\n trigger={['click']}\n >\n \n \n \n \n );\n};\n\nexport default Logout;\n","import HeaderPortal from 'containers/DriverPortalPage/components/HeaderPortal';\nimport { FormikProps, FormikValues } from 'formik';\nimport { useIsWebView } from 'hooks/useIsWebView';\nimport React from 'react';\nimport DocumentsReviewStatus from './DocumentsReviewStatus';\nimport Logout from './Logout';\n\nexport interface IHeaderPortal {\n documentsReviewStatusName?: string;\n disabledDivider?: boolean;\n formik?: FormikProps;\n onShowReturnModal?: Function;\n}\n\nconst MainHeaderPortal: React.FC = props => {\n const isWebView = useIsWebView();\n const { documentsReviewStatusName, disabledDivider, formik } = props;\n return (\n <>\n {!isWebView && (\n \n
\n \n \n
\n
\n )}\n \n );\n};\n\nMainHeaderPortal.defaultProps = {\n documentsReviewStatusName: '',\n};\n\nexport default MainHeaderPortal;\n","import React from 'react';\nimport { Button } from 'components';\nimport { LeftOutlined } from '@ant-design/icons';\nimport { theme } from 'configs/styled';\nimport { useQueryParams } from 'hooks/useQueryParams';\n\nexport interface IReturnButtonProps {}\n\nconst ReturnButton: React.FC = () => {\n const { search, pushUrl } = useQueryParams();\n\n const handleClickReturn = () => {\n pushUrl('/', search);\n };\n\n return (\n }\n >\n กลับหน้าแรก\n \n );\n};\n\nexport default ReturnButton;\n","import { ReloadOutlined } from '@ant-design/icons';\nimport { Row } from 'antd';\nimport Information from 'assets/images/driver-portal/information.svg';\nimport { Button } from 'components';\nimport { theme } from 'configs/styled';\nimport React from 'react';\nimport { ImageLogo } from '../components/HeaderPortal.style';\nimport TextRegular from '../components/TextRegular';\nimport Title from '../components/Title';\n\nimport DriverPortalLayout from '../components/DriverPortalLayout';\nimport HeaderPortal from './components/HeaderPortal';\n\nconst ErrorPage: React.FC = () => {\n return (\n <>\n \n \n \n \n \n \n เกิดข้อผิดพลาดบางประการ\n\n \n \n ขออภัย เกิดข้อผิดพลาดบางประการทำให้ไม่สามารถดำเนินการต่อได้\n ทางเรากำลังดำเนินการแก้ไขอย่างเร็วที่สุด คุณสามารถรีเฟรชหน้า\n และดำเนินการต่ออีกครั้งในภายหลัง\n \n \n\n }\n onClick={() => window.location.reload()}\n >\n ลองอีกครั้ง\n \n \n \n \n );\n};\n\nexport default ErrorPage;\n","/* eslint react-hooks/exhaustive-deps: 0 */\nimport { CloseCircleOutlined } from '@ant-design/icons';\nimport { Checkbox, message, Radio } from 'antd';\nimport { CheckboxChangeEvent } from 'antd/lib/checkbox';\nimport { Button, Col, FormItem, Input, Row, Select, Text } from 'components';\nimport InputCheckBox from 'containers/DriverPortalPage/components/InputCheckBox';\nimport Loading from 'components/ReturnOrderModal/Loading';\nimport { theme } from 'configs/styled';\nimport Alert from 'containers/DriverPortalPage/components/Alert';\nimport DriverPortalLayout from 'containers/DriverPortalPage/components/DriverPortalLayout';\nimport { FormikProps, FormikValues, getIn, useFormik } from 'formik';\nimport usePrompt from 'hooks/usePrompt';\nimport { useQueryParams } from 'hooks/useQueryParams';\nimport _ from 'lodash';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport { Action, useMutation, useQuery } from 'react-fetching-library';\nimport { addressService, authenticationService } from 'services/driverPortal';\nimport {\n IEmergencyContact,\n IPersonalInformationResponse,\n IPreferredServiceAreas,\n IPreferredServiceAreasForCPALL,\n ITaxAddress,\n STATUS_RESPONSE,\n RIDER_TYPE,\n} from 'services/driverPortal/DriverPortal.interface';\nimport {\n getDocumentRejectMessage,\n isDocumentRejected,\n} from 'utils/documentRejected';\nimport { shouldDisableEdit } from 'utils/shouldDisableEdit';\nimport { transformMutationResponseError } from 'utils/transformResponseError';\nimport * as Yup from 'yup';\nimport Divider from '../../components/Divider';\nimport TextBold from '../../components/TextBold';\nimport TextRegular from '../../components/TextRegular';\nimport Title from '../../components/Title';\nimport ConfirmReturnModal from '../components/ConfirmReturnModal';\nimport HeaderPortal from '../components/HeaderPortal';\nimport ReturnButton from '../components/ReturnButton';\nimport SelectLoading from '../../components/SelectLoading';\nimport ErrorPage from '../ErrorPage';\n\nexport interface IMainPageProps {}\n\nconst ENABLE_STORE_CPALL =\n process.env.REACT_APP_DRIVER_PORTAL_PERSONAL_ENABLE_STORE_CPALL === 'true';\n\nexport interface ISelectAddressProps {\n _id: string;\n title: string;\n value: string;\n disabled?: boolean;\n}\n\ninterface ISubDistrict {\n _id: string;\n title: string;\n value: string;\n postalcode: string;\n disabled?: boolean;\n}\n\nconst validatePersonalInfo = Yup.object().shape({\n taxAddress: Yup.object().shape({\n isAddressAccordingToIDCard: Yup.boolean(),\n postalCode: Yup.string().when('isAddressAccordingToIDCard', {\n is: false,\n then: Yup.string().required('กรุณาเลือกรหัสไปรษณีย์'),\n }),\n province: Yup.string().when('isAddressAccordingToIDCard', {\n is: false,\n then: Yup.string().required('กรุณาเลือกจังหวัด'),\n }),\n district: Yup.string().when('isAddressAccordingToIDCard', {\n is: false,\n then: Yup.string().required('กรุณาเลือกเขต/อำเภอ'),\n }),\n subDistrict: Yup.string().when('isAddressAccordingToIDCard', {\n is: false,\n then: Yup.string().required('กรุณาเลือกแขวง/ตำบล'),\n }),\n address: Yup.string().when('isAddressAccordingToIDCard', {\n is: false,\n then: Yup.string().required('กรุณากรอกที่อยู่'),\n }),\n }),\n emergencyContact: Yup.object().shape({\n name: Yup.string().required(\n 'กรุณากรอกชื่อ - นามสกุล บุคคลที่ติดต่อได้ในกรณีฉุกเฉิน',\n ),\n relationship: Yup.string().required('กรุณากรอกความสัมพันธ์'),\n phone: Yup.string()\n .matches(/^[0-9]{10}/, 'เบอร์โทรศัพท์นี้ไม่ถูกต้อง')\n .required('กรุณากรอกเบอร์โทรศัพท์'),\n }),\n\n preferredServiceAreas: Yup.array()\n .of(\n Yup.object().shape({\n province: Yup.string(),\n district: Yup.string(),\n }),\n )\n .when('$riderType', {\n is: RIDER_TYPE.LOTUS,\n then: Yup.array().test('preferredServiceAreas', '', function (values) {\n if (!values[0]?.district) {\n return this.createError({\n path: 'preferredServiceAreas[0].district',\n message: 'กรุณาเลือกเขต/อำเภอ',\n });\n }\n if (!values[0]?.province) {\n return this.createError({\n path: 'preferredServiceAreas[0].province',\n message: 'กรุณาเลือกจังหวัด',\n });\n }\n if (!values[1]?.province) {\n return this.createError({\n path: 'preferredServiceAreas[1].province',\n message: 'กรุณาเลือกจังหวัด',\n });\n }\n if (!values[1]?.district) {\n return this.createError({\n path: 'preferredServiceAreas[1].district',\n message: 'กรุณาเลือกเขต/อำเภอ',\n });\n }\n if (!values[2]?.district) {\n return this.createError({\n path: 'preferredServiceAreas[2].district',\n message: 'กรุณาเลือกเขต/อำเภอ',\n });\n }\n if (!values[2]?.province) {\n return this.createError({\n path: 'preferredServiceAreas[2].province',\n message: 'กรุณาเลือกจังหวัด',\n });\n }\n return true;\n }),\n }),\n\n preferredServiceAreasForCPALL: Yup.array()\n .of(\n Yup.object().shape({\n province: Yup.string(),\n district: Yup.string(),\n subDistrict: Yup.string(),\n storeName: Yup.string(),\n }),\n )\n .when('$riderType', {\n is: RIDER_TYPE.CPALL,\n then: Yup.array().test('preferredServiceAreasForCPALL', '', function (\n values,\n ) {\n if (!values[0]?.district) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[0].district',\n message: 'กรุณาเลือกเขต/อำเภอ',\n });\n }\n if (!values[0]?.province) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[0].province',\n message: 'กรุณาเลือกจังหวัด',\n });\n }\n if (!values[0]?.subDistrict) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[0].subDistrict',\n message: 'กรุณาเลือกตำบล',\n });\n }\n if (!values[0]?.storeName) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[0].storeName',\n message: 'กรุณาเลือกร้าค้า',\n });\n }\n if (!values[1]?.province) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[1].province',\n message: 'กรุณาเลือกจังหวัด',\n });\n }\n if (!values[1]?.district) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[1].district',\n message: 'กรุณาเลือกเขต/อำเภอ',\n });\n }\n if (!values[1]?.subDistrict) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[1].subDistrict',\n message: 'กรุณาเลือกตำบล',\n });\n }\n if (!values[1]?.storeName) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[1].storeName',\n message: 'กรุณาเลือกร้าค้า',\n });\n }\n if (!values[2]?.district) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[2].district',\n message: 'กรุณาเลือกเขต/อำเภอ',\n });\n }\n if (!values[2]?.province) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[2].province',\n message: 'กรุณาเลือกจังหวัด',\n });\n }\n if (!values[2]?.subDistrict) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[2].subDistrict',\n message: 'กรุณาเลือกตำบล',\n });\n }\n if (!values[2]?.storeName) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[2].storeName',\n message: 'กรุณาเลือกร้าค้า',\n });\n }\n if (!values[3]?.district) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[3].district',\n message: 'กรุณาเลือกเขต/อำเภอ',\n });\n }\n if (!values[3]?.province) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[3].province',\n message: 'กรุณาเลือกจังหวัด',\n });\n }\n if (!values[3]?.subDistrict) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[3].subDistrict',\n message: 'กรุณาเลือกตำบล',\n });\n }\n if (!values[3]?.storeName) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[3].storeName',\n message: 'กรุณาเลือกร้าค้า',\n });\n }\n if (!values[4]?.district) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[4].district',\n message: 'กรุณาเลือกเขต/อำเภอ',\n });\n }\n if (!values[4]?.province) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[4].province',\n message: 'กรุณาเลือกจังหวัด',\n });\n }\n if (!values[4]?.subDistrict) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[4].subDistrict',\n message: 'กรุณาเลือกตำบล',\n });\n }\n if (!values[4]?.storeName) {\n return this.createError({\n path: 'preferredServiceAreasForCPALL[4].storeName',\n message: 'กรุณาเลือกร้าค้า',\n });\n }\n return true;\n }),\n }),\n});\n\ninterface IPersonalInformationRequest {\n taxAddress: ITaxAddress;\n emergencyContact: IEmergencyContact;\n preferredServiceAreas: IPreferredServiceAreas[];\n preferredServiceAreasForCPALL: IPreferredServiceAreasForCPALL[];\n serviceAvailableType: string;\n status?: string;\n isAllowEmergencyContact?: boolean;\n}\n\nexport const getAddressProvinces = async () => {\n try {\n return await addressService.provinces();\n } catch (err) {}\n};\n\nconst buildPostalCodes = (subDistricts: ISubDistrict[]) => {\n const postalCodes = subDistricts.map(subDistrict => {\n return {\n _id: subDistrict._id,\n title: subDistrict.postalcode,\n value: subDistrict.postalcode,\n };\n });\n return postalCodes;\n};\n\nconst buildPersonalInformationPayload = (\n payload: IPersonalInformationRequest,\n) => {\n const {\n taxAddress,\n emergencyContact,\n preferredServiceAreas,\n preferredServiceAreasForCPALL,\n serviceAvailableType,\n } = payload;\n\n taxAddress.address = taxAddress.address?.trim();\n\n emergencyContact.name = emergencyContact.name.trim();\n emergencyContact.relationship = emergencyContact.relationship.trim();\n\n if (serviceAvailableType === RIDER_TYPE.CPALL) {\n const _preferredServiceAreas = preferredServiceAreasForCPALL?.filter(\n preferredServiceAreasForCPALL => preferredServiceAreasForCPALL.province,\n );\n return {\n taxAddress,\n emergencyContact,\n serviceAvailableType,\n preferredServiceAreas: _preferredServiceAreas,\n preferredServiceAreasForCPALL: preferredServiceAreasForCPALL || [],\n };\n } else {\n const _preferredServiceAreas = preferredServiceAreas.filter(\n preferredServiceArea => preferredServiceArea.province,\n );\n return {\n taxAddress,\n emergencyContact,\n serviceAvailableType,\n preferredServiceAreas: _preferredServiceAreas,\n preferredServiceAreasForCPALL: [],\n };\n }\n};\n\nfunction getPreferredServiceAreaProvince(\n personalInformation: IPersonalInformationRequest,\n index = 0,\n) {\n return personalInformation?.preferredServiceAreas?.[index]?.province;\n}\n\nfunction getPreferredServiceAreaProvinceForCPALL(\n personalInformation: IPersonalInformationRequest,\n index = 0,\n) {\n return personalInformation?.preferredServiceAreasForCPALL?.[index]?.province;\n}\n\nfunction getPreferredServiceAreaDistrict(\n personalInformation: IPersonalInformationRequest,\n index = 0,\n) {\n return personalInformation?.preferredServiceAreas?.[index]?.district;\n}\n\nfunction getPreferredServiceAreaDistrictForCPALL(\n personalInformation: IPersonalInformationRequest,\n index = 0,\n) {\n return personalInformation?.preferredServiceAreasForCPALL?.[index]?.district;\n}\n\nfunction getPreferredServiceAreaSubDistrictForCPALL(\n personalInformation: IPersonalInformationRequest,\n index = 0,\n) {\n return personalInformation?.preferredServiceAreasForCPALL?.[index]\n ?.subDistrict;\n}\n\nfunction getPreferredServiceAreaStoreForCPALL(\n personalInformation: IPersonalInformationRequest,\n index = 0,\n) {\n return personalInformation?.preferredServiceAreasForCPALL?.[index]?.storeName;\n}\n\nconst PersonalInformationPage: React.FC = () => {\n const [provinceOptions, setProvinceOptions] = useState(\n [],\n );\n const [districtsOptions, setDistrictsOptions] = useState<\n ISelectAddressProps[]\n >([]);\n const [subDistrictsOptions, setSubDistrictsOptions] = useState<\n ISubDistrict[]\n >([]);\n\n const [\n districtsOptionsServiceArea,\n setDistrictsOptionsServiceArea,\n ] = useState([[], [], []]);\n\n const [\n districtsOptionsServiceAreaForCPALL,\n setDistrictsOptionsServiceAreaForCPALL,\n ] = useState([[], [], [], [], []]);\n\n const [\n subDistrictsOptionsServiceAreaForCPALL,\n setSubDistrictsOptionsServiceAreaForCPALL,\n ] = useState([[], [], [], [], []]);\n\n const [\n storeOptionsServiceAreaForCPALL,\n setStoreOptionsServiceAreaForCPALL,\n ] = useState([[], [], [], [], []]);\n\n const { search, pushUrl } = useQueryParams();\n const [loadingPage, setLoadingPage] = useState(true);\n const [loadingSelect, setLoadingSelect] = useState(true);\n const [disableEdit, setDisableEdit] = useState(false);\n const { userId, accessToken } = authenticationService.getUserToken();\n const [isShowModal, setIsShowModal] = useState(false);\n const [, setShowPrompt] = usePrompt();\n const [formDirty, setFormDirty] = useState(false);\n const [riderType, setRiderType] = useState('');\n\n const endpoint = `/driver/portal/v1/ondemand/drivers/${userId}/documents/personal-information`;\n\n const {\n payload: personalInformation,\n error: getPersonalInformationError,\n loading: getPersonalInformationLoading,\n status: getPersonalInformationStatus,\n } = useQuery({\n method: 'GET',\n endpoint,\n headers: {\n Authorization: accessToken,\n },\n });\n\n const submitPersonalInformation = (\n formValues: IPersonalInformationRequest,\n ): Action => {\n return {\n method: 'PUT',\n endpoint,\n body: formValues,\n headers: {\n Authorization: accessToken,\n },\n };\n };\n\n const { mutate: mutationPersonalInformation } = useMutation(\n submitPersonalInformation,\n );\n const [allowCriminalRecordConsent, setAllowCriminalRecordConsent] = useState(\n true,\n );\n const goToMainPage = () => {\n pushUrl('/', search);\n };\n\n const goToLoginPage = () => {\n pushUrl('/login', search);\n };\n\n const buildInitialPreferredServiceAreas = () => {\n const preferredServiceAreas =\n personalInformation?.data?.preferredServiceAreas;\n const _preferredServiceAreas = [];\n for (let sequence = 0; sequence < 3; sequence++) {\n if (!preferredServiceAreas?.[sequence]) {\n _preferredServiceAreas.push({\n province: undefined,\n district: undefined,\n districtId: undefined,\n isAllowEmergencyContact: false,\n });\n } else {\n _preferredServiceAreas.push(preferredServiceAreas?.[sequence]);\n }\n }\n return _preferredServiceAreas;\n };\n\n const buildInitialPreferredServiceAreasForCPALL = () => {\n const preferredServiceAreas =\n personalInformation?.data?.preferredServiceAreas;\n const _preferredServiceAreas = [];\n const maxSequence = ENABLE_STORE_CPALL ? 1 : 3;\n for (let sequence = 0; sequence < maxSequence; sequence++) {\n if (!preferredServiceAreas?.[sequence]) {\n _preferredServiceAreas.push({\n province: undefined,\n district: undefined,\n districtId: undefined,\n subDistrict: undefined,\n subDistrictId: undefined,\n storeCode: undefined,\n storeName: undefined,\n isAllowEmergencyContact: false,\n });\n } else {\n _preferredServiceAreas.push(preferredServiceAreas?.[sequence]);\n }\n }\n return _preferredServiceAreas;\n };\n\n const formik = useFormik({\n initialValues: {\n taxAddress: {\n isAddressAccordingToIDCard:\n personalInformation?.data?.taxAddress?.isAddressAccordingToIDCard ||\n false,\n postalCode:\n personalInformation?.data?.taxAddress?.postalCode || undefined,\n province: personalInformation?.data?.taxAddress?.province || undefined,\n district: personalInformation?.data?.taxAddress?.district || undefined,\n subDistrict:\n personalInformation?.data?.taxAddress?.subDistrict || undefined,\n address: personalInformation?.data?.taxAddress?.address,\n },\n emergencyContact: {\n name: personalInformation?.data?.emergencyContact?.name || '',\n phone: personalInformation?.data?.emergencyContact?.phone || '',\n relationship:\n personalInformation?.data?.emergencyContact?.relationship || '',\n },\n serviceAvailableType:\n personalInformation?.data?.serviceAvailableType || RIDER_TYPE.LOTUS,\n preferredServiceAreas: buildInitialPreferredServiceAreas(),\n preferredServiceAreasForCPALL: buildInitialPreferredServiceAreasForCPALL(),\n isAllowEmergencyContact:\n personalInformation?.data?.isAllowEmergencyContact || false,\n },\n enableReinitialize: true,\n validationSchema: validatePersonalInfo,\n validate: values => {\n return validatePersonalInfo\n .validate(values, { context: { riderType } })\n .then(() => {})\n .catch(err => {\n return err.inner.reduce(\n (acc: Record, curr: Yup.ValidationError) => {\n acc[curr.path] = curr.message;\n return acc;\n },\n {},\n );\n });\n },\n onSubmit: async (formValues, action) => {\n const personalInformation = buildPersonalInformationPayload(formValues);\n const response = await mutationPersonalInformation({\n ...personalInformation,\n status: 'submitted',\n });\n\n if (response?.status === STATUS_RESPONSE.UNAUTHORIZED) {\n await authenticationService.logout();\n goToLoginPage();\n }\n\n if (response?.error) {\n const _error = transformMutationResponseError(response?.payload as any);\n _error.isValidationError && formik.setErrors(_error.errors);\n\n action.setFormikState(state => {\n return {\n ...state,\n touched: formik.touched,\n values: formik.values,\n };\n });\n } else {\n message.success('บันทึกข้อมูลเรียบร้อยแล้ว');\n goToMainPage();\n }\n },\n });\n useEffect(() => {\n if (!personalInformation) return;\n\n if (personalInformation) {\n setAllowCriminalRecordConsent(\n personalInformation?.data?.isAllowEmergencyContact || true,\n );\n }\n }, [personalInformation]);\n\n useEffect(() => {\n const { dirty, isSubmitting } = formik;\n const isDirty = !isSubmitting && dirty;\n setFormDirty(isDirty);\n\n setIsShowModal(isDirty);\n\n setShowPrompt(isDirty);\n }, [formik]);\n\n const buildPreferredServiceAreas = (\n preferredServiceAreas: IPreferredServiceAreas[],\n ) => {\n return preferredServiceAreas.map(preferredServiceArea => {\n return {\n district: preferredServiceArea.district,\n province: preferredServiceArea.province,\n districtId: preferredServiceArea.districtId,\n };\n });\n };\n\n const buildPreferredServiceAreasForCPALL = (\n preferredServiceAreasForCPALL: IPreferredServiceAreasForCPALL[],\n ) => {\n return preferredServiceAreasForCPALL.map(preferredServiceAreaForCPALL => {\n return {\n district: preferredServiceAreaForCPALL.district,\n province: preferredServiceAreaForCPALL.province,\n districtId: preferredServiceAreaForCPALL.districtId,\n subDistrict: preferredServiceAreaForCPALL.subDistrict,\n subDistrictId: preferredServiceAreaForCPALL.subDistrictId,\n storeCode: preferredServiceAreaForCPALL.storeCode,\n storeName: preferredServiceAreaForCPALL.storeName,\n };\n });\n };\n\n const preferredServiceAreas = buildPreferredServiceAreas(\n formik.values.preferredServiceAreas,\n );\n\n const preferredServiceAreasForCPALL = buildPreferredServiceAreasForCPALL(\n formik.values.preferredServiceAreasForCPALL ?? [],\n );\n\n const taxAddress = { ...formik?.values?.taxAddress };\n\n useEffect(() => {\n formik.validateForm();\n }, [formik.initialValues]);\n\n useEffect(() => {\n const getProvinces = async () => {\n const response = await getAddressProvinces();\n const provinces = response?.data?.data;\n if (!provinces) return;\n\n const _provinces = provinces.map(province => {\n return {\n _id: province._id,\n title: province.name.TH,\n value: province.name.TH,\n };\n });\n setProvinceOptions(_provinces);\n setLoadingPage(false);\n };\n getProvinces();\n }, []);\n\n const getDefaultServiceAvailableType = (\n personalInfo?: IPersonalInformationResponse,\n ) => {\n return personalInfo?.data?.vendor?.vendorName === 'All Now'\n ? RIDER_TYPE.LOTUS\n : RIDER_TYPE.CPALL;\n };\n\n useEffect(() => {\n if (!personalInformation) return;\n\n const serviceAvailableType =\n personalInformation.data.serviceAvailableType ||\n getDefaultServiceAvailableType(personalInformation);\n setRiderType(serviceAvailableType);\n formik.setFieldValue('serviceAvailableType', serviceAvailableType);\n\n if (shouldDisableEdit(personalInformation)) {\n setDisableEdit(true);\n }\n }, [personalInformation]);\n\n const getAddressDistricts = async (provinceId: string) => {\n try {\n return await addressService.districts({\n administrativeAreaLevel1: provinceId,\n });\n } catch (err) {}\n };\n\n const getDistrict = async (provinceId: string) => {\n const response = await getAddressDistricts(provinceId);\n const districts = response?.data?.data;\n if (!districts) return;\n\n const _districts = districts.map(district => {\n return {\n _id: district._id,\n title: district.name.TH,\n value: district.name.TH,\n };\n });\n setDistrictsOptions(_districts);\n return _districts;\n };\n\n const getAddressSubDistricts = async (districtId: string) => {\n try {\n return await addressService.subDistricts({\n sublocalityLevel1: districtId,\n });\n } catch (err) {}\n };\n\n const getAddressStore = async (\n servicearea: IPreferredServiceAreasForCPALL,\n ) => {\n try {\n return await addressService.getStore({\n servicearea,\n });\n } catch (err) {}\n };\n\n const getSubDistrict = async (districtId: string) => {\n const response = await getAddressSubDistricts(districtId);\n const subDistricts = response?.data?.data;\n if (!subDistricts) return;\n const _subDistricts = subDistricts.map(subDistrict => {\n return {\n _id: subDistrict._id,\n title: subDistrict.name.TH,\n value: subDistrict.name.TH,\n postalcode: subDistrict.postCode,\n };\n });\n setSubDistrictsOptions(_subDistricts);\n };\n\n const getServiceAreaDistrict = async (option: any, servicearea: number) => {\n const response = await getAddressDistricts(option._id);\n const districts = response?.data?.data;\n\n if (!districts) return;\n\n // handle disable district selected in have 3 array any array it mean district sequence\n const selectedServiceAreas = [\n [],\n [formik?.values?.preferredServiceAreas?.[0]?.districtId],\n [\n formik?.values?.preferredServiceAreas?.[0]?.districtId,\n formik?.values?.preferredServiceAreas?.[1]?.districtId,\n ],\n ].filter(Boolean);\n\n const districtOptions = districts.map(district => {\n return {\n _id: district._id,\n title: district.name.TH,\n value: district.name.TH,\n disabled: selectedServiceAreas?.[servicearea]?.includes?.(\n district?._id,\n ),\n };\n });\n\n setDistrictsOptionsServiceArea(prevDistrictsOptions => {\n const _districtsOptions = [...prevDistrictsOptions];\n // set replace old value\n _districtsOptions[servicearea] = districtOptions;\n return _districtsOptions;\n });\n };\n\n const getServiceAreaDistrictForCPALL = async (\n option: any,\n servicearea: number,\n ) => {\n const response = await getAddressDistricts(option._id);\n const districts = response?.data?.data;\n\n if (!districts) return;\n\n const districtOptions = districts.map(district => {\n return {\n _id: district._id,\n title: district.name.TH,\n value: district.name.TH,\n };\n });\n\n setDistrictsOptionsServiceAreaForCPALL(prevDistrictsOptions => {\n const _districtsOptions = [...prevDistrictsOptions];\n _districtsOptions[servicearea] = districtOptions;\n return _districtsOptions;\n });\n };\n\n const getServiceAreaSubDistrict = async (\n option: any,\n servicearea: number,\n ) => {\n const response = await getAddressSubDistricts(option._id);\n const subDistricts = response?.data?.data;\n if (!subDistricts) return;\n\n const subDistrictOptions = subDistricts.map(subDistrict => {\n return {\n _id: subDistrict._id,\n title: subDistrict.name.TH,\n value: subDistrict.name.TH,\n };\n });\n\n setSubDistrictsOptionsServiceAreaForCPALL(prevSubDistrictsOptions => {\n const _subDistrictsOptions = [...prevSubDistrictsOptions];\n _subDistrictsOptions[servicearea] = subDistrictOptions;\n return _subDistrictsOptions;\n });\n };\n\n const getStoreForCPALL = async (option: any, servicearea: number) => {\n setLoadingSelect(true);\n const response = await getAddressStore(option);\n if (response) {\n const storeDetails = response || [];\n const selectedServiceAreas = [\n [],\n [formik?.values?.preferredServiceAreasForCPALL?.[0]?.storeCode],\n [\n formik?.values?.preferredServiceAreasForCPALL?.[0]?.storeCode,\n formik?.values?.preferredServiceAreasForCPALL?.[1]?.storeCode,\n ],\n [\n formik?.values?.preferredServiceAreasForCPALL?.[0]?.storeCode,\n formik?.values?.preferredServiceAreasForCPALL?.[1]?.storeCode,\n formik?.values?.preferredServiceAreasForCPALL?.[2]?.storeCode,\n ],\n [\n formik?.values?.preferredServiceAreasForCPALL?.[0]?.storeCode,\n formik?.values?.preferredServiceAreasForCPALL?.[1]?.storeCode,\n formik?.values?.preferredServiceAreasForCPALL?.[2]?.storeCode,\n formik?.values?.preferredServiceAreasForCPALL?.[3]?.storeCode,\n ],\n [\n formik?.values?.preferredServiceAreasForCPALL?.[0]?.storeCode,\n formik?.values?.preferredServiceAreasForCPALL?.[1]?.storeCode,\n formik?.values?.preferredServiceAreasForCPALL?.[2]?.storeCode,\n formik?.values?.preferredServiceAreasForCPALL?.[3]?.storeCode,\n formik?.values?.preferredServiceAreasForCPALL?.[4]?.storeCode,\n ],\n ].filter(Boolean);\n\n const storeOptions = storeDetails.map(storeDetail => {\n return {\n _id: storeDetail.storeCode,\n title: storeDetail.storeName,\n value: storeDetail.storeName,\n disabled: selectedServiceAreas[servicearea].includes(\n storeDetail.storeCode,\n ),\n };\n });\n\n setStoreOptionsServiceAreaForCPALL(prevStoreOptions => {\n const _storeOptions = [...prevStoreOptions];\n _storeOptions[servicearea] = storeOptions;\n return _storeOptions;\n });\n setLoadingSelect(false);\n return storeOptions;\n } else {\n setStoreOptionsServiceAreaForCPALL(prevStoreOptions => {\n const _storeOptions = [...prevStoreOptions];\n _storeOptions[servicearea] = [];\n return _storeOptions;\n });\n setLoadingSelect(false);\n }\n };\n\n const initialPreferredServiceAreas = () => {\n const findProvinceByName = (name: string | undefined) => {\n return provinceOptions.find(provinceOption => {\n return provinceOption.title === name;\n });\n };\n\n const getInitialAddress = async () => {\n const province = findProvinceByName(\n personalInformation?.data?.taxAddress?.province,\n );\n\n if (!province) return;\n const districts = await getDistrict(province._id);\n\n if (!districts) return;\n const _district = districts.find(district => {\n return (\n district.title === personalInformation?.data?.taxAddress?.district\n );\n });\n\n if (!_district) return;\n await getSubDistrict(_district?._id);\n };\n\n const getInitialPreferredServiceArea = async () => {\n if (!personalInformation?.data?.preferredServiceAreas) return;\n personalInformation?.data?.preferredServiceAreas.forEach(\n async (preferredServiceArea, index) => {\n const province = findProvinceByName(preferredServiceArea.province);\n if (!province) return;\n await getServiceAreaDistrict(province, index);\n },\n );\n };\n\n const getInitialPreferredServiceAreaByCPALL = async () => {\n if (!personalInformation?.data?.preferredServiceAreas) return;\n personalInformation?.data?.preferredServiceAreas.forEach(\n async (preferredServiceArea, index) => {\n const province = findProvinceByName(preferredServiceArea.province);\n if (!province) return;\n await getServiceAreaDistrictForCPALL(province, index);\n await getServiceAreaSubDistrict(\n { _id: preferredServiceArea?.districtId },\n index,\n );\n await getStoreForCPALL(preferredServiceArea, index);\n },\n );\n };\n getInitialAddress();\n if (personalInformation?.data?.serviceAvailableType === RIDER_TYPE.CPALL) {\n getInitialPreferredServiceAreaByCPALL();\n } else {\n getInitialPreferredServiceArea();\n }\n };\n\n useEffect(() => {\n if (personalInformation?.data && provinceOptions) {\n initialPreferredServiceAreas();\n }\n }, [personalInformation, provinceOptions]);\n\n const errors = formik.errors || {};\n\n const handleUnauthorized = useCallback(async status => {\n if (status === STATUS_RESPONSE.UNAUTHORIZED) {\n await authenticationService.logout();\n goToMainPage();\n }\n }, []);\n\n useEffect(() => {\n handleUnauthorized(getPersonalInformationStatus);\n }, [getPersonalInformationStatus]);\n\n if (\n getPersonalInformationError &&\n getPersonalInformationStatus !== STATUS_RESPONSE.UNAUTHORIZED\n )\n return ;\n\n if (getPersonalInformationLoading || loadingPage) return ;\n\n const handleSelectProvince = (provinceSelected: string, option: any) => {\n getDistrict(option._id);\n taxAddress.province = provinceSelected;\n taxAddress.district = undefined;\n taxAddress.subDistrict = undefined;\n taxAddress.postalCode = undefined;\n formik.setFieldTouched('taxAddress.district', true);\n formik.setFieldValue('taxAddress', taxAddress);\n };\n\n const handleSelectDistrict = (districtSelected: string, option: any) => {\n getSubDistrict(option._id);\n taxAddress.district = districtSelected;\n taxAddress.subDistrict = undefined;\n taxAddress.postalCode = undefined;\n formik.setFieldTouched('taxAddress.subDistrict', true);\n formik.setFieldValue('taxAddress', taxAddress);\n };\n\n const handleSelectSubDistrict = (subDistrictSelected: string) => {\n taxAddress.subDistrict = subDistrictSelected;\n taxAddress.postalCode = undefined;\n formik.setFieldTouched('taxAddress.postalCode', true);\n formik.setFieldValue('taxAddress', taxAddress);\n };\n\n const handleSelectPostalCode = (postCodeSelected: string) => {\n taxAddress.postalCode = postCodeSelected;\n formik.setFieldValue('taxAddress', taxAddress);\n };\n\n const removeServiceAreaOptions = (serviceAreaSequence: number) => {\n if (serviceAreaSequence === 0) {\n setDistrictsOptionsServiceArea(prevDistrictsOptions => {\n const _districtsOptions = [...prevDistrictsOptions];\n\n _districtsOptions[0] = _districtsOptions[0].map(_districtsOption => {\n return {\n _id: _districtsOption._id,\n title: _districtsOption.title,\n value: _districtsOption.value,\n disabled: false,\n };\n });\n\n _districtsOptions[1] = [];\n return _districtsOptions;\n });\n preferredServiceAreas[1].districtId = undefined;\n preferredServiceAreas[1].province = undefined;\n preferredServiceAreas[1].district = undefined;\n }\n\n if (serviceAreaSequence === 0 || serviceAreaSequence === 1) {\n setDistrictsOptionsServiceArea(prevDistrictsOptions => {\n const _districtsOptions = [...prevDistrictsOptions];\n _districtsOptions[2] = [];\n return _districtsOptions;\n });\n preferredServiceAreas[2].districtId = undefined;\n preferredServiceAreas[2].province = undefined;\n preferredServiceAreas[2].district = undefined;\n }\n };\n\n const removeServiceAreaOptionsForCPALL = (serviceAreaSequence: number) => {\n preferredServiceAreasForCPALL.forEach((data, idx) => {\n if (idx > serviceAreaSequence) {\n data.districtId = undefined;\n data.province = undefined;\n data.district = undefined;\n data.subDistrict = undefined;\n data.subDistrictId = undefined;\n data.storeCode = undefined;\n data.storeName = undefined;\n }\n });\n };\n\n const handleClearProvince = (serviceAreaSequence: number) => {\n if (serviceAreaSequence === 1) {\n preferredServiceAreas[1].province = undefined;\n preferredServiceAreas[1].district = undefined;\n preferredServiceAreas[1].districtId = undefined;\n preferredServiceAreas[2].province = undefined;\n preferredServiceAreas[2].district = undefined;\n preferredServiceAreas[2].districtId = undefined;\n formik.setFieldTouched('preferredServiceAreas[1].province', true);\n }\n\n if (serviceAreaSequence === 2) {\n preferredServiceAreas[2].province = undefined;\n preferredServiceAreas[2].district = undefined;\n preferredServiceAreas[2].districtId = undefined;\n formik.setFieldTouched('preferredServiceAreas[2].province', true);\n }\n\n formik.setFieldValue('preferredServiceAreas', preferredServiceAreas);\n };\n\n const handleSelectedProvince = (\n serviceAreaSequence: number,\n value: string,\n option: any,\n ) => {\n if (!value) {\n handleClearProvince(serviceAreaSequence);\n return;\n }\n\n getServiceAreaDistrict(option, serviceAreaSequence);\n\n preferredServiceAreas[serviceAreaSequence].province = value;\n preferredServiceAreas[serviceAreaSequence].district = undefined;\n preferredServiceAreas[serviceAreaSequence].districtId = undefined;\n\n removeServiceAreaOptions(serviceAreaSequence);\n formik.setFieldTouched(\n `preferredServiceAreas[${serviceAreaSequence}].district`,\n true,\n );\n\n formik.setFieldValue('preferredServiceAreas', preferredServiceAreas);\n };\n\n const handleSelectedProvinceForCPALL = (\n serviceAreaSequence: number,\n value: string,\n option: any,\n ) => {\n getServiceAreaDistrictForCPALL(option, serviceAreaSequence);\n\n preferredServiceAreasForCPALL[serviceAreaSequence].province = value;\n preferredServiceAreasForCPALL[serviceAreaSequence].district = undefined;\n preferredServiceAreasForCPALL[serviceAreaSequence].districtId = undefined;\n preferredServiceAreasForCPALL[serviceAreaSequence].subDistrict = undefined;\n preferredServiceAreasForCPALL[\n serviceAreaSequence\n ].subDistrictId = undefined;\n preferredServiceAreasForCPALL[serviceAreaSequence].storeCode = undefined;\n preferredServiceAreasForCPALL[serviceAreaSequence].storeName = undefined;\n\n removeServiceAreaOptionsForCPALL(serviceAreaSequence);\n formik.setFieldTouched(\n `preferredServiceAreasForCPALL[${serviceAreaSequence}].district`,\n true,\n );\n\n formik.setFieldValue(\n 'preferredServiceAreasForCPALL',\n preferredServiceAreasForCPALL,\n );\n };\n\n const handleClearDistrict = (serviceAreaSequence: number) => {\n if (serviceAreaSequence === 1) {\n preferredServiceAreas[1].district = undefined;\n preferredServiceAreas[1].districtId = undefined;\n preferredServiceAreas[2].province = undefined;\n preferredServiceAreas[2].district = undefined;\n preferredServiceAreas[2].districtId = undefined;\n formik.setFieldTouched('preferredServiceAreas[1].district', true);\n }\n\n if (serviceAreaSequence === 2) {\n preferredServiceAreas[2].district = undefined;\n preferredServiceAreas[2].districtId = undefined;\n formik.setFieldTouched('preferredServiceAreas[2].district', true);\n }\n\n formik.setFieldValue('preferredServiceAreas', preferredServiceAreas);\n };\n\n const handleSelectedDistrict = (\n serviceAreaSequence: number,\n value: string,\n option: any,\n ) => {\n if (!value) {\n handleClearDistrict(serviceAreaSequence);\n return;\n }\n\n removeServiceAreaOptions(serviceAreaSequence);\n\n preferredServiceAreas[serviceAreaSequence].districtId = option?._id;\n preferredServiceAreas[serviceAreaSequence].district = value;\n\n formik.setFieldValue('preferredServiceAreas', preferredServiceAreas);\n };\n\n const handleSelectedDistrictForCPALL = (\n serviceAreaSequence: number,\n value: string,\n option: any,\n ) => {\n getServiceAreaSubDistrict(option, serviceAreaSequence);\n\n preferredServiceAreasForCPALL[serviceAreaSequence].districtId = option?._id;\n preferredServiceAreasForCPALL[serviceAreaSequence].district = value;\n preferredServiceAreasForCPALL[serviceAreaSequence].subDistrict = undefined;\n preferredServiceAreasForCPALL[\n serviceAreaSequence\n ].subDistrictId = undefined;\n preferredServiceAreasForCPALL[serviceAreaSequence].storeCode = undefined;\n preferredServiceAreasForCPALL[serviceAreaSequence].storeName = undefined;\n\n removeServiceAreaOptionsForCPALL(serviceAreaSequence);\n\n formik.setFieldTouched(\n `preferredServiceAreasForCPALL[${serviceAreaSequence}].subDistrict`,\n true,\n );\n\n formik.setFieldValue(\n 'preferredServiceAreasForCPALL',\n preferredServiceAreasForCPALL,\n );\n };\n\n const handleSelectedSubDistrictForCPALL = async (\n serviceAreaSequence: number,\n value: string,\n option: any,\n ) => {\n preferredServiceAreasForCPALL[serviceAreaSequence].subDistrict = value;\n preferredServiceAreasForCPALL[serviceAreaSequence].subDistrictId =\n option?._id;\n\n preferredServiceAreasForCPALL[serviceAreaSequence].storeCode = undefined;\n preferredServiceAreasForCPALL[serviceAreaSequence].storeName = undefined;\n\n formik.setFieldValue(\n 'preferredServiceAreasForCPALL',\n preferredServiceAreasForCPALL,\n );\n removeServiceAreaOptionsForCPALL(serviceAreaSequence);\n\n const storeOptions = await getStoreForCPALL(\n preferredServiceAreasForCPALL[serviceAreaSequence],\n serviceAreaSequence,\n );\n const isDefaultStore = !ENABLE_STORE_CPALL && !storeOptions?.[0]?.disabled;\n if (isDefaultStore) {\n preferredServiceAreasForCPALL[serviceAreaSequence].storeCode =\n storeOptions?.[0]?._id;\n preferredServiceAreasForCPALL[serviceAreaSequence].storeName =\n storeOptions?.[0]?.value;\n }\n\n formik.setFieldTouched(\n `preferredServiceAreasForCPALL[${serviceAreaSequence}].storeName`,\n true,\n );\n\n formik.setFieldValue(\n 'preferredServiceAreasForCPALL',\n preferredServiceAreasForCPALL,\n );\n };\n\n const handleSelectedStoreForCPALL = (\n serviceAreaSequence: number,\n value: string,\n option: any,\n ) => {\n preferredServiceAreasForCPALL[serviceAreaSequence].storeName = value;\n preferredServiceAreasForCPALL[serviceAreaSequence].storeCode = option?._id;\n\n removeServiceAreaOptionsForCPALL(serviceAreaSequence);\n\n formik.setFieldValue(\n 'preferredServiceAreasForCPALL',\n preferredServiceAreasForCPALL,\n );\n };\n\n const handleCheckAddressAccordingToIDCard = (e: CheckboxChangeEvent) => {\n const checked = e.target.checked;\n taxAddress.isAddressAccordingToIDCard = checked;\n if (checked) {\n taxAddress.address = undefined;\n taxAddress.province = undefined;\n taxAddress.district = undefined;\n taxAddress.subDistrict = undefined;\n taxAddress.postalCode = undefined;\n }\n formik.setFieldValue('taxAddress', taxAddress);\n };\n\n const shouldDisplayErrorMessage = (\n key: keyof IPersonalInformationRequest,\n ) => {\n return getIn(formik.touched, key) && getIn(formik.errors, key);\n };\n\n const isComplete = (\n areas: IPreferredServiceAreas[] | IPreferredServiceAreasForCPALL[],\n ) => {\n return areas.every(\n area =>\n area.province &&\n area.district &&\n (riderType === RIDER_TYPE.CPALL\n ? (area as IPreferredServiceAreasForCPALL).subDistrict &&\n (area as IPreferredServiceAreasForCPALL).storeName\n : true),\n );\n };\n\n const shouldDisabledSubmit = () => {\n if (disableEdit) return true;\n else if (riderType === RIDER_TYPE.LOTUS) {\n return !(\n isComplete(\n formik.values.preferredServiceAreas as IPreferredServiceAreas[],\n ) && allowCriminalRecordConsent\n );\n } else if (riderType === RIDER_TYPE.CPALL) {\n return !(\n isComplete(\n formik.values\n .preferredServiceAreasForCPALL as IPreferredServiceAreasForCPALL[],\n ) && allowCriminalRecordConsent\n );\n }\n\n return true;\n };\n\n const onChangeRiderType = (e: any) => {\n setRiderType(e.target.value);\n const _preferredServiceAreas = [];\n if (e.target.value === personalInformation?.data?.serviceAvailableType) {\n if (e.target.value === RIDER_TYPE.LOTUS) {\n formik.setFieldValue(\n 'preferredServiceAreas',\n buildInitialPreferredServiceAreas(),\n );\n } else {\n formik.setFieldValue(\n 'preferredServiceAreasForCPALL',\n buildInitialPreferredServiceAreasForCPALL(),\n );\n }\n } else {\n if (e.target.value === RIDER_TYPE.LOTUS) {\n for (let sequence = 0; sequence < 3; sequence++) {\n _preferredServiceAreas.push({\n province: undefined,\n district: undefined,\n districtId: undefined,\n });\n }\n formik.setFieldValue('preferredServiceAreas', _preferredServiceAreas);\n } else {\n const maxSequence = ENABLE_STORE_CPALL ? 1 : 3;\n for (let sequence = 0; sequence < maxSequence; sequence++) {\n _preferredServiceAreas.push({\n province: undefined,\n district: undefined,\n districtId: undefined,\n subDistrict: undefined,\n subDistrictId: undefined,\n storeCode: undefined,\n storeName: undefined,\n });\n }\n formik.setFieldValue(\n 'preferredServiceAreasForCPALL',\n _preferredServiceAreas,\n );\n }\n }\n\n formik.setFieldValue('serviceAvailableType', e.target.value);\n };\n\n const disableStoreForCPALL = !ENABLE_STORE_CPALL;\n\n return (\n <>\n }\n />\n\n \n \n\n {isDocumentRejected(personalInformation) && (\n \n )}\n\n ข้อมูลส่วนตัว\n \n กรุณากรอกข้อมูล และอัพโหลดเอกสารที่มีเครื่องหมาย * ให้ครบถ้วน แล้วกด\n "บันทึก"\n \n \n \n ที่อยู่ในการจัดส่งใบกำกับภาษี\n \n\n
\n \n \n ใช้ที่อยู่ตามบัตรประชาชน\n \n \n\n {!formik?.values?.taxAddress?.isAddressAccordingToIDCard && (\n <>\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )}\n\n \n\n \n บุคคลที่ติดต่อได้ในกรณีฉุกเฉิน\n \n \n \n \n \n \n \n \n \n \n\n \n {\n setAllowCriminalRecordConsent(!allowCriminalRecordConsent);\n }}\n disabled={disableEdit}\n checked={allowCriminalRecordConsent}\n >\n \n \n\n {/* \n ประเภทการให้บริการ\n \n\n \n \n \n \n {RIDER_TYPE.CPALL}\n {RIDER_TYPE.LOTUS}\n \n \n \n */}\n\n {riderType === RIDER_TYPE.CPALL && (\n
\n \n พื้นที่ที่ต้องการให้บริการ\n \n \n ลำดับที่ 1\n \n \n \n \n \n handleSelectedProvinceForCPALL(0, value, option)\n }\n />\n \n \n \n \n \n handleSelectedDistrictForCPALL(0, value, option)\n }\n onBlur={formik.handleBlur}\n />\n \n \n \n \n \n handleSelectedSubDistrictForCPALL(0, value, option)\n }\n onBlur={formik.handleBlur}\n />\n \n \n \n \n \n handleSelectedStoreForCPALL(0, value, option)\n }\n onBlur={formik.handleBlur}\n notFoundContent={\n loadingSelect ? : undefined\n }\n />\n \n \n \n {!ENABLE_STORE_CPALL && (\n <>\n \n ลำดับที่ 2\n \n \n \n \n \n }\n disabled={\n disableEdit ||\n Boolean(\n !getPreferredServiceAreaStoreForCPALL(\n formik?.values,\n ),\n )\n }\n value={getPreferredServiceAreaProvinceForCPALL(\n formik?.values,\n 1,\n )}\n options={provinceOptions}\n onChange={(value, option) => {\n handleSelectedProvinceForCPALL(1, value, option);\n }}\n />\n \n \n \n \n \n }\n disabled={\n disableEdit ||\n Boolean(\n !getPreferredServiceAreaProvinceForCPALL(\n formik?.values,\n 1,\n ),\n )\n }\n value={getPreferredServiceAreaDistrictForCPALL(\n formik?.values,\n 1,\n )}\n options={districtsOptionsServiceAreaForCPALL[1]}\n onChange={(value, option) =>\n handleSelectedDistrictForCPALL(1, value, option)\n }\n onBlur={formik.handleBlur}\n />\n \n \n \n \n \n handleSelectedSubDistrictForCPALL(1, value, option)\n }\n onBlur={formik.handleBlur}\n />\n \n \n \n \n \n handleSelectedStoreForCPALL(1, value, option)\n }\n onBlur={formik.handleBlur}\n notFoundContent={\n loadingSelect ? : undefined\n }\n />\n \n \n \n \n ลำดับที่ 3\n \n \n \n \n {\n handleSelectedProvinceForCPALL(2, value, option);\n }}\n />\n \n \n \n \n \n }\n disabled={\n disableEdit ||\n Boolean(\n !getPreferredServiceAreaProvinceForCPALL(\n formik?.values,\n 2,\n ),\n )\n }\n value={getPreferredServiceAreaDistrictForCPALL(\n formik?.values,\n 2,\n )}\n options={districtsOptionsServiceAreaForCPALL[2]}\n onChange={(value, option) =>\n handleSelectedDistrictForCPALL(2, value, option)\n }\n onBlur={formik.handleBlur}\n />\n \n \n \n \n \n handleSelectedSubDistrictForCPALL(2, value, option)\n }\n onBlur={formik.handleBlur}\n />\n \n \n \n \n \n handleSelectedStoreForCPALL(2, value, option)\n }\n onBlur={formik.handleBlur}\n notFoundContent={\n loadingSelect ? : undefined\n }\n />\n \n \n \n \n )}\n
\n )}\n\n {riderType === RIDER_TYPE.LOTUS && (\n
\n \n พื้นที่ที่ต้องการให้บริการ\n \n \n ลำดับที่ 1\n \n \n \n \n \n handleSelectedProvince(0, value, option)\n }\n />\n \n \n \n \n \n handleSelectedDistrict(0, value, option)\n }\n onBlur={formik.handleBlur}\n />\n \n \n \n \n ลำดับที่ 2\n \n \n \n \n \n }\n disabled={\n disableEdit ||\n Boolean(\n !getPreferredServiceAreaDistrict(formik?.values),\n )\n }\n value={getPreferredServiceAreaProvince(formik?.values, 1)}\n options={provinceOptions}\n onChange={(value, option) => {\n handleSelectedProvince(1, value, option);\n }}\n />\n \n \n \n \n \n }\n disabled={\n disableEdit ||\n Boolean(\n !getPreferredServiceAreaProvince(formik?.values, 1),\n )\n }\n value={getPreferredServiceAreaDistrict(formik?.values, 1)}\n options={districtsOptionsServiceArea[1]}\n onChange={(value, option) =>\n handleSelectedDistrict(1, value, option)\n }\n onBlur={formik.handleBlur}\n />\n \n \n \n \n ลำดับที่ 3\n \n \n \n \n \n }\n options={provinceOptions}\n value={getPreferredServiceAreaProvince(formik?.values, 2)}\n onChange={(value, option) =>\n handleSelectedProvince(2, value, option)\n }\n />\n \n \n \n \n \n }\n options={districtsOptionsServiceArea[2]}\n value={getPreferredServiceAreaDistrict(formik?.values, 2)}\n onChange={(value, option) =>\n handleSelectedDistrict(2, value, option)\n }\n onBlur={formik.handleBlur}\n />\n \n \n \n
\n )}\n\n \n\n \n บันทึก\n \n \n
\n {formDirty && }\n \n );\n};\n\nexport default PersonalInformationPage;\n","export const assertThaiId = (thaiId: string) => {\n const THAI_13_DIGIT_REGEX = '^([0-9]{13})+$';\n const FRAGMENT_LAST_DIGIT_REGEX = /(\\d{12})(\\d)/;\n\n const is13Digit = thaiId.match(THAI_13_DIGIT_REGEX);\n if (!is13Digit) {\n return false;\n }\n\n const fragmentStr = thaiId.match(FRAGMENT_LAST_DIGIT_REGEX);\n if (!fragmentStr || fragmentStr?.length === 0) {\n return false;\n }\n\n const digits = fragmentStr[1].split('');\n const Initial = 0;\n const totalSum = digits?.reduce((total, digit, index) => {\n return total + (13 - index) * +digit;\n }, Initial);\n\n if (!totalSum) {\n return false;\n }\n\n const checkSumCal = (11 - (totalSum % 11)) % 10;\n const lastDigit = fragmentStr[2];\n\n return `${checkSumCal}` === lastDigit;\n};\n","import { Checkbox, Modal } from 'antd';\nimport { CheckboxChangeEvent } from 'antd/lib/checkbox';\nimport { Button, Col, FormItem, Input, Row, Select, Text } from 'components';\nimport { theme } from 'configs/styled';\nimport { useFormik } from 'formik';\nimport {\n ILocalStorageSignup,\n useLocalStorageSignup,\n} from 'hooks/useLocalStorageSignup';\nimport { useQueryParams } from 'hooks/useQueryParams';\nimport React, { useEffect, useState } from 'react';\nimport { Link, useHistory } from 'react-router-dom';\nimport { authenticationService } from 'services/driverPortal';\nimport {\n IOTPResponse,\n ISignUpVerifyRequest,\n} from 'services/driverPortal/AuthenticationService.interface';\nimport vehicles from 'static/vehicle.json';\nimport * as Yup from 'yup';\nimport {\n IResponseError,\n transformResponseError,\n} from '../../../utils/transformResponseError';\nimport SelectLoading from '../components/SelectLoading';\nimport {\n getAddressProvinces,\n ISelectAddressProps,\n} from '../MainPage/PersonalInformationPage';\nimport { assertThaiId } from 'utils/validateThaiCitizen';\nimport styled from '@emotion/styled';\n\nexport const phoneRegExp = /^[0-9]{10}/;\n\nconst validateSignUp = Yup.object().shape({\n provinceName: Yup.string().nullable().required('กรุณาเลือกจังหวัด'),\n firstname: Yup.string().nullable().required('กรุณาระบุชื่อ'),\n lastname: Yup.string().nullable().required('กรุณาระบุนามสกุล'),\n citizenId: Yup.string()\n .required('กรุณากรอกเลขบัตรประชาชน 13 หลัก')\n .test(\n 'is-validate-thai-citizenId',\n 'กรุณากรอกเลขบัตรประชาชน 13 หลักให้ถูกต้อง',\n (value: string) => assertThaiId(value),\n ),\n phone: Yup.string()\n .matches(phoneRegExp, 'กรุณากรอกเบอร์โทรศัพท์')\n .required('กรุณากรอกเบอร์โทรศัพท์'),\n isAcceptedTerm: Yup.boolean()\n .oneOf([true], 'โปรดยอมรับข้อกำหนดในการให้บริการ')\n .required('โปรดยอมรับข้อกำหนดในการให้บริการ'),\n});\n\nexport interface ISignUpForm {}\n\nconst buildSignUpPayload = (\n request: ISignUpVerifyRequest,\n response: IOTPResponse,\n) => {\n const { otpRefCode, expiredAt, otpDigit } = response?.data;\n return {\n ...request,\n otpRefCode,\n expiredAt,\n otpDigit,\n byPassLogin: true,\n } as ILocalStorageSignup;\n};\n\nconst ModalStyle = styled(Modal)`\n .ant-modal-content {\n font-family: ${theme.fonts.NotoSansTh}, ${theme.fonts.NotoSands};\n }\n`;\n\nconst SignUpForm: React.FC = props => {\n const { search, pushUrl } = useQueryParams();\n const [isDisableSubmit, setIsDisableSubmit] = useState(true);\n const [provinces, setProvinces] = useState([]);\n const [loadingPage, setLoadingPage] = useState(true);\n const localStorageSignup = useLocalStorageSignup();\n const [subcontractorName, setSubcontractorName] = useState('All Now');\n const [\n showInvalidSubContractorModal,\n setShowInvalidSubContractorModal,\n ] = useState(false);\n const history = useHistory();\n\n const gotoOtp = () => {\n pushUrl('/otp', search);\n };\n\n const formik = useFormik({\n initialValues: {\n provinceName: undefined,\n vehicleType: undefined,\n firstname: '',\n lastname: '',\n citizenId: '',\n phone: '',\n referrerCode: '',\n isAcceptedTerm: false,\n vendorName: '',\n },\n validationSchema: validateSignUp,\n onSubmit: async formValues => {\n try {\n formValues.vendorName = subcontractorName;\n if (!formValues.vehicleType && subcontractorName != 'All Now') {\n formValues.vehicleType = '';\n }\n\n const response = await authenticationService.signupVerify(formValues);\n\n const signup = buildSignUpPayload(formValues, response);\n\n localStorageSignup.setValues(signup);\n\n gotoOtp();\n } catch (error) {\n const _error = transformResponseError(error as IResponseError);\n _error.isValidationError && formik.setErrors(_error.errors);\n }\n },\n });\n\n const verifyVendor = async (subcontractorQueryParam: string) => {\n const response = await authenticationService.vendorVerify({\n name: subcontractorQueryParam,\n });\n if (response?.status === 'success') {\n setSubcontractorName(subcontractorQueryParam);\n } else {\n setShowInvalidSubContractorModal(true);\n }\n };\n\n useEffect(() => {\n const searchParams = new URLSearchParams(window.location.search);\n const subcontractorQueryParam = searchParams.get('subcontractorName');\n if (subcontractorQueryParam) {\n verifyVendor(subcontractorQueryParam);\n }\n }, []);\n\n useEffect(() => {\n const getProvinces = async () => {\n const response = await getAddressProvinces();\n const provinces = response?.data?.data;\n if (!provinces) return;\n\n const _provinces = provinces.map(province => {\n return {\n _id: province._id,\n title: province.name.TH,\n value: province.name.TH,\n };\n });\n setProvinces(_provinces);\n setLoadingPage(false);\n };\n getProvinces();\n }, []);\n\n useEffect(() => {\n const { isAcceptedTerm } = formik.values;\n if (isAcceptedTerm) {\n setIsDisableSubmit(false);\n }\n\n if (!isAcceptedTerm) {\n setIsDisableSubmit(true);\n }\n }, [formik.values]);\n\n const errors = formik.errors || {};\n\n const handleSelectProvince = (provinceSelected: string, option: any) => {\n formik.setFieldValue('provinceName', provinceSelected);\n };\n\n const handleSelectVehicle = (vehicleSelected: string) => {\n formik.setFieldValue('vehicleType', vehicleSelected);\n };\n\n const handleCheckTermOfService = (e: CheckboxChangeEvent) => {\n formik.setFieldValue('isAcceptedTerm', e.target.checked);\n };\n\n const shouldDisplayErrorMessage = (key: keyof ISignUpVerifyRequest) => {\n return formik.touched[key] && formik.errors[key];\n };\n\n const handleChangeInput = (e: React.ChangeEvent) => {\n formik.setFieldValue(e.target.name, e.target.value.trim());\n };\n\n return (\n
\n \n : undefined}\n />\n \n {subcontractorName === 'All Now' && (\n \n \n \n )}\n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n\n \n \n \n \n รหัสแนะนำคนขับ\n \n เบอร์โทรศัพท์ของคนขับที่แนะนำคุณ\n

\n \n }\n labelCol={{ span: 24 }}\n colon={false}\n validateStatus={\n shouldDisplayErrorMessage('referrerCode') ? 'error' : ''\n }\n help={shouldDisplayErrorMessage('referrerCode') && errors.referrerCode}\n >\n \n \n \n \n \n \n \n \n \n ข้าพเจ้าได้อ่านและยอมรับ\n \n ข้อตกลงและเงื่อนไขการใช้งานเว็บไซต์\n \n  และ\n \n ประกาศเกี่ยวกับการคุ้มครองข้อมูลส่วนบุคคล (Privacy Notice)\n สำหรับกระบวนการที่เกี่ยวข้องกับคู่ค้า\n \n \n \n \n \n\n \n สมัครสมาชิก\n \n \n มีบัญชีแล้ว?\n \n เข้าสู่ระบบ\n \n \n\n เกิดข้อผิดพลาด\n }\n visible={showInvalidSubContractorModal}\n closable={false}\n footer={null}\n centered\n >\n URL ที่ใช้สมัครไม่ถูกต้อง หรือไม่พบข้อมูลของ Subcontractor ในระบบ\n กรุณาตรวจสอบข้อมูลที่ป้อนหรือเพิ่มข้อมูล Subcontractor ใหม่\n \n \n );\n};\n\nexport default SignUpForm;\n","import { Input, message } from 'antd';\nimport { Button, FormItem, Text } from 'components';\nimport { Link, useHistory } from 'react-router-dom';\nimport { theme } from 'configs/styled';\nimport { useFormik } from 'formik';\nimport {\n ILocalStorageSignup,\n useLocalStorageSignup,\n} from 'hooks/useLocalStorageSignup';\nimport usePrompt from 'hooks/usePrompt';\nimport { useQueryParams } from 'hooks/useQueryParams';\nimport React, { useEffect, useState } from 'react';\nimport { authenticationService } from 'services/driverPortal';\nimport {\n ILoginVerifyRequest,\n IOTPResponse,\n} from 'services/driverPortal/AuthenticationService.interface';\nimport {\n IResponseError,\n transformResponseError,\n} from 'utils/transformResponseError';\nimport * as Yup from 'yup';\nimport { phoneRegExp } from '../SignupPage';\nimport keyBy from 'lodash/keyBy';\n\nconst validateLogin = Yup.object().shape({\n phone: Yup.string()\n .matches(phoneRegExp, 'เบอร์โทรศัพท์นี้ไม่ถูกต้อง หรือไม่มีในระบบ')\n .required('กรุณากรอกเบอร์โทรศัพท์'),\n});\n\nconst buildLoginPayload = (\n request: ILoginVerifyRequest,\n response: IOTPResponse,\n) => {\n const { otpRefCode, expiredAt, otpDigit } = response?.data;\n return {\n ...request,\n otpRefCode,\n expiredAt,\n otpDigit,\n } as ILocalStorageSignup;\n};\n\nconst LoginForm = () => {\n const { search, pushUrl } = useQueryParams();\n const [disableSubmit, setDisableSubmit] = useState(true);\n const localStorageSignup = useLocalStorageSignup();\n const [, setShowPrompt] = usePrompt();\n const history = useHistory();\n\n useEffect(() => {\n setShowPrompt(false);\n\n return () => {\n message.destroy();\n };\n }, []);\n\n const goToOtpPage = () => {\n pushUrl('/otp', search);\n };\n\n const formik = useFormik({\n initialValues: {\n phone: '',\n } as ILoginVerifyRequest,\n validationSchema: validateLogin,\n onSubmit: async formValues => {\n try {\n const response = await authenticationService.loginVerify(formValues);\n //set state to storage\n const login = buildLoginPayload(formValues, response);\n localStorageSignup.setValues(login);\n\n goToOtpPage();\n } catch (error) {\n const _error = error as IResponseError;\n const errorObj = keyBy(_error?.data?.errors, 'fieldName');\n const resultError: { phone?: string } = {};\n if (errorObj?.phone?.errorCodes?.includes('otp.error.phone.invalid')) {\n resultError.phone = 'ท่านยังไม่ได้เป็นสมาชิก กรุณาสมัครสมาชิก';\n } else {\n const _error = transformResponseError(error as IResponseError);\n resultError.phone = _error?.error?.message;\n }\n if (resultError) {\n formik.setErrors(resultError);\n }\n }\n },\n });\n\n const errors = formik.errors || {};\n\n const handlePhone = (e: React.ChangeEvent): void => {\n const phone = e.target.value;\n if (e.target.value.length === 10) {\n setDisableSubmit(false);\n } else {\n setDisableSubmit(true);\n }\n formik.setFieldValue('phone', phone);\n };\n\n return (\n <>\n
\n \n \n \n \n \n ยืนยันและส่งรหัส OTP\n \n \n \n ยังไม่เคยสมัคร?\n \n คลิ๊กเพื่อสมัคร\n \n \n \n \n );\n};\n\nexport default LoginForm;\n","import styled from '@emotion/styled';\nimport { Tabs } from 'antd';\nimport React, { useEffect, useState } from 'react';\nimport { useHistory } from 'react-router-dom';\nimport Banner from './components/Banner';\nimport DriverPortalLayout from './components/DriverPortalLayout';\nimport LoginForm from './LoginPage';\nimport SignUpForm from './SignupPage';\n\nconst { TabPane } = Tabs;\n\nconst TabStyled = styled(Tabs)`\n .ant-tabs-nav-scroll {\n display: flex;\n justify-content: center;\n align-content: center;\n }\n`;\n\nexport interface IDriverPortal {}\n\nconst DriverPortal: React.FC = props => {\n const [activeTab, setActiveTap] = useState('');\n const history = useHistory();\n\n useEffect(() => {\n const pathName = history.location.pathname;\n const setDefaultTab = (pathName: string) => {\n switch (pathName) {\n case '/signup':\n setActiveTap('signup');\n break;\n case '/login':\n setActiveTap('login');\n break;\n default:\n break;\n }\n };\n setDefaultTab(pathName);\n }, [history]);\n\n const handleChange = (key: string) => {\n history.replace(`/${key}${history?.location?.search}`);\n };\n\n return (\n \n \n \n \n \n \n \n \n \n \n \n );\n};\n\nexport default DriverPortal;\n","import { useRef, useEffect } from 'react';\n\nfunction usePrevious(value?: T) {\n const ref = useRef();\n\n // Store current value in ref\n useEffect(() => {\n ref.current = value;\n }, [value]); // Only re-run if value changes\n\n // Return previous value (happens before update in useEffect above)\n return ref.current;\n}\n\nexport default usePrevious;\n","import React, { memo, useRef, useLayoutEffect, useState } from 'react';\nimport usePrevious from 'hooks/usePrevious';\nimport { FormItem, Input } from 'components';\n\nexport interface SingleOTPInputProps\n extends React.InputHTMLAttributes {\n focus?: boolean;\n}\n\nexport function SingleOTPInputComponent(props: SingleOTPInputProps) {\n const { focus, autoFocus, ...rest } = props;\n const inputRef = useRef(null);\n const prevFocus = usePrevious(!!focus);\n const [touch, setTouch] = useState(false);\n useLayoutEffect(() => {\n if (inputRef.current) {\n if (focus && autoFocus) {\n inputRef.current.focus();\n }\n if (focus && autoFocus && focus !== prevFocus) {\n inputRef.current.focus();\n inputRef.current.select();\n }\n }\n }, [autoFocus, focus, prevFocus]);\n\n return (\n \n setTouch(true)} />\n \n );\n}\n\nconst SingleOTPInput = memo(SingleOTPInputComponent);\nexport default SingleOTPInput;\n","import React, {\n memo,\n useState,\n useCallback,\n CSSProperties,\n useEffect,\n} from 'react';\nimport './index.less';\nimport SingleInput from './SingleInput';\n\nexport interface OTPInputProps {\n length: number;\n onChangeOTP: (otp: string) => any;\n\n resetValues?: boolean;\n autoFocus?: boolean;\n isNumberInput?: boolean;\n disabled?: boolean;\n\n style?: CSSProperties;\n className?: string;\n\n inputStyle?: CSSProperties;\n inputClassName?: string;\n}\n\nexport function OTPInputComponent(props: OTPInputProps) {\n const {\n length,\n isNumberInput,\n autoFocus,\n disabled,\n onChangeOTP,\n inputClassName,\n inputStyle,\n resetValues,\n ...rest\n } = props;\n\n const [activeInput, setActiveInput] = useState(0);\n const [otpValues, setOTPValues] = useState(Array(length).fill(''));\n\n useEffect(() => {\n resetValues && setOTPValues(Array(length).fill(''));\n }, [resetValues]);\n\n // Helper to return OTP from inputs\n const handleOtpChange = useCallback(\n (otp: string[]) => {\n const otpValue = otp.join('');\n onChangeOTP(otpValue);\n },\n [onChangeOTP],\n );\n\n // Helper to return value with the right type: 'text' or 'number'\n const getRightValue = useCallback(\n (str: string) => {\n const changedValue = str;\n\n if (!isNumberInput || !changedValue) {\n return changedValue;\n }\n\n return Number(changedValue) >= 0 ? changedValue : '';\n },\n [isNumberInput],\n );\n\n // Change OTP value at focussing input\n const changeCodeAtFocus = useCallback(\n (str: string) => {\n const updatedOTPValues = [...otpValues];\n updatedOTPValues[activeInput] = str[0] || '';\n setOTPValues(updatedOTPValues);\n handleOtpChange(updatedOTPValues);\n },\n [activeInput, handleOtpChange, otpValues],\n );\n\n // Focus `inputIndex` input\n const focusInput = useCallback(\n (inputIndex: number) => {\n const selectedIndex = Math.max(Math.min(length - 1, inputIndex), 0);\n setActiveInput(selectedIndex);\n },\n [length],\n );\n\n const focusPrevInput = useCallback(() => {\n focusInput(activeInput - 1);\n }, [activeInput, focusInput]);\n\n const focusNextInput = useCallback(() => {\n focusInput(activeInput + 1);\n }, [activeInput, focusInput]);\n\n // Handle onFocus input\n const handleOnFocus = useCallback(\n (index: number) => () => {\n focusInput(index);\n },\n [focusInput],\n );\n\n // Handle onChange value for each input\n const handleOnChange = useCallback(\n (e: React.ChangeEvent) => {\n const val = getRightValue(e.currentTarget.value);\n if (!val) {\n e.preventDefault();\n return;\n }\n changeCodeAtFocus(val);\n focusNextInput();\n },\n [changeCodeAtFocus, focusNextInput, getRightValue],\n );\n\n // Handle onBlur input\n const onBlur = useCallback(() => {\n setActiveInput(-1);\n }, []);\n\n // Handle onKeyDown input\n const handleOnKeyDown = useCallback(\n (e: React.KeyboardEvent) => {\n const pressedKey = e.key;\n\n switch (pressedKey) {\n case 'Backspace':\n case 'Delete': {\n e.preventDefault();\n if (otpValues[activeInput]) {\n changeCodeAtFocus('');\n } else {\n focusPrevInput();\n }\n break;\n }\n case 'ArrowLeft': {\n e.preventDefault();\n focusPrevInput();\n break;\n }\n case 'ArrowRight': {\n e.preventDefault();\n focusNextInput();\n break;\n }\n default: {\n if (pressedKey.match(/^[^a-zA-Z0-9]$/)) {\n e.preventDefault();\n }\n\n break;\n }\n }\n },\n [activeInput, changeCodeAtFocus, focusNextInput, focusPrevInput, otpValues],\n );\n\n const handleOnPaste = useCallback(\n (e: React.ClipboardEvent) => {\n e.preventDefault();\n const pastedData = e.clipboardData\n .getData('text/plain')\n .trim()\n .slice(0, length - activeInput)\n .split('');\n if (pastedData) {\n let nextFocusIndex = 0;\n const updatedOTPValues = [...otpValues];\n updatedOTPValues.forEach((val, index) => {\n if (index >= activeInput) {\n const changedValue = getRightValue(pastedData.shift() || val);\n if (changedValue) {\n updatedOTPValues[index] = changedValue;\n nextFocusIndex = index;\n }\n }\n });\n setOTPValues(updatedOTPValues);\n setActiveInput(Math.min(nextFocusIndex + 1, length - 1));\n }\n },\n [activeInput, getRightValue, length, otpValues],\n );\n\n return (\n
\n {Array(length)\n .fill('')\n .map((_, index) => (\n \n ))}\n
\n );\n}\n\nconst OTPInput = memo(OTPInputComponent);\nexport default OTPInput;\n","export interface ILoginWithPhoneRequest {\n type: LoginType;\n otpCode: string;\n otpRefCode: string;\n phone: string;\n}\n\nexport interface ILoginWithGoogleRequest {\n type: LoginType;\n googleAccessToken: string;\n}\n\nexport interface ILoginResponse {\n data: ILoggedInData;\n timestamp: string;\n}\n\nexport interface ILoginVerifyRequest extends IOTPRequest {}\n\nexport interface ISignUpRequest extends ISignUpVerifyRequest {\n otpCode: string;\n otpRefCode: string;\n vendorName: string;\n}\n\nexport interface ISignUpVerifyRequest extends IOTPRequest {\n provinceId?: string;\n provinceName?: string;\n vehicleType?: string;\n firstname: string;\n lastname: string;\n citizenId: string;\n referrerCode?: string;\n isAcceptedTerm: boolean;\n byPassLogin?: boolean;\n vendorName: string;\n}\n\nexport enum LoginType {\n PHONE = 'phone',\n GOOGLE = 'google',\n}\n\nexport enum VendorName {\n All_Now = 'All Now',\n}\n\nexport interface IOTPRequest {\n phone: string;\n}\n\nexport interface IOTPResponse {\n data: IOTP;\n timestamp: string;\n}\n\ninterface IOTP {\n msg: string;\n otpRefCode: string;\n expiredAt: string;\n phone: string;\n otpDigit: number;\n}\n\nclass IVendorResponseData {\n name!: string;\n}\n\nexport class IVendorResponse {\n status!:string;\n data!: IVendorResponseData;\n timestamp!: string;\n}\n\n\n\ninterface ILoggedInData {\n token: string;\n refreshToken: string;\n googleId?: string;\n googleProfile?: { email?: string };\n userId: string;\n}\n\nexport interface IRequestHeader {\n authorization?: string | null;\n apiKey?: string;\n projectId?: string;\n companyId?: string;\n idToken?: string;\n}\n\ninterface IGoogleProfile {\n email: string;\n}\n\ninterface ILinkGoogle {\n googleAccessToken: string;\n otpRefCode: string;\n googleId: string;\n googleProfile: IGoogleProfile;\n}\n\nexport interface ILinkGoogleResponse {\n data: ILinkGoogle;\n timestamp: string;\n}\n\nexport class GetVendorRequest {\n name?: string;\n}\n\n","import React, { useCallback, useEffect, useState } from 'react';\n\nexport interface ICountDown {\n expiredAt: string;\n onChangeSeconds: (seconds: number) => any;\n}\n\nfunction convertMillisecondsToSeconds(milliseconds: number) {\n if (milliseconds <= 0) return 0;\n return Math.floor(milliseconds / 1000);\n}\n\nconst Countdown: React.FC = ({ expiredAt, onChangeSeconds }) => {\n const [remainingTime, setRemainingTime] = useState(0);\n const [seconds, setSeconds] = useState(0);\n const [endTime, setEndTime] = useState(new Date().getTime() + remainingTime);\n\n useEffect(() => {\n const nowTime = new Date().getTime();\n const expiredAtTime = new Date(expiredAt).getTime();\n const newRemainingTime = expiredAtTime - nowTime;\n setRemainingTime(newRemainingTime);\n setEndTime(nowTime + newRemainingTime);\n setSeconds(convertMillisecondsToSeconds(newRemainingTime));\n }, [expiredAt]);\n\n const handleOtpChange = useCallback(\n (countDownSeconds: number) => {\n setSeconds(countDownSeconds);\n onChangeSeconds(countDownSeconds);\n },\n [seconds],\n );\n\n useEffect(() => {\n const intervalId = setInterval(() => {\n const newRemainingTime = Number(endTime - new Date().getTime());\n\n if (newRemainingTime <= 0) {\n clearInterval(intervalId);\n setRemainingTime(0);\n } else {\n setRemainingTime(newRemainingTime);\n\n const prevSeconds = seconds;\n const nextSeconds = convertMillisecondsToSeconds(newRemainingTime);\n\n if (prevSeconds !== nextSeconds) {\n handleOtpChange(nextSeconds);\n }\n }\n });\n\n return () => clearInterval(intervalId);\n }, [seconds]);\n\n return <>{seconds} ;\n};\n\nexport default Countdown;\n","import { FormItem } from 'components';\nimport { Button } from 'components/Button';\nimport OTPInput from 'components/OTPInput';\nimport { useFormik } from 'formik';\nimport {\n ILocalStorageSignup,\n useLocalStorageSignup,\n} from 'hooks/useLocalStorageSignup';\nimport React, { useCallback, useState } from 'react';\nimport { authenticationService } from 'services/driverPortal';\nimport {\n ILoginWithPhoneRequest,\n ISignUpRequest,\n LoginType,\n VendorName,\n} from 'services/driverPortal/AuthenticationService.interface';\nimport {\n IResponseError,\n transformResponseError,\n} from 'utils/transformResponseError';\nimport CountDown from '../components/CountDown';\nimport TextBold from '../components/TextBold';\nimport TextRegular from '../components/TextRegular';\nimport Title from '../components/Title';\nimport { theme } from '../../../configs/styled';\nimport { useQueryParams } from 'hooks/useQueryParams';\n\nfunction disableButtonRequestOTP(\n otpCountdownSeconds: number,\n disableRequestOTP: boolean,\n) {\n if (otpCountdownSeconds === 0) return false;\n return disableRequestOTP;\n}\n\nfunction defaultOTPExpiredAt() {\n const t = new Date().setSeconds(0);\n return new Date(t).toISOString();\n}\n\nfunction buildLoginWithPhonePayload(\n phone: string,\n otpCode: string,\n otpRefCode: string,\n): ILoginWithPhoneRequest {\n return { type: LoginType.PHONE, phone, otpCode, otpRefCode };\n}\n\nfunction buildSignUpPayload(\n signup: ILocalStorageSignup,\n otpCode: string,\n otpRefCode: string,\n): ISignUpRequest {\n return { ...signup, otpCode, otpRefCode };\n}\n\nasync function handlerSubmitOTPForm(\n signup: ILocalStorageSignup,\n otpValues: string,\n otpRefCode: string,\n) {\n const { firstname = '', phone } = signup;\n const isSignupSubmit = firstname.length > 0;\n if (isSignupSubmit) {\n const signupPayload = buildSignUpPayload(signup, otpValues, otpRefCode);\n await authenticationService.signup(signupPayload);\n } else {\n const loginPayload = buildLoginWithPhonePayload(\n phone,\n otpValues,\n otpRefCode,\n );\n await authenticationService.login(loginPayload);\n }\n}\n\nconst OTPForm = () => {\n const { search, pushUrl } = useQueryParams();\n const sessionSignup = useLocalStorageSignup();\n const signup = sessionSignup.getValues();\n\n const otpLength = Number(signup?.otpDigit) || 6;\n const initialOtpExpiredAt = signup?.expiredAt || defaultOTPExpiredAt();\n const initialOtpRefCode = signup?.otpRefCode || '';\n const phone = signup?.phone || '';\n\n if (phone.length === 0) {\n pushUrl('/login', search);\n }\n\n const goToMainPage = () => {\n pushUrl('/', search);\n };\n\n const [disableSubmit, setDisableSubmit] = useState(true);\n const [disableRequestOTP, setDisableRequestOTP] = useState(true);\n const [visibleRequestOTPText, setVisibleRequestOTPText] = useState(true);\n const [resetOtpValues, setResetOtpValues] = useState(false);\n const [otpCountDownSeconds, setOtpCountDownSeconds] = useState(0);\n const [otpExpiredAt, setOtpExpiredAt] = useState(initialOtpExpiredAt);\n const [otpRefCode, setOtpRefCode] = useState(initialOtpRefCode);\n\n const formik = useFormik({\n initialValues: { otpCode: '' },\n onSubmit: async formValues => {\n try {\n const { otpCode } = formValues;\n signup && (await handlerSubmitOTPForm(signup, otpCode, otpRefCode));\n sessionSignup.clearValues();\n goToMainPage();\n } catch (error) {\n const _error = transformResponseError(error as IResponseError);\n _error.isValidationError && formik.setErrors(_error.errors);\n setResetOtpValues(true);\n }\n },\n });\n\n const handleClickResendOTP = async () => {\n try {\n const response = await authenticationService.requestOTP({ phone });\n const { otpRefCode, expiredAt, otpDigit } = response?.data;\n\n formik.resetForm({});\n setDisableSubmit(true);\n setResetOtpValues(true);\n setDisableRequestOTP(true);\n setVisibleRequestOTPText(true);\n setOtpExpiredAt(expiredAt);\n setOtpRefCode(otpRefCode);\n\n sessionSignup.setValues({\n ...signup,\n otpRefCode,\n expiredAt,\n otpDigit,\n } as ILocalStorageSignup);\n } catch (error) {\n const _error = transformResponseError(error as IResponseError);\n _error.isValidationError && formik.setErrors(_error.errors);\n }\n };\n\n const handleOtpValueChange = (otpCode: string): void => {\n if (otpLength === otpCode.length) {\n setDisableSubmit(false);\n } else {\n setDisableSubmit(true);\n }\n formik.setFieldValue('otpCode', otpCode);\n setResetOtpValues(false);\n };\n\n const handleCountDownChange = useCallback(\n (seconds: number) => {\n setOtpCountDownSeconds(seconds);\n if (seconds === 0) {\n setVisibleRequestOTPText(false);\n setDisableRequestOTP(false);\n }\n },\n [disableRequestOTP],\n );\n\n return (\n
\n ยืนยันด้วยรหัส OTP\n \n กรุณากรอกรหัส OTP เป็นตัวเลข {otpLength} หลักที่ส่งไปยังเบอร์โทรศัพท์\n
\n {phone}\n เลขที่อ้างอิง\n {otpRefCode}\n
\n \n \n \n\n
\n {visibleRequestOTPText && (\n
\n กดส่งรหัสใหม่อีกครั้ง หากไม่ได้รับภายใน:\n \n \n วินาที\n \n
\n )}\n\n \n ส่งรหัส OTP อีกครั้ง\n \n
\n\n {\n formik.handleSubmit();\n }}\n >\n ยืนยัน\n \n \n );\n};\n\nexport default OTPForm;\n","import {\n CheckCircleOutlined,\n ClockCircleOutlined,\n ExclamationCircleOutlined,\n} from '@ant-design/icons';\nimport { theme } from 'configs/styled';\nimport React from 'react';\nimport { StatusTag } from './DocumentsReviewStatus';\nimport { useIsWebView } from 'hooks/useIsWebView';\nimport { MENU_STATUSES } from 'services/driverPortal/DriverPortal.interface';\n\nenum Status {\n PENDING = 'ยังไม่ได้ส่ง',\n SUBMITTED = 'ส่งแล้ว',\n REJECTED = 'แก้ไขข้อมูล',\n APPROVED = 'อนุมัติ',\n EXPIRED = 'หมดอายุ',\n}\ninterface IDocumentStatusProps {\n name: string;\n color: string;\n textColor: string;\n}\n\nconst webViewDisplayStatuses: string[] = [\n Status.PENDING,\n Status.SUBMITTED,\n Status.REJECTED,\n Status.EXPIRED,\n];\n\nconst webPortalDisplayStatuses: string[] = [\n Status.SUBMITTED,\n Status.REJECTED,\n Status.APPROVED,\n Status.EXPIRED,\n];\n\nconst documentStatuses: IDocumentStatusProps[] = [\n {\n name: MENU_STATUSES.PENDING,\n color: theme.palettes.documentStatus.pending,\n textColor: theme.palettes.documentStatusText.pending,\n },\n {\n name: MENU_STATUSES.SUBMITTED,\n color: theme.palettes.documentStatus.submitted,\n textColor: theme.palettes.documentStatusText.submitted,\n },\n {\n name: MENU_STATUSES.REJECTED,\n color: theme.palettes.documentsStatus.rejected,\n textColor: theme.palettes.documentStatusText.rejected,\n },\n {\n name: MENU_STATUSES.APPROVED,\n color: theme.palettes.documentsStatus.approved,\n textColor: theme.palettes.documentStatusText.approved,\n },\n {\n name: MENU_STATUSES.EXPIRED,\n color: theme.palettes.documentsStatus.expired,\n textColor: theme.palettes.documentStatusText.expired,\n },\n];\n\nfunction getStatus(name: string) {\n return documentStatuses.find(status => status?.name === name?.trim());\n}\n\nfunction getIcon(status: IDocumentStatusProps) {\n const statusName = status.name.trim();\n if (statusName === Status.REJECTED || statusName === Status.EXPIRED) {\n return ;\n } else if (statusName === Status.PENDING) {\n return ;\n } else {\n return ;\n }\n}\n\nfunction shouldDisplay(isWebView: boolean, status: IDocumentStatusProps) {\n const statusName = status.name.trim();\n if (isWebView && webViewDisplayStatuses.includes(statusName)) {\n return true;\n } else if (!isWebView && webPortalDisplayStatuses.includes(statusName)) {\n return true;\n } else {\n return false;\n }\n}\n\ninterface DocumentStatusProps {\n statusName: string;\n}\n\nconst DocumentStatus: React.FC = props => {\n const isWebView = useIsWebView();\n const { statusName } = props;\n const status = getStatus(statusName);\n return status && shouldDisplay(isWebView, status) ? (\n <>\n \n {status.name}\n \n \n ) : (\n <>\n );\n};\n\nexport default DocumentStatus;\n","import React from 'react';\nimport DriverPortalLayout from '../components/DriverPortalLayout';\nimport HeaderPortal from '../components/HeaderPortal';\nimport OTPForm from './OTPForm';\n\nexport interface IOTPPage {}\n\nconst OTPPage: React.FC = () => {\n return (\n <>\n \n \n \n \n \n );\n};\n\nexport default OTPPage;\n","import { Spin } from 'components';\nimport React from 'react';\n\nconst Loading = () => {\n return (\n \n \n \n );\n};\n\nexport default Loading;\n","import { Row } from 'antd';\nimport ApproveIcon from 'assets/images/driver-portal/approval.svg';\nimport googlePlayLogo from 'assets/images/driver-portal/google-play-download-android-app.svg';\nimport { theme } from 'configs/styled';\nimport React from 'react';\nimport { ImageLogo } from '../components/HeaderPortal.style';\nimport TextRegular from '../components/TextRegular';\nimport Title from '../components/Title';\nimport Alert from '../components/Alert';\n\nexport interface IApproval {\n alertMessage?: string;\n}\n\nconst Approval: React.FC = props => {\n const GOOGLE_PLAY_STORE = process.env.REACT_APP_GOOGLE_PLAY_STORE || '';\n\n const { alertMessage } = props;\n\n const handleClickImage = () => {\n window.location.href = GOOGLE_PLAY_STORE;\n };\n\n return (\n <>\n {alertMessage ? (\n \n \n \n ) : null}\n \n \n \n \n คุณผ่านการอนุมัติแล้ว\n\n \n \n ยินดีต้อนรับ! ตอนนี้คุณเป็น Driver ของ ALL NOW เรียบร้อยแล้ว\n
\n คุณสามารถดาวน์โหลดแอปพลิเคชั่น DRIVS\n
\n และรอการติดต่อกลับจากเจ้าหน้าที่เพื่อรับรหัสการเข้าใช้งาน\n
\n \n\n \n \n \n
\n \n );\n};\nexport default Approval;\n","import { RightOutlined } from '@ant-design/icons';\nimport { List } from 'antd';\nimport TextRegular from 'containers/DriverPortalPage/components/TextRegular';\nimport { useIsWebView } from 'hooks/useIsWebView';\nimport { useQueryParams } from 'hooks/useQueryParams';\nimport React from 'react';\nimport { IMenu } from '.';\nimport { theme } from '../../../../../configs/styled';\nimport DocumentStatus from '../DocumentStatus';\nimport './Item.css';\ninterface IMenuItemProps {\n item: IMenu;\n}\n\nconst MenuItem: React.FC = props => {\n const isWebView = useIsWebView();\n const { search, pushUrl } = useQueryParams();\n\n const { item } = props;\n\n const handleClickItem = (item: IMenu) => {\n if (!item.disabled) {\n pushUrl(`${item.path}`, search);\n }\n };\n\n return (\n handleClickItem(item)}>\n \n {item.required && !isWebView && (\n * \n )}\n \n {item.title}\n \n {!item.required && !isWebView && (\n (ไม่บังคับ)\n )}\n \n }\n description={\n <>\n {item.description && (\n \n {item.description}\n \n )}\n \n }\n />\n {!item.disabled && (\n <>\n \n \n \n )}\n \n );\n};\n\nexport default MenuItem;\n","import { List } from 'antd';\nimport { theme } from 'configs/styled';\nimport { useIsWebView } from 'hooks/useIsWebView';\nimport React from 'react';\nimport MenuItem from './Item';\nexport interface IMenu {\n title: string;\n description?: string;\n code?: string;\n required: boolean;\n disabled?: boolean;\n path: string;\n status: string;\n}\n\ninterface IMenuProps {\n menu: IMenu[];\n}\n\nfunction buildWebViewMenuConfigs(menuConfigs: IMenu[]) {\n const menuConfigsExcludeOnlineTraining = menuConfigs.filter(\n menu => menu.code !== 'onlineTraining',\n );\n const _menuConfigs = menuConfigsExcludeOnlineTraining.map(menu => {\n if (menu.code === 'identity' || menu.code === 'driverLicense') {\n return {\n ...menu,\n description: 'หากต้องการแก้ใขเอกสาร กรุณาติดต่อ 02-826-7995',\n disabled: true,\n };\n } else {\n return menu;\n }\n });\n return _menuConfigs;\n}\n\nfunction getMenuConfigs(isWebView: boolean, menu: IMenu[]) {\n if (isWebView) return buildWebViewMenuConfigs(menu);\n return menu;\n}\n\nconst MenuList: React.FC = props => {\n const { menu } = props;\n const isWebView = useIsWebView();\n const menuConfigs = getMenuConfigs(isWebView, menu);\n\n return (\n \n }\n />\n \n );\n};\n\nexport default MenuList;\n","import { Row } from 'antd';\nimport RejectIcon from 'assets/images/driver-portal/rejection.svg';\nimport { theme } from 'configs/styled';\nimport React from 'react';\nimport { ImageLogo } from '../components/HeaderPortal.style';\nimport TextRegular from '../components/TextRegular';\nimport Title from '../components/Title';\n\nconst Rejection: React.FC = () => {\n return (\n <>\n \n \n \n \n ขออภัย คุณไม่ผ่านการอนุมัติ\n\n \n \n ขอขอบคุณที่สนใจเข้าร่วมสมัครเป็น Driver ของ ALL NOW\n
\n เนื่องจากเหตุผลบางประการทำให้เราต้องปฏิเสธใบสมัครของคุณ\n
\n
\n หากมีการรับสมัคร Driver อื่นๆ ในอนาคต\n
\n ทางเราหวังว่าคุณจะเปิดโอกาสให้เจ้าหน้าที่ของเราติดต่อไปอีกครั้ง\n
\n \n
\n \n );\n};\n\nexport default Rejection;\n","import { Button } from 'components';\nimport { theme } from 'configs/styled';\nimport { useIsWebView } from 'hooks/useIsWebView';\nimport usePrompt from 'hooks/usePrompt';\nimport { useQueryParams } from 'hooks/useQueryParams';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport { Action, useMutation, useQuery } from 'react-fetching-library';\nimport { authenticationService } from 'services/driverPortal';\nimport {\n APPROVE_STATUS,\n IDocument,\n IDriverDocumentsReview,\n IMainResponse,\n IUpdateReviewStatusRequest,\n IUpdateReviewStatusResponse,\n MENU_STATUSES,\n STATUS_RESPONSE,\n} from 'services/driverPortal/DriverPortal.interface';\nimport {\n getDocumentsReviewMessage,\n mapDocumentsReviewStatus,\n} from 'utils/documentRejected';\nimport {\n IMutationResponseError,\n transformMutationResponseError,\n} from 'utils/transformResponseError';\nimport Alert from '../components/Alert';\nimport Divider from '../components/Divider';\nimport DriverPortalLayout from '../components/DriverPortalLayout';\nimport Loading from '../components/Loading';\nimport TextRegular from '../components/TextRegular';\nimport Title from '../components/Title';\nimport Approval from './Approval';\nimport HeaderPortal from './components/HeaderPortal';\nimport MenuList from './components/Menu';\nimport './index.less';\nimport Rejection from './Rejection';\n\nexport interface IMainPageProps {}\n\ninterface IMainMenuProps {\n driverDocumentsReview: IDriverDocumentsReview;\n onReload: () => void;\n}\n\nfunction getRequiredDocuments(documents: IDocument[]) {\n return documents.filter(document => document.required);\n}\n\nfunction getPendingDocuments(documents: IDocument[]) {\n return documents.filter(\n document => document.status === MENU_STATUSES.PENDING,\n );\n}\n\nfunction isWaitingApprove(approveStatus: APPROVE_STATUS) {\n return approveStatus === APPROVE_STATUS.WAITING_APPROVE;\n}\n\nfunction allowSubmitDocument(documents: IDocument[]) {\n const requiredDocuments = getRequiredDocuments(documents);\n\n const pendingDocuments = getPendingDocuments(requiredDocuments);\n\n return pendingDocuments.length === 0;\n}\n\nconst MainMenu: React.FC = props => {\n const { search, pushUrl } = useQueryParams();\n const isWebView = useIsWebView();\n\n const { userId, accessToken } = authenticationService.getUserToken();\n const { driverDocumentsReview, onReload } = props;\n const {\n documents,\n documentsReviewStatus,\n approveStatus,\n } = driverDocumentsReview;\n\n const [showPrompt, setShowPrompt] = usePrompt();\n\n const updateReviewStatusAction = (\n request: IUpdateReviewStatusRequest,\n ): Action => {\n return {\n method: 'POST',\n endpoint: `/driver/portal/v1/ondemand/drivers/${userId}/documents/submit`,\n body: request,\n headers: {\n Authorization: accessToken,\n },\n };\n };\n\n const goToLoginPage = () => {\n pushUrl('/login', search);\n };\n\n const { mutate } = useMutation(updateReviewStatusAction);\n\n const [isDisableSubmit, setIsDisableSubmit] = useState(\n !allowSubmitDocument(documents),\n );\n\n useEffect(() => {\n setShowPrompt(false);\n }, [showPrompt, setShowPrompt]);\n\n const reviewMessage = getDocumentsReviewMessage(documentsReviewStatus);\n\n const handlerMutateError = async (\n errorStatus?: number,\n payload?: IUpdateReviewStatusResponse,\n ) => {\n if (errorStatus === STATUS_RESPONSE.UNAUTHORIZED) {\n await authenticationService.logout();\n goToLoginPage();\n } else {\n transformMutationResponseError(payload as IMutationResponseError);\n }\n };\n\n const handleClickSubmitDocumentReview = async () => {\n const { error: mutateError, status, payload } = await mutate({\n status: APPROVE_STATUS.WAITING_APPROVE,\n });\n if (mutateError) {\n await handlerMutateError(status, payload);\n } else {\n setIsDisableSubmit(true);\n onReload();\n }\n };\n\n const shouldDisableButtonSubmit = () => {\n return isDisableSubmit;\n };\n\n const shouldHideButtonSubmit = () => {\n return isWaitingApprove(approveStatus);\n };\n\n return (\n <>\n <>\n {!isWebView && reviewMessage && (\n \n )}\n\n ส่งข้อมูลและเอกสาร\n\n {isWebView ? (\n \n หากมีการแก้ใขช้อมูล ระบบจะใช้เวลาดำเนินการ 3-7 วันทำการ\n ในระหว่างดำเนินการ อาจมีการติดต่อจากเจ้าหน้าที่เพื่อ\n สอบถามข้อมูลเพิ่มเติม\n \n ) : (\n \n กรุณากรอกข้อมูล และอัพโหลดเอกสารที่มีเครื่องหมาย * ให้ครบถ้วน แล้วกด\n "ส่งข้อมูลและเอกสาร" เพื่อยืนยันการสมัครสมาชิก\n หากมีข้อสงสัยในการใช้งานกรุณาติดต่อเจ้าหน้าที่ 02-826-7995\n \n )}\n item.code !== 'vehicleInsurance')}\n />\n\n {!isWebView && (\n <>\n \n\n