@justifi/webcomponents 4.19.3 → 4.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/dist/cjs/{Analytics-a0a86d82.js → Analytics-3c89cfb4.js} +1 -1
  2. package/dist/cjs/business-details-core.cjs.entry.js +1 -1
  3. package/dist/cjs/check-pkg-version-4fa0367d.js +24 -0
  4. package/dist/cjs/custom-popper.cjs.entry.js +1894 -0
  5. package/dist/cjs/form-control-date_3.cjs.entry.js +4 -4
  6. package/dist/cjs/form-control-error-text_4.cjs.entry.js +9 -9
  7. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +2 -2
  8. package/dist/cjs/justifi-billing-form_2.cjs.entry.js +1 -1
  9. package/dist/cjs/justifi-business-details.cjs.entry.js +4 -2
  10. package/dist/cjs/justifi-business-form.cjs.entry.js +6 -4
  11. package/dist/cjs/justifi-card-form.cjs.entry.js +2 -2
  12. package/dist/cjs/justifi-checkout-core.cjs.entry.js +1 -1
  13. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -4
  14. package/dist/cjs/justifi-details.cjs.entry.js +1 -1
  15. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -2
  16. package/dist/cjs/justifi-payment-details.cjs.entry.js +5 -3
  17. package/dist/cjs/justifi-payment-form.cjs.entry.js +8 -6
  18. package/dist/cjs/justifi-payment-method-form.cjs.entry.js +1 -1
  19. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  20. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -3
  21. package/dist/cjs/justifi-payments-list.cjs.entry.js +12 -8
  22. package/dist/cjs/justifi-payout-details.cjs.entry.js +4 -2
  23. package/dist/cjs/justifi-payouts-list.cjs.entry.js +4 -2
  24. package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
  25. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +1 -1
  26. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -3
  27. package/dist/cjs/loader.cjs.js +1 -1
  28. package/dist/cjs/{package-99f4d813.js → package-3a9ac89d.js} +3 -1
  29. package/dist/cjs/payment-details-core.cjs.entry.js +1 -1
  30. package/dist/cjs/{payment.service-4b1c0a20.js → payment.service-47e2d84e.js} +5 -2
  31. package/dist/cjs/payments-list-core.cjs.entry.js +18 -13
  32. package/dist/cjs/payments-list-filters_2.cjs.entry.js +17266 -0
  33. package/dist/cjs/payout-details-core.cjs.entry.js +2 -2
  34. package/dist/cjs/payouts-list-core.cjs.entry.js +3 -3
  35. package/dist/cjs/styled-host-9e0b67b3.js +14 -0
  36. package/dist/cjs/utils-f8a6962c.js +25 -0
  37. package/dist/cjs/webcomponents.cjs.js +1 -1
  38. package/dist/collection/api/services/payment.service.js +5 -2
  39. package/dist/collection/collection-manifest.json +4 -1
  40. package/dist/collection/components/business-details/business-details.js +2 -0
  41. package/dist/collection/components/business-forms/business-form/business-form.js +3 -1
  42. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +3 -1
  43. package/dist/collection/components/checkout/checkout.js +4 -2
  44. package/dist/collection/components/form/form-control-date.js +26 -28
  45. package/dist/collection/components/form/form-control-select.js +45 -45
  46. package/dist/collection/components/form/form-control-text.js +34 -34
  47. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +2 -0
  48. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +3 -1
  49. package/dist/collection/components/payment-details/payment-details.js +2 -0
  50. package/dist/collection/components/payment-form/payment-form.js +5 -3
  51. package/dist/collection/components/payments-list/get-payments.js +2 -2
  52. package/dist/collection/components/payments-list/payments-list-core.js +14 -9
  53. package/dist/collection/components/payments-list/payments-list-filters.js +84 -0
  54. package/dist/collection/components/payments-list/payments-list.js +25 -2
  55. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  56. package/dist/collection/components/payout-details/payout-details.js +2 -0
  57. package/dist/collection/components/payouts-list/payouts-list-core.js +2 -2
  58. package/dist/collection/components/payouts-list/payouts-list.js +2 -0
  59. package/dist/collection/components/refund-form/refund-form.js +1 -1
  60. package/dist/collection/ui-components/custom-popper/custom-popper.js +239 -0
  61. package/dist/collection/ui-components/filters/table-filters-menu.js +89 -0
  62. package/dist/collection/ui-components/filters/utils.js +20 -0
  63. package/dist/collection/utils/check-pkg-version.js +19 -0
  64. package/dist/docs.json +545 -19
  65. package/dist/esm/{Analytics-e460ab05.js → Analytics-b0f6936a.js} +1 -1
  66. package/dist/esm/business-details-core.entry.js +1 -1
  67. package/dist/esm/check-pkg-version-10cadb08.js +22 -0
  68. package/dist/esm/custom-popper.entry.js +1890 -0
  69. package/dist/esm/form-control-date_3.entry.js +4 -4
  70. package/dist/esm/form-control-error-text_4.entry.js +9 -9
  71. package/dist/esm/justifi-bank-account-form.entry.js +2 -2
  72. package/dist/esm/justifi-billing-form_2.entry.js +1 -1
  73. package/dist/esm/justifi-business-details.entry.js +4 -2
  74. package/dist/esm/justifi-business-form.entry.js +6 -4
  75. package/dist/esm/justifi-card-form.entry.js +2 -2
  76. package/dist/esm/justifi-checkout-core.entry.js +1 -1
  77. package/dist/esm/justifi-checkout.entry.js +6 -4
  78. package/dist/esm/justifi-details.entry.js +1 -1
  79. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -2
  80. package/dist/esm/justifi-payment-details.entry.js +5 -3
  81. package/dist/esm/justifi-payment-form.entry.js +8 -6
  82. package/dist/esm/justifi-payment-method-form.entry.js +1 -1
  83. package/dist/esm/justifi-payment-provisioning-core.entry.js +1 -1
  84. package/dist/esm/justifi-payment-provisioning.entry.js +5 -3
  85. package/dist/esm/justifi-payments-list.entry.js +12 -8
  86. package/dist/esm/justifi-payout-details.entry.js +4 -2
  87. package/dist/esm/justifi-payouts-list.entry.js +4 -2
  88. package/dist/esm/justifi-refund-form.entry.js +2 -2
  89. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +1 -1
  90. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -3
  91. package/dist/esm/loader.js +1 -1
  92. package/dist/esm/{package-0935c5e5.js → package-2ef16e2c.js} +3 -1
  93. package/dist/esm/payment-details-core.entry.js +1 -1
  94. package/dist/esm/{payment.service-02c596b9.js → payment.service-21a3e2d3.js} +5 -2
  95. package/dist/esm/payments-list-core.entry.js +15 -10
  96. package/dist/esm/payments-list-filters_2.entry.js +17261 -0
  97. package/dist/esm/payout-details-core.entry.js +2 -2
  98. package/dist/esm/payouts-list-core.entry.js +3 -3
  99. package/dist/esm/styled-host-3171ae1f.js +12 -0
  100. package/dist/esm/utils-3a4d8f3a.js +22 -0
  101. package/dist/esm/webcomponents.js +1 -1
  102. package/dist/module/check-pkg-version.js +22 -0
  103. package/dist/module/custom-popper.d.ts +11 -0
  104. package/dist/module/custom-popper.js +6 -0
  105. package/dist/module/custom-popper2.js +1912 -0
  106. package/dist/module/form-control-date2.js +7 -7
  107. package/dist/module/form-control-select2.js +9 -9
  108. package/dist/module/form-control-text2.js +7 -7
  109. package/dist/module/justifi-business-details.js +2 -0
  110. package/dist/module/justifi-business-form.js +3 -1
  111. package/dist/module/justifi-checkout.js +4 -2
  112. package/dist/module/justifi-gross-payment-chart.js +2 -0
  113. package/dist/module/justifi-payment-details.js +2 -0
  114. package/dist/module/justifi-payment-form.js +5 -3
  115. package/dist/module/justifi-payment-provisioning.js +3 -1
  116. package/dist/module/justifi-payments-list.js +50 -14
  117. package/dist/module/justifi-payout-details.js +2 -0
  118. package/dist/module/justifi-payouts-list.js +2 -0
  119. package/dist/module/justifi-refund-form.js +1 -1
  120. package/dist/module/justifi-season-interruption-insurance.js +3 -1
  121. package/dist/module/package.js +3 -1
  122. package/dist/module/payment.service.js +5 -2
  123. package/dist/module/payments-list-core2.js +51 -17
  124. package/dist/module/payments-list-filters.d.ts +11 -0
  125. package/dist/module/payments-list-filters.js +6 -0
  126. package/dist/module/payments-list-filters2.js +17294 -0
  127. package/dist/module/payout-details-core2.js +1 -1
  128. package/dist/module/payouts-list-core2.js +2 -2
  129. package/dist/module/styled-host.js +1 -1
  130. package/dist/module/table-filters-menu.d.ts +11 -0
  131. package/dist/module/table-filters-menu.js +6 -0
  132. package/dist/module/table-filters-menu2.js +80 -0
  133. package/dist/types/api/Payment.d.ts +9 -0
  134. package/dist/types/api/services/payment.service.d.ts +2 -2
  135. package/dist/types/components/form/form-control-date.d.ts +4 -4
  136. package/dist/types/components/form/form-control-select.d.ts +6 -6
  137. package/dist/types/components/form/form-control-text.d.ts +4 -4
  138. package/dist/types/components/payments-list/get-payments.d.ts +2 -1
  139. package/dist/types/components/payments-list/payments-list-core.d.ts +6 -5
  140. package/dist/types/components/payments-list/payments-list-filters.d.ts +13 -0
  141. package/dist/types/components/payments-list/payments-list.d.ts +3 -2
  142. package/dist/types/components.d.ts +91 -10
  143. package/dist/types/ui-components/custom-popper/custom-popper.d.ts +21 -0
  144. package/dist/types/ui-components/filters/table-filters-menu.d.ts +11 -0
  145. package/dist/types/ui-components/filters/utils.d.ts +2 -0
  146. package/dist/types/utils/check-pkg-version.d.ts +1 -0
  147. package/dist/webcomponents/p-034fc302.entry.js +1 -0
  148. package/dist/webcomponents/{p-f5ebca3e.entry.js → p-1c04aacd.entry.js} +1 -1
  149. package/dist/webcomponents/{p-b676bca5.entry.js → p-232016ba.entry.js} +1 -1
  150. package/dist/webcomponents/p-2c51d29f.js +1 -0
  151. package/dist/webcomponents/p-35846553.js +1 -0
  152. package/dist/webcomponents/{p-bd278ff4.entry.js → p-37888614.entry.js} +1 -1
  153. package/dist/webcomponents/{p-be39c802.entry.js → p-3c7fac29.entry.js} +1 -1
  154. package/dist/webcomponents/{p-edb62047.entry.js → p-430f81c6.entry.js} +1 -1
  155. package/dist/webcomponents/p-44055818.js +1 -0
  156. package/dist/webcomponents/p-538fd427.entry.js +1 -0
  157. package/dist/webcomponents/{p-fb58feb5.entry.js → p-570a0f02.entry.js} +1 -1
  158. package/dist/webcomponents/p-57d7534f.entry.js +1 -0
  159. package/dist/webcomponents/{p-c9f8f7ec.entry.js → p-59cf5391.entry.js} +1 -1
  160. package/dist/webcomponents/p-60d3571e.entry.js +1 -0
  161. package/dist/webcomponents/{p-4e017b58.js → p-707bdf68.js} +1 -1
  162. package/dist/webcomponents/p-75139399.entry.js +1 -0
  163. package/dist/webcomponents/p-7771f64b.entry.js +1 -0
  164. package/dist/webcomponents/p-7ddfce86.entry.js +1 -0
  165. package/dist/webcomponents/p-8a7112a0.entry.js +1 -0
  166. package/dist/webcomponents/p-9add7d3e.entry.js +1 -0
  167. package/dist/webcomponents/p-9b154d98.entry.js +1 -0
  168. package/dist/webcomponents/p-ab92abb1.entry.js +1 -0
  169. package/dist/webcomponents/{p-4e01fec8.entry.js → p-b14da2fd.entry.js} +1 -1
  170. package/dist/webcomponents/p-b91bcbfc.js +1 -0
  171. package/dist/webcomponents/{p-124c1ecd.entry.js → p-bdc91c61.entry.js} +1 -1
  172. package/dist/webcomponents/{p-eccf2e8e.entry.js → p-c1772671.entry.js} +1 -1
  173. package/dist/webcomponents/{p-487b72a8.entry.js → p-c64ce69d.entry.js} +1 -1
  174. package/dist/webcomponents/{p-b6c3b7bc.entry.js → p-c740b6ca.entry.js} +1 -1
  175. package/dist/webcomponents/p-ce5fe369.entry.js +10 -0
  176. package/dist/webcomponents/p-d9579cd6.entry.js +1 -0
  177. package/dist/webcomponents/p-d99a5f30.entry.js +1 -0
  178. package/dist/webcomponents/p-dc048c3c.entry.js +1 -0
  179. package/dist/webcomponents/p-f2924369.js +1 -0
  180. package/dist/webcomponents/p-fb7f7a8c.entry.js +1 -0
  181. package/dist/webcomponents/p-ffddac99.entry.js +1 -0
  182. package/dist/webcomponents/webcomponents.esm.js +1 -1
  183. package/package.json +3 -1
  184. package/dist/cjs/styled-host-cc053016.js +0 -14
  185. package/dist/esm/styled-host-ab9da520.js +0 -12
  186. package/dist/webcomponents/p-07109641.entry.js +0 -1
  187. package/dist/webcomponents/p-11b6ed0c.entry.js +0 -1
  188. package/dist/webcomponents/p-15976984.entry.js +0 -1
  189. package/dist/webcomponents/p-1cf90026.entry.js +0 -1
  190. package/dist/webcomponents/p-3423ddfd.entry.js +0 -1
  191. package/dist/webcomponents/p-39c6f36a.entry.js +0 -1
  192. package/dist/webcomponents/p-421ed39d.entry.js +0 -1
  193. package/dist/webcomponents/p-69c18f39.entry.js +0 -1
  194. package/dist/webcomponents/p-6abb2a04.entry.js +0 -1
  195. package/dist/webcomponents/p-721dcf51.entry.js +0 -1
  196. package/dist/webcomponents/p-817da23c.entry.js +0 -1
  197. package/dist/webcomponents/p-a99032e1.entry.js +0 -1
  198. package/dist/webcomponents/p-ba4bae6f.js +0 -1
  199. package/dist/webcomponents/p-d4a44a1e.entry.js +0 -1
  200. package/dist/webcomponents/p-d78eb6ce.js +0 -1
  201. package/dist/webcomponents/p-e2b2213f.entry.js +0 -1
  202. package/dist/webcomponents/p-e3f4a2a6.js +0 -1
  203. package/dist/webcomponents/p-e7fd1357.entry.js +0 -1
@@ -18,12 +18,12 @@ const DateInput = class {
18
18
  this.inputHandler(name, target.value);
19
19
  this.formControlInput.emit({ name, value: target.value });
20
20
  };
21
- this.label = undefined;
22
21
  this.name = undefined;
22
+ this.label = undefined;
23
+ this.inputHandler = undefined;
24
+ this.defaultValue = undefined;
23
25
  this.helpText = undefined;
24
26
  this.errorText = undefined;
25
- this.defaultValue = undefined;
26
- this.inputHandler = undefined;
27
27
  this.disabled = undefined;
28
28
  }
29
29
  handleDefaultValueChange(newValue) {
@@ -36,7 +36,7 @@ const DateInput = class {
36
36
  this.dateInput.value = value;
37
37
  }
38
38
  render() {
39
- return (index.h(index.Host, { key: 'fa61a426a5a070d951fa425ae42a59add69a9d96', exportparts: "label,input,input-invalid" }, index.h("label", { key: 'e7679e6a66277a130414b59421b01d1f8e328cf2', part: "label", class: "form-label", htmlFor: this.name }, this.label), index.h("input", { key: 'b3fb4afd3181fec3eef3dfb851ab8965cb7bbfe7', type: "date", ref: el => (this.dateInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), index.h("form-control-help-text", { key: 'dbc9ac76d75521a7d1ee5cc34393471521ffa1c2', helpText: this.helpText, name: this.name }), index.h("form-control-error-text", { key: '0f9731278250bde69dd7dee9a7b44e339d919774', errorText: this.errorText, name: this.name })));
39
+ return (index.h(index.Host, { key: 'dfbfc1ea5d7139a1c1d30c7bd84b33a9c22604cf', exportparts: "label,input,input-invalid" }, index.h("label", { key: '99a01781ecd1421fa439ad08f77d3f750a55eaee', part: "label", class: "form-label", htmlFor: this.name }, this.label), index.h("input", { key: 'd8db68d8a62e0f982c3aa7d4bd3a5cf7c2681db3', type: "date", ref: el => (this.dateInput = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText && 'input-invalid'}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', disabled: this.disabled }), index.h("form-control-help-text", { key: '1ee2ccdc1e409c5427e39efe2929b830960edce9', helpText: this.helpText, name: this.name }), index.h("form-control-error-text", { key: '1db50cca364b4d059dac37243cf83bb4b11459cd', errorText: this.errorText, name: this.name })));
40
40
  }
41
41
  static get watchers() { return {
42
42
  "defaultValue": ["handleDefaultValueChange"]
@@ -46,13 +46,13 @@ const SelectInput = class {
46
46
  this.updateInput = (newValue) => {
47
47
  this.selectElement.value = newValue;
48
48
  };
49
- this.label = undefined;
50
49
  this.name = undefined;
50
+ this.label = undefined;
51
+ this.options = undefined;
52
+ this.inputHandler = undefined;
53
+ this.defaultValue = undefined;
51
54
  this.helpText = undefined;
52
55
  this.errorText = undefined;
53
- this.defaultValue = undefined;
54
- this.inputHandler = undefined;
55
- this.options = undefined;
56
56
  this.disabled = undefined;
57
57
  }
58
58
  handleDefaultValueChange(newValue) {
@@ -63,7 +63,7 @@ const SelectInput = class {
63
63
  }
64
64
  render() {
65
65
  var _a;
66
- return (index.h(index.Host, { key: '99449e3724103b12af7f2a4573831961074a484a', exportparts: "label,input,input-invalid" }, index.h("div", { key: 'd73e89d43da9968b687afece24794d9472fec6b5', class: "form-group d-flex flex-column" }, index.h("label", { key: '6964c55858fc3cf96a137e1061c7f66831105348', part: "label", class: "form-label", htmlFor: this.name }, this.label), index.h("select", { key: '5b1a09a607ad9638915f5e70f2164f6010020438', ref: el => (this.selectElement = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText ? 'input-invalid' : ''}`, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (index.h("option", { value: option.value }, option.label)))), index.h("form-control-help-text", { key: '62d862921d463c98e56888293c878624f7311548', helpText: this.helpText, name: this.name }), index.h("form-control-error-text", { key: '0b1c4d4752965fb058208c72c7f1c3872d1e0561', errorText: this.errorText, name: this.name }))));
66
+ return (index.h(index.Host, { key: 'e62a08c8ba656cc7e82c0f8f7facccc086fbafe7', exportparts: "label,input,input-invalid" }, index.h("div", { key: 'f9a4c428311f32f2585ca9259ba31909187b809d', class: "form-group d-flex flex-column" }, index.h("label", { key: '006a3bd7ae2874bf3fa24e2c053808e51b652d9a', part: "label", class: "form-label", htmlFor: this.name }, this.label), index.h("select", { key: 'f0ac14e8b74c939b4928b9ce800118f660c90613', ref: el => (this.selectElement = el), id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, part: `input ${this.errorText ? 'input-invalid' : ''}`, class: this.errorText ? 'form-select is-invalid' : 'form-select', disabled: this.disabled }, (_a = this.options) === null || _a === void 0 ? void 0 : _a.map(option => (index.h("option", { value: option.value }, option.label)))), index.h("form-control-help-text", { key: '3a60ff2a2af7668013baf2767d97095379b2d37e', helpText: this.helpText, name: this.name }), index.h("form-control-error-text", { key: '8c4049d16408f305b8bf1e8a49c91db56991a840', errorText: this.errorText, name: this.name }))));
67
67
  }
68
68
  static get watchers() { return {
69
69
  "defaultValue": ["handleDefaultValueChange"]
@@ -87,13 +87,13 @@ const TextInput = class {
87
87
  inputElement.value = newValue || '';
88
88
  }
89
89
  };
90
- this.label = undefined;
91
90
  this.name = undefined;
91
+ this.label = undefined;
92
+ this.inputHandler = undefined;
93
+ this.defaultValue = undefined;
92
94
  this.helpText = undefined;
93
95
  this.errorText = undefined;
94
- this.defaultValue = undefined;
95
96
  this.maxLength = undefined;
96
- this.inputHandler = undefined;
97
97
  this.keyDownHandler = undefined;
98
98
  this.disabled = undefined;
99
99
  }
@@ -104,7 +104,7 @@ const TextInput = class {
104
104
  this.updateInput(this.defaultValue);
105
105
  }
106
106
  render() {
107
- return (index.h(index.Host, { key: '1194532f81831734543bad80860da14f8a5ad856', exportparts: "label,input,input-invalid" }, index.h("div", { key: '296538cf90b62f8041e21620aa06b4074f68b71a', class: "form-group d-flex flex-column" }, index.h("label", { key: '7c009ce96124e58f9657dba2565ef298225f10f7', part: "label", class: "form-label", htmlFor: this.name }, this.label), index.h("input", { key: '4b33cb700aecf4d0a359366ba2e0d248c602d904', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: `input ${this.errorText ? 'input-invalid ' : ''}${this.disabled ? ' input-disabled' : ''}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), index.h("form-control-help-text", { key: '7a279d72bb262fcb044b5b0cc31703878ce9f444', helpText: this.helpText, name: this.name }), index.h("form-control-error-text", { key: '00bea288a99f626806697a98b6dca3f3298dc0b3', errorText: this.errorText, name: this.name }))));
107
+ return (index.h(index.Host, { key: 'fddfb4134747c8d8caf6594f5450e57fa4c2dc3e', exportparts: "label,input,input-invalid" }, index.h("div", { key: 'bbd0174fb56d911992907e0a2c453b9d1412b636', class: "form-group d-flex flex-column" }, index.h("label", { key: 'f5d9d3d6c4694d08d86963df37adbd1b334593b3', part: "label", class: "form-label", htmlFor: this.name }, this.label), index.h("input", { key: 'ae49e4c86782fd0901c1a0e8530981cf1b0b7c65', id: this.name, name: this.name, onBlur: this.formControlBlur.emit, onInput: this.handleFormControlInput, onKeyDown: this.keyDownHandler, onPaste: this.keyDownHandler, maxLength: this.maxLength, part: `input ${this.errorText ? 'input-invalid ' : ''}${this.disabled ? ' input-disabled' : ''}`, class: this.errorText ? 'form-control is-invalid' : 'form-control', type: "text", disabled: this.disabled }), index.h("form-control-help-text", { key: '1e1bbc8d39e5caeca559515f72eb17ca9b3ab0b1', helpText: this.helpText, name: this.name }), index.h("form-control-error-text", { key: '44c121cb0eb69840440e696e784c7a73689a42f2', errorText: this.errorText, name: this.name }))));
108
108
  }
109
109
  get el() { return index.getElement(this); }
110
110
  static get watchers() { return {
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const config = require('./config-05767cba.js');
7
- const Analytics = require('./Analytics-a0a86d82.js');
8
- require('./package-99f4d813.js');
7
+ const Analytics = require('./Analytics-3c89cfb4.js');
8
+ require('./package-3a9ac89d.js');
9
9
  require('./Api-b98b256f.js');
10
10
 
11
11
  const BankAccountForm = class {
@@ -7,7 +7,7 @@ const index_esm = require('./index.esm-52757963.js');
7
7
  const schemaValidations = require('./schema-validations-0a7e46a3.js');
8
8
  const stateOptions = require('./state-options-4fbcb48a.js');
9
9
  const utils = require('./utils-ddacfc44.js');
10
- const styledHost = require('./styled-host-cc053016.js');
10
+ const styledHost = require('./styled-host-9e0b67b3.js');
11
11
  require('./business-form-options-5db0bd5e.js');
12
12
  require('./Business-aa799fec.js');
13
13
  require('./helpers-602962eb.js');
@@ -8,12 +8,13 @@ const business_service = require('./business.service-031c0084.js');
8
8
  const Business = require('./Business-aa799fec.js');
9
9
  const ComponentError = require('./ComponentError-233ac749.js');
10
10
  const utils = require('./utils-7a478c37.js');
11
- const Analytics = require('./Analytics-a0a86d82.js');
11
+ const Analytics = require('./Analytics-3c89cfb4.js');
12
+ const checkPkgVersion = require('./check-pkg-version-4fa0367d.js');
12
13
  require('./config-05767cba.js');
13
14
  require('./Api-b98b256f.js');
14
15
  require('./helpers-602962eb.js');
15
16
  require('./state-options-4fbcb48a.js');
16
- require('./package-99f4d813.js');
17
+ require('./package-3a9ac89d.js');
17
18
 
18
19
  const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
19
20
  var _a;
@@ -52,6 +53,7 @@ const BusinessDetails = class {
52
53
  this.getBusiness = undefined;
53
54
  }
54
55
  componentWillLoad() {
56
+ checkPkgVersion.checkPkgVersion();
55
57
  this.analytics = new Analytics.JustifiAnalytics(this);
56
58
  this.initializeGetBusiness();
57
59
  }
@@ -13,13 +13,14 @@ require('./Payout-a2dd7b01.js');
13
13
  const config = require('./config-05767cba.js');
14
14
  const businessFormTypes = require('./business-form-types-6e1fcda3.js');
15
15
  const Business = require('./Business-aa799fec.js');
16
- const Analytics = require('./Analytics-a0a86d82.js');
17
- const styledHost = require('./styled-host-cc053016.js');
16
+ const Analytics = require('./Analytics-3c89cfb4.js');
17
+ const styledHost = require('./styled-host-9e0b67b3.js');
18
+ const checkPkgVersion = require('./check-pkg-version-4fa0367d.js');
18
19
  require('./schema-validations-0a7e46a3.js');
19
20
  require('./state-options-4fbcb48a.js');
20
21
  require('./business-form-options-5db0bd5e.js');
21
22
  require('./helpers-602962eb.js');
22
- require('./package-99f4d813.js');
23
+ require('./package-3a9ac89d.js');
23
24
 
24
25
  const businessFormSchema = index_esm.create$3(Object.assign(Object.assign({}, businessAdditionalQuestionsSchema.businessCoreInfoSchema().fields), { legal_address: businessIdentitySchema.addressSchema(), additional_questions: businessAdditionalQuestionsSchema.additionalQuestionsSchema(), representative: businessIdentitySchema.identitySchema('representative') }));
25
26
 
@@ -78,6 +79,7 @@ const BusinessForm = class {
78
79
  this.errorMessage = undefined;
79
80
  }
80
81
  componentWillLoad() {
82
+ checkPkgVersion.checkPkgVersion();
81
83
  this.analytics = new Analytics.JustifiAnalytics(this);
82
84
  const missingAuthTokenMessage = 'Warning: Missing auth-token. The form will not be functional without it.';
83
85
  const missingBusinessIdMessage = 'Warning: Missing business-id. The form requires an existing business-id to function.';
@@ -114,7 +116,7 @@ const BusinessForm = class {
114
116
  this.instantiateBusiness(response.data);
115
117
  }
116
118
  render() {
117
- return (index.h(styledHost.StyledHost, { key: 'e388e1e7658969f0e5687102a62345e2790da97a', exportparts: "label,input,input-invalid" }, index.h("form", { key: 'c22a562e57539e982a071b1906e5bf0bcc249e7d', onSubmit: this.validateAndSubmit }, index.h("div", { key: '44243cd965b448f5be9058880aa2deb32f4ce8dc', class: "row gap-3" }, index.h("h1", { key: 'd666ed8ddacc8ac05d7f42c2f4824208b92cdb3f' }, this.title), index.h("form-alert", { key: 'b1d4025078c4373a789609f2e14d309f0ee280fe', text: this.errorMessage, hideAlert: this.hideErrors }), index.h("div", { key: 'cdc1d597a5dbf9581182de302a453e4ea98bb28f', class: "col-12 mb-4" }, index.h("justifi-business-core-info", { key: '2333164de020eadf54da91cabdcbeb87a2fd1b75', formController: this.formController })), index.h("div", { key: '74eafa5c419f6d6fe2eb3eeb8521e12175f7ee3a', class: "col-12 mb-4" }, index.h("justifi-legal-address-form", { key: '1e5a373f95a77bf3aba1a9f3538b3a2ac3dbf716', formController: this.formController })), index.h("div", { key: 'ec9f6195f3674b426722463341445f0ed1746178', class: "col-12 mb-4" }, index.h("justifi-additional-questions", { key: '0adbc60492f4ad71e3877c446376999418b7dc15', formController: this.formController })), index.h("div", { key: 'cdfb8d0d40e9f888afd9c23cd97d33d861d16f62', class: "col-12 mb-4" }, index.h("justifi-business-representative", { key: '4d03ec95b7c2918494c9970b3e6a5826d4d69a10', formController: this.formController })), index.h("div", { key: '0682dba469e57a938b175499312de5d5c4f55a69', class: "col-12 d-flex flex-row-reverse" }, index.h("button", { key: '64791e2742ee129787094c7123e87c4262735556', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: businessFormTypes.BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
119
+ return (index.h(styledHost.StyledHost, { key: '2f28b3e44c64d6ea1ac0d8584946927f6c9c3d05', exportparts: "label,input,input-invalid" }, index.h("form", { key: '5e57787b7dcd649c3523dc49d0a6946138643c7c', onSubmit: this.validateAndSubmit }, index.h("div", { key: '0ee6212aa6157ade79ab9b2ff5eb700549a8a916', class: "row gap-3" }, index.h("h1", { key: '84824314dd924cdab149c2b62b7e01b07dbf5d28' }, this.title), index.h("form-alert", { key: 'dca6d7ef6bcddd3090f44e5ccf9199bbd441dc87', text: this.errorMessage, hideAlert: this.hideErrors }), index.h("div", { key: 'a022912c284d63afbf9ce698b145d964d720b110', class: "col-12 mb-4" }, index.h("justifi-business-core-info", { key: 'be264b806255b790a166b8a3349d78845c6c8225', formController: this.formController })), index.h("div", { key: 'b3a52da227a71f941941f66b758f718cdc3b7800', class: "col-12 mb-4" }, index.h("justifi-legal-address-form", { key: '258dc5ebabc0e2dfaa8de28534238ef80a4f951d', formController: this.formController })), index.h("div", { key: '9dd5d30daf37d90a689333640cd1630000ee5e25', class: "col-12 mb-4" }, index.h("justifi-additional-questions", { key: 'aa1cdf3a39170fcefbd07afcce193ed36430dc5b', formController: this.formController })), index.h("div", { key: 'a8cd6655a6408bef11c9ad442ecae7a0b5e3c50d', class: "col-12 mb-4" }, index.h("justifi-business-representative", { key: '33db8cd22d22b694917332941b89b7535bd19201', formController: this.formController })), index.h("div", { key: '99d46400c8d46e5a3ca6747e5bae70bf5652a367', class: "col-12 d-flex flex-row-reverse" }, index.h("button", { key: '8b858727a11d5ec5f855c446f34da3c1d6253563', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: businessFormTypes.BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
118
120
  }
119
121
  };
120
122
  BusinessForm.style = JustifiBusinessFormStyle0;
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const config = require('./config-05767cba.js');
7
- const Analytics = require('./Analytics-a0a86d82.js');
8
- require('./package-99f4d813.js');
7
+ const Analytics = require('./Analytics-3c89cfb4.js');
8
+ require('./package-3a9ac89d.js');
9
9
  require('./Api-b98b256f.js');
10
10
 
11
11
  const CardForm = class {
@@ -8,7 +8,7 @@ const config = require('./config-05767cba.js');
8
8
  const ComponentError = require('./ComponentError-233ac749.js');
9
9
  const insuranceState = require('./insurance-state-80e24caf.js');
10
10
  const button = require('./button-3f400a66.js');
11
- const styledHost = require('./styled-host-cc053016.js');
11
+ const styledHost = require('./styled-host-9e0b67b3.js');
12
12
  const skeleton = require('./skeleton-748c5dde.js');
13
13
 
14
14
  class Checkout {
@@ -10,8 +10,9 @@ require('./Pagination-0da8f095.js');
10
10
  require('./Payment-1a8a8ca6.js');
11
11
  require('./Payout-a2dd7b01.js');
12
12
  const config = require('./config-05767cba.js');
13
- const Analytics = require('./Analytics-a0a86d82.js');
14
- require('./package-99f4d813.js');
13
+ const Analytics = require('./Analytics-3c89cfb4.js');
14
+ const checkPkgVersion = require('./check-pkg-version-4fa0367d.js');
15
+ require('./package-3a9ac89d.js');
15
16
 
16
17
  const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
17
18
  var _a;
@@ -101,6 +102,7 @@ const Checkout = class {
101
102
  this.errorMessage = '';
102
103
  }
103
104
  componentWillLoad() {
105
+ checkPkgVersion.checkPkgVersion();
104
106
  this.analytics = new Analytics.JustifiAnalytics(this);
105
107
  this.initializeGetCheckout();
106
108
  }
@@ -135,11 +137,11 @@ const Checkout = class {
135
137
  this.checkoutCoreRef.fillBillingForm(fields);
136
138
  }
137
139
  render() {
138
- return (index.h("justifi-checkout-core", { key: 'd2f6bfed1be767edcf4ba21cddc503ff5efbec1a', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, ref: el => {
140
+ return (index.h("justifi-checkout-core", { key: 'ea50f0df79dae86294ccfdf2ec523f0fb81433e4', getCheckout: this.getCheckout, authToken: this.authToken, complete: this.complete, disableCreditCard: this.disableCreditCard, disableBankAccount: this.disableBankAccount, disableBnpl: this.disableBnpl, disablePaymentMethodGroup: this.disablePaymentMethodGroup, ref: el => {
139
141
  if (el) {
140
142
  this.checkoutCoreRef = el;
141
143
  }
142
- } }, index.h("div", { key: '45ac1bea74ca8ef7999211b51fe7791225d61f00', slot: "insurance" }, index.h("slot", { key: '13e051844cc7cb4aed98076ccd64954b2dd68228', name: "insurance" }))));
144
+ } }, index.h("div", { key: '301247cf7c916ba1c6c5464e3c2f0226d0f6f041', slot: "insurance" }, index.h("slot", { key: 'a75ff85e5a6d954e7c0d3c24abac518a2765f889', name: "insurance" }))));
143
145
  }
144
146
  static get watchers() { return {
145
147
  "authToken": ["propChanged"],
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
6
  const utils = require('./utils-c1d2e426.js');
7
- const styledHost = require('./styled-host-cc053016.js');
7
+ const styledHost = require('./styled-host-9e0b67b3.js');
8
8
 
9
9
  const Details = class {
10
10
  constructor(hostRef) {
@@ -8,8 +8,9 @@ const Api = require('./Api-b98b256f.js');
8
8
  const ComponentError = require('./ComponentError-233ac749.js');
9
9
  const utils = require('./utils-7a478c37.js');
10
10
  const utils$1 = require('./utils-c1d2e426.js');
11
- const Analytics = require('./Analytics-a0a86d82.js');
12
- require('./package-99f4d813.js');
11
+ const Analytics = require('./Analytics-3c89cfb4.js');
12
+ const checkPkgVersion = require('./check-pkg-version-4fa0367d.js');
13
+ require('./package-3a9ac89d.js');
13
14
 
14
15
  class ReportsService {
15
16
  async fetchGrossVolumeChartData(accountId, authToken) {
@@ -61,6 +62,7 @@ const GrossPaymentChart = class {
61
62
  this.errorMessage = null;
62
63
  }
63
64
  componentWillLoad() {
65
+ checkPkgVersion.checkPkgVersion();
64
66
  this.analytics = new Analytics.JustifiAnalytics(this);
65
67
  this.initializeGetGrossPayment();
66
68
  }
@@ -3,17 +3,18 @@
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-4b1c0a20.js');
6
+ const payment_service = require('./payment.service-47e2d84e.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-a0a86d82.js');
13
+ const Analytics = require('./Analytics-3c89cfb4.js');
14
+ const checkPkgVersion = require('./check-pkg-version-4fa0367d.js');
14
15
  require('./Api-b98b256f.js');
15
16
  require('./config-05767cba.js');
16
- require('./package-99f4d813.js');
17
+ require('./package-3a9ac89d.js');
17
18
 
18
19
  const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
19
20
  var _a;
@@ -57,6 +58,7 @@ const PaymentDetails = class {
57
58
  this.errorMessage = null;
58
59
  }
59
60
  componentWillLoad() {
61
+ checkPkgVersion.checkPkgVersion();
60
62
  this.analytics = new Analytics.JustifiAnalytics(this);
61
63
  this.initializeGetPaymentDetails();
62
64
  }
@@ -10,10 +10,11 @@ const utils = require('./utils-af1b60a9.js');
10
10
  const config = require('./config-05767cba.js');
11
11
  const ComponentError = require('./ComponentError-233ac749.js');
12
12
  const utils$1 = require('./utils-7a478c37.js');
13
- const Analytics = require('./Analytics-a0a86d82.js');
13
+ const Analytics = require('./Analytics-3c89cfb4.js');
14
14
  const button = require('./button-3f400a66.js');
15
- const styledHost = require('./styled-host-cc053016.js');
16
- require('./package-99f4d813.js');
15
+ const styledHost = require('./styled-host-9e0b67b3.js');
16
+ const checkPkgVersion = require('./check-pkg-version-4fa0367d.js');
17
+ require('./package-3a9ac89d.js');
17
18
  require('./Api-b98b256f.js');
18
19
 
19
20
  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)}";
@@ -36,6 +37,7 @@ const PaymentForm = class {
36
37
  this.selectedPaymentMethodType = Payment.PaymentMethodTypes.card;
37
38
  }
38
39
  componentWillLoad() {
40
+ checkPkgVersion.checkPkgVersion();
39
41
  this.analytics = new Analytics.JustifiAnalytics(this);
40
42
  if (!this.validateProps()) {
41
43
  this.errorEvent.emit({
@@ -122,15 +124,15 @@ const PaymentForm = class {
122
124
  }
123
125
  }
124
126
  render() {
125
- return (index.h(styledHost.StyledHost, { key: '38bd6cca38d9068fa9277a8568a98f261a4cc616' }, index.h("form", { key: 'fec19f5e2f11934e6783124c4c437a2d3947f596', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (index.h("div", { key: '18001f78e03336d01de8473a57e3e228e9fce201', class: "col-12" }, index.h("justifi-payment-method-selector", { key: '260ac1ade3ccfe6baf518eb856bdf4d380025620', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), index.h("div", { key: 'f6ade2336314e05f2bdce75df8577939efe33e3b', class: "col-12" }, index.h("justifi-payment-method-form", { key: 'ad8e5b121b8425175f7ac7f38ab24dfba1801a28', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.config.iframeOrigin, ref: el => {
127
+ return (index.h(styledHost.StyledHost, { key: 'f7d035a9ed8b16016493aa07a85a6b4d6d83b5f5' }, index.h("form", { key: 'fb9354b439332ef4ee67e915f27b60b9b744e6e2', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (index.h("div", { key: '303fbccf9beb30c1d822f0ac148128dfba9d158f', class: "col-12" }, index.h("justifi-payment-method-selector", { key: 'f71353d3f90ab50461a57ce3738ea853ca4d1cc3', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), index.h("div", { key: 'd9024a406dcde487ff2bb7d34385da0a1be8aef5', class: "col-12" }, index.h("justifi-payment-method-form", { key: '010488c96f1b6b5af049b89151cea9ce61f263bb', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.config.iframeOrigin, ref: el => {
126
128
  if (el) {
127
129
  this.paymentMethodFormRef = el;
128
130
  }
129
- } })), index.h("div", { key: '29f15f1cece3e07a569e514d08bf9996405699c6', class: "col-12" }, index.h("justifi-billing-form", { key: '9928924cc29bfa5c5e46ada294cb26da0c1d222b', legend: "Billing Info", ref: el => {
131
+ } })), index.h("div", { key: 'c8b41e9d6bc0d21db4bc1efa12852480ed4a0bbd', class: "col-12" }, index.h("justifi-billing-form", { key: '2226122296e6b9da8359b90fe563b6c4342c72f3', legend: "Billing Info", ref: el => {
130
132
  if (el) {
131
133
  this.billingFormRef = el;
132
134
  }
133
- } })), index.h("slot", { key: 'c36583ab34bc105b506df27aec02898455855cec', name: 'insurance' }), index.h("div", { key: 'cc38292ae8a59bc6f4624a8535e8b7c93e6f3a35', class: "col-12" }, index.h(button.Button, { key: 'e5fe0f50ee2322ab2a199a6229015c9daa198cc0', variant: "primary", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, isLoading: this.isLoading, "data-testid": "submit-button", style: { width: '100%' } }, this.submitButtonText || 'Submit')))));
135
+ } })), index.h("slot", { key: '5aa12164db0d1ac4570db49b7a1bc527d974a8ab', name: 'insurance' }), index.h("div", { key: '5b0ad786dcf96a4c83696b1e3d1cd09345313807', class: "col-12" }, index.h(button.Button, { key: 'b3a55eaf9403d33a0e0769ca2c6c42b086f4da9a', 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')))));
134
136
  }
135
137
  };
136
138
  PaymentForm.style = JustifiPaymentFormStyle0;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const _package = require('./package-99f4d813.js');
6
+ const _package = require('./package-3a9ac89d.js');
7
7
  const utils = require('./utils-af1b60a9.js');
8
8
 
9
9
  var iframeResizer = {exports: {}};
@@ -6,7 +6,7 @@ const index = require('./index-fb499e95.js');
6
6
  const businessFormTypes = require('./business-form-types-6e1fcda3.js');
7
7
  const ComponentError = require('./ComponentError-233ac749.js');
8
8
  const helpers = require('./helpers-602962eb.js');
9
- const styledHost = require('./styled-host-cc053016.js');
9
+ const styledHost = require('./styled-host-9e0b67b3.js');
10
10
  require('./state-options-4fbcb48a.js');
11
11
 
12
12
  const PaymentProvisioningCore = class {
@@ -3,13 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-fb499e95.js');
6
- const Analytics = require('./Analytics-a0a86d82.js');
6
+ const Analytics = require('./Analytics-3c89cfb4.js');
7
7
  const ComponentError = require('./ComponentError-233ac749.js');
8
8
  const paymentProvisioningActions = require('./payment-provisioning-actions-06466dda.js');
9
9
  const business_service = require('./business.service-031c0084.js');
10
10
  const config = require('./config-05767cba.js');
11
11
  const Api = require('./Api-b98b256f.js');
12
- require('./package-99f4d813.js');
12
+ const checkPkgVersion = require('./check-pkg-version-4fa0367d.js');
13
+ require('./package-3a9ac89d.js');
13
14
  require('./utils-7a478c37.js');
14
15
 
15
16
  class ProvisionService {
@@ -38,6 +39,7 @@ const PaymentProvisioning = class {
38
39
  this.initializeApi();
39
40
  }
40
41
  componentWillLoad() {
42
+ checkPkgVersion.checkPkgVersion();
41
43
  this.analytics = new Analytics.JustifiAnalytics(this);
42
44
  this.initializeApi();
43
45
  }
@@ -67,7 +69,7 @@ const PaymentProvisioning = class {
67
69
  }
68
70
  }
69
71
  render() {
70
- return (index.h("justifi-payment-provisioning-core", { key: 'a93ee23fabf4bdeb381e924bfdf684ddd183075a', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
72
+ return (index.h("justifi-payment-provisioning-core", { key: '82b3601d3349a92bed1aa93e2a847039d7493c04', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
71
73
  }
72
74
  static get watchers() { return {
73
75
  "authToken": ["propChanged"],
@@ -3,22 +3,23 @@
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-4b1c0a20.js');
6
+ const payment_service = require('./payment.service-47e2d84e.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-a0a86d82.js');
13
+ const Analytics = require('./Analytics-3c89cfb4.js');
14
+ const checkPkgVersion = require('./check-pkg-version-4fa0367d.js');
15
+ const config = require('./config-05767cba.js');
14
16
  require('./Api-b98b256f.js');
15
- require('./config-05767cba.js');
16
- require('./package-99f4d813.js');
17
+ require('./package-3a9ac89d.js');
17
18
 
18
- const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
19
+ const makeGetPayments = ({ id, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError }) => {
19
20
  var _a, _b;
20
21
  try {
21
- const response = await service.fetchPayments(id, authToken, params);
22
+ const response = await service.fetchPayments(id, authToken, params, apiOrigin);
22
23
  if (!response.error) {
23
24
  const pagingInfo = Object.assign({}, response.page_info);
24
25
  const payments = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new Payment.Payment(dataItem))) || [];
@@ -52,12 +53,14 @@ const PaymentsList = class {
52
53
  this.errorMessage = event.detail.message;
53
54
  this.errorEvent.emit(event.detail);
54
55
  };
55
- this.accountId = undefined;
56
- this.authToken = undefined;
57
56
  this.getPayments = undefined;
58
57
  this.errorMessage = null;
58
+ this.accountId = undefined;
59
+ this.authToken = undefined;
60
+ this.apiOrigin = config.config.proxyApiOrigin;
59
61
  }
60
62
  componentWillLoad() {
63
+ checkPkgVersion.checkPkgVersion();
61
64
  this.analytics = new Analytics.JustifiAnalytics(this);
62
65
  this.initializeGetPayments();
63
66
  }
@@ -73,6 +76,7 @@ const PaymentsList = class {
73
76
  id: this.accountId,
74
77
  authToken: this.authToken,
75
78
  service: new payment_service.PaymentService(),
79
+ apiOrigin: this.apiOrigin,
76
80
  });
77
81
  }
78
82
  else {
@@ -10,10 +10,11 @@ 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-a0a86d82.js');
13
+ const Analytics = require('./Analytics-3c89cfb4.js');
14
+ const checkPkgVersion = require('./check-pkg-version-4fa0367d.js');
14
15
  require('./Api-b98b256f.js');
15
16
  require('./config-05767cba.js');
16
- require('./package-99f4d813.js');
17
+ require('./package-3a9ac89d.js');
17
18
 
18
19
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
19
20
  var _a;
@@ -59,6 +60,7 @@ const PayoutDetails = class {
59
60
  this.errorMessage = null;
60
61
  }
61
62
  componentWillLoad() {
63
+ checkPkgVersion.checkPkgVersion();
62
64
  this.analytics = new Analytics.JustifiAnalytics(this);
63
65
  this.initializeServices();
64
66
  }
@@ -11,10 +11,11 @@ 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-a0a86d82.js');
14
+ const Analytics = require('./Analytics-3c89cfb4.js');
15
+ const checkPkgVersion = require('./check-pkg-version-4fa0367d.js');
15
16
  require('./Api-b98b256f.js');
16
17
  require('./config-05767cba.js');
17
- require('./package-99f4d813.js');
18
+ require('./package-3a9ac89d.js');
18
19
 
19
20
  const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
20
21
  var _a, _b;
@@ -61,6 +62,7 @@ const PayoutsList = class {
61
62
  this.errorMessage = null;
62
63
  }
63
64
  componentWillLoad() {
65
+ checkPkgVersion.checkPkgVersion();
64
66
  this.analytics = new Analytics.JustifiAnalytics(this);
65
67
  this.initializeServices();
66
68
  }
@@ -10,7 +10,7 @@ require('./Payment-1a8a8ca6.js');
10
10
  require('./Payout-a2dd7b01.js');
11
11
  const config = require('./config-05767cba.js');
12
12
  const formInputMasks = require('./form-input-masks-0879c139.js');
13
- const styledHost = require('./styled-host-cc053016.js');
13
+ const styledHost = require('./styled-host-9e0b67b3.js');
14
14
 
15
15
  const RefundFormSchema = index_esm.create$3().shape({
16
16
  amount: index_esm.create$5()
@@ -98,7 +98,7 @@ const RefundForm = class {
98
98
  }
99
99
  render() {
100
100
  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))))));
101
+ return (index.h(styledHost.StyledHost, { key: 'bb3d26c841a9697e5881426fb92027e1fff62e9f' }, index.h("h1", { key: 'b89354d3dec27b3e496af20957fa4d30b7c2e99e' }, "Refund"), this.refundInfoText && (index.h("div", { key: '493ff3e052c5b28bb382355dd32ebf407446346d', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, index.h("img", { key: '72211dc3be8aef8bb87aaff278455170a2be0ed4', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), index.h("p", { key: 'fa22ea217cbb789cd6a4d2798903df20c7a99c3a', class: "m-0", innerHTML: this.refundInfoText }))), index.h("form", { key: 'd698a190fbc5f92375cda2707ea54a0b7d7ca4c3', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, index.h("div", { key: '68796a301cea039ba86eaba91e4a63f7db800f47', class: "form-group" }, index.h("form-control-monetary", { key: '7a03e3d50bad0f932ca69ba7bb8c20cf80d62bc7', 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: 'b4c548b884d7b537a8caa8c91da505af6f6bd6ad', class: "form-group" }, index.h("form-control-text", { key: '936fb7ee8ce365311c9f368fc7a3c4f183d675ba', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (index.h("div", { key: '9b8c5c4175279e8ce5d4d5c10de9ac1e3249bae7', class: "form-group d-flex flex-row-reverse" }, index.h("button", { key: '8f8a0a878a541d1740d63927d36ad7f2982f83cb', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
102
102
  }
103
103
  };
104
104
  RefundForm.style = JustifiRefundFormStyle0;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-fb499e95.js');
6
6
  const utils = require('./utils-af1b60a9.js');
7
7
  const insuranceState = require('./insurance-state-80e24caf.js');
8
- const styledHost = require('./styled-host-cc053016.js');
8
+ const styledHost = require('./styled-host-9e0b67b3.js');
9
9
 
10
10
  const seasonInterruptionInsuranceCoreCss = ":host{display:block}a{color:var(--jfi-body-color) !important}";
11
11
  const JustifiSeasonInterruptionInsuranceCoreStyle0 = seasonInterruptionInsuranceCoreCss;
@@ -10,8 +10,9 @@ require('./Payout-a2dd7b01.js');
10
10
  const config = require('./config-05767cba.js');
11
11
  const utils = require('./utils-7a478c37.js');
12
12
  const ComponentError = require('./ComponentError-233ac749.js');
13
- const Analytics = require('./Analytics-a0a86d82.js');
14
- require('./package-99f4d813.js');
13
+ const Analytics = require('./Analytics-3c89cfb4.js');
14
+ const checkPkgVersion = require('./check-pkg-version-4fa0367d.js');
15
+ require('./package-3a9ac89d.js');
15
16
 
16
17
  class InsuranceService {
17
18
  async fetchQuote(authToken, payload) {
@@ -104,6 +105,7 @@ const SeasonInterruptionInsurance = class {
104
105
  return this.seasonInterruptionCoreRef.validate();
105
106
  }
106
107
  componentWillLoad() {
108
+ checkPkgVersion.checkPkgVersion();
107
109
  this.analytics = new Analytics.JustifiAnalytics(this);
108
110
  this.initializeServiceMethods();
109
111
  }
@@ -129,7 +131,7 @@ const SeasonInterruptionInsurance = class {
129
131
  });
130
132
  }
131
133
  render() {
132
- return (index.h("justifi-season-interruption-insurance-core", { key: '256d45d39c5d297abb7f955229b0e0e9fbc9504a', ref: (el) => (this.seasonInterruptionCoreRef = el), "checkout-id": this.checkoutId, getQuote: this.getQuote, toggleCoverage: this.toggleCoverage, "primary-identity-first-name": this.primaryIdentityFirstName, "primary-identity-last-name": this.primaryIdentityLastName, "primary-identity-state": this.primaryIdentityState, "primary-identity-postal-code": this.primaryIdentityPostalCode, "primary-identity-country": this.primaryIdentityCountry, "primary-identity-email-address": this.primaryIdentityEmailAddress, "policy-attributes-insurable-amount": this.policyAttributesInsurableAmount, "policy-attributes-start-date": this.policyAttributesStartDate, "policy-attributes-end-date": this.policyAttributesEndDate, "covered-identity-first-name": this.coveredIdentityFirstName, "covered-identity-last-name": this.coveredIdentityLastName }));
134
+ return (index.h("justifi-season-interruption-insurance-core", { key: '0ef99882f70c9886e8a5b49da5fe89dd4421067a', ref: (el) => (this.seasonInterruptionCoreRef = el), "checkout-id": this.checkoutId, getQuote: this.getQuote, toggleCoverage: this.toggleCoverage, "primary-identity-first-name": this.primaryIdentityFirstName, "primary-identity-last-name": this.primaryIdentityLastName, "primary-identity-state": this.primaryIdentityState, "primary-identity-postal-code": this.primaryIdentityPostalCode, "primary-identity-country": this.primaryIdentityCountry, "primary-identity-email-address": this.primaryIdentityEmailAddress, "policy-attributes-insurable-amount": this.policyAttributesInsurableAmount, "policy-attributes-start-date": this.policyAttributesStartDate, "policy-attributes-end-date": this.policyAttributesEndDate, "covered-identity-first-name": this.coveredIdentityFirstName, "covered-identity-last-name": this.coveredIdentityLastName }));
133
135
  }
134
136
  };
135
137