assentify-sdk-react-native 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/AssentifyProvider.js +2 -49
- package/lib/commonjs/AssentifyProvider.js.map +1 -1
- package/lib/commonjs/AssentifyWrapper.js +0 -12
- package/lib/commonjs/AssentifyWrapper.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/module/AssentifyProvider.js +2 -50
- package/lib/module/AssentifyProvider.js.map +1 -1
- package/lib/module/AssentifyWrapper.js +0 -11
- package/lib/module/AssentifyWrapper.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/example/src/Home.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts +0 -2
- package/lib/typescript/lib/commonjs/AssentifyProvider.d.ts.map +1 -1
- package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts +0 -1
- package/lib/typescript/lib/commonjs/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/lib/module/AssentifyProvider.d.ts +1 -3
- package/lib/typescript/lib/module/AssentifyProvider.d.ts.map +1 -1
- package/lib/typescript/lib/module/AssentifyWrapper.d.ts +0 -1
- package/lib/typescript/lib/module/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/lib/module/index.d.ts +0 -1
- package/lib/typescript/lib/module/index.d.ts.map +1 -1
- package/lib/typescript/src/AssentifyProvider.d.ts +0 -3
- package/lib/typescript/src/AssentifyProvider.d.ts.map +1 -1
- package/lib/typescript/src/AssentifyWrapper.d.ts +0 -1
- package/lib/typescript/src/AssentifyWrapper.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +0 -1
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/types.d.ts +0 -2
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/AssentifyProvider.tsx +5 -59
- package/src/AssentifyWrapper.ts +19 -29
- package/src/types.ts +0 -3
- package/lib/commonjs/components/BackButton.js +0 -33
- package/lib/commonjs/components/BackButton.js.map +0 -1
- package/lib/commonjs/components/BaseButton.js +0 -41
- package/lib/commonjs/components/BaseButton.js.map +0 -1
- package/lib/commonjs/components/BaseIcon.js +0 -83
- package/lib/commonjs/components/BaseIcon.js.map +0 -1
- package/lib/commonjs/components/CloseButton.js +0 -33
- package/lib/commonjs/components/CloseButton.js.map +0 -1
- package/lib/commonjs/components/CustomHeader.js +0 -54
- package/lib/commonjs/components/CustomHeader.js.map +0 -1
- package/lib/commonjs/components/Each.js +0 -16
- package/lib/commonjs/components/Each.js.map +0 -1
- package/lib/commonjs/components/Page.js +0 -45
- package/lib/commonjs/components/Page.js.map +0 -1
- package/lib/commonjs/components/icons/arrow-left.js +0 -28
- package/lib/commonjs/components/icons/arrow-left.js.map +0 -1
- package/lib/commonjs/components/icons/big-warning.js +0 -34
- package/lib/commonjs/components/icons/big-warning.js.map +0 -1
- package/lib/commonjs/components/icons/check-success.js +0 -28
- package/lib/commonjs/components/icons/check-success.js.map +0 -1
- package/lib/commonjs/components/icons/chevron-down.js +0 -28
- package/lib/commonjs/components/icons/chevron-down.js.map +0 -1
- package/lib/commonjs/components/icons/chevron-left.js +0 -28
- package/lib/commonjs/components/icons/chevron-left.js.map +0 -1
- package/lib/commonjs/components/icons/chevron-right.js +0 -28
- package/lib/commonjs/components/icons/chevron-right.js.map +0 -1
- package/lib/commonjs/components/icons/chevron-up.js +0 -27
- package/lib/commonjs/components/icons/chevron-up.js.map +0 -1
- package/lib/commonjs/components/icons/close.js +0 -28
- package/lib/commonjs/components/icons/close.js.map +0 -1
- package/lib/commonjs/components/type.js +0 -2
- package/lib/commonjs/components/type.js.map +0 -1
- package/lib/commonjs/helpers/NavigationService.js +0 -80
- package/lib/commonjs/helpers/NavigationService.js.map +0 -1
- package/lib/commonjs/helpers/constants.js +0 -16
- package/lib/commonjs/helpers/constants.js.map +0 -1
- package/lib/commonjs/helpers/useBackHandler.js +0 -16
- package/lib/commonjs/helpers/useBackHandler.js.map +0 -1
- package/lib/commonjs/navigator/index.js +0 -30
- package/lib/commonjs/navigator/index.js.map +0 -1
- package/lib/commonjs/screens/SelectDocument.js +0 -248
- package/lib/commonjs/screens/SelectDocument.js.map +0 -1
- package/lib/commonjs/themes/index.js +0 -22
- package/lib/commonjs/themes/index.js.map +0 -1
- package/lib/commonjs/themes/styling.js +0 -64
- package/lib/commonjs/themes/styling.js.map +0 -1
- package/lib/commonjs/useGlobalStore.js +0 -52
- package/lib/commonjs/useGlobalStore.js.map +0 -1
- package/lib/module/components/BackButton.js +0 -26
- package/lib/module/components/BackButton.js.map +0 -1
- package/lib/module/components/BaseButton.js +0 -34
- package/lib/module/components/BaseButton.js.map +0 -1
- package/lib/module/components/BaseIcon.js +0 -76
- package/lib/module/components/BaseIcon.js.map +0 -1
- package/lib/module/components/CloseButton.js +0 -26
- package/lib/module/components/CloseButton.js.map +0 -1
- package/lib/module/components/CustomHeader.js +0 -47
- package/lib/module/components/CustomHeader.js.map +0 -1
- package/lib/module/components/Each.js +0 -9
- package/lib/module/components/Each.js.map +0 -1
- package/lib/module/components/Page.js +0 -38
- package/lib/module/components/Page.js.map +0 -1
- package/lib/module/components/icons/arrow-left.js +0 -19
- package/lib/module/components/icons/arrow-left.js.map +0 -1
- package/lib/module/components/icons/big-warning.js +0 -25
- package/lib/module/components/icons/big-warning.js.map +0 -1
- package/lib/module/components/icons/check-success.js +0 -19
- package/lib/module/components/icons/check-success.js.map +0 -1
- package/lib/module/components/icons/chevron-down.js +0 -19
- package/lib/module/components/icons/chevron-down.js.map +0 -1
- package/lib/module/components/icons/chevron-left.js +0 -19
- package/lib/module/components/icons/chevron-left.js.map +0 -1
- package/lib/module/components/icons/chevron-right.js +0 -19
- package/lib/module/components/icons/chevron-right.js.map +0 -1
- package/lib/module/components/icons/chevron-up.js +0 -19
- package/lib/module/components/icons/chevron-up.js.map +0 -1
- package/lib/module/components/icons/close.js +0 -19
- package/lib/module/components/icons/close.js.map +0 -1
- package/lib/module/components/type.js +0 -2
- package/lib/module/components/type.js.map +0 -1
- package/lib/module/helpers/NavigationService.js +0 -75
- package/lib/module/helpers/NavigationService.js.map +0 -1
- package/lib/module/helpers/constants.js +0 -10
- package/lib/module/helpers/constants.js.map +0 -1
- package/lib/module/helpers/useBackHandler.js +0 -10
- package/lib/module/helpers/useBackHandler.js.map +0 -1
- package/lib/module/navigator/index.js +0 -23
- package/lib/module/navigator/index.js.map +0 -1
- package/lib/module/screens/SelectDocument.js +0 -240
- package/lib/module/screens/SelectDocument.js.map +0 -1
- package/lib/module/themes/index.js +0 -16
- package/lib/module/themes/index.js.map +0 -1
- package/lib/module/themes/styling.js +0 -52
- package/lib/module/themes/styling.js.map +0 -1
- package/lib/module/useGlobalStore.js +0 -46
- package/lib/module/useGlobalStore.js.map +0 -1
- package/lib/typescript/lib/commonjs/components/BackButton.d.ts +0 -6
- package/lib/typescript/lib/commonjs/components/BackButton.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/BaseButton.d.ts +0 -7
- package/lib/typescript/lib/commonjs/components/BaseButton.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/BaseIcon.d.ts +0 -29
- package/lib/typescript/lib/commonjs/components/BaseIcon.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/CloseButton.d.ts +0 -6
- package/lib/typescript/lib/commonjs/components/CloseButton.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/CustomHeader.d.ts +0 -9
- package/lib/typescript/lib/commonjs/components/CustomHeader.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/Each.d.ts +0 -7
- package/lib/typescript/lib/commonjs/components/Each.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/Page.d.ts +0 -14
- package/lib/typescript/lib/commonjs/components/Page.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/arrow-left.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/arrow-left.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/big-warning.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/big-warning.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/check-success.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/check-success.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/chevron-down.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/chevron-down.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/chevron-left.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/chevron-left.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/chevron-right.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/chevron-right.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/chevron-up.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/chevron-up.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/icons/close.d.ts +0 -4
- package/lib/typescript/lib/commonjs/components/icons/close.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/components/type.d.ts +0 -1
- package/lib/typescript/lib/commonjs/components/type.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/helpers/NavigationService.d.ts +0 -29
- package/lib/typescript/lib/commonjs/helpers/NavigationService.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/helpers/constants.d.ts +0 -11
- package/lib/typescript/lib/commonjs/helpers/constants.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/helpers/useBackHandler.d.ts +0 -3
- package/lib/typescript/lib/commonjs/helpers/useBackHandler.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/navigator/index.d.ts +0 -4
- package/lib/typescript/lib/commonjs/navigator/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/screens/SelectDocument.d.ts +0 -4
- package/lib/typescript/lib/commonjs/screens/SelectDocument.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/themes/index.d.ts +0 -17
- package/lib/typescript/lib/commonjs/themes/index.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/themes/styling.d.ts +0 -8
- package/lib/typescript/lib/commonjs/themes/styling.d.ts.map +0 -1
- package/lib/typescript/lib/commonjs/useGlobalStore.d.ts +0 -5
- package/lib/typescript/lib/commonjs/useGlobalStore.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/BackButton.d.ts +0 -7
- package/lib/typescript/lib/module/components/BackButton.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/BaseButton.d.ts +0 -8
- package/lib/typescript/lib/module/components/BaseButton.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/BaseIcon.d.ts +0 -29
- package/lib/typescript/lib/module/components/BaseIcon.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/CloseButton.d.ts +0 -7
- package/lib/typescript/lib/module/components/CloseButton.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/CustomHeader.d.ts +0 -10
- package/lib/typescript/lib/module/components/CustomHeader.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/Each.d.ts +0 -7
- package/lib/typescript/lib/module/components/Each.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/Page.d.ts +0 -15
- package/lib/typescript/lib/module/components/Page.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/arrow-left.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/arrow-left.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/big-warning.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/big-warning.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/check-success.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/check-success.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/chevron-down.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/chevron-down.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/chevron-left.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/chevron-left.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/chevron-right.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/chevron-right.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/chevron-up.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/chevron-up.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/icons/close.d.ts +0 -5
- package/lib/typescript/lib/module/components/icons/close.d.ts.map +0 -1
- package/lib/typescript/lib/module/components/type.d.ts +0 -1
- package/lib/typescript/lib/module/components/type.d.ts.map +0 -1
- package/lib/typescript/lib/module/helpers/NavigationService.d.ts +0 -28
- package/lib/typescript/lib/module/helpers/NavigationService.d.ts.map +0 -1
- package/lib/typescript/lib/module/helpers/constants.d.ts +0 -10
- package/lib/typescript/lib/module/helpers/constants.d.ts.map +0 -1
- package/lib/typescript/lib/module/helpers/useBackHandler.d.ts +0 -2
- package/lib/typescript/lib/module/helpers/useBackHandler.d.ts.map +0 -1
- package/lib/typescript/lib/module/navigator/index.d.ts +0 -4
- package/lib/typescript/lib/module/navigator/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/screens/SelectDocument.d.ts +0 -4
- package/lib/typescript/lib/module/screens/SelectDocument.d.ts.map +0 -1
- package/lib/typescript/lib/module/themes/index.d.ts +0 -16
- package/lib/typescript/lib/module/themes/index.d.ts.map +0 -1
- package/lib/typescript/lib/module/themes/styling.d.ts +0 -7
- package/lib/typescript/lib/module/themes/styling.d.ts.map +0 -1
- package/lib/typescript/lib/module/useGlobalStore.d.ts +0 -3
- package/lib/typescript/lib/module/useGlobalStore.d.ts.map +0 -1
- package/lib/typescript/src/components/BackButton.d.ts +0 -7
- package/lib/typescript/src/components/BackButton.d.ts.map +0 -1
- package/lib/typescript/src/components/BaseButton.d.ts +0 -8
- package/lib/typescript/src/components/BaseButton.d.ts.map +0 -1
- package/lib/typescript/src/components/BaseIcon.d.ts +0 -45
- package/lib/typescript/src/components/BaseIcon.d.ts.map +0 -1
- package/lib/typescript/src/components/CloseButton.d.ts +0 -7
- package/lib/typescript/src/components/CloseButton.d.ts.map +0 -1
- package/lib/typescript/src/components/CustomHeader.d.ts +0 -12
- package/lib/typescript/src/components/CustomHeader.d.ts.map +0 -1
- package/lib/typescript/src/components/Each.d.ts +0 -8
- package/lib/typescript/src/components/Each.d.ts.map +0 -1
- package/lib/typescript/src/components/Page.d.ts +0 -17
- package/lib/typescript/src/components/Page.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/arrow-left.d.ts +0 -4
- package/lib/typescript/src/components/icons/arrow-left.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/big-warning.d.ts +0 -4
- package/lib/typescript/src/components/icons/big-warning.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/check-success.d.ts +0 -4
- package/lib/typescript/src/components/icons/check-success.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/chevron-down.d.ts +0 -4
- package/lib/typescript/src/components/icons/chevron-down.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/chevron-left.d.ts +0 -4
- package/lib/typescript/src/components/icons/chevron-left.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/chevron-right.d.ts +0 -4
- package/lib/typescript/src/components/icons/chevron-right.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/chevron-up.d.ts +0 -4
- package/lib/typescript/src/components/icons/chevron-up.d.ts.map +0 -1
- package/lib/typescript/src/components/icons/close.d.ts +0 -4
- package/lib/typescript/src/components/icons/close.d.ts.map +0 -1
- package/lib/typescript/src/components/type.d.ts +0 -3
- package/lib/typescript/src/components/type.d.ts.map +0 -1
- package/lib/typescript/src/helpers/NavigationService.d.ts +0 -29
- package/lib/typescript/src/helpers/NavigationService.d.ts.map +0 -1
- package/lib/typescript/src/helpers/constants.d.ts +0 -10
- package/lib/typescript/src/helpers/constants.d.ts.map +0 -1
- package/lib/typescript/src/helpers/useBackHandler.d.ts +0 -2
- package/lib/typescript/src/helpers/useBackHandler.d.ts.map +0 -1
- package/lib/typescript/src/navigator/index.d.ts +0 -4
- package/lib/typescript/src/navigator/index.d.ts.map +0 -1
- package/lib/typescript/src/screens/SelectDocument.d.ts +0 -5
- package/lib/typescript/src/screens/SelectDocument.d.ts.map +0 -1
- package/lib/typescript/src/themes/index.d.ts +0 -16
- package/lib/typescript/src/themes/index.d.ts.map +0 -1
- package/lib/typescript/src/themes/styling.d.ts +0 -7
- package/lib/typescript/src/themes/styling.d.ts.map +0 -1
- package/lib/typescript/src/useGlobalStore.d.ts +0 -25
- package/lib/typescript/src/useGlobalStore.d.ts.map +0 -1
- package/src/components/BackButton.tsx +0 -28
- package/src/components/BaseButton.tsx +0 -44
- package/src/components/BaseIcon.tsx +0 -96
- package/src/components/CloseButton.tsx +0 -28
- package/src/components/CustomHeader.tsx +0 -58
- package/src/components/Each.tsx +0 -12
- package/src/components/Page.tsx +0 -64
- package/src/components/icons/arrow-left.tsx +0 -22
- package/src/components/icons/big-warning.tsx +0 -29
- package/src/components/icons/check-success.tsx +0 -22
- package/src/components/icons/chevron-down.tsx +0 -22
- package/src/components/icons/chevron-left.tsx +0 -22
- package/src/components/icons/chevron-right.tsx +0 -22
- package/src/components/icons/chevron-up.tsx +0 -22
- package/src/components/icons/close.tsx +0 -22
- package/src/components/type.ts +0 -11
- package/src/helpers/NavigationService.ts +0 -89
- package/src/helpers/constants.ts +0 -13
- package/src/helpers/useBackHandler.ts +0 -14
- package/src/navigator/index.tsx +0 -34
- package/src/screens/SelectDocument.tsx +0 -250
- package/src/themes/index.ts +0 -16
- package/src/themes/styling.ts +0 -53
- package/src/useGlobalStore.ts +0 -65
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _styling = require("../themes/styling");
|
|
10
|
-
var _themes = require("../themes");
|
|
11
|
-
var _BaseIcon = _interopRequireDefault(require("../components/BaseIcon"));
|
|
12
|
-
var _Page = _interopRequireDefault(require("../components/Page"));
|
|
13
|
-
var _CloseButton = _interopRequireDefault(require("../components/CloseButton"));
|
|
14
|
-
var _useGlobalStore = _interopRequireDefault(require("../useGlobalStore"));
|
|
15
|
-
var _Each = _interopRequireDefault(require("../components/Each"));
|
|
16
|
-
var _useBackHandler = require("../helpers/useBackHandler");
|
|
17
|
-
var _AssentifyProvider = require("../AssentifyProvider");
|
|
18
|
-
var _AssentifyWrapper = _interopRequireDefault(require("../AssentifyWrapper"));
|
|
19
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
21
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
22
|
-
const SelectDocument = () => {
|
|
23
|
-
const {
|
|
24
|
-
supportedTemplates,
|
|
25
|
-
languageCode,
|
|
26
|
-
supportedCountries,
|
|
27
|
-
preferredCountry,
|
|
28
|
-
countryCode,
|
|
29
|
-
setCountryCode,
|
|
30
|
-
setSupportedTemplates,
|
|
31
|
-
setKYCDocumentDetails,
|
|
32
|
-
setDocType,
|
|
33
|
-
setIsVisible
|
|
34
|
-
} = (0, _useGlobalStore.default)();
|
|
35
|
-
const [isOpenModal, setIsOpenModal] = (0, _react.useState)(false);
|
|
36
|
-
const [selectedCountry, setSelectedCountry] = (0, _react.useState)(null);
|
|
37
|
-
(0, _useBackHandler.useBackHandler)(() => {
|
|
38
|
-
onClose();
|
|
39
|
-
return false;
|
|
40
|
-
});
|
|
41
|
-
const onClose = () => {
|
|
42
|
-
var _bottomSheetModalRef$;
|
|
43
|
-
setCountryCode(null);
|
|
44
|
-
setDocType(null);
|
|
45
|
-
setIsVisible(false);
|
|
46
|
-
(_bottomSheetModalRef$ = _AssentifyProvider.bottomSheetModalRef.current) === null || _bottomSheetModalRef$ === void 0 || _bottomSheetModalRef$.dismiss();
|
|
47
|
-
};
|
|
48
|
-
const onScanId = kycDocumentDetailsList => {
|
|
49
|
-
_AssentifyProvider.kycDocumentDetailsSize.current = (kycDocumentDetailsList === null || kycDocumentDetailsList === void 0 ? void 0 : kycDocumentDetailsList.length) ?? 0;
|
|
50
|
-
_AssentifyWrapper.default.startScanIDCard(kycDocumentDetailsList ?? [], languageCode, true);
|
|
51
|
-
};
|
|
52
|
-
const onScanPassport = () => {
|
|
53
|
-
console.log("ExampleEvents : ", languageCode);
|
|
54
|
-
_AssentifyWrapper.default.startScanPassport(languageCode);
|
|
55
|
-
};
|
|
56
|
-
const onSelect = country => {
|
|
57
|
-
setCountryCode(country.sourceCountryCode);
|
|
58
|
-
setSelectedCountry(country);
|
|
59
|
-
setIsOpenModal(false);
|
|
60
|
-
};
|
|
61
|
-
const onOpen = () => {
|
|
62
|
-
setIsOpenModal(true);
|
|
63
|
-
};
|
|
64
|
-
(0, _react.useEffect)(() => {
|
|
65
|
-
if (supportedCountries) {
|
|
66
|
-
var _supportedCountries$;
|
|
67
|
-
const codeToUse = (countryCode ?? '') || ((_supportedCountries$ = supportedCountries[0]) === null || _supportedCountries$ === void 0 ? void 0 : _supportedCountries$.sourceCountryCode);
|
|
68
|
-
const selected = supportedCountries.find(item => item.sourceCountryCode === codeToUse);
|
|
69
|
-
if (selected) {
|
|
70
|
-
const templates = selected.templates;
|
|
71
|
-
const kycDetails = [];
|
|
72
|
-
templates.forEach(item => {
|
|
73
|
-
if (item.kycDocumentDetails && item.kycDocumentDetails.length) {
|
|
74
|
-
kycDetails.push(item);
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
setSupportedTemplates(kycDetails);
|
|
78
|
-
setSelectedCountry(selected);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}, [countryCode, setSupportedTemplates, supportedCountries]);
|
|
82
|
-
return /*#__PURE__*/_react.default.createElement(_Page.default, {
|
|
83
|
-
scrollViewStyle: styles.ScrollView,
|
|
84
|
-
headerLeft: /*#__PURE__*/_react.default.createElement(_CloseButton.default, {
|
|
85
|
-
onPress: onClose
|
|
86
|
-
})
|
|
87
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
88
|
-
style: styles.container
|
|
89
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
90
|
-
style: styles.CardTitle
|
|
91
|
-
}, "Select Document"), preferredCountry && /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
92
|
-
style: styles.DropdownSelect,
|
|
93
|
-
onPress: onOpen
|
|
94
|
-
}, selectedCountry ? /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
95
|
-
style: styles.selectedCountryContainer
|
|
96
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
97
|
-
source: {
|
|
98
|
-
uri: selectedCountry.flag
|
|
99
|
-
},
|
|
100
|
-
style: [styles.flag, {
|
|
101
|
-
width: 30,
|
|
102
|
-
height: undefined,
|
|
103
|
-
aspectRatio: 1
|
|
104
|
-
}]
|
|
105
|
-
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
106
|
-
style: styles.DropdownTitle
|
|
107
|
-
}, selectedCountry.name)) : /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
108
|
-
style: styles.DropdownTitle
|
|
109
|
-
}, "Select Country"), /*#__PURE__*/_react.default.createElement(_BaseIcon.default, {
|
|
110
|
-
name: "chevron_down",
|
|
111
|
-
color: _themes.COLORS.secondary800
|
|
112
|
-
}))), isOpenModal && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
113
|
-
style: styles.dropdownModal
|
|
114
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.FlatList, {
|
|
115
|
-
data: supportedCountries,
|
|
116
|
-
renderItem: ({
|
|
117
|
-
item
|
|
118
|
-
}) => /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
119
|
-
style: styles.dropdownItem,
|
|
120
|
-
onPress: () => onSelect(item)
|
|
121
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Image, {
|
|
122
|
-
source: {
|
|
123
|
-
uri: item.flag
|
|
124
|
-
},
|
|
125
|
-
style: styles.flag
|
|
126
|
-
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
127
|
-
style: styles.DropdownTitle
|
|
128
|
-
}, item.name)),
|
|
129
|
-
keyExtractor: item => item.sourceCountryCode
|
|
130
|
-
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
131
|
-
style: styles.Card
|
|
132
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
133
|
-
style: styles.CardTitle
|
|
134
|
-
}, "Select document type"), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
135
|
-
style: styles.CardContent
|
|
136
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
137
|
-
style: [styles.CardItem, supportedTemplates !== null && supportedTemplates !== void 0 && supportedTemplates.length ? styles.CardItemBordered : null],
|
|
138
|
-
onPress: () => onScanPassport()
|
|
139
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
140
|
-
style: styles.CardItemText
|
|
141
|
-
}, "Passport"), /*#__PURE__*/_react.default.createElement(_BaseIcon.default, {
|
|
142
|
-
name: "chevron_right",
|
|
143
|
-
color: _themes.COLORS.secondary800
|
|
144
|
-
})), supportedTemplates && /*#__PURE__*/_react.default.createElement(_Each.default, {
|
|
145
|
-
of: supportedTemplates,
|
|
146
|
-
render: (item, index) => /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
147
|
-
key: `supported_template_${index}`,
|
|
148
|
-
style: [styles.CardItem, index !== supportedTemplates.length - 1 ? styles.CardItemBordered : null],
|
|
149
|
-
onPress: () => onScanId(item.kycDocumentDetails)
|
|
150
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
151
|
-
style: styles.CardItemText
|
|
152
|
-
}, item === null || item === void 0 ? void 0 : item.kycDocumentType), /*#__PURE__*/_react.default.createElement(_BaseIcon.default, {
|
|
153
|
-
name: "chevron_right",
|
|
154
|
-
color: _themes.COLORS.secondary800
|
|
155
|
-
}))
|
|
156
|
-
}))));
|
|
157
|
-
};
|
|
158
|
-
var _default = exports.default = SelectDocument;
|
|
159
|
-
const styles = _reactNative.StyleSheet.create({
|
|
160
|
-
ScrollView: {
|
|
161
|
-
flex: 1,
|
|
162
|
-
backgroundColor: '#fff',
|
|
163
|
-
paddingHorizontal: (0, _styling.pixelSizeHorizontal)(16)
|
|
164
|
-
},
|
|
165
|
-
container: {
|
|
166
|
-
marginTop: (0, _styling.pixelSizeVertical)(40)
|
|
167
|
-
},
|
|
168
|
-
Card: {
|
|
169
|
-
flex: 1,
|
|
170
|
-
marginVertical: (0, _styling.pixelSizeVertical)(16)
|
|
171
|
-
},
|
|
172
|
-
CardTitle: {
|
|
173
|
-
fontSize: (0, _styling.fontPixel)(14),
|
|
174
|
-
fontWeight: '600',
|
|
175
|
-
lineHeight: 20,
|
|
176
|
-
color: _themes.COLORS.secondary1200,
|
|
177
|
-
marginBottom: (0, _styling.pixelSizeVertical)(8)
|
|
178
|
-
},
|
|
179
|
-
CardContent: {
|
|
180
|
-
borderWidth: 1,
|
|
181
|
-
borderColor: _themes.COLORS.secondary300,
|
|
182
|
-
borderRadius: 16
|
|
183
|
-
},
|
|
184
|
-
CardItem: {
|
|
185
|
-
flexDirection: 'row',
|
|
186
|
-
alignItems: 'center',
|
|
187
|
-
justifyContent: 'space-between',
|
|
188
|
-
paddingLeft: (0, _styling.pixelSizeHorizontal)(24),
|
|
189
|
-
paddingRight: (0, _styling.pixelSizeHorizontal)(12),
|
|
190
|
-
paddingVertical: (0, _styling.pixelSizeVertical)(16)
|
|
191
|
-
},
|
|
192
|
-
CardItemBordered: {
|
|
193
|
-
borderBottomWidth: 1,
|
|
194
|
-
borderBottomColor: _themes.COLORS.secondary300
|
|
195
|
-
},
|
|
196
|
-
CardItemText: {
|
|
197
|
-
fontSize: (0, _styling.fontPixel)(14),
|
|
198
|
-
fontWeight: '600',
|
|
199
|
-
lineHeight: 20,
|
|
200
|
-
color: _themes.COLORS.secondaryBase1
|
|
201
|
-
},
|
|
202
|
-
DropdownSelect: {
|
|
203
|
-
borderWidth: 1,
|
|
204
|
-
borderColor: _themes.COLORS.secondary300,
|
|
205
|
-
borderRadius: 16,
|
|
206
|
-
flexDirection: 'row',
|
|
207
|
-
alignItems: 'center',
|
|
208
|
-
justifyContent: 'space-between',
|
|
209
|
-
paddingVertical: (0, _styling.pixelSizeVertical)(10),
|
|
210
|
-
paddingHorizontal: (0, _styling.pixelSizeVertical)(16)
|
|
211
|
-
},
|
|
212
|
-
DropdownTitle: {
|
|
213
|
-
fontSize: (0, _styling.fontPixel)(14),
|
|
214
|
-
fontWeight: '500',
|
|
215
|
-
lineHeight: 20,
|
|
216
|
-
color: _themes.COLORS.secondaryBase1
|
|
217
|
-
},
|
|
218
|
-
selectedCountryContainer: {
|
|
219
|
-
flexDirection: 'row',
|
|
220
|
-
alignItems: 'center'
|
|
221
|
-
},
|
|
222
|
-
flag: {
|
|
223
|
-
width: 24,
|
|
224
|
-
height: 24,
|
|
225
|
-
marginRight: (0, _styling.pixelSizeHorizontal)(8)
|
|
226
|
-
},
|
|
227
|
-
dropdownModal: {
|
|
228
|
-
backgroundColor: 'white',
|
|
229
|
-
borderRadius: 16,
|
|
230
|
-
marginTop: (0, _styling.pixelSizeVertical)(8),
|
|
231
|
-
position: 'absolute',
|
|
232
|
-
top: 80,
|
|
233
|
-
// Adjust depending on your layout
|
|
234
|
-
left: 16,
|
|
235
|
-
right: 16,
|
|
236
|
-
maxHeight: 300,
|
|
237
|
-
borderWidth: 1,
|
|
238
|
-
borderColor: _themes.COLORS.secondary300,
|
|
239
|
-
zIndex: 1000
|
|
240
|
-
},
|
|
241
|
-
dropdownItem: {
|
|
242
|
-
flexDirection: 'row',
|
|
243
|
-
alignItems: 'center',
|
|
244
|
-
paddingVertical: (0, _styling.pixelSizeVertical)(12),
|
|
245
|
-
paddingHorizontal: (0, _styling.pixelSizeHorizontal)(16)
|
|
246
|
-
}
|
|
247
|
-
});
|
|
248
|
-
//# sourceMappingURL=SelectDocument.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_styling","_themes","_BaseIcon","_interopRequireDefault","_Page","_CloseButton","_useGlobalStore","_Each","_useBackHandler","_AssentifyProvider","_AssentifyWrapper","e","__esModule","default","_getRequireWildcardCache","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","SelectDocument","supportedTemplates","languageCode","supportedCountries","preferredCountry","countryCode","setCountryCode","setSupportedTemplates","setKYCDocumentDetails","setDocType","setIsVisible","useGlobalStore","isOpenModal","setIsOpenModal","useState","selectedCountry","setSelectedCountry","useBackHandler","onClose","_bottomSheetModalRef$","bottomSheetModalRef","current","dismiss","onScanId","kycDocumentDetailsList","kycDocumentDetailsSize","length","AssentifyWrapper","startScanIDCard","onScanPassport","console","log","startScanPassport","onSelect","country","sourceCountryCode","onOpen","useEffect","_supportedCountries$","codeToUse","selected","find","item","templates","kycDetails","forEach","kycDocumentDetails","push","createElement","scrollViewStyle","styles","ScrollView","headerLeft","onPress","View","style","container","Text","CardTitle","TouchableOpacity","DropdownSelect","selectedCountryContainer","Image","source","uri","flag","width","height","undefined","aspectRatio","DropdownTitle","name","color","COLORS","secondary800","dropdownModal","FlatList","data","renderItem","dropdownItem","keyExtractor","Card","CardContent","CardItem","CardItemBordered","CardItemText","of","render","index","key","kycDocumentType","_default","exports","StyleSheet","create","flex","backgroundColor","paddingHorizontal","pixelSizeHorizontal","marginTop","pixelSizeVertical","marginVertical","fontSize","fontPixel","fontWeight","lineHeight","secondary1200","marginBottom","borderWidth","borderColor","secondary300","borderRadius","flexDirection","alignItems","justifyContent","paddingLeft","paddingRight","paddingVertical","borderBottomWidth","borderBottomColor","secondaryBase1","marginRight","position","top","left","right","maxHeight","zIndex"],"sourceRoot":"..\\..\\..\\src","sources":["screens/SelectDocument.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAEA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAC,sBAAA,CAAAN,OAAA;AACA,IAAAO,KAAA,GAAAD,sBAAA,CAAAN,OAAA;AACA,IAAAQ,YAAA,GAAAF,sBAAA,CAAAN,OAAA;AAEA,IAAAS,eAAA,GAAAH,sBAAA,CAAAN,OAAA;AACA,IAAAU,KAAA,GAAAJ,sBAAA,CAAAN,OAAA;AAEA,IAAAW,eAAA,GAAAX,OAAA;AAEA,IAAAY,kBAAA,GAAAZ,OAAA;AACA,IAAAa,iBAAA,GAAAP,sBAAA,CAAAN,OAAA;AAAsD,SAAAM,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,yBAAAH,CAAA,6BAAAI,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAD,wBAAA,YAAAA,CAAAH,CAAA,WAAAA,CAAA,GAAAM,CAAA,GAAAD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|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.COLORS = void 0;
|
|
7
|
-
const COLORS = exports.COLORS = {
|
|
8
|
-
white: '#ffffff',
|
|
9
|
-
primaryBase1: '#66023C',
|
|
10
|
-
secondaryBase1: '#44546A',
|
|
11
|
-
secondary100: '#F9FAFB',
|
|
12
|
-
secondary200: '#EEF1F6',
|
|
13
|
-
secondary300: '#DBE0E9',
|
|
14
|
-
secondary700: '#808E9E',
|
|
15
|
-
secondary800: '#6C7B8E',
|
|
16
|
-
secondary1200: '#2C3844',
|
|
17
|
-
grey100: '#F9FAFA',
|
|
18
|
-
grey300: '#DCDEE1',
|
|
19
|
-
grey600: '#9AA0A7',
|
|
20
|
-
grey800: '#76797E'
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["COLORS","exports","white","primaryBase1","secondaryBase1","secondary100","secondary200","secondary300","secondary700","secondary800","secondary1200","grey100","grey300","grey600","grey800"],"sourceRoot":"..\\..\\..\\src","sources":["themes/index.ts"],"mappings":";;;;;;AAAO,MAAMA,MAAM,GAAAC,OAAA,CAAAD,MAAA,GAAG;EACpBE,KAAK,EAAE,SAAS;EAChBC,YAAY,EAAE,SAAS;EAEvBC,cAAc,EAAE,SAAS;EACzBC,YAAY,EAAE,SAAS;EACvBC,YAAY,EAAE,SAAS;EACvBC,YAAY,EAAE,SAAS;EACvBC,YAAY,EAAE,SAAS;EACvBC,YAAY,EAAE,SAAS;EACvBC,aAAa,EAAE,SAAS;EACxBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE,SAAS;EAClBC,OAAO,EAAE;AACX,CAAC","ignoreList":[]}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.widthPixel = exports.pixelSizeVertical = exports.pixelSizeHorizontal = exports.normalize = exports.heightPixel = exports.fontPixel = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
const {
|
|
9
|
-
width: SCREEN_WIDTH,
|
|
10
|
-
height: SCREEN_HEIGHT
|
|
11
|
-
} = _reactNative.Dimensions.get('window');
|
|
12
|
-
// const ratio = PixelRatio.get();
|
|
13
|
-
|
|
14
|
-
// Use iPhone5 as base size which is 320 x 568
|
|
15
|
-
// const baseWidth = 320;
|
|
16
|
-
// const baseHeight = 568;
|
|
17
|
-
|
|
18
|
-
// Use iPhone6 as base size which is 375 x 667
|
|
19
|
-
const baseWidth = 375;
|
|
20
|
-
const baseHeight = 667;
|
|
21
|
-
|
|
22
|
-
// const baseWidth = 375;
|
|
23
|
-
// const baseHeight = 811;
|
|
24
|
-
|
|
25
|
-
const scaleWidth = SCREEN_WIDTH / baseWidth;
|
|
26
|
-
const scaleHeight = SCREEN_HEIGHT / baseHeight;
|
|
27
|
-
const scale = Math.min(scaleWidth, scaleHeight);
|
|
28
|
-
const normalize = (size, based = 'width') => {
|
|
29
|
-
// const newSize = size * scale;
|
|
30
|
-
const newSize = based === 'height' ? size * scale : size * scale;
|
|
31
|
-
if (_reactNative.Platform.OS === 'ios') {
|
|
32
|
-
return Math.round(_reactNative.PixelRatio.roundToNearestPixel(newSize));
|
|
33
|
-
} else {
|
|
34
|
-
return Math.round(_reactNative.PixelRatio.roundToNearestPixel(newSize)) - 2;
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
//for width pixel
|
|
39
|
-
exports.normalize = normalize;
|
|
40
|
-
const widthPixel = size => {
|
|
41
|
-
return normalize(size, 'width');
|
|
42
|
-
};
|
|
43
|
-
//for height pixel
|
|
44
|
-
exports.widthPixel = widthPixel;
|
|
45
|
-
const heightPixel = size => {
|
|
46
|
-
return normalize(size, 'height');
|
|
47
|
-
};
|
|
48
|
-
//for font pixel
|
|
49
|
-
exports.heightPixel = heightPixel;
|
|
50
|
-
const fontPixel = size => {
|
|
51
|
-
return heightPixel(size);
|
|
52
|
-
};
|
|
53
|
-
//for Margin and Padding vertical pixel
|
|
54
|
-
exports.fontPixel = fontPixel;
|
|
55
|
-
const pixelSizeVertical = size => {
|
|
56
|
-
return heightPixel(size);
|
|
57
|
-
};
|
|
58
|
-
//for Margin and Padding horizontal pixel
|
|
59
|
-
exports.pixelSizeVertical = pixelSizeVertical;
|
|
60
|
-
const pixelSizeHorizontal = size => {
|
|
61
|
-
return widthPixel(size);
|
|
62
|
-
};
|
|
63
|
-
exports.pixelSizeHorizontal = pixelSizeHorizontal;
|
|
64
|
-
//# sourceMappingURL=styling.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","width","SCREEN_WIDTH","height","SCREEN_HEIGHT","Dimensions","get","baseWidth","baseHeight","scaleWidth","scaleHeight","scale","Math","min","normalize","size","based","newSize","Platform","OS","round","PixelRatio","roundToNearestPixel","exports","widthPixel","heightPixel","fontPixel","pixelSizeVertical","pixelSizeHorizontal"],"sourceRoot":"..\\..\\..\\src","sources":["themes/styling.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,MAAM;EAAEC,KAAK,EAAEC,YAAY;EAAEC,MAAM,EAAEC;AAAc,CAAC,GAAGC,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC;AAC/E;;AAEA;AACA;AACA;;AAEA;AACA,MAAMC,SAAS,GAAG,GAAG;AACrB,MAAMC,UAAU,GAAG,GAAG;;AAEtB;AACA;;AAEA,MAAMC,UAAU,GAAGP,YAAY,GAAGK,SAAS;AAC3C,MAAMG,WAAW,GAAGN,aAAa,GAAGI,UAAU;AAC9C,MAAMG,KAAK,GAAGC,IAAI,CAACC,GAAG,CAACJ,UAAU,EAAEC,WAAW,CAAC;AAExC,MAAMI,SAAS,G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-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _zustand = require("zustand");
|
|
8
|
-
const persistState = {
|
|
9
|
-
countryCode: '',
|
|
10
|
-
languageCode: '',
|
|
11
|
-
preferredCountry: [],
|
|
12
|
-
supportedCountries: [],
|
|
13
|
-
supportedTemplates: [],
|
|
14
|
-
kycDocumentDetails: []
|
|
15
|
-
};
|
|
16
|
-
const initialState = {
|
|
17
|
-
docType: null,
|
|
18
|
-
isVisible: false
|
|
19
|
-
};
|
|
20
|
-
const useGlobalStore = (0, _zustand.create)()(set => ({
|
|
21
|
-
...initialState,
|
|
22
|
-
...persistState,
|
|
23
|
-
setCountryCode: countryCode => set({
|
|
24
|
-
countryCode: countryCode
|
|
25
|
-
}),
|
|
26
|
-
setFlowLanguage: languageCode => set({
|
|
27
|
-
languageCode: languageCode
|
|
28
|
-
}),
|
|
29
|
-
setPreferredCountry: preferredCountry => set({
|
|
30
|
-
preferredCountry
|
|
31
|
-
}),
|
|
32
|
-
setSupportedCountries: supportedCountries => set({
|
|
33
|
-
supportedCountries
|
|
34
|
-
}),
|
|
35
|
-
setSupportedTemplates: supportedTemplates => set({
|
|
36
|
-
supportedTemplates
|
|
37
|
-
}),
|
|
38
|
-
setKYCDocumentDetails: kycDocumentDetails => set({
|
|
39
|
-
kycDocumentDetails
|
|
40
|
-
}),
|
|
41
|
-
setDocType: docType => set({
|
|
42
|
-
docType
|
|
43
|
-
}),
|
|
44
|
-
setIsVisible: isVisible => set({
|
|
45
|
-
isVisible
|
|
46
|
-
}),
|
|
47
|
-
clearGlobalStore: () => set({
|
|
48
|
-
...initialState
|
|
49
|
-
})
|
|
50
|
-
}));
|
|
51
|
-
var _default = exports.default = useGlobalStore;
|
|
52
|
-
//# sourceMappingURL=useGlobalStore.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_zustand","require","persistState","countryCode","languageCode","preferredCountry","supportedCountries","supportedTemplates","kycDocumentDetails","initialState","docType","isVisible","useGlobalStore","create","set","setCountryCode","setFlowLanguage","setPreferredCountry","setSupportedCountries","setSupportedTemplates","setKYCDocumentDetails","setDocType","setIsVisible","clearGlobalStore","_default","exports","default"],"sourceRoot":"..\\..\\src","sources":["useGlobalStore.ts"],"mappings":";;;;;;AASA,IAAAA,QAAA,GAAAC,OAAA;AA2BA,MAAMC,YAAY,GAAG;EACnBC,WAAW,EAAE,EAAiB;EAC9BC,YAAY,EAAE,EAAkB;EAChCC,gBAAgB,EAAE,EAAE;EACpBC,kBAAkB,EAAE,EAAE;EACtBC,kBAAkB,EAAE,EAAE;EACtBC,kBAAkB,EAAE;AACtB,CAAC;AAED,MAAMC,YAAY,GAAG;EACnBC,OAAO,EAAE,IAAI;EACbC,SAAS,EAAE;AACb,CAAC;AAED,MAAMC,cAAc,GAAG,IAAAC,eAAM,EAAmB,CAAC,CAAEC,GAAG,KAAM;EAC1D,GAAGL,YAAY;EACf,GAAGP,YAAY;EACfa,cAAc,EAAGZ,WAA+B,IAAKW,GAAG,CAAC;IAAEX,WAAW,EAAEA;EAAmB,CAAC,CAAC;EAC7Fa,eAAe,EAAGZ,YAAiC,IAAKU,GAAG,CAAC;IAAEV,YAAY,EAAEA;EAAoB,CAAC,CAAC;EAClGa,mBAAmB,EAAGZ,gBAA+B,IAAIS,GAAG,CAAC;IAAET;EAAiB,CAAC,CAAC;EAClFa,qBAAqB,EAAGZ,kBAAwC,IAAKQ,GAAG,CAAC;IAAER;EAAmB,CAAC,CAAC;EAChGa,qBAAqB,EAAGZ,kBAA+B,IAAIO,GAAG,CAAC;IAAEP;EAAmB,CAAC,CAAC;EACtFa,qBAAqB,EAAGZ,kBAA+C,IAAIM,GAAG,CAAC;IAAEN;EAAmB,CAAC,CAAC;EACtGa,UAAU,EAAGX,OAAsB,IAAKI,GAAG,CAAC;IAAEJ;EAAQ,CAAC,CAAC;EACxDY,YAAY,EAAGX,SAAkB,IAAKG,GAAG,CAAC;IAAEH;EAAU,CAAC,CAAC;EACxDY,gBAAgB,EAAEA,CAAA,KAAMT,GAAG,CAAC;IAAE,GAAGL;EAAa,CAAC;AACjD,CAAC,CAAC,CAAC;AAAC,IAAAe,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEWd,cAAc","ignoreList":[]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { pixelSizeHorizontal } from '../themes/styling';
|
|
4
|
-
import { COLORS } from '../themes';
|
|
5
|
-
import BaseIcon from './BaseIcon';
|
|
6
|
-
const BackButton = ({
|
|
7
|
-
onPress
|
|
8
|
-
}) => {
|
|
9
|
-
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
10
|
-
style: styles.BackButtons,
|
|
11
|
-
onPress: onPress
|
|
12
|
-
}, /*#__PURE__*/React.createElement(BaseIcon, {
|
|
13
|
-
name: "arrow_left",
|
|
14
|
-
color: COLORS.secondaryBase1
|
|
15
|
-
}));
|
|
16
|
-
};
|
|
17
|
-
export default BackButton;
|
|
18
|
-
const styles = StyleSheet.create({
|
|
19
|
-
BackButtons: {
|
|
20
|
-
padding: 6,
|
|
21
|
-
justifyContent: 'center',
|
|
22
|
-
alignItems: 'center',
|
|
23
|
-
marginLeft: pixelSizeHorizontal(16)
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
//# sourceMappingURL=BackButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","TouchableOpacity","React","pixelSizeHorizontal","COLORS","BaseIcon","BackButton","onPress","createElement","style","styles","BackButtons","name","color","secondaryBase1","create","padding","justifyContent","alignItems","marginLeft"],"sourceRoot":"..\\..\\..\\src","sources":["components/BackButton.tsx"],"mappings":"AAAA,SAASA,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AAC3D,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,mBAAmB,QAAQ,mBAAmB;AACvD,SAASC,MAAM,QAAQ,WAAW;AAClC,OAAOC,QAAQ,MAAM,YAAY;AAMjC,MAAMC,UAA2B,GAAGA,CAAC;EAAEC;AAAQ,CAAC,KAAK;EACnD,oBACEL,KAAA,CAAAM,aAAA,CAACP,gBAAgB;IAACQ,KAAK,EAAEC,MAAM,CAACC,WAAY;IAACJ,OAAO,EAAEA;EAAQ,gBAC5DL,KAAA,CAAAM,aAAA,CAACH,QAAQ;IAACO,IAAI,EAAC,YAAY;IAACC,KAAK,EAAET,MAAM,CAACU;EAAe,CAAE,CAC3C,CAAC;AAEvB,CAAC;AAED,eAAeR,UAAU;AAEzB,MAAMI,MAAM,GAAGV,UAAU,CAACe,MAAM,CAAC;EAC/BJ,WAAW,EAAE;IACXK,OAAO,EAAE,CAAC;IACVC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,UAAU,EAAEhB,mBAAmB,CAAC,EAAE;EACpC;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { StyleSheet, Text, TouchableOpacity } from 'react-native';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { COLORS } from '../themes';
|
|
4
|
-
import { fontPixel, pixelSizeHorizontal, pixelSizeVertical } from '../themes/styling';
|
|
5
|
-
const BaseButton = ({
|
|
6
|
-
label,
|
|
7
|
-
onPress
|
|
8
|
-
}) => {
|
|
9
|
-
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
10
|
-
activeOpacity: 0.7,
|
|
11
|
-
style: styles.BaseButton,
|
|
12
|
-
onPress: onPress
|
|
13
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
14
|
-
style: styles.labelStyle
|
|
15
|
-
}, label));
|
|
16
|
-
};
|
|
17
|
-
export default BaseButton;
|
|
18
|
-
const styles = StyleSheet.create({
|
|
19
|
-
BaseButton: {
|
|
20
|
-
backgroundColor: "#f5a103",
|
|
21
|
-
paddingVertical: pixelSizeVertical(12),
|
|
22
|
-
paddingHorizontal: pixelSizeHorizontal(16),
|
|
23
|
-
justifyContent: 'center',
|
|
24
|
-
alignItems: 'center',
|
|
25
|
-
borderRadius: 48
|
|
26
|
-
},
|
|
27
|
-
labelStyle: {
|
|
28
|
-
fontSize: fontPixel(16),
|
|
29
|
-
fontWeight: '500',
|
|
30
|
-
lineHeight: 22,
|
|
31
|
-
color: COLORS.white
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=BaseButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","Text","TouchableOpacity","React","COLORS","fontPixel","pixelSizeHorizontal","pixelSizeVertical","BaseButton","label","onPress","createElement","activeOpacity","style","styles","labelStyle","create","backgroundColor","paddingVertical","paddingHorizontal","justifyContent","alignItems","borderRadius","fontSize","fontWeight","lineHeight","color","white"],"sourceRoot":"..\\..\\..\\src","sources":["components/BaseButton.tsx"],"mappings":"AAAA,SAASA,UAAU,EAAEC,IAAI,EAAEC,gBAAgB,QAAQ,cAAc;AACjE,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,WAAW;AAClC,SACEC,SAAS,EACTC,mBAAmB,EACnBC,iBAAiB,QACZ,mBAAmB;AAO1B,MAAMC,UAA2B,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAQ,CAAC,KAAK;EAC1D,oBACEP,KAAA,CAAAQ,aAAA,CAACT,gBAAgB;IACfU,aAAa,EAAE,GAAI;IACnBC,KAAK,EAAEC,MAAM,CAACN,UAAW;IACzBE,OAAO,EAAEA;EAAQ,gBAEjBP,KAAA,CAAAQ,aAAA,CAACV,IAAI;IAACY,KAAK,EAAEC,MAAM,CAACC;EAAW,GAAEN,KAAY,CAC7B,CAAC;AAEvB,CAAC;AAED,eAAeD,UAAU;AAEzB,MAAMM,MAAM,GAAGd,UAAU,CAACgB,MAAM,CAAC;EAC/BR,UAAU,EAAE;IACVS,eAAe,EAAE,SAAS;IAC1BC,eAAe,EAAEX,iBAAiB,CAAC,EAAE,CAAC;IACtCY,iBAAiB,EAAEb,mBAAmB,CAAC,EAAE,CAAC;IAC1Cc,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,YAAY,EAAE;EAChB,CAAC;EACDP,UAAU,EAAE;IACVQ,QAAQ,EAAElB,SAAS,CAAC,EAAE,CAAC;IACvBmB,UAAU,EAAE,KAAK;IACjBC,UAAU,EAAE,EAAE;IACdC,KAAK,EAAEtB,MAAM,CAACuB;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import ArrowLeftIcon from './icons/arrow-left';
|
|
3
|
-
import ChevronDownIcon from './icons/chevron-down';
|
|
4
|
-
import ChevronLeftIcon from './icons/chevron-left';
|
|
5
|
-
import ChevronRightIcon from './icons/chevron-right';
|
|
6
|
-
import ChevronUpIcon from './icons/chevron-up';
|
|
7
|
-
import CloseIcon from './icons/close';
|
|
8
|
-
import BigWarningIcon from './icons/big-warning';
|
|
9
|
-
import CheckSuccessIcon from './icons/check-success';
|
|
10
|
-
/**
|
|
11
|
-
*
|
|
12
|
-
* <div class="screenshots">
|
|
13
|
-
* <figure>
|
|
14
|
-
* <img class="small" src="screenshots/icon-1.png" />
|
|
15
|
-
* <figcaption>Default icon</figcaption>
|
|
16
|
-
* </figure>
|
|
17
|
-
* <figure>
|
|
18
|
-
* <img class="small" src="screenshots/icon-2.png" />
|
|
19
|
-
* <figcaption>Custom icon colors</figcaption>
|
|
20
|
-
* </figure>
|
|
21
|
-
* <figure>
|
|
22
|
-
* <img class="small" src="screenshots/icon-3.png" />
|
|
23
|
-
* <figcaption>Custom icon sizes</figcaption>
|
|
24
|
-
* </figure>
|
|
25
|
-
* </div>
|
|
26
|
-
*
|
|
27
|
-
* ## Usage
|
|
28
|
-
* ```js
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
const BaseIcon = ({
|
|
32
|
-
name,
|
|
33
|
-
color,
|
|
34
|
-
size,
|
|
35
|
-
...rest
|
|
36
|
-
}) => {
|
|
37
|
-
const DEFAULT_SIZE = 24;
|
|
38
|
-
const iconHeight = size || DEFAULT_SIZE;
|
|
39
|
-
const iconWidth = size || DEFAULT_SIZE;
|
|
40
|
-
const getProps = () => ({
|
|
41
|
-
color: color,
|
|
42
|
-
width: iconWidth,
|
|
43
|
-
height: iconHeight,
|
|
44
|
-
...rest
|
|
45
|
-
});
|
|
46
|
-
switch (name) {
|
|
47
|
-
case 'chevron_down':
|
|
48
|
-
//@ts-ignore
|
|
49
|
-
return /*#__PURE__*/React.createElement(ChevronDownIcon, getProps());
|
|
50
|
-
case 'chevron_left':
|
|
51
|
-
//@ts-ignore
|
|
52
|
-
return /*#__PURE__*/React.createElement(ChevronLeftIcon, getProps());
|
|
53
|
-
case 'chevron_right':
|
|
54
|
-
//@ts-ignore
|
|
55
|
-
return /*#__PURE__*/React.createElement(ChevronRightIcon, getProps());
|
|
56
|
-
case 'chevron_up':
|
|
57
|
-
//@ts-ignore
|
|
58
|
-
return /*#__PURE__*/React.createElement(ChevronUpIcon, getProps());
|
|
59
|
-
case 'close':
|
|
60
|
-
//@ts-ignore
|
|
61
|
-
return /*#__PURE__*/React.createElement(CloseIcon, getProps());
|
|
62
|
-
case 'arrow_left':
|
|
63
|
-
//@ts-ignore
|
|
64
|
-
return /*#__PURE__*/React.createElement(ArrowLeftIcon, getProps());
|
|
65
|
-
case 'big_warning':
|
|
66
|
-
//@ts-ignore
|
|
67
|
-
return /*#__PURE__*/React.createElement(BigWarningIcon, getProps());
|
|
68
|
-
case 'check_success':
|
|
69
|
-
//@ts-ignore
|
|
70
|
-
return /*#__PURE__*/React.createElement(CheckSuccessIcon, getProps());
|
|
71
|
-
default:
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
export default BaseIcon;
|
|
76
|
-
//# sourceMappingURL=BaseIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","ArrowLeftIcon","ChevronDownIcon","ChevronLeftIcon","ChevronRightIcon","ChevronUpIcon","CloseIcon","BigWarningIcon","CheckSuccessIcon","BaseIcon","name","color","size","rest","DEFAULT_SIZE","iconHeight","iconWidth","getProps","width","height","createElement"],"sourceRoot":"..\\..\\..\\src","sources":["components/BaseIcon.tsx"],"mappings":"AACA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,aAAa,MAAM,oBAAoB;AAC9C,OAAOC,eAAe,MAAM,sBAAsB;AAClD,OAAOC,eAAe,MAAM,sBAAsB;AAClD,OAAOC,gBAAgB,MAAM,uBAAuB;AACpD,OAAOC,aAAa,MAAM,oBAAoB;AAC9C,OAAOC,SAAS,MAAM,eAAe;AACrC,OAAOC,cAAc,MAAM,qBAAqB;AAChD,OAAOC,gBAAgB,MAAM,uBAAuB;AAqBpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMC,QAAQ,GAAGA,CAAC;EAAEC,IAAI;EAAEC,KAAK;EAAEC,IAAI;EAAE,GAAGC;AAAY,CAAC,KAAK;EAC1D,MAAMC,YAAY,GAAG,EAAE;EAEvB,MAAMC,UAAU,GAAGH,IAAI,IAAIE,YAAY;EACvC,MAAME,SAAS,GAAGJ,IAAI,IAAIE,YAAY;EAEtC,MAAMG,QAAQ,GAAGA,CAAA,MAAO;IACtBN,KAAK,EAAEA,KAAK;IACZO,KAAK,EAAEF,SAAS;IAChBG,MAAM,EAAEJ,UAAU;IAClB,GAAGF;EACL,CAAC,CAAC;EAEF,QAAQH,IAAI;IACV,KAAK,cAAc;MACjB;MACA,oBAAOV,KAAA,CAAAoB,aAAA,CAAClB,eAAe,EAAKe,QAAQ,CAAC,CAAI,CAAC;IAC5C,KAAK,cAAc;MACjB;MACA,oBAAOjB,KAAA,CAAAoB,aAAA,CAACjB,eAAe,EAAKc,QAAQ,CAAC,CAAI,CAAC;IAC5C,KAAK,eAAe;MAClB;MACA,oBAAOjB,KAAA,CAAAoB,aAAA,CAAChB,gBAAgB,EAAKa,QAAQ,CAAC,CAAI,CAAC;IAC7C,KAAK,YAAY;MACf;MACA,oBAAOjB,KAAA,CAAAoB,aAAA,CAACf,aAAa,EAAKY,QAAQ,CAAC,CAAI,CAAC;IAC1C,KAAK,OAAO;MACV;MACA,oBAAOjB,KAAA,CAAAoB,aAAA,CAACd,SAAS,EAAKW,QAAQ,CAAC,CAAI,CAAC;IACtC,KAAK,YAAY;MACf;MACA,oBAAOjB,KAAA,CAAAoB,aAAA,CAACnB,aAAa,EAAKgB,QAAQ,CAAC,CAAI,CAAC;IAC1C,KAAK,aAAa;MAChB;MACA,oBAAOjB,KAAA,CAAAoB,aAAA,CAACb,cAAc,EAAKU,QAAQ,CAAC,CAAI,CAAC;IAC3C,KAAK,eAAe;MAClB;MACA,oBAAOjB,KAAA,CAAAoB,aAAA,CAACZ,gBAAgB,EAAKS,QAAQ,CAAC,CAAI,CAAC;IAC7C;MACE,OAAO,IAAI;EACf;AACF,CAAC;AAED,eAAeR,QAAQ","ignoreList":[]}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { StyleSheet, TouchableOpacity } from 'react-native';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { pixelSizeHorizontal } from '../themes/styling';
|
|
4
|
-
import { COLORS } from '../themes';
|
|
5
|
-
import BaseIcon from './BaseIcon';
|
|
6
|
-
const CloseButton = ({
|
|
7
|
-
onPress
|
|
8
|
-
}) => {
|
|
9
|
-
return /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
10
|
-
style: styles.BackButtons,
|
|
11
|
-
onPress: onPress
|
|
12
|
-
}, /*#__PURE__*/React.createElement(BaseIcon, {
|
|
13
|
-
name: "close",
|
|
14
|
-
color: COLORS.secondaryBase1
|
|
15
|
-
}));
|
|
16
|
-
};
|
|
17
|
-
export default CloseButton;
|
|
18
|
-
const styles = StyleSheet.create({
|
|
19
|
-
BackButtons: {
|
|
20
|
-
padding: 6,
|
|
21
|
-
justifyContent: 'center',
|
|
22
|
-
alignItems: 'center',
|
|
23
|
-
marginLeft: pixelSizeHorizontal(16)
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
//# sourceMappingURL=CloseButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","TouchableOpacity","React","pixelSizeHorizontal","COLORS","BaseIcon","CloseButton","onPress","createElement","style","styles","BackButtons","name","color","secondaryBase1","create","padding","justifyContent","alignItems","marginLeft"],"sourceRoot":"..\\..\\..\\src","sources":["components/CloseButton.tsx"],"mappings":"AAAA,SAASA,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AAC3D,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,mBAAmB,QAAQ,mBAAmB;AACvD,SAASC,MAAM,QAAQ,WAAW;AAClC,OAAOC,QAAQ,MAAM,YAAY;AAMjC,MAAMC,WAA4B,GAAGA,CAAC;EAAEC;AAAQ,CAAC,KAAK;EACpD,oBACEL,KAAA,CAAAM,aAAA,CAACP,gBAAgB;IAACQ,KAAK,EAAEC,MAAM,CAACC,WAAY;IAACJ,OAAO,EAAEA;EAAQ,gBAC5DL,KAAA,CAAAM,aAAA,CAACH,QAAQ;IAACO,IAAI,EAAC,OAAO;IAACC,KAAK,EAAET,MAAM,CAACU;EAAe,CAAE,CACtC,CAAC;AAEvB,CAAC;AAED,eAAeR,WAAW;AAE1B,MAAMI,MAAM,GAAGV,UAAU,CAACe,MAAM,CAAC;EAC/BJ,WAAW,EAAE;IACXK,OAAO,EAAE,CAAC;IACVC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBC,UAAU,EAAEhB,mBAAmB,CAAC,EAAE;EACpC;AACF,CAAC,CAAC","ignoreList":[]}
|