@justifi/webcomponents 4.19.3-rc-2 → 4.19.3

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 (301) hide show
  1. package/dist/cjs/{Analytics-adc90fc6.js → Analytics-a0a86d82.js} +4 -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-cf545610.js → business-additional-questions-schema-26b0eecb.js} +1 -1
  6. package/dist/cjs/{business-form-options-582467fe.js → business-form-options-5db0bd5e.js} +2 -2
  7. package/dist/cjs/{payload-parsers-1cbc3b57.js → business-identity-schema-503ecb77.js} +1 -47
  8. package/dist/cjs/{business.service-090a21e1.js → business.service-031c0084.js} +7 -6
  9. package/dist/cjs/config-05767cba.js +15 -0
  10. package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
  11. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +26 -26
  12. package/dist/cjs/{get-payout-csv-238e839a.js → get-payout-csv-3a3260ec.js} +5 -4
  13. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  14. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +15 -14
  15. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -5
  16. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +3 -3
  17. package/dist/cjs/justifi-business-details.cjs.entry.js +6 -5
  18. package/dist/cjs/justifi-business-form.cjs.entry.js +14 -13
  19. package/dist/cjs/justifi-card-form.cjs.entry.js +6 -5
  20. package/dist/cjs/justifi-checkout-core.cjs.entry.js +4 -4
  21. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -5
  22. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -4
  23. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +10 -12
  24. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -11
  25. package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -4
  26. package/dist/cjs/justifi-payment-form.cjs.entry.js +8 -7
  27. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +2 -2
  28. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -5
  29. package/dist/cjs/justifi-payments-list.cjs.entry.js +5 -4
  30. package/dist/cjs/justifi-payout-details.cjs.entry.js +5 -4
  31. package/dist/cjs/justifi-payouts-list.cjs.entry.js +5 -4
  32. package/dist/cjs/justifi-refund-form.cjs.entry.js +4 -3
  33. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
  34. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -5
  35. package/dist/cjs/{package-22d30c5d.js → package-99f4d813.js} +2 -2
  36. package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
  37. package/dist/cjs/{payment.service-c92635c8.js → payment.service-4b1c0a20.js} +4 -3
  38. package/dist/cjs/payments-list-core.cjs.entry.js +1 -1
  39. package/dist/cjs/payout-details-core.cjs.entry.js +1 -1
  40. package/dist/cjs/payouts-list-core.cjs.entry.js +1 -1
  41. package/dist/cjs/{schema-validations-2733de42.js → schema-validations-0a7e46a3.js} +1 -1
  42. package/dist/cjs/{utils-89d86e29.js → utils-af1b60a9.js} +0 -16
  43. package/dist/collection/api/Api.js +3 -3
  44. package/dist/collection/api/Business.js +66 -7
  45. package/dist/collection/api/Identity.js +39 -3
  46. package/dist/collection/api/services/analytics.service.js +2 -1
  47. package/dist/collection/api/services/business.service.js +6 -5
  48. package/dist/collection/api/services/checkout.service.js +3 -2
  49. package/dist/collection/api/services/insurance.service.js +3 -2
  50. package/dist/collection/api/services/payment.service.js +3 -2
  51. package/dist/collection/api/services/payout.service.js +4 -3
  52. package/dist/collection/api/services/provision.service.js +2 -1
  53. package/dist/collection/api/services/reports.service.js +2 -1
  54. package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
  55. package/dist/collection/components/business-forms/business-form/business-form.js +5 -5
  56. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +4 -5
  57. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +3 -3
  58. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +4 -3
  59. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +3 -5
  60. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +3 -3
  61. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +3 -4
  62. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +4 -3
  63. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +3 -4
  64. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -3
  65. package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
  66. package/dist/collection/components/card-form/card-form.js +4 -3
  67. package/dist/collection/components/checkout/checkout-core.js +4 -4
  68. package/dist/collection/components/checkout/new-payment-method.js +4 -6
  69. package/dist/collection/components/checkout/payment-method-options.js +4 -3
  70. package/dist/collection/components/checkout/saved-payment-method.js +4 -3
  71. package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
  72. package/dist/collection/components/payment-form/payment-form.js +4 -3
  73. package/dist/collection/components/refund-form/refund-form.js +3 -2
  74. package/dist/config.js +11 -0
  75. package/dist/docs.json +9 -9
  76. package/dist/{webcomponents/p-15eafa87.js → esm/Analytics-e460ab05.js} +4 -3
  77. package/dist/esm/{Api-b09a2f6a.js → Api-c8abc2e0.js} +3 -3
  78. package/dist/esm/{Business-e218b4f4.js → Business-b73d5055.js} +104 -9
  79. package/dist/esm/additional-questions-details_5.entry.js +1 -1
  80. package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-a5583cf8.js} +1 -1
  81. package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-d790973e.js} +2 -2
  82. package/dist/esm/{payload-parsers-acb719d1.js → business-identity-schema-9e3269fb.js} +2 -44
  83. package/dist/esm/{business.service-37d0cc72.js → business.service-1f589b6e.js} +7 -6
  84. package/dist/esm/config-27764a9d.js +13 -0
  85. package/dist/esm/form-alert_5.entry.js +2 -2
  86. package/dist/esm/form-control-checkbox_9.entry.js +21 -21
  87. package/dist/esm/{get-payout-csv-a702a0d9.js → get-payout-csv-93427146.js} +5 -4
  88. package/dist/esm/gross-payment-chart-core.entry.js +1 -1
  89. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +15 -14
  90. package/dist/esm/justifi-bank-account-form.entry.js +6 -5
  91. package/dist/esm/justifi-billing-form_2.entry.js +3 -3
  92. package/dist/esm/justifi-business-details.entry.js +6 -5
  93. package/dist/esm/justifi-business-form.entry.js +13 -12
  94. package/dist/esm/justifi-card-form.entry.js +6 -5
  95. package/dist/esm/justifi-checkout-core.entry.js +4 -4
  96. package/dist/esm/justifi-checkout.entry.js +6 -5
  97. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -4
  98. package/dist/esm/justifi-new-payment-method_4.entry.js +10 -12
  99. package/dist/esm/justifi-owner-form_3.entry.js +11 -10
  100. package/dist/esm/justifi-payment-details.entry.js +5 -4
  101. package/dist/esm/justifi-payment-form.entry.js +8 -7
  102. package/dist/esm/justifi-payment-method-form.entry.js +2 -2
  103. package/dist/esm/justifi-payment-provisioning.entry.js +6 -5
  104. package/dist/esm/justifi-payments-list.entry.js +5 -4
  105. package/dist/esm/justifi-payout-details.entry.js +5 -4
  106. package/dist/esm/justifi-payouts-list.entry.js +5 -4
  107. package/dist/esm/justifi-refund-form.entry.js +4 -3
  108. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
  109. package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -5
  110. package/dist/{webcomponents/p-2e8f4937.js → esm/package-0935c5e5.js} +2 -2
  111. package/dist/esm/payment-details-core.entry.js +1 -1
  112. package/dist/esm/{payment.service-9359fe15.js → payment.service-02c596b9.js} +4 -3
  113. package/dist/esm/payments-list-core.entry.js +1 -1
  114. package/dist/esm/payout-details-core.entry.js +1 -1
  115. package/dist/esm/payouts-list-core.entry.js +1 -1
  116. package/dist/esm/{schema-validations-a83ff220.js → schema-validations-e725d701.js} +2 -2
  117. package/dist/esm/{utils-3c1dd2fa.js → utils-e66d8bca.js} +1 -16
  118. package/dist/module/Analytics.js +2 -1
  119. package/dist/module/Api.js +3 -3
  120. package/dist/module/Business.js +104 -9
  121. package/dist/module/business-additional-questions-form-step-core.js +3 -3
  122. package/dist/module/business-bank-account-form-step.js +4 -3
  123. package/dist/module/business-core-info-form-step-core.js +3 -5
  124. package/dist/module/business-document-upload-form-step.js +4 -3
  125. package/dist/module/business-document-upload-input-group.js +1 -1
  126. package/dist/module/business-documents-on-file.js +1 -1
  127. package/dist/module/business-form-options.js +1 -1
  128. package/dist/module/business-owners-form-step-core.js +3 -3
  129. package/dist/module/business-representative-form-step-core.js +3 -4
  130. package/dist/module/business-terms-conditions-form-step.js +4 -3
  131. package/dist/module/business.service.js +6 -5
  132. package/dist/module/checkout-core.js +3 -3
  133. package/dist/module/config.js +13 -0
  134. package/dist/module/get-payout-csv.js +4 -3
  135. package/dist/module/justifi-bank-account-form.js +3 -2
  136. package/dist/module/justifi-business-form.js +5 -5
  137. package/dist/module/justifi-card-form.js +3 -2
  138. package/dist/module/justifi-checkout.js +3 -2
  139. package/dist/module/justifi-gross-payment-chart.js +2 -1
  140. package/dist/module/justifi-payment-form.js +4 -3
  141. package/dist/module/justifi-payment-provisioning.js +2 -1
  142. package/dist/module/justifi-refund-form.js +3 -2
  143. package/dist/module/justifi-season-interruption-insurance.js +3 -2
  144. package/dist/module/legal-address-form-step-core.js +3 -4
  145. package/dist/module/new-payment-method.js +3 -5
  146. package/dist/module/owner-form-core2.js +4 -5
  147. package/dist/module/package.js +2 -2
  148. package/dist/module/payment-details-core2.js +1 -1
  149. package/dist/module/payment-method-options.js +3 -2
  150. package/dist/module/payment.service.js +3 -2
  151. package/dist/module/payments-list-core2.js +1 -1
  152. package/dist/module/payout-details-core2.js +1 -1
  153. package/dist/module/payouts-list-core2.js +1 -1
  154. package/dist/module/saved-payment-method.js +4 -3
  155. package/dist/module/sezzle-payment-method.js +3 -2
  156. package/dist/module/utils2.js +1 -16
  157. package/dist/types/api/Business.d.ts +87 -1
  158. package/dist/types/api/Identity.d.ts +45 -1
  159. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +44 -1
  160. package/dist/types/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.d.ts +11 -1
  161. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +11 -1
  162. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +24 -1
  163. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +11 -1
  164. package/dist/types/components/checkout/new-payment-method.d.ts +0 -1
  165. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
  166. package/dist/webcomponents/index.esm.js +0 -1
  167. package/dist/webcomponents/p-056e75be.entry.js +1 -0
  168. package/dist/webcomponents/p-07109641.entry.js +1 -0
  169. package/dist/webcomponents/p-08b0fb31.js +1 -41
  170. package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
  171. package/dist/webcomponents/p-11b6ed0c.entry.js +1 -0
  172. package/dist/webcomponents/p-124c1ecd.entry.js +1 -0
  173. package/dist/webcomponents/p-14c91ffd.js +1 -20
  174. package/dist/webcomponents/p-15976984.entry.js +1 -0
  175. package/dist/webcomponents/p-1815a43b.js +1 -0
  176. package/dist/webcomponents/p-1ad5995e.js +1 -3599
  177. package/dist/webcomponents/p-1cf90026.entry.js +1 -0
  178. package/dist/webcomponents/p-1eee25f3.entry.js +19 -0
  179. package/dist/webcomponents/p-1ff8810b.js +1 -29
  180. package/dist/webcomponents/p-2338affa.js +1 -213
  181. package/dist/webcomponents/p-277aee05.js +1 -0
  182. package/dist/webcomponents/p-2b6c9c4f.js +1 -7
  183. package/dist/webcomponents/p-2eab3c90.js +1 -3052
  184. package/dist/webcomponents/p-3423ddfd.entry.js +1 -0
  185. package/dist/webcomponents/p-39c6f36a.entry.js +1 -0
  186. package/dist/webcomponents/p-401d6607.js +1 -0
  187. package/dist/webcomponents/p-421ed39d.entry.js +1 -0
  188. package/dist/webcomponents/p-487b72a8.entry.js +1 -0
  189. package/dist/webcomponents/p-4e017b58.js +1 -0
  190. package/dist/webcomponents/p-4e01fec8.entry.js +1 -0
  191. package/dist/webcomponents/p-5022f21c.js +1 -0
  192. package/dist/webcomponents/p-525db3e8.js +1 -22
  193. package/dist/webcomponents/p-55182a59.js +1 -0
  194. package/dist/webcomponents/p-56f6ce4c.js +1 -10
  195. package/dist/webcomponents/p-5968ff8a.js +1 -178
  196. package/dist/webcomponents/p-5a62fca2.js +1 -0
  197. package/dist/webcomponents/p-5e2c9ec8.js +1 -0
  198. package/dist/webcomponents/p-5e7c60d8.js +1 -0
  199. package/dist/webcomponents/p-6078a370.js +1 -244
  200. package/dist/webcomponents/p-69c18f39.entry.js +1 -0
  201. package/dist/webcomponents/p-6abb2a04.entry.js +1 -0
  202. package/dist/webcomponents/p-6ac806ff.entry.js +1 -0
  203. package/dist/webcomponents/p-721dcf51.entry.js +1 -0
  204. package/dist/webcomponents/p-7d3be485.js +1 -0
  205. package/dist/webcomponents/p-7d85af5c.js +1 -16
  206. package/dist/webcomponents/p-7ff329b1.js +1 -0
  207. package/dist/webcomponents/p-8115b2f4.js +1 -28
  208. package/dist/webcomponents/p-817da23c.entry.js +1 -0
  209. package/dist/webcomponents/p-8df7bde8.js +1 -27
  210. package/dist/webcomponents/p-9c9c7dac.js +1 -24
  211. package/dist/webcomponents/p-a99032e1.entry.js +1 -0
  212. package/dist/webcomponents/p-ad47f37c.entry.js +1 -0
  213. package/dist/webcomponents/p-aedb421f.entry.js +1 -0
  214. package/dist/webcomponents/p-b676bca5.entry.js +1 -0
  215. package/dist/webcomponents/p-b6c3b7bc.entry.js +1 -0
  216. package/dist/webcomponents/p-ba4bae6f.js +1 -12
  217. package/dist/webcomponents/p-bbed6107.entry.js +1 -0
  218. package/dist/webcomponents/p-bd278ff4.entry.js +1 -0
  219. package/dist/webcomponents/p-be39c802.entry.js +1 -0
  220. package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
  221. package/dist/webcomponents/p-d4a44a1e.entry.js +1 -0
  222. package/dist/webcomponents/p-d76002d5.entry.js +1 -0
  223. package/dist/webcomponents/p-d78eb6ce.js +1 -0
  224. package/dist/webcomponents/p-d8355f91.entry.js +1 -0
  225. package/dist/webcomponents/p-d89bad72.js +1 -39
  226. package/dist/webcomponents/p-da1d174d.entry.js +1 -0
  227. package/dist/webcomponents/p-dce846bf.js +1 -27
  228. package/dist/webcomponents/p-df21aaad.js +1 -120
  229. package/dist/webcomponents/p-e1255160.js +1 -3
  230. package/dist/webcomponents/p-e2b2213f.entry.js +1 -0
  231. package/dist/webcomponents/p-e2c88817.entry.js +1 -0
  232. package/dist/webcomponents/p-e31f0f3e.entry.js +1 -0
  233. package/dist/webcomponents/p-e333620e.js +1 -34
  234. package/dist/webcomponents/p-e3f4a2a6.js +1 -0
  235. package/dist/webcomponents/p-e3fab0e2.js +1 -43
  236. package/dist/webcomponents/p-e7fd1357.entry.js +1 -0
  237. package/dist/webcomponents/p-eccf2e8e.entry.js +1 -0
  238. package/dist/webcomponents/p-edb62047.entry.js +1 -0
  239. package/dist/webcomponents/p-f0866375.entry.js +1 -0
  240. package/dist/webcomponents/p-f5ebca3e.entry.js +1 -0
  241. package/dist/webcomponents/p-fad19d75.js +2 -1638
  242. package/dist/webcomponents/p-fb58feb5.entry.js +1 -0
  243. package/dist/webcomponents/webcomponents.css +4 -362
  244. package/dist/webcomponents/webcomponents.esm.js +1 -20
  245. package/package.json +2 -2
  246. package/dist/collection/components/business-forms/utils/payload-parsers.js +0 -41
  247. package/dist/esm/Analytics-a8eb7344.js +0 -77
  248. package/dist/esm/package-ccb774a9.js +0 -79
  249. package/dist/module/payload-parsers.js +0 -43
  250. package/dist/types/components/business-forms/utils/payload-parsers.d.ts +0 -4
  251. package/dist/webcomponents/p-01a404ca.entry.js +0 -44
  252. package/dist/webcomponents/p-03d35880.entry.js +0 -130
  253. package/dist/webcomponents/p-06ff0429.entry.js +0 -65
  254. package/dist/webcomponents/p-0e1bc91e.js +0 -28
  255. package/dist/webcomponents/p-10875f3d.entry.js +0 -97
  256. package/dist/webcomponents/p-157acba8.entry.js +0 -98
  257. package/dist/webcomponents/p-18fa0479.entry.js +0 -131
  258. package/dist/webcomponents/p-1a5120f4.entry.js +0 -145
  259. package/dist/webcomponents/p-24dc023a.entry.js +0 -791
  260. package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
  261. package/dist/webcomponents/p-27d87fe2.entry.js +0 -133
  262. package/dist/webcomponents/p-29c0b182.js +0 -114
  263. package/dist/webcomponents/p-3395e896.entry.js +0 -74
  264. package/dist/webcomponents/p-3fd13ca3.js +0 -52
  265. package/dist/webcomponents/p-47d79529.js +0 -18
  266. package/dist/webcomponents/p-53ecc8b9.entry.js +0 -261
  267. package/dist/webcomponents/p-5482d030.entry.js +0 -21
  268. package/dist/webcomponents/p-576826b1.entry.js +0 -43
  269. package/dist/webcomponents/p-5f835b89.entry.js +0 -606
  270. package/dist/webcomponents/p-6124b1b3.entry.js +0 -80
  271. package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
  272. package/dist/webcomponents/p-7582b554.entry.js +0 -18
  273. package/dist/webcomponents/p-75fd6367.entry.js +0 -149
  274. package/dist/webcomponents/p-79646550.entry.js +0 -61
  275. package/dist/webcomponents/p-800d31fe.entry.js +0 -162
  276. package/dist/webcomponents/p-83125497.js +0 -4027
  277. package/dist/webcomponents/p-85fc69e5.js +0 -90
  278. package/dist/webcomponents/p-89887332.js +0 -301
  279. package/dist/webcomponents/p-8eb774df.entry.js +0 -54
  280. package/dist/webcomponents/p-9e17630d.entry.js +0 -1684
  281. package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
  282. package/dist/webcomponents/p-a4e8573e.entry.js +0 -94
  283. package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
  284. package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
  285. package/dist/webcomponents/p-ab4816e1.entry.js +0 -117
  286. package/dist/webcomponents/p-ac086069.entry.js +0 -58
  287. package/dist/webcomponents/p-af244664.js +0 -126
  288. package/dist/webcomponents/p-b4b8b531.js +0 -44
  289. package/dist/webcomponents/p-b82c146f.entry.js +0 -111
  290. package/dist/webcomponents/p-ba5fae28.js +0 -90
  291. package/dist/webcomponents/p-bd66f9d2.entry.js +0 -101
  292. package/dist/webcomponents/p-cc39384f.entry.js +0 -99
  293. package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
  294. package/dist/webcomponents/p-dad3e069.entry.js +0 -298
  295. package/dist/webcomponents/p-e1e7525b.entry.js +0 -73
  296. package/dist/webcomponents/p-e356f280.entry.js +0 -29
  297. package/dist/webcomponents/p-e9a5cb95.entry.js +0 -94
  298. package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
  299. package/dist/webcomponents/p-edc37d1f.entry.js +0 -75
  300. package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
  301. package/dist/{globals.d.ts → types/global.d.ts} +1 -1
@@ -6,14 +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
+ const config = require('./config-05767cba.js');
10
11
  const ComponentError = require('./ComponentError-233ac749.js');
11
12
  const utils$1 = require('./utils-7a478c37.js');
12
- const Analytics = require('./Analytics-adc90fc6.js');
13
+ const Analytics = require('./Analytics-a0a86d82.js');
13
14
  const button = require('./button-3f400a66.js');
14
15
  const styledHost = require('./styled-host-cc053016.js');
15
- require('./package-22d30c5d.js');
16
- require('./Api-3bc6e43f.js');
16
+ require('./package-99f4d813.js');
17
+ require('./Api-b98b256f.js');
17
18
 
18
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)}";
19
20
  const JustifiPaymentFormStyle0 = paymentFormCss;
@@ -121,15 +122,15 @@ const PaymentForm = class {
121
122
  }
122
123
  }
123
124
  render() {
124
- return (index.h(styledHost.StyledHost, { key: '8cb6e3903a0045fbffed5f17dc29aacc6b57ad7f' }, index.h("form", { key: '4e8f00c3d29c0db0bc99fd79da46abe7c40e3e30', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (index.h("div", { key: '344a1356f6f482493a35015c32f8e9a9b4cc8a80', class: "col-12" }, index.h("justifi-payment-method-selector", { key: '36b9dd7a9bc8336b4bef0d12f56c811effbc0a0b', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), index.h("div", { key: '225a260f817f9dd02a7f0a5b25562179ab80f7de', class: "col-12" }, index.h("justifi-payment-method-form", { key: '52e2bf20b265cc96ab556571a323370cc27ac278', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: "", ref: el => {
125
+ return (index.h(styledHost.StyledHost, { key: '38bd6cca38d9068fa9277a8568a98f261a4cc616' }, index.h("form", { key: 'fec19f5e2f11934e6783124c4c437a2d3947f596', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (index.h("div", { key: '18001f78e03336d01de8473a57e3e228e9fce201', class: "col-12" }, index.h("justifi-payment-method-selector", { key: '260ac1ade3ccfe6baf518eb856bdf4d380025620', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), index.h("div", { key: 'f6ade2336314e05f2bdce75df8577939efe33e3b', class: "col-12" }, index.h("justifi-payment-method-form", { key: 'ad8e5b121b8425175f7ac7f38ab24dfba1801a28', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.config.iframeOrigin, ref: el => {
125
126
  if (el) {
126
127
  this.paymentMethodFormRef = el;
127
128
  }
128
- } })), index.h("div", { key: '433a8ac42c0eec9180e37da222da1dbb1112e48e', class: "col-12" }, index.h("justifi-billing-form", { key: '4f24f1c8b4083e2d9e5bb2272d32d20bb5cc225d', legend: "Billing Info", ref: el => {
129
+ } })), index.h("div", { key: '29f15f1cece3e07a569e514d08bf9996405699c6', class: "col-12" }, index.h("justifi-billing-form", { key: '9928924cc29bfa5c5e46ada294cb26da0c1d222b', legend: "Billing Info", ref: el => {
129
130
  if (el) {
130
131
  this.billingFormRef = el;
131
132
  }
132
- } })), index.h("slot", { key: '9397ae7fdd2677cd61a425fcf5818ae14fabbed0', name: 'insurance' }), index.h("div", { key: 'db9131f6f35165e69d3b59da7fa25b95f1e46168', class: "col-12" }, index.h(button.Button, { key: 'c280836cf6445a7132ff9202a09b6fdac8e29f77', variant: "primary", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, isLoading: this.isLoading, "data-testid": "submit-button", style: { width: '100%' } }, this.submitButtonText || 'Submit')))));
133
+ } })), index.h("slot", { key: 'c36583ab34bc105b506df27aec02898455855cec', name: 'insurance' }), index.h("div", { key: 'cc38292ae8a59bc6f4624a8535e8b7c93e6f3a35', class: "col-12" }, index.h(button.Button, { key: 'e5fe0f50ee2322ab2a199a6229015c9daa198cc0', variant: "primary", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, isLoading: this.isLoading, "data-testid": "submit-button", style: { width: '100%' } }, this.submitButtonText || 'Submit')))));
133
134
  }
134
135
  };
135
136
  PaymentForm.style = JustifiPaymentFormStyle0;
@@ -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-22d30c5d.js');
7
- const utils = require('./utils-89d86e29.js');
6
+ const _package = require('./package-99f4d813.js');
7
+ const utils = require('./utils-af1b60a9.js');
8
8
 
9
9
  var iframeResizer = {exports: {}};
10
10
 
@@ -3,12 +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-adc90fc6.js');
6
+ const Analytics = require('./Analytics-a0a86d82.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-090a21e1.js');
10
- const Api = require('./Api-3bc6e43f.js');
11
- require('./package-22d30c5d.js');
9
+ const business_service = require('./business.service-031c0084.js');
10
+ const config = require('./config-05767cba.js');
11
+ const Api = require('./Api-b98b256f.js');
12
+ require('./package-99f4d813.js');
12
13
  require('./utils-7a478c37.js');
13
14
 
14
15
  class ProvisionService {
@@ -18,7 +19,7 @@ class ProvisionService {
18
19
  business_id: businessId,
19
20
  product_category: product,
20
21
  };
21
- return Api.Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
22
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, payload);
22
23
  }
23
24
  }
24
25
 
@@ -3,16 +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-c92635c8.js');
6
+ const payment_service = require('./payment.service-4b1c0a20.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-adc90fc6.js');
14
- require('./Api-3bc6e43f.js');
15
- require('./package-22d30c5d.js');
13
+ const Analytics = require('./Analytics-a0a86d82.js');
14
+ require('./Api-b98b256f.js');
15
+ require('./config-05767cba.js');
16
+ require('./package-99f4d813.js');
16
17
 
17
18
  const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
18
19
  var _a, _b;
@@ -3,16 +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-238e839a.js');
6
+ const getPayoutCsv = require('./get-payout-csv-3a3260ec.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-adc90fc6.js');
14
- require('./Api-3bc6e43f.js');
15
- require('./package-22d30c5d.js');
13
+ const Analytics = require('./Analytics-a0a86d82.js');
14
+ require('./Api-b98b256f.js');
15
+ require('./config-05767cba.js');
16
+ require('./package-99f4d813.js');
16
17
 
17
18
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
18
19
  var _a;
@@ -4,16 +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-238e839a.js');
7
+ const getPayoutCsv = require('./get-payout-csv-3a3260ec.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-adc90fc6.js');
15
- require('./Api-3bc6e43f.js');
16
- require('./package-22d30c5d.js');
14
+ const Analytics = require('./Analytics-a0a86d82.js');
15
+ require('./Api-b98b256f.js');
16
+ require('./config-05767cba.js');
17
+ require('./package-99f4d813.js');
17
18
 
18
19
  const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
19
20
  var _a, _b;
@@ -4,10 +4,11 @@ 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');
11
+ const config = require('./config-05767cba.js');
11
12
  const formInputMasks = require('./form-input-masks-0879c139.js');
12
13
  const styledHost = require('./styled-host-cc053016.js');
13
14
 
@@ -93,11 +94,11 @@ const RefundForm = class {
93
94
  if (!this.authToken) {
94
95
  console.warn('Warning: Missing auth-token.');
95
96
  }
96
- this.api = Api.Api({ authToken: this.authToken, apiOrigin: "" });
97
+ this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
97
98
  }
98
99
  render() {
99
100
  var _a;
100
- return (index.h(styledHost.StyledHost, { key: '8d31f1a9bf936c9e11f8eca1dc55e614b9fa5939' }, index.h("h1", { key: 'be589740535ee8a5ab6d4af7151d7ae026f08002' }, "Refund"), this.refundInfoText && (index.h("div", { key: 'b1d40507dec53bac422f99a3d62678c78c0c2038', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, index.h("img", { key: 'cc76014eef0d826bec5ec09355dc5fc747fd2070', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), index.h("p", { key: 'c2efa0f2acdf3faaa6e2974d0535f48799e3cbbd', class: "m-0", innerHTML: this.refundInfoText }))), index.h("form", { key: '68220114781378f6507651414c87532171bebb31', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, index.h("div", { key: '075545e9837316fe160760e0dba9a5104654dd2b', class: "form-group" }, index.h("form-control-monetary", { key: 'c8ff8a822d2b74b2f80b33cd6cd2b42ceebbff11', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: formInputMasks.CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), index.h("div", { key: '92093284e763466be5138ea6d788145d5d47bd87', class: "form-group" }, index.h("form-control-text", { key: 'ddf9e221d43d84ad7436261c5755e673224aa82e', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (index.h("div", { key: '58abbbabce09d82da4032ef0e08e6cfac1433153', class: "form-group d-flex flex-row-reverse" }, index.h("button", { key: '3e703ef633e0d45ba70425dc6d58bcd2d590ce1b', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
101
+ return (index.h(styledHost.StyledHost, { key: 'd0d0962eaecab749aa1eb124e86701a2fb4dfd53' }, index.h("h1", { key: 'cb3071d89c291b1664e551fcf2808a64569ba5eb' }, "Refund"), this.refundInfoText && (index.h("div", { key: '01a6f4567f882d2eec492ef6d98db7d04747ecb4', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, index.h("img", { key: '8ae5928aaf8ead35a7ad180a01bdde05ebec3d5f', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), index.h("p", { key: '425a7dfe9d8b886b55fd0878f3989373733c1758', class: "m-0", innerHTML: this.refundInfoText }))), index.h("form", { key: '5516d2ac500611d2410b9b4c2a4d0d15e417b2d1', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, index.h("div", { key: 'b67a7c56f070a5a25d91aa0cc77755b27d420fdc', class: "form-group" }, index.h("form-control-monetary", { key: '76b6cfdf2b39674434f4d880333dd5d5f603f0b6', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: formInputMasks.CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), index.h("div", { key: '5e581cdea69d2ce9dbad774214cd904923d199b3', class: "form-group" }, index.h("form-control-text", { key: '926ae888676a4089d3381bd4d650e6f84f6e206a', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (index.h("div", { key: 'de5df506b7b64a69a16241f117bf9bea4fd79b57', class: "form-group d-flex flex-row-reverse" }, index.h("button", { key: '92ad4d43677587c2c20dc03c6f03a6cf1f20ac12', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
101
102
  }
102
103
  };
103
104
  RefundForm.style = JustifiRefundFormStyle0;
@@ -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,23 +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
+ const config = require('./config-05767cba.js');
10
11
  const utils = require('./utils-7a478c37.js');
11
12
  const ComponentError = require('./ComponentError-233ac749.js');
12
- const Analytics = require('./Analytics-adc90fc6.js');
13
- require('./package-22d30c5d.js');
13
+ const Analytics = require('./Analytics-a0a86d82.js');
14
+ require('./package-99f4d813.js');
14
15
 
15
16
  class InsuranceService {
16
17
  async fetchQuote(authToken, payload) {
17
18
  const endpoint = 'insurance/quotes';
18
- return Api.Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
19
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, payload);
19
20
  }
20
21
  async toggleCoverage(authToken, quoteId, payload) {
21
22
  const endpoint = `insurance/quotes/${quoteId}/toggle`;
22
- return Api.Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
23
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, payload);
23
24
  }
24
25
  }
25
26
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const name = "@justifi/webcomponents";
4
- const version = "4.19.3-rc-2";
4
+ const version = "4.19.3";
5
5
  const description = "JustiFi Web Components";
6
6
  const collection = "dist/collection/collection-manifest.json";
7
7
  const main = "dist/index.cjs.js";
@@ -46,7 +46,7 @@ const devDependencies = {
46
46
  "@babel/preset-env": "^7.21.5",
47
47
  "@babel/preset-react": "^7.18.6",
48
48
  "@babel/preset-typescript": "^7.21.5",
49
- "@rollup/plugin-replace": "^5.0.7",
49
+ "@rollup/plugin-replace": "^6.0.1",
50
50
  "@stencil/sass": "^3.0.1",
51
51
  "@types/jest": "27.0.3",
52
52
  "@types/react": "^18.0.37",
@@ -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,19 +1,20 @@
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');
7
+ const config = require('./config-05767cba.js');
7
8
 
8
9
  class PaymentService {
9
10
  async fetchPayments(accountId, authToken, params) {
10
- const api = Api.Api({ authToken, apiOrigin: "" });
11
+ const api = Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin });
11
12
  const endpoint = `account/${accountId}/payments`;
12
13
  return api.get(endpoint, params);
13
14
  }
14
15
  async fetchPayment(paymentId, authToken) {
15
16
  const endpoint = `payments/${paymentId}`;
16
- return Api.Api({ authToken, apiOrigin: "" }).get(endpoint);
17
+ return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint);
17
18
  }
18
19
  }
19
20
 
@@ -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');
@@ -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
 
@@ -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
  const Payout = require('./Payout-a2dd7b01.js');
9
- const utils = require('./utils-89d86e29.js');
9
+ const utils = require('./utils-af1b60a9.js');
10
10
  const ComponentError = require('./ComponentError-233ac749.js');
11
11
  const exportedParts = require('./exported-parts-b18c68c2.js');
12
12
  const styledHost = require('./styled-host-cc053016.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  const index_esm = require('./index.esm-52757963.js');
4
4
  const stateOptions = require('./state-options-4fbcb48a.js');
5
- const businessFormOptions = require('./business-form-options-582467fe.js');
5
+ const businessFormOptions = require('./business-form-options-5db0bd5e.js');
6
6
 
7
7
  const transformEmptyString = (value) => {
8
8
  return value === '' ? null : value;
@@ -3973,21 +3973,6 @@ function snakeToCamel(str) {
3973
3973
  return '';
3974
3974
  return str.replace(/([-_][a-z])/g, (group) => group.toUpperCase().replace('-', '').replace('_', ''));
3975
3975
  }
3976
- function flattenNestedObject(obj) {
3977
- const result = {};
3978
- for (const key in obj) {
3979
- if (typeof obj[key] === 'object' && obj[key] !== null) {
3980
- const nestedObj = flattenNestedObject(obj[key]);
3981
- for (const nestedKey in nestedObj) {
3982
- result[nestedKey] = nestedObj[nestedKey];
3983
- }
3984
- }
3985
- else {
3986
- result[key] = obj[key];
3987
- }
3988
- }
3989
- return result;
3990
- }
3991
3976
  function composeQueryParams(values) {
3992
3977
  const queryParams = values.map((value) => {
3993
3978
  if (value === values[0]) {
@@ -4029,7 +4014,6 @@ const isInRange = (num, min, max) => {
4029
4014
  exports.MapPaymentStatusToBadge = MapPaymentStatusToBadge;
4030
4015
  exports.MapPayoutStatusToBadge = MapPayoutStatusToBadge;
4031
4016
  exports.composeQueryParams = composeQueryParams;
4032
- exports.flattenNestedObject = flattenNestedObject;
4033
4017
  exports.formatCurrency = formatCurrency;
4034
4018
  exports.formatDate = formatDate;
4035
4019
  exports.formatDisplayDate = formatDisplayDate;
@@ -30,13 +30,13 @@ const Api = ({ authToken, apiOrigin }) => {
30
30
  return makeRequest(endpoint, 'GET', params, null, signal);
31
31
  }
32
32
  async function post(endpoint, body, params, signal) {
33
- return makeRequest(endpoint, 'POST', params, body, signal);
33
+ return makeRequest(endpoint, 'POST', params, JSON.stringify(body), signal);
34
34
  }
35
35
  async function put(endpoint, body, params, signal) {
36
- return makeRequest(endpoint, 'PUT', params, body, signal);
36
+ return makeRequest(endpoint, 'PUT', params, JSON.stringify(body), signal);
37
37
  }
38
38
  async function patch(endpoint, body, params, signal) {
39
- return makeRequest(endpoint, 'PATCH', params, body, signal);
39
+ return makeRequest(endpoint, 'PATCH', params, JSON.stringify(body), signal);
40
40
  }
41
41
  async function destroy(endpoint, params, signal) {
42
42
  return makeRequest(endpoint, 'DELETE', params, null, signal);
@@ -23,16 +23,42 @@ export class Address {
23
23
  this.created_at = address.created_at;
24
24
  this.updated_at = address.updated_at;
25
25
  }
26
+ get payload() {
27
+ return {
28
+ platform_account_id: this.platform_account_id || '',
29
+ line1: this.line1 || '',
30
+ line2: this.line2 || '',
31
+ postal_code: this.postal_code || '',
32
+ city: this.city || '',
33
+ state: this.state || '',
34
+ country: this.country || '',
35
+ };
36
+ }
26
37
  }
27
38
  export class AdditionalQuestions {
28
39
  constructor(additionalQuestions) {
29
40
  this.business_revenue = additionalQuestions.business_revenue;
30
41
  this.business_payment_volume = additionalQuestions.business_payment_volume;
31
- this.business_when_service_received = additionalQuestions.business_when_service_received;
32
- this.business_recurring_payments = additionalQuestions.business_recurring_payments;
33
- this.business_recurring_payments_percentage = additionalQuestions.business_recurring_payments_percentage;
42
+ this.business_when_service_received =
43
+ additionalQuestions.business_when_service_received;
44
+ this.business_recurring_payments =
45
+ additionalQuestions.business_recurring_payments;
46
+ this.business_recurring_payments_percentage =
47
+ additionalQuestions.business_recurring_payments_percentage;
34
48
  this.business_seasonal = additionalQuestions.business_seasonal;
35
- this.business_other_payment_details = additionalQuestions.business_other_payment_details;
49
+ this.business_other_payment_details =
50
+ additionalQuestions.business_other_payment_details;
51
+ }
52
+ get payload() {
53
+ return {
54
+ business_revenue: this.business_revenue || '',
55
+ business_payment_volume: this.business_payment_volume || '',
56
+ business_when_service_received: this.business_when_service_received || '',
57
+ business_recurring_payments: this.business_recurring_payments || '',
58
+ business_recurring_payments_percentage: this.business_recurring_payments_percentage || '',
59
+ business_seasonal: this.business_seasonal || '',
60
+ business_other_payment_details: this.business_other_payment_details || '',
61
+ };
36
62
  }
37
63
  }
38
64
  export class CoreBusinessInfo {
@@ -47,10 +73,23 @@ export class CoreBusinessInfo {
47
73
  this.phone = coreBusinessInfo.phone;
48
74
  this.date_of_incorporation = coreBusinessInfo.date_of_incorporation;
49
75
  }
76
+ get payload() {
77
+ return {
78
+ classification: this.classification || '',
79
+ legal_name: this.legal_name || '',
80
+ doing_business_as: this.doing_business_as || '',
81
+ industry: this.industry || '',
82
+ tax_id: this.tax_id || '',
83
+ website_url: this.website_url || '',
84
+ email: this.email || '',
85
+ phone: this.phone || '',
86
+ date_of_incorporation: this.date_of_incorporation || '',
87
+ };
88
+ }
50
89
  }
51
90
  export class Business {
52
91
  constructor(business) {
53
- this.additional_questions = Object.assign({}, new AdditionalQuestions(business.additional_questions || {}));
92
+ this.additional_questions = new AdditionalQuestions(business.additional_questions || {});
54
93
  this.associated_accounts = business.associated_accounts;
55
94
  this.classification = business.classification;
56
95
  this.bank_accounts = business.bank_accounts;
@@ -60,18 +99,38 @@ export class Business {
60
99
  this.email = business.email;
61
100
  this.id = business.id;
62
101
  this.industry = business.industry;
63
- this.legal_address = Object.assign({}, new Address(business.legal_address || {}));
102
+ this.legal_address = new Address(business.legal_address || {});
64
103
  this.legal_name = business.legal_name;
65
104
  this.metadata = business.metadata;
66
105
  this.owners = business.owners;
67
106
  this.phone = business.phone;
68
107
  this.platform_account_id = business.platform_account_id;
69
108
  this.product_categories = business.product_categories;
70
- this.representative = Object.assign({}, new Representative(business.representative || {}));
109
+ this.representative = new Representative(business.representative || {});
71
110
  this.tax_id = business.tax_id;
72
111
  this.terms_conditions_accepted = business.terms_conditions_accepted;
73
112
  this.updated_at = business.updated_at;
74
113
  this.website_url = business.website_url;
75
114
  this.date_of_incorporation = business.date_of_incorporation;
76
115
  }
116
+ get payload() {
117
+ return {
118
+ additional_questions: new AdditionalQuestions(this.additional_questions)
119
+ .payload,
120
+ classification: this.classification || '',
121
+ doing_business_as: this.doing_business_as || '',
122
+ email: this.email || '',
123
+ industry: this.industry || '',
124
+ legal_address: new Address(this.legal_address).payload,
125
+ legal_name: this.legal_name || '',
126
+ metadata: this.metadata || {},
127
+ owners: this.owners.map((owner) => ({ id: owner.id })),
128
+ phone: this.phone || '',
129
+ platform_account_id: this.platform_account_id || '',
130
+ representative: new Representative(this.representative).payload,
131
+ tax_id: this.tax_id || '',
132
+ website_url: this.website_url || '',
133
+ date_of_incorporation: this.date_of_incorporation || '',
134
+ };
135
+ }
77
136
  }
@@ -1,5 +1,5 @@
1
1
  import { Address } from "./Business";
2
- import { constructDate, filterNumber } from "../components/business-forms/utils/helpers";
2
+ import { constructDate, filterNumber, } from "../components/business-forms/utils/helpers";
3
3
  export class Owner {
4
4
  constructor(owner) {
5
5
  this.address = Object.assign({}, new Address(owner.address || {}));
@@ -7,7 +7,8 @@ export class Owner {
7
7
  this.dob_day = filterNumber(owner.dob_day);
8
8
  this.dob_month = filterNumber(owner.dob_month);
9
9
  this.dob_year = owner.dob_year;
10
- this.dob_full = constructDate(this.dob_year, this.dob_month, this.dob_day) || '';
10
+ this.dob_full =
11
+ constructDate(this.dob_year, this.dob_month, this.dob_day) || '';
11
12
  this.documents = owner.documents;
12
13
  this.email = owner.email;
13
14
  this.id = owner.id;
@@ -22,6 +23,23 @@ export class Owner {
22
23
  this.title = owner.title;
23
24
  this.updated_at = owner.updated_at;
24
25
  }
26
+ // Getter method to return the payload in the desired shape
27
+ get payload() {
28
+ return {
29
+ address: new Address(this.address || {}).payload,
30
+ dob_day: this.dob_day || '',
31
+ dob_month: this.dob_month || '',
32
+ dob_year: this.dob_year || '',
33
+ email: this.email || '',
34
+ identification_number: this.identification_number || undefined,
35
+ is_owner: this.is_owner || false,
36
+ metadata: this.metadata || null,
37
+ name: this.name || '',
38
+ phone: this.phone || '',
39
+ platform_account_id: this.platform_account_id || null,
40
+ title: this.title || '',
41
+ };
42
+ }
25
43
  }
26
44
  export class Representative {
27
45
  constructor(representative) {
@@ -30,7 +48,8 @@ export class Representative {
30
48
  this.dob_day = filterNumber(representative.dob_day);
31
49
  this.dob_month = filterNumber(representative.dob_month);
32
50
  this.dob_year = representative.dob_year;
33
- this.dob_full = constructDate(this.dob_year, this.dob_month, this.dob_day) || '';
51
+ this.dob_full =
52
+ constructDate(this.dob_year, this.dob_month, this.dob_day) || '';
34
53
  this.documents = representative.documents;
35
54
  this.email = representative.email;
36
55
  this.id = representative.id;
@@ -45,4 +64,21 @@ export class Representative {
45
64
  this.title = representative.title;
46
65
  this.updated_at = representative.updated_at;
47
66
  }
67
+ // Getter method to return the payload in the desired shape
68
+ get payload() {
69
+ return {
70
+ address: new Address(this.address || {}).payload,
71
+ dob_day: this.dob_day || '',
72
+ dob_month: this.dob_month || '',
73
+ dob_year: this.dob_year || '',
74
+ email: this.email || '',
75
+ is_owner: this.is_owner || false,
76
+ identification_number: this.identification_number || undefined,
77
+ metadata: this.metadata || null,
78
+ name: this.name || '',
79
+ phone: this.phone || '',
80
+ platform_account_id: this.platform_account_id || null,
81
+ title: this.title || '',
82
+ };
83
+ }
48
84
  }
@@ -1,7 +1,8 @@
1
+ import { config } from "../../../config";
1
2
  import Api from "../Api";
2
3
  export class AnalyticsService {
3
4
  async record(body) {
4
5
  const endpoint = 'analytics';
5
- return Api({ apiOrigin: PROXY_API_ORIGIN }).post(endpoint, JSON.stringify(body));
6
+ return Api({ apiOrigin: config.proxyApiOrigin }).post(endpoint, body);
6
7
  }
7
8
  }
@@ -1,25 +1,26 @@
1
+ import { config } from "../../../config";
1
2
  import Api from "../Api";
2
3
  export class BusinessService {
3
4
  async fetchBusiness(businessId, authToken) {
4
5
  const endpoint = `entities/business/${businessId}`;
5
- return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).get(endpoint);
6
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
6
7
  }
7
8
  async patchBusiness(authToken, businessId, payload) {
8
9
  const endpoint = `entities/business/${businessId}`;
9
- return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).patch(endpoint, payload);
10
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).patch(endpoint, payload);
10
11
  }
11
12
  }
12
13
  export class IdentityService {
13
14
  async fetchIdentity(identityId, authToken) {
14
15
  const endpoint = `entities/identity/${identityId}`;
15
- return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).get(endpoint);
16
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
16
17
  }
17
18
  async patchIdentity(authToken, identityId, payload) {
18
19
  const endpoint = `entities/identity/${identityId}`;
19
- return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).patch(endpoint, payload);
20
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).patch(endpoint, payload);
20
21
  }
21
22
  async postIdentity(authToken, payload) {
22
23
  const endpoint = `entities/identity`;
23
- return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).post(endpoint, payload);
24
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
24
25
  }
25
26
  }
@@ -1,8 +1,9 @@
1
1
  import { Api } from "..";
2
+ import { config } from "../../../config";
2
3
  export class CheckoutService {
3
4
  async fetchCheckout(authToken, checkoutId) {
4
5
  const endpoint = `checkouts/${checkoutId}`;
5
- return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).get(endpoint);
6
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
6
7
  }
7
8
  async complete(authToken, checkoutId, payment) {
8
9
  const endpoint = `checkouts/${checkoutId}/complete`;
@@ -12,6 +13,6 @@ export class CheckoutService {
12
13
  if (payment.payment_token) {
13
14
  payload.payment_token = payment.payment_token;
14
15
  }
15
- return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).post(endpoint, JSON.stringify(payload));
16
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
16
17
  }
17
18
  }