rebill-web-components-sdk 1.10.1 → 1.10.2-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as s}from"./p-BTZ7D7jU.js";const e=class{constructor(s){t(this,s)}columns=12;gap="1rem";alignItems="stretch";justifyContent="start";render(){const t={display:"grid",gridTemplateColumns:`repeat(${this.columns}, 1fr)`,gap:this.gap,alignItems:this.alignItems,justifyContent:this.justifyContent,width:"100%"};return s("div",{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as s}from"./p-BTZ7D7jU.js";const e=class{constructor(s){t(this,s)}columns=12;gap="1rem";alignItems="stretch";justifyContent="start";render(){const t={display:"grid",gridTemplateColumns:`repeat(${this.columns}, 1fr)`,gap:this.gap,alignItems:this.alignItems,justifyContent:this.justifyContent,width:"100%"};return s("div",{key:"fa76f75f9a6a57dd1142374ba0649a81f23b4b28",style:t},s("slot",{key:"79dcfa6b244315f5f0e1cc30eca4e181e81fc89d"}))}};export{e as rebill_grid_container};
|
|
2
|
+
//# sourceMappingURL=p-07ef4ea3.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,c as i,h as s}from"./p-BTZ7D7jU.js";import{a,V as h}from"./p-MMCcKmy_.js";import"./p-E-ZsRS8r.js";class e{schema;constructor(t){this.schema=a().shape(t)}async validateField(t,i){try{await this.schema.validateAt(t,i);return""}catch(t){if(t instanceof h){return t.message}return""}}async validateForm(t){try{await this.schema.validate(t,{abortEarly:false});return{}}catch(t){if(t instanceof h){const i={};t.inner.forEach((t=>{if(t.path){i[t.path]=t.message}}));return i}return{}}}}const r=class{constructor(s){t(this,s);this.submit=i(this,"submit");this.change=i(this,"change")}validationSchema;initialData={};submit;change;renderForm;formData={};errors={};validator;hasSubmitted=false;handleInitialDataChange(t){const i={...this.formData};Object.keys(t).forEach((s=>{if(i[s]===undefined||i[s]===""){i[s]=t[s]}}));this.formData=i;this.change.emit(this.formData)}handleValidationSchemaChange(t){this.validator=new e(t)}componentWillLoad(){this.formData={...this.initialData};this.validator=new e(this.validationSchema);setTimeout((()=>{this.change.emit(this.formData)}),100)}setFieldValue(t,i){if(this.formData[t]!==i){this.formData={...this.formData,[t]:i}}}setFieldError(t,i){if(this.errors[t]!==i){this.errors={...this.errors,[t]:i}}}clearFieldError(t){if(this.hasFieldError(t)){this.setFieldError(t,"")}}hasFieldError(t){return this.errors[t]!==""}async handleInputChange(t){if(!t.detail||!t.detail.id)return;const{id:i,value:s,disabled:a}=t.detail;this.setFieldValue(i,s);if(this.hasSubmitted&&!a){const t=await this.validator.validateField(i,this.formData);this.setFieldError(i,t)}else{if(this.hasFieldError(i)){this.clearFieldError(i)}}this.change.emit(this.formData)}async handleBlur(t){if(!t.detail||!t.detail.id)return;const{id:i,disabled:s}=t.detail;if(!s){const t=await this.validator.validateField(i,this.formData);this.setFieldError(i,t)}}async submitForm(){this.hasSubmitted=true;this.errors={};const t=await this.validator.validateForm(this.formData);this.errors=t;if(Object.values(this.errors).filter((t=>!!t)).length===0){this.submit.emit(this.formData)}}async resetValidation(){this.hasSubmitted=false;this.errors={}}async clearError(t){this.clearFieldError(t)}handleSubmit=async t=>{t.preventDefault();await this.submitForm()};render(){return s("form",{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,c as i,h as s}from"./p-BTZ7D7jU.js";import{a,V as h}from"./p-MMCcKmy_.js";import"./p-E-ZsRS8r.js";class e{schema;constructor(t){this.schema=a().shape(t)}async validateField(t,i){try{await this.schema.validateAt(t,i);return""}catch(t){if(t instanceof h){return t.message}return""}}async validateForm(t){try{await this.schema.validate(t,{abortEarly:false});return{}}catch(t){if(t instanceof h){const i={};t.inner.forEach((t=>{if(t.path){i[t.path]=t.message}}));return i}return{}}}}const r=class{constructor(s){t(this,s);this.submit=i(this,"submit");this.change=i(this,"change")}validationSchema;initialData={};submit;change;renderForm;formData={};errors={};validator;hasSubmitted=false;handleInitialDataChange(t){const i={...this.formData};Object.keys(t).forEach((s=>{if(i[s]===undefined||i[s]===""){i[s]=t[s]}}));this.formData=i;this.change.emit(this.formData)}handleValidationSchemaChange(t){this.validator=new e(t)}componentWillLoad(){this.formData={...this.initialData};this.validator=new e(this.validationSchema);setTimeout((()=>{this.change.emit(this.formData)}),100)}setFieldValue(t,i){if(this.formData[t]!==i){this.formData={...this.formData,[t]:i}}}setFieldError(t,i){if(this.errors[t]!==i){this.errors={...this.errors,[t]:i}}}clearFieldError(t){if(this.hasFieldError(t)){this.setFieldError(t,"")}}hasFieldError(t){return this.errors[t]!==""}async handleInputChange(t){if(!t.detail||!t.detail.id)return;const{id:i,value:s,disabled:a}=t.detail;this.setFieldValue(i,s);if(this.hasSubmitted&&!a){const t=await this.validator.validateField(i,this.formData);this.setFieldError(i,t)}else{if(this.hasFieldError(i)){this.clearFieldError(i)}}this.change.emit(this.formData)}async handleBlur(t){if(!t.detail||!t.detail.id)return;const{id:i,disabled:s}=t.detail;if(!s){const t=await this.validator.validateField(i,this.formData);this.setFieldError(i,t)}}async submitForm(){this.hasSubmitted=true;this.errors={};const t=await this.validator.validateForm(this.formData);this.errors=t;if(Object.values(this.errors).filter((t=>!!t)).length===0){this.submit.emit(this.formData)}}async resetValidation(){this.hasSubmitted=false;this.errors={}}async clearError(t){this.clearFieldError(t)}handleSubmit=async t=>{t.preventDefault();await this.submitForm()};render(){return s("form",{key:"52bbd73020352379d4d196e1fa6ea32dbb5bf8cc",onSubmit:t=>this.handleSubmit(t),noValidate:true},this.renderForm?this.renderForm({submit:()=>this.submitForm(),formData:this.formData,errors:this.errors}):s("slot",null))}static get watchers(){return{initialData:["handleInitialDataChange"],validationSchema:["handleValidationSchemaChange"]}}};export{r as rebill_form};
|
|
2
|
+
//# sourceMappingURL=p-1a99d53d.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r,h as
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r,h as l}from"./p-BTZ7D7jU.js";import{I as e,S as o}from"./p-Bkzz9eGU.js";import{c as a}from"./p-MMCcKmy_.js";import{L as i}from"./p-BzDRvtfU.js";import"./p-E-ZsRS8r.js";const t=":root{--rebill-color-primary:#3b82f6;--rebill-color-primary-light:rgba(59, 130, 246, 0.1);--rebill-color-primary-hover:#2563eb;--rebill-color-primary-dark-hover:#001c4a;--rebill-color-info-border:#0156f6;--rebill-color-info-text:#172b85;--rebill-color-link:#0056f6;--rebill-color-primary-dark:#001131;--rebill-color-primary-dark-text:#000000;--rebill-color-primary-dark-light:rgba(0, 17, 49, 0.1);--rebill-color-error:#ef4444;--rebill-color-error-background:#fef2f2;--rebill-color-error-light:rgba(239, 68, 68, 0.1);--rebill-color-error-dark:#6f101b;--rebill-color-background:#ffffff;--rebill-color-background-left:#fafafa;--rebill-color-background-right:#f4f5f6;--rebill-color-background-secondary:#f7f8fa;--rebill-color-border:#ebedef;--rebill-color-timeline-connector:#c4c8cf;--rebill-color-neutrals-700:#58616e;--rebill-color-neutrals-500:#9ca3af;--rebill-color-border-primary:#e4e4e7;--rebill-color-text-primary:#3b4049;--rebill-color-text-secondary:#6b7280;--rebill-color-grey-700:#7d7d7d;--rebill-color-text-secondary-light:#a1a1aa;--rebill-color-text-on-primary:#ffffff;--rebill-color-disabled:#9ca3af;--rebill-color-shadow:rgba(0, 0, 0, 0.1);--rebill-color-green:#10b981;--rebill-color-green-text:#257c67;--rebill-color-green-light:rgba(183, 233, 221, 0.15);--rebill-color-green-light-2:rgba(183, 233, 221, 1);--rebill-color-info-background:#d5e4ff;--rebill-color-background-secondary-light:#f7f8fa;--rebill-breakpoint-mobile:768px;--rebill-breakpoint-tablet:1024px;--rebill-breakpoint-desktop:1025px;--rebill-color-orange:#ff9400;--rebill-color-black:#1e2025;--rebill-color-grey-300:#3b4049;--rebill-color-grey-100:#aeaeae}.qr-container,.qr-image,.qr-image svg,.qr-image img,[class*='qr-'],[class*='success'],[class*='receipt']{transition:none !important;animation:none !important;will-change:auto !important}button:active,button:focus,button:hover{isolation:isolate}:host{display:block}";const b=class{constructor(l){r(this,l)}isLoading=false;currentLang=e.getCurrentLanguage();formData={nombre:"Juan",apellido:"Perez",pais:"AR"};validationSchema={nombre:a().required("El nombre es requerido").min(2,"El nombre debe tener al menos 2 caracteres"),apellido:a().required("El apellido es requerido").min(2,"El apellido debe tener al menos 2 caracteres"),pais:a().required("El país es requerido")};handleSubmit=r=>{this.isLoading=true;this.formData={...r.detail};setTimeout((()=>{this.isLoading=false}),2e3)};handleChange=r=>{console.log("Form changed:",r.detail)};async handleLanguageChange(r){await e.changeLanguage(r);this.currentLang=r}componentDidLoad(){o.onChange("data",(r=>{console.log("data",r)}));o.setDiscount(null)}render(){return l("div",{key:"b97d5451470512049b339d0587532ab287239c86"},l("div",{key:"cf473e173370b2112363b59c8816474a6707c2ed",style:{display:"flex",justifyContent:"flex-end",padding:"1rem"}},l("rebill-button",{key:"8742e96b7f56cac0804d6eb62820cd6f5d4fe8a9",onClick:()=>this.handleLanguageChange(this.currentLang===i.EN?i.ES:i.EN)},this.currentLang===i.EN?"Cambiar a Español":"Switch to English")),l("rebill-form",{key:"2482cb30f15dc6e4817897915acfa61caf605099",validationSchema:this.validationSchema,initialData:this.formData,onSubmit:r=>this.handleSubmit(r),onChange:r=>this.handleChange(r),renderForm:({submit:r,formData:o,errors:a})=>l("rebill-container",{maxWidth:"800px"},l("h3",null,e.translate("common.welcome")),l("rebill-input-text",{id:"nombre",label:"Nombre",placeholder:"Ingrese su nombre",error:a.nombre}),l("rebill-input-text",{id:"apellido",label:"Apellido",placeholder:"Ingrese su apellido",error:a.apellido}),l("rebill-input-select",{disabled:true,id:"pais",label:"País",error:a.pais,options:[{label:"Argentina",value:"AR"},{label:"Brasil",value:"BR"},{label:"Chile",value:"CL"}]}),l("rebill-input-checkbox",{disabled:true,id:"sameAsShipping",label:"Same as shipping",checked:true,error:""}),l("rebill-button",{type:"submit",onClick:r,loading:this.isLoading},e.translate("buttons.submit")),l("rebill-typography",{variant:"h1"},"Título h1"),l("rebill-typography",{variant:"h2"},"Título h2"),l("rebill-typography",{variant:"h3"},"Título h3"),l("rebill-typography",{variant:"h4"},"Título h4"),l("rebill-typography",{variant:"h5"},"Título h5"),l("rebill-typography",{variant:"h6"},"Título h6"),l("rebill-typography",{variant:"subtitle1"},"subtitle1"),l("rebill-typography",{variant:"subtitle2"},"subtitle2"),l("rebill-typography",{variant:"body1"},"body1"),l("rebill-typography",{variant:"body2"},"body2"),l("rebill-typography",{variant:"button"},"button"),l("rebill-typography",{variant:"caption"},"caption"),l("rebill-typography",{variant:"overline"},"overline"),l("rebill-typography",{variant:"subtitle1"},"Subtítulo"),l("rebill-typography",{variant:"body1",align:"justify"},"Este es un párrafo de texto con alineación justificada."),l("rebill-typography",{variant:"button"},"Click aquí"),l("rebill-typography",{variant:"body2","gutter-bottom":true},"Este texto tendrá un margen inferior."))}))}};b.style=t;export{b as root_component};
|
|
2
|
+
//# sourceMappingURL=p-1b4222b8.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as e,d as s,h as o}from"./p-BTZ7D7jU.js";const i="";const r=class{constructor(s){t(this,s);this.autofillDetected=e(this,"autofillDetected");this.manualEntryRequested=e(this,"manualEntryRequested")}get el(){return s(this)}targetSelector='input[type="text"]';disabled=false;autofillDetected;manualEntryRequested;browserAutocompleteDetected=false;disabledDetector=false;async componentDidLoad(){if(!this.disabled){await this.setupBrowserAutocompleteDetection()}}async setupBrowserAutocompleteDetection(){try{const t=await this.getInputElement();if(!t)return;let e="";let s=false;t.addEventListener("keydown",(t=>{if(t.key&&t.key.length===1){s=true;this.disabledDetector=true;setTimeout((()=>{s=false;this.disabledDetector=false}),1e3)}}));const o=()=>{const o=t.value;if(o!==e&&o.length>0&&!this.disabled&&!this.disabledDetector&&!s){console.log("✅ AutofillDetector - Autocomplete detected:",o);setTimeout((()=>{if(t.value===o&&!this.browserAutocompleteDetected){this.browserAutocompleteDetected=true;this.handleBrowserAutocomplete(o)}}),100)}e=o};t.addEventListener("input",(()=>o()));t.addEventListener("change",(()=>o()));t.addEventListener("focus",(()=>{this.browserAutocompleteDetected=false;s=false}));t.addEventListener("blur",(()=>{}))}catch(t){}}async getInputElement(){try{const t=this.el.querySelector(this.targetSelector);return t}catch(t){return null}}handleBrowserAutocomplete(t){const e=this.detectAllAutocompleteFields();const s=this.parseBrowserAutocompleteAddress(t);if(s){const t={...s,city:s.city||e.city||"",state:s.state||e.state||"",country:s.country||e.country||"",zip:s.zip||e.zip||""};this.autofillDetected.emit(t);this.handleManualEntry()}}detectAllAutocompleteFields(){const t={};try{const e=this.el.closest("form")||document;const s=e.querySelectorAll("input, select");for(let e=0;e<s.length;e++){const o=s[e];const i=o.value;const r=o.id||"";const c=o.name||"";const n=o.className||"";if(i&&(r.includes("city")||c.includes("city")||n.includes("city"))){t.city=i}if(i&&(r.includes("zip")||c.includes("zip")||n.includes("zip")||r.includes("postal")||c.includes("postal")||n.includes("postal"))){t.zip=i}if(i&&(r.includes("country")||c.includes("country")||n.includes("country"))){t.country=i}if(i&&(r.includes("state")||c.includes("state")||n.includes("state"))){t.state=i}}}catch(t){}return t}parseBrowserAutocompleteAddress(t){if(!t||t.trim().length===0){return null}const e=t.trim();if(!e.includes(",")){return this.parseSinglePartAddress(e)}const s=e.split(",").map((t=>t.trim()));return{address:s[0]||"",city:s[1]||"",state:s[2]||"",country:s[3]||"",zip:s[4]||""}}parseSinglePartAddress(t){return{address:t,city:"",state:"",country:"",zip:""}}handleManualEntry=()=>{this.manualEntryRequested.emit()};render(){return o("slot",{key:"60aa28de56b48a704b51286fa433131f9efd3d26"})}};r.style=i;export{r as rebill_autofill_detector};
|
|
2
|
+
//# sourceMappingURL=p-1c000e38.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["registerInstance","createEvent","getElement","h","autofillDetectorCss","AutofillDetector","constructor","hostRef","this","autofillDetected","manualEntryRequested","el","targetSelector","disabled","browserAutocompleteDetected","disabledDetector","componentDidLoad","setupBrowserAutocompleteDetection","inputElement","getInputElement","lastValue","isUserTyping","addEventListener","event","key","length","setTimeout","detectAutocomplete","currentValue","value","console","log","handleBrowserAutocomplete","error","querySelector","addressString","allAutocompleteData","detectAllAutocompleteFields","addressComponents","parseBrowserAutocompleteAddress","enhancedComponents","city","state","country","zip","emit","handleManualEntry","info","form","closest","document","allInputs","querySelectorAll","i","field","id","name","className","includes","trim","cleanAddress","parseSinglePartAddress","addressParts","split","map","part","address","render","style"],"sources":["0"],"mappings":"YAAcA,OAAuBC,OAAkBC,OAAYC,MAAS,kBAE5E,MAAMC,EAAsB,GAE5B,MAAMC,EAAmB,MACrB,WAAAC,CAAYC,GACRP,EAAiBQ,KAAMD,GACvBC,KAAKC,iBAAmBR,EAAYO,KAAM,oBAC1CA,KAAKE,qBAAuBT,EAAYO,KAAM,uBAClD,CACA,MAAIG,GAAO,OAAOT,EAAWM,KAAO,CACpCI,eAAiB,qBACjBC,SAAW,MACXJ,iBACAC,qBACAI,4BAA8B,MAC9BC,iBAAmB,MACnB,sBAAMC,GACF,IAAKR,KAAKK,SAAU,OACVL,KAAKS,mCACf,CACJ,CACA,uCAAMA,GACF,IACI,MAAMC,QAAqBV,KAAKW,kBAChC,IAAKD,EACD,OACJ,IAAIE,EAAY,GAChB,IAAIC,EAAe,MAEnBH,EAAaI,iBAAiB,WAAWC,IACrC,GAAIA,EAAMC,KAAOD,EAAMC,IAAIC,SAAW,EAAG,CACrCJ,EAAe,KACfb,KAAKO,iBAAmB,KACxBW,YAAW,KACPL,EAAe,MACfb,KAAKO,iBAAmB,KAAK,GAC9B,IACP,KAGJ,MAAMY,EAAqB,KACvB,MAAMC,EAAeV,EAAaW,MAClC,GAAID,IAAiBR,GACjBQ,EAAaH,OAAS,IACrBjB,KAAKK,WACLL,KAAKO,mBACLM,EAAc,CACfS,QAAQC,IAAI,8CAA+CH,GAC3DF,YAAW,KACP,GAAIR,EAAaW,QAAUD,IAAiBpB,KAAKM,4BAA6B,CAC1EN,KAAKM,4BAA8B,KACnCN,KAAKwB,0BAA0BJ,EACnC,IACD,IACP,CACAR,EAAYQ,CAAY,EAG5BV,EAAaI,iBAAiB,SAAS,IAAMK,MAC7CT,EAAaI,iBAAiB,UAAU,IAAMK,MAC9CT,EAAaI,iBAAiB,SAAS,KACnCd,KAAKM,4BAA8B,MACnCO,EAAe,KAAK,IAExBH,EAAaI,iBAAiB,QAAQ,QAE1C,CACA,MAAOW,GAAS,CACpB,CACA,qBAAMd,GACF,IACI,MAAMD,EAAeV,KAAKG,GAAGuB,cAAc1B,KAAKI,gBAChD,OAAOM,CACX,CACA,MAAOe,GACH,OAAO,IACX,CACJ,CACA,yBAAAD,CAA0BG,GACtB,MAAMC,EAAsB5B,KAAK6B,8BAEjC,MAAMC,EAAoB9B,KAAK+B,gCAAgCJ,GAC/D,GAAIG,EAAmB,CAEnB,MAAME,EAAqB,IACpBF,EACHG,KAAMH,EAAkBG,MAAQL,EAAoBK,MAAQ,GAC5DC,MAAOJ,EAAkBI,OAASN,EAAoBM,OAAS,GAC/DC,QAASL,EAAkBK,SAAWP,EAAoBO,SAAW,GACrEC,IAAKN,EAAkBM,KAAOR,EAAoBQ,KAAO,IAG7DpC,KAAKC,iBAAiBoC,KAAKL,GAE3BhC,KAAKsC,mBACT,CACJ,CACA,2BAAAT,GACI,MAAMU,EAAO,CAAC,EACd,IAEI,MAAMC,EAAOxC,KAAKG,GAAGsC,QAAQ,SAAWC,SAExC,MAAMC,EAAYH,EAAKI,iBAAiB,iBACxC,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAU1B,OAAQ4B,IAAK,CACvC,MAAMC,EAAQH,EAAUE,GACxB,MAAMxB,EAAQyB,EAAMzB,MACpB,MAAM0B,EAAKD,EAAMC,IAAM,GACvB,MAAMC,EAAOF,EAAME,MAAQ,GAC3B,MAAMC,EAAYH,EAAMG,WAAa,GAErC,GAAI5B,IAAU0B,EAAGG,SAAS,SAAWF,EAAKE,SAAS,SAAWD,EAAUC,SAAS,SAAU,CACvFX,EAAKN,KAAOZ,CAChB,CAEA,GAAIA,IACC0B,EAAGG,SAAS,QACTF,EAAKE,SAAS,QACdD,EAAUC,SAAS,QACnBH,EAAGG,SAAS,WACZF,EAAKE,SAAS,WACdD,EAAUC,SAAS,WAAY,CACnCX,EAAKH,IAAMf,CACf,CAEA,GAAIA,IACC0B,EAAGG,SAAS,YAAcF,EAAKE,SAAS,YAAcD,EAAUC,SAAS,YAAa,CACvFX,EAAKJ,QAAUd,CACnB,CAEA,GAAIA,IACC0B,EAAGG,SAAS,UAAYF,EAAKE,SAAS,UAAYD,EAAUC,SAAS,UAAW,CACjFX,EAAKL,MAAQb,CACjB,CACJ,CACJ,CACA,MAAOI,GAEP,CACA,OAAOc,CACX,CACA,+BAAAR,CAAgCJ,GAC5B,IAAKA,GAAiBA,EAAcwB,OAAOlC,SAAW,EAAG,CACrD,OAAO,IACX,CACA,MAAMmC,EAAezB,EAAcwB,OAEnC,IAAKC,EAAaF,SAAS,KAAM,CAC7B,OAAOlD,KAAKqD,uBAAuBD,EACvC,CAEA,MAAME,EAAeF,EAAaG,MAAM,KAAKC,KAAIC,GAAQA,EAAKN,SAC9D,MAAO,CACHO,QAASJ,EAAa,IAAM,GAC5BrB,KAAMqB,EAAa,IAAM,GACzBpB,MAAOoB,EAAa,IAAM,GAC1BnB,QAASmB,EAAa,IAAM,GAC5BlB,IAAKkB,EAAa,IAAM,GAEhC,CACA,sBAAAD,CAAuBK,GAEnB,MAAO,CACHA,QAASA,EACTzB,KAAM,GACNC,MAAO,GACPC,QAAS,GACTC,IAAK,GAEb,CACAE,kBAAoB,KAChBtC,KAAKE,qBAAqBmC,MAAM,EAEpC,MAAAsB,GACI,OAAOhE,EAAE,OAAQ,CAAEqB,IAAK,4CAC5B,GAEJnB,EAAiB+D,MAAQhE,SAEhBC","ignoreList":[]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as a,h as i}from"./p-BTZ7D7jU.js";const r=".card-carousel-container{display:flex;flex-direction:column;align-items:center;gap:8px;position:relative}.card-carousel{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;min-height:32px}.card-icon{transition:opacity 0.4s ease-in-out;opacity:1}.card-icon.fade-out{opacity:0}.card-icon.fade-in{opacity:1}.card-indicators{display:flex;gap:4px;align-items:center;justify-content:center;margin-top:4px}.indicator{width:6px;height:6px;border-radius:50%;background-color:var(--rebill-color-border, #d9d9d9);cursor:pointer;transition:all 0.2s ease-in-out}.indicator:hover{background-color:var(--rebill-color-primary, #0079be);transform:scale(1.2)}.indicator.active{background-color:var(--rebill-color-primary, #0079be);transform:scale(1.3)}.indicator.active{animation:pulse 2s infinite}@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(0, 121, 190, 0.7)}70%{box-shadow:0 0 0 6px rgba(0, 121, 190, 0)}100%{box-shadow:0 0 0 0 rgba(0, 121, 190, 0)}}@media (max-width: 768px){.card-carousel-container{gap:6px}.indicator{width:5px;height:5px}}";const e=class{constructor(i){a(this,i)}interval=3e3;size="32px";color="currentColor";showAllCards=false;currentIndex=0;intervalId=null;cardIcons=["visa","card-master","card-amex","card-discover","card-maestro","card-dinnersClub"];componentWillLoad(){this.startCarousel()}componentWillUnload(){this.stopCarousel()}startCarousel(){this.stopCarousel();this.intervalId=window.setInterval((()=>{this.nextCard()}),this.interval)}stopCarousel(){if(this.intervalId){clearInterval(this.intervalId);this.intervalId=null}}nextCard(){const a=(this.currentIndex+1)%this.cardIcons.length;this.currentIndex=a}handleMouseEnter(){this.stopCarousel()}handleMouseLeave(){this.startCarousel()}render(){const a=this.cardIcons[this.currentIndex];return i("div",{key:"59ab00069791ac1c74abcf1a3ba93820007a78de",class:"card-carousel-container",onMouseEnter:()=>this.handleMouseEnter(),onMouseLeave:()=>this.handleMouseLeave()},i("div",{key:"f09c5fa7766e2a07b3da11cb8e30070478ed2e83",class:"card-carousel"},i("rebill-icon",{key:`${a}-${this.currentIndex}`,name:a,size:this.size,color:this.color,class:"card-icon"})),this.showAllCards&&i("div",{key:"6235bf50fc94998a1c4525daf8b74a7c26167c5c",class:"card-indicators"},this.cardIcons.map(((a,r)=>i("div",{key:a,class:`indicator ${r===this.currentIndex?"active":""}`,onClick:()=>{this.currentIndex=r}})))))}};e.style=r;export{e as rebill_card_carousel};
|
|
2
|
+
//# sourceMappingURL=p-1f253272.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as t,h as e,c as i,H as a}from"./p-BTZ7D7jU.js";import{a as s}from"./p-CV0wqtJM.js";import{I as r,c as n,s as o,b as l,f as c,d,S as h,P as p}from"./p-Bkzz9eGU.js";import{C as u}from"./p-C5Pu-n-i.js";import{c as b}from"./p-bcHxwlBu.js";import{B as f,i as m,g as y}from"./p-Do_vNuMa.js";import{g,a as x,E as v,b as _}from"./p-B_yiCV3J.js";import{g as k}from"./p-DWY12C3E.js";import{g as w,a as $}from"./p-pXX5rSDt.js";import{P as C}from"./p-DUn0QSYi.js";import{f as D}from"./p-D2fDSwuH.js";import"./p-E-ZsRS8r.js";import"./p-CzeVW03r.js";const j=(t,e,i)=>{const a=document.createElement(t),[s,r]=Array.isArray(e)?[void 0,e]:[e,i];return s&&Object.assign(a,s),r==null||r.forEach((t=>a.appendChild(t))),a},S=(t,e)=>{var i;return e==="left"?t.offsetLeft:(((i=t.offsetParent instanceof HTMLElement?t.offsetParent:null)==null?void 0:i.offsetWidth)??0)-t.offsetWidth-t.offsetLeft},T=t=>t.offsetWidth>0&&t.offsetHeight>0,M=(t,e)=>{!customElements.get(t)&&customElements.define(t,e)};function A(t,e,{reverse:i=false}={}){const a=t.length;for(let s=i?a-1:0;i?s>=0:s<a;i?s--:s++)e(t[s],s)}function I(t,e,i,a){const s=e.formatToParts(t);i&&s.unshift({type:"prefix",value:i}),a&&s.push({type:"suffix",value:a});const r=[],n=[],o=[],l=[],c={},d=t=>`${t}:${c[t]=(c[t]??-1)+1}`;let h="",p=false,u=false;for(const t of s){h+=t.value;const e=t.type==="minusSign"||t.type==="plusSign"?"sign":t.type;e==="integer"?(p=true,n.push(...t.value.split("").map((t=>({type:e,value:parseInt(t)}))))):e==="group"?n.push({type:e,value:t.value}):e==="decimal"?(u=true,o.push({type:e,value:t.value,key:d(e)})):e==="fraction"?o.push(...t.value.split("").map((t=>({type:e,value:parseInt(t),key:d(e),pos:-1-c[e]})))):(p||u?l:r).push({type:e,value:t.value,key:d(e)})}const b=[];for(let t=n.length-1;t>=0;t--){const e=n[t];b.unshift(e.type==="integer"?{...e,key:d(e.type),pos:c[e.type]}:{...e,key:d(e.type)})}return{pre:r,integer:b,fraction:o,post:l,valueAsString:h,value:typeof t=="string"?parseFloat(t):t}}const L=String.raw,P=(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return false}return true})(),N=typeof CSS<"u"&&CSS.supports&&CSS.supports("line-height","mod(1,1)"),E=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):null,R="--_number-flow-d-opacity",z="--_number-flow-d-width",B="--_number-flow-dx",F="--_number-flow-d",U=(()=>{try{return CSS.registerProperty({name:R,syntax:"<number>",inherits:false,initialValue:"0"}),CSS.registerProperty({name:B,syntax:"<length>",inherits:true,initialValue:"0px"}),CSS.registerProperty({name:z,syntax:"<number>",inherits:false,initialValue:"0"}),CSS.registerProperty({name:F,syntax:"<number>",inherits:true,initialValue:"0"}),true}catch{return false}})(),V="var(--number-flow-char-height, 1em)",W="var(--number-flow-mask-height, 0.25em)",X=`calc(${W} / 2)`,q="var(--number-flow-mask-width, 0.5em)",H=`calc(${q} / var(--scale-x))`,O="#000 0, transparent 71%",Z=L`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:${V} !important}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${z}) / var(--width));transform:translateX(var(${B})) scaleX(var(--scale-x));margin:0 calc(-1 * ${q});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${H},#000 calc(100% - ${H}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${W},#000 calc(100% - ${W}),transparent 100% ),radial-gradient(at bottom right,${O}),radial-gradient(at bottom left,${O}),radial-gradient(at top left,${O}),radial-gradient(at top right,${O});-webkit-mask-size:100% calc(100% - ${W} * 2),calc(100% - ${H} * 2) 100%,${H} ${W},${H} ${W},${H} ${W},${H} ${W};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${X} ${q};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${B})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${F})}.digit__num,.number .section::after{padding:${X} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${R}))}`,G=HTMLElement,Y=N&&P&&U;let J;class K extends G{constructor(){super(),this.created=false,this.batched=false;const{animated:t,...e}=this.constructor.defaultProps;this._animated=this.computedAnimated=t,Object.assign(this,e)}get animated(){return this._animated}set animated(t){var e;this.animated!==t&&(this._animated=t,(e=this.shadowRoot)==null||e.getAnimations().forEach((t=>t.finish())))}set data(t){var e;if(t==null)return;const{pre:i,integer:a,fraction:s,post:r,value:n}=t;if(this.created){const o=this._data;this._data=t,this.computedTrend=typeof this.trend=="function"?this.trend(o.value,n):this.trend,this.computedAnimated=Y&&this._animated&&(!this.respectMotionPreference||!(E!=null&&E.matches))&&T(this),(e=this.plugins)==null||e.forEach((e=>{var i;return(i=e.onUpdate)==null?void 0:i.call(e,t,o,this)})),this.batched||this.willUpdate(),this._pre.update(i),this._num.update({integer:a,fraction:s}),this._post.update(r),this.batched||this.didUpdate()}else{this._data=t,this.attachShadow({mode:"open"});try{this._internals??(this._internals=this.attachInternals()),this._internals.role="img"}catch{}if(typeof CSSStyleSheet<"u"&&this.shadowRoot.adoptedStyleSheets)J||(J=new CSSStyleSheet,J.replaceSync(Z)),this.shadowRoot.adoptedStyleSheets=[J];else{const t=document.createElement("style");t.textContent=Z,this.shadowRoot.appendChild(t)}this._pre=new it(this,i,{justify:"right",part:"left"}),this.shadowRoot.appendChild(this._pre.el),this._num=new Q(this,a,s),this.shadowRoot.appendChild(this._num.el),this._post=new it(this,r,{justify:"left",part:"right"}),this.shadowRoot.appendChild(this._post.el),this.created=true}try{this._internals.ariaLabel=t.valueAsString}catch{}}willUpdate(){this._pre.willUpdate(),this._num.willUpdate(),this._post.willUpdate()}didUpdate(){if(!this.computedAnimated)return;this._abortAnimationsFinish?this._abortAnimationsFinish.abort():this.dispatchEvent(new Event("animationsstart")),this._pre.didUpdate(),this._num.didUpdate(),this._post.didUpdate();const t=new AbortController;Promise.all(this.shadowRoot.getAnimations().map((t=>t.finished))).then((()=>{t.signal.aborted||(this.dispatchEvent(new Event("animationsfinish")),this._abortAnimationsFinish=void 0)})),this._abortAnimationsFinish=t}}K.defaultProps={transformTiming:{duration:900,easing:"linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"},spinTiming:void 0,opacityTiming:{duration:450,easing:"ease-out"},animated:true,trend:(t,e)=>Math.sign(e-t),respectMotionPreference:true,plugins:void 0,digits:void 0};class Q{constructor(t,e,i,{className:a,...s}={}){this.flow=t,this._integer=new et(t,e,{justify:"right",part:"integer"}),this._fraction=new et(t,i,{justify:"left",part:"fraction"}),this._inner=j("span",{className:"number__inner"},[this._integer.el,this._fraction.el]),this.el=j("span",{...s,part:"number",className:`number ${a??""}`},[this._inner])}willUpdate(){this._prevWidth=this.el.offsetWidth,this._prevLeft=this.el.getBoundingClientRect().left,this._integer.willUpdate(),this._fraction.willUpdate()}update({integer:t,fraction:e}){this._integer.update(t),this._fraction.update(e)}didUpdate(){const t=this.el.getBoundingClientRect();this._integer.didUpdate(),this._fraction.didUpdate();const e=this._prevLeft-t.left,i=this.el.offsetWidth,a=this._prevWidth-i;this.el.style.setProperty("--width",String(i)),this.el.animate({[B]:[`${e}px`,"0px"],[z]:[a,0]},{...this.flow.transformTiming,composite:"accumulate"})}}class tt{constructor(t,e,{justify:i,className:a,...s},r){this.flow=t,this.children=new Map,this.onCharRemove=t=>()=>{this.children.delete(t)},this.justify=i;const n=e.map((t=>this.addChar(t).el));this.el=j("span",{...s,className:`section section--justify-${i} ${a??""}`},r?r(n):n)}addChar(t,{startDigitsAtZero:e=false,...i}={}){const a=t.type==="integer"||t.type==="fraction"?new rt(this,t.type,e?0:t.value,t.pos,{...i,onRemove:this.onCharRemove(t.key)}):new nt(this,t.type,t.value,{...i,onRemove:this.onCharRemove(t.key)});return this.children.set(t.key,a),a}unpop(t){t.el.removeAttribute("inert"),t.el.style.top="",t.el.style[this.justify]=""}pop(t){t.forEach((t=>{t.el.style.top=`${t.el.offsetTop}px`,t.el.style[this.justify]=`${S(t.el,this.justify)}px`})),t.forEach((t=>{t.el.setAttribute("inert",""),t.present=false}))}addNewAndUpdateExisting(t){const e=new Map,i=new Map,a=this.justify==="left",s=a?"prepend":"append";if(A(t,(t=>{let a;this.children.has(t.key)?(a=this.children.get(t.key),i.set(t,a),this.unpop(a),a.present=true):(a=this.addChar(t,{startDigitsAtZero:true,animateIn:true}),e.set(t,a)),this.el[s](a.el)}),{reverse:a}),this.flow.computedAnimated){const t=this.el.getBoundingClientRect();e.forEach((e=>{e.willUpdate(t)}))}e.forEach(((t,e)=>{t.update(e.value)})),i.forEach(((t,e)=>{t.update(e.value)}))}willUpdate(){const t=this.el.getBoundingClientRect();this._prevOffset=t[this.justify],this.children.forEach((e=>e.willUpdate(t)))}didUpdate(){const t=this.el.getBoundingClientRect();this.children.forEach((e=>e.didUpdate(t)));const e=t[this.justify],i=this._prevOffset-e;i&&this.children.size&&this.el.animate({transform:[`translateX(${i}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}class et extends tt{update(t){const e=new Map;this.children.forEach(((i,a)=>{t.find((t=>t.key===a))||e.set(a,i),this.unpop(i)})),this.addNewAndUpdateExisting(t),e.forEach((t=>{t instanceof rt&&t.update(0)})),this.pop(e)}}class it extends tt{update(t){const e=new Map;this.children.forEach(((i,a)=>{t.find((t=>t.key===a))||e.set(a,i)})),this.pop(e),this.addNewAndUpdateExisting(t)}}class at{constructor(t,e,{onRemove:i,animateIn:a=false}={}){this.flow=t,this.el=e,this._present=true,this._remove=()=>{var t;this.el.remove(),(t=this._onRemove)==null||t.call(this)},this.el.classList.add("animate-presence"),this.flow.computedAnimated&&a&&this.el.animate({[R]:[-.9999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),this._onRemove=i}get present(){return this._present}set present(t){if(this._present!==t){if(this._present=t,t?this.el.removeAttribute("inert"):this.el.setAttribute("inert",""),!this.flow.computedAnimated){t||this._remove();return}this.el.style.setProperty("--_number-flow-d-opacity",t?"0":"-.999"),this.el.animate({[R]:t?[-.9999,0]:[.999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),t?this.flow.removeEventListener("animationsfinish",this._remove):this.flow.addEventListener("animationsfinish",this._remove,{once:true})}}}class st extends at{constructor(t,e,i,a){super(t.flow,i,a),this.section=t,this.value=e,this.el=i}}class rt extends st{constructor(t,e,i,a,s){var r,n;const o=(((n=(r=t.flow.digits)==null?void 0:r[a])==null?void 0:n.max)??9)+1,l=Array.from({length:o}).map(((t,e)=>{const a=j("span",{className:"digit__num"},[document.createTextNode(String(e))]);return e!==i&&a.setAttribute("inert",""),a.style.setProperty("--n",String(e)),a})),c=j("span",{part:`digit ${e}-digit`,className:"digit"},l);c.style.setProperty("--current",String(i)),c.style.setProperty("--length",String(o)),super(t,i,c,s),this.pos=a,this._onAnimationsFinish=()=>{this.el.classList.remove("is-spinning")},this._numbers=l,this.length=o}willUpdate(t){const e=this.el.getBoundingClientRect();this._prevValue=this.value;const i=e[this.section.justify]-t[this.section.justify],a=e.width/2;this._prevCenter=this.section.justify==="left"?i+a:i-a}update(t){this.el.style.setProperty("--current",String(t)),this._numbers.forEach(((e,i)=>i===t?e.removeAttribute("inert"):e.setAttribute("inert",""))),this.value=t}didUpdate(t){const e=this.el.getBoundingClientRect(),i=e[this.section.justify]-t[this.section.justify],a=e.width/2,s=this.section.justify==="left"?i+a:i-a,r=this._prevCenter-s;r&&this.el.animate({transform:[`translateX(${r}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"});const n=this.getDelta();n&&(this.el.classList.add("is-spinning"),this.el.animate({[F]:[-n,0]},{...this.flow.spinTiming??this.flow.transformTiming,composite:"accumulate"}),this.flow.addEventListener("animationsfinish",this._onAnimationsFinish,{once:true}))}getDelta(){var t;if(this.flow.plugins)for(const e of this.flow.plugins){const i=(t=e.getDelta)==null?void 0:t.call(e,this.value,this._prevValue,this);if(i!=null)return i}const e=this.value-this._prevValue,i=this.flow.computedTrend||Math.sign(e);return i<0&&this.value>this._prevValue?this.value-this.length-this._prevValue:i>0&&this.value<this._prevValue?this.length-this._prevValue+this.value:e}}class nt extends st{constructor(t,e,i,a){const s=j("span",{className:"symbol__value",textContent:i});super(t,i,j("span",{part:`symbol ${e}`,className:"symbol"},[s]),a),this.type=e,this._children=new Map,this._onChildRemove=t=>()=>{this._children.delete(t)},this._children.set(i,new at(this.flow,s,{onRemove:this._onChildRemove(i)}))}willUpdate(t){if(this.type==="decimal")return;const e=this.el.getBoundingClientRect();this._prevOffset=e[this.section.justify]-t[this.section.justify]}update(t){if(this.value!==t){const e=this._children.get(this.value);e&&(e.present=false);const i=this._children.get(t);if(i)i.present=true;else{const e=j("span",{className:"symbol__value",textContent:t});this.el.appendChild(e),this._children.set(t,new at(this.flow,e,{animateIn:true,onRemove:this._onChildRemove(t)}))}}this.value=t}didUpdate(t){if(this.type==="decimal")return;const e=this.el.getBoundingClientRect()[this.section.justify]-t[this.section.justify],i=this._prevOffset-e;i&&this.el.animate({transform:[`translateX(${i}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}const ot="number-flow-connect",lt="number-flow-update";class ct extends K{constructor(){super(...arguments),this.connected=false}connectedCallback(){this.connected=true,this.dispatchEvent(new Event(ot,{bubbles:true}))}disconnectedCallback(){this.connected=false}get value(){return this._value}update(t){(!this._formatter||this._prevFormat!==this.format||this._prevLocales!==this.locales)&&(this._formatter=new Intl.NumberFormat(this.locales,this.format),this._prevFormat=this.format,this._prevLocales=this.locales),t!=null&&(this._value=t),this.dispatchEvent(new Event(lt,{bubbles:true})),this.data=I(this._value,this._formatter,this.numberPrefix,this.numberSuffix)}}M("number-flow",ct);const dt=".summary-container {\n width: 100%;\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n gap: 40px;\n background-color: var(--rebill-color-background-right);\n}\n.summary-header {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n}\n\n.trial-pill {\n background-color: var(--rebill-color-green-light-2);\n border-radius: 4px;\n padding: 4px 6px 4px 6px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.total-amount-container {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n}\n\n@media (max-width: 1024px) {\n .summary-container {\n gap: 1.5rem !important;\n background-color: var(--rebill-color-background);\n }\n .summary-header {\n margin-top: 24px;\n }\n .summary-row.total {\n margin-top: 0 !important;\n }\n}\n\n.summary-card {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 24px;\n padding: 0px;\n background: #ffffff;\n}\n\n.summary-card-info {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n.summary-card-amount {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.summary-details {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n.summary-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 16px;\n & > :nth-child(2) {\n text-align: right;\n }\n}\n\n.summary-row.total {\n margin-top: 1rem;\n font-weight: bold;\n}\n\n@media (min-width: 1025px) and (max-width: 1450px) {\n .summary-container {\n margin: 0px 10px;\n max-width: 400px;\n }\n}\n";const ht=class{constructor(e){t(this,e)}totalAmount;itemTitle;itemDescription;itemAmount;planFrequency;planFrequencyCount;subtotal;discount;currency;displayedComponents=["totalAmount","discount","itemDetails","priceDetails","timelineFreeTrial","timelineDebitDay"];allowCoupon=false;currentBreakpoint=f.DESKTOP;discountApplied=false;totalFlow;discountType;discountedPercentage=0;discountDuration=0;discountAmount=0;getDurationTranslation(t){const e=this.planFrequency||n.MONTH;if(t===1){return r.translate(`summary.${e}_one`)}else{return r.translate(`summary.${e}_other`,{count:t})}}componentDidLoad(){this.updateTotalFlow()}componentDidUpdate(){this.updateTotalFlow()}updateTotalFlow(){if(this.totalFlow){this.totalFlow.format={style:"currency",currency:this.currency};this.totalFlow.update(Number(o.data.pricing.total))}}handleDiscountApplied(t){this.discountApplied=t.detail}getRecalculatedInstallmentAmount(){const t=o.data?.cardInformation?.installments?.selectedInstallment;if(!t){return 0}if(o.data.pricing.discountAmount>0){const e=o.data.pricing.subtotal;const i=o.data.pricing.totalWithoutInstallment;const a=i/e;return Math.round(t.installmentAmount*a*100)/100}return t.installmentAmount}renderTotalForPlan(){return o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy&&e("div",{class:"summary-row total"},e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.totalAmountToday")),e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},c(o.data.pricing.total,this.currency)))}renderTotalForPlanGeneral(){return o.data?.itemInformation?.type===l.PLAN&&!o.data?.itemInformation?.trial?.trialPeriodDays&&!o.data?.itemInformation?.debitStrategy&&e("div",{class:"summary-row total"},e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.totalAmount")),e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},c(o.data?.pricing?.total,this.currency)))}renderTotalForNonPlan(){return o.data?.itemInformation?.type!==l.PLAN&&e("div",{class:"summary-row total"},e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.totalAmount")),e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},c(o.data.pricing.total,this.currency)))}renderTrialPeriod(){return o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.trial?.trialPeriodDays&&e("div",{class:"summary-row"},e("rebill-typography",{variant:"body2"},r.translate("summary.totalAmountLastTrialPeriod")),e("rebill-typography",{variant:"body2"},c(o.data?.pricing?.total,this.currency),`/${r.translate(`summary.${this.planFrequency}`,{count:this.planFrequencyCount||1})} `))}renderDiscountAlertWrapper(){return o.data?.itemInformation?.trial?.trialPeriodDays&&e("div",{class:"summary-row"},e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.trialPeriodDaysDetails",{trialDays:o.data?.itemInformation?.trial?.trialPeriodDays,count:o.data?.itemInformation?.trial?.trialPeriodDays})),e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.free")))}render(){const t=(t=true,i=true,a=true)=>e("div",{class:"summary-card"},(t||i)&&e("div",{class:"summary-card-info"},t&&e("rebill-typography",{variant:"subtitle-bold",gutterBottom:true},this.itemTitle),i&&this.itemDescription&&e("rebill-typography",{variant:"body2"},this.itemDescription)),a&&e("div",{class:"summary-card-amount"},e("rebill-typography",{variant:"body2"},o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy?c(o.data?.pricing?.planAmount,this.currency):c(this.subtotal,this.currency))));const i=()=>{const t=[this.renderTotalForPlan(),this.renderTotalForPlanGeneral(),this.renderTotalForNonPlan(),this.renderTrialPeriod(),this.renderDiscountAlertWrapper()].filter(Boolean);if(t.length>1){t.splice(t.length-1,0,e("rebill-divider",null))}return e("div",{class:"summary-details"},e("div",{class:"summary-row"},e("rebill-typography",{variant:"body2"},r.translate("summary.subtotal")),e("rebill-typography",{variant:"body2"},o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy?c(o.data.pricing.planAmount,this.currency):c(this.subtotal,this.currency))),o.data.pricing.installments&&e("div",{class:"summary-row"},e("rebill-typography",{variant:"body2"},r.translate("summary.installments")),e("rebill-typography",{variant:"body2"},g(o.data?.pricing?.installments,this.getRecalculatedInstallmentAmount()))),this.allowCoupon&&!m(this.currentBreakpoint,f.DESKTOP)&&e("discount-coupon",null),!o.data?.itemInformation?.trial?.trialPeriodDays&&!o.data?.itemInformation?.debitStrategy&&e("rebill-divider",null),t.map((t=>e("div",{class:"summary-detail-wrapper"},t))))};const a=()=>this.planFrequency&&this.discountApplied&&(this.discountedPercentage>0||this.discountAmount>0)&&e("rebill-alert",{variant:"filled",type:"success",icon:"tag-sale",size:"medium",colorIcon:u.GREEN,message:this.discountDuration?r.translate(`summary.planDiscountDescriptionWithDuration`,{discount:this.discountType===d.PERCENTAGE?`${this.discountedPercentage}%`:c(this.discountAmount,this.currency),duration:this.getDurationTranslation(this.discountDuration)}):r.translate(`summary.planDiscountDescriptionWithoutDuration`,{discount:this.discountType===d.PERCENTAGE?`${this.discountedPercentage}%`:c(this.discountAmount,this.currency)})});return e("div",{class:"summary-container"},this.displayedComponents.includes("totalAmount")&&e("div",{class:"summary-header"},o.data?.itemInformation?.type===l.PLAN&&o.data.itemInformation?.trial?.trialPeriodDays&&e("div",{class:"trial-pill"},e("rebill-typography",{variant:"body2",align:"center",color:u.GREEN_TEXT},r.translate("summary.trialPill",{days:o.data?.itemInformation?.trial?.trialPeriodDays,count:o.data?.itemInformation?.trial?.trialPeriodDays}))),e("div",{class:"total-amount-container"},e("rebill-typography",{variant:"h4-span",align:"center",gutterBottom:true},e("number-flow",{ref:t=>this.totalFlow=t})),this.planFrequency&&e("rebill-typography",{variant:"body1",color:u.SECONDARY,align:"center",gutterBottom:true,style:{fontWeight:"normal"}},`/ ${r.translate(`summary.${this.planFrequency}`,{count:this.planFrequencyCount||1})}`)),o.data?.itemInformation?.type!==l.PLAN&&e("rebill-typography",{variant:"body2",align:"center",gutterBottom:true},r.translate("summary.totalAmount")),this.allowCoupon&&m(this.currentBreakpoint,f.DESKTOP)&&e("discount-coupon",{"hide-label":true})),this.displayedComponents.includes("itemDetails")&&(m(this.currentBreakpoint,f.DESKTOP)?e("collapsible-card",{header:r.translate("summary.details")},t(true,true,true)):e("collapsible-card",{header:this.itemTitle},t(false,!!this.itemDescription,true))),this.displayedComponents.includes("discount")&&m(this.currentBreakpoint,f.DESKTOP)&&!o.data?.itemInformation?.trial?.trialPeriodDays&&!o.data?.itemInformation?.debitStrategy&&a(),this.displayedComponents.includes("timelineFreeTrial")&&o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.trial?.trialPeriodDays&&!m(this.currentBreakpoint,f.DESKTOP)&&e("rebill-timeline-free-trial",{"trial-period-ends-at":o.data?.itemInformation?.trial?.trialPeriodEndsAt,"trial-period-ends-reminder-at":o.data?.itemInformation?.trial?.trialPeriodEndsReminderAt,"trial-period-days":o.data?.itemInformation?.trial?.trialPeriodDays,subtotal:o.data.pricing.subtotal,currency:o.data.pricing.currency,"discount-applied":this.discountApplied,"discount-type":this.discountType,"discounted-percentage":this.discountedPercentage,"discount-duration":this.discountDuration,"discount-amount":this.discountAmount}),this.displayedComponents.includes("timelineDebitDay")&&o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy&&o.data?.itemInformation?.debitDay&&!m(this.currentBreakpoint,f.DESKTOP)&&e("rebill-timeline-debit-day",{"debit-day":o.data?.itemInformation?.debitDay,"total-amount":o.data?.pricing?.total,"plan-amount":o.data?.pricing?.planAmount,currency:o.data?.pricing?.currency,"debit-strategy":o.data?.itemInformation?.debitStrategy,"discount-applied":this.discountApplied,"discount-type":this.discountType,"discounted-percentage":this.discountedPercentage,"discount-duration":this.discountDuration,"discount-amount":this.discountAmount}),this.displayedComponents.includes("priceDetails")&&(m(this.currentBreakpoint,f.DESKTOP)?e("collapsible-card",{header:r.translate("summary.summary")},i()):i()),this.displayedComponents.includes("timelineFreeTrial")&&o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.trial?.trialPeriodDays&&m(this.currentBreakpoint,f.DESKTOP)&&e("rebill-timeline-free-trial",{"trial-period-ends-at":o.data?.itemInformation?.trial?.trialPeriodEndsAt,"trial-period-ends-reminder-at":o.data?.itemInformation?.trial?.trialPeriodEndsReminderAt,"trial-period-days":o.data?.itemInformation?.trial?.trialPeriodDays,subtotal:o.data?.pricing?.subtotal,currency:o.data?.pricing?.currency,"discount-applied":this.discountApplied,"discount-type":this.discountType,"discounted-percentage":this.discountedPercentage,"discount-duration":this.discountDuration,"discount-amount":this.discountAmount}),this.displayedComponents.includes("timelineDebitDay")&&o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy&&o.data?.itemInformation?.debitDay&&m(this.currentBreakpoint,f.DESKTOP)&&e("rebill-timeline-debit-day",{"debit-day":o.data?.itemInformation?.debitDay,"total-amount":o.data?.pricing?.total,"plan-amount":o.data?.pricing?.planAmount,currency:o.data?.pricing?.currency,"debit-strategy":o.data?.itemInformation?.debitStrategy,"discount-applied":this.discountApplied,"discount-type":this.discountType,"discounted-percentage":this.discountedPercentage,"discount-duration":this.discountDuration,"discount-amount":this.discountAmount}),this.displayedComponents.includes("discount")&&!m(this.currentBreakpoint,f.DESKTOP)&&!o.data?.itemInformation?.trial?.trialPeriodDays&&!o.data?.itemInformation?.debitStrategy&&a())}};ht.style=dt;const pt=".otp__otp-container{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%;position:relative;margin-top:2rem}.otp__user-information{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;gap:8px}.otp__otp-description-container{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px}.otp__change-email{cursor:pointer;text-decoration:underline;margin-left:0}.otp__change-email:hover{color:var(--rebill-primary-color);text-decoration:underline}.otp__alternative{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:16px;margin:32px;width:100%}.otp__rebill-alert{width:100%}.otp__guest-options{display:flex;flex-direction:column;width:100%;gap:8px;margin-top:auto}.otp__verifying-container{display:flex;align-items:center;justify-content:center;gap:16px;margin:8px 0}.otp__code-resent-container rebill-typography{display:flex;line-height:1}.otp__code-resent-container rebill-icon{flex-shrink:0;display:inline-flex;vertical-align:middle;margin-right:8px}.otp__spinner{width:15px;height:15px;border:2px solid rgba(255, 255, 255, 0.3);border-radius:50%;border-top-color:var(--rebill-color-primary);animation:spin 1s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 1024px){.otp__otp-container{min-height:calc(100vh - 40px)}.otp__guest-options{margin-top:32px}}@media (min-width: 1025px){.otp__otp-container{justify-content:flex-start}.otp__guest-options{margin-top:auto;padding-bottom:2rem}}";const ut=class{constructor(e){t(this,e);this.changeEmailClick=i(this,"changeEmailClick");this.returnForm=i(this,"returnForm");this.codeVerified=i(this,"codeVerified")}changeEmailClick;timeLeft=59;isTimerRunning=false;codeResent=false;isVerifying=false;otpValue="";returnForm;codeVerified;error=false;timer=b({duration:59,onTick:t=>{this.timeLeft=t},onComplete:()=>{this.isTimerRunning=false}});messageTimer=b({duration:5,onComplete:()=>{this.codeResent=false}});disconnectedCallback(){this.timer.stop()}startTimer(){this.timer.start();this.isTimerRunning=true}handleResendCode=async()=>{if(!this.isTimerRunning){await s.otp.generate(o.data.sessionId,{email:o.data.userInformation.email});this.codeResent=true;this.messageTimer.start();this.startTimer();this.error=false}};handleOtpChange=t=>{this.otpValue=t;if(t.length===6){this.handleVerifyOtp(t);this.error=false}};handleVerifyOtp=async t=>{this.isVerifying=true;try{const e=await s.otp.verify(o.data.sessionId,{email:o.data.userInformation.email,code:t});this.codeVerified.emit(e.data);h.setUserInformation({...e.data.customer,fullName:`${e.data.customer.firstName} ${e.data.customer.lastName}`.trim(),phoneNumber:{number:e.data.customer.phoneNumbers[0].number,countryCode:e.data.customer.phoneNumbers[0].countryCode},address:{billingAddress:{address:e.data.customer.addresses[0].lineOne,zip:e.data.customer.addresses[0].zipCode,city:e.data.customer.addresses[0].city,state:e.data.customer.addresses[0].state,country:e.data.customer.addresses[0].country}},documentType:e.data.customer.identifications[0].type,documentNumber:e.data.customer.identifications[0].value});h.setAccessToken(e.data.accessToken);h.setCustomerId(e.data.customer.id);this.otpValue="";this.error=false}catch(t){this.error=true}finally{this.isVerifying=false}};render(){return e("div",{key:"3bc40c6b51638c164203999e2b15aabaa2310dd6",class:"otp__otp-container"},e("div",{key:"2a8c4c4abb0d8d4e54ba49ad456480622fd9a08a",class:"otp__user-information"},e("div",{key:"082cf7a3b04d2c706b6b113cc4b945a663de15bb",class:"otp__otp-description-container"},e("rebill-typography",{key:"77dd174b9a8d9889c12f4a4db0c8a72e1e8e2e85",variant:"body2",class:"otp__otp-description"},r.translate("otp.description")),e("rebill-typography",{key:"8f5e8cb60e361f4d76b88d9134b5e9bafb8a57e7",variant:"subtitle-bold",class:"otp__otp-description-digits"}," ",e("strong",{key:"886b8486ca1caf2d914e553b6e83db1822531f42"},r.translate("otp.descriptionDigits"))," "),e("rebill-typography",{key:"6fa12a2e4137fbeb5fc3d9489c979091aaa09a87",variant:"body2",class:"otp__otp-description-email"},r.translate("otp.descriptionEmail"))),e("rebill-typography",{key:"74a00be12cdbb80d5830a703e5f69dae6bccfd5c",variant:"body2",class:"otp__otp-email-line"},o.data.userInformation.email," ",!o.data.prefilledData?.email&&e("span",{key:"feda3a02bae97ec34d2dcff455c3df132f80fc34",class:"otp__change-email",onClick:()=>{this.otpValue="";this.error=false;this.returnForm.emit(false)}},r.translate("otp.change")))),e("input-otp",{key:"d34b114b71d335e10aabec484d79accca4cfb20d",otp:this.otpValue,onOtpChange:t=>this.handleOtpChange(t.detail),error:this.error?r.translate("otp.error"):""}),this.isVerifying&&e("div",{key:"ee9a763d8d58ef2a80486b972b99fc22699121b5",class:"otp__verifying-container"},e("rebill-typography",{key:"c715e750cacf1a5c3248dc1287e911a50fc26ce9",variant:"subtitle2",color:u.PRIMARY},r.translate("otp.verifyingCode")),e("div",{key:"2fb434d44c08cc078af406daccad3f1949158a2e",class:"otp__spinner"})),e("rebill-button",{key:"6d4763e7a42f813d286b99b89bd713c6196c940a",type:"button",variant:"outline",theme:this.isTimerRunning?"secondary":"primary",disabled:this.isTimerRunning,onClick:this.handleResendCode,size:"small",style:{height:"24px",marginBottom:"8px"}},this.isTimerRunning?`${r.translate("otp.resendCodeIn")} (${this.timer.getFormattedTime()})`:r.translate("otp.resendCode")),this.codeResent&&e("div",{key:"d327976319a3f9a2b104f99cc0bbc508cba46abc",class:"otp__code-resent-container"},e("rebill-typography",{key:"b80f6df3092a27aa1664089c7203cc900b9888e1",variant:"subtitle2",color:u.GREEN},e("rebill-icon",{key:"0ac3c09556cb99a4a3bedcab47800aef298de265",name:"check-radio"}),r.translate("otp.codeResent"))),e("rebill-alert",{key:"987b3222a320a5d8f68792f27c149085bfae1e77",class:"otp__rebill-alert",type:"secure",variant:"variant-info",message:r.translate("otp.infoMessage"),icon:"circle-info",alertTitle:r.translate("otp.infoTitle"),colorIcon:u.PRIMARY_DARK_LIGHT}),e("div",{key:"82ad4a1f2b2a557a7bbacd089681f46bca99e35c",class:"otp__alternative"},e("rebill-typography",{key:"b821225ea5cb63041bc11763420c9982bfd87577",variant:"body2",color:u.PRIMARY_DARK},"o")),e("div",{key:"83efad3f58efaadcac27bc82868e19180aa39043",class:"otp__guest-options"},e("rebill-button",{key:"d2df54d921231cb411cb0b61d486555bea706b23",type:"button",variant:"outline",theme:"secondary",size:"medium",onClick:()=>{this.otpValue="";this.error=false;this.returnForm.emit(false)}},r.translate("otp.continueAsGuest")),e("rebill-alert",{key:"7c7bf4d864458c2157b591cde80e4276fddd9acf",type:"secure",variant:"variant-secure",icon:"lock-outline",message:r.translate("otp.secureMessage")})))}};ut.style=pt;const bt=".modal-overlay{position:fixed;top:0;left:0;right:0;background-color:transparent;display:flex;align-items:center;justify-content:center;z-index:10000;padding:12px 16px;box-sizing:border-box}.modal-content{background:white;border-radius:8px;padding:16px 20px;width:350px;box-shadow:0 4px 12px -2px rgba(0, 0, 0, 0.15),\n 0 2px 4px -1px rgba(0, 0, 0, 0.1);position:relative;display:flex;align-items:center;gap:12px}.modal-content .alert{margin:0;flex:1;padding:0;background:transparent;border:none;box-shadow:none}.modal-content .alert{background-color:transparent !important;border-color:transparent !important}.modal-content .alert-message{display:flex;flex-direction:column;gap:4px}.modal-content .close-button{position:absolute;top:8px;right:8px;width:20px;height:20px;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color 0.2s ease;padding:0;margin:0;outline:none;box-shadow:none;line-height:1}.modal-content .close-button:focus{outline:none;box-shadow:none}.modal-content .close-button:hover{background-color:#f0f0f0}.modal-content .close-button rebill-icon{width:16px;height:16px;display:flex;align-items:center;justify-content:center}@media (max-width: 768px){.modal-overlay{padding:8px 12px}.modal-content{padding:12px 16px;width:100%;max-width:350px;flex-direction:row;gap:12px;text-align:left}.modal-content .close-button{position:absolute;top:8px;right:8px;width:20px;height:20px;flex-shrink:0}}";const ft=class{constructor(e){t(this,e)}visible=true;languageUpdateTrigger=0;unsubscribeCurrentLocaleStore;autoCloseTimer;componentDidLoad(){this.unsubscribeCurrentLocaleStore=h.onChange("currentLocale",(()=>{this.languageUpdateTrigger++}));this.autoCloseTimer=b({duration:30,onComplete:()=>{this.closeModal()}});this.autoCloseTimer.start()}disconnectedCallback(){if(this.unsubscribeCurrentLocaleStore){this.unsubscribeCurrentLocaleStore()}if(this.autoCloseTimer){this.autoCloseTimer.stop()}}closeModal=()=>{this.visible=false;if(this.autoCloseTimer){this.autoCloseTimer.stop()}};render(){if(!this.visible)return null;return e("div",{class:"modal-overlay"},e("div",{class:"modal-content"},e("div",{class:"alert info filled medium"},e("div",{class:"alert-icon"},e("rebill-icon",{name:"circle-info",size:"16px",color:u.ORANGE})),e("div",{class:"alert-message"},e("div",{class:"alert-title"},e("rebill-typography",{variant:"subtitle-bold",color:u.PRIMARY_DARK},r.translate("session.refreshedTitle"))),e("div",{class:"alert-message-text"},e("rebill-typography",{variant:"subtitle2",color:u.PRIMARY_DARK},r.translate("session.refreshedMessage"))))),e("button",{onClick:this.closeModal,class:"close-button",type:"button"},e("rebill-icon",{name:"close",size:"20px"}))))}};ft.style=bt;const mt=":root{--rebill-color-primary:#3b82f6;--rebill-color-primary-light:rgba(59, 130, 246, 0.1);--rebill-color-primary-hover:#2563eb;--rebill-color-primary-dark-hover:#001c4a;--rebill-color-info-border:#0156f6;--rebill-color-info-text:#172b85;--rebill-color-link:#0056f6;--rebill-color-primary-dark:#001131;--rebill-color-primary-dark-text:#000000;--rebill-color-primary-dark-light:rgba(0, 17, 49, 0.1);--rebill-color-error:#ef4444;--rebill-color-error-background:#fef2f2;--rebill-color-error-light:rgba(239, 68, 68, 0.1);--rebill-color-error-dark:#6f101b;--rebill-color-background:#ffffff;--rebill-color-background-left:#fafafa;--rebill-color-background-right:#f4f5f6;--rebill-color-background-secondary:#f7f8fa;--rebill-color-border:#ebedef;--rebill-color-timeline-connector:#c4c8cf;--rebill-color-neutrals-700:#58616e;--rebill-color-neutrals-500:#9ca3af;--rebill-color-border-primary:#e4e4e7;--rebill-color-text-primary:#3b4049;--rebill-color-text-secondary:#6b7280;--rebill-color-grey-700:#7d7d7d;--rebill-color-text-secondary-light:#a1a1aa;--rebill-color-text-on-primary:#ffffff;--rebill-color-disabled:#9ca3af;--rebill-color-shadow:rgba(0, 0, 0, 0.1);--rebill-color-green:#10b981;--rebill-color-green-text:#257c67;--rebill-color-green-light:rgba(183, 233, 221, 0.15);--rebill-color-green-light-2:rgba(183, 233, 221, 1);--rebill-color-info-background:#d5e4ff;--rebill-color-background-secondary-light:#f7f8fa;--rebill-breakpoint-mobile:768px;--rebill-breakpoint-tablet:1024px;--rebill-breakpoint-desktop:1025px;--rebill-color-orange:#ff9400;--rebill-color-black:#1e2025;--rebill-color-grey-300:#3b4049;--rebill-color-grey-100:#aeaeae}.qr-container,.qr-image,.qr-image svg,.qr-image img,[class*='qr-'],[class*='success'],[class*='receipt']{transition:none !important;animation:none !important;will-change:auto !important}button:active,button:focus,button:hover{isolation:isolate}.success-page__text-content{margin-bottom:2rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.success-page__success-content{display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;overflow-x:hidden;box-sizing:border-box}.success-page__lottie-container{width:80px;height:80px}.success-page__success-content rebill-typography[variant='h3']{margin:0 !important;padding:0 !important}.success-page__success-icon{display:flex;justify-content:center;margin:0.5rem 0}.success-page__info-card{padding:24px;gap:16px;width:100%;max-width:450px;border:1px solid #ebedef;border-radius:8px;display:flex;flex-direction:column;box-sizing:border-box}.success-page__card-row{display:flex;justify-content:space-between;align-items:start;min-height:20px;gap:15%}.success-page__card-row:last-of-type{margin-bottom:0}.success-page__card-value{display:flex;align-items:center;gap:0.5rem}.success-page__payment-method-display{display:flex;align-items:center;gap:8px;justify-content:center}.success-page__payment-method-display rebill-card-icon{display:inline-block;flex-shrink:0;margin-right:8px;vertical-align:middle}.success-page__payment-method-display rebill-card-icon svg{display:block}.success-page__payment-method-display rebill-icon{display:inline-block;vertical-align:middle;margin-right:8px}.success-page__payment-method-display rebill-icon div{display:block}.success-page__card-divider{height:1px;background:#e5e7eb}.success-page__download-container{display:flex;align-items:center;justify-content:flex-start;gap:2px;text-decoration:none;cursor:pointer}.success-page__contact-info{text-align:left}.success-page__reference-number{word-break:break-all;overflow-wrap:break-word;hyphens:auto;max-width:100%;text-align:right}.success-page__total-amount-container{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-direction:row}.success-page__trial-pill{background-color:var(--rebill-color-green-light-2);border-radius:4px;padding:4px 6px 4px 6px;display:flex;align-items:center;justify-content:center}.success-page__next-charge-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.success-page__next-charge-details{display:flex;justify-content:space-between;align-items:flex-start}.success-page__next-charge-amount{display:flex;flex-direction:row;align-items:center;gap:4px}.success-page__next-charge-date{text-align:right}.success-page__next-charge-section{margin-top:12px;padding-top:12px}@media (max-width: 1024px){.success-page__success-content{max-width:100%;gap:1.5rem;margin-left:16px;margin-right:16px}.success-page__info-card{width:100%;max-width:100%;padding:12px}.success-page__text-content{gap:12px}}@media (max-width: 767px){.success-page__info-card{padding:12px}.success-page__processing-container{padding:0 16px}}";const yt=class{constructor(e){t(this,e);this.successRedirect=i(this,"successRedirect")}typePaymentMethod=p.CARD;country="";bank="";paymentMethodName="";cardLastFour="";paymentDate="";referenceNumber="";trialPeriodDays=0;debitDay=0;planAmount=0;currentLocale=o.currentLocale;breakpoint=f.DESKTOP;successRedirect;loaderProgress=0;isLoadingLottie=true;showRedirectMessage=false;timeToRedirect=3e3;progressInterval;lottieContainer;lottieAnimation;unsubscribeCurrentLocaleStore;successDisplayTimeout;applyStartCaseToBrand=t=>{if(!t)return"";return t.toLowerCase().split(/[\s-]+/).map((t=>t.charAt(0).toUpperCase()+t.slice(1))).join(" ")};getPaymentMethodConfig(t){const e=this.country?w(this.country):null;const i=e?.find((e=>e.type===t));const a=t===p.CASH&&this.country==="BR"?$(p.CASH,this.country)||r.translate("paymentMethods.cash"):r.translate("paymentMethods.cash");const s={[p.CARD]:{key:p.CARD,label:r.translate("paymentMethods.card"),icons:["doblecard"]},[p.CASH]:{key:p.CASH,label:a,icons:["pago-facil"]},[p.BANK_TRANSFER]:{key:p.BANK_TRANSFER,label:r.translate("paymentMethods.bank_transfer"),icons:["plus"]}};const n=s[t];return{...n,icons:i?.icons||n.icons}}getPaymentDate=()=>this.paymentDate||"";componentWillLoad(){this.breakpoint=y(window.innerWidth);this.unsubscribeCurrentLocaleStore=h.onChange("currentLocale",(()=>{this.currentLocale=o.currentLocale}));if(o.data?.itemInformation?.redirectSuccess){this.successDisplayTimeout=window.setTimeout((()=>{this.showRedirectMessage=true;this.loadLottieAnimation()}),1500);setTimeout((()=>{let t=o.data?.itemInformation?.redirectSuccess;if(t){this.successRedirect.emit({redirectUrl:t});this.stopLoaderAnimation()}}),this.timeToRedirect)}}componentDidLoad(){window.addEventListener("resize",this.handleResize);if(!o.data?.itemInformation?.redirectSuccess||this.showRedirectMessage){this.loadLottieAnimation()}}disconnectedCallback(){if(this.unsubscribeCurrentLocaleStore){this.unsubscribeCurrentLocaleStore()}if(this.successDisplayTimeout){clearTimeout(this.successDisplayTimeout)}window.removeEventListener("resize",this.handleResize);this.stopLoaderAnimation()}handleResize=()=>{this.breakpoint=y(window.innerWidth)};loadLottieAnimation=async()=>{try{const t=await import("./p-GK75wIKe.js").then((function(t){return t.l}));const e=await fetch(k(`loader-redirect1.json`));const i=await e.json();if(this.lottieContainer){this.lottieAnimation=t.default.loadAnimation({container:this.lottieContainer,renderer:"svg",loop:true,autoplay:true,animationData:i})}else{this.startLoaderAnimation()}}catch(t){this.startLoaderAnimation()}};startLoaderAnimation=()=>{const t=3e3;const e=50;const i=e/t*100;this.progressInterval=window.setInterval((()=>{this.loaderProgress=Math.min(this.loaderProgress+i,100);if(this.loaderProgress>=100){this.stopLoaderAnimation()}}),e)};stopLoaderAnimation=()=>{if(this.progressInterval){clearInterval(this.progressInterval);this.progressInterval=undefined}if(this.lottieAnimation){this.lottieAnimation.destroy();this.lottieAnimation=undefined}};handleDownloadReceipt=async()=>{try{await C.generateAndDownloadReceipt({paymentMethod:this.typePaymentMethod===p.CARD?this.textPaymentMethodCard():this.paymentMethodName,...this.typePaymentMethod===p.BANK_TRANSFER&&{bank:this.bank},...this.typePaymentMethod===p.CARD&&{cardBrand:this.applyStartCaseToBrand(o.data.cardInformation?.brand||"")},...this.typePaymentMethod===p.CARD&&{cardLastFour:this.cardLastFour??o.data.cardInformation?.lastFour},paymentDate:D(this.getPaymentDate())||D((new Date).toISOString()),email:o?.data?.userInformation?.email||"",referenceNumber:this.referenceNumber,productTitle:o?.data?.itemInformation?.title||"",subtotal:this.getFormattedSubtotal(),total:this.getFormattedTotal(),currency:o?.data?.pricing?.currency||" ",installments:o?.data?.pricing?.installments&&o?.data?.cardInformation?.installments?.selectedInstallment?`${x(o.data?.cardInformation?.installments?.selectedInstallment?.installment,_(o.data?.cardInformation?.installments?.selectedInstallment?.installmentAmount||0),o.data?.pricing?.currency,o.data?.cardInformation?.installments?.selectedInstallment?.cft,o.data?.cardInformation?.installments?.selectedInstallment?.model)}\n( ${r.translate("processing.purchaseTotal")}: ${this.getFormattedTotal()} )${o.data.cardInformation?.installments?.installments.find((t=>t.installment===o.data.cardInformation?.installments?.selectedInstallment?.installment))?.model===v.CUSTOMER_FINANCED?`\n${r.translate("installments.interest")}`:""}`:"",discountAmount:this.getFormattedDiscountAmount(),trialPeriodDays:this.trialPeriodDays||o.data?.itemInformation?.trial?.trialPeriodDays,debitDay:this.debitDay||o.data?.itemInformation?.debitDay,planAmount:this.getFormattedSubtotal(this.planAmount),trialEndDate:this.hasFreeTrial()?this.getTrialEndDateFormatted():undefined,debitDate:this.hasDebitDay()?this.getDebitDateFormatted():undefined,isBankTransfer:this.typePaymentMethod===p.BANK_TRANSFER})}catch(t){console.error("Error downloading receipt:",t)}};getFormattedDiscountAmount=()=>{if(o?.data?.pricing?.discountAmount>0){const t=c(o.data?.pricing?.discountAmount,o.data?.pricing?.currency);return`-${t}`}return undefined};getFormattedSubtotal=(t=null)=>c(t||o?.data?.pricing?.subtotal,o?.data?.pricing?.currency);getFormattedTotal=()=>{if(this.trialPeriodDays>0){return c(0,o?.data?.pricing?.currency)}return c(o?.data?.pricing?.total,o?.data?.pricing?.currency)};hasFreeTrial=()=>o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.trial?.trialPeriodDays&&o.data?.itemInformation?.trial?.trialPeriodDays>0;hasDebitDay=()=>{const t=o.data?.itemInformation?.debitDay;return t&&t>0};getTrialEndDateFormatted=()=>{const t=o.data?.itemInformation?.trial?.trialPeriodEndsAt;if(!t)return"";const e=new Date(t);const i=r.getCurrentLanguage();const a=i==="es"?"es-ES":i==="pt"?"pt-BR":"en-US";if(i==="en"){return`${e.toLocaleDateString(a,{month:"long"})} ${e.getDate()}`}else{return`${e.getDate()} de ${e.toLocaleDateString(a,{month:"long"})}`}};getDebitDateFormatted=()=>{const t=o.data?.itemInformation?.debitDay;if(!t||t<=0)return"";const e=new Date;const i=new Date(e);const a=r.getCurrentLanguage();const s=a==="es"?"es-ES":a==="pt"?"pt-BR":"en-US";if(t<e.getDate()){i.setMonth(e.getMonth()+1)}i.setDate(t);while(i.getDate()!==t){i.setDate(i.getDate()-1)}if(a==="en"){return`${i.toLocaleDateString(s,{month:"long"})} ${i.getDate()}`}else{return`${i.getDate()} de ${i.toLocaleDateString(s,{month:"long"})}`}};textPaymentMethodCard=()=>{const t=o.data?.cardInformation?.brand;const e=this.cardLastFour||o?.data?.cardInformation?.lastFour;const i=this.applyStartCaseToBrand(t||"");return t&&e?`${i} - ${e}`:i};render(){const t=o.data?.itemInformation?.redirectSuccess;return e("rebill-checkout-single-column",{key:"6161c9a3a0339233bee1ba33aae1352e16fdda54"},e("div",{key:"682b04e63decdad5f43a82b8ef2cd0dfcc442b06",class:"success-page__success-content"},e("rebill-typography",{key:"c5a4e7c9b9599b6a8d043deb7a9c1c567a5732fd",variant:"h3",color:u.PRIMARY_DARK_TEXT},t&&this.showRedirectMessage?r.translate("processing.redirectMessage"):r.translate("processing.successTitle")),t&&this.showRedirectMessage?e("div",{class:"redirect-message"},e("div",{class:"success-page__lottie-container"},e("div",{ref:t=>this.lottieContainer=t,class:"lottie-animation"}))):e("div",{class:"success-page__success-icon"},e("svg",{width:m(this.breakpoint,f.DESKTOP)?"64":"96",height:m(this.breakpoint,f.DESKTOP)?"64":"96",viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("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"}))),e("div",{key:"40d89290f34f40c0e68f4211ae305ff0af106fe0",class:"success-page__info-card"},e("div",{key:"55f0c8f24fe757b9c09e6fec9e3597860ccdb206",class:"success-page__card-row"},e("rebill-typography",{key:"c5d8e1938fdaf248bf638227f9a40a9f91ffdd29",variant:"body2",color:u.SECONDARY},r.translate("processing.paymentMethod")),e("div",{key:"55b7447bf16e6c8dd202d43b7372c504dcfd881c",class:"success-page__card-value"},e("div",{key:"43d9b7fe932bc1809bdef6544d47457fe735f7a0",class:"success-page__payment-method-display"},this.typePaymentMethod===p.CARD&&e(e.Fragment,null,e("rebill-card-icon",{key:"3d9a4e29b8dce7fdd2d241636a5e5f78c75dfac4","card-brand":o.data?.cardInformation?.brand||""}),e("rebill-typography",{key:"cd17dbb31447761d13d753184b910fcd5703b5ee",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.textPaymentMethodCard())),this.typePaymentMethod===p.BANK_TRANSFER&&e("div",{key:"e6f498399092661bceace8cdb152664a55fc3e59",style:{display:"flex",alignItems:"center",gap:"8px"}},e("div",{key:"f431832ddcc020016990e9ff160ab91822220042",style:{display:"flex",alignItems:"center",gap:"8px"}},this.getPaymentMethodConfig(p.BANK_TRANSFER).icons.map((t=>e("rebill-icon",{name:t,size:"24px"})))),e("rebill-typography",{key:"d38f2d78ed21f624d14f28808a468f266abf5b0d",variant:"body2",color:u.PRIMARY_DARK_TEXT},r.translate("paymentMethods.bank_transfer")))))),o?.data?.pricing?.installments&&o?.data?.cardInformation?.installments?.selectedInstallment&&e("div",{key:"ddc1b34c3821a0fd80ebc70367a5cd47cf0315c8"},e("div",{key:"dc4ad24c5204e1f5d1ef80819d8955f8e25fda10",class:"success-page__card-row"},e("rebill-typography",{key:"ce9f0481ccfcfe73d4ed0297c70520dcc997b8e1",variant:"body2",color:u.SECONDARY},r.translate("summary.installments")),e("div",{key:"715643ba7dc9dacf7a529779a6d043ec7f88d986",style:{display:"flex",flexDirection:"column",gap:"10px",alignItems:"end"}},e("rebill-typography",{key:"129d6659702b14a73c2a2661f26484fc8b9742dc",variant:"body2",color:u.PRIMARY_DARK_TEXT,style:{textAlign:"end"}},x(o.data?.cardInformation?.installments?.selectedInstallment?.installment,_(o.data?.cardInformation?.installments?.selectedInstallment?.installmentAmount||0),o.data?.pricing?.currency,o.data?.cardInformation?.installments?.selectedInstallment?.cft,o.data?.cardInformation?.installments?.selectedInstallment?.model)),e("rebill-typography",{key:"eec2d4ba268776397940d5f8fe43bbc217b2f111",variant:"body2",color:u.PRIMARY_DARK_TEXT},`( ${r.translate("processing.purchaseTotal")}: ${this.getFormattedTotal()} )`),o.data.cardInformation?.installments?.installments.find((t=>t.installment===o.data.cardInformation?.installments?.selectedInstallment?.installment))?.model===v.CUSTOMER_FINANCED&&e("rebill-typography",{key:"1707867e7fb823b66a6f6f1acb90acd49ac9ca46",variant:"italic",color:u.SECONDARY,style:{textAlign:"end"}},`${r.translate("installments.interest")}`)))),e("div",{key:"e469fbbf928a55b9d747c920e47ba644f9b400ea",class:"success-page__card-row"},e("rebill-typography",{key:"7edf1ce2a15898d5570ce6d81944360a8eea5ccb",variant:"body2",color:u.SECONDARY},r.translate("processing.paymentDate")),e("rebill-typography",{key:"5e548e95fcccde9c0d830abd2935d1dce8f850ae",variant:"body2",color:u.PRIMARY_DARK_TEXT},D(this.paymentDate||this.getPaymentDate()||o.createdAt)||"")),e("div",{key:"51a18da1694061e6f4b32abc5f503349384f9056",class:"success-page__card-row"},e("rebill-typography",{key:"1b4bee996f522bda488da2d58ec42da50dd5ed51",variant:"body2",color:u.SECONDARY},r.translate("processing.paymentEmail")),e("rebill-typography",{key:"226c8ebd81cf86457013554471f23010c0f5b0bb",variant:"body2",color:u.PRIMARY_DARK_TEXT},o?.data?.userInformation?.email)),e("div",{key:"46132ee8adabab91f1eee35f2a1c9dfa5e5b6666",class:"success-page__card-row"},e("rebill-typography",{key:"93cb6ea673d7cb7994a7e4921b2b009b518c5d26",variant:"body2",color:u.SECONDARY},r.translate("processing.paymentReference")),e("rebill-typography",{key:"a85048802d20f98ad5c2f336d3d30acb9e802596",variant:"body2",color:u.PRIMARY_DARK_TEXT,class:"success-page__reference-number"},this.referenceNumber||""))),e("div",{key:"e1a1075e19999f6b2f160ebcd112601680636bde",class:"success-page__info-card"},e("rebill-typography",{key:"f8a12159674177337db7a857a8ec5021189d709e",variant:"subtitle-bold",color:u.PRIMARY_DARK_TEXT},r.translate("processing.purchaseDetails")),e("div",{key:"9d5242eb354e34ad2d95f0c63260ab089922b403",class:"success-page__card-row"},e("rebill-typography",{key:"d377a4e4b29f00581bb4b0e73be68cbdfb577436",variant:"body2",color:u.SECONDARY},r.translate("processing.purchaseDetail")),e("rebill-typography",{key:"d6822c094c1a42b4fb6671290fb36c0f0f7bdb95",variant:"body2",color:u.PRIMARY_DARK_TEXT},o?.data?.itemInformation?.title||"")),!this.trialPeriodDays&&e("div",{key:"230b4b1aee46dffd2e9b0c59cb8988804cd3d57f",class:"success-page__card-row"},e("rebill-typography",{key:"9664a12eb2eec87888c443466894d898fb8c0568",variant:"body2",color:u.SECONDARY},r.translate("processing.purchaseSubtotal")),e("rebill-typography",{key:"5d08b744e3fa94e359d95dad8e51f37ddc468028",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.getFormattedSubtotal())),o?.data?.pricing?.discountAmount>0&&e("div",{key:"6e684b7db98b1e4cd3e5ee99d6fc1b62652a359d",class:"success-page__card-row"},e("rebill-typography",{key:"3b7d6059fa8307737a3ec69252a1b16657a3730a",variant:"body2",color:u.SECONDARY},r.translate("summary.discount")),e("rebill-typography",{key:"29756625d73aa553277bfa72fd6c20bc9bd3db39",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.getFormattedDiscountAmount())),e("div",{key:"d70c4b5340306a689f7067d6ce9f119cdce82ae9",class:"success-page__card-row"},e("rebill-typography",{key:"473be66c9ebd6116b26813c0e733dda0666694bc",variant:"body2",color:u.SECONDARY},r.translate("processing.purchaseMontoTotal")),e("div",{key:"d947febfbb746329c03cdf805a1400aec9f2d705",class:"success-page__total-amount-container"},this.trialPeriodDays>0&&e("div",{key:"9ef4851b2ff39c5afc97b50091df5d32a060884a",class:"success-page__trial-pill"},e("rebill-typography",{key:"2781ceab99ddcb1143a9dbde0e946c31c55157e2",variant:"body2",align:"center",color:u.GREEN_TEXT},r.translate("processing.trialPill",{days:this.trialPeriodDays,count:this.trialPeriodDays}))),e("rebill-typography",{key:"a1b0cdbf8481f823e5dae0d47131354e5222184a",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.getFormattedTotal()))),(this.trialPeriodDays||this.hasDebitDay())&&e("div",{key:"1cd2d9a4cae856fc0000f7cc6611d7b289c0fce8",class:"success-page__card-divider"}),(this.hasFreeTrial()||this.hasDebitDay())&&e("div",{key:"2a86a08bd5c95d3900eec270e9f0a3d11557b41d",class:"success-page__next-charge-section"},e("div",{key:"d2dfe5d64200f0f2de991dc148a3b532f79bd61d",class:"success-page__next-charge-header"},e("rebill-typography",{key:"b6ad35d28492f774943a104dd92b00995ad5244a",variant:"subtitle-bold",color:u.PRIMARY_DARK_TEXT},r.translate("processing.nextCharge")),e("rebill-typography",{key:"d21ed9d08043c33e2b37763886512bc58c480aab",variant:"subtitle-bold",color:u.PRIMARY_DARK_TEXT},r.translate("processing.onDate",{date:this.hasFreeTrial()?this.getTrialEndDateFormatted():this.getDebitDateFormatted()}))),e("div",{key:"5eeae7784dc8c78541a116639fa13e8fb96f7ceb",class:"success-page__card-row"},e("rebill-typography",{key:"6cfdcceb773ec52d1fb7fa36a6c0158ad5f06c46",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.hasFreeTrial()?r.translate("processing.atEndOfTrial"):""),e("rebill-typography",{key:"6ab2b8fca06cb4de1f0d9fc23227384219aec009",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.getFormattedSubtotal(this.planAmount)," ",r.translate("processing.perMonth")))),e("div",{key:"277e71e8c8c919e9e8ffc573a4db7cd9955246fb",class:"success-page__card-divider"}),e("div",{key:"bc05eea75f64fee85ad1652c8989c857318e3748",class:"success-page__download-container"},e("svg",{key:"eeb5ef1db07f872a6c2d43abd1ab8fc71a8480df",class:"download-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"9e7300acb5c78da29c4ee855567eec0cc0eb4f03",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"})),e("rebill-button",{key:"74d7621df8ad0434fa2b4c174f254435d4066f5f",type:"button",variant:"download",size:"small",onClick:this.handleDownloadReceipt},e("rebill-typography",{key:"e61b9a1b07cfba89a2a46bf1817f9d15328852ac",variant:"overline",color:u.PRIMARY_DARK_TEXT},r.translate("processing.download")))),e("div",{key:"cc2097e3cc170eace39d192ec6ef913e6af561f7",class:"success-page__contact-info"},e("rebill-typography",{key:"6b1c2aaffbdf047295267017977ac366eb80b85c",variant:"information-text",color:u.SECONDARY},r.translate("processing.downloadDescription"))))))}};yt.style=mt;const gt=":host{display:block}.inputs-container{display:flex;flex-direction:column;gap:16px;width:100%}.customer-exists{display:flex;justify-content:flex-end;margin-bottom:16px}";const xt=class{constructor(e){t(this,e);this.onRebillAccountClick=i(this,"onRebillAccountClick")}userInformation={email:"",fullName:"",countryCode:""};errors=null;customerExists=false;disabled=false;onRebillAccountClick;translateError(t){if(!t)return"";if(t.includes("validation.")||t.includes("paymentErrors.")){return r.translate(t)}return t}handleInputChange(t){if(!t.detail)return;const{id:e,value:i}=t.detail;h.setUserInformation({[e]:i})}handleBlur(t){if(!t.detail)return;const{id:e,value:i}=t.detail;h.setUserInformation({[e]:i})}getCardLabels(){const t=[];if(o.data.prefilledData.email){t.push({label:r.translate("userInformation.emailPlaceholder"),value:o.data.prefilledData.email});h.setUserInformation({...o.data.userInformation,email:o.data.prefilledData.email})}if(o.data.prefilledData.fullName){t.push({label:r.translate("userInformation.fullNamePlaceholder"),value:o.data.prefilledData.fullName});h.setUserInformation({...o.data.userInformation,fullName:o.data.prefilledData.fullName})}return t}async handleRebillAccountClick(){s.otp.generate(o.data.sessionId,{email:o.data.userInformation.email});this.onRebillAccountClick.emit(true)}renderInputs(){const t=o.data.prefilledData.email;const i=o.data.prefilledData.fullName;const a=[];if(!t){a.push(e("rebill-input-text",{id:"email",variant:"floating",label:r.translate("userInformation.emailPlaceholder"),placeholder:r.translate("userInformation.emailPlaceholder"),"left-icon":"email",clearable:true,disabled:this.disabled,error:this.translateError(this.errors?.email)}))}if(!i){a.push(e("rebill-input-text",{id:"fullName",variant:"floating",label:r.translate("userInformation.fullNamePlaceholder"),placeholder:r.translate("userInformation.fullNamePlaceholder"),disabled:this.disabled,error:this.translateError(this.errors?.fullName)}))}return a.length>0?e("div",{class:"inputs-container",style:{marginTop:a.length>0&&(t||i)?"1rem":"0"}},a):null}render(){const t=e("div",{key:"ba2732f5612cfb140376f8761589516e9749713b",class:"customer-exists"},e("rebill-button",{key:"f050c93fb264234e088303a7d252002a9751e9a0",style:{visibility:this.customerExists?"visible":"hidden",opacity:this.customerExists?"1":"0",transition:"opacity 0.3s ease-in-out"},variant:"text",size:"small",onClick:()=>this.handleRebillAccountClick(),icon:"lock"},r.translate("userInformation.rebillAccount"),e("rebill-icon",{key:"3f0e9e1fc509633b150b1d1e0de6eaaa1fa85db8",name:"arrow-right"})));const i=o.data.prefilledData.email;const s=o.data.prefilledData.fullName;const n=i||s;return e(a,{key:"f315fa7f2bc8ec5923f6bf7e4519a236b0b67bb4"},t,n&&e("rebill-card",{key:"c5273821ffb18906e2b8bc646ede109eae4f4824",cardTitle:r.translate("userInformation.personalInformation"),cardLabels:this.getCardLabels()}),this.renderInputs())}};xt.style=gt;export{ut as otp_component,ft as rebill_modal_overlay,ht as rebill_summary,yt as success_page,xt as user_information};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as t,h as e,c as i,H as a}from"./p-BTZ7D7jU.js";import{a as s}from"./p-CV0wqtJM.js";import{I as r,c as n,s as o,b as l,f as c,d,S as h,P as p}from"./p-Bkzz9eGU.js";import{C as u}from"./p-C5Pu-n-i.js";import{c as b}from"./p-bcHxwlBu.js";import{B as f,i as m,g as y}from"./p-Do_vNuMa.js";import{g,a as x,E as v,b as _}from"./p-B_yiCV3J.js";import{g as k}from"./p-DWY12C3E.js";import{g as w,a as $}from"./p-pXX5rSDt.js";import{P as C}from"./p-DUn0QSYi.js";import{f as D}from"./p-D2fDSwuH.js";import"./p-E-ZsRS8r.js";import"./p-CzeVW03r.js";const j=(t,e,i)=>{const a=document.createElement(t),[s,r]=Array.isArray(e)?[void 0,e]:[e,i];return s&&Object.assign(a,s),r==null||r.forEach((t=>a.appendChild(t))),a},S=(t,e)=>{var i;return e==="left"?t.offsetLeft:(((i=t.offsetParent instanceof HTMLElement?t.offsetParent:null)==null?void 0:i.offsetWidth)??0)-t.offsetWidth-t.offsetLeft},T=t=>t.offsetWidth>0&&t.offsetHeight>0,M=(t,e)=>{!customElements.get(t)&&customElements.define(t,e)};function A(t,e,{reverse:i=false}={}){const a=t.length;for(let s=i?a-1:0;i?s>=0:s<a;i?s--:s++)e(t[s],s)}function I(t,e,i,a){const s=e.formatToParts(t);i&&s.unshift({type:"prefix",value:i}),a&&s.push({type:"suffix",value:a});const r=[],n=[],o=[],l=[],c={},d=t=>`${t}:${c[t]=(c[t]??-1)+1}`;let h="",p=false,u=false;for(const t of s){h+=t.value;const e=t.type==="minusSign"||t.type==="plusSign"?"sign":t.type;e==="integer"?(p=true,n.push(...t.value.split("").map((t=>({type:e,value:parseInt(t)}))))):e==="group"?n.push({type:e,value:t.value}):e==="decimal"?(u=true,o.push({type:e,value:t.value,key:d(e)})):e==="fraction"?o.push(...t.value.split("").map((t=>({type:e,value:parseInt(t),key:d(e),pos:-1-c[e]})))):(p||u?l:r).push({type:e,value:t.value,key:d(e)})}const b=[];for(let t=n.length-1;t>=0;t--){const e=n[t];b.unshift(e.type==="integer"?{...e,key:d(e.type),pos:c[e.type]}:{...e,key:d(e.type)})}return{pre:r,integer:b,fraction:o,post:l,valueAsString:h,value:typeof t=="string"?parseFloat(t):t}}const L=String.raw,P=(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return false}return true})(),N=typeof CSS<"u"&&CSS.supports&&CSS.supports("line-height","mod(1,1)"),E=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):null,R="--_number-flow-d-opacity",z="--_number-flow-d-width",B="--_number-flow-dx",F="--_number-flow-d",U=(()=>{try{return CSS.registerProperty({name:R,syntax:"<number>",inherits:false,initialValue:"0"}),CSS.registerProperty({name:B,syntax:"<length>",inherits:true,initialValue:"0px"}),CSS.registerProperty({name:z,syntax:"<number>",inherits:false,initialValue:"0"}),CSS.registerProperty({name:F,syntax:"<number>",inherits:true,initialValue:"0"}),true}catch{return false}})(),V="var(--number-flow-char-height, 1em)",W="var(--number-flow-mask-height, 0.25em)",X=`calc(${W} / 2)`,q="var(--number-flow-mask-width, 0.5em)",H=`calc(${q} / var(--scale-x))`,O="#000 0, transparent 71%",Z=L`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:${V} !important}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${z}) / var(--width));transform:translateX(var(${B})) scaleX(var(--scale-x));margin:0 calc(-1 * ${q});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${H},#000 calc(100% - ${H}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${W},#000 calc(100% - ${W}),transparent 100% ),radial-gradient(at bottom right,${O}),radial-gradient(at bottom left,${O}),radial-gradient(at top left,${O}),radial-gradient(at top right,${O});-webkit-mask-size:100% calc(100% - ${W} * 2),calc(100% - ${H} * 2) 100%,${H} ${W},${H} ${W},${H} ${W},${H} ${W};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${X} ${q};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${B})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${F})}.digit__num,.number .section::after{padding:${X} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${R}))}`,G=HTMLElement,Y=N&&P&&U;let J;class K extends G{constructor(){super(),this.created=false,this.batched=false;const{animated:t,...e}=this.constructor.defaultProps;this._animated=this.computedAnimated=t,Object.assign(this,e)}get animated(){return this._animated}set animated(t){var e;this.animated!==t&&(this._animated=t,(e=this.shadowRoot)==null||e.getAnimations().forEach((t=>t.finish())))}set data(t){var e;if(t==null)return;const{pre:i,integer:a,fraction:s,post:r,value:n}=t;if(this.created){const o=this._data;this._data=t,this.computedTrend=typeof this.trend=="function"?this.trend(o.value,n):this.trend,this.computedAnimated=Y&&this._animated&&(!this.respectMotionPreference||!(E!=null&&E.matches))&&T(this),(e=this.plugins)==null||e.forEach((e=>{var i;return(i=e.onUpdate)==null?void 0:i.call(e,t,o,this)})),this.batched||this.willUpdate(),this._pre.update(i),this._num.update({integer:a,fraction:s}),this._post.update(r),this.batched||this.didUpdate()}else{this._data=t,this.attachShadow({mode:"open"});try{this._internals??(this._internals=this.attachInternals()),this._internals.role="img"}catch{}if(typeof CSSStyleSheet<"u"&&this.shadowRoot.adoptedStyleSheets)J||(J=new CSSStyleSheet,J.replaceSync(Z)),this.shadowRoot.adoptedStyleSheets=[J];else{const t=document.createElement("style");t.textContent=Z,this.shadowRoot.appendChild(t)}this._pre=new it(this,i,{justify:"right",part:"left"}),this.shadowRoot.appendChild(this._pre.el),this._num=new Q(this,a,s),this.shadowRoot.appendChild(this._num.el),this._post=new it(this,r,{justify:"left",part:"right"}),this.shadowRoot.appendChild(this._post.el),this.created=true}try{this._internals.ariaLabel=t.valueAsString}catch{}}willUpdate(){this._pre.willUpdate(),this._num.willUpdate(),this._post.willUpdate()}didUpdate(){if(!this.computedAnimated)return;this._abortAnimationsFinish?this._abortAnimationsFinish.abort():this.dispatchEvent(new Event("animationsstart")),this._pre.didUpdate(),this._num.didUpdate(),this._post.didUpdate();const t=new AbortController;Promise.all(this.shadowRoot.getAnimations().map((t=>t.finished))).then((()=>{t.signal.aborted||(this.dispatchEvent(new Event("animationsfinish")),this._abortAnimationsFinish=void 0)})),this._abortAnimationsFinish=t}}K.defaultProps={transformTiming:{duration:900,easing:"linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"},spinTiming:void 0,opacityTiming:{duration:450,easing:"ease-out"},animated:true,trend:(t,e)=>Math.sign(e-t),respectMotionPreference:true,plugins:void 0,digits:void 0};class Q{constructor(t,e,i,{className:a,...s}={}){this.flow=t,this._integer=new et(t,e,{justify:"right",part:"integer"}),this._fraction=new et(t,i,{justify:"left",part:"fraction"}),this._inner=j("span",{className:"number__inner"},[this._integer.el,this._fraction.el]),this.el=j("span",{...s,part:"number",className:`number ${a??""}`},[this._inner])}willUpdate(){this._prevWidth=this.el.offsetWidth,this._prevLeft=this.el.getBoundingClientRect().left,this._integer.willUpdate(),this._fraction.willUpdate()}update({integer:t,fraction:e}){this._integer.update(t),this._fraction.update(e)}didUpdate(){const t=this.el.getBoundingClientRect();this._integer.didUpdate(),this._fraction.didUpdate();const e=this._prevLeft-t.left,i=this.el.offsetWidth,a=this._prevWidth-i;this.el.style.setProperty("--width",String(i)),this.el.animate({[B]:[`${e}px`,"0px"],[z]:[a,0]},{...this.flow.transformTiming,composite:"accumulate"})}}class tt{constructor(t,e,{justify:i,className:a,...s},r){this.flow=t,this.children=new Map,this.onCharRemove=t=>()=>{this.children.delete(t)},this.justify=i;const n=e.map((t=>this.addChar(t).el));this.el=j("span",{...s,className:`section section--justify-${i} ${a??""}`},r?r(n):n)}addChar(t,{startDigitsAtZero:e=false,...i}={}){const a=t.type==="integer"||t.type==="fraction"?new rt(this,t.type,e?0:t.value,t.pos,{...i,onRemove:this.onCharRemove(t.key)}):new nt(this,t.type,t.value,{...i,onRemove:this.onCharRemove(t.key)});return this.children.set(t.key,a),a}unpop(t){t.el.removeAttribute("inert"),t.el.style.top="",t.el.style[this.justify]=""}pop(t){t.forEach((t=>{t.el.style.top=`${t.el.offsetTop}px`,t.el.style[this.justify]=`${S(t.el,this.justify)}px`})),t.forEach((t=>{t.el.setAttribute("inert",""),t.present=false}))}addNewAndUpdateExisting(t){const e=new Map,i=new Map,a=this.justify==="left",s=a?"prepend":"append";if(A(t,(t=>{let a;this.children.has(t.key)?(a=this.children.get(t.key),i.set(t,a),this.unpop(a),a.present=true):(a=this.addChar(t,{startDigitsAtZero:true,animateIn:true}),e.set(t,a)),this.el[s](a.el)}),{reverse:a}),this.flow.computedAnimated){const t=this.el.getBoundingClientRect();e.forEach((e=>{e.willUpdate(t)}))}e.forEach(((t,e)=>{t.update(e.value)})),i.forEach(((t,e)=>{t.update(e.value)}))}willUpdate(){const t=this.el.getBoundingClientRect();this._prevOffset=t[this.justify],this.children.forEach((e=>e.willUpdate(t)))}didUpdate(){const t=this.el.getBoundingClientRect();this.children.forEach((e=>e.didUpdate(t)));const e=t[this.justify],i=this._prevOffset-e;i&&this.children.size&&this.el.animate({transform:[`translateX(${i}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}class et extends tt{update(t){const e=new Map;this.children.forEach(((i,a)=>{t.find((t=>t.key===a))||e.set(a,i),this.unpop(i)})),this.addNewAndUpdateExisting(t),e.forEach((t=>{t instanceof rt&&t.update(0)})),this.pop(e)}}class it extends tt{update(t){const e=new Map;this.children.forEach(((i,a)=>{t.find((t=>t.key===a))||e.set(a,i)})),this.pop(e),this.addNewAndUpdateExisting(t)}}class at{constructor(t,e,{onRemove:i,animateIn:a=false}={}){this.flow=t,this.el=e,this._present=true,this._remove=()=>{var t;this.el.remove(),(t=this._onRemove)==null||t.call(this)},this.el.classList.add("animate-presence"),this.flow.computedAnimated&&a&&this.el.animate({[R]:[-.9999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),this._onRemove=i}get present(){return this._present}set present(t){if(this._present!==t){if(this._present=t,t?this.el.removeAttribute("inert"):this.el.setAttribute("inert",""),!this.flow.computedAnimated){t||this._remove();return}this.el.style.setProperty("--_number-flow-d-opacity",t?"0":"-.999"),this.el.animate({[R]:t?[-.9999,0]:[.999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),t?this.flow.removeEventListener("animationsfinish",this._remove):this.flow.addEventListener("animationsfinish",this._remove,{once:true})}}}class st extends at{constructor(t,e,i,a){super(t.flow,i,a),this.section=t,this.value=e,this.el=i}}class rt extends st{constructor(t,e,i,a,s){var r,n;const o=(((n=(r=t.flow.digits)==null?void 0:r[a])==null?void 0:n.max)??9)+1,l=Array.from({length:o}).map(((t,e)=>{const a=j("span",{className:"digit__num"},[document.createTextNode(String(e))]);return e!==i&&a.setAttribute("inert",""),a.style.setProperty("--n",String(e)),a})),c=j("span",{part:`digit ${e}-digit`,className:"digit"},l);c.style.setProperty("--current",String(i)),c.style.setProperty("--length",String(o)),super(t,i,c,s),this.pos=a,this._onAnimationsFinish=()=>{this.el.classList.remove("is-spinning")},this._numbers=l,this.length=o}willUpdate(t){const e=this.el.getBoundingClientRect();this._prevValue=this.value;const i=e[this.section.justify]-t[this.section.justify],a=e.width/2;this._prevCenter=this.section.justify==="left"?i+a:i-a}update(t){this.el.style.setProperty("--current",String(t)),this._numbers.forEach(((e,i)=>i===t?e.removeAttribute("inert"):e.setAttribute("inert",""))),this.value=t}didUpdate(t){const e=this.el.getBoundingClientRect(),i=e[this.section.justify]-t[this.section.justify],a=e.width/2,s=this.section.justify==="left"?i+a:i-a,r=this._prevCenter-s;r&&this.el.animate({transform:[`translateX(${r}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"});const n=this.getDelta();n&&(this.el.classList.add("is-spinning"),this.el.animate({[F]:[-n,0]},{...this.flow.spinTiming??this.flow.transformTiming,composite:"accumulate"}),this.flow.addEventListener("animationsfinish",this._onAnimationsFinish,{once:true}))}getDelta(){var t;if(this.flow.plugins)for(const e of this.flow.plugins){const i=(t=e.getDelta)==null?void 0:t.call(e,this.value,this._prevValue,this);if(i!=null)return i}const e=this.value-this._prevValue,i=this.flow.computedTrend||Math.sign(e);return i<0&&this.value>this._prevValue?this.value-this.length-this._prevValue:i>0&&this.value<this._prevValue?this.length-this._prevValue+this.value:e}}class nt extends st{constructor(t,e,i,a){const s=j("span",{className:"symbol__value",textContent:i});super(t,i,j("span",{part:`symbol ${e}`,className:"symbol"},[s]),a),this.type=e,this._children=new Map,this._onChildRemove=t=>()=>{this._children.delete(t)},this._children.set(i,new at(this.flow,s,{onRemove:this._onChildRemove(i)}))}willUpdate(t){if(this.type==="decimal")return;const e=this.el.getBoundingClientRect();this._prevOffset=e[this.section.justify]-t[this.section.justify]}update(t){if(this.value!==t){const e=this._children.get(this.value);e&&(e.present=false);const i=this._children.get(t);if(i)i.present=true;else{const e=j("span",{className:"symbol__value",textContent:t});this.el.appendChild(e),this._children.set(t,new at(this.flow,e,{animateIn:true,onRemove:this._onChildRemove(t)}))}}this.value=t}didUpdate(t){if(this.type==="decimal")return;const e=this.el.getBoundingClientRect()[this.section.justify]-t[this.section.justify],i=this._prevOffset-e;i&&this.el.animate({transform:[`translateX(${i}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}const ot="number-flow-connect",lt="number-flow-update";class ct extends K{constructor(){super(...arguments),this.connected=false}connectedCallback(){this.connected=true,this.dispatchEvent(new Event(ot,{bubbles:true}))}disconnectedCallback(){this.connected=false}get value(){return this._value}update(t){(!this._formatter||this._prevFormat!==this.format||this._prevLocales!==this.locales)&&(this._formatter=new Intl.NumberFormat(this.locales,this.format),this._prevFormat=this.format,this._prevLocales=this.locales),t!=null&&(this._value=t),this.dispatchEvent(new Event(lt,{bubbles:true})),this.data=I(this._value,this._formatter,this.numberPrefix,this.numberSuffix)}}M("number-flow",ct);const dt=".summary-container {\n width: 100%;\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n gap: 40px;\n background-color: var(--rebill-color-background-right);\n}\n.summary-header {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 10px;\n}\n\n.trial-pill {\n background-color: var(--rebill-color-green-light-2);\n border-radius: 4px;\n padding: 4px 6px 4px 6px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.total-amount-container {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 10px;\n}\n\n@media (max-width: 1024px) {\n .summary-container {\n gap: 1.5rem !important;\n background-color: var(--rebill-color-background);\n }\n .summary-header {\n margin-top: 24px;\n }\n .summary-row.total {\n margin-top: 0 !important;\n }\n}\n\n.summary-card {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 24px;\n padding: 0px;\n background: #ffffff;\n}\n\n.summary-card-info {\n flex: 1;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n.summary-card-amount {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.summary-details {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n.summary-row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 16px;\n & > :nth-child(2) {\n text-align: right;\n }\n}\n\n.summary-row.total {\n margin-top: 1rem;\n font-weight: bold;\n}\n\n@media (min-width: 1025px) and (max-width: 1450px) {\n .summary-container {\n margin: 0px 10px;\n max-width: 400px;\n }\n}\n";const ht=class{constructor(e){t(this,e)}totalAmount;itemTitle;itemDescription;itemAmount;planFrequency;planFrequencyCount;subtotal;discount;currency;displayedComponents=["totalAmount","discount","itemDetails","priceDetails","timelineFreeTrial","timelineDebitDay"];allowCoupon=false;currentBreakpoint=f.DESKTOP;discountApplied=false;totalFlow;discountType;discountedPercentage=0;discountDuration=0;discountAmount=0;getDurationTranslation(t){const e=this.planFrequency||n.MONTH;if(t===1){return r.translate(`summary.${e}_one`)}else{return r.translate(`summary.${e}_other`,{count:t})}}componentDidLoad(){this.updateTotalFlow()}componentDidUpdate(){this.updateTotalFlow()}updateTotalFlow(){if(this.totalFlow){this.totalFlow.format={style:"currency",currency:this.currency};this.totalFlow.update(Number(o.data.pricing.total))}}handleDiscountApplied(t){this.discountApplied=t.detail}getRecalculatedInstallmentAmount(){const t=o.data?.cardInformation?.installments?.selectedInstallment;if(!t){return 0}if(o.data.pricing.discountAmount>0){const e=o.data.pricing.subtotal;const i=o.data.pricing.totalWithoutInstallment;const a=i/e;return Math.round(t.installmentAmount*a*100)/100}return t.installmentAmount}renderTotalForPlan(){return o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy&&e("div",{class:"summary-row total"},e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.totalAmountToday")),e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},c(o.data.pricing.total,this.currency)))}renderTotalForPlanGeneral(){return o.data?.itemInformation?.type===l.PLAN&&!o.data?.itemInformation?.trial?.trialPeriodDays&&!o.data?.itemInformation?.debitStrategy&&e("div",{class:"summary-row total"},e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.totalAmount")),e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},c(o.data?.pricing?.total,this.currency)))}renderTotalForNonPlan(){return o.data?.itemInformation?.type!==l.PLAN&&e("div",{class:"summary-row total"},e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.totalAmount")),e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},c(o.data.pricing.total,this.currency)))}renderTrialPeriod(){return o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.trial?.trialPeriodDays&&e("div",{class:"summary-row"},e("rebill-typography",{variant:"body2"},r.translate("summary.totalAmountLastTrialPeriod")),e("rebill-typography",{variant:"body2"},c(o.data?.pricing?.total,this.currency),`/${r.translate(`summary.${this.planFrequency}`,{count:this.planFrequencyCount||1})} `))}renderDiscountAlertWrapper(){return o.data?.itemInformation?.trial?.trialPeriodDays&&e("div",{class:"summary-row"},e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.trialPeriodDaysDetails",{trialDays:o.data?.itemInformation?.trial?.trialPeriodDays,count:o.data?.itemInformation?.trial?.trialPeriodDays})),e("rebill-typography",{variant:m(this.currentBreakpoint,f.DESKTOP)?"subtitle1":"body3",style:{fontWeight:m(this.currentBreakpoint,f.DESKTOP)?"normal":"bold"}},r.translate("summary.free")))}render(){const t=(t=true,i=true,a=true)=>e("div",{class:"summary-card"},(t||i)&&e("div",{class:"summary-card-info"},t&&e("rebill-typography",{variant:"subtitle-bold",gutterBottom:true},this.itemTitle),i&&this.itemDescription&&e("rebill-typography",{variant:"body2"},this.itemDescription)),a&&e("div",{class:"summary-card-amount"},e("rebill-typography",{variant:"body2"},o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy?c(o.data?.pricing?.planAmount,this.currency):c(this.subtotal,this.currency))));const i=()=>{const t=[this.renderTotalForPlan(),this.renderTotalForPlanGeneral(),this.renderTotalForNonPlan(),this.renderTrialPeriod(),this.renderDiscountAlertWrapper()].filter(Boolean);if(t.length>1){t.splice(t.length-1,0,e("rebill-divider",null))}return e("div",{class:"summary-details"},e("div",{class:"summary-row"},e("rebill-typography",{variant:"body2"},r.translate("summary.subtotal")),e("rebill-typography",{variant:"body2"},o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy?c(o.data.pricing.planAmount,this.currency):c(this.subtotal,this.currency))),o.data.pricing.installments&&e("div",{class:"summary-row"},e("rebill-typography",{variant:"body2"},r.translate("summary.installments")),e("rebill-typography",{variant:"body2"},g(o.data?.pricing?.installments,this.getRecalculatedInstallmentAmount()))),this.allowCoupon&&!m(this.currentBreakpoint,f.DESKTOP)&&e("discount-coupon",null),!o.data?.itemInformation?.trial?.trialPeriodDays&&!o.data?.itemInformation?.debitStrategy&&e("rebill-divider",null),t.map((t=>e("div",{class:"summary-detail-wrapper"},t))))};const a=()=>this.planFrequency&&this.discountApplied&&(this.discountedPercentage>0||this.discountAmount>0)&&e("rebill-alert",{variant:"filled",type:"success",icon:"tag-sale",size:"medium",colorIcon:u.GREEN,message:this.discountDuration?r.translate(`summary.planDiscountDescriptionWithDuration`,{discount:this.discountType===d.PERCENTAGE?`${this.discountedPercentage}%`:c(this.discountAmount,this.currency),duration:this.getDurationTranslation(this.discountDuration)}):r.translate(`summary.planDiscountDescriptionWithoutDuration`,{discount:this.discountType===d.PERCENTAGE?`${this.discountedPercentage}%`:c(this.discountAmount,this.currency)})});return e("div",{class:"summary-container"},this.displayedComponents.includes("totalAmount")&&e("div",{class:"summary-header"},o.data?.itemInformation?.type===l.PLAN&&o.data.itemInformation?.trial?.trialPeriodDays&&e("div",{class:"trial-pill"},e("rebill-typography",{variant:"body2",align:"center",color:u.GREEN_TEXT},r.translate("summary.trialPill",{days:o.data?.itemInformation?.trial?.trialPeriodDays,count:o.data?.itemInformation?.trial?.trialPeriodDays}))),e("div",{class:"total-amount-container"},e("rebill-typography",{variant:"h4-span",align:"center",gutterBottom:true},e("number-flow",{ref:t=>this.totalFlow=t})),this.planFrequency&&e("rebill-typography",{variant:"body1",color:u.SECONDARY,align:"center",gutterBottom:true,style:{fontWeight:"normal"}},`/ ${r.translate(`summary.${this.planFrequency}`,{count:this.planFrequencyCount||1})}`)),o.data?.itemInformation?.type!==l.PLAN&&e("rebill-typography",{variant:"body2",align:"center",gutterBottom:true},r.translate("summary.totalAmount")),this.allowCoupon&&m(this.currentBreakpoint,f.DESKTOP)&&e("discount-coupon",{"hide-label":true})),this.displayedComponents.includes("itemDetails")&&(m(this.currentBreakpoint,f.DESKTOP)?e("collapsible-card",{header:r.translate("summary.details")},t(true,true,true)):e("collapsible-card",{header:this.itemTitle},t(false,!!this.itemDescription,true))),this.displayedComponents.includes("discount")&&m(this.currentBreakpoint,f.DESKTOP)&&!o.data?.itemInformation?.trial?.trialPeriodDays&&!o.data?.itemInformation?.debitStrategy&&a(),this.displayedComponents.includes("timelineFreeTrial")&&o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.trial?.trialPeriodDays&&!m(this.currentBreakpoint,f.DESKTOP)&&e("rebill-timeline-free-trial",{"trial-period-ends-at":o.data?.itemInformation?.trial?.trialPeriodEndsAt,"trial-period-ends-reminder-at":o.data?.itemInformation?.trial?.trialPeriodEndsReminderAt,"trial-period-days":o.data?.itemInformation?.trial?.trialPeriodDays,subtotal:o.data.pricing.subtotal,currency:o.data.pricing.currency,"discount-applied":this.discountApplied,"discount-type":this.discountType,"discounted-percentage":this.discountedPercentage,"discount-duration":this.discountDuration,"discount-amount":this.discountAmount}),this.displayedComponents.includes("timelineDebitDay")&&o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy&&o.data?.itemInformation?.debitDay&&!m(this.currentBreakpoint,f.DESKTOP)&&e("rebill-timeline-debit-day",{"debit-day":o.data?.itemInformation?.debitDay,"total-amount":o.data?.pricing?.total,"plan-amount":o.data?.pricing?.planAmount,currency:o.data?.pricing?.currency,"debit-strategy":o.data?.itemInformation?.debitStrategy,"discount-applied":this.discountApplied,"discount-type":this.discountType,"discounted-percentage":this.discountedPercentage,"discount-duration":this.discountDuration,"discount-amount":this.discountAmount}),this.displayedComponents.includes("priceDetails")&&(m(this.currentBreakpoint,f.DESKTOP)?e("collapsible-card",{header:r.translate("summary.summary")},i()):i()),this.displayedComponents.includes("timelineFreeTrial")&&o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.trial?.trialPeriodDays&&m(this.currentBreakpoint,f.DESKTOP)&&e("rebill-timeline-free-trial",{"trial-period-ends-at":o.data?.itemInformation?.trial?.trialPeriodEndsAt,"trial-period-ends-reminder-at":o.data?.itemInformation?.trial?.trialPeriodEndsReminderAt,"trial-period-days":o.data?.itemInformation?.trial?.trialPeriodDays,subtotal:o.data?.pricing?.subtotal,currency:o.data?.pricing?.currency,"discount-applied":this.discountApplied,"discount-type":this.discountType,"discounted-percentage":this.discountedPercentage,"discount-duration":this.discountDuration,"discount-amount":this.discountAmount}),this.displayedComponents.includes("timelineDebitDay")&&o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.debitStrategy&&o.data?.itemInformation?.debitDay&&m(this.currentBreakpoint,f.DESKTOP)&&e("rebill-timeline-debit-day",{"debit-day":o.data?.itemInformation?.debitDay,"total-amount":o.data?.pricing?.total,"plan-amount":o.data?.pricing?.planAmount,currency:o.data?.pricing?.currency,"debit-strategy":o.data?.itemInformation?.debitStrategy,"discount-applied":this.discountApplied,"discount-type":this.discountType,"discounted-percentage":this.discountedPercentage,"discount-duration":this.discountDuration,"discount-amount":this.discountAmount}),this.displayedComponents.includes("discount")&&!m(this.currentBreakpoint,f.DESKTOP)&&!o.data?.itemInformation?.trial?.trialPeriodDays&&!o.data?.itemInformation?.debitStrategy&&a())}};ht.style=dt;const pt=".otp__otp-container{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%;position:relative;margin-top:2rem}.otp__user-information{display:flex;align-items:center;justify-content:center;flex-direction:column;width:100%;gap:8px}.otp__otp-description-container{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px}.otp__change-email{cursor:pointer;text-decoration:underline;margin-left:0}.otp__change-email:hover{color:var(--rebill-primary-color);text-decoration:underline}.otp__alternative{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:16px;margin:32px;width:100%}.otp__rebill-alert{width:100%}.otp__guest-options{display:flex;flex-direction:column;width:100%;gap:8px;margin-top:auto}.otp__verifying-container{display:flex;align-items:center;justify-content:center;gap:16px;margin:8px 0}.otp__code-resent-container rebill-typography{display:flex;line-height:1}.otp__code-resent-container rebill-icon{flex-shrink:0;display:inline-flex;vertical-align:middle;margin-right:8px}.otp__spinner{width:15px;height:15px;border:2px solid rgba(255, 255, 255, 0.3);border-radius:50%;border-top-color:var(--rebill-color-primary);animation:spin 1s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 1024px){.otp__otp-container{min-height:calc(100vh - 40px)}.otp__guest-options{margin-top:32px}}@media (min-width: 1025px){.otp__otp-container{justify-content:flex-start}.otp__guest-options{margin-top:auto;padding-bottom:2rem}}";const ut=class{constructor(e){t(this,e);this.changeEmailClick=i(this,"changeEmailClick");this.returnForm=i(this,"returnForm");this.codeVerified=i(this,"codeVerified")}changeEmailClick;timeLeft=59;isTimerRunning=false;codeResent=false;isVerifying=false;otpValue="";returnForm;codeVerified;error=false;timer=b({duration:59,onTick:t=>{this.timeLeft=t},onComplete:()=>{this.isTimerRunning=false}});messageTimer=b({duration:5,onComplete:()=>{this.codeResent=false}});disconnectedCallback(){this.timer.stop()}startTimer(){this.timer.start();this.isTimerRunning=true}handleResendCode=async()=>{if(!this.isTimerRunning){await s.otp.generate(o.data.sessionId,{email:o.data.userInformation.email});this.codeResent=true;this.messageTimer.start();this.startTimer();this.error=false}};handleOtpChange=t=>{this.otpValue=t;if(t.length===6){this.handleVerifyOtp(t);this.error=false}};handleVerifyOtp=async t=>{this.isVerifying=true;try{const e=await s.otp.verify(o.data.sessionId,{email:o.data.userInformation.email,code:t});this.codeVerified.emit(e.data);h.setUserInformation({...e.data.customer,fullName:`${e.data.customer.firstName} ${e.data.customer.lastName}`.trim(),phoneNumber:{number:e.data.customer.phoneNumbers[0].number,countryCode:e.data.customer.phoneNumbers[0].countryCode},address:{billingAddress:{address:e.data.customer.addresses[0].lineOne,zip:e.data.customer.addresses[0].zipCode,city:e.data.customer.addresses[0].city,state:e.data.customer.addresses[0].state,country:e.data.customer.addresses[0].country}},documentType:e.data.customer.identifications[0].type,documentNumber:e.data.customer.identifications[0].value});h.setAccessToken(e.data.accessToken);h.setCustomerId(e.data.customer.id);this.otpValue="";this.error=false}catch(t){this.error=true}finally{this.isVerifying=false}};render(){return e("div",{key:"1124eac37dc54f6d3e4fdf8575bae2ec51e0ad9b",class:"otp__otp-container"},e("div",{key:"dd578affb2dd03d93d5f799340f545b4e8e49684",class:"otp__user-information"},e("div",{key:"3668bd0dc5834b0af06df4cf1062de1b6d9573fb",class:"otp__otp-description-container"},e("rebill-typography",{key:"8f187701066eab97cd715d7d10e9abe54ccf8df5",variant:"body2",class:"otp__otp-description"},r.translate("otp.description")),e("rebill-typography",{key:"cdeb77366d825819ba95aef6bd40bc85d6a63631",variant:"subtitle-bold",class:"otp__otp-description-digits"}," ",e("strong",{key:"c31c005123e3d7e6abba74a4ca9f47740ed90f0c"},r.translate("otp.descriptionDigits"))," "),e("rebill-typography",{key:"8863a76a9b9b901989958913849d0636916d6070",variant:"body2",class:"otp__otp-description-email"},r.translate("otp.descriptionEmail"))),e("rebill-typography",{key:"ef2bbdf4e25f0a57f4bede92478fa01d8ae375d6",variant:"body2",class:"otp__otp-email-line"},o.data.userInformation.email," ",!o.data.prefilledData?.email&&e("span",{key:"bdd7af00af0eac899c545962d9e4c6cfe509bd58",class:"otp__change-email",onClick:()=>{this.otpValue="";this.error=false;this.returnForm.emit(false)}},r.translate("otp.change")))),e("input-otp",{key:"7471c843f8dd5450d8c62027b014d9fdb94f1ba0",otp:this.otpValue,onOtpChange:t=>this.handleOtpChange(t.detail),error:this.error?r.translate("otp.error"):""}),this.isVerifying&&e("div",{key:"ae324f212d96bf320da9cbb3d22dc85b6d186825",class:"otp__verifying-container"},e("rebill-typography",{key:"0b8014cf9441a4f972bad53d02494bbf25378aca",variant:"subtitle2",color:u.PRIMARY},r.translate("otp.verifyingCode")),e("div",{key:"7969178c1d69da5c9445752f75ae029f3783a34d",class:"otp__spinner"})),e("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?`${r.translate("otp.resendCodeIn")} (${this.timer.getFormattedTime()})`:r.translate("otp.resendCode")),this.codeResent&&e("div",{key:"987f6e8c24dcff5a25ba2156d0385b5f3d926b23",class:"otp__code-resent-container"},e("rebill-typography",{key:"90fa96b10fb27aeff99945467f950b47dbb542b6",variant:"subtitle2",color:u.GREEN},e("rebill-icon",{key:"348d5aeb1519c42a2c0e55b021bb7dc1fea7d241",name:"check-radio"}),r.translate("otp.codeResent"))),e("rebill-alert",{key:"ffe394d4d54e1325d19da201e6e523f7473d0302",class:"otp__rebill-alert",type:"secure",variant:"variant-info",message:r.translate("otp.infoMessage"),icon:"circle-info",alertTitle:r.translate("otp.infoTitle"),colorIcon:u.PRIMARY_DARK_LIGHT}),e("div",{key:"ef979f9b54840511db1ea6dcb2fdeee728a5c162",class:"otp__alternative"},e("rebill-typography",{key:"f4b528125adf4186ba098a9b835b69109f58b30c",variant:"body2",color:u.PRIMARY_DARK},"o")),e("div",{key:"e2b1f77e9a374509e8109ff6bb9937a524c03060",class:"otp__guest-options"},e("rebill-button",{key:"d397f7db305d6b7790f7ac485e3765c94a8b64e0",type:"button",variant:"outline",theme:"secondary",size:"medium",onClick:()=>{this.otpValue="";this.error=false;this.returnForm.emit(false)}},r.translate("otp.continueAsGuest")),e("rebill-alert",{key:"f51cad69765e40648182d9e0d37fd7a8f20aa72d",type:"secure",variant:"variant-secure",icon:"lock-outline",message:r.translate("otp.secureMessage")})))}};ut.style=pt;const bt=".modal-overlay{position:fixed;top:0;left:0;right:0;background-color:transparent;display:flex;align-items:center;justify-content:center;z-index:10000;padding:12px 16px;box-sizing:border-box}.modal-content{background:white;border-radius:8px;padding:16px 20px;width:350px;box-shadow:0 4px 12px -2px rgba(0, 0, 0, 0.15),\n 0 2px 4px -1px rgba(0, 0, 0, 0.1);position:relative;display:flex;align-items:center;gap:12px}.modal-content .alert{margin:0;flex:1;padding:0;background:transparent;border:none;box-shadow:none}.modal-content .alert{background-color:transparent !important;border-color:transparent !important}.modal-content .alert-message{display:flex;flex-direction:column;gap:4px}.modal-content .close-button{position:absolute;top:8px;right:8px;width:20px;height:20px;border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color 0.2s ease;padding:0;margin:0;outline:none;box-shadow:none;line-height:1}.modal-content .close-button:focus{outline:none;box-shadow:none}.modal-content .close-button:hover{background-color:#f0f0f0}.modal-content .close-button rebill-icon{width:16px;height:16px;display:flex;align-items:center;justify-content:center}@media (max-width: 768px){.modal-overlay{padding:8px 12px}.modal-content{padding:12px 16px;width:100%;max-width:350px;flex-direction:row;gap:12px;text-align:left}.modal-content .close-button{position:absolute;top:8px;right:8px;width:20px;height:20px;flex-shrink:0}}";const ft=class{constructor(e){t(this,e)}visible=true;languageUpdateTrigger=0;unsubscribeCurrentLocaleStore;autoCloseTimer;componentDidLoad(){this.unsubscribeCurrentLocaleStore=h.onChange("currentLocale",(()=>{this.languageUpdateTrigger++}));this.autoCloseTimer=b({duration:30,onComplete:()=>{this.closeModal()}});this.autoCloseTimer.start()}disconnectedCallback(){if(this.unsubscribeCurrentLocaleStore){this.unsubscribeCurrentLocaleStore()}if(this.autoCloseTimer){this.autoCloseTimer.stop()}}closeModal=()=>{this.visible=false;if(this.autoCloseTimer){this.autoCloseTimer.stop()}};render(){if(!this.visible)return null;return e("div",{class:"modal-overlay"},e("div",{class:"modal-content"},e("div",{class:"alert info filled medium"},e("div",{class:"alert-icon"},e("rebill-icon",{name:"circle-info",size:"16px",color:u.ORANGE})),e("div",{class:"alert-message"},e("div",{class:"alert-title"},e("rebill-typography",{variant:"subtitle-bold",color:u.PRIMARY_DARK},r.translate("session.refreshedTitle"))),e("div",{class:"alert-message-text"},e("rebill-typography",{variant:"subtitle2",color:u.PRIMARY_DARK},r.translate("session.refreshedMessage"))))),e("button",{onClick:this.closeModal,class:"close-button",type:"button"},e("rebill-icon",{name:"close",size:"20px"}))))}};ft.style=bt;const mt=":root{--rebill-color-primary:#3b82f6;--rebill-color-primary-light:rgba(59, 130, 246, 0.1);--rebill-color-primary-hover:#2563eb;--rebill-color-primary-dark-hover:#001c4a;--rebill-color-info-border:#0156f6;--rebill-color-info-text:#172b85;--rebill-color-link:#0056f6;--rebill-color-primary-dark:#001131;--rebill-color-primary-dark-text:#000000;--rebill-color-primary-dark-light:rgba(0, 17, 49, 0.1);--rebill-color-error:#ef4444;--rebill-color-error-background:#fef2f2;--rebill-color-error-light:rgba(239, 68, 68, 0.1);--rebill-color-error-dark:#6f101b;--rebill-color-background:#ffffff;--rebill-color-background-left:#fafafa;--rebill-color-background-right:#f4f5f6;--rebill-color-background-secondary:#f7f8fa;--rebill-color-border:#ebedef;--rebill-color-timeline-connector:#c4c8cf;--rebill-color-neutrals-700:#58616e;--rebill-color-neutrals-500:#9ca3af;--rebill-color-border-primary:#e4e4e7;--rebill-color-text-primary:#3b4049;--rebill-color-text-secondary:#6b7280;--rebill-color-grey-700:#7d7d7d;--rebill-color-text-secondary-light:#a1a1aa;--rebill-color-text-on-primary:#ffffff;--rebill-color-disabled:#9ca3af;--rebill-color-shadow:rgba(0, 0, 0, 0.1);--rebill-color-green:#10b981;--rebill-color-green-text:#257c67;--rebill-color-green-light:rgba(183, 233, 221, 0.15);--rebill-color-green-light-2:rgba(183, 233, 221, 1);--rebill-color-info-background:#d5e4ff;--rebill-color-background-secondary-light:#f7f8fa;--rebill-breakpoint-mobile:768px;--rebill-breakpoint-tablet:1024px;--rebill-breakpoint-desktop:1025px;--rebill-color-orange:#ff9400;--rebill-color-black:#1e2025;--rebill-color-grey-300:#3b4049;--rebill-color-grey-100:#aeaeae}.qr-container,.qr-image,.qr-image svg,.qr-image img,[class*='qr-'],[class*='success'],[class*='receipt']{transition:none !important;animation:none !important;will-change:auto !important}button:active,button:focus,button:hover{isolation:isolate}.success-page__text-content{margin-bottom:2rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.success-page__success-content{display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;overflow-x:hidden;box-sizing:border-box}.success-page__lottie-container{width:80px;height:80px}.success-page__success-content rebill-typography[variant='h3']{margin:0 !important;padding:0 !important}.success-page__success-icon{display:flex;justify-content:center;margin:0.5rem 0}.success-page__info-card{padding:24px;gap:16px;width:100%;max-width:450px;border:1px solid #ebedef;border-radius:8px;display:flex;flex-direction:column;box-sizing:border-box}.success-page__card-row{display:flex;justify-content:space-between;align-items:start;min-height:20px;gap:15%}.success-page__card-row:last-of-type{margin-bottom:0}.success-page__card-value{display:flex;align-items:center;gap:0.5rem}.success-page__payment-method-display{display:flex;align-items:center;gap:8px;justify-content:center}.success-page__payment-method-display rebill-card-icon{display:inline-block;flex-shrink:0;margin-right:8px;vertical-align:middle}.success-page__payment-method-display rebill-card-icon svg{display:block}.success-page__payment-method-display rebill-icon{display:inline-block;vertical-align:middle;margin-right:8px}.success-page__payment-method-display rebill-icon div{display:block}.success-page__card-divider{height:1px;background:#e5e7eb}.success-page__download-container{display:flex;align-items:center;justify-content:flex-start;gap:2px;text-decoration:none;cursor:pointer}.success-page__contact-info{text-align:left}.success-page__reference-number{word-break:break-all;overflow-wrap:break-word;hyphens:auto;max-width:100%;text-align:right}.success-page__total-amount-container{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-direction:row}.success-page__trial-pill{background-color:var(--rebill-color-green-light-2);border-radius:4px;padding:4px 6px 4px 6px;display:flex;align-items:center;justify-content:center}.success-page__next-charge-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.success-page__next-charge-details{display:flex;justify-content:space-between;align-items:flex-start}.success-page__next-charge-amount{display:flex;flex-direction:row;align-items:center;gap:4px}.success-page__next-charge-date{text-align:right}.success-page__next-charge-section{margin-top:12px;padding-top:12px}@media (max-width: 1024px){.success-page__success-content{max-width:100%;gap:1.5rem;margin-left:16px;margin-right:16px}.success-page__info-card{width:100%;max-width:100%;padding:12px}.success-page__text-content{gap:12px}}@media (max-width: 767px){.success-page__info-card{padding:12px}.success-page__processing-container{padding:0 16px}}";const yt=class{constructor(e){t(this,e);this.successRedirect=i(this,"successRedirect")}typePaymentMethod=p.CARD;country="";bank="";paymentMethodName="";cardLastFour="";paymentDate="";referenceNumber="";trialPeriodDays=0;debitDay=0;planAmount=0;currentLocale=o.currentLocale;breakpoint=f.DESKTOP;successRedirect;loaderProgress=0;isLoadingLottie=true;showRedirectMessage=false;timeToRedirect=3e3;progressInterval;lottieContainer;lottieAnimation;unsubscribeCurrentLocaleStore;successDisplayTimeout;applyStartCaseToBrand=t=>{if(!t)return"";return t.toLowerCase().split(/[\s-]+/).map((t=>t.charAt(0).toUpperCase()+t.slice(1))).join(" ")};getPaymentMethodConfig(t){const e=this.country?w(this.country):null;const i=e?.find((e=>e.type===t));const a=t===p.CASH&&this.country==="BR"?$(p.CASH,this.country)||r.translate("paymentMethods.cash"):r.translate("paymentMethods.cash");const s={[p.CARD]:{key:p.CARD,label:r.translate("paymentMethods.card"),icons:["doblecard"]},[p.CASH]:{key:p.CASH,label:a,icons:["pago-facil"]},[p.BANK_TRANSFER]:{key:p.BANK_TRANSFER,label:r.translate("paymentMethods.bank_transfer"),icons:["plus"]}};const n=s[t];return{...n,icons:i?.icons||n.icons}}getPaymentDate=()=>this.paymentDate||"";componentWillLoad(){this.breakpoint=y(window.innerWidth);this.unsubscribeCurrentLocaleStore=h.onChange("currentLocale",(()=>{this.currentLocale=o.currentLocale}));if(o.data?.itemInformation?.redirectSuccess){this.successDisplayTimeout=window.setTimeout((()=>{this.showRedirectMessage=true;this.loadLottieAnimation()}),1500);setTimeout((()=>{let t=o.data?.itemInformation?.redirectSuccess;if(t){this.successRedirect.emit({redirectUrl:t});this.stopLoaderAnimation()}}),this.timeToRedirect)}}componentDidLoad(){window.addEventListener("resize",this.handleResize);if(!o.data?.itemInformation?.redirectSuccess||this.showRedirectMessage){this.loadLottieAnimation()}}disconnectedCallback(){if(this.unsubscribeCurrentLocaleStore){this.unsubscribeCurrentLocaleStore()}if(this.successDisplayTimeout){clearTimeout(this.successDisplayTimeout)}window.removeEventListener("resize",this.handleResize);this.stopLoaderAnimation()}handleResize=()=>{this.breakpoint=y(window.innerWidth)};loadLottieAnimation=async()=>{try{const t=await import("./p-GK75wIKe.js").then((function(t){return t.l}));const e=await fetch(k(`loader-redirect1.json`));const i=await e.json();if(this.lottieContainer){this.lottieAnimation=t.default.loadAnimation({container:this.lottieContainer,renderer:"svg",loop:true,autoplay:true,animationData:i})}else{this.startLoaderAnimation()}}catch(t){this.startLoaderAnimation()}};startLoaderAnimation=()=>{const t=3e3;const e=50;const i=e/t*100;this.progressInterval=window.setInterval((()=>{this.loaderProgress=Math.min(this.loaderProgress+i,100);if(this.loaderProgress>=100){this.stopLoaderAnimation()}}),e)};stopLoaderAnimation=()=>{if(this.progressInterval){clearInterval(this.progressInterval);this.progressInterval=undefined}if(this.lottieAnimation){this.lottieAnimation.destroy();this.lottieAnimation=undefined}};handleDownloadReceipt=async()=>{try{await C.generateAndDownloadReceipt({paymentMethod:this.typePaymentMethod===p.CARD?this.textPaymentMethodCard():this.paymentMethodName,...this.typePaymentMethod===p.BANK_TRANSFER&&{bank:this.bank},...this.typePaymentMethod===p.CARD&&{cardBrand:this.applyStartCaseToBrand(o.data.cardInformation?.brand||"")},...this.typePaymentMethod===p.CARD&&{cardLastFour:this.cardLastFour??o.data.cardInformation?.lastFour},paymentDate:D(this.getPaymentDate())||D((new Date).toISOString()),email:o?.data?.userInformation?.email||"",referenceNumber:this.referenceNumber,productTitle:o?.data?.itemInformation?.title||"",subtotal:this.getFormattedSubtotal(),total:this.getFormattedTotal(),currency:o?.data?.pricing?.currency||" ",installments:o?.data?.pricing?.installments&&o?.data?.cardInformation?.installments?.selectedInstallment?`${x(o.data?.cardInformation?.installments?.selectedInstallment?.installment,_(o.data?.cardInformation?.installments?.selectedInstallment?.installmentAmount||0),o.data?.pricing?.currency,o.data?.cardInformation?.installments?.selectedInstallment?.cft,o.data?.cardInformation?.installments?.selectedInstallment?.model)}\n( ${r.translate("processing.purchaseTotal")}: ${this.getFormattedTotal()} )${o.data.cardInformation?.installments?.installments.find((t=>t.installment===o.data.cardInformation?.installments?.selectedInstallment?.installment))?.model===v.CUSTOMER_FINANCED?`\n${r.translate("installments.interest")}`:""}`:"",discountAmount:this.getFormattedDiscountAmount(),trialPeriodDays:this.trialPeriodDays||o.data?.itemInformation?.trial?.trialPeriodDays,debitDay:this.debitDay||o.data?.itemInformation?.debitDay,planAmount:this.getFormattedSubtotal(this.planAmount),trialEndDate:this.hasFreeTrial()?this.getTrialEndDateFormatted():undefined,debitDate:this.hasDebitDay()?this.getDebitDateFormatted():undefined,isBankTransfer:this.typePaymentMethod===p.BANK_TRANSFER})}catch(t){console.error("Error downloading receipt:",t)}};getFormattedDiscountAmount=()=>{if(o?.data?.pricing?.discountAmount>0){const t=c(o.data?.pricing?.discountAmount,o.data?.pricing?.currency);return`-${t}`}return undefined};getFormattedSubtotal=(t=null)=>c(t||o?.data?.pricing?.subtotal,o?.data?.pricing?.currency);getFormattedTotal=()=>{if(this.trialPeriodDays>0){return c(0,o?.data?.pricing?.currency)}return c(o?.data?.pricing?.total,o?.data?.pricing?.currency)};hasFreeTrial=()=>o.data?.itemInformation?.type===l.PLAN&&o.data?.itemInformation?.trial?.trialPeriodDays&&o.data?.itemInformation?.trial?.trialPeriodDays>0;hasDebitDay=()=>{const t=o.data?.itemInformation?.debitDay;return t&&t>0};getTrialEndDateFormatted=()=>{const t=o.data?.itemInformation?.trial?.trialPeriodEndsAt;if(!t)return"";const e=new Date(t);const i=r.getCurrentLanguage();const a=i==="es"?"es-ES":i==="pt"?"pt-BR":"en-US";if(i==="en"){return`${e.toLocaleDateString(a,{month:"long"})} ${e.getDate()}`}else{return`${e.getDate()} de ${e.toLocaleDateString(a,{month:"long"})}`}};getDebitDateFormatted=()=>{const t=o.data?.itemInformation?.debitDay;if(!t||t<=0)return"";const e=new Date;const i=new Date(e);const a=r.getCurrentLanguage();const s=a==="es"?"es-ES":a==="pt"?"pt-BR":"en-US";if(t<e.getDate()){i.setMonth(e.getMonth()+1)}i.setDate(t);while(i.getDate()!==t){i.setDate(i.getDate()-1)}if(a==="en"){return`${i.toLocaleDateString(s,{month:"long"})} ${i.getDate()}`}else{return`${i.getDate()} de ${i.toLocaleDateString(s,{month:"long"})}`}};textPaymentMethodCard=()=>{const t=o.data?.cardInformation?.brand;const e=this.cardLastFour||o?.data?.cardInformation?.lastFour;const i=this.applyStartCaseToBrand(t||"");return t&&e?`${i} - ${e}`:i};render(){const t=o.data?.itemInformation?.redirectSuccess;return e("rebill-checkout-single-column",{key:"40c28fe78a71c7f4008f6827bdeca330b4528092"},e("div",{key:"df2993dc3f25b060d11c4e3c3ffa59fc28fc3206",class:"success-page__success-content"},e("rebill-typography",{key:"16eb9c3133e75c4d52d1a096b6acff572ba93397",variant:"h3",color:u.PRIMARY_DARK_TEXT},t&&this.showRedirectMessage?r.translate("processing.redirectMessage"):r.translate("processing.successTitle")),t&&this.showRedirectMessage?e("div",{class:"redirect-message"},e("div",{class:"success-page__lottie-container"},e("div",{ref:t=>this.lottieContainer=t,class:"lottie-animation"}))):e("div",{class:"success-page__success-icon"},e("svg",{width:m(this.breakpoint,f.DESKTOP)?"64":"96",height:m(this.breakpoint,f.DESKTOP)?"64":"96",viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("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"}))),e("div",{key:"8cec829c088bbb82abbaee49bc8aa4b3ce0dd255",class:"success-page__info-card"},e("div",{key:"dd283e1c0b1913fbd07050c719dc5ffb566718cd",class:"success-page__card-row"},e("rebill-typography",{key:"0833d7e9d757cbb4adbef55c09e9f3fcb0e7e43d",variant:"body2",color:u.SECONDARY},r.translate("processing.paymentMethod")),e("div",{key:"dd5ea4f63a4153dc3c53e399686f65f605da1d16",class:"success-page__card-value"},e("div",{key:"4ddcedf9fffaee314059e160fee0982136d1e41c",class:"success-page__payment-method-display"},this.typePaymentMethod===p.CARD&&e(e.Fragment,null,e("rebill-card-icon",{key:"aa0ac5524b9e90e61dd7114a65f8f28b079f0de4","card-brand":o.data?.cardInformation?.brand||""}),e("rebill-typography",{key:"f04a885119d825569f57f26f321bf0e23a56e4b9",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.textPaymentMethodCard())),this.typePaymentMethod===p.BANK_TRANSFER&&e("div",{key:"4536311910dbae3dfaa32a587c6d2d62b671f83d",style:{display:"flex",alignItems:"center",gap:"8px"}},e("div",{key:"0970685dd7fec8a464034aac051fdf10c7f9342e",style:{display:"flex",alignItems:"center",gap:"8px"}},this.getPaymentMethodConfig(p.BANK_TRANSFER).icons.map((t=>e("rebill-icon",{name:t,size:"24px"})))),e("rebill-typography",{key:"5c22ec9417d4fec4b471a786e102cdce910966ab",variant:"body2",color:u.PRIMARY_DARK_TEXT},r.translate("paymentMethods.bank_transfer")))))),o?.data?.pricing?.installments&&o?.data?.cardInformation?.installments?.selectedInstallment&&e("div",{key:"c8085254470360967367e0c697d2173bbea246b0"},e("div",{key:"f0142820cf451ea6a4af79d514e5fc5a13ecce1c",class:"success-page__card-row"},e("rebill-typography",{key:"291b478d45874ff07ebebb62055bee17e8a502c4",variant:"body2",color:u.SECONDARY},r.translate("summary.installments")),e("div",{key:"0f368798d36647e712c8e17db732daa34886e0ee",style:{display:"flex",flexDirection:"column",gap:"10px",alignItems:"end"}},e("rebill-typography",{key:"e75c7ecdfeedfe8b6c9474c4550110dbc9704b66",variant:"body2",color:u.PRIMARY_DARK_TEXT,style:{textAlign:"end"}},x(o.data?.cardInformation?.installments?.selectedInstallment?.installment,_(o.data?.cardInformation?.installments?.selectedInstallment?.installmentAmount||0),o.data?.pricing?.currency,o.data?.cardInformation?.installments?.selectedInstallment?.cft,o.data?.cardInformation?.installments?.selectedInstallment?.model)),e("rebill-typography",{key:"d1e2feeb6c580ddd4fc53a70f367909388971fb4",variant:"body2",color:u.PRIMARY_DARK_TEXT},`( ${r.translate("processing.purchaseTotal")}: ${this.getFormattedTotal()} )`),o.data.cardInformation?.installments?.installments.find((t=>t.installment===o.data.cardInformation?.installments?.selectedInstallment?.installment))?.model===v.CUSTOMER_FINANCED&&e("rebill-typography",{key:"a7a0eb81b444782692034c9a5b18af1356b70c13",variant:"italic",color:u.SECONDARY,style:{textAlign:"end"}},`${r.translate("installments.interest")}`)))),e("div",{key:"f274d45449db12d99982218397b2258454c0e144",class:"success-page__card-row"},e("rebill-typography",{key:"3232ad074bcb725e0b5d289e215674781b643984",variant:"body2",color:u.SECONDARY},r.translate("processing.paymentDate")),e("rebill-typography",{key:"f39ed5c14ce3dbbd648a49ddfa1826aebfffc8e9",variant:"body2",color:u.PRIMARY_DARK_TEXT},D(this.paymentDate||this.getPaymentDate()||o.createdAt)||"")),e("div",{key:"e89db6cd5048b8649c01cc714e2aa62217e924ea",class:"success-page__card-row"},e("rebill-typography",{key:"88520367ed3df38494abc3b09fb32570d6047919",variant:"body2",color:u.SECONDARY},r.translate("processing.paymentEmail")),e("rebill-typography",{key:"3f7f5cb7488996247736e1f7dd0da9669547127c",variant:"body2",color:u.PRIMARY_DARK_TEXT},o?.data?.userInformation?.email)),e("div",{key:"204a54fcea6b69e52a9173c00b39b4c5c8a8f69d",class:"success-page__card-row"},e("rebill-typography",{key:"47e99f1191bf0f190d6076ff6419b7c4c0a63dfe",variant:"body2",color:u.SECONDARY},r.translate("processing.paymentReference")),e("rebill-typography",{key:"9f4df7031fcf007817b810c81de06ea0e3574b26",variant:"body2",color:u.PRIMARY_DARK_TEXT,class:"success-page__reference-number"},this.referenceNumber||""))),e("div",{key:"ec0e693b17b2982e6715bebfc1414a9f3fd015d0",class:"success-page__info-card"},e("rebill-typography",{key:"768e6846d0ad7c0b28aac797d3faa8b9c54178b2",variant:"subtitle-bold",color:u.PRIMARY_DARK_TEXT},r.translate("processing.purchaseDetails")),e("div",{key:"fac0b7a4391536ac9d0302ad5d0e28ccf80adc2b",class:"success-page__card-row"},e("rebill-typography",{key:"74616fc8881792094f4978542f619b7a92527ed2",variant:"body2",color:u.SECONDARY},r.translate("processing.purchaseDetail")),e("rebill-typography",{key:"ba1b24a2ad5736d5ee520046ec16905e48ef43b1",variant:"body2",color:u.PRIMARY_DARK_TEXT},o?.data?.itemInformation?.title||"")),!this.trialPeriodDays&&e("div",{key:"709715fe9019f8170a94a2fae4867110eddc57bc",class:"success-page__card-row"},e("rebill-typography",{key:"0bca6d6d2384ac460a58711707778b378613196c",variant:"body2",color:u.SECONDARY},r.translate("processing.purchaseSubtotal")),e("rebill-typography",{key:"fe0b41d30473d309c6a2f8c5b093a811c28dc2d0",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.getFormattedSubtotal())),o?.data?.pricing?.discountAmount>0&&e("div",{key:"f4e8db074e120f7d2a5c4ed8b2e1f787ede63f35",class:"success-page__card-row"},e("rebill-typography",{key:"8d64ba931d3eb8f9d1b37e220a7ff96109562485",variant:"body2",color:u.SECONDARY},r.translate("summary.discount")),e("rebill-typography",{key:"9905b27eafda074b6ecf3e90559a9163a28653cd",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.getFormattedDiscountAmount())),e("div",{key:"f4ea5720468f9880af8913450fc33827f714bf22",class:"success-page__card-row"},e("rebill-typography",{key:"0cbf99f711ec2834536f0471b6b4529802794fe8",variant:"body2",color:u.SECONDARY},r.translate("processing.purchaseMontoTotal")),e("div",{key:"4f2c420ae59327d608d69979d1c369d4399c512c",class:"success-page__total-amount-container"},this.trialPeriodDays>0&&e("div",{key:"f118c9433a8f0ec5e0c357b983b93ba7cf3165b2",class:"success-page__trial-pill"},e("rebill-typography",{key:"fc0454a0c8a968354e880421bf458c09076a4f4d",variant:"body2",align:"center",color:u.GREEN_TEXT},r.translate("processing.trialPill",{days:this.trialPeriodDays,count:this.trialPeriodDays}))),e("rebill-typography",{key:"837ad00c79574053f36059139673056745283433",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.getFormattedTotal()))),(this.trialPeriodDays||this.hasDebitDay())&&e("div",{key:"5fe0d5808fa641b824117396d2f71669174aae2f",class:"success-page__card-divider"}),(this.hasFreeTrial()||this.hasDebitDay())&&e("div",{key:"4a868029e9ac7fe6a54aa34daa5542437b31f624",class:"success-page__next-charge-section"},e("div",{key:"386cdf33df917b23ba3ba295a08b2948fb0be9a7",class:"success-page__next-charge-header"},e("rebill-typography",{key:"6f3f562beb70ef93120f15372312c264550f7f47",variant:"subtitle-bold",color:u.PRIMARY_DARK_TEXT},r.translate("processing.nextCharge")),e("rebill-typography",{key:"46b630206d284af7a75c33619dc5fe6300ea388e",variant:"subtitle-bold",color:u.PRIMARY_DARK_TEXT},r.translate("processing.onDate",{date:this.hasFreeTrial()?this.getTrialEndDateFormatted():this.getDebitDateFormatted()}))),e("div",{key:"b1919b98e0facc9d8e68c2905e967bf6d90415b9",class:"success-page__card-row"},e("rebill-typography",{key:"b0c85dd9fe6adf2b4e014741b6b098f27cf9f552",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.hasFreeTrial()?r.translate("processing.atEndOfTrial"):""),e("rebill-typography",{key:"6af4c69ad3b293b2c0af703971e67c8c14bd96e6",variant:"body2",color:u.PRIMARY_DARK_TEXT},this.getFormattedSubtotal(this.planAmount)," ",r.translate("processing.perMonth")))),e("div",{key:"16fd48938a356debc1251f2f6d95dc5bda747b99",class:"success-page__card-divider"}),e("div",{key:"8e74365a032079c54e13581c583f2d808f3e504c",class:"success-page__download-container"},e("svg",{key:"e89ec4816ee4344a518287ba6fe6431309ca49b3",class:"download-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("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"})),e("rebill-button",{key:"81cc88001158130315bb70af6e76dc37d8cebf19",type:"button",variant:"download",size:"small",onClick:this.handleDownloadReceipt},e("rebill-typography",{key:"1566d391c697d99c31d991b964e649fba7866a07",variant:"overline",color:u.PRIMARY_DARK_TEXT},r.translate("processing.download")))),e("div",{key:"fd6402104418368520b007ea3e6ddd305431e0e9",class:"success-page__contact-info"},e("rebill-typography",{key:"00c8d50544a1653bc0c8fbad649f525e475f04f1",variant:"information-text",color:u.SECONDARY},r.translate("processing.downloadDescription"))))))}};yt.style=mt;const gt=":host{display:block}.inputs-container{display:flex;flex-direction:column;gap:16px;width:100%}.customer-exists{display:flex;justify-content:flex-end;margin-bottom:16px}";const xt=class{constructor(e){t(this,e);this.onRebillAccountClick=i(this,"onRebillAccountClick")}userInformation={email:"",fullName:"",countryCode:""};errors=null;customerExists=false;disabled=false;onRebillAccountClick;translateError(t){if(!t)return"";if(t.includes("validation.")||t.includes("paymentErrors.")){return r.translate(t)}return t}handleInputChange(t){if(!t.detail)return;const{id:e,value:i}=t.detail;h.setUserInformation({[e]:i})}handleBlur(t){if(!t.detail)return;const{id:e,value:i}=t.detail;h.setUserInformation({[e]:i})}getCardLabels(){const t=[];if(o.data.prefilledData.email){t.push({label:r.translate("userInformation.emailPlaceholder"),value:o.data.prefilledData.email});h.setUserInformation({...o.data.userInformation,email:o.data.prefilledData.email})}if(o.data.prefilledData.fullName){t.push({label:r.translate("userInformation.fullNamePlaceholder"),value:o.data.prefilledData.fullName});h.setUserInformation({...o.data.userInformation,fullName:o.data.prefilledData.fullName})}return t}async handleRebillAccountClick(){s.otp.generate(o.data.sessionId,{email:o.data.userInformation.email});this.onRebillAccountClick.emit(true)}renderInputs(){const t=o.data.prefilledData.email;const i=o.data.prefilledData.fullName;const a=[];if(!t){a.push(e("rebill-input-text",{id:"email",variant:"floating",label:r.translate("userInformation.emailPlaceholder"),placeholder:r.translate("userInformation.emailPlaceholder"),"left-icon":"email",clearable:true,disabled:this.disabled,error:this.translateError(this.errors?.email)}))}if(!i){a.push(e("rebill-input-text",{id:"fullName",variant:"floating",label:r.translate("userInformation.fullNamePlaceholder"),placeholder:r.translate("userInformation.fullNamePlaceholder"),disabled:this.disabled,error:this.translateError(this.errors?.fullName)}))}return a.length>0?e("div",{class:"inputs-container",style:{marginTop:a.length>0&&(t||i)?"1rem":"0"}},a):null}render(){const t=e("div",{key:"4a9fcb1b8dab46fbe80c4b2a35d053d45687d103",class:"customer-exists"},e("rebill-button",{key:"5d4a6bb913f5311e0d12e1599fe9ef9ba4ccd6e7",style:{visibility:this.customerExists?"visible":"hidden",opacity:this.customerExists?"1":"0",transition:"opacity 0.3s ease-in-out"},variant:"text",size:"small",onClick:()=>this.handleRebillAccountClick(),icon:"lock"},r.translate("userInformation.rebillAccount"),e("rebill-icon",{key:"0bb16b22cf0d7e56adc5264973ef119da9e4b790",name:"arrow-right"})));const i=o.data.prefilledData.email;const s=o.data.prefilledData.fullName;const n=i||s;return e(a,{key:"77a74a3d624d9529a6555777adefbf7aa553d89a"},t,n&&e("rebill-card",{key:"f465c928465d4dd7b713c80ccfb6cdd3cda3d186",cardTitle:r.translate("userInformation.personalInformation"),cardLabels:this.getCardLabels()}),this.renderInputs())}};xt.style=gt;export{ut as otp_component,ft as rebill_modal_overlay,ht as rebill_summary,yt as success_page,xt as user_information};
|
|
2
|
+
//# sourceMappingURL=p-26d57782.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,h as s}from"./p-BTZ7D7jU.js";const e=class{constructor(s){t(this,s)}direction="row";wrap="nowrap";gap="1rem";alignItems="stretch";justifyContent="start";render(){const t={display:"flex",flexDirection:this.direction,flexWrap:this.wrap,gap:this.gap,alignItems:this.alignItems,justifyContent:this.justifyContent,width:"100%"};return s("div",{key:"41bcd76dd7433598fa5b9fffa856141fcd77f585",style:t},s("slot",{key:"37224fd7d1b11b10cd73955ccdfde6328ff83c16"}))}};export{e as rebill_flex_container};
|
|
2
|
+
//# sourceMappingURL=p-2c464942.entry.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as t,c as e,d as i,h as o}from"./p-BTZ7D7jU.js";const s=".otp-container{display:flex;flex-direction:column;align-items:center;gap:16px;width:100%;margin:0 auto}.otp-input-container{display:flex;align-items:center;gap:16px;margin-top:8px}.otp-fields{display:flex;gap:8px;align-items:center}.otp-field{width:36px;height:36px;border:2px solid #e5e7eb;border-radius:8px;display:flex;align-items:center;justify-content:center;transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1);background:white;position:relative}.otp-field.active{border-color:var(--rebill-color-primary-hover);transform:scale(1.02);transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1)}.otp-field input{width:100%;height:100%;border:none;text-align:center;font-size:12px;color:var(--rebill-color-text-primary);background:transparent;outline:none;transition:all 0.3s ease;caret-color:transparent}.otp-field input{transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1)}.otp-field input::placeholder{color:var(--rebill-color-text-secondary);transition:opacity 0.3s ease,\n color 0.3s ease}.otp-field input:focus::placeholder{opacity:0;transition:opacity 0.3s ease}.otp-field{transition:all 0.3s cubic-bezier(0.4, 0, 0.2, 1)}.otp-separator{font-size:18px;font-weight:500;color:#6b7280;margin:4px;user-select:none;line-height:1;display:flex;align-items:center}.otp-error{color:var(--rebill-color-error);font-size:14px;font-weight:400}.otp-field.error{border-color:var(--rebill-color-error);border-width:1px}";const r=class{constructor(i){t(this,i);this.otpChange=e(this,"otpChange")}get el(){return i(this)}error="";otp="";clearable=false;placeholder="";otpChange;otpValue="";componentWillLoad(){this.otpValue=this.otp}componentWillUpdate(){if(this.otp!==this.otpValue){this.otpValue=this.otp}}handleOtpChange(t){this.otpValue=t;this.otpChange.emit(t)}findFirstEmptyIndex(){for(let t=0;t<6;t++){if(!this.otpValue[t]){return t}}return 5}focusField(t){const e=this.el?.querySelectorAll(".otp-field input");if(e&&e[t]){e[t].focus()}}handleFieldClick=()=>{const t=this.findFirstEmptyIndex();this.focusField(t)};handleInputClick=()=>{this.handleFieldClick()};handleKeyDown=(t,e)=>{if(t.key==="Backspace"){const i=t.target;if(!i.value&&e>0){t.preventDefault();const i=this.otpValue.split("");i[e-1]="";this.handleOtpChange(i.join(""));setTimeout((()=>{this.focusField(e-1)}),0)}else if(i.value){const t=this.otpValue.split("");t[e]="";this.handleOtpChange(t.join(""))}}};handleInput=(t,e)=>{const i=t.target;const o=i.value;if(!/^\d*$/.test(o)){i.value="";return}const s=this.otpValue.split("");s[e]=o;this.handleOtpChange(s.join(""));if(o&&e<5){setTimeout((()=>{this.focusField(e+1)}),0)}};handlePaste=t=>{t.preventDefault();const e=t.clipboardData?.getData("text/plain")||"";const i=e.replace(/\D/g,"");if(i.length>=6){const t=i.substring(0,6);this.handleOtpChange(t);this.focusField(5)}else if(i.length>0){const t=this.otpValue.split("");for(let e=0;e<Math.min(i.length,6);e++){t[e]=i[e]}this.handleOtpChange(t.join(""));const e=Math.min(i.length,5);this.focusField(e)}};render(){return o("div",{key:"65079854b05784b0266b1876aeb1edff4269c632",class:"otp-container"},o("div",{key:"1705207ae6c34d53f8a3c3da7394651209097225",class:"email-icon"},o("rebill-icon",{key:"26f6b3b59b95208e475035408498ffe453b37a4a",name:"invite"})),o("div",{key:"a250c8a27ab6fda719919ce80dcb0ca335506465",class:"otp-input-container",onClick:this.handleFieldClick},o("div",{key:"e26733332d9da3a0d44ba779e0f1915a94597aa4",class:"otp-fields"},[0,1,2,3,4,5].map((t=>o("div",{key:t,style:{display:"flex",alignItems:"center"}},o("div",{class:`otp-field ${this.error?"error":""}`},o("input",{type:"text",maxlength:"1",placeholder:this.placeholder,value:this.otpValue[t]||"",onInput:e=>this.handleInput(e,t),onClick:()=>this.handleInputClick(),onKeyDown:e=>this.handleKeyDown(e,t),onPaste:t=>this.handlePaste(t),onFocus:t=>{this.el?.querySelectorAll(".otp-field").forEach((t=>t.classList.remove("active")));t.target.parentElement?.classList.add("active")},onBlur:t=>{t.target.parentElement?.classList.remove("active")}})),t===2&&o("div",{class:"otp-separator"},"-")))))),this.error&&o("div",{key:"9d97735d8ccc557556c6a0c570173b22f6625660",class:"otp-error"},this.error))}};r.style=s;export{r as input_otp};
|
|
2
|
+
//# sourceMappingURL=p-37ce3457.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as i,h as e}from"./p-BTZ7D7jU.js";import{C as r,c as d}from"./p-C5Pu-n-i.js";const t=".rebill-vertical-divider{width:var(--divider-thickness, 1px);height:100%;color:var(--divider-color, #c4c8cf);border-left:var(--divider-thickness, 1px) solid var(--divider-color, #c4c8cf);padding:0;background:none;flex-shrink:0}.rebill-vertical-divider[style*='--divider-dashed: 2 2']{border-left-style:dashed;border-left-width:var(--divider-thickness, 1px);border-left-color:var(--divider-color, #c4c8cf)}.rebill-vertical-divider.dashed{border-left-style:dashed}.rebill-vertical-divider.connectorActive{border-left:var(--divider-thickness, 1px) solid var(--divider-color, #0056f6);background:none}.rebill-vertical-divider.with-dot{border-left:var(--divider-thickness, 1px) solid var(--divider-color, #0056f6);background:none;position:relative;}.rebill-vertical-divider.with-dot::after{content:'';position:absolute;bottom:-3px;left:50%;transform:translateX(-65%);width:6px;height:6px;background:var(--divider-color, #0056f6);border-radius:50%}";const o=class{constructor(e){i(this,e)}height;color=r.TIMELINE_CONNECTOR;thickness="1px";dashed=false;connectorActive=false;withDot=false;render(){return e("div",{key:"
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as i,h as e}from"./p-BTZ7D7jU.js";import{C as r,c as d}from"./p-C5Pu-n-i.js";const t=".rebill-vertical-divider{width:var(--divider-thickness, 1px);height:100%;color:var(--divider-color, #c4c8cf);border-left:var(--divider-thickness, 1px) solid var(--divider-color, #c4c8cf);padding:0;background:none;flex-shrink:0}.rebill-vertical-divider[style*='--divider-dashed: 2 2']{border-left-style:dashed;border-left-width:var(--divider-thickness, 1px);border-left-color:var(--divider-color, #c4c8cf)}.rebill-vertical-divider.dashed{border-left-style:dashed}.rebill-vertical-divider.connectorActive{border-left:var(--divider-thickness, 1px) solid var(--divider-color, #0056f6);background:none}.rebill-vertical-divider.with-dot{border-left:var(--divider-thickness, 1px) solid var(--divider-color, #0056f6);background:none;position:relative;}.rebill-vertical-divider.with-dot::after{content:'';position:absolute;bottom:-3px;left:50%;transform:translateX(-65%);width:6px;height:6px;background:var(--divider-color, #0056f6);border-radius:50%}";const o=class{constructor(e){i(this,e)}height;color=r.TIMELINE_CONNECTOR;thickness="1px";dashed=false;connectorActive=false;withDot=false;render(){return e("div",{key:"3d7bfe6346cf967a5722784f0585887d1ed48d9d",class:`rebill-vertical-divider ${this.dashed?"dashed":""} ${this.connectorActive?"connectorActive":""} ${this.withDot?"with-dot":""}`,style:{"--divider-color":d(this.color),"--divider-thickness":this.thickness,"--divider-dashed":this.dashed?"2 2":"none",height:this.height||(this.connectorActive?"27px":"40px")}})}};o.style=t;export{o as rebill_vertical_divider};
|
|
2
|
+
//# sourceMappingURL=p-4355b35a.entry.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as e,c as a,g as r,h as c}from"./p-BTZ7D7jU.js";import{P as i,I as o,f as s}from"./p-Bkzz9eGU.js";import{r as t}from"./p-CgrJ7D7V.js";import{B as l,g as n,i as d}from"./p-Do_vNuMa.js";import{C as b}from"./p-C5Pu-n-i.js";import{g as f,a as p}from"./p-pXX5rSDt.js";import{P as y}from"./p-DUn0QSYi.js";import{f as g}from"./p-D2fDSwuH.js";import"./p-E-ZsRS8r.js";import"./p-DWY12C3E.js";const h=":root{--rebill-color-primary:#3b82f6;--rebill-color-primary-light:rgba(59, 130, 246, 0.1);--rebill-color-primary-hover:#2563eb;--rebill-color-primary-dark-hover:#001c4a;--rebill-color-info-border:#0156f6;--rebill-color-info-text:#172b85;--rebill-color-link:#0056f6;--rebill-color-primary-dark:#001131;--rebill-color-primary-dark-text:#000000;--rebill-color-primary-dark-light:rgba(0, 17, 49, 0.1);--rebill-color-error:#ef4444;--rebill-color-error-background:#fef2f2;--rebill-color-error-light:rgba(239, 68, 68, 0.1);--rebill-color-error-dark:#6f101b;--rebill-color-background:#ffffff;--rebill-color-background-left:#fafafa;--rebill-color-background-right:#f4f5f6;--rebill-color-background-secondary:#f7f8fa;--rebill-color-border:#ebedef;--rebill-color-timeline-connector:#c4c8cf;--rebill-color-neutrals-700:#58616e;--rebill-color-neutrals-500:#9ca3af;--rebill-color-border-primary:#e4e4e7;--rebill-color-text-primary:#3b4049;--rebill-color-text-secondary:#6b7280;--rebill-color-grey-700:#7d7d7d;--rebill-color-text-secondary-light:#a1a1aa;--rebill-color-text-on-primary:#ffffff;--rebill-color-disabled:#9ca3af;--rebill-color-shadow:rgba(0, 0, 0, 0.1);--rebill-color-green:#10b981;--rebill-color-green-text:#257c67;--rebill-color-green-light:rgba(183, 233, 221, 0.15);--rebill-color-green-light-2:rgba(183, 233, 221, 1);--rebill-color-info-background:#d5e4ff;--rebill-color-background-secondary-light:#f7f8fa;--rebill-breakpoint-mobile:768px;--rebill-breakpoint-tablet:1024px;--rebill-breakpoint-desktop:1025px;--rebill-color-orange:#ff9400;--rebill-color-black:#1e2025;--rebill-color-grey-300:#3b4049;--rebill-color-grey-100:#aeaeae}.qr-container,.qr-image,.qr-image svg,.qr-image img,[class*='qr-'],[class*='success'],[class*='receipt']{transition:none !important;animation:none !important;will-change:auto !important}button:active,button:focus,button:hover{isolation:isolate}.renewal-success-page__success-content{display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;overflow-x:hidden;box-sizing:border-box}.renewal-success-page__success-content rebill-typography[variant='h3']{margin:0 !important;padding:0 !important}.renewal-success-page__success-icon{display:flex;justify-content:center;margin:0.5rem 0}.renewal-success-page__info-card{padding:24px;gap:16px;width:100%;max-width:450px;border:1px solid #ebedef;border-radius:8px;display:flex;flex-direction:column;box-sizing:border-box}.renewal-success-page__card-row{display:flex;justify-content:space-between;align-items:start;min-height:20px;gap:15%}.renewal-success-page__card-row:last-of-type{margin-bottom:0}.renewal-success-page__card-value{display:flex;align-items:center;gap:0.5rem}.renewal-success-page__payment-method-display{display:flex;align-items:center;gap:8px;justify-content:center}.renewal-success-page__payment-method-display rebill-card-icon{display:inline-block;flex-shrink:0;margin-right:8px;vertical-align:middle}.renewal-success-page__payment-method-display rebill-card-icon svg{display:block}.renewal-success-page__payment-method-display rebill-icon{display:inline-block;vertical-align:middle;margin-right:8px}.renewal-success-page__payment-method-display rebill-icon div{display:block}.renewal-success-page__card-divider{height:1px;background:#e5e7eb}.renewal-success-page__download-container{display:flex;align-items:center;justify-content:flex-start;gap:2px;text-decoration:none;cursor:pointer}.renewal-success-page__contact-info{text-align:left}.renewal-success-page__reference-number{word-break:break-all;overflow-wrap:break-word;hyphens:auto;max-width:100%;text-align:right}.renewal-success-page__total-amount-container{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-direction:row}@media (max-width: 1024px){.renewal-success-page__success-content{max-width:100%;gap:1.5rem;margin-left:16px;margin-right:16px}.renewal-success-page__info-card{width:100%;max-width:100%;padding:12px}}@media (max-width: 767px){.renewal-success-page__info-card{padding:12px}}";const u=class{constructor(r){e(this,r);this.successRedirect=a(this,"successRedirect")}typePaymentMethod=i.CARD;country="";bank="";paymentMethodName="";cardLastFour="";paymentDate="";referenceNumber="";trialPeriodDays=0;debitDay=0;planAmount=0;currentLocale="es";breakpoint=l.DESKTOP;successRedirect;loaderProgress=0;isLoadingLottie=true;showRedirectMessage=false;timeToRedirect=3e3;progressInterval;lottieContainer;lottieAnimation;successDisplayTimeout;applyStartCaseToBrand=e=>{if(!e)return"";return e.toLowerCase().split(/[\s-]+/).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ")};getPaymentMethodConfig(e){const a=this.country?f(this.country):null;const r=a?.find((a=>a.type===e));const c=e===i.CASH&&this.country==="BR"?p(i.CASH,this.country)||o.translate("paymentMethods.cash"):o.translate("paymentMethods.cash");const s={[i.CARD]:{key:i.CARD,label:o.translate("paymentMethods.card"),icons:["card"]},[i.CASH]:{key:i.CASH,label:c,icons:["pago-facil"]},[i.BANK_TRANSFER]:{key:i.BANK_TRANSFER,label:o.translate("paymentMethods.bank_transfer"),icons:["plus"]}};const t=s[e];return{...t,icons:r?.icons||t.icons}}getPaymentDate=()=>this.paymentDate||"";componentWillLoad(){this.breakpoint=n(window.innerWidth);if(this.showRedirectMessage){this.successDisplayTimeout=window.setTimeout((()=>{this.showRedirectMessage=true;this.loadLottieAnimation()}),1500);setTimeout((()=>{this.stopLoaderAnimation()}),this.timeToRedirect)}}componentDidLoad(){window.addEventListener("resize",this.handleResize);if(!this.showRedirectMessage){this.loadLottieAnimation()}}disconnectedCallback(){if(this.successDisplayTimeout){clearTimeout(this.successDisplayTimeout)}window.removeEventListener("resize",this.handleResize);this.stopLoaderAnimation()}handleResize=()=>{this.breakpoint=n(window.innerWidth)};loadLottieAnimation=async()=>{try{const e=await import("./p-GK75wIKe.js").then((function(e){return e.l}));const a=await fetch(r(`./assets/loader-redirect1.json`));const c=await a.json();if(this.lottieContainer){this.lottieAnimation=e.default.loadAnimation({container:this.lottieContainer,renderer:"svg",loop:true,autoplay:true,animationData:c})}else{this.startLoaderAnimation()}}catch(e){this.startLoaderAnimation()}};startLoaderAnimation=()=>{const e=3e3;const a=50;const r=a/e*100;this.progressInterval=window.setInterval((()=>{this.loaderProgress=Math.min(this.loaderProgress+r,100);if(this.loaderProgress>=100){this.stopLoaderAnimation()}}),a)};stopLoaderAnimation=()=>{if(this.progressInterval){clearInterval(this.progressInterval);this.progressInterval=undefined}if(this.lottieAnimation){this.lottieAnimation.destroy();this.lottieAnimation=undefined}};handleDownloadReceipt=async()=>{try{await y.generateAndDownloadReceipt({paymentMethod:this.typePaymentMethod===i.CARD?this.textPaymentMethodCard():this.paymentMethodName,...this.typePaymentMethod===i.BANK_TRANSFER&&{bank:this.bank},...this.typePaymentMethod===i.CARD&&{cardBrand:this.applyStartCaseToBrand(t.data.cardInformation?.brand||"")},...this.typePaymentMethod===i.CARD&&{cardLastFour:this.cardLastFour??t.data.cardInformation?.lastFour},paymentDate:g(this.getPaymentDate())||g((new Date).toISOString()),email:t.data.subscription.customerEmail||"",referenceNumber:this.referenceNumber,productTitle:t.data.subscription.name[0]?.text||"Subscription",subtotal:s(t.data.subscription.subTotalAmount,t.data.price.currency),total:s(t.data.price.amount,t.data.price.currency),currency:t.data.price.currency||" ",...this.getDiscountAmountValue()>0&&{discountAmount:s(this.getDiscountAmountValue(),t.data.price.currency)},trialPeriodDays:this.trialPeriodDays,debitDay:this.debitDay,planAmount:s(this.planAmount,t.data.price.currency),isBankTransfer:this.typePaymentMethod===i.BANK_TRANSFER})}catch(e){console.error("Error downloading receipt:",e)}};getDiscountAmountValue=()=>{if(t?.data?.price?.amount<t?.data?.subscription?.subTotalAmount){return t?.data?.subscription?.subTotalAmount-t?.data?.price?.amount}return 0};hasDiscount=()=>this.getDiscountAmountValue()>0;textPaymentMethodCard=()=>{const e=t.data?.cardInformation?.brand;const a=this.cardLastFour||t.data?.cardInformation?.lastFour;const r=this.applyStartCaseToBrand(e||"");return e&&a?`${r} - ${a}`:r};render(){return c("rebill-checkout-single-column",{key:"0648e67cf19a5ec7de833a7421b357f5d78dccc6"},c("div",{key:"98e4cf0928f19a0b3fde2a4e21f3faf9442f50b8",class:"renewal-success-page__success-content"},c("rebill-typography",{key:"cfc1e467be4920c821e82be60a0119dc7f18358a",variant:"h3",color:b.PRIMARY_DARK_TEXT},o.translate("processing.successTitle")),c("div",{key:"7195eed214f8b9bffabda50a0df6cbb9d958e0ee",class:"renewal-success-page__success-icon"},c("svg",{key:"a292d322c3d2ef7307a937006bfd5753d7d68867",width:d(this.breakpoint,l.DESKTOP)?"64":"96",height:d(this.breakpoint,l.DESKTOP)?"64":"96",viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{key:"d8da8740054219e48c2fee0e6875e1157a517a83","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"}))),c("div",{key:"d0c581d3c1f43c0165ea23024162f0fb9696e362",class:"renewal-success-page__info-card"},c("div",{key:"c7d4d856c7c8fc972a453e258c360405f7eeefff",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"4ec71629ae073f9219406960ccff4bb35391532b",variant:"body2",color:b.SECONDARY},o.translate("processing.paymentMethod")),c("div",{key:"96283a0620c1261c42bbffebdbb0809fd260f507",class:"renewal-success-page__card-value"},c("div",{key:"82ab4579168d625fc0290d7e51f70d55ef3f3f61",class:"renewal-success-page__payment-method-display"},this.typePaymentMethod===i.CARD&&c(c.Fragment,null,c("rebill-card-icon",{key:"27dc1da90440e49dca23a64cf9237e2e0b86a14d","card-brand":t.data?.cardInformation?.brand||""}),c("rebill-typography",{key:"194216f9ddc335c9ad0c1d8da55e01eabc720980",variant:"body2",color:b.PRIMARY_DARK_TEXT},this.textPaymentMethodCard())),this.typePaymentMethod===i.BANK_TRANSFER&&c("div",{key:"39fe357f121aa3afadcbb8bf262d4e02fadc29c1",style:{display:"flex",alignItems:"center",gap:"8px"}},c("div",{key:"b5c8a08f8bc3813e29e534bdb5ad1e9132fdc495",style:{display:"flex",alignItems:"center",gap:"8px"}},this.getPaymentMethodConfig(i.BANK_TRANSFER).icons.map((e=>c("rebill-icon",{name:e,size:"24px"})))),c("rebill-typography",{key:"e0bf3452b7cc91f3a5fc609656c01999d1482f1c",variant:"body2",color:b.PRIMARY_DARK_TEXT},o.translate("paymentMethods.bank_transfer")))))),c("div",{key:"0b1f6234eca45a102e627ec5f309425754b6f6fd",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"b25b3199407ecc82f0f9b0984d34e9313d62d05f",variant:"body2",color:b.SECONDARY},o.translate("processing.paymentDate")),c("rebill-typography",{key:"112d106fe960bcbca6aaee3b6b8df4b2f7412f26",variant:"body2",color:b.PRIMARY_DARK_TEXT},g(this.paymentDate||this.getPaymentDate())||"")),c("div",{key:"291f7e550188e84f3275729a38eb256dff3b4ec3",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"29a4222ac0abd91df2a53f2f4e1bad04cc6a4f6d",variant:"body2",color:b.SECONDARY},o.translate("processing.paymentEmail")),c("rebill-typography",{key:"2e4d539c78e917c17458abdc7b6a5a2f8f2a43fe",variant:"body2",color:b.PRIMARY_DARK_TEXT},t.data.subscription.customerEmail)),c("div",{key:"73933b82e9f12616ca7e2eb5a9691fcc70e7908e",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"564adc1ca46f4e37a7bc2e128125efa5b9e4c7f4",variant:"body2",color:b.SECONDARY},o.translate("processing.paymentReference")),c("rebill-typography",{key:"075025835b6634e8462f86038730f67cd38756f9",variant:"body2",color:b.PRIMARY_DARK_TEXT,class:"renewal-success-page__reference-number"},this.referenceNumber||""))),c("div",{key:"60fc2d47fbe0538ff389e372e358f1b594c408f2",class:"renewal-success-page__info-card"},c("rebill-typography",{key:"e8026990e733a748e0c3ae3bdc40746e33b4f78f",variant:"subtitle-bold",color:b.PRIMARY_DARK_TEXT},o.translate("processing.purchaseDetails")),c("div",{key:"30f773b6ec8e9428c8fa025b7040a3efa02e56f1",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"93021283c1fae04864c81827309f9ee8d1d3a2c7",variant:"body2",color:b.SECONDARY},o.translate("processing.purchaseDetail")),c("rebill-typography",{key:"811c73fedbb22b69ff19643e626a5b646a027ff7",variant:"body2",color:b.PRIMARY_DARK_TEXT},t.data.subscription.name[0]?.text||"Subscription")),c("div",{key:"4560894326adf0d5bd9ead13de9c8671719de1b5",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"d15af8f14b154f7ec0393869a642cbe25cdfba4c",variant:"body2",color:b.SECONDARY},o.translate("processing.purchaseSubtotal")),c("rebill-typography",{key:"1c22b3abac80887ce2083ad7747374e595eef7d2",variant:"body2",color:b.PRIMARY_DARK_TEXT},s(t.data.subscription.subTotalAmount,t.data.price.currency))),this.hasDiscount()&&c("div",{key:"8fbdbe15d94d84c9886e7e07856aa772c633029e",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"be6663fb9e89da8a2249be834722e140c4bd7ea5",variant:"body2",color:b.SECONDARY},o.translate("summary.discount")),c("rebill-typography",{key:"919917dd1344e7136894a59470292890857e19fb",variant:"body2",color:b.PRIMARY_DARK_TEXT},s(this.getDiscountAmountValue(),t.data.price.currency))),c("div",{key:"91c9a6dab0b72bfe99130cfeea9ffc5863f80571",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"82850f52eca94224850cb6ac13d434f7ff8a97e4",variant:"body2",color:b.SECONDARY},o.translate("processing.purchaseMontoTotal")),c("div",{key:"abc2aaab534e121f50168a7d9c809c2391aa1140",class:"renewal-success-page__total-amount-container"},c("rebill-typography",{key:"21b3253461283cfb82193c6c58dc8599a4efe614",variant:"body2",color:b.PRIMARY_DARK_TEXT},s(t.data.price.amount,t.data.price.currency)))),c("div",{key:"ccc0f72a2720a3c8871d95ed5e6838c54ec1c963",class:"renewal-success-page__card-divider"}),c("div",{key:"b893bff89ce0c7d24f6d1adfe70b86a885cdf159",class:"renewal-success-page__download-container"},c("svg",{key:"1d3b26fc5a7649edd9be292b71c8d1cea026513c",class:"download-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{key:"b77fcdb351eaa403dfbb4cdff1fde9ac0aafe514",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"})),c("rebill-button",{key:"ef772307a9d69070907c2a944c227d44bc728aab",type:"button",variant:"download",size:"small",onClick:this.handleDownloadReceipt},c("rebill-typography",{key:"5e0e6d102413bf91f433fca1ffa937500174625d",variant:"overline",color:b.PRIMARY_DARK_TEXT},o.translate("processing.download")))),c("div",{key:"e81b27b02ec1bd7a5fcac1713b511485207f8411",class:"renewal-success-page__contact-info"},c("rebill-typography",{key:"aad6fda656c22a151f3cf3d1ba25ebe6f1846b9a",variant:"information-text",color:b.SECONDARY},o.translate("processing.downloadDescription"))))))}};u.style=h;export{u as renewal_success_page};
|
|
2
|
-
//# sourceMappingURL=p-
|
|
1
|
+
import{r as e,c as a,g as r,h as c}from"./p-BTZ7D7jU.js";import{P as i,I as o,f as s}from"./p-Bkzz9eGU.js";import{r as t}from"./p-CgrJ7D7V.js";import{B as l,g as n,i as d}from"./p-Do_vNuMa.js";import{C as b}from"./p-C5Pu-n-i.js";import{g as p,a as f}from"./p-pXX5rSDt.js";import{P as y}from"./p-DUn0QSYi.js";import{f as g}from"./p-D2fDSwuH.js";import"./p-E-ZsRS8r.js";import"./p-DWY12C3E.js";const h=":root{--rebill-color-primary:#3b82f6;--rebill-color-primary-light:rgba(59, 130, 246, 0.1);--rebill-color-primary-hover:#2563eb;--rebill-color-primary-dark-hover:#001c4a;--rebill-color-info-border:#0156f6;--rebill-color-info-text:#172b85;--rebill-color-link:#0056f6;--rebill-color-primary-dark:#001131;--rebill-color-primary-dark-text:#000000;--rebill-color-primary-dark-light:rgba(0, 17, 49, 0.1);--rebill-color-error:#ef4444;--rebill-color-error-background:#fef2f2;--rebill-color-error-light:rgba(239, 68, 68, 0.1);--rebill-color-error-dark:#6f101b;--rebill-color-background:#ffffff;--rebill-color-background-left:#fafafa;--rebill-color-background-right:#f4f5f6;--rebill-color-background-secondary:#f7f8fa;--rebill-color-border:#ebedef;--rebill-color-timeline-connector:#c4c8cf;--rebill-color-neutrals-700:#58616e;--rebill-color-neutrals-500:#9ca3af;--rebill-color-border-primary:#e4e4e7;--rebill-color-text-primary:#3b4049;--rebill-color-text-secondary:#6b7280;--rebill-color-grey-700:#7d7d7d;--rebill-color-text-secondary-light:#a1a1aa;--rebill-color-text-on-primary:#ffffff;--rebill-color-disabled:#9ca3af;--rebill-color-shadow:rgba(0, 0, 0, 0.1);--rebill-color-green:#10b981;--rebill-color-green-text:#257c67;--rebill-color-green-light:rgba(183, 233, 221, 0.15);--rebill-color-green-light-2:rgba(183, 233, 221, 1);--rebill-color-info-background:#d5e4ff;--rebill-color-background-secondary-light:#f7f8fa;--rebill-breakpoint-mobile:768px;--rebill-breakpoint-tablet:1024px;--rebill-breakpoint-desktop:1025px;--rebill-color-orange:#ff9400;--rebill-color-black:#1e2025;--rebill-color-grey-300:#3b4049;--rebill-color-grey-100:#aeaeae}.qr-container,.qr-image,.qr-image svg,.qr-image img,[class*='qr-'],[class*='success'],[class*='receipt']{transition:none !important;animation:none !important;will-change:auto !important}button:active,button:focus,button:hover{isolation:isolate}.renewal-success-page__success-content{display:flex;flex-direction:column;align-items:center;gap:1rem;width:100%;overflow-x:hidden;box-sizing:border-box}.renewal-success-page__success-content rebill-typography[variant='h3']{margin:0 !important;padding:0 !important}.renewal-success-page__success-icon{display:flex;justify-content:center;margin:0.5rem 0}.renewal-success-page__info-card{padding:24px;gap:16px;width:100%;max-width:450px;border:1px solid #ebedef;border-radius:8px;display:flex;flex-direction:column;box-sizing:border-box}.renewal-success-page__card-row{display:flex;justify-content:space-between;align-items:start;min-height:20px;gap:15%}.renewal-success-page__card-row:last-of-type{margin-bottom:0}.renewal-success-page__card-value{display:flex;align-items:center;gap:0.5rem}.renewal-success-page__payment-method-display{display:flex;align-items:center;gap:8px;justify-content:center}.renewal-success-page__payment-method-display rebill-card-icon{display:inline-block;flex-shrink:0;margin-right:8px;vertical-align:middle}.renewal-success-page__payment-method-display rebill-card-icon svg{display:block}.renewal-success-page__payment-method-display rebill-icon{display:inline-block;vertical-align:middle;margin-right:8px}.renewal-success-page__payment-method-display rebill-icon div{display:block}.renewal-success-page__card-divider{height:1px;background:#e5e7eb}.renewal-success-page__download-container{display:flex;align-items:center;justify-content:flex-start;gap:2px;text-decoration:none;cursor:pointer}.renewal-success-page__contact-info{text-align:left}.renewal-success-page__reference-number{word-break:break-all;overflow-wrap:break-word;hyphens:auto;max-width:100%;text-align:right}.renewal-success-page__total-amount-container{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-direction:row}@media (max-width: 1024px){.renewal-success-page__success-content{max-width:100%;gap:1.5rem;margin-left:16px;margin-right:16px}.renewal-success-page__info-card{width:100%;max-width:100%;padding:12px}}@media (max-width: 767px){.renewal-success-page__info-card{padding:12px}}";const u=class{constructor(r){e(this,r);this.successRedirect=a(this,"successRedirect")}typePaymentMethod=i.CARD;country="";bank="";paymentMethodName="";cardLastFour="";paymentDate="";referenceNumber="";trialPeriodDays=0;debitDay=0;planAmount=0;currentLocale="es";breakpoint=l.DESKTOP;successRedirect;loaderProgress=0;isLoadingLottie=true;showRedirectMessage=false;timeToRedirect=3e3;progressInterval;lottieContainer;lottieAnimation;successDisplayTimeout;applyStartCaseToBrand=e=>{if(!e)return"";return e.toLowerCase().split(/[\s-]+/).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ")};getPaymentMethodConfig(e){const a=this.country?p(this.country):null;const r=a?.find((a=>a.type===e));const c=e===i.CASH&&this.country==="BR"?f(i.CASH,this.country)||o.translate("paymentMethods.cash"):o.translate("paymentMethods.cash");const s={[i.CARD]:{key:i.CARD,label:o.translate("paymentMethods.card"),icons:["card"]},[i.CASH]:{key:i.CASH,label:c,icons:["pago-facil"]},[i.BANK_TRANSFER]:{key:i.BANK_TRANSFER,label:o.translate("paymentMethods.bank_transfer"),icons:["plus"]}};const t=s[e];return{...t,icons:r?.icons||t.icons}}getPaymentDate=()=>this.paymentDate||"";componentWillLoad(){this.breakpoint=n(window.innerWidth);if(this.showRedirectMessage){this.successDisplayTimeout=window.setTimeout((()=>{this.showRedirectMessage=true;this.loadLottieAnimation()}),1500);setTimeout((()=>{this.stopLoaderAnimation()}),this.timeToRedirect)}}componentDidLoad(){window.addEventListener("resize",this.handleResize);if(!this.showRedirectMessage){this.loadLottieAnimation()}}disconnectedCallback(){if(this.successDisplayTimeout){clearTimeout(this.successDisplayTimeout)}window.removeEventListener("resize",this.handleResize);this.stopLoaderAnimation()}handleResize=()=>{this.breakpoint=n(window.innerWidth)};loadLottieAnimation=async()=>{try{const e=await import("./p-GK75wIKe.js").then((function(e){return e.l}));const a=await fetch(r(`./assets/loader-redirect1.json`));const c=await a.json();if(this.lottieContainer){this.lottieAnimation=e.default.loadAnimation({container:this.lottieContainer,renderer:"svg",loop:true,autoplay:true,animationData:c})}else{this.startLoaderAnimation()}}catch(e){this.startLoaderAnimation()}};startLoaderAnimation=()=>{const e=3e3;const a=50;const r=a/e*100;this.progressInterval=window.setInterval((()=>{this.loaderProgress=Math.min(this.loaderProgress+r,100);if(this.loaderProgress>=100){this.stopLoaderAnimation()}}),a)};stopLoaderAnimation=()=>{if(this.progressInterval){clearInterval(this.progressInterval);this.progressInterval=undefined}if(this.lottieAnimation){this.lottieAnimation.destroy();this.lottieAnimation=undefined}};handleDownloadReceipt=async()=>{try{await y.generateAndDownloadReceipt({paymentMethod:this.typePaymentMethod===i.CARD?this.textPaymentMethodCard():this.paymentMethodName,...this.typePaymentMethod===i.BANK_TRANSFER&&{bank:this.bank},...this.typePaymentMethod===i.CARD&&{cardBrand:this.applyStartCaseToBrand(t.data.cardInformation?.brand||"")},...this.typePaymentMethod===i.CARD&&{cardLastFour:this.cardLastFour??t.data.cardInformation?.lastFour},paymentDate:g(this.getPaymentDate())||g((new Date).toISOString()),email:t.data.subscription.customerEmail||"",referenceNumber:this.referenceNumber,productTitle:t.data.subscription.name[0]?.text||"Subscription",subtotal:s(t.data.subscription.subTotalAmount,t.data.price.currency),total:s(t.data.price.amount,t.data.price.currency),currency:t.data.price.currency||" ",...this.getDiscountAmountValue()>0&&{discountAmount:s(this.getDiscountAmountValue(),t.data.price.currency)},trialPeriodDays:this.trialPeriodDays,debitDay:this.debitDay,planAmount:s(this.planAmount,t.data.price.currency),isBankTransfer:this.typePaymentMethod===i.BANK_TRANSFER})}catch(e){console.error("Error downloading receipt:",e)}};getDiscountAmountValue=()=>{if(t?.data?.price?.amount<t?.data?.subscription?.subTotalAmount){return t?.data?.subscription?.subTotalAmount-t?.data?.price?.amount}return 0};hasDiscount=()=>this.getDiscountAmountValue()>0;textPaymentMethodCard=()=>{const e=t.data?.cardInformation?.brand;const a=this.cardLastFour||t.data?.cardInformation?.lastFour;const r=this.applyStartCaseToBrand(e||"");return e&&a?`${r} - ${a}`:r};render(){return c("rebill-checkout-single-column",{key:"a239b828fc27cf3abf25ef3a70c8ed70a7c6347e"},c("div",{key:"a6b98f63c3429afe4156f934d27082747ad421b7",class:"renewal-success-page__success-content"},c("rebill-typography",{key:"a5d9a81697e66e108fe474973eaf7e662dd3a9a8",variant:"h3",color:b.PRIMARY_DARK_TEXT},o.translate("processing.successTitle")),c("div",{key:"aa1d2c45651941e83ab6a2ab153b913e6fd5aa56",class:"renewal-success-page__success-icon"},c("svg",{key:"3a886e1c8c0aa11a4ac034d202bd82faecf932ea",width:d(this.breakpoint,l.DESKTOP)?"64":"96",height:d(this.breakpoint,l.DESKTOP)?"64":"96",viewBox:"0 0 96 96",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{key:"37434d1a3f1275e185e4d5a32321bad0b0c0e103","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"}))),c("div",{key:"1cda6d758629c4829697814f226d78f72cdf739a",class:"renewal-success-page__info-card"},c("div",{key:"7edc2f9bdad58f80f838ab9ec96ca3afc08c72af",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"b7a6e172ac1776bad3835b50419aaafb33e21348",variant:"body2",color:b.SECONDARY},o.translate("processing.paymentMethod")),c("div",{key:"bf04191d72701a6ff88c74846d86272283c5d43f",class:"renewal-success-page__card-value"},c("div",{key:"1272075a876cf9c5db13612869e19780e7f6dcc7",class:"renewal-success-page__payment-method-display"},this.typePaymentMethod===i.CARD&&c(c.Fragment,null,c("rebill-card-icon",{key:"b79718d298a67ed9d1a6e79c056ab69af5ad85ce","card-brand":t.data?.cardInformation?.brand||""}),c("rebill-typography",{key:"f74ca5245468cc02754234073219ca7d8fab9d90",variant:"body2",color:b.PRIMARY_DARK_TEXT},this.textPaymentMethodCard())),this.typePaymentMethod===i.BANK_TRANSFER&&c("div",{key:"5e3c90bca337d977258b893085d535f41b8d6a64",style:{display:"flex",alignItems:"center",gap:"8px"}},c("div",{key:"c1dd9a6dc407156084b4024642d06679cccf950d",style:{display:"flex",alignItems:"center",gap:"8px"}},this.getPaymentMethodConfig(i.BANK_TRANSFER).icons.map((e=>c("rebill-icon",{name:e,size:"24px"})))),c("rebill-typography",{key:"753c7d6154d22b5a531de138ef9df66bd50d58fc",variant:"body2",color:b.PRIMARY_DARK_TEXT},o.translate("paymentMethods.bank_transfer")))))),c("div",{key:"c22bd3cb7c434a0a96eb538700ec6d9e84765795",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"d9e9a384c86ebca08bf38525316ac1b2dfc7422d",variant:"body2",color:b.SECONDARY},o.translate("processing.paymentDate")),c("rebill-typography",{key:"0b59d5dc390de214158840fb709af78525cfefea",variant:"body2",color:b.PRIMARY_DARK_TEXT},g(this.paymentDate||this.getPaymentDate())||"")),c("div",{key:"50786fa0d89399297fb1acf844b65104cebae06e",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"7d598f5fefe4dacee1de32d3d78cd7ea9637f199",variant:"body2",color:b.SECONDARY},o.translate("processing.paymentEmail")),c("rebill-typography",{key:"b6dde819b00efb0da2da325fb173341a3193c6c5",variant:"body2",color:b.PRIMARY_DARK_TEXT},t.data.subscription.customerEmail)),c("div",{key:"3c46859ffa572d51f74493ac2c5d6049fba0aa24",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"421fcdb0c4a36d336bf2b6ef95a38386ca14bc5d",variant:"body2",color:b.SECONDARY},o.translate("processing.paymentReference")),c("rebill-typography",{key:"2c27b324746d67473d5f772b1686de99e2b6e5b9",variant:"body2",color:b.PRIMARY_DARK_TEXT,class:"renewal-success-page__reference-number"},this.referenceNumber||""))),c("div",{key:"b8f9d223b0b8fc534a6d3d9f17e0f2e8f20a3597",class:"renewal-success-page__info-card"},c("rebill-typography",{key:"253f52f1f3e28f28562c8e549b4e0af24b55ff2b",variant:"subtitle-bold",color:b.PRIMARY_DARK_TEXT},o.translate("processing.purchaseDetails")),c("div",{key:"c517721f13f50084f87c3b9f25cb3096cdd1e96a",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"1352deb43d6cfc98b573fd3ed6a51dede43938b1",variant:"body2",color:b.SECONDARY},o.translate("processing.purchaseDetail")),c("rebill-typography",{key:"85e18a0bb1f1f7051ddb7586ee38fe19507cc3d7",variant:"body2",color:b.PRIMARY_DARK_TEXT},t.data.subscription.name[0]?.text||"Subscription")),c("div",{key:"666e7b196ddfccf2562adc1918a7aa425b40e36c",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"f12b5e447030ab9257bbad458fd981bf32f7071a",variant:"body2",color:b.SECONDARY},o.translate("processing.purchaseSubtotal")),c("rebill-typography",{key:"bd3b76f6ad5fb9b537b47c0c97680711c2070410",variant:"body2",color:b.PRIMARY_DARK_TEXT},s(t.data.subscription.subTotalAmount,t.data.price.currency))),this.hasDiscount()&&c("div",{key:"e82bb80c805d68bb1ac54f351975a900fb982d50",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"a961d4d1a5620633ab5ca4c60c53d2706fba3d94",variant:"body2",color:b.SECONDARY},o.translate("summary.discount")),c("rebill-typography",{key:"f396c19717a68069ea000abf49fd1dcf05d34b60",variant:"body2",color:b.PRIMARY_DARK_TEXT},s(this.getDiscountAmountValue(),t.data.price.currency))),c("div",{key:"3e2c645f7ec6b1b293db8d1984d7628279734d81",class:"renewal-success-page__card-row"},c("rebill-typography",{key:"7629e972d8fda078945aa253d5a8086ab87570f3",variant:"body2",color:b.SECONDARY},o.translate("processing.purchaseMontoTotal")),c("div",{key:"e931d961c8563f38beba85ccf56bc5dff89f08e3",class:"renewal-success-page__total-amount-container"},c("rebill-typography",{key:"7949389721ec12258633b839a3e1b8730d199776",variant:"body2",color:b.PRIMARY_DARK_TEXT},s(t.data.price.amount,t.data.price.currency)))),c("div",{key:"b1f798fefbf45fd5d35bae1f73e20c15e3678249",class:"renewal-success-page__card-divider"}),c("div",{key:"6833d7028be88cef990c46a1a55cea2d4b8bd840",class:"renewal-success-page__download-container"},c("svg",{key:"fa4cdf941d84391036358e49f099d70425c5b133",class:"download-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c("path",{key:"30595c88a5ca2ba310be5bb1d14a8842fc0e8b42",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"})),c("rebill-button",{key:"3f2c1f7fc634652346c1b5ae17d59951b17b5e20",type:"button",variant:"download",size:"small",onClick:this.handleDownloadReceipt},c("rebill-typography",{key:"b0739a392b85c02d5b765beaa57df27fbed686d2",variant:"overline",color:b.PRIMARY_DARK_TEXT},o.translate("processing.download")))),c("div",{key:"c60a0eec0d7c64e131877827a2bc1c78f692e20a",class:"renewal-success-page__contact-info"},c("rebill-typography",{key:"875970bb426700e60d228a8201f749d932fcb7b6",variant:"information-text",color:b.SECONDARY},o.translate("processing.downloadDescription"))))))}};u.style=h;export{u as renewal_success_page};
|
|
2
|
+
//# sourceMappingURL=p-64d035a5.entry.js.map
|