rebill-web-components-sdk 1.8.33 → 1.8.34-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_19.cjs.entry.js +12 -12
- package/dist/cjs/card-identification_5.cjs.entry.js +8 -8
- package/dist/cjs/collapsible-card.cjs.entry.js +1 -1
- package/dist/cjs/discount-coupon.rebill-divider.entry.cjs.js.map +1 -0
- package/dist/cjs/discount-coupon_2.cjs.entry.js +157 -0
- 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.rebill-card-icon.rebill-checkout-single-column.rebill-footer.entry.cjs.js.map +1 -1
- package/dist/cjs/organization-logo_4.cjs.entry.js +3 -3
- package/dist/cjs/otp-component_7.cjs.entry.js +8 -8
- package/dist/cjs/rebill-alert.cjs.entry.js +2 -2
- 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-renewal.cjs.entry.js +2 -2
- package/dist/cjs/rebill-renewal.entry.cjs.js.map +1 -1
- package/dist/cjs/rebill-timeline-debit-day.rebill-timeline-free-trial.entry.cjs.js.map +1 -0
- package/dist/cjs/{discount-coupon_3.cjs.entry.js → rebill-timeline-debit-day_2.cjs.entry.js} +3 -117
- 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.renewal-summary.entry.cjs.js.map +1 -1
- package/dist/cjs/renewal-success-page_2.cjs.entry.js +41 -13
- package/dist/cjs/{renewal.store-C9AesGY1.js → renewal.store-BaH9Id4E.js} +5 -2
- package/dist/cjs/renewal.store-BaH9Id4E.js.map +1 -0
- package/dist/cjs/root-component.cjs.entry.js +1 -1
- package/dist/collection/components/checkout/discount-coupon/discount-coupon.css +4 -0
- package/dist/collection/components/checkout/discount-coupon/discount-coupon.js +104 -4
- package/dist/collection/components/checkout/discount-coupon/discount-coupon.js.map +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.css +1 -1
- 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/rebill-renewal.js +1 -1
- package/dist/collection/components/renewal/rebill-renewal.js.map +1 -1
- package/dist/collection/components/renewal/renewal-success-page/renewal-success-page.js +2 -2
- package/dist/collection/components/renewal/renewal-summary/renewal-summary.js +101 -16
- package/dist/collection/components/renewal/renewal-summary/renewal-summary.js.map +1 -1
- 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/custom/single-column/checkout-single-column.js +1 -1
- 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/collection/models/renewal.model.js.map +1 -1
- package/dist/collection/store/renewal.store.js +3 -0
- package/dist/collection/store/renewal.store.js.map +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/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-BbLfqjb0.js → p-3K2fnS0h.js} +5 -5
- package/dist/components/{p-BbLfqjb0.js.map → p-3K2fnS0h.js.map} +1 -1
- package/dist/components/p-8BpuJ_V5.js.map +1 -1
- package/dist/components/{p-Dm2xJSTe.js → p-B0QvmxUI.js} +3 -3
- package/dist/components/{p-Dm2xJSTe.js.map → p-B0QvmxUI.js.map} +1 -1
- package/dist/components/{p-CYhj6VLQ.js → p-B544NesK.js} +4 -4
- package/dist/components/{p-CYhj6VLQ.js.map → p-B544NesK.js.map} +1 -1
- package/dist/components/{p-mA3Sj5fj.js → p-B7uE6iBd.js} +11 -11
- package/dist/components/{p-mA3Sj5fj.js.map → p-B7uE6iBd.js.map} +1 -1
- package/dist/components/{p-1ZvL9CLG.js → p-BLbS7nF7.js} +3 -3
- package/dist/components/{p-1ZvL9CLG.js.map → p-BLbS7nF7.js.map} +1 -1
- package/dist/components/{p-qI3t-gYu.js → p-BZYd-So1.js} +4 -4
- package/dist/components/{p-qI3t-gYu.js.map → p-BZYd-So1.js.map} +1 -1
- package/dist/components/{p-tTqPr5zM.js → p-BeVdyYff.js} +6 -6
- package/dist/components/{p-tTqPr5zM.js.map → p-BeVdyYff.js.map} +1 -1
- package/dist/components/{p-1I-sUD5D.js → p-BuNsfNGm.js} +6 -6
- package/dist/components/{p-1I-sUD5D.js.map → p-BuNsfNGm.js.map} +1 -1
- package/dist/components/{p-BV_MHtDc.js → p-C0LGxeng.js} +3 -3
- package/dist/components/{p-BV_MHtDc.js.map → p-C0LGxeng.js.map} +1 -1
- package/dist/components/{p-DvXuQN4U.js → p-CD0TNzOh.js} +12 -12
- package/dist/components/{p-DvXuQN4U.js.map → p-CD0TNzOh.js.map} +1 -1
- package/dist/components/{p-wjfhDzgd.js → p-CKYowY5T.js} +4 -4
- package/dist/components/{p-wjfhDzgd.js.map → p-CKYowY5T.js.map} +1 -1
- package/dist/components/{p-ChnuJbVe.js → p-C_S6-o9t.js} +10 -10
- package/dist/components/{p-ChnuJbVe.js.map → p-C_S6-o9t.js.map} +1 -1
- package/dist/components/{p-CKiwr2yo.js → p-CajUouzQ.js} +3 -3
- package/dist/components/{p-CKiwr2yo.js.map → p-CajUouzQ.js.map} +1 -1
- package/dist/components/{p-fEiok6NF.js → p-CfUbJq8-.js} +3 -3
- package/dist/components/{p-fEiok6NF.js.map → p-CfUbJq8-.js.map} +1 -1
- package/dist/components/{p-BWkW7_Hh.js → p-CisP549A.js} +36 -9
- package/dist/components/p-CisP549A.js.map +1 -0
- package/dist/components/{p-DiNW75Kd.js → p-CmYsenWG.js} +3 -3
- package/dist/components/{p-DiNW75Kd.js.map → p-CmYsenWG.js.map} +1 -1
- package/dist/components/{p-QzWBUSLD.js → p-CneaXzeq.js} +4 -4
- package/dist/components/{p-QzWBUSLD.js.map → p-CneaXzeq.js.map} +1 -1
- package/dist/components/{p-Di8WeTd9.js → p-CuX2faVH.js} +4 -4
- package/dist/components/{p-Di8WeTd9.js.map → p-CuX2faVH.js.map} +1 -1
- package/dist/components/{p-h8TZeiqt.js → p-D0AmEJnp.js} +6 -6
- package/dist/components/{p-h8TZeiqt.js.map → p-D0AmEJnp.js.map} +1 -1
- package/dist/components/{p-B1BCKuQ0.js → p-D1lAYXxG.js} +8 -8
- package/dist/components/{p-B1BCKuQ0.js.map → p-D1lAYXxG.js.map} +1 -1
- package/dist/components/{p-BnBTbmTe.js → p-DA0QxWuE.js} +4 -4
- package/dist/components/{p-BnBTbmTe.js.map → p-DA0QxWuE.js.map} +1 -1
- package/dist/components/{p-CpXk4UfE.js → p-DBi6K19S.js} +5 -5
- package/dist/components/{p-CpXk4UfE.js.map → p-DBi6K19S.js.map} +1 -1
- package/dist/components/{p-gj5jUg6C.js → p-DDp9qjAz.js} +3 -3
- package/dist/components/{p-gj5jUg6C.js.map → p-DDp9qjAz.js.map} +1 -1
- package/dist/components/{p-DlrQ_kVv.js → p-DIILFLsN.js} +5 -5
- package/dist/components/{p-DlrQ_kVv.js.map → p-DIILFLsN.js.map} +1 -1
- package/dist/components/{p-CNBrNMEa.js → p-DKn8wDv6.js} +3 -3
- package/dist/components/{p-CNBrNMEa.js.map → p-DKn8wDv6.js.map} +1 -1
- package/dist/components/{p-D6yu2OYw.js → p-DPUz_1Ev.js} +5 -5
- package/dist/components/{p-D6yu2OYw.js.map → p-DPUz_1Ev.js.map} +1 -1
- package/dist/components/{p-BL08tUBX.js → p-DRTzT9ks.js} +3 -3
- package/dist/components/{p-BL08tUBX.js.map → p-DRTzT9ks.js.map} +1 -1
- package/dist/components/{p-DSFlA7FF.js → p-DaS8xGPM.js} +5 -5
- package/dist/components/{p-DSFlA7FF.js.map → p-DaS8xGPM.js.map} +1 -1
- package/dist/components/{p-DZWQyp55.js → p-DgRM4z7g.js} +3 -3
- package/dist/components/{p-DZWQyp55.js.map → p-DgRM4z7g.js.map} +1 -1
- package/dist/components/{p-DU4kUISl.js → p-Dm8Dxmer.js} +5 -5
- package/dist/components/{p-DU4kUISl.js.map → p-Dm8Dxmer.js.map} +1 -1
- package/dist/components/{p-DrAiGSzG.js → p-Dp8EoajW.js} +3 -3
- package/dist/components/{p-DrAiGSzG.js.map → p-Dp8EoajW.js.map} +1 -1
- package/dist/components/{p-BX1_zmbg.js → p-DvV5MmYi.js} +5 -5
- package/dist/components/{p-BX1_zmbg.js.map → p-DvV5MmYi.js.map} +1 -1
- package/dist/components/{p-4hVDutj0.js → p-DzdUnkvh.js} +3 -3
- package/dist/components/{p-4hVDutj0.js.map → p-DzdUnkvh.js.map} +1 -1
- package/dist/components/{p-D3QILlvg.js → p-HzmATjhQ.js} +5 -5
- package/dist/components/p-HzmATjhQ.js.map +1 -0
- package/dist/components/{p-CVtNCEPd.js → p-PBF27XTU.js} +3 -3
- package/dist/components/{p-CVtNCEPd.js.map → p-PBF27XTU.js.map} +1 -1
- package/dist/components/{p-BmjU_TBT.js → p-QTa3HvQl.js} +3 -3
- package/dist/components/{p-BmjU_TBT.js.map → p-QTa3HvQl.js.map} +1 -1
- package/dist/components/{p-WQJ1HwUp.js → p-dgrAtFYi.js} +6 -6
- package/dist/components/{p-WQJ1HwUp.js.map → p-dgrAtFYi.js.map} +1 -1
- package/dist/components/{p-RGadlsa-.js → p-hpg1lOUJ.js} +5 -2
- package/dist/components/p-hpg1lOUJ.js.map +1 -0
- package/dist/components/{p-D4oYYfeG.js → p-nkv8Z87a.js} +8 -8
- package/dist/components/{p-D4oYYfeG.js.map → p-nkv8Z87a.js.map} +1 -1
- package/dist/components/{p-dtookouT.js → p-nvpvagPB.js} +7 -7
- package/dist/components/{p-dtookouT.js.map → p-nvpvagPB.js.map} +1 -1
- package/dist/components/{p-B-Wxp2_p.js → p-oE_0ElW3.js} +69 -20
- package/dist/components/p-oE_0ElW3.js.map +1 -0
- package/dist/components/{p-CKZvdOpK.js → p-qDaQOriJ.js} +4 -4
- package/dist/components/{p-CKZvdOpK.js.map → p-qDaQOriJ.js.map} +1 -1
- package/dist/components/{p-lfUd06gm.js → p-rnhSIhil.js} +3 -3
- package/dist/components/{p-lfUd06gm.js.map → p-rnhSIhil.js.map} +1 -1
- package/dist/components/{p-Dr1acigj.js → p-xNgCL9nV.js} +4 -4
- package/dist/components/{p-Dr1acigj.js.map → p-xNgCL9nV.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-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-checkout-form.js +1 -1
- package/dist/components/rebill-checkout-single-column.js +1 -1
- package/dist/components/rebill-checkout.js +39 -39
- 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 +47 -41
- 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/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_19.entry.js +12 -12
- package/dist/esm/card-identification_5.entry.js +8 -8
- package/dist/esm/collapsible-card.entry.js +1 -1
- package/dist/esm/discount-coupon.rebill-divider.entry.js.map +1 -0
- package/dist/esm/discount-coupon_2.entry.js +154 -0
- package/dist/esm/index-D8cwEAmw.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.rebill-card-icon.rebill-checkout-single-column.rebill-footer.entry.js.map +1 -1
- package/dist/esm/organization-logo_4.entry.js +3 -3
- package/dist/esm/otp-component_7.entry.js +8 -8
- package/dist/esm/rebill-alert.entry.js +2 -2
- 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-renewal.entry.js +2 -2
- package/dist/esm/rebill-renewal.entry.js.map +1 -1
- package/dist/esm/rebill-timeline-debit-day.rebill-timeline-free-trial.entry.js.map +1 -0
- package/dist/esm/{discount-coupon_3.entry.js → rebill-timeline-debit-day_2.entry.js} +6 -119
- 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.renewal-summary.entry.js.map +1 -1
- package/dist/esm/renewal-success-page_2.entry.js +41 -13
- package/dist/esm/{renewal.store-C6hSvhsF.js → renewal.store-vAxzxA8H.js} +5 -2
- package/dist/esm/renewal.store-vAxzxA8H.js.map +1 -0
- package/dist/esm/root-component.entry.js +1 -1
- package/dist/rebill-web-components-sdk/discount-coupon.rebill-divider.entry.esm.js.map +1 -0
- package/dist/rebill-web-components-sdk/organization-logo.rebill-card-icon.rebill-checkout-single-column.rebill-footer.entry.esm.js.map +1 -1
- package/dist/rebill-web-components-sdk/p-012e3770.entry.js +2 -0
- package/dist/rebill-web-components-sdk/p-012e3770.entry.js.map +1 -0
- package/dist/rebill-web-components-sdk/{p-1c3e7171.entry.js → p-0239917e.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-edb69e28.entry.js → p-1ac036d7.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-36a897c4.entry.js → p-1d7e392c.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-e5b0f2b9.entry.js → p-2ebb1d54.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-e8eadef6.entry.js → p-3a5bdb02.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-5df71605.entry.js → p-43924d1d.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-43924d1d.entry.js.map +1 -0
- package/dist/rebill-web-components-sdk/{p-9084f3ef.entry.js → p-47ee3edc.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-92de0c03.entry.js → p-508cc019.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-924e7ec2.entry.js → p-515e9e16.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-5ac0522d.entry.js +2 -0
- package/dist/rebill-web-components-sdk/{p-821e1fed.entry.js → p-6089b208.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-63baba00.entry.js +2 -0
- package/dist/rebill-web-components-sdk/p-63baba00.entry.js.map +1 -0
- package/dist/rebill-web-components-sdk/{p-a0d6b0c0.entry.js → p-6ea98ccf.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-bc6f455d.entry.js → p-7287e0f0.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-26f12a67.entry.js → p-8c7f75c0.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-26f12a67.entry.js.map → p-8c7f75c0.entry.js.map} +1 -1
- package/dist/rebill-web-components-sdk/p-D8cwEAmw.js.map +1 -1
- package/dist/rebill-web-components-sdk/{p-c8a5a137.entry.js → p-aa96087c.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-63020e78.entry.js → p-ad9a6685.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-7e94aec8.entry.js → p-e0a3f3a8.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-6334b899.entry.js → p-e242be38.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-e242be38.entry.js.map +1 -0
- package/dist/rebill-web-components-sdk/p-f672574a.entry.js +2 -0
- package/dist/rebill-web-components-sdk/p-nVuaISVM.js +2 -0
- package/dist/rebill-web-components-sdk/p-nVuaISVM.js.map +1 -0
- package/dist/rebill-web-components-sdk/rebill-renewal.entry.esm.js.map +1 -1
- package/dist/rebill-web-components-sdk/rebill-timeline-debit-day.rebill-timeline-free-trial.entry.esm.js.map +1 -0
- package/dist/rebill-web-components-sdk/rebill-web-components-sdk.esm.js +1 -1
- package/dist/rebill-web-components-sdk/renewal-success-page.renewal-summary.entry.esm.js.map +1 -1
- package/dist/types/components/checkout/discount-coupon/discount-coupon.d.ts +5 -0
- package/dist/types/components/renewal/renewal-summary/renewal-summary.d.ts +12 -5
- package/dist/types/components.d.ts +24 -4
- package/dist/types/models/renewal.model.d.ts +3 -0
- package/package.json +1 -1
- package/dist/cjs/discount-coupon.rebill-timeline-debit-day.rebill-timeline-free-trial.entry.cjs.js.map +0 -1
- package/dist/cjs/rebill-divider.cjs.entry.js +0 -18
- package/dist/cjs/rebill-divider.entry.cjs.js.map +0 -1
- package/dist/cjs/renewal.store-C9AesGY1.js.map +0 -1
- package/dist/components/p-B-Wxp2_p.js.map +0 -1
- package/dist/components/p-BWkW7_Hh.js.map +0 -1
- package/dist/components/p-D3QILlvg.js.map +0 -1
- package/dist/components/p-RGadlsa-.js.map +0 -1
- package/dist/esm/discount-coupon.rebill-timeline-debit-day.rebill-timeline-free-trial.entry.js.map +0 -1
- package/dist/esm/rebill-divider.entry.js +0 -16
- package/dist/esm/rebill-divider.entry.js.map +0 -1
- package/dist/esm/renewal.store-C6hSvhsF.js.map +0 -1
- package/dist/rebill-web-components-sdk/discount-coupon.rebill-timeline-debit-day.rebill-timeline-free-trial.entry.esm.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-43675422.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-43675422.entry.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-51571e15.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-5df71605.entry.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-6334b899.entry.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-7ea96b11.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-CdYpsLqg.js +0 -2
- package/dist/rebill-web-components-sdk/p-CdYpsLqg.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-eb6a2c0d.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-eb6a2c0d.entry.js.map +0 -1
- package/dist/rebill-web-components-sdk/rebill-divider.entry.esm.js.map +0 -1
- /package/dist/rebill-web-components-sdk/{p-1c3e7171.entry.js.map → p-0239917e.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-edb69e28.entry.js.map → p-1ac036d7.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-36a897c4.entry.js.map → p-1d7e392c.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-e5b0f2b9.entry.js.map → p-2ebb1d54.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-e8eadef6.entry.js.map → p-3a5bdb02.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-9084f3ef.entry.js.map → p-47ee3edc.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-92de0c03.entry.js.map → p-508cc019.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-924e7ec2.entry.js.map → p-515e9e16.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-51571e15.entry.js.map → p-5ac0522d.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-821e1fed.entry.js.map → p-6089b208.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-a0d6b0c0.entry.js.map → p-6ea98ccf.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-bc6f455d.entry.js.map → p-7287e0f0.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-c8a5a137.entry.js.map → p-aa96087c.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-63020e78.entry.js.map → p-ad9a6685.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-7e94aec8.entry.js.map → p-e0a3f3a8.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-7ea96b11.entry.js.map → p-f672574a.entry.js.map} +0 -0
|
@@ -4,7 +4,7 @@ export class Card {
|
|
|
4
4
|
cardTitle;
|
|
5
5
|
cardLabels;
|
|
6
6
|
render() {
|
|
7
|
-
return (h("div", { key: '
|
|
7
|
+
return (h("div", { key: '1a82d37bdba31dc63f3b445b9311243ae306dbee', class: "card-container" }, h("div", { key: '9ffd448e17794d7bfbf65080125d59054a217bc2', class: "card-title" }, h("rebill-typography", { key: '3097c063f33f4eefb02ebb3418c75416ce75b1c5', variant: "subtitle-bold" }, this.cardTitle)), h("div", { key: 'b6bbce2f36bf5965297cd6a5891fac955854fcf6', class: "card-labels" }, this.cardLabels.map(label => (h("div", { class: "card-label" }, h("rebill-typography", { variant: "body2", color: COLORS_ENUM.TEXT_SECONDARY }, label.label), h("rebill-typography", { variant: "body2", color: COLORS_ENUM.TEXT_PRIMARY }, label.value)))))));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "rebill-card"; }
|
|
10
10
|
static get originalStyleUrls() {
|
|
@@ -46,7 +46,7 @@ export class CardCarousel {
|
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
48
|
const currentIcon = this.cardIcons[this.currentIndex];
|
|
49
|
-
return (h("div", { key: '
|
|
49
|
+
return (h("div", { key: '263796cd725fdd510c54b685f0d1430c0653a2c8', class: "card-carousel-container", onMouseEnter: () => this.handleMouseEnter(), onMouseLeave: () => this.handleMouseLeave() }, h("div", { key: '22710173a70058a34850c247774c11611b03a653', class: "card-carousel" }, h("rebill-icon", { key: `${currentIcon}-${this.currentIndex}`, name: currentIcon, size: this.size, color: this.color, class: "card-icon" })), this.showAllCards && (h("div", { key: 'b7afaf99ba7e6c6d8708f4d7e736352343701c09', class: "card-indicators" }, this.cardIcons.map((icon, index) => (h("div", { key: icon, class: `indicator ${index === this.currentIndex ? 'active' : ''}`, onClick: () => {
|
|
50
50
|
this.currentIndex = index;
|
|
51
51
|
} })))))));
|
|
52
52
|
}
|
|
@@ -14,7 +14,7 @@ export class CollapsibleCard {
|
|
|
14
14
|
this.toggled.emit(this.isOpen);
|
|
15
15
|
};
|
|
16
16
|
render() {
|
|
17
|
-
return (h("div", { key: '
|
|
17
|
+
return (h("div", { key: '1457cbc26b83000ec71d1b8a9330b36339bcacc3', class: `collapsible-card ${this.variant}` }, h("button", { key: '5f21229da2ab3dbb265a4b80cad04e72364cc934', class: "collapsible-card-header", onClick: this.toggle, "aria-expanded": this.isOpen, type: "button" }, h("rebill-typography", { key: 'c6f347bbc712d4ede42b5c63a81b1145297bf36e', variant: this.variant === 'flat' ? 'subtitle2' : 'overline', color: COLORS_ENUM.TEXT_PRIMARY }, this.header), h("span", { key: '7e53c8c84a60126d856a12199871ab9d328c932f', class: { chevron: true, open: this.isOpen } }, h("rebill-icon", { key: '7f3310ed9e9abcfacd8d0050f26a81ba2771a3ff', name: "chevron-down", size: "20px", color: "currentColor" }))), h("div", { key: '4ab6b819a7305f97c2b4093ee5f313021c73bfc9', class: { content: true, open: this.isOpen } }, h("slot", { key: '68fd3a2c949a723f6703fb1e2b6c0fe6ad4e5877' }))));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "collapsible-card"; }
|
|
20
20
|
static get originalStyleUrls() {
|
|
@@ -2,7 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import "./divider.css";
|
|
3
3
|
export class Divider {
|
|
4
4
|
render() {
|
|
5
|
-
return h("div", { key: '
|
|
5
|
+
return h("div", { key: 'e473487d16557d2a754a133173d72ca6ce5a7767', class: "rebill-divider" });
|
|
6
6
|
}
|
|
7
7
|
static get is() { return "rebill-divider"; }
|
|
8
8
|
static get originalStyleUrls() {
|
|
@@ -9,7 +9,7 @@ export class VerticalDivider {
|
|
|
9
9
|
connectorActive = false;
|
|
10
10
|
withDot = false;
|
|
11
11
|
render() {
|
|
12
|
-
return (h("div", { key: '
|
|
12
|
+
return (h("div", { key: 'eb4eb689ee3b202277acf9afe8824b0eaf92eee6', class: `rebill-vertical-divider ${this.dashed ? 'dashed' : ''} ${this.connectorActive ? 'connectorActive' : ''} ${this.withDot ? 'with-dot' : ''}`, style: {
|
|
13
13
|
'--divider-color': colorClassMapper(this.color),
|
|
14
14
|
'--divider-thickness': this.thickness,
|
|
15
15
|
'--divider-dashed': this.dashed ? '2 2' : 'none',
|
|
@@ -105,7 +105,7 @@ export class Form {
|
|
|
105
105
|
await this.submitForm();
|
|
106
106
|
};
|
|
107
107
|
render() {
|
|
108
|
-
return (h("form", { key: '
|
|
108
|
+
return (h("form", { key: '2aea3b390caf4e34fe9d742d85e9b8015831261d', onSubmit: e => this.handleSubmit(e), noValidate: true }, this.renderForm ? (this.renderForm({
|
|
109
109
|
submit: () => this.submitForm(),
|
|
110
110
|
formData: this.formData,
|
|
111
111
|
errors: this.errors,
|
|
@@ -26,7 +26,7 @@ export class InputCheckbox {
|
|
|
26
26
|
this.input.emit({ id: this.id, value: this.checked });
|
|
27
27
|
};
|
|
28
28
|
render() {
|
|
29
|
-
return (h("div", { key: '
|
|
29
|
+
return (h("div", { key: 'c74b84596c8a440991d20d71f678504934f2b560', class: "checkbox-container input-container" }, h("label", { key: '994dcb86e31f802e223eabc26ccd14882aee3400', class: `checkbox-label input-label ${this.disabled ? 'disabled' : ''}` }, h("input", { key: '78ac96ee3334ac5de8f79d8a12441cfa391a95e3', id: this.id, type: "checkbox", class: `checkbox-element ${this.error ? 'checkbox-error' : ''}`, checked: this.checked, onChange: this.onCheckboxChange, disabled: this.disabled }), h("span", { key: '4a088e15405522b167c9b7fcb3a1d3df42c798e6', class: "label-text" }, this.label)), this.error && h("span", { key: '0ae539ccbe2d3ee67e6009a757512b6484171a1e', class: "error-message" }, this.error)));
|
|
30
30
|
}
|
|
31
31
|
static get is() { return "rebill-input-checkbox"; }
|
|
32
32
|
static get originalStyleUrls() {
|
|
@@ -166,7 +166,7 @@ export class InputCombo {
|
|
|
166
166
|
render() {
|
|
167
167
|
const selectedLabel = this.getSelectedOptionLabel();
|
|
168
168
|
const hasSelectValue = this.selectValue !== '';
|
|
169
|
-
return (h("div", { key: '
|
|
169
|
+
return (h("div", { key: '78274d3e83b4a14ec044ff3852e833a99feb8348', class: "input-container" }, this.label && (h("label", { key: '1c49d0001d73ada9f2a892bb28438fd44f369828', class: `input-label ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: 'f8fdecad81908c55d33c3c5612afacf122916635', class: `input-combo-wrapper combo-wrapper ${this.disabled ? 'disabled' : ''} ${this.error ? 'error' : ''}` }, h("div", { key: '2b824e4efec1d67539fcc5e3dd3cd750e65e342a', class: "select-section", style: { width: this.selectWidth } }, h("div", { key: 'dc0116959636baf538f158a1c018087cf9c8890a', ref: el => (this.triggerRef = el), class: `input-combo-select select-combo-trigger ${!hasSelectValue ? 'placeholder' : ''}`, onClick: this.toggleDropdown, onKeyDown: this.handleKeyDown, onBlur: this.onSelectBlur, tabIndex: this.disabled ? -1 : 0, role: "combobox", "aria-expanded": this.isOpen.toString(), "aria-haspopup": "listbox" }, h("span", { key: '0fd9d93421d8fd546771e806c93a29c0200ee408', class: "select-value" }, selectedLabel), h("div", { key: '6a3b3431c75f00bcb97d91e907c982e7abca3435', class: "icon-wrapper" }, h("rebill-icon", { key: 'b473ae6f95bdd29a45dc57b8a617c4311d89f3d3', name: "chevron-up-down", size: "20px", class: "select-icon" }))), this.isOpen && (h("div", { key: '90337b81ac236c22559e7bfd1c21169452e6196a', ref: el => (this.dropdownRef = el), class: "select-dropdown", role: "listbox" }, this.options.map((option, index) => (h("div", { class: `select-option ${this.selectValue === option.value ? 'selected' : ''} ${this.highlightedIndex === index ? 'highlighted' : ''}`, onClick: () => this.selectOption(option), role: "option", "aria-selected": this.selectValue === option.value ? 'true' : 'false' }, option.label)))))), h("div", { key: 'b23f197692e344ba927859c95da58ac610d68239', class: "combo-divider" }), h("div", { key: '53947485ce5b7f58baa9755d2cbbe32d3d2d63dd', class: "input-section" }, h("input", { key: 'a4350c9c44ab5915671ba9ab26ddd98bfe443544', type: "text", class: "input-combo-element combo-input", placeholder: this.inputPlaceholder, value: this.inputValue, onInput: this.onInputChange, onBlur: this.onInputBlur, disabled: this.disabled }))), this.error && h("span", { key: 'fc58be7909cf174089b791270720da65050d7e19', class: "error-message" }, this.error)));
|
|
170
170
|
}
|
|
171
171
|
static get is() { return "rebill-input-combo"; }
|
|
172
172
|
static get originalStyleUrls() {
|
|
@@ -96,14 +96,14 @@ export class InputOtp {
|
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
98
|
render() {
|
|
99
|
-
return (h("div", { key: '
|
|
99
|
+
return (h("div", { key: '22d1a4a0f52f04672bb16a4473d49d396717c251', class: "otp-container" }, h("div", { key: 'f4ce51dd0fae34b4f0560aeaaaee0e6e9a873077', class: "email-icon" }, h("rebill-icon", { key: 'a5c3c76e49d5bb4713b182d3ba753b17783afc3f', name: "invite" })), h("div", { key: '37e3942600948b3a7ec10b217919dad9e68c9435', class: "otp-input-container", onClick: this.handleFieldClick }, h("div", { key: '4df9d0c3bba7ccfd10da8dc7b412dd3b33c27990', class: "otp-fields" }, [0, 1, 2, 3, 4, 5].map(index => (h("div", { key: index, style: { display: 'flex', alignItems: 'center' } }, h("div", { class: `otp-field ${this.error ? 'error' : ''}` }, h("input", { type: "text", maxlength: "1", placeholder: this.placeholder, value: this.otpValue[index] || '', onInput: e => this.handleInput(e, index), onClick: () => this.handleInputClick(), onKeyDown: e => this.handleKeyDown(e, index), onPaste: e => this.handlePaste(e), onFocus: e => {
|
|
100
100
|
this.el
|
|
101
101
|
?.querySelectorAll('.otp-field')
|
|
102
102
|
.forEach(field => field.classList.remove('active'));
|
|
103
103
|
e.target.parentElement?.classList.add('active');
|
|
104
104
|
}, onBlur: e => {
|
|
105
105
|
e.target.parentElement?.classList.remove('active');
|
|
106
|
-
} })), index === 2 && h("div", { class: "otp-separator" }, "-")))))), this.error && h("div", { key: '
|
|
106
|
+
} })), index === 2 && h("div", { class: "otp-separator" }, "-")))))), this.error && h("div", { key: '386db596c1720b9c6837eb2ff877ddd553e78311', class: "otp-error" }, this.error)));
|
|
107
107
|
}
|
|
108
108
|
static get is() { return "input-otp"; }
|
|
109
109
|
static get originalStyleUrls() {
|
|
@@ -233,10 +233,10 @@ export class InputPhone {
|
|
|
233
233
|
const translatedError = this.translateError(this.error);
|
|
234
234
|
const translatedValidationError = this.translateError(this.validationError);
|
|
235
235
|
const displayError = translatedError || translatedValidationError;
|
|
236
|
-
return (h("div", { key: '
|
|
236
|
+
return (h("div", { key: '10cfe50d2b05b73d1c5c908d1219408d1695f18b', class: "input-container" }, h("div", { key: 'f74c9646e980ffaf53527f17737c2706998b612d', class: inputClasses }, h("div", { key: 'fb01d51d718603925839be3810c5ae4f3646293b', class: "input-combo-select country-selector", onClick: this.toggleDropdown }, h("span", { key: '4236bf3ad916ae749e2801370b333318d0e232fc', class: "flag" }, this.selectedCountry.flag), h("span", { key: '9d0edd7c8cf05120844ea7b5134a4ac327aa1ced', class: "dial-code" }, this.selectedCountry.dialCode), h("span", { key: 'a08a740944e9c00f4a22e4bb1632029c4946284d', class: `dropdown-arrow ${this.isDropdownOpen ? 'open' : ''}` }, "\u25BC")), this.isDropdownOpen && (h("div", { key: 'f651d9017bac7448cfd55dd2712b67fe0099cf2a', class: "country-dropdown" }, this.searchable && (h("div", { key: '0b5c593a2aa8976a79eb45b159ef7242c6736469', class: "search-container", onClick: this.handleSearchClick }, h("div", { key: 'd44705bca279fbbf1c3992e90014db93a0eda2c2', class: "search-input-wrapper" }, h("rebill-icon", { key: '0bfe2d73b46de9db3fc6a46b62f4720cd8ebbd59', name: "search", size: "16px", class: "search-icon" }), h("input", { key: '4aec9d63677ef103a9e23b833b6361fecf2e6c44', ref: el => (this.searchInputRef = el), type: "text", class: "search-input", placeholder: this.searchPlaceholder, value: this.searchTerm, onInput: this.handleSearchInput, onClick: this.handleSearchClick }), this.searchTerm && (h("button", { key: 'fc068fa9c0484aa3c1eb35237fc08441854a66e8', type: "button", class: "clear-search", onClick: event => {
|
|
237
237
|
event.stopPropagation();
|
|
238
238
|
this.clearSearch();
|
|
239
|
-
}, "aria-label": "Clear search" }, h("rebill-icon", { key: '
|
|
239
|
+
}, "aria-label": "Clear search" }, h("rebill-icon", { key: 'f62e8e989586b3af2f72261828f00e56216d5302', name: "x", size: "16px" })))))), this.filteredCountries.length > 0 ? (this.filteredCountries.map(country => (h("div", { key: country.code, class: "country-option", onClick: e => this.selectCountry(country, e) }, h("span", { class: "flag" }, country.flag), h("span", { class: "country-name" }, country.name), h("span", { class: "dial-code" }, country.dialCode))))) : (h("div", { class: "no-results" }, "No se encontraron resultados")))), h("input", { key: 'bd1553158f5eb5a2548f7e037843362e4a9e04c6', id: this.phoneNumberId, type: "tel", class: "input-combo-element phone-number-input", placeholder: this.placeholder, value: this.value, onInput: this.onInput, onBlur: this.onPhoneBlurPhone, disabled: this.disabled, required: this.required })), displayError && h("span", { key: 'e2f7d553f3f881a26ad5786c1205be08a99449fc', class: "error-message" }, displayError)));
|
|
240
240
|
}
|
|
241
241
|
static get is() { return "rebill-input-phone"; }
|
|
242
242
|
static get originalStyleUrls() {
|
|
@@ -228,10 +228,10 @@ export class InputSelect {
|
|
|
228
228
|
render() {
|
|
229
229
|
const selectedLabel = this.getSelectedOptionLabel();
|
|
230
230
|
const hasValue = this.value !== '';
|
|
231
|
-
return (h("div", { key: '
|
|
231
|
+
return (h("div", { key: '23c4562b47db3e895f706d3fc46f0b4ca3381eb2', class: "input-container" }, this.label && (h("label", { key: '5c5aa626f8b85e16dd4623798f517d29145b80b7', class: `input-label ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '891a09b90bec6483503c7d24e016e1f018268a9a', class: `select-wrapper ${this.disabled ? 'disabled' : ''} ${this.isOpen ? 'open' : ''}` }, h("div", { key: '6f21d55aad5ab4efab7e857dc4a59bd0fb787986', ref: el => (this.triggerRef = el), class: `input-element select-trigger ${this.error ? 'input-error' : ''} ${!hasValue ? 'placeholder' : ''} ${this.variant === 'underlined' ? 'underlined' : ''}`, style: { backgroundColor: this.backgroundColor }, onClick: this.toggleDropdown, tabIndex: this.disabled ? -1 : 0, role: "combobox", "aria-expanded": this.isOpen.toString(), "aria-haspopup": "listbox", "aria-labelledby": this.label ? `${this.id}-label` : undefined }, h("span", { key: '537ae49362d7b96233f91aeb899059e190199b17', class: "select-value", style: { fontSize: this.fontSize }, innerHTML: selectedLabel }), h("div", { key: 'd81cc47b9d93b8f4206ef1a9b6c320d0c91f867b', class: "icon-wrapper" }, this.loading ? (h("div", { class: "spinner" })) : (h("rebill-icon", { name: this.getArrowIcon(), size: "20px", class: `select-icon ${this.isOpen && this.arrowIcon === 'down' ? 'rotated' : ''}` })))), this.isOpen && (h("div", { key: '3d00b0028bdd98d99336bd23d98c5f9f4443ca5c', ref: el => (this.dropdownRef = el), class: `select-dropPosition ${this.dropPosition === 'up' ? 'open-up' : 'open-down'}`, role: "listbox" }, this.searchable && (h("div", { key: 'd3b7272792e4083a80a1fb86292b704abc6db660', class: "search-container", onClick: this.handleSearchClick }, h("div", { key: '14785ce1256f9e7f5ba6bfc6b2ae6f83f48b7e73', class: "search-input-wrapper" }, h("rebill-icon", { key: 'b4cd2ef7a511bf046a0aaa85f8010f5f05ff7b46', name: "search", size: "16px", class: "search-icon" }), h("input", { key: '4bfc8b4016b5381679b30bf219d94afa1e273e5e', ref: el => (this.searchInputRef = el), type: "text", class: "search-input", placeholder: this.searchPlaceholder, value: this.searchTerm, onInput: this.handleSearchInput, onClick: this.handleSearchClick, style: { fontSize: this.fontSize } }), this.searchTerm && (h("button", { key: 'b1c3d31391c32297d9dacd96db6d0db47e752c8b', type: "button", class: "clear-search", onClick: event => {
|
|
232
232
|
event.stopPropagation();
|
|
233
233
|
this.clearSearch();
|
|
234
|
-
}, "aria-label": "Clear search" }, h("rebill-icon", { key: '
|
|
234
|
+
}, "aria-label": "Clear search" }, h("rebill-icon", { key: 'c3b19f8b59672c5ec127d3c669f383233dedbcd5', name: "x", size: "16px" })))))), this.loading && this.filteredOptions.length === 0 ? (h("div", { class: "loading-message", style: { fontSize: this.fontSize } }, h("div", { class: "spinner" }), I18nService.translate('common.loadingOptions'))) : this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("div", { class: `select-option ${this.value === option.value ? 'selected' : ''} ${this.highlightedIndex === index ? 'highlighted' : ''}`, style: { fontSize: this.fontSize }, onClick: () => this.selectOption(option), role: "option", "aria-selected": this.value === option.value ? 'true' : 'false' }, h("span", { innerHTML: option.label }))))) : (h("div", { class: "no-results", style: { fontSize: this.fontSize } }, "No se encontraron resultados"))))), this.error && h("span", { key: 'cef33371cb5b640b8496e797045ef967f2c7f763', class: "error-message" }, this.error)));
|
|
235
235
|
}
|
|
236
236
|
static get is() { return "rebill-input-select"; }
|
|
237
237
|
static get originalStyleUrls() {
|
|
@@ -86,10 +86,10 @@ export class InputText {
|
|
|
86
86
|
'has-left-icon': !!this.leftIcon,
|
|
87
87
|
'has-right-icon': !!this.rightIcon,
|
|
88
88
|
};
|
|
89
|
-
return (h("div", { key: '
|
|
89
|
+
return (h("div", { key: '77c9d0980fb2727bbb92cd95352d5dc6a1222ddb', class: "input-container" }, !isFloating && this.label && (h("label", { key: '9e0191ce3584d46d399fba6dc3727d182df0c00a', class: `input-label ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '34abdf2bfb4587a110bbba382e5a572921a0bddc', class: wrapperClasses }, this.leftIcon && (h("div", { key: 'e893a7b7a0e6aa35e5a28acac72642b523be3323', class: "icon-left" }, h("rebill-icon", { key: 'be6eebaf5ddbea7cf5e6f581a28f289f59bd6dd3', name: this.leftIcon }))), h("input", { key: '30d8fa0b19fe4b3723f48b03fbaebc9a854bcf8f', ref: el => (this.inputElement = el), type: "text", class: inputClasses, placeholder: isFloating ? this.label : this.placeholder, value: this.value, onInput: this.onInput, onBlur: this.onBlur, disabled: this.disabled, style: {
|
|
90
90
|
paddingLeft: this.leftIcon ? '2.5rem' : '0.75rem',
|
|
91
91
|
paddingRight: this.clearable || this.rightIcon ? '2.5rem' : '0.75rem',
|
|
92
|
-
} }), isFloating && h("label", { key: '
|
|
92
|
+
} }), isFloating && h("label", { key: '2b410a985ad150cd33b3f6faff82422046c7509c', class: "input-text__input-label input-label" }, this.label), this.clearable && this.value && (h("div", { key: 'c02818e635da077ebef4b607a435874c151ccf37', class: "icon-right", onClick: this.onClear }, h("rebill-icon", { key: '05bd2ac74766c544bf83a132651c56eeabb27e54', name: "x" }))), this.rightIcon && !this.clearable && (h("div", { key: 'b2c6c967af138d90ae8cf456572bd53117859ad2', class: "icon-right", onClick: this.onRightIconClick }, h("rebill-icon", { key: '0a97d6b77588a469d296eade8ee7e5c5a47ce4bb', name: this.rightIcon })))), this.error && h("span", { key: '93caa9f68e587ec23162fa84758deeef1514d9aa', class: "error-message" }, this.error)));
|
|
93
93
|
}
|
|
94
94
|
static get is() { return "rebill-input-text"; }
|
|
95
95
|
static get originalStyleUrls() {
|
package/dist/collection/components/shared/layouts/custom/single-column/checkout-single-column.js
CHANGED
|
@@ -2,7 +2,7 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { sessionState } from "../../../../../store/session.store";
|
|
3
3
|
export class LayoutCheckoutSingleColumn {
|
|
4
4
|
render() {
|
|
5
|
-
return (h("div", { key: '
|
|
5
|
+
return (h("div", { key: '3e002c176d7f9c8e59f8274d413fed7675c6af2f', class: "checkout-single-column" }, h("header", { key: '3048e200d0382cb75dd4e5ccfca92301f3c4d0e1', class: "checkout-single-column__header" }, h("div", { key: '49dc6e0e0147267ab1e6e93f5248a04657ea2a61', class: "header-container" }, h("organization-logo", { key: '2c3c3c377ba34c1534d50c013896c0ed186cb745', organization: sessionState.data.organization }))), h("main", { key: '1dd65fafd06a0bba85dd343477d8cb732132decd', class: "checkout-single-column__main-content" }, h("slot", { key: '1cdc777463981c3c732817695d102985de61dfe9' })), h("div", { key: '97d8818dbab4842a0d6b7075aed62d2877be0b53', class: "checkout-single-column__footer-container" }, h("rebill-footer", { key: 'ea0d8b4b219cd799678f8c85fd52e97785e1885f', class: "checkout-single-column__footer-content" }))));
|
|
6
6
|
}
|
|
7
7
|
static get is() { return "rebill-checkout-single-column"; }
|
|
8
8
|
static get originalStyleUrls() {
|
|
@@ -11,7 +11,7 @@ export class Container {
|
|
|
11
11
|
width: '100%',
|
|
12
12
|
boxSizing: 'border-box',
|
|
13
13
|
};
|
|
14
|
-
return (h("div", { key: '
|
|
14
|
+
return (h("div", { key: '41ee65153152ed89e4a02334f6a6147b0db4a567', style: style }, h("slot", { key: '83ea4bef69607a69d64293d0a70338cc4603683c' })));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "rebill-container"; }
|
|
17
17
|
static get properties() {
|
|
@@ -15,7 +15,7 @@ export class Flex {
|
|
|
15
15
|
justifyContent: this.justifyContent,
|
|
16
16
|
width: '100%',
|
|
17
17
|
};
|
|
18
|
-
return (h("div", { key: '
|
|
18
|
+
return (h("div", { key: 'b143929207ed148206d00ce616e21de20d4740d6', style: style }, h("slot", { key: 'df9cefe2bb568ad39b0ee5a7b87f56d190b2f6a1' })));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "rebill-flex-container"; }
|
|
21
21
|
static get properties() {
|
|
@@ -13,7 +13,7 @@ export class Grid {
|
|
|
13
13
|
justifyContent: this.justifyContent,
|
|
14
14
|
width: '100%',
|
|
15
15
|
};
|
|
16
|
-
return (h("div", { key: '
|
|
16
|
+
return (h("div", { key: 'b59b1bb1ad4b7f7741d348052f2d7e66c257550a', style: style }, h("slot", { key: '5a567054cafbbe92aa22f8b88bc69a85a6a38ba2' })));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "rebill-grid-container"; }
|
|
19
19
|
static get properties() {
|
|
@@ -33,7 +33,7 @@ export class RebillTestModeChipMobile {
|
|
|
33
33
|
return (h("div", { class: "mode-sandbox-mobile__cards-dropdown-panel" }, h("div", { class: "mode-sandbox-mobile__cards-dropdown-panel-header" }, h("rebill-icon", { name: "card-test" }), h("rebill-typography", { variant: "subtitle2", color: COLORS_ENUM.PRIMARY_DARK }, I18nService.translate('sandbox.cardTest'))), h("div", { class: "mode-sandbox-mobile__card-details" }, h("div", { class: "mode-sandbox-mobile__card-section" }, h("div", { class: "mode-sandbox-mobile__header-content" }, h("rebill-icon", { name: "succes", color: COLORS_ENUM.GREEN }), h("rebill-typography", { variant: "subtitle2", color: COLORS_ENUM.PRIMARY_DARK }, I18nService.translate('sandbox.successPayment'))), h("div", { class: "mode-sandbox-mobile__card-row" }, h("div", { class: "mode-sandbox-mobile__card-value" }, h("rebill-typography", { variant: "subtitle3", color: COLORS_ENUM.GREY_700 }, I18nService.translate('sandbox.cardNumber')), h("div", { class: "mode-sandbox-mobile__field-value" }, h("rebill-icon", { name: "visa" }), h("rebill-typography", { variant: "subtitle2", color: COLORS_ENUM.PRIMARY_DARK }, "4539148803436467"))), h("div", { class: "mode-sandbox-mobile__card-value" }, h("rebill-typography", { variant: "subtitle3", color: COLORS_ENUM.GREY_700 }, I18nService.translate('sandbox.exp')), h("div", { class: "mode-sandbox-mobile__field-value" }, h("rebill-typography", { variant: "subtitle2", color: COLORS_ENUM.PRIMARY_DARK }, "01/99"))), h("div", { class: "mode-sandbox-mobile__card-value" }, h("rebill-typography", { variant: "subtitle3", color: COLORS_ENUM.GREY_700 }, I18nService.translate('sandbox.cvv')), h("div", { class: "mode-sandbox-mobile__field-value mode-sandbox-mobile__field-value-with-copy" }, h("rebill-typography", { variant: "subtitle2", color: COLORS_ENUM.PRIMARY_DARK }, "123"), h("div", { class: "mode-sandbox-mobile__copy-button" }, h("rebill-button", { variant: "text", size: "small", onClick: () => this.handleCopy('4539148803436467 01/99 123') }, h("rebill-icon", { name: "copy" }))))))), h("div", { class: "mode-sandbox-mobile__card-section" }, h("div", { class: "mode-sandbox-mobile__header-content" }, h("rebill-icon", { name: "rejected", color: COLORS_ENUM.ERROR }), h("rebill-typography", { variant: "subtitle2", color: COLORS_ENUM.PRIMARY_DARK }, I18nService.translate('sandbox.rejectedPayment'))), h("div", { class: "mode-sandbox-mobile__card-row" }, h("div", { class: "mode-sandbox-mobile__card-value" }, h("rebill-typography", { variant: "subtitle3", color: COLORS_ENUM.GREY_700 }, I18nService.translate('sandbox.cardNumber')), h("div", { class: "mode-sandbox-mobile__field-value" }, h("rebill-icon", { name: "visa" }), h("rebill-typography", { variant: "subtitle2", color: COLORS_ENUM.PRIMARY_DARK }, "4485364739527352"))), h("div", { class: "mode-sandbox-mobile__card-value" }, h("rebill-typography", { variant: "subtitle3", color: COLORS_ENUM.GREY_700 }, I18nService.translate('sandbox.exp')), h("div", { class: "mode-sandbox-mobile__field-value" }, h("rebill-typography", { variant: "subtitle2", color: COLORS_ENUM.PRIMARY_DARK }, "01/99"))), h("div", { class: "mode-sandbox-mobile__card-value" }, h("rebill-typography", { variant: "subtitle3", color: COLORS_ENUM.GREY_700 }, I18nService.translate('sandbox.cvv')), h("div", { class: "mode-sandbox-mobile__field-value mode-sandbox-mobile__field-value-with-copy" }, h("rebill-typography", { variant: "subtitle2", color: COLORS_ENUM.PRIMARY_DARK }, "123"), h("div", { class: "mode-sandbox-mobile__copy-button" }, h("rebill-button", { variant: "text", size: "small", onClick: () => this.handleCopy('4485364739527352 01/99 123') }, h("rebill-icon", { name: "copy" })))))))), h("div", { class: "mode-sandbox-mobile__docs-section", onClick: this.handleDocsClick }, h("rebill-typography", { variant: "subtitle2", color: COLORS_ENUM.PRIMARY }, I18nService.translate('sandbox.docs')), h("rebill-icon", { name: "external-link" }))));
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("div", { key: '
|
|
36
|
+
return (h("div", { key: '7ef3d364e1fc317517d18f6eae976a1d85fe6ac0', class: `mode-sandbox-mobile__test-mode-container ${this.isPanelVisible ? 'cards-visible' : ''}` }, this.isPanelVisible && h("div", { key: '967dcd92f52e54b6e6d54b448089a08418539730', class: "mode-sandbox-mobile__overlay" }), h("div", { key: '308e5530604fa517fcbe52a8e700630b04a9d60f', class: `mode-sandbox-mobile__test-mode-chip-mobile ${this.isPanelVisible ? 'expanded' : ''}` }, this.renderBasicChip()), this.isPanelVisible && this.renderCardsPanel()));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "rebill-mode-sandbox-mobile"; }
|
|
39
39
|
static get originalStyleUrls() {
|
|
@@ -16,11 +16,11 @@ export class SelectableCard {
|
|
|
16
16
|
this.selectableCardClick.emit(this.cardKey);
|
|
17
17
|
};
|
|
18
18
|
render() {
|
|
19
|
-
return (h("button", { key: '
|
|
19
|
+
return (h("button", { key: '4c24158fbfb72e9300cb020667c0fa67f88d6775', class: {
|
|
20
20
|
'selectable-card': true,
|
|
21
21
|
'selected': this.selected,
|
|
22
22
|
'disabled': this.disabled,
|
|
23
|
-
}, onClick: this.handleClick, disabled: this.disabled, part: "button", type: "button" }, h("div", { key: '
|
|
23
|
+
}, onClick: this.handleClick, disabled: this.disabled, part: "button", type: "button" }, h("div", { key: '5cb1e550f3e7ac20b1067df1d1071eb02612fa53', class: "icon" }, h("slot", { key: 'c11b6b312f80b180e0b6dde93469d32f8c6ebc06', name: "icon" })), h("span", { key: '60c89e7aa7c9af391c9e2f0de0f20872d1e4e9ca', class: "label" }, this.label)));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "selectable-card"; }
|
|
26
26
|
static get originalStyleUrls() {
|
|
@@ -8,14 +8,14 @@ export class SinglePaymentMethod {
|
|
|
8
8
|
paymentMethodDetails;
|
|
9
9
|
icons = [];
|
|
10
10
|
render() {
|
|
11
|
-
return (h("div", { key: '
|
|
12
|
-
this.currencyCountry === 'AR' && h("rebill-icon", { key: '
|
|
13
|
-
this.currencyCountry !== 'AR' && h("rebill-icon", { key: '
|
|
11
|
+
return (h("div", { key: '156c1e562b2444664488a2380d42a146d931b4d2', class: "single-payment-method" }, h("div", { key: '92438af1d82d60ecd43095ecd2b20e5791531df7', class: "payment-method" }, this.paymentMethod === PAYMENT_METHOD_ENUM.CARD && h("rebill-icon", { key: '0d070da6565d34eaf7d96f68b7bc3a6965a9c0d8', name: "card" }), this.paymentMethod === PAYMENT_METHOD_ENUM.BANK_TRANSFER &&
|
|
12
|
+
this.currencyCountry === 'AR' && h("rebill-icon", { key: '39fca9b18700e74ae5ca04762448b0d97fbbf53a', name: "qr-code" }), this.paymentMethod === PAYMENT_METHOD_ENUM.BANK_TRANSFER &&
|
|
13
|
+
this.currencyCountry !== 'AR' && h("rebill-icon", { key: '3f53faaf50581c921016d058ffa867d08716af96', name: "bank" }), h("rebill-typography", { key: 'ebf2f81bbcc27e0cc32d609991f7ffbdd8bd65d1', variant: "body2-small", color: COLORS_ENUM.NEUTRALS_700, style: { display: 'flex', alignItems: 'center' } }, I18nService.translate(this.paymentMethod === PAYMENT_METHOD_ENUM.CARD
|
|
14
14
|
? 'paymentMethods.cardDescription'
|
|
15
15
|
: this.paymentMethod === PAYMENT_METHOD_ENUM.BANK_TRANSFER &&
|
|
16
16
|
this.currencyCountry === 'AR'
|
|
17
17
|
? 'paymentMethods.bank_transfer_qr'
|
|
18
|
-
: `paymentMethods.${this.paymentMethod}`))), this.paymentMethod === PAYMENT_METHOD_ENUM.BANK_TRANSFER && (h("div", { key: '
|
|
18
|
+
: `paymentMethods.${this.paymentMethod}`))), this.paymentMethod === PAYMENT_METHOD_ENUM.BANK_TRANSFER && (h("div", { key: '570bcb9415b1a4d65482c3d52d497c3a9829f98e', class: "icon-container" }, this.icons.length > 0 ? (this.icons.map(iconName => h("rebill-icon", { name: iconName, key: iconName }))) : (h("rebill-icon", { name: "card" }))))));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "single-payment-method"; }
|
|
21
21
|
static get originalStyleUrls() {
|
|
@@ -242,7 +242,7 @@ export class TimelineDebitDay {
|
|
|
242
242
|
}
|
|
243
243
|
render() {
|
|
244
244
|
const events = this.buildEvents();
|
|
245
|
-
return (h("div", { key: '
|
|
245
|
+
return (h("div", { key: 'ef56072d4c83ca886b0dc7fded2d21cece3c58f8', class: "timeline-container" }, h("div", { key: '420ac37e41eac4cac58cd813fe8d32de218425ba', class: "timeline" }, events.map((event, index) => this.renderEvent(event, index === events.length - 1, index === 0)))));
|
|
246
246
|
}
|
|
247
247
|
static get is() { return "rebill-timeline-debit-day"; }
|
|
248
248
|
static get originalStyleUrls() {
|
|
@@ -163,7 +163,7 @@ export class Timeline {
|
|
|
163
163
|
}
|
|
164
164
|
render() {
|
|
165
165
|
const events = this.buildEvents();
|
|
166
|
-
return (h("div", { key: '
|
|
166
|
+
return (h("div", { key: '37de134204fd8f16fbdf92fedbe9619609082688', class: "timeline-container" }, h("div", { key: '324b73198c205eb8efa5a407ca2d4a5570145c51', class: "timeline" }, events.map((event, index) => this.renderEvent(event, index === events.length - 1, index === 0, events.length)))));
|
|
167
167
|
}
|
|
168
168
|
static get is() { return "rebill-timeline-free-trial"; }
|
|
169
169
|
static get originalStyleUrls() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renewal.model.js","sourceRoot":"","sources":["../../src/models/renewal.model.ts"],"names":[],"mappings":"","sourcesContent":["import { PLAN_FREQUENCY_ENUM } from '../components';\nimport { ENUM_INSTALLMENT_MODEL } from './enums/installment.enum';\n\n// Renewal-specific interfaces based on actual API response\nexport interface RenewalSubscriptionName {\n text: string;\n language: string;\n}\n\nexport interface RenewalSubscription {\n id: string;\n organizationId: string;\n status: string;\n name: RenewalSubscriptionName[];\n description: RenewalSubscriptionName[];\n planId: string | null;\n amount: number;\n currency: string;\n isPriceFixed: boolean;\n targetCurrency: string | null;\n isProcessing: boolean;\n frequency: {\n count: number;\n period: PLAN_FREQUENCY_ENUM;\n };\n repetitions: number;\n currentRepetitions: number;\n debitDay: number | null;\n type: string;\n lastChargeDate: string;\n nextChargeDate: string;\n remainingIterations: number;\n customerId: string;\n customerName: string;\n customerEmail: string;\n paymentMethod: string;\n cardId: string | null;\n cardLastFour: string | null;\n trialPeriodDays: number | null;\n metadata: any;\n createdAt: string;\n}\n\nexport interface RenewalPrice {\n amount: number;\n currency: string;\n country: string;\n paymentMethods: string[];\n}\n\nexport interface RenewalPaymentMethod {\n name: string;\n type: string;\n}\n\nexport interface RenewalOrganization {\n id: string;\n name: string;\n logoUrl?: string | null;\n}\n\nexport interface RenewalCardInformation {\n brand: string;\n type: string;\n isoCountry: string;\n bank: string;\n lastFour?: string;\n installments: {\n isAvailableInstallments: boolean;\n installments: {\n model: ENUM_INSTALLMENT_MODEL;\n cft: number;\n installment: number;\n totalAmount: number;\n installmentAmount: number;\n cftAmount: number;\n }[];\n selectedInstallment?: {\n cft: number;\n cftAmount: number;\n installment: number;\n installmentAmount: number;\n totalAmount: number;\n model: ENUM_INSTALLMENT_MODEL;\n };\n };\n}\n\n// Main renewal session interface matching the API response\nexport interface RenewalSession {\n id: string; // This is the session ID\n cardTokenId?: string;\n cardId?: string; // Optional, if card is saved\n cardInformation?: RenewalCardInformation;\n subscription: RenewalSubscription;\n organization: RenewalOrganization;\n price: RenewalPrice;\n paymentMethods: RenewalPaymentMethod[];\n country: string;\n createdAt: string;\n updatedAt: string;\n}\n\n// Component props interface (same as RenewalSession)\nexport interface RebillRenewalProps extends RenewalSession {\n token: string; // Token for the renewal session\n}\n"]}
|
|
1
|
+
{"version":3,"file":"renewal.model.js","sourceRoot":"","sources":["../../src/models/renewal.model.ts"],"names":[],"mappings":"","sourcesContent":["import { PLAN_FREQUENCY_ENUM } from '../components';\nimport { ENUM_INSTALLMENT_MODEL } from './enums/installment.enum';\n\n// Renewal-specific interfaces based on actual API response\nexport interface RenewalSubscriptionName {\n text: string;\n language: string;\n}\n\nexport interface RenewalSubscription {\n id: string;\n organizationId: string;\n status: string;\n name: RenewalSubscriptionName[];\n description: RenewalSubscriptionName[];\n planId: string | null;\n amount: number;\n currency: string;\n isPriceFixed: boolean;\n targetCurrency: string | null;\n isProcessing: boolean;\n frequency: {\n count: number;\n period: PLAN_FREQUENCY_ENUM;\n };\n repetitions: number;\n currentRepetitions: number;\n debitDay: number | null;\n type: string;\n lastChargeDate: string;\n nextChargeDate: string;\n remainingIterations: number;\n customerId: string;\n customerName: string;\n customerEmail: string;\n paymentMethod: string;\n cardId: string | null;\n cardLastFour: string | null;\n trialPeriodDays: number | null;\n metadata: any;\n createdAt: string;\n}\n\nexport interface RenewalPrice {\n amount: number;\n currency: string;\n country: string;\n paymentMethods: string[];\n couponCode?: string | null;\n discountPercentage?: number;\n discountedAmount?: number;\n}\n\nexport interface RenewalPaymentMethod {\n name: string;\n type: string;\n}\n\nexport interface RenewalOrganization {\n id: string;\n name: string;\n logoUrl?: string | null;\n}\n\nexport interface RenewalCardInformation {\n brand: string;\n type: string;\n isoCountry: string;\n bank: string;\n lastFour?: string;\n installments: {\n isAvailableInstallments: boolean;\n installments: {\n model: ENUM_INSTALLMENT_MODEL;\n cft: number;\n installment: number;\n totalAmount: number;\n installmentAmount: number;\n cftAmount: number;\n }[];\n selectedInstallment?: {\n cft: number;\n cftAmount: number;\n installment: number;\n installmentAmount: number;\n totalAmount: number;\n model: ENUM_INSTALLMENT_MODEL;\n };\n };\n}\n\n// Main renewal session interface matching the API response\nexport interface RenewalSession {\n id: string; // This is the session ID\n cardTokenId?: string;\n cardId?: string; // Optional, if card is saved\n cardInformation?: RenewalCardInformation;\n subscription: RenewalSubscription;\n organization: RenewalOrganization;\n price: RenewalPrice;\n paymentMethods: RenewalPaymentMethod[];\n country: string;\n createdAt: string;\n updatedAt: string;\n}\n\n// Component props interface (same as RenewalSession)\nexport interface RebillRenewalProps extends RenewalSession {\n token: string; // Token for the renewal session\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renewal.store.js","sourceRoot":"","sources":["../../src/store/renewal.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAiC7C,MAAM,mBAAmB,GAAwB;IAC/C,KAAK,EAAE,EAAE;IACT,IAAI,EAAE;QACJ,EAAE,EAAE,EAAE;QACN,MAAM,EAAE,EAAE;QACV,WAAW,EAAE,EAAE;QACf,eAAe,EAAE;YACf,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,EAAE;YACR,UAAU,EAAE,EAAE;YACd,IAAI,EAAE,EAAE;YACR,QAAQ,EAAE,EAAE;YACZ,YAAY,EAAE;gBACZ,uBAAuB,EAAE,KAAK;gBAC9B,YAAY,EAAE,EAAE;gBAChB,mBAAmB,EAAE,SAAS;aAC/B;SACF;QACD,YAAY,EAAE;YACZ,EAAE,EAAE,EAAE;YACN,cAAc,EAAE,EAAE;YAClB,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,E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AAY,CAAC,IAAI,CAAC,eAAe,GAAG;gBAClC,KAAK,EAAE,EAAE;gBACT,IAAI,EAAE,EAAE;gBACR,UAAU,EAAE,EAAE;gBACd,IAAI,EAAE,EAAE;gBACR,QAAQ,EAAE,EAAE;gBACZ,YAAY,EAAE;oBACZ,uBAAuB,EAAE,KAAK;oBAC9B,YAAY,EAAE,EAAE;oBAChB,mBAAmB,EAAE,SAAS;iBAC/B;aACF,CAAC;QACJ,CAAC;IACH,CAAC;IAED,MAAM,CAAC,iBAAiB,CAAC,MAAc;QACrC,YAAY,CAAC,IAAI,GAAG;YAClB,GAAG,YAAY,CAAC,IAAI;YACpB,cAAc,EAAE,MAAM;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,QAAmC;QACpD,YAAY,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACnC,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,QAAgB;QACjC,YAAY,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACnC,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,WAAmB;QACvC,YAAY,CAAC,WAAW,GAAG,WAAW,CAAC;IACzC,CAAC;CACF","sourcesContent":["import { createStore } from '@stencil/store';\nimport { SavedCard } from '../api/entities/cards/types';\nimport {\n CreateAPMCheckoutResponse,\n CreateCardCheckoutResponse,\n} from '../api/entities/checkout/types';\nimport { ENUM_INSTALLMENT_MODEL } from '../models/enums/installment.enum';\nimport { PAYMENT_METHOD_ENUM } from '../models/enums/payment-methods.enum';\nimport { RebillRenewalProps, RenewalSession } from '../models/renewal.model';\n\nexport interface RenewalSessionState {\n token: string;\n data: RenewalSession;\n form: {\n isLoading: boolean;\n selectedPaymentMethod?: PAYMENT_METHOD_ENUM;\n selectedCard?: SavedCard;\n cvv?: string;\n savedCards: SavedCard[];\n checkoutResponse?: CreateCardCheckoutResponse | CreateAPMCheckoutResponse | null;\n userIdentification?: {\n documentType?: string;\n documentNumber?: string;\n };\n selectedBankId?: string;\n };\n isInitialized: boolean;\n fetchingInstallments: boolean;\n cardMode?: 'input' | 'select' | null;\n deviceId?: string;\n providerKey?: string;\n}\n\nconst initialRenewalState: RenewalSessionState = {\n token: '',\n data: {\n id: '',\n cardId: '',\n cardTokenId: '',\n cardInformation: {\n brand: '',\n type: '',\n isoCountry: '',\n bank: '',\n lastFour: '',\n installments: {\n isAvailableInstallments: false,\n installments: [],\n selectedInstallment: undefined,\n },\n },\n subscription: {\n id: '',\n organizationId: '',\n status: '',\n name: [],\n description: [],\n planId: null,\n amount: 0,\n currency: '',\n isPriceFixed: false,\n targetCurrency: null,\n isProcessing: false,\n frequency: {\n count: 0,\n period: null,\n },\n repetitions: 0,\n currentRepetitions: 0,\n debitDay: null,\n type: '',\n lastChargeDate: '',\n nextChargeDate: '',\n remainingIterations: 0,\n customerId: '',\n customerName: '',\n customerEmail: '',\n paymentMethod: '',\n cardId: null,\n cardLastFour: null,\n trialPeriodDays: null,\n metadata: null,\n createdAt: '',\n },\n organization: {\n id: '',\n name: '',\n logoUrl: null,\n },\n price: {\n amount: 0,\n currency: '',\n country: '',\n paymentMethods: [],\n },\n paymentMethods: [],\n country: '',\n createdAt: '',\n updatedAt: '',\n },\n form: {\n isLoading: false,\n savedCards: [],\n },\n isInitialized: false,\n fetchingInstallments: false,\n cardMode: 'select',\n};\n\nexport const { state: renewalState, onChange } =\n createStore<RenewalSessionState>(initialRenewalState);\n\nexport class RenewalStore {\n static initializeRenewal(renewalProps: RebillRenewalProps) {\n const { token, ...allProps } = renewalProps;\n renewalState.token = token;\n renewalState.data = allProps;\n renewalState.data.country = allProps.country;\n\n if (allProps.subscription?.cardId) {\n renewalState.data.cardId = allProps.subscription.cardId;\n }\n\n renewalState.isInitialized = true;\n }\n\n static setLoading(isLoading: boolean) {\n renewalState.form = {\n ...renewalState.form,\n isLoading,\n };\n }\n\n static setSelectedPaymentMethod(paymentMethod: PAYMENT_METHOD_ENUM) {\n renewalState.form = {\n ...renewalState.form,\n selectedPaymentMethod: paymentMethod,\n };\n }\n\n static setSelectedCard(card: SavedCard) {\n renewalState.form = {\n ...renewalState.form,\n selectedCard: card,\n };\n }\n\n static setCvv(cvv: string) {\n renewalState.form = {\n ...renewalState.form,\n cvv,\n };\n }\n\n static setSavedCards(cards: SavedCard[]) {\n renewalState.form = {\n ...renewalState.form,\n savedCards: cards,\n };\n }\n\n static setCheckoutResponse(response: CreateCardCheckoutResponse | CreateAPMCheckoutResponse) {\n renewalState.form = {\n ...renewalState.form,\n checkoutResponse: response,\n };\n }\n\n static setUserIdentification(identification: { documentType?: string; documentNumber?: string }) {\n renewalState.form = {\n ...renewalState.form,\n userIdentification: {\n ...renewalState.form.userIdentification,\n ...identification,\n },\n };\n }\n\n static clearRenewal() {\n renewalState.data = initialRenewalState.data;\n renewalState.form = initialRenewalState.form;\n renewalState.isInitialized = false;\n }\n\n static getRenewalState(): RenewalSessionState {\n return renewalState;\n }\n\n static setCardId(cardId: string) {\n renewalState.data.cardId = cardId;\n }\n\n static setCardTokenId(cardTokenId: string) {\n renewalState.data.cardTokenId = cardTokenId;\n }\n\n static setFetchingInstallments(fetchingInstallments: boolean) {\n renewalState.fetchingInstallments = fetchingInstallments;\n }\n\n static setCardInformation(cardInformation: {\n brand: string;\n type: string;\n isoCountry: string;\n bank: string;\n lastFour?: string;\n installments: {\n installments: {\n model: ENUM_INSTALLMENT_MODEL;\n cft: number;\n installment: number;\n totalAmount: number;\n installmentAmount: number;\n cftAmount: number;\n }[];\n };\n }) {\n if (cardInformation) {\n renewalState.data.cardInformation = {\n ...cardInformation,\n installments: {\n ...renewalState.data.cardInformation?.installments,\n installments: cardInformation.installments.installments,\n isAvailableInstallments: !!cardInformation.installments.installments.length,\n },\n };\n } else {\n renewalState.data.cardInformation = {\n brand: '',\n type: '',\n isoCountry: '',\n bank: '',\n lastFour: '',\n installments: {\n isAvailableInstallments: false,\n installments: [],\n selectedInstallment: undefined,\n },\n };\n }\n }\n\n static setSelectedBankId(bankId: string) {\n renewalState.form = {\n ...renewalState.form,\n selectedBankId: bankId,\n };\n }\n\n static setCardMode(cardMode: 'input' | 'select' | null) {\n renewalState.cardMode = cardMode;\n }\n\n static setDeviceId(deviceId: string) {\n renewalState.deviceId = deviceId;\n }\n\n static setProviderKey(providerKey: string) {\n renewalState.providerKey = providerKey;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"renewal.store.js","sourceRoot":"","sources":["../../src/store/renewal.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAiC7C,MAAM,mBAAmB,GAAwB;IAC/C,KAAK,EAAE,EAAE;IACT,IAAI,EAAE;QACJ,EAAE,EAAE,EAAE;QACN,MAAM,EAAE,EAAE;QACV,WAAW,EAAE,EAAE;QACf,eAAe,EAAE;YACf,KAAK,EAAE,EAAE;YACT,IAAI,EAAE,EAAE;YACR,UAAU,EAAE,EAAE;YACd,IAAI,EAAE,EAAE;YACR,QAAQ,EAAE,EAAE;YACZ,YAAY,EAAE;gBACZ,uBAAuB,EAAE,KAAK;gBAC9B,YAAY,EAAE,EAAE;gBAChB,mBAAmB,EAAE,SAAS;aAC/B;SACF;QACD,YAAY,EAAE;YACZ,EAAE,EAAE,EAAE;YACN,cAAc,EAAE,EAAE;YAClB,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,EAAE;YACR,WAAW,EAAE,EAAE;YACf,MAAM,EAAE,IAAI;YACZ,MAAM,EAAE,CAAC;YACT,QAAQ,EAAE,EAAE;YACZ,YAAY,EAAE,KAAK;YACnB,cAAc,EAAE,IAAI;YACpB,YAAY,EAAE,KAAK;YACnB,SAAS,EAAE;gBACT,KAAK,EAAE,CAAC;gBACR,MAAM,EAAE,IAAI;aACb;YACD,WAAW,EAAE,CAAC;YACd,kBAAkB,EAAE,CAAC;YACrB,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,EAAE;YACR,cAAc,EAAE,EAAE;YAClB,cAAc,EAAE,EAAE;YAClB,mBAAmB,EAAE,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AC,MAAc;QACrC,YAAY,CAAC,IAAI,GAAG;YAClB,GAAG,YAAY,CAAC,IAAI;YACpB,cAAc,EAAE,MAAM;SACvB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,QAAmC;QACpD,YAAY,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACnC,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,QAAgB;QACjC,YAAY,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACnC,CAAC;IAED,MAAM,CAAC,cAAc,CAAC,WAAmB;QACvC,YAAY,CAAC,WAAW,GAAG,WAAW,CAAC;IACzC,CAAC;CACF","sourcesContent":["import { createStore } from '@stencil/store';\nimport { SavedCard } from '../api/entities/cards/types';\nimport {\n CreateAPMCheckoutResponse,\n CreateCardCheckoutResponse,\n} from '../api/entities/checkout/types';\nimport { ENUM_INSTALLMENT_MODEL } from '../models/enums/installment.enum';\nimport { PAYMENT_METHOD_ENUM } from '../models/enums/payment-methods.enum';\nimport { RebillRenewalProps, RenewalSession } from '../models/renewal.model';\n\nexport interface RenewalSessionState {\n token: string;\n data: RenewalSession;\n form: {\n isLoading: boolean;\n selectedPaymentMethod?: PAYMENT_METHOD_ENUM;\n selectedCard?: SavedCard;\n cvv?: string;\n savedCards: SavedCard[];\n checkoutResponse?: CreateCardCheckoutResponse | CreateAPMCheckoutResponse | null;\n userIdentification?: {\n documentType?: string;\n documentNumber?: string;\n };\n selectedBankId?: string;\n };\n isInitialized: boolean;\n fetchingInstallments: boolean;\n cardMode?: 'input' | 'select' | null;\n deviceId?: string;\n providerKey?: string;\n}\n\nconst initialRenewalState: RenewalSessionState = {\n token: '',\n data: {\n id: '',\n cardId: '',\n cardTokenId: '',\n cardInformation: {\n brand: '',\n type: '',\n isoCountry: '',\n bank: '',\n lastFour: '',\n installments: {\n isAvailableInstallments: false,\n installments: [],\n selectedInstallment: undefined,\n },\n },\n subscription: {\n id: '',\n organizationId: '',\n status: '',\n name: [],\n description: [],\n planId: null,\n amount: 0,\n currency: '',\n isPriceFixed: false,\n targetCurrency: null,\n isProcessing: false,\n frequency: {\n count: 0,\n period: null,\n },\n repetitions: 0,\n currentRepetitions: 0,\n debitDay: null,\n type: '',\n lastChargeDate: '',\n nextChargeDate: '',\n remainingIterations: 0,\n customerId: '',\n customerName: '',\n customerEmail: '',\n paymentMethod: '',\n cardId: null,\n cardLastFour: null,\n trialPeriodDays: null,\n metadata: null,\n createdAt: '',\n },\n organization: {\n id: '',\n name: '',\n logoUrl: null,\n },\n price: {\n amount: 0,\n currency: '',\n country: '',\n paymentMethods: [],\n couponCode: null,\n discountPercentage: 0,\n discountedAmount: 0,\n },\n paymentMethods: [],\n country: '',\n createdAt: '',\n updatedAt: '',\n },\n form: {\n isLoading: false,\n savedCards: [],\n },\n isInitialized: false,\n fetchingInstallments: false,\n cardMode: 'select',\n};\n\nexport const { state: renewalState, onChange } =\n createStore<RenewalSessionState>(initialRenewalState);\n\nexport class RenewalStore {\n static initializeRenewal(renewalProps: RebillRenewalProps) {\n const { token, ...allProps } = renewalProps;\n renewalState.token = token;\n renewalState.data = allProps;\n renewalState.data.country = allProps.country;\n\n if (allProps.subscription?.cardId) {\n renewalState.data.cardId = allProps.subscription.cardId;\n }\n\n renewalState.isInitialized = true;\n }\n\n static setLoading(isLoading: boolean) {\n renewalState.form = {\n ...renewalState.form,\n isLoading,\n };\n }\n\n static setSelectedPaymentMethod(paymentMethod: PAYMENT_METHOD_ENUM) {\n renewalState.form = {\n ...renewalState.form,\n selectedPaymentMethod: paymentMethod,\n };\n }\n\n static setSelectedCard(card: SavedCard) {\n renewalState.form = {\n ...renewalState.form,\n selectedCard: card,\n };\n }\n\n static setCvv(cvv: string) {\n renewalState.form = {\n ...renewalState.form,\n cvv,\n };\n }\n\n static setSavedCards(cards: SavedCard[]) {\n renewalState.form = {\n ...renewalState.form,\n savedCards: cards,\n };\n }\n\n static setCheckoutResponse(response: CreateCardCheckoutResponse | CreateAPMCheckoutResponse) {\n renewalState.form = {\n ...renewalState.form,\n checkoutResponse: response,\n };\n }\n\n static setUserIdentification(identification: { documentType?: string; documentNumber?: string }) {\n renewalState.form = {\n ...renewalState.form,\n userIdentification: {\n ...renewalState.form.userIdentification,\n ...identification,\n },\n };\n }\n\n static clearRenewal() {\n renewalState.data = initialRenewalState.data;\n renewalState.form = initialRenewalState.form;\n renewalState.isInitialized = false;\n }\n\n static getRenewalState(): RenewalSessionState {\n return renewalState;\n }\n\n static setCardId(cardId: string) {\n renewalState.data.cardId = cardId;\n }\n\n static setCardTokenId(cardTokenId: string) {\n renewalState.data.cardTokenId = cardTokenId;\n }\n\n static setFetchingInstallments(fetchingInstallments: boolean) {\n renewalState.fetchingInstallments = fetchingInstallments;\n }\n\n static setCardInformation(cardInformation: {\n brand: string;\n type: string;\n isoCountry: string;\n bank: string;\n lastFour?: string;\n installments: {\n installments: {\n model: ENUM_INSTALLMENT_MODEL;\n cft: number;\n installment: number;\n totalAmount: number;\n installmentAmount: number;\n cftAmount: number;\n }[];\n };\n }) {\n if (cardInformation) {\n renewalState.data.cardInformation = {\n ...cardInformation,\n installments: {\n ...renewalState.data.cardInformation?.installments,\n installments: cardInformation.installments.installments,\n isAvailableInstallments: !!cardInformation.installments.installments.length,\n },\n };\n } else {\n renewalState.data.cardInformation = {\n brand: '',\n type: '',\n isoCountry: '',\n bank: '',\n lastFour: '',\n installments: {\n isAvailableInstallments: false,\n installments: [],\n selectedInstallment: undefined,\n },\n };\n }\n }\n\n static setSelectedBankId(bankId: string) {\n renewalState.form = {\n ...renewalState.form,\n selectedBankId: bankId,\n };\n }\n\n static setCardMode(cardMode: 'input' | 'select' | null) {\n renewalState.cardMode = cardMode;\n }\n\n static setDeviceId(deviceId: string) {\n renewalState.deviceId = deviceId;\n }\n\n static setProviderKey(providerKey: string) {\n renewalState.providerKey = providerKey;\n }\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CardFieldsWrapper$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { C as CardFieldsWrapper$1, d as defineCustomElement$1 } from './p-B7uE6iBd.js';
|
|
2
2
|
|
|
3
3
|
const CardFieldsWrapper = CardFieldsWrapper$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CollapsibleCard$1, d as defineCustomElement$1 } from './p-
|
|
1
|
+
import { C as CollapsibleCard$1, d as defineCustomElement$1 } from './p-Dp8EoajW.js';
|
|
2
2
|
|
|
3
3
|
const CollapsibleCard = CollapsibleCard$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { proxyCustomElement, H, h } from './p-8BpuJ_V5.js';
|
|
2
2
|
import { c as formatAmount, e as instance, j as SESSION_DISCOUNT_TYPE_ENUM, s as state, I as I18nService } from './p-CMzpQU2o.js';
|
|
3
3
|
import { C as COLORS_ENUM } from './p-DA598vBj.js';
|
|
4
|
-
import { d as defineCustomElement$4 } from './p-
|
|
4
|
+
import { d as defineCustomElement$4 } from './p-xNgCL9nV.js';
|
|
5
5
|
import { d as defineCustomElement$3 } from './p-CWY-g0zG.js';
|
|
6
6
|
import { d as defineCustomElement$2 } from './p-C_txMekS.js';
|
|
7
|
-
import { d as defineCustomElement$1 } from './p-
|
|
7
|
+
import { d as defineCustomElement$1 } from './p-DKn8wDv6.js';
|
|
8
8
|
|
|
9
9
|
const timelineFreeTrialCss = ".timeline-container{width:100%;margin:0 auto}.timeline{display:flex;flex-direction:column;gap:4px;padding:16px;background:var(--rebill-color-background);border:1px solid var(--rebill-color-border);border-radius:8px;justify-content:space-evenly}.timeline-event{display:flex;align-items:flex-start;gap:8px;position:relative}.timeline-icon-container{display:flex;flex-direction:column;align-items:center;flex-shrink:0;position:relative;gap:4px}.timeline-connector-container{display:flex;flex-direction:column;align-items:center;flex-shrink:0;position:relative;min-height:40px}.timeline-icon{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;flex-shrink:0;z-index:2;gap:4px}.timeline-connector-divider{display:block;flex-shrink:0;z-index:1}.event-content{flex:1;display:flex;flex-direction:column}.discount-info{margin-top:8px}@media (max-width: 1024px){.timeline{border:none;padding:0}.timeline-event{gap:12px;align-items:flex-start}.timeline-icon{width:28px;height:28px}}";
|
|
10
10
|
|
|
@@ -172,7 +172,7 @@ const Timeline = /*@__PURE__*/ proxyCustomElement(class Timeline extends H {
|
|
|
172
172
|
}
|
|
173
173
|
render() {
|
|
174
174
|
const events = this.buildEvents();
|
|
175
|
-
return (h("div", { key: '
|
|
175
|
+
return (h("div", { key: '37de134204fd8f16fbdf92fedbe9619609082688', class: "timeline-container" }, h("div", { key: '324b73198c205eb8efa5a407ca2d4a5570145c51', class: "timeline" }, events.map((event, index) => this.renderEvent(event, index === events.length - 1, index === 0, events.length)))));
|
|
176
176
|
}
|
|
177
177
|
static get style() { return timelineFreeTrialCss; }
|
|
178
178
|
}, [256, "rebill-timeline-free-trial", {
|
|
@@ -225,6 +225,6 @@ function defineCustomElement() {
|
|
|
225
225
|
defineCustomElement();
|
|
226
226
|
|
|
227
227
|
export { Timeline as T, defineCustomElement as d };
|
|
228
|
-
//# sourceMappingURL=p-
|
|
228
|
+
//# sourceMappingURL=p-3K2fnS0h.js.map
|
|
229
229
|
|
|
230
|
-
//# sourceMappingURL=p-
|
|
230
|
+
//# sourceMappingURL=p-3K2fnS0h.js.map
|