@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,215 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.BankSelectionScreen = BankSelectionScreen;
|
|
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 _index2 = require("../widgets/index.js");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
/**
|
|
14
|
-
* CBUAE-approved bank picker. Port of Flutter `bank_selection_screen.dart`:
|
|
15
|
-
* "Choose your bank" inside a white card with a search field and logo rows
|
|
16
|
-
* (blue-outline selection), wrapped in the shared {@link LayoutWHeader} stepper
|
|
17
|
-
* chrome with a "Proceed using Altareq" footer.
|
|
18
|
-
*/
|
|
19
|
-
function BankSelectionScreen(props) {
|
|
20
|
-
const [query, setQuery] = (0, _react.useState)('');
|
|
21
|
-
const [selectedId, setSelectedId] = (0, _react.useState)(undefined);
|
|
22
|
-
const trimmed = query.trim().toLowerCase();
|
|
23
|
-
const filtered = (0, _react.useMemo)(() => trimmed ? props.providers.filter(p => p.name.toLowerCase().includes(trimmed)) : props.providers, [props.providers, trimmed]);
|
|
24
|
-
const isBankSelected = !!selectedId;
|
|
25
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.LayoutWHeader, {
|
|
26
|
-
progress: 0,
|
|
27
|
-
onBackPress: props.onCancel,
|
|
28
|
-
...(props.isProcessing ? {
|
|
29
|
-
backDisabled: true
|
|
30
|
-
} : {}),
|
|
31
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
32
|
-
style: styles.container,
|
|
33
|
-
testID: "bank-selection-screen",
|
|
34
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
35
|
-
style: styles.card,
|
|
36
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
37
|
-
style: styles.cardTitle,
|
|
38
|
-
testID: "bank-selection-title",
|
|
39
|
-
children: "Choose your bank"
|
|
40
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
41
|
-
style: styles.searchRow,
|
|
42
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
43
|
-
accessibilityLabel: "Search account providers",
|
|
44
|
-
testID: "bank-selection-search",
|
|
45
|
-
value: query,
|
|
46
|
-
onChangeText: setQuery,
|
|
47
|
-
placeholder: "Enter account provider...",
|
|
48
|
-
placeholderTextColor: _index.Colors.textMuted,
|
|
49
|
-
style: styles.searchInput
|
|
50
|
-
}), query.length > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
51
|
-
accessibilityRole: "button",
|
|
52
|
-
testID: "bank-selection-search-clear",
|
|
53
|
-
onPress: () => setQuery(''),
|
|
54
|
-
hitSlop: 8,
|
|
55
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
56
|
-
name: "close",
|
|
57
|
-
size: 18,
|
|
58
|
-
color: _index.Colors.textMuted
|
|
59
|
-
})
|
|
60
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
61
|
-
name: "search",
|
|
62
|
-
size: 18,
|
|
63
|
-
color: _index.Colors.textMuted
|
|
64
|
-
})]
|
|
65
|
-
}), filtered.length === 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
66
|
-
testID: "bank-selection-empty",
|
|
67
|
-
style: styles.empty,
|
|
68
|
-
children: trimmed ? `No banks match "${query.trim()}"` : 'No banks available'
|
|
69
|
-
}) : filtered.map(provider => /*#__PURE__*/(0, _jsxRuntime.jsx)(BankRow, {
|
|
70
|
-
provider: provider,
|
|
71
|
-
isSelected: provider.id === selectedId,
|
|
72
|
-
onPress: () => setSelectedId(provider.id)
|
|
73
|
-
}, provider.id))]
|
|
74
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
75
|
-
style: styles.spacer
|
|
76
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Footer, {
|
|
77
|
-
continueButtonText: "Proceed using Altareq",
|
|
78
|
-
continueTestID: "bank-selection-continue-btn",
|
|
79
|
-
cancelTestID: "bank-selection-cancel-btn",
|
|
80
|
-
onCancel: props.onCancel,
|
|
81
|
-
disabledContinueButton: !isBankSelected,
|
|
82
|
-
...(isBankSelected ? {
|
|
83
|
-
onContinue: () => props.onSelected(selectedId)
|
|
84
|
-
} : {}),
|
|
85
|
-
...(props.isProcessing ? {
|
|
86
|
-
isLoading: true
|
|
87
|
-
} : {})
|
|
88
|
-
})]
|
|
89
|
-
})
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
function BankRow(props) {
|
|
93
|
-
const {
|
|
94
|
-
provider,
|
|
95
|
-
isSelected
|
|
96
|
-
} = props;
|
|
97
|
-
const [logoFailed, setLogoFailed] = (0, _react.useState)(false);
|
|
98
|
-
const showLogo = !!provider.logoUrl && !logoFailed;
|
|
99
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Pressable, {
|
|
100
|
-
testID: `bank-row-${provider.code}`,
|
|
101
|
-
accessibilityRole: "button",
|
|
102
|
-
onPress: props.onPress,
|
|
103
|
-
style: [styles.row, isSelected && styles.rowSelected],
|
|
104
|
-
children: [showLogo ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
105
|
-
source: {
|
|
106
|
-
uri: provider.logoUrl
|
|
107
|
-
},
|
|
108
|
-
style: styles.logo,
|
|
109
|
-
resizeMode: "contain",
|
|
110
|
-
onError: () => setLogoFailed(true)
|
|
111
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
112
|
-
style: [styles.logo, styles.logoFallback],
|
|
113
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
114
|
-
name: "business-outline",
|
|
115
|
-
size: 20,
|
|
116
|
-
color: _index.Colors.textMuted
|
|
117
|
-
})
|
|
118
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
119
|
-
style: [styles.rowName, isSelected && styles.rowNameSelected],
|
|
120
|
-
numberOfLines: 1,
|
|
121
|
-
children: provider.name
|
|
122
|
-
})]
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
const styles = _reactNative.StyleSheet.create({
|
|
126
|
-
container: {
|
|
127
|
-
flex: 1
|
|
128
|
-
},
|
|
129
|
-
card: {
|
|
130
|
-
backgroundColor: _index.Colors.surfaceCard,
|
|
131
|
-
borderRadius: 12,
|
|
132
|
-
paddingHorizontal: 12,
|
|
133
|
-
paddingVertical: 16,
|
|
134
|
-
borderWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
135
|
-
borderColor: _index.Colors.divider,
|
|
136
|
-
shadowColor: '#000000',
|
|
137
|
-
shadowOpacity: 0.06,
|
|
138
|
-
shadowRadius: 6,
|
|
139
|
-
shadowOffset: {
|
|
140
|
-
width: 0,
|
|
141
|
-
height: 2
|
|
142
|
-
},
|
|
143
|
-
elevation: 2
|
|
144
|
-
},
|
|
145
|
-
cardTitle: {
|
|
146
|
-
fontFamily: _index.FONT_FAMILY,
|
|
147
|
-
fontSize: 16,
|
|
148
|
-
fontWeight: '700',
|
|
149
|
-
color: _index.Colors.textPrimary,
|
|
150
|
-
marginBottom: 12
|
|
151
|
-
},
|
|
152
|
-
searchRow: {
|
|
153
|
-
flexDirection: 'row',
|
|
154
|
-
alignItems: 'center',
|
|
155
|
-
borderWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
156
|
-
borderColor: _index.Colors.divider,
|
|
157
|
-
borderRadius: 12,
|
|
158
|
-
paddingHorizontal: 12,
|
|
159
|
-
height: 44,
|
|
160
|
-
marginBottom: _index.Spacing.md
|
|
161
|
-
},
|
|
162
|
-
searchInput: {
|
|
163
|
-
flex: 1,
|
|
164
|
-
fontFamily: _index.FONT_FAMILY,
|
|
165
|
-
fontSize: 14,
|
|
166
|
-
color: _index.Colors.textPrimary,
|
|
167
|
-
paddingVertical: 0
|
|
168
|
-
},
|
|
169
|
-
empty: {
|
|
170
|
-
fontFamily: _index.FONT_FAMILY,
|
|
171
|
-
fontSize: 14,
|
|
172
|
-
color: _index.Colors.textMuted,
|
|
173
|
-
textAlign: 'center',
|
|
174
|
-
paddingVertical: _index.Spacing.xl
|
|
175
|
-
},
|
|
176
|
-
row: {
|
|
177
|
-
flexDirection: 'row',
|
|
178
|
-
alignItems: 'center',
|
|
179
|
-
paddingHorizontal: 12,
|
|
180
|
-
paddingVertical: 10,
|
|
181
|
-
marginVertical: 4,
|
|
182
|
-
borderRadius: 10,
|
|
183
|
-
borderWidth: 1.5,
|
|
184
|
-
borderColor: 'transparent'
|
|
185
|
-
},
|
|
186
|
-
rowSelected: {
|
|
187
|
-
borderColor: _index.Colors.spareBlue
|
|
188
|
-
},
|
|
189
|
-
logo: {
|
|
190
|
-
width: 36,
|
|
191
|
-
height: 36,
|
|
192
|
-
borderRadius: 4
|
|
193
|
-
},
|
|
194
|
-
logoFallback: {
|
|
195
|
-
backgroundColor: _index.Colors.surfaceMuted,
|
|
196
|
-
alignItems: 'center',
|
|
197
|
-
justifyContent: 'center'
|
|
198
|
-
},
|
|
199
|
-
rowName: {
|
|
200
|
-
flex: 1,
|
|
201
|
-
marginLeft: 12,
|
|
202
|
-
fontFamily: _index.FONT_FAMILY,
|
|
203
|
-
fontSize: 14,
|
|
204
|
-
color: _index.Colors.textPrimary
|
|
205
|
-
},
|
|
206
|
-
rowNameSelected: {
|
|
207
|
-
color: _index.Colors.spareBlue,
|
|
208
|
-
fontWeight: '600'
|
|
209
|
-
},
|
|
210
|
-
spacer: {
|
|
211
|
-
flex: 1,
|
|
212
|
-
minHeight: _index.Spacing.xl
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
//# sourceMappingURL=bank-selection-screen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_vectorIcons","require","_react","_reactNative","_index","_index2","_jsxRuntime","BankSelectionScreen","props","query","setQuery","useState","selectedId","setSelectedId","undefined","trimmed","trim","toLowerCase","filtered","useMemo","providers","filter","p","name","includes","isBankSelected","jsx","LayoutWHeader","progress","onBackPress","onCancel","isProcessing","backDisabled","children","jsxs","View","style","styles","container","testID","card","Text","cardTitle","searchRow","TextInput","accessibilityLabel","value","onChangeText","placeholder","placeholderTextColor","Colors","textMuted","searchInput","length","Pressable","accessibilityRole","onPress","hitSlop","Ionicons","size","color","empty","map","provider","BankRow","isSelected","id","spacer","Footer","continueButtonText","continueTestID","cancelTestID","disabledContinueButton","onContinue","onSelected","isLoading","logoFailed","setLogoFailed","showLogo","logoUrl","code","row","rowSelected","Image","source","uri","logo","resizeMode","onError","logoFallback","rowName","rowNameSelected","numberOfLines","StyleSheet","create","flex","backgroundColor","surfaceCard","borderRadius","paddingHorizontal","paddingVertical","borderWidth","hairlineWidth","borderColor","divider","shadowColor","shadowOpacity","shadowRadius","shadowOffset","width","height","elevation","fontFamily","FONT_FAMILY","fontSize","fontWeight","textPrimary","marginBottom","flexDirection","alignItems","Spacing","md","textAlign","xl","marginVertical","spareBlue","surfaceMuted","justifyContent","marginLeft","minHeight"],"sourceRoot":"../../../../src","sources":["ui/screens/bank-selection-screen.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAEA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAAmD,IAAAK,WAAA,GAAAL,OAAA;AASnD;AACA;AACA;AACA;AACA;AACA;AACO,SAASM,mBAAmBA,CAACC,KAA+B,EAAe;EAChF,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAAC,EAAE,CAAC;EACtC,MAAM,CAACC,UAAU,EAAEC,aAAa,CAAC,GAAG,IAAAF,eAAQ,EAAqBG,SAAS,CAAC;EAE3E,MAAMC,OAAO,GAAGN,KAAK,CAACO,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;EAC1C,MAAMC,QAAQ,GAAG,IAAAC,cAAO,EACtB,MACEJ,OAAO,GACHP,KAAK,CAACY,SAAS,CAACC,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACC,IAAI,CAACN,WAAW,CAAC,CAAC,CAACO,QAAQ,CAACT,OAAO,CAAC,CAAC,GACrEP,KAAK,CAACY,SAAS,EACrB,CAACZ,KAAK,CAACY,SAAS,EAAEL,OAAO,CAC3B,CAAC;EAED,MAAMU,cAAc,GAAG,CAAC,CAACb,UAAU;EAEnC,oBACE,IAAAN,WAAA,CAAAoB,GAAA,EAACrB,OAAA,CAAAsB,aAAa;IACZC,QAAQ,EAAE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AEC,kBAAW;IACvBC,QAAQ,EAAE,EAAE;IACZtD,KAAK,EAAEV,aAAM,CAACkE;EAChB,CAAC;EACDzB,eAAe,EAAE;IAAE/B,KAAK,EAAEV,aAAM,CAAC2E,SAAS;IAAEV,UAAU,EAAE;EAAM,CAAC;EAC/DhD,MAAM,EAAE;IAAE4B,IAAI,EAAE,CAAC;IAAEkC,SAAS,EAAET,cAAO,CAACG;EAAG;AAC3C,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ConsentDetailsScreen = ConsentDetailsScreen;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _consentSummarySection = require("../consent/consent-summary-section.js");
|
|
9
|
-
var _labelValueRows = require("../consent/label-value-rows.js");
|
|
10
|
-
var _index = require("../theme/index.js");
|
|
11
|
-
var _index2 = require("../widgets/index.js");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
/**
|
|
14
|
-
* CBUAE-approved consent screen. Port of Flutter `consent_details_screen.dart`.
|
|
15
|
-
*/
|
|
16
|
-
function ConsentDetailsScreen(props) {
|
|
17
|
-
const {
|
|
18
|
-
display,
|
|
19
|
-
onContinue,
|
|
20
|
-
onCancel,
|
|
21
|
-
isProcessing,
|
|
22
|
-
isCopLoading
|
|
23
|
-
} = props;
|
|
24
|
-
const bankName = (0, _labelValueRows.present)(display.bankName, 'your bank');
|
|
25
|
-
const disableContinue = isCopLoading ?? (display.variant === 'singlePayment' ? display.isCopLoading : false);
|
|
26
|
-
const backDisabled = !!isProcessing;
|
|
27
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.LayoutWHeader, {
|
|
28
|
-
progress: 0.5,
|
|
29
|
-
onBackPress: onCancel,
|
|
30
|
-
backDisabled: backDisabled,
|
|
31
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
32
|
-
style: styles.scroll,
|
|
33
|
-
contentContainerStyle: styles.content,
|
|
34
|
-
testID: "consent-details-screen",
|
|
35
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
36
|
-
style: styles.title,
|
|
37
|
-
testID: "consent-details-title",
|
|
38
|
-
children: "Permission to make a payment"
|
|
39
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
40
|
-
style: styles.intro,
|
|
41
|
-
testID: "consent-details-intro",
|
|
42
|
-
children: ["To make a payment we need your permission to securely initiate payment order from", ' ', bankName, "."]
|
|
43
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_consentSummarySection.ConsentSummarySection, {
|
|
44
|
-
data: display
|
|
45
|
-
}), display.variant === 'multiPayment' ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
46
|
-
style: styles.balancePermission,
|
|
47
|
-
testID: "consent-balance-permission",
|
|
48
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
49
|
-
style: styles.title,
|
|
50
|
-
children: "Permission to check balance"
|
|
51
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
52
|
-
style: styles.balanceIntro,
|
|
53
|
-
children: "You also allow us to check the available funds before making a payment"
|
|
54
|
-
})]
|
|
55
|
-
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
56
|
-
style: styles.footerWrap,
|
|
57
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Footer, {
|
|
58
|
-
onContinue: onContinue,
|
|
59
|
-
continueButtonText: "Pay using Altareq",
|
|
60
|
-
continueTestID: "consent-proceed-btn",
|
|
61
|
-
showCancelButton: false,
|
|
62
|
-
disabledContinueButton: disableContinue,
|
|
63
|
-
...(isProcessing ? {
|
|
64
|
-
isLoading: true
|
|
65
|
-
} : {})
|
|
66
|
-
})
|
|
67
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.Text, {
|
|
68
|
-
style: styles.disclaimer,
|
|
69
|
-
testID: "consent-details-disclaimer",
|
|
70
|
-
children: ["We will securely transfer you to", ' ', /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
71
|
-
style: styles.disclaimerBold,
|
|
72
|
-
children: display.bankName
|
|
73
|
-
}), " to authorize and make the payment."]
|
|
74
|
-
})]
|
|
75
|
-
})
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
const styles = _reactNative.StyleSheet.create({
|
|
79
|
-
scroll: {
|
|
80
|
-
flex: 1
|
|
81
|
-
},
|
|
82
|
-
content: {
|
|
83
|
-
paddingBottom: _index.Spacing.xl
|
|
84
|
-
},
|
|
85
|
-
title: {
|
|
86
|
-
fontFamily: _index.FONT_FAMILY,
|
|
87
|
-
fontSize: 18,
|
|
88
|
-
fontWeight: '700',
|
|
89
|
-
color: _index.Colors.textPrimary
|
|
90
|
-
},
|
|
91
|
-
intro: {
|
|
92
|
-
fontFamily: _index.FONT_FAMILY,
|
|
93
|
-
fontSize: 14,
|
|
94
|
-
color: _index.Colors.textMuted,
|
|
95
|
-
lineHeight: 22,
|
|
96
|
-
marginTop: 10,
|
|
97
|
-
marginBottom: 20
|
|
98
|
-
},
|
|
99
|
-
balancePermission: {
|
|
100
|
-
marginTop: 20
|
|
101
|
-
},
|
|
102
|
-
balanceIntro: {
|
|
103
|
-
fontFamily: _index.FONT_FAMILY,
|
|
104
|
-
fontSize: 14,
|
|
105
|
-
color: _index.Colors.textMuted,
|
|
106
|
-
lineHeight: 22,
|
|
107
|
-
marginTop: _index.Spacing.sm
|
|
108
|
-
},
|
|
109
|
-
footerWrap: {
|
|
110
|
-
marginTop: 20
|
|
111
|
-
},
|
|
112
|
-
disclaimer: {
|
|
113
|
-
fontFamily: _index.FONT_FAMILY,
|
|
114
|
-
fontSize: 14,
|
|
115
|
-
color: _index.Colors.textMuted,
|
|
116
|
-
lineHeight: 22,
|
|
117
|
-
marginTop: _index.Spacing.md
|
|
118
|
-
},
|
|
119
|
-
disclaimerBold: {
|
|
120
|
-
fontWeight: '700',
|
|
121
|
-
color: _index.Colors.textMuted
|
|
122
|
-
}
|
|
123
|
-
});
|
|
124
|
-
//# sourceMappingURL=consent-details-screen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_consentSummarySection","_labelValueRows","_index","_index2","_jsxRuntime","ConsentDetailsScreen","props","display","onContinue","onCancel","isProcessing","isCopLoading","bankName","present","disableContinue","variant","backDisabled","jsx","LayoutWHeader","progress","onBackPress","children","jsxs","ScrollView","style","styles","scroll","contentContainerStyle","content","testID","Text","title","intro","ConsentSummarySection","data","View","balancePermission","balanceIntro","footerWrap","Footer","continueButtonText","continueTestID","showCancelButton","disabledContinueButton","isLoading","disclaimer","disclaimerBold","StyleSheet","create","flex","paddingBottom","Spacing","xl","fontFamily","FONT_FAMILY","fontSize","fontWeight","color","Colors","textPrimary","textMuted","lineHeight","marginTop","marginBottom","sm","md"],"sourceRoot":"../../../../src","sources":["ui/screens/consent-details-screen.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAAmD,IAAAK,WAAA,GAAAL,OAAA;AAUnD;AACA;AACA;AACO,SAASM,oBAAoBA,CAACC,KAAgC,EAAe;EAClF,MAAM;IAAEC,OAAO;IAAEC,UAAU;IAAEC,QAAQ;IAAEC,YAAY;IAAEC;EAAa,CAAC,GAAGL,KAAK;EAC3E,MAAMM,QAAQ,GAAG,IAAAC,uBAAO,EAACN,OAAO,CAACK,QAAQ,EAAE,WAAW,CAAC;E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UAAU,EAAEC,kBAAW;IACvBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAEC,aAAM,CAACC;EAChB,CAAC;EACD3B,KAAK,EAAE;IACLqB,UAAU,EAAEC,kBAAW;IACvBC,QAAQ,EAAE,EAAE;IACZE,KAAK,EAAEC,aAAM,CAACE,SAAS;IACvBC,UAAU,EAAE,EAAE;IACdC,SAAS,EAAE,EAAE;IACbC,YAAY,EAAE;EAChB,CAAC;EACD3B,iBAAiB,EAAE;IAAE0B,SAAS,EAAE;EAAG,CAAC;EACpCzB,YAAY,EAAE;IACZgB,UAAU,EAAEC,kBAAW;IACvBC,QAAQ,EAAE,EAAE;IACZE,KAAK,EAAEC,aAAM,CAACE,SAAS;IACvBC,UAAU,EAAE,EAAE;IACdC,SAAS,EAAEX,cAAO,CAACa;EACrB,CAAC;EACD1B,UAAU,EAAE;IAAEwB,SAAS,EAAE;EAAG,CAAC;EAC7BjB,UAAU,EAAE;IACVQ,UAAU,EAAEC,kBAAW;IACvBC,QAAQ,EAAE,EAAE;IACZE,KAAK,EAAEC,aAAM,CAACE,SAAS;IACvBC,UAAU,EAAE,EAAE;IACdC,SAAS,EAAEX,cAAO,CAACc;EACrB,CAAC;EACDnB,cAAc,EAAE;IAAEU,UAAU,EAAE,KAAK;IAAEC,KAAK,EAAEC,aAAM,CAACE;EAAU;AAC/D,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.MandateSetupSuccessScreen = MandateSetupSuccessScreen;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _multiPaymentRulesList = require("../consent/multi-payment-rules-list.js");
|
|
9
|
-
var _index = require("../theme/index.js");
|
|
10
|
-
var _index2 = require("../widgets/index.js");
|
|
11
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function MandateSetupSuccessScreen(props) {
|
|
13
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
14
|
-
style: styles.root,
|
|
15
|
-
testID: "mandate-setup-success-screen",
|
|
16
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
17
|
-
style: styles.title,
|
|
18
|
-
children: "Setup successful"
|
|
19
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
20
|
-
style: styles.subtitle,
|
|
21
|
-
children: "Successfully set up your payment method"
|
|
22
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
23
|
-
style: styles.scroll,
|
|
24
|
-
contentContainerStyle: styles.scrollContent,
|
|
25
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
26
|
-
style: styles.card,
|
|
27
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_multiPaymentRulesList.MultiPaymentRulesList, {
|
|
28
|
-
rulesTitle: props.rulesTitle,
|
|
29
|
-
rules: props.rules,
|
|
30
|
-
paymentType: props.paymentType
|
|
31
|
-
})
|
|
32
|
-
})
|
|
33
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_index2.Footer, {
|
|
34
|
-
onContinue: props.onDone,
|
|
35
|
-
continueButtonText: "Done",
|
|
36
|
-
continueTestID: "mandate-success-done-btn",
|
|
37
|
-
showCancelButton: false
|
|
38
|
-
})]
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
const styles = _reactNative.StyleSheet.create({
|
|
42
|
-
root: {
|
|
43
|
-
flex: 1,
|
|
44
|
-
backgroundColor: _index.Colors.surfacePage,
|
|
45
|
-
paddingHorizontal: 24,
|
|
46
|
-
paddingTop: 32,
|
|
47
|
-
paddingBottom: _index.Spacing.lg
|
|
48
|
-
},
|
|
49
|
-
title: {
|
|
50
|
-
fontFamily: _index.FONT_FAMILY,
|
|
51
|
-
fontSize: 22,
|
|
52
|
-
fontWeight: '700',
|
|
53
|
-
color: _index.Colors.textPrimary,
|
|
54
|
-
textAlign: 'center'
|
|
55
|
-
},
|
|
56
|
-
subtitle: {
|
|
57
|
-
fontFamily: _index.FONT_FAMILY,
|
|
58
|
-
fontSize: 14,
|
|
59
|
-
color: _index.Colors.textMuted,
|
|
60
|
-
textAlign: 'center',
|
|
61
|
-
marginTop: 12,
|
|
62
|
-
marginBottom: 24
|
|
63
|
-
},
|
|
64
|
-
scroll: {
|
|
65
|
-
flex: 1
|
|
66
|
-
},
|
|
67
|
-
scrollContent: {
|
|
68
|
-
paddingBottom: _index.Spacing.md
|
|
69
|
-
},
|
|
70
|
-
card: {
|
|
71
|
-
backgroundColor: _index.Colors.cardMutedBg,
|
|
72
|
-
borderRadius: 16,
|
|
73
|
-
paddingVertical: 16,
|
|
74
|
-
paddingHorizontal: 20,
|
|
75
|
-
borderWidth: _reactNative.StyleSheet.hairlineWidth,
|
|
76
|
-
borderColor: _index.Colors.divider
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
//# sourceMappingURL=mandate-setup-success-screen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_multiPaymentRulesList","_index","_index2","_jsxRuntime","MandateSetupSuccessScreen","props","jsxs","View","style","styles","root","testID","children","jsx","Text","title","subtitle","ScrollView","scroll","contentContainerStyle","scrollContent","card","MultiPaymentRulesList","rulesTitle","rules","paymentType","Footer","onContinue","onDone","continueButtonText","continueTestID","showCancelButton","StyleSheet","create","flex","backgroundColor","Colors","surfacePage","paddingHorizontal","paddingTop","paddingBottom","Spacing","lg","fontFamily","FONT_FAMILY","fontSize","fontWeight","color","textPrimary","textAlign","textMuted","marginTop","marginBottom","md","cardMutedBg","borderRadius","paddingVertical","borderWidth","hairlineWidth","borderColor","divider"],"sourceRoot":"../../../../src","sources":["ui/screens/mandate-setup-success-screen.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,EAAC,MAAM;MACzBC,cAAc,EAAC,0BAA0B;MACzCC,gBAAgB,EAAE;IAAM,CACzB,CAAC;EAAA,CACE,CAAC;AAEX;AAEA,MAAMtB,MAAM,GAAGuB,uBAAU,CAACC,MAAM,CAAC;EAC/BvB,IAAI,EAAE;IACJwB,IAAI,EAAE,CAAC;IACPC,eAAe,EAAEC,aAAM,CAACC,WAAW;IACnCC,iBAAiB,EAAE,EAAE;IACrBC,UAAU,EAAE,EAAE;IACdC,aAAa,EAAEC,cAAO,CAACC;EACzB,CAAC;EACD3B,KAAK,EAAE;IACL4B,UAAU,EAAEC,kBAAW;IACvBC,QAAQ,EAAE,EAAE;IACZC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAEX,aAAM,CAACY,WAAW;IACzBC,SAAS,EAAE;EACb,CAAC;EACDjC,QAAQ,EAAE;IACR2B,UAAU,EAAEC,kBAAW;IACvBC,QAAQ,EAAE,EAAE;IACZE,KAAK,EAAEX,aAAM,CAACc,SAAS;IACvBD,SAAS,EAAE,QAAQ;IACnBE,SAAS,EAAE,EAAE;IACbC,YAAY,EAAE;EAChB,CAAC;EACDlC,MAAM,EAAE;IAAEgB,IAAI,EAAE;EAAE,CAAC;EACnBd,aAAa,EAAE;IAAEoB,aAAa,EAAEC,cAAO,CAACY;EAAG,CAAC;EAC5ChC,IAAI,EAAE;IACJc,eAAe,EAAEC,aAAM,CAACkB,WAAW;IACnCC,YAAY,EAAE,EAAE;IAChBC,eAAe,EAAE,EAAE;IACnBlB,iBAAiB,EAAE,EAAE;IACrBmB,WAAW,EAAEzB,uBAAU,CAAC0B,aAAa;IACrCC,WAAW,EAAEvB,aAAM,CAACwB;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.LayoutWHeader = LayoutWHeader;
|
|
7
|
-
var _vectorIcons = require("@expo/vector-icons");
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _index = require("../theme/index.js");
|
|
10
|
-
var _assets = require("../theme/assets.js");
|
|
11
|
-
var _stepper = require("./stepper.js");
|
|
12
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
|
-
/**
|
|
14
|
-
* Shared flow-screen chrome. Port of Flutter `LayoutWHeader`
|
|
15
|
-
* (`lib/src/ui/widgets/layout_w_header.dart`): a white page with a centered
|
|
16
|
-
* Spare logo header, the Altareq white-background logo, a {@link CustomStepper}
|
|
17
|
-
* progress bar, and 22px body padding wrapping the screen content.
|
|
18
|
-
*
|
|
19
|
-
* CBUAE-approved chrome — copy/dimensions match the Flutter SDK exactly.
|
|
20
|
-
*/
|
|
21
|
-
function LayoutWHeader(props) {
|
|
22
|
-
const showBack = props.onBackPress != null;
|
|
23
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
24
|
-
style: styles.page,
|
|
25
|
-
testID: "layout-w-header",
|
|
26
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
27
|
-
style: styles.appBar,
|
|
28
|
-
children: [showBack ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
|
|
29
|
-
accessibilityRole: "button",
|
|
30
|
-
accessibilityLabel: "Back",
|
|
31
|
-
testID: "layout-w-header-back",
|
|
32
|
-
onPress: props.onBackPress,
|
|
33
|
-
disabled: props.backDisabled,
|
|
34
|
-
hitSlop: 8,
|
|
35
|
-
style: [styles.backButton, props.backDisabled && styles.backButtonDisabled],
|
|
36
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
37
|
-
name: "arrow-back",
|
|
38
|
-
size: 24,
|
|
39
|
-
color: _index.Colors.textPrimary
|
|
40
|
-
})
|
|
41
|
-
}) : null, /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
42
|
-
source: _assets.Assets.spareLogo,
|
|
43
|
-
style: styles.spareLogo,
|
|
44
|
-
resizeMode: "contain",
|
|
45
|
-
accessibilityRole: "image",
|
|
46
|
-
accessibilityLabel: "Spare"
|
|
47
|
-
})]
|
|
48
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
|
|
49
|
-
source: _assets.Assets.altareqLogoWhiteBg,
|
|
50
|
-
style: styles.altareqLogo,
|
|
51
|
-
resizeMode: "contain",
|
|
52
|
-
accessibilityRole: "image",
|
|
53
|
-
accessibilityLabel: "Altareq"
|
|
54
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
55
|
-
style: styles.stepperWrap,
|
|
56
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_stepper.CustomStepper, {
|
|
57
|
-
progress: props.progress ?? 0.5
|
|
58
|
-
})
|
|
59
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
60
|
-
style: styles.body,
|
|
61
|
-
children: props.children
|
|
62
|
-
})]
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
const styles = _reactNative.StyleSheet.create({
|
|
66
|
-
page: {
|
|
67
|
-
flex: 1,
|
|
68
|
-
backgroundColor: '#FFFFFF'
|
|
69
|
-
},
|
|
70
|
-
appBar: {
|
|
71
|
-
height: 56,
|
|
72
|
-
alignItems: 'center',
|
|
73
|
-
justifyContent: 'center',
|
|
74
|
-
paddingTop: 8
|
|
75
|
-
},
|
|
76
|
-
backButton: {
|
|
77
|
-
position: 'absolute',
|
|
78
|
-
left: 8,
|
|
79
|
-
top: 8,
|
|
80
|
-
width: 40,
|
|
81
|
-
height: 40,
|
|
82
|
-
alignItems: 'center',
|
|
83
|
-
justifyContent: 'center'
|
|
84
|
-
},
|
|
85
|
-
backButtonDisabled: {
|
|
86
|
-
opacity: 0.4
|
|
87
|
-
},
|
|
88
|
-
spareLogo: {
|
|
89
|
-
height: 18,
|
|
90
|
-
width: 120
|
|
91
|
-
},
|
|
92
|
-
altareqLogo: {
|
|
93
|
-
height: 45,
|
|
94
|
-
width: '100%',
|
|
95
|
-
alignSelf: 'center'
|
|
96
|
-
},
|
|
97
|
-
stepperWrap: {
|
|
98
|
-
paddingHorizontal: 22,
|
|
99
|
-
paddingVertical: 16
|
|
100
|
-
},
|
|
101
|
-
body: {
|
|
102
|
-
flex: 1,
|
|
103
|
-
padding: 22
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
//# sourceMappingURL=layout-w-header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_vectorIcons","require","_reactNative","_index","_assets","_stepper","_jsxRuntime","LayoutWHeader","props","showBack","onBackPress","jsxs","View","style","styles","page","testID","children","appBar","jsx","Pressable","accessibilityRole","accessibilityLabel","onPress","disabled","backDisabled","hitSlop","backButton","backButtonDisabled","Ionicons","name","size","color","Colors","textPrimary","Image","source","Assets","spareLogo","resizeMode","altareqLogoWhiteBg","altareqLogo","stepperWrap","CustomStepper","progress","body","StyleSheet","create","flex","backgroundColor","height","alignItems","justifyContent","paddingTop","position","left","top","width","opacity","alignSelf","paddingHorizontal","paddingVertical","padding"],"sourceRoot":"../../../../src","sources":["ui/widgets/layout-w-header.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAA0C,IAAAK,WAAA,GAAAL,OAAA;AAY1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASM,aAAaA,CAACC,KAAyB,EAAe;EACpE,MAAMC,QAAQ,GAAGD,KAAK,CAACE,WAAW,IAAI,IAAI;EAC1C,oBACE,IAAAJ,WAAA,CAAAK,IAAA,EAACT,YAAA,CAAAU,IAAI;IAAC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