@odus/checkout 1.7.0 → 1.7.7

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.
@@ -1 +1 @@
1
- {"version":3,"file":"ComponentFactory.d.ts","sourceRoot":"","sources":["../../src/components/ComponentFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,qBAAa,gBAAgB;IAC3B;;OAEG;WACW,SAAS,CACrB,UAAU,GAAE,MAAM,EAAO,EACzB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACtC,SAAS,CAAC,cAAc,CAAC;IAI5B;;OAEG;WACW,UAAU,CACtB,UAAU,GAAE,MAAM,EAAO,EACzB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACtC,SAAS,CAAC,eAAe,CAAC;IAI7B;;OAEG;WACW,YAAY,CACxB,IAAI,EAAE,MAAM,EACZ,UAAU,GAAE,MAAM,EAAO,EACzB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACtC,SAAS,CAAC,iBAAiB,CAAC;IAM/B;;OAEG;WACW,WAAW,CACvB,IAAI,EAAE,MAAM,EACZ,UAAU,GAAE,MAAM,EAAO,EACzB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACtC,SAAS,CAAC,gBAAgB,CAAC;IAK9B;;OAEG;WACW,eAAe,CAC3B,WAAW,GAAE,MAAW,EACxB,UAAU,GAAE,MAAM,EAAO,EACzB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACtC,SAAS,CAAC,gBAAgB,CAAC;IAU9B;;OAEG;WACW,UAAU,CACtB,UAAU,GAAE,MAAM,EAAO,EACzB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACtC,SAAS,CAAC,eAAe,CAAC;IAI7B;;OAEG;WACW,WAAW,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AAS,CAAC,iBAAiB,CAAC;IAM/B;;OAEG;WACW,WAAW,CACvB,IAAI,EAAE,MAAM,EACZ,UAAU,GAAE,MAAM,EAAO,EACzB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACtC,SAAS,CAAC,gBAAgB,CAAC;IAK9B;;OAEG;WACW,eAAe,CAC3B,WAAW,SAAK,EAChB,UAAU,GAAE,MAAM,EAAO,EACzB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACtC,SAAS,CAAC,gBAAgB,CAAC;IAU9B;;OAEG;WACW,UAAU,CACtB,UAAU,GAAE,MAAM,EAAO,EACzB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACtC,SAAS,CAAC,eAAe,CAAC;IAI7B;;OAEG;WACW,WAAW,CACvB,IAAI,EAAE,MAAM,EACZ,KAAK,SAAK,EACV,UAAU,GAAE,MAAM,EAAO,EACzB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACtC,SAAS,CAAC,gBAAgB,CAAC;IAO9B;;OAEG;WACW,YAAY,CACxB,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,EACnE,UAAU,GAAE,MAAM,EAAO,EACzB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACtC,SAAS,CAAC,iBAAiB,CAAC;IAkB/B;;OAEG;WACW,WAAW,CACvB,GAAG,EAAE,MAAM,EACX,GAAG,SAAK,EACR,UAAU,GAAE,MAAM,EAAO,EACzB,UAAU,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GACtC,SAAS,CAAC,gBAAgB,CAAC;CAI/B"}
@@ -19,6 +19,10 @@ export declare class EmailField {
19
19
  setValue(value: string): this;
20
20
  trim(): this;
21
21
  setError(error: boolean, errorMsg?: string): this;
22
+ /**
23
+ * Show a non-blocking "did you mean" hint below the field.
24
+ */
25
+ setSuggestion(suggestion: string | null): this;
22
26
  getElement(): HTMLDivElement;
23
27
  appendTo(parent: HTMLElement): this;
24
28
  focus(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"EmailField.d.ts","sourceRoot":"","sources":["../../../../src/components/checkout/form/EmailField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAGpF,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,UAAU;IACrB,OAAO,CAAC,KAAK,CAAQ;gBAET,OAAO,EAAE,iBAAiB;IAgE/B,QAAQ,IAAI,MAAM;IAIlB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAK7B,IAAI,IAAI,IAAI;IAMZ,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI;IAUjD,UAAU,IAAI,cAAc;IAI5B,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAKnC,KAAK,IAAI,IAAI;CAGrB"}
1
+ {"version":3,"file":"EmailField.d.ts","sourceRoot":"","sources":["../../../../src/components/checkout/form/EmailField.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AAGpF,UAAU,iBAAiB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,eAAe,CAAC;IACjC,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,UAAU;IACrB,OAAO,CAAC,KAAK,CAAQ;gBAET,OAAO,EAAE,iBAAiB;IAiE/B,QAAQ,IAAI,MAAM;IAIlB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAK7B,IAAI,IAAI,IAAI;IAMZ,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI;IAUxD;;OAEG;IACI,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAQ9C,UAAU,IAAI,cAAc;IAI5B,QAAQ,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI;IAKnC,KAAK,IAAI,IAAI;CAGrB"}
@@ -1,4 +1,4 @@
1
- import { Environment } from 'types/checkout/CheckoutConfig.type';
1
+ import { Environment } from '../../../types/checkout/CheckoutConfig.type';
2
2
  import { VGSCollectService, VGSFormState } from '../../../core/vgs/VGSCollectService';
3
3
  import { CheckoutProfile } from '../../../types/checkout/CheckoutProfile.type';
4
4
  import { AddressData, ApplePayData, FormData, FormErrors } from '../../../types/common/FormData.type';
@@ -83,7 +83,7 @@ export declare class FormComponentManager {
83
83
  shippingAddress?: Partial<Record<keyof AddressData, boolean>>;
84
84
  }): void;
85
85
  createSubmitButton(checkoutProfile: CheckoutProfile, disabled: boolean): void;
86
- updateEmailField(value: string, error: boolean, errorMsg: string | undefined): void;
86
+ updateEmailField(value: string, error: boolean, errorMsg: string | undefined, suggestion?: string | undefined): void;
87
87
  updatePhoneNumberField(value: string, error: boolean, errorMsg: string | undefined): void;
88
88
  updateCardSection(cardNumber: string, cardNumberError: string | undefined, cardNumberTouched: boolean, cardCvv: string, cardCvvError: string | undefined, cardCvvTouched: boolean, cardExpiry: string, cardExpiryError: string | undefined, cardExpiryTouched: boolean): void;
89
89
  updateCardholderSection(value: string, error: boolean, errorMsg: string | undefined): void;
@@ -1 +1 @@
1
- {"version":3,"file":"FormComponentManager.d.ts","sourceRoot":"","sources":["../../../../src/components/checkout/form/FormComponentManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACb,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,UAAU,EACX,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAQnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAK7D,UAAU,uBAAuB;IAC/B,WAAW,EAAE,eAAe,CAAC;IAC7B,YAAY,EAAE,YAAY,CAAC;IAC3B,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,CAAC,KAAK,EAAE,cAAc,KA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WAAW,EAAE,MAAM,EACnB,eAAe,EAAE;QACf,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;KACrB;IAOH,aAAa;IAIb,aAAa,CAAC,UAAU,EAAE,iBAAiB;IAI3C,OAAO,CAAC,iBAAiB;IA0DzB,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,uBAAuB;IA0BzB,cAAc,CAAC,eAAe,EAAE,eAAe;IA6DrD,oBAAoB,CAAC,KAAK,EAAE,YAAY,EAAE,WAAW,CAAC,EAAE,cAAc;IAKtE,OAAO;CAqGR"}
1
+ {"version":3,"file":"FormComponentManager.d.ts","sourceRoot":"","sources":["../../../../src/components/checkout/form/FormComponentManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,KAAK,EACV,iBAAiB,EACjB,YAAY,EACb,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACZ,QAAQ,EACR,UAAU,EACX,MAAM,qCAAqC,CAAC;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAQnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAK7D,UAAU,uBAAuB;IAC/B,WAAW,EAAE,eAAe,CAAC;IAC7B,YAAY,EAAE,YAAY,CAAC;IAC3B,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9C,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,MAAM,EAAE,CAAC,KAAK,EAAE,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Q,EAAE,MAAM,CAAC;QACjB,WAAW,EAAE,MAAM,CAAC;KACrB;IAOH,aAAa;IAIb,aAAa,CAAC,UAAU,EAAE,iBAAiB;IAI3C,OAAO,CAAC,iBAAiB;IA0DzB,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,uBAAuB;IA0BzB,cAAc,CAAC,eAAe,EAAE,eAAe;IA6DrD,oBAAoB,CAAC,KAAK,EAAE,YAAY,EAAE,WAAW,CAAC,EAAE,cAAc;IAKtE,OAAO;CAqGR"}
@@ -13,6 +13,7 @@ export declare class FormUIManager {
13
13
  private formElement;
14
14
  private componentManager;
15
15
  private onLoadingStateChange?;
16
+ private validationSchema;
16
17
  private spinner?;
17
18
  private formSkeleton?;
18
19
  private alert?;
@@ -1 +1 @@
1
- {"version":3,"file":"FormUIManager.d.ts","sourceRoot":"","sources":["../../../../src/components/checkout/form/FormUIManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,QAAQ,EACR,UAAU,EACX,MAAM,qCAAqC,CAAC;AAI7C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,UAAU,gBAAgB;IACxB,WAAW,EAAE,eAAe,CAAC;IAC7B,gBAAgB,EAAE,oBAAoB,CAAC;IACvC,oBAAoB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;CACrD;AAED,KAAK,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,QAAQ,EAAE,OAAO,CAAC,CAAC,GAAG;IACpE,cAAc,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;IAC7D,eAAe,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;CAC/D,CAAC;AAkCF,qBAAa,aAAa;IACxB,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,gBA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ACxB,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,gBAAgB,CAAuB;IAC/C,OAAO,CAAC,oBAAoB,CAAC,CAA+B;IAC5D,OAAO,CAAC,gBAAgB,CAA4B;IAEpD,OAAO,CAAC,OAAO,CAAC,CAAU;IAC1B,OAAO,CAAC,YAAY,CAAC,CAAe;IACpC,OAAO,CAAC,KAAK,CAAC,CAAQ;gBAEV,OAAO,EAAE,gBAAgB;IAMrC,YAAY,CACV,SAAS,EAAE;QACT,QAAQ,EAAE,QAAQ,CAAC;QACnB,MAAM,EAAE,UAAU,CAAC;QACnB,OAAO,EAAE,mBAAmB,CAAC;KAC9B,EACD,cAAc,EAAE,OAAO;IAsDzB,eAAe,CAAC,SAAS,EAAE,OAAO;IAelC,WAAW,CAAC,IAAI,EAAE,MAAM;IAMxB,WAAW;IAOX,OAAO,CAAC,YAAY;IAOpB,eAAe,CAAC,OAAO,EAAE,MAAM;IAY/B,iBAAiB;IAOjB,OAAO;CAcR"}
@@ -2,6 +2,7 @@ import { Component } from '../Component';
2
2
  interface HelperTextOptions {
3
3
  text?: string;
4
4
  visible?: boolean;
5
+ variant?: 'error' | 'hint';
5
6
  }
6
7
  export declare class HelperText extends Component<HTMLDivElement> {
7
8
  private span;
@@ -1 +1 @@
1
- {"version":3,"file":"HelperText.d.ts","sourceRoot":"","sources":["../../../src/components/common/HelperText.ts"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,UAAU,iBAAiB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,qBAAa,UAAW,SAAQ,SAAS,CAAC,cAAc,CAAC;IACvD,OAAO,CAAC,IAAI,CAAkB;gBAElB,OAAO,EAAE,iBAAiB;IAY7B,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAO7B,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAS/C,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,WAAW;CAMpB"}
1
+ {"version":3,"file":"HelperText.d.ts","sourceRoot":"","sources":["../../../src/components/common/HelperText.ts"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,UAAU,iBAAiB;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC5B;AAED,qBAAa,UAAW,SAAQ,SAAS,CAAC,cAAc,CAAC;IACvD,OAAO,CAAC,IAAI,CAAkB;gBAElB,OAAO,EAAE,iBAAiB;IAe7B,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAO7B,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAS/C,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,WAAW;CAMpB"}
@@ -23,10 +23,19 @@ interface InputOptions {
23
23
  export declare class Input extends Component<HTMLDivElement> {
24
24
  private inputElement;
25
25
  private helperText;
26
+ private hintText;
27
+ private hasError;
28
+ private hint;
26
29
  constructor(options: InputOptions);
27
30
  getValue(): string;
28
31
  setValue(value: string): this;
29
32
  setError(error: boolean, errorMsg?: string): this;
33
+ /**
34
+ * Show an advisory message below the input. Unlike an error it does not
35
+ * mark the field invalid, and it stays hidden while an error is displayed.
36
+ */
37
+ setHint(hint: string | null): this;
38
+ private syncHint;
30
39
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): this;
31
40
  /**
32
41
  * Focus the input element
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/components/common/Input.ts"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,cAA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I,EAAE,MAAM,EACZ,QAAQ,EAAE,kCAAkC,EAC5C,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI;IAKP;;OAEG;IACI,KAAK,IAAI,IAAI;CAGrB"}
@@ -2,11 +2,14 @@ import { BaseElement } from './BaseElement';
2
2
  export declare class EmailElement extends BaseElement {
3
3
  private _email;
4
4
  private _error;
5
+ private _suggestion;
5
6
  private _field;
6
7
  protected render(): void;
7
8
  protected getCss(): string;
8
9
  protected getValue(): string;
9
10
  protected getIsValid(): boolean;
10
11
  protected getError(): string | null;
12
+ /** Non-blocking "did you mean" hint, if the domain looks like a typo. */
13
+ get suggestion(): string | null;
11
14
  }
12
15
  //# sourceMappingURL=EmailElement.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmailElement.d.ts","sourceRoot":"","sources":["../../src/elements/EmailElement.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA4B5C,qBAAa,YAAa,SAAQ,WAAW;IAC3C,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,MAAM,CAA2B;IAEzC,SAAS,CAAC,MAAM,IAAI,IAAI;cAoCL,MAAM,IAAI,MAAM;IAuCnC,SAAS,CAAC,QAAQ,IAAI,MAAM;IAI5B,SAAS,CAAC,UAAU,IAAI,OAAO;IAK/B,SAAS,CAAC,QAAQ,IAAI,MAAM,GAAG,IAAI;CAGpC"}
1
+ {"version":3,"file":"EmailElement.d.ts","sourceRoot":"","sources":["../../src/elements/EmailElement.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AA4B5C,qBAAa,YAAa,SAAQ,WAAW;IAC3C,OAAO,CAAC,MAAM,CAAM;IACpB,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,WAAW,CAAuB;IAC1C,OAAO,CAAC,MAAM,CAA2B;IAEzC,SAAS,CAAC,MAAM,IAAI,IAAI;cAwCL,MAAM,IAAI,MAAM;IA0CnC,SAAS,CAAC,QAAQ,IAAI,MAAM;IAI5B,SAAS,CAAC,UAAU,IAAI,OAAO;IAK/B,SAAS,CAAC,QAAQ,IAAI,MAAM,GAAG,IAAI;IAInC,yEAAyE;IACzE,IAAI,UAAU,IAAI,MAAM,GAAG,IAAI,CAE9B;CACF"}
@@ -1,6 +1,6 @@
1
1
  import { B as e, C as t, F as n, J as r, L as i, P as a, R as o, S as s, a as c, b as l, c as u, h as d, i as f, l as p, m, n as h, o as g, r as _, t as v, u as y, w as b, y as x, z as ee } from "./shared.js";
2
2
  //#region libs/checkout/src/assets/styles/helperText.css?inline
3
- var S = ".form-helper-text{color:#dc2727;font-family:var(--odus-font-family,inherit);max-height:100px;margin-top:4px;font-size:12px;font-weight:500;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,margin .3s ease-in-out;display:block;overflow:hidden}.form-helper-text-hidden{opacity:0;max-height:0;margin-top:0;overflow:hidden}", C = ".input-wrapper{box-sizing:border-box;flex-direction:column;align-items:stretch;width:100%;min-width:0;display:flex}.input-wrapper *{box-sizing:border-box}.form-input{opacity:1;font-size:var(--odus-input-font-size,16px);font-weight:var(--odus-input-font-weight,400);letter-spacing:var(--odus-input-letter-spacing,.02em);box-shadow:0 0 0 1px var(--odus-border-color,#e0e0e0), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d;background:var(--odus-color-background,#fff);padding:var(--odus-input-padding,8px 12px);line-height:var(--odus-input-line-height,1.5);z-index:0;box-sizing:border-box;border:none;outline:none;flex:1;width:100%;min-height:0;transition:box-shadow .1s ease-in,border-radius .2s ease-in}.form-input[name=cardNumber]{padding-right:100px}.form-input-error{box-shadow:0 0 0 1px var(--odus-color-error,#dc2727), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d}.form-input::placeholder{color:var(--odus-input-placeholder-color,#717173);opacity:var(--odus-input-placeholder-opacity,.3)}.form-input:focus{z-index:2;position:relative;box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}", w = ".input-label{font-family:var(--odus-font-family,inherit);font-size:var(--odus-label-font-size,14px);font-weight:var(--odus-label-font-weight,400);color:var(--odus-label-color,var(--odus-color-text,#1a1a1a));letter-spacing:var(--odus-label-letter-spacing,normal);line-height:var(--odus-label-line-height,1.4);margin-bottom:var(--odus-label-margin-bottom,6px)}", T = ":host{--odus-font-family:system-ui, sans-serif;--odus-font-size:16px;--odus-color-error:#dc2727;--odus-color-text:#1a1a1a;--odus-color-background:#fff;--odus-border-color:#e0e0e0;--odus-border-radius:6px;--odus-spacing-sm:8px;--odus-spacing-md:16px;--odus-spacing-lg:24px;--odus-input-height:44px;--odus-input-padding:8px 12px;--odus-input-font-size:var(--odus-font-size);--odus-input-font-weight:400;--odus-input-letter-spacing:.02em;--odus-input-line-height:1.5;--odus-input-placeholder-color:#717173;--odus-input-placeholder-opacity:.3;--odus-input-focus-shadow:0 0 0 1px #3297d3b3, 0 1px 1px 0 #00000012, 0 0 0 4px #3297d34d;--odus-label-font-size:14px;--odus-label-font-weight:400;--odus-label-color:var(--odus-color-text);--odus-label-letter-spacing:normal;--odus-label-line-height:1.4;--odus-label-margin-bottom:6px;--odus-card-gap:12px;--odus-button-height:48px;--odus-button-border-radius:var(--odus-border-radius)}.form-input{opacity:1;font-weight:var(--odus-input-font-weight,400);letter-spacing:var(--odus-input-letter-spacing,.02em);box-shadow:0 0 0 1px var(--odus-border-color,#e0e0e0), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d;background:var(--odus-color-background,#fff);padding:var(--odus-input-padding,8px 12px);line-height:var(--odus-input-line-height,1.5);z-index:0;box-sizing:border-box;border:none;outline:none;flex:1;width:100%;min-height:0;transition:box-shadow .1s ease-in,border-radius .2s ease-in}.form-input::placeholder{color:var(--odus-input-placeholder-color,#717173);opacity:var(--odus-input-placeholder-opacity,.3)}.form-input:focus{box-shadow:var(--odus-input-focus-shadow,0 0 0 1px #3297d3b3, 0 1px 1px 0 #00000012, 0 0 0 4px #3297d34d);z-index:2;position:relative}.input-label{font-family:var(--odus-font-family,inherit)!important;font-size:var(--odus-label-font-size,14px)!important;font-weight:var(--odus-label-font-weight,400)!important;color:var(--odus-label-color,var(--odus-color-text,#1a1a1a))!important;letter-spacing:var(--odus-label-letter-spacing,normal)!important;line-height:var(--odus-label-line-height,1.4)!important;margin-bottom:var(--odus-label-margin-bottom,6px)!important}.form-helper-text{font-family:var(--odus-font-family,inherit)!important}", E = class {
3
+ var S = ".form-helper-text{color:#dc2727;font-family:var(--odus-font-family,inherit);max-height:100px;margin-top:4px;font-size:12px;font-weight:500;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,margin .3s ease-in-out;display:block;overflow:hidden}.form-helper-text-hidden{opacity:0;max-height:0;margin-top:0;overflow:hidden}.form-helper-text-hint{color:var(--odus-color-muted,#6b7280);font-weight:400}", C = ".input-wrapper{box-sizing:border-box;flex-direction:column;align-items:stretch;width:100%;min-width:0;display:flex}.input-wrapper *{box-sizing:border-box}.form-input{opacity:1;font-size:var(--odus-input-font-size,16px);font-weight:var(--odus-input-font-weight,400);letter-spacing:var(--odus-input-letter-spacing,.02em);box-shadow:0 0 0 1px var(--odus-border-color,#e0e0e0), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d;background:var(--odus-color-background,#fff);padding:var(--odus-input-padding,8px 12px);line-height:var(--odus-input-line-height,1.5);z-index:0;box-sizing:border-box;border:none;outline:none;flex:1;width:100%;min-height:0;transition:box-shadow .1s ease-in,border-radius .2s ease-in}.form-input[name=cardNumber]{padding-right:100px}.form-input-error{box-shadow:0 0 0 1px var(--odus-color-error,#dc2727), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d}.form-input::placeholder{color:var(--odus-input-placeholder-color,#717173);opacity:var(--odus-input-placeholder-opacity,.3)}.form-input:focus{z-index:2;position:relative;box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}", w = ".input-label{font-family:var(--odus-font-family,inherit);font-size:var(--odus-label-font-size,14px);font-weight:var(--odus-label-font-weight,400);color:var(--odus-label-color,var(--odus-color-text,#1a1a1a));letter-spacing:var(--odus-label-letter-spacing,normal);line-height:var(--odus-label-line-height,1.4);margin-bottom:var(--odus-label-margin-bottom,6px)}", T = ":host{--odus-font-family:system-ui, sans-serif;--odus-font-size:16px;--odus-color-error:#dc2727;--odus-color-text:#1a1a1a;--odus-color-background:#fff;--odus-border-color:#e0e0e0;--odus-border-radius:6px;--odus-spacing-sm:8px;--odus-spacing-md:16px;--odus-spacing-lg:24px;--odus-input-height:44px;--odus-input-padding:8px 12px;--odus-input-font-size:var(--odus-font-size);--odus-input-font-weight:400;--odus-input-letter-spacing:.02em;--odus-input-line-height:1.5;--odus-input-placeholder-color:#717173;--odus-input-placeholder-opacity:.3;--odus-input-focus-shadow:0 0 0 1px #3297d3b3, 0 1px 1px 0 #00000012, 0 0 0 4px #3297d34d;--odus-label-font-size:14px;--odus-label-font-weight:400;--odus-label-color:var(--odus-color-text);--odus-label-letter-spacing:normal;--odus-label-line-height:1.4;--odus-label-margin-bottom:6px;--odus-card-gap:12px;--odus-button-height:48px;--odus-button-border-radius:var(--odus-border-radius)}.form-input{opacity:1;font-weight:var(--odus-input-font-weight,400);letter-spacing:var(--odus-input-letter-spacing,.02em);box-shadow:0 0 0 1px var(--odus-border-color,#e0e0e0), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d;background:var(--odus-color-background,#fff);padding:var(--odus-input-padding,8px 12px);line-height:var(--odus-input-line-height,1.5);z-index:0;box-sizing:border-box;border:none;outline:none;flex:1;width:100%;min-height:0;transition:box-shadow .1s ease-in,border-radius .2s ease-in}.form-input::placeholder{color:var(--odus-input-placeholder-color,#717173);opacity:var(--odus-input-placeholder-opacity,.3)}.form-input:focus{box-shadow:var(--odus-input-focus-shadow,0 0 0 1px #3297d3b3, 0 1px 1px 0 #00000012, 0 0 0 4px #3297d34d);z-index:2;position:relative}.input-label{font-family:var(--odus-font-family,inherit)!important;font-size:var(--odus-label-font-size,14px)!important;font-weight:var(--odus-label-font-weight,400)!important;color:var(--odus-label-color,var(--odus-color-text,#1a1a1a))!important;letter-spacing:var(--odus-label-letter-spacing,normal)!important;line-height:var(--odus-label-line-height,1.4)!important;margin-bottom:var(--odus-label-margin-bottom,6px)!important}.form-helper-text{font-family:var(--odus-font-family,inherit)!important}", E = class {
4
4
  shadowRoot = null;
5
5
  host = null;
6
6
  options = {};
@@ -296,7 +296,7 @@ var S = ".form-helper-text{color:#dc2727;font-family:var(--odus-font-family,inhe
296
296
  return this._value;
297
297
  }
298
298
  getIsValid() {
299
- return this._select ? this._value.trim().length > 0 : !0;
299
+ return !this._select || this._value.trim().length > 0;
300
300
  }
301
301
  getError() {
302
302
  if (this.getIsValid()) return null;
@@ -918,6 +918,7 @@ var S = ".form-helper-text{color:#dc2727;font-family:var(--odus-font-family,inhe
918
918
  }, J = class extends E {
919
919
  _email = "";
920
920
  _error = null;
921
+ _suggestion = null;
921
922
  _field = null;
922
923
  render() {
923
924
  if (!this.shadowRoot) return;
@@ -932,11 +933,11 @@ var S = ".form-helper-text{color:#dc2727;font-family:var(--odus-font-family,inhe
932
933
  placeholder: this.options.placeholder,
933
934
  onChange: (e) => {
934
935
  let t = e.target;
935
- this._email = t.value ?? this._field?.getValue() ?? "", this._error = null, this._field?.setError(!1), this.emit("change", this._email);
936
+ this._email = t.value ?? this._field?.getValue() ?? "", this._error = null, this._suggestion = null, this._field?.setError(!1), this._field?.setSuggestion(null), this.emit("change", this._email);
936
937
  },
937
938
  onBlur: () => {
938
939
  let e = a();
939
- this._error = e.email(this._email) ?? null, this._field?.setError(!!this._error, this._error ?? void 0), this.emit("blur", this._email);
940
+ this._error = e.email(this._email) ?? null, this._suggestion = e.emailSuggestion(this._email) ?? null, this._field?.setError(!!this._error, this._error ?? void 0), this._field?.setSuggestion(this._suggestion), this.emit("blur", this._email);
940
941
  }
941
942
  }), this.shadowRoot.appendChild(this._field.getElement());
942
943
  }
@@ -945,7 +946,7 @@ var S = ".form-helper-text{color:#dc2727;font-family:var(--odus-font-family,inhe
945
946
  C,
946
947
  w,
947
948
  S
948
- ].join("\n") + "\n :host { display: block; }\n .form-input {\n color: var(--odus-color-text, #1a1a1a) !important;\n font-family: var(--odus-font-family, system-ui, sans-serif) !important;\n font-size: var(--odus-input-font-size, 16px) !important;\n background: var(--odus-color-background, #ffffff) !important;\n border-radius: var(--odus-border-radius, 6px) !important;\n box-shadow:\n 0 0 0 1px var(--odus-border-color, #e0e0e0),\n 0 2px 4px 0 rgba(0, 0, 0, 0.07),\n 0 1px 1.5px 0 rgba(0, 0, 0, 0.05) !important;\n }\n .form-input:focus {\n box-shadow: var(\n --odus-input-focus-shadow,\n 0 0 0 1px rgba(50, 151, 211, 0.7),\n 0 1px 1px 0 rgba(0, 0, 0, 0.07),\n 0 0 0 4px rgba(50, 151, 211, 0.3)\n ) !important;\n outline: none !important;\n }\n .form-input-error {\n box-shadow:\n 0 0 0 1px var(--odus-color-error, #dc2727),\n 0 2px 4px 0 rgba(0, 0, 0, 0.07),\n 0 1px 1.5px 0 rgba(0, 0, 0, 0.05) !important;\n }\n .form-helper-text {\n color: var(--odus-color-error, #dc2727) !important;\n }\n ";
949
+ ].join("\n") + "\n :host { display: block; }\n .form-input {\n color: var(--odus-color-text, #1a1a1a) !important;\n font-family: var(--odus-font-family, system-ui, sans-serif) !important;\n font-size: var(--odus-input-font-size, 16px) !important;\n background: var(--odus-color-background, #ffffff) !important;\n border-radius: var(--odus-border-radius, 6px) !important;\n box-shadow:\n 0 0 0 1px var(--odus-border-color, #e0e0e0),\n 0 2px 4px 0 rgba(0, 0, 0, 0.07),\n 0 1px 1.5px 0 rgba(0, 0, 0, 0.05) !important;\n }\n .form-input:focus {\n box-shadow: var(\n --odus-input-focus-shadow,\n 0 0 0 1px rgba(50, 151, 211, 0.7),\n 0 1px 1px 0 rgba(0, 0, 0, 0.07),\n 0 0 0 4px rgba(50, 151, 211, 0.3)\n ) !important;\n outline: none !important;\n }\n .form-input-error {\n box-shadow:\n 0 0 0 1px var(--odus-color-error, #dc2727),\n 0 2px 4px 0 rgba(0, 0, 0, 0.07),\n 0 1px 1.5px 0 rgba(0, 0, 0, 0.05) !important;\n }\n .form-helper-text {\n color: var(--odus-color-error, #dc2727) !important;\n }\n .form-helper-text-hint {\n color: var(--odus-color-muted, #6b7280) !important;\n }\n ";
949
950
  }
950
951
  getValue() {
951
952
  return this._email;
@@ -956,6 +957,9 @@ var S = ".form-helper-text{color:#dc2727;font-family:var(--odus-font-family,inhe
956
957
  getError() {
957
958
  return this._error;
958
959
  }
960
+ get suggestion() {
961
+ return this._suggestion;
962
+ }
959
963
  }, Y = "@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.error-alert{background-color:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:16px;animation:.3s ease-out slideIn;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.error-alert-content{align-items:flex-start;gap:12px;display:flex}.error-alert-icon-container{color:#dc2626;background-color:#fee2e2;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.error-alert-icon{color:#dc2626}.error-alert-text-container{flex:1;min-width:0}.error-alert-title{color:#991b1b;margin:0 0 4px;font-size:14px;font-weight:600;line-height:1.4}.error-alert-message{font-family:var(--odus-font-family,inherit);color:#7f1d1d;word-break:break-word;margin:0;font-size:14px;line-height:1.5}", X = class extends E {
960
964
  _alert = null;
961
965
  _message = null;
package/dist/index.css CHANGED
@@ -1,2 +1,2 @@
1
- .input-wrapper{box-sizing:border-box;flex-direction:column;align-items:stretch;width:100%;min-width:0;display:flex}.input-wrapper *{box-sizing:border-box}.form-input{opacity:1;font-size:var(--odus-input-font-size,16px);font-weight:var(--odus-input-font-weight,400);letter-spacing:var(--odus-input-letter-spacing,.02em);box-shadow:0 0 0 1px var(--odus-border-color,#e0e0e0), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d;background:var(--odus-color-background,#fff);padding:var(--odus-input-padding,8px 12px);line-height:var(--odus-input-line-height,1.5);z-index:0;box-sizing:border-box;border:none;outline:none;flex:1;width:100%;min-height:0;transition:box-shadow .1s ease-in,border-radius .2s ease-in}.form-input[name=cardNumber]{padding-right:100px}.form-input-error{box-shadow:0 0 0 1px var(--odus-color-error,#dc2727), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d}.form-input::placeholder{color:var(--odus-input-placeholder-color,#717173);opacity:var(--odus-input-placeholder-opacity,.3)}.form-input:focus{z-index:2;position:relative;box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.form-helper-text{color:#dc2727;font-family:var(--odus-font-family,inherit);max-height:100px;margin-top:4px;font-size:12px;font-weight:500;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,margin .3s ease-in-out;display:block;overflow:hidden}.form-helper-text-hidden{opacity:0;max-height:0;margin-top:0;overflow:hidden}.input-label{font-family:var(--odus-font-family,inherit);font-size:var(--odus-label-font-size,14px);font-weight:var(--odus-label-font-weight,400);color:var(--odus-label-color,var(--odus-color-text,#1a1a1a));letter-spacing:var(--odus-label-letter-spacing,normal);line-height:var(--odus-label-line-height,1.4);margin-bottom:var(--odus-label-margin-bottom,6px)}.form-select{opacity:1;letter-spacing:.02em;padding:var(--odus-input-padding,8px 12px);z-index:0;box-sizing:border-box;cursor:pointer;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M2 3.5L5 6.5L8 3.5' stroke='%23717173' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center no-repeat;border:none;outline:none;flex:1;width:100%;min-height:0;padding-right:32px;font-weight:400;line-height:1.5;transition:box-shadow .1s ease-in,border-radius .2s ease-in;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d}.form-select-error{box-shadow:0 0 0 1px var(--odus-color-error,#dc2727), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d}.form-select-placeholder{color:#d4d4d5}.form-select option[disabled]{color:#717173;opacity:.5}.form-select:focus{z-index:2;position:relative;box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.card-element{border-radius:inherit;box-sizing:border-box;background:#fff;border:none;height:38.5px;padding:0;transition:box-shadow .1s ease-in;position:relative;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d}.card-element iframe{width:100%;min-width:0;display:block}.card-element-focus{box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.card-icon{opacity:1;width:18px;transition:opacity .6s ease-in}.card-icon img{max-width:100%;height:auto;display:block}.cards-position{z-index:10;pointer-events:none;align-items:center;gap:8px;display:flex;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.loading{position:relative}.loading:after{content:"";border-radius:inherit;background-color:#fff;width:100%;height:100%;position:absolute;inset:0}@media only screen and (min-width:600px){.card-icon{width:20px}}.vgs-card-group iframe,.vgs-wrap iframe{width:100%;min-width:0;display:block}.fake-ph{color:#717173;opacity:.3;font-size:var(--odus-input-font-size,16px);letter-spacing:.02em;font-weight:400;line-height:1.5;font-family:var(--odus-font-family,inherit);pointer-events:none;-webkit-user-select:none;user-select:none;white-space:nowrap;z-index:0;background:#fff;align-items:center;padding:8px 12px;display:flex;position:absolute;inset:0}@keyframes vgs-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.vgs-field-skeleton{pointer-events:none;z-index:11;border-radius:inherit;background:linear-gradient(90deg,#f7f7f7 25%,#fdfdfd 50%,#f7f7f7 75%) 0 0/200% 100%;animation:1.5s ease-in-out infinite vgs-shimmer;position:absolute;inset:0}apple-pay-button{appearance:-apple-pay-button;-apple-pay-button-type:plain;-apple-pay-button-style:black;cursor:pointer;box-sizing:border-box;border-radius:4px;width:100%;height:40px;min-height:40px;display:inline-block}apple-pay-button:hover{filter:brightness(.9)}.paypal{color:#253b80;text-transform:none;cursor:pointer;background-color:#ffc439;border-radius:4px;padding:8px 16px;font-weight:700;box-shadow:0 2px 4px #0000001a}.paypal:hover{filter:brightness(.95);background-color:#ffc439}.paypal-icon-container{justify-content:center;align-items:center;display:flex}.paypal-icon-container img{width:69px;height:22px}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.error-alert{background-color:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:16px;animation:.3s ease-out slideIn;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.error-alert-content{align-items:flex-start;gap:12px;display:flex}.error-alert-icon-container{color:#dc2626;background-color:#fee2e2;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.error-alert-icon{color:#dc2626}.error-alert-text-container{flex:1;min-width:0}.error-alert-title{color:#991b1b;margin:0 0 4px;font-size:14px;font-weight:600;line-height:1.4}.error-alert-message{font-family:var(--odus-font-family,inherit);color:#7f1d1d;word-break:break-word;margin:0;font-size:14px;line-height:1.5}.form-container{text-align:left;flex-direction:column;gap:16px;max-width:100%;min-height:340px;padding:4px;display:flex;position:relative}.form-container>*{font-family:inherit}.card-details{display:flex}.card-details>*{flex:1;min-width:0}.error-messages-container>*{display:none}.error-messages-container>:first-child{display:block}.address-section{flex-direction:column;gap:6px;display:flex}.address-section-title{margin:0;padding:0;font-size:14px;font-weight:600}.address-same-as-billing{cursor:pointer;align-items:center;gap:4px;display:flex}.address-same-as-billing input[type=checkbox]{opacity:0;pointer-events:none;width:0;height:0;position:absolute}.address-same-as-billing .checkbox-icon{cursor:pointer;flex-shrink:0;width:24px;height:24px}.address-same-as-billing .checkbox-icon .checkbox-checked{display:none}.address-same-as-billing .checkbox-icon .checkbox-unchecked,.address-same-as-billing input[type=checkbox]:checked+.checkbox-icon .checkbox-checked{display:block}.address-same-as-billing input[type=checkbox]:checked+.checkbox-icon .checkbox-unchecked{display:none}.address-same-as-billing label{cursor:pointer;font-size:14px}.address-fields{flex-direction:column;gap:0;transition:opacity .2s;display:flex}.address-fields--ungrouped{gap:16px}.address-row{gap:0;display:flex}.address-row-single{width:100%}.address-row-single>*{flex:1}.address-row-double{width:100%}.address-row-double>*{flex:1;min-width:0}.payment-methods{flex-direction:column;gap:12px;display:flex}.skeleton-container{text-align:left;flex-direction:column;gap:12px;width:100%;max-width:100%;display:flex;position:relative}.skeleton{background:linear-gradient(90deg,#f7f7f7 25%,#fdfdfd 50%,#f7f7f7 75%) 0 0/200% 100%;border-radius:8px;animation:1.5s ease-in-out infinite shimmer;position:relative;overflow:hidden}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.skeleton-field{flex-direction:column;gap:8px;display:flex}.skeleton-label{border-radius:4px;width:80px;height:16px}.skeleton-input{border-radius:8px;width:100%;height:35px}.skeleton-payment-method{border-radius:8px;width:100%;height:37.8614px}.skeleton-card-row{gap:12px;display:flex}.skeleton-card-row .skeleton-field{flex:1}.skeleton-submit-button{border-radius:8px;width:100%;height:35px}.skeleton-separator-text{border-radius:4px;width:12ch;height:13px;font-size:14px}.payment-separator_container{justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:21px;margin:0 0 -8px;display:flex}.payment-separator{justify-content:space-between;align-items:center;width:100%;margin:0 0 -8px;display:flex}.payment-separator__line{background:#9f9f9f;flex-grow:1;height:1.3px}.payment-separator__text{color:#0d0d0d;margin:0;padding:0 16px;font-size:14px;font-weight:400}.button{text-align:center;cursor:pointer;white-space:nowrap;border:none;outline:none;justify-content:center;align-items:center;width:100%;height:min-content;padding:8px 16px;font-size:14px;font-weight:700;line-height:1.5;transition:all .2s;display:inline-flex;position:relative}.disabled{pointer-events:none}.valid{outline:none;transition:all .3s;overflow:hidden}.valid:before{content:"";background:linear-gradient(90deg,#0000,#fff6,#0000);width:100%;height:100%;transition:left .5s;animation:6s infinite glowSlide;position:absolute;top:0;left:-100%}@keyframes glowSlide{0%{left:-100%}50%{left:100%}to{left:100%}}.valid:after{content:"";background:linear-gradient(90deg,#0000 0%,#ffffff1a 25%,#ffffff4d 50%,#ffffff1a 75%,#0000 100%);width:100%;height:100%;animation:7s infinite smoothGlow;position:absolute;top:0;left:0;transform:translate(-100%)}@keyframes smoothGlow{0%{transform:translate(-100%)}to{transform:translate(100%)}}.blur-bg{-webkit-backdrop-filter:blur(3.5px);backdrop-filter:blur(3.5px);z-index:9999;background:0 0;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;inset:0}.loader{background:conic-gradient(from 270deg,#134e4a 0deg,#0f766e 90deg,#0d9488 180deg,#5eaba3 240deg,#0d948833 300deg,#0000 330deg);border-radius:50%;width:64px;height:64px;animation:1s linear infinite spin;position:relative}.loader:before{content:"";background:#fff;border-radius:50%;position:absolute;inset:6px}@keyframes spin{to{transform:rotate(360deg)}}.title{color:#4f4f4f;margin-top:20px;font-size:18px;animation:1s ease-in-out fadeIn}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.country-dial-code-dropdown{display:inline-block;position:relative}.country-dial-code-trigger{padding:var(--odus-input-padding,8px 12px);cursor:pointer;letter-spacing:.02em;font-weight:400;line-height:var(--odus-input-line-height,1.5);white-space:nowrap;box-sizing:border-box;background:#fff;border:none;border-right:1px solid #e0e0e0;align-items:center;gap:6px;padding-right:8px;transition:all .1s ease-in;display:flex}.country-dial-code-trigger:hover{background:#f5f5f5}.country-dial-code-trigger:focus{outline:none}.country-dial-code-trigger .country-flag{font-size:14px;line-height:1}.country-dial-code-trigger .country-chevron{color:#717173;flex-shrink:0;transition:transform .15s}.country-dial-code-trigger[aria-expanded=true] .country-chevron{transform:rotate(180deg)}.country-dial-code-panel{z-index:10000;background:#fff;border-radius:8px;flex-direction:column;width:280px;max-height:360px;display:flex;position:fixed;top:0;left:0;overflow:hidden;box-shadow:0 0 0 1px #0000000d,0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.country-dial-code-panel.hidden{display:none}.country-search-wrapper{border-bottom:1px solid #e0e0e0;flex-shrink:0;padding:12px}.country-search{width:100%;font-size:inherit;box-sizing:border-box;border:1px solid #e0e0e0;border-radius:6px;outline:none;padding:6px 12px;font-family:inherit;transition:all .1s ease-in}.country-search:focus{border-color:#3297d3b3;box-shadow:0 0 0 3px #3297d31a}.country-search::placeholder{color:#717173;opacity:.6}.countries-list{flex:1;min-height:0;overflow-y:auto}.countries-list::-webkit-scrollbar{width:8px}.countries-list::-webkit-scrollbar-track{background:#f5f5f5}.countries-list::-webkit-scrollbar-thumb{background:#d0d0d0;border-radius:4px}.countries-list::-webkit-scrollbar-thumb:hover{background:#b0b0b0}.country-group-header{color:#717173;text-transform:uppercase;letter-spacing:.05em;z-index:1;background:#fafafa;padding:8px 16px 4px;font-size:12px;font-weight:600;position:sticky;top:0}.country-item{cursor:pointer;text-align:left;width:100%;color:inherit;background:#fff;border:none;align-items:center;gap:12px;padding:10px 16px;font-family:inherit;font-size:14px;transition:background .1s;display:flex}.country-item:hover{background:#f5f5f5}.country-item.selected{color:#3297d3;background:#3297d314}.country-item:focus{background:#f0f0f0;outline:none}.country-item .country-flag{flex-shrink:0;font-size:20px;line-height:1}.country-item .country-name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.country-item .country-dial-code{color:#717173;flex-shrink:0;font-size:.95em}.country-item.selected .country-dial-code{color:#3297d3cc}.no-results{text-align:center;color:#717173;padding:24px 16px;font-size:14px}.phone-number-field-wrapper{width:100%;display:flex}.phone-number-field-container{border-radius:inherit;background:#fff;align-items:center;width:100%;transition:box-shadow .1s ease-in,border-radius .2s ease-in;display:flex;position:relative;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d}.phone-number-field-container.focused{z-index:2;box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.phone-number-field-container.error{box-shadow:0 0 0 1px #dc2727,0 2px 4px #dc27271a}.phone-number-field-container.error.focused{box-shadow:0 0 0 1px #dc2727,0 1px 1px #00000012,0 0 0 4px #dc272733}.phone-number-field-container .country-select-wrapper{padding:var(--odus-input-padding,8px 12px);border-top-left-radius:var(--phone-border-radius,0px);border-bottom-left-radius:var(--phone-border-radius,0px);white-space:nowrap;background:0 0;flex-shrink:0;align-items:center;gap:4px;padding-right:6px;display:flex;position:relative}.phone-number-field-container .country-select-wrapper .country-flag{pointer-events:none;font-size:14px;line-height:1}.phone-number-field-container .country-select-wrapper .country-chevron{color:#717173;pointer-events:none;flex-shrink:0;align-items:center;display:flex}.phone-number-field-container .country-select-wrapper .country-select{cursor:pointer;opacity:0;background:0 0;border:none;outline:none;width:100%;height:100%;position:absolute;inset:0}.phone-number-field-container .phone-input-wrapper{flex:1;min-width:0}.phone-number-field-container .phone-input-wrapper .form-input{box-shadow:none;border-radius:0;border-top-right-radius:var(--phone-border-radius,0px);border-bottom-right-radius:var(--phone-border-radius,0px);padding:var(--odus-input-padding,8px 2px);border:none}.phone-number-field-container .phone-input-wrapper .form-input:focus{box-shadow:none;z-index:auto}
1
+ .input-wrapper{box-sizing:border-box;flex-direction:column;align-items:stretch;width:100%;min-width:0;display:flex}.input-wrapper *{box-sizing:border-box}.form-input{opacity:1;font-size:var(--odus-input-font-size,16px);font-weight:var(--odus-input-font-weight,400);letter-spacing:var(--odus-input-letter-spacing,.02em);box-shadow:0 0 0 1px var(--odus-border-color,#e0e0e0), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d;background:var(--odus-color-background,#fff);padding:var(--odus-input-padding,8px 12px);line-height:var(--odus-input-line-height,1.5);z-index:0;box-sizing:border-box;border:none;outline:none;flex:1;width:100%;min-height:0;transition:box-shadow .1s ease-in,border-radius .2s ease-in}.form-input[name=cardNumber]{padding-right:100px}.form-input-error{box-shadow:0 0 0 1px var(--odus-color-error,#dc2727), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d}.form-input::placeholder{color:var(--odus-input-placeholder-color,#717173);opacity:var(--odus-input-placeholder-opacity,.3)}.form-input:focus{z-index:2;position:relative;box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.form-helper-text{color:#dc2727;font-family:var(--odus-font-family,inherit);max-height:100px;margin-top:4px;font-size:12px;font-weight:500;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,margin .3s ease-in-out;display:block;overflow:hidden}.form-helper-text-hidden{opacity:0;max-height:0;margin-top:0;overflow:hidden}.form-helper-text-hint{color:var(--odus-color-muted,#6b7280);font-weight:400}.input-label{font-family:var(--odus-font-family,inherit);font-size:var(--odus-label-font-size,14px);font-weight:var(--odus-label-font-weight,400);color:var(--odus-label-color,var(--odus-color-text,#1a1a1a));letter-spacing:var(--odus-label-letter-spacing,normal);line-height:var(--odus-label-line-height,1.4);margin-bottom:var(--odus-label-margin-bottom,6px)}.form-select{opacity:1;letter-spacing:.02em;padding:var(--odus-input-padding,8px 12px);z-index:0;box-sizing:border-box;cursor:pointer;appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none'%3E%3Cpath d='M2 3.5L5 6.5L8 3.5' stroke='%23717173' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center no-repeat;border:none;outline:none;flex:1;width:100%;min-height:0;padding-right:32px;font-weight:400;line-height:1.5;transition:box-shadow .1s ease-in,border-radius .2s ease-in;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d}.form-select-error{box-shadow:0 0 0 1px var(--odus-color-error,#dc2727), 0 2px 4px 0 #00000012, 0 1px 1.5px 0 #0000000d}.form-select-placeholder{color:#d4d4d5}.form-select option[disabled]{color:#717173;opacity:.5}.form-select:focus{z-index:2;position:relative;box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.card-element{border-radius:inherit;box-sizing:border-box;background:#fff;border:none;height:38.5px;padding:0;transition:box-shadow .1s ease-in;position:relative;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d}.card-element iframe{width:100%;min-width:0;display:block}.card-element-focus{box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.card-icon{opacity:1;width:18px;transition:opacity .6s ease-in}.card-icon img{max-width:100%;height:auto;display:block}.cards-position{z-index:10;pointer-events:none;align-items:center;gap:8px;display:flex;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.loading{position:relative}.loading:after{content:"";border-radius:inherit;background-color:#fff;width:100%;height:100%;position:absolute;inset:0}@media only screen and (min-width:600px){.card-icon{width:20px}}.vgs-card-group iframe,.vgs-wrap iframe{width:100%;min-width:0;display:block}.fake-ph{color:#717173;opacity:.3;font-size:var(--odus-input-font-size,16px);letter-spacing:.02em;font-weight:400;line-height:1.5;font-family:var(--odus-font-family,inherit);pointer-events:none;-webkit-user-select:none;user-select:none;white-space:nowrap;z-index:0;background:#fff;align-items:center;padding:8px 12px;display:flex;position:absolute;inset:0}@keyframes vgs-shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.vgs-field-skeleton{pointer-events:none;z-index:11;border-radius:inherit;background:linear-gradient(90deg,#f7f7f7 25%,#fdfdfd 50%,#f7f7f7 75%) 0 0/200% 100%;animation:1.5s ease-in-out infinite vgs-shimmer;position:absolute;inset:0}apple-pay-button{appearance:-apple-pay-button;-apple-pay-button-type:plain;-apple-pay-button-style:black;cursor:pointer;box-sizing:border-box;border-radius:4px;width:100%;height:40px;min-height:40px;display:inline-block}apple-pay-button:hover{filter:brightness(.9)}.paypal{color:#253b80;text-transform:none;cursor:pointer;background-color:#ffc439;border-radius:4px;padding:8px 16px;font-weight:700;box-shadow:0 2px 4px #0000001a}.paypal:hover{filter:brightness(.95);background-color:#ffc439}.paypal-icon-container{justify-content:center;align-items:center;display:flex}.paypal-icon-container img{width:69px;height:22px}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.error-alert{background-color:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:16px;animation:.3s ease-out slideIn;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.error-alert-content{align-items:flex-start;gap:12px;display:flex}.error-alert-icon-container{color:#dc2626;background-color:#fee2e2;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.error-alert-icon{color:#dc2626}.error-alert-text-container{flex:1;min-width:0}.error-alert-title{color:#991b1b;margin:0 0 4px;font-size:14px;font-weight:600;line-height:1.4}.error-alert-message{font-family:var(--odus-font-family,inherit);color:#7f1d1d;word-break:break-word;margin:0;font-size:14px;line-height:1.5}.form-container{text-align:left;flex-direction:column;gap:16px;max-width:100%;min-height:340px;padding:4px;display:flex;position:relative}.form-container>*{font-family:inherit}.card-details{display:flex}.card-details>*{flex:1;min-width:0}.error-messages-container>*{display:none}.error-messages-container>:first-child{display:block}.address-section{flex-direction:column;gap:6px;display:flex}.address-section-title{margin:0;padding:0;font-size:14px;font-weight:600}.address-same-as-billing{cursor:pointer;align-items:center;gap:4px;display:flex}.address-same-as-billing input[type=checkbox]{opacity:0;pointer-events:none;width:0;height:0;position:absolute}.address-same-as-billing .checkbox-icon{cursor:pointer;flex-shrink:0;width:24px;height:24px}.address-same-as-billing .checkbox-icon .checkbox-checked{display:none}.address-same-as-billing .checkbox-icon .checkbox-unchecked,.address-same-as-billing input[type=checkbox]:checked+.checkbox-icon .checkbox-checked{display:block}.address-same-as-billing input[type=checkbox]:checked+.checkbox-icon .checkbox-unchecked{display:none}.address-same-as-billing label{cursor:pointer;font-size:14px}.address-fields{flex-direction:column;gap:0;transition:opacity .2s;display:flex}.address-fields--ungrouped{gap:16px}.address-row{gap:0;display:flex}.address-row-single{width:100%}.address-row-single>*{flex:1}.address-row-double{width:100%}.address-row-double>*{flex:1;min-width:0}.payment-methods{flex-direction:column;gap:12px;display:flex}.skeleton-container{text-align:left;flex-direction:column;gap:12px;width:100%;max-width:100%;display:flex;position:relative}.skeleton{background:linear-gradient(90deg,#f7f7f7 25%,#fdfdfd 50%,#f7f7f7 75%) 0 0/200% 100%;border-radius:8px;animation:1.5s ease-in-out infinite shimmer;position:relative;overflow:hidden}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.skeleton-field{flex-direction:column;gap:8px;display:flex}.skeleton-label{border-radius:4px;width:80px;height:16px}.skeleton-input{border-radius:8px;width:100%;height:35px}.skeleton-payment-method{border-radius:8px;width:100%;height:37.8614px}.skeleton-card-row{gap:12px;display:flex}.skeleton-card-row .skeleton-field{flex:1}.skeleton-submit-button{border-radius:8px;width:100%;height:35px}.skeleton-separator-text{border-radius:4px;width:12ch;height:13px;font-size:14px}.payment-separator_container{justify-content:space-between;align-items:center;gap:16px;width:100%;min-height:21px;margin:0 0 -8px;display:flex}.payment-separator{justify-content:space-between;align-items:center;width:100%;margin:0 0 -8px;display:flex}.payment-separator__line{background:#9f9f9f;flex-grow:1;height:1.3px}.payment-separator__text{color:#0d0d0d;margin:0;padding:0 16px;font-size:14px;font-weight:400}.button{text-align:center;cursor:pointer;white-space:nowrap;border:none;outline:none;justify-content:center;align-items:center;width:100%;height:min-content;padding:8px 16px;font-size:14px;font-weight:700;line-height:1.5;transition:all .2s;display:inline-flex;position:relative}.disabled{pointer-events:none}.valid{outline:none;transition:all .3s;overflow:hidden}.valid:before{content:"";background:linear-gradient(90deg,#0000,#fff6,#0000);width:100%;height:100%;transition:left .5s;animation:6s infinite glowSlide;position:absolute;top:0;left:-100%}@keyframes glowSlide{0%{left:-100%}50%{left:100%}to{left:100%}}.valid:after{content:"";background:linear-gradient(90deg,#0000 0%,#ffffff1a 25%,#ffffff4d 50%,#ffffff1a 75%,#0000 100%);width:100%;height:100%;animation:7s infinite smoothGlow;position:absolute;top:0;left:0;transform:translate(-100%)}@keyframes smoothGlow{0%{transform:translate(-100%)}to{transform:translate(100%)}}.blur-bg{-webkit-backdrop-filter:blur(3.5px);backdrop-filter:blur(3.5px);z-index:9999;background:0 0;flex-direction:column;justify-content:center;align-items:center;width:100%;height:100%;display:flex;position:absolute;inset:0}.loader{background:conic-gradient(from 270deg,#134e4a 0deg,#0f766e 90deg,#0d9488 180deg,#5eaba3 240deg,#0d948833 300deg,#0000 330deg);border-radius:50%;width:64px;height:64px;animation:1s linear infinite spin;position:relative}.loader:before{content:"";background:#fff;border-radius:50%;position:absolute;inset:6px}@keyframes spin{to{transform:rotate(360deg)}}.title{color:#4f4f4f;margin-top:20px;font-size:18px;animation:1s ease-in-out fadeIn}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.country-dial-code-dropdown{display:inline-block;position:relative}.country-dial-code-trigger{padding:var(--odus-input-padding,8px 12px);cursor:pointer;letter-spacing:.02em;font-weight:400;line-height:var(--odus-input-line-height,1.5);white-space:nowrap;box-sizing:border-box;background:#fff;border:none;border-right:1px solid #e0e0e0;align-items:center;gap:6px;padding-right:8px;transition:all .1s ease-in;display:flex}.country-dial-code-trigger:hover{background:#f5f5f5}.country-dial-code-trigger:focus{outline:none}.country-dial-code-trigger .country-flag{font-size:14px;line-height:1}.country-dial-code-trigger .country-chevron{color:#717173;flex-shrink:0;transition:transform .15s}.country-dial-code-trigger[aria-expanded=true] .country-chevron{transform:rotate(180deg)}.country-dial-code-panel{z-index:10000;background:#fff;border-radius:8px;flex-direction:column;width:280px;max-height:360px;display:flex;position:fixed;top:0;left:0;overflow:hidden;box-shadow:0 0 0 1px #0000000d,0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.country-dial-code-panel.hidden{display:none}.country-search-wrapper{border-bottom:1px solid #e0e0e0;flex-shrink:0;padding:12px}.country-search{width:100%;font-size:inherit;box-sizing:border-box;border:1px solid #e0e0e0;border-radius:6px;outline:none;padding:6px 12px;font-family:inherit;transition:all .1s ease-in}.country-search:focus{border-color:#3297d3b3;box-shadow:0 0 0 3px #3297d31a}.country-search::placeholder{color:#717173;opacity:.6}.countries-list{flex:1;min-height:0;overflow-y:auto}.countries-list::-webkit-scrollbar{width:8px}.countries-list::-webkit-scrollbar-track{background:#f5f5f5}.countries-list::-webkit-scrollbar-thumb{background:#d0d0d0;border-radius:4px}.countries-list::-webkit-scrollbar-thumb:hover{background:#b0b0b0}.country-group-header{color:#717173;text-transform:uppercase;letter-spacing:.05em;z-index:1;background:#fafafa;padding:8px 16px 4px;font-size:12px;font-weight:600;position:sticky;top:0}.country-item{cursor:pointer;text-align:left;width:100%;color:inherit;background:#fff;border:none;align-items:center;gap:12px;padding:10px 16px;font-family:inherit;font-size:14px;transition:background .1s;display:flex}.country-item:hover{background:#f5f5f5}.country-item.selected{color:#3297d3;background:#3297d314}.country-item:focus{background:#f0f0f0;outline:none}.country-item .country-flag{flex-shrink:0;font-size:20px;line-height:1}.country-item .country-name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.country-item .country-dial-code{color:#717173;flex-shrink:0;font-size:.95em}.country-item.selected .country-dial-code{color:#3297d3cc}.no-results{text-align:center;color:#717173;padding:24px 16px;font-size:14px}.phone-number-field-wrapper{width:100%;display:flex}.phone-number-field-container{border-radius:inherit;background:#fff;align-items:center;width:100%;transition:box-shadow .1s ease-in,border-radius .2s ease-in;display:flex;position:relative;box-shadow:0 0 0 1px #e0e0e0,0 2px 4px #00000012,0 1px 1.5px #0000000d}.phone-number-field-container.focused{z-index:2;box-shadow:0 0 0 1px #3297d3b3,0 1px 1px #00000012,0 0 0 4px #3297d34d}.phone-number-field-container.error{box-shadow:0 0 0 1px #dc2727,0 2px 4px #dc27271a}.phone-number-field-container.error.focused{box-shadow:0 0 0 1px #dc2727,0 1px 1px #00000012,0 0 0 4px #dc272733}.phone-number-field-container .country-select-wrapper{padding:var(--odus-input-padding,8px 12px);border-top-left-radius:var(--phone-border-radius,0px);border-bottom-left-radius:var(--phone-border-radius,0px);white-space:nowrap;background:0 0;flex-shrink:0;align-items:center;gap:4px;padding-right:6px;display:flex;position:relative}.phone-number-field-container .country-select-wrapper .country-flag{pointer-events:none;font-size:14px;line-height:1}.phone-number-field-container .country-select-wrapper .country-chevron{color:#717173;pointer-events:none;flex-shrink:0;align-items:center;display:flex}.phone-number-field-container .country-select-wrapper .country-select{cursor:pointer;opacity:0;background:0 0;border:none;outline:none;width:100%;height:100%;position:absolute;inset:0}.phone-number-field-container .phone-input-wrapper{flex:1;min-width:0}.phone-number-field-container .phone-input-wrapper .form-input{box-shadow:none;border-radius:0;border-top-right-radius:var(--phone-border-radius,0px);border-bottom-right-radius:var(--phone-border-radius,0px);padding:var(--odus-input-padding,8px 2px);border:none}.phone-number-field-container .phone-input-wrapper .form-input:focus{box-shadow:none;z-index:auto}
2
2
  /*$vite$:1*/
@@ -1,9 +1,26 @@
1
- import { TelemetryClient } from '@odus/telemetry';
2
1
  import { Environment } from '../../types/checkout/CheckoutConfig.type';
3
2
  type TelemetryConfig = {
4
3
  environment: Environment;
5
4
  sessionId: string;
6
5
  };
6
+ type TelemetryClient = {
7
+ pushError: (error: Error, options?: {
8
+ context?: Record<string, string>;
9
+ }) => void;
10
+ pushEvent: (name: string, attributes?: Record<string, string>) => void;
11
+ pushMeasurement: (measurement: {
12
+ type: string;
13
+ values: Record<string, number>;
14
+ context?: Record<string, string>;
15
+ }) => void;
16
+ pushLog: (messages: string[], options?: {
17
+ level?: 'trace' | 'debug' | 'info' | 'log' | 'warn' | 'error';
18
+ context?: Record<string, string>;
19
+ }) => void;
20
+ setView: (view: {
21
+ name: string;
22
+ }) => void;
23
+ };
7
24
  export declare const initializeTelemetry: (config: TelemetryConfig) => TelemetryClient | null;
8
25
  export declare const getTelemetryInstance: () => TelemetryClient | null;
9
26
  export declare const pushError: (error: Error, context?: Record<string, string>) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"Telemetry.service.d.ts","sourceRoot":"","sources":["../../../src/services/telemetry/Telemetry.service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAI5E,KAAK,eAAe,GAAG;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAIF,eAAO,MAAM,mBAAmB,GAC9B,QAAQ,eAAe,KACtB,eAAe,GAAG,IAuDpB,CAAC;AAEF,eAAO,MAAM,oBAAoB,QAAO,eAAe,GAAG,IACvC,CAAC;AAEpB,eAAO,MAAM,SAAS,GAAI,OAAO,KAAK,EAAE,UAAU,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SAIvE,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,MAAM,MAAM,EACZ,aAAa,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SAKpC,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,MAAM,MAAM,EACZ,OAAO,MAAM,EACb,OAAO,MAAM,EACb,UAAU,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SAYjC,CAAC;AAEF,eAAO,MAAM,OAAO,GAClB,SAAS,MAAM,EACf,QAAO,MAAM,GAAG,MAAM,GAAG,OAAgB,EACzC,UAAU,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SAcjC,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,SAInC,CAAC"}
1
+ {"version":3,"file":"Telemetry.service.d.ts","sourceRoot":"","sources":["../../../src/services/telemetry/Telemetry.service.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAI5E,KAAK,eAAe,GAAG;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAOF,KAAK,eAAe,GAAG;IACrB,SAAS,EAAE,CACT,KAA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ACb,OAAO,MAAM,EACb,UAAU,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SAYjC,CAAC;AAEF,eAAO,MAAM,OAAO,GAClB,SAAS,MAAM,EACf,QAAO,MAAM,GAAG,MAAM,GAAG,OAAgB,EACzC,UAAU,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,SAcjC,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,MAAM,MAAM,SAInC,CAAC"}
package/dist/shared.js CHANGED
@@ -328,7 +328,7 @@ var e = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t
328
328
  url: ve(e.environment),
329
329
  app: {
330
330
  name: "odus-checkout",
331
- version: "1.7.0",
331
+ version: "1.7.7",
332
332
  environment: e.environment === "test" ? "sandbox" : "production"
333
333
  },
334
334
  isolate: !0,
@@ -2337,7 +2337,7 @@ var Zt = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvWpIQFjQQCPpaIlJKpegirp5kL
2337
2337
  }
2338
2338
  }
2339
2339
  async authorizePayment({ paymentId: e, checkoutKey: t, formData: n, returnUrl: r, applePayData: i, customCustomerData: a }) {
2340
- let o = this.getAttributionParams(), s = {};
2340
+ let o = this.getAttributionParams(), s;
2341
2341
  if (i) {
2342
2342
  let e = this.hasAddressData(i.billingAddress), t = this.hasAddressData(i.shippingAddress), n = {}, a = e ? i.billingAddress : t ? i.shippingAddress : void 0;
2343
2343
  a && this.hasAddressData(a) && (n.billingAddress = this.mapAddressToApiFormat(a));
@@ -3296,7 +3296,7 @@ var Zt = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvWpIQFjQQCPpaIlJKpegirp5kL
3296
3296
  });
3297
3297
  }, pe.prototype = o(ee, "then", function(e, t) {
3298
3298
  var r = O(this), i = re(m(this, j));
3299
- return r.parent = !0, i.ok = d(e) ? e : !0, i.fail = d(t) && t, i.domain = n ? M.domain : void 0, r.state === ce ? r.reactions.add(i) : g(function() {
3299
+ return r.parent = !0, i.ok = !d(e) || e, i.fail = d(t) && t, i.domain = n ? M.domain : void 0, r.state === ce ? r.reactions.add(i) : g(function() {
3300
3300
  ve(i, r);
3301
3301
  }), i.promise;
3302
3302
  }), me = function() {
@@ -3881,13 +3881,13 @@ var Hi = "https://js.verygoodvault.com", Ui = "https://js3.verygoodvault.com", W
3881
3881
  return e === "canary" || typeof e == "string" && /^\d{1,2}\.\d{1,2}(\.\d{1,2}(-beta\.\d{1,2})?)?$/.test(e) && !e.startsWith("1.");
3882
3882
  },
3883
3883
  integrity: function(e) {
3884
- return e ? typeof e == "string" : !0;
3884
+ return !e || typeof e == "string";
3885
3885
  },
3886
3886
  crossorigin: function(e) {
3887
- return e ? typeof e == "string" : !0;
3887
+ return !e || typeof e == "string";
3888
3888
  },
3889
3889
  logLevel: function(e) {
3890
- return e === void 0 ? !0 : e === "none";
3890
+ return e === void 0 || e === "none";
3891
3891
  }
3892
3892
  }, $i = function(e) {
3893
3893
  throw Error(Ji.IS_REQUIRED(e));
@@ -3946,7 +3946,7 @@ var Hi = "https://js.verygoodvault.com", Ui = "https://js3.verygoodvault.com", W
3946
3946
  }, sa = function(e, t) {
3947
3947
  if (e === "canary") return !0;
3948
3948
  var n = oa(e), r = oa(t);
3949
- return n.major === r.major ? n.minor === r.minor ? n.patch === r.patch ? !1 : n.patch > r.patch : n.minor > r.minor : n.major > r.major;
3949
+ return n.major === r.major ? n.minor === r.minor ? n.patch !== r.patch && n.patch > r.patch : n.minor > r.minor : n.major > r.major;
3950
3950
  }, ca = Hi, la = function() {
3951
3951
  try {
3952
3952
  return document.querySelectorAll("script[src^=\"" + ca + "/vgs-collect/\"]").length > 0;
@@ -4723,7 +4723,7 @@ var wa = (e) => {
4723
4723
  if (o && o !== a) {
4724
4724
  let t = `${i}@${o}`;
4725
4725
  return {
4726
- isValid: !1,
4726
+ isValid: !0,
4727
4727
  message: e("validation.emailSuggestion", { email: t }),
4728
4728
  suggestion: t
4729
4729
  };
@@ -4741,6 +4741,10 @@ var wa = (e) => {
4741
4741
  let n = t(e);
4742
4742
  return n.isValid ? void 0 : n.message;
4743
4743
  },
4744
+ emailSuggestion: (e) => {
4745
+ let n = t(e);
4746
+ return n.isValid && n.suggestion ? n.message : void 0;
4747
+ },
4744
4748
  phoneNumber: (t, n) => {
4745
4749
  if (!t.trim()) return e("validation.phoneNumberRequired");
4746
4750
  if (n) {
@@ -6131,7 +6135,7 @@ var po = (e) => e.replace(/([A-Z])/g, " $1").trim(), mo = Object.fromEntries(Obj
6131
6135
  }, Oo = class extends Q {
6132
6136
  span;
6133
6137
  constructor(e) {
6134
- super("div", []), this.span = document.createElement("span"), this.span.className = "form-helper-text", e.visible === !1 && this.span.classList.add("form-helper-text-hidden"), this.span.textContent = e.text || "", this.getElement().appendChild(this.span);
6138
+ super("div", []), this.span = document.createElement("span"), this.span.className = "form-helper-text", e.variant === "hint" && this.span.classList.add("form-helper-text-hint"), e.visible === !1 && this.span.classList.add("form-helper-text-hidden"), this.span.textContent = e.text || "", this.getElement().appendChild(this.span);
6135
6139
  }
6136
6140
  setText(e) {
6137
6141
  return this.span && (this.span.textContent = e), this;
@@ -6154,6 +6158,9 @@ var po = (e) => e.replace(/([A-Z])/g, " $1").trim(), mo = Object.fromEntries(Obj
6154
6158
  }, Ao = class extends Q {
6155
6159
  inputElement;
6156
6160
  helperText = null;
6161
+ hintText = null;
6162
+ hasError = !1;
6163
+ hint = null;
6157
6164
  constructor(e) {
6158
6165
  if (super("div", ["input-wrapper"]), e.label) {
6159
6166
  let t = new ko({
@@ -6175,7 +6182,7 @@ var po = (e) => e.replace(/([A-Z])/g, " $1").trim(), mo = Object.fromEntries(Obj
6175
6182
  let t = this.inputElement.getElement();
6176
6183
  t.style.fontFamily = `"${e.styles.fontFamily}", sans-serif`, t.style.color = e.styles.color, t.style.fontSize = `${e.styles.fontSize}px`, t.style.borderRadius = e.styles.borderRadius;
6177
6184
  }
6178
- e.onChange && this.inputElement.getElement().addEventListener("input", e.onChange), this.getElement().appendChild(this.inputElement.getElement()), e.error ? (this.helperText = new Oo({
6185
+ e.onChange && this.inputElement.getElement().addEventListener("input", e.onChange), this.getElement().appendChild(this.inputElement.getElement()), e.error ? (this.hasError = !0, this.helperText = new Oo({
6179
6186
  text: e.errorMsg,
6180
6187
  visible: !0
6181
6188
  }), this.appendChild(this.helperText)) : (this.helperText = new Oo({
@@ -6191,7 +6198,17 @@ var po = (e) => e.replace(/([A-Z])/g, " $1").trim(), mo = Object.fromEntries(Obj
6191
6198
  }
6192
6199
  setError(e, t) {
6193
6200
  let n = this.inputElement.getElement();
6194
- return e ? (n.classList.add("form-input-error"), !this.helperText && t ? (this.helperText = new Oo({ text: t }), this.appendChild(this.helperText)) : this.helperText && t ? this.helperText.setText(t).toggleVisibility(!0) : this.helperText && this.helperText.toggleVisibility(!0)) : (n.classList.remove("form-input-error"), this.helperText && this.helperText.toggleVisibility(!1)), this;
6201
+ return this.hasError = e, e ? (n.classList.add("form-input-error"), !this.helperText && t ? (this.helperText = new Oo({ text: t }), this.appendChild(this.helperText)) : this.helperText && t ? this.helperText.setText(t).toggleVisibility(!0) : this.helperText && this.helperText.toggleVisibility(!0)) : (n.classList.remove("form-input-error"), this.helperText && this.helperText.toggleVisibility(!1)), this.syncHint(), this;
6202
+ }
6203
+ setHint(e) {
6204
+ return this.hint = e, e && !this.hintText && (this.hintText = new Oo({
6205
+ text: e,
6206
+ visible: !1,
6207
+ variant: "hint"
6208
+ }), this.appendChild(this.hintText)), this.hintText?.setText(e ?? ""), this.syncHint(), this;
6209
+ }
6210
+ syncHint() {
6211
+ this.hintText?.toggleVisibility(!!this.hint && !this.hasError);
6195
6212
  }
6196
6213
  addEventListener(e, t, n) {
6197
6214
  return this.inputElement.getElement().addEventListener(e, t, n), this;
@@ -6876,7 +6893,7 @@ var po = (e) => e.replace(/([A-Z])/g, " $1").trim(), mo = Object.fromEntries(Obj
6876
6893
  value: t,
6877
6894
  autocomplete: c,
6878
6895
  onChange: (e) => {
6879
- this.input.setError(!1), this.trim(), n(e);
6896
+ this.input.setError(!1), this.input.setHint(null), this.trim(), n(e);
6880
6897
  }
6881
6898
  }), this.input.addEventListener("blur", (e) => {
6882
6899
  r(e);
@@ -6899,6 +6916,10 @@ var po = (e) => e.replace(/([A-Z])/g, " $1").trim(), mo = Object.fromEntries(Obj
6899
6916
  let n = this.input.getElement().querySelector("input");
6900
6917
  return document.activeElement !== n && this.input.setError(e, t), this;
6901
6918
  }
6919
+ setSuggestion(e) {
6920
+ let t = this.input.getElement().querySelector("input");
6921
+ return document.activeElement !== t && this.input.setHint(e), this;
6922
+ }
6902
6923
  getElement() {
6903
6924
  return this.input.getElement();
6904
6925
  }
@@ -5,6 +5,11 @@
5
5
  */
6
6
  export declare const createValidationSchema: () => {
7
7
  email: (value: string) => string | undefined;
8
+ /**
9
+ * Advisory "did you mean" hint for a likely domain typo.
10
+ * Never blocks submission - the email is already valid when this returns.
11
+ */
12
+ emailSuggestion: (value: string) => string | undefined;
8
13
  phoneNumber: (value: string, countryCode?: string) => string | undefined;
9
14
  name: (value: string) => string | undefined;
10
15
  cardExpiry: (value: string) => string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"createValidationSchema.d.ts","sourceRoot":"","sources":["../../../src/utils/validation/createValidationSchema.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;mBAKhB,MAAM,KAAG,MAAM,GAAG,SAAS;yBAKrB,MAAM,gBAAgB,MAAM,KAAG,MAAM,GAAG,SAAS;kBAiCxD,MAAM,KAAG,MAAM,GAAG,SAAS;wBAOrB,MAAM,KAAG,MAAM,GAAG,SAAS;wBA8B3B,MAAM,KAAG,MAAM,GAAG,SAAS;qBA0B9B,MAAM,eAAe,MAAM,KAAG,MAAM,GAAG,SAAS;oBAsBjD,MAAM,KAAG,MAAM,GAAG,SAAS;uBAOxB,MAAM,KAAG,MAAM,GAAG,SAAS;sBAO5B,MAAM,KAAG,MAAM,GAAG,SAAS;kBAO/B,MAAM,KAAG,MAAM,GAAG,SAAS;mBAO1B,MAAM,YAAY,MAAM,KAAG,MAAM,GAAG,SAAS;qBAU3C,MAAM,KAAG,MAAM,GAAG,SAAS;qBAO3B,MAAM,KAAG,MAAM,GAAG,SAAS;CAO/C,CAAC"}
1
+ {"version":3,"file":"createValidationSchema.d.ts","sourceRoot":"","sources":["../../../src/utils/validation/createValidationSchema.ts"],"names":[],"mappings":"AAQA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;mBAKhB,MAAM,KAAG,MAAM,GAAG,SAAS;IAK1C;;;OAGG;6BACsB,MAAM,KAAG,MAAM,GAAG,SAAS;yBAK/B,MAAM,gBAAgB,MAAM,KAAG,MAAM,GAAG,SAAS;kBAiCxD,MAAM,KAAG,MAAM,GAAG,SAAS;wBAOrB,MAAM,KAAG,MAAM,GAAG,SAAS;wBA8B3B,MAAM,KAAG,MAAM,GAAG,SAAS;qBA0B9B,MAAM,eAAe,MAAM,KAAG,MAAM,GAAG,SAAS;oBAsBjD,MAAM,KAAG,MAAM,GAAG,SAAS;uBAOxB,MAAM,KAAG,MAAM,GAAG,SAAS;sBAO5B,MAAM,KAAG,MAAM,GAAG,SAAS;kBAO/B,MAAM,KAAG,MAAM,GAAG,SAAS;mBAO1B,MAAM,YAAY,MAAM,KAAG,MAAM,GAAG,SAAS;qBAU3C,MAAM,KAAG,MAAM,GAAG,SAAS;qBAO3B,MAAM,KAAG,MAAM,GAAG,SAAS;CAO/C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"emailValidator.d.ts","sourceRoot":"","sources":["../../../src/utils/validation/emailValidator.ts"],"names":[],"mappings":"AAMA,UAAU,qBAAqB;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc;2BAGK,MAAM,KAAG,qBAAqB;CAuF7D,CAAC"}
1
+ {"version":3,"file":"emailValidator.d.ts","sourceRoot":"","sources":["../../../src/utils/validation/emailValidator.ts"],"names":[],"mappings":"AAMA,UAAU,qBAAqB;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED;;;;GAIG;AACH,eAAO,MAAM,cAAc;2BAGK,MAAM,KAAG,qBAAqB;CAwF7D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odus/checkout",
3
- "version": "1.7.0",
3
+ "version": "1.7.7",
4
4
  "displayName": "Odus Checkout SDK",
5
5
  "keywords": [
6
6
  "odus",
@@ -81,7 +81,8 @@
81
81
  "options": {
82
82
  "outputPath": "libs/checkout/dist",
83
83
  "main": "libs/checkout/src/index.ts",
84
- "tsConfig": "libs/checkout/tsconfig.lib.json"
84
+ "tsConfig": "libs/checkout/tsconfig.lib.json",
85
+ "generatePackageJson": false
85
86
  },
86
87
  "defaultConfiguration": "production",
87
88
  "configurations": {
@@ -99,6 +100,7 @@
99
100
  "outputPath": "libs/checkout/dist",
100
101
  "main": "libs/checkout/src/index.ts",
101
102
  "tsConfig": "libs/checkout/tsconfig.lib.json",
103
+ "generatePackageJson": false,
102
104
  "watch": true
103
105
  },
104
106
  "defaultConfiguration": "development",
@@ -117,18 +119,16 @@
117
119
  "^typecheck"
118
120
  ],
119
121
  "options": {
120
- "command": "tsc --build --emitDeclarationOnly --force",
122
+ "command": "tsgo --build --emitDeclarationOnly --force",
121
123
  "cwd": "libs/checkout"
122
124
  }
123
125
  }
124
126
  }
125
127
  },
126
128
  "dependencies": {
129
+ "@types/applepayjs": "^14.0.9",
127
130
  "@vgs/collect-js": "^0.8.0",
128
131
  "jsencrypt": "^3.5.4",
129
132
  "libphonenumber-js": "^1.13.7"
130
- },
131
- "devDependencies": {
132
- "@types/applepayjs": "^14.0.9"
133
133
  }
134
134
  }