@justifi/webcomponents 4.19.1-rc-8 → 4.19.1-rc-10

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 (148) hide show
  1. package/dist/cjs/{Analytics-e0556436.js → Analytics-3b027794.js} +4 -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-66c06c19.js} +6 -5
  5. package/dist/cjs/config-05767cba.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-10cc9246.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 -2
  16. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -4
  17. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +7 -3
  18. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +9 -8
  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 +5 -4
  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-708bf5ef.js → package-22afd806.js} +2 -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-598a2dec.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 +3 -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 +2 -1
  40. package/dist/collection/api/services/reports.service.js +5 -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 -3
  49. package/dist/collection/components/checkout/new-payment-method.js +4 -3
  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-6591d732.js → Analytics-529b3c8e.js} +4 -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-595d3ac4.js} +6 -5
  61. package/dist/esm/config-27764a9d.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-acc4fe08.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 -2
  72. package/dist/esm/justifi-checkout.entry.js +5 -4
  73. package/dist/esm/justifi-gross-payment-chart.entry.js +7 -3
  74. package/dist/esm/justifi-new-payment-method_4.entry.js +9 -8
  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 +5 -4
  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/{webcomponents/p-b3520d11.js → esm/package-345be07e.js} +2 -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-6361d07d.js} +3 -2
  88. package/dist/esm/{schema-validations-a83ff220.js → schema-validations-2f4fdebb.js} +1 -1
  89. package/dist/module/Analytics.js +3 -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 -2
  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 +5 -1
  103. package/dist/module/justifi-payment-form.js +4 -3
  104. package/dist/module/justifi-payment-provisioning.js +2 -1
  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 -2
  108. package/dist/module/package.js +2 -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/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +11 -0
  114. package/dist/webcomponents/{p-18f47a5e.entry.js → p-01a81c92.entry.js} +5 -4
  115. package/dist/webcomponents/{p-3fd13ca3.js → p-04a0dbb6.js} +1 -1
  116. package/dist/webcomponents/{p-a5c5821e.entry.js → p-08fb1bee.entry.js} +3 -2
  117. package/dist/webcomponents/{p-1a7340ef.entry.js → p-13220ac5.entry.js} +4 -3
  118. package/dist/webcomponents/{p-890088fc.entry.js → p-1c5a5255.entry.js} +9 -8
  119. package/dist/webcomponents/{p-3aef4459.js → p-1efcb4e1.js} +4 -2
  120. package/dist/webcomponents/{p-89887332.js → p-241b0ed9.js} +1 -1
  121. package/dist/webcomponents/{p-fdbef002.entry.js → p-2c639121.entry.js} +5 -4
  122. package/dist/webcomponents/{p-6999bd05.entry.js → p-2d583519.entry.js} +6 -5
  123. package/dist/webcomponents/{p-85fc69e5.js → p-46f679a9.js} +1 -1
  124. package/dist/webcomponents/{p-a5a225d9.entry.js → p-4750c590.entry.js} +1 -1
  125. package/dist/webcomponents/{p-5cb3f0b2.entry.js → p-52786c5d.entry.js} +5 -4
  126. package/dist/webcomponents/p-5a62fca2.js +13 -0
  127. package/dist/webcomponents/{p-865f883a.entry.js → p-6145fa2c.entry.js} +4 -3
  128. package/dist/webcomponents/{p-3e9ef4a8.js → p-66db48be.js} +6 -5
  129. package/dist/webcomponents/{p-a6d04afc.js → p-6e7d09e4.js} +4 -3
  130. package/dist/webcomponents/{p-5f835b89.entry.js → p-7930b031.entry.js} +4 -4
  131. package/dist/webcomponents/{p-cb26f708.js → p-7b39f49e.js} +3 -2
  132. package/dist/webcomponents/{p-c636f563.entry.js → p-91d278c9.entry.js} +10 -9
  133. package/dist/webcomponents/{p-035f33d8.entry.js → p-9a57c210.entry.js} +5 -4
  134. package/dist/webcomponents/{p-f39b87b4.entry.js → p-abe50330.entry.js} +4 -3
  135. package/dist/webcomponents/{p-012288ad.entry.js → p-b582eb3c.entry.js} +4 -3
  136. package/dist/webcomponents/{p-7a9102e1.entry.js → p-c4a17a0f.entry.js} +5 -4
  137. package/dist/webcomponents/{p-93056176.entry.js → p-c4a291fc.entry.js} +5 -4
  138. package/dist/webcomponents/{p-7256fd96.entry.js → p-c63eb94f.entry.js} +1 -1
  139. package/dist/webcomponents/{p-3eca9d31.entry.js → p-c7eec8cd.entry.js} +7 -3
  140. package/dist/webcomponents/{p-258b1ee2.entry.js → p-d14ca2eb.entry.js} +3 -2
  141. package/dist/webcomponents/{p-ba5fae28.js → p-d25c2f12.js} +1 -1
  142. package/dist/webcomponents/{p-2e28e46b.entry.js → p-e7c48797.entry.js} +4 -3
  143. package/dist/{esm/package-701844d2.js → webcomponents/p-e9023210.js} +2 -2
  144. package/dist/webcomponents/{p-70a2aa74.entry.js → p-ef725123.entry.js} +2 -2
  145. package/dist/webcomponents/{p-54b3332b.entry.js → p-ffccad98.entry.js} +9 -8
  146. package/dist/webcomponents/webcomponents.esm.js +1 -1
  147. package/package.json +2 -2
  148. package/dist/{globals.d.ts → types/global.d.ts} +1 -1
@@ -1,5 +1,6 @@
1
1
  import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
2
2
  import { a as formatCurrency } from './utils2.js';
3
+ import { c as config } from './config.js';
3
4
 
4
5
  const sezzleLogo = (h("img", { class: "sezzle-smart-button-logo-img", src: "https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg", alt: "Sezzle", style: {
5
6
  display: 'inline',
@@ -42,7 +43,7 @@ const SezzlePaymentMethod = /*@__PURE__*/ proxyCustomElement(class SezzlePayment
42
43
  this.sezzleCheckout = checkout;
43
44
  this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
44
45
  };
45
- this.iframeOrigin = undefined;
46
+ this.iframeOrigin = config.iframeOrigin;
46
47
  this.bnpl = undefined;
47
48
  this.clientId = undefined;
48
49
  this.accountId = undefined;
@@ -68,7 +69,7 @@ const SezzlePaymentMethod = /*@__PURE__*/ proxyCustomElement(class SezzlePayment
68
69
  }
69
70
  render() {
70
71
  var _a, _b, _c, _d, _e;
71
- 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))))))));
72
+ 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))))))));
72
73
  }
73
74
  }, [0, "justifi-sezzle-payment-method", {
74
75
  "iframeOrigin": [1025, "iframe-origin"],
@@ -0,0 +1,11 @@
1
+ export declare const config: {
2
+ iframeOrigin: string;
3
+ proxyApiOrigin: string;
4
+ proxyAuthToken: string;
5
+ exampleAccountId: string;
6
+ exampleBusinessId: string;
7
+ examplePaymentId: string;
8
+ examplePayoutId: string;
9
+ privateApiOrigin: string;
10
+ privateAuthToken: string;
11
+ };
@@ -1,6 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
2
- import { J as JustifiAnalytics } from './p-3aef4459.js';
3
- import './p-b3520d11.js';
2
+ import { J as JustifiAnalytics } from './p-1efcb4e1.js';
3
+ import { c as config } from './p-5a62fca2.js';
4
+ import './p-e9023210.js';
4
5
  import './p-29c0b182.js';
5
6
 
6
7
  const BankAccountForm = class {
@@ -11,7 +12,7 @@ const BankAccountForm = class {
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 = class {
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
  }
@@ -1,5 +1,5 @@
1
1
  import { c as create$3 } from './p-2eab3c90.js';
2
- import { h as businessNameValidation, w as websiteUrlValidation, e as emailValidation, d as phoneValidation, j as doingBusinessAsValidation, k as businessClassificationValidation, m as industryValidation, t as taxIdValidation, n as dateOfIncorporationValidation, r as revenueValidation, o as paymentVolumeValidation, q as whenServiceReceivedValidation, u as recurringPaymentsValidation, v as recurringPaymentsPercentageValidation, x as seasonalBusinessValidation, y as otherPaymentDetailsValidation } from './p-89887332.js';
2
+ import { h as businessNameValidation, w as websiteUrlValidation, e as emailValidation, d as phoneValidation, j as doingBusinessAsValidation, k as businessClassificationValidation, m as industryValidation, t as taxIdValidation, n as dateOfIncorporationValidation, r as revenueValidation, o as paymentVolumeValidation, q as whenServiceReceivedValidation, u as recurringPaymentsValidation, v as recurringPaymentsPercentageValidation, x as seasonalBusinessValidation, y as otherPaymentDetailsValidation } from './p-241b0ed9.js';
3
3
 
4
4
  const businessCoreInfoSchema = (allowOptionalFields) => {
5
5
  const schema = create$3({
@@ -6,6 +6,7 @@ import './p-df21aaad.js';
6
6
  import './p-e3fab0e2.js';
7
7
  import { C as CURRENCY_MASK } from './p-525db3e8.js';
8
8
  import { S as StyledHost } from './p-ba4bae6f.js';
9
+ import { c as config } from './p-5a62fca2.js';
9
10
 
10
11
  const RefundFormSchema = create$3().shape({
11
12
  amount: create$5()
@@ -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;
@@ -1,14 +1,15 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
2
- import { P as PaymentService } from './p-cb26f708.js';
2
+ import { P as PaymentService } from './p-7b39f49e.js';
3
3
  import './p-56f6ce4c.js';
4
4
  import { P as Payment } from './p-df21aaad.js';
5
5
  import './p-e3fab0e2.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './p-14c91ffd.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.js';
8
8
  import { E as ErrorState } from './p-dce846bf.js';
9
- import { J as JustifiAnalytics } from './p-3aef4459.js';
9
+ import { J as JustifiAnalytics } from './p-1efcb4e1.js';
10
10
  import './p-29c0b182.js';
11
- import './p-b3520d11.js';
11
+ import './p-5a62fca2.js';
12
+ import './p-e9023210.js';
12
13
 
13
14
  const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
14
15
  var _a;
@@ -1,4 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment } from './p-fad19d75.js';
2
+ import { c as config } from './p-5a62fca2.js';
2
3
  import { a as PaymentMethodTypes } from './p-df21aaad.js';
3
4
  import { g as snakeToCamel, f as formatCurrency } from './p-83125497.js';
4
5
 
@@ -13,7 +14,7 @@ const NewPaymentMethod = class {
13
14
  this.onPaymentMethodOptionClick = () => {
14
15
  this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
15
16
  };
16
- this.iframeOrigin = undefined;
17
+ this.iframeOrigin = config.iframeOrigin;
17
18
  this.authToken = undefined;
18
19
  this.accountId = undefined;
19
20
  this.paymentMethodOption = undefined;
@@ -76,7 +77,7 @@ const NewPaymentMethod = class {
76
77
  }
77
78
  render() {
78
79
  var _a, _b, _c, _d;
79
- return (h("div", { key: 'd597ba8b0ac2a650a14a79d002a91ef3edf604a4', class: "payment-method" }, h("div", { key: 'a287f7ffd480f17f0f1093d71b9d02fe3db39e0f', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: 'f53d08d048cc242414fcf6794614ad2334db81bb', 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: '01712a80a30df19a7b540434532cffb4cb3b61e8', 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));
80
+ return (h("div", { key: '8da79c0064fe7205cc64cb16e4cb16310eb92768', class: "payment-method" }, h("div", { key: 'b56acfbbcd009a99c453f86bb2bafb581fa30c4e', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '8d0d317124fcf4c98b709cc02d3f74deae5e7447', 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: 'd2cc7f9cc6b695dad77e8980fca4e82fdc42cb9c', 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));
80
81
  }
81
82
  };
82
83
 
@@ -119,7 +120,7 @@ const PaymentMethodOptions = class {
119
120
  this.insuranceToggled = undefined;
120
121
  this.authToken = undefined;
121
122
  this.accountId = undefined;
122
- this.iframeOrigin = undefined;
123
+ this.iframeOrigin = config.iframeOrigin;
123
124
  this.savedPaymentMethods = [];
124
125
  this.paymentAmount = undefined;
125
126
  this.selectedPaymentMethodId = undefined;
@@ -165,7 +166,7 @@ const PaymentMethodOptions = class {
165
166
  }
166
167
  render() {
167
168
  var _a;
168
- return (h(Host, { key: '7ee40a1bdc9ec15596e870b48cbe7b6bbc20537c' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
169
+ return (h(Host, { key: '86e309b90ab00f530dd803b00e5aab511f92300f' }, (_a = this.paymentMethodOptions) === null || _a === void 0 ? void 0 : _a.map((paymentMethodOption) => {
169
170
  const newCard = paymentMethodOption.id === PaymentMethodTypes.card;
170
171
  const newBankAccount = paymentMethodOption.id === PaymentMethodTypes.bankAccount;
171
172
  const isSelected = this.selectedPaymentMethodId === paymentMethodOption.id;
@@ -206,7 +207,7 @@ const SavedPaymentMethod = class {
206
207
  this.onPaymentMethodOptionClick = () => {
207
208
  this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
208
209
  };
209
- this.iframeOrigin = undefined;
210
+ this.iframeOrigin = config.iframeOrigin;
210
211
  this.paymentMethodOption = undefined;
211
212
  this.isSelected = undefined;
212
213
  }
@@ -220,7 +221,7 @@ const SavedPaymentMethod = class {
220
221
  ;
221
222
  render() {
222
223
  var _a, _b, _c, _d, _e;
223
- 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 :
224
+ 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 :
224
225
  _e.acct_last_four)))));
225
226
  }
226
227
  };
@@ -265,7 +266,7 @@ const SezzlePaymentMethod = class {
265
266
  this.sezzleCheckout = checkout;
266
267
  this.installmentPlan = this.sezzleCheckout.getInstallmentPlan(amount);
267
268
  };
268
- this.iframeOrigin = undefined;
269
+ this.iframeOrigin = config.iframeOrigin;
269
270
  this.bnpl = undefined;
270
271
  this.clientId = undefined;
271
272
  this.accountId = undefined;
@@ -291,7 +292,7 @@ const SezzlePaymentMethod = class {
291
292
  }
292
293
  render() {
293
294
  var _a, _b, _c, _d, _e;
294
- 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))))))));
295
+ 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))))))));
295
296
  }
296
297
  };
297
298
 
@@ -1,10 +1,12 @@
1
- import { p as packageJson } from './p-b3520d11.js';
1
+ import { p as packageJson } from './p-e9023210.js';
2
2
  import { A as Api } from './p-29c0b182.js';
3
+ import { c as config } from './p-5a62fca2.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
+ console.log('analytics.service "https://wc-proxy.justifi.ai": ', config.proxyApiOrigin);
9
+ return Api({ apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(body));
8
10
  }
9
11
  }
10
12
 
@@ -1,6 +1,6 @@
1
1
  import { a as create$6, b as create$8 } from './p-2eab3c90.js';
2
2
  import { S as StateOptions } from './p-6078a370.js';
3
- import { b as businessClassificationOptions, a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, c as bankAccountTypeOptions } from './p-ba5fae28.js';
3
+ import { b as businessClassificationOptions, a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, c as bankAccountTypeOptions } from './p-d25c2f12.js';
4
4
 
5
5
  const transformEmptyString = (value) => {
6
6
  return value === '' ? null : value;
@@ -5,8 +5,9 @@ import { A as Api } from './p-29c0b182.js';
5
5
  import './p-56f6ce4c.js';
6
6
  import './p-df21aaad.js';
7
7
  import './p-e3fab0e2.js';
8
- import { J as JustifiAnalytics } from './p-3aef4459.js';
9
- import './p-b3520d11.js';
8
+ import { c as config } from './p-5a62fca2.js';
9
+ import { J as JustifiAnalytics } from './p-1efcb4e1.js';
10
+ import './p-e9023210.js';
10
11
 
11
12
  const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
12
13
  var _a;
@@ -65,7 +66,7 @@ const makeCheckoutComplete = ({ authToken, checkoutId, service }) => async ({ pa
65
66
  class CheckoutService {
66
67
  async fetchCheckout(authToken, checkoutId) {
67
68
  const endpoint = `checkouts/${checkoutId}`;
68
- return Api({ authToken, apiOrigin: undefined }).get(endpoint);
69
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
69
70
  }
70
71
  async complete(authToken, checkoutId, payment) {
71
72
  const endpoint = `checkouts/${checkoutId}/complete`;
@@ -75,7 +76,7 @@ class CheckoutService {
75
76
  if (payment.payment_token) {
76
77
  payload.payment_token = payment.payment_token;
77
78
  }
78
- return Api({ authToken, apiOrigin: undefined }).post(endpoint, JSON.stringify(payload));
79
+ return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
79
80
  }
80
81
  }
81
82
 
@@ -5,10 +5,11 @@ import './p-e3fab0e2.js';
5
5
  import { l as loadFontsOnParent } from './p-83125497.js';
6
6
  import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './p-14c91ffd.js';
7
7
  import { g as getErrorMessage } from './p-8115b2f4.js';
8
- import { J as JustifiAnalytics } from './p-3aef4459.js';
8
+ import { J as JustifiAnalytics } from './p-1efcb4e1.js';
9
9
  import { B as Button } from './p-9c9c7dac.js';
10
10
  import { S as StyledHost } from './p-ba4bae6f.js';
11
- import './p-b3520d11.js';
11
+ import { c as config } from './p-5a62fca2.js';
12
+ import './p-e9023210.js';
12
13
  import './p-29c0b182.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)}";
@@ -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: undefined, 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,5 +1,5 @@
1
1
  import { c as create$3, a as create$6 } from './p-2eab3c90.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 './p-89887332.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 './p-241b0ed9.js';
3
3
 
4
4
  const addressSchema = (allowOptionalFields) => {
5
5
  const schema = create$3({
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './p-fad19d75.js';
2
- import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './p-ba5fae28.js';
2
+ import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './p-d25c2f12.js';
3
3
  import { C as CURRENCY_MASK, T as TAX_ID_MASKS, P as PHONE_MASKS, S as SSN_MASK } from './p-525db3e8.js';
4
4
  import { C as CoreBusinessInfo } from './p-af244664.js';
5
5
  import { d as deconstructDate } from './p-1ff8810b.js';
@@ -1,20 +1,21 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
2
2
  import { c as makeGetIdentity, d as makePatchIdentity, e as makePostIdentity } from './p-5968ff8a.js';
3
- import { I as IdentityService } from './p-3e9ef4a8.js';
3
+ import { I as IdentityService } from './p-66db48be.js';
4
4
  import { F as FormController } from './p-2eab3c90.js';
5
5
  import { O as Owner } from './p-af244664.js';
6
6
  import { a as BusinessFormClickActions } from './p-d89bad72.js';
7
- import { c as parseIdentityInfo, i as identitySchema } from './p-85fc69e5.js';
7
+ import { c as parseIdentityInfo, i as identitySchema } from './p-46f679a9.js';
8
8
  import { B as Button } from './p-9c9c7dac.js';
9
9
  import { S as SSN_MASK, P as PHONE_MASKS } from './p-525db3e8.js';
10
10
  import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './p-7d85af5c.js';
11
11
  import './p-14c91ffd.js';
12
12
  import './p-8115b2f4.js';
13
13
  import './p-29c0b182.js';
14
+ import './p-5a62fca2.js';
14
15
  import './p-1ff8810b.js';
15
16
  import './p-6078a370.js';
16
- import './p-89887332.js';
17
- import './p-ba5fae28.js';
17
+ import './p-241b0ed9.js';
18
+ import './p-d25c2f12.js';
18
19
 
19
20
  const BusinessOwnerForm = class {
20
21
  constructor(hostRef) {
@@ -0,0 +1,13 @@
1
+ const config = {
2
+ iframeOrigin: "https://components.justifi.ai/v1",
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 };
@@ -1,14 +1,15 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './p-fad19d75.js';
2
- import { m as makeGetPayoutCSV, P as PayoutService } from './p-a6d04afc.js';
2
+ import { m as makeGetPayoutCSV, P as PayoutService } from './p-6e7d09e4.js';
3
3
  import './p-56f6ce4c.js';
4
4
  import './p-df21aaad.js';
5
5
  import { P as Payout } from './p-e3fab0e2.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './p-14c91ffd.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.js';
8
8
  import { E as ErrorState } from './p-dce846bf.js';
9
- import { J as JustifiAnalytics } from './p-3aef4459.js';
9
+ import { J as JustifiAnalytics } from './p-1efcb4e1.js';
10
10
  import './p-29c0b182.js';
11
- import './p-b3520d11.js';
11
+ import './p-5a62fca2.js';
12
+ import './p-e9023210.js';
12
13
 
13
14
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
14
15
  var _a;
@@ -1,27 +1,28 @@
1
1
  import { A as Api } from './p-29c0b182.js';
2
+ import { c as config } from './p-5a62fca2.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
 
@@ -2,22 +2,23 @@ import { A as Api } from './p-29c0b182.js';
2
2
  import './p-56f6ce4c.js';
3
3
  import './p-df21aaad.js';
4
4
  import './p-e3fab0e2.js';
5
+ import { c as config } from './p-5a62fca2.js';
5
6
  import { C as ComponentErrorSeverity } from './p-14c91ffd.js';
6
7
  import { g as getErrorMessage, a as getErrorCode } from './p-8115b2f4.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,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './p-fad19d75.js';
2
- import { a as additionalQuestionsSchema, b as businessCoreInfoSchema } from './p-3fd13ca3.js';
2
+ import { a as additionalQuestionsSchema, b as businessCoreInfoSchema } from './p-04a0dbb6.js';
3
3
  import { F as FormController } from './p-2eab3c90.js';
4
4
  import { A as AdditionalQuestions, C as CoreBusinessInfo, R as Representative, b as Address } from './p-af244664.js';
5
5
  import { C as CURRENCY_MASK, P as PHONE_MASKS } from './p-525db3e8.js';
6
- import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './p-ba5fae28.js';
7
- import { b as parseCoreInfo, c as parseIdentityInfo, i as identitySchema, d as parseAddressInfo, a as addressSchema } from './p-85fc69e5.js';
6
+ import { a as businessServiceReceivedOptions, r as recurringPaymentsOptions, s as seasonalBusinessOptions, b as businessClassificationOptions } from './p-d25c2f12.js';
7
+ import { b as parseCoreInfo, c as parseIdentityInfo, i as identitySchema, d as parseAddressInfo, a as addressSchema } from './p-46f679a9.js';
8
8
  import { h as flattenNestedObject, j as isInRange, s as snakeCaseToHumanReadable, b as formatDate, k as formatTimeSeconds } from './p-83125497.js';
9
9
  import { n as numberOnlyHandler } from './p-8df7bde8.js';
10
- import { N as EntityDocumentType } from './p-89887332.js';
10
+ import { N as EntityDocumentType } from './p-241b0ed9.js';
11
11
  import { b as BusinessFormStep, a as BusinessFormClickActions } from './p-d89bad72.js';
12
12
  import { B as Button } from './p-9c9c7dac.js';
13
13
  import { S as StateOptions } from './p-6078a370.js';
@@ -2,16 +2,17 @@ import { A as Api } from './p-29c0b182.js';
2
2
  import './p-56f6ce4c.js';
3
3
  import './p-df21aaad.js';
4
4
  import './p-e3fab0e2.js';
5
+ import { c as config } from './p-5a62fca2.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,16 +1,17 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './p-fad19d75.js';
2
2
  import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './p-14c91ffd.js';
3
3
  import { m as makeGetBusiness, b as makePatchBusiness } from './p-5968ff8a.js';
4
- import { B as BusinessService } from './p-3e9ef4a8.js';
4
+ import { B as BusinessService } from './p-66db48be.js';
5
5
  import { c as create$3, F as FormController, e as create$7 } from './p-2eab3c90.js';
6
6
  import { b as BusinessFormStep, a as BusinessFormClickActions } from './p-d89bad72.js';
7
- import { z as bankNameValidation, A as nicknameValidation, i as identityNameValidation, B as accountTypeValidation, C as accountNumberValidation, D as routingNumberValidation, E as voidedCheckValidation, F as governmentIdValidation, G as ss4Validation, H as otherDocumentValidation, I as balanceSheetValidation, J as bankStatementValidation, K as profitAndLossStatementValidation, L as EntityDocument, M as EntityDocumentStorage } from './p-89887332.js';
8
- import { c as bankAccountTypeOptions } from './p-ba5fae28.js';
7
+ import { z as bankNameValidation, A as nicknameValidation, i as identityNameValidation, B as accountTypeValidation, C as accountNumberValidation, D as routingNumberValidation, E as voidedCheckValidation, F as governmentIdValidation, G as ss4Validation, H as otherDocumentValidation, I as balanceSheetValidation, J as bankStatementValidation, K as profitAndLossStatementValidation, L as EntityDocument, M as EntityDocumentStorage } from './p-241b0ed9.js';
8
+ import { c as bankAccountTypeOptions } from './p-d25c2f12.js';
9
9
  import { A as Api } from './p-29c0b182.js';
10
10
  import './p-56f6ce4c.js';
11
11
  import './p-df21aaad.js';
12
12
  import './p-e3fab0e2.js';
13
13
  import { n as numberOnlyHandler } from './p-8df7bde8.js';
14
+ import { c as config } from './p-5a62fca2.js';
14
15
  import { B as Business } from './p-af244664.js';
15
16
  import { S as Skeleton } from './p-08b0fb31.js';
16
17
  import { B as Button } from './p-9c9c7dac.js';
@@ -199,7 +200,7 @@ const BusinessBankAccountFormStep = class {
199
200
  ;
200
201
  componentWillLoad() {
201
202
  this.formController = new FormController(businessBankAccountSchema(this.allowOptionalFields));
202
- this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
203
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
203
204
  if (this.businessId && this.authToken) {
204
205
  this.fetchData();
205
206
  }
@@ -212,7 +213,7 @@ const BusinessBankAccountFormStep = class {
212
213
  }
213
214
  render() {
214
215
  const bankAccountDefaultValue = this.formController.getInitialValues();
215
- 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 }))))));
216
+ return (h("form", { key: 'b1520933113b53469db59e1169f6cef945815fc6' }, h("fieldset", { key: 'e454afff2a2f7fb80012787ac989079b363b8d20' }, h("legend", { key: 'd64f00a046738c432d01130b0f074016a8a5c721' }, "Bank Account Info"), h("hr", { key: '6a1563926609702fc6b3ca32464b6235d65e3e85' }), h("div", { key: 'bc701a1fbf72d0ed4d813f8e28502eb86f7eb70b', class: "row gy-3" }, h("div", { key: '1906887c6c7b35bf025e21520a787c325c60d4e4', class: "col-12" }, h("form-control-text", { key: '3aebda5c7b7e36438f56ff93d0ec0a00bbb8d739', name: "bank_name", label: "Bank Name", defaultValue: bankAccountDefaultValue.bank_name, errorText: this.errors.bank_name, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '3ec443fea8a3756a8ba5083da6b0fc8b125e1796', class: "col-12" }, h("form-control-text", { key: '894c7cbaeb12a2bce092a7112d045f7d70374b22', name: "nickname", label: "Nickname", defaultValue: bankAccountDefaultValue.nickname, errorText: this.errors.nickname, inputHandler: this.inputHandler, disabled: this.formDisabled })), h("div", { key: '5a139a21ada6f27ced15e3a7cd0a796785a282a9', class: "col-12" }, h("form-control-text", { key: 'b9b40098b82573877acd9d5b6ba7653d01dc193b', 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: '7dd9fd1a193e85eaf2d7d3c082e1328235af6fe7', class: "col-12" }, h("form-control-select", { key: '07371524c2b8c672768c135231a3b047fcd6ac6c', 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: 'a1c573d754e6425b506e66d8427d64514aca63f8', class: "col-12" }, h("form-control-text", { key: 'bac0642032dcc9108ca3144f7f2a599e9eeb9852', 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: '0c4a1c1f2927773516127291901f6de8132f3f99', class: "col-12" }, h("form-control-text", { key: '45360d9ae8fa142d1c9d6d922904b2d7ced33749', 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 }))))));
216
217
  }
217
218
  };
218
219
 
@@ -429,7 +430,7 @@ const BusinessDocumentFormStep = class {
429
430
  return 'entities/document';
430
431
  }
431
432
  componentWillLoad() {
432
- this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
433
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
433
434
  if (this.businessId && this.authToken) {
434
435
  this.fetchData();
435
436
  }
@@ -462,7 +463,7 @@ const BusinessDocumentFormStep = class {
462
463
  return (h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
463
464
  }
464
465
  render() {
465
- 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))));
466
+ 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))));
466
467
  }
467
468
  };
468
469
 
@@ -646,7 +647,7 @@ const BusinessTermsConditionsFormStep = class {
646
647
  };
647
648
  }
648
649
  async componentWillLoad() {
649
- this.api = Api({ authToken: this.authToken, apiOrigin: undefined });
650
+ this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
650
651
  this.formController = new FormController(businessTermsConditionsSchema(this.allowOptionalFields));
651
652
  if (this.businessId && this.authToken) {
652
653
  this.fetchData();
@@ -682,7 +683,7 @@ const BusinessTermsConditionsFormStep = class {
682
683
  });
683
684
  }
684
685
  render() {
685
- 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 }))))));
686
+ return (h("form", { key: '82b365e61a00c1d0bf5417ffa4bfb9597fd7a822' }, h("fieldset", { key: 'a08f8f65f2270d8b90edbdbed2a6c5227f6a4bcd' }, h("legend", { key: '05afe201de9fa5e107893b5a7d8cbca0d895f11c' }, "Terms and Conditions"), h("hr", { key: '28ea76ccf515c4eb1e21a9cef69eac2be76dff2d' }), h("justifi-business-terms-conditions-text", { key: '155975dc42cdd9497b45358e2bb38ae3ff38691e' }), h("br", { key: '969a76309a81c7a130ac3c4f67f9994e885df9b1' }), h("div", { key: '906cd8b3d33d0f209416ed17317d7f4208f4c876', class: "row-gy-3" }, h("div", { key: '3bce48100ca8227d8657af1ab133924ed4a35c1d', class: "col-12" }, h("form-control-checkbox", { key: 'd770ed6fb7c96c4b7b044b9b2d34f2b3478c22fb', name: "accepted", label: "I agree to the terms and conditions", inputHandler: this.inputHandler, errorText: this.errors.accepted, disabled: this.acceptedTermsBefore, helpText: this.formHelperText }))))));
686
687
  }
687
688
  };
688
689