Auth.js 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662
  1. "use strict";
  2. (wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["pages/Auth"],{
  3. /***/ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/Auth.tsx":
  4. /*!*************************************************************************************************!*\
  5. !*** ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/Auth.tsx ***!
  6. \*************************************************************************************************/
  7. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  8. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  9. /* harmony export */ "default": function() { return /* binding */ Page; }
  10. /* harmony export */ });
  11. /* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
  12. /* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__);
  13. /* harmony import */ var _features_auth_components_Auth__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @features/auth/components/Auth */ "./src/features/auth/components/Auth.tsx");
  14. /* harmony import */ var _features_auth_components_CreatePassword__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @features/auth/components/CreatePassword */ "./src/features/auth/components/CreatePassword.tsx");
  15. /* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
  16. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
  17. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
  18. function Page() {
  19. var router = (0,_tarojs_taro__WEBPACK_IMPORTED_MODULE_0__.useRouter)();
  20. return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_4__.View, {
  21. style: {
  22. backgroundColor: '#000'
  23. },
  24. children: router.params.type === 'createPassword' ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_features_auth_components_CreatePassword__WEBPACK_IMPORTED_MODULE_2__["default"], {}) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_features_auth_components_Auth__WEBPACK_IMPORTED_MODULE_1__["default"], {})
  25. });
  26. }
  27. /***/ }),
  28. /***/ "./src/components/Box.tsx":
  29. /*!********************************!*\
  30. !*** ./src/components/Box.tsx ***!
  31. \********************************/
  32. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  33. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  34. /* harmony export */ "default": function() { return /* binding */ Component; }
  35. /* harmony export */ });
  36. /* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
  37. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
  38. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__);
  39. function Component(props) {
  40. return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_1__.View, {
  41. className: "box-container",
  42. children: props.child
  43. });
  44. }
  45. /***/ }),
  46. /***/ "./src/components/Inputs.tsx":
  47. /*!***********************************!*\
  48. !*** ./src/components/Inputs.tsx ***!
  49. \***********************************/
  50. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  51. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  52. /* harmony export */ "default": function() { return /* binding */ Component; }
  53. /* harmony export */ });
  54. /* harmony import */ var _Users_Work_hola_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
  55. /* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
  56. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
  57. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  58. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
  59. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
  60. function Component(_ref) {
  61. var placeholder = _ref.placeholder,
  62. value = _ref.value,
  63. onChange = _ref.onChange,
  64. disabled = _ref.disabled,
  65. isSecure = _ref.isSecure;
  66. var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(value ? value : ''),
  67. _useState2 = (0,_Users_Work_hola_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState, 2),
  68. inputValue = _useState2[0],
  69. setInputValue = _useState2[1];
  70. var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false),
  71. _useState4 = (0,_Users_Work_hola_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__["default"])(_useState3, 2),
  72. isFocus = _useState4[0],
  73. setIsFocus = _useState4[1];
  74. var handleInputChange = function handleInputChange(e) {
  75. var newValue = e.target.value;
  76. setInputValue(newValue);
  77. onChange(newValue);
  78. };
  79. return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.View, {
  80. children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_3__.Input, {
  81. className: isFocus ? "input input_focus" : "input",
  82. placeholder: placeholder ? placeholder : '',
  83. value: inputValue,
  84. secureTextEntry: isSecure ? true : false,
  85. textContentType: isSecure ? 'password' : 'none',
  86. type: isSecure ? 'password' : 'text',
  87. onInput: handleInputChange,
  88. selectionColor: "#AAFF00",
  89. disabled: disabled ? disabled : false,
  90. onFocus: function onFocus() {
  91. setIsFocus(true);
  92. },
  93. onBlur: function onBlur() {
  94. setIsFocus(false);
  95. }
  96. })
  97. });
  98. }
  99. /***/ }),
  100. /***/ "./src/features/auth/components/Auth.tsx":
  101. /*!***********************************************!*\
  102. !*** ./src/features/auth/components/Auth.tsx ***!
  103. \***********************************************/
  104. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  105. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  106. /* harmony export */ "default": function() { return /* binding */ Auth; }
  107. /* harmony export */ });
  108. /* harmony import */ var _Users_Work_hola_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
  109. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
  110. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  111. /* harmony import */ var _Login__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Login */ "./src/features/auth/components/Login.tsx");
  112. /* harmony import */ var _CreateAccount__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./CreateAccount */ "./src/features/auth/components/CreateAccount.tsx");
  113. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
  114. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
  115. function Auth() {
  116. var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(true),
  117. _useState2 = (0,_Users_Work_hola_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_4__["default"])(_useState, 2),
  118. isSignup = _useState2[0],
  119. setIsSignup = _useState2[1];
  120. if (isSignup) return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_CreateAccount__WEBPACK_IMPORTED_MODULE_2__["default"], {
  121. login: function login() {
  122. return setIsSignup(false);
  123. }
  124. });
  125. return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_Login__WEBPACK_IMPORTED_MODULE_1__["default"], {
  126. register: function register() {
  127. return setIsSignup(true);
  128. }
  129. });
  130. }
  131. /***/ }),
  132. /***/ "./src/features/auth/components/CreateAccount.tsx":
  133. /*!********************************************************!*\
  134. !*** ./src/features/auth/components/CreateAccount.tsx ***!
  135. \********************************************************/
  136. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  137. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  138. /* harmony export */ "default": function() { return /* binding */ Component; }
  139. /* harmony export */ });
  140. /* harmony import */ var _Users_Work_hola_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
  141. /* harmony import */ var _components_Box__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/components/Box */ "./src/components/Box.tsx");
  142. /* harmony import */ var _components_Buttons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components/Buttons */ "./src/components/Buttons.tsx");
  143. /* harmony import */ var _components_Inputs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/Inputs */ "./src/components/Inputs.tsx");
  144. /* harmony import */ var _components_Texts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components/Texts */ "./src/components/Texts.tsx");
  145. /* harmony import */ var _utils_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/types */ "./src/utils/types.ts");
  146. /* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
  147. /* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
  148. /* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_5__);
  149. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
  150. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__);
  151. /* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-i18next */ "webpack/container/remote/react-i18next");
  152. /* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_i18next__WEBPACK_IMPORTED_MODULE_7__);
  153. /* harmony import */ var _assets_svg_check_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @assets/svg/check.svg */ "./src/assets/svg/check.svg");
  154. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
  155. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__);
  156. function Component(props) {
  157. var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_7__.useTranslation)(),
  158. t = _useTranslation.t;
  159. var _useState = (0,react__WEBPACK_IMPORTED_MODULE_6__.useState)(''),
  160. _useState2 = (0,_Users_Work_hola_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_10__["default"])(_useState, 2),
  161. name = _useState2[0],
  162. setName = _useState2[1];
  163. var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_6__.useState)(''),
  164. _useState4 = (0,_Users_Work_hola_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_10__["default"])(_useState3, 2),
  165. email = _useState4[0],
  166. setEmail = _useState4[1];
  167. var handleNameChange = function handleNameChange(value) {
  168. setName(value);
  169. };
  170. var handleEmailChange = function handleEmailChange(value) {
  171. setEmail(value);
  172. };
  173. var isButtonDisabled = name === '' || email === '';
  174. function signupComponent() {
  175. return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_11__.View, {
  176. children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_Inputs__WEBPACK_IMPORTED_MODULE_2__["default"], {
  177. value: name,
  178. onChange: handleNameChange,
  179. placeholder: t('feature.auth.create_account.input_username_placeholder')
  180. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_11__.View, {
  181. style: {
  182. height: 20
  183. }
  184. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_Inputs__WEBPACK_IMPORTED_MODULE_2__["default"], {
  185. value: email,
  186. onChange: handleEmailChange,
  187. placeholder: t('feature.auth.create_account.input_email_placeholder')
  188. })]
  189. });
  190. }
  191. function registerF() {
  192. if (isButtonDisabled) {
  193. return;
  194. }
  195. __webpack_require__.g.username = name;
  196. __webpack_require__.g.email = email;
  197. setTimeout(function () {
  198. _tarojs_taro__WEBPACK_IMPORTED_MODULE_5___default().navigateTo({
  199. url: "/pages/Auth?type=createPassword&name=".concat(name, "&email=").concat(email)
  200. });
  201. }, 1000);
  202. // setTimeout(() => {
  203. // Taro.navigateBack()
  204. // Taro.redirectTo({
  205. // url: '/pages/ChooseScenario'
  206. // })
  207. // },1000)
  208. }
  209. return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_11__.View, {
  210. style: {
  211. backgroundColor: '#000',
  212. flex: 1,
  213. flexDirection: 'column',
  214. display: 'flex',
  215. width: '100%',
  216. height: '100%'
  217. },
  218. children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_Texts__WEBPACK_IMPORTED_MODULE_3__["default"], {
  219. text: t('feature.auth.create_account.title'),
  220. type: _utils_types__WEBPACK_IMPORTED_MODULE_4__.TextType.primary
  221. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_Texts__WEBPACK_IMPORTED_MODULE_3__["default"], {
  222. text: t('feature.auth.create_account.sub_title'),
  223. type: _utils_types__WEBPACK_IMPORTED_MODULE_4__.TextType.secondary
  224. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_Box__WEBPACK_IMPORTED_MODULE_0__["default"], {
  225. child: signupComponent()
  226. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_components_Buttons__WEBPACK_IMPORTED_MODULE_1__["default"], {
  227. onClick: registerF,
  228. title: t('feature.auth.create_account.btn_next'),
  229. style: {
  230. marginLeft: 23,
  231. marginRight: 23,
  232. marginTop: 20,
  233. marginBottom: 20
  234. },
  235. status: isButtonDisabled ? _utils_types__WEBPACK_IMPORTED_MODULE_4__.ComponentStatus.disable : _utils_types__WEBPACK_IMPORTED_MODULE_4__.ComponentStatus.enable
  236. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_11__.View, {
  237. className: "agree_view",
  238. children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_11__.Image, {
  239. style: "width:12px;height:12px;",
  240. src: _assets_svg_check_svg__WEBPACK_IMPORTED_MODULE_8__
  241. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_11__.Text, {
  242. className: "agree_text",
  243. children: t('page.auth.agreement')
  244. })]
  245. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_11__.View, {
  246. style: {
  247. flex: 1
  248. }
  249. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_11__.View, {
  250. className: "footer",
  251. children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_11__.Text, {
  252. className: "have_account",
  253. children: t('feature.auth.create_account.footer_desc')
  254. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_11__.Text, {
  255. className: "login",
  256. onClick: function onClick() {
  257. return props.login();
  258. },
  259. children: t('feature.auth.create_account.footer_login')
  260. })]
  261. })]
  262. });
  263. }
  264. /***/ }),
  265. /***/ "./src/features/auth/components/CreatePassword.tsx":
  266. /*!*********************************************************!*\
  267. !*** ./src/features/auth/components/CreatePassword.tsx ***!
  268. \*********************************************************/
  269. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  270. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  271. /* harmony export */ "default": function() { return /* binding */ Component; }
  272. /* harmony export */ });
  273. /* harmony import */ var _Users_Work_hola_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
  274. /* harmony import */ var _components_Box__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/components/Box */ "./src/components/Box.tsx");
  275. /* harmony import */ var _components_Buttons__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/components/Buttons */ "./src/components/Buttons.tsx");
  276. /* harmony import */ var _components_Inputs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/components/Inputs */ "./src/components/Inputs.tsx");
  277. /* harmony import */ var _components_Texts__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/components/Texts */ "./src/components/Texts.tsx");
  278. /* harmony import */ var _utils_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/utils/types */ "./src/utils/types.ts");
  279. /* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
  280. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
  281. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);
  282. /* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! react-i18next */ "webpack/container/remote/react-i18next");
  283. /* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(react_i18next__WEBPACK_IMPORTED_MODULE_6__);
  284. /* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! react-redux */ "webpack/container/remote/react-redux");
  285. /* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(react_redux__WEBPACK_IMPORTED_MODULE_7__);
  286. /* harmony import */ var _assets_svg_check_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @assets/svg/check.svg */ "./src/assets/svg/check.svg");
  287. /* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
  288. /* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_9__);
  289. /* harmony import */ var _services_user__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @/services/user */ "./src/services/user.tsx");
  290. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
  291. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__);
  292. function Component(prop) {
  293. var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_6__.useTranslation)(),
  294. t = _useTranslation.t;
  295. var dispatch = (0,react_redux__WEBPACK_IMPORTED_MODULE_7__.useDispatch)();
  296. var _useState = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(''),
  297. _useState2 = (0,_Users_Work_hola_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_12__["default"])(_useState, 2),
  298. password = _useState2[0],
  299. setPassword = _useState2[1];
  300. var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_5__.useState)(''),
  301. _useState4 = (0,_Users_Work_hola_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_12__["default"])(_useState3, 2),
  302. repeat = _useState4[0],
  303. setRepeat = _useState4[1];
  304. var handlePasswordChange = function handlePasswordChange(value) {
  305. setPassword(value);
  306. };
  307. var handleRepeatChange = function handleRepeatChange(value) {
  308. setRepeat(value);
  309. };
  310. var isButtonDisabled = password === '' || repeat === '';
  311. var user = (0,react_redux__WEBPACK_IMPORTED_MODULE_7__.useSelector)(function (state) {
  312. return state.user;
  313. });
  314. (0,react__WEBPACK_IMPORTED_MODULE_5__.useEffect)(function () {
  315. if (user.isLogin) {
  316. _tarojs_taro__WEBPACK_IMPORTED_MODULE_9___default().navigateBack({
  317. delta: 2
  318. });
  319. _tarojs_taro__WEBPACK_IMPORTED_MODULE_9___default().redirectTo({
  320. url: '/pages/ChooseScenario'
  321. });
  322. }
  323. }, [user.isLogin]);
  324. function loginComponent() {
  325. return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
  326. children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_Inputs__WEBPACK_IMPORTED_MODULE_2__["default"], {
  327. value: password,
  328. isSecure: true,
  329. onChange: handlePasswordChange,
  330. placeholder: t('feature.auth.create_password.input_password_placeholder')
  331. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
  332. style: {
  333. height: 20
  334. }
  335. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_Inputs__WEBPACK_IMPORTED_MODULE_2__["default"], {
  336. value: repeat,
  337. isSecure: true,
  338. onChange: handleRepeatChange,
  339. placeholder: t('feature.auth.create_password.input_password_confirm_placeholder')
  340. })]
  341. });
  342. }
  343. function registerF() {
  344. if (isButtonDisabled) {
  345. return;
  346. }
  347. dispatch((0,_services_user__WEBPACK_IMPORTED_MODULE_10__.register)(__webpack_require__.g.username, __webpack_require__.g.email, password));
  348. }
  349. return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
  350. style: {
  351. backgroundColor: '#000',
  352. flex: 1,
  353. flexDirection: 'column',
  354. display: 'flex',
  355. width: '100vw',
  356. height: '100vh'
  357. },
  358. children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_Texts__WEBPACK_IMPORTED_MODULE_3__["default"], {
  359. text: t('feature.auth.create_password.title'),
  360. type: _utils_types__WEBPACK_IMPORTED_MODULE_4__.TextType.primary
  361. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_Texts__WEBPACK_IMPORTED_MODULE_3__["default"], {
  362. text: t('feature.auth.create_password.sub_title'),
  363. type: _utils_types__WEBPACK_IMPORTED_MODULE_4__.TextType.secondary
  364. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_Box__WEBPACK_IMPORTED_MODULE_0__["default"], {
  365. child: loginComponent()
  366. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_Buttons__WEBPACK_IMPORTED_MODULE_1__["default"], {
  367. onClick: registerF,
  368. title: t('feature.auth.create_password.btn_next'),
  369. style: {
  370. marginLeft: 23,
  371. marginRight: 23,
  372. marginTop: 20,
  373. marginBottom: 20
  374. },
  375. status: isButtonDisabled ? _utils_types__WEBPACK_IMPORTED_MODULE_4__.ComponentStatus.disable : _utils_types__WEBPACK_IMPORTED_MODULE_4__.ComponentStatus.enable
  376. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
  377. className: "agree_view",
  378. children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.Image, {
  379. style: "width:12px;height:12px;",
  380. src: _assets_svg_check_svg__WEBPACK_IMPORTED_MODULE_8__
  381. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.Text, {
  382. className: "agree_text",
  383. children: t('page.auth.agreement')
  384. })]
  385. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
  386. style: {
  387. flex: 1
  388. }
  389. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
  390. className: "footer",
  391. children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.Text, {
  392. className: "have_account",
  393. children: t('feature.auth.create_password.footer_desc')
  394. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.Text, {
  395. className: "login",
  396. children: t('feature.auth.create_password.footer_login')
  397. })]
  398. })]
  399. });
  400. }
  401. /***/ }),
  402. /***/ "./src/features/auth/components/Login.tsx":
  403. /*!************************************************!*\
  404. !*** ./src/features/auth/components/Login.tsx ***!
  405. \************************************************/
  406. /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
  407. /* harmony export */ __webpack_require__.d(__webpack_exports__, {
  408. /* harmony export */ "default": function() { return /* binding */ Login; }
  409. /* harmony export */ });
  410. /* harmony import */ var _Users_Work_hola_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */ "./node_modules/@babel/runtime/helpers/esm/slicedToArray.js");
  411. /* harmony import */ var _components_Inputs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/components/Inputs */ "./src/components/Inputs.tsx");
  412. /* harmony import */ var _tarojs_components__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @tarojs/components */ "./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");
  413. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "webpack/container/remote/react");
  414. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
  415. /* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-i18next */ "webpack/container/remote/react-i18next");
  416. /* harmony import */ var react_i18next__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_i18next__WEBPACK_IMPORTED_MODULE_2__);
  417. /* harmony import */ var _assets_svg_check_svg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @assets/svg/check.svg */ "./src/assets/svg/check.svg");
  418. /* harmony import */ var _components_Texts__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @/components/Texts */ "./src/components/Texts.tsx");
  419. /* harmony import */ var _components_Box__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/components/Box */ "./src/components/Box.tsx");
  420. /* harmony import */ var _utils_types__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/types */ "./src/utils/types.ts");
  421. /* harmony import */ var _components_Buttons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/components/Buttons */ "./src/components/Buttons.tsx");
  422. /* harmony import */ var _services_user__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/services/user */ "./src/services/user.tsx");
  423. /* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react-redux */ "webpack/container/remote/react-redux");
  424. /* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react_redux__WEBPACK_IMPORTED_MODULE_9__);
  425. /* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @tarojs/taro */ "webpack/container/remote/@tarojs/taro");
  426. /* harmony import */ var _tarojs_taro__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_tarojs_taro__WEBPACK_IMPORTED_MODULE_10__);
  427. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react/jsx-runtime */ "webpack/container/remote/react/jsx-runtime");
  428. /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__);
  429. function Login(props) {
  430. var _useTranslation = (0,react_i18next__WEBPACK_IMPORTED_MODULE_2__.useTranslation)(),
  431. t = _useTranslation.t;
  432. var dispatch = (0,react_redux__WEBPACK_IMPORTED_MODULE_9__.useDispatch)();
  433. var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(''),
  434. _useState2 = (0,_Users_Work_hola_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_12__["default"])(_useState, 2),
  435. name = _useState2[0],
  436. setName = _useState2[1];
  437. var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(''),
  438. _useState4 = (0,_Users_Work_hola_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_12__["default"])(_useState3, 2),
  439. password = _useState4[0],
  440. setPassword = _useState4[1];
  441. var user = (0,react_redux__WEBPACK_IMPORTED_MODULE_9__.useSelector)(function (state) {
  442. return state.user;
  443. });
  444. (0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
  445. if (user.isLogin) {
  446. if (user.scenario_select_count > 0) {
  447. _tarojs_taro__WEBPACK_IMPORTED_MODULE_10___default().navigateBack({
  448. delta: 2
  449. });
  450. } else {
  451. _tarojs_taro__WEBPACK_IMPORTED_MODULE_10___default().navigateBack({
  452. delta: 1
  453. });
  454. _tarojs_taro__WEBPACK_IMPORTED_MODULE_10___default().redirectTo({
  455. url: '/pages/ChooseScenario'
  456. });
  457. }
  458. }
  459. }, [user.isLogin]);
  460. var handleNameChange = function handleNameChange(value) {
  461. setName(value);
  462. };
  463. var handlePasswordChange = function handlePasswordChange(value) {
  464. setPassword(value);
  465. };
  466. var isLoginButtonDisabled = name === '' || password === '';
  467. function loginComponent() {
  468. return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
  469. children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_Inputs__WEBPACK_IMPORTED_MODULE_0__["default"], {
  470. value: name,
  471. onChange: handleNameChange,
  472. placeholder: t('feature.auth.login.input_account_placeholder')
  473. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
  474. style: {
  475. height: 20
  476. }
  477. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_Inputs__WEBPACK_IMPORTED_MODULE_0__["default"], {
  478. value: password,
  479. isSecure: true,
  480. onChange: handlePasswordChange,
  481. placeholder: t('feature.auth.login.input_password_placeholder')
  482. })]
  483. });
  484. }
  485. function LoginF() {
  486. if (isLoginButtonDisabled) {
  487. return;
  488. }
  489. dispatch((0,_services_user__WEBPACK_IMPORTED_MODULE_8__.login)(name, password));
  490. }
  491. return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
  492. style: {
  493. backgroundColor: '#000',
  494. flex: 1,
  495. flexDirection: 'column',
  496. display: 'flex',
  497. width: '100%',
  498. height: '100%'
  499. },
  500. children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_Texts__WEBPACK_IMPORTED_MODULE_4__["default"], {
  501. text: 'App Name',
  502. type: _utils_types__WEBPACK_IMPORTED_MODULE_6__.TextType.primary
  503. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_Box__WEBPACK_IMPORTED_MODULE_5__["default"], {
  504. child: loginComponent()
  505. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_components_Buttons__WEBPACK_IMPORTED_MODULE_7__["default"], {
  506. onClick: LoginF,
  507. title: t('feature.auth.create_account.btn_next'),
  508. style: {
  509. marginLeft: 23,
  510. marginRight: 23,
  511. marginTop: 20,
  512. marginBottom: 20
  513. },
  514. status: isLoginButtonDisabled ? _utils_types__WEBPACK_IMPORTED_MODULE_6__.ComponentStatus.disable : _utils_types__WEBPACK_IMPORTED_MODULE_6__.ComponentStatus.enable
  515. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
  516. className: "agree_view",
  517. children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.Image, {
  518. style: "width:12px;height:12px;",
  519. src: _assets_svg_check_svg__WEBPACK_IMPORTED_MODULE_3__
  520. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.Text, {
  521. className: "agree_text",
  522. children: t('page.auth.agreement')
  523. })]
  524. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
  525. style: {
  526. flex: 1
  527. }
  528. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsxs)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.View, {
  529. className: "footer",
  530. children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.Text, {
  531. className: "have_account",
  532. children: t('feature.auth.login.footer_desc')
  533. }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_11__.jsx)(_tarojs_components__WEBPACK_IMPORTED_MODULE_13__.Text, {
  534. className: "login",
  535. onClick: function onClick() {
  536. return props.register();
  537. },
  538. children: t('feature.auth.login.footer_sign_up')
  539. })]
  540. })]
  541. });
  542. }
  543. /***/ }),
  544. /***/ "./src/pages/Auth.tsx":
  545. /*!****************************!*\
  546. !*** ./src/pages/Auth.tsx ***!
  547. \****************************/
  548. /***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
  549. /* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tarojs/runtime */ "webpack/container/remote/@tarojs/runtime");
  550. /* harmony import */ var _tarojs_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__);
  551. /* harmony import */ var _node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_Auth_tsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./Auth.tsx */ "./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/Auth.tsx");
  552. var config = {};
  553. var inst = Page((0,_tarojs_runtime__WEBPACK_IMPORTED_MODULE_0__.createPageConfig)(_node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_Auth_tsx__WEBPACK_IMPORTED_MODULE_1__["default"], 'pages/Auth', {root:{cn:[]}}, config || {}))
  554. /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = (_node_modules_babel_loader_lib_index_js_ruleSet_1_rules_5_use_0_Auth_tsx__WEBPACK_IMPORTED_MODULE_1__["default"]);
  555. /***/ })
  556. },
  557. /******/ function(__webpack_require__) { // webpackRuntimeModules
  558. /******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
  559. /******/ __webpack_require__.O(0, ["taro","vendors","common"], function() { return __webpack_exec__("./src/pages/Auth.tsx"); });
  560. /******/ var __webpack_exports__ = __webpack_require__.O();
  561. /******/ }
  562. ]);
  563. //# sourceMappingURL=Auth.js.map