@paydock/client-sdk 1.103.1 → 1.104.1-beta
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 +102 -104
- package/bundles/index.cjs +10674 -0
- package/bundles/index.cjs.d.ts +3163 -0
- package/bundles/index.cjs.map +1 -0
- package/bundles/index.mjs +10642 -0
- package/bundles/index.mjs.d.ts +3163 -0
- package/bundles/index.mjs.map +1 -0
- package/{lib → bundles/types}/api/api-base.d.ts +2 -1
- package/bundles/types/api/api-base.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-charge-internal.d.ts +1 -0
- package/bundles/types/api/api-charge-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-charge.d.ts +1 -0
- package/bundles/types/api/api-charge.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-internal.d.ts +1 -0
- package/bundles/types/api/api-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api-service-internal.d.ts +1 -0
- package/bundles/types/api/api-service-internal.d.ts.map +1 -0
- package/{lib → bundles/types}/api/api.d.ts +1 -0
- package/bundles/types/api/api.d.ts.map +1 -0
- package/bundles/types/api/index.d.ts +2 -0
- package/bundles/types/api/index.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/canvas-3ds.d.ts +1 -0
- package/bundles/types/canvas-3ds/canvas-3ds.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/index.d.ts +1 -0
- package/bundles/types/canvas-3ds/index.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/gpayments-service.d.ts +1 -0
- package/bundles/types/canvas-3ds/services/gpayments-service.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/index.d.ts +1 -0
- package/bundles/types/canvas-3ds/services/index.d.ts.map +1 -0
- package/{lib → bundles/types}/canvas-3ds/services/standalone3ds-service.d.ts +1 -0
- package/bundles/types/canvas-3ds/services/standalone3ds-service.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/afterpay/afterpay-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/afterpay/afterpay.runner.d.ts +1 -0
- package/bundles/types/checkout-button/afterpay/afterpay.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-button.interface.d.ts +1 -0
- package/bundles/types/checkout-button/checkout-button.interface.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/checkout-contextual-handler.d.ts +1 -0
- package/bundles/types/checkout-button/checkout-contextual-handler.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/index.d.ts +2 -1
- package/bundles/types/checkout-button/index.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/paypal/paypal-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/paypal/paypal-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/paypal/paypal.runner.d.ts +1 -0
- package/bundles/types/checkout-button/paypal/paypal.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/base.runner.d.ts +4 -3
- package/bundles/types/checkout-button/runner/base.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/contextual.runner.d.ts +2 -1
- package/bundles/types/checkout-button/runner/contextual.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/index.d.ts +1 -0
- package/bundles/types/checkout-button/runner/index.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/popup.runner.d.ts +2 -1
- package/bundles/types/checkout-button/runner/popup.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/runner/redirect.runner.d.ts +2 -1
- package/bundles/types/checkout-button/runner/redirect.runner.d.ts.map +1 -0
- package/bundles/types/checkout-button/zipmoney/index.d.ts +4 -0
- package/bundles/types/checkout-button/zipmoney/index.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-checkout-button.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney-checkout-button.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-contextual.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney-redirect.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.config.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.config.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.runner.d.ts +2 -1
- package/bundles/types/checkout-button/zipmoney/zipmoney.runner.d.ts.map +1 -0
- package/{lib → bundles/types}/checkout-button/zipmoney/zipmoney.types.d.ts +1 -0
- package/bundles/types/checkout-button/zipmoney/zipmoney.types.d.ts.map +1 -0
- package/{lib → bundles/types}/components/ability-guard.d.ts +1 -0
- package/bundles/types/components/ability-guard.d.ts.map +1 -0
- package/{lib → bundles/types}/components/background.d.ts +1 -0
- package/bundles/types/components/background.d.ts.map +1 -0
- package/{lib → bundles/types}/components/container.d.ts +1 -0
- package/bundles/types/components/container.d.ts.map +1 -0
- package/{lib → bundles/types}/components/dispatcher.d.ts +2 -1
- package/bundles/types/components/dispatcher.d.ts.map +1 -0
- package/{lib → bundles/types}/components/element-style.d.ts +2 -1
- package/bundles/types/components/element-style.d.ts.map +1 -0
- package/{lib → bundles/types}/components/flypay-iframe-event.d.ts +1 -0
- package/bundles/types/components/flypay-iframe-event.d.ts.map +1 -0
- package/{lib → bundles/types}/components/form-Interceptor.d.ts +1 -0
- package/bundles/types/components/form-Interceptor.d.ts.map +1 -0
- package/{lib → bundles/types}/components/http-core.d.ts +1 -0
- package/bundles/types/components/http-core.d.ts.map +1 -0
- package/{lib → bundles/types}/components/iframe-event.d.ts +2 -0
- package/bundles/types/components/iframe-event.d.ts.map +1 -0
- package/{lib → bundles/types}/components/iframe.d.ts +1 -0
- package/bundles/types/components/iframe.d.ts.map +1 -0
- package/{lib → bundles/types}/components/link.d.ts +2 -1
- package/bundles/types/components/link.d.ts.map +1 -0
- package/{lib → bundles/types}/components/loader.d.ts +1 -0
- package/bundles/types/components/loader.d.ts.map +1 -0
- package/{lib → bundles/types}/components/param.d.ts +6 -5
- package/bundles/types/components/param.d.ts.map +1 -0
- package/{lib → bundles/types}/components/popup.d.ts +1 -0
- package/bundles/types/components/popup.d.ts.map +1 -0
- package/{lib → bundles/types}/components/storage-dispatcher.d.ts +1 -0
- package/bundles/types/components/storage-dispatcher.d.ts.map +1 -0
- package/{lib → bundles/types}/components/trigger.d.ts +1 -0
- package/bundles/types/components/trigger.d.ts.map +1 -0
- package/{lib → bundles/types}/components/vault-display-iframe-event.d.ts +1 -0
- package/bundles/types/components/vault-display-iframe-event.d.ts.map +1 -0
- package/{lib → bundles/types}/components/wallet-background.d.ts +1 -0
- package/bundles/types/components/wallet-background.d.ts.map +1 -0
- package/{lib → bundles/types}/components/wallet-trigger.d.ts +1 -0
- package/bundles/types/components/wallet-trigger.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.cba.d.ts +29 -0
- package/bundles/types/configs/env/environment.cba.d.ts.map +1 -0
- package/bundles/types/configs/env/environment.interface.d.ts +12 -0
- package/bundles/types/configs/env/environment.interface.d.ts.map +1 -0
- package/{lib/configs/env/env.d.ts → bundles/types/configs/env/environment.paydock.d.ts} +5 -8
- package/bundles/types/configs/env/environment.paydock.d.ts.map +1 -0
- package/bundles/types/configs/env/index.d.ts +3 -0
- package/bundles/types/configs/env/index.d.ts.map +1 -0
- package/{lib → bundles/types}/configs/sdk.d.ts +3 -2
- package/bundles/types/configs/sdk.d.ts.map +1 -0
- package/{lib → bundles/types}/external-checkout/builder.d.ts +1 -0
- package/bundles/types/external-checkout/builder.d.ts.map +1 -0
- package/{lib → bundles/types}/external-checkout/checker.d.ts +1 -0
- package/bundles/types/external-checkout/checker.d.ts.map +1 -0
- package/bundles/types/external-checkout/index.d.ts +3 -0
- package/bundles/types/external-checkout/index.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/access-token.d.ts +1 -0
- package/bundles/types/helper/access-token.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/browser.d.ts +1 -0
- package/bundles/types/helper/browser.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/event-emitter.d.ts +1 -0
- package/bundles/types/helper/event-emitter.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/event.d.ts +1 -0
- package/bundles/types/helper/event.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/ms.d.ts +1 -0
- package/bundles/types/helper/ms.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/object.d.ts +1 -0
- package/bundles/types/helper/object.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/url.d.ts +1 -0
- package/bundles/types/helper/url.d.ts.map +1 -0
- package/{lib → bundles/types}/helper/uuid.d.ts +1 -0
- package/bundles/types/helper/uuid.d.ts.map +1 -0
- package/bundles/types/index-cba.d.ts +13 -0
- package/bundles/types/index-cba.d.ts.map +1 -0
- package/bundles/types/index.d.ts +14 -0
- package/bundles/types/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source/builder.d.ts +1 -0
- package/bundles/types/payment-source/builder.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source/index.d.ts +1 -0
- package/bundles/types/payment-source/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/html-payment-source-widget.d.ts +1 -0
- package/bundles/types/payment-source-widget/html-payment-source-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/index.d.ts +1 -0
- package/bundles/types/payment-source-widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/interfaces.d.ts +1 -0
- package/bundles/types/payment-source-widget/interfaces.d.ts.map +1 -0
- package/{lib → bundles/types}/payment-source-widget/payment-source-widget.d.ts +1 -0
- package/bundles/types/payment-source-widget/payment-source-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/index.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/index.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/interfaces.d.ts +6 -5
- package/bundles/types/secure-remote-commerce/interfaces.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/src-provider.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/src-provider.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/helper.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/visa-src/helper.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/index.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/visa-src/index.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/visa-src.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/providers/visa-src/visa-src.styles.d.ts.map +1 -0
- package/{lib → bundles/types}/secure-remote-commerce/secure-remote-commerce.d.ts +1 -0
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -0
- package/{lib → bundles/types}/vault-display-widget/index.d.ts +1 -0
- package/bundles/types/vault-display-widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/vault-display-widget/vault-display-widget.d.ts +1 -0
- package/bundles/types/vault-display-widget/vault-display-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/afterpay.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/afterpay.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/apple.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/apple.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/flypay-v2.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/flypay-v2.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/flypay.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/flypay.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/google.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/google.wallet-service.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/index-cba.d.ts +2 -0
- package/bundles/types/wallet-buttons/index-cba.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/index.d.ts +1 -0
- package/bundles/types/wallet-buttons/index.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/interfaces.d.ts +1 -0
- package/bundles/types/wallet-buttons/interfaces.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/mastercard.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/mastercard.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/paypal.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/paypal.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/stripe.wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/stripe.wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/wallet-buttons.d.ts +1 -0
- package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts +330 -0
- package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -0
- package/{lib → bundles/types}/wallet-buttons/wallet-service.d.ts +1 -0
- package/bundles/types/wallet-buttons/wallet-service.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/configuration.d.ts +2 -1
- package/bundles/types/widget/configuration.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/html-multi-widget.d.ts +1 -0
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/html-widget.d.ts +1 -0
- package/bundles/types/widget/html-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/index.d.ts +2 -1
- package/bundles/types/widget/index.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/meta.d.ts +1 -0
- package/bundles/types/widget/meta.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/multi-widget.d.ts +2 -1
- package/bundles/types/widget/multi-widget.d.ts.map +1 -0
- package/{lib → bundles/types}/widget/style.d.ts +1 -0
- package/bundles/types/widget/style.d.ts.map +1 -0
- package/bundles/widget.umd.js +6813 -6963
- package/bundles/widget.umd.js.d.ts +3163 -0
- package/bundles/widget.umd.js.map +1 -0
- package/bundles/widget.umd.js.min.d.ts +3163 -0
- package/bundles/widget.umd.min.js +2 -1
- package/bundles/widget.umd.min.js.map +1 -0
- package/docs/api-canvas3ds.md +158 -0
- package/docs/api-checkout-button.md +912 -0
- package/docs/api-examples.md +65 -0
- package/docs/api-ps-widget.md +585 -0
- package/docs/api-vault-display.md +94 -0
- package/docs/api-widget.md +2444 -0
- package/docs/api-wrapper.md +78 -0
- package/docs/canvas3ds-examples.md +242 -0
- package/docs/cba-header.md +13 -0
- package/docs/cba-license.md +2 -0
- package/docs/checkout-examples.md +248 -0
- package/docs/header.md +15 -0
- package/docs/html/layout.html +78 -0
- package/docs/html/marked.js +23 -0
- package/docs/html/style.css +365 -0
- package/docs/install/npm.content.md +16 -0
- package/docs/install/npm.example.md +24 -0
- package/docs/install/umd.content.md +21 -0
- package/docs/install/umd.example.md +6 -0
- package/docs/install.md +53 -0
- package/docs/install.readme.t.md +17 -0
- package/docs/install.slate.t.md +17 -0
- package/docs/license.md +2 -0
- package/docs/partials/header.hbs +3 -0
- package/docs/ps-examples.md +129 -0
- package/docs/secure-remote-commerce-examples.md +258 -0
- package/docs/secure-remote-commerce.md +265 -0
- package/docs/vault-display-example.md +132 -0
- package/docs/wallet-buttons-examples.md +580 -0
- package/docs/wallet-buttons.md +424 -0
- package/docs/wallet-cba-buttons-examples.md +388 -0
- package/docs/widget-examples.md +134 -0
- package/package.json +164 -42
- package/slate.md +89 -88
- package/.nvmrc +0 -1
- package/api.d.ts +0 -1
- package/api.js +0 -1
- package/canvas3ds.d.ts +0 -1
- package/canvas3ds.js +0 -1
- package/checkout-button.d.ts +0 -1
- package/checkout-button.js +0 -1
- package/inicialization-guide.md +0 -7
- package/lib/api/api-base.js +0 -101
- package/lib/api/api-base.js.map +0 -1
- package/lib/api/api-charge-internal.js +0 -30
- package/lib/api/api-charge-internal.js.map +0 -1
- package/lib/api/api-charge.js +0 -49
- package/lib/api/api-charge.js.map +0 -1
- package/lib/api/api-internal.js +0 -13
- package/lib/api/api-internal.js.map +0 -1
- package/lib/api/api-service-internal.js +0 -18
- package/lib/api/api-service-internal.js.map +0 -1
- package/lib/api/api.js +0 -61
- package/lib/api/api.js.map +0 -1
- package/lib/api/index.d.ts +0 -1
- package/lib/api/index.js +0 -2
- package/lib/api/index.js.map +0 -1
- package/lib/canvas-3ds/canvas-3ds.js +0 -156
- package/lib/canvas-3ds/canvas-3ds.js.map +0 -1
- package/lib/canvas-3ds/index.js +0 -2
- package/lib/canvas-3ds/index.js.map +0 -1
- package/lib/canvas-3ds/services/gpayments-service.js +0 -181
- package/lib/canvas-3ds/services/gpayments-service.js.map +0 -1
- package/lib/canvas-3ds/services/index.js +0 -2
- package/lib/canvas-3ds/services/index.js.map +0 -1
- package/lib/canvas-3ds/services/standalone3ds-service.js +0 -32
- package/lib/canvas-3ds/services/standalone3ds-service.js.map +0 -1
- package/lib/checkout-button/afterpay/afterpay-checkout-button.js +0 -49
- package/lib/checkout-button/afterpay/afterpay-checkout-button.js.map +0 -1
- package/lib/checkout-button/afterpay/afterpay.runner.js +0 -41
- package/lib/checkout-button/afterpay/afterpay.runner.js.map +0 -1
- package/lib/checkout-button/checkout-button.interface.js +0 -45
- package/lib/checkout-button/checkout-button.interface.js.map +0 -1
- package/lib/checkout-button/checkout-button.js +0 -265
- package/lib/checkout-button/checkout-button.js.map +0 -1
- package/lib/checkout-button/checkout-contextual-handler.js +0 -75
- package/lib/checkout-button/checkout-contextual-handler.js.map +0 -1
- package/lib/checkout-button/index.js +0 -85
- package/lib/checkout-button/index.js.map +0 -1
- package/lib/checkout-button/paypal/paypal-checkout-button.js +0 -24
- package/lib/checkout-button/paypal/paypal-checkout-button.js.map +0 -1
- package/lib/checkout-button/paypal/paypal.runner.js +0 -14
- package/lib/checkout-button/paypal/paypal.runner.js.map +0 -1
- package/lib/checkout-button/runner/base.runner.js +0 -13
- package/lib/checkout-button/runner/base.runner.js.map +0 -1
- package/lib/checkout-button/runner/contextual.runner.js +0 -40
- package/lib/checkout-button/runner/contextual.runner.js.map +0 -1
- package/lib/checkout-button/runner/index.js +0 -11
- package/lib/checkout-button/runner/index.js.map +0 -1
- package/lib/checkout-button/runner/popup.runner.js +0 -68
- package/lib/checkout-button/runner/popup.runner.js.map +0 -1
- package/lib/checkout-button/runner/redirect.runner.js +0 -15
- package/lib/checkout-button/runner/redirect.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js +0 -63
- package/lib/checkout-button/zipmoney/zipmoney-checkout-button.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js +0 -78
- package/lib/checkout-button/zipmoney/zipmoney-contextual.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js +0 -49
- package/lib/checkout-button/zipmoney/zipmoney-redirect.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.config.js +0 -4
- package/lib/checkout-button/zipmoney/zipmoney.config.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.runner.js +0 -23
- package/lib/checkout-button/zipmoney/zipmoney.runner.js.map +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.types.js +0 -1
- package/lib/checkout-button/zipmoney/zipmoney.types.js.map +0 -1
- package/lib/components/ability-guard.js +0 -44
- package/lib/components/ability-guard.js.map +0 -1
- package/lib/components/background.js +0 -193
- package/lib/components/background.js.map +0 -1
- package/lib/components/container.js +0 -60
- package/lib/components/container.js.map +0 -1
- package/lib/components/dispatcher.js +0 -39
- package/lib/components/dispatcher.js.map +0 -1
- package/lib/components/element-style.js +0 -52
- package/lib/components/element-style.js.map +0 -1
- package/lib/components/flypay-iframe-event.js +0 -28
- package/lib/components/flypay-iframe-event.js.map +0 -1
- package/lib/components/form-Interceptor.js +0 -38
- package/lib/components/form-Interceptor.js.map +0 -1
- package/lib/components/http-core.js +0 -57
- package/lib/components/http-core.js.map +0 -1
- package/lib/components/iframe-event.js +0 -84
- package/lib/components/iframe-event.js.map +0 -1
- package/lib/components/iframe.js +0 -62
- package/lib/components/iframe.js.map +0 -1
- package/lib/components/link.js +0 -59
- package/lib/components/link.js.map +0 -1
- package/lib/components/loader.js +0 -234
- package/lib/components/loader.js.map +0 -1
- package/lib/components/param.js +0 -147
- package/lib/components/param.js.map +0 -1
- package/lib/components/popup.js +0 -104
- package/lib/components/popup.js.map +0 -1
- package/lib/components/storage-dispatcher.js +0 -75
- package/lib/components/storage-dispatcher.js.map +0 -1
- package/lib/components/trigger.js +0 -49
- package/lib/components/trigger.js.map +0 -1
- package/lib/components/vault-display-iframe-event.js +0 -27
- package/lib/components/vault-display-iframe-event.js.map +0 -1
- package/lib/components/wallet-background.js +0 -60
- package/lib/components/wallet-background.js.map +0 -1
- package/lib/components/wallet-trigger.js +0 -27
- package/lib/components/wallet-trigger.js.map +0 -1
- package/lib/configs/env/env.js +0 -117
- package/lib/configs/env/env.js.map +0 -1
- package/lib/configs/sdk.js +0 -16
- package/lib/configs/sdk.js.map +0 -1
- package/lib/external-checkout/builder.js +0 -45
- package/lib/external-checkout/builder.js.map +0 -1
- package/lib/external-checkout/checker.js +0 -22
- package/lib/external-checkout/checker.js.map +0 -1
- package/lib/external-checkout/index.d.ts +0 -2
- package/lib/external-checkout/index.js +0 -3
- package/lib/external-checkout/index.js.map +0 -1
- package/lib/helper/access-token.js +0 -44
- package/lib/helper/access-token.js.map +0 -1
- package/lib/helper/browser.js +0 -79
- package/lib/helper/browser.js.map +0 -1
- package/lib/helper/event-emitter.js +0 -23
- package/lib/helper/event-emitter.js.map +0 -1
- package/lib/helper/event.js +0 -23
- package/lib/helper/event.js.map +0 -1
- package/lib/helper/ms.js +0 -32
- package/lib/helper/ms.js.map +0 -1
- package/lib/helper/object.js +0 -6
- package/lib/helper/object.js.map +0 -1
- package/lib/helper/url.js +0 -11
- package/lib/helper/url.js.map +0 -1
- package/lib/helper/uuid.js +0 -26
- package/lib/helper/uuid.js.map +0 -1
- package/lib/index.d.ts +0 -15
- package/lib/index.js +0 -15
- package/lib/index.js.map +0 -1
- package/lib/payment-source/builder.js +0 -49
- package/lib/payment-source/builder.js.map +0 -1
- package/lib/payment-source/index.js +0 -2
- package/lib/payment-source/index.js.map +0 -1
- package/lib/payment-source-widget/html-payment-source-widget.js +0 -167
- package/lib/payment-source-widget/html-payment-source-widget.js.map +0 -1
- package/lib/payment-source-widget/index.js +0 -35
- package/lib/payment-source-widget/index.js.map +0 -1
- package/lib/payment-source-widget/interfaces.js +0 -2
- package/lib/payment-source-widget/interfaces.js.map +0 -1
- package/lib/payment-source-widget/payment-source-widget.js +0 -141
- package/lib/payment-source-widget/payment-source-widget.js.map +0 -1
- package/lib/secure-remote-commerce/index.js +0 -2
- package/lib/secure-remote-commerce/index.js.map +0 -1
- package/lib/secure-remote-commerce/interfaces.js +0 -28
- package/lib/secure-remote-commerce/interfaces.js.map +0 -1
- package/lib/secure-remote-commerce/providers/src-provider.js +0 -1
- package/lib/secure-remote-commerce/providers/src-provider.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/helper.js +0 -36
- package/lib/secure-remote-commerce/providers/visa-src/helper.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/index.js +0 -2
- package/lib/secure-remote-commerce/providers/visa-src/index.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js +0 -113
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.js.map +0 -1
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js +0 -10
- package/lib/secure-remote-commerce/providers/visa-src/visa-src.styles.js.map +0 -1
- package/lib/secure-remote-commerce/secure-remote-commerce.js +0 -238
- package/lib/secure-remote-commerce/secure-remote-commerce.js.map +0 -1
- package/lib/vault-display-widget/index.js +0 -14
- package/lib/vault-display-widget/index.js.map +0 -1
- package/lib/vault-display-widget/vault-display-widget.js +0 -98
- package/lib/vault-display-widget/vault-display-widget.js.map +0 -1
- package/lib/wallet-buttons/afterpay.wallet-service.js +0 -152
- package/lib/wallet-buttons/afterpay.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/apple.wallet-service.js +0 -291
- package/lib/wallet-buttons/apple.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/flypay-v2.wallet-service.js +0 -192
- package/lib/wallet-buttons/flypay-v2.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/flypay.wallet-service.js +0 -117
- package/lib/wallet-buttons/flypay.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/google.wallet-service.js +0 -268
- package/lib/wallet-buttons/google.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/index.js +0 -2
- package/lib/wallet-buttons/index.js.map +0 -1
- package/lib/wallet-buttons/interfaces.js +0 -1
- package/lib/wallet-buttons/interfaces.js.map +0 -1
- package/lib/wallet-buttons/mastercard.wallet-service.js +0 -27
- package/lib/wallet-buttons/mastercard.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/paypal.wallet-service.js +0 -129
- package/lib/wallet-buttons/paypal.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/stripe.wallet-service.js +0 -100
- package/lib/wallet-buttons/stripe.wallet-service.js.map +0 -1
- package/lib/wallet-buttons/wallet-buttons.js +0 -454
- package/lib/wallet-buttons/wallet-buttons.js.map +0 -1
- package/lib/wallet-buttons/wallet-service.js +0 -49
- package/lib/wallet-buttons/wallet-service.js.map +0 -1
- package/lib/widget/configuration.js +0 -259
- package/lib/widget/configuration.js.map +0 -1
- package/lib/widget/html-multi-widget.js +0 -380
- package/lib/widget/html-multi-widget.js.map +0 -1
- package/lib/widget/html-widget.js +0 -126
- package/lib/widget/html-widget.js.map +0 -1
- package/lib/widget/index.js +0 -132
- package/lib/widget/index.js.map +0 -1
- package/lib/widget/meta.js +0 -8
- package/lib/widget/meta.js.map +0 -1
- package/lib/widget/multi-widget.js +0 -436
- package/lib/widget/multi-widget.js.map +0 -1
- package/lib/widget/style.js +0 -204
- package/lib/widget/style.js.map +0 -1
- package/payment-source-widget.d.ts +0 -1
- package/payment-source-widget.js +0 -1
- package/tslint.json +0 -130
- package/typings/globals/@auspayplus/open-payments-checkout/index.d.ts +0 -43
- package/typings/globals/jasmine/index.d.ts +0 -576
- package/typings/globals/jasmine-ajax/index.d.ts +0 -83
- package/typings/globals/jquery/index.d.ts +0 -3759
- package/typings/index.d.ts +0 -4
- package/vault-display-widget.d.ts +0 -1
- package/vault-display-widget.js +0 -1
- package/vendors/zipmoney.d.ts +0 -18
- package/vendors/zipmoney.js +0 -2
- package/widget.d.ts +0 -1
- package/widget.js +0 -1
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { Event } from "../helper/event";
|
|
2
|
-
/**
|
|
3
|
-
* Interface of data from event.
|
|
4
|
-
* @interface IEventData
|
|
5
|
-
*
|
|
6
|
-
* @param {string} event
|
|
7
|
-
* @param {string} purpose
|
|
8
|
-
* @param {string} message_source
|
|
9
|
-
* @param {string} [ref_id]
|
|
10
|
-
* */
|
|
11
|
-
export const EVENT = {
|
|
12
|
-
AFTER_LOAD: 'afterLoad',
|
|
13
|
-
SUBMIT: 'submit',
|
|
14
|
-
FINISH: 'finish',
|
|
15
|
-
VALIDATION_ERROR: 'validationError',
|
|
16
|
-
SYSTEM_ERROR: 'systemError',
|
|
17
|
-
CHECKOUT_SUCCESS: 'checkoutSuccess',
|
|
18
|
-
CHECKOUT_READY: 'checkoutReady',
|
|
19
|
-
CHECKOUT_ERROR: 'checkoutError',
|
|
20
|
-
CHECKOUT_COMPLETED: 'checkoutCompleted',
|
|
21
|
-
VALIDATION: 'validation',
|
|
22
|
-
SELECT: 'select',
|
|
23
|
-
UNSELECT: 'unselect',
|
|
24
|
-
NEXT: 'next',
|
|
25
|
-
PREV: 'prev',
|
|
26
|
-
META_CHANGE: 'metaChange',
|
|
27
|
-
RESIZE: 'resize',
|
|
28
|
-
CHARGE_AUTH_SUCCESS: 'chargeAuthSuccess',
|
|
29
|
-
CHARGE_AUTH_REJECT: 'chargeAuthReject',
|
|
30
|
-
CHARGE_AUTH_CANCELLED: 'chargeAuthCancelled',
|
|
31
|
-
ADDITIONAL_DATA_SUCCESS: 'additionalDataCollectSuccess',
|
|
32
|
-
ADDITIONAL_DATA_REJECT: 'additionalDataCollectReject',
|
|
33
|
-
CHARGE_AUTH: 'chargeAuth',
|
|
34
|
-
DISPATCH_SUCCESS: 'dispatchSuccess',
|
|
35
|
-
DISPATCH_ERROR: 'dispatchError',
|
|
36
|
-
};
|
|
37
|
-
export class IFrameEvent {
|
|
38
|
-
constructor(subject) {
|
|
39
|
-
this.listeners = [];
|
|
40
|
-
if (!subject)
|
|
41
|
-
return;
|
|
42
|
-
Event.subscribe('message', subject, (event) => {
|
|
43
|
-
let data;
|
|
44
|
-
try {
|
|
45
|
-
data = JSON.parse(event.data);
|
|
46
|
-
}
|
|
47
|
-
catch (error) { }
|
|
48
|
-
if (!data) // @TODO add filter on message_source
|
|
49
|
-
return;
|
|
50
|
-
this.emit(data);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
emit(data) {
|
|
54
|
-
for (let key in this.listeners) {
|
|
55
|
-
if (this.listeners[key].event === data.event && data.widget_id === this.listeners[key].widget_id)
|
|
56
|
-
this.listeners[key].listener.apply(this, [data]);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
on(eventName, widgetId, cb) {
|
|
60
|
-
for (let event in EVENT) {
|
|
61
|
-
if (!EVENT.hasOwnProperty(event))
|
|
62
|
-
continue;
|
|
63
|
-
if (eventName === EVENT[event]) {
|
|
64
|
-
this.listeners.push({
|
|
65
|
-
event: eventName,
|
|
66
|
-
listener: cb,
|
|
67
|
-
widget_id: widgetId,
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
clear() {
|
|
73
|
-
this.listeners = [];
|
|
74
|
-
}
|
|
75
|
-
subscribe(subject, listener) {
|
|
76
|
-
if (subject.addEventListener) {
|
|
77
|
-
subject.addEventListener("message", listener);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
subject.attachEvent("onmessage", listener);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
//# sourceMappingURL=../../src/lib/components/iframe-event.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iframe-event.js","sourceRoot":"","sources":["../../components/iframe-event.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AAYtC;;;;;;;;KAQK;AAKL,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,UAAU,EAAE,WAAW;IACvB,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,gBAAgB,EAAE,iBAAiB;IACnC,YAAY,EAAE,aAAa;IAC3B,gBAAgB,EAAE,iBAAiB;IACnC,cAAc,EAAE,eAAe;IAC/B,cAAc,EAAE,eAAe;IAC/B,kBAAkB,EAAE,mBAAmB;IACvC,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,YAAY;IACzB,MAAM,EAAE,QAAQ;IAChB,mBAAmB,EAAE,mBA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AAI,SAAS,KAAK,KAAK,CAAC,KAAK,CAAC,EAAE;gBAC5B,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;oBAChB,KAAK,EAAE,SAAS;oBAChB,QAAQ,EAAE,EAAE;oBACZ,SAAS,EAAE,QAAQ;iBACtB,CAAC,CAAC;aACN;SACJ;IACL,CAAC;IAEM,KAAK;QACR,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACxB,CAAC;IAEO,SAAS,CAAC,OAAe,EAAE,QAAuC;QACtE,IAAI,OAAO,CAAC,gBAAgB,EAAE;YAC1B,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;SACjD;aAAM;YACG,OAAQ,CAAC,WAAW,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;SACrD;IACL,CAAC;CACJ"}
|
package/lib/components/iframe.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export class IFrame {
|
|
2
|
-
constructor(container) {
|
|
3
|
-
this.container = container;
|
|
4
|
-
}
|
|
5
|
-
load(link, options = {}) {
|
|
6
|
-
if (!this.container.isExist() || this.isExist())
|
|
7
|
-
return;
|
|
8
|
-
let iFrame = document.createElement('iframe');
|
|
9
|
-
iFrame.setAttribute('src', link);
|
|
10
|
-
if (options.title)
|
|
11
|
-
iFrame.title = options.title;
|
|
12
|
-
this.container.getElement().appendChild(iFrame);
|
|
13
|
-
}
|
|
14
|
-
loadFromHtml(content, options = {}) {
|
|
15
|
-
if (!this.container.isExist() || this.isExist())
|
|
16
|
-
return;
|
|
17
|
-
let iFrame = document.createElement('iframe');
|
|
18
|
-
iFrame.setAttribute('height', '100%');
|
|
19
|
-
iFrame.setAttribute('width', '100%');
|
|
20
|
-
if (options.title)
|
|
21
|
-
iFrame.title = options.title;
|
|
22
|
-
const template = "<html><head><style>html, body {margin: 0;} iframe {border: 0; width: 100%}</style><title></title></head><body>{{content}}</body></html>";
|
|
23
|
-
this.container.getElement().appendChild(iFrame);
|
|
24
|
-
let iFrameDocument = this.getElement().contentDocument;
|
|
25
|
-
iFrameDocument.open();
|
|
26
|
-
iFrameDocument.write(template.replace('{{content}}', content));
|
|
27
|
-
iFrameDocument.close();
|
|
28
|
-
}
|
|
29
|
-
remove() {
|
|
30
|
-
if (!this.container.isExist() || !this.isExist())
|
|
31
|
-
return;
|
|
32
|
-
let iFrame = this.getElement();
|
|
33
|
-
this.container.getElement().removeChild(iFrame);
|
|
34
|
-
}
|
|
35
|
-
show() {
|
|
36
|
-
if (!this.isExist())
|
|
37
|
-
return;
|
|
38
|
-
this.setStyle('visibility', 'visible');
|
|
39
|
-
this.setStyle('display', 'block');
|
|
40
|
-
}
|
|
41
|
-
hide(saveSize = false) {
|
|
42
|
-
if (!this.isExist())
|
|
43
|
-
return;
|
|
44
|
-
if (saveSize)
|
|
45
|
-
this.setStyle('visibility', 'hidden');
|
|
46
|
-
else
|
|
47
|
-
this.setStyle('display', 'none');
|
|
48
|
-
}
|
|
49
|
-
isExist() {
|
|
50
|
-
return !!(this.getElement());
|
|
51
|
-
}
|
|
52
|
-
getElement() {
|
|
53
|
-
if (!this.container.isExist())
|
|
54
|
-
return null;
|
|
55
|
-
return this.container.getElement().querySelector('iframe');
|
|
56
|
-
}
|
|
57
|
-
setStyle(property, value) {
|
|
58
|
-
let iFrame = this.getElement();
|
|
59
|
-
iFrame.style[property] = value;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
//# sourceMappingURL=../../src/lib/components/iframe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"iframe.js","sourceRoot":"","sources":["../../components/iframe.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,MAAM;IAIf,YAAY,SAAoB;QAC5B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAEM,IAAI,CAAC,IAAY,EAAE,UAA4B,EAAE;QACpD,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,IAAI,C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;QAEX,IAAI,MAAM,GAAgB,IAAI,CAAC,UAAU,EAAE,CAAC;QAC5C,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;IAEM,IAAI;QACP,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,OAAO;QAEX,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;QACvC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACtC,CAAC;IAEM,IAAI,CAAC,WAAoB,KAAK;QACjC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACf,OAAO;QAEX,IAAI,QAAQ;YACR,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;;YAEtC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IACzC,CAAC;IAEM,OAAO;QACV,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IACjC,CAAC;IAEM,UAAU;QACb,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE;YACzB,OAAO,IAAI,CAAC;QAEhB,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC/D,CAAC;IAEM,QAAQ,CAAC,QAAgB,EAAE,KAAa;QAC3C,IAAI,MAAM,GAAgB,IAAI,CAAC,UAAU,EAAE,CAAC;QAC5C,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC;IACnC,CAAC;CACJ"}
|
package/lib/components/link.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Env, WIDGET_URL } from '../configs/env/env';
|
|
2
|
-
import { Url } from "../helper/url";
|
|
3
|
-
import { Uuid } from '../helper/uuid';
|
|
4
|
-
export const WIDGET_LINK = '/remote-action';
|
|
5
|
-
export const VAULT_DISPLAY_WIDGET_LINK = '/vault-display';
|
|
6
|
-
export const PAYMENT_SOURCE_LINK = '/payment-sources';
|
|
7
|
-
export const SECURE_3D = '/3ds/webhook';
|
|
8
|
-
export const FLYPAY_LINK = '/wallet/flypay';
|
|
9
|
-
export const FLYPAY_LOGO_LINK = '/images/logo.png';
|
|
10
|
-
export const VISA_SRC = '/secure-remote-commerce/visa';
|
|
11
|
-
export class Link {
|
|
12
|
-
constructor(linkResource) {
|
|
13
|
-
this.params = {};
|
|
14
|
-
this.widgetId = Uuid.generate();
|
|
15
|
-
this.linkResource = linkResource;
|
|
16
|
-
this.env = new Env(WIDGET_URL);
|
|
17
|
-
this.setParams({ widget_id: this.widgetId });
|
|
18
|
-
}
|
|
19
|
-
getNetUrl() {
|
|
20
|
-
return this.env.getConf().url + this.linkResource;
|
|
21
|
-
}
|
|
22
|
-
getUrl() {
|
|
23
|
-
let url = this.getNetUrl();
|
|
24
|
-
let params = this.getParams();
|
|
25
|
-
for (let key in params) {
|
|
26
|
-
if (params.hasOwnProperty(key))
|
|
27
|
-
url = Url.extendSearchParams(url, key, params[key]);
|
|
28
|
-
}
|
|
29
|
-
return url;
|
|
30
|
-
}
|
|
31
|
-
setParams(params) {
|
|
32
|
-
this.params = Object.assign({}, this.params, params);
|
|
33
|
-
}
|
|
34
|
-
concatParams(params) {
|
|
35
|
-
for (let key in params) {
|
|
36
|
-
if (!params.hasOwnProperty(key) || !params[key].length)
|
|
37
|
-
continue;
|
|
38
|
-
if (typeof this.params[key] !== 'string')
|
|
39
|
-
this.params[key] = '';
|
|
40
|
-
if (this.params[key].length)
|
|
41
|
-
this.params[key] += ',' + params[key];
|
|
42
|
-
else
|
|
43
|
-
this.params[key] += params[key];
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
getParams() {
|
|
47
|
-
return this.params;
|
|
48
|
-
}
|
|
49
|
-
setEnv(env, alias) {
|
|
50
|
-
this.env.setEnv(env, alias);
|
|
51
|
-
}
|
|
52
|
-
getEnv() {
|
|
53
|
-
return this.env.getEnv();
|
|
54
|
-
}
|
|
55
|
-
getBaseUrl() {
|
|
56
|
-
return this.env.getConf().url;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=../../src/lib/components/link.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../components/link.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAO,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGtC,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAC5C,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,CAAC;AAC1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AACtD,MAAM,CAAC,MAAM,SAAS,GAAG,cAAc,CAAC;AACxC,MAAM,CAAC,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAC5C,MAAM,CAAC,MAAM,gBAAgB,GAAG,kBAAkB,CAAC;AACnD,MAAM,CAAC,MAAM,QAAQ,GAAG,8BAA8B,CAAC;AAEvD,MAAM,OAAO,IAAI;IAQb,YAAY,YAAoB;QAJtB,WAAM,GAAY,EAAE,CAAC;QACrB,aAAQ,GAAW,IAAI,CAAC,QAAQ,EAAE,CAAC;QAIzC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC;QAC/B,IAAI,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IACjD,CAAC;IAEM,SAAS;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,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GAAG,EAAE,KAAK,CAAC,CAAC;IAChC,CAAC;IAEM,MAAM;QACT,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;IAC7B,CAAC;IAEM,UAAU;QACb,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC;IAClC,CAAC;CACJ"}
|
package/lib/components/loader.js
DELETED
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
export const TEMPLATE = `
|
|
2
|
-
<div class="cs-loader">
|
|
3
|
-
<div class="cs-loader-inner">
|
|
4
|
-
<label> ●</label>
|
|
5
|
-
<label> ●</label>
|
|
6
|
-
<label> ●</label>
|
|
7
|
-
<label> ●</label>
|
|
8
|
-
<label> ●</label>
|
|
9
|
-
<label> ●</label>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
`;
|
|
13
|
-
export const STYLE = `
|
|
14
|
-
<style>
|
|
15
|
-
.cs-loader {
|
|
16
|
-
position: absolute;
|
|
17
|
-
top: 0;
|
|
18
|
-
left: 0;
|
|
19
|
-
height: 100%;
|
|
20
|
-
width: 100%;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.cs-loader-inner {
|
|
24
|
-
transform: translateY(-50%);
|
|
25
|
-
top: 50%;
|
|
26
|
-
position: absolute;
|
|
27
|
-
width: calc(100% - 200px);
|
|
28
|
-
color: #8e8d8c;
|
|
29
|
-
padding: 0 100px;
|
|
30
|
-
text-align: center;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
.cs-loader-inner label {
|
|
35
|
-
font-size: 20px;
|
|
36
|
-
opacity: 0;
|
|
37
|
-
display:inline-block;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@keyframes lol {
|
|
41
|
-
0% {
|
|
42
|
-
opacity: 0;
|
|
43
|
-
transform: translateX(-300px);
|
|
44
|
-
}
|
|
45
|
-
33% {
|
|
46
|
-
opacity: 1;
|
|
47
|
-
transform: translateX(0px);
|
|
48
|
-
}
|
|
49
|
-
66% {
|
|
50
|
-
opacity: 1;
|
|
51
|
-
transform: translateX(0px);
|
|
52
|
-
}
|
|
53
|
-
100% {
|
|
54
|
-
opacity: 0;
|
|
55
|
-
transform: translateX(300px);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@-webkit-keyframes lol {
|
|
60
|
-
0% {
|
|
61
|
-
opacity: 0;
|
|
62
|
-
-webkit-transform: translateX(-300px);
|
|
63
|
-
}
|
|
64
|
-
33% {
|
|
65
|
-
opacity: 1;
|
|
66
|
-
-webkit-transform: translateX(0px);
|
|
67
|
-
}
|
|
68
|
-
66% {
|
|
69
|
-
opacity: 1;
|
|
70
|
-
-webkit-transform: translateX(0px);
|
|
71
|
-
}
|
|
72
|
-
100% {
|
|
73
|
-
opacity: 0;
|
|
74
|
-
-webkit-transform: translateX(300px);
|
|
75
|
-
-moz-transform: translateX(300px);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.cs-loader-inner label:nth-child(6) {
|
|
80
|
-
-webkit-animation: lol 3s infinite ease-in-out;
|
|
81
|
-
-moz-animation: lol 3s infinite ease-in-out;
|
|
82
|
-
animation: lol 3s infinite ease-in-out;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.cs-loader-inner label:nth-child(5) {
|
|
86
|
-
-webkit-animation: lol 3s 100ms infinite ease-in-out;
|
|
87
|
-
-moz-animation: lol 3s 100ms infinite ease-in-out;
|
|
88
|
-
animation: lol 3s 100ms infinite ease-in-out;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.cs-loader-inner label:nth-child(4) {
|
|
92
|
-
-webkit-animation: lol 3s 200ms infinite ease-in-out;
|
|
93
|
-
-moz-animation: lol 3s 200ms infinite ease-in-out;
|
|
94
|
-
animation: lol 3s 200ms infinite ease-in-out;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.cs-loader-inner label:nth-child(3) {
|
|
98
|
-
-webkit-animation: lol 3s 300ms infinite ease-in-out;
|
|
99
|
-
-moz-animation: lol 3s 300ms infinite ease-in-out;
|
|
100
|
-
animation: lol 3s 300ms infinite ease-in-out;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.cs-loader-inner label:nth-child(2) {
|
|
104
|
-
-webkit-animation: lol 3s 400ms infinite ease-in-out;
|
|
105
|
-
-moz-animation: lol 3s 400ms infinite ease-in-out;
|
|
106
|
-
animation: lol 3s 400ms infinite ease-in-out;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.cs-loader-inner label:nth-child(1) {
|
|
110
|
-
-webkit-animation: lol 3s 500ms infinite ease-in-out;
|
|
111
|
-
-moz-animation: lol 3s 500ms infinite ease-in-out;
|
|
112
|
-
animation: lol 3s 500ms infinite ease-in-out;
|
|
113
|
-
}
|
|
114
|
-
</style>
|
|
115
|
-
`;
|
|
116
|
-
export const EXTRA_TEMPLATE = `
|
|
117
|
-
<div class="circ">
|
|
118
|
-
<div class="load">A little patience ...</div>
|
|
119
|
-
<div class="hands"></div>
|
|
120
|
-
<div class="body"></div>
|
|
121
|
-
<div class="head">
|
|
122
|
-
<div class="eye"></div>
|
|
123
|
-
</div>
|
|
124
|
-
</div>
|
|
125
|
-
`;
|
|
126
|
-
export const EXTRA_STYLE = `
|
|
127
|
-
<style>
|
|
128
|
-
html{width: 100%;height: 100%;}
|
|
129
|
-
body{margin: 0px;padding: 0px;background-color: #111;}
|
|
130
|
-
|
|
131
|
-
.eye{
|
|
132
|
-
width: 20px; height: 8px;
|
|
133
|
-
background-color: #eee;
|
|
134
|
-
border-radius:0px 0px 20px 20px;
|
|
135
|
-
position: relative;
|
|
136
|
-
top: 40px;
|
|
137
|
-
left: 10px;
|
|
138
|
-
box-shadow: 40px 0px 0px 0px #eee;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
.head{
|
|
142
|
-
-webkit-backface-visibility: hidden;
|
|
143
|
-
-moz-backface-visibility: hidden;
|
|
144
|
-
backface-visibility: hidden;
|
|
145
|
-
position: relative;
|
|
146
|
-
margin: -250px auto;
|
|
147
|
-
width: 80px; height: 80px;
|
|
148
|
-
background-color: #111;
|
|
149
|
-
border-radius:50px;
|
|
150
|
-
box-shadow: inset -4px 2px 0px 0px #eee;
|
|
151
|
-
-webkit-animation:node 1.5s infinite alternate;
|
|
152
|
-
-webkit-animation-timing-function:ease-out;
|
|
153
|
-
-moz-animation:node 1.5s infinite alternate;
|
|
154
|
-
-moz-animation-timing-function:ease-out;
|
|
155
|
-
animation:node 1.5s infinite alternate;
|
|
156
|
-
animation-timing-function:ease-out;
|
|
157
|
-
}
|
|
158
|
-
.body{
|
|
159
|
-
position: relative;
|
|
160
|
-
margin: 90px auto;
|
|
161
|
-
width: 140px; height: 120px;
|
|
162
|
-
background-color: #111;
|
|
163
|
-
border-radius: 50px/25px ;
|
|
164
|
-
box-shadow: inset -5px 2px 0px 0px #eee;
|
|
165
|
-
-webkit-animation:node2 1.5s infinite alternate;
|
|
166
|
-
-webkit-animation-timing-function:ease-out;
|
|
167
|
-
-moz-animation:node2 1.5s infinite alternate;
|
|
168
|
-
-moz-animation-timing-function:ease-out;
|
|
169
|
-
animation:node2 1.5s infinite alternate;
|
|
170
|
-
animation-timing-function:ease-out;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
@keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }
|
|
174
|
-
@keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}
|
|
175
|
-
@-moz-keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }
|
|
176
|
-
@-moz-keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}
|
|
177
|
-
@-webkit-keyframes node {0%{ top:0px; }50%{ top:10px; }100% { top:0px;} }
|
|
178
|
-
@-webkit-keyframes node2 {0%{ top:-5px; }50%{ top:10px; }100% { top:-5px;}}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
.circ{
|
|
182
|
-
-webkit-backface-visibility: hidden;
|
|
183
|
-
-moz-backface-visibility: hidden;
|
|
184
|
-
backface-visibility: hidden;
|
|
185
|
-
margin: 60px auto;
|
|
186
|
-
width: 180px; height: 180px;
|
|
187
|
-
background-color: #111;
|
|
188
|
-
border-radius: 0px 0px 50px 50px;
|
|
189
|
-
position: relative;
|
|
190
|
-
z-index: -1;
|
|
191
|
-
left: 0%;
|
|
192
|
-
top: 20%;
|
|
193
|
-
overflow: hidden;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.hands{
|
|
197
|
-
-webkit-backface-visibility: hidden;
|
|
198
|
-
-moz-backface-visibility: hidden;
|
|
199
|
-
backface-visibility: hidden;
|
|
200
|
-
margin-top: 140px;
|
|
201
|
-
width: 120px;height: 120px;
|
|
202
|
-
position: absolute;
|
|
203
|
-
background-color: #111;
|
|
204
|
-
border-radius:20px;
|
|
205
|
-
box-shadow:-1px -4px 0px 0px #eee;
|
|
206
|
-
transform:rotate(45deg);
|
|
207
|
-
-webkit-transform:rotate(45deg);
|
|
208
|
-
-mox-transform:rotate(45deg);
|
|
209
|
-
top:75%;left: 16%;
|
|
210
|
-
z-index: 1;
|
|
211
|
-
-webkit-animation:node2 1.5s infinite alternate;
|
|
212
|
-
-webkit-animation-timing-function:ease-out;
|
|
213
|
-
-moz-animation:node2 1.5s infinite alternate;
|
|
214
|
-
-moz-animation-timing-function:ease-out;
|
|
215
|
-
animation:node2 1.5s infinite alternate;
|
|
216
|
-
animation-timing-function:ease-out;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.load{ position: absolute;
|
|
220
|
-
width: 100px; height: 20px;
|
|
221
|
-
margin: -10px auto;
|
|
222
|
-
-webkit-font-smoothing: antialiased;
|
|
223
|
-
-moz-font-smoothing: antialiased;
|
|
224
|
-
font-smoothing: antialiased;
|
|
225
|
-
font-family: 'Julius Sans One', sans-serif;
|
|
226
|
-
font-size:30px;
|
|
227
|
-
font-weight:400;
|
|
228
|
-
color:#eee;
|
|
229
|
-
left: 10%;
|
|
230
|
-
top: 5%;
|
|
231
|
-
}
|
|
232
|
-
</style>
|
|
233
|
-
`;
|
|
234
|
-
//# sourceMappingURL=../../src/lib/components/loader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../components/loader.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;;;;;;;;;;;CAWvB,CAAC;AAGF,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsGpB,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG;;;;;;;;;CAS7B,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2G1B,CAAC"}
|
package/lib/components/param.js
DELETED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
export const PAYMENT_SOURCE_TYPE = {
|
|
2
|
-
CARD: 'card',
|
|
3
|
-
BANK_ACCOUNT: 'bank_account',
|
|
4
|
-
CHECKOUT: 'checkout',
|
|
5
|
-
};
|
|
6
|
-
export const FORM_FIELD = {
|
|
7
|
-
CARD_NAME: 'card_name',
|
|
8
|
-
CARD_NUMBER: 'card_number',
|
|
9
|
-
EXPIRE_MONTH: 'expire_month',
|
|
10
|
-
EXPIRE_YEAR: 'expire_year',
|
|
11
|
-
CARD_CCV: 'card_ccv',
|
|
12
|
-
CARD_PIN: 'card_pin',
|
|
13
|
-
ACCOUNT_NAME: 'account_name',
|
|
14
|
-
ACCOUNT_BSB: 'account_bsb',
|
|
15
|
-
ACCOUNT_NUMBER: 'account_number',
|
|
16
|
-
ACCOUNT_ROUTING: 'account_routing',
|
|
17
|
-
ACCOUNT_HOLDER_TYPE: 'account_holder_type',
|
|
18
|
-
ACCOUNT_BANK_NAME: 'account_bank_name',
|
|
19
|
-
ACCOUNT_TYPE: 'account_type',
|
|
20
|
-
FIRST_NAME: 'first_name',
|
|
21
|
-
LAST_NAME: 'last_name',
|
|
22
|
-
EMAIL: 'email',
|
|
23
|
-
PHONE: 'phone',
|
|
24
|
-
PHONE2: 'phone2',
|
|
25
|
-
ADDRESS_LINE1: 'address_line1',
|
|
26
|
-
ADDRESS_LINE2: 'address_line2',
|
|
27
|
-
ADDRESS_STATE: 'address_state',
|
|
28
|
-
ADDRESS_COUNTRY: 'address_country',
|
|
29
|
-
ADDRESS_CITY: 'address_city',
|
|
30
|
-
ADDRESS_POSTCODE: 'address_postcode',
|
|
31
|
-
ADDRESS_COMPANY: 'address_company',
|
|
32
|
-
};
|
|
33
|
-
export const STYLE = {
|
|
34
|
-
BACKGROUND_COLOR: 'background_color',
|
|
35
|
-
BACKGROUND_ACTIVE_COLOR: 'background_active_color',
|
|
36
|
-
TEXT_COLOR: 'text_color',
|
|
37
|
-
BORDER_COLOR: 'border_color',
|
|
38
|
-
ICON_SIZE: 'icon_size',
|
|
39
|
-
BUTTON_COLOR: 'button_color',
|
|
40
|
-
ERROR_COLOR: 'error_color',
|
|
41
|
-
SUCCESS_COLOR: 'success_color',
|
|
42
|
-
FONT_SIZE: 'font_size',
|
|
43
|
-
FONT_FAMILY: 'font_family',
|
|
44
|
-
};
|
|
45
|
-
export const VAULT_DISPLAY_STYLE = {
|
|
46
|
-
BACKGROUND_COLOR: 'background_color',
|
|
47
|
-
TEXT_COLOR: 'text_color',
|
|
48
|
-
BORDER_COLOR: 'border_color',
|
|
49
|
-
BUTTON_COLOR: 'button_color',
|
|
50
|
-
FONT_SIZE: 'font_size',
|
|
51
|
-
FONT_FAMILY: 'font_family',
|
|
52
|
-
};
|
|
53
|
-
export const TEXT = {
|
|
54
|
-
TITLE: 'title',
|
|
55
|
-
TITLE_H1: 'title_h1',
|
|
56
|
-
TITLE_H2: 'title_h2',
|
|
57
|
-
TITLE_H3: 'title_h3',
|
|
58
|
-
TITLE_H4: 'title_h4',
|
|
59
|
-
TITLE_H5: 'title_h5',
|
|
60
|
-
TITLE_H6: 'title_h6',
|
|
61
|
-
FINISH: 'finish_text',
|
|
62
|
-
TITLE_DESCRIPTION: 'title_description',
|
|
63
|
-
SUBMIT_BUTTON: 'submit_button',
|
|
64
|
-
SUBMIT_BUTTON_PROCESSING: 'submit_button_processing',
|
|
65
|
-
};
|
|
66
|
-
export const ELEMENT = {
|
|
67
|
-
SUBMIT_BUTTON: 'submit_button',
|
|
68
|
-
TABS: 'tabs',
|
|
69
|
-
};
|
|
70
|
-
export const SUPPORTED_CARD_TYPES = {
|
|
71
|
-
AMEX: 'amex',
|
|
72
|
-
AUSBC: 'ausbc',
|
|
73
|
-
DINERS: 'diners',
|
|
74
|
-
DISCOVER: 'discover',
|
|
75
|
-
JAPCB: 'japcb',
|
|
76
|
-
LASER: 'laser',
|
|
77
|
-
MASTERCARD: 'mastercard',
|
|
78
|
-
SOLO: 'solo',
|
|
79
|
-
VISA: 'visa',
|
|
80
|
-
VISA_WHITE: 'visa_white',
|
|
81
|
-
};
|
|
82
|
-
export const SUPPORTED_CHECKOUT_META_COLLECTION = [].concat([
|
|
83
|
-
'brand_name',
|
|
84
|
-
'cart_border_color',
|
|
85
|
-
'reference',
|
|
86
|
-
'email',
|
|
87
|
-
'hdr_img',
|
|
88
|
-
'logo_img',
|
|
89
|
-
'pay_flow_color',
|
|
90
|
-
'first_name',
|
|
91
|
-
'last_name',
|
|
92
|
-
'address_line',
|
|
93
|
-
'address_line2',
|
|
94
|
-
'address_city',
|
|
95
|
-
'address_state',
|
|
96
|
-
'address_postcode',
|
|
97
|
-
'address_country',
|
|
98
|
-
'phone',
|
|
99
|
-
'hide_shipping_address',
|
|
100
|
-
], [
|
|
101
|
-
'first_name',
|
|
102
|
-
'last_name',
|
|
103
|
-
'phone',
|
|
104
|
-
'tokenize',
|
|
105
|
-
'email',
|
|
106
|
-
'gender',
|
|
107
|
-
'date_of_birth',
|
|
108
|
-
'charge',
|
|
109
|
-
'statistics',
|
|
110
|
-
'hide_shipping_address',
|
|
111
|
-
], [
|
|
112
|
-
'amount',
|
|
113
|
-
'currency',
|
|
114
|
-
'email',
|
|
115
|
-
'first_name',
|
|
116
|
-
'last_name',
|
|
117
|
-
'address_line',
|
|
118
|
-
'address_line2',
|
|
119
|
-
'address_city',
|
|
120
|
-
'address_state',
|
|
121
|
-
'address_postcode',
|
|
122
|
-
'address_country',
|
|
123
|
-
'phone',
|
|
124
|
-
], [
|
|
125
|
-
'customer_storage_number',
|
|
126
|
-
'tokenise_algorithm',
|
|
127
|
-
]);
|
|
128
|
-
export var WALLET_GATEWAY;
|
|
129
|
-
(function (WALLET_GATEWAY) {
|
|
130
|
-
WALLET_GATEWAY["STRIPE"] = "Stripe";
|
|
131
|
-
WALLET_GATEWAY["FLYPAY"] = "Flypay";
|
|
132
|
-
WALLET_GATEWAY["FLYPAY_V2"] = "FlypayV2";
|
|
133
|
-
WALLET_GATEWAY["PAYPAL"] = "Paypal";
|
|
134
|
-
WALLET_GATEWAY["MASTERCARD"] = "MasterCard";
|
|
135
|
-
WALLET_GATEWAY["AFTERPAY"] = "Afterpay";
|
|
136
|
-
})(WALLET_GATEWAY || (WALLET_GATEWAY = {}));
|
|
137
|
-
;
|
|
138
|
-
export var WALLET_TYPE;
|
|
139
|
-
(function (WALLET_TYPE) {
|
|
140
|
-
WALLET_TYPE["GOOGLE"] = "google";
|
|
141
|
-
WALLET_TYPE["APPLE"] = "apple";
|
|
142
|
-
WALLET_TYPE["FLYPAY"] = "flypay";
|
|
143
|
-
WALLET_TYPE["FLYPAY_V2"] = "flypayV2";
|
|
144
|
-
WALLET_TYPE["PAYPAL"] = "paypal";
|
|
145
|
-
WALLET_TYPE["AFTERPAY"] = "afterpay";
|
|
146
|
-
})(WALLET_TYPE || (WALLET_TYPE = {}));
|
|
147
|
-
//# sourceMappingURL=../../src/lib/components/param.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"param.js","sourceRoot":"","sources":["../../components/param.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,cAAc;IAC5B,QAAQ,EAAE,UAAU;CACvB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG;IACtB,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;IAC1B,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,eAAe,EAAE,iBAAiB;IAClC,mBAAmB,EAAE,qBAAqB;IAC1C,iBAAiB,EAAE,mBAAmB;IACtC,YAAY,EAAE,cAAc;IAC5B,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,aAAa,EAAE,eAAe;IAC9B,eAAe,EAAE,iBAAiB;IAClC,YAAY,EAAE,cAAc;IAC5B,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;CACrC,CAAC;AAGF,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,gBAAgB,EAAE,kBAAkB;IACpC,uBAAuB,EAAE,yBAAyB;IAClD,UAAU,EAAE,YAAY;IACxB,YAAY,EAAE,cAAc;IAC5B,SAAS,EAAE,WAAW;IACtB,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE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