@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
@@ -14,12 +14,12 @@ const DateInput = class {
14
14
  this.inputHandler(name, target.value);
15
15
  this.formControlInput.emit({ name, value: target.value });
16
16
  };
17
- this.label = undefined;
18
17
  this.name = undefined;
18
+ this.label = undefined;
19
+ this.inputHandler = undefined;
20
+ this.defaultValue = undefined;
19
21
  this.helpText = undefined;
20
22
  this.errorText = undefined;
21
- this.defaultValue = undefined;
22
- this.inputHandler = undefined;
23
23
  this.disabled = undefined;
24
24
  }
25
25
  handleDefaultValueChange(newValue) {
@@ -32,7 +32,7 @@ const DateInput = class {
32
32
  this.dateInput.value = value;
33
33
  }
34
34
  render() {
35
- return (h(Host, { key: 'fa61a426a5a070d951fa425ae42a59add69a9d96', exportparts: "label,input,input-invalid" }, h("label", { key: 'e7679e6a66277a130414b59421b01d1f8e328cf2', part: "label", class: "form-label", htmlFor: this.name }, this.label), 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 }), h("form-control-help-text", { key: 'dbc9ac76d75521a7d1ee5cc34393471521ffa1c2', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '0f9731278250bde69dd7dee9a7b44e339d919774', errorText: this.errorText, name: this.name })));
35
+ return (h(Host, { key: 'dfbfc1ea5d7139a1c1d30c7bd84b33a9c22604cf', exportparts: "label,input,input-invalid" }, h("label", { key: '99a01781ecd1421fa439ad08f77d3f750a55eaee', part: "label", class: "form-label", htmlFor: this.name }, this.label), 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 }), h("form-control-help-text", { key: '1ee2ccdc1e409c5427e39efe2929b830960edce9', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '1db50cca364b4d059dac37243cf83bb4b11459cd', errorText: this.errorText, name: this.name })));
36
36
  }
37
37
  static get watchers() { return {
38
38
  "defaultValue": ["handleDefaultValueChange"]
@@ -42,13 +42,13 @@ const SelectInput = class {
42
42
  this.updateInput = (newValue) => {
43
43
  this.selectElement.value = newValue;
44
44
  };
45
- this.label = undefined;
46
45
  this.name = undefined;
46
+ this.label = undefined;
47
+ this.options = undefined;
48
+ this.inputHandler = undefined;
49
+ this.defaultValue = undefined;
47
50
  this.helpText = undefined;
48
51
  this.errorText = undefined;
49
- this.defaultValue = undefined;
50
- this.inputHandler = undefined;
51
- this.options = undefined;
52
52
  this.disabled = undefined;
53
53
  }
54
54
  handleDefaultValueChange(newValue) {
@@ -59,7 +59,7 @@ const SelectInput = class {
59
59
  }
60
60
  render() {
61
61
  var _a;
62
- return (h(Host, { key: '99449e3724103b12af7f2a4573831961074a484a', exportparts: "label,input,input-invalid" }, h("div", { key: 'd73e89d43da9968b687afece24794d9472fec6b5', class: "form-group d-flex flex-column" }, h("label", { key: '6964c55858fc3cf96a137e1061c7f66831105348', part: "label", class: "form-label", htmlFor: this.name }, this.label), 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 => (h("option", { value: option.value }, option.label)))), h("form-control-help-text", { key: '62d862921d463c98e56888293c878624f7311548', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '0b1c4d4752965fb058208c72c7f1c3872d1e0561', errorText: this.errorText, name: this.name }))));
62
+ return (h(Host, { key: 'e62a08c8ba656cc7e82c0f8f7facccc086fbafe7', exportparts: "label,input,input-invalid" }, h("div", { key: 'f9a4c428311f32f2585ca9259ba31909187b809d', class: "form-group d-flex flex-column" }, h("label", { key: '006a3bd7ae2874bf3fa24e2c053808e51b652d9a', part: "label", class: "form-label", htmlFor: this.name }, this.label), 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 => (h("option", { value: option.value }, option.label)))), h("form-control-help-text", { key: '3a60ff2a2af7668013baf2767d97095379b2d37e', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '8c4049d16408f305b8bf1e8a49c91db56991a840', errorText: this.errorText, name: this.name }))));
63
63
  }
64
64
  static get watchers() { return {
65
65
  "defaultValue": ["handleDefaultValueChange"]
@@ -83,13 +83,13 @@ const TextInput = class {
83
83
  inputElement.value = newValue || '';
84
84
  }
85
85
  };
86
- this.label = undefined;
87
86
  this.name = undefined;
87
+ this.label = undefined;
88
+ this.inputHandler = undefined;
89
+ this.defaultValue = undefined;
88
90
  this.helpText = undefined;
89
91
  this.errorText = undefined;
90
- this.defaultValue = undefined;
91
92
  this.maxLength = undefined;
92
- this.inputHandler = undefined;
93
93
  this.keyDownHandler = undefined;
94
94
  this.disabled = undefined;
95
95
  }
@@ -100,7 +100,7 @@ const TextInput = class {
100
100
  this.updateInput(this.defaultValue);
101
101
  }
102
102
  render() {
103
- return (h(Host, { key: '1194532f81831734543bad80860da14f8a5ad856', exportparts: "label,input,input-invalid" }, h("div", { key: '296538cf90b62f8041e21620aa06b4074f68b71a', class: "form-group d-flex flex-column" }, h("label", { key: '7c009ce96124e58f9657dba2565ef298225f10f7', part: "label", class: "form-label", htmlFor: this.name }, this.label), 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 }), h("form-control-help-text", { key: '7a279d72bb262fcb044b5b0cc31703878ce9f444', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '00bea288a99f626806697a98b6dca3f3298dc0b3', errorText: this.errorText, name: this.name }))));
103
+ return (h(Host, { key: 'fddfb4134747c8d8caf6594f5450e57fa4c2dc3e', exportparts: "label,input,input-invalid" }, h("div", { key: 'bbd0174fb56d911992907e0a2c453b9d1412b636', class: "form-group d-flex flex-column" }, h("label", { key: 'f5d9d3d6c4694d08d86963df37adbd1b334593b3', part: "label", class: "form-label", htmlFor: this.name }, this.label), 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 }), h("form-control-help-text", { key: '1e1bbc8d39e5caeca559515f72eb17ca9b3ab0b1', helpText: this.helpText, name: this.name }), h("form-control-error-text", { key: '44c121cb0eb69840440e696e784c7a73689a42f2', errorText: this.errorText, name: this.name }))));
104
104
  }
105
105
  get el() { return getElement(this); }
106
106
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
2
  import { c as config } from './config-27764a9d.js';
3
- import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
4
- import './package-0935c5e5.js';
3
+ import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
4
+ import './package-2ef16e2c.js';
5
5
  import './Api-c8abc2e0.js';
6
6
 
7
7
  const BankAccountForm = class {
@@ -3,7 +3,7 @@ import { c as create$3, F as FormController } from './index.esm-fc4f5c0c.js';
3
3
  import { u as identityNameValidation, l as lineOneValidation, k as lineTwoValidation, m as cityValidation, n as stateValidation, q as postalValidation } from './schema-validations-e725d701.js';
4
4
  import { S as StateOptions } from './state-options-a356fb11.js';
5
5
  import { n as numberOnlyHandler } from './utils-3bb6347a.js';
6
- import { S as StyledHost } from './styled-host-ab9da520.js';
6
+ import { S as StyledHost } from './styled-host-3171ae1f.js';
7
7
  import './business-form-options-d790973e.js';
8
8
  import './Business-b73d5055.js';
9
9
  import './helpers-96ea3464.js';
@@ -4,12 +4,13 @@ import { B as BusinessService } from './business.service-1f589b6e.js';
4
4
  import { B as Business } from './Business-b73d5055.js';
5
5
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
6
6
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
7
- import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
7
+ import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
8
+ import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
8
9
  import './config-27764a9d.js';
9
10
  import './Api-c8abc2e0.js';
10
11
  import './helpers-96ea3464.js';
11
12
  import './state-options-a356fb11.js';
12
- import './package-0935c5e5.js';
13
+ import './package-2ef16e2c.js';
13
14
 
14
15
  const makeGetBusiness = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
15
16
  var _a;
@@ -48,6 +49,7 @@ const BusinessDetails = class {
48
49
  this.getBusiness = undefined;
49
50
  }
50
51
  componentWillLoad() {
52
+ checkPkgVersion();
51
53
  this.analytics = new JustifiAnalytics(this);
52
54
  this.initializeGetBusiness();
53
55
  }
@@ -9,13 +9,14 @@ import './Payout-dfe15b00.js';
9
9
  import { c as config } from './config-27764a9d.js';
10
10
  import { B as BusinessFormServerErrors, a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
11
11
  import { B as Business } from './Business-b73d5055.js';
12
- import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
13
- import { S as StyledHost } from './styled-host-ab9da520.js';
12
+ import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
13
+ import { S as StyledHost } from './styled-host-3171ae1f.js';
14
+ import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
14
15
  import './schema-validations-e725d701.js';
15
16
  import './state-options-a356fb11.js';
16
17
  import './business-form-options-d790973e.js';
17
18
  import './helpers-96ea3464.js';
18
- import './package-0935c5e5.js';
19
+ import './package-2ef16e2c.js';
19
20
 
20
21
  const businessFormSchema = create$3(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
21
22
 
@@ -74,6 +75,7 @@ const BusinessForm = class {
74
75
  this.errorMessage = undefined;
75
76
  }
76
77
  componentWillLoad() {
78
+ checkPkgVersion();
77
79
  this.analytics = new JustifiAnalytics(this);
78
80
  const missingAuthTokenMessage = 'Warning: Missing auth-token. The form will not be functional without it.';
79
81
  const missingBusinessIdMessage = 'Warning: Missing business-id. The form requires an existing business-id to function.';
@@ -110,7 +112,7 @@ const BusinessForm = class {
110
112
  this.instantiateBusiness(response.data);
111
113
  }
112
114
  render() {
113
- return (h(StyledHost, { key: 'e388e1e7658969f0e5687102a62345e2790da97a', exportparts: "label,input,input-invalid" }, h("form", { key: 'c22a562e57539e982a071b1906e5bf0bcc249e7d', onSubmit: this.validateAndSubmit }, h("div", { key: '44243cd965b448f5be9058880aa2deb32f4ce8dc', class: "row gap-3" }, h("h1", { key: 'd666ed8ddacc8ac05d7f42c2f4824208b92cdb3f' }, this.title), h("form-alert", { key: 'b1d4025078c4373a789609f2e14d309f0ee280fe', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'cdc1d597a5dbf9581182de302a453e4ea98bb28f', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: '2333164de020eadf54da91cabdcbeb87a2fd1b75', formController: this.formController })), h("div", { key: '74eafa5c419f6d6fe2eb3eeb8521e12175f7ee3a', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '1e5a373f95a77bf3aba1a9f3538b3a2ac3dbf716', formController: this.formController })), h("div", { key: 'ec9f6195f3674b426722463341445f0ed1746178', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: '0adbc60492f4ad71e3877c446376999418b7dc15', formController: this.formController })), h("div", { key: 'cdfb8d0d40e9f888afd9c23cd97d33d861d16f62', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '4d03ec95b7c2918494c9970b3e6a5826d4d69a10', formController: this.formController })), h("div", { key: '0682dba469e57a938b175499312de5d5c4f55a69', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: '64791e2742ee129787094c7123e87c4262735556', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
115
+ return (h(StyledHost, { key: '2f28b3e44c64d6ea1ac0d8584946927f6c9c3d05', exportparts: "label,input,input-invalid" }, h("form", { key: '5e57787b7dcd649c3523dc49d0a6946138643c7c', onSubmit: this.validateAndSubmit }, h("div", { key: '0ee6212aa6157ade79ab9b2ff5eb700549a8a916', class: "row gap-3" }, h("h1", { key: '84824314dd924cdab149c2b62b7e01b07dbf5d28' }, this.title), h("form-alert", { key: 'dca6d7ef6bcddd3090f44e5ccf9199bbd441dc87', text: this.errorMessage, hideAlert: this.hideErrors }), h("div", { key: 'a022912c284d63afbf9ce698b145d964d720b110', class: "col-12 mb-4" }, h("justifi-business-core-info", { key: 'be264b806255b790a166b8a3349d78845c6c8225', formController: this.formController })), h("div", { key: 'b3a52da227a71f941941f66b758f718cdc3b7800', class: "col-12 mb-4" }, h("justifi-legal-address-form", { key: '258dc5ebabc0e2dfaa8de28534238ef80a4f951d', formController: this.formController })), h("div", { key: '9dd5d30daf37d90a689333640cd1630000ee5e25', class: "col-12 mb-4" }, h("justifi-additional-questions", { key: 'aa1cdf3a39170fcefbd07afcce193ed36430dc5b', formController: this.formController })), h("div", { key: 'a8cd6655a6408bef11c9ad442ecae7a0b5e3c50d', class: "col-12 mb-4" }, h("justifi-business-representative", { key: '33db8cd22d22b694917332941b89b7535bd19201', formController: this.formController })), h("div", { key: '99d46400c8d46e5a3ca6747e5bae70bf5652a367', class: "col-12 d-flex flex-row-reverse" }, h("button", { key: '8b858727a11d5ec5f855c446f34da3c1d6253563', type: "submit", class: "btn btn-primary jfi-submit-button", disabled: this.disabledState, onClick: () => this.fireClickEvents({ name: BusinessFormClickActions.submit }) }, this.isLoading ? 'Loading...' : 'Submit'))))));
114
116
  }
115
117
  };
116
118
  BusinessForm.style = JustifiBusinessFormStyle0;
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
2
  import { c as config } from './config-27764a9d.js';
3
- import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
4
- import './package-0935c5e5.js';
3
+ import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
4
+ import './package-2ef16e2c.js';
5
5
  import './Api-c8abc2e0.js';
6
6
 
7
7
  const CardForm = class {
@@ -4,7 +4,7 @@ import { c as config } from './config-27764a9d.js';
4
4
  import { C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
5
5
  import { i as insuranceValuesOn, v as validateInsuranceValues, a as insuranceValues } from './insurance-state-8ce01e59.js';
6
6
  import { B as Button } from './button-34e75e0f.js';
7
- import { S as StyledHost } from './styled-host-ab9da520.js';
7
+ import { S as StyledHost } from './styled-host-3171ae1f.js';
8
8
  import { S as Skeleton } from './skeleton-145a80d4.js';
9
9
 
10
10
  class Checkout {
@@ -6,8 +6,9 @@ import './Pagination-afc8f96d.js';
6
6
  import './Payment-6bf26fe2.js';
7
7
  import './Payout-dfe15b00.js';
8
8
  import { c as config } from './config-27764a9d.js';
9
- import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
10
- import './package-0935c5e5.js';
9
+ import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
11
+ import './package-2ef16e2c.js';
11
12
 
12
13
  const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
13
14
  var _a;
@@ -97,6 +98,7 @@ const Checkout = class {
97
98
  this.errorMessage = '';
98
99
  }
99
100
  componentWillLoad() {
101
+ checkPkgVersion();
100
102
  this.analytics = new JustifiAnalytics(this);
101
103
  this.initializeGetCheckout();
102
104
  }
@@ -131,11 +133,11 @@ const Checkout = class {
131
133
  this.checkoutCoreRef.fillBillingForm(fields);
132
134
  }
133
135
  render() {
134
- return (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 => {
136
+ return (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 => {
135
137
  if (el) {
136
138
  this.checkoutCoreRef = el;
137
139
  }
138
- } }, h("div", { key: '45ac1bea74ca8ef7999211b51fe7791225d61f00', slot: "insurance" }, h("slot", { key: '13e051844cc7cb4aed98076ccd64954b2dd68228', name: "insurance" }))));
140
+ } }, h("div", { key: '301247cf7c916ba1c6c5464e3c2f0226d0f6f041', slot: "insurance" }, h("slot", { key: 'a75ff85e5a6d954e7c0d3c24abac518a2765f889', name: "insurance" }))));
139
141
  }
140
142
  static get watchers() { return {
141
143
  "authToken": ["propChanged"],
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h } from './index-57431c24.js';
2
2
  import { E as ErrorState } from './utils-01413a95.js';
3
- import { S as StyledHost } from './styled-host-ab9da520.js';
3
+ import { S as StyledHost } from './styled-host-3171ae1f.js';
4
4
 
5
5
  const Details = class {
6
6
  constructor(hostRef) {
@@ -4,8 +4,9 @@ import { A as Api } from './Api-c8abc2e0.js';
4
4
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
5
5
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
6
6
  import { E as ErrorState } from './utils-01413a95.js';
7
- import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
8
- import './package-0935c5e5.js';
7
+ import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
8
+ import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
9
+ import './package-2ef16e2c.js';
9
10
 
10
11
  class ReportsService {
11
12
  async fetchGrossVolumeChartData(accountId, authToken) {
@@ -57,6 +58,7 @@ const GrossPaymentChart = class {
57
58
  this.errorMessage = null;
58
59
  }
59
60
  componentWillLoad() {
61
+ checkPkgVersion();
60
62
  this.analytics = new JustifiAnalytics(this);
61
63
  this.initializeGetGrossPayment();
62
64
  }
@@ -1,15 +1,16 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
- import { P as PaymentService } from './payment.service-02c596b9.js';
2
+ import { P as PaymentService } from './payment.service-21a3e2d3.js';
3
3
  import './Pagination-afc8f96d.js';
4
4
  import { P as Payment } from './Payment-6bf26fe2.js';
5
5
  import './Payout-dfe15b00.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
8
8
  import { E as ErrorState } from './utils-01413a95.js';
9
- import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
9
+ import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
10
11
  import './Api-c8abc2e0.js';
11
12
  import './config-27764a9d.js';
12
- import './package-0935c5e5.js';
13
+ import './package-2ef16e2c.js';
13
14
 
14
15
  const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
15
16
  var _a;
@@ -53,6 +54,7 @@ const PaymentDetails = class {
53
54
  this.errorMessage = null;
54
55
  }
55
56
  componentWillLoad() {
57
+ checkPkgVersion();
56
58
  this.analytics = new JustifiAnalytics(this);
57
59
  this.initializeGetPaymentDetails();
58
60
  }
@@ -6,10 +6,11 @@ import { l as loadFontsOnParent } from './utils-e66d8bca.js';
6
6
  import { c as config } from './config-27764a9d.js';
7
7
  import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
8
8
  import { g as getErrorMessage } from './utils-b10dae27.js';
9
- import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
9
+ import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
10
10
  import { B as Button } from './button-34e75e0f.js';
11
- import { S as StyledHost } from './styled-host-ab9da520.js';
12
- import './package-0935c5e5.js';
11
+ import { S as StyledHost } from './styled-host-3171ae1f.js';
12
+ import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
13
+ import './package-2ef16e2c.js';
13
14
  import './Api-c8abc2e0.js';
14
15
 
15
16
  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)}";
@@ -32,6 +33,7 @@ const PaymentForm = class {
32
33
  this.selectedPaymentMethodType = PaymentMethodTypes.card;
33
34
  }
34
35
  componentWillLoad() {
36
+ checkPkgVersion();
35
37
  this.analytics = new JustifiAnalytics(this);
36
38
  if (!this.validateProps()) {
37
39
  this.errorEvent.emit({
@@ -118,15 +120,15 @@ const PaymentForm = class {
118
120
  }
119
121
  }
120
122
  render() {
121
- return (h(StyledHost, { key: '38bd6cca38d9068fa9277a8568a98f261a4cc616' }, h("form", { key: 'fec19f5e2f11934e6783124c4c437a2d3947f596', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: '18001f78e03336d01de8473a57e3e228e9fce201', class: "col-12" }, h("justifi-payment-method-selector", { key: '260ac1ade3ccfe6baf518eb856bdf4d380025620', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: 'f6ade2336314e05f2bdce75df8577939efe33e3b', class: "col-12" }, h("justifi-payment-method-form", { key: 'ad8e5b121b8425175f7ac7f38ab24dfba1801a28', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.iframeOrigin, ref: el => {
123
+ return (h(StyledHost, { key: 'f7d035a9ed8b16016493aa07a85a6b4d6d83b5f5' }, h("form", { key: 'fb9354b439332ef4ee67e915f27b60b9b744e6e2', class: "row gy-3" }, this.showPaymentMethodTypeSelector() && (h("div", { key: '303fbccf9beb30c1d822f0ac148128dfba9d158f', class: "col-12" }, h("justifi-payment-method-selector", { key: 'f71353d3f90ab50461a57ce3738ea853ca4d1cc3', selectedPaymentMethodType: this.getSelectedPaymentMethodType(), onPaymentMethodSelected: event => this.paymentMethodSelectedHandler(event) }))), h("div", { key: 'd9024a406dcde487ff2bb7d34385da0a1be8aef5', class: "col-12" }, h("justifi-payment-method-form", { key: '010488c96f1b6b5af049b89151cea9ce61f263bb', "payment-method-form-type": this.getSelectedPaymentMethodType(), iframeOrigin: config.iframeOrigin, ref: el => {
122
124
  if (el) {
123
125
  this.paymentMethodFormRef = el;
124
126
  }
125
- } })), h("div", { key: '29f15f1cece3e07a569e514d08bf9996405699c6', class: "col-12" }, h("justifi-billing-form", { key: '9928924cc29bfa5c5e46ada294cb26da0c1d222b', legend: "Billing Info", ref: el => {
127
+ } })), h("div", { key: 'c8b41e9d6bc0d21db4bc1efa12852480ed4a0bbd', class: "col-12" }, h("justifi-billing-form", { key: '2226122296e6b9da8359b90fe563b6c4342c72f3', legend: "Billing Info", ref: el => {
126
128
  if (el) {
127
129
  this.billingFormRef = el;
128
130
  }
129
- } })), h("slot", { key: 'c36583ab34bc105b506df27aec02898455855cec', name: 'insurance' }), h("div", { key: 'cc38292ae8a59bc6f4624a8535e8b7c93e6f3a35', class: "col-12" }, h(Button, { key: 'e5fe0f50ee2322ab2a199a6229015c9daa198cc0', variant: "primary", type: "submit", onClick: event => this.submit(event), disabled: !this.submitButtonEnabled || this.isLoading, isLoading: this.isLoading, "data-testid": "submit-button", style: { width: '100%' } }, this.submitButtonText || 'Submit')))));
131
+ } })), h("slot", { key: '5aa12164db0d1ac4570db49b7a1bc527d974a8ab', name: 'insurance' }), h("div", { key: '5b0ad786dcf96a4c83696b1e3d1cd09345313807', class: "col-12" }, h(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')))));
130
132
  }
131
133
  };
132
134
  PaymentForm.style = JustifiPaymentFormStyle0;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-57431c24.js';
2
- import { p as packageJson } from './package-0935c5e5.js';
2
+ import { p as packageJson } from './package-2ef16e2c.js';
3
3
  import { k as composeQueryParams } from './utils-e66d8bca.js';
4
4
 
5
5
  var iframeResizer = {exports: {}};
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h } from './index-57431c24.js'
2
2
  import { a as BusinessFormClickActions } from './business-form-types-1bc5fe08.js';
3
3
  import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
4
4
  import { a as checkProvisioningStatus } from './helpers-96ea3464.js';
5
- import { S as StyledHost } from './styled-host-ab9da520.js';
5
+ import { S as StyledHost } from './styled-host-3171ae1f.js';
6
6
  import './state-options-a356fb11.js';
7
7
 
8
8
  const PaymentProvisioningCore = class {
@@ -1,11 +1,12 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
- import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
2
+ import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
3
3
  import { a as ComponentErrorCodes, C as ComponentErrorSeverity } from './ComponentError-3ce7f437.js';
4
4
  import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-0635eff7.js';
5
5
  import { B as BusinessService } from './business.service-1f589b6e.js';
6
6
  import { c as config } from './config-27764a9d.js';
7
7
  import { A as Api } from './Api-c8abc2e0.js';
8
- import './package-0935c5e5.js';
8
+ import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
9
+ import './package-2ef16e2c.js';
9
10
  import './utils-b10dae27.js';
10
11
 
11
12
  class ProvisionService {
@@ -34,6 +35,7 @@ const PaymentProvisioning = class {
34
35
  this.initializeApi();
35
36
  }
36
37
  componentWillLoad() {
38
+ checkPkgVersion();
37
39
  this.analytics = new JustifiAnalytics(this);
38
40
  this.initializeApi();
39
41
  }
@@ -63,7 +65,7 @@ const PaymentProvisioning = class {
63
65
  }
64
66
  }
65
67
  render() {
66
- return (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 }));
68
+ return (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 }));
67
69
  }
68
70
  static get watchers() { return {
69
71
  "authToken": ["propChanged"],
@@ -1,20 +1,21 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
- import { P as PaymentService } from './payment.service-02c596b9.js';
2
+ import { P as PaymentService } from './payment.service-21a3e2d3.js';
3
3
  import './Pagination-afc8f96d.js';
4
4
  import { P as Payment } from './Payment-6bf26fe2.js';
5
5
  import './Payout-dfe15b00.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
8
8
  import { E as ErrorState } from './utils-01413a95.js';
9
- import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
9
+ import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
11
+ import { c as config } from './config-27764a9d.js';
10
12
  import './Api-c8abc2e0.js';
11
- import './config-27764a9d.js';
12
- import './package-0935c5e5.js';
13
+ import './package-2ef16e2c.js';
13
14
 
14
- const makeGetPayments = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
15
+ const makeGetPayments = ({ id, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError }) => {
15
16
  var _a, _b;
16
17
  try {
17
- const response = await service.fetchPayments(id, authToken, params);
18
+ const response = await service.fetchPayments(id, authToken, params, apiOrigin);
18
19
  if (!response.error) {
19
20
  const pagingInfo = Object.assign({}, response.page_info);
20
21
  const payments = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new Payment(dataItem))) || [];
@@ -48,12 +49,14 @@ const PaymentsList = class {
48
49
  this.errorMessage = event.detail.message;
49
50
  this.errorEvent.emit(event.detail);
50
51
  };
51
- this.accountId = undefined;
52
- this.authToken = undefined;
53
52
  this.getPayments = undefined;
54
53
  this.errorMessage = null;
54
+ this.accountId = undefined;
55
+ this.authToken = undefined;
56
+ this.apiOrigin = config.proxyApiOrigin;
55
57
  }
56
58
  componentWillLoad() {
59
+ checkPkgVersion();
57
60
  this.analytics = new JustifiAnalytics(this);
58
61
  this.initializeGetPayments();
59
62
  }
@@ -69,6 +72,7 @@ const PaymentsList = class {
69
72
  id: this.accountId,
70
73
  authToken: this.authToken,
71
74
  service: new PaymentService(),
75
+ apiOrigin: this.apiOrigin,
72
76
  });
73
77
  }
74
78
  else {
@@ -6,10 +6,11 @@ import { P as Payout } from './Payout-dfe15b00.js';
6
6
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
8
8
  import { E as ErrorState } from './utils-01413a95.js';
9
- import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
9
+ import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
10
11
  import './Api-c8abc2e0.js';
11
12
  import './config-27764a9d.js';
12
- import './package-0935c5e5.js';
13
+ import './package-2ef16e2c.js';
13
14
 
14
15
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
15
16
  var _a;
@@ -55,6 +56,7 @@ const PayoutDetails = class {
55
56
  this.errorMessage = null;
56
57
  }
57
58
  componentWillLoad() {
59
+ checkPkgVersion();
58
60
  this.analytics = new JustifiAnalytics(this);
59
61
  this.initializeServices();
60
62
  }
@@ -7,10 +7,11 @@ import { P as Payout } from './Payout-dfe15b00.js';
7
7
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
8
8
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
9
9
  import { E as ErrorState } from './utils-01413a95.js';
10
- import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
10
+ import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
11
+ import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
11
12
  import './Api-c8abc2e0.js';
12
13
  import './config-27764a9d.js';
13
- import './package-0935c5e5.js';
14
+ import './package-2ef16e2c.js';
14
15
 
15
16
  const makeGetPayouts = ({ id, authToken, service }) => async ({ params, onSuccess, onError }) => {
16
17
  var _a, _b;
@@ -57,6 +58,7 @@ const PayoutsList = class {
57
58
  this.errorMessage = null;
58
59
  }
59
60
  componentWillLoad() {
61
+ checkPkgVersion();
60
62
  this.analytics = new JustifiAnalytics(this);
61
63
  this.initializeServices();
62
64
  }
@@ -6,7 +6,7 @@ import './Payment-6bf26fe2.js';
6
6
  import './Payout-dfe15b00.js';
7
7
  import { c as config } from './config-27764a9d.js';
8
8
  import { C as CURRENCY_MASK } from './form-input-masks-0e18300f.js';
9
- import { S as StyledHost } from './styled-host-ab9da520.js';
9
+ import { S as StyledHost } from './styled-host-3171ae1f.js';
10
10
 
11
11
  const RefundFormSchema = create$3().shape({
12
12
  amount: create$5()
@@ -94,7 +94,7 @@ const RefundForm = class {
94
94
  }
95
95
  render() {
96
96
  var _a;
97
- return (h(StyledHost, { key: 'd0d0962eaecab749aa1eb124e86701a2fb4dfd53' }, h("h1", { key: 'cb3071d89c291b1664e551fcf2808a64569ba5eb' }, "Refund"), this.refundInfoText && (h("div", { key: '01a6f4567f882d2eec492ef6d98db7d04747ecb4', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: '8ae5928aaf8ead35a7ad180a01bdde05ebec3d5f', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: '425a7dfe9d8b886b55fd0878f3989373733c1758', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: '5516d2ac500611d2410b9b4c2a4d0d15e417b2d1', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: 'b67a7c56f070a5a25d91aa0cc77755b27d420fdc', class: "form-group" }, h("form-control-monetary", { key: '76b6cfdf2b39674434f4d880333dd5d5f603f0b6', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: '5e581cdea69d2ce9dbad774214cd904923d199b3', class: "form-group" }, h("form-control-text", { key: '926ae888676a4089d3381bd4d650e6f84f6e206a', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: 'de5df506b7b64a69a16241f117bf9bea4fd79b57', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '92ad4d43677587c2c20dc03c6f03a6cf1f20ac12', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
97
+ return (h(StyledHost, { key: 'bb3d26c841a9697e5881426fb92027e1fff62e9f' }, h("h1", { key: 'b89354d3dec27b3e496af20957fa4d30b7c2e99e' }, "Refund"), this.refundInfoText && (h("div", { key: '493ff3e052c5b28bb382355dd32ebf407446346d', class: "d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3", role: "alert" }, h("img", { key: '72211dc3be8aef8bb87aaff278455170a2be0ed4', src: "/info-icon.svg", alt: "Information", height: "30", width: "30" }), h("p", { key: 'fa22ea217cbb789cd6a4d2798903df20c7a99c3a', class: "m-0", innerHTML: this.refundInfoText }))), h("form", { key: 'd698a190fbc5f92375cda2707ea54a0b7d7ca4c3', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: '68796a301cea039ba86eaba91e4a63f7db800f47', class: "form-group" }, h("form-control-monetary", { key: '7a03e3d50bad0f932ca69ba7bb8c20cf80d62bc7', name: "amount", label: "Refund Amount", defaultValue: ((_a = this.amount) === null || _a === void 0 ? void 0 : _a.toString()) || '', maskOptions: CURRENCY_MASK.DECIMAL, inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount })), h("div", { key: 'b4c548b884d7b537a8caa8c91da505af6f6bd6ad', class: "form-group" }, h("form-control-text", { key: '936fb7ee8ce365311c9f368fc7a3c4f183d675ba', name: "notes", label: "Additional Notes", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.notes })), this.withButton && (h("div", { key: '9b8c5c4175279e8ce5d4d5c10de9ac1e3249bae7', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '8f8a0a878a541d1740d63927d36ad7f2982f83cb', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, this.submitButtonText))))));
98
98
  }
99
99
  };
100
100
  RefundForm.style = JustifiRefundFormStyle0;
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-57431c24.js';
2
2
  import { f as formatCurrency } from './utils-e66d8bca.js';
3
3
  import { v as validateInsuranceValues, a as insuranceValues, b as insuranceErrors } from './insurance-state-8ce01e59.js';
4
- import { S as StyledHost } from './styled-host-ab9da520.js';
4
+ import { S as StyledHost } from './styled-host-3171ae1f.js';
5
5
 
6
6
  const seasonInterruptionInsuranceCoreCss = ":host{display:block}a{color:var(--jfi-body-color) !important}";
7
7
  const JustifiSeasonInterruptionInsuranceCoreStyle0 = seasonInterruptionInsuranceCoreCss;
@@ -6,8 +6,9 @@ import './Payout-dfe15b00.js';
6
6
  import { c as config } from './config-27764a9d.js';
7
7
  import { g as getErrorMessage, a as getErrorCode } from './utils-b10dae27.js';
8
8
  import { C as ComponentErrorSeverity, a as ComponentErrorCodes } from './ComponentError-3ce7f437.js';
9
- import { J as JustifiAnalytics } from './Analytics-e460ab05.js';
10
- import './package-0935c5e5.js';
9
+ import { J as JustifiAnalytics } from './Analytics-b0f6936a.js';
10
+ import { c as checkPkgVersion } from './check-pkg-version-10cadb08.js';
11
+ import './package-2ef16e2c.js';
11
12
 
12
13
  class InsuranceService {
13
14
  async fetchQuote(authToken, payload) {
@@ -100,6 +101,7 @@ const SeasonInterruptionInsurance = class {
100
101
  return this.seasonInterruptionCoreRef.validate();
101
102
  }
102
103
  componentWillLoad() {
104
+ checkPkgVersion();
103
105
  this.analytics = new JustifiAnalytics(this);
104
106
  this.initializeServiceMethods();
105
107
  }
@@ -125,7 +127,7 @@ const SeasonInterruptionInsurance = class {
125
127
  });
126
128
  }
127
129
  render() {
128
- return (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 }));
130
+ return (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 }));
129
131
  }
130
132
  };
131
133