@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":["Ionicons","useMemo","useState","Image","Pressable","StyleSheet","Text","TextInput","View","Colors","FONT_FAMILY","Spacing","Footer","LayoutWHeader","jsx","_jsx","jsxs","_jsxs","BankSelectionScreen","props","query","setQuery","selectedId","setSelectedId","undefined","trimmed","trim","toLowerCase","filtered","providers","filter","p","name","includes","isBankSelected","progress","onBackPress","onCancel","isProcessing","backDisabled","children","style","styles","container","testID","card","cardTitle","searchRow","accessibilityLabel","value","onChangeText","placeholder","placeholderTextColor","textMuted","searchInput","length","accessibilityRole","onPress","hitSlop","size","color","empty","map","provider","BankRow","isSelected","id","spacer","continueButtonText","continueTestID","cancelTestID","disabledContinueButton","onContinue","onSelected","isLoading","logoFailed","setLogoFailed","showLogo","logoUrl","code","row","rowSelected","source","uri","logo","resizeMode","onError","logoFallback","rowName","rowNameSelected","numberOfLines","create","flex","backgroundColor","surfaceCard","borderRadius","paddingHorizontal","paddingVertical","borderWidth","hairlineWidth","borderColor","divider","shadowColor","shadowOpacity","shadowRadius","shadowOffset","width","height","elevation","fontFamily","fontSize","fontWeight","textPrimary","marginBottom","flexDirection","alignItems","md","textAlign","xl","marginVertical","spareBlue","surfaceMuted","justifyContent","marginLeft","minHeight"],"sourceRoot":"../../../../src","sources":["ui/screens/bank-selection-screen.tsx"],"mappings":";;AAAA,SAASA,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACzC,SAASC,KAAK,EAAEC,SAAS,EAAEC,UAAU,EAAEC,IAAI,EAAEC,SAAS,EAAEC,IAAI,QAAQ,cAAc;AAElF,SAASC,MAAM,EAAEC,WAAW,EAAEC,OAAO,QAAQ,mBAAU;AACvD,SAASC,MAAM,EAAEC,aAAa,QAAQ,qBAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AASnD;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,mBAAmBA,CAACC,KAA+B,EAAe;EAChF,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGnB,QAAQ,CAAC,EAAE,CAAC;EACtC,MAAM,CAACoB,UAAU,EAAEC,aAAa,CAAC,GAAGrB,QAAQ,CAAqBsB,SAAS,CAAC;EAE3E,MAAMC,OAAO,GAAGL,KAAK,CAACM,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;EAC1C,MAAMC,QAAQ,GAAG3B,OAAO,CACtB,MACEwB,OAAO,GACHN,KAAK,CAACU,SAAS,CAACC,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACC,IAAI,CAACL,WAAW,CAAC,CAAC,CAACM,QAAQ,CAACR,OAAO,CAAC,CAAC,GACrEN,KAAK,CAACU,SAAS,EACrB,CAACV,KAAK,CAACU,SAAS,EAAEJ,OAAO,CAC3B,CAAC;EAED,MAAMS,cAAc,GAAG,CAAC,CAACZ,UAAU;EAEnC,oBACEP,IAAA,CAACF,aAAa;IACZsB,QAAQ,EAAE,CAAE;IACZC,WAAW,EAAEjB,KAAK,CAACkB,QAAS;IAAA,IACv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AC3B,CAAC;EACDtC,GAAG,EAAE;IACHkC,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,QAAQ;IACpBnB,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,EAAE;IACnBsB,cAAc,EAAE,CAAC;IACjBxB,YAAY,EAAE,EAAE;IAChBG,WAAW,EAAE,GAAG;IAChBE,WAAW,EAAE;EACf,CAAC;EACDnB,WAAW,EAAE;IAAEmB,WAAW,EAAE3F,MAAM,CAAC+G;EAAU,CAAC;EAC9CpC,IAAI,EAAE;IAAEsB,KAAK,EAAE,EAAE;IAAEC,MAAM,EAAE,EAAE;IAAEZ,YAAY,EAAE;EAAE,CAAC;EAChDR,YAAY,EAAE;IACZM,eAAe,EAAEpF,MAAM,CAACgH,YAAY;IACpCN,UAAU,EAAE,QAAQ;IACpBO,cAAc,EAAE;EAClB,CAAC;EACDlC,OAAO,EAAE;IACPI,IAAI,EAAE,CAAC;IACP+B,UAAU,EAAE,EAAE;IACdd,UAAU,EAAEnG,WAAW;IACvBoG,QAAQ,EAAE,EAAE;IACZlD,KAAK,EAAEnD,MAAM,CAACuG;EAChB,CAAC;EACDvB,eAAe,EAAE;IAAE7B,KAAK,EAAEnD,MAAM,CAAC+G,SAAS;IAAET,UAAU,EAAE;EAAM,CAAC;EAC/D5C,MAAM,EAAE;IAAEyB,IAAI,EAAE,CAAC;IAAEgC,SAAS,EAAEjH,OAAO,CAAC2G;EAAG;AAC3C,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { ScrollView, StyleSheet, Text, View } from 'react-native';
|
|
4
|
-
import { ConsentSummarySection } from "../consent/consent-summary-section.js";
|
|
5
|
-
import { present } from "../consent/label-value-rows.js";
|
|
6
|
-
import { Colors, FONT_FAMILY, Spacing } from "../theme/index.js";
|
|
7
|
-
import { Footer, LayoutWHeader } from "../widgets/index.js";
|
|
8
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
/**
|
|
10
|
-
* CBUAE-approved consent screen. Port of Flutter `consent_details_screen.dart`.
|
|
11
|
-
*/
|
|
12
|
-
export function ConsentDetailsScreen(props) {
|
|
13
|
-
const {
|
|
14
|
-
display,
|
|
15
|
-
onContinue,
|
|
16
|
-
onCancel,
|
|
17
|
-
isProcessing,
|
|
18
|
-
isCopLoading
|
|
19
|
-
} = props;
|
|
20
|
-
const bankName = present(display.bankName, 'your bank');
|
|
21
|
-
const disableContinue = isCopLoading ?? (display.variant === 'singlePayment' ? display.isCopLoading : false);
|
|
22
|
-
const backDisabled = !!isProcessing;
|
|
23
|
-
return /*#__PURE__*/_jsx(LayoutWHeader, {
|
|
24
|
-
progress: 0.5,
|
|
25
|
-
onBackPress: onCancel,
|
|
26
|
-
backDisabled: backDisabled,
|
|
27
|
-
children: /*#__PURE__*/_jsxs(ScrollView, {
|
|
28
|
-
style: styles.scroll,
|
|
29
|
-
contentContainerStyle: styles.content,
|
|
30
|
-
testID: "consent-details-screen",
|
|
31
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
32
|
-
style: styles.title,
|
|
33
|
-
testID: "consent-details-title",
|
|
34
|
-
children: "Permission to make a payment"
|
|
35
|
-
}), /*#__PURE__*/_jsxs(Text, {
|
|
36
|
-
style: styles.intro,
|
|
37
|
-
testID: "consent-details-intro",
|
|
38
|
-
children: ["To make a payment we need your permission to securely initiate payment order from", ' ', bankName, "."]
|
|
39
|
-
}), /*#__PURE__*/_jsx(ConsentSummarySection, {
|
|
40
|
-
data: display
|
|
41
|
-
}), display.variant === 'multiPayment' ? /*#__PURE__*/_jsxs(View, {
|
|
42
|
-
style: styles.balancePermission,
|
|
43
|
-
testID: "consent-balance-permission",
|
|
44
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
45
|
-
style: styles.title,
|
|
46
|
-
children: "Permission to check balance"
|
|
47
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
48
|
-
style: styles.balanceIntro,
|
|
49
|
-
children: "You also allow us to check the available funds before making a payment"
|
|
50
|
-
})]
|
|
51
|
-
}) : null, /*#__PURE__*/_jsx(View, {
|
|
52
|
-
style: styles.footerWrap,
|
|
53
|
-
children: /*#__PURE__*/_jsx(Footer, {
|
|
54
|
-
onContinue: onContinue,
|
|
55
|
-
continueButtonText: "Pay using Altareq",
|
|
56
|
-
continueTestID: "consent-proceed-btn",
|
|
57
|
-
showCancelButton: false,
|
|
58
|
-
disabledContinueButton: disableContinue,
|
|
59
|
-
...(isProcessing ? {
|
|
60
|
-
isLoading: true
|
|
61
|
-
} : {})
|
|
62
|
-
})
|
|
63
|
-
}), /*#__PURE__*/_jsxs(Text, {
|
|
64
|
-
style: styles.disclaimer,
|
|
65
|
-
testID: "consent-details-disclaimer",
|
|
66
|
-
children: ["We will securely transfer you to", ' ', /*#__PURE__*/_jsx(Text, {
|
|
67
|
-
style: styles.disclaimerBold,
|
|
68
|
-
children: display.bankName
|
|
69
|
-
}), " to authorize and make the payment."]
|
|
70
|
-
})]
|
|
71
|
-
})
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
const styles = StyleSheet.create({
|
|
75
|
-
scroll: {
|
|
76
|
-
flex: 1
|
|
77
|
-
},
|
|
78
|
-
content: {
|
|
79
|
-
paddingBottom: Spacing.xl
|
|
80
|
-
},
|
|
81
|
-
title: {
|
|
82
|
-
fontFamily: FONT_FAMILY,
|
|
83
|
-
fontSize: 18,
|
|
84
|
-
fontWeight: '700',
|
|
85
|
-
color: Colors.textPrimary
|
|
86
|
-
},
|
|
87
|
-
intro: {
|
|
88
|
-
fontFamily: FONT_FAMILY,
|
|
89
|
-
fontSize: 14,
|
|
90
|
-
color: Colors.textMuted,
|
|
91
|
-
lineHeight: 22,
|
|
92
|
-
marginTop: 10,
|
|
93
|
-
marginBottom: 20
|
|
94
|
-
},
|
|
95
|
-
balancePermission: {
|
|
96
|
-
marginTop: 20
|
|
97
|
-
},
|
|
98
|
-
balanceIntro: {
|
|
99
|
-
fontFamily: FONT_FAMILY,
|
|
100
|
-
fontSize: 14,
|
|
101
|
-
color: Colors.textMuted,
|
|
102
|
-
lineHeight: 22,
|
|
103
|
-
marginTop: Spacing.sm
|
|
104
|
-
},
|
|
105
|
-
footerWrap: {
|
|
106
|
-
marginTop: 20
|
|
107
|
-
},
|
|
108
|
-
disclaimer: {
|
|
109
|
-
fontFamily: FONT_FAMILY,
|
|
110
|
-
fontSize: 14,
|
|
111
|
-
color: Colors.textMuted,
|
|
112
|
-
lineHeight: 22,
|
|
113
|
-
marginTop: Spacing.md
|
|
114
|
-
},
|
|
115
|
-
disclaimerBold: {
|
|
116
|
-
fontWeight: '700',
|
|
117
|
-
color: Colors.textMuted
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
//# sourceMappingURL=consent-details-screen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ScrollView","StyleSheet","Text","View","ConsentSummarySection","present","Colors","FONT_FAMILY","Spacing","Footer","LayoutWHeader","jsx","_jsx","jsxs","_jsxs","ConsentDetailsScreen","props","display","onContinue","onCancel","isProcessing","isCopLoading","bankName","disableContinue","variant","backDisabled","progress","onBackPress","children","style","styles","scroll","contentContainerStyle","content","testID","title","intro","data","balancePermission","balanceIntro","footerWrap","continueButtonText","continueTestID","showCancelButton","disabledContinueButton","isLoading","disclaimer","disclaimerBold","create","flex","paddingBottom","xl","fontFamily","fontSize","fontWeight","color","textPrimary","textMuted","lineHeight","marginTop","marginBottom","sm","md"],"sourceRoot":"../../../../src","sources":["ui/screens/consent-details-screen.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAEjE,SAASC,qBAAqB,QAAQ,uCAAoC;AAC1E,SAASC,OAAO,QAAQ,gCAA6B;AACrD,SAASC,MAAM,EAAEC,WAAW,EAAEC,OAAO,QAAQ,mBAAU;AACvD,SAASC,MAAM,EAAEC,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,KAAK,EAAEjD,MAAM,CAACkD;EAChB,CAAC;EACDpB,KAAK,EAAE;IACLgB,UAAU,EAAE7C,WAAW;IACvB8C,QAAQ,EAAE,EAAE;IACZE,KAAK,EAAEjD,MAAM,CAACmD,SAAS;IACvBC,UAAU,EAAE,EAAE;IACdC,SAAS,EAAE,EAAE;IACbC,YAAY,EAAE;EAChB,CAAC;EACDtB,iBAAiB,EAAE;IAAEqB,SAAS,EAAE;EAAG,CAAC;EACpCpB,YAAY,EAAE;IACZa,UAAU,EAAE7C,WAAW;IACvB8C,QAAQ,EAAE,EAAE;IACZE,KAAK,EAAEjD,MAAM,CAACmD,SAAS;IACvBC,UAAU,EAAE,EAAE;IACdC,SAAS,EAAEnD,OAAO,CAACqD;EACrB,CAAC;EACDrB,UAAU,EAAE;IAAEmB,SAAS,EAAE;EAAG,CAAC;EAC7Bb,UAAU,EAAE;IACVM,UAAU,EAAE7C,WAAW;IACvB8C,QAAQ,EAAE,EAAE;IACZE,KAAK,EAAEjD,MAAM,CAACmD,SAAS;IACvBC,UAAU,EAAE,EAAE;IACdC,SAAS,EAAEnD,OAAO,CAACsD;EACrB,CAAC;EACDf,cAAc,EAAE;IAAEO,UAAU,EAAE,KAAK;IAAEC,KAAK,EAAEjD,MAAM,CAACmD;EAAU;AAC/D,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { ScrollView, StyleSheet, Text, View } from 'react-native';
|
|
4
|
-
import { MultiPaymentRulesList } from "../consent/multi-payment-rules-list.js";
|
|
5
|
-
import { Colors, FONT_FAMILY, Spacing } from "../theme/index.js";
|
|
6
|
-
import { Footer } from "../widgets/index.js";
|
|
7
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
8
|
-
export function MandateSetupSuccessScreen(props) {
|
|
9
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
10
|
-
style: styles.root,
|
|
11
|
-
testID: "mandate-setup-success-screen",
|
|
12
|
-
children: [/*#__PURE__*/_jsx(Text, {
|
|
13
|
-
style: styles.title,
|
|
14
|
-
children: "Setup successful"
|
|
15
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
16
|
-
style: styles.subtitle,
|
|
17
|
-
children: "Successfully set up your payment method"
|
|
18
|
-
}), /*#__PURE__*/_jsx(ScrollView, {
|
|
19
|
-
style: styles.scroll,
|
|
20
|
-
contentContainerStyle: styles.scrollContent,
|
|
21
|
-
children: /*#__PURE__*/_jsx(View, {
|
|
22
|
-
style: styles.card,
|
|
23
|
-
children: /*#__PURE__*/_jsx(MultiPaymentRulesList, {
|
|
24
|
-
rulesTitle: props.rulesTitle,
|
|
25
|
-
rules: props.rules,
|
|
26
|
-
paymentType: props.paymentType
|
|
27
|
-
})
|
|
28
|
-
})
|
|
29
|
-
}), /*#__PURE__*/_jsx(Footer, {
|
|
30
|
-
onContinue: props.onDone,
|
|
31
|
-
continueButtonText: "Done",
|
|
32
|
-
continueTestID: "mandate-success-done-btn",
|
|
33
|
-
showCancelButton: false
|
|
34
|
-
})]
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
const styles = StyleSheet.create({
|
|
38
|
-
root: {
|
|
39
|
-
flex: 1,
|
|
40
|
-
backgroundColor: Colors.surfacePage,
|
|
41
|
-
paddingHorizontal: 24,
|
|
42
|
-
paddingTop: 32,
|
|
43
|
-
paddingBottom: Spacing.lg
|
|
44
|
-
},
|
|
45
|
-
title: {
|
|
46
|
-
fontFamily: FONT_FAMILY,
|
|
47
|
-
fontSize: 22,
|
|
48
|
-
fontWeight: '700',
|
|
49
|
-
color: Colors.textPrimary,
|
|
50
|
-
textAlign: 'center'
|
|
51
|
-
},
|
|
52
|
-
subtitle: {
|
|
53
|
-
fontFamily: FONT_FAMILY,
|
|
54
|
-
fontSize: 14,
|
|
55
|
-
color: Colors.textMuted,
|
|
56
|
-
textAlign: 'center',
|
|
57
|
-
marginTop: 12,
|
|
58
|
-
marginBottom: 24
|
|
59
|
-
},
|
|
60
|
-
scroll: {
|
|
61
|
-
flex: 1
|
|
62
|
-
},
|
|
63
|
-
scrollContent: {
|
|
64
|
-
paddingBottom: Spacing.md
|
|
65
|
-
},
|
|
66
|
-
card: {
|
|
67
|
-
backgroundColor: Colors.cardMutedBg,
|
|
68
|
-
borderRadius: 16,
|
|
69
|
-
paddingVertical: 16,
|
|
70
|
-
paddingHorizontal: 20,
|
|
71
|
-
borderWidth: StyleSheet.hairlineWidth,
|
|
72
|
-
borderColor: Colors.divider
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
//# sourceMappingURL=mandate-setup-success-screen.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ScrollView","StyleSheet","Text","View","MultiPaymentRulesList","Colors","FONT_FAMILY","Spacing","Footer","jsx","_jsx","jsxs","_jsxs","MandateSetupSuccessScreen","props","style","styles","root","testID","children","title","subtitle","scroll","contentContainerStyle","scrollContent","card","rulesTitle","rules","paymentType","onContinue","onDone","continueButtonText","continueTestID","showCancelButton","create","flex","backgroundColor","surfacePage","paddingHorizontal","paddingTop","paddingBottom","lg","fontFamily","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.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AAGjE,SAASC,qBAAqB,QAAQ,wCAAqC;AAC3E,SAASC,MAAM,EAAEC,WAAW,EAAEC,OAAO,QAAQ,mBAAU;AACvD,SAASC,MAAM,QAAQ,qBAAY;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AASpC,OAAO,SAASC,yBAAyBA,CAACC,KAAqC,EAAe;EAC5F,oBACEF,KAAA,CAACT,IAAI;IAAC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ACb,CAAC;EACD1B,QAAQ,EAAE;IACRqB,UAAU,EAAEpC,WAAW;IACvBqC,QAAQ,EAAE,EAAE;IACZE,KAAK,EAAExC,MAAM,CAAC2C,SAAS;IACvBD,SAAS,EAAE,QAAQ;IACnBE,SAAS,EAAE,EAAE;IACbC,YAAY,EAAE;EAChB,CAAC;EACD5B,MAAM,EAAE;IAAEa,IAAI,EAAE;EAAE,CAAC;EACnBX,aAAa,EAAE;IAAEgB,aAAa,EAAEjC,OAAO,CAAC4C;EAAG,CAAC;EAC5C1B,IAAI,EAAE;IACJW,eAAe,EAAE/B,MAAM,CAAC+C,WAAW;IACnCC,YAAY,EAAE,EAAE;IAChBC,eAAe,EAAE,EAAE;IACnBhB,iBAAiB,EAAE,EAAE;IACrBiB,WAAW,EAAEtD,UAAU,CAACuD,aAAa;IACrCC,WAAW,EAAEpD,MAAM,CAACqD;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { Ionicons } from '@expo/vector-icons';
|
|
4
|
-
import { Image, Pressable, StyleSheet, View } from 'react-native';
|
|
5
|
-
import { Colors } from "../theme/index.js";
|
|
6
|
-
import { Assets } from "../theme/assets.js";
|
|
7
|
-
import { CustomStepper } from "./stepper.js";
|
|
8
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
/**
|
|
10
|
-
* Shared flow-screen chrome. Port of Flutter `LayoutWHeader`
|
|
11
|
-
* (`lib/src/ui/widgets/layout_w_header.dart`): a white page with a centered
|
|
12
|
-
* Spare logo header, the Altareq white-background logo, a {@link CustomStepper}
|
|
13
|
-
* progress bar, and 22px body padding wrapping the screen content.
|
|
14
|
-
*
|
|
15
|
-
* CBUAE-approved chrome — copy/dimensions match the Flutter SDK exactly.
|
|
16
|
-
*/
|
|
17
|
-
export function LayoutWHeader(props) {
|
|
18
|
-
const showBack = props.onBackPress != null;
|
|
19
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
20
|
-
style: styles.page,
|
|
21
|
-
testID: "layout-w-header",
|
|
22
|
-
children: [/*#__PURE__*/_jsxs(View, {
|
|
23
|
-
style: styles.appBar,
|
|
24
|
-
children: [showBack ? /*#__PURE__*/_jsx(Pressable, {
|
|
25
|
-
accessibilityRole: "button",
|
|
26
|
-
accessibilityLabel: "Back",
|
|
27
|
-
testID: "layout-w-header-back",
|
|
28
|
-
onPress: props.onBackPress,
|
|
29
|
-
disabled: props.backDisabled,
|
|
30
|
-
hitSlop: 8,
|
|
31
|
-
style: [styles.backButton, props.backDisabled && styles.backButtonDisabled],
|
|
32
|
-
children: /*#__PURE__*/_jsx(Ionicons, {
|
|
33
|
-
name: "arrow-back",
|
|
34
|
-
size: 24,
|
|
35
|
-
color: Colors.textPrimary
|
|
36
|
-
})
|
|
37
|
-
}) : null, /*#__PURE__*/_jsx(Image, {
|
|
38
|
-
source: Assets.spareLogo,
|
|
39
|
-
style: styles.spareLogo,
|
|
40
|
-
resizeMode: "contain",
|
|
41
|
-
accessibilityRole: "image",
|
|
42
|
-
accessibilityLabel: "Spare"
|
|
43
|
-
})]
|
|
44
|
-
}), /*#__PURE__*/_jsx(Image, {
|
|
45
|
-
source: Assets.altareqLogoWhiteBg,
|
|
46
|
-
style: styles.altareqLogo,
|
|
47
|
-
resizeMode: "contain",
|
|
48
|
-
accessibilityRole: "image",
|
|
49
|
-
accessibilityLabel: "Altareq"
|
|
50
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
51
|
-
style: styles.stepperWrap,
|
|
52
|
-
children: /*#__PURE__*/_jsx(CustomStepper, {
|
|
53
|
-
progress: props.progress ?? 0.5
|
|
54
|
-
})
|
|
55
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
56
|
-
style: styles.body,
|
|
57
|
-
children: props.children
|
|
58
|
-
})]
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
const styles = StyleSheet.create({
|
|
62
|
-
page: {
|
|
63
|
-
flex: 1,
|
|
64
|
-
backgroundColor: '#FFFFFF'
|
|
65
|
-
},
|
|
66
|
-
appBar: {
|
|
67
|
-
height: 56,
|
|
68
|
-
alignItems: 'center',
|
|
69
|
-
justifyContent: 'center',
|
|
70
|
-
paddingTop: 8
|
|
71
|
-
},
|
|
72
|
-
backButton: {
|
|
73
|
-
position: 'absolute',
|
|
74
|
-
left: 8,
|
|
75
|
-
top: 8,
|
|
76
|
-
width: 40,
|
|
77
|
-
height: 40,
|
|
78
|
-
alignItems: 'center',
|
|
79
|
-
justifyContent: 'center'
|
|
80
|
-
},
|
|
81
|
-
backButtonDisabled: {
|
|
82
|
-
opacity: 0.4
|
|
83
|
-
},
|
|
84
|
-
spareLogo: {
|
|
85
|
-
height: 18,
|
|
86
|
-
width: 120
|
|
87
|
-
},
|
|
88
|
-
altareqLogo: {
|
|
89
|
-
height: 45,
|
|
90
|
-
width: '100%',
|
|
91
|
-
alignSelf: 'center'
|
|
92
|
-
},
|
|
93
|
-
stepperWrap: {
|
|
94
|
-
paddingHorizontal: 22,
|
|
95
|
-
paddingVertical: 16
|
|
96
|
-
},
|
|
97
|
-
body: {
|
|
98
|
-
flex: 1,
|
|
99
|
-
padding: 22
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
//# sourceMappingURL=layout-w-header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Ionicons","Image","Pressable","StyleSheet","View","Colors","Assets","CustomStepper","jsx","_jsx","jsxs","_jsxs","LayoutWHeader","props","showBack","onBackPress","style","styles","page","testID","children","appBar","accessibilityRole","accessibilityLabel","onPress","disabled","backDisabled","hitSlop","backButton","backButtonDisabled","name","size","color","textPrimary","source","spareLogo","resizeMode","altareqLogoWhiteBg","altareqLogo","stepperWrap","progress","body","create","flex","backgroundColor","height","alignItems","justifyContent","paddingTop","position","left","top","width","opacity","alignSelf","paddingHorizontal","paddingVertical","padding"],"sourceRoot":"../../../../src","sources":["ui/widgets/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d,WAAW,EAAE;IAAEO,MAAM,EAAE,EAAE;IAAEO,KAAK,EAAE,MAAM;IAAEE,SAAS,EAAE;EAAS,CAAC;EAC/Df,WAAW,EAAE;IAAEgB,iBAAiB,EAAE,EAAE;IAAEC,eAAe,EAAE;EAAG,CAAC;EAC3Df,IAAI,EAAE;IAAEE,IAAI,EAAE,CAAC;IAAEc,OAAO,EAAE;EAAG;AAC/B,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { StyleSheet, Text, View } from 'react-native';
|
|
4
|
-
import { FONT_FAMILY } from "../theme/index.js";
|
|
5
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
-
const TOTAL_STEPS = 3;
|
|
7
|
-
const STEP_LABELS = ['Consent', 'Authorize', 'Complete'];
|
|
8
|
-
/**
|
|
9
|
-
* Three-step progress indicator. Port of Flutter `CustomStepper`
|
|
10
|
-
* (`lib/src/ui/widgets/stepper.dart`): a grey baseline with a black fill up to
|
|
11
|
-
* the current step, numbered circles, and "Consent / Authorize / Complete"
|
|
12
|
-
* labels.
|
|
13
|
-
*/
|
|
14
|
-
export function CustomStepper(props) {
|
|
15
|
-
const maxProgress = TOTAL_STEPS - 1;
|
|
16
|
-
const progressPercent = Math.min(1, Math.max(0, props.progress / maxProgress));
|
|
17
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
18
|
-
testID: "custom-stepper",
|
|
19
|
-
children: [/*#__PURE__*/_jsx(View, {
|
|
20
|
-
style: styles.track,
|
|
21
|
-
children: /*#__PURE__*/_jsxs(View, {
|
|
22
|
-
style: styles.lineArea,
|
|
23
|
-
children: [/*#__PURE__*/_jsx(View, {
|
|
24
|
-
style: styles.baseline
|
|
25
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
26
|
-
style: [styles.fill, {
|
|
27
|
-
width: `${progressPercent * 100}%`
|
|
28
|
-
}]
|
|
29
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
30
|
-
style: styles.circlesRow,
|
|
31
|
-
children: STEP_LABELS.map((label, index) => {
|
|
32
|
-
const isFilled = props.progress >= index;
|
|
33
|
-
return /*#__PURE__*/_jsx(View, {
|
|
34
|
-
testID: `stepper-circle-${index}`,
|
|
35
|
-
style: [styles.circle, isFilled ? styles.circleFilled : styles.circleEmpty],
|
|
36
|
-
children: /*#__PURE__*/_jsx(Text, {
|
|
37
|
-
style: [styles.circleText, isFilled && styles.circleTextFilled],
|
|
38
|
-
children: index + 1
|
|
39
|
-
})
|
|
40
|
-
}, label);
|
|
41
|
-
})
|
|
42
|
-
})]
|
|
43
|
-
})
|
|
44
|
-
}), /*#__PURE__*/_jsx(View, {
|
|
45
|
-
style: styles.labelsRow,
|
|
46
|
-
children: STEP_LABELS.map(label => /*#__PURE__*/_jsx(Text, {
|
|
47
|
-
style: styles.label,
|
|
48
|
-
children: label
|
|
49
|
-
}, label))
|
|
50
|
-
})]
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
const LINE_COLOR_BG = '#D6D6DB'; // Colors.grey.shade300
|
|
54
|
-
const CIRCLE_SIZE = 32;
|
|
55
|
-
const styles = StyleSheet.create({
|
|
56
|
-
track: {
|
|
57
|
-
height: 40,
|
|
58
|
-
justifyContent: 'center',
|
|
59
|
-
paddingHorizontal: 12
|
|
60
|
-
},
|
|
61
|
-
// Inset content box (track width − 24). The baseline and the percent-width
|
|
62
|
-
// fill are positioned relative to this, so they share one reference span.
|
|
63
|
-
lineArea: {
|
|
64
|
-
justifyContent: 'center'
|
|
65
|
-
},
|
|
66
|
-
baseline: {
|
|
67
|
-
position: 'absolute',
|
|
68
|
-
left: 0,
|
|
69
|
-
right: 0,
|
|
70
|
-
top: 18,
|
|
71
|
-
height: 4,
|
|
72
|
-
backgroundColor: LINE_COLOR_BG
|
|
73
|
-
},
|
|
74
|
-
fill: {
|
|
75
|
-
position: 'absolute',
|
|
76
|
-
left: 0,
|
|
77
|
-
top: 18,
|
|
78
|
-
height: 4,
|
|
79
|
-
backgroundColor: '#000000',
|
|
80
|
-
borderTopRightRadius: 12,
|
|
81
|
-
borderBottomRightRadius: 12
|
|
82
|
-
},
|
|
83
|
-
circlesRow: {
|
|
84
|
-
flexDirection: 'row',
|
|
85
|
-
justifyContent: 'space-between',
|
|
86
|
-
alignItems: 'center'
|
|
87
|
-
},
|
|
88
|
-
circle: {
|
|
89
|
-
width: CIRCLE_SIZE,
|
|
90
|
-
height: CIRCLE_SIZE,
|
|
91
|
-
borderRadius: CIRCLE_SIZE / 2,
|
|
92
|
-
alignItems: 'center',
|
|
93
|
-
justifyContent: 'center'
|
|
94
|
-
},
|
|
95
|
-
circleFilled: {
|
|
96
|
-
backgroundColor: '#000000'
|
|
97
|
-
},
|
|
98
|
-
circleEmpty: {
|
|
99
|
-
backgroundColor: LINE_COLOR_BG
|
|
100
|
-
},
|
|
101
|
-
circleText: {
|
|
102
|
-
fontFamily: FONT_FAMILY,
|
|
103
|
-
fontWeight: '700',
|
|
104
|
-
color: '#000000'
|
|
105
|
-
},
|
|
106
|
-
circleTextFilled: {
|
|
107
|
-
color: '#FFFFFF'
|
|
108
|
-
},
|
|
109
|
-
labelsRow: {
|
|
110
|
-
flexDirection: 'row',
|
|
111
|
-
justifyContent: 'space-between',
|
|
112
|
-
marginTop: 4
|
|
113
|
-
},
|
|
114
|
-
label: {
|
|
115
|
-
fontFamily: FONT_FAMILY,
|
|
116
|
-
fontSize: 14,
|
|
117
|
-
color: '#000000'
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
//# sourceMappingURL=stepper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["StyleSheet","Text","View","FONT_FAMILY","jsx","_jsx","jsxs","_jsxs","TOTAL_STEPS","STEP_LABELS","CustomStepper","props","maxProgress","progressPercent","Math","min","max","progress","testID","children","style","styles","track","lineArea","baseline","fill","width","circlesRow","map","label","index","isFilled","circle","circleFilled","circleEmpty","circleText","circleTextFilled","labelsRow","LINE_COLOR_BG","CIRCLE_SIZE","create","height","justifyContent","paddingHorizontal","position","left","right","top","backgroundColor","borderTopRightRadius","borderBottomRightRadius","flexDirection","alignItems","borderRadius","fontFamily","fontWeight","color","marginTop","fontSize"],"sourceRoot":"../../../../src","sources":["ui/widgets/stepper.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,EAAEC,IAAI,QAAQ,cAAc;AACrD,SAASC,WAAW,QAAQ,mBAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEvC,MAAMC,WAAW,GAAG,CAAC;AACrB,MAAMC,WAAW,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,UAAU,CAAU;AAUjE;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,SAASC,aAAaA,CAACC,KAAyB,EAAe;EACpE,MAAMC,WAAW,GAAGJ,WAAW,GAAG,CAAC;EACnC,MAAMK,eAAe,GAAGC,IAAI,CAACC,GAAG,CAAC,CAAC,EAAED,IAAI,CAACE,GAAG,CAAC,CAAC,EAAEL,KAAK,CAACM,QAAQ,GAAGL,WAAW,CAAC,CAAC;EAE9E,oBACEL,KAAA,CAACL,IAAI;IAACgB,MAAM,EAAC,gBAAgB;IAAAC,QAAA,gBAC3Bd,IAAA,CAACH,IAAI;MAACkB,KAAK,EAAEC,MAAM,CAACC,KAAM;MAAAH,QAAA,eACxBZ,KAAA,CAACL,IAAI;QAACkB,KAAK,EAAEC,MAAM,CAACE,QAAS;QAAAJ,QAAA,gBAE3Bd,IAAA,CAACH,IAAI;UAACkB,KAAK,EAAEC,MAAM,CAACG;QAAS,CAAE,CAAC,eAIhCnB,IAAA,CAACH,IAAI;UAACkB,KAAK,EAAE,CAACC,MAAM,CAACI,IAAI,EAAE;YAAEC,KAAK,EAAE,GAAGb,eAAe,GAAG,GAAG;UAAI,CAAC;QAAE,CAAE,CAAC,eAEtER,IAAA,CAACH,IAAI;UAACk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,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,GAAG,EAAE,EAAE;IACPN,MAAM,EAAE,CAAC;IACTO,eAAe,EAAEV;EACnB,CAAC;EACDb,IAAI,EAAE;IACJmB,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPE,GAAG,EAAE,EAAE;IACPN,MAAM,EAAE,CAAC;IACTO,eAAe,EAAE,SAAS;IAC1BC,oBAAoB,EAAE,EAAE;IACxBC,uBAAuB,EAAE;EAC3B,CAAC;EACDvB,UAAU,EAAE;IACVwB,aAAa,EAAE,KAAK;IACpBT,cAAc,EAAE,eAAe;IAC/BU,UAAU,EAAE;EACd,CAAC;EACDpB,MAAM,EAAE;IACNN,KAAK,EAAEa,WAAW;IAClBE,MAAM,EAAEF,WAAW;IACnBc,YAAY,EAAEd,WAAW,GAAG,CAAC;IAC7Ba,UAAU,EAAE,QAAQ;IACpBV,cAAc,EAAE;EAClB,CAAC;EACDT,YAAY,EAAE;IAAEe,eAAe,EAAE;EAAU,CAAC;EAC5Cd,WAAW,EAAE;IAAEc,eAAe,EAAEV;EAAc,CAAC;EAC/CH,UAAU,EAAE;IACVmB,UAAU,EAAEnD,WAAW;IACvBoD,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAE;EACT,CAAC;EACDpB,gBAAgB,EAAE;IAAEoB,KAAK,EAAE;EAAU,CAAC;EACtCnB,SAAS,EAAE;IACTc,aAAa,EAAE,KAAK;IACpBT,cAAc,EAAE,eAAe;IAC/Be,SAAS,EAAE;EACb,CAAC;EACD5B,KAAK,EAAE;IACLyB,UAAU,EAAEnD,WAAW;IACvBuD,QAAQ,EAAE,EAAE;IACZF,KAAK,EAAE;EACT;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { type SpareApiTenant } from '../../public/spare-link-config';
|
|
2
|
-
import type { ConsentResponse, CopResponse, LinkSessionResponse, LinkStatusResponse, PatchTokenResponse, ProviderSummary, TelemetryResponse } from '../models';
|
|
3
|
-
export interface LinkApiClientOptions {
|
|
4
|
-
baseUrl: string;
|
|
5
|
-
/** Either 'UAE' (raw header value) or a tenant enum. */
|
|
6
|
-
tenant: SpareApiTenant | string;
|
|
7
|
-
fetch?: typeof fetch;
|
|
8
|
-
requestTimeoutMs?: number;
|
|
9
|
-
/** UUID generator for the Idempotency-Key header on POST /link/consent. */
|
|
10
|
-
uuid?: () => string;
|
|
11
|
-
/** User-Agent header (defaults to `@spare-technologies/spare-link/<SDK_VERSION>`). */
|
|
12
|
-
userAgent?: string;
|
|
13
|
-
}
|
|
14
|
-
/** Full client for all Link-origin endpoints — headers, retry rules, and error mapping. */
|
|
15
|
-
export declare class LinkApiClient {
|
|
16
|
-
readonly baseUrl: string;
|
|
17
|
-
readonly tenantHeader: string;
|
|
18
|
-
readonly requestTimeoutMs: number;
|
|
19
|
-
readonly userAgent: string;
|
|
20
|
-
private readonly fetchImpl;
|
|
21
|
-
private readonly uuid;
|
|
22
|
-
private readonly aborters;
|
|
23
|
-
private disposed;
|
|
24
|
-
constructor(opts: LinkApiClientOptions);
|
|
25
|
-
/** Aborts in-flight requests and rejects further work. */
|
|
26
|
-
dispose(): void;
|
|
27
|
-
private headers;
|
|
28
|
-
private url;
|
|
29
|
-
/**
|
|
30
|
-
* Wraps a single attempt with a per-request `AbortController`. Times out after
|
|
31
|
-
* `requestTimeoutMs`. Classifies any thrown non-{@link PaymentApiError} as
|
|
32
|
-
* `network_error` so callers always see a typed error.
|
|
33
|
-
*/
|
|
34
|
-
private withTimeout;
|
|
35
|
-
/** Idempotent retry helper (max 2 attempts, 500ms + 1000ms backoff). */
|
|
36
|
-
private withRetry;
|
|
37
|
-
private parseAndHandle;
|
|
38
|
-
private throwForError;
|
|
39
|
-
/** `GET /link` — one-time session hydration. */
|
|
40
|
-
getSession(linkToken: string): Promise<LinkSessionResponse>;
|
|
41
|
-
/** `GET /link/status` — read-only session status. */
|
|
42
|
-
getStatus(linkToken: string): Promise<LinkStatusResponse>;
|
|
43
|
-
/** `GET /link/providers` — bank list for the session jurisdiction. */
|
|
44
|
-
getProviders(linkToken: string): Promise<ProviderSummary[]>;
|
|
45
|
-
/** `POST /link/telemetry` — device/risk signals (best-effort). */
|
|
46
|
-
postTelemetry(args: {
|
|
47
|
-
linkToken: string;
|
|
48
|
-
payload: Record<string, unknown>;
|
|
49
|
-
}): Promise<TelemetryResponse>;
|
|
50
|
-
/** `GET /link/cop` — Confirmation of Payee. Accepts an optional providerId override. */
|
|
51
|
-
getConfirmPayee(linkToken: string, providerId?: string): Promise<CopResponse>;
|
|
52
|
-
/**
|
|
53
|
-
* `POST /link/consent` — creates a consent and returns the bank redirect URL.
|
|
54
|
-
*
|
|
55
|
-
* NEVER retried — the Idempotency-Key header guarantees safe retries at the
|
|
56
|
-
* caller level if they re-invoke with the SAME key.
|
|
57
|
-
*/
|
|
58
|
-
postConsent(args: {
|
|
59
|
-
linkToken: string;
|
|
60
|
-
bankId?: string;
|
|
61
|
-
idempotencyKey?: string;
|
|
62
|
-
}): Promise<ConsentResponse>;
|
|
63
|
-
/** `PATCH /link` — cancel or report an error on the session. */
|
|
64
|
-
patchToken(args: {
|
|
65
|
-
linkToken: string;
|
|
66
|
-
action: 'cancel' | 'error';
|
|
67
|
-
errorCode?: string;
|
|
68
|
-
}): Promise<PatchTokenResponse>;
|
|
69
|
-
}
|
|
70
|
-
//# sourceMappingURL=link-api-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link-api-client.d.ts","sourceRoot":"","sources":["../../../../../src/core/client/link-api-client.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAqB,MAAM,gCAAgC,CAAC;AAGxF,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EAClB,MAAM,WAAW,CAAC;AAYnB,MAAM,W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AM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KAClC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAa9B,wFAAwF;IAClF,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAenF;;;;;OAKG;IACG,WAAW,CAAC,IAAI,EAAE;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,GAAG,OAAO,CAAC,eAAe,CAAC;IAe5B,gEAAgE;IAC1D,UAAU,CAAC,IAAI,EAAE;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC;QAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC,kBAAkB,CAAC;CAiBhC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Errors emitted by the SDK's API client.
|
|
3
|
-
*
|
|
4
|
-
* The `code` field is stable wire-of-record for merchant analytics/logging.
|
|
5
|
-
* The `message` field is intentionally generic and safe to display to end users.
|
|
6
|
-
*/
|
|
7
|
-
export declare class PaymentApiError extends Error {
|
|
8
|
-
readonly code: string;
|
|
9
|
-
constructor(code: string, message: string);
|
|
10
|
-
toString(): string;
|
|
11
|
-
static sessionExpired(): PaymentApiError;
|
|
12
|
-
}
|
|
13
|
-
/** Type guard so consumers can narrow without instanceof. */
|
|
14
|
-
export declare function isPaymentApiError(err: unknown): err is PaymentApiError;
|
|
15
|
-
//# sourceMappingURL=payment-api-error.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-api-error.d.ts","sourceRoot":"","sources":["../../../../../src/core/errors/payment-api-error.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,qBAAa,eAAgB,SAAQ,KAAK;IACxC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBAEV,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAQhC,QAAQ,IAAI,MAAM;IAI3B,MAAM,CAAC,cAAc,IAAI,eAAe;CAGzC;AAED,6DAA6D;AAC7D,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,OAAO,GAAG,GAAG,IAAI,eAAe,CAOtE"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `/link/status` values where the bank has returned but settlement may still be
|
|
3
|
-
* pending. `redirected` only means consent was posted — not bank authorization.
|
|
4
|
-
*/
|
|
5
|
-
export declare function isBankCallbackReceivedStatus(status: string): boolean;
|
|
6
|
-
//# sourceMappingURL=link-session-status.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link-session-status.d.ts","sourceRoot":"","sources":["../../../../../src/core/models/link-session-status.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,4BAA4B,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAEpE"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { CreatePaymentRequestInput } from './index';
|
|
2
|
-
export declare enum PaymentType {
|
|
3
|
-
singleInstantPayment = "SingleInstantPayment",
|
|
4
|
-
fixedDefinedSchedule = "FixedDefinedSchedule",
|
|
5
|
-
variableDefinedSchedule = "VariableDefinedSchedule",
|
|
6
|
-
fixedPeriodicSchedule = "FixedPeriodicSchedule",
|
|
7
|
-
variablePeriodicSchedule = "VariablePeriodicSchedule",
|
|
8
|
-
fixedOnDemand = "FixedOnDemand",
|
|
9
|
-
variableOnDemand = "VariableOnDemand",
|
|
10
|
-
internationalPayment = "InternationalPayment"
|
|
11
|
-
}
|
|
12
|
-
export type ConsentUiVariant = 'singlePayment' | 'international' | 'multiPayment';
|
|
13
|
-
export declare function resolvedPaymentType(request: CreatePaymentRequestInput): PaymentType;
|
|
14
|
-
export declare function isMultiPayment(request: CreatePaymentRequestInput): boolean;
|
|
15
|
-
export declare function isInternational(request: CreatePaymentRequestInput): boolean;
|
|
16
|
-
export declare function supportsConfirmationOfPayee(request: CreatePaymentRequestInput): boolean;
|
|
17
|
-
export declare function consentUiVariant(request: CreatePaymentRequestInput): ConsentUiVariant;
|
|
18
|
-
//# sourceMappingURL=payment-type.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payment-type.d.ts","sourceRoot":"","sources":["../../../../../src/core/models/payment-type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEzD,oBAAY,WAAW;IACrB,oBAAoB,yBAAyB;IAC7C,oBAAoB,yBAAyB;IAC7C,uBAAuB,4BAA4B;IACnD,qBAAqB,0BAA0B;IAC/C,wBAAwB,6BAA6B;IACrD,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC,oBAAoB,yBAAyB;CAC9C;AAED,MAAM,MAAM,gBAAgB,GAAG,eAAe,GAAG,eAAe,GAAG,cAAc,CAAC;AAWlF,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,yBAAyB,GAAG,WAAW,CAMnF;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAE1E;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAK3E;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAIvF;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,yBAAyB,GAAG,gBAAgB,CAIrF"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pure functions translating snake_case wire payloads from tofa into camelCase
|
|
3
|
-
* SDK models. Kept separate from the API client so they're trivially unit-testable
|
|
4
|
-
* without HTTP setup.
|
|
5
|
-
*/
|
|
6
|
-
import type { ConsentResponse, CopResponse, CreatePaymentRequestInput, LinkSessionResponse, LinkStatusResponse, PatchTokenResponse, ProviderCountry, ProviderSummary, TelemetryResponse } from './index';
|
|
7
|
-
export declare function mapCreatePaymentRequestInput(raw: unknown): CreatePaymentRequestInput;
|
|
8
|
-
export declare function mapLinkSessionResponse(raw: unknown): LinkSessionResponse;
|
|
9
|
-
export declare function mapConsentResponse(raw: unknown): ConsentResponse;
|
|
10
|
-
export declare function mapLinkStatusResponse(raw: unknown): LinkStatusResponse;
|
|
11
|
-
export declare function mapCopResponse(raw: unknown): CopResponse;
|
|
12
|
-
export declare function mapTelemetryResponse(raw: unknown): TelemetryResponse;
|
|
13
|
-
export declare function mapPatchTokenResponse(raw: unknown): PatchTokenResponse;
|
|
14
|
-
export declare function mapProviderCountry(raw: unknown): ProviderCountry;
|
|
15
|
-
export declare function mapProviderSummary(raw: unknown): ProviderSummary;
|
|
16
|
-
export declare function mapProvidersResponse(raw: unknown): ProviderSummary[];
|
|
17
|
-
/** Unwraps the tofa `{ data: ... }` success envelope. */
|
|
18
|
-
export declare function unwrap(payload: unknown): unknown;
|
|
19
|
-
//# sourceMappingURL=wire-mappers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wire-mappers.d.ts","sourceRoot":"","sources":["../../../../../src/core/models/wire-mappers.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAEV,eAAe,EACf,WAAW,EACX,yBAAyB,EAEzB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAKlB,eAAe,EACf,eAAe,EACf,iBAAiB,EAClB,MAAM,SAAS,CAAC;AA6IjB,wBAAgB,4BAA4B,CAAC,GAAG,EAAE,OAAO,GAAG,yBAAyB,CA4BpF;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,OAAO,GAAG,mBAAmB,CAQxE;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,eAAe,CAOhE;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,kBAAkB,CAkBtE;AAED,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,WAAW,CASxD;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,iBAAiB,CAQpE;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,kBAAkB,CAkBtE;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,eAAe,CAMhE;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,eAAe,CAYhE;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,OAAO,GAAG,eAAe,EAAE,CAUpE;AAED,yDAAyD;AACzD,wBAAgB,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAMhD"}
|