@spare-technologies/spare-link 0.1.0-beta.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +119 -81
- package/lib/commonjs/core/models/payment-return-params.js +245 -20
- package/lib/commonjs/core/models/payment-return-params.js.map +1 -1
- package/lib/commonjs/core/models/pending-session-record.js +2 -0
- package/lib/commonjs/core/models/pending-session-record.js.map +1 -0
- package/lib/commonjs/core/services/hosted-flow-controller.js +333 -0
- package/lib/commonjs/core/services/hosted-flow-controller.js.map +1 -0
- package/lib/commonjs/core/services/hosted-flow-state.js +96 -0
- package/lib/commonjs/core/services/hosted-flow-state.js.map +1 -0
- package/lib/commonjs/index.js +42 -164
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internal/hosted/bridge-message.js +107 -0
- package/lib/commonjs/internal/hosted/bridge-message.js.map +1 -0
- package/lib/commonjs/internal/hosted/hosted-url.js +41 -0
- package/lib/commonjs/internal/hosted/hosted-url.js.map +1 -0
- package/lib/commonjs/internal/index.js +0 -7
- package/lib/commonjs/internal/index.js.map +1 -1
- package/lib/commonjs/internal/redact-uri.js +59 -15
- package/lib/commonjs/internal/redact-uri.js.map +1 -1
- package/lib/commonjs/internal/secure-store-pending-session-store.js +20 -25
- package/lib/commonjs/internal/secure-store-pending-session-store.js.map +1 -1
- package/lib/commonjs/internal/url-parts.js +145 -0
- package/lib/commonjs/internal/url-parts.js.map +1 -0
- package/lib/commonjs/public/index.js +0 -37
- package/lib/commonjs/public/index.js.map +1 -1
- package/lib/commonjs/public/payment-result.js +16 -4
- package/lib/commonjs/public/payment-result.js.map +1 -1
- package/lib/commonjs/public/recovery-result.js +7 -18
- package/lib/commonjs/public/recovery-result.js.map +1 -1
- package/lib/commonjs/public/spare-link-config.js +41 -16
- package/lib/commonjs/public/spare-link-config.js.map +1 -1
- package/lib/commonjs/public/spare-link-event.js +27 -33
- package/lib/commonjs/public/spare-link-event.js.map +1 -1
- package/lib/commonjs/public/spare-link-instance.js +67 -77
- package/lib/commonjs/public/spare-link-instance.js.map +1 -1
- package/lib/commonjs/public/spare-link-session.js +2 -9
- package/lib/commonjs/public/spare-link-session.js.map +1 -1
- package/lib/commonjs/public/spare-link.js +0 -12
- package/lib/commonjs/public/spare-link.js.map +1 -1
- package/lib/commonjs/ui/hooks/{use-payment-flow-state.js → use-hosted-flow-state.js} +4 -4
- package/lib/commonjs/ui/hooks/use-hosted-flow-state.js.map +1 -0
- package/lib/commonjs/ui/hosted/hosted-payment-page.js +177 -0
- package/lib/commonjs/ui/hosted/hosted-payment-page.js.map +1 -0
- package/lib/commonjs/ui/hosted/hosted-payment-webview.js +168 -0
- package/lib/commonjs/ui/hosted/hosted-payment-webview.js.map +1 -0
- package/lib/commonjs/ui/screens/index.js +3 -17
- package/lib/commonjs/ui/screens/index.js.map +1 -1
- package/lib/commonjs/ui/screens/page-unavailable-screen.js +101 -0
- package/lib/commonjs/ui/screens/page-unavailable-screen.js.map +1 -0
- package/lib/commonjs/ui/spare-link-host.js +220 -234
- package/lib/commonjs/ui/spare-link-host.js.map +1 -1
- package/lib/commonjs/ui/widgets/index.js +3 -10
- package/lib/commonjs/ui/widgets/index.js.map +1 -1
- package/lib/commonjs/version.js +7 -5
- package/lib/commonjs/version.js.map +1 -1
- package/lib/module/core/models/payment-return-params.js +235 -20
- package/lib/module/core/models/payment-return-params.js.map +1 -1
- package/lib/module/core/models/pending-session-record.js +2 -0
- package/lib/module/core/models/pending-session-record.js.map +1 -0
- package/lib/module/core/services/hosted-flow-controller.js +328 -0
- package/lib/module/core/services/hosted-flow-controller.js.map +1 -0
- package/lib/module/core/services/hosted-flow-state.js +91 -0
- package/lib/module/core/services/hosted-flow-state.js.map +1 -0
- package/lib/module/index.js +8 -22
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/hosted/bridge-message.js +104 -0
- package/lib/module/internal/hosted/bridge-message.js.map +1 -0
- package/lib/module/internal/hosted/hosted-url.js +36 -0
- package/lib/module/internal/hosted/hosted-url.js.map +1 -0
- package/lib/module/internal/index.js +0 -1
- package/lib/module/internal/index.js.map +1 -1
- package/lib/module/internal/redact-uri.js +59 -15
- package/lib/module/internal/redact-uri.js.map +1 -1
- package/lib/module/internal/secure-store-pending-session-store.js +20 -25
- package/lib/module/internal/secure-store-pending-session-store.js.map +1 -1
- package/lib/module/internal/url-parts.js +139 -0
- package/lib/module/internal/url-parts.js.map +1 -0
- package/lib/module/public/index.js +2 -3
- package/lib/module/public/index.js.map +1 -1
- package/lib/module/public/payment-result.js +16 -4
- package/lib/module/public/payment-result.js.map +1 -1
- package/lib/module/public/recovery-result.js +7 -17
- package/lib/module/public/recovery-result.js.map +1 -1
- package/lib/module/public/spare-link-config.js +42 -15
- package/lib/module/public/spare-link-config.js.map +1 -1
- package/lib/module/public/spare-link-event.js +27 -33
- package/lib/module/public/spare-link-event.js.map +1 -1
- package/lib/module/public/spare-link-instance.js +68 -72
- package/lib/module/public/spare-link-instance.js.map +1 -1
- package/lib/module/public/spare-link-session.js +2 -9
- package/lib/module/public/spare-link-session.js.map +1 -1
- package/lib/module/public/spare-link.js +1 -1
- package/lib/module/public/spare-link.js.map +1 -1
- package/lib/module/ui/hooks/{use-payment-flow-state.js → use-hosted-flow-state.js} +3 -3
- package/lib/module/ui/hooks/use-hosted-flow-state.js.map +1 -0
- package/lib/module/ui/hosted/hosted-payment-page.js +175 -0
- package/lib/module/ui/hosted/hosted-payment-page.js.map +1 -0
- package/lib/module/ui/hosted/hosted-payment-webview.js +163 -0
- package/lib/module/ui/hosted/hosted-payment-webview.js.map +1 -0
- package/lib/module/ui/screens/index.js +1 -3
- package/lib/module/ui/screens/index.js.map +1 -1
- package/lib/module/ui/screens/page-unavailable-screen.js +97 -0
- package/lib/module/ui/screens/page-unavailable-screen.js.map +1 -0
- package/lib/module/ui/spare-link-host.js +221 -236
- package/lib/module/ui/spare-link-host.js.map +1 -1
- package/lib/module/ui/widgets/index.js +1 -2
- package/lib/module/ui/widgets/index.js.map +1 -1
- package/lib/module/version.js +7 -5
- package/lib/module/version.js.map +1 -1
- package/lib/typescript/commonjs/core/models/index.d.ts +1 -123
- package/lib/typescript/commonjs/core/models/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/core/models/payment-return-params.d.ts +91 -8
- package/lib/typescript/commonjs/core/models/payment-return-params.d.ts.map +1 -1
- package/lib/typescript/commonjs/core/models/pending-session-record.d.ts +11 -0
- package/lib/typescript/commonjs/core/models/pending-session-record.d.ts.map +1 -0
- package/lib/typescript/commonjs/core/services/hosted-flow-controller.d.ts +119 -0
- package/lib/typescript/commonjs/core/services/hosted-flow-controller.d.ts.map +1 -0
- package/lib/typescript/commonjs/core/services/hosted-flow-state.d.ts +75 -0
- package/lib/typescript/commonjs/core/services/hosted-flow-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +5 -14
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/internal/hosted/bridge-message.d.ts +44 -0
- package/lib/typescript/commonjs/internal/hosted/bridge-message.d.ts.map +1 -0
- package/lib/typescript/commonjs/internal/hosted/hosted-url.d.ts +30 -0
- package/lib/typescript/commonjs/internal/hosted/hosted-url.d.ts.map +1 -0
- package/lib/typescript/commonjs/internal/index.d.ts +0 -1
- package/lib/typescript/commonjs/internal/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/internal/redact-uri.d.ts +21 -1
- package/lib/typescript/commonjs/internal/redact-uri.d.ts.map +1 -1
- package/lib/typescript/commonjs/internal/secure-store-pending-session-store.d.ts +3 -2
- package/lib/typescript/commonjs/internal/secure-store-pending-session-store.d.ts.map +1 -1
- package/lib/typescript/commonjs/internal/url-parts.d.ts +46 -0
- package/lib/typescript/commonjs/internal/url-parts.d.ts.map +1 -0
- package/lib/typescript/commonjs/public/index.d.ts +4 -6
- package/lib/typescript/commonjs/public/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/payment-result.d.ts +50 -12
- package/lib/typescript/commonjs/public/payment-result.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/recovery-result.d.ts +11 -20
- package/lib/typescript/commonjs/public/recovery-result.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-config.d.ts +13 -31
- package/lib/typescript/commonjs/public/spare-link-config.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-event.d.ts +29 -31
- package/lib/typescript/commonjs/public/spare-link-event.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-host-api.d.ts +1 -12
- package/lib/typescript/commonjs/public/spare-link-host-api.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-instance.d.ts +26 -20
- package/lib/typescript/commonjs/public/spare-link-instance.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link-session.d.ts +3 -8
- package/lib/typescript/commonjs/public/spare-link-session.d.ts.map +1 -1
- package/lib/typescript/commonjs/public/spare-link.d.ts +1 -1
- package/lib/typescript/commonjs/public/spare-link.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/use-hosted-flow-state.d.ts +9 -0
- package/lib/typescript/commonjs/ui/hooks/use-hosted-flow-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hosted/hosted-payment-page.d.ts +17 -0
- package/lib/typescript/commonjs/ui/hosted/hosted-payment-page.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/hosted/hosted-payment-webview.d.ts +43 -0
- package/lib/typescript/commonjs/ui/hosted/hosted-payment-webview.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/screens/index.d.ts +1 -3
- package/lib/typescript/commonjs/ui/screens/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/page-unavailable-screen.d.ts +18 -0
- package/lib/typescript/commonjs/ui/screens/page-unavailable-screen.d.ts.map +1 -0
- package/lib/typescript/commonjs/ui/spare-link-host.d.ts +4 -5
- package/lib/typescript/commonjs/ui/spare-link-host.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/widgets/index.d.ts +1 -2
- package/lib/typescript/commonjs/ui/widgets/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/version.d.ts +7 -5
- package/lib/typescript/commonjs/version.d.ts.map +1 -1
- package/lib/typescript/module/core/models/index.d.ts +1 -123
- package/lib/typescript/module/core/models/index.d.ts.map +1 -1
- package/lib/typescript/module/core/models/payment-return-params.d.ts +91 -8
- package/lib/typescript/module/core/models/payment-return-params.d.ts.map +1 -1
- package/lib/typescript/module/core/models/pending-session-record.d.ts +11 -0
- package/lib/typescript/module/core/models/pending-session-record.d.ts.map +1 -0
- package/lib/typescript/module/core/services/hosted-flow-controller.d.ts +119 -0
- package/lib/typescript/module/core/services/hosted-flow-controller.d.ts.map +1 -0
- package/lib/typescript/module/core/services/hosted-flow-state.d.ts +75 -0
- package/lib/typescript/module/core/services/hosted-flow-state.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +5 -14
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/internal/hosted/bridge-message.d.ts +44 -0
- package/lib/typescript/module/internal/hosted/bridge-message.d.ts.map +1 -0
- package/lib/typescript/module/internal/hosted/hosted-url.d.ts +30 -0
- package/lib/typescript/module/internal/hosted/hosted-url.d.ts.map +1 -0
- package/lib/typescript/module/internal/index.d.ts +0 -1
- package/lib/typescript/module/internal/index.d.ts.map +1 -1
- package/lib/typescript/module/internal/redact-uri.d.ts +21 -1
- package/lib/typescript/module/internal/redact-uri.d.ts.map +1 -1
- package/lib/typescript/module/internal/secure-store-pending-session-store.d.ts +3 -2
- package/lib/typescript/module/internal/secure-store-pending-session-store.d.ts.map +1 -1
- package/lib/typescript/module/internal/url-parts.d.ts +46 -0
- package/lib/typescript/module/internal/url-parts.d.ts.map +1 -0
- package/lib/typescript/module/public/index.d.ts +4 -6
- package/lib/typescript/module/public/index.d.ts.map +1 -1
- package/lib/typescript/module/public/payment-result.d.ts +50 -12
- package/lib/typescript/module/public/payment-result.d.ts.map +1 -1
- package/lib/typescript/module/public/recovery-result.d.ts +11 -20
- package/lib/typescript/module/public/recovery-result.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-config.d.ts +13 -31
- package/lib/typescript/module/public/spare-link-config.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-event.d.ts +29 -31
- package/lib/typescript/module/public/spare-link-event.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-host-api.d.ts +1 -12
- package/lib/typescript/module/public/spare-link-host-api.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-instance.d.ts +26 -20
- package/lib/typescript/module/public/spare-link-instance.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link-session.d.ts +3 -8
- package/lib/typescript/module/public/spare-link-session.d.ts.map +1 -1
- package/lib/typescript/module/public/spare-link.d.ts +1 -1
- package/lib/typescript/module/public/spare-link.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/use-hosted-flow-state.d.ts +9 -0
- package/lib/typescript/module/ui/hooks/use-hosted-flow-state.d.ts.map +1 -0
- package/lib/typescript/module/ui/hosted/hosted-payment-page.d.ts +17 -0
- package/lib/typescript/module/ui/hosted/hosted-payment-page.d.ts.map +1 -0
- package/lib/typescript/module/ui/hosted/hosted-payment-webview.d.ts +43 -0
- package/lib/typescript/module/ui/hosted/hosted-payment-webview.d.ts.map +1 -0
- package/lib/typescript/module/ui/screens/index.d.ts +1 -3
- package/lib/typescript/module/ui/screens/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/page-unavailable-screen.d.ts +18 -0
- package/lib/typescript/module/ui/screens/page-unavailable-screen.d.ts.map +1 -0
- package/lib/typescript/module/ui/spare-link-host.d.ts +4 -5
- package/lib/typescript/module/ui/spare-link-host.d.ts.map +1 -1
- package/lib/typescript/module/ui/widgets/index.d.ts +1 -2
- package/lib/typescript/module/ui/widgets/index.d.ts.map +1 -1
- package/lib/typescript/module/version.d.ts +7 -5
- package/lib/typescript/module/version.d.ts.map +1 -1
- package/package.json +24 -23
- package/plugins/with-spare-link.js +6 -26
- package/src/core/models/index.ts +1 -139
- package/src/core/models/payment-return-params.ts +269 -21
- package/src/core/models/pending-session-record.ts +10 -0
- package/src/core/services/hosted-flow-controller.ts +374 -0
- package/src/core/services/hosted-flow-state.ts +123 -0
- package/src/index.ts +20 -89
- package/src/internal/hosted/bridge-message.ts +106 -0
- package/src/internal/hosted/hosted-url.ts +33 -0
- package/src/internal/index.ts +0 -1
- package/src/internal/redact-uri.ts +69 -15
- package/src/internal/secure-store-pending-session-store.ts +28 -49
- package/src/internal/url-parts.ts +134 -0
- package/src/public/index.ts +2 -24
- package/src/public/payment-result.ts +50 -12
- package/src/public/recovery-result.ts +16 -25
- package/src/public/spare-link-config.ts +56 -43
- package/src/public/spare-link-event.ts +33 -42
- package/src/public/spare-link-host-api.ts +1 -14
- package/src/public/spare-link-instance.ts +57 -65
- package/src/public/spare-link-session.ts +4 -16
- package/src/public/spare-link.ts +1 -1
- package/src/ui/hooks/use-hosted-flow-state.ts +16 -0
- package/src/ui/hosted/hosted-payment-page.tsx +178 -0
- package/src/ui/hosted/hosted-payment-webview.tsx +164 -0
- package/src/ui/screens/index.ts +4 -6
- package/src/ui/screens/page-unavailable-screen.tsx +94 -0
- package/src/ui/spare-link-host.tsx +227 -247
- package/src/ui/widgets/index.ts +1 -2
- package/src/version.ts +7 -5
- package/CHANGELOG.md +0 -66
- package/lib/commonjs/core/client/link-api-client.js +0 -297
- package/lib/commonjs/core/client/link-api-client.js.map +0 -1
- package/lib/commonjs/core/errors/payment-api-error.js +0 -35
- package/lib/commonjs/core/errors/payment-api-error.js.map +0 -1
- package/lib/commonjs/core/models/link-session-status.js +0 -14
- package/lib/commonjs/core/models/link-session-status.js.map +0 -1
- package/lib/commonjs/core/models/payment-type.js +0 -45
- package/lib/commonjs/core/models/payment-type.js.map +0 -1
- package/lib/commonjs/core/models/wire-mappers.js +0 -277
- package/lib/commonjs/core/models/wire-mappers.js.map +0 -1
- package/lib/commonjs/core/services/consent-presenter.js +0 -150
- package/lib/commonjs/core/services/consent-presenter.js.map +0 -1
- package/lib/commonjs/core/services/execute-resume-if-needed.js +0 -216
- package/lib/commonjs/core/services/execute-resume-if-needed.js.map +0 -1
- package/lib/commonjs/core/services/multi-payment-rules-presenter.js +0 -151
- package/lib/commonjs/core/services/multi-payment-rules-presenter.js.map +0 -1
- package/lib/commonjs/core/services/payment-flow-controller.js +0 -547
- package/lib/commonjs/core/services/payment-flow-controller.js.map +0 -1
- package/lib/commonjs/core/services/payment-flow-state.js +0 -110
- package/lib/commonjs/core/services/payment-flow-state.js.map +0 -1
- package/lib/commonjs/core/services/payment-result-mapper.js +0 -49
- package/lib/commonjs/core/services/payment-result-mapper.js.map +0 -1
- package/lib/commonjs/core/services/presentation-utils.js +0 -11
- package/lib/commonjs/core/services/presentation-utils.js.map +0 -1
- package/lib/commonjs/core/services/redirect-buffer.js +0 -40
- package/lib/commonjs/core/services/redirect-buffer.js.map +0 -1
- package/lib/commonjs/core/services/user-friendly-messages.js +0 -46
- package/lib/commonjs/core/services/user-friendly-messages.js.map +0 -1
- package/lib/commonjs/internal/telemetry-collector.js +0 -80
- package/lib/commonjs/internal/telemetry-collector.js.map +0 -1
- package/lib/commonjs/public/constants.js +0 -21
- package/lib/commonjs/public/constants.js.map +0 -1
- package/lib/commonjs/public/spare-link-callbacks.js +0 -6
- package/lib/commonjs/public/spare-link-callbacks.js.map +0 -1
- package/lib/commonjs/ui/consent/charge-bearer-display.js +0 -99
- package/lib/commonjs/ui/consent/charge-bearer-display.js.map +0 -1
- package/lib/commonjs/ui/consent/consent-accordion.js +0 -94
- package/lib/commonjs/ui/consent/consent-accordion.js.map +0 -1
- package/lib/commonjs/ui/consent/consent-summary-section.js +0 -27
- package/lib/commonjs/ui/consent/consent-summary-section.js.map +0 -1
- package/lib/commonjs/ui/consent/cop-information.js +0 -168
- package/lib/commonjs/ui/consent/cop-information.js.map +0 -1
- package/lib/commonjs/ui/consent/international-payment-summary.js +0 -98
- package/lib/commonjs/ui/consent/international-payment-summary.js.map +0 -1
- package/lib/commonjs/ui/consent/label-value-rows.js +0 -59
- package/lib/commonjs/ui/consent/label-value-rows.js.map +0 -1
- package/lib/commonjs/ui/consent/multi-payment-rules-list.js +0 -130
- package/lib/commonjs/ui/consent/multi-payment-rules-list.js.map +0 -1
- package/lib/commonjs/ui/consent/multi-payment-summary.js +0 -99
- package/lib/commonjs/ui/consent/multi-payment-summary.js.map +0 -1
- package/lib/commonjs/ui/consent/single-payment-summary.js +0 -158
- package/lib/commonjs/ui/consent/single-payment-summary.js.map +0 -1
- package/lib/commonjs/ui/consent/terms-link.js +0 -35
- package/lib/commonjs/ui/consent/terms-link.js.map +0 -1
- package/lib/commonjs/ui/hooks/use-payment-flow-state.js.map +0 -1
- package/lib/commonjs/ui/payment-flow-page.js +0 -235
- package/lib/commonjs/ui/payment-flow-page.js.map +0 -1
- package/lib/commonjs/ui/screens/bank-selection-screen.js +0 -215
- package/lib/commonjs/ui/screens/bank-selection-screen.js.map +0 -1
- package/lib/commonjs/ui/screens/consent-details-screen.js +0 -124
- package/lib/commonjs/ui/screens/consent-details-screen.js.map +0 -1
- package/lib/commonjs/ui/screens/mandate-setup-success-screen.js +0 -79
- package/lib/commonjs/ui/screens/mandate-setup-success-screen.js.map +0 -1
- package/lib/commonjs/ui/widgets/layout-w-header.js +0 -106
- package/lib/commonjs/ui/widgets/layout-w-header.js.map +0 -1
- package/lib/commonjs/ui/widgets/stepper.js +0 -124
- package/lib/commonjs/ui/widgets/stepper.js.map +0 -1
- package/lib/module/core/client/link-api-client.js +0 -292
- package/lib/module/core/client/link-api-client.js.map +0 -1
- package/lib/module/core/errors/payment-api-error.js +0 -29
- package/lib/module/core/errors/payment-api-error.js.map +0 -1
- package/lib/module/core/models/link-session-status.js +0 -10
- package/lib/module/core/models/link-session-status.js.map +0 -1
- package/lib/module/core/models/payment-type.js +0 -36
- package/lib/module/core/models/payment-type.js.map +0 -1
- package/lib/module/core/models/wire-mappers.js +0 -263
- package/lib/module/core/models/wire-mappers.js.map +0 -1
- package/lib/module/core/services/consent-presenter.js +0 -140
- package/lib/module/core/services/consent-presenter.js.map +0 -1
- package/lib/module/core/services/execute-resume-if-needed.js +0 -211
- package/lib/module/core/services/execute-resume-if-needed.js.map +0 -1
- package/lib/module/core/services/multi-payment-rules-presenter.js +0 -146
- package/lib/module/core/services/multi-payment-rules-presenter.js.map +0 -1
- package/lib/module/core/services/payment-flow-controller.js +0 -544
- package/lib/module/core/services/payment-flow-controller.js.map +0 -1
- package/lib/module/core/services/payment-flow-state.js +0 -106
- package/lib/module/core/services/payment-flow-state.js.map +0 -1
- package/lib/module/core/services/payment-result-mapper.js +0 -45
- package/lib/module/core/services/payment-result-mapper.js.map +0 -1
- package/lib/module/core/services/presentation-utils.js +0 -7
- package/lib/module/core/services/presentation-utils.js.map +0 -1
- package/lib/module/core/services/redirect-buffer.js +0 -33
- package/lib/module/core/services/redirect-buffer.js.map +0 -1
- package/lib/module/core/services/user-friendly-messages.js +0 -42
- package/lib/module/core/services/user-friendly-messages.js.map +0 -1
- package/lib/module/internal/telemetry-collector.js +0 -75
- package/lib/module/internal/telemetry-collector.js.map +0 -1
- package/lib/module/public/constants.js +0 -17
- package/lib/module/public/constants.js.map +0 -1
- package/lib/module/public/spare-link-callbacks.js +0 -4
- package/lib/module/public/spare-link-callbacks.js.map +0 -1
- package/lib/module/ui/consent/charge-bearer-display.js +0 -95
- package/lib/module/ui/consent/charge-bearer-display.js.map +0 -1
- package/lib/module/ui/consent/consent-accordion.js +0 -90
- package/lib/module/ui/consent/consent-accordion.js.map +0 -1
- package/lib/module/ui/consent/consent-summary-section.js +0 -23
- package/lib/module/ui/consent/consent-summary-section.js.map +0 -1
- package/lib/module/ui/consent/cop-information.js +0 -165
- package/lib/module/ui/consent/cop-information.js.map +0 -1
- package/lib/module/ui/consent/international-payment-summary.js +0 -94
- package/lib/module/ui/consent/international-payment-summary.js.map +0 -1
- package/lib/module/ui/consent/label-value-rows.js +0 -55
- package/lib/module/ui/consent/label-value-rows.js.map +0 -1
- package/lib/module/ui/consent/multi-payment-rules-list.js +0 -125
- package/lib/module/ui/consent/multi-payment-rules-list.js.map +0 -1
- package/lib/module/ui/consent/multi-payment-summary.js +0 -95
- package/lib/module/ui/consent/multi-payment-summary.js.map +0 -1
- package/lib/module/ui/consent/single-payment-summary.js +0 -154
- package/lib/module/ui/consent/single-payment-summary.js.map +0 -1
- package/lib/module/ui/consent/terms-link.js +0 -31
- package/lib/module/ui/consent/terms-link.js.map +0 -1
- package/lib/module/ui/hooks/use-payment-flow-state.js.map +0 -1
- package/lib/module/ui/payment-flow-page.js +0 -232
- package/lib/module/ui/payment-flow-page.js.map +0 -1
- package/lib/module/ui/screens/bank-selection-screen.js +0 -211
- package/lib/module/ui/screens/bank-selection-screen.js.map +0 -1
- package/lib/module/ui/screens/consent-details-screen.js +0 -120
- package/lib/module/ui/screens/consent-details-screen.js.map +0 -1
- package/lib/module/ui/screens/mandate-setup-success-screen.js +0 -75
- package/lib/module/ui/screens/mandate-setup-success-screen.js.map +0 -1
- package/lib/module/ui/widgets/layout-w-header.js +0 -102
- package/lib/module/ui/widgets/layout-w-header.js.map +0 -1
- package/lib/module/ui/widgets/stepper.js +0 -120
- package/lib/module/ui/widgets/stepper.js.map +0 -1
- package/lib/typescript/commonjs/core/client/link-api-client.d.ts +0 -70
- package/lib/typescript/commonjs/core/client/link-api-client.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/errors/payment-api-error.d.ts +0 -15
- package/lib/typescript/commonjs/core/errors/payment-api-error.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/models/link-session-status.d.ts +0 -6
- package/lib/typescript/commonjs/core/models/link-session-status.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/models/payment-type.d.ts +0 -18
- package/lib/typescript/commonjs/core/models/payment-type.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/models/wire-mappers.d.ts +0 -19
- package/lib/typescript/commonjs/core/models/wire-mappers.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/consent-presenter.d.ts +0 -67
- package/lib/typescript/commonjs/core/services/consent-presenter.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/execute-resume-if-needed.d.ts +0 -32
- package/lib/typescript/commonjs/core/services/execute-resume-if-needed.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/multi-payment-rules-presenter.d.ts +0 -9
- package/lib/typescript/commonjs/core/services/multi-payment-rules-presenter.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/payment-flow-controller.d.ts +0 -146
- package/lib/typescript/commonjs/core/services/payment-flow-controller.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/payment-flow-state.d.ts +0 -64
- package/lib/typescript/commonjs/core/services/payment-flow-state.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/payment-result-mapper.d.ts +0 -5
- package/lib/typescript/commonjs/core/services/payment-result-mapper.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/presentation-utils.d.ts +0 -5
- package/lib/typescript/commonjs/core/services/presentation-utils.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/redirect-buffer.d.ts +0 -6
- package/lib/typescript/commonjs/core/services/redirect-buffer.d.ts.map +0 -1
- package/lib/typescript/commonjs/core/services/user-friendly-messages.d.ts +0 -6
- package/lib/typescript/commonjs/core/services/user-friendly-messages.d.ts.map +0 -1
- package/lib/typescript/commonjs/internal/telemetry-collector.d.ts +0 -2
- package/lib/typescript/commonjs/internal/telemetry-collector.d.ts.map +0 -1
- package/lib/typescript/commonjs/public/constants.d.ts +0 -12
- package/lib/typescript/commonjs/public/constants.d.ts.map +0 -1
- package/lib/typescript/commonjs/public/spare-link-callbacks.d.ts +0 -14
- package/lib/typescript/commonjs/public/spare-link-callbacks.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/charge-bearer-display.d.ts +0 -5
- package/lib/typescript/commonjs/ui/consent/charge-bearer-display.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/consent-accordion.d.ts +0 -10
- package/lib/typescript/commonjs/ui/consent/consent-accordion.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/consent-summary-section.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/consent-summary-section.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/cop-information.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/cop-information.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/international-payment-summary.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/international-payment-summary.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/label-value-rows.d.ts +0 -10
- package/lib/typescript/commonjs/ui/consent/label-value-rows.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/multi-payment-rules-list.d.ts +0 -15
- package/lib/typescript/commonjs/ui/consent/multi-payment-rules-list.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/multi-payment-summary.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/multi-payment-summary.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/single-payment-summary.d.ts +0 -6
- package/lib/typescript/commonjs/ui/consent/single-payment-summary.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/consent/terms-link.d.ts +0 -2
- package/lib/typescript/commonjs/ui/consent/terms-link.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/hooks/use-payment-flow-state.d.ts +0 -9
- package/lib/typescript/commonjs/ui/hooks/use-payment-flow-state.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/payment-flow-page.d.ts +0 -20
- package/lib/typescript/commonjs/ui/payment-flow-page.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/bank-selection-screen.d.ts +0 -15
- package/lib/typescript/commonjs/ui/screens/bank-selection-screen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/consent-details-screen.d.ts +0 -13
- package/lib/typescript/commonjs/ui/screens/consent-details-screen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/screens/mandate-setup-success-screen.d.ts +0 -10
- package/lib/typescript/commonjs/ui/screens/mandate-setup-success-screen.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/widgets/layout-w-header.d.ts +0 -20
- package/lib/typescript/commonjs/ui/widgets/layout-w-header.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/widgets/stepper.d.ts +0 -15
- package/lib/typescript/commonjs/ui/widgets/stepper.d.ts.map +0 -1
- package/lib/typescript/module/core/client/link-api-client.d.ts +0 -70
- package/lib/typescript/module/core/client/link-api-client.d.ts.map +0 -1
- package/lib/typescript/module/core/errors/payment-api-error.d.ts +0 -15
- package/lib/typescript/module/core/errors/payment-api-error.d.ts.map +0 -1
- package/lib/typescript/module/core/models/link-session-status.d.ts +0 -6
- package/lib/typescript/module/core/models/link-session-status.d.ts.map +0 -1
- package/lib/typescript/module/core/models/payment-type.d.ts +0 -18
- package/lib/typescript/module/core/models/payment-type.d.ts.map +0 -1
- package/lib/typescript/module/core/models/wire-mappers.d.ts +0 -19
- package/lib/typescript/module/core/models/wire-mappers.d.ts.map +0 -1
- package/lib/typescript/module/core/services/consent-presenter.d.ts +0 -67
- package/lib/typescript/module/core/services/consent-presenter.d.ts.map +0 -1
- package/lib/typescript/module/core/services/execute-resume-if-needed.d.ts +0 -32
- package/lib/typescript/module/core/services/execute-resume-if-needed.d.ts.map +0 -1
- package/lib/typescript/module/core/services/multi-payment-rules-presenter.d.ts +0 -9
- package/lib/typescript/module/core/services/multi-payment-rules-presenter.d.ts.map +0 -1
- package/lib/typescript/module/core/services/payment-flow-controller.d.ts +0 -146
- package/lib/typescript/module/core/services/payment-flow-controller.d.ts.map +0 -1
- package/lib/typescript/module/core/services/payment-flow-state.d.ts +0 -64
- package/lib/typescript/module/core/services/payment-flow-state.d.ts.map +0 -1
- package/lib/typescript/module/core/services/payment-result-mapper.d.ts +0 -5
- package/lib/typescript/module/core/services/payment-result-mapper.d.ts.map +0 -1
- package/lib/typescript/module/core/services/presentation-utils.d.ts +0 -5
- package/lib/typescript/module/core/services/presentation-utils.d.ts.map +0 -1
- package/lib/typescript/module/core/services/redirect-buffer.d.ts +0 -6
- package/lib/typescript/module/core/services/redirect-buffer.d.ts.map +0 -1
- package/lib/typescript/module/core/services/user-friendly-messages.d.ts +0 -6
- package/lib/typescript/module/core/services/user-friendly-messages.d.ts.map +0 -1
- package/lib/typescript/module/internal/telemetry-collector.d.ts +0 -2
- package/lib/typescript/module/internal/telemetry-collector.d.ts.map +0 -1
- package/lib/typescript/module/public/constants.d.ts +0 -12
- package/lib/typescript/module/public/constants.d.ts.map +0 -1
- package/lib/typescript/module/public/spare-link-callbacks.d.ts +0 -14
- package/lib/typescript/module/public/spare-link-callbacks.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/charge-bearer-display.d.ts +0 -5
- package/lib/typescript/module/ui/consent/charge-bearer-display.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/consent-accordion.d.ts +0 -10
- package/lib/typescript/module/ui/consent/consent-accordion.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/consent-summary-section.d.ts +0 -6
- package/lib/typescript/module/ui/consent/consent-summary-section.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/cop-information.d.ts +0 -6
- package/lib/typescript/module/ui/consent/cop-information.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/international-payment-summary.d.ts +0 -6
- package/lib/typescript/module/ui/consent/international-payment-summary.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/label-value-rows.d.ts +0 -10
- package/lib/typescript/module/ui/consent/label-value-rows.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/multi-payment-rules-list.d.ts +0 -15
- package/lib/typescript/module/ui/consent/multi-payment-rules-list.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/multi-payment-summary.d.ts +0 -6
- package/lib/typescript/module/ui/consent/multi-payment-summary.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/single-payment-summary.d.ts +0 -6
- package/lib/typescript/module/ui/consent/single-payment-summary.d.ts.map +0 -1
- package/lib/typescript/module/ui/consent/terms-link.d.ts +0 -2
- package/lib/typescript/module/ui/consent/terms-link.d.ts.map +0 -1
- package/lib/typescript/module/ui/hooks/use-payment-flow-state.d.ts +0 -9
- package/lib/typescript/module/ui/hooks/use-payment-flow-state.d.ts.map +0 -1
- package/lib/typescript/module/ui/payment-flow-page.d.ts +0 -20
- package/lib/typescript/module/ui/payment-flow-page.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/bank-selection-screen.d.ts +0 -15
- package/lib/typescript/module/ui/screens/bank-selection-screen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/consent-details-screen.d.ts +0 -13
- package/lib/typescript/module/ui/screens/consent-details-screen.d.ts.map +0 -1
- package/lib/typescript/module/ui/screens/mandate-setup-success-screen.d.ts +0 -10
- package/lib/typescript/module/ui/screens/mandate-setup-success-screen.d.ts.map +0 -1
- package/lib/typescript/module/ui/widgets/layout-w-header.d.ts +0 -20
- package/lib/typescript/module/ui/widgets/layout-w-header.d.ts.map +0 -1
- package/lib/typescript/module/ui/widgets/stepper.d.ts +0 -15
- package/lib/typescript/module/ui/widgets/stepper.d.ts.map +0 -1
- package/src/core/client/link-api-client.ts +0 -414
- package/src/core/errors/payment-api-error.ts +0 -35
- package/src/core/models/link-session-status.ts +0 -7
- package/src/core/models/payment-type.ts +0 -54
- package/src/core/models/wire-mappers.ts +0 -315
- package/src/core/services/consent-presenter.ts +0 -213
- package/src/core/services/execute-resume-if-needed.ts +0 -243
- package/src/core/services/multi-payment-rules-presenter.ts +0 -158
- package/src/core/services/payment-flow-controller.ts +0 -607
- package/src/core/services/payment-flow-state.ts +0 -124
- package/src/core/services/payment-result-mapper.ts +0 -41
- package/src/core/services/presentation-utils.ts +0 -4
- package/src/core/services/redirect-buffer.ts +0 -34
- package/src/core/services/user-friendly-messages.ts +0 -39
- package/src/internal/telemetry-collector.ts +0 -90
- package/src/public/constants.ts +0 -14
- package/src/public/spare-link-callbacks.ts +0 -20
- package/src/ui/consent/charge-bearer-display.tsx +0 -68
- package/src/ui/consent/consent-accordion.tsx +0 -89
- package/src/ui/consent/consent-summary-section.tsx +0 -19
- package/src/ui/consent/cop-information.tsx +0 -121
- package/src/ui/consent/international-payment-summary.tsx +0 -83
- package/src/ui/consent/label-value-rows.tsx +0 -50
- package/src/ui/consent/multi-payment-rules-list.tsx +0 -138
- package/src/ui/consent/multi-payment-summary.tsx +0 -82
- package/src/ui/consent/single-payment-summary.tsx +0 -123
- package/src/ui/consent/terms-link.tsx +0 -27
- package/src/ui/hooks/use-payment-flow-state.ts +0 -16
- package/src/ui/payment-flow-page.tsx +0 -254
- package/src/ui/screens/bank-selection-screen.tsx +0 -209
- package/src/ui/screens/consent-details-screen.tsx +0 -106
- package/src/ui/screens/mandate-setup-success-screen.tsx +0 -72
- package/src/ui/widgets/layout-w-header.tsx +0 -89
- package/src/ui/widgets/stepper.tsx +0 -126
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["EMPTY_PROVIDERS","PaymentFlowStates","exports","idle","phase","providers","hydrating","bankSelection","args","session","consentDetails","selectedProvider","copResponse","isCopLoading","undefined","copApplicable","redirecting","consent","awaitingCallback","providerName","succeeded","exchangeCode","linkSessionId","merchantRef","failed","errorCode","errorMessage","cancelled"],"sourceRoot":"../../../../src","sources":["core/services/payment-flow-state.ts"],"mappings":";;;;;;AAEA;;AAqCA,MAAMA,eAAkC,GAAG,EAAE;AAEtC,MAAMC,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG;EAC/BE,IAAIA,CAAA,EAAqB;IACvB,OAAO;MAAEC,KAAK,EAAE,MAAM;MAAEC,SAAS,EAAEL;IAAgB,CAAC;EACtD,CAAC;EACDM,SAASA,CAAA,EAAqB;IAC5B,OAAO;MAAEF,KAAK,EAAE,WAAW;MAAEC,SAAS,EAAEL;IAAgB,CAAC;EAC3D,CAAC;EACDO,aAAaA,CAACC,IAGb,EAAoB;IACnB,OAAO;MAAEJ,KAAK,EAAE,eAAe;MAAEK,OAAO,EAAED,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exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.paymentResultFromFlowState = paymentResultFromFlowState;
|
|
7
|
-
var _paymentResult = require("../../public/payment-result.js");
|
|
8
|
-
/** Map a terminal controller state to a {@link PaymentResult}. */
|
|
9
|
-
function paymentResultFromFlowState(state, linkToken, bankId) {
|
|
10
|
-
const resolvedBankId = bankId ?? state.selectedProvider?.id;
|
|
11
|
-
switch (state.phase) {
|
|
12
|
-
case 'succeeded':
|
|
13
|
-
return (0, _paymentResult.paymentSuccess)({
|
|
14
|
-
linkToken,
|
|
15
|
-
...(state.exchangeCode ? {
|
|
16
|
-
exchangeCode: state.exchangeCode
|
|
17
|
-
} : {}),
|
|
18
|
-
...(state.linkSessionId ? {
|
|
19
|
-
linkSessionId: state.linkSessionId
|
|
20
|
-
} : {}),
|
|
21
|
-
...(state.merchantRef ? {
|
|
22
|
-
merchantRef: state.merchantRef
|
|
23
|
-
} : {}),
|
|
24
|
-
...(resolvedBankId ? {
|
|
25
|
-
bankId: resolvedBankId
|
|
26
|
-
} : {}),
|
|
27
|
-
resolvedAtMs: Date.now()
|
|
28
|
-
});
|
|
29
|
-
case 'failed':
|
|
30
|
-
return (0, _paymentResult.paymentFailed)({
|
|
31
|
-
linkToken,
|
|
32
|
-
errorCode: state.errorCode ?? 'unknown_error',
|
|
33
|
-
resolvedAtMs: Date.now()
|
|
34
|
-
});
|
|
35
|
-
case 'cancelled':
|
|
36
|
-
return (0, _paymentResult.paymentCancelled)({
|
|
37
|
-
linkToken,
|
|
38
|
-
...(resolvedBankId ? {
|
|
39
|
-
bankId: resolvedBankId
|
|
40
|
-
} : {}),
|
|
41
|
-
resolvedAtMs: Date.now()
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
return (0, _paymentResult.paymentAbandoned)({
|
|
45
|
-
linkToken,
|
|
46
|
-
resolvedAtMs: Date.now()
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=payment-result-mapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_paymentResult","require","paymentResultFromFlowState","state","linkToken","bankId","resolvedBankId","selectedProvider","id","phase","paymentSuccess","exchangeCode","linkSessionId","merchantRef","resolvedAtMs","Date","now","paymentFailed","errorCode","paymentCancelled","paymentAbandoned"],"sourceRoot":"../../../../src","sources":["core/services/payment-result-mapper.ts"],"mappings":";;;;;;AACA,IAAAA,cAAA,GAAAC,OAAA;AAQA;AACO,SAASC,0BAA0BA,CACxCC,KAAuB,EACvBC,SAAiB,EACjBC,MAAe,EACO;EACtB,MAAMC,cAAc,GAAGD,MAAM,IAAIF,KAAK,CAACI,gBAAgB,EAAEC,EAAE;EAC3D,QAAQL,KAAK,CAACM,KAAK;IACjB,KAAK,WAAW;MACd,OAAO,IAAAC,6BAAc,EAAC;QACpBN,SAAS;QACT,IAAID,KAAK,CAACQ,YAAY,GAAG;UAAEA,YAAY,EAAER,KAAK,CAACQ;QAAa,CAAC,GAAG,CAAC,CAAC,CAAC;QACnE,IAAIR,KAAK,CAACS,aAAa,GAAG;UAAEA,aAAa,EAAET,KAAK,CAACS;QAAc,CAAC,GAAG,CAAC,CAAC,CAAC;QACtE,IAAIT,KAAK,CAACU,WAAW,GAAG;UAAEA,WAAW,EAAEV,KAAK,CAACU;QAAY,CAAC,GAAG,CAAC,CAAC,CAAC;QAChE,IAAIP,cAAc,GAAG;UAAED,MAAM,EAAEC;QAAe,CAAC,GAAG,CAAC,CAAC,CAAC;QACrDQ,YAAY,EAAEC,IAAI,CAACC,GAAG,CAAC;MACzB,CAAC,CAAC;IACJ,KAAK,QAAQ;MACX,OAAO,IAAAC,4BAAa,EAAC;QACnBb,SAAS;QACTc,SAAS,EAAEf,KAAK,CAACe,SAAS,IAAI,eAAe;QAC7CJ,YAAY,EAAEC,IAAI,CAACC,GAAG,CAAC;MACzB,CAAC,CAAC;IACJ,KAAK,WAAW;MACd,OAAO,IAAAG,+BAAgB,EAAC;QACtBf,SAAS;QACT,IAAIE,cAAc,GAAG;UAAED,MAAM,EAAEC;QAAe,CAAC,GAAG,CAAC,CAAC,CAAC;QACrDQ,YAAY,EAAEC,IAAI,CAACC,GAAG,CAAC;MACzB,CAAC,CAAC;EACN;EACA,OAAO,IAAAI,+BAAgB,EAAC;IAAEhB,SAAS;IAAEU,YAAY,EAAEC,IAAI,CAACC,GAAG,CAAC;EAAE,CAAC,CAAC;AAClE","ignoreList":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.formatAmount = formatAmount;
|
|
7
|
-
function formatAmount(value) {
|
|
8
|
-
if (!value) return '—';
|
|
9
|
-
return `${value.amount} ${value.currency}`;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=presentation-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["formatAmount","value","amount","currency"],"sourceRoot":"../../../../src","sources":["core/services/presentation-utils.ts"],"mappings":";;;;;;AAAO,SAASA,YAAYA,CAACC,KAAuD,EAAU;EAC5F,IAAI,CAACA,KAAK,EAAE,OAAO,GAAG;EACtB,OAAO,GAAGA,KAAK,CAACC,MAAM,IAAID,KAAK,CAACE,QAAQ,EAAE;AAC5C","ignoreList":[]}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.consumeBufferedRedirect = consumeBufferedRedirect;
|
|
7
|
-
exports.peekBufferedRedirect = peekBufferedRedirect;
|
|
8
|
-
exports.resetRedirectBufferForTests = resetRedirectBufferForTests;
|
|
9
|
-
exports.setBufferedRedirect = setBufferedRedirect;
|
|
10
|
-
/** Module-level buffer for a bank-return URI received before a flow is active. */
|
|
11
|
-
|
|
12
|
-
let buffered = null;
|
|
13
|
-
/** Fingerprint of the last consumed URI — blocks re-buffer after consume / double-delivery. */
|
|
14
|
-
let lastHandledUri = null;
|
|
15
|
-
function setBufferedRedirect(uri) {
|
|
16
|
-
if (uri === buffered?.uri || uri === lastHandledUri) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
buffered = {
|
|
20
|
-
uri
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function peekBufferedRedirect() {
|
|
24
|
-
return buffered?.uri ?? null;
|
|
25
|
-
}
|
|
26
|
-
function consumeBufferedRedirect() {
|
|
27
|
-
const value = buffered?.uri ?? null;
|
|
28
|
-
buffered = null;
|
|
29
|
-
if (value) {
|
|
30
|
-
lastHandledUri = value;
|
|
31
|
-
}
|
|
32
|
-
return value;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/** @internal Clears buffer state between tests. */
|
|
36
|
-
function resetRedirectBufferForTests() {
|
|
37
|
-
buffered = null;
|
|
38
|
-
lastHandledUri = null;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=redirect-buffer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["buffered","lastHandledUri","setBufferedRedirect","uri","peekBufferedRedirect","consumeBufferedRedirect","value","resetRedirectBufferForTests"],"sourceRoot":"../../../../src","sources":["core/services/redirect-buffer.ts"],"mappings":";;;;;;;;;AAAA;;AAKA,IAAIA,QAAiC,GAAG,IAAI;AAC5C;AACA,IAAIC,cAA6B,GAAG,IAAI;AAEjC,SAASC,mBAAmBA,CAACC,GAAW,EAAQ;EACrD,IAAIA,GAAG,KAAKH,QAAQ,EAAEG,GAAG,IAAIA,GAAG,KAAKF,cAAc,EAAE;IACnD;EACF;EACAD,QAAQ,GAAG;IAAEG;EAAI,CAAC;AACpB;AAEO,SAASC,oBAAoBA,CAAA,EAAkB;EACpD,OAAOJ,QAAQ,EAAEG,GAAG,IAAI,IAAI;AAC9B;AAEO,SAASE,uBAAuBA,CAAA,EAAkB;EACvD,MAAMC,KAAK,GAAGN,QAAQ,EAAEG,GAAG,IAAI,IAAI;EACnCH,QAAQ,GAAG,IAAI;EACf,IAAIM,KAAK,EAAE;IACTL,cAAc,GAAGK,KAAK;EACxB;EACA,OAAOA,KAAK;AACd;;AAEA;AACO,SAASC,2BAA2BA,CAAA,EAAS;EAClDP,QAAQ,GAAG,IAAI;EACfC,cAAc,GAAG,IAAI;AACvB","ignoreList":[]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.userFriendlyMessageFor = userFriendlyMessageFor;
|
|
7
|
-
/**
|
|
8
|
-
* Maps machine-readable error codes to safe user-facing copy.
|
|
9
|
-
* Raw backend or bank messages must never be shown directly.
|
|
10
|
-
*/
|
|
11
|
-
function userFriendlyMessageFor(errorCode) {
|
|
12
|
-
switch (errorCode) {
|
|
13
|
-
case 'network_timeout':
|
|
14
|
-
return 'Connection timed out. Please check your connection and try again.';
|
|
15
|
-
case 'session_expired':
|
|
16
|
-
return 'Your payment session has expired. Please start again.';
|
|
17
|
-
case 'session_cancelled':
|
|
18
|
-
return 'The payment was cancelled.';
|
|
19
|
-
case 'session_already_completed':
|
|
20
|
-
return 'This payment has already been completed.';
|
|
21
|
-
case 'invalid_token':
|
|
22
|
-
return 'The payment link is invalid or has expired.';
|
|
23
|
-
case 'bank_unavailable':
|
|
24
|
-
return 'Your bank is temporarily unavailable. Please try again later.';
|
|
25
|
-
case 'consent_creation_failed':
|
|
26
|
-
return 'Unable to initiate the payment. Please try again.';
|
|
27
|
-
case 'rate_limit_exceeded':
|
|
28
|
-
return 'Too many attempts. Please wait a moment and try again.';
|
|
29
|
-
case 'redirect_failed':
|
|
30
|
-
case 'bank_launch_failed':
|
|
31
|
-
return 'Unable to open your bank app. Please try again.';
|
|
32
|
-
case 'session_timeout':
|
|
33
|
-
return 'The payment timed out waiting for your bank. Please try again.';
|
|
34
|
-
case 'recovery_exhausted':
|
|
35
|
-
return 'This payment session could not be recovered. Please start again.';
|
|
36
|
-
case 'hydration_error':
|
|
37
|
-
case 'network_error':
|
|
38
|
-
case 'SP500':
|
|
39
|
-
return 'Your bank could not complete the payment. Please try again.';
|
|
40
|
-
case 'authorize_failed':
|
|
41
|
-
return 'Payment could not be completed. Please try again.';
|
|
42
|
-
default:
|
|
43
|
-
return 'Something went wrong. Please try again.';
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=user-friendly-messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["userFriendlyMessageFor","errorCode"],"sourceRoot":"../../../../src","sources":["core/services/user-friendly-messages.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACO,SAASA,sBAAsBA,CAACC,SAAiB,EAAU;EAChE,QAAQA,SAAS;IACf,KAAK,iBAAiB;MACpB,OAAO,mEAAmE;IAC5E,KAAK,iBAAiB;MACpB,OAAO,uDAAuD;IAChE,KAAK,mBAAmB;MACtB,OAAO,4BAA4B;IACrC,KAAK,2BAA2B;MAC9B,OAAO,0CAA0C;IACnD,KAAK,eAAe;MAClB,OAAO,6CAA6C;IACtD,KAAK,kBAAkB;MACrB,OAAO,+DAA+D;IACxE,KAAK,yBAAyB;MAC5B,OAAO,mDAAmD;IAC5D,KAAK,qBAAqB;MACxB,OAAO,wDAAwD;IACjE,KAAK,iBAAiB;IACtB,KAAK,oBAAoB;MACvB,OAAO,iDAAiD;IAC1D,KAAK,iBAAiB;MACpB,OAAO,gEAAgE;IACzE,KAAK,oBAAoB;MACvB,OAAO,kEAAkE;IAC3E,KAAK,iBAAiB;IACtB,KAAK,eAAe;IACpB,KAAK,OAAO;MACV,OAAO,6DAA6D;IACtE,KAAK,kBAAkB;MACrB,OAAO,mDAAmD;IAC5D;MACE,OAAO,yCAAyC;EACpD;AACF","ignoreList":[]}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.collectTelemetry = collectTelemetry;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _version = require("../version.js");
|
|
9
|
-
var _logger = require("./logger.js");
|
|
10
|
-
/**
|
|
11
|
-
* Best-effort device + geolocation telemetry collector. Each call site catches
|
|
12
|
-
* runtime failures so a permission denial or missing native module degrades
|
|
13
|
-
* to a partial payload instead of throwing.
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
const log = (0, _logger.createLogger)('TelemetryCollector');
|
|
17
|
-
const LOCATION_TIMEOUT_MS = 5_000;
|
|
18
|
-
async function loadDevice() {
|
|
19
|
-
try {
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
21
|
-
return require('expo-device');
|
|
22
|
-
} catch {
|
|
23
|
-
return null;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
async function loadLocation() {
|
|
27
|
-
try {
|
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
29
|
-
return require('expo-location');
|
|
30
|
-
} catch {
|
|
31
|
-
return null;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
async function collectTelemetry() {
|
|
35
|
-
log.fine('collect: gathering device telemetry');
|
|
36
|
-
const [deviceMod, locationMod] = await Promise.all([loadDevice(), loadLocation()]);
|
|
37
|
-
const payload = {
|
|
38
|
-
platform: 'react_native',
|
|
39
|
-
sdk_version: _version.SDK_VERSION,
|
|
40
|
-
os: _reactNative.Platform.OS
|
|
41
|
-
};
|
|
42
|
-
const model = deviceMod?.modelName ?? null;
|
|
43
|
-
const osVersion = deviceMod?.osVersion ?? null;
|
|
44
|
-
if (model && osVersion) {
|
|
45
|
-
payload.device_fingerprint = `${model}_${osVersion}`;
|
|
46
|
-
}
|
|
47
|
-
if (locationMod) {
|
|
48
|
-
try {
|
|
49
|
-
const permission = await locationMod.requestForegroundPermissionsAsync();
|
|
50
|
-
if (permission.status === 'granted') {
|
|
51
|
-
const position = await Promise.race([locationMod.getCurrentPositionAsync({
|
|
52
|
-
accuracy: 3
|
|
53
|
-
}), new Promise(resolve => setTimeout(() => resolve(null), LOCATION_TIMEOUT_MS))]);
|
|
54
|
-
if (position) {
|
|
55
|
-
payload.geolocation = {
|
|
56
|
-
latitude: position.coords.latitude,
|
|
57
|
-
longitude: position.coords.longitude,
|
|
58
|
-
accuracy_m: position.coords.accuracy
|
|
59
|
-
};
|
|
60
|
-
} else {
|
|
61
|
-
payload.geolocation = {
|
|
62
|
-
unavailable: 'timeout'
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
} else {
|
|
66
|
-
payload.geolocation = {
|
|
67
|
-
unavailable: 'permission_denied'
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
} catch (e) {
|
|
71
|
-
log.warning(`collect: geolocation failed — ${e instanceof Error ? e.message : String(e)}`);
|
|
72
|
-
payload.geolocation = {
|
|
73
|
-
unavailable: 'error'
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
log.fine(`collect: payload keys=${Object.keys(payload).join(',')}`);
|
|
78
|
-
return payload;
|
|
79
|
-
}
|
|
80
|
-
//# sourceMappingURL=telemetry-collector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_version","_logger","log","createLogger","LOCATION_TIMEOUT_MS","loadDevice","loadLocation","collectTelemetry","fine","deviceMod","locationMod","Promise","all","payload","platform","sdk_version","SDK_VERSION","os","Platform","OS","model","modelName","osVersion","device_fingerprint","permission","requestForegroundPermissionsAsync","status","position","race","getCurrentPositionAsync","accuracy","resolve","setTimeout","geolocation","latitude","coords","longitude","accuracy_m","unavailable","e","warning","Error","message","String","Object","keys","join"],"sourceRoot":"../../../src","sources":["internal/telemetry-coll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ttempts = exports.DEFAULT_REQUEST_TIMEOUT_MS = exports.DEFAULT_AWAITING_CALLBACK_TIMEOUT_MS = exports.DEFAULT_AWAITING_CALLBACK_POLL_MS = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Max non-terminal `resumeIfNeeded` recovery attempts before the SDK gives up
|
|
9
|
-
* and resolves the flow as failed with code `recovery_exhausted`.
|
|
10
|
-
*/
|
|
11
|
-
const kMaxRecoveryAttempts = exports.kMaxRecoveryAttempts = 3;
|
|
12
|
-
|
|
13
|
-
/** Default per-request HTTP timeout in milliseconds (15s). */
|
|
14
|
-
const DEFAULT_REQUEST_TIMEOUT_MS = exports.DEFAULT_REQUEST_TIMEOUT_MS = 15_000;
|
|
15
|
-
|
|
16
|
-
/** How long the SDK waits for a bank callback before auto-failing with `session_timeout`. */
|
|
17
|
-
const DEFAULT_AWAITING_CALLBACK_TIMEOUT_MS = exports.DEFAULT_AWAITING_CALLBACK_TIMEOUT_MS = 5 * 60 * 1000;
|
|
18
|
-
|
|
19
|
-
/** Polling interval while the flow is in awaitingCallback (status endpoint). */
|
|
20
|
-
const DEFAULT_AWAITING_CALLBACK_POLL_MS = exports.DEFAULT_AWAITING_CALLBACK_POLL_MS = 10_000;
|
|
21
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["kMaxRecoveryAttempts","exports","DEFAULT_REQUEST_TIMEOUT_MS","DEFAULT_AWAITING_CALLBACK_TIMEOUT_MS","DEFAULT_AWAITING_CALLBACK_POLL_MS"],"sourceRoot":"../../../src","sources":["public/constants.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACO,MAAMA,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,GAAG,CAAU;;AAE9C;AACO,MAAME,0BAA0B,GAAAD,OAAA,CAAAC,0BAAA,GAAG,MAAe;;AAEzD;AACO,MAAMC,oCAAoC,GAAAF,OAAA,CAAAE,oCAAA,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI;;AAEjE;AACO,MAAMC,iCAAiC,GAAAH,OAAA,CAAAG,iCAAA,GAAG,MAAM","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["public/spare-link-callbacks.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ChargeBearerDisplay = ChargeBearerDisplay;
|
|
7
|
-
var _vectorIcons = require("@expo/vector-icons");
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _index = require("../theme/index.js");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
const OPTIONS = [{
|
|
12
|
-
label: 'Shared',
|
|
13
|
-
apiValue: 'Shared'
|
|
14
|
-
}, {
|
|
15
|
-
label: 'Debtor',
|
|
16
|
-
apiValue: 'BorneByDebtor'
|
|
17
|
-
}, {
|
|
18
|
-
label: 'Creditor',
|
|
19
|
-
apiValue: 'BorneByCreditor'
|
|
20
|
-
}];
|
|
21
|
-
function ChargeBearerDisplay(props) {
|
|
22
|
-
const bearer = props.chargeBearer?.trim();
|
|
23
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
24
|
-
style: styles.card,
|
|
25
|
-
testID: "charge-bearer-display",
|
|
26
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
27
|
-
style: styles.title,
|
|
28
|
-
children: "Charges model"
|
|
29
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
30
|
-
style: styles.options,
|
|
31
|
-
children: OPTIONS.map(option => {
|
|
32
|
-
const selected = bearer === option.apiValue;
|
|
33
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
34
|
-
style: styles.option,
|
|
35
|
-
children: [selected ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
36
|
-
name: "checkmark-circle",
|
|
37
|
-
size: 20,
|
|
38
|
-
color: _index.Colors.spareBlue
|
|
39
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
40
|
-
style: styles.unselectedMarker
|
|
41
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
42
|
-
style: [styles.optionLabel, selected && styles.optionLabelSelected],
|
|
43
|
-
children: option.label
|
|
44
|
-
})]
|
|
45
|
-
}, option.apiValue);
|
|
46
|
-
})
|
|
47
|
-
})]
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
const styles = _reactNative.StyleSheet.create({
|
|
51
|
-
card: {
|
|
52
|
-
backgroundColor: _index.Colors.surfaceCard,
|
|
53
|
-
borderRadius: 16,
|
|
54
|
-
paddingVertical: 14,
|
|
55
|
-
paddingHorizontal: 20,
|
|
56
|
-
marginBottom: 14,
|
|
57
|
-
gap: 16,
|
|
58
|
-
borderWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
59
|
-
borderColor: _index.Colors.divider,
|
|
60
|
-
shadowColor: '#000000',
|
|
61
|
-
shadowOpacity: 0.06,
|
|
62
|
-
shadowRadius: 6,
|
|
63
|
-
shadowOffset: {
|
|
64
|
-
width: 0,
|
|
65
|
-
height: 2
|
|
66
|
-
},
|
|
67
|
-
elevation: 2
|
|
68
|
-
},
|
|
69
|
-
title: {
|
|
70
|
-
fontFamily: _index.FONT_FAMILY,
|
|
71
|
-
fontSize: 14,
|
|
72
|
-
fontWeight: '700',
|
|
73
|
-
color: _index.Colors.textPrimary
|
|
74
|
-
},
|
|
75
|
-
options: {
|
|
76
|
-
flexDirection: 'row',
|
|
77
|
-
flexWrap: 'wrap',
|
|
78
|
-
gap: 24
|
|
79
|
-
},
|
|
80
|
-
option: {
|
|
81
|
-
flexDirection: 'row',
|
|
82
|
-
alignItems: 'center',
|
|
83
|
-
gap: 4
|
|
84
|
-
},
|
|
85
|
-
unselectedMarker: {
|
|
86
|
-
width: 20,
|
|
87
|
-
height: 20
|
|
88
|
-
},
|
|
89
|
-
optionLabel: {
|
|
90
|
-
fontFamily: _index.FONT_FAMILY,
|
|
91
|
-
fontSize: 14,
|
|
92
|
-
color: _index.Colors.textMuted
|
|
93
|
-
},
|
|
94
|
-
optionLabelSelected: {
|
|
95
|
-
color: _index.Colors.textPrimary,
|
|
96
|
-
fontWeight: '600'
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
//# sourceMappingURL=charge-bearer-display.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_vectorIcons","require","_reactNative","_index","_jsxRuntime","OPTIONS","label","apiValue","ChargeBearerDisplay","props","bearer","chargeBearer","trim","jsxs","View","style","styles","card","testID","children","jsx","Text","title","options","map","option","selected","Ionicons","name","size","color","Colors","spareBlue","unselectedMarker","optionLabel","optionLabelSelected","StyleSheet","create","backgroundColor","surfaceCard","borderRadius","paddingVertical","paddingHorizontal","marginBottom","gap","borderWidth","hairlineWidth","borderColor","divider","shadowColor","shadowOpacity","shadowRadius","shadowOffset","width","height","elevation","fontFamily","FONT_FAMILY","fontSize","fontWeight","textPrimary","flexDirection","flexWrap","alignItems","textMuted"],"sourceRoot":"../../../../src","sources":["ui/consent/charge-bearer-display.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAA+C,IAAAG,WAAA,GAAAH,OAAA;AAM/C,MAAMI,OAAO,GAAG,CACd;EAAEC,KAAK,EAAE,QAAQ;EAAEC,QAAQ,EAAE;AAAS,CAAC,EACvC;EAAED,KAAK,EAAE,QAAQ;EAAEC,QAAQ,EAAE;AAAgB,CAAC,EAC9C;EAAED,KAAK,EAAE,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K,EAAEC,aAAM,CAAC6B,WAAW;IAAED,UAAU,EAAE;EAAM;AACtE,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ConsentAccordion = ConsentAccordion;
|
|
7
|
-
var _vectorIcons = require("@expo/vector-icons");
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var _reactNative = require("react-native");
|
|
10
|
-
var _index = require("../theme/index.js");
|
|
11
|
-
var _fonts = require("../theme/fonts.js");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
function ConsentAccordion(props) {
|
|
14
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
15
|
-
style: styles.wrap,
|
|
16
|
-
testID: "consent-accordion",
|
|
17
|
-
children: props.items.map((item, index) => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
18
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(AccordionSection, {
|
|
19
|
-
...item
|
|
20
|
-
}), index < props.items.length - 1 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
21
|
-
style: styles.divider,
|
|
22
|
-
testID: "consent-accordion-divider"
|
|
23
|
-
}) : null]
|
|
24
|
-
}, item.header))
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function AccordionSection(props) {
|
|
28
|
-
const [expanded, setExpanded] = (0, _react.useState)(props.initiallyExpanded ?? true);
|
|
29
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
30
|
-
style: styles.section,
|
|
31
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
32
|
-
accessibilityRole: "button",
|
|
33
|
-
onPress: () => setExpanded(e => !e),
|
|
34
|
-
style: styles.header,
|
|
35
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
36
|
-
style: styles.headerText,
|
|
37
|
-
children: props.header
|
|
38
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
39
|
-
name: expanded ? 'chevron-up' : 'chevron-down',
|
|
40
|
-
size: 18,
|
|
41
|
-
color: _index.Colors.spareBlue
|
|
42
|
-
})]
|
|
43
|
-
}), expanded ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
44
|
-
style: styles.body,
|
|
45
|
-
children: props.children
|
|
46
|
-
}) : null]
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
const styles = _reactNative.StyleSheet.create({
|
|
50
|
-
wrap: {
|
|
51
|
-
backgroundColor: _index.Colors.cardMutedBg,
|
|
52
|
-
borderRadius: 16,
|
|
53
|
-
paddingVertical: 8,
|
|
54
|
-
paddingHorizontal: 0,
|
|
55
|
-
marginBottom: 14,
|
|
56
|
-
borderWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
57
|
-
borderColor: _index.Colors.divider,
|
|
58
|
-
shadowColor: '#404029',
|
|
59
|
-
shadowOpacity: 0.08,
|
|
60
|
-
shadowRadius: 4,
|
|
61
|
-
shadowOffset: {
|
|
62
|
-
width: 0,
|
|
63
|
-
height: 1
|
|
64
|
-
},
|
|
65
|
-
elevation: 2
|
|
66
|
-
},
|
|
67
|
-
section: {
|
|
68
|
-
paddingVertical: 8
|
|
69
|
-
},
|
|
70
|
-
header: {
|
|
71
|
-
flexDirection: 'row',
|
|
72
|
-
justifyContent: 'space-between',
|
|
73
|
-
alignItems: 'center',
|
|
74
|
-
paddingHorizontal: 20,
|
|
75
|
-
minHeight: 48
|
|
76
|
-
},
|
|
77
|
-
headerText: {
|
|
78
|
-
fontFamily: (0, _fonts.linkFontFamilyForWeight)('700'),
|
|
79
|
-
fontSize: 16,
|
|
80
|
-
fontWeight: '700',
|
|
81
|
-
color: _index.Colors.textPrimary
|
|
82
|
-
},
|
|
83
|
-
body: {
|
|
84
|
-
paddingTop: 4,
|
|
85
|
-
paddingBottom: 12
|
|
86
|
-
},
|
|
87
|
-
divider: {
|
|
88
|
-
height: _reactNative.StyleSheet.hairlineWidth,
|
|
89
|
-
backgroundColor: _index.Colors.divider,
|
|
90
|
-
marginHorizontal: 20,
|
|
91
|
-
marginVertical: 4
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
//# sourceMappingURL=consent-accordion.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_vectorIcons","require","_react","_reactNative","_index","_fonts","_jsxRuntime","ConsentAccordion","props","jsx","View","style","styles","wrap","testID","children","items","map","item","index","jsxs","AccordionSection","length","divider","header","expanded","setExpanded","useState","initiallyExpanded","section","Pressable","accessibilityRole","onPress","e","Text","headerText","Ionicons","name","size","color","Colors","spareBlue","body","StyleSheet","create","backgroundColor","cardMutedBg","borderRadius","paddingVertical","paddingHorizontal","marginBottom","borderWidth","hairlineWidth","borderColor","shadowColor","shadowOpacity","shadowRadius","shadowOffset","width","height","elevation","flexDirection","justifyContent","alignItems","minHeight","fontFamily","linkFontFamilyForWeight","fontSize","fontWeight","textPrimary","paddingTop","paddingBottom","marginHorizontal","marginVertical"],"sourceRoot":"../../../../src","sources":["ui/consent/consent-accordion.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AAAyD,IAAAK,WAAA,GAAAL,OAAA;AAYlD,SAASM,gBAAgBA,CAACC,KAA4B,EAAe;EAC1E,oBACE,IAAAF,WAAA,CAAAG,GAAA,EAACN,YAAA,CAAAO,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,IAAK;IAACC,MAAM,EAAC,mBAAm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E,CAAC;IAAEC,aAAa,EAAE;EAAG,CAAC;EAC1ChD,OAAO,EAAE;IACPoC,MAAM,EAAEhB,uBAAU,CAACS,aAAa;IAChCP,eAAe,EAAEL,aAAM,CAACjB,OAAO;IAC/BiD,gBAAgB,EAAE,EAAE;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ConsentSummarySection = ConsentSummarySection;
|
|
7
|
-
var _internationalPaymentSummary = require("./international-payment-summary.js");
|
|
8
|
-
var _multiPaymentSummary = require("./multi-payment-summary.js");
|
|
9
|
-
var _singlePaymentSummary = require("./single-payment-summary.js");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function ConsentSummarySection(props) {
|
|
12
|
-
switch (props.data.variant) {
|
|
13
|
-
case 'singlePayment':
|
|
14
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_singlePaymentSummary.SinglePaymentSummary, {
|
|
15
|
-
data: props.data
|
|
16
|
-
});
|
|
17
|
-
case 'international':
|
|
18
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_internationalPaymentSummary.InternationalPaymentSummary, {
|
|
19
|
-
data: props.data
|
|
20
|
-
});
|
|
21
|
-
case 'multiPayment':
|
|
22
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_multiPaymentSummary.MultiPaymentSummary, {
|
|
23
|
-
data: props.data
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=consent-summary-section.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_internationalPaymentSummary","require","_multiPaymentSummary","_singlePaymentSummary","_jsxRuntime","ConsentSummarySection","props","data","variant","jsx","SinglePaymentSummary","InternationalPaymentSummary","MultiPaymentSummary"],"sourceRoot":"../../../../src","sources":["ui/consent/consent-summary-section.tsx"],"mappings":";;;;;;AACA,IAAAA,4BAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAF,OAAA;AAAgE,IAAAG,WAAA,GAAAH,OAAA;AAMzD,SAASI,qBAAqBA,CAACC,KAAiC,EAAe;EACpF,QAAQA,KAAK,CAACC,IAAI,CAACC,OAAO;IACxB,KAAK,eAAe;MAClB,oBAAO,IAAAJ,WAAA,CAAAK,GAAA,EAACN,qBAAA,CAAAO,oBAAoB;QAACH,IAAI,EAAED,KAAK,CAACC;MAAK,CAAE,CAAC;IACnD,KAAK,eAAe;MAClB,oBAAO,IAAAH,WAAA,CAAAK,GAAA,EAACT,4BAAA,CAAAW,2BAA2B;QAACJ,IAAI,EAAED,KAAK,CAACC;MAAK,CAAE,CAAC;IAC1D,KAAK,cAAc;MACjB,oBAAO,IAAAH,WAAA,CAAAK,GAAA,EAACP,oBAAA,CAAAU,mBAAmB;QAACL,IAAI,EAAED,KAAK,CAACC;MAAK,CAAE,CAAC;EACpD;AACF","ignoreList":[]}
|