@justifi/webcomponents 5.3.4 → 5.3.6

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 (481) hide show
  1. package/dist/cjs/{Checkout-1c07dc32.js → Checkout-eef27045.js} +11 -6
  2. package/dist/cjs/{SubAccount-b4811a8e.js → SubAccount-df3d28dc.js} +70 -0
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  4. package/dist/cjs/{badge-86a6a7f8.js → badge-79e56b99.js} +1 -1
  5. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +7 -7
  6. package/dist/cjs/bank-account-form_9.cjs.entry.js +4 -4
  7. package/dist/cjs/billing-form_3.cjs.entry.js +6 -6
  8. package/dist/cjs/business-details-core.cjs.entry.js +3 -3
  9. package/dist/cjs/{button-5f6c437f.js → button-797bb3cc.js} +1 -1
  10. package/dist/cjs/{Analytics-2fb20059.js → check-pkg-version-1f8b660c.js} +21 -1
  11. package/dist/cjs/{checkout.service-b23994d2.js → checkout.service-c01e2cd7.js} +2 -2
  12. package/dist/cjs/checkouts-list-core.cjs.entry.js +9 -10
  13. package/dist/cjs/{checkouts-table-cf3e245e.js → checkouts-table-61543249.js} +2 -2
  14. package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +2 -141
  15. package/dist/cjs/{dispute.service-c192dd33.js → dispute.service-399de502.js} +2 -2
  16. package/dist/cjs/{table-fc82fa81.js → event-types-666f1f22.js} +9 -2
  17. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  18. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  19. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  20. package/dist/cjs/{form-control-error-text-9905e3b8.js → form-control-error-text-b782cdd0.js} +1 -1
  21. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -4
  22. package/dist/cjs/{form-control-help-text-8d031bfb.js → form-control-help-text-ca3c8155.js} +1 -1
  23. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  24. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
  25. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  26. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  27. package/dist/cjs/form-control-select_3.cjs.entry.js +145 -0
  28. package/dist/cjs/{get-payout-csv-13d68dab.js → get-payout-csv-11a983a0.js} +2 -2
  29. package/dist/cjs/{get-subaccounts-b2e6ab82.js → get-subaccounts-224f9497.js} +2 -2
  30. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
  31. package/dist/cjs/{header-1-b202dbbb.js → header-1-ff669f3f.js} +1 -1
  32. package/dist/cjs/{header-3-5f78acd1.js → header-3-f6642390.js} +1 -1
  33. package/dist/cjs/{insurance-state-ba0c39a9.js → insurance-state-66c9bea7.js} +1 -1
  34. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +5 -5
  35. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +4 -4
  36. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +71 -108
  37. package/dist/cjs/justifi-business-details.cjs.entry.js +5 -6
  38. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -10
  39. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  40. package/dist/cjs/justifi-checkout-core.cjs.entry.js +6 -6
  41. package/dist/cjs/justifi-checkout.cjs.entry.js +7 -8
  42. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
  43. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -11
  44. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  45. package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -7
  46. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +31 -25
  47. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -6
  48. package/dist/cjs/justifi-order-terminals.cjs.entry.js +187 -41
  49. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
  50. package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -9
  51. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
  52. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -4
  53. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
  54. package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -12
  55. package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -9
  56. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
  57. package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -13
  58. package/dist/cjs/justifi-refund-form.cjs.entry.js +3 -3
  59. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
  60. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -6
  61. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +79 -13
  62. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
  63. package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -26
  64. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +9 -10
  65. package/dist/cjs/loader.cjs.js +1 -1
  66. package/dist/cjs/{package-e8aa0c51.js → package-d34fcfa5.js} +1 -1
  67. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  68. package/dist/cjs/{parts-c2655003.js → parts-1fb925c2.js} +3 -5
  69. package/dist/cjs/payment-details-core.cjs.entry.js +12 -12
  70. package/dist/cjs/{payment.service-f53022c3.js → payment.service-f369b33c.js} +2 -2
  71. package/dist/cjs/payments-list-core.cjs.entry.js +10 -11
  72. package/dist/cjs/{payments-status-92abe577.js → payments-status-ffdc54ff.js} +1 -1
  73. package/dist/cjs/{payments-table-c58e3ca8.js → payments-table-98b4e5e3.js} +2 -2
  74. package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
  75. package/dist/cjs/payouts-list-core.cjs.entry.js +10 -11
  76. package/dist/cjs/{payouts-status-703d62af.js → payouts-status-64fd0c68.js} +1 -1
  77. package/dist/cjs/{payouts-table-70fc1498.js → payouts-table-ecfb826b.js} +2 -2
  78. package/dist/cjs/{skeleton-84102a44.js → skeleton-2ae76f16.js} +1 -1
  79. package/dist/cjs/{spinner-70f38e5e.js → spinner-15764f3c.js} +1 -1
  80. package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
  81. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +31 -11
  82. package/dist/cjs/terminal-orders-table-f1bed365.js +56 -0
  83. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +36 -0
  84. package/dist/cjs/terminal.service-4fd34835.js +35 -0
  85. package/dist/cjs/terminals-list-core.cjs.entry.js +9 -10
  86. package/dist/cjs/{terminals-table-db58a0c0.js → terminals-table-30298ce4.js} +6 -4
  87. package/dist/cjs/{utils-7c5b2837.js → utils-3e3b8061.js} +1 -1
  88. package/dist/cjs/webcomponents.cjs.js +1 -1
  89. package/dist/collection/actions/terminal/get-terminal-models.js +30 -0
  90. package/dist/collection/actions/terminal/get-terminal-orders.js +34 -0
  91. package/dist/collection/actions/terminal/order-terminals.js +29 -0
  92. package/dist/collection/api/Checkout.js +5 -0
  93. package/dist/collection/api/Terminal.js +1 -0
  94. package/dist/collection/api/TerminalModel.js +15 -0
  95. package/dist/collection/api/TerminalOrder.js +51 -0
  96. package/dist/collection/api/index.js +2 -0
  97. package/dist/collection/api/services/terminal.service.js +11 -0
  98. package/dist/collection/api/services/terminal_orders.service.js +9 -0
  99. package/dist/collection/collection-manifest.json +1 -0
  100. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +2 -2
  101. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +8 -8
  102. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  103. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +27 -15
  104. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +26 -14
  105. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +26 -14
  106. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +22 -14
  107. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +26 -14
  108. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +26 -14
  109. package/dist/collection/components/dispute-management/dispute-response/file-input-handler.js +11 -0
  110. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +26 -14
  111. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +26 -14
  112. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +26 -12
  113. package/dist/collection/components/order-terminals/order-terminals-loading.js +1 -1
  114. package/dist/collection/components/order-terminals/order-terminals.js +159 -35
  115. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector-loading.js +5 -0
  116. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +153 -0
  117. package/dist/collection/components/payment-details/payment-details-core.js +7 -7
  118. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  119. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  120. package/dist/collection/components/payments-list/payments-list.js +1 -1
  121. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  122. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  123. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  124. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  125. package/dist/collection/components/refund-form/refund-form.js +1 -1
  126. package/dist/collection/components/terminal-orders-list/terminal-order-status.js +23 -0
  127. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +53 -7
  128. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +52 -11
  129. package/dist/collection/components/terminal-orders-list/terminal-orders-table.js +17 -5
  130. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  131. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  132. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  133. package/dist/collection/components/terminals-list/terminals-table.js +4 -2
  134. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
  135. package/dist/collection/styles/parts.js +3 -0
  136. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  137. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  138. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  139. package/dist/collection/ui-components/form/form-control-file-v2.js +2 -1
  140. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  141. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  142. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  143. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  144. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  145. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  146. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  147. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  148. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  149. package/dist/docs.json +530 -50
  150. package/dist/esm/{Checkout-919eb1ba.js → Checkout-2bc873fb.js} +6 -1
  151. package/dist/esm/{SubAccount-9aad3891.js → SubAccount-dbd4e50c.js} +69 -1
  152. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  153. package/dist/esm/{badge-2eb79416.js → badge-6f5acf30.js} +1 -1
  154. package/dist/esm/bank-account-document-form-inputs_4.entry.js +7 -7
  155. package/dist/esm/bank-account-form_9.entry.js +4 -4
  156. package/dist/esm/billing-form_3.entry.js +6 -6
  157. package/dist/esm/business-details-core.entry.js +3 -3
  158. package/dist/esm/{button-cc455199.js → button-79dcea75.js} +1 -1
  159. package/dist/esm/{Analytics-759c7da5.js → check-pkg-version-8e7e585e.js} +21 -2
  160. package/dist/esm/{checkout.service-bb45d248.js → checkout.service-382a16ec.js} +2 -2
  161. package/dist/esm/checkouts-list-core.entry.js +7 -8
  162. package/dist/esm/{checkouts-table-53981285.js → checkouts-table-8a53cef9.js} +2 -2
  163. package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -140
  164. package/dist/esm/{dispute.service-9008b3b7.js → dispute.service-97887804.js} +2 -2
  165. package/dist/esm/{table-e287f1c0.js → event-types-82515a49.js} +10 -3
  166. package/dist/esm/form-alert_5.entry.js +1 -1
  167. package/dist/esm/form-control-checkbox.entry.js +5 -5
  168. package/dist/esm/form-control-date.entry.js +4 -4
  169. package/dist/esm/{form-control-error-text-74c6b38a.js → form-control-error-text-466c252b.js} +1 -1
  170. package/dist/esm/form-control-file-v2_2.entry.js +5 -4
  171. package/dist/esm/{form-control-help-text-76a4196e.js → form-control-help-text-242916e3.js} +1 -1
  172. package/dist/esm/form-control-monetary.entry.js +5 -5
  173. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  174. package/dist/esm/form-control-number.entry.js +5 -5
  175. package/dist/esm/form-control-radio.entry.js +3 -3
  176. package/dist/esm/form-control-select_3.entry.js +139 -0
  177. package/dist/esm/{get-payout-csv-8450b60d.js → get-payout-csv-6826271a.js} +2 -2
  178. package/dist/esm/{get-subaccounts-3af0844a.js → get-subaccounts-f21220dc.js} +2 -2
  179. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  180. package/dist/esm/{header-1-797ca789.js → header-1-b43590e5.js} +1 -1
  181. package/dist/esm/{header-3-544afa0b.js → header-3-b90e161e.js} +1 -1
  182. package/dist/esm/{insurance-state-307335d6.js → insurance-state-9e4a3359.js} +1 -1
  183. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +5 -5
  184. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +4 -4
  185. package/dist/esm/justifi-additional-statement_8.entry.js +71 -108
  186. package/dist/esm/justifi-business-details.entry.js +4 -5
  187. package/dist/esm/justifi-business-form.entry.js +8 -9
  188. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  189. package/dist/esm/justifi-checkout-core.entry.js +6 -6
  190. package/dist/esm/justifi-checkout.entry.js +6 -7
  191. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
  192. package/dist/esm/justifi-checkouts-list.entry.js +9 -10
  193. package/dist/esm/justifi-details.entry.js +2 -2
  194. package/dist/esm/justifi-dispute-management.entry.js +5 -6
  195. package/dist/esm/justifi-dispute-notification_3.entry.js +30 -24
  196. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -5
  197. package/dist/esm/justifi-order-terminals.entry.js +187 -41
  198. package/dist/esm/justifi-owner-form_3.entry.js +2 -2
  199. package/dist/esm/justifi-payment-details.entry.js +7 -8
  200. package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
  201. package/dist/esm/justifi-payment-provisioning.entry.js +2 -3
  202. package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
  203. package/dist/esm/justifi-payments-list.entry.js +10 -11
  204. package/dist/esm/justifi-payout-details.entry.js +7 -8
  205. package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
  206. package/dist/esm/justifi-payouts-list.entry.js +11 -12
  207. package/dist/esm/justifi-refund-form.entry.js +3 -3
  208. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
  209. package/dist/esm/justifi-season-interruption-insurance.entry.js +4 -5
  210. package/dist/esm/justifi-terminal-orders-list.entry.js +80 -14
  211. package/dist/esm/justifi-terminals-list-filters.entry.js +4 -4
  212. package/dist/esm/justifi-terminals-list.entry.js +11 -24
  213. package/dist/esm/justifi-tokenize-payment-method.entry.js +8 -9
  214. package/dist/esm/loader.js +1 -1
  215. package/dist/esm/{package-49477570.js → package-46c7f3a6.js} +1 -1
  216. package/dist/esm/pagination-menu.entry.js +1 -1
  217. package/dist/esm/{parts-489f0af6.js → parts-2c5c609b.js} +3 -4
  218. package/dist/esm/payment-details-core.entry.js +12 -12
  219. package/dist/esm/{payment.service-a8ee345c.js → payment.service-a8aa5be7.js} +2 -2
  220. package/dist/esm/payments-list-core.entry.js +9 -10
  221. package/dist/esm/{payments-status-35255b2c.js → payments-status-6e203ce4.js} +1 -1
  222. package/dist/esm/{payments-table-6e97396a.js → payments-table-4c6093e1.js} +2 -2
  223. package/dist/esm/payout-details-core.entry.js +7 -7
  224. package/dist/esm/payouts-list-core.entry.js +9 -10
  225. package/dist/esm/{payouts-status-a0cc00c5.js → payouts-status-66e830f1.js} +1 -1
  226. package/dist/esm/{payouts-table-6b8ba8f1.js → payouts-table-46fbedb6.js} +2 -2
  227. package/dist/esm/{skeleton-74fbfb68.js → skeleton-122648e6.js} +1 -1
  228. package/dist/esm/{spinner-6b708842.js → spinner-14cd9ac7.js} +1 -1
  229. package/dist/esm/table-filters-menu.entry.js +2 -2
  230. package/dist/esm/terminal-orders-list-core.entry.js +30 -10
  231. package/dist/esm/terminal-orders-table-83b905fd.js +52 -0
  232. package/dist/esm/terminal-quantity-selector.entry.js +32 -0
  233. package/dist/esm/terminal.service-20445fc1.js +33 -0
  234. package/dist/esm/terminals-list-core.entry.js +8 -9
  235. package/dist/esm/{terminals-table-c6258344.js → terminals-table-dbbf9a99.js} +6 -4
  236. package/dist/esm/{utils-6c26bccc.js → utils-4cb0d852.js} +1 -1
  237. package/dist/esm/webcomponents.js +1 -1
  238. package/dist/module/Checkout.js +6 -1
  239. package/dist/module/SubAccount.js +69 -1
  240. package/dist/module/additional-statement.js +9 -14
  241. package/dist/module/cancellation-policy.js +9 -14
  242. package/dist/module/check-pkg-version.js +80 -1
  243. package/dist/module/checkouts-list-core2.js +1 -2
  244. package/dist/module/custom-popper2.js +2 -2
  245. package/dist/module/customer-details.js +9 -14
  246. package/dist/module/dispute-notification.js +1 -1
  247. package/dist/module/dispute-response-core.js +22 -14
  248. package/dist/module/dispute-response.js +1 -2
  249. package/dist/module/duplicate-charge.js +9 -14
  250. package/dist/module/electronic-evidence.js +9 -14
  251. package/dist/module/event-types2.js +55 -1
  252. package/dist/module/{dispute-response-form-types.js → file-input-handler.js} +23 -13
  253. package/dist/module/form-control-checkbox2.js +2 -2
  254. package/dist/module/form-control-date2.js +2 -2
  255. package/dist/module/form-control-file-v22.js +2 -1
  256. package/dist/module/form-control-file2.js +2 -2
  257. package/dist/module/form-control-monetary2.js +2 -2
  258. package/dist/module/form-control-number-masked2.js +2 -2
  259. package/dist/module/form-control-number.js +2 -2
  260. package/dist/module/form-control-radio2.js +2 -2
  261. package/dist/module/form-control-text2.js +2 -2
  262. package/dist/module/form-control-textarea2.js +2 -2
  263. package/dist/module/hidden-input2.js +1 -1
  264. package/dist/module/iframe-input2.js +3 -3
  265. package/dist/module/justifi-business-details.js +1 -2
  266. package/dist/module/justifi-business-form.js +1 -2
  267. package/dist/module/justifi-checkout.js +2 -3
  268. package/dist/module/justifi-checkouts-list-filters.js +4 -4
  269. package/dist/module/justifi-checkouts-list.js +1 -2
  270. package/dist/module/justifi-dispute-management.js +1 -2
  271. package/dist/module/justifi-gross-payment-chart.js +1 -2
  272. package/dist/module/justifi-order-terminals.js +211 -41
  273. package/dist/module/justifi-payment-details.js +1 -2
  274. package/dist/module/justifi-payment-provisioning.js +1 -2
  275. package/dist/module/justifi-payments-list-filters.js +3 -3
  276. package/dist/module/justifi-payments-list.js +2 -3
  277. package/dist/module/justifi-payout-details.js +1 -2
  278. package/dist/module/justifi-payouts-list-filters.js +3 -3
  279. package/dist/module/justifi-payouts-list.js +2 -3
  280. package/dist/module/justifi-refund-form.js +1 -1
  281. package/dist/module/justifi-season-interruption-insurance.js +1 -2
  282. package/dist/module/justifi-terminal-orders-list.js +75 -12
  283. package/dist/module/justifi-terminals-list-filters.js +2 -2
  284. package/dist/module/justifi-terminals-list.js +4 -18
  285. package/dist/module/justifi-tokenize-payment-method.js +3 -4
  286. package/dist/module/package.js +1 -1
  287. package/dist/module/parts.js +3 -4
  288. package/dist/module/payment-details-core2.js +7 -7
  289. package/dist/module/payment-provisioning-core.js +2 -2
  290. package/dist/module/payments-list-core2.js +2 -3
  291. package/dist/module/payout-details-core2.js +1 -1
  292. package/dist/module/payouts-list-core2.js +2 -3
  293. package/dist/module/product-or-service.js +17 -16
  294. package/dist/module/refund-policy.js +9 -14
  295. package/dist/module/shipping-details.js +9 -12
  296. package/dist/module/terminal-orders-list-core2.js +67 -10
  297. package/dist/module/terminal-quantity-selector.d.ts +11 -0
  298. package/dist/module/terminal-quantity-selector.js +6 -0
  299. package/dist/module/terminal-quantity-selector2.js +66 -0
  300. package/dist/module/terminal.service.js +33 -0
  301. package/dist/module/terminals-list-core2.js +6 -5
  302. package/dist/types/actions/terminal/get-terminal-models.d.ts +8 -0
  303. package/dist/types/actions/terminal/get-terminal-orders.d.ts +11 -0
  304. package/dist/types/actions/terminal/order-terminals.d.ts +8 -0
  305. package/dist/types/api/Checkout.d.ts +4 -0
  306. package/dist/types/api/Terminal.d.ts +2 -0
  307. package/dist/types/api/TerminalModel.d.ts +31 -0
  308. package/dist/types/api/TerminalOrder.d.ts +53 -0
  309. package/dist/types/api/index.d.ts +2 -0
  310. package/dist/types/api/services/terminal.service.d.ts +4 -0
  311. package/dist/types/api/services/terminal_orders.service.d.ts +7 -0
  312. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +0 -1
  313. package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +3 -3
  314. package/dist/types/components/dispute-management/dispute-response/additional-statement.d.ts +4 -2
  315. package/dist/types/components/dispute-management/dispute-response/cancellation-policy.d.ts +4 -2
  316. package/dist/types/components/dispute-management/dispute-response/customer-details.d.ts +5 -2
  317. package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +5 -4
  318. package/dist/types/components/dispute-management/dispute-response/duplicate-charge.d.ts +4 -2
  319. package/dist/types/components/dispute-management/dispute-response/electronic-evidence.d.ts +4 -2
  320. package/dist/types/components/dispute-management/dispute-response/file-input-handler.d.ts +2 -0
  321. package/dist/types/components/dispute-management/dispute-response/product-or-service.d.ts +4 -2
  322. package/dist/types/components/dispute-management/dispute-response/refund-policy.d.ts +5 -2
  323. package/dist/types/components/dispute-management/dispute-response/shipping-details.d.ts +4 -1
  324. package/dist/types/components/order-terminals/order-terminals.d.ts +30 -3
  325. package/dist/types/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector-loading.d.ts +1 -0
  326. package/dist/types/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.d.ts +17 -0
  327. package/dist/types/components/terminal-orders-list/terminal-order-status.d.ts +2 -0
  328. package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +7 -5
  329. package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +8 -2
  330. package/dist/types/components/terminal-orders-list/terminal-orders-table.d.ts +16 -5
  331. package/dist/types/components/terminals-list/terminals-table.d.ts +3 -1
  332. package/dist/types/components.d.ts +87 -8
  333. package/dist/types/global.d.ts +1 -0
  334. package/dist/types/styles/parts.d.ts +2 -0
  335. package/dist/webcomponents/p-0137575f.entry.js +1 -0
  336. package/dist/webcomponents/{p-f7d9ea0b.entry.js → p-030a8806.entry.js} +1 -1
  337. package/dist/webcomponents/p-039a09b8.entry.js +1 -0
  338. package/dist/webcomponents/{p-29688e30.js → p-046ecd01.js} +1 -1
  339. package/dist/webcomponents/{p-1278dedf.js → p-087758d3.js} +1 -1
  340. package/dist/webcomponents/{p-060896c4.entry.js → p-0a60d356.entry.js} +1 -1
  341. package/dist/webcomponents/p-0ba77d53.entry.js +1 -0
  342. package/dist/webcomponents/p-0c22225c.entry.js +1 -0
  343. package/dist/webcomponents/{p-5a96a2a2.entry.js → p-0cefd846.entry.js} +1 -1
  344. package/dist/webcomponents/{p-ae271c06.entry.js → p-10a14943.entry.js} +1 -1
  345. package/dist/webcomponents/p-10e32428.entry.js +1 -0
  346. package/dist/webcomponents/p-1705af62.js +1 -0
  347. package/dist/webcomponents/{p-553dba95.entry.js → p-19b8c3c8.entry.js} +1 -1
  348. package/dist/webcomponents/p-1a48d917.entry.js +1 -0
  349. package/dist/webcomponents/{p-300a99ee.js → p-1e300d41.js} +1 -1
  350. package/dist/webcomponents/p-2027145a.entry.js +1 -0
  351. package/dist/webcomponents/p-222fa126.entry.js +1 -0
  352. package/dist/webcomponents/{p-a31ba276.entry.js → p-33a17e80.entry.js} +1 -1
  353. package/dist/webcomponents/p-34e18d17.entry.js +1 -0
  354. package/dist/webcomponents/{p-e3e0d791.entry.js → p-36edba41.entry.js} +1 -1
  355. package/dist/webcomponents/p-3732aa87.js +1 -0
  356. package/dist/webcomponents/p-382ab4e8.js +1 -0
  357. package/dist/webcomponents/p-3947a309.entry.js +1 -0
  358. package/dist/webcomponents/p-3cbdca1b.js +1 -0
  359. package/dist/webcomponents/{p-939d0a35.entry.js → p-4d5c553d.entry.js} +1 -1
  360. package/dist/webcomponents/{p-8b16a20f.js → p-547b51e9.js} +1 -1
  361. package/dist/webcomponents/p-5ee67fad.js +1 -0
  362. package/dist/webcomponents/p-5efe9572.entry.js +1 -0
  363. package/dist/webcomponents/p-638b91ff.entry.js +1 -0
  364. package/dist/webcomponents/{p-e007002a.entry.js → p-685c7028.entry.js} +1 -1
  365. package/dist/webcomponents/{p-14f40baa.js → p-694078d2.js} +1 -1
  366. package/dist/webcomponents/p-69ac2640.entry.js +1 -0
  367. package/dist/webcomponents/p-6a2d6298.entry.js +1 -0
  368. package/dist/webcomponents/{p-b57cfe54.entry.js → p-6ef3de11.entry.js} +1 -1
  369. package/dist/webcomponents/p-71897cbc.js +1 -0
  370. package/dist/webcomponents/{p-4fbdf440.entry.js → p-759f25a1.entry.js} +1 -1
  371. package/dist/webcomponents/p-7dc9fb75.js +1 -0
  372. package/dist/webcomponents/p-7e93eac9.entry.js +1 -0
  373. package/dist/webcomponents/p-7ed52fbc.entry.js +1 -0
  374. package/dist/webcomponents/{p-8a7266b4.js → p-8066b866.js} +1 -1
  375. package/dist/webcomponents/p-830f0971.entry.js +1 -0
  376. package/dist/webcomponents/{p-020e7d5d.entry.js → p-833ef79e.entry.js} +1 -1
  377. package/dist/webcomponents/p-8971f9da.entry.js +1 -0
  378. package/dist/webcomponents/p-8c461ebc.entry.js +1 -0
  379. package/dist/webcomponents/p-8fad4359.entry.js +1 -0
  380. package/dist/webcomponents/{p-dfebd7a4.js → p-9dc9aaba.js} +1 -1
  381. package/dist/webcomponents/p-9f1a3199.js +1 -0
  382. package/dist/webcomponents/{p-19063270.entry.js → p-a07afdcc.entry.js} +1 -1
  383. package/dist/webcomponents/p-a173ccd5.entry.js +1 -0
  384. package/dist/webcomponents/p-a3d75257.js +1 -0
  385. package/dist/webcomponents/p-a957612b.entry.js +1 -0
  386. package/dist/webcomponents/p-aa21cdb1.entry.js +1 -0
  387. package/dist/webcomponents/p-aa923138.entry.js +1 -0
  388. package/dist/webcomponents/p-ad473d5c.entry.js +1 -0
  389. package/dist/webcomponents/p-b11468b5.entry.js +1 -0
  390. package/dist/webcomponents/{p-3b680e50.js → p-b5addd78.js} +1 -1
  391. package/dist/webcomponents/p-b62403c2.entry.js +1 -0
  392. package/dist/webcomponents/{p-bfe339d5.js → p-b69beb1c.js} +1 -1
  393. package/dist/webcomponents/{p-78a204f9.entry.js → p-b76f755a.entry.js} +1 -1
  394. package/dist/webcomponents/p-b8ee505d.entry.js +1 -0
  395. package/dist/webcomponents/p-b92aac9b.entry.js +1 -0
  396. package/dist/webcomponents/{p-fea43254.entry.js → p-b92f125b.entry.js} +1 -1
  397. package/dist/webcomponents/{p-a90d8f4f.entry.js → p-bd2340f7.entry.js} +1 -1
  398. package/dist/webcomponents/{p-b2d57b2c.entry.js → p-bd2d9d29.entry.js} +1 -1
  399. package/dist/webcomponents/p-bdf0ab42.js +1 -0
  400. package/dist/webcomponents/p-c406c0fa.js +1 -0
  401. package/dist/webcomponents/{p-09496255.js → p-c54f54ed.js} +1 -1
  402. package/dist/webcomponents/p-c5cc443e.entry.js +1 -0
  403. package/dist/webcomponents/p-cd68707b.entry.js +1 -0
  404. package/dist/webcomponents/p-d5a481e4.entry.js +1 -0
  405. package/dist/webcomponents/{p-389e1eb7.js → p-daf0303f.js} +1 -1
  406. package/dist/webcomponents/p-e366ef1e.js +1 -0
  407. package/dist/webcomponents/p-e400e31f.entry.js +1 -0
  408. package/dist/webcomponents/{p-235abbd1.entry.js → p-e4514af8.entry.js} +1 -1
  409. package/dist/webcomponents/{p-06f5b709.js → p-e60867c6.js} +1 -1
  410. package/dist/webcomponents/{p-89ecfbf4.entry.js → p-e754d8e7.entry.js} +1 -1
  411. package/dist/webcomponents/p-eb05bd1e.entry.js +1 -0
  412. package/dist/webcomponents/p-ede13cc8.js +1 -0
  413. package/dist/webcomponents/{p-df2559c7.js → p-ee9d433f.js} +1 -1
  414. package/dist/webcomponents/{p-ebbe93ac.entry.js → p-f04dbd80.entry.js} +1 -1
  415. package/dist/webcomponents/p-f2111e68.js +1 -0
  416. package/dist/webcomponents/p-f3061f2a.entry.js +1 -0
  417. package/dist/webcomponents/{p-906a6027.js → p-fa987dcf.js} +1 -1
  418. package/dist/webcomponents/p-fae67ab3.js +1 -0
  419. package/dist/webcomponents/p-fd4607f9.entry.js +1 -0
  420. package/dist/webcomponents/p-ffd0c24b.entry.js +1 -0
  421. package/dist/webcomponents/webcomponents.esm.js +1 -1
  422. package/package.json +1 -1
  423. package/dist/cjs/check-pkg-version-f5a3d421.js +0 -24
  424. package/dist/cjs/event-types-b6d34593.js +0 -8
  425. package/dist/cjs/terminal-orders-table-61081532.js +0 -18
  426. package/dist/esm/check-pkg-version-1d6e48c8.js +0 -22
  427. package/dist/esm/event-types-0a83d0b4.js +0 -8
  428. package/dist/esm/terminal-orders-table-765c44d5.js +0 -14
  429. package/dist/module/Analytics.js +0 -82
  430. package/dist/module/table.js +0 -55
  431. package/dist/webcomponents/p-08a17c5c.entry.js +0 -1
  432. package/dist/webcomponents/p-0b38cfbf.js +0 -1
  433. package/dist/webcomponents/p-0f4d851d.entry.js +0 -1
  434. package/dist/webcomponents/p-1aa22806.js +0 -1
  435. package/dist/webcomponents/p-1f4e26f3.entry.js +0 -1
  436. package/dist/webcomponents/p-1f99a902.js +0 -1
  437. package/dist/webcomponents/p-27c72b92.entry.js +0 -1
  438. package/dist/webcomponents/p-29fbbc93.js +0 -1
  439. package/dist/webcomponents/p-2e0ae487.js +0 -1
  440. package/dist/webcomponents/p-2f9af679.js +0 -1
  441. package/dist/webcomponents/p-37b7b200.entry.js +0 -1
  442. package/dist/webcomponents/p-39a63e0c.entry.js +0 -1
  443. package/dist/webcomponents/p-3ab7a49e.entry.js +0 -1
  444. package/dist/webcomponents/p-3d486f37.entry.js +0 -1
  445. package/dist/webcomponents/p-42a48c59.js +0 -1
  446. package/dist/webcomponents/p-49df4962.entry.js +0 -1
  447. package/dist/webcomponents/p-4a71c90b.entry.js +0 -1
  448. package/dist/webcomponents/p-4b6256e0.entry.js +0 -1
  449. package/dist/webcomponents/p-53b660a3.entry.js +0 -1
  450. package/dist/webcomponents/p-56697a12.entry.js +0 -1
  451. package/dist/webcomponents/p-595479da.entry.js +0 -1
  452. package/dist/webcomponents/p-66ae2a0e.entry.js +0 -1
  453. package/dist/webcomponents/p-670296bf.entry.js +0 -1
  454. package/dist/webcomponents/p-75b7dfe7.entry.js +0 -1
  455. package/dist/webcomponents/p-794cce10.entry.js +0 -1
  456. package/dist/webcomponents/p-7c541199.entry.js +0 -1
  457. package/dist/webcomponents/p-7d2538d9.entry.js +0 -1
  458. package/dist/webcomponents/p-7ee5a90e.entry.js +0 -1
  459. package/dist/webcomponents/p-8548edd6.entry.js +0 -1
  460. package/dist/webcomponents/p-9055aa6e.entry.js +0 -1
  461. package/dist/webcomponents/p-9a4d0e1d.entry.js +0 -1
  462. package/dist/webcomponents/p-9cbbe9cb.entry.js +0 -1
  463. package/dist/webcomponents/p-9edd6ad8.js +0 -1
  464. package/dist/webcomponents/p-a0082e77.entry.js +0 -1
  465. package/dist/webcomponents/p-a6b66c88.entry.js +0 -1
  466. package/dist/webcomponents/p-acca56ec.entry.js +0 -1
  467. package/dist/webcomponents/p-af945fc0.entry.js +0 -1
  468. package/dist/webcomponents/p-c2196cb8.entry.js +0 -1
  469. package/dist/webcomponents/p-c4ca0038.js +0 -1
  470. package/dist/webcomponents/p-cba89310.entry.js +0 -1
  471. package/dist/webcomponents/p-cbe05f11.js +0 -1
  472. package/dist/webcomponents/p-d279545a.entry.js +0 -1
  473. package/dist/webcomponents/p-d398ce81.js +0 -1
  474. package/dist/webcomponents/p-d432f0fd.entry.js +0 -1
  475. package/dist/webcomponents/p-d5c41ec6.js +0 -1
  476. package/dist/webcomponents/p-e8cd9691.js +0 -1
  477. package/dist/webcomponents/p-e9e80a62.js +0 -1
  478. package/dist/webcomponents/p-ec019b89.js +0 -1
  479. package/dist/webcomponents/p-fa843aad.entry.js +0 -1
  480. package/dist/webcomponents/p-fc3d2a9e.entry.js +0 -1
  481. package/dist/webcomponents/p-ff1f2d65.js +0 -1
@@ -1,12 +1,11 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
3
- import { J as JustifiAnalytics } from './Analytics.js';
4
- import { c as checkPkgVersion } from './check-pkg-version.js';
5
- import { A as Api } from './Api.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version.js';
4
+ import { T as TerminalService } from './terminal.service.js';
6
5
  import './Checkout.js';
7
6
  import './Pagination.js';
8
7
  import './Payment.js';
9
- import { T as Terminal } from './SubAccount.js';
8
+ import { c as Terminal } from './SubAccount.js';
10
9
  import './Document.js';
11
10
  import { g as getErrorMessage, a as getErrorCode } from './utils4.js';
12
11
  import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts.js';
@@ -15,19 +14,6 @@ import './details.js';
15
14
  import { d as defineCustomElement$2, a as defaultColumnsKeys } from './terminals-list-core2.js';
16
15
  import { d as defineCustomElement$3 } from './pagination-menu2.js';
17
16
 
18
- class TerminalService {
19
- async fetchTerminals(accountId, authToken, params, apiOrigin = "https://wc-proxy.justifi.ai") {
20
- const headers = { Account: accountId };
21
- const api = Api({ authToken, apiOrigin });
22
- const endpoint = 'terminals';
23
- return api.get(endpoint, params, null, headers);
24
- }
25
- async fetchTerminal(terminalId, authToken, apiOrigin = "https://wc-proxy.justifi.ai") {
26
- const endpoint = `terminals/${terminalId}`;
27
- return Api({ authToken, apiOrigin: apiOrigin }).get(endpoint);
28
- }
29
- }
30
-
31
17
  const makeGetTerminals = ({ id, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError }) => {
32
18
  var _a, _b;
33
19
  try {
@@ -119,7 +105,7 @@ const TerminalsList = /*@__PURE__*/ proxyCustomElement(class TerminalsList exten
119
105
  }
120
106
  }
121
107
  render() {
122
- return (h(StyledHost, { key: '1534781e6264057b7c780e6b44f4a7a66a561296' }, h("terminals-list-core", { key: '8c0fb664d5ebe4fedcf6e45046e931adffb9d381', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
108
+ return (h(StyledHost, { key: '1765197e56fd03442cc4d30a24d090b4dfd86405' }, h("terminals-list-core", { key: '4e880db7702649486b2cb8e743b0f7d7e78a72c0', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
123
109
  }
124
110
  static get watchers() { return {
125
111
  "accountId": ["propChanged"],
@@ -2,8 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
2
2
  import { B as Button } from './button.js';
3
3
  import { S as StyledHost } from './styled-host.js';
4
4
  import './details.js';
5
- import { c as checkPkgVersion } from './check-pkg-version.js';
6
- import { J as JustifiAnalytics } from './Analytics.js';
5
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version.js';
7
6
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
8
7
  import './Checkout.js';
9
8
  import './Pagination.js';
@@ -45,7 +44,7 @@ const TokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class TokenizePay
45
44
  this.disableBankAccount = undefined;
46
45
  this.hideSubmitButton = undefined;
47
46
  this.hideCardBillingForm = undefined;
48
- this.iframeOrigin = "https://components.justifi.ai/v2";
47
+ this.iframeOrigin = "https://components.justifi.ai";
49
48
  this.isLoading = false;
50
49
  }
51
50
  componentWillLoad() {
@@ -84,7 +83,7 @@ const TokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class TokenizePay
84
83
  this.paymentMethodOptionsRef.fillBillingForm(fields);
85
84
  }
86
85
  render() {
87
- return (h(StyledHost, { key: 'ac989aa84f6262ff1b72a88fc7c4ebb0e62175dc' }, h("form", { key: '482ebf3ca3ac67738fdd0243de8d29ad66754313' }, h("fieldset", { key: 'e563783b34d570bafd1788949a486454ce70ab4a' }, h("div", { key: 'a42f5625f5d0860153f4260aa9c5f76f4afcad06', class: "row gy-3" }, h("div", { key: 'f64bb331c9922be711bfdd9a50d76530773867c0', class: "col-12" }, h("justifi-payment-method-options", { key: 'dc23821a9130ee6435c92e20574a0bf056e1c29c', ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": false, paymentMethodGroupId: this.paymentMethodGroupId, "show-saved-payment-methods": false, hideCardBillingForm: this.hideCardBillingForm, authToken: this.authToken, "account-id": this.accountId, iframeOrigin: this.iframeOrigin })), h("div", { key: '29ec96487c4a5d54c4883c4cfe4a6ee4a309042f', class: "col-12" }, h(Button, { key: 'fe116e392e79debf6a858c993ba11a21d417d998', variant: "primary", type: "submit", onClick: event => this.tokenizePaymentMethod(event), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton }, this.submitButtonText || 'Submit')))))));
86
+ return (h(StyledHost, { key: '34b41a932b7388b76084e74f834fae1dc1bde307' }, h("form", { key: 'b2dfd8c275f5ab8998c9560279e285e87f993771' }, h("fieldset", { key: 'bf6690ee43aae5418a3d979080e20e548afbd83a' }, h("div", { key: '0e66b6f3d55178f74ebd2e854597c68df598f38d', class: "row gy-3" }, h("div", { key: '970b07bf9242730d83dfb9498184e3e587609b68', class: "col-12" }, h("justifi-payment-method-options", { key: '0e11e6d59d9297da681956aa987d55df6e809a5b', ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": false, paymentMethodGroupId: this.paymentMethodGroupId, "show-saved-payment-methods": false, hideCardBillingForm: this.hideCardBillingForm, authToken: this.authToken, "account-id": this.accountId, iframeOrigin: this.iframeOrigin })), h("div", { key: 'a1380b7f8e78db5219047b48c0dede19734f7b50', class: "col-12" }, h(Button, { key: 'febf460cb8114c52d1c63a1c259e75e80a5ed5f2', variant: "primary", type: "submit", onClick: event => this.tokenizePaymentMethod(event), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton }, this.submitButtonText || 'Submit')))))));
88
87
  }
89
88
  }, [1, "justifi-tokenize-payment-method", {
90
89
  "authToken": [1, "auth-token"],
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "5.3.4";
2
+ const version = "5.3.6";
3
3
  const description = "JustiFi Web Components";
4
4
  const collection = "dist/collection/collection-manifest.json";
5
5
  const main = "dist/index.cjs.js";
@@ -70,11 +70,10 @@ const badgeDark = `${badge} badge-dark`;
70
70
  const dropdownMenu = `dropdown-menu ${text}`;
71
71
  // Radio List Item
72
72
  const radioListItem = `radio-list-item ${text}`;
73
- // Bootstrap list-group
74
- const listGroup = `list-group ${text} ${backgroundColor}`;
75
- const listGroupItem = `list-group-item ${text} ${backgroundColor}`;
76
73
  // Skeleton
77
74
  const skeleton = `skeleton`;
75
+ // Image
76
+ const image = `image`;
78
77
  // Component specific
79
78
  // This allows specific sections of a component to be hidden, for example
80
79
  // ::part(billing-form) { display: none; }
@@ -106,4 +105,4 @@ const terminalsListFilterParam = `terminals-list-filter-param`;
106
105
  const terminalIdTerminalsListFilterParam = `${terminalsListFilterParam} terminal-id-terminals-list-filter-param`;
107
106
  const terminalStatusTerminalsListFilterParam = `${terminalsListFilterParam} terminal-status-terminals-list-filter-param`;
108
107
 
109
- export { checkoutsListFilterMenu as $, badgeSecondary as A, badgeSuccess as B, badgeDanger as C, badgeWarning as D, badgeInfo as E, badgeLight as F, badgeDark as G, alertDanger as H, inputCheckboxInvalid as I, inputCheckboxCheckedFocused as J, inputCheckboxFocused as K, inputCheckboxChecked as L, inputCheckbox as M, inputGroup as N, inputRadioInvalid as O, inputRadioCheckedFocused as P, inputRadioChecked as Q, inputRadioFocused as R, inputRadio as S, heading5 as T, heading3 as U, billingForm as V, buttonLoading as W, buttonPrimary as X, buttonSecondary as Y, checkoutSummary as Z, radioListItem as _, heading1 as a, statusCheckoutsListFilterParam as a0, paymentModeCheckoutsListFilterParam as a1, dropdownMenu as a2, heading4 as a3, listGroup as a4, listGroupItem as a5, paymentsListFilterMenu as a6, paymentIdPaymentsListFilterParam as a7, terminalIdPaymentsListFilterParam as a8, paymentStatusPaymentsListFilterParam as a9, createdAfterPaymentsListFilterParam as aa, createdBeforePaymentsListFilterParam as ab, payoutsListFilterMenu as ac, createdAfterPayoutsListFilterParam as ad, createdBeforePayoutsListFilterParam as ae, terminalsListFilterMenu as af, terminalIdTerminalsListFilterParam as ag, terminalStatusTerminalsListFilterParam as ah, inputInvalid as b, inputDisabled as c, inputFocused as d, tooltipIcon as e, tooltip as f, tooltipInner as g, heading2 as h, input as i, textDanger as j, inputInvalidAndFocused as k, label as l, card as m, table as n, tableHeadCell as o, tableCell as p, getAlternateTableCellPart as q, tableEmpty as r, skeleton as s, text as t, tableError as u, buttonLink as v, buttonDisabled as w, loadingSpinner as x, badge as y, badgePrimary as z };
108
+ export { checkoutsListFilterMenu as $, badgeSecondary as A, badgeSuccess as B, badgeDanger as C, badgeWarning as D, badgeInfo as E, badgeLight as F, badgeDark as G, alertDanger as H, inputCheckboxInvalid as I, inputCheckboxCheckedFocused as J, inputCheckboxFocused as K, inputCheckboxChecked as L, inputCheckbox as M, inputGroup as N, inputRadioInvalid as O, inputRadioCheckedFocused as P, inputRadioChecked as Q, inputRadioFocused as R, inputRadio as S, heading5 as T, heading3 as U, billingForm as V, buttonLoading as W, buttonPrimary as X, buttonSecondary as Y, checkoutSummary as Z, radioListItem as _, heading1 as a, statusCheckoutsListFilterParam as a0, paymentModeCheckoutsListFilterParam as a1, dropdownMenu as a2, heading4 as a3, image as a4, paymentsListFilterMenu as a5, paymentIdPaymentsListFilterParam as a6, terminalIdPaymentsListFilterParam as a7, paymentStatusPaymentsListFilterParam as a8, createdAfterPaymentsListFilterParam as a9, createdBeforePaymentsListFilterParam as aa, payoutsListFilterMenu as ab, createdAfterPayoutsListFilterParam as ac, createdBeforePayoutsListFilterParam as ad, terminalsListFilterMenu as ae, terminalIdTerminalsListFilterParam as af, terminalStatusTerminalsListFilterParam as ag, inputInvalid as b, inputDisabled as c, inputFocused as d, tooltipIcon as e, tooltip as f, tooltipInner as g, heading2 as h, input as i, textDanger as j, inputInvalidAndFocused as k, label as l, card as m, table as n, tableHeadCell as o, tableCell as p, getAlternateTableCellPart as q, tableEmpty as r, skeleton as s, text as t, tableError as u, buttonLink as v, buttonDisabled as w, loadingSpinner as x, badge as y, badgePrimary as z };
@@ -58,14 +58,14 @@ const PaymentDetailsCore = /*@__PURE__*/ proxyCustomElement(class PaymentDetails
58
58
  });
59
59
  }
60
60
  render() {
61
- return (h(StyledHost, { key: 'e03ea25b2d3a3388a613cc6fedd8912bb5092d63' }, this.loading && h(PaymentDetailsLoading, { key: '3343cc38deec7b87b2466b3bc43c0170a1962625' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
62
- this.payment && (h("justifi-details", { key: '18e494e5cb1aaed74ec35dfff5c659061d30cb82', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '466e6c0105eb09485907674aec32752001949e53', slot: "head-info", badge: MapPaymentStatusToBadge(this.payment.status), title: this.payment.formattedPaymentAmount(this.payment.amount) }, h(EntityHeadInfoItem, { key: '4da3f6800f98c2af8dfa6bae1ef464752aba14be', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '99a9e776d1dfc3ecf5de3d484212930824ebf4e2', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: '55795658b170234f9f94ed97dbf45c9727f865fc', title: "ID", value: this.payment.id })), h("div", { key: '2b17cd70a0b8abe36596a61f8bf0c6ae039db579', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'a663bf74079da6a51ec611addf2adb25b8e4c950', sectionTitle: "Details" }), h("div", { key: '48b0e215500c30da77c3cc1f8f46199bda52dc24', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'd8311d8cf23d4e66effc7e2f86aa0bb56456f7ec', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), h(DetailItem, { key: '7084b4469a769fed1499f5c6cfd50e6caa88a1a5', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: '40546b209614c410ff5725a01a60bbfde70cd4f6', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), h(DetailItem, { key: 'd933346f3518d423b278a1ac41e603399c2c8b8b', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), h(DetailItem, { key: 'f89fb7d083501dbdf481f63d0a587a6323a3fd6e', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: 'a2494f54c8a4f1792f373adf6a6e1dbab3e5798d', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: '80a1118c3043a91d37bbb3da26a9fbdcf3d3b7ee', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: '7787c8d9713ace6113c4685d2ea2279e570849eb', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: '7e12595f71d7dd2f85b8d332aa349d90df595727', title: "Description", value: this.payment.description })), this.payment.payment_method.card && [
63
- h(DetailSectionTitle, { key: '9150caced60639279da39a84db67eef97199d78d', sectionTitle: "Payment Method" }),
64
- h("div", { key: '5add69653bc6838ed1f1792217c04cf289f1a2f0', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '8dd22e082c3e4aa0b2836ee8e533d8dc63452498', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: 'c8130661f5684b91db68b4c9d8a45518e610d17b', title: "Payment Type", value: "Card" }), h(DetailItem, { key: 'f47a9d1689f67133bb9183e88830dff7b4ef64e8', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: '9101ce4f03dbb78d9c4f825c3747871c275c7a86', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: '93f34140d96fae056674b1767219ae94164160c7', title: "Cardholder", value: this.payment.payment_method.payersName }))
61
+ return (h(StyledHost, { key: '00ba42c81617d9593246956e97b6b962817cc167' }, this.loading && h(PaymentDetailsLoading, { key: '1c0fee27dec985cad2cc7d41f61d137246ffcc3e' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
62
+ this.payment && (h("justifi-details", { key: 'e264b42451a8966a4e6313486bc9d1ccaea0141b', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'af96a0f502cce1be451160e8ac2f92074b0ee168', slot: "head-info", badge: MapPaymentStatusToBadge(this.payment.status), title: this.payment.formattedPaymentAmount(this.payment.amount) }, h(EntityHeadInfoItem, { key: '94f876bd62dd9ccaa6f63f25326390b03c9938d5', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '96c629e2d1a99eca277ec7337cb3e00e88c1b31e', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: '0d18abfae7e9fd0a692ac54640194033a5c36f41', title: "ID", value: this.payment.id })), h("div", { key: '7f9e14d7e0312ba1136cf5734754bf0af6c19774', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'a11b47796dada4f9678487edf19dcd7928b08e94', sectionTitle: "Details" }), h("div", { key: 'fa8a895e037adbbcf5856aae4f40306b789a90c8', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '84a8fa2b0dc39aa331501e00a8eb9bf93e8bb8c2', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), h(DetailItem, { key: '632fa4e703aabc7b606b939e95d1633a43fedfaa', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: 'bc37a80a15fea95932d04676f2c5a8a57276958b', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), h(DetailItem, { key: '588a76203897cd31b9d0c1c8de1b7b9b0b107421', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), h(DetailItem, { key: 'c0fea24390417c591327c76568829cbf9f9147a9', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: 'e332a896b55bb58f3fd26ee892556acb08ced52d', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: '844fdb40ed55ca0e2f848e7325dcb64f134fa5d6', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: 'dce95b409eb465e8d6373ad80b7b14a0eecc5aca', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: 'bed2051bd720b1a790ff59b50bee7f01e3fb222a', title: "Description", value: this.payment.description })), this.payment.payment_method.card && [
63
+ h(DetailSectionTitle, { key: '3283ea5236fab75a32fe569ad29d9b70c62b49a0', sectionTitle: "Payment Method" }),
64
+ h("div", { key: 'b9a0d9cfca791e3afb4a2e1e73b036319191d485', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '15da44c97292af05a14b3f7840b07bdcf34ae953', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: 'd8a4a431c3e3ab0d14be8992521ee89b5e126a04', title: "Payment Type", value: "Card" }), h(DetailItem, { key: '1a8ed38a316ea943761d2dd7fda58490180ef3bc', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: 'db695d1b89896a7a73c83fd8a7d5837ad1e69909', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: 'd94879fb30ac0a05a16ce9ddb199fb5cb003a8c1', title: "Cardholder", value: this.payment.payment_method.payersName }))
65
65
  ], this.payment.payment_method.bank_account && [
66
- h(DetailSectionTitle, { key: '67cf738bc3e636aeaf97f0d66046d515ea096a50', sectionTitle: "Payment Method" }),
67
- h("div", { key: '89d17e5925ad5057972f9bf11f558ff008409004', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '31ee0758b992bbe2672ac02a699cb6ad8c3f6631', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: '43a23b3ea5c53a56b5888a798f0195f84933588b', title: "Last 4 Numbers", value: this.payment.last_four_digits }), h(DetailItem, { key: '79572125fe01f0bcd1d029dc36a723fac6bf7ceb', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: '76633c06b486c6b2315ff6062d2beab0f4531a6d', title: "Account Owner", value: this.payment.payment_method.payersName }))
68
- ], h(DetailSectionTitle, { key: 'f537f98a91e780c460052a7530ffb5fadc077562', sectionTitle: 'Metadata' }), h("div", { key: '324a3eb360ff1091154907f996cfd3f406f8c4d6', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'b52628f75fa99b719d7ad150cb678d686e77f3bf', metadata: this.payment.metadata })))))));
66
+ h(DetailSectionTitle, { key: '84dae904db3c22ff5ed03abaeb57d3b0736d1fbb', sectionTitle: "Payment Method" }),
67
+ h("div", { key: '400801019a53feec0478273866fffa5683b408aa', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'ca7bb52e4275659b18daacfa6367de2f32617e70', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: '4885d2b5f05b6a713d61074271c7a95b23604dca', title: "Last 4 Numbers", value: this.payment.last_four_digits }), h(DetailItem, { key: '604ec4efe78a12a1c36d8416c9fdec70351a6dad', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: '1ef77a81232e19d1063af9e863f5c9ada183715f', title: "Account Owner", value: this.payment.payment_method.payersName }))
68
+ ], h(DetailSectionTitle, { key: '1d0a45dd7b7f44b2bad75db9ddb7886b9fc36c9c', sectionTitle: 'Metadata' }), h("div", { key: '364dfb72b9585b672a510b11ecf794c8293ac88d', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '1b9254f2f5f81959ea4e190a3a84129d8c54eccd', metadata: this.payment.metadata })))))));
69
69
  }
70
70
  static get watchers() { return {
71
71
  "getPaymentDetails": ["updateOnPropChange"]
@@ -115,7 +115,7 @@ const PaymentProvisioningCore = /*@__PURE__*/ proxyCustomElement(class PaymentPr
115
115
  }
116
116
  componentWillLoad() {
117
117
  this.getBusiness && this.setBusinessProvisioned();
118
- this.refs = [this.coreInfoRef, this.legalAddressRef, this.additionalQuestionsRef, this.representativeRef, this.ownersRef, this.bankAccountRef, this.documentUploadRef, this.termsRef];
118
+ this.refs = [this.coreInfoRef, this.legalAddressRef, this.additionalQuestionsRef, this.representativeRef, this.ownersRef, this.bankAccountRef, this.termsRef];
119
119
  }
120
120
  get businessEndpoint() {
121
121
  return `entities/business/${this.businessId}`;
@@ -133,7 +133,7 @@ const PaymentProvisioningCore = /*@__PURE__*/ proxyCustomElement(class PaymentPr
133
133
  this.loading = event.detail;
134
134
  }
135
135
  render() {
136
- return (h(StyledHost, { key: '03dc39eadbac2f9a9a4326bab1355bfc300c392e' }, h("div", { key: '86e6e57fc104c87696c5825119a15c0a642c4bd2', class: 'row gap-3' }, h(Header1, { key: 'd4df3ead1037464624fb8cc465427c6b90bd0e36', text: this.formTitle }), h("justifi-payment-provisioning-form-steps", { key: '7f3d977b8dfbb29c03125c173e9d41558de08322', businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, handleFormLoading: this.handleFormLoading }), h("div", { key: '283568d94267850b0eb41fa6a52dbc6b0abf4642', class: 'd-flex justify-content-between align-items-center' }, h("div", { key: '6abf09f174e71767087b57180e976546c057499f', class: 'd-flex align-items-center', part: text }, this.stepCounter), h("justifi-payment-provisioning-form-buttons", { key: 'b38ed082d216556c6ae93bde3ec1324e69f8fcee', currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
136
+ 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 })))));
137
137
  }
138
138
  }, [0, "justifi-payment-provisioning-core", {
139
139
  "businessId": [1, "business-id"],
@@ -6,12 +6,11 @@ import './Payment.js';
6
6
  import './SubAccount.js';
7
7
  import './Document.js';
8
8
  import { o as tableHeadCell, q as getAlternateTableCellPart, n as table, p as tableCell } from './parts.js';
9
- import { T as Table, a as TableLoadingState, b as TableEmptyState, c as TableErrorState } from './table.js';
9
+ import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types2.js';
10
10
  import './details.js';
11
11
  import { M as MapPaymentStatusToBadge } from './payments-status.js';
12
12
  import { h as convertToLocal } from './utils2.js';
13
13
  import { o as onQueryParamsChange, g as getRequestParams } from './payments-list-params-state.js';
14
- import { T as TableClickActions } from './event-types2.js';
15
14
  import { d as defineCustomElement$1 } from './pagination-menu2.js';
16
15
 
17
16
  const defaultColumnsKeys = 'created_at,amount,status,payment_type,description,payers_name,last_four_digits';
@@ -122,7 +121,7 @@ const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore
122
121
  return !this.showEmptyState && !this.showErrorState && !this.loading;
123
122
  }
124
123
  render() {
125
- return (h("div", { key: '6f153085c08ed8db1508964f360f879ec5310635' }, h("div", { key: 'ca4e487642561cbf859aa30f74dc1aae00d3642c', class: "table-wrapper" }, h("table", { key: '0982554e856be77813a087baa93835cd43c3b6e1', class: "table table-hover", part: table }, h("thead", { key: 'e5eb661667dea89b13524676423758cf79d20765', class: "table-head sticky-top" }, h("tr", { key: '290dd81536e2b03f3020c72937a559aca0cef884', class: "table-light text-nowrap" }, this.paymentsTable.columnData.map((column) => column))), h("tbody", { key: 'bee3b0671e9d6f71a87d8b9f880a1630db2335ec', class: "table-body" }, h(TableLoadingState, { key: 'a9e4a373e3eadc449f4b040c1eec2e902cfe7fef', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: '240af4b959cd5a55518c0fd6a025648291e63c29', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), h(TableErrorState, { key: 'd6e704fd8f9d6f1717537e45e0c3743e78df38be', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '889f70d9eb4f7e92e29735ba6a5ddb43d622a511', class: "sticky-bottom" }, h("tr", { key: '7f352e5ea2338b1209046bab5328580d1ef80e12', class: "table-light align-middle" }, h("td", { key: '310bf61ff6730cdc4a2fe83e4297b9f055981abc', part: tableCell, colSpan: this.paymentsTable.columnData.length }, h("pagination-menu", { key: '66bcae57f189313b7596133c1a91e0cf43173fef', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
124
+ return (h("div", { key: '91c30f03d9b807ff84224ae25a0bcc84b5c17d20' }, h("div", { key: '447c694f9dcfee6363bafd369f53152ef1797c60', class: "table-wrapper" }, h("table", { key: 'fe3a2911b4d7aa109319d6dabc77eb338b910df9', class: "table table-hover", part: table }, h("thead", { key: 'a3ec810da46e43f786def86991f74e1c0f3c269b', class: "table-head sticky-top" }, h("tr", { key: '94b80f23224624d2f4be81cffa5365d9a725bf33', class: "table-light text-nowrap" }, this.paymentsTable.columnData.map((column) => column))), h("tbody", { key: 'd2c24a19bebcd4872dc36c4f8c6a47678a912d6d', class: "table-body" }, h(TableLoadingState, { key: 'dfcc51f6307996ea5383c4da3ddde61c973d946b', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: 'a81643fd528bff0ad8a57ea17aed718dbfcff6c5', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), h(TableErrorState, { key: '3c50d2d7ee8bd5e8c03db7c1d01db8fbb6de4b9b', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '601bb3cd6f8b54fa262d572f715a6208df515f47', class: "sticky-bottom" }, h("tr", { key: '3fbcc03fc841c196cc52b2572387d243d74b2f44', class: "table-light align-middle" }, h("td", { key: 'a1d593b29235432bc668564d784b594dea8ae13c', part: tableCell, colSpan: this.paymentsTable.columnData.length }, h("pagination-menu", { key: '1a427ec2e181baad95ffd14a6c77485f86786f6d', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
126
125
  }
127
126
  static get watchers() { return {
128
127
  "pagingParams": ["updateOnPropChange"],
@@ -74,7 +74,7 @@ const PayoutDetailsCore = /*@__PURE__*/ proxyCustomElement(class PayoutDetailsCo
74
74
  }
75
75
  render() {
76
76
  var _a;
77
- return (h(StyledHost, { key: '9b5b45052e96231367e1289cfd693346dbde365b' }, this.loading && h(PayoutDetailsLoading, { key: '6326e96a39db801b0e61a061cba006f867f1d421' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: '68642bc936f28de32ac82dee91b6a044e1212399', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'ddaaffc9cf37c004cf08025e6767e4e6ebba9b03', slot: "head-info", badge: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status), title: this.payout.formattedPaymentAmount(this.payout.amount) }, h(EntityHeadInfoItem, { key: '552b9fea31e5628a7c02aaa2fec84ea659acd8c0', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: 'ed356c4b54e4c315c51ebaf381cc8c66f4246ed7', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '1171f95890de260c20122b02bdf10ca43bc7bef1', title: "ID", value: this.payout.id }), h("div", { key: '9e823b2f42bf37e7fd0e4e8f5e87a2be5ab4db35', class: "m-4" }, h(Button, { key: 'dd4b750f7e9057b7f4845a4290d83c7cf89d7b43', variant: "secondary", class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: 'ef9384f15e0e10c2372d8af1c62fdf858d98d1a2', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '3abe895a6f65d2e26736cafd25a8656d5be1204d', sectionTitle: "Details" }), h("div", { key: '1be2f667564fa492a1fa3a44b8e67209a6617657', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'adb8c36a2b45d19ef95117d069f60758ea5ce6f0', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: 'a6245623ff251316c4fd923bfb9b91fe94aa11b1', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '10db1599529d8f98d28c3ed1f3975539bbb8f88a', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: '7e1438bcfb7b1f2aa820ace66874e56446ef400e', title: "Amount", value: this.payout.formattedPaymentAmount(this.payout.amount) }), h(DetailItem, { key: '4afa7801a1b1e92db8c8f57b53c0d7cdd38e0f61', title: "Fee", value: this.payout.formattedPaymentAmount(this.payout.fees_total) })), h(DetailSectionTitle, { key: '51cf02ed3894781f88770cdac746b31bb608dcad', sectionTitle: "Account" }), h("div", { key: '865ea1514254641acf1f96941c5c912947c5fe4f', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '2812906310435422b7bb08bbe8a36c1f95a2eac5', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: 'c25fef650a31522d3bc520d425f904bc002d3ecf', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'def9ed242797394aa21339866050bdf563ee7527', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '1542ffac52053eb8986d6fd2489d4ba6ab523c69', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: '45a289202141a852e5e57eee4d0b3db35b09cc40', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: 'a9059130e4c5686d103f67a91510531af62eca5f', sectionTitle: 'Metadata' }), h("div", { key: '130ef2e82f48c8449346b56713580b975fc368cf', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'dc6fc83790f16416aa7c5b763d0ae040654f23cd', metadata: this.payout.metadata })))))));
77
+ return (h(StyledHost, { key: '6aab170bbe708372d913c14bcb58b3b0d60dafd8' }, this.loading && h(PayoutDetailsLoading, { key: '0aee9ad36b3c4e74b1cb3f8251d0488cede1355c' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: 'c9ad74b0385260d4b1f2d2f7b3e66563b2d706a4', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '6b67e623a6cb67207007ba4319aa437996118dd9', slot: "head-info", badge: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status), title: this.payout.formattedPaymentAmount(this.payout.amount) }, h(EntityHeadInfoItem, { key: 'ff1c335e90ad0403a607491e4ff0b0adac52f255', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: '0c2e9555136ce806bc744dd2a83c7a1e10fa7ea7', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '0c813d23ddbe26f29f1ad03dc43b9c5fbf2d6ab6', title: "ID", value: this.payout.id }), h("div", { key: '762b4fc60643def05b7f8e84ce170d6295654631', class: "m-4" }, h(Button, { key: 'c5f304fb7f54838da6785a0bf19c423a98bdbf34', variant: "secondary", class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: 'b307f177086cd6b1eeb0f384cce772cd04ff33ad', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'bad67a9d2cde5bff23b5c959f9b7564fdc996300', sectionTitle: "Details" }), h("div", { key: '6986bef4813aadb505acaf5cdd07b853c271e442', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'dad10fde82b1009a9821f1e1cc2c2e65baa5f6b7', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: 'bf21ac446b54bdfcec020d6086546a0b20f42d01', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '30f7609216b42f3918929a6a02b30a6a23689921', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: 'e7d93fa8d865162098e105d4041c12af757db68b', title: "Amount", value: this.payout.formattedPaymentAmount(this.payout.amount) }), h(DetailItem, { key: '99b76f8abc8f0077df988cf38cfb74e77a7e881f', title: "Fee", value: this.payout.formattedPaymentAmount(this.payout.fees_total) })), h(DetailSectionTitle, { key: 'cfef47442eeb83514ca10fab25d12f1439414fc0', sectionTitle: "Account" }), h("div", { key: '901423f1ca47bf79ab6daa63368fea0032e46d58', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'f3e215b7aad43a3a3914b885189700e87758cca6', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '795054cd2f8bda2a735e9ac64652da92dac34f61', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '9c190036635aed95d74bce36ec257ada41b57cba', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'c1002cff85b80024804a858ef519feb4a86d46ff', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: '0183bef106233f302cd8762c7483482bea849ac2', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: 'e87d57050d5dee72a8dccfe2ca2deee385e6dc61', sectionTitle: 'Metadata' }), h("div", { key: '9aefd212e7aa680b34f5af6a373a47997238496e', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'a9c9337a788cb2611787278768968e638a8c000d', metadata: this.payout.metadata })))))));
78
78
  }
79
79
  static get watchers() { return {
80
80
  "getPayout": ["getPayoutWatcher"]
@@ -6,12 +6,11 @@ import './Payment.js';
6
6
  import './SubAccount.js';
7
7
  import './Document.js';
8
8
  import { q as getAlternateTableCellPart, o as tableHeadCell, n as table, p as tableCell } from './parts.js';
9
- import { T as Table, a as TableLoadingState, b as TableEmptyState, c as TableErrorState } from './table.js';
9
+ import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types2.js';
10
10
  import './details.js';
11
11
  import { h as convertToLocal } from './utils2.js';
12
12
  import { M as MapPayoutStatusToBadge } from './payouts-status.js';
13
13
  import { o as onQueryParamsChange, g as getRequestParams } from './payouts-list-params-state.js';
14
- import { T as TableClickActions } from './event-types2.js';
15
14
  import { d as defineCustomElement$1 } from './pagination-menu2.js';
16
15
 
17
16
  const defaultColumnsKeys = 'created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv';
@@ -179,7 +178,7 @@ const PayoutsListCore = /*@__PURE__*/ proxyCustomElement(class PayoutsListCore e
179
178
  return !this.showEmptyState && !this.showErrorState && !this.loading;
180
179
  }
181
180
  render() {
182
- return (h("div", { key: '2cc35b1a64da3e15a221eeb74b9de3ce011301e6' }, h("div", { key: '73e18029f462aeb03414574c76700b8c20748c0d', class: "table-wrapper", part: "table-wrapper" }, h("table", { key: '6af17bc77a5ac15503a4424ef8e9095da86ff667', class: "table table-hover", part: table }, h("thead", { key: '6340d507a8a8bcef847c4054072b1f26d49c1cb8', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: 'fd84224c2b62ebb26130057d57145baecc3f1f2b', class: "table-light text-nowrap", part: "table-head-row" }, this.payoutsTable.columnData.map((column) => column))), h("tbody", { key: '4993ab0d133c3f03c42b17da22c16682f6b5ddc2', class: "table-body" }, h(TableLoadingState, { key: '580e94f393f1281a4f9f9890078073b31450fb25', columnSpan: this.payoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '88fa77ac3de65dcad0371d8746588d588964a2fe', isEmpty: this.showEmptyState, columnSpan: this.payoutsTable.columnKeys.length }), h(TableErrorState, { key: 'ec374189d2faab1ea13388987ff977ae758cdd35', columnSpan: this.payoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.payoutsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '3543415cd5411bf599e0cfa06257b8ef19f1b652', class: "sticky-bottom" }, h("tr", { key: '8b7230df5006dfb3d3022422d391cd5cae48c5c7', class: "table-light align-middle" }, h("td", { key: '6a4ed06b9c933e09cb083b3e62e52bdf44a9678b', part: tableCell, colSpan: this.payoutsTable.columnData.length }, h("pagination-menu", { key: 'f87d2e1fe590205f455f236ba5afc26533f44f4e', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
181
+ return (h("div", { key: 'ed85d9ce4cc88007b8c623ba57cb8dfbd4de7874' }, h("div", { key: '5760742d19653abb6ce3e45f4f773cd1bd5e612f', class: "table-wrapper", part: "table-wrapper" }, h("table", { key: 'f09a0ea7fff83b23e8e82fda18c73b25e0a46b07', class: "table table-hover", part: table }, h("thead", { key: 'b056f2ef2b6a229cd436ed0e4789f9d19849e956', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '16e6651c934d1d4120ceaeb4732e807666f0404d', class: "table-light text-nowrap", part: "table-head-row" }, this.payoutsTable.columnData.map((column) => column))), h("tbody", { key: '4b552d171131958f696077a66c4256e45ccaf7b2', class: "table-body" }, h(TableLoadingState, { key: 'aded291b5961c14d828ecff475120e48d3913293', columnSpan: this.payoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'a3044be9a44798a4f8800978fd0734de31de6809', isEmpty: this.showEmptyState, columnSpan: this.payoutsTable.columnKeys.length }), h(TableErrorState, { key: '98c909ea58a0dd7f0cbbd8ac9842380b91b92386', columnSpan: this.payoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.payoutsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '0c58d215c797798f87affb37d1f7622de3ca7407', class: "sticky-bottom" }, h("tr", { key: '9a3b39c8836bb817428bd307110fee62db8d7589', class: "table-light align-middle" }, h("td", { key: 'a3eef122632c9459d5fa31d4542b6b085645b738', part: tableCell, colSpan: this.payoutsTable.columnData.length }, h("pagination-menu", { key: '8d77a7e40f9e7c6770812ba8b45a6e0f5f57193e', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
183
182
  }
184
183
  static get watchers() { return {
185
184
  "pagingParams": ["updateOnPropChange"],
@@ -1,8 +1,9 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
  import { c as create$3, a as create$6, F as FormController } from './form.js';
3
- import { D as DisputeEvidenceDocument, a as DisputeResponseFormStep } from './dispute-response-form-types.js';
3
+ import { D as DisputeResponseFormStep, f as fileInputHandler } from './file-input-handler.js';
4
4
  import { T as heading5 } from './parts.js';
5
- import { d as defineCustomElement$4 } from './custom-popper2.js';
5
+ import { d as defineCustomElement$5 } from './custom-popper2.js';
6
+ import { d as defineCustomElement$4 } from './form-control-date2.js';
6
7
  import { d as defineCustomElement$3 } from './form-control-file-v22.js';
7
8
  import { d as defineCustomElement$2 } from './form-control-text2.js';
8
9
  import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
@@ -16,24 +17,18 @@ const ProductOrService = /*@__PURE__*/ proxyCustomElement(class ProductOrService
16
17
  constructor() {
17
18
  super();
18
19
  this.__registerHost();
19
- this.handleFileSelection = (e) => {
20
- const target = e.target;
21
- const name = target.name;
22
- const files = target.files;
23
- for (const file of files) {
24
- this.documentList.push(new DisputeEvidenceDocument(file, name));
25
- }
26
- };
27
20
  this.inputHandler = (name, value) => {
28
21
  this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
29
22
  };
30
23
  this.disputeResponse = undefined;
24
+ this.documentErrors = {};
31
25
  this.form = undefined;
32
26
  this.errors = {};
33
- this.documentList = [];
27
+ this.documents = { service_documentation: [] };
34
28
  }
35
29
  async validateAndSubmit(onSuccess) {
36
- this.form.validateAndSubmit((formData) => onSuccess(formData, this.documentList, DisputeResponseFormStep.productOrService));
30
+ const documentList = Object.values(this.documents).flat();
31
+ this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.productOrService));
37
32
  }
38
33
  ;
39
34
  componentWillLoad() {
@@ -45,21 +40,22 @@ const ProductOrService = /*@__PURE__*/ proxyCustomElement(class ProductOrService
45
40
  });
46
41
  }
47
42
  render() {
48
- var _a, _b;
49
- return (h("div", { key: '5a6f2b3a9c40e31c2be9a0c98abb64793ac37996' }, h("div", { key: '7ff77c4cba89dad5195aed658a13f559953f9632', class: "row gy-3" }, h("div", { key: '407d0c1d31ec876fcd1a7ba0f160caeecf8ea2f6', class: "col-12" }, h("h2", { key: '6da19469c4d0570d666e7d57144f60a7c2ec0a53', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: '35c1de85ef91b00d26231c836f9ea56cb1b83a44', class: "col-12" }, h("form-control-text", { key: '48027fd45015c44bf0a15b53bba6976422002d4f', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), h("div", { key: '96966b5a210ac7c21b7c39d12967619044227055', class: "col-12" }, h("form-control-text", { key: 'ed1d72fd0768e58df68f3df48f1e7d4ed2c6a9ed', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), h("div", { key: '74b8735faf5261fd631539c0447903b9c94abd1b', class: "col-12" }, h("form-control-file-v2", { key: '24273cc84eded001b7224aa3c413c444f8697798', label: "Service Documentation", name: "service_documentation", onChange: this.handleFileSelection, errorText: this.errors.service_documentation })))));
43
+ var _a, _b, _c;
44
+ return (h("div", { key: '0e2648d399af18f7959bed2e0fff56fd63b541df' }, h("div", { key: '4322c227617147721ab7cf33a5e75a09bc370a0c', class: "row gy-3" }, h("div", { key: 'e2bc9f0642356a864e7fa323262ead13d4825fdc', class: "col-12" }, h("h2", { key: '88af660c9add83da7edc7758d4645db796c80fdf', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: 'dcfb0f64e1b611eb8d53f97950d5922f7358a64c', class: "col-12" }, h("form-control-text", { key: '42959d4b7c03d14fdef29a656a5f18d0d89d3b2e', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), h("div", { key: '1f4173e79f10a6ac32b860ecbd62fe5c612cc5b2', class: "col-12" }, h("form-control-date", { key: '6e8bab228b3a23655cbf71fe6dc72a850b38947c', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), h("div", { key: '2e32f65cc5388302d067fb1a8db34e3e529435c2', class: "col-12" }, h("form-control-file-v2", { key: 'f9fb2ac0c6a2f37a7584eeda2460702b1e0d6cc0', label: "Service Documentation", name: "service_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.service_documentation })))));
50
45
  }
51
46
  }, [0, "justifi-product-or-service", {
52
47
  "disputeResponse": [8, "dispute-response"],
48
+ "documentErrors": [8, "document-errors"],
53
49
  "form": [32],
54
50
  "errors": [32],
55
- "documentList": [32],
51
+ "documents": [32],
56
52
  "validateAndSubmit": [64]
57
53
  }]);
58
54
  function defineCustomElement() {
59
55
  if (typeof customElements === "undefined") {
60
56
  return;
61
57
  }
62
- const components = ["justifi-product-or-service", "custom-popper", "form-control-file-v2", "form-control-text", "form-control-tooltip"];
58
+ const components = ["justifi-product-or-service", "custom-popper", "form-control-date", "form-control-file-v2", "form-control-text", "form-control-tooltip"];
63
59
  components.forEach(tagName => { switch (tagName) {
64
60
  case "justifi-product-or-service":
65
61
  if (!customElements.get(tagName)) {
@@ -67,6 +63,11 @@ function defineCustomElement() {
67
63
  }
68
64
  break;
69
65
  case "custom-popper":
66
+ if (!customElements.get(tagName)) {
67
+ defineCustomElement$5();
68
+ }
69
+ break;
70
+ case "form-control-date":
70
71
  if (!customElements.get(tagName)) {
71
72
  defineCustomElement$4();
72
73
  }
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
  import { c as create$3, a as create$6, F as FormController } from './form.js';
3
- import { D as DisputeEvidenceDocument, a as DisputeResponseFormStep } from './dispute-response-form-types.js';
3
+ import { D as DisputeResponseFormStep, f as fileInputHandler } from './file-input-handler.js';
4
4
  import { T as heading5 } from './parts.js';
5
5
  import { d as defineCustomElement$5 } from './custom-popper2.js';
6
6
  import { d as defineCustomElement$4 } from './form-control-file-v22.js';
@@ -20,21 +20,15 @@ const RefundPolicy = /*@__PURE__*/ proxyCustomElement(class RefundPolicy extends
20
20
  this.inputHandler = (name, value) => {
21
21
  this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
22
22
  };
23
- this.handleFileSelection = (e) => {
24
- const target = e.target;
25
- const name = target.name;
26
- const files = target.files;
27
- for (const file of files) {
28
- this.documentList.push(new DisputeEvidenceDocument(file, name));
29
- }
30
- };
31
23
  this.disputeResponse = undefined;
24
+ this.documentErrors = {};
32
25
  this.form = undefined;
33
26
  this.errors = {};
34
- this.documentList = [];
27
+ this.documents = { refund_policy: [], receipt: [] };
35
28
  }
36
29
  async validateAndSubmit(onSuccess) {
37
- this.form.validateAndSubmit((formData) => onSuccess(formData, this.documentList, DisputeResponseFormStep.refundPolicy));
30
+ const documentList = Object.values(this.documents).flat();
31
+ this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.refundPolicy));
38
32
  }
39
33
  ;
40
34
  componentWillLoad() {
@@ -46,14 +40,15 @@ const RefundPolicy = /*@__PURE__*/ proxyCustomElement(class RefundPolicy extends
46
40
  });
47
41
  }
48
42
  render() {
49
- var _a, _b;
50
- return (h("div", { key: '703c5efe2968f84e6cc83ee725c23170076d43b5' }, h("div", { key: 'c04272ce41b0591b3f03f469ff531bc90de82c73', class: "row gy-3" }, h("div", { key: 'e50b1bfe25275aafcbc1ba2a78e1c64957744808', class: "col-12" }, h("h2", { key: '0f61003e430d370024f9f81b67755feb24646b62', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: 'e6e6b3154767c841dcdcd77766fccd2403d19512', class: "col-12" }, h("form-control-textarea", { key: '2d57333ac337dd0045dbfc764e85a9d5ae3a4d7e', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), h("div", { key: 'bf37aa030c4d45a75899a7933bb3fe13729a5507', class: "col-12" }, h("form-control-textarea", { key: 'cd5c88fc04d6b8f0489b080eacc81b2e301e0480', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), h("div", { key: '7bad042eda98c6f94772734708046de75946b48f', class: "col-12" }, h("form-control-file-v2", { key: 'ff350d9ea2dc50b7b306c2127384732816576865', label: "Upload Refund Policy", name: "refund_policy", onChange: this.handleFileSelection })), h("div", { key: '3dbd9e591e6a38ba57fa4bddb5f876c50b480a78', class: "col-12" }, h("form-control-file-v2", { key: 'fd6df99ca40e36ba36be6ab127f104506697e623', label: "Upload Receipt", name: "receipt", onChange: this.handleFileSelection })))));
43
+ var _a, _b, _c, _d;
44
+ return (h("div", { key: '882eb01880bcfdde30abe10465fecd7390654ed6' }, h("div", { key: 'de2f238310e4b80976888d147e90047688ad5ada', class: "row gy-3" }, h("div", { key: '305af62aa762ae6abff0678998132e8f56707550', class: "col-12" }, h("h2", { key: '6e224996b82639c426d129bfd28633f3d3839f6f', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: 'b2b8d444c594bf92d04fed6640230745c5fb49ba', class: "col-12" }, h("form-control-textarea", { key: 'f75c6c360c485ac5253164be5d4941d859deb902', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), h("div", { key: '1788d1e6ba1ddbe82795ce1a41b901a81c055f6d', class: "col-12" }, h("form-control-textarea", { key: 'f47fac9b8e0d6b9766311b13c760129bb6335ddd', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), h("div", { key: 'd96552fee8b4cdddf31148b2d3783a4e1dfb031b', class: "col-12" }, h("form-control-file-v2", { key: '3c6c06201ef3a730aed41ab6b8cb62d5ee8d8128', label: "Upload Refund Policy", name: "refund_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.refund_policy })), h("div", { key: 'ec2271dd9646596df3106f56c6e96f618196046a', class: "col-12" }, h("form-control-file-v2", { key: '48f956f2580187fc7baecc5426d5ed0a1050150b', label: "Upload Receipt", name: "receipt", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.receipt })))));
51
45
  }
52
46
  }, [0, "justifi-refund-policy", {
53
47
  "disputeResponse": [8, "dispute-response"],
48
+ "documentErrors": [8, "document-errors"],
54
49
  "form": [32],
55
50
  "errors": [32],
56
- "documentList": [32],
51
+ "documents": [32],
57
52
  "validateAndSubmit": [64]
58
53
  }]);
59
54
  function defineCustomElement() {
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
  import { c as create$3, a as create$6, F as FormController } from './form.js';
3
- import { D as DisputeEvidenceDocument, a as DisputeResponseFormStep } from './dispute-response-form-types.js';
3
+ import { D as DisputeResponseFormStep, f as fileInputHandler } from './file-input-handler.js';
4
4
  import { T as heading5 } from './parts.js';
5
5
  import { d as defineCustomElement$7 } from './custom-popper2.js';
6
6
  import { d as defineCustomElement$6 } from './form-control-date2.js';
@@ -24,21 +24,16 @@ const ShippingDetails = /*@__PURE__*/ proxyCustomElement(class ShippingDetails e
24
24
  this.inputHandler = (name, value) => {
25
25
  this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
26
26
  };
27
- this.handleFileSelection = (e) => {
28
- const target = e.target;
29
- const name = target.name;
30
- const files = target.files;
31
- for (const file of files) {
32
- this.documentList.push(new DisputeEvidenceDocument(file, name));
33
- }
34
- };
35
27
  this.disputeResponse = undefined;
28
+ this.documentErrors = {};
36
29
  this.form = undefined;
37
30
  this.errors = {};
31
+ this.documents = { shipping_documentation: [] };
38
32
  this.documentList = [];
39
33
  }
40
34
  async validateAndSubmit(onSuccess) {
41
- this.form.validateAndSubmit((formData) => onSuccess(formData, this.documentList, DisputeResponseFormStep.shippingDetails));
35
+ const documentList = Object.values(this.documents).flat();
36
+ this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.shippingDetails));
42
37
  }
43
38
  ;
44
39
  componentWillLoad() {
@@ -50,13 +45,15 @@ const ShippingDetails = /*@__PURE__*/ proxyCustomElement(class ShippingDetails e
50
45
  });
51
46
  }
52
47
  render() {
53
- var _a, _b, _c, _d;
54
- return (h("div", { key: '67cfe365cdb518bfd098502e11d24fff63581052' }, h("div", { key: '6adf6e14084452e52cfa6bce8433c3531e7e5a95', class: "row gy-3" }, h("div", { key: '2ea11029c2d0c3f7c1bd75ea52f50a84cf4a23c7', class: "col-12" }, h("h2", { key: 'ca0e8158b9c7b31bd627ad48dab5c6f59e8c33b9', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: '71a3ff8825b1d824d262cf78e1ce226cc265453b', class: "col-12" }, h("form-control-text", { key: 'b1436af6043ec687d245b923d0df7605a47bb9d5', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: '3d163ebab9371d6ba03f7859c851518c2b9c42e0', class: "col-12" }, h("form-control-text", { key: 'b37976e6a54dc322cfbfb44081dd57e6425cba9c', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '3476796fbca30f969fe71da1c049dc83ed691891', class: "col-12" }, h("form-control-date", { key: 'ba734764e4702ee2f1846f3f580cdbf0e7156ff6', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '8f2690c1f1fddaad3915f1b8aca5f934a45b5f71', class: "col-12" }, h("form-control-textarea", { key: 'dd26eedba648b038e2b414825d7f26c1a326db2f', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: 'ce3e63025adfe560a466522411d93968d8abd420', class: "col-12" }, h("form-control-file-v2", { key: '099d48a3c6b2b7999442e1a0609c4fdac2f67c66', label: "Shipping Documentation", name: "shipping_documentation", onChange: this.handleFileSelection })))));
48
+ var _a, _b, _c, _d, _e;
49
+ return (h("div", { key: '90641cea619de697d7a90e6e397790f79ceb9376' }, h("div", { key: '52d939e26bd26e99240d100897a530b89553e727', class: "row gy-3" }, h("div", { key: '01755fbca3430bd3066377e9481038370c49b2d8', class: "col-12" }, h("h2", { key: 'd273fbe6ff8b7815ba5c2369748a3a20548b0a4d', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: '595f4e63dff85591713a4c895acb6628c8ef8214', class: "col-12" }, h("form-control-text", { key: '958169d07544237a72facdc016d4d12ac64a4c48', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: '1d3020a30f95c5ced652871a635aba0152bbc4e3', class: "col-12" }, h("form-control-text", { key: '088af20353ec2efcb65a4e597a1fb4aec23cfcbb', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '536ee74c42d326d7f7f698274c846bfebf0d34dd', class: "col-12" }, h("form-control-date", { key: '71ef44bd4c810a567162b7fe92199eceff9be470', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '8887e0daf44be31486563e85cd989eef1da5f5ce', class: "col-12" }, h("form-control-textarea", { key: 'c34093bc4ee65f4fb092c377a98e01cd69bdbc7c', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: '469a5d8c7e28fa2ad430f104f08f387448f70048', class: "col-12" }, h("form-control-file-v2", { key: 'a2b6c6c0c1cf32430582b97efe6bcc1d4c47147d', label: "Shipping Documentation", name: "shipping_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.shipping_documentation })))));
55
50
  }
56
51
  }, [0, "justifi-shipping-details", {
57
52
  "disputeResponse": [8, "dispute-response"],
53
+ "documentErrors": [8, "document-errors"],
58
54
  "form": [32],
59
55
  "errors": [32],
56
+ "documents": [32],
60
57
  "documentList": [32],
61
58
  "validateAndSubmit": [64]
62
59
  }]);