@justifi/webcomponents 5.3.4 → 5.3.5

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 (431) hide show
  1. package/dist/cjs/{Analytics-2fb20059.js → Analytics-e91a5523.js} +1 -1
  2. package/dist/cjs/{Checkout-1c07dc32.js → Checkout-eef27045.js} +11 -6
  3. package/dist/cjs/{SubAccount-b4811a8e.js → SubAccount-f9069337.js} +70 -0
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  5. package/dist/cjs/{badge-86a6a7f8.js → badge-6abf6ed3.js} +1 -1
  6. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +7 -7
  7. package/dist/cjs/bank-account-form_9.cjs.entry.js +4 -4
  8. package/dist/cjs/billing-form_3.cjs.entry.js +6 -6
  9. package/dist/cjs/business-details-core.cjs.entry.js +3 -3
  10. package/dist/cjs/{button-5f6c437f.js → button-aed2ce1a.js} +1 -1
  11. package/dist/cjs/{check-pkg-version-f5a3d421.js → check-pkg-version-d19c6fdb.js} +1 -1
  12. package/dist/cjs/{checkout.service-b23994d2.js → checkout.service-0643396e.js} +2 -2
  13. package/dist/cjs/checkouts-list-core.cjs.entry.js +7 -7
  14. package/dist/cjs/{checkouts-table-cf3e245e.js → checkouts-table-f88ad3c8.js} +2 -2
  15. package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +2 -141
  16. package/dist/cjs/{dispute.service-c192dd33.js → dispute.service-53c80520.js} +2 -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-74fb8498.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-3cffd918.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-bdd7d9c0.js} +2 -2
  29. package/dist/cjs/{get-subaccounts-b2e6ab82.js → get-subaccounts-40c4a0b6.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-cc98bae2.js} +1 -1
  32. package/dist/cjs/{header-3-5f78acd1.js → header-3-05ce2ad0.js} +1 -1
  33. package/dist/cjs/{insurance-state-ba0c39a9.js → insurance-state-211cd636.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 -5
  38. package/dist/cjs/justifi-business-form.cjs.entry.js +9 -9
  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 +6 -6
  42. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
  43. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -10
  44. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  45. package/dist/cjs/justifi-dispute-management.cjs.entry.js +6 -6
  46. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +31 -24
  47. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -5
  48. package/dist/cjs/justifi-order-terminals.cjs.entry.js +114 -21
  49. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
  50. package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -8
  51. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
  52. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -3
  53. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
  54. package/dist/cjs/justifi-payments-list.cjs.entry.js +11 -11
  55. package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -8
  56. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
  57. package/dist/cjs/justifi-payouts-list.cjs.entry.js +12 -12
  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 -5
  61. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -5
  62. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
  63. package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -25
  64. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +8 -8
  65. package/dist/cjs/loader.cjs.js +1 -1
  66. package/dist/cjs/{package-e8aa0c51.js → package-82b16c28.js} +1 -1
  67. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  68. package/dist/cjs/{parts-c2655003.js → parts-63f60e81.js} +3 -0
  69. package/dist/cjs/payment-details-core.cjs.entry.js +12 -12
  70. package/dist/cjs/{payment.service-f53022c3.js → payment.service-23b0dcb8.js} +2 -2
  71. package/dist/cjs/payments-list-core.cjs.entry.js +9 -9
  72. package/dist/cjs/{payments-status-92abe577.js → payments-status-b9192db7.js} +1 -1
  73. package/dist/cjs/{payments-table-c58e3ca8.js → payments-table-dba2f145.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 +9 -9
  76. package/dist/cjs/{payouts-status-703d62af.js → payouts-status-385a794d.js} +1 -1
  77. package/dist/cjs/{payouts-table-70fc1498.js → payouts-table-8cd537de.js} +2 -2
  78. package/dist/cjs/{skeleton-84102a44.js → skeleton-65afa2f5.js} +1 -1
  79. package/dist/cjs/{spinner-70f38e5e.js → spinner-a95e9b8d.js} +1 -1
  80. package/dist/cjs/{table-fc82fa81.js → table-ad35ff09.js} +2 -2
  81. package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
  82. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +61 -8
  83. package/dist/cjs/terminal-orders-table-8baa5461.js +51 -0
  84. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +36 -0
  85. package/dist/cjs/terminal.service-2f41898f.js +30 -0
  86. package/dist/cjs/terminals-list-core.cjs.entry.js +8 -8
  87. package/dist/cjs/{terminals-table-db58a0c0.js → terminals-table-c4c01dc3.js} +6 -4
  88. package/dist/cjs/{utils-7c5b2837.js → utils-f752bd45.js} +1 -1
  89. package/dist/cjs/webcomponents.cjs.js +1 -1
  90. package/dist/collection/actions/terminal/get-terminal-models.js +30 -0
  91. package/dist/collection/api/Checkout.js +5 -0
  92. package/dist/collection/api/Terminal.js +1 -0
  93. package/dist/collection/api/TerminalModel.js +15 -0
  94. package/dist/collection/api/TerminalOrder.js +51 -0
  95. package/dist/collection/api/index.js +2 -0
  96. package/dist/collection/api/services/terminal.service.js +6 -0
  97. package/dist/collection/collection-manifest.json +1 -0
  98. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +8 -8
  99. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  100. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +27 -15
  101. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +26 -14
  102. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +26 -14
  103. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +22 -14
  104. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +26 -14
  105. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +26 -14
  106. package/dist/collection/components/dispute-management/dispute-response/file-input-handler.js +11 -0
  107. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +26 -14
  108. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +26 -14
  109. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +26 -12
  110. package/dist/collection/components/order-terminals/order-terminals.js +79 -16
  111. package/dist/collection/components/payment-details/payment-details-core.js +7 -7
  112. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  113. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  114. package/dist/collection/components/payments-list/payments-list.js +1 -1
  115. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  116. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  117. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  118. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  119. package/dist/collection/components/refund-form/refund-form.js +1 -1
  120. package/dist/collection/components/terminal-orders-list/terminal-order-status.js +18 -0
  121. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +3 -2
  122. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  123. package/dist/collection/components/terminal-orders-list/terminal-orders-table.js +17 -5
  124. package/dist/collection/components/terminal-quantity-selector/terminal-quantity-selector-loading.js +5 -0
  125. package/dist/collection/components/terminal-quantity-selector/terminal-quantity-selector.js +153 -0
  126. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  127. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  128. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  129. package/dist/collection/components/terminals-list/terminals-table.js +4 -2
  130. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
  131. package/dist/collection/styles/parts.js +3 -0
  132. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  133. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  134. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  135. package/dist/collection/ui-components/form/form-control-file-v2.js +2 -1
  136. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  137. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  138. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  139. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  140. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  141. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  142. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  143. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  144. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  145. package/dist/docs.json +428 -36
  146. package/dist/esm/{Analytics-759c7da5.js → Analytics-d0f79dc3.js} +1 -1
  147. package/dist/esm/{Checkout-919eb1ba.js → Checkout-2bc873fb.js} +6 -1
  148. package/dist/esm/{SubAccount-9aad3891.js → SubAccount-f31bdeb4.js} +69 -1
  149. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  150. package/dist/esm/{badge-2eb79416.js → badge-7768a2b1.js} +1 -1
  151. package/dist/esm/bank-account-document-form-inputs_4.entry.js +7 -7
  152. package/dist/esm/bank-account-form_9.entry.js +4 -4
  153. package/dist/esm/billing-form_3.entry.js +6 -6
  154. package/dist/esm/business-details-core.entry.js +3 -3
  155. package/dist/esm/{button-cc455199.js → button-b3d07089.js} +1 -1
  156. package/dist/esm/{check-pkg-version-1d6e48c8.js → check-pkg-version-2e9f961e.js} +1 -1
  157. package/dist/esm/{checkout.service-bb45d248.js → checkout.service-020aaf97.js} +2 -2
  158. package/dist/esm/checkouts-list-core.entry.js +7 -7
  159. package/dist/esm/{checkouts-table-53981285.js → checkouts-table-974c57ba.js} +2 -2
  160. package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -140
  161. package/dist/esm/{dispute.service-9008b3b7.js → dispute.service-b234b5c7.js} +2 -2
  162. package/dist/esm/form-alert_5.entry.js +1 -1
  163. package/dist/esm/form-control-checkbox.entry.js +5 -5
  164. package/dist/esm/form-control-date.entry.js +4 -4
  165. package/dist/esm/{form-control-error-text-74c6b38a.js → form-control-error-text-923afdfa.js} +1 -1
  166. package/dist/esm/form-control-file-v2_2.entry.js +5 -4
  167. package/dist/esm/{form-control-help-text-76a4196e.js → form-control-help-text-c7bdd493.js} +1 -1
  168. package/dist/esm/form-control-monetary.entry.js +5 -5
  169. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  170. package/dist/esm/form-control-number.entry.js +5 -5
  171. package/dist/esm/form-control-radio.entry.js +3 -3
  172. package/dist/esm/form-control-select_3.entry.js +139 -0
  173. package/dist/esm/{get-payout-csv-8450b60d.js → get-payout-csv-9528b0a2.js} +2 -2
  174. package/dist/esm/{get-subaccounts-3af0844a.js → get-subaccounts-212c162d.js} +2 -2
  175. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  176. package/dist/esm/{header-1-797ca789.js → header-1-649109a3.js} +1 -1
  177. package/dist/esm/{header-3-544afa0b.js → header-3-ca7bb57b.js} +1 -1
  178. package/dist/esm/{insurance-state-307335d6.js → insurance-state-e3b48bb2.js} +1 -1
  179. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +5 -5
  180. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +4 -4
  181. package/dist/esm/justifi-additional-statement_8.entry.js +71 -108
  182. package/dist/esm/justifi-business-details.entry.js +5 -5
  183. package/dist/esm/justifi-business-form.entry.js +9 -9
  184. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  185. package/dist/esm/justifi-checkout-core.entry.js +6 -6
  186. package/dist/esm/justifi-checkout.entry.js +6 -6
  187. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
  188. package/dist/esm/justifi-checkouts-list.entry.js +10 -10
  189. package/dist/esm/justifi-details.entry.js +2 -2
  190. package/dist/esm/justifi-dispute-management.entry.js +6 -6
  191. package/dist/esm/justifi-dispute-notification_3.entry.js +31 -24
  192. package/dist/esm/justifi-gross-payment-chart.entry.js +5 -5
  193. package/dist/esm/justifi-order-terminals.entry.js +115 -22
  194. package/dist/esm/justifi-owner-form_3.entry.js +2 -2
  195. package/dist/esm/justifi-payment-details.entry.js +8 -8
  196. package/dist/esm/justifi-payment-provisioning-core.entry.js +2 -2
  197. package/dist/esm/justifi-payment-provisioning.entry.js +3 -3
  198. package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
  199. package/dist/esm/justifi-payments-list.entry.js +11 -11
  200. package/dist/esm/justifi-payout-details.entry.js +8 -8
  201. package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
  202. package/dist/esm/justifi-payouts-list.entry.js +12 -12
  203. package/dist/esm/justifi-refund-form.entry.js +3 -3
  204. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
  205. package/dist/esm/justifi-season-interruption-insurance.entry.js +5 -5
  206. package/dist/esm/justifi-terminal-orders-list.entry.js +7 -5
  207. package/dist/esm/justifi-terminals-list-filters.entry.js +4 -4
  208. package/dist/esm/justifi-terminals-list.entry.js +12 -24
  209. package/dist/esm/justifi-tokenize-payment-method.entry.js +8 -8
  210. package/dist/esm/loader.js +1 -1
  211. package/dist/esm/{package-49477570.js → package-b9d805ae.js} +1 -1
  212. package/dist/esm/pagination-menu.entry.js +1 -1
  213. package/dist/esm/{parts-489f0af6.js → parts-18c966b1.js} +3 -1
  214. package/dist/esm/payment-details-core.entry.js +12 -12
  215. package/dist/esm/{payment.service-a8ee345c.js → payment.service-81752187.js} +2 -2
  216. package/dist/esm/payments-list-core.entry.js +9 -9
  217. package/dist/esm/{payments-status-35255b2c.js → payments-status-f451caf6.js} +1 -1
  218. package/dist/esm/{payments-table-6e97396a.js → payments-table-a7836555.js} +2 -2
  219. package/dist/esm/payout-details-core.entry.js +7 -7
  220. package/dist/esm/payouts-list-core.entry.js +9 -9
  221. package/dist/esm/{payouts-status-a0cc00c5.js → payouts-status-bfae9f42.js} +1 -1
  222. package/dist/esm/{payouts-table-6b8ba8f1.js → payouts-table-55f1a8a3.js} +2 -2
  223. package/dist/esm/{skeleton-74fbfb68.js → skeleton-ca37b248.js} +1 -1
  224. package/dist/esm/{spinner-6b708842.js → spinner-30abb9b0.js} +1 -1
  225. package/dist/esm/{table-e287f1c0.js → table-03e4dfc0.js} +2 -2
  226. package/dist/esm/table-filters-menu.entry.js +2 -2
  227. package/dist/esm/terminal-orders-list-core.entry.js +61 -8
  228. package/dist/esm/terminal-orders-table-a340c409.js +47 -0
  229. package/dist/esm/terminal-quantity-selector.entry.js +32 -0
  230. package/dist/esm/terminal.service-3c3f2c3f.js +28 -0
  231. package/dist/esm/terminals-list-core.entry.js +8 -8
  232. package/dist/esm/{terminals-table-c6258344.js → terminals-table-88549e54.js} +6 -4
  233. package/dist/esm/{utils-6c26bccc.js → utils-e7df4815.js} +1 -1
  234. package/dist/esm/webcomponents.js +1 -1
  235. package/dist/module/Checkout.js +6 -1
  236. package/dist/module/SubAccount.js +69 -1
  237. package/dist/module/additional-statement.js +9 -14
  238. package/dist/module/cancellation-policy.js +9 -14
  239. package/dist/module/custom-popper2.js +2 -2
  240. package/dist/module/customer-details.js +9 -14
  241. package/dist/module/dispute-notification.js +1 -1
  242. package/dist/module/dispute-response-core.js +22 -14
  243. package/dist/module/duplicate-charge.js +9 -14
  244. package/dist/module/electronic-evidence.js +9 -14
  245. package/dist/module/{dispute-response-form-types.js → file-input-handler.js} +23 -13
  246. package/dist/module/form-control-checkbox2.js +2 -2
  247. package/dist/module/form-control-date2.js +2 -2
  248. package/dist/module/form-control-file-v22.js +2 -1
  249. package/dist/module/form-control-file2.js +2 -2
  250. package/dist/module/form-control-monetary2.js +2 -2
  251. package/dist/module/form-control-number-masked2.js +2 -2
  252. package/dist/module/form-control-number.js +2 -2
  253. package/dist/module/form-control-radio2.js +2 -2
  254. package/dist/module/form-control-text2.js +2 -2
  255. package/dist/module/form-control-textarea2.js +2 -2
  256. package/dist/module/hidden-input2.js +1 -1
  257. package/dist/module/iframe-input2.js +3 -3
  258. package/dist/module/justifi-checkouts-list-filters.js +4 -4
  259. package/dist/module/justifi-order-terminals.js +134 -18
  260. package/dist/module/justifi-payments-list-filters.js +3 -3
  261. package/dist/module/justifi-payments-list.js +1 -1
  262. package/dist/module/justifi-payouts-list-filters.js +3 -3
  263. package/dist/module/justifi-payouts-list.js +1 -1
  264. package/dist/module/justifi-refund-form.js +1 -1
  265. package/dist/module/justifi-terminal-orders-list.js +1 -1
  266. package/dist/module/justifi-terminals-list-filters.js +2 -2
  267. package/dist/module/justifi-terminals-list.js +3 -16
  268. package/dist/module/justifi-tokenize-payment-method.js +1 -1
  269. package/dist/module/package.js +1 -1
  270. package/dist/module/parts.js +3 -1
  271. package/dist/module/payment-details-core2.js +7 -7
  272. package/dist/module/payments-list-core2.js +1 -1
  273. package/dist/module/payout-details-core2.js +1 -1
  274. package/dist/module/payouts-list-core2.js +1 -1
  275. package/dist/module/product-or-service.js +17 -16
  276. package/dist/module/refund-policy.js +9 -14
  277. package/dist/module/shipping-details.js +9 -12
  278. package/dist/module/terminal-orders-list-core2.js +92 -7
  279. package/dist/module/terminal-quantity-selector.d.ts +11 -0
  280. package/dist/module/terminal-quantity-selector.js +6 -0
  281. package/dist/module/terminal-quantity-selector2.js +66 -0
  282. package/dist/module/terminal.service.js +28 -0
  283. package/dist/module/terminals-list-core2.js +5 -3
  284. package/dist/types/actions/terminal/get-terminal-models.d.ts +8 -0
  285. package/dist/types/api/Checkout.d.ts +4 -0
  286. package/dist/types/api/Terminal.d.ts +2 -0
  287. package/dist/types/api/TerminalModel.d.ts +31 -0
  288. package/dist/types/api/TerminalOrder.d.ts +53 -0
  289. package/dist/types/api/index.d.ts +2 -0
  290. package/dist/types/api/services/terminal.service.d.ts +2 -0
  291. package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +3 -3
  292. package/dist/types/components/dispute-management/dispute-response/additional-statement.d.ts +4 -2
  293. package/dist/types/components/dispute-management/dispute-response/cancellation-policy.d.ts +4 -2
  294. package/dist/types/components/dispute-management/dispute-response/customer-details.d.ts +5 -2
  295. package/dist/types/components/dispute-management/dispute-response/dispute-response-core.d.ts +5 -4
  296. package/dist/types/components/dispute-management/dispute-response/duplicate-charge.d.ts +4 -2
  297. package/dist/types/components/dispute-management/dispute-response/electronic-evidence.d.ts +4 -2
  298. package/dist/types/components/dispute-management/dispute-response/file-input-handler.d.ts +2 -0
  299. package/dist/types/components/dispute-management/dispute-response/product-or-service.d.ts +4 -2
  300. package/dist/types/components/dispute-management/dispute-response/refund-policy.d.ts +5 -2
  301. package/dist/types/components/dispute-management/dispute-response/shipping-details.d.ts +4 -1
  302. package/dist/types/components/order-terminals/order-terminals.d.ts +12 -2
  303. package/dist/types/components/terminal-orders-list/terminal-order-status.d.ts +2 -0
  304. package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +4 -3
  305. package/dist/types/components/terminal-orders-list/terminal-orders-table.d.ts +16 -5
  306. package/dist/types/components/terminal-quantity-selector/terminal-quantity-selector-loading.d.ts +1 -0
  307. package/dist/types/components/terminal-quantity-selector/terminal-quantity-selector.d.ts +17 -0
  308. package/dist/types/components/terminals-list/terminals-table.d.ts +3 -1
  309. package/dist/types/components.d.ts +61 -4
  310. package/dist/types/global.d.ts +1 -0
  311. package/dist/types/styles/parts.d.ts +2 -0
  312. package/dist/webcomponents/{p-b57cfe54.entry.js → p-0a271654.entry.js} +1 -1
  313. package/dist/webcomponents/{p-553dba95.entry.js → p-0ef25316.entry.js} +1 -1
  314. package/dist/webcomponents/{p-1aa22806.js → p-0ef50c81.js} +1 -1
  315. package/dist/webcomponents/{p-d279545a.entry.js → p-0f85fde5.entry.js} +1 -1
  316. package/dist/webcomponents/{p-c2196cb8.entry.js → p-0faaae79.entry.js} +1 -1
  317. package/dist/webcomponents/{p-b2d57b2c.entry.js → p-121e9167.entry.js} +1 -1
  318. package/dist/webcomponents/p-140836f1.entry.js +1 -0
  319. package/dist/webcomponents/{p-4fbdf440.entry.js → p-1a9d60b1.entry.js} +1 -1
  320. package/dist/webcomponents/p-1d019dda.entry.js +1 -0
  321. package/dist/webcomponents/p-1e3cc191.entry.js +1 -0
  322. package/dist/webcomponents/p-1fcde0de.entry.js +1 -0
  323. package/dist/webcomponents/{p-8548edd6.entry.js → p-229c841e.entry.js} +1 -1
  324. package/dist/webcomponents/p-2481c1d3.entry.js +1 -0
  325. package/dist/webcomponents/{p-ebbe93ac.entry.js → p-29988e8f.entry.js} +1 -1
  326. package/dist/webcomponents/p-31507b3a.entry.js +1 -0
  327. package/dist/webcomponents/p-348fc9b1.js +1 -0
  328. package/dist/webcomponents/{p-794cce10.entry.js → p-36060c36.entry.js} +1 -1
  329. package/dist/webcomponents/{p-1278dedf.js → p-3744006f.js} +1 -1
  330. package/dist/webcomponents/{p-89ecfbf4.entry.js → p-4014d084.entry.js} +1 -1
  331. package/dist/webcomponents/p-418ab812.entry.js +1 -0
  332. package/dist/webcomponents/{p-fea43254.entry.js → p-420d6572.entry.js} +1 -1
  333. package/dist/webcomponents/{p-0b38cfbf.js → p-45bed1b7.js} +1 -1
  334. package/dist/webcomponents/{p-235abbd1.entry.js → p-49fc12b2.entry.js} +1 -1
  335. package/dist/webcomponents/{p-f7d9ea0b.entry.js → p-4a580682.entry.js} +1 -1
  336. package/dist/webcomponents/p-4bb0d6fd.js +1 -0
  337. package/dist/webcomponents/{p-ff1f2d65.js → p-4c4a2c48.js} +1 -1
  338. package/dist/webcomponents/p-4f9a2f1f.js +1 -0
  339. package/dist/webcomponents/{p-e3e0d791.entry.js → p-54502491.entry.js} +1 -1
  340. package/dist/webcomponents/{p-9a4d0e1d.entry.js → p-55a6599a.entry.js} +1 -1
  341. package/dist/webcomponents/{p-5a96a2a2.entry.js → p-566883fb.entry.js} +1 -1
  342. package/dist/webcomponents/{p-a90d8f4f.entry.js → p-57ddf983.entry.js} +1 -1
  343. package/dist/webcomponents/p-5bf5f7d7.entry.js +1 -0
  344. package/dist/webcomponents/p-5dc767d8.js +1 -0
  345. package/dist/webcomponents/{p-a31ba276.entry.js → p-6501cb6e.entry.js} +1 -1
  346. package/dist/webcomponents/{p-06f5b709.js → p-66cdd475.js} +1 -1
  347. package/dist/webcomponents/{p-bfe339d5.js → p-6776df16.js} +1 -1
  348. package/dist/webcomponents/{p-a6b66c88.entry.js → p-6815a6cb.entry.js} +1 -1
  349. package/dist/webcomponents/{p-dfebd7a4.js → p-69ae193c.js} +1 -1
  350. package/dist/webcomponents/{p-53b660a3.entry.js → p-76d1036b.entry.js} +1 -1
  351. package/dist/webcomponents/{p-8a7266b4.js → p-77245638.js} +1 -1
  352. package/dist/webcomponents/p-77e3ed67.js +1 -0
  353. package/dist/webcomponents/p-7d43c1d6.entry.js +1 -0
  354. package/dist/webcomponents/{p-e007002a.entry.js → p-7dc34297.entry.js} +1 -1
  355. package/dist/webcomponents/{p-3ab7a49e.entry.js → p-7e4c84f7.entry.js} +1 -1
  356. package/dist/webcomponents/{p-09496255.js → p-808f61aa.js} +1 -1
  357. package/dist/webcomponents/p-834c12a0.entry.js +1 -0
  358. package/dist/webcomponents/p-8548d8de.js +1 -0
  359. package/dist/webcomponents/{p-39a63e0c.entry.js → p-867e34b8.entry.js} +1 -1
  360. package/dist/webcomponents/p-8a3f1a56.entry.js +1 -0
  361. package/dist/webcomponents/p-8a9debac.entry.js +1 -0
  362. package/dist/webcomponents/p-8b3842ce.js +1 -0
  363. package/dist/webcomponents/{p-300a99ee.js → p-913d51b9.js} +1 -1
  364. package/dist/webcomponents/{p-906a6027.js → p-930e2e05.js} +1 -1
  365. package/dist/webcomponents/p-96a491aa.js +1 -0
  366. package/dist/webcomponents/{p-08a17c5c.entry.js → p-9a6eacd0.entry.js} +1 -1
  367. package/dist/webcomponents/{p-4a71c90b.entry.js → p-9d8cf927.entry.js} +1 -1
  368. package/dist/webcomponents/{p-14f40baa.js → p-9ffed802.js} +1 -1
  369. package/dist/webcomponents/{p-060896c4.entry.js → p-adf30888.entry.js} +1 -1
  370. package/dist/webcomponents/p-b0335a17.entry.js +1 -0
  371. package/dist/webcomponents/{p-939d0a35.entry.js → p-b075211e.entry.js} +1 -1
  372. package/dist/webcomponents/{p-8b16a20f.js → p-b40bcf59.js} +1 -1
  373. package/dist/webcomponents/p-b7a407fb.entry.js +1 -0
  374. package/dist/webcomponents/{p-d398ce81.js → p-b894423f.js} +1 -1
  375. package/dist/webcomponents/{p-acca56ec.entry.js → p-bc6e3e59.entry.js} +1 -1
  376. package/dist/webcomponents/p-bc73a554.entry.js +1 -0
  377. package/dist/webcomponents/{p-670296bf.entry.js → p-c17af2a4.entry.js} +1 -1
  378. package/dist/webcomponents/p-c1af1fdb.entry.js +1 -0
  379. package/dist/webcomponents/{p-df2559c7.js → p-ca19fd2e.js} +1 -1
  380. package/dist/webcomponents/p-ca55be58.js +1 -0
  381. package/dist/webcomponents/{p-3b680e50.js → p-d019b800.js} +1 -1
  382. package/dist/webcomponents/{p-020e7d5d.entry.js → p-d37d20ca.entry.js} +1 -1
  383. package/dist/webcomponents/p-d979d9ea.entry.js +1 -0
  384. package/dist/webcomponents/p-d981a599.entry.js +1 -0
  385. package/dist/webcomponents/{p-75b7dfe7.entry.js → p-da415c08.entry.js} +1 -1
  386. package/dist/webcomponents/{p-389e1eb7.js → p-daf0303f.js} +1 -1
  387. package/dist/webcomponents/{p-29688e30.js → p-dd535097.js} +1 -1
  388. package/dist/webcomponents/p-e0befd51.js +1 -0
  389. package/dist/webcomponents/{p-7ee5a90e.entry.js → p-e7d2eba7.entry.js} +1 -1
  390. package/dist/webcomponents/{p-fa843aad.entry.js → p-e895bc2a.entry.js} +1 -1
  391. package/dist/webcomponents/{p-ae271c06.entry.js → p-ec3f9d80.entry.js} +1 -1
  392. package/dist/webcomponents/{p-d432f0fd.entry.js → p-ee991c9e.entry.js} +1 -1
  393. package/dist/webcomponents/p-f1580c62.js +1 -0
  394. package/dist/webcomponents/{p-19063270.entry.js → p-f48dd1ef.entry.js} +1 -1
  395. package/dist/webcomponents/p-fe0399a1.js +1 -0
  396. package/dist/webcomponents/{p-56697a12.entry.js → p-fe439eb2.entry.js} +1 -1
  397. package/dist/webcomponents/p-fe8be5fa.entry.js +1 -0
  398. package/dist/webcomponents/p-ffbd95d0.entry.js +1 -0
  399. package/dist/webcomponents/webcomponents.esm.js +1 -1
  400. package/package.json +1 -1
  401. package/dist/cjs/terminal-orders-table-61081532.js +0 -18
  402. package/dist/esm/terminal-orders-table-765c44d5.js +0 -14
  403. package/dist/webcomponents/p-0f4d851d.entry.js +0 -1
  404. package/dist/webcomponents/p-1f4e26f3.entry.js +0 -1
  405. package/dist/webcomponents/p-27c72b92.entry.js +0 -1
  406. package/dist/webcomponents/p-29fbbc93.js +0 -1
  407. package/dist/webcomponents/p-2e0ae487.js +0 -1
  408. package/dist/webcomponents/p-2f9af679.js +0 -1
  409. package/dist/webcomponents/p-37b7b200.entry.js +0 -1
  410. package/dist/webcomponents/p-3d486f37.entry.js +0 -1
  411. package/dist/webcomponents/p-42a48c59.js +0 -1
  412. package/dist/webcomponents/p-49df4962.entry.js +0 -1
  413. package/dist/webcomponents/p-4b6256e0.entry.js +0 -1
  414. package/dist/webcomponents/p-595479da.entry.js +0 -1
  415. package/dist/webcomponents/p-66ae2a0e.entry.js +0 -1
  416. package/dist/webcomponents/p-78a204f9.entry.js +0 -1
  417. package/dist/webcomponents/p-7c541199.entry.js +0 -1
  418. package/dist/webcomponents/p-7d2538d9.entry.js +0 -1
  419. package/dist/webcomponents/p-9055aa6e.entry.js +0 -1
  420. package/dist/webcomponents/p-9cbbe9cb.entry.js +0 -1
  421. package/dist/webcomponents/p-9edd6ad8.js +0 -1
  422. package/dist/webcomponents/p-a0082e77.entry.js +0 -1
  423. package/dist/webcomponents/p-af945fc0.entry.js +0 -1
  424. package/dist/webcomponents/p-c4ca0038.js +0 -1
  425. package/dist/webcomponents/p-cba89310.entry.js +0 -1
  426. package/dist/webcomponents/p-cbe05f11.js +0 -1
  427. package/dist/webcomponents/p-d5c41ec6.js +0 -1
  428. package/dist/webcomponents/p-e8cd9691.js +0 -1
  429. package/dist/webcomponents/p-e9e80a62.js +0 -1
  430. package/dist/webcomponents/p-ec019b89.js +0 -1
  431. package/dist/webcomponents/p-fc3d2a9e.entry.js +0 -1
@@ -1,11 +1,24 @@
1
1
  import { r as registerInstance, h } from './index-29fcfdf5.js';
2
2
  import { c as create$3, a as create$6, F as FormController } from './index.esm-0b6849c2.js';
3
- import { _ as heading5 } from './parts-489f0af6.js';
3
+ import { a0 as heading5 } from './parts-18c966b1.js';
4
4
 
5
5
  const AdditionalStatementSchema = create$3({
6
6
  additional_statement: create$6().nullable(),
7
7
  });
8
8
 
9
+ var DisputeResponseFormStep;
10
+ (function (DisputeResponseFormStep) {
11
+ DisputeResponseFormStep["disputeReason"] = "dispute_reason";
12
+ DisputeResponseFormStep["productOrService"] = "product_or_service";
13
+ DisputeResponseFormStep["customerDetails"] = "customer_details";
14
+ DisputeResponseFormStep["cancellationPolicy"] = "cancellation_policy";
15
+ DisputeResponseFormStep["refundPolicy"] = "refund_policy";
16
+ DisputeResponseFormStep["duplicateCharge"] = "duplicate_charge";
17
+ DisputeResponseFormStep["electronicEvidence"] = "electronic_evidence";
18
+ DisputeResponseFormStep["shippingDetails"] = "shipping_details";
19
+ DisputeResponseFormStep["additionalStatement"] = "additional_statement";
20
+ })(DisputeResponseFormStep || (DisputeResponseFormStep = {}));
21
+
9
22
  var DisputeEvidenceDocumentType;
10
23
  (function (DisputeEvidenceDocumentType) {
11
24
  DisputeEvidenceDocumentType["activity_log"] = "activity_log";
@@ -51,18 +64,15 @@ class DisputeEvidenceDocument {
51
64
  }
52
65
  }
53
66
 
54
- var DisputeResponseFormStep;
55
- (function (DisputeResponseFormStep) {
56
- DisputeResponseFormStep["disputeReason"] = "dispute_reason";
57
- DisputeResponseFormStep["productOrService"] = "product_or_service";
58
- DisputeResponseFormStep["customerDetails"] = "customer_details";
59
- DisputeResponseFormStep["cancellationPolicy"] = "cancellation_policy";
60
- DisputeResponseFormStep["refundPolicy"] = "refund_policy";
61
- DisputeResponseFormStep["duplicateCharge"] = "duplicate_charge";
62
- DisputeResponseFormStep["electronicEvidence"] = "electronic_evidence";
63
- DisputeResponseFormStep["shippingDetails"] = "shipping_details";
64
- DisputeResponseFormStep["additionalStatement"] = "additional_statement";
65
- })(DisputeResponseFormStep || (DisputeResponseFormStep = {}));
67
+ const fileInputHandler = (e, documentState) => {
68
+ const target = e.target;
69
+ const name = target.name;
70
+ const files = target.files;
71
+ documentState[name] = [];
72
+ for (const file of files) {
73
+ documentState[name].push(new DisputeEvidenceDocument(file, name));
74
+ }
75
+ };
66
76
 
67
77
  const AdditionalStatement = class {
68
78
  constructor(hostRef) {
@@ -70,23 +80,17 @@ const AdditionalStatement = class {
70
80
  this.inputHandler = (name, value) => {
71
81
  this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
72
82
  };
73
- this.handleFileSelection = (e) => {
74
- const target = e.target;
75
- const name = target.name;
76
- const files = target.files;
77
- for (const file of files) {
78
- this.documentList.push(new DisputeEvidenceDocument(file, name));
79
- }
80
- };
81
83
  this.disputeResponse = undefined;
84
+ this.documentErrors = {};
82
85
  this.form = undefined;
83
86
  this.errors = {};
84
- this.documentList = [];
85
87
  this.acceptedTerms = false;
86
88
  this.acceptedTermsErrorText = undefined;
89
+ this.documents = { uncategorized_file: [] };
87
90
  }
88
91
  async validateAndSubmit(onSuccess) {
89
- this.form.validateAndSubmit((formData) => onSuccess(formData, this.documentList, DisputeResponseFormStep.additionalStatement));
92
+ const documentList = Object.values(this.documents).flat();
93
+ this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.additionalStatement));
90
94
  }
91
95
  ;
92
96
  componentWillLoad() {
@@ -98,8 +102,8 @@ const AdditionalStatement = class {
98
102
  });
99
103
  }
100
104
  render() {
101
- var _a;
102
- return (h("div", { key: '083f14b645e1e04bdcbf966ae3b7849559c41104' }, h("div", { key: '08bfee9d04c586bb56a5a077363f05c39aad1330', class: "row gy-3" }, h("div", { key: 'd118d863cfd771562eea8ab95027e0c68f78fb83', class: "col-12" }, h("h2", { key: 'ed467dd3210f8a7f8da11e0c38ab6e2b30cf7137', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: 'aabe0f4f662cd44db39b28d17bd37514aa7e3be0', class: "col-12" }, h("form-control-textarea", { key: 'ea4c86dd49d91ed386db8e00bf42315813a0ee62', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), h("div", { key: 'a9279734278c970e210795ca6a52c1fd9e44de91', class: "col-12" }, h("form-control-file-v2", { key: 'edc1e80a9a2115ca0b0aacaf43bec320edcce150', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: this.handleFileSelection })))));
105
+ var _a, _b;
106
+ return (h("div", { key: '5e572a30ed53b4fbcf3808ba545ce2fdf5b988aa' }, h("div", { key: '90870dc58e0eab72e64ae03bdaa25bb1749d8e23', class: "row gy-3" }, h("div", { key: 'cc3b6f19687d02e047744e8a53d22a2f91a8b968', class: "col-12" }, h("h2", { key: '230c20dc3f75e48afa4008369374fd8c175cb7ea', class: "h5", part: heading5 }, "Additional Evidence")), h("div", { key: '7b49c8012cfc07c44399969f8505db786389b38b', class: "col-12" }, h("form-control-textarea", { key: '349a8a2ebda338e170c90266801ae93b6f9482ea', label: "Is there anything else you would like to say about this dispute?", name: "additional_statement", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.additional_statement, inputHandler: this.inputHandler, errorText: this.errors.additional_statement })), h("div", { key: '01cd368a2278c5de462f0998a50ba4ca5889be26', class: "col-12" }, h("form-control-file-v2", { key: 'f95d0b78704f9a1fd154003edbbffb062659ae27', label: "Additional files", name: "uncategorized_file", multiple: true, helpText: "Upload any additional pieces of evidence that have not already been provided.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.uncategorized_file })))));
103
107
  }
104
108
  };
105
109
 
@@ -114,21 +118,15 @@ const CancellationPolicy = class {
114
118
  this.inputHandler = (name, value) => {
115
119
  this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
116
120
  };
117
- this.handleFileSelection = (e) => {
118
- const target = e.target;
119
- const name = target.name;
120
- const files = target.files;
121
- for (const file of files) {
122
- this.documentList.push(new DisputeEvidenceDocument(file, name));
123
- }
124
- };
125
121
  this.disputeResponse = undefined;
122
+ this.documentErrors = {};
126
123
  this.form = undefined;
127
124
  this.errors = {};
128
- this.documentList = [];
125
+ this.documents = { cancellation_policy: [] };
129
126
  }
130
127
  async validateAndSubmit(onSuccess) {
131
- this.form.validateAndSubmit((formData) => onSuccess(formData, this.documentList, DisputeResponseFormStep.cancellationPolicy));
128
+ const documentList = Object.values(this.documents).flat();
129
+ this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.cancellationPolicy));
132
130
  }
133
131
  ;
134
132
  componentWillLoad() {
@@ -140,8 +138,8 @@ const CancellationPolicy = class {
140
138
  });
141
139
  }
142
140
  render() {
143
- var _a, _b;
144
- return (h("div", { key: 'a3547f9f1e7f9a00e08a63302138574b1e21ac77' }, h("div", { key: '5cb90af6d52f208e70e82abe7486f8f02320b94b', class: "row gy-3" }, h("div", { key: 'b042e320b7017a836f0d075ca9131dfeaf696eaf', class: "col-12" }, h("h2", { key: '6d055390874e5679f073a4641933aa979864c916', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: 'd05a7f01f33b16b887fcd08d8dbccd6656286cc6', class: "col-12" }, h("form-control-textarea", { key: 'd6a09e94f42aee41d7147be39df6cd1771ea4b36', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), h("div", { key: '4d72c534c23013caa94ba3f61a3570f742194c45', class: "col-12" }, h("form-control-textarea", { key: 'b63ddec49b8ca7e10b1a7003d6cbab7e22c667d6', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), h("div", { key: '13f3dddacbf160789af2364455e138ea156929b9', class: "col-12" }, h("form-control-file-v2", { key: '9f950b05c37edf21f342ef880d0c784df93b11d5', label: "Upload Cancellation Policy", name: "cancellation_policy_file", onChange: this.handleFileSelection })))));
141
+ var _a, _b, _c;
142
+ return (h("div", { key: '6dc5100426e8e4124d19a375250f85f8e15b28d4' }, h("div", { key: 'fb950108be5fd4096a7717c88943938261787f99', class: "row gy-3" }, h("div", { key: '08f85a06288e19939a16d3fa52ef3b3199c56f36', class: "col-12" }, h("h2", { key: 'a585b93921814b1ffbb95c6f9c1de37d4104049b', class: "h5", part: heading5 }, "Cancellation Policy")), h("div", { key: '3b7c620518006738d2e36863b62a72142f167733', class: "col-12" }, h("form-control-textarea", { key: '70a76160b0d29648a9e0598dd5b867a382935e03', label: "Cancellation Policy Disclosure", name: "cancellation_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.cancellation_policy_disclosure, inputHandler: this.inputHandler, errorText: this.errors.cancellation_policy_disclosure })), h("div", { key: 'e06d4c794bad47e366ca702e764307fdab5e33a8', class: "col-12" }, h("form-control-textarea", { key: '1b783920c5a5b94bff60d4b061cc7cc6666cc184', label: "Cancellation Rebuttal", name: "cancellation_rebuttal", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.cancellation_rebuttal, inputHandler: this.inputHandler, errorText: this.errors.cancellation_rebuttal })), h("div", { key: '3cb3371c1d3727e55140ea60a0cff96bc0f42702', class: "col-12" }, h("form-control-file-v2", { key: '738a456bf4653240180963fa7e5ab20a7a4add7c', label: "Upload Cancellation Policy", name: "cancellation_policy", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.cancellation_policy })))));
145
143
  }
146
144
  };
147
145
 
@@ -157,21 +155,15 @@ const CustomerDetails = class {
157
155
  this.inputHandler = (name, value) => {
158
156
  this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
159
157
  };
160
- this.handleFileSelection = (e) => {
161
- const target = e.target;
162
- const name = target.name;
163
- const files = target.files;
164
- for (const file of files) {
165
- this.documentList.push(new DisputeEvidenceDocument(file, name));
166
- }
167
- };
168
158
  this.disputeResponse = undefined;
159
+ this.documentErrors = {};
169
160
  this.form = undefined;
170
161
  this.errors = {};
171
- this.documentList = [];
162
+ this.documents = { customer_signature: [], customer_communication: [] };
172
163
  }
173
164
  async validateAndSubmit(onSuccess) {
174
- this.form.validateAndSubmit((formData) => onSuccess(formData, this.documentList, DisputeResponseFormStep.customerDetails));
165
+ const documentList = Object.values(this.documents).flat();
166
+ this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.customerDetails));
175
167
  }
176
168
  ;
177
169
  componentWillLoad() {
@@ -183,8 +175,8 @@ const CustomerDetails = class {
183
175
  });
184
176
  }
185
177
  render() {
186
- var _a, _b, _c;
187
- return (h("div", { key: '7c8bb0293eee2006e4e8e7aa65a692b3ce211c43' }, h("div", { key: '677de6f4bbf636dbbba97f5a188b076985fc6f0a', class: "row gy-3" }, h("div", { key: 'b1044548517ab9bc2f8a873965e1f81fd98a6216', class: "col-12" }, h("h2", { key: 'e3c6706441eee0adbfdf540528511353686d1fb9', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '2e5e5eda8c07941358a02430aa06bcd4ce13a5ca', class: "col-12" }, h("form-control-text", { key: '6271fd7c5def3e501501f5a8af00bcbc77b5e67d', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), h("div", { key: '4347830601eda422e863cbdd70cf4d9862d19fb2', class: "col-12" }, h("form-control-text", { key: '4dbb512ac5a81de067d2fb9c2b9edeffda1f199b', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), h("div", { key: 'ee16ae4bd2ea9c4e3949af9705e05fd6709b7f5d', class: "col-12" }, h("form-control-textarea", { key: 'd2339c6ebc8ffbe24f68ce079f0d623f7107cf29', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), h("div", { key: 'eff1fb76a8cab96b0fba6e7b8a1aab2b6dc405e7', class: "col-12" }, h("form-control-file-v2", { key: 'ece727a3d010e0ba4741874992ed3e92d711b338', label: "Customer Signature", name: "customer_signature", onChange: this.handleFileSelection })), h("div", { key: 'b585af6033d79e16a71ff8ff9ee34176910ae109', class: "col-12" }, h("form-control-file-v2", { key: '74473ea1ac14a7efaa4a0032bea1d2c4b5ca6339', label: "Customer Communication", name: "customer_communication", onChange: this.handleFileSelection })))));
178
+ var _a, _b, _c, _d, _e;
179
+ return (h("div", { key: '70e29d650d5304522f927c15b4eb5e62e203c5e0' }, h("div", { key: 'f50422b29cb2a4f3bca911ced94dc681adb3fc41', class: "row gy-3" }, h("div", { key: 'f29816d9281ea4c4db5018d3b7edb1600569357a', class: "col-12" }, h("h2", { key: 'a2889c95c293bf0bbf97c16e4486e307ca87729c', class: "h5", part: heading5 }, "Customer Details")), h("div", { key: '9cd45719434a1740f67b73c13fd08e0fe562168e', class: "col-12" }, h("form-control-text", { key: '5a30a3aef7fbe2d3013c46e43a437724dae41213', label: "Full Name", name: "customer_name", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_name, inputHandler: this.inputHandler, errorText: this.errors.customer_name })), h("div", { key: '9812e1f9f6df949b9f15b2c3f28857db7dcf5cb7', class: "col-12" }, h("form-control-text", { key: '10b146053a399039e8dbd42c3cab53b4b55c0ec3', label: "Email", name: "customer_email_address", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.customer_email_address, inputHandler: this.inputHandler, errorText: this.errors.customer_email_address })), h("div", { key: '2742a0922a223bd60d6e3d08a55190742ecf5112', class: "col-12" }, h("form-control-textarea", { key: '41491e238c75716520d747cbf9f1bcc329a2d686', label: "Billing Address", name: "customer_billing_address", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.customer_billing_address, inputHandler: this.inputHandler, errorText: this.errors.customer_billing_address })), h("div", { key: '71074f31e565c24107b91b04d9aa16da77ba618c', class: "col-12" }, h("form-control-file-v2", { key: '17f70cf96927b01e65430e13c2d21209e9170603', label: "Customer Signature", name: "customer_signature", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_d = this.documentErrors) === null || _d === void 0 ? void 0 : _d.customer_signature })), h("div", { key: 'ec696695191e68c7ceb0cc41f99f9e53f2d59da1', class: "col-12" }, h("form-control-file-v2", { key: '562ff8b3819f536d491f2e2e55a85a55fcda0e1c', label: "Customer Communication", name: "customer_communication", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_e = this.documentErrors) === null || _e === void 0 ? void 0 : _e.customer_communication })))));
188
180
  }
189
181
  };
190
182
 
@@ -199,21 +191,15 @@ const DuplicateCharge = class {
199
191
  this.inputHandler = (name, value) => {
200
192
  this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
201
193
  };
202
- this.handleFileSelection = (e) => {
203
- const target = e.target;
204
- const name = target.name;
205
- const files = target.files;
206
- for (const file of files) {
207
- this.documentList.push(new DisputeEvidenceDocument(file, name));
208
- }
209
- };
210
194
  this.disputeResponse = undefined;
195
+ this.documentErrors = {};
211
196
  this.form = undefined;
212
197
  this.errors = {};
213
- this.documentList = [];
198
+ this.documents = { duplicate_charge_documentation: [] };
214
199
  }
215
200
  async validateAndSubmit(onSuccess) {
216
- this.form.validateAndSubmit((formData) => onSuccess(formData, this.documentList, DisputeResponseFormStep.duplicateCharge));
201
+ const documentList = Object.values(this.documents).flat();
202
+ this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.duplicateCharge));
217
203
  }
218
204
  ;
219
205
  componentWillLoad() {
@@ -225,8 +211,8 @@ const DuplicateCharge = class {
225
211
  });
226
212
  }
227
213
  render() {
228
- var _a, _b;
229
- return (h("div", { key: '3714de9262cead1d09db56792ba11b3357f54a0a' }, h("div", { key: '10d1612387d0d5085a1e98b761a59eff4fb8d9a9', class: "row gy-3" }, h("div", { key: 'b69b5b378e9104c5aa413a7099868b8376dac04c', class: "col-12" }, h("h2", { key: '39c935c74773c20de95b7f735e7efc11e1b16618', class: "h5", part: heading5 }, "Duplicate Charge")), h("div", { key: '63531ffa973de2f6948ad61091467661cd22c917', class: "col-12" }, h("form-control-text", { key: '8a1346115f3e3c1e12e6b6fc50d816829dd218f6', label: "Original Payment ID", name: "duplicate_charge_original_payment_id", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.duplicate_charge_original_payment_id, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_original_payment_id })), h("div", { key: '7f6f5ba85681e208d2c5727c1d3d6512e43df99a', class: "col-12" }, h("form-control-textarea", { key: '4265b06d5980c7bea096c001f52d80180c20fec5', label: "Duplicate Charge Explanation", name: "duplicate_charge_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.duplicate_charge_explanation, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_explanation })), h("div", { key: '9bdfeb8fd8d334de4bf51d10e76752a28d54ff55', class: "col-12" }, h("form-control-file-v2", { key: '03062c1a7e8e2dc98cc8b43394562720843d4956', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation", onChange: this.handleFileSelection })))));
214
+ var _a, _b, _c;
215
+ return (h("div", { key: '0b0d73b396b32f29fa389d3981d48c3f30f96fd7' }, h("div", { key: '2fd16a4cf964c863a59789a2be60d94b27a95de8', class: "row gy-3" }, h("div", { key: '48c15f7db3285caa9164d815615b82a84283fbfe', class: "col-12" }, h("h2", { key: '397b3026311bf57588b172146fc9822f99ede63e', class: "h5", part: heading5 }, "Duplicate Charge")), h("div", { key: 'c825b6efd428bee298b9b0ddf2265378cf999de9', class: "col-12" }, h("form-control-text", { key: 'b43283087a10826bf8e582a1e863ed4982b5c000', label: "Original Payment ID", name: "duplicate_charge_original_payment_id", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.duplicate_charge_original_payment_id, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_original_payment_id })), h("div", { key: '66d5cefa16c341f5c523eaa46de5c11f5b16e619', class: "col-12" }, h("form-control-textarea", { key: 'f83573136fc2ce108f186f9434f46a3f157bd102', label: "Duplicate Charge Explanation", name: "duplicate_charge_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.duplicate_charge_explanation, inputHandler: this.inputHandler, errorText: this.errors.duplicate_charge_explanation })), h("div", { key: 'cc47dc1d9dbac962d27494b5ff3fef572c98c7b4', class: "col-12" }, h("form-control-file-v2", { key: '3cf06b6d61edd6ac96d02b12639d040f698b2526', label: "Duplicate Charge Documentation", name: "duplicate_charge_documentation", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_c = this.documentErrors) === null || _c === void 0 ? void 0 : _c.duplicate_charge_documentation })))));
230
216
  }
231
217
  };
232
218
 
@@ -237,24 +223,18 @@ const ElectronicEvidenceSchema = create$3({
237
223
  const ElectronicEvidence = class {
238
224
  constructor(hostRef) {
239
225
  registerInstance(this, hostRef);
240
- this.handleFileSelection = (e) => {
241
- const target = e.target;
242
- const name = target.name;
243
- const files = target.files;
244
- for (const file of files) {
245
- this.documentList.push(new DisputeEvidenceDocument(file, name));
246
- }
247
- };
248
226
  this.inputHandler = (name, value) => {
249
227
  this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
250
228
  };
251
229
  this.disputeResponse = undefined;
230
+ this.documentErrors = {};
252
231
  this.form = undefined;
253
232
  this.errors = {};
254
- this.documentList = [];
233
+ this.documents = { activity_log: [] };
255
234
  }
256
235
  async validateAndSubmit(onSuccess) {
257
- this.form.validateAndSubmit((formData) => onSuccess(formData, this.documentList, DisputeResponseFormStep.electronicEvidence));
236
+ const documentList = Object.values(this.documents).flat();
237
+ this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.electronicEvidence));
258
238
  }
259
239
  ;
260
240
  componentWillLoad() {
@@ -266,8 +246,8 @@ const ElectronicEvidence = class {
266
246
  });
267
247
  }
268
248
  render() {
269
- var _a;
270
- return (h("div", { key: 'a75975ee478e0754c38e67edd1fbf702364f23a7' }, h("div", { key: '32f60518951cd7270901c50b44acf11bde22a041', class: "row gy-3" }, h("div", { key: '8f3aed3249af4852b3ef9d35b5ad09b80947c5b3', class: "col-12" }, h("h2", { key: '7fee82b939aab2131eb573fcf3189aac8a816e7d', class: "h5", part: heading5 }, "Electronic Evidence")), h("div", { key: 'db919599078f089e70b182b44980a62588ce90cf', class: "col-12" }, h("form-control-text", { key: 'ea3e78ebe16d9def88b08910a700f01f5f5e0992', label: "Purchase IP Address", name: "customer_purchase_ip_address", helpText: "The IP address used by the customer during the purchase.", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_purchase_ip_address, inputHandler: this.inputHandler, errorText: this.errors.customer_purchase_ip_address })), h("div", { key: 'e4d03c158110ef7d10bf290b036536bc654f36ea', class: "col-12" }, h("form-control-file-v2", { key: 'a87c4d1502434b740e41e01a3ddc33d5d069557d', label: "Activity Logs", name: "activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.", onChange: this.handleFileSelection, errorText: this.errors.activity_log })))));
249
+ var _a, _b;
250
+ return (h("div", { key: '1a4a1d78529c48b8f32029a3efa05b4430c6d271' }, h("div", { key: '593d167f4e6b610ac3cdb8a04b4eee30a1cb4f91', class: "row gy-3" }, h("div", { key: '39440c3a2802b823c85f251c4393ba76bad287c0', class: "col-12" }, h("h2", { key: 'f5ec8cce1bbadb772ac6dbe668cf54187d2690d7', class: "h5", part: heading5 }, "Electronic Evidence")), h("div", { key: 'b9020a773c45a8f59a31ffef44b32253fdb4a551', class: "col-12" }, h("form-control-text", { key: '56122eafb7f138f4472a5818cddd32cb0e17fc7e', label: "Purchase IP Address", name: "customer_purchase_ip_address", helpText: "The IP address used by the customer during the purchase.", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.customer_purchase_ip_address, inputHandler: this.inputHandler, errorText: this.errors.customer_purchase_ip_address })), h("div", { key: '0737f585271838dd60ab9ee1e6ac83d0c6362b96', class: "col-12" }, h("form-control-file-v2", { key: '63590d574ee151cbf82638002dfe513cea471035', label: "Activity Logs", name: "activity_log", helpText: "Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.", onChange: (e) => fileInputHandler(e, this.documents), errorText: (_b = this.documentErrors) === null || _b === void 0 ? void 0 : _b.activity_log })))));
271
251
  }
272
252
  };
273
253
 
@@ -279,24 +259,18 @@ const ProductOrServiceSchema = create$3({
279
259
  const ProductOrService = class {
280
260
  constructor(hostRef) {
281
261
  registerInstance(this, hostRef);
282
- this.handleFileSelection = (e) => {
283
- const target = e.target;
284
- const name = target.name;
285
- const files = target.files;
286
- for (const file of files) {
287
- this.documentList.push(new DisputeEvidenceDocument(file, name));
288
- }
289
- };
290
262
  this.inputHandler = (name, value) => {
291
263
  this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
292
264
  };
293
265
  this.disputeResponse = undefined;
266
+ this.documentErrors = {};
294
267
  this.form = undefined;
295
268
  this.errors = {};
296
- this.documentList = [];
269
+ this.documents = { service_documentation: [] };
297
270
  }
298
271
  async validateAndSubmit(onSuccess) {
299
- this.form.validateAndSubmit((formData) => onSuccess(formData, this.documentList, DisputeResponseFormStep.productOrService));
272
+ const documentList = Object.values(this.documents).flat();
273
+ this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.productOrService));
300
274
  }
301
275
  ;
302
276
  componentWillLoad() {
@@ -308,8 +282,8 @@ const ProductOrService = class {
308
282
  });
309
283
  }
310
284
  render() {
311
- var _a, _b;
312
- 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 })))));
285
+ var _a, _b, _c;
286
+ 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 })))));
313
287
  }
314
288
  };
315
289
 
@@ -324,21 +298,15 @@ const RefundPolicy = class {
324
298
  this.inputHandler = (name, value) => {
325
299
  this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
326
300
  };
327
- this.handleFileSelection = (e) => {
328
- const target = e.target;
329
- const name = target.name;
330
- const files = target.files;
331
- for (const file of files) {
332
- this.documentList.push(new DisputeEvidenceDocument(file, name));
333
- }
334
- };
335
301
  this.disputeResponse = undefined;
302
+ this.documentErrors = {};
336
303
  this.form = undefined;
337
304
  this.errors = {};
338
- this.documentList = [];
305
+ this.documents = { refund_policy: [], receipt: [] };
339
306
  }
340
307
  async validateAndSubmit(onSuccess) {
341
- this.form.validateAndSubmit((formData) => onSuccess(formData, this.documentList, DisputeResponseFormStep.refundPolicy));
308
+ const documentList = Object.values(this.documents).flat();
309
+ this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.refundPolicy));
342
310
  }
343
311
  ;
344
312
  componentWillLoad() {
@@ -350,8 +318,8 @@ const RefundPolicy = class {
350
318
  });
351
319
  }
352
320
  render() {
353
- var _a, _b;
354
- 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 })))));
321
+ var _a, _b, _c, _d;
322
+ 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 })))));
355
323
  }
356
324
  };
357
325
 
@@ -368,21 +336,16 @@ const ShippingDetails = class {
368
336
  this.inputHandler = (name, value) => {
369
337
  this.form.setValues(Object.assign(Object.assign({}, this.form.values.getValue()), { [name]: value }));
370
338
  };
371
- this.handleFileSelection = (e) => {
372
- const target = e.target;
373
- const name = target.name;
374
- const files = target.files;
375
- for (const file of files) {
376
- this.documentList.push(new DisputeEvidenceDocument(file, name));
377
- }
378
- };
379
339
  this.disputeResponse = undefined;
340
+ this.documentErrors = {};
380
341
  this.form = undefined;
381
342
  this.errors = {};
343
+ this.documents = { shipping_documentation: [] };
382
344
  this.documentList = [];
383
345
  }
384
346
  async validateAndSubmit(onSuccess) {
385
- this.form.validateAndSubmit((formData) => onSuccess(formData, this.documentList, DisputeResponseFormStep.shippingDetails));
347
+ const documentList = Object.values(this.documents).flat();
348
+ this.form.validateAndSubmit((formData) => onSuccess(formData, documentList, DisputeResponseFormStep.shippingDetails));
386
349
  }
387
350
  ;
388
351
  componentWillLoad() {
@@ -394,8 +357,8 @@ const ShippingDetails = class {
394
357
  });
395
358
  }
396
359
  render() {
397
- var _a, _b, _c, _d;
398
- 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 })))));
360
+ var _a, _b, _c, _d, _e;
361
+ 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 })))));
399
362
  }
400
363
  };
401
364
 
@@ -1,17 +1,17 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-29fcfdf5.js';
2
- import { E as ErrorState } from './utils-6c26bccc.js';
2
+ import { E as ErrorState } from './utils-e7df4815.js';
3
3
  import { B as BusinessService } from './business.service-f7c3b9f7.js';
4
4
  import { m as makeGetBusiness } from './get-business-464419f6.js';
5
5
  import { C as ComponentErrorCodes, a as ComponentErrorSeverity } from './ComponentError-c61dce41.js';
6
- import { J as JustifiAnalytics } from './Analytics-759c7da5.js';
7
- import { c as checkPkgVersion } from './check-pkg-version-1d6e48c8.js';
8
- import './parts-489f0af6.js';
6
+ import { J as JustifiAnalytics } from './Analytics-d0f79dc3.js';
7
+ import { c as checkPkgVersion } from './check-pkg-version-2e9f961e.js';
8
+ import './parts-18c966b1.js';
9
9
  import './Api-391d00e2.js';
10
10
  import './Business-0855931c.js';
11
11
  import './helpers-96ea3464.js';
12
12
  import './state-options-a356fb11.js';
13
13
  import './utils-fd99b806.js';
14
- import './package-49477570.js';
14
+ import './package-b9d805ae.js';
15
15
 
16
16
  const BusinessDetails = class {
17
17
  constructor(hostRef) {
@@ -4,18 +4,18 @@ import { b as businessCoreInfoSchema, a as additionalQuestionsSchema } from './b
4
4
  import { a as addressSchema, i as identitySchema } from './business-identity-schema-0a78fc59.js';
5
5
  import { A as Api } from './Api-391d00e2.js';
6
6
  import './ComponentError-c61dce41.js';
7
- import './Checkout-919eb1ba.js';
7
+ import './Checkout-2bc873fb.js';
8
8
  import './Pagination-afc8f96d.js';
9
9
  import './Payment-82d2f453.js';
10
- import './SubAccount-9aad3891.js';
10
+ import './SubAccount-f31bdeb4.js';
11
11
  import './Document-1907c0d4.js';
12
12
  import { B as Business, a as BusinessFormServerErrors } from './Business-0855931c.js';
13
- import { J as JustifiAnalytics } from './Analytics-759c7da5.js';
14
- import { B as Button } from './button-cc455199.js';
13
+ import { J as JustifiAnalytics } from './Analytics-d0f79dc3.js';
14
+ import { B as Button } from './button-b3d07089.js';
15
15
  import { S as StyledHost } from './styled-host-32228b45.js';
16
- import { H as Header1 } from './header-1-797ca789.js';
17
- import { c as checkPkgVersion } from './check-pkg-version-1d6e48c8.js';
18
- import { S as Skeleton } from './skeleton-74fbfb68.js';
16
+ import { H as Header1 } from './header-1-649109a3.js';
17
+ import { c as checkPkgVersion } from './check-pkg-version-2e9f961e.js';
18
+ import { S as Skeleton } from './skeleton-ca37b248.js';
19
19
  import { B as BusinessFormClickActions } from './event-types-5c87de02.js';
20
20
  import './schema-validations-b1aec6a0.js';
21
21
  import './state-options-a356fb11.js';
@@ -23,8 +23,8 @@ import './business-form-options-86a13078.js';
23
23
  import './utils-c37124fc.js';
24
24
  import './Dispute-5fd28ec9.js';
25
25
  import './helpers-96ea3464.js';
26
- import './package-49477570.js';
27
- import './parts-489f0af6.js';
26
+ import './package-b9d805ae.js';
27
+ import './parts-18c966b1.js';
28
28
 
29
29
  const businessFormSchema = create$3(Object.assign(Object.assign({}, businessCoreInfoSchema().fields), { legal_address: addressSchema(), additional_questions: additionalQuestionsSchema(), representative: identitySchema('representative') }));
30
30
 
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h } from './index-29fcfdf5.js';
2
2
  import { u as updateFormValues, a as updateAddressFormValues, b as updateDateOfBirthFormValues } from './input-handlers-270ac806.js';
3
3
  import { P as PHONE_MASKS, S as SSN_MASK } from './form-input-masks-0e18300f.js';
4
- import { h as heading2 } from './parts-489f0af6.js';
4
+ import { h as heading2 } from './parts-18c966b1.js';
5
5
  import './helpers-96ea3464.js';
6
6
  import './state-options-a356fb11.js';
7
7
 
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
2
2
  import { f as formatCurrency } from './utils-c37124fc.js';
3
- import { C as Checkout } from './Checkout-919eb1ba.js';
3
+ import { C as Checkout } from './Checkout-2bc873fb.js';
4
4
  import { a as ComponentErrorSeverity } from './ComponentError-c61dce41.js';
5
- import { i as insuranceValuesOn, v as validateInsuranceValues, H as Header2, a as insuranceValues } from './insurance-state-307335d6.js';
6
- import { B as Button } from './button-cc455199.js';
5
+ import { i as insuranceValuesOn, v as validateInsuranceValues, H as Header2, a as insuranceValues } from './insurance-state-e3b48bb2.js';
6
+ import { B as Button } from './button-b3d07089.js';
7
7
  import { S as StyledHost } from './styled-host-32228b45.js';
8
- import { t as text, W as checkoutSummary } from './parts-489f0af6.js';
9
- import { S as Skeleton } from './skeleton-74fbfb68.js';
10
- import { H as Header3 } from './header-3-544afa0b.js';
8
+ import { t as text, W as checkoutSummary } from './parts-18c966b1.js';
9
+ import { S as Skeleton } from './skeleton-ca37b248.js';
10
+ import { H as Header3 } from './header-3-ca7bb57b.js';
11
11
  import './index-a47fdc7f.js';
12
12
 
13
13
  const CheckoutCore = class {
@@ -1,18 +1,18 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
2
2
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
3
3
  import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
4
- import { C as CheckoutService } from './checkout.service-bb45d248.js';
5
- import { J as JustifiAnalytics } from './Analytics-759c7da5.js';
6
- import { c as checkPkgVersion } from './check-pkg-version-1d6e48c8.js';
4
+ import { C as CheckoutService } from './checkout.service-020aaf97.js';
5
+ import { J as JustifiAnalytics } from './Analytics-d0f79dc3.js';
6
+ import { c as checkPkgVersion } from './check-pkg-version-2e9f961e.js';
7
7
  import './Api-391d00e2.js';
8
- import './Checkout-919eb1ba.js';
8
+ import './Checkout-2bc873fb.js';
9
9
  import './utils-c37124fc.js';
10
10
  import './Pagination-afc8f96d.js';
11
11
  import './Payment-82d2f453.js';
12
12
  import './Dispute-5fd28ec9.js';
13
- import './SubAccount-9aad3891.js';
13
+ import './SubAccount-f31bdeb4.js';
14
14
  import './Document-1907c0d4.js';
15
- import './package-49477570.js';
15
+ import './package-b9d805ae.js';
16
16
 
17
17
  const makeGetCheckout = ({ authToken, checkoutId, service }) => async ({ onSuccess, onError }) => {
18
18
  var _a;
@@ -1,12 +1,12 @@
1
1
  import { r as registerInstance, h } from './index-29fcfdf5.js';
2
2
  import './ComponentError-c61dce41.js';
3
- import { I as ICheckoutStatus, a as ICheckoutPaymentMode } from './Checkout-919eb1ba.js';
3
+ import { I as ICheckoutStatus, a as ICheckoutPaymentModeParam } from './Checkout-2bc873fb.js';
4
4
  import './Pagination-afc8f96d.js';
5
5
  import './Payment-82d2f453.js';
6
- import './SubAccount-9aad3891.js';
6
+ import './SubAccount-f31bdeb4.js';
7
7
  import './Document-1907c0d4.js';
8
8
  import { f as filterParams, p as propsParams, c as clearParams } from './checkouts-list-params-state-7bdf00bd.js';
9
- import { y as checkoutsListFilterMenu, z as statusCheckoutsListFilterParam, A as paymentModeCheckoutsListFilterParam } from './parts-489f0af6.js';
9
+ import { y as checkoutsListFilterMenu, z as statusCheckoutsListFilterParam, A as paymentModeCheckoutsListFilterParam } from './parts-18c966b1.js';
10
10
  import { S as StyledHost } from './styled-host-32228b45.js';
11
11
  import './utils-c37124fc.js';
12
12
  import './Dispute-5fd28ec9.js';
@@ -44,13 +44,13 @@ const CheckoutsListFilters = class {
44
44
  get checkoutPaymentModeOptions() {
45
45
  return [
46
46
  { label: 'All', value: '' },
47
- { label: 'E-commerce', value: ICheckoutPaymentMode.ecom },
48
- { label: 'BNPL', value: ICheckoutPaymentMode.bnpl },
47
+ { label: 'E-commerce', value: ICheckoutPaymentModeParam.ecom },
48
+ { label: 'BNPL', value: ICheckoutPaymentModeParam.bnpl },
49
49
  ];
50
50
  }
51
51
  render() {
52
52
  const filterMenuParams = Object.assign({}, filterParams);
53
- return (h(StyledHost, { key: 'cd70cc85372ea03d544340c36de1bc559cce757d' }, h("table-filters-menu", { key: '332fbf23bcf5e542aa3439b93bcfe046889b89b0', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: 'a95f24fa9b92cd35e0dd15a7fc5cafb2cca84c9f', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'd58366e790b1bb2fb3aa8605a806a8197ea4f5c9', class: "p-2" }, h("form-control-select", { key: '1e48969ede334298a5d058f22bf5b1e39c78f535', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status, disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '33d8d552c77a6355423e9252779f85b288e123d1', class: "p-2" }, h("form-control-select", { key: 'a1ae23979fb00d92a9a1c7972c375494cabde720', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode, disabled: !!this.paymentMode, part: paymentModeCheckoutsListFilterParam }))))));
53
+ return (h(StyledHost, { key: 'bcae6fee83117dde40a29ebcab8e85089bcdc37e' }, h("table-filters-menu", { key: '56c6a5d205836fe010917f0f0d978507cf227a3f', params: filterMenuParams, clearParams: clearParams, part: checkoutsListFilterMenu }, h("div", { key: 'c82691f9b863368a2b7523dc7d9d348c3fe2e776', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '9abbb01e53139ebd376a638400b199d88288b175', class: "p-2" }, h("form-control-select", { key: '3859777cf1f4ee451a65440a90dfe9e5f4a2f069', name: "status", label: "Status", options: this.checkoutStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.checkoutStatus || filterParams.status, disabled: !!this.checkoutStatus, part: statusCheckoutsListFilterParam })), h("div", { key: '3c23d4b820ea2424d6ddc01e6952c8c46cd7d975', class: "p-2" }, h("form-control-select", { key: 'c376228f82419b959b3fefa6b32d25c584c6ea3b', name: "payment_mode", label: "Payment Mode", options: this.checkoutPaymentModeOptions, inputHandler: this.setParamsOnChange, defaultValue: this.paymentMode || filterParams.payment_mode, disabled: !!this.paymentMode, part: paymentModeCheckoutsListFilterParam }))))));
54
54
  }
55
55
  };
56
56
 
@@ -1,23 +1,23 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-29fcfdf5.js';
2
2
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError-c61dce41.js';
3
- import { C as Checkout } from './Checkout-919eb1ba.js';
3
+ import { C as Checkout } from './Checkout-2bc873fb.js';
4
4
  import './Pagination-afc8f96d.js';
5
5
  import './Payment-82d2f453.js';
6
- import './SubAccount-9aad3891.js';
6
+ import './SubAccount-f31bdeb4.js';
7
7
  import './Document-1907c0d4.js';
8
8
  import { g as getErrorMessage, a as getErrorCode } from './utils-fd99b806.js';
9
- import { c as checkPkgVersion } from './check-pkg-version-1d6e48c8.js';
10
- import { J as JustifiAnalytics } from './Analytics-759c7da5.js';
11
- import { C as CheckoutService } from './checkout.service-bb45d248.js';
12
- import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-3af0844a.js';
9
+ import { c as checkPkgVersion } from './check-pkg-version-2e9f961e.js';
10
+ import { J as JustifiAnalytics } from './Analytics-d0f79dc3.js';
11
+ import { C as CheckoutService } from './checkout.service-020aaf97.js';
12
+ import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts-212c162d.js';
13
13
  import { S as StyledHost } from './styled-host-32228b45.js';
14
- import { d as defaultColumnsKeys } from './checkouts-table-53981285.js';
14
+ import { d as defaultColumnsKeys } from './checkouts-table-974c57ba.js';
15
15
  import './utils-c37124fc.js';
16
16
  import './Dispute-5fd28ec9.js';
17
- import './package-49477570.js';
17
+ import './package-b9d805ae.js';
18
18
  import './Api-391d00e2.js';
19
- import './badge-2eb79416.js';
20
- import './parts-489f0af6.js';
19
+ import './badge-7768a2b1.js';
20
+ import './parts-18c966b1.js';
21
21
 
22
22
  const makeGetCheckouts = ({ accountId, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError }) => {
23
23
  var _a, _b;
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-29fcfdf5.js';
2
- import { E as ErrorState } from './utils-6c26bccc.js';
3
- import './parts-489f0af6.js';
2
+ import { E as ErrorState } from './utils-e7df4815.js';
3
+ import './parts-18c966b1.js';
4
4
 
5
5
  const Details = class {
6
6
  constructor(hostRef) {