@justifi/webcomponents 5.3.5 → 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 (415) hide show
  1. package/dist/cjs/{SubAccount-f9069337.js → SubAccount-df3d28dc.js} +3 -3
  2. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  3. package/dist/cjs/{badge-6abf6ed3.js → badge-79e56b99.js} +1 -1
  4. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +6 -6
  5. package/dist/cjs/bank-account-form_9.cjs.entry.js +4 -4
  6. package/dist/cjs/billing-form_3.cjs.entry.js +6 -6
  7. package/dist/cjs/business-details-core.cjs.entry.js +3 -3
  8. package/dist/cjs/{button-aed2ce1a.js → button-797bb3cc.js} +1 -1
  9. package/dist/cjs/{Analytics-e91a5523.js → check-pkg-version-1f8b660c.js} +21 -1
  10. package/dist/cjs/{checkout.service-0643396e.js → checkout.service-c01e2cd7.js} +1 -1
  11. package/dist/cjs/checkouts-list-core.cjs.entry.js +8 -9
  12. package/dist/cjs/{checkouts-table-f88ad3c8.js → checkouts-table-61543249.js} +2 -2
  13. package/dist/cjs/custom-popper.cjs.entry.js +2 -2
  14. package/dist/cjs/{dispute.service-53c80520.js → dispute.service-399de502.js} +1 -1
  15. package/dist/cjs/{table-ad35ff09.js → event-types-666f1f22.js} +9 -2
  16. package/dist/cjs/form-alert_5.cjs.entry.js +1 -1
  17. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  18. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  19. package/dist/cjs/{form-control-error-text-74fb8498.js → form-control-error-text-b782cdd0.js} +1 -1
  20. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  21. package/dist/cjs/{form-control-help-text-3cffd918.js → form-control-help-text-ca3c8155.js} +1 -1
  22. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  23. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
  24. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  25. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  26. package/dist/cjs/form-control-select_3.cjs.entry.js +4 -4
  27. package/dist/cjs/{get-payout-csv-bdd7d9c0.js → get-payout-csv-11a983a0.js} +1 -1
  28. package/dist/cjs/{get-subaccounts-40c4a0b6.js → get-subaccounts-224f9497.js} +1 -1
  29. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -3
  30. package/dist/cjs/{header-1-cc98bae2.js → header-1-ff669f3f.js} +1 -1
  31. package/dist/cjs/{header-3-05ce2ad0.js → header-3-f6642390.js} +1 -1
  32. package/dist/cjs/{insurance-state-211cd636.js → insurance-state-66c9bea7.js} +1 -1
  33. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +4 -4
  34. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +3 -3
  35. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +1 -1
  36. package/dist/cjs/justifi-business-details.cjs.entry.js +5 -6
  37. package/dist/cjs/justifi-business-form.cjs.entry.js +8 -9
  38. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  39. package/dist/cjs/justifi-checkout-core.cjs.entry.js +5 -5
  40. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -7
  41. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -2
  42. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +9 -10
  43. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  44. package/dist/cjs/justifi-dispute-management.cjs.entry.js +5 -6
  45. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +8 -9
  46. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -6
  47. package/dist/cjs/justifi-order-terminals.cjs.entry.js +106 -53
  48. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +2 -2
  49. package/dist/cjs/justifi-payment-details.cjs.entry.js +7 -8
  50. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +4 -4
  51. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +3 -4
  52. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
  53. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -11
  54. package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -8
  55. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
  56. package/dist/cjs/justifi-payouts-list.cjs.entry.js +11 -12
  57. package/dist/cjs/justifi-refund-form.cjs.entry.js +2 -2
  58. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
  59. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +4 -5
  60. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +78 -14
  61. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
  62. package/dist/cjs/justifi-terminals-list.cjs.entry.js +10 -11
  63. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +8 -9
  64. package/dist/cjs/loader.cjs.js +1 -1
  65. package/dist/cjs/{package-82b16c28.js → package-d34fcfa5.js} +1 -1
  66. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  67. package/dist/cjs/{parts-63f60e81.js → parts-1fb925c2.js} +0 -5
  68. package/dist/cjs/payment-details-core.cjs.entry.js +12 -12
  69. package/dist/cjs/{payment.service-23b0dcb8.js → payment.service-f369b33c.js} +1 -1
  70. package/dist/cjs/payments-list-core.cjs.entry.js +9 -10
  71. package/dist/cjs/{payments-status-b9192db7.js → payments-status-ffdc54ff.js} +1 -1
  72. package/dist/cjs/{payments-table-dba2f145.js → payments-table-98b4e5e3.js} +2 -2
  73. package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
  74. package/dist/cjs/payouts-list-core.cjs.entry.js +9 -10
  75. package/dist/cjs/{payouts-status-385a794d.js → payouts-status-64fd0c68.js} +1 -1
  76. package/dist/cjs/{payouts-table-8cd537de.js → payouts-table-ecfb826b.js} +2 -2
  77. package/dist/cjs/{skeleton-65afa2f5.js → skeleton-2ae76f16.js} +1 -1
  78. package/dist/cjs/{spinner-a95e9b8d.js → spinner-15764f3c.js} +1 -1
  79. package/dist/cjs/table-filters-menu.cjs.entry.js +2 -2
  80. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +31 -64
  81. package/dist/cjs/{terminal-orders-table-8baa5461.js → terminal-orders-table-f1bed365.js} +8 -3
  82. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  83. package/dist/cjs/{terminal.service-2f41898f.js → terminal.service-4fd34835.js} +6 -1
  84. package/dist/cjs/terminals-list-core.cjs.entry.js +8 -9
  85. package/dist/cjs/{terminals-table-c4c01dc3.js → terminals-table-30298ce4.js} +2 -2
  86. package/dist/cjs/{utils-f752bd45.js → utils-3e3b8061.js} +1 -1
  87. package/dist/cjs/webcomponents.cjs.js +1 -1
  88. package/dist/collection/actions/terminal/get-terminal-orders.js +34 -0
  89. package/dist/collection/actions/terminal/order-terminals.js +29 -0
  90. package/dist/collection/api/TerminalOrder.js +2 -2
  91. package/dist/collection/api/services/terminal.service.js +5 -0
  92. package/dist/collection/api/services/terminal_orders.service.js +9 -0
  93. package/dist/collection/collection-manifest.json +1 -1
  94. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +2 -2
  95. package/dist/collection/components/order-terminals/order-terminals-loading.js +1 -1
  96. package/dist/collection/components/order-terminals/order-terminals.js +109 -48
  97. package/dist/collection/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector-loading.js +1 -1
  98. package/dist/collection/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector.js +4 -4
  99. package/dist/collection/components/payment-details/payment-details-core.js +7 -7
  100. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  101. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  102. package/dist/collection/components/payments-list/payments-list.js +1 -1
  103. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  104. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  105. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  106. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  107. package/dist/collection/components/refund-form/refund-form.js +1 -1
  108. package/dist/collection/components/terminal-orders-list/terminal-order-status.js +6 -1
  109. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +54 -9
  110. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +52 -11
  111. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  112. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  113. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  114. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +1 -1
  115. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  116. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  117. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  118. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  119. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  120. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  121. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  122. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  123. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  124. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  125. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  126. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  127. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  128. package/dist/docs.json +106 -18
  129. package/dist/esm/{SubAccount-f31bdeb4.js → SubAccount-dbd4e50c.js} +2 -2
  130. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  131. package/dist/esm/{badge-7768a2b1.js → badge-6f5acf30.js} +1 -1
  132. package/dist/esm/bank-account-document-form-inputs_4.entry.js +6 -6
  133. package/dist/esm/bank-account-form_9.entry.js +4 -4
  134. package/dist/esm/billing-form_3.entry.js +6 -6
  135. package/dist/esm/business-details-core.entry.js +3 -3
  136. package/dist/esm/{button-b3d07089.js → button-79dcea75.js} +1 -1
  137. package/dist/esm/{Analytics-d0f79dc3.js → check-pkg-version-8e7e585e.js} +21 -2
  138. package/dist/esm/{checkout.service-020aaf97.js → checkout.service-382a16ec.js} +1 -1
  139. package/dist/esm/checkouts-list-core.entry.js +6 -7
  140. package/dist/esm/{checkouts-table-974c57ba.js → checkouts-table-8a53cef9.js} +2 -2
  141. package/dist/esm/custom-popper.entry.js +2 -2
  142. package/dist/esm/{dispute.service-b234b5c7.js → dispute.service-97887804.js} +1 -1
  143. package/dist/esm/{table-03e4dfc0.js → event-types-82515a49.js} +10 -3
  144. package/dist/esm/form-alert_5.entry.js +1 -1
  145. package/dist/esm/form-control-checkbox.entry.js +5 -5
  146. package/dist/esm/form-control-date.entry.js +4 -4
  147. package/dist/esm/{form-control-error-text-923afdfa.js → form-control-error-text-466c252b.js} +1 -1
  148. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  149. package/dist/esm/{form-control-help-text-c7bdd493.js → form-control-help-text-242916e3.js} +1 -1
  150. package/dist/esm/form-control-monetary.entry.js +5 -5
  151. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  152. package/dist/esm/form-control-number.entry.js +5 -5
  153. package/dist/esm/form-control-radio.entry.js +3 -3
  154. package/dist/esm/form-control-select_3.entry.js +4 -4
  155. package/dist/esm/{get-payout-csv-9528b0a2.js → get-payout-csv-6826271a.js} +1 -1
  156. package/dist/esm/{get-subaccounts-212c162d.js → get-subaccounts-f21220dc.js} +1 -1
  157. package/dist/esm/gross-payment-chart-core.entry.js +3 -3
  158. package/dist/esm/{header-1-649109a3.js → header-1-b43590e5.js} +1 -1
  159. package/dist/esm/{header-3-ca7bb57b.js → header-3-b90e161e.js} +1 -1
  160. package/dist/esm/{insurance-state-e3b48bb2.js → insurance-state-9e4a3359.js} +1 -1
  161. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +4 -4
  162. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +3 -3
  163. package/dist/esm/justifi-additional-statement_8.entry.js +1 -1
  164. package/dist/esm/justifi-business-details.entry.js +4 -5
  165. package/dist/esm/justifi-business-form.entry.js +7 -8
  166. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  167. package/dist/esm/justifi-checkout-core.entry.js +5 -5
  168. package/dist/esm/justifi-checkout.entry.js +5 -6
  169. package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
  170. package/dist/esm/justifi-checkouts-list.entry.js +8 -9
  171. package/dist/esm/justifi-details.entry.js +2 -2
  172. package/dist/esm/justifi-dispute-management.entry.js +4 -5
  173. package/dist/esm/justifi-dispute-notification_3.entry.js +7 -8
  174. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -5
  175. package/dist/esm/justifi-order-terminals.entry.js +105 -52
  176. package/dist/esm/justifi-owner-form_3.entry.js +2 -2
  177. package/dist/esm/justifi-payment-details.entry.js +6 -7
  178. package/dist/esm/justifi-payment-provisioning-core.entry.js +4 -4
  179. package/dist/esm/justifi-payment-provisioning.entry.js +2 -3
  180. package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
  181. package/dist/esm/justifi-payments-list.entry.js +9 -10
  182. package/dist/esm/justifi-payout-details.entry.js +6 -7
  183. package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
  184. package/dist/esm/justifi-payouts-list.entry.js +10 -11
  185. package/dist/esm/justifi-refund-form.entry.js +2 -2
  186. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
  187. package/dist/esm/justifi-season-interruption-insurance.entry.js +3 -4
  188. package/dist/esm/justifi-terminal-orders-list.entry.js +79 -15
  189. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -3
  190. package/dist/esm/justifi-terminals-list.entry.js +9 -10
  191. package/dist/esm/justifi-tokenize-payment-method.entry.js +7 -8
  192. package/dist/esm/loader.js +1 -1
  193. package/dist/esm/{package-b9d805ae.js → package-46c7f3a6.js} +1 -1
  194. package/dist/esm/pagination-menu.entry.js +1 -1
  195. package/dist/esm/{parts-18c966b1.js → parts-2c5c609b.js} +1 -4
  196. package/dist/esm/payment-details-core.entry.js +12 -12
  197. package/dist/esm/{payment.service-81752187.js → payment.service-a8aa5be7.js} +1 -1
  198. package/dist/esm/payments-list-core.entry.js +8 -9
  199. package/dist/esm/{payments-status-f451caf6.js → payments-status-6e203ce4.js} +1 -1
  200. package/dist/esm/{payments-table-a7836555.js → payments-table-4c6093e1.js} +2 -2
  201. package/dist/esm/payout-details-core.entry.js +7 -7
  202. package/dist/esm/payouts-list-core.entry.js +8 -9
  203. package/dist/esm/{payouts-status-bfae9f42.js → payouts-status-66e830f1.js} +1 -1
  204. package/dist/esm/{payouts-table-55f1a8a3.js → payouts-table-46fbedb6.js} +2 -2
  205. package/dist/esm/{skeleton-ca37b248.js → skeleton-122648e6.js} +1 -1
  206. package/dist/esm/{spinner-30abb9b0.js → spinner-14cd9ac7.js} +1 -1
  207. package/dist/esm/table-filters-menu.entry.js +2 -2
  208. package/dist/esm/terminal-orders-list-core.entry.js +30 -63
  209. package/dist/esm/{terminal-orders-table-a340c409.js → terminal-orders-table-83b905fd.js} +8 -3
  210. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  211. package/dist/esm/{terminal.service-3c3f2c3f.js → terminal.service-20445fc1.js} +6 -1
  212. package/dist/esm/terminals-list-core.entry.js +7 -8
  213. package/dist/esm/{terminals-table-88549e54.js → terminals-table-dbbf9a99.js} +2 -2
  214. package/dist/esm/{utils-e7df4815.js → utils-4cb0d852.js} +1 -1
  215. package/dist/esm/webcomponents.js +1 -1
  216. package/dist/module/SubAccount.js +2 -2
  217. package/dist/module/check-pkg-version.js +80 -1
  218. package/dist/module/checkouts-list-core2.js +1 -2
  219. package/dist/module/custom-popper2.js +2 -2
  220. package/dist/module/dispute-response.js +1 -2
  221. package/dist/module/event-types2.js +55 -1
  222. package/dist/module/form-control-checkbox2.js +2 -2
  223. package/dist/module/form-control-date2.js +2 -2
  224. package/dist/module/form-control-file-v22.js +1 -1
  225. package/dist/module/form-control-file2.js +2 -2
  226. package/dist/module/form-control-monetary2.js +2 -2
  227. package/dist/module/form-control-number-masked2.js +2 -2
  228. package/dist/module/form-control-number.js +2 -2
  229. package/dist/module/form-control-radio2.js +2 -2
  230. package/dist/module/form-control-text2.js +2 -2
  231. package/dist/module/form-control-textarea2.js +2 -2
  232. package/dist/module/hidden-input2.js +1 -1
  233. package/dist/module/iframe-input2.js +3 -3
  234. package/dist/module/justifi-business-details.js +1 -2
  235. package/dist/module/justifi-business-form.js +1 -2
  236. package/dist/module/justifi-checkout.js +2 -3
  237. package/dist/module/justifi-checkouts-list.js +1 -2
  238. package/dist/module/justifi-dispute-management.js +1 -2
  239. package/dist/module/justifi-gross-payment-chart.js +1 -2
  240. package/dist/module/justifi-order-terminals.js +105 -51
  241. package/dist/module/justifi-payment-details.js +1 -2
  242. package/dist/module/justifi-payment-provisioning.js +1 -2
  243. package/dist/module/justifi-payments-list-filters.js +3 -3
  244. package/dist/module/justifi-payments-list.js +2 -3
  245. package/dist/module/justifi-payout-details.js +1 -2
  246. package/dist/module/justifi-payouts-list-filters.js +3 -3
  247. package/dist/module/justifi-payouts-list.js +2 -3
  248. package/dist/module/justifi-refund-form.js +1 -1
  249. package/dist/module/justifi-season-interruption-insurance.js +1 -2
  250. package/dist/module/justifi-terminal-orders-list.js +75 -12
  251. package/dist/module/justifi-terminals-list-filters.js +2 -2
  252. package/dist/module/justifi-terminals-list.js +3 -4
  253. package/dist/module/justifi-tokenize-payment-method.js +3 -4
  254. package/dist/module/package.js +1 -1
  255. package/dist/module/parts.js +1 -4
  256. package/dist/module/payment-details-core2.js +7 -7
  257. package/dist/module/payment-provisioning-core.js +2 -2
  258. package/dist/module/payments-list-core2.js +2 -3
  259. package/dist/module/payout-details-core2.js +1 -1
  260. package/dist/module/payouts-list-core2.js +2 -3
  261. package/dist/module/terminal-orders-list-core2.js +31 -59
  262. package/dist/module/terminal-quantity-selector2.js +2 -2
  263. package/dist/module/terminal.service.js +5 -0
  264. package/dist/module/terminals-list-core2.js +2 -3
  265. package/dist/types/actions/terminal/get-terminal-orders.d.ts +11 -0
  266. package/dist/types/actions/terminal/order-terminals.d.ts +8 -0
  267. package/dist/types/api/TerminalOrder.d.ts +2 -2
  268. package/dist/types/api/services/terminal.service.d.ts +2 -0
  269. package/dist/types/api/services/terminal_orders.service.d.ts +7 -0
  270. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +0 -1
  271. package/dist/types/components/order-terminals/order-terminals.d.ts +20 -3
  272. package/dist/types/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector.d.ts +2 -2
  273. package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +3 -2
  274. package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +8 -2
  275. package/dist/types/components.d.ts +28 -6
  276. package/dist/webcomponents/{p-1e3cc191.entry.js → p-0137575f.entry.js} +1 -1
  277. package/dist/webcomponents/{p-4a580682.entry.js → p-030a8806.entry.js} +1 -1
  278. package/dist/webcomponents/p-039a09b8.entry.js +1 -0
  279. package/dist/webcomponents/{p-dd535097.js → p-046ecd01.js} +1 -1
  280. package/dist/webcomponents/{p-3744006f.js → p-087758d3.js} +1 -1
  281. package/dist/webcomponents/{p-adf30888.entry.js → p-0a60d356.entry.js} +1 -1
  282. package/dist/webcomponents/p-0ba77d53.entry.js +1 -0
  283. package/dist/webcomponents/p-0c22225c.entry.js +1 -0
  284. package/dist/webcomponents/{p-566883fb.entry.js → p-0cefd846.entry.js} +1 -1
  285. package/dist/webcomponents/{p-ec3f9d80.entry.js → p-10a14943.entry.js} +1 -1
  286. package/dist/webcomponents/p-10e32428.entry.js +1 -0
  287. package/dist/webcomponents/p-1705af62.js +1 -0
  288. package/dist/webcomponents/{p-0ef25316.entry.js → p-19b8c3c8.entry.js} +1 -1
  289. package/dist/webcomponents/{p-7d43c1d6.entry.js → p-1a48d917.entry.js} +1 -1
  290. package/dist/webcomponents/{p-913d51b9.js → p-1e300d41.js} +1 -1
  291. package/dist/webcomponents/p-2027145a.entry.js +1 -0
  292. package/dist/webcomponents/p-222fa126.entry.js +1 -0
  293. package/dist/webcomponents/{p-6501cb6e.entry.js → p-33a17e80.entry.js} +1 -1
  294. package/dist/webcomponents/p-34e18d17.entry.js +1 -0
  295. package/dist/webcomponents/{p-54502491.entry.js → p-36edba41.entry.js} +1 -1
  296. package/dist/webcomponents/{p-4c4a2c48.js → p-3732aa87.js} +1 -1
  297. package/dist/webcomponents/p-382ab4e8.js +1 -0
  298. package/dist/webcomponents/p-3947a309.entry.js +1 -0
  299. package/dist/webcomponents/p-3cbdca1b.js +1 -0
  300. package/dist/webcomponents/{p-b075211e.entry.js → p-4d5c553d.entry.js} +1 -1
  301. package/dist/webcomponents/{p-b40bcf59.js → p-547b51e9.js} +1 -1
  302. package/dist/webcomponents/p-5ee67fad.js +1 -0
  303. package/dist/webcomponents/p-5efe9572.entry.js +1 -0
  304. package/dist/webcomponents/p-638b91ff.entry.js +1 -0
  305. package/dist/webcomponents/{p-7dc34297.entry.js → p-685c7028.entry.js} +1 -1
  306. package/dist/webcomponents/{p-9ffed802.js → p-694078d2.js} +1 -1
  307. package/dist/webcomponents/p-69ac2640.entry.js +1 -0
  308. package/dist/webcomponents/p-6a2d6298.entry.js +1 -0
  309. package/dist/webcomponents/{p-0a271654.entry.js → p-6ef3de11.entry.js} +1 -1
  310. package/dist/webcomponents/p-71897cbc.js +1 -0
  311. package/dist/webcomponents/{p-1a9d60b1.entry.js → p-759f25a1.entry.js} +1 -1
  312. package/dist/webcomponents/p-7dc9fb75.js +1 -0
  313. package/dist/webcomponents/{p-c1af1fdb.entry.js → p-7e93eac9.entry.js} +1 -1
  314. package/dist/webcomponents/p-7ed52fbc.entry.js +1 -0
  315. package/dist/webcomponents/{p-77245638.js → p-8066b866.js} +1 -1
  316. package/dist/webcomponents/p-830f0971.entry.js +1 -0
  317. package/dist/webcomponents/{p-d37d20ca.entry.js → p-833ef79e.entry.js} +1 -1
  318. package/dist/webcomponents/p-8971f9da.entry.js +1 -0
  319. package/dist/webcomponents/p-8c461ebc.entry.js +1 -0
  320. package/dist/webcomponents/p-8fad4359.entry.js +1 -0
  321. package/dist/webcomponents/{p-69ae193c.js → p-9dc9aaba.js} +1 -1
  322. package/dist/webcomponents/{p-8548d8de.js → p-9f1a3199.js} +1 -1
  323. package/dist/webcomponents/{p-f48dd1ef.entry.js → p-a07afdcc.entry.js} +1 -1
  324. package/dist/webcomponents/p-a173ccd5.entry.js +1 -0
  325. package/dist/webcomponents/p-a3d75257.js +1 -0
  326. package/dist/webcomponents/p-a957612b.entry.js +1 -0
  327. package/dist/webcomponents/p-aa21cdb1.entry.js +1 -0
  328. package/dist/webcomponents/p-aa923138.entry.js +1 -0
  329. package/dist/webcomponents/p-ad473d5c.entry.js +1 -0
  330. package/dist/webcomponents/p-b11468b5.entry.js +1 -0
  331. package/dist/webcomponents/{p-d019b800.js → p-b5addd78.js} +1 -1
  332. package/dist/webcomponents/p-b62403c2.entry.js +1 -0
  333. package/dist/webcomponents/{p-6776df16.js → p-b69beb1c.js} +1 -1
  334. package/dist/webcomponents/p-b76f755a.entry.js +1 -0
  335. package/dist/webcomponents/{p-834c12a0.entry.js → p-b8ee505d.entry.js} +1 -1
  336. package/dist/webcomponents/p-b92aac9b.entry.js +1 -0
  337. package/dist/webcomponents/{p-420d6572.entry.js → p-b92f125b.entry.js} +1 -1
  338. package/dist/webcomponents/{p-57ddf983.entry.js → p-bd2340f7.entry.js} +1 -1
  339. package/dist/webcomponents/{p-121e9167.entry.js → p-bd2d9d29.entry.js} +1 -1
  340. package/dist/webcomponents/p-bdf0ab42.js +1 -0
  341. package/dist/webcomponents/{p-f1580c62.js → p-c406c0fa.js} +1 -1
  342. package/dist/webcomponents/{p-808f61aa.js → p-c54f54ed.js} +1 -1
  343. package/dist/webcomponents/p-c5cc443e.entry.js +1 -0
  344. package/dist/webcomponents/p-cd68707b.entry.js +1 -0
  345. package/dist/webcomponents/p-d5a481e4.entry.js +1 -0
  346. package/dist/webcomponents/p-e366ef1e.js +1 -0
  347. package/dist/webcomponents/p-e400e31f.entry.js +1 -0
  348. package/dist/webcomponents/{p-49fc12b2.entry.js → p-e4514af8.entry.js} +1 -1
  349. package/dist/webcomponents/{p-66cdd475.js → p-e60867c6.js} +1 -1
  350. package/dist/webcomponents/{p-4014d084.entry.js → p-e754d8e7.entry.js} +1 -1
  351. package/dist/webcomponents/p-eb05bd1e.entry.js +1 -0
  352. package/dist/webcomponents/p-ede13cc8.js +1 -0
  353. package/dist/webcomponents/{p-ca19fd2e.js → p-ee9d433f.js} +1 -1
  354. package/dist/webcomponents/{p-29988e8f.entry.js → p-f04dbd80.entry.js} +1 -1
  355. package/dist/webcomponents/p-f2111e68.js +1 -0
  356. package/dist/webcomponents/p-f3061f2a.entry.js +1 -0
  357. package/dist/webcomponents/{p-930e2e05.js → p-fa987dcf.js} +1 -1
  358. package/dist/webcomponents/{p-348fc9b1.js → p-fae67ab3.js} +1 -1
  359. package/dist/webcomponents/p-fd4607f9.entry.js +1 -0
  360. package/dist/webcomponents/{p-ffbd95d0.entry.js → p-ffd0c24b.entry.js} +1 -1
  361. package/dist/webcomponents/webcomponents.esm.js +1 -1
  362. package/package.json +1 -1
  363. package/dist/cjs/check-pkg-version-d19c6fdb.js +0 -24
  364. package/dist/cjs/event-types-b6d34593.js +0 -8
  365. package/dist/esm/check-pkg-version-2e9f961e.js +0 -22
  366. package/dist/esm/event-types-0a83d0b4.js +0 -8
  367. package/dist/module/Analytics.js +0 -82
  368. package/dist/module/table.js +0 -55
  369. package/dist/webcomponents/p-0ef50c81.js +0 -1
  370. package/dist/webcomponents/p-0f85fde5.entry.js +0 -1
  371. package/dist/webcomponents/p-0faaae79.entry.js +0 -1
  372. package/dist/webcomponents/p-140836f1.entry.js +0 -1
  373. package/dist/webcomponents/p-1d019dda.entry.js +0 -1
  374. package/dist/webcomponents/p-1f99a902.js +0 -1
  375. package/dist/webcomponents/p-1fcde0de.entry.js +0 -1
  376. package/dist/webcomponents/p-229c841e.entry.js +0 -1
  377. package/dist/webcomponents/p-2481c1d3.entry.js +0 -1
  378. package/dist/webcomponents/p-31507b3a.entry.js +0 -1
  379. package/dist/webcomponents/p-36060c36.entry.js +0 -1
  380. package/dist/webcomponents/p-418ab812.entry.js +0 -1
  381. package/dist/webcomponents/p-45bed1b7.js +0 -1
  382. package/dist/webcomponents/p-4bb0d6fd.js +0 -1
  383. package/dist/webcomponents/p-4f9a2f1f.js +0 -1
  384. package/dist/webcomponents/p-55a6599a.entry.js +0 -1
  385. package/dist/webcomponents/p-5bf5f7d7.entry.js +0 -1
  386. package/dist/webcomponents/p-5dc767d8.js +0 -1
  387. package/dist/webcomponents/p-6815a6cb.entry.js +0 -1
  388. package/dist/webcomponents/p-76d1036b.entry.js +0 -1
  389. package/dist/webcomponents/p-77e3ed67.js +0 -1
  390. package/dist/webcomponents/p-7e4c84f7.entry.js +0 -1
  391. package/dist/webcomponents/p-867e34b8.entry.js +0 -1
  392. package/dist/webcomponents/p-8a3f1a56.entry.js +0 -1
  393. package/dist/webcomponents/p-8a9debac.entry.js +0 -1
  394. package/dist/webcomponents/p-8b3842ce.js +0 -1
  395. package/dist/webcomponents/p-96a491aa.js +0 -1
  396. package/dist/webcomponents/p-9a6eacd0.entry.js +0 -1
  397. package/dist/webcomponents/p-9d8cf927.entry.js +0 -1
  398. package/dist/webcomponents/p-b0335a17.entry.js +0 -1
  399. package/dist/webcomponents/p-b7a407fb.entry.js +0 -1
  400. package/dist/webcomponents/p-b894423f.js +0 -1
  401. package/dist/webcomponents/p-bc6e3e59.entry.js +0 -1
  402. package/dist/webcomponents/p-bc73a554.entry.js +0 -1
  403. package/dist/webcomponents/p-c17af2a4.entry.js +0 -1
  404. package/dist/webcomponents/p-ca55be58.js +0 -1
  405. package/dist/webcomponents/p-d979d9ea.entry.js +0 -1
  406. package/dist/webcomponents/p-d981a599.entry.js +0 -1
  407. package/dist/webcomponents/p-da415c08.entry.js +0 -1
  408. package/dist/webcomponents/p-e0befd51.js +0 -1
  409. package/dist/webcomponents/p-e7d2eba7.entry.js +0 -1
  410. package/dist/webcomponents/p-e895bc2a.entry.js +0 -1
  411. package/dist/webcomponents/p-ee991c9e.entry.js +0 -1
  412. package/dist/webcomponents/p-fe0399a1.js +0 -1
  413. package/dist/webcomponents/p-fe439eb2.entry.js +0 -1
  414. package/dist/webcomponents/p-fe8be5fa.entry.js +0 -1
  415. /package/dist/types/components/{terminal-quantity-selector → order-terminals/terminal-quantity-selector}/terminal-quantity-selector-loading.d.ts +0 -0
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-2783e363.js";import"./p-9dd8685c.js";import"./p-daf0303f.js";import{p as i}from"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-e0befd51.js";import"./p-61f0a2ce.js";import{Q as a,R as r}from"./p-8b3842ce.js";import{T as c,a as h,b as o,c as d}from"./p-b894423f.js";import{t as n,a as p}from"./p-8548d8de.js";import{o as b,g as f}from"./p-f4739d31.js";import{T as m}from"./p-1f99a902.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";import"./p-4bb0d6fd.js";import"./p-d019b800.js";import"./p-f20b6ce1.js";const l=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:m.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:m.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:m.row,data:e})},this.getTerminals=void 0,this.getSubAccounts=void 0,this.columns=void 0,this.terminals=[],this.terminalsTable=void 0,this.subAccounts=[],this.loading=!0,this.errorMessage=void 0,this.paging=i,this.pagingParams={}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new c(this.terminals,this.columns,n,p),this.getTerminals&&this.getSubAccounts&&this.fetchData(),b("set",(()=>{this.pagingParams={}})),b("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:s})=>{this.terminals=t,this.paging=s,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get terminalParams(){const t=f();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e("div",{key:"d700224838a23855b9cce179c23d40da07fd37ce"},e("div",{key:"0a03d361d4482342edc5db06209f87a83735791f",class:"table-wrapper"},e("table",{key:"690d3b7ea58065281171e005252d4969f6284719",class:"table table-hover",part:a},e("thead",{key:"c92fc6c7514afc995e0d4e148d715b69c96118cd",class:"table-head sticky-top"},e("tr",{key:"bfeff664d29eac8f52e12adf40841b74711e9de2",class:"table-light text-nowrap"},this.terminalsTable.columnData.map((t=>t)))),e("tbody",{key:"0e8c69e12b8a64020e1b10af92ce05f7e1864d28",class:"table-body"},e(h,{key:"3fef62d6146938773a52c88f178438004d46f1eb",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(o,{key:"caec9eb5131fd8037e5cdccaf6c29d2f7f91ed7e",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(d,{key:"bd597887c2441bc070ff8ca9ec8d03564e62b9eb",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((t,s)=>e("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e("tfoot",{key:"ec61caec8ae1de6f106221f21827a89dfcad5b05",class:"sticky-bottom"},e("tr",{key:"e99c4133f365a7fefdc18d4a8bae9ac67b877fbd",class:"table-light align-middle"},e("td",{key:"ed22056d675baa32eef0bcc7fd2a4ae659d563aa",part:r,colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"8dffd0065bb7d74b43d2a56a5c0356d84301e58b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{l as terminals_list_core}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-2783e363.js";import{s as e}from"./p-8b3842ce.js";const s=({component:s="div",height:o,width:r,className:i,styles:a={}})=>{const c=Object.assign(Object.assign({},a),{width:r,height:o});return t(s,{class:`${i} skeleton`,style:c,part:e,"aria-hidden":"true"})};export{s as S}
@@ -1 +0,0 @@
1
- import{r as s,c as i,h as t,H as o}from"./p-2783e363.js";import{E as r}from"./p-b40bcf59.js";import{B as e}from"./p-b4ed5a2c.js";import{m as p}from"./p-f30cb232.js";import{C as a,a as d}from"./p-9dd8685c.js";import{J as h}from"./p-ca19fd2e.js";import{c as m}from"./p-0ef50c81.js";import"./p-8b3842ce.js";import"./p-0e180654.js";import"./p-5d1d2fd7.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-87f8c596.js";import"./p-dd535097.js";const n=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event",7),this.businessId=void 0,this.authToken=void 0,this.errorMessage=void 0,this.getBusiness=void 0}componentWillLoad(){m(),this.analytics=new h(this),this.initializeGetBusiness()}disconnectedCallback(){this.analytics.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:a.MISSING_PROPS,message:this.errorMessage,severity:d.ERROR});this.getBusiness=p({id:this.businessId,authToken:this.authToken,service:new e})}render(){return t(o,null,this.errorMessage?r(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness}))}};export{n as justifi_business_details}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s}from"./p-2783e363.js";import{f as i}from"./p-2ca5b5e4.js";import{t as a,B as r}from"./p-8b3842ce.js";import{B as d}from"./p-66cdd475.js";import{S as o}from"./p-bfe9748b.js";import{S as c}from"./p-fe0399a1.js";import{a as n,C as h}from"./p-9dd8685c.js";import{g as p,a as f}from"./p-87f8c596.js";import{D as l}from"./p-9ffed802.js";import{D as u}from"./p-667ebd79.js";import{c as b}from"./p-0ef50c81.js";import{J as y}from"./p-ca19fd2e.js";import"./p-0e180654.js";import"./p-daf0303f.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-abdbcd8e.js";import"./p-e0befd51.js";import"./p-61f0a2ce.js";import"./p-dd535097.js";const v=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=(()=>{})})=>{var o;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:p(d.error),code:f(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR})}a(d)}catch(e){const t=f(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},m=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.submitEvent=t(this,"submit-event",7),this.dispute=void 0,this.authToken=void 0,this.isLoading=void 0}acceptDispute(){v({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}render(){var e,t,n,h,p,f,l;return s(o,{key:"77119b1227200909f4742e24df0a45e1f631c65c"},this.isLoading&&s("div",{key:"f0766ff057fb2f4b75b34c7d4a386bde43e49652",style:{marginBottom:"8px"}},s(c,{key:"d7268194dea5ac2a3b87aea8e17573b4768e308f",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(c,{key:"f8863e45a917f56be302ca1b0b3d472119f6465c",height:"18px",styles:{marginBottom:"8px"}}),s(c,{key:"c7b8c9c89d9488eea3be8ea0b4536f98a8151487",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"875fe7def317ce1c4547e04e83baf2b232209058",part:a},s("h1",{key:"09646afc2aac3bf4ef9737bc12442660bbafb2dd",class:"h4",part:r},"This payment is disputed"),s("p",{key:"14224cffb16726eaa589118be954e0f844ffaee8"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"415028b91872a2391796872fdffdbee837a2a511",class:"h5"},"Dispute details"),s("div",{key:"c2b8c6be3132f98eb8c686ab88a5a6a68f92a60e",class:"d-table gap-2"},s("div",{key:"d11bd8b3bc680183e8bee40281cc2c294aedbd5a",class:"d-table-row gap-2"},s("span",{key:"d77796c0d2764329c3b482ae49ceb8b4cac03d37",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"716d8af2a250c3237af6e23b43bf50e032e9f203",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(t=this.dispute)||void 0===t?void 0:t.amount))),s("div",{key:"daba4379197533d2a4b246e81139d81cd15761c6",class:"d-table-row gap-2"},s("span",{key:"a039fbf47aff16445e3411c33a7b53716c42866d",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"19087aba5c516d0c71e9f84e8b3323a044ae532a",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(n=this.dispute)||void 0===n?void 0:n.reason)),s("div",{key:"68ef78b15627df3b22bcde4b90f7c216466e7468",class:"d-table-row gap-2"},s("span",{key:"9463c281d76b5e201a55c2993253fc22d04168dc",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Dispute ID"),s("span",{key:"5cffed27038f5571f37377c5023a88c8b7773a59",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(h=this.dispute)||void 0===h?void 0:h.id))),s("div",{key:"e856d924edac10116781425f6d7c4c8c6b26ced2",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"6d5278a91f79c2fe8fbdd9e391b109a6491b13b6",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"242b9076b482aae731ab6bedc1592a1a826e24c5",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"f3711546ce5bf8b6a4a8689f5db3fdbf58f45bf4"},s("h1",{key:"06e39be43cfacf667919adbd2f4f8c596702c340",class:"h4"},"This payment is disputed and under review"),s("p",{key:"b3bfef2d40e197f8dc9df6f71d9f13017a4b923d"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(f=this.dispute)||void 0===f?void 0:f.won)&&s("div",{key:"580144b1439d6e017726b9731b7bb15e71900092"},s("h1",{key:"42d74d215d23409672449af86e25c945aac33ea1",class:"h4"},"This payment was disputed"),s("p",{key:"4c337e89a32f62c8f03a53eb84737785f4b0bdb4"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(l=this.dispute)||void 0===l?void 0:l.lost)&&s("div",{key:"66c0f7bbada42053683dd25776a7c0abdb708315"},s("h1",{key:"273f2d82dbe73a15da3186946763579be2801aa4",class:"h4"},"This payment was disputed"),s("p",{key:"22172d1c6833eb5407c19dd31b85db805d07d177"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)},this.updateDisputeResponse=void 0,this.submitDisputeResponse=void 0,this.createDisputeEvidence=void 0,this.errorMessage=null,this.authToken=void 0,this.disputeId=void 0,this.disputeResponse=void 0,this.apiOrigin="https://wc-proxy.justifi.ai"}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=(()=>{})})=>{var o;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:p(d.error),code:f(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=f(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=(()=>{})})=>{var o;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:p(d.error),code:f(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=f(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=v({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(o,{key:"4c0cd0b8a082d9f2f4428868d88cbb9bde2a3a5d"},s("justifi-dispute-response-core",{key:"58bbf7f5b2ce8efea0467efddfeffe3c752a3402","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},j=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.stepCompleteEvent=t(this,"complete-form-step-event",7),this.submitEvent=t(this,"submit-event",7),this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))},this.updateDisputeResponse=void 0,this.submitDisputeResponse=void 0,this.createDisputeEvidence=void 0,this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.currentStepComponentRef=void 0}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"452cfcf106f40c27f34df05ae2923c0909de9245",class:"row gy-3"},s("div",{key:"d9b608a8d880310b96e98cd4a00cabfcca77dc79",class:"col-12"},s("h1",{key:"050aef1fa636d09880edc7d738d56eab2cf62e52",class:"h4",part:r},"Counter dispute")),s("div",{key:"4e6094f9240d4db3d4bc03c59754ab3d04fed5bc",class:"col-12"},this.currentStepComponent),s("div",{key:"9c1739bc4ed1a9104fd04531a11e02cbbb4f11cc",class:"col-12"},s("div",{key:"d37cda5a7689d8bf9263283eb24e1074ee3d97a0",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{m as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}