@sumup/react-native-checkout 0.0.0-alpha.1
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/LICENSE +201 -0
- package/README.md +354 -0
- package/android/build.gradle +78 -0
- package/android/gradle.properties +5 -0
- package/android/src/main/AndroidManifest.xml +3 -0
- package/android/src/main/java/com/sumupreactnative/PaymentUtil.java +111 -0
- package/android/src/main/java/com/sumupreactnative/SumupReactNativeModule.java +187 -0
- package/android/src/main/java/com/sumupreactnative/SumupReactNativePackage.java +28 -0
- package/ios/SumupReactNative-Bridging-Header.h +2 -0
- package/ios/SumupReactNative.m +18 -0
- package/ios/SumupReactNative.swift +164 -0
- package/ios/SumupReactNative.xcodeproj/project.pbxproj +283 -0
- package/lib/commonjs/assets/fonts/AktivGrotesk/AktivGrotesk-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/SFProText/SFProText-Bold.ttf +0 -0
- package/lib/commonjs/assets/fonts/SFProText/SFProText-Regular.ttf +0 -0
- package/lib/commonjs/assets/icons/americanExpress/americanExpress@2x.png +0 -0
- package/lib/commonjs/assets/icons/americanExpress/americanExpress@3x.png +0 -0
- package/lib/commonjs/assets/icons/applePay/applePay@2x.png +0 -0
- package/lib/commonjs/assets/icons/applePay/applePay@3x.png +0 -0
- package/lib/commonjs/assets/icons/back/back@2x.png +0 -0
- package/lib/commonjs/assets/icons/back/back@3x.png +0 -0
- package/lib/commonjs/assets/icons/cardPlaceholder/cardPlaceholder@2x.png +0 -0
- package/lib/commonjs/assets/icons/cardPlaceholder/cardPlaceholder@3x.png +0 -0
- package/lib/commonjs/assets/icons/checkbox/checkbox@2x.png +0 -0
- package/lib/commonjs/assets/icons/checkbox/checkbox@3x.png +0 -0
- package/lib/commonjs/assets/icons/cross/cross@2x.png +0 -0
- package/lib/commonjs/assets/icons/cross/cross@3x.png +0 -0
- package/lib/commonjs/assets/icons/googlePay/googlePay@2x.png +0 -0
- package/lib/commonjs/assets/icons/googlePay/googlePay@3x.png +0 -0
- package/lib/commonjs/assets/icons/lock/lock@2x.png +0 -0
- package/lib/commonjs/assets/icons/lock/lock@3x.png +0 -0
- package/lib/commonjs/assets/icons/mastercard/mastercard@2x.png +0 -0
- package/lib/commonjs/assets/icons/mastercard/mastercard@3x.png +0 -0
- package/lib/commonjs/assets/icons/more/more@2x.png +0 -0
- package/lib/commonjs/assets/icons/more/more@3x.png +0 -0
- package/lib/commonjs/assets/icons/rightArrow/rightArrow@2x.png +0 -0
- package/lib/commonjs/assets/icons/rightArrow/rightArrow@3x.png +0 -0
- package/lib/commonjs/assets/icons/visa/visa@2x.png +0 -0
- package/lib/commonjs/assets/icons/visa/visa@3x.png +0 -0
- package/lib/commonjs/assets/icons/whiteCheckmark/whiteCheckmark@2x.png +0 -0
- package/lib/commonjs/assets/icons/whiteCheckmark/whiteCheckmark@3x.png +0 -0
- package/lib/commonjs/components/3DSecureSheet/index.js +56 -0
- package/lib/commonjs/components/3DSecureSheet/index.js.map +1 -0
- package/lib/commonjs/components/AnimatedContainer/index.js +75 -0
- package/lib/commonjs/components/AnimatedContainer/index.js.map +1 -0
- package/lib/commonjs/components/AnimatedContainer/styles.js +40 -0
- package/lib/commonjs/components/AnimatedContainer/styles.js.map +1 -0
- package/lib/commonjs/components/ApplePayButton/index.js +29 -0
- package/lib/commonjs/components/ApplePayButton/index.js.map +1 -0
- package/lib/commonjs/components/ApplePayButton/styles.js +31 -0
- package/lib/commonjs/components/ApplePayButton/styles.js.map +1 -0
- package/lib/commonjs/components/Button/index.js +21 -0
- package/lib/commonjs/components/Button/index.js.map +1 -0
- package/lib/commonjs/components/Button/styles.js +55 -0
- package/lib/commonjs/components/Button/styles.js.map +1 -0
- package/lib/commonjs/components/CardInformation/index.js +87 -0
- package/lib/commonjs/components/CardInformation/index.js.map +1 -0
- package/lib/commonjs/components/CardInformation/styles.js +42 -0
- package/lib/commonjs/components/CardInformation/styles.js.map +1 -0
- package/lib/commonjs/components/CardSheet/index.js +138 -0
- package/lib/commonjs/components/CardSheet/index.js.map +1 -0
- package/lib/commonjs/components/CardSheet/styles.js +53 -0
- package/lib/commonjs/components/CardSheet/styles.js.map +1 -0
- package/lib/commonjs/components/CardSheet/useCardSheet/index.js +90 -0
- package/lib/commonjs/components/CardSheet/useCardSheet/index.js.map +1 -0
- package/lib/commonjs/components/Checkbox/index.js +25 -0
- package/lib/commonjs/components/Checkbox/index.js.map +1 -0
- package/lib/commonjs/components/Checkbox/styles.js +31 -0
- package/lib/commonjs/components/Checkbox/styles.js.map +1 -0
- package/lib/commonjs/components/GooglePayButton/index.js +29 -0
- package/lib/commonjs/components/GooglePayButton/index.js.map +1 -0
- package/lib/commonjs/components/GooglePayButton/styles.js +36 -0
- package/lib/commonjs/components/GooglePayButton/styles.js.map +1 -0
- package/lib/commonjs/components/Header/index.js +35 -0
- package/lib/commonjs/components/Header/index.js.map +1 -0
- package/lib/commonjs/components/Header/styles.js +42 -0
- package/lib/commonjs/components/Header/styles.js.map +1 -0
- package/lib/commonjs/components/ImageButton/index.js +28 -0
- package/lib/commonjs/components/ImageButton/index.js.map +1 -0
- package/lib/commonjs/components/ImageButton/styles.js +16 -0
- package/lib/commonjs/components/ImageButton/styles.js.map +1 -0
- package/lib/commonjs/components/InputFields/BaseInputField/index.js +48 -0
- package/lib/commonjs/components/InputFields/BaseInputField/index.js.map +1 -0
- package/lib/commonjs/components/InputFields/BaseInputField/styles.js +45 -0
- package/lib/commonjs/components/InputFields/BaseInputField/styles.js.map +1 -0
- package/lib/commonjs/components/InputFields/CVCInputField/index.js +27 -0
- package/lib/commonjs/components/InputFields/CVCInputField/index.js.map +1 -0
- package/lib/commonjs/components/InputFields/CVCInputField/styles.js +28 -0
- package/lib/commonjs/components/InputFields/CVCInputField/styles.js.map +1 -0
- package/lib/commonjs/components/InputFields/CardInputField/index.js +47 -0
- package/lib/commonjs/components/InputFields/CardInputField/index.js.map +1 -0
- package/lib/commonjs/components/InputFields/CardInputField/styles.js +31 -0
- package/lib/commonjs/components/InputFields/CardInputField/styles.js.map +1 -0
- package/lib/commonjs/components/InputFields/ExpirationDateInputField/index.js +20 -0
- package/lib/commonjs/components/InputFields/ExpirationDateInputField/index.js.map +1 -0
- package/lib/commonjs/components/LoadingSpinner/index.js +42 -0
- package/lib/commonjs/components/LoadingSpinner/index.js.map +1 -0
- package/lib/commonjs/components/LoadingSpinner/styles.js +35 -0
- package/lib/commonjs/components/LoadingSpinner/styles.js.map +1 -0
- package/lib/commonjs/components/Modal/index.js +27 -0
- package/lib/commonjs/components/Modal/index.js.map +1 -0
- package/lib/commonjs/components/Modal/styles.js +35 -0
- package/lib/commonjs/components/Modal/styles.js.map +1 -0
- package/lib/commonjs/components/NativePayButton/index.js +20 -0
- package/lib/commonjs/components/NativePayButton/index.js.map +1 -0
- package/lib/commonjs/components/NoInternetConnection/index.js +32 -0
- package/lib/commonjs/components/NoInternetConnection/index.js.map +1 -0
- package/lib/commonjs/components/NoInternetConnection/styles.js +21 -0
- package/lib/commonjs/components/NoInternetConnection/styles.js.map +1 -0
- package/lib/commonjs/components/OptionMenuModal/index.js +74 -0
- package/lib/commonjs/components/OptionMenuModal/index.js.map +1 -0
- package/lib/commonjs/components/OptionMenuModal/styles.js +50 -0
- package/lib/commonjs/components/OptionMenuModal/styles.js.map +1 -0
- package/lib/commonjs/components/PayButton/index.js +56 -0
- package/lib/commonjs/components/PayButton/index.js.map +1 -0
- package/lib/commonjs/components/PayButton/styles.js +32 -0
- package/lib/commonjs/components/PayButton/styles.js.map +1 -0
- package/lib/commonjs/components/PaymentMethod/index.js +45 -0
- package/lib/commonjs/components/PaymentMethod/index.js.map +1 -0
- package/lib/commonjs/components/PaymentMethod/styles.js +22 -0
- package/lib/commonjs/components/PaymentMethod/styles.js.map +1 -0
- package/lib/commonjs/components/PaymentMethodFormHeaderOption/index.js +28 -0
- package/lib/commonjs/components/PaymentMethodFormHeaderOption/index.js.map +1 -0
- package/lib/commonjs/components/PaymentMethodFormHeaderOption/styles.js +43 -0
- package/lib/commonjs/components/PaymentMethodFormHeaderOption/styles.js.map +1 -0
- package/lib/commonjs/components/PaymentMethodsForm/index.js +23 -0
- package/lib/commonjs/components/PaymentMethodsForm/index.js.map +1 -0
- package/lib/commonjs/components/PaymentMethodsForm/styles.js +30 -0
- package/lib/commonjs/components/PaymentMethodsForm/styles.js.map +1 -0
- package/lib/commonjs/components/PaymentSheet/index.js +85 -0
- package/lib/commonjs/components/PaymentSheet/index.js.map +1 -0
- package/lib/commonjs/components/PrivacyPolicySheet/consts.js +50 -0
- package/lib/commonjs/components/PrivacyPolicySheet/consts.js.map +1 -0
- package/lib/commonjs/components/PrivacyPolicySheet/index.js +35 -0
- package/lib/commonjs/components/PrivacyPolicySheet/index.js.map +1 -0
- package/lib/commonjs/components/ProcessButton/index.js +64 -0
- package/lib/commonjs/components/ProcessButton/index.js.map +1 -0
- package/lib/commonjs/components/ProcessButton/styles.js +36 -0
- package/lib/commonjs/components/ProcessButton/styles.js.map +1 -0
- package/lib/commonjs/components/SaveCard/index.js +87 -0
- package/lib/commonjs/components/SaveCard/index.js.map +1 -0
- package/lib/commonjs/components/SaveCard/styles.js +23 -0
- package/lib/commonjs/components/SaveCard/styles.js.map +1 -0
- package/lib/commonjs/components/SaveCard/useSaveCard/index.js +63 -0
- package/lib/commonjs/components/SaveCard/useSaveCard/index.js.map +1 -0
- package/lib/commonjs/components/SaveCardButton/index.js +33 -0
- package/lib/commonjs/components/SaveCardButton/index.js.map +1 -0
- package/lib/commonjs/components/SaveCardButton/styles.js +32 -0
- package/lib/commonjs/components/SaveCardButton/styles.js.map +1 -0
- package/lib/commonjs/components/SaveCardSheet/index.js +32 -0
- package/lib/commonjs/components/SaveCardSheet/index.js.map +1 -0
- package/lib/commonjs/components/SavedCard/index.js +50 -0
- package/lib/commonjs/components/SavedCard/index.js.map +1 -0
- package/lib/commonjs/components/SavedCard/styles.js +39 -0
- package/lib/commonjs/components/SavedCard/styles.js.map +1 -0
- package/lib/commonjs/components/SavedCardsSheet/index.js +87 -0
- package/lib/commonjs/components/SavedCardsSheet/index.js.map +1 -0
- package/lib/commonjs/components/SavedCardsSheet/styles.js +22 -0
- package/lib/commonjs/components/SavedCardsSheet/styles.js.map +1 -0
- package/lib/commonjs/components/SumUpProvider.js +59 -0
- package/lib/commonjs/components/SumUpProvider.js.map +1 -0
- package/lib/commonjs/components/Switch/index.js +37 -0
- package/lib/commonjs/components/Switch/index.js.map +1 -0
- package/lib/commonjs/components/Switch/styles.js +55 -0
- package/lib/commonjs/components/Switch/styles.js.map +1 -0
- package/lib/commonjs/components/Text/index.js +63 -0
- package/lib/commonjs/components/Text/index.js.map +1 -0
- package/lib/commonjs/components/Text/styles.js +19 -0
- package/lib/commonjs/components/Text/styles.js.map +1 -0
- package/lib/commonjs/components/WebViewSheet/index.js +48 -0
- package/lib/commonjs/components/WebViewSheet/index.js.map +1 -0
- package/lib/commonjs/components/WebViewSheet/styles.js +54 -0
- package/lib/commonjs/components/WebViewSheet/styles.js.map +1 -0
- package/lib/commonjs/consts/UI.js +11 -0
- package/lib/commonjs/consts/UI.js.map +1 -0
- package/lib/commonjs/consts/errors.js +13 -0
- package/lib/commonjs/consts/errors.js.map +1 -0
- package/lib/commonjs/consts/nativePayMethod.js +19 -0
- package/lib/commonjs/consts/nativePayMethod.js.map +1 -0
- package/lib/commonjs/consts/validation.js +22 -0
- package/lib/commonjs/consts/validation.js.map +1 -0
- package/lib/commonjs/contexts/LanguageContext/index.js +38 -0
- package/lib/commonjs/contexts/LanguageContext/index.js.map +1 -0
- package/lib/commonjs/contexts/OptionMenuContext/index.js +39 -0
- package/lib/commonjs/contexts/OptionMenuContext/index.js.map +1 -0
- package/lib/commonjs/contexts/PaymentSheetContext/index.js +39 -0
- package/lib/commonjs/contexts/PaymentSheetContext/index.js.map +1 -0
- package/lib/commonjs/contexts/StoreContext.js +49 -0
- package/lib/commonjs/contexts/StoreContext.js.map +1 -0
- package/lib/commonjs/contexts/ThemeContext.js +15 -0
- package/lib/commonjs/contexts/ThemeContext.js.map +1 -0
- package/lib/commonjs/helpers/formatAmount/index.js +26 -0
- package/lib/commonjs/helpers/formatAmount/index.js.map +1 -0
- package/lib/commonjs/helpers/getUserAgent/index.js +12 -0
- package/lib/commonjs/helpers/getUserAgent/index.js.map +1 -0
- package/lib/commonjs/helpers/validation/paymentFields.js +56 -0
- package/lib/commonjs/helpers/validation/paymentFields.js.map +1 -0
- package/lib/commonjs/hooks/base/index.js +34 -0
- package/lib/commonjs/hooks/base/index.js.map +1 -0
- package/lib/commonjs/hooks/base/useCard/index.js +62 -0
- package/lib/commonjs/hooks/base/useCard/index.js.map +1 -0
- package/lib/commonjs/hooks/base/useCvcCode/index.js +52 -0
- package/lib/commonjs/hooks/base/useCvcCode/index.js.map +1 -0
- package/lib/commonjs/hooks/base/useExpirationDate/index.js +66 -0
- package/lib/commonjs/hooks/base/useExpirationDate/index.js.map +1 -0
- package/lib/commonjs/hooks/base/useName/index.js +52 -0
- package/lib/commonjs/hooks/base/useName/index.js.map +1 -0
- package/lib/commonjs/hooks/useSafeArea.js +18 -0
- package/lib/commonjs/hooks/useSafeArea.js.map +1 -0
- package/lib/commonjs/hooks/useSumUp.js +82 -0
- package/lib/commonjs/hooks/useSumUp.js.map +1 -0
- package/lib/commonjs/index.js +59 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/publicApi/errors.js +103 -0
- package/lib/commonjs/publicApi/errors.js.map +1 -0
- package/lib/commonjs/services/API/ApiManager/index.js +154 -0
- package/lib/commonjs/services/API/ApiManager/index.js.map +1 -0
- package/lib/commonjs/services/API/CheckoutApiManager/index.js +83 -0
- package/lib/commonjs/services/API/CheckoutApiManager/index.js.map +1 -0
- package/lib/commonjs/services/API/CheckoutApiManager/models.js +6 -0
- package/lib/commonjs/services/API/CheckoutApiManager/models.js.map +1 -0
- package/lib/commonjs/services/API/PullingService/index.js +26 -0
- package/lib/commonjs/services/API/PullingService/index.js.map +1 -0
- package/lib/commonjs/services/ApplePayService/index.js +51 -0
- package/lib/commonjs/services/ApplePayService/index.js.map +1 -0
- package/lib/commonjs/services/GooglePayService/index.js +57 -0
- package/lib/commonjs/services/GooglePayService/index.js.map +1 -0
- package/lib/commonjs/services/Logger/index.js +27 -0
- package/lib/commonjs/services/Logger/index.js.map +1 -0
- package/lib/commonjs/services/NativePaymentsBridge/index.js +10 -0
- package/lib/commonjs/services/NativePaymentsBridge/index.js.map +1 -0
- package/lib/commonjs/stores/BaseSheetStore/index.js +127 -0
- package/lib/commonjs/stores/BaseSheetStore/index.js.map +1 -0
- package/lib/commonjs/stores/NativePaymentStore/index.js +108 -0
- package/lib/commonjs/stores/NativePaymentStore/index.js.map +1 -0
- package/lib/commonjs/stores/PaymentInstrumentsStore/index.js +121 -0
- package/lib/commonjs/stores/PaymentInstrumentsStore/index.js.map +1 -0
- package/lib/commonjs/stores/PaymentStore/index.js +150 -0
- package/lib/commonjs/stores/PaymentStore/index.js.map +1 -0
- package/lib/commonjs/stores/RootStore.js +25 -0
- package/lib/commonjs/stores/RootStore.js.map +1 -0
- package/lib/commonjs/stores/SaveCardStore/index.js +131 -0
- package/lib/commonjs/stores/SaveCardStore/index.js.map +1 -0
- package/lib/commonjs/stores/ThreeDSecureStore/index.js +63 -0
- package/lib/commonjs/stores/ThreeDSecureStore/index.js.map +1 -0
- package/lib/commonjs/styles/colors.js +30 -0
- package/lib/commonjs/styles/colors.js.map +1 -0
- package/lib/commonjs/styles/fonts.js +13 -0
- package/lib/commonjs/styles/fonts.js.map +1 -0
- package/lib/commonjs/styles/images.js +23 -0
- package/lib/commonjs/styles/images.js.map +1 -0
- package/lib/commonjs/styles/index.js +15 -0
- package/lib/commonjs/styles/index.js.map +1 -0
- package/lib/commonjs/translations/bg-BG.json +55 -0
- package/lib/commonjs/translations/ca-ES.json +55 -0
- package/lib/commonjs/translations/cs-CZ.json +55 -0
- package/lib/commonjs/translations/da-DK.json +55 -0
- package/lib/commonjs/translations/de-AT.json +55 -0
- package/lib/commonjs/translations/de-CH.json +55 -0
- package/lib/commonjs/translations/de-DE.json +55 -0
- package/lib/commonjs/translations/de-LU.json +55 -0
- package/lib/commonjs/translations/el-CY.json +55 -0
- package/lib/commonjs/translations/el-GR.json +55 -0
- package/lib/commonjs/translations/en-AU.json +55 -0
- package/lib/commonjs/translations/en-GB.json +55 -0
- package/lib/commonjs/translations/en-IE.json +55 -0
- package/lib/commonjs/translations/en-MT.json +55 -0
- package/lib/commonjs/translations/en-US.json +55 -0
- package/lib/commonjs/translations/en.json +55 -0
- package/lib/commonjs/translations/es-CL.json +55 -0
- package/lib/commonjs/translations/es-CO.json +55 -0
- package/lib/commonjs/translations/es-ES.json +55 -0
- package/lib/commonjs/translations/es-LA.json +55 -0
- package/lib/commonjs/translations/es-PE.json +55 -0
- package/lib/commonjs/translations/et-EE.json +55 -0
- package/lib/commonjs/translations/fi-FI.json +55 -0
- package/lib/commonjs/translations/fr-BE.json +55 -0
- package/lib/commonjs/translations/fr-CH.json +55 -0
- package/lib/commonjs/translations/fr-FR.json +55 -0
- package/lib/commonjs/translations/fr-LU.json +55 -0
- package/lib/commonjs/translations/hr-HR.json +55 -0
- package/lib/commonjs/translations/hu-HU.json +55 -0
- package/lib/commonjs/translations/index.js +95 -0
- package/lib/commonjs/translations/index.js.map +1 -0
- package/lib/commonjs/translations/it-CH.json +55 -0
- package/lib/commonjs/translations/it-IT.json +55 -0
- package/lib/commonjs/translations/lt-LT.json +55 -0
- package/lib/commonjs/translations/lv-LV.json +55 -0
- package/lib/commonjs/translations/nb-NO.json +55 -0
- package/lib/commonjs/translations/nl-BE.json +55 -0
- package/lib/commonjs/translations/nl-NL.json +55 -0
- package/lib/commonjs/translations/pl-PL.json +55 -0
- package/lib/commonjs/translations/pt-BR.json +55 -0
- package/lib/commonjs/translations/pt-PT.json +55 -0
- package/lib/commonjs/translations/ro-RO.json +55 -0
- package/lib/commonjs/translations/sk-SK.json +55 -0
- package/lib/commonjs/translations/sl-SI.json +55 -0
- package/lib/commonjs/translations/sv-SE.json +55 -0
- package/lib/commonjs/types/ApplePay.js +2 -0
- package/lib/commonjs/types/ApplePay.js.map +1 -0
- package/lib/commonjs/types/CommonSheet.js +2 -0
- package/lib/commonjs/types/CommonSheet.js.map +1 -0
- package/lib/commonjs/types/GooglePay.js +2 -0
- package/lib/commonjs/types/GooglePay.js.map +1 -0
- package/lib/commonjs/types/PaymentSheet.js +6 -0
- package/lib/commonjs/types/PaymentSheet.js.map +1 -0
- package/lib/commonjs/types/Requests.js +2 -0
- package/lib/commonjs/types/Requests.js.map +1 -0
- package/lib/commonjs/types/SaveCardSheet.js +6 -0
- package/lib/commonjs/types/SaveCardSheet.js.map +1 -0
- package/lib/commonjs/types/index.js +19 -0
- package/lib/commonjs/types/index.js.map +1 -0
- package/lib/commonjs/types/react-native-safe-area-context.d.js +2 -0
- package/lib/commonjs/types/react-native-safe-area-context.d.js.map +1 -0
- package/lib/module/assets/fonts/AktivGrotesk/AktivGrotesk-Bold.ttf +0 -0
- package/lib/module/assets/fonts/SFProText/SFProText-Bold.ttf +0 -0
- package/lib/module/assets/fonts/SFProText/SFProText-Regular.ttf +0 -0
- package/lib/module/assets/icons/americanExpress/americanExpress@2x.png +0 -0
- package/lib/module/assets/icons/americanExpress/americanExpress@3x.png +0 -0
- package/lib/module/assets/icons/applePay/applePay@2x.png +0 -0
- package/lib/module/assets/icons/applePay/applePay@3x.png +0 -0
- package/lib/module/assets/icons/back/back@2x.png +0 -0
- package/lib/module/assets/icons/back/back@3x.png +0 -0
- package/lib/module/assets/icons/cardPlaceholder/cardPlaceholder@2x.png +0 -0
- package/lib/module/assets/icons/cardPlaceholder/cardPlaceholder@3x.png +0 -0
- package/lib/module/assets/icons/checkbox/checkbox@2x.png +0 -0
- package/lib/module/assets/icons/checkbox/checkbox@3x.png +0 -0
- package/lib/module/assets/icons/cross/cross@2x.png +0 -0
- package/lib/module/assets/icons/cross/cross@3x.png +0 -0
- package/lib/module/assets/icons/googlePay/googlePay@2x.png +0 -0
- package/lib/module/assets/icons/googlePay/googlePay@3x.png +0 -0
- package/lib/module/assets/icons/lock/lock@2x.png +0 -0
- package/lib/module/assets/icons/lock/lock@3x.png +0 -0
- package/lib/module/assets/icons/mastercard/mastercard@2x.png +0 -0
- package/lib/module/assets/icons/mastercard/mastercard@3x.png +0 -0
- package/lib/module/assets/icons/more/more@2x.png +0 -0
- package/lib/module/assets/icons/more/more@3x.png +0 -0
- package/lib/module/assets/icons/rightArrow/rightArrow@2x.png +0 -0
- package/lib/module/assets/icons/rightArrow/rightArrow@3x.png +0 -0
- package/lib/module/assets/icons/visa/visa@2x.png +0 -0
- package/lib/module/assets/icons/visa/visa@3x.png +0 -0
- package/lib/module/assets/icons/whiteCheckmark/whiteCheckmark@2x.png +0 -0
- package/lib/module/assets/icons/whiteCheckmark/whiteCheckmark@3x.png +0 -0
- package/lib/module/components/3DSecureSheet/index.js +46 -0
- package/lib/module/components/3DSecureSheet/index.js.map +1 -0
- package/lib/module/components/AnimatedContainer/index.js +66 -0
- package/lib/module/components/AnimatedContainer/index.js.map +1 -0
- package/lib/module/components/AnimatedContainer/styles.js +33 -0
- package/lib/module/components/AnimatedContainer/styles.js.map +1 -0
- package/lib/module/components/ApplePayButton/index.js +21 -0
- package/lib/module/components/ApplePayButton/index.js.map +1 -0
- package/lib/module/components/ApplePayButton/styles.js +24 -0
- package/lib/module/components/ApplePayButton/styles.js.map +1 -0
- package/lib/module/components/Button/index.js +13 -0
- package/lib/module/components/Button/index.js.map +1 -0
- package/lib/module/components/Button/styles.js +48 -0
- package/lib/module/components/Button/styles.js.map +1 -0
- package/lib/module/components/CardInformation/index.js +78 -0
- package/lib/module/components/CardInformation/index.js.map +1 -0
- package/lib/module/components/CardInformation/styles.js +35 -0
- package/lib/module/components/CardInformation/styles.js.map +1 -0
- package/lib/module/components/CardSheet/index.js +130 -0
- package/lib/module/components/CardSheet/index.js.map +1 -0
- package/lib/module/components/CardSheet/styles.js +46 -0
- package/lib/module/components/CardSheet/styles.js.map +1 -0
- package/lib/module/components/CardSheet/useCardSheet/index.js +83 -0
- package/lib/module/components/CardSheet/useCardSheet/index.js.map +1 -0
- package/lib/module/components/Checkbox/index.js +17 -0
- package/lib/module/components/Checkbox/index.js.map +1 -0
- package/lib/module/components/Checkbox/styles.js +24 -0
- package/lib/module/components/Checkbox/styles.js.map +1 -0
- package/lib/module/components/GooglePayButton/index.js +21 -0
- package/lib/module/components/GooglePayButton/index.js.map +1 -0
- package/lib/module/components/GooglePayButton/styles.js +29 -0
- package/lib/module/components/GooglePayButton/styles.js.map +1 -0
- package/lib/module/components/Header/index.js +27 -0
- package/lib/module/components/Header/index.js.map +1 -0
- package/lib/module/components/Header/styles.js +35 -0
- package/lib/module/components/Header/styles.js.map +1 -0
- package/lib/module/components/ImageButton/index.js +20 -0
- package/lib/module/components/ImageButton/index.js.map +1 -0
- package/lib/module/components/ImageButton/styles.js +9 -0
- package/lib/module/components/ImageButton/styles.js.map +1 -0
- package/lib/module/components/InputFields/BaseInputField/index.js +40 -0
- package/lib/module/components/InputFields/BaseInputField/index.js.map +1 -0
- package/lib/module/components/InputFields/BaseInputField/styles.js +38 -0
- package/lib/module/components/InputFields/BaseInputField/styles.js.map +1 -0
- package/lib/module/components/InputFields/CVCInputField/index.js +19 -0
- package/lib/module/components/InputFields/CVCInputField/index.js.map +1 -0
- package/lib/module/components/InputFields/CVCInputField/styles.js +21 -0
- package/lib/module/components/InputFields/CVCInputField/styles.js.map +1 -0
- package/lib/module/components/InputFields/CardInputField/index.js +39 -0
- package/lib/module/components/InputFields/CardInputField/index.js.map +1 -0
- package/lib/module/components/InputFields/CardInputField/styles.js +24 -0
- package/lib/module/components/InputFields/CardInputField/styles.js.map +1 -0
- package/lib/module/components/InputFields/ExpirationDateInputField/index.js +12 -0
- package/lib/module/components/InputFields/ExpirationDateInputField/index.js.map +1 -0
- package/lib/module/components/LoadingSpinner/index.js +33 -0
- package/lib/module/components/LoadingSpinner/index.js.map +1 -0
- package/lib/module/components/LoadingSpinner/styles.js +28 -0
- package/lib/module/components/LoadingSpinner/styles.js.map +1 -0
- package/lib/module/components/Modal/index.js +19 -0
- package/lib/module/components/Modal/index.js.map +1 -0
- package/lib/module/components/Modal/styles.js +28 -0
- package/lib/module/components/Modal/styles.js.map +1 -0
- package/lib/module/components/NativePayButton/index.js +12 -0
- package/lib/module/components/NativePayButton/index.js.map +1 -0
- package/lib/module/components/NoInternetConnection/index.js +24 -0
- package/lib/module/components/NoInternetConnection/index.js.map +1 -0
- package/lib/module/components/NoInternetConnection/styles.js +14 -0
- package/lib/module/components/NoInternetConnection/styles.js.map +1 -0
- package/lib/module/components/OptionMenuModal/index.js +66 -0
- package/lib/module/components/OptionMenuModal/index.js.map +1 -0
- package/lib/module/components/OptionMenuModal/styles.js +43 -0
- package/lib/module/components/OptionMenuModal/styles.js.map +1 -0
- package/lib/module/components/PayButton/index.js +48 -0
- package/lib/module/components/PayButton/index.js.map +1 -0
- package/lib/module/components/PayButton/styles.js +25 -0
- package/lib/module/components/PayButton/styles.js.map +1 -0
- package/lib/module/components/PaymentMethod/index.js +36 -0
- package/lib/module/components/PaymentMethod/index.js.map +1 -0
- package/lib/module/components/PaymentMethod/styles.js +15 -0
- package/lib/module/components/PaymentMethod/styles.js.map +1 -0
- package/lib/module/components/PaymentMethodFormHeaderOption/index.js +20 -0
- package/lib/module/components/PaymentMethodFormHeaderOption/index.js.map +1 -0
- package/lib/module/components/PaymentMethodFormHeaderOption/styles.js +36 -0
- package/lib/module/components/PaymentMethodFormHeaderOption/styles.js.map +1 -0
- package/lib/module/components/PaymentMethodsForm/index.js +14 -0
- package/lib/module/components/PaymentMethodsForm/index.js.map +1 -0
- package/lib/module/components/PaymentMethodsForm/styles.js +23 -0
- package/lib/module/components/PaymentMethodsForm/styles.js.map +1 -0
- package/lib/module/components/PaymentSheet/index.js +76 -0
- package/lib/module/components/PaymentSheet/index.js.map +1 -0
- package/lib/module/components/PrivacyPolicySheet/consts.js +41 -0
- package/lib/module/components/PrivacyPolicySheet/consts.js.map +1 -0
- package/lib/module/components/PrivacyPolicySheet/index.js +26 -0
- package/lib/module/components/PrivacyPolicySheet/index.js.map +1 -0
- package/lib/module/components/ProcessButton/index.js +54 -0
- package/lib/module/components/ProcessButton/index.js.map +1 -0
- package/lib/module/components/ProcessButton/styles.js +29 -0
- package/lib/module/components/ProcessButton/styles.js.map +1 -0
- package/lib/module/components/SaveCard/index.js +79 -0
- package/lib/module/components/SaveCard/index.js.map +1 -0
- package/lib/module/components/SaveCard/styles.js +16 -0
- package/lib/module/components/SaveCard/styles.js.map +1 -0
- package/lib/module/components/SaveCard/useSaveCard/index.js +56 -0
- package/lib/module/components/SaveCard/useSaveCard/index.js.map +1 -0
- package/lib/module/components/SaveCardButton/index.js +25 -0
- package/lib/module/components/SaveCardButton/index.js.map +1 -0
- package/lib/module/components/SaveCardButton/styles.js +25 -0
- package/lib/module/components/SaveCardButton/styles.js.map +1 -0
- package/lib/module/components/SaveCardSheet/index.js +24 -0
- package/lib/module/components/SaveCardSheet/index.js.map +1 -0
- package/lib/module/components/SavedCard/index.js +42 -0
- package/lib/module/components/SavedCard/index.js.map +1 -0
- package/lib/module/components/SavedCard/styles.js +32 -0
- package/lib/module/components/SavedCard/styles.js.map +1 -0
- package/lib/module/components/SavedCardsSheet/index.js +78 -0
- package/lib/module/components/SavedCardsSheet/index.js.map +1 -0
- package/lib/module/components/SavedCardsSheet/styles.js +15 -0
- package/lib/module/components/SavedCardsSheet/styles.js.map +1 -0
- package/lib/module/components/SumUpProvider.js +51 -0
- package/lib/module/components/SumUpProvider.js.map +1 -0
- package/lib/module/components/Switch/index.js +28 -0
- package/lib/module/components/Switch/index.js.map +1 -0
- package/lib/module/components/Switch/styles.js +48 -0
- package/lib/module/components/Switch/styles.js.map +1 -0
- package/lib/module/components/Text/index.js +54 -0
- package/lib/module/components/Text/index.js.map +1 -0
- package/lib/module/components/Text/styles.js +12 -0
- package/lib/module/components/Text/styles.js.map +1 -0
- package/lib/module/components/WebViewSheet/index.js +38 -0
- package/lib/module/components/WebViewSheet/index.js.map +1 -0
- package/lib/module/components/WebViewSheet/styles.js +47 -0
- package/lib/module/components/WebViewSheet/styles.js.map +1 -0
- package/lib/module/consts/UI.js +4 -0
- package/lib/module/consts/UI.js.map +1 -0
- package/lib/module/consts/errors.js +7 -0
- package/lib/module/consts/errors.js.map +1 -0
- package/lib/module/consts/nativePayMethod.js +12 -0
- package/lib/module/consts/nativePayMethod.js.map +1 -0
- package/lib/module/consts/validation.js +15 -0
- package/lib/module/consts/validation.js.map +1 -0
- package/lib/module/contexts/LanguageContext/index.js +28 -0
- package/lib/module/contexts/LanguageContext/index.js.map +1 -0
- package/lib/module/contexts/OptionMenuContext/index.js +29 -0
- package/lib/module/contexts/OptionMenuContext/index.js.map +1 -0
- package/lib/module/contexts/PaymentSheetContext/index.js +28 -0
- package/lib/module/contexts/PaymentSheetContext/index.js.map +1 -0
- package/lib/module/contexts/StoreContext.js +33 -0
- package/lib/module/contexts/StoreContext.js.map +1 -0
- package/lib/module/contexts/ThemeContext.js +8 -0
- package/lib/module/contexts/ThemeContext.js.map +1 -0
- package/lib/module/helpers/formatAmount/index.js +19 -0
- package/lib/module/helpers/formatAmount/index.js.map +1 -0
- package/lib/module/helpers/getUserAgent/index.js +5 -0
- package/lib/module/helpers/getUserAgent/index.js.map +1 -0
- package/lib/module/helpers/validation/paymentFields.js +43 -0
- package/lib/module/helpers/validation/paymentFields.js.map +1 -0
- package/lib/module/hooks/base/index.js +6 -0
- package/lib/module/hooks/base/index.js.map +1 -0
- package/lib/module/hooks/base/useCard/index.js +54 -0
- package/lib/module/hooks/base/useCard/index.js.map +1 -0
- package/lib/module/hooks/base/useCvcCode/index.js +44 -0
- package/lib/module/hooks/base/useCvcCode/index.js.map +1 -0
- package/lib/module/hooks/base/useExpirationDate/index.js +58 -0
- package/lib/module/hooks/base/useExpirationDate/index.js.map +1 -0
- package/lib/module/hooks/base/useName/index.js +44 -0
- package/lib/module/hooks/base/useName/index.js.map +1 -0
- package/lib/module/hooks/useSafeArea.js +11 -0
- package/lib/module/hooks/useSafeArea.js.map +1 -0
- package/lib/module/hooks/useSumUp.js +76 -0
- package/lib/module/hooks/useSumUp.js.map +1 -0
- package/lib/module/index.js +13 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/publicApi/errors.js +92 -0
- package/lib/module/publicApi/errors.js.map +1 -0
- package/lib/module/services/API/ApiManager/index.js +141 -0
- package/lib/module/services/API/ApiManager/index.js.map +1 -0
- package/lib/module/services/API/CheckoutApiManager/index.js +76 -0
- package/lib/module/services/API/CheckoutApiManager/index.js.map +1 -0
- package/lib/module/services/API/CheckoutApiManager/models.js +2 -0
- package/lib/module/services/API/CheckoutApiManager/models.js.map +1 -0
- package/lib/module/services/API/PullingService/index.js +19 -0
- package/lib/module/services/API/PullingService/index.js.map +1 -0
- package/lib/module/services/ApplePayService/index.js +42 -0
- package/lib/module/services/ApplePayService/index.js.map +1 -0
- package/lib/module/services/GooglePayService/index.js +48 -0
- package/lib/module/services/GooglePayService/index.js.map +1 -0
- package/lib/module/services/Logger/index.js +20 -0
- package/lib/module/services/Logger/index.js.map +1 -0
- package/lib/module/services/NativePaymentsBridge/index.js +3 -0
- package/lib/module/services/NativePaymentsBridge/index.js.map +1 -0
- package/lib/module/stores/BaseSheetStore/index.js +119 -0
- package/lib/module/stores/BaseSheetStore/index.js.map +1 -0
- package/lib/module/stores/NativePaymentStore/index.js +100 -0
- package/lib/module/stores/NativePaymentStore/index.js.map +1 -0
- package/lib/module/stores/PaymentInstrumentsStore/index.js +113 -0
- package/lib/module/stores/PaymentInstrumentsStore/index.js.map +1 -0
- package/lib/module/stores/PaymentStore/index.js +142 -0
- package/lib/module/stores/PaymentStore/index.js.map +1 -0
- package/lib/module/stores/RootStore.js +18 -0
- package/lib/module/stores/RootStore.js.map +1 -0
- package/lib/module/stores/SaveCardStore/index.js +123 -0
- package/lib/module/stores/SaveCardStore/index.js.map +1 -0
- package/lib/module/stores/ThreeDSecureStore/index.js +55 -0
- package/lib/module/stores/ThreeDSecureStore/index.js.map +1 -0
- package/lib/module/styles/colors.js +23 -0
- package/lib/module/styles/colors.js.map +1 -0
- package/lib/module/styles/fonts.js +6 -0
- package/lib/module/styles/fonts.js.map +1 -0
- package/lib/module/styles/images.js +16 -0
- package/lib/module/styles/images.js.map +1 -0
- package/lib/module/styles/index.js +5 -0
- package/lib/module/styles/index.js.map +1 -0
- package/lib/module/translations/bg-BG.json +55 -0
- package/lib/module/translations/ca-ES.json +55 -0
- package/lib/module/translations/cs-CZ.json +55 -0
- package/lib/module/translations/da-DK.json +55 -0
- package/lib/module/translations/de-AT.json +55 -0
- package/lib/module/translations/de-CH.json +55 -0
- package/lib/module/translations/de-DE.json +55 -0
- package/lib/module/translations/de-LU.json +55 -0
- package/lib/module/translations/el-CY.json +55 -0
- package/lib/module/translations/el-GR.json +55 -0
- package/lib/module/translations/en-AU.json +55 -0
- package/lib/module/translations/en-GB.json +55 -0
- package/lib/module/translations/en-IE.json +55 -0
- package/lib/module/translations/en-MT.json +55 -0
- package/lib/module/translations/en-US.json +55 -0
- package/lib/module/translations/en.json +55 -0
- package/lib/module/translations/es-CL.json +55 -0
- package/lib/module/translations/es-CO.json +55 -0
- package/lib/module/translations/es-ES.json +55 -0
- package/lib/module/translations/es-LA.json +55 -0
- package/lib/module/translations/es-PE.json +55 -0
- package/lib/module/translations/et-EE.json +55 -0
- package/lib/module/translations/fi-FI.json +55 -0
- package/lib/module/translations/fr-BE.json +55 -0
- package/lib/module/translations/fr-CH.json +55 -0
- package/lib/module/translations/fr-FR.json +55 -0
- package/lib/module/translations/fr-LU.json +55 -0
- package/lib/module/translations/hr-HR.json +55 -0
- package/lib/module/translations/hu-HU.json +55 -0
- package/lib/module/translations/index.js +87 -0
- package/lib/module/translations/index.js.map +1 -0
- package/lib/module/translations/it-CH.json +55 -0
- package/lib/module/translations/it-IT.json +55 -0
- package/lib/module/translations/lt-LT.json +55 -0
- package/lib/module/translations/lv-LV.json +55 -0
- package/lib/module/translations/nb-NO.json +55 -0
- package/lib/module/translations/nl-BE.json +55 -0
- package/lib/module/translations/nl-NL.json +55 -0
- package/lib/module/translations/pl-PL.json +55 -0
- package/lib/module/translations/pt-BR.json +55 -0
- package/lib/module/translations/pt-PT.json +55 -0
- package/lib/module/translations/ro-RO.json +55 -0
- package/lib/module/translations/sk-SK.json +55 -0
- package/lib/module/translations/sl-SI.json +55 -0
- package/lib/module/translations/sv-SE.json +55 -0
- package/lib/module/types/ApplePay.js +2 -0
- package/lib/module/types/ApplePay.js.map +1 -0
- package/lib/module/types/CommonSheet.js +2 -0
- package/lib/module/types/CommonSheet.js.map +1 -0
- package/lib/module/types/GooglePay.js +2 -0
- package/lib/module/types/GooglePay.js.map +1 -0
- package/lib/module/types/PaymentSheet.js +2 -0
- package/lib/module/types/PaymentSheet.js.map +1 -0
- package/lib/module/types/Requests.js +2 -0
- package/lib/module/types/Requests.js.map +1 -0
- package/lib/module/types/SaveCardSheet.js +2 -0
- package/lib/module/types/SaveCardSheet.js.map +1 -0
- package/lib/module/types/index.js +7 -0
- package/lib/module/types/index.js.map +1 -0
- package/lib/module/types/react-native-safe-area-context.d.js +2 -0
- package/lib/module/types/react-native-safe-area-context.d.js.map +1 -0
- package/lib/typescript/components/3DSecureSheet/index.d.ts +5 -0
- package/lib/typescript/components/3DSecureSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/AnimatedContainer/index.d.ts +15 -0
- package/lib/typescript/components/AnimatedContainer/index.d.ts.map +1 -0
- package/lib/typescript/components/AnimatedContainer/styles.d.ts +22 -0
- package/lib/typescript/components/AnimatedContainer/styles.d.ts.map +1 -0
- package/lib/typescript/components/ApplePayButton/index.d.ts +7 -0
- package/lib/typescript/components/ApplePayButton/index.d.ts.map +1 -0
- package/lib/typescript/components/ApplePayButton/styles.d.ts +16 -0
- package/lib/typescript/components/ApplePayButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/Button/index.d.ts +10 -0
- package/lib/typescript/components/Button/index.d.ts.map +1 -0
- package/lib/typescript/components/Button/styles.d.ts +20 -0
- package/lib/typescript/components/Button/styles.d.ts.map +1 -0
- package/lib/typescript/components/CardInformation/index.d.ts +16 -0
- package/lib/typescript/components/CardInformation/index.d.ts.map +1 -0
- package/lib/typescript/components/CardInformation/styles.d.ts +27 -0
- package/lib/typescript/components/CardInformation/styles.d.ts.map +1 -0
- package/lib/typescript/components/CardSheet/index.d.ts +10 -0
- package/lib/typescript/components/CardSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/CardSheet/styles.d.ts +31 -0
- package/lib/typescript/components/CardSheet/styles.d.ts.map +1 -0
- package/lib/typescript/components/CardSheet/useCardSheet/index.d.ts +17 -0
- package/lib/typescript/components/CardSheet/useCardSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/Checkbox/index.d.ts +8 -0
- package/lib/typescript/components/Checkbox/index.d.ts.map +1 -0
- package/lib/typescript/components/Checkbox/styles.d.ts +16 -0
- package/lib/typescript/components/Checkbox/styles.d.ts.map +1 -0
- package/lib/typescript/components/GooglePayButton/index.d.ts +7 -0
- package/lib/typescript/components/GooglePayButton/index.d.ts.map +1 -0
- package/lib/typescript/components/GooglePayButton/styles.d.ts +21 -0
- package/lib/typescript/components/GooglePayButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/Header/index.d.ts +9 -0
- package/lib/typescript/components/Header/index.d.ts.map +1 -0
- package/lib/typescript/components/Header/styles.d.ts +26 -0
- package/lib/typescript/components/Header/styles.d.ts.map +1 -0
- package/lib/typescript/components/ImageButton/index.d.ts +9 -0
- package/lib/typescript/components/ImageButton/index.d.ts.map +1 -0
- package/lib/typescript/components/ImageButton/styles.d.ts +5 -0
- package/lib/typescript/components/ImageButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/InputFields/BaseInputField/index.d.ts +13 -0
- package/lib/typescript/components/InputFields/BaseInputField/index.d.ts.map +1 -0
- package/lib/typescript/components/InputFields/BaseInputField/styles.d.ts +29 -0
- package/lib/typescript/components/InputFields/BaseInputField/styles.d.ts.map +1 -0
- package/lib/typescript/components/InputFields/CVCInputField/index.d.ts +6 -0
- package/lib/typescript/components/InputFields/CVCInputField/index.d.ts.map +1 -0
- package/lib/typescript/components/InputFields/CVCInputField/styles.d.ts +17 -0
- package/lib/typescript/components/InputFields/CVCInputField/styles.d.ts.map +1 -0
- package/lib/typescript/components/InputFields/CardInputField/index.d.ts +9 -0
- package/lib/typescript/components/InputFields/CardInputField/index.d.ts.map +1 -0
- package/lib/typescript/components/InputFields/CardInputField/styles.d.ts +20 -0
- package/lib/typescript/components/InputFields/CardInputField/styles.d.ts.map +1 -0
- package/lib/typescript/components/InputFields/ExpirationDateInputField/index.d.ts +9 -0
- package/lib/typescript/components/InputFields/ExpirationDateInputField/index.d.ts.map +1 -0
- package/lib/typescript/components/LoadingSpinner/index.d.ts +3 -0
- package/lib/typescript/components/LoadingSpinner/index.d.ts.map +1 -0
- package/lib/typescript/components/LoadingSpinner/styles.d.ts +20 -0
- package/lib/typescript/components/LoadingSpinner/styles.d.ts.map +1 -0
- package/lib/typescript/components/Modal/index.d.ts +9 -0
- package/lib/typescript/components/Modal/index.d.ts.map +1 -0
- package/lib/typescript/components/Modal/styles.d.ts +20 -0
- package/lib/typescript/components/Modal/styles.d.ts.map +1 -0
- package/lib/typescript/components/NativePayButton/index.d.ts +7 -0
- package/lib/typescript/components/NativePayButton/index.d.ts.map +1 -0
- package/lib/typescript/components/NoInternetConnection/index.d.ts +3 -0
- package/lib/typescript/components/NoInternetConnection/index.d.ts.map +1 -0
- package/lib/typescript/components/NoInternetConnection/styles.d.ts +6 -0
- package/lib/typescript/components/NoInternetConnection/styles.d.ts.map +1 -0
- package/lib/typescript/components/OptionMenuModal/index.d.ts +8 -0
- package/lib/typescript/components/OptionMenuModal/index.d.ts.map +1 -0
- package/lib/typescript/components/OptionMenuModal/styles.d.ts +34 -0
- package/lib/typescript/components/OptionMenuModal/styles.d.ts.map +1 -0
- package/lib/typescript/components/PayButton/index.d.ts +10 -0
- package/lib/typescript/components/PayButton/index.d.ts.map +1 -0
- package/lib/typescript/components/PayButton/styles.d.ts +16 -0
- package/lib/typescript/components/PayButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/PaymentMethod/index.d.ts +11 -0
- package/lib/typescript/components/PaymentMethod/index.d.ts.map +1 -0
- package/lib/typescript/components/PaymentMethod/styles.d.ts +11 -0
- package/lib/typescript/components/PaymentMethod/styles.d.ts.map +1 -0
- package/lib/typescript/components/PaymentMethodFormHeaderOption/index.d.ts +11 -0
- package/lib/typescript/components/PaymentMethodFormHeaderOption/index.d.ts.map +1 -0
- package/lib/typescript/components/PaymentMethodFormHeaderOption/styles.d.ts +27 -0
- package/lib/typescript/components/PaymentMethodFormHeaderOption/styles.d.ts.map +1 -0
- package/lib/typescript/components/PaymentMethodsForm/index.d.ts +7 -0
- package/lib/typescript/components/PaymentMethodsForm/index.d.ts.map +1 -0
- package/lib/typescript/components/PaymentMethodsForm/styles.d.ts +15 -0
- package/lib/typescript/components/PaymentMethodsForm/styles.d.ts.map +1 -0
- package/lib/typescript/components/PaymentSheet/index.d.ts +5 -0
- package/lib/typescript/components/PaymentSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/PrivacyPolicySheet/consts.d.ts +41 -0
- package/lib/typescript/components/PrivacyPolicySheet/consts.d.ts.map +1 -0
- package/lib/typescript/components/PrivacyPolicySheet/index.d.ts +10 -0
- package/lib/typescript/components/PrivacyPolicySheet/index.d.ts.map +1 -0
- package/lib/typescript/components/ProcessButton/index.d.ts +11 -0
- package/lib/typescript/components/ProcessButton/index.d.ts.map +1 -0
- package/lib/typescript/components/ProcessButton/styles.d.ts +16 -0
- package/lib/typescript/components/ProcessButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/SaveCard/index.d.ts +9 -0
- package/lib/typescript/components/SaveCard/index.d.ts.map +1 -0
- package/lib/typescript/components/SaveCard/styles.d.ts +10 -0
- package/lib/typescript/components/SaveCard/styles.d.ts.map +1 -0
- package/lib/typescript/components/SaveCard/useSaveCard/index.d.ts +9 -0
- package/lib/typescript/components/SaveCard/useSaveCard/index.d.ts.map +1 -0
- package/lib/typescript/components/SaveCardButton/index.d.ts +10 -0
- package/lib/typescript/components/SaveCardButton/index.d.ts.map +1 -0
- package/lib/typescript/components/SaveCardButton/styles.d.ts +16 -0
- package/lib/typescript/components/SaveCardButton/styles.d.ts.map +1 -0
- package/lib/typescript/components/SaveCardSheet/index.d.ts +5 -0
- package/lib/typescript/components/SaveCardSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/SavedCard/index.d.ts +8 -0
- package/lib/typescript/components/SavedCard/index.d.ts.map +1 -0
- package/lib/typescript/components/SavedCard/styles.d.ts +23 -0
- package/lib/typescript/components/SavedCard/styles.d.ts.map +1 -0
- package/lib/typescript/components/SavedCardsSheet/index.d.ts +10 -0
- package/lib/typescript/components/SavedCardsSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/SavedCardsSheet/styles.d.ts +9 -0
- package/lib/typescript/components/SavedCardsSheet/styles.d.ts.map +1 -0
- package/lib/typescript/components/SumUpProvider.d.ts +25 -0
- package/lib/typescript/components/SumUpProvider.d.ts.map +1 -0
- package/lib/typescript/components/Switch/index.d.ts +9 -0
- package/lib/typescript/components/Switch/index.d.ts.map +1 -0
- package/lib/typescript/components/Switch/styles.d.ts +37 -0
- package/lib/typescript/components/Switch/styles.d.ts.map +1 -0
- package/lib/typescript/components/Text/index.d.ts +10 -0
- package/lib/typescript/components/Text/index.d.ts.map +1 -0
- package/lib/typescript/components/Text/styles.d.ts +9 -0
- package/lib/typescript/components/Text/styles.d.ts.map +1 -0
- package/lib/typescript/components/WebViewSheet/index.d.ts +9 -0
- package/lib/typescript/components/WebViewSheet/index.d.ts.map +1 -0
- package/lib/typescript/components/WebViewSheet/styles.d.ts +34 -0
- package/lib/typescript/components/WebViewSheet/styles.d.ts.map +1 -0
- package/lib/typescript/consts/UI.d.ts +5 -0
- package/lib/typescript/consts/UI.d.ts.map +1 -0
- package/lib/typescript/consts/errors.d.ts +7 -0
- package/lib/typescript/consts/errors.d.ts.map +1 -0
- package/lib/typescript/consts/nativePayMethod.d.ts +12 -0
- package/lib/typescript/consts/nativePayMethod.d.ts.map +1 -0
- package/lib/typescript/consts/validation.d.ts +16 -0
- package/lib/typescript/consts/validation.d.ts.map +1 -0
- package/lib/typescript/contexts/LanguageContext/index.d.ts +12 -0
- package/lib/typescript/contexts/LanguageContext/index.d.ts.map +1 -0
- package/lib/typescript/contexts/OptionMenuContext/index.d.ts +16 -0
- package/lib/typescript/contexts/OptionMenuContext/index.d.ts.map +1 -0
- package/lib/typescript/contexts/PaymentSheetContext/index.d.ts +13 -0
- package/lib/typescript/contexts/PaymentSheetContext/index.d.ts.map +1 -0
- package/lib/typescript/contexts/StoreContext.d.ts +15 -0
- package/lib/typescript/contexts/StoreContext.d.ts.map +1 -0
- package/lib/typescript/contexts/ThemeContext.d.ts +45 -0
- package/lib/typescript/contexts/ThemeContext.d.ts.map +1 -0
- package/lib/typescript/helpers/formatAmount/index.d.ts +2 -0
- package/lib/typescript/helpers/formatAmount/index.d.ts.map +1 -0
- package/lib/typescript/helpers/getUserAgent/index.d.ts +2 -0
- package/lib/typescript/helpers/getUserAgent/index.d.ts.map +1 -0
- package/lib/typescript/helpers/validation/paymentFields.d.ts +12 -0
- package/lib/typescript/helpers/validation/paymentFields.d.ts.map +1 -0
- package/lib/typescript/hooks/base/index.d.ts +6 -0
- package/lib/typescript/hooks/base/index.d.ts.map +1 -0
- package/lib/typescript/hooks/base/useCard/index.d.ts +3 -0
- package/lib/typescript/hooks/base/useCard/index.d.ts.map +1 -0
- package/lib/typescript/hooks/base/useCvcCode/index.d.ts +3 -0
- package/lib/typescript/hooks/base/useCvcCode/index.d.ts.map +1 -0
- package/lib/typescript/hooks/base/useExpirationDate/index.d.ts +3 -0
- package/lib/typescript/hooks/base/useExpirationDate/index.d.ts.map +1 -0
- package/lib/typescript/hooks/base/useName/index.d.ts +3 -0
- package/lib/typescript/hooks/base/useName/index.d.ts.map +1 -0
- package/lib/typescript/hooks/useSafeArea.d.ts +7 -0
- package/lib/typescript/hooks/useSafeArea.d.ts.map +1 -0
- package/lib/typescript/hooks/useSumUp.d.ts +15 -0
- package/lib/typescript/hooks/useSumUp.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +6 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/publicApi/errors.d.ts +29 -0
- package/lib/typescript/publicApi/errors.d.ts.map +1 -0
- package/lib/typescript/services/API/ApiManager/index.d.ts +32 -0
- package/lib/typescript/services/API/ApiManager/index.d.ts.map +1 -0
- package/lib/typescript/services/API/CheckoutApiManager/index.d.ts +17 -0
- package/lib/typescript/services/API/CheckoutApiManager/index.d.ts.map +1 -0
- package/lib/typescript/services/API/CheckoutApiManager/models.d.ts +80 -0
- package/lib/typescript/services/API/CheckoutApiManager/models.d.ts.map +1 -0
- package/lib/typescript/services/API/PullingService/index.d.ts +7 -0
- package/lib/typescript/services/API/PullingService/index.d.ts.map +1 -0
- package/lib/typescript/services/ApplePayService/index.d.ts +11 -0
- package/lib/typescript/services/ApplePayService/index.d.ts.map +1 -0
- package/lib/typescript/services/GooglePayService/index.d.ts +12 -0
- package/lib/typescript/services/GooglePayService/index.d.ts.map +1 -0
- package/lib/typescript/services/Logger/index.d.ts +12 -0
- package/lib/typescript/services/Logger/index.d.ts.map +1 -0
- package/lib/typescript/services/NativePaymentsBridge/index.d.ts +34 -0
- package/lib/typescript/services/NativePaymentsBridge/index.d.ts.map +1 -0
- package/lib/typescript/stores/BaseSheetStore/index.d.ts +24 -0
- package/lib/typescript/stores/BaseSheetStore/index.d.ts.map +1 -0
- package/lib/typescript/stores/NativePaymentStore/index.d.ts +23 -0
- package/lib/typescript/stores/NativePaymentStore/index.d.ts.map +1 -0
- package/lib/typescript/stores/PaymentInstrumentsStore/index.d.ts +29 -0
- package/lib/typescript/stores/PaymentInstrumentsStore/index.d.ts.map +1 -0
- package/lib/typescript/stores/PaymentStore/index.d.ts +18 -0
- package/lib/typescript/stores/PaymentStore/index.d.ts.map +1 -0
- package/lib/typescript/stores/RootStore.d.ts +14 -0
- package/lib/typescript/stores/RootStore.d.ts.map +1 -0
- package/lib/typescript/stores/SaveCardStore/index.d.ts +17 -0
- package/lib/typescript/stores/SaveCardStore/index.d.ts.map +1 -0
- package/lib/typescript/stores/ThreeDSecureStore/index.d.ts +18 -0
- package/lib/typescript/stores/ThreeDSecureStore/index.d.ts.map +1 -0
- package/lib/typescript/styles/colors.d.ts +23 -0
- package/lib/typescript/styles/colors.d.ts.map +1 -0
- package/lib/typescript/styles/fonts.d.ts +6 -0
- package/lib/typescript/styles/fonts.d.ts.map +1 -0
- package/lib/typescript/styles/images.d.ts +16 -0
- package/lib/typescript/styles/images.d.ts.map +1 -0
- package/lib/typescript/styles/index.d.ts +5 -0
- package/lib/typescript/styles/index.d.ts.map +1 -0
- package/lib/typescript/translations/index.d.ts +2 -0
- package/lib/typescript/translations/index.d.ts.map +1 -0
- package/lib/typescript/types/ApplePay.d.ts +32 -0
- package/lib/typescript/types/ApplePay.d.ts.map +1 -0
- package/lib/typescript/types/CommonSheet.d.ts +45 -0
- package/lib/typescript/types/CommonSheet.d.ts.map +1 -0
- package/lib/typescript/types/GooglePay.d.ts +45 -0
- package/lib/typescript/types/GooglePay.d.ts.map +1 -0
- package/lib/typescript/types/PaymentSheet.d.ts +76 -0
- package/lib/typescript/types/PaymentSheet.d.ts.map +1 -0
- package/lib/typescript/types/Requests.d.ts +20 -0
- package/lib/typescript/types/Requests.d.ts.map +1 -0
- package/lib/typescript/types/SaveCardSheet.d.ts +22 -0
- package/lib/typescript/types/SaveCardSheet.d.ts.map +1 -0
- package/lib/typescript/types/index.d.ts +13 -0
- package/lib/typescript/types/index.d.ts.map +1 -0
- package/package.json +164 -0
- package/src/assets/fonts/AktivGrotesk/AktivGrotesk-Bold.ttf +0 -0
- package/src/assets/fonts/SFProText/SFProText-Bold.ttf +0 -0
- package/src/assets/fonts/SFProText/SFProText-Regular.ttf +0 -0
- package/src/assets/icons/americanExpress/americanExpress@2x.png +0 -0
- package/src/assets/icons/americanExpress/americanExpress@3x.png +0 -0
- package/src/assets/icons/applePay/applePay@2x.png +0 -0
- package/src/assets/icons/applePay/applePay@3x.png +0 -0
- package/src/assets/icons/back/back@2x.png +0 -0
- package/src/assets/icons/back/back@3x.png +0 -0
- package/src/assets/icons/cardPlaceholder/cardPlaceholder@2x.png +0 -0
- package/src/assets/icons/cardPlaceholder/cardPlaceholder@3x.png +0 -0
- package/src/assets/icons/checkbox/checkbox@2x.png +0 -0
- package/src/assets/icons/checkbox/checkbox@3x.png +0 -0
- package/src/assets/icons/cross/cross@2x.png +0 -0
- package/src/assets/icons/cross/cross@3x.png +0 -0
- package/src/assets/icons/googlePay/googlePay@2x.png +0 -0
- package/src/assets/icons/googlePay/googlePay@3x.png +0 -0
- package/src/assets/icons/lock/lock@2x.png +0 -0
- package/src/assets/icons/lock/lock@3x.png +0 -0
- package/src/assets/icons/mastercard/mastercard@2x.png +0 -0
- package/src/assets/icons/mastercard/mastercard@3x.png +0 -0
- package/src/assets/icons/more/more@2x.png +0 -0
- package/src/assets/icons/more/more@3x.png +0 -0
- package/src/assets/icons/rightArrow/rightArrow@2x.png +0 -0
- package/src/assets/icons/rightArrow/rightArrow@3x.png +0 -0
- package/src/assets/icons/visa/visa@2x.png +0 -0
- package/src/assets/icons/visa/visa@3x.png +0 -0
- package/src/assets/icons/whiteCheckmark/whiteCheckmark@2x.png +0 -0
- package/src/assets/icons/whiteCheckmark/whiteCheckmark@3x.png +0 -0
- package/src/components/3DSecureSheet/index.tsx +57 -0
- package/src/components/AnimatedContainer/index.tsx +105 -0
- package/src/components/AnimatedContainer/styles.tsx +32 -0
- package/src/components/ApplePayButton/index.tsx +26 -0
- package/src/components/ApplePayButton/styles.tsx +24 -0
- package/src/components/Button/index.tsx +22 -0
- package/src/components/Button/styles.tsx +52 -0
- package/src/components/CardInformation/index.tsx +129 -0
- package/src/components/CardInformation/styles.tsx +35 -0
- package/src/components/CardSheet/index.tsx +165 -0
- package/src/components/CardSheet/styles.tsx +46 -0
- package/src/components/CardSheet/useCardSheet/index.ts +104 -0
- package/src/components/Checkbox/index.tsx +26 -0
- package/src/components/Checkbox/styles.tsx +24 -0
- package/src/components/GooglePayButton/index.tsx +26 -0
- package/src/components/GooglePayButton/styles.tsx +29 -0
- package/src/components/Header/index.tsx +37 -0
- package/src/components/Header/styles.tsx +34 -0
- package/src/components/ImageButton/index.tsx +22 -0
- package/src/components/ImageButton/styles.tsx +10 -0
- package/src/components/InputFields/BaseInputField/index.tsx +62 -0
- package/src/components/InputFields/BaseInputField/styles.tsx +37 -0
- package/src/components/InputFields/CVCInputField/index.tsx +27 -0
- package/src/components/InputFields/CVCInputField/styles.tsx +22 -0
- package/src/components/InputFields/CardInputField/index.tsx +56 -0
- package/src/components/InputFields/CardInputField/styles.tsx +25 -0
- package/src/components/InputFields/ExpirationDateInputField/index.tsx +24 -0
- package/src/components/LoadingSpinner/index.tsx +51 -0
- package/src/components/LoadingSpinner/styles.tsx +28 -0
- package/src/components/Modal/index.tsx +31 -0
- package/src/components/Modal/styles.tsx +28 -0
- package/src/components/NativePayButton/index.tsx +16 -0
- package/src/components/NoInternetConnection/index.tsx +24 -0
- package/src/components/NoInternetConnection/styles.tsx +14 -0
- package/src/components/OptionMenuModal/index.tsx +97 -0
- package/src/components/OptionMenuModal/styles.tsx +43 -0
- package/src/components/PayButton/index.tsx +55 -0
- package/src/components/PayButton/styles.tsx +24 -0
- package/src/components/PaymentMethod/index.tsx +43 -0
- package/src/components/PaymentMethod/styles.tsx +16 -0
- package/src/components/PaymentMethodFormHeaderOption/index.tsx +34 -0
- package/src/components/PaymentMethodFormHeaderOption/styles.tsx +35 -0
- package/src/components/PaymentMethodsForm/index.tsx +24 -0
- package/src/components/PaymentMethodsForm/styles.tsx +23 -0
- package/src/components/PaymentSheet/index.tsx +86 -0
- package/src/components/PrivacyPolicySheet/consts.ts +42 -0
- package/src/components/PrivacyPolicySheet/index.tsx +56 -0
- package/src/components/ProcessButton/index.tsx +75 -0
- package/src/components/ProcessButton/styles.tsx +36 -0
- package/src/components/SaveCard/index.tsx +88 -0
- package/src/components/SaveCard/styles.tsx +18 -0
- package/src/components/SaveCard/useSaveCard/index.ts +71 -0
- package/src/components/SaveCardButton/index.tsx +32 -0
- package/src/components/SaveCardButton/styles.tsx +24 -0
- package/src/components/SaveCardSheet/index.tsx +24 -0
- package/src/components/SavedCard/index.tsx +50 -0
- package/src/components/SavedCard/styles.tsx +31 -0
- package/src/components/SavedCardsSheet/index.tsx +108 -0
- package/src/components/SavedCardsSheet/styles.tsx +17 -0
- package/src/components/SumUpProvider.tsx +68 -0
- package/src/components/Switch/index.tsx +40 -0
- package/src/components/Switch/styles.tsx +48 -0
- package/src/components/Text/index.tsx +98 -0
- package/src/components/Text/styles.tsx +13 -0
- package/src/components/WebViewSheet/index.tsx +52 -0
- package/src/components/WebViewSheet/styles.tsx +45 -0
- package/src/consts/UI.ts +3 -0
- package/src/consts/errors.ts +7 -0
- package/src/consts/nativePayMethod.ts +14 -0
- package/src/consts/validation.ts +14 -0
- package/src/contexts/LanguageContext/index.tsx +47 -0
- package/src/contexts/OptionMenuContext/index.tsx +46 -0
- package/src/contexts/PaymentSheetContext/index.tsx +41 -0
- package/src/contexts/StoreContext.tsx +46 -0
- package/src/contexts/ThemeContext.tsx +9 -0
- package/src/helpers/formatAmount/index.ts +22 -0
- package/src/helpers/getUserAgent/index.ts +5 -0
- package/src/helpers/validation/paymentFields.ts +73 -0
- package/src/hooks/base/index.ts +6 -0
- package/src/hooks/base/useCard/index.ts +69 -0
- package/src/hooks/base/useCvcCode/index.ts +51 -0
- package/src/hooks/base/useExpirationDate/index.ts +71 -0
- package/src/hooks/base/useName/index.ts +51 -0
- package/src/hooks/useSafeArea.ts +12 -0
- package/src/hooks/useSumUp.ts +100 -0
- package/src/index.tsx +16 -0
- package/src/publicApi/errors.ts +155 -0
- package/src/services/API/ApiManager/index.ts +182 -0
- package/src/services/API/CheckoutApiManager/index.ts +148 -0
- package/src/services/API/CheckoutApiManager/models.ts +140 -0
- package/src/services/API/PullingService/index.ts +29 -0
- package/src/services/ApplePayService/index.ts +54 -0
- package/src/services/GooglePayService/index.ts +67 -0
- package/src/services/Logger/index.ts +28 -0
- package/src/services/NativePaymentsBridge/index.ts +44 -0
- package/src/stores/BaseSheetStore/index.ts +181 -0
- package/src/stores/NativePaymentStore/index.ts +137 -0
- package/src/stores/PaymentInstrumentsStore/index.ts +166 -0
- package/src/stores/PaymentStore/index.ts +188 -0
- package/src/stores/RootStore.ts +29 -0
- package/src/stores/SaveCardStore/index.ts +159 -0
- package/src/stores/ThreeDSecureStore/index.ts +75 -0
- package/src/styles/colors.ts +22 -0
- package/src/styles/fonts.ts +5 -0
- package/src/styles/images.ts +15 -0
- package/src/styles/index.ts +5 -0
- package/src/translations/bg-BG.json +55 -0
- package/src/translations/ca-ES.json +55 -0
- package/src/translations/cs-CZ.json +55 -0
- package/src/translations/da-DK.json +55 -0
- package/src/translations/de-AT.json +55 -0
- package/src/translations/de-CH.json +55 -0
- package/src/translations/de-DE.json +55 -0
- package/src/translations/de-LU.json +55 -0
- package/src/translations/el-CY.json +55 -0
- package/src/translations/el-GR.json +55 -0
- package/src/translations/en-AU.json +55 -0
- package/src/translations/en-GB.json +55 -0
- package/src/translations/en-IE.json +55 -0
- package/src/translations/en-MT.json +55 -0
- package/src/translations/en-US.json +55 -0
- package/src/translations/en.json +55 -0
- package/src/translations/es-CL.json +55 -0
- package/src/translations/es-CO.json +55 -0
- package/src/translations/es-ES.json +55 -0
- package/src/translations/es-LA.json +55 -0
- package/src/translations/es-PE.json +55 -0
- package/src/translations/et-EE.json +55 -0
- package/src/translations/fi-FI.json +55 -0
- package/src/translations/fr-BE.json +55 -0
- package/src/translations/fr-CH.json +55 -0
- package/src/translations/fr-FR.json +55 -0
- package/src/translations/fr-LU.json +55 -0
- package/src/translations/hr-HR.json +55 -0
- package/src/translations/hu-HU.json +55 -0
- package/src/translations/index.ts +87 -0
- package/src/translations/it-CH.json +55 -0
- package/src/translations/it-IT.json +55 -0
- package/src/translations/lt-LT.json +55 -0
- package/src/translations/lv-LV.json +55 -0
- package/src/translations/nb-NO.json +55 -0
- package/src/translations/nl-BE.json +55 -0
- package/src/translations/nl-NL.json +55 -0
- package/src/translations/pl-PL.json +55 -0
- package/src/translations/pt-BR.json +55 -0
- package/src/translations/pt-PT.json +55 -0
- package/src/translations/ro-RO.json +55 -0
- package/src/translations/sk-SK.json +55 -0
- package/src/translations/sl-SI.json +55 -0
- package/src/translations/sv-SE.json +55 -0
- package/src/types/ApplePay.ts +33 -0
- package/src/types/CommonSheet.ts +60 -0
- package/src/types/GooglePay.ts +44 -0
- package/src/types/PaymentSheet.ts +102 -0
- package/src/types/Requests.ts +20 -0
- package/src/types/SaveCardSheet.ts +24 -0
- package/src/types/index.ts +14 -0
- package/src/types/react-native-safe-area-context.d.ts +16 -0
- package/sumup-react-native.podspec +35 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PaymentInstrumentsStore = void 0;
|
|
7
|
+
var _CheckoutApiManager = require("../../services/API/CheckoutApiManager");
|
|
8
|
+
var _mobx = require("mobx");
|
|
9
|
+
var _ApiManager = require("../../services/API/ApiManager");
|
|
10
|
+
var _Logger = _interopRequireDefault(require("../../services/Logger"));
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
class PaymentInstrumentsStore {
|
|
13
|
+
selectedPaymentInstrument = null;
|
|
14
|
+
paymentInstruments = null;
|
|
15
|
+
canCardBeSavedForFuturePayments = false;
|
|
16
|
+
constructor(rootStore, publicKey, domain) {
|
|
17
|
+
this.rootStore = rootStore;
|
|
18
|
+
this.checkoutApi = new _CheckoutApiManager.CheckoutApiManager(publicKey, domain);
|
|
19
|
+
(0, _mobx.makeAutoObservable)(this);
|
|
20
|
+
}
|
|
21
|
+
setCanCardBeSavedForFuturePayments = canCardBeSavedForFuturePayments => {
|
|
22
|
+
this.canCardBeSavedForFuturePayments = canCardBeSavedForFuturePayments;
|
|
23
|
+
};
|
|
24
|
+
setSelectedPaymentInstruments = selectedPaymentInstrument => {
|
|
25
|
+
this.selectedPaymentInstrument = selectedPaymentInstrument;
|
|
26
|
+
};
|
|
27
|
+
setPaymentInstruments = paymentInstruments => {
|
|
28
|
+
this.paymentInstruments = paymentInstruments;
|
|
29
|
+
};
|
|
30
|
+
getPaymentInstrumentByToken = token => {
|
|
31
|
+
var _this$paymentInstrume;
|
|
32
|
+
return (_this$paymentInstrume = this.paymentInstruments) === null || _this$paymentInstrume === void 0 ? void 0 : _this$paymentInstrume.find(item => item.token === token);
|
|
33
|
+
};
|
|
34
|
+
configure = async params => {
|
|
35
|
+
this.reset();
|
|
36
|
+
if (!params.customerId) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
_Logger.default.log('[Instruments] configuring store', {});
|
|
40
|
+
this.setCanCardBeSavedForFuturePayments(true);
|
|
41
|
+
try {
|
|
42
|
+
const paymentInstruments = await this.checkoutApi.getListPaymentInstruments(params.checkout.id, params.customerId);
|
|
43
|
+
if (paymentInstruments.length > 0) {
|
|
44
|
+
this.setSelectedPaymentInstruments(paymentInstruments[0]);
|
|
45
|
+
this.setPaymentInstruments(paymentInstruments);
|
|
46
|
+
this.customerId = params.customerId;
|
|
47
|
+
this.checkoutId = params.checkout.id;
|
|
48
|
+
}
|
|
49
|
+
} catch (err) {
|
|
50
|
+
_Logger.default.log('[Instruments] failed to configure', {
|
|
51
|
+
error: err
|
|
52
|
+
});
|
|
53
|
+
if (err instanceof _ApiManager.ApiError) {
|
|
54
|
+
return {
|
|
55
|
+
error: {
|
|
56
|
+
status: 'failure',
|
|
57
|
+
message: err.message
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return;
|
|
63
|
+
};
|
|
64
|
+
selectPaymentInstrument = token => {
|
|
65
|
+
var _this$paymentInstrume2;
|
|
66
|
+
const paymentInstrument = (_this$paymentInstrume2 = this.paymentInstruments) === null || _this$paymentInstrume2 === void 0 ? void 0 : _this$paymentInstrume2.find(item => item.token === token);
|
|
67
|
+
if (paymentInstrument) {
|
|
68
|
+
this.setSelectedPaymentInstruments(paymentInstrument);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
deletePaymentInstrument = async token => {
|
|
72
|
+
if (!this.checkoutId || !this.customerId || !this.paymentInstruments) {
|
|
73
|
+
throw Error('SDK is not configured');
|
|
74
|
+
}
|
|
75
|
+
_Logger.default.log('[Instruments] deleting instrument', {
|
|
76
|
+
data: {
|
|
77
|
+
token
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
try {
|
|
81
|
+
await this.checkoutApi.deletePaymentInstrument(this.checkoutId, this.customerId, token);
|
|
82
|
+
let copyPaymentInstruments = [...this.paymentInstruments];
|
|
83
|
+
copyPaymentInstruments = copyPaymentInstruments.filter(item => item.token !== token);
|
|
84
|
+
if (copyPaymentInstruments.length === 0) {
|
|
85
|
+
this.setPaymentInstruments(null);
|
|
86
|
+
this.setSelectedPaymentInstruments(null);
|
|
87
|
+
} else {
|
|
88
|
+
var _this$selectedPayment;
|
|
89
|
+
if (((_this$selectedPayment = this.selectedPaymentInstrument) === null || _this$selectedPayment === void 0 ? void 0 : _this$selectedPayment.token) === token) {
|
|
90
|
+
this.setSelectedPaymentInstruments(copyPaymentInstruments[0]);
|
|
91
|
+
}
|
|
92
|
+
this.setPaymentInstruments(copyPaymentInstruments);
|
|
93
|
+
}
|
|
94
|
+
return copyPaymentInstruments;
|
|
95
|
+
} catch (err) {
|
|
96
|
+
_Logger.default.log('[Instruments] failed to delete instrument', {
|
|
97
|
+
error: err
|
|
98
|
+
});
|
|
99
|
+
return this.paymentInstruments;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
payWithToken = async token => {
|
|
103
|
+
if (!this.checkoutId || !this.customerId) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
return this.rootStore.paymentStore.handlePayment(this.checkoutId, {
|
|
107
|
+
payment_type: 'card',
|
|
108
|
+
token,
|
|
109
|
+
customer_id: this.customerId
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
reset = () => {
|
|
113
|
+
this.checkoutId = undefined;
|
|
114
|
+
this.customerId = undefined;
|
|
115
|
+
this.setSelectedPaymentInstruments(null);
|
|
116
|
+
this.setPaymentInstruments(null);
|
|
117
|
+
this.setCanCardBeSavedForFuturePayments(false);
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
exports.PaymentInstrumentsStore = PaymentInstrumentsStore;
|
|
121
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_CheckoutApiManager","require","_mobx","_ApiManager","_Logger","_interopRequireDefault","obj","__esModule","default","PaymentInstrumentsStore","selectedPaymentInstrument","paymentInstruments","canCardBeSavedForFuturePayments","constructor","rootStore","publicKey","domain","checkoutApi","CheckoutApiManager","makeAutoObservable","setCanCardBeSavedForFuturePayments","setSelectedPaymentInstruments","setPaymentInstruments","getPaymentInstrumentByToken","token","_this$paymentInstrume","find","item","configure","params","reset","customerId","logger","log","getListPaymentInstruments","checkout","id","length","checkoutId","err","error","ApiError","status","message","selectPaymentInstrument","_this$paymentInstrume2","paymentInstrument","deletePaymentInstrument","Error","data","copyPaymentInstruments","filter","_this$selectedPayment","payWithToken","paymentStore","handlePayment","payment_type","customer_id","undefined","exports"],"sourceRoot":"../../../../src","sources":["stores/PaymentInstrumentsStore/index.ts"],"mappings":";;;;;;AACA,IAAAA,mBAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAC,s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AAE,MAAM;MACpBhC,KAAK;MACLiC,WAAW,EAAE,IAAI,CAAC1B;IACpB,CAAC,CAAC;EACJ,CAAC;EAEDD,KAAK,GAAGA,CAAA,KAAM;IACZ,IAAI,CAACQ,UAAU,GAAGoB,SAAS;IAC3B,IAAI,CAAC3B,UAAU,GAAG2B,SAAS;IAE3B,IAAI,CAACrC,6BAA6B,CAAC,IAAI,CAAC;IACxC,IAAI,CAACC,qBAAqB,CAAC,IAAI,CAAC;IAChC,IAAI,CAACF,kCAAkC,CAAC,KAAK,CAAC;EAChD,CAAC;AACH;AAACuC,OAAA,CAAAlD,uBAAA,GAAAA,uBAAA"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.PaymentStore = void 0;
|
|
7
|
+
var _mobx = require("mobx");
|
|
8
|
+
var _ApiManager = require("../../services/API/ApiManager");
|
|
9
|
+
var _getUserAgent = require("../../helpers/getUserAgent");
|
|
10
|
+
var _Logger = _interopRequireDefault(require("../../services/Logger"));
|
|
11
|
+
var _BaseSheetStore = require("../BaseSheetStore");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
class PaymentStore extends _BaseSheetStore.BaseSheetStore {
|
|
14
|
+
amount = null;
|
|
15
|
+
currency = null;
|
|
16
|
+
cardHolderName = null;
|
|
17
|
+
saveCardForFutureUsage = null;
|
|
18
|
+
countryCode = null;
|
|
19
|
+
constructor(rootStore, publicKey, domain) {
|
|
20
|
+
const onReset = () => {
|
|
21
|
+
this.reset();
|
|
22
|
+
};
|
|
23
|
+
super(rootStore, publicKey, domain, onReset);
|
|
24
|
+
(0, _mobx.makeObservable)(this, {
|
|
25
|
+
isSheetVisible: _mobx.observable,
|
|
26
|
+
paymentStatus: _mobx.observable,
|
|
27
|
+
setIsSheetVisible: _mobx.action,
|
|
28
|
+
setPaymentStatus: _mobx.action,
|
|
29
|
+
reset: _mobx.action
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
configure = async params => {
|
|
33
|
+
this.reset();
|
|
34
|
+
_Logger.default.setup({
|
|
35
|
+
checkoutId: params.checkoutId,
|
|
36
|
+
customerId: params.customerId
|
|
37
|
+
});
|
|
38
|
+
_Logger.default.log('configuring SDK', {
|
|
39
|
+
data: params
|
|
40
|
+
});
|
|
41
|
+
try {
|
|
42
|
+
var _params$defaultCardDe, _params$defaultCardDe2;
|
|
43
|
+
const checkoutResult = await this.getAndValidateCheckout(params.checkoutId);
|
|
44
|
+
if ('error' in checkoutResult) {
|
|
45
|
+
return checkoutResult;
|
|
46
|
+
}
|
|
47
|
+
const checkout = checkoutResult;
|
|
48
|
+
if (checkout.purpose && checkout.purpose !== 'CHECKOUT') {
|
|
49
|
+
return {
|
|
50
|
+
error: {
|
|
51
|
+
status: 'failure',
|
|
52
|
+
message: 'The checkout should be configured without any purpose.'
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
this.rootStore.threeDSecureStore.configure(params.checkoutId, this.proceedSuccessfulPayment, this.handleFailedTransaction, () => this.setPaymentStatus('default'));
|
|
57
|
+
const paymentInstrumentsError = await this.rootStore.paymentInstrumentsStore.configure({
|
|
58
|
+
checkout,
|
|
59
|
+
customerId: params.customerId
|
|
60
|
+
});
|
|
61
|
+
if (paymentInstrumentsError) {
|
|
62
|
+
return paymentInstrumentsError;
|
|
63
|
+
}
|
|
64
|
+
const myProfile = await this.checkoutApi.getMyProfile();
|
|
65
|
+
const nativePaymentError = await this.rootStore.nativePaymentStore.configure({
|
|
66
|
+
checkout,
|
|
67
|
+
myProfile,
|
|
68
|
+
applePay: params.applePay,
|
|
69
|
+
googlePay: params.googlePay
|
|
70
|
+
});
|
|
71
|
+
if (nativePaymentError) {
|
|
72
|
+
return nativePaymentError;
|
|
73
|
+
}
|
|
74
|
+
this.cardHolderName = ((_params$defaultCardDe = params.defaultCardDetails) === null || _params$defaultCardDe === void 0 ? void 0 : _params$defaultCardDe.cardHolderName) || null;
|
|
75
|
+
this.saveCardForFutureUsage = ((_params$defaultCardDe2 = params.defaultCardDetails) === null || _params$defaultCardDe2 === void 0 ? void 0 : _params$defaultCardDe2.saveCardForFutureUsage) || null;
|
|
76
|
+
this.checkoutId = params.checkoutId;
|
|
77
|
+
this.amount = checkout.amount;
|
|
78
|
+
this.currency = checkout.currency;
|
|
79
|
+
this.countryCode = myProfile.countryCode;
|
|
80
|
+
} catch (err) {
|
|
81
|
+
_Logger.default.log('failed to configure the SDK', {
|
|
82
|
+
error: err
|
|
83
|
+
});
|
|
84
|
+
if (err instanceof _ApiManager.ApiError) {
|
|
85
|
+
return {
|
|
86
|
+
error: {
|
|
87
|
+
status: 'failure',
|
|
88
|
+
message: err.message
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return {};
|
|
94
|
+
};
|
|
95
|
+
showPaymentSheet = async resolve => {
|
|
96
|
+
if (!this.checkoutId) {
|
|
97
|
+
resolve({
|
|
98
|
+
error: {
|
|
99
|
+
status: 'failure',
|
|
100
|
+
message: 'Payment Sheet wasn`t configured'
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
_Logger.default.log('showing payment sheet', {});
|
|
106
|
+
this.setIsSheetVisible(true);
|
|
107
|
+
this.presentSheetResolveCallback = resolve;
|
|
108
|
+
};
|
|
109
|
+
hidePaymentSheet = throwCanceledError => {
|
|
110
|
+
if (throwCanceledError) {
|
|
111
|
+
var _this$presentSheetRes;
|
|
112
|
+
(_this$presentSheetRes = this.presentSheetResolveCallback) === null || _this$presentSheetRes === void 0 ? void 0 : _this$presentSheetRes.call(this, {
|
|
113
|
+
error: {
|
|
114
|
+
status: 'canceled'
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
_Logger.default.log('hiding payment sheet', {});
|
|
119
|
+
this.setIsSheetVisible(false);
|
|
120
|
+
};
|
|
121
|
+
pay = async card => {
|
|
122
|
+
if (!this.checkoutId) {
|
|
123
|
+
this.setPaymentStatus('failed');
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
return this.handlePayment(this.checkoutId, {
|
|
127
|
+
payment_type: 'card',
|
|
128
|
+
card: {
|
|
129
|
+
name: card.name,
|
|
130
|
+
number: card.number,
|
|
131
|
+
expiry_month: card.expiryMonth,
|
|
132
|
+
expiry_year: card.expiryYear,
|
|
133
|
+
cvv: card.cvv
|
|
134
|
+
},
|
|
135
|
+
mandate: card.saveCard && this.rootStore.paymentInstrumentsStore.canCardBeSavedForFuturePayments ? {
|
|
136
|
+
type: 'recurrent',
|
|
137
|
+
user_agent: (0, _getUserAgent.getUserAgent)()
|
|
138
|
+
} : undefined
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
reset = () => {
|
|
142
|
+
this.baseReset();
|
|
143
|
+
this.amount = null;
|
|
144
|
+
this.currency = null;
|
|
145
|
+
this.cardHolderName = null;
|
|
146
|
+
this.saveCardForFutureUsage = null;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
exports.PaymentStore = PaymentStore;
|
|
150
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_mobx","require","_ApiManager","_getUserAgent","_Logger","_interopRequireDefault","_BaseSheetStore","obj","__esModule","default","PaymentStore","BaseSheetStore","amount","currency","cardHolderName","saveCardForFutureUsage","countryCode","constructor","rootStore","publicKey","domain","onReset","reset","makeObservable","isSheetVisible","observable","paymentStatus","setIsSheetVisible","action","setPaymentStatus","configure","params","logger","setup","checkoutId","customerId","log","data","_params$defaultCardDe","_params$defaultCardDe2","checkoutResult","getAndValidateCheckout","checkout","purpose","error","status","message","threeDSecureStore","proceedSuccessfulPayment","handleFailedTransaction","paymentInstrumentsError","paymentInstrumentsStore","myProfile","checkoutApi","getMyProfile","nativePaymentError","nativePaymentStore","applePay","googlePay","defaultCardDetails","err","ApiError","showPaymentSheet","resolve","presentSheetResolveCallback","hidePaymentSheet","throwCanceledError","_this$presentSheetRes","call","pay","card","handlePayment","payment_type","name","number","expiry_month","expiryMonth","expiry_year","expiryYear","cvv","mandate","saveCard","canCardBeSavedForFuturePayments","type","user_agent","getUserAgent","undefined","baseReset","exports"],"sourceRoot":"../../../../src","sources":["stores/PaymentStore/index.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAEA,IAAAK,eAAA,GAAAL,OAAA;AAG2B,SAAAI,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEpB,MAAMG,YAAY,SAASC,8BAAc,CAAC;EAC/CC,MAAM,GAAkB,IAAI;EAC5BC,QAAQ,GAAkB,IAAI;EAC9BC,cAAc,GAAkB,IAAI;EACpCC,sBAAsB,GAAmB,IAAI;EAC7CC,WAAW,GAAkB,IAAI;EAEjCC,WAAWA,CAACC,SAAoB,EAAEC,SAAiB,EAAEC,MAAe,EAAE;IACpE,MAAMC,OAAO,GAAGA,CAAA,KAAM;MACpB,IAAI,CAACC,KAAK,CAAC,CAAC;IACd,CAAC;IAED,KAAK,CAACJ,SAAS,EAAEC,SAAS,EAAEC,MAAM,EAAEC,OAAO,CAAC;IAE5C,IAAAE,oBAAc,EAAC,IAAI,EAAE;MACnBC,cAAc,EAAEC,gBAAU;MAC1BC,aAAa,EAAED,gBAAU;MACzBE,iBAAiB,EAAEC,YAAM;MACzBC,gBAAgB,EAAED,YAAM;MACxBN,KAAK,EAAEM;IACT,CAAC,CAAC;EACJ;EAEAE,SAAS,GAAG,MACVC,MAA0C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AC3E,MAAM,GAAG,IAAI;IAClB,IAAI,CAACC,QAAQ,GAAG,IAAI;IACpB,IAAI,CAACC,cAAc,GAAG,IAAI;IAC1B,IAAI,CAACC,sBAAsB,GAAG,IAAI;EACpC,CAAC;AACH;AAACyE,OAAA,CAAA9E,YAAA,GAAAA,YAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.RootStore = void 0;
|
|
7
|
+
var _NativePaymentStore = require("./NativePaymentStore");
|
|
8
|
+
var _PaymentInstrumentsStore = require("./PaymentInstrumentsStore");
|
|
9
|
+
var _PaymentStore = require("./PaymentStore");
|
|
10
|
+
var _SaveCardStore = require("./SaveCardStore");
|
|
11
|
+
var _ThreeDSecureStore = require("./ThreeDSecureStore");
|
|
12
|
+
class RootStore {
|
|
13
|
+
constructor(publicKey, domain) {
|
|
14
|
+
if (!publicKey) {
|
|
15
|
+
console.error('SDK cannot be configured without publicKey.');
|
|
16
|
+
}
|
|
17
|
+
this.paymentStore = new _PaymentStore.PaymentStore(this, publicKey, domain);
|
|
18
|
+
this.saveCardStore = new _SaveCardStore.SaveCardStore(this, publicKey, domain);
|
|
19
|
+
this.nativePaymentStore = new _NativePaymentStore.NativePaymentStore(this);
|
|
20
|
+
this.threeDSecureStore = new _ThreeDSecureStore.ThreeDSecureStore(publicKey, domain);
|
|
21
|
+
this.paymentInstrumentsStore = new _PaymentInstrumentsStore.PaymentInstrumentsStore(this, publicKey, domain);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.RootStore = RootStore;
|
|
25
|
+
//# sourceMappingURL=RootStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_NativePaymentStore","require","_PaymentInstrumentsStore","_PaymentStore","_SaveCardStore","_ThreeDSecureStore","RootStore","constructor","publicKey","domain","console","error","paymentStore","PaymentStore","saveCardStore","SaveCardStore","nativePaymentStore","NativePaymentStore","threeDSecureStore","ThreeDSecureStore","paymentInstrumentsStore","PaymentInstrumentsStore","exports"],"sourceRoot":"../../../src","sources":["stores/RootStore.ts"],"mappings":";;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA;AACA,IAAAC,wBAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AAEO,MAAMK,SAAS,CAAC;EAOrBC,WAAWA,CAACC,SAAiB,EAAEC,MAAe,EAAE;IAC9C,IAAI,CAACD,SAAS,EAAE;MACdE,OAAO,CAACC,KAAK,CAAC,6CAA6C,CAAC;IAC9D;IAEA,IAAI,CAACC,YAAY,GAAG,IAAIC,0BAAY,CAAC,IAAI,EAAEL,SAAS,EAAEC,MAAM,CAAC;IAC7D,IAAI,CAACK,aAAa,GAAG,IAAIC,4BAAa,CAAC,IAAI,EAAEP,SAAS,EAAEC,MAAM,CAAC;IAC/D,IAAI,CAACO,kBAAkB,GAAG,IAAIC,sCAAkB,CAAC,IAAI,CAAC;IACtD,IAAI,CAACC,iBAAiB,GAAG,IAAIC,oCAAiB,CAACX,SAAS,EAAEC,MAAM,CAAC;IACjE,IAAI,CAACW,uBAAuB,GAAG,IAAIC,gDAAuB,CACxD,IAAI,EACJb,SAAS,EACTC,MACF,CAAC;EACH;AACF;AAACa,OAAA,CAAAhB,SAAA,GAAAA,SAAA"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.SaveCardStore = void 0;
|
|
7
|
+
var _mobx = require("mobx");
|
|
8
|
+
var _ApiManager = require("../../services/API/ApiManager");
|
|
9
|
+
var _Logger = _interopRequireDefault(require("../../services/Logger"));
|
|
10
|
+
var _getUserAgent = require("../../helpers/getUserAgent");
|
|
11
|
+
var _BaseSheetStore = require("../BaseSheetStore");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
class SaveCardStore extends _BaseSheetStore.BaseSheetStore {
|
|
14
|
+
amount = null;
|
|
15
|
+
currency = null;
|
|
16
|
+
cardHolderName = null;
|
|
17
|
+
countryCode = null;
|
|
18
|
+
constructor(rootStore, publicKey, domain) {
|
|
19
|
+
const onReset = () => {
|
|
20
|
+
this.reset();
|
|
21
|
+
};
|
|
22
|
+
super(rootStore, publicKey, domain, onReset);
|
|
23
|
+
(0, _mobx.makeObservable)(this, {
|
|
24
|
+
isSheetVisible: _mobx.observable,
|
|
25
|
+
paymentStatus: _mobx.observable,
|
|
26
|
+
setIsSheetVisible: _mobx.action,
|
|
27
|
+
setPaymentStatus: _mobx.action,
|
|
28
|
+
reset: _mobx.action
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
configure = async params => {
|
|
32
|
+
this.reset();
|
|
33
|
+
_Logger.default.setup({
|
|
34
|
+
checkoutId: params.checkoutId,
|
|
35
|
+
customerId: params.customerId
|
|
36
|
+
});
|
|
37
|
+
_Logger.default.log('configuring SaveCardSheet', {
|
|
38
|
+
data: params
|
|
39
|
+
});
|
|
40
|
+
try {
|
|
41
|
+
var _params$defaultCardDe;
|
|
42
|
+
const checkoutResult = await this.getAndValidateCheckout(params.checkoutId);
|
|
43
|
+
if ('error' in checkoutResult) {
|
|
44
|
+
return checkoutResult;
|
|
45
|
+
}
|
|
46
|
+
const checkout = checkoutResult;
|
|
47
|
+
if (checkout.purpose !== 'SETUP_RECURRING_PAYMENT') {
|
|
48
|
+
return {
|
|
49
|
+
error: {
|
|
50
|
+
status: 'failure',
|
|
51
|
+
message: 'The checkout should be configured with the SETUP_RECURRING_PAYMENT purpose.'
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
const myProfile = await this.checkoutApi.getMyProfile();
|
|
56
|
+
this.rootStore.threeDSecureStore.configure(params.checkoutId, this.proceedSuccessfulPayment, this.handleFailedTransaction, () => this.setPaymentStatus('default'));
|
|
57
|
+
this.checkoutId = params.checkoutId;
|
|
58
|
+
this.amount = checkout.amount;
|
|
59
|
+
this.currency = checkout.currency;
|
|
60
|
+
this.cardHolderName = ((_params$defaultCardDe = params.defaultCardDetails) === null || _params$defaultCardDe === void 0 ? void 0 : _params$defaultCardDe.cardHolderName) || null;
|
|
61
|
+
this.countryCode = myProfile.countryCode;
|
|
62
|
+
} catch (err) {
|
|
63
|
+
_Logger.default.log('failed to configure the SDK', {
|
|
64
|
+
error: err
|
|
65
|
+
});
|
|
66
|
+
if (err instanceof _ApiManager.ApiError) {
|
|
67
|
+
return {
|
|
68
|
+
error: {
|
|
69
|
+
status: 'failure',
|
|
70
|
+
message: err.message
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return {};
|
|
76
|
+
};
|
|
77
|
+
showSaveCardSheet = async resolve => {
|
|
78
|
+
if (!this.checkoutId) {
|
|
79
|
+
resolve({
|
|
80
|
+
error: {
|
|
81
|
+
status: 'failure',
|
|
82
|
+
message: 'Payment Sheet wasn`t configured'
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
_Logger.default.log('showing save card sheet', {});
|
|
88
|
+
this.setIsSheetVisible(true);
|
|
89
|
+
this.presentSheetResolveCallback = resolve;
|
|
90
|
+
};
|
|
91
|
+
hideSaveCardSheet = throwCanceledError => {
|
|
92
|
+
if (throwCanceledError) {
|
|
93
|
+
var _this$presentSheetRes;
|
|
94
|
+
(_this$presentSheetRes = this.presentSheetResolveCallback) === null || _this$presentSheetRes === void 0 ? void 0 : _this$presentSheetRes.call(this, {
|
|
95
|
+
error: {
|
|
96
|
+
status: 'canceled'
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
_Logger.default.log('hiding save card sheet', {});
|
|
101
|
+
this.setIsSheetVisible(false);
|
|
102
|
+
};
|
|
103
|
+
saveCard = async card => {
|
|
104
|
+
if (!this.checkoutId) {
|
|
105
|
+
this.setPaymentStatus('failed');
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
return this.handlePayment(this.checkoutId, {
|
|
109
|
+
payment_type: 'card',
|
|
110
|
+
card: {
|
|
111
|
+
name: card.name,
|
|
112
|
+
number: card.number,
|
|
113
|
+
expiry_month: card.expiryMonth,
|
|
114
|
+
expiry_year: card.expiryYear,
|
|
115
|
+
cvv: card.cvv
|
|
116
|
+
},
|
|
117
|
+
mandate: {
|
|
118
|
+
type: 'recurrent',
|
|
119
|
+
user_agent: (0, _getUserAgent.getUserAgent)()
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
reset = () => {
|
|
124
|
+
this.baseReset();
|
|
125
|
+
this.amount = null;
|
|
126
|
+
this.currency = null;
|
|
127
|
+
this.cardHolderName = null;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
exports.SaveCardStore = SaveCardStore;
|
|
131
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_mobx","require","_ApiManager","_Logger","_interopRequireDefault","_getUserAgent","_BaseSheetStore","obj","__esModule","default","SaveCardStore","BaseSheetStore","amount","currency","cardHolderName","countryCode","constructor","rootStore","publicKey","domain","onReset","reset","makeObservable","isSheetVisible","observable","paymentStatus","setIsSheetVisible","action","setPaymentStatus","configure","params","logger","setup","checkoutId","customerId","log","data","_params$defaultCardDe","checkoutResult","getAndValidateCheckout","checkout","purpose","error","status","message","myProfile","checkoutApi","getMyProfile","threeDSecureStore","proceedSuccessfulPayment","handleFailedTransaction","defaultCardDetails","err","ApiError","showSaveCardSheet","resolve","presentSheetResolveCallback","hideSaveCardSheet","throwCanceledError","_this$presentSheetRes","call","saveCard","card","handlePayment","payment_type","name","number","expiry_month","expiryMonth","expiry_year","expiryYear","cvv","mandate","type","user_agent","getUserAgent","baseReset","exports"],"sourceRoot":"../../../../src","sources":["stores/SaveCardStore/index.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAEA,IAAAE,OAAA,GAAAC,sBAAA,CAAAH,OAAA;AAGA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA;AAG2B,SAAAG,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEpB,MAAMG,aAAa,SAASC,8BAAc,CAAC;EAChDC,MAAM,GAAkB,IAAI;EAC5BC,QAAQ,GAAkB,IAAI;EAC9BC,cAAc,GAAkB,IAAI;EACpCC,WAAW,GAAkB,IAAI;EAEjCC,WAAWA,CAACC,SAAoB,EAAEC,SAAiB,EAAEC,MAAe,EAAE;IACpE,MAAMC,OAAO,GAAGA,CAAA,KAAM;MACpB,IAAI,CAACC,KAAK,CAAC,CAAC;IACd,CAAC;IAED,KAAK,CAACJ,SAAS,EAAEC,SAAS,EAAEC,MAAM,EAAEC,OAAO,CAAC;IAE5C,IAAAE,oBAAc,EAAC,IAAI,EAAE;MACnBC,cAAc,EAAEC,gBAAU;MAC1BC,aAAa,EAAED,gBAAU;MACzBE,iBAAiB,EAAEC,YAAM;MACzBC,gBAAgB,EAAED,YAAM;MACxBN,KAAK,EAAEM;IACT,CAAC,CAAC;EACJ;EAEAE,SAAS,GAAG,MACVC,MAA4C,IACO;IACnD,IAAI,CAACT,KAAK,CAAC,CAAC;IAEZU,eAAM,CAACC,KAAK,CAAC;MACXC,UAAU,EAAEH,MAAM,CAACG,UAAU;MAC7BC,UAAU,EAAEJ,MAAM,CAACI;IACrB,CAAC,CAAC;IAEFH,eAAM,CAACI,GAAG,CAAC,2BAA2B,EAAE;MAAEC,IAAI,E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C5BC,GAAG,EAAET,IAAI,CAACS;MACZ,CAAC;MACDC,OAAO,EAAE;QACPC,IAAI,EAAE,WAAW;QACjBC,UAAU,EAAE,IAAAC,0BAAY,EAAC;MAC3B;IACF,CAAC,CAAC;EACJ,CAAC;EAEDtD,KAAK,GAAGA,CAAA,KAAM;IACZ,IAAI,CAACuD,SAAS,CAAC,CAAC;IAEhB,IAAI,CAAChE,MAAM,GAAG,IAAI;IAClB,IAAI,CAACC,QAAQ,GAAG,IAAI;IACpB,IAAI,CAACC,cAAc,GAAG,IAAI;EAC5B,CAAC;AACH;AAAC+D,OAAA,CAAAnE,aAAA,GAAAA,aAAA"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.ThreeDSecureStore = void 0;
|
|
7
|
+
var _mobx = require("mobx");
|
|
8
|
+
var _Logger = _interopRequireDefault(require("../../services/Logger"));
|
|
9
|
+
var _CheckoutApiManager = require("../../services/API/CheckoutApiManager");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
class ThreeDSecureStore {
|
|
12
|
+
threeDSecureModel = null;
|
|
13
|
+
constructor(publicKey, domain) {
|
|
14
|
+
this.checkoutApi = new _CheckoutApiManager.CheckoutApiManager(publicKey, domain);
|
|
15
|
+
(0, _mobx.makeAutoObservable)(this);
|
|
16
|
+
}
|
|
17
|
+
get currentCheckoutId() {
|
|
18
|
+
return this.checkoutId;
|
|
19
|
+
}
|
|
20
|
+
setThreeDSecureModel = threeDSecureModel => {
|
|
21
|
+
this.threeDSecureModel = threeDSecureModel;
|
|
22
|
+
};
|
|
23
|
+
configure = (checkoutId, onPaid, onFailed, onClose) => {
|
|
24
|
+
this.checkoutId = checkoutId;
|
|
25
|
+
this.onPaid = onPaid;
|
|
26
|
+
this.onFailed = onFailed;
|
|
27
|
+
this.onClose = onClose;
|
|
28
|
+
};
|
|
29
|
+
show = threeDSecureModel => {
|
|
30
|
+
this.setThreeDSecureModel(threeDSecureModel);
|
|
31
|
+
};
|
|
32
|
+
handle3DSecure = async () => {
|
|
33
|
+
if (!this.checkoutId) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const response = await this.checkoutApi.getCheckout(this.checkoutId);
|
|
37
|
+
_Logger.default.log('[3DSecure Flow] check the checkout status', {
|
|
38
|
+
data: response
|
|
39
|
+
});
|
|
40
|
+
if (response.status === 'PAID') {
|
|
41
|
+
var _this$onPaid;
|
|
42
|
+
_Logger.default.log('[3DSecure Flow] the checkout is PAID', {});
|
|
43
|
+
this.setThreeDSecureModel(null);
|
|
44
|
+
(_this$onPaid = this.onPaid) === null || _this$onPaid === void 0 ? void 0 : _this$onPaid.call(this);
|
|
45
|
+
} else if (response.status === 'FAILED') {
|
|
46
|
+
var _this$onFailed;
|
|
47
|
+
_Logger.default.log('[3DSecure Flow] the checkout is FAILED', {});
|
|
48
|
+
this.setThreeDSecureModel(null);
|
|
49
|
+
(_this$onFailed = this.onFailed) === null || _this$onFailed === void 0 ? void 0 : _this$onFailed.call(this);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
forceCloseThreeDSecure = () => {
|
|
53
|
+
var _this$onClose;
|
|
54
|
+
(_this$onClose = this.onClose) === null || _this$onClose === void 0 ? void 0 : _this$onClose.call(this);
|
|
55
|
+
this.setThreeDSecureModel(null);
|
|
56
|
+
};
|
|
57
|
+
reset = () => {
|
|
58
|
+
this.checkoutId = undefined;
|
|
59
|
+
this.setThreeDSecureModel(null);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.ThreeDSecureStore = ThreeDSecureStore;
|
|
63
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_mobx","require","_Logger","_interopRequireDefault","_CheckoutApiManager","obj","__esModule","default","ThreeDSecureStore","threeDSecureModel","constructor","publicKey","domain","checkoutApi","CheckoutApiManager","makeAutoObservable","currentCheckoutId","checkoutId","setThreeDSecureModel","configure","onPaid","onFailed","onClose","show","handle3DSecure","response","getCheckout","logger","log","data","status","_this$onPaid","call","_this$onFailed","forceCloseThreeDSecure","_this$onClose","reset","undefined","exports"],"sourceRoot":"../../../../src","sources":["stores/ThreeDSecureStore/index.ts"],"mappings":";;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AAA2E,SAAAE,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEpE,MAAMG,iBAAiB,CAAC;EAS7BC,iBAAiB,GAA6B,IAAI;EAElDC,WAAWA,CAACC,SAAiB,EAAEC,MAAe,EAAE;IAC9C,IAAI,CAACC,WAAW,GAAG,IAAIC,sCAAkB,CAACH,SAAS,EAAEC,MAAM,CAAC;IAE5D,IAAAG,wBAAkB,EAAC,IAAI,CAAC;EAC1B;EAEA,IAAIC,iBAAiBA,CAAA,EAAG;IACtB,OAAO,IAAI,CAACC,UAAU;EACxB;EAEAC,oBAAoB,GAAIT,iBAA2C,IAAK;IACtE,IAAI,CAACA,iBAAiB,GAAGA,iBAAiB;EAC5C,CAAC;EAEDU,SAAS,GAAGA,CACVF,UAAkB,EAClBG,MAAqB,EACrBC,QAAuB,EACvBC,OAAsB,KACnB;IACH,IAAI,CAACL,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACG,MAAM,GAAGA,MAAM;IACpB,IAAI,CAACC,QAAQ,GAAGA,QAAQ;IACxB,IAAI,CAACC,OAAO,GAAGA,OAAO;EACxB,CAAC;EAEDC,IAAI,GAAId,iBAAoC,IAAK;IAC/C,IAAI,CAACS,oBAAoB,CAACT,iBAAiB,CAAC;EAC9C,CAAC;EAEDe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
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.light = void 0;
|
|
7
|
+
const light = {
|
|
8
|
+
transparent: 'transparent',
|
|
9
|
+
black: '#000000',
|
|
10
|
+
white: '#ffffff',
|
|
11
|
+
grayNickel: '#C8C9C5',
|
|
12
|
+
silver: '#CCCCCC',
|
|
13
|
+
codGray: '#1A1A1A',
|
|
14
|
+
regentGray: '#8792A2',
|
|
15
|
+
dustyGray: '#999999',
|
|
16
|
+
dodgerBlue: '#3063E9',
|
|
17
|
+
mantis: '#91C55E',
|
|
18
|
+
paleSky: '#697386',
|
|
19
|
+
guardsmanRed: '#BC010B',
|
|
20
|
+
cinnabar: '#EB4C3B',
|
|
21
|
+
athensGray: '#E5E5E9',
|
|
22
|
+
royalBlue: '#3064E3',
|
|
23
|
+
mercury: '#E6E6E6',
|
|
24
|
+
doveGray: '#666666',
|
|
25
|
+
alizarinCrimson: '#DE331D',
|
|
26
|
+
deepSea: '#018850',
|
|
27
|
+
valencia: '#D23F47'
|
|
28
|
+
};
|
|
29
|
+
exports.light = light;
|
|
30
|
+
//# sourceMappingURL=colors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["light","transparent","black","white","grayNickel","silver","codGray","regentGray","dustyGray","dodgerBlue","mantis","paleSky","guardsmanRed","cinnabar","athensGray","royalBlue","mercury","doveGray","alizarinCrimson","deepSea","valencia","exports"],"sourceRoot":"../../../src","sources":["styles/colors.ts"],"mappings":";;;;;;AAAO,MAAMA,KAAK,GAAG;EACnBC,WAAW,EAAE,aAAa;EAC1BC,KAAK,EAAE,SAAS;EAChBC,KAAK,EAAE,SAAS;EAChBC,UAAU,EAAE,SAAS;EACrBC,MAAM,EAAE,SAAS;EACjBC,OAAO,EAAE,SAAS;EAClBC,UAAU,EAAE,SAAS;EACrBC,SAAS,EAAE,SAAS;EACpBC,UAAU,EAAE,SAAS;EACrBC,MAAM,EAAE,SAAS;EACjBC,OAAO,EAAE,SAAS;EAClBC,YAAY,EAAE,SAAS;EACvBC,QAAQ,EAAE,SAAS;EACnBC,UAAU,EAAE,SAAS;EACrBC,SAAS,EAAE,SAAS;EACpBC,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE,SAAS;EACnBC,eAAe,EAAE,SAAS;EAC1BC,OAAO,EAAE,SAAS;EAClBC,QAAQ,EAAE;AACZ,CAAC;AAACC,OAAA,CAAArB,KAAA,GAAAA,KAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.light = void 0;
|
|
7
|
+
const light = {
|
|
8
|
+
aktivGroteskBold: 'AktivGrotesk-Bold',
|
|
9
|
+
sfProTextRegular: 'SFProText-Regular',
|
|
10
|
+
sfProTextBold: 'SFProText-Bold'
|
|
11
|
+
};
|
|
12
|
+
exports.light = light;
|
|
13
|
+
//# sourceMappingURL=fonts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["light","aktivGroteskBold","sfProTextRegular","sfProTextBold","exports"],"sourceRoot":"../../../src","sources":["styles/fonts.ts"],"mappings":";;;;;;AAAO,MAAMA,KAAK,GAAG;EACnBC,gBAAgB,EAAE,mBAAmB;EACrCC,gBAAgB,EAAE,mBAAmB;EACrCC,aAAa,EAAE;AACjB,CAAC;AAACC,OAAA,CAAAJ,KAAA,GAAAA,KAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.light = void 0;
|
|
7
|
+
const light = {
|
|
8
|
+
applePay: require('../assets/icons/applePay/applePay.png'),
|
|
9
|
+
googlePay: require('../assets/icons/googlePay/googlePay.png'),
|
|
10
|
+
visa: require('../assets/icons/visa/visa.png'),
|
|
11
|
+
mastercard: require('../assets/icons/mastercard/mastercard.png'),
|
|
12
|
+
americanExpress: require('../assets/icons/americanExpress/americanExpress.png'),
|
|
13
|
+
cross: require('../assets/icons/cross/cross.png'),
|
|
14
|
+
whiteCheckmark: require('../assets/icons/whiteCheckmark/whiteCheckmark.png'),
|
|
15
|
+
back: require('../assets/icons/back/back.png'),
|
|
16
|
+
lock: require('../assets/icons/lock/lock.png'),
|
|
17
|
+
cardPlaceholder: require('../assets/icons/cardPlaceholder/cardPlaceholder.png'),
|
|
18
|
+
checkbox: require('../assets/icons/checkbox/checkbox.png'),
|
|
19
|
+
rightArrow: require('../assets/icons/rightArrow/rightArrow.png'),
|
|
20
|
+
more: require('../assets/icons/more/more.png')
|
|
21
|
+
};
|
|
22
|
+
exports.light = light;
|
|
23
|
+
//# sourceMappingURL=images.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["light","applePay","require","googlePay","visa","mastercard","americanExpress","cross","whiteCheckmark","back","lock","cardPlaceholder","checkbox","rightArrow","more","exports"],"sourceRoot":"../../../src","sources":["styles/images.ts"],"mappings":";;;;;;AAAO,MAAMA,KAAK,GAAG;EACnBC,QAAQ,EAAEC,OAAO,CAAC,uCAAuC,CAAC;EAC1DC,SAAS,EAAED,OAAO,CAAC,yCAAyC,CAAC;EAC7DE,IAAI,EAAEF,OAAO,CAAC,+BAA+B,CAAC;EAC9CG,UAAU,EAAEH,OAAO,CAAC,2CAA2C,CAAC;EAChEI,eAAe,EAAEJ,OAAO,CAAC,qDAAqD,CAAC;EAC/EK,KAAK,EAAEL,OAAO,CAAC,iCAAiC,CAAC;EACjDM,cAAc,EAAEN,OAAO,CAAC,mDAAmD,CAAC;EAC5EO,IAAI,EAAEP,OAAO,CAAC,+BAA+B,CAAC;EAC9CQ,IAAI,EAAER,OAAO,CAAC,+BAA+B,CAAC;EAC9CS,eAAe,EAAET,OAAO,CAAC,qDAAqD,CAAC;EAC/EU,QAAQ,EAAEV,OAAO,CAAC,uCAAuC,CAAC;EAC1DW,UAAU,EAAEX,OAAO,CAAC,2CAA2C,CAAC;EAChEY,IAAI,EAAEZ,OAAO,CAAC,+BAA+B;AAC/C,CAAC;AAACa,OAAA,CAAAf,KAAA,GAAAA,KAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.Images = exports.Fonts = exports.Colors = void 0;
|
|
7
|
+
var Colors = _interopRequireWildcard(require("./colors"));
|
|
8
|
+
exports.Colors = Colors;
|
|
9
|
+
var Images = _interopRequireWildcard(require("./images"));
|
|
10
|
+
exports.Images = Images;
|
|
11
|
+
var Fonts = _interopRequireWildcard(require("./fonts"));
|
|
12
|
+
exports.Fonts = Fonts;
|
|
13
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Colors","_interopRequireWildcard","require","exports","Images","Fonts","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set"],"sourceRoot":"../../../src","sources":["styles/index.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAmCC,OAAA,CAAAH,MAAA,GAAAA,MAAA;AACnC,IAAAI,MAAA,GAAAH,uBAAA,CAAAC,OAAA;AAAmCC,OAAA,CAAAC,MAAA,GAAAA,MAAA;AACnC,IAAAC,KAAA,GAAAJ,uBAAA,CAAAC,OAAA;AAAiCC,OAAA,CAAAE,KAAA,GAAAA,KAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAN,wBAAAU,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,QAAAW,GAAA,kBAAAH,MAAA,CAAAI,SAAA,CA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