@justifi/webcomponents 4.19.3-rc-1 → 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 (240) hide show
  1. package/dist/cjs/{Analytics-84cccd4a.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 -3
  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 -9
  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-d2e04416.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 -3
  68. package/dist/collection/components/checkout/new-payment-method.js +4 -3
  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/esm/{Analytics-a742f6d2.js → 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 -3
  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 -9
  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/esm/{package-a70c900f.js → 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 -2
  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 -2
  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/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
  165. package/dist/webcomponents/p-056e75be.entry.js +1 -0
  166. package/dist/webcomponents/p-11b6ed0c.entry.js +1 -0
  167. package/dist/webcomponents/{p-462dc522.entry.js → p-124c1ecd.entry.js} +1 -1
  168. package/dist/webcomponents/p-15976984.entry.js +1 -0
  169. package/dist/webcomponents/p-1815a43b.js +1 -0
  170. package/dist/webcomponents/p-1cf90026.entry.js +1 -0
  171. package/dist/webcomponents/{p-1a43e355.entry.js → p-1eee25f3.entry.js} +1 -1
  172. package/dist/webcomponents/{p-3fd13ca3.js → p-277aee05.js} +1 -1
  173. package/dist/webcomponents/p-3423ddfd.entry.js +1 -0
  174. package/dist/webcomponents/p-39c6f36a.entry.js +1 -0
  175. package/dist/webcomponents/p-401d6607.js +1 -0
  176. package/dist/webcomponents/p-421ed39d.entry.js +1 -0
  177. package/dist/webcomponents/p-4e017b58.js +1 -0
  178. package/dist/webcomponents/p-4e01fec8.entry.js +1 -0
  179. package/dist/webcomponents/{p-89887332.js → p-5022f21c.js} +1 -1
  180. package/dist/webcomponents/p-55182a59.js +1 -0
  181. package/dist/webcomponents/p-5a62fca2.js +1 -0
  182. package/dist/webcomponents/{p-83125497.js → p-5e2c9ec8.js} +1 -1
  183. package/dist/webcomponents/p-5e7c60d8.js +1 -0
  184. package/dist/webcomponents/p-69c18f39.entry.js +1 -0
  185. package/dist/webcomponents/p-6abb2a04.entry.js +1 -0
  186. package/dist/webcomponents/p-6ac806ff.entry.js +1 -0
  187. package/dist/webcomponents/{p-62b32c4c.entry.js → p-721dcf51.entry.js} +1 -1
  188. package/dist/webcomponents/{p-29c0b182.js → p-7d3be485.js} +1 -1
  189. package/dist/webcomponents/p-7ff329b1.js +1 -0
  190. package/dist/webcomponents/{p-52021fa1.entry.js → p-817da23c.entry.js} +1 -1
  191. package/dist/webcomponents/p-a99032e1.entry.js +1 -0
  192. package/dist/webcomponents/p-ad47f37c.entry.js +1 -0
  193. package/dist/webcomponents/p-aedb421f.entry.js +1 -0
  194. package/dist/webcomponents/p-b676bca5.entry.js +1 -0
  195. package/dist/webcomponents/p-b6c3b7bc.entry.js +1 -0
  196. package/dist/webcomponents/{p-080fedb5.entry.js → p-bd278ff4.entry.js} +1 -1
  197. package/dist/webcomponents/p-d4a44a1e.entry.js +1 -0
  198. package/dist/webcomponents/{p-4abc17f0.entry.js → p-d76002d5.entry.js} +1 -1
  199. package/dist/webcomponents/p-d78eb6ce.js +1 -0
  200. package/dist/webcomponents/{p-8e541a32.entry.js → p-da1d174d.entry.js} +1 -1
  201. package/dist/webcomponents/{p-53e64f15.entry.js → p-e2b2213f.entry.js} +1 -1
  202. package/dist/webcomponents/p-e3f4a2a6.js +1 -0
  203. package/dist/webcomponents/p-e7fd1357.entry.js +1 -0
  204. package/dist/webcomponents/{p-fe33151d.entry.js → p-eccf2e8e.entry.js} +1 -1
  205. package/dist/webcomponents/p-edb62047.entry.js +1 -0
  206. package/dist/webcomponents/p-f5ebca3e.entry.js +1 -0
  207. package/dist/webcomponents/webcomponents.esm.js +1 -1
  208. package/package.json +2 -2
  209. package/dist/collection/components/business-forms/utils/payload-parsers.js +0 -41
  210. package/dist/module/payload-parsers.js +0 -43
  211. package/dist/types/components/business-forms/utils/payload-parsers.d.ts +0 -4
  212. package/dist/webcomponents/p-0e1bc91e.js +0 -1
  213. package/dist/webcomponents/p-0e3e3544.entry.js +0 -1
  214. package/dist/webcomponents/p-1295970b.entry.js +0 -1
  215. package/dist/webcomponents/p-15b9b267.entry.js +0 -1
  216. package/dist/webcomponents/p-17e4246f.entry.js +0 -1
  217. package/dist/webcomponents/p-232278e0.entry.js +0 -1
  218. package/dist/webcomponents/p-30a493cd.entry.js +0 -1
  219. package/dist/webcomponents/p-32211b2f.entry.js +0 -1
  220. package/dist/webcomponents/p-3352353a.entry.js +0 -1
  221. package/dist/webcomponents/p-47d79529.js +0 -1
  222. package/dist/webcomponents/p-701e03a8.entry.js +0 -1
  223. package/dist/webcomponents/p-79cfbcfa.entry.js +0 -1
  224. package/dist/webcomponents/p-85fc69e5.js +0 -1
  225. package/dist/webcomponents/p-8e263202.js +0 -1
  226. package/dist/webcomponents/p-99899e7e.entry.js +0 -1
  227. package/dist/webcomponents/p-9993e959.entry.js +0 -1
  228. package/dist/webcomponents/p-af244664.js +0 -1
  229. package/dist/webcomponents/p-b29f5084.entry.js +0 -1
  230. package/dist/webcomponents/p-b4b8b531.js +0 -1
  231. package/dist/webcomponents/p-ba5fae28.js +0 -1
  232. package/dist/webcomponents/p-cc97f21b.entry.js +0 -1
  233. package/dist/webcomponents/p-cd37a87e.entry.js +0 -1
  234. package/dist/webcomponents/p-d4c94340.entry.js +0 -1
  235. package/dist/webcomponents/p-d5c9e036.entry.js +0 -1
  236. package/dist/webcomponents/p-d6a998e4.js +0 -1
  237. package/dist/webcomponents/p-ea3598f3.entry.js +0 -1
  238. package/dist/webcomponents/p-eca70b1d.entry.js +0 -1
  239. package/dist/webcomponents/p-f117d1d1.entry.js +0 -1
  240. package/dist/{globals.d.ts → types/global.d.ts} +1 -1
@@ -1,14 +1,15 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
- import { A as Api } from './Api-b09a2f6a.js';
2
+ import { c as config } from './config-27764a9d.js';
3
+ import { A as Api } from './Api-c8abc2e0.js';
3
4
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
4
5
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
5
6
  import { E as ErrorState } from './utils-01413a95.js';
6
- import { J as JustifiAnalytics } from './Analytics-a742f6d2.js';
7
- import './package-a70c900f.js';
7
+ import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
8
+ import './package-0935c5e5.js';
8
9
 
9
10
  class ReportsService {
10
11
  async fetchGrossVolumeChartData(accountId, authToken) {
11
- const api = Api({ authToken: authToken, apiOrigin: "" });
12
+ const api = Api({ authToken: authToken, apiOrigin: config.proxyApiOrigin });
12
13
  const endpoint = `account/${accountId}/reports/gross_volume`;
13
14
  return api.get(endpoint);
14
15
  }
@@ -1,6 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment } from './index-57431c24.js';
2
+ import { c as config } from './config-27764a9d.js';
2
3
  import { a as PaymentMethodTypes } from './Payment-6bf26fe2.js';
3
- import { g as snakeToCamel, f as formatCurrency } from './utils-3c1dd2fa.js';
4
+ import { g as snakeToCamel, f as formatCurrency } from './utils-e66d8bca.js';
4
5
 
5
6
  const PaymentMethodTypeLabels = {
6
7
  bankAccount: 'New bank account',
@@ -13,7 +14,7 @@ const NewPaymentMethod = class {
13
14
  this.onPaymentMethodOptionClick = () => {
14
15
  this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
15
16
  };
16
- this.iframeOrigin = "";
17
+ this.iframeOrigin = config.iframeOrigin;
17
18
  this.authToken = undefined;
18
19
  this.accountId = undefined;
19
20
  this.paymentMethodOption = undefined;
@@ -73,7 +74,7 @@ const NewPaymentMethod = class {
73
74
  }
74
75
  render() {
75
76
  var _a, _b, _c, _d;
76
- return (h("div", { key: '55a43467070e4981a6fda7b529f329122f33dda8', class: "payment-method" }, h("div", { key: 'b86a20d2e51883dab9f2c46e6787417d498af17e', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '900b836be24e83816d1e6c915855b11ba3b605ee', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: 'b1976293de17845cba7671606c50698b90878bcb', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
77
+ return (h("div", { key: '7b17c9f060764f959286e739a2c05a43d1363f0e', class: "payment-method" }, h("div", { key: '5f09658f3be4cf75ee6df659d02b9bb29a0af2c3', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '5187b4d23e10272df064b554130b856332b77e43', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '1814812e3246a5f9a5734cbb40af529a61e73f21', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
77
78
  }
78
79
  };
79
80
 
@@ -116,7 +117,7 @@ const PaymentMethodOptions = class {
116
117
  this.insuranceToggled = undefined;
117
118
  this.authToken = undefined;
118
119
  this.accountId = undefined;
119
- this.iframeOrigin = "";
120
+ this.iframeOrigin = config.iframeOrigin;
120
121
  this.savedPaymentMethods = [];
121
122
  this.paymentAmount = undefined;
122
123
  this.selectedPaymentMethodId = undefined;
@@ -162,7 +163,7 @@ const PaymentMethodOptions = class {
162
163
  }
163
164
  render() {
164
165
  var _a;
165
- return (h(Host, { key: '7ee40a1bdc9ec15596e870b48cbe7b6bbc20537c' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
166
+ return (h(Host, { key: '86e309b90ab00f530dd803b00e5aab511f92300f' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
166
167
  const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
167
168
  const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
168
169
  const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
@@ -203,7 +204,7 @@ const SavedPaymentMethod = class {
203
204
  this.onPaymentMethodOptionClick = () => {
204
205
  this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
205
206
  };
206
- this.iframeOrigin = "";
207
+ this.iframeOrigin = config.iframeOrigin;
207
208
  this.paymentMethodOption = undefined;
208
209
  this.isSelected = undefined;
209
210
  }
@@ -217,7 +218,7 @@ const SavedPaymentMethod = class {
217
218
  ;
218
219
  render() {
219
220
  var _a, _b, _c, _d, _e;
220
- return (h(Fragment, { key: '247dafc3fe4011c5f6a2202690310eedfa5422c8' }, h("div", { key: '9cfb0b6ca9c10e5cc6173832bb8211ddb1d0ae5b', class: "payment-method" }, h("div", { key: 'd247cc4cf9f7bf43d7153134c66a921b5bfc49bc', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '180c3aa6c4153bccf7cb620b6df49cc288754cd2', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: '6ec14d77e8171a1ddb37c686189878a7ebb4b4f4', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, CardBrandLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.brand], " *", (_e = this.paymentMethodOption) === null || _e === void 0 ? void 0 :
221
+ return (h(Fragment, { key: '9c2174123f1675d60bc48d8109821c0bc2ad7682' }, h("div", { key: '07bffce2603110d44f38ffb2f57a60f07faddb3b', class: "payment-method" }, h("div", { key: 'f489d3a05db45c2b2581bc8f0fc093afed453d91', class: "payment-method-header p-3", onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '70681612520aa621c39a017b72b25a7dd3211282', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: 'a58e14ae9d199b0e0eb01b4c0a4a8bd9c8fec41d', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, CardBrandLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.brand], " *", (_e = this.paymentMethodOption) === null || _e === void 0 ? void 0 :
221
222
  _e.acct_last_four)))));
222
223
  }
223
224
  };
@@ -262,7 +263,7 @@ const SezzlePaymentMethod = class {
262
263
  this.sezzleCheckout = checkout;
263
264
  this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
264
265
  };
265
- this.iframeOrigin = "";
266
+ this.iframeOrigin = config.iframeOrigin;
266
267
  this.bnpl = undefined;
267
268
  this.clientId = undefined;
268
269
  this.accountId = undefined;
@@ -288,7 +289,7 @@ const SezzlePaymentMethod = class {
288
289
  }
289
290
  render() {
290
291
  var _a, _b, _c, _d, _e;
291
- return (h("div", { key: '1b4e4a142e1e59465e0db5515ee6b0a0b2aac146', class: "payment-method" }, h("script", { key: 'c835bc94836949e2362974eaeefca1f6a579a1a0', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: '051a0392e6353116423f706be48eb266daf12b84', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '6dd0d61f1b8788b45b008f5ac05f8a8b6a6591f2', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: 'caf3429bae616a016f58e141ac5c4493174cf3ef', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, h("div", { key: '0e4ea85fc6fc32a1c35fe0dac86f21ab7f86eb0a' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", { key: '3740565f14b87aa2e4af44b7e2b12d93d6e454c2' }, h("span", { key: 'ca9b6dff0042c41d378b101067d060092234fa7c' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", h("span", { key: '14ab21fd2d9bd612f41d5cd3e175402593012619' }, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { key: '25e08c1e711af0979e14bbb911aedb58f59bc180', class: "fw-bold" }, formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
292
+ return (h("div", { key: 'a71ee3b09669bd27f82f13fc2e924978df3b3883', class: "payment-method" }, h("script", { key: 'def81ad89dfc5d5038ee0de6ea6e3d430f45842c', src: "https://checkout-sdk.sezzle.com/checkout.min.js", async: true, ref: (el) => (this.scriptRef = el) }), h("div", { key: 'b7c0afa6b157a981d61b4825dcf7fa5d031d701e', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '5c52a82646f941e7df87b99cd326c32b64ab1373', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: 'bb520c7addf37652ad0f22cc5a08c3afb0a23cd8', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, h("div", { key: '0e43ff1520bece6a98c61be7fa31acb3fd4711e9' }, "Buy now, pay later with ", sezzleLogo), this.installmentPlan && (h("small", { key: '9413c186f4dd6ee5b5296a4e0e60d469f5bec5c0' }, h("span", { key: 'dbc4ff1d6c5c7d0a189ea4f09773de501b21d5d1' }, (_d = this.installmentPlan) === null || _d === void 0 ? void 0 : _d.installments.length), "\u00A0", h("span", { key: '72a4d2a7b34fffaee04d466a981a1dab3160c639' }, this.installmentPlan.schedule, " payments of"), "\u00A0", h("span", { key: 'c2e2c5c4eaec1d03120239c00b47ae4bac548be6', class: "fw-bold" }, formatCurrency((_e = this.installmentPlan) === null || _e === void 0 ? void 0 : _e.installments[0].amountInCents))))))));
292
293
  }
293
294
  };
294
295
 
@@ -1,20 +1,21 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
2
  import { c as makeGetIdentity, d as makePatchIdentity, e as makePostIdentity } from './payment-provisioning-actions-0635eff7.js';
3
- import { I as IdentityService } from './business.service-37d0cc72.js';
3
+ import { I as IdentityService } from './business.service-1f589b6e.js';
4
4
  import { F as FormController } from './index.esm-fc4f5c0c.js';
5
- import { O as Owner } from './Business-e218b4f4.js';
5
+ import { O as Owner } from './Business-b73d5055.js';
6
6
  import { a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
7
- import { c as parseIdentityInfo, i as identitySchema } from './payload-parsers-acb719d1.js';
7
+ import { i as identitySchema } from './business-identity-schema-9e3269fb.js';
8
8
  import { B as Button } from './button-34e75e0f.js';
9
9
  import { S as SSN_MASK, P as PHONE_MASKS } from './form-input-masks-0e18300f.js';
10
10
  import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-270ac806.js';
11
11
  import './ComponentError-3ce7f437.js';
12
12
  import './utils-b10dae27.js';
13
- import './Api-b09a2f6a.js';
13
+ import './config-27764a9d.js';
14
+ import './Api-c8abc2e0.js';
14
15
  import './helpers-96ea3464.js';
15
16
  import './state-options-a356fb11.js';
16
- import './schema-validations-a83ff220.js';
17
- import './business-form-options-7a9a74fc.js';
17
+ import './schema-validations-e725d701.js';
18
+ import './business-form-options-d790973e.js';
18
19
 
19
20
  const BusinessOwnerForm = class {
20
21
  constructor(hostRef) {
@@ -196,12 +197,12 @@ const BusinessOwnerFormCore = class {
196
197
  }
197
198
  }
198
199
  get payload() {
199
- let formValues = parseIdentityInfo(this.formController.values.getValue());
200
+ let formValues = new Owner(this.formController.values.getValue()).payload;
200
201
  if (this.ownerId) {
201
- return JSON.stringify(formValues);
202
+ return formValues;
202
203
  }
203
204
  else {
204
- return JSON.stringify(Object.assign(Object.assign({}, formValues), { business_id: this.businessId }));
205
+ return Object.assign(Object.assign({}, formValues), { business_id: this.businessId });
205
206
  }
206
207
  }
207
208
  get formTitle() {
@@ -232,7 +233,7 @@ const BusinessOwnerFormCore = class {
232
233
  this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
233
234
  }
234
235
  render() {
235
- return (h("form", { key: 'b2e2aaced859260e9d2ef59bc3f8a0763d05872c', onSubmit: this.validateAndSubmit }, h("fieldset", { key: '2a93ddb4c945be0ec081ce31d6d9eff4b302d622' }, h("legend", { key: 'ea9859e55099e3f8263024d884edfb48b3666eaa', class: "fw-semibold fs-5" }, this.formTitle), h("br", { key: 'f646c1ecc544c358d87e701aba8e151fcb96c54e' }), h("div", { key: '874bf4ebd7cef0afbdee96fa4d5679b6d683b0f0', class: "row gy-3" }, h("owner-form-inputs", { key: '866dbf0002ec1ac70d7942c6011c67f8cd144960', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: '15d907270ecf3d16769cedea39ba279d7ffb0748', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: '84c09ef594e7fa387e64a09014de81ed713cc765', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: '1dafd97aa7b84644c9d011224a152ad7f99ce620', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: 'f1f31da4d147afcd01ef96acd01d63ee9497dd6b' }))));
236
+ return (h("form", { key: '27f0d989f017bd03b84cf8c994fa96f9a65aad08', onSubmit: this.validateAndSubmit }, h("fieldset", { key: '2c793f1f8777181e5db0a4cae5b9994d9188685e' }, h("legend", { key: 'a8951fcd990c8136cf6672424869f5c96def3cef', class: "fw-semibold fs-5" }, this.formTitle), h("br", { key: 'faaf0cc27c448452a5172ad7fcfcf510ec586d2b' }), h("div", { key: '486638ad24414a05f84ada3f37a89d0cc12e7ffb', class: "row gy-3" }, h("owner-form-inputs", { key: 'bdfe7cb3305f31d93321319ef14eee3e5b331381', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: '9e5c63e0637e0bffe5ab77a1f73c203704115479', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: '85de4b69c697ebf96778f538b1535bd1fb2c43e7', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: '1dd026432f19f84ae2142101191e511ebd62c2b3', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: '2570611bbe663e2e128f03806ecb036ce750c80b' }))));
236
237
  }
237
238
  static get watchers() { return {
238
239
  "isLoading": ["loadingWatcher"]
@@ -1,14 +1,15 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
- import { P as PaymentService } from './payment.service-9359fe15.js';
2
+ import { P as PaymentService } from './payment.service-02c596b9.js';
3
3
  import './Pagination-afc8f96d.js';
4
4
  import { P as Payment } from './Payment-6bf26fe2.js';
5
5
  import './Payout-dfe15b00.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
8
8
  import { E as ErrorState } from './utils-01413a95.js';
9
- import { J as JustifiAnalytics } from './Analytics-a742f6d2.js';
10
- import './Api-b09a2f6a.js';
11
- import './package-a70c900f.js';
9
+ import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
10
+ import './Api-c8abc2e0.js';
11
+ import './config-27764a9d.js';
12
+ import './package-0935c5e5.js';
12
13
 
13
14
  const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
14
15
  var _a;
@@ -2,14 +2,15 @@ import { r as registerInstance, c as createEvent, h } from './index-57431c24.js'
2
2
  import './Pagination-afc8f96d.js';
3
3
  import { a as PaymentMethodTypes } from './Payment-6bf26fe2.js';
4
4
  import './Payout-dfe15b00.js';
5
- import { l as loadFontsOnParent } from './utils-3c1dd2fa.js';
5
+ import { l as loadFontsOnParent } from './utils-e66d8bca.js';
6
+ import { c as config } from './config-27764a9d.js';
6
7
  import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
7
8
  import { g as getErrorMessage } from './utils-b10dae27.js';
8
- import { J as JustifiAnalytics } from './Analytics-a742f6d2.js';
9
+ import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
9
10
  import { B as Button } from './button-34e75e0f.js';
10
11
  import { S as StyledHost } from './styled-host-ab9da520.js';
11
- import './package-a70c900f.js';
12
- import './Api-b09a2f6a.js';
12
+ import './package-0935c5e5.js';
13
+ import './Api-c8abc2e0.js';
13
14
 
14
15
  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)}";
15
16
  const JustifiPaymentFormStyle0 = paymentFormCss;
@@ -117,15 +118,15 @@ const PaymentForm = class {
117
118
  }
118
119
  }
119
120
  render() {
120
- return (h(StyledHost, { key: '8cb6e3903a0045fbffed5f17dc29aacc6b57ad7f' }, h("form", { key: '4e8f00c3d29c0db0bc99fd79da46abe7c40e3e30', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: '344a1356f6f482493a35015c32f8e9a9b4cc8a80', class: "col-12" }, h("justifi-payment-method-selector", { key: '36b9dd7a9bc8336b4bef0d12f56c811effbc0a0b', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: '225a260f817f9dd02a7f0a5b25562179ab80f7de', class: "col-12" }, h("justifi-payment-method-form", { key: '52e2bf20b265cc96ab556571a323370cc27ac278', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: "", ref: el => {
121
+ return (h(StyledHost, { key: '38bd6cca38d9068fa9277a8568a98f261a4cc616' }, h("form", { key: 'fec19f5e2f11934e6783124c4c437a2d3947f596', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: '18001f78e03336d01de8473a57e3e228e9fce201', class: "col-12" }, h("justifi-payment-method-selector", { key: '260ac1ade3ccfe6baf518eb856bdf4d380025620', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: 'f6ade2336314e05f2bdce75df8577939efe33e3b', class: "col-12" }, h("justifi-payment-method-form", { key: 'ad8e5b121b8425175f7ac7f38ab24dfba1801a28', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.iframeOrigin, ref: el => {
121
122
  if (el) {
122
123
  this.paymentMethodFormRef = el;
123
124
  }
124
- } })), h("div", { key: '433a8ac42c0eec9180e37da222da1dbb1112e48e', class: "col-12" }, h("justifi-billing-form", { key: '4f24f1c8b4083e2d9e5bb2272d32d20bb5cc225d', legend: "Billing Info", ref: el => {
125
+ } })), h("div", { key: '29f15f1cece3e07a569e514d08bf9996405699c6', class: "col-12" }, h("justifi-billing-form", { key: '9928924cc29bfa5c5e46ada294cb26da0c1d222b', legend: "Billing Info", ref: el => {
125
126
  if (el) {
126
127
  this.billingFormRef = el;
127
128
  }
128
- } })), h("slot", { key: '9397ae7fdd2677cd61a425fcf5818ae14fabbed0', name: 'insurance' }), h("div", { key: 'db9131f6f35165e69d3b59da7fa25b95f1e46168', class: "col-12" }, h(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')))));
129
+ } })), h("slot", { key: 'c36583ab34bc105b506df27aec02898455855cec', name: 'insurance' }), h("div", { key: 'cc38292ae8a59bc6f4624a8535e8b7c93e6f3a35', class: "col-12" }, h(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')))));
129
130
  }
130
131
  };
131
132
  PaymentForm.style = JustifiPaymentFormStyle0;
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
2
- import { p as packageJson } from './package-a70c900f.js';
3
- import { m as composeQueryParams } from './utils-3c1dd2fa.js';
2
+ import { p as packageJson } from './package-0935c5e5.js';
3
+ import { k as composeQueryParams } from './utils-e66d8bca.js';
4
4
 
5
5
  var iframeResizer = {exports: {}};
6
6
 
@@ -1,10 +1,11 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
- import { J as JustifiAnalytics } from './Analytics-a742f6d2.js';
2
+ import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
3
3
  import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
4
4
  import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-0635eff7.js';
5
- import { B as BusinessService } from './business.service-37d0cc72.js';
6
- import { A as Api } from './Api-b09a2f6a.js';
7
- import './package-a70c900f.js';
5
+ import { B as BusinessService } from './business.service-1f589b6e.js';
6
+ import { c as config } from './config-27764a9d.js';
7
+ import { A as Api } from './Api-c8abc2e0.js';
8
+ import './package-0935c5e5.js';
8
9
  import './utils-b10dae27.js';
9
10
 
10
11
  class ProvisionService {
@@ -14,7 +15,7 @@ class ProvisionService {
14
15
  business_id: businessId,
15
16
  product_category: product,
16
17
  };
17
- return Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
18
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
18
19
  }
19
20
  }
20
21
 
@@ -1,14 +1,15 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
- import { P as PaymentService } from './payment.service-9359fe15.js';
2
+ import { P as PaymentService } from './payment.service-02c596b9.js';
3
3
  import './Pagination-afc8f96d.js';
4
4
  import { P as Payment } from './Payment-6bf26fe2.js';
5
5
  import './Payout-dfe15b00.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
8
8
  import { E as ErrorState } from './utils-01413a95.js';
9
- import { J as JustifiAnalytics } from './Analytics-a742f6d2.js';
10
- import './Api-b09a2f6a.js';
11
- import './package-a70c900f.js';
9
+ import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
10
+ import './Api-c8abc2e0.js';
11
+ import './config-27764a9d.js';
12
+ import './package-0935c5e5.js';
12
13
 
13
14
  const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
14
15
  var _a, _b;
@@ -1,14 +1,15 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
- import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-a702a0d9.js';
2
+ import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-93427146.js';
3
3
  import './Pagination-afc8f96d.js';
4
4
  import './Payment-6bf26fe2.js';
5
5
  import { P as Payout } from './Payout-dfe15b00.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
8
8
  import { E as ErrorState } from './utils-01413a95.js';
9
- import { J as JustifiAnalytics } from './Analytics-a742f6d2.js';
10
- import './Api-b09a2f6a.js';
11
- import './package-a70c900f.js';
9
+ import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
10
+ import './Api-c8abc2e0.js';
11
+ import './config-27764a9d.js';
12
+ import './package-0935c5e5.js';
12
13
 
13
14
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
14
15
  var _a;
@@ -1,15 +1,16 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
2
2
  import { t as tableExportedParts } from './exported-parts-abd4c027.js';
3
- import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-a702a0d9.js';
3
+ import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-93427146.js';
4
4
  import './Pagination-afc8f96d.js';
5
5
  import './Payment-6bf26fe2.js';
6
6
  import { P as Payout } from './Payout-dfe15b00.js';
7
7
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
8
8
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
9
9
  import { E as ErrorState } from './utils-01413a95.js';
10
- import { J as JustifiAnalytics } from './Analytics-a742f6d2.js';
11
- import './Api-b09a2f6a.js';
12
- import './package-a70c900f.js';
10
+ import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
11
+ import './Api-c8abc2e0.js';
12
+ import './config-27764a9d.js';
13
+ import './package-0935c5e5.js';
13
14
 
14
15
  const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
15
16
  var _a, _b;
@@ -1,9 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
2
  import { c as create$3, d as create$5, F as FormController } from './index.esm-fc4f5c0c.js';
3
- import { A as Api } from './Api-b09a2f6a.js';
3
+ import { A as Api } from './Api-c8abc2e0.js';
4
4
  import './Pagination-afc8f96d.js';
5
5
  import './Payment-6bf26fe2.js';
6
6
  import './Payout-dfe15b00.js';
7
+ import { c as config } from './config-27764a9d.js';
7
8
  import { C as CURRENCY_MASK } from './form-input-masks-0e18300f.js';
8
9
  import { S as StyledHost } from './styled-host-ab9da520.js';
9
10
 
@@ -89,11 +90,11 @@ const RefundForm = class {
89
90
  if (!this.authToken) {
90
91
  console.warn('Warning: Missing auth-token.');
91
92
  }
92
- this.api = Api({ authToken: this.authToken, apiOrigin: "" });
93
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
93
94
  }
94
95
  render() {
95
96
  var _a;
96
- return (h(StyledHost, { key: '8d31f1a9bf936c9e11f8eca1dc55e614b9fa5939' }, h("h1", { key: 'be589740535ee8a5ab6d4af7151d7ae026f08002' }, "Refund"), this.refundInfoText && (h("div", { key: 'b1d40507dec53bac422f99a3d62678c78c0c2038', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: 'cc76014eef0d826bec5ec09355dc5fc747fd2070', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: 'c2efa0f2acdf3faaa6e2974d0535f48799e3cbbd', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: '68220114781378f6507651414c87532171bebb31', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: '075545e9837316fe160760e0dba9a5104654dd2b', class: "form-group" }, h("form-control-monetary", { key: 'c8ff8a822d2b74b2f80b33cd6cd2b42ceebbff11', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: '92093284e763466be5138ea6d788145d5d47bd87', class: "form-group" }, h("form-control-text", { key: 'ddf9e221d43d84ad7436261c5755e673224aa82e', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: '58abbbabce09d82da4032ef0e08e6cfac1433153', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '3e703ef633e0d45ba70425dc6d58bcd2d590ce1b', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
97
+ return (h(StyledHost, { key: 'd0d0962eaecab749aa1eb124e86701a2fb4dfd53' }, h("h1", { key: 'cb3071d89c291b1664e551fcf2808a64569ba5eb' }, "Refund"), this.refundInfoText && (h("div", { key: '01a6f4567f882d2eec492ef6d98db7d04747ecb4', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: '8ae5928aaf8ead35a7ad180a01bdde05ebec3d5f', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: '425a7dfe9d8b886b55fd0878f3989373733c1758', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: '5516d2ac500611d2410b9b4c2a4d0d15e417b2d1', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: 'b67a7c56f070a5a25d91aa0cc77755b27d420fdc', class: "form-group" }, h("form-control-monetary", { key: '76b6cfdf2b39674434f4d880333dd5d5f603f0b6', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: '5e581cdea69d2ce9dbad774214cd904923d199b3', class: "form-group" }, h("form-control-text", { key: '926ae888676a4089d3381bd4d650e6f84f6e206a', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: 'de5df506b7b64a69a16241f117bf9bea4fd79b57', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '92ad4d43677587c2c20dc03c6f03a6cf1f20ac12', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
97
98
  }
98
99
  };
99
100
  RefundForm.style = JustifiRefundFormStyle0;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
- import { f as formatCurrency } from './utils-3c1dd2fa.js';
2
+ import { f as formatCurrency } from './utils-e66d8bca.js';
3
3
  import { v as validateInsuranceValues, a as insuranceValues, b as insuranceErrors } from './insurance-state-8ce01e59.js';
4
4
  import { S as StyledHost } from './styled-host-ab9da520.js';
5
5
 
@@ -1,21 +1,22 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
- import { A as Api } from './Api-b09a2f6a.js';
2
+ import { A as Api } from './Api-c8abc2e0.js';
3
3
  import './Pagination-afc8f96d.js';
4
4
  import './Payment-6bf26fe2.js';
5
5
  import './Payout-dfe15b00.js';
6
+ import { c as config } from './config-27764a9d.js';
6
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
7
8
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
8
- import { J as JustifiAnalytics } from './Analytics-a742f6d2.js';
9
- import './package-a70c900f.js';
9
+ import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
10
+ import './package-0935c5e5.js';
10
11
 
11
12
  class InsuranceService {
12
13
  async fetchQuote(authToken, payload) {
13
14
  const endpoint = 'insurance/quotes';
14
- return Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
15
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
15
16
  }
16
17
  async toggleCoverage(authToken, quoteId, payload) {
17
18
  const endpoint = `insurance/quotes/${quoteId}/toggle`;
18
- return Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
19
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
19
20
  }
20
21
  }
21
22
 
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "4.19.3-rc-1";
2
+ const version = "4.19.3";
3
3
  const description = "JustiFi Web Components";
4
4
  const collection = "dist/collection/collection-manifest.json";
5
5
  const main = "dist/index.cjs.js";
@@ -44,7 +44,7 @@ const devDependencies = {
44
44
  "@babel/preset-env": "^7.21.5",
45
45
  "@babel/preset-react": "^7.18.6",
46
46
  "@babel/preset-typescript": "^7.21.5",
47
- "@rollup/plugin-replace": "^5.0.7",
47
+ "@rollup/plugin-replace": "^6.0.1",
48
48
  "@stencil/sass": "^3.0.1",
49
49
  "@types/jest": "27.0.3",
50
50
  "@types/react": "^18.0.37",
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
- import { M as MapPaymentStatusToBadge, f as formatCurrency, b as formatDate, c as formatTime, s as snakeCaseToHumanReadable } from './utils-3c1dd2fa.js';
2
+ import { M as MapPaymentStatusToBadge, f as formatCurrency, b as formatDate, c as formatTime, s as snakeCaseToHumanReadable } from './utils-e66d8bca.js';
3
3
  import { a as EntityHeadInfo, b as EntityHeadInfoItem, D as DetailSectionTitle, c as DetailItem, C as CodeBlock, E as ErrorState, L as LoadingState } from './utils-01413a95.js';
4
4
  import { S as StyledHost } from './styled-host-ab9da520.js';
5
5
 
@@ -1,17 +1,18 @@
1
- import { A as Api } from './Api-b09a2f6a.js';
1
+ import { A as Api } from './Api-c8abc2e0.js';
2
2
  import './Pagination-afc8f96d.js';
3
3
  import './Payment-6bf26fe2.js';
4
4
  import './Payout-dfe15b00.js';
5
+ import { c as config } from './config-27764a9d.js';
5
6
 
6
7
  class PaymentService {
7
8
  async fetchPayments(accountId, authToken, params) {
8
- const api = Api({ authToken, apiOrigin: "" });
9
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
9
10
  const endpoint = `account/${accountId}/payments`;
10
11
  return api.get(endpoint, params);
11
12
  }
12
13
  async fetchPayment(paymentId, authToken) {
13
14
  const endpoint = `payments/${paymentId}`;
14
- return Api({ authToken, apiOrigin: "" }).get(endpoint);
15
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
15
16
  }
16
17
  }
17
18
 
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h } from './index-57431c24.js'
2
2
  import { p as pagingDefaults } from './Pagination-afc8f96d.js';
3
3
  import './Payment-6bf26fe2.js';
4
4
  import './Payout-dfe15b00.js';
5
- import { b as formatDate, c as formatTime, f as formatCurrency, M as MapPaymentStatusToBadge } from './utils-3c1dd2fa.js';
5
+ import { b as formatDate, c as formatTime, f as formatCurrency, M as MapPaymentStatusToBadge } from './utils-e66d8bca.js';
6
6
  import { t as tableExportedParts } from './exported-parts-abd4c027.js';
7
7
  import { S as StyledHost } from './styled-host-ab9da520.js';
8
8
  import { T as TableLoadingState, a as TableEmptyState, b as TableErrorState } from './table-loading-state-356c7215.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
- import { d as MapPayoutStatusToBadge, f as formatCurrency, b as formatDate, c as formatTime } from './utils-3c1dd2fa.js';
2
+ import { d as MapPayoutStatusToBadge, f as formatCurrency, b as formatDate, c as formatTime } from './utils-e66d8bca.js';
3
3
  import { a as EntityHeadInfo, b as EntityHeadInfoItem, D as DetailSectionTitle, c as DetailItem, C as CodeBlock, E as ErrorState, L as LoadingState } from './utils-01413a95.js';
4
4
  import { S as StyledHost } from './styled-host-ab9da520.js';
5
5
 
@@ -2,7 +2,7 @@ import { h, r as registerInstance, c as createEvent } from './index-57431c24.js'
2
2
  import { p as pagingDefaults } from './Pagination-afc8f96d.js';
3
3
  import './Payment-6bf26fe2.js';
4
4
  import { a as PayoutStatuses, b as PayoutStatusesSafeNames } from './Payout-dfe15b00.js';
5
- import { b as formatDate, c as formatTime, f as formatCurrency } from './utils-3c1dd2fa.js';
5
+ import { b as formatDate, c as formatTime, f as formatCurrency } from './utils-e66d8bca.js';
6
6
  import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
7
7
  import { t as tableExportedParts } from './exported-parts-abd4c027.js';
8
8
  import { S as StyledHost } from './styled-host-ab9da520.js';
@@ -1,6 +1,6 @@
1
1
  import { a as create$6, b as create$8 } from './index.esm-fc4f5c0c.js';
2
2
  import { S as StateOptions } from './state-options-a356fb11.js';
3
- import { b as businessClassificationOptions, a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, c as bankAccountTypeOptions } from './business-form-options-7a9a74fc.js';
3
+ import { b as businessClassificationOptions, a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, c as bankAccountTypeOptions } from './business-form-options-d790973e.js';
4
4
 
5
5
  const transformEmptyString = (value) => {
6
6
  return value === '' ? null : value;
@@ -298,4 +298,4 @@ const profitAndLossStatementValidation = (volume, documents, allowOptionalFields
298
298
  }
299
299
  };
300
300
 
301
- export { nicknameValidation as A, accountTypeValidation as B, accountNumberValidation as C, routingNumberValidation as D, voidedCheckValidation as E, governmentIdValidation as F, ss4Validation as G, otherDocumentValidation as H, balanceSheetValidation as I, bankStatementValidation as J, profitAndLossStatementValidation as K, EntityDocument as L, EntityDocumentStorage as M, EntityDocumentType as N, lineTwoValidation as a, identityTitleValidation as b, cityValidation as c, phoneValidation as d, emailValidation as e, dobValidation as f, ssnValidation as g, businessNameValidation as h, identityNameValidation as i, doingBusinessAsValidation as j, businessClassificationValidation as k, lineOneValidation as l, industryValidation as m, dateOfIncorporationValidation as n, paymentVolumeValidation as o, postalValidation as p, whenServiceReceivedValidation as q, revenueValidation as r, stateValidation as s, taxIdValidation as t, recurringPaymentsValidation as u, recurringPaymentsPercentageValidation as v, websiteUrlValidation as w, seasonalBusinessValidation as x, otherPaymentDetailsValidation as y, bankNameValidation as z };
301
+ export { nicknameValidation as A, accountTypeValidation as B, accountNumberValidation as C, routingNumberValidation as D, voidedCheckValidation as E, governmentIdValidation as F, ss4Validation as G, otherDocumentValidation as H, balanceSheetValidation as I, bankStatementValidation as J, profitAndLossStatementValidation as K, EntityDocument as L, EntityDocumentStorage as M, EntityDocumentType as N, businessClassificationValidation as a, businessNameValidation as b, dateOfIncorporationValidation as c, doingBusinessAsValidation as d, emailValidation as e, paymentVolumeValidation as f, whenServiceReceivedValidation as g, recurringPaymentsValidation as h, industryValidation as i, recurringPaymentsPercentageValidation as j, lineTwoValidation as k, lineOneValidation as l, cityValidation as m, stateValidation as n, otherPaymentDetailsValidation as o, phoneValidation as p, postalValidation as q, revenueValidation as r, seasonalBusinessValidation as s, taxIdValidation as t, identityNameValidation as u, identityTitleValidation as v, websiteUrlValidation as w, dobValidation as x, ssnValidation as y, bankNameValidation as z };
@@ -3971,21 +3971,6 @@ function snakeToCamel(str) {
3971
3971
  return '';
3972
3972
  return str.replace(/([-_][a-z])/g, (group) => group.toUpperCase().replace('-', '').replace('_', ''));
3973
3973
  }
3974
- function flattenNestedObject(obj) {
3975
- const result = {};
3976
- for (const key in obj) {
3977
- if (typeof obj[key] === 'object' && obj[key] !== null) {
3978
- const nestedObj = flattenNestedObject(obj[key]);
3979
- for (const nestedKey in nestedObj) {
3980
- result[nestedKey] = nestedObj[nestedKey];
3981
- }
3982
- }
3983
- else {
3984
- result[key] = obj[key];
3985
- }
3986
- }
3987
- return result;
3988
- }
3989
3974
  function composeQueryParams(values) {
3990
3975
  const queryParams = values.map((value) => {
3991
3976
  if (value === values[0]) {
@@ -4024,4 +4009,4 @@ const isInRange = (num, min, max) => {
4024
4009
  return num >= min && num <= max;
4025
4010
  };
4026
4011
 
4027
- export { MapPaymentStatusToBadge as M, formatDisplayDate as a, formatDate as b, formatTime as c, MapPayoutStatusToBadge as d, formatMediumDate as e, formatCurrency as f, snakeToCamel as g, flattenNestedObject as h, isEmptyObject as i, isInRange as j, formatTimeSeconds as k, loadFontsOnParent as l, composeQueryParams as m, snakeCaseToHumanReadable as s };
4012
+ export { MapPaymentStatusToBadge as M, formatDisplayDate as a, formatDate as b, formatTime as c, MapPayoutStatusToBadge as d, formatMediumDate as e, formatCurrency as f, snakeToCamel as g, isInRange as h, isEmptyObject as i, formatTimeSeconds as j, composeQueryParams as k, loadFontsOnParent as l, snakeCaseToHumanReadable as s };
@@ -1,10 +1,11 @@
1
1
  import { p as packageJson } from './package.js';
2
+ import { c as config } from './config.js';
2
3
  import { A as Api } from './Api.js';
3
4
 
4
5
  class AnalyticsService {
5
6
  async record(body) {
6
7
  const endpoint = 'analytics';
7
- return Api({ apiOrigin: "" }).post(endpoint, JSON.stringify(body));
8
+ return Api({ apiOrigin: config.proxyApiOrigin }).post(endpoint, body);
8
9
  }
9
10
  }
10
11
 
@@ -94,13 +94,13 @@ const Api = ({ authToken, apiOrigin }) => {
94
94
  return makeRequest(endpoint, 'GET', params, null, signal);
95
95
  }
96
96
  async function post(endpoint, body, params, signal) {
97
- return makeRequest(endpoint, 'POST', params, body, signal);
97
+ return makeRequest(endpoint, 'POST', params, JSON.stringify(body), signal);
98
98
  }
99
99
  async function put(endpoint, body, params, signal) {
100
- return makeRequest(endpoint, 'PUT', params, body, signal);
100
+ return makeRequest(endpoint, 'PUT', params, JSON.stringify(body), signal);
101
101
  }
102
102
  async function patch(endpoint, body, params, signal) {
103
- return makeRequest(endpoint, 'PATCH', params, body, signal);
103
+ return makeRequest(endpoint, 'PATCH', params, JSON.stringify(body), signal);
104
104
  }
105
105
  async function destroy(endpoint, params, signal) {
106
106
  return makeRequest(endpoint, 'DELETE', params, null, signal);