@paydock/client-sdk 1.120.1 → 1.121.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +173 -32
  2. package/bundles/index.cjs +633 -352
  3. package/bundles/index.cjs.d.ts +89 -31
  4. package/bundles/index.mjs +633 -352
  5. package/bundles/index.mjs.d.ts +89 -31
  6. package/bundles/types/api/api-base.d.ts +6 -6
  7. package/bundles/types/api/api-base.d.ts.map +1 -1
  8. package/bundles/types/api/api-checkout-internal.d.ts +2 -2
  9. package/bundles/types/api/api-checkout-internal.d.ts.map +1 -1
  10. package/bundles/types/api/api.d.ts +9 -9
  11. package/bundles/types/api/api.d.ts.map +1 -1
  12. package/bundles/types/checkout/checkout.d.ts +26 -7
  13. package/bundles/types/checkout/checkout.d.ts.map +1 -1
  14. package/bundles/types/checkout/helpers/instruction-handler.d.ts +6 -4
  15. package/bundles/types/checkout/helpers/instruction-handler.d.ts.map +1 -1
  16. package/bundles/types/checkout/instructions/v1/instruction.afterpay_checkout_form.show.d.ts.map +1 -1
  17. package/bundles/types/checkout/instructions/v1/instruction.apple_pay_form.show.d.ts.map +1 -1
  18. package/bundles/types/checkout/instructions/v1/instruction.canvas_3ds.show.d.ts.map +1 -1
  19. package/bundles/types/checkout/instructions/v1/instruction.card_form.show.d.ts.map +1 -1
  20. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts +1 -0
  21. package/bundles/types/checkout/instructions/v1/instruction.disable_payment_method_event.emit.d.ts.map +1 -1
  22. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts +1 -1
  23. package/bundles/types/checkout/instructions/v1/instruction.generic.show_message.d.ts.map +1 -1
  24. package/bundles/types/checkout/instructions/v1/instruction.google_pay_form.show.d.ts.map +1 -1
  25. package/bundles/types/checkout/instructions/v1/instruction.merchant_event.emit.d.ts.map +1 -1
  26. package/bundles/types/checkout/instructions/v1/instruction.payment_methods.show.d.ts.map +1 -1
  27. package/bundles/types/checkout/instructions/v1/instruction.paypal_form.show.d.ts.map +1 -1
  28. package/bundles/types/checkout/instructions/v1/instruction.zip_checkout_form.show.d.ts.map +1 -1
  29. package/bundles/types/checkout/layout-widgets/additionals.d.ts +1 -1
  30. package/bundles/types/checkout/layout-widgets/additionals.d.ts.map +1 -1
  31. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts +2 -1
  32. package/bundles/types/checkout/layout-widgets/payment-methods.d.ts.map +1 -1
  33. package/bundles/types/components/iframe-event.d.ts +3 -8
  34. package/bundles/types/components/iframe-event.d.ts.map +1 -1
  35. package/bundles/types/components/param.d.ts +7 -0
  36. package/bundles/types/components/param.d.ts.map +1 -1
  37. package/bundles/types/helper/event-error.d.ts +55 -0
  38. package/bundles/types/helper/event-error.d.ts.map +1 -0
  39. package/bundles/types/helper/process-event-error.d.ts +9 -0
  40. package/bundles/types/helper/process-event-error.d.ts.map +1 -0
  41. package/bundles/types/wallet-buttons/index.d.ts +6 -1
  42. package/bundles/types/wallet-buttons/index.d.ts.map +1 -1
  43. package/bundles/types/wallet-buttons/wallet-buttons.d.ts.map +1 -1
  44. package/bundles/types/wallet-buttons/wallet-cba-buttons.d.ts.map +1 -1
  45. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts +2 -0
  46. package/bundles/types/wallet-buttons/wallet-services/afterpay.wallet-service.d.ts.map +1 -1
  47. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts +2 -2
  48. package/bundles/types/wallet-buttons/wallet-services/apple.wallet-service.d.ts.map +1 -1
  49. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts +2 -0
  50. package/bundles/types/wallet-buttons/wallet-services/wallet-service.d.ts.map +1 -1
  51. package/bundles/types/wallet-buttons-express/index.d.ts +5 -0
  52. package/bundles/types/wallet-buttons-express/index.d.ts.map +1 -1
  53. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts +2 -1
  54. package/bundles/types/wallet-buttons-express/services/apple-pay/apple-pay.wallet-button-express.d.ts.map +1 -1
  55. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts +1 -3
  56. package/bundles/types/wallet-buttons-express/services/apple-pay/constants/apple-pay-button-style.constant.d.ts.map +1 -1
  57. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts +1 -0
  58. package/bundles/types/wallet-buttons-express/services/apple-pay/interfaces/apple-pay-wallet-meta.interface.d.ts.map +1 -1
  59. package/bundles/types/widget/configuration.d.ts.map +1 -1
  60. package/bundles/types/widget/html-multi-widget.d.ts.map +1 -1
  61. package/bundles/types/widget/multi-widget.d.ts +11 -3
  62. package/bundles/types/widget/multi-widget.d.ts.map +1 -1
  63. package/bundles/widget.umd.js +633 -352
  64. package/bundles/widget.umd.js.d.ts +89 -31
  65. package/bundles/widget.umd.js.min.d.ts +89 -31
  66. package/bundles/widget.umd.min.js +1 -1
  67. package/docs/api-widget.md +38 -0
  68. package/docs/api-wrapper.md +3 -36
  69. package/docs/wallet-buttons-examples.md +4 -2
  70. package/docs/wallet-buttons-express.md +8 -1
  71. package/docs/wallet-buttons.md +3 -1
  72. package/docs/widget-examples.md +120 -28
  73. package/package.json +2 -2
  74. package/slate.md +124 -30
  75. package/bundles/types/helper/custom-error.d.ts +0 -8
  76. package/bundles/types/helper/custom-error.d.ts.map +0 -1
  77. package/bundles/types/wallet-buttons/helpers/apple-pay.helper.d.ts +0 -3
  78. package/bundles/types/wallet-buttons/helpers/apple-pay.helper.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { Observable, Subscriber } from 'rxjs';
1
+ import { Observable } from 'rxjs';
2
2
  import { MicroAgent } from '@newrelic/browser-agent/loaders/micro-agent';
3
3
 
4
4
  declare class ApiCharge {
@@ -117,7 +117,6 @@ declare class ApiBase {
117
117
  protected env: Env;
118
118
  auth: string;
119
119
  authType: API_AUTH_TYPE;
120
- private stoppedPooling;
121
120
  constructor(auth: string, authType?: API_AUTH_TYPE);
122
121
  /**
123
122
  * Current method can change environment. By default environment = sandbox.
@@ -129,9 +128,10 @@ declare class ApiBase {
129
128
  * @param {string} [alias] - Own domain alias
130
129
  */
131
130
  setEnv(env: string, alias?: string): ApiBase;
132
- longPollingObservable<Req extends object, Res>(method: 'GET' | 'POST', url: string, requestBody: Req, sessionId: string, reconnectInterval?: number): Observable<Res>;
133
- longPull(subscriber: Subscriber<any>, method: any, link: any, auth: any, requestBody: any, sessionId: any, reconnectInterval: any): void;
134
- destroyLongPolling(): void;
131
+ requestObservable<Req extends object, Res>(method: 'GET' | 'POST', url: string, requestBody: Req): Observable<Res>;
132
+ private makeRequest;
133
+ private onRequestLoad;
134
+ private onRequestError;
135
135
  setAuthType(): API_AUTH_TYPE;
136
136
  getClient(method: Extract<HttpRequestMethod, 'GET' | 'POST'>, link: string): {
137
137
  config: XMLHttpRequest;
@@ -145,7 +145,7 @@ declare class ApiBase {
145
145
  text: string;
146
146
  status: number;
147
147
  }, cb: any, errorCb: any): any;
148
- parserPromise<Res>({ text, status }: {
148
+ parserPromise<Res>({ text, status, }: {
149
149
  text: string;
150
150
  status: number;
151
151
  }): Promise<Res>;
@@ -159,15 +159,6 @@ declare class ApiBase {
159
159
  };
160
160
  }
161
161
 
162
- interface BrowserDetails {
163
- name: string;
164
- java_enabled: string;
165
- language: string;
166
- screen_height: string;
167
- screen_width: string;
168
- time_zone: string;
169
- color_depth: string;
170
- }
171
162
  /**
172
163
  * Interface for browser details response.
173
164
  * @interface BrowserDetails
@@ -180,6 +171,15 @@ interface BrowserDetails {
180
171
  * @param {string} [time_zone]
181
172
  * @param {string} [color_depth]
182
173
  * */
174
+ interface BrowserDetails {
175
+ name: string;
176
+ java_enabled: string;
177
+ language: string;
178
+ screen_height: string;
179
+ screen_width: string;
180
+ time_zone: string;
181
+ color_depth: string;
182
+ }
183
183
  /**
184
184
  * Class Api include method for working with paydock api
185
185
  * @constructor
@@ -453,6 +453,7 @@ interface IParams extends IStyles$1, ITexts, ICommonParams {
453
453
  language?: string;
454
454
  vault_display_token?: string;
455
455
  sdk_origin?: boolean;
456
+ hide_ui_errors?: boolean;
456
457
  }
457
458
  interface ICountryPhoneMask {
458
459
  preferred_countries?: string[];
@@ -591,6 +592,7 @@ declare enum WALLET_TYPE {
591
592
  }
592
593
  interface ApplePayStyles {
593
594
  button_type?: 'add-money' | 'book' | 'buy' | 'check-out' | 'continue' | 'contribute' | 'donate' | 'order' | 'pay' | 'plain' | 'reload' | 'rent' | 'set-up' | 'subscribe' | 'support' | 'tip' | 'top-up';
595
+ button_style?: 'black' | 'white' | 'white-outline';
594
596
  }
595
597
  interface GooglePayStyles {
596
598
  button_type?: 'book' | 'buy' | 'checkout' | 'donate' | 'order' | 'pay' | 'plain' | 'subscribe';
@@ -631,6 +633,7 @@ interface IWalletMeta {
631
633
  style?: WalletStyles;
632
634
  wallets?: WALLET_TYPE[];
633
635
  client_id?: string;
636
+ apple_pay_capabilities?: Array<'credentials_available' | 'credentials_status_unknown' | 'credentials_unavailable'>;
634
637
  }
635
638
 
636
639
  declare class Link {
@@ -940,6 +943,45 @@ interface IElementStyleTitleDescription {
940
943
  margin?: string;
941
944
  }
942
945
 
946
+ declare const ERROR_CATEGORY: {
947
+ readonly CONFIGURATION: "configuration";
948
+ readonly IDENTITY: "identity_access_management";
949
+ readonly INTERNAL: "internal";
950
+ readonly PROCESS: "process";
951
+ readonly RESOURCE: "resource";
952
+ readonly VALIDATION: "validation";
953
+ };
954
+ type ErrorCategory = (typeof ERROR_CATEGORY)[keyof typeof ERROR_CATEGORY];
955
+ declare const ERROR_CAUSE: {
956
+ readonly ABORTED: "aborted";
957
+ readonly ACCESS_FORBIDDEN: "access_forbidden";
958
+ readonly ALREADY_EXISTS: "already_exists";
959
+ readonly CANCELED: "canceled";
960
+ readonly INVALID_CONFIGURATION: "invalid_configuration";
961
+ readonly INVALID_INPUT: "invalid_input";
962
+ readonly NOT_FOUND: "not_found";
963
+ readonly NOT_IMPLEMENTED: "not_implemented";
964
+ readonly RATE_LIMITED: "rate_limited";
965
+ readonly SERVER_BUSY: "server_busy";
966
+ readonly SERVICE_UNREACHABLE: "service_unreachable";
967
+ readonly UNAUTHORIZED: "unauthorized";
968
+ readonly UNKNOWN: "unknown_error";
969
+ readonly UNPROCESSABLE_ENTITY: "unprocessable_entity";
970
+ };
971
+ type ErrorCause = (typeof ERROR_CAUSE)[keyof typeof ERROR_CAUSE];
972
+ interface ErrorDetails {
973
+ cause: ErrorCause;
974
+ contextId: string;
975
+ message: string;
976
+ timestamp: string;
977
+ }
978
+ interface IEventError {
979
+ cause: ErrorCause;
980
+ category: ErrorCategory;
981
+ retryable: boolean;
982
+ details: ErrorDetails;
983
+ }
984
+
943
985
  /**
944
986
  *
945
987
  * Class MultiWidget include method for for creating iframe url
@@ -1133,6 +1175,13 @@ declare class MultiWidget {
1133
1175
  * @param {boolean} validateCardNumberInput - [validateCardNumberInput=false] - using this param you allow validation for card number input on supported card types
1134
1176
  */
1135
1177
  setSupportedCardIcons(elements: string[], validateCardNumberInput?: boolean): void;
1178
+ /**
1179
+ * Current method can hide prevent the widget from showing the error messages
1180
+ *
1181
+ * @example
1182
+ * widget.hideUiErrors('id');
1183
+ */
1184
+ hideUiErrors(): void;
1136
1185
  /**
1137
1186
  * Current method can change environment. By default environment = sandbox.
1138
1187
  * Also we can change domain alias for this environment. By default domain_alias = paydock.com
@@ -1164,7 +1213,7 @@ declare class MultiWidget {
1164
1213
  */
1165
1214
  setLanguage(code: any): void;
1166
1215
  getLink(): Link;
1167
- protected handleErrorEvent(err: IErrorEvent): void;
1216
+ protected handleErrorEvent(event: EventTypes, error: IEventError, purpose: PURPOSE): void;
1168
1217
  }
1169
1218
 
1170
1219
  interface ITriggerData {
@@ -1660,6 +1709,7 @@ interface IEventData$1 {
1660
1709
  widget_id: string;
1661
1710
  data?: any;
1662
1711
  ref_id?: string;
1712
+ error?: IEventError;
1663
1713
  }
1664
1714
  declare const EVENT$1: {
1665
1715
  readonly AFTER_LOAD: "afterLoad";
@@ -1694,13 +1744,6 @@ declare const EVENT$1: {
1694
1744
  readonly DISPATCH_ERROR: "dispatchError";
1695
1745
  };
1696
1746
  type EventTypes = typeof EVENT$1[keyof typeof EVENT$1];
1697
- interface IErrorEvent {
1698
- event: EventTypes;
1699
- status?: number;
1700
- data: {
1701
- _message: string;
1702
- } & Record<string, any>;
1703
- }
1704
1747
  interface Listener {
1705
1748
  event: string;
1706
1749
  listener: (event: any) => void;
@@ -2732,7 +2775,7 @@ interface GetConfigResponse {
2732
2775
  declare class ApiCheckoutInternal {
2733
2776
  protected api: ApiInternal;
2734
2777
  constructor(api: ApiInternal);
2735
- instructions(session_id: string): Observable<object>;
2778
+ instructions(): Observable<object>;
2736
2779
  private getInstructionLink;
2737
2780
  callback(payload: Object): Promise<Object>;
2738
2781
  status(id: string): Promise<Object>;
@@ -3347,7 +3390,7 @@ declare class WalletButtons {
3347
3390
  private setupAuthTokensChangedCallback;
3348
3391
  }
3349
3392
 
3350
- type Instruction = new (selector: string, formSelector: string, api: ApiInternal) => InstructionHandler & InstructionDestroyable & InstructionDecorated;
3393
+ type Instruction = new (selector: string, formSelector: string, api: ApiInternal, checkoutWidget: Checkout) => InstructionHandler & InstructionDestroyable & InstructionDecorated;
3351
3394
  interface InstructionHandleable {
3352
3395
  handle(payload: object, eventEmitter: EventEmitter): void;
3353
3396
  }
@@ -3361,7 +3404,8 @@ declare abstract class InstructionHandler implements InstructionHandleable, Inst
3361
3404
  selector: string;
3362
3405
  formSelector: string;
3363
3406
  api: ApiInternal;
3364
- constructor(selector: string, formSelector: string, api: ApiInternal);
3407
+ protected checkoutWidget?: Checkout;
3408
+ constructor(selector: string, formSelector: string, api: ApiInternal, checkoutWidget?: Checkout);
3365
3409
  instruction: string;
3366
3410
  abstract handle(context: object, eventEmitter?: any): void;
3367
3411
  abstract destroy(): void;
@@ -3379,9 +3423,6 @@ interface IntentTokenPayload {
3379
3423
  version: number;
3380
3424
  env_alias: string;
3381
3425
  }
3382
- declare class InstructionDebugger {
3383
- constructor(selector: string, formSelector: string, version: number, instructionName: string, context: object, token?: string);
3384
- }
3385
3426
  /**
3386
3427
  * Class CheckoutButton transform usual button into checkout
3387
3428
  *
@@ -3401,15 +3442,26 @@ declare class Checkout {
3401
3442
  protected container: Container;
3402
3443
  protected intentTokenPayload: IntentTokenPayload;
3403
3444
  protected api: ApiInternal;
3445
+ protected checkoutApi: ApiCheckoutInternal;
3404
3446
  protected instructions: InstructionModule;
3405
3447
  protected currentInstruction: InstructionDestroyable & InstructionHandleable;
3448
+ private timeoutTimer;
3449
+ private requestInFlight;
3450
+ private inTimeoutRange;
3451
+ private checkoutFinished;
3406
3452
  constructor(formSelector: string, intentToken: string, debug?: boolean);
3453
+ fetchInstruction(): void;
3454
+ finaliseCheckout(): void;
3455
+ private setupTimeoutTimer;
3407
3456
  private extractIntentTokenPayload;
3408
3457
  private ready;
3409
3458
  private initContractVersion;
3410
- private listenInstructions;
3459
+ private isTimeoutInstruction;
3460
+ private handleInstruction;
3461
+ private handleTimeoutInstructions;
3462
+ private getInstructionFromResponse;
3463
+ private extractInstructionPayloadFromResponse;
3411
3464
  private setEnv;
3412
- private createWidgetStructure;
3413
3465
  /**
3414
3466
  * If the payment was successful, the function passed as parameter will be called.
3415
3467
  * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
@@ -3440,8 +3492,12 @@ declare class Checkout {
3440
3492
  * });
3441
3493
  */
3442
3494
  onPaymentExpired(handler: (data: IEventData$1) => void): () => void;
3495
+ createWidgetStructure(): void;
3443
3496
  private setStyles;
3444
3497
  }
3498
+ declare class InstructionDebugger {
3499
+ constructor(selector: string, formSelector: string, version: number, instructionName: string, context: object, token?: string);
3500
+ }
3445
3501
 
3446
3502
  declare enum EVENT {
3447
3503
  UNAVAILABLE = "unavailable",
@@ -3721,6 +3777,7 @@ interface ApplePayWalletMeta extends BaseWalletMeta {
3721
3777
  supported_networks?: Array<'visa' | 'masterCard' | 'amex' | 'chinaUnionPay' | 'discover' | 'interac' | 'jcb' | 'privateLabel'>;
3722
3778
  required_billing_contact_fields?: Array<'email' | 'name' | 'phone' | 'postalAddress'>;
3723
3779
  required_shipping_contact_fields?: Array<'email' | 'phone'>;
3780
+ apple_pay_capabilities?: Array<'credentials_available' | 'credentials_status_unknown' | 'credentials_unavailable'>;
3724
3781
  supported_countries?: string[];
3725
3782
  style?: {
3726
3783
  button_type?: ApplePayButtonType;
@@ -3772,6 +3829,7 @@ declare class ApplePayWalletButtonExpress extends BaseWalletButton<ApplePayWalle
3772
3829
  private onValidateMerchant;
3773
3830
  private getMerchantSession;
3774
3831
  private onPaymentAuthorized;
3832
+ private formatCapabilities;
3775
3833
  private onCancelPayment;
3776
3834
  }
3777
3835
 
@@ -1,5 +1,5 @@
1
1
  import { Env } from '../configs/env';
2
- import { Observable, Subscriber } from 'rxjs';
2
+ import { Observable } from 'rxjs';
3
3
  import { type HttpRequestMethod } from '../shared/http';
4
4
  import { type ReportErrorFn, type ReportEventFn } from '../shared/services/instrumentation/repositories';
5
5
  export declare enum API_AUTH_TYPE {
@@ -10,7 +10,6 @@ export declare class ApiBase {
10
10
  protected env: Env;
11
11
  auth: string;
12
12
  authType: API_AUTH_TYPE;
13
- private stoppedPooling;
14
13
  constructor(auth: string, authType?: API_AUTH_TYPE);
15
14
  /**
16
15
  * Current method can change environment. By default environment = sandbox.
@@ -22,9 +21,10 @@ export declare class ApiBase {
22
21
  * @param {string} [alias] - Own domain alias
23
22
  */
24
23
  setEnv(env: string, alias?: string): ApiBase;
25
- longPollingObservable<Req extends object, Res>(method: 'GET' | 'POST', url: string, requestBody: Req, sessionId: string, reconnectInterval?: number): Observable<Res>;
26
- longPull(subscriber: Subscriber<any>, method: any, link: any, auth: any, requestBody: any, sessionId: any, reconnectInterval: any): void;
27
- destroyLongPolling(): void;
24
+ requestObservable<Req extends object, Res>(method: 'GET' | 'POST', url: string, requestBody: Req): Observable<Res>;
25
+ private makeRequest;
26
+ private onRequestLoad;
27
+ private onRequestError;
28
28
  setAuthType(): API_AUTH_TYPE;
29
29
  getClient(method: Extract<HttpRequestMethod, 'GET' | 'POST'>, link: string): {
30
30
  config: XMLHttpRequest;
@@ -38,7 +38,7 @@ export declare class ApiBase {
38
38
  text: string;
39
39
  status: number;
40
40
  }, cb: any, errorCb: any): any;
41
- parserPromise<Res>({ text, status }: {
41
+ parserPromise<Res>({ text, status, }: {
42
42
  text: string;
43
43
  status: number;
44
44
  }): Promise<Res>;
@@ -1 +1 @@
1
- {"version":3,"file":"api-base.d.ts","sourceRoot":"","sources":["../../src/api/api-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAG9C,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE9C,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,aAAa,EAAmB,MAAM,iDAAiD,CAAC;AAG1H,oBAAY,aAAa;IACrB,UAAU,IAAI;IACd,KAAK,IAAI;CACZ;AAID,qBAAa,OAAO;IAChB,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,aAAa,CAAC;IAExB,OAAO,CAAC,cAAc,CAAS;gBAEnB,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,aAAa;IAMlD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO;IAM5C,qBAAqB,CAAC,GAAG,SAAS,MAAM,EAAE,GAAG,EAChD,MAAM,EAAE,KAAK,GAAG,MAAM,EACtB,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,GAAG,EAChB,SAAS,EAAE,MAAM,EACjB,iBAAiB,GAAE,MAAa,GACjC,UAAU,CAAC,GA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AAC,GAAG,CAAC,CAAC;KACrC;IA+BD,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,EAAE,KAAA,EAAE,OAAO,KAAA;IAkBtE,aAAa,CAAC,GAAG,EAAE,EACf,IAAI,EACJ,MAAM,GACT,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,GAAG,CAAC;IAkBlD,WAAW,EAAE,aAAa,CAExB;IAEF,WAAW,EAAE,aAAa,CAExB;IAEF,SAAS,CAAC,aAAa,CACnB,MAAM,EAAE,OAAO,CAAC,iBAAiB,EAAE,KAAK,GAAG,MAAM,CAAC,EAClD,IAAI,EAAE,MAAM;IAoBhB,SAAS,KAAK,GAAG;;;;MAMhB;CACJ"}
@@ -1,9 +1,9 @@
1
1
  import { ApiInternal } from './api-internal';
2
- import { Observable } from "rxjs";
2
+ import { Observable } from 'rxjs';
3
3
  export declare class ApiCheckoutInternal {
4
4
  protected api: ApiInternal;
5
5
  constructor(api: ApiInternal);
6
- instructions(session_id: string): Observable<object>;
6
+ instructions(): Observable<object>;
7
7
  private getInstructionLink;
8
8
  callback(payload: Object): Promise<Object>;
9
9
  status(id: string): Promise<Object>;
@@ -1 +1 @@
1
- {"version":3,"file":"api-checkout-internal.d.ts","sourceRoot":"","sources":["../../src/api/api-checkout-internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AAMhC,qBAAa,mBAAmB;IAChB,SAAS,CAAC,GAAG,EAAE,WAAW;gBAAhB,GAAG,EAAE,WAAW;IAG/B,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAW3D,OAAO,CAAC,kBAAkB,CAExB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B,SAAS,EAAE;YACP,MAAM,EAAE,MAAM,CAAC;YACf,MAAM,EAAE,MAAM,CAAC;SAClB,CAAC;QACF,MAAM,EAAE,MAAM,CAAC;KAClB,CAAC;CACL;AAED,MAAM,WAAW,6BAA6B;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,aAAa,EAAE,MAAM,CAAC;QACtB,mBAAmB,EAAE,OAAO,CAAC;QAC7B,YAAY,EAAE,OAAO,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,SAAS,EAAE,MAAM,CAAC;QAClB,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;QACtB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACL"}
@@ -1,14 +1,5 @@
1
1
  import { ApiCharge } from './api-charge';
2
2
  import { ApiBase } from './api-base';
3
- export interface BrowserDetails {
4
- name: string;
5
- java_enabled: string;
6
- language: string;
7
- screen_height: string;
8
- screen_width: string;
9
- time_zone: string;
10
- color_depth: string;
11
- }
12
3
  /**
13
4
  * Interface for browser details response.
14
5
  * @interface BrowserDetails
@@ -21,6 +12,15 @@ export interface BrowserDetails {
21
12
  * @param {string} [time_zone]
22
13
  * @param {string} [color_depth]
23
14
  * */
15
+ export interface BrowserDetails {
16
+ name: string;
17
+ java_enabled: string;
18
+ language: string;
19
+ screen_height: string;
20
+ screen_width: string;
21
+ time_zone: string;
22
+ color_depth: string;
23
+ }
24
24
  /**
25
25
  * Class Api include method for working with paydock api
26
26
  * @constructor
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;;KAWK;AAEL;;;;;;;;;IASI;AACJ,cAAM,GAAI,SAAQ,OAAO;IACrB,SAAS,EAAE,MAAM,CAAC;IAElB,kBAAkB,aACN,SAAS,EAAE,MAAM;IAK7B;;;;;;;OAOG;IACI,iBAAiB,IAAI,cAAc;IAY1C;;;;;OAKG;IACH,MAAM;CAGT;AAED,OAAO,EAAE,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC;;;;;;;;;;;KAWK;AACL,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;IASI;AACJ,cAAM,GAAI,SAAQ,OAAO;IACrB,SAAS,EAAE,MAAM,CAAC;IAElB,kBAAkB,aACN,SAAS,EAAE,MAAM;IAK7B;;;;;;;OAOG;IACI,iBAAiB,IAAI,cAAc;IAY1C;;;;;OAKG;IACH,MAAM;CAGT;AAED,OAAO,EAAE,GAAG,EAAE,CAAC"}
@@ -1,9 +1,10 @@
1
1
  import { Container } from '../components/container';
2
2
  import { EventEmitter } from '../helper/event-emitter';
3
- import { InstructionModule } from "./helpers/instruction-module";
4
- import { ApiInternal } from "../api/api-internal";
5
- import { InstructionDestroyable, InstructionHandleable } from "./helpers/instruction-handler";
3
+ import { InstructionModule } from './helpers/instruction-module';
4
+ import { ApiInternal } from '../api/api-internal';
5
+ import { InstructionDestroyable, InstructionHandleable } from './helpers/instruction-handler';
6
6
  import { IEventData } from '../components/iframe-event';
7
+ import { ApiCheckoutInternal } from '../api/api-checkout-internal';
7
8
  export declare const EVENT: {
8
9
  PAYMENT_SUCCESSFUL: string;
9
10
  PAYMENT_FAILURE: string;
@@ -19,8 +20,11 @@ export declare const SELECTORS: {
19
20
  LIST: string;
20
21
  WIDGETS: string;
21
22
  };
22
- export declare class InstructionDebugger {
23
- constructor(selector: string, formSelector: string, version: number, instructionName: string, context: object, token?: string);
23
+ export interface InstructionResponse {
24
+ event?: string;
25
+ instruction_token?: string;
26
+ next_instruction?: boolean;
27
+ [key: string]: any;
24
28
  }
25
29
  /**
26
30
  * Class CheckoutButton transform usual button into checkout
@@ -41,15 +45,26 @@ export declare class Checkout {
41
45
  protected container: Container;
42
46
  protected intentTokenPayload: IntentTokenPayload;
43
47
  protected api: ApiInternal;
48
+ protected checkoutApi: ApiCheckoutInternal;
44
49
  protected instructions: InstructionModule;
45
50
  protected currentInstruction: InstructionDestroyable & InstructionHandleable;
51
+ private timeoutTimer;
52
+ private requestInFlight;
53
+ private inTimeoutRange;
54
+ private checkoutFinished;
46
55
  constructor(formSelector: string, intentToken: string, debug?: boolean);
56
+ fetchInstruction(): void;
57
+ finaliseCheckout(): void;
58
+ private setupTimeoutTimer;
47
59
  private extractIntentTokenPayload;
48
60
  private ready;
49
61
  private initContractVersion;
50
- private listenInstructions;
62
+ private isTimeoutInstruction;
63
+ private handleInstruction;
64
+ private handleTimeoutInstructions;
65
+ private getInstructionFromResponse;
66
+ private extractInstructionPayloadFromResponse;
51
67
  private setEnv;
52
- private createWidgetStructure;
53
68
  /**
54
69
  * If the payment was successful, the function passed as parameter will be called.
55
70
  * Important: Do not perform thread blocking operations in callback such as window.alert() calls.
@@ -80,7 +95,11 @@ export declare class Checkout {
80
95
  * });
81
96
  */
82
97
  onPaymentExpired(handler: (data: IEventData) => void): () => void;
98
+ createWidgetStructure(): void;
83
99
  private setStyles;
84
100
  }
101
+ export declare class InstructionDebugger {
102
+ constructor(selector: string, formSelector: string, version: number, instructionName: string, context: object, token?: string);
103
+ }
85
104
  export {};
86
105
  //# sourceMappingURL=checkout.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"checkout.d.ts","sourceRoot":"","sources":["../../src/checkout/checkout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAiB,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGjE,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAC9F,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAKxD,eAAO,MAAM,KAAK;;;;CAIjB,CAAC;AACF,UAAU,kBAAkB;IACxB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,SAAS;;;CAGrB,CAAA;AAWD,qBAAa,mBAAmB;gBAChB,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,O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C7E,OAAO,CAAC,YAAY,CAAiB;IACrC,OAAO,CAAC,eAAe,CAAS;IAChC,OAAO,CAAC,cAAc,CAAS;IAC/B,OAAO,CAAC,gBAAgB,CAAS;gBAGnB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,EACnB,KAAK,GAAE,OAAe;IA0B7B,gBAAgB;IA4BhB,gBAAgB;IAOvB,OAAO,CAAC,iBAAiB;IAUzB,OAAO,CAAC,yBAAyB;IAsBjC,OAAO,CAAC,KAAK;IAqBb,OAAO,CAAC,mBAAmB;IAU3B,OAAO,CAAC,oBAAoB;IAO5B,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,yBAAyB;IAOjC,OAAO,CAAC,0BAA0B;IAgBlC,OAAO,CAAC,qCAAqC;IAQ7C,OAAO,CAAC,MAAM;IAId;;;;;;;;OAQG;IACI,mBAAmB,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI;IAI9D;;;;;;;;OAQG;IACI,gBAAgB,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI;IAI3D;;;;;;;;OAQG;IACI,gBAAgB,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI;IAIpD,qBAAqB;IAuB5B,OAAO,CAAC,SAAS;CAOpB;AAED,qBAAa,mBAAmB;gBAExB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,OAAO,EAAE,MAAM,EACf,eAAe,EAAE,MAAM,EACvB,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,MAAe;CAc7B"}
@@ -1,6 +1,7 @@
1
- import { ApiInternal } from "../../api/api-internal";
2
- import { EventEmitter } from "../../helper/event-emitter";
3
- export type Instruction = new (selector: string, formSelector: string, api: ApiInternal) => InstructionHandler & InstructionDestroyable & InstructionDecorated;
1
+ import type { ApiInternal } from '../../api/api-internal';
2
+ import type { EventEmitter } from '../../helper/event-emitter';
3
+ import type { Checkout } from '../checkout';
4
+ export type Instruction = new (selector: string, formSelector: string, api: ApiInternal, checkoutWidget: Checkout) => InstructionHandler & InstructionDestroyable & InstructionDecorated;
4
5
  export interface InstructionHandleable {
5
6
  handle(payload: object, eventEmitter: EventEmitter): void;
6
7
  }
@@ -14,7 +15,8 @@ export declare abstract class InstructionHandler implements InstructionHandleabl
14
15
  selector: string;
15
16
  formSelector: string;
16
17
  api: ApiInternal;
17
- constructor(selector: string, formSelector: string, api: ApiInternal);
18
+ protected checkoutWidget?: Checkout;
19
+ constructor(selector: string, formSelector: string, api: ApiInternal, checkoutWidget?: Checkout);
18
20
  instruction: string;
19
21
  abstract handle(context: object, eventEmitter?: any): void;
20
22
  abstract destroy(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"instruction-handler.d.ts","sourceRoot":"","sources":["../../../src/checkout/helpers/instruction-handler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,MAAM,WAAW,GAAG,KAAK,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,KAAK,kBAAkB,GAAG,sBAAsB,GAAG,oBAAoB,CAAA;AAE9J,MAAM,WAAW,qBAAqB;IAClC,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI,CAAC;CAC7D;AAED,MAAM,WAAW,oBAAoB;IACjC,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,sBAAsB;IACnC,OAAO,IAAI,IAAI,CAAC;CACnB;AAED,8BAAsB,kBAAmB,YAAW,qBAAqB,EAAE,sBAAsB,EAAE,oBAAoB;IAChG,QAAQ,EAAE,MAAM;IAAS,YAAY,EAAE,MAAM;IAAS,GAAG,EAAE,WAAW;gBAAtE,QAAQ,EAAE,MAAM,EAAS,YAAY,EAAE,MAAM,EAAS,G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M,EAAE,YAAY,CAAC,KAAA,GAAG,IAAI;aAC5C,OAAO,IAAI,IAAI;IAExB,MAAM,CAAC,iBAAiB,EAAE,MAAM,GAAG,MAAM;CASnD"}
@@ -1 +1 @@
1
- {"version":3,"file":"instruction.afterpay_checkout_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.afterpay_checkout_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAIvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AAgBpG,qBACa,mCAAoC,SAAQ,kBAAkB;IACzE,SAAS,CAAC,MAAM,EAAE,sBAAsB,CAAC;IAElC,MAAM,CAAC,OAAO,EAAE;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAA;SAAE,CAAC;QAC3C,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACnC,GAAG,IAAI;IAgED,OAAO;IAId,OAAO,CAAC,qBAAqB;CA8B9B"}
1
+ {"version":3,"file":"instruction.afterpay_checkout_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.afterpay_checkout_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAIvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AAgBpG,qBACa,mCAAoC,SAAQ,kBAAkB;IACzE,SAAS,CAAC,MAAM,EAAE,sBAAsB,CAAC;IAElC,MAAM,CAAC,OAAO,EAAE;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAA;SAAE,CAAC;QAC3C,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACnC,GAAG,IAAI;IAkED,OAAO;IAId,OAAO,CAAC,qBAAqB;CA8B9B"}
@@ -1 +1 @@
1
- {"version":3,"file":"instruction.apple_pay_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.apple_pay_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAUvE,qBACa,2BAA4B,SAAQ,kBAAkB;IACjE,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IAEf,MAAM,CAAC,OAAO,EAAE;QACrB,OAAO,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAC;YAAC,YAAY,EAAE,MAAM,CAAA;SAAE,CAAC;QACjE,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACnC,GAAG,IAAI;IA6DD,OAAO;IAId,OAAO,CAAC,SAAS;CAWlB"}
1
+ {"version":3,"file":"instruction.apple_pay_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.apple_pay_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAKvE,qBACa,2BAA4B,SAAQ,kBAAkB;IACjE,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IAEf,MAAM,CAAC,OAAO,EAAE;QACrB,OAAO,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAC;YAAC,YAAY,EAAE,MAAM,CAAA;SAAE,CAAC;QACjE,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACnC,GAAG,IAAI;IAmED,OAAO;IAId,OAAO,CAAC,SAAS;CAMlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"instruction.canvas_3ds.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.canvas_3ds.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAKvE,qBACa,wBAAyB,SAAQ,kBAAkB;IACvD,MAAM,CAAC,OAAO,EAAE;QACrB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,OAAO,EAAE;YACP,UAAU,EAAE,MAAM,CAAC;SACpB,CAAC;KACH,GAAG,IAAI;IA8DD,OAAO;CAGf"}
1
+ {"version":3,"file":"instruction.canvas_3ds.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.canvas_3ds.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAKvE,qBACa,wBAAyB,SAAQ,kBAAkB;IACvD,MAAM,CAAC,OAAO,EAAE;QACrB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,OAAO,EAAE;YACP,UAAU,EAAE,MAAM,CAAC;SACpB,CAAC;KACH,GAAG,IAAI;IAoED,OAAO;CAGf"}
@@ -1 +1 @@
1
- {"version":3,"file":"instruction.card_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.card_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAW,MAAM,iBAAiB,CAAC;AAOtD,qBACa,uBAAwB,SAAQ,kBAAkB;IAC7D,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC;IAC7B,OAAO,CAAC,SAAS,CAAM;IAEhB,MAAM,CAAC,OAAO,EAAE;QACrB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,OAAO,EAAE;YACP,aAAa,CAAC,EAAE;gBAAE,IAAI,CAAC,EAAE,MAAM,CAAA;aAAE,CAAC;YAClC,WAAW,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAA;aAAE,CAAC;SACnE,CAAC;KACH,GAAG,IAAI;IAkFD,OAAO;CAIf"}
1
+ {"version":3,"file":"instruction.card_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.card_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,EAAE,UAAU,EAAW,MAAM,iBAAiB,CAAC;AAOtD,qBACa,uBAAwB,SAAQ,kBAAkB;IAC7D,SAAS,CAAC,MAAM,EAAE,UAAU,CAAC;IAC7B,OAAO,CAAC,SAAS,CAAM;IAEhB,MAAM,CAAC,OAAO,EAAE;QACrB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,OAAO,EAAE;YACP,aAAa,CAAC,EAAE;gBAAE,IAAI,CAAC,EAAE,MAAM,CAAA;aAAE,CAAC;YAClC,WAAW,EAAE;gBAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAA;aAAE,CAAC;SACnE,CAAC;KACH,GAAG,IAAI;IAsFD,OAAO;CAIf"}
@@ -3,6 +3,7 @@ import { InstructionHandler } from "../../helpers/instruction-handler";
3
3
  interface InterfaceContext {
4
4
  instruction_token: string;
5
5
  payload: IntentPayload;
6
+ next_instruction?: boolean;
6
7
  }
7
8
  interface IntentPayload {
8
9
  status: string;
@@ -1 +1 @@
1
- {"version":3,"file":"instruction.disable_payment_method_event.emit.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.disable_payment_method_event.emit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAIvE,UAAU,gBAAgB;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,aAAa,CAAC;CACxB;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBACa,+BAAgC,SAAQ,kBAAkB;IAErE,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI;IAW5D,OAAO;CACf"}
1
+ {"version":3,"file":"instruction.disable_payment_method_event.emit.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.disable_payment_method_event.emit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAIvE,UAAU,gBAAgB;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,aAAa,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBACa,+BAAgC,SAAQ,kBAAkB;IAErE,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI;IAe5D,OAAO;CACf"}
@@ -2,6 +2,7 @@ import { InstructionHandler } from "../../helpers/instruction-handler";
2
2
  interface InterfaceContext {
3
3
  instruction_token: string;
4
4
  payload: IntentPayload;
5
+ next_instruction?: boolean;
5
6
  }
6
7
  interface IntentPayload {
7
8
  title: string;
@@ -18,7 +19,6 @@ interface IntentPayload {
18
19
  };
19
20
  }
20
21
  export declare class InstructionGenericShowMessage extends InstructionHandler {
21
- private timeoutId;
22
22
  handle(context: InterfaceContext): void;
23
23
  destroy(): void;
24
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"instruction.generic.show_message.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.generic.show_message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAOvE,UAAU,gBAAgB;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,aAAa,CAAA;CACzB;AAED,UAAU,aAAa;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW,CAAC;IACxC,aAAa,CAAC,EAAE;QAAE,IAAI,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAA;CAC3F;AAED,qBACa,6BAA8B,SAAQ,kBAAkB;IACjE,OAAO,CAAC,SAAS,CAAM;IAEvB,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IAwBhC,OAAO;CAMjB"}
1
+ {"version":3,"file":"instruction.generic.show_message.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.generic.show_message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAMvE,UAAU,gBAAgB;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,aAAa,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,UAAU,aAAa;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,WAAW,CAAC;IACxC,aAAa,CAAC,EAAE;QAAE,IAAI,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,SAAS,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAA;CAC3F;AAED,qBACa,6BAA8B,SAAQ,kBAAkB;IACjE,MAAM,CAAC,OAAO,EAAE,gBAAgB,GAAG,IAAI;IA0BhC,OAAO;CAKjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"instruction.google_pay_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.google_pay_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAUvE,qBACa,4BAA6B,SAAQ,kBAAkB;IAClE,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IAEf,MAAM,CAAC,OAAO,EAAE;QACrB,OAAO,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAC;YAAC,YAAY,EAAE,MAAM,CAAA;SAAE,CAAC;QACjE,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACnC,GAAG,IAAI;IA6DD,OAAO;IAId,OAAO,CAAC,SAAS;CAWlB"}
1
+ {"version":3,"file":"instruction.google_pay_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.google_pay_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAKvE,qBACa,4BAA6B,SAAQ,kBAAkB;IAClE,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IAEf,MAAM,CAAC,OAAO,EAAE;QACrB,OAAO,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAC;YAAC,YAAY,EAAE,MAAM,CAAA;SAAE,CAAC;QACjE,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACnC,GAAG,IAAI;IAmED,OAAO;IAId,OAAO,CAAC,SAAS;CAMlB"}
@@ -1 +1 @@
1
- {"version":3,"file":"instruction.merchant_event.emit.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.merchant_event.emit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGvE,UAAU,gBAAgB;IACxB,OAAO,EAAE,aAAa,CAAC;CACxB;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBACa,4BAA6B,SAAQ,kBAAkB;IAElE,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI;IAsB5D,OAAO;CACf"}
1
+ {"version":3,"file":"instruction.merchant_event.emit.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.merchant_event.emit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGvE,UAAU,gBAAgB;IACxB,OAAO,EAAE,aAAa,CAAC;CACxB;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,qBACa,4BAA6B,SAAQ,kBAAkB;IAElE,MAAM,CAAC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY,GAAG,IAAI;IAuB5D,OAAO;CACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"instruction.payment_methods.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.payment_methods.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAOvE,qBACa,4BAA6B,SAAQ,kBAAkB;IAClE,MAAM,CAAC,OAAO,EAAE;QACd,iBAAiB,EAAE,MAAM,CAAC;QAC1B,OAAO,EAAE;YACP,4BAA4B,EAAE,MAAM,EAAE,CAAC;YACvC,aAAa,CAAC,EAAE;gBACd,IAAI,CAAC,EAAE;oBACL,YAAY,CAAC,EAAE,MAAM,CAAC;oBACtB,YAAY,CAAC,EAAE,MAAM,CAAC;oBACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;iBAC3B,CAAC;aACH,CAAC;SACH,CAAC;KACH,GAAG,IAAI;IA0BD,OAAO;CACf"}
1
+ {"version":3,"file":"instruction.payment_methods.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.payment_methods.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAKvE,qBACa,4BAA6B,SAAQ,kBAAkB;IAClE,MAAM,CAAC,OAAO,EAAE;QACd,iBAAiB,EAAE,MAAM,CAAC;QAC1B,OAAO,EAAE;YACP,4BAA4B,EAAE,MAAM,EAAE,CAAC;YACvC,aAAa,CAAC,EAAE;gBACd,IAAI,CAAC,EAAE;oBACL,YAAY,CAAC,EAAE,MAAM,CAAC;oBACtB,YAAY,CAAC,EAAE,MAAM,CAAC;oBACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;iBAC3B,CAAC;aACH,CAAC;SACH,CAAC;KACH,GAAG,IAAI;IA2BD,OAAO;CACf"}
@@ -1 +1 @@
1
- {"version":3,"file":"instruction.paypal_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.paypal_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAOvE,qBACa,yBAA0B,SAAQ,kBAAkB;IAC/D,SAAS,CAAC,MAAM,EAAE,aAAa,CAAC;IAEzB,MAAM,CAAC,OAAO,EAAE;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAC;YAAC,YAAY,EAAE,MAAM,CAAA;SAAE,CAAC;QACjE,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACnC,GAAG,IAAI;IA6DR,OAAO,CAAC,SAAS;IAYV,OAAO;CAGf"}
1
+ {"version":3,"file":"instruction.paypal_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.paypal_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAGvE,qBACa,yBAA0B,SAAQ,kBAAkB;IAC/D,SAAS,CAAC,MAAM,EAAE,aAAa,CAAC;IAEzB,MAAM,CAAC,OAAO,EAAE;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAC;YAAC,YAAY,EAAE,MAAM,CAAA;SAAE,CAAC;QACjE,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACnC,GAAG,IAAI;IAmER,OAAO,CAAC,SAAS;IAOV,OAAO;CAGf"}
@@ -1 +1 @@
1
- {"version":3,"file":"instruction.zip_checkout_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.zip_checkout_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAmBvE,qBACa,8BAA+B,SAAQ,kBAAkB;IACpE,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IAEf,MAAM,CAAC,OAAO,EAAE;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAA;SAAE,CAAC;QAC3C,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACnC,GAAG,IAAI;IA+DD,OAAO;IAId,OAAO,CAAC,qBAAqB;CA+B9B"}
1
+ {"version":3,"file":"instruction.zip_checkout_form.show.d.ts","sourceRoot":"","sources":["../../../../src/checkout/instructions/v1/instruction.zip_checkout_form.show.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAmBvE,qBACa,8BAA+B,SAAQ,kBAAkB;IACpE,SAAS,CAAC,MAAM,EAAE,GAAG,CAAC;IAEf,MAAM,CAAC,OAAO,EAAE;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,GAAG,CAAA;SAAE,CAAC;QAC3C,iBAAiB,EAAE,MAAM,CAAC;QAC1B,aAAa,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACnC,GAAG,IAAI;IAiED,OAAO;IAId,OAAO,CAAC,qBAAqB;CA+B9B"}
@@ -1,3 +1,3 @@
1
- declare const _default: "\n<style>\n #standaloneWidget iframe[title=\"3d secure authentication\"],\n #standaloneWidget .threeDSecure-iframe {\n height: 420px;\n }\n #standaloneWidget iframe, #list iframe {\n display: block;\n max-width: 640px;\n min-width: 320px;\n width: 100%;\n border-width: 0;\n }\n .spinner-wrapper {\n position: absolute;\n width: calc(100% + 1px);\n height: calc(100% + 1px);\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n }\n \n .spinner-wrapper svg {\n position: absolute;\n\n height: 50px;\n width: 50px;\n z-index: 1000;\n }\n \n .spinner-wrapper .background {\n margin: 0 !important;\n background: #f9f9f9;\n color: #f9f9f9;\n word-break: break-all;\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n }\n \n .spinner-wrapper--hidden {\n display: none;\n }\n #standaloneWidget .paypal-buttons {\n padding-bottom: 12px;\n right: 40px;\n max-width: 290px;\n }\n #standaloneWidget #gpay-button-online-api-id {\n max-width: 311px;\n margin-bottom: 11px;\n right: 11px;\n }\n #standaloneWidget .paydock-apple-container {\n max-width: 300px;\n margin-right: 10px;\n margin-bottom: 10px\n }\n</style>\n<div id=\"spinner\" class=\"spinner-wrapper spinner-wrapper--hidden\">\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><radialGradient id='a5' cx='.66' fx='.66' cy='.3125' fy='.3125' gradientTransform='scale(1.5)'><stop offset='0' stop-color='#191919'></stop><stop offset='.3' stop-color='#191919' stop-opacity='.9'></stop><stop offset='.6' stop-color='#191919' stop-opacity='.6'></stop><stop offset='.8' stop-color='#191919' stop-opacity='.3'></stop><stop offset='1' stop-color='#191919' stop-opacity='0'></stop></radialGradient><circle transform-origin='center' fill='none' stroke='url(#a5)' stroke-width='30' stroke-linecap='round' stroke-dasharray='200 1000' stroke-dashoffset='0' cx='100' cy='100' r='70'><animateTransform type='rotate' attributeName='transform' calcMode='spline' dur='1' values='360;0' keyTimes='0;1' keySplines='0 0 1 1' repeatCount='indefinite'></animateTransform></circle><circle transform-origin='center' fill='none' opacity='.2' stroke='#191919' stroke-width='30' stroke-linecap='round' cx='100' cy='100' r='70'></circle></svg>\n <pre class=\"background\"></pre>\n</div>\n";
1
+ declare const _default: "\n<style>\n #standaloneWidget iframe[title=\"3d secure authentication\"],\n #standaloneWidget .threeDSecure-iframe {\n height: 420px;\n }\n #standaloneWidget iframe, #list iframe {\n display: block;\n max-width: 640px;\n min-width: 320px;\n width: 100%;\n border-width: 0;\n }\n .spinner-wrapper {\n position: absolute;\n width: calc(100% + 1px);\n height: calc(100% + 1px);\n top: 0;\n left: 0;\n display: flex;\n justify-content: center;\n align-items: center;\n z-index: 999;\n }\n \n .spinner-wrapper svg {\n position: absolute;\n\n height: 50px;\n width: 50px;\n z-index: 1000;\n }\n \n .spinner-wrapper .background {\n margin: 0 !important;\n background: #f9f9f9;\n color: #f9f9f9;\n word-break: break-all;\n white-space: pre-wrap;\n width: 100%;\n height: 100%;\n }\n \n .spinner-wrapper--hidden {\n display: none;\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget button {\n width: 100% !important;\n }\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget .paypal-buttons {\n margin: 0 10px 10px 10px;\n }\n }\n @media screen and (min-width: 451px) {\n #standaloneWidget .paypal-buttons {\n padding-bottom: 12px;\n right: 40px;\n max-width: 290px;\n }\n }\n @media screen and (min-width: 451px) {\n #standaloneWidget #gpay-button-online-api-id {\n max-width: 311px;\n margin-bottom: 11px;\n right: 11px;\n }\n }\n @media screen and (max-width: 450px) {\n #standaloneWidget .gpay-card-info-container-fill {\n margin: 0 10px 5px 10px;\n }\n }\n \n apple-pay-button {\n padding: 0 10px 20px;\n max-width: 320px;\n }\n \n @media screen and (max-width: 450px) {\n apple-pay-button {\n max-width: 100%;\n }\n }\n</style>\n<div id=\"spinner\" class=\"spinner-wrapper spinner-wrapper--hidden\">\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><radialGradient id='a5' cx='.66' fx='.66' cy='.3125' fy='.3125' gradientTransform='scale(1.5)'><stop offset='0' stop-color='#191919'></stop><stop offset='.3' stop-color='#191919' stop-opacity='.9'></stop><stop offset='.6' stop-color='#191919' stop-opacity='.6'></stop><stop offset='.8' stop-color='#191919' stop-opacity='.3'></stop><stop offset='1' stop-color='#191919' stop-opacity='0'></stop></radialGradient><circle transform-origin='center' fill='none' stroke='url(#a5)' stroke-width='30' stroke-linecap='round' stroke-dasharray='200 1000' stroke-dashoffset='0' cx='100' cy='100' r='70'><animateTransform type='rotate' attributeName='transform' calcMode='spline' dur='1' values='360;0' keyTimes='0;1' keySplines='0 0 1 1' repeatCount='indefinite'></animateTransform></circle><circle transform-origin='center' fill='none' opacity='.2' stroke='#191919' stroke-width='30' stroke-linecap='round' cx='100' cy='100' r='70'></circle></svg>\n <pre class=\"background\"></pre>\n</div>\n";
2
2
  export default _default;
3
3
  //# sourceMappingURL=additionals.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"additionals.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/additionals.ts"],"names":[],"mappings":";AAAA,wBAkEC"}
1
+ {"version":3,"file":"additionals.d.ts","sourceRoot":"","sources":["../../../src/checkout/layout-widgets/additionals.ts"],"names":[],"mappings":";AAAA,wBA2FC"}