@stripe/stripe-react-native 0.57.1 → 0.57.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -8
- package/android/.idea/AndroidProjectSystem.xml +6 -0
- package/android/.idea/caches/deviceStreaming.xml +1029 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +19 -0
- package/android/.idea/migrations.xml +10 -0
- package/android/.idea/misc.xml +10 -0
- package/android/.idea/runConfigurations.xml +17 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/local.properties +8 -0
- package/android/src/main/java/com/reactnativestripesdk/EmbeddedPaymentElementView.kt +49 -0
- package/android/src/main/java/com/reactnativestripesdk/EmbeddedPaymentElementViewManager.kt +61 -0
- package/android/src/main/java/com/reactnativestripesdk/EventEmitterCompat.kt +4 -0
- package/android/src/oldarch/java/com/facebook/react/viewmanagers/EmbeddedPaymentElementViewManagerDelegate.java +3 -0
- package/android/src/oldarch/java/com/facebook/react/viewmanagers/EmbeddedPaymentElementViewManagerInterface.java +2 -0
- package/ios/StripeSdk.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- package/ios/StripeSdk.xcodeproj/project.xcworkspace/xcuserdata/tianzhao.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/ios/StripeSdk.xcodeproj/xcuserdata/tianzhao.xcuserdatad/xcschemes/xcschememanagement.plist +19 -0
- package/lib/commonjs/components/AddToWalletButton.js +1 -1
- package/lib/commonjs/components/AddToWalletButton.js.map +1 -1
- package/lib/commonjs/components/AddressSheet.js +1 -1
- package/lib/commonjs/components/AddressSheet.js.map +1 -1
- package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
- package/lib/commonjs/components/AuBECSDebitForm.js.map +1 -1
- package/lib/commonjs/components/CardField.js +1 -1
- package/lib/commonjs/components/CardField.js.map +1 -1
- package/lib/commonjs/components/CardForm.js +1 -1
- package/lib/commonjs/components/CardForm.js.map +1 -1
- package/lib/commonjs/components/PlatformPayButton.js +1 -1
- package/lib/commonjs/components/PlatformPayButton.js.map +1 -1
- package/lib/commonjs/components/StripeContainer.js +1 -1
- package/lib/commonjs/components/StripeContainer.js.map +1 -1
- package/lib/commonjs/connect/Components.js +1 -1
- package/lib/commonjs/connect/Components.js.map +1 -1
- package/lib/commonjs/connect/ConnectComponentsProvider.js +1 -1
- package/lib/commonjs/connect/ConnectComponentsProvider.js.map +1 -1
- package/lib/commonjs/connect/EmbeddedComponent.js +1 -1
- package/lib/commonjs/connect/EmbeddedComponent.js.map +1 -1
- package/lib/commonjs/connect/ModalCloseButton.js +1 -1
- package/lib/commonjs/connect/ModalCloseButton.js.map +1 -1
- package/lib/commonjs/connect/NavigationBar.js +1 -1
- package/lib/commonjs/connect/NavigationBar.js.map +1 -1
- package/lib/commonjs/events.js.map +1 -1
- package/lib/commonjs/helpers.js +1 -1
- package/lib/commonjs/specs/NativeAddToWalletButton.js +1 -1
- package/lib/commonjs/specs/NativeAddressSheet.js +1 -1
- package/lib/commonjs/specs/NativeApplePayButton.js +1 -1
- package/lib/commonjs/specs/NativeAuBECSDebitForm.js +1 -1
- package/lib/commonjs/specs/NativeCardField.js +1 -1
- package/lib/commonjs/specs/NativeCardField.js.map +1 -1
- package/lib/commonjs/specs/NativeCardForm.js +1 -1
- package/lib/commonjs/specs/NativeCardForm.js.map +1 -1
- package/lib/commonjs/specs/NativeConnectAccountOnboardingView.js +1 -1
- package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js +1 -1
- package/lib/commonjs/specs/NativeEmbeddedPaymentElement.js.map +1 -1
- package/lib/commonjs/specs/NativeGooglePayButton.js +1 -1
- package/lib/commonjs/specs/NativeNavigationBar.js +1 -1
- package/lib/commonjs/specs/NativeStripeContainer.js +1 -1
- package/lib/commonjs/types/EmbeddedPaymentElement.js +1 -1
- package/lib/commonjs/types/EmbeddedPaymentElement.js.map +1 -1
- package/lib/module/components/AddToWalletButton.js +1 -1
- package/lib/module/components/AddToWalletButton.js.map +1 -1
- package/lib/module/components/AddressSheet.js +1 -1
- package/lib/module/components/AddressSheet.js.map +1 -1
- package/lib/module/components/AuBECSDebitForm.js +1 -1
- package/lib/module/components/AuBECSDebitForm.js.map +1 -1
- package/lib/module/components/CardField.js +1 -1
- package/lib/module/components/CardField.js.map +1 -1
- package/lib/module/components/CardForm.js +1 -1
- package/lib/module/components/CardForm.js.map +1 -1
- package/lib/module/components/PlatformPayButton.js +1 -1
- package/lib/module/components/PlatformPayButton.js.map +1 -1
- package/lib/module/components/StripeContainer.js +1 -1
- package/lib/module/components/StripeContainer.js.map +1 -1
- package/lib/module/connect/Components.js +1 -1
- package/lib/module/connect/Components.js.map +1 -1
- package/lib/module/connect/ConnectComponentsProvider.js +1 -1
- package/lib/module/connect/ConnectComponentsProvider.js.map +1 -1
- package/lib/module/connect/EmbeddedComponent.js +1 -1
- package/lib/module/connect/EmbeddedComponent.js.map +1 -1
- package/lib/module/connect/ModalCloseButton.js +1 -1
- package/lib/module/connect/ModalCloseButton.js.map +1 -1
- package/lib/module/connect/NavigationBar.js +1 -1
- package/lib/module/connect/NavigationBar.js.map +1 -1
- package/lib/module/events.js.map +1 -1
- package/lib/module/helpers.js +1 -1
- package/lib/module/specs/NativeAddToWalletButton.js +1 -1
- package/lib/module/specs/NativeAddressSheet.js +1 -1
- package/lib/module/specs/NativeApplePayButton.js +1 -1
- package/lib/module/specs/NativeAuBECSDebitForm.js +1 -1
- package/lib/module/specs/NativeCardField.js +1 -1
- package/lib/module/specs/NativeCardField.js.map +1 -1
- package/lib/module/specs/NativeCardForm.js +1 -1
- package/lib/module/specs/NativeCardForm.js.map +1 -1
- package/lib/module/specs/NativeConnectAccountOnboardingView.js +1 -1
- package/lib/module/specs/NativeEmbeddedPaymentElement.js +1 -1
- package/lib/module/specs/NativeEmbeddedPaymentElement.js.map +1 -1
- package/lib/module/specs/NativeGooglePayButton.js +1 -1
- package/lib/module/specs/NativeNavigationBar.js +1 -1
- package/lib/module/specs/NativeStripeContainer.js +1 -1
- package/lib/module/types/EmbeddedPaymentElement.js +1 -1
- package/lib/module/types/EmbeddedPaymentElement.js.map +1 -1
- package/lib/typescript/src/events.d.ts +1 -0
- package/lib/typescript/src/events.d.ts.map +1 -1
- package/lib/typescript/src/specs/NativeEmbeddedPaymentElement.d.ts +1 -0
- package/lib/typescript/src/specs/NativeEmbeddedPaymentElement.d.ts.map +1 -1
- package/lib/typescript/src/types/EmbeddedPaymentElement.d.ts.map +1 -1
- package/package.json +2 -3
- package/src/events.ts +1 -0
- package/src/specs/NativeEmbeddedPaymentElement.ts +5 -1
- package/src/types/EmbeddedPaymentElement.tsx +24 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_EmbeddedComponent","_NavigationBar","_NativeConnectAccountOnboardingView","_interopRequireDefault","_ConnectComponentsProvider","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ConnectAccountOnboarding","_ref","title","onExit","onStepChange","recipientTermsOfServiceUrl","fullTermsOfServiceUrl","privacyPolicyUrl","collectionOptions","onLoaderStart","onLoadError","onPageDidLoad","_useState","useState","_useState2","_slicedToArray2","visible","setVisible","_useState3","_useState4","loading","setLoading","_useConnectComponents","useConnectComponents","appearance","backgroundColor","useMemo","_appearance$variables","variables","colorBackground","textColor","_appearance$variables2","colorText","loadingIndicatorColor","_appearance$variables3","colorSecondaryText","componentProps","setFullTermsOfServiceUrl","setRecipientTermsOfServiceUrl","setPrivacyPolicyUrl","setCollectionOptions","onExitCallback","useCallback","setTimeout","callbacks","onCloseWebView","onLoaderStartCallback","event","_useWindowDimensions","useWindowDimensions","width","height","containerStyle","Platform","OS","jsxs","onExitAction","style","children","jsx","ActivityIndicator","size","color","styles","iosActivityIndicator","EmbeddedComponent","component","flex1","Modal","animationType","presentationStyle","SafeAreaView","NavigationBar","onCloseButtonPress","navBar","View","onboardingWrapper","activityIndicator","ConnectPayments","_ref2","defaultFilters","setDefaultFilters","ConnectPayouts","_ref3","ConnectPaymentDetails","_ref4","payment","onClose","setPayment","StyleSheet","create","flex","zIndex","position","left","right","top"],"sourceRoot":"../../../src","sources":["connect/Components.tsx"],"mappings":"8hBAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAeA,IAAAE,kBAAA,CAAAF,OAAA,wBACA,IAAAG,cAAA,CAAAH,OAAA,oBACA,IAAAI,mCAAA,CAAAC,sBAAA,CAAAL,OAAA,iDACA,IAAAM,0BAAA,CAAAN,OAAA,gCAAmE,IAAAO,WAAA,CAAAP,OAAA,0BAAAQ,YAAA,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_EmbeddedComponent","_NavigationBar","_NativeConnectAccountOnboardingView","_interopRequireDefault","_ConnectComponentsProvider","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ConnectAccountOnboarding","_ref","title","onExit","onStepChange","recipientTermsOfServiceUrl","fullTermsOfServiceUrl","privacyPolicyUrl","collectionOptions","onLoaderStart","onLoadError","onPageDidLoad","_useState","useState","_useState2","_slicedToArray2","visible","setVisible","_useState3","_useState4","loading","setLoading","_useConnectComponents","useConnectComponents","appearance","backgroundColor","useMemo","_appearance$variables","variables","colorBackground","textColor","_appearance$variables2","colorText","loadingIndicatorColor","_appearance$variables3","colorSecondaryText","componentProps","setFullTermsOfServiceUrl","setRecipientTermsOfServiceUrl","setPrivacyPolicyUrl","setCollectionOptions","onExitCallback","useCallback","setTimeout","callbacks","onCloseWebView","onLoaderStartCallback","event","_useWindowDimensions","useWindowDimensions","width","height","containerStyle","Platform","OS","jsxs","onExitAction","style","children","jsx","ActivityIndicator","size","color","styles","iosActivityIndicator","EmbeddedComponent","component","flex1","Modal","animationType","presentationStyle","SafeAreaView","NavigationBar","onCloseButtonPress","navBar","View","onboardingWrapper","activityIndicator","ConnectPayments","_ref2","defaultFilters","setDefaultFilters","ConnectPayouts","_ref3","ConnectPaymentDetails","_ref4","payment","onClose","setPayment","StyleSheet","create","flex","zIndex","position","left","right","top"],"sourceRoot":"../../../src","sources":["connect/Components.tsx"],"mappings":"8hBAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAeA,IAAAE,kBAAA,CAAAF,OAAA,wBACA,IAAAG,cAAA,CAAAH,OAAA,oBACA,IAAAI,mCAAA,CAAAC,sBAAA,CAAAL,OAAA,iDACA,IAAAM,0BAAA,CAAAN,OAAA,gCAAmE,IAAAO,WAAA,CAAAP,OAAA,0BAAAQ,YAAA,kFAAAT,wBAAAU,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAZ,uBAAA,UAAAA,wBAAAU,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,SAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,EAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,CAAAQ,CAAA,WAAAM,EAAA,IAAAd,CAAA,aAAAc,EAAA,KAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,CAAAc,EAAA,KAAAP,CAAA,EAAAD,CAAA,CAAAW,MAAA,CAAAC,cAAA,GAAAD,MAAA,CAAAE,wB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CAAC,CACDpB,iBAAiB,CAAE,CACjBiB,QAAQ,CAAE,UAAU,CACpBF,IAAI,CAAE,CACR,CACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.useConnectComponents=exports.loadConnectAndInitialize=exports.ConnectComponentsProvider=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _react=_interopRequireWildcard(require("react"));var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/Users/
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.useConnectComponents=exports.loadConnectAndInitialize=exports.ConnectComponentsProvider=void 0;var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _react=_interopRequireWildcard(require("react"));var _jsxRuntime=require("react/jsx-runtime");var _this=this,_jsxFileName="/Users/tianzhao/stripe/stripe-react-native/src/connect/ConnectComponentsProvider.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 ConnectInstance=function(){function ConnectInstance(initParams){(0,_classCallCheck2.default)(this,ConnectInstance);this.initParams=initParams;}return(0,_createClass2.default)(ConnectInstance,[{key:"update",value:function update(options){var _this$onUpdate;(_this$onUpdate=this.onUpdate)==null||_this$onUpdate.call(this,options);}}]);}();var loadConnectAndInitialize=exports.loadConnectAndInitialize=function loadConnectAndInitialize(initParams){return new ConnectInstance(initParams);};var ConnectComponentsContext=_react.default.createContext(null);ConnectComponentsContext.displayName='ConnectComponents';var ConnectComponentsProvider=exports.ConnectComponentsProvider=function ConnectComponentsProvider(_ref){var children=_ref.children,connectInstance=_ref.connectInstance;if(!(connectInstance instanceof ConnectInstance)){throw new Error('connectInstance must be an instance of ConnectInstance created via loadConnectAndInitialize');}var _useState=(0,_react.useState)(connectInstance.initParams.appearance),_useState2=(0,_slicedToArray2.default)(_useState,2),appearance=_useState2[0],setAppearance=_useState2[1];var _useState3=(0,_react.useState)(connectInstance.initParams.locale),_useState4=(0,_slicedToArray2.default)(_useState3,2),locale=_useState4[0],setLocale=_useState4[1];if(!connectInstance.onUpdate){connectInstance.onUpdate=function(options){if(options.appearance){setAppearance(options.appearance);}if(options.locale){setLocale(options.locale);}};}var value=(0,_react.useMemo)(function(){return{connectInstance:connectInstance,locale:locale,appearance:appearance};},[connectInstance,locale,appearance]);return(0,_jsxRuntime.jsx)(ConnectComponentsContext.Provider,{value:value,children:children});};var useConnectComponents=exports.useConnectComponents=function useConnectComponents(){var context=_react.default.useContext(ConnectComponentsContext);if(!context){throw new Error(`Could not find a ConnectComponentsContext; You need to wrap your components in an <ConnectComponentsProvider> provider.`);}return context;};
|
|
2
2
|
//# sourceMappingURL=ConnectComponentsProvider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_jsxRuntime","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ConnectInstance","initParams","_classCallCheck2","_createClass2","key","value","update","options","_this$onUpdate","onUpdate","loadConnectAndInitialize","exports","ConnectComponentsContext","React","createContext","displayName","ConnectComponentsProvider","_ref","children","connectInstance","Error","_useState","useState","appearance","_useState2","_slicedToArray2","setAppearance","_useState3","locale","_useState4","setLocale","useMemo","jsx","Provider","useConnectComponents","context","useContext"],"sourceRoot":"../../../src","sources":["connect/ConnectComponentsProvider.tsx"],"mappings":"qgBAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAAsD,IAAAC,WAAA,CAAAD,OAAA,0BAAAE,KAAA,MAAAC,YAAA
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_jsxRuntime","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ConnectInstance","initParams","_classCallCheck2","_createClass2","key","value","update","options","_this$onUpdate","onUpdate","loadConnectAndInitialize","exports","ConnectComponentsContext","React","createContext","displayName","ConnectComponentsProvider","_ref","children","connectInstance","Error","_useState","useState","appearance","_useState2","_slicedToArray2","setAppearance","_useState3","locale","_useState4","setLocale","useMemo","jsx","Provider","useConnectComponents","context","useContext"],"sourceRoot":"../../../src","sources":["connect/ConnectComponentsProvider.tsx"],"mappings":"qgBAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAAsD,IAAAC,WAAA,CAAAD,OAAA,0BAAAE,KAAA,MAAAC,YAAA,iGAAAJ,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,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,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EAAC,CAC/C,CAACJ,eAAe,CAAES,MAAM,CAAEL,UAAU,CACtC,CAAC,CAED,MACE,GAAA9C,WAAA,CAAAuD,GAAA,EAACpB,wBAAwB,CAACqB,QAAQ,EAAC5B,KAAK,CAAEA,KAAM,CAAAa,QAAA,CAC7CA,QAAQ,CACwB,CAAC,CAExC,CAAC,CAEM,GAAM,CAAAgB,oBAAoB,CAAAvB,OAAA,CAAAuB,oBAAA,CAAG,QAAvB,CAAAA,oBAAoBA,CAAA,CAAmC,CAClE,GAAM,CAAAC,OAAO,CAAGtB,cAAK,CAACuB,UAAU,CAACxB,wBAAwB,CAAC,CAC1D,GAAI,CAACuB,OAAO,CAAE,CACZ,KAAM,IAAI,CAAAf,KAAK,CACb,yHACF,CAAC,CACH,CACA,MAAO,CAAAe,OAAO,CAChB,CAAC","ignoreList":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.EmbeddedComponent=EmbeddedComponent;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _package=_interopRequireDefault(require("../../../package.json"));var _NativeStripeSdkModule=_interopRequireDefault(require("../specs/NativeStripeSdkModule"));var _ConnectComponentsProvider=require("./ConnectComponentsProvider");var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.EmbeddedComponent=EmbeddedComponent;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _slicedToArray2=_interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));var _react=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _package=_interopRequireDefault(require("../../../package.json"));var _NativeStripeSdkModule=_interopRequireDefault(require("../specs/NativeStripeSdkModule"));var _ConnectComponentsProvider=require("./ConnectComponentsProvider");var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/tianzhao/stripe/stripe-react-native/src/connect/EmbeddedComponent.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 DEVELOPMENT_MODE=false;var DEVELOPMENT_URL=_reactNative.Platform.OS==='android'?'http://10.0.2.2:3001':'http://localhost:3001';var PRODUCTION_URL='https://connect-js.stripe.com';var BASE_URL=DEVELOPMENT_MODE?DEVELOPMENT_URL:PRODUCTION_URL;var sdkVersion=_package.default.version;if(!/^\d+\.\d+\.\d+$/.test(sdkVersion)){throw new Error(`Invalid SDK version: ${sdkVersion}. Must be in format X.Y.Z`);}var userAgent=['Mobile',`Stripe ReactNative SDK ${_reactNative.Platform.OS}/${_reactNative.Platform.Version}`,`stripe-react_native/${sdkVersion}`].join(' - ');function EmbeddedComponent(props){var _appearance$variables;var _useState=(0,_react.useState)(null),_useState2=(0,_slicedToArray2.default)(_useState,2),dynamicWebview=_useState2[0],setDynamicWebview=_useState2[1];var pendingAuthWebViewPromise=(0,_react.useRef)(null);var loadWebViewComponent=(0,_react.useCallback)((0,_asyncToGenerator2.default)(function*(){if(dynamicWebview)return;setDynamicWebview({WebView:null});try{var mod=yield import('react-native-webview');setDynamicWebview({WebView:mod.WebView});}catch(err){console.error('Failed to import react-native-webview:',err);}}),[dynamicWebview]);(0,_react.useEffect)(function(){loadWebViewComponent();},[loadWebViewComponent]);var appState=(0,_react.useRef)(_reactNative.AppState.currentState);(0,_react.useEffect)(function(){var subscription=_reactNative.AppState.addEventListener('change',function(nextAppState){if(appState.current.match(/inactive|background/)&&nextAppState==='active'){if(pendingAuthWebViewPromise.current){var _pendingAuthWebViewPr=pendingAuthWebViewPromise.current,id=_pendingAuthWebViewPr.id,callback=_pendingAuthWebViewPr.callback;pendingAuthWebViewPromise.current=null;callback(id,null);}}appState.current=nextAppState;});return function(){pendingAuthWebViewPromise.current=null;subscription.remove();};},[]);var _ref2=(0,_ConnectComponentsProvider.useConnectComponents)(),connectInstance=_ref2.connectInstance,appearance=_ref2.appearance,locale=_ref2.locale,overrides=_ref2.overrides;var _connectInstance$init=connectInstance.initParams,fonts=_connectInstance$init.fonts,publishableKey=_connectInstance$init.publishableKey,fetchClientSecret=_connectInstance$init.fetchClientSecret;var component=props.component,componentProps=props.componentProps,onLoadError=props.onLoadError,onLoaderStart=props.onLoaderStart,onPageDidLoad=props.onPageDidLoad,callbacks=props.callbacks,style=props.style;var hashParams={component:component,publicKey:publishableKey,merchantIdOverride:overrides==null?void 0:overrides.merchantId,platformIdOverride:overrides==null?void 0:overrides.platformId,apiKeyOverride:overrides==null?void 0:overrides.apiKey,livemodeOverride:overrides==null?void 0:overrides.livemode};var hash=Object.entries(hashParams).filter(function(_ref3){var _ref4=(0,_slicedToArray2.default)(_ref3,2),_=_ref4[0],value=_ref4[1];return value!=null;}).map(function(_ref5){var _ref6=(0,_slicedToArray2.default)(_ref5,2),key=_ref6[0],value=_ref6[1];return`${encodeURIComponent(key)}=${encodeURIComponent(value)}`;}).join('&');var connectURL=`${BASE_URL}/v1.0/react_native_webview.html#${hash}`;var source=(0,_react.useMemo)(function(){return{uri:connectURL};},[connectURL]);var ref=(0,_react.useRef)(null);var _useState3=(0,_react.useState)(appearance),_useState4=(0,_slicedToArray2.default)(_useState3,2),prevAppearance=_useState4[0],setPrevAppearance=_useState4[1];var _useState5=(0,_react.useState)(locale),_useState6=(0,_slicedToArray2.default)(_useState5,2),prevLocale=_useState6[0],setPrevLocale=_useState6[1];if(prevAppearance!==appearance||prevLocale!==locale){var _ref$current;setPrevAppearance(appearance);setPrevLocale(locale);var patchedAppearance=withDefaultFontFamily(appearance);(_ref$current=ref.current)==null||_ref$current.injectJavaScript(`
|
|
2
2
|
(function() {
|
|
3
3
|
window.updateConnectInstance(${JSON.stringify({appearance:patchedAppearance,locale:locale})});
|
|
4
4
|
true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_package","_interopRequireDefault","_NativeStripeSdkModule","_ConnectComponentsProvider","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DEVELOPMENT_MODE","DEVELOPMENT_URL","Platform","OS","PRODUCTION_URL","BASE_URL","sdkVersion","pjson","version","test","Error","userAgent","Version","join","EmbeddedComponent","props","_appearance$variables","_useState","useState","_useState2","_slicedToArray2","dynamicWebview","setDynamicWebview","pendingAuthWebViewPromise","useRef","loadWebViewComponent","useCallback","_asyncToGenerator2","WebView","mod","err","console","error","useEffect","appState","AppState","currentState","subscription","addEventListener","nextAppState","current","match","_pendingAuthWebViewPr","id","callback","remove","_ref2","useConnectComponents","connectInstance","appearance","locale","overrides","_connectInstance$init","initParams","fonts","publishableKey","fetchClientSecret","component","componentProps","onLoadError","onLoaderStart","onPageDidLoad","callbacks","style","hashParams","publicKey","merchantIdOverride","merchantId","platformIdOverride","platformId","apiKeyOverride","apiKey","livemodeOverride","livemode","hash","entries","filter","_ref3","_ref4","_","value","map","_ref5","_ref6","key","encodeURIComponent","connectURL","source","useMemo","uri","ref","_useState3","_useState4","prevAppearance","setPrevAppearance","_useState5","_useState6","prevLocale","setPrevLocale","_ref$current","patchedAppearance","withDefaultFontFamily","injectJavaScript","JSON","stringify","_useState7","_useState8","prevComponentProps","setPrevComponentProps","forEach","_ref7","_ref$current2","_ref8","setter","handleUnexpectedError","errorMessage","message","String","WebViewComponent","handleAuthWebViewResult","resultUrl","_ref$current3","url","onMessageCallback","_ref9","event","parse","nativeEvent","data","type","_ref$current4","clientSecret","catch","debug","onCloseWebView","_ref0","_callbacks$functionNa","functionName","charAt","toLowerCase","substring","_ref1","isValidUrl","NativeStripeSdk","openAuthenticatedWebView","then","result","_result$url","_x","apply","arguments","backgroundColor","variables","colorBackground","mergedStyle","jsx","webviewDebuggingEnabled","injectedJavaScriptObject","initComponentProps","appInfo","applicationId","injectedJavaScriptBeforeContentLoaded","onMessage","DEFAULT_FONT","_appearance$variables2","fontFamily","assign","parsedUrl","URL","protocol","_unused"],"sourceRoot":"../../../src","sources":["connect/EmbeddedComponent.tsx"],"mappings":"sXAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAOA,IAAAC,YAAA,CAAAD,OAAA,iBAQA,IAAAE,QAAA,CAAAC,sBAAA,CAAAH,OAAA,2BACA,IAAAI,sBAAA,CAAAD,sBAAA,CAAAH,OAAA,oCACA,IAAAK,0BAAA,CAAAL,OAAA,gCAGqC,IAAAM,WAAA,CAAAN,OAAA,0BAAAO,YAAA,uFAAAR,wBAAAS,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAX,uBAAA,UAAAA,wBAAAS,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA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CAAG,GAAI,CAAAC,GAAG,CAAC9C,GAAG,CAAC,CAC9B,MAAO,CAAA6C,SAAS,CAACE,QAAQ,GAAK,OAAO,EAAIF,SAAS,CAACE,QAAQ,GAAK,QAAQ,CAC1E,CAAE,MAAAC,OAAA,CAAM,CACN,MAAO,MAAK,CACd,CACF","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_package","_interopRequireDefault","_NativeStripeSdkModule","_ConnectComponentsProvider","_jsxRuntime","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","DEVELOPMENT_MODE","DEVELOPMENT_URL","Platform","OS","PRODUCTION_URL","BASE_URL","sdkVersion","pjson","version","test","Error","userAgent","Version","join","EmbeddedComponent","props","_appearance$variables","_useState","useState","_useState2","_slicedToArray2","dynamicWebview","setDynamicWebview","pendingAuthWebViewPromise","useRef","loadWebViewComponent","useCallback","_asyncToGenerator2","WebView","mod","err","console","error","useEffect","appState","AppState","currentState","subscription","addEventListener","nextAppState","current","match","_pendingAuthWebViewPr","id","callback","remove","_ref2","useConnectComponents","connectInstance","appearance","locale","overrides","_connectInstance$init","initParams","fonts","publishableKey","fetchClientSecret","component","componentProps","onLoadError","onLoaderStart","onPageDidLoad","callbacks","style","hashParams","publicKey","merchantIdOverride","merchantId","platformIdOverride","platformId","apiKeyOverride","apiKey","livemodeOverride","livemode","hash","entries","filter","_ref3","_ref4","_","value","map","_ref5","_ref6","key","encodeURIComponent","connectURL","source","useMemo","uri","ref","_useState3","_useState4","prevAppearance","setPrevAppearance","_useState5","_useState6","prevLocale","setPrevLocale","_ref$current","patchedAppearance","withDefaultFontFamily","injectJavaScript","JSON","stringify","_useState7","_useState8","prevComponentProps","setPrevComponentProps","forEach","_ref7","_ref$current2","_ref8","setter","handleUnexpectedError","errorMessage","message","String","WebViewComponent","handleAuthWebViewResult","resultUrl","_ref$current3","url","onMessageCallback","_ref9","event","parse","nativeEvent","data","type","_ref$current4","clientSecret","catch","debug","onCloseWebView","_ref0","_callbacks$functionNa","functionName","charAt","toLowerCase","substring","_ref1","isValidUrl","NativeStripeSdk","openAuthenticatedWebView","then","result","_result$url","_x","apply","arguments","backgroundColor","variables","colorBackground","mergedStyle","jsx","webviewDebuggingEnabled","injectedJavaScriptObject","initComponentProps","appInfo","applicationId","injectedJavaScriptBeforeContentLoaded","onMessage","DEFAULT_FONT","_appearance$variables2","fontFamily","assign","parsedUrl","URL","protocol","_unused"],"sourceRoot":"../../../src","sources":["connect/EmbeddedComponent.tsx"],"mappings":"sXAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAOA,IAAAC,YAAA,CAAAD,OAAA,iBAQA,IAAAE,QAAA,CAAAC,sBAAA,CAAAH,OAAA,2BACA,IAAAI,sBAAA,CAAAD,sBAAA,CAAAH,OAAA,oCACA,IAAAK,0BAAA,CAAAL,OAAA,gCAGqC,IAAAM,WAAA,CAAAN,OAAA,0BAAAO,YAAA,yFAAAR,wBAAAS,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAX,uBAAA,UAAAA,wBAAAS,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,SAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,EAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,CAAAQ,CAAA,WAAAM,EAAA,IAAAd,CAAA,aAAAc,EAA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AAE,MAAAC,OAAA,CAAM,CACN,MAAO,MAAK,CACd,CACF","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=ModalCloseButton;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=ModalCloseButton;var _react=_interopRequireDefault(require("react"));var _reactNative=require("react-native");var _jsxRuntime=require("react/jsx-runtime");var _jsxFileName="/Users/tianzhao/stripe/stripe-react-native/src/connect/ModalCloseButton.tsx";var size=36;var hitSlop={top:10,bottom:10,left:10,right:10};function ModalCloseButton(_ref){var onPress=_ref.onPress;return(0,_jsxRuntime.jsx)(_reactNative.TouchableOpacity,{onPress:onPress,accessibilityRole:"button",hitSlop:hitSlop,style:[styles.button,{width:size,height:size,borderRadius:size/2}],activeOpacity:0.7,children:(0,_jsxRuntime.jsx)(_reactNative.Text,{style:[styles.cross,{fontSize:Math.round(size*0.6)}],children:"\xD7"})});}var styles=_reactNative.StyleSheet.create({button:{alignItems:'center',justifyContent:'center'},cross:{lineHeight:undefined,includeFontPadding:false,textAlign:'center'}});
|
|
2
2
|
//# sourceMappingURL=ModalCloseButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_jsxRuntime","_jsxFileName","size","hitSlop","top","bottom","left","right","ModalCloseButton","_ref","onPress","jsx","TouchableOpacity","accessibilityRole","style","styles","button","width","height","borderRadius","activeOpacity","children","Text","cross","fontSize","Math","round","StyleSheet","create","alignItems","justifyContent","lineHeight","undefined","includeFontPadding","textAlign"],"sourceRoot":"../../../src","sources":["connect/ModalCloseButton.tsx"],"mappings":"6KAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAAkE,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_jsxRuntime","_jsxFileName","size","hitSlop","top","bottom","left","right","ModalCloseButton","_ref","onPress","jsx","TouchableOpacity","accessibilityRole","style","styles","button","width","height","borderRadius","activeOpacity","children","Text","cross","fontSize","Math","round","StyleSheet","create","alignItems","justifyContent","lineHeight","undefined","includeFontPadding","textAlign"],"sourceRoot":"../../../src","sources":["connect/ModalCloseButton.tsx"],"mappings":"6KAAA,IAAAA,MAAA,CAAAC,sBAAA,CAAAC,OAAA,WACA,IAAAC,YAAA,CAAAD,OAAA,iBAAkE,IAAAE,WAAA,CAAAF,OAAA,0BAAAG,YAAA,+EAElE,GAAM,CAAAC,IAAI,CAAG,EAAE,CACf,GAAM,CAAAC,OAAO,CAAG,CAAEC,GAAG,CAAE,EAAE,CAAEC,MAAM,CAAE,EAAE,CAAEC,IAAI,CAAE,EAAE,CAAEC,KAAK,CAAE,EAAG,CAAC,CAM7C,QAAS,CAAAC,gBAAgBA,CAAAC,IAAA,CAAqC,IAAlC,CAAAC,OAAO,CAAAD,IAAA,CAAPC,OAAO,CAChD,MACE,GAAAV,WAAA,CAAAW,GAAA,EAACZ,YAAA,CAAAa,gBAAgB,EACfF,OAAO,CAAEA,OAAQ,CACjBG,iBAAiB,CAAC,QAAQ,CAC1BV,OAAO,CAAEA,OAAQ,CACjBW,KAAK,CAAE,CACLC,MAAM,CAACC,MAAM,CACb,CACEC,KAAK,CAAEf,IAAI,CACXgB,MAAM,CAAEhB,IAAI,CACZiB,YAAY,CAAEjB,IAAI,CAAG,CACvB,CAAC,CACD,CACFkB,aAAa,CAAE,GAAI,CAAAC,QAAA,CAEnB,GAAArB,WAAA,CAAAW,GAAA,EAACZ,YAAA,CAAAuB,IAAI,EAACR,KAAK,CAAE,CAACC,MAAM,CAACQ,KAAK,CAAE,CAAEC,QAAQ,CAAEC,IAAI,CAACC,KAAK,CAACxB,IAAI,CAAG,GAAG,CAAE,CAAC,CAAE,CAAAmB,QAAA,CAAC,MAEnE,CAAM,CAAC,CACS,CAAC,CAEvB,CAEA,GAAM,CAAAN,MAAM,CAAGY,uBAAU,CAACC,MAAM,CAAC,CAC/BZ,MAAM,CAAE,CACNa,UAAU,CAAE,QAAQ,CACpBC,cAAc,CAAE,QAClB,CAAC,CACDP,KAAK,CAAE,CACLQ,UAAU,CAAEC,SAAS,CACrBC,kBAAkB,CAAE,KAAK,CACzBC,SAAS,CAAE,QACb,CACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.NavigationBar=void 0;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _NativeNavigationBar=_interopRequireDefault(require("../specs/NativeNavigationBar"));var _jsxRuntime=require("react/jsx-runtime");var _excluded=["title","onCloseButtonPress"];var _this=this,_jsxFileName="/Users/
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.NavigationBar=void 0;var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _react=_interopRequireWildcard(require("react"));var _NativeNavigationBar=_interopRequireDefault(require("../specs/NativeNavigationBar"));var _jsxRuntime=require("react/jsx-runtime");var _excluded=["title","onCloseButtonPress"];var _this=this,_jsxFileName="/Users/tianzhao/stripe/stripe-react-native/src/connect/NavigationBar.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 NavigationBar=exports.NavigationBar=(0,_react.forwardRef)(function(_ref,ref){var title=_ref.title,onCloseButtonPress=_ref.onCloseButtonPress,rest=(0,_objectWithoutProperties2.default)(_ref,_excluded);return(0,_jsxRuntime.jsx)(_NativeNavigationBar.default,Object.assign({ref:ref,title:title,onCloseButtonPress:onCloseButtonPress?function(_event){onCloseButtonPress();}:undefined},rest));});NavigationBar.displayName='NavigationBar';
|
|
2
2
|
//# sourceMappingURL=NavigationBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_NativeNavigationBar","_interopRequireDefault","_jsxRuntime","_excluded","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","NavigationBar","exports","forwardRef","_ref","ref","title","onCloseButtonPress","rest","_objectWithoutProperties2","jsx","assign","_event","undefined","displayName"],"sourceRoot":"../../../src","sources":["connect/NavigationBar.tsx"],"mappings":"yRAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAEA,IAAAC,oBAAA,CAAAC,sBAAA,CAAAF,OAAA,kCAA+D,IAAAG,WAAA,CAAAH,OAAA,0BAAAI,SAAA,oCAAAC,KAAA,MAAAC,YAAA,
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_NativeNavigationBar","_interopRequireDefault","_jsxRuntime","_excluded","_this","_jsxFileName","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","_t","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","NavigationBar","exports","forwardRef","_ref","ref","title","onCloseButtonPress","rest","_objectWithoutProperties2","jsx","assign","_event","undefined","displayName"],"sourceRoot":"../../../src","sources":["connect/NavigationBar.tsx"],"mappings":"yRAAA,IAAAA,MAAA,CAAAC,uBAAA,CAAAC,OAAA,WAEA,IAAAC,oBAAA,CAAAC,sBAAA,CAAAF,OAAA,kCAA+D,IAAAG,WAAA,CAAAH,OAAA,0BAAAI,SAAA,oCAAAC,KAAA,MAAAC,YAAA,qFAAAP,wBAAAQ,CAAA,CAAAC,CAAA,wBAAAC,OAAA,KAAAC,CAAA,KAAAD,OAAA,GAAAE,CAAA,KAAAF,OAAA,UAAAV,uBAAA,UAAAA,wBAAAQ,CAAA,CAAAC,CAAA,MAAAA,CAAA,EAAAD,CAAA,EAAAA,CAAA,CAAAK,UAAA,QAAAL,CAAA,KAAAM,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,SAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,EAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,CAAAQ,CAAA,WAAAM,EAAA,IAAAd,CAAA,aAAAc,EAAA,KAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,CAAAc,EAAA,KAAAP,CAAA,EAAAD,CAAA,CAAAW,MAAA,CAAAC,cAAA,GAAAD,MAAA,CAAAE,wBAAA,CAAAnB,CAAA,CAAAc,EAAA,KAAAP,CAAA,CAAAK,GAAA,EAAAL,CAAA,CAAAM,GAAA,EAAAP,CAAA,CAAAE,CAAA,CAAAM,EAAA,CAAAP,CAAA,EAAAC,CAAA,CAAAM,EAAA,EAAAd,CAAA,CAAAc,EAAA,UAAAN,CAAA,IAAAR,CAAA,CAAAC,CAAA,GAOxD,GAAM,CAAAmB,aAAa,CAAAC,OAAA,CAAAD,aAAA,CAAG,GAAAE,iBAAU,EACrC,SAAAC,IAAA,CAAyCC,GAAG,CAAK,IAA9C,CAAAC,KAAK,CAAAF,IAAA,CAALE,KAAK,CAAEC,kBAAkB,CAAAH,IAAA,CAAlBG,kBAAkB,CAAKC,IAAI,IAAAC,yBAAA,CAAAlB,OAAA,EAAAa,IAAA,CAAA1B,SAAA,EACnC,MACE,GAAAD,WAAA,CAAAiC,GAAA,EAACnC,oBAAA,CAAAgB,OAAmB,CAAAO,MAAA,CAAAa,MAAA,EAClBN,GAAG,CAAEA,GAAI,CACTC,KAAK,CAAEA,KAAM,CACbC,kBAAkB,CAChBA,kBAAkB,CACd,SAACK,MAAM,CAAK,CACVL,kBAAkB,CAAC,CAAC,CACtB,CAAC,CACDM,SACL,EACGL,IAAI,CACT,CAAC,CAEN,CACF,CAAC,CAEDP,aAAa,CAACa,WAAW,CAAG,eAAe","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_NativeStripeSdkModule","_interopRequireDefault","_NativeOnrampSdkModule","compatEventEmitter","Platform","OS","NativeEventEmitter","NativeStripeSdkModule","DeviceEventEmitter","addListener","event","handler","compatOnrampEventEmitter","NativeOnrampSdkModule","onCheckoutClientSecretRequested","addOnrampListener"],"sourceRoot":"../../src","sources":["events.ts"],"mappings":"wNAQA,IAAAA,YAAA,CAAAC,OAAA,iBAOA,IAAAC,sBAAA,CAAAC,sBAAA,CAAAF,OAAA,mCACA,IAAAG,sBAAA,CAAAD,sBAAA,CAAAF,OAAA,mCAMA,GAAM,CAAAI,kBAAkB,CACtBC,qBAAQ,CAACC,EAAE,GAAK,KAAK,CACjB,GAAI,CAAAC,+BAAkB,CAACC,8BAA4B,CAAC,CACpDC,+BAAkB,
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_NativeStripeSdkModule","_interopRequireDefault","_NativeOnrampSdkModule","compatEventEmitter","Platform","OS","NativeEventEmitter","NativeStripeSdkModule","DeviceEventEmitter","addListener","event","handler","compatOnrampEventEmitter","NativeOnrampSdkModule","onCheckoutClientSecretRequested","addOnrampListener"],"sourceRoot":"../../src","sources":["events.ts"],"mappings":"wNAQA,IAAAA,YAAA,CAAAC,OAAA,iBAOA,IAAAC,sBAAA,CAAAC,sBAAA,CAAAF,OAAA,mCACA,IAAAG,sBAAA,CAAAD,sBAAA,CAAAF,OAAA,mCAMA,GAAM,CAAAI,kBAAkB,CACtBC,qBAAQ,CAACC,EAAE,GAAK,KAAK,CACjB,GAAI,CAAAC,+BAAkB,CAACC,8BAA4B,CAAC,CACpDC,+BAAkB,CA2CjB,QAAS,CAAAC,WAAWA,CACzBC,KAAa,CACbC,OAAsC,CACnB,CACnB,MAAO,CAAAR,kBAAkB,CAACM,WAAW,CAACC,KAAK,CAAEC,OAAO,CAAC,CACvD,CAEA,GAAM,CAAAC,wBAAwB,CAG5BC,8BAAqB,CAACC,+BAA+B,EAAI,IAAI,CACzDV,qBAAQ,CAACC,EAAE,GAAK,KAAK,CACnB,GAAI,CAAAC,+BAAkB,CAACO,8BAA4B,CAAC,CACpDL,+BAAkB,CACpB,IAAI,CAIH,QAAS,CAAAO,iBAAiBA,CAC/BL,KAAa,CACbC,OAA8D,CAC3C,CACnB,GAAIC,wBAAwB,EAAI,IAAI,CAAE,CACpC,MAAO,CAAAA,wBAAwB,CAACH,WAAW,CAACC,KAAK,CAAEC,OAAO,CAAC,CAC7D,CACA,MAAO,CAAAE,8BAAqB,CAACH,KAAK,CAAC,CAACC,OAAc,CAAC,CACrD","ignoreList":[]}
|
package/lib/commonjs/helpers.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.createError=createError;exports.unsupportedMethodMessage=exports.unregisterInput=exports.shouldAttributeExpo=exports.registerInput=exports.isiOS=exports.isAndroid=exports.focusInput=exports.currentlyFocusedInput=void 0;var _reactNative=require("react-native");var _TextInputState=_interopRequireDefault(require("react-native/Libraries/Components/TextInput/TextInputState"));var shouldAttributeExpo=exports.shouldAttributeExpo=function shouldAttributeExpo(){try{return!!_reactNative.NativeModules.NativeUnimoduleProxy;}catch(_unused){return false;}};var isiOS=exports.isiOS=_reactNative.Platform.OS==='ios';var isAndroid=exports.isAndroid=_reactNative.Platform.OS==='android';function createError(error){return{code:error.code,message:error.message,localizedMessage:error.localizedMessage,declineCode:error.declineCode,stripeErrorCode:error.stripeErrorCode,type:error.type};}var unsupportedMethodMessage=exports.unsupportedMethodMessage=function unsupportedMethodMessage(field){return`${field} method is not supported. Consider to upgrade react-native version to 0.63.x or higher`;};var focusInput=exports.focusInput=function focusInput(ref){if('focusInput'in _TextInputState.default){_TextInputState.default.focusInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('focusInput'));}}};var registerInput=exports.registerInput=function registerInput(ref){if('registerInput'in _TextInputState.default){_TextInputState.default.registerInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('registerInput'));}}};var unregisterInput=exports.unregisterInput=function unregisterInput(ref){if('unregisterInput'in _TextInputState.default){_TextInputState.default.unregisterInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('unregisterInput'));}}};var currentlyFocusedInput=exports.currentlyFocusedInput=function currentlyFocusedInput(){if('currentlyFocusedInput'in _TextInputState.default){return _TextInputState.default.currentlyFocusedInput();}else{if(__DEV__){console.log(unsupportedMethodMessage('currentlyFocusedInput'));}}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Components/TextInput/TextInputState'). Source: /Users/
|
|
1
|
+
var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.createError=createError;exports.unsupportedMethodMessage=exports.unregisterInput=exports.shouldAttributeExpo=exports.registerInput=exports.isiOS=exports.isAndroid=exports.focusInput=exports.currentlyFocusedInput=void 0;var _reactNative=require("react-native");var _TextInputState=_interopRequireDefault(require("react-native/Libraries/Components/TextInput/TextInputState"));var shouldAttributeExpo=exports.shouldAttributeExpo=function shouldAttributeExpo(){try{return!!_reactNative.NativeModules.NativeUnimoduleProxy;}catch(_unused){return false;}};var isiOS=exports.isiOS=_reactNative.Platform.OS==='ios';var isAndroid=exports.isAndroid=_reactNative.Platform.OS==='android';function createError(error){return{code:error.code,message:error.message,localizedMessage:error.localizedMessage,declineCode:error.declineCode,stripeErrorCode:error.stripeErrorCode,type:error.type};}var unsupportedMethodMessage=exports.unsupportedMethodMessage=function unsupportedMethodMessage(field){return`${field} method is not supported. Consider to upgrade react-native version to 0.63.x or higher`;};var focusInput=exports.focusInput=function focusInput(ref){if('focusInput'in _TextInputState.default){_TextInputState.default.focusInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('focusInput'));}}};var registerInput=exports.registerInput=function registerInput(ref){if('registerInput'in _TextInputState.default){_TextInputState.default.registerInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('registerInput'));}}};var unregisterInput=exports.unregisterInput=function unregisterInput(ref){if('unregisterInput'in _TextInputState.default){_TextInputState.default.unregisterInput(ref);}else{if(__DEV__){console.log(unsupportedMethodMessage('unregisterInput'));}}};var currentlyFocusedInput=exports.currentlyFocusedInput=function currentlyFocusedInput(){if('currentlyFocusedInput'in _TextInputState.default){return _TextInputState.default.currentlyFocusedInput();}else{if(__DEV__){console.log(unsupportedMethodMessage('currentlyFocusedInput'));}}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Components/TextInput/TextInputState'). Source: /Users/tianzhao/stripe/stripe-react-native/src/helpers.ts 6:0");
|
|
2
2
|
//# sourceMappingURL=helpers.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='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/
|
|
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/tianzhao/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/
|
|
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/tianzhao/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/
|
|
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/tianzhao/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/
|
|
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/tianzhao/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/
|
|
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/tianzhao/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/tianzhao/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,
|
|
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,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=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/
|
|
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/tianzhao/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/tianzhao/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,
|
|
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,+MACAD,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/
|
|
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/tianzhao/stripe/stripe-react-native/src/specs/NativeConnectAccountOnboardingView.ts 3:0");
|
|
2
2
|
//# sourceMappingURL=NativeConnectAccountOnboardingView.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/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",[]);}};console.warn("Deep imports from the 'react-native' package are deprecated ('react-native/Libraries/Utilities/codegenNativeCommands'). Source: /Users/
|
|
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/tianzhao/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/tianzhao/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","console","warn"],"sourceRoot":"../../../src","sources":["specs/NativeEmbeddedPaymentElement.ts"],"mappings":"mNACA,IAAAA,sBAAA,CAAAC,sBAAA,CAAAC,OAAA,4DACA,IAAAC,uBAAA,CAAAF,sBAAA,CAAAC,OAAA,
|
|
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,6NACAD,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/
|
|
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/tianzhao/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/
|
|
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/tianzhao/stripe/stripe-react-native/src/specs/NativeNavigationBar.ts 3:0");
|
|
2
2
|
//# sourceMappingURL=NativeNavigationBar.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/
|
|
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/tianzhao/stripe/stripe-react-native/src/specs/NativeStripeContainer.ts 2:0");
|
|
2
2
|
//# sourceMappingURL=NativeStripeContainer.js.map
|
|
@@ -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/gbirch/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){return getElementOrThrow(elementRef).update(cfg);},[]);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/tianzhao/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};}
|
|
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","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,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAC,SAAA,MAAAC,OAAA,CAAAV,CAAA,YAAAA,CAAA,mBAAAA,CAAA,qBAAAA,CAAA,QAAAQ,CAAA,IAAAF,CAAA,CAAAL,CAAA,CAAAG,CAAA,CAAAD,CAAA,KAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,SAA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,CAACG,MAAM,CACnB,GAAI,CAAA1B,KAAK,CAAC,uDAAuD,CACnE,CAAC,CACH,CACF,CAGA,MAAO,CAAAH,iBAAiB,CAACxB,UAAU,CAAC,CAACnD,OAAO,CAAC,CAAC,CAChD,CAAC,CAAE,CAACgD,SAAS,CAAC,CAAC,CACf,GAAM,CAAAtD,MAAM,CAAG,GAAAwG,kBAAW,EACxB,SAACO,GAA0C,QACzC,CAAA9B,iBAAiB,CAACxB,UAAU,CAAC,CAACzD,MAAM,CAAC+G,GAAG,CAAC,GAC3C,EACF,CAAC,CACD,GAAM,CAAAxG,kBAAkB,CAAG,GAAAiG,kBAAW,EAAC,UAAqB,CAC1D,GAAIlD,SAAS,CAAE,CACb,GAAM,CAAA0D,GAAG,CAAG,GAAAC,2BAAc,EAACxC,OAAO,CAACU,OAAO,CAAC,CAC3C,GAAI6B,GAAG,EAAI,IAAI,CAAE,CACf,MAAO,CAAAL,OAAO,CAACG,MAAM,CAAC,GAAI,CAAA1B,KAAK,CAAC,oCAAoC,CAAC,CAAC,CACxE,CACA,MAAO,CAAAtF,8BAAqB,CAACU,0BAA0B,CAACwG,GAAG,CAAC,CAC9D,CAGA/B,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","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,O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