@paydock/client-sdk 1.132.0-beta → 1.135.14-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 +167 -0
- package/bundles/index.cjs +13297 -11586
- package/bundles/index.cjs.d.ts +1197 -870
- package/bundles/index.mjs +13296 -11586
- package/bundles/index.mjs.d.ts +1197 -870
- package/bundles/types/afterpay-on-site-messaging/afterpay-on-site-messaging.d.ts +40 -0
- package/bundles/types/afterpay-on-site-messaging/afterpay-on-site-messaging.d.ts.map +1 -0
- package/bundles/types/afterpay-on-site-messaging/afterpay-on-site-messaging.interfaces.d.ts +29 -0
- package/bundles/types/afterpay-on-site-messaging/afterpay-on-site-messaging.interfaces.d.ts.map +1 -0
- package/bundles/types/afterpay-on-site-messaging/afterpay-on-site-messaging.service.d.ts +14 -0
- package/bundles/types/afterpay-on-site-messaging/afterpay-on-site-messaging.service.d.ts.map +1 -0
- package/bundles/types/afterpay-on-site-messaging/index.d.ts +18 -0
- package/bundles/types/afterpay-on-site-messaging/index.d.ts.map +1 -0
- package/bundles/types/api/api-checkout-internal.d.ts +2 -2
- package/bundles/types/api/api-checkout-internal.d.ts.map +1 -1
- package/bundles/types/api/api-payment-source-internal.d.ts +2 -1
- package/bundles/types/api/api-payment-source-internal.d.ts.map +1 -1
- package/bundles/types/api/api-service-internal.d.ts +13 -6
- package/bundles/types/api/api-service-internal.d.ts.map +1 -1
- package/bundles/types/checkout/images/card-icons.d.ts +2 -1
- package/bundles/types/checkout/images/card-icons.d.ts.map +1 -1
- package/bundles/types/checkout/v1/instructions/index.d.ts.map +1 -1
- package/bundles/types/checkout/v1/instructions/instruction.apple_pay_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v1/instructions/instruction.google_pay_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v1/instructions/instruction.paypal_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/components/go-back-to-payments-button/go-back-to-payments.d.ts +1 -0
- package/bundles/types/checkout/v3/components/go-back-to-payments-button/go-back-to-payments.d.ts.map +1 -1
- package/bundles/types/checkout/v3/instructions/instruction.apple_pay_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/instructions/instruction.card_form.show.d.ts +1 -0
- package/bundles/types/checkout/v3/instructions/instruction.card_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/instructions/instruction.google_pay_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/instructions/instruction.payment_methods.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/instructions/instruction.paypal_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/instructions/instruction.saved_card_form.show.d.ts +14 -2
- package/bundles/types/checkout/v3/instructions/instruction.saved_card_form.show.d.ts.map +1 -1
- package/bundles/types/checkout/v3/models/card.model.d.ts +3 -1
- package/bundles/types/checkout/v3/models/card.model.d.ts.map +1 -1
- package/bundles/types/checkout/v3/models/payment-methods.model.d.ts.map +1 -1
- package/bundles/types/components/param.d.ts +4 -1
- package/bundles/types/components/param.d.ts.map +1 -1
- package/bundles/types/index-cba.d.ts +9 -6
- package/bundles/types/index-cba.d.ts.map +1 -1
- package/bundles/types/index.d.ts +9 -6
- package/bundles/types/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/base/open-wallet-buttons.d.ts +198 -0
- package/bundles/types/open-wallets/base/open-wallet-buttons.d.ts.map +1 -0
- package/bundles/types/open-wallets/base/open-wallet.service.d.ts +27 -0
- package/bundles/types/open-wallets/base/open-wallet.service.d.ts.map +1 -0
- package/bundles/types/open-wallets/enum/event.enum.d.ts +8 -1
- package/bundles/types/open-wallets/enum/event.enum.d.ts.map +1 -1
- package/bundles/types/open-wallets/enum/payload-format.enum.d.ts +4 -0
- package/bundles/types/open-wallets/enum/payload-format.enum.d.ts.map +1 -0
- package/bundles/types/open-wallets/enum/service-group.enum.d.ts +5 -0
- package/bundles/types/open-wallets/enum/service-group.enum.d.ts.map +1 -0
- package/bundles/types/open-wallets/index.d.ts +2 -2
- package/bundles/types/open-wallets/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.d.ts +495 -0
- package/bundles/types/open-wallets/interfaces/apple-pay/apple-pay-payment-request.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/apple-pay/index.d.ts +2 -0
- package/bundles/types/open-wallets/interfaces/apple-pay/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/events.interface.d.ts +5 -6
- package/bundles/types/open-wallets/interfaces/events.interface.d.ts.map +1 -1
- package/bundles/types/open-wallets/interfaces/google-pay/google-pay-meta.interface.d.ts +54 -0
- package/bundles/types/open-wallets/interfaces/google-pay/google-pay-meta.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/google-pay/index.d.ts +2 -0
- package/bundles/types/open-wallets/interfaces/google-pay/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/index.d.ts +1 -3
- package/bundles/types/open-wallets/interfaces/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/interfaces/open-wallet-meta.interface.d.ts +11 -0
- package/bundles/types/open-wallets/interfaces/open-wallet-meta.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/interfaces/payment-source.interface.d.ts +0 -1
- package/bundles/types/open-wallets/interfaces/payment-source.interface.d.ts.map +1 -1
- package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts +64 -0
- package/bundles/types/open-wallets/services/apple-pay/apple-pay.open-wallet.service.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/apple-pay/index.d.ts +2 -0
- package/bundles/types/open-wallets/services/apple-pay/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/constants/google-pay.constants.d.ts +11 -0
- package/bundles/types/open-wallets/services/google-pay/constants/google-pay.constants.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/constants/index.d.ts +2 -0
- package/bundles/types/open-wallets/services/google-pay/constants/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/google-pay.open-wallet.service.d.ts +55 -0
- package/bundles/types/open-wallets/services/google-pay/google-pay.open-wallet.service.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/index.d.ts +2 -0
- package/bundles/types/open-wallets/services/google-pay/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/utils/google-pay.utils.d.ts +20 -0
- package/bundles/types/open-wallets/services/google-pay/utils/google-pay.utils.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/utils/index.d.ts +2 -0
- package/bundles/types/open-wallets/services/google-pay/utils/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/validation/google-pay.validation.d.ts +3 -0
- package/bundles/types/open-wallets/services/google-pay/validation/google-pay.validation.d.ts.map +1 -0
- package/bundles/types/open-wallets/services/google-pay/validation/index.d.ts +2 -0
- package/bundles/types/open-wallets/services/google-pay/validation/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/apple-pay/apple-pay-button-style.type.d.ts +2 -0
- package/bundles/types/open-wallets/types/apple-pay/apple-pay-button-style.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/apple-pay/apple-pay-button-type.type.d.ts +2 -0
- package/bundles/types/open-wallets/types/apple-pay/apple-pay-button-type.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/apple-pay/index.d.ts +3 -0
- package/bundles/types/open-wallets/types/apple-pay/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/base-event-data.interface.d.ts +5 -0
- package/bundles/types/open-wallets/types/base-event-data.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/google-pay/google-pay-button-color.type.d.ts +2 -0
- package/bundles/types/open-wallets/types/google-pay/google-pay-button-color.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/google-pay/google-pay-button-size-mode.type.d.ts +2 -0
- package/bundles/types/open-wallets/types/google-pay/google-pay-button-size-mode.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/google-pay/google-pay-button-type.type.d.ts +2 -0
- package/bundles/types/open-wallets/types/google-pay/google-pay-button-type.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/google-pay/index.d.ts +4 -0
- package/bundles/types/open-wallets/types/google-pay/index.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/index.d.ts +1 -2
- package/bundles/types/open-wallets/types/index.d.ts.map +1 -1
- package/bundles/types/open-wallets/types/on-shipping-address-change-event-data.interface.d.ts +21 -0
- package/bundles/types/open-wallets/types/on-shipping-address-change-event-data.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/on-shipping-address-change-event-response.interface.d.ts +6 -0
- package/bundles/types/open-wallets/types/on-shipping-address-change-event-response.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/on-shipping-option-change-event-data.interface.d.ts +13 -0
- package/bundles/types/open-wallets/types/on-shipping-option-change-event-data.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/on-shipping-option-change-event-response.interface.d.ts +4 -0
- package/bundles/types/open-wallets/types/on-shipping-option-change-event-response.interface.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/payment-source.type.d.ts +85 -0
- package/bundles/types/open-wallets/types/payment-source.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/shipping-event-to-response.type.d.ts +6 -0
- package/bundles/types/open-wallets/types/shipping-event-to-response.type.d.ts.map +1 -0
- package/bundles/types/open-wallets/types/wallet-type.type.d.ts +2 -2
- package/bundles/types/open-wallets/types/wallet-type.type.d.ts.map +1 -1
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.d.ts.map +1 -1
- package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map +1 -1
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts +16 -16
- package/bundles/types/secure-remote-commerce/secure-remote-commerce.d.ts.map +1 -1
- package/bundles/types/shared-ui/components/modal.d.ts +18 -0
- package/bundles/types/shared-ui/components/modal.d.ts.map +1 -0
- package/bundles/types/wallet-buttons/wallet-services/paypal.wallet-service.d.ts.map +1 -1
- package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts +9 -9
- package/bundles/types/wallet-buttons-express/base.wallet-button-express.d.ts.map +1 -1
- package/bundles/types/widget/html-multi-widget.d.ts +13 -1
- package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
- package/bundles/types/widget/index.d.ts +4 -3
- package/bundles/types/widget/index.d.ts.map +1 -1
- package/bundles/types/widget/multi-widget.d.ts +7 -4
- package/bundles/types/widget/multi-widget.d.ts.map +1 -1
- package/bundles/widget.umd.js +13297 -11586
- package/bundles/widget.umd.js.d.ts +1197 -870
- package/bundles/widget.umd.js.min.d.ts +1197 -870
- package/bundles/widget.umd.min.js +1 -1
- package/docs/afterpay-on-site-messaging-examples.md +60 -0
- package/docs/afterpay-on-site-messaging.md +104 -0
- package/docs/api-widget.md +1 -0
- package/docs/open-wallet-buttons-examples.md +1188 -0
- package/package.json +11 -4
- package/bundles/types/open-wallets/base/base-open-wallet.d.ts +0 -33
- package/bundles/types/open-wallets/base/base-open-wallet.d.ts.map +0 -1
- package/bundles/types/open-wallets/interfaces/base-service-config.interface.d.ts +0 -30
- package/bundles/types/open-wallets/interfaces/base-service-config.interface.d.ts.map +0 -1
- package/bundles/types/open-wallets/interfaces/base-wallet-meta.interface.d.ts +0 -5
- package/bundles/types/open-wallets/interfaces/base-wallet-meta.interface.d.ts.map +0 -1
- package/bundles/types/open-wallets/services/index.d.ts +0 -9
- package/bundles/types/open-wallets/services/index.d.ts.map +0 -1
- package/bundles/types/open-wallets/types/ott-backend.type.d.ts +0 -26
- package/bundles/types/open-wallets/types/ott-backend.type.d.ts.map +0 -1
- package/bundles/types/open-wallets/types/ott-response.type.d.ts +0 -8
- package/bundles/types/open-wallets/types/ott-response.type.d.ts.map +0 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/// <reference types="applepayjs" />
|
|
2
|
+
import type { ApiInternal } from '../../../api/api-internal';
|
|
3
|
+
import { type GetConfigResponse } from '../../../api/api-service-internal';
|
|
4
|
+
import type { Container } from '../../../components/container';
|
|
5
|
+
import type { IApplePayShippingOption } from '../../../components/param';
|
|
6
|
+
import type { EventEmitter } from '../../../helper/event-emitter';
|
|
7
|
+
import { OpenWalletService } from '../../base/open-wallet.service';
|
|
8
|
+
import type { OpenWalletMeta } from '../../interfaces';
|
|
9
|
+
import type { ApplePayPaymentRequest } from '../../interfaces/apple-pay';
|
|
10
|
+
import type { OpenWalletMetaStyles } from '../../interfaces/open-wallet-meta.interface';
|
|
11
|
+
import type { ApplePayButtonStyle, ApplePayButtonType } from '../../types/apple-pay';
|
|
12
|
+
declare global {
|
|
13
|
+
interface Window {
|
|
14
|
+
ApplePaySession: ApplePaySession;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
interface ApplePayOpenWalletMetaStyles extends OpenWalletMetaStyles {
|
|
18
|
+
button_type?: ApplePayButtonType;
|
|
19
|
+
button_style?: ApplePayButtonStyle;
|
|
20
|
+
}
|
|
21
|
+
export interface ApplePayOpenWalletMeta extends OpenWalletMeta, ApplePayPaymentRequest {
|
|
22
|
+
request_shipping?: boolean;
|
|
23
|
+
shipping_options?: IApplePayShippingOption[];
|
|
24
|
+
amount_label: string;
|
|
25
|
+
show_billing_address?: boolean;
|
|
26
|
+
style?: ApplePayOpenWalletMetaStyles;
|
|
27
|
+
apple_pay_capabilities?: Array<'credentials_available' | 'credentials_status_unknown' | 'credentials_unavailable'>;
|
|
28
|
+
store_name?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare class ApplePayOpenWalletService extends OpenWalletService {
|
|
31
|
+
private meta;
|
|
32
|
+
private serviceConfig;
|
|
33
|
+
private latestShippingData;
|
|
34
|
+
private paymentSession;
|
|
35
|
+
private selectedShippingOption;
|
|
36
|
+
constructor(api: ApiInternal, eventEmitter: EventEmitter, serviceId: string, container: Container, meta: ApplePayOpenWalletMeta, serviceConfig: GetConfigResponse);
|
|
37
|
+
private adaptMeta;
|
|
38
|
+
private getMerchantId;
|
|
39
|
+
private getMetaStyles;
|
|
40
|
+
private isShippingRequired;
|
|
41
|
+
private hasShippingOptions;
|
|
42
|
+
load(): Promise<void>;
|
|
43
|
+
private onScriptLoaded;
|
|
44
|
+
private checkAvailability;
|
|
45
|
+
private mount;
|
|
46
|
+
private onApplePayButtonClicked;
|
|
47
|
+
private onCancelPayment;
|
|
48
|
+
private getMerchantSession;
|
|
49
|
+
private onValidateMerchant;
|
|
50
|
+
private handleMerchantOnButtonClickEvent;
|
|
51
|
+
private onPaymentAuthorized;
|
|
52
|
+
private formatShippingOptions;
|
|
53
|
+
private formatCapabilities;
|
|
54
|
+
private createButtonStyle;
|
|
55
|
+
private onShippingContactUpdated;
|
|
56
|
+
private parseShippingContactUpdateEvent;
|
|
57
|
+
private parseShippingMethod;
|
|
58
|
+
private onShippingMethodUpdated;
|
|
59
|
+
private parseShippingMethodUpdateEvent;
|
|
60
|
+
private mapContactToApplePayPaymentRequestContact;
|
|
61
|
+
private mapMetaToApplePayPaymentRequest;
|
|
62
|
+
}
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=apple-pay.open-wallet.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apple-pay.open-wallet.service.d.ts","sourceRoot":"","sources":["../../../../src/open-wallets/services/apple-pay/apple-pay.open-wallet.service.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAExF,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAIrF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,eAAe,EAAE,eAAe,CAAC;KAClC;CACF;AAOD,UAAU,4BAA6B,SAAQ,oBAAoB;IACjE,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,YAAY,CAAC,EAAE,mBAAmB,CAAC;CACpC;AAED,MAAM,WAAW,sBAAuB,SAAQ,cAAc,EAAE,sBAAsB;IACpF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,gBAAgB,CAAC,EAAE,uBAAuB,EAAE,CAAC;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,KAAK,CAAC,EAAE,4BAA4B,CAAC;IACrC,sBAAsB,CAAC,EAAE,KAAK,CAC5B,uBAAuB,GAAG,4BAA4B,GAAG,yBAAyB,CACnF,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAID,qBAAa,yBAA0B,SAAQ,iBAAiB;IAU5D,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,aAAa;IAVvB,OAAO,CAAC,kBAAkB,CAA0B;IACpD,OAAO,CAAC,cAAc,CAAkB;IACxC,OAAO,CAAC,sBAAsB,CAA0B;gBAGtD,GAAG,EAAE,WAAW,EAChB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,SAAS,EACZ,IAAI,EAAE,sBAAsB,EAC5B,aAAa,EAAE,iBAAiB;IAc1C,OAAO,CAAC,SAAS;IAwDjB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,kBAAkB;IAIb,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IA0BlC,OAAO,CAAC,cAAc;IAuBtB,OAAO,CAAC,iBAAiB;IA0BzB,OAAO,CAAC,KAAK;IAoBb,OAAO,CAAC,uBAAuB;IAc/B,OAAO,CAAC,eAAe,CAErB;IAEF,OAAO,CAAC,kBAAkB;IAqB1B,OAAO,CAAC,kBAAkB,CAcxB;IAEF,OAAO,CAAC,gCAAgC;IAqBxC,OAAO,CAAC,mBAAmB,CAgDzB;IAEF,OAAO,CAAC,qBAAqB,CAQvB;IAEN,OAAO,CAAC,kBAAkB;IAc1B,OAAO,CAAC,iBAAiB;IAYzB,OAAO,CAAC,wBAAwB,CA+B9B;IAEF,OAAO,CAAC,+BAA+B;IAuBvC,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,uBAAuB,CAiB7B;IAEF,OAAO,CAAC,8BAA8B;IAWtC,OAAO,CAAC,yCAAyC;IA2BjD,OAAO,CAAC,+BAA+B;CAqExC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/open-wallets/services/apple-pay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,yBAAyB,GAC1B,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="googlepay" />
|
|
2
|
+
export declare const GOOGLE_PAY_SCRIPT_URL = "https://pay.google.com/gp/p/js/pay.js";
|
|
3
|
+
export declare const GOOGLE_PAY_GATEWAY = "paydock";
|
|
4
|
+
export declare const GOOGLE_PAY_API_CONFIG: {
|
|
5
|
+
readonly apiVersion: 2;
|
|
6
|
+
readonly apiVersionMinor: 0;
|
|
7
|
+
};
|
|
8
|
+
export declare const GOOGLE_PAY_AUTH_METHODS: string[];
|
|
9
|
+
export declare const GOOGLE_PAY_CARD_NETWORKS: string[];
|
|
10
|
+
export declare const GOOGLE_EVENT_TO_WALLET_EVENT: Record<Extract<google.payments.api.CallbackTrigger, 'SHIPPING_ADDRESS' | 'SHIPPING_OPTION'>, string>;
|
|
11
|
+
//# sourceMappingURL=google-pay.constants.d.ts.map
|
package/bundles/types/open-wallets/services/google-pay/constants/google-pay.constants.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-pay.constants.d.ts","sourceRoot":"","sources":["../../../../../src/open-wallets/services/google-pay/constants/google-pay.constants.ts"],"names":[],"mappings":";AAEA,eAAO,MAAM,qBAAqB,0CAA0C,CAAC;AAE7E,eAAO,MAAM,kBAAkB,YAAY,CAAC;AAE5C,eAAO,MAAM,qBAAqB;;;CAGxB,CAAC;AAEX,eAAO,MAAM,uBAAuB,UAAiC,CAAC;AAEtE,eAAO,MAAM,wBAAwB,UAOpC,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAC/C,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,eAAe,EAAE,kBAAkB,GAAG,iBAAiB,CAAC,EACpF,MAAM,CAIE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/open-wallets/services/google-pay/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,4BAA4B,EAC5B,qBAAqB,EACrB,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/// <reference types="googlepay" />
|
|
2
|
+
import type { ApiInternal } from '../../../api/api-internal';
|
|
3
|
+
import { type GetConfigResponse } from '../../../api/api-service-internal';
|
|
4
|
+
import type { Container } from '../../../components/container';
|
|
5
|
+
import type { IGooglePayShippingOption } from '../../../components/param';
|
|
6
|
+
import type { EventEmitter } from '../../../helper/event-emitter';
|
|
7
|
+
import { OpenWalletService } from '../../base/open-wallet.service';
|
|
8
|
+
import { WALLET_TYPES } from '../../interfaces';
|
|
9
|
+
import type { GooglePayOpenWalletMeta } from '../../interfaces/google-pay';
|
|
10
|
+
declare global {
|
|
11
|
+
interface Window {
|
|
12
|
+
google: typeof google;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export declare class GooglePayOpenWalletService extends OpenWalletService {
|
|
16
|
+
private meta;
|
|
17
|
+
private serviceConfig;
|
|
18
|
+
readonly walletType = WALLET_TYPES.GOOGLE_PAY;
|
|
19
|
+
private paymentsClient;
|
|
20
|
+
private latestShippingChangePromiseResolve;
|
|
21
|
+
private latestShippingChangePromiseReject;
|
|
22
|
+
private selectedShippingOption;
|
|
23
|
+
private processingButtonClick;
|
|
24
|
+
private isProcessingAuthorization;
|
|
25
|
+
constructor(api: ApiInternal, eventEmitter: EventEmitter, serviceId: string, container: Container, meta: GooglePayOpenWalletMeta, serviceConfig: GetConfigResponse);
|
|
26
|
+
load(): Promise<void>;
|
|
27
|
+
setMeta(meta: GooglePayOpenWalletMeta): void;
|
|
28
|
+
private getMerchantId;
|
|
29
|
+
private loadGooglePayScript;
|
|
30
|
+
private onScriptLoaded;
|
|
31
|
+
private checkAvailability;
|
|
32
|
+
private mount;
|
|
33
|
+
private onGooglePayButtonClicked;
|
|
34
|
+
private handleMerchantOnButtonClickEvent;
|
|
35
|
+
private loadPaymentData;
|
|
36
|
+
private onPaymentAuthorized;
|
|
37
|
+
private onPaymentDataChanged;
|
|
38
|
+
private createRequest;
|
|
39
|
+
private createPaymentDataRequest;
|
|
40
|
+
private createTokenizationSpecification;
|
|
41
|
+
private getDefaultCardConfiguration;
|
|
42
|
+
private buildCardParameters;
|
|
43
|
+
private createCardData;
|
|
44
|
+
private getMetaStyles;
|
|
45
|
+
private isShippingRequired;
|
|
46
|
+
private hasShippingOptions;
|
|
47
|
+
update(data: {
|
|
48
|
+
success: boolean;
|
|
49
|
+
body?: {
|
|
50
|
+
amount?: number;
|
|
51
|
+
shipping_options?: IGooglePayShippingOption[];
|
|
52
|
+
};
|
|
53
|
+
}): void;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=google-pay.open-wallet.service.d.ts.map
|
package/bundles/types/open-wallets/services/google-pay/google-pay.open-wallet.service.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-pay.open-wallet.service.d.ts","sourceRoot":"","sources":["../../../../src/open-wallets/services/google-pay/google-pay.open-wallet.service.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAEnE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAIV,uBAAuB,EAExB,MAAM,6BAA6B,CAAC;AAoBrC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,OAAO,MAAM,CAAC;KACvB;CACF;AAED,qBAAa,0BAA2B,SAAQ,iBAAiB;IAc7D,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,aAAa;IAdvB,SAAgB,UAAU,2BAA2B;IACrD,OAAO,CAAC,cAAc,CAAqC;IAC3D,OAAO,CAAC,kCAAkC,CAA2B;IACrE,OAAO,CAAC,iCAAiC,CAAa;IACtD,OAAO,CAAC,sBAAsB,CAA2B;IACzD,OAAO,CAAC,qBAAqB,CAAS;IACtC,OAAO,CAAC,yBAAyB,CAAS;gBAGxC,GAAG,EAAE,WAAW,EAChB,YAAY,EAAE,YAAY,EAC1B,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,SAAS,EACZ,IAAI,EAAE,uBAAuB,EAC7B,aAAa,EAAE,iBAAiB;IAY7B,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAa3B,OAAO,CAAC,IAAI,EAAE,uBAAuB,GAAG,IAAI;IAInD,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,mBAAmB;IA6B3B,OAAO,CAAC,cAAc;YAmCR,iBAAiB;IAW/B,OAAO,CAAC,KAAK;IAab,OAAO,CAAC,wBAAwB;IAmBhC,OAAO,CAAC,gCAAgC;YAwB1B,eAAe;IAU7B,OAAO,CAAC,mBAAmB;IA4C3B,OAAO,CAAC,oBAAoB;IA8E5B,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,wBAAwB;IAwDhC,OAAO,CAAC,+BAA+B;IAkCvC,OAAO,CAAC,2BAA2B;IAanC,OAAO,CAAC,mBAAmB;IAmD3B,OAAO,CAAC,cAAc;IAqBtB,OAAO,CAAC,aAAa;IAYrB,OAAO,CAAC,kBAAkB;IAI1B,OAAO,CAAC,kBAAkB;IAInB,MAAM,CAAC,IAAI,EAAE;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,IAAI,CAAC,EAAE;YAAE,MAAM,CAAC,EAAE,MAAM,CAAC;YAAC,gBAAgB,CAAC,EAAE,wBAAwB,EAAE,CAAA;SAAE,CAAC;KAC3E,GAAG,IAAI;CAiDT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/open-wallets/services/google-pay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/// <reference types="googlepay" />
|
|
2
|
+
import type { IGooglePayShippingOption } from '../../../../components/param';
|
|
3
|
+
import type { GooglePayCardConfig, GooglePayOpenWalletMeta } from '../../../interfaces/google-pay';
|
|
4
|
+
import type { CreateOTTData } from '../../../types';
|
|
5
|
+
import { WALLET_TYPES } from '../../../types';
|
|
6
|
+
export declare const parseUpdateData: (data: google.payments.api.IntermediatePaymentData, meta: GooglePayOpenWalletMeta) => {
|
|
7
|
+
selected_shipping_option: IGooglePayShippingOption;
|
|
8
|
+
wallet_type: WALLET_TYPES;
|
|
9
|
+
shipping: {
|
|
10
|
+
address_city: string;
|
|
11
|
+
address_state: string;
|
|
12
|
+
address_postcode: string;
|
|
13
|
+
address_country: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const formatShippingOptions: (shipping_options: IGooglePayShippingOption[]) => google.payments.api.SelectionOption[];
|
|
17
|
+
export declare const mapGooglePayData: (paymentData: google.payments.api.PaymentData, meta: GooglePayOpenWalletMeta) => CreateOTTData;
|
|
18
|
+
export declare const mapBillingAddressParameters: (billingAddressParams: GooglePayCardConfig['parameters']['billing_address_parameters']) => google.payments.api.BillingAddressParameters | undefined;
|
|
19
|
+
export declare const mapCardNetworkParameters: (cardNetworkParams: GooglePayCardConfig['parameters']['card_network_parameters']) => google.payments.api.CardNetworkParameters[] | undefined;
|
|
20
|
+
//# sourceMappingURL=google-pay.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-pay.utils.d.ts","sourceRoot":"","sources":["../../../../../src/open-wallets/services/google-pay/utils/google-pay.utils.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAC7E,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,eAAO,MAAM,eAAe,SACpB,OAAO,QAAQ,CAAC,GAAG,CAAC,uBAAuB,QAC3C,uBAAuB;;;;;;;;;CAuB9B,CAAC;AAEF,eAAO,MAAM,qBAAqB,qBACd,wBAAwB,EAAE,KAC3C,OAAO,QAAQ,CAAC,GAAG,CAAC,eAAe,EAKjC,CAAC;AAEN,eAAO,MAAM,gBAAgB,gBACd,OAAO,QAAQ,CAAC,GAAG,CAAC,WAAW,QACtC,uBAAuB,KAC5B,aA6CF,CAAC;AAEF,eAAO,MAAM,2BAA2B,yBAChB,mBAAmB,CAAC,YAAY,CAAC,CAAC,4BAA4B,CAAC,KACpF,OAAO,QAAQ,CAAC,GAAG,CAAC,wBAAwB,GAAG,SAWjD,CAAC;AAEF,eAAO,MAAM,wBAAwB,sBAChB,mBAAmB,CAAC,YAAY,CAAC,CAAC,yBAAyB,CAAC,KAC9E,OAAO,QAAQ,CAAC,GAAG,CAAC,qBAAqB,EAAE,GAAG,SAYhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/open-wallets/services/google-pay/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,2BAA2B,EAC3B,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,GAChB,MAAM,oBAAoB,CAAC"}
|
package/bundles/types/open-wallets/services/google-pay/validation/google-pay.validation.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-pay.validation.d.ts","sourceRoot":"","sources":["../../../../../src/open-wallets/services/google-pay/validation/google-pay.validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE1E,eAAO,MAAM,yBAAyB,eACxB,mBAAmB,KAC9B,MAAM,EAkCR,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/open-wallets/services/google-pay/validation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apple-pay-button-style.type.d.ts","sourceRoot":"","sources":["../../../../src/open-wallets/types/apple-pay/apple-pay-button-style.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,OAAO,GAAG,eAAe,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type ApplePayButtonType = 'add-money' | 'book' | 'buy' | 'check-out' | 'continue' | 'contribute' | 'donate' | 'order' | 'pay' | 'plain' | 'reload' | 'rent' | 'set-up' | 'subscribe' | 'support' | 'tip' | 'top-up';
|
|
2
|
+
//# sourceMappingURL=apple-pay-button-type.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apple-pay-button-type.type.d.ts","sourceRoot":"","sources":["../../../../src/open-wallets/types/apple-pay/apple-pay-button-type.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAC1B,WAAW,GACX,MAAM,GACN,KAAK,GACL,WAAW,GACX,UAAU,GACV,YAAY,GACZ,QAAQ,GACR,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,WAAW,GACX,SAAS,GACT,KAAK,GACL,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/open-wallets/types/apple-pay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/types/base-event-data.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-pay-button-color.type.d.ts","sourceRoot":"","sources":["../../../../src/open-wallets/types/google-pay/google-pay-button-color.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-pay-button-size-mode.type.d.ts","sourceRoot":"","sources":["../../../../src/open-wallets/types/google-pay/google-pay-button-size-mode.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"google-pay-button-type.type.d.ts","sourceRoot":"","sources":["../../../../src/open-wallets/types/google-pay/google-pay-button-type.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAC3B,MAAM,GACN,KAAK,GACL,UAAU,GACV,QAAQ,GACR,OAAO,GACP,KAAK,GACL,OAAO,GACP,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/open-wallets/types/google-pay/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export type { CheckoutActionCode, CheckoutResponse, CreateOTTRequest, CreateOTTResponse, } from './
|
|
2
|
-
export type { OTTResponse } from './ott-response.type';
|
|
1
|
+
export type { CheckoutActionCode, CheckoutResponse, CreateOTTData, CreateOTTRequest, CreateOTTResponse, CreateSessionRequest, CreateSessionResponse, OTTResponse, } from './payment-source.type';
|
|
3
2
|
export type { WalletType } from './wallet-type.type';
|
|
4
3
|
export { WALLET_TYPES } from './wallet-type.type';
|
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,qBAAqB,EACrB,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { EVENT } from '../enum/event.enum';
|
|
2
|
+
import type { BaseEventData } from './base-event-data.interface';
|
|
3
|
+
export interface OnShippingAddressChangeEventData extends BaseEventData<AddressChangeEventData> {
|
|
4
|
+
event: EVENT.ON_SHIPPING_ADDRESS_CHANGE;
|
|
5
|
+
}
|
|
6
|
+
interface AddressChangeEventData {
|
|
7
|
+
address_postcode?: string;
|
|
8
|
+
address_city?: string;
|
|
9
|
+
address_state?: string;
|
|
10
|
+
address_country?: string;
|
|
11
|
+
address_line1?: string;
|
|
12
|
+
address_line2?: string;
|
|
13
|
+
contact?: {
|
|
14
|
+
phone?: string;
|
|
15
|
+
email?: string;
|
|
16
|
+
first_name?: string;
|
|
17
|
+
last_name?: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=on-shipping-address-change-event-data.interface.d.ts.map
|
package/bundles/types/open-wallets/types/on-shipping-address-change-event-data.interface.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"on-shipping-address-change-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/types/on-shipping-address-change-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,WAAW,gCACf,SAAQ,aAAa,CAAC,sBAAsB,CAAC;IAC7C,KAAK,EAAE,KAAK,CAAC,0BAA0B,CAAC;CACzC;AAED,UAAU,sBAAsB;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IAGzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;CACH"}
|
package/bundles/types/open-wallets/types/on-shipping-address-change-event-response.interface.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IApplePayShippingOption } from '../../components/param';
|
|
2
|
+
export interface OnShippingAddressChangeEventResponse {
|
|
3
|
+
amount?: number;
|
|
4
|
+
shipping_options?: IApplePayShippingOption[];
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=on-shipping-address-change-event-response.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"on-shipping-address-change-event-response.interface.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/types/on-shipping-address-change-event-response.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEtE,MAAM,WAAW,oCAAoC;IACnD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,uBAAuB,EAAE,CAAC;CAC9C"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { EVENT } from '../enum/event.enum';
|
|
2
|
+
import type { BaseEventData } from './base-event-data.interface';
|
|
3
|
+
export interface OnShippingOptionChangeEventData extends BaseEventData<ShippingOptionChangeEventData> {
|
|
4
|
+
event: EVENT.ON_SHIPPING_OPTIONS_CHANGE;
|
|
5
|
+
}
|
|
6
|
+
interface ShippingOptionChangeEventData {
|
|
7
|
+
shipping_option_id?: string;
|
|
8
|
+
amount?: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
detail?: string;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=on-shipping-option-change-event-data.interface.d.ts.map
|
package/bundles/types/open-wallets/types/on-shipping-option-change-event-data.interface.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"on-shipping-option-change-event-data.interface.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/types/on-shipping-option-change-event-data.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAEjE,MAAM,WAAW,+BACf,SAAQ,aAAa,CAAC,6BAA6B,CAAC;IACpD,KAAK,EAAE,KAAK,CAAC,0BAA0B,CAAC;CACzC;AAED,UAAU,6BAA6B;IACrC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
package/bundles/types/open-wallets/types/on-shipping-option-change-event-response.interface.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"on-shipping-option-change-event-response.interface.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/types/on-shipping-option-change-event-response.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mCAAmC;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/// <reference types="applepayjs" />
|
|
2
|
+
/// <reference types="googlepay" />
|
|
3
|
+
import type { SERVICE_TYPES } from '../../api/api-service-internal';
|
|
4
|
+
import type { IShippingOption } from '../../components/param';
|
|
5
|
+
import type { PAYLOAD_FORMAT } from '../enum/payload-format.enum';
|
|
6
|
+
import type { SERVICE_GROUP } from '../enum/service-group.enum';
|
|
7
|
+
import type { WalletType } from './wallet-type.type';
|
|
8
|
+
export interface CreateOTTResponse {
|
|
9
|
+
temp_token: string;
|
|
10
|
+
token_type: string;
|
|
11
|
+
}
|
|
12
|
+
export interface Billing {
|
|
13
|
+
address_line1: string;
|
|
14
|
+
address_line2: string;
|
|
15
|
+
address_country: string;
|
|
16
|
+
address_city: string;
|
|
17
|
+
address_postcode: string;
|
|
18
|
+
address_state: string;
|
|
19
|
+
}
|
|
20
|
+
export interface CardInfo {
|
|
21
|
+
card_scheme: string;
|
|
22
|
+
card_number_last4?: string;
|
|
23
|
+
}
|
|
24
|
+
export interface CreateOTTData {
|
|
25
|
+
amount: number;
|
|
26
|
+
shipping: Shipping;
|
|
27
|
+
billing: Billing;
|
|
28
|
+
card_info: CardInfo;
|
|
29
|
+
ref_token: string;
|
|
30
|
+
}
|
|
31
|
+
export interface CreateOTTRequest {
|
|
32
|
+
service_id: string;
|
|
33
|
+
service_type: SERVICE_TYPES;
|
|
34
|
+
service_group: SERVICE_GROUP;
|
|
35
|
+
payload: string;
|
|
36
|
+
payload_format: PAYLOAD_FORMAT;
|
|
37
|
+
}
|
|
38
|
+
export interface CreateSessionRequest {
|
|
39
|
+
service_id: string;
|
|
40
|
+
session_id: string;
|
|
41
|
+
request_shipping?: boolean;
|
|
42
|
+
store_name?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface CreateSessionResponse {
|
|
45
|
+
id: string;
|
|
46
|
+
status: string;
|
|
47
|
+
callback_method: string;
|
|
48
|
+
callback_rel: string;
|
|
49
|
+
callback_url: string;
|
|
50
|
+
}
|
|
51
|
+
export type CheckoutResponse = ApplePayJS.ApplePayPaymentAuthorizedEvent | google.payments.api.PaymentAuthorizationResult | google.payments.api.PaymentData;
|
|
52
|
+
export declare enum CheckoutActionCode {
|
|
53
|
+
COMPLETE = "COMPLETE",
|
|
54
|
+
CANCEL = "CANCEL",
|
|
55
|
+
ERROR = "ERROR",
|
|
56
|
+
CHANGE_CARD = "CHANGE_CARD",
|
|
57
|
+
ADD_CARD = "ADD_CARD",
|
|
58
|
+
SWITCH_CONSUMER = "SWITCH_CONSUMER"
|
|
59
|
+
}
|
|
60
|
+
export interface OTTResponse {
|
|
61
|
+
token: string;
|
|
62
|
+
token_type: string;
|
|
63
|
+
three_ds_required?: boolean;
|
|
64
|
+
wallet_type: WalletType;
|
|
65
|
+
}
|
|
66
|
+
export interface Shipping {
|
|
67
|
+
method?: string;
|
|
68
|
+
options?: IShippingOption[];
|
|
69
|
+
address_line1?: string;
|
|
70
|
+
address_line2?: string;
|
|
71
|
+
address_city?: string;
|
|
72
|
+
address_postcode?: string;
|
|
73
|
+
address_state?: string;
|
|
74
|
+
address_country?: string;
|
|
75
|
+
address_company?: string;
|
|
76
|
+
address_origin_postcode?: string;
|
|
77
|
+
contact?: {
|
|
78
|
+
first_name?: string;
|
|
79
|
+
last_name?: string;
|
|
80
|
+
email?: string;
|
|
81
|
+
phone?: string;
|
|
82
|
+
phone2?: string;
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=payment-source.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payment-source.type.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/types/payment-source.type.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { OnShippingAddressChangeEventData } from './on-shipping-address-change-event-data.interface';
|
|
2
|
+
import type { OnShippingAddressChangeEventResponse } from './on-shipping-address-change-event-response.interface';
|
|
3
|
+
import type { OnShippingOptionChangeEventData } from './on-shipping-option-change-event-data.interface';
|
|
4
|
+
import type { OnShippingOptionChangeEventResponse } from './on-shipping-option-change-event-response.interface';
|
|
5
|
+
export type ShippingEventToResponse<T> = T extends OnShippingAddressChangeEventData ? OnShippingAddressChangeEventResponse : T extends OnShippingOptionChangeEventData ? OnShippingOptionChangeEventResponse : never;
|
|
6
|
+
//# sourceMappingURL=shipping-event-to-response.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shipping-event-to-response.type.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/types/shipping-event-to-response.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,mDAAmD,CAAC;AAC1G,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,uDAAuD,CAAC;AAClH,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AACxG,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,sDAAsD,CAAC;AAEhH,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI,CAAC,SAAS,gCAAgC,GAC/E,oCAAoC,GACpC,CAAC,SAAS,+BAA+B,GACvC,mCAAmC,GACnC,KAAK,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wallet-type.type.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/types/wallet-type.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC;AAEtC,oBAAY,YAAY;IACtB,SAAS,
|
|
1
|
+
{"version":3,"file":"wallet-type.type.d.ts","sourceRoot":"","sources":["../../../src/open-wallets/types/wallet-type.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC;AAEtC,oBAAY,YAAY;IACtB,SAAS,UAAU;IACnB,UAAU,WAAW;CACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paypal-save-payment-source.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,
|
|
1
|
+
{"version":3,"file":"paypal-save-payment-source.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAGL,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,8BAA8B,EACnC,KAAK,mCAAmC,EACzC,MAAM,yCAAyC,CAAC;AAGjD;;;;;;;;;;GAUG;AACH,cAAM,6BAA6B;IACjC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC;IAC/B,SAAS,CAAC,OAAO,EAAE,8BAA8B,CAAC;IAClD,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAErC,kBAAkB,aAEhB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,MAAM,CAAC,EAAE,mCAAmC;IAY9C;;;OAGG;IACI,IAAI;IAcX;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM;IAIzC;;;;;OAKG;IACH;;;;;;;;OAQG;IACI,SAAS,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI;IAI/D;;;;;OAKG;IACH;;;;;;;;OAQG;IACI,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,iBAAiB,KAAK,IAAI;IAI3D;;;;;OAKG;IACH;;;;;;;;OAQG;IACI,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,kBAAkB,KAAK,IAAI;CAG/D;AAED,OAAO,EAAE,6BAA6B,EAAE,CAAC"}
|
package/bundles/types/paypal-save-payment-source/paypal-save-payment-source.service.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paypal-save-payment-source.service.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAiB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAEL,KAAK,8BAA8B,EAEnC,KAAK,mCAAmC,EAOzC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,GAAG,CAAC;KACb;CACF;
|
|
1
|
+
{"version":3,"file":"paypal-save-payment-source.service.d.ts","sourceRoot":"","sources":["../../src/paypal-save-payment-source/paypal-save-payment-source.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAiB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAEL,KAAK,8BAA8B,EAEnC,KAAK,mCAAmC,EAOzC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,MAAM,EAAE,GAAG,CAAC;KACb;CACF;AAYD,qBAAa,8BAA+B,YAAW,8BAA8B;IAOjF,SAAS,CAAC,SAAS,EAAE,MAAM;IAC3B,SAAS,CAAC,SAAS,EAAE,MAAM;IAC3B,SAAS,CAAC,YAAY,EAAE,YAAY;IACpC,SAAS,CAAC,MAAM,CAAC,EAAE,mCAAmC;IATxD,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IACtB,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,YAAY,EAAE,uBAAuB,CAAC;IAChD,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;gBAGd,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,mCAAmC;IAKxD,MAAM,CAAC,UAAU,CACf,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,YAAY,EAC1B,MAAM,CAAC,EAAE,mCAAmC;IAU9C,OAAO,CAAC,cAAc;IAOf,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAIzC,IAAI,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAiBvC,OAAO,CAAC,sCAAsC;IAqD9C,OAAO,CAAC,6BAA6B;IAIrC,OAAO,CAAC,aAAa;IAwBrB,SAAS,CAAC,yBAAyB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA4B3E,SAAS,CAAC,sBAAsB,CAAC,KAAK,KAAA,GAAG,IAAI;IAU7C,SAAS,CAAC,uBAAuB,IAAI,IAAI;IAMzC,OAAO,CAAC,UAAU;IAqBlB,OAAO,CAAC,eAAe;IAkBvB,OAAO,CAAC,mBAAmB;CAU5B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { EventEmitter } from '../helper/event-emitter';
|
|
2
1
|
import { ApiInternal } from '../api/api-internal';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { EventEmitter } from '../helper/event-emitter';
|
|
3
|
+
import { type IClickToPayMeta, type IStyles } from './interfaces';
|
|
4
|
+
import type { SRCProvider } from './providers/src-provider';
|
|
5
5
|
declare abstract class SRC {
|
|
6
6
|
protected iframe_selector: string;
|
|
7
7
|
protected service_id: string;
|
|
@@ -16,19 +16,19 @@ declare abstract class SRC {
|
|
|
16
16
|
protected style: IStyles;
|
|
17
17
|
constructor(iframe_selector: string, service_id: string, public_key_or_access_token: string, meta: IClickToPayMeta);
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
19
|
+
* Object contain styles for widget - call before `.load()`.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* widget.setStyles({
|
|
23
|
+
* enable_src_popup: true
|
|
24
|
+
* primary_button_color: 'red',
|
|
25
|
+
* secondary_button_color: 'blue',
|
|
26
|
+
* primary_button_text_color: 'white',
|
|
27
|
+
* secondary_button_text_color: 'white',
|
|
28
|
+
* font_family: 'Arial',
|
|
29
|
+
* });
|
|
30
|
+
* @param {IStyles} fields - name of styles which can be shown in widget [STYLE]{@link STYLE}
|
|
31
|
+
*/
|
|
32
32
|
setStyles(styles: IStyles): void;
|
|
33
33
|
private setStyle;
|
|
34
34
|
load(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secure-remote-commerce.d.ts","sourceRoot":"","sources":["../../src/secure-remote-commerce/secure-remote-commerce.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"secure-remote-commerce.d.ts","sourceRoot":"","sources":["../../src/secure-remote-commerce/secure-remote-commerce.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEvD,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,OAAO,EAEb,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAE5D,uBAAe,GAAG;IAad,SAAS,CAAC,eAAe,EAAE,MAAM;IACjC,SAAS,CAAC,UAAU,EAAE,MAAM;IAC5B,SAAS,CAAC,0BAA0B,EAAE,MAAM;IAC5C,SAAS,CAAC,IAAI,EAAE,eAAe;IAfjC,SAAS,CAAC,YAAY,EAAE,YAAY,CAAC;IAErC,SAAS,CAAC,GAAG,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE,WAAW,CAAC;IAC3B,SAAS,CAAC,QAAQ,EAAE,WAAW,CAAC;IAEhC,SAAS,CAAC,UAAU,UAAS;IAC7B,SAAS,CAAC,KAAK,EAAE,OAAO,CAAiB;gBAG7B,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,MAAM,EAClB,0BAA0B,EAAE,MAAM,EAClC,IAAI,EAAE,eAAe;IAMjC;;;;;;;;;;;;;OAaG;IACI,SAAS,CAAC,MAAM,EAAE,OAAO;IAQhC,OAAO,CAAC,QAAQ;IAQT,IAAI,IAAI,IAAI;IAgCnB;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI;IAUhD;;;;;OAKG;IACI,MAAM,IAAI,MAAM;IAQhB,EAAE,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;IACnC,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI;IA4BpD;;;;;;OAMG;IACI,YAAY,CAAC,QAAQ,EAAE,OAAO;IAMrC;;;;;OAKG;IACI,YAAY;IAMnB;;;;;OAKG;IACI,MAAM;IAMb;;;;;;OAMG;IACI,aAAa;CAMrB;AAED,OAAO,EAAE,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type ModalOptions = {
|
|
2
|
+
title: string;
|
|
3
|
+
message: string;
|
|
4
|
+
onConfirm: () => void | Promise<void>;
|
|
5
|
+
onCancel?: () => void;
|
|
6
|
+
confirmText?: string;
|
|
7
|
+
cancelText?: string;
|
|
8
|
+
};
|
|
9
|
+
declare global {
|
|
10
|
+
interface Window {
|
|
11
|
+
modalStylesAdded: boolean;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export declare function createModal(options: ModalOptions): HTMLDivElement;
|
|
15
|
+
export declare function showModal(modal: HTMLDivElement, selector: string): void;
|
|
16
|
+
export declare function closeModal(modal: HTMLDivElement): void;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/shared-ui/components/modal.ts"],"names":[],"mappings":"AAEA,KAAK,YAAY,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAoFF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,gBAAgB,EAAE,OAAO,CAAC;KAC3B;CACF;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,YAAY,GAAG,cAAc,CAuEjE;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAEvE;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAKtD"}
|