@justifi/webcomponents 4.19.1-rc → 4.19.3-rc

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 (147) hide show
  1. package/dist/cjs/{Analytics-0b3db49d.js → Analytics-57e3b5a8.js} +2 -3
  2. package/dist/cjs/{business.service-c384784d.js → business.service-090a21e1.js} +5 -6
  3. package/dist/cjs/{get-payout-csv-51a02be7.js → get-payout-csv-238e839a.js} +3 -4
  4. package/dist/cjs/justifi-additional-questions-form-step_10.cjs.entry.js +7 -8
  5. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +4 -5
  6. package/dist/cjs/justifi-business-details.cjs.entry.js +3 -4
  7. package/dist/cjs/justifi-business-form.cjs.entry.js +4 -5
  8. package/dist/cjs/justifi-card-form.cjs.entry.js +4 -5
  9. package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -3
  10. package/dist/cjs/justifi-checkout.cjs.entry.js +4 -5
  11. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +3 -4
  12. package/dist/cjs/justifi-new-payment-method_4.cjs.entry.js +8 -9
  13. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +1 -2
  14. package/dist/cjs/justifi-payment-details.cjs.entry.js +3 -4
  15. package/dist/cjs/justifi-payment-form.cjs.entry.js +5 -6
  16. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
  17. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -6
  18. package/dist/cjs/justifi-payments-list.cjs.entry.js +3 -4
  19. package/dist/cjs/justifi-payout-details.cjs.entry.js +3 -4
  20. package/dist/cjs/justifi-payouts-list.cjs.entry.js +3 -4
  21. package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -3
  22. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +4 -5
  23. package/dist/cjs/{package-39dc73ed.js → package-97b9c902.js} +2 -4
  24. package/dist/cjs/{payment.service-2dbfb83d.js → payment.service-c92635c8.js} +2 -3
  25. package/dist/collection/api/services/analytics.service.js +1 -2
  26. package/dist/collection/api/services/business.service.js +5 -6
  27. package/dist/collection/api/services/checkout.service.js +2 -3
  28. package/dist/collection/api/services/insurance.service.js +2 -3
  29. package/dist/collection/api/services/payment.service.js +2 -3
  30. package/dist/collection/api/services/payout.service.js +3 -4
  31. package/dist/collection/api/services/provision.service.js +2 -4
  32. package/dist/collection/api/services/reports.service.js +1 -2
  33. package/dist/collection/components/bank-account-form/bank-account-form.js +3 -4
  34. package/dist/collection/components/business-forms/business-form/business-form.js +2 -3
  35. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +2 -3
  36. package/dist/collection/components/business-forms/payment-provisioning/document-uploads/business-document-upload-form-step.js +2 -3
  37. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -3
  38. package/dist/collection/components/card-form/card-form.js +3 -4
  39. package/dist/collection/components/checkout/checkout-core.js +3 -4
  40. package/dist/collection/components/checkout/new-payment-method.js +3 -4
  41. package/dist/collection/components/checkout/payment-method-options.js +3 -4
  42. package/dist/collection/components/checkout/saved-payment-method.js +3 -4
  43. package/dist/collection/components/checkout/sezzle-payment-method.js +3 -4
  44. package/dist/collection/components/payment-form/payment-form.js +3 -4
  45. package/dist/collection/components/refund-form/refund-form.js +2 -3
  46. package/dist/docs.json +8 -8
  47. package/dist/esm/{Analytics-37556050.js → Analytics-7cb9826b.js} +2 -3
  48. package/dist/esm/{business.service-eee46ab1.js → business.service-37d0cc72.js} +5 -6
  49. package/dist/esm/{get-payout-csv-4d6b29d8.js → get-payout-csv-a702a0d9.js} +3 -4
  50. package/dist/esm/justifi-additional-questions-form-step_10.entry.js +7 -8
  51. package/dist/esm/justifi-bank-account-form.entry.js +4 -5
  52. package/dist/esm/justifi-business-details.entry.js +3 -4
  53. package/dist/esm/justifi-business-form.entry.js +4 -5
  54. package/dist/esm/justifi-card-form.entry.js +4 -5
  55. package/dist/esm/justifi-checkout-core.entry.js +2 -3
  56. package/dist/esm/justifi-checkout.entry.js +4 -5
  57. package/dist/esm/justifi-gross-payment-chart.entry.js +3 -4
  58. package/dist/esm/justifi-new-payment-method_4.entry.js +8 -9
  59. package/dist/esm/justifi-owner-form_3.entry.js +1 -2
  60. package/dist/esm/justifi-payment-details.entry.js +3 -4
  61. package/dist/esm/justifi-payment-form.entry.js +5 -6
  62. package/dist/esm/justifi-payment-method-form.entry.js +1 -1
  63. package/dist/esm/justifi-payment-provisioning.entry.js +5 -6
  64. package/dist/esm/justifi-payments-list.entry.js +3 -4
  65. package/dist/esm/justifi-payout-details.entry.js +3 -4
  66. package/dist/esm/justifi-payouts-list.entry.js +3 -4
  67. package/dist/esm/justifi-refund-form.entry.js +2 -3
  68. package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -5
  69. package/dist/esm/{package-e2a7aa3f.js → package-93884871.js} +2 -4
  70. package/dist/esm/{payment.service-9005a501.js → payment.service-9359fe15.js} +2 -3
  71. package/dist/globals.d.ts +2 -0
  72. package/dist/module/Analytics.js +1 -2
  73. package/dist/module/business-bank-account-form-step.js +2 -3
  74. package/dist/module/business-document-upload-form-step.js +2 -3
  75. package/dist/module/business-terms-conditions-form-step.js +2 -3
  76. package/dist/module/business.service.js +5 -6
  77. package/dist/module/checkout-core.js +2 -3
  78. package/dist/module/get-payout-csv.js +3 -4
  79. package/dist/module/justifi-bank-account-form.js +2 -3
  80. package/dist/module/justifi-business-form.js +2 -3
  81. package/dist/module/justifi-card-form.js +2 -3
  82. package/dist/module/justifi-checkout.js +2 -3
  83. package/dist/module/justifi-gross-payment-chart.js +1 -2
  84. package/dist/module/justifi-payment-form.js +3 -4
  85. package/dist/module/justifi-payment-provisioning.js +2 -3
  86. package/dist/module/justifi-refund-form.js +2 -3
  87. package/dist/module/justifi-season-interruption-insurance.js +2 -3
  88. package/dist/module/new-payment-method.js +2 -3
  89. package/dist/module/package.js +2 -4
  90. package/dist/module/payment-method-options.js +2 -3
  91. package/dist/module/payment.service.js +2 -3
  92. package/dist/module/saved-payment-method.js +2 -3
  93. package/dist/module/sezzle-payment-method.js +2 -3
  94. package/dist/webcomponents/p-03419b17.js +1 -0
  95. package/dist/webcomponents/p-0bbe1f1c.entry.js +1 -0
  96. package/dist/webcomponents/{p-ae530971.entry.js → p-0cd89142.entry.js} +1 -1
  97. package/dist/webcomponents/p-0e1bc91e.js +1 -0
  98. package/dist/webcomponents/p-16887e04.entry.js +1 -0
  99. package/dist/webcomponents/p-17baca7d.entry.js +1 -0
  100. package/dist/webcomponents/p-1f761d16.entry.js +1 -0
  101. package/dist/webcomponents/p-276cc368.entry.js +1 -0
  102. package/dist/webcomponents/p-32211b2f.entry.js +1 -0
  103. package/dist/webcomponents/p-3352353a.entry.js +1 -0
  104. package/dist/webcomponents/p-47d79529.js +1 -0
  105. package/dist/webcomponents/p-4a485cce.js +1 -0
  106. package/dist/webcomponents/p-4c849993.entry.js +1 -0
  107. package/dist/webcomponents/p-83876625.entry.js +1 -0
  108. package/dist/webcomponents/p-97272668.entry.js +1 -0
  109. package/dist/webcomponents/{p-a63fc384.entry.js → p-b1257354.entry.js} +1 -1
  110. package/dist/webcomponents/p-b29f5084.entry.js +1 -0
  111. package/dist/webcomponents/p-b4b8b531.js +1 -0
  112. package/dist/webcomponents/p-babd56c3.entry.js +1 -0
  113. package/dist/webcomponents/p-c607f049.entry.js +1 -0
  114. package/dist/webcomponents/p-cd37a87e.entry.js +1 -0
  115. package/dist/webcomponents/p-cff82e78.entry.js +1 -0
  116. package/dist/webcomponents/p-f117d1d1.entry.js +1 -0
  117. package/dist/webcomponents/p-f883bf32.entry.js +1 -0
  118. package/dist/webcomponents/webcomponents.esm.js +1 -1
  119. package/package.json +2 -4
  120. package/dist/cjs/config-037e67d0.js +0 -15
  121. package/dist/config.js +0 -11
  122. package/dist/esm/config-58e393e2.js +0 -13
  123. package/dist/module/config.js +0 -13
  124. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +0 -11
  125. package/dist/webcomponents/p-023779ee.entry.js +0 -1
  126. package/dist/webcomponents/p-037763f4.entry.js +0 -1
  127. package/dist/webcomponents/p-1f6afff9.entry.js +0 -1
  128. package/dist/webcomponents/p-246a6c6a.entry.js +0 -1
  129. package/dist/webcomponents/p-2d3b1692.entry.js +0 -1
  130. package/dist/webcomponents/p-32286934.js +0 -1
  131. package/dist/webcomponents/p-3f5e7e86.js +0 -1
  132. package/dist/webcomponents/p-57e1f2fd.js +0 -1
  133. package/dist/webcomponents/p-5f095525.entry.js +0 -1
  134. package/dist/webcomponents/p-69faef3f.entry.js +0 -1
  135. package/dist/webcomponents/p-6c078cd1.js +0 -1
  136. package/dist/webcomponents/p-8f325782.entry.js +0 -1
  137. package/dist/webcomponents/p-987b5de2.entry.js +0 -1
  138. package/dist/webcomponents/p-a8220709.entry.js +0 -1
  139. package/dist/webcomponents/p-b7cf49f4.entry.js +0 -1
  140. package/dist/webcomponents/p-b87b27ba.js +0 -1
  141. package/dist/webcomponents/p-c28db166.js +0 -1
  142. package/dist/webcomponents/p-edac2b43.entry.js +0 -1
  143. package/dist/webcomponents/p-ef23c091.entry.js +0 -1
  144. package/dist/webcomponents/p-f06910aa.entry.js +0 -1
  145. package/dist/webcomponents/p-f0a06884.entry.js +0 -1
  146. package/dist/webcomponents/p-f2f94d9f.entry.js +0 -1
  147. package/dist/webcomponents/p-f49b7170.entry.js +0 -1
@@ -3,17 +3,16 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const payment_service = require('./payment.service-2dbfb83d.js');
6
+ const payment_service = require('./payment.service-c92635c8.js');
7
7
  require('./Pagination-0da8f095.js');
8
8
  const Payment = require('./Payment-1a8a8ca6.js');
9
9
  require('./Payout-a2dd7b01.js');
10
10
  const ComponentError = require('./ComponentError-233ac749.js');
11
11
  const utils = require('./utils-7a478c37.js');
12
12
  const utils$1 = require('./utils-c1d2e426.js');
13
- const Analytics = require('./Analytics-0b3db49d.js');
13
+ const Analytics = require('./Analytics-57e3b5a8.js');
14
14
  require('./Api-3bc6e43f.js');
15
- require('./config-037e67d0.js');
16
- require('./package-39dc73ed.js');
15
+ require('./package-97b9c902.js');
17
16
 
18
17
  const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
19
18
  var _a, _b;
@@ -3,17 +3,16 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const getPayoutCsv = require('./get-payout-csv-51a02be7.js');
6
+ const getPayoutCsv = require('./get-payout-csv-238e839a.js');
7
7
  require('./Pagination-0da8f095.js');
8
8
  require('./Payment-1a8a8ca6.js');
9
9
  const Payout = require('./Payout-a2dd7b01.js');
10
10
  const ComponentError = require('./ComponentError-233ac749.js');
11
11
  const utils = require('./utils-7a478c37.js');
12
12
  const utils$1 = require('./utils-c1d2e426.js');
13
- const Analytics = require('./Analytics-0b3db49d.js');
13
+ const Analytics = require('./Analytics-57e3b5a8.js');
14
14
  require('./Api-3bc6e43f.js');
15
- require('./config-037e67d0.js');
16
- require('./package-39dc73ed.js');
15
+ require('./package-97b9c902.js');
17
16
 
18
17
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
19
18
  var _a;
@@ -4,17 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const exportedParts = require('./exported-parts-b18c68c2.js');
7
- const getPayoutCsv = require('./get-payout-csv-51a02be7.js');
7
+ const getPayoutCsv = require('./get-payout-csv-238e839a.js');
8
8
  require('./Pagination-0da8f095.js');
9
9
  require('./Payment-1a8a8ca6.js');
10
10
  const Payout = require('./Payout-a2dd7b01.js');
11
11
  const ComponentError = require('./ComponentError-233ac749.js');
12
12
  const utils = require('./utils-7a478c37.js');
13
13
  const utils$1 = require('./utils-c1d2e426.js');
14
- const Analytics = require('./Analytics-0b3db49d.js');
14
+ const Analytics = require('./Analytics-57e3b5a8.js');
15
15
  require('./Api-3bc6e43f.js');
16
- require('./config-037e67d0.js');
17
- require('./package-39dc73ed.js');
16
+ require('./package-97b9c902.js');
18
17
 
19
18
  const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
20
19
  var _a, _b;
@@ -8,7 +8,6 @@ const Api = require('./Api-3bc6e43f.js');
8
8
  require('./Pagination-0da8f095.js');
9
9
  require('./Payment-1a8a8ca6.js');
10
10
  require('./Payout-a2dd7b01.js');
11
- const config = require('./config-037e67d0.js');
12
11
  const formInputMasks = require('./form-input-masks-0879c139.js');
13
12
  const styledHost = require('./styled-host-cc053016.js');
14
13
 
@@ -94,11 +93,11 @@ const RefundForm = class {
94
93
  if (!this.authToken) {
95
94
  console.warn('Warning: Missing auth-token.');
96
95
  }
97
- this.api = Api.Api({ authToken: this.authToken, apiOrigin: config.config.proxyApiOrigin });
96
+ this.api = Api.Api({ authToken: this.authToken, apiOrigin: "" });
98
97
  }
99
98
  render() {
100
99
  var _a;
101
- return (index.h(styledHost.StyledHost, { key: 'd0d0962eaecab749aa1eb124e86701a2fb4dfd53' }, index.h("h1", { key: 'cb3071d89c291b1664e551fcf2808a64569ba5eb' }, "Refund"), this.refundInfoText && (index.h("div", { key: '01a6f4567f882d2eec492ef6d98db7d04747ecb4', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, index.h("img", { key: '8ae5928aaf8ead35a7ad180a01bdde05ebec3d5f', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), index.h("p", { key: '425a7dfe9d8b886b55fd0878f3989373733c1758', class: "m-0", innerHTML: this.refundInfoText }))), index.h("form", { key: '5516d2ac500611d2410b9b4c2a4d0d15e417b2d1', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, index.h("div", { key: 'b67a7c56f070a5a25d91aa0cc77755b27d420fdc', class: "form-group" }, index.h("form-control-monetary", { key: '76b6cfdf2b39674434f4d880333dd5d5f603f0b6', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: formInputMasks.CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), index.h("div", { key: '5e581cdea69d2ce9dbad774214cd904923d199b3', class: "form-group" }, index.h("form-control-text", { key: '926ae888676a4089d3381bd4d650e6f84f6e206a', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (index.h("div", { key: 'de5df506b7b64a69a16241f117bf9bea4fd79b57', class: "form-group d-flex flex-row-reverse" }, index.h("button", { key: '92ad4d43677587c2c20dc03c6f03a6cf1f20ac12', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
100
+ return (index.h(styledHost.StyledHost, { key: '8d31f1a9bf936c9e11f8eca1dc55e614b9fa5939' }, index.h("h1", { key: 'be589740535ee8a5ab6d4af7151d7ae026f08002' }, "Refund"), this.refundInfoText && (index.h("div", { key: 'b1d40507dec53bac422f99a3d62678c78c0c2038', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, index.h("img", { key: 'cc76014eef0d826bec5ec09355dc5fc747fd2070', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), index.h("p", { key: 'c2efa0f2acdf3faaa6e2974d0535f48799e3cbbd', class: "m-0", innerHTML: this.refundInfoText }))), index.h("form", { key: '68220114781378f6507651414c87532171bebb31', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, index.h("div", { key: '075545e9837316fe160760e0dba9a5104654dd2b', class: "form-group" }, index.h("form-control-monetary", { key: 'c8ff8a822d2b74b2f80b33cd6cd2b42ceebbff11', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: formInputMasks.CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), index.h("div", { key: '92093284e763466be5138ea6d788145d5d47bd87', class: "form-group" }, index.h("form-control-text", { key: 'ddf9e221d43d84ad7436261c5755e673224aa82e', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (index.h("div", { key: '58abbbabce09d82da4032ef0e08e6cfac1433153', class: "form-group d-flex flex-row-reverse" }, index.h("button", { key: '3e703ef633e0d45ba70425dc6d58bcd2d590ce1b', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
102
101
  }
103
102
  };
104
103
  RefundForm.style = JustifiRefundFormStyle0;
@@ -7,20 +7,19 @@ const Api = require('./Api-3bc6e43f.js');
7
7
  require('./Pagination-0da8f095.js');
8
8
  require('./Payment-1a8a8ca6.js');
9
9
  require('./Payout-a2dd7b01.js');
10
- const config = require('./config-037e67d0.js');
11
10
  const utils = require('./utils-7a478c37.js');
12
11
  const ComponentError = require('./ComponentError-233ac749.js');
13
- const Analytics = require('./Analytics-0b3db49d.js');
14
- require('./package-39dc73ed.js');
12
+ const Analytics = require('./Analytics-57e3b5a8.js');
13
+ require('./package-97b9c902.js');
15
14
 
16
15
  class InsuranceService {
17
16
  async fetchQuote(authToken, payload) {
18
17
  const endpoint = 'insurance/quotes';
19
- return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
18
+ return Api.Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
20
19
  }
21
20
  async toggleCoverage(authToken, quoteId, payload) {
22
21
  const endpoint = `insurance/quotes/${quoteId}/toggle`;
23
- return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
22
+ return Api.Api({ authToken, apiOrigin: "" }).post(endpoint, JSON.stringify(payload));
24
23
  }
25
24
  }
26
25
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const name = "@justifi/webcomponents";
4
- const version = "4.19.1-rc";
4
+ const version = "4.19.3-rc";
5
5
  const description = "JustiFi Web Components";
6
6
  const collection = "dist/collection/collection-manifest.json";
7
7
  const main = "dist/index.cjs.js";
@@ -26,7 +26,6 @@ const scripts = {
26
26
  generate: "stencil generate",
27
27
  test: "TZ=utc stencil test --spec",
28
28
  "test:watch": "TZ=utc stencil test --spec --watchAll",
29
- "test:e2e": "stencil test --e2e",
30
29
  "test:file": "stencil test --spec --watch --"
31
30
  };
32
31
  const dependencies = {
@@ -47,16 +46,15 @@ const devDependencies = {
47
46
  "@babel/preset-env": "^7.21.5",
48
47
  "@babel/preset-react": "^7.18.6",
49
48
  "@babel/preset-typescript": "^7.21.5",
49
+ "@rollup/plugin-replace": "^5.0.7",
50
50
  "@stencil/sass": "^3.0.1",
51
51
  "@types/jest": "27.0.3",
52
- "@types/node": "^20.1.4",
53
52
  "@types/react": "^18.0.37",
54
53
  "@types/react-dom": "^18.0.11",
55
54
  dotenv: "^16.3.1",
56
55
  jest: "^29.7.0",
57
56
  "jest-cli": "^29.7.0",
58
57
  "jest-environment-node": "^29.7.0",
59
- puppeteer: "^21.0.0",
60
58
  "ts-jest": "^29.1.2"
61
59
  };
62
60
  const license = "MIT";
@@ -4,17 +4,16 @@ const Api = require('./Api-3bc6e43f.js');
4
4
  require('./Pagination-0da8f095.js');
5
5
  require('./Payment-1a8a8ca6.js');
6
6
  require('./Payout-a2dd7b01.js');
7
- const config = require('./config-037e67d0.js');
8
7
 
9
8
  class PaymentService {
10
9
  async fetchPayments(accountId, authToken, params) {
11
- const api = Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin });
10
+ const api = Api.Api({ authToken, apiOrigin: "" });
12
11
  const endpoint = `account/${accountId}/payments`;
13
12
  return api.get(endpoint, params);
14
13
  }
15
14
  async fetchPayment(paymentId, authToken) {
16
15
  const endpoint = `payments/${paymentId}`;
17
- return Api.Api({ authToken, apiOrigin: config.config.proxyApiOrigin }).get(endpoint);
16
+ return Api.Api({ authToken, apiOrigin: "" }).get(endpoint);
18
17
  }
19
18
  }
20
19
 
@@ -1,8 +1,7 @@
1
- import { config } from "../../../config";
2
1
  import Api from "../Api";
3
2
  export class AnalyticsService {
4
3
  async record(body) {
5
4
  const endpoint = 'analytics';
6
- return Api({ apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(body));
5
+ return Api({ apiOrigin: PROXY_API_ORIGIN }).post(endpoint, JSON.stringify(body));
7
6
  }
8
7
  }
@@ -1,26 +1,25 @@
1
- import { config } from "../../../config";
2
1
  import Api from "../Api";
3
2
  export class BusinessService {
4
3
  async fetchBusiness(businessId, authToken) {
5
4
  const endpoint = `entities/business/${businessId}`;
6
- return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
5
+ return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).get(endpoint);
7
6
  }
8
7
  async patchBusiness(authToken, businessId, payload) {
9
8
  const endpoint = `entities/business/${businessId}`;
10
- return Api({ authToken, apiOrigin: config.proxyApiOrigin }).patch(endpoint, payload);
9
+ return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).patch(endpoint, payload);
11
10
  }
12
11
  }
13
12
  export class IdentityService {
14
13
  async fetchIdentity(identityId, authToken) {
15
14
  const endpoint = `entities/identity/${identityId}`;
16
- return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
15
+ return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).get(endpoint);
17
16
  }
18
17
  async patchIdentity(authToken, identityId, payload) {
19
18
  const endpoint = `entities/identity/${identityId}`;
20
- return Api({ authToken, apiOrigin: config.proxyApiOrigin }).patch(endpoint, payload);
19
+ return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).patch(endpoint, payload);
21
20
  }
22
21
  async postIdentity(authToken, payload) {
23
22
  const endpoint = `entities/identity`;
24
- return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, payload);
23
+ return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).post(endpoint, payload);
25
24
  }
26
25
  }
@@ -1,9 +1,8 @@
1
1
  import { Api } from "..";
2
- import { config } from "../../../config";
3
2
  export class CheckoutService {
4
3
  async fetchCheckout(authToken, checkoutId) {
5
4
  const endpoint = `checkouts/${checkoutId}`;
6
- return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
5
+ return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).get(endpoint);
7
6
  }
8
7
  async complete(authToken, checkoutId, payment) {
9
8
  const endpoint = `checkouts/${checkoutId}/complete`;
@@ -13,6 +12,6 @@ export class CheckoutService {
13
12
  if (payment.payment_token) {
14
13
  payload.payment_token = payment.payment_token;
15
14
  }
16
- return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
15
+ return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).post(endpoint, JSON.stringify(payload));
17
16
  }
18
17
  }
@@ -1,12 +1,11 @@
1
1
  import { Api } from "..";
2
- import { config } from "../../../config";
3
2
  export class InsuranceService {
4
3
  async fetchQuote(authToken, payload) {
5
4
  const endpoint = 'insurance/quotes';
6
- return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
5
+ return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).post(endpoint, JSON.stringify(payload));
7
6
  }
8
7
  async toggleCoverage(authToken, quoteId, payload) {
9
8
  const endpoint = `insurance/quotes/${quoteId}/toggle`;
10
- return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
9
+ return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).post(endpoint, JSON.stringify(payload));
11
10
  }
12
11
  }
@@ -1,13 +1,12 @@
1
1
  import { Api } from "..";
2
- import { config } from "../../../config";
3
2
  export class PaymentService {
4
3
  async fetchPayments(accountId, authToken, params) {
5
- const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
4
+ const api = Api({ authToken, apiOrigin: PROXY_API_ORIGIN });
6
5
  const endpoint = `account/${accountId}/payments`;
7
6
  return api.get(endpoint, params);
8
7
  }
9
8
  async fetchPayment(paymentId, authToken) {
10
9
  const endpoint = `payments/${paymentId}`;
11
- return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
10
+ return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).get(endpoint);
12
11
  }
13
12
  }
@@ -1,18 +1,17 @@
1
1
  import { Api } from "..";
2
- import { config } from "../../../config";
3
2
  export class PayoutService {
4
3
  async fetchPayouts(accountId, authToken, params) {
5
- const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
4
+ const api = Api({ authToken, apiOrigin: PROXY_API_ORIGIN });
6
5
  const endpoint = `account/${accountId}/payouts`;
7
6
  return api.get(endpoint, params);
8
7
  }
9
8
  async fetchPayout(payoutId, authToken) {
10
- const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
9
+ const api = Api({ authToken, apiOrigin: PROXY_API_ORIGIN });
11
10
  const endpoint = `payouts/${payoutId}`;
12
11
  return api.get(endpoint);
13
12
  }
14
13
  async fetchCSV(payoutId, authToken) {
15
- const api = Api({ authToken, apiOrigin: config.proxyApiOrigin });
14
+ const api = Api({ authToken, apiOrigin: PROXY_API_ORIGIN });
16
15
  const endpoint = `reports/payouts/${payoutId}`;
17
16
  return api.get(endpoint);
18
17
  }
@@ -1,13 +1,11 @@
1
- import { config } from "../../../config";
2
1
  import Api from "../Api";
3
- ;
4
2
  export class ProvisionService {
5
3
  async postProvisioning(authToken, businessId, product) {
6
4
  const endpoint = `entities/provisioning`;
7
5
  const payload = {
8
6
  business_id: businessId,
9
- product_category: product
7
+ product_category: product,
10
8
  };
11
- return Api({ authToken, apiOrigin: config.proxyApiOrigin }).post(endpoint, JSON.stringify(payload));
9
+ return Api({ authToken, apiOrigin: PROXY_API_ORIGIN }).post(endpoint, JSON.stringify(payload));
12
10
  }
13
11
  }
@@ -1,8 +1,7 @@
1
- import { config } from "../../../config";
2
1
  import Api from "../Api";
3
2
  export class ReportsService {
4
3
  async fetchGrossVolumeChartData(accountId, authToken) {
5
- const api = Api({ authToken: authToken, apiOrigin: config.proxyApiOrigin });
4
+ const api = Api({ authToken: authToken, apiOrigin: PROXY_API_ORIGIN });
6
5
  const endpoint = `account/${accountId}/reports/gross_volume`;
7
6
  return api.get(endpoint);
8
7
  }
@@ -1,10 +1,9 @@
1
1
  import { h, } from "@stencil/core";
2
- import { config } from "../../../config";
3
2
  import JustifiAnalytics from "../../api/Analytics";
4
3
  export class BankAccountForm {
5
4
  constructor() {
6
5
  this.validationMode = undefined;
7
- this.iframeOrigin = config.iframeOrigin;
6
+ this.iframeOrigin = IFRAME_ORIGIN;
8
7
  this.internalStyleOverrides = undefined;
9
8
  }
10
9
  readyHandler(event) {
@@ -56,7 +55,7 @@ export class BankAccountForm {
56
55
  return this.childRef.resize();
57
56
  }
58
57
  render() {
59
- return (h("justifi-payment-method-form", { key: 'e2fa64d199a6c550329c9797a6951335e7c12bc6', ref: el => {
58
+ return (h("justifi-payment-method-form", { key: '646e392c1a9ed38e73780ed6a01b6f019767794c', ref: el => {
60
59
  if (el) {
61
60
  this.childRef = el;
62
61
  }
@@ -98,7 +97,7 @@ export class BankAccountForm {
98
97
  },
99
98
  "attribute": "iframe-origin",
100
99
  "reflect": false,
101
- "defaultValue": "config.iframeOrigin"
100
+ "defaultValue": "IFRAME_ORIGIN"
102
101
  }
103
102
  };
104
103
  }
@@ -3,7 +3,6 @@ import { FormController } from "../../form/form";
3
3
  import { businessFormSchema } from "../schemas/business-form-schema";
4
4
  import { Api } from "../../../api";
5
5
  import { parseBusiness } from "../utils/payload-parsers";
6
- import { config } from "../../../../config";
7
6
  import { BusinessFormClickActions, BusinessFormServerErrors } from "../utils/business-form-types";
8
7
  import { Business } from "../../../api/Business";
9
8
  import JustifiAnalytics from "../../../api/Analytics";
@@ -69,7 +68,7 @@ export class BusinessForm {
69
68
  if (!this.businessId)
70
69
  console.error(missingBusinessIdMessage);
71
70
  this.formController = new FormController(businessFormSchema);
72
- this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
71
+ this.api = Api({ authToken: this.authToken, apiOrigin: PROXY_API_ORIGIN });
73
72
  this.fetchData();
74
73
  }
75
74
  disconnectedCallback() {
@@ -97,7 +96,7 @@ export class BusinessForm {
97
96
  this.instantiateBusiness(response.data);
98
97
  }
99
98
  render() {
100
- 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'))))));
99
+ 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'))))));
101
100
  }
102
101
  static get is() { return "justifi-business-form"; }
103
102
  static get encapsulation() { return "shadow"; }
@@ -4,7 +4,6 @@ import { BusinessFormStep } from "../../utils/business-form-types";
4
4
  import { businessBankAccountSchema } from "../../schemas/business-bank-account-schema";
5
5
  import { bankAccountTypeOptions } from "../../utils/business-form-options";
6
6
  import { Api } from "../../../../api";
7
- import { config } from "../../../../../config";
8
7
  import { numberOnlyHandler } from "../../../form/utils";
9
8
  import { BankAccount } from "../../../../api/BankAccount";
10
9
  import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../../api/ComponentError";
@@ -105,7 +104,7 @@ export class BusinessBankAccountFormStep {
105
104
  ;
106
105
  componentWillLoad() {
107
106
  this.formController = new FormController(businessBankAccountSchema(this.allowOptionalFields));
108
- this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
107
+ this.api = Api({ authToken: this.authToken, apiOrigin: PROXY_API_ORIGIN });
109
108
  if (this.businessId && this.authToken) {
110
109
  this.fetchData();
111
110
  }
@@ -118,7 +117,7 @@ export class BusinessBankAccountFormStep {
118
117
  }
119
118
  render() {
120
119
  const bankAccountDefaultValue = this.formController.getInitialValues();
121
- 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 }))))));
120
+ 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 }))))));
122
121
  }
123
122
  static get is() { return "justifi-business-bank-account-form-step"; }
124
123
  static get properties() {
@@ -3,7 +3,6 @@ import { FormController } from "../../../form/form";
3
3
  import { BusinessFormStep } from "../../utils/business-form-types";
4
4
  import { Business } from "../../../../api/Business";
5
5
  import Api from "../../../../api/Api";
6
- import { config } from "../../../../../config";
7
6
  import { businessDocumentSchema } from "../../schemas/business-document-upload-schema";
8
7
  import { EntityDocument, EntityDocumentStorage } from "../../../../api/Document";
9
8
  import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../../api/ComponentError";
@@ -146,7 +145,7 @@ export class BusinessDocumentFormStep {
146
145
  return 'entities/document';
147
146
  }
148
147
  componentWillLoad() {
149
- this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
148
+ this.api = Api({ authToken: this.authToken, apiOrigin: PROXY_API_ORIGIN });
150
149
  if (this.businessId && this.authToken) {
151
150
  this.fetchData();
152
151
  }
@@ -179,7 +178,7 @@ export class BusinessDocumentFormStep {
179
178
  return (h("justifi-business-document-upload-input-group", { paymentVolume: this.paymentVolume, inputHandler: this.inputHandler, storeFiles: this.storeFiles, errors: this.errors }));
180
179
  }
181
180
  render() {
182
- 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))));
181
+ 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))));
183
182
  }
184
183
  static get is() { return "justifi-business-document-upload-form-step"; }
185
184
  static get properties() {
@@ -1,7 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { FormController } from "../../../form/form";
3
3
  import { BusinessFormStep } from "../../utils/business-form-types";
4
- import { config } from "../../../../../config";
5
4
  import { businessTermsConditionsSchema } from "../../schemas/business-terms-conditions-schema";
6
5
  import { Api } from "../../../../api";
7
6
  import { ComponentErrorCodes, ComponentErrorSeverity } from "../../../../api/ComponentError";
@@ -71,7 +70,7 @@ export class BusinessTermsConditionsFormStep {
71
70
  };
72
71
  }
73
72
  async componentWillLoad() {
74
- this.api = Api({ authToken: this.authToken, apiOrigin: config.proxyApiOrigin });
73
+ this.api = Api({ authToken: this.authToken, apiOrigin: PROXY_API_ORIGIN });
75
74
  this.formController = new FormController(businessTermsConditionsSchema(this.allowOptionalFields));
76
75
  if (this.businessId && this.authToken) {
77
76
  this.fetchData();
@@ -107,7 +106,7 @@ export class BusinessTermsConditionsFormStep {
107
106
  });
108
107
  }
109
108
  render() {
110
- 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 }))))));
109
+ 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 }))))));
111
110
  }
112
111
  static get is() { return "justifi-business-terms-conditions-form-step"; }
113
112
  static get properties() {
@@ -1,10 +1,9 @@
1
1
  import { h } from "@stencil/core";
2
- import { config } from "../../../config";
3
2
  import JustifiAnalytics from "../../api/Analytics";
4
3
  export class CardForm {
5
4
  constructor() {
6
5
  this.validationMode = undefined;
7
- this.iframeOrigin = config.iframeOrigin;
6
+ this.iframeOrigin = IFRAME_ORIGIN;
8
7
  this.singleLine = false;
9
8
  this.internalStyleOverrides = undefined;
10
9
  }
@@ -57,7 +56,7 @@ export class CardForm {
57
56
  return this.childRef.resize();
58
57
  }
59
58
  render() {
60
- return (h("justifi-payment-method-form", { key: '58843b8a47f35d716845de11f6a66d8960bc0776', ref: el => {
59
+ return (h("justifi-payment-method-form", { key: 'cc0ad5d8a262ff5c8422d247caed469a8dea3488', ref: el => {
61
60
  if (el) {
62
61
  this.childRef = el;
63
62
  }
@@ -99,7 +98,7 @@ export class CardForm {
99
98
  },
100
99
  "attribute": "iframe-origin",
101
100
  "reflect": false,
102
- "defaultValue": "config.iframeOrigin"
101
+ "defaultValue": "IFRAME_ORIGIN"
103
102
  },
104
103
  "singleLine": {
105
104
  "type": "boolean",
@@ -1,6 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { formatCurrency } from "../../utils/utils";
3
- import { config } from "../../../config";
4
3
  import { Checkout } from "../../api/Checkout";
5
4
  import { ComponentErrorSeverity } from "../../api/ComponentError";
6
5
  import { insuranceValues, insuranceValuesOn, validateInsuranceValues } from "../insurance/insurance-state";
@@ -27,7 +26,7 @@ export class CheckoutCore {
27
26
  });
28
27
  this.renderState = 'error';
29
28
  };
30
- this.iframeOrigin = config.iframeOrigin;
29
+ this.iframeOrigin = IFRAME_ORIGIN;
31
30
  this.authToken = undefined;
32
31
  this.getCheckout = undefined;
33
32
  this.complete = undefined;
@@ -123,7 +122,7 @@ export class CheckoutCore {
123
122
  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)))))));
124
123
  }
125
124
  render() {
126
- 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"))))));
125
+ return (h(StyledHost, { key: '085e3582c88e06c650d0ad52407982f9d0f713d5' }, h("div", { key: '15ff263db1588472d8338599b39336c6be74e629', class: "row gy-3 jfi-checkout-core" }, h("div", { key: '19115dc64b5d232fa47c4976da5b1b450204d5c7', class: "col-12" }, h("h2", { key: 'f995a6510cec38c9742f095952e9d9ad54c4a95a', class: "fs-5 fw-bold pb-3 jfi-header" }, "Summary"), this.summary), h("div", { key: 'd14ce872c6fa7be272f279c02a571fa005828678', class: "col-12" }, h("slot", { key: '5dd8c141deeecdb1689f34728c491ac985b047b0', name: "insurance" })), h("div", { key: '33d821b9cb8fb975911b3c5dccd72bf6d6a9333a', class: "col-12 mt-4" }, h("h2", { key: '2c1be6ad9636a3cc9bbd2fd0b61b2e15444a66ab', class: "fs-5 fw-bold pb-3 jfi-header" }, "Payment"), h("h3", { key: 'ebdced7b60f3b5a390067f5eb685533360988f01', class: "fs-6 fw-bold lh-lg" }, "Select payment type"), h("div", { key: 'eb110ff64cf495542e732e8065b23167394bc5e2', class: "d-flex flex-column" }, this.paymentType)), h("div", { key: 'a2960051d744f1069a52b91090adaa90ed7053f3', class: "col-12" }, h("div", { key: '03f01d243ebfa1268ca6c24b076b133e14709bd6', class: "d-flex justify-content-end" }, h(Button, { key: '01dd57ac8cb2c6e496d70421e21fd70533e6b5f6', type: "submit", variant: "primary", onClick: (e) => this.submit(e), disabled: this.isLoading, isLoading: this.isLoading, style: { width: '100%' } }, "Pay"))))));
127
126
  }
128
127
  static get is() { return "justifi-checkout-core"; }
129
128
  static get encapsulation() { return "shadow"; }
@@ -155,7 +154,7 @@ export class CheckoutCore {
155
154
  },
156
155
  "attribute": "iframe-origin",
157
156
  "reflect": false,
158
- "defaultValue": "config.iframeOrigin"
157
+ "defaultValue": "IFRAME_ORIGIN"
159
158
  },
160
159
  "authToken": {
161
160
  "type": "string",
@@ -1,5 +1,4 @@
1
1
  import { h } from "@stencil/core";
2
- import { config } from "../../../config";
3
2
  const PaymentMethodTypeLabels = {
4
3
  bankAccount: 'New bank account',
5
4
  card: 'New credit or debit card',
@@ -9,7 +8,7 @@ export class NewPaymentMethod {
9
8
  this.onPaymentMethodOptionClick = () => {
10
9
  this.paymentMethodOptionSelected.emit(this.paymentMethodOption);
11
10
  };
12
- this.iframeOrigin = config.iframeOrigin;
11
+ this.iframeOrigin = IFRAME_ORIGIN;
13
12
  this.authToken = undefined;
14
13
  this.accountId = undefined;
15
14
  this.paymentMethodOption = undefined;
@@ -69,7 +68,7 @@ export class NewPaymentMethod {
69
68
  }
70
69
  render() {
71
70
  var _a, _b, _c, _d;
72
- return (h("div", { key: '93c3e6d38d1e18be54006bf82cd6c8148df3518d', class: "payment-method" }, h("div", { key: '6dbb687fbd3e33a6095be7c39ec0974bcc4809b8', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '6c5be962cf5d357211c6716b53d0d8dd3fcf0bb0', 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: '796868afd192703a81d94897872dd9c0504cbc1e', 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));
71
+ return (h("div", { key: '55a43467070e4981a6fda7b529f329122f33dda8', class: "payment-method" }, h("div", { key: 'b86a20d2e51883dab9f2c46e6787417d498af17e', class: `payment-method-header p-3`, onClick: () => this.onPaymentMethodOptionClick() }, h("input", { key: '900b836be24e83816d1e6c915855b11ba3b605ee', type: "radio", name: "paymentMethodType", id: (_a = this.paymentMethodOption) === null || _a === void 0 ? void 0 : _a.id, value: (_b = this.paymentMethodOption) === null || _b === void 0 ? void 0 : _b.id, onClick: (event) => event.preventDefault(), checked: this.isSelected, class: "form-check-input me-2" }), h("label", { key: 'b1976293de17845cba7671606c50698b90878bcb', htmlFor: (_c = this.paymentMethodOption) === null || _c === void 0 ? void 0 : _c.id, class: "form-check-label" }, PaymentMethodTypeLabels[(_d = this.paymentMethodOption) === null || _d === void 0 ? void 0 : _d.id])), this.isSelected ? this.showNewPaymentMethodForm() : null));
73
72
  }
74
73
  static get is() { return "justifi-new-payment-method"; }
75
74
  static get properties() {
@@ -90,7 +89,7 @@ export class NewPaymentMethod {
90
89
  },
91
90
  "attribute": "iframe-origin",
92
91
  "reflect": false,
93
- "defaultValue": "config.iframeOrigin"
92
+ "defaultValue": "IFRAME_ORIGIN"
94
93
  },
95
94
  "authToken": {
96
95
  "type": "string",