@justifi/webcomponents 5.3.6 → 5.4.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 (605) hide show
  1. package/dist/cjs/{Api-f5280a80.js → Api-83d93333.js} +2 -2
  2. package/dist/cjs/{Checkout-eef27045.js → Checkout-f10bed8c.js} +1 -1
  3. package/dist/cjs/{Payment-c47ed1e1.js → Payment-3f483b7a.js} +1 -1
  4. package/dist/cjs/{SubAccount-df3d28dc.js → SubAccount-a27d4e9f.js} +8 -6
  5. package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
  6. package/dist/cjs/{badge-79e56b99.js → badge-364e6311.js} +1 -1
  7. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +11 -11
  8. package/dist/cjs/bank-account-form_9.cjs.entry.js +16 -16
  9. package/dist/cjs/billing-form_3.cjs.entry.js +11 -11
  10. package/dist/cjs/{business-additional-questions-schema-5c100f58.js → business-additional-questions-schema-8568cb79.js} +2 -2
  11. package/dist/cjs/business-details-core.cjs.entry.js +3 -3
  12. package/dist/cjs/{business-identity-schema-3b4d16f1.js → business-identity-schema-518ab6eb.js} +2 -2
  13. package/dist/cjs/{business.service-776142b1.js → business.service-6e8a29a2.js} +3 -3
  14. package/dist/cjs/{button-797bb3cc.js → button-4a9fd41e.js} +1 -1
  15. package/dist/cjs/{check-pkg-version-1f8b660c.js → check-pkg-version-75cc34ca.js} +2 -2
  16. package/dist/cjs/{checkout.service-c01e2cd7.js → checkout.service-61616349.js} +4 -4
  17. package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -10
  18. package/dist/cjs/{checkouts-table-61543249.js → checkouts-table-14fcebd0.js} +3 -3
  19. package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_4.cjs.entry.js} +141 -2
  20. package/dist/cjs/{dispute.service-399de502.js → dispute.service-b68fdcc4.js} +4 -4
  21. package/dist/cjs/{event-types-666f1f22.js → event-types-5a6ce2b0.js} +2 -2
  22. package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
  23. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  24. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  25. package/dist/cjs/{form-control-error-text-b782cdd0.js → form-control-error-text-3cff9b7b.js} +1 -1
  26. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  27. package/dist/cjs/{form-control-help-text-ca3c8155.js → form-control-help-text-94ffed2c.js} +1 -1
  28. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +85 -0
  29. package/dist/cjs/form-control-monetary.cjs.entry.js +27 -40
  30. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +5 -5
  31. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  32. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  33. package/dist/cjs/{get-business-0bd063d2.js → get-business-d8f5db51.js} +2 -2
  34. package/dist/cjs/{get-payout-csv-11a983a0.js → get-payout-csv-f0c04d96.js} +4 -4
  35. package/dist/cjs/{get-subaccounts-224f9497.js → get-subaccounts-330a9e85.js} +4 -4
  36. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
  37. package/dist/cjs/{header-1-ff669f3f.js → header-1-43b2b905.js} +1 -1
  38. package/dist/cjs/{header-3-f6642390.js → header-3-eb250a04.js} +1 -1
  39. package/dist/cjs/{index.esm-a397536a.js → index.esm-544c08fd.js} +0 -122
  40. package/dist/cjs/{insurance-state-66c9bea7.js → insurance-state-71f8b653.js} +1 -1
  41. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +12 -12
  42. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +18 -18
  43. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
  44. package/dist/cjs/justifi-business-details.cjs.entry.js +7 -7
  45. package/dist/cjs/justifi-business-form.cjs.entry.js +15 -15
  46. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
  47. package/dist/cjs/justifi-checkout-core.cjs.entry.js +8 -8
  48. package/dist/cjs/justifi-checkout.cjs.entry.js +10 -10
  49. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
  50. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -13
  51. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  52. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  53. package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -9
  54. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -14
  55. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
  56. package/dist/cjs/justifi-order-terminals.cjs.entry.js +22 -24
  57. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +10 -10
  58. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -10
  59. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  60. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +5 -5
  61. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
  62. package/dist/cjs/justifi-payments-list.cjs.entry.js +13 -13
  63. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -10
  64. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
  65. package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -14
  66. package/dist/cjs/justifi-refund-payment.cjs.entry.js +122 -0
  67. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
  68. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +8 -8
  69. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +70 -0
  70. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -11
  71. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +9 -6
  72. package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -13
  73. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +10 -10
  74. package/dist/cjs/loader.cjs.js +1 -1
  75. package/dist/cjs/{package-d34fcfa5.js → package-459e93fd.js} +2 -2
  76. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  77. package/dist/cjs/{parts-1fb925c2.js → parts-5ca90f9a.js} +14 -0
  78. package/dist/cjs/payment-details-core.cjs.entry.js +13 -13
  79. package/dist/cjs/{payment.service-f369b33c.js → payment.service-ff43bfc4.js} +4 -4
  80. package/dist/cjs/payments-list-core.cjs.entry.js +11 -11
  81. package/dist/cjs/{payments-status-ffdc54ff.js → payments-status-075aad0a.js} +1 -1
  82. package/dist/cjs/{payments-table-98b4e5e3.js → payments-table-802d767d.js} +3 -3
  83. package/dist/cjs/payout-details-core.cjs.entry.js +8 -8
  84. package/dist/cjs/payouts-list-core.cjs.entry.js +11 -11
  85. package/dist/cjs/{payouts-status-64fd0c68.js → payouts-status-ced97c2b.js} +1 -1
  86. package/dist/cjs/{payouts-table-ecfb826b.js → payouts-table-194a4343.js} +3 -3
  87. package/dist/cjs/{schema-validations-47a256f4.js → schema-validations-a7cefbdf.js} +1 -1
  88. package/dist/cjs/{skeleton-2ae76f16.js → skeleton-e8aa41d0.js} +1 -1
  89. package/dist/cjs/{spinner-15764f3c.js → spinner-580453f2.js} +1 -1
  90. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  91. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +25 -11
  92. package/dist/cjs/terminal-orders-list-params-state-c419078f.js +22 -0
  93. package/dist/cjs/{terminal-orders-table-f1bed365.js → terminal-orders-table-4df19497.js} +3 -3
  94. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  95. package/dist/cjs/{terminal.service-4fd34835.js → terminal.service-56397d88.js} +6 -5
  96. package/dist/cjs/terminals-list-core.cjs.entry.js +10 -10
  97. package/dist/cjs/{terminals-table-30298ce4.js → terminals-table-9b313566.js} +14 -2
  98. package/dist/cjs/{utils-337befa9.js → utils-54719fda.js} +8 -2
  99. package/dist/cjs/{utils-3e3b8061.js → utils-f8714daa.js} +1 -1
  100. package/dist/cjs/webcomponents.cjs.js +1 -1
  101. package/dist/collection/actions/business/get-business.js +2 -2
  102. package/dist/collection/actions/terminal/get-terminal-models.js +2 -2
  103. package/dist/collection/actions/terminal/order-terminals.js +2 -2
  104. package/dist/collection/api/Api.js +2 -2
  105. package/dist/collection/api/Terminal.js +3 -1
  106. package/dist/collection/api/TerminalOrder.js +2 -2
  107. package/dist/collection/api/services/business.service.js +2 -2
  108. package/dist/collection/api/services/terminal.service.js +2 -1
  109. package/dist/collection/collection-manifest.json +7 -5
  110. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  111. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  112. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
  113. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  114. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  115. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  116. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  117. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  118. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +1 -1
  119. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  120. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  121. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  122. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  123. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  124. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  125. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  126. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  127. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +255 -0
  128. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  129. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  130. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  131. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  132. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  133. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  134. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  135. package/dist/collection/components/{billing-forms → checkout/billing-forms}/billing-form/billing-form.js +6 -6
  136. package/dist/collection/components/{billing-forms → checkout/billing-forms}/billing-form-schema.js +6 -2
  137. package/dist/collection/components/{billing-forms → checkout/billing-forms}/billing-form-wrapper.js +7 -7
  138. package/dist/collection/components/{billing-forms → checkout/billing-forms}/postal-form/postal-form.js +5 -5
  139. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  140. package/dist/collection/components/checkout/checkout-core.js +5 -5
  141. package/dist/collection/components/checkout/checkout.js +6 -6
  142. package/dist/collection/components/checkout/new-payment-method.js +5 -5
  143. package/dist/collection/components/checkout/payment-method-options.js +5 -5
  144. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  145. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  146. package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
  147. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  148. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  149. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  150. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  151. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  152. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  153. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  154. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  155. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  156. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  157. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  158. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  159. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  160. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  161. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  162. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  163. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  164. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
  165. package/dist/collection/components/order-terminals/order-terminals.js +24 -8
  166. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  167. package/dist/collection/components/payment-details/payment-details-core.js +7 -7
  168. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  169. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  170. package/dist/collection/components/payments-list/payments-list.js +1 -1
  171. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  172. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  173. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  174. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  175. package/dist/collection/components/refund-payment/refund-payment-schema.js +16 -0
  176. package/dist/collection/components/{refund-form/refund-form.js → refund-payment/refund-payment.js} +26 -65
  177. package/dist/collection/components/refund-payment/refund-reason-options.js +19 -0
  178. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +15 -2
  179. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +141 -0
  180. package/dist/collection/components/terminal-orders-list/terminal-orders-list-params-state.js +14 -0
  181. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  182. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  183. package/dist/collection/components/terminals-list/terminals-list-filters.js +23 -3
  184. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  185. package/dist/collection/components/terminals-list/terminals-status.js +5 -0
  186. package/dist/collection/components/terminals-list/terminals-table.js +7 -0
  187. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -3
  188. package/dist/collection/styles/parts.js +8 -0
  189. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  190. package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
  191. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  192. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  193. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  194. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  195. package/dist/collection/ui-components/form/form-control-monetary.js +72 -70
  196. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  197. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  198. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  199. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  200. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  201. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  202. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  203. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  204. package/dist/collection/{components → ui-components}/pagination-menu/pagination-menu.js +4 -4
  205. package/dist/collection/utils/utils.js +8 -2
  206. package/dist/docs.json +568 -143
  207. package/dist/esm/{Api-391d00e2.js → Api-52242eb0.js} +2 -2
  208. package/dist/esm/{Checkout-2bc873fb.js → Checkout-ba139944.js} +1 -1
  209. package/dist/esm/{Payment-82d2f453.js → Payment-39bfdd06.js} +1 -1
  210. package/dist/esm/{SubAccount-dbd4e50c.js → SubAccount-68403637.js} +7 -5
  211. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  212. package/dist/esm/{badge-6f5acf30.js → badge-1be14e8c.js} +1 -1
  213. package/dist/esm/bank-account-document-form-inputs_4.entry.js +11 -11
  214. package/dist/esm/bank-account-form_9.entry.js +16 -16
  215. package/dist/esm/billing-form_3.entry.js +11 -11
  216. package/dist/esm/{business-additional-questions-schema-df76728f.js → business-additional-questions-schema-56308a54.js} +2 -2
  217. package/dist/esm/business-details-core.entry.js +3 -3
  218. package/dist/esm/{business-identity-schema-0a78fc59.js → business-identity-schema-24fcc4ef.js} +2 -2
  219. package/dist/esm/{business.service-f7c3b9f7.js → business.service-999196a4.js} +3 -3
  220. package/dist/esm/{button-79dcea75.js → button-fcee4da7.js} +1 -1
  221. package/dist/esm/{check-pkg-version-8e7e585e.js → check-pkg-version-b4d631be.js} +2 -2
  222. package/dist/esm/{checkout.service-382a16ec.js → checkout.service-e59354cc.js} +4 -4
  223. package/dist/esm/checkouts-list-core.entry.js +10 -10
  224. package/dist/esm/{checkouts-table-8a53cef9.js → checkouts-table-58604210.js} +3 -3
  225. package/dist/esm/{custom-popper.entry.js → custom-popper_4.entry.js} +140 -4
  226. package/dist/esm/{dispute.service-97887804.js → dispute.service-8312d46a.js} +4 -4
  227. package/dist/esm/{event-types-82515a49.js → event-types-1bc52f1f.js} +2 -2
  228. package/dist/esm/form-alert_5.entry.js +5 -5
  229. package/dist/esm/form-control-checkbox.entry.js +5 -5
  230. package/dist/esm/form-control-date.entry.js +4 -4
  231. package/dist/esm/{form-control-error-text-466c252b.js → form-control-error-text-176d20d8.js} +1 -1
  232. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  233. package/dist/esm/{form-control-help-text-242916e3.js → form-control-help-text-83764e14.js} +1 -1
  234. package/dist/esm/form-control-monetary-provisioning.entry.js +81 -0
  235. package/dist/esm/form-control-monetary.entry.js +27 -40
  236. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  237. package/dist/esm/form-control-number.entry.js +5 -5
  238. package/dist/esm/form-control-radio.entry.js +3 -3
  239. package/dist/esm/{get-business-464419f6.js → get-business-b7511690.js} +2 -2
  240. package/dist/esm/{get-payout-csv-6826271a.js → get-payout-csv-74397995.js} +4 -4
  241. package/dist/esm/{get-subaccounts-f21220dc.js → get-subaccounts-f8bd5c96.js} +4 -4
  242. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  243. package/dist/esm/{header-1-b43590e5.js → header-1-215a146f.js} +1 -1
  244. package/dist/esm/{header-3-b90e161e.js → header-3-afd16f23.js} +1 -1
  245. package/dist/esm/{index.esm-0b6849c2.js → index.esm-feedf26f.js} +1 -122
  246. package/dist/esm/{insurance-state-9e4a3359.js → insurance-state-d2df8e88.js} +1 -1
  247. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +12 -12
  248. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +18 -18
  249. package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
  250. package/dist/esm/justifi-business-details.entry.js +7 -7
  251. package/dist/esm/justifi-business-form.entry.js +15 -15
  252. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  253. package/dist/esm/justifi-checkout-core.entry.js +8 -8
  254. package/dist/esm/justifi-checkout.entry.js +10 -10
  255. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
  256. package/dist/esm/justifi-checkouts-list.entry.js +13 -13
  257. package/dist/esm/justifi-details.entry.js +2 -2
  258. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  259. package/dist/esm/justifi-dispute-management.entry.js +9 -9
  260. package/dist/esm/justifi-dispute-notification_3.entry.js +14 -14
  261. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  262. package/dist/esm/justifi-order-terminals.entry.js +22 -24
  263. package/dist/esm/justifi-owner-form_3.entry.js +10 -10
  264. package/dist/esm/justifi-payment-details.entry.js +10 -10
  265. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  266. package/dist/esm/justifi-payment-provisioning.entry.js +5 -5
  267. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  268. package/dist/esm/justifi-payments-list.entry.js +13 -13
  269. package/dist/esm/justifi-payout-details.entry.js +10 -10
  270. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  271. package/dist/esm/justifi-payouts-list.entry.js +14 -14
  272. package/dist/esm/justifi-refund-payment.entry.js +118 -0
  273. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
  274. package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -8
  275. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +66 -0
  276. package/dist/esm/justifi-terminal-orders-list.entry.js +11 -11
  277. package/dist/esm/justifi-terminals-list-filters.entry.js +9 -6
  278. package/dist/esm/justifi-terminals-list.entry.js +13 -13
  279. package/dist/esm/justifi-tokenize-payment-method.entry.js +10 -10
  280. package/dist/esm/loader.js +1 -1
  281. package/dist/esm/{package-46c7f3a6.js → package-53180f2a.js} +2 -2
  282. package/dist/esm/pagination-menu.entry.js +1 -1
  283. package/dist/esm/{parts-2c5c609b.js → parts-fd740f54.js} +9 -1
  284. package/dist/esm/payment-details-core.entry.js +13 -13
  285. package/dist/esm/{payment.service-a8aa5be7.js → payment.service-b9ec64c9.js} +4 -4
  286. package/dist/esm/payments-list-core.entry.js +11 -11
  287. package/dist/esm/{payments-status-6e203ce4.js → payments-status-74d22728.js} +1 -1
  288. package/dist/esm/{payments-table-4c6093e1.js → payments-table-26054032.js} +3 -3
  289. package/dist/esm/payout-details-core.entry.js +8 -8
  290. package/dist/esm/payouts-list-core.entry.js +11 -11
  291. package/dist/esm/{payouts-status-66e830f1.js → payouts-status-29d31099.js} +1 -1
  292. package/dist/esm/{payouts-table-46fbedb6.js → payouts-table-7f31db9d.js} +3 -3
  293. package/dist/esm/{schema-validations-b1aec6a0.js → schema-validations-5af4266a.js} +1 -1
  294. package/dist/esm/{skeleton-122648e6.js → skeleton-ab3f676e.js} +1 -1
  295. package/dist/esm/{spinner-14cd9ac7.js → spinner-27479716.js} +1 -1
  296. package/dist/esm/table-filters-menu.entry.js +3 -3
  297. package/dist/esm/terminal-orders-list-core.entry.js +25 -11
  298. package/dist/esm/terminal-orders-list-params-state-8fec0a0b.js +16 -0
  299. package/dist/esm/{terminal-orders-table-83b905fd.js → terminal-orders-table-1f6156c9.js} +3 -3
  300. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  301. package/dist/esm/{terminal.service-20445fc1.js → terminal.service-fff19896.js} +6 -5
  302. package/dist/esm/terminals-list-core.entry.js +10 -10
  303. package/dist/esm/{terminals-table-dbbf9a99.js → terminals-table-7d54e359.js} +14 -2
  304. package/dist/esm/{utils-4cb0d852.js → utils-96d9c205.js} +1 -1
  305. package/dist/esm/{utils-c37124fc.js → utils-dc86cdde.js} +8 -3
  306. package/dist/esm/webcomponents.js +1 -1
  307. package/dist/module/Api.js +2 -2
  308. package/dist/module/SubAccount.js +6 -4
  309. package/dist/module/additional-questions.js +4 -4
  310. package/dist/module/additional-statement.js +1 -1
  311. package/dist/module/bank-account-document-inputs.js +1 -1
  312. package/dist/module/bank-account-form-inputs2.js +1 -1
  313. package/dist/module/bank-account-form2.js +2 -2
  314. package/dist/module/billing-form-wrapper.js +1 -1
  315. package/dist/module/billing-form2.js +3 -3
  316. package/dist/module/business-additional-questions-form-step-core.js +4 -4
  317. package/dist/module/business-additional-questions-form-step.js +4 -4
  318. package/dist/module/business-bank-account-form-step.js +1 -1
  319. package/dist/module/business-core-info-form-step.js +1 -1
  320. package/dist/module/business-core-info.js +1 -1
  321. package/dist/module/business-owners-form-step.js +1 -1
  322. package/dist/module/business-representative-form-inputs.js +1 -1
  323. package/dist/module/business-representative-form-step.js +1 -1
  324. package/dist/module/business-representative.js +1 -1
  325. package/dist/module/business-terms-conditions-form-step.js +1 -1
  326. package/dist/module/business.service.js +2 -2
  327. package/dist/module/cancellation-policy.js +1 -1
  328. package/dist/module/card-form2.js +2 -2
  329. package/dist/module/checkout-core.js +1 -1
  330. package/dist/module/checkouts-list-core2.js +1 -1
  331. package/dist/module/custom-popper2.js +2 -2
  332. package/dist/module/customer-details.js +1 -1
  333. package/dist/module/dispute-management-core.js +1 -1
  334. package/dist/module/dispute-notification.js +1 -1
  335. package/dist/module/dispute-response-core.js +1 -1
  336. package/dist/module/dispute-response.js +1 -1
  337. package/dist/module/duplicate-charge.js +1 -1
  338. package/dist/module/electronic-evidence.js +1 -1
  339. package/dist/module/form-control-checkbox2.js +2 -2
  340. package/dist/module/form-control-date2.js +2 -2
  341. package/dist/module/form-control-file-v22.js +1 -1
  342. package/dist/module/form-control-file2.js +2 -2
  343. package/dist/module/form-control-monetary-provisioning.d.ts +11 -0
  344. package/dist/module/form-control-monetary-provisioning.js +6 -0
  345. package/dist/module/form-control-monetary-provisioning2.js +109 -0
  346. package/dist/module/form-control-monetary2.js +30 -42
  347. package/dist/module/form-control-number-masked2.js +2 -2
  348. package/dist/module/form-control-number.js +2 -2
  349. package/dist/module/form-control-radio2.js +2 -2
  350. package/dist/module/form-control-select2.js +2 -2
  351. package/dist/module/form-control-text2.js +2 -2
  352. package/dist/module/form-control-textarea2.js +2 -2
  353. package/dist/module/form.js +1 -122
  354. package/dist/module/get-business.js +2 -2
  355. package/dist/module/gross-payment-chart-core2.js +1 -1
  356. package/dist/module/hidden-input2.js +1 -1
  357. package/dist/module/identity-address-form.js +1 -1
  358. package/dist/module/iframe-input2.js +3 -3
  359. package/dist/module/justifi-business-form.js +3 -3
  360. package/dist/module/justifi-checkout.js +2 -2
  361. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  362. package/dist/module/justifi-checkouts-list.js +1 -1
  363. package/dist/module/justifi-dispute-management.js +1 -1
  364. package/dist/module/justifi-order-terminals.js +11 -12
  365. package/dist/module/justifi-payment-provisioning.js +4 -4
  366. package/dist/module/justifi-payments-list-filters.js +2 -2
  367. package/dist/module/justifi-payments-list.js +1 -1
  368. package/dist/module/justifi-payouts-list-filters.js +2 -2
  369. package/dist/module/justifi-payouts-list.js +1 -1
  370. package/dist/module/justifi-refund-payment.d.ts +11 -0
  371. package/dist/module/justifi-refund-payment.js +180 -0
  372. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  373. package/dist/module/justifi-terminal-orders-list-filters.d.ts +11 -0
  374. package/dist/module/justifi-terminal-orders-list-filters.js +119 -0
  375. package/dist/module/justifi-terminal-orders-list.js +1 -1
  376. package/dist/module/justifi-terminals-list-filters.js +6 -2
  377. package/dist/module/justifi-terminals-list.js +2 -2
  378. package/dist/module/justifi-tokenize-payment-method.js +1 -1
  379. package/dist/module/legal-address-form-step.js +1 -1
  380. package/dist/module/legal-address-form.js +1 -1
  381. package/dist/module/new-payment-method.js +1 -1
  382. package/dist/module/owner-form-core2.js +1 -1
  383. package/dist/module/owner-form-inputs2.js +1 -1
  384. package/dist/module/owner-form.js +1 -1
  385. package/dist/module/package.js +2 -2
  386. package/dist/module/parts.js +9 -1
  387. package/dist/module/payment-details-core2.js +7 -7
  388. package/dist/module/payment-method-options.js +1 -1
  389. package/dist/module/payment-provisioning-core.js +4 -4
  390. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  391. package/dist/module/payment-provisioning-form-steps.js +4 -4
  392. package/dist/module/payments-list-core2.js +1 -1
  393. package/dist/module/payout-details-core2.js +1 -1
  394. package/dist/module/payouts-list-core2.js +1 -1
  395. package/dist/module/postal-form2.js +1 -1
  396. package/dist/module/product-or-service.js +1 -1
  397. package/dist/module/refund-policy.js +1 -1
  398. package/dist/module/save-new-payment-method.js +1 -1
  399. package/dist/module/saved-payment-method.js +1 -1
  400. package/dist/module/sezzle-payment-method.js +1 -1
  401. package/dist/module/shipping-details.js +1 -1
  402. package/dist/module/table-filters-menu2.js +1 -1
  403. package/dist/module/terminal-orders-list-core2.js +15 -2
  404. package/dist/module/terminal-orders-list-params-state.js +16 -0
  405. package/dist/module/terminal-quantity-selector2.js +1 -1
  406. package/dist/module/terminal.service.js +2 -1
  407. package/dist/module/terminals-list-core2.js +13 -1
  408. package/dist/module/utils2.js +8 -3
  409. package/dist/types/actions/business/get-business.d.ts +2 -1
  410. package/dist/types/actions/terminal/get-terminal-models.d.ts +2 -1
  411. package/dist/types/actions/terminal/order-terminals.d.ts +2 -1
  412. package/dist/types/api/Api.d.ts +1 -1
  413. package/dist/types/api/Terminal.d.ts +8 -3
  414. package/dist/types/api/TerminalOrder.d.ts +9 -3
  415. package/dist/types/api/services/business.service.d.ts +1 -1
  416. package/dist/types/components/business-forms/payment-provisioning/form-control-monetary-provisioning.d.ts +24 -0
  417. package/dist/types/components/{billing-forms → checkout/billing-forms}/billing-form/billing-form.d.ts +1 -1
  418. package/dist/types/components/{billing-forms → checkout/billing-forms}/postal-form/postal-form.d.ts +1 -1
  419. package/dist/types/components/checkout/checkout-core.d.ts +1 -1
  420. package/dist/types/components/checkout/checkout.d.ts +1 -1
  421. package/dist/types/components/checkout/new-payment-method.d.ts +1 -1
  422. package/dist/types/components/checkout/payment-method-options.d.ts +1 -1
  423. package/dist/types/components/order-terminals/order-terminals.d.ts +1 -1
  424. package/dist/types/components/refund-payment/refund-payment-schema.d.ts +11 -0
  425. package/dist/types/components/{refund-form/refund-form.d.ts → refund-payment/refund-payment.d.ts} +6 -13
  426. package/dist/types/components/refund-payment/refund-reason-options.d.ts +5 -0
  427. package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +1 -0
  428. package/dist/types/components/terminal-orders-list/terminal-orders-list-filters.d.ts +19 -0
  429. package/dist/types/components/terminal-orders-list/terminal-orders-list-params-state.d.ts +6 -0
  430. package/dist/types/components/terminals-list/terminals-list-filters.d.ts +1 -0
  431. package/dist/types/components/terminals-list/terminals-status.d.ts +2 -1
  432. package/dist/types/components/terminals-list/terminals-table.d.ts +6 -0
  433. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -1
  434. package/dist/types/components.d.ts +111 -53
  435. package/dist/types/styles/parts.d.ts +7 -0
  436. package/dist/types/ui-components/form/form-control-monetary.d.ts +9 -10
  437. package/dist/types/utils/utils.d.ts +2 -1
  438. package/dist/webcomponents/p-00ae938e.entry.js +1 -0
  439. package/dist/webcomponents/p-01033194.js +1 -0
  440. package/dist/webcomponents/p-0151a19f.entry.js +1 -0
  441. package/dist/webcomponents/{p-694078d2.js → p-03c2261c.js} +1 -1
  442. package/dist/webcomponents/{p-2ca5b5e4.js → p-08b64251.js} +1 -1
  443. package/dist/webcomponents/p-0b61d4d3.entry.js +1 -0
  444. package/dist/webcomponents/{p-547b51e9.js → p-12074378.js} +1 -1
  445. package/dist/webcomponents/p-142bfae3.js +1 -0
  446. package/dist/webcomponents/p-1aa973c4.entry.js +1 -0
  447. package/dist/webcomponents/p-2123c150.js +1 -0
  448. package/dist/webcomponents/p-23cd76af.entry.js +1 -0
  449. package/dist/webcomponents/{p-087758d3.js → p-26a2e837.js} +1 -1
  450. package/dist/webcomponents/p-27546fa9.entry.js +1 -0
  451. package/dist/webcomponents/p-275c3dc9.js +1 -0
  452. package/dist/webcomponents/p-2b8aaa7d.entry.js +1 -0
  453. package/dist/webcomponents/p-2c65389c.entry.js +1 -0
  454. package/dist/webcomponents/p-31dcaeaf.entry.js +1 -0
  455. package/dist/webcomponents/p-373a19fe.entry.js +1 -0
  456. package/dist/webcomponents/{p-3947a309.entry.js → p-375657fe.entry.js} +1 -1
  457. package/dist/webcomponents/{p-6ef3de11.entry.js → p-385d3637.entry.js} +1 -1
  458. package/dist/webcomponents/{p-f3061f2a.entry.js → p-38900c29.entry.js} +1 -1
  459. package/dist/webcomponents/{p-daf0303f.js → p-422948eb.js} +1 -1
  460. package/dist/webcomponents/{p-b92aac9b.entry.js → p-43e225d2.entry.js} +1 -1
  461. package/dist/webcomponents/{p-8c461ebc.entry.js → p-4484aa3b.entry.js} +1 -1
  462. package/dist/webcomponents/p-45f48dce.entry.js +1 -0
  463. package/dist/webcomponents/{p-9894484a.js → p-4e010557.js} +1 -1
  464. package/dist/webcomponents/p-4ef98c7a.js +1 -0
  465. package/dist/webcomponents/p-4fc263b2.js +1 -0
  466. package/dist/webcomponents/{p-4acf8ca2.js → p-537bce77.js} +1 -1
  467. package/dist/webcomponents/p-56c7fc8d.js +1 -0
  468. package/dist/webcomponents/{p-cd68707b.entry.js → p-58476602.entry.js} +1 -1
  469. package/dist/webcomponents/{p-71897cbc.js → p-58ee6ce9.js} +1 -1
  470. package/dist/webcomponents/p-59eef054.entry.js +1 -0
  471. package/dist/webcomponents/{p-2027145a.entry.js → p-5a9d7ca0.entry.js} +1 -1
  472. package/dist/webcomponents/{p-a173ccd5.entry.js → p-5ae9faf6.entry.js} +1 -1
  473. package/dist/webcomponents/p-5b459422.entry.js +1 -0
  474. package/dist/webcomponents/p-5b76dbe1.entry.js +1 -0
  475. package/dist/webcomponents/{p-046ecd01.js → p-5efe6236.js} +1 -1
  476. package/dist/webcomponents/{p-0e180654.js → p-5f6b4bc9.js} +1 -1
  477. package/dist/webcomponents/p-64443fc0.js +1 -0
  478. package/dist/webcomponents/p-673c1bca.js +1 -0
  479. package/dist/webcomponents/p-6c79e7c3.entry.js +1 -0
  480. package/dist/webcomponents/p-6d3611b6.entry.js +1 -0
  481. package/dist/webcomponents/{p-0cefd846.entry.js → p-745a577c.entry.js} +1 -1
  482. package/dist/webcomponents/p-76549a24.js +1 -0
  483. package/dist/webcomponents/{p-7ed52fbc.entry.js → p-7a6feb58.entry.js} +1 -1
  484. package/dist/webcomponents/p-80867635.entry.js +1 -0
  485. package/dist/webcomponents/p-86605101.js +1 -0
  486. package/dist/webcomponents/{p-8066b866.js → p-927cb6df.js} +1 -1
  487. package/dist/webcomponents/{p-030a8806.entry.js → p-92e96b57.entry.js} +1 -1
  488. package/dist/webcomponents/{p-8971f9da.entry.js → p-942d5e8f.entry.js} +1 -1
  489. package/dist/webcomponents/p-a1be025c.entry.js +1 -0
  490. package/dist/webcomponents/p-a3cced75.entry.js +1 -0
  491. package/dist/webcomponents/{p-c54f54ed.js → p-a5579f53.js} +1 -1
  492. package/dist/webcomponents/{p-fa987dcf.js → p-a5b52c1d.js} +1 -1
  493. package/dist/webcomponents/{p-0a60d356.entry.js → p-a5f5cc2e.entry.js} +1 -1
  494. package/dist/webcomponents/{p-b69beb1c.js → p-a99525c5.js} +1 -1
  495. package/dist/webcomponents/p-ac40e667.js +1 -0
  496. package/dist/webcomponents/p-adecb91a.entry.js +1 -0
  497. package/dist/webcomponents/p-ae891abb.entry.js +1 -0
  498. package/dist/webcomponents/p-ae9ef225.js +1 -0
  499. package/dist/webcomponents/p-b323bbde.entry.js +1 -0
  500. package/dist/webcomponents/p-ba6fd830.entry.js +1 -0
  501. package/dist/webcomponents/{p-e4514af8.entry.js → p-bae35151.entry.js} +1 -1
  502. package/dist/webcomponents/p-bb4b3f79.entry.js +1 -0
  503. package/dist/webcomponents/{p-69ac2640.entry.js → p-bdbbee07.entry.js} +1 -1
  504. package/dist/webcomponents/p-bdcf3a3c.entry.js +1 -0
  505. package/dist/webcomponents/p-beec0b60.js +1 -0
  506. package/dist/webcomponents/{p-95e55bb1.js → p-bf12999f.js} +1 -1
  507. package/dist/webcomponents/p-bf195b35.js +1 -0
  508. package/dist/webcomponents/{p-e60867c6.js → p-bfc2d88a.js} +1 -1
  509. package/dist/webcomponents/p-c4f8ed38.js +1 -0
  510. package/dist/webcomponents/{p-b5addd78.js → p-c8b78136.js} +1 -1
  511. package/dist/webcomponents/p-c8fa00fd.entry.js +1 -0
  512. package/dist/webcomponents/p-c93d643b.js +1 -0
  513. package/dist/webcomponents/p-cc2f75a3.entry.js +1 -0
  514. package/dist/webcomponents/p-ccb9ee53.js +1 -0
  515. package/dist/webcomponents/{p-ee9d433f.js → p-cd5883b9.js} +1 -1
  516. package/dist/webcomponents/p-cedad1b6.entry.js +1 -0
  517. package/dist/webcomponents/{p-8fad4359.entry.js → p-d70610de.entry.js} +1 -1
  518. package/dist/webcomponents/p-d757fcf5.js +1 -0
  519. package/dist/webcomponents/p-d7bf921d.entry.js +1 -0
  520. package/dist/webcomponents/{p-10a14943.entry.js → p-d903d838.entry.js} +1 -1
  521. package/dist/webcomponents/{p-5efe9572.entry.js → p-d9b5140e.entry.js} +1 -1
  522. package/dist/webcomponents/{p-fd4607f9.entry.js → p-d9dc15d4.entry.js} +1 -1
  523. package/dist/webcomponents/p-db973fa9.entry.js +1 -0
  524. package/dist/webcomponents/p-dbc1a95b.js +1 -0
  525. package/dist/webcomponents/{p-1e300d41.js → p-dbf21732.js} +1 -1
  526. package/dist/webcomponents/{p-e754d8e7.entry.js → p-ddb642a4.entry.js} +2 -2
  527. package/dist/webcomponents/p-df20bbb3.entry.js +1 -0
  528. package/dist/webcomponents/p-e9867f8b.entry.js +1 -0
  529. package/dist/webcomponents/p-ed9d22d5.entry.js +1 -0
  530. package/dist/webcomponents/p-ee539373.entry.js +1 -0
  531. package/dist/webcomponents/{p-685c7028.entry.js → p-f20466f7.entry.js} +1 -1
  532. package/dist/webcomponents/p-f247b169.entry.js +1 -0
  533. package/dist/webcomponents/p-f930504f.entry.js +1 -0
  534. package/dist/webcomponents/p-fc43d1c8.entry.js +1 -0
  535. package/dist/webcomponents/{p-e8fc36c1.entry.js → p-fca89e9b.entry.js} +1 -1
  536. package/dist/webcomponents/webcomponents.esm.js +1 -1
  537. package/package.json +2 -2
  538. package/dist/cjs/form-control-select_3.cjs.entry.js +0 -145
  539. package/dist/cjs/justifi-refund-form.cjs.entry.js +0 -106
  540. package/dist/collection/components/refund-form/refund-form-schema.js +0 -13
  541. package/dist/collection/components/refund-form/refund-form.stories.js +0 -109
  542. package/dist/esm/form-control-select_3.entry.js +0 -139
  543. package/dist/esm/justifi-refund-form.entry.js +0 -102
  544. package/dist/module/justifi-refund-form.d.ts +0 -11
  545. package/dist/module/justifi-refund-form.js +0 -153
  546. package/dist/types/components/refund-form/refund-form-schema.d.ts +0 -11
  547. package/dist/types/components/refund-form/refund-form.stories.d.ts +0 -27
  548. package/dist/webcomponents/p-0137575f.entry.js +0 -1
  549. package/dist/webcomponents/p-039a09b8.entry.js +0 -1
  550. package/dist/webcomponents/p-0ba77d53.entry.js +0 -1
  551. package/dist/webcomponents/p-0c22225c.entry.js +0 -1
  552. package/dist/webcomponents/p-10e32428.entry.js +0 -1
  553. package/dist/webcomponents/p-1705af62.js +0 -1
  554. package/dist/webcomponents/p-19b8c3c8.entry.js +0 -1
  555. package/dist/webcomponents/p-1a48d917.entry.js +0 -1
  556. package/dist/webcomponents/p-222fa126.entry.js +0 -1
  557. package/dist/webcomponents/p-33a17e80.entry.js +0 -1
  558. package/dist/webcomponents/p-34e18d17.entry.js +0 -1
  559. package/dist/webcomponents/p-36edba41.entry.js +0 -1
  560. package/dist/webcomponents/p-3732aa87.js +0 -1
  561. package/dist/webcomponents/p-382ab4e8.js +0 -1
  562. package/dist/webcomponents/p-3cbdca1b.js +0 -1
  563. package/dist/webcomponents/p-4d5c553d.entry.js +0 -1
  564. package/dist/webcomponents/p-5844a0f0.js +0 -1
  565. package/dist/webcomponents/p-5ee67fad.js +0 -1
  566. package/dist/webcomponents/p-638b91ff.entry.js +0 -1
  567. package/dist/webcomponents/p-6a2d6298.entry.js +0 -1
  568. package/dist/webcomponents/p-759f25a1.entry.js +0 -1
  569. package/dist/webcomponents/p-7dc9fb75.js +0 -1
  570. package/dist/webcomponents/p-7e93eac9.entry.js +0 -1
  571. package/dist/webcomponents/p-830f0971.entry.js +0 -1
  572. package/dist/webcomponents/p-833ef79e.entry.js +0 -1
  573. package/dist/webcomponents/p-9dc9aaba.js +0 -1
  574. package/dist/webcomponents/p-9f1a3199.js +0 -1
  575. package/dist/webcomponents/p-a07afdcc.entry.js +0 -1
  576. package/dist/webcomponents/p-a3d75257.js +0 -1
  577. package/dist/webcomponents/p-a957612b.entry.js +0 -1
  578. package/dist/webcomponents/p-aa21cdb1.entry.js +0 -1
  579. package/dist/webcomponents/p-aa923138.entry.js +0 -1
  580. package/dist/webcomponents/p-ad473d5c.entry.js +0 -1
  581. package/dist/webcomponents/p-b11468b5.entry.js +0 -1
  582. package/dist/webcomponents/p-b4ed5a2c.js +0 -1
  583. package/dist/webcomponents/p-b62403c2.entry.js +0 -1
  584. package/dist/webcomponents/p-b76f755a.entry.js +0 -1
  585. package/dist/webcomponents/p-b8ee505d.entry.js +0 -1
  586. package/dist/webcomponents/p-b92f125b.entry.js +0 -1
  587. package/dist/webcomponents/p-bd2340f7.entry.js +0 -1
  588. package/dist/webcomponents/p-bd2d9d29.entry.js +0 -1
  589. package/dist/webcomponents/p-bdf0ab42.js +0 -1
  590. package/dist/webcomponents/p-c406c0fa.js +0 -1
  591. package/dist/webcomponents/p-c5cc443e.entry.js +0 -1
  592. package/dist/webcomponents/p-d43a38a4.js +0 -1
  593. package/dist/webcomponents/p-d5a481e4.entry.js +0 -1
  594. package/dist/webcomponents/p-e366ef1e.js +0 -1
  595. package/dist/webcomponents/p-e400e31f.entry.js +0 -1
  596. package/dist/webcomponents/p-eb05bd1e.entry.js +0 -1
  597. package/dist/webcomponents/p-ede13cc8.js +0 -1
  598. package/dist/webcomponents/p-f04dbd80.entry.js +0 -1
  599. package/dist/webcomponents/p-f2111e68.js +0 -1
  600. package/dist/webcomponents/p-f30cb232.js +0 -1
  601. package/dist/webcomponents/p-fae67ab3.js +0 -1
  602. package/dist/webcomponents/p-ffd0c24b.entry.js +0 -1
  603. /package/dist/types/components/{billing-forms → checkout/billing-forms}/billing-form-schema.d.ts +0 -0
  604. /package/dist/types/components/{billing-forms → checkout/billing-forms}/billing-form-wrapper.d.ts +0 -0
  605. /package/dist/types/{components → ui-components}/pagination-menu/pagination-menu.d.ts +0 -0
@@ -1,25 +1,24 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-29fcfdf5.js';
2
- import { B as heading5, C as heading4, g as buttonPrimary, t as text } from './parts-2c5c609b.js';
2
+ import { B as heading5, C as heading4, g as buttonPrimary, t as text } from './parts-fd740f54.js';
3
3
  import { S as StyledHost } from './styled-host-32228b45.js';
4
- import { E as ErrorState } from './utils-4cb0d852.js';
5
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8e7e585e.js';
4
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-b4d631be.js';
6
5
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
7
- import { B as BusinessService } from './business.service-f7c3b9f7.js';
6
+ import { B as BusinessService } from './business.service-999196a4.js';
8
7
  import { B as Business } from './Business-0855931c.js';
9
- import { m as makeGetBusiness } from './get-business-464419f6.js';
10
- import { S as Skeleton } from './skeleton-122648e6.js';
11
- import './Checkout-2bc873fb.js';
8
+ import { m as makeGetBusiness } from './get-business-b7511690.js';
9
+ import { S as Skeleton } from './skeleton-ab3f676e.js';
10
+ import './Checkout-ba139944.js';
12
11
  import './Pagination-afc8f96d.js';
13
- import './Payment-82d2f453.js';
14
- import { T as TerminalModel, a as TerminalOrder, b as TerminalOrderType } from './SubAccount-dbd4e50c.js';
12
+ import './Payment-39bfdd06.js';
13
+ import { T as TerminalModel, a as TerminalOrder, b as TerminalOrderType } from './SubAccount-68403637.js';
15
14
  import './Document-1907c0d4.js';
16
15
  import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
17
- import { T as TerminalService } from './terminal.service-20445fc1.js';
18
- import './package-46c7f3a6.js';
19
- import './Api-391d00e2.js';
16
+ import { T as TerminalService } from './terminal.service-fff19896.js';
17
+ import './package-53180f2a.js';
18
+ import './Api-52242eb0.js';
20
19
  import './helpers-96ea3464.js';
21
20
  import './state-options-a356fb11.js';
22
- import './utils-c37124fc.js';
21
+ import './utils-dc86cdde.js';
23
22
  import './Dispute-5fd28ec9.js';
24
23
 
25
24
  const FormBlock = () => (h("div", { class: "row gap-3" },
@@ -59,10 +58,10 @@ const TerminalSelectorLoading = () => {
59
58
  h(Skeleton, null)))))));
60
59
  };
61
60
 
62
- const makeGetTerminalModels = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
61
+ const makeGetTerminalModels = ({ id, authToken, service, apiOrigin }) => async ({ onSuccess, onError }) => {
63
62
  var _a, _b, _c, _d;
64
63
  try {
65
- const response = await service.fetchTerminalModels(id, authToken);
64
+ const response = await service.fetchTerminalModels(id, authToken, apiOrigin);
66
65
  if (!response.error) {
67
66
  const terminals = ((_b = (_a = response.data) === null || _a === void 0 ? void 0 : _a.terminal_order_models) === null || _b === void 0 ? void 0 : _b.map((dataItem) => new TerminalModel(dataItem))) || [];
68
67
  const orderLimit = (_c = response.data) === null || _c === void 0 ? void 0 : _c.order_limit;
@@ -88,10 +87,10 @@ const makeGetTerminalModels = ({ id, authToken, service }) => async ({ onSuccess
88
87
  }
89
88
  };
90
89
 
91
- const makeOrderTerminals = ({ authToken, service }) => async ({ terminalOrder, onSuccess, onError }) => {
90
+ const makeOrderTerminals = ({ authToken, service, apiOrigin = "https://wc-proxy.justifi.ai" }) => async ({ terminalOrder, onSuccess, onError }) => {
92
91
  var _a;
93
92
  try {
94
- const response = await service.orderTerminals(authToken, terminalOrder);
93
+ const response = await service.orderTerminals(authToken, terminalOrder, apiOrigin);
95
94
  if (!response.error) {
96
95
  const { data } = response;
97
96
  onSuccess({ data });
@@ -125,6 +124,7 @@ const OrderTerminals = class {
125
124
  this.authToken = undefined;
126
125
  this.accountId = undefined;
127
126
  this.shipping = false;
127
+ this.apiOrigin = "https://wc-proxy.justifi.ai";
128
128
  this.loading = {
129
129
  business: true,
130
130
  terminals: true,
@@ -140,7 +140,7 @@ const OrderTerminals = class {
140
140
  componentWillLoad() {
141
141
  this.order = new TerminalOrder({
142
142
  business_id: this.businessId,
143
- account_id: this.accountId,
143
+ sub_account_id: this.accountId,
144
144
  order_type: this.shipping ? TerminalOrderType.boardingShipping : TerminalOrderType.boardingOnly,
145
145
  });
146
146
  checkPkgVersion();
@@ -164,6 +164,7 @@ const OrderTerminals = class {
164
164
  id: this.businessId,
165
165
  authToken: this.authToken,
166
166
  service: new BusinessService(),
167
+ apiOrigin: this.apiOrigin,
167
168
  })({
168
169
  onSuccess: ({ business }) => {
169
170
  this.business = new Business(business);
@@ -180,6 +181,7 @@ const OrderTerminals = class {
180
181
  id: this.accountId,
181
182
  authToken: this.authToken,
182
183
  service: new TerminalService(),
184
+ apiOrigin: this.apiOrigin,
183
185
  })({
184
186
  onSuccess: ({ terminals, orderLimit }) => {
185
187
  this.terminalModels = terminals;
@@ -196,6 +198,7 @@ const OrderTerminals = class {
196
198
  const orderTerminals = makeOrderTerminals({
197
199
  authToken: this.authToken,
198
200
  service: new TerminalService(),
201
+ apiOrigin: this.apiOrigin,
199
202
  });
200
203
  this.submitting = true;
201
204
  orderTerminals({
@@ -217,11 +220,6 @@ const OrderTerminals = class {
217
220
  renderLoading() {
218
221
  return (h("div", null, this.loading.business && h(OrderTerminalsLoading, null), this.loading.terminals && (h("div", { class: "mt-5" }, h(TerminalSelectorLoading, null), h(TerminalSelectorLoading, null), h(TerminalSelectorLoading, null)))));
219
222
  }
220
- renderError() {
221
- if (!this.loading.business && this.error) {
222
- return ErrorState(this.error.message);
223
- }
224
- }
225
223
  renderBusinessDetails() {
226
224
  var _a, _b, _c, _d, _e, _f, _g, _h;
227
225
  if (!this.loading.business && this.business) {
@@ -237,7 +235,7 @@ const OrderTerminals = class {
237
235
  return (h("div", { class: "mt-3" }, h("div", { class: "text-end" }, "Order limit: ", this.orderLimit), h("div", { class: "d-flex justify-content-end mt-3" }, h("button", { class: "btn btn-primary submit-btn", onClick: this.submitOrder.bind(this), disabled: this.order.totalQuantity === 0 || this.submitting, part: buttonPrimary }, this.submitting ? 'Submitting...' : 'Submit Order'))));
238
236
  }
239
237
  render() {
240
- return (h(StyledHost, { key: 'b8861877f987b473d37858e3b36a5f3901521dd3' }, h("div", { key: '4fd38462c88f52afbf48898c417a87acdce46e54', part: text }, this.renderLoading(), this.renderError(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
238
+ return (h(StyledHost, { key: 'c4f4ddf88c273123e746caa442ede71465643ec2' }, h("div", { key: 'e2535a1317272a7e9b3b5923963694a67c1d8dd6', part: text }, this.renderLoading(), this.renderBusinessDetails(), this.renderTerminals(), this.renderOrderSection())));
241
239
  }
242
240
  };
243
241
 
@@ -1,20 +1,20 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
2
2
  import { e as makeGetIdentity, f as makePatchIdentity, g as makePostIdentity } from './payment-provisioning-actions-beadac34.js';
3
- import { I as IdentityService } from './business.service-f7c3b9f7.js';
4
- import { F as FormController } from './index.esm-0b6849c2.js';
3
+ import { I as IdentityService } from './business.service-999196a4.js';
4
+ import { F as FormController } from './index.esm-feedf26f.js';
5
5
  import { O as Owner } from './Business-0855931c.js';
6
- import { i as identitySchema } from './business-identity-schema-0a78fc59.js';
7
- import { B as Button } from './button-79dcea75.js';
8
- import { W as heading3 } from './parts-2c5c609b.js';
6
+ import { i as identitySchema } from './business-identity-schema-24fcc4ef.js';
7
+ import { B as Button } from './button-fcee4da7.js';
8
+ import { a1 as heading3 } from './parts-fd740f54.js';
9
9
  import { B as BusinessFormClickActions } from './event-types-5c87de02.js';
10
10
  import { S as SSN_MASK, P as PHONE_MASKS } from './form-input-masks-0e18300f.js';
11
11
  import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-270ac806.js';
12
12
  import './ComponentError-c61dce41.js';
13
13
  import './utils-fd99b806.js';
14
- import './Api-391d00e2.js';
14
+ import './Api-52242eb0.js';
15
15
  import './helpers-96ea3464.js';
16
16
  import './state-options-a356fb11.js';
17
- import './schema-validations-b1aec6a0.js';
17
+ import './schema-validations-5af4266a.js';
18
18
  import './business-form-options-86a13078.js';
19
19
  import './Document-1907c0d4.js';
20
20
 
@@ -65,7 +65,7 @@ const BusinessOwnerForm = class {
65
65
  });
66
66
  }
67
67
  render() {
68
- return (h("owner-form-core", { key: '9d1b43ef74d1e2d33cc3145c152564eb297b3cee', ownerId: this.ownerId, businessId: this.businessId, getOwner: this.getOwner, patchOwner: this.patchOwner, postOwner: this.postOwner, allowOptionalFields: this.allowOptionalFields, removeOwner: this.removeOwner, newFormOpen: this.newFormOpen, ownersLength: this.ownersLength, ref: ref => this.coreComponent = ref }));
68
+ return (h("owner-form-core", { key: '253fc2c5cf1d8c3d18cbcc43569c50a1dd4394f4', ownerId: this.ownerId, businessId: this.businessId, getOwner: this.getOwner, patchOwner: this.patchOwner, postOwner: this.postOwner, allowOptionalFields: this.allowOptionalFields, removeOwner: this.removeOwner, newFormOpen: this.newFormOpen, ownersLength: this.ownersLength, ref: ref => this.coreComponent = ref }));
69
69
  }
70
70
  };
71
71
 
@@ -223,7 +223,7 @@ const BusinessOwnerFormCore = class {
223
223
  this.formController.errors.subscribe(errors => (this.errors = Object.assign({}, errors)));
224
224
  }
225
225
  render() {
226
- return (h("form", { key: 'b7fc4c0d0fdf3a5aab0a246daffa59022255e6ae', onSubmit: this.validateAndSubmit }, h("fieldset", { key: 'eee56a5e2e26184086c1301576695b627a1f2ef4' }, h("legend", { key: 'b3f75638a502cca01da0ed54ec07660554dcd416', class: "fw-semibold fs-5", part: heading3 }, this.formTitle), h("br", { key: '0bc020cc7290615db3d3e1ec2b84d5af99ec86f0' }), h("div", { key: '2e7a09c9f4dffac21f2b3e1efe118542f18d89e8', class: "row gy-3" }, h("owner-form-inputs", { key: '78ffd296d4ecf0d5f2e50a06fb392cbefb1c9dc7', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: '73256017645b6987cd96006e5fe080402b0602d2', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: 'e2c288cf27ebc2d4dd9c29b2a2ed8e409d0c7564', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: 'd3d604b4416c8196181ec4fd34b254a0909b2aff', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: '4ad0047c67825990c1e4c02d377901d11a7937fa' }))));
226
+ return (h("form", { key: 'cf3b084a99c3cfc77af24f09feeda0468c2e6956', onSubmit: this.validateAndSubmit }, h("fieldset", { key: '3c78499a7df3496cd44416b96fe5fef44cc4d393' }, h("legend", { key: '5aee34b86e10d914964de3f62408b1f1e7899479', class: "fw-semibold fs-5", part: heading3 }, this.formTitle), h("br", { key: '4ca0d4c213f166f7ea10c0bfe276673ff077e1ba' }), h("div", { key: '95e485006a1111418ed409e7138c7f3098b9517c', class: "row gy-3" }, h("owner-form-inputs", { key: '1df9b40c91223253394c50312950b6b3d42906ff', ownerDefaultValue: this.formController.getInitialValues(), errors: this.errors, formController: this.formController }), h("div", { key: 'f1e2adc3111366c43a9a0d3cbed9e059916320f8', class: "d-flex gap-2 justify-content-start" }, h(Button, { key: 'ea19095c86d12cdabd48ad8618213aa06635b80f', variant: "secondary", type: "button", onClick: this.handleRemoveOwner, hidden: !this.showRemoveButton }, "Remove"), h(Button, { key: 'cb60a69f0e3252bb7623945610c5282bedfffe32', variant: "primary", type: "submit", onClick: this.handleAddOwner, disabled: this.isLoading }, this.submitButtonText))), h("hr", { key: 'db9fb6f130a114e82de0fb806ca1d70ac254f032' }))));
227
227
  }
228
228
  static get watchers() { return {
229
229
  "isLoading": ["loadingWatcher"]
@@ -244,7 +244,7 @@ const BusinessOwnerFormInputs = class {
244
244
  this.formController = undefined;
245
245
  }
246
246
  render() {
247
- return (h("div", { key: 'f54192149ae925bcd08b8408816fc41295ef00f4', class: "row gy-3" }, h("div", { key: '1f70faf2c08ebf277b465cb1532276f7525aa47f', class: "col-12 col-md-8" }, h("form-control-text", { key: '7bae6e4b330cbea14e0be40d1b35e804d62f5323', name: "name", label: "Full Name", defaultValue: this.ownerDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: '84cbbbf7cfb0e3c41c37b1194292dcb1f191298e', class: "col-12 col-md-4" }, h("form-control-text", { key: 'c106ea1b06e69d4b4fe3647cd2d0289185fae2e9', name: "title", label: "Title", defaultValue: this.ownerDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '8040bd2c6f6d67763578117c9a46e8e82aa18abf', class: "col-12 col-md-6" }, h("form-control-text", { key: '48aea09125f010bc799dc8d0e909f83c33972c3a', name: "email", label: "Email Address", defaultValue: this.ownerDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '00195bf163c16d8052c97de866bda7ac610cb959', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'd02770dcabfc707691ce4262cbca00d30b78a211', name: "phone", label: "Phone Number", defaultValue: this.ownerDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: 'c86d87082365b5daebce40e69f98a8813198eefd', class: "col-12 col-md-4" }, h("form-control-date", { key: 'cd2cfaf3c8a6fbb28719cb85ad4b3954ac2ff059', name: "dob_full", label: "Birth Date", defaultValue: this.ownerDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: 'f77e5943b8e04dc20cf9c126f6ad8ee67e27ac12', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: '3828035484d53d7267c7ce1686658eaba2495147', name: "identification_number", label: "SSN", defaultValue: this.ownerDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), h("div", { key: '4a67ced4d2a6f2be7f437e59a119ab97ec8c3ffc', class: "col-12" }, h("justifi-identity-address-form", { key: 'e4fbe8bbd642d623f306236b83be7800db619506', errors: this.errors.address, defaultValues: this.ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))));
247
+ return (h("div", { key: '97911ef690cb7932c0e382cfa79fa3333536055c', class: "row gy-3" }, h("div", { key: '0f15a832bcde62a50fb791e008dcd7da68c8da6b', class: "col-12 col-md-8" }, h("form-control-text", { key: 'fdc50a224e7e17d2923d6eb1fb274103e0d55710', name: "name", label: "Full Name", defaultValue: this.ownerDefaultValue.name, errorText: this.errors.name, inputHandler: this.inputHandler })), h("div", { key: 'c4be24670525f2b90fd6de5a0035241190dadd09', class: "col-12 col-md-4" }, h("form-control-text", { key: '8752eb6ea1d24189fd1a4d799145b5bbdc0413f2', name: "title", label: "Title", defaultValue: this.ownerDefaultValue.title, errorText: this.errors.title, inputHandler: this.inputHandler, helpText: "Role at your business, e.g. President, CEO, Treasurer." })), h("div", { key: '9d19f00bbd407ca55455947d84183530920d799c', class: "col-12 col-md-6" }, h("form-control-text", { key: '10ffe5b44086f623fb9f9d27f4a72cd251589bd0', name: "email", label: "Email Address", defaultValue: this.ownerDefaultValue.email, errorText: this.errors.email, inputHandler: this.inputHandler })), h("div", { key: '7c32fc26abbc0bc16b0a50d8bbfb47c121c7c62d', class: "col-12 col-md-6" }, h("form-control-number-masked", { key: 'e6b63872de5bd5cc98d61c8e6ebeb2a3f8443fb1', name: "phone", label: "Phone Number", defaultValue: this.ownerDefaultValue.phone, errorText: this.errors.phone, inputHandler: this.inputHandler, mask: PHONE_MASKS.US })), h("div", { key: '2e7eded46b1162d9ecf8c3badc869e98a710abee', class: "col-12 col-md-4" }, h("form-control-date", { key: '2c4b8c126d7505dadb3fe06b3b5cab5e83b91c23', name: "dob_full", label: "Birth Date", defaultValue: this.ownerDefaultValue.dob_full, errorText: this.errors.dob_full, inputHandler: this.inputHandler, onFormControlInput: (e) => updateDateOfBirthFormValues(e, this.formController), helpText: "Must be 18 or older." })), h("div", { key: 'dd96fdddddfb082fc0ce670f673decc97956c242', class: "col-12 col-md-8" }, h("form-control-number-masked", { key: '640cc2e749dc64879d8211c3340b7c273d3cb817', name: "identification_number", label: "SSN", defaultValue: this.ownerDefaultValue.identification_number, errorText: this.errors.identification_number, inputHandler: this.inputHandler, mask: SSN_MASK, helpText: "Enter your full Social Security Number. It is required for Federal OFAC check." })), h("div", { key: '681b2898183d73559150b5debef39901c4679eba', class: "col-12" }, h("justifi-identity-address-form", { key: 'e2de39be536c0854592a5132a6a9ac9d761a0f9b', errors: this.errors.address, defaultValues: this.ownerDefaultValue.address, handleFormUpdate: this.onAddressFormUpdate }))));
248
248
  }
249
249
  ;
250
250
  };
@@ -1,19 +1,19 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
2
- import { P as PaymentService } from './payment.service-a8aa5be7.js';
2
+ import { P as PaymentService } from './payment.service-b9ec64c9.js';
3
3
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
4
- import './Checkout-2bc873fb.js';
4
+ import './Checkout-ba139944.js';
5
5
  import './Pagination-afc8f96d.js';
6
- import { P as Payment } from './Payment-82d2f453.js';
7
- import './SubAccount-dbd4e50c.js';
6
+ import { P as Payment } from './Payment-39bfdd06.js';
7
+ import './SubAccount-68403637.js';
8
8
  import './Document-1907c0d4.js';
9
9
  import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
10
- import { E as ErrorState } from './utils-4cb0d852.js';
11
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8e7e585e.js';
12
- import './Api-391d00e2.js';
13
- import './utils-c37124fc.js';
10
+ import { E as ErrorState } from './utils-96d9c205.js';
11
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-b4d631be.js';
12
+ import './Api-52242eb0.js';
13
+ import './utils-dc86cdde.js';
14
14
  import './Dispute-5fd28ec9.js';
15
- import './parts-2c5c609b.js';
16
- import './package-46c7f3a6.js';
15
+ import './parts-fd740f54.js';
16
+ import './package-53180f2a.js';
17
17
 
18
18
  const makeGetPaymentDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
19
19
  var _a;
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
2
2
  import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError-c61dce41.js';
3
3
  import { a as checkProvisioningStatus } from './helpers-96ea3464.js';
4
- import { t as text } from './parts-2c5c609b.js';
4
+ import { t as text } from './parts-fd740f54.js';
5
5
  import { S as StyledHost } from './styled-host-32228b45.js';
6
- import { H as Header1 } from './header-1-b43590e5.js';
6
+ import { H as Header1 } from './header-1-215a146f.js';
7
7
  import { B as BusinessFormClickActions } from './event-types-5c87de02.js';
8
8
  import './state-options-a356fb11.js';
9
9
 
@@ -100,7 +100,7 @@ const PaymentProvisioningCore = class {
100
100
  this.loading = event.detail;
101
101
  }
102
102
  render() {
103
- return (h(StyledHost, { key: '498b6e0a593808dd761b9cefdb7e94124d445348' }, h("div", { key: 'd746caba6329ac82e75978bd19fbc09c8a43d60f', class: 'row gap-3' }, h(Header1, { key: '439425337ed7767ce4fc8c94e31f6997aa1b62d8', text: this.formTitle }), h("justifi-payment-provisioning-form-steps", { key: 'fd95a40c0a72c94cbb146cbc866d6b057cbfc5c0', businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, handleFormLoading: this.handleFormLoading }), h("div", { key: '350fc615685f872cb6ba5537dc2de5d2a205e5cc', class: 'd-flex justify-content-between align-items-center' }, h("div", { key: '3f9a36bc1d58efdfe81b4d7022647b0c1fbc1911', class: 'd-flex align-items-center', part: text }, this.stepCounter), h("justifi-payment-provisioning-form-buttons", { key: 'e1c061aa840b3b8ac1bad472d763fcd54c902681', currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
103
+ return (h(StyledHost, { key: 'e195b19df4d1061ecf8b305005faf0ffce68221e' }, h("div", { key: '17d42ba0a22567dce6760e2047478eb1bc36a794', class: 'row gap-3' }, h(Header1, { key: '507788c4af5572cbb09037443ae51b505567d825', text: this.formTitle }), h("justifi-payment-provisioning-form-steps", { key: '4b7e73217ff8230756542c3b0c069e18b7f23356', businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, handleFormLoading: this.handleFormLoading }), h("div", { key: '2ae1e8386114181cbd6f7999ac047b7709daa4fb', class: 'd-flex justify-content-between align-items-center' }, h("div", { key: 'a126b618a3028c4c7a9c12145ab63e222a17e51f', class: 'd-flex align-items-center', part: text }, this.stepCounter), h("justifi-payment-provisioning-form-buttons", { key: 'a66e1ac554e0dffa78be59df6a74d8175ba0376c', currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
104
104
  }
105
105
  };
106
106
 
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
2
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8e7e585e.js';
2
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-b4d631be.js';
3
3
  import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError-c61dce41.js';
4
4
  import { m as makeGetBusiness, a as makePostProvisioning } from './payment-provisioning-actions-beadac34.js';
5
- import { B as BusinessService } from './business.service-f7c3b9f7.js';
6
- import { A as Api } from './Api-391d00e2.js';
7
- import './package-46c7f3a6.js';
5
+ import { B as BusinessService } from './business.service-999196a4.js';
6
+ import { A as Api } from './Api-52242eb0.js';
7
+ import './package-53180f2a.js';
8
8
  import './utils-fd99b806.js';
9
9
 
10
10
  class ProvisionService {
@@ -63,7 +63,7 @@ const PaymentProvisioning = class {
63
63
  }
64
64
  }
65
65
  render() {
66
- return (h("justifi-payment-provisioning-core", { key: 'ca4b13afe923312bd51d477eae50099876991599', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
66
+ return (h("justifi-payment-provisioning-core", { key: 'ab584a720ecfc7ec4e68082fefadeb11fd2884d2', businessId: this.businessId, authToken: this.authToken, allowOptionalFields: this.allowOptionalFields, formTitle: this.formTitle, getBusiness: this.getBusiness, postProvisioning: this.postProvisioning }));
67
67
  }
68
68
  static get watchers() { return {
69
69
  "authToken": ["propChanged"],
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, h } from './index-29fcfdf5.js';
2
2
  import { l as lodash } from './lodash-faeb5a52.js';
3
3
  import { f as filterParams, p as propsParams, c as clearParams } from './payments-list-params-state-d05b24aa.js';
4
- import { D as paymentsListFilterMenu, E as paymentIdPaymentsListFilterParam, F as terminalIdPaymentsListFilterParam, G as paymentStatusPaymentsListFilterParam, H as createdAfterPaymentsListFilterParam, I as createdBeforePaymentsListFilterParam } from './parts-2c5c609b.js';
4
+ import { D as paymentsListFilterMenu, E as paymentIdPaymentsListFilterParam, F as terminalIdPaymentsListFilterParam, G as paymentStatusPaymentsListFilterParam, H as createdAfterPaymentsListFilterParam, I as createdBeforePaymentsListFilterParam } from './parts-fd740f54.js';
5
5
  import { S as StyledHost } from './styled-host-32228b45.js';
6
- import { d as convertToUTC, c as convertToLocal } from './utils-c37124fc.js';
6
+ import { d as convertToUTC, c as convertToLocal } from './utils-dc86cdde.js';
7
7
  import './index-a47fdc7f.js';
8
8
 
9
9
  const PaymentsListFilters = class {
@@ -51,8 +51,8 @@ const PaymentsListFilters = class {
51
51
  }
52
52
  render() {
53
53
  const filterMenuParams = Object.assign({}, filterParams);
54
- return (h(StyledHost, { key: 'e86e4d5f0a36516103a04539fd9ba2d1b698a06c' }, h("table-filters-menu", { key: 'bf4986bea9280046e8c5719dfdba6390d0cc7419', params: filterMenuParams, clearParams: clearParams, part: paymentsListFilterMenu }, h("div", { key: 'c9e898c5e4944f97ba66a8b72d6f940fce47f3f3', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '02eb01fee1165a1cd7174aa066147812d7a9cb44', class: "p-2" }, h("form-control-text", { key: 'cbeeef72894b2016d101b933412b797827513dd2', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.paymentId || filterParams.payment_id, disabled: !!this.paymentId, part: paymentIdPaymentsListFilterParam })), h("div", { key: '5daedbb20682ad6b295049a865c3377e2ef79d8a', class: "p-2" }, h("form-control-text", { key: '26cd105c075114cfd062fccde5500f2eeb55888b', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdPaymentsListFilterParam })), h("div", { key: '92349a4ebb343af3a8d54601fea4c177c2ff14b2', class: "p-2" }, h("form-control-select", { key: '0e5f7cf57a22d3eeb6e4aebdbac2fe1bb13288eb', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentStatus || filterParams.payment_status, disabled: !!this.paymentStatus, part: paymentStatusPaymentsListFilterParam })), h("div", { key: '5d5cc079285045a858bfbcf9646a54b8f4c70b8b', class: "p-2" }, h("form-control-date", { key: 'b8fb06fa8506503bcf89c50523dd8e036852557c', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
55
- convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '3d6a1de1b08e1a326e107e60c78580848ffdda19', class: "p-2" }, h("form-control-date", { key: '6f7bf72ac396429a3d8318ee17d5459147a4f60e', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
54
+ return (h(StyledHost, { key: 'c213f44219409851784f62f38932d6165e933e2a' }, h("table-filters-menu", { key: 'b0f67131ad7812cf51e475809c4e6b1d57577cf1', params: filterMenuParams, clearParams: clearParams, part: paymentsListFilterMenu }, h("div", { key: '8d259cfe28fdeb67096383c317392f99642b4266', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'a593eae6541085b1d2ad46e8fac7a5e53c11c38e', class: "p-2" }, h("form-control-text", { key: 'a32b07e6635bbc31c2ca11e91cd3f95edf558cb1', name: "payment_id", label: "Payment ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.paymentId || filterParams.payment_id, disabled: !!this.paymentId, part: paymentIdPaymentsListFilterParam })), h("div", { key: '989e3f4d1f48549210e982e2c55329841bdd1926', class: "p-2" }, h("form-control-text", { key: 'a54152f1052642448ccd1e50561af65c32d976bf', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdPaymentsListFilterParam })), h("div", { key: 'f5d484ca692420c508c8c33392a73ed84544ab97', class: "p-2" }, h("form-control-select", { key: '1f8d609f065cae6830b28ce268fb299eff9bf549', name: "payment_status", label: "Status", options: this.paymentStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentStatus || filterParams.payment_status, disabled: !!this.paymentStatus, part: paymentStatusPaymentsListFilterParam })), h("div", { key: '8db078f3a5272b61f3843119b4da4344df70e02d', class: "p-2" }, h("form-control-date", { key: '6e20e715d77f116f93484d417a0ac1c95d0e9a5e', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDateTime: true }) ||
55
+ convertToLocal(filterParams.created_after, { showInputDateTime: true }), showTime: true, disabled: !!this.createdAfter, part: createdAfterPaymentsListFilterParam })), h("div", { key: '5a011a17767ad4cfd89a40b0f3d77ec92df433b3', class: "p-2" }, h("form-control-date", { key: '5064f46b779239aabc5d0fcb11479634e14e050d', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDateTime: true }) ||
56
56
  convertToLocal(filterParams.created_before, { showInputDateTime: true }), showTime: true, disabled: !!this.createdBefore, part: createdBeforePaymentsListFilterParam }))))));
57
57
  }
58
58
  };
@@ -1,22 +1,22 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
2
- import { P as PaymentService } from './payment.service-a8aa5be7.js';
2
+ import { P as PaymentService } from './payment.service-b9ec64c9.js';
3
3
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
4
- import './Checkout-2bc873fb.js';
4
+ import './Checkout-ba139944.js';
5
5
  import './Pagination-afc8f96d.js';
6
- import { P as Payment } from './Payment-82d2f453.js';
7
- import './SubAccount-dbd4e50c.js';
6
+ import { P as Payment } from './Payment-39bfdd06.js';
7
+ import './SubAccount-68403637.js';
8
8
  import './Document-1907c0d4.js';
9
9
  import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
10
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8e7e585e.js';
10
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-b4d631be.js';
11
11
  import { S as StyledHost } from './styled-host-32228b45.js';
12
- import { d as defaultColumnsKeys } from './payments-table-4c6093e1.js';
13
- import './Api-391d00e2.js';
14
- import './utils-c37124fc.js';
12
+ import { d as defaultColumnsKeys } from './payments-table-26054032.js';
13
+ import './Api-52242eb0.js';
14
+ import './utils-dc86cdde.js';
15
15
  import './Dispute-5fd28ec9.js';
16
- import './package-46c7f3a6.js';
17
- import './payments-status-6e203ce4.js';
18
- import './badge-6f5acf30.js';
19
- import './parts-2c5c609b.js';
16
+ import './package-53180f2a.js';
17
+ import './payments-status-74d22728.js';
18
+ import './badge-1be14e8c.js';
19
+ import './parts-fd740f54.js';
20
20
 
21
21
  const makeGetPayments = ({ id, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError, final }) => {
22
22
  var _a, _b;
@@ -95,7 +95,7 @@ const PaymentsList = class {
95
95
  }
96
96
  }
97
97
  render() {
98
- return (h(StyledHost, { key: 'ade68405b7b039032dc8d4a271bdafd6b5b3dfe8' }, h("payments-list-core", { key: '30844738130c05a96bd93d670bad14d544368fb2', getPayments: this.getPayments, "onError-event": this.handleErrorEvent, columns: this.columns })));
98
+ return (h(StyledHost, { key: '6882456e9e7af8dd5e8023cf649d967551689c20' }, h("payments-list-core", { key: '7df305455ba20e2eede8c5146edb5db2e7c412c8', getPayments: this.getPayments, "onError-event": this.handleErrorEvent, columns: this.columns })));
99
99
  }
100
100
  static get watchers() { return {
101
101
  "accountId": ["propChanged"],
@@ -1,19 +1,19 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
2
- import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-6826271a.js';
2
+ import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-74397995.js';
3
3
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
4
- import './Checkout-2bc873fb.js';
4
+ import './Checkout-ba139944.js';
5
5
  import './Pagination-afc8f96d.js';
6
- import './Payment-82d2f453.js';
7
- import { P as Payout } from './SubAccount-dbd4e50c.js';
6
+ import './Payment-39bfdd06.js';
7
+ import { P as Payout } from './SubAccount-68403637.js';
8
8
  import './Document-1907c0d4.js';
9
9
  import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
10
- import { E as ErrorState } from './utils-4cb0d852.js';
11
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8e7e585e.js';
12
- import './Api-391d00e2.js';
13
- import './utils-c37124fc.js';
10
+ import { E as ErrorState } from './utils-96d9c205.js';
11
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-b4d631be.js';
12
+ import './Api-52242eb0.js';
13
+ import './utils-dc86cdde.js';
14
14
  import './Dispute-5fd28ec9.js';
15
- import './parts-2c5c609b.js';
16
- import './package-46c7f3a6.js';
15
+ import './parts-fd740f54.js';
16
+ import './package-53180f2a.js';
17
17
 
18
18
  const makeGetPayoutDetails = ({ id, authToken, service }) => async ({ onSuccess, onError }) => {
19
19
  var _a;
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h } from './index-29fcfdf5.js';
2
2
  import { f as filterParams, p as propsParams, c as clearParams } from './payouts-list-params-state-ebcee300.js';
3
- import { J as payoutsListFilterMenu, K as createdAfterPayoutsListFilterParam, L as createdBeforePayoutsListFilterParam } from './parts-2c5c609b.js';
3
+ import { J as payoutsListFilterMenu, K as createdAfterPayoutsListFilterParam, L as createdBeforePayoutsListFilterParam } from './parts-fd740f54.js';
4
4
  import { S as StyledHost } from './styled-host-32228b45.js';
5
- import { d as convertToUTC, c as convertToLocal } from './utils-c37124fc.js';
5
+ import { d as convertToUTC, c as convertToLocal } from './utils-dc86cdde.js';
6
6
  import './index-a47fdc7f.js';
7
7
 
8
8
  const PayoutsListFilters = class {
@@ -31,8 +31,8 @@ const PayoutsListFilters = class {
31
31
  }
32
32
  render() {
33
33
  const filterMenuParams = Object.assign({}, filterParams);
34
- return (h(StyledHost, { key: 'fca8f3d0daf92026b7d3cccdd096c8650eb31d28' }, h("table-filters-menu", { key: 'b166ff52682804bd241866ffbe53ada0cf6133e8', params: filterMenuParams, clearParams: clearParams, part: payoutsListFilterMenu }, h("div", { key: 'f72774348aac13463934af8c8bfb3aa9b29a3942', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '87ee14df90cd83394e573f1f4e75d315cd48b2d3', class: "p-2" }, h("form-control-date", { key: 'f14e2dd16a24d8f6ac41ed110bdf2e5f0e7b0389', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDate: true }) ||
35
- convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: 'fe9b41fcc98571f9f5f477a0006a2a00a5bdba1c', class: "p-2" }, h("form-control-date", { key: '9ab09d81f389f410ea7d1d533a0f25995d261aef', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDate: true }) ||
34
+ return (h(StyledHost, { key: '30857b318a635a1420f56799c572f39da85d6317' }, h("table-filters-menu", { key: 'c3b0bdc3d50d9cc3e2cef3adfbba7f0fe7539044', params: filterMenuParams, clearParams: clearParams, part: payoutsListFilterMenu }, h("div", { key: '9be791ebd77eb197e18e7663c30fa2a12c1e9a4f', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '3e172e7f255b4e78b48cb03d2b921b01fdefc4b0', class: "p-2" }, h("form-control-date", { key: '875f2202358370bec6df4b724dbc2db7070b1ff7', name: "created_after", label: "Created After", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdAfter, { showInputDate: true }) ||
35
+ convertToLocal(filterParams.created_after, { showInputDate: true }), disabled: !!this.createdAfter, part: createdAfterPayoutsListFilterParam })), h("div", { key: 'ce324f47aa1b38b6d24f200a7b468076c6998faf', class: "p-2" }, h("form-control-date", { key: '3d2543d40d2f3ac60c7f3f09d905c102425dffc6', name: "created_before", label: "Created Before", inputHandler: this.handleDateInput, defaultValue: convertToLocal(this.createdBefore, { showInputDate: true }) ||
36
36
  convertToLocal(filterParams.created_before, { showInputDate: true }), disabled: !!this.createdBefore, part: createdBeforePayoutsListFilterParam }))))));
37
37
  }
38
38
  };
@@ -1,23 +1,23 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
2
2
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
3
- import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-8e7e585e.js';
4
- import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-6826271a.js';
5
- import './Checkout-2bc873fb.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version-b4d631be.js';
4
+ import { m as makeGetPayoutCSV, P as PayoutService } from './get-payout-csv-74397995.js';
5
+ import './Checkout-ba139944.js';
6
6
  import './Pagination-afc8f96d.js';
7
- import './Payment-82d2f453.js';
8
- import { P as Payout } from './SubAccount-dbd4e50c.js';
7
+ import './Payment-39bfdd06.js';
8
+ import { P as Payout } from './SubAccount-68403637.js';
9
9
  import './Document-1907c0d4.js';
10
10
  import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
11
- import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-f21220dc.js';
11
+ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-f8bd5c96.js';
12
12
  import { S as StyledHost } from './styled-host-32228b45.js';
13
- import { d as defaultColumnsKeys } from './payouts-table-46fbedb6.js';
14
- import './package-46c7f3a6.js';
15
- import './Api-391d00e2.js';
16
- import './utils-c37124fc.js';
13
+ import { d as defaultColumnsKeys } from './payouts-table-7f31db9d.js';
14
+ import './package-53180f2a.js';
15
+ import './Api-52242eb0.js';
16
+ import './utils-dc86cdde.js';
17
17
  import './Dispute-5fd28ec9.js';
18
- import './payouts-status-66e830f1.js';
19
- import './badge-6f5acf30.js';
20
- import './parts-2c5c609b.js';
18
+ import './payouts-status-29d31099.js';
19
+ import './badge-1be14e8c.js';
20
+ import './parts-fd740f54.js';
21
21
 
22
22
  const tableExportedParts = `
23
23
  table-head,table-head-row,table-head-cell,table-body,table-row,table-row-even,
@@ -117,7 +117,7 @@ const PayoutsList = class {
117
117
  }
118
118
  }
119
119
  render() {
120
- return (h(StyledHost, { key: '7456971cf903af6fd77385fd01dac69760b9df11', exportedparts: tableExportedParts }, h("payouts-list-core", { key: '6bf911cb5a793f49fb19903013c48e6df93f9866', getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, getSubAccounts: this.getSubAccounts, "onError-event": this.handleOnError, columns: this.columns })));
120
+ return (h(StyledHost, { key: '434171dee57c7d639a894133b36f7dc727e28381', exportedparts: tableExportedParts }, h("payouts-list-core", { key: 'e4ed849e1c839dcdd3990a1b64d2bd132cda86f8', getPayouts: this.getPayouts, getPayoutCSV: this.getPayoutCSV, getSubAccounts: this.getSubAccounts, "onError-event": this.handleOnError, columns: this.columns })));
121
121
  }
122
122
  static get watchers() { return {
123
123
  "accountId": ["propChanged"],
@@ -0,0 +1,118 @@
1
+ import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
2
+ import { c as create$3, a as create$6, F as FormController } from './index.esm-feedf26f.js';
3
+ import { f as formatCurrency } from './utils-dc86cdde.js';
4
+ import { A as Api } from './Api-52242eb0.js';
5
+ import './ComponentError-c61dce41.js';
6
+ import './Checkout-ba139944.js';
7
+ import './Pagination-afc8f96d.js';
8
+ import './Payment-39bfdd06.js';
9
+ import './SubAccount-68403637.js';
10
+ import './Document-1907c0d4.js';
11
+ import { S as StyledHost } from './styled-host-32228b45.js';
12
+ import { H as Header1 } from './header-1-215a146f.js';
13
+ import './Dispute-5fd28ec9.js';
14
+ import './parts-fd740f54.js';
15
+
16
+ const RefundPaymentSchema = (maxRefundAmount) => {
17
+ const maxAmount = +maxRefundAmount;
18
+ return create$3().shape({
19
+ amount: create$6()
20
+ .required('Amount is required')
21
+ .typeError('Amount must be a number')
22
+ .test('amount', `Refund amount cannot be more than ${formatCurrency(maxAmount)}`, function (value) {
23
+ return +value <= maxAmount;
24
+ })
25
+ .nullable(),
26
+ });
27
+ };
28
+
29
+ const refundReasonOptions = [
30
+ {
31
+ label: 'Select a reason',
32
+ value: '',
33
+ },
34
+ {
35
+ label: 'Customer requested a refund',
36
+ value: 'customer_request',
37
+ },
38
+ {
39
+ label: 'Customer was double-charged',
40
+ value: 'duplicate',
41
+ },
42
+ {
43
+ label: 'Payment was reported as fraud',
44
+ value: 'fraudulent',
45
+ }
46
+ ];
47
+
48
+ const RefundPayment = class {
49
+ constructor(hostRef) {
50
+ registerInstance(this, hostRef);
51
+ this.submitted = createEvent(this, "submitted", 7);
52
+ this.authToken = undefined;
53
+ this.paymentId = undefined;
54
+ this.paymentAmountRefundable = 0;
55
+ this.withButton = undefined;
56
+ this.errors = {};
57
+ this.values = {};
58
+ this.isSubmitting = false;
59
+ }
60
+ componentWillLoad() {
61
+ this.formController = new FormController(RefundPaymentSchema(this.paymentAmountRefundable.toString()));
62
+ this.initializeApi();
63
+ }
64
+ componentDidLoad() {
65
+ this.formController.errors.subscribe(errors => {
66
+ this.errors = Object.assign({}, errors);
67
+ });
68
+ this.formController.values.subscribe(values => {
69
+ this.values = Object.assign({}, values);
70
+ });
71
+ }
72
+ /**
73
+ * Handles the form submission.
74
+ * Prevents the default form action, validates the form, and emits the 'submitted' event.
75
+ */
76
+ async handleSubmit(event) {
77
+ event.preventDefault();
78
+ this.formController.validateAndSubmit(this.submitRefund);
79
+ }
80
+ /**
81
+ * Submits the refund request to the API.
82
+ */
83
+ async submitRefund(values) {
84
+ this.isSubmitting = true;
85
+ try {
86
+ const response = await this.api.post(`payments/${this.paymentId}/refunds`, values);
87
+ this.submitted.emit(response);
88
+ }
89
+ catch (error) {
90
+ console.error('Error submitting refund:', error);
91
+ this.submitted.emit(error);
92
+ }
93
+ finally {
94
+ this.isSubmitting = false;
95
+ }
96
+ }
97
+ /**
98
+ * Handles input changes, updating the refundFields state.
99
+ */
100
+ handleInput(field, value) {
101
+ this.formController.setValues(Object.assign(Object.assign({}, this.formController.values.getValue()), { [field]: value }));
102
+ }
103
+ /**
104
+ * Initializes the API with the given authentication token.
105
+ * Logs a warning if the auth token is missing.
106
+ */
107
+ initializeApi() {
108
+ if (!this.authToken) {
109
+ console.warn('Warning: Missing auth-token.');
110
+ }
111
+ this.api = Api({ authToken: this.authToken, apiOrigin: "https://wc-proxy.justifi.ai" });
112
+ }
113
+ render() {
114
+ return (h(StyledHost, { key: 'f9aa3650a61fce55ce094e48cb23cc62caf4c434' }, h(Header1, { key: 'def40858b3cf9188362848703e6425cc1273b1ee', text: "Refund Payment", class: "fs-5 fw-bold pb-3" }), h("form", { key: '20fcdff2467713eb3502959d0186de900a400207', onSubmit: e => this.handleSubmit(e), class: "d-grid gap-4" }, h("div", { key: '5e838c432e5e0fafdfd153de327548a2d2d7f388', class: "form-group" }, h("form-control-monetary", { key: '151d529e7422073da4244f9bc81166f6a54ad9b0', name: "amount", label: "Refund Amount", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.amount, defaultValue: this.paymentAmountRefundable.toString() })), h("div", { key: '7d69e721b5f346d854f8b1914199c56fb062694d', class: "form-group" }, h("form-control-select", { key: '791d41bf86e856a7694afb0db20607ba792459b9', label: "Reason for refund (optional)", options: refundReasonOptions, name: "reason", defaultValue: '' })), h("div", { key: 'b8a67a5d091ad11a410d157cf6706023b3af139c', class: "form-group" }, h("form-control-textarea", { key: 'eee0ab29c728a64435c2836361eb2c2645fce1ea', name: "description", label: "Note (optional)", inputHandler: (name, value) => this.handleInput(name, value), errorText: this.errors.description, maxLength: 250 })), this.withButton && (h("div", { key: '3504774504825ffdace54ebf41f496aa58395648', class: "form-group d-flex flex-row-reverse" }, h("button", { key: '27179c019afbec3d136c959657e6e6cbec892a27', type: "submit", disabled: !!this.isSubmitting, class: "btn btn-primary ml-auto" }, `Refund ${formatCurrency(+this.values.amount)}`))))));
115
+ }
116
+ };
117
+
118
+ export { RefundPayment as justifi_refund_payment };
@@ -1,9 +1,9 @@
1
1
  import { h, r as registerInstance, c as createEvent } from './index-29fcfdf5.js';
2
- import { p as processHTML, f as formatCurrency, r as removeAttribute, g as addAttribute } from './utils-c37124fc.js';
3
- import { v as validateInsuranceValues, a as insuranceValues, b as insuranceErrors, H as Header2 } from './insurance-state-9e4a3359.js';
4
- import { t as text, d as textDanger } from './parts-2c5c609b.js';
2
+ import { p as processHTML, f as formatCurrency, r as removeAttribute, h as addAttribute } from './utils-dc86cdde.js';
3
+ import { v as validateInsuranceValues, a as insuranceValues, b as insuranceErrors, H as Header2 } from './insurance-state-d2df8e88.js';
4
+ import { t as text, d as textDanger } from './parts-fd740f54.js';
5
5
  import { S as StyledHost } from './styled-host-32228b45.js';
6
- import { S as Skeleton } from './skeleton-122648e6.js';
6
+ import { S as Skeleton } from './skeleton-ab3f676e.js';
7
7
  import './index-a47fdc7f.js';
8
8
 
9
9
  const SeasonInterruptionInsuranceLoading = () => (h("div", { class: "row gap-3" },