@stripe/stripe-react-native 0.65.0 → 0.66.0

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.
Files changed (239) hide show
  1. package/README.md +2 -2
  2. package/android/detekt/detekt-baseline.xml +1 -76
  3. package/android/gradle.properties +4 -4
  4. package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormView.kt +3 -1
  5. package/android/src/main/java/com/reactnativestripesdk/AuBECSDebitFormViewManager.kt +2 -1
  6. package/android/src/main/java/com/reactnativestripesdk/CardFieldView.kt +56 -58
  7. package/android/src/main/java/com/reactnativestripesdk/CurrencySelectorElementEvent.kt +26 -0
  8. package/android/src/main/java/com/reactnativestripesdk/CurrencySelectorElementView.kt +139 -0
  9. package/android/src/main/java/com/reactnativestripesdk/CurrencySelectorElementViewManager.kt +59 -0
  10. package/android/src/main/java/com/reactnativestripesdk/EmbeddedPaymentElementView.kt +105 -49
  11. package/android/src/main/java/com/reactnativestripesdk/EmbeddedPaymentElementViewManager.kt +72 -12
  12. package/android/src/main/java/com/reactnativestripesdk/EventEmitterCompat.kt +4 -0
  13. package/android/src/main/java/com/reactnativestripesdk/FinancialConnectionsSheetManager.kt +8 -4
  14. package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonManager.kt +2 -1
  15. package/android/src/main/java/com/reactnativestripesdk/GooglePayButtonView.kt +26 -11
  16. package/android/src/main/java/com/reactnativestripesdk/GooglePayLauncherManager.kt +2 -1
  17. package/android/src/main/java/com/reactnativestripesdk/NavigationBarView.kt +14 -5
  18. package/android/src/main/java/com/reactnativestripesdk/PaymentElementConfig.kt +6 -2
  19. package/android/src/main/java/com/reactnativestripesdk/PaymentLauncherManager.kt +2 -1
  20. package/android/src/main/java/com/reactnativestripesdk/PaymentMethodCreateParamsFactory.kt +2 -1
  21. package/android/src/main/java/com/reactnativestripesdk/PaymentMethodMessagingElementConfig.kt +6 -2
  22. package/android/src/main/java/com/reactnativestripesdk/PaymentMethodMessagingElementViewManager.kt +2 -1
  23. package/android/src/main/java/com/reactnativestripesdk/PaymentOptionDisplayDataMapper.kt +8 -4
  24. package/android/src/main/java/com/reactnativestripesdk/PaymentSheetAppearance.kt +9 -3
  25. package/android/src/main/java/com/reactnativestripesdk/PaymentSheetManager.kt +118 -48
  26. package/android/src/main/java/com/reactnativestripesdk/StripeAbstractComposeView.kt +1 -0
  27. package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +281 -46
  28. package/android/src/main/java/com/reactnativestripesdk/StripeSdkPackage.kt +2 -0
  29. package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressLauncherManager.kt +2 -1
  30. package/android/src/main/java/com/reactnativestripesdk/addresssheet/AddressSheetView.kt +3 -1
  31. package/android/src/main/java/com/reactnativestripesdk/customersheet/CustomerSheetManager.kt +8 -18
  32. package/android/src/main/java/com/reactnativestripesdk/customersheet/ReactNativeCustomerAdapter.kt +3 -1
  33. package/android/src/main/java/com/reactnativestripesdk/customersheet/ReactNativeCustomerSessionProvider.kt +2 -1
  34. package/android/src/main/java/com/reactnativestripesdk/pushprovisioning/AddToWalletButtonManager.kt +2 -1
  35. package/android/src/main/java/com/reactnativestripesdk/utils/CheckoutAddressUpdate.kt +45 -0
  36. package/android/src/main/java/com/reactnativestripesdk/utils/CheckoutMappers.kt +127 -0
  37. package/android/src/main/java/com/reactnativestripesdk/utils/DefaultActivityLifecycleCallbacks.kt +41 -0
  38. package/android/src/main/java/com/reactnativestripesdk/utils/Errors.kt +4 -2
  39. package/android/src/main/java/com/reactnativestripesdk/utils/Extensions.kt +5 -1
  40. package/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt +29 -13
  41. package/android/src/main/java/com/reactnativestripesdk/utils/PostalCodeUtilities.kt +2 -1
  42. package/android/src/oldarch/java/com/facebook/react/viewmanagers/EmbeddedPaymentElementViewManagerDelegate.java +6 -0
  43. package/android/src/oldarch/java/com/facebook/react/viewmanagers/EmbeddedPaymentElementViewManagerInterface.java +2 -0
  44. package/android/src/oldarch/java/com/facebook/react/viewmanagers/StripeCurrencySelectorElementManagerDelegate.java +35 -0
  45. package/android/src/oldarch/java/com/facebook/react/viewmanagers/StripeCurrencySelectorElementManagerInterface.java +18 -0
  46. package/android/src/oldarch/java/com/reactnativestripesdk/NativeOnrampSdkModuleSpec.java +17 -3
  47. package/android/src/oldarch/java/com/reactnativestripesdk/NativeStripeSdkModuleSpec.java +13 -1
  48. package/android/src/onramp/java/com/reactnativestripesdk/OnrampMappers.kt +116 -0
  49. package/android/src/onramp/java/com/reactnativestripesdk/OnrampSdkModule.kt +109 -1
  50. package/android/src/test/java/com/reactnativestripesdk/DrawableLoadingTest.kt +6 -2
  51. package/android/src/test/java/com/reactnativestripesdk/mappers/MappersTest.kt +60 -0
  52. package/android/src/test/java/com/reactnativestripesdk/mappers/OnrampMappersTest.kt +145 -0
  53. package/android/src/test/java/com/reactnativestripesdk/mappers/PaymentOptionDisplayDataMapperTest.kt +9 -4
  54. package/android/src/test/java/com/reactnativestripesdk/utils/CheckoutMappersTest.kt +98 -0
  55. package/android/src/test/java/com/reactnativestripesdk/utils/CheckoutTestFixtures.java +57 -0
  56. package/ios/ConnectAccountOnboarding/ConnectAccountOnboardingViewController.swift +6 -8
  57. package/ios/CurrencySelectorElementManager.m +16 -0
  58. package/ios/CurrencySelectorElementView.swift +159 -0
  59. package/ios/EmbeddedPaymentElementView.swift +1 -1
  60. package/ios/Mappers+Checkout.swift +337 -0
  61. package/ios/Mappers.swift +90 -2
  62. package/ios/NewArch/EmbeddedPaymentElementViewComponentView.mm +16 -2
  63. package/ios/NewArch/StripeCurrencySelectorElementComponentView.h +10 -0
  64. package/ios/NewArch/StripeCurrencySelectorElementComponentView.mm +89 -0
  65. package/ios/OldArch/StripeSdkEventEmitterCompat.h +1 -0
  66. package/ios/OldArch/StripeSdkEventEmitterCompat.m +6 -0
  67. package/ios/PaymentOptionDisplayData+ReactNative.swift +1 -1
  68. package/ios/PaymentSheetAppearance.swift +1 -1
  69. package/ios/StripeOnrampSdk.mm +19 -0
  70. package/ios/StripeSdk.mm +136 -0
  71. package/ios/StripeSdkEmitter.swift +1 -0
  72. package/ios/StripeSdkImpl+Checkout.swift +360 -0
  73. package/ios/StripeSdkImpl+CustomerSheet.swift +1 -1
  74. package/ios/StripeSdkImpl+Embedded.swift +108 -27
  75. package/ios/StripeSdkImpl+PaymentSheet.swift +18 -2
  76. package/ios/StripeSdkImpl.swift +89 -7
  77. package/jest/mock.js +13 -1
  78. package/lib/commonjs/components/AddToWalletButton.js +1 -1
  79. package/lib/commonjs/components/AddToWalletButton.js.map +1 -1
  80. package/lib/commonjs/components/AddressSheet.js +1 -1
  81. package/lib/commonjs/components/AddressSheet.js.map +1 -1
  82. package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
  83. package/lib/commonjs/components/AuBECSDebitForm.js.map +1 -1
  84. package/lib/commonjs/components/CardField.js +1 -1
  85. package/lib/commonjs/components/CardField.js.map +1 -1
  86. package/lib/commonjs/components/CardForm.js +1 -1
  87. package/lib/commonjs/components/CardForm.js.map +1 -1
  88. package/lib/commonjs/components/CurrencySelectorElement.js +2 -0
  89. package/lib/commonjs/components/CurrencySelectorElement.js.map +1 -0
  90. package/lib/commonjs/components/PaymentMethodMessagingElement.js +1 -1
  91. package/lib/commonjs/components/PaymentMethodMessagingElement.js.map +1 -1
  92. package/lib/commonjs/components/PlatformPayButton.js +1 -1
  93. package/lib/commonjs/components/PlatformPayButton.js.map +1 -1
  94. package/lib/commonjs/components/StripeContainer.js +1 -1
  95. package/lib/commonjs/components/StripeContainer.js.map +1 -1
  96. package/lib/commonjs/connect/Components.js +1 -1
  97. package/lib/commonjs/connect/Components.js.map +1 -1
  98. package/lib/commonjs/connect/ConnectComponentsProvider.js +1 -1
  99. package/lib/commonjs/connect/ConnectComponentsProvider.js.map +1 -1
  100. package/lib/commonjs/connect/EmbeddedComponent.js +1 -1
  101. package/lib/commonjs/connect/EmbeddedComponent.js.map +1 -1
  102. package/lib/commonjs/connect/ModalCloseButton.js +1 -1
  103. package/lib/commonjs/connect/ModalCloseButton.js.map +1 -1
  104. package/lib/commonjs/connect/NavigationBar.js +1 -1
  105. package/lib/commonjs/connect/NavigationBar.js.map +1 -1
  106. package/lib/commonjs/events.js.map +1 -1
  107. package/lib/commonjs/functions.js +1 -1
  108. package/lib/commonjs/functions.js.map +1 -1
  109. package/lib/commonjs/helpers.js +1 -1
  110. package/lib/commonjs/hooks/useCheckout.js +1 -1
  111. package/lib/commonjs/hooks/useCheckout.js.map +1 -1
  112. package/lib/commonjs/hooks/useOnramp.js +1 -1
  113. package/lib/commonjs/hooks/useOnramp.js.map +1 -1
  114. package/lib/commonjs/specs/NativeAddToWalletButton.js +1 -1
  115. package/lib/commonjs/specs/NativeAddressSheet.js +1 -1
  116. package/lib/commonjs/specs/NativeApplePayButton.js +1 -1
  117. package/lib/commonjs/specs/NativeAuBECSDebitForm.js +1 -1
  118. package/lib/commonjs/specs/NativeCardField.js +1 -1
  119. package/lib/commonjs/specs/NativeCardField.js.map +1 -1
  120. package/lib/commonjs/specs/NativeCardForm.js +1 -1
  121. package/lib/commonjs/specs/NativeCardForm.js.map +1 -1
  122. package/lib/commonjs/specs/NativeConnectAccountOnboardingView.js +1 -1
  123. package/lib/commonjs/specs/NativeCurrencySelectorElement.js +2 -0
  124. package/lib/commonjs/specs/NativeCurrencySelectorElement.js.map +1 -0
  125. package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js +1 -1
  126. package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js.map +1 -1
  127. package/lib/commonjs/specs/NativeGooglePayButton.js +1 -1
  128. package/lib/commonjs/specs/NativeNavigationBar.js +1 -1
  129. package/lib/commonjs/specs/NativeOnrampSdkModule.js.map +1 -1
  130. package/lib/commonjs/specs/NativePaymentMethodMessagingElement.js +1 -1
  131. package/lib/commonjs/specs/NativeStripeContainer.js +1 -1
  132. package/lib/commonjs/specs/NativeStripeSdkModule.js.map +1 -1
  133. package/lib/commonjs/types/EmbeddedPaymentElement.js +1 -1
  134. package/lib/commonjs/types/EmbeddedPaymentElement.js.map +1 -1
  135. package/lib/module/components/AddToWalletButton.js +1 -1
  136. package/lib/module/components/AddToWalletButton.js.map +1 -1
  137. package/lib/module/components/AddressSheet.js +1 -1
  138. package/lib/module/components/AddressSheet.js.map +1 -1
  139. package/lib/module/components/AuBECSDebitForm.js +1 -1
  140. package/lib/module/components/AuBECSDebitForm.js.map +1 -1
  141. package/lib/module/components/CardField.js +1 -1
  142. package/lib/module/components/CardField.js.map +1 -1
  143. package/lib/module/components/CardForm.js +1 -1
  144. package/lib/module/components/CardForm.js.map +1 -1
  145. package/lib/module/components/CurrencySelectorElement.js +2 -0
  146. package/lib/module/components/CurrencySelectorElement.js.map +1 -0
  147. package/lib/module/components/PaymentMethodMessagingElement.js +1 -1
  148. package/lib/module/components/PaymentMethodMessagingElement.js.map +1 -1
  149. package/lib/module/components/PlatformPayButton.js +1 -1
  150. package/lib/module/components/PlatformPayButton.js.map +1 -1
  151. package/lib/module/components/StripeContainer.js +1 -1
  152. package/lib/module/components/StripeContainer.js.map +1 -1
  153. package/lib/module/connect/Components.js +1 -1
  154. package/lib/module/connect/Components.js.map +1 -1
  155. package/lib/module/connect/ConnectComponentsProvider.js +1 -1
  156. package/lib/module/connect/ConnectComponentsProvider.js.map +1 -1
  157. package/lib/module/connect/EmbeddedComponent.js +1 -1
  158. package/lib/module/connect/EmbeddedComponent.js.map +1 -1
  159. package/lib/module/connect/ModalCloseButton.js +1 -1
  160. package/lib/module/connect/ModalCloseButton.js.map +1 -1
  161. package/lib/module/connect/NavigationBar.js +1 -1
  162. package/lib/module/connect/NavigationBar.js.map +1 -1
  163. package/lib/module/events.js.map +1 -1
  164. package/lib/module/functions.js +1 -1
  165. package/lib/module/functions.js.map +1 -1
  166. package/lib/module/helpers.js +1 -1
  167. package/lib/module/hooks/useCheckout.js +1 -1
  168. package/lib/module/hooks/useCheckout.js.map +1 -1
  169. package/lib/module/hooks/useOnramp.js +1 -1
  170. package/lib/module/hooks/useOnramp.js.map +1 -1
  171. package/lib/module/specs/NativeAddToWalletButton.js +1 -1
  172. package/lib/module/specs/NativeAddressSheet.js +1 -1
  173. package/lib/module/specs/NativeApplePayButton.js +1 -1
  174. package/lib/module/specs/NativeAuBECSDebitForm.js +1 -1
  175. package/lib/module/specs/NativeCardField.js +1 -1
  176. package/lib/module/specs/NativeCardField.js.map +1 -1
  177. package/lib/module/specs/NativeCardForm.js +1 -1
  178. package/lib/module/specs/NativeCardForm.js.map +1 -1
  179. package/lib/module/specs/NativeConnectAccountOnboardingView.js +1 -1
  180. package/lib/module/specs/NativeCurrencySelectorElement.js +2 -0
  181. package/lib/module/specs/NativeCurrencySelectorElement.js.map +1 -0
  182. package/lib/module/specs/NativeEmbeddedPaymentElement.js +1 -1
  183. package/lib/module/specs/NativeEmbeddedPaymentElement.js.map +1 -1
  184. package/lib/module/specs/NativeGooglePayButton.js +1 -1
  185. package/lib/module/specs/NativeNavigationBar.js +1 -1
  186. package/lib/module/specs/NativeOnrampSdkModule.js.map +1 -1
  187. package/lib/module/specs/NativePaymentMethodMessagingElement.js +1 -1
  188. package/lib/module/specs/NativeStripeContainer.js +1 -1
  189. package/lib/module/specs/NativeStripeSdkModule.js.map +1 -1
  190. package/lib/module/types/EmbeddedPaymentElement.js +1 -1
  191. package/lib/module/types/EmbeddedPaymentElement.js.map +1 -1
  192. package/lib/typescript/src/components/CurrencySelectorElement.d.ts +62 -0
  193. package/lib/typescript/src/components/CurrencySelectorElement.d.ts.map +1 -0
  194. package/lib/typescript/src/components/PaymentMethodMessagingElement.d.ts +1 -1
  195. package/lib/typescript/src/components/PaymentMethodMessagingElement.d.ts.map +1 -1
  196. package/lib/typescript/src/events.d.ts +11 -0
  197. package/lib/typescript/src/events.d.ts.map +1 -1
  198. package/lib/typescript/src/functions.d.ts.map +1 -1
  199. package/lib/typescript/src/hooks/useCheckout.d.ts.map +1 -1
  200. package/lib/typescript/src/hooks/useOnramp.d.ts +22 -0
  201. package/lib/typescript/src/hooks/useOnramp.d.ts.map +1 -1
  202. package/lib/typescript/src/specs/NativeCurrencySelectorElement.d.ts +25 -0
  203. package/lib/typescript/src/specs/NativeCurrencySelectorElement.d.ts.map +1 -0
  204. package/lib/typescript/src/specs/NativeEmbeddedPaymentElement.d.ts +5 -1
  205. package/lib/typescript/src/specs/NativeEmbeddedPaymentElement.d.ts.map +1 -1
  206. package/lib/typescript/src/specs/NativeOnrampSdkModule.d.ts +3 -0
  207. package/lib/typescript/src/specs/NativeOnrampSdkModule.d.ts.map +1 -1
  208. package/lib/typescript/src/specs/NativeStripeSdkModule.d.ts +5 -2
  209. package/lib/typescript/src/specs/NativeStripeSdkModule.d.ts.map +1 -1
  210. package/lib/typescript/src/types/Checkout.d.ts +268 -86
  211. package/lib/typescript/src/types/Checkout.d.ts.map +1 -1
  212. package/lib/typescript/src/types/EmbeddedPaymentElement.d.ts +36 -1
  213. package/lib/typescript/src/types/EmbeddedPaymentElement.d.ts.map +1 -1
  214. package/lib/typescript/src/types/Onramp.d.ts +94 -0
  215. package/lib/typescript/src/types/Onramp.d.ts.map +1 -1
  216. package/package.json +16 -4
  217. package/src/components/CurrencySelectorElement.tsx +95 -0
  218. package/src/components/PaymentMethodMessagingElement.tsx +54 -52
  219. package/src/events.ts +11 -0
  220. package/src/functions.ts +30 -1
  221. package/src/hooks/useCheckout.tsx +129 -74
  222. package/src/hooks/useOnramp.tsx +44 -0
  223. package/src/specs/NativeCurrencySelectorElement.ts +35 -0
  224. package/src/specs/NativeEmbeddedPaymentElement.ts +12 -2
  225. package/src/specs/NativeOnrampSdkModule.ts +5 -0
  226. package/src/specs/NativeStripeSdkModule.ts +16 -2
  227. package/src/types/Checkout.ts +291 -86
  228. package/src/types/EmbeddedPaymentElement.tsx +117 -26
  229. package/src/types/Onramp.ts +109 -0
  230. package/stripe-react-native.podspec +1 -1
  231. package/android/.idea/AndroidProjectSystem.xml +0 -6
  232. package/android/.idea/caches/deviceStreaming.xml +0 -835
  233. package/android/.idea/compiler.xml +0 -6
  234. package/android/.idea/gradle.xml +0 -17
  235. package/android/.idea/migrations.xml +0 -10
  236. package/android/.idea/misc.xml +0 -10
  237. package/android/.idea/runConfigurations.xml +0 -17
  238. package/android/.idea/vcs.xml +0 -6
  239. package/android/local.properties +0 -8
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.requireOnrampModule=requireOnrampModule;exports.useOnramp=useOnramp;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _reactNative=require("react-native");var _NativeOnrampSdkModule=_interopRequireDefault(require("../specs/NativeOnrampSdkModule"));var _react=require("react");var _events=require("../events");function requireOnrampModule(){if(_NativeOnrampSdkModule.default==null){var _Platform$select;throw new Error((_Platform$select=_reactNative.Platform.select({ios:"Onramp module is not available. Add 'stripe-react-native/Onramp' to your Podfile.",android:"Onramp module is not available. Add 'StripeSdk_includeOnramp=true' to gradle.properties.",default:"Onramp module is not available. Enable the Onramp pod on iOS and set 'StripeSdk_includeOnramp=true' on Android."}))!=null?_Platform$select:'Onramp module is not available.');}return _NativeOnrampSdkModule.default;}var onCheckoutClientSecretRequestedSubscription=null;function useOnramp(){var _configure=(0,_react.useCallback)(function(){var _ref=(0,_asyncToGenerator2.default)(function*(config){return requireOnrampModule().configureOnramp(config);});return function(_x){return _ref.apply(this,arguments);};}(),[]);var _hasLinkAccount=(0,_react.useCallback)(function(){var _ref2=(0,_asyncToGenerator2.default)(function*(email){return requireOnrampModule().hasLinkAccount(email);});return function(_x2){return _ref2.apply(this,arguments);};}(),[]);var _registerLinkUser=(0,_react.useCallback)(function(){var _ref3=(0,_asyncToGenerator2.default)(function*(info){return requireOnrampModule().registerLinkUser(info);});return function(_x3){return _ref3.apply(this,arguments);};}(),[]);var _registerWalletAddress=(0,_react.useCallback)(function(){var _ref4=(0,_asyncToGenerator2.default)(function*(walletAddress,network){return requireOnrampModule().registerWalletAddress(walletAddress,network);});return function(_x4,_x5){return _ref4.apply(this,arguments);};}(),[]);var _attachKycInfo=(0,_react.useCallback)(function(){var _ref5=(0,_asyncToGenerator2.default)(function*(kycInfo){return requireOnrampModule().attachKycInfo(kycInfo);});return function(_x6){return _ref5.apply(this,arguments);};}(),[]);var _presentKycInfoVerification=(0,_react.useCallback)(function(){var _ref6=(0,_asyncToGenerator2.default)(function*(updatedAddress){return requireOnrampModule().presentKycInfoVerification(updatedAddress);});return function(_x7){return _ref6.apply(this,arguments);};}(),[]);var _authenticateUserWithToken=(0,_react.useCallback)(function(){var _ref7=(0,_asyncToGenerator2.default)(function*(linkAuthTokenClientSecret){return requireOnrampModule().authenticateUserWithToken(linkAuthTokenClientSecret);});return function(_x8){return _ref7.apply(this,arguments);};}(),[]);var _updatePhoneNumber=(0,_react.useCallback)(function(){var _ref8=(0,_asyncToGenerator2.default)(function*(phone){return requireOnrampModule().updatePhoneNumber(phone);});return function(_x9){return _ref8.apply(this,arguments);};}(),[]);var _verifyIdentity=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return requireOnrampModule().verifyIdentity();}),[]);var _collectPaymentMethod=(0,_react.useCallback)(function(){var _ref0=(0,_asyncToGenerator2.default)(function*(paymentMethod,platformPayParams){return requireOnrampModule().collectPaymentMethod(paymentMethod,platformPayParams!=null?platformPayParams:{});});return function(_x0,_x1){return _ref0.apply(this,arguments);};}(),[]);var _createCryptoPaymentToken=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return requireOnrampModule().createCryptoPaymentToken();}),[]);var _performCheckout=(0,_react.useCallback)(function(){var _ref10=(0,_asyncToGenerator2.default)(function*(onrampSessionId,provideCheckoutClientSecret){var _onCheckoutClientSecr;(_onCheckoutClientSecr=onCheckoutClientSecretRequestedSubscription)==null||_onCheckoutClientSecr.remove();onCheckoutClientSecretRequestedSubscription=(0,_events.addOnrampListener)('onCheckoutClientSecretRequested',(0,_asyncToGenerator2.default)(function*(){try{var clientSecret=yield provideCheckoutClientSecret();requireOnrampModule().provideCheckoutClientSecret(clientSecret);}catch(error){requireOnrampModule().provideCheckoutClientSecret(null);}}));return requireOnrampModule().performCheckout(onrampSessionId);});return function(_x10,_x11){return _ref10.apply(this,arguments);};}(),[]);var _authorize=(0,_react.useCallback)(function(){var _ref12=(0,_asyncToGenerator2.default)(function*(linkAuthIntentId){return requireOnrampModule().onrampAuthorize(linkAuthIntentId);});return function(_x12){return _ref12.apply(this,arguments);};}(),[]);var _getCryptoTokenDisplayData=(0,_react.useCallback)(function(){var _ref13=(0,_asyncToGenerator2.default)(function*(token){return requireOnrampModule().getCryptoTokenDisplayData(token);});return function(_x13){return _ref13.apply(this,arguments);};}(),[]);var _logOut=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return requireOnrampModule().logout();}),[]);var _isAuthError=function _isAuthError(error){var stripeErrorCode=error==null?void 0:error.stripeErrorCode;if(stripeErrorCode==null){return false;}var authErrorCodes=['consumer_session_credentials_invalid','consumer_session_expired'];return authErrorCodes.includes(stripeErrorCode);};return{configure:_configure,hasLinkAccount:_hasLinkAccount,registerLinkUser:_registerLinkUser,registerWalletAddress:_registerWalletAddress,attachKycInfo:_attachKycInfo,presentKycInfoVerification:_presentKycInfoVerification,updatePhoneNumber:_updatePhoneNumber,authenticateUserWithToken:_authenticateUserWithToken,verifyIdentity:_verifyIdentity,collectPaymentMethod:_collectPaymentMethod,createCryptoPaymentToken:_createCryptoPaymentToken,performCheckout:_performCheckout,authorize:_authorize,getCryptoTokenDisplayData:_getCryptoTokenDisplayData,logOut:_logOut,isAuthError:_isAuthError};}
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.requireOnrampModule=requireOnrampModule;exports.useOnramp=useOnramp;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _reactNative=require("react-native");var _NativeOnrampSdkModule=_interopRequireDefault(require("../specs/NativeOnrampSdkModule"));var _react=require("react");var _events=require("../events");function requireOnrampModule(){if(_NativeOnrampSdkModule.default==null){var _Platform$select;throw new Error((_Platform$select=_reactNative.Platform.select({ios:"Onramp module is not available. Add 'stripe-react-native/Onramp' to your Podfile.",android:"Onramp module is not available. Add 'StripeSdk_includeOnramp=true' to gradle.properties.",default:"Onramp module is not available. Enable the Onramp pod on iOS and set 'StripeSdk_includeOnramp=true' on Android."}))!=null?_Platform$select:'Onramp module is not available.');}return _NativeOnrampSdkModule.default;}var onCheckoutClientSecretRequestedSubscription=null;function useOnramp(){var _configure=(0,_react.useCallback)(function(){var _ref=(0,_asyncToGenerator2.default)(function*(config){return requireOnrampModule().configureOnramp(config);});return function(_x){return _ref.apply(this,arguments);};}(),[]);var _hasLinkAccount=(0,_react.useCallback)(function(){var _ref2=(0,_asyncToGenerator2.default)(function*(email){return requireOnrampModule().hasLinkAccount(email);});return function(_x2){return _ref2.apply(this,arguments);};}(),[]);var _registerLinkUser=(0,_react.useCallback)(function(){var _ref3=(0,_asyncToGenerator2.default)(function*(info){return requireOnrampModule().registerLinkUser(info);});return function(_x3){return _ref3.apply(this,arguments);};}(),[]);var _registerWalletAddress=(0,_react.useCallback)(function(){var _ref4=(0,_asyncToGenerator2.default)(function*(walletAddress,network){return requireOnrampModule().registerWalletAddress(walletAddress,network);});return function(_x4,_x5){return _ref4.apply(this,arguments);};}(),[]);var _attachKycInfo=(0,_react.useCallback)(function(){var _ref5=(0,_asyncToGenerator2.default)(function*(kycInfo){return requireOnrampModule().attachKycInfo(kycInfo);});return function(_x6){return _ref5.apply(this,arguments);};}(),[]);var _retrieveMissingIdentifiers=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return requireOnrampModule().retrieveMissingIdentifiers();}),[]);var _submitIdentifiers=(0,_react.useCallback)(function(){var _ref7=(0,_asyncToGenerator2.default)(function*(identifiers){return requireOnrampModule().submitIdentifiers(identifiers);});return function(_x7){return _ref7.apply(this,arguments);};}(),[]);var _presentCRSCARFDeclaration=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return requireOnrampModule().presentCRSCARFDeclaration();}),[]);var _presentKycInfoVerification=(0,_react.useCallback)(function(){var _ref9=(0,_asyncToGenerator2.default)(function*(updatedAddress){return requireOnrampModule().presentKycInfoVerification(updatedAddress);});return function(_x8){return _ref9.apply(this,arguments);};}(),[]);var _authenticateUserWithToken=(0,_react.useCallback)(function(){var _ref0=(0,_asyncToGenerator2.default)(function*(linkAuthTokenClientSecret){return requireOnrampModule().authenticateUserWithToken(linkAuthTokenClientSecret);});return function(_x9){return _ref0.apply(this,arguments);};}(),[]);var _updatePhoneNumber=(0,_react.useCallback)(function(){var _ref1=(0,_asyncToGenerator2.default)(function*(phone){return requireOnrampModule().updatePhoneNumber(phone);});return function(_x0){return _ref1.apply(this,arguments);};}(),[]);var _verifyIdentity=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return requireOnrampModule().verifyIdentity();}),[]);var _collectPaymentMethod=(0,_react.useCallback)(function(){var _ref11=(0,_asyncToGenerator2.default)(function*(paymentMethod,platformPayParams){return requireOnrampModule().collectPaymentMethod(paymentMethod,platformPayParams!=null?platformPayParams:{});});return function(_x1,_x10){return _ref11.apply(this,arguments);};}(),[]);var _createCryptoPaymentToken=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return requireOnrampModule().createCryptoPaymentToken();}),[]);var _performCheckout=(0,_react.useCallback)(function(){var _ref13=(0,_asyncToGenerator2.default)(function*(onrampSessionId,provideCheckoutClientSecret){var _onCheckoutClientSecr;(_onCheckoutClientSecr=onCheckoutClientSecretRequestedSubscription)==null||_onCheckoutClientSecr.remove();onCheckoutClientSecretRequestedSubscription=(0,_events.addOnrampListener)('onCheckoutClientSecretRequested',(0,_asyncToGenerator2.default)(function*(){try{var clientSecret=yield provideCheckoutClientSecret();requireOnrampModule().provideCheckoutClientSecret(clientSecret);}catch(error){requireOnrampModule().provideCheckoutClientSecret(null);}}));return requireOnrampModule().performCheckout(onrampSessionId);});return function(_x11,_x12){return _ref13.apply(this,arguments);};}(),[]);var _authorize=(0,_react.useCallback)(function(){var _ref15=(0,_asyncToGenerator2.default)(function*(linkAuthIntentId){return requireOnrampModule().onrampAuthorize(linkAuthIntentId);});return function(_x13){return _ref15.apply(this,arguments);};}(),[]);var _getCryptoTokenDisplayData=(0,_react.useCallback)(function(){var _ref16=(0,_asyncToGenerator2.default)(function*(token){return requireOnrampModule().getCryptoTokenDisplayData(token);});return function(_x14){return _ref16.apply(this,arguments);};}(),[]);var _logOut=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){return requireOnrampModule().logout();}),[]);var _isAuthError=function _isAuthError(error){var stripeErrorCode=error==null?void 0:error.stripeErrorCode;if(stripeErrorCode==null){return false;}var authErrorCodes=['consumer_session_credentials_invalid','consumer_session_expired'];return authErrorCodes.includes(stripeErrorCode);};return{configure:_configure,hasLinkAccount:_hasLinkAccount,registerLinkUser:_registerLinkUser,registerWalletAddress:_registerWalletAddress,attachKycInfo:_attachKycInfo,retrieveMissingIdentifiers:_retrieveMissingIdentifiers,submitIdentifiers:_submitIdentifiers,presentCRSCARFDeclaration:_presentCRSCARFDeclaration,presentKycInfoVerification:_presentKycInfoVerification,updatePhoneNumber:_updatePhoneNumber,authenticateUserWithToken:_authenticateUserWithToken,verifyIdentity:_verifyIdentity,collectPaymentMethod:_collectPaymentMethod,createCryptoPaymentToken:_createCryptoPaymentToken,performCheckout:_performCheckout,authorize:_authorize,getCryptoTokenDisplayData:_getCryptoTokenDisplayData,logOut:_logOut,isAuthError:_isAuthError};}
2
2
  //# sourceMappingURL=useOnramp.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_NativeOnrampSdkModule","_interopRequireDefault","_react","_events","requireOnrampModule","NativeOnrampSdk","_Platform$select","Error","Platform","select","ios","android","default","onCheckoutClientSecretRequestedSubscription","useOnramp","_configure","useCallback","_ref","_asyncToGenerator2","config","configureOnramp","_x","apply","arguments","_hasLinkAccount","_ref2","email","hasLinkAccount","_x2","_registerLinkUser","_ref3","info","registerLinkUser","_x3","_registerWalletAddress","_ref4","walletAddress","network","registerWalletAddress","_x4","_x5","_attachKycInfo","_ref5","kycInfo","attachKycInfo","_x6","_presentKycInfoVerification","_ref6","updatedAddress","presentKycInfoVerification","_x7","_authenticateUserWithToken","_ref7","linkAuthTokenClientSecret","authenticateUserWithToken","_x8","_updatePhoneNumber","_ref8","phone","updatePhoneNumber","_x9","_verifyIdentity","verifyIdentity","_collectPaymentMethod","_ref0","paymentMethod","platformPayParams","collectPaymentMethod","_x0","_x1","_createCryptoPaymentToken","createCryptoPaymentToken","_performCheckout","_ref10","onrampSessionId","provideCheckoutClientSecret","_onCheckoutClientSecr","remove","addOnrampListener","clientSecret","error","performCheckout","_x10","_x11","_authorize","_ref12","linkAuthIntentId","onrampAuthorize","_x12","_getCryptoTokenDisplayData","_ref13","token","getCryptoTokenDisplayData","_x13","_logOut","logout","_isAuthError","stripeErrorCode","authErrorCodes","includes","configure","authorize","logOut","isAuthError"],"sourceRoot":"../../../src","sources":["hooks/useOnramp.tsx"],"mappings":"0TAAA,IAAAA,YAAA,CAAAC,OAAA,iBACA,IAAAC,sBAAA,CAAAC,sBAAA,CAAAF,OAAA,oCAGA,IAAAG,MAAA,CAAAH,OAAA,UACA,IAAAI,OAAA,CAAAJ,OAAA,cAGO,QAAS,CAAAK,mBAAmBA,CAAA,CAAG,CACpC,GAAIC,8BAAe,EAAI,IAAI,CAAE,KAAAC,gBAAA,CAC3B,KAAM,IAAI,CAAAC,KAAK,EAAAD,gBAAA,CACbE,qBAAQ,CAACC,MAAM,CAAC,CACdC,GAAG,CAAE,mFAAmF,CACxFC,OAAO,CACL,0FAA0F,CAC5FC,OAAO,CACL,iHACJ,CAAC,CAAC,QAAAN,gBAAA,CAAI,iCACR,CAAC,CACH,CACA,MAAO,CAAAD,8BAAe,CACxB,CAEA,GAAI,CAAAQ,2CAAqE,CACvE,IAAI,CAKC,QAAS,CAAAC,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CS,qBAAqB,CAAEJ,sBAAsB,CAQ7CU,aAAa,CAAEH,cAAc,CAW7BQ,0BAA0B,CAAEH,2BAA2B,CAQvDa,iBAAiB,CAAEH,kBAAkB,CASrCF,yBAAyB,CAAEH,0BAA0B,CAQrDW,cAAc,CAAED,eAAe,CAkB/BM,oBAAoB,CAAEJ,qBAAqB,CAQ3CQ,wBAAwB,CAAED,yBAAyB,CASnDW,eAAe,CAAET,gBAAgB,CAQjC6B,SAAS,CAAEjB,UAAU,CASrBQ,yBAAyB,CAAEH,0BAA0B,CAOrDa,MAAM,CAAER,OAAO,CASfS,WAAW,CAAEP,YACf,CAAC,CACH","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_NativeOnrampSdkModule","_interopRequireDefault","_react","_events","requireOnrampModule","NativeOnrampSdk","_Platform$select","Error","Platform","select","ios","android","default","onCheckoutClientSecretRequestedSubscription","useOnramp","_configure","useCallback","_ref","_asyncToGenerator2","config","configureOnramp","_x","apply","arguments","_hasLinkAccount","_ref2","email","hasLinkAccount","_x2","_registerLinkUser","_ref3","info","registerLinkUser","_x3","_registerWalletAddress","_ref4","walletAddress","network","registerWalletAddress","_x4","_x5","_attachKycInfo","_ref5","kycInfo","attachKycInfo","_x6","_retrieveMissingIdentifiers","retrieveMissingIdentifiers","_submitIdentifiers","_ref7","identifiers","submitIdentifiers","_x7","_presentCRSCARFDeclaration","presentCRSCARFDeclaration","_presentKycInfoVerification","_ref9","updatedAddress","presentKycInfoVerification","_x8","_authenticateUserWithToken","_ref0","linkAuthTokenClientSecret","authenticateUserWithToken","_x9","_updatePhoneNumber","_ref1","phone","updatePhoneNumber","_x0","_verifyIdentity","verifyIdentity","_collectPaymentMethod","_ref11","paymentMethod","platformPayParams","collectPaymentMethod","_x1","_x10","_createCryptoPaymentToken","createCryptoPaymentToken","_performCheckout","_ref13","onrampSessionId","provideCheckoutClientSecret","_onCheckoutClientSecr","remove","addOnrampListener","clientSecret","error","performCheckout","_x11","_x12","_authorize","_ref15","linkAuthIntentId","onrampAuthorize","_x13","_getCryptoTokenDisplayData","_ref16","token","getCryptoTokenDisplayData","_x14","_logOut","logout","_isAuthError","stripeErrorCode","authErrorCodes","includes","configure","authorize","logOut","isAuthError"],"sourceRoot":"../../../src","sources":["hooks/useOnramp.tsx"],"mappings":"0TAAA,IAAAA,YAAA,CAAAC,OAAA,iBACA,IAAAC,sBAAA,CAAAC,sBAAA,CAAAF,OAAA,oCAGA,IAAAG,MAAA,CAAAH,OAAA,UACA,IAAAI,OAAA,CAAAJ,OAAA,cAGO,QAAS,CAAAK,mBAAmBA,CAAA,CAAG,CACpC,GAAIC,8BAAe,EAAI,IAAI,CAAE,KAAAC,gBAAA,CAC3B,KAAM,IAAI,CAAAC,KAAK,EAAAD,gBAAA,CACbE,qBAAQ,CAACC,MAAM,CAAC,CACdC,GAAG,CAAE,mFAAmF,CACxFC,OAAO,CACL,0FAA0F,CAC5FC,OAAO,CACL,iHACJ,CAAC,CAAC,QAAAN,gBAAA,CAAI,iCACR,CAAC,CACH,CACA,MAAO,CAAAD,8BAAe,CACxB,CAEA,GAAI,CAAAQ,2CAAqE,CACvE,IAAI,CAKC,QAAS,CAAAC,SAASA,CAAA,CAAG,CAC1B,GAAM,CAAAC,UAAU,CAAG,GAAAC,kBAAW,iBAAAC,IAAA,IAAAC,kBAAA,CAAAN,OAAA,EAC5B,UACEO,MAA4B,CACsB,CAClD,MAAO,CAAAf,mBAAmB,CAAC,CAAC,CAACgB,eAAe,CAACD,MAAM,CAAC,CACtD,CAAC,kBAAAE,EAAA,SAAAJ,IAAA,CAAAK,KAAA,MAAAC,SAAA,QACD,EACF,CAAC,CAED,GAAM,CAAAC,eAAe,CAAG,GAAAR,kBAAW,iBAAAS,KAAA,IAAAP,kBAAA,CAAAN,OAAA,EACjC,UAAOc,KAAa,CAA2C,CAC7D,MAAO,CAAAtB,mBAAmB,CAAC,CAAC,CAACuB,cAAc,CAACD,KAAK,CAAC,CACpD,CAAC,kBAAAE,GAAA,S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cAAc,CAACC,QAAQ,CAACF,eAAe,CAAC,CACjD,CAAC,CAED,MAAO,CAOLG,SAAS,CAAE9F,UAAU,CAQrBY,cAAc,CAAEH,eAAe,CAQ/BQ,gBAAgB,CAAEH,iBAAiB,CAUnCS,qBAAqB,CAAEJ,sBAAsB,CAQ7CU,aAAa,CAAEH,cAAc,CAQ7BM,0BAA0B,CAAED,2BAA2B,CASvDK,iBAAiB,CAAEH,kBAAkB,CAQrCM,yBAAyB,CAAED,0BAA0B,CAWrDK,0BAA0B,CAAEH,2BAA2B,CAQvDa,iBAAiB,CAAEH,kBAAkB,CASrCF,yBAAyB,CAAEH,0BAA0B,CAQrDW,cAAc,CAAED,eAAe,CAkB/BM,oBAAoB,CAAEJ,qBAAqB,CAQ3CQ,wBAAwB,CAAED,yBAAyB,CASnDW,eAAe,CAAET,gBAAgB,CAQjC6B,SAAS,CAAEjB,UAAU,CASrBQ,yBAAyB,CAAEH,0BAA0B,CAOrDa,MAAM,CAAER,OAAO,CASfS,WAAW,CAAEP,YACf,CAAC,CACH","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='AddToWalletButton';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AddToWalletButton",directEventTypes:{topCompleteAction:{registrationName:"onCompleteAction"}},validAttributes:Object.assign({iOSButtonStyle:true,androidAssetSource:{process:function(req){return'default'in req?req.default:req;}(require('react-native/Libraries/Image/resolveAssetSource'))},testEnv:true,cardDetails:true,token:true,ephemeralKey:true},ConditionallyIgnoredEventHandlers({onCompleteAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativeAddToWalletButton.ts 6:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='AddToWalletButton';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AddToWalletButton",directEventTypes:{topCompleteAction:{registrationName:"onCompleteAction"}},validAttributes:Object.assign({iOSButtonStyle:true,androidAssetSource:{process:function(req){return'default'in req?req.default:req;}(require('react-native/Libraries/Image/resolveAssetSource'))},testEnv:true,cardDetails:true,token:true,ephemeralKey:true},ConditionallyIgnoredEventHandlers({onCompleteAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeAddToWalletButton.ts 6:0");
2
2
  //# sourceMappingURL=NativeAddToWalletButton.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='AddressSheetView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AddressSheetView",directEventTypes:{topSubmitAction:{registrationName:"onSubmitAction"},topErrorAction:{registrationName:"onErrorAction"}},validAttributes:Object.assign({visible:true,presentationStyle:true,animationStyle:true,appearance:true,defaultValues:true,additionalFields:true,allowedCountries:true,autocompleteCountries:true,primaryButtonTitle:true,sheetTitle:true,googlePlacesApiKey:true},ConditionallyIgnoredEventHandlers({onSubmitAction:true,onErrorAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativeAddressSheet.ts 6:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='AddressSheetView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AddressSheetView",directEventTypes:{topSubmitAction:{registrationName:"onSubmitAction"},topErrorAction:{registrationName:"onErrorAction"}},validAttributes:Object.assign({visible:true,presentationStyle:true,animationStyle:true,appearance:true,defaultValues:true,additionalFields:true,allowedCountries:true,autocompleteCountries:true,primaryButtonTitle:true,sheetTitle:true,googlePlacesApiKey:true},ConditionallyIgnoredEventHandlers({onSubmitAction:true,onErrorAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeAddressSheet.ts 6:0");
2
2
  //# sourceMappingURL=NativeAddressSheet.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='ApplePayButton';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"ApplePayButton",directEventTypes:{topShippingMethodSelectedAction:{registrationName:"onShippingMethodSelectedAction"},topShippingContactSelectedAction:{registrationName:"onShippingContactSelectedAction"},topCouponCodeEnteredAction:{registrationName:"onCouponCodeEnteredAction"},topOrderTrackingAction:{registrationName:"onOrderTrackingAction"}},validAttributes:Object.assign({disabled:true,type:true,buttonStyle:true,buttonBorderRadius:true,hasShippingMethodCallback:true,hasShippingContactCallback:true,hasCouponCodeCallback:true,hasOrderTrackingCallback:true},ConditionallyIgnoredEventHandlers({onShippingMethodSelectedAction:true,onShippingContactSelectedAction:true,onCouponCodeEnteredAction:true,onOrderTrackingAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativeApplePayButton.ts 7:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='ApplePayButton';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"ApplePayButton",directEventTypes:{topShippingMethodSelectedAction:{registrationName:"onShippingMethodSelectedAction"},topShippingContactSelectedAction:{registrationName:"onShippingContactSelectedAction"},topCouponCodeEnteredAction:{registrationName:"onCouponCodeEnteredAction"},topOrderTrackingAction:{registrationName:"onOrderTrackingAction"}},validAttributes:Object.assign({disabled:true,type:true,buttonStyle:true,buttonBorderRadius:true,hasShippingMethodCallback:true,hasShippingContactCallback:true,hasCouponCodeCallback:true,hasOrderTrackingCallback:true},ConditionallyIgnoredEventHandlers({onShippingMethodSelectedAction:true,onShippingContactSelectedAction:true,onCouponCodeEnteredAction:true,onOrderTrackingAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeApplePayButton.ts 7:0");
2
2
  //# sourceMappingURL=NativeApplePayButton.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='AuBECSDebitForm';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AuBECSDebitForm",directEventTypes:{topCompleteAction:{registrationName:"onCompleteAction"}},validAttributes:Object.assign({companyName:true,formStyle:true},ConditionallyIgnoredEventHandlers({onCompleteAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativeAuBECSDebitForm.ts 3:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='AuBECSDebitForm';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AuBECSDebitForm",directEventTypes:{topCompleteAction:{registrationName:"onCompleteAction"}},validAttributes:Object.assign({companyName:true,formStyle:true},ConditionallyIgnoredEventHandlers({onCompleteAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeAuBECSDebitForm.ts 3:0");
2
2
  //# sourceMappingURL=NativeAuBECSDebitForm.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var _require2=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require2.dispatchCommand;var nativeComponentName='CardField';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"CardField",directEventTypes:{topCardChange:{registrationName:"onCardChange"},topFocusChange:{registrationName:"onFocusChange"}},validAttributes:Object.assign({autofocus:true,cardStyle:true,countryCode:true,dangerouslyGetFullCardDetails:true,disabled:true,onBehalfOf:true,placeholders:true,postalCodeEnabled:true,preferredNetworks:true},ConditionallyIgnoredEventHandlers({onCardChange:true,onFocusChange:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={blur:function blur(ref){dispatchCommand(ref,"blur",[]);},focus:function focus(ref){dispatchCommand(ref,"focus",[]);},clear:function clear(ref){dispatchCommand(ref,"clear",[]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativeCardField.ts 6:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativeCardField.ts 7:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var _require2=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require2.dispatchCommand;var nativeComponentName='CardField';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"CardField",directEventTypes:{topCardChange:{registrationName:"onCardChange"},topFocusChange:{registrationName:"onFocusChange"}},validAttributes:Object.assign({autofocus:true,cardStyle:true,countryCode:true,dangerouslyGetFullCardDetails:true,disabled:true,onBehalfOf:true,placeholders:true,postalCodeEnabled:true,preferredNetworks:true},ConditionallyIgnoredEventHandlers({onCardChange:true,onFocusChange:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={blur:function blur(ref){dispatchCommand(ref,"blur",[]);},focus:function focus(ref){dispatchCommand(ref,"focus",[]);},clear:function clear(ref){dispatchCommand(ref,"clear",[]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeCardField.ts 6:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeCardField.ts 7:0");
2
2
  //# sourceMappingURL=NativeCardField.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","ConditionallyIgnoredEventHandlers","_require2","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","directEventTypes","topCardChange","registrationName","topFocusChange","validAttributes","Object","assign","autofocus","cardStyle","countryCode","dangerouslyGetFullCardDetails","disabled","onBehalfOf","placeholders","postalCodeEnabled","preferredNetworks","onCardChange","onFocusChange","_default","default","get","Commands","blur","ref","focus","clear","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeCardField.ts"],"mappings":"mNAKA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DA0CA,IAAAE,uBAEmB,CAFnBF,OAEmB,CAFnB,gEAEkB,CAAC,CAFnB,IAAAG,QAAA,CAAAH,OAEmB,CAFnB,yDAEkB,CAAC,CAFnBI,iCAEmB,CAAAD,QAAA,CAFnBC,iCAEmB,CAFnB,IAAAC,SAAA,CAAAL,OAEmB,CAFnB,kDAEkB,CAAC,CAFnBM,eAEmB,CAAAD,SAAA,CAFnBC,eAEmB,CAFnB,IAAAC,mBAEmB,CAFnB,WAEmB,CAFnB,IAAAC,sBAEmB,CAAAC,OAAA,CAAAD,sBAAA,CAFnB,CAAAE,eAEmB,CAFnB,WAEmB,CAFnBC,gBAEmB,CAFnB,CAAAC,aAEmB,CAFnB,CAAAC,gBAEmB,CAFnB,cAEkB,CAAC,CAFnBC,cAEmB,CAFnB,CAAAD,gBAEmB,CAFnB,eAEkB,EAAC,CAFnBE,eAEmB,CAAAC,MAAA,CAAAC,MAAA,EAFnBC,SAEmB,CAFnB,IAEmB,CAFnBC,SAEmB,CAFnB,IAEmB,CAFnBC,WAEmB,CAFnB,IAEmB,CAFnBC,6BAEmB,CAFnB,IAEmB,CAFnBC,QAEmB,CAFnB,IAEmB,CAFnBC,UAEmB,CAFnB,IAEmB,CAFnBC,YAEmB,CAFnB,IAEmB,CAFnBC,iBAEmB,CAFnB,IAEmB,CAFnBC,iBAEmB,CAFnB,IAEmB,EAFnBtB,iCAEmB,CAFnB,CAAAuB,YAEmB,CAFnB,IAEmB,CAFnBC,aAEmB,CAFnB,IAEkB,EAAC,CAAD,CAAC,KAAAC,QAAA,CAAApB,OAAA,CAAAqB,OAAA,CAFnB5B,uBAEmB,CAFnB6B,GAEmB,CAFnBxB,mBAEmB,CAFnB,kBAAAC,sBAEmB,EAAD,CAAC,CAFnB,IAAAwB,QAEmB,CAAAvB,OAAA,CAAAuB,QAAA,CAFnB,CAAAC,IAEmB,SAFnB,CAAAA,IAEmBA,CAFnBC,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,MAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBC,KAEmB,SAFnB,CAAAA,KAEmBA,CAFnBD,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,OAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBE,KAEmB,SAFnB,CAAAA,KAEmBA,CAFnBF,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,OAEmB,CAFnB,EAEkB,CAAC,CAAD,EAAC,CA7CnBG,OAAA,CAAAC,IAAA,8MACAD,OAAA,CAAAC,IAAA","ignoreList":[]}
1
+ {"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","ConditionallyIgnoredEventHandlers","_require2","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","directEventTypes","topCardChange","registrationName","topFocusChange","validAttributes","Object","assign","autofocus","cardStyle","countryCode","dangerouslyGetFullCardDetails","disabled","onBehalfOf","placeholders","postalCodeEnabled","preferredNetworks","onCardChange","onFocusChange","_default","default","get","Commands","blur","ref","focus","clear","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeCardField.ts"],"mappings":"mN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B,CAAAC,IAEmB,SAFnB,CAAAA,IAEmBA,CAFnBC,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,MAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBC,KAEmB,SAFnB,CAAAA,KAEmBA,CAFnBD,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,OAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBE,KAEmB,SAFnB,CAAAA,KAEmBA,CAFnBF,GAEmB,CAFnB,CAAA5B,eAEmB,CAFnB4B,GAEmB,CAFnB,OAEmB,CAFnB,EAEkB,CAAC,CAAD,EAAC,CA7CnBG,OAAA,CAAAC,IAAA,iNACAD,OAAA,CAAAC,IAAA","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var _require2=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require2.dispatchCommand;var nativeComponentName='CardForm';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"CardForm",directEventTypes:{topFocusChange:{registrationName:"onFocusChange"},topFormComplete:{registrationName:"onFormComplete"}},validAttributes:Object.assign({autofocus:true,cardStyle:true,dangerouslyGetFullCardDetails:true,defaultValues:true,disabled:true,placeholders:true,postalCodeEnabled:true,preferredNetworks:true},ConditionallyIgnoredEventHandlers({onFocusChange:true,onFormComplete:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={blur:function blur(ref){dispatchCommand(ref,"blur",[]);},focus:function focus(ref){dispatchCommand(ref,"focus",[]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativeCardForm.ts 6:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativeCardForm.ts 7:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var _require2=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require2.dispatchCommand;var nativeComponentName='CardForm';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"CardForm",directEventTypes:{topFocusChange:{registrationName:"onFocusChange"},topFormComplete:{registrationName:"onFormComplete"}},validAttributes:Object.assign({autofocus:true,cardStyle:true,dangerouslyGetFullCardDetails:true,defaultValues:true,disabled:true,placeholders:true,postalCodeEnabled:true,preferredNetworks:true},ConditionallyIgnoredEventHandlers({onFocusChange:true,onFormComplete:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={blur:function blur(ref){dispatchCommand(ref,"blur",[]);},focus:function focus(ref){dispatchCommand(ref,"focus",[]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeCardForm.ts 6:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeCardForm.ts 7:0");
2
2
  //# sourceMappingURL=NativeCardForm.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","ConditionallyIgnoredEventHandlers","_require2","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","directEventTypes","topFocusChange","registrationName","topFormComplete","validAttributes","Object","assign","autofocus","cardStyle","dangerouslyGetFullCardDetails","defaultValues","disabled","placeholders","postalCodeEnabled","preferredNetworks","onFocusChange","onFormComplete","_default","default","get","Commands","blur","ref","focus","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeCardForm.ts"],"mappings":"mNAKA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DAoCA,IAAAE,uBAAgF,CAAhFF,OAAgF,CAAhF,gEAA+E,CAAC,CAAhF,IAAAG,QAAA,CAAAH,OAAgF,CAAhF,yDAA+E,CAAC,CAAhFI,iCAAgF,CAAAD,QAAA,CAAhFC,iCAAgF,CAAhF,IAAAC,SAAA,CAAAL,OAAgF,CAAhF,kDAA+E,CAAC,CAAhFM,eAAgF,CAAAD,SAAA,CAAhFC,eAAgF,CAAhF,IAAAC,mBAAgF,CAAhF,UAAgF,CAAhF,IAAAC,sBAAgF,CAAAC,OAAA,CAAAD,sBAAA,CAAhF,CAAAE,eAAgF,CAAhF,UAAgF,CAAhFC,gBAAgF,CAAhF,CAAAC,cAAgF,CAAhF,CAAAC,gBAAgF,CAAhF,eAA+E,CAAC,CAAhFC,eAAgF,CAAhF,CAAAD,gBAAgF,CAAhF,gBAA+E,EAAC,CAAhFE,eAAgF,CAAAC,MAAA,CAAAC,MAAA,EAAhFC,SAAgF,CAAhF,IAAgF,CAAhFC,SAAgF,CAAhF,IAAgF,CAAhFC,6BAAgF,CAAhF,IAAgF,CAAhFC,aAAgF,CAAhF,IAAgF,CAAhFC,QAAgF,CAAhF,IAAgF,CAAhFC,YAAgF,CAAhF,IAAgF,CAAhFC,iBAAgF,CAAhF,IAAgF,CAAhFC,iBAAgF,CAAhF,IAAgF,EAAhFrB,iCAAgF,CAAhF,CAAAsB,aAAgF,CAAhF,IAAgF,CAAhFC,cAAgF,CAAhF,IAA+E,EAAC,CAAD,CAAC,KAAAC,QAAA,CAAAnB,OAAA,CAAAoB,OAAA,CAAhF3B,uBAAgF,CAAhF4B,GAAgF,CAAhFvB,mBAAgF,CAAhF,kBAAAC,sBAAgF,EAAD,CAAC,CAAhF,IAAAuB,QAAgF,CAAAtB,OAAA,CAAAsB,QAAA,CAAhF,CAAAC,IAAgF,SAAhF,CAAAA,IAAgFA,CAAhFC,GAAgF,CAAhF,CAAA3B,eAAgF,CAAhF2B,GAAgF,CAAhF,MAAgF,CAAhF,EAA+E,CAAC,CAAD,CAAC,CAAhFC,KAAgF,SAAhF,CAAAA,KAAgFA,CAAhFD,GAAgF,CAAhF,CAAA3B,eAAgF,CAAhF2B,GAAgF,CAAhF,OAAgF,CAAhF,EAA+E,CAAC,CAAD,EAAC,CArChFE,OAAA,CAAAC,IAAA,6MACAD,OAAA,CAAAC,IAAA","ignoreList":[]}
1
+ {"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","ConditionallyIgnoredEventHandlers","_require2","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","directEventTypes","topFocusChange","registrationName","topFormComplete","validAttributes","Object","assign","autofocus","cardStyle","dangerouslyGetFullCardDetails","defaultValues","disabled","placeholders","postalCodeEnabled","preferredNetworks","onFocusChange","onFormComplete","_default","default","get","Commands","blur","ref","focus","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeCardForm.ts"],"mappings":"mNAKA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DAoCA,IAAAE,uBAAgF,CAAhFF,OAAgF,CAAhF,gEAA+E,CAAC,CAAhF,IAAAG,QAAA,CAAAH,OAAgF,CAAhF,yDAA+E,CAAC,CAAhFI,iCAAgF,CAAAD,QAAA,CAAhFC,iCAAgF,CAAhF,IAAAC,SAAA,CAAAL,OAAgF,CAAhF,kDAA+E,CAAC,CAAhFM,eAAgF,CAAAD,SAAA,CAAhFC,eAAgF,CAAhF,IAAAC,mBAAgF,CAAhF,UAAgF,CAAhF,IAAAC,sBAAgF,CAAAC,OAAA,CAAAD,sBAAA,CAAhF,CAAAE,eAAgF,CAAhF,UAAgF,CAAhFC,gBAAgF,CAAhF,CAAAC,cAAgF,CAAhF,CAAAC,gBAAgF,CAAhF,eAA+E,CAAC,CAAhFC,eAAgF,CAAhF,CAAAD,gBAAgF,CAAhF,gBAA+E,EAAC,CAAhFE,eAAgF,CAAAC,MAAA,CAAAC,MAAA,EAAhFC,SAAgF,CAAhF,IAAgF,CAAhFC,SAAgF,CAAhF,IAAgF,CAAhFC,6BAAgF,CAAhF,IAAgF,CAAhFC,aAAgF,CAAhF,IAAgF,CAAhFC,QAAgF,CAAhF,IAAgF,CAAhFC,YAAgF,CAAhF,IAAgF,CAAhFC,iBAAgF,CAAhF,IAAgF,CAAhFC,iBAAgF,CAAhF,IAAgF,EAAhFrB,iCAAgF,CAAhF,CAAAsB,aAAgF,CAAhF,IAAgF,CAAhFC,cAAgF,CAAhF,IAA+E,EAAC,CAAD,CAAC,KAAAC,QAAA,CAAAnB,OAAA,CAAAoB,OAAA,CAAhF3B,uBAAgF,CAAhF4B,GAAgF,CAAhFvB,mBAAgF,CAAhF,kBAAAC,sBAAgF,EAAD,CAAC,CAAhF,IAAAuB,QAAgF,CAAAtB,OAAA,CAAAsB,QAAA,CAAhF,CAAAC,IAAgF,SAAhF,CAAAA,IAAgFA,CAAhFC,GAAgF,CAAhF,CAAA3B,eAAgF,CAAhF2B,GAAgF,CAAhF,MAAgF,CAAhF,EAA+E,CAAC,CAAD,CAAC,CAAhFC,KAAgF,SAAhF,CAAAA,KAAgFA,CAAhFD,GAAgF,CAAhF,CAAA3B,eAAgF,CAAhF2B,GAAgF,CAAhF,OAAgF,CAAhF,EAA+E,CAAC,CAAD,EAAC,CArChFE,OAAA,CAAAC,IAAA,gNACAD,OAAA,CAAAC,IAAA","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='ConnectAccountOnboardingView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"ConnectAccountOnboardingView",directEventTypes:{topExitAction:{registrationName:"onExitAction"}},validAttributes:Object.assign({visible:true,title:true,backgroundColor:true,textColor:true},ConditionallyIgnoredEventHandlers({onExitAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativeConnectAccountOnboardingView.ts 3:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='ConnectAccountOnboardingView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"ConnectAccountOnboardingView",directEventTypes:{topExitAction:{registrationName:"onExitAction"}},validAttributes:Object.assign({visible:true,title:true,backgroundColor:true,textColor:true},ConditionallyIgnoredEventHandlers({onExitAction:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeConnectAccountOnboardingView.ts 3:0");
2
2
  //# sourceMappingURL=NativeConnectAccountOnboardingView.js.map
@@ -0,0 +1,2 @@
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='StripeCurrencySelectorElement';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"StripeCurrencySelectorElement",directEventTypes:{topHeightChange:{registrationName:"onHeightChange"}},validAttributes:Object.assign({sessionKey:true,disabled:true},ConditionallyIgnoredEventHandlers({onHeightChange:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeCurrencySelectorElement.ts 2:0");
2
+ //# sourceMappingURL=NativeCurrencySelectorElement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_codegenNativeComponent","_interopRequireDefault","require","NativeComponentRegistry","_require","ConditionallyIgnoredEventHandlers","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","directEventTypes","topHeightChange","registrationName","validAttributes","Object","assign","sessionKey","disabled","onHeightChange","_default","default","get","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeCurrencySelectorElement.ts"],"mappings":"kMACA,IAAAA,uBAAA,CAAAC,sBAAA,CAAAC,OAAA,6DA+BA,IAAAC,uBAEgC,CAFhCD,OAEgC,CAFhC,gEAE+B,CAAC,CAFhC,IAAAE,QAAA,CAAAF,OAEgC,CAFhC,yDAE+B,CAAC,CAFhCG,iCAEgC,CAAAD,QAAA,CAFhCC,iCAEgC,CAFhC,IAAAC,mBAEgC,CAFhC,+BAEgC,CAFhC,IAAAC,sBAEgC,CAAAC,OAAA,CAAAD,sBAAA,CAFhC,CAAAE,eAEgC,CAFhC,+BAEgC,CAFhCC,gBAEgC,CAFhC,CAAAC,eAEgC,CAFhC,CAAAC,gBAEgC,CAFhC,gBAE+B,EAAC,CAFhCC,eAEgC,CAAAC,MAAA,CAAAC,MAAA,EAFhCC,UAEgC,CAFhC,IAEgC,CAFhCC,QAEgC,CAFhC,IAEgC,EAFhCZ,iCAEgC,CAFhC,CAAAa,cAEgC,CAFhC,IAE+B,EAAC,CAAD,CAAC,KAAAC,QAAA,CAAAX,OAAA,CAAAY,OAAA,CAFhCjB,uBAEgC,CAFhCkB,GAEgC,CAFhCf,mBAEgC,CAFhC,kBAAAC,sBAEgC,EAAD,CAAC,CAjChCe,OAAA,CAAAC,IAAA","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require.dispatchCommand;var nativeComponentName='EmbeddedPaymentElementView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"EmbeddedPaymentElementView",validAttributes:{configuration:true,intentConfiguration:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={confirm:function confirm(ref){dispatchCommand(ref,"confirm",[]);},clearPaymentOption:function clearPaymentOption(ref){dispatchCommand(ref,"clearPaymentOption",[]);},update:function update(ref,intentConfigurationJson){dispatchCommand(ref,"update",[intentConfigurationJson]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativeEmbeddedPaymentElement.ts 2:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativeEmbeddedPaymentElement.ts 3:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=exports.Commands=void 0;var _codegenNativeCommands=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeCommands"));var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require("react-native/Libraries/ReactNative/RendererProxy"),dispatchCommand=_require.dispatchCommand;var nativeComponentName='EmbeddedPaymentElementView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"EmbeddedPaymentElementView",validAttributes:{configuration:true,intentConfiguration:true,checkout:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});var Commands=exports.Commands={confirm:function confirm(ref){dispatchCommand(ref,"confirm",[]);},clearPaymentOption:function clearPaymentOption(ref){dispatchCommand(ref,"clearPaymentOption",[]);},update:function update(ref,intentConfigurationJson){dispatchCommand(ref,"update",[intentConfigurationJson]);},updateWithCheckout:function updateWithCheckout(ref,sessionKey){dispatchCommand(ref,"updateWithCheckout",[sessionKey]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeEmbeddedPaymentElement.ts 2:0");console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeEmbeddedPaymentElement.ts 3:0");
2
2
  //# sourceMappingURL=NativeEmbeddedPaymentElement.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","validAttributes","configuration","intentConfiguration","_default","default","get","Commands","confirm","ref","clearPaymentOption","update","intentConfigurationJson","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeEmbeddedPaymentElement.ts"],"mappings":"mNACA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DA2BA,IAAAE,uBAEmB,CAFnBF,OAEmB,CAFnB,gEAEkB,CAAC,CAFnB,IAAAG,QAAA,CAAAH,OAEmB,CAFnB,kDAEkB,CAAC,CAFnBI,eAEmB,CAAAD,QAAA,CAFnBC,eAEmB,CAFnB,IAAAC,mBAEmB,CAFnB,4BAEmB,CAFnB,IAAAC,sBAEmB,CAAAC,OAAA,CAAAD,sBAAA,CAFnB,CAAAE,eAEmB,CAFnB,4BAEmB,CAFnBC,eAEmB,CAFnB,CAAAC,aAEmB,CAFnB,IAEmB,CAFnBC,mBAEmB,CAFnB,IAEkB,EAAC,KAAAC,QAAA,CAAAL,OAAA,CAAAM,OAAA,CAFnBX,uBAEmB,CAFnBY,GAEmB,CAFnBT,mBAEmB,CAFnB,kBAAAC,sBAEmB,EAAD,CAAC,CAFnB,IAAAS,QAEmB,CAAAR,OAAA,CAAAQ,QAAA,CAFnB,CAAAC,OAEmB,SAFnB,CAAAA,OAEmBA,CAFnBC,GAEmB,CAFnB,CAAAb,eAEmB,CAFnBa,GAEmB,CAFnB,SAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBC,kBAEmB,SAFnB,CAAAA,kBAEmBA,CAFnBD,GAEmB,CAFnB,CAAAb,eAEmB,CAFnBa,GAEmB,CAFnB,oBAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBE,MAEmB,SAFnB,CAAAA,MAEmBA,CAFnBF,GAEmB,CAFnBG,uBAEmB,CAFnB,CAAAhB,eAEmB,CAFnBa,GAEmB,CAFnB,QAEmB,CAFnB,CAAAG,uBAEmB,CAAD,CAAC,CAAD,EAAC,CA9BnBC,OAAA,CAAAC,IAAA,2NACAD,OAAA,CAAAC,IAAA","ignoreList":[]}
1
+ {"version":3,"names":["_codegenNativeCommands","_interopRequireDefault","require","_codegenNativeComponent","NativeComponentRegistry","_require","dispatchCommand","nativeComponentName","__INTERNAL_VIEW_CONFIG","exports","uiViewClassName","validAttributes","configuration","intentConfiguration","checkout","_default","default","get","Commands","confirm","ref","clearPaymentOption","update","intentConfigurationJson","updateWithCheckout","sessionKey","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeEmbeddedPaymentElement.ts"],"mappings":"mNACA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,6DAqCA,IAAAE,uBAEmB,CAFnBF,OAEmB,CAFnB,gEAEkB,CAAC,CAFnB,IAAAG,QAAA,CAAAH,OAEmB,CAFnB,kDAEkB,CAAC,CAFnBI,eAEmB,CAAAD,QAAA,CAFnBC,eAEmB,CAFnB,IAAAC,mBAEmB,CAFnB,4BAEmB,CAFnB,IAAAC,sBAEmB,CAAAC,OAAA,CAAAD,sBAAA,CAFnB,CAAAE,eAEmB,CAFnB,4BAEmB,CAFnBC,eAEmB,CAFnB,CAAAC,aAEmB,CAFnB,IAEmB,CAFnBC,mBAEmB,CAFnB,IAEmB,CAFnBC,QAEmB,CAFnB,IAEkB,EAAC,KAAAC,QAAA,CAAAN,OAAA,CAAAO,OAAA,CAFnBZ,uBAEmB,CAFnBa,GAEmB,CAFnBV,mBAEmB,CAFnB,kBAAAC,sBAEmB,EAAD,CAAC,CAFnB,IAAAU,QAEmB,CAAAT,OAAA,CAAAS,QAAA,CAFnB,CAAAC,OAEmB,SAFnB,CAAAA,OAEmBA,CAFnBC,GAEmB,CAFnB,CAAAd,eAEmB,CAFnBc,GAEmB,CAFnB,SAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBC,kBAEmB,SAFnB,CAAAA,kBAEmBA,CAFnBD,GAEmB,CAFnB,CAAAd,eAEmB,CAFnBc,GAEmB,CAFnB,oBAEmB,CAFnB,EAEkB,CAAC,CAAD,CAAC,CAFnBE,MAEmB,SAFnB,CAAAA,MAEmBA,CAFnBF,GAEmB,CAFnBG,uBAEmB,CAFnB,CAAAjB,eAEmB,CAFnBc,GAEmB,CAFnB,QAEmB,CAFnB,CAAAG,uBAEmB,CAAD,CAAC,CAAD,CAAC,CAFnBC,kBAEmB,SAFnB,CAAAA,kBAEmBA,CAFnBJ,GAEmB,CAFnBK,UAEmB,CAFnB,CAAAnB,eAEmB,CAFnBc,GAEmB,CAFnB,oBAEmB,CAFnB,CAAAK,UAEmB,CAAD,CAAC,CAAD,EAAC,CAxCnBC,OAAA,CAAAC,IAAA,8NACAD,OAAA,CAAAC,IAAA","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='GooglePayButton';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"GooglePayButton",validAttributes:{type:true,appearance:true,borderRadius:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativeGooglePayButton.ts 6:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='GooglePayButton';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"GooglePayButton",validAttributes:{type:true,appearance:true,borderRadius:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeGooglePayButton.ts 6:0");
2
2
  //# sourceMappingURL=NativeGooglePayButton.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='NavigationBar';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"NavigationBar",directEventTypes:{topCloseButtonPress:{registrationName:"onCloseButtonPress"}},validAttributes:Object.assign({title:true},ConditionallyIgnoredEventHandlers({onCloseButtonPress:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativeNavigationBar.ts 3:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var _require=require('react-native/Libraries/NativeComponent/ViewConfigIgnore'),ConditionallyIgnoredEventHandlers=_require.ConditionallyIgnoredEventHandlers;var nativeComponentName='NavigationBar';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"NavigationBar",directEventTypes:{topCloseButtonPress:{registrationName:"onCloseButtonPress"}},validAttributes:Object.assign({title:true},ConditionallyIgnoredEventHandlers({onCloseButtonPress:true}))};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeNavigationBar.ts 3:0");
2
2
  //# sourceMappingURL=NativeNavigationBar.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["specs/NativeOnrampSdkModule.ts"],"mappings":"gFAAA,IAAAA,YAAA,CAAAC,OAAA,iBAAmD,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CA6CpCC,gCAAmB,CAACC,GAAG,CAAO,WAAW,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","get"],"sourceRoot":"../../../src","sources":["specs/NativeOnrampSdkModule.ts"],"mappings":"gFAAA,IAAAA,YAAA,CAAAC,OAAA,iBAAmD,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAkDpCC,gCAAmB,CAACC,GAAG,CAAO,WAAW,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='PaymentMethodMessagingElementView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"PaymentMethodMessagingElementView",validAttributes:{appearance:true,configuration:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativePaymentMethodMessagingElement.ts 2:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='PaymentMethodMessagingElementView';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"PaymentMethodMessagingElementView",validAttributes:{appearance:true,configuration:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativePaymentMethodMessagingElement.ts 2:0");
2
2
  //# sourceMappingURL=NativePaymentMethodMessagingElement.js.map
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='StripeContainer';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"StripeContainer",validAttributes:{keyboardShouldPersistTaps:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/cttsai/stripe/stripe-react-native/src/specs/NativeStripeContainer.ts 2:0");
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=exports.__INTERNAL_VIEW_CONFIG=void 0;var _codegenNativeComponent=_interopRequireDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));var NativeComponentRegistry=require('react-native/Libraries/NativeComponent/NativeComponentRegistry');var nativeComponentName='StripeContainer';var __INTERNAL_VIEW_CONFIG=exports.__INTERNAL_VIEW_CONFIG={uiViewClassName:"StripeContainer",validAttributes:{keyboardShouldPersistTaps:true}};var _default=exports.default=NativeComponentRegistry.get(nativeComponentName,function(){return __INTERNAL_VIEW_CONFIG;});console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeComponent'). Source: /Users/tjclawson/stripe/stripe-react-native/src/specs/NativeStripeContainer.ts 2:0");
2
2
  //# sourceMappingURL=NativeStripeContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeStripeSdkModule.ts"],"mappings":"gFAAA,IAAAA,YAAA,CAAAC,OAAA,iBAAmD,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAwRpCC,gCAAmB,CAACC,YAAY,CAAO,WAAW,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_default","exports","default","TurboModuleRegistry","getEnforcing"],"sourceRoot":"../../../src","sources":["specs/NativeStripeSdkModule.ts"],"mappings":"gFAAA,IAAAA,YAAA,CAAAC,OAAA,iBAAmD,IAAAC,QAAA,CAAAC,OAAA,CAAAC,OAAA,CAsSpCC,gCAAmB,CAACC,YAAY,CAAO,WAAW,CAAC","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.useEmbeddedPaymentElement=useEmbeddedPaymentElement;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _reactNative=require("react-native");var _NativeStripeSdkModule=_interopRequireDefault(require("../specs/NativeStripeSdkModule"));var _react=_interopRequireWildcard(require("react"));var _events=require("../events");var _NativeEmbeddedPaymentElement=_interopRequireWildcard(require("../specs/NativeEmbeddedPaymentElement"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/cttsai/stripe/stripe-react-native/src/types/EmbeddedPaymentElement.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var EmbeddedPaymentElement=function(){function EmbeddedPaymentElement(){(0,_classCallCheck2.default)(this,EmbeddedPaymentElement);}return(0,_createClass2.default)(EmbeddedPaymentElement,[{key:"update",value:(function(){var _update=(0,_asyncToGenerator2.default)(function*(intentConfig){var result=yield _NativeStripeSdkModule.default.updateEmbeddedPaymentElement(intentConfig);return result;});function update(_x){return _update.apply(this,arguments);}return update;}())},{key:"confirm",value:(function(){var _confirm=(0,_asyncToGenerator2.default)(function*(){var result=yield _NativeStripeSdkModule.default.confirmEmbeddedPaymentElement(-1);return result;});function confirm(){return _confirm.apply(this,arguments);}return confirm;}())},{key:"clearPaymentOption",value:function clearPaymentOption(){_NativeStripeSdkModule.default.clearEmbeddedPaymentOption(-1);}}]);}();var confirmHandlerCallback=null;var confirmationTokenHandlerCallback=null;var formSheetActionConfirmCallback=null;var customPaymentMethodConfirmCallback=null;var rowSelectionCallback=null;function createEmbeddedPaymentElement(_x2,_x3){return _createEmbeddedPaymentElement.apply(this,arguments);}function _createEmbeddedPaymentElement(){_createEmbeddedPaymentElement=(0,_asyncToGenerator2.default)(function*(intentConfig,configuration){setupConfirmAndSelectionHandlers(intentConfig,configuration);yield _NativeStripeSdkModule.default.createEmbeddedPaymentElement(intentConfig,configuration);return new EmbeddedPaymentElement();});return _createEmbeddedPaymentElement.apply(this,arguments);}function setupConfirmAndSelectionHandlers(intentConfig,configuration){var _configuration$formSh,_configuration$rowSel;var confirmHandler=intentConfig.confirmHandler;if(confirmHandler){var _confirmHandlerCallba;(_confirmHandlerCallba=confirmHandlerCallback)==null||_confirmHandlerCallba.remove();confirmHandlerCallback=(0,_events.addListener)('onConfirmHandlerCallback',function(_ref){var paymentMethod=_ref.paymentMethod,shouldSavePaymentMethod=_ref.shouldSavePaymentMethod;confirmHandler(paymentMethod,shouldSavePaymentMethod,_NativeStripeSdkModule.default.intentCreationCallback);});}var confirmationTokenConfirmHandler=intentConfig.confirmationTokenConfirmHandler;if(confirmationTokenConfirmHandler){var _confirmationTokenHan;(_confirmationTokenHan=confirmationTokenHandlerCallback)==null||_confirmationTokenHan.remove();confirmationTokenHandlerCallback=(0,_events.addListener)('onConfirmationTokenHandlerCallback',function(_ref2){var confirmationToken=_ref2.confirmationToken;confirmationTokenConfirmHandler(confirmationToken,_NativeStripeSdkModule.default.confirmationTokenCreationCallback);});}if(((_configuration$formSh=configuration.formSheetAction)==null?void 0:_configuration$formSh.type)==='confirm'){var confirmFormSheetHandler=configuration.formSheetAction.onFormSheetConfirmComplete;if(confirmFormSheetHandler){var _formSheetActionConfi;(_formSheetActionConfi=formSheetActionConfirmCallback)==null||_formSheetActionConfi.remove();formSheetActionConfirmCallback=(0,_events.addListener)('embeddedPaymentElementFormSheetConfirmComplete',function(result){confirmFormSheetHandler(result);});}}if(configuration.customPaymentMethodConfiguration){var customPaymentMethodHandler=configuration.customPaymentMethodConfiguration.confirmCustomPaymentMethodCallback;if(customPaymentMethodHandler){var _customPaymentMethodC;(_customPaymentMethodC=customPaymentMethodConfirmCallback)==null||_customPaymentMethodC.remove();customPaymentMethodConfirmCallback=(0,_events.addListener)('onCustomPaymentMethodConfirmHandlerCallback',function(_ref3){var customPaymentMethod=_ref3.customPaymentMethod,billingDetails=_ref3.billingDetails;customPaymentMethodHandler(customPaymentMethod,billingDetails,function(result){_NativeStripeSdkModule.default.customPaymentMethodResultCallback(result);});});}}if(((_configuration$rowSel=configuration.rowSelectionBehavior)==null?void 0:_configuration$rowSel.type)==='immediateAction'){var rowSelectionHandler=configuration.rowSelectionBehavior.onSelectPaymentOption;if(rowSelectionHandler){var _rowSelectionCallback;(_rowSelectionCallback=rowSelectionCallback)==null||_rowSelectionCallback.remove();rowSelectionCallback=(0,_events.addListener)('embeddedPaymentElementRowSelectionImmediateAction',function(){rowSelectionHandler();});}}}function useEmbeddedPaymentElement(intentConfig,configuration){var _this=this;var isAndroid=_reactNative.Platform.OS==='android';var elementRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),element=_useState2[0],setElement=_useState2[1];var _useState3=(0,_react.useState)(null),_useState4=(0,_slicedToArray2.default)(_useState3,2),paymentOption=_useState4[0],setPaymentOption=_useState4[1];var _useState5=(0,_react.useState)(),_useState6=(0,_slicedToArray2.default)(_useState5,2),height=_useState6[0],setHeight=_useState6[1];var viewRef=(0,_react.useRef)(null);var _useState7=(0,_react.useState)(null),_useState8=(0,_slicedToArray2.default)(_useState7,2),loadingError=_useState8[0],setLoadingError=_useState8[1];var isLoaded=(0,_react.useMemo)(function(){return height!==undefined&&height>1;},[height]);function getElementOrThrow(ref){if(!ref.current){throw new Error('EmbeddedPaymentElement is not ready yet – wait until it finishes loading before calling this API.');}return ref.current;}(0,_react.useEffect)(function(){var active=true;(0,_asyncToGenerator2.default)(function*(){var el=yield createEmbeddedPaymentElement(intentConfig,configuration);if(!active)return;elementRef.current=el;setElement(el);})();return function(){active=false;elementRef.current=null;setElement(null);};},[intentConfig,configuration,viewRef,isAndroid]);(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementDidUpdatePaymentOption',function(_ref5){var opt=_ref5.paymentOption;return setPaymentOption(opt!=null?opt:null);});return function(){return sub.remove();};});(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementDidUpdateHeight',function(_ref6){var h=_ref6.height;if(h>0||isAndroid&&h===0){_reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut);setHeight(h);}});return function(){return sub.remove();};},[isAndroid]);(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementLoadingFailed',function(nativeError){setLoadingError(new Error(nativeError.message));});return function(){return sub.remove();};},[]);var embeddedPaymentElementView=(0,_react.useMemo)(function(){if(isAndroid&&configuration&&intentConfig){return(0,_jsxRuntime.jsx)(_NativeEmbeddedPaymentElement.default,{ref:viewRef,style:[{width:'100%',height:height}],configuration:configuration,intentConfiguration:intentConfig});}if(!element)return null;return(0,_jsxRuntime.jsx)(_NativeEmbeddedPaymentElement.default,{ref:viewRef,style:{width:'100%',height:height},configuration:configuration,intentConfiguration:intentConfig});},[configuration,element,height,intentConfig,isAndroid]);var confirm=(0,_react.useCallback)(function(){var currentRef=viewRef.current;if(isAndroid){if(currentRef){var promise=new Promise(function(resolve){var sub=(0,_events.addListener)('embeddedPaymentElementFormSheetConfirmComplete',function(result){sub.remove();resolve(result);});});_NativeEmbeddedPaymentElement.Commands.confirm(currentRef);return promise;}else{return Promise.reject(new Error('Unable to find Android embedded payment element view!'));}}return getElementOrThrow(elementRef).confirm();},[isAndroid]);var update=(0,_react.useCallback)(function(cfg){if(isAndroid){var currentRef=viewRef.current;if(currentRef){return new Promise(function(resolve){var sub=(0,_events.addListener)('embeddedPaymentElementUpdateComplete',function(result){sub.remove();resolve(result);});_NativeEmbeddedPaymentElement.Commands.update(currentRef,JSON.stringify(cfg));});}return Promise.reject(new Error('Unable to find Android embedded payment element view!'));}return getElementOrThrow(elementRef).update(cfg);},[isAndroid]);var clearPaymentOption=(0,_react.useCallback)(function(){if(isAndroid){var tag=(0,_reactNative.findNodeHandle)(viewRef.current);if(tag==null){return Promise.reject(new Error('Unable to find Android view handle'));}return _NativeStripeSdkModule.default.clearEmbeddedPaymentOption(tag);}getElementOrThrow(elementRef).clearPaymentOption();return Promise.resolve();},[isAndroid]);return{embeddedPaymentElementView:embeddedPaymentElementView,paymentOption:paymentOption,confirm:confirm,update:update,clearPaymentOption:clearPaymentOption,loadingError:loadingError,isLoaded:isLoaded};}
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.useEmbeddedPaymentElement=useEmbeddedPaymentElement;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _reactNative=require("react-native");var _NativeStripeSdkModule=_interopRequireDefault(require("../specs/NativeStripeSdkModule"));var _react=_interopRequireWildcard(require("react"));var _events=require("../events");var _NativeEmbeddedPaymentElement=_interopRequireWildcard(require("../specs/NativeEmbeddedPaymentElement"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/tjclawson/stripe/stripe-react-native/src/types/EmbeddedPaymentElement.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var isCheckoutSession=function isCheckoutSession(value){return typeof value==='object'&&value!==null&&'sessionKey'in value&&!('mode'in value);};var EmbeddedPaymentElement=function(){function EmbeddedPaymentElement(){(0,_classCallCheck2.default)(this,EmbeddedPaymentElement);}return(0,_createClass2.default)(EmbeddedPaymentElement,[{key:"updateIntent",value:(function(){var _updateIntent=(0,_asyncToGenerator2.default)(function*(intentConfig){return yield _NativeStripeSdkModule.default.updateEmbeddedPaymentElement(intentConfig);});function updateIntent(_x){return _updateIntent.apply(this,arguments);}return updateIntent;}())},{key:"updateCheckout",value:function(){var _updateCheckout=(0,_asyncToGenerator2.default)(function*(checkout){return yield _NativeStripeSdkModule.default.updateEmbeddedPaymentElementWithCheckout(checkout.sessionKey);});function updateCheckout(_x2){return _updateCheckout.apply(this,arguments);}return updateCheckout;}()},{key:"confirm",value:(function(){var _confirm=(0,_asyncToGenerator2.default)(function*(){var result=yield _NativeStripeSdkModule.default.confirmEmbeddedPaymentElement(-1);return result;});function confirm(){return _confirm.apply(this,arguments);}return confirm;}())},{key:"clearPaymentOption",value:function clearPaymentOption(){_NativeStripeSdkModule.default.clearEmbeddedPaymentOption(-1);}}]);}();var confirmHandlerCallback=null;var confirmationTokenHandlerCallback=null;var formSheetActionConfirmCallback=null;var customPaymentMethodConfirmCallback=null;var rowSelectionCallback=null;function createEmbeddedPaymentElement(_x3,_x4){return _createEmbeddedPaymentElement.apply(this,arguments);}function _createEmbeddedPaymentElement(){_createEmbeddedPaymentElement=(0,_asyncToGenerator2.default)(function*(intent,configuration){setupConfigurationHandlers(configuration);if(isCheckoutSession(intent)){yield _NativeStripeSdkModule.default.createEmbeddedPaymentElementWithCheckout(intent.sessionKey,configuration);}else{setupIntentConfirmHandlers(intent);yield _NativeStripeSdkModule.default.createEmbeddedPaymentElement(intent,configuration);}return new EmbeddedPaymentElement();});return _createEmbeddedPaymentElement.apply(this,arguments);}function setupIntentConfirmHandlers(intentConfig){var confirmHandler=intentConfig.confirmHandler;if(confirmHandler){var _confirmHandlerCallba;(_confirmHandlerCallba=confirmHandlerCallback)==null||_confirmHandlerCallba.remove();confirmHandlerCallback=(0,_events.addListener)('onConfirmHandlerCallback',function(_ref){var paymentMethod=_ref.paymentMethod,shouldSavePaymentMethod=_ref.shouldSavePaymentMethod;confirmHandler(paymentMethod,shouldSavePaymentMethod,_NativeStripeSdkModule.default.intentCreationCallback);});}var confirmationTokenConfirmHandler=intentConfig.confirmationTokenConfirmHandler;if(confirmationTokenConfirmHandler){var _confirmationTokenHan;(_confirmationTokenHan=confirmationTokenHandlerCallback)==null||_confirmationTokenHan.remove();confirmationTokenHandlerCallback=(0,_events.addListener)('onConfirmationTokenHandlerCallback',function(_ref2){var confirmationToken=_ref2.confirmationToken;confirmationTokenConfirmHandler(confirmationToken,_NativeStripeSdkModule.default.confirmationTokenCreationCallback);});}}function setupConfigurationHandlers(configuration){var _configuration$formSh,_configuration$rowSel;if(((_configuration$formSh=configuration.formSheetAction)==null?void 0:_configuration$formSh.type)==='confirm'){var confirmFormSheetHandler=configuration.formSheetAction.onFormSheetConfirmComplete;if(confirmFormSheetHandler){var _formSheetActionConfi;(_formSheetActionConfi=formSheetActionConfirmCallback)==null||_formSheetActionConfi.remove();formSheetActionConfirmCallback=(0,_events.addListener)('embeddedPaymentElementFormSheetConfirmComplete',function(result){confirmFormSheetHandler(result);});}}if(configuration.customPaymentMethodConfiguration){var customPaymentMethodHandler=configuration.customPaymentMethodConfiguration.confirmCustomPaymentMethodCallback;if(customPaymentMethodHandler){var _customPaymentMethodC;(_customPaymentMethodC=customPaymentMethodConfirmCallback)==null||_customPaymentMethodC.remove();customPaymentMethodConfirmCallback=(0,_events.addListener)('onCustomPaymentMethodConfirmHandlerCallback',function(_ref3){var customPaymentMethod=_ref3.customPaymentMethod,billingDetails=_ref3.billingDetails;customPaymentMethodHandler(customPaymentMethod,billingDetails,function(result){_NativeStripeSdkModule.default.customPaymentMethodResultCallback(result);});});}}if(((_configuration$rowSel=configuration.rowSelectionBehavior)==null?void 0:_configuration$rowSel.type)==='immediateAction'){var rowSelectionHandler=configuration.rowSelectionBehavior.onSelectPaymentOption;if(rowSelectionHandler){var _rowSelectionCallback;(_rowSelectionCallback=rowSelectionCallback)==null||_rowSelectionCallback.remove();rowSelectionCallback=(0,_events.addListener)('embeddedPaymentElementRowSelectionImmediateAction',function(){rowSelectionHandler();});}}}function useEmbeddedPaymentElement(intent,configuration){var _this=this;var isAndroid=_reactNative.Platform.OS==='android';var elementRef=(0,_react.useRef)(null);var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),element=_useState2[0],setElement=_useState2[1];var _useState3=(0,_react.useState)(null),_useState4=(0,_slicedToArray2.default)(_useState3,2),paymentOption=_useState4[0],setPaymentOption=_useState4[1];var _useState5=(0,_react.useState)(),_useState6=(0,_slicedToArray2.default)(_useState5,2),height=_useState6[0],setHeight=_useState6[1];var viewRef=(0,_react.useRef)(null);var _useState7=(0,_react.useState)(null),_useState8=(0,_slicedToArray2.default)(_useState7,2),loadingError=_useState8[0],setLoadingError=_useState8[1];var isLoaded=(0,_react.useMemo)(function(){return height!==undefined&&height>1;},[height]);function getElementOrThrow(ref){if(!ref.current){throw new Error('EmbeddedPaymentElement is not ready yet – wait until it finishes loading before calling this API.');}return ref.current;}var intentKey=isCheckoutSession(intent)?intent.sessionKey:intent;var intentRef=(0,_react.useRef)(intent);intentRef.current=intent;(0,_react.useEffect)(function(){var active=true;(0,_asyncToGenerator2.default)(function*(){var el=yield createEmbeddedPaymentElement(intentRef.current,configuration);if(!active)return;elementRef.current=el;setElement(el);})();return function(){active=false;elementRef.current=null;setElement(null);};},[intentKey,configuration,viewRef,isAndroid]);(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementDidUpdatePaymentOption',function(_ref5){var opt=_ref5.paymentOption;return setPaymentOption(opt!=null?opt:null);});return function(){return sub.remove();};});(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementDidUpdateHeight',function(_ref6){var h=_ref6.height;if(h>0||isAndroid&&h===0){_reactNative.LayoutAnimation.configureNext(_reactNative.LayoutAnimation.Presets.easeInEaseOut);setHeight(h);}});return function(){return sub.remove();};},[isAndroid]);(0,_react.useEffect)(function(){var sub=(0,_events.addListener)('embeddedPaymentElementLoadingFailed',function(nativeError){setLoadingError(new Error(nativeError.message));});return function(){return sub.remove();};},[]);var embeddedPaymentElementView=(0,_react.useMemo)(function(){var intentProps=typeof intentKey==='string'?{checkout:{sessionKey:intentKey}}:{intentConfiguration:intentKey};if(isAndroid&&configuration&&intentKey){return(0,_jsxRuntime.jsx)(_NativeEmbeddedPaymentElement.default,Object.assign({ref:viewRef,style:[{width:'100%',height:height}],configuration:configuration},intentProps));}if(!element)return null;return(0,_jsxRuntime.jsx)(_NativeEmbeddedPaymentElement.default,Object.assign({ref:viewRef,style:{width:'100%',height:height},configuration:configuration},intentProps));},[configuration,element,height,intentKey,isAndroid]);var confirm=(0,_react.useCallback)(function(){var currentRef=viewRef.current;if(isAndroid){if(currentRef){var promise=new Promise(function(resolve){var sub=(0,_events.addListener)('embeddedPaymentElementFormSheetConfirmComplete',function(result){sub.remove();resolve(result);});});_NativeEmbeddedPaymentElement.Commands.confirm(currentRef);return promise;}else{return Promise.reject(new Error('Unable to find Android embedded payment element view!'));}}return getElementOrThrow(elementRef).confirm();},[isAndroid]);var update=(0,_react.useCallback)(function(updateSource){if(isAndroid){var currentRef=viewRef.current;if(currentRef){return new Promise(function(resolve){var sub=(0,_events.addListener)('embeddedPaymentElementUpdateComplete',function(result){sub.remove();resolve(result);});if(isCheckoutSession(updateSource)){_NativeEmbeddedPaymentElement.Commands.updateWithCheckout(currentRef,updateSource.sessionKey);}else{_NativeEmbeddedPaymentElement.Commands.update(currentRef,JSON.stringify(updateSource));}});}return Promise.reject(new Error('Unable to find Android embedded payment element view!'));}var embeddedElement=getElementOrThrow(elementRef);return isCheckoutSession(updateSource)?embeddedElement.updateCheckout(updateSource):embeddedElement.updateIntent(updateSource);},[isAndroid]);var clearPaymentOption=(0,_react.useCallback)(function(){if(isAndroid){var tag=(0,_reactNative.findNodeHandle)(viewRef.current);if(tag==null){return Promise.reject(new Error('Unable to find Android view handle'));}return _NativeStripeSdkModule.default.clearEmbeddedPaymentOption(tag);}getElementOrThrow(elementRef).clearPaymentOption();return Promise.resolve();},[isAndroid]);return{embeddedPaymentElementView:embeddedPaymentElementView,paymentOption:paymentOption,confirm:confirm,update:update,clearPaymentOption:clearPaymentOption,loadingError:loadingError,isLoaded:isLoaded};}
2
2
  //# sourceMappingURL=EmbeddedPaymentElement.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_NativeStripeSdkModule","_interopRequireDefault","_react","_interopRequireWildcard","_events","_NativeEmbeddedPaymentElement","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","EmbeddedPaymentElement","_classCallCheck2","_createClass2","key","value","_update","_asyncToGenerator2","intentConfig","result","NativeStripeSdkModule","updateEmbeddedPaymentElement","update","_x","apply","arguments","_confirm","confirmEmbeddedPaymentElement","confirm","clearPaymentOption","clearEmbeddedPaymentOption","confirmHandlerCallback","confirmationTokenHandlerCallback","formSheetActionConfirmCallback","customPaymentMethodConfirmCallback","rowSelectionCallback","createEmbeddedPaymentElement","_x2","_x3","_createEmbeddedPaymentElement","configuration","setupConfirmAndSelectionHandlers","_configuration$formSh","_configuration$rowSel","confirmHandler","_confirmHandlerCallba","remove","addListener","_ref","paymentMethod","shouldSavePaymentMethod","intentCreationCallback","confirmationTokenConfirmHandler","_confirmationTokenHan","_ref2","confirmationToken","confirmationTokenCreationCallback","formSheetAction","type","confirmFormSheetHandler","onFormSheetConfirmComplete","_formSheetActionConfi","customPaymentMethodConfiguration","customPaymentMethodHandler","confirmCustomPaymentMethodCallback","_customPaymentMethodC","_ref3","customPaymentMethod","billingDetails","customPaymentMethodResultCallback","rowSelectionBehavior","rowSelectionHandler","onSelectPaymentOption","_rowSelectionCallback","useEmbeddedPaymentElement","_this","isAndroid","Platform","OS","elementRef","useRef","_useState","useState","_useState2","_slicedToArray2","element","setElement","_useState3","_useState4","paymentOption","setPaymentOption","_useState5","_useState6","height","setHeight","viewRef","_useState7","_useState8","loadingError","setLoadingError","isLoaded","useMemo","undefined","getElementOrThrow","ref","current","Error","useEffect","active","el","sub","_ref5","opt","_ref6","h","LayoutAnimation","configureNext","Presets","easeInEaseOut","nativeError","message","embeddedPaymentElementView","jsx","style","width","intentConfiguration","useCallback","currentRef","promise","Promise","resolve","Commands","reject","cfg","JSON","stringify","tag","findNodeHandle"],"sourceRoot":"../../../src","sources":["types/EmbeddedPaymentElement.tsx"],"mappings":"4jBACA,IAAAA,YAAA,CAAAC,OAAA,iBAgBA,IAAAC,sBAAA,CAAAC,sBAAA,CAAAF,OAAA,oCACA,IAAAG,MAAA,CAAAC,uBAAA,CAAAJ,OAAA,WAUA,IAAAK,OAAA,CAAAL,OAAA,cACA,IAAAM,6BAAA,CAAAF,uBAAA,CAAAJ,OAAA,2CAG+C,IAAAO,WAAA,CAAAP,OAAA,0BAAAQ,YAAA,0FAAAJ,wBAAAK,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAP,uBAAA,UAAAA,wBAAAK,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,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,GAAIlD,SAAS,CAAE,CACb,GAAM,CAAA4D,GAAG,CAAG,GAAAC,2BAAc,EAAC1C,OAAO,CAACU,OAAO,CAAC,CAC3C,GAAI+B,GAAG,EAAI,IAAI,CAAE,CACf,MAAO,CAAAP,OAAO,CAACG,MAAM,CAAC,GAAI,CAAA1B,KAAK,CAAC,oCAAoC,CAAC,CAAC,CACxE,CACA,MAAO,CAAAtF,8BAAqB,CAACU,0BAA0B,CAAC0G,GAAG,CAAC,CAC9D,CAGAjC,iBAAiB,CAACxB,UAAU,CAAC,CAAClD,kBAAkB,CAAC,CAAC,CAClD,MAAO,CAAAoG,OAAO,CAACC,OAAO,CAAC,CAAC,CAC1B,CAAC,CAAE,CAACtD,SAAS,CAAC,CAAC,CAEf,MAAO,CACL6C,0BAA0B,CAA1BA,0BAA0B,CAC1BhC,aAAa,CAAbA,aAAa,CACb7D,OAAO,CAAPA,OAAO,CACPN,MAAM,CAANA,MAAM,CACNO,kBAAkB,CAAlBA,kBAAkB,CAClBqE,YAAY,CAAZA,YAAY,CACZE,QAAQ,CAARA,QACF,CAAC,CACH","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_NativeStripeSdkModule","_interopRequireDefault","_react","_interopRequireWildcard","_events","_NativeEmbeddedPaymentElement","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","isCheckoutSession","value","EmbeddedPaymentElement","_classCallCheck2","_createClass2","key","_updateIntent","_asyncToGenerator2","intentConfig","NativeStripeSdkModule","updateEmbeddedPaymentElement","updateIntent","_x","apply","arguments","_updateCheckout","checkout","updateEmbeddedPaymentElementWithCheckout","sessionKey","updateCheckout","_x2","_confirm","result","confirmEmbeddedPaymentElement","confirm","clearPaymentOption","clearEmbeddedPaymentOption","confirmHandlerCallback","confirmationTokenHandlerCallback","formSheetActionConfirmCallback","customPaymentMethodConfirmCallback","rowSelectionCallback","createEmbeddedPaymentElement","_x3","_x4","_createEmbeddedPaymentElement","intent","configuration","setupConfigurationHandlers","createEmbeddedPaymentElementWithCheckout","setupIntentConfirmHandlers","confirmHandler","_confirmHandlerCallba","remove","addListener","_ref","paymentMethod","shouldSavePaymentMethod","intentCreationCallback","confirmationTokenConfirmHandler","_confirmationTokenHan","_ref2","confirmationToken","confirmationTokenCreationCallback","_configuration$formSh","_configuration$rowSel","formSheetAction","type","confirmFormSheetHandler","onFormSheetConfirmComplete","_formSheetActionConfi","customPaymentMethodConfiguration","customPaymentMethodHandler","confirmCustomPaymentMethodCallback","_customPaymentMethodC","_ref3","customPaymentMethod","billingDetails","customPaymentMethodResultCallback","rowSelectionBehavior","rowSelectionHandler","onSelectPaymentOption","_rowSelectionCallback","useEmbeddedPaymentElement","_this","isAndroid","Platform","OS","elementRef","useRef","_useState","useState","_useState2","_slicedToArray2","element","setElement","_useState3","_useState4","paymentOption","setPaymentOption","_useState5","_useState6","height","setHeight","viewRef","_useState7","_useState8","loadingError","setLoadingError","isLoaded","useMemo","undefined","getElementOrThrow","ref","current","Error","intentKey","intentRef","useEffect","active","el","sub","_ref5","opt","_ref6","h","LayoutAnimation","configureNext","Presets","easeInEaseOut","nativeError","message","embeddedPaymentElementView","intentProps","intentConfiguration","jsx","assign","style","width","useCallback","currentRef","promise","Promise","resolve","Commands","reject","update","updateSource","updateWithCheckout","JSON","stringify","embeddedElement","tag","findNodeHandle"],"sourceRoot":"../../../src","sources":["types/EmbeddedPaymentElement.tsx"],"mappings":"4jBACA,IAAAA,YAAA,CAAAC,OAAA,iBAiBA,IAAAC,sBAAA,CAAAC,sBAAA,CAAAF,OAAA,oCACA,IAAAG,MAAA,CAAAC,uBAAA,CAAAJ,OAAA,WAUA,IAAAK,OAAA,CAAAL,OAAA,cACA,IAAAM,6BAAA,CAAAF,uBAAA,CAAAJ,OAAA,2CAG+C,IAAAO,WAAA,CAAAP,OAAA,0BAAAQ,YAAA,6FAAAJ,wBAAAK,CAAA,CA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AAuD,CACnE,CAAC,CACH,CAGA,GAAM,CAAAoC,eAAe,CAAGvC,iBAAiB,CAACxB,UAAU,CAAC,CACrD,MAAO,CAAA9E,iBAAiB,CAACyI,YAAY,CAAC,CAClCI,eAAe,CAAC1H,cAAc,CAACsH,YAAY,CAAC,CAC5CI,eAAe,CAAClI,YAAY,CAAC8H,YAAY,CAAC,CAChD,CAAC,CACD,CAAC9D,SAAS,CACZ,CAAC,CACD,GAAM,CAAAlD,kBAAkB,CAAG,GAAAwG,kBAAW,EAAC,UAAqB,CAC1D,GAAItD,SAAS,CAAE,CACb,GAAM,CAAAmE,GAAG,CAAG,GAAAC,2BAAc,EAACjD,OAAO,CAACU,OAAO,CAAC,CAC3C,GAAIsC,GAAG,EAAI,IAAI,CAAE,CACf,MAAO,CAAAV,OAAO,CAACG,MAAM,CAAC,GAAI,CAAA9B,KAAK,CAAC,oCAAoC,CAAC,CAAC,CACxE,CACA,MAAO,CAAAhG,8BAAqB,CAACiB,0BAA0B,CAACoH,GAAG,CAAC,CAC9D,CAGAxC,iBAAiB,CAACxB,UAAU,CAAC,CAACrD,kBAAkB,CAAC,CAAC,CAClD,MAAO,CAAA2G,OAAO,CAACC,OAAO,CAAC,CAAC,CAC1B,CAAC,CAAE,CAAC1D,SAAS,CAAC,CAAC,CAEf,MAAO,CACL+C,0BAA0B,CAA1BA,0BAA0B,CAC1BlC,aAAa,CAAbA,aAAa,CACbhE,OAAO,CAAPA,OAAO,CACPgH,MAAM,CAANA,MAAM,CACN/G,kBAAkB,CAAlBA,kBAAkB,CAClBwE,YAAY,CAAZA,YAAY,CACZE,QAAQ,CAARA,QACF,CAAC,CACH","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.AddToWalletButton=AddToWalletButton;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _NativeAddToWalletButton=_interopRequireDefault(require("../specs/NativeAddToWalletButton"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/cttsai/stripe/stripe-react-native/src/components/AddToWalletButton.tsx";var _excluded=["onComplete"];function AddToWalletButton(_ref){var onComplete=_ref.onComplete,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeAddToWalletButton.default,Object.assign({},props,{onCompleteAction:function onCompleteAction(value){return onComplete(value.nativeEvent);}}));}
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.AddToWalletButton=AddToWalletButton;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _NativeAddToWalletButton=_interopRequireDefault(require("../specs/NativeAddToWalletButton"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/tjclawson/stripe/stripe-react-native/src/components/AddToWalletButton.tsx";var _excluded=["onComplete"];function AddToWalletButton(_ref){var onComplete=_ref.onComplete,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeAddToWalletButton.default,Object.assign({},props,{onCompleteAction:function onCompleteAction(value){return onComplete(value.nativeEvent);}}));}
2
2
  //# sourceMappingURL=AddToWalletButton.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_NativeAddToWalletButton","_jsxRuntime","_jsxFileName","_excluded","AddToWalletButton","_ref","onComplete","props","_objectWithoutProperties2","default","jsx","Object","assign","onCompleteAction","value","nativeEvent"],"sourceRoot":"../../../src","sources":["components/AddToWalletButton.tsx"],"mappings":"wSAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAcA,IAAAC,wBAAA,CAAAF,sBAAA,CAAAC,OAAA,sCAAuE,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,qFAAAC,SAAA,gBAgEhE,QAAS,CAAAC,iBAAiBA,CAAAC,IAAA,CAAkC,IAA/B,CAAAC,UAAU,CAAAD,IAAA,CAAVC,UAAU,CAAKC,KAAK,IAAAC,yBAAA,CAAAC,OAAA,EAAAJ,IAAA,CAAAF,SAAA,EACtD,MACE,GAAAF,WAAA,CAAAS,GAAA,EAACV,wBAAA,CAAAS,OAAuB,CAAAE,MAAA,CAAAC,MAAA,IAClBL,KAAK,EACTM,gBAAgB,CAAE,QAAlB,CAAAA,gBAAgBA,CACdC,KAEE,QACC,CAAAR,UAAU,CAACQ,KAAK,CAACC,WAAW,CAAC,EAAC,EACpC,CAAC,CAEN","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_NativeAddToWalletButton","_jsxRuntime","_jsxFileName","_excluded","AddToWalletButton","_ref","onComplete","props","_objectWithoutProperties2","default","jsx","Object","assign","onCompleteAction","value","nativeEvent"],"sourceRoot":"../../../src","sources":["components/AddToWalletButton.tsx"],"mappings":"wSAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAcA,IAAAC,wBAAA,CAAAF,sBAAA,CAAAC,OAAA,sCAAuE,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,wFAAAC,SAAA,gBAgEhE,QAAS,CAAAC,iBAAiBA,CAAAC,IAAA,CAAkC,IAA/B,CAAAC,UAAU,CAAAD,IAAA,CAAVC,UAAU,CAAKC,KAAK,IAAAC,yBAAA,CAAAC,OAAA,EAAAJ,IAAA,CAAAF,SAAA,EACtD,MACE,GAAAF,WAAA,CAAAS,GAAA,EAACV,wBAAA,CAAAS,OAAuB,CAAAE,MAAA,CAAAC,MAAA,IAClBL,KAAK,EACTM,gBAAgB,CAAE,QAAlB,CAAAA,gBAAgBA,CACdC,KAEE,QACC,CAAAR,UAAU,CAACQ,KAAK,CAACC,WAAW,CAAC,EAAC,EACpC,CAAC,CAEN","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.AddressSheet=AddressSheet;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _NativeAddressSheet=_interopRequireDefault(require("../specs/NativeAddressSheet"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/cttsai/stripe/stripe-react-native/src/components/AddressSheet.tsx";var _excluded=["onSubmit","onError"];function AddressSheet(_ref){var onSubmit=_ref.onSubmit,onError=_ref.onError,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeAddressSheet.default,Object.assign({},props,{onSubmitAction:function onSubmitAction(event){return onSubmit(event.nativeEvent.result);},onErrorAction:function onErrorAction(event){return onError(event.nativeEvent.error);}}));}
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.AddressSheet=AddressSheet;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _NativeAddressSheet=_interopRequireDefault(require("../specs/NativeAddressSheet"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/tjclawson/stripe/stripe-react-native/src/components/AddressSheet.tsx";var _excluded=["onSubmit","onError"];function AddressSheet(_ref){var onSubmit=_ref.onSubmit,onError=_ref.onError,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeAddressSheet.default,Object.assign({},props,{onSubmitAction:function onSubmitAction(event){return onSubmit(event.nativeEvent.result);},onErrorAction:function onErrorAction(event){return onError(event.nativeEvent.error);}}));}
2
2
  //# sourceMappingURL=AddressSheet.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_NativeAddressSheet","_jsxRuntime","_jsxFileName","_excluded","AddressSheet","_ref","onSubmit","onError","props","_objectWithoutProperties2","default","jsx","Object","assign","onSubmitAction","event","nativeEvent","result","onErrorAction","error"],"sourceRoot":"../../../src","sources":["components/AddressSheet.tsx"],"mappings":"8RAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAQA,IAAAC,mBAAA,CAAAF,sBAAA,CAAAC,OAAA,iCAA6D,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,gFAAAC,SAAA,wBA4DtD,QAAS,CAAAC,YAAYA,CAAAC,IAAA,CAAyC,IAAtC,CAAAC,QAAQ,CAAAD,IAAA,CAARC,QAAQ,CAAEC,OAAO,CAAAF,IAAA,CAAPE,OAAO,CAAKC,KAAK,IAAAC,yBAAA,CAAAC,OAAA,EAAAL,IAAA,CAAAF,SAAA,EACxD,MACE,GAAAF,WAAA,CAAAU,GAAA,EAACX,mBAAA,CAAAU,OAAkB,CAAAE,MAAA,CAAAC,MAAA,IACbL,KAAK,EACTM,cAAc,CAAE,QAAhB,CAAAA,cAAcA,CAAGC,KAAK,QAAK,CAAAT,QAAQ,CAACS,KAAK,CAACC,WAAW,CAACC,MAAM,CAAC,EAAC,CAC9DC,aAAa,CAAE,QAAf,CAAAA,aAAaA,CAAGH,KAAK,QAAK,CAAAR,OAAO,CAACQ,KAAK,CAACC,WAAW,CAACG,KAAK,CAAC,EAAC,EAC5D,CAAC,CAEN","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_NativeAddressSheet","_jsxRuntime","_jsxFileName","_excluded","AddressSheet","_ref","onSubmit","onError","props","_objectWithoutProperties2","default","jsx","Object","assign","onSubmitAction","event","nativeEvent","result","onErrorAction","error"],"sourceRoot":"../../../src","sources":["components/AddressSheet.tsx"],"mappings":"8RAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAQA,IAAAC,mBAAA,CAAAF,sBAAA,CAAAC,OAAA,iCAA6D,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,mFAAAC,SAAA,wBA4DtD,QAAS,CAAAC,YAAYA,CAAAC,IAAA,CAAyC,IAAtC,CAAAC,QAAQ,CAAAD,IAAA,CAARC,QAAQ,CAAEC,OAAO,CAAAF,IAAA,CAAPE,OAAO,CAAKC,KAAK,IAAAC,yBAAA,CAAAC,OAAA,EAAAL,IAAA,CAAAF,SAAA,EACxD,MACE,GAAAF,WAAA,CAAAU,GAAA,EAACX,mBAAA,CAAAU,OAAkB,CAAAE,MAAA,CAAAC,MAAA,IACbL,KAAK,EACTM,cAAc,CAAE,QAAhB,CAAAA,cAAcA,CAAGC,KAAK,QAAK,CAAAT,QAAQ,CAACS,KAAK,CAACC,WAAW,CAACC,MAAM,CAAC,EAAC,CAC9DC,aAAa,CAAE,QAAf,CAAAA,aAAaA,CAAGH,KAAK,QAAK,CAAAR,OAAO,CAACQ,KAAK,CAACC,WAAW,CAACG,KAAK,CAAC,EAAC,EAC5D,CAAC,CAEN","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.AuBECSDebitForm=AuBECSDebitForm;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _NativeAuBECSDebitForm=_interopRequireDefault(require("../specs/NativeAuBECSDebitForm"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/cttsai/stripe/stripe-react-native/src/components/AuBECSDebitForm.tsx";var _excluded=["onComplete","companyName","formStyle"];function AuBECSDebitForm(_ref){var onComplete=_ref.onComplete,companyName=_ref.companyName,formStyle=_ref.formStyle,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeAuBECSDebitForm.default,Object.assign({onCompleteAction:function onCompleteAction(value){return onComplete(value.nativeEvent);},companyName:companyName,formStyle:Object.assign({},formStyle)},props));}
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.AuBECSDebitForm=AuBECSDebitForm;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireDefault(require("react"));var _NativeAuBECSDebitForm=_interopRequireDefault(require("../specs/NativeAuBECSDebitForm"));var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/tjclawson/stripe/stripe-react-native/src/components/AuBECSDebitForm.tsx";var _excluded=["onComplete","companyName","formStyle"];function AuBECSDebitForm(_ref){var onComplete=_ref.onComplete,companyName=_ref.companyName,formStyle=_ref.formStyle,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeAuBECSDebitForm.default,Object.assign({onCompleteAction:function onCompleteAction(value){return onComplete(value.nativeEvent);},companyName:companyName,formStyle:Object.assign({},formStyle)},props));}
2
2
  //# sourceMappingURL=AuBECSDebitForm.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_NativeAuBECSDebitForm","_jsxRuntime","_jsxFileName","_excluded","AuBECSDebitForm","_ref","onComplete","companyName","formStyle","props","_objectWithoutProperties2","default","jsx","Object","assign","onCompleteAction","value","nativeEvent"],"sourceRoot":"../../../src","sources":["components/AuBECSDebitForm.tsx"],"mappings":"oSAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAEA,IAAAC,sBAAA,CAAAF,sBAAA,CAAAC,OAAA,oCAAmE,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,mFAAAC,SAAA,0CA6B5D,QAAS,CAAAC,eAAeA,CAAAC,IAAA,CAKrB,IAJR,CAAAC,UAAU,CAAAD,IAAA,CAAVC,UAAU,CACVC,WAAW,CAAAF,IAAA,CAAXE,WAAW,CACXC,SAAS,CAAAH,IAAA,CAATG,SAAS,CACNC,KAAK,IAAAC,yBAAA,CAAAC,OAAA,EAAAN,IAAA,CAAAF,SAAA,EAER,MACE,GAAAF,WAAA,CAAAW,GAAA,EAACZ,sBAAA,CAAAW,OAAqB,CAAAE,MAAA,CAAAC,MAAA,EACpBC,gBAAgB,CAAE,QAAlB,CAAAA,gBAAgBA,CAAGC,KAAK,QAAK,CAAAV,UAAU,CAACU,KAAK,CAACC,WAAW,CAAC,EAAC,CAC3DV,WAAW,CAAEA,WAAY,CACzBC,SAAS,CAAAK,MAAA,CAAAC,MAAA,IAAON,SAAS,CAAG,EACxBC,KAAK,CACV,CAAC,CAEN","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_NativeAuBECSDebitForm","_jsxRuntime","_jsxFileName","_excluded","AuBECSDebitForm","_ref","onComplete","companyName","formStyle","props","_objectWithoutProperties2","default","jsx","Object","assign","onCompleteAction","value","nativeEvent"],"sourceRoot":"../../../src","sources":["components/AuBECSDebitForm.tsx"],"mappings":"oSAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WAEA,IAAAC,sBAAA,CAAAF,sBAAA,CAAAC,OAAA,oCAAmE,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,sFAAAC,SAAA,0CA6B5D,QAAS,CAAAC,eAAeA,CAAAC,IAAA,CAKrB,IAJR,CAAAC,UAAU,CAAAD,IAAA,CAAVC,UAAU,CACVC,WAAW,CAAAF,IAAA,CAAXE,WAAW,CACXC,SAAS,CAAAH,IAAA,CAATG,SAAS,CACNC,KAAK,IAAAC,yBAAA,CAAAC,OAAA,EAAAN,IAAA,CAAAF,SAAA,EAER,MACE,GAAAF,WAAA,CAAAW,GAAA,EAACZ,sBAAA,CAAAW,OAAqB,CAAAE,MAAA,CAAAC,MAAA,EACpBC,gBAAgB,CAAE,QAAlB,CAAAA,gBAAgBA,CAAGC,KAAK,QAAK,CAAAV,UAAU,CAACU,KAAK,CAACC,WAAW,CAAC,EAAC,CAC3DV,WAAW,CAAEA,WAAY,CACzBC,SAAS,CAAAK,MAAA,CAAAC,MAAA,IAAON,SAAS,CAAG,EACxBC,KAAK,CACV,CAAC,CAEN","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.CardField=void 0;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _helpers=require("../helpers");var _NativeCardField=_interopRequireWildcard(require("../specs/NativeCardField"));var _jsxRuntime=require("react/jsx-runtime");var _excluded=["onCardChange","onFocus","onBlur","cardStyle","placeholders","autofocus","postalCodeEnabled","disabled","dangerouslyGetFullCardDetails"];var _this=this,_jsxFileName="/Users/cttsai/stripe/stripe-react-native/src/components/CardField.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var CardField=exports.CardField=(0,_react.forwardRef)(function(_ref,ref){var onCardChange=_ref.onCardChange,onFocus=_ref.onFocus,onBlur=_ref.onBlur,cardStyle=_ref.cardStyle,placeholders=_ref.placeholders,autofocus=_ref.autofocus,postalCodeEnabled=_ref.postalCodeEnabled,disabled=_ref.disabled,dangerouslyGetFullCardDetails=_ref.dangerouslyGetFullCardDetails,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);var inputRef=(0,_react.useRef)(null);var onCardChangeHandler=(0,_react.useCallback)(function(event){var card=event.nativeEvent.card;var data={last4:card.last4,expiryMonth:card.expiryMonth,expiryYear:card.expiryYear,complete:card.complete,brand:card.brand,validExpiryDate:card.validExpiryDate,validNumber:card.validNumber,validCVC:card.validCVC};if(card.hasOwnProperty('postalCode')){data.postalCode=card.postalCode||'';}if(card.hasOwnProperty('number')||card.hasOwnProperty('cvc')){data.number=card.number||'';data.cvc=card.cvc||'';if(__DEV__&&onCardChange&&card.complete){console.warn(`[stripe-react-native] ⚠️ WARNING: You've enabled \`dangerouslyGetFullCardDetails\`, meaning full card details are being returned. Only do this if you're certain that you fulfill the necessary PCI compliance requirements. Make sure that you're not mistakenly logging or storing full card details! See the docs for details: https://stripe.com/docs/security/guide#validating-pci-compliance`);}}onCardChange==null||onCardChange(data);},[onCardChange]);var onFocusHandler=(0,_react.useCallback)(function(event){var focusedField=event.nativeEvent.focusedField;if(focusedField){(0,_helpers.focusInput)(inputRef.current);onFocus==null||onFocus(focusedField);}else{onBlur==null||onBlur();}},[onFocus,onBlur]);var focus=function focus(){_NativeCardField.Commands.focus(inputRef.current);};var blur=function blur(){_NativeCardField.Commands.blur(inputRef.current);};var clear=function clear(){_NativeCardField.Commands.clear(inputRef.current);};(0,_react.useImperativeHandle)(ref,function(){return{focus:focus,blur:blur,clear:clear};});(0,_react.useLayoutEffect)(function(){var inputRefValue=inputRef.current;if(inputRefValue!==null){(0,_helpers.registerInput)(inputRefValue);return function(){(0,_helpers.unregisterInput)(inputRefValue);if((0,_helpers.currentlyFocusedInput)()===inputRefValue){inputRefValue.blur();}};}return function(){};},[inputRef]);return(0,_jsxRuntime.jsx)(_NativeCardField.default,Object.assign({ref:inputRef,onCardChange:onCardChangeHandler,onFocusChange:onFocusHandler,cardStyle:{backgroundColor:cardStyle==null?void 0:cardStyle.backgroundColor,borderColor:cardStyle==null?void 0:cardStyle.borderColor,borderWidth:cardStyle==null?void 0:cardStyle.borderWidth,borderRadius:cardStyle==null?void 0:cardStyle.borderRadius,cursorColor:cardStyle==null?void 0:cardStyle.cursorColor,fontSize:cardStyle==null?void 0:cardStyle.fontSize,placeholderColor:cardStyle==null?void 0:cardStyle.placeholderColor,textColor:cardStyle==null?void 0:cardStyle.textColor,textErrorColor:cardStyle==null?void 0:cardStyle.textErrorColor,fontFamily:cardStyle==null?void 0:cardStyle.fontFamily},placeholders:{number:placeholders==null?void 0:placeholders.number,expiration:placeholders==null?void 0:placeholders.expiration,cvc:placeholders==null?void 0:placeholders.cvc,postalCode:placeholders==null?void 0:placeholders.postalCode},autofocus:autofocus!=null?autofocus:false,postalCodeEnabled:postalCodeEnabled!=null?postalCodeEnabled:true,disabled:disabled!=null?disabled:false,dangerouslyGetFullCardDetails:dangerouslyGetFullCardDetails!=null?dangerouslyGetFullCardDetails:false},props));});
1
+ var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.CardField=void 0;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _helpers=require("../helpers");var _NativeCardField=_interopRequireWildcard(require("../specs/NativeCardField"));var _jsxRuntime=require("react/jsx-runtime");var _excluded=["onCardChange","onFocus","onBlur","cardStyle","placeholders","autofocus","postalCodeEnabled","disabled","dangerouslyGetFullCardDetails"];var _this=this,_jsxFileName="/Users/tjclawson/stripe/stripe-react-native/src/components/CardField.tsx";function _interopRequireWildcard(e,t){if("function"==typeof WeakMap)var r=new WeakMap(),n=new WeakMap();return(_interopRequireWildcard=function _interopRequireWildcard(e,t){if(!t&&e&&e.__esModule)return e;var o,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,f);}for(var _t in e)"default"!==_t&&{}.hasOwnProperty.call(e,_t)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,_t))&&(i.get||i.set)?o(f,_t,i):f[_t]=e[_t]);return f;})(e,t);}var CardField=exports.CardField=(0,_react.forwardRef)(function(_ref,ref){var onCardChange=_ref.onCardChange,onFocus=_ref.onFocus,onBlur=_ref.onBlur,cardStyle=_ref.cardStyle,placeholders=_ref.placeholders,autofocus=_ref.autofocus,postalCodeEnabled=_ref.postalCodeEnabled,disabled=_ref.disabled,dangerouslyGetFullCardDetails=_ref.dangerouslyGetFullCardDetails,props=(0,_objectWithoutProperties2.default)(_ref,_excluded);var inputRef=(0,_react.useRef)(null);var onCardChangeHandler=(0,_react.useCallback)(function(event){var card=event.nativeEvent.card;var data={last4:card.last4,expiryMonth:card.expiryMonth,expiryYear:card.expiryYear,complete:card.complete,brand:card.brand,validExpiryDate:card.validExpiryDate,validNumber:card.validNumber,validCVC:card.validCVC};if(card.hasOwnProperty('postalCode')){data.postalCode=card.postalCode||'';}if(card.hasOwnProperty('number')||card.hasOwnProperty('cvc')){data.number=card.number||'';data.cvc=card.cvc||'';if(__DEV__&&onCardChange&&card.complete){console.warn(`[stripe-react-native] ⚠️ WARNING: You've enabled \`dangerouslyGetFullCardDetails\`, meaning full card details are being returned. Only do this if you're certain that you fulfill the necessary PCI compliance requirements. Make sure that you're not mistakenly logging or storing full card details! See the docs for details: https://stripe.com/docs/security/guide#validating-pci-compliance`);}}onCardChange==null||onCardChange(data);},[onCardChange]);var onFocusHandler=(0,_react.useCallback)(function(event){var focusedField=event.nativeEvent.focusedField;if(focusedField){(0,_helpers.focusInput)(inputRef.current);onFocus==null||onFocus(focusedField);}else{onBlur==null||onBlur();}},[onFocus,onBlur]);var focus=function focus(){_NativeCardField.Commands.focus(inputRef.current);};var blur=function blur(){_NativeCardField.Commands.blur(inputRef.current);};var clear=function clear(){_NativeCardField.Commands.clear(inputRef.current);};(0,_react.useImperativeHandle)(ref,function(){return{focus:focus,blur:blur,clear:clear};});(0,_react.useLayoutEffect)(function(){var inputRefValue=inputRef.current;if(inputRefValue!==null){(0,_helpers.registerInput)(inputRefValue);return function(){(0,_helpers.unregisterInput)(inputRefValue);if((0,_helpers.currentlyFocusedInput)()===inputRefValue){inputRefValue.blur();}};}return function(){};},[inputRef]);return(0,_jsxRuntime.jsx)(_NativeCardField.default,Object.assign({ref:inputRef,onCardChange:onCardChangeHandler,onFocusChange:onFocusHandler,cardStyle:{backgroundColor:cardStyle==null?void 0:cardStyle.backgroundColor,borderColor:cardStyle==null?void 0:cardStyle.borderColor,borderWidth:cardStyle==null?void 0:cardStyle.borderWidth,borderRadius:cardStyle==null?void 0:cardStyle.borderRadius,cursorColor:cardStyle==null?void 0:cardStyle.cursorColor,fontSize:cardStyle==null?void 0:cardStyle.fontSize,placeholderColor:cardStyle==null?void 0:cardStyle.placeholderColor,textColor:cardStyle==null?void 0:cardStyle.textColor,textErrorColor:cardStyle==null?void 0:cardStyle.textErrorColor,fontFamily:cardStyle==null?void 0:cardStyle.fontFamily},placeholders:{number:placeholders==null?void 0:placeholders.number,expiration:placeholders==null?void 0:placeholders.expiration,cvc:placeholders==null?void 0:placeholders.cvc,postalCode:placeholders==null?void 0:placeholders.postalCode},autofocus:autofocus!=null?autofocus:false,postalCodeEnabled:postalCodeEnabled!=null?postalCodeEnabled:true,disabled:disabled!=null?disabled:false,dangerouslyGetFullCardDetails:dangerouslyGetFullCardDetails!=null?dangerouslyGetFullCardDetails:false},props));});
2
2
  //# sourceMappingURL=CardField.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_helpers","_NativeCardField","_jsxRuntime","_excluded","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CardField","exports","forwardRef","_ref","ref","onCardChange","onFocus","onBlur","cardStyle","placeholders","autofocus","postalCodeEnabled","disabled","dangerouslyGetFullCardDetails","props","_objectWithoutProperties2","inputRef","useRef","onCardChangeHandler","useCallback","event","card","nativeEvent","data","last4","expiryMonth","expiryYear","complete","brand","validExpiryDate","validNumber","validCVC","postalCode","number","cvc","__DEV__","console","warn","onFocusHandler","focusedField","focusInput","current","focus","Commands","blur","clear","useImperativeHandle","useLayoutEffect","inputRefValue","registerInput","unregisterInput","currentlyFocusedInput","jsx","assign","onFocusChange","backgroundColor","borderColor","borderWidth","borderRadius","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Ac,CAAEvD,SAAS,cAATA,SAAS,CAAEuD,cAAc,CACzCC,UAAU,CAAExD,SAAS,cAATA,SAAS,CAAEwD,UACzB,CAAE,CACFvD,YAAY,CAAE,CACZwB,MAAM,CAAExB,YAAY,cAAZA,YAAY,CAAEwB,MAAM,CAC5BgC,UAAU,CAAExD,YAAY,cAAZA,YAAY,CAAEwD,UAAU,CACpC/B,GAAG,CAAEzB,YAAY,cAAZA,YAAY,CAAEyB,GAAG,CACtBF,UAAU,CAAEvB,YAAY,cAAZA,YAAY,CAAEuB,UAC5B,CAAE,CACFtB,SAAS,CAAEA,SAAS,OAATA,SAAS,CAAI,KAAM,CAC9BC,iBAAiB,CAAEA,iBAAiB,OAAjBA,iBAAiB,CAAI,IAAK,CAC7CC,QAAQ,CAAEA,QAAQ,OAARA,QAAQ,CAAI,KAAM,CAC5BC,6BAA6B,CAAEA,6BAA6B,OAA7BA,6BAA6B,CAAI,KAAM,EAClEC,KAAK,CACV,CAAC,CAEN,CACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_helpers","_NativeCardField","_jsxRuntime","_excluded","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","CardField","exports","forwardRef","_ref","ref","onCardChange","onFocus","onBlur","cardStyle","placeholders","autofocus","postalCodeEnabled","disabled","dangerouslyGetFullCardDetails","props","_objectWithoutProperties2","inputRef","useRef","onCardChangeHandler","useCallback","event","card","nativeEvent","data","last4","expiryMonth","expiryYear","complete","brand","validExpiryDate","validNumber","validCVC","postalCode","number","cvc","__DEV__","console","warn","onFocusHandler","focusedField","focusInput","current","focus","Commands","blur","clear","useImperativeHandle","useLayoutEffect","inputRefValue","registerInput","unregisterInput","currentlyFocusedInput","jsx","assign","onFocusChange","backgroundColor","borderColor","borderWidth","borderRadius","cursorColor","fontSize","placeholderColor","textColor","textErrorColor","fontFamily","expiration"],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