@justifi/webcomponents 5.7.4-rc-01 → 5.7.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/{Checkout-BsYZoJ0a.js → Checkout-TZnRz3-3.js} +3 -1
- package/dist/cjs/{ComponentError-CEv9ltwy.js → ComponentError-C4MdBBMe.js} +0 -2
- package/dist/cjs/{Refund-BFE-2OxN.js → Refund-DN-yzFgy.js} +17 -8
- package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +5 -5
- package/dist/cjs/{bank-account-form_7.cjs.entry.js → bank-account-form_9.cjs.entry.js} +190 -19
- package/dist/cjs/{business-additional-questions-schema-C1Ot5vrv.js → business-additional-questions-schema-e3GCIHk5.js} +6 -6
- package/dist/cjs/{business-identity-schema-hk4UVEna.js → business-identity-schema-Diqj_WVQ.js} +10 -10
- package/dist/cjs/{business.service-BjlK8M6t.js → business.service-U2eLTrq9.js} +3 -3
- package/dist/cjs/{Analytics-CLEDjTfr.js → check-pkg-version-DuL7lRe2.js} +23 -23
- package/dist/cjs/{checkout.service-Bln6jCAj.js → checkout.service-DtMzeEwi.js} +3 -3
- package/dist/cjs/checkouts-list-core.cjs.entry.js +4 -4
- package/dist/cjs/custom-popper_4.cjs.entry.js +6 -6
- package/dist/cjs/{dispute.service-Bo84yh33.js → dispute.service-CGVAs-5M.js} +3 -3
- package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/form-control-date.cjs.entry.js +2 -2
- package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
- package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
- package/dist/cjs/form-control-number.cjs.entry.js +2 -2
- package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
- package/dist/cjs/{get-business-BiEc-jdH.js → get-business-BJrtsomz.js} +2 -2
- package/dist/cjs/{get-payment-details-OrAuseBX.js → get-payment-details-CdVEiscr.js} +4 -4
- package/dist/cjs/{get-payout-csv-CdNRRH0t.js → get-payout-csv-CXEQkjDm.js} +2 -2
- package/dist/cjs/{get-subaccounts-CoC0XYqj.js → get-subaccounts-fBIoOr7m.js} +4 -4
- package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
- package/dist/cjs/iframe-input-styles-state-DX5gGQQF.js +26 -0
- package/dist/cjs/{hidden-input_2.cjs.entry.js → iframe-input.cjs.entry.js} +14 -111
- package/dist/cjs/{form-CWW8IM-X.js → index.esm-CVuJLXJZ.js} +10022 -10022
- package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +21 -20
- package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +12 -12
- package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +46 -49
- package/dist/cjs/justifi-business-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-business-form.cjs.entry.js +16 -16
- package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
- package/dist/cjs/justifi-checkout.cjs.entry.js +67 -23
- package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
- package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +12 -12
- package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -8
- package/dist/cjs/justifi-order-terminals.cjs.entry.js +12 -12
- package/dist/cjs/justifi-owner-form_3.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
- package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
- package/dist/cjs/justifi-refund-payment.cjs.entry.js +17 -17
- package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +18 -16
- package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
- package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -10
- package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
- package/dist/cjs/justifi-terminals-list.cjs.entry.js +11 -11
- package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +8 -15
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-D89BDRKu.js → package-o4g7MDiy.js} +1 -1
- package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
- package/dist/cjs/{payment-provisioning-actions-SNMCdsyF.js → payment-provisioning-actions-BkWSDJQQ.js} +2 -2
- package/dist/cjs/{payment.service-C0t9DRcu.js → payment.service-DmpOOPu1.js} +3 -3
- package/dist/cjs/payments-list-core.cjs.entry.js +4 -4
- package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
- package/dist/cjs/{payout.service-DGeLS8BN.js → payout.service-BfO6L79f.js} +3 -3
- package/dist/cjs/payouts-list-core.cjs.entry.js +4 -4
- package/dist/cjs/{schema-validations-CllkToCZ.js → schema-validations-BSeMee-o.js} +31 -31
- package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
- package/dist/cjs/terminal-orders-list-core.cjs.entry.js +5 -5
- package/dist/cjs/{terminal-orders-table-Dw6uHG1R.js → terminal-orders-table-DMjFmuxk.js} +3 -3
- package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
- package/dist/cjs/{terminal.service-Ck6PIO3G.js → terminal.service-h-LWztbo.js} +3 -3
- package/dist/cjs/terminals-list-core.cjs.entry.js +4 -4
- package/dist/cjs/{utils-IGCnjtqc.js → utils-l0veqT9y.js} +1 -1
- package/dist/cjs/webcomponents.cjs.js +1 -1
- package/dist/collection/api/Checkout.js +3 -1
- package/dist/collection/api/ComponentError.js +0 -2
- package/dist/collection/api/DisputeEvidenceDocument.js +4 -7
- package/dist/collection/api/Document.js +17 -8
- package/dist/collection/collection-manifest.json +1 -8
- package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +2 -1
- package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
- package/dist/collection/components/checkout/billing-form/billing-form.js +1 -1
- package/dist/collection/components/checkout/card-form/card-form.js +2 -2
- package/dist/collection/components/checkout/checkout.js +2 -11
- package/dist/collection/components/checkout/payment-method-options.js +33 -3
- package/dist/collection/components/checkout/sezzle-payment-method.js +240 -0
- package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
- package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-management.js +1 -1
- package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
- package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
- package/dist/collection/components/filters/table-filters-menu.js +1 -1
- package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
- package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +12 -10
- package/dist/collection/components/order-terminals/order-terminals.js +1 -1
- package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
- package/dist/collection/components/payment-details/payment-details-core.js +8 -8
- package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
- 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 +3 -3
- package/dist/collection/components/payout-transactions-list/payout-transactions-list.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/terminal-orders-list/terminal-orders-list-core.js +1 -1
- package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
- package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
- 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 +3 -10
- 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-select.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 +5 -10
- package/dist/docs.json +255 -786
- package/dist/esm/{Api-C3T8XYbb.js → Api-69eVlLFc.js} +1 -1
- package/dist/esm/{Checkout-CV6qgU0r.js → Checkout-B9LrTq63.js} +4 -2
- package/dist/esm/{ComponentError-BhrFjjAs.js → ComponentError-SdntD1xf.js} +0 -2
- package/dist/esm/{Payment-BEvE6jAC.js → Payment-BGiKmQYR.js} +1 -1
- package/dist/esm/{Refund-BKe90wSq.js → Refund-f_BCgcDa.js} +18 -9
- package/dist/esm/additional-questions-details_5.entry.js +3 -3
- package/dist/esm/{badge-DHaTxWwu.js → badge-VWumlkvS.js} +1 -1
- package/dist/esm/bank-account-document-form-inputs_4.entry.js +10 -10
- package/dist/esm/{bank-account-form_7.entry.js → bank-account-form_9.entry.js} +186 -17
- package/dist/esm/{business-additional-questions-schema-D00MNMDJ.js → business-additional-questions-schema-uQlQ8fXQ.js} +2 -2
- package/dist/esm/business-details-core.entry.js +3 -3
- package/dist/esm/{business-identity-schema-pxSsAdgG.js → business-identity-schema-BsrgqgDl.js} +2 -2
- package/dist/esm/{business.service-BMABw2vX.js → business.service-BviUFOjP.js} +5 -5
- package/dist/esm/{button-5hc5r__m.js → button-BfT7Ex96.js} +1 -1
- package/dist/esm/{Analytics-B3nThWuq.js → check-pkg-version-phOwcSQM.js} +25 -25
- package/dist/esm/{checkout.service-jmweME4d.js → checkout.service-B8W_W-lc.js} +5 -5
- package/dist/esm/checkouts-list-core.entry.js +11 -11
- package/dist/esm/{checkouts-table-BS_UiHaT.js → checkouts-table-zIrBvmQp.js} +3 -3
- package/dist/esm/custom-popper_4.entry.js +8 -8
- package/dist/esm/{dispute.service-DWQ8DPZa.js → dispute.service-1e9677RK.js} +5 -5
- 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-C93L7yFm.js → form-control-error-text-CYWqNNkG.js} +1 -1
- package/dist/esm/form-control-file-v2_2.entry.js +5 -5
- package/dist/esm/{form-control-help-text-p28euWGX.js → form-control-help-text-DMdU5_la.js} +1 -1
- package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
- package/dist/esm/form-control-monetary.entry.js +6 -6
- 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/{get-business-BSRtbTh7.js → get-business-GEPTefIj.js} +2 -2
- package/dist/esm/{get-payment-details-PSdVeuGc.js → get-payment-details-B5-Hzdrg.js} +6 -6
- package/dist/esm/{get-payout-csv-U_pgdPpb.js → get-payout-csv-D7IYYqVL.js} +2 -2
- package/dist/esm/{get-subaccounts-CownROrO.js → get-subaccounts-Cv7zn0lA.js} +7 -7
- package/dist/esm/gross-payment-chart-core.entry.js +5 -5
- package/dist/esm/{header-1-CUc5m0Ge.js → header-1-84nZCcj4.js} +1 -1
- package/dist/esm/{header-3-BXU3iN46.js → header-3-DpBr7qOY.js} +1 -1
- package/dist/esm/iframe-input-styles-state-DqkcQMM1.js +23 -0
- package/dist/esm/{hidden-input_2.entry.js → iframe-input.entry.js} +10 -106
- package/dist/esm/{form-BjGUIqxU.js → index.esm-BCNUj0Dx.js} +10022 -10022
- package/dist/esm/{insurance-state-Br0fBMFI.js → insurance-state-BDLlv3CM.js} +1 -1
- package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +14 -13
- package/dist/esm/justifi-additional-questions-form-step_9.entry.js +12 -12
- package/dist/esm/justifi-additional-statement_8.entry.js +14 -17
- package/dist/esm/justifi-business-details.entry.js +13 -13
- package/dist/esm/justifi-business-form.entry.js +19 -19
- package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
- package/dist/esm/justifi-checkout-core.entry.js +8 -8
- package/dist/esm/justifi-checkout.entry.js +66 -22
- package/dist/esm/justifi-checkouts-list-filters.entry.js +7 -7
- package/dist/esm/justifi-checkouts-list.entry.js +15 -15
- package/dist/esm/justifi-details.entry.js +2 -2
- package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
- package/dist/esm/justifi-dispute-management.entry.js +11 -11
- package/dist/esm/justifi-dispute-notification_3.entry.js +16 -16
- package/dist/esm/justifi-gross-payment-chart.entry.js +11 -11
- package/dist/esm/justifi-order-terminals.entry.js +15 -15
- package/dist/esm/justifi-owner-form_3.entry.js +14 -14
- package/dist/esm/justifi-payment-details.entry.js +13 -13
- package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
- package/dist/esm/justifi-payment-provisioning.entry.js +11 -11
- package/dist/esm/justifi-payment-transactions-list.entry.js +14 -14
- package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payments-list.entry.js +15 -15
- package/dist/esm/justifi-payout-details.entry.js +13 -13
- package/dist/esm/justifi-payout-transactions-list.entry.js +14 -14
- package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
- package/dist/esm/justifi-payouts-list.entry.js +17 -17
- package/dist/esm/justifi-refund-payment.entry.js +15 -15
- package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
- package/dist/esm/justifi-season-interruption-insurance.entry.js +19 -17
- package/dist/esm/justifi-terminal-orders-list-filters.entry.js +8 -8
- package/dist/esm/justifi-terminal-orders-list.entry.js +13 -13
- package/dist/esm/justifi-terminals-list-filters.entry.js +7 -7
- package/dist/esm/justifi-terminals-list.entry.js +15 -15
- package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -18
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-rzqedGq4.js → package-B0XIc_FO.js} +1 -1
- package/dist/esm/pagination-menu.entry.js +1 -1
- package/dist/esm/{parts-_6eQgwfE.js → parts-BrLVc_85.js} +1 -1
- package/dist/esm/payment-details-core.entry.js +14 -14
- package/dist/esm/{payment-provisioning-actions-2qP7AtHj.js → payment-provisioning-actions-BIfyW239.js} +2 -2
- package/dist/esm/{payment.service-u8UGq6gX.js → payment.service-BMbF1Svr.js} +5 -5
- package/dist/esm/payments-list-core.entry.js +12 -12
- package/dist/esm/{payments-status-BMqVM0kB.js → payments-status-_qXPu883.js} +1 -1
- package/dist/esm/{payments-table-BMIALfY5.js → payments-table-CrCdh5OV.js} +3 -3
- package/dist/esm/payout-details-core.entry.js +10 -10
- package/dist/esm/{payout.service-CXW3oJqI.js → payout.service-HKpmn5XB.js} +5 -5
- package/dist/esm/payouts-list-core.entry.js +12 -12
- package/dist/esm/{payouts-status-BGGBJaXG.js → payouts-status-C1XLgtWW.js} +1 -1
- package/dist/esm/{payouts-table-BNPc0Z6X.js → payouts-table-DIqsk6Oa.js} +3 -3
- package/dist/esm/{schema-validations-C7pC-de1.js → schema-validations-DLWfpHyI.js} +2 -2
- package/dist/esm/{skeleton-C0KgFH0Z.js → skeleton-CdD_FIeP.js} +1 -1
- package/dist/esm/{spinner-Dtab-HTx.js → spinner-DIlSUUzM.js} +1 -1
- package/dist/esm/{table-wp341KhD.js → table-DjsimZwr.js} +2 -2
- package/dist/esm/table-filters-menu.entry.js +3 -3
- package/dist/esm/terminal-orders-list-core.entry.js +11 -11
- package/dist/esm/{terminal-orders-table-CzEC1eXm.js → terminal-orders-table-BnXCVH7W.js} +7 -7
- package/dist/esm/terminal-quantity-selector.entry.js +2 -2
- package/dist/esm/{terminal.service-Cw0RbYs3.js → terminal.service-XpfOXoFl.js} +5 -5
- package/dist/esm/terminals-list-core.entry.js +11 -11
- package/dist/esm/{terminals-table-CcKZ_9re.js → terminals-table-CCLlefFA.js} +3 -3
- package/dist/esm/{utils-BGp_IJEa.js → utils-6CI1OiOE.js} +1 -1
- package/dist/esm/{utils-BjLkBMLe.js → utils-DB5fh6Iv.js} +1 -1
- package/dist/esm/{utils-BZvep88z.js → utils-Dccsn9BY.js} +1 -1
- package/dist/esm/webcomponents.js +1 -1
- package/dist/module/Checkout.js +3 -3
- package/dist/module/Refund.js +17 -8
- package/dist/module/additional-statement.js +1 -1
- package/dist/module/bank-account-form2.js +2 -2
- package/dist/module/billing-form.js +3 -3
- package/dist/module/business-address-schema.js +1 -1
- package/dist/module/business-bank-account-form-step-core.js +3 -2
- package/dist/module/business-core-info-schema.js +1 -1
- package/dist/module/business-identity-schema.js +1 -1
- package/dist/module/button.js +1 -1
- package/dist/module/cancellation-policy.js +1 -1
- package/dist/module/card-form2.js +2 -2
- package/dist/module/{Analytics.js → check-pkg-version.js} +21 -21
- package/dist/module/checkout-core.js +38 -32
- package/dist/module/checkouts-list-core2.js +2 -2
- package/dist/module/custom-popper2.js +2 -2
- package/dist/module/customer-details.js +1 -1
- package/dist/module/dispute-management-core.js +1 -1
- package/dist/module/dispute-notification.js +1 -1
- package/dist/module/dispute-response-core.js +1 -1
- package/dist/module/dispute-response.js +2 -2
- package/dist/module/duplicate-charge.js +1 -1
- package/dist/module/electronic-evidence.js +1 -1
- package/dist/module/file-input-handler.js +4 -7
- 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-select2.js +2 -2
- package/dist/module/form-control-text2.js +2 -2
- package/dist/module/form-control-textarea2.js +2 -2
- package/dist/module/gross-payment-chart-core2.js +1 -1
- package/dist/module/hidden-input2.js +1 -1
- package/dist/module/iframe-input2.js +5 -5
- package/dist/module/justifi-business-details.js +1 -1
- package/dist/module/justifi-business-form.js +1 -1
- package/dist/module/justifi-checkout.js +99 -48
- package/dist/module/justifi-checkouts-list-filters.js +2 -2
- package/dist/module/justifi-checkouts-list.js +2 -2
- package/dist/module/justifi-dispute-management.js +2 -2
- package/dist/module/justifi-gross-payment-chart.js +1 -1
- package/dist/module/justifi-order-terminals.js +3 -3
- package/dist/module/justifi-payment-details.js +1 -1
- package/dist/module/justifi-payment-provisioning.js +1 -1
- package/dist/module/justifi-payment-transactions-list.js +3 -3
- package/dist/module/justifi-payments-list-filters.js +3 -3
- package/dist/module/justifi-payments-list.js +2 -2
- package/dist/module/justifi-payout-details.js +1 -1
- package/dist/module/justifi-payout-transactions-list.js +3 -3
- package/dist/module/justifi-payouts-list-filters.js +3 -3
- package/dist/module/justifi-payouts-list.js +2 -2
- package/dist/module/justifi-refund-payment.js +1 -1
- package/dist/module/justifi-season-interruption-insurance.js +11 -9
- package/dist/module/justifi-sezzle-payment-method.js +1 -108
- package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
- package/dist/module/justifi-terminal-orders-list.js +2 -2
- package/dist/module/justifi-terminals-list-filters.js +2 -2
- package/dist/module/justifi-terminals-list.js +2 -2
- package/dist/module/justifi-tokenize-payment-method.js +40 -41
- package/dist/module/package.js +3 -3
- package/dist/module/parts.js +1 -1
- package/dist/module/payment-details-core2.js +8 -8
- package/dist/module/payment-method-options.js +51 -34
- package/dist/module/payments-list-core2.js +2 -2
- package/dist/module/payout-details-core2.js +3 -3
- package/dist/module/payouts-list-core2.js +2 -2
- package/dist/module/product-or-service.js +1 -1
- package/dist/module/refund-policy.js +1 -1
- package/dist/module/saved-payment-method.js +22 -2
- package/dist/module/schema-validations.js +1 -1
- package/dist/module/sezzle-payment-method.js +104 -0
- package/dist/module/shipping-details.js +1 -1
- package/dist/module/table-filters-menu2.js +2 -2
- package/dist/module/terminal-orders-list-core2.js +2 -2
- package/dist/module/terminal-quantity-selector2.js +1 -1
- package/dist/module/terminals-list-core2.js +2 -2
- package/dist/types/api/Checkout.d.ts +13 -14
- package/dist/types/api/ComponentError.d.ts +1 -3
- package/dist/types/api/DisputeEvidenceDocument.d.ts +1 -1
- package/dist/types/api/Document.d.ts +2 -2
- package/dist/types/components/checkout/checkout.d.ts +0 -1
- package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
- package/dist/types/components/{modular-checkout-parts → checkout}/sezzle-payment-method.d.ts +8 -2
- package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
- package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
- package/dist/types/components.d.ts +22 -149
- package/dist/types/ui-components/form/iframe-input.d.ts +1 -2
- package/dist/webcomponents/{p-a76e0f42.entry.js → p-0da7c7e5.entry.js} +1 -1
- package/dist/webcomponents/p-111535c9.entry.js +1 -0
- package/dist/webcomponents/{p-41dffb12.entry.js → p-18ddc883.entry.js} +1 -1
- package/dist/webcomponents/p-1ANZF89K.js +1 -0
- package/dist/webcomponents/p-1CYqfEKd.js +1 -0
- package/dist/webcomponents/{p-8bb3513f.entry.js → p-249d9a7f.entry.js} +1 -1
- package/dist/webcomponents/p-2b5a7776.entry.js +1 -0
- package/dist/webcomponents/{p-0fc4a0df.entry.js → p-30415c7f.entry.js} +1 -1
- package/dist/webcomponents/{p-7c6f2fad.entry.js → p-312b81a6.entry.js} +1 -1
- package/dist/webcomponents/{p-0ed08f7b.entry.js → p-36c99fce.entry.js} +1 -1
- package/dist/webcomponents/{p-9c6479a4.entry.js → p-39d3df56.entry.js} +1 -1
- package/dist/webcomponents/{p-bac895b4.entry.js → p-3bf842ea.entry.js} +1 -1
- package/dist/webcomponents/p-3dc2d47c.entry.js +1 -0
- package/dist/webcomponents/p-40bbb25c.entry.js +1 -0
- package/dist/webcomponents/{p-1a0f21d1.entry.js → p-40fb2439.entry.js} +1 -1
- package/dist/webcomponents/{p-acdf6a5f.entry.js → p-412805ce.entry.js} +1 -1
- package/dist/webcomponents/{p-783b70b5.entry.js → p-43c3a433.entry.js} +1 -1
- package/dist/webcomponents/{p-feea4bfd.entry.js → p-4ac8d9d4.entry.js} +4 -4
- package/dist/webcomponents/{p-1301a9ae.entry.js → p-5436c41f.entry.js} +1 -1
- package/dist/webcomponents/p-5576322e.entry.js +1 -0
- package/dist/webcomponents/p-59db70c0.entry.js +1 -0
- package/dist/webcomponents/p-600da1ee.entry.js +1 -0
- package/dist/webcomponents/{p-ef520bb8.entry.js → p-6daf7df0.entry.js} +1 -1
- package/dist/webcomponents/{p-9fe2281c.entry.js → p-7d324f45.entry.js} +1 -1
- package/dist/webcomponents/p-867a4a55.entry.js +1 -0
- package/dist/webcomponents/{p-6d5833b4.entry.js → p-878f26f7.entry.js} +1 -1
- package/dist/webcomponents/p-8c0162b3.entry.js +1 -0
- package/dist/webcomponents/p-8e201c63.entry.js +1 -0
- package/dist/webcomponents/p-91b5da99.entry.js +1 -0
- package/dist/webcomponents/{p-17727dd3.entry.js → p-95d99ffc.entry.js} +1 -1
- package/dist/webcomponents/p-989f51bc.entry.js +1 -0
- package/dist/webcomponents/{p-83037fd2.entry.js → p-9f9002c1.entry.js} +1 -1
- package/dist/webcomponents/p-B0XIc_FO.js +1 -0
- package/dist/webcomponents/{p-Dqx8L05_.js → p-B3AHoKpE.js} +1 -1
- package/dist/webcomponents/{p-CAdO_ZNx.js → p-BLWOT0S7.js} +1 -1
- package/dist/webcomponents/{p-Cf4TMP3p.js → p-BOQVwCyQ.js} +1 -1
- package/dist/webcomponents/{p-BaoXNxnc.js → p-BSl0X3r8.js} +1 -1
- package/dist/webcomponents/{p-BxfUcCXo.js → p-BTS3E50C.js} +1 -1
- package/dist/webcomponents/p-BdTK0wi9.js +1 -0
- package/dist/webcomponents/{p-BmgpToYI.js → p-Bgdp97Tl.js} +1 -1
- package/dist/webcomponents/{p-DhyQbCOq.js → p-BkDN6yJN.js} +1 -1
- package/dist/webcomponents/{p-9REosSLu.js → p-BnE7qgLh.js} +1 -1
- package/dist/webcomponents/{p-Rx3SLAbu.js → p-Bnrk5pzA.js} +1 -1
- package/dist/webcomponents/p-BqoTJ9CO.js +1 -0
- package/dist/webcomponents/{p-_6eQgwfE.js → p-BrLVc_85.js} +1 -1
- package/dist/webcomponents/p-C5RuuShs.js +1 -0
- package/dist/webcomponents/p-C9oyC18r.js +1 -0
- package/dist/webcomponents/{p-C39xg5_f.js → p-CNSeavdR.js} +1 -1
- package/dist/webcomponents/p-CSO7ljYx.js +1 -0
- package/dist/webcomponents/{p-XTXkuHkQ.js → p-CYTPbCLN.js} +1 -1
- package/dist/webcomponents/p-CgEahdBL.js +1 -0
- package/dist/webcomponents/p-Ckf8pUs-.js +1 -0
- package/dist/webcomponents/{p-MNmf3fQL.js → p-Clv1feia.js} +1 -1
- package/dist/webcomponents/p-Cm9gh1Sz.js +1 -0
- package/dist/webcomponents/p-CraCsD1A.js +1 -0
- package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
- package/dist/webcomponents/{p-CdkOB2ri.js → p-Cw3BMq7G.js} +1 -1
- package/dist/webcomponents/{p-DHvfrLVU.js → p-D9lioyBA.js} +1 -1
- package/dist/webcomponents/p-DVnVdicA.js +1 -0
- package/dist/webcomponents/p-DgIkDBGX.js +1 -0
- package/dist/webcomponents/p-DniQ6yo6.js +1 -0
- package/dist/webcomponents/p-DpbCEDZ3.js +1 -0
- package/dist/webcomponents/p-Ds11n2AD.js +1 -0
- package/dist/webcomponents/p-DvuraFxP.js +1 -0
- package/dist/webcomponents/{p-D7js9xfx.js → p-DzFysjCc.js} +1 -1
- package/dist/webcomponents/{p-C8Zhkgm5.js → p-JOSiCHl7.js} +1 -1
- package/dist/webcomponents/{p-CFpYbRwn.js → p-KoNvNGKV.js} +1 -1
- package/dist/webcomponents/p-SdntD1xf.js +1 -0
- package/dist/webcomponents/p-Zuu7wsNB.js +1 -0
- package/dist/webcomponents/p-a151a347.entry.js +1 -0
- package/dist/webcomponents/{p-02e39fe2.entry.js → p-a23dfac9.entry.js} +1 -1
- package/dist/webcomponents/{p-cdc71a77.entry.js → p-a38b3d9a.entry.js} +1 -1
- package/dist/webcomponents/p-a48f8ec2.entry.js +1 -0
- package/dist/webcomponents/{p-042c6784.entry.js → p-a7e9a1d1.entry.js} +1 -1
- package/dist/webcomponents/{p-9b1992ef.entry.js → p-a87c50de.entry.js} +1 -1
- package/dist/webcomponents/{p-de969ec7.entry.js → p-aa72125e.entry.js} +1 -1
- package/dist/webcomponents/p-b648fca4.entry.js +1 -0
- package/dist/webcomponents/p-b92737c4.entry.js +1 -0
- package/dist/webcomponents/p-bbf264c6.entry.js +1 -0
- package/dist/webcomponents/{p-60abac93.entry.js → p-bdbd0c8e.entry.js} +1 -1
- package/dist/webcomponents/p-be89720e.entry.js +1 -0
- package/dist/webcomponents/{p-03ed0703.entry.js → p-c18a5ebf.entry.js} +1 -1
- package/dist/webcomponents/p-c87WhXVB.js +1 -0
- package/dist/webcomponents/p-d3a2fa7e.entry.js +1 -0
- package/dist/webcomponents/p-d6tXI5Iw.js +1 -0
- package/dist/webcomponents/{p-6286917e.entry.js → p-d768d814.entry.js} +1 -1
- package/dist/webcomponents/p-d7883a41.entry.js +1 -0
- package/dist/webcomponents/{p-4ed62ecf.entry.js → p-d9a9279b.entry.js} +1 -1
- package/dist/webcomponents/p-d9ae1fea.entry.js +1 -0
- package/dist/webcomponents/p-da872abc.entry.js +1 -0
- package/dist/webcomponents/p-db86c150.entry.js +1 -0
- package/dist/webcomponents/{p-d5ada96f.entry.js → p-dbcc1a8e.entry.js} +1 -1
- package/dist/webcomponents/p-e0345315.entry.js +1 -0
- package/dist/webcomponents/{p-6f6d7a87.entry.js → p-e21ba107.entry.js} +1 -1
- package/dist/webcomponents/p-e2867ef6.entry.js +1 -0
- package/dist/webcomponents/{p-46c0aa2e.entry.js → p-e4fa3f41.entry.js} +1 -1
- package/dist/webcomponents/{p-c4d2ff85.entry.js → p-edfcb58d.entry.js} +1 -1
- package/dist/webcomponents/p-f37bb6d6.entry.js +1 -0
- package/dist/webcomponents/p-f5eeb11d.entry.js +1 -0
- package/dist/webcomponents/p-f6d5f392.entry.js +1 -0
- package/dist/webcomponents/p-f6debdb8.entry.js +1 -0
- package/dist/webcomponents/{p-6ff96203.entry.js → p-fcb85a8e.entry.js} +1 -1
- package/dist/webcomponents/p-hBHbB3i6.js +1 -0
- package/dist/webcomponents/{p-Smvec9tp.js → p-pOQo1ck9.js} +1 -1
- package/dist/webcomponents/{p-DddGO-XR.js → p-vTsHmSQQ.js} +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/billing-form-schema-X1bkxteI.js +0 -26
- package/dist/cjs/checkout-actions-CRbQgLn0.js +0 -61
- package/dist/cjs/checkout.store-LEOetpmH.js +0 -29
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +0 -85
- package/dist/cjs/justifi-billing-information-form.cjs.entry.js +0 -50
- package/dist/cjs/justifi-card-form.cjs.entry.js +0 -93
- package/dist/cjs/justifi-checkout-summary.cjs.entry.js +0 -21
- package/dist/cjs/justifi-modular-checkout.cjs.entry.js +0 -204
- package/dist/cjs/justifi-postal-code-form.cjs.entry.js +0 -49
- package/dist/cjs/justifi-saved-payment-methods.cjs.entry.js +0 -31
- package/dist/cjs/justifi-sezzle-payment-method.cjs.entry.js +0 -80
- package/dist/cjs/payment-method-option-utils-imuSE7KV.js +0 -25
- package/dist/collection/api/BillingInformation.js +0 -1
- package/dist/collection/api/PaymentMethod.js +0 -1
- package/dist/collection/components/modular-checkout/modular-checkout.js +0 -345
- package/dist/collection/components/modular-checkout-parts/bank-account-skeleton.js +0 -10
- package/dist/collection/components/modular-checkout-parts/bank-account.js +0 -98
- package/dist/collection/components/modular-checkout-parts/billing-form-schema.js +0 -21
- package/dist/collection/components/modular-checkout-parts/billing-form.js +0 -116
- package/dist/collection/components/modular-checkout-parts/card-form-skeleton.js +0 -10
- package/dist/collection/components/modular-checkout-parts/card-form.js +0 -102
- package/dist/collection/components/modular-checkout-parts/postal-code-form.js +0 -114
- package/dist/collection/components/modular-checkout-parts/saved-payment-methods.js +0 -23
- package/dist/collection/components/modular-checkout-parts/sezzle-payment-method.js +0 -127
- package/dist/collection/components/modular-checkout-parts/summary.js +0 -12
- package/dist/collection/store/checkout.store.js +0 -25
- package/dist/esm/billing-form-schema-BQf2Ydp0.js +0 -24
- package/dist/esm/checkout-actions-UQ6g1s7I.js +0 -58
- package/dist/esm/checkout.store-Ffl2B_i4.js +0 -27
- package/dist/esm/justifi-bank-account-form.entry.js +0 -83
- package/dist/esm/justifi-billing-information-form.entry.js +0 -48
- package/dist/esm/justifi-card-form.entry.js +0 -91
- package/dist/esm/justifi-checkout-summary.entry.js +0 -19
- package/dist/esm/justifi-modular-checkout.entry.js +0 -202
- package/dist/esm/justifi-postal-code-form.entry.js +0 -47
- package/dist/esm/justifi-saved-payment-methods.entry.js +0 -29
- package/dist/esm/justifi-sezzle-payment-method.entry.js +0 -78
- package/dist/esm/payment-method-option-utils-8n_ALxec.js +0 -23
- package/dist/module/billing-form-schema.js +0 -24
- package/dist/module/checkout-actions.js +0 -58
- package/dist/module/checkout.store.js +0 -27
- package/dist/module/justifi-bank-account-form.d.ts +0 -11
- package/dist/module/justifi-bank-account-form.js +0 -105
- package/dist/module/justifi-billing-information-form.d.ts +0 -11
- package/dist/module/justifi-billing-information-form.js +0 -94
- package/dist/module/justifi-card-form.d.ts +0 -11
- package/dist/module/justifi-card-form.js +0 -113
- package/dist/module/justifi-checkout-summary.d.ts +0 -11
- package/dist/module/justifi-checkout-summary.js +0 -37
- package/dist/module/justifi-modular-checkout.d.ts +0 -11
- package/dist/module/justifi-modular-checkout.js +0 -218
- package/dist/module/justifi-postal-code-form.d.ts +0 -11
- package/dist/module/justifi-postal-code-form.js +0 -86
- package/dist/module/justifi-saved-payment-methods.d.ts +0 -11
- package/dist/module/justifi-saved-payment-methods.js +0 -58
- package/dist/module/payment-method-option-utils.js +0 -23
- package/dist/types/api/BillingInformation.d.ts +0 -13
- package/dist/types/api/PaymentMethod.d.ts +0 -21
- package/dist/types/components/modular-checkout/modular-checkout.d.ts +0 -31
- package/dist/types/components/modular-checkout-parts/bank-account-skeleton.d.ts +0 -6
- package/dist/types/components/modular-checkout-parts/bank-account.d.ts +0 -18
- package/dist/types/components/modular-checkout-parts/billing-form-schema.d.ts +0 -23
- package/dist/types/components/modular-checkout-parts/billing-form.d.ts +0 -16
- package/dist/types/components/modular-checkout-parts/card-form-skeleton.d.ts +0 -6
- package/dist/types/components/modular-checkout-parts/card-form.d.ts +0 -20
- package/dist/types/components/modular-checkout-parts/postal-code-form.d.ts +0 -16
- package/dist/types/components/modular-checkout-parts/saved-payment-methods.d.ts +0 -5
- package/dist/types/components/modular-checkout-parts/summary.d.ts +0 -3
- package/dist/types/store/checkout.store.d.ts +0 -19
- package/dist/webcomponents/p-05ab99e7.entry.js +0 -1
- package/dist/webcomponents/p-05d92d45.entry.js +0 -1
- package/dist/webcomponents/p-0977a99a.entry.js +0 -1
- package/dist/webcomponents/p-0a7c3741.entry.js +0 -1
- package/dist/webcomponents/p-0d8ebb69.entry.js +0 -1
- package/dist/webcomponents/p-0lkrqFgg.js +0 -1
- package/dist/webcomponents/p-0wMiAwXe.js +0 -1
- package/dist/webcomponents/p-15db3b15.entry.js +0 -1
- package/dist/webcomponents/p-31a9d45e.entry.js +0 -1
- package/dist/webcomponents/p-33bf5d85.entry.js +0 -1
- package/dist/webcomponents/p-4126de9e.entry.js +0 -1
- package/dist/webcomponents/p-4e38dfac.entry.js +0 -1
- package/dist/webcomponents/p-5f33350c.entry.js +0 -1
- package/dist/webcomponents/p-631bbd5a.entry.js +0 -1
- package/dist/webcomponents/p-63e5e6f6.entry.js +0 -1
- package/dist/webcomponents/p-64f047ea.entry.js +0 -1
- package/dist/webcomponents/p-716dc79c.entry.js +0 -1
- package/dist/webcomponents/p-738ee098.entry.js +0 -1
- package/dist/webcomponents/p-7c466cc9.entry.js +0 -1
- package/dist/webcomponents/p-7e484d46.entry.js +0 -1
- package/dist/webcomponents/p-8ba23f7f.entry.js +0 -1
- package/dist/webcomponents/p-8fefebd7.entry.js +0 -1
- package/dist/webcomponents/p-93a843db.entry.js +0 -1
- package/dist/webcomponents/p-9ba825c5.entry.js +0 -1
- package/dist/webcomponents/p-BByypogb.js +0 -1
- package/dist/webcomponents/p-BI7GlCtv.js +0 -1
- package/dist/webcomponents/p-BJatoeR1.js +0 -1
- package/dist/webcomponents/p-BKatPL5G.js +0 -1
- package/dist/webcomponents/p-BXeHgiPz.js +0 -1
- package/dist/webcomponents/p-BgiXKaf2.js +0 -1
- package/dist/webcomponents/p-BhrFjjAs.js +0 -1
- package/dist/webcomponents/p-BnvoOeKL.js +0 -1
- package/dist/webcomponents/p-Bond4qGX.js +0 -1
- package/dist/webcomponents/p-BooprPq0.js +0 -1
- package/dist/webcomponents/p-CCPoezRw.js +0 -1
- package/dist/webcomponents/p-D5ny0x8_.js +0 -1
- package/dist/webcomponents/p-D7uH6T8P.js +0 -1
- package/dist/webcomponents/p-DKClunJd.js +0 -1
- package/dist/webcomponents/p-DLopwJ61.js +0 -1
- package/dist/webcomponents/p-DRKOMqbX.js +0 -1
- package/dist/webcomponents/p-DXJXAroG.js +0 -1
- package/dist/webcomponents/p-DyvT8iXz.js +0 -1
- package/dist/webcomponents/p-NqdaxjDT.js +0 -1
- package/dist/webcomponents/p-bc05e051.entry.js +0 -1
- package/dist/webcomponents/p-c102dea5.entry.js +0 -1
- package/dist/webcomponents/p-cb84a2e6.entry.js +0 -1
- package/dist/webcomponents/p-ce242f4c.entry.js +0 -1
- package/dist/webcomponents/p-d0d83153.entry.js +0 -1
- package/dist/webcomponents/p-d81f30f6.entry.js +0 -1
- package/dist/webcomponents/p-d90e981c.entry.js +0 -1
- package/dist/webcomponents/p-da961813.entry.js +0 -1
- package/dist/webcomponents/p-dadd593a.entry.js +0 -1
- package/dist/webcomponents/p-e3437894.entry.js +0 -1
- package/dist/webcomponents/p-eb6f1a3f.entry.js +0 -1
- package/dist/webcomponents/p-ebc0b06d.entry.js +0 -1
- package/dist/webcomponents/p-ecfab304.entry.js +0 -1
- package/dist/webcomponents/p-efa7aef1.entry.js +0 -1
- package/dist/webcomponents/p-eilUGO3o.js +0 -1
- package/dist/webcomponents/p-fd7c5ac5.entry.js +0 -1
- package/dist/webcomponents/p-hDoH7hHP.js +0 -1
- package/dist/webcomponents/p-jA8bbxkp.js +0 -1
- package/dist/webcomponents/p-pGzabKc7.js +0 -1
- package/dist/webcomponents/p-rzqedGq4.js +0 -1
- package/dist/webcomponents/p-zucQG3cz.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as l,h as i,H as t}from"./p-N3w5zrz2.js";import{c as e,D as s}from"./p-
|
|
1
|
+
import{r as l,h as i,H as t}from"./p-N3w5zrz2.js";import{c as e,D as s}from"./p-Clv1feia.js";import{l as v,s as d,m as o}from"./p-BnE7qgLh.js";import"./p-BrLVc_85.js";import"./p-BFTU3MAI.js";const a=class{constructor(i){l(this,i)}render(){return!this.additionalQuestions||v(this.additionalQuestions)?null:i("div",null,i(s,{sectionTitle:"Additional Questions"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Business Revenue",value:this.additionalQuestions.business_revenue}),i(e,{title:"Business Payment Volume",value:this.additionalQuestions.business_payment_volume})))))}},u=class{constructor(i){l(this,i)}render(){return this.business?i("div",null,i(s,{sectionTitle:"Business Core Info Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Legal Name",value:this.business.legal_name}),i(e,{title:"Doing Business As (DBA)",value:this.business.doing_business_as}),i(e,{title:"Business Classification",value:d(this.business.classification)}),i(e,{title:"Industry",value:this.business.industry})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Tax ID",value:this.business.tax_id}),i(e,{title:"Website URL",value:this.business.website_url}),i(e,{title:"Email Address",value:this.business.email}),i(e,{title:"Phone Number",value:this.business.phone}))))):null}},n=class{constructor(i){l(this,i)}render(){var l,t,d,o,a,u,n;return!this.legalAddress||v(this.legalAddress)?null:i("div",null,i(s,{sectionTitle:"Business Legal Address Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Country",value:null===(l=this.legalAddress)||void 0===l?void 0:l.country}),i(e,{title:"Legal Address",value:null===(t=this.legalAddress)||void 0===t?void 0:t.line1}),i(e,{title:"Address Line 2",value:null===(d=this.legalAddress)||void 0===d?void 0:d.line2})),i("div",{class:"col-12 col-md-6"},i(e,{title:"City",value:null===(o=this.legalAddress)||void 0===o?void 0:o.city}),i(e,{title:"State",value:null===(a=this.legalAddress)||void 0===a?void 0:a.state}),i(e,{title:"Postal Code",value:null===(n=null===(u=this.legalAddress)||void 0===u?void 0:u.postal_code)||void 0===n?void 0:n.toString()})))))}},r=class{constructor(i){l(this,i)}render(){var l;return(null===(l=null==this?void 0:this.owners)||void 0===l?void 0:l.length)?i(t,null,!!(null==this?void 0:this.owners.length)&&this.owners.map((l=>{var t,v,d,a,u;return[i(s,{sectionTitle:`Owner ${null==l?void 0:l.name}'s Details`}),i("div",{class:"d-table gap-2 w-100 mt-3"},i(e,{title:"Name",value:null==l?void 0:l.name}),i(e,{title:"Title",value:null==l?void 0:l.title}),i(e,{title:"Email",value:null==l?void 0:l.email}),i(e,{title:"Phone",value:null==l?void 0:l.phone}),i(e,{title:"Date of Birth",value:o(new Date(Number(null==l?void 0:l.dob_day),Number(null==l?void 0:l.dob_month),Number(null==l?void 0:l.dob_year)))}),i(e,{title:"Identification Number",value:`********${null==l?void 0:l.ssn_last4}`}),i(e,{title:"Line 1",value:null===(t=null==l?void 0:l.address)||void 0===t?void 0:t.line1}),i(e,{title:"Line 2",value:null===(v=null==l?void 0:l.address)||void 0===v?void 0:v.line2}),i(e,{title:"City",value:null===(d=null==l?void 0:l.address)||void 0===d?void 0:d.city}),i(e,{title:"State",value:null===(a=null==l?void 0:l.address)||void 0===a?void 0:a.state}),i(e,{title:"Zip",value:null===(u=null==l?void 0:l.address)||void 0===u?void 0:u.postal_code}))]}))):null}},c=class{constructor(i){l(this,i)}render(){var l,t,d,a,u,n,r,c,h,m,p,g,w,b;return!this.representative||v(this.representative)?null:i("div",null,i(s,{sectionTitle:"Representative Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Name",value:null===(l=this.representative)||void 0===l?void 0:l.name}),i(e,{title:"ID",value:null===(t=this.representative)||void 0===t?void 0:t.id}),i(e,{title:"Address",value:null===(a=null===(d=this.representative)||void 0===d?void 0:d.address)||void 0===a?void 0:a.line1}),i(e,{title:"Created At",value:(null===(u=this.representative)||void 0===u?void 0:u.created_at)&&o(null===(n=this.representative)||void 0===n?void 0:n.created_at)})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Title",value:null===(r=this.representative)||void 0===r?void 0:r.title}),i(e,{title:"Is Owner?",value:null===(c=this.representative)||void 0===c?void 0:c.is_owner.toString()}),i(e,{title:"Date Of Birth",value:this.representative&&o(new Date(Number(null===(h=this.representative)||void 0===h?void 0:h.dob_year),Number(null===(m=this.representative)||void 0===m?void 0:m.dob_month)-1,Number(null===(p=this.representative)||void 0===p?void 0:p.dob_day)))}),i(e,{title:"Email",value:null===(g=this.representative)||void 0===g?void 0:g.email}),i(e,{title:"Phone",value:null===(w=this.representative)||void 0===w?void 0:w.phone}),i(e,{title:"Updated At",value:this.representative&&o(null===(b=this.representative)||void 0===b?void 0:b.updated_at)})))))}};export{a as additional_questions_details,u as core_info_details,n as legal_address_details,r as owner_details,c as representative_details}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,h as t}from"./p-N3w5zrz2.js";import{E as a}from"./p-
|
|
1
|
+
import{r as s,h as t}from"./p-N3w5zrz2.js";import{E as a}from"./p-Clv1feia.js";import"./p-BrLVc_85.js";const e=class{constructor(t){s(this,t)}render(){return t("div",{key:"3c1c4e729711c6676c176a5a04228ec7ebb7acfa"},this.errorMessage?a(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{e as justifi_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as e,c as a}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.js";import{a as s}from"./p-BnE7qgLh.js";import{C as i,a as n}from"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import{p as r}from"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import{c as o}from"./p-KoNvNGKV.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c,J as p}from"./p-Ckf8pUs-.js";import{g as h,a as d}from"./p-C5RuuShs.js";import{P as f}from"./p-BOQVwCyQ.js";import{T as l,l as u,a as m,b,c as y,d as _,e as j,f as g,g as T,h as k,i as w,j as v,k as C}from"./p-CYTPbCLN.js";import{S as D}from"./p-o5iASgog.js";import{T as S}from"./p-CZfYo5-1.js";import{P as I,Q as B}from"./p-BrLVc_85.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-B0XIc_FO.js";import"./p-D9lioyBA.js";import"./p-DgIkDBGX.js";const F={created_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:I,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:I,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:I,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:I,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:I,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:I,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},R={ach_return:"ACH Return",ach_return_fee:"ACH Return Fee",dispute:"Dispute",dispute_fee:"Dispute Fee",dispute_fee_refund:"Dispute Fee Refund",dispute_refund:"Dispute Refund",payment:"Payment",payment_fee:"Fee",refund:"Refund",fee_refund:"Fee Refund",application_fee_returned:"Application Fee Returned",refund_failure:"Refund Failure",void:"Void"},x={created_at:(e,a)=>t("td",{part:B(a)},t("div",{class:"fw-bold"},s(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:B(a)},R[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:B(a)},e.id),amount:(e,a)=>t("td",{part:B(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:B(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:B(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:B(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:B(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:B(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:B(a)},e.source_id),source_type:(e,a)=>t("td",{part:B(a)},e.source_type)},A=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=r,this.pagingParams={},this.columns="created_at,type,id,amount,balance",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:S.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:S.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:S.row,data:a})}}componentWillLoad(){this.transactionsTable=new l(this.balanceTransactions,this.columns,F,x),c(),this.analytics=new p(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.paymentId&&this.authToken?(({id:t,authToken:e,service:a})=>async({params:s,onSuccess:n,onError:r,final:c})=>{var p;try{const c=await a.fetchPaymentTransactions(t,e,s);c.error?r({error:d(c.error),code:h(null===(p=c.error)||void 0===p?void 0:p.code),severity:i.ERROR}):n({balanceTransactions:c.data.map((t=>new o(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=h(null==t?void 0:t.code);r({error:d(t),code:e,severity:i.ERROR})}finally{c()}})({id:this.paymentId,authToken:this.authToken,service:new f})({params:this.pagingParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payment-id and auth-token props are required",this.handleError(n.MISSING_PROPS,this.errorMessage,i.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}render(){return t(D,{key:"5afad0e2e8dc4f37660b09c434fa1e69014194f6"},t(u,{key:"90b657d1a31077ccfee1c494e5bde526572d86b1"},t(m,{key:"c25fd7f2cb00dff6e7d1e5102660c28c08735439"},t(b,{key:"a6a9bfd9dff7aa5c82e2dbe5c3c5674b4e6a5c04"},t(y,{key:"a7e136e48933ae4f7dabc3cb70bda5f2016b400f"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"921169d43283f1b13921f3972e4ff912a92a27eb"},t(j,{key:"69e6d2c8df07e0acb657ab0f7997b6576be86c91",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(g,{key:"6a8a44d407bc4cb75e003ce68b174eed3aee885f",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(T,{key:"599552617b6e9f4dc6451a4fbbb5fe2c402849e4",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(k,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(w,{key:"c2cadba24db21209557443e598ae2fbb1f4f1ffa"},t(v,{key:"ffa9e9f6bf3dd7bb6bb5b8626756edf7ee249074"},t(C,{key:"7d6a900f2aac9483004c4eda42b3592db4495cca",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"028b35bc60ff879529a10ef43de4f45ba2aeb584",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{A as justifi_payment_transactions_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as e,h as n,H as i,a as r}from"./p-N3w5zrz2.js";import{c as o,l as a,b as s,T as f,a as c,aw as u,ax as l,ay as h}from"./p-_6eQgwfE.js";import{F as d}from"./p-BooprPq0.js";import"./p-CZfYo5-1.js";var p="top",v="bottom",b="right",m="left",y="auto",x=[p,v,b,m],w="start",g="end",O="viewport",j="popper",k=x.reduce((function(t,e){return t.concat([e+"-"+w,e+"-"+g])}),[]),M=[].concat(x,[y]).reduce((function(t,e){return t.concat([e,e+"-"+w,e+"-"+g])}),[]),C=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function B(t){return t?(t.nodeName||"").toLowerCase():null}function E(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function q(t){return t instanceof E(t).Element||t instanceof Element}function T(t){return t instanceof E(t).HTMLElement||t instanceof HTMLElement}function D(t){return"undefined"!=typeof ShadowRoot&&(t instanceof E(t).ShadowRoot||t instanceof ShadowRoot)}function L(t){return t.split("-")[0]}var P=Math.max,V=Math.min,_=Math.round;function A(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function I(){return!/^((?!chrome|android).)*safari/i.test(A())}function z(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),r=1,o=1;e&&T(t)&&(r=t.offsetWidth>0&&_(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&_(i.height)/t.offsetHeight||1);var a=(q(t)?E(t):window).visualViewport,s=!I()&&n,f=(i.left+(s&&a?a.offsetLeft:0))/r,c=(i.top+(s&&a?a.offsetTop:0))/o,u=i.width/r,l=i.height/o;return{width:u,height:l,top:c,right:f+u,bottom:c+l,left:f,x:f,y:c}}function R(t){var e=z(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function F(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&D(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function H(t){return E(t).getComputedStyle(t)}function S(t){return["table","td","th"].indexOf(B(t))>=0}function W(t){return((q(t)?t.ownerDocument:t.document)||window.document).documentElement}function K(t){return"html"===B(t)?t:t.assignedSlot||t.parentNode||(D(t)?t.host:null)||W(t)}function N(t){return T(t)&&"fixed"!==H(t).position?t.offsetParent:null}function Q(t){for(var e=E(t),n=N(t);n&&S(n)&&"static"===H(n).position;)n=N(n);return n&&("html"===B(n)||"body"===B(n)&&"static"===H(n).position)?e:n||function(t){var e=/firefox/i.test(A());if(/Trident/i.test(A())&&T(t)&&"fixed"===H(t).position)return null;var n=K(t);for(D(n)&&(n=n.host);T(n)&&["html","body"].indexOf(B(n))<0;){var i=H(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function U(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Y(t,e,n){return P(t,V(e,n))}function Z(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function G(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function J(t){return t.split("-")[1]}var X={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $(t){var e,n=t.popper,i=t.popperRect,r=t.placement,o=t.variation,a=t.offsets,s=t.position,f=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,l=t.isFixed,h=a.x,d=void 0===h?0:h,y=a.y,x=void 0===y?0:y,w="function"==typeof u?u({x:d,y:x}):{x:d,y:x};d=w.x,x=w.y;var O=a.hasOwnProperty("x"),j=a.hasOwnProperty("y"),k=m,M=p,C=window;if(c){var B=Q(n),q="clientHeight",T="clientWidth";B===E(n)&&"static"!==H(B=W(n)).position&&"absolute"===s&&(q="scrollHeight",T="scrollWidth"),(r===p||(r===m||r===b)&&o===g)&&(M=v,x-=(l&&B===C&&C.visualViewport?C.visualViewport.height:B[q])-i.height,x*=f?1:-1),r!==m&&(r!==p&&r!==v||o!==g)||(k=b,d-=(l&&B===C&&C.visualViewport?C.visualViewport.width:B[T])-i.width,d*=f?1:-1)}var D,L=Object.assign({position:s},c&&X),P=!0===u?function(t,e){var n=t.y,i=e.devicePixelRatio||1;return{x:_(t.x*i)/i||0,y:_(n*i)/i||0}}({x:d,y:x},E(n)):{x:d,y:x};return d=P.x,x=P.y,Object.assign({},L,f?((D={})[M]=j?"0":"",D[k]=O?"0":"",D.transform=(C.devicePixelRatio||1)<=1?"translate("+d+"px, "+x+"px)":"translate3d("+d+"px, "+x+"px, 0)",D):((e={})[M]=j?x+"px":"",e[k]=O?d+"px":"",e.transform="",e))}var tt={passive:!0},et={left:"right",right:"left",bottom:"top",top:"bottom"};function nt(t){return t.replace(/left|right|bottom|top/g,(function(t){return et[t]}))}var it={start:"end",end:"start"};function rt(t){return t.replace(/start|end/g,(function(t){return it[t]}))}function ot(t){var e=E(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function at(t){return z(W(t)).left+ot(t).scrollLeft}function st(t){var e=H(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function ft(t){return["html","body","#document"].indexOf(B(t))>=0?t.ownerDocument.body:T(t)&&st(t)?t:ft(K(t))}function ct(t,e){var n;void 0===e&&(e=[]);var i=ft(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),o=E(i),a=r?[o].concat(o.visualViewport||[],st(i)?i:[]):i,s=e.concat(a);return r?s:s.concat(ct(K(a)))}function ut(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function lt(t,e,n){return e===O?ut(function(t,e){var n=E(t),i=W(t),r=n.visualViewport,o=i.clientWidth,a=i.clientHeight,s=0,f=0;if(r){o=r.width,a=r.height;var c=I();(c||!c&&"fixed"===e)&&(s=r.offsetLeft,f=r.offsetTop)}return{width:o,height:a,x:s+at(t),y:f}}(t,n)):q(e)?function(t,e){var n=z(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):ut(function(t){var e,n=W(t),i=ot(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=P(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=P(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+at(t),f=-i.scrollTop;return"rtl"===H(r||n).direction&&(s+=P(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:f}}(W(t)))}function ht(t){var e,n=t.reference,i=t.element,r=t.placement,o=r?L(r):null,a=r?J(r):null,s=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2;switch(o){case p:e={x:s,y:n.y-i.height};break;case v:e={x:s,y:n.y+n.height};break;case b:e={x:n.x+n.width,y:f};break;case m:e={x:n.x-i.width,y:f};break;default:e={x:n.x,y:n.y}}var c=o?U(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case w:e[c]=e[c]-(n[u]/2-i[u]/2);break;case g:e[c]=e[c]+(n[u]/2-i[u]/2)}}return e}function dt(t,e){void 0===e&&(e={});var n=e.placement,i=void 0===n?t.placement:n,r=e.strategy,o=void 0===r?t.strategy:r,a=e.boundary,s=void 0===a?"clippingParents":a,f=e.rootBoundary,c=void 0===f?O:f,u=e.elementContext,l=void 0===u?j:u,h=e.altBoundary,d=void 0!==h&&h,m=e.padding,y=void 0===m?0:m,w=Z("number"!=typeof y?y:G(y,x)),g=t.rects.popper,k=t.elements[d?l===j?"reference":j:l],M=function(t,e,n,i){var r="clippingParents"===e?function(t){var e=ct(K(t)),n=["absolute","fixed"].indexOf(H(t).position)>=0&&T(t)?Q(t):t;return q(n)?e.filter((function(t){return q(t)&&F(t,n)&&"body"!==B(t)})):[]}(t):[].concat(e),o=[].concat(r,[n]),a=o.reduce((function(e,n){var r=lt(t,n,i);return e.top=P(r.top,e.top),e.right=V(r.right,e.right),e.bottom=V(r.bottom,e.bottom),e.left=P(r.left,e.left),e}),lt(t,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(q(k)?k:k.contextElement||W(t.elements.popper),s,c,o),C=z(t.elements.reference),E=ht({reference:C,element:g,placement:i}),D=ut(Object.assign({},g,E)),L=l===j?D:C,_={top:M.top-L.top+w.top,bottom:L.bottom-M.bottom+w.bottom,left:M.left-L.left+w.left,right:L.right-M.right+w.right},A=t.modifiersData.offset;if(l===j&&A){var I=A[i];Object.keys(_).forEach((function(t){var e=[b,v].indexOf(t)>=0?1:-1,n=[p,v].indexOf(t)>=0?"y":"x";_[t]+=I[n]*e}))}return _}function pt(t,e){void 0===e&&(e={});var n=e.boundary,i=e.rootBoundary,r=e.padding,o=e.flipVariations,a=e.allowedAutoPlacements,s=void 0===a?M:a,f=J(e.placement),c=f?o?k:k.filter((function(t){return J(t)===f})):x,u=c.filter((function(t){return s.indexOf(t)>=0}));0===u.length&&(u=c);var l=u.reduce((function(e,o){return e[o]=dt(t,{placement:o,boundary:n,rootBoundary:i,padding:r})[L(o)],e}),{});return Object.keys(l).sort((function(t,e){return l[t]-l[e]}))}var vt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,u=n.boundary,l=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,x=void 0===d||d,g=n.allowedAutoPlacements,O=e.options.placement,j=L(O),k=f||(j!==O&&x?function(t){if(L(t)===y)return[];var e=nt(t);return[rt(t),e,rt(e)]}(O):[nt(O)]),M=[O].concat(k).reduce((function(t,n){return t.concat(L(n)===y?pt(e,{placement:n,boundary:u,rootBoundary:l,padding:c,flipVariations:x,allowedAutoPlacements:g}):n)}),[]),C=e.rects.reference,B=e.rects.popper,E=new Map,q=!0,T=M[0],D=0;D<M.length;D++){var P=M[D],V=L(P),_=J(P)===w,A=[p,v].indexOf(V)>=0,I=A?"width":"height",z=dt(e,{placement:P,boundary:u,rootBoundary:l,altBoundary:h,padding:c}),R=A?_?b:m:_?v:p;C[I]>B[I]&&(R=nt(R));var F=nt(R),H=[];if(o&&H.push(z[V]<=0),s&&H.push(z[R]<=0,z[F]<=0),H.every((function(t){return t}))){T=P,q=!1;break}E.set(P,H)}if(q)for(var S=function(t){var e=M.find((function(e){var n=E.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return T=e,"break"},W=x?3:1;W>0&&"break"!==S(W);W--);e.placement!==T&&(e.modifiersData[i]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function bt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function mt(t){return[p,b,v,m].some((function(e){return t[e]>=0}))}function yt(t,e,n){void 0===n&&(n=!1);var i,r,o=T(e),a=T(e)&&function(t){var e=t.getBoundingClientRect(),n=_(e.width)/t.offsetWidth||1,i=_(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),s=W(e),f=z(t,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==B(e)||st(s))&&(c=(i=e)!==E(i)&&T(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:ot(i)),T(e)?((u=z(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=at(s))),{x:f.left+c.scrollLeft-u.x,y:f.top+c.scrollTop-u.y,width:f.width,height:f.height}}function xt(t){var e=new Map,n=new Set,i=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&r(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),i}var wt={placement:"bottom",modifiers:[],strategy:"absolute"};function gt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Ot(t){void 0===t&&(t={});var e=t.defaultModifiers,n=void 0===e?[]:e,i=t.defaultOptions,r=void 0===i?wt:i;return function(t,e,i){void 0===i&&(i=r);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},wt,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},f=[],c=!1,u={state:s,setOptions:function(i){var o="function"==typeof i?i(s.options):i;l(),s.options=Object.assign({},r,s.options,o),s.scrollParents={reference:q(t)?ct(t):t.contextElement?ct(t.contextElement):[],popper:ct(e)};var a,c,h=function(t){var e=xt(t);return C.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((a=[].concat(n,s.options.modifiers),c=a.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return s.orderedModifiers=h.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.options,n=t.effect;if("function"==typeof n){var i=n({state:s,name:t.name,instance:u,options:void 0===e?{}:e});f.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var t=s.elements,e=t.reference,n=t.popper;if(gt(e,n)){s.rects={reference:yt(e,Q(n),"fixed"===s.options.strategy),popper:R(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<s.orderedModifiers.length;i++)if(!0!==s.reset){var r=s.orderedModifiers[i],o=r.fn,a=r.options;"function"==typeof o&&(s=o({state:s,options:void 0===a?{}:a,name:r.name,instance:u})||s)}else s.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(t){u.forceUpdate(),t(s)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(o())}))}))),a}),destroy:function(){l(),c=!0}};if(!gt(t,e))return u;function l(){f.forEach((function(t){return t()})),f=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var jt=Ot({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,f=E(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",n.update,tt)})),s&&f.addEventListener("resize",n.update,tt),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",n.update,tt)})),s&&f.removeEventListener("resize",n.update,tt)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=ht({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,f=void 0===s||s,c={placement:L(e.placement),variation:J(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,$(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:f})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,$(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];T(r)&&B(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});T(i)&&B(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.name,i=t.options.offset,r=void 0===i?[0,0]:i,o=M.reduce((function(t,n){return t[n]=function(t,e,n){var i=L(t),r=[m,p].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[m,b].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,r),t}),{}),a=o[e.placement],s=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a.x,e.modifiersData.popperOffsets.y+=s),e.modifiersData[n]=o}},vt,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,f=n.tether,c=void 0===f||f,u=n.tetherOffset,l=void 0===u?0:u,h=dt(e,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),d=L(e.placement),y=J(e.placement),x=!y,g=U(d),O="x"===g?"y":"x",j=e.modifiersData.popperOffsets,k=e.rects.reference,M=e.rects.popper,C="function"==typeof l?l(Object.assign({},e.rects,{placement:e.placement})):l,B="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,q={x:0,y:0};if(j){if(o){var T,D="y"===g?p:m,_="y"===g?v:b,A="y"===g?"height":"width",I=j[g],z=I+h[D],F=I-h[_],H=c?-M[A]/2:0,S=y===w?k[A]:M[A],W=y===w?-M[A]:-k[A],K=e.elements.arrow,N=c&&K?R(K):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=Z[D],X=Z[_],$=Y(0,k[A],N[A]),tt=x?k[A]/2-H-$-G-B.mainAxis:S-$-G-B.mainAxis,et=x?-k[A]/2+H+$+X+B.mainAxis:W+$+X+B.mainAxis,nt=e.elements.arrow&&Q(e.elements.arrow),it=null!=(T=null==E?void 0:E[g])?T:0,rt=I+et-it,ot=Y(c?V(z,I+tt-it-(nt?"y"===g?nt.clientTop||0:nt.clientLeft||0:0)):z,I,c?P(F,rt):F);j[g]=ot,q[g]=ot-I}if(s){var at,st=j[O],ft="y"===O?"height":"width",ct=st+h["x"===g?p:m],ut=st-h["x"===g?v:b],lt=-1!==[p,m].indexOf(d),ht=null!=(at=null==E?void 0:E[O])?at:0,pt=lt?ct:st-k[ft]-M[ft]-ht+B.altAxis,vt=lt?st+k[ft]+M[ft]-ht-B.altAxis:ut,bt=c&<?function(t,e,n){var i=Y(t,e,n);return i>n?n:i}(pt,st,vt):Y(c?pt:ct,st,c?vt:ut);j[O]=bt,q[O]=bt-st}e.modifiersData[i]=q}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,r=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=L(n.placement),f=U(s),c=[m,b].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(t,e){return Z("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:G(t,x))}(r.padding,n),l=R(o),h="y"===f?p:m,d="y"===f?v:b,y=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],w=a[f]-n.rects.reference[f],g=Q(o),O=g?"y"===f?g.clientHeight||0:g.clientWidth||0:0,j=O/2-l[c]/2+(y/2-w/2),k=Y(u[h],j,O-l[c]-u[d]);n.modifiersData[i]=((e={})[f]=k,e.centerOffset=k-j,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&F(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=dt(e,{elementContext:"reference"}),s=dt(e,{altBoundary:!0}),f=bt(a,i),c=bt(s,r,o),u=mt(f),l=mt(c);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:l},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":l})}}]});const kt=class{constructor(n){t(this,n),this.showEvent=e(this,"showEvent"),this.hideEvent=e(this,"hideEvent"),this.placement="bottom",this.offset=[0,10],this.strategy="absolute",this.trigger="click",this.isOpen=!1}componentDidLoad(){this.popperInstance=jt(this.anchorRef,this.popperContentRef,this.popperOptions),"click"===this.trigger?window.addEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.addEventListener("mouseenter",this.show.bind(this)),this.anchorRef.addEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.addEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.addEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.addEventListener("focus",this.show.bind(this)),this.anchorRef.addEventListener("blur",this.hide.bind(this)))}disconnectedCallback(){"click"===this.trigger?window.removeEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.removeEventListener("mouseenter",this.show.bind(this)),this.anchorRef.removeEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.removeEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.removeEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.removeEventListener("focus",this.show.bind(this)),this.anchorRef.removeEventListener("blur",this.hide.bind(this)))}handleClick(t){const e=t.composedPath(),n=e.includes(this.anchorRef),i=e.includes(this.popperContentRef);!this.isOpen&&n?this.show():(this.isOpen&&!i||this.isOpen&&n)&&this.hide()}get popperOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset}}],strategy:this.strategy}}show(){this.isOpen=!0,this.popperContentRef.setAttribute("data-show",""),this.popperInstance.update(),this.showEvent.emit()}hide(){this.isOpen=!1,this.popperContentRef.removeAttribute("data-show"),this.popperInstance.update(),this.hideEvent.emit()}render(){return n("div",{key:"f0fa57ab03b7b98fbf1f869ebae9410bab1b4e5f"},n("style",{key:"f8e39710d856d83d393713f0dbe42b404e60f1d8"},"\n .popper-content {\n display: none;\n }\n .popper-content[data-show] {\n display: block;\n z-index: 1030;\n }\n "),n("div",{key:"74550d809cb22ddc60ab2762c6f0ea7914b05865",class:"popper-content",ref:t=>this.popperContentRef=t},n("slot",{key:"37b78e823f0bec6ebbe7a4d3dd2f177ec96a647a"})))}},Mt=class{constructor(n){t(this,n),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,n=e.getAttribute("name");this.inputHandler(n,e.value),this.formControlInput.emit(e.value)},this.updateInput=t=>{this.selectElement.value=t}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){let t=o;return this.errorText&&(t=s),this.disabled&&(t=f),this.isFocused&&(t=c),t}render(){var t;return n(i,{key:"605b6cb9bfa7bac528ee0af9c4deb5e7b1356b93"},n("div",{key:"f8b42609971ff02c4bc147a113bb4a025d32bcd8",class:"form-group d-flex flex-column"},n("div",{key:"26c87da7b92edbb7fd41825a4e64b642778d0808",class:"d-flex align-items-start gap-2"},n("label",{key:"43ad562c323b586bf7ab0260258d8678ef3194aa",part:a,class:"form-label",htmlFor:this.name},this.label),n("form-control-tooltip",{key:"1e4b1fa0e9bae57b6e783fb873de38c49ae7a8a4",helpText:this.helpText})),n("select",{key:"bef2df140499a642ea9bf5bd3f6d7b558042e733",ref:t=>this.selectElement=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>n("option",{value:t.value},t.label)))),n(d,{key:"99abaaa766c1270cf1cfd926320d343393b13d1d",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},Ct=class{constructor(n){t(this,n),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,n=e.getAttribute("name");this.inputHandler(n,e.value),this.formControlInput.emit({name:n,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("input");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.errorText?s:this.disabled?f:this.isFocused?c:o}render(){return n(i,{key:"fab6618fdcf4d8c5f61687ecd5edfd6783754ec8"},n("div",{key:"8f5b56c46fcd890c2601dd3b79fe60438bd561ef",class:"form-group d-flex flex-column"},n("div",{key:"2226c532baa84905d8051e2222f24105b224d42b",class:"d-flex align-items-start gap-2"},n("label",{key:"7c516dce181a938168dbe4961a90a946c723fc91",part:a,class:"form-label",htmlFor:this.name},this.label),n("form-control-tooltip",{key:"f4868f88e4f3e4795e25ad505e78cf8ab212623d",helpText:this.helpText})),n("input",{key:"10f02be3c0d055089697155878fedc23aa9f31e3",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},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}),n(d,{key:"02c21c4b071903db49e2e8b786275247d75c92f9",errorText:this.errorText,name:this.name})))}get el(){return r(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},Bt=class{constructor(e){t(this,e)}show(){this.tooltip.classList.add("show")}hide(){this.tooltip.classList.remove("show")}render(){return this.helpText?n("div",{class:"tooltip-container"},n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-question-square tooltip-icon",viewBox:"0 0 16 16",ref:t=>this.anchorIcon=t,part:h},n("path",{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),n("path",{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"})),n("custom-popper",{trigger:"hover",placement:"top",anchorRef:this.anchorIcon},n("div",{class:"tooltip bs-tooltip-top",part:u,role:"tooltip",ref:t=>this.tooltip=t},n("div",{class:"tooltip-inner",part:l},this.helpText)))):null}};export{kt as custom_popper,Mt as form_control_select,Ct as form_control_text,Bt as form_control_tooltip}
|
|
1
|
+
import{r as t,c as e,h as n,H as i,a as r}from"./p-N3w5zrz2.js";import{c as o,l as a,b as s,R as f,a as c,aw as u,ax as l,ay as h}from"./p-BrLVc_85.js";import{F as d}from"./p-Zuu7wsNB.js";import"./p-CZfYo5-1.js";var p="top",v="bottom",b="right",m="left",y="auto",x=[p,v,b,m],w="start",g="end",O="viewport",j="popper",k=x.reduce((function(t,e){return t.concat([e+"-"+w,e+"-"+g])}),[]),M=[].concat(x,[y]).reduce((function(t,e){return t.concat([e,e+"-"+w,e+"-"+g])}),[]),B=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function C(t){return t?(t.nodeName||"").toLowerCase():null}function E(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function L(t){return t instanceof E(t).Element||t instanceof Element}function V(t){return t instanceof E(t).HTMLElement||t instanceof HTMLElement}function q(t){return"undefined"!=typeof ShadowRoot&&(t instanceof E(t).ShadowRoot||t instanceof ShadowRoot)}function D(t){return t.split("-")[0]}var T=Math.max,_=Math.min,A=Math.round;function I(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function P(){return!/^((?!chrome|android).)*safari/i.test(I())}function R(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),r=1,o=1;e&&V(t)&&(r=t.offsetWidth>0&&A(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&A(i.height)/t.offsetHeight||1);var a=(L(t)?E(t):window).visualViewport,s=!P()&&n,f=(i.left+(s&&a?a.offsetLeft:0))/r,c=(i.top+(s&&a?a.offsetTop:0))/o,u=i.width/r,l=i.height/o;return{width:u,height:l,top:c,right:f+u,bottom:c+l,left:f,x:f,y:c}}function z(t){var e=R(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function F(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&q(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function H(t){return E(t).getComputedStyle(t)}function S(t){return["table","td","th"].indexOf(C(t))>=0}function W(t){return((L(t)?t.ownerDocument:t.document)||window.document).documentElement}function N(t){return"html"===C(t)?t:t.assignedSlot||t.parentNode||(q(t)?t.host:null)||W(t)}function Z(t){return V(t)&&"fixed"!==H(t).position?t.offsetParent:null}function K(t){for(var e=E(t),n=Z(t);n&&S(n)&&"static"===H(n).position;)n=Z(n);return n&&("html"===C(n)||"body"===C(n)&&"static"===H(n).position)?e:n||function(t){var e=/firefox/i.test(I());if(/Trident/i.test(I())&&V(t)&&"fixed"===H(t).position)return null;var n=N(t);for(q(n)&&(n=n.host);V(n)&&["html","body"].indexOf(C(n))<0;){var i=H(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}function U(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Y(t,e,n){return T(t,_(e,n))}function G(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function J(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function Q(t){return t.split("-")[1]}var X={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $(t){var e,n=t.popper,i=t.popperRect,r=t.placement,o=t.variation,a=t.offsets,s=t.position,f=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,l=t.isFixed,h=a.x,d=void 0===h?0:h,y=a.y,x=void 0===y?0:y,w="function"==typeof u?u({x:d,y:x}):{x:d,y:x};d=w.x,x=w.y;var O=a.hasOwnProperty("x"),j=a.hasOwnProperty("y"),k=m,M=p,B=window;if(c){var C=K(n),L="clientHeight",V="clientWidth";C===E(n)&&"static"!==H(C=W(n)).position&&"absolute"===s&&(L="scrollHeight",V="scrollWidth"),(r===p||(r===m||r===b)&&o===g)&&(M=v,x-=(l&&C===B&&B.visualViewport?B.visualViewport.height:C[L])-i.height,x*=f?1:-1),r!==m&&(r!==p&&r!==v||o!==g)||(k=b,d-=(l&&C===B&&B.visualViewport?B.visualViewport.width:C[V])-i.width,d*=f?1:-1)}var q,D=Object.assign({position:s},c&&X),T=!0===u?function(t,e){var n=t.y,i=e.devicePixelRatio||1;return{x:A(t.x*i)/i||0,y:A(n*i)/i||0}}({x:d,y:x},E(n)):{x:d,y:x};return d=T.x,x=T.y,Object.assign({},D,f?((q={})[M]=j?"0":"",q[k]=O?"0":"",q.transform=(B.devicePixelRatio||1)<=1?"translate("+d+"px, "+x+"px)":"translate3d("+d+"px, "+x+"px, 0)",q):((e={})[M]=j?x+"px":"",e[k]=O?d+"px":"",e.transform="",e))}var tt={passive:!0},et={left:"right",right:"left",bottom:"top",top:"bottom"};function nt(t){return t.replace(/left|right|bottom|top/g,(function(t){return et[t]}))}var it={start:"end",end:"start"};function rt(t){return t.replace(/start|end/g,(function(t){return it[t]}))}function ot(t){var e=E(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function at(t){return R(W(t)).left+ot(t).scrollLeft}function st(t){var e=H(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function ft(t){return["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:V(t)&&st(t)?t:ft(N(t))}function ct(t,e){var n;void 0===e&&(e=[]);var i=ft(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),o=E(i),a=r?[o].concat(o.visualViewport||[],st(i)?i:[]):i,s=e.concat(a);return r?s:s.concat(ct(N(a)))}function ut(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function lt(t,e,n){return e===O?ut(function(t,e){var n=E(t),i=W(t),r=n.visualViewport,o=i.clientWidth,a=i.clientHeight,s=0,f=0;if(r){o=r.width,a=r.height;var c=P();(c||!c&&"fixed"===e)&&(s=r.offsetLeft,f=r.offsetTop)}return{width:o,height:a,x:s+at(t),y:f}}(t,n)):L(e)?function(t,e){var n=R(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):ut(function(t){var e,n=W(t),i=ot(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=T(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=T(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+at(t),f=-i.scrollTop;return"rtl"===H(r||n).direction&&(s+=T(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:f}}(W(t)))}function ht(t){var e,n=t.reference,i=t.element,r=t.placement,o=r?D(r):null,a=r?Q(r):null,s=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2;switch(o){case p:e={x:s,y:n.y-i.height};break;case v:e={x:s,y:n.y+n.height};break;case b:e={x:n.x+n.width,y:f};break;case m:e={x:n.x-i.width,y:f};break;default:e={x:n.x,y:n.y}}var c=o?U(o):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case w:e[c]=e[c]-(n[u]/2-i[u]/2);break;case g:e[c]=e[c]+(n[u]/2-i[u]/2)}}return e}function dt(t,e){void 0===e&&(e={});var n=e.placement,i=void 0===n?t.placement:n,r=e.strategy,o=void 0===r?t.strategy:r,a=e.boundary,s=void 0===a?"clippingParents":a,f=e.rootBoundary,c=void 0===f?O:f,u=e.elementContext,l=void 0===u?j:u,h=e.altBoundary,d=void 0!==h&&h,m=e.padding,y=void 0===m?0:m,w=G("number"!=typeof y?y:J(y,x)),g=t.rects.popper,k=t.elements[d?l===j?"reference":j:l],M=function(t,e,n,i){var r="clippingParents"===e?function(t){var e=ct(N(t)),n=["absolute","fixed"].indexOf(H(t).position)>=0&&V(t)?K(t):t;return L(n)?e.filter((function(t){return L(t)&&F(t,n)&&"body"!==C(t)})):[]}(t):[].concat(e),o=[].concat(r,[n]),a=o.reduce((function(e,n){var r=lt(t,n,i);return e.top=T(r.top,e.top),e.right=_(r.right,e.right),e.bottom=_(r.bottom,e.bottom),e.left=T(r.left,e.left),e}),lt(t,o[0],i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(L(k)?k:k.contextElement||W(t.elements.popper),s,c,o),B=R(t.elements.reference),E=ht({reference:B,element:g,placement:i}),q=ut(Object.assign({},g,E)),D=l===j?q:B,A={top:M.top-D.top+w.top,bottom:D.bottom-M.bottom+w.bottom,left:M.left-D.left+w.left,right:D.right-M.right+w.right},I=t.modifiersData.offset;if(l===j&&I){var P=I[i];Object.keys(A).forEach((function(t){var e=[b,v].indexOf(t)>=0?1:-1,n=[p,v].indexOf(t)>=0?"y":"x";A[t]+=P[n]*e}))}return A}function pt(t,e){void 0===e&&(e={});var n=e.boundary,i=e.rootBoundary,r=e.padding,o=e.flipVariations,a=e.allowedAutoPlacements,s=void 0===a?M:a,f=Q(e.placement),c=f?o?k:k.filter((function(t){return Q(t)===f})):x,u=c.filter((function(t){return s.indexOf(t)>=0}));0===u.length&&(u=c);var l=u.reduce((function(e,o){return e[o]=dt(t,{placement:o,boundary:n,rootBoundary:i,padding:r})[D(o)],e}),{});return Object.keys(l).sort((function(t,e){return l[t]-l[e]}))}var vt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0===a||a,f=n.fallbackPlacements,c=n.padding,u=n.boundary,l=n.rootBoundary,h=n.altBoundary,d=n.flipVariations,x=void 0===d||d,g=n.allowedAutoPlacements,O=e.options.placement,j=D(O),k=f||(j!==O&&x?function(t){if(D(t)===y)return[];var e=nt(t);return[rt(t),e,rt(e)]}(O):[nt(O)]),M=[O].concat(k).reduce((function(t,n){return t.concat(D(n)===y?pt(e,{placement:n,boundary:u,rootBoundary:l,padding:c,flipVariations:x,allowedAutoPlacements:g}):n)}),[]),B=e.rects.reference,C=e.rects.popper,E=new Map,L=!0,V=M[0],q=0;q<M.length;q++){var T=M[q],_=D(T),A=Q(T)===w,I=[p,v].indexOf(_)>=0,P=I?"width":"height",R=dt(e,{placement:T,boundary:u,rootBoundary:l,altBoundary:h,padding:c}),z=I?A?b:m:A?v:p;B[P]>C[P]&&(z=nt(z));var F=nt(z),H=[];if(o&&H.push(R[_]<=0),s&&H.push(R[z]<=0,R[F]<=0),H.every((function(t){return t}))){V=T,L=!1;break}E.set(T,H)}if(L)for(var S=function(t){var e=M.find((function(e){var n=E.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return V=e,"break"},W=x?3:1;W>0&&"break"!==S(W);W--);e.placement!==V&&(e.modifiersData[i]._skip=!0,e.placement=V,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function bt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function mt(t){return[p,b,v,m].some((function(e){return t[e]>=0}))}function yt(t,e,n){void 0===n&&(n=!1);var i,r,o=V(e),a=V(e)&&function(t){var e=t.getBoundingClientRect(),n=A(e.width)/t.offsetWidth||1,i=A(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),s=W(e),f=R(t,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==C(e)||st(s))&&(c=(i=e)!==E(i)&&V(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:ot(i)),V(e)?((u=R(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):s&&(u.x=at(s))),{x:f.left+c.scrollLeft-u.x,y:f.top+c.scrollTop-u.y,width:f.width,height:f.height}}function xt(t){var e=new Map,n=new Set,i=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&r(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),i}var wt={placement:"bottom",modifiers:[],strategy:"absolute"};function gt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Ot(t){void 0===t&&(t={});var e=t.defaultModifiers,n=void 0===e?[]:e,i=t.defaultOptions,r=void 0===i?wt:i;return function(t,e,i){void 0===i&&(i=r);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},wt,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},f=[],c=!1,u={state:s,setOptions:function(i){var o="function"==typeof i?i(s.options):i;l(),s.options=Object.assign({},r,s.options,o),s.scrollParents={reference:L(t)?ct(t):t.contextElement?ct(t.contextElement):[],popper:ct(e)};var a,c,h=function(t){var e=xt(t);return B.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((a=[].concat(n,s.options.modifiers),c=a.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return s.orderedModifiers=h.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.options,n=t.effect;if("function"==typeof n){var i=n({state:s,name:t.name,instance:u,options:void 0===e?{}:e});f.push(i||function(){})}})),u.update()},forceUpdate:function(){if(!c){var t=s.elements,e=t.reference,n=t.popper;if(gt(e,n)){s.rects={reference:yt(e,K(n),"fixed"===s.options.strategy),popper:z(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<s.orderedModifiers.length;i++)if(!0!==s.reset){var r=s.orderedModifiers[i],o=r.fn,a=r.options;"function"==typeof o&&(s=o({state:s,options:void 0===a?{}:a,name:r.name,instance:u})||s)}else s.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(t){u.forceUpdate(),t(s)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(o())}))}))),a}),destroy:function(){l(),c=!0}};if(!gt(t,e))return u;function l(){f.forEach((function(t){return t()})),f=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var jt=Ot({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,f=E(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",n.update,tt)})),s&&f.addEventListener("resize",n.update,tt),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",n.update,tt)})),s&&f.removeEventListener("resize",n.update,tt)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=ht({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,f=void 0===s||s,c={placement:D(e.placement),variation:Q(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,$(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:f})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,$(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];V(r)&&C(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});V(i)&&C(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.name,i=t.options.offset,r=void 0===i?[0,0]:i,o=M.reduce((function(t,n){return t[n]=function(t,e,n){var i=D(t),r=[m,p].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[m,b].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,r),t}),{}),a=o[e.placement],s=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a.x,e.modifiersData.popperOffsets.y+=s),e.modifiersData[n]=o}},vt,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,f=n.tether,c=void 0===f||f,u=n.tetherOffset,l=void 0===u?0:u,h=dt(e,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),d=D(e.placement),y=Q(e.placement),x=!y,g=U(d),O="x"===g?"y":"x",j=e.modifiersData.popperOffsets,k=e.rects.reference,M=e.rects.popper,B="function"==typeof l?l(Object.assign({},e.rects,{placement:e.placement})):l,C="number"==typeof B?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,L={x:0,y:0};if(j){if(o){var V,q="y"===g?p:m,A="y"===g?v:b,I="y"===g?"height":"width",P=j[g],R=P+h[q],F=P-h[A],H=c?-M[I]/2:0,S=y===w?k[I]:M[I],W=y===w?-M[I]:-k[I],N=e.elements.arrow,Z=c&&N?z(N):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},J=G[q],X=G[A],$=Y(0,k[I],Z[I]),tt=x?k[I]/2-H-$-J-C.mainAxis:S-$-J-C.mainAxis,et=x?-k[I]/2+H+$+X+C.mainAxis:W+$+X+C.mainAxis,nt=e.elements.arrow&&K(e.elements.arrow),it=null!=(V=null==E?void 0:E[g])?V:0,rt=P+et-it,ot=Y(c?_(R,P+tt-it-(nt?"y"===g?nt.clientTop||0:nt.clientLeft||0:0)):R,P,c?T(F,rt):F);j[g]=ot,L[g]=ot-P}if(s){var at,st=j[O],ft="y"===O?"height":"width",ct=st+h["x"===g?p:m],ut=st-h["x"===g?v:b],lt=-1!==[p,m].indexOf(d),ht=null!=(at=null==E?void 0:E[O])?at:0,pt=lt?ct:st-k[ft]-M[ft]-ht+C.altAxis,vt=lt?st+k[ft]+M[ft]-ht-C.altAxis:ut,bt=c&<?function(t,e,n){var i=Y(t,e,n);return i>n?n:i}(pt,st,vt):Y(c?pt:ct,st,c?vt:ut);j[O]=bt,L[O]=bt-st}e.modifiersData[i]=L}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,r=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=D(n.placement),f=U(s),c=[m,b].indexOf(s)>=0?"height":"width";if(o&&a){var u=function(t,e){return G("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:J(t,x))}(r.padding,n),l=z(o),h="y"===f?p:m,d="y"===f?v:b,y=n.rects.reference[c]+n.rects.reference[f]-a[f]-n.rects.popper[c],w=a[f]-n.rects.reference[f],g=K(o),O=g?"y"===f?g.clientHeight||0:g.clientWidth||0:0,j=O/2-l[c]/2+(y/2-w/2),k=Y(u[h],j,O-l[c]-u[d]);n.modifiersData[i]=((e={})[f]=k,e.centerOffset=k-j,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&F(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=dt(e,{elementContext:"reference"}),s=dt(e,{altBoundary:!0}),f=bt(a,i),c=bt(s,r,o),u=mt(f),l=mt(c);e.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:l},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":l})}}]});const kt=class{constructor(n){t(this,n),this.showEvent=e(this,"showEvent"),this.hideEvent=e(this,"hideEvent"),this.placement="bottom",this.offset=[0,10],this.strategy="absolute",this.trigger="click",this.isOpen=!1}componentDidLoad(){this.popperInstance=jt(this.anchorRef,this.popperContentRef,this.popperOptions),"click"===this.trigger?window.addEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.addEventListener("mouseenter",this.show.bind(this)),this.anchorRef.addEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.addEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.addEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.addEventListener("focus",this.show.bind(this)),this.anchorRef.addEventListener("blur",this.hide.bind(this)))}disconnectedCallback(){"click"===this.trigger?window.removeEventListener("click",this.handleClick.bind(this)):"hover"===this.trigger?(this.anchorRef.removeEventListener("mouseenter",this.show.bind(this)),this.anchorRef.removeEventListener("mouseleave",this.hide.bind(this)),this.popperContentRef.removeEventListener("mouseenter",this.show.bind(this)),this.popperContentRef.removeEventListener("mouseleave",this.hide.bind(this))):"focus"===this.trigger&&(this.anchorRef.removeEventListener("focus",this.show.bind(this)),this.anchorRef.removeEventListener("blur",this.hide.bind(this)))}handleClick(t){const e=t.composedPath(),n=e.includes(this.anchorRef),i=e.includes(this.popperContentRef);!this.isOpen&&n?this.show():(this.isOpen&&!i||this.isOpen&&n)&&this.hide()}get popperOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset}}],strategy:this.strategy}}show(){this.isOpen=!0,this.popperContentRef.setAttribute("data-show",""),this.popperInstance.update(),this.showEvent.emit()}hide(){this.isOpen=!1,this.popperContentRef.removeAttribute("data-show"),this.popperInstance.update(),this.hideEvent.emit()}render(){return n("div",{key:"7ef56b941bf884c5a1416b373372748374bb204a"},n("style",{key:"ac2a710bea0939dd7f279968cfd33d789eba3a08"},"\n .popper-content {\n display: none;\n }\n .popper-content[data-show] {\n display: block;\n z-index: 1030;\n }\n "),n("div",{key:"f34a15bd8122833ed8b188cd0519588f2da78bb9",class:"popper-content",ref:t=>this.popperContentRef=t},n("slot",{key:"54d97c9be7fe9c33584156569c927e2108cab331"})))}},Mt=class{constructor(n){t(this,n),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,n=e.getAttribute("name");this.inputHandler(n,e.value),this.formControlInput.emit(e.value)},this.updateInput=t=>{this.selectElement.value=t}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){let t=o;return this.errorText&&(t=s),this.disabled&&(t=f),this.isFocused&&(t=c),t}render(){var t;return n(i,{key:"f55283c73225466b10cec78e6e5ff1c268142d1b"},n("div",{key:"48beb377ca664b867598f8e472a3bb4825aecf9b",class:"form-group d-flex flex-column"},n("div",{key:"13debfb6a725d7f247eb5601e3361a3964b826e9",class:"d-flex align-items-start gap-2"},n("label",{key:"15ac64fb03a5c1cb8f55c18bd7eb41d66328e599",part:a,class:"form-label",htmlFor:this.name},this.label),n("form-control-tooltip",{key:"3d8b43ed6e997234f7c64daf41b2286bec93340e",helpText:this.helpText})),n("select",{key:"1c3eb5699a0b76c694a02fe50e8070483b2960e6",ref:t=>this.selectElement=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>n("option",{value:t.value},t.label)))),n(d,{key:"d223fd1fad44de99812b0e3a3429e3931b798c2c",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},Bt=class{constructor(n){t(this,n),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,n=e.getAttribute("name");this.inputHandler(n,e.value),this.formControlInput.emit({name:n,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("input");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.errorText?s:this.disabled?f:this.isFocused?c:o}render(){return n(i,{key:"9ceda4ac9f8bd1ab572652b1818672948ad7d66f"},n("div",{key:"da631a05be3b84ca86a91a360eb7f6a3a3468b78",class:"form-group d-flex flex-column"},n("div",{key:"d5c5b7fe29e611806c63e43aa99c9831d4e8ba35",class:"d-flex align-items-start gap-2"},n("label",{key:"327ca9d8520ba4814104667da7cd8275489431ee",part:a,class:"form-label",htmlFor:this.name},this.label),n("form-control-tooltip",{key:"32678aefb28b06734c80e1f37b5c4b546ad0770b",helpText:this.helpText})),n("input",{key:"85152fdebfa1081e84e2c8adf760e4f7f6a94ea0",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},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}),n(d,{key:"d0d8bd801df53a377010b89167d30ded49bc2cdc",errorText:this.errorText,name:this.name})))}get el(){return r(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},Ct=class{constructor(e){t(this,e)}show(){this.tooltip.classList.add("show")}hide(){this.tooltip.classList.remove("show")}render(){return this.helpText?n("div",{class:"tooltip-container"},n("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-question-square tooltip-icon",viewBox:"0 0 16 16",ref:t=>this.anchorIcon=t,part:h},n("path",{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),n("path",{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"})),n("custom-popper",{trigger:"hover",placement:"top",anchorRef:this.anchorIcon},n("div",{class:"tooltip bs-tooltip-top",part:u,role:"tooltip",ref:t=>this.tooltip=t},n("div",{class:"tooltip-inner",part:l},this.helpText)))):null}};export{kt as custom_popper,Mt as form_control_select,Bt as form_control_text,Ct as form_control_tooltip}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.js";import"./p-
|
|
1
|
+
import{r as t,c as s,h as i}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.js";import"./p-BnE7qgLh.js";import{C as o,a as r}from"./p-SdntD1xf.js";import{C as e}from"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-KoNvNGKV.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as p,a as c}from"./p-C5RuuShs.js";import{c as n,J as a}from"./p-Ckf8pUs-.js";import{C as h}from"./p-Ds11n2AD.js";import{m,S as u}from"./p-hBHbB3i6.js";import{S as j}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{d}from"./p-Bnrk5pzA.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-B0XIc_FO.js";import"./p-D9lioyBA.js";import"./p-BSl0X3r8.js";import"./p-BrLVc_85.js";const l=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=d,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){n(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){this.accountId&&this.authToken?this.getCheckouts=(({accountId:t,authToken:s,service:i})=>async({params:r,onSuccess:n,onError:a})=>{var h,m;try{const u=await i.fetchCheckouts(t,s,r);if(u.error)return a({error:c(u.error),code:p(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);n({checkouts:(null===(h=u.data)||void 0===h?void 0:h.map((t=>new e(t))))||[],pagingInfo:t})}}catch(t){const s=p(null==t?void 0:t.code);return a({error:t.message||t,code:s,severity:o.ERROR})}})({accountId:this.accountId,authToken:this.authToken,service:new h}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new u}))}render(){return i(j,{key:"c76ca3b186023ebea3ac3fe0cf6599786a2f2ea7"},i("checkouts-list-core",{key:"484d31c0b0434181b3bd69cb9c3b6810aa0f2983",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{l as justifi_checkouts_list}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s,F as
|
|
1
|
+
import{h as s,F as i,r as t,c as e}from"./p-N3w5zrz2.js";import{E as r}from"./p-Clv1feia.js";import{S as l}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{S as o}from"./p-C9oyC18r.js";import"./p-BrLVc_85.js";const n=()=>{const t=()=>s("div",{class:"mt-5"},s(o,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null)),s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null))));return s(i,null,s(t,null),s(t,null),s(t,null),s(t,null))};var a;!function(s){s.LOADING="loading",s.READY="ready",s.ERROR="error"}(a||(a={}));const d=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event"),this.renderState=a.LOADING}async componentWillLoad(){this.getBusiness&&this.fetchData()}fetchData(){this.renderState=a.LOADING,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.renderState=a.READY},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s,this.renderState=a.ERROR,this.errorEvent.emit({errorCode:i,message:s,severity:t})}})}render(){return s(l,null,this.renderState===a.LOADING?s(n,null):this.renderState===a.ERROR?r(this.errorMessage):s("justifi-details",{"error-message":this.errorMessage},s("div",{slot:"detail-sections"},s("core-info-details",{business:this.business}),s("legal-address-details",{legalAddress:this.business.legal_address}),s("representative-details",{representative:this.business.representative}),s("owner-details",{owners:this.business.owners}),s("additional-questions-details",{additionalQuestions:this.business.additional_questions}))))}};export{d as business_details_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i}from"./p-N3w5zrz2.js";import{A as s}from"./p-D9lioyBA.js";import{C as r,a as o}from"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-KoNvNGKV.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as n,a}from"./p-C5RuuShs.js";import{c,J as p}from"./p-Ckf8pUs-.js";import"./p-CfBKn_Vl.js";import"./p-Dcbfnfn2.js";import"./p-BnE7qgLh.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-B0XIc_FO.js";const u=s();class d{async fetchQuote(t,e){return u.post({endpoint:"insurance/quotes",body:e,authToken:t})}async toggleCoverage(t,e,i){return u.post({endpoint:`insurance/quotes/${e}/toggle`,body:i,authToken:t})}}const h=class{constructor(i){t(this,i),this.errorEvent=e(this,"error-event")}async validate(){return this.seasonInterruptionCoreRef.validate()}componentWillLoad(){c(),this.analytics=new p(this),this.initializeServiceMethods()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeServiceMethods(){this.authToken?(this.getQuote=(({authToken:t,service:e})=>async({payload:i,onSuccess:s,onError:o})=>{var c;try{const p=await e.fetchQuote(t,i);if(p.error)return o({error:a(p.error),code:n(null===(c=p.error)||void 0===c?void 0:c.code),severity:r.ERROR});s({quote:p.data})}catch(t){const e=n(null==t?void 0:t.code);return o({error:t.message||t,code:e,severity:r.ERROR})}})({authToken:this.authToken,service:new d}),this.toggleCoverage=(({authToken:t,service:e})=>async({quoteId:i,payload:s,onSuccess:o,onError:c})=>{var p;try{const u=await e.toggleCoverage(t,i,s);if(u.error)return c({error:a(u.error),code:n(null===(p=u.error)||void 0===p?void 0:p.code),severity:r.ERROR});o({quote:u.data})}catch(t){const e=n(null==t?void 0:t.code);return c({error:t.message||t,code:e,severity:r.ERROR})}})({authToken:this.authToken,service:new d})):this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:r.ERROR})}render(){return i("justifi-season-interruption-insurance-core",{key:"e6c2083c20b0f29301d5d8eafc1d269280e96de7",ref:t=>this.seasonInterruptionCoreRef=t,"checkout-id":this.checkoutId,getQuote:this.getQuote,toggleCoverage:this.toggleCoverage,"primary-identity-first-name":this.primaryIdentityFirstName,"primary-identity-last-name":this.primaryIdentityLastName,"primary-identity-state":this.primaryIdentityState,"primary-identity-postal-code":this.primaryIdentityPostalCode,"primary-identity-country":this.primaryIdentityCountry,"primary-identity-email-address":this.primaryIdentityEmailAddress,"policy-attributes-insurable-amount":this.policyAttributesInsurableAmount,"policy-attributes-start-date":this.policyAttributesStartDate,"policy-attributes-end-date":this.policyAttributesEndDate,"covered-identity-first-name":this.coveredIdentityFirstName,"covered-identity-last-name":this.coveredIdentityLastName})}};export{h as justifi_season_interruption_insurance}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as a,H as e,a as i}from"./p-N3w5zrz2.js";import{i as r,a as o,b as h,c as n,l as f}from"./p-BrLVc_85.js";import{F as l}from"./p-DpbCEDZ3.js";import{F as c}from"./p-Zuu7wsNB.js";import"./p-CZfYo5-1.js";const d=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target,a=s.getAttribute("name");this.inputHandler(a,s.value),this.formControlInput.emit({name:a,value:s.value})},this.updateInput=t=>{const s=this.el.querySelector("input");s&&(s.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?r:this.isFocused?o:this.errorText?h:n}render(){return a(e,{key:"575b10375e81774d2ce099cb9f79960fe530ea71"},a("div",{key:"6f23da58c5fbf994dbf814022ab99668c0c71f77",class:"form-group d-flex flex-column"},a("label",{key:"4b19d3067770ce1523e88a7f701a0e193098eb5f",part:f,class:"form-label",htmlFor:this.name},this.label),a("input",{key:"e6331df9a0484fa12e05d63b3b45af3a9d8b0993",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"number",disabled:this.disabled}),a(l,{key:"55ef88b41cea29d14df3412a9743685114cfda13",helpText:this.helpText,name:this.name}),a(c,{key:"efad443056dba5b77f86da12854b2a3668c101cd",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_number}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as s,H as a,a as i}from"./p-N3w5zrz2.js";import{F as r}from"./p-Zuu7wsNB.js";import{i as o,b as l,a as c,R as d,c as h,l as n}from"./p-BrLVc_85.js";const f=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur")}render(){return s(a,{key:"a047767dfcdd22535de0f797e05ba1124f5476c1",exportparts:"label,input,input-invalid"},s("div",{key:"2b2eba9c135edc67135ee1fac2ddae29714a8139",class:"form-group d-flex flex-column"},s("div",{key:"c7825bbeef90e85d43d9690da84f14c802520d68",class:"d-flex align-items-start gap-2"},s("label",{key:"3b9a273ee2d27edc17d6798fd5bb161650368c88",part:"label",class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"efb7ad8c5040a615d1c0ed8923c75e477294d6a4",helpText:this.helpText})),s("input",{key:"212de1de46ec3392e12535f137232328dbdf4681",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=""}),s(r,{key:"573f0ddd4238786336d0a78c59b434bc83d8bb02",errorText:this.errorText,name:this.name})))}get el(){return i(this)}},b=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,s=e.getAttribute("name");this.inputHandler(s,e.value),this.formControlInput.emit({name:s,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("textarea");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.errorText?l:this.isFocused?c:this.disabled?d:h}render(){return s(a,{key:"b1f6375f194cbbda1b2a7d6b421a1491cafc05cb"},s("div",{key:"c372f254b00a9a50505cc9473ad138cebcf5495b",class:"form-group d-flex flex-column"},s("label",{key:"bea34d76380a9892fd30e3ae1e8cd4e11c3edcae",part:n,class:"form-label",htmlFor:this.name},this.label),s("textarea",{key:"06f7fd1ac978e0f82adbd1cad272fa5c627bd88d",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},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}),s("form-control-help-text",{key:"2375f0026db86411561e3381e8ca487859cc432c",helpText:this.helpText,name:this.name}),s("form-control-error-text",{key:"def27e9c4e4add94e0ecc5a5c3579c754a17fbad",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{f as form_control_file_v2,b as form_control_textarea}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,c as t,h as s}from"./p-N3w5zrz2.js";import{c as i,d as r,e as a}from"./p-
|
|
1
|
+
import{r as e,c as t,h as s}from"./p-N3w5zrz2.js";import{c as i,d as r,e as a}from"./p-BTS3E50C.js";import{I as o}from"./p-B3AHoKpE.js";import{F as d}from"./p-DVnVdicA.js";import{O as c}from"./p-BlJnA265.js";import{i as h}from"./p-BdTK0wi9.js";import{B as n}from"./p-pOQo1ck9.js";import{U as l}from"./p-BrLVc_85.js";import"./p-CZfYo5-1.js";import{B as f}from"./p-XYgDHrVL.js";import{S as m,P as b}from"./p-B-iV5cYd.js";import{u as p,a as u,b as y}from"./p-1ydcg9ti.js";import"./p-SdntD1xf.js";import"./p-C5RuuShs.js";import"./p-D9lioyBA.js";import"./p-CfBKn_Vl.js";import"./p-Dcbfnfn2.js";import"./p-BnE7qgLh.js";import"./p-BFTU3MAI.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-7MWRbTXI.js";import"./p-KoNvNGKV.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-JOSiCHl7.js";import"./p-yH3TC3ZQ.js";const j=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event")}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:e}){this.coreComponent.validateAndSubmit({onSuccess:e})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=i({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.patchOwner=r({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.postOwner=a({authToken:this.authToken,service:new o}))}render(){return s("owner-form-core",{key:"253fc2c5cf1d8c3d18cbcc43569c50a1dd4394f4",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,ref:e=>this.coreComponent=e})}},k=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.formLoading=t(this,"formLoading"),this.ownerSubmitted=t(this,"ownerSubmitted"),this.isLoading=!1,this.errors={},this.owner={},this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:e=>{this.instantiateOwner(e.data)},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({message:e,errorCode:t,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((e=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async e=>{this.owner=Object.assign({},new c(e)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?f.updateOwner:f.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:f.removeOwner})},this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(e){e.preventDefault(),await this.validate()&&this.submit()}get payload(){let e=new c(this.formController.values.getValue()).payload;return this.ownerId?e:Object.assign(Object.assign({},e),{business_id:this.businessId})}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new d(h("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){return s("form",{key:"cf3b084a99c3cfc77af24f09feeda0468c2e6956",onSubmit:this.validateAndSubmit},s("fieldset",{key:"3c78499a7df3496cd44416b96fe5fef44cc4d393"},s("legend",{key:"5aee34b86e10d914964de3f62408b1f1e7899479",class:"fw-semibold fs-5",part:l},this.formTitle),s("br",{key:"4ca0d4c213f166f7ea10c0bfe276673ff077e1ba"}),s("div",{key:"95e485006a1111418ed409e7138c7f3098b9517c",class:"row gy-3"},s("owner-form-inputs",{key:"1df9b40c91223253394c50312950b6b3d42906ff",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController}),s("div",{key:"f1e2adc3111366c43a9a0d3cbed9e059916320f8",class:"d-flex gap-2 justify-content-start"},s(n,{key:"ea19095c86d12cdabd48ad8618213aa06635b80f",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(n,{key:"cb60a69f0e3252bb7623945610c5282bedfffe32",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"db9fb6f130a114e82de0fb806ca1d70ac254f032"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},w=class{constructor(t){e(this,t),this.inputHandler=(e,t)=>{p(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{u(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){return s("div",{key:"97911ef690cb7932c0e382cfa79fa3333536055c",class:"row gy-3"},s("div",{key:"0f15a832bcde62a50fb791e008dcd7da68c8da6b",class:"col-12 col-md-8"},s("form-control-text",{key:"fdc50a224e7e17d2923d6eb1fb274103e0d55710",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"c4be24670525f2b90fd6de5a0035241190dadd09",class:"col-12 col-md-4"},s("form-control-text",{key:"8752eb6ea1d24189fd1a4d799145b5bbdc0413f2",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"9d19f00bbd407ca55455947d84183530920d799c",class:"col-12 col-md-6"},s("form-control-text",{key:"10ffe5b44086f623fb9f9d27f4a72cd251589bd0",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"7c32fc26abbc0bc16b0a50d8bbfb47c121c7c62d",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"e6b63872de5bd5cc98d61c8e6ebeb2a3f8443fb1",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:b.US})),s("div",{key:"2e7eded46b1162d9ecf8c3badc869e98a710abee",class:"col-12 col-md-4"},s("form-control-date",{key:"2c4b8c126d7505dadb3fe06b3b5cab5e83b91c23",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>y(e,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"dd96fdddddfb082fc0ce670f673decc97956c242",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"640cc2e749dc64879d8211c3340b7c273d3cb817",name:"identification_number",label:"SSN",defaultValue:this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:m,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),s("div",{key:"681b2898183d73559150b5debef39901c4679eba",class:"col-12"},s("justifi-identity-address-form",{key:"e2de39be536c0854592a5132a6a9ac9d761a0f9b",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate})))}};export{j as justifi_owner_form,k as owner_form_core,w as owner_form_inputs}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as t,h as a,H as e}from"./p-N3w5zrz2.js";import{a2 as i,a3 as c,a4 as r,a5 as h,a6 as f,l as o}from"./p-BrLVc_85.js";import{F as b}from"./p-DpbCEDZ3.js";import{F as m}from"./p-Zuu7wsNB.js";import"./p-CZfYo5-1.js";const n=class{constructor(a){s(this,a),this.formControlInput=t(this,"formControlInput"),this.formControlBlur=t(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=s=>{s.preventDefault();const t=s.target,a=t.getAttribute("name");this.inputHandler(a,t.checked),this.formControlInput.emit({name:a,value:t.value})},this.updateInput=s=>{this.checkboxElement.checked=s}}get part(){return this.errorText?i:this.isFocused&&this.checked?c:this.isFocused?r:this.checked?h:f}render(){return a(e,{key:"ec1a11fd6b5d97b4a6136b91b750c0fde7f9e7fd"},a("div",{key:"b56aa5fb171204bcebffa8aa22e8b5cc7ae8daf1",class:"form-group d-flex flex-column"},a("div",{key:"da21623174fbc8fca6f063771f234f755945a838",class:"form-check"},a("input",{key:"f78acb43994063f81d823907378b9aa71a752f66",ref:s=>this.checkboxElement=s,type:"checkbox",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,checked:this.checked}),a("label",{key:"7ae4a71d065ef48cc261a4850b6baac79640836c",class:"form-check-label",htmlFor:this.name,part:o},this.label)),a(b,{key:"cb50d3eebf345d1db44cf377da8b3c1f709b733c",helpText:this.helpText,name:this.name}),a(m,{key:"20990b29fe22a5126a304788feb2c0498fb4925b",errorText:this.errorText,name:this.name})))}};export{n as form_control_checkbox}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as s,r as i,c as t}from"./p-N3w5zrz2.js";import{c as r,F as e}from"./p-
|
|
1
|
+
import{h as s,r as i,c as t}from"./p-N3w5zrz2.js";import{c as r,F as e}from"./p-DVnVdicA.js";import{b as o,a}from"./p-d6tXI5Iw.js";import{i as p,a as h}from"./p-BdTK0wi9.js";import"./p-CfBKn_Vl.js";import"./p-BnE7qgLh.js";import{C as n,a as l}from"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-KoNvNGKV.js";import{B as m,b as c}from"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c as d,J as j}from"./p-Ckf8pUs-.js";import{B as u}from"./p-pOQo1ck9.js";import{S as f}from"./p-o5iASgog.js";import{H as v}from"./p-DvuraFxP.js";import"./p-CZfYo5-1.js";import{S as b}from"./p-C9oyC18r.js";import{B as w}from"./p-XYgDHrVL.js";import{m as C,b as g}from"./p-BTS3E50C.js";import{B}from"./p-B3AHoKpE.js";import"./p-BFTU3MAI.js";import"./p-JOSiCHl7.js";import"./p-BX8GieXu.js";import"./p-yH3TC3ZQ.js";import"./p-Dcbfnfn2.js";import"./p-Dt-vy9Le.js";import"./p-B0XIc_FO.js";import"./p-D9lioyBA.js";import"./p-BrLVc_85.js";import"./p-C5RuuShs.js";const y=r(Object.assign(Object.assign({},o().fields),{legal_address:h(),additional_questions:a(),representative:p("representative")})),S=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(b,{width:"25%"})),s("div",{class:"col-12"},s(b,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"50%"}),s(b,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"65%"}),s(b,{width:"35%"}))),x=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(b,{width:"40%",height:"40px"})),s(S,null),s(S,null),s(S,null)),k=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event"),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const i=new m(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new m(Object.assign(Object.assign({},i),s)).payload;this.patchBusiness({payload:t,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){d(),this.analytics=new j(this),this.formController=new e(y),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=C({authToken:this.authToken,businessId:this.businessId,service:new B}),this.patchBusiness=g({authToken:this.authToken,businessId:this.businessId,service:new B}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:l.MISSING_PROPS,severity:n.ERROR})}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(v,{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(u,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:w.submit}),isLoading:this.isSaving},"Submit")))))}};export{k as justifi_business_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as s}from"./p-D9lioyBA.js";import"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-KoNvNGKV.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";const e=s();class t{async fetchDispute(s,t){return e.get({endpoint:`disputes/${s}`,authToken:t})}async updateDisputeResponse(s,t,p){return e.patch({endpoint:`disputes/${s}/response`,body:p,authToken:t})}async submitDisputeResponse(s,t,p){return e.post({endpoint:`disputes/${s}/response`,body:p,authToken:t})}async createDisputeEvidence(s,t,p){return e.put({endpoint:`disputes/${s}/evidence`,body:p,authToken:t})}}export{t as D}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as t,r as e,c as a}from"./p-N3w5zrz2.js";import{c as i}from"./p-CfBKn_Vl.js";import{a as s}from"./p-BnE7qgLh.js";import{C as o,a as r}from"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import{d as n}from"./p-KoNvNGKV.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c as p,J as d}from"./p-Ckf8pUs-.js";import{g as h,a as l}from"./p-C5RuuShs.js";import{P as f}from"./p-Cm9gh1Sz.js";import{T as u,l as m,a as b,b as y,c as _,d as w,e as j,f as T,g,h as v,i as k,j as C,k as D}from"./p-CYTPbCLN.js";import{S}from"./p-o5iASgog.js";import{T as I}from"./p-CZfYo5-1.js";import{P,Q as A}from"./p-BrLVc_85.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-B0XIc_FO.js";import"./p-D9lioyBA.js";import"./p-DgIkDBGX.js";const B={id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:P,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:P,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:P,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:P,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:P,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:P,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:P,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:P,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:P,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:P,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},q={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},O={id:e=>t("td",{part:A(e.id)},e.id),account_id:e=>t("td",{part:A(e.account_id)},e.account_id),payout_id:e=>t("td",{part:A(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:A(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:A(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:A(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:A(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:A(e.currency)},e.currency),description:e=>t("td",{part:A(e.description)},e.description),source_id:e=>t("td",{part:A(e.source_id)},e.source_id),txn_type:e=>t("td",{part:A(e.txn_type)},q[e.txn_type]),created_at:e=>t("td",{part:A(e.created_at)},t("div",{class:"fw-bold"},s(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:A(e.available_on)},t("div",{class:"fw-bold"},s(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:A(e.updated_at)},t("div",{class:"fw-bold"},s(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},s(e.updated_at,{showTime:!0})))},E=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event"),this.errorEvent=a(this,"error-event"),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=c,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:I.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:I.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:I.row,data:a})}}componentWillLoad(){this.transactionsTable=new u(this.balanceTransactions,this.columns,B,O),p(),this.analytics=new d(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:i,onSuccess:s,onError:r,final:c})=>{var p;try{const c=await a.fetchPayoutTransactions(t,e,i);c.error?r({error:l(c.error),code:h(null===(p=c.error)||void 0===p?void 0:p.code),severity:o.ERROR}):s({balanceTransactions:c.data.map((t=>new n(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=h(null==t?void 0:t.code);r({error:l(t),code:e,severity:o.ERROR})}finally{c()}})({accountId:i.accountId,authToken:this.authToken,service:new f})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,o.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(S,{key:"d37f96bf4e1d40607d3190791f513df5c1ce02d1"},t(m,{key:"a6d2b2c342b6286630acb804b93c846ac42eff9b"},t(b,{key:"abcb7a3bbca27973bafdf0a0a1d9316d9e668aa9"},t(y,{key:"e79c0ee71e45ca1379e354f939368cacbf1bd74e"},t(_,{key:"c64962612a826a5e53c921f43170f1d1ba16399a"},this.transactionsTable.columnData.map((t=>t)))),t(w,{key:"7b33c299ac42c4e668cb4c967ecc5324ec56ede3"},t(j,{key:"096000771b0ce2fe37db3329315bd780af9977a1",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(T,{key:"48ff70675d33875b8fdcf7c7ddf9ceed413ca2e8",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(g,{key:"4ffffbd73a18ef281209adbe870383f744d51da5",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(v,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(k,{key:"8ba623495a597e10bc8708b9984c9da92e3750a4"},t(C,{key:"01f6405cef206cbaf487013370ccd7c312eca3b5"},t(D,{key:"0b94346d3ed5f431393e2df93f0baa81b8804d2b",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"c7a24d435a90c4f8db5c0f71b1a120b11cd01b7b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{E as justifi_payout_transactions_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e}from"./p-DVnVdicA.js";import{d as s,t as n,i as a,b as i,a as r,p as t,e as u,w as _,c as o,o as c,s as l,r as b,f as m,g as p,h as d,j as g}from"./p-JOSiCHl7.js";const v=c=>{const l=e({legal_name:o.required("Enter legal name"),website_url:_.required("Enter business website url"),email:u.required("Enter business email"),phone:t.required("Enter phone number"),doing_business_as:r.nullable(),classification:i.required("Select business classification"),industry:a.required("Enter a business industry"),tax_id:n.required("Enter valid tax ID (SSN or EIN) without dashes"),date_of_incorporation:s.required("Enter date of incorporation")}),b=e({legal_name:o.required("Enter legal name"),website_url:_.nullable(),email:u.nullable(),phone:t.nullable(),doing_business_as:r.nullable(),classification:i.nullable(),industry:a.nullable(),tax_id:n.nullable(),date_of_incorporation:s.nullable()});return c?b:l},y=s=>{const n=e({business_revenue:g.required("Enter business revenue"),business_payment_volume:d.required("Enter business payment volume"),business_when_service_received:p.required("Select when service is received"),business_recurring_payments:m.required("Select recurring payments"),business_recurring_payments_percentage:b,business_seasonal:l.required("Select business seasonal"),business_other_payment_details:c.nullable()}),a=e({business_revenue:g.nullable(),business_payment_volume:d.nullable(),business_when_service_received:p.nullable(),business_recurring_payments:m.nullable(),business_recurring_payments_percentage:b,business_seasonal:l.nullable(),business_other_payment_details:c.nullable()});return s?a:n};export{y as a,v as b}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as i,h as t}from"./p-N3w5zrz2.js";import{E as r}from"./p-
|
|
1
|
+
import{r as s,c as i,h as t}from"./p-N3w5zrz2.js";import{E as r}from"./p-Clv1feia.js";import{B as o}from"./p-B3AHoKpE.js";import{m as p}from"./p-Cs0cIpIm.js";import{C as e,a as m}from"./p-SdntD1xf.js";import{c as n,J as h}from"./p-Ckf8pUs-.js";import"./p-BrLVc_85.js";import"./p-D9lioyBA.js";import"./p-CfBKn_Vl.js";import"./p-Dcbfnfn2.js";import"./p-BnE7qgLh.js";import"./p-BFTU3MAI.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-7MWRbTXI.js";import"./p-KoNvNGKV.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-C5RuuShs.js";import"./p-B0XIc_FO.js";const a=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){n(),this.analytics=new h(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:m.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR});this.getBusiness=p({id:this.businessId,authToken:this.authToken,service:new o})}render(){return this.errorMessage?r(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness,"onError-event":this.handleErrorEvent})}};export{a as justifi_business_details}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i}from"./p-N3w5zrz2.js";import{C as s,a as r}from"./p-SdntD1xf.js";import{g as o,a as c}from"./p-C5RuuShs.js";import{C as a}from"./p-Ds11n2AD.js";import{c as n,J as h}from"./p-Ckf8pUs-.js";import"./p-D9lioyBA.js";import"./p-CfBKn_Vl.js";import"./p-Dcbfnfn2.js";import"./p-BnE7qgLh.js";import"./p-BFTU3MAI.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-7MWRbTXI.js";import"./p-KoNvNGKV.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-B0XIc_FO.js";const d=class{constructor(i){t(this,i),this.errorEvent=e(this,"error-event"),this.loadedEvent=e(this,"loaded"),this.errorMessage=""}componentWillLoad(){n(),this.analytics=new h(this),this.initializeGetCheckout()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeGetCheckout(){this.authToken&&this.checkoutId?(this.getCheckout=(({authToken:t,checkoutId:e,service:i})=>async({onSuccess:r,onError:a})=>{var n;try{const h=await i.fetchCheckout(t,e);if(h.error)return a({error:c(h.error),code:o(null===(n=h.error)||void 0===n?void 0:n.code),severity:s.ERROR});r({checkout:h.data})}catch(t){const e=o(null==t?void 0:t.code);return a({error:t.message||t,code:e,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new a}),this.complete=(({authToken:t,checkoutId:e,service:i})=>async({payment:r,onSuccess:a,onError:n})=>{var h;try{const d=await i.complete(t,e,r);if(d.error)return n({error:c(d.error),code:o(null===(h=d.error)||void 0===h?void 0:h.code),severity:s.ERROR});a(d)}catch(t){const e=o(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new a})):this.errorEvent.emit({message:"auth-token and checkout-id are required",errorCode:r.MISSING_PROPS,severity:s.ERROR})}propChanged(){this.initializeGetCheckout()}async fillBillingForm(t){this.checkoutCoreRef.fillBillingForm(t)}async validate(){const{isValid:t}=await this.checkoutCoreRef.validate();return{isValid:t}}render(){return i("justifi-checkout-core",{key:"c1c7cf4f1aadce928e3ed6a6ae05a7824d875d68",getCheckout:this.getCheckout,authToken:this.authToken,complete:this.complete,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,disableBnpl:this.disableBnpl,disablePaymentMethodGroup:this.disablePaymentMethodGroup,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,ref:t=>{t&&(this.checkoutCoreRef=t)}},i("div",{key:"7a4be7220e5eb199f94c5086c23e10dce68d4854",slot:"insurance"},i("slot",{key:"f5db23ef6dc82d0521518ea2dbfe99d8c8b6c2cc",name:"insurance"})))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"]}}};export{d as justifi_checkout}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as a}from"./p-N3w5zrz2.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as d,c as i}from"./p-Cwt_9Jzb.js";import{
|
|
1
|
+
import{r as e,h as a}from"./p-N3w5zrz2.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as d,c as i}from"./p-Cwt_9Jzb.js";import{e as l,f as c,t as r,g as f,h as o,j as n}from"./p-BrLVc_85.js";import{S as p}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{c as b,a as m}from"./p-BnE7qgLh.js";import"./p-BFTU3MAI.js";import"./p-Dcbfnfn2.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=b(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({payment_id:this.paymentId,terminal_id:this.terminalId,payment_status:this.paymentStatus,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(d[e]=a)}))}get paymentStatusOptions(){return[{label:"All",value:""},{label:"Pending",value:"pending"},{label:"Authorized",value:"authorized"},{label:"Succeeded",value:"succeeded"},{label:"Failed",value:"failed"},{label:"Disputed",value:"disputed"},{label:"Refunded",value:"refunded"}]}render(){const e=Object.assign({},s);return a(p,{key:"41c3ce22404b0e8e536d8c230886eadc34b77208"},a("table-filters-menu",{key:"864a91207169043f08a47c90c8f867d0e32031e2",params:e,clearParams:i,part:l},a("div",{key:"d2a98ef4ab0094f708de21c2c3e02ec149b5e72f",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"00b9b884348d47e7dc1670064c1c0486eefc0a21",class:"p-2"},a("form-control-text",{key:"405ee21a3780942784738a0cc0a3b423a03c2b5e",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.paymentId||s.payment_id,disabled:!!this.paymentId,part:c})),a("div",{key:"5401d6d05995af1fa7ab801987d79711c16aecc1",class:"p-2"},a("form-control-text",{key:"e1518fddbd3e62af0ddce873a191376b2504c9e0",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:r})),a("div",{key:"131c39879c3823c3d380d4939e6b93a2771bc86a",class:"p-2"},a("form-control-select",{key:"856053d6ce5381956a18c6a21df169898fa71616",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentStatus||s.payment_status,disabled:!!this.paymentStatus,part:f})),a("div",{key:"76ad87197605e45ae06fefc547755df29741fa18",class:"p-2"},a("form-control-date",{key:"7cdd9b684a87e2da99ecfe963349433bf7ac1d45",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:m(this.createdAfter,{showInputDateTime:!0})||m(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:o})),a("div",{key:"ae78b441f6dbbbdca902fb4f83f7531e80322ff2",class:"p-2"},a("form-control-date",{key:"34d321e3cd47ccd95ea30d7a54cfb36e34af64db",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:m(this.createdBefore,{showInputDateTime:!0})||m(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:n})))))}};export{u as justifi_payments_list_filters}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as e,H as a}from"./p-N3w5zrz2.js";import{b as i,R as r,a as o,c,l as h,S as d}from"./p-BrLVc_85.js";import{F as n}from"./p-DpbCEDZ3.js";import{F as f}from"./p-Zuu7wsNB.js";import"./p-CZfYo5-1.js";import{f as l}from"./p-BnE7qgLh.js";import"./p-BFTU3MAI.js";const p=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.defaultValue="0",this.formatRawValue=t=>t.replace(/\D/g,""),this.formatDisplayValue=t=>l(+t,void 0,!0),this.updateInput=t=>{const s=this.formControl.name,e=this.formatRawValue(t);this.formControl.value=this.formatDisplayValue(e),this.inputHandler(s,e),this.formControlInput.emit({name:s,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get inputPart(){return this.errorText?i:this.disabled?r:this.isFocused?o:c}render(){return e(a,{key:"49b912649df6d869e20a79017363c738a17e00c1"},e("div",{key:"2c30b89dd46fafe1cd04d186c90ee8389585e1b8",class:"form-group d-flex flex-column"},e("label",{key:"e526de8712e2ea3c91ce897d89c5246bbf4391a1",part:h,class:"form-label",htmlFor:this.name},this.label),e(n,{key:"c9e7a522371ac171186d45da231943c6cbc202fa",name:this.name,helpText:this.helpText}),e("div",{key:"4e9dc549b30327528fa099ea9b451659def605f7",class:"input-group"},e("span",{key:"5f4d6854d6cc15b7d0dbbdcf08c9dd25fec5c8d0",class:"input-group-text",part:d},"$"),e("input",{key:"c04d0dce879da4d53bf6dc4925bac7729408a09f",ref:t=>this.formControl=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:t=>this.updateInput(t.target.value),onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.inputPart,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled})),e(f,{key:"4ff864c4ffc66727ac14ef6e6cb7b25c32dd6867",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{p as form_control_monetary}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as n,h as i,H as t,a as o}from"./p-N3w5zrz2.js";import{g as r}from"./p-BFTU3MAI.js";import{F as a}from"./p-Zuu7wsNB.js";import{p as s}from"./p-B0XIc_FO.js";import{i as c}from"./p-CSO7ljYx.js";import{i as u,b as d,a as f,c as l,l as m}from"./p-BrLVc_85.js";import"./p-Dcbfnfn2.js";var h,w,b={exports:{}},g=r((h||(h=1,w=b,console.info("\nIFRAME-RESIZER\n\nIframe-Resizer 5 is now available via the following two packages:\n\n * @iframe-resizer/parent\n * @iframe-resizer/child\n\nAdditionally their are also new versions of iframe-resizer for React, Vue, and jQuery.\n\nVersion 5 of iframe-resizer has been extensively rewritten to use modern browser APIs, which has enabled significantly better performance and greater accuracy in the detection of content resizing events.\n\nPlease see https://iframe-resizer.com/upgrade for more details.\n"),function(e){if("undefined"!=typeof window){var n,i,t=0,o=!1,r=!1,a="[iFrameSizer]",s=null,c=window.requestAnimationFrame,u=Object.freeze({max:1,scroll:1,bodyScroll:1,documentElementScroll:1}),d={},f=null,l=Object.freeze({autoResize:!0,bodyBackground:null,bodyMargin:null,bodyMarginV1:8,bodyPadding:null,checkOrigin:!0,inPageLinks:!1,enablePublicMethods:!0,heightCalculationMethod:"bodyOffset",id:"iFrameResizer",interval:32,license:"1jqr0si6pnt",log:!1,maxHeight:1/0,maxWidth:1/0,minHeight:0,minWidth:0,mouseEvents:!0,resizeFrom:"parent",scrolling:!1,sizeHeight:!0,sizeWidth:!1,warningTimeout:5e3,tolerance:0,widthCalculationMethod:"scroll",onClose:function(){return!0},onClosed:function(){},onInit:function(){},onMessage:function(){k("onMessage function not defined")},onMouseEnter:function(){},onMouseLeave:function(){},onResized:function(){},onScroll:function(){return!0}}),m={};window.jQuery!==e&&((i=window.jQuery).fn?i.fn.iFrameResize||(i.fn.iFrameResize=function(e){return this.filter("iframe").each((function(n,i){L(i,e)})).end()}):y("","Unable to bind to jQuery, it is not fully loaded.")),w.exports=P(),window.iFrameResize=window.iFrameResize||P()}function h(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function b(e,n,i){e.addEventListener(n,i,!1)}function g(e,n,i){e.removeEventListener(n,i,!1)}function p(e){return d[e]?d[e].log:o}function v(e,n){z("log",e,n,p(e))}function y(e,n){z("info",e,n,p(e))}function k(e,n){z("warn",e,n,!0)}function z(e,n,i,t){!0===t&&"object"==typeof window.console&&console[e](function(e){return a+"["+function(e){var n="Host page: "+e;return window.top!==window.self&&(n=window.parentIFrame&&window.parentIFrame.getId?window.parentIFrame.getId()+": "+e:"Nested host page: "+e),n}(e)+"]"}(n),i)}function x(e){function n(){i("Height"),i("Width"),N((function(){S(W),O(A),l("onResized",W)}),W,"init")}function i(e){var n=Number(d[A]["max"+e]),i=Number(d[A]["min"+e]),t=e.toLowerCase(),o=Number(W[t]);v(A,"Checking "+t+" is in range "+i+"-"+n),o<i&&(o=i,v(A,"Set "+t+" to min value")),o>n&&(o=n,v(A,"Set "+t+" to max value")),W[t]=""+o}function t(e){return L.slice(L.indexOf(":")+7+e)}function o(e,n){var i,t;i=function(){var i,t;C("Send Page Info","pageInfo:"+(i=document.body.getBoundingClientRect(),t=W.iframe.getBoundingClientRect(),JSON.stringify({iframeHeight:t.height,iframeWidth:t.width,clientHeight:Math.max(document.documentElement.clientHeight,window.innerHeight||0),clientWidth:Math.max(document.documentElement.clientWidth,window.innerWidth||0),offsetTop:parseInt(t.top-i.top,10),offsetLeft:parseInt(t.left-i.left,10),scrollTop:window.pageYOffset,scrollLeft:window.pageXOffset,documentHeight:document.documentElement.clientHeight,documentWidth:document.documentElement.clientWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})),e,n)},m[t=n]||(m[t]=setTimeout((function(){m[t]=null,i()}),32))}function r(e){var n=e.getBoundingClientRect();return j(A),{x:Math.floor(Number(n.left)+Number(s.x)),y:Math.floor(Number(n.top)+Number(s.y))}}function c(e){var n=e?r(W.iframe):{x:0,y:0},i={x:Number(W.width)+n.x,y:Number(W.height)+n.y};v(A,"Reposition requested from iFrame (offset x:"+n.x+" y:"+n.y+")"),window.top===window.self?(s=i,u(),v(A,"--")):window.parentIFrame?window.parentIFrame["scrollTo"+(e?"Offset":"")](i.x,i.y):k(A,"Unable to scroll to requested position, window.parentIFrame not found")}function u(){!1===l("onScroll",s)?T():O(A)}function f(e){var n={};if(0===Number(W.width)&&0===Number(W.height)){var i=t(9).split(":");n={x:i[1],y:i[0]}}else n={x:W.width,y:W.height};l(e,{iframe:W.iframe,screenX:Number(n.x),screenY:Number(n.y),type:W.type})}function l(e,n){return I(A,e,n)}var h,w,p,z,x,M,L=e.data,W={},A=null;"[iFrameResizerChild]Ready"===L?function(){for(var e in d)C("iFrame requested init",E(e),d[e].iframe,e)}():a===(""+L).slice(0,13)&&L.slice(13).split(":")[0]in d?(z=(p=L.slice(13).split(":"))[1]?parseInt(p[1],10):0,x=d[p[0]]&&d[p[0]].iframe,M=getComputedStyle(x),W={iframe:x,id:p[0],height:z+function(e){return"border-box"!==e.boxSizing?0:(e.paddingTop?parseInt(e.paddingTop,10):0)+(e.paddingBottom?parseInt(e.paddingBottom,10):0)}(M)+function(e){return"border-box"!==e.boxSizing?0:(e.borderTopWidth?parseInt(e.borderTopWidth,10):0)+(e.borderBottomWidth?parseInt(e.borderBottomWidth,10):0)}(M),width:p[2],type:p[3]},d[A=W.id]&&(d[A].loaded=!0),(w=W.type in{true:1,false:1,undefined:1})&&v(A,"Ignoring init message from meta parent page"),!w&&function(e){var n=!0;return d[e]||(n=!1,k(W.type+" No settings for "+e+". Message was: "+L)),n}(A)&&(v(A,"Received: "+L),h=!0,null===W.iframe&&(k(A,"IFrame ("+W.id+") not found"),h=!1),h&&function(){var n,i=e.origin,t=d[A]&&d[A].checkOrigin;if(t&&""+i!="null"&&!(t.constructor===Array?function(){var e=0,n=!1;for(v(A,"Checking connection is from allowed list of origins: "+t);e<t.length;e++)if(t[e]===i){n=!0;break}return n}():(v(A,"Checking connection is from: "+(n=d[A]&&d[A].remoteHost)),i===n)))throw new Error("Unexpected message received from: "+i+" for "+W.iframe.id+". Message was: "+e.data+". This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains.");return!0}()&&function(){switch(d[A]&&d[A].firstRun&&d[A]&&(d[A].firstRun=!1),W.type){case"close":F(W.iframe);break;case"message":h=t(6),v(A,"onMessage passed: {iframe: "+W.iframe.id+", message: "+h+"}"),l("onMessage",{iframe:W.iframe,message:JSON.parse(h)}),v(A,"--");break;case"mouseenter":f("onMouseEnter");break;case"mouseleave":f("onMouseLeave");break;case"autoResize":d[A].autoResize=JSON.parse(t(9));break;case"scrollTo":c(!1);break;case"scrollToOffset":c(!0);break;case"pageInfo":o(d[A]&&d[A].iframe,A),function(){function e(e,t){function r(){d[i]?o(d[i].iframe,i):n()}["scroll","resize"].forEach((function(n){v(i,e+n+" listener for sendPageInfo"),t(window,n,r)}))}function n(){e("Remove ",g)}var i=A;e("Add ",b),d[i]&&(d[i].stopPageInfo=n)}();break;case"pageInfoStop":d[A]&&d[A].stopPageInfo&&(d[A].stopPageInfo(),delete d[A].stopPageInfo);break;case"inPageLink":i=t(9).split("#")[1]||"",a=decodeURIComponent(i),(m=document.getElementById(a)||document.getElementsByName(a)[0])?(e=r(m),v(A,"Moving to in page link (#"+i+") at x: "+e.x+" y: "+e.y),s={x:e.x,y:e.y},u(),v(A,"--")):window.top===window.self?v(A,"In page link #"+i+" not found"):window.parentIFrame?window.parentIFrame.moveToAnchor(i):v(A,"In page link #"+i+" not found and window.parentIFrame not found");break;case"reset":R(W);break;case"init":n(),l("onInit",W.iframe);break;default:0===Number(W.width)&&0===Number(W.height)?k("Unsupported message received ("+W.type+"), this is likely due to the iframe containing a later version of iframe-resizer than the parent page"):n()}var e,i,a,m,h}())):y(A,"Ignored: "+L)}function I(e,n,i){var t=null,o=null;if(d[e]){if("function"!=typeof(t=d[e][n]))throw new TypeError(n+" on iFrame["+e+"] is not a function");o=t(i)}return o}function M(e){delete d[e.id]}function F(e){var i=e.id;if(!1!==I(i,"onClose",i)){v(i,"Removing iFrame: "+i);try{e.parentNode&&e.parentNode.removeChild(e)}catch(e){k(e)}I(i,"onClosed",i),v(i,"--"),M(e),n&&(n.disconnect(),n=null)}else v(i,"Close iframe cancelled by onClose event")}function j(n){null===s&&v(n,"Get page position: "+(s={x:window.pageXOffset===e?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===e?document.documentElement.scrollTop:window.pageYOffset}).x+","+s.y)}function O(e){null!==s&&(window.scrollTo(s.x,s.y),v(e,"Set page position: "+s.x+","+s.y),T())}function T(){s=null}function R(e){v(e.id,"Size reset requested by "+("init"===e.type?"host page":"iFrame")),j(e.id),N((function(){S(e),C("reset","reset",e.iframe,e.id)}),e,"reset")}function S(e){function n(n){r||"0"!==e[n]||(r=!0,v(t,"Hidden iFrame detected, creating visibility listener"),function(){function e(){Object.keys(d).forEach((function(e){!function(e){function n(n){return"0px"===(d[e]&&d[e].iframe.style[n])}d[e]&&null!==d[e].iframe.offsetParent&&(n("height")||n("width"))&&C("Visibility change","resize",d[e].iframe,e)}(e)}))}function n(n){v("window","Mutation observed: "+n[0].target+" "+n[0].type),W(e,16)}var i,t=h();t&&(i=document.querySelector("body"),new t(n).observe(i,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}))}())}function i(i){!function(n){e.id?(e.iframe.style[n]=e[n]+"px",v(e.id,"IFrame ("+t+") "+n+" set to "+e[n]+"px")):v("undefined","messageData id not set")}(i),n(i)}var t=e.iframe.id;d[t]&&(d[t].sizeHeight&&i("height"),d[t].sizeWidth&&i("width"))}function N(e,n,i){i!==n.type&&c&&!window.jasmine?(v(n.id,"Requesting animation frame"),c(e)):e()}function C(e,n,i,t,o){var r,s=!1;d[t=t||i.id]&&(i&&"contentWindow"in i&&null!==i.contentWindow?(v(t,"["+e+"] Sending msg to iframe["+t+"] ("+n+") targetOrigin: "+(r=d[t]&&d[t].targetOrigin)),i.contentWindow.postMessage(a+n,r)):k(t,"["+e+"] IFrame("+t+") not found"),o&&d[t]&&d[t].warningTimeout&&(d[t].msgTimeout=setTimeout((function(){!d[t]||d[t].loaded||s||(s=!0,k(t,"IFrame has not responded within "+d[t].warningTimeout/1e3+" seconds. Check iFrameResizer.contentWindow.js has been loaded in iFrame. This message can be ignored if everything is working, or you can set the warningTimeout option to a higher value or zero to suppress this warning."))}),d[t].warningTimeout)))}function E(e){return e+":"+d[e].bodyMarginV1+":"+d[e].sizeWidth+":"+d[e].log+":"+d[e].interval+":"+d[e].enablePublicMethods+":"+d[e].autoResize+":"+d[e].bodyMargin+":"+d[e].heightCalculationMethod+":"+d[e].bodyBackground+":"+d[e].bodyPadding+":"+d[e].tolerance+":"+d[e].inPageLinks+":"+d[e].resizeFrom+":"+d[e].widthCalculationMethod+":"+d[e].mouseEvents}function L(i,r){function a(e){var n=e.split("Callback");if(2===n.length){var i="on"+n[0].charAt(0).toUpperCase()+n[0].slice(1);this[i]=this[e],delete this[e],k(f,"Deprecated: '"+e+"' has been renamed '"+i+"'. The old method will be removed in the next major version.")}}var s,c,f=function(e){if("string"!=typeof e)throw new TypeError("Invaild id for iFrame. Expected String");var n;return""===e&&(i.id=(n=r&&r.id||l.id+t++,null!==document.getElementById(n)&&(n+=t++),e=n),o=(r||{}).log,v(e,"Added missing iframe ID: "+e+" ("+i.src+")")),e}(i.id);f in d&&"iFrameResizer"in i?k(f,"Ignored iFrame, already setup."):(function(e){var n;e=e||{},d[f]=Object.create(null),d[f].iframe=i,d[f].firstRun=!0,d[f].remoteHost=i.src&&i.src.split("/").slice(0,3).join("/"),function(e){if("object"!=typeof e)throw new TypeError("Options is not an object")}(e),Object.keys(e).forEach(a,e),function(e){for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(d[f][n]=Object.prototype.hasOwnProperty.call(e,n)?e[n]:l[n])}(e),d[f]&&(d[f].targetOrigin=!0===d[f].checkOrigin?""===(n=d[f].remoteHost)||null!==n.match(/^(about:blank|javascript:|file:\/\/)/)?"*":n:"*")}(r),function(){switch(v(f,"IFrame scrolling "+(d[f]&&d[f].scrolling?"enabled":"disabled")+" for "+f),i.style.overflow=!1===(d[f]&&d[f].scrolling)?"hidden":"auto",d[f]&&d[f].scrolling){case"omit":break;case!0:i.scrolling="yes";break;case!1:i.scrolling="no";break;default:i.scrolling=d[f]?d[f].scrolling:"no"}}(),function(){function e(e){var n=d[f][e];1/0!==n&&0!==n&&(i.style[e]="number"==typeof n?n+"px":n,v(f,"Set "+e+" = "+i.style[e]))}function n(e){if(d[f]["min"+e]>d[f]["max"+e])throw new Error("Value for min"+e+" can not be greater than max"+e)}n("Height"),n("Width"),e("maxHeight"),e("minHeight"),e("maxWidth"),e("minWidth")}(),"number"!=typeof(d[f]&&d[f].bodyMargin)&&"0"!==(d[f]&&d[f].bodyMargin)||(d[f].bodyMarginV1=d[f].bodyMargin,d[f].bodyMargin=d[f].bodyMargin+"px"),s=E(f),(c=h())&&(n=function(e){if(!i.parentNode)return null;var n=new e((function(e){e.forEach((function(e){Array.prototype.slice.call(e.removedNodes).forEach((function(e){e===i&&F(i)}))}))}));return n.observe(i.parentNode,{childList:!0}),n}(c)),b(i,"load",(function(){C("iFrame.onload",s,i,e,!0),(!d[f]||!d[f].firstRun)&&d[f]&&d[f].heightCalculationMethod in u&&R({iframe:i,height:0,width:0,type:"init"})})),C("init",s,i,e,!0),d[f]&&(d[f].iframe.iFrameResizer={close:F.bind(null,d[f].iframe),removeListeners:M.bind(null,d[f].iframe),resize:C.bind(null,"Window resize","resize",d[f].iframe),moveToAnchor:function(e){C("Move to anchor","moveToAnchor:"+e,d[f].iframe,f)},sendMessage:function(e){C("Send Message","message:"+(e=JSON.stringify(e)),d[f].iframe,f)}}))}function W(e,n){null===f&&(f=setTimeout((function(){f=null,e()}),n))}function A(){"hidden"!==document.visibilityState&&(v("document","Trigger event: Visibility change"),W((function(){H("Tab Visible","resize")}),16))}function H(e,n){Object.keys(d).forEach((function(i){(function(e){return d[e]&&"parent"===d[e].resizeFrom&&d[e].autoResize&&!d[e].firstRun})(i)&&C(e,n,d[i].iframe,i)}))}function P(){function n(e,n){n&&(function(){if(!n.tagName)throw new TypeError("Object is not a valid DOM element");if("IFRAME"!==n.tagName.toUpperCase())throw new TypeError("Expected <IFRAME> tag, found <"+n.tagName+">")}(),L(n,e),i.push(n))}var i;return function(){var e,n=["moz","webkit","o","ms"];for(e=0;e<n.length&&!c;e+=1)c=window[n[e]+"RequestAnimationFrame"];c?c=c.bind(window):v("setup","RequestAnimationFrame not supported")}(),b(window,"message",x),b(window,"resize",(function(){v("window","Trigger event: resize"),W((function(){H("Window resize","resize")}),16)})),b(document,"visibilitychange",A),b(document,"-webkit-visibilitychange",A),function(t,o){switch(i=[],function(e){e&&e.enablePublicMethods&&k("enablePublicMethods option has been removed, public methods are now always available in the iFrame")}(t),typeof o){case"undefined":case"string":Array.prototype.forEach.call(document.querySelectorAll(o||"iframe"),n.bind(e,t));break;case"object":n(t,o);break;default:throw new TypeError("Unexpected data type ("+typeof o+")")}return i}}}()),b.exports));class p{constructor(e,n){this.iframe=e,this.iframeOrigin=n}postMessage(e,n){const i=Object.assign({eventType:e},n);this.iframe.contentWindow.postMessage(i,this.iframeOrigin)}addMessageListener(e){window.addEventListener("message",e)}removeMessageListener(e){window.removeEventListener("message",e)}postMessageWithResponseListener(e,n){return new Promise((i=>{const t=n=>{n.data.eventType===e&&(window.removeEventListener("message",t),i(n.data.data))};window.addEventListener("message",t),this.postMessage(e,n)}))}}const v=class{constructor(i){e(this,i),this.iframeLoaded=n(this,"iframeLoaded"),this.isFocused=!1,this.isValid=!0,this.dispatchMessageEvent=e=>{const{eventType:n,data:i}=e.data;(null==i?void 0:i.id)===this.inputId&&("focused"===n&&(this.isFocused=!0),"blurred"===n&&(this.isFocused=!1))}}disconnectedCallback(){this.frameService.removeMessageListener(this.dispatchMessageEvent)}async validate(){const e=await this.frameService.postMessageWithResponseListener("validate");return this.isValid=e.isValid,this.errorText=e.error.message,e}async tokenize(e,n,i){return this.frameService.postMessageWithResponseListener("tokenize",{clientId:e,paymentMethodMetadata:n,account:i,componentVersion:s.version})}initializeFrameCommunicationService(){var e;this.frameService=new p(this.iframeElement,this.iframeOrigin),null===(e=this.frameService)||void 0===e||e.addMessageListener(this.dispatchMessageEvent)}get part(){return this.isFocused&&!this.isValid?u:this.isValid?this.isFocused?f:l:d}get style(){return this.isFocused?this.isValid?c.focused:c.focusedAndInvalid:null}get urlParams(){const e=Object.fromEntries(Object.entries(c.fontStyles).map((([e,n])=>[e,btoa(String(n))])));return new URLSearchParams(e).toString()}render(){return i(t,{key:"7482645d98277dfb65e78a2003e020216fcb52c3",class:"form-group d-flex flex-column"},i("div",{key:"746fca9a555309152d5cf3943d31d3b3b2c9bfde",style:{visibility:this.iframeLoaded?"visible":"hidden",height:this.iframeLoaded?"auto":"0"}},i("label",{key:"55b203e278ec100baf7949a91eb6a43135c82402",class:"form-label",htmlFor:"",part:m},this.label||""),i("div",{key:"c3dd73db2accf012c5a8f3a5c8e32863fe87fd73",class:"p-0 d-flex form-control "+(this.isValid?"":"is-invalid"),part:this.part,style:Object.assign(Object.assign({},this.style),{overflow:"hidden"})},i("iframe",{key:"5eb7c35da6ca7910ccf74a24d77ee47d6b4479f9",id:this.inputId,name:this.inputId,src:`${this.iframeOrigin}?${this.urlParams}`,ref:e=>{this.iframeElement=e,this.initializeFrameCommunicationService()},width:"100%",onLoad:()=>{g({log:!1,onResized:()=>{this.iframeLoaded.emit()}},this.iframeElement)}})),i(a,{key:"291b487d0b798b6658d83b9c9f775ba4f02e09de",errorText:this.errorText,name:this.inputId})))}get el(){return o(this)}};export{v as iframe_input}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as e}from"./p-N3w5zrz2.js";import{f as t,p as s,c as r}from"./p-CXLazxt0.js";import{k as d,m as c,n as f}from"./p-BrLVc_85.js";import{S as o}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{c as i,a as p}from"./p-BnE7qgLh.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";const l=class{constructor(e){a(this,e),this.setParamsOnChange=(a,e)=>{t[a]=e},this.handleDateInput=(a,e)=>{const t=i(e,{setEndOfDay:!0});this.setParamsOnChange(a,t)}}componentWillLoad(){Object.entries({created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([a,e])=>{e&&(s[a]=e)}))}render(){const a=Object.assign({},t);return e(o,{key:"42c48bbbfa426540d33c49d5ef927d2da316fda5"},e("table-filters-menu",{key:"7741ef6667ed7dc6ebbc312f145590939ce1b071",params:a,clearParams:r,part:d},e("div",{key:"0f983dc3e6a735ad12aea940d7663bab98cf623d",class:"grid-cols-2 gap-3 p-1"},e("div",{key:"27faddc94394d5e52de9d1a65a69ecda2f840360",class:"p-2"},e("form-control-date",{key:"58cd7720a5dbcc31b32151de1402b2c4b09b94de",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:p(this.createdAfter,{showInputDate:!0})||p(t.created_after,{showInputDate:!0}),disabled:!!this.createdAfter,part:c})),e("div",{key:"a2a8d153acc9fa8371c8effb4cfd0146e31a3018",class:"p-2"},e("form-control-date",{key:"9fc58f04079445952586d0913fad92305fa537a8",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:p(this.createdBefore,{showInputDate:!0})||p(t.created_before,{showInputDate:!0}),disabled:!!this.createdBefore,part:f})))))}};export{l as justifi_payouts_list_filters}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as e}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.js";import"./p-
|
|
1
|
+
import{r as t,c as s,h as e}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.js";import"./p-BnE7qgLh.js";import"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-KoNvNGKV.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{T as a,a as r,b as h,c as o,d as p,e as c,f as n,g as f,h as m,i as d,j as b,k as j,l as g}from"./p-CYTPbCLN.js";import{T as y}from"./p-CZfYo5-1.js";import{p as u,a as l}from"./p-CraCsD1A.js";import{o as k,g as C}from"./p-Cwt_9Jzb.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BrLVc_85.js";import"./p-DgIkDBGX.js";import"./p-Cw3BMq7G.js";import"./p-BSl0X3r8.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payments=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:y.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:y.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.payments.find((t=>t.id===s));this.clickEvent.emit({name:y.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.paymentsTable=new a(this.payments,this.columns,u,l),this.getPayments&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("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:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get paymentParams(){const t=C();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 e(g,{key:"ebc89e8b55258a1442edad51d5238b8734aa345e"},e(r,{key:"b90635548604f5d486a38421e5228c61ec47c033"},e(h,{key:"3106e6ac62fc9df004a8dc1c4fa6b07763ec9d7a"},e(o,{key:"68c7767762899d3ee229835d93eb9221c8b097e9"},this.paymentsTable.columnData.map((t=>t)))),e(p,{key:"5ffee99d7437590c48f766d5bde24385ea31fdc5"},e(c,{key:"4170ce391f84c65286f358d4e1c03f67c2f9ffcc",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),e(n,{key:"8f47428d403e763179e071756582065351fa7c63",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),e(f,{key:"5857f210589dd16232338ad39897ecd4581dc7db",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((t,s)=>e(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(d,{key:"1cb054a34b99150f33cf1a008a64451e85af4700"},e(b,{key:"d203e8a928713108cbfbde297ed18bf60cd5cb8e"},e(j,{key:"710c8b5915f08f14892a04c16ac069039804b4f9",colSpan:this.paymentsTable.columnData.length},e("pagination-menu",{key:"f9f40a23e8bcbce6adf93f66e2a97f15f91f4f15",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as payments_list_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as s,c as t,h as i}from"./p-N3w5zrz2.js";import{B as e}from"./p-pOQo1ck9.js";import{S as o}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{c as a,J as r}from"./p-Ckf8pUs-.js";import"./p-CfBKn_Vl.js";import"./p-BnE7qgLh.js";import{C as p,a as c}from"./p-SdntD1xf.js";import"./p-DzFysjCc.js";import"./p-CLHwhyvu.js";import"./p-vTsHmSQQ.js";import"./p-KoNvNGKV.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import"./p-BrLVc_85.js";import"./p-B0XIc_FO.js";import"./p-D9lioyBA.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const d=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event"),this.submitButtonText="Submit",this.isLoading=!1}componentWillLoad(){a(),this.analytics=new r(this)}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}async tokenizePaymentMethod(s){let t;s&&s.preventDefault(),this.isLoading=!0;try{t=await this.paymentMethodOptionsRef.resolvePaymentMethod({isValid:!0}),t.error&&this.errorEvent.emit({errorCode:t.error.code,message:t.error.message,severity:p.ERROR})}catch(s){this.errorEvent.emit({errorCode:c.TOKENIZE_ERROR,message:s.message,severity:p.ERROR})}finally{return this.submitEvent.emit({response:t}),this.isLoading=!1,t}}async fillBillingForm(s){this.paymentMethodOptionsRef.fillBillingForm(s)}async validate(){return this.paymentMethodOptionsRef.validate()}render(){return i(o,{key:"9f12f7a83b2cb06c83694454ea5884bd7392eb83"},i("form",{key:"0a0a4b4a049aa85863ef5c65313b89ebf58455c5"},i("fieldset",{key:"c35ed423483d49615f9ebe500fcef405394f4eb6"},i("div",{key:"80419e9ca3431d9d75cffc958daab84a2c232f49",class:"row gy-3"},i("div",{key:"bd465d8b364c1bc46a6a3dee3fb74087bc087580",class:"col-12"},i("justifi-payment-method-options",{key:"c363e501622ef81c78a728ebbd15a3a4cd89867a",ref:s=>this.paymentMethodOptionsRef=s,"show-card":!this.disableCreditCard,"show-ach":!this.disableBankAccount,"show-bnpl":!1,paymentMethodGroupId:this.paymentMethodGroupId,"show-saved-payment-methods":!1,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,authToken:this.authToken,"account-id":this.accountId})),i("div",{key:"ad252991a12f6d21a012b6422ecaae13412f789b",class:"col-12"},i(e,{key:"4bb1dcdfeb71c21d3268c11fabd1ab92b43fca5e",variant:"primary",type:"submit",onClick:s=>this.tokenizePaymentMethod(s),isLoading:this.isLoading,"data-testid":"submit-button",hidden:this.hideSubmitButton},this.submitButtonText))))))}};export{d as justifi_tokenize_payment_method}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as s,c as t,h as e}from"./p-N3w5zrz2.js";import{C as i,a as r}from"./p-
|
|
1
|
+
import{r as s,c as t,h as e}from"./p-N3w5zrz2.js";import{C as i,a as r}from"./p-SdntD1xf.js";import{c as o}from"./p-Dt-vy9Le.js";import{A as h}from"./p-BrLVc_85.js";import{S as n}from"./p-o5iASgog.js";import{H as a}from"./p-DvuraFxP.js";import"./p-CZfYo5-1.js";import{B as c}from"./p-XYgDHrVL.js";import"./p-BX8GieXu.js";const p=class{constructor(e){s(this,e),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event"),this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.allowOptionalFields=!1,this.setBusinessProvisioned=()=>{this.getBusiness({onSuccess:s=>{this.businessProvisioned=o(s.data),this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:r.PROVISIONING_REQUESTED,severity:i.INFO})},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:e})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:c.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}handleFormCompleted(){this.postProvisioningData()}componentWillLoad(){this.getBusiness&&this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return e(n,{key:"e195b19df4d1061ecf8b305005faf0ffce68221e"},e("div",{key:"17d42ba0a22567dce6760e2047478eb1bc36a794",class:"row gap-3"},e(a,{key:"507788c4af5572cbb09037443ae51b505567d825",text:this.formTitle}),e("justifi-payment-provisioning-form-steps",{key:"4b7e73217ff8230756542c3b0c069e18b7f23356",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,handleFormLoading:this.handleFormLoading}),e("div",{key:"2ae1e8386114181cbd6f7999ac047b7709daa4fb",class:"d-flex justify-content-between align-items-center"},e("div",{key:"a126b618a3028c4c7a9c12145ab63e222a17e51f",class:"d-flex align-items-center",part:h},this.stepCounter),e("justifi-payment-provisioning-form-buttons",{key:"a66e1ac554e0dffa78be59df6a74d8175ba0376c",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{p as justifi_payment_provisioning_core}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as s,H as a}from"./p-N3w5zrz2.js";import{c as i,l as r,b as o,R as h,a as f}from"./p-BrLVc_85.js";import{F as l}from"./p-Zuu7wsNB.js";import"./p-CZfYo5-1.js";const c=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.maxDate=this.currentDate,this.handleFormControlInput=t=>{const e=t.target.value;this.inputHandler(this.name,e),this.formControlInput.emit({name:this.name,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}get currentDate(){return this.showTime?(new Date).toISOString().slice(0,16):(new Date).toISOString().split("T")[0]}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}get part(){let t=i;return this.errorText&&(t=o),this.disabled&&(t=h),this.isFocused&&(t=f),t}render(){return s(a,{key:"5360f4917c4af8d4e40522a25e838703d8374480"},s("div",{key:"56a3a99c81ebbf00d1ff5befa1a96363660806ae",class:"form-group d-flex flex-column"},s("div",{key:"5556531a79f39fecd1cc4027568bc3642f68ed68",class:"d-flex gap-2"},s("label",{key:"b722b7e91adaf94c57698cf5743d43d8cbb04957",part:r,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"109aabf5047eebe8254ed49379b297af05f68ac2",helpText:this.helpText})),s("input",{key:"eb9862be33313981dccda15889d315893344ff41",type:this.showTime?"datetime-local":"date",ref:t=>this.dateInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled,max:this.maxDate}),s(l,{key:"01217373b82eee84fae370f504cfee157c6f83ec",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{c as form_control_date}
|