@justifi/webcomponents 5.3.5 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{Api-f5280a80.js → Api-83d93333.js} +2 -2
- package/dist/cjs/{SubAccount-f9069337.js → SubAccount-9babbfd3.js} +7 -7
- package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
- package/dist/cjs/{badge-6abf6ed3.js → badge-591df67f.js} +1 -1
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +6 -6
- 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/{business.service-776142b1.js → business.service-27f67b29.js} +1 -1
- package/dist/cjs/{button-aed2ce1a.js → button-7f272a63.js} +1 -1
- package/dist/cjs/{Analytics-e91a5523.js → check-pkg-version-52c7c2ab.js} +22 -2
- package/dist/cjs/{checkout.service-0643396e.js → checkout.service-46a5b9f2.js} +2 -2
- package/dist/cjs/checkouts-list-core.cjs.entry.js +8 -9
- package/dist/cjs/{checkouts-table-f88ad3c8.js → checkouts-table-7f2081df.js} +2 -2
- package/dist/cjs/custom-popper.cjs.entry.js +2 -2
- package/dist/cjs/{dispute.service-53c80520.js → dispute.service-a36c48bf.js} +2 -2
- package/dist/cjs/{table-ad35ff09.js → event-types-921f3555.js} +9 -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-74fb8498.js → form-control-error-text-377bcf59.js} +1 -1
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
- package/dist/cjs/{form-control-help-text-3cffd918.js → form-control-help-text-f7369e16.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 +4 -4
- package/dist/cjs/{get-payout-csv-bdd7d9c0.js → get-payout-csv-c1c7f03f.js} +2 -2
- package/dist/cjs/{get-subaccounts-40c4a0b6.js → get-subaccounts-c1d559a0.js} +2 -2
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
- package/dist/cjs/{header-1-cc98bae2.js → header-1-a63a16d5.js} +1 -1
- package/dist/cjs/{header-3-05ce2ad0.js → header-3-a6e0f274.js} +1 -1
- package/dist/cjs/{insurance-state-211cd636.js → insurance-state-ff4fca5a.js} +1 -1
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +4 -4
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +5 -5
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +1 -1
- package/dist/cjs/justifi-business-details.cjs.entry.js +7 -8
- package/dist/cjs/justifi-business-form.cjs.entry.js +9 -10
- package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +5 -5
- package/dist/cjs/justifi-checkout.cjs.entry.js +7 -8
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -11
- package/dist/cjs/justifi-details.cjs.entry.js +2 -2
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -7
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +9 -10
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -7
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +108 -55
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -9
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -6
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -9
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -13
- 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 -6
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +70 -0
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +78 -14
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -12
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +9 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-82b16c28.js → package-53904238.js} +1 -1
- package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
- package/dist/cjs/{parts-63f60e81.js → parts-3118ab4b.js} +12 -5
- package/dist/cjs/payment-details-core.cjs.entry.js +12 -12
- package/dist/cjs/{payment.service-23b0dcb8.js → payment.service-fedf131a.js} +2 -2
- package/dist/cjs/payments-list-core.cjs.entry.js +9 -10
- package/dist/cjs/{payments-status-b9192db7.js → payments-status-96156930.js} +1 -1
- package/dist/cjs/{payments-table-dba2f145.js → payments-table-6f87d43e.js} +2 -2
- package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
- package/dist/cjs/payouts-list-core.cjs.entry.js +9 -10
- package/dist/cjs/{payouts-status-385a794d.js → payouts-status-aa6842ac.js} +1 -1
- package/dist/cjs/{payouts-table-8cd537de.js → payouts-table-d4c8bbbc.js} +2 -2
- package/dist/cjs/{skeleton-65afa2f5.js → skeleton-32198b92.js} +1 -1
- package/dist/cjs/{spinner-a95e9b8d.js → spinner-a5c0f3c0.js} +1 -1
- package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +45 -64
- package/dist/cjs/terminal-orders-list-params-state-c419078f.js +22 -0
- package/dist/cjs/{terminal-orders-table-8baa5461.js → terminal-orders-table-eb95b278.js} +8 -3
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
- package/dist/cjs/{terminal.service-2f41898f.js → terminal.service-ac44fc14.js} +8 -2
- package/dist/cjs/terminals-list-core.cjs.entry.js +8 -9
- package/dist/cjs/{terminals-table-c4c01dc3.js → terminals-table-3f0c33ea.js} +2 -2
- package/dist/cjs/{utils-f752bd45.js → utils-97041614.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/actions/terminal/get-terminal-orders.js +34 -0
- package/dist/collection/actions/terminal/order-terminals.js +29 -0
- package/dist/collection/api/Api.js +2 -2
- package/dist/collection/api/TerminalOrder.js +4 -4
- package/dist/collection/api/services/terminal.service.js +6 -0
- package/dist/collection/api/services/terminal_orders.service.js +9 -0
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +2 -2
- package/dist/collection/components/order-terminals/order-terminals-loading.js +1 -1
- package/dist/collection/components/order-terminals/order-terminals.js +109 -48
- package/dist/collection/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector-loading.js +1 -1
- package/dist/collection/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector.js +4 -4
- 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 +6 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +67 -9
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +141 -0
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-params-state.js +14 -0
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +52 -11
- 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/tokenize-payment-method/tokenize-payment-method.js +1 -1
- package/dist/collection/styles/parts.js +7 -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 +1 -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 +275 -18
- package/dist/esm/{Api-391d00e2.js → Api-52242eb0.js} +2 -2
- package/dist/esm/{SubAccount-f31bdeb4.js → SubAccount-0248b5ab.js} +4 -4
- package/dist/esm/additional-questions-details_5.entry.js +2 -2
- package/dist/esm/{badge-7768a2b1.js → badge-1555ad1d.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +6 -6
- 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/{business.service-f7c3b9f7.js → business.service-13890e74.js} +1 -1
- package/dist/esm/{button-b3d07089.js → button-1e756c34.js} +1 -1
- package/dist/{module/Analytics.js → esm/check-pkg-version-0557a5c4.js} +22 -3
- package/dist/esm/{checkout.service-020aaf97.js → checkout.service-fe338804.js} +2 -2
- package/dist/esm/checkouts-list-core.entry.js +6 -7
- package/dist/esm/{checkouts-table-974c57ba.js → checkouts-table-e339bf0c.js} +2 -2
- package/dist/esm/custom-popper.entry.js +2 -2
- package/dist/esm/{dispute.service-b234b5c7.js → dispute.service-3e1320fe.js} +2 -2
- package/dist/esm/{table-03e4dfc0.js → event-types-359ef89e.js} +10 -3
- 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-923afdfa.js → form-control-error-text-1391123f.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-c7bdd493.js → form-control-help-text-9918264e.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 +4 -4
- package/dist/esm/{get-payout-csv-9528b0a2.js → get-payout-csv-9021a002.js} +2 -2
- package/dist/esm/{get-subaccounts-212c162d.js → get-subaccounts-6b048fd1.js} +2 -2
- package/dist/esm/gross-payment-chart-core.entry.js +3 -3
- package/dist/esm/{header-1-649109a3.js → header-1-adb520cc.js} +1 -1
- package/dist/esm/{header-3-ca7bb57b.js → header-3-ca58500e.js} +1 -1
- package/dist/esm/{insurance-state-e3b48bb2.js → insurance-state-24af6ddb.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +4 -4
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +5 -5
- package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
- package/dist/esm/justifi-business-details.entry.js +6 -7
- package/dist/esm/justifi-business-form.entry.js +8 -9
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +5 -5
- package/dist/esm/justifi-checkout.entry.js +6 -7
- package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
- package/dist/esm/justifi-checkouts-list.entry.js +9 -10
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management.entry.js +5 -6
- package/dist/esm/justifi-dispute-notification_3.entry.js +8 -9
- package/dist/esm/justifi-gross-payment-chart.entry.js +5 -6
- package/dist/esm/justifi-order-terminals.entry.js +107 -54
- package/dist/esm/justifi-owner-form_3.entry.js +4 -4
- package/dist/esm/justifi-payment-details.entry.js +7 -8
- package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
- package/dist/esm/justifi-payment-provisioning.entry.js +4 -5
- package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payments-list.entry.js +10 -11
- package/dist/esm/justifi-payout-details.entry.js +7 -8
- package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
- package/dist/esm/justifi-payouts-list.entry.js +11 -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 +4 -5
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +66 -0
- package/dist/esm/justifi-terminal-orders-list.entry.js +79 -15
- package/dist/esm/justifi-terminals-list-filters.entry.js +3 -3
- package/dist/esm/justifi-terminals-list.entry.js +10 -11
- package/dist/esm/justifi-tokenize-payment-method.entry.js +8 -9
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-b9d805ae.js → package-25d5d805.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-18c966b1.js → parts-ad835bef.js} +8 -4
- package/dist/esm/payment-details-core.entry.js +12 -12
- package/dist/esm/{payment.service-81752187.js → payment.service-2967c84b.js} +2 -2
- package/dist/esm/payments-list-core.entry.js +8 -9
- package/dist/esm/{payments-status-f451caf6.js → payments-status-d011e114.js} +1 -1
- package/dist/esm/{payments-table-a7836555.js → payments-table-3e33b856.js} +2 -2
- package/dist/esm/payout-details-core.entry.js +7 -7
- package/dist/esm/payouts-list-core.entry.js +8 -9
- package/dist/esm/{payouts-status-bfae9f42.js → payouts-status-181276c5.js} +1 -1
- package/dist/esm/{payouts-table-55f1a8a3.js → payouts-table-199bdf64.js} +2 -2
- package/dist/esm/{skeleton-ca37b248.js → skeleton-0cde7cb6.js} +1 -1
- package/dist/esm/{spinner-30abb9b0.js → spinner-342e71ff.js} +1 -1
- package/dist/esm/table-filters-menu.entry.js +2 -2
- package/dist/esm/terminal-orders-list-core.entry.js +44 -63
- package/dist/esm/terminal-orders-list-params-state-8fec0a0b.js +16 -0
- package/dist/esm/{terminal-orders-table-a340c409.js → terminal-orders-table-2884305a.js} +8 -3
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-3c3f2c3f.js → terminal.service-4fab5adc.js} +8 -2
- package/dist/esm/terminals-list-core.entry.js +7 -8
- package/dist/esm/{terminals-table-88549e54.js → terminals-table-4e1644e8.js} +2 -2
- package/dist/esm/{utils-e7df4815.js → utils-96c6292c.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Api.js +2 -2
- package/dist/module/SubAccount.js +4 -4
- package/dist/module/check-pkg-version.js +80 -1
- package/dist/module/checkouts-list-core2.js +1 -2
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/dispute-response.js +1 -2
- package/dist/module/event-types2.js +55 -1
- 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 +1 -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-business-details.js +1 -2
- package/dist/module/justifi-business-form.js +1 -2
- package/dist/module/justifi-checkout.js +2 -3
- package/dist/module/justifi-checkouts-list.js +1 -2
- package/dist/module/justifi-dispute-management.js +1 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -2
- package/dist/module/justifi-order-terminals.js +105 -51
- package/dist/module/justifi-payment-details.js +1 -2
- package/dist/module/justifi-payment-provisioning.js +1 -2
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +2 -3
- package/dist/module/justifi-payout-details.js +1 -2
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -3
- package/dist/module/justifi-refund-form.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +1 -2
- package/dist/module/justifi-terminal-orders-list-filters.d.ts +11 -0
- package/dist/module/justifi-terminal-orders-list-filters.js +119 -0
- package/dist/module/justifi-terminal-orders-list.js +75 -12
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +3 -4
- package/dist/module/justifi-tokenize-payment-method.js +3 -4
- package/dist/module/package.js +1 -1
- package/dist/module/parts.js +8 -4
- package/dist/module/payment-details-core2.js +7 -7
- package/dist/module/payment-provisioning-core.js +2 -2
- package/dist/module/payments-list-core2.js +2 -3
- package/dist/module/payout-details-core2.js +1 -1
- package/dist/module/payouts-list-core2.js +2 -3
- package/dist/module/terminal-orders-list-core2.js +44 -59
- package/dist/module/terminal-orders-list-params-state.js +16 -0
- package/dist/module/terminal-quantity-selector2.js +2 -2
- package/dist/module/terminal.service.js +6 -0
- package/dist/module/terminals-list-core2.js +2 -3
- package/dist/types/actions/terminal/get-terminal-orders.d.ts +11 -0
- package/dist/types/actions/terminal/order-terminals.d.ts +8 -0
- package/dist/types/api/Api.d.ts +1 -1
- package/dist/types/api/TerminalOrder.d.ts +11 -5
- package/dist/types/api/services/terminal.service.d.ts +2 -0
- package/dist/types/api/services/terminal_orders.service.d.ts +7 -0
- package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +0 -1
- package/dist/types/components/order-terminals/order-terminals.d.ts +20 -3
- package/dist/types/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector.d.ts +2 -2
- package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +4 -2
- package/dist/types/components/terminal-orders-list/terminal-orders-list-filters.d.ts +19 -0
- package/dist/types/components/terminal-orders-list/terminal-orders-list-params-state.d.ts +6 -0
- package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +8 -2
- package/dist/types/components.d.ts +49 -6
- package/dist/types/styles/parts.d.ts +6 -0
- package/dist/webcomponents/p-00d55a4b.entry.js +1 -0
- package/dist/webcomponents/{p-348fc9b1.js → p-04d59ef8.js} +1 -1
- package/dist/webcomponents/p-073f24ba.entry.js +1 -0
- package/dist/webcomponents/p-07c13189.entry.js +1 -0
- package/dist/webcomponents/p-0bafaf49.entry.js +1 -0
- package/dist/webcomponents/p-0d01d245.entry.js +1 -0
- package/dist/webcomponents/p-13d62477.entry.js +1 -0
- package/dist/webcomponents/{p-930e2e05.js → p-17c4edf7.js} +1 -1
- package/dist/webcomponents/{p-6776df16.js → p-17eea747.js} +1 -1
- package/dist/webcomponents/p-1b3a6c40.entry.js +1 -0
- package/dist/webcomponents/p-1fb5677e.entry.js +1 -0
- package/dist/webcomponents/p-24203209.entry.js +1 -0
- package/dist/webcomponents/{p-ca19fd2e.js → p-251c8e97.js} +1 -1
- package/dist/webcomponents/{p-d37d20ca.entry.js → p-258087a8.entry.js} +1 -1
- package/dist/webcomponents/p-2759d157.entry.js +1 -0
- package/dist/webcomponents/{p-f48dd1ef.entry.js → p-2cd9b608.entry.js} +1 -1
- package/dist/webcomponents/p-2dd39017.js +1 -0
- package/dist/webcomponents/p-3030f5e6.entry.js +1 -0
- package/dist/webcomponents/p-308ec9c7.entry.js +1 -0
- package/dist/webcomponents/{p-9ffed802.js → p-324587d0.js} +1 -1
- package/dist/webcomponents/{p-d019b800.js → p-34a95381.js} +1 -1
- package/dist/webcomponents/{p-b40bcf59.js → p-365e56fc.js} +1 -1
- package/dist/webcomponents/p-36e32bc4.entry.js +1 -0
- package/dist/webcomponents/p-454acd29.entry.js +1 -0
- package/dist/webcomponents/{p-adf30888.entry.js → p-45e68bb3.entry.js} +1 -1
- package/dist/webcomponents/p-485df2fe.entry.js +1 -0
- package/dist/webcomponents/p-50b012a3.entry.js +1 -0
- package/dist/webcomponents/p-52e2cc5e.js +1 -0
- package/dist/webcomponents/{p-ec3f9d80.entry.js → p-55e21977.entry.js} +1 -1
- package/dist/webcomponents/{p-0a271654.entry.js → p-56143442.entry.js} +1 -1
- package/dist/webcomponents/{p-834c12a0.entry.js → p-5cf1898d.entry.js} +1 -1
- package/dist/webcomponents/p-5d600828.js +1 -0
- package/dist/webcomponents/{p-0e180654.js → p-5f6b4bc9.js} +1 -1
- package/dist/webcomponents/{p-6501cb6e.entry.js → p-61a45f7d.entry.js} +1 -1
- package/dist/webcomponents/p-646d007a.js +1 -0
- package/dist/webcomponents/p-651c881b.js +1 -0
- package/dist/webcomponents/{p-0ef25316.entry.js → p-6a4b710e.entry.js} +1 -1
- package/dist/webcomponents/{p-140836f1.entry.js → p-74f6cc28.entry.js} +1 -1
- package/dist/webcomponents/p-78255a04.entry.js +1 -0
- package/dist/webcomponents/p-7d93c28b.js +1 -0
- package/dist/webcomponents/{p-808f61aa.js → p-88af0d7d.js} +1 -1
- package/dist/webcomponents/p-8946edfd.js +1 -0
- package/dist/webcomponents/p-8ffd9f7c.js +1 -0
- package/dist/webcomponents/{p-29988e8f.entry.js → p-92b18902.entry.js} +1 -1
- package/dist/webcomponents/{p-57ddf983.entry.js → p-92f29922.entry.js} +1 -1
- package/dist/webcomponents/{p-66cdd475.js → p-944f1cc7.js} +1 -1
- package/dist/webcomponents/p-97f3a1b0.entry.js +1 -0
- package/dist/webcomponents/p-9c57de4e.entry.js +1 -0
- package/dist/webcomponents/p-9fcab358.entry.js +1 -0
- package/dist/webcomponents/{p-b4ed5a2c.js → p-a0f715d4.js} +1 -1
- package/dist/webcomponents/p-a35f3b5b.js +1 -0
- package/dist/webcomponents/p-a7594f8f.entry.js +1 -0
- package/dist/webcomponents/{p-69ae193c.js → p-a81cabed.js} +1 -1
- package/dist/webcomponents/{p-3744006f.js → p-b19a37d4.js} +1 -1
- package/dist/webcomponents/{p-c1af1fdb.entry.js → p-b7960f37.entry.js} +1 -1
- package/dist/webcomponents/{p-7d43c1d6.entry.js → p-b7ddb76f.entry.js} +1 -1
- package/dist/webcomponents/p-b97f433a.entry.js +1 -0
- package/dist/webcomponents/{p-913d51b9.js → p-ba113075.js} +1 -1
- package/dist/webcomponents/p-be6fea42.entry.js +1 -0
- package/dist/webcomponents/p-beec0b60.js +1 -0
- package/dist/webcomponents/p-c380213d.js +1 -0
- package/dist/webcomponents/{p-420d6572.entry.js → p-c3939138.entry.js} +1 -1
- package/dist/webcomponents/p-c7c9725d.entry.js +1 -0
- package/dist/webcomponents/p-cba7d0a7.entry.js +1 -0
- package/dist/webcomponents/{p-77245638.js → p-d273f33b.js} +1 -1
- package/dist/webcomponents/p-d4724349.js +1 -0
- package/dist/webcomponents/p-d575c2c1.entry.js +1 -0
- package/dist/webcomponents/{p-dd535097.js → p-d5960545.js} +1 -1
- package/dist/webcomponents/p-d78ea308.entry.js +1 -0
- package/dist/webcomponents/p-d7bcf8f0.js +1 -0
- package/dist/webcomponents/{p-566883fb.entry.js → p-d8ba9309.entry.js} +1 -1
- package/dist/webcomponents/p-da2a9dfa.entry.js +1 -0
- package/dist/webcomponents/{p-1a9d60b1.entry.js → p-dac9282d.entry.js} +1 -1
- package/dist/webcomponents/{p-4a580682.entry.js → p-dd3de924.entry.js} +1 -1
- package/dist/webcomponents/p-df9ff0ce.entry.js +1 -0
- package/dist/webcomponents/p-e1dd47e1.entry.js +1 -0
- package/dist/webcomponents/{p-7e4c84f7.entry.js → p-e52e9120.entry.js} +1 -1
- package/dist/webcomponents/p-e545c079.entry.js +1 -0
- package/dist/webcomponents/p-e5c60276.entry.js +1 -0
- package/dist/webcomponents/p-e5de1a00.entry.js +1 -0
- package/dist/webcomponents/{p-7dc34297.entry.js → p-ed3ad073.entry.js} +1 -1
- package/dist/webcomponents/{p-54502491.entry.js → p-f1573cad.entry.js} +1 -1
- package/dist/webcomponents/p-f1d6e14f.js +1 -0
- package/dist/webcomponents/{p-4014d084.entry.js → p-f57d5d4f.entry.js} +1 -1
- package/dist/webcomponents/{p-8548d8de.js → p-f87e871d.js} +1 -1
- package/dist/webcomponents/p-f8a95380.entry.js +1 -0
- package/dist/webcomponents/{p-1e3cc191.entry.js → p-fa5688f7.entry.js} +1 -1
- package/dist/webcomponents/p-fbdc18e4.entry.js +1 -0
- package/dist/webcomponents/{p-49fc12b2.entry.js → p-fdd244b1.entry.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/check-pkg-version-d19c6fdb.js +0 -24
- package/dist/cjs/event-types-b6d34593.js +0 -8
- package/dist/esm/Analytics-d0f79dc3.js +0 -82
- package/dist/esm/check-pkg-version-2e9f961e.js +0 -22
- package/dist/esm/event-types-0a83d0b4.js +0 -8
- package/dist/module/table.js +0 -55
- package/dist/webcomponents/p-0ef50c81.js +0 -1
- package/dist/webcomponents/p-0f85fde5.entry.js +0 -1
- package/dist/webcomponents/p-0faaae79.entry.js +0 -1
- package/dist/webcomponents/p-121e9167.entry.js +0 -1
- package/dist/webcomponents/p-1d019dda.entry.js +0 -1
- package/dist/webcomponents/p-1f99a902.js +0 -1
- package/dist/webcomponents/p-1fcde0de.entry.js +0 -1
- package/dist/webcomponents/p-229c841e.entry.js +0 -1
- package/dist/webcomponents/p-2481c1d3.entry.js +0 -1
- package/dist/webcomponents/p-31507b3a.entry.js +0 -1
- package/dist/webcomponents/p-36060c36.entry.js +0 -1
- package/dist/webcomponents/p-418ab812.entry.js +0 -1
- package/dist/webcomponents/p-45bed1b7.js +0 -1
- package/dist/webcomponents/p-4bb0d6fd.js +0 -1
- package/dist/webcomponents/p-4c4a2c48.js +0 -1
- package/dist/webcomponents/p-4f9a2f1f.js +0 -1
- package/dist/webcomponents/p-55a6599a.entry.js +0 -1
- package/dist/webcomponents/p-5bf5f7d7.entry.js +0 -1
- package/dist/webcomponents/p-5dc767d8.js +0 -1
- package/dist/webcomponents/p-6815a6cb.entry.js +0 -1
- package/dist/webcomponents/p-76d1036b.entry.js +0 -1
- package/dist/webcomponents/p-77e3ed67.js +0 -1
- package/dist/webcomponents/p-867e34b8.entry.js +0 -1
- package/dist/webcomponents/p-8a3f1a56.entry.js +0 -1
- package/dist/webcomponents/p-8a9debac.entry.js +0 -1
- package/dist/webcomponents/p-8b3842ce.js +0 -1
- package/dist/webcomponents/p-96a491aa.js +0 -1
- package/dist/webcomponents/p-9a6eacd0.entry.js +0 -1
- package/dist/webcomponents/p-9d8cf927.entry.js +0 -1
- package/dist/webcomponents/p-b0335a17.entry.js +0 -1
- package/dist/webcomponents/p-b075211e.entry.js +0 -1
- package/dist/webcomponents/p-b7a407fb.entry.js +0 -1
- package/dist/webcomponents/p-b894423f.js +0 -1
- package/dist/webcomponents/p-bc6e3e59.entry.js +0 -1
- package/dist/webcomponents/p-bc73a554.entry.js +0 -1
- package/dist/webcomponents/p-c17af2a4.entry.js +0 -1
- package/dist/webcomponents/p-ca55be58.js +0 -1
- package/dist/webcomponents/p-d979d9ea.entry.js +0 -1
- package/dist/webcomponents/p-d981a599.entry.js +0 -1
- package/dist/webcomponents/p-da415c08.entry.js +0 -1
- package/dist/webcomponents/p-e0befd51.js +0 -1
- package/dist/webcomponents/p-e7d2eba7.entry.js +0 -1
- package/dist/webcomponents/p-e895bc2a.entry.js +0 -1
- package/dist/webcomponents/p-ee991c9e.entry.js +0 -1
- package/dist/webcomponents/p-f1580c62.js +0 -1
- package/dist/webcomponents/p-fe0399a1.js +0 -1
- package/dist/webcomponents/p-fe439eb2.entry.js +0 -1
- package/dist/webcomponents/p-fe8be5fa.entry.js +0 -1
- package/dist/webcomponents/p-ffbd95d0.entry.js +0 -1
- /package/dist/types/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector-loading.d.ts +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as r}from"./p-2783e363.js";import{A as i}from"./p-0e180654.js";import{a as o,C as e}from"./p-9dd8685c.js";import{g as a,a as c}from"./p-87f8c596.js";import{E as h}from"./p-b40bcf59.js";import{J as n}from"./p-ca19fd2e.js";import{c as p}from"./p-0ef50c81.js";import"./p-8b3842ce.js";import"./p-dd535097.js";class d{async fetchGrossVolumeChartData(s,t){return i({authToken:t,apiOrigin:"https://wc-proxy.justifi.ai"}).get(`account/${s}/reports/gross_volume`)}}const m=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)},this.accountId=void 0,this.authToken=void 0,this.getGrossPayment=void 0,this.errorMessage=null}componentWillLoad(){p(),this.analytics=new n(this),this.initializeGetGrossPayment()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:i,onError:e})=>{var h;try{const n=await r.fetchGrossVolumeChartData(s,t);n.error?e({error:a(n.error),code:c(null===(h=n.error)||void 0===h?void 0:h.code),severity:o.ERROR}):i(n.data)}catch(s){const t=c(null==s?void 0:s.code);e({error:a(s),code:t,severity:o.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new d}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}render(){return this.errorMessage?h(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_gross_payment_chart}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as a}from"./p-2783e363.js";import"./p-9dd8685c.js";import"./p-daf0303f.js";import{p as e}from"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-e0befd51.js";import"./p-61f0a2ce.js";import{Q as i,R as r}from"./p-8b3842ce.js";import{T as c,a as h,b as o,c as d}from"./p-b894423f.js";import{p,a as b}from"./p-3744006f.js";import{o as n,g as f}from"./p-dec18cc4.js";import{T as m}from"./p-1f99a902.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";import"./p-4bb0d6fd.js";import"./p-808f61aa.js";import"./p-d019b800.js";import"./p-f20b6ce1.js";const l=class{constructor(a){t(this,a),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:m.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:m.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const a=this.payments.find((t=>t.id===s));this.clickEvent.emit({name:m.row,data:a})},this.getPayments=void 0,this.columns=void 0,this.payments=[],this.paymentsTable=void 0,this.loading=!0,this.errorMessage=void 0,this.paging=e,this.pagingParams={}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.paymentsTable=new c(this.payments,this.columns,p,b),this.getPayments&&this.fetchData(),n("set",(()=>{this.pagingParams={}})),n("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:s})=>{this.payments=t,this.paging=s,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:s,severity:a})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:a})},final:()=>{this.loading=!1}})}get paymentParams(){const t=f();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return a("div",{key:"43aa1d53dc7c63eda036624d897d92670ff4dec7"},a("div",{key:"84ac82efec3738e1a07bcf5fbfdf62426bacaad0",class:"table-wrapper"},a("table",{key:"65e2ab73a63fa1d89b1b7fb0cd9809d951de657a",class:"table table-hover",part:i},a("thead",{key:"81ff867eb4b86905049e57c9c9ee331ad9a43f22",class:"table-head sticky-top"},a("tr",{key:"edecfccffc49b21f4d9d01396ab4d22dda6f853b",class:"table-light text-nowrap"},this.paymentsTable.columnData.map((t=>t)))),a("tbody",{key:"1df70e89ad33f83dbf18c6c5135bcda2753413a8",class:"table-body"},a(h,{key:"23cfc404da1ccfada68146b83343e9ee348bac05",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),a(o,{key:"9929a89448678aa010ecfb43377c38f53b1896d2",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),a(d,{key:"1734903104bb6c6e9b382661bc353731c5cf92aa",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((t,s)=>a("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&a("tfoot",{key:"08277c1742a8ff36079a2fd4d4c3a31e628617dc",class:"sticky-bottom"},a("tr",{key:"6012aa5a86f140007504d056f53eba3a21aacc40",class:"table-light align-middle"},a("td",{key:"e67d2f48a9d1002086a18ebd4ca00a5b22903c06",part:r,colSpan:this.paymentsTable.columnData.length},a("pagination-menu",{key:"afcfbab93aa8bb33d6aac50b11c803ebb3284bf1",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{l as payments_list_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s}from"./p-2783e363.js";import{a as e,C as o}from"./p-9dd8685c.js";import{J as a}from"./p-ca19fd2e.js";import{c as r}from"./p-0ef50c81.js";import{m as p,P as n}from"./p-6776df16.js";import"./p-daf0303f.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import{P as c}from"./p-e0befd51.js";import"./p-61f0a2ce.js";import{g as d,a as h}from"./p-87f8c596.js";import{m,S as l}from"./p-f1580c62.js";import{S as u}from"./p-bfe9748b.js";import{d as b}from"./p-913d51b9.js";import"./p-dd535097.js";import"./p-0e180654.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";import"./p-77245638.js";import"./p-d019b800.js";import"./p-8b3842ce.js";const f=class{constructor(s){t(this,s),this.errorEvent=i(this,"error-event",7),this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)},this.getPayouts=void 0,this.getPayoutCSV=void 0,this.getSubAccounts=void 0,this.errorMessage=null,this.accountId=void 0,this.authToken=void 0,this.apiOrigin="https://wc-proxy.justifi.ai",this.columns=b}componentWillLoad(){r(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new n,apiOrigin:this.apiOrigin};this.getPayouts=(({id:t,authToken:i,service:s,apiOrigin:o})=>async({params:a,onSuccess:r,onError:p})=>{var n,m;try{const l=await s.fetchPayouts(t,i,a,o);if(l.error)return p({error:d(l.error),code:h(null===(m=l.error)||void 0===m?void 0:m.code),severity:e.ERROR});{const t=Object.assign({},l.page_info);r({payouts:(null===(n=l.data)||void 0===n?void 0:n.map((t=>new c(t))))||[],pagingInfo:t})}}catch(t){const i=h(null==t?void 0:t.code);return p({error:t.message||t,code:i,severity:e.ERROR})}})(t),this.getPayoutCSV=p(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR})}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new l,apiOrigin:this.apiOrigin}))}render(){return s(u,{key:"1dc2cb28607d7afaaf9d463633a3c127e79acdfb",exportedparts:"\ntable-head,table-head-row,table-head-cell,table-body,table-row,table-row-even,\ntable-row-odd,table-cell,loading-state-cell,loading-state-spinner,error-state,\nempty-state,pagination-bar,page-arrow,page-button,page-button-disabled,page-button-text\n"},s("payouts-list-core",{key:"c404ee62ba0a0e6ed800073d0740182e831b3610",getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,getSubAccounts:this.getSubAccounts,"onError-event":this.handleOnError,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payouts_list}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as o}from"./p-2783e363.js";import{e as r}from"./p-8b3842ce.js";const s=s=>o("h1",{class:`header-1 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as a}from"./p-2783e363.js";import{T as s,a as i,b as d,c as r}from"./p-b894423f.js";import{Q as c,R as o}from"./p-8b3842ce.js";import"./p-9dd8685c.js";import"./p-daf0303f.js";import{p as n}from"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-e0befd51.js";import"./p-61f0a2ce.js";import{t as h,a as b}from"./p-348fc9b1.js";import"./p-4bb0d6fd.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";import"./p-d019b800.js";const p=[{id:"tord_ABCD1234",business_id:"biz_0987",account_id:"acc_5678",provider:"verifone",order_type:"boarding_only",order_status:"submitted",terminals:[{terminal_id:"tmn_QWER",terminal_did:"11112222",model_name:"v400"}],created_at:"2025-01-02T10:30:00Z",updated_at:"2025-01-02T10:45:00Z"},{id:"tord_WXYZ5678",business_id:"biz_1234",account_id:"acc_4321",provider:"verifone",order_type:"boarding_shipping",order_status:"completed",terminals:[{terminal_id:"tmn_ASDF",terminal_did:"33334444",model_name:"e355"}],created_at:"2025-02-10T09:20:00Z",updated_at:"2025-02-10T09:25:00Z"}],l=class{constructor(a){t(this,a),this.errorEvent=e(this,"error-event",7),this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t}},this.handleClickNext=t=>{this.pagingParams={after_cursor:t}},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;e&&console.log("clickedOrderId",e)},this.getTerminalOrders=void 0,this.columns=void 0,this.terminalOrders=p,this.terminalOrdersTable=void 0,this.loading=!0,this.errorMessage=void 0,this.paging=n,this.pagingParams={}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new s(this.terminalOrders,this.columns,h,b),this.getTerminalOrders&&this.fetchData()}fetchData(){this.loading=!0,console.log("fetching terminal orders"),this.loading=!1}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return a("div",{key:"e07bb592d2d419079a00fe017789c98dc5814202"},a("div",{key:"1090df8ad75e0fdcd07a625c608c2fc0d38391d9",class:"table-wrapper"},a("table",{key:"31637db0926f2cd88d1333d5f512842406b1e0ef",class:"table table-hover",part:c},a("thead",{key:"2af2d35a486433b2cb2bab0b7d61d4be9e8d70ab",class:"table-head sticky-top"},a("tr",{key:"a42e578f3369b6466a331abeb34d63d9c09c0122",class:"table-light text-nowrap"},this.terminalOrdersTable.columnData.map((t=>t)))),a("tbody",{key:"16c4a9e940268fe2da49a9b14680d34a0f160ccc",class:"table-body"},a(i,{key:"a1ce6dcc9799bdd215b5d686d05e3014e594d975",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),a(d,{key:"135df5499de4e17855643d8ce4ebeb7f71aa5e85",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),a(r,{key:"00d2f0bc0bceb46178970c1eb0a0eb87c6fa6054",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,e)=>a("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[e],onClick:this.rowClickHandler},t)))),this.paging&&a("tfoot",{key:"49ce37b7ea5e979c8d754d48b9c803a163623387",class:"sticky-bottom"},a("tr",{key:"b73f32023e01d82c3eb91120c7eae907a9367517",class:"table-light align-middle"},a("td",{key:"cae073d169507d459d60f150fecbaad287996c74",part:o,colSpan:this.terminalOrdersTable.columnData.length},a("pagination-menu",{key:"9a9fa1cd2c520ee09814adf6d060d048bd77dcc1",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{l as terminal_orders_list_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as e}from"./p-2783e363.js";import{l as t}from"./p-c6be72b0.js";import{f as s,p as i,c}from"./p-f4739d31.js";import{N as r,O as l,P as o}from"./p-8b3842ce.js";import{S as p}from"./p-bfe9748b.js";import"./p-9dd8685c.js";import"./p-daf0303f.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import{I as d}from"./p-e0befd51.js";import"./p-61f0a2ce.js";import"./p-f20b6ce1.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";const f=class{constructor(e){a(this,e),this.setParamsOnChange=(a,e)=>{s[a]=e},this.terminalId=void 0,this.terminalStatus=void 0}componentWillLoad(){this.debouncedSetParamsOnChange=t.exports.debounce(this.setParamsOnChange,300),Object.entries({terminal_id:this.terminalId,status:this.terminalStatus}).forEach((([a,e])=>{e&&(i[a]=e)}))}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:d.connected},{label:"Disconnected",value:d.disconnected},{label:"Unknown",value:d.unknown}]}render(){const a=Object.assign({},s);return e(p,{key:"c0dc68ecfc49cbb1ec3297c1ae9b66e4d21fecc5"},e("table-filters-menu",{key:"74a2627c14a61251052647bc41b6a9d331f04a20",params:a,clearParams:c,part:r},e("div",{key:"0aa6684df6548ffc721507ba11d8494a7ac56d46",class:"grid-cols-2 gap-3 p-1"},e("div",{key:"6cb0918e840d7651e41b11c262cae4c6932c32ef",class:"p-2"},e("form-control-text",{key:"b5b134f5c243596b1232404b8f341bd46f69ae40",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:l})),e("div",{key:"8d88708e80c08fcfa9fb204afa1b0aade761d440",class:"p-2"},e("form-control-select",{key:"cfd6300240fd31d6e826f9f0662cdabf5b950497",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||s.status,disabled:!!this.terminalStatus,part:o})))))}};export{f as justifi_terminals_list_filters}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as i,h as t}from"./p-2783e363.js";import{J as e}from"./p-ca19fd2e.js";import{C as o,a as r}from"./p-9dd8685c.js";import{m as n,a}from"./p-b84ee6d8.js";import{B as p}from"./p-b4ed5a2c.js";import{A as h}from"./p-0e180654.js";import{c as d}from"./p-0ef50c81.js";import"./p-dd535097.js";import"./p-87f8c596.js";class c{async postProvisioning(s,i,t){const e={business_id:i,product_category:t};return h({authToken:s,apiOrigin:"https://wc-proxy.justifi.ai"}).post("entities/provisioning",e)}}const m=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.postProvisioning=void 0,this.getBusiness=void 0,this.businessId=void 0,this.authToken=void 0,this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){d(),this.analytics=new e(this),this.initializeApi()}disconnectedCallback(){this.analytics.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new p}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new c})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"ca4b13afe923312bd51d477eae50099876991599",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{m as justifi_payment_provisioning}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{f as t}from"./p-2ca5b5e4.js";var i,s,h,n,e,a,o,r,d;!function(t){t.paid="paid",t.failed="failed",t.forwarded="forwarded",t.scheduled="scheduled",t.in_transit="in_transit",t.canceled="canceled"}(i||(i={})),function(t){t.paid="Paid",t.failed="Failed",t.forwarded="Forwarded",t.scheduled="Scheduled",t.in_transit="In Transit",t.canceled="Canceled"}(s||(s={}));class c{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.bank_account=t.bank_account,this.delivery_method=t.delivery_method||"standard",this.description=t.description,this.deposits_at=t.deposits_at,this.fees_total=t.fees_total,this.refunds_count=t.refunds_count,this.refunds_total=t.refunds_total,this.payments_count=t.payments_count,this.payments_total=t.payments_total,this.payout_type=t.payout_type,this.other_total=t.other_total,this.status=t.status,this.metadata=t.metadata,this.created_at=t.created_at,this.updated_at=t.updated_at}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.connected="connected",t.disconnected="disconnected",t.unknown="unknown"}(h||(h={})),function(t){t.verifone="verifone"}(n||(n={}));class u{constructor(t){this.id=t.id||"",this.status=t.status,this.account_id=t.account_id||"",this.platform_account_id=t.platform_account_id||"",this.provider=t.provider||"",this.provider_id=t.provider_id||"",this.provider_serial_number=t.provider_serial_number||"",this.created_at=t.created_at||"",this.updated_at=t.updated_at||"",this.verified_at=t.verified_at||"",this.nickname=t.nickname||""}}!function(t){t.boardingOnly="boarding_only",t.boardingShipping="boarding_shipping"}(e||(e={})),function(t){t.submitted="submitted",t.completed="completed"}(a||(a={}));class l{constructor(t){this.id=t.id,this.business_id=t.business_id,this.account_id=t.account_id,this.provider=t.provider||n.verifone,this.order_items=[],this.order_type=t.order_type,this.order_status=t.order_status,this.terminals=t.terminals,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{business_id:this.business_id,account_id:this.account_id,provider:this.provider,order_type:this.order_type,order_items:this.order_items}}get totalQuantity(){return this.order_items.reduce(((t,i)=>t+i.quantity),0)}updateTerminal(t,i){if(0===i)return void(this.order_items=this.order_items.filter((i=>i.model_name!==t)));const s=this.order_items.find((i=>i.model_name===t));s?s.quantity=i:this.order_items.push({model_name:t,quantity:i})}}!function(t){t.v400="v400",t.p400="p400+",t.e285="e285"}(o||(o={}));class f{constructor(t){this.id=t.id,this.model_name=t.model_name,this.description=t.description,this.image_url=t.image_url,this.help_url=t.help_url}}!function(t){t.test="test",t.live="live"}(r||(r={})),function(t){t.created="created",t.submitted="submitted",t.information_needed="information_needed",t.rejected="rejected",t.enabled="enabled",t.disabled="disabled",t.archived="archived"}(d||(d={}));class m{constructor(t){this.id=t.id,this.name=t.name,this.account_type=t.account_type,this.status=t.status,this.currency=t.currency,this.platform_account_id=t.platform_account_id,this.payout_account_id=t.payout_account_id,this.business_id=t.business_id,this.application_fee_rates=t.application_fee_rates,this.processing_ready=t.processing_ready,this.payout_ready=t.payout_ready,this.related_accounts=t.related_accounts,this.created_at=t.created_at,this.updated_at=t.updated_at}}export{h as I,c as P,m as S,f as T,l as a,u as b}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-2783e363.js";import{C as a,a as i}from"./p-9dd8685c.js";import"./p-daf0303f.js";import{p as r}from"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-e0befd51.js";import"./p-61f0a2ce.js";import{Q as o,R as h}from"./p-8b3842ce.js";import{T as c,a as d,b as p,c as n}from"./p-b894423f.js";import{p as b,a as f}from"./p-913d51b9.js";import{o as m,g as u}from"./p-ab45511e.js";import{T as l}from"./p-1f99a902.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";import"./p-4bb0d6fd.js";import"./p-77245638.js";import"./p-d019b800.js";import"./p-f20b6ce1.js";const y=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.downloadCSV=t=>{this.getPayoutCSV({payoutId:t,onError:()=>{this.errorEvent.emit({errorCode:a.FETCH_ERROR,message:"Failed to download CSV",severity:i.ERROR})}})},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr"),e=s.dataset.rowEntityId;if(!e)return;if(s.querySelector("a")===t.target)return;const a=this.payouts.find((t=>t.id===e));this.clickEvent.emit({name:l.row,data:a})},this.getPayouts=void 0,this.getSubAccounts=void 0,this.getPayoutCSV=void 0,this.columns=void 0,this.payouts=[],this.payoutsTable=void 0,this.subAccounts=[],this.loading=!0,this.errorMessage=void 0,this.paging=r,this.pagingParams={}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.payoutsTable=new c(this.payouts,this.columns,b,f(this.downloadCSV)),this.getPayouts&&this.getSubAccounts&&this.fetchData(),m("set",(()=>{this.pagingParams={}})),m("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayouts({params:this.payoutParams,onSuccess:({payouts:t,pagingInfo:s})=>{this.payouts=t,this.paging=s,this.payoutsTable.collectionData=this.payouts,this.payoutsTable.columnKeys.includes("sub_account_name")?this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.payouts=this.payouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get payoutParams(){const t=u();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.payouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.payouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.payoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e("div",{key:"b7befcaf0a42986dc821d97e371fb93920b16358"},e("div",{key:"c405055d05c2f1b5e622ab28fc9744962f1907a1",class:"table-wrapper",part:"table-wrapper"},e("table",{key:"db36400212d74c17e0aad133717475ce3b142308",class:"table table-hover",part:o},e("thead",{key:"a3e208126c4d2c0ab2b6d9ef27f8c1410e029907",class:"table-head sticky-top",part:"table-head"},e("tr",{key:"37f25650e0c03cf8985ec68211eefc0980dd5a92",class:"table-light text-nowrap",part:"table-head-row"},this.payoutsTable.columnData.map((t=>t)))),e("tbody",{key:"7879e0b39a52ef735ff71960498e1405ff8f98b0",class:"table-body"},e(d,{key:"91fdd3ed14d5c63ac8c536a5d8da05bb491d49a1",columnSpan:this.payoutsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"577748b2fa32b265a6a1afbad3460c4628d21ba6",isEmpty:this.showEmptyState,columnSpan:this.payoutsTable.columnKeys.length}),e(n,{key:"351848f6ee13c7be8735757ce3dcbcce18bb4fff",columnSpan:this.payoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.payoutsTable.rowData.map(((t,s)=>e("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e("tfoot",{key:"889ef01055c10f969d4d51f6d114bd3654a06ce3",class:"sticky-bottom"},e("tr",{key:"6c49a3b386a64023d0701445e7589cced7f4f4df",class:"table-light align-middle"},e("td",{key:"7782a9152e0d8037afb6528897a9358da204bfb7",part:h,colSpan:this.payoutsTable.columnData.length},e("pagination-menu",{key:"eac386f11674a29452831bdbe183bfefe4347389",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"]}}};export{y as payouts_list_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as s,r as i,c as t}from"./p-2783e363.js";import{c as o,F as e}from"./p-5844a0f0.js";import{b as r,a}from"./p-4acf8ca2.js";import{a as h,i as n}from"./p-d43a38a4.js";import{A as l}from"./p-0e180654.js";import"./p-9dd8685c.js";import"./p-daf0303f.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-e0befd51.js";import"./p-61f0a2ce.js";import{B as p,a as c}from"./p-5d1d2fd7.js";import{J as d}from"./p-ca19fd2e.js";import{B as m}from"./p-66cdd475.js";import{S as f}from"./p-bfe9748b.js";import{H as b}from"./p-ca55be58.js";import{c as j}from"./p-0ef50c81.js";import{S as u}from"./p-fe0399a1.js";import{B as v}from"./p-73f9be7c.js";import"./p-95e55bb1.js";import"./p-6078a370.js";import"./p-c9b78275.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";import"./p-1ff8810b.js";import"./p-dd535097.js";import"./p-8b3842ce.js";const w=o(Object.assign(Object.assign({},r().fields),{legal_address:h(),additional_questions:a(),representative:n("representative")})),g=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(u,{width:"25%"})),s("div",{class:"col-12"},s(u,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(u,{width:"50%"}),s(u,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(u,{width:"65%"}),s(u,{width:"35%"}))),x=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(u,{width:"40%",height:"40px"})),s(g,null),s(g,null),s(g,null)),y=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event",7),this.clickEvent=t(this,"click-event",7),this.instantiateBusiness=s=>{const i=new p(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;try{const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new p(Object.assign(Object.assign({},i),s)).payload,o=await this.api.patch(this.businessEndpoint,t);this.handleReponse(o)}catch(s){this.errorMessage=c.patchData}finally{this.isSaving=!1}},this.fetchData=async()=>{this.isLoading=!0;try{const s=await this.api.get(this.businessEndpoint);this.instantiateBusiness(s.data)}catch(s){this.errorMessage=c.fetchData}finally{this.isLoading=!1}},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)},this.authToken=void 0,this.businessId=void 0,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.isLoading=!1,this.isSaving=!1,this.errorMessage=void 0}componentWillLoad(){j(),this.analytics=new d(this),this.authToken||console.error("Warning: Missing auth-token. The form will not be functional without it."),this.businessId||console.error("Warning: Missing business-id. The form requires an existing business-id to function."),this.formController=new e(w),this.api=l({authToken:this.authToken,apiOrigin:"https://wc-proxy.justifi.ai"}),this.fetchData()}disconnectedCallback(){this.analytics.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}handleReponse(s){s.error&&(this.errorMessage=c.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(f,null,this.isLoading?s(x,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(b,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(m,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:v.submit}),isLoading:this.isSaving},"Submit")))))}};export{y as justifi_business_form}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-2783e363.js";import"./p-9dd8685c.js";import"./p-daf0303f.js";import{p as i}from"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-e0befd51.js";import"./p-61f0a2ce.js";import{Q as a,R as r}from"./p-8b3842ce.js";import{T as c,a as h,b as o,c as d}from"./p-b894423f.js";import{t as n,a as p}from"./p-8548d8de.js";import{o as b,g as f}from"./p-f4739d31.js";import{T as m}from"./p-1f99a902.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";import"./p-4bb0d6fd.js";import"./p-d019b800.js";import"./p-f20b6ce1.js";const l=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:m.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:m.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:m.row,data:e})},this.getTerminals=void 0,this.getSubAccounts=void 0,this.columns=void 0,this.terminals=[],this.terminalsTable=void 0,this.subAccounts=[],this.loading=!0,this.errorMessage=void 0,this.paging=i,this.pagingParams={}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new c(this.terminals,this.columns,n,p),this.getTerminals&&this.getSubAccounts&&this.fetchData(),b("set",(()=>{this.pagingParams={}})),b("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:s})=>{this.terminals=t,this.paging=s,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get terminalParams(){const t=f();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e("div",{key:"d700224838a23855b9cce179c23d40da07fd37ce"},e("div",{key:"0a03d361d4482342edc5db06209f87a83735791f",class:"table-wrapper"},e("table",{key:"690d3b7ea58065281171e005252d4969f6284719",class:"table table-hover",part:a},e("thead",{key:"c92fc6c7514afc995e0d4e148d715b69c96118cd",class:"table-head sticky-top"},e("tr",{key:"bfeff664d29eac8f52e12adf40841b74711e9de2",class:"table-light text-nowrap"},this.terminalsTable.columnData.map((t=>t)))),e("tbody",{key:"0e8c69e12b8a64020e1b10af92ce05f7e1864d28",class:"table-body"},e(h,{key:"3fef62d6146938773a52c88f178438004d46f1eb",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(o,{key:"caec9eb5131fd8037e5cdccaf6c29d2f7f91ed7e",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(d,{key:"bd597887c2441bc070ff8ca9ec8d03564e62b9eb",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((t,s)=>e("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e("tfoot",{key:"ec61caec8ae1de6f106221f21827a89dfcad5b05",class:"sticky-bottom"},e("tr",{key:"e99c4133f365a7fefdc18d4a8bae9ac67b877fbd",class:"table-light align-middle"},e("td",{key:"ed22056d675baa32eef0bcc7fd2a4ae659d563aa",part:r,colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"8dffd0065bb7d74b43d2a56a5c0356d84301e58b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{l as terminals_list_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as o}from"./p-0e180654.js";import{a as r}from"./p-9dd8685c.js";import"./p-daf0303f.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import{S as s}from"./p-e0befd51.js";import"./p-61f0a2ce.js";import{g as t,a as c}from"./p-87f8c596.js";class a{async fetchSubAccounts(r,s,t,c="https://wc-proxy.justifi.ai"){const a={Account:r};return o({authToken:s,apiOrigin:c}).get("sub_accounts",t,null,a)}}const i=({accountId:o,authToken:a,service:i,apiOrigin:n})=>async({params:e,onSuccess:p,onError:u})=>{var f,m;try{const d=await i.fetchSubAccounts(o,a,e,n);if(d.error){return u({error:t(d.error),code:c(null===(m=d.error)||void 0===m?void 0:m.code),severity:r.ERROR})}{const o=Object.assign({},d.page_info);p({subAccounts:(null===(f=d.data)||void 0===f?void 0:f.map((o=>new s(o))))||[],pagingInfo:o})}}catch(o){const s=c(null==o?void 0:o.code);return u({error:o.message||o,code:s,severity:r.ERROR})}};export{a as S,i as m}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as t}from"./p-2783e363.js";import{s as e}from"./p-8b3842ce.js";const s=({component:s="div",height:o,width:r,className:i,styles:a={}})=>{const c=Object.assign(Object.assign({},a),{width:r,height:o});return t(s,{class:`${i} skeleton`,style:c,part:e,"aria-hidden":"true"})};export{s as S}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as i,h as t,H as o}from"./p-2783e363.js";import{E as r}from"./p-b40bcf59.js";import{B as e}from"./p-b4ed5a2c.js";import{m as p}from"./p-f30cb232.js";import{C as a,a as d}from"./p-9dd8685c.js";import{J as h}from"./p-ca19fd2e.js";import{c as m}from"./p-0ef50c81.js";import"./p-8b3842ce.js";import"./p-0e180654.js";import"./p-5d1d2fd7.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-87f8c596.js";import"./p-dd535097.js";const n=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.businessId=void 0,this.authToken=void 0,this.errorMessage=void 0,this.getBusiness=void 0}componentWillLoad(){m(),this.analytics=new h(this),this.initializeGetBusiness()}disconnectedCallback(){this.analytics.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:d.ERROR});this.getBusiness=p({id:this.businessId,authToken:this.authToken,service:new e})}render(){return t(o,null,this.errorMessage?r(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness}))}};export{n as justifi_business_details}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as s}from"./p-2783e363.js";import{f as i}from"./p-2ca5b5e4.js";import{t as a,B as r}from"./p-8b3842ce.js";import{B as d}from"./p-66cdd475.js";import{S as o}from"./p-bfe9748b.js";import{S as c}from"./p-fe0399a1.js";import{a as n,C as h}from"./p-9dd8685c.js";import{g as p,a as f}from"./p-87f8c596.js";import{D as l}from"./p-9ffed802.js";import{D as u}from"./p-667ebd79.js";import{c as b}from"./p-0ef50c81.js";import{J as y}from"./p-ca19fd2e.js";import"./p-0e180654.js";import"./p-daf0303f.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-abdbcd8e.js";import"./p-e0befd51.js";import"./p-61f0a2ce.js";import"./p-dd535097.js";const v=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=(()=>{})})=>{var o;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:p(d.error),code:f(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR})}a(d)}catch(e){const t=f(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},m=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.submitEvent=t(this,"submit-event",7),this.dispute=void 0,this.authToken=void 0,this.isLoading=void 0}acceptDispute(){v({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}render(){var e,t,n,h,p,f,l;return s(o,{key:"77119b1227200909f4742e24df0a45e1f631c65c"},this.isLoading&&s("div",{key:"f0766ff057fb2f4b75b34c7d4a386bde43e49652",style:{marginBottom:"8px"}},s(c,{key:"d7268194dea5ac2a3b87aea8e17573b4768e308f",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(c,{key:"f8863e45a917f56be302ca1b0b3d472119f6465c",height:"18px",styles:{marginBottom:"8px"}}),s(c,{key:"c7b8c9c89d9488eea3be8ea0b4536f98a8151487",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"875fe7def317ce1c4547e04e83baf2b232209058",part:a},s("h1",{key:"09646afc2aac3bf4ef9737bc12442660bbafb2dd",class:"h4",part:r},"This payment is disputed"),s("p",{key:"14224cffb16726eaa589118be954e0f844ffaee8"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"415028b91872a2391796872fdffdbee837a2a511",class:"h5"},"Dispute details"),s("div",{key:"c2b8c6be3132f98eb8c686ab88a5a6a68f92a60e",class:"d-table gap-2"},s("div",{key:"d11bd8b3bc680183e8bee40281cc2c294aedbd5a",class:"d-table-row gap-2"},s("span",{key:"d77796c0d2764329c3b482ae49ceb8b4cac03d37",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"716d8af2a250c3237af6e23b43bf50e032e9f203",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(t=this.dispute)||void 0===t?void 0:t.amount))),s("div",{key:"daba4379197533d2a4b246e81139d81cd15761c6",class:"d-table-row gap-2"},s("span",{key:"a039fbf47aff16445e3411c33a7b53716c42866d",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"19087aba5c516d0c71e9f84e8b3323a044ae532a",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(n=this.dispute)||void 0===n?void 0:n.reason)),s("div",{key:"68ef78b15627df3b22bcde4b90f7c216466e7468",class:"d-table-row gap-2"},s("span",{key:"9463c281d76b5e201a55c2993253fc22d04168dc",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Dispute ID"),s("span",{key:"5cffed27038f5571f37377c5023a88c8b7773a59",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(h=this.dispute)||void 0===h?void 0:h.id))),s("div",{key:"e856d924edac10116781425f6d7c4c8c6b26ced2",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"6d5278a91f79c2fe8fbdd9e391b109a6491b13b6",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"242b9076b482aae731ab6bedc1592a1a826e24c5",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"f3711546ce5bf8b6a4a8689f5db3fdbf58f45bf4"},s("h1",{key:"06e39be43cfacf667919adbd2f4f8c596702c340",class:"h4"},"This payment is disputed and under review"),s("p",{key:"b3bfef2d40e197f8dc9df6f71d9f13017a4b923d"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(f=this.dispute)||void 0===f?void 0:f.won)&&s("div",{key:"580144b1439d6e017726b9731b7bb15e71900092"},s("h1",{key:"42d74d215d23409672449af86e25c945aac33ea1",class:"h4"},"This payment was disputed"),s("p",{key:"4c337e89a32f62c8f03a53eb84737785f4b0bdb4"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(l=this.dispute)||void 0===l?void 0:l.lost)&&s("div",{key:"66c0f7bbada42053683dd25776a7c0abdb708315"},s("h1",{key:"273f2d82dbe73a15da3186946763579be2801aa4",class:"h4"},"This payment was disputed"),s("p",{key:"22172d1c6833eb5407c19dd31b85db805d07d177"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)},this.updateDisputeResponse=void 0,this.submitDisputeResponse=void 0,this.createDisputeEvidence=void 0,this.errorMessage=null,this.authToken=void 0,this.disputeId=void 0,this.disputeResponse=void 0,this.apiOrigin="https://wc-proxy.justifi.ai"}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=(()=>{})})=>{var o;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:p(d.error),code:f(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=f(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=(()=>{})})=>{var o;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:p(d.error),code:f(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=f(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=v({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(o,{key:"4c0cd0b8a082d9f2f4428868d88cbb9bde2a3a5d"},s("justifi-dispute-response-core",{key:"58bbf7f5b2ce8efea0467efddfeffe3c752a3402","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},j=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.submitEvent=t(this,"submit-event",7),this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))},this.updateDisputeResponse=void 0,this.submitDisputeResponse=void 0,this.createDisputeEvidence=void 0,this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.currentStepComponentRef=void 0}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"452cfcf106f40c27f34df05ae2923c0909de9245",class:"row gy-3"},s("div",{key:"d9b608a8d880310b96e98cd4a00cabfcca77dc79",class:"col-12"},s("h1",{key:"050aef1fa636d09880edc7d738d56eab2cf62e52",class:"h4",part:r},"Counter dispute")),s("div",{key:"4e6094f9240d4db3d4bc03c59754ab3d04fed5bc",class:"col-12"},this.currentStepComponent),s("div",{key:"9c1739bc4ed1a9104fd04531a11e02cbbb4f11cc",class:"col-12"},s("div",{key:"d37cda5a7689d8bf9263283eb24e1074ee3d97a0",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{m as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,h as e,H as s}from"./p-2783e363.js";import{E as f}from"./p-56f6ce4c.js";import{Z as c,af as i}from"./p-8b3842ce.js";const b=class{constructor(e){a(this,e),this.paging=f,this.params={}}render(){return e(s,{key:"7a4cfcfa7d9329e8d4026cd6bdc15c3251f004d6"},e("nav",{key:"203b5ffeb3f4a167aa9448ac6075fd7a1ac15ef7","aria-label":"Table pagination",class:"d-flex justify-content-end gap-3"},e("ul",{key:"e302f939560131ade67b0f9d4135fa04ff485d09",class:"pagination m-0"},e("li",{key:"b3e2ba7b66e5de597a3233ee036d4d1ef2930689",class:"page-item "+(this.paging.has_previous?"":" disabled")},e("a",{key:"1f358b34fbaa7f140c1ee15ef6ee8d6f9b87407f",href:"#",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickPrevious(this.paging.start_cursor)},part:this.paging.has_previous?c:i},e("span",{key:"daffe0c0ffb7265cd769bbf27fef42c37e86300d",class:"me-1"},"«"),e("span",{key:"2c42b74352aa7a79ac6bc231cdd828b7a62f5083"},"Previous"))),e("li",{key:"2707ab481b124351479dbc5e4b270a60f8e0cb9e",class:"page-item "+(this.paging.has_next?"":" disabled")},e("a",{key:"f97ea7a812ba9b0066cd5e75ab45bff152708b63",href:"#",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickNext(this.paging.end_cursor)},part:this.paging.has_next?c:i},e("span",{key:"a850314028161b5a04618ffc5515603ea7203a0a"},"Next"),e("span",{key:"643097228302500411ca0c4a932d8067074a15d2",class:"ms-1"},"»"))))))}};export{b as pagination_menu}
|