rebill-web-components-sdk 1.8.6 → 1.8.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.
Files changed (63) hide show
  1. package/dist/cjs/rebill-button.cjs.entry.js +2 -2
  2. package/dist/cjs/rebill-button.entry.cjs.js.map +1 -1
  3. package/dist/cjs/rebill-checkout.cjs.entry.js +14 -13
  4. package/dist/cjs/rebill-checkout.entry.cjs.js.map +1 -1
  5. package/dist/collection/components/checkout/rebill-checkout.js +14 -13
  6. package/dist/collection/components/checkout/rebill-checkout.js.map +1 -1
  7. package/dist/collection/components/shared/button/button.css +8 -8
  8. package/dist/collection/components/shared/button/button.js +1 -1
  9. package/dist/collection/components/shared/button/button.js.map +1 -1
  10. package/dist/components/apm-checkout.js +1 -1
  11. package/dist/components/discount-coupon.js +1 -1
  12. package/dist/components/otp-component.js +1 -1
  13. package/dist/components/{p-DZI13wtJ.js → p-C9MOJKD4.js} +3 -3
  14. package/dist/components/{p-DZI13wtJ.js.map → p-C9MOJKD4.js.map} +1 -1
  15. package/dist/components/{p-BwpjM0Zf.js → p-CG7X0Z3m.js} +3 -3
  16. package/dist/components/{p-BwpjM0Zf.js.map → p-CG7X0Z3m.js.map} +1 -1
  17. package/dist/components/{p-CcZQGsZ8.js → p-CL6COaBj.js} +3 -3
  18. package/dist/components/{p-CcZQGsZ8.js.map → p-CL6COaBj.js.map} +1 -1
  19. package/dist/components/{p-C69QonMT.js → p-Cb9WV_NL.js} +3 -3
  20. package/dist/components/{p-C69QonMT.js.map → p-Cb9WV_NL.js.map} +1 -1
  21. package/dist/components/{p-C1THyrZh.js → p-D6oZSjpl.js} +3 -3
  22. package/dist/components/{p-C1THyrZh.js.map → p-D6oZSjpl.js.map} +1 -1
  23. package/dist/components/{p-W2zrB3tA.js → p-D6rWKLL8.js} +3 -3
  24. package/dist/components/{p-W2zrB3tA.js.map → p-D6rWKLL8.js.map} +1 -1
  25. package/dist/components/{p-ByRz5YWN.js → p-DavSndum.js} +3 -3
  26. package/dist/components/{p-ByRz5YWN.js.map → p-DavSndum.js.map} +1 -1
  27. package/dist/components/{p-Cp7iacZh.js → p-DgIOuUN1.js} +4 -4
  28. package/dist/components/p-DgIOuUN1.js.map +1 -0
  29. package/dist/components/{p-CHIajnDg.js → p-DljAUFZC.js} +3 -3
  30. package/dist/components/{p-CHIajnDg.js.map → p-DljAUFZC.js.map} +1 -1
  31. package/dist/components/{p-djD6Hoxd.js → p-Dum_FpHV.js} +3 -3
  32. package/dist/components/{p-djD6Hoxd.js.map → p-Dum_FpHV.js.map} +1 -1
  33. package/dist/components/{p-DJEotc3n.js → p-FFCF5_17.js} +4 -4
  34. package/dist/components/{p-DJEotc3n.js.map → p-FFCF5_17.js.map} +1 -1
  35. package/dist/components/{p-BBiYeY9C.js → p-LoXXimMi.js} +3 -3
  36. package/dist/components/{p-BBiYeY9C.js.map → p-LoXXimMi.js.map} +1 -1
  37. package/dist/components/payment-button.js +1 -1
  38. package/dist/components/rebill-button.js +1 -1
  39. package/dist/components/rebill-checkout.js +25 -24
  40. package/dist/components/rebill-checkout.js.map +1 -1
  41. package/dist/components/rebill-mode-sandbox-mobile.js +1 -1
  42. package/dist/components/rebill-mode-sandbox.js +1 -1
  43. package/dist/components/rebill-renewal.js +5 -5
  44. package/dist/components/rebill-summary.js +1 -1
  45. package/dist/components/renewal-success-page.js +1 -1
  46. package/dist/components/root-component.js +1 -1
  47. package/dist/components/success-page.js +1 -1
  48. package/dist/components/user-information-static.js +1 -1
  49. package/dist/components/user-information.js +1 -1
  50. package/dist/esm/rebill-button.entry.js +2 -2
  51. package/dist/esm/rebill-button.entry.js.map +1 -1
  52. package/dist/esm/rebill-checkout.entry.js +14 -13
  53. package/dist/esm/rebill-checkout.entry.js.map +1 -1
  54. package/dist/rebill-web-components-sdk/{p-91a86735.entry.js → p-297a5c76.entry.js} +2 -2
  55. package/dist/rebill-web-components-sdk/{p-91a86735.entry.js.map → p-297a5c76.entry.js.map} +1 -1
  56. package/dist/rebill-web-components-sdk/p-738fbc04.entry.js +2 -0
  57. package/dist/rebill-web-components-sdk/{p-b3837047.entry.js.map → p-738fbc04.entry.js.map} +1 -1
  58. package/dist/rebill-web-components-sdk/rebill-button.entry.esm.js.map +1 -1
  59. package/dist/rebill-web-components-sdk/rebill-checkout.entry.esm.js.map +1 -1
  60. package/dist/rebill-web-components-sdk/rebill-web-components-sdk.esm.js +1 -1
  61. package/package.json +1 -1
  62. package/dist/components/p-Cp7iacZh.js.map +0 -1
  63. package/dist/rebill-web-components-sdk/p-b3837047.entry.js +0 -2
@@ -2,31 +2,31 @@ import { proxyCustomElement, H, createEvent, h } from './p-8BpuJ_V5.js';
2
2
  import { c as create$6 } from './p-MMCcKmy_.js';
3
3
  import { a as api } from './p-Dh-yfb0D.js';
4
4
  import { m as mapRequiredFields, g as generateIdempotencyKey, P as PaymentMessageE, C as CheckoutStatusE, i as isFieldRequired, a as PaymentErrorMapper, b as getFieldValues } from './p-CfXDDNW3.js';
5
- import { P as PaymentMethodMapper, S as STATUS_REQ_CHECKOUT_APM, d as defineCustomElement$M } from './p-C69QonMT.js';
6
- import { d as defineCustomElement$C } from './p-djD6Hoxd.js';
5
+ import { P as PaymentMethodMapper, S as STATUS_REQ_CHECKOUT_APM, d as defineCustomElement$M } from './p-Cb9WV_NL.js';
6
+ import { d as defineCustomElement$C } from './p-Dum_FpHV.js';
7
7
  import { d as defineCustomElement$d } from './p-DFtMrdcs.js';
8
- import { d as defineCustomElement$c } from './p-DJEotc3n.js';
9
- import { d as defineCustomElement$2 } from './p-CcZQGsZ8.js';
8
+ import { d as defineCustomElement$c } from './p-FFCF5_17.js';
9
+ import { d as defineCustomElement$2 } from './p-CL6COaBj.js';
10
10
  import { d as defineCustomElement$E } from './p-DSgE2Das.js';
11
11
  import { s as state, S as SESSION_TYPE_ENUM, I as I18nService, a as SessionStore, i as initializeI18nWithSessionLanguage, P as PAYMENT_METHOD_ENUM, o as onChange, b as SESSION_ITEM_TYPE_ENUM } from './p-DRQAoEdx.js';
12
12
  import { B as BREAKPOINT_ENUM, g as getBreakpoint, i as isBreakpointBelow } from './p-Do_vNuMa.js';
13
13
  import { G as GoogleMapsService, d as defineCustomElement$x } from './p-ViIABC0h.js';
14
- import { d as defineCustomElement$f } from './p-CHIajnDg.js';
14
+ import { d as defineCustomElement$f } from './p-DljAUFZC.js';
15
15
  import { d as defineCustomElement$L } from './p-BPX70kE2.js';
16
16
  import { d as defineCustomElement$K } from './p-B9KR0Gso.js';
17
17
  import { d as defineCustomElement$J } from './p-Bfdj_YPW.js';
18
18
  import { d as defineCustomElement$I } from './p-DypoldDs.js';
19
19
  import { d as defineCustomElement$H } from './p-D-dSMSHx.js';
20
- import { d as defineCustomElement$G } from './p-BBiYeY9C.js';
20
+ import { d as defineCustomElement$G } from './p-LoXXimMi.js';
21
21
  import { d as defineCustomElement$F } from './p-CjLCcaJT.js';
22
- import { d as defineCustomElement$D } from './p-W2zrB3tA.js';
22
+ import { d as defineCustomElement$D } from './p-D6rWKLL8.js';
23
23
  import { d as defineCustomElement$B } from './p-CHFChfES.js';
24
24
  import { d as defineCustomElement$A } from './p-fkYjxgpL.js';
25
25
  import { d as defineCustomElement$z } from './p-CQSATXJ-.js';
26
26
  import { d as defineCustomElement$y } from './p-DtCi6pm2.js';
27
27
  import { d as defineCustomElement$w } from './p-Dnq2iRjk.js';
28
28
  import { d as defineCustomElement$v } from './p-B8YfMPTn.js';
29
- import { d as defineCustomElement$u } from './p-Cp7iacZh.js';
29
+ import { d as defineCustomElement$u } from './p-DgIOuUN1.js';
30
30
  import { d as defineCustomElement$t } from './p-DwxaSzBh.js';
31
31
  import { d as defineCustomElement$s } from './p-N5kDm5Y3.js';
32
32
  import { d as defineCustomElement$r } from './p-0Ns-UIj8.js';
@@ -41,15 +41,15 @@ import { d as defineCustomElement$j } from './p-B8nKYf89.js';
41
41
  import { d as defineCustomElement$i } from './p-CCuYHwTH.js';
42
42
  import { d as defineCustomElement$h } from './p-B9tMhFPq.js';
43
43
  import { d as defineCustomElement$g } from './p-CJdwlE8H.js';
44
- import { d as defineCustomElement$e } from './p-BwpjM0Zf.js';
44
+ import { d as defineCustomElement$e } from './p-CG7X0Z3m.js';
45
45
  import { d as defineCustomElement$b } from './p-Z6xuPDXH.js';
46
46
  import { d as defineCustomElement$a } from './p-DR4cbxRb.js';
47
47
  import { d as defineCustomElement$9 } from './p-DJX9uT_Q.js';
48
48
  import { d as defineCustomElement$8 } from './p-FQYyAgg1.js';
49
49
  import { d as defineCustomElement$7 } from './p-DnaF5giI.js';
50
50
  import { d as defineCustomElement$6 } from './p-CJfuw7NA.js';
51
- import { d as defineCustomElement$5 } from './p-C1THyrZh.js';
52
- import { d as defineCustomElement$4 } from './p-ByRz5YWN.js';
51
+ import { d as defineCustomElement$5 } from './p-D6oZSjpl.js';
52
+ import { d as defineCustomElement$4 } from './p-DavSndum.js';
53
53
  import { d as defineCustomElement$3 } from './p-DGFQ0O94.js';
54
54
 
55
55
  /**
@@ -366,36 +366,36 @@ const RebillCheckout$1 = /*@__PURE__*/ proxyCustomElement(class RebillCheckout e
366
366
  const customerInformation = this.parsedCustomerInformation;
367
367
  return {
368
368
  // Email
369
- 'email': formData.email || customerInformation?.email || sessionUserInfo.email,
369
+ 'email': formData?.email || customerInformation?.email || sessionUserInfo.email,
370
370
  // Full name
371
- 'fullName': formData.fullName || customerInformation?.fullName || sessionUserInfo.fullName,
371
+ 'fullName': formData?.fullName || customerInformation?.fullName || sessionUserInfo.fullName,
372
372
  // Phone
373
- 'countryCodePhoneNumber': formData.countryCodePhoneNumber ||
373
+ 'countryCodePhoneNumber': formData?.countryCodePhoneNumber ||
374
374
  customerInformation?.phoneNumber?.countryCode ||
375
375
  customerInformation?.countryCode ||
376
376
  sessionUserInfo.countryCode,
377
- 'phoneNumber': formData.phoneNumber ||
377
+ 'phoneNumber': formData?.phoneNumber ||
378
378
  customerInformation?.phoneNumber?.number ||
379
379
  sessionUserInfo.phoneNumber,
380
380
  // Document
381
- 'documentType': formData.documentType || customerInformation?.documentType || sessionUserInfo.documentType,
382
- 'documentNumber': formData.documentNumber ||
381
+ 'documentType': formData?.documentType || customerInformation?.documentType || sessionUserInfo.documentType,
382
+ 'documentNumber': formData?.documentNumber ||
383
383
  customerInformation?.documentNumber ||
384
384
  sessionUserInfo.documentNumber,
385
385
  // Billing address
386
- 'billing-country': formData['billing-country'] ||
386
+ 'billing-country': formData?.['billing-country'] ||
387
387
  customerInformation?.address?.billingAddress?.country ||
388
388
  sessionUserInfo.address?.billingAddress?.country,
389
- 'billing-state': formData['billing-state'] ||
389
+ 'billing-state': formData?.['billing-state'] ||
390
390
  customerInformation?.address?.billingAddress?.state ||
391
391
  sessionUserInfo.address?.billingAddress?.state,
392
- 'billing-address': formData['billing-address'] ||
392
+ 'billing-address': formData?.['billing-address'] ||
393
393
  customerInformation?.address?.billingAddress?.address ||
394
394
  sessionUserInfo.address?.billingAddress?.address,
395
- 'billing-city': formData['billing-city'] ||
395
+ 'billing-city': formData?.['billing-city'] ||
396
396
  customerInformation?.address?.billingAddress?.city ||
397
397
  sessionUserInfo.address?.billingAddress?.city,
398
- 'billing-zip': formData['billing-zip'] ||
398
+ 'billing-zip': formData?.['billing-zip'] ||
399
399
  customerInformation?.address?.billingAddress?.zip ||
400
400
  sessionUserInfo.address?.billingAddress?.zip,
401
401
  };
@@ -759,6 +759,7 @@ const RebillCheckout$1 = /*@__PURE__*/ proxyCustomElement(class RebillCheckout e
759
759
  }
760
760
  async handleSubmitAPM(data) {
761
761
  // Only handle cash and transfer payments for now
762
+ console.log('handleSubmitAPM', this.currentPaymentMethod);
762
763
  if (this.currentPaymentMethod !== PAYMENT_METHOD_ENUM.CASH &&
763
764
  this.currentPaymentMethod !== PAYMENT_METHOD_ENUM.BANK_TRANSFER) {
764
765
  return;
@@ -1056,8 +1057,8 @@ const RebillCheckout$1 = /*@__PURE__*/ proxyCustomElement(class RebillCheckout e
1056
1057
  label: country.country,
1057
1058
  value: country.isoCountryCode,
1058
1059
  }));
1059
- const renderRebillSummary = (props = {}) => (h("rebill-summary", { key: '2ceac473a4a03440363d53f1a8367e6a884a0919', totalAmount: state.data.pricing.total, currency: state.data.pricing.currency, itemTitle: state._session?.getTitle(), itemDescription: state._session?.getDescription(), itemAmount: state.data.pricing.subtotal, subtotal: state.data.pricing.subtotal, allowCoupon: state._session?.getAllowCoupon(this.displayConfig), currentBreakpoint: this.breakpoint, planFrequency: state._session?.getPlanFrequency(), planFrequencyCount: state._session?.getPlanFrequencyCount(), discountType: state.data.discount.discountType, discountedPercentage: state.data.discount.discountedPercentage, discountDuration: state.data.discount.discountDuration, discountAmount: state.data.discount.discountAmount, ...props }));
1060
- return (state.isInitialized && (h(h.Fragment, null, this.showRefreshModal && h("rebill-modal-overlay", { key: 'c545ffd6021816b2fbcc0a47b85e79827dd8889a' }), this.displayConfig.processingPayment && (h("rebill-processing-payment", { key: '17a806c91368f6c70d3481bb3c8c67cc7adb5b9c', style: { display: this.isCardSubmitting ? 'block' : 'none' } })), this.displayConfig.successPage &&
1060
+ const renderRebillSummary = (props = {}) => (h("rebill-summary", { key: '6b146657e3d9f93d213fafd3b09738ec48b89dd0', totalAmount: state.data.pricing.total, currency: state.data.pricing.currency, itemTitle: state._session?.getTitle(), itemDescription: state._session?.getDescription(), itemAmount: state.data.pricing.subtotal, subtotal: state.data.pricing.subtotal, allowCoupon: state._session?.getAllowCoupon(this.displayConfig), currentBreakpoint: this.breakpoint, planFrequency: state._session?.getPlanFrequency(), planFrequencyCount: state._session?.getPlanFrequencyCount(), discountType: state.data.discount.discountType, discountedPercentage: state.data.discount.discountedPercentage, discountDuration: state.data.discount.discountDuration, discountAmount: state.data.discount.discountAmount, ...props }));
1061
+ return (state.isInitialized && (h(h.Fragment, null, this.showRefreshModal && h("rebill-modal-overlay", { key: 'd13b30218fbe185f4971e58b5af195c5fda576d0' }), this.displayConfig.processingPayment && (h("rebill-processing-payment", { key: '18f514e8c1382affe1155ec74332d592a5d8ac39', style: { display: this.isCardSubmitting ? 'block' : 'none' } })), this.displayConfig.successPage &&
1061
1062
  this.isPaymentApproved() &&
1062
1063
  state.isInitialized ? (h("success-page", { typePaymentMethod: state.data.paymentMethodSelected, paymentMethodName: PaymentMethodMapper.mapToAPMPaymentMethod(state.data.paymentMethodSelected ||
1063
1064
  state.data.payment?.paymentMethodType, state.data?.pricing?.country), country: state.data?.pricing?.country, bank: state.data.payment?.paymentMethodMetadata?.bank ||