@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,41 +1,104 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { S as StyledHost } from './styled-host.js';
3
3
  import './details.js';
4
- import { c as checkPkgVersion } from './check-pkg-version.js';
4
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version.js';
5
5
  import { d as defineCustomElement$2, a as defaultColumnsKeys } from './terminal-orders-list-core2.js';
6
+ import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
7
+ import './Checkout.js';
8
+ import './Pagination.js';
9
+ import './Payment.js';
10
+ import { a as TerminalOrder } from './SubAccount.js';
11
+ import './Document.js';
12
+ import { g as getErrorMessage, a as getErrorCode } from './utils4.js';
13
+ import { A as Api } from './Api.js';
6
14
  import { d as defineCustomElement$3 } from './pagination-menu2.js';
7
15
 
16
+ const makeGetTerminalOrders = ({ id, authToken, service, apiOrigin }) => async ({ params, onSuccess, onError, final }) => {
17
+ var _a, _b;
18
+ try {
19
+ const response = await service.fetchTerminalOrders(id, authToken, params, apiOrigin);
20
+ if (!response.error) {
21
+ const pagingInfo = Object.assign({}, response.page_info);
22
+ const terminalOrders = ((_a = response.data) === null || _a === void 0 ? void 0 : _a.map((dataItem) => new TerminalOrder(dataItem))) || [];
23
+ onSuccess({ terminalOrders, pagingInfo });
24
+ }
25
+ else {
26
+ const responseError = getErrorMessage(response.error);
27
+ const code = getErrorCode((_b = response.error) === null || _b === void 0 ? void 0 : _b.code);
28
+ return onError({
29
+ error: responseError,
30
+ code,
31
+ severity: ComponentErrorSeverity.ERROR,
32
+ });
33
+ }
34
+ }
35
+ catch (error) {
36
+ const code = getErrorCode(error === null || error === void 0 ? void 0 : error.code);
37
+ return onError({
38
+ error: error.message || error,
39
+ code,
40
+ severity: ComponentErrorSeverity.ERROR,
41
+ });
42
+ }
43
+ finally {
44
+ return final();
45
+ }
46
+ };
47
+
48
+ class TerminalOrderService {
49
+ async fetchTerminalOrders(accountId, authToken, params, apiOrigin = "https://wc-proxy.justifi.ai") {
50
+ const headers = { account: accountId };
51
+ const api = Api({ authToken, apiOrigin });
52
+ const endpoint = 'terminals/orders';
53
+ return api.get(endpoint, params, null, headers);
54
+ }
55
+ }
56
+
8
57
  const TerminalOrdersList = /*@__PURE__*/ proxyCustomElement(class TerminalOrdersList extends HTMLElement {
9
58
  constructor() {
10
59
  super();
11
60
  this.__registerHost();
12
61
  this.__attachShadow();
62
+ this.errorEvent = createEvent(this, "error-event", 7);
63
+ this.handleErrorEvent = (event) => {
64
+ this.errorMessage = event.detail.message;
65
+ this.errorEvent.emit(event.detail);
66
+ };
13
67
  this.getTerminalOrders = undefined;
14
68
  this.errorMessage = null;
15
- this.businessId = undefined;
69
+ this.accountId = undefined;
16
70
  this.authToken = undefined;
17
71
  this.apiOrigin = "https://wc-proxy.justifi.ai";
18
72
  this.columns = defaultColumnsKeys;
19
73
  }
20
74
  componentWillLoad() {
21
75
  checkPkgVersion();
22
- this.initializeGetTerminalOrders();
76
+ this.analytics = new JustifiAnalytics(this);
77
+ this.initializeGetData();
23
78
  }
24
- initializeGetTerminalOrders() {
25
- if (this.businessId && this.authToken) {
26
- this.getTerminalOrders = () => {
27
- console.log('getTerminalOrders');
28
- };
79
+ initializeGetData() {
80
+ if (this.accountId && this.authToken) {
81
+ this.getTerminalOrders = makeGetTerminalOrders({
82
+ id: this.accountId,
83
+ authToken: this.authToken,
84
+ service: new TerminalOrderService(),
85
+ apiOrigin: this.apiOrigin
86
+ });
29
87
  }
30
88
  else {
31
- this.errorMessage = 'Business ID and Auth Token are required';
89
+ this.errorMessage = 'Account ID and Auth Token are required';
90
+ this.errorEvent.emit({
91
+ errorCode: ComponentErrorCodes.MISSING_PROPS,
92
+ message: this.errorMessage,
93
+ severity: ComponentErrorSeverity.ERROR,
94
+ });
32
95
  }
33
96
  }
34
97
  render() {
35
- return (h(StyledHost, { key: 'f64c444f9e93c3f520bd5c119b49b6b51163e03b' }, h("terminal-orders-list-core", { key: 'd7601588a25fd5ee08ad8faddc02807a61015d15', getTerminalOrders: this.getTerminalOrders, columns: this.columns })));
98
+ return (h(StyledHost, { key: '2a268ef2e2128e8a0ed23092c78caa7f59539c6f' }, h("terminal-orders-list-core", { key: 'a56b31da3f4672a7f63aaff473dbdcb985eed3fc', getTerminalOrders: this.getTerminalOrders, "onError-event": this.handleErrorEvent, columns: this.columns })));
36
99
  }
37
100
  }, [1, "justifi-terminal-orders-list", {
38
- "businessId": [1, "business-id"],
101
+ "accountId": [1, "account-id"],
39
102
  "authToken": [1, "auth-token"],
40
103
  "apiOrigin": [1, "api-origin"],
41
104
  "columns": [1],
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
  import { l as lodash } from './lodash.js';
3
3
  import { f as filterParams, p as propsParams, c as clearParams } from './terminals-list-params-state.js';
4
- import { ag as terminalsListFilterMenu, ah as terminalIdTerminalsListFilterParam, ai as terminalStatusTerminalsListFilterParam } from './parts.js';
4
+ import { ae as terminalsListFilterMenu, af as terminalIdTerminalsListFilterParam, ag as terminalStatusTerminalsListFilterParam } from './parts.js';
5
5
  import { S as StyledHost } from './styled-host.js';
6
6
  import './details.js';
7
7
  import './ComponentError.js';
@@ -50,7 +50,7 @@ const TerminalsListFilters = /*@__PURE__*/ proxyCustomElement(class TerminalsLis
50
50
  }
51
51
  render() {
52
52
  const filterMenuParams = Object.assign({}, filterParams);
53
- return (h(StyledHost, { key: 'c0dc68ecfc49cbb1ec3297c1ae9b66e4d21fecc5' }, h("table-filters-menu", { key: '74a2627c14a61251052647bc41b6a9d331f04a20', params: filterMenuParams, clearParams: clearParams, part: terminalsListFilterMenu }, h("div", { key: '0aa6684df6548ffc721507ba11d8494a7ac56d46', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: '6cb0918e840d7651e41b11c262cae4c6932c32ef', class: "p-2" }, h("form-control-text", { key: 'b5b134f5c243596b1232404b8f341bd46f69ae40', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdTerminalsListFilterParam })), h("div", { key: '8d88708e80c08fcfa9fb204afa1b0aade761d440', class: "p-2" }, h("form-control-select", { key: 'cfd6300240fd31d6e826f9f0662cdabf5b950497', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status, disabled: !!this.terminalStatus, part: terminalStatusTerminalsListFilterParam }))))));
53
+ return (h(StyledHost, { key: '2fc002da23470b942ac8885ba0ee205478a3e975' }, h("table-filters-menu", { key: '8591f53c5e105d26955940ae7e0be64b084f31ec', params: filterMenuParams, clearParams: clearParams, part: terminalsListFilterMenu }, h("div", { key: 'e2f0de98ac031d768529654d3b8a5ba43e62269b', class: "grid-cols-2 gap-3 p-1" }, h("div", { key: 'a62823375c9f3b214f5ceff4163468fa91136cf6', class: "p-2" }, h("form-control-text", { key: '8a314678ce052a5f59e2c590d73df72a46caf0db', name: "terminal_id", label: "Terminal ID", inputHandler: this.debouncedSetParamsOnChange, defaultValue: this.terminalId || filterParams.terminal_id, disabled: !!this.terminalId, part: terminalIdTerminalsListFilterParam })), h("div", { key: '8462f83b1ba4f76044567f7c8da4fb84a8b932f7', class: "p-2" }, h("form-control-select", { key: '40cc106e9a37f76d4e072ede96b0633e5fb7c1e9', name: "status", label: "Status", options: this.terminalStatusOptions, inputHandler: this.setParamsOnChange, defaultValue: this.terminalStatus || filterParams.status, disabled: !!this.terminalStatus, part: terminalStatusTerminalsListFilterParam }))))));
54
54
  }
55
55
  }, [1, "justifi-terminals-list-filters", {
56
56
  "terminalId": [1, "terminal-id"],
@@ -1,12 +1,11 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
3
- import { J as JustifiAnalytics } from './Analytics.js';
4
- import { c as checkPkgVersion } from './check-pkg-version.js';
3
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version.js';
5
4
  import { T as TerminalService } from './terminal.service.js';
6
5
  import './Checkout.js';
7
6
  import './Pagination.js';
8
7
  import './Payment.js';
9
- import { b as Terminal } from './SubAccount.js';
8
+ import { c as Terminal } from './SubAccount.js';
10
9
  import './Document.js';
11
10
  import { g as getErrorMessage, a as getErrorCode } from './utils4.js';
12
11
  import { m as makeGetSubAccounts, S as SubAccountService } from './get-subaccounts.js';
@@ -106,7 +105,7 @@ const TerminalsList = /*@__PURE__*/ proxyCustomElement(class TerminalsList exten
106
105
  }
107
106
  }
108
107
  render() {
109
- return (h(StyledHost, { key: '8829e2070592554b23ea8593c2528a6582374b1e' }, h("terminals-list-core", { key: '7dfa54f94366214f53fae5240050955a5f5750f4', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
108
+ return (h(StyledHost, { key: '1765197e56fd03442cc4d30a24d090b4dfd86405' }, h("terminals-list-core", { key: '4e880db7702649486b2cb8e743b0f7d7e78a72c0', getTerminals: this.getTerminals, getSubAccounts: this.getSubAccounts, "onError-event": this.handleErrorEvent, columns: this.columns })));
110
109
  }
111
110
  static get watchers() { return {
112
111
  "accountId": ["propChanged"],
@@ -2,8 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
2
2
  import { B as Button } from './button.js';
3
3
  import { S as StyledHost } from './styled-host.js';
4
4
  import './details.js';
5
- import { c as checkPkgVersion } from './check-pkg-version.js';
6
- import { J as JustifiAnalytics } from './Analytics.js';
5
+ import { c as checkPkgVersion, J as JustifiAnalytics } from './check-pkg-version.js';
7
6
  import { a as ComponentErrorSeverity, C as ComponentErrorCodes } from './ComponentError.js';
8
7
  import './Checkout.js';
9
8
  import './Pagination.js';
@@ -45,7 +44,7 @@ const TokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class TokenizePay
45
44
  this.disableBankAccount = undefined;
46
45
  this.hideSubmitButton = undefined;
47
46
  this.hideCardBillingForm = undefined;
48
- this.iframeOrigin = "https://components.justifi.ai/v2";
47
+ this.iframeOrigin = "https://components.justifi.ai";
49
48
  this.isLoading = false;
50
49
  }
51
50
  componentWillLoad() {
@@ -84,7 +83,7 @@ const TokenizePaymentMethod = /*@__PURE__*/ proxyCustomElement(class TokenizePay
84
83
  this.paymentMethodOptionsRef.fillBillingForm(fields);
85
84
  }
86
85
  render() {
87
- return (h(StyledHost, { key: '8377b1e614cb8c1f737ce7f81b35017c7bf4b390' }, h("form", { key: 'a30d047312977dec17fc810dd7039d64a71396d0' }, h("fieldset", { key: 'ffda409f721f09fef1397cef899b49c2f70d51e3' }, h("div", { key: 'cbaa2c97e2be236df2f2e7e3a1df0eca0b20f75a', class: "row gy-3" }, h("div", { key: 'cc9bac328a0feaf2c1754c50e9790eb1dbd04768', class: "col-12" }, h("justifi-payment-method-options", { key: 'bc646adf579be124bc110aa04256bcafe419ca3b', ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": false, paymentMethodGroupId: this.paymentMethodGroupId, "show-saved-payment-methods": false, hideCardBillingForm: this.hideCardBillingForm, authToken: this.authToken, "account-id": this.accountId, iframeOrigin: this.iframeOrigin })), h("div", { key: 'e65e8a79fd265a053e46e9ee215f84abb57e1212', class: "col-12" }, h(Button, { key: 'f568dc1cb0c6ca2f22897b3ad94f37383ac8ac26', variant: "primary", type: "submit", onClick: event => this.tokenizePaymentMethod(event), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton }, this.submitButtonText || 'Submit')))))));
86
+ return (h(StyledHost, { key: '34b41a932b7388b76084e74f834fae1dc1bde307' }, h("form", { key: 'b2dfd8c275f5ab8998c9560279e285e87f993771' }, h("fieldset", { key: 'bf6690ee43aae5418a3d979080e20e548afbd83a' }, h("div", { key: '0e66b6f3d55178f74ebd2e854597c68df598f38d', class: "row gy-3" }, h("div", { key: '970b07bf9242730d83dfb9498184e3e587609b68', class: "col-12" }, h("justifi-payment-method-options", { key: '0e11e6d59d9297da681956aa987d55df6e809a5b', ref: (el) => (this.paymentMethodOptionsRef = el), "show-card": !this.disableCreditCard, "show-ach": !this.disableBankAccount, "show-bnpl": false, paymentMethodGroupId: this.paymentMethodGroupId, "show-saved-payment-methods": false, hideCardBillingForm: this.hideCardBillingForm, authToken: this.authToken, "account-id": this.accountId, iframeOrigin: this.iframeOrigin })), h("div", { key: 'a1380b7f8e78db5219047b48c0dede19734f7b50', class: "col-12" }, h(Button, { key: 'febf460cb8114c52d1c63a1c259e75e80a5ed5f2', variant: "primary", type: "submit", onClick: event => this.tokenizePaymentMethod(event), isLoading: this.isLoading, "data-testid": "submit-button", hidden: this.hideSubmitButton }, this.submitButtonText || 'Submit')))))));
88
87
  }
89
88
  }, [1, "justifi-tokenize-payment-method", {
90
89
  "authToken": [1, "auth-token"],
@@ -1,5 +1,5 @@
1
1
  const name = "@justifi/webcomponents";
2
- const version = "5.3.5";
2
+ const version = "5.3.6";
3
3
  const description = "JustiFi Web Components";
4
4
  const collection = "dist/collection/collection-manifest.json";
5
5
  const main = "dist/index.cjs.js";
@@ -70,9 +70,6 @@ const badgeDark = `${badge} badge-dark`;
70
70
  const dropdownMenu = `dropdown-menu ${text}`;
71
71
  // Radio List Item
72
72
  const radioListItem = `radio-list-item ${text}`;
73
- // Bootstrap list-group
74
- const listGroup = `list-group ${text} ${backgroundColor}`;
75
- const listGroupItem = `list-group-item ${text} ${backgroundColor}`;
76
73
  // Skeleton
77
74
  const skeleton = `skeleton`;
78
75
  // Image
@@ -108,4 +105,4 @@ const terminalsListFilterParam = `terminals-list-filter-param`;
108
105
  const terminalIdTerminalsListFilterParam = `${terminalsListFilterParam} terminal-id-terminals-list-filter-param`;
109
106
  const terminalStatusTerminalsListFilterParam = `${terminalsListFilterParam} terminal-status-terminals-list-filter-param`;
110
107
 
111
- export { checkoutsListFilterMenu as $, badgeSecondary as A, badgeSuccess as B, badgeDanger as C, badgeWarning as D, badgeInfo as E, badgeLight as F, badgeDark as G, alertDanger as H, inputCheckboxInvalid as I, inputCheckboxCheckedFocused as J, inputCheckboxFocused as K, inputCheckboxChecked as L, inputCheckbox as M, inputGroup as N, inputRadioInvalid as O, inputRadioCheckedFocused as P, inputRadioChecked as Q, inputRadioFocused as R, inputRadio as S, heading5 as T, heading3 as U, billingForm as V, buttonLoading as W, buttonPrimary as X, buttonSecondary as Y, checkoutSummary as Z, radioListItem as _, heading1 as a, statusCheckoutsListFilterParam as a0, paymentModeCheckoutsListFilterParam as a1, dropdownMenu as a2, heading4 as a3, listGroup as a4, listGroupItem as a5, image as a6, paymentsListFilterMenu as a7, paymentIdPaymentsListFilterParam as a8, terminalIdPaymentsListFilterParam as a9, paymentStatusPaymentsListFilterParam as aa, createdAfterPaymentsListFilterParam as ab, createdBeforePaymentsListFilterParam as ac, payoutsListFilterMenu as ad, createdAfterPayoutsListFilterParam as ae, createdBeforePayoutsListFilterParam as af, terminalsListFilterMenu as ag, terminalIdTerminalsListFilterParam as ah, terminalStatusTerminalsListFilterParam as ai, inputInvalid as b, inputDisabled as c, inputFocused as d, tooltipIcon as e, tooltip as f, tooltipInner as g, heading2 as h, input as i, textDanger as j, inputInvalidAndFocused as k, label as l, card as m, table as n, tableHeadCell as o, tableCell as p, getAlternateTableCellPart as q, tableEmpty as r, skeleton as s, text as t, tableError as u, buttonLink as v, buttonDisabled as w, loadingSpinner as x, badge as y, badgePrimary as z };
108
+ export { checkoutsListFilterMenu as $, badgeSecondary as A, badgeSuccess as B, badgeDanger as C, badgeWarning as D, badgeInfo as E, badgeLight as F, badgeDark as G, alertDanger as H, inputCheckboxInvalid as I, inputCheckboxCheckedFocused as J, inputCheckboxFocused as K, inputCheckboxChecked as L, inputCheckbox as M, inputGroup as N, inputRadioInvalid as O, inputRadioCheckedFocused as P, inputRadioChecked as Q, inputRadioFocused as R, inputRadio as S, heading5 as T, heading3 as U, billingForm as V, buttonLoading as W, buttonPrimary as X, buttonSecondary as Y, checkoutSummary as Z, radioListItem as _, heading1 as a, statusCheckoutsListFilterParam as a0, paymentModeCheckoutsListFilterParam as a1, dropdownMenu as a2, heading4 as a3, image as a4, paymentsListFilterMenu as a5, paymentIdPaymentsListFilterParam as a6, terminalIdPaymentsListFilterParam as a7, paymentStatusPaymentsListFilterParam as a8, createdAfterPaymentsListFilterParam as a9, createdBeforePaymentsListFilterParam as aa, payoutsListFilterMenu as ab, createdAfterPayoutsListFilterParam as ac, createdBeforePayoutsListFilterParam as ad, terminalsListFilterMenu as ae, terminalIdTerminalsListFilterParam as af, terminalStatusTerminalsListFilterParam as ag, inputInvalid as b, inputDisabled as c, inputFocused as d, tooltipIcon as e, tooltip as f, tooltipInner as g, heading2 as h, input as i, textDanger as j, inputInvalidAndFocused as k, label as l, card as m, table as n, tableHeadCell as o, tableCell as p, getAlternateTableCellPart as q, tableEmpty as r, skeleton as s, text as t, tableError as u, buttonLink as v, buttonDisabled as w, loadingSpinner as x, badge as y, badgePrimary as z };
@@ -58,14 +58,14 @@ const PaymentDetailsCore = /*@__PURE__*/ proxyCustomElement(class PaymentDetails
58
58
  });
59
59
  }
60
60
  render() {
61
- return (h(StyledHost, { key: '1978689b8278990966596fa7d5a155208ddbf7e2' }, this.loading && h(PaymentDetailsLoading, { key: 'c9e75ceefc675e7f198d395f53ae90b056526261' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
62
- this.payment && (h("justifi-details", { key: '629457b2841589c47e4d9e0127b530a40f79569e', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '8433e393af0bc9c12dd1bfc1c74c7e71d1bd7533', slot: "head-info", badge: MapPaymentStatusToBadge(this.payment.status), title: this.payment.formattedPaymentAmount(this.payment.amount) }, h(EntityHeadInfoItem, { key: '899e2e0bfcf92ee28af12a882a0390792865e56d', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '87e38c31d21643bf9e9d532f8351c5e6cdf86ce0', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: '71e629744d267e75037e226a46911ad121107855', title: "ID", value: this.payment.id })), h("div", { key: 'b1ad6c37738d078d4d0c50943fa484f73bed19ae', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '4b2407c4e45bb062c9d29da68321d58dd8f5cdb2', sectionTitle: "Details" }), h("div", { key: 'e8b1208771061477f00a2f5d5160464117b21421', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '9ac1b4794f5afac73a307dfff7b78f6d9b936b77', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), h(DetailItem, { key: '4d36bfa5117c66288a41803df1373c3f09311c5a', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: 'edc981480e3bb975170fe8de4ec76c3074c732da', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), h(DetailItem, { key: '290a04ecac3267ee71389668321fcbf9987a4f2c', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), h(DetailItem, { key: 'f6995f8ba441eb7c5fdbea7ede2e5baccca79489', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: '96b1788fda31eb7090c7bf5ae61ad1c4c6517acd', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: '2e78ed29b424f8edcb5f62dcca1583aa92696797', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: 'd1d7025e7557f6566e519933cdbc6d3fb153b08f', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: '8e369df9afaf1368cfe67928c9ffd3d761f7e4c5', title: "Description", value: this.payment.description })), this.payment.payment_method.card && [
63
- h(DetailSectionTitle, { key: '4275caef28d50b41b4f1cf573ef21f5cad3ad137', sectionTitle: "Payment Method" }),
64
- h("div", { key: '0e5414c43a1273ae8fdfab4ac2f123a584aa0015', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'fe15b439f0eaadcd44d0dd4313fa8a432f13d47a', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: 'e13a36067875455c89eaf466618507903ae515c3', title: "Payment Type", value: "Card" }), h(DetailItem, { key: '04e73a55bc15db2103c10ccdaa09417a77d5ec4b', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: 'f7213832d1ddbabafe31080d8f4d9ac8b29436a6', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: '105b7aa79ff05c0f2837ca0de9a84b05da411c7d', title: "Cardholder", value: this.payment.payment_method.payersName }))
61
+ return (h(StyledHost, { key: '00ba42c81617d9593246956e97b6b962817cc167' }, this.loading && h(PaymentDetailsLoading, { key: '1c0fee27dec985cad2cc7d41f61d137246ffcc3e' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && !this.errorMessage &&
62
+ this.payment && (h("justifi-details", { key: 'e264b42451a8966a4e6313486bc9d1ccaea0141b', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'af96a0f502cce1be451160e8ac2f92074b0ee168', slot: "head-info", badge: MapPaymentStatusToBadge(this.payment.status), title: this.payment.formattedPaymentAmount(this.payment.amount) }, h(EntityHeadInfoItem, { key: '94f876bd62dd9ccaa6f63f25326390b03c9938d5', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payment.updated_at)} ${formatTime(this.payment.updated_at)}` }), h(EntityHeadInfoItem, { key: '96c629e2d1a99eca277ec7337cb3e00e88c1b31e', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payment.created_at)} ${formatTime(this.payment.created_at)}` }), h(EntityHeadInfoItem, { key: '0d18abfae7e9fd0a692ac54640194033a5c36f41', title: "ID", value: this.payment.id })), h("div", { key: '7f9e14d7e0312ba1136cf5734754bf0af6c19774', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'a11b47796dada4f9678487edf19dcd7928b08e94', sectionTitle: "Details" }), h("div", { key: 'fa8a895e037adbbcf5856aae4f40306b789a90c8', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '84a8fa2b0dc39aa331501e00a8eb9bf93e8bb8c2', title: "Amount", value: this.payment.formattedPaymentAmount(this.payment.amount) }), h(DetailItem, { key: '632fa4e703aabc7b606b939e95d1633a43fedfaa', title: "Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: 'bc37a80a15fea95932d04676f2c5a8a57276958b', title: "Refunded", value: this.payment.formattedPaymentAmount(this.payment.amount_refunded) }), h(DetailItem, { key: '588a76203897cd31b9d0c1c8de1b7b9b0b107421', title: "Net", value: this.payment.formattedPaymentAmount(this.payment.balance) }), h(DetailItem, { key: 'c0fea24390417c591327c76568829cbf9f9147a9', title: "Status", value: MapPaymentStatusToBadge(this.payment.status) }), h(DetailItem, { key: 'e332a896b55bb58f3fd26ee892556acb08ced52d', title: "Payment ID", value: this.payment.id }), h(DetailItem, { key: '844fdb40ed55ca0e2f848e7325dcb64f134fa5d6', title: "Processing Fees", value: this.payment.formattedPaymentAmount(this.payment.fee_amount) }), h(DetailItem, { key: 'dce95b409eb465e8d6373ad80b7b14a0eecc5aca', title: "Statement Descriptor", value: this.payment.statement_descriptor }), h(DetailItem, { key: 'bed2051bd720b1a790ff59b50bee7f01e3fb222a', title: "Description", value: this.payment.description })), this.payment.payment_method.card && [
63
+ h(DetailSectionTitle, { key: '3283ea5236fab75a32fe569ad29d9b70c62b49a0', sectionTitle: "Payment Method" }),
64
+ h("div", { key: 'b9a0d9cfca791e3afb4a2e1e73b036319191d485', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '15da44c97292af05a14b3f7840b07bdcf34ae953', title: "ID", value: this.payment.payment_method.card.id }), h(DetailItem, { key: 'd8a4a431c3e3ab0d14be8992521ee89b5e126a04', title: "Payment Type", value: "Card" }), h(DetailItem, { key: '1a8ed38a316ea943761d2dd7fda58490180ef3bc', title: "Last 4 Numbers", value: this.payment.payment_method.lastFourDigits }), h(DetailItem, { key: 'db695d1b89896a7a73c83fd8a7d5837ad1e69909', title: "Brand", value: snakeCaseToHumanReadable(this.payment.payment_method.card.brand) }), h(DetailItem, { key: 'd94879fb30ac0a05a16ce9ddb199fb5cb003a8c1', title: "Cardholder", value: this.payment.payment_method.payersName }))
65
65
  ], this.payment.payment_method.bank_account && [
66
- h(DetailSectionTitle, { key: '0e98838bfda48e8680bc4732c28956df01e24e1e', sectionTitle: "Payment Method" }),
67
- h("div", { key: '6d18b4960dc81742a7fc7c9d687fb47a2001026c', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'af4221654d5f15767a77660d34dd1e110a55f178', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: '5ada65c0a6e924f2de218f3e75d8e72e3cebe032', title: "Last 4 Numbers", value: this.payment.last_four_digits }), h(DetailItem, { key: 'aab41f9c2221a91ce4acceba59bd8a47ab4866fa', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: '7c3cf837177b6fe60a311e0044d17a9b67885ac8', title: "Account Owner", value: this.payment.payment_method.payersName }))
68
- ], h(DetailSectionTitle, { key: 'f84f8d6078683651793b2021aa992aac96f015a0', sectionTitle: 'Metadata' }), h("div", { key: '06f0a1b0f18cea6f2804043dd432fe42f7352c9a', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '06273e39e83b0bc1fa5316c65f848986b0f4c1a1', metadata: this.payment.metadata })))))));
66
+ h(DetailSectionTitle, { key: '84dae904db3c22ff5ed03abaeb57d3b0736d1fbb', sectionTitle: "Payment Method" }),
67
+ h("div", { key: '400801019a53feec0478273866fffa5683b408aa', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'ca7bb52e4275659b18daacfa6367de2f32617e70', title: "ID", value: this.payment.payment_method.bank_account.id }), h(DetailItem, { key: '4885d2b5f05b6a713d61074271c7a95b23604dca', title: "Last 4 Numbers", value: this.payment.last_four_digits }), h(DetailItem, { key: '604ec4efe78a12a1c36d8416c9fdec70351a6dad', title: "Bank Name", value: this.payment.payment_method.bank_account.brand }), h(DetailItem, { key: '1ef77a81232e19d1063af9e863f5c9ada183715f', title: "Account Owner", value: this.payment.payment_method.payersName }))
68
+ ], h(DetailSectionTitle, { key: '1d0a45dd7b7f44b2bad75db9ddb7886b9fc36c9c', sectionTitle: 'Metadata' }), h("div", { key: '364dfb72b9585b672a510b11ecf794c8293ac88d', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '1b9254f2f5f81959ea4e190a3a84129d8c54eccd', metadata: this.payment.metadata })))))));
69
69
  }
70
70
  static get watchers() { return {
71
71
  "getPaymentDetails": ["updateOnPropChange"]
@@ -115,7 +115,7 @@ const PaymentProvisioningCore = /*@__PURE__*/ proxyCustomElement(class PaymentPr
115
115
  }
116
116
  componentWillLoad() {
117
117
  this.getBusiness && this.setBusinessProvisioned();
118
- this.refs = [this.coreInfoRef, this.legalAddressRef, this.additionalQuestionsRef, this.representativeRef, this.ownersRef, this.bankAccountRef, this.documentUploadRef, this.termsRef];
118
+ this.refs = [this.coreInfoRef, this.legalAddressRef, this.additionalQuestionsRef, this.representativeRef, this.ownersRef, this.bankAccountRef, this.termsRef];
119
119
  }
120
120
  get businessEndpoint() {
121
121
  return `entities/business/${this.businessId}`;
@@ -133,7 +133,7 @@ const PaymentProvisioningCore = /*@__PURE__*/ proxyCustomElement(class PaymentPr
133
133
  this.loading = event.detail;
134
134
  }
135
135
  render() {
136
- return (h(StyledHost, { key: '03dc39eadbac2f9a9a4326bab1355bfc300c392e' }, h("div", { key: '86e6e57fc104c87696c5825119a15c0a642c4bd2', class: 'row gap-3' }, h(Header1, { key: 'd4df3ead1037464624fb8cc465427c6b90bd0e36', text: this.formTitle }), h("justifi-payment-provisioning-form-steps", { key: '7f3d977b8dfbb29c03125c173e9d41558de08322', businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, handleFormLoading: this.handleFormLoading }), h("div", { key: '283568d94267850b0eb41fa6a52dbc6b0abf4642', class: 'd-flex justify-content-between align-items-center' }, h("div", { key: '6abf09f174e71767087b57180e976546c057499f', class: 'd-flex align-items-center', part: text }, this.stepCounter), h("justifi-payment-provisioning-form-buttons", { key: 'b38ed082d216556c6ae93bde3ec1324e69f8fcee', currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
136
+ return (h(StyledHost, { key: '498b6e0a593808dd761b9cefdb7e94124d445348' }, h("div", { key: 'd746caba6329ac82e75978bd19fbc09c8a43d60f', class: 'row gap-3' }, h(Header1, { key: '439425337ed7767ce4fc8c94e31f6997aa1b62d8', text: this.formTitle }), h("justifi-payment-provisioning-form-steps", { key: 'fd95a40c0a72c94cbb146cbc866d6b057cbfc5c0', businessId: this.businessId, authToken: this.authToken, refs: this.refs, currentStep: this.currentStep, allowOptionalFields: this.allowOptionalFields, handleFormLoading: this.handleFormLoading }), h("div", { key: '350fc615685f872cb6ba5537dc2de5d2a205e5cc', class: 'd-flex justify-content-between align-items-center' }, h("div", { key: '3f9a36bc1d58efdfe81b4d7022647b0c1fbc1911', class: 'd-flex align-items-center', part: text }, this.stepCounter), h("justifi-payment-provisioning-form-buttons", { key: 'e1c061aa840b3b8ac1bad472d763fcd54c902681', currentStep: this.currentStep, totalSteps: this.totalSteps, formLoading: this.loading, formDisabled: this.formDisabled, previousStepButtonOnClick: this.previousStepButtonOnClick, nextStepButtonOnClick: this.nextStepButtonOnClick })))));
137
137
  }
138
138
  }, [0, "justifi-payment-provisioning-core", {
139
139
  "businessId": [1, "business-id"],
@@ -6,12 +6,11 @@ import './Payment.js';
6
6
  import './SubAccount.js';
7
7
  import './Document.js';
8
8
  import { o as tableHeadCell, q as getAlternateTableCellPart, n as table, p as tableCell } from './parts.js';
9
- import { T as Table, a as TableLoadingState, b as TableEmptyState, c as TableErrorState } from './table.js';
9
+ import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types2.js';
10
10
  import './details.js';
11
11
  import { M as MapPaymentStatusToBadge } from './payments-status.js';
12
12
  import { h as convertToLocal } from './utils2.js';
13
13
  import { o as onQueryParamsChange, g as getRequestParams } from './payments-list-params-state.js';
14
- import { T as TableClickActions } from './event-types2.js';
15
14
  import { d as defineCustomElement$1 } from './pagination-menu2.js';
16
15
 
17
16
  const defaultColumnsKeys = 'created_at,amount,status,payment_type,description,payers_name,last_four_digits';
@@ -122,7 +121,7 @@ const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore
122
121
  return !this.showEmptyState && !this.showErrorState && !this.loading;
123
122
  }
124
123
  render() {
125
- return (h("div", { key: '43aa1d53dc7c63eda036624d897d92670ff4dec7' }, h("div", { key: '84ac82efec3738e1a07bcf5fbfdf62426bacaad0', class: "table-wrapper" }, h("table", { key: '65e2ab73a63fa1d89b1b7fb0cd9809d951de657a', class: "table table-hover", part: table }, h("thead", { key: '81ff867eb4b86905049e57c9c9ee331ad9a43f22', class: "table-head sticky-top" }, h("tr", { key: 'edecfccffc49b21f4d9d01396ab4d22dda6f853b', class: "table-light text-nowrap" }, this.paymentsTable.columnData.map((column) => column))), h("tbody", { key: '1df70e89ad33f83dbf18c6c5135bcda2753413a8', class: "table-body" }, h(TableLoadingState, { key: '23cfc404da1ccfada68146b83343e9ee348bac05', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: '9929a89448678aa010ecfb43377c38f53b1896d2', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), h(TableErrorState, { key: '1734903104bb6c6e9b382661bc353731c5cf92aa', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '08277c1742a8ff36079a2fd4d4c3a31e628617dc', class: "sticky-bottom" }, h("tr", { key: '6012aa5a86f140007504d056f53eba3a21aacc40', class: "table-light align-middle" }, h("td", { key: 'e67d2f48a9d1002086a18ebd4ca00a5b22903c06', part: tableCell, colSpan: this.paymentsTable.columnData.length }, h("pagination-menu", { key: 'afcfbab93aa8bb33d6aac50b11c803ebb3284bf1', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
124
+ return (h("div", { key: '91c30f03d9b807ff84224ae25a0bcc84b5c17d20' }, h("div", { key: '447c694f9dcfee6363bafd369f53152ef1797c60', class: "table-wrapper" }, h("table", { key: 'fe3a2911b4d7aa109319d6dabc77eb338b910df9', class: "table table-hover", part: table }, h("thead", { key: 'a3ec810da46e43f786def86991f74e1c0f3c269b', class: "table-head sticky-top" }, h("tr", { key: '94b80f23224624d2f4be81cffa5365d9a725bf33', class: "table-light text-nowrap" }, this.paymentsTable.columnData.map((column) => column))), h("tbody", { key: 'd2c24a19bebcd4872dc36c4f8c6a47678a912d6d', class: "table-body" }, h(TableLoadingState, { key: 'dfcc51f6307996ea5383c4da3ddde61c973d946b', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: 'a81643fd528bff0ad8a57ea17aed718dbfcff6c5', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), h(TableErrorState, { key: '3c50d2d7ee8bd5e8c03db7c1d01db8fbb6de4b9b', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '601bb3cd6f8b54fa262d572f715a6208df515f47', class: "sticky-bottom" }, h("tr", { key: '3fbcc03fc841c196cc52b2572387d243d74b2f44', class: "table-light align-middle" }, h("td", { key: 'a1d593b29235432bc668564d784b594dea8ae13c', part: tableCell, colSpan: this.paymentsTable.columnData.length }, h("pagination-menu", { key: '1a427ec2e181baad95ffd14a6c77485f86786f6d', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
126
125
  }
127
126
  static get watchers() { return {
128
127
  "pagingParams": ["updateOnPropChange"],
@@ -74,7 +74,7 @@ const PayoutDetailsCore = /*@__PURE__*/ proxyCustomElement(class PayoutDetailsCo
74
74
  }
75
75
  render() {
76
76
  var _a;
77
- return (h(StyledHost, { key: '7d648508011ea664a85dcd3e83d45835d769f195' }, this.loading && h(PayoutDetailsLoading, { key: 'c5aa47291bd8a66174c0caf11d4043d5c8084183' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: 'bbb88f0e6895ab4e4a03fbcc2c33dd925ede8731', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'c8cc282e0e53bd605d47e30f38bc924cfb20b19e', slot: "head-info", badge: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status), title: this.payout.formattedPaymentAmount(this.payout.amount) }, h(EntityHeadInfoItem, { key: 'ada8dc55c9ad5324cf406cd8118b5087542d9958', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: 'f590cc91cd49709c8f47bfb2285d335f55153f44', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '95d767d779203c9d78734d35933f5d1672ae6ec9', title: "ID", value: this.payout.id }), h("div", { key: '83a7e4dd33af9d5a62a1ec7e898d0c56c71e633a', class: "m-4" }, h(Button, { key: '0f622ebc090782a89d506d22b67f43177dbfda79', variant: "secondary", class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: '35300a91f58a9ce822323c03cbc139d35312bc3d', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '34db8325ff9e72e166e80e4f1e3cb98b6757f750', sectionTitle: "Details" }), h("div", { key: '7515ec409c0b31c530d072684694e3721ddb1562', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '544be85ea95c951c85ffd539a8ef73fc8a65f747', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: 'ebc505407ae3e436143d3a10c59541bef5459488', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '3ae0229489cb9f287c3141e090b3cd260f98affd', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: 'e11e04fc8e57d5036cfdcaf8a928886a6d1ac6bc', title: "Amount", value: this.payout.formattedPaymentAmount(this.payout.amount) }), h(DetailItem, { key: 'd98c8c10d875aa9ce4a561f1813188d8ec2fe88d', title: "Fee", value: this.payout.formattedPaymentAmount(this.payout.fees_total) })), h(DetailSectionTitle, { key: '65d1ea7d5ff2e25ac89b2de8a0fdf59850a3d4ed', sectionTitle: "Account" }), h("div", { key: '0d593cec0b5ddc1ed45880410fb91acb4a210e37', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '356dab04877a39166ad2cc68154c03125acb3f49', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '2a4b60d5d695fd102f8ed8bc3ad8d61d47886c89', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '1bd1c40fac3a0e409a7d6082c70f0695f0b850bc', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '9d08a53899f17c7fd7bdcab7a6e11f9b02ff9694', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: 'e2e8487b4555ae6e9c6ff799150a6bef49eeb82a', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: '82408f25fc1700cb7c55afd7b0ef116ad43659c0', sectionTitle: 'Metadata' }), h("div", { key: '16c5967632b3a95bc8cbc787a2e8400319537184', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'e3b2041e7c2e76c8994754be30a885b92673b75d', metadata: this.payout.metadata })))))));
77
+ return (h(StyledHost, { key: '6aab170bbe708372d913c14bcb58b3b0d60dafd8' }, this.loading && h(PayoutDetailsLoading, { key: '0aee9ad36b3c4e74b1cb3f8251d0488cede1355c' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: 'c9ad74b0385260d4b1f2d2f7b3e66563b2d706a4', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: '6b67e623a6cb67207007ba4319aa437996118dd9', slot: "head-info", badge: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status), title: this.payout.formattedPaymentAmount(this.payout.amount) }, h(EntityHeadInfoItem, { key: 'ff1c335e90ad0403a607491e4ff0b0adac52f255', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: '0c2e9555136ce806bc744dd2a83c7a1e10fa7ea7', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '0c813d23ddbe26f29f1ad03dc43b9c5fbf2d6ab6', title: "ID", value: this.payout.id }), h("div", { key: '762b4fc60643def05b7f8e84ce170d6295654631', class: "m-4" }, h(Button, { key: 'c5f304fb7f54838da6785a0bf19c423a98bdbf34', variant: "secondary", class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: 'b307f177086cd6b1eeb0f384cce772cd04ff33ad', slot: 'detail-sections' }, h(DetailSectionTitle, { key: 'bad67a9d2cde5bff23b5c959f9b7564fdc996300', sectionTitle: "Details" }), h("div", { key: '6986bef4813aadb505acaf5cdd07b853c271e442', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'dad10fde82b1009a9821f1e1cc2c2e65baa5f6b7', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: 'bf21ac446b54bdfcec020d6086546a0b20f42d01', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '30f7609216b42f3918929a6a02b30a6a23689921', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: 'e7d93fa8d865162098e105d4041c12af757db68b', title: "Amount", value: this.payout.formattedPaymentAmount(this.payout.amount) }), h(DetailItem, { key: '99b76f8abc8f0077df988cf38cfb74e77a7e881f', title: "Fee", value: this.payout.formattedPaymentAmount(this.payout.fees_total) })), h(DetailSectionTitle, { key: 'cfef47442eeb83514ca10fab25d12f1439414fc0', sectionTitle: "Account" }), h("div", { key: '901423f1ca47bf79ab6daa63368fea0032e46d58', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'f3e215b7aad43a3a3914b885189700e87758cca6', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '795054cd2f8bda2a735e9ac64652da92dac34f61', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '9c190036635aed95d74bce36ec257ada41b57cba', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'c1002cff85b80024804a858ef519feb4a86d46ff', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: '0183bef106233f302cd8762c7483482bea849ac2', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: 'e87d57050d5dee72a8dccfe2ca2deee385e6dc61', sectionTitle: 'Metadata' }), h("div", { key: '9aefd212e7aa680b34f5af6a373a47997238496e', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'a9c9337a788cb2611787278768968e638a8c000d', metadata: this.payout.metadata })))))));
78
78
  }
79
79
  static get watchers() { return {
80
80
  "getPayout": ["getPayoutWatcher"]
@@ -6,12 +6,11 @@ import './Payment.js';
6
6
  import './SubAccount.js';
7
7
  import './Document.js';
8
8
  import { q as getAlternateTableCellPart, o as tableHeadCell, n as table, p as tableCell } from './parts.js';
9
- import { T as Table, a as TableLoadingState, b as TableEmptyState, c as TableErrorState } from './table.js';
9
+ import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types2.js';
10
10
  import './details.js';
11
11
  import { h as convertToLocal } from './utils2.js';
12
12
  import { M as MapPayoutStatusToBadge } from './payouts-status.js';
13
13
  import { o as onQueryParamsChange, g as getRequestParams } from './payouts-list-params-state.js';
14
- import { T as TableClickActions } from './event-types2.js';
15
14
  import { d as defineCustomElement$1 } from './pagination-menu2.js';
16
15
 
17
16
  const defaultColumnsKeys = 'created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv';
@@ -179,7 +178,7 @@ const PayoutsListCore = /*@__PURE__*/ proxyCustomElement(class PayoutsListCore e
179
178
  return !this.showEmptyState && !this.showErrorState && !this.loading;
180
179
  }
181
180
  render() {
182
- return (h("div", { key: 'b7befcaf0a42986dc821d97e371fb93920b16358' }, h("div", { key: 'c405055d05c2f1b5e622ab28fc9744962f1907a1', class: "table-wrapper", part: "table-wrapper" }, h("table", { key: 'db36400212d74c17e0aad133717475ce3b142308', class: "table table-hover", part: table }, h("thead", { key: 'a3e208126c4d2c0ab2b6d9ef27f8c1410e029907', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '37f25650e0c03cf8985ec68211eefc0980dd5a92', class: "table-light text-nowrap", part: "table-head-row" }, this.payoutsTable.columnData.map((column) => column))), h("tbody", { key: '7879e0b39a52ef735ff71960498e1405ff8f98b0', class: "table-body" }, h(TableLoadingState, { key: '91fdd3ed14d5c63ac8c536a5d8da05bb491d49a1', columnSpan: this.payoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '577748b2fa32b265a6a1afbad3460c4628d21ba6', isEmpty: this.showEmptyState, columnSpan: this.payoutsTable.columnKeys.length }), h(TableErrorState, { key: '351848f6ee13c7be8735757ce3dcbcce18bb4fff', columnSpan: this.payoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.payoutsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '889ef01055c10f969d4d51f6d114bd3654a06ce3', class: "sticky-bottom" }, h("tr", { key: '6c49a3b386a64023d0701445e7589cced7f4f4df', class: "table-light align-middle" }, h("td", { key: '7782a9152e0d8037afb6528897a9358da204bfb7', part: tableCell, colSpan: this.payoutsTable.columnData.length }, h("pagination-menu", { key: 'eac386f11674a29452831bdbe183bfefe4347389', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
181
+ return (h("div", { key: 'ed85d9ce4cc88007b8c623ba57cb8dfbd4de7874' }, h("div", { key: '5760742d19653abb6ce3e45f4f773cd1bd5e612f', class: "table-wrapper", part: "table-wrapper" }, h("table", { key: 'f09a0ea7fff83b23e8e82fda18c73b25e0a46b07', class: "table table-hover", part: table }, h("thead", { key: 'b056f2ef2b6a229cd436ed0e4789f9d19849e956', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: '16e6651c934d1d4120ceaeb4732e807666f0404d', class: "table-light text-nowrap", part: "table-head-row" }, this.payoutsTable.columnData.map((column) => column))), h("tbody", { key: '4b552d171131958f696077a66c4256e45ccaf7b2', class: "table-body" }, h(TableLoadingState, { key: 'aded291b5961c14d828ecff475120e48d3913293', columnSpan: this.payoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'a3044be9a44798a4f8800978fd0734de31de6809', isEmpty: this.showEmptyState, columnSpan: this.payoutsTable.columnKeys.length }), h(TableErrorState, { key: '98c909ea58a0dd7f0cbbd8ac9842380b91b92386', columnSpan: this.payoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.payoutsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '0c58d215c797798f87affb37d1f7622de3ca7407', class: "sticky-bottom" }, h("tr", { key: '9a3b39c8836bb817428bd307110fee62db8d7589', class: "table-light align-middle" }, h("td", { key: 'a3eef122632c9459d5fa31d4542b6b085645b738', part: tableCell, colSpan: this.payoutsTable.columnData.length }, h("pagination-menu", { key: '8d77a7e40f9e7c6770812ba8b45a6e0f5f57193e', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
183
182
  }
184
183
  static get watchers() { return {
185
184
  "pagingParams": ["updateOnPropChange"],
@@ -1,5 +1,5 @@
1
1
  import { h, proxyCustomElement, HTMLElement, createEvent } from '@stencil/core/internal/client';
2
- import { T as Table, a as TableLoadingState, b as TableEmptyState, c as TableErrorState } from './table.js';
2
+ import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types2.js';
3
3
  import { o as tableHeadCell, q as getAlternateTableCellPart, n as table, p as tableCell } from './parts.js';
4
4
  import './details.js';
5
5
  import './ComponentError.js';
@@ -23,7 +23,12 @@ const MapTerminalOrderStatusToBadge = (status) => {
23
23
  variant: BadgeVariant.SUCCESS,
24
24
  title: 'This order has been completed',
25
25
  text: 'Completed',
26
- }
26
+ },
27
+ created: {
28
+ variant: BadgeVariant.SECONDARY,
29
+ title: 'This order is created',
30
+ text: 'Created',
31
+ },
27
32
  };
28
33
  const badgeProps = statusToBadgeProps[status];
29
34
  return h(Badge, Object.assign({}, badgeProps));
@@ -53,78 +58,30 @@ const terminalOrdersTableCells = {
53
58
  quantity: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminalOrder.terminals.length)),
54
59
  };
55
60
 
56
- const id = null;
57
- const type = "array";
58
- const page_info = {
59
- has_previous: false,
60
- has_next: false,
61
- start_cursor: "mockCursorPage1",
62
- end_cursor: "mockCursorPage2",
63
- amount: 2
64
- };
65
- const data = [
66
- {
67
- id: "tord_ABCD1234",
68
- business_id: "biz_0987",
69
- account_id: "acc_5678",
70
- provider: "verifone",
71
- order_type: "boarding_only",
72
- order_status: "submitted",
73
- terminals: [
74
- {
75
- terminal_id: "tmn_QWER",
76
- terminal_did: "11112222",
77
- model_name: "v400"
78
- }
79
- ],
80
- created_at: "2025-01-02T10:30:00Z",
81
- updated_at: "2025-01-02T10:45:00Z"
82
- },
83
- {
84
- id: "tord_WXYZ5678",
85
- business_id: "biz_1234",
86
- account_id: "acc_4321",
87
- provider: "verifone",
88
- order_type: "boarding_shipping",
89
- order_status: "completed",
90
- terminals: [
91
- {
92
- terminal_id: "tmn_ASDF",
93
- terminal_did: "33334444",
94
- model_name: "e355"
95
- }
96
- ],
97
- created_at: "2025-02-10T09:20:00Z",
98
- updated_at: "2025-02-10T09:25:00Z"
99
- }
100
- ];
101
- const mockTerminalOrders = {
102
- id: id,
103
- type: type,
104
- page_info: page_info,
105
- data: data
106
- };
107
-
108
61
  const TerminalOrdersListCore = /*@__PURE__*/ proxyCustomElement(class TerminalOrdersListCore extends HTMLElement {
109
62
  constructor() {
110
63
  super();
111
64
  this.__registerHost();
65
+ this.clickEvent = createEvent(this, "click-event", 7);
112
66
  this.errorEvent = createEvent(this, "error-event", 7);
113
67
  this.handleClickPrevious = (beforeCursor) => {
114
68
  this.pagingParams = { before_cursor: beforeCursor };
69
+ this.clickEvent.emit({ name: TableClickActions.previous });
115
70
  };
116
71
  this.handleClickNext = (afterCursor) => {
117
72
  this.pagingParams = { after_cursor: afterCursor };
73
+ this.clickEvent.emit({ name: TableClickActions.next });
118
74
  };
119
75
  this.rowClickHandler = (e) => {
120
76
  const clickedOrderId = e.target.closest('tr').dataset.rowEntityId;
121
77
  if (!clickedOrderId)
122
78
  return;
123
- console.log('clickedOrderId', clickedOrderId);
79
+ const orderData = this.terminalOrders.find((order) => order.id === clickedOrderId);
80
+ this.clickEvent.emit({ name: TableClickActions.row, data: orderData });
124
81
  };
125
82
  this.getTerminalOrders = undefined;
126
83
  this.columns = undefined;
127
- this.terminalOrders = mockTerminalOrders.data;
84
+ this.terminalOrders = [];
128
85
  this.terminalOrdersTable = undefined;
129
86
  this.loading = true;
130
87
  this.errorMessage = undefined;
@@ -142,8 +99,23 @@ const TerminalOrdersListCore = /*@__PURE__*/ proxyCustomElement(class TerminalOr
142
99
  }
143
100
  fetchData() {
144
101
  this.loading = true;
145
- console.log('fetching terminal orders');
146
- this.loading = false;
102
+ this.getTerminalOrders({
103
+ params: {},
104
+ onSuccess: async ({ terminalOrders, pagingInfo }) => {
105
+ this.terminalOrders = terminalOrders;
106
+ this.paging = pagingInfo;
107
+ this.terminalOrdersTable.collectionData = this.terminalOrders;
108
+ },
109
+ onError: ({ error, code, severity }) => {
110
+ this.errorMessage = error;
111
+ this.errorEvent.emit({
112
+ errorCode: code,
113
+ message: error,
114
+ severity,
115
+ });
116
+ },
117
+ final: () => { this.loading = false; },
118
+ });
147
119
  }
148
120
  get entityId() {
149
121
  return this.terminalOrders.map((terminalOrder) => terminalOrder.id);
@@ -158,7 +130,7 @@ const TerminalOrdersListCore = /*@__PURE__*/ proxyCustomElement(class TerminalOr
158
130
  return !this.showEmptyState && !this.showErrorState && !this.loading;
159
131
  }
160
132
  render() {
161
- return (h("div", { key: 'e07bb592d2d419079a00fe017789c98dc5814202' }, h("div", { key: '1090df8ad75e0fdcd07a625c608c2fc0d38391d9', class: "table-wrapper" }, h("table", { key: '31637db0926f2cd88d1333d5f512842406b1e0ef', class: "table table-hover", part: table }, h("thead", { key: '2af2d35a486433b2cb2bab0b7d61d4be9e8d70ab', class: "table-head sticky-top" }, h("tr", { key: 'a42e578f3369b6466a331abeb34d63d9c09c0122', class: "table-light text-nowrap" }, this.terminalOrdersTable.columnData.map((column) => column))), h("tbody", { key: '16c4a9e940268fe2da49a9b14680d34a0f160ccc', class: "table-body" }, h(TableLoadingState, { key: 'a1ce6dcc9799bdd215b5d686d05e3014e594d975', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '135df5499de4e17855643d8ce4ebeb7f71aa5e85', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), h(TableErrorState, { key: '00d2f0bc0bceb46178970c1eb0a0eb87c6fa6054', columnSpan: this.terminalOrdersTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalOrdersTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '49ce37b7ea5e979c8d754d48b9c803a163623387', class: "sticky-bottom" }, h("tr", { key: 'b73f32023e01d82c3eb91120c7eae907a9367517', class: "table-light align-middle" }, h("td", { key: 'cae073d169507d459d60f150fecbaad287996c74', part: tableCell, colSpan: this.terminalOrdersTable.columnData.length }, h("pagination-menu", { key: '9a9fa1cd2c520ee09814adf6d060d048bd77dcc1', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
133
+ return (h("div", { key: 'ceeaed5590e1586fdbb568ae3e3efd0b9569bfe2' }, h("div", { key: '1324282d71ced0bc43e73722f0286ce35141d122', class: "table-wrapper" }, h("table", { key: '15648ceb92e0a0461809e8a64539935c6b095515', class: "table table-hover", part: table }, h("thead", { key: '15aff763ff1b972c8f578ae927459afdbd6544f9', class: "table-head sticky-top" }, h("tr", { key: '912564fcbdc5e827beacd09832fe0bb69408aee2', class: "table-light text-nowrap" }, this.terminalOrdersTable.columnData.map((column) => column))), h("tbody", { key: '2aa023da48163f637eabf32ed662e722e1ea0129', class: "table-body" }, h(TableLoadingState, { key: 'db59bd7cdbd9d955a7310134ffa7133a1aecac61', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '7396924a0bb453d13c709ff692c09a5d42a29389', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), h(TableErrorState, { key: '7d53ab680cd832c4b8b58297b9aa7e4d35c28fd1', columnSpan: this.terminalOrdersTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalOrdersTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: 'b4a1ca8efb71e67a5d41cebbf45367abe53a8943', class: "sticky-bottom" }, h("tr", { key: 'b3b2e69b93316738593fc6e30101266dc30a5af9', class: "table-light align-middle" }, h("td", { key: '5a2782c37a1606b34b1055088eb943dc2f93cce8', part: tableCell, colSpan: this.terminalOrdersTable.columnData.length }, h("pagination-menu", { key: '015d4d7aef4ab85b5dd3dac7563520d498747c04', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
162
134
  }
163
135
  static get watchers() { return {
164
136
  "pagingParams": ["updateOnPropChange"],
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { t as text, a6 as image, v as buttonLink } from './parts.js';
2
+ import { t as text, a4 as image, v as buttonLink } from './parts.js';
3
3
  import { d as defineCustomElement$2 } from './custom-popper2.js';
4
4
  import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
5
5
 
@@ -28,7 +28,7 @@ const TerminalQuantitySelector = /*@__PURE__*/ proxyCustomElement(class Terminal
28
28
  this.selectedQuantity = 0;
29
29
  }
30
30
  render() {
31
- return (h("div", { key: 'a357a6bd3454287325a10d381d4587c39552e2a6', class: "rounded shadow-sm", part: text }, h("div", { key: '9e34e99cf6f5cefd4ef28c0fb98ad163d331c5d8', class: "d-flex gap-3" }, h("div", { key: '2dad93d7ad2cdecfd0848862bfc6a30bf0900ae6', class: "d-flex align-items-center" }, h("img", { key: '91929adc5f870eb024226a90d699ae68705f80ec', src: this.imageUrl, alt: this.modelName, height: 125, width: 125, part: image })), h("div", { key: '2fdd8c22699c09830f20f39a86a1e306702dc435', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: 'f25c1fbe3b6bc4cb2f262e7acce3232e3a726d7d', class: "row" }, h("div", { key: 'b18358391814b283ee5f9f4984301a3c44340986', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: '2c2dc0b58140144b63be06ad273b9567ca107d9a', helpText: this.description })), h("div", { key: '7b20f58d55f9413d04185df7ecc04ebe37a3854e', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: '27d472613a8146985bfb2f7f9149ac97d71039a5', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: '45136a5b9dcb7aeeb58407f51fbb76c0f924ff93', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: 'e07c48829ebe9106d4a26e9a17728ecef01574b6', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
31
+ return (h("div", { key: '5bbf669ab479523290b2d8a9f5b6ec2000ff0f96', class: "rounded shadow-sm card p-2", part: text }, h("div", { key: '47ead96654c97aeae6b24058a4f7759918d3d0ad', class: "d-flex gap-3" }, h("div", { key: '3763eda68e7849c87f0e67b905e09267c10481c8', class: "d-flex align-items-center" }, h("img", { key: 'ef0a61d5c1d27c600fd93813b594ec2ec2fadec3', src: this.imageUrl, alt: this.modelName, height: 75, width: 75, part: image })), h("div", { key: '5a632f69e2045fbfcd35932af3c5fd027dcca66f', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: 'be00d142f07945a15e882d2da4c505ffbf67fe88', class: "row" }, h("div", { key: '1c434628ae872d22efa7d2adb611b04868c85eb1', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: '21f571a1b0e5ba7d528727f6476e134b9657e124', helpText: this.description })), h("div", { key: 'f4077bfa6beb4f0070bdbf4bd28021f88bcaf5b1', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: '7dc6853fb7641b99a9a9ee82dcb3db8fce1d6c01', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: 'faab14e72773f12f69ea69e855bafb27ef3328b8', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: '390e6b4b049fa64e2b7354a3676621844291feb0', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
32
32
  }
33
33
  }, [0, "terminal-quantity-selector", {
34
34
  "modelName": [1, "model-name"],
@@ -23,6 +23,11 @@ class TerminalService {
23
23
  const endpoint = 'terminals/order_models';
24
24
  return api.get(endpoint, null, null, headers);
25
25
  }
26
+ async orderTerminals(authToken, terminalOrder, apiOrigin = "") {
27
+ const api = Api({ authToken, apiOrigin });
28
+ const endpoint = 'terminals/orders';
29
+ return api.post(endpoint, terminalOrder);
30
+ }
26
31
  }
27
32
 
28
33
  export { TerminalService as T };
@@ -6,11 +6,10 @@ import './Payment.js';
6
6
  import './SubAccount.js';
7
7
  import './Document.js';
8
8
  import { o as tableHeadCell, q as getAlternateTableCellPart, n as table, p as tableCell } from './parts.js';
9
- import { T as Table, a as TableLoadingState, b as TableEmptyState, c as TableErrorState } from './table.js';
9
+ import { T as TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types2.js';
10
10
  import './details.js';
11
11
  import { B as Badge, a as BadgeVariant } from './badge.js';
12
12
  import { o as onQueryParamsChange, g as getRequestParams } from './terminals-list-params-state.js';
13
- import { T as TableClickActions } from './event-types2.js';
14
13
  import { d as defineCustomElement$1 } from './pagination-menu2.js';
15
14
 
16
15
  const MapTerminalStatusToBadge = (status) => {
@@ -173,7 +172,7 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
173
172
  return !this.showEmptyState && !this.showErrorState && !this.loading;
174
173
  }
175
174
  render() {
176
- return (h("div", { key: 'd700224838a23855b9cce179c23d40da07fd37ce' }, h("div", { key: '0a03d361d4482342edc5db06209f87a83735791f', class: "table-wrapper" }, h("table", { key: '690d3b7ea58065281171e005252d4969f6284719', class: "table table-hover", part: table }, h("thead", { key: 'c92fc6c7514afc995e0d4e148d715b69c96118cd', class: "table-head sticky-top" }, h("tr", { key: 'bfeff664d29eac8f52e12adf40841b74711e9de2', class: "table-light text-nowrap" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: '0e8c69e12b8a64020e1b10af92ce05f7e1864d28', class: "table-body" }, h(TableLoadingState, { key: '3fef62d6146938773a52c88f178438004d46f1eb', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'caec9eb5131fd8037e5cdccaf6c29d2f7f91ed7e', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: 'bd597887c2441bc070ff8ca9ec8d03564e62b9eb', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: 'ec61caec8ae1de6f106221f21827a89dfcad5b05', class: "sticky-bottom" }, h("tr", { key: 'e99c4133f365a7fefdc18d4a8bae9ac67b877fbd', class: "table-light align-middle" }, h("td", { key: 'ed22056d675baa32eef0bcc7fd2a4ae659d563aa', part: tableCell, colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: '8dffd0065bb7d74b43d2a56a5c0356d84301e58b', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
175
+ return (h("div", { key: '8831cfa38f962ba4dcf8903eca44931a800a9285' }, h("div", { key: '01d26a4aff98204ccc0fd4db8beb2cc2b021e386', class: "table-wrapper" }, h("table", { key: '036d4a14c61db9b406157425504112dabf4b04bd', class: "table table-hover", part: table }, h("thead", { key: '3782f1b66e447836d93e8b3cc28c09e4fe466ac7', class: "table-head sticky-top" }, h("tr", { key: '3842ccaaadbc3acf0c6caf8e8407aad17d91cae4', class: "table-light text-nowrap" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: 'e9f5f7ef0eca1da8ba7e684ba937f7357c8b341a', class: "table-body" }, h(TableLoadingState, { key: '2902cbb3cfa87cdc2ae242ef2cd1001b9b491503', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'f596f3498b67dd40d3a93cd6dfa091cbc67a4cc1', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: 'e6e67b174a7d8ca353990ae85decbe89539ea504', columnSpan: this.terminalsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.terminalsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '353ba88161fe40528c8ef21271b0ec1a23237264', class: "sticky-bottom" }, h("tr", { key: '6f16d82697452ef4bc1aafa27bb5076e1bb1af54', class: "table-light align-middle" }, h("td", { key: 'bec74cc91feea7eef3bdcd290c2d2e77f6852ad1', part: tableCell, colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: 'a7667abca02d28a40ef4c58d8b869b48f9746105', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
177
176
  }
178
177
  static get watchers() { return {
179
178
  "pagingParams": ["updateOnPropChange"],
@@ -0,0 +1,11 @@
1
+ export declare const makeGetTerminalOrders: ({ id, authToken, service, apiOrigin }: {
2
+ id: any;
3
+ authToken: any;
4
+ service: any;
5
+ apiOrigin: any;
6
+ }) => ({ params, onSuccess, onError, final }: {
7
+ params: any;
8
+ onSuccess: any;
9
+ onError: any;
10
+ final: any;
11
+ }) => Promise<any>;