rebill-web-components-sdk 1.10.1 → 1.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/apm-checkout_14.cjs.entry.js +5 -5
- package/dist/cjs/card-fields-wrapper.card-identification.card-iframe.card-skeleton.rebill-address-form.rebill-address-search.rebill-input-combo.rebill-input-phone.rebill-installments.selectable-card.single-payment-method.entry.cjs.js.map +1 -1
- package/dist/cjs/card-fields-wrapper_11.cjs.entry.js +18 -18
- package/dist/cjs/collapsible-card_3.cjs.entry.js +2 -2
- package/dist/cjs/index-C-VTnc0I.js.map +1 -1
- package/dist/cjs/input-otp.cjs.entry.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/organization-logo_4.cjs.entry.js +1 -1
- package/dist/cjs/otp-component_5.cjs.entry.js +16 -16
- package/dist/cjs/rebill-alert.cjs.entry.js +2 -2
- package/dist/cjs/rebill-autofill-detector.cjs.entry.js +184 -0
- package/dist/cjs/rebill-autofill-detector.entry.cjs.js.map +1 -0
- package/dist/cjs/rebill-card-carousel.cjs.entry.js +1 -1
- package/dist/cjs/rebill-card.cjs.entry.js +1 -1
- package/dist/cjs/rebill-container_2.cjs.entry.js +2 -2
- package/dist/cjs/rebill-flex-container.cjs.entry.js +1 -1
- package/dist/cjs/rebill-form.cjs.entry.js +1 -1
- package/dist/cjs/rebill-grid-container.cjs.entry.js +1 -1
- package/dist/cjs/rebill-input-select.cjs.entry.js +2 -2
- package/dist/cjs/rebill-input-text.cjs.entry.js +2 -2
- package/dist/cjs/rebill-mode-sandbox_2.cjs.entry.js +1 -1
- package/dist/cjs/rebill-timeline-debit-day_2.cjs.entry.js +2 -2
- package/dist/cjs/rebill-vertical-divider.cjs.entry.js +1 -1
- package/dist/cjs/rebill-web-components-sdk.cjs.js +1 -1
- package/dist/cjs/renewal-success-page.cjs.entry.js +2 -2
- package/dist/cjs/root-component.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/address/address-search/address-search.js +4 -4
- package/dist/collection/components/checkout/address/address-search/address-search.js.map +1 -1
- package/dist/collection/components/checkout/address/autofill-detector/autofill-detector.css +0 -0
- package/dist/collection/components/checkout/address/autofill-detector/autofill-detector.js +277 -0
- package/dist/collection/components/checkout/address/autofill-detector/autofill-detector.js.map +1 -0
- package/dist/collection/components/checkout/apm/qr-code/qr-code.js +2 -2
- package/dist/collection/components/checkout/apm/reference-code/reference-code.js +1 -1
- package/dist/collection/components/checkout/card-success-page/success-page.js +9 -9
- package/dist/collection/components/checkout/checkout-form/checkout-form.js +1 -1
- package/dist/collection/components/checkout/otp/otp.js +4 -4
- package/dist/collection/components/checkout/payment-method-selector/card-fields/card-fields-wrapper.js +2 -2
- package/dist/collection/components/checkout/payment-method-selector/card-fields/identification/identification.js +1 -1
- package/dist/collection/components/checkout/payment-method-selector/card-fields/iframe/CardIframe.js +2 -2
- package/dist/collection/components/checkout/payment-method-selector/card-fields/iframe/skeleton/CardSkeleton.js +1 -1
- package/dist/collection/components/checkout/payment-method-selector/card-fields/installments/installments.js +2 -2
- package/dist/collection/components/checkout/rebill-footer/rebill-footer.js +1 -1
- package/dist/collection/components/checkout/user-information/user-information-phone.js +1 -1
- package/dist/collection/components/checkout/user-information/user-information.js +3 -3
- package/dist/collection/components/renewal/renewal-success-page/renewal-success-page.js +2 -2
- package/dist/collection/components/root-component/root-component.js +1 -1
- package/dist/collection/components/shared/alert/alert.js +2 -2
- package/dist/collection/components/shared/card/card.js +1 -1
- package/dist/collection/components/shared/card-carousel/card-carousel.js +1 -1
- package/dist/collection/components/shared/collapsible-card/collapsible-card.js +1 -1
- package/dist/collection/components/shared/divider/divider.js +1 -1
- package/dist/collection/components/shared/divider/vertical-divider.js +1 -1
- package/dist/collection/components/shared/form/form.js +1 -1
- package/dist/collection/components/shared/inputs/input-checkbox/input-checkbox.js +1 -1
- package/dist/collection/components/shared/inputs/input-combo/input-combo.js +1 -1
- package/dist/collection/components/shared/inputs/input-otp/input-otp.js +2 -2
- package/dist/collection/components/shared/inputs/input-phone/input-phone.js +2 -2
- package/dist/collection/components/shared/inputs/input-select/input-select.js +2 -2
- package/dist/collection/components/shared/inputs/input-text/input-text.js +2 -2
- package/dist/collection/components/shared/layouts/generics/container.js +1 -1
- package/dist/collection/components/shared/layouts/generics/flex.js +1 -1
- package/dist/collection/components/shared/layouts/generics/grid.js +1 -1
- package/dist/collection/components/shared/mode-sandbox/mode-sandbox-mobile.js +1 -1
- package/dist/collection/components/shared/selectable-card/selectable-card.js +2 -2
- package/dist/collection/components/shared/singlePaymentMethod/singlePaymentMethod.js +4 -4
- package/dist/collection/components/shared/timeline/timeline-debit-day.js +1 -1
- package/dist/collection/components/shared/timeline/timeline-free-trial.js +1 -1
- package/dist/components/apm-checkout.js +1 -1
- package/dist/components/bank-transfer.js +1 -1
- package/dist/components/card-fields-wrapper.js +1 -1
- package/dist/components/card-identification.js +1 -1
- package/dist/components/card-iframe.js +1 -1
- package/dist/components/card-skeleton.js +1 -1
- package/dist/components/change-card-success.js +1 -1
- package/dist/components/collapsible-card.js +1 -1
- package/dist/components/discount-coupon.js +1 -1
- package/dist/components/input-otp.js +1 -1
- package/dist/components/otp-component.js +1 -1
- package/dist/components/{p-Cy4AWMDG.js → p-0y1EkPsV.js} +4 -4
- package/dist/components/{p-Cy4AWMDG.js.map → p-0y1EkPsV.js.map} +1 -1
- package/dist/components/{p-BDqkAG1R.js → p-4NckTb-f.js} +4 -4
- package/dist/components/{p-BDqkAG1R.js.map → p-4NckTb-f.js.map} +1 -1
- package/dist/components/{p-CzOgUoiH.js → p-6gwr59D_.js} +6 -6
- package/dist/components/{p-CzOgUoiH.js.map → p-6gwr59D_.js.map} +1 -1
- package/dist/components/p-8BpuJ_V5.js.map +1 -1
- package/dist/components/{p-UUAqyvL7.js → p-AFaRRX6m.js} +14 -8
- package/dist/components/p-AFaRRX6m.js.map +1 -0
- package/dist/components/{p-BM7arRE4.js → p-BFqhozQ0.js} +4 -4
- package/dist/components/{p-BM7arRE4.js.map → p-BFqhozQ0.js.map} +1 -1
- package/dist/components/{p-B-Svp05F.js → p-BMX_V4NR.js} +5 -5
- package/dist/components/{p-B-Svp05F.js.map → p-BMX_V4NR.js.map} +1 -1
- package/dist/components/{p-xqbCGsb4.js → p-BMdmsMrv.js} +6 -6
- package/dist/components/{p-xqbCGsb4.js.map → p-BMdmsMrv.js.map} +1 -1
- package/dist/components/{p-BU6zbBCY.js → p-BhAb6Xb9.js} +4 -4
- package/dist/components/{p-BU6zbBCY.js.map → p-BhAb6Xb9.js.map} +1 -1
- package/dist/components/{p-Dow9Oa1e.js → p-BldhoZKa.js} +3 -3
- package/dist/components/{p-Dow9Oa1e.js.map → p-BldhoZKa.js.map} +1 -1
- package/dist/components/{p-9OVqnxbl.js → p-BmSGsGCP.js} +5 -5
- package/dist/components/{p-9OVqnxbl.js.map → p-BmSGsGCP.js.map} +1 -1
- package/dist/components/{p-CEM6OODt.js → p-Bo6Oy_rw.js} +12 -12
- package/dist/components/{p-CEM6OODt.js.map → p-Bo6Oy_rw.js.map} +1 -1
- package/dist/components/{p-hR7xARTs.js → p-BoKyp_AW.js} +3 -3
- package/dist/components/{p-hR7xARTs.js.map → p-BoKyp_AW.js.map} +1 -1
- package/dist/components/{p-DdCguZ5r.js → p-Bx5CO1DQ.js} +10 -10
- package/dist/components/{p-DdCguZ5r.js.map → p-Bx5CO1DQ.js.map} +1 -1
- package/dist/components/{p-BFb0C4n-.js → p-C0ukGjTv.js} +3 -3
- package/dist/components/{p-BFb0C4n-.js.map → p-C0ukGjTv.js.map} +1 -1
- package/dist/components/{p-BXdI0xHE.js → p-C62DbryS.js} +3 -3
- package/dist/components/{p-BXdI0xHE.js.map → p-C62DbryS.js.map} +1 -1
- package/dist/components/{p-BLD5qbS8.js → p-C9-xmJLv.js} +4 -4
- package/dist/components/{p-BLD5qbS8.js.map → p-C9-xmJLv.js.map} +1 -1
- package/dist/components/{p-DZKrZZwd.js → p-CJrBfF7b.js} +14 -14
- package/dist/components/{p-DZKrZZwd.js.map → p-CJrBfF7b.js.map} +1 -1
- package/dist/components/{p-BS5TOpnh.js → p-CNgxCj8J.js} +4 -4
- package/dist/components/{p-BS5TOpnh.js.map → p-CNgxCj8J.js.map} +1 -1
- package/dist/components/{p-CYv4ffn1.js → p-CSgNGaiV.js} +3 -3
- package/dist/components/{p-CYv4ffn1.js.map → p-CSgNGaiV.js.map} +1 -1
- package/dist/components/{p-Dk3CTNMK.js → p-CYy5NAoy.js} +5 -5
- package/dist/components/{p-Dk3CTNMK.js.map → p-CYy5NAoy.js.map} +1 -1
- package/dist/components/p-Cb2XT9Pi.js +206 -0
- package/dist/components/p-Cb2XT9Pi.js.map +1 -0
- package/dist/components/{p-cS0M4sWc.js → p-Ccqq4BcO.js} +10 -10
- package/dist/components/{p-cS0M4sWc.js.map → p-Ccqq4BcO.js.map} +1 -1
- package/dist/components/{p-yRI_ZFvd.js → p-ChtneCGm.js} +3 -3
- package/dist/components/{p-yRI_ZFvd.js.map → p-ChtneCGm.js.map} +1 -1
- package/dist/components/{p-CY7UQa2f.js → p-CoRQkXBT.js} +6 -6
- package/dist/components/{p-CY7UQa2f.js.map → p-CoRQkXBT.js.map} +1 -1
- package/dist/components/{p-bKjZk5T9.js → p-CpBlNxfh.js} +3 -3
- package/dist/components/{p-bKjZk5T9.js.map → p-CpBlNxfh.js.map} +1 -1
- package/dist/components/{p-C5qSTRqe.js → p-Cs-pA3OO.js} +3 -3
- package/dist/components/{p-C5qSTRqe.js.map → p-Cs-pA3OO.js.map} +1 -1
- package/dist/components/{p-OIK5VUVA.js → p-CtrJsF6L.js} +3 -3
- package/dist/components/{p-OIK5VUVA.js.map → p-CtrJsF6L.js.map} +1 -1
- package/dist/components/{p-CcFiotn1.js → p-CvW9G05r.js} +7 -7
- package/dist/components/{p-CcFiotn1.js.map → p-CvW9G05r.js.map} +1 -1
- package/dist/components/{p-BVVBiDNt.js → p-CwYDVqU6.js} +3 -3
- package/dist/components/{p-BVVBiDNt.js.map → p-CwYDVqU6.js.map} +1 -1
- package/dist/components/{p-ClLeKt1B.js → p-D-FRnRNO.js} +4 -4
- package/dist/components/{p-ClLeKt1B.js.map → p-D-FRnRNO.js.map} +1 -1
- package/dist/components/{p-CobY14qx.js → p-D0N0vC0E.js} +8 -8
- package/dist/components/{p-CobY14qx.js.map → p-D0N0vC0E.js.map} +1 -1
- package/dist/components/{p-CjLWTQ-k.js → p-D13i5GRC.js} +3 -3
- package/dist/components/{p-CjLWTQ-k.js.map → p-D13i5GRC.js.map} +1 -1
- package/dist/components/{p-BjRD9lS0.js → p-DHO4T8Ax.js} +3 -3
- package/dist/components/{p-BjRD9lS0.js.map → p-DHO4T8Ax.js.map} +1 -1
- package/dist/components/{p-BrxxkM_7.js → p-DcndzUFT.js} +5 -5
- package/dist/components/{p-BrxxkM_7.js.map → p-DcndzUFT.js.map} +1 -1
- package/dist/components/{p-COYitAD7.js → p-DdSBiiVX.js} +5 -5
- package/dist/components/{p-COYitAD7.js.map → p-DdSBiiVX.js.map} +1 -1
- package/dist/components/{p-CZ4Ng3BX.js → p-Dgn-b0VN.js} +11 -5
- package/dist/components/p-Dgn-b0VN.js.map +1 -0
- package/dist/components/{p-dkScX4Ck.js → p-DoTMic8C.js} +5 -5
- package/dist/components/{p-dkScX4Ck.js.map → p-DoTMic8C.js.map} +1 -1
- package/dist/components/{p-WGf68eDg.js → p-Dp6bUSN1.js} +3 -3
- package/dist/components/{p-WGf68eDg.js.map → p-Dp6bUSN1.js.map} +1 -1
- package/dist/components/{p-B0FDvLRO.js → p-Ds466vGv.js} +4 -4
- package/dist/components/{p-B0FDvLRO.js.map → p-Ds466vGv.js.map} +1 -1
- package/dist/components/{p-BrO6uPL6.js → p-DuyVg_A7.js} +7 -7
- package/dist/components/{p-BrO6uPL6.js.map → p-DuyVg_A7.js.map} +1 -1
- package/dist/components/{p-CTCwiLaJ.js → p-RbKsk0NK.js} +4 -4
- package/dist/components/{p-CTCwiLaJ.js.map → p-RbKsk0NK.js.map} +1 -1
- package/dist/components/{p-BEVU1b9v.js → p-_qxwSXk5.js} +6 -6
- package/dist/components/{p-BEVU1b9v.js.map → p-_qxwSXk5.js.map} +1 -1
- package/dist/components/{p-BZaiuF56.js → p-iueBw_y3.js} +4 -4
- package/dist/components/{p-BZaiuF56.js.map → p-iueBw_y3.js.map} +1 -1
- package/dist/components/{p-CXPNkSli.js → p-mTzDbf1n.js} +4 -4
- package/dist/components/{p-CXPNkSli.js.map → p-mTzDbf1n.js.map} +1 -1
- package/dist/components/{p-DwZ2ffr1.js → p-wMEGQ8Q5.js} +3 -3
- package/dist/components/{p-DwZ2ffr1.js.map → p-wMEGQ8Q5.js.map} +1 -1
- package/dist/components/{p-qx8yDlp3.js → p-z3joV5yV.js} +4 -4
- package/dist/components/{p-qx8yDlp3.js.map → p-z3joV5yV.js.map} +1 -1
- package/dist/components/payment-method-selector.js +1 -1
- package/dist/components/qr-code.js +1 -1
- package/dist/components/rebill-address-form.js +1 -1
- package/dist/components/rebill-address-search.js +1 -1
- package/dist/components/rebill-address.js +1 -1
- package/dist/components/rebill-alert.js +1 -1
- package/dist/components/rebill-autofill-detector.d.ts +11 -0
- package/dist/components/rebill-autofill-detector.js +9 -0
- package/dist/components/rebill-autofill-detector.js.map +1 -0
- package/dist/components/rebill-bank-selector.js +1 -1
- package/dist/components/rebill-card-carousel.js +1 -1
- package/dist/components/rebill-card.js +1 -1
- package/dist/components/rebill-change-card.js +50 -44
- package/dist/components/rebill-change-card.js.map +1 -1
- package/dist/components/rebill-checkout-form.js +1 -1
- package/dist/components/rebill-checkout-single-column.js +1 -1
- package/dist/components/rebill-checkout.js +70 -64
- package/dist/components/rebill-checkout.js.map +1 -1
- package/dist/components/rebill-container.js +1 -1
- package/dist/components/rebill-divider.js +1 -1
- package/dist/components/rebill-flex-container.js +1 -1
- package/dist/components/rebill-footer.js +1 -1
- package/dist/components/rebill-form.js +1 -1
- package/dist/components/rebill-grid-container.js +1 -1
- package/dist/components/rebill-input-checkbox.js +1 -1
- package/dist/components/rebill-input-combo.js +1 -1
- package/dist/components/rebill-input-phone.js +1 -1
- package/dist/components/rebill-input-select.js +1 -1
- package/dist/components/rebill-input-text.js +1 -1
- package/dist/components/rebill-installments.js +1 -1
- package/dist/components/rebill-mode-sandbox-mobile.js +1 -1
- package/dist/components/rebill-processing-payment.js +1 -1
- package/dist/components/rebill-renewal.js +60 -54
- package/dist/components/rebill-renewal.js.map +1 -1
- package/dist/components/rebill-summary.js +1 -1
- package/dist/components/rebill-timeline-debit-day.js +1 -1
- package/dist/components/rebill-timeline-free-trial.js +1 -1
- package/dist/components/rebill-vertical-divider.js +1 -1
- package/dist/components/reference-code.js +1 -1
- package/dist/components/renewal-success-page.js +1 -1
- package/dist/components/renewal-summary.js +1 -1
- package/dist/components/root-component.js +6 -6
- package/dist/components/selectable-card.js +1 -1
- package/dist/components/single-payment-method.js +1 -1
- package/dist/components/success-page.js +1 -1
- package/dist/components/user-information-phone.js +1 -1
- package/dist/components/user-information.js +1 -1
- package/dist/esm/apm-checkout_14.entry.js +5 -5
- package/dist/esm/card-fields-wrapper.card-identification.card-iframe.card-skeleton.rebill-address-form.rebill-address-search.rebill-input-combo.rebill-input-phone.rebill-installments.selectable-card.single-payment-method.entry.js.map +1 -1
- package/dist/esm/card-fields-wrapper_11.entry.js +18 -18
- package/dist/esm/collapsible-card_3.entry.js +2 -2
- package/dist/esm/index-BTZ7D7jU.js.map +1 -1
- package/dist/esm/input-otp.entry.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/organization-logo_4.entry.js +1 -1
- package/dist/esm/otp-component_5.entry.js +16 -16
- package/dist/esm/rebill-alert.entry.js +2 -2
- package/dist/esm/rebill-autofill-detector.entry.js +182 -0
- package/dist/esm/rebill-autofill-detector.entry.js.map +1 -0
- package/dist/esm/rebill-card-carousel.entry.js +1 -1
- package/dist/esm/rebill-card.entry.js +1 -1
- package/dist/esm/rebill-container_2.entry.js +2 -2
- package/dist/esm/rebill-flex-container.entry.js +1 -1
- package/dist/esm/rebill-form.entry.js +1 -1
- package/dist/esm/rebill-grid-container.entry.js +1 -1
- package/dist/esm/rebill-input-select.entry.js +2 -2
- package/dist/esm/rebill-input-text.entry.js +2 -2
- package/dist/esm/rebill-mode-sandbox_2.entry.js +1 -1
- package/dist/esm/rebill-timeline-debit-day_2.entry.js +2 -2
- package/dist/esm/rebill-vertical-divider.entry.js +1 -1
- package/dist/esm/rebill-web-components-sdk.js +1 -1
- package/dist/esm/renewal-success-page.entry.js +2 -2
- package/dist/esm/root-component.entry.js +1 -1
- package/dist/rebill-web-components-sdk/card-fields-wrapper.card-identification.card-iframe.card-skeleton.rebill-address-form.rebill-address-search.rebill-input-combo.rebill-input-phone.rebill-installments.selectable-card.single-payment-method.entry.esm.js.map +1 -1
- package/dist/rebill-web-components-sdk/{p-637ed8ea.entry.js → p-07ef4ea3.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-70febc7c.entry.js → p-1a99d53d.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-1f731eef.entry.js → p-1b4222b8.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-1c000e38.entry.js +2 -0
- package/dist/rebill-web-components-sdk/p-1c000e38.entry.js.map +1 -0
- package/dist/rebill-web-components-sdk/{p-b7e9af07.entry.js → p-1f253272.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-39c5f0f3.entry.js → p-26d57782.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-2c464942.entry.js +2 -0
- package/dist/rebill-web-components-sdk/p-37ce3457.entry.js +2 -0
- package/dist/rebill-web-components-sdk/{p-e3cc872d.entry.js → p-4355b35a.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-7eb0c863.entry.js → p-64d035a5.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-ca24b250.entry.js → p-728a5b5d.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-65be7025.entry.js → p-7f01ba37.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-a625d0fd.entry.js → p-82c4171e.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-be7e39cf.entry.js → p-860f0784.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-9a506148.entry.js +2 -0
- package/dist/rebill-web-components-sdk/{p-4d173895.entry.js → p-9a89f57f.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-BTZ7D7jU.js.map +1 -1
- package/dist/rebill-web-components-sdk/{p-2847a090.entry.js → p-aaa9fb70.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-dd3b420b.entry.js → p-ba5c9f7f.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-b5330b78.entry.js → p-d4c04783.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-d8089da8.entry.js +2 -0
- package/dist/rebill-web-components-sdk/{p-6a9b3bad.entry.js.map → p-d8089da8.entry.js.map} +1 -1
- package/dist/rebill-web-components-sdk/p-d827e221.entry.js +2 -0
- package/dist/rebill-web-components-sdk/p-d827e221.entry.js.map +1 -0
- package/dist/rebill-web-components-sdk/rebill-autofill-detector.entry.esm.js.map +1 -0
- package/dist/rebill-web-components-sdk/rebill-web-components-sdk.esm.js +1 -1
- package/dist/types/components/checkout/address/address-search/address-search.d.ts +1 -1
- package/dist/types/components/checkout/address/autofill-detector/autofill-detector.d.ts +20 -0
- package/dist/types/components.d.ts +49 -2
- package/package.json +1 -1
- package/dist/components/p-CZ4Ng3BX.js.map +0 -1
- package/dist/components/p-UUAqyvL7.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-204e76c5.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-33ade3d2.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-6a9b3bad.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-71973b15.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-71973b15.entry.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-cb4389ad.entry.js +0 -2
- /package/dist/rebill-web-components-sdk/{p-637ed8ea.entry.js.map → p-07ef4ea3.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-70febc7c.entry.js.map → p-1a99d53d.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-1f731eef.entry.js.map → p-1b4222b8.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-b7e9af07.entry.js.map → p-1f253272.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-39c5f0f3.entry.js.map → p-26d57782.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-33ade3d2.entry.js.map → p-2c464942.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-204e76c5.entry.js.map → p-37ce3457.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-e3cc872d.entry.js.map → p-4355b35a.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-7eb0c863.entry.js.map → p-64d035a5.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-ca24b250.entry.js.map → p-728a5b5d.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-65be7025.entry.js.map → p-7f01ba37.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-a625d0fd.entry.js.map → p-82c4171e.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-be7e39cf.entry.js.map → p-860f0784.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-cb4389ad.entry.js.map → p-9a506148.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-4d173895.entry.js.map → p-9a89f57f.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-2847a090.entry.js.map → p-aaa9fb70.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-dd3b420b.entry.js.map → p-ba5c9f7f.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-b5330b78.entry.js.map → p-d4c04783.entry.js.map} +0 -0
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export class AutofillDetector {
|
|
3
|
+
el;
|
|
4
|
+
targetSelector = 'input[type="text"]';
|
|
5
|
+
disabled = false;
|
|
6
|
+
autofillDetected;
|
|
7
|
+
manualEntryRequested;
|
|
8
|
+
browserAutocompleteDetected = false;
|
|
9
|
+
disabledDetector = false;
|
|
10
|
+
async componentDidLoad() {
|
|
11
|
+
if (!this.disabled) {
|
|
12
|
+
await this.setupBrowserAutocompleteDetection();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
async setupBrowserAutocompleteDetection() {
|
|
16
|
+
try {
|
|
17
|
+
const inputElement = await this.getInputElement();
|
|
18
|
+
if (!inputElement)
|
|
19
|
+
return;
|
|
20
|
+
let lastValue = '';
|
|
21
|
+
let isUserTyping = false;
|
|
22
|
+
let autocompleteCheckInterval = null;
|
|
23
|
+
// Detectar cuando el usuario está escribiendo (para no interferir con Google)
|
|
24
|
+
inputElement.addEventListener('keydown', event => {
|
|
25
|
+
if (event.key && event.key.length === 1) {
|
|
26
|
+
isUserTyping = true;
|
|
27
|
+
this.disabledDetector = true;
|
|
28
|
+
setTimeout(() => {
|
|
29
|
+
isUserTyping = false;
|
|
30
|
+
this.disabledDetector = false;
|
|
31
|
+
}, 1000);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
// Detectar autocompletado del navegador
|
|
35
|
+
const detectAutocomplete = () => {
|
|
36
|
+
const currentValue = inputElement.value;
|
|
37
|
+
if (currentValue !== lastValue &&
|
|
38
|
+
currentValue.length > 0 &&
|
|
39
|
+
!this.disabled &&
|
|
40
|
+
!this.disabledDetector &&
|
|
41
|
+
!isUserTyping) {
|
|
42
|
+
console.log('✅ AutofillDetector - Autocomplete detected:', currentValue);
|
|
43
|
+
setTimeout(() => {
|
|
44
|
+
if (inputElement.value === currentValue && !this.browserAutocompleteDetected) {
|
|
45
|
+
this.browserAutocompleteDetected = true;
|
|
46
|
+
this.handleBrowserAutocomplete(currentValue);
|
|
47
|
+
}
|
|
48
|
+
}, 100);
|
|
49
|
+
}
|
|
50
|
+
lastValue = currentValue;
|
|
51
|
+
};
|
|
52
|
+
// Eventos para detectar autocompletado
|
|
53
|
+
inputElement.addEventListener('input', () => detectAutocomplete());
|
|
54
|
+
inputElement.addEventListener('change', () => detectAutocomplete());
|
|
55
|
+
inputElement.addEventListener('focus', () => {
|
|
56
|
+
this.browserAutocompleteDetected = false;
|
|
57
|
+
isUserTyping = false;
|
|
58
|
+
});
|
|
59
|
+
inputElement.addEventListener('blur', () => {
|
|
60
|
+
if (autocompleteCheckInterval) {
|
|
61
|
+
clearInterval(autocompleteCheckInterval);
|
|
62
|
+
autocompleteCheckInterval = null;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
catch (error) { }
|
|
67
|
+
}
|
|
68
|
+
async getInputElement() {
|
|
69
|
+
try {
|
|
70
|
+
const inputElement = this.el.querySelector(this.targetSelector);
|
|
71
|
+
return inputElement;
|
|
72
|
+
}
|
|
73
|
+
catch (error) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
handleBrowserAutocomplete(addressString) {
|
|
78
|
+
const allAutocompleteData = this.detectAllAutocompleteFields();
|
|
79
|
+
// Parsear la dirección autocompletada
|
|
80
|
+
const addressComponents = this.parseBrowserAutocompleteAddress(addressString);
|
|
81
|
+
if (addressComponents) {
|
|
82
|
+
// Combinar la información parseada con TODOS los datos del autocompletado
|
|
83
|
+
const enhancedComponents = {
|
|
84
|
+
...addressComponents,
|
|
85
|
+
city: addressComponents.city || allAutocompleteData.city || '',
|
|
86
|
+
state: addressComponents.state || allAutocompleteData.state || '',
|
|
87
|
+
country: addressComponents.country || allAutocompleteData.country || '',
|
|
88
|
+
zip: addressComponents.zip || allAutocompleteData.zip || '',
|
|
89
|
+
};
|
|
90
|
+
// Emitir evento con los datos detectados
|
|
91
|
+
this.autofillDetected.emit(enhancedComponents);
|
|
92
|
+
// Cambiar a vista manual
|
|
93
|
+
this.handleManualEntry();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
detectAllAutocompleteFields() {
|
|
97
|
+
const info = {};
|
|
98
|
+
try {
|
|
99
|
+
// Buscar todos los campos del formulario que se autocompletaron
|
|
100
|
+
const form = this.el.closest('form') || document;
|
|
101
|
+
// Buscar TODOS los inputs y selects que tengan valores
|
|
102
|
+
const allInputs = form.querySelectorAll('input, select');
|
|
103
|
+
for (let i = 0; i < allInputs.length; i++) {
|
|
104
|
+
const field = allInputs[i];
|
|
105
|
+
const value = field.value;
|
|
106
|
+
const id = field.id || '';
|
|
107
|
+
const name = field.name || '';
|
|
108
|
+
const className = field.className || '';
|
|
109
|
+
// Buscar campos de ciudad
|
|
110
|
+
if (value && (id.includes('city') || name.includes('city') || className.includes('city'))) {
|
|
111
|
+
info.city = value;
|
|
112
|
+
}
|
|
113
|
+
// Buscar campos de código postal
|
|
114
|
+
if (value &&
|
|
115
|
+
(id.includes('zip') ||
|
|
116
|
+
name.includes('zip') ||
|
|
117
|
+
className.includes('zip') ||
|
|
118
|
+
id.includes('postal') ||
|
|
119
|
+
name.includes('postal') ||
|
|
120
|
+
className.includes('postal'))) {
|
|
121
|
+
info.zip = value;
|
|
122
|
+
}
|
|
123
|
+
// Buscar campos de país
|
|
124
|
+
if (value &&
|
|
125
|
+
(id.includes('country') || name.includes('country') || className.includes('country'))) {
|
|
126
|
+
info.country = value;
|
|
127
|
+
}
|
|
128
|
+
// Buscar campos de estado
|
|
129
|
+
if (value &&
|
|
130
|
+
(id.includes('state') || name.includes('state') || className.includes('state'))) {
|
|
131
|
+
info.state = value;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
catch (error) {
|
|
136
|
+
// Silently handle errors
|
|
137
|
+
}
|
|
138
|
+
return info;
|
|
139
|
+
}
|
|
140
|
+
parseBrowserAutocompleteAddress(addressString) {
|
|
141
|
+
if (!addressString || addressString.trim().length === 0) {
|
|
142
|
+
return null;
|
|
143
|
+
}
|
|
144
|
+
const cleanAddress = addressString.trim();
|
|
145
|
+
// Si es una dirección de una sola parte (sin comas)
|
|
146
|
+
if (!cleanAddress.includes(',')) {
|
|
147
|
+
return this.parseSinglePartAddress(cleanAddress);
|
|
148
|
+
}
|
|
149
|
+
// Parseo simple para direcciones con comas
|
|
150
|
+
const addressParts = cleanAddress.split(',').map(part => part.trim());
|
|
151
|
+
return {
|
|
152
|
+
address: addressParts[0] || '',
|
|
153
|
+
city: addressParts[1] || '',
|
|
154
|
+
state: addressParts[2] || '',
|
|
155
|
+
country: addressParts[3] || '',
|
|
156
|
+
zip: addressParts[4] || '',
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
parseSinglePartAddress(address) {
|
|
160
|
+
// Para direcciones de una sola parte, solo devolver la dirección
|
|
161
|
+
return {
|
|
162
|
+
address: address,
|
|
163
|
+
city: '',
|
|
164
|
+
state: '',
|
|
165
|
+
country: '',
|
|
166
|
+
zip: '',
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
handleManualEntry = () => {
|
|
170
|
+
this.manualEntryRequested.emit();
|
|
171
|
+
};
|
|
172
|
+
render() {
|
|
173
|
+
return h("slot", { key: '60aa28de56b48a704b51286fa433131f9efd3d26' });
|
|
174
|
+
}
|
|
175
|
+
static get is() { return "rebill-autofill-detector"; }
|
|
176
|
+
static get originalStyleUrls() {
|
|
177
|
+
return {
|
|
178
|
+
"$": ["autofill-detector.css"]
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
static get styleUrls() {
|
|
182
|
+
return {
|
|
183
|
+
"$": ["autofill-detector.css"]
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
static get properties() {
|
|
187
|
+
return {
|
|
188
|
+
"targetSelector": {
|
|
189
|
+
"type": "string",
|
|
190
|
+
"mutable": false,
|
|
191
|
+
"complexType": {
|
|
192
|
+
"original": "string",
|
|
193
|
+
"resolved": "string",
|
|
194
|
+
"references": {}
|
|
195
|
+
},
|
|
196
|
+
"required": false,
|
|
197
|
+
"optional": false,
|
|
198
|
+
"docs": {
|
|
199
|
+
"tags": [],
|
|
200
|
+
"text": ""
|
|
201
|
+
},
|
|
202
|
+
"getter": false,
|
|
203
|
+
"setter": false,
|
|
204
|
+
"reflect": false,
|
|
205
|
+
"attribute": "target-selector",
|
|
206
|
+
"defaultValue": "'input[type=\"text\"]'"
|
|
207
|
+
},
|
|
208
|
+
"disabled": {
|
|
209
|
+
"type": "boolean",
|
|
210
|
+
"mutable": false,
|
|
211
|
+
"complexType": {
|
|
212
|
+
"original": "boolean",
|
|
213
|
+
"resolved": "boolean",
|
|
214
|
+
"references": {}
|
|
215
|
+
},
|
|
216
|
+
"required": false,
|
|
217
|
+
"optional": false,
|
|
218
|
+
"docs": {
|
|
219
|
+
"tags": [],
|
|
220
|
+
"text": ""
|
|
221
|
+
},
|
|
222
|
+
"getter": false,
|
|
223
|
+
"setter": false,
|
|
224
|
+
"reflect": false,
|
|
225
|
+
"attribute": "disabled",
|
|
226
|
+
"defaultValue": "false"
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
static get states() {
|
|
231
|
+
return {
|
|
232
|
+
"browserAutocompleteDetected": {},
|
|
233
|
+
"disabledDetector": {}
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
static get events() {
|
|
237
|
+
return [{
|
|
238
|
+
"method": "autofillDetected",
|
|
239
|
+
"name": "autofillDetected",
|
|
240
|
+
"bubbles": true,
|
|
241
|
+
"cancelable": true,
|
|
242
|
+
"composed": true,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [],
|
|
245
|
+
"text": ""
|
|
246
|
+
},
|
|
247
|
+
"complexType": {
|
|
248
|
+
"original": "AddressComponents",
|
|
249
|
+
"resolved": "AddressComponents",
|
|
250
|
+
"references": {
|
|
251
|
+
"AddressComponents": {
|
|
252
|
+
"location": "import",
|
|
253
|
+
"path": "../../../../utils/google-maps.service",
|
|
254
|
+
"id": "src/utils/google-maps.service.ts::AddressComponents"
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}, {
|
|
259
|
+
"method": "manualEntryRequested",
|
|
260
|
+
"name": "manualEntryRequested",
|
|
261
|
+
"bubbles": true,
|
|
262
|
+
"cancelable": true,
|
|
263
|
+
"composed": true,
|
|
264
|
+
"docs": {
|
|
265
|
+
"tags": [],
|
|
266
|
+
"text": ""
|
|
267
|
+
},
|
|
268
|
+
"complexType": {
|
|
269
|
+
"original": "void",
|
|
270
|
+
"resolved": "void",
|
|
271
|
+
"references": {}
|
|
272
|
+
}
|
|
273
|
+
}];
|
|
274
|
+
}
|
|
275
|
+
static get elementRef() { return "el"; }
|
|
276
|
+
}
|
|
277
|
+
//# sourceMappingURL=autofill-detector.js.map
|
package/dist/collection/components/checkout/address/autofill-detector/autofill-detector.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"autofill-detector.js","sourceRoot":"","sources":["../../../../../src/components/checkout/address/autofill-detector/autofill-detector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQxF,MAAM,OAAO,gBAAgB;IAChB,EAAE,CAAc;IAEnB,cAAc,GAAW,oBAAoB,CAAC;IAC9C,QAAQ,GAAY,KAAK,CAAC;IAEzB,gBAAgB,CAAkC;IAClD,oBAAoB,CAAqB;IAEzC,2BAA2B,GAAY,KAAK,CAAC;IAC7C,gBAAgB,GAAY,KAAK,CAAC;IAE3C,KAAK,CAAC,gBAAgB;QACpB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,MAAM,IAAI,CAAC,iCAAiC,EAAE,CAAC;QACjD,CAAC;IACH,CAAC;IAEO,KAAK,CAAC,iCAA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import { AddressComponents } from '../../../../utils/google-maps.service';\n\n@Component({\n tag: 'rebill-autofill-detector',\n styleUrl: 'autofill-detector.css',\n shadow: false,\n})\nexport class AutofillDetector {\n @Element() el: HTMLElement;\n\n @Prop() targetSelector: string = 'input[type=\"text\"]';\n @Prop() disabled: boolean = false;\n\n @Event() autofillDetected: EventEmitter<AddressComponents>;\n @Event() manualEntryRequested: EventEmitter<void>;\n\n @State() browserAutocompleteDetected: boolean = false;\n @State() disabledDetector: boolean = false;\n\n async componentDidLoad() {\n if (!this.disabled) {\n await this.setupBrowserAutocompleteDetection();\n }\n }\n\n private async setupBrowserAutocompleteDetection() {\n try {\n const inputElement = await this.getInputElement();\n if (!inputElement) return;\n\n let lastValue = '';\n let isUserTyping = false;\n let autocompleteCheckInterval: number | null = null;\n\n // Detectar cuando el usuario está escribiendo (para no interferir con Google)\n inputElement.addEventListener('keydown', event => {\n if (event.key && event.key.length === 1) {\n isUserTyping = true;\n this.disabledDetector = true;\n setTimeout(() => {\n isUserTyping = false;\n this.disabledDetector = false;\n }, 1000);\n }\n });\n\n // Detectar autocompletado del navegador\n const detectAutocomplete = () => {\n const currentValue = inputElement.value;\n if (\n currentValue !== lastValue &&\n currentValue.length > 0 &&\n !this.disabled &&\n !this.disabledDetector &&\n !isUserTyping\n ) {\n console.log('✅ AutofillDetector - Autocomplete detected:', currentValue);\n setTimeout(() => {\n if (inputElement.value === currentValue && !this.browserAutocompleteDetected) {\n this.browserAutocompleteDetected = true;\n this.handleBrowserAutocomplete(currentValue);\n }\n }, 100);\n }\n\n lastValue = currentValue;\n };\n\n // Eventos para detectar autocompletado\n inputElement.addEventListener('input', () => detectAutocomplete());\n inputElement.addEventListener('change', () => detectAutocomplete());\n inputElement.addEventListener('focus', () => {\n this.browserAutocompleteDetected = false;\n isUserTyping = false;\n });\n inputElement.addEventListener('blur', () => {\n if (autocompleteCheckInterval) {\n clearInterval(autocompleteCheckInterval);\n autocompleteCheckInterval = null;\n }\n });\n } catch (error) {}\n }\n\n private async getInputElement(): Promise<HTMLInputElement | null> {\n try {\n const inputElement = this.el.querySelector(this.targetSelector) as HTMLInputElement;\n return inputElement;\n } catch (error) {\n return null;\n }\n }\n\n private handleBrowserAutocomplete(addressString: string) {\n const allAutocompleteData = this.detectAllAutocompleteFields();\n\n // Parsear la dirección autocompletada\n const addressComponents = this.parseBrowserAutocompleteAddress(addressString);\n\n if (addressComponents) {\n // Combinar la información parseada con TODOS los datos del autocompletado\n const enhancedComponents = {\n ...addressComponents,\n city: addressComponents.city || allAutocompleteData.city || '',\n state: addressComponents.state || allAutocompleteData.state || '',\n country: addressComponents.country || allAutocompleteData.country || '',\n zip: addressComponents.zip || allAutocompleteData.zip || '',\n };\n\n // Emitir evento con los datos detectados\n this.autofillDetected.emit(enhancedComponents);\n\n // Cambiar a vista manual\n this.handleManualEntry();\n }\n }\n\n private detectAllAutocompleteFields(): {\n city?: string;\n state?: string;\n country?: string;\n zip?: string;\n } {\n const info: {\n city?: string;\n state?: string;\n country?: string;\n zip?: string;\n } = {};\n\n try {\n // Buscar todos los campos del formulario que se autocompletaron\n const form = this.el.closest('form') || document;\n\n // Buscar TODOS los inputs y selects que tengan valores\n const allInputs = form.querySelectorAll('input, select');\n\n for (let i = 0; i < allInputs.length; i++) {\n const field = allInputs[i] as HTMLInputElement | HTMLSelectElement;\n const value = field.value;\n const id = field.id || '';\n const name = field.name || '';\n const className = field.className || '';\n\n // Buscar campos de ciudad\n if (value && (id.includes('city') || name.includes('city') || className.includes('city'))) {\n info.city = value;\n }\n\n // Buscar campos de código postal\n if (\n value &&\n (id.includes('zip') ||\n name.includes('zip') ||\n className.includes('zip') ||\n id.includes('postal') ||\n name.includes('postal') ||\n className.includes('postal'))\n ) {\n info.zip = value;\n }\n\n // Buscar campos de país\n if (\n value &&\n (id.includes('country') || name.includes('country') || className.includes('country'))\n ) {\n info.country = value;\n }\n\n // Buscar campos de estado\n if (\n value &&\n (id.includes('state') || name.includes('state') || className.includes('state'))\n ) {\n info.state = value;\n }\n }\n } catch (error) {\n // Silently handle errors\n }\n\n return info;\n }\n\n private parseBrowserAutocompleteAddress(addressString: string): AddressComponents | null {\n if (!addressString || addressString.trim().length === 0) {\n return null;\n }\n\n const cleanAddress = addressString.trim();\n\n // Si es una dirección de una sola parte (sin comas)\n if (!cleanAddress.includes(',')) {\n return this.parseSinglePartAddress(cleanAddress);\n }\n\n // Parseo simple para direcciones con comas\n const addressParts = cleanAddress.split(',').map(part => part.trim());\n\n return {\n address: addressParts[0] || '',\n city: addressParts[1] || '',\n state: addressParts[2] || '',\n country: addressParts[3] || '',\n zip: addressParts[4] || '',\n };\n }\n\n private parseSinglePartAddress(address: string): AddressComponents | null {\n // Para direcciones de una sola parte, solo devolver la dirección\n return {\n address: address,\n city: '',\n state: '',\n country: '',\n zip: '',\n };\n }\n\n private handleManualEntry = () => {\n this.manualEntryRequested.emit();\n };\n\n render() {\n return <slot />;\n }\n}\n"]}
|
|
@@ -87,13 +87,13 @@ export class QrCode {
|
|
|
87
87
|
};
|
|
88
88
|
render() {
|
|
89
89
|
const instructionLines = this.getCurrentLanguageInstructions();
|
|
90
|
-
return (h("div", { key: '
|
|
90
|
+
return (h("div", { key: 'af12b0e17de3e9d15b3d50f6a775cfec0634c57d', class: "qr-code" }, h("div", { key: '049ac6a40747350848ab4de7b733ce0c3264b63d', class: "qr-code-header" }, h("div", { key: '25014acd9e5bfd42b7e67abc035b52703929732c', class: "expiration-section" }, h("rebill-icon", { key: 'f4892dd1c4e6cbfc58fe9a0768e72e3afa286010', name: "calendar-clock" }), h("span", { key: '74395a35eb90ab22fa8efcc763b5819e2b465b57', class: "expiration-text" }, I18nService.translate('qrCode.expirationLabel', { time: this.formattedTime })))), h("div", { key: '27b777bbba15c3a224e9c9d07ec6194f40caaa7b', class: "qr-code-content" }, h("div", { key: '38862683c888d46db81a5df22345024fdcc22fcc', class: "qr-section" }, h("div", { key: '2abcbbfad2d8031b2cfd0eca9daab29e8c65b2f7', class: "qr-instruction" }, h("rebill-typography", { key: '79f2500a17995c2f5b66be7a3afeab8ff1df01e9', variant: "subtitle-bold", style: { fontSize: '12px' }, color: COLORS_ENUM.GREY_300 }, I18nService.translate('qrCode.scanInstruction'))), h("div", { key: '181bd27896fb77c5afa1614a622242bb8b399167', class: "qr-container" }, this.isImage ? (h("img", { src: `data:image/png;base64,${this.qrCodeData}`, alt: "QR Code", class: "qr-image" })) : (h("div", { class: "qr-image", innerHTML: this.qrCodeSvg })), h("div", { key: '44a910457a4462bce56ee04fd7421b38c80f5701', class: "scanner-line" }), h("div", { key: '5ab93aeea71f4288525cc5c0ef7e864d322d625f', class: "corner-bottom-left" }), h("div", { key: '2dfa93e3952df855b38692caa5e446e67477ba78', class: "corner-bottom-right" })), this.code && (h("rebill-button", { key: '1a6e620bb374c27dccf12b910864920f2c7151ac', class: "copy-btn", variant: "secondary", size: "small", onClick: async () => {
|
|
91
91
|
if (!this.code)
|
|
92
92
|
return;
|
|
93
93
|
await copyToClipboard(this.code);
|
|
94
94
|
this.hasCopied = true;
|
|
95
95
|
setTimeout(() => (this.hasCopied = false), 2000);
|
|
96
|
-
}, type: "button" }, h("rebill-typography", { key: '
|
|
96
|
+
}, type: "button" }, h("rebill-typography", { key: '0bd8ad17dd4010b231889a3781686911638ad96d', variant: "subtitle2", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, I18nService.translate('qrCode.copyCode')), this.hasCopied ? (h("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M5.62256 10.8855L8.24756 13.5418L14.3726 6.45844", stroke: "#35B093", "stroke-linecap": "round", "stroke-linejoin": "round" }))) : (h("rebill-icon", { name: "copy", size: "16px" })))))), instructionLines.length > 0 && (h("collapsible-card", { key: '4e69b59086fab349bdbe54aaa7908d03f6af72e2', variant: "flat", header: I18nService.translate('qrCode.instructionsLabel'), open: false }, h("div", { key: 'a535d50416b7d0ad635c5c24f7c35258bf3ebbac' }, h("ol", { key: '0bcae653181b6f9bb62d43417d8811226ad135db', class: "instructions-list" }, instructionLines.map((line, index) => (h("li", { key: index, class: "instruction-item" }, h("div", { class: "instruction-number" }, h("rebill-typography", { variant: "subtitle2", color: COLORS_ENUM.GREY_300 }, index + 1)), h("div", { class: "instruction-text" }, h("rebill-typography", { variant: "subtitle2", color: COLORS_ENUM.GREY_300 }, line)))))))))));
|
|
97
97
|
}
|
|
98
98
|
static get is() { return "qr-code"; }
|
|
99
99
|
static get originalStyleUrls() {
|
|
@@ -32,7 +32,7 @@ export class ReferenceCode {
|
|
|
32
32
|
};
|
|
33
33
|
render() {
|
|
34
34
|
const instructionLines = this.getCurrentLanguageInstructions();
|
|
35
|
-
return (h("div", { key: '
|
|
35
|
+
return (h("div", { key: '53eee612963a28548807c9a075aba17e8d022c37', class: "reference-code" }, h("div", { key: '1927fa9dd4c75a280391ba34b8d3f5900157a48f', class: "reference-code-header" }, h("div", { key: 'b02617217021eef14a42598f84e2c4ff20273d84', class: "expiration-section" }, h("rebill-icon", { key: '784ff624d90a2a952d97d02ad13f864afaca1413', name: "calendar-clock" }), h("span", { key: 'a95abc010c10f8d9d07a805d5fcd62f8069ead68', class: "expiration-text" }, I18nService.translate('referenceCode.expirationLabel'), ' ', this.formatExpirationDate(this.expirationDate)))), h("div", { key: 'b2f86a07b2bd9067c31ddd3e58b2495fc2da7670', class: "reference-code-content" }, h("div", { key: 'c6bcee134d966077dcc2b06bcd32d142273c27e6', class: "reference-section" }, h("div", { key: 'd607744363e0b5118c59996f776cd91d91471818', class: "reference-label" }, I18nService.translate('referenceCode.referenceLabel')), h("div", { key: 'c472e96e09146f2f13a476897ef92052e0a6affe', class: "reference-value" }, this.referenceId)), h("div", { key: '8cfc3186e62bbefd12fda2aa52e1fbe64e1f531a', class: "provider-section" }, h("div", { key: 'd8bc3af4a73e6f0f6a7f70e5a2b6c10d7b1e7901', class: "provider-label" }, I18nService.translate('referenceCode.providerLabel')), h("div", { key: '82e0ffc5faca1890b56a92d2bf4c695c9b720426', class: "provider-value" }, getProviderName(this.providerName)))), this.instructions.length > 0 && (h("div", { key: '615d197ef8278a2f1008ed9b99392b070decbcd3', class: "instructions-section" }, h("button", { key: 'e3cec3b4c0179b77b4d2ec5c9b992c1303e3782f', class: "instructions-toggle", onClick: this.toggleInstructions, type: "button", "aria-expanded": this.showInstructions.toString(), "aria-controls": "instructions-content" }, h("span", { key: 'e4ce3f249d33d62db9ca4f2f15e7e86b2e5b00b4' }, I18nService.translate('referenceCode.instructionsLabel')), h("rebill-icon", { key: '3533bfaf4cd3a5847b4cf34aa5845fd280de2e0f', name: "chevron-down" })), this.showInstructions && (h("div", { key: '707ba7303831e205c3cbd248e29e336db1fc1ef7', class: "instructions-content", id: "instructions-content", role: "region", "aria-labelledby": "instructions-toggle" }, h("div", { key: 'defce52b328d0c0a76a3ef7274d027e26a2c304a', class: "instructions-text" }, h("ol", { key: '3341cdb16fa13eefd16544e1c200c3bab2e7282d', class: "instructions-list" }, instructionLines.map((line, index) => (h("li", { key: index }, line)))))))))));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "reference-code"; }
|
|
38
38
|
static get originalStyleUrls() {
|
|
@@ -272,30 +272,30 @@ export class CardSuccessPage {
|
|
|
272
272
|
};
|
|
273
273
|
render() {
|
|
274
274
|
const hasRedirect = sessionState.data?.itemInformation?.redirectSuccess;
|
|
275
|
-
return (h("rebill-checkout-single-column", { key: '
|
|
275
|
+
return (h("rebill-checkout-single-column", { key: '40c28fe78a71c7f4008f6827bdeca330b4528092' }, h("div", { key: 'df2993dc3f25b060d11c4e3c3ffa59fc28fc3206', class: "success-page__success-content" }, h("rebill-typography", { key: '16eb9c3133e75c4d52d1a096b6acff572ba93397', variant: "h3", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, hasRedirect && this.showRedirectMessage
|
|
276
276
|
? I18nService.translate('processing.redirectMessage')
|
|
277
|
-
: I18nService.translate('processing.successTitle')), hasRedirect && this.showRedirectMessage ? (h("div", { class: "redirect-message" }, h("div", { class: "success-page__lottie-container" }, h("div", { ref: el => (this.lottieContainer = el), class: "lottie-animation" })))) : (h("div", { class: "success-page__success-icon" }, h("svg", { width: isBreakpointBelow(this.breakpoint, BREAKPOINT_ENUM.DESKTOP) ? '64' : '96', height: isBreakpointBelow(this.breakpoint, BREAKPOINT_ENUM.DESKTOP) ? '64' : '96', viewBox: "0 0 96 96", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.99219 47.998C7.99219 25.9067 25.9008 7.99805 47.9922 7.99805C70.0836 7.99805 87.9922 25.9067 87.9922 47.998C87.9922 70.0894 70.0836 87.998 47.9922 87.998C25.9008 87.998 7.99219 70.0894 7.99219 47.998ZM61.5401 39.2645C62.2396 38.4096 62.1136 37.1496 61.2587 36.4501C60.4038 35.7507 59.1437 35.8767 58.4443 36.7316L41.8437 57.0211L35.4064 50.5838C34.6254 49.8028 33.359 49.8028 32.578 50.5838C31.7969 51.3649 31.7969 52.6312 32.578 53.4123L40.578 61.4123C40.9775 61.8118 41.5275 62.0237 42.0918 61.9956C42.6562 61.9674 43.1823 61.7019 43.5401 61.2645L61.5401 39.2645Z", fill: "#35B093" })))), h("div", { key: '
|
|
277
|
+
: I18nService.translate('processing.successTitle')), hasRedirect && this.showRedirectMessage ? (h("div", { class: "redirect-message" }, h("div", { class: "success-page__lottie-container" }, h("div", { ref: el => (this.lottieContainer = el), class: "lottie-animation" })))) : (h("div", { class: "success-page__success-icon" }, h("svg", { width: isBreakpointBelow(this.breakpoint, BREAKPOINT_ENUM.DESKTOP) ? '64' : '96', height: isBreakpointBelow(this.breakpoint, BREAKPOINT_ENUM.DESKTOP) ? '64' : '96', viewBox: "0 0 96 96", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M7.99219 47.998C7.99219 25.9067 25.9008 7.99805 47.9922 7.99805C70.0836 7.99805 87.9922 25.9067 87.9922 47.998C87.9922 70.0894 70.0836 87.998 47.9922 87.998C25.9008 87.998 7.99219 70.0894 7.99219 47.998ZM61.5401 39.2645C62.2396 38.4096 62.1136 37.1496 61.2587 36.4501C60.4038 35.7507 59.1437 35.8767 58.4443 36.7316L41.8437 57.0211L35.4064 50.5838C34.6254 49.8028 33.359 49.8028 32.578 50.5838C31.7969 51.3649 31.7969 52.6312 32.578 53.4123L40.578 61.4123C40.9775 61.8118 41.5275 62.0237 42.0918 61.9956C42.6562 61.9674 43.1823 61.7019 43.5401 61.2645L61.5401 39.2645Z", fill: "#35B093" })))), h("div", { key: '8cec829c088bbb82abbaee49bc8aa4b3ce0dd255', class: "success-page__info-card" }, h("div", { key: 'dd283e1c0b1913fbd07050c719dc5ffb566718cd', class: "success-page__card-row" }, h("rebill-typography", { key: '0833d7e9d757cbb4adbef55c09e9f3fcb0e7e43d', variant: "body2", color: COLORS_ENUM.SECONDARY }, I18nService.translate('processing.paymentMethod')), h("div", { key: 'dd5ea4f63a4153dc3c53e399686f65f605da1d16', class: "success-page__card-value" }, h("div", { key: '4ddcedf9fffaee314059e160fee0982136d1e41c', class: "success-page__payment-method-display" }, this.typePaymentMethod === PAYMENT_METHOD_ENUM.CARD && (h(h.Fragment, null, h("rebill-card-icon", { key: 'aa0ac5524b9e90e61dd7114a65f8f28b079f0de4', "card-brand": sessionState.data?.cardInformation?.brand || '' }), h("rebill-typography", { key: 'f04a885119d825569f57f26f321bf0e23a56e4b9', variant: "body2", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, this.textPaymentMethodCard()))), this.typePaymentMethod === PAYMENT_METHOD_ENUM.BANK_TRANSFER && (h("div", { key: '4536311910dbae3dfaa32a587c6d2d62b671f83d', style: { display: 'flex', alignItems: 'center', gap: '8px' } }, h("div", { key: '0970685dd7fec8a464034aac051fdf10c7f9342e', style: { display: 'flex', alignItems: 'center', gap: '8px' } }, this.getPaymentMethodConfig(PAYMENT_METHOD_ENUM.BANK_TRANSFER).icons.map(iconName => {
|
|
278
278
|
return h("rebill-icon", { name: iconName, size: "24px" });
|
|
279
|
-
})), h("rebill-typography", { key: '
|
|
280
|
-
sessionState?.data?.cardInformation?.installments?.selectedInstallment && (h("div", { key: '
|
|
279
|
+
})), h("rebill-typography", { key: '5c22ec9417d4fec4b471a786e102cdce910966ab', variant: "body2", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, I18nService.translate('paymentMethods.bank_transfer'))))))), sessionState?.data?.pricing?.installments &&
|
|
280
|
+
sessionState?.data?.cardInformation?.installments?.selectedInstallment && (h("div", { key: 'c8085254470360967367e0c697d2173bbea246b0' }, h("div", { key: 'f0142820cf451ea6a4af79d514e5fc5a13ecce1c', class: "success-page__card-row" }, h("rebill-typography", { key: '291b478d45874ff07ebebb62055bee17e8a502c4', variant: "body2", color: COLORS_ENUM.SECONDARY }, I18nService.translate('summary.installments')), h("div", { key: '0f368798d36647e712c8e17db732daa34886e0ee', style: {
|
|
281
281
|
display: 'flex',
|
|
282
282
|
flexDirection: 'column',
|
|
283
283
|
gap: '10px',
|
|
284
284
|
alignItems: 'end',
|
|
285
|
-
} }, h("rebill-typography", { key: '
|
|
285
|
+
} }, h("rebill-typography", { key: 'e75c7ecdfeedfe8b6c9474c4550110dbc9704b66', variant: "body2", color: COLORS_ENUM.PRIMARY_DARK_TEXT, style: { textAlign: 'end' } }, getInstallmentLabelSummary(sessionState.data?.cardInformation?.installments?.selectedInstallment
|
|
286
286
|
?.installment, getRecalculatedInstallmentAmount(sessionState.data?.cardInformation?.installments?.selectedInstallment
|
|
287
287
|
?.installmentAmount || 0), sessionState.data?.pricing?.currency, sessionState.data?.cardInformation?.installments?.selectedInstallment
|
|
288
288
|
?.cft, sessionState.data?.cardInformation?.installments?.selectedInstallment
|
|
289
|
-
?.model)), h("rebill-typography", { key: '
|
|
289
|
+
?.model)), h("rebill-typography", { key: 'd1e2feeb6c580ddd4fc53a70f367909388971fb4', variant: "body2", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, `( ${I18nService.translate('processing.purchaseTotal')}: ${this.getFormattedTotal()} )`), sessionState.data.cardInformation?.installments?.installments.find(installment => installment.installment ===
|
|
290
290
|
sessionState.data.cardInformation?.installments?.selectedInstallment
|
|
291
|
-
?.installment)?.model === ENUM_INSTALLMENT_MODEL.CUSTOMER_FINANCED && (h("rebill-typography", { key: '
|
|
291
|
+
?.installment)?.model === ENUM_INSTALLMENT_MODEL.CUSTOMER_FINANCED && (h("rebill-typography", { key: 'a7a0eb81b444782692034c9a5b18af1356b70c13', variant: "italic", color: COLORS_ENUM.SECONDARY, style: { textAlign: 'end' } }, `${I18nService.translate('installments.interest')}`)))))), h("div", { key: 'f274d45449db12d99982218397b2258454c0e144', class: "success-page__card-row" }, h("rebill-typography", { key: '3232ad074bcb725e0b5d289e215674781b643984', variant: "body2", color: COLORS_ENUM.SECONDARY }, I18nService.translate('processing.paymentDate')), h("rebill-typography", { key: 'f39ed5c14ce3dbbd648a49ddfa1826aebfffc8e9', variant: "body2", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, formatDateTime(this.paymentDate || this.getPaymentDate() || sessionState.createdAt) || '')), h("div", { key: 'e89db6cd5048b8649c01cc714e2aa62217e924ea', class: "success-page__card-row" }, h("rebill-typography", { key: '88520367ed3df38494abc3b09fb32570d6047919', variant: "body2", color: COLORS_ENUM.SECONDARY }, I18nService.translate('processing.paymentEmail')), h("rebill-typography", { key: '3f7f5cb7488996247736e1f7dd0da9669547127c', variant: "body2", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, sessionState?.data?.userInformation?.email)), h("div", { key: '204a54fcea6b69e52a9173c00b39b4c5c8a8f69d', class: "success-page__card-row" }, h("rebill-typography", { key: '47e99f1191bf0f190d6076ff6419b7c4c0a63dfe', variant: "body2", color: COLORS_ENUM.SECONDARY }, I18nService.translate('processing.paymentReference')), h("rebill-typography", { key: '9f4df7031fcf007817b810c81de06ea0e3574b26', variant: "body2", color: COLORS_ENUM.PRIMARY_DARK_TEXT, class: "success-page__reference-number" }, this.referenceNumber || ''))), h("div", { key: 'ec0e693b17b2982e6715bebfc1414a9f3fd015d0', class: "success-page__info-card" }, h("rebill-typography", { key: '768e6846d0ad7c0b28aac797d3faa8b9c54178b2', variant: "subtitle-bold", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, I18nService.translate('processing.purchaseDetails')), h("div", { key: 'fac0b7a4391536ac9d0302ad5d0e28ccf80adc2b', class: "success-page__card-row" }, h("rebill-typography", { key: '74616fc8881792094f4978542f619b7a92527ed2', variant: "body2", color: COLORS_ENUM.SECONDARY }, I18nService.translate('processing.purchaseDetail')), h("rebill-typography", { key: 'ba1b24a2ad5736d5ee520046ec16905e48ef43b1', variant: "body2", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, sessionState?.data?.itemInformation?.title || '')), !this.trialPeriodDays && (h("div", { key: '709715fe9019f8170a94a2fae4867110eddc57bc', class: "success-page__card-row" }, h("rebill-typography", { key: '0bca6d6d2384ac460a58711707778b378613196c', variant: "body2", color: COLORS_ENUM.SECONDARY }, I18nService.translate('processing.purchaseSubtotal')), h("rebill-typography", { key: 'fe0b41d30473d309c6a2f8c5b093a811c28dc2d0', variant: "body2", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, this.getFormattedSubtotal()))), sessionState?.data?.pricing?.discountAmount > 0 && (h("div", { key: 'f4e8db074e120f7d2a5c4ed8b2e1f787ede63f35', class: "success-page__card-row" }, h("rebill-typography", { key: '8d64ba931d3eb8f9d1b37e220a7ff96109562485', variant: "body2", color: COLORS_ENUM.SECONDARY }, I18nService.translate('summary.discount')), h("rebill-typography", { key: '9905b27eafda074b6ecf3e90559a9163a28653cd', variant: "body2", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, this.getFormattedDiscountAmount()))), h("div", { key: 'f4ea5720468f9880af8913450fc33827f714bf22', class: "success-page__card-row" }, h("rebill-typography", { key: '0cbf99f711ec2834536f0471b6b4529802794fe8', variant: "body2", color: COLORS_ENUM.SECONDARY }, I18nService.translate('processing.purchaseMontoTotal')), h("div", { key: '4f2c420ae59327d608d69979d1c369d4399c512c', class: "success-page__total-amount-container" }, this.trialPeriodDays > 0 && (h("div", { key: 'f118c9433a8f0ec5e0c357b983b93ba7cf3165b2', class: "success-page__trial-pill" }, h("rebill-typography", { key: 'fc0454a0c8a968354e880421bf458c09076a4f4d', variant: "body2", align: "center", color: COLORS_ENUM.GREEN_TEXT }, I18nService.translate('processing.trialPill', {
|
|
292
292
|
days: this.trialPeriodDays,
|
|
293
293
|
count: this.trialPeriodDays,
|
|
294
|
-
})))), h("rebill-typography", { key: '
|
|
294
|
+
})))), h("rebill-typography", { key: '837ad00c79574053f36059139673056745283433', variant: "body2", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, this.getFormattedTotal()))), (this.trialPeriodDays || this.hasDebitDay()) && (h("div", { key: '5fe0d5808fa641b824117396d2f71669174aae2f', class: "success-page__card-divider" })), (this.hasFreeTrial() || this.hasDebitDay()) && (h("div", { key: '4a868029e9ac7fe6a54aa34daa5542437b31f624', class: "success-page__next-charge-section" }, h("div", { key: '386cdf33df917b23ba3ba295a08b2948fb0be9a7', class: "success-page__next-charge-header" }, h("rebill-typography", { key: '6f3f562beb70ef93120f15372312c264550f7f47', variant: "subtitle-bold", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, I18nService.translate('processing.nextCharge')), h("rebill-typography", { key: '46b630206d284af7a75c33619dc5fe6300ea388e', variant: "subtitle-bold", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, I18nService.translate('processing.onDate', {
|
|
295
295
|
date: this.hasFreeTrial()
|
|
296
296
|
? this.getTrialEndDateFormatted()
|
|
297
297
|
: this.getDebitDateFormatted(),
|
|
298
|
-
}))), h("div", { key: '
|
|
298
|
+
}))), h("div", { key: 'b1919b98e0facc9d8e68c2905e967bf6d90415b9', class: "success-page__card-row" }, h("rebill-typography", { key: 'b0c85dd9fe6adf2b4e014741b6b098f27cf9f552', variant: "body2", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, this.hasFreeTrial() ? I18nService.translate('processing.atEndOfTrial') : ''), h("rebill-typography", { key: '6af4c69ad3b293b2c0af703971e67c8c14bd96e6', variant: "body2", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, this.getFormattedSubtotal(this.planAmount), ' ', I18nService.translate('processing.perMonth'))))), h("div", { key: '16fd48938a356debc1251f2f6d95dc5bda747b99', class: "success-page__card-divider" }), h("div", { key: '8e74365a032079c54e13581c583f2d808f3e504c', class: "success-page__download-container" }, h("svg", { key: 'e89ec4816ee4344a518287ba6fe6431309ca49b3', class: "download-icon", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'cc421397abe682efabc5f0dfc07ed863e40561ef', d: "M13.498 9.83333V12.1667C13.498 12.903 12.9011 13.5 12.1647 13.5H3.83138C3.095 13.5 2.49805 12.903 2.49805 12.1667V9.83333M7.99804 10V2.5M7.99804 10L5.66471 7.66667M7.99804 10L10.3314 7.66667", stroke: "currentColor", "stroke-linecap": "round", "stroke-linejoin": "round" })), h("rebill-button", { key: '81cc88001158130315bb70af6e76dc37d8cebf19', type: "button", variant: "download", size: "small", onClick: this.handleDownloadReceipt }, h("rebill-typography", { key: '1566d391c697d99c31d991b964e649fba7866a07', variant: "overline", color: COLORS_ENUM.PRIMARY_DARK_TEXT }, I18nService.translate('processing.download')))), h("div", { key: 'fd6402104418368520b007ea3e6ddd305431e0e9', class: "success-page__contact-info" }, h("rebill-typography", { key: '00c8d50544a1653bc0c8fbad649f525e475f04f1', variant: "information-text", color: COLORS_ENUM.SECONDARY }, I18nService.translate('processing.downloadDescription')))))));
|
|
299
299
|
}
|
|
300
300
|
static get is() { return "success-page"; }
|
|
301
301
|
static get originalStyleUrls() {
|
|
@@ -55,7 +55,7 @@ export class CheckoutForm {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
|
-
return (h("rebill-form", { key: '
|
|
58
|
+
return (h("rebill-form", { key: '913b8b648f75c30fe3ee82b877c71b73e8e7a9ef', ref: el => (this.formElement = el), validationSchema: this.validationSchema, initialData: this.initialData, onSubmit: (event) => this.handleSubmit(event.detail), onChange: (event) => this.handleChange(event.detail), renderForm: this.renderForm }));
|
|
59
59
|
}
|
|
60
60
|
static get is() { return "rebill-checkout-form"; }
|
|
61
61
|
static get properties() {
|
|
@@ -94,17 +94,17 @@ export class Otp {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
render() {
|
|
97
|
-
return (h("div", { key: '
|
|
97
|
+
return (h("div", { key: '1124eac37dc54f6d3e4fdf8575bae2ec51e0ad9b', class: "otp__otp-container" }, h("div", { key: 'dd578affb2dd03d93d5f799340f545b4e8e49684', class: "otp__user-information" }, h("div", { key: '3668bd0dc5834b0af06df4cf1062de1b6d9573fb', class: "otp__otp-description-container" }, h("rebill-typography", { key: '8f187701066eab97cd715d7d10e9abe54ccf8df5', variant: "body2", class: "otp__otp-description" }, I18nService.translate('otp.description')), h("rebill-typography", { key: 'cdeb77366d825819ba95aef6bd40bc85d6a63631', variant: "subtitle-bold", class: "otp__otp-description-digits" }, ' ', h("strong", { key: 'c31c005123e3d7e6abba74a4ca9f47740ed90f0c' }, I18nService.translate('otp.descriptionDigits')), ' '), h("rebill-typography", { key: '8863a76a9b9b901989958913849d0636916d6070', variant: "body2", class: "otp__otp-description-email" }, I18nService.translate('otp.descriptionEmail'))), h("rebill-typography", { key: 'ef2bbdf4e25f0a57f4bede92478fa01d8ae375d6', variant: "body2", class: "otp__otp-email-line" }, sessionState.data.userInformation.email, ' ', !sessionState.data.prefilledData?.email && (h("span", { key: 'bdd7af00af0eac899c545962d9e4c6cfe509bd58', class: "otp__change-email", onClick: () => {
|
|
98
98
|
this.otpValue = '';
|
|
99
99
|
this.error = false;
|
|
100
100
|
this.returnForm.emit(false);
|
|
101
|
-
} }, I18nService.translate('otp.change'))))), h("input-otp", { key: '
|
|
101
|
+
} }, I18nService.translate('otp.change'))))), h("input-otp", { key: '7471c843f8dd5450d8c62027b014d9fdb94f1ba0', otp: this.otpValue, onOtpChange: event => this.handleOtpChange(event.detail), error: this.error ? I18nService.translate('otp.error') : '' }), this.isVerifying && (h("div", { key: 'ae324f212d96bf320da9cbb3d22dc85b6d186825', class: "otp__verifying-container" }, h("rebill-typography", { key: '0b8014cf9441a4f972bad53d02494bbf25378aca', variant: "subtitle2", color: COLORS_ENUM.PRIMARY }, I18nService.translate('otp.verifyingCode')), h("div", { key: '7969178c1d69da5c9445752f75ae029f3783a34d', class: "otp__spinner" }))), h("rebill-button", { key: 'ae03bb0fda79d6abb90d376fec3fee1fca92931c', type: "button", variant: "outline", theme: this.isTimerRunning ? 'secondary' : 'primary', disabled: this.isTimerRunning, onClick: this.handleResendCode, size: "small", style: { height: '24px', marginBottom: '8px' } }, this.isTimerRunning
|
|
102
102
|
? `${I18nService.translate('otp.resendCodeIn')} (${this.timer.getFormattedTime()})`
|
|
103
|
-
: I18nService.translate('otp.resendCode')), this.codeResent && (h("div", { key: '
|
|
103
|
+
: I18nService.translate('otp.resendCode')), this.codeResent && (h("div", { key: '987f6e8c24dcff5a25ba2156d0385b5f3d926b23', class: "otp__code-resent-container" }, h("rebill-typography", { key: '90fa96b10fb27aeff99945467f950b47dbb542b6', variant: "subtitle2", color: COLORS_ENUM.GREEN }, h("rebill-icon", { key: '348d5aeb1519c42a2c0e55b021bb7dc1fea7d241', name: "check-radio" }), I18nService.translate('otp.codeResent')))), h("rebill-alert", { key: 'ffe394d4d54e1325d19da201e6e523f7473d0302', class: "otp__rebill-alert", type: "secure", variant: "variant-info", message: I18nService.translate('otp.infoMessage'), icon: "circle-info", alertTitle: I18nService.translate('otp.infoTitle'), colorIcon: COLORS_ENUM.PRIMARY_DARK_LIGHT }), h("div", { key: 'ef979f9b54840511db1ea6dcb2fdeee728a5c162', class: "otp__alternative" }, h("rebill-typography", { key: 'f4b528125adf4186ba098a9b835b69109f58b30c', variant: "body2", color: COLORS_ENUM.PRIMARY_DARK }, "o")), h("div", { key: 'e2b1f77e9a374509e8109ff6bb9937a524c03060', class: "otp__guest-options" }, h("rebill-button", { key: 'd397f7db305d6b7790f7ac485e3765c94a8b64e0', type: "button", variant: "outline", theme: "secondary", size: "medium", onClick: () => {
|
|
104
104
|
this.otpValue = '';
|
|
105
105
|
this.error = false;
|
|
106
106
|
this.returnForm.emit(false);
|
|
107
|
-
} }, I18nService.translate('otp.continueAsGuest')), h("rebill-alert", { key: '
|
|
107
|
+
} }, I18nService.translate('otp.continueAsGuest')), h("rebill-alert", { key: 'f51cad69765e40648182d9e0d37fd7a8f20aa72d', type: "secure", variant: "variant-secure", icon: "lock-outline", message: I18nService.translate('otp.secureMessage') }))));
|
|
108
108
|
}
|
|
109
109
|
static get is() { return "otp-component"; }
|
|
110
110
|
static get originalStyleUrls() {
|
|
@@ -9,9 +9,9 @@ export class CardFieldsWrapper {
|
|
|
9
9
|
showDocument;
|
|
10
10
|
customCSS;
|
|
11
11
|
render() {
|
|
12
|
-
return (h("div", { key: '
|
|
12
|
+
return (h("div", { key: 'd2d13c8b43ac83c032a20a27cd26a35a27478270', style: { display: 'flex', flexDirection: 'column', gap: '16px' } }, h("card-iframe", { key: '88bedb4599965f2e811d21a015c503e468a421cd', customCSS: this.customCSS }), !renewalState.isInitialized &&
|
|
13
13
|
sessionState.data?.itemInformation?.type !== SESSION_ITEM_TYPE_ENUM.PLAN &&
|
|
14
|
-
sessionState.data.cardInformation?.installments?.installments.length > 0 && (h("rebill-installments", { key: '
|
|
14
|
+
sessionState.data.cardInformation?.installments?.installments.length > 0 && (h("rebill-installments", { key: 'e5e2f139eb7b0e857d48b7e8ae20b1deba4e4bf3', error: this.installmentsError })), this.showDocument && (h("card-identification", { key: '150f5355fe805e3ec12aa91f322a2096a43ee9ca', documentTypeError: this.documentTypeError, documentNumberError: this.documentNumberError }))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "card-fields-wrapper"; }
|
|
17
17
|
static get properties() {
|
|
@@ -62,7 +62,7 @@ export class Identification {
|
|
|
62
62
|
label: documentType.value,
|
|
63
63
|
value: documentType.value,
|
|
64
64
|
}));
|
|
65
|
-
return (h(h.Fragment, null, h("rebill-input-combo", { key: '
|
|
65
|
+
return (h(h.Fragment, null, h("rebill-input-combo", { key: '3a995ac7c50c2b36c0827ab9d9696b3682160311', "select-id": "documentType", "input-id": "documentNumber", "on-input": this.handleInputChange, "select-placeholder": I18nService.translate('document.typePlaceholder'), "input-placeholder": I18nService.translate('document.numberPlaceholder'), error: I18nService.translate(error), options: options, disabled: this.disabled })));
|
|
66
66
|
}
|
|
67
67
|
static get is() { return "card-identification"; }
|
|
68
68
|
static get properties() {
|
package/dist/collection/components/checkout/payment-method-selector/card-fields/iframe/CardIframe.js
CHANGED
|
@@ -334,12 +334,12 @@ export class CardIframe {
|
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
336
|
render() {
|
|
337
|
-
return (h("div", { key: '
|
|
337
|
+
return (h("div", { key: 'bbc86deffbe89ea5d34d8373eecc4d2c91a68730', style: {
|
|
338
338
|
width: '100%',
|
|
339
339
|
height: this.iframeHeight,
|
|
340
340
|
position: 'relative',
|
|
341
341
|
overflow: 'hidden',
|
|
342
|
-
} }, !this.iframeLoaded && h("card-skeleton", { key: '
|
|
342
|
+
} }, !this.iframeLoaded && h("card-skeleton", { key: '8c2505c2a2411374c3af667e779f28dd62dc8ebe' }), h("iframe", { key: '6f7ae6cf9d4899370b88cb61521bb622b87d9e0f', ref: el => (this.iframeRef = el), src: this.getIframeURL(), style: {
|
|
343
343
|
width: '100%',
|
|
344
344
|
height: '100%',
|
|
345
345
|
border: 'none',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class CardSkeleton {
|
|
3
3
|
render() {
|
|
4
|
-
return (h("div", { key: '
|
|
4
|
+
return (h("div", { key: '65268605af4713cf31ea230eb2ca28372b462ae9', class: "iframe-skeleton" }, h("div", { key: '703a201ac037d042b1ab8a4727c17b8ab85cdedc', class: "input-skeleton" }), h("div", { key: 'f2dbb0d69cf6b4fa7f5b51c7db8ab5b0da0ea32d', class: "input-skeleton" })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "card-skeleton"; }
|
|
7
7
|
static get originalStyleUrls() {
|
|
@@ -40,11 +40,11 @@ export class Installments {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h("div", { key: '
|
|
43
|
+
return (h("div", { key: '4af075549b78b088506e275cb19a75967a9ae39f' }, h("rebill-input-select", { key: this.isDisabled.toString(), id: "installments", variant: "outlined", value: this.value, options: sessionState.data.cardInformation?.installments?.installments.map(installment => ({
|
|
44
44
|
label: getInstallmentLabel(installment.installment, getRecalculatedInstallmentAmount(installment.installmentAmount), sessionState.data.pricing?.currency, installment.cft, installment.model),
|
|
45
45
|
value: installment?.installment?.toString(),
|
|
46
46
|
})) || [], loading: sessionState.data.fetchingInstallments, placeholder: this.placeholder, disabled: this.isDisabled, "on-input": this.handleInstallments, error: I18nService.translate(this.error) }), sessionState.data.cardInformation?.installments?.installments.find(installment => installment.installment ===
|
|
47
|
-
sessionState.data.cardInformation?.installments?.selectedInstallment?.installment)?.model === ENUM_INSTALLMENT_MODEL.CUSTOMER_FINANCED && (h("rebill-typography", { key: '
|
|
47
|
+
sessionState.data.cardInformation?.installments?.selectedInstallment?.installment)?.model === ENUM_INSTALLMENT_MODEL.CUSTOMER_FINANCED && (h("rebill-typography", { key: '812dd9796b719b349ed1a07ad4619a3d619f2ba8', variant: "italic", color: COLORS_ENUM.SECONDARY }, I18nService.translate('installments.interest')))));
|
|
48
48
|
}
|
|
49
49
|
static get is() { return "rebill-installments"; }
|
|
50
50
|
static get originalStyleUrls() {
|
|
@@ -23,7 +23,7 @@ export class RebillFooter {
|
|
|
23
23
|
SessionStore.changeLanguage(event.detail.value);
|
|
24
24
|
};
|
|
25
25
|
render() {
|
|
26
|
-
return (h("div", { key: '
|
|
26
|
+
return (h("div", { key: 'a01a21f9dcecdc73e30311dff6329545233ffa2e', class: "rebill-footer__footer-content" }, h("div", { key: 'f3ebd54eda491ff9ce727260c4475ca32f831cbf', class: "terms-and-conditions" }, !isBreakpointBelow(this.breakpoint, BREAKPOINT_ENUM.DESKTOP) && (h("rebill-typography", { key: '9b3587814c80ea82c98f46793c3a9f7466fe8fc7', variant: "subtitle3", color: COLORS_ENUM.SECONDARY, class: "footer-powered" }, I18nService.translate('footer.poweredBy'))), h("rebill-icon", { key: 'b5f0eda6f26619143ab7f45d392a07942e83c0d1', name: "rebill-logo", color: COLORS_ENUM.SECONDARY }), h("rebill-icon", { key: 'bb3d90ca79ce26e4cf23b09ed880b4ebb1268ab8', name: "rebill", color: COLORS_ENUM.SECONDARY }), h("rebill-typography", { key: 'b8eda0b1357fb13bafee74c60199186e029663c2', variant: "subtitle3", color: COLORS_ENUM.SECONDARY, class: "footer-separator" }, "|"), h("rebill-typography", { key: '68eadcd5b8043fbabb55d8208beb436bbed73c10', variant: "subtitle3", color: COLORS_ENUM.SECONDARY, class: "footer-link" }, h("a", { key: 'e7499bb9ff3c7daa5ffe61a25563e1d18d379e6a', href: "https://www.rebill.com/terminos-y-condiciones-usuarios-finales", target: "_blank" }, I18nService.translate('footer.termsAndConditions')))), h("div", { key: '06e153ccd9092a6d0a9dfc44c59a6850288a72b5', class: "language-selector" }, h("rebill-icon", { key: '994a74a0af832f9cabf2e9ff0fd53c0b812b25d9', name: "world" }), h("rebill-input-select", { key: 'ba481c0e98aff6092ea2901f61c81dfc928c4c38', id: "language-selector", variant: "underlined", backgroundColor: isBreakpointBelow(this.breakpoint, BREAKPOINT_ENUM.DESKTOP)
|
|
27
27
|
? ''
|
|
28
28
|
: 'var(--rebill-color-background-left)', options: [
|
|
29
29
|
{ label: 'EN', value: LOCALES_ENUM.EN },
|
|
@@ -56,7 +56,7 @@ export class UserInformationPhone {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '22a19f5259c0c44af49eccf475a23f2184f86aa7' }, h("div", { key: '936709bd5c83400535819879936335948358d0dd' }, h("rebill-input-phone", { key: '65163b7395a0219ced0b86bd65041afe4ca07dee', disabled: this.disabled, validationErrorId: "isValidPhoneNumber", phoneNumberId: "phoneNumber", countryCodeId: "countryCodePhoneNumber", placeholder: I18nService.translate('userInformation.phoneNumberPlaceholder'), "initial-country": this.countryCode?.toLowerCase() || 'ar', error: this.error, required: true, searchable: true, searchPlaceholder: I18nService.translate('userInformation.searchCountriesPlaceholder') }))));
|
|
60
60
|
}
|
|
61
61
|
static get is() { return "user-information-phone"; }
|
|
62
62
|
static get originalStyleUrls() {
|