@justifi/webcomponents 4.2.2 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/cjs/{Api-11362403.js → Api-d2df6e84.js} +17 -4
- package/dist/cjs/Api-d2df6e84.js.map +1 -0
- package/dist/cjs/{Payment-ac4dea02.js → Payout-4906a445.js} +44 -1
- package/dist/cjs/Payout-4906a445.js.map +1 -0
- package/dist/cjs/business-form-schema-725ec6f5.js +150 -0
- package/dist/cjs/business-form-schema-725ec6f5.js.map +1 -0
- package/dist/cjs/form-control-datepart_2.cjs.entry.js +107 -0
- package/dist/cjs/form-control-datepart_2.cjs.entry.js.map +1 -0
- package/dist/cjs/form-control-monetary.cjs.entry.js +65 -0
- package/dist/cjs/form-control-monetary.cjs.entry.js.map +1 -0
- package/dist/cjs/form-control-number_3.cjs.entry.js +148 -0
- package/dist/cjs/form-control-number_3.cjs.entry.js.map +1 -0
- package/dist/cjs/form-control-select.cjs.entry.js +47 -0
- package/dist/cjs/form-control-select.cjs.entry.js.map +1 -0
- package/dist/cjs/{index-34312a38.js → index-4ffc90c0.js} +145 -20
- package/dist/cjs/index-4ffc90c0.js.map +1 -0
- package/dist/cjs/index-5a880722.js +3233 -0
- package/dist/cjs/index-5a880722.js.map +1 -0
- package/dist/cjs/{index.esm-bcf90c56.js → index.esm-84a0a7a8.js} +283 -14
- package/dist/cjs/index.esm-84a0a7a8.js.map +1 -0
- package/dist/cjs/justifi-additional-questions_5.cjs.entry.js +396 -0
- package/dist/cjs/justifi-additional-questions_5.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js +8 -3
- package/dist/cjs/justifi-bank-account-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js +5 -5
- package/dist/cjs/justifi-billing-form_2.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-business-form.cjs.entry.js +833 -0
- package/dist/cjs/justifi-business-form.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-business-list.cjs.entry.js +189 -0
- package/dist/cjs/justifi-business-list.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-card-form.cjs.entry.js +8 -3
- package/dist/cjs/justifi-card-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-details.cjs.entry.js +30 -0
- package/dist/cjs/justifi-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js +63 -0
- package/dist/cjs/justifi-payment-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payment-form.cjs.entry.js +25 -7
- package/dist/cjs/justifi-payment-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js +26 -19
- package/dist/cjs/justifi-payment-method-form.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payments-list.cjs.entry.js +78 -4039
- package/dist/cjs/justifi-payments-list.cjs.entry.js.map +1 -1
- package/dist/cjs/justifi-payout-details.cjs.entry.js +61 -0
- package/dist/cjs/justifi-payout-details.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-payouts-list.cjs.entry.js +123 -0
- package/dist/cjs/justifi-payouts-list.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js +156 -0
- package/dist/cjs/justifi-proceeds-list.cjs.entry.js.map +1 -0
- package/dist/cjs/justifi-table.cjs.entry.js +68 -0
- package/dist/cjs/justifi-table.cjs.entry.js.map +1 -0
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/select-input_2.cjs.entry.js +6 -6
- package/dist/cjs/select-input_2.cjs.entry.js.map +1 -1
- package/dist/cjs/{state-options-efeaa587.js → state-options-83b52cd1.js} +1 -1
- package/dist/{esm/state-options-188acc34.js.map → cjs/state-options-83b52cd1.js.map} +1 -1
- package/dist/cjs/table-utils-617126e5.js +13 -0
- package/dist/cjs/table-utils-617126e5.js.map +1 -0
- package/dist/cjs/utils-0fd61dbd.js +3918 -0
- package/dist/cjs/utils-0fd61dbd.js.map +1 -0
- package/dist/cjs/utils-a5b5bfdf.js +35 -0
- package/dist/cjs/utils-a5b5bfdf.js.map +1 -0
- package/dist/cjs/webcomponents.cjs.js +3 -6
- package/dist/cjs/webcomponents.cjs.js.map +1 -1
- package/dist/collection/api/Api.js +17 -4
- package/dist/collection/api/Api.js.map +1 -1
- package/dist/collection/api/Business.js +50 -0
- package/dist/collection/api/Business.js.map +1 -0
- package/dist/collection/api/Payment.js.map +1 -1
- package/dist/collection/api/Payout.js +42 -0
- package/dist/collection/api/Payout.js.map +1 -0
- package/dist/collection/api/Proceed.js +42 -0
- package/dist/collection/api/Proceed.js.map +1 -0
- package/dist/collection/api/index.js +1 -0
- package/dist/collection/api/index.js.map +1 -1
- package/dist/collection/api/mockData/MockPayments.js +1 -1
- package/dist/collection/api/shared.js +2 -0
- package/dist/collection/api/shared.js.map +1 -0
- package/dist/collection/collection-manifest.json +30 -12
- package/dist/collection/components/bank-account-form/bank-account-form.js +38 -10
- package/dist/collection/components/bank-account-form/bank-account-form.js.map +1 -1
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js +2 -0
- package/dist/collection/components/bank-account-form/bank-account-form.stories.js.map +1 -1
- package/dist/collection/components/bank-account-form/test/bank-account-form.e2e.js +1 -1
- package/dist/collection/components/bank-account-form/test/bank-account-form.spec.js +3 -3
- package/dist/collection/components/billing-form/billing-form-schema.js +1 -1
- package/dist/collection/components/billing-form/billing-form.css +212 -39
- package/dist/collection/components/billing-form/billing-form.js +16 -10
- package/dist/collection/components/billing-form/billing-form.js.map +1 -1
- package/dist/collection/components/billing-form/test/billing-form.spec.js +51 -24
- package/dist/collection/components/billing-form/test/billing-form.spec.js.map +1 -1
- package/dist/collection/components/business-form/additional-questions/additional-questions.js +59 -0
- package/dist/collection/components/business-form/additional-questions/additional-questions.js.map +1 -0
- package/dist/collection/components/{business-address/business-address-schema.js → business-form/business-address/business-address-form-schema.js} +2 -2
- package/dist/collection/components/business-form/business-address/business-address-form-schema.js.map +1 -0
- package/dist/collection/components/business-form/business-address/business-address-form.css +2532 -0
- package/dist/collection/components/business-form/business-address/business-address-form.js +98 -0
- package/dist/collection/components/business-form/business-address/business-address-form.js.map +1 -0
- package/dist/collection/components/business-form/business-address/test/business-address.e2e.js +10 -0
- package/dist/collection/components/business-form/business-address/test/business-address.e2e.js.map +1 -0
- package/dist/collection/components/business-form/business-address/test/business-address.spec.js +76 -0
- package/dist/collection/components/business-form/business-address/test/business-address.spec.js.map +1 -0
- package/dist/collection/components/business-form/business-form-schema.js +160 -0
- package/dist/collection/components/business-form/business-form-schema.js.map +1 -0
- package/dist/collection/components/business-form/business-form.css +7772 -0
- package/dist/collection/components/business-form/business-form.js +153 -0
- package/dist/collection/components/business-form/business-form.js.map +1 -0
- package/dist/collection/components/business-form/business-form.stories.js +115 -0
- package/dist/collection/components/business-form/business-form.stories.js.map +1 -0
- package/dist/collection/components/{business-info/business-info.css → business-form/business-generic-info/business-generic-info.css} +745 -530
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js +72 -0
- package/dist/collection/components/business-form/business-generic-info/business-generic-info.js.map +1 -0
- package/dist/collection/components/business-form/business-owners/business-owners.css +7772 -0
- package/dist/collection/components/business-form/business-owners/business-owners.js +131 -0
- package/dist/collection/components/business-form/business-owners/business-owners.js.map +1 -0
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js +2 -0
- package/dist/collection/components/business-form/business-representative/business-representative-schema.js.map +1 -0
- package/dist/collection/components/business-form/business-representative/business-representative.css +2489 -0
- package/dist/collection/components/business-form/business-representative/business-representative.js +71 -0
- package/dist/collection/components/business-form/business-representative/business-representative.js.map +1 -0
- package/dist/collection/components/business-form/test/business-form.spec.js +44 -0
- package/dist/collection/components/business-form/test/business-form.spec.js.map +1 -0
- package/dist/collection/components/business-list/business-list.css +576 -0
- package/dist/collection/components/business-list/business-list.js +209 -0
- package/dist/collection/components/business-list/business-list.js.map +1 -0
- package/dist/collection/components/business-list/business-list.stories.js +68 -0
- package/dist/collection/components/business-list/business-list.stories.js.map +1 -0
- package/dist/collection/components/business-list/example.js +12 -0
- package/dist/collection/components/card-form/card-form.js +38 -10
- package/dist/collection/components/card-form/card-form.js.map +1 -1
- package/dist/collection/components/card-form/card-form.stories.js +5 -2
- package/dist/collection/components/card-form/card-form.stories.js.map +1 -1
- package/dist/collection/components/card-form/test/card-form.e2e.js +1 -1
- package/dist/collection/components/card-form/test/card-form.spec.js +3 -3
- package/dist/collection/components/details/details.css +7983 -0
- package/dist/collection/components/details/details.js +66 -0
- package/dist/collection/components/details/details.js.map +1 -0
- package/dist/collection/components/details/utils.js +10 -0
- package/dist/collection/components/details/utils.js.map +1 -0
- package/dist/collection/components/form/form-control-datepart.js +233 -0
- package/dist/collection/components/form/form-control-datepart.js.map +1 -0
- package/dist/collection/components/form/form-control-monetary.js +186 -0
- package/dist/collection/components/form/form-control-monetary.js.map +1 -0
- package/dist/collection/components/form/form-control-number-masked.js +217 -0
- package/dist/collection/components/form/form-control-number-masked.js.map +1 -0
- package/dist/collection/components/form/form-control-number.css +1818 -0
- package/dist/collection/components/form/form-control-number.js +194 -0
- package/dist/collection/components/form/form-control-number.js.map +1 -0
- package/dist/collection/components/{business-address/business-address.css → form/form-control-select.css} +350 -1212
- package/dist/collection/components/form/form-control-select.js +200 -0
- package/dist/collection/components/form/form-control-select.js.map +1 -0
- package/dist/collection/components/form/form-control-text.css +1801 -0
- package/dist/collection/components/form/form-control-text.js +194 -0
- package/dist/collection/components/form/form-control-text.js.map +1 -0
- package/dist/collection/components/form/form.js +93 -0
- package/dist/collection/components/form/form.js.map +1 -0
- package/dist/collection/components/legal-address-form/legal-address-form-schema.js +11 -0
- package/dist/collection/components/legal-address-form/legal-address-form-schema.js.map +1 -0
- package/dist/collection/components/legal-address-form/legal-address-form.css +2489 -0
- package/dist/collection/components/legal-address-form/legal-address-form.js +90 -0
- package/dist/collection/components/legal-address-form/legal-address-form.js.map +1 -0
- package/dist/collection/components/payment-details/example.js +12 -0
- package/dist/collection/components/payment-details/payment-details.css +7983 -0
- package/dist/collection/components/payment-details/payment-details.js +129 -0
- package/dist/collection/components/payment-details/payment-details.js.map +1 -0
- package/dist/collection/components/payment-details/payment-details.stories.js +47 -0
- package/dist/collection/components/payment-details/payment-details.stories.js.map +1 -0
- package/dist/collection/components/payment-form/payment-form.css +220 -45
- package/dist/collection/components/payment-form/payment-form.js +47 -7
- package/dist/collection/components/payment-form/payment-form.js.map +1 -1
- package/dist/collection/components/payment-form/payment-form.stories.js +3 -2
- package/dist/collection/components/payment-form/payment-form.stories.js.map +1 -1
- package/dist/collection/components/payment-form/payment-method-selector.css +348 -145
- package/dist/collection/components/payment-form/payment-method-selector.js +5 -3
- package/dist/collection/components/payment-form/payment-method-selector.js.map +1 -1
- package/dist/collection/components/payment-form/test/payment-form.e2e.js +1 -1
- package/dist/collection/components/payment-form/test/payment-form.spec.js +4 -3
- package/dist/collection/components/payment-form/test/payment-form.spec.js.map +1 -1
- package/dist/collection/components/payment-method-form/get-computed-theme.js +2 -0
- package/dist/collection/components/payment-method-form/get-computed-theme.js.map +1 -1
- package/dist/collection/components/payment-method-form/payment-method-form.js +19 -11
- package/dist/collection/components/payment-method-form/payment-method-form.js.map +1 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.e2e.js +1 -1
- package/dist/collection/components/payment-method-form/test/payment-method-form.spec.js +3 -3
- package/dist/collection/components/payment-method-form/theme.js.map +1 -1
- package/dist/collection/components/payments-list/example.js +12 -0
- package/dist/collection/components/payments-list/payments-list.css +574 -1
- package/dist/collection/components/payments-list/payments-list.js +130 -27
- package/dist/collection/components/payments-list/payments-list.js.map +1 -1
- package/dist/collection/components/payments-list/payments-list.stories.js +78 -0
- package/dist/collection/components/payments-list/payments-list.stories.js.map +1 -0
- package/dist/collection/components/payments-list/test/payments-list.spec.js +31 -18
- package/dist/collection/components/payments-list/test/payments-list.spec.js.map +1 -1
- package/dist/collection/components/payout-details/example.js +12 -0
- package/dist/collection/components/payout-details/payout-details.css +7983 -0
- package/dist/collection/components/payout-details/payout-details.js +126 -0
- package/dist/collection/components/payout-details/payout-details.js.map +1 -0
- package/dist/collection/components/payout-details/payout-details.stories.js +47 -0
- package/dist/collection/components/payout-details/payout-details.stories.js.map +1 -0
- package/dist/collection/components/payouts-list/example.js +12 -0
- package/dist/collection/components/payouts-list/payouts-list.css +576 -0
- package/dist/collection/components/payouts-list/payouts-list.js +215 -0
- package/dist/collection/components/payouts-list/payouts-list.js.map +1 -0
- package/dist/collection/components/payouts-list/payouts-list.stories.js +69 -0
- package/dist/collection/components/payouts-list/payouts-list.stories.js.map +1 -0
- package/dist/collection/components/proceeds-list/example.js +12 -0
- package/dist/collection/components/proceeds-list/proceeds-list.css +576 -0
- package/dist/collection/components/proceeds-list/proceeds-list.js +207 -0
- package/dist/collection/components/proceeds-list/proceeds-list.js.map +1 -0
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js +69 -0
- package/dist/collection/components/proceeds-list/proceeds-list.stories.js.map +1 -0
- package/dist/collection/components/select-input/select-input.css +344 -141
- package/dist/collection/components/select-input/select-input.js +5 -4
- package/dist/collection/components/select-input/select-input.js.map +1 -1
- package/dist/collection/components/select-input/test/select-input.spec.js +72 -28
- package/dist/collection/components/select-input/test/select-input.spec.js.map +1 -1
- package/dist/collection/components/table/table-utils.js +8 -0
- package/dist/collection/components/table/table-utils.js.map +1 -0
- package/dist/collection/components/table/table.css +8077 -0
- package/dist/collection/components/table/table.js +215 -0
- package/dist/collection/components/table/table.js.map +1 -0
- package/dist/collection/components/table/test/table.spec.js +59 -0
- package/dist/collection/components/table/test/table.spec.js.map +1 -0
- package/dist/collection/components/text-input/test/text-input.spec.js +47 -5
- package/dist/collection/components/text-input/test/text-input.spec.js.map +1 -1
- package/dist/collection/components/text-input/text-input.css +344 -141
- package/dist/collection/components/text-input/text-input.js +2 -2
- package/dist/collection/components/text-input/text-input.js.map +1 -1
- package/dist/collection/utils/country-options.js +202 -0
- package/dist/collection/utils/country-options.js.map +1 -0
- package/dist/collection/utils/phone-masks.js +4 -0
- package/dist/collection/utils/phone-masks.js.map +1 -0
- package/dist/collection/utils/utils.js +47 -2
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/Api.js +16 -3
- package/dist/components/Api.js.map +1 -1
- package/dist/{esm/Payment-c86e1e84.js → components/Payout.js} +44 -2
- package/dist/components/Payout.js.map +1 -0
- package/dist/components/additional-questions.js +51 -0
- package/dist/components/additional-questions.js.map +1 -0
- package/dist/components/billing-form.js +2 -2
- package/dist/components/billing-form.js.map +1 -1
- package/dist/components/business-address-form.js +71 -0
- package/dist/components/business-address-form.js.map +1 -0
- package/dist/components/business-generic-info.js +216 -0
- package/dist/components/business-generic-info.js.map +1 -0
- package/dist/components/business-owners.js +118 -0
- package/dist/components/business-owners.js.map +1 -0
- package/dist/components/business-representative.js +91 -0
- package/dist/components/business-representative.js.map +1 -0
- package/dist/components/details.js +66 -0
- package/dist/components/details.js.map +1 -0
- package/dist/components/{justifi-business-info.d.ts → form-control-datepart.d.ts} +4 -4
- package/dist/components/form-control-datepart.js +8 -0
- package/dist/components/form-control-datepart.js.map +1 -0
- package/dist/components/form-control-datepart2.js +97 -0
- package/dist/components/form-control-datepart2.js.map +1 -0
- package/dist/components/form-control-monetary.d.ts +11 -0
- package/dist/components/form-control-monetary.js +8 -0
- package/dist/components/form-control-monetary.js.map +1 -0
- package/dist/components/form-control-monetary2.js +82 -0
- package/dist/components/form-control-monetary2.js.map +1 -0
- package/dist/components/form-control-number-masked.d.ts +11 -0
- package/dist/components/form-control-number-masked.js +8 -0
- package/dist/components/form-control-number-masked.js.map +1 -0
- package/dist/components/form-control-number-masked2.js +81 -0
- package/dist/components/form-control-number-masked2.js.map +1 -0
- package/dist/components/form-control-number.d.ts +11 -0
- package/dist/components/form-control-number.js +8 -0
- package/dist/components/form-control-number.js.map +1 -0
- package/dist/components/form-control-number2.js +70 -0
- package/dist/components/form-control-number2.js.map +1 -0
- package/dist/components/form-control-select.d.ts +11 -0
- package/dist/components/form-control-select.js +8 -0
- package/dist/components/form-control-select.js.map +1 -0
- package/dist/components/form-control-select2.js +66 -0
- package/dist/components/form-control-select2.js.map +1 -0
- package/dist/components/form-control-text.d.ts +11 -0
- package/dist/components/form-control-text.js +8 -0
- package/dist/components/form-control-text.js.map +1 -0
- package/dist/components/form-control-text2.js +70 -0
- package/dist/components/form-control-text2.js.map +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.esm.js +281 -14
- package/dist/components/index.esm.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +3231 -0
- package/dist/components/index2.js.map +1 -0
- package/dist/components/justifi-additional-questions.d.ts +11 -0
- package/dist/components/justifi-additional-questions.js +8 -0
- package/dist/components/justifi-additional-questions.js.map +1 -0
- package/dist/components/justifi-bank-account-form.js +7 -2
- package/dist/components/justifi-bank-account-form.js.map +1 -1
- package/dist/components/justifi-business-address-form.d.ts +11 -0
- package/dist/components/justifi-business-address-form.js +8 -0
- package/dist/components/justifi-business-address-form.js.map +1 -0
- package/dist/components/justifi-business-form.d.ts +11 -0
- package/dist/components/justifi-business-form.js +920 -0
- package/dist/components/justifi-business-form.js.map +1 -0
- package/dist/components/justifi-business-generic-info.d.ts +11 -0
- package/dist/components/justifi-business-generic-info.js +8 -0
- package/dist/components/justifi-business-generic-info.js.map +1 -0
- package/dist/components/justifi-business-list.d.ts +11 -0
- package/dist/components/justifi-business-list.js +215 -0
- package/dist/components/justifi-business-list.js.map +1 -0
- package/dist/components/justifi-business-owners.d.ts +11 -0
- package/dist/components/justifi-business-owners.js +8 -0
- package/dist/components/justifi-business-owners.js.map +1 -0
- package/dist/components/justifi-business-representative.d.ts +11 -0
- package/dist/components/justifi-business-representative.js +8 -0
- package/dist/components/justifi-business-representative.js.map +1 -0
- package/dist/components/justifi-card-form.js +7 -2
- package/dist/components/justifi-card-form.js.map +1 -1
- package/dist/components/justifi-details.d.ts +11 -0
- package/dist/components/justifi-details.js +8 -0
- package/dist/components/justifi-details.js.map +1 -0
- package/dist/components/justifi-legal-address-form.d.ts +11 -0
- package/dist/components/justifi-legal-address-form.js +8 -0
- package/dist/components/justifi-legal-address-form.js.map +1 -0
- package/dist/components/justifi-payment-details.d.ts +11 -0
- package/dist/components/justifi-payment-details.js +88 -0
- package/dist/components/justifi-payment-details.js.map +1 -0
- package/dist/components/justifi-payment-form.js +24 -4
- package/dist/components/justifi-payment-form.js.map +1 -1
- package/dist/components/justifi-payments-list.js +88 -4041
- package/dist/components/justifi-payments-list.js.map +1 -1
- package/dist/components/justifi-payout-details.d.ts +11 -0
- package/dist/components/justifi-payout-details.js +86 -0
- package/dist/components/justifi-payout-details.js.map +1 -0
- package/dist/components/justifi-payouts-list.d.ts +11 -0
- package/dist/components/justifi-payouts-list.js +149 -0
- package/dist/components/justifi-payouts-list.js.map +1 -0
- package/dist/components/justifi-proceeds-list.d.ts +11 -0
- package/dist/components/justifi-proceeds-list.js +182 -0
- package/dist/components/justifi-proceeds-list.js.map +1 -0
- package/dist/components/justifi-table.d.ts +11 -0
- package/dist/components/justifi-table.js +8 -0
- package/dist/components/justifi-table.js.map +1 -0
- package/dist/components/legal-address-form.js +271 -0
- package/dist/components/legal-address-form.js.map +1 -0
- package/dist/components/payment-method-form.js +25 -18
- package/dist/components/payment-method-form.js.map +1 -1
- package/dist/components/payment-method-selector.js +1 -1
- package/dist/components/payment-method-selector.js.map +1 -1
- package/dist/components/phone-masks.js +7 -0
- package/dist/components/phone-masks.js.map +1 -0
- package/dist/components/select-input2.js +3 -3
- package/dist/components/select-input2.js.map +1 -1
- package/dist/components/state-options.js.map +1 -1
- package/dist/components/table.js +94 -0
- package/dist/components/table.js.map +1 -0
- package/dist/components/text-input2.js +2 -2
- package/dist/components/text-input2.js.map +1 -1
- package/dist/components/utils.js +3911 -0
- package/dist/components/utils.js.map +1 -0
- package/dist/esm/{Api-a07f0057.js → Api-a95f17ac.js} +17 -4
- package/dist/esm/Api-a95f17ac.js.map +1 -0
- package/dist/{components/Payment.js → esm/Payout-9a1f2859.js} +44 -2
- package/dist/esm/Payout-9a1f2859.js.map +1 -0
- package/dist/esm/business-form-schema-5885d3d6.js +146 -0
- package/dist/esm/business-form-schema-5885d3d6.js.map +1 -0
- package/dist/esm/form-control-datepart_2.entry.js +102 -0
- package/dist/esm/form-control-datepart_2.entry.js.map +1 -0
- package/dist/esm/form-control-monetary.entry.js +61 -0
- package/dist/esm/form-control-monetary.entry.js.map +1 -0
- package/dist/esm/form-control-number_3.entry.js +142 -0
- package/dist/esm/form-control-number_3.entry.js.map +1 -0
- package/dist/esm/form-control-select.entry.js +43 -0
- package/dist/esm/form-control-select.entry.js.map +1 -0
- package/dist/esm/index-5ed53c20.js +3231 -0
- package/dist/esm/index-5ed53c20.js.map +1 -0
- package/dist/esm/{index-044f93fc.js → index-609a2c67.js} +145 -21
- package/dist/esm/index-609a2c67.js.map +1 -0
- package/dist/esm/{index.esm-5624a5ed.js → index.esm-89fe6af9.js} +282 -15
- package/dist/esm/index.esm-89fe6af9.js.map +1 -0
- package/dist/esm/justifi-additional-questions_5.entry.js +388 -0
- package/dist/esm/justifi-additional-questions_5.entry.js.map +1 -0
- package/dist/esm/justifi-bank-account-form.entry.js +8 -3
- package/dist/esm/justifi-bank-account-form.entry.js.map +1 -1
- package/dist/esm/justifi-billing-form_2.entry.js +5 -5
- package/dist/esm/justifi-billing-form_2.entry.js.map +1 -1
- package/dist/esm/justifi-business-form.entry.js +829 -0
- package/dist/esm/justifi-business-form.entry.js.map +1 -0
- package/dist/esm/justifi-business-list.entry.js +185 -0
- package/dist/esm/justifi-business-list.entry.js.map +1 -0
- package/dist/esm/justifi-card-form.entry.js +8 -3
- package/dist/esm/justifi-card-form.entry.js.map +1 -1
- package/dist/esm/justifi-details.entry.js +26 -0
- package/dist/esm/justifi-details.entry.js.map +1 -0
- package/dist/esm/justifi-payment-details.entry.js +59 -0
- package/dist/esm/justifi-payment-details.entry.js.map +1 -0
- package/dist/esm/justifi-payment-form.entry.js +22 -4
- package/dist/esm/justifi-payment-form.entry.js.map +1 -1
- package/dist/esm/justifi-payment-method-form.entry.js +26 -19
- package/dist/esm/justifi-payment-method-form.entry.js.map +1 -1
- package/dist/esm/justifi-payments-list.entry.js +78 -4039
- package/dist/esm/justifi-payments-list.entry.js.map +1 -1
- package/dist/esm/justifi-payout-details.entry.js +57 -0
- package/dist/esm/justifi-payout-details.entry.js.map +1 -0
- package/dist/esm/justifi-payouts-list.entry.js +119 -0
- package/dist/esm/justifi-payouts-list.entry.js.map +1 -0
- package/dist/esm/justifi-proceeds-list.entry.js +152 -0
- package/dist/esm/justifi-proceeds-list.entry.js.map +1 -0
- package/dist/esm/justifi-table.entry.js +64 -0
- package/dist/esm/justifi-table.entry.js.map +1 -0
- package/dist/esm/loader.js +4 -13
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/select-input_2.entry.js +6 -6
- package/dist/esm/select-input_2.entry.js.map +1 -1
- package/dist/esm/{state-options-188acc34.js → state-options-ece00aa2.js} +1 -1
- package/dist/esm/state-options-ece00aa2.js.map +1 -0
- package/dist/esm/table-utils-6cdcaa8c.js +11 -0
- package/dist/esm/table-utils-6cdcaa8c.js.map +1 -0
- package/dist/esm/utils-ad0bbe03.js +3911 -0
- package/dist/esm/utils-ad0bbe03.js.map +1 -0
- package/dist/esm/utils-cdf0b984.js +28 -0
- package/dist/esm/utils-cdf0b984.js.map +1 -0
- package/dist/esm/webcomponents.js +4 -7
- package/dist/esm/webcomponents.js.map +1 -1
- package/dist/types/api/Api.d.ts +1 -1
- package/dist/types/api/Business.d.ts +133 -0
- package/dist/types/api/Payment.d.ts +1 -0
- package/dist/types/api/Payout.d.ts +60 -0
- package/dist/types/api/Proceed.d.ts +60 -0
- package/dist/types/api/index.d.ts +1 -0
- package/dist/types/api/shared.d.ts +11 -0
- package/dist/types/components/business-form/additional-questions/additional-questions.d.ts +15 -0
- package/dist/types/components/business-form/business-address/business-address-form.d.ts +9 -0
- package/dist/types/components/business-form/business-form-schema.d.ts +119 -0
- package/dist/types/components/business-form/business-form.d.ts +19 -0
- package/dist/types/components/business-form/business-form.stories.d.ts +21 -0
- package/dist/types/components/business-form/business-generic-info/business-generic-info.d.ts +15 -0
- package/dist/types/components/business-form/business-owners/business-owners.d.ts +33 -0
- package/dist/types/components/business-form/business-representative/business-representative-schema.d.ts +15 -0
- package/dist/types/components/business-form/business-representative/business-representative.d.ts +11 -0
- package/dist/types/components/business-list/business-list.d.ts +35 -0
- package/dist/types/components/business-list/business-list.stories.d.ts +9 -0
- package/dist/types/components/details/details.d.ts +7 -0
- package/dist/types/components/details/utils.d.ts +19 -0
- package/dist/types/components/form/form-control-datepart.d.ts +19 -0
- package/dist/types/components/form/form-control-monetary.d.ts +17 -0
- package/dist/types/components/form/form-control-number-masked.d.ts +19 -0
- package/dist/types/components/form/form-control-number.d.ts +18 -0
- package/dist/types/components/form/form-control-select.d.ts +21 -0
- package/dist/types/components/form/form-control-text.d.ts +18 -0
- package/dist/types/components/form/form.d.ts +22 -0
- package/dist/types/components/legal-address-form/legal-address-form-schema.d.ts +17 -0
- package/dist/types/components/legal-address-form/legal-address-form.d.ts +16 -0
- package/dist/types/components/payment-details/payment-details.d.ts +28 -0
- package/dist/types/components/payment-details/payment-details.stories.d.ts +8 -0
- package/dist/types/components/payment-form/payment-form.d.ts +2 -0
- package/dist/types/components/payment-method-form/theme.d.ts +2 -0
- package/dist/types/components/payments-list/payments-list.d.ts +30 -5
- package/dist/types/components/payments-list/payments-list.stories.d.ts +10 -0
- package/dist/types/components/payout-details/payout-details.d.ts +28 -0
- package/dist/types/components/payout-details/payout-details.stories.d.ts +8 -0
- package/dist/types/components/payouts-list/payouts-list.d.ts +37 -0
- package/dist/types/components/payouts-list/payouts-list.stories.d.ts +9 -0
- package/dist/types/components/proceeds-list/proceeds-list.d.ts +37 -0
- package/dist/types/components/proceeds-list/proceeds-list.stories.d.ts +9 -0
- package/dist/types/components/table/table-utils.d.ts +14 -0
- package/dist/types/components/table/table.d.ts +28 -0
- package/dist/types/components.d.ts +964 -28
- package/dist/types/stencil-public-runtime.d.ts +16 -2
- package/dist/types/utils/country-options.d.ts +5 -0
- package/dist/types/utils/phone-masks.d.ts +3 -0
- package/dist/types/utils/utils.d.ts +3 -0
- package/dist/webcomponents/p-0237a6bc.entry.js +2 -0
- package/dist/webcomponents/p-0237a6bc.entry.js.map +1 -0
- package/dist/webcomponents/p-0d6e9f76.entry.js +2 -0
- package/dist/webcomponents/p-0d6e9f76.entry.js.map +1 -0
- package/dist/webcomponents/p-126146d4.js +2 -0
- package/dist/webcomponents/p-126146d4.js.map +1 -0
- package/dist/webcomponents/p-239564c6.entry.js +2 -0
- package/dist/webcomponents/p-239564c6.entry.js.map +1 -0
- package/dist/webcomponents/p-27b15fe8.entry.js +2 -0
- package/dist/webcomponents/p-27b15fe8.entry.js.map +1 -0
- package/dist/webcomponents/p-2c2cde2d.js +2 -0
- package/dist/webcomponents/p-2c2cde2d.js.map +1 -0
- package/dist/webcomponents/p-308b6784.js +3 -0
- package/dist/webcomponents/p-308b6784.js.map +1 -0
- package/dist/webcomponents/p-391b8f1d.entry.js +2 -0
- package/dist/webcomponents/p-391b8f1d.entry.js.map +1 -0
- package/dist/webcomponents/p-439fc294.entry.js +2 -0
- package/dist/webcomponents/p-439fc294.entry.js.map +1 -0
- package/dist/webcomponents/{p-0ea23153.js → p-47bc59b5.js} +1 -1
- package/dist/webcomponents/p-47bc59b5.js.map +1 -0
- package/dist/webcomponents/p-66f010e5.entry.js +2 -0
- package/dist/webcomponents/p-66f010e5.entry.js.map +1 -0
- package/dist/webcomponents/p-7abb092c.entry.js +2 -0
- package/dist/webcomponents/p-7abb092c.entry.js.map +1 -0
- package/dist/webcomponents/p-7e3bbe32.entry.js +2 -0
- package/dist/webcomponents/p-7e3bbe32.entry.js.map +1 -0
- package/dist/webcomponents/p-86464cab.entry.js +2 -0
- package/dist/webcomponents/p-86464cab.entry.js.map +1 -0
- package/dist/webcomponents/p-8f421dc6.js +2 -0
- package/dist/webcomponents/p-8f421dc6.js.map +1 -0
- package/dist/webcomponents/p-9346ae33.js +2 -0
- package/dist/webcomponents/p-9346ae33.js.map +1 -0
- package/dist/webcomponents/p-ab0756ff.js +2 -0
- package/dist/webcomponents/p-ab0756ff.js.map +1 -0
- package/dist/webcomponents/p-b042bf80.entry.js +2 -0
- package/dist/webcomponents/p-b042bf80.entry.js.map +1 -0
- package/dist/webcomponents/p-b967262f.entry.js +2 -0
- package/dist/webcomponents/p-b967262f.entry.js.map +1 -0
- package/dist/webcomponents/p-bf9c2be2.entry.js +2 -0
- package/dist/webcomponents/p-bf9c2be2.entry.js.map +1 -0
- package/dist/webcomponents/p-c18d876e.entry.js +2 -0
- package/dist/webcomponents/p-c18d876e.entry.js.map +1 -0
- package/dist/webcomponents/p-c1e4288d.entry.js +2 -0
- package/dist/webcomponents/p-c1e4288d.entry.js.map +1 -0
- package/dist/webcomponents/p-c46241ba.js +2 -0
- package/dist/webcomponents/p-c46241ba.js.map +1 -0
- package/dist/webcomponents/p-ccb0e1c5.js +2 -0
- package/dist/webcomponents/p-ccb0e1c5.js.map +1 -0
- package/dist/webcomponents/p-d1bbf409.entry.js +2 -0
- package/dist/webcomponents/p-d1bbf409.entry.js.map +1 -0
- package/dist/webcomponents/p-e26d7eea.entry.js +2 -0
- package/dist/webcomponents/p-e26d7eea.entry.js.map +1 -0
- package/dist/webcomponents/p-e77d8c6e.entry.js +2 -0
- package/dist/webcomponents/p-e77d8c6e.entry.js.map +1 -0
- package/dist/webcomponents/p-f0acb27e.entry.js +2 -0
- package/dist/webcomponents/p-f0acb27e.entry.js.map +1 -0
- package/dist/webcomponents/p-f8d49acb.entry.js +2 -0
- package/dist/webcomponents/p-f8d49acb.entry.js.map +1 -0
- package/dist/webcomponents/p-f9e127a5.js +2 -0
- package/dist/webcomponents/p-f9e127a5.js.map +1 -0
- package/dist/webcomponents/webcomponents.css +1 -1
- package/dist/webcomponents/webcomponents.esm.js +1 -1
- package/dist/webcomponents/webcomponents.esm.js.map +1 -1
- package/loader/index.d.ts +1 -1
- package/package.json +16 -16
- package/CHANGELOG.md +0 -208
- package/changelog-template.hbs +0 -10
- package/dist/cjs/Api-11362403.js.map +0 -1
- package/dist/cjs/Payment-ac4dea02.js.map +0 -1
- package/dist/cjs/index-34312a38.js.map +0 -1
- package/dist/cjs/index.esm-bcf90c56.js.map +0 -1
- package/dist/cjs/justifi-business-address.cjs.entry.js +0 -69
- package/dist/cjs/justifi-business-address.cjs.entry.js.map +0 -1
- package/dist/cjs/justifi-business-info.cjs.entry.js +0 -174
- package/dist/cjs/justifi-business-info.cjs.entry.js.map +0 -1
- package/dist/cjs/state-options-efeaa587.js.map +0 -1
- package/dist/collection/components/business-address/business-address-schema.js.map +0 -1
- package/dist/collection/components/business-address/business-address.js +0 -100
- package/dist/collection/components/business-address/business-address.js.map +0 -1
- package/dist/collection/components/business-address/test/business-address.e2e.js +0 -10
- package/dist/collection/components/business-address/test/business-address.e2e.js.map +0 -1
- package/dist/collection/components/business-address/test/business-address.spec.js +0 -18
- package/dist/collection/components/business-address/test/business-address.spec.js.map +0 -1
- package/dist/collection/components/business-info/business-info-schema.js +0 -94
- package/dist/collection/components/business-info/business-info-schema.js.map +0 -1
- package/dist/collection/components/business-info/business-info.js +0 -168
- package/dist/collection/components/business-info/business-info.js.map +0 -1
- package/dist/components/Payment.js.map +0 -1
- package/dist/components/justifi-business-address.d.ts +0 -11
- package/dist/components/justifi-business-address.js +0 -99
- package/dist/components/justifi-business-address.js.map +0 -1
- package/dist/components/justifi-business-info.js +0 -207
- package/dist/components/justifi-business-info.js.map +0 -1
- package/dist/esm/Api-a07f0057.js.map +0 -1
- package/dist/esm/Payment-c86e1e84.js.map +0 -1
- package/dist/esm/index-044f93fc.js.map +0 -1
- package/dist/esm/index.esm-5624a5ed.js.map +0 -1
- package/dist/esm/justifi-business-address.entry.js +0 -65
- package/dist/esm/justifi-business-address.entry.js.map +0 -1
- package/dist/esm/justifi-business-info.entry.js +0 -170
- package/dist/esm/justifi-business-info.entry.js.map +0 -1
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/types/components/bank-account-form/bank-account-form.d.ts +0 -56
- package/dist/types/components/business-address/business-address.d.ts +0 -11
- package/dist/types/components/business-info/business-info-schema.d.ts +0 -42
- package/dist/types/components/business-info/business-info.d.ts +0 -20
- package/dist/types/components/card-form/card-form.d.ts +0 -62
- package/dist/webcomponents/p-0969db8f.entry.js +0 -2
- package/dist/webcomponents/p-0969db8f.entry.js.map +0 -1
- package/dist/webcomponents/p-0ea23153.js.map +0 -1
- package/dist/webcomponents/p-1ca0646b.js +0 -2
- package/dist/webcomponents/p-1ca0646b.js.map +0 -1
- package/dist/webcomponents/p-1f151d49.js +0 -2
- package/dist/webcomponents/p-1f151d49.js.map +0 -1
- package/dist/webcomponents/p-255b1284.entry.js +0 -2
- package/dist/webcomponents/p-255b1284.entry.js.map +0 -1
- package/dist/webcomponents/p-3aa91155.js +0 -3
- package/dist/webcomponents/p-3aa91155.js.map +0 -1
- package/dist/webcomponents/p-4ecc9860.entry.js +0 -2
- package/dist/webcomponents/p-4ecc9860.entry.js.map +0 -1
- package/dist/webcomponents/p-90c0d9e1.entry.js +0 -2
- package/dist/webcomponents/p-90c0d9e1.entry.js.map +0 -1
- package/dist/webcomponents/p-bd5352d6.entry.js +0 -2
- package/dist/webcomponents/p-bd5352d6.entry.js.map +0 -1
- package/dist/webcomponents/p-c903cc5a.entry.js +0 -2
- package/dist/webcomponents/p-c903cc5a.entry.js.map +0 -1
- package/dist/webcomponents/p-d87b0711.entry.js +0 -2
- package/dist/webcomponents/p-d87b0711.entry.js.map +0 -1
- package/dist/webcomponents/p-dbf7100f.entry.js +0 -2
- package/dist/webcomponents/p-dbf7100f.entry.js.map +0 -1
- package/dist/webcomponents/p-e0054bc3.js +0 -2
- package/dist/webcomponents/p-e0054bc3.js.map +0 -1
- package/dist/webcomponents/p-f30d1567.entry.js +0 -2
- package/dist/webcomponents/p-f30d1567.entry.js.map +0 -1
- /package/dist/types/components/{business-address/business-address-schema.d.ts → business-form/business-address/business-address-form-schema.d.ts} +0 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import StateOptions from "../../billing-form/state-options";
|
|
3
|
+
export class BusinessAddressForm {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.onFormUpdate = undefined;
|
|
6
|
+
this.errors = undefined;
|
|
7
|
+
this.defaultValues = undefined;
|
|
8
|
+
this.address = {};
|
|
9
|
+
}
|
|
10
|
+
handleAddressChange(newValues) {
|
|
11
|
+
this.onFormUpdate(newValues);
|
|
12
|
+
}
|
|
13
|
+
inputHandler(name, value) {
|
|
14
|
+
this.address[name] = value;
|
|
15
|
+
this.address = Object.assign({}, this.address);
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
19
|
+
return (h(Host, { exportparts: "label,input,input-invalid" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-8" }, h("form-control-text", { name: "line1", label: "Street Address", defaultValue: (_a = this.defaultValues) === null || _a === void 0 ? void 0 : _a.line1, error: (_b = this.errors) === null || _b === void 0 ? void 0 : _b.line1, inputHandler: (name, value) => this.inputHandler(name, value) })), h("div", { class: "col-12 col-md-4" }, h("form-control-text", { name: "line2", label: "Apartment, Suite, etc. (optional)", defaultValue: (_c = this.defaultValues) === null || _c === void 0 ? void 0 : _c.line2, error: (_d = this.errors) === null || _d === void 0 ? void 0 : _d.line2, inputHandler: (name, value) => this.inputHandler(name, value) })), h("div", { class: "col-12" }, h("form-control-text", { name: "city", label: "City", defaultValue: (_e = this.defaultValues) === null || _e === void 0 ? void 0 : _e.city, error: (_f = this.errors) === null || _f === void 0 ? void 0 : _f.city, inputHandler: (name, value) => this.inputHandler(name, value) })), h("div", { class: "col-12 col-md-6" }, h("form-control-select", { name: "state", label: "State", defaultValue: (_g = this.defaultValues) === null || _g === void 0 ? void 0 : _g.state, options: StateOptions, error: (_h = this.errors) === null || _h === void 0 ? void 0 : _h.state, inputHandler: (name, value) => this.inputHandler(name, value) })), h("div", { class: "col-12 col-md-6" }, h("form-control-number", { name: "postal_code", label: "Postal Code", defaultValue: (_j = this.defaultValues) === null || _j === void 0 ? void 0 : _j.postal_code, error: (_k = this.errors) === null || _k === void 0 ? void 0 : _k.postal_code, inputHandler: (name, value) => this.inputHandler(name, value) })))));
|
|
20
|
+
}
|
|
21
|
+
static get is() { return "justifi-business-address-form"; }
|
|
22
|
+
static get encapsulation() { return "shadow"; }
|
|
23
|
+
static get originalStyleUrls() {
|
|
24
|
+
return {
|
|
25
|
+
"$": ["business-address-form.scss"]
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static get styleUrls() {
|
|
29
|
+
return {
|
|
30
|
+
"$": ["business-address-form.css"]
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
static get properties() {
|
|
34
|
+
return {
|
|
35
|
+
"onFormUpdate": {
|
|
36
|
+
"type": "unknown",
|
|
37
|
+
"mutable": false,
|
|
38
|
+
"complexType": {
|
|
39
|
+
"original": "(values: any) => void",
|
|
40
|
+
"resolved": "(values: any) => void",
|
|
41
|
+
"references": {}
|
|
42
|
+
},
|
|
43
|
+
"required": false,
|
|
44
|
+
"optional": false,
|
|
45
|
+
"docs": {
|
|
46
|
+
"tags": [],
|
|
47
|
+
"text": ""
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"errors": {
|
|
51
|
+
"type": "any",
|
|
52
|
+
"mutable": false,
|
|
53
|
+
"complexType": {
|
|
54
|
+
"original": "any",
|
|
55
|
+
"resolved": "any",
|
|
56
|
+
"references": {}
|
|
57
|
+
},
|
|
58
|
+
"required": false,
|
|
59
|
+
"optional": false,
|
|
60
|
+
"docs": {
|
|
61
|
+
"tags": [],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "errors",
|
|
65
|
+
"reflect": false
|
|
66
|
+
},
|
|
67
|
+
"defaultValues": {
|
|
68
|
+
"type": "any",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "any",
|
|
72
|
+
"resolved": "any",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [],
|
|
79
|
+
"text": ""
|
|
80
|
+
},
|
|
81
|
+
"attribute": "default-values",
|
|
82
|
+
"reflect": false
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
static get states() {
|
|
87
|
+
return {
|
|
88
|
+
"address": {}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
static get watchers() {
|
|
92
|
+
return [{
|
|
93
|
+
"propName": "address",
|
|
94
|
+
"methodName": "handleAddressChange"
|
|
95
|
+
}];
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
//# sourceMappingURL=business-address-form.js.map
|
package/dist/collection/components/business-form/business-address/business-address-form.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-address-form.js","sourceRoot":"","sources":["../../../../../src/components/business-form/business-address/business-address-form.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,YAAY,MAAM,kCAAkC,CAAC;AAO5D,MAAM,OAAO,mBAAmB;;;;;mBAIN,EAAE;;EAG1B,mBAAmB,CAAC,SAAc;IAChC,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;EAC/B,CAAC;EAED,YAAY,CAAC,IAAY,EAAE,KAAa;IACtC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;IAC3B,IAAI,CAAC,OAAO,qBAAQ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AAE,KAAK,EACvC,OAAO,EAAE,YAAY,EACrB,KAAK,EAAE,MAAA,IAAI,CAAC,MAAM,0CAAE,KAAK,EACzB,YAAY,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,GAC7D,CACE;QAEN,WAAK,KAAK,EAAC,iBAAiB;UAC1B,2BACE,IAAI,EAAC,aAAa,EAClB,KAAK,EAAC,aAAa,EACnB,YAAY,EAAE,MAAA,IAAI,CAAC,aAAa,0CAAE,WAAW,EAC7C,KAAK,EAAE,MAAA,IAAI,CAAC,MAAM,0CAAE,WAAW,EAC/B,YAAY,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,GAC7D,CACE,CACF,CACD,CACR,CAAC;EACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Watch, State } from '@stencil/core';\nimport StateOptions from '../../billing-form/state-options';\n\n@Component({\n tag: 'justifi-business-address-form',\n styleUrl: 'business-address-form.scss',\n shadow: true,\n})\nexport class BusinessAddressForm {\n @Prop() onFormUpdate: (values: any) => void;\n @Prop() errors: any;\n @Prop() defaultValues: any;\n @State() address: any = {};\n\n @Watch('address')\n handleAddressChange(newValues: any) {\n this.onFormUpdate(newValues);\n }\n\n inputHandler(name: string, value: string) {\n this.address[name] = value;\n this.address = { ...this.address };\n }\n\n render() {\n return (\n <Host exportparts=\"label,input,input-invalid\">\n <div class=\"row gy-3\">\n <div class=\"col-12 col-md-8\">\n <form-control-text\n name=\"line1\"\n label=\"Street Address\"\n defaultValue={this.defaultValues?.line1}\n error={this.errors?.line1}\n inputHandler={(name, value) => this.inputHandler(name, value)}\n />\n </div>\n\n <div class=\"col-12 col-md-4\">\n <form-control-text\n name=\"line2\"\n label=\"Apartment, Suite, etc. (optional)\"\n defaultValue={this.defaultValues?.line2}\n error={this.errors?.line2}\n inputHandler={(name, value) => this.inputHandler(name, value)}\n />\n </div>\n\n <div class=\"col-12\">\n <form-control-text\n name=\"city\"\n label=\"City\"\n defaultValue={this.defaultValues?.city}\n error={this.errors?.city}\n inputHandler={(name, value) => this.inputHandler(name, value)}\n />\n </div>\n\n <div class=\"col-12 col-md-6\">\n <form-control-select\n name=\"state\"\n label=\"State\"\n defaultValue={this.defaultValues?.state}\n options={StateOptions}\n error={this.errors?.state}\n inputHandler={(name, value) => this.inputHandler(name, value)}\n />\n </div>\n\n <div class=\"col-12 col-md-6\">\n <form-control-number\n name=\"postal_code\"\n label=\"Postal Code\"\n defaultValue={this.defaultValues?.postal_code}\n error={this.errors?.postal_code}\n inputHandler={(name, value) => this.inputHandler(name, value)}\n />\n </div>\n </div>\n </Host>\n );\n }\n}\n"]}
|
package/dist/collection/components/business-form/business-address/test/business-address.e2e.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { newE2EPage } from "@stencil/core/testing";
|
|
2
|
+
describe('justifi-business-address-form', () => {
|
|
3
|
+
it('renders', async () => {
|
|
4
|
+
const page = await newE2EPage();
|
|
5
|
+
await page.setContent('<justifi-business-address-form></justifi-business-address-form>');
|
|
6
|
+
const element = await page.find('justifi-business-address-form');
|
|
7
|
+
expect(element).toHaveClass('hydrated');
|
|
8
|
+
});
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=business-address.e2e.js.map
|
package/dist/collection/components/business-form/business-address/test/business-address.e2e.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-address.e2e.js","sourceRoot":"","sources":["../../../../../../src/components/business-form/business-address/test/business-address.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,+BAA+B,EAAE,GAAG,EAAE;EAC7C,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAChC,MAAM,IAAI,CAAC,UAAU,CAAC,iEAAiE,CAAC,CAAC;IAEzF,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,+BAA+B,CAAC,CAAC;IACjE,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;EAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('justifi-business-address-form', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n await page.setContent('<justifi-business-address-form></justifi-business-address-form>');\n\n const element = await page.find('justifi-business-address-form');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
|
package/dist/collection/components/business-form/business-address/test/business-address.spec.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { newSpecPage } from "@stencil/core/testing";
|
|
3
|
+
import { BusinessAddressForm } from "../business-address-form";
|
|
4
|
+
describe('business-address', () => {
|
|
5
|
+
it('should render BusinessAddressForm component', async () => {
|
|
6
|
+
const page = await newSpecPage({
|
|
7
|
+
components: [BusinessAddressForm],
|
|
8
|
+
template: () => (h("justifi-business-address-form", null)),
|
|
9
|
+
});
|
|
10
|
+
expect(page.root).toEqualHtml(`
|
|
11
|
+
<justifi-business-address-form exportparts="label,input,input-invalid">
|
|
12
|
+
<mock:shadow-root>
|
|
13
|
+
<div class="row gy-3">
|
|
14
|
+
<div class="col-12 col-md-8">
|
|
15
|
+
<form-control-text label="Street Address" name="line1"></form-control-text>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<div class="col-12 col-md-4">
|
|
19
|
+
<form-control-text label="Apartment, Suite, etc. (optional)" name="line2"></form-control-text>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div class="col-12">
|
|
23
|
+
<form-control-text label="City" name="city"></form-control-text>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div class="col-12 col-md-6">
|
|
27
|
+
<form-control-select label="State" name="state"></form-control-select>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<div class="col-12 col-md-6">
|
|
31
|
+
<form-control-number label="Postal Code" name="postal_code"></form-control-number>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
</mock:shadow-root>
|
|
35
|
+
</justifi-business-address-form>
|
|
36
|
+
`);
|
|
37
|
+
});
|
|
38
|
+
it('should render BusinessAddressForm component with defaults', async () => {
|
|
39
|
+
const businessAddress = {
|
|
40
|
+
line1: 'Street 1',
|
|
41
|
+
line2: 'Apartment 1',
|
|
42
|
+
city: 'City',
|
|
43
|
+
state: 'State',
|
|
44
|
+
postal_code: '12345',
|
|
45
|
+
country: 'Country',
|
|
46
|
+
};
|
|
47
|
+
const page = await newSpecPage({
|
|
48
|
+
components: [BusinessAddressForm],
|
|
49
|
+
template: () => (h("justifi-business-address-form", { defaultValues: businessAddress })),
|
|
50
|
+
});
|
|
51
|
+
expect(page.root).toEqualHtml(`
|
|
52
|
+
<justifi-business-address-form exportparts="label,input,input-invalid">
|
|
53
|
+
<mock:shadow-root>
|
|
54
|
+
<div class="gy-3 row">
|
|
55
|
+
<div class="col-12 col-md-8">
|
|
56
|
+
<form-control-text defaultValue="Street 1" label="Street Address" name="line1"></form-control-text>
|
|
57
|
+
</div>
|
|
58
|
+
<div class="col-12 col-md-4">
|
|
59
|
+
<form-control-text defaultValue="Apartment 1" label="Apartment, Suite, etc. (optional)" name="line2"></form-control-text>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="col-12">
|
|
62
|
+
<form-control-text defaultvalue="City" label="City" name="city"></form-control-text>
|
|
63
|
+
</div>
|
|
64
|
+
<div class="col-12 col-md-6">
|
|
65
|
+
<form-control-select defaultValue="State" label="State" name="state"></form-control-select>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="col-12 col-md-6">
|
|
68
|
+
<form-control-number defaultValue="12345" label="Postal Code" name="postal_code"></form-control-number>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
</mock:shadow-root>
|
|
72
|
+
</justifi-business-address-form>
|
|
73
|
+
`);
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
//# sourceMappingURL=business-address.spec.js.map
|
package/dist/collection/components/business-form/business-address/test/business-address.spec.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-address.spec.js","sourceRoot":"","sources":["../../../../../../src/components/business-form/business-address/test/business-address.spec.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAG/D,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;EAChC,EAAE,CAAC,6CAA6C,EAAE,KAAK,IAAI,EAAE;IAC3D,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,mBAAmB,CAAC;MACjC,QAAQ,EAAE,GAAG,EAAE,CAAC,CACd,wCAA+D,CAChE;KACF,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0B/B,CAAC,CAAC;EACH,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,2DAA2D,EAAE,KAAK,IAAI,EAAE;IACzE,MAAM,eAAe,GAAG;MACtB,KAAK,EAAE,UAAU;MACjB,KAAK,EAAE,aAAa;MACpB,IAAI,EAAE,MAAM;MACZ,KAAK,EAAE,OAAO;MACd,WAAW,EAAE,OAAO;MACpB,OAAO,EAAE,SAAS;KACU,CAAC;IAC/B,MAAM,IAAI,GAAG,MAAM,WAAW,CAAC;MAC7B,UAAU,EAAE,CAAC,mBAAmB,CAAC;MACjC,QAAQ,EAAE,GAAG,EAAE,CAAC,CACd,qCACE,aAAa,EAAE,eAAe,GACC,CAClC;KACF,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;GAsB/B,CAAC,CAAC;EACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { h } from '@stencil/core';\nimport { newSpecPage } from '@stencil/core/testing';\nimport { BusinessAddressForm } from '../business-address-form';\nimport { BusinessAddressFormFields } from '../business-address-form-schema';\n\ndescribe('business-address', () => {\n it('should render BusinessAddressForm component', async () => {\n const page = await newSpecPage({\n components: [BusinessAddressForm],\n template: () => (\n <justifi-business-address-form></justifi-business-address-form>\n ),\n });\n expect(page.root).toEqualHtml(`\n <justifi-business-address-form exportparts=\"label,input,input-invalid\">\n <mock:shadow-root>\n <div class=\"row gy-3\">\n <div class=\"col-12 col-md-8\">\n <form-control-text label=\"Street Address\" name=\"line1\"></form-control-text>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <form-control-text label=\"Apartment, Suite, etc. (optional)\" name=\"line2\"></form-control-text>\n </div>\n\n <div class=\"col-12\">\n <form-control-text label=\"City\" name=\"city\"></form-control-text>\n </div>\n\n <div class=\"col-12 col-md-6\">\n <form-control-select label=\"State\" name=\"state\"></form-control-select>\n </div>\n\n <div class=\"col-12 col-md-6\">\n <form-control-number label=\"Postal Code\" name=\"postal_code\"></form-control-number>\n </div>\n </div>\n </mock:shadow-root>\n </justifi-business-address-form>\n `);\n });\n\n it('should render BusinessAddressForm component with defaults', async () => {\n const businessAddress = {\n line1: 'Street 1',\n line2: 'Apartment 1',\n city: 'City',\n state: 'State',\n postal_code: '12345',\n country: 'Country',\n } as BusinessAddressFormFields;\n const page = await newSpecPage({\n components: [BusinessAddressForm],\n template: () => (\n <justifi-business-address-form\n defaultValues={businessAddress}\n ></justifi-business-address-form>\n ),\n });\n expect(page.root).toEqualHtml(`\n <justifi-business-address-form exportparts=\"label,input,input-invalid\">\n <mock:shadow-root>\n <div class=\"gy-3 row\">\n <div class=\"col-12 col-md-8\">\n <form-control-text defaultValue=\"Street 1\" label=\"Street Address\" name=\"line1\"></form-control-text>\n </div>\n <div class=\"col-12 col-md-4\">\n <form-control-text defaultValue=\"Apartment 1\" label=\"Apartment, Suite, etc. (optional)\" name=\"line2\"></form-control-text>\n </div>\n <div class=\"col-12\">\n <form-control-text defaultvalue=\"City\" label=\"City\" name=\"city\"></form-control-text>\n </div>\n <div class=\"col-12 col-md-6\">\n <form-control-select defaultValue=\"State\" label=\"State\" name=\"state\"></form-control-select>\n </div>\n <div class=\"col-12 col-md-6\">\n <form-control-number defaultValue=\"12345\" label=\"Postal Code\" name=\"postal_code\"></form-control-number>\n </div>\n </div>\n </mock:shadow-root>\n </justifi-business-address-form>\n `);\n });\n});\n"]}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { array, boolean, object, string } from "yup";
|
|
2
|
+
import legalAddressSchema from "../legal-address-form/legal-address-form-schema";
|
|
3
|
+
export const RegExZip = /^\d{5}/;
|
|
4
|
+
export class Business {
|
|
5
|
+
constructor(data) {
|
|
6
|
+
this.legal_name = '';
|
|
7
|
+
this.website_url = '';
|
|
8
|
+
this.email = '';
|
|
9
|
+
this.phone = '';
|
|
10
|
+
this.doing_business_as = '';
|
|
11
|
+
this.business_type = '';
|
|
12
|
+
this.business_structure = '';
|
|
13
|
+
this.industry = '';
|
|
14
|
+
this.metadata = {};
|
|
15
|
+
if (data) {
|
|
16
|
+
this.legal_name = data.legal_name;
|
|
17
|
+
this.website_url = data.website_url;
|
|
18
|
+
this.email = data.email;
|
|
19
|
+
this.phone = data.phone;
|
|
20
|
+
this.doing_business_as = data.doing_business_as;
|
|
21
|
+
this.business_type = data.business_type;
|
|
22
|
+
this.business_structure = data.business_structure;
|
|
23
|
+
this.industry = data.industry;
|
|
24
|
+
this.metadata = data.metadata;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export const BusinessTypeOptions = [
|
|
29
|
+
{
|
|
30
|
+
label: 'Choose business type',
|
|
31
|
+
value: '',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: 'Individual',
|
|
35
|
+
value: 'individual',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: 'For Profit',
|
|
39
|
+
value: 'for_profit',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: 'Non Profit',
|
|
43
|
+
value: 'non_profit',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: 'Government Entity',
|
|
47
|
+
value: 'government_entity',
|
|
48
|
+
},
|
|
49
|
+
];
|
|
50
|
+
export const BusinessStructureOptions = [
|
|
51
|
+
{
|
|
52
|
+
label: 'Choose business structure',
|
|
53
|
+
value: '',
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
label: 'Sole Proprietorship',
|
|
57
|
+
value: 'sole_proprietorship',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
label: 'LLC (Single)',
|
|
61
|
+
value: 'single_llc',
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: 'LLC (Multiple)',
|
|
65
|
+
value: 'multi_llc',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: 'Private Partnership',
|
|
69
|
+
value: 'private_partnership',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: 'Private Corporation',
|
|
73
|
+
value: 'private_corporation',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
label: 'Unincorporated Association',
|
|
77
|
+
value: 'unincorporated_association',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
label: 'Public Partnership',
|
|
81
|
+
value: 'public_partnership',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
label: 'Public Corporation',
|
|
85
|
+
value: 'public_corporation',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
label: 'Incorporated',
|
|
89
|
+
value: 'incorporated',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
label: 'Unincorporated',
|
|
93
|
+
value: 'unincorporated',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
label: 'Government Unit',
|
|
97
|
+
value: 'government_unit',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
label: 'Government Instrumentality',
|
|
101
|
+
value: 'government_instrumentality',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: 'Tax Exempt Government Instrumentality',
|
|
105
|
+
value: 'tax_exempt_government_instrumentality',
|
|
106
|
+
},
|
|
107
|
+
];
|
|
108
|
+
const businessGenericInfoSchema = object({
|
|
109
|
+
legal_name: string().required('Enter legal name'),
|
|
110
|
+
website_url: string()
|
|
111
|
+
.url('Enter valid website url')
|
|
112
|
+
.required('Enter website url'),
|
|
113
|
+
email: string().email('Enter valid email').required('Enter email'),
|
|
114
|
+
phone: string().required('Enter phone number'),
|
|
115
|
+
doing_business_as: string().required('Enter doing business as'),
|
|
116
|
+
business_type: string().required('Select business type'),
|
|
117
|
+
business_structure: string().required('Select business structure'),
|
|
118
|
+
industry: string().required('Enter a business industry'),
|
|
119
|
+
});
|
|
120
|
+
const addressSchema = object({
|
|
121
|
+
line1: string().required('Enter street address'),
|
|
122
|
+
city: string().required('Enter city'),
|
|
123
|
+
state: string().required('Select state'),
|
|
124
|
+
postal_code: string().required('Enter postal code'),
|
|
125
|
+
});
|
|
126
|
+
const representativeSchema = object({
|
|
127
|
+
name: string().required('Enter representative name'),
|
|
128
|
+
email: string()
|
|
129
|
+
.email('Enter valid representative email')
|
|
130
|
+
.required('Enter representative email'),
|
|
131
|
+
phone: string().required('Enter representative phone number'),
|
|
132
|
+
dob_day: string().required('Enter representative birth day'),
|
|
133
|
+
dob_month: string().required('Enter representative birth month'),
|
|
134
|
+
dob_year: string().required('Enter representative birth year'),
|
|
135
|
+
identification_number: string(),
|
|
136
|
+
address: addressSchema,
|
|
137
|
+
});
|
|
138
|
+
const ownerSchema = object({
|
|
139
|
+
name: string().required('Enter owner name'),
|
|
140
|
+
title: string().required('Enter owner title'),
|
|
141
|
+
email: string()
|
|
142
|
+
.email('Enter valid owner email')
|
|
143
|
+
.required('Enter owner email'),
|
|
144
|
+
phone: string().required('Enter owner phone number'),
|
|
145
|
+
dob_day: string().required('Enter owner birth day'),
|
|
146
|
+
dob_month: string().required('Enter owner birth month'),
|
|
147
|
+
dob_year: string().required('Enter owner birth year'),
|
|
148
|
+
identification_number: string(),
|
|
149
|
+
is_owner: boolean(),
|
|
150
|
+
address: addressSchema,
|
|
151
|
+
});
|
|
152
|
+
const additionQuestionsSchema = object({
|
|
153
|
+
business_revenue: string().required('Enter business revenue'),
|
|
154
|
+
business_payment_volume: string().required('Enter business payment volume'),
|
|
155
|
+
business_dispute_volume: string().required('Enter business dispute volume'),
|
|
156
|
+
business_receivable_volume: string().required('Enter business receivable volume'),
|
|
157
|
+
});
|
|
158
|
+
const businessFormSchema = object(Object.assign(Object.assign({}, businessGenericInfoSchema.fields), { legal_address: legalAddressSchema.required('Enater legal address'), additional_questions: additionQuestionsSchema.required('Enter additional questions'), representative: representativeSchema.required('Enter representative information'), owners: array().of(ownerSchema).min(1, 'Enter at least 1 owners') }));
|
|
159
|
+
export default businessFormSchema;
|
|
160
|
+
//# sourceMappingURL=business-form-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"business-form-schema.js","sourceRoot":"","sources":["../../../../src/components/business-form/business-form-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AACrD,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AAEjF,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC;AAwBjC,MAAM,OAAO,QAAQ;EAWnB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AAkB,CAAC","sourcesContent":["import { array, boolean, object, string } from 'yup';\nimport legalAddressSchema from '../legal-address-form/legal-address-form-schema';\n\nexport const RegExZip = /^\\d{5}/;\n\ntype BusinessType =\n | 'for_profit'\n | 'non_profit'\n | 'government_entity'\n | 'individual'\n | '';\ntype BusinessStructure =\n | 'sole_proprietorship'\n | 'single_llc'\n | 'multi_llc'\n | 'private_partnership'\n | 'private_corporation'\n | 'unincorporated_association'\n | 'public_partnership'\n | 'public_corporation'\n | 'incorporated'\n | 'unincorporated'\n | 'government_unit'\n | 'government_instrumentality'\n | 'tax_exempt_government_instrumentality'\n | '';\n\nexport class Business {\n public legal_name = '';\n public website_url = '';\n public email: string = '';\n public phone: string = '';\n public doing_business_as: string = '';\n public business_type: string = '';\n public business_structure: string = '';\n public industry: string = '';\n public metadata: any = {};\n\n constructor(data?: any) {\n if (data) {\n this.legal_name = data.legal_name;\n this.website_url = data.website_url;\n this.email = data.email;\n this.phone = data.phone;\n this.doing_business_as = data.doing_business_as;\n this.business_type = data.business_type;\n this.business_structure = data.business_structure;\n this.industry = data.industry;\n this.metadata = data.metadata;\n }\n }\n}\n\nexport const BusinessTypeOptions: { label: string; value: BusinessType }[] = [\n {\n label: 'Choose business type',\n value: '',\n },\n {\n label: 'Individual',\n value: 'individual',\n },\n {\n label: 'For Profit',\n value: 'for_profit',\n },\n {\n label: 'Non Profit',\n value: 'non_profit',\n },\n {\n label: 'Government Entity',\n value: 'government_entity',\n },\n];\n\nexport const BusinessStructureOptions: {\n label: string;\n value: BusinessStructure;\n}[] = [\n {\n label: 'Choose business structure',\n value: '',\n },\n {\n label: 'Sole Proprietorship',\n value: 'sole_proprietorship',\n },\n {\n label: 'LLC (Single)',\n value: 'single_llc',\n },\n {\n label: 'LLC (Multiple)',\n value: 'multi_llc',\n },\n {\n label: 'Private Partnership',\n value: 'private_partnership',\n },\n {\n label: 'Private Corporation',\n value: 'private_corporation',\n },\n {\n label: 'Unincorporated Association',\n value: 'unincorporated_association',\n },\n {\n label: 'Public Partnership',\n value: 'public_partnership',\n },\n {\n label: 'Public Corporation',\n value: 'public_corporation',\n },\n {\n label: 'Incorporated',\n value: 'incorporated',\n },\n {\n label: 'Unincorporated',\n value: 'unincorporated',\n },\n {\n label: 'Government Unit',\n value: 'government_unit',\n },\n {\n label: 'Government Instrumentality',\n value: 'government_instrumentality',\n },\n {\n label: 'Tax Exempt Government Instrumentality',\n value: 'tax_exempt_government_instrumentality',\n },\n];\n\nconst businessGenericInfoSchema = object({\n legal_name: string().required('Enter legal name'),\n website_url: string()\n .url('Enter valid website url')\n .required('Enter website url'),\n email: string().email('Enter valid email').required('Enter email'),\n phone: string().required('Enter phone number'),\n doing_business_as: string().required('Enter doing business as'),\n business_type: string().required('Select business type'),\n business_structure: string().required('Select business structure'),\n industry: string().required('Enter a business industry'),\n});\n\nconst addressSchema = object({\n line1: string().required('Enter street address'),\n city: string().required('Enter city'),\n state: string().required('Select state'),\n postal_code: string().required('Enter postal code'),\n});\n\nconst representativeSchema = object({\n name: string().required('Enter representative name'),\n email: string()\n .email('Enter valid representative email')\n .required('Enter representative email'),\n phone: string().required('Enter representative phone number'),\n dob_day: string().required('Enter representative birth day'),\n dob_month: string().required('Enter representative birth month'),\n dob_year: string().required('Enter representative birth year'),\n identification_number: string(),\n address: addressSchema,\n});\n\nconst ownerSchema = object({\n name: string().required('Enter owner name'),\n title: string().required('Enter owner title'),\n email: string()\n .email('Enter valid owner email')\n .required('Enter owner email'),\n phone: string().required('Enter owner phone number'),\n dob_day: string().required('Enter owner birth day'),\n dob_month: string().required('Enter owner birth month'),\n dob_year: string().required('Enter owner birth year'),\n identification_number: string(),\n is_owner: boolean(),\n address: addressSchema,\n});\n\nconst additionQuestionsSchema = object({\n business_revenue: string().required('Enter business revenue'),\n business_payment_volume: string().required('Enter business payment volume'),\n business_dispute_volume: string().required('Enter business dispute volume'),\n business_receivable_volume: string().required(\n 'Enter business receivable volume',\n ),\n});\n\nconst businessFormSchema = object({\n ...businessGenericInfoSchema.fields,\n legal_address: legalAddressSchema.required('Enater legal address'),\n additional_questions: additionQuestionsSchema.required(\n 'Enter additional questions',\n ),\n representative: representativeSchema.required(\n 'Enter representative information',\n ),\n owners: array().of(ownerSchema).min(1, 'Enter at least 1 owners'),\n});\n\nexport default businessFormSchema;\n"]}
|