@justifi/webcomponents 4.19.1 → 4.19.2

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.
Files changed (190) hide show
  1. package/dist/cjs/{Analytics-f870b3ee.js → Analytics-c866f471.js} +3 -3
  2. package/dist/cjs/{Api-3bc6e43f.js → Api-b98b256f.js} +3 -3
  3. package/dist/cjs/{Business-aacbe893.js → Business-aa799fec.js} +104 -9
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +1 -1
  5. package/dist/cjs/{business-additional-questions-schema-11ce0005.js → business-additional-questions-schema-26b0eecb.js} +1 -1
  6. package/dist/cjs/{business-form-options-26f9900c.js → business-form-options-5db0bd5e.js} +1 -1
  7. package/dist/cjs/{payload-parsers-969ab9b6.js → business-identity-schema-503ecb77.js} +1 -47
  8. package/dist/cjs/{business.service-f63650f5.js → business.service-65b0dbc8.js} +1 -1
  9. package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
  10. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +26 -26
  11. package/dist/cjs/{get-payout-csv-f3aee6d0.js → get-payout-csv-b98b0651.js} +1 -1
  12. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  13. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +11 -11
  14. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +3 -3
  15. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +3 -3
  16. package/dist/cjs/justifi-business-details.cjs.entry.js +5 -5
  17. package/dist/cjs/justifi-business-form.cjs.entry.js +12 -12
  18. package/dist/cjs/justifi-card-form.cjs.entry.js +3 -3
  19. package/dist/cjs/justifi-checkout-core.cjs.entry.js +1 -1
  20. package/dist/cjs/justifi-checkout.cjs.entry.js +4 -4
  21. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -3
  22. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +1 -1
  23. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +11 -11
  24. package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -4
  25. package/dist/cjs/justifi-payment-form.cjs.entry.js +4 -4
  26. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
  27. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
  28. package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -4
  29. package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -4
  30. package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -4
  31. package/dist/cjs/justifi-refund-form.cjs.entry.js +1 -1
  32. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
  33. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -5
  34. package/dist/cjs/{package-1321b070.js → package-0c613220.js} +1 -1
  35. package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
  36. package/dist/cjs/{payment.service-0a64f9cd.js → payment.service-33d6ac16.js} +1 -1
  37. package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
  38. package/dist/cjs/payout-details-core.cjs.entry.js +1 -1
  39. package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
  40. package/dist/cjs/{schema-validations-f3db892c.js → schema-validations-0a7e46a3.js} +1 -1
  41. package/dist/cjs/{utils-89d86e29.js → utils-af1b60a9.js} +0 -16
  42. package/dist/collection/api/Api.js +3 -3
  43. package/dist/collection/api/Business.js +66 -7
  44. package/dist/collection/api/Identity.js +39 -3
  45. package/dist/collection/api/services/analytics.service.js +1 -1
  46. package/dist/collection/api/services/checkout.service.js +1 -1
  47. package/dist/collection/api/services/insurance.service.js +2 -2
  48. package/dist/collection/api/services/provision.service.js +1 -1
  49. package/dist/collection/components/business-forms/business-form/business-form.js +3 -4
  50. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +4 -5
  51. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +3 -3
  52. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -2
  53. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -5
  54. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +3 -3
  55. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +3 -4
  56. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +2 -2
  57. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -4
  58. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -2
  59. package/dist/docs.json +2 -2
  60. package/dist/esm/{Analytics-262cdde5.js → Analytics-3e74964a.js} +3 -3
  61. package/dist/esm/{Api-b09a2f6a.js → Api-c8abc2e0.js} +3 -3
  62. package/dist/esm/{Business-e218b4f4.js → Business-b73d5055.js} +104 -9
  63. package/dist/esm/additional-questions-details_5.entry.js +1 -1
  64. package/dist/esm/{business-additional-questions-schema-e39bc781.js → business-additional-questions-schema-a5583cf8.js} +1 -1
  65. package/dist/esm/{business-form-options-0b08e08c.js → business-form-options-d790973e.js} +1 -1
  66. package/dist/esm/{payload-parsers-62f443e1.js → business-identity-schema-9e3269fb.js} +2 -44
  67. package/dist/esm/{business.service-74bd1212.js → business.service-6f139c2b.js} +1 -1
  68. package/dist/esm/form-alert_5.entry.js +2 -2
  69. package/dist/esm/form-control-checkbox_9.entry.js +21 -21
  70. package/dist/esm/{get-payout-csv-b494abfe.js → get-payout-csv-383d96c1.js} +1 -1
  71. package/dist/esm/gross-payment-chart-core.entry.js +1 -1
  72. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +11 -11
  73. package/dist/esm/justifi-bank-account-form.entry.js +3 -3
  74. package/dist/esm/justifi-billing-form_2.entry.js +3 -3
  75. package/dist/esm/justifi-business-details.entry.js +5 -5
  76. package/dist/esm/justifi-business-form.entry.js +11 -11
  77. package/dist/esm/justifi-card-form.entry.js +3 -3
  78. package/dist/esm/justifi-checkout-core.entry.js +1 -1
  79. package/dist/esm/justifi-checkout.entry.js +4 -4
  80. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -3
  81. package/dist/esm/justifi-new-payment-method_4.entry.js +1 -1
  82. package/dist/esm/justifi-owner-form_3.entry.js +10 -10
  83. package/dist/esm/justifi-payment-details.entry.js +4 -4
  84. package/dist/esm/justifi-payment-form.entry.js +4 -4
  85. package/dist/esm/justifi-payment-method-form.entry.js +2 -2
  86. package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
  87. package/dist/esm/justifi-payments-list.entry.js +4 -4
  88. package/dist/esm/justifi-payout-details.entry.js +4 -4
  89. package/dist/esm/justifi-payouts-list.entry.js +4 -4
  90. package/dist/esm/justifi-refund-form.entry.js +1 -1
  91. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
  92. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
  93. package/dist/esm/{package-d88677e9.js → package-925a0fdd.js} +1 -1
  94. package/dist/esm/payment-details-core.entry.js +1 -1
  95. package/dist/esm/{payment.service-3ca4a492.js → payment.service-e4fb5953.js} +1 -1
  96. package/dist/esm/payments-list-core.entry.js +1 -1
  97. package/dist/esm/payout-details-core.entry.js +1 -1
  98. package/dist/esm/payouts-list-core.entry.js +1 -1
  99. package/dist/esm/{schema-validations-2f4fdebb.js → schema-validations-e725d701.js} +2 -2
  100. package/dist/esm/{utils-3c1dd2fa.js → utils-e66d8bca.js} +1 -16
  101. package/dist/module/Analytics.js +1 -1
  102. package/dist/module/Api.js +3 -3
  103. package/dist/module/Business.js +104 -9
  104. package/dist/module/business-additional-questions-form-step-core.js +3 -3
  105. package/dist/module/business-bank-account-form-step.js +2 -2
  106. package/dist/module/business-core-info-form-step-core.js +3 -5
  107. package/dist/module/business-document-upload-form-step.js +2 -2
  108. package/dist/module/business-document-upload-input-group.js +1 -1
  109. package/dist/module/business-documents-on-file.js +1 -1
  110. package/dist/module/business-owners-form-step-core.js +3 -3
  111. package/dist/module/business-representative-form-step-core.js +3 -4
  112. package/dist/module/business-terms-conditions-form-step.js +2 -2
  113. package/dist/module/justifi-business-form.js +3 -4
  114. package/dist/module/justifi-checkout.js +1 -1
  115. package/dist/module/justifi-payment-provisioning.js +1 -1
  116. package/dist/module/justifi-season-interruption-insurance.js +2 -2
  117. package/dist/module/legal-address-form-step-core.js +3 -4
  118. package/dist/module/owner-form-core2.js +4 -5
  119. package/dist/module/package.js +1 -1
  120. package/dist/module/payment-details-core2.js +1 -1
  121. package/dist/module/payments-list-core2.js +1 -1
  122. package/dist/module/payout-details-core2.js +1 -1
  123. package/dist/module/payouts-list-core2.js +1 -1
  124. package/dist/module/saved-payment-method.js +1 -1
  125. package/dist/module/utils2.js +1 -16
  126. package/dist/types/api/Business.d.ts +87 -1
  127. package/dist/types/api/Identity.d.ts +45 -1
  128. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +44 -1
  129. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +11 -1
  130. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +11 -1
  131. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +24 -1
  132. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +11 -1
  133. package/dist/webcomponents/{p-d765d638.js → p-0052db77.js} +1 -1
  134. package/dist/webcomponents/{p-60a370fc.entry.js → p-039183f1.entry.js} +1 -1
  135. package/dist/webcomponents/{p-b16dfd5d.entry.js → p-08a39a65.entry.js} +1 -1
  136. package/dist/webcomponents/{p-462dc522.entry.js → p-124c1ecd.entry.js} +1 -1
  137. package/dist/webcomponents/{p-d1c8d794.entry.js → p-1647f06b.entry.js} +1 -1
  138. package/dist/webcomponents/{p-d25c2f12.js → p-1815a43b.js} +1 -1
  139. package/dist/webcomponents/p-1cb2a51c.entry.js +1 -0
  140. package/dist/webcomponents/{p-1a43e355.entry.js → p-1eee25f3.entry.js} +1 -1
  141. package/dist/webcomponents/{p-3affadfc.entry.js → p-20cee11b.entry.js} +1 -1
  142. package/dist/webcomponents/{p-04a0dbb6.js → p-277aee05.js} +1 -1
  143. package/dist/webcomponents/{p-65b561da.entry.js → p-2a5cc4ee.entry.js} +1 -1
  144. package/dist/webcomponents/p-3b1340dc.js +1 -0
  145. package/dist/webcomponents/{p-890b3254.entry.js → p-43eff822.entry.js} +1 -1
  146. package/dist/webcomponents/p-4e01fec8.entry.js +1 -0
  147. package/dist/webcomponents/{p-241b0ed9.js → p-5022f21c.js} +1 -1
  148. package/dist/webcomponents/p-55182a59.js +1 -0
  149. package/dist/webcomponents/{p-83125497.js → p-5e2c9ec8.js} +1 -1
  150. package/dist/webcomponents/p-5e7c60d8.js +1 -0
  151. package/dist/webcomponents/p-6ac806ff.entry.js +1 -0
  152. package/dist/webcomponents/{p-198994c0.entry.js → p-6c2fc744.entry.js} +1 -1
  153. package/dist/webcomponents/{p-62b32c4c.entry.js → p-721dcf51.entry.js} +1 -1
  154. package/dist/webcomponents/p-77e55bfc.entry.js +1 -0
  155. package/dist/webcomponents/{p-29c0b182.js → p-7d3be485.js} +1 -1
  156. package/dist/webcomponents/{p-52021fa1.entry.js → p-817da23c.entry.js} +1 -1
  157. package/dist/webcomponents/p-82cff30c.js +1 -0
  158. package/dist/webcomponents/{p-8603348a.js → p-8eb10f02.js} +1 -1
  159. package/dist/webcomponents/{p-061dcb79.entry.js → p-8f9fb5c3.entry.js} +1 -1
  160. package/dist/webcomponents/p-9649b022.entry.js +1 -0
  161. package/dist/webcomponents/{p-9dc36f76.entry.js → p-9c076da2.entry.js} +1 -1
  162. package/dist/webcomponents/p-af0aeba4.entry.js +1 -0
  163. package/dist/webcomponents/p-b1408dea.entry.js +1 -0
  164. package/dist/webcomponents/{p-72c9e6b3.entry.js → p-ba95679b.entry.js} +1 -1
  165. package/dist/webcomponents/{p-1f70fa27.entry.js → p-bd2bb302.entry.js} +1 -1
  166. package/dist/webcomponents/{p-bc92235c.entry.js → p-d2af90c2.entry.js} +1 -1
  167. package/dist/webcomponents/{p-4abc17f0.entry.js → p-d76002d5.entry.js} +1 -1
  168. package/dist/webcomponents/{p-9ccfa1c9.entry.js → p-da1d174d.entry.js} +1 -1
  169. package/dist/webcomponents/{p-53e64f15.entry.js → p-e2b2213f.entry.js} +1 -1
  170. package/dist/webcomponents/{p-fe33151d.entry.js → p-eccf2e8e.entry.js} +1 -1
  171. package/dist/webcomponents/p-edab484a.entry.js +1 -0
  172. package/dist/webcomponents/{p-75b4daef.js → p-f5b5e47b.js} +1 -1
  173. package/dist/webcomponents/{p-4bac636e.entry.js → p-f844d67b.entry.js} +1 -1
  174. package/dist/webcomponents/webcomponents.esm.js +1 -1
  175. package/package.json +1 -1
  176. package/dist/collection/components/business-forms/utils/payload-parsers.js +0 -41
  177. package/dist/module/payload-parsers.js +0 -43
  178. package/dist/types/components/business-forms/utils/payload-parsers.d.ts +0 -4
  179. package/dist/webcomponents/p-2799383d.entry.js +0 -1
  180. package/dist/webcomponents/p-3d4d566d.entry.js +0 -1
  181. package/dist/webcomponents/p-3dd4c6c3.entry.js +0 -1
  182. package/dist/webcomponents/p-46f679a9.js +0 -1
  183. package/dist/webcomponents/p-48ae16e0.entry.js +0 -1
  184. package/dist/webcomponents/p-53948ff8.entry.js +0 -1
  185. package/dist/webcomponents/p-554a3c18.js +0 -1
  186. package/dist/webcomponents/p-92bb1e5f.entry.js +0 -1
  187. package/dist/webcomponents/p-ad41c8c7.entry.js +0 -1
  188. package/dist/webcomponents/p-af244664.js +0 -1
  189. package/dist/webcomponents/p-d101c5db.js +0 -1
  190. package/dist/webcomponents/p-d2a5054f.entry.js +0 -1
@@ -5,18 +5,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-fb499e95.js');
6
6
  const ComponentError = require('./ComponentError-233ac749.js');
7
7
  const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
8
- const business_service = require('./business.service-f63650f5.js');
8
+ const business_service = require('./business.service-65b0dbc8.js');
9
9
  const index_esm = require('./index.esm-52757963.js');
10
10
  const businessFormTypes = require('./business-form-types-6e1fcda3.js');
11
- const schemaValidations = require('./schema-validations-f3db892c.js');
12
- const businessFormOptions = require('./business-form-options-26f9900c.js');
13
- const Api = require('./Api-3bc6e43f.js');
11
+ const schemaValidations = require('./schema-validations-0a7e46a3.js');
12
+ const businessFormOptions = require('./business-form-options-5db0bd5e.js');
13
+ const Api = require('./Api-b98b256f.js');
14
14
  require('./Pagination-0da8f095.js');
15
15
  require('./Payment-1a8a8ca6.js');
16
16
  require('./Payout-a2dd7b01.js');
17
17
  const config = require('./config-ff2dda66.js');
18
18
  const utils = require('./utils-ddacfc44.js');
19
- const Business = require('./Business-aacbe893.js');
19
+ const Business = require('./Business-aa799fec.js');
20
20
  const skeleton = require('./skeleton-748c5dde.js');
21
21
  const button = require('./button-3f400a66.js');
22
22
  require('./utils-7a478c37.js');
@@ -148,7 +148,7 @@ const BusinessBankAccountFormStep = class {
148
148
  try {
149
149
  const formValues = this.formController.values.getValue();
150
150
  const payload = Object.assign(Object.assign({}, formValues), { business_id: this.businessId });
151
- const response = await this.api.post(this.bankAccountEndpoint, JSON.stringify(payload));
151
+ const response = await this.api.post(this.bankAccountEndpoint, payload);
152
152
  this.handleResponse(response, onSuccess);
153
153
  }
154
154
  catch (error) {
@@ -217,7 +217,7 @@ const BusinessBankAccountFormStep = class {
217
217
  }
218
218
  render() {
219
219
  const bankAccountDefaultValue = this.formController.getInitialValues();
220
- return (index.h("form", { key: 'b2e106437693b667376fb8091117bc04899cce13' }, index.h("fieldset", { key: 'c6fc0e5b39278a4618abe0aeba8593b4800f23fa' }, index.h("legend", { key: 'f07c520e32491dd506f7ac16b03b0eb82a451035' }, "Bank Account Info"), index.h("hr", { key: '43845af4ec6f143653154e301a49c870c688e8cb' }), index.h("div", { key: '911f450a0e81a7fcf6afb8b54be910da36b068d6', class: "row gy-3" }, index.h("div", { key: 'afe5dd40139f1098e69736cd08f00792916657b1', class: "col-12" }, index.h("form-control-text", { key: 'c590065940b5ef4ab5a125962e114d3bb99161e8', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: 'ad7ac99fdae7bb0108675cf4ea522ae7b0c7b340', class: "col-12" }, index.h("form-control-text", { key: '4e69debe8b184272c788f0ba206b7e983bb6bba5', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: 'a478bb2330e48935b65d22a42287ab89f94b4808', class: "col-12" }, index.h("form-control-text", { key: 'c20531fb2c5e903eefeeb62fca5a831cf2542867', name: "account_owner_name", label: "Account Owner Name", defaultValue: bankAccountDefaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: '63325c985d0341888ad9ce34fec48c623e275f55', class: "col-12" }, index.h("form-control-select", { key: 'b9fc86477dada5413e4a6e18b10e77de620996d9', name: "account_type", label: "Account Type", options: businessFormOptions.bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: '7d2849185532bb21c85cf8227749469e28fdc102', class: "col-12" }, index.h("form-control-text", { key: '466a38e94ed054788596ec63bed4b4ffe646dc63', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, disabled: this.formDisabled })), index.h("div", { key: '1162fae41dfc767cd038a37d7a7581b54dee1a1d', class: "col-12" }, index.h("form-control-text", { key: '47ffb34b6523d34df02739231b5764418f162fe6', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, disabled: this.formDisabled }))))));
220
+ return (index.h("form", { key: 'c2bdcd5ab6301d1a39e4d774df101281c41e2002' }, index.h("fieldset", { key: '7f6b607be5b7bc5fcd0dc1687adaa1ad00d7d2e9' }, index.h("legend", { key: '91b68746c65bb68f4fbd2eef151258e6915f8e35' }, "Bank Account Info"), index.h("hr", { key: '5eceedbf59faef10757c9e2b04d4dc4cd6b88a9b' }), index.h("div", { key: 'd3185db7fceb9851ccb44c1c89f8cbe5a37c24e0', class: "row gy-3" }, index.h("div", { key: '625caf0e9b93c244d94c69174ffff57126d39fa1', class: "col-12" }, index.h("form-control-text", { key: 'ddf3206b09047dfea56df850babe6c8f92ed33ee', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: 'd7d498353eec8e1947ce748aa35cbee63e793817', class: "col-12" }, index.h("form-control-text", { key: 'a80050dcd088db0209c2e5da65b310d7fc7877f5', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: 'ea5578470e0e4d0fd5b973807475a02c7764c9c8', class: "col-12" }, index.h("form-control-text", { key: 'dd8c77b43ddfca61cfd5ed39ce6e142654f18d9f', name: "account_owner_name", label: "Account Owner Name", defaultValue: bankAccountDefaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: 'cb3256226c5fdfa5ff2a02c456a6c384e06d16a6', class: "col-12" }, index.h("form-control-select", { key: 'a865f48350a0ae6b6a2a540dc2d54de72a8af074', name: "account_type", label: "Account Type", options: businessFormOptions.bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), index.h("div", { key: 'aa9062a25dade06db1f175d4233f2e5bb4e7ecd7', class: "col-12" }, index.h("form-control-text", { key: '1a87920e4df50178625446c770e4182d918664c7', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, disabled: this.formDisabled })), index.h("div", { key: 'c72858a29aa1289b367c0eb89d6cc0eded23346d', class: "col-12" }, index.h("form-control-text", { key: 'b7fb93bcf16c01689245d5aca11142b013fe6adc', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: utils.numberOnlyHandler, disabled: this.formDisabled }))))));
221
221
  }
222
222
  };
223
223
 
@@ -335,7 +335,7 @@ const BusinessDocumentFormStep = class {
335
335
  this.formLoading.emit(true);
336
336
  const payload = docData.record_data;
337
337
  try {
338
- const response = await this.api.post(this.documentEndpoint, JSON.stringify(payload));
338
+ const response = await this.api.post(this.documentEndpoint, payload);
339
339
  return this.handleDocRecordResponse(docData, response);
340
340
  }
341
341
  catch (error) {
@@ -467,7 +467,7 @@ const BusinessDocumentFormStep = class {
467
467
  return (index.h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
468
468
  }
469
469
  render() {
470
- return (index.h("form", { key: '8f2e1d262cd5050b315019a1947b1474eaf995de' }, index.h("fieldset", { key: 'd022b1c294835e456a9067fcfdbf2b93a33c8ca8' }, index.h("legend", { key: '522ecbab0489efa6d4294f38f792a28770010f1e' }, "Document Uploads"), index.h("p", { key: 'b49a6b3a4a7c79b368b20455b4ed4a943f08ec51' }, "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."), index.h("hr", { key: '3d8c2f7f5b128b99ceaa501166ae60c490b12378' }), this.documentsOnFile, index.h("div", { key: 'd2627185483e1be43c0b34d80b1fcfa850decd28', class: "d-flex flex-column" }, this.formInputs))));
470
+ return (index.h("form", { key: '38bb9070ca04f773ec092ebb14ce8ad20f33d8cf' }, index.h("fieldset", { key: '9c736d11200bb9c5a37c1319f3bfb349b7a5e93f' }, index.h("legend", { key: '92ed2fb864e85e38532af364518c25ef4bd275a5' }, "Document Uploads"), index.h("p", { key: 'f5803df74a5d0bc4e544c6cc968333f2a3f77385' }, "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."), index.h("hr", { key: '0c696d1bdb614bdacb3cbadeee66c95149efda68' }), this.documentsOnFile, index.h("div", { key: '7919205dfda677526d810a9fa1507ed8a55eafb8', class: "d-flex flex-column" }, this.formInputs))));
471
471
  }
472
472
  };
473
473
 
@@ -608,7 +608,7 @@ const BusinessTermsConditionsFormStep = class {
608
608
  this.sendData = async (onSuccess) => {
609
609
  this.formLoading.emit(true);
610
610
  try {
611
- const payload = JSON.stringify(this.termsPayload);
611
+ const payload = this.termsPayload;
612
612
  const response = await this.api.post(this.termsConditionsEndpoint, payload);
613
613
  this.handleResponse(response, onSuccess);
614
614
  }
@@ -687,7 +687,7 @@ const BusinessTermsConditionsFormStep = class {
687
687
  });
688
688
  }
689
689
  render() {
690
- return (index.h("form", { key: '29b946b553d7a8011bee8f1997888f04b51897b3' }, index.h("fieldset", { key: 'c6e6c2577a66e58de8aabaac572cd7dab0a609b2' }, index.h("legend", { key: '4cf7e19049ee60807ffc5cbecbc8b87e9725590a' }, "Terms and Conditions"), index.h("hr", { key: 'b0d0bb46987a864a20a419eb0b2338fd57d07765' }), index.h("justifi-business-terms-conditions-text", { key: 'c936f2205bf123266d8eed2f12194eb2d8feb056' }), index.h("br", { key: 'e4f38ba5341c5fcf5938c3637905612e02bc7077' }), index.h("div", { key: '163401aaaee6e037d94182e5005625055bda66c5', class: "row-gy-3" }, index.h("div", { key: '3925d9b802f62e16cc41407170593b4b9a676bd9', class: "col-12" }, index.h("form-control-checkbox", { key: 'd86e00bfebe915d84a41486be34cec3555598d92', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
690
+ return (index.h("form", { key: 'a292e2b1b69d152009000d9e7009e5ab07698bc8' }, index.h("fieldset", { key: '30843e9ed0029f64abcf076512af82974dd99598' }, index.h("legend", { key: '6453679a074056668bdd93cb91d2d725b73fb0da' }, "Terms and Conditions"), index.h("hr", { key: '6a44c1128e3dceb770b16533aa61fb5e81f5dda2' }), index.h("justifi-business-terms-conditions-text", { key: '714c9f81c1d1f91712a276259acf4eb6734b40d4' }), index.h("br", { key: '5e955908e53af5ade77fca9f2a47e8a9d10e7ad8' }), index.h("div", { key: '7c6ca9d2634c7cc6988292ffedf86b64c3865557', class: "row-gy-3" }, index.h("div", { key: 'e8f01c4bdcc07e0063e3b8f5f1acbabc9b3310f7', class: "col-12" }, index.h("form-control-checkbox", { key: 'e09eeb02dc30a9461e958bf43685d2c58f4a608f', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
691
691
  }
692
692
  };
693
693
 
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const config = require('./config-ff2dda66.js');
7
- const Analytics = require('./Analytics-f870b3ee.js');
8
- require('./package-1321b070.js');
9
- require('./Api-3bc6e43f.js');
7
+ const Analytics = require('./Analytics-c866f471.js');
8
+ require('./package-0c613220.js');
9
+ require('./Api-b98b256f.js');
10
10
 
11
11
  const BankAccountForm = class {
12
12
  constructor(hostRef) {
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const index_esm = require('./index.esm-52757963.js');
7
- const schemaValidations = require('./schema-validations-f3db892c.js');
7
+ const schemaValidations = require('./schema-validations-0a7e46a3.js');
8
8
  const stateOptions = require('./state-options-4fbcb48a.js');
9
9
  const utils = require('./utils-ddacfc44.js');
10
10
  const styledHost = require('./styled-host-cc053016.js');
11
- require('./business-form-options-26f9900c.js');
12
- require('./Business-aacbe893.js');
11
+ require('./business-form-options-5db0bd5e.js');
12
+ require('./Business-aa799fec.js');
13
13
  require('./helpers-602962eb.js');
14
14
 
15
15
  const BillingFormSchema = index_esm.create$3({
@@ -4,16 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const utils$1 = require('./utils-c1d2e426.js');
7
- const business_service = require('./business.service-f63650f5.js');
8
- const Business = require('./Business-aacbe893.js');
7
+ const business_service = require('./business.service-65b0dbc8.js');
8
+ const Business = require('./Business-aa799fec.js');
9
9
  const ComponentError = require('./ComponentError-233ac749.js');
10
10
  const utils = require('./utils-7a478c37.js');
11
- const Analytics = require('./Analytics-f870b3ee.js');
11
+ const Analytics = require('./Analytics-c866f471.js');
12
12
  require('./config-ff2dda66.js');
13
- require('./Api-3bc6e43f.js');
13
+ require('./Api-b98b256f.js');
14
14
  require('./helpers-602962eb.js');
15
15
  require('./state-options-4fbcb48a.js');
16
- require('./package-1321b070.js');
16
+ require('./package-0c613220.js');
17
17
 
18
18
  const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
19
19
  var _a;
@@ -4,24 +4,24 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const index_esm = require('./index.esm-52757963.js');
7
- const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-11ce0005.js');
8
- const payloadParsers = require('./payload-parsers-969ab9b6.js');
9
- const Api = require('./Api-3bc6e43f.js');
7
+ const businessAdditionalQuestionsSchema = require('./business-additional-questions-schema-26b0eecb.js');
8
+ const businessIdentitySchema = require('./business-identity-schema-503ecb77.js');
9
+ const Api = require('./Api-b98b256f.js');
10
10
  require('./Pagination-0da8f095.js');
11
11
  require('./Payment-1a8a8ca6.js');
12
12
  require('./Payout-a2dd7b01.js');
13
13
  const config = require('./config-ff2dda66.js');
14
14
  const businessFormTypes = require('./business-form-types-6e1fcda3.js');
15
- const Business = require('./Business-aacbe893.js');
16
- const Analytics = require('./Analytics-f870b3ee.js');
15
+ const Business = require('./Business-aa799fec.js');
16
+ const Analytics = require('./Analytics-c866f471.js');
17
17
  const styledHost = require('./styled-host-cc053016.js');
18
- require('./schema-validations-f3db892c.js');
18
+ require('./schema-validations-0a7e46a3.js');
19
19
  require('./state-options-4fbcb48a.js');
20
- require('./business-form-options-26f9900c.js');
20
+ require('./business-form-options-5db0bd5e.js');
21
21
  require('./helpers-602962eb.js');
22
- require('./package-1321b070.js');
22
+ require('./package-0c613220.js');
23
23
 
24
- const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchema().fields), { legal_address: payloadParsers.addressSchema(), additional_questions: businessAdditionalQuestionsSchema.additionalQuestionsSchema(), representative: payloadParsers.identitySchema('representative') }));
24
+ const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchema().fields), { legal_address: businessIdentitySchema.addressSchema(), additional_questions: businessAdditionalQuestionsSchema.additionalQuestionsSchema(), representative: businessIdentitySchema.identitySchema('representative') }));
25
25
 
26
26
  const businessFormCss = ":host{display:block}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-checkbox){font-family:var(--jfi-layout-font-family);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);line-height:var(--jfi-form-control-line-height)}*::part(input-checkbox):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-checkbox-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-checkbox-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";
27
27
  const JustifiBusinessFormStyle0 = businessFormCss;
@@ -41,8 +41,8 @@ const BusinessForm = class {
41
41
  try {
42
42
  const values = this.formController.values.getValue();
43
43
  const initialValues = this.formController.getInitialValues();
44
- const payload = payloadParsers.parseBusiness(values, initialValues);
45
- const response = await this.api.patch(this.businessEndpoint, JSON.stringify(payload));
44
+ const payload = new Business.Business(Object.assign(Object.assign({}, initialValues), values)).payload;
45
+ const response = await this.api.patch(this.businessEndpoint, payload);
46
46
  this.handleReponse(response);
47
47
  }
48
48
  catch (error) {
@@ -114,7 +114,7 @@ const BusinessForm = class {
114
114
  this.instantiateBusiness(response.data);
115
115
  }
116
116
  render() {
117
- return (index.h(styledHost.StyledHost, { key: '60989d23631d6a02e9a25313dd7297a61063a09c', exportparts: "label,input,input-invalid" }, index.h("form", { key: 'd961174a3e93ed505012919a0e7e036bd61a4902', onSubmit: this.validateAndSubmit }, index.h("div", { key: '2be81a7f0e3b568266ee66127f2b537d57c36762', class: "row gap-3" }, index.h("h1", { key: 'eefc257f687ff24cebf13155a571398e3ddbcabd' }, this.title), index.h("form-alert", { key: '173d3ee84f5a952a51884ab5f3818c768fcc9b08', text: this.errorMessage, hideAlert: this.hideErrors }), index.h("div", { key: 'bfd7fd73aca630fcf56f468d912759d5a96de172', class: "col-12 mb-4" }, index.h("justifi-business-core-info", { key: 'dc15f46a28301c03ccd884ff09740e87d67b2e5a', formController: this.formController })), index.h("div", { key: 'b4cd6ba605ea28a7692cc561951bb69ad93bb8f5', class: "col-12 mb-4" }, index.h("justifi-legal-address-form", { key: '670f320ff6d1ba86a34f5b42dd97a5d38e96c209', formController: this.formController })), index.h("div", { key: '0afb9d18e6ecb951cefda4df5dd133d31359cecc', class: "col-12 mb-4" }, index.h("justifi-additional-questions", { key: '6953718bea9525126db35adc44a9c8754234816a', formController: this.formController })), index.h("div", { key: 'f88b576b9159cd43f17d5a63c26acc4b53dfa9a0', class: "col-12 mb-4" }, index.h("justifi-business-representative", { key: '4353116715c7f7b906c3c0eae322df04703fd8e5', formController: this.formController })), index.h("div", { key: 'd626b0738ce71f7529fa270d7a2c479f517e48a2', class: "col-12 d-flex flex-row-reverse" }, index.h("button", { key: '9469e132726c9bd02b8a1f4c4ca1a4c2a9000c1b', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: businessFormTypes.BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
117
+ return (index.h(styledHost.StyledHost, { key: 'e388e1e7658969f0e5687102a62345e2790da97a', exportparts: "label,input,input-invalid" }, index.h("form", { key: 'c22a562e57539e982a071b1906e5bf0bcc249e7d', onSubmit: this.validateAndSubmit }, index.h("div", { key: '44243cd965b448f5be9058880aa2deb32f4ce8dc', class: "row gap-3" }, index.h("h1", { key: 'd666ed8ddacc8ac05d7f42c2f4824208b92cdb3f' }, this.title), index.h("form-alert", { key: 'b1d4025078c4373a789609f2e14d309f0ee280fe', text: this.errorMessage, hideAlert: this.hideErrors }), index.h("div", { key: 'cdc1d597a5dbf9581182de302a453e4ea98bb28f', class: "col-12 mb-4" }, index.h("justifi-business-core-info", { key: '2333164de020eadf54da91cabdcbeb87a2fd1b75', formController: this.formController })), index.h("div", { key: '74eafa5c419f6d6fe2eb3eeb8521e12175f7ee3a', class: "col-12 mb-4" }, index.h("justifi-legal-address-form", { key: '1e5a373f95a77bf3aba1a9f3538b3a2ac3dbf716', formController: this.formController })), index.h("div", { key: 'ec9f6195f3674b426722463341445f0ed1746178', class: "col-12 mb-4" }, index.h("justifi-additional-questions", { key: '0adbc60492f4ad71e3877c446376999418b7dc15', formController: this.formController })), index.h("div", { key: 'cdfb8d0d40e9f888afd9c23cd97d33d861d16f62', class: "col-12 mb-4" }, index.h("justifi-business-representative", { key: '4d03ec95b7c2918494c9970b3e6a5826d4d69a10', formController: this.formController })), index.h("div", { key: '0682dba469e57a938b175499312de5d5c4f55a69', class: "col-12 d-flex flex-row-reverse" }, index.h("button", { key: '64791e2742ee129787094c7123e87c4262735556', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: businessFormTypes.BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
118
118
  }
119
119
  };
120
120
  BusinessForm.style = JustifiBusinessFormStyle0;
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const config = require('./config-ff2dda66.js');
7
- const Analytics = require('./Analytics-f870b3ee.js');
8
- require('./package-1321b070.js');
9
- require('./Api-3bc6e43f.js');
7
+ const Analytics = require('./Analytics-c866f471.js');
8
+ require('./package-0c613220.js');
9
+ require('./Api-b98b256f.js');
10
10
 
11
11
  const CardForm = class {
12
12
  constructor(hostRef) {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const utils = require('./utils-89d86e29.js');
6
+ const utils = require('./utils-af1b60a9.js');
7
7
  const config = require('./config-ff2dda66.js');
8
8
  const ComponentError = require('./ComponentError-233ac749.js');
9
9
  const insuranceState = require('./insurance-state-80e24caf.js');
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-fb499e95.js');
6
6
  const ComponentError = require('./ComponentError-233ac749.js');
7
7
  const utils = require('./utils-7a478c37.js');
8
- const Api = require('./Api-3bc6e43f.js');
8
+ const Api = require('./Api-b98b256f.js');
9
9
  require('./Pagination-0da8f095.js');
10
10
  require('./Payment-1a8a8ca6.js');
11
11
  require('./Payout-a2dd7b01.js');
12
12
  const config = require('./config-ff2dda66.js');
13
- const Analytics = require('./Analytics-f870b3ee.js');
14
- require('./package-1321b070.js');
13
+ const Analytics = require('./Analytics-c866f471.js');
14
+ require('./package-0c613220.js');
15
15
 
16
16
  const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
17
17
  var _a;
@@ -80,7 +80,7 @@ class CheckoutService {
80
80
  if (payment.payment_token) {
81
81
  payload.payment_token = payment.payment_token;
82
82
  }
83
- return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
83
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, payload);
84
84
  }
85
85
  }
86
86
 
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const config = require('./config-ff2dda66.js');
7
- const Api = require('./Api-3bc6e43f.js');
7
+ const Api = require('./Api-b98b256f.js');
8
8
  const ComponentError = require('./ComponentError-233ac749.js');
9
9
  const utils = require('./utils-7a478c37.js');
10
10
  const utils$1 = require('./utils-c1d2e426.js');
11
- const Analytics = require('./Analytics-f870b3ee.js');
12
- require('./package-1321b070.js');
11
+ const Analytics = require('./Analytics-c866f471.js');
12
+ require('./package-0c613220.js');
13
13
 
14
14
  class ReportsService {
15
15
  async fetchGrossVolumeChartData(accountId, authToken) {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-fb499e95.js');
6
6
  const config = require('./config-ff2dda66.js');
7
7
  const Payment = require('./Payment-1a8a8ca6.js');
8
- const utils = require('./utils-89d86e29.js');
8
+ const utils = require('./utils-af1b60a9.js');
9
9
 
10
10
  const PaymentMethodTypeLabels = {
11
11
  bankAccount: 'New bank account',
@@ -4,22 +4,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
7
- const business_service = require('./business.service-f63650f5.js');
7
+ const business_service = require('./business.service-65b0dbc8.js');
8
8
  const index_esm = require('./index.esm-52757963.js');
9
- const Business = require('./Business-aacbe893.js');
9
+ const Business = require('./Business-aa799fec.js');
10
10
  const businessFormTypes = require('./business-form-types-6e1fcda3.js');
11
- const payloadParsers = require('./payload-parsers-969ab9b6.js');
11
+ const businessIdentitySchema = require('./business-identity-schema-503ecb77.js');
12
12
  const button = require('./button-3f400a66.js');
13
13
  const formInputMasks = require('./form-input-masks-0879c139.js');
14
14
  const inputHandlers = require('./input-handlers-cff032bb.js');
15
15
  require('./ComponentError-233ac749.js');
16
16
  require('./utils-7a478c37.js');
17
17
  require('./config-ff2dda66.js');
18
- require('./Api-3bc6e43f.js');
18
+ require('./Api-b98b256f.js');
19
19
  require('./helpers-602962eb.js');
20
20
  require('./state-options-4fbcb48a.js');
21
- require('./schema-validations-f3db892c.js');
22
- require('./business-form-options-26f9900c.js');
21
+ require('./schema-validations-0a7e46a3.js');
22
+ require('./business-form-options-5db0bd5e.js');
23
23
 
24
24
  const BusinessOwnerForm = class {
25
25
  constructor(hostRef) {
@@ -201,12 +201,12 @@ const BusinessOwnerFormCore = class {
201
201
  }
202
202
  }
203
203
  get payload() {
204
- let formValues = payloadParsers.parseIdentityInfo(this.formController.values.getValue());
204
+ let formValues = new Business.Owner(this.formController.values.getValue()).payload;
205
205
  if (this.ownerId) {
206
- return JSON.stringify(formValues);
206
+ return formValues;
207
207
  }
208
208
  else {
209
- return JSON.stringify(Object.assign(Object.assign({}, formValues), { business_id: this.businessId }));
209
+ return Object.assign(Object.assign({}, formValues), { business_id: this.businessId });
210
210
  }
211
211
  }
212
212
  get formTitle() {
@@ -230,14 +230,14 @@ const BusinessOwnerFormCore = class {
230
230
  }
231
231
  }
232
232
  componentWillLoad() {
233
- this.formController = new index_esm.FormController(payloadParsers.identitySchema('owner', this.allowOptionalFields));
233
+ this.formController = new index_esm.FormController(businessIdentitySchema.identitySchema('owner', this.allowOptionalFields));
234
234
  this.ownerId ? this.getData() : this.instantiateOwner({});
235
235
  }
236
236
  componentDidLoad() {
237
237
  this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
238
238
  }
239
239
  render() {
240
- return (index.h("form", { key: 'b2e2aaced859260e9d2ef59bc3f8a0763d05872c', onSubmit: this.validateAndSubmit }, index.h("fieldset", { key: '2a93ddb4c945be0ec081ce31d6d9eff4b302d622' }, index.h("legend", { key: 'ea9859e55099e3f8263024d884edfb48b3666eaa', class: "fw-semibold fs-5" }, this.formTitle), index.h("br", { key: 'f646c1ecc544c358d87e701aba8e151fcb96c54e' }), index.h("div", { key: '874bf4ebd7cef0afbdee96fa4d5679b6d683b0f0', class: "row gy-3" }, index.h("owner-form-inputs", { key: '866dbf0002ec1ac70d7942c6011c67f8cd144960', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), index.h("div", { key: '15d907270ecf3d16769cedea39ba279d7ffb0748', class: "d-flex gap-2 justify-content-start" }, index.h(button.Button, { key: '84c09ef594e7fa387e64a09014de81ed713cc765', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), index.h(button.Button, { key: '1dafd97aa7b84644c9d011224a152ad7f99ce620', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), index.h("hr", { key: 'f1f31da4d147afcd01ef96acd01d63ee9497dd6b' }))));
240
+ return (index.h("form", { key: '27f0d989f017bd03b84cf8c994fa96f9a65aad08', onSubmit: this.validateAndSubmit }, index.h("fieldset", { key: '2c793f1f8777181e5db0a4cae5b9994d9188685e' }, index.h("legend", { key: 'a8951fcd990c8136cf6672424869f5c96def3cef', class: "fw-semibold fs-5" }, this.formTitle), index.h("br", { key: 'faaf0cc27c448452a5172ad7fcfcf510ec586d2b' }), index.h("div", { key: '486638ad24414a05f84ada3f37a89d0cc12e7ffb', class: "row gy-3" }, index.h("owner-form-inputs", { key: 'bdfe7cb3305f31d93321319ef14eee3e5b331381', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), index.h("div", { key: '9e5c63e0637e0bffe5ab77a1f73c203704115479', class: "d-flex gap-2 justify-content-start" }, index.h(button.Button, { key: '85de4b69c697ebf96778f538b1535bd1fb2c43e7', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), index.h(button.Button, { key: '1dd026432f19f84ae2142101191e511ebd62c2b3', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), index.h("hr", { key: '2570611bbe663e2e128f03806ecb036ce750c80b' }))));
241
241
  }
242
242
  static get watchers() { return {
243
243
  "isLoading": ["loadingWatcher"]
@@ -3,17 +3,17 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const payment_service = require('./payment.service-0a64f9cd.js');
6
+ const payment_service = require('./payment.service-33d6ac16.js');
7
7
  require('./Pagination-0da8f095.js');
8
8
  const Payment = require('./Payment-1a8a8ca6.js');
9
9
  require('./Payout-a2dd7b01.js');
10
10
  const ComponentError = require('./ComponentError-233ac749.js');
11
11
  const utils = require('./utils-7a478c37.js');
12
12
  const utils$1 = require('./utils-c1d2e426.js');
13
- const Analytics = require('./Analytics-f870b3ee.js');
14
- require('./Api-3bc6e43f.js');
13
+ const Analytics = require('./Analytics-c866f471.js');
14
+ require('./Api-b98b256f.js');
15
15
  require('./config-ff2dda66.js');
16
- require('./package-1321b070.js');
16
+ require('./package-0c613220.js');
17
17
 
18
18
  const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
19
19
  var _a;
@@ -6,15 +6,15 @@ const index = require('./index-fb499e95.js');
6
6
  require('./Pagination-0da8f095.js');
7
7
  const Payment = require('./Payment-1a8a8ca6.js');
8
8
  require('./Payout-a2dd7b01.js');
9
- const utils = require('./utils-89d86e29.js');
9
+ const utils = require('./utils-af1b60a9.js');
10
10
  const config = require('./config-ff2dda66.js');
11
11
  const ComponentError = require('./ComponentError-233ac749.js');
12
12
  const utils$1 = require('./utils-7a478c37.js');
13
- const Analytics = require('./Analytics-f870b3ee.js');
13
+ const Analytics = require('./Analytics-c866f471.js');
14
14
  const button = require('./button-3f400a66.js');
15
15
  const styledHost = require('./styled-host-cc053016.js');
16
- require('./package-1321b070.js');
17
- require('./Api-3bc6e43f.js');
16
+ require('./package-0c613220.js');
17
+ require('./Api-b98b256f.js');
18
18
 
19
19
  const paymentFormCss = ":host{display:block}justifi-payment-method-form{display:block;margin-left:calc(var(--jfi-layout-padding) * -1);margin-right:calc(var(--jfi-layout-padding) * -1)}*::part(label){color:var(--jfi-form-label-color);font-family:var(--jfi-form-label-font-family);font-weight:var(--jfi-form-label-font-weight);font-size:var(--jfi-form-label-font-size);margin:var(--jfi-form-label-margin)}*::part(input){font-family:var(--jfi-layout-font-family);background-color:var(--jfi-form-control-background-color);border-color:var(--jfi-form-control-border-color);border-width:var(--jfi-form-control-border-width);border-bottom-width:var(--jfi-form-control-border-bottom-width);border-left-width:var(--jfi-form-control-border-left-width);border-right-width:var(--jfi-form-control-border-right-width);border-top-width:var(--jfi-form-control-border-top-width);border-radius:var(--jfi-form-control-border-radius);border-style:var(--jfi-form-control-border-style);box-shadow:var(--jfi-form-control-box-shadow);color:var(--jfi-form-control-color);font-size:var(--jfi-form-control-font-size);font-weight:var(--jfi-form-control-font-weight);line-height:var(--jfi-form-control-line-height);margin:var(--jfi-form-control-margin);padding:var(--jfi-form-control-padding)}*::part(input):focus{color:var(--jfi-form-control-color-focus);border-color:var(--jfi-form-control-border-color-focus);box-shadow:var(--jfi-form-control-box-shadow-focus)}*::part(input-invalid){border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error)}*::part(input-invalid):focus{border-color:var(--jfi-form-control-border-color-error);box-shadow:var(--jfi-form-control-box-shadow-error-focus)}.jfi-submit-button{font-family:var(--jfi-layout-font-family);color:var(--jfi-submit-button-color);background-color:var(--jfi-submit-button-background-color);border-color:var(--jfi-submit-button-border-color);padding:var(--jfi-submit-button-padding);font-size:var(--jfi-submit-button-font-size);border-radius:var(--jfi-submit-button-border-radius);width:var(--jfi-submit-button-width);box-shadow:var(--jfi-submit-button-box-shadow)}.jfi-submit-button:hover{color:var(--jfi-submit-button-color-hover);background-color:var(--jfi-submit-button-background-color-hover);border-color:var(--jfi-submit-button-border-color-hover)}.jfi-submit-button:focus{color:var(--jfi-submit-button-color-focus);background-color:var(--jfi-submit-button-background-color-focus);border-color:var(--jfi-submit-button-border-color-focus)}.btn.jfi-submit-button:active{color:var(--jfi-submit-button-color-active);background-color:var(--jfi-submit-button-background-color-active);border-color:var(--jfi-submit-button-border-color-active)}.btn.jfi-submit-button-loading{min-width:75px;color:var(--jfi-submit-button-color-loading);background-color:var(--jfi-submit-button-background-color-loading);border-color:var(--jfi-submit-button-border-color-loading)}.btn.jfi-submit-button-loading .spinner-border{border-top-color:var(--jfi-submit-button-color-loading);border-bottom-color:var(--jfi-submit-button-color-loading);border-left-color:var(--jfi-submit-button-color-loading)}";
20
20
  const JustifiPaymentFormStyle0 = paymentFormCss;
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const _package = require('./package-1321b070.js');
7
- const utils = require('./utils-89d86e29.js');
6
+ const _package = require('./package-0c613220.js');
7
+ const utils = require('./utils-af1b60a9.js');
8
8
 
9
9
  var iframeResizer = {exports: {}};
10
10
 
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const Analytics = require('./Analytics-f870b3ee.js');
6
+ const Analytics = require('./Analytics-c866f471.js');
7
7
  const ComponentError = require('./ComponentError-233ac749.js');
8
8
  const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
9
- const business_service = require('./business.service-f63650f5.js');
9
+ const business_service = require('./business.service-65b0dbc8.js');
10
10
  const config = require('./config-ff2dda66.js');
11
- const Api = require('./Api-3bc6e43f.js');
12
- require('./package-1321b070.js');
11
+ const Api = require('./Api-b98b256f.js');
12
+ require('./package-0c613220.js');
13
13
  require('./utils-7a478c37.js');
14
14
 
15
15
  class ProvisionService {
@@ -19,7 +19,7 @@ class ProvisionService {
19
19
  business_id: businessId,
20
20
  product_category: product
21
21
  };
22
- return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
22
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, payload);
23
23
  }
24
24
  }
25
25
 
@@ -3,17 +3,17 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const payment_service = require('./payment.service-0a64f9cd.js');
6
+ const payment_service = require('./payment.service-33d6ac16.js');
7
7
  require('./Pagination-0da8f095.js');
8
8
  const Payment = require('./Payment-1a8a8ca6.js');
9
9
  require('./Payout-a2dd7b01.js');
10
10
  const ComponentError = require('./ComponentError-233ac749.js');
11
11
  const utils = require('./utils-7a478c37.js');
12
12
  const utils$1 = require('./utils-c1d2e426.js');
13
- const Analytics = require('./Analytics-f870b3ee.js');
14
- require('./Api-3bc6e43f.js');
13
+ const Analytics = require('./Analytics-c866f471.js');
14
+ require('./Api-b98b256f.js');
15
15
  require('./config-ff2dda66.js');
16
- require('./package-1321b070.js');
16
+ require('./package-0c613220.js');
17
17
 
18
18
  const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
19
19
  var _a, _b;
@@ -3,17 +3,17 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const getPayoutCsv = require('./get-payout-csv-f3aee6d0.js');
6
+ const getPayoutCsv = require('./get-payout-csv-b98b0651.js');
7
7
  require('./Pagination-0da8f095.js');
8
8
  require('./Payment-1a8a8ca6.js');
9
9
  const Payout = require('./Payout-a2dd7b01.js');
10
10
  const ComponentError = require('./ComponentError-233ac749.js');
11
11
  const utils = require('./utils-7a478c37.js');
12
12
  const utils$1 = require('./utils-c1d2e426.js');
13
- const Analytics = require('./Analytics-f870b3ee.js');
14
- require('./Api-3bc6e43f.js');
13
+ const Analytics = require('./Analytics-c866f471.js');
14
+ require('./Api-b98b256f.js');
15
15
  require('./config-ff2dda66.js');
16
- require('./package-1321b070.js');
16
+ require('./package-0c613220.js');
17
17
 
18
18
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
19
19
  var _a;
@@ -4,17 +4,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const exportedParts = require('./exported-parts-b18c68c2.js');
7
- const getPayoutCsv = require('./get-payout-csv-f3aee6d0.js');
7
+ const getPayoutCsv = require('./get-payout-csv-b98b0651.js');
8
8
  require('./Pagination-0da8f095.js');
9
9
  require('./Payment-1a8a8ca6.js');
10
10
  const Payout = require('./Payout-a2dd7b01.js');
11
11
  const ComponentError = require('./ComponentError-233ac749.js');
12
12
  const utils = require('./utils-7a478c37.js');
13
13
  const utils$1 = require('./utils-c1d2e426.js');
14
- const Analytics = require('./Analytics-f870b3ee.js');
15
- require('./Api-3bc6e43f.js');
14
+ const Analytics = require('./Analytics-c866f471.js');
15
+ require('./Api-b98b256f.js');
16
16
  require('./config-ff2dda66.js');
17
- require('./package-1321b070.js');
17
+ require('./package-0c613220.js');
18
18
 
19
19
  const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
20
20
  var _a, _b;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const index_esm = require('./index.esm-52757963.js');
7
- const Api = require('./Api-3bc6e43f.js');
7
+ const Api = require('./Api-b98b256f.js');
8
8
  require('./Pagination-0da8f095.js');
9
9
  require('./Payment-1a8a8ca6.js');
10
10
  require('./Payout-a2dd7b01.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const utils = require('./utils-89d86e29.js');
6
+ const utils = require('./utils-af1b60a9.js');
7
7
  const insuranceState = require('./insurance-state-80e24caf.js');
8
8
  const styledHost = require('./styled-host-cc053016.js');
9
9
 
@@ -3,24 +3,24 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const Api = require('./Api-3bc6e43f.js');
6
+ const Api = require('./Api-b98b256f.js');
7
7
  require('./Pagination-0da8f095.js');
8
8
  require('./Payment-1a8a8ca6.js');
9
9
  require('./Payout-a2dd7b01.js');
10
10
  const config = require('./config-ff2dda66.js');
11
11
  const utils = require('./utils-7a478c37.js');
12
12
  const ComponentError = require('./ComponentError-233ac749.js');
13
- const Analytics = require('./Analytics-f870b3ee.js');
14
- require('./package-1321b070.js');
13
+ const Analytics = require('./Analytics-c866f471.js');
14
+ require('./package-0c613220.js');
15
15
 
16
16
  class InsuranceService {
17
17
  async fetchQuote(authToken, payload) {
18
18
  const endpoint = 'insurance/quotes';
19
- return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
19
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, payload);
20
20
  }
21
21
  async toggleCoverage(authToken, quoteId, payload) {
22
22
  const endpoint = `insurance/quotes/${quoteId}/toggle`;
23
- return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
23
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, payload);
24
24
  }
25
25
  }
26
26
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const name = "@justifi/webcomponents";
4
- const version = "4.19.1";
4
+ const version = "4.19.2";
5
5
  const description = "JustiFi Web Components";
6
6
  const collection = "dist/collection/collection-manifest.json";
7
7
  const main = "dist/index.cjs.js";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const utils$1 = require('./utils-89d86e29.js');
6
+ const utils$1 = require('./utils-af1b60a9.js');
7
7
  const utils = require('./utils-c1d2e426.js');
8
8
  const styledHost = require('./styled-host-cc053016.js');
9
9
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const Api = require('./Api-3bc6e43f.js');
3
+ const Api = require('./Api-b98b256f.js');
4
4
  require('./Pagination-0da8f095.js');
5
5
  require('./Payment-1a8a8ca6.js');
6
6
  require('./Payout-a2dd7b01.js');
@@ -6,7 +6,7 @@ const index = require('./index-fb499e95.js');
6
6
  const Pagination = require('./Pagination-0da8f095.js');
7
7
  require('./Payment-1a8a8ca6.js');
8
8
  require('./Payout-a2dd7b01.js');
9
- const utils = require('./utils-89d86e29.js');
9
+ const utils = require('./utils-af1b60a9.js');
10
10
  const exportedParts = require('./exported-parts-b18c68c2.js');
11
11
  const styledHost = require('./styled-host-cc053016.js');
12
12
  const tableLoadingState = require('./table-loading-state-8b406852.js');