@justifi/webcomponents 6.14.4-rc.2 → 6.14.4
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/LICENSE +21 -0
- package/dist/cjs/{Analytics-DahOCpJB.js → Analytics-CMv0MKQ4.js} +3 -3
- package/dist/cjs/{Api-B4fSXAdi.js → Api-ChUqJ75C.js} +2 -2
- package/dist/cjs/{Plaid-CbaU5Arm.js → Plaid-B2o4c_Ej.js} +2 -0
- package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +9 -9
- package/dist/cjs/{additional-questions_5.cjs.entry.js → additional-questions_4.cjs.entry.js} +0 -16
- package/dist/cjs/additional-statement_8.cjs.entry.js +8 -8
- package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +2 -2
- package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +3 -3
- package/dist/cjs/bank-account-form.cjs.entry.js +77 -27
- package/dist/cjs/{business.service-BAjtyKsg.js → business.service-BSoN1ENP.js} +2 -2
- package/dist/cjs/card-form.cjs.entry.js +79 -26
- package/dist/cjs/{check-pkg-version-DR4Ghb6-.js → check-pkg-version-mt-o0WFo.js} +1 -1
- package/dist/cjs/{checkout-actions-Cm38ZPqN.js → checkout-actions-VCJi-q4z.js} +2 -2
- package/dist/cjs/{checkout.service-DyL8PSeF.js → checkout.service-BDUrLWyA.js} +2 -2
- package/dist/cjs/{checkout.store-CZHrIuaP.js → checkout.store-DOa1-SjA.js} +18 -4
- package/dist/cjs/{payments-list-params-state-vGJZ6Oe2.js → checkouts-list-params-state-DDpRrUTY.js} +1 -1
- package/dist/cjs/{config-state-BIgGhhe9.js → config-state-C1YMiFpR.js} +1 -1
- package/dist/cjs/dispute-notification_2.cjs.entry.js +12 -12
- package/dist/cjs/{event-types-DyRIxSSS.js → event-types-DlZRGu3q.js} +2 -2
- package/dist/cjs/{hidden-input_2.cjs.entry.js → form-alert_3.cjs.entry.js} +34 -12
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
- package/dist/cjs/{get-business-B3Jf5X7U.js → get-business-BBDsPv-b.js} +2 -2
- package/dist/cjs/{get-payment-details-Q9lHwr8Y.js → get-payment-details-BYZeUFAB.js} +3 -3
- package/dist/cjs/{get-subaccounts-Csq0SIVV.js → get-subaccounts-w4iQAASi.js} +4 -4
- package/dist/cjs/{index-W-zoNiyM.js → index-DDrfAj-j.js} +21 -15
- package/dist/cjs/{insurance-state-B-XQRmMs.js → insurance-state-CHQD1ZGw.js} +1 -1
- package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +22 -26
- package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +7 -7
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +7 -7
- package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-business-form.cjs.entry.js +10 -10
- package/dist/cjs/justifi-card-form.cjs.entry.js +7 -7
- package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +7 -7
- package/dist/cjs/justifi-checkout.cjs.entry.js +10 -15
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -13
- package/dist/cjs/justifi-config-provider.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-qr-terminal.cjs.entry.js +10 -10
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +12 -12
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -10
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +9 -9
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-DkLJAjev.js → package-V2lnhWch.js} +1 -1
- package/dist/cjs/{payment-provisioning-actions-DeURi9ZW.js → payment-provisioning-actions-CIsDrh8k.js} +2 -2
- package/dist/cjs/{payment.service-CBMsLP9b.js → payment.service-CUuADjYH.js} +2 -2
- package/dist/cjs/{checkouts-list-params-state-vGJZ6Oe2.js → payments-list-params-state-DDpRrUTY.js} +1 -1
- package/dist/cjs/{payout.service-BAturpCC.js → payout.service-D_gucuzq.js} +2 -2
- package/dist/cjs/{payouts-list-params-state-vGJZ6Oe2.js → payouts-list-params-state-DDpRrUTY.js} +1 -1
- package/dist/cjs/{payouts-status-BKO9VMJ_.js → payouts-status-DVU5138C.js} +2 -2
- package/dist/cjs/{plaid.service-DJ42fz7B.js → plaid.service-DIPjzg_M.js} +2 -2
- package/dist/cjs/save-new-payment-method.cjs.entry.js +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/{terminal-orders-list-params-state-vGJZ6Oe2.js → terminal-orders-list-params-state-DDpRrUTY.js} +1 -1
- package/dist/cjs/{terminal.service-C4ksBqBo.js → terminal.service-DVxXWBU7.js} +2 -2
- package/dist/cjs/terminals-list-params-state-DDpRrUTY.js +22 -0
- package/dist/cjs/{utils-8zgGi717.js → utils-WrOn06xB.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/ComponentError.js +2 -0
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/checkout/bank-account-form/bank-account-form-skeleton.js +1 -5
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +93 -19
- package/dist/collection/components/checkout/card-form/card-form-skeleton.js +1 -5
- package/dist/collection/components/checkout/card-form/card-form.js +96 -19
- package/dist/collection/components/checkout/justifi-checkout.js +2 -7
- package/dist/collection/components/checkout/test/use-bridged-fake-timers.js +14 -0
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
- package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +2 -2
- package/dist/collection/components/dispute-management/dispute-notification.js +2 -2
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/dispute-management/justifi-dispute-management.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +8 -5
- package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +1 -8
- package/dist/collection/components/refund-payment/justifi-refund-payment.js +2 -2
- package/dist/collection/store/checkout.store.js +17 -3
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-select.js +2 -2
- package/dist/collection/ui-components/form/iframe-input.js +26 -3
- package/dist/docs.json +100 -18
- package/dist/esm/{Analytics-WT1A3bAb.js → Analytics-C8-CZjVs.js} +4 -4
- package/dist/esm/{Api-DoxYyzWs.js → Api-BmZr64rt.js} +2 -2
- package/dist/esm/{Business-BcNb9bVO.js → Business-DaDqgDrb.js} +1 -1
- package/dist/esm/{Plaid-D389VmvK.js → Plaid-DJ-4YL0_.js} +2 -0
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/additional-questions-form-step_15.entry.js +19 -19
- package/dist/esm/{additional-questions_5.entry.js → additional-questions_4.entry.js} +5 -20
- package/dist/esm/additional-statement_8.entry.js +9 -9
- package/dist/esm/{badge-Dlcl9qdm.js → badge-B7QMpafx.js} +1 -1
- package/dist/esm/bank-account-billing-form-simple_4.entry.js +8 -8
- package/dist/esm/bank-account-document-form-inputs.entry.js +4 -4
- package/dist/esm/bank-account-form.entry.js +80 -30
- package/dist/esm/bank-account-read-only-value.entry.js +1 -1
- package/dist/esm/{business-form-options-DXjZp4Rl.js → business-form-options-BxVQL9ar.js} +1 -1
- package/dist/esm/{business-identity-schema-CXfLi-Wi.js → business-identity-schema-BkmRlnQo.js} +3 -3
- package/dist/esm/{business.service-DhBcj7ui.js → business.service-BTTf2CSv.js} +3 -3
- package/dist/esm/{button-BvzOzV4l.js → button-CBzHAOFW.js} +1 -1
- package/dist/esm/card-form.entry.js +82 -29
- package/dist/esm/{check-pkg-version-BL_f_mbi.js → check-pkg-version-B697jYyG.js} +1 -1
- package/dist/esm/{checkout-actions-Bmn6v-SS.js → checkout-actions-DhL8YxrK.js} +2 -2
- package/dist/esm/{checkout.service-NUZlIPnJ.js → checkout.service-B3BXVtHv.js} +3 -3
- package/dist/esm/{checkout.store-DibfdUMm.js → checkout.store-B6amfNq_.js} +18 -4
- package/dist/esm/{checkouts-list-params-state-CiGfmyWW.js → checkouts-list-params-state-DfRLZrOO.js} +1 -1
- package/dist/esm/{config-state-kKn89dp1.js → config-state-BKOsYBXZ.js} +1 -1
- package/dist/esm/{country-config-CEJVOOGe.js → country-config-CJwnhkdq.js} +1 -1
- package/dist/esm/custom-popper_2.entry.js +1 -1
- package/dist/esm/dispute-notification_2.entry.js +16 -16
- package/dist/esm/{event-types-CXLixpiw.js → event-types-DEIzZDtB.js} +3 -3
- package/dist/esm/form-address-fields_3.entry.js +4 -4
- package/dist/esm/{hidden-input_2.entry.js → form-alert_3.entry.js} +29 -8
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +2 -2
- package/dist/esm/{form-control-error-text-Di9QePY5.js → form-control-error-text-FyanxO4T.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +2 -2
- package/dist/esm/form-control-file.entry.js +2 -2
- package/dist/esm/{form-control-help-text-DGMpMuAm.js → form-control-help-text-DxvEdU36.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +3 -3
- package/dist/esm/form-control-number_2.entry.js +7 -7
- package/dist/esm/form-control-radio.entry.js +1 -1
- package/dist/esm/form-control-select_2.entry.js +4 -4
- package/dist/esm/{get-business-CDr7VlTq.js → get-business-BSyOONF0.js} +3 -3
- package/dist/esm/{get-payment-details-CpM_upcS.js → get-payment-details-CoGzqJ6o.js} +4 -4
- package/dist/esm/{get-subaccounts-Dnf1EKn1.js → get-subaccounts-CnKtCpiU.js} +5 -5
- package/dist/esm/{header-1-evYxFIGN.js → header-1-BI0o3rMW.js} +1 -1
- package/dist/esm/{header-3-BUDap2xY.js → header-3-DNqRk_HO.js} +1 -1
- package/dist/esm/{index-cDVGjRkU.js → index-3wWWWrhn.js} +21 -15
- package/dist/esm/{input-handlers-1lVyzImK.js → input-handlers-Dfuc6aDW.js} +1 -1
- package/dist/esm/{insurance-state-C5OZqDCT.js → insurance-state-DM0VaTpH.js} +2 -2
- package/dist/esm/internal-button.entry.js +2 -2
- package/dist/esm/justifi-apple-pay_11.entry.js +27 -31
- package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +8 -8
- package/dist/esm/justifi-bank-account-form.entry.js +8 -8
- package/dist/esm/justifi-business-details.entry.js +14 -14
- package/dist/esm/justifi-business-form.entry.js +19 -19
- package/dist/esm/justifi-card-form.entry.js +8 -8
- package/dist/esm/justifi-checkout-qr-code.entry.js +8 -8
- package/dist/esm/justifi-checkout.entry.js +12 -17
- package/dist/esm/justifi-checkouts-list-filters.entry.js +8 -8
- package/dist/esm/justifi-checkouts-list.entry.js +18 -18
- package/dist/esm/justifi-config-provider.entry.js +2 -2
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +11 -11
- package/dist/esm/justifi-gross-payment-chart.entry.js +12 -12
- package/dist/esm/justifi-order-terminals.entry.js +14 -14
- package/dist/esm/justifi-payment-details.entry.js +16 -16
- package/dist/esm/justifi-payment-provisioning.entry.js +15 -15
- package/dist/esm/justifi-payment-transactions-list.entry.js +13 -13
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +16 -16
- package/dist/esm/justifi-payout-details.entry.js +16 -16
- package/dist/esm/justifi-payout-transactions-list.entry.js +13 -13
- package/dist/esm/justifi-payouts-list-filters.entry.js +6 -6
- package/dist/esm/justifi-payouts-list.entry.js +17 -17
- package/dist/esm/justifi-qr-terminal.entry.js +11 -11
- package/dist/esm/justifi-refund-payment.entry.js +16 -16
- package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
- package/dist/esm/justifi-season-interruption-insurance.entry.js +13 -13
- package/dist/esm/justifi-skeleton.entry.js +2 -2
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +6 -6
- package/dist/esm/justifi-terminal-orders-list.entry.js +14 -14
- package/dist/esm/justifi-terminals-list-filters.entry.js +6 -6
- package/dist/esm/justifi-terminals-list.entry.js +16 -16
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-CrTWHVKE.js → package-DlhPMNzz.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-CPKMvyV_.js → parts-Bu7gdOaV.js} +1 -1
- package/dist/esm/payment-method-option.entry.js +1 -1
- package/dist/esm/{payment-provisioning-actions-BJYx_JgF.js → payment-provisioning-actions-DJKGndr3.js} +2 -2
- package/dist/esm/payment-provisioning-form-buttons_2.entry.js +3 -3
- package/dist/esm/{payment-provisioning-loading-Dve2xQA4.js → payment-provisioning-loading-BxHRVFDi.js} +1 -1
- package/dist/esm/{payment.service-UBuViC7e.js → payment.service-Ciw1eGvT.js} +3 -3
- package/dist/esm/{payments-list-params-state-CiGfmyWW.js → payments-list-params-state-DfRLZrOO.js} +1 -1
- package/dist/esm/{payments-status-BlVUt4C1.js → payments-status-If2fvwlv.js} +1 -1
- package/dist/esm/{payout.service-CV2uYm-0.js → payout.service-2jjZOOvC.js} +3 -3
- package/dist/esm/{payouts-list-params-state-CiGfmyWW.js → payouts-list-params-state-DfRLZrOO.js} +1 -1
- package/dist/esm/{payouts-status-BnB9006T.js → payouts-status-C0nijel1.js} +3 -3
- package/dist/esm/{plaid.service-B0mFmUgQ.js → plaid.service-CuAL_uL3.js} +3 -3
- package/dist/esm/radio-list-item.entry.js +1 -1
- package/dist/esm/save-new-payment-method.entry.js +2 -2
- package/dist/esm/{schema-validations-DJilm-Nh.js → schema-validations-8dbMCACI.js} +3 -3
- package/dist/esm/{skeleton-BEHo2ypu.js → skeleton-dbktEkFS.js} +1 -1
- package/dist/esm/{spinner-DIiQZd6_.js → spinner-EZmqiSfd.js} +1 -1
- package/dist/esm/{table-DqGfsdys.js → table-CD17nv9n.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/{terminal-orders-list-params-state-CiGfmyWW.js → terminal-orders-list-params-state-DfRLZrOO.js} +1 -1
- package/dist/esm/terminal-quantity-selector.entry.js +1 -1
- package/dist/esm/{terminal.service-ClKFvbFw.js → terminal.service-Di5Ma4sp.js} +3 -3
- package/dist/esm/terminals-list-params-state-DfRLZrOO.js +16 -0
- package/dist/esm/{utils-CX6puxwf.js → utils-BFduyAPr.js} +1 -1
- package/dist/esm/{utils-BdBZQD1G.js → utils-D6LKoG0M.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Plaid.js +2 -0
- package/dist/module/additional-statement2.js +1 -1
- package/dist/module/bank-account-form2.js +84 -25
- package/dist/module/business-bank-account-form-step2.js +1 -1
- package/dist/module/business-core-info-form-step2.js +1 -1
- package/dist/module/business-core-info2.js +1 -1
- package/dist/module/business-documents-on-file2.js +1 -1
- package/dist/module/business-owners-form-step2.js +1 -1
- package/dist/module/business-representative-form-inputs2.js +1 -1
- package/dist/module/business-representative2.js +1 -1
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy2.js +1 -1
- package/dist/module/card-form2.js +87 -25
- package/dist/module/checkout.store.js +17 -3
- package/dist/module/customer-details2.js +1 -1
- package/dist/module/dispute-notification2.js +3 -3
- package/dist/module/dispute-response2.js +2 -2
- package/dist/module/document-upload-list2.js +1 -1
- package/dist/module/duplicate-charge2.js +1 -1
- package/dist/module/electronic-evidence2.js +1 -1
- package/dist/module/form-alert2.js +1 -1
- package/dist/module/form-control-checkbox2.js +3 -3
- package/dist/module/form-control-select2.js +2 -2
- package/dist/module/header-3.js +1 -1
- package/dist/module/iframe-input2.js +11 -4
- package/dist/module/index3.js +21 -15
- package/dist/module/justifi-apple-pay2.js +1 -8
- package/dist/module/justifi-bank-account-form.js +8 -2
- package/dist/module/justifi-card-form.js +8 -2
- package/dist/module/justifi-checkout.js +22 -21
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +3 -3
- package/dist/module/justifi-dispute-management.js +1 -1
- package/dist/module/justifi-modular-checkout2.js +8 -5
- package/dist/module/justifi-order-terminals.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +1 -1
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +1 -1
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-refund-payment.js +2 -2
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list.js +1 -1
- package/dist/module/justifi-tokenize-payment-method2.js +20 -14
- package/dist/module/owner-form-inputs2.js +1 -1
- package/dist/module/owner-form2.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +1 -1
- package/dist/module/plaid-verification2.js +1 -1
- package/dist/module/product-or-service2.js +1 -1
- package/dist/module/refund-policy2.js +1 -1
- package/dist/module/shipping-details2.js +1 -1
- package/dist/module/table-filters-menu2.js +1 -1
- package/dist/module/table.js +1 -1
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/types/api/ComponentError.d.ts +2 -0
- package/dist/types/components/checkout/bank-account-form/bank-account-form-skeleton.d.ts +1 -4
- package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +11 -1
- package/dist/types/components/checkout/card-form/card-form-skeleton.d.ts +1 -4
- package/dist/types/components/checkout/card-form/card-form.d.ts +12 -2
- package/dist/types/components/checkout/test/use-bridged-fake-timers.d.ts +1 -0
- package/dist/types/components/modular-checkout/justifi-modular-checkout.d.ts +1 -0
- package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +0 -1
- package/dist/types/components.d.ts +33 -0
- package/dist/types/store/checkout.store.d.ts +1 -3
- package/dist/types/ui-components/form/iframe-input.d.ts +2 -0
- package/dist/webcomponents/{p-c1ada405.entry.js → p-003cd0b9.entry.js} +1 -1
- package/dist/webcomponents/p-041a22dd.entry.js +1 -0
- package/dist/webcomponents/{p-ec6978cb.entry.js → p-0464be7b.entry.js} +1 -1
- package/dist/webcomponents/p-0ae95f48.entry.js +1 -0
- package/dist/webcomponents/p-0c2848c8.entry.js +1 -0
- package/dist/webcomponents/{p-26fe714a.entry.js → p-11294ee2.entry.js} +1 -1
- package/dist/webcomponents/{p-b46f303d.entry.js → p-1255176f.entry.js} +1 -1
- package/dist/webcomponents/{p-1cff91b7.entry.js → p-15934f30.entry.js} +1 -1
- package/dist/webcomponents/p-19721f28.entry.js +1 -0
- package/dist/webcomponents/{p-2ba48cf1.entry.js → p-1a1591e3.entry.js} +1 -1
- package/dist/webcomponents/{p-0a4fcb15.entry.js → p-1cdbe8c1.entry.js} +1 -1
- package/dist/webcomponents/{p-debc4768.entry.js → p-2139497d.entry.js} +1 -1
- package/dist/webcomponents/{p-f8734760.entry.js → p-34a4924b.entry.js} +1 -1
- package/dist/webcomponents/p-359e35b5.entry.js +1 -0
- package/dist/webcomponents/{p-8fd18ce2.entry.js → p-36d7033b.entry.js} +1 -1
- package/dist/webcomponents/{p-dc0cc4aa.entry.js → p-3ef039ec.entry.js} +1 -1
- package/dist/webcomponents/p-40332723.entry.js +1 -0
- package/dist/webcomponents/{p-65c3288f.entry.js → p-465e9e1c.entry.js} +1 -1
- package/dist/webcomponents/{p-b03e361e.entry.js → p-49e40ebe.entry.js} +1 -1
- package/dist/webcomponents/{p-5a58f606.entry.js → p-4d60d249.entry.js} +1 -1
- package/dist/webcomponents/p-546e5799.entry.js +1 -0
- package/dist/webcomponents/{p-2dfdecbb.entry.js → p-558677a7.entry.js} +1 -1
- package/dist/webcomponents/{p-f953fd60.entry.js → p-568b81a2.entry.js} +1 -1
- package/dist/webcomponents/{p-BS8j0DWf.js → p-5_w3jWjY.js} +1 -1
- package/dist/webcomponents/{p-73deced9.entry.js → p-61eae8cd.entry.js} +1 -1
- package/dist/webcomponents/p-63ed941e.entry.js +1 -0
- package/dist/webcomponents/p-661f50a9.entry.js +1 -0
- package/dist/webcomponents/p-6f34fa90.entry.js +1 -0
- package/dist/webcomponents/{p-e020f003.entry.js → p-6f88f836.entry.js} +1 -1
- package/dist/webcomponents/{p-9399f4f1.entry.js → p-715df6a8.entry.js} +1 -1
- package/dist/webcomponents/p-73f97f6a.entry.js +1 -0
- package/dist/webcomponents/{p-06d3d9b6.entry.js → p-74de23d8.entry.js} +1 -1
- package/dist/webcomponents/{p-6f5d9579.entry.js → p-8507bd99.entry.js} +1 -1
- package/dist/webcomponents/p-851a5865.entry.js +1 -0
- package/dist/webcomponents/p-8bf07094.entry.js +1 -0
- package/dist/webcomponents/p-8fO8CrtQ.js +1 -0
- package/dist/webcomponents/p-9c506058.entry.js +1 -0
- package/dist/webcomponents/{p-c1209de0.entry.js → p-9f3b1212.entry.js} +1 -1
- package/dist/webcomponents/p-B-Ik8b-s.js +1 -0
- package/dist/webcomponents/p-B4Xi-t8v.js +1 -0
- package/dist/webcomponents/{p-DVJaoI_m.js → p-B4vLfYnZ.js} +1 -1
- package/dist/webcomponents/p-BAB1lPu0.js +1 -0
- package/dist/webcomponents/p-BLhz_ggG.js +1 -0
- package/dist/webcomponents/p-BTuqVZ6O.js +1 -0
- package/dist/webcomponents/{p-Cu7hgXL1.js → p-Bh6Q8AqQ.js} +1 -1
- package/dist/webcomponents/{p-D1_eip6x.js → p-Bi_GCMx0.js} +1 -1
- package/dist/webcomponents/{p-C7lKXwUt.js → p-BpFSR2PV.js} +1 -1
- package/dist/webcomponents/{p-CB69z5Eh.js → p-BsnuluAl.js} +1 -1
- package/dist/webcomponents/{p-CPKMvyV_.js → p-Bu7gdOaV.js} +1 -1
- package/dist/webcomponents/p-BzjgvHHT.js +1 -0
- package/dist/webcomponents/{p-DfL-8Yvt.js → p-C1x6dkgs.js} +1 -1
- package/dist/webcomponents/p-CArdj6i_.js +1 -0
- package/dist/webcomponents/p-CGnRD4wF.js +1 -0
- package/dist/webcomponents/p-CLZcevBz.js +1 -0
- package/dist/webcomponents/p-CMvr3y5s.js +1 -0
- package/dist/webcomponents/{p-CHo7TfsM.js → p-CU2Dwa94.js} +1 -1
- package/dist/webcomponents/p-CZk3i5Tu.js +1 -0
- package/dist/webcomponents/p-CaLXuYmg.js +1 -0
- package/dist/webcomponents/{p-DPA5TKvQ.js → p-CawcnSoV.js} +1 -1
- package/dist/webcomponents/p-CbyGKcz_.js +1 -0
- package/dist/webcomponents/{p-CvFpXdzD.js → p-CfYe14W-.js} +1 -1
- package/dist/webcomponents/p-Chs1q3Hw.js +1 -0
- package/dist/webcomponents/{p-B9fbqJSf.js → p-Co3Rtlnu.js} +1 -1
- package/dist/webcomponents/p-CumGHL0N.js +1 -0
- package/dist/webcomponents/p-D1H6VUbM.js +1 -0
- package/dist/webcomponents/p-D437Px2O.js +1 -0
- package/dist/webcomponents/p-DCwSevh5.js +1 -0
- package/dist/webcomponents/p-DD9-ceDZ.js +1 -0
- package/dist/webcomponents/p-DNuxxP2B.js +1 -0
- package/dist/webcomponents/p-DNxN6bjU.js +1 -0
- package/dist/webcomponents/p-DUtecvro.js +1 -0
- package/dist/webcomponents/{p-BICxxa69.js → p-DZr0wLGh.js} +1 -1
- package/dist/webcomponents/{p-BcNb9bVO.js → p-DaDqgDrb.js} +1 -1
- package/dist/webcomponents/p-DgTOxu8x.js +1 -0
- package/dist/webcomponents/p-Dl0CAW76.js +1 -0
- package/dist/webcomponents/p-DlhPMNzz.js +1 -0
- package/dist/webcomponents/{p-DHB_XJ12.js → p-Do9dxNjh.js} +1 -1
- package/dist/webcomponents/{p-BGD3uog3.js → p-DwLofzXZ.js} +1 -1
- package/dist/webcomponents/{p-CHw7tICr.js → p-Dz8KJn2G.js} +1 -1
- package/dist/webcomponents/p-MPer3Rw7.js +1 -0
- package/dist/webcomponents/{p-BBSnDYJw.js → p-OReJ-ZQb.js} +1 -1
- package/dist/webcomponents/{p-33070a71.entry.js → p-a0515894.entry.js} +1 -1
- package/dist/webcomponents/{p-76ded81e.entry.js → p-a14d3d7d.entry.js} +1 -1
- package/dist/webcomponents/{p-2599e169.entry.js → p-a6f68a03.entry.js} +1 -1
- package/dist/webcomponents/{p-49c13952.entry.js → p-af0c6421.entry.js} +1 -1
- package/dist/webcomponents/p-b140a8b8.entry.js +1 -0
- package/dist/webcomponents/{p-528eef2d.entry.js → p-b17fabdc.entry.js} +1 -1
- package/dist/webcomponents/{p-db09f306.entry.js → p-b2129553.entry.js} +1 -1
- package/dist/webcomponents/{p-605bd107.entry.js → p-b39dd96b.entry.js} +1 -1
- package/dist/webcomponents/{p-8476b45a.entry.js → p-b4d216cf.entry.js} +1 -1
- package/dist/webcomponents/{p-e1e91bbb.entry.js → p-b8d46fc5.entry.js} +1 -1
- package/dist/webcomponents/{p-53d775b9.entry.js → p-b945fa49.entry.js} +1 -1
- package/dist/webcomponents/{p-75b5d6ac.entry.js → p-b9b5d046.entry.js} +1 -1
- package/dist/webcomponents/p-bc435cae.entry.js +1 -0
- package/dist/webcomponents/{p-52b25165.entry.js → p-bd46911b.entry.js} +1 -1
- package/dist/webcomponents/p-bf3866b3.entry.js +1 -0
- package/dist/webcomponents/p-c4799285.entry.js +1 -0
- package/dist/webcomponents/p-cb5d2198.entry.js +1 -0
- package/dist/webcomponents/p-cb977890.entry.js +1 -0
- package/dist/webcomponents/{p-58e8d646.entry.js → p-d6122124.entry.js} +1 -1
- package/dist/webcomponents/{p-67a444f7.entry.js → p-db71a012.entry.js} +1 -1
- package/dist/webcomponents/p-dd2654f5.entry.js +1 -0
- package/dist/webcomponents/{p-14a03ad0.entry.js → p-de8c6cd4.entry.js} +1 -1
- package/dist/webcomponents/p-eBK-iWrz.js +1 -0
- package/dist/webcomponents/{p-9735a37b.entry.js → p-ee78df81.entry.js} +1 -1
- package/dist/webcomponents/p-f0083ace.entry.js +1 -0
- package/dist/webcomponents/{p-eccc1fc6.entry.js → p-f6941969.entry.js} +1 -1
- package/dist/webcomponents/p-f9d0b34d.entry.js +1 -0
- package/dist/webcomponents/{p-396ed502.entry.js → p-fbd08a2e.entry.js} +4 -4
- package/dist/webcomponents/p-x2oNTAWh.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +15 -15
- package/dist/cjs/terminals-list-params-state-vGJZ6Oe2.js +0 -22
- package/dist/esm/terminals-list-params-state-CiGfmyWW.js +0 -16
- package/dist/webcomponents/p-0f2a1ac9.entry.js +0 -1
- package/dist/webcomponents/p-1b51dea9.entry.js +0 -1
- package/dist/webcomponents/p-1de248b1.entry.js +0 -1
- package/dist/webcomponents/p-1e3f096f.entry.js +0 -1
- package/dist/webcomponents/p-25215ee7.entry.js +0 -1
- package/dist/webcomponents/p-6fe329d6.entry.js +0 -1
- package/dist/webcomponents/p-7d61e758.entry.js +0 -1
- package/dist/webcomponents/p-7dfe47bf.entry.js +0 -1
- package/dist/webcomponents/p-86e0ac37.entry.js +0 -1
- package/dist/webcomponents/p-8fabef40.entry.js +0 -1
- package/dist/webcomponents/p-925ca097.entry.js +0 -1
- package/dist/webcomponents/p-9cc293aa.entry.js +0 -1
- package/dist/webcomponents/p-AMVhBsGv.js +0 -1
- package/dist/webcomponents/p-AyLerOda.js +0 -1
- package/dist/webcomponents/p-B5gBiARs.js +0 -1
- package/dist/webcomponents/p-BPTtWj7E.js +0 -1
- package/dist/webcomponents/p-B_i1R4O_.js +0 -1
- package/dist/webcomponents/p-BmrZbyuT.js +0 -1
- package/dist/webcomponents/p-BwPS3971.js +0 -1
- package/dist/webcomponents/p-C-Jgmek8.js +0 -1
- package/dist/webcomponents/p-C6o0liMT.js +0 -1
- package/dist/webcomponents/p-CXIRxyAr.js +0 -1
- package/dist/webcomponents/p-CXZRiaUw.js +0 -1
- package/dist/webcomponents/p-Ce_W43gc.js +0 -1
- package/dist/webcomponents/p-CpGEMRkH.js +0 -1
- package/dist/webcomponents/p-CqiVXthx.js +0 -1
- package/dist/webcomponents/p-CrTWHVKE.js +0 -1
- package/dist/webcomponents/p-D8GTwl9v.js +0 -1
- package/dist/webcomponents/p-DMB1dln7.js +0 -1
- package/dist/webcomponents/p-DSclFZ32.js +0 -1
- package/dist/webcomponents/p-DYHjzFnJ.js +0 -1
- package/dist/webcomponents/p-Dm07nLGs.js +0 -1
- package/dist/webcomponents/p-Dsm1jN-a.js +0 -1
- package/dist/webcomponents/p-Dw63wyhO.js +0 -1
- package/dist/webcomponents/p-DyPk4BJt.js +0 -1
- package/dist/webcomponents/p-ECg6MX8R.js +0 -1
- package/dist/webcomponents/p-Sr5nnVDM.js +0 -1
- package/dist/webcomponents/p-Xf0jRfzp.js +0 -1
- package/dist/webcomponents/p-a55fe1c2.entry.js +0 -1
- package/dist/webcomponents/p-a7c7898d.entry.js +0 -1
- package/dist/webcomponents/p-aa3f1d88.entry.js +0 -1
- package/dist/webcomponents/p-b2c4f61b.entry.js +0 -1
- package/dist/webcomponents/p-b8fcb871.entry.js +0 -1
- package/dist/webcomponents/p-ca9886fd.entry.js +0 -1
- package/dist/webcomponents/p-d2c8cc7d.entry.js +0 -1
- package/dist/webcomponents/p-e3021e22.entry.js +0 -1
- package/dist/webcomponents/p-e704d652.entry.js +0 -1
- package/dist/webcomponents/p-e7cfee5a.entry.js +0 -1
- package/dist/webcomponents/p-fd9b4f83.entry.js +0 -1
- package/dist/webcomponents/p-jIDKmNHy.js +0 -1
- package/dist/webcomponents/p-rpFC83GL.js +0 -1
- package/dist/webcomponents/p-uZ5KAseb.js +0 -1
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
import { h, proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
|
|
1
|
+
import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
|
|
2
2
|
import { S as Skeleton } from './skeleton.js';
|
|
3
3
|
import { w as waitForConfig, c as configState } from './config-state.js';
|
|
4
4
|
import { d as generateTabId } from './utils2.js';
|
|
5
5
|
import { c as checkPkgVersion } from './check-pkg-version.js';
|
|
6
|
+
import { C as ComponentErrorSeverity, d as ComponentErrorMessages, c as ComponentErrorCodes } from './Plaid.js';
|
|
7
|
+
import './Pagination.js';
|
|
8
|
+
import './Business.js';
|
|
9
|
+
import './ApplePay.js';
|
|
10
|
+
import { B as Button } from './button.js';
|
|
11
|
+
import './justifi-details2.js';
|
|
12
|
+
import './event-types.js';
|
|
13
|
+
import './justifi-radio-list-item2.js';
|
|
14
|
+
import { d as defineCustomElement$3 } from './form-alert2.js';
|
|
6
15
|
import { d as defineCustomElement$2 } from './hidden-input2.js';
|
|
7
16
|
import { d as defineCustomElement$1 } from './iframe-input2.js';
|
|
8
17
|
|
|
9
|
-
const CardFormSkeleton = (
|
|
10
|
-
const { isReady } = props;
|
|
11
|
-
if (isReady) {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
18
|
+
const CardFormSkeleton = () => {
|
|
14
19
|
return (h("div", { class: "container-fluid p-0" }, h("div", { class: "mb-3" }, h(Skeleton, { height: "18px", width: "100px" }), h(Skeleton, { height: "36px" })), h("div", { class: "row" }, h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "18px", width: "80px" }), h(Skeleton, { height: "36px" })), h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "36px" })), h("div", { class: "col-4 align-content-end" }, h(Skeleton, { height: "18px", width: "30px" }), h(Skeleton, { height: "36px" })))));
|
|
15
20
|
};
|
|
16
21
|
|
|
@@ -20,7 +25,13 @@ const CardForm = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLEle
|
|
|
20
25
|
if (registerHost !== false) {
|
|
21
26
|
this.__registerHost();
|
|
22
27
|
}
|
|
23
|
-
this.
|
|
28
|
+
this.errorEvent = createEvent(this, "error-event", 7);
|
|
29
|
+
this.iframeState = 'loading';
|
|
30
|
+
this.reloadIframes = () => {
|
|
31
|
+
this.iframeState = 'loading';
|
|
32
|
+
this.iframeElements.forEach((element) => element.reload());
|
|
33
|
+
this.watchIframesLoad();
|
|
34
|
+
};
|
|
24
35
|
}
|
|
25
36
|
async componentWillLoad() {
|
|
26
37
|
await waitForConfig();
|
|
@@ -28,20 +39,12 @@ const CardForm = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLEle
|
|
|
28
39
|
this.tabId = generateTabId();
|
|
29
40
|
checkPkgVersion();
|
|
30
41
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
];
|
|
38
|
-
Promise.all(elements.map((element) => {
|
|
39
|
-
return new Promise((resolve) => {
|
|
40
|
-
element.addEventListener('iframeLoaded', () => { resolve(); });
|
|
41
|
-
});
|
|
42
|
-
})).then(() => {
|
|
43
|
-
this.isReady = true;
|
|
44
|
-
});
|
|
42
|
+
componentDidLoad() {
|
|
43
|
+
this.watchIframesLoad();
|
|
44
|
+
}
|
|
45
|
+
disconnectedCallback() {
|
|
46
|
+
var _a;
|
|
47
|
+
(_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
45
48
|
}
|
|
46
49
|
async validate() {
|
|
47
50
|
const cardNumberIsValid = await this.cardNumberIframeElement.validate();
|
|
@@ -54,16 +57,70 @@ const CardForm = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLEle
|
|
|
54
57
|
const result = await this.cardNumberIframeElement.tokenize(clientId, paymentMethodMetadata, account);
|
|
55
58
|
return result;
|
|
56
59
|
}
|
|
60
|
+
get isReady() {
|
|
61
|
+
return this.iframeState === 'ready';
|
|
62
|
+
}
|
|
63
|
+
get iframeElements() {
|
|
64
|
+
return [
|
|
65
|
+
this.cardNumberIframeElement,
|
|
66
|
+
this.expirationMonthIframeElement,
|
|
67
|
+
this.expirationYearIframeElement,
|
|
68
|
+
this.cvvIframeElement,
|
|
69
|
+
];
|
|
70
|
+
}
|
|
71
|
+
watchIframesLoad() {
|
|
72
|
+
var _a;
|
|
73
|
+
(_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
74
|
+
const { signal } = (this.loadAbortController = new AbortController());
|
|
75
|
+
const pending = new Set(this.iframeElements.map((element) => element.inputId));
|
|
76
|
+
const loaded = Promise.all(this.iframeElements.map((element) => (new Promise((resolve) => {
|
|
77
|
+
element.addEventListener('iframeLoaded', () => {
|
|
78
|
+
pending.delete(element.inputId);
|
|
79
|
+
resolve();
|
|
80
|
+
}, { once: true, signal });
|
|
81
|
+
}))));
|
|
82
|
+
const deadline = new Promise((_resolve, reject) => {
|
|
83
|
+
const timeoutId = window.setTimeout(() => reject(new Error(`Iframes failed to load: ${Array.from(pending).join(', ')}`)), 10000);
|
|
84
|
+
signal.addEventListener('abort', () => {
|
|
85
|
+
window.clearTimeout(timeoutId);
|
|
86
|
+
reject(new Error('iframe load watch aborted'));
|
|
87
|
+
}, { once: true });
|
|
88
|
+
});
|
|
89
|
+
Promise.race([loaded, deadline]).then(() => {
|
|
90
|
+
var _a;
|
|
91
|
+
if (signal.aborted)
|
|
92
|
+
return;
|
|
93
|
+
this.iframeState = 'ready';
|
|
94
|
+
(_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
95
|
+
}).catch((e) => {
|
|
96
|
+
var _a;
|
|
97
|
+
if (signal.aborted)
|
|
98
|
+
return;
|
|
99
|
+
this.iframeState = 'error';
|
|
100
|
+
(_a = this.loadAbortController) === null || _a === void 0 ? void 0 : _a.abort();
|
|
101
|
+
this.errorEvent.emit({
|
|
102
|
+
errorCode: ComponentErrorCodes.IFRAME_LOAD_ERROR,
|
|
103
|
+
message: ComponentErrorMessages.IFRAME_LOAD_ERROR,
|
|
104
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
105
|
+
data: {
|
|
106
|
+
errorMessage: e.message,
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
renderIframeError() {
|
|
112
|
+
return (h("div", null, h("form-alert", { text: ComponentErrorMessages.IFRAME_LOAD_ERROR, hideAlert: false }), h(Button, { variant: "link", clickHandler: this.reloadIframes, "aria-label": "Reload payment form", type: "button" }, "Try again")));
|
|
113
|
+
}
|
|
57
114
|
render() {
|
|
58
|
-
return (h("div", { key: '
|
|
115
|
+
return (h("div", { key: 'e6250721d89b25d536a5c40743decb7c2f0e9037' }, this.iframeState === 'loading' && h(CardFormSkeleton, { key: 'd3885015e28ade3f1d166d3a3ea91c212e4c08f9' }), this.iframeState === 'error' && this.renderIframeError(), h("hidden-input", { key: '083b462140adf1907e4c796ec99ce72f68a3dcef' }), h("div", { key: 'd20f7dccc152cb16bd216eb5886c7eee46cbd4f1', class: "container-fluid p-0", style: {
|
|
59
116
|
opacity: this.isReady ? '1' : '0',
|
|
60
117
|
height: this.isReady ? 'auto' : '0',
|
|
61
|
-
} }, h("div", { key: '
|
|
118
|
+
} }, h("div", { key: 'd06fa0c936dc7963caf3e27ab4cbfee804822bc3', class: "mb-3" }, h("iframe-input", { key: '1050720e0aec9b5e38b7a97fce95229faf490b6f', inputId: "cardNumber", ref: (el) => (this.cardNumberIframeElement = el), label: "Card Number", iframeOrigin: `${this.iframeOrigin}/v2/cardNumber?tabId=${this.tabId}` })), h("div", { key: '5a37f9da6509890bc3b6e5e5d3061fef82ac8650', class: "row" }, h("div", { key: '249456011e5dca659243dc68495da16fdff5a183', class: "col-4 align-content-end" }, h("iframe-input", { key: '49f3a8baa14867708a9f1dad7f61830d86847473', inputId: "expirationMonth", ref: (el) => (this.expirationMonthIframeElement = el), label: "Expiration", iframeOrigin: `${this.iframeOrigin}/v2/expirationMonth?tabId=${this.tabId}` })), h("div", { key: 'e7fd325d2f39c7c293789931fda9de2f76faa4d4', class: "col-4 align-content-end" }, h("iframe-input", { key: '10beda8d2bfacdcf8ab3b17ffae858306312a06f', inputId: "expirationYear", ref: (el) => (this.expirationYearIframeElement = el), label: "", iframeOrigin: `${this.iframeOrigin}/v2/expirationYear?tabId=${this.tabId}` })), h("div", { key: 'de4a844a20da09910f710567e62d2b06f144abe7', class: "col-4 align-content-end" }, h("iframe-input", { key: '555a6c96fadb9e5466c76ea259c5d001e16468d6', inputId: "CVV", ref: (el) => (this.cvvIframeElement = el), label: "CVV", iframeOrigin: `${this.iframeOrigin}/v2/CVV?tabId=${this.tabId}` }))))));
|
|
62
119
|
}
|
|
63
120
|
}, [256, "card-form", {
|
|
64
|
-
"isReady": [32],
|
|
65
121
|
"iframeOrigin": [32],
|
|
66
122
|
"tabId": [32],
|
|
123
|
+
"iframeState": [32],
|
|
67
124
|
"validate": [64],
|
|
68
125
|
"tokenize": [64]
|
|
69
126
|
}]);
|
|
@@ -71,13 +128,18 @@ function defineCustomElement() {
|
|
|
71
128
|
if (typeof customElements === "undefined") {
|
|
72
129
|
return;
|
|
73
130
|
}
|
|
74
|
-
const components = ["card-form", "hidden-input", "iframe-input"];
|
|
131
|
+
const components = ["card-form", "form-alert", "hidden-input", "iframe-input"];
|
|
75
132
|
components.forEach(tagName => { switch (tagName) {
|
|
76
133
|
case "card-form":
|
|
77
134
|
if (!customElements.get(tagName)) {
|
|
78
135
|
customElements.define(tagName, CardForm);
|
|
79
136
|
}
|
|
80
137
|
break;
|
|
138
|
+
case "form-alert":
|
|
139
|
+
if (!customElements.get(tagName)) {
|
|
140
|
+
defineCustomElement$3();
|
|
141
|
+
}
|
|
142
|
+
break;
|
|
81
143
|
case "hidden-input":
|
|
82
144
|
if (!customElements.get(tagName)) {
|
|
83
145
|
defineCustomElement$2();
|
|
@@ -104,10 +104,24 @@ function getCheckoutState() {
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
function onAnyChange(callback) {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
let pending = false;
|
|
108
|
+
let active = true;
|
|
109
|
+
const unsubscribe = Object.keys(initialState).map((key) => {
|
|
110
|
+
return onChange(key, () => {
|
|
111
|
+
if (pending || !active)
|
|
112
|
+
return;
|
|
113
|
+
pending = true;
|
|
114
|
+
queueMicrotask(() => {
|
|
115
|
+
pending = false;
|
|
116
|
+
if (active)
|
|
117
|
+
callback();
|
|
118
|
+
});
|
|
119
|
+
});
|
|
110
120
|
});
|
|
121
|
+
return () => {
|
|
122
|
+
active = false;
|
|
123
|
+
unsubscribe.forEach((off) => off());
|
|
124
|
+
};
|
|
111
125
|
}
|
|
112
126
|
|
|
113
127
|
export { onAnyChange as a, getCheckoutState as b, checkoutStore as c, getAvailablePaymentMethodTypes as g, onChange as o };
|
|
@@ -43,7 +43,7 @@ const CustomerDetails = /*@__PURE__*/ proxyCustomElement(class CustomerDetails e
|
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
45
|
var _a, _b, _c, _d, _e;
|
|
46
|
-
return (h("div", { key: '
|
|
46
|
+
return (h("div", { key: 'e4f028d0369b88c270aa610ab457921ee729f1cb' }, h("div", { key: 'ba4d130e343603baa3c1b3d8141b981f97cb7133', class: "row gy-3" }, h("div", { key: 'a21d574e6fbd3daef4960b39aba9568060a79ebd', class: "col-12" }, h("h2", { key: 'a87274deacfdb31ae769252f7418416152528d43', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '2aa05a739cc38a95860b255dab7142fd1a7932d3', class: "col-12" }, h("form-control-text", { key: 'b4fa7ef3c75d3c2ddc83292c2a13c80ee2a6a4cf', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), h("div", { key: 'b8a6851094599ed3683f3c14f18305ff0a8ed557', class: "col-12" }, h("form-control-text", { key: '4c8d73b3001a36502c6e6083eafdc8e06af86d23', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), h("div", { key: '45d406392c4ba199d77583f18874797f4b7c125e', class: "col-12" }, h("form-control-textarea", { key: '757de489531e8e28beb052403842d191e2a45be1', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), h("div", { key: '3e339e0f275e1ab8e195d77973b60af364d5cdc6', class: "col-12" }, h("form-control-file-v2", { key: '64175687470e62ce55d62163b8d231c481fce2a6', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), h("div", { key: '27d1ac884a8986c8e9a23c92296e2f8871ec0f45', class: "col-12" }, h("form-control-file-v2", { key: 'f7169172d91f4ea785d1532bb4a442cba8cc1c9e', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
|
|
47
47
|
}
|
|
48
48
|
}, [256, "customer-details", {
|
|
49
49
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { b as formatCurrency } from './utils2.js';
|
|
3
|
-
import { j as text,
|
|
3
|
+
import { j as text, M as heading4 } from './parts.js';
|
|
4
4
|
import { B as Button } from './button.js';
|
|
5
5
|
import { S as Skeleton } from './skeleton.js';
|
|
6
6
|
import './justifi-details2.js';
|
|
@@ -56,8 +56,8 @@ const DisputeNotification = /*@__PURE__*/ proxyCustomElement(class DisputeNotifi
|
|
|
56
56
|
}
|
|
57
57
|
render() {
|
|
58
58
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
59
|
-
return (h("div", { key: '
|
|
60
|
-
_b.due_date, ") for this dispute has passed"), h("p", { key: '
|
|
59
|
+
return (h("div", { key: '55685c8b421d48fb041862b2ae2ff0605a3a0b7f', class: "dispute-notification-root" }, this.isLoading && (h("div", { key: '93fba7164eea0a00231f2f762a1370fe2ba4ca52', style: { marginBottom: '8px' } }, h(Skeleton, { key: 'db8ca80547c4e022ee9cbb59b51cf1d199a65f0c', height: '28px', width: '70%', styles: { marginBottom: '16px' } }), h(Skeleton, { key: '15c884a6bbfcab6e89d9eb36cfcdc14a0505c25a', height: '18px', styles: { marginBottom: '8px' } }), h(Skeleton, { key: '61474f21b3f82c1cff6455c7d87c0474a4c5ebdd', height: '18px', styles: { marginBottom: '8px' } }))), ((_a = this.dispute) === null || _a === void 0 ? void 0 : _a.needsResponse) && this.isDueDatePassed() && (h("div", { key: '724f8896f7985469d457d5dea5936dc8ef0b30c0', part: text }, h("h1", { key: 'd4e86227300211d8ab792e8ae128912166957b02', class: "h4", part: heading4 }, "The due date (", (_b = this.dispute) === null || _b === void 0 ? void 0 :
|
|
60
|
+
_b.due_date, ") for this dispute has passed"), h("p", { key: '40e2fff6dadd6426d847cbc7164a72bb137ee44d' }, "You can no longer submit evidence to counter this dispute."))), ((_c = this.dispute) === null || _c === void 0 ? void 0 : _c.needsResponse) && !this.isDueDatePassed() && (h("div", { key: '1efebe3baa295271c793faaba07b9d62a7f19e93', part: text }, h("h1", { key: 'a6e10b6d4e8f01aacefb8d3cd5244eecbbb251e6', class: "h4", part: heading4 }, "This payment is disputed"), h("p", { key: 'fb99d2061fcae2a6b59a1121340bb141f8a2bcb2' }, "The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."), h("h2", { key: '5e6a34864d24df666ab69291e98dc569946933ad', class: "h5" }, "Dispute details"), h("div", { key: '6a189bf2c84fad8024d60da7c6972917e8768fa9', class: "d-table gap-2" }, h("div", { key: '1d76955da64391406f2cf082d473fac4da8f6be9', class: "d-table-row gap-2" }, h("span", { key: '7dcc2947c8e2ba7e388dde66ec426b9d95e87938', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Amount"), h("span", { key: 'b45cdeebd1ee9f0b6e4a023a41e496c28c265c64', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, formatCurrency((_d = this.dispute) === null || _d === void 0 ? void 0 : _d.amount))), h("div", { key: 'd33fd1331385a3b8bad3f44bb8d0d92c7d9fb3eb', class: "d-table-row gap-2" }, h("span", { key: 'd4a5c2fae926b736c6516522b32965c1f55d7623', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Reason"), h("span", { key: '034868aa10b8179e485f2cc497adcf9caaca123d', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_e = this.dispute) === null || _e === void 0 ? void 0 : _e.reason)), h("div", { key: '8b56d8237d8039f90ec9141cc94e0147bc0e49bd', class: "d-table-row gap-2" }, h("span", { key: 'f301c07b7ceb2f54f642e764a61b359445962d17', part: "detail-section-item-title", class: "fw-bold d-table-cell pe-4" }, "Due Date"), h("span", { key: '3c7478dd78c2cd58b9eee3a3b30b0816ab8011bc', part: "detail-section-item-data", class: "flex-1 d-table-cell text-wrap" }, (_f = this.dispute) === null || _f === void 0 ? void 0 : _f.due_date))), h("div", { key: '1c912ca4428f444d4dd4f27584a8a64099524539', class: "d-flex gap-2 mt-4 justify-content-end" }, h(Button, { key: 'd15adbc5be96fbfe0545e87c57e1fe34449d4c8f', variant: "secondary", onClick: () => this.acceptDispute() }, "Accept dispute"), h(Button, { key: '0d7b4a74b52210106929114bb8d7db76eeadedd6', variant: "primary", onClick: () => this.initiateRespondToDispute() }, "Counter dispute")))), ((_g = this.dispute) === null || _g === void 0 ? void 0 : _g.underReview) && (h("div", { key: '8f1e958c5601d937d71da120e908acdb9b303367', part: text }, h("h1", { key: '67012e992b666b145bff9cf70011a0de88452e1e', class: "h4", part: heading4 }, "This payment is disputed and under review"), h("p", { key: 'fda8d98bffac5daf67574aabc854e58b5a754de0' }, "The cardholder is disputing this payment. A counter dispute has been submitted and is under review."))), ((_h = this.dispute) === null || _h === void 0 ? void 0 : _h.won) && (h("div", { key: '8c3699f761f941114b4fa91cad166c78def3dc00', part: text }, h("h1", { key: '411280747b719b85240bde3ab052ba4bd43437e3', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: '82edec3d96009d23454f6ac63651b6763b4b22a4' }, "The cardholder disputed this payment and the card issuer has settled it in your favor."))), ((_j = this.dispute) === null || _j === void 0 ? void 0 : _j.lost) && (h("div", { key: '68416771d44d09201b630d7b25952894ce4a096c', part: text }, h("h1", { key: 'dcaf92df776e75aa78762c07fdbb750f1933311a', class: "h4", part: heading4 }, "This payment was disputed"), h("p", { key: '811fcf0b3a9f38fcf857998a672286e5c5ae0a9a' }, "The cardholder disputed this payment and the card issuer has settled it in their favor.")))));
|
|
61
61
|
}
|
|
62
62
|
}, [256, "dispute-notification", {
|
|
63
63
|
"dispute": [16],
|
|
@@ -3,7 +3,7 @@ import { c as checkPkgVersion } from './check-pkg-version.js';
|
|
|
3
3
|
import { D as DisputeManagementClickActions, b as makeUpdateDisputeResponse, c as makeCreateDisputeEvidence, m as makeSubmitDisputeResponse, a as DisputeService } from './event-types3.js';
|
|
4
4
|
import { J as JustifiAnalytics } from './Analytics.js';
|
|
5
5
|
import { C as ComponentErrorSeverity, c as ComponentErrorCodes } from './Plaid.js';
|
|
6
|
-
import {
|
|
6
|
+
import { M as heading4 } from './parts.js';
|
|
7
7
|
import { B as Button } from './button.js';
|
|
8
8
|
import { d as defineCustomElement$f } from './additional-statement2.js';
|
|
9
9
|
import { d as defineCustomElement$e } from './cancellation-policy2.js';
|
|
@@ -221,7 +221,7 @@ const DisputeResponse = /*@__PURE__*/ proxyCustomElement(class DisputeResponse e
|
|
|
221
221
|
return this.currentStep === 0;
|
|
222
222
|
}
|
|
223
223
|
render() {
|
|
224
|
-
return (h("div", { key: '
|
|
224
|
+
return (h("div", { key: '50c96cb107115c27ff993ed7288a58cd801ef936', class: "dispute-response-root" }, h("div", { key: '0ebe2541c4245c6371d3aa8cdfb58b3f92f2d96e', class: "row gy-3" }, h("div", { key: '78feb00f6f5b8fb96ceacba2e7bcda1342f8a244', class: "col-12" }, h("h1", { key: 'a86ab0cd63ebb945a69982ea05607ae4eadc1cf8', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: 'f9a5e9cad90d03ae773aaeb2e72049b453d05472', class: "col-12" }, this.currentStepComponent), h("div", { key: '838c642fdf957bf0e3fd8d4ef4c4abc79c2d6f61', class: "col-12" }, h("div", { key: '6b8af6fa4face4debee72950e86e3bc9461406da', class: "d-flex gap-2 mt-4 justify-content-end" }, this.isFirstStep ? (h(Button, { variant: "secondary", onClick: () => this.onCancel(), disabled: this.isLoading, isLoading: this.isLoading }, "Cancel")) : (h(Button, { variant: "secondary", onClick: () => this.onBack(), disabled: this.isLoading, isLoading: this.isLoading }, "Back")), this.isLastStep ? (h(Button, { variant: "primary", onClick: () => this.onSubmit(), disabled: this.isLoading, isLoading: this.isLoading }, "Submit Counter Dispute")) : (h(Button, { variant: "primary", onClick: () => this.onNext(), disabled: this.isLoading, isLoading: this.isLoading }, "Next")))))));
|
|
225
225
|
}
|
|
226
226
|
static get watchers() { return {
|
|
227
227
|
"disputeId": ["propChanged"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { C as card, h as heading2, D as table, E as tableHeadCell, F as tableCell } from './parts.js';
|
|
3
3
|
|
|
4
4
|
const DocumentUploadList = /*@__PURE__*/ proxyCustomElement(class DocumentUploadList extends HTMLElement {
|
|
5
5
|
constructor(registerHost) {
|
|
@@ -42,7 +42,7 @@ const DuplicateCharge = /*@__PURE__*/ proxyCustomElement(class DuplicateCharge e
|
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
44
|
var _a, _b, _c;
|
|
45
|
-
return (h("div", { key: '
|
|
45
|
+
return (h("div", { key: 'a4be51ca28d0558a06a96429c9f6967de65f7687' }, h("div", { key: 'e240189e3a8d31963667e6779a9497ab8258f983', class: "row gy-3" }, h("div", { key: 'c22af27a5e94810c4daa4105d30b69a9bac3ea84', class: "col-12" }, h("h2", { key: '6b09237bb4a404c03a20f1dd3687b1b2b6c02f72', class: "h5", part: heading5 }, "Duplicate Charge")), h("div", { key: '91cca8f6bfe938aad35d57f1360cea9c8a46b89b', class: "col-12" }, h("form-control-text", { key: '88cd9fad95f55f1302cf8b638eee372279c0b601', label: "Original Payment ID", name: "duplicate_charge_original_payment_id", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.duplicate_charge_original_payment_id, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_original_payment_id })), h("div", { key: '930ddf5ae0d1f22e87f40d422cc7cc3cf202cf78', class: "col-12" }, h("form-control-textarea", { key: 'ab6764a1f982f6be6dd0fc94d5f6630b54fca654', label: "Duplicate Charge Explanation", name: "duplicate_charge_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.duplicate_charge_explanation, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_explanation })), h("div", { key: '8ca0a2a0b69d577022bd82d7f04fe8205ee66e7f', class: "col-12" }, h("form-control-file-v2", { key: '9a5e4ac52a949a8a7b4bcabd397f8b38edbff159', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.duplicate_charge_documentation })))));
|
|
46
46
|
}
|
|
47
47
|
}, [256, "duplicate-charge", {
|
|
48
48
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -39,7 +39,7 @@ const ElectronicEvidence = /*@__PURE__*/ proxyCustomElement(class ElectronicEvid
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
var _a, _b;
|
|
42
|
-
return (h("div", { key: '
|
|
42
|
+
return (h("div", { key: 'edbcd0fd94da7a6fb25403bca804133cd20be070' }, h("div", { key: '82263da6e6a92b478366025bf648fce4f3f91db6', class: "row gy-3" }, h("div", { key: 'f6435773410b5561ead0e4a20637a57b785b8c50', class: "col-12" }, h("h2", { key: 'c911fb7238d292f9d11627e13729cf613192cb13', class: "h5", part: heading5 }, "Electronic Evidence")), h("div", { key: 'ae43f664aa254449df9cf2c6e851e2e9c532c90e', class: "col-12" }, h("form-control-text", { key: 'a7781046a1ef45514831affa9c650b7849100817', label: "Purchase IP Address", name: "customer_purchase_ip_address", helpText: "The IP address used by the customer during the purchase.", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_purchase_ip_address, inputHandler: this.inputHandler, errorText: this.errors.customer_purchase_ip_address })), h("div", { key: '47ba5795dde01a4d62fbdeae9e5b7b29cd538cc5', class: "col-12" }, h("form-control-file-v2", { key: 'a44528a479ec5fa2d60e357aa577b1a44f81a074', label: "Activity Logs", name: "activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.activity_log })))));
|
|
43
43
|
}
|
|
44
44
|
}, [256, "electronic-evidence", {
|
|
45
45
|
"disputeResponse": [8, "dispute-response"],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { y as alertDanger } from './parts.js';
|
|
3
3
|
|
|
4
4
|
const FormAlert = /*@__PURE__*/ proxyCustomElement(class FormAlert extends HTMLElement {
|
|
5
5
|
constructor(registerHost) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { H as inputCheckboxInvalid, I as inputCheckboxCheckedFocused, J as inputCheckboxFocused, K as inputCheckboxChecked, L as inputCheckbox, l as label } from './parts.js';
|
|
3
3
|
import { F as FormControlHelpText } from './form-control-help-text2.js';
|
|
4
4
|
import { F as FormControlErrorText } from './form-control-error-text.js';
|
|
5
5
|
import './justifi-details2.js';
|
|
@@ -45,10 +45,10 @@ const FormControlCheckbox = /*@__PURE__*/ proxyCustomElement(class FormControlCh
|
|
|
45
45
|
return inputCheckbox;
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: 'c125c58c5883ba06b2a671551340b0ee316308af' }, h("div", { key: 'fd4b904ef4f20c357ef3aa9ce8b69b452f62bc0e', class: 'form-group d-flex flex-column' }, h("div", { key: 'b787782fcd23cbb044df6ea95a441fd71045815a', class: "form-check" }, h("input", { key: '72e4b3bed060f8b93fa53b254f6d492082270e62', ref: el => (this.checkboxElement = el), type: "checkbox", id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
49
49
|
this.isFocused = false;
|
|
50
50
|
this.formControlBlur.emit();
|
|
51
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '
|
|
51
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, checked: this.checked }), h("label", { key: '8a17ab6e5144bb06486c1e74035576b5ce473621', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: 'd0be5c8bf0cd51bf2251a5d780538d2e053163cb', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: 'ebffb11e0e2fa1dd2846d389604856fc04943b55', errorText: this.errorText, name: this.name }))));
|
|
52
52
|
}
|
|
53
53
|
}, [256, "form-control-checkbox", {
|
|
54
54
|
"label": [1],
|
|
@@ -47,10 +47,10 @@ const FormControlSelect = /*@__PURE__*/ proxyCustomElement(class FormControlSele
|
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
49
|
var _a;
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '181f9882efa122d1158475b03c5d91b6a596a029' }, h("div", { key: 'ab62345c08da6d3d33fa110937c936758e065eb3', class: "form-group d-flex flex-column" }, h("div", { key: 'a4cd1468d4c57b63ee25f25cca6f42ea08b70ef4', class: "d-flex align-items-start gap-2" }, h("label", { key: 'ebb6e16b2e11a3623c3152eb8e1b51412fa4d1ae', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '5d5d414a90927659661b6a2e167056c938e9c5a7', helpText: this.helpText })), h("select", { key: '8105c889f7fdb9376848c6057ccd58b9c62841a4', ref: el => (this.selectElement = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
51
51
|
this.isFocused = false;
|
|
52
52
|
this.formControlBlur.emit();
|
|
53
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h(FormControlErrorText, { key: '
|
|
53
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (h("option", { value: option.value }, option.label)))), h(FormControlErrorText, { key: '061a26387560f0b8085e83e1c373a43340146469', errorText: this.errorText, name: this.name }))));
|
|
54
54
|
}
|
|
55
55
|
static get watchers() { return {
|
|
56
56
|
"defaultValue": ["handleDefaultValueChange"]
|
package/dist/module/header-3.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { z as heading3 } from './parts.js';
|
|
3
3
|
|
|
4
4
|
const Header3 = (props) => {
|
|
5
5
|
return h("h3", { class: `header-3 ${props === null || props === void 0 ? void 0 : props.class}`, part: heading3 }, props.text);
|
|
@@ -1583,6 +1583,9 @@ const IframeInput = /*@__PURE__*/ proxyCustomElement(class IframeInput extends H
|
|
|
1583
1583
|
componentVersion: webcomponentsPackageJson.version,
|
|
1584
1584
|
});
|
|
1585
1585
|
}
|
|
1586
|
+
async reload() {
|
|
1587
|
+
this.iframeElement.src = this.iframeSrc;
|
|
1588
|
+
}
|
|
1586
1589
|
initializeFrameCommunicationService() {
|
|
1587
1590
|
var _a;
|
|
1588
1591
|
this.frameService = new FrameCommunicationService(this.iframeElement, this.iframeOrigin);
|
|
@@ -1618,11 +1621,14 @@ const IframeInput = /*@__PURE__*/ proxyCustomElement(class IframeInput extends H
|
|
|
1618
1621
|
const params = new URLSearchParams(encodedObject).toString();
|
|
1619
1622
|
return params;
|
|
1620
1623
|
}
|
|
1624
|
+
get iframeSrc() {
|
|
1625
|
+
return `${this.iframeOrigin}?${this.urlParams}`;
|
|
1626
|
+
}
|
|
1621
1627
|
render() {
|
|
1622
|
-
return (h(Host, { key: '
|
|
1628
|
+
return (h(Host, { key: 'ec85f26f88845957744034690b1ab0342009485c', class: "form-group d-flex flex-column" }, h("div", { key: 'e4b29dedfa037218b984bbcd00d3aed3bf6987bd', style: {
|
|
1623
1629
|
visibility: this.iframeLoaded ? 'visible' : 'hidden',
|
|
1624
1630
|
height: this.iframeLoaded ? 'auto' : '0',
|
|
1625
|
-
} }, h("label", { key: '
|
|
1631
|
+
} }, h("label", { key: '9e9539cc47e48b835dac8a0510899e6a2a25b46b', class: "form-label", htmlFor: "", part: label }, this.label || ''), h("div", { key: '45b0ef6167e59c542b7e72e9dbdb76c9d29bcfb1', class: `p-0 d-flex form-control ${this.isValid ? '' : 'is-invalid'}`, part: this.part, style: Object.assign(Object.assign({}, this.style), { overflow: 'hidden' }) }, h("iframe", { key: 'f52a24114c2e6de9cb110b20db28782125f3db9f', id: this.inputId, name: this.inputId, src: this.iframeSrc, ref: el => {
|
|
1626
1632
|
this.iframeElement = el;
|
|
1627
1633
|
this.initializeFrameCommunicationService();
|
|
1628
1634
|
}, width: "100%", onLoad: () => {
|
|
@@ -1632,7 +1638,7 @@ const IframeInput = /*@__PURE__*/ proxyCustomElement(class IframeInput extends H
|
|
|
1632
1638
|
this.iframeLoaded.emit();
|
|
1633
1639
|
}
|
|
1634
1640
|
}, this.iframeElement);
|
|
1635
|
-
} })), h(FormControlErrorText, { key: '
|
|
1641
|
+
} })), h(FormControlErrorText, { key: '6cec57e9a2d5ef4901302087e270255248cde0f1', errorText: this.errorText, name: this.inputId }))));
|
|
1636
1642
|
}
|
|
1637
1643
|
get el() { return this; }
|
|
1638
1644
|
}, [256, "iframe-input", {
|
|
@@ -1643,7 +1649,8 @@ const IframeInput = /*@__PURE__*/ proxyCustomElement(class IframeInput extends H
|
|
|
1643
1649
|
"isValid": [32],
|
|
1644
1650
|
"errorText": [32],
|
|
1645
1651
|
"validate": [64],
|
|
1646
|
-
"tokenize": [64]
|
|
1652
|
+
"tokenize": [64],
|
|
1653
|
+
"reload": [64]
|
|
1647
1654
|
}]);
|
|
1648
1655
|
function defineCustomElement() {
|
|
1649
1656
|
if (typeof customElements === "undefined") {
|
package/dist/module/index3.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import * as StencilCore from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const appendToMap = (map, propName, value) => {
|
|
3
|
+
const appendToMap = (map, refsByValue, propName, value) => {
|
|
4
|
+
let ref = refsByValue.get(value);
|
|
5
|
+
if (!ref) {
|
|
6
|
+
ref = new WeakRef(value);
|
|
7
|
+
refsByValue.set(value, ref);
|
|
8
|
+
}
|
|
4
9
|
let refs = map.get(propName);
|
|
5
10
|
if (!refs) {
|
|
6
|
-
refs =
|
|
11
|
+
refs = new Set();
|
|
7
12
|
map.set(propName, refs);
|
|
8
13
|
}
|
|
9
|
-
|
|
10
|
-
refs.push(new WeakRef(value));
|
|
11
|
-
}
|
|
14
|
+
refs.add(ref);
|
|
12
15
|
};
|
|
13
16
|
const debounce = (fn, ms) => {
|
|
14
17
|
let timeoutId;
|
|
@@ -34,13 +37,15 @@ const debounce = (fn, ms) => {
|
|
|
34
37
|
*/
|
|
35
38
|
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
|
36
39
|
const cleanupElements = debounce((map) => {
|
|
37
|
-
|
|
38
|
-
const
|
|
40
|
+
map.forEach((refs, key) => {
|
|
41
|
+
const nextRefs = new Set();
|
|
42
|
+
refs.forEach((ref) => {
|
|
39
43
|
const elm = ref.deref();
|
|
40
|
-
|
|
44
|
+
if (elm && isConnected(elm))
|
|
45
|
+
nextRefs.add(ref);
|
|
41
46
|
});
|
|
42
|
-
map.set(key,
|
|
43
|
-
}
|
|
47
|
+
map.set(key, nextRefs);
|
|
48
|
+
});
|
|
44
49
|
}, 2_000);
|
|
45
50
|
const core = StencilCore;
|
|
46
51
|
const forceUpdate = core.forceUpdate;
|
|
@@ -53,23 +58,24 @@ const stencilSubscription = () => {
|
|
|
53
58
|
}
|
|
54
59
|
const ensureForceUpdate = forceUpdate;
|
|
55
60
|
const ensureGetRenderingRef = getRenderingRef;
|
|
61
|
+
const refsByElement = new WeakMap();
|
|
56
62
|
const elmsToUpdate = new Map();
|
|
57
63
|
return {
|
|
58
64
|
dispose: () => elmsToUpdate.clear(),
|
|
59
65
|
get: (propName) => {
|
|
60
66
|
const elm = ensureGetRenderingRef();
|
|
61
67
|
if (elm) {
|
|
62
|
-
appendToMap(elmsToUpdate, propName, elm);
|
|
68
|
+
appendToMap(elmsToUpdate, refsByElement, propName, elm);
|
|
63
69
|
}
|
|
64
70
|
},
|
|
65
71
|
set: (propName) => {
|
|
66
72
|
const refs = elmsToUpdate.get(propName);
|
|
67
73
|
if (refs) {
|
|
68
|
-
const nextRefs =
|
|
74
|
+
const nextRefs = new Set();
|
|
75
|
+
refs.forEach((ref) => {
|
|
69
76
|
const elm = ref.deref();
|
|
70
|
-
if (
|
|
71
|
-
|
|
72
|
-
return ensureForceUpdate(elm);
|
|
77
|
+
if (elm && ensureForceUpdate(elm))
|
|
78
|
+
nextRefs.add(ref);
|
|
73
79
|
});
|
|
74
80
|
elmsToUpdate.set(propName, nextRefs);
|
|
75
81
|
}
|
|
@@ -539,7 +539,7 @@ const JustifiApplePay = /*@__PURE__*/ proxyCustomElement(class JustifiApplePay e
|
|
|
539
539
|
this.error = null;
|
|
540
540
|
this.applePayStarted.emit();
|
|
541
541
|
const paymentRequest = {
|
|
542
|
-
countryCode: this.
|
|
542
|
+
countryCode: this.countryCode,
|
|
543
543
|
currencyCode: checkoutStore.paymentCurrency,
|
|
544
544
|
merchantCapabilities: [
|
|
545
545
|
ApplePayMerchantCapability.SUPPORTS_3DS,
|
|
@@ -549,7 +549,6 @@ const JustifiApplePay = /*@__PURE__*/ proxyCustomElement(class JustifiApplePay e
|
|
|
549
549
|
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
550
550
|
total: ApplePayHelpers.createLineItem(checkoutStore.paymentDescription, checkoutStore.paymentAmount),
|
|
551
551
|
};
|
|
552
|
-
console.log("=== Apple Pay Payment Request ===", paymentRequest);
|
|
553
552
|
const result = await this.applePayService.startPaymentSession(paymentRequest, checkoutStore.authToken, checkoutStore.accountId);
|
|
554
553
|
if (result.success) {
|
|
555
554
|
this.applePayCompleted.emit({
|
|
@@ -604,12 +603,6 @@ const JustifiApplePay = /*@__PURE__*/ proxyCustomElement(class JustifiApplePay e
|
|
|
604
603
|
});
|
|
605
604
|
}
|
|
606
605
|
}
|
|
607
|
-
countryCodeForCurrency(currency) {
|
|
608
|
-
if (currency.toLowerCase() == "cad") {
|
|
609
|
-
return "CA";
|
|
610
|
-
}
|
|
611
|
-
return "US";
|
|
612
|
-
}
|
|
613
606
|
loadApplePaySDK() {
|
|
614
607
|
if (this.sdkLoaded)
|
|
615
608
|
return;
|
|
@@ -6,7 +6,8 @@ import { S as StyledHost } from './styled-host.js';
|
|
|
6
6
|
import './justifi-details2.js';
|
|
7
7
|
import './event-types.js';
|
|
8
8
|
import './justifi-radio-list-item2.js';
|
|
9
|
-
import { d as defineCustomElement$
|
|
9
|
+
import { d as defineCustomElement$5 } from './bank-account-form2.js';
|
|
10
|
+
import { d as defineCustomElement$4 } from './form-alert2.js';
|
|
10
11
|
import { d as defineCustomElement$3 } from './hidden-input2.js';
|
|
11
12
|
import { d as defineCustomElement$2 } from './iframe-input2.js';
|
|
12
13
|
|
|
@@ -54,7 +55,7 @@ function defineCustomElement$1() {
|
|
|
54
55
|
if (typeof customElements === "undefined") {
|
|
55
56
|
return;
|
|
56
57
|
}
|
|
57
|
-
const components = ["justifi-bank-account-form", "bank-account-form", "hidden-input", "iframe-input"];
|
|
58
|
+
const components = ["justifi-bank-account-form", "bank-account-form", "form-alert", "hidden-input", "iframe-input"];
|
|
58
59
|
components.forEach(tagName => { switch (tagName) {
|
|
59
60
|
case "justifi-bank-account-form":
|
|
60
61
|
if (!customElements.get(tagName)) {
|
|
@@ -62,6 +63,11 @@ function defineCustomElement$1() {
|
|
|
62
63
|
}
|
|
63
64
|
break;
|
|
64
65
|
case "bank-account-form":
|
|
66
|
+
if (!customElements.get(tagName)) {
|
|
67
|
+
defineCustomElement$5();
|
|
68
|
+
}
|
|
69
|
+
break;
|
|
70
|
+
case "form-alert":
|
|
65
71
|
if (!customElements.get(tagName)) {
|
|
66
72
|
defineCustomElement$4();
|
|
67
73
|
}
|
|
@@ -6,7 +6,8 @@ import { S as StyledHost } from './styled-host.js';
|
|
|
6
6
|
import './justifi-details2.js';
|
|
7
7
|
import './event-types.js';
|
|
8
8
|
import './justifi-radio-list-item2.js';
|
|
9
|
-
import { d as defineCustomElement$
|
|
9
|
+
import { d as defineCustomElement$5 } from './card-form2.js';
|
|
10
|
+
import { d as defineCustomElement$4 } from './form-alert2.js';
|
|
10
11
|
import { d as defineCustomElement$3 } from './hidden-input2.js';
|
|
11
12
|
import { d as defineCustomElement$2 } from './iframe-input2.js';
|
|
12
13
|
|
|
@@ -44,7 +45,7 @@ function defineCustomElement$1() {
|
|
|
44
45
|
if (typeof customElements === "undefined") {
|
|
45
46
|
return;
|
|
46
47
|
}
|
|
47
|
-
const components = ["justifi-card-form", "card-form", "hidden-input", "iframe-input"];
|
|
48
|
+
const components = ["justifi-card-form", "card-form", "form-alert", "hidden-input", "iframe-input"];
|
|
48
49
|
components.forEach(tagName => { switch (tagName) {
|
|
49
50
|
case "justifi-card-form":
|
|
50
51
|
if (!customElements.get(tagName)) {
|
|
@@ -52,6 +53,11 @@ function defineCustomElement$1() {
|
|
|
52
53
|
}
|
|
53
54
|
break;
|
|
54
55
|
case "card-form":
|
|
56
|
+
if (!customElements.get(tagName)) {
|
|
57
|
+
defineCustomElement$5();
|
|
58
|
+
}
|
|
59
|
+
break;
|
|
60
|
+
case "form-alert":
|
|
55
61
|
if (!customElements.get(tagName)) {
|
|
56
62
|
defineCustomElement$4();
|
|
57
63
|
}
|