{"version":3,"file":"index-d683276d.js","sources":["../src/components/OperatorAccountForm.jsx","../node_modules/dayjs/locale/zh-cn.js","../src/components/OperatorTable.jsx","../src/hooks/account/useAccount.js","../src/hooks/account/useAccountUpdate.js","../src/pages/account/AccountPage.jsx","../src/pages/account/FlightPassengers.jsx","../src/pages/account/FlightContacts.jsx","../src/pages/account/index.jsx"],"sourcesContent":["import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { Form } from 'semantic-ui-react';\n\nexport const DefaultData = {\n email: '',\n reEmail: '',\n password: '',\n rePassword: '',\n contactName: '',\n mobile: '',\n wechat: '',\n};\n\nfunction OperatorAccountForm({ formID, data = DefaultData, setData = () => {}, handleSubmit = () => {} }) {\n const [errors, setErrors] = useState({});\n\n const handleOnChange = (e, { name, value }) => {\n setErrors({});\n setData((prev) => {\n return { ...prev, [name]: value };\n });\n };\n\n const onSubmit = () => {\n const newErrors = {};\n if (data.email != data.reEmail) {\n newErrors.email = '邮箱不一致';\n newErrors.reEmail = '邮箱不一致';\n }\n if (data.password.length < 6) {\n newErrors.password = '密码过短';\n }\n if (data.password != data.rePassword) {\n newErrors.rePassword = '密码不一致';\n }\n if (Object.keys(newErrors).length != 0) {\n setErrors(newErrors);\n return;\n }\n handleSubmit();\n };\n\n return (\n
Loading...
}\n {data && (\n <>\n {AccountInfo()}\n {IsChannelUser() == true &&Not Found
\n \n }\n />\n