@justifi/webcomponents 6.14.4-rc.2 → 6.14.5-rc.1
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/{Analytics-DahOCpJB.js → Analytics-46pgYofS.js} +3 -3
- package/dist/cjs/{Api-B4fSXAdi.js → Api-C2V2lX6a.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-COn1NkhY.js} +2 -2
- package/dist/cjs/card-form.cjs.entry.js +79 -26
- package/dist/cjs/{check-pkg-version-DR4Ghb6-.js → check-pkg-version-BsDr9TZT.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-DObCfUj2.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-CmDSoKh4.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-CuruLv9t.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 +52 -38
- 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-Cb1-8Jj8.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-XSIPp45g.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-CIzggNLL.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-jphsDR0Z.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-ZyT05wTw.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 +27 -9
- package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +1 -8
- package/dist/collection/components/modular-checkout/sub-components/justifi-sezzle-payment-method.js +12 -10
- 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-YJZMjYtq.js} +4 -4
- package/dist/esm/{Api-DoxYyzWs.js → Api-od4ybwHR.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-BM14Brj6.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-DtP8CVbU.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-B8kSQSsn.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-DL21cZd2.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-yZP4GBHd.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 +57 -43
- 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-B_uQqefL.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-S0sEKmRn.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-ZABnlfYv.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-qxtz2sWM.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-CB2kRLwO.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 +27 -9
- 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-sezzle-payment-method2.js +12 -10
- 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/modular-checkout/sub-components/justifi-sezzle-payment-method.d.ts +1 -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-33070a71.entry.js → p-005d353c.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-1208da06.entry.js +1 -0
- package/dist/webcomponents/p-13cbf119.entry.js +1 -0
- package/dist/webcomponents/p-1491320a.entry.js +1 -0
- package/dist/webcomponents/{p-1cff91b7.entry.js → p-15934f30.entry.js} +1 -1
- package/dist/webcomponents/{p-b46f303d.entry.js → p-16471ba1.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-348decec.entry.js +1 -0
- package/dist/webcomponents/{p-8fd18ce2.entry.js → p-36d7033b.entry.js} +1 -1
- package/dist/webcomponents/p-3734d15d.entry.js +1 -0
- package/dist/webcomponents/p-38bdce5d.entry.js +1 -0
- package/dist/webcomponents/{p-dc0cc4aa.entry.js → p-3ef039ec.entry.js} +1 -1
- package/dist/webcomponents/{p-65c3288f.entry.js → p-465e9e1c.entry.js} +1 -1
- package/dist/webcomponents/p-488dc072.entry.js +1 -0
- 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-2599e169.entry.js → p-4d747ce5.entry.js} +1 -1
- 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-e704d652.entry.js → p-5f57c81c.entry.js} +1 -1
- package/dist/webcomponents/p-5f7137db.entry.js +1 -0
- package/dist/webcomponents/{p-73deced9.entry.js → p-61eae8cd.entry.js} +1 -1
- package/dist/webcomponents/{p-2ba48cf1.entry.js → p-6ab4c4e0.entry.js} +1 -1
- 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-760f423b.entry.js +1 -0
- package/dist/webcomponents/{p-1e3f096f.entry.js → p-79fd9000.entry.js} +1 -1
- package/dist/webcomponents/{p-52b25165.entry.js → p-836c4136.entry.js} +1 -1
- package/dist/webcomponents/{p-396ed502.entry.js → p-88a3c0cf.entry.js} +3 -3
- package/dist/webcomponents/p-8fO8CrtQ.js +1 -0
- package/dist/webcomponents/{p-6f5d9579.entry.js → p-99d17144.entry.js} +1 -1
- package/dist/webcomponents/p-9bd0bb34.entry.js +1 -0
- package/dist/webcomponents/p-9c506058.entry.js +1 -0
- package/dist/webcomponents/p-9e9dcc20.entry.js +1 -0
- package/dist/webcomponents/p-B-Ik8b-s.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-Sr5nnVDM.js → p-BEmZOGbG.js} +1 -1
- package/dist/webcomponents/p-BLhz_ggG.js +1 -0
- package/dist/webcomponents/p-BTuqVZ6O.js +1 -0
- package/dist/webcomponents/p-B_uQqefL.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-BjNqkh37.js +1 -0
- package/dist/webcomponents/{p-C7lKXwUt.js → p-BnQkpNjd.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-C1PEDhkE.js +1 -0
- package/dist/webcomponents/{p-CB69z5Eh.js → p-C2l2dxvr.js} +1 -1
- package/dist/webcomponents/{p-BGD3uog3.js → p-C3geClRX.js} +1 -1
- package/dist/webcomponents/p-CArdj6i_.js +1 -0
- package/dist/webcomponents/{p-DfL-8Yvt.js → p-CELpJl4Y.js} +1 -1
- 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-ECg6MX8R.js → p-CT8oFJ_1.js} +1 -1
- 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-BS8j0DWf.js → p-ChiCyW0k.js} +1 -1
- package/dist/webcomponents/{p-B9fbqJSf.js → p-Co3Rtlnu.js} +1 -1
- package/dist/webcomponents/p-D1H6VUbM.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-DHB_XJ12.js → p-Do9dxNjh.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-76ded81e.entry.js → p-a14d3d7d.entry.js} +1 -1
- package/dist/webcomponents/p-a1b7e2fc.entry.js +1 -0
- package/dist/webcomponents/{p-49c13952.entry.js → p-af0c6421.entry.js} +1 -1
- 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-06d3d9b6.entry.js → p-b6c112cd.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-8476b45a.entry.js → p-bbd403f5.entry.js} +1 -1
- package/dist/webcomponents/p-bc435cae.entry.js +1 -0
- 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-d4208a51.entry.js +1 -0
- package/dist/webcomponents/{p-58e8d646.entry.js → p-d6122124.entry.js} +1 -1
- 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-26fe714a.entry.js → p-ead927fb.entry.js} +1 -1
- package/dist/webcomponents/p-ecaec672.entry.js +1 -0
- package/dist/webcomponents/p-ecbed9bc.entry.js +1 -0
- package/dist/webcomponents/p-ee108873.entry.js +1 -0
- package/dist/webcomponents/p-f0083ace.entry.js +1 -0
- package/dist/webcomponents/{p-c1209de0.entry.js → p-f1592a71.entry.js} +1 -1
- package/dist/webcomponents/{p-eccc1fc6.entry.js → p-f6941969.entry.js} +1 -1
- package/dist/webcomponents/{p-CvFpXdzD.js → p-gAlfGUcr.js} +1 -1
- package/dist/webcomponents/p-mjjqv7AN.js +1 -0
- package/dist/webcomponents/p-x2oNTAWh.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- 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-25215ee7.entry.js +0 -1
- package/dist/webcomponents/p-67a444f7.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-9735a37b.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-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-c1ada405.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-e7cfee5a.entry.js +0 -1
- package/dist/webcomponents/p-f8734760.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
|
@@ -40,11 +40,6 @@ export class JustifiCheckout {
|
|
|
40
40
|
checkoutStore.isSubmitting = false;
|
|
41
41
|
}
|
|
42
42
|
checkoutChanged(event) {
|
|
43
|
-
// if disabled bnpl, remove sezzle from available payment methods
|
|
44
|
-
if (this.disableBnpl) {
|
|
45
|
-
this.availablePaymentMethods = event.detail.availablePaymentMethodTypes.filter((method) => method !== PAYMENT_METHODS.SEZZLE);
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
43
|
this.availablePaymentMethods = event.detail.availablePaymentMethodTypes;
|
|
49
44
|
}
|
|
50
45
|
async fillBillingForm(fields) {
|
|
@@ -71,9 +66,9 @@ export class JustifiCheckout {
|
|
|
71
66
|
}
|
|
72
67
|
render() {
|
|
73
68
|
var _a, _b;
|
|
74
|
-
return (h(StyledHost, { key: '
|
|
69
|
+
return (h(StyledHost, { key: 'be64697a74e404e567c718562f72ca6cf644a2a4' }, h("justifi-modular-checkout", { key: '49be0912aa949927cb11bde45c6ade0eb25744be', ref: (el) => {
|
|
75
70
|
this.modularCheckoutRef = el;
|
|
76
|
-
}, authToken: this.authToken, checkoutId: this.checkoutId, preCompleteHook: this.preCompleteHook }, h("div", { key: '
|
|
71
|
+
}, authToken: this.authToken, checkoutId: this.checkoutId, preCompleteHook: this.preCompleteHook }, h("div", { key: '7ae8865515c16d119d0c951670b86f53006f5a2f', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '697f67f1603f78d852c3900f424fea1559dcbbc7', class: "col-12", part: checkoutSummary }, h("justifi-header", { key: '005b320bb2318b6e5a888911fe90aeeeb8ca58f1', text: "Summary", level: "h2", class: "fs-5 fw-bold pb-3" }), h("section", { key: 'e6e4e720e0d619aa338b1a64ccc75f6bcfb53129' }, h("justifi-checkout-summary", { key: '5bbc4d7223f56fe70bcc9810ebcde55264e17943' }))), h("div", { key: '7c5f714e729c26a8c3589e912100d38e61cb3846', class: "col-12 mt-4" }, h("slot", { key: 'ae66ebfe4a0e1456aaabd706523ef17e9c2c4b50', name: "insurance" })), h("div", { key: '3d74c4078230299a0d093568f9edf61ddede06d6', class: "col-12 mt-4" }, h("justifi-header", { key: '98fad7779ad81e44f56d488f8f9bebb843c8b044', text: "Payment", level: "h2", class: "fs-5 fw-bold pb-3" }), this.showPaymentTypeHeader && (h("justifi-header", { key: 'a522e1c11e8412c0df0b272201a9eb929e8f38a5', text: "Select payment type", level: "h3", class: "fs-6 fw-bold lh-lg" })), h("div", { key: '670a875b91e3c4f41cc1f99e159ddb62d5d2cd9d', class: "d-flex flex-column" }, h("section", { key: '660a700bfdffa79b3e00da2ae186f98fbefc59de' }, h("div", { key: '3c314f058f5a6bf745800790dcad6b0f09ec9fdf' }, this.availablePaymentMethods.includes(PAYMENT_METHODS.APPLE_PAY) && (h("div", { key: '9b3003bc6a7e2a85c64d28ac1457871297fcb570', class: "mb-3" }, h("justifi-apple-pay", { key: '25fb043d7fdd2308ceaf8cef9b8e3db72c276ec8' }))), this.availablePaymentMethods.includes(PAYMENT_METHODS.GOOGLE_PAY) && (h("div", { key: '62ea38828ed1e7fe795cd92c1523e0a09dbb1249', class: "mb-3" }, h("justifi-google-pay", Object.assign({ key: '6bf9455e95950766204a4b9a16c51512961dab6d', ref: (el) => (this.googlePayRef = el) }, (this.googlePayEnv != null ? { environment: this.googlePayEnv } : {}))))), h("justifi-saved-payment-methods", { key: 'ab59f136054cc421499002a3955aa91a679c1e16' }), this.availablePaymentMethods.includes(PAYMENT_METHODS.SEZZLE) && !this.disableBnpl && (h("justifi-radio-list-item", { key: '7f51953073b94f893b197cdedc123ec273283574', name: "paymentMethodType", value: PAYMENT_METHODS.SEZZLE, checked: ((_a = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _a === void 0 ? void 0 : _a.type) === PAYMENT_METHODS.SEZZLE, label: h("justifi-sezzle-payment-method", { ref: (el) => (this.sezzlePaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.sezzlePaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), this.availablePaymentMethods.includes(PAYMENT_METHODS.PLAID) && (h("justifi-radio-list-item", { key: '4ff159b8cd0eb5fe9a4e6a168a6c6b018754aad6', name: "paymentMethodType", value: PAYMENT_METHODS.PLAID, checked: ((_b = checkoutStore === null || checkoutStore === void 0 ? void 0 : checkoutStore.selectedPaymentMethod) === null || _b === void 0 ? void 0 : _b.type) === PAYMENT_METHODS.PLAID, label: h("justifi-plaid-payment-method", { ref: (el) => (this.plaidPaymentMethodRef = el) }), "onRadio-click": () => { var _a; (_a = this.plaidPaymentMethodRef) === null || _a === void 0 ? void 0 : _a.handleSelectionClick(); } })), h("justifi-tokenize-payment-method", { key: '9598c68ebb09a5fa817e9318526fa1bb6ffab5f3', ref: (el) => (this.tokenizePaymentMethodRef = el), authToken: this.authToken, accountId: checkoutStore.accountId, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, hideCardBillingForm: this.hideCardBillingForm, hideBankAccountBillingForm: this.hideBankAccountBillingForm, hideSubmitButton: true, paymentMethodGroupId: checkoutStore.paymentMethodGroupId }))))), h("div", { key: '92727d5624ed61bc3d986e495332e6a8e003dc8f', class: "mt-4" }, h("justifi-button", { key: 'b9b00d1bb08cb2beee1fd7e38877c5073245e4d5', text: "Pay", type: "submit", variant: "primary", clickHandler: (e) => this.submit(e), disabled: checkoutStore.isSubmitting || checkoutStore.isWalletProcessing, isLoading: checkoutStore.isSubmitting || checkoutStore.isWalletProcessing, customStyle: { width: '100%', textAlign: "center" } }))))));
|
|
77
72
|
}
|
|
78
73
|
static get is() { return "justifi-checkout"; }
|
|
79
74
|
static get properties() {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Stencil's mock window retains native timers, so bridge it to Jest's timers.
|
|
2
|
+
export const useBridgedFakeTimers = () => {
|
|
3
|
+
jest.useFakeTimers({
|
|
4
|
+
doNotFake: ['nextTick', 'queueMicrotask', 'setImmediate'],
|
|
5
|
+
});
|
|
6
|
+
const setTimeoutSpy = jest.spyOn(window, 'setTimeout').mockImplementation(globalThis.setTimeout);
|
|
7
|
+
const clearTimeoutSpy = jest.spyOn(window, 'clearTimeout').mockImplementation(globalThis.clearTimeout);
|
|
8
|
+
return () => {
|
|
9
|
+
setTimeoutSpy.mockRestore();
|
|
10
|
+
clearTimeoutSpy.mockRestore();
|
|
11
|
+
jest.clearAllTimers();
|
|
12
|
+
jest.useRealTimers();
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -51,8 +51,8 @@ export class JustifiCheckoutsListFilters {
|
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
53
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
54
|
-
return (h(StyledHost, { key: '
|
|
55
|
-
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: filterParam })), h("div", { key: '
|
|
54
|
+
return (h(StyledHost, { key: 'bcee49169e1a26419ec784bc54f2c44647e45a9b' }, h("table-filters-menu", { key: '610a73cf73a45f300cb860056be85948b4d88b33', params: filterMenuParams, clearParams: clearParams, part: filterMenu }, h("div", { key: '726a5c935121fc7371d0c87c3fc5caca97d9b28e', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'f74c2c992b97c69e20bed9a6d58a2f5f87ed49bc', class: "p-2" }, h("form-control-text", { key: 'ebebfe02d605f782ec1b7d845af4d104b71683db', name: "checkout_id", label: "Checkout ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.checkoutId || filterParams.checkout_id, disabled: !!this.checkoutId, part: filterParam })), h("div", { key: 'c21b068705bcd55176316010772b555dfb690571', class: "p-2" }, h("form-control-text", { key: '0b583f4243e17019a0bce4284c52efa46885a1dc', name: "successful_payment_id", label: "Successful Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.successfulPaymentId || filterParams.successful_payment_id, disabled: !!this.successfulPaymentId, part: filterParam })), h("div", { key: '8f37a6ff48c7d4a087fd97c4c7304ffaa366c5b8', class: "p-2" }, h("form-control-select", { key: '93fe20d82fb240aa69bcacf22a6db686aa4aadf4', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status || '', disabled: !!this.checkoutStatus, part: filterParam })), h("div", { key: 'af69b75624d05163f9da8e125ae40b371c1fcc38', class: "p-2" }, h("form-control-select", { key: '46a1db36de05f100b7ac5b9ad92dcce99f3fc4e4', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode || '', disabled: !!this.paymentMode, part: filterParam })), h("div", { key: '56bba4a390bbc1bedc57183c297414903261a52c', class: "p-2" }, h("form-control-date", { key: 'ee284ecee968db1520f7ced86c8c45aa47b6f802', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
|
|
55
|
+
convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: filterParam })), h("div", { key: '23cfe2cead1ff93326b7ffc2713c652a2ae37ffb', class: "p-2" }, h("form-control-date", { key: 'd06729ff97a8d48beb09652a098b7d1d1b47823b', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
|
|
56
56
|
convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: filterParam }))))));
|
|
57
57
|
}
|
|
58
58
|
static get is() { return "justifi-checkouts-list-filters"; }
|
|
@@ -178,8 +178,8 @@ export class JustifiCheckoutsList {
|
|
|
178
178
|
return !this.showEmptyState && !this.showErrorState && !this.loading;
|
|
179
179
|
}
|
|
180
180
|
render() {
|
|
181
|
-
return (h(StyledHost, { key: '
|
|
182
|
-
this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '
|
|
181
|
+
return (h(StyledHost, { key: '882db931e1e29698776ffa6c715ca4abb7d322f7' }, h(TableWrapper, { key: '7bb610f41ae1feab6e4a1cf8abb19fbff00914e6' }, h(TableComponent, { key: '4ca7ca2a8fcb7b26cd4cdb7679ef7c3db17bb1d1' }, h(TableHead, { key: 'b2fdd2852c74f066cfdf7aee27148fa36cf5df74' }, h(TableHeadRow, { key: '688d8189928c8ee54e6b60383492cdd2e7717fcf' }, this.checkoutsTable.columnData.map((column) => column))), h(TableBody, { key: '0e3e589b387455bdbb30c5130e206c46447d2a43' }, h(TableLoadingState, { key: 'b0d74610ef26b4b67e1c1a70b93e9932c4d47350', columnSpan: this.checkoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'dfc775ac8f7a47611e740e1e4b7562adfffd15d3', isEmpty: this.showEmptyState, columnSpan: this.checkoutsTable.columnKeys.length }), h(TableErrorState, { key: '8ba255c49e9ea76d13644b4c5842f9c003816040', columnSpan: this.checkoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData &&
|
|
182
|
+
this.checkoutsTable.rowData.map((data, index) => (h(TableRow, { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h(TableFoot, { key: '82cf7b391647fdb6cefcbdbe13113ebb6e70bf62' }, h(TableFootRow, { key: '6678e2573867bf3c79f266ebab392034eb143c65' }, h(TableFootCell, { key: 'c981a304af815c314e8306922b779cea8670b825', colSpan: this.checkoutsTable.columnData.length }, h("pagination-menu", { key: 'ea32b8d13a5af7122095fd4081d29668019928ee', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
|
|
183
183
|
}
|
|
184
184
|
static get is() { return "justifi-checkouts-list"; }
|
|
185
185
|
static get encapsulation() { return "shadow"; }
|
|
@@ -44,8 +44,8 @@ export class DisputeNotification {
|
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
46
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
47
|
-
return (h("div", { key: '
|
|
48
|
-
_b.due_date, ") for this dispute has passed"), h("p", { key: '
|
|
47
|
+
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 :
|
|
48
|
+
_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.")))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "dispute-notification"; }
|
|
51
51
|
static get properties() {
|
package/dist/collection/components/dispute-management/dispute-response/additional-statement.js
CHANGED
|
@@ -29,7 +29,7 @@ export class AdditionalStatement {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
var _a, _b;
|
|
32
|
-
return (h("div", { key: '
|
|
32
|
+
return (h("div", { key: '705936da10f418086c5757af0de3e53ab10716e0' }, h("div", { key: '56606aa326884a0e4417259a47739d867c2adfd7', class: "row gy-3" }, h("div", { key: '77d1e0eac15050e686f603dee1ca43f55373129f', class: "col-12" }, h("h2", { key: '7ded76e33d6190d0bf38c04ae1be16d3fbe90ee6', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: '62ac6a05b02dd2572faf39c1676300d01e72b953', class: "col-12" }, h("form-control-textarea", { key: '04aecc2015fea1ecf1e8a4dc5c17ae126040eaba', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), h("div", { key: 'f483f7187b15facbc60411659aee39b59f5046eb', class: "col-12" }, h("form-control-file-v2", { key: '7d11206b29a51d5ad493488f8446fcf1254ed411', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "additional-statement"; }
|
|
35
35
|
static get properties() {
|
package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js
CHANGED
|
@@ -28,7 +28,7 @@ export class CancellationPolicy {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: '97168f1e084510db91708b5f769d680506e48378' }, h("div", { key: 'fed6ca9c4aa195adbbc702957f94ce13be6d12ea', class: "row gy-3" }, h("div", { key: '6ac7b963019a8b83e3068940a3219338e5603f20', class: "col-12" }, h("h2", { key: '0a9a79bfc840aa2190eb48b7860db7eab1e94d6b', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: '662b83a4b580d8f2621a6475fa693314a1459d77', class: "col-12" }, h("form-control-textarea", { key: '5c1edfe81316fa0da00ed80ad448e4165eff4445', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), h("div", { key: '36c6f8408c1975ba23bb41cd44c8442a3c5ef952', class: "col-12" }, h("form-control-textarea", { key: '570795ddd085ea26d8456908efe0651793f4490a', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), h("div", { key: '4cb3da1f399fb639e08474d6ec6d82071d31968f', class: "col-12" }, h("form-control-file-v2", { key: '701338b09a213b850347a4204d2b0c536406afd3', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "cancellation-policy"; }
|
|
34
34
|
static get properties() {
|
|
@@ -28,7 +28,7 @@ export class CustomerDetails {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c, _d, _e;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
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 })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "customer-details"; }
|
|
34
34
|
static get properties() {
|
|
@@ -199,7 +199,7 @@ export class DisputeResponse {
|
|
|
199
199
|
return this.currentStep === 0;
|
|
200
200
|
}
|
|
201
201
|
render() {
|
|
202
|
-
return (h("div", { key: '
|
|
202
|
+
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")))))));
|
|
203
203
|
}
|
|
204
204
|
static get is() { return "dispute-response"; }
|
|
205
205
|
static get properties() {
|
|
@@ -28,7 +28,7 @@ export class DuplicateCharge {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
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 })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "duplicate-charge"; }
|
|
34
34
|
static get properties() {
|
package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js
CHANGED
|
@@ -28,7 +28,7 @@ export class ElectronicEvidence {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
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 })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "electronic-evidence"; }
|
|
34
34
|
static get properties() {
|
package/dist/collection/components/dispute-management/dispute-response/product-or-service.js
CHANGED
|
@@ -28,7 +28,7 @@ export class ProductOrService {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: '05c536ee29807808dde18056696f0874d58efbe9' }, h("div", { key: '07927d573fff06c4b65330a4cfb493f594e362d4', class: "row gy-3" }, h("div", { key: 'c38ab76b089b7b66aad0dd89dbc74b2a3fedddda', class: "col-12" }, h("h2", { key: '830d1384bc17af43bcd20145eab870ca293d965d', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: '6b5fb4827719e7dd29a90935ec5afd540c1c81fd', class: "col-12" }, h("form-control-text", { key: '0fed87fcbb554a739285431f6256f8b8d7802b9a', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), h("div", { key: '8a59d2bb505dd211126d6e4a6e741aaed959edc7', class: "col-12" }, h("form-control-date", { key: 'ffa4f5323aaa7c274950f2176774a4f7946c4ca4', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), h("div", { key: 'c9e7aca6c2e9c66ec0884b34533af18a1c581b4d', class: "col-12" }, h("form-control-file-v2", { key: '8db8543f45b02496d2cc6f04794c18da55f4c146', label: "Service Documentation", name: "service_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.service_documentation })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "product-or-service"; }
|
|
34
34
|
static get properties() {
|
|
@@ -28,7 +28,7 @@ export class RefundPolicy {
|
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
30
|
var _a, _b, _c, _d;
|
|
31
|
-
return (h("div", { key: '
|
|
31
|
+
return (h("div", { key: 'baf5ee051fb023d19f3d0c21d4a7ee651e283c76' }, h("div", { key: 'c8e4870b875bff53184b90e2d254acdee795e51c', class: "row gy-3" }, h("div", { key: '872d7f45c1b5832234d013a3f7065d05f9896d80', class: "col-12" }, h("h2", { key: '7ae62cf2f5ab51537349b91db8fa9d2fa351e685', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: '48a8249261d3bcf981e45dba6aaf260c4419816e', class: "col-12" }, h("form-control-textarea", { key: '31b6c4b3ffadc1fe812a00fb5e4d40de423b635e', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), h("div", { key: 'f5504c3367bc74127dec92d95d0934a9bbb00b29', class: "col-12" }, h("form-control-textarea", { key: '9fe085d5435561251b3192169904438f0b6501e6', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), h("div", { key: 'ae8110175bfd1880b62e41fc1b474f31a9523cfb', class: "col-12" }, h("form-control-file-v2", { key: 'ba38271cac7afd52ba6669086d664cec2e008f77', label: "Upload Refund Policy", name: "refund_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.refund_policy })), h("div", { key: '31ff66405fdae65e1b441b847a0e5f048822e0fc', class: "col-12" }, h("form-control-file-v2", { key: 'a36cb88846ba11690a4525ffbb27c0b4fb2140af', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "refund-policy"; }
|
|
34
34
|
static get properties() {
|
|
@@ -29,7 +29,7 @@ export class ShippingDetails {
|
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
31
|
var _a, _b, _c, _d, _e;
|
|
32
|
-
return (h("div", { key: '
|
|
32
|
+
return (h("div", { key: '079899510230700b1b0164642856719267e0dc09' }, h("div", { key: '23229775a0a57e60cd6de4ceff1bcb60d2502283', class: "row gy-3" }, h("div", { key: '9376fd2dfe64983f734f93354c08a38cbe6d46d4', class: "col-12" }, h("h2", { key: '141a2e2a5098388d15e4626a4311a0d95991af3b', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: 'c1eae745411ea51d07839c84abce48742cf8e31b', class: "col-12" }, h("form-control-text", { key: '37ffbdb5be2e0bcffcc78b19ce5a125fd3a7cbd5', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: '27f39470af011e3cbae85e35e56c544a331c1241', class: "col-12" }, h("form-control-text", { key: 'dda7d915ab28bb2845cbfd1338222b1c50aab063', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: 'bbf1cff1e23632597fad5c84b4c6ceb8080be547', class: "col-12" }, h("form-control-date", { key: '8a0bc94d48e7ccde53408ad6a3f20ffcfe7a6263', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '55e9efd42f6380c0bb645de90dde4eb63ce80a5d', class: "col-12" }, h("form-control-textarea", { key: '0dac6c8521bec728b7dd182841552b72f38dbbec', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: '488034d64bc2808d27b9a072515cb84593e72db9', class: "col-12" }, h("form-control-file-v2", { key: '609b0177ed8279fe483f5b4e59ee076b4b471ee7', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "shipping-details"; }
|
|
35
35
|
static get properties() {
|
|
@@ -92,7 +92,7 @@ export class JustifiDisputeManagement {
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
render() {
|
|
95
|
-
return (h(StyledHost, { key: '
|
|
95
|
+
return (h(StyledHost, { key: '6d86218f7a7fe8ea93a377e3bf182dc67e339682' }, h("div", { key: '0b51a3bbf6608671ba63773aa77665f85e88ef27' }, this.showDisputeResponseForm ? (h("dispute-response", { disputeId: this.disputeId, disputeResponse: this.dispute.dispute_response, authToken: this.authToken })) : (h("dispute-notification", { dispute: this.dispute, authToken: this.authToken, isLoading: this.isLoading })))));
|
|
96
96
|
}
|
|
97
97
|
static get is() { return "justifi-dispute-management"; }
|
|
98
98
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class TableFiltersMenu {
|
|
|
19
19
|
this.showClearButton = hasFilters(this.params);
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h("div", { key: '
|
|
22
|
+
return (h("div", { key: 'b2995f302e9627d876ff6ac21295d41ce69d4f7b', class: "d-flex gap-2" }, h("div", { key: '998fd281023ac31e826e5288d4b6d47292cdf6ef', class: "dropdown pb-3" }, h("button", { key: 'fc3ee216db9069418fcc0c53f0910185934b4ad9', type: "button dropdown-toggle", ref: (el) => (this.anchorButton = el), class: "btn btn-primary dropdown-toggle", part: dropdownMenuButton, "data-test-id": "open-filters-button", "data-bs-toggle": "dropdown" }, "Filters"), h("custom-popper", { key: '276206711bc368554023e0545852cc2dd05bbc84', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: '099fa4a9981bf956e2bab4b938595ed5414d0c49', class: "dropdown-menu", part: dropdownMenu, "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: '7d4e6e5b97effc0ccddce3333795b1fc43f63e43' })))), h("div", { key: '422589b336e1e9d0a1aac49ce05f7febf804759c' }, h(Button, { key: '1ae668bea62082a84fe47d75697d2b0cbb9ed617', variant: "secondary", onClick: () => this.clearParams(), hidden: !this.showClearButton, "data-test-id": "clear-filters-button" }, "Clear Filters"))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "table-filters-menu"; }
|
|
25
25
|
static get properties() {
|
|
@@ -75,6 +75,7 @@ export class JustifiModularCheckout {
|
|
|
75
75
|
};
|
|
76
76
|
}
|
|
77
77
|
connectedCallback() {
|
|
78
|
+
var _a;
|
|
78
79
|
this.observer = new MutationObserver(() => {
|
|
79
80
|
this.queryFormRefs();
|
|
80
81
|
this.setupApplePayListeners(); // set up again listeners when DOM changes
|
|
@@ -92,8 +93,8 @@ export class JustifiModularCheckout {
|
|
|
92
93
|
};
|
|
93
94
|
this.getCheckout = makeGetCheckout(config);
|
|
94
95
|
this.completeCheckout = makeCheckoutComplete(config);
|
|
95
|
-
|
|
96
|
-
onAnyChange(() => {
|
|
96
|
+
(_a = this.unsubscribeCheckoutChanges) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
97
|
+
this.unsubscribeCheckoutChanges = onAnyChange(() => {
|
|
97
98
|
this.emitCheckoutChanged();
|
|
98
99
|
});
|
|
99
100
|
}
|
|
@@ -116,8 +117,10 @@ export class JustifiModularCheckout {
|
|
|
116
117
|
this.setupGooglePayListeners();
|
|
117
118
|
}
|
|
118
119
|
disconnectedCallback() {
|
|
119
|
-
var _a;
|
|
120
|
-
(_a = this.
|
|
120
|
+
var _a, _b;
|
|
121
|
+
(_a = this.unsubscribeCheckoutChanges) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
122
|
+
this.unsubscribeCheckoutChanges = undefined;
|
|
123
|
+
(_b = this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
121
124
|
this.removeApplePayListeners();
|
|
122
125
|
this.removeGooglePayListeners();
|
|
123
126
|
}
|
|
@@ -311,7 +314,7 @@ export class JustifiModularCheckout {
|
|
|
311
314
|
}
|
|
312
315
|
}
|
|
313
316
|
async submitCheckout(submitCheckoutArgs) {
|
|
314
|
-
var _a, _b, _c, _d, _e;
|
|
317
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
315
318
|
if (checkoutStore.isSubmitting)
|
|
316
319
|
return;
|
|
317
320
|
checkoutStore.isSubmitting = true;
|
|
@@ -388,7 +391,22 @@ export class JustifiModularCheckout {
|
|
|
388
391
|
});
|
|
389
392
|
return;
|
|
390
393
|
}
|
|
391
|
-
|
|
394
|
+
// Sezzle has no payment token; approval comes from the Sezzle popup
|
|
395
|
+
const isSezzle = ((_e = checkoutStore.selectedPaymentMethod) === null || _e === void 0 ? void 0 : _e.type) === PAYMENT_METHODS.SEZZLE;
|
|
396
|
+
if (isSezzle) {
|
|
397
|
+
const sezzleRef = this.hostEl.querySelector('justifi-sezzle-payment-method');
|
|
398
|
+
const payload = await (sezzleRef === null || sezzleRef === void 0 ? void 0 : sezzleRef.resolvePaymentMethod({ isValid }));
|
|
399
|
+
if (((_f = payload === null || payload === void 0 ? void 0 : payload.bnpl) === null || _f === void 0 ? void 0 : _f.status) !== 'success') {
|
|
400
|
+
checkoutStore.isSubmitting = false;
|
|
401
|
+
this.errorEvent.emit({
|
|
402
|
+
message: ((_g = payload === null || payload === void 0 ? void 0 : payload.error) === null || _g === void 0 ? void 0 : _g.message) || 'Sezzle checkout was not completed.',
|
|
403
|
+
errorCode: ComponentErrorCodes.TOKENIZE_ERROR,
|
|
404
|
+
severity: ComponentErrorSeverity.ERROR,
|
|
405
|
+
});
|
|
406
|
+
return;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
if (!isSezzle && !checkoutStore.paymentToken) {
|
|
392
410
|
checkoutStore.isSubmitting = false;
|
|
393
411
|
this.errorEvent.emit({
|
|
394
412
|
message: 'Payment token not found.',
|
|
@@ -416,8 +434,8 @@ export class JustifiModularCheckout {
|
|
|
416
434
|
}
|
|
417
435
|
};
|
|
418
436
|
const payment = {
|
|
419
|
-
payment_mode: mapTypeToPaymentMode((
|
|
420
|
-
payment_token: checkoutStore.paymentToken,
|
|
437
|
+
payment_mode: mapTypeToPaymentMode((_h = checkoutStore.selectedPaymentMethod) === null || _h === void 0 ? void 0 : _h.type),
|
|
438
|
+
payment_token: isSezzle ? undefined : checkoutStore.paymentToken,
|
|
421
439
|
};
|
|
422
440
|
if (this.preCompleteHook) {
|
|
423
441
|
const state = getCheckoutState();
|
|
@@ -452,7 +470,7 @@ export class JustifiModularCheckout {
|
|
|
452
470
|
});
|
|
453
471
|
}
|
|
454
472
|
render() {
|
|
455
|
-
return h(Host, { key: '
|
|
473
|
+
return h(Host, { key: 'c9b021ee33cdac2c88ec16df613ccaf3f4e981ef' });
|
|
456
474
|
}
|
|
457
475
|
static get is() { return "justifi-modular-checkout"; }
|
|
458
476
|
static get properties() {
|
|
@@ -33,7 +33,7 @@ export class JustifiApplePay {
|
|
|
33
33
|
this.error = null;
|
|
34
34
|
this.applePayStarted.emit();
|
|
35
35
|
const paymentRequest = {
|
|
36
|
-
countryCode: this.
|
|
36
|
+
countryCode: this.countryCode,
|
|
37
37
|
currencyCode: checkoutStore.paymentCurrency,
|
|
38
38
|
merchantCapabilities: [
|
|
39
39
|
ApplePayMerchantCapability.SUPPORTS_3DS,
|
|
@@ -43,7 +43,6 @@ export class JustifiApplePay {
|
|
|
43
43
|
supportedNetworks: ApplePayHelpers.getDefaultSupportedNetworks(),
|
|
44
44
|
total: ApplePayHelpers.createLineItem(checkoutStore.paymentDescription, checkoutStore.paymentAmount),
|
|
45
45
|
};
|
|
46
|
-
console.log("=== Apple Pay Payment Request ===", paymentRequest);
|
|
47
46
|
const result = await this.applePayService.startPaymentSession(paymentRequest, checkoutStore.authToken, checkoutStore.accountId);
|
|
48
47
|
if (result.success) {
|
|
49
48
|
this.applePayCompleted.emit({
|
|
@@ -98,12 +97,6 @@ export class JustifiApplePay {
|
|
|
98
97
|
});
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
|
-
countryCodeForCurrency(currency) {
|
|
102
|
-
if (currency.toLowerCase() == "cad") {
|
|
103
|
-
return "CA";
|
|
104
|
-
}
|
|
105
|
-
return "US";
|
|
106
|
-
}
|
|
107
100
|
loadApplePaySDK() {
|
|
108
101
|
if (this.sdkLoaded)
|
|
109
102
|
return;
|
package/dist/collection/components/modular-checkout/sub-components/justifi-sezzle-payment-method.js
CHANGED
|
@@ -3,7 +3,7 @@ import { formatCurrency } from "../../../utils/utils";
|
|
|
3
3
|
import { checkoutStore } from "../../../store/checkout.store";
|
|
4
4
|
import { StyledHost } from "../../../ui-components";
|
|
5
5
|
import { PAYMENT_METHODS } from "../ModularCheckout";
|
|
6
|
-
const sezzleLogo = (h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
|
|
6
|
+
const sezzleLogo = () => (h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
|
|
7
7
|
display: 'inline',
|
|
8
8
|
width: '80px',
|
|
9
9
|
marginLeft: '5px',
|
|
@@ -13,8 +13,6 @@ export class JustifiSezzlePaymentMethod {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
this.paymentMethodOptionId = PAYMENT_METHODS.SEZZLE;
|
|
15
15
|
this.initializeSezzleCheckout = () => {
|
|
16
|
-
let resolveSezzlePromise;
|
|
17
|
-
this.sezzlePromise = new Promise((resolve) => { resolveSezzlePromise = resolve; });
|
|
18
16
|
const amount = Number(checkoutStore.paymentAmount);
|
|
19
17
|
const Checkout = window.Checkout;
|
|
20
18
|
const checkout = new Checkout({
|
|
@@ -31,9 +29,9 @@ export class JustifiSezzlePaymentMethod {
|
|
|
31
29
|
checkout_url: checkoutStore.bnplProviderCheckoutUrl,
|
|
32
30
|
});
|
|
33
31
|
},
|
|
34
|
-
onComplete: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
35
|
-
onCancel: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
36
|
-
onFailure: (event) => resolveSezzlePromise({ bnpl: event.data }),
|
|
32
|
+
onComplete: (event) => { var _a; return (_a = this.resolveSezzlePromise) === null || _a === void 0 ? void 0 : _a.call(this, { bnpl: event.data }); },
|
|
33
|
+
onCancel: (event) => { var _a; return (_a = this.resolveSezzlePromise) === null || _a === void 0 ? void 0 : _a.call(this, { bnpl: event.data }); },
|
|
34
|
+
onFailure: (event) => { var _a; return (_a = this.resolveSezzlePromise) === null || _a === void 0 ? void 0 : _a.call(this, { bnpl: event.data }); },
|
|
37
35
|
});
|
|
38
36
|
this.sezzleCheckout = checkout;
|
|
39
37
|
this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
|
|
@@ -51,8 +49,13 @@ export class JustifiSezzlePaymentMethod {
|
|
|
51
49
|
if (!insuranceValidation.isValid) {
|
|
52
50
|
return { validationError: true };
|
|
53
51
|
}
|
|
52
|
+
if (!this.sezzleButtonRef) {
|
|
53
|
+
return { error: { code: 'sezzle_not_ready', message: 'Sezzle is not ready yet. Please try again.', decline_code: '' } };
|
|
54
|
+
}
|
|
55
|
+
// new promise per attempt so retries after cancel/failure re-open the popup
|
|
56
|
+
const sezzlePromise = new Promise((resolve) => { this.resolveSezzlePromise = resolve; });
|
|
54
57
|
this.sezzleButtonRef.click();
|
|
55
|
-
return
|
|
58
|
+
return sezzlePromise;
|
|
56
59
|
}
|
|
57
60
|
async handleSelectionClick() {
|
|
58
61
|
checkoutStore.selectedPaymentMethod = { type: PAYMENT_METHODS.SEZZLE };
|
|
@@ -64,15 +67,14 @@ export class JustifiSezzlePaymentMethod {
|
|
|
64
67
|
console.warn('justifi-sezzle-payment-method: BNPL is not enabled for this account.');
|
|
65
68
|
return null;
|
|
66
69
|
}
|
|
67
|
-
return (h(StyledHost, { class: "payment-method" }, h("script", { src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", null, h("div", null, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", null, h("span", null, (_a = this.installmentPlan) === null || _a === void 0 ? void 0 : _a.installments.length), "\u00A0", h("span", null, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { class: "fw-bold" }, formatCurrency((_b = this.installmentPlan) === null || _b === void 0 ? void 0 : _b.installments[0].amountInCents)))))));
|
|
70
|
+
return (h(StyledHost, { class: "payment-method" }, h("script", { src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", null, h("div", null, "Buy now, pay later with ", sezzleLogo()), this.installmentPlan && (h("small", null, h("span", null, (_a = this.installmentPlan) === null || _a === void 0 ? void 0 : _a.installments.length), "\u00A0", h("span", null, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { class: "fw-bold" }, formatCurrency((_b = this.installmentPlan) === null || _b === void 0 ? void 0 : _b.installments[0].amountInCents)))))));
|
|
68
71
|
}
|
|
69
72
|
static get is() { return "justifi-sezzle-payment-method"; }
|
|
70
73
|
static get encapsulation() { return "shadow"; }
|
|
71
74
|
static get states() {
|
|
72
75
|
return {
|
|
73
76
|
"installmentPlan": {},
|
|
74
|
-
"sezzleCheckout": {}
|
|
75
|
-
"sezzlePromise": {}
|
|
77
|
+
"sezzleCheckout": {}
|
|
76
78
|
};
|
|
77
79
|
}
|
|
78
80
|
static get events() {
|
|
@@ -128,7 +128,7 @@ export class JustifiRefundPayment {
|
|
|
128
128
|
onError: ({ error, code, severity }) => {
|
|
129
129
|
// If void fails, fall back to refund
|
|
130
130
|
voidAttempted = true;
|
|
131
|
-
this.handleError(
|
|
131
|
+
this.handleError(code, error, severity);
|
|
132
132
|
this.processRefund(values)
|
|
133
133
|
.then(resolve);
|
|
134
134
|
},
|
|
@@ -157,7 +157,7 @@ export class JustifiRefundPayment {
|
|
|
157
157
|
onSuccess: (response) => { refundResponse = response; },
|
|
158
158
|
onError: ({ error, code, severity }) => {
|
|
159
159
|
refundResponse = error;
|
|
160
|
-
this.handleError(
|
|
160
|
+
this.handleError(code, error, severity);
|
|
161
161
|
},
|
|
162
162
|
final: () => {
|
|
163
163
|
this.submitEvent.emit({ response: refundResponse });
|
|
@@ -108,8 +108,22 @@ export function getCheckoutState() {
|
|
|
108
108
|
}
|
|
109
109
|
export { checkoutStore as checkoutStore, onChange };
|
|
110
110
|
export function onAnyChange(callback) {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
let pending = false;
|
|
112
|
+
let active = true;
|
|
113
|
+
const unsubscribe = Object.keys(initialState).map((key) => {
|
|
114
|
+
return onChange(key, () => {
|
|
115
|
+
if (pending || !active)
|
|
116
|
+
return;
|
|
117
|
+
pending = true;
|
|
118
|
+
queueMicrotask(() => {
|
|
119
|
+
pending = false;
|
|
120
|
+
if (active)
|
|
121
|
+
callback();
|
|
122
|
+
});
|
|
123
|
+
});
|
|
114
124
|
});
|
|
125
|
+
return () => {
|
|
126
|
+
active = false;
|
|
127
|
+
unsubscribe.forEach((off) => off());
|
|
128
|
+
};
|
|
115
129
|
}
|
|
@@ -34,10 +34,10 @@ export class FormControlCheckbox {
|
|
|
34
34
|
return inputCheckbox;
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return (h(Host, { key: '
|
|
37
|
+
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: () => {
|
|
38
38
|
this.isFocused = false;
|
|
39
39
|
this.formControlBlur.emit();
|
|
40
|
-
}, 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: '
|
|
40
|
+
}, 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 }))));
|
|
41
41
|
}
|
|
42
42
|
static get is() { return "form-control-checkbox"; }
|
|
43
43
|
static get properties() {
|
|
@@ -35,10 +35,10 @@ export class FormControlSelect {
|
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
37
|
var _a;
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
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: () => {
|
|
39
39
|
this.isFocused = false;
|
|
40
40
|
this.formControlBlur.emit();
|
|
41
|
-
}, 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: '
|
|
41
|
+
}, 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 }))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "form-control-select"; }
|
|
44
44
|
static get properties() {
|