rebill-web-components-sdk 1.14.0 → 1.14.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/card-fields-wrapper_16.cjs.entry.js +102 -29
- package/dist/cjs/card-skeleton_2.cjs.entry.js +1 -1
- 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/rebill-alert.cjs.entry.js +2 -2
- package/dist/cjs/rebill-card-carousel.cjs.entry.js +1 -1
- package/dist/cjs/rebill-card.rebill-input-email.rebill-mode-sandbox.rebill-mode-sandbox-mobile.user-information.entry.cjs.js.map +1 -0
- package/dist/cjs/{rebill-card_3.cjs.entry.js → rebill-card_5.cjs.entry.js} +126 -5
- 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-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-save-card.cjs.entry.js +215 -48
- package/dist/cjs/rebill-save-card.entry.cjs.js.map +1 -1
- 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/save-card-success.cjs.entry.js +1 -1
- package/dist/cjs/save-card.store-C0-ettWj.js +114 -0
- package/dist/cjs/save-card.store-C0-ettWj.js.map +1 -0
- package/dist/collection/api/entities/sessions/save-card-types.js.map +1 -1
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkout/address/address-form/address-form.js +19 -1
- package/dist/collection/components/checkout/address/address-form/address-form.js.map +1 -1
- package/dist/collection/components/checkout/address/address.js +84 -16
- package/dist/collection/components/checkout/address/address.js.map +1 -1
- package/dist/collection/components/checkout/payment-method-selector/card-fields/iframe/CardIframe.js +13 -8
- package/dist/collection/components/checkout/payment-method-selector/card-fields/iframe/CardIframe.js.map +1 -1
- package/dist/collection/components/save-card/rebill-save-card.css +22 -4
- package/dist/collection/components/save-card/rebill-save-card.js +373 -54
- package/dist/collection/components/save-card/rebill-save-card.js.map +1 -1
- package/dist/collection/components/save-card/save-card-success.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-email/input-email.js +3 -3
- 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/store/save-card.store.js +67 -0
- package/dist/collection/store/save-card.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/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-DfYEqVHr.js → p-1WdafZG0.js} +4 -4
- package/dist/components/{p-DfYEqVHr.js.map → p-1WdafZG0.js.map} +1 -1
- package/dist/components/{p-qCb12gak.js → p-3Ihmrdft.js} +6 -6
- package/dist/components/{p-qCb12gak.js.map → p-3Ihmrdft.js.map} +1 -1
- package/dist/components/p-8BpuJ_V5.js.map +1 -1
- package/dist/components/{p-CCA0nTis.js → p-B1btJnXD.js} +3 -3
- package/dist/components/{p-CCA0nTis.js.map → p-B1btJnXD.js.map} +1 -1
- package/dist/components/{p-DHn1KNTn.js → p-B89k6_xt.js} +3 -3
- package/dist/components/{p-DHn1KNTn.js.map → p-B89k6_xt.js.map} +1 -1
- package/dist/components/{p-DLZE3LVM.js → p-BH6zJexK.js} +5 -5
- package/dist/components/{p-DLZE3LVM.js.map → p-BH6zJexK.js.map} +1 -1
- package/dist/components/{p-BZxvjXEC.js → p-BJ2zD3os.js} +3 -3
- package/dist/components/{p-BZxvjXEC.js.map → p-BJ2zD3os.js.map} +1 -1
- package/dist/components/{p-87ZC8uIa.js → p-BKdB3oFz.js} +91 -23
- package/dist/components/p-BKdB3oFz.js.map +1 -0
- package/dist/components/{p-jUI1lEeR.js → p-BUGY_mo4.js} +6 -6
- package/dist/components/{p-jUI1lEeR.js.map → p-BUGY_mo4.js.map} +1 -1
- package/dist/components/p-Bwi147bt.js +111 -0
- package/dist/components/p-Bwi147bt.js.map +1 -0
- package/dist/components/{p-DZ9qxFFv.js → p-ByXGiP3o.js} +3 -3
- package/dist/components/{p-DZ9qxFFv.js.map → p-ByXGiP3o.js.map} +1 -1
- package/dist/components/{p-BiGQe-Yz.js → p-C5EWL51u.js} +3 -3
- package/dist/components/{p-BiGQe-Yz.js.map → p-C5EWL51u.js.map} +1 -1
- package/dist/components/{p-B77GMAoY.js → p-C910ppCS.js} +5 -5
- package/dist/components/{p-B77GMAoY.js.map → p-C910ppCS.js.map} +1 -1
- package/dist/components/{p-BCdVi2Dn.js → p-CHY0Axj0.js} +3 -3
- package/dist/components/{p-BCdVi2Dn.js.map → p-CHY0Axj0.js.map} +1 -1
- package/dist/components/{p-DDlyMcpw.js → p-COW97bWc.js} +3 -3
- package/dist/components/{p-DDlyMcpw.js.map → p-COW97bWc.js.map} +1 -1
- package/dist/components/{p-BRA2Q28g.js → p-CTuYoS-i.js} +3 -3
- package/dist/components/{p-BRA2Q28g.js.map → p-CTuYoS-i.js.map} +1 -1
- package/dist/components/{p-Bm-V0Wjr.js → p-CfTcm65s.js} +3 -3
- package/dist/components/{p-Bm-V0Wjr.js.map → p-CfTcm65s.js.map} +1 -1
- package/dist/components/{p-CEYFBN7i.js → p-CgH4O9wo.js} +7 -5
- package/dist/components/p-CgH4O9wo.js.map +1 -0
- package/dist/components/{p-D4_8mp40.js → p-CgMB67-H.js} +5 -5
- package/dist/components/{p-D4_8mp40.js.map → p-CgMB67-H.js.map} +1 -1
- package/dist/components/{p-C7ZDl2RV.js → p-CmkDHbBC.js} +3 -3
- package/dist/components/{p-C7ZDl2RV.js.map → p-CmkDHbBC.js.map} +1 -1
- package/dist/components/{p-BQYcBHS2.js → p-Cua1mcO8.js} +4 -4
- package/dist/components/{p-BQYcBHS2.js.map → p-Cua1mcO8.js.map} +1 -1
- package/dist/components/{p-BRyONfjg.js → p-D0EWTEtS.js} +3 -3
- package/dist/components/{p-BRyONfjg.js.map → p-D0EWTEtS.js.map} +1 -1
- package/dist/components/{p-BuVrQmQt.js → p-DFDw4MdH.js} +4 -4
- package/dist/components/{p-BuVrQmQt.js.map → p-DFDw4MdH.js.map} +1 -1
- package/dist/components/{p-CtigCUvO.js → p-DJKDQKKd.js} +3 -3
- package/dist/components/{p-CtigCUvO.js.map → p-DJKDQKKd.js.map} +1 -1
- package/dist/components/{p-2fMjtqFV.js → p-DLWoy271.js} +3 -3
- package/dist/components/{p-2fMjtqFV.js.map → p-DLWoy271.js.map} +1 -1
- package/dist/components/{p-xsCsaZ2p.js → p-DON8wehW.js} +4 -4
- package/dist/components/{p-xsCsaZ2p.js.map → p-DON8wehW.js.map} +1 -1
- package/dist/components/{p-CiUKc0hs.js → p-DPge7f8E.js} +5 -5
- package/dist/components/{p-CiUKc0hs.js.map → p-DPge7f8E.js.map} +1 -1
- package/dist/components/{p-COjLaOqL.js → p-DYqD-pCX.js} +3 -3
- package/dist/components/{p-COjLaOqL.js.map → p-DYqD-pCX.js.map} +1 -1
- package/dist/components/{p-SIJDmwq0.js → p-D_FXxyrh.js} +3 -3
- package/dist/components/{p-SIJDmwq0.js.map → p-D_FXxyrh.js.map} +1 -1
- package/dist/components/{p-BFvCmiVf.js → p-DcewHmbH.js} +3 -3
- package/dist/components/{p-BFvCmiVf.js.map → p-DcewHmbH.js.map} +1 -1
- package/dist/components/{p-3sc5p1S1.js → p-Di6CGqhM.js} +4 -4
- package/dist/components/{p-3sc5p1S1.js.map → p-Di6CGqhM.js.map} +1 -1
- package/dist/components/{p-CA2wncS8.js → p-DnO9ETJ-.js} +4 -4
- package/dist/components/{p-CA2wncS8.js.map → p-DnO9ETJ-.js.map} +1 -1
- package/dist/components/{p-D264GbCo.js → p-Dp1qr9HC.js} +4 -4
- package/dist/components/{p-D264GbCo.js.map → p-Dp1qr9HC.js.map} +1 -1
- package/dist/components/{p-DWQXSS-9.js → p-DpGsdz9-.js} +6 -6
- package/dist/components/{p-DWQXSS-9.js.map → p-DpGsdz9-.js.map} +1 -1
- package/dist/components/{p-CWcIo9VA.js → p-Dq0CI_AE.js} +4 -4
- package/dist/components/{p-CWcIo9VA.js.map → p-Dq0CI_AE.js.map} +1 -1
- package/dist/components/{p-CylGwUrH.js → p-Dr0xSYhQ.js} +4 -4
- package/dist/components/{p-CylGwUrH.js.map → p-Dr0xSYhQ.js.map} +1 -1
- package/dist/components/{p-Cxq61FXy.js → p-I-Ug9mYZ.js} +3 -3
- package/dist/components/{p-Cxq61FXy.js.map → p-I-Ug9mYZ.js.map} +1 -1
- package/dist/components/{p-CcMg9ZYY.js → p-MvA0QFx7.js} +7 -7
- package/dist/components/{p-CcMg9ZYY.js.map → p-MvA0QFx7.js.map} +1 -1
- package/dist/components/{p-DamML5Nw.js → p-_7thrXj4.js} +16 -11
- package/dist/components/p-_7thrXj4.js.map +1 -0
- package/dist/components/{p-DnijLaRX.js → p-cExSE7J-.js} +5 -5
- package/dist/components/{p-DnijLaRX.js.map → p-cExSE7J-.js.map} +1 -1
- package/dist/components/{p-BnD3UzU7.js → p-jzFI1Uox.js} +9 -9
- package/dist/components/{p-BnD3UzU7.js.map → p-jzFI1Uox.js.map} +1 -1
- package/dist/components/{p-DtUgdTC9.js → p-kfkNkZ54.js} +4 -4
- package/dist/components/{p-DtUgdTC9.js.map → p-kfkNkZ54.js.map} +1 -1
- package/dist/components/{p-84u3l7mA.js → p-kjW6ymd_.js} +3 -3
- package/dist/components/{p-84u3l7mA.js.map → p-kjW6ymd_.js.map} +1 -1
- package/dist/components/{p-B9wPHpzo.js → p-lsoOQ3ly.js} +10 -10
- package/dist/components/{p-B9wPHpzo.js.map → p-lsoOQ3ly.js.map} +1 -1
- package/dist/components/{p-lN9vCyxi.js → p-v_0FeR3T.js} +5 -5
- package/dist/components/{p-lN9vCyxi.js.map → p-v_0FeR3T.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-change-card.js +25 -25
- 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 +37 -37
- 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-email.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 +28 -28
- package/dist/components/rebill-save-card.js +289 -108
- package/dist/components/rebill-save-card.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 +5 -5
- package/dist/components/save-card-success.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/card-fields-wrapper_16.entry.js +102 -29
- package/dist/esm/card-skeleton_2.entry.js +1 -1
- package/dist/esm/collapsible-card_3.entry.js +2 -2
- 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/rebill-alert.entry.js +2 -2
- package/dist/esm/rebill-card-carousel.entry.js +1 -1
- package/dist/esm/rebill-card.rebill-input-email.rebill-mode-sandbox.rebill-mode-sandbox-mobile.user-information.entry.js.map +1 -0
- package/dist/esm/{rebill-card_3.entry.js → rebill-card_5.entry.js} +127 -8
- package/dist/esm/rebill-container_2.entry.js +2 -2
- package/dist/esm/rebill-flex-container.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-save-card.entry.js +216 -49
- package/dist/esm/rebill-save-card.entry.js.map +1 -1
- package/dist/esm/rebill-vertical-divider.entry.js +1 -1
- package/dist/esm/rebill-web-components-sdk.js +1 -1
- package/dist/esm/save-card-success.entry.js +1 -1
- package/dist/esm/save-card.store-BM_SO0jb.js +111 -0
- package/dist/esm/save-card.store-BM_SO0jb.js.map +1 -0
- package/dist/rebill-web-components-sdk/p-0f61d4ee.entry.js +2 -0
- package/dist/rebill-web-components-sdk/p-0f61d4ee.entry.js.map +1 -0
- package/dist/rebill-web-components-sdk/{p-ec1f70cb.entry.js → p-26ebd8f3.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-cc1bae75.entry.js → p-2d14392a.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-19e00efb.entry.js → p-3a9f4f48.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-4091d28e.entry.js +2 -0
- package/dist/rebill-web-components-sdk/{p-0729aaef.entry.js → p-43e34e5e.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-f3e245b1.entry.js → p-66df6d6e.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-78afb857.entry.js +2 -0
- package/dist/rebill-web-components-sdk/p-78afb857.entry.js.map +1 -0
- package/dist/rebill-web-components-sdk/p-83aceff4.entry.js +2 -0
- package/dist/rebill-web-components-sdk/p-91c54933.entry.js +2 -0
- package/dist/rebill-web-components-sdk/{p-e5ef5347.entry.js → p-9a552223.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-BbRjSt43.js +2 -0
- package/dist/rebill-web-components-sdk/p-BbRjSt43.js.map +1 -0
- package/dist/rebill-web-components-sdk/p-D8cwEAmw.js.map +1 -1
- package/dist/rebill-web-components-sdk/{p-723f9a4f.entry.js → p-ab09fb85.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/{p-3fef5bce.entry.js → p-d568e485.entry.js} +2 -2
- package/dist/rebill-web-components-sdk/p-db086835.entry.js +2 -0
- package/dist/rebill-web-components-sdk/{p-a491b682.entry.js.map → p-db086835.entry.js.map} +1 -1
- package/dist/rebill-web-components-sdk/p-fc94bfc9.entry.js +2 -0
- package/dist/rebill-web-components-sdk/p-fc94bfc9.entry.js.map +1 -0
- package/dist/rebill-web-components-sdk/rebill-card.rebill-input-email.rebill-mode-sandbox.rebill-mode-sandbox-mobile.user-information.entry.esm.js.map +1 -0
- package/dist/rebill-web-components-sdk/rebill-save-card.entry.esm.js.map +1 -1
- package/dist/rebill-web-components-sdk/rebill-web-components-sdk.esm.js +1 -1
- package/dist/types/api/entities/sessions/save-card-types.d.ts +1 -0
- package/dist/types/components/checkout/address/address-form/address-form.d.ts +7 -0
- package/dist/types/components/checkout/address/address.d.ts +10 -0
- package/dist/types/components/save-card/rebill-save-card.d.ts +52 -2
- package/dist/types/components.d.ts +94 -4
- package/dist/types/store/save-card.store.d.ts +29 -0
- package/package.json +1 -1
- package/dist/cjs/rebill-card.rebill-input-email.user-information.entry.cjs.js.map +0 -1
- package/dist/cjs/rebill-mode-sandbox.rebill-mode-sandbox-mobile.entry.cjs.js.map +0 -1
- package/dist/cjs/rebill-mode-sandbox_2.cjs.entry.js +0 -128
- package/dist/cjs/save-card.store-BfkywQ8a.js +0 -47
- package/dist/cjs/save-card.store-BfkywQ8a.js.map +0 -1
- package/dist/components/p-87ZC8uIa.js.map +0 -1
- package/dist/components/p-CEYFBN7i.js.map +0 -1
- package/dist/components/p-DamML5Nw.js.map +0 -1
- package/dist/components/p-Dx3yZEnZ.js +0 -44
- package/dist/components/p-Dx3yZEnZ.js.map +0 -1
- package/dist/esm/rebill-card.rebill-input-email.user-information.entry.js.map +0 -1
- package/dist/esm/rebill-mode-sandbox.rebill-mode-sandbox-mobile.entry.js.map +0 -1
- package/dist/esm/rebill-mode-sandbox_2.entry.js +0 -125
- package/dist/esm/save-card.store-C1USvXoT.js +0 -44
- package/dist/esm/save-card.store-C1USvXoT.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-33e1e225.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-33e1e225.entry.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-8b2df3d4.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-8b2df3d4.entry.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-IYNhYifJ.js +0 -2
- package/dist/rebill-web-components-sdk/p-IYNhYifJ.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-a25de6a7.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-a491b682.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-bd2976fb.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-bd2976fb.entry.js.map +0 -1
- package/dist/rebill-web-components-sdk/p-e338cbb0.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-eb451b53.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-ed14911b.entry.js +0 -2
- package/dist/rebill-web-components-sdk/p-ed14911b.entry.js.map +0 -1
- package/dist/rebill-web-components-sdk/rebill-card.rebill-input-email.user-information.entry.esm.js.map +0 -1
- package/dist/rebill-web-components-sdk/rebill-mode-sandbox.rebill-mode-sandbox-mobile.entry.esm.js.map +0 -1
- /package/dist/rebill-web-components-sdk/{p-ec1f70cb.entry.js.map → p-26ebd8f3.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-cc1bae75.entry.js.map → p-2d14392a.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-19e00efb.entry.js.map → p-3a9f4f48.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-e338cbb0.entry.js.map → p-4091d28e.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-0729aaef.entry.js.map → p-43e34e5e.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-f3e245b1.entry.js.map → p-66df6d6e.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-a25de6a7.entry.js.map → p-83aceff4.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-eb451b53.entry.js.map → p-91c54933.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-e5ef5347.entry.js.map → p-9a552223.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-723f9a4f.entry.js.map → p-ab09fb85.entry.js.map} +0 -0
- /package/dist/rebill-web-components-sdk/{p-3fef5bce.entry.js.map → p-d568e485.entry.js.map} +0 -0
|
@@ -4,7 +4,7 @@ var index = require('./index-C-VTnc0I.js');
|
|
|
4
4
|
var renewal_store = require('./renewal.store-Ap4GKMXr.js');
|
|
5
5
|
var i18n_service = require('./i18n.service-BU6GskRx.js');
|
|
6
6
|
var index$1 = require('./index-wXf6Fdhl.js');
|
|
7
|
-
var saveCard_store = require('./save-card.store-
|
|
7
|
+
var saveCard_store = require('./save-card.store-C0-ettWj.js');
|
|
8
8
|
var config = require('./config-Do8H115c.js');
|
|
9
9
|
var assets = require('./assets-DxsAikMY.js');
|
|
10
10
|
var getPaymentMethodDisplayName = require('./get-payment-method-display-name-DiTxuFKH.js');
|
|
@@ -307,6 +307,7 @@ const Address = class {
|
|
|
307
307
|
countryOptions = [];
|
|
308
308
|
errors = null;
|
|
309
309
|
unsubscribeAddressStore;
|
|
310
|
+
unsubscribeSaveCardStore;
|
|
310
311
|
translateError(errorKey) {
|
|
311
312
|
if (!errorKey)
|
|
312
313
|
return '';
|
|
@@ -319,9 +320,12 @@ const Address = class {
|
|
|
319
320
|
async componentDidLoad() {
|
|
320
321
|
this.syncAddressLineFromStore();
|
|
321
322
|
// Si ya hay dirección en store (prefilled o vuelve al checkout), mostrar formulario completo
|
|
322
|
-
const billing =
|
|
323
|
-
if (billing?.address || billing?.city) {
|
|
323
|
+
const billing = this.getBillingAddress();
|
|
324
|
+
if (billing?.address || billing?.city || billing?.state || billing?.country || billing?.zip) {
|
|
324
325
|
this.addressCommitted = true;
|
|
326
|
+
if (billing.country) {
|
|
327
|
+
await this.loadStatesForCountry(billing.country);
|
|
328
|
+
}
|
|
325
329
|
}
|
|
326
330
|
this.unsubscribeAddressStore = i18n_service.onChange('data', () => {
|
|
327
331
|
const billingAddress = i18n_service.state.data.userInformation.address?.billingAddress;
|
|
@@ -338,15 +342,47 @@ const Address = class {
|
|
|
338
342
|
this.emitInputEventsForAddress(addressData);
|
|
339
343
|
}
|
|
340
344
|
});
|
|
345
|
+
// Subscribe a saveCardState (para save-card)
|
|
346
|
+
this.unsubscribeSaveCardStore = saveCard_store.SaveCardStore.onChange('userInformation', () => {
|
|
347
|
+
const billingAddress = saveCard_store.saveCardState.userInformation.address?.billingAddress;
|
|
348
|
+
if (billingAddress) {
|
|
349
|
+
this.addressLine = billingAddress.address ?? '';
|
|
350
|
+
const addressData = {
|
|
351
|
+
country: billingAddress.country || '',
|
|
352
|
+
state: billingAddress.state || '',
|
|
353
|
+
address: billingAddress.address || '',
|
|
354
|
+
city: billingAddress.city || '',
|
|
355
|
+
zip: billingAddress.zip || '',
|
|
356
|
+
addInformation: billingAddress.addInformation || '',
|
|
357
|
+
};
|
|
358
|
+
this.emitInputEventsForAddress(addressData);
|
|
359
|
+
}
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* Obtiene la dirección de facturación desde el store correspondiente
|
|
364
|
+
* Prioriza sessionState (checkout/renewal), sino usa saveCardState (save-card)
|
|
365
|
+
*/
|
|
366
|
+
getBillingAddress() {
|
|
367
|
+
if (i18n_service.state.isInitialized) {
|
|
368
|
+
return i18n_service.state.data?.userInformation?.address?.billingAddress;
|
|
369
|
+
}
|
|
370
|
+
if (saveCard_store.saveCardState.isInitialized) {
|
|
371
|
+
return saveCard_store.saveCardState.userInformation?.address?.billingAddress;
|
|
372
|
+
}
|
|
373
|
+
return null;
|
|
341
374
|
}
|
|
342
375
|
syncAddressLineFromStore() {
|
|
343
|
-
const billingAddress =
|
|
376
|
+
const billingAddress = this.getBillingAddress();
|
|
344
377
|
this.addressLine = billingAddress?.address ?? '';
|
|
345
378
|
}
|
|
346
379
|
disconnectedCallback() {
|
|
347
380
|
if (this.unsubscribeAddressStore) {
|
|
348
381
|
this.unsubscribeAddressStore();
|
|
349
382
|
}
|
|
383
|
+
if (this.unsubscribeSaveCardStore) {
|
|
384
|
+
this.unsubscribeSaveCardStore();
|
|
385
|
+
}
|
|
350
386
|
}
|
|
351
387
|
async handleAddressSelected(address) {
|
|
352
388
|
this.isLoadingAddress = true;
|
|
@@ -399,16 +435,16 @@ const Address = class {
|
|
|
399
435
|
address.state = partialMatch.value;
|
|
400
436
|
}
|
|
401
437
|
else {
|
|
402
|
-
address.state =
|
|
438
|
+
address.state = '';
|
|
403
439
|
}
|
|
404
440
|
}
|
|
405
441
|
}
|
|
406
|
-
|
|
442
|
+
this.setBillingAddress(address);
|
|
407
443
|
this.addressUpdated.emit({
|
|
408
444
|
country: address.country || '',
|
|
409
445
|
address: address.address || '',
|
|
410
446
|
city: address.city || '',
|
|
411
|
-
state: address.state ||
|
|
447
|
+
state: address.state || '',
|
|
412
448
|
zip: address.zip || '',
|
|
413
449
|
addInformation: address.addInformation || '',
|
|
414
450
|
});
|
|
@@ -421,6 +457,27 @@ const Address = class {
|
|
|
421
457
|
}, 500);
|
|
422
458
|
});
|
|
423
459
|
}
|
|
460
|
+
/**
|
|
461
|
+
* Guarda la dirección en el store correspondiente
|
|
462
|
+
*/
|
|
463
|
+
setBillingAddress(address) {
|
|
464
|
+
if (i18n_service.state.isInitialized) {
|
|
465
|
+
// Flujo checkout/renewal
|
|
466
|
+
i18n_service.SessionStore.setBillingAddress(address);
|
|
467
|
+
}
|
|
468
|
+
else if (saveCard_store.saveCardState.isInitialized) {
|
|
469
|
+
// Flujo save-card
|
|
470
|
+
const currentAddress = saveCard_store.saveCardState.userInformation.address?.billingAddress || {};
|
|
471
|
+
saveCard_store.SaveCardStore.setUserInformation({
|
|
472
|
+
address: {
|
|
473
|
+
billingAddress: {
|
|
474
|
+
...currentAddress,
|
|
475
|
+
...address,
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
});
|
|
479
|
+
}
|
|
480
|
+
}
|
|
424
481
|
emitInputEventsForAddress(address) {
|
|
425
482
|
// Emit input events for each address field that has a value
|
|
426
483
|
// This mimics user input to properly clear validation errors
|
|
@@ -452,16 +509,17 @@ const Address = class {
|
|
|
452
509
|
handleFreeTextAddress = (value) => {
|
|
453
510
|
// No activar modo manual en blur - solo guardar el valor
|
|
454
511
|
// El modo manual se activa con Enter (commitRequested) o click en "Ingresar manualmente"
|
|
455
|
-
|
|
512
|
+
this.setBillingAddress({ address: value });
|
|
456
513
|
this.addressLine = value;
|
|
457
514
|
this.emitInputEvent('billing-address', value);
|
|
515
|
+
const billing = this.getBillingAddress();
|
|
458
516
|
this.addressUpdated.emit({
|
|
459
|
-
country:
|
|
517
|
+
country: billing?.country ?? '',
|
|
460
518
|
address: value,
|
|
461
|
-
city:
|
|
462
|
-
state:
|
|
463
|
-
zip:
|
|
464
|
-
addInformation:
|
|
519
|
+
city: billing?.city ?? '',
|
|
520
|
+
state: billing?.state ?? '',
|
|
521
|
+
zip: billing?.zip ?? '',
|
|
522
|
+
addInformation: billing?.addInformation ?? '',
|
|
465
523
|
});
|
|
466
524
|
};
|
|
467
525
|
async loadStatesForCountry(countryCode) {
|
|
@@ -483,14 +541,14 @@ const Address = class {
|
|
|
483
541
|
async handleInput(field, value) {
|
|
484
542
|
if (value === undefined)
|
|
485
543
|
return;
|
|
486
|
-
|
|
544
|
+
this.setBillingAddress({ [field]: value });
|
|
487
545
|
// Emit input event to form to sync with form data
|
|
488
546
|
this.emitInputEvent(`billing-${field}`, value);
|
|
489
547
|
// If country changes, load states for the new country
|
|
490
548
|
if (field === 'country') {
|
|
491
549
|
await this.loadStatesForCountry(value);
|
|
492
550
|
// Clear the current state selection since the country changed
|
|
493
|
-
|
|
551
|
+
this.setBillingAddress({ state: '' });
|
|
494
552
|
}
|
|
495
553
|
}
|
|
496
554
|
renderAddressHeader() {
|
|
@@ -500,10 +558,19 @@ const Address = class {
|
|
|
500
558
|
// Solo mostrar en el search el error del campo dirección; ciudad/estado/zip tienen su error en su propio campo
|
|
501
559
|
const addressSearchError = this.translateError(this.errors?.['billing-address']) || '';
|
|
502
560
|
const errorsToShow = this.isLoadingAddress ? null : this.errors;
|
|
503
|
-
return (index.h("div", null, this.renderAddressHeader(), index.h("rebill-address-search", { value: this.addressLine, onAddressSelected: e => this.handleAddressSelected(e.detail), onFreeTextAddress: e => this.handleFreeTextAddress(e.detail), onCommitRequested: () => (this.addressCommitted = true), onManualEntryRequested: () => this.handleManualEntry(), error: addressSearchError, disabled: this.disabled, showManualEntryLink: !this.addressCommitted }), this.addressCommitted && (index.h("rebill-address-form", { countryOptions: this.countryOptions, stateOptions: this.currentBillingStateOptions, errors: errorsToShow, disabled: this.disabled, onFieldChanged: e => this.handleInput(e.detail.field, e.detail.value)
|
|
561
|
+
return (index.h("div", null, this.renderAddressHeader(), index.h("rebill-address-search", { value: this.addressLine, onAddressSelected: e => this.handleAddressSelected(e.detail), onFreeTextAddress: e => this.handleFreeTextAddress(e.detail), onCommitRequested: () => (this.addressCommitted = true), onManualEntryRequested: () => this.handleManualEntry(), error: addressSearchError, disabled: this.disabled, showManualEntryLink: !this.addressCommitted }), this.addressCommitted && (index.h("rebill-address-form", { countryOptions: this.countryOptions, stateOptions: this.currentBillingStateOptions, errors: errorsToShow, disabled: this.disabled, onFieldChanged: e => this.handleInput(e.detail.field, e.detail.value), initialValues: (() => {
|
|
562
|
+
const billing = this.getBillingAddress();
|
|
563
|
+
return {
|
|
564
|
+
country: billing?.country,
|
|
565
|
+
city: billing?.city,
|
|
566
|
+
state: billing?.state,
|
|
567
|
+
zip: billing?.zip,
|
|
568
|
+
addInformation: billing?.addInformation,
|
|
569
|
+
};
|
|
570
|
+
})() }))));
|
|
504
571
|
}
|
|
505
572
|
render() {
|
|
506
|
-
return (index.h("div", { key: '
|
|
573
|
+
return (index.h("div", { key: 'f37bec4053e01a3893cb9574cdc3f48024da9193' }, this.renderAddressForm()));
|
|
507
574
|
}
|
|
508
575
|
};
|
|
509
576
|
Address.style = addressCss;
|
|
@@ -840,7 +907,7 @@ const CardIframe = class {
|
|
|
840
907
|
this.postTokenToIframe();
|
|
841
908
|
this.postItemTypeToIframe();
|
|
842
909
|
}
|
|
843
|
-
else if (saveCard_store.saveCardState.
|
|
910
|
+
else if (saveCard_store.saveCardState.isInitialized) {
|
|
844
911
|
// Save card flow
|
|
845
912
|
this.postOrganizationIdToIframe(saveCard_store.saveCardState.organizationId);
|
|
846
913
|
if (i18n_service.state?.currentLocale) {
|
|
@@ -939,7 +1006,7 @@ const CardIframe = class {
|
|
|
939
1006
|
return;
|
|
940
1007
|
}
|
|
941
1008
|
// If in save card flow, always send null (no checkbox needed)
|
|
942
|
-
if (saveCard_store.saveCardState.
|
|
1009
|
+
if (saveCard_store.saveCardState.isInitialized) {
|
|
943
1010
|
this.iframeRef.contentWindow.postMessage({
|
|
944
1011
|
type: 'SET_ITEM_TYPE',
|
|
945
1012
|
payload: { itemType: null },
|
|
@@ -1111,7 +1178,7 @@ const CardIframe = class {
|
|
|
1111
1178
|
this.postTokenToIframe();
|
|
1112
1179
|
this.postItemTypeToIframe();
|
|
1113
1180
|
}
|
|
1114
|
-
else if (saveCard_store.saveCardState.
|
|
1181
|
+
else if (saveCard_store.saveCardState.isInitialized) {
|
|
1115
1182
|
this.postItemTypeToIframe();
|
|
1116
1183
|
}
|
|
1117
1184
|
// Send custom CSS immediately when iframe loads
|
|
@@ -1134,6 +1201,11 @@ const CardIframe = class {
|
|
|
1134
1201
|
renewal_store.RenewalStore.setCardTokenId(null);
|
|
1135
1202
|
}
|
|
1136
1203
|
}
|
|
1204
|
+
else if (saveCard_store.saveCardState.isInitialized) {
|
|
1205
|
+
if (!event.data.payload?.complete) {
|
|
1206
|
+
saveCard_store.SaveCardStore.setCardTokenId(null);
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1137
1209
|
else if (i18n_service.state.isInitialized) {
|
|
1138
1210
|
if (!event.data.payload?.complete) {
|
|
1139
1211
|
i18n_service.SessionStore.setCardId(null);
|
|
@@ -1158,7 +1230,7 @@ const CardIframe = class {
|
|
|
1158
1230
|
renewal_store.RenewalStore.setCardInformation(event.data.payload.cardInformation);
|
|
1159
1231
|
}
|
|
1160
1232
|
}
|
|
1161
|
-
else if (saveCard_store.saveCardState.
|
|
1233
|
+
else if (saveCard_store.saveCardState.isInitialized) {
|
|
1162
1234
|
// Save card flow
|
|
1163
1235
|
saveCard_store.SaveCardStore.setCardTokenId(event.data?.payload?.token);
|
|
1164
1236
|
}
|
|
@@ -1227,23 +1299,23 @@ const CardIframe = class {
|
|
|
1227
1299
|
}
|
|
1228
1300
|
};
|
|
1229
1301
|
render() {
|
|
1230
|
-
return (index.h("div", { key: '
|
|
1302
|
+
return (index.h("div", { key: 'a5d6d643d98c163b598f51113cd0e162d90d8394', style: {
|
|
1231
1303
|
width: '100%',
|
|
1232
1304
|
height: this.iframeHeight,
|
|
1233
1305
|
position: 'relative',
|
|
1234
1306
|
overflow: 'visible',
|
|
1235
|
-
} }, !this.iframeLoaded && index.h("card-skeleton", { key: '
|
|
1307
|
+
} }, !this.iframeLoaded && index.h("card-skeleton", { key: 'e7945844d93f82bfff22d6195e2f0fdd6ec72bb3' }), index.h("iframe", { key: '726d512ed422dc4f6d10e6e52c30b0dca54d0534', ref: el => (this.iframeRef = el), src: this.getIframeURL(), style: {
|
|
1236
1308
|
width: '100%',
|
|
1237
1309
|
height: '100%',
|
|
1238
1310
|
border: 'none',
|
|
1239
1311
|
overflow: 'hidden',
|
|
1240
|
-
}, title: "Card Payment Component", allow: "payment", onLoad: this.handleIframeLoad }), this.showCvcTooltip && this.tooltipPosition && (index.h("div", { key: '
|
|
1312
|
+
}, title: "Card Payment Component", allow: "payment", onLoad: this.handleIframeLoad }), this.showCvcTooltip && this.tooltipPosition && (index.h("div", { key: '89c119329ab442a8f32aa8173fc958ca699d1076', ref: el => (this.tooltipRef = el), class: "cvc-tooltip", style: {
|
|
1241
1313
|
position: 'absolute',
|
|
1242
1314
|
top: `${this.tooltipPosition.top}px`,
|
|
1243
1315
|
left: '100%',
|
|
1244
1316
|
marginLeft: '8px',
|
|
1245
1317
|
zIndex: '1000',
|
|
1246
|
-
}, onMouseEnter: this.handleTooltipMouseEnter, onMouseLeave: this.handleTooltipMouseLeave }, index.h("p", { key: '
|
|
1318
|
+
}, onMouseEnter: this.handleTooltipMouseEnter, onMouseLeave: this.handleTooltipMouseLeave }, index.h("p", { key: '1982340978040639d529510bf6b19321c760ceb8', class: "cvc-tooltip-title" }, i18n_service.I18nService.translate('cvcTooltip.title')), index.h("div", { key: '28ce4911552a6ea29ebc020ec6cd013e8e871a2c', class: "cvc-tooltip-row" }, index.h("img", { key: 'd525100f4a59428b2a96b84606f2409431c6a10a', src: assets.getAssetURL('icons/cvc-visa.svg'), class: "cvc-tooltip-card-img", alt: "" }), index.h("div", { key: '8c2af4de035f0536c9359c68fc2f5f7f40f91214', class: "cvc-tooltip-text" }, index.h("strong", { key: 'f81efd7e3ff5c91061539ddb7337dbdbff347f42' }, i18n_service.I18nService.translate('cvcTooltip.threeDigits')), index.h("p", { key: '45ab385214375fa12b03d776ed6fab508aabf1b9' }, i18n_service.I18nService.translate('cvcTooltip.threeDigitsDesc')))), index.h("div", { key: '8cf481d1fd7c5efb54d48dc98d2532230548b562', class: "cvc-tooltip-row" }, index.h("img", { key: 'f1449b7c65e09ddf59d22bc8b1634b6bd6e0beb2', src: assets.getAssetURL('icons/cvc-amex.svg'), class: "cvc-tooltip-card-img", alt: "" }), index.h("div", { key: 'cbe485d0f32f6dcc181174a74249585b6a7ac960', class: "cvc-tooltip-text" }, index.h("strong", { key: '04b73f24a5a3024f9726782689680513b226e2ed' }, i18n_service.I18nService.translate('cvcTooltip.fourDigits')), index.h("p", { key: '4a0018cd9428933330f3e9bc01bf9cdcf0980f22' }, i18n_service.I18nService.translate('cvcTooltip.fourDigitsDesc'))))))));
|
|
1247
1319
|
}
|
|
1248
1320
|
};
|
|
1249
1321
|
CardIframe.style = cardIframeCss;
|
|
@@ -1260,6 +1332,7 @@ const AddressForm = class {
|
|
|
1260
1332
|
stateOptions = [];
|
|
1261
1333
|
errors = null;
|
|
1262
1334
|
disabled = false;
|
|
1335
|
+
initialValues;
|
|
1263
1336
|
showAdditionalInformation = false;
|
|
1264
1337
|
fieldChanged;
|
|
1265
1338
|
translateError(errorKey) {
|
|
@@ -1278,7 +1351,7 @@ const AddressForm = class {
|
|
|
1278
1351
|
};
|
|
1279
1352
|
render() {
|
|
1280
1353
|
const translationKey = this.addressType === 'shipping' ? 'shippingAddress' : 'billingAddress';
|
|
1281
|
-
return (index.h("div", { key: '
|
|
1354
|
+
return (index.h("div", { key: '926d01f6003574bcba99b18f5cfbf6519c69fdbe', class: "address-form-container" }, index.h("div", { key: '445a48d0a4519b7a6bfb6fd419503ca212cab270', class: "address-container" }, index.h("rebill-input-select", { key: 'fbfd1c02a0d5971f4c3f06e45b32996b6eae54cf', error: this.translateError(this.errors?.[`${this.addressType}-country`]), id: `${this.addressType}-country`, options: this.countryOptions, placeholder: i18n_service.I18nService.translate(`${translationKey}.countryPlaceholder`), onInput: e => this.handleInput('country', e.detail.value), searchable: true, searchPlaceholder: i18n_service.I18nService.translate(`search.searchCountries`), disabled: this.disabled, value: this.initialValues?.country }), index.h("rebill-input-text", { key: 'b29bc51f6d79d66ec5d38ada733f2e934cbd9117', error: this.translateError(this.errors?.[`${this.addressType}-city`]), id: `${this.addressType}-city`, placeholder: i18n_service.I18nService.translate(`${translationKey}.cityPlaceholder`), variant: "floating", label: i18n_service.I18nService.translate(`${translationKey}.cityPlaceholder`), onInput: e => this.handleInput('city', e.detail.value), disabled: this.disabled, value: this.initialValues?.city }), index.h("div", { key: '50a31b282d0f87c0dc0804520a305a8f87c12189', class: "state-zip-row" }, index.h("rebill-input-select", { key: 'c18cb027cb216db0fcbfa07650eaa19f18b8587b', error: this.translateError(this.errors?.[`${this.addressType}-state`]), id: `${this.addressType}-state`, options: this.stateOptions, placeholder: i18n_service.I18nService.translate(`${translationKey}.statePlaceholder`), disabled: this.disabled || this.stateOptions.length === 0, onInput: e => this.handleInput('state', e.detail.value), searchable: true, searchPlaceholder: i18n_service.I18nService.translate(`${translationKey}.searchStates`), value: this.initialValues?.state }), index.h("rebill-input-text", { key: '041f692200f9d29fdc6f4ee2afc6aea678e9e9b7', error: this.translateError(this.errors?.[`${this.addressType}-zip`]), id: `${this.addressType}-zip`, placeholder: i18n_service.I18nService.translate(`${translationKey}.zipPlaceholder`), variant: "floating", label: i18n_service.I18nService.translate(`${translationKey}.zipPlaceholder`), onInput: e => this.handleInput('zip', e.detail.value), disabled: this.disabled, value: this.initialValues?.zip })), this.showAdditionalInformation && (index.h("rebill-input-text", { key: '6b62710688a1f7338b6f80f98b10ccc9fb09047a', error: this.translateError(this.errors?.[`${this.addressType}-addInformation`]), id: `${this.addressType}-addInformation`, placeholder: i18n_service.I18nService.translate(`${translationKey}.addInformationPlaceholder`), variant: "floating", label: i18n_service.I18nService.translate(`${translationKey}.addInformationPlaceholder`), onInput: e => this.handleInput('addInformation', e.detail.value), disabled: this.disabled, value: this.initialValues?.addInformation }))), index.h("div", { key: '08e025262f74f88e9c48ace679ee38c5fff14dc0', class: "search-link-wrapper" }, !this.showAdditionalInformation && (index.h("button", { key: '9711089d661fb4de8f2b0d2f70e21b2b38ad4717', class: "additional-information", type: "button", onClick: this.handleAdditionalInformation }, index.h("rebill-typography", { key: '49af22ecd14eac3d4db5b35c5d405b8696a1732b', variant: "subtitle2", color: colorClassMapper.COLORS_ENUM.SECONDARY, class: "footer-link" }, i18n_service.I18nService.translate(`${translationKey}.additionalInformation`)))))));
|
|
1282
1355
|
}
|
|
1283
1356
|
};
|
|
1284
1357
|
AddressForm.style = addressFormCss;
|
|
@@ -2049,7 +2122,7 @@ const Form = class {
|
|
|
2049
2122
|
await this.submitForm();
|
|
2050
2123
|
};
|
|
2051
2124
|
render() {
|
|
2052
|
-
return (index.h("form", { key: '
|
|
2125
|
+
return (index.h("form", { key: 'f043cfb9d0e8da2f11a0fd36d956008a30eb587c', onSubmit: e => this.handleSubmit(e), noValidate: true }, this.renderForm ? (this.renderForm({
|
|
2053
2126
|
submit: () => this.submitForm(),
|
|
2054
2127
|
formData: this.formData,
|
|
2055
2128
|
errors: this.errors,
|
|
@@ -5408,10 +5481,10 @@ const InputPhone = class {
|
|
|
5408
5481
|
const translatedError = this.translateError(this.error);
|
|
5409
5482
|
const translatedValidationError = this.translateError(this.validationError);
|
|
5410
5483
|
const displayError = translatedValidationError || translatedError;
|
|
5411
|
-
return (index.h("div", { key: '
|
|
5484
|
+
return (index.h("div", { key: '1460230e841bf61c29e0ffedd6eea8a2174c3bde', class: "input-container" }, index.h("div", { key: '8252d784f43a41571269d2142d87d76ffc0afa8c', class: inputClasses }, index.h("div", { key: 'c9536df254df27f4f0d1fbca4711862c0e2052c2', class: "input-combo-select country-selector", onClick: this.toggleDropdown }, index.h("span", { key: '38b45349dde56950f8c06544f1cbce1da3fa972d', class: "flag" }, this.selectedCountry.flag), index.h("span", { key: '84fe84173d3bf32c4a52e375c9cd7cd7d4acd7c1', class: "dial-code" }, this.selectedCountry.dialCode), index.h("span", { key: '0120d56ba107e1f50a528647bd59462efcdc4edb', class: `dropdown-arrow ${this.isDropdownOpen ? 'open' : ''}` }, "\u25BC")), this.isDropdownOpen && (index.h("div", { key: 'f849e19dacefe235676cd338e6137e4844a89d2b', class: "country-dropdown" }, this.searchable && (index.h("div", { key: 'aeabd4c1294540c2c4a8b615232181faccb88485', class: "search-container", onClick: this.handleSearchClick }, index.h("div", { key: 'c4bd435105c67425072797138be885e1fc1c4d6a', class: "search-input-wrapper" }, index.h("rebill-icon", { key: '3a01b14ec4dad622a7cd238124a96f91c0adf3c3', name: "search", size: "16px", class: "search-icon" }), index.h("input", { key: '031cfb885e41d86f24faef6346b3d4e47a822391', ref: el => (this.searchInputRef = el), type: "text", class: "search-input", placeholder: this.searchPlaceholder, value: this.searchTerm, onInput: this.handleSearchInput, onClick: this.handleSearchClick }), this.searchTerm && (index.h("button", { key: '9c3c50b064ad6291e62bdb2c4d66f31a33e43b27', type: "button", class: "clear-search", onClick: event => {
|
|
5412
5485
|
event.stopPropagation();
|
|
5413
5486
|
this.clearSearch();
|
|
5414
|
-
}, "aria-label": "Clear search" }, index.h("rebill-icon", { key: '
|
|
5487
|
+
}, "aria-label": "Clear search" }, index.h("rebill-icon", { key: '56e86127c617165718123a3610fc39896bde2b1c', name: "x", size: "16px" })))))), this.filteredCountries.length > 0 ? (this.filteredCountries.map(country => (index.h("div", { key: country.code, class: "country-option", onClick: e => this.selectCountry(country, e) }, index.h("span", { class: "flag" }, country.flag), index.h("span", { class: "country-name" }, country.name), index.h("span", { class: "dial-code" }, country.dialCode))))) : (index.h("div", { class: "no-results" }, "No se encontraron resultados")))), index.h("input", { key: '799a0c461f94f234aaaa40ef57ef367828c832ca', 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 && index.h("span", { key: '625661cb19d333d06da32b31d89caa31d0437495', class: "error-message" }, displayError)));
|
|
5415
5488
|
}
|
|
5416
5489
|
};
|
|
5417
5490
|
InputPhone.style = inputPhoneCss;
|
|
@@ -189,7 +189,7 @@ const InputCombo = class {
|
|
|
189
189
|
render() {
|
|
190
190
|
const selectedLabel = this.getSelectedOptionLabel();
|
|
191
191
|
const hasSelectValue = this.selectValue !== '';
|
|
192
|
-
return (index.h("div", { key: '
|
|
192
|
+
return (index.h("div", { key: '21978babf963dd699cc63456153ae0dc0be5457b', class: "input-container" }, this.label && (index.h("label", { key: '2de58639ed1b0d6c1342c4a42bf44301569528f2', class: `input-label ${this.disabled ? 'disabled' : ''}` }, this.label)), index.h("div", { key: 'ab808ff138d15d36757bce1950430b084adceb9c', class: `input-combo-wrapper combo-wrapper ${this.disabled ? 'disabled' : ''} ${this.error ? 'error' : ''}` }, index.h("div", { key: 'b548c102ea267b42ad7e90559d97271fbb5e91b7', class: "select-section", style: { width: this.selectWidth } }, index.h("div", { key: 'fcc1828a74dde49cf6089637ae42d25ee7764374', 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" }, index.h("span", { key: 'bddec0b73e4da607021f9ae38d8d5185c107fd9a', class: "select-value" }, selectedLabel), index.h("div", { key: 'ac660349497dece76542cbcaccd735b8e0133617', class: "icon-wrapper" }, index.h("rebill-icon", { key: '9be4f23a0fe6a83ee828f92cd5804fd72109fc2b', name: "chevron-up-down", size: "20px", class: "select-icon" }))), this.isOpen && (index.h("div", { key: '41fe387a47213e475784d0bb9e2639587550fad3', ref: el => (this.dropdownRef = el), class: "select-dropdown", role: "listbox" }, this.options.map((option, index$1) => (index.h("div", { class: `select-option ${this.selectValue === option.value ? 'selected' : ''} ${this.highlightedIndex === index$1 ? 'highlighted' : ''}`, onClick: () => this.selectOption(option), role: "option", "aria-selected": this.selectValue === option.value ? 'true' : 'false' }, option.label)))))), index.h("div", { key: '4f77501fb39e40956469a64071dfe76154cd09f5', class: "combo-divider" }), index.h("div", { key: '75aed3ba97af25bbc707a661ac61053db939c946', class: "input-section" }, index.h("input", { key: '0583bd5baf5b3e1036bf3a0a6682b6ba9f665f67', 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 && index.h("span", { key: 'ed31be8e12d877a7e4e34d164f78cc90a3500c79', class: "error-message" }, this.error)));
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
InputCombo.style = inputComboCss;
|
|
@@ -27,7 +27,7 @@ const CollapsibleCard = class {
|
|
|
27
27
|
this.toggled.emit(this.isOpen);
|
|
28
28
|
};
|
|
29
29
|
render() {
|
|
30
|
-
return (index.h("div", { key: '
|
|
30
|
+
return (index.h("div", { key: '68b26eccac2cef4d777dcdb2eeaac36fe2331e15', class: `collapsible-card ${this.variant}` }, index.h("button", { key: 'f64b2ca3cac02f7eaf9b0634ec7dda58bd1ee1cd', class: "collapsible-card-header", onClick: this.toggle, "aria-expanded": this.isOpen, type: "button" }, index.h("rebill-typography", { key: 'd4f1f18cc22b60da0cb233fc79ea93b6ca8364bc', variant: this.variant === 'flat' ? 'subtitle2' : 'overline', color: colorClassMapper.COLORS_ENUM.TEXT_PRIMARY }, this.header), index.h("span", { key: '63f8bb46ce58585e214ff5bed409c09554faa2a4', class: { chevron: true, open: this.isOpen } }, index.h("rebill-icon", { key: 'f04954e7e5640a7f6e91906dd88d910bd921b45f', name: "chevron-down", size: "20px", color: "currentColor" }))), index.h("div", { key: '34b86ba2c04f4b79d5ade66553108351b214e921', class: { content: true, open: this.isOpen } }, index.h("slot", { key: 'f5bd4a2305c0d750015bf61461a0662dbc8c6cf5' }))));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
CollapsibleCard.style = collapsibleCardCss;
|
|
@@ -215,7 +215,7 @@ const Divider = class {
|
|
|
215
215
|
index.registerInstance(this, hostRef);
|
|
216
216
|
}
|
|
217
217
|
render() {
|
|
218
|
-
return index.h("div", { key: '
|
|
218
|
+
return index.h("div", { key: 'c0b8c27f99bd5c1bcdc1174af037563ca3a32608', class: "rebill-divider" });
|
|
219
219
|
}
|
|
220
220
|
};
|
|
221
221
|
Divider.style = dividerCss;
|