@justifi/webcomponents 5.3.4 → 5.3.5
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-2fb20059.js → Analytics-e91a5523.js} +1 -1
- package/dist/cjs/{Checkout-1c07dc32.js → Checkout-eef27045.js} +11 -6
- package/dist/cjs/{SubAccount-b4811a8e.js → SubAccount-f9069337.js} +70 -0
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-86a6a7f8.js → badge-6abf6ed3.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +7 -7
- package/dist/cjs/bank-account-form_9.cjs.entry.js +4 -4
- package/dist/cjs/billing-form_3.cjs.entry.js +6 -6
- package/dist/cjs/business-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{button-5f6c437f.js → button-aed2ce1a.js} +1 -1
- package/dist/cjs/{check-pkg-version-f5a3d421.js → check-pkg-version-d19c6fdb.js} +1 -1
- package/dist/cjs/{checkout.service-b23994d2.js → checkout.service-0643396e.js} +2 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +7 -7
- package/dist/cjs/{checkouts-table-cf3e245e.js → checkouts-table-f88ad3c8.js} +2 -2
- package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +2 -141
- package/dist/cjs/{dispute.service-c192dd33.js → dispute.service-53c80520.js} +2 -2
- package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
- package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/form-control-date.cjs.entry.js +4 -4
- package/dist/cjs/{form-control-error-text-9905e3b8.js → form-control-error-text-74fb8498.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -4
- package/dist/cjs/{form-control-help-text-8d031bfb.js → form-control-help-text-3cffd918.js} +1 -1
- package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
- package/dist/cjs/form-control-number.cjs.entry.js +5 -5
- package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
- package/dist/cjs/form-control-select_3.cjs.entry.js +145 -0
- package/dist/cjs/{get-payout-csv-13d68dab.js → get-payout-csv-bdd7d9c0.js} +2 -2
- package/dist/cjs/{get-subaccounts-b2e6ab82.js → get-subaccounts-40c4a0b6.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
- package/dist/cjs/{header-1-b202dbbb.js → header-1-cc98bae2.js} +1 -1
- package/dist/cjs/{header-3-5f78acd1.js → header-3-05ce2ad0.js} +1 -1
- package/dist/cjs/{insurance-state-ba0c39a9.js → insurance-state-211cd636.js} +1 -1
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +5 -5
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +4 -4
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +71 -108
- package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -9
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -6
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +31 -24
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +114 -21
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -8
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -5
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -25
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-e8aa0c51.js → package-82b16c28.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-c2655003.js → parts-63f60e81.js} +3 -0
- package/dist/cjs/payment-details-core.cjs.entry.js +12 -12
- package/dist/cjs/{payment.service-f53022c3.js → payment.service-23b0dcb8.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +9 -9
- package/dist/cjs/{payments-status-92abe577.js → payments-status-b9192db7.js} +1 -1
- package/dist/cjs/{payments-table-c58e3ca8.js → payments-table-dba2f145.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
- package/dist/cjs/payouts-list-core.cjs.entry.js +9 -9
- package/dist/cjs/{payouts-status-703d62af.js → payouts-status-385a794d.js} +1 -1
- package/dist/cjs/{payouts-table-70fc1498.js → payouts-table-8cd537de.js} +2 -2
- package/dist/cjs/{skeleton-84102a44.js → skeleton-65afa2f5.js} +1 -1
- package/dist/cjs/{spinner-70f38e5e.js → spinner-a95e9b8d.js} +1 -1
- package/dist/cjs/{table-fc82fa81.js → table-ad35ff09.js} +2 -2
- package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +61 -8
- package/dist/cjs/terminal-orders-table-8baa5461.js +51 -0
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +36 -0
- package/dist/cjs/terminal.service-2f41898f.js +30 -0
- package/dist/cjs/terminals-list-core.cjs.entry.js +8 -8
- package/dist/cjs/{terminals-table-db58a0c0.js → terminals-table-c4c01dc3.js} +6 -4
- package/dist/cjs/{utils-7c5b2837.js → utils-f752bd45.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/actions/terminal/get-terminal-models.js +30 -0
- package/dist/collection/api/Checkout.js +5 -0
- package/dist/collection/api/Terminal.js +1 -0
- package/dist/collection/api/TerminalModel.js +15 -0
- package/dist/collection/api/TerminalOrder.js +51 -0
- package/dist/collection/api/index.js +2 -0
- package/dist/collection/api/services/terminal.service.js +6 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +8 -8
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +27 -15
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +22 -14
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/file-input-handler.js +11 -0
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +26 -14
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +26 -12
- package/dist/collection/components/order-terminals/order-terminals.js +79 -16
- package/dist/collection/components/payment-details/payment-details-core.js +7 -7
- package/dist/collection/components/payments-list/payments-list-core.js +1 -1
- package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
- package/dist/collection/components/payments-list/payments-list.js +1 -1
- package/dist/collection/components/payout-details/payout-details-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
- package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
- package/dist/collection/components/payouts-list/payouts-list.js +1 -1
- package/dist/collection/components/refund-form/refund-form.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-order-status.js +18 -0
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +3 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-table.js +17 -5
- package/dist/collection/components/terminal-quantity-selector/terminal-quantity-selector-loading.js +5 -0
- package/dist/collection/components/terminal-quantity-selector/terminal-quantity-selector.js +153 -0
- package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
- package/dist/collection/components/terminals-list/terminals-list.js +1 -1
- package/dist/collection/components/terminals-list/terminals-table.js +4 -2
- package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/styles/parts.js +3 -0
- package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
- package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
- package/dist/collection/ui-components/form/form-control-date.js +2 -2
- package/dist/collection/ui-components/form/form-control-file-v2.js +2 -1
- package/dist/collection/ui-components/form/form-control-file.js +2 -2
- package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
- package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
- package/dist/collection/ui-components/form/form-control-number.js +2 -2
- package/dist/collection/ui-components/form/form-control-radio.js +2 -2
- package/dist/collection/ui-components/form/form-control-text.js +2 -2
- package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
- package/dist/collection/ui-components/form/hidden-input.js +1 -1
- package/dist/collection/ui-components/form/iframe-input.js +3 -3
- package/dist/docs.json +428 -36
- package/dist/esm/{Analytics-759c7da5.js → Analytics-d0f79dc3.js} +1 -1
- package/dist/esm/{Checkout-919eb1ba.js → Checkout-2bc873fb.js} +6 -1
- package/dist/esm/{SubAccount-9aad3891.js → SubAccount-f31bdeb4.js} +69 -1
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-2eb79416.js → badge-7768a2b1.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +7 -7
- package/dist/esm/bank-account-form_9.entry.js +4 -4
- package/dist/esm/billing-form_3.entry.js +6 -6
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{button-cc455199.js → button-b3d07089.js} +1 -1
- package/dist/esm/{check-pkg-version-1d6e48c8.js → check-pkg-version-2e9f961e.js} +1 -1
- package/dist/esm/{checkout.service-bb45d248.js → checkout.service-020aaf97.js} +2 -2
- package/dist/esm/checkouts-list-core.entry.js +7 -7
- package/dist/esm/{checkouts-table-53981285.js → checkouts-table-974c57ba.js} +2 -2
- package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -140
- package/dist/esm/{dispute.service-9008b3b7.js → dispute.service-b234b5c7.js} +2 -2
- package/dist/esm/form-alert_5.entry.js +1 -1
- package/dist/esm/form-control-checkbox.entry.js +5 -5
- package/dist/esm/form-control-date.entry.js +4 -4
- package/dist/esm/{form-control-error-text-74c6b38a.js → form-control-error-text-923afdfa.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -4
- package/dist/esm/{form-control-help-text-76a4196e.js → form-control-help-text-c7bdd493.js} +1 -1
- package/dist/esm/form-control-monetary.entry.js +5 -5
- package/dist/esm/form-control-number-masked_2.entry.js +4 -4
- package/dist/esm/form-control-number.entry.js +5 -5
- package/dist/esm/form-control-radio.entry.js +3 -3
- package/dist/esm/form-control-select_3.entry.js +139 -0
- package/dist/esm/{get-payout-csv-8450b60d.js → get-payout-csv-9528b0a2.js} +2 -2
- package/dist/esm/{get-subaccounts-3af0844a.js → get-subaccounts-212c162d.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/{header-1-797ca789.js → header-1-649109a3.js} +1 -1
- package/dist/esm/{header-3-544afa0b.js → header-3-ca7bb57b.js} +1 -1
- package/dist/esm/{insurance-state-307335d6.js → insurance-state-e3b48bb2.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +5 -5
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +4 -4
- package/dist/esm/justifi-additional-statement_8.entry.js +71 -108
- package/dist/esm/justifi-business-details.entry.js +5 -5
- package/dist/esm/justifi-business-form.entry.js +9 -9
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +6 -6
- package/dist/esm/justifi-checkout.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
- package/dist/esm/justifi-checkouts-list.entry.js +10 -10
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +6 -6
- package/dist/esm/justifi-dispute-notification_3.entry.js +31 -24
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
- package/dist/esm/justifi-order-terminals.entry.js +115 -22
- package/dist/esm/justifi-owner-form_3.entry.js +2 -2
- package/dist/esm/justifi-payment-details.entry.js +8 -8
- package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
- package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +11 -11
- package/dist/esm/justifi-payout-details.entry.js +8 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +12 -12
- package/dist/esm/justifi-refund-form.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
- package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
- package/dist/esm/justifi-terminal-orders-list.entry.js +7 -5
- package/dist/esm/justifi-terminals-list-filters.entry.js +4 -4
- package/dist/esm/justifi-terminals-list.entry.js +12 -24
- package/dist/esm/justifi-tokenize-payment-method.entry.js +8 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-49477570.js → package-b9d805ae.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-489f0af6.js → parts-18c966b1.js} +3 -1
- package/dist/esm/payment-details-core.entry.js +12 -12
- package/dist/esm/{payment.service-a8ee345c.js → payment.service-81752187.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +9 -9
- package/dist/esm/{payments-status-35255b2c.js → payments-status-f451caf6.js} +1 -1
- package/dist/esm/{payments-table-6e97396a.js → payments-table-a7836555.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +7 -7
- package/dist/esm/payouts-list-core.entry.js +9 -9
- package/dist/esm/{payouts-status-a0cc00c5.js → payouts-status-bfae9f42.js} +1 -1
- package/dist/esm/{payouts-table-6b8ba8f1.js → payouts-table-55f1a8a3.js} +2 -2
- package/dist/esm/{skeleton-74fbfb68.js → skeleton-ca37b248.js} +1 -1
- package/dist/esm/{spinner-6b708842.js → spinner-30abb9b0.js} +1 -1
- package/dist/esm/{table-e287f1c0.js → table-03e4dfc0.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +61 -8
- package/dist/esm/terminal-orders-table-a340c409.js +47 -0
- package/dist/esm/terminal-quantity-selector.entry.js +32 -0
- package/dist/esm/terminal.service-3c3f2c3f.js +28 -0
- package/dist/esm/terminals-list-core.entry.js +8 -8
- package/dist/esm/{terminals-table-c6258344.js → terminals-table-88549e54.js} +6 -4
- package/dist/esm/{utils-6c26bccc.js → utils-e7df4815.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Checkout.js +6 -1
- package/dist/module/SubAccount.js +69 -1
- package/dist/module/additional-statement.js +9 -14
- package/dist/module/cancellation-policy.js +9 -14
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +9 -14
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +22 -14
- package/dist/module/duplicate-charge.js +9 -14
- package/dist/module/electronic-evidence.js +9 -14
- package/dist/module/{dispute-response-form-types.js → file-input-handler.js} +23 -13
- package/dist/module/form-control-checkbox2.js +2 -2
- package/dist/module/form-control-date2.js +2 -2
- package/dist/module/form-control-file-v22.js +2 -1
- package/dist/module/form-control-file2.js +2 -2
- package/dist/module/form-control-monetary2.js +2 -2
- package/dist/module/form-control-number-masked2.js +2 -2
- package/dist/module/form-control-number.js +2 -2
- package/dist/module/form-control-radio2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +3 -3
- package/dist/module/justifi-checkouts-list-filters.js +4 -4
- package/dist/module/justifi-order-terminals.js +134 -18
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +1 -1
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +1 -1
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-terminal-orders-list.js +1 -1
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +3 -16
- package/dist/module/justifi-tokenize-payment-method.js +1 -1
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +3 -1
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payments-list-core2.js +1 -1
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +1 -1
- package/dist/module/product-or-service.js +17 -16
- package/dist/module/refund-policy.js +9 -14
- package/dist/module/shipping-details.js +9 -12
- package/dist/module/terminal-orders-list-core2.js +92 -7
- package/dist/module/terminal-quantity-selector.d.ts +11 -0
- package/dist/module/terminal-quantity-selector.js +6 -0
- package/dist/module/terminal-quantity-selector2.js +66 -0
- package/dist/module/terminal.service.js +28 -0
- package/dist/module/terminals-list-core2.js +5 -3
- package/dist/types/actions/terminal/get-terminal-models.d.ts +8 -0
- package/dist/types/api/Checkout.d.ts +4 -0
- package/dist/types/api/Terminal.d.ts +2 -0
- package/dist/types/api/TerminalModel.d.ts +31 -0
- package/dist/types/api/TerminalOrder.d.ts +53 -0
- package/dist/types/api/index.d.ts +2 -0
- package/dist/types/api/services/terminal.service.d.ts +2 -0
- package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +3 -3
- package/dist/types/components/dispute-management/dispute-response/additional-statement.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/cancellation-policy.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/customer-details.d.ts +5 -2
- package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +5 -4
- package/dist/types/components/dispute-management/dispute-response/duplicate-charge.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/electronic-evidence.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/file-input-handler.d.ts +2 -0
- package/dist/types/components/dispute-management/dispute-response/product-or-service.d.ts +4 -2
- package/dist/types/components/dispute-management/dispute-response/refund-policy.d.ts +5 -2
- package/dist/types/components/dispute-management/dispute-response/shipping-details.d.ts +4 -1
- package/dist/types/components/order-terminals/order-terminals.d.ts +12 -2
- package/dist/types/components/terminal-orders-list/terminal-order-status.d.ts +2 -0
- package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +4 -3
- package/dist/types/components/terminal-orders-list/terminal-orders-table.d.ts +16 -5
- package/dist/types/components/terminal-quantity-selector/terminal-quantity-selector-loading.d.ts +1 -0
- package/dist/types/components/terminal-quantity-selector/terminal-quantity-selector.d.ts +17 -0
- package/dist/types/components/terminals-list/terminals-table.d.ts +3 -1
- package/dist/types/components.d.ts +61 -4
- package/dist/types/global.d.ts +1 -0
- package/dist/types/styles/parts.d.ts +2 -0
- package/dist/webcomponents/{p-b57cfe54.entry.js → p-0a271654.entry.js} +1 -1
- package/dist/webcomponents/{p-553dba95.entry.js → p-0ef25316.entry.js} +1 -1
- package/dist/webcomponents/{p-1aa22806.js → p-0ef50c81.js} +1 -1
- package/dist/webcomponents/{p-d279545a.entry.js → p-0f85fde5.entry.js} +1 -1
- package/dist/webcomponents/{p-c2196cb8.entry.js → p-0faaae79.entry.js} +1 -1
- package/dist/webcomponents/{p-b2d57b2c.entry.js → p-121e9167.entry.js} +1 -1
- package/dist/webcomponents/p-140836f1.entry.js +1 -0
- package/dist/webcomponents/{p-4fbdf440.entry.js → p-1a9d60b1.entry.js} +1 -1
- package/dist/webcomponents/p-1d019dda.entry.js +1 -0
- package/dist/webcomponents/p-1e3cc191.entry.js +1 -0
- package/dist/webcomponents/p-1fcde0de.entry.js +1 -0
- package/dist/webcomponents/{p-8548edd6.entry.js → p-229c841e.entry.js} +1 -1
- package/dist/webcomponents/p-2481c1d3.entry.js +1 -0
- package/dist/webcomponents/{p-ebbe93ac.entry.js → p-29988e8f.entry.js} +1 -1
- package/dist/webcomponents/p-31507b3a.entry.js +1 -0
- package/dist/webcomponents/p-348fc9b1.js +1 -0
- package/dist/webcomponents/{p-794cce10.entry.js → p-36060c36.entry.js} +1 -1
- package/dist/webcomponents/{p-1278dedf.js → p-3744006f.js} +1 -1
- package/dist/webcomponents/{p-89ecfbf4.entry.js → p-4014d084.entry.js} +1 -1
- package/dist/webcomponents/p-418ab812.entry.js +1 -0
- package/dist/webcomponents/{p-fea43254.entry.js → p-420d6572.entry.js} +1 -1
- package/dist/webcomponents/{p-0b38cfbf.js → p-45bed1b7.js} +1 -1
- package/dist/webcomponents/{p-235abbd1.entry.js → p-49fc12b2.entry.js} +1 -1
- package/dist/webcomponents/{p-f7d9ea0b.entry.js → p-4a580682.entry.js} +1 -1
- package/dist/webcomponents/p-4bb0d6fd.js +1 -0
- package/dist/webcomponents/{p-ff1f2d65.js → p-4c4a2c48.js} +1 -1
- package/dist/webcomponents/p-4f9a2f1f.js +1 -0
- package/dist/webcomponents/{p-e3e0d791.entry.js → p-54502491.entry.js} +1 -1
- package/dist/webcomponents/{p-9a4d0e1d.entry.js → p-55a6599a.entry.js} +1 -1
- package/dist/webcomponents/{p-5a96a2a2.entry.js → p-566883fb.entry.js} +1 -1
- package/dist/webcomponents/{p-a90d8f4f.entry.js → p-57ddf983.entry.js} +1 -1
- package/dist/webcomponents/p-5bf5f7d7.entry.js +1 -0
- package/dist/webcomponents/p-5dc767d8.js +1 -0
- package/dist/webcomponents/{p-a31ba276.entry.js → p-6501cb6e.entry.js} +1 -1
- package/dist/webcomponents/{p-06f5b709.js → p-66cdd475.js} +1 -1
- package/dist/webcomponents/{p-bfe339d5.js → p-6776df16.js} +1 -1
- package/dist/webcomponents/{p-a6b66c88.entry.js → p-6815a6cb.entry.js} +1 -1
- package/dist/webcomponents/{p-dfebd7a4.js → p-69ae193c.js} +1 -1
- package/dist/webcomponents/{p-53b660a3.entry.js → p-76d1036b.entry.js} +1 -1
- package/dist/webcomponents/{p-8a7266b4.js → p-77245638.js} +1 -1
- package/dist/webcomponents/p-77e3ed67.js +1 -0
- package/dist/webcomponents/p-7d43c1d6.entry.js +1 -0
- package/dist/webcomponents/{p-e007002a.entry.js → p-7dc34297.entry.js} +1 -1
- package/dist/webcomponents/{p-3ab7a49e.entry.js → p-7e4c84f7.entry.js} +1 -1
- package/dist/webcomponents/{p-09496255.js → p-808f61aa.js} +1 -1
- package/dist/webcomponents/p-834c12a0.entry.js +1 -0
- package/dist/webcomponents/p-8548d8de.js +1 -0
- package/dist/webcomponents/{p-39a63e0c.entry.js → p-867e34b8.entry.js} +1 -1
- package/dist/webcomponents/p-8a3f1a56.entry.js +1 -0
- package/dist/webcomponents/p-8a9debac.entry.js +1 -0
- package/dist/webcomponents/p-8b3842ce.js +1 -0
- package/dist/webcomponents/{p-300a99ee.js → p-913d51b9.js} +1 -1
- package/dist/webcomponents/{p-906a6027.js → p-930e2e05.js} +1 -1
- package/dist/webcomponents/p-96a491aa.js +1 -0
- package/dist/webcomponents/{p-08a17c5c.entry.js → p-9a6eacd0.entry.js} +1 -1
- package/dist/webcomponents/{p-4a71c90b.entry.js → p-9d8cf927.entry.js} +1 -1
- package/dist/webcomponents/{p-14f40baa.js → p-9ffed802.js} +1 -1
- package/dist/webcomponents/{p-060896c4.entry.js → p-adf30888.entry.js} +1 -1
- package/dist/webcomponents/p-b0335a17.entry.js +1 -0
- package/dist/webcomponents/{p-939d0a35.entry.js → p-b075211e.entry.js} +1 -1
- package/dist/webcomponents/{p-8b16a20f.js → p-b40bcf59.js} +1 -1
- package/dist/webcomponents/p-b7a407fb.entry.js +1 -0
- package/dist/webcomponents/{p-d398ce81.js → p-b894423f.js} +1 -1
- package/dist/webcomponents/{p-acca56ec.entry.js → p-bc6e3e59.entry.js} +1 -1
- package/dist/webcomponents/p-bc73a554.entry.js +1 -0
- package/dist/webcomponents/{p-670296bf.entry.js → p-c17af2a4.entry.js} +1 -1
- package/dist/webcomponents/p-c1af1fdb.entry.js +1 -0
- package/dist/webcomponents/{p-df2559c7.js → p-ca19fd2e.js} +1 -1
- package/dist/webcomponents/p-ca55be58.js +1 -0
- package/dist/webcomponents/{p-3b680e50.js → p-d019b800.js} +1 -1
- package/dist/webcomponents/{p-020e7d5d.entry.js → p-d37d20ca.entry.js} +1 -1
- package/dist/webcomponents/p-d979d9ea.entry.js +1 -0
- package/dist/webcomponents/p-d981a599.entry.js +1 -0
- package/dist/webcomponents/{p-75b7dfe7.entry.js → p-da415c08.entry.js} +1 -1
- package/dist/webcomponents/{p-389e1eb7.js → p-daf0303f.js} +1 -1
- package/dist/webcomponents/{p-29688e30.js → p-dd535097.js} +1 -1
- package/dist/webcomponents/p-e0befd51.js +1 -0
- package/dist/webcomponents/{p-7ee5a90e.entry.js → p-e7d2eba7.entry.js} +1 -1
- package/dist/webcomponents/{p-fa843aad.entry.js → p-e895bc2a.entry.js} +1 -1
- package/dist/webcomponents/{p-ae271c06.entry.js → p-ec3f9d80.entry.js} +1 -1
- package/dist/webcomponents/{p-d432f0fd.entry.js → p-ee991c9e.entry.js} +1 -1
- package/dist/webcomponents/p-f1580c62.js +1 -0
- package/dist/webcomponents/{p-19063270.entry.js → p-f48dd1ef.entry.js} +1 -1
- package/dist/webcomponents/p-fe0399a1.js +1 -0
- package/dist/webcomponents/{p-56697a12.entry.js → p-fe439eb2.entry.js} +1 -1
- package/dist/webcomponents/p-fe8be5fa.entry.js +1 -0
- package/dist/webcomponents/p-ffbd95d0.entry.js +1 -0
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/terminal-orders-table-61081532.js +0 -18
- package/dist/esm/terminal-orders-table-765c44d5.js +0 -14
- package/dist/webcomponents/p-0f4d851d.entry.js +0 -1
- package/dist/webcomponents/p-1f4e26f3.entry.js +0 -1
- package/dist/webcomponents/p-27c72b92.entry.js +0 -1
- package/dist/webcomponents/p-29fbbc93.js +0 -1
- package/dist/webcomponents/p-2e0ae487.js +0 -1
- package/dist/webcomponents/p-2f9af679.js +0 -1
- package/dist/webcomponents/p-37b7b200.entry.js +0 -1
- package/dist/webcomponents/p-3d486f37.entry.js +0 -1
- package/dist/webcomponents/p-42a48c59.js +0 -1
- package/dist/webcomponents/p-49df4962.entry.js +0 -1
- package/dist/webcomponents/p-4b6256e0.entry.js +0 -1
- package/dist/webcomponents/p-595479da.entry.js +0 -1
- package/dist/webcomponents/p-66ae2a0e.entry.js +0 -1
- package/dist/webcomponents/p-78a204f9.entry.js +0 -1
- package/dist/webcomponents/p-7c541199.entry.js +0 -1
- package/dist/webcomponents/p-7d2538d9.entry.js +0 -1
- package/dist/webcomponents/p-9055aa6e.entry.js +0 -1
- package/dist/webcomponents/p-9cbbe9cb.entry.js +0 -1
- package/dist/webcomponents/p-9edd6ad8.js +0 -1
- package/dist/webcomponents/p-a0082e77.entry.js +0 -1
- package/dist/webcomponents/p-af945fc0.entry.js +0 -1
- package/dist/webcomponents/p-c4ca0038.js +0 -1
- package/dist/webcomponents/p-cba89310.entry.js +0 -1
- package/dist/webcomponents/p-cbe05f11.js +0 -1
- package/dist/webcomponents/p-d5c41ec6.js +0 -1
- package/dist/webcomponents/p-e8cd9691.js +0 -1
- package/dist/webcomponents/p-e9e80a62.js +0 -1
- package/dist/webcomponents/p-ec019b89.js +0 -1
- package/dist/webcomponents/p-fc3d2a9e.entry.js +0 -1
|
@@ -27,14 +27,14 @@ const DisputeResponseCore = /*@__PURE__*/ proxyCustomElement(class DisputeRespon
|
|
|
27
27
|
this.stepCompleteEvent = createEvent(this, "complete-form-step-event", 7);
|
|
28
28
|
this.submitEvent = createEvent(this, "submit-event", 7);
|
|
29
29
|
this.componentStepMapping = [
|
|
30
|
-
() => h("justifi-product-or-service", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
31
|
-
() => h("justifi-customer-details", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
32
|
-
() => h("justifi-cancellation-policy", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
33
|
-
() => h("justifi-refund-policy", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
34
|
-
() => h("justifi-duplicate-charge", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
35
|
-
() => h("justifi-electronic-evidence", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
36
|
-
() => h("justifi-shipping-details", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
37
|
-
() => h("justifi-additional-statement", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse }),
|
|
30
|
+
() => h("justifi-product-or-service", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
31
|
+
() => h("justifi-customer-details", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
32
|
+
() => h("justifi-cancellation-policy", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
33
|
+
() => h("justifi-refund-policy", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
34
|
+
() => h("justifi-duplicate-charge", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
35
|
+
() => h("justifi-electronic-evidence", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
36
|
+
() => h("justifi-shipping-details", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
37
|
+
() => h("justifi-additional-statement", { ref: (el) => this.currentStepComponentRef = el, disputeResponse: this.disputeResponse, documentErrors: this.documentErrors }),
|
|
38
38
|
];
|
|
39
39
|
this.saveData = async (formData, formStep) => {
|
|
40
40
|
const hasFormData = Object.keys(formData).length;
|
|
@@ -96,15 +96,15 @@ const DisputeResponseCore = /*@__PURE__*/ proxyCustomElement(class DisputeRespon
|
|
|
96
96
|
},
|
|
97
97
|
onSuccess: (response) => {
|
|
98
98
|
document.presignedUrl = response.data.presigned_url;
|
|
99
|
-
this.isLoading = false;
|
|
100
99
|
},
|
|
101
100
|
onError: ({ error, code, severity }) => {
|
|
101
|
+
const errors = { [document.dispute_evidence_type]: error };
|
|
102
|
+
this.documentErrors = Object.assign(Object.assign({}, this.documentErrors), errors);
|
|
102
103
|
this.errorEvent.emit({
|
|
103
104
|
errorCode: code,
|
|
104
105
|
message: error,
|
|
105
106
|
severity,
|
|
106
107
|
});
|
|
107
|
-
this.isLoading = false;
|
|
108
108
|
},
|
|
109
109
|
});
|
|
110
110
|
};
|
|
@@ -119,20 +119,26 @@ const DisputeResponseCore = /*@__PURE__*/ proxyCustomElement(class DisputeRespon
|
|
|
119
119
|
});
|
|
120
120
|
return response;
|
|
121
121
|
};
|
|
122
|
-
this.onCancel = () => {
|
|
123
|
-
this.clickEvent.emit({ name: DisputeManagementClickActions.cancelDispute });
|
|
124
|
-
};
|
|
125
122
|
this.handleSubmit = async (formData, documentList, formStep) => {
|
|
126
123
|
this.isLoading = true;
|
|
127
124
|
if (documentList.length) {
|
|
125
|
+
this.documentErrors = {};
|
|
128
126
|
this.documentList = documentList;
|
|
129
127
|
await this.initializeMakePresignedURLs();
|
|
128
|
+
const hasPresigningErrors = Object.keys(this.documentErrors).length;
|
|
129
|
+
if (hasPresigningErrors) {
|
|
130
|
+
this.isLoading = false;
|
|
131
|
+
throw new Error('Could not presign all documents');
|
|
132
|
+
}
|
|
130
133
|
await this.initializeFileUploads();
|
|
131
134
|
}
|
|
132
135
|
// this needs to happen last because it fires the 'submit-event' and 'complete-form-step-event' event
|
|
133
136
|
await this.saveData(formData, formStep);
|
|
134
137
|
this.isLoading = false;
|
|
135
138
|
};
|
|
139
|
+
this.onCancel = () => {
|
|
140
|
+
this.clickEvent.emit({ name: DisputeManagementClickActions.cancelDispute });
|
|
141
|
+
};
|
|
136
142
|
// after each of these steps where validateAndSubmit is called, reload the dispute
|
|
137
143
|
// and set isLoading, and pass defaults into each step
|
|
138
144
|
this.onBack = async () => {
|
|
@@ -162,6 +168,7 @@ const DisputeResponseCore = /*@__PURE__*/ proxyCustomElement(class DisputeRespon
|
|
|
162
168
|
this.disputeResponse = {};
|
|
163
169
|
this.isLoading = false;
|
|
164
170
|
this.documentList = [];
|
|
171
|
+
this.documentErrors = {};
|
|
165
172
|
this.currentStep = 0;
|
|
166
173
|
this.currentStepComponentRef = undefined;
|
|
167
174
|
}
|
|
@@ -175,7 +182,7 @@ const DisputeResponseCore = /*@__PURE__*/ proxyCustomElement(class DisputeRespon
|
|
|
175
182
|
return this.currentStep === 0;
|
|
176
183
|
}
|
|
177
184
|
render() {
|
|
178
|
-
return (h("div", { key: '
|
|
185
|
+
return (h("div", { key: '452cfcf106f40c27f34df05ae2923c0909de9245', class: "row gy-3" }, h("div", { key: 'd9b608a8d880310b96e98cd4a00cabfcca77dc79', class: "col-12" }, h("h1", { key: '050aef1fa636d09880edc7d738d56eab2cf62e52', class: "h4", part: heading4 }, "Counter dispute")), h("div", { key: '4e6094f9240d4db3d4bc03c59754ab3d04fed5bc', class: "col-12" }, this.currentStepComponent), h("div", { key: '9c1739bc4ed1a9104fd04531a11e02cbbb4f11cc', class: "col-12" }, h("div", { key: 'd37cda5a7689d8bf9263283eb24e1074ee3d97a0', 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"))))));
|
|
179
186
|
}
|
|
180
187
|
}, [0, "justifi-dispute-response-core", {
|
|
181
188
|
"updateDisputeResponse": [16],
|
|
@@ -184,6 +191,7 @@ const DisputeResponseCore = /*@__PURE__*/ proxyCustomElement(class DisputeRespon
|
|
|
184
191
|
"disputeResponse": [8, "dispute-response"],
|
|
185
192
|
"isLoading": [32],
|
|
186
193
|
"documentList": [32],
|
|
194
|
+
"documentErrors": [32],
|
|
187
195
|
"currentStep": [32],
|
|
188
196
|
"currentStepComponentRef": [32]
|
|
189
197
|
}]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as create$3, a as create$6, F as FormController } from './form.js';
|
|
3
|
-
import { D as
|
|
3
|
+
import { D as DisputeResponseFormStep, f as fileInputHandler } from './file-input-handler.js';
|
|
4
4
|
import { T as heading5 } from './parts.js';
|
|
5
5
|
import { d as defineCustomElement$6 } from './custom-popper2.js';
|
|
6
6
|
import { d as defineCustomElement$5 } from './form-control-file-v22.js';
|
|
@@ -21,21 +21,15 @@ const DuplicateCharge = /*@__PURE__*/ proxyCustomElement(class DuplicateCharge e
|
|
|
21
21
|
this.inputHandler = (name, value) => {
|
|
22
22
|
this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
|
|
23
23
|
};
|
|
24
|
-
this.handleFileSelection = (e) => {
|
|
25
|
-
const target = e.target;
|
|
26
|
-
const name = target.name;
|
|
27
|
-
const files = target.files;
|
|
28
|
-
for (const file of files) {
|
|
29
|
-
this.documentList.push(new DisputeEvidenceDocument(file, name));
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
24
|
this.disputeResponse = undefined;
|
|
25
|
+
this.documentErrors = {};
|
|
33
26
|
this.form = undefined;
|
|
34
27
|
this.errors = {};
|
|
35
|
-
this.
|
|
28
|
+
this.documents = { duplicate_charge_documentation: [] };
|
|
36
29
|
}
|
|
37
30
|
async validateAndSubmit(onSuccess) {
|
|
38
|
-
|
|
31
|
+
const documentList = Object.values(this.documents).flat();
|
|
32
|
+
this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.duplicateCharge));
|
|
39
33
|
}
|
|
40
34
|
;
|
|
41
35
|
componentWillLoad() {
|
|
@@ -47,14 +41,15 @@ const DuplicateCharge = /*@__PURE__*/ proxyCustomElement(class DuplicateCharge e
|
|
|
47
41
|
});
|
|
48
42
|
}
|
|
49
43
|
render() {
|
|
50
|
-
var _a, _b;
|
|
51
|
-
return (h("div", { key: '
|
|
44
|
+
var _a, _b, _c;
|
|
45
|
+
return (h("div", { key: '0b0d73b396b32f29fa389d3981d48c3f30f96fd7' }, h("div", { key: '2fd16a4cf964c863a59789a2be60d94b27a95de8', class: "row gy-3" }, h("div", { key: '48c15f7db3285caa9164d815615b82a84283fbfe', class: "col-12" }, h("h2", { key: '397b3026311bf57588b172146fc9822f99ede63e', class: "h5", part: heading5 }, "Duplicate Charge")), h("div", { key: 'c825b6efd428bee298b9b0ddf2265378cf999de9', class: "col-12" }, h("form-control-text", { key: 'b43283087a10826bf8e582a1e863ed4982b5c000', 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: '66d5cefa16c341f5c523eaa46de5c11f5b16e619', class: "col-12" }, h("form-control-textarea", { key: 'f83573136fc2ce108f186f9434f46a3f157bd102', 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: 'cc47dc1d9dbac962d27494b5ff3fef572c98c7b4', class: "col-12" }, h("form-control-file-v2", { key: '3cf06b6d61edd6ac96d02b12639d040f698b2526', 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 })))));
|
|
52
46
|
}
|
|
53
47
|
}, [0, "justifi-duplicate-charge", {
|
|
54
48
|
"disputeResponse": [8, "dispute-response"],
|
|
49
|
+
"documentErrors": [8, "document-errors"],
|
|
55
50
|
"form": [32],
|
|
56
51
|
"errors": [32],
|
|
57
|
-
"
|
|
52
|
+
"documents": [32],
|
|
58
53
|
"validateAndSubmit": [64]
|
|
59
54
|
}]);
|
|
60
55
|
function defineCustomElement() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as create$3, a as create$6, F as FormController } from './form.js';
|
|
3
|
-
import { D as
|
|
3
|
+
import { D as DisputeResponseFormStep, f as fileInputHandler } from './file-input-handler.js';
|
|
4
4
|
import { T as heading5 } from './parts.js';
|
|
5
5
|
import { d as defineCustomElement$4 } from './custom-popper2.js';
|
|
6
6
|
import { d as defineCustomElement$3 } from './form-control-file-v22.js';
|
|
@@ -15,24 +15,18 @@ const ElectronicEvidence = /*@__PURE__*/ proxyCustomElement(class ElectronicEvid
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super();
|
|
17
17
|
this.__registerHost();
|
|
18
|
-
this.handleFileSelection = (e) => {
|
|
19
|
-
const target = e.target;
|
|
20
|
-
const name = target.name;
|
|
21
|
-
const files = target.files;
|
|
22
|
-
for (const file of files) {
|
|
23
|
-
this.documentList.push(new DisputeEvidenceDocument(file, name));
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
18
|
this.inputHandler = (name, value) => {
|
|
27
19
|
this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
|
|
28
20
|
};
|
|
29
21
|
this.disputeResponse = undefined;
|
|
22
|
+
this.documentErrors = {};
|
|
30
23
|
this.form = undefined;
|
|
31
24
|
this.errors = {};
|
|
32
|
-
this.
|
|
25
|
+
this.documents = { activity_log: [] };
|
|
33
26
|
}
|
|
34
27
|
async validateAndSubmit(onSuccess) {
|
|
35
|
-
|
|
28
|
+
const documentList = Object.values(this.documents).flat();
|
|
29
|
+
this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.electronicEvidence));
|
|
36
30
|
}
|
|
37
31
|
;
|
|
38
32
|
componentWillLoad() {
|
|
@@ -44,14 +38,15 @@ const ElectronicEvidence = /*@__PURE__*/ proxyCustomElement(class ElectronicEvid
|
|
|
44
38
|
});
|
|
45
39
|
}
|
|
46
40
|
render() {
|
|
47
|
-
var _a;
|
|
48
|
-
return (h("div", { key: '
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return (h("div", { key: '1a4a1d78529c48b8f32029a3efa05b4430c6d271' }, h("div", { key: '593d167f4e6b610ac3cdb8a04b4eee30a1cb4f91', class: "row gy-3" }, h("div", { key: '39440c3a2802b823c85f251c4393ba76bad287c0', class: "col-12" }, h("h2", { key: 'f5ec8cce1bbadb772ac6dbe668cf54187d2690d7', class: "h5", part: heading5 }, "Electronic Evidence")), h("div", { key: 'b9020a773c45a8f59a31ffef44b32253fdb4a551', class: "col-12" }, h("form-control-text", { key: '56122eafb7f138f4472a5818cddd32cb0e17fc7e', 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: '0737f585271838dd60ab9ee1e6ac83d0c6362b96', class: "col-12" }, h("form-control-file-v2", { key: '63590d574ee151cbf82638002dfe513cea471035', 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 })))));
|
|
49
43
|
}
|
|
50
44
|
}, [0, "justifi-electronic-evidence", {
|
|
51
45
|
"disputeResponse": [8, "dispute-response"],
|
|
46
|
+
"documentErrors": [8, "document-errors"],
|
|
52
47
|
"form": [32],
|
|
53
48
|
"errors": [32],
|
|
54
|
-
"
|
|
49
|
+
"documents": [32],
|
|
55
50
|
"validateAndSubmit": [64]
|
|
56
51
|
}]);
|
|
57
52
|
function defineCustomElement() {
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
var DisputeResponseFormStep;
|
|
2
|
+
(function (DisputeResponseFormStep) {
|
|
3
|
+
DisputeResponseFormStep["disputeReason"] = "dispute_reason";
|
|
4
|
+
DisputeResponseFormStep["productOrService"] = "product_or_service";
|
|
5
|
+
DisputeResponseFormStep["customerDetails"] = "customer_details";
|
|
6
|
+
DisputeResponseFormStep["cancellationPolicy"] = "cancellation_policy";
|
|
7
|
+
DisputeResponseFormStep["refundPolicy"] = "refund_policy";
|
|
8
|
+
DisputeResponseFormStep["duplicateCharge"] = "duplicate_charge";
|
|
9
|
+
DisputeResponseFormStep["electronicEvidence"] = "electronic_evidence";
|
|
10
|
+
DisputeResponseFormStep["shippingDetails"] = "shipping_details";
|
|
11
|
+
DisputeResponseFormStep["additionalStatement"] = "additional_statement";
|
|
12
|
+
})(DisputeResponseFormStep || (DisputeResponseFormStep = {}));
|
|
13
|
+
|
|
1
14
|
var DisputeEvidenceDocumentType;
|
|
2
15
|
(function (DisputeEvidenceDocumentType) {
|
|
3
16
|
DisputeEvidenceDocumentType["activity_log"] = "activity_log";
|
|
@@ -43,17 +56,14 @@ class DisputeEvidenceDocument {
|
|
|
43
56
|
}
|
|
44
57
|
}
|
|
45
58
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
DisputeResponseFormStep["shippingDetails"] = "shipping_details";
|
|
56
|
-
DisputeResponseFormStep["additionalStatement"] = "additional_statement";
|
|
57
|
-
})(DisputeResponseFormStep || (DisputeResponseFormStep = {}));
|
|
59
|
+
const fileInputHandler = (e, documentState) => {
|
|
60
|
+
const target = e.target;
|
|
61
|
+
const name = target.name;
|
|
62
|
+
const files = target.files;
|
|
63
|
+
documentState[name] = [];
|
|
64
|
+
for (const file of files) {
|
|
65
|
+
documentState[name].push(new DisputeEvidenceDocument(file, name));
|
|
66
|
+
}
|
|
67
|
+
};
|
|
58
68
|
|
|
59
|
-
export {
|
|
69
|
+
export { DisputeResponseFormStep as D, fileInputHandler as f };
|
|
@@ -45,10 +45,10 @@ const CheckboxInput = /*@__PURE__*/ proxyCustomElement(class CheckboxInput exten
|
|
|
45
45
|
return inputCheckbox;
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
48
|
+
return (h(Host, { key: '6eb5805f9001ba5f27590a8f709c611bcb491cc7' }, h("div", { key: 'f8b4ee1c24087c1bcb65ac7df4874916c7dd36ad', class: 'form-group d-flex flex-column' }, h("div", { key: 'a41d4b50c7c5d2bdd6008a441d29eba5f8f94b9a', class: "form-check" }, h("input", { key: 'd6124d672dda656b4dc9061176c37f8f14d101c8', 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: '429ce242775f3ff5a7dda515bf57cd0780de8fdf', class: "form-check-label", htmlFor: this.name, part: label }, this.label)), h(FormControlHelpText, { key: '4680da9893c1015cb53a85250eb906a07551fdcc', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: 'ed5178fe1bd5cd501ef5ebadcf9e49580b1d2bda', errorText: this.errorText, name: this.name }))));
|
|
52
52
|
}
|
|
53
53
|
}, [0, "form-control-checkbox", {
|
|
54
54
|
"label": [1],
|
|
@@ -58,10 +58,10 @@ const DateInput = /*@__PURE__*/ proxyCustomElement(class DateInput extends HTMLE
|
|
|
58
58
|
return part;
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: '5360f4917c4af8d4e40522a25e838703d8374480' }, h("div", { key: '56a3a99c81ebbf00d1ff5befa1a96363660806ae', class: "form-group d-flex flex-column" }, h("div", { key: '5556531a79f39fecd1cc4027568bc3642f68ed68', class: "d-flex gap-2" }, h("label", { key: 'b722b7e91adaf94c57698cf5743d43d8cbb04957', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '109aabf5047eebe8254ed49379b297af05f68ac2', helpText: this.helpText })), h("input", { key: 'eb9862be33313981dccda15889d315893344ff41', type: this.showTime ? 'datetime-local' : 'date', ref: el => (this.dateInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
62
62
|
this.isFocused = false;
|
|
63
63
|
this.formControlBlur.emit();
|
|
64
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '
|
|
64
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled, max: this.maxDate }), h(FormControlErrorText, { key: '01217373b82eee84fae370f504cfee157c6f83ec', errorText: this.errorText, name: this.name }))));
|
|
65
65
|
}
|
|
66
66
|
static get watchers() { return {
|
|
67
67
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { F as FormControlErrorText } from './form-control-error-text.js';
|
|
2
3
|
import { d as defineCustomElement$2 } from './custom-popper2.js';
|
|
3
4
|
import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
|
|
4
5
|
|
|
@@ -18,7 +19,7 @@ const FileInput = /*@__PURE__*/ proxyCustomElement(class FileInput extends HTMLE
|
|
|
18
19
|
this.disabled = undefined;
|
|
19
20
|
}
|
|
20
21
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: '1d12d202fde10e242d835ad9cf1baf037bf08685', exportparts: "label,input,input-invalid" }, h("div", { key: '3a1d62634eb422bb81d693edc7bf7209095031aa', class: "form-group d-flex flex-column" }, h("div", { key: '19a28fe026bdc3950cceef5985f706bc65a8a036', class: "d-flex align-items-start gap-2" }, h("label", { key: '7ef8d2699382ec129538afea93e7fb99e075755e', part: "label", class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'ac6fa865cb28cae95fb235984c1b8b390ed7a4e8', helpText: this.helpText })), h("input", { key: '46f3596ff86814fc15ee189c5261b74b1a163555', type: "file", name: this.name, part: `input ${this.errorText ? "input-invalid " : ""}${this.disabled ? "input-disabled" : ""}`, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onBlur: () => this.formControlBlur.emit(), onChange: () => this.errorText = "" }), h(FormControlErrorText, { key: 'ad1c1e9b8066cc536530423ecc1ee62a6605590b', errorText: this.errorText, name: this.name }))));
|
|
22
23
|
}
|
|
23
24
|
get el() { return this; }
|
|
24
25
|
}, [0, "form-control-file-v2", {
|
|
@@ -56,10 +56,10 @@ const FileInput = /*@__PURE__*/ proxyCustomElement(class FileInput extends HTMLE
|
|
|
56
56
|
return part;
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: 'b42a36acdd4b1ccbe38d3f990c1ad75dcdca427c' }, h("div", { key: 'b77e933e6ec75850cd4f81136ed6c7b1e9d4eab8', class: "form-group d-flex flex-column" }, h("div", { key: '1d106fa3f984f9339be5d532e9909e802506a070', class: "d-flex align-items-start gap-2" }, h("label", { key: '015b1ec3a10e9e6085a07d82a6f50049b33ca72a', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '7b1920d7910a8cdea94f2264f4525abd6ce12b04', helpText: this.helpText })), h("input", { key: '7fd8b89dc312b0fa773ca3f1286146906dcbcbc9', ref: (el) => this.fileInput = el, type: "file", name: this.name, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", multiple: this.multiple, disabled: this.disabled, onChange: this.changeHandler, onInput: this.handleFormControlInput, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
60
60
|
this.isFocused = false;
|
|
61
61
|
this.formControlBlur.emit();
|
|
62
|
-
} }), h(FormControlErrorText, { key: '
|
|
62
|
+
} }), h(FormControlErrorText, { key: '5747821abcfedb2bf33a65907f333ea48478c37a', errorText: this.errorText, name: this.name }))));
|
|
63
63
|
}
|
|
64
64
|
get el() { return this; }
|
|
65
65
|
}, [0, "form-control-file", {
|
|
@@ -70,10 +70,10 @@ const MonetaryInput = /*@__PURE__*/ proxyCustomElement(class MonetaryInput exten
|
|
|
70
70
|
return part;
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
return (h(Host, { key: '
|
|
73
|
+
return (h(Host, { key: '83294146c6f3ae050163857d50b844539397553a' }, h("div", { key: '07251dfdad902a9a80515b3cc5fd3d66ea623e0c', class: "form-group d-flex flex-column" }, h("label", { key: '96b4419c336b6b75183692f9233759c5f703dc3f', part: label, class: "form-label", htmlFor: this.name }, this.label), h("div", { key: '3f4acb21a8d950365446153df63031698032cbf6', class: "input-group" }, h("span", { key: '9d33e13f2740d2c8326eeae18d77210a32436a44', class: "input-group-text", part: text }, "$"), h("input", { key: '8521bd07c63e502699088e45d41f953b28b5fbbe', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
74
74
|
this.isFocused = false;
|
|
75
75
|
this.formControlBlur.emit();
|
|
76
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h(FormControlHelpText, { key: '
|
|
76
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control monetary is-invalid' : 'form-control monetary', type: "text", disabled: this.disabled })), h(FormControlHelpText, { key: '8158ef70a7e3179433bf0d06b6ab3ac84cc99432', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '2ff89c0f5b9667b7a93f580891f1e314528c5d14', errorText: this.errorText, name: this.name }))));
|
|
77
77
|
}
|
|
78
78
|
static get watchers() { return {
|
|
79
79
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -75,10 +75,10 @@ const NumberInputMasked = /*@__PURE__*/ proxyCustomElement(class NumberInputMask
|
|
|
75
75
|
return input;
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: 'ce4be8f8dbc45d56729f8dc410782d543d6d36bb' }, h("div", { key: 'f541c120af578d82943b6ad74d0b9c3072b885ff', class: "form-group d-flex flex-column" }, h("div", { key: 'bcb14b211d16aae90f30a9668988dfe9c8828b1d', class: "d-flex align-items-start gap-2" }, h("label", { key: '00e7d4b05a71de70d6b835c6c7bafefbdc9c334e', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: 'e327c42167cc82a32761759a51f8894f615dc682', helpText: this.helpText })), h("input", { key: 'fe0a584dba22642e87bb7ed60289e33ca9d68a5b', ref: el => (this.textInput = el), id: this.name, name: this.name, onFocus: () => (this.isFocused = true), onBlur: () => {
|
|
79
79
|
this.isFocused = false;
|
|
80
80
|
this.formControlBlur.emit();
|
|
81
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '
|
|
81
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: 'b0c95b90958073dd5c695dad53618536a1f0ddae', errorText: this.errorText, name: this.name }))));
|
|
82
82
|
}
|
|
83
83
|
static get watchers() { return {
|
|
84
84
|
"defaultValue": ["handleDefaultValueChange"]
|
|
@@ -50,10 +50,10 @@ const NumberInput = /*@__PURE__*/ proxyCustomElement(class NumberInput extends H
|
|
|
50
50
|
return input;
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
53
|
-
return (h(Host, { key: '
|
|
53
|
+
return (h(Host, { key: '7f0a9eb69396c743a326a7c800c1a44758e9021e' }, h("div", { key: 'c6690d26559078214bc996c67d9d7822d8602b40', class: 'form-group d-flex flex-column' }, h("label", { key: 'b7fa671a2f4c16b748c266433ac8b3f0106a667f', part: label, class: "form-label", htmlFor: this.name }, this.label), h("input", { key: '487e6a423ba4f215f0c6937f83623d2c7fade9d2', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
54
54
|
this.isFocused = false;
|
|
55
55
|
this.formControlBlur.emit();
|
|
56
|
-
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: '
|
|
56
|
+
}, onInput: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "number", disabled: this.disabled }), h(FormControlHelpText, { key: '1013d3b9060dca903372a6a15e340b0e07d011e7', helpText: this.helpText, name: this.name }), h(FormControlErrorText, { key: '4911a0cd712df5789e9ebde0e10e8e0e323f908c', errorText: this.errorText, name: this.name }))));
|
|
57
57
|
}
|
|
58
58
|
get el() { return this; }
|
|
59
59
|
static get watchers() { return {
|
|
@@ -40,10 +40,10 @@ const RadioInput = /*@__PURE__*/ proxyCustomElement(class RadioInput extends HTM
|
|
|
40
40
|
return inputRadio;
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: 'bfa0d204b4a34281c66a890e74d2cbabdde704b9', class: 'form-group d-flex flex-column' }, h("div", { key: 'f2d9e0158d35806119570996eb33b261e163f66b', class: "form-check" }, h("input", { key: '08de0c12111ed8a20c763c9b1e3b503ee069c6df', ref: el => (this.radioElement = el), type: "radio", id: `${this.name}-${this.value}`, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
44
44
|
this.isFocused = false;
|
|
45
45
|
this.formControlBlur.emit();
|
|
46
|
-
}, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '
|
|
46
|
+
}, onChange: this.handleFormControlInput, part: this.part, class: this.errorText ? 'form-check-input is-invalid' : 'form-check-input', disabled: this.disabled, value: this.value, checked: this.checked }), h("label", { key: '24fb4d3d6308992b65b0346dff2fd87865b1a244', class: "form-check-label", htmlFor: `${this.name}-${this.value}`, part: label }, this.label)), h("form-control-help-text", { key: 'a70371f57745f7b1929f75610bb8a769bb99a515', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '3860ec0a17a2775905e268739564791925a87fb9', errorText: this.errorText, name: this.name })));
|
|
47
47
|
}
|
|
48
48
|
}, [0, "form-control-radio", {
|
|
49
49
|
"label": [1],
|
|
@@ -53,10 +53,10 @@ const TextInput = /*@__PURE__*/ proxyCustomElement(class TextInput extends HTMLE
|
|
|
53
53
|
return input;
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '5fd5420403a86c3a3cd1051bc195ce2aad1efce1' }, h("div", { key: 'd145ef0c3ef1ac6e5d5bce4faf6dd19a6e96b34a', class: "form-group d-flex flex-column" }, h("div", { key: 'a4f8efe5b6d8862388ac3a564ebe7522e3b5643a', class: "d-flex align-items-start gap-2" }, h("label", { key: '3e3d0f3d8ba2e32e9b18002e5884ccadd2ca8194', part: label, class: "form-label", htmlFor: this.name }, this.label), h("form-control-tooltip", { key: '199ddd92c25bfa7ac6cde94bfe40087645ee3370', helpText: this.helpText })), h("input", { key: 'f960d4968f7c71b7eaa69610b16462ee84e62b91', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
57
57
|
this.isFocused = false;
|
|
58
58
|
this.formControlBlur.emit();
|
|
59
|
-
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '
|
|
59
|
+
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? "form-control is-invalid" : "form-control", type: "text", disabled: this.disabled }), h(FormControlErrorText, { key: '9eda3817d987fac142a584d95b6242950658eb5f', errorText: this.errorText, name: this.name }))));
|
|
60
60
|
}
|
|
61
61
|
get el() { return this; }
|
|
62
62
|
static get watchers() { return {
|
|
@@ -53,10 +53,10 @@ const TextInput = /*@__PURE__*/ proxyCustomElement(class TextInput extends HTMLE
|
|
|
53
53
|
return input;
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: 'bd2917d7d1b655c1c901a3a3de5d7184fedb1c3d' }, h("div", { key: '87e1651c5cc4ad9d88bcfc29278d797e30e285e0', class: "form-group d-flex flex-column" }, h("label", { key: 'ea65895b454b1f92550100849354ee0a63493501', part: label, class: "form-label", htmlFor: this.name }, this.label), h("textarea", { key: 'f069eee75bbebc663e18648c441969e4c0893b61', id: this.name, name: this.name, onFocus: () => this.isFocused = true, onBlur: () => {
|
|
57
57
|
this.isFocused = false;
|
|
58
58
|
this.formControlBlur.emit();
|
|
59
|
-
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: '
|
|
59
|
+
}, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: this.part, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), h("form-control-help-text", { key: '804bc50bd1fa9763a23ccff43c7afb0485a0ef4c', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '42b936fd91f1b7b2d0fea7e08b393e28bd83d07c', errorText: this.errorText, name: this.name }))));
|
|
60
60
|
}
|
|
61
61
|
get el() { return this; }
|
|
62
62
|
static get watchers() { return {
|
|
@@ -76,7 +76,7 @@ const HiddenInput = /*@__PURE__*/ proxyCustomElement(class HiddenInput extends H
|
|
|
76
76
|
return input;
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: '68a2c54e46bbac93bee4a47e94d73d88104fb22b' }, h("input", { key: 'b558c0fe75e6c6cdd394a74e7abb4d6da8e7f4e9', ref: el => this.hiddenInput = el, type: "text", class: this.errorText ? "form-control is-invalid" : "form-control", onFocus: () => this.isFocused = true, onBlur: () => this.isFocused = false, part: this.part, tabindex: "-1", style: { height: '0', opacity: '0', pointerEvents: 'none', animation: 'none' } })));
|
|
80
80
|
}
|
|
81
81
|
}, [0, "hidden-input", {
|
|
82
82
|
"isFocused": [32],
|
|
@@ -1614,10 +1614,10 @@ const IframeInput = /*@__PURE__*/ proxyCustomElement(class IframeInput extends H
|
|
|
1614
1614
|
return params;
|
|
1615
1615
|
}
|
|
1616
1616
|
render() {
|
|
1617
|
-
return (h(Host, { key: '
|
|
1617
|
+
return (h(Host, { key: '8bd5db2440fd1b9fac9cc543351dc131b275848f', class: "form-group d-flex flex-column" }, h("div", { key: '5cb9d0b36e11eecaa83aaece84cbfa6255adc5ec', style: {
|
|
1618
1618
|
visibility: this.iframeLoaded ? 'visible' : 'hidden',
|
|
1619
1619
|
height: this.iframeLoaded ? 'auto' : '0',
|
|
1620
|
-
} }, h("label", { key: '
|
|
1620
|
+
} }, h("label", { key: '4bbf84b5246bae6b6951e7148b75cd5aea31f085', class: "form-label", htmlFor: "", part: label }, this.label || ''), h("div", { key: 'b9322c63b4d85cb7622bba2d2f2c5860d7ecc11a', 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: 'fdec589df0be0aab897c06f97b028791d9311ff7', id: this.inputId, name: this.inputId, src: `${this.iframeOrigin}?${this.urlParams}`, ref: el => {
|
|
1621
1621
|
this.iframeElement = el;
|
|
1622
1622
|
this.initializeFrameCommunicationService();
|
|
1623
1623
|
}, width: "100%", onLoad: () => {
|
|
@@ -1627,7 +1627,7 @@ const IframeInput = /*@__PURE__*/ proxyCustomElement(class IframeInput extends H
|
|
|
1627
1627
|
this.iframeLoaded.emit();
|
|
1628
1628
|
}
|
|
1629
1629
|
}, this.iframeElement);
|
|
1630
|
-
} })), h(FormControlErrorText, { key: '
|
|
1630
|
+
} })), h(FormControlErrorText, { key: '86d9464628d833e2526b50648eb87abeec20b24d', errorText: this.errorText, name: this.inputId }))));
|
|
1631
1631
|
}
|
|
1632
1632
|
get el() { return this; }
|
|
1633
1633
|
}, [0, "iframe-input", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import './ComponentError.js';
|
|
3
|
-
import { I as ICheckoutStatus, a as
|
|
3
|
+
import { I as ICheckoutStatus, a as ICheckoutPaymentModeParam } from './Checkout.js';
|
|
4
4
|
import './Pagination.js';
|
|
5
5
|
import './Payment.js';
|
|
6
6
|
import './SubAccount.js';
|
|
@@ -48,13 +48,13 @@ const CheckoutsListFilters = /*@__PURE__*/ proxyCustomElement(class CheckoutsLis
|
|
|
48
48
|
get checkoutPaymentModeOptions() {
|
|
49
49
|
return [
|
|
50
50
|
{ label: 'All', value: '' },
|
|
51
|
-
{ label: 'E-commerce', value:
|
|
52
|
-
{ label: 'BNPL', value:
|
|
51
|
+
{ label: 'E-commerce', value: ICheckoutPaymentModeParam.ecom },
|
|
52
|
+
{ label: 'BNPL', value: ICheckoutPaymentModeParam.bnpl },
|
|
53
53
|
];
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
56
|
const filterMenuParams = Object.assign({}, filterParams);
|
|
57
|
-
return (h(StyledHost, { key: '
|
|
57
|
+
return (h(StyledHost, { key: 'bcae6fee83117dde40a29ebcab8e85089bcdc37e' }, h("table-filters-menu", { key: '56c6a5d205836fe010917f0f0d978507cf227a3f', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: 'c82691f9b863368a2b7523dc7d9d348c3fe2e776', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '9abbb01e53139ebd376a638400b199d88288b175', class: "p-2" }, h("form-control-select", { key: '3859777cf1f4ee451a65440a90dfe9e5f4a2f069', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status, disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '3c23d4b820ea2424d6ddc01e6952c8c46cd7d975', class: "p-2" }, h("form-control-select", { key: 'c376228f82419b959b3fefa6b32d25c584c6ea3b', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode, disabled: !!this.paymentMode, part: paymentModeCheckoutsListFilterParam }))))));
|
|
58
58
|
}
|
|
59
59
|
}, [1, "justifi-checkouts-list-filters", {
|
|
60
60
|
"checkoutStatus": [1, "checkout-status"],
|