@justifi/webcomponents 4.19.1-rc-5 → 4.19.1

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 (244) hide show
  1. package/dist/cjs/{Analytics-8949ea18.js → Analytics-f870b3ee.js} +3 -2
  2. package/dist/cjs/{business-additional-questions-schema-cf545610.js → business-additional-questions-schema-11ce0005.js} +1 -1
  3. package/dist/cjs/{business-form-options-582467fe.js → business-form-options-26f9900c.js} +1 -1
  4. package/dist/cjs/{business.service-6bb7ac82.js → business.service-f63650f5.js} +6 -5
  5. package/dist/cjs/config-ff2dda66.js +15 -0
  6. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  7. package/dist/cjs/form-control-checkbox_9.cjs.entry.js +4 -4
  8. package/dist/cjs/{get-payout-csv-1391ff3e.js → get-payout-csv-f3aee6d0.js} +4 -3
  9. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +10 -9
  10. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -4
  11. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-business-details.cjs.entry.js +4 -3
  13. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -8
  14. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -4
  15. package/dist/cjs/justifi-checkout-core.cjs.entry.js +3 -3
  16. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -4
  17. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -3
  18. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +9 -11
  19. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +5 -4
  20. package/dist/cjs/justifi-payment-details.cjs.entry.js +4 -3
  21. package/dist/cjs/justifi-payment-form.cjs.entry.js +6 -5
  22. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
  23. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +6 -5
  24. package/dist/cjs/justifi-payments-list.cjs.entry.js +4 -3
  25. package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -3
  26. package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -3
  27. package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -2
  28. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -4
  29. package/dist/cjs/{package-a3cbc925.js → package-1321b070.js} +4 -2
  30. package/dist/cjs/{payload-parsers-1cbc3b57.js → payload-parsers-969ab9b6.js} +1 -1
  31. package/dist/cjs/{payment.service-dfcfa19b.js → payment.service-0a64f9cd.js} +3 -2
  32. package/dist/cjs/{schema-validations-2733de42.js → schema-validations-f3db892c.js} +1 -1
  33. package/dist/collection/api/services/analytics.service.js +2 -1
  34. package/dist/collection/api/services/business.service.js +6 -5
  35. package/dist/collection/api/services/checkout.service.js +3 -2
  36. package/dist/collection/api/services/insurance.service.js +3 -2
  37. package/dist/collection/api/services/payment.service.js +3 -2
  38. package/dist/collection/api/services/payout.service.js +4 -3
  39. package/dist/collection/api/services/provision.service.js +4 -2
  40. package/dist/collection/api/services/reports.service.js +2 -1
  41. package/dist/collection/components/bank-account-form/bank-account-form.js +4 -3
  42. package/dist/collection/components/business-forms/business-form/business-form.js +3 -2
  43. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +3 -2
  44. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +3 -2
  45. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +3 -2
  46. package/dist/collection/components/business-forms/utils/business-form-options.js +1 -1
  47. package/dist/collection/components/card-form/card-form.js +4 -3
  48. package/dist/collection/components/checkout/checkout-core.js +4 -4
  49. package/dist/collection/components/checkout/new-payment-method.js +4 -6
  50. package/dist/collection/components/checkout/payment-method-options.js +4 -3
  51. package/dist/collection/components/checkout/saved-payment-method.js +4 -3
  52. package/dist/collection/components/checkout/sezzle-payment-method.js +4 -3
  53. package/dist/collection/components/payment-form/payment-form.js +4 -3
  54. package/dist/collection/components/refund-form/refund-form.js +3 -2
  55. package/dist/config.js +11 -0
  56. package/dist/docs.json +8 -8
  57. package/dist/esm/{Analytics-38d3bafb.js → Analytics-262cdde5.js} +3 -2
  58. package/dist/esm/{business-additional-questions-schema-956e3caf.js → business-additional-questions-schema-e39bc781.js} +1 -1
  59. package/dist/esm/{business-form-options-7a9a74fc.js → business-form-options-0b08e08c.js} +1 -1
  60. package/dist/esm/{business.service-f45decfc.js → business.service-74bd1212.js} +6 -5
  61. package/dist/esm/config-476c7241.js +13 -0
  62. package/dist/esm/form-alert_5.entry.js +1 -1
  63. package/dist/esm/form-control-checkbox_9.entry.js +4 -4
  64. package/dist/esm/{get-payout-csv-e784a2ab.js → get-payout-csv-b494abfe.js} +4 -3
  65. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +10 -9
  66. package/dist/esm/justifi-bank-account-form.entry.js +5 -4
  67. package/dist/esm/justifi-billing-form_2.entry.js +2 -2
  68. package/dist/esm/justifi-business-details.entry.js +4 -3
  69. package/dist/esm/justifi-business-form.entry.js +9 -8
  70. package/dist/esm/justifi-card-form.entry.js +5 -4
  71. package/dist/esm/justifi-checkout-core.entry.js +3 -3
  72. package/dist/esm/justifi-checkout.entry.js +5 -4
  73. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -3
  74. package/dist/esm/justifi-new-payment-method_4.entry.js +9 -11
  75. package/dist/esm/justifi-owner-form_3.entry.js +5 -4
  76. package/dist/esm/justifi-payment-details.entry.js +4 -3
  77. package/dist/esm/justifi-payment-form.entry.js +6 -5
  78. package/dist/esm/justifi-payment-method-form.entry.js +1 -1
  79. package/dist/esm/justifi-payment-provisioning.entry.js +6 -5
  80. package/dist/esm/justifi-payments-list.entry.js +4 -3
  81. package/dist/esm/justifi-payout-details.entry.js +4 -3
  82. package/dist/esm/justifi-payouts-list.entry.js +4 -3
  83. package/dist/esm/justifi-refund-form.entry.js +3 -2
  84. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -4
  85. package/dist/esm/{package-89734008.js → package-d88677e9.js} +4 -2
  86. package/dist/esm/{payload-parsers-acb719d1.js → payload-parsers-62f443e1.js} +1 -1
  87. package/dist/esm/{payment.service-dad5153b.js → payment.service-3ca4a492.js} +3 -2
  88. package/dist/esm/{schema-validations-a83ff220.js → schema-validations-2f4fdebb.js} +1 -1
  89. package/dist/module/Analytics.js +2 -1
  90. package/dist/module/business-bank-account-form-step.js +3 -2
  91. package/dist/module/business-document-upload-form-step.js +3 -2
  92. package/dist/module/business-form-options.js +1 -1
  93. package/dist/module/business-terms-conditions-form-step.js +3 -2
  94. package/dist/module/business.service.js +6 -5
  95. package/dist/module/checkout-core.js +3 -3
  96. package/dist/module/config.js +13 -0
  97. package/dist/module/get-payout-csv.js +4 -3
  98. package/dist/module/justifi-bank-account-form.js +3 -2
  99. package/dist/module/justifi-business-form.js +3 -2
  100. package/dist/module/justifi-card-form.js +3 -2
  101. package/dist/module/justifi-checkout.js +3 -2
  102. package/dist/module/justifi-gross-payment-chart.js +2 -1
  103. package/dist/module/justifi-payment-form.js +4 -3
  104. package/dist/module/justifi-payment-provisioning.js +3 -2
  105. package/dist/module/justifi-refund-form.js +3 -2
  106. package/dist/module/justifi-season-interruption-insurance.js +3 -2
  107. package/dist/module/new-payment-method.js +3 -5
  108. package/dist/module/package.js +4 -2
  109. package/dist/module/payment-method-options.js +3 -2
  110. package/dist/module/payment.service.js +3 -2
  111. package/dist/module/saved-payment-method.js +3 -2
  112. package/dist/module/sezzle-payment-method.js +3 -2
  113. package/dist/types/components/checkout/new-payment-method.d.ts +0 -1
  114. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
  115. package/dist/webcomponents/index.esm.js +0 -1
  116. package/dist/webcomponents/p-04a0dbb6.js +1 -0
  117. package/dist/webcomponents/p-061dcb79.entry.js +1 -0
  118. package/dist/webcomponents/p-07109641.entry.js +1 -0
  119. package/dist/webcomponents/p-08b0fb31.js +1 -41
  120. package/dist/webcomponents/p-0f7b9555.entry.js +1 -0
  121. package/dist/webcomponents/p-14c91ffd.js +1 -20
  122. package/dist/webcomponents/p-198994c0.entry.js +1 -0
  123. package/dist/webcomponents/p-1a43e355.entry.js +19 -0
  124. package/dist/webcomponents/p-1ad5995e.js +1 -3599
  125. package/dist/webcomponents/p-1f70fa27.entry.js +1 -0
  126. package/dist/webcomponents/p-1ff8810b.js +1 -29
  127. package/dist/webcomponents/p-2338affa.js +1 -213
  128. package/dist/webcomponents/p-241b0ed9.js +1 -0
  129. package/dist/webcomponents/p-2799383d.entry.js +1 -0
  130. package/dist/webcomponents/p-29c0b182.js +1 -114
  131. package/dist/webcomponents/p-2b6c9c4f.js +1 -7
  132. package/dist/webcomponents/p-2eab3c90.js +1 -3052
  133. package/dist/webcomponents/p-3affadfc.entry.js +1 -0
  134. package/dist/webcomponents/p-3d4d566d.entry.js +1 -0
  135. package/dist/webcomponents/p-3dd4c6c3.entry.js +1 -0
  136. package/dist/webcomponents/p-462dc522.entry.js +1 -0
  137. package/dist/webcomponents/p-46f679a9.js +1 -0
  138. package/dist/webcomponents/p-487b72a8.entry.js +1 -0
  139. package/dist/webcomponents/p-48ae16e0.entry.js +1 -0
  140. package/dist/webcomponents/p-4abc17f0.entry.js +1 -0
  141. package/dist/webcomponents/p-4bac636e.entry.js +1 -0
  142. package/dist/webcomponents/p-52021fa1.entry.js +1 -0
  143. package/dist/webcomponents/p-525db3e8.js +1 -22
  144. package/dist/webcomponents/p-53948ff8.entry.js +1 -0
  145. package/dist/webcomponents/p-53e64f15.entry.js +1 -0
  146. package/dist/webcomponents/p-554a3c18.js +1 -0
  147. package/dist/webcomponents/p-56f6ce4c.js +1 -10
  148. package/dist/webcomponents/p-5968ff8a.js +1 -178
  149. package/dist/webcomponents/p-6078a370.js +1 -244
  150. package/dist/webcomponents/p-60a370fc.entry.js +1 -0
  151. package/dist/webcomponents/p-62b32c4c.entry.js +1 -0
  152. package/dist/webcomponents/p-65b561da.entry.js +1 -0
  153. package/dist/webcomponents/p-72c9e6b3.entry.js +1 -0
  154. package/dist/webcomponents/p-75b4daef.js +1 -0
  155. package/dist/webcomponents/p-7d85af5c.js +1 -16
  156. package/dist/webcomponents/p-8115b2f4.js +1 -28
  157. package/dist/webcomponents/p-83125497.js +1 -4027
  158. package/dist/webcomponents/p-8603348a.js +1 -0
  159. package/dist/webcomponents/p-890b3254.entry.js +1 -0
  160. package/dist/webcomponents/p-8df7bde8.js +1 -27
  161. package/dist/webcomponents/p-92bb1e5f.entry.js +1 -0
  162. package/dist/webcomponents/p-9c9c7dac.js +1 -24
  163. package/dist/webcomponents/p-9ccfa1c9.entry.js +1 -0
  164. package/dist/webcomponents/p-9dc36f76.entry.js +1 -0
  165. package/dist/webcomponents/p-ad41c8c7.entry.js +1 -0
  166. package/dist/webcomponents/p-ae263544.js +1 -0
  167. package/dist/webcomponents/p-af244664.js +1 -126
  168. package/dist/webcomponents/p-b16dfd5d.entry.js +1 -0
  169. package/dist/webcomponents/p-ba4bae6f.js +1 -12
  170. package/dist/webcomponents/p-bbed6107.entry.js +1 -0
  171. package/dist/webcomponents/p-bc92235c.entry.js +1 -0
  172. package/dist/webcomponents/p-be39c802.entry.js +1 -0
  173. package/dist/webcomponents/p-c9f8f7ec.entry.js +1 -0
  174. package/dist/webcomponents/p-d101c5db.js +1 -0
  175. package/dist/webcomponents/p-d1c8d794.entry.js +1 -0
  176. package/dist/webcomponents/p-d25c2f12.js +1 -0
  177. package/dist/webcomponents/p-d2a5054f.entry.js +1 -0
  178. package/dist/webcomponents/p-d765d638.js +1 -0
  179. package/dist/webcomponents/p-d8355f91.entry.js +1 -0
  180. package/dist/webcomponents/p-d89bad72.js +1 -39
  181. package/dist/webcomponents/p-dce846bf.js +1 -27
  182. package/dist/webcomponents/p-df21aaad.js +1 -120
  183. package/dist/webcomponents/p-e1255160.js +1 -3
  184. package/dist/webcomponents/p-e2c88817.entry.js +1 -0
  185. package/dist/webcomponents/p-e31f0f3e.entry.js +1 -0
  186. package/dist/webcomponents/p-e333620e.js +1 -34
  187. package/dist/webcomponents/p-e3fab0e2.js +1 -43
  188. package/dist/webcomponents/p-f0866375.entry.js +1 -0
  189. package/dist/webcomponents/p-fad19d75.js +2 -1638
  190. package/dist/webcomponents/p-fb58feb5.entry.js +1 -0
  191. package/dist/webcomponents/p-fe33151d.entry.js +1 -0
  192. package/dist/webcomponents/webcomponents.css +4 -362
  193. package/dist/webcomponents/webcomponents.esm.js +1 -20
  194. package/package.json +4 -2
  195. package/dist/globals.d.ts +0 -2
  196. package/dist/webcomponents/p-0179fbb2.entry.js +0 -1684
  197. package/dist/webcomponents/p-01a404ca.entry.js +0 -44
  198. package/dist/webcomponents/p-03d35880.entry.js +0 -130
  199. package/dist/webcomponents/p-06ff0429.entry.js +0 -65
  200. package/dist/webcomponents/p-220fc2cc.entry.js +0 -98
  201. package/dist/webcomponents/p-258b1ee2.entry.js +0 -149
  202. package/dist/webcomponents/p-25d8cd65.entry.js +0 -102
  203. package/dist/webcomponents/p-2988ac56.js +0 -79
  204. package/dist/webcomponents/p-2e405359.entry.js +0 -73
  205. package/dist/webcomponents/p-3e9ef4a8.js +0 -28
  206. package/dist/webcomponents/p-3fd13ca3.js +0 -52
  207. package/dist/webcomponents/p-5482d030.entry.js +0 -21
  208. package/dist/webcomponents/p-576826b1.entry.js +0 -43
  209. package/dist/webcomponents/p-5cb3f0b2.entry.js +0 -261
  210. package/dist/webcomponents/p-5f835b89.entry.js +0 -606
  211. package/dist/webcomponents/p-6fed319e.entry.js +0 -99
  212. package/dist/webcomponents/p-70a2aa74.entry.js +0 -76
  213. package/dist/webcomponents/p-74d0d0e1.entry.js +0 -75
  214. package/dist/webcomponents/p-7582b554.entry.js +0 -18
  215. package/dist/webcomponents/p-79646550.entry.js +0 -61
  216. package/dist/webcomponents/p-7b0400cd.entry.js +0 -131
  217. package/dist/webcomponents/p-800d31fe.entry.js +0 -162
  218. package/dist/webcomponents/p-85fc69e5.js +0 -90
  219. package/dist/webcomponents/p-890088fc.entry.js +0 -298
  220. package/dist/webcomponents/p-89887332.js +0 -301
  221. package/dist/webcomponents/p-8eb774df.entry.js +0 -54
  222. package/dist/webcomponents/p-9f94bbb6.entry.js +0 -118
  223. package/dist/webcomponents/p-a2da97f2.entry.js +0 -145
  224. package/dist/webcomponents/p-a5a225d9.entry.js +0 -125
  225. package/dist/webcomponents/p-a5c5821e.entry.js +0 -101
  226. package/dist/webcomponents/p-a5fb51dc.entry.js +0 -131
  227. package/dist/webcomponents/p-a6d04afc.js +0 -44
  228. package/dist/webcomponents/p-ac086069.entry.js +0 -58
  229. package/dist/webcomponents/p-ad5cfa9d.js +0 -77
  230. package/dist/webcomponents/p-b82c146f.entry.js +0 -111
  231. package/dist/webcomponents/p-b9a41ec2.entry.js +0 -74
  232. package/dist/webcomponents/p-ba5fae28.js +0 -90
  233. package/dist/webcomponents/p-c636f563.entry.js +0 -791
  234. package/dist/webcomponents/p-c64abefc.entry.js +0 -117
  235. package/dist/webcomponents/p-cb26f708.js +0 -18
  236. package/dist/webcomponents/p-cbf2437a.entry.js +0 -80
  237. package/dist/webcomponents/p-d17aee2b.entry.js +0 -26
  238. package/dist/webcomponents/p-d894aed2.entry.js +0 -133
  239. package/dist/webcomponents/p-e356f280.entry.js +0 -29
  240. package/dist/webcomponents/p-e837a453.entry.js +0 -94
  241. package/dist/webcomponents/p-e84a2dcb.entry.js +0 -97
  242. package/dist/webcomponents/p-ec2bd24f.entry.js +0 -94
  243. package/dist/webcomponents/p-ec854a3e.entry.js +0 -11053
  244. package/dist/webcomponents/p-f02b75dc.entry.js +0 -96
@@ -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-e784a2ab.js';
3
+ import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-b494abfe.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-38d3bafb.js';
10
+ import { J as JustifiAnalytics } from './Analytics-262cdde5.js';
11
11
  import './Api-b09a2f6a.js';
12
- import './package-89734008.js';
12
+ import './config-476c7241.js';
13
+ import './package-d88677e9.js';
13
14
 
14
15
  const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
15
16
  var _a, _b;
@@ -4,6 +4,7 @@ import { A as Api } from './Api-b09a2f6a.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-476c7241.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: undefined });
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;
@@ -3,19 +3,20 @@ import { A as Api } from './Api-b09a2f6a.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-476c7241.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-38d3bafb.js';
9
- import './package-89734008.js';
9
+ import { J as JustifiAnalytics } from './Analytics-262cdde5.js';
10
+ import './package-d88677e9.js';
10
11
 
11
12
  class InsuranceService {
12
13
  async fetchQuote(authToken, payload) {
13
14
  const endpoint = 'insurance/quotes';
14
- return Api({ authToken, apiOrigin: undefined }).post(endpoint, JSON.stringify(payload));
15
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
15
16
  }
16
17
  async toggleCoverage(authToken, quoteId, payload) {
17
18
  const endpoint = `insurance/quotes/${quoteId}/toggle`;
18
- return Api({ authToken, apiOrigin: undefined }).post(endpoint, JSON.stringify(payload));
19
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
19
20
  }
20
21
  }
21
22
 
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "4.19.1-rc-5";
2
+ const version = "4.19.1";
3
3
  const description = "JustiFi Web Components";
4
4
  const collection = "dist/collection/collection-manifest.json";
5
5
  const main = "dist/index.cjs.js";
@@ -24,6 +24,7 @@ const scripts = {
24
24
  generate: "stencil generate",
25
25
  test: "TZ=utc stencil test --spec",
26
26
  "test:watch": "TZ=utc stencil test --spec --watchAll",
27
+ "test:e2e": "stencil test --e2e",
27
28
  "test:file": "stencil test --spec --watch --"
28
29
  };
29
30
  const dependencies = {
@@ -44,15 +45,16 @@ const devDependencies = {
44
45
  "@babel/preset-env": "^7.21.5",
45
46
  "@babel/preset-react": "^7.18.6",
46
47
  "@babel/preset-typescript": "^7.21.5",
47
- "@rollup/plugin-replace": "^5.0.7",
48
48
  "@stencil/sass": "^3.0.1",
49
49
  "@types/jest": "27.0.3",
50
+ "@types/node": "^20.1.4",
50
51
  "@types/react": "^18.0.37",
51
52
  "@types/react-dom": "^18.0.11",
52
53
  dotenv: "^16.3.1",
53
54
  jest: "^29.7.0",
54
55
  "jest-cli": "^29.7.0",
55
56
  "jest-environment-node": "^29.7.0",
57
+ puppeteer: "^21.0.0",
56
58
  "ts-jest": "^29.1.2"
57
59
  };
58
60
  const license = "MIT";
@@ -1,5 +1,5 @@
1
1
  import { c as create$3, a as create$6 } from './index.esm-fc4f5c0c.js';
2
- import { l as lineOneValidation, a as lineTwoValidation, c as cityValidation, s as stateValidation, p as postalValidation, i as identityNameValidation, b as identityTitleValidation, e as emailValidation, d as phoneValidation, f as dobValidation, g as ssnValidation } from './schema-validations-a83ff220.js';
2
+ import { l as lineOneValidation, a as lineTwoValidation, c as cityValidation, s as stateValidation, p as postalValidation, i as identityNameValidation, b as identityTitleValidation, e as emailValidation, d as phoneValidation, f as dobValidation, g as ssnValidation } from './schema-validations-2f4fdebb.js';
3
3
 
4
4
  const addressSchema = (allowOptionalFields) => {
5
5
  const schema = create$3({
@@ -2,16 +2,17 @@ import { A as Api } from './Api-b09a2f6a.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-476c7241.js';
5
6
 
6
7
  class PaymentService {
7
8
  async fetchPayments(accountId, authToken, params) {
8
- const api = Api({ authToken, apiOrigin: undefined });
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: undefined }).get(endpoint);
15
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
15
16
  }
16
17
  }
17
18
 
@@ -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-0b08e08c.js';
4
4
 
5
5
  const transformEmptyString = (value) => {
6
6
  return value === '' ? null : value;
@@ -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: undefined }).post(endpoint, JSON.stringify(body));
8
+ return Api({ apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(body));
8
9
  }
9
10
  }
10
11
 
@@ -7,6 +7,7 @@ import { A as Api } from './Api.js';
7
7
  import './Pagination.js';
8
8
  import './Payment.js';
9
9
  import './Payout.js';
10
+ import { c as config } from './config.js';
10
11
  import { n as numberOnlyHandler } from './utils4.js';
11
12
  import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
12
13
  import { d as defineCustomElement$4 } from './form-control-error-text2.js';
@@ -147,7 +148,7 @@ const BusinessBankAccountFormStep = /*@__PURE__*/ proxyCustomElement(class Busin
147
148
  ;
148
149
  componentWillLoad() {
149
150
  this.formController = new FormController(businessBankAccountSchema(this.allowOptionalFields));
150
- this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
151
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
151
152
  if (this.businessId && this.authToken) {
152
153
  this.fetchData();
153
154
  }
@@ -160,7 +161,7 @@ const BusinessBankAccountFormStep = /*@__PURE__*/ proxyCustomElement(class Busin
160
161
  }
161
162
  render() {
162
163
  const bankAccountDefaultValue = this.formController.getInitialValues();
163
- return (h("form", { key: 'bc16efe8af48103ce07d8f5c6ecb040bbb957868' }, h("fieldset", { key: 'aaada7411cd43e678be3fe14bd60462e39f54527' }, h("legend", { key: '165b78cff91b553a37e7f070a40c4941db2929df' }, "Bank Account Info"), h("hr", { key: '006315c63bd21554dfa30d763122b9c9f259aba9' }), h("div", { key: 'f080fa734567a23c43ee7123bf2718aad5f1efa1', class: "row gy-3" }, h("div", { key: '674fab37279d21761f6e588338ebdcdb9e5520aa', class: "col-12" }, h("form-control-text", { key: '68f1a9aa2200e204c4db2a36eb5f4f168ab18bab', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '085f33f93096bd9ecba304715ea1c3ec879396b4', class: "col-12" }, h("form-control-text", { key: 'c684ee2722f992ed61c51f87fd2c234c7278eb21', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'c0afbdb31f2faa8f73158e659b232230099e8b9f', class: "col-12" }, h("form-control-text", { key: '3d0e3ca9794beed0c542b6ca18a01eebec48366f', name: "account_owner_name", label: "Account Owner Name", defaultValue: bankAccountDefaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '40fd8191645312efaadc633061451bd744f2a31a', class: "col-12" }, h("form-control-select", { key: '40e40cc75dcaf8ef9ba47bdf109eb14798f28436', name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '2af9c012bca9d413a5eb5b3b27f685f88137888b', class: "col-12" }, h("form-control-text", { key: '6386c601520152cb758dfe30ea7c6a8cdb1b249a', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled })), h("div", { key: '8dac645db4cb8f18f4cdd138a02bc2467d2fcdd4', class: "col-12" }, h("form-control-text", { key: 'b8abe9231edd0fd07c21c9b3874e8f4f792a1eda', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled }))))));
164
+ return (h("form", { key: 'b2e106437693b667376fb8091117bc04899cce13' }, h("fieldset", { key: 'c6fc0e5b39278a4618abe0aeba8593b4800f23fa' }, h("legend", { key: 'f07c520e32491dd506f7ac16b03b0eb82a451035' }, "Bank Account Info"), h("hr", { key: '43845af4ec6f143653154e301a49c870c688e8cb' }), h("div", { key: '911f450a0e81a7fcf6afb8b54be910da36b068d6', class: "row gy-3" }, h("div", { key: 'afe5dd40139f1098e69736cd08f00792916657b1', class: "col-12" }, h("form-control-text", { key: 'c590065940b5ef4ab5a125962e114d3bb99161e8', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'ad7ac99fdae7bb0108675cf4ea522ae7b0c7b340', class: "col-12" }, h("form-control-text", { key: '4e69debe8b184272c788f0ba206b7e983bb6bba5', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: 'a478bb2330e48935b65d22a42287ab89f94b4808', class: "col-12" }, h("form-control-text", { key: 'c20531fb2c5e903eefeeb62fca5a831cf2542867', name: "account_owner_name", label: "Account Owner Name", defaultValue: bankAccountDefaultValue.account_owner_name, errorText: this.errors.account_owner_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '63325c985d0341888ad9ce34fec48c623e275f55', class: "col-12" }, h("form-control-select", { key: 'b9fc86477dada5413e4a6e18b10e77de620996d9', name: "account_type", label: "Account Type", options: bankAccountTypeOptions, defaultValue: bankAccountDefaultValue.account_type, errorText: this.errors.account_type, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '7d2849185532bb21c85cf8227749469e28fdc102', class: "col-12" }, h("form-control-text", { key: '466a38e94ed054788596ec63bed4b4ffe646dc63', name: "account_number", label: "Account Number", defaultValue: bankAccountDefaultValue.account_number, maxLength: 17, errorText: this.errors.account_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled })), h("div", { key: '1162fae41dfc767cd038a37d7a7581b54dee1a1d', class: "col-12" }, h("form-control-text", { key: '47ffb34b6523d34df02739231b5764418f162fe6', name: "routing_number", label: "Routing Number", defaultValue: bankAccountDefaultValue.routing_number, maxLength: 9, errorText: this.errors.routing_number, inputHandler: this.inputHandler, keyDownHandler: numberOnlyHandler, disabled: this.formDisabled }))))));
164
165
  }
165
166
  }, [0, "justifi-business-bank-account-form-step", {
166
167
  "authToken": [1, "auth-token"],
@@ -3,6 +3,7 @@ import { c as create$3, F as FormController } from './form.js';
3
3
  import { B as BusinessFormStep } from './business-form-types.js';
4
4
  import { a as Business } from './Business.js';
5
5
  import { A as Api } from './Api.js';
6
+ import { c as config } from './config.js';
6
7
  import { B as voidedCheckValidation, C as governmentIdValidation, D as ss4Validation, E as otherDocumentValidation, F as balanceSheetValidation, G as bankStatementValidation, H as profitAndLossStatementValidation } from './schema-validations.js';
7
8
  import { a as EntityDocument, b as EntityDocumentStorage } from './Document.js';
8
9
  import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
@@ -178,7 +179,7 @@ const BusinessDocumentFormStep = /*@__PURE__*/ proxyCustomElement(class Business
178
179
  return 'entities/document';
179
180
  }
180
181
  componentWillLoad() {
181
- this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
182
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
182
183
  if (this.businessId && this.authToken) {
183
184
  this.fetchData();
184
185
  }
@@ -211,7 +212,7 @@ const BusinessDocumentFormStep = /*@__PURE__*/ proxyCustomElement(class Business
211
212
  return (h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
212
213
  }
213
214
  render() {
214
- return (h("form", { key: '4905c2dacbca9b1390fd7e316993be5d33117ee5' }, h("fieldset", { key: '22dc71452b1917be0d9dc237b1ac27739b922e65' }, h("legend", { key: '7c705b2b00a13f7fe690b2e5169dd1809934f892' }, "Document Uploads"), h("p", { key: 'e0ad37456d88496a589c1c79e8e3e9a0fc101577' }, "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."), h("hr", { key: '4ac6afc1c6ce6c6e81d4fcf05ee1c5c58b66f520' }), this.documentsOnFile, h("div", { key: 'bf8aa49a47a2d53f5c0a1179474d8dd885a5a363', class: "d-flex flex-column" }, this.formInputs))));
215
+ return (h("form", { key: '8f2e1d262cd5050b315019a1947b1474eaf995de' }, h("fieldset", { key: 'd022b1c294835e456a9067fcfdbf2b93a33c8ca8' }, h("legend", { key: '522ecbab0489efa6d4294f38f792a28770010f1e' }, "Document Uploads"), h("p", { key: 'b49a6b3a4a7c79b368b20455b4ed4a943f08ec51' }, "Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."), h("hr", { key: '3d8c2f7f5b128b99ceaa501166ae60c490b12378' }), this.documentsOnFile, h("div", { key: 'd2627185483e1be43c0b34d80b1fcfa850decd28', class: "d-flex flex-column" }, this.formInputs))));
215
216
  }
216
217
  }, [0, "justifi-business-document-upload-form-step", {
217
218
  "authToken": [1, "auth-token"],
@@ -22,7 +22,7 @@ const businessClassificationOptions = [
22
22
  value: BusinessClassification.public_company,
23
23
  },
24
24
  {
25
- label: 'Limited',
25
+ label: 'Limited Liability Company (LLC)',
26
26
  value: BusinessClassification.limited,
27
27
  },
28
28
  {
@@ -1,6 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { c as create$3, d as create$7, F as FormController } from './form.js';
3
3
  import { B as BusinessFormStep } from './business-form-types.js';
4
+ import { c as config } from './config.js';
4
5
  import { A as Api } from './Api.js';
5
6
  import './Pagination.js';
6
7
  import './Payment.js';
@@ -94,7 +95,7 @@ const BusinessTermsConditionsFormStep = /*@__PURE__*/ proxyCustomElement(class B
94
95
  };
95
96
  }
96
97
  async componentWillLoad() {
97
- this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
98
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
98
99
  this.formController = new FormController(businessTermsConditionsSchema(this.allowOptionalFields));
99
100
  if (this.businessId && this.authToken) {
100
101
  this.fetchData();
@@ -130,7 +131,7 @@ const BusinessTermsConditionsFormStep = /*@__PURE__*/ proxyCustomElement(class B
130
131
  });
131
132
  }
132
133
  render() {
133
- return (h("form", { key: 'e7eb6730d5b975ae91057a5218ed062a23d3f0ef' }, h("fieldset", { key: '9dc69375e2c988dc11c4e76f757bde1fe18febea' }, h("legend", { key: '0202cf805071e011f0c087f244c0a43191632b7c' }, "Terms and Conditions"), h("hr", { key: 'a38e7b058d4269406c929abf4f57ddcdc16aa4fd' }), h("justifi-business-terms-conditions-text", { key: '8b87b016198c87c3c52c3e280353489573aff90c' }), h("br", { key: '6c7107e3975a40e44ba4375025ebea0e811630fe' }), h("div", { key: '3667f0455c95bc0d22472598eb2ca3cd7093b9d5', class: "row-gy-3" }, h("div", { key: '1169946dc47b48cd2f8f1a2adfa9ff9b149447f1', class: "col-12" }, h("form-control-checkbox", { key: '66942238443b1e27bb3902ddeba0f6fce973b319', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
134
+ return (h("form", { key: '29b946b553d7a8011bee8f1997888f04b51897b3' }, h("fieldset", { key: 'c6e6c2577a66e58de8aabaac572cd7dab0a609b2' }, h("legend", { key: '4cf7e19049ee60807ffc5cbecbc8b87e9725590a' }, "Terms and Conditions"), h("hr", { key: 'b0d0bb46987a864a20a419eb0b2338fd57d07765' }), h("justifi-business-terms-conditions-text", { key: 'c936f2205bf123266d8eed2f12194eb2d8feb056' }), h("br", { key: 'e4f38ba5341c5fcf5938c3637905612e02bc7077' }), h("div", { key: '163401aaaee6e037d94182e5005625055bda66c5', class: "row-gy-3" }, h("div", { key: '3925d9b802f62e16cc41407170593b4b9a676bd9', class: "col-12" }, h("form-control-checkbox", { key: 'd86e00bfebe915d84a41486be34cec3555598d92', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
134
135
  }
135
136
  }, [0, "justifi-business-terms-conditions-form-step", {
136
137
  "authToken": [1, "auth-token"],
@@ -1,27 +1,28 @@
1
+ import { c as config } from './config.js';
1
2
  import { A as Api } from './Api.js';
2
3
 
3
4
  class BusinessService {
4
5
  async fetchBusiness(businessId, authToken) {
5
6
  const endpoint = `entities/business/${businessId}`;
6
- return Api({ authToken, apiOrigin: undefined }).get(endpoint);
7
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
7
8
  }
8
9
  async patchBusiness(authToken, businessId, payload) {
9
10
  const endpoint = `entities/business/${businessId}`;
10
- return Api({ authToken, apiOrigin: undefined }).patch(endpoint, payload);
11
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).patch(endpoint, payload);
11
12
  }
12
13
  }
13
14
  class IdentityService {
14
15
  async fetchIdentity(identityId, authToken) {
15
16
  const endpoint = `entities/identity/${identityId}`;
16
- return Api({ authToken, apiOrigin: undefined }).get(endpoint);
17
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
17
18
  }
18
19
  async patchIdentity(authToken, identityId, payload) {
19
20
  const endpoint = `entities/identity/${identityId}`;
20
- return Api({ authToken, apiOrigin: undefined }).patch(endpoint, payload);
21
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).patch(endpoint, payload);
21
22
  }
22
23
  async postIdentity(authToken, payload) {
23
24
  const endpoint = `entities/identity`;
24
- return Api({ authToken, apiOrigin: undefined }).post(endpoint, payload);
25
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
25
26
  }
26
27
  }
27
28
 
@@ -1,5 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { a as formatCurrency } from './utils2.js';
3
+ import { c as config } from './config.js';
3
4
  import { a as ComponentErrorSeverity } from './ComponentError.js';
4
5
  import { i as insuranceValuesOn, v as validateInsuranceValues, a as insuranceValues } from './insurance-state.js';
5
6
  import { B as Button } from './button.js';
@@ -57,7 +58,7 @@ const CheckoutCore = /*@__PURE__*/ proxyCustomElement(class CheckoutCore extends
57
58
  });
58
59
  this.renderState = 'error';
59
60
  };
60
- this.iframeOrigin = undefined;
61
+ this.iframeOrigin = config.iframeOrigin;
61
62
  this.authToken = undefined;
62
63
  this.getCheckout = undefined;
63
64
  this.complete = undefined;
@@ -77,7 +78,6 @@ const CheckoutCore = /*@__PURE__*/ proxyCustomElement(class CheckoutCore extends
77
78
  this.paymentMethodOptionsRef.fillBillingForm(fields);
78
79
  }
79
80
  componentWillLoad() {
80
- console.log('CheckoutCore: componentWillLoad iframeOrigin', this, this.iframeOrigin);
81
81
  if (this.getCheckout) {
82
82
  this.fetchData();
83
83
  // Refresh the checkout data when insurance is added or removed
@@ -154,7 +154,7 @@ const CheckoutCore = /*@__PURE__*/ proxyCustomElement(class CheckoutCore extends
154
154
  return (h("section", null, h("div", { class: !this.isLoading && 'visually-hidden' }, h(Skeleton, { height: "24px" })), h("div", { class: this.isLoading && 'visually-hidden' }, h("div", { class: "jfi-payment-description" }, (_a = this.checkout) === null || _a === void 0 ? void 0 : _a.payment_description), h("div", { class: "jfi-payment-total" }, h("span", { class: "jfi-payment-total-label" }, "Total"), "\u00A0", h("span", { class: "jfi-payment-total-amount" }, formatCurrency(+((_b = this.checkout) === null || _b === void 0 ? void 0 : _b.total_amount)))))));
155
155
  }
156
156
  render() {
157
- return (h(StyledHost, { key: '991ae6970e426028ace0d1e8327119bc197639b0' }, h("div", { key: '1e57ee21429b494240e644235a2d5815ced99d43', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '70023ce10dea6ff8d5bd8e30c7d474f774682c65', class: "col-12" }, h("h2", { key: '8b09b03c1998e4d60e174fefb3d196e48d50b84a', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), h("div", { key: 'e3bbdaaaf010451a31fe9c60bdf81e89bdd142f2', class: "col-12" }, h("slot", { key: '442a01184960f42b5e1f6694798633d3e7219bf5', name: "insurance" })), h("div", { key: '716e26e3dc675e9d72a3a992b1cb212ce48ffb1a', class: "col-12 mt-4" }, h("h2", { key: '762cfc8549b20d16583d0fd8748bde8035042c00', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { key: 'f07d716a87f3e2bd44471f7e93f7af5f5d20440e', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { key: '1156291dd748b90d64a08916ffb98c3123132175', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: 'a5bd142a1c72c5abb29338a2cf24c180119d4ea7', class: "col-12" }, h("div", { key: '5a94ed9d54fd3dd24cfe3e34c23ee3c4995eca6d', class: "d-flex justify-content-end" }, h(Button, { key: '7fce3940d8fe562aa7c23e38201b5d2924157288', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
157
+ return (h(StyledHost, { key: 'e322f280a57bb0baab61174bca21f0a7e9afa3c1' }, h("div", { key: '4ad8cc4f6243de8ddc03fb184ac4e960a04280eb', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '7f13e26b36790558c8eb455f4d5ab3d0952b4e62', class: "col-12" }, h("h2", { key: 'c5e4b6fc30f51821537915f3ce5d4830ed3f8da9', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), h("div", { key: '164b7a2cc51d871ad4a92044d0f7240e376bd4b3', class: "col-12" }, h("slot", { key: 'a98b7c6a0bb9e4d1b102e832ee7aa43218432298', name: "insurance" })), h("div", { key: '415d3aac64b4190f54d785695c50a92ce02a76c2', class: "col-12 mt-4" }, h("h2", { key: '6d7f0df1165ec359877459a8bada855ef353c3b3', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { key: 'be8495d792cf065d2cbc7d3b46648c887951e313', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { key: '5c9d8baffb50b0b10e9911463f307581cad7619c', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: '9351832b69a8e5285cae35534299b51193248719', class: "col-12" }, h("div", { key: '5b0e382836c858369caf93a287272922024ce72b', class: "d-flex justify-content-end" }, h(Button, { key: 'f76d37000f7b026e97f083e7cf817bed8f84f34f', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
158
158
  }
159
159
  static get style() { return JustifiCheckoutCoreStyle0 + JustifiCheckoutCoreStyle1; }
160
160
  }, [1, "justifi-checkout-core", {
@@ -0,0 +1,13 @@
1
+ const config = {
2
+ iframeOrigin: 'https://js.justifi.ai/v2',
3
+ proxyApiOrigin: 'https://wc-proxy.justifi.ai',
4
+ proxyAuthToken: 'eyJraWQiOiJqdXN0aWZpLWUyNDgyMmU3ODE1MmEzZjRkMjU1IiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJpc3MiOiJodHRwczovL2F1dGguanVzdGlmaS5haS8iLCJhenAiOiJvYXNfMmlsWHBqOHQ2WVlEQ0xWU0FiVFczMiIsInN1YiI6Im9hc18yaWxYcGo4dDZZWURDTFZTQWJUVzMyQHNlc3Npb25zIiwiYXVkIjoiaHR0cHM6Ly9hcGkuanVzdGlmaS5haS92MSIsImd0eSI6ImNsaWVudC1jcmVkZW50aWFscyIsInBlcm1pc3Npb25zIjpbeyJyb2xlIjoicmVhZDphY2NvdW50IiwicmVzb3VyY2VfaWQiOiJhY2NfNUV0OWlYclNTQVpSMktTb3VRR0FXaSJ9LHsicm9sZSI6InJlYWQ6YnVzaW5lc3MiLCJyZXNvdXJjZV9pZCI6ImJpel8zYmg2OWJxMXJrM2RtWE5vQUtWb251In1dLCJleHAiOjE3MTE1NTk0MTQsImlhdCI6MTcwMzc4MzQxNCwicGxhdGZvcm1fYWNjb3VudF9pZCI6ImFjY18zcmVOYjRhTll5MmlXRFpRVmN6bXg0In0.oPOoDYxzrnpE8PRUaz-FCU4KqnSuNbFTeDkl3AtMscjUkIctP1OIFh-ZGBjbH5eVH5noXCbaiin0j92dS7jx4gLpxuYT2Q8gpZbuIsT7fa58elvGeRkUUJ-AC5ueZxlv90yPWMm0OIbyrV7XZhuwYyKbV-ZczEbl2JpvBMe40CM-LdClQV66d_-Kw9a23SabBVfYgP5V-5OsagOIESvzZoO-27tGlNkV2a-hxqddDCOZv0HvRYAtp5S7EQrmRdEBu5gCNbf1eRFG424hxZUFVr2LdetYuKQLxJjDdUjf86ZwEUecrEaDSupiN1VC3CitdOwBVf6-R_N0VpN4VLVD5g',
5
+ exampleAccountId: 'acc_5Et9iXrSSAZR2KSouQGAWi',
6
+ exampleBusinessId: 'biz_3bh69bq1rk3dmXNoAKVonu',
7
+ examplePaymentId: 'py_1NNeEnf4FbelxDCQN2RHcE',
8
+ examplePayoutId: 'po_17745yESnHyEgWNeunmhmR',
9
+ privateApiOrigin: '',
10
+ privateAuthToken: '',
11
+ };
12
+
13
+ export { config as c };
@@ -2,22 +2,23 @@ import { A as Api } from './Api.js';
2
2
  import './Pagination.js';
3
3
  import './Payment.js';
4
4
  import './Payout.js';
5
+ import { c as config } from './config.js';
5
6
  import { a as ComponentErrorSeverity } from './ComponentError.js';
6
7
  import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
7
8
 
8
9
  class PayoutService {
9
10
  async fetchPayouts(accountId, authToken, params) {
10
- const api = Api({ authToken, apiOrigin: undefined });
11
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
11
12
  const endpoint = `account/${accountId}/payouts`;
12
13
  return api.get(endpoint, params);
13
14
  }
14
15
  async fetchPayout(payoutId, authToken) {
15
- const api = Api({ authToken, apiOrigin: undefined });
16
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
16
17
  const endpoint = `payouts/${payoutId}`;
17
18
  return api.get(endpoint);
18
19
  }
19
20
  async fetchCSV(payoutId, authToken) {
20
- const api = Api({ authToken, apiOrigin: undefined });
21
+ const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
21
22
  const endpoint = `reports/payouts/${payoutId}`;
22
23
  return api.get(endpoint);
23
24
  }
@@ -1,4 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { c as config } from './config.js';
2
3
  import { J as JustifiAnalytics } from './Analytics.js';
3
4
  import { d as defineCustomElement$2 } from './payment-method-form.js';
4
5
 
@@ -11,7 +12,7 @@ const BankAccountForm = /*@__PURE__*/ proxyCustomElement(class BankAccountForm e
11
12
  this.bankAccountFormTokenized = createEvent(this, "bankAccountFormTokenize", 7);
12
13
  this.bankAccountFormValidated = createEvent(this, "bankAccountFormValidate", 7);
13
14
  this.validationMode = undefined;
14
- this.iframeOrigin = undefined;
15
+ this.iframeOrigin = config.iframeOrigin;
15
16
  this.internalStyleOverrides = undefined;
16
17
  }
17
18
  readyHandler(event) {
@@ -63,7 +64,7 @@ const BankAccountForm = /*@__PURE__*/ proxyCustomElement(class BankAccountForm e
63
64
  return this.childRef.resize();
64
65
  }
65
66
  render() {
66
- return (h("justifi-payment-method-form", { key: '646e392c1a9ed38e73780ed6a01b6f019767794c', ref: el => {
67
+ return (h("justifi-payment-method-form", { key: 'e2fa64d199a6c550329c9797a6951335e7c12bc6', ref: el => {
67
68
  if (el) {
68
69
  this.childRef = el;
69
70
  }
@@ -9,6 +9,7 @@ import './Pagination.js';
9
9
  import './Payment.js';
10
10
  import './Payout.js';
11
11
  import { a as parseBusiness } from './payload-parsers.js';
12
+ import { c as config } from './config.js';
12
13
  import { a as BusinessFormServerErrors, b as BusinessFormClickActions } from './business-form-types.js';
13
14
  import { a as Business } from './Business.js';
14
15
  import { J as JustifiAnalytics } from './Analytics.js';
@@ -94,7 +95,7 @@ const BusinessForm = /*@__PURE__*/ proxyCustomElement(class BusinessForm extends
94
95
  if (!this.businessId)
95
96
  console.error(missingBusinessIdMessage);
96
97
  this.formController = new FormController(businessFormSchema);
97
- this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
98
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
98
99
  this.fetchData();
99
100
  }
100
101
  disconnectedCallback() {
@@ -122,7 +123,7 @@ const BusinessForm = /*@__PURE__*/ proxyCustomElement(class BusinessForm extends
122
123
  this.instantiateBusiness(response.data);
123
124
  }
124
125
  render() {
125
- return (h(StyledHost, { key: '8fb79d577c13246fcf3ec1ee8460713fee07d01a', exportparts: "label,input,input-invalid" }, h("form", { key: '1fe23a8cc8714aee257b6c73c6b7b096d684ea1c', onSubmit: this.validateAndSubmit }, h("div", { key: 'e501f6963ed5bfd9eb80f67df13108289db6eba7', class: "row gap-3" }, h("h1", { key: 'f81f22704bda1480c467b872cd3fd309505b0e94' }, this.title), h("form-alert", { key: '15b2ff75d4db6447bfd1892542e8e972ede0ac7e', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'fd6a375fd187426940df3f28262be7aec3fedbe5', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'd16818a2124cb04dd5a5e84ea40639991fb04a80', formController: this.formController })), h("div", { key: 'd48b04718cf938484cf65cc956bf798f44ed17a7', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '3a2bc6babfe8a0a265b2a7f9e7bea1abebd3eb43', formController: this.formController })), h("div", { key: '5c4d5d1fa1e2aba32f42c2bb9e97c0d796ecf709', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: 'c888fb627380d05302cb106c5642e39b1f2652fa', formController: this.formController })), h("div", { key: '623e94d84976cfe29f4501a781c750d1bb537605', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '594c893c0976b58a309679a031f6f1c787e66f48', formController: this.formController })), h("div", { key: '9fbc36ed183b1ebf171da14276092195c7aaf3a9', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: 'a60da6fdda5193d3c41c589b00b040c05ae425ac', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
126
+ return (h(StyledHost, { key: '60989d23631d6a02e9a25313dd7297a61063a09c', exportparts: "label,input,input-invalid" }, h("form", { key: 'd961174a3e93ed505012919a0e7e036bd61a4902', onSubmit: this.validateAndSubmit }, h("div", { key: '2be81a7f0e3b568266ee66127f2b537d57c36762', class: "row gap-3" }, h("h1", { key: 'eefc257f687ff24cebf13155a571398e3ddbcabd' }, this.title), h("form-alert", { key: '173d3ee84f5a952a51884ab5f3818c768fcc9b08', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'bfd7fd73aca630fcf56f468d912759d5a96de172', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'dc15f46a28301c03ccd884ff09740e87d67b2e5a', formController: this.formController })), h("div", { key: 'b4cd6ba605ea28a7692cc561951bb69ad93bb8f5', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '670f320ff6d1ba86a34f5b42dd97a5d38e96c209', formController: this.formController })), h("div", { key: '0afb9d18e6ecb951cefda4df5dd133d31359cecc', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: '6953718bea9525126db35adc44a9c8754234816a', formController: this.formController })), h("div", { key: 'f88b576b9159cd43f17d5a63c26acc4b53dfa9a0', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '4353116715c7f7b906c3c0eae322df04703fd8e5', formController: this.formController })), h("div", { key: 'd626b0738ce71f7529fa270d7a2c479f517e48a2', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: '9469e132726c9bd02b8a1f4c4ca1a4c2a9000c1b', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
126
127
  }
127
128
  static get style() { return JustifiBusinessFormStyle0; }
128
129
  }, [1, "justifi-business-form", {
@@ -1,4 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { c as config } from './config.js';
2
3
  import { J as JustifiAnalytics } from './Analytics.js';
3
4
  import { d as defineCustomElement$2 } from './payment-method-form.js';
4
5
 
@@ -11,7 +12,7 @@ const CardForm = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLEle
11
12
  this.cardFormTokenized = createEvent(this, "cardFormTokenize", 7);
12
13
  this.cardFormValidated = createEvent(this, "cardFormValidate", 7);
13
14
  this.validationMode = undefined;
14
- this.iframeOrigin = undefined;
15
+ this.iframeOrigin = config.iframeOrigin;
15
16
  this.singleLine = false;
16
17
  this.internalStyleOverrides = undefined;
17
18
  }
@@ -64,7 +65,7 @@ const CardForm = /*@__PURE__*/ proxyCustomElement(class CardForm extends HTMLEle
64
65
  return this.childRef.resize();
65
66
  }
66
67
  render() {
67
- return (h("justifi-payment-method-form", { key: 'cc0ad5d8a262ff5c8422d247caed469a8dea3488', ref: el => {
68
+ return (h("justifi-payment-method-form", { key: '58843b8a47f35d716845de11f6a66d8960bc0776', ref: el => {
68
69
  if (el) {
69
70
  this.childRef = el;
70
71
  }
@@ -5,6 +5,7 @@ import { A as Api } from './Api.js';
5
5
  import './Pagination.js';
6
6
  import './Payment.js';
7
7
  import './Payout.js';
8
+ import { c as config } from './config.js';
8
9
  import { J as JustifiAnalytics } from './Analytics.js';
9
10
  import { d as defineCustomElement$d } from './form-control-error-text2.js';
10
11
  import { d as defineCustomElement$c } from './form-control-help-text2.js';
@@ -76,7 +77,7 @@ const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ pa
76
77
  class CheckoutService {
77
78
  async fetchCheckout(authToken, checkoutId) {
78
79
  const endpoint = `checkouts/${checkoutId}`;
79
- return Api({ authToken, apiOrigin: undefined }).get(endpoint);
80
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
80
81
  }
81
82
  async complete(authToken, checkoutId, payment) {
82
83
  const endpoint = `checkouts/${checkoutId}/complete`;
@@ -86,7 +87,7 @@ class CheckoutService {
86
87
  if (payment.payment_token) {
87
88
  payload.payment_token = payment.payment_token;
88
89
  }
89
- return Api({ authToken, apiOrigin: undefined }).post(endpoint, JSON.stringify(payload));
90
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
90
91
  }
91
92
  }
92
93
 
@@ -1,4 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import { c as config } from './config.js';
2
3
  import { A as Api } from './Api.js';
3
4
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
4
5
  import { g as getErrorMessage, a as getErrorCode } from './utils3.js';
@@ -8,7 +9,7 @@ import { d as defineCustomElement$2 } from './gross-payment-chart-core2.js';
8
9
 
9
10
  class ReportsService {
10
11
  async fetchGrossVolumeChartData(accountId, authToken) {
11
- const api = Api({ authToken: authToken, apiOrigin: undefined });
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
  }
@@ -3,6 +3,7 @@ import './Pagination.js';
3
3
  import { P as PaymentMethodTypes } from './Payment.js';
4
4
  import './Payout.js';
5
5
  import { l as loadFontsOnParent } from './utils2.js';
6
+ import { c as config } from './config.js';
6
7
  import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
7
8
  import { g as getErrorMessage } from './utils3.js';
8
9
  import { J as JustifiAnalytics } from './Analytics.js';
@@ -124,15 +125,15 @@ const PaymentForm = /*@__PURE__*/ proxyCustomElement(class PaymentForm extends H
124
125
  }
125
126
  }
126
127
  render() {
127
- 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: undefined, ref: el => {
128
+ 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 => {
128
129
  if (el) {
129
130
  this.paymentMethodFormRef = el;
130
131
  }
131
- } })), h("div", { key: '433a8ac42c0eec9180e37da222da1dbb1112e48e', class: "col-12" }, h("justifi-billing-form", { key: '4f24f1c8b4083e2d9e5bb2272d32d20bb5cc225d', legend: "Billing Info", ref: el => {
132
+ } })), h("div", { key: '29f15f1cece3e07a569e514d08bf9996405699c6', class: "col-12" }, h("justifi-billing-form", { key: '9928924cc29bfa5c5e46ada294cb26da0c1d222b', legend: "Billing Info", ref: el => {
132
133
  if (el) {
133
134
  this.billingFormRef = el;
134
135
  }
135
- } })), 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')))));
136
+ } })), 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')))));
136
137
  }
137
138
  static get style() { return JustifiPaymentFormStyle0; }
138
139
  }, [1, "justifi-payment-form", {
@@ -3,6 +3,7 @@ import { J as JustifiAnalytics } from './Analytics.js';
3
3
  import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError.js';
4
4
  import { m as makeGetBusiness, e as makePostProvisioning } from './payment-provisioning-actions.js';
5
5
  import { B as BusinessService } from './business.service.js';
6
+ import { c as config } from './config.js';
6
7
  import { A as Api } from './Api.js';
7
8
  import { d as defineCustomElement$y } from './form-control-checkbox2.js';
8
9
  import { d as defineCustomElement$x } from './form-control-date2.js';
@@ -43,9 +44,9 @@ class ProvisionService {
43
44
  const endpoint = `entities/provisioning`;
44
45
  const payload = {
45
46
  business_id: businessId,
46
- product_category: product,
47
+ product_category: product
47
48
  };
48
- return Api({ authToken, apiOrigin: undefined }).post(endpoint, JSON.stringify(payload));
49
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
49
50
  }
50
51
  }
51
52
 
@@ -4,6 +4,7 @@ import { A as Api } from './Api.js';
4
4
  import './Pagination.js';
5
5
  import './Payment.js';
6
6
  import './Payout.js';
7
+ import { c as config } from './config.js';
7
8
  import { C as CURRENCY_MASK } from './form-input-masks.js';
8
9
  import { S as StyledHost } from './styled-host.js';
9
10
  import { d as defineCustomElement$5 } from './form-control-error-text2.js';
@@ -95,11 +96,11 @@ const RefundForm = /*@__PURE__*/ proxyCustomElement(class RefundForm extends HTM
95
96
  if (!this.authToken) {
96
97
  console.warn('Warning: Missing auth-token.');
97
98
  }
98
- this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
99
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
99
100
  }
100
101
  render() {
101
102
  var _a;
102
- 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))))));
103
+ 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))))));
103
104
  }
104
105
  static get style() { return JustifiRefundFormStyle0; }
105
106
  }, [1, "justifi-refund-form", {