@justifi/webcomponents 5.3.2 → 5.3.3

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 (596) hide show
  1. package/dist/cjs/{check-pkg-version-fe4c6467.js → Analytics-f448aa27.js} +8 -23
  2. package/dist/cjs/{Api-089e7501.js → Api-f5280a80.js} +0 -13
  3. package/dist/cjs/{Business-cfd6a2dd.js → Business-d88b77fd.js} +6 -2
  4. package/dist/cjs/{Checkout-0f1c8abe.js → Checkout-1c07dc32.js} +14 -7
  5. package/dist/cjs/{SubAccount-509ebf93.js → SubAccount-b4811a8e.js} +6 -9
  6. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  7. package/dist/cjs/{badge-ccfe03bf.js → badge-86a6a7f8.js} +1 -1
  8. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +9 -9
  9. package/dist/cjs/bank-account-form_9.cjs.entry.js +78 -5
  10. package/dist/cjs/billing-form_3.cjs.entry.js +11 -11
  11. package/dist/cjs/{business-additional-questions-schema-2cc0c6f7.js → business-additional-questions-schema-5c100f58.js} +1 -1
  12. package/dist/cjs/business-details-core.cjs.entry.js +3 -3
  13. package/dist/cjs/{business-form-options-4bcb8943.js → business-form-options-62e9c8ab.js} +1 -1
  14. package/dist/cjs/{business-identity-schema-7d462eb3.js → business-identity-schema-3b4d16f1.js} +1 -1
  15. package/dist/cjs/{business.service-33d7c7f2.js → business.service-6b05ee96.js} +8 -8
  16. package/dist/cjs/{button-8b634147.js → button-5f6c437f.js} +1 -1
  17. package/dist/cjs/check-pkg-version-d75dc147.js +24 -0
  18. package/dist/cjs/{checkout.service-d9047ddb.js → checkout.service-aa037531.js} +6 -6
  19. package/dist/cjs/checkouts-list-core.cjs.entry.js +16 -15
  20. package/dist/cjs/checkouts-list-params-state-644d3639.js +22 -0
  21. package/dist/cjs/{checkouts-table-efa1cbab.js → checkouts-table-cf3e245e.js} +2 -2
  22. package/dist/cjs/custom-popper_4.cjs.entry.js +8 -8
  23. package/dist/cjs/{dispute.service-739631c7.js → dispute.service-27dcd7f4.js} +7 -7
  24. package/dist/cjs/event-types-b6d34593.js +8 -0
  25. package/dist/cjs/form-alert_5.cjs.entry.js +3 -3
  26. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  27. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  28. package/dist/cjs/{form-control-error-text-46a7f2dd.js → form-control-error-text-9905e3b8.js} +1 -1
  29. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +4 -4
  30. package/dist/cjs/{form-control-help-text-98c882e3.js → form-control-help-text-8d031bfb.js} +1 -1
  31. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  32. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +4 -4
  33. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  34. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  35. package/dist/cjs/get-business-0bd063d2.js +34 -0
  36. package/dist/cjs/{get-payout-csv-bdaff21b.js → get-payout-csv-7646128d.js} +6 -15
  37. package/dist/cjs/{get-subaccounts-2db9fc01.js → get-subaccounts-cc933b3e.js} +4 -7
  38. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
  39. package/dist/cjs/{header-1-4c21f7ca.js → header-1-b202dbbb.js} +1 -1
  40. package/dist/cjs/{header-3-130206cc.js → header-3-5f78acd1.js} +1 -1
  41. package/dist/cjs/{insurance-state-21fde44f.js → insurance-state-ba0c39a9.js} +1 -1
  42. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +10 -10
  43. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +9 -9
  44. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +9 -9
  45. package/dist/cjs/justifi-business-details.cjs.entry.js +13 -38
  46. package/dist/cjs/justifi-business-form.cjs.entry.js +17 -16
  47. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  48. package/dist/cjs/justifi-checkout-core.cjs.entry.js +6 -6
  49. package/dist/cjs/justifi-checkout.cjs.entry.js +11 -10
  50. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +32 -9
  51. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +14 -13
  52. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  53. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  54. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -9
  55. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +15 -14
  56. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -7
  57. package/dist/cjs/justifi-order-terminals.cjs.entry.js +102 -0
  58. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +8 -8
  59. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -9
  60. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +2 -2
  61. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -6
  62. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
  63. package/dist/cjs/justifi-payments-list.cjs.entry.js +14 -13
  64. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -9
  65. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +20 -3
  66. package/dist/cjs/justifi-payouts-list.cjs.entry.js +15 -14
  67. package/dist/cjs/justifi-refund-form.cjs.entry.js +5 -5
  68. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +3 -3
  69. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +10 -9
  70. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +41 -0
  71. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +27 -6
  72. package/dist/cjs/justifi-terminals-list.cjs.entry.js +15 -20
  73. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +11 -10
  74. package/dist/cjs/loader.cjs.js +1 -1
  75. package/dist/cjs/{package-8b04bef0.js → package-a24ad889.js} +1 -1
  76. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  77. package/dist/cjs/{parts-b2ff8b68.js → parts-c2655003.js} +32 -1
  78. package/dist/cjs/payment-details-core.cjs.entry.js +12 -12
  79. package/dist/cjs/{payment.service-87924c1a.js → payment.service-65fbac72.js} +5 -8
  80. package/dist/cjs/payments-list-core.cjs.entry.js +17 -16
  81. package/dist/cjs/{payments-status-ec12ee6a.js → payments-status-92abe577.js} +1 -1
  82. package/dist/cjs/{payments-table-f3aa174d.js → payments-table-c58e3ca8.js} +2 -2
  83. package/dist/cjs/payout-details-core.cjs.entry.js +7 -7
  84. package/dist/cjs/payouts-list-core.cjs.entry.js +22 -17
  85. package/dist/cjs/payouts-list-params-state-033b76d6.js +22 -0
  86. package/dist/cjs/{payouts-status-9f2e9a3a.js → payouts-status-703d62af.js} +1 -1
  87. package/dist/cjs/{payouts-table-4efa53fa.js → payouts-table-70fc1498.js} +3 -3
  88. package/dist/cjs/{schema-validations-f948158d.js → schema-validations-47a256f4.js} +1 -1
  89. package/dist/cjs/{skeleton-0353466d.js → skeleton-84102a44.js} +1 -1
  90. package/dist/cjs/{spinner-4fc60a51.js → spinner-70f38e5e.js} +1 -1
  91. package/dist/cjs/{event-types-34b103b4.js → table-fc82fa81.js} +2 -9
  92. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  93. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +80 -0
  94. package/dist/cjs/terminal-orders-table-61081532.js +18 -0
  95. package/dist/cjs/terminals-list-core.cjs.entry.js +16 -15
  96. package/dist/cjs/terminals-list-params-state-236f06f6.js +22 -0
  97. package/dist/cjs/{terminals-table-5e4bce93.js → terminals-table-db58a0c0.js} +3 -3
  98. package/dist/cjs/{utils-134dda01.js → utils-7c5b2837.js} +1 -1
  99. package/dist/cjs/webcomponents.cjs.js +1 -1
  100. package/dist/collection/{api → actions/sub-account}/get-subaccounts.js +2 -3
  101. package/dist/collection/api/Analytics.js +5 -0
  102. package/dist/collection/api/Business.js +6 -2
  103. package/dist/collection/api/Checkout.js +8 -1
  104. package/dist/collection/api/Payout.js +0 -3
  105. package/dist/collection/api/Terminal.js +6 -6
  106. package/dist/collection/api/services/analytics.service.js +1 -2
  107. package/dist/collection/api/services/business.service.js +7 -8
  108. package/dist/collection/api/services/checkout.service.js +4 -5
  109. package/dist/collection/api/services/dispute.service.js +4 -5
  110. package/dist/collection/api/services/insurance.service.js +2 -3
  111. package/dist/collection/api/services/payment.service.js +2 -6
  112. package/dist/collection/api/services/payout.service.js +3 -13
  113. package/dist/collection/api/services/provision.service.js +1 -2
  114. package/dist/collection/api/services/reports.service.js +1 -2
  115. package/dist/collection/api/services/subaccounts.service.js +1 -5
  116. package/dist/collection/api/services/terminal.service.js +2 -9
  117. package/dist/collection/collection-manifest.json +3 -0
  118. package/dist/collection/components/business-details/business-details.js +1 -1
  119. package/dist/collection/components/business-forms/business-form/business-form.js +1 -2
  120. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +2 -3
  121. package/dist/collection/components/checkout/bank-account-form/bank-account-form-skeleton.js +10 -0
  122. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +24 -1
  123. package/dist/collection/components/checkout/card-form/card-form-skeleton.js +10 -0
  124. package/dist/collection/components/checkout/card-form/card-form.js +26 -1
  125. package/dist/collection/components/checkout/checkout.js +5 -6
  126. package/dist/collection/components/checkouts-list/checkouts-list-core.js +7 -9
  127. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +75 -9
  128. package/dist/collection/components/checkouts-list/checkouts-list-params-state.js +11 -5
  129. package/dist/collection/components/checkouts-list/checkouts-list.js +5 -6
  130. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  131. package/dist/collection/components/dispute-management/dispute-management.js +4 -5
  132. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  133. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  134. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  135. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  136. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  137. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +3 -4
  138. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  139. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  140. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  141. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  142. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  143. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  144. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +1 -1
  145. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +2 -2
  146. package/dist/collection/components/order-terminals/order-terminals-loading.js +6 -0
  147. package/dist/collection/components/order-terminals/order-terminals.js +139 -0
  148. package/dist/collection/components/payment-details/payment-details-core.js +7 -7
  149. package/dist/collection/components/payment-details/payment-details.js +1 -1
  150. package/dist/collection/components/payments-list/payments-list-core.js +7 -7
  151. package/dist/collection/components/payments-list/payments-list-filters.js +3 -3
  152. package/dist/collection/components/payments-list/payments-list.js +4 -5
  153. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  154. package/dist/collection/components/payout-details/payout-details.js +1 -1
  155. package/dist/collection/components/payouts-list/payouts-list-core.js +12 -10
  156. package/dist/collection/components/payouts-list/payouts-list-filters.js +58 -3
  157. package/dist/collection/components/payouts-list/payouts-list-params-state.js +11 -5
  158. package/dist/collection/components/payouts-list/payouts-list.js +5 -6
  159. package/dist/collection/components/payouts-list/payouts-table.js +1 -1
  160. package/dist/collection/components/refund-form/refund-form.js +2 -3
  161. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +141 -0
  162. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +113 -0
  163. package/dist/collection/components/terminal-orders-list/terminal-orders-table.js +11 -0
  164. package/dist/collection/components/terminals-list/terminals-list-core.js +7 -9
  165. package/dist/collection/components/terminals-list/terminals-list-filters.js +64 -6
  166. package/dist/collection/components/terminals-list/terminals-list-params-state.js +11 -5
  167. package/dist/collection/components/terminals-list/terminals-list.js +5 -6
  168. package/dist/collection/components/terminals-list/terminals-table.js +1 -1
  169. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -4
  170. package/dist/collection/styles/parts.js +19 -0
  171. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  172. package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
  173. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  174. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  175. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  176. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  177. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  178. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  179. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  180. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  181. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  182. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  183. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  184. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  185. package/dist/collection/ui-components/form/iframe-input.js +23 -7
  186. package/dist/docs.json +515 -14
  187. package/dist/esm/{check-pkg-version-e2273f4f.js → Analytics-c083a998.js} +9 -23
  188. package/dist/esm/{Api-97801a4b.js → Api-391d00e2.js} +1 -13
  189. package/dist/esm/{Business-29c69f22.js → Business-0855931c.js} +6 -2
  190. package/dist/esm/{Checkout-8325c97a.js → Checkout-919eb1ba.js} +9 -2
  191. package/dist/esm/{ComponentError-3ce7f437.js → ComponentError-c61dce41.js} +1 -1
  192. package/dist/esm/{SubAccount-a73bf971.js → SubAccount-9aad3891.js} +7 -10
  193. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  194. package/dist/esm/{badge-938ba4b1.js → badge-2eb79416.js} +1 -1
  195. package/dist/esm/bank-account-document-form-inputs_4.entry.js +10 -10
  196. package/dist/esm/bank-account-form_9.entry.js +79 -6
  197. package/dist/esm/billing-form_3.entry.js +12 -12
  198. package/dist/esm/{business-additional-questions-schema-60e9b76a.js → business-additional-questions-schema-df76728f.js} +1 -1
  199. package/dist/esm/business-details-core.entry.js +3 -3
  200. package/dist/esm/{business-form-options-018f62a5.js → business-form-options-86a13078.js} +1 -1
  201. package/dist/esm/{business-identity-schema-191d85c2.js → business-identity-schema-0a78fc59.js} +1 -1
  202. package/dist/esm/{business.service-45c7df3c.js → business.service-98709b1e.js} +8 -8
  203. package/dist/esm/{button-4b3f3934.js → button-cc455199.js} +1 -1
  204. package/dist/esm/check-pkg-version-6d475fed.js +22 -0
  205. package/dist/esm/{checkout.service-36e3355e.js → checkout.service-9330c18a.js} +7 -7
  206. package/dist/esm/checkouts-list-core.entry.js +16 -15
  207. package/dist/esm/checkouts-list-params-state-7bdf00bd.js +16 -0
  208. package/dist/esm/{checkouts-table-1634366d.js → checkouts-table-53981285.js} +2 -2
  209. package/dist/esm/custom-popper_4.entry.js +8 -8
  210. package/dist/esm/{dispute.service-9b9b87e5.js → dispute.service-a14ac172.js} +8 -8
  211. package/dist/esm/event-types-0a83d0b4.js +8 -0
  212. package/dist/esm/form-alert_5.entry.js +3 -3
  213. package/dist/esm/form-control-checkbox.entry.js +5 -5
  214. package/dist/esm/form-control-date.entry.js +4 -4
  215. package/dist/esm/{form-control-error-text-b3d14e92.js → form-control-error-text-74c6b38a.js} +1 -1
  216. package/dist/esm/form-control-file-v2_2.entry.js +4 -4
  217. package/dist/esm/{form-control-help-text-7b07fc37.js → form-control-help-text-76a4196e.js} +1 -1
  218. package/dist/esm/form-control-monetary.entry.js +5 -5
  219. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  220. package/dist/esm/form-control-number.entry.js +5 -5
  221. package/dist/esm/form-control-radio.entry.js +3 -3
  222. package/dist/esm/get-business-464419f6.js +32 -0
  223. package/dist/esm/{get-payout-csv-80210301.js → get-payout-csv-87cc2147.js} +8 -17
  224. package/dist/esm/{get-subaccounts-d3eeb85d.js → get-subaccounts-26454771.js} +6 -9
  225. package/dist/esm/gross-payment-chart-core.entry.js +4 -4
  226. package/dist/esm/{header-1-4db0c986.js → header-1-797ca789.js} +1 -1
  227. package/dist/esm/{header-3-fd150ccf.js → header-3-544afa0b.js} +1 -1
  228. package/dist/esm/{insurance-state-529e2d0d.js → insurance-state-307335d6.js} +1 -1
  229. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +11 -11
  230. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +12 -12
  231. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  232. package/dist/esm/justifi-business-details.entry.js +11 -36
  233. package/dist/esm/justifi-business-form.entry.js +17 -16
  234. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  235. package/dist/esm/justifi-checkout-core.entry.js +7 -7
  236. package/dist/esm/justifi-checkout.entry.js +12 -11
  237. package/dist/esm/justifi-checkouts-list-filters.entry.js +32 -9
  238. package/dist/esm/justifi-checkouts-list.entry.js +15 -14
  239. package/dist/esm/justifi-details.entry.js +2 -2
  240. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  241. package/dist/esm/justifi-dispute-management.entry.js +11 -10
  242. package/dist/esm/justifi-dispute-notification_3.entry.js +16 -15
  243. package/dist/esm/justifi-gross-payment-chart.entry.js +9 -8
  244. package/dist/esm/justifi-order-terminals.entry.js +98 -0
  245. package/dist/esm/justifi-owner-form_3.entry.js +11 -11
  246. package/dist/esm/justifi-payment-details.entry.js +11 -10
  247. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  248. package/dist/esm/justifi-payment-provisioning.entry.js +9 -8
  249. package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
  250. package/dist/esm/justifi-payments-list.entry.js +15 -14
  251. package/dist/esm/justifi-payout-details.entry.js +11 -10
  252. package/dist/esm/justifi-payouts-list-filters.entry.js +20 -3
  253. package/dist/esm/justifi-payouts-list.entry.js +16 -15
  254. package/dist/esm/justifi-refund-form.entry.js +6 -6
  255. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +3 -3
  256. package/dist/esm/justifi-season-interruption-insurance.entry.js +11 -10
  257. package/dist/esm/justifi-terminal-orders-list.entry.js +37 -0
  258. package/dist/esm/justifi-terminals-list-filters.entry.js +27 -6
  259. package/dist/esm/justifi-terminals-list.entry.js +16 -21
  260. package/dist/esm/justifi-tokenize-payment-method.entry.js +11 -10
  261. package/dist/esm/loader.js +1 -1
  262. package/dist/esm/{package-a8e8f775.js → package-13968013.js} +1 -1
  263. package/dist/esm/pagination-menu.entry.js +1 -1
  264. package/dist/esm/{parts-ab2bb4b5.js → parts-489f0af6.js} +21 -1
  265. package/dist/esm/payment-details-core.entry.js +12 -12
  266. package/dist/esm/{payment-provisioning-actions-726795a0.js → payment-provisioning-actions-beadac34.js} +2 -2
  267. package/dist/esm/{payment.service-c847c1f6.js → payment.service-35bbab8f.js} +6 -9
  268. package/dist/esm/payments-list-core.entry.js +17 -16
  269. package/dist/esm/{payments-status-abf1724b.js → payments-status-35255b2c.js} +1 -1
  270. package/dist/esm/{payments-table-88fbab49.js → payments-table-6e97396a.js} +2 -2
  271. package/dist/esm/payout-details-core.entry.js +7 -7
  272. package/dist/esm/payouts-list-core.entry.js +22 -17
  273. package/dist/esm/payouts-list-params-state-ebcee300.js +16 -0
  274. package/dist/esm/{payouts-status-d9987a8a.js → payouts-status-a0cc00c5.js} +1 -1
  275. package/dist/esm/{payouts-table-055d3633.js → payouts-table-6b8ba8f1.js} +3 -3
  276. package/dist/esm/{schema-validations-38e8bc7b.js → schema-validations-b1aec6a0.js} +1 -1
  277. package/dist/esm/{skeleton-ee7c3b32.js → skeleton-74fbfb68.js} +1 -1
  278. package/dist/esm/{spinner-8ec6669a.js → spinner-6b708842.js} +1 -1
  279. package/dist/esm/{event-types-fd7a05d9.js → table-e287f1c0.js} +3 -10
  280. package/dist/esm/table-filters-menu.entry.js +3 -3
  281. package/dist/esm/terminal-orders-list-core.entry.js +76 -0
  282. package/dist/esm/terminal-orders-table-765c44d5.js +14 -0
  283. package/dist/esm/terminals-list-core.entry.js +16 -15
  284. package/dist/esm/terminals-list-params-state-e4b2ec23.js +16 -0
  285. package/dist/esm/{terminals-table-2963e65b.js → terminals-table-c6258344.js} +3 -3
  286. package/dist/esm/{utils-c2dc83b2.js → utils-6c26bccc.js} +1 -1
  287. package/dist/esm/{utils-b10dae27.js → utils-fd99b806.js} +1 -1
  288. package/dist/esm/webcomponents.js +1 -1
  289. package/dist/module/Analytics.js +82 -0
  290. package/dist/module/{config.js → Api.js} +1 -13
  291. package/dist/module/Business.js +6 -2
  292. package/dist/module/Checkout.js +9 -2
  293. package/dist/module/SubAccount.js +7 -10
  294. package/dist/module/additional-statement.js +1 -1
  295. package/dist/module/bank-account-form2.js +37 -2
  296. package/dist/module/business-terms-conditions-form-step.js +3 -3
  297. package/dist/module/business.service.js +8 -8
  298. package/dist/module/cancellation-policy.js +1 -1
  299. package/dist/module/card-form2.js +43 -2
  300. package/dist/module/check-pkg-version.js +1 -75
  301. package/dist/module/checkout.service.js +4 -4
  302. package/dist/module/checkouts-list-core2.js +9 -9
  303. package/dist/module/checkouts-list-params-state.js +11 -5
  304. package/dist/module/custom-popper2.js +2 -2
  305. package/dist/module/customer-details.js +1 -1
  306. package/dist/module/dispute-management-core.js +1 -1
  307. package/dist/module/dispute-notification.js +2 -2
  308. package/dist/module/dispute-response-actions.js +5 -5
  309. package/dist/module/dispute-response-core.js +2 -2
  310. package/dist/module/dispute-response.js +4 -4
  311. package/dist/module/duplicate-charge.js +1 -1
  312. package/dist/module/electronic-evidence.js +1 -1
  313. package/dist/module/event-types2.js +1 -55
  314. package/dist/module/form-control-checkbox2.js +2 -2
  315. package/dist/module/form-control-date2.js +2 -2
  316. package/dist/module/form-control-file-v22.js +1 -1
  317. package/dist/module/form-control-file2.js +2 -2
  318. package/dist/module/form-control-monetary2.js +2 -2
  319. package/dist/module/form-control-number-masked2.js +2 -2
  320. package/dist/module/form-control-number.js +2 -2
  321. package/dist/module/form-control-radio2.js +2 -2
  322. package/dist/module/form-control-select2.js +2 -2
  323. package/dist/module/form-control-text2.js +2 -2
  324. package/dist/module/form-control-textarea2.js +2 -2
  325. package/dist/module/get-business.js +32 -0
  326. package/dist/module/get-payout-csv.js +4 -13
  327. package/dist/module/get-subaccounts.js +2 -5
  328. package/dist/module/gross-payment-chart-core2.js +1 -1
  329. package/dist/module/hidden-input2.js +1 -1
  330. package/dist/module/iframe-input2.js +6 -7
  331. package/dist/module/justifi-business-details.js +4 -31
  332. package/dist/module/justifi-business-form.js +4 -3
  333. package/dist/module/justifi-checkout.js +5 -5
  334. package/dist/module/justifi-checkouts-list-filters.js +34 -10
  335. package/dist/module/justifi-checkouts-list.js +4 -4
  336. package/dist/module/justifi-dispute-management.js +4 -4
  337. package/dist/module/justifi-gross-payment-chart.js +4 -3
  338. package/dist/module/justifi-order-terminals.d.ts +11 -0
  339. package/dist/module/justifi-order-terminals.js +119 -0
  340. package/dist/module/justifi-payment-details.js +2 -1
  341. package/dist/module/justifi-payment-provisioning.js +4 -3
  342. package/dist/module/justifi-payments-list-filters.js +3 -3
  343. package/dist/module/justifi-payments-list.js +4 -4
  344. package/dist/module/justifi-payout-details.js +2 -1
  345. package/dist/module/justifi-payouts-list-filters.js +24 -4
  346. package/dist/module/justifi-payouts-list.js +4 -4
  347. package/dist/module/justifi-refund-form.js +3 -3
  348. package/dist/module/justifi-season-interruption-insurance.js +6 -5
  349. package/dist/module/justifi-terminal-orders-list.d.ts +11 -0
  350. package/dist/module/justifi-terminal-orders-list.js +73 -0
  351. package/dist/module/justifi-terminals-list-filters.js +29 -7
  352. package/dist/module/justifi-terminals-list.js +7 -12
  353. package/dist/module/justifi-tokenize-payment-method.js +4 -4
  354. package/dist/module/package.js +1 -1
  355. package/dist/module/parts.js +21 -1
  356. package/dist/module/payment-details-core2.js +7 -7
  357. package/dist/module/payment.service.js +3 -6
  358. package/dist/module/payments-list-core2.js +9 -8
  359. package/dist/module/payout-details-core2.js +1 -1
  360. package/dist/module/payouts-list-core2.js +15 -11
  361. package/dist/module/payouts-list-params-state.js +11 -5
  362. package/dist/module/product-or-service.js +1 -1
  363. package/dist/module/refund-policy.js +1 -1
  364. package/dist/module/shipping-details.js +1 -1
  365. package/dist/module/table-filters-menu2.js +2 -2
  366. package/dist/module/table.js +55 -0
  367. package/dist/module/terminal-orders-list-core.d.ts +11 -0
  368. package/dist/module/terminal-orders-list-core.js +6 -0
  369. package/dist/module/terminal-orders-list-core2.js +117 -0
  370. package/dist/module/terminals-list-core2.js +10 -10
  371. package/dist/module/terminals-list-params-state.js +11 -5
  372. package/dist/types/api/Business.d.ts +4 -4
  373. package/dist/types/api/Checkout.d.ts +6 -1
  374. package/dist/types/api/Payout.d.ts +0 -1
  375. package/dist/types/api/Terminal.d.ts +6 -12
  376. package/dist/types/components/checkout/bank-account-form/bank-account-form-skeleton.d.ts +6 -0
  377. package/dist/types/components/checkout/bank-account-form/bank-account-form.d.ts +2 -0
  378. package/dist/types/components/checkout/card-form/card-form-skeleton.d.ts +6 -0
  379. package/dist/types/components/checkout/card-form/card-form.d.ts +2 -0
  380. package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +1 -1
  381. package/dist/types/components/checkouts-list/checkouts-list-filters.d.ts +5 -2
  382. package/dist/types/components/checkouts-list/checkouts-list-params-state.d.ts +4 -3
  383. package/dist/types/components/order-terminals/order-terminals-loading.d.ts +1 -0
  384. package/dist/types/components/order-terminals/order-terminals.d.ts +16 -0
  385. package/dist/types/components/payments-list/payments-list-core.d.ts +1 -1
  386. package/dist/types/components/payouts-list/payouts-list-core.d.ts +1 -1
  387. package/dist/types/components/payouts-list/payouts-list-filters.d.ts +3 -0
  388. package/dist/types/components/payouts-list/payouts-list-params-state.d.ts +4 -3
  389. package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +25 -0
  390. package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +11 -0
  391. package/dist/types/components/terminal-orders-list/terminal-orders-table.d.ts +9 -0
  392. package/dist/types/components/terminals-list/terminals-list-core.d.ts +1 -1
  393. package/dist/types/components/terminals-list/terminals-list-filters.d.ts +4 -1
  394. package/dist/types/components/terminals-list/terminals-list-params-state.d.ts +4 -3
  395. package/dist/types/components.d.ts +117 -2
  396. package/dist/types/styles/parts.d.ts +14 -0
  397. package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
  398. package/dist/webcomponents/p-020e7d5d.entry.js +1 -0
  399. package/dist/webcomponents/{p-0f6ae5ea.entry.js → p-060896c4.entry.js} +1 -1
  400. package/dist/webcomponents/{p-298e290e.js → p-06f5b709.js} +1 -1
  401. package/dist/webcomponents/p-092515e0.js +1 -0
  402. package/dist/webcomponents/{p-94eba309.js → p-09496255.js} +1 -1
  403. package/dist/webcomponents/p-0b38cfbf.js +1 -0
  404. package/dist/webcomponents/p-0c768ac5.entry.js +1 -0
  405. package/dist/webcomponents/p-0e180654.js +1 -0
  406. package/dist/webcomponents/p-0f0c5556.entry.js +1 -0
  407. package/dist/webcomponents/{p-f19f9f61.js → p-1278dedf.js} +1 -1
  408. package/dist/webcomponents/p-15675401.entry.js +1 -0
  409. package/dist/webcomponents/p-185181a8.js +1 -0
  410. package/dist/webcomponents/{p-5bf4535a.entry.js → p-19063270.entry.js} +1 -1
  411. package/dist/webcomponents/p-1906c67d.entry.js +1 -0
  412. package/dist/webcomponents/p-1a2eea29.entry.js +1 -0
  413. package/dist/webcomponents/p-1f4e26f3.entry.js +1 -0
  414. package/dist/webcomponents/p-1f99a902.js +1 -0
  415. package/dist/webcomponents/{p-bada4783.entry.js → p-235abbd1.entry.js} +1 -1
  416. package/dist/webcomponents/p-245819b0.entry.js +1 -0
  417. package/dist/webcomponents/p-26864218.entry.js +1 -0
  418. package/dist/webcomponents/p-27c72b92.entry.js +1 -0
  419. package/dist/webcomponents/p-2e0ae487.js +1 -0
  420. package/dist/webcomponents/p-2f9af679.js +1 -0
  421. package/dist/webcomponents/{p-21431a04.js → p-300a99ee.js} +1 -1
  422. package/dist/webcomponents/p-309dc8aa.js +1 -0
  423. package/dist/webcomponents/p-32ca779f.js +1 -0
  424. package/dist/webcomponents/p-375b4d2c.entry.js +1 -0
  425. package/dist/webcomponents/p-37b7b200.entry.js +1 -0
  426. package/dist/webcomponents/p-389e1eb7.js +1 -0
  427. package/dist/webcomponents/p-3a7a2a64.entry.js +1 -0
  428. package/dist/webcomponents/p-3ab7a49e.entry.js +1 -0
  429. package/dist/webcomponents/{p-938993c7.js → p-3b680e50.js} +1 -1
  430. package/dist/webcomponents/p-3bb21097.entry.js +1 -0
  431. package/dist/webcomponents/p-3d486f37.entry.js +1 -0
  432. package/dist/webcomponents/p-42a48c59.js +1 -0
  433. package/dist/webcomponents/p-45bf8573.js +1 -0
  434. package/dist/webcomponents/p-49df4962.entry.js +1 -0
  435. package/dist/webcomponents/{p-ab1504b6.entry.js → p-4a71c90b.entry.js} +1 -1
  436. package/dist/webcomponents/{p-b0b40bcd.js → p-4acf8ca2.js} +1 -1
  437. package/dist/webcomponents/p-4b6256e0.entry.js +1 -0
  438. package/dist/webcomponents/p-553dba95.entry.js +1 -0
  439. package/dist/webcomponents/p-595479da.entry.js +1 -0
  440. package/dist/webcomponents/p-5a96a2a2.entry.js +1 -0
  441. package/dist/webcomponents/{p-275f2154.js → p-5d1d2fd7.js} +1 -1
  442. package/dist/webcomponents/p-61b5417f.entry.js +1 -0
  443. package/dist/webcomponents/p-66ae2a0e.entry.js +1 -0
  444. package/dist/webcomponents/p-69242bad.entry.js +1 -0
  445. package/dist/webcomponents/p-73b98298.entry.js +1 -0
  446. package/dist/webcomponents/p-78a204f9.entry.js +1 -0
  447. package/dist/webcomponents/p-794cce10.entry.js +1 -0
  448. package/dist/webcomponents/{p-b2edb944.js → p-7bf21156.js} +1 -1
  449. package/dist/webcomponents/p-7c541199.entry.js +1 -0
  450. package/dist/webcomponents/p-7ee5a90e.entry.js +1 -0
  451. package/dist/webcomponents/p-87a7c3aa.js +1 -0
  452. package/dist/webcomponents/{p-8115b2f4.js → p-87f8c596.js} +1 -1
  453. package/dist/webcomponents/{p-5afefc50.entry.js → p-89ecfbf4.entry.js} +2 -2
  454. package/dist/webcomponents/{p-3e716e03.js → p-8a7266b4.js} +1 -1
  455. package/dist/webcomponents/{p-8f25f016.js → p-8b16a20f.js} +1 -1
  456. package/dist/webcomponents/p-8bedece0.entry.js +1 -0
  457. package/dist/webcomponents/{p-e63fdbca.js → p-906a6027.js} +1 -1
  458. package/dist/webcomponents/p-939d0a35.entry.js +1 -0
  459. package/dist/webcomponents/{p-27c8ffa2.js → p-95e55bb1.js} +1 -1
  460. package/dist/webcomponents/p-95fbb4b0.entry.js +1 -0
  461. package/dist/webcomponents/p-9a4d0e1d.entry.js +1 -0
  462. package/dist/webcomponents/{p-14c91ffd.js → p-9dd8685c.js} +1 -1
  463. package/dist/webcomponents/p-9edd6ad8.js +1 -0
  464. package/dist/webcomponents/p-a0082e77.entry.js +1 -0
  465. package/dist/webcomponents/{p-1820fd87.entry.js → p-a31ba276.entry.js} +1 -1
  466. package/dist/webcomponents/p-a90d8f4f.entry.js +1 -0
  467. package/dist/webcomponents/p-ab45511e.js +1 -0
  468. package/dist/webcomponents/p-b1aa7d2b.entry.js +1 -0
  469. package/dist/webcomponents/p-b2d57b2c.entry.js +1 -0
  470. package/dist/webcomponents/p-b7084adc.js +1 -0
  471. package/dist/webcomponents/{p-f2f2e20e.js → p-b84ee6d8.js} +1 -1
  472. package/dist/webcomponents/p-c4ca0038.js +1 -0
  473. package/dist/webcomponents/p-c78b5581.js +1 -0
  474. package/dist/webcomponents/{p-0ea387a2.js → p-c9b78275.js} +1 -1
  475. package/dist/webcomponents/p-cba89310.entry.js +1 -0
  476. package/dist/webcomponents/p-cbb6cc19.js +1 -0
  477. package/dist/webcomponents/p-cbe05f11.js +1 -0
  478. package/dist/webcomponents/p-cc552f59.entry.js +1 -0
  479. package/dist/webcomponents/p-d398ce81.js +1 -0
  480. package/dist/webcomponents/p-d432f0fd.entry.js +1 -0
  481. package/dist/webcomponents/{p-849c68e5.js → p-d43a38a4.js} +1 -1
  482. package/dist/webcomponents/p-d5c41ec6.js +1 -0
  483. package/dist/webcomponents/{p-db37b175.entry.js → p-e007002a.entry.js} +1 -1
  484. package/dist/webcomponents/p-e15f749c.entry.js +1 -0
  485. package/dist/webcomponents/{p-1882d7d6.entry.js → p-e3e0d791.entry.js} +1 -1
  486. package/dist/webcomponents/p-e8cd9691.js +1 -0
  487. package/dist/webcomponents/{p-5baec916.entry.js → p-e8fc36c1.entry.js} +1 -1
  488. package/dist/webcomponents/p-e9e80a62.js +1 -0
  489. package/dist/webcomponents/{p-2710884e.entry.js → p-ea0f2446.entry.js} +1 -1
  490. package/dist/webcomponents/p-ebbe93ac.entry.js +1 -0
  491. package/dist/webcomponents/p-ec019b89.js +1 -0
  492. package/dist/webcomponents/p-edae0bb0.entry.js +1 -0
  493. package/dist/webcomponents/p-f162c569.entry.js +1 -0
  494. package/dist/webcomponents/p-f30cb232.js +1 -0
  495. package/dist/webcomponents/p-f4739d31.js +1 -0
  496. package/dist/webcomponents/{p-facada09.entry.js → p-f7d9ea0b.entry.js} +1 -1
  497. package/dist/webcomponents/{p-3e0f3d87.entry.js → p-fea43254.entry.js} +1 -1
  498. package/dist/webcomponents/webcomponents.esm.js +1 -1
  499. package/package.json +1 -1
  500. package/dist/cjs/checkouts-list-params-state-418c75a3.js +0 -14
  501. package/dist/cjs/payouts-list-params-state-16348184.js +0 -14
  502. package/dist/cjs/terminals-list-params-state-95ff6a64.js +0 -14
  503. package/dist/config.js +0 -11
  504. package/dist/esm/checkouts-list-params-state-1d968971.js +0 -10
  505. package/dist/esm/payouts-list-params-state-49618e7a.js +0 -10
  506. package/dist/esm/terminals-list-params-state-2c48d35f.js +0 -10
  507. package/dist/types/home/runner/work/web-component-library/web-component-library/packages/webcomponents/.stencil/packages/webcomponents/config.d.ts +0 -11
  508. package/dist/webcomponents/p-01d4e35a.js +0 -1
  509. package/dist/webcomponents/p-02d36485.entry.js +0 -1
  510. package/dist/webcomponents/p-045d4ebf.entry.js +0 -1
  511. package/dist/webcomponents/p-08d87a52.entry.js +0 -1
  512. package/dist/webcomponents/p-0e68b7d6.entry.js +0 -1
  513. package/dist/webcomponents/p-131db5d1.entry.js +0 -1
  514. package/dist/webcomponents/p-1603fe4d.js +0 -1
  515. package/dist/webcomponents/p-16ba9bea.js +0 -1
  516. package/dist/webcomponents/p-18a7a9e6.entry.js +0 -1
  517. package/dist/webcomponents/p-1e8a1e01.entry.js +0 -1
  518. package/dist/webcomponents/p-25c9c88c.entry.js +0 -1
  519. package/dist/webcomponents/p-2916bb62.entry.js +0 -1
  520. package/dist/webcomponents/p-2f94d478.entry.js +0 -1
  521. package/dist/webcomponents/p-31e2d12c.entry.js +0 -1
  522. package/dist/webcomponents/p-35b00a0d.js +0 -1
  523. package/dist/webcomponents/p-39696abd.entry.js +0 -1
  524. package/dist/webcomponents/p-40e23b13.js +0 -1
  525. package/dist/webcomponents/p-40eabfca.entry.js +0 -1
  526. package/dist/webcomponents/p-44d2c762.entry.js +0 -1
  527. package/dist/webcomponents/p-4810f227.entry.js +0 -1
  528. package/dist/webcomponents/p-485814d8.entry.js +0 -1
  529. package/dist/webcomponents/p-4bad3621.js +0 -1
  530. package/dist/webcomponents/p-57206dc4.entry.js +0 -1
  531. package/dist/webcomponents/p-58f5e37b.entry.js +0 -1
  532. package/dist/webcomponents/p-5b72bab7.js +0 -1
  533. package/dist/webcomponents/p-62696f63.entry.js +0 -1
  534. package/dist/webcomponents/p-63a8b08f.entry.js +0 -1
  535. package/dist/webcomponents/p-63caad6e.entry.js +0 -1
  536. package/dist/webcomponents/p-66b6c56b.js +0 -1
  537. package/dist/webcomponents/p-67b75e01.entry.js +0 -1
  538. package/dist/webcomponents/p-68bf1a1d.entry.js +0 -1
  539. package/dist/webcomponents/p-6d2c8be2.entry.js +0 -1
  540. package/dist/webcomponents/p-72992c97.entry.js +0 -1
  541. package/dist/webcomponents/p-7b04f492.entry.js +0 -1
  542. package/dist/webcomponents/p-7bcec768.entry.js +0 -1
  543. package/dist/webcomponents/p-7c31ec70.js +0 -1
  544. package/dist/webcomponents/p-8da3667c.js +0 -1
  545. package/dist/webcomponents/p-933537ca.js +0 -1
  546. package/dist/webcomponents/p-9540d2f2.js +0 -1
  547. package/dist/webcomponents/p-960a8ec2.js +0 -1
  548. package/dist/webcomponents/p-98dad117.entry.js +0 -1
  549. package/dist/webcomponents/p-9ad6e792.entry.js +0 -1
  550. package/dist/webcomponents/p-9f773228.js +0 -1
  551. package/dist/webcomponents/p-a2076a0e.js +0 -1
  552. package/dist/webcomponents/p-a47c14cb.entry.js +0 -1
  553. package/dist/webcomponents/p-aa02cf71.js +0 -1
  554. package/dist/webcomponents/p-b01405ab.entry.js +0 -1
  555. package/dist/webcomponents/p-b15ad5df.js +0 -1
  556. package/dist/webcomponents/p-b2209632.entry.js +0 -1
  557. package/dist/webcomponents/p-b6e90400.entry.js +0 -1
  558. package/dist/webcomponents/p-c75481bf.entry.js +0 -1
  559. package/dist/webcomponents/p-d0bde1cb.js +0 -1
  560. package/dist/webcomponents/p-d8c04275.js +0 -1
  561. package/dist/webcomponents/p-dd867d1f.js +0 -1
  562. package/dist/webcomponents/p-ddcd2ff7.entry.js +0 -1
  563. package/dist/webcomponents/p-e22df884.entry.js +0 -1
  564. package/dist/webcomponents/p-e8c3c23f.js +0 -1
  565. package/dist/webcomponents/p-e8d0f978.entry.js +0 -1
  566. package/dist/webcomponents/p-f0c0cbc8.entry.js +0 -1
  567. package/dist/webcomponents/p-f694e1c8.js +0 -1
  568. package/dist/webcomponents/p-fa2b405c.entry.js +0 -1
  569. package/dist/webcomponents/p-fbe16023.entry.js +0 -1
  570. package/dist/webcomponents/p-fdbcd486.js +0 -1
  571. package/dist/webcomponents/p-ff955a18.entry.js +0 -1
  572. /package/dist/collection/{components/business-details → actions/business}/get-business.js +0 -0
  573. /package/dist/collection/{components → actions}/checkout/checkout-actions.js +0 -0
  574. /package/dist/collection/{components/checkouts-list → actions/checkout}/get-checkouts.js +0 -0
  575. /package/dist/collection/{components/dispute-management → actions/dispute}/dispute-actions.js +0 -0
  576. /package/dist/collection/{components/gross-payment-chart → actions/gross-payment}/get-gross-payment-chart-data.js +0 -0
  577. /package/dist/collection/{components → actions}/insurance/insurance-actions.js +0 -0
  578. /package/dist/collection/{components/payment-details → actions/payment}/get-payment-details.js +0 -0
  579. /package/dist/collection/{components/payments-list → actions/payment}/get-payments.js +0 -0
  580. /package/dist/collection/{components/payout-details → actions/payout}/get-payout-details.js +0 -0
  581. /package/dist/collection/{components/payouts-list → actions/payout}/get-payouts.js +0 -0
  582. /package/dist/collection/{components/terminals-list → actions/terminal}/get-terminal-detail.js +0 -0
  583. /package/dist/collection/{components/terminals-list → actions/terminal}/get-terminals.js +0 -0
  584. /package/dist/types/{components/business-details → actions/business}/get-business.d.ts +0 -0
  585. /package/dist/types/{components → actions}/checkout/checkout-actions.d.ts +0 -0
  586. /package/dist/types/{components/checkouts-list → actions/checkout}/get-checkouts.d.ts +0 -0
  587. /package/dist/types/{components/dispute-management → actions/dispute}/dispute-actions.d.ts +0 -0
  588. /package/dist/types/{components/gross-payment-chart → actions/gross-payment}/get-gross-payment-chart-data.d.ts +0 -0
  589. /package/dist/types/{components → actions}/insurance/insurance-actions.d.ts +0 -0
  590. /package/dist/types/{components/payment-details → actions/payment}/get-payment-details.d.ts +0 -0
  591. /package/dist/types/{components/payments-list → actions/payment}/get-payments.d.ts +0 -0
  592. /package/dist/types/{components/payout-details → actions/payout}/get-payout-details.d.ts +0 -0
  593. /package/dist/types/{components/payouts-list → actions/payout}/get-payouts.d.ts +0 -0
  594. /package/dist/types/{api → actions/sub-account}/get-subaccounts.d.ts +0 -0
  595. /package/dist/types/{components/terminals-list → actions/terminal}/get-terminal-detail.d.ts +0 -0
  596. /package/dist/types/{components/terminals-list → actions/terminal}/get-terminals.d.ts +0 -0
@@ -1,4 +1,4 @@
1
- import { A as Api, c as config } from './config.js';
1
+ import { A as Api } from './Api.js';
2
2
  import './ComponentError.js';
3
3
  import './Checkout.js';
4
4
  import './Pagination.js';
@@ -7,17 +7,14 @@ import './SubAccount.js';
7
7
  import './Document.js';
8
8
 
9
9
  class PaymentService {
10
- async fetchPayments(accountId, authToken, params, apiOrigin) {
11
- if (!apiOrigin) {
12
- apiOrigin = config.proxyApiOrigin;
13
- }
10
+ async fetchPayments(accountId, authToken, params, apiOrigin = undefined) {
14
11
  const api = Api({ authToken, apiOrigin: apiOrigin });
15
12
  const endpoint = `account/${accountId}/payments`;
16
13
  return api.get(endpoint, params);
17
14
  }
18
15
  async fetchPayment(paymentId, authToken) {
19
16
  const endpoint = `payments/${paymentId}`;
20
- return Api({ authToken, apiOrigin: config.proxyApiOrigin }).get(endpoint);
17
+ return Api({ authToken, apiOrigin: undefined }).get(endpoint);
21
18
  }
22
19
  }
23
20
 
@@ -6,11 +6,12 @@ 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 TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types2.js';
9
+ import { T as Table, a as TableLoadingState, b as TableEmptyState, c as TableErrorState } from './table.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';
14
15
  import { d as defineCustomElement$1 } from './pagination-menu2.js';
15
16
 
16
17
  const defaultColumnsKeys = 'created_at,amount,status,payment_type,description,payers_name,last_four_digits';
@@ -84,7 +85,7 @@ const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore
84
85
  fetchData() {
85
86
  this.loading = true;
86
87
  this.getPayments({
87
- params: this.params,
88
+ params: this.paymentParams,
88
89
  onSuccess: ({ payments, pagingInfo }) => {
89
90
  this.payments = payments;
90
91
  this.paging = pagingInfo;
@@ -103,6 +104,11 @@ const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore
103
104
  }
104
105
  });
105
106
  }
107
+ get paymentParams() {
108
+ const requestParams = getRequestParams();
109
+ const params = Object.assign(Object.assign({}, requestParams), this.pagingParams);
110
+ return params;
111
+ }
106
112
  get entityId() {
107
113
  return this.payments.map((payment) => payment.id);
108
114
  }
@@ -115,13 +121,8 @@ const PaymentsListCore = /*@__PURE__*/ proxyCustomElement(class PaymentsListCore
115
121
  get showRowData() {
116
122
  return !this.showEmptyState && !this.showErrorState && !this.loading;
117
123
  }
118
- get params() {
119
- const requestParams = getRequestParams();
120
- const params = Object.assign(Object.assign({}, requestParams), this.pagingParams);
121
- return params;
122
- }
123
124
  render() {
124
- return (h("div", { key: 'a3a996622a365ecf9960a36f249dcd3a8cea3106' }, h("div", { key: '79b86ae4a59b6c50ff72ee1dddb7d9660220e003', class: "table-wrapper" }, h("table", { key: '0f0904d5db86c1e7e3141e991bb20dade2bfb46b', class: "table table-hover", part: table }, h("thead", { key: 'a5895f88cea8962b31aed180b24fc8a287664d56', class: "table-head sticky-top" }, h("tr", { key: 'e883f164efc6a77eea64482974d4e667d264110d', class: "table-light text-nowrap" }, this.paymentsTable.columnData.map((column) => column))), h("tbody", { key: 'bbb65c479ca06b02d711d510516432db815b3fac', class: "table-body" }, h(TableLoadingState, { key: 'a212a7fc190e5bede2ff98e7dad737260b94fc9c', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: '41543e33097fbcc753ab11fad1214b6dd06c4f78', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), h(TableErrorState, { key: '06862d555775195430f95fa3efc41d301444cc4e', 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: '7453d140f8f9ca941be9cf5b9dad4491ace10095', class: "sticky-bottom" }, h("tr", { key: '5299d703ca1c741687e1340b98876cabc4c3636d', class: "table-light align-middle" }, h("td", { key: '96f9f447db74126b92f3f3f657d4253617c0b85b', part: tableCell, colSpan: this.paymentsTable.columnData.length }, h("pagination-menu", { key: '19a8da89dfc77c2d97b3b726f9a27a72825eafe3', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
125
+ return (h("div", { key: '6f153085c08ed8db1508964f360f879ec5310635' }, h("div", { key: 'ca4e487642561cbf859aa30f74dc1aae00d3642c', class: "table-wrapper" }, h("table", { key: '0982554e856be77813a087baa93835cd43c3b6e1', class: "table table-hover", part: table }, h("thead", { key: 'e5eb661667dea89b13524676423758cf79d20765', class: "table-head sticky-top" }, h("tr", { key: '290dd81536e2b03f3020c72937a559aca0cef884', class: "table-light text-nowrap" }, this.paymentsTable.columnData.map((column) => column))), h("tbody", { key: 'bee3b0671e9d6f71a87d8b9f880a1630db2335ec', class: "table-body" }, h(TableLoadingState, { key: 'a9e4a373e3eadc449f4b040c1eec2e902cfe7fef', columnSpan: this.paymentsTable.columnData.length, isLoading: this.loading }), h(TableEmptyState, { key: '240af4b959cd5a55518c0fd6a025648291e63c29', isEmpty: this.showEmptyState, columnSpan: this.paymentsTable.columnData.length }), h(TableErrorState, { key: 'd6e704fd8f9d6f1717537e45e0c3743e78df38be', columnSpan: this.paymentsTable.columnData.length, errorMessage: this.errorMessage }), this.showRowData && this.paymentsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '889f70d9eb4f7e92e29735ba6a5ddb43d622a511', class: "sticky-bottom" }, h("tr", { key: '7f352e5ea2338b1209046bab5328580d1ef80e12', class: "table-light align-middle" }, h("td", { key: '310bf61ff6730cdc4a2fe83e4297b9f055981abc', part: tableCell, colSpan: this.paymentsTable.columnData.length }, h("pagination-menu", { key: '66bcae57f189313b7596133c1a91e0cf43173fef', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
125
126
  }
126
127
  static get watchers() { return {
127
128
  "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: '4549ec693037f9a88ce74520fd227022d4a2db43' }, this.loading && h(PayoutDetailsLoading, { key: '36017a6e0faef41b11d79605177e215e614a3aa1' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: 'c85f8ade3faf633fe0901d9500eb3353ca37bb2b', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'cd855de095506f7002e2e1c0188250b227927a17', 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: 'acfb6cf5f22e321fa20af3b17a8efb2fad959b84', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: 'a5a642616006a55cd7c1b0a6782b4400fceb930c', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '239d10bb38e0f583ce9f40182ebd06d0a0ea7435', title: "ID", value: this.payout.id }), h("div", { key: '6863a35b9f6d5490ede7ee6fa82987691615b3e2', class: "m-4" }, h(Button, { key: '1760a4e1666aa8d8de5997c29c3c127a4e36f4b5', variant: "secondary", class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: '32adb626ca04e368ef4b194f198ebffd3b04222e', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '9e4ad804af83027bcf5a3c338bda5e70e97cc892', sectionTitle: "Details" }), h("div", { key: 'c927105a44b2da4c54d1a37ae67284f0674551c9', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'e1870dc67a0d4868670d8be56c918e78b50f905d', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: '5fc96b304fc547112cd73eb4fb2630dd428830e7', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: 'da6ef701996e84cd8e6a07d78a25a5e9a79b9ea8', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: '9e64e4d9dcfcb061bcaa7cece2420ebf345b8000', title: "Amount", value: this.payout.formattedPaymentAmount(this.payout.amount) }), h(DetailItem, { key: '4a86a9dd33c22d08f05ec2728478a787a00a8322', title: "Fee", value: this.payout.formattedPaymentAmount(this.payout.fees_total) })), h(DetailSectionTitle, { key: 'db556a34c5d00c4d3e92c1cf4d01387bff3ee51d', sectionTitle: "Account" }), h("div", { key: '650b29a42b66a5c6472175c2908e3e3bedacf5d3', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'dc66788666c8171a88712615b3b9972c3b4b0d3f', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: '203f2cf47a4ef904cec14e1c513f4e7debd8fce8', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'de0b55071cf0303666f6f586de3c409684cb6a7d', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'c844ae5678df1b9181e7ecc75d96b166b75afe64', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: '0d53d6165128f2783bb2d2a16fe736fa89b3f897', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: '32578f8453ceb9f8196c393b6d729bbf9e287e04', sectionTitle: 'Metadata' }), h("div", { key: 'fdacbd0d6ce9c91557043a797d41a82e88d8ad61', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: '97ec42b9a84d270166a634e15cf8c3aa4d9ff532', metadata: this.payout.metadata })))))));
77
+ return (h(StyledHost, { key: '9b5b45052e96231367e1289cfd693346dbde365b' }, this.loading && h(PayoutDetailsLoading, { key: '6326e96a39db801b0e61a061cba006f867f1d421' }), !this.loading && this.errorMessage && ErrorState(this.errorMessage), !this.loading && this.payout && (h("justifi-details", { key: '68642bc936f28de32ac82dee91b6a044e1212399', "error-message": this.errorMessage }, h(EntityHeadInfo, { key: 'ddaaffc9cf37c004cf08025e6767e4e6ebba9b03', slot: "head-info", badge: MapPayoutStatusToBadge((_a = this.payout) === null || _a === void 0 ? void 0 : _a.status), title: this.payout.formattedPaymentAmount(this.payout.amount) }, h(EntityHeadInfoItem, { key: '552b9fea31e5628a7c02aaa2fec84ea659acd8c0', classes: "border-1 border-end", title: "Updated At", value: `${formatDate(this.payout.updated_at)} ${formatTime(this.payout.updated_at)}` }), h(EntityHeadInfoItem, { key: 'ed356c4b54e4c315c51ebaf381cc8c66f4246ed7', classes: "border-1 border-end", title: "Created At", value: `${formatDate(this.payout.created_at)} ${formatTime(this.payout.created_at)}` }), h(EntityHeadInfoItem, { key: '1171f95890de260c20122b02bdf10ca43bc7bef1', title: "ID", value: this.payout.id }), h("div", { key: '9e823b2f42bf37e7fd0e4e8f5e87a2be5ab4db35', class: "m-4" }, h(Button, { key: 'dd4b750f7e9057b7f4845a4290d83c7cf89d7b43', variant: "secondary", class: "btn btn-outline-secondary d-flex align-items-center", onClick: this.downloadCSV }, "Export CSV"))), h("div", { key: 'ef9384f15e0e10c2372d8af1c62fdf858d98d1a2', slot: 'detail-sections' }, h(DetailSectionTitle, { key: '3abe895a6f65d2e26736cafd25a8656d5be1204d', sectionTitle: "Details" }), h("div", { key: '1be2f667564fa492a1fa3a44b8e67209a6617657', class: "d-table gap-2 w-100" }, h(DetailItem, { key: 'adb8c36a2b45d19ef95117d069f60758ea5ce6f0', title: "Date paid", value: formatDate(this.payout.deposits_at) }), h(DetailItem, { key: 'a6245623ff251316c4fd923bfb9b91fe94aa11b1', title: "Statement Description", value: this.payout.description }), h(DetailItem, { key: '10db1599529d8f98d28c3ed1f3975539bbb8f88a', title: "Payout Method", value: this.payout.delivery_method }), h(DetailItem, { key: '7e1438bcfb7b1f2aa820ace66874e56446ef400e', title: "Amount", value: this.payout.formattedPaymentAmount(this.payout.amount) }), h(DetailItem, { key: '4afa7801a1b1e92db8c8f57b53c0d7cdd38e0f61', title: "Fee", value: this.payout.formattedPaymentAmount(this.payout.fees_total) })), h(DetailSectionTitle, { key: '51cf02ed3894781f88770cdac746b31bb608dcad', sectionTitle: "Account" }), h("div", { key: '865ea1514254641acf1f96941c5c912947c5fe4f', class: "d-table gap-2 w-100" }, h(DetailItem, { key: '2812906310435422b7bb08bbe8a36c1f95a2eac5', title: "ID", value: this.payout.account_id }), h(DetailItem, { key: 'c25fef650a31522d3bc520d425f904bc002d3ecf', title: "Account Type", value: this.payout.bank_account.account_type }), h(DetailItem, { key: 'def9ed242797394aa21339866050bdf563ee7527', title: "Institution", value: this.payout.bank_account.account_type }), h(DetailItem, { key: '1542ffac52053eb8986d6fd2489d4ba6ab523c69', title: "Routing Number", value: this.payout.bank_account.routing_number }), h(DetailItem, { key: '45a289202141a852e5e57eee4d0b3db35b09cc40', title: "Account Number", value: this.payout.bank_account.account_number_last4 })), h(DetailSectionTitle, { key: 'a9059130e4c5686d103f67a91510531af62eca5f', sectionTitle: 'Metadata' }), h("div", { key: '130ef2e82f48c8449346b56713580b975fc368cf', class: "d-table gap-2 w-100" }, h(CodeBlock, { key: 'dc6fc83790f16416aa7c5b763d0ae040654f23cd', metadata: this.payout.metadata })))))));
78
78
  }
79
79
  static get watchers() { return {
80
80
  "getPayout": ["getPayoutWatcher"]
@@ -6,11 +6,12 @@ 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 TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types2.js';
9
+ import { T as Table, a as TableLoadingState, b as TableEmptyState, c as TableErrorState } from './table.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
- import { o as onQueryParamsChange, q as queryParams } from './payouts-list-params-state.js';
13
+ import { o as onQueryParamsChange, g as getRequestParams } from './payouts-list-params-state.js';
14
+ import { T as TableClickActions } from './event-types2.js';
14
15
  import { d as defineCustomElement$1 } from './pagination-menu2.js';
15
16
 
16
17
  const defaultColumnsKeys = 'created_at,amount,status,payments_total,refunds_total,fees_total,other_total,csv';
@@ -36,7 +37,7 @@ const payoutTableCells = (downloadCSV) => ({
36
37
  amount: (payout, index) => (h("td", { part: getAlternateTableCellPart(index) }, payout.formattedPaymentAmount(payout.amount))),
37
38
  status: (payout, index) => (h("td", { part: getAlternateTableCellPart(index) }, MapPayoutStatusToBadge(payout.status))),
38
39
  csv: (payout, index) => (h("td", { part: getAlternateTableCellPart(index) },
39
- h("a", { href: "#", onClick: (event) => { event.preventDefault(); downloadCSV(payout); } }, "CSV"))),
40
+ h("a", { href: "#", onClick: (event) => { event.preventDefault(); downloadCSV(payout.id); } }, "CSV"))),
40
41
  });
41
42
 
42
43
  const PayoutsListCore = /*@__PURE__*/ proxyCustomElement(class PayoutsListCore extends HTMLElement {
@@ -66,9 +67,13 @@ const PayoutsListCore = /*@__PURE__*/ proxyCustomElement(class PayoutsListCore e
66
67
  this.clickEvent.emit({ name: TableClickActions.next });
67
68
  };
68
69
  this.rowClickHandler = (e) => {
69
- const clickedPayoutID = e.target.closest('tr').dataset.rowEntityId;
70
+ const clickedRow = e.target.closest('tr');
71
+ const clickedPayoutID = clickedRow.dataset.rowEntityId;
70
72
  if (!clickedPayoutID)
71
73
  return;
74
+ const clickedCSV = clickedRow.querySelector('a');
75
+ if (clickedCSV === e.target)
76
+ return;
72
77
  const payoutData = this.payouts.find((payout) => payout.id === clickedPayoutID);
73
78
  this.clickEvent.emit({ name: TableClickActions.row, data: payoutData });
74
79
  };
@@ -103,7 +108,7 @@ const PayoutsListCore = /*@__PURE__*/ proxyCustomElement(class PayoutsListCore e
103
108
  fetchData() {
104
109
  this.loading = true;
105
110
  this.getPayouts({
106
- params: this.requestParams,
111
+ params: this.payoutParams,
107
112
  onSuccess: ({ payouts, pagingInfo }) => {
108
113
  this.payouts = payouts;
109
114
  this.paging = pagingInfo;
@@ -150,9 +155,10 @@ const PayoutsListCore = /*@__PURE__*/ proxyCustomElement(class PayoutsListCore e
150
155
  },
151
156
  });
152
157
  }
153
- get requestParams() {
154
- const combinedParams = Object.assign(Object.assign({}, queryParams), this.pagingParams);
155
- return combinedParams;
158
+ get payoutParams() {
159
+ const requestParams = getRequestParams();
160
+ const params = Object.assign(Object.assign({}, requestParams), this.pagingParams);
161
+ return params;
156
162
  }
157
163
  get subAccountParams() {
158
164
  let accountIdNumbers = this.payouts.map((payout) => payout.account_id);
@@ -173,10 +179,9 @@ const PayoutsListCore = /*@__PURE__*/ proxyCustomElement(class PayoutsListCore e
173
179
  return !this.showEmptyState && !this.showErrorState && !this.loading;
174
180
  }
175
181
  render() {
176
- return (h("div", { key: '80d7b9e09153270375ef79961996ed56f0ee6ba2' }, h("div", { key: 'bb769ab3fc09acea181a231f98f5aa99be24e675', class: "table-wrapper", part: "table-wrapper" }, h("table", { key: 'b008fd21153c738b85e1a37c2e43932e13b8f58d', class: "table table-hover", part: table }, h("thead", { key: 'f4c7146142cc714f24dccddda4404d5534e068b5', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: 'bfd485e191f11725681a1055b049c7c11eda7858', class: "table-light text-nowrap", part: "table-head-row" }, this.payoutsTable.columnData.map((column) => column))), h("tbody", { key: '77797d4d7ebfed8206fb5b693d973c8fb539f1b8', class: "table-body" }, h(TableLoadingState, { key: 'd8c55ac393e2952b9cde96b8fcb45cf88978d90b', columnSpan: this.payoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '4122715eaa2363e9a21a3dec18a935bc98ac530e', isEmpty: this.showEmptyState, columnSpan: this.payoutsTable.columnKeys.length }), h(TableErrorState, { key: '5017f0eca302fe6c80d62d8e9af73b68d04db658', 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: 'da997bb2d356800bdc918415a60c03d09ab0d158', class: "sticky-bottom" }, h("tr", { key: '22a61b245c6aeb630bb3887525d826d5b3589c7c', class: "table-light align-middle" }, h("td", { key: 'f378c94db17592855e94066113bc064d0f936d45', part: tableCell, colSpan: this.payoutsTable.columnData.length }, h("pagination-menu", { key: '32f8c9fc1a401a5f7f40669d56be3f703a3fdd40', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
182
+ return (h("div", { key: '2cc35b1a64da3e15a221eeb74b9de3ce011301e6' }, h("div", { key: '73e18029f462aeb03414574c76700b8c20748c0d', class: "table-wrapper", part: "table-wrapper" }, h("table", { key: '6af17bc77a5ac15503a4424ef8e9095da86ff667', class: "table table-hover", part: table }, h("thead", { key: '6340d507a8a8bcef847c4054072b1f26d49c1cb8', class: "table-head sticky-top", part: "table-head" }, h("tr", { key: 'fd84224c2b62ebb26130057d57145baecc3f1f2b', class: "table-light text-nowrap", part: "table-head-row" }, this.payoutsTable.columnData.map((column) => column))), h("tbody", { key: '4993ab0d133c3f03c42b17da22c16682f6b5ddc2', class: "table-body" }, h(TableLoadingState, { key: '580e94f393f1281a4f9f9890078073b31450fb25', columnSpan: this.payoutsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '88fa77ac3de65dcad0371d8746588d588964a2fe', isEmpty: this.showEmptyState, columnSpan: this.payoutsTable.columnKeys.length }), h(TableErrorState, { key: 'ec374189d2faab1ea13388987ff977ae758cdd35', columnSpan: this.payoutsTable.columnKeys.length, errorMessage: this.errorMessage }), this.showRowData && this.payoutsTable.rowData.map((data, index) => (h("tr", { "data-test-id": "table-row", "data-row-entity-id": this.entityId[index], onClick: this.rowClickHandler }, data)))), this.paging && (h("tfoot", { key: '3543415cd5411bf599e0cfa06257b8ef19f1b652', class: "sticky-bottom" }, h("tr", { key: '8b7230df5006dfb3d3022422d391cd5cae48c5c7', class: "table-light align-middle" }, h("td", { key: '6a4ed06b9c933e09cb083b3e62e52bdf44a9678b', part: tableCell, colSpan: this.payoutsTable.columnData.length }, h("pagination-menu", { key: 'f87d2e1fe590205f455f236ba5afc26533f44f4e', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
177
183
  }
178
184
  static get watchers() { return {
179
- "queryParams": ["updateOnPropChange"],
180
185
  "pagingParams": ["updateOnPropChange"],
181
186
  "getPayouts": ["updateOnPropChange"],
182
187
  "getSubAccounts": ["updateOnPropChange"]
@@ -194,7 +199,6 @@ const PayoutsListCore = /*@__PURE__*/ proxyCustomElement(class PayoutsListCore e
194
199
  "paging": [32],
195
200
  "pagingParams": [32]
196
201
  }, undefined, {
197
- "queryParams": ["updateOnPropChange"],
198
202
  "pagingParams": ["updateOnPropChange"],
199
203
  "getPayouts": ["updateOnPropChange"],
200
204
  "getSubAccounts": ["updateOnPropChange"]
@@ -1,10 +1,16 @@
1
1
  import { c as createStore } from './index2.js';
2
2
 
3
- const initialState = {};
4
- const payoutsListQueryParams = createStore(() => initialState);
5
- const { state: queryParams, on: onQueryParamsChange } = payoutsListQueryParams;
3
+ const filterParamsInitialState = {};
4
+ const propsParamsInitialState = {};
5
+ const filterParamsStore = createStore(() => filterParamsInitialState);
6
+ const { state: filterParams, on: onQueryParamsChange } = filterParamsStore;
7
+ const propsParamsStore = createStore(() => propsParamsInitialState);
8
+ const { state: propsParams } = propsParamsStore;
9
+ const getRequestParams = () => {
10
+ return Object.assign(Object.assign({}, filterParams), propsParams);
11
+ };
6
12
  const clearParams = () => {
7
- payoutsListQueryParams.reset();
13
+ filterParamsStore.reset();
8
14
  };
9
15
 
10
- export { clearParams as c, onQueryParamsChange as o, queryParams as q };
16
+ export { clearParams as c, filterParams as f, getRequestParams as g, onQueryParamsChange as o, propsParams as p };
@@ -46,7 +46,7 @@ const ProductOrService = /*@__PURE__*/ proxyCustomElement(class ProductOrService
46
46
  }
47
47
  render() {
48
48
  var _a, _b;
49
- return (h("div", { key: 'a40a8a641d5b0e56fea415895b33523f5981fdc2' }, h("div", { key: '82da6b545c20d56b4b0e02c214448a15edf27440', class: "row gy-3" }, h("div", { key: '00cc29411e76d553c1b3fcda0ad2b02a08401b15', class: "col-12" }, h("h2", { key: 'a313f27a3d7c23c428ef14a7269c051c9053305c', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: '07efb7c5c5ce83e098838b5ccd48ca8ca93e189c', class: "col-12" }, h("form-control-text", { key: '7c94f75e3555730ac5aa65b1baed84d7530ffee1', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), h("div", { key: 'd679f7b7c59ac645128f99c9fed0a49bca3907bb', class: "col-12" }, h("form-control-text", { key: 'e8b13489274045c77db77c000c11a242b6aae255', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), h("div", { key: 'b24282195e2818158b5b6ef3c4c0581409680f4a', class: "col-12" }, h("form-control-file-v2", { key: '3e401f3149b104bb4d346bcbe6906c206abe8067', label: "Service Documentation", name: "service_documentation", onChange: this.handleFileSelection, errorText: this.errors.service_documentation })))));
49
+ return (h("div", { key: '5a6f2b3a9c40e31c2be9a0c98abb64793ac37996' }, h("div", { key: '7ff77c4cba89dad5195aed658a13f559953f9632', class: "row gy-3" }, h("div", { key: '407d0c1d31ec876fcd1a7ba0f160caeecf8ea2f6', class: "col-12" }, h("h2", { key: '6da19469c4d0570d666e7d57144f60a7c2ec0a53', class: "h5", part: heading5 }, "Product & Service Details")), h("div", { key: '35c1de85ef91b00d26231c836f9ea56cb1b83a44', class: "col-12" }, h("form-control-text", { key: '48027fd45015c44bf0a15b53bba6976422002d4f', label: "Product Description", name: "product_description", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.product_description, inputHandler: this.inputHandler, errorText: this.errors.product_description })), h("div", { key: '96966b5a210ac7c21b7c39d12967619044227055', class: "col-12" }, h("form-control-text", { key: 'ed1d72fd0768e58df68f3df48f1e7d4ed2c6a9ed', label: "Service Date", name: "service_date", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.service_date, inputHandler: this.inputHandler, errorText: this.errors.service_date })), h("div", { key: '74b8735faf5261fd631539c0447903b9c94abd1b', class: "col-12" }, h("form-control-file-v2", { key: '24273cc84eded001b7224aa3c413c444f8697798', label: "Service Documentation", name: "service_documentation", onChange: this.handleFileSelection, errorText: this.errors.service_documentation })))));
50
50
  }
51
51
  }, [0, "justifi-product-or-service", {
52
52
  "disputeResponse": [8, "dispute-response"],
@@ -47,7 +47,7 @@ const RefundPolicy = /*@__PURE__*/ proxyCustomElement(class RefundPolicy extends
47
47
  }
48
48
  render() {
49
49
  var _a, _b;
50
- return (h("div", { key: 'af53582fbda822cf130de3cb9ebec8ca228285ef' }, h("div", { key: '6f2bd60cc9e03a154d876f136a7776e8b168ce2d', class: "row gy-3" }, h("div", { key: '65cf646cf92f1ae0700c873f759061adb884cc81', class: "col-12" }, h("h2", { key: '74aed04947fa6868c151a31d144dbf922acf401c', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: '57632d99565dc3e007b4c4421fa26c1faf12f49b', class: "col-12" }, h("form-control-textarea", { key: '1531c99a09c71d319fc800c9108ad0ddec99704d', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), h("div", { key: 'ae973eeecdf7fdafa25f00977898ba453a6180b5', class: "col-12" }, h("form-control-textarea", { key: '1b6d4d9a412b0300dcbd5bf7c52af6b43a070bc8', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), h("div", { key: 'e37a85c57c72af2e7a055672caf654637d53254d', class: "col-12" }, h("form-control-file-v2", { key: 'a953f49dd1c77960deac827ad0e61e65e57ca701', label: "Upload Refund Policy", name: "refund_policy", onChange: this.handleFileSelection })), h("div", { key: 'e1d5e0afaf9dff41d58c280e88182fcef4880428', class: "col-12" }, h("form-control-file-v2", { key: '57a94d969de6a38e4d46ab06c6585401dddde1db', label: "Upload Receipt", name: "receipt", onChange: this.handleFileSelection })))));
50
+ return (h("div", { key: '703c5efe2968f84e6cc83ee725c23170076d43b5' }, h("div", { key: 'c04272ce41b0591b3f03f469ff531bc90de82c73', class: "row gy-3" }, h("div", { key: 'e50b1bfe25275aafcbc1ba2a78e1c64957744808', class: "col-12" }, h("h2", { key: '0f61003e430d370024f9f81b67755feb24646b62', class: "h5", part: heading5 }, "Refund Policy and Receipt")), h("div", { key: 'e6e6b3154767c841dcdcd77766fccd2403d19512', class: "col-12" }, h("form-control-textarea", { key: '2d57333ac337dd0045dbfc764e85a9d5ae3a4d7e', label: "Refund Policy Disclosure", name: "refund_policy_disclosure", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.refund_policy_disclosure, inputHandler: this.inputHandler })), h("div", { key: 'bf37aa030c4d45a75899a7933bb3fe13729a5507', class: "col-12" }, h("form-control-textarea", { key: 'cd5c88fc04d6b8f0489b080eacc81b2e301e0480', label: "Refund Refusal Explanation", name: "refund_refusal_explanation", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.refund_refusal_explanation, inputHandler: this.inputHandler })), h("div", { key: '7bad042eda98c6f94772734708046de75946b48f', class: "col-12" }, h("form-control-file-v2", { key: 'ff350d9ea2dc50b7b306c2127384732816576865', label: "Upload Refund Policy", name: "refund_policy", onChange: this.handleFileSelection })), h("div", { key: '3dbd9e591e6a38ba57fa4bddb5f876c50b480a78', class: "col-12" }, h("form-control-file-v2", { key: 'fd6df99ca40e36ba36be6ab127f104506697e623', label: "Upload Receipt", name: "receipt", onChange: this.handleFileSelection })))));
51
51
  }
52
52
  }, [0, "justifi-refund-policy", {
53
53
  "disputeResponse": [8, "dispute-response"],
@@ -51,7 +51,7 @@ const ShippingDetails = /*@__PURE__*/ proxyCustomElement(class ShippingDetails e
51
51
  }
52
52
  render() {
53
53
  var _a, _b, _c, _d;
54
- return (h("div", { key: '09f0b2ae6a8a8f7827646fc6173c173cd03227d9' }, h("div", { key: '3779ab211fe12611db274578aa00ebf168900afb', class: "row gy-3" }, h("div", { key: 'eedd3e14096dbb605ad6fd0e662115cfbd2091da', class: "col-12" }, h("h2", { key: '41ab8ac8ad5cdc2ad46e217645b58ca7f6ff243b', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: 'eacbb056741e38a64e1acdc51d8a6766a9ef25ef', class: "col-12" }, h("form-control-text", { key: 'ef39645f1557dc422ee475ba9cc6f8a0ef5109ee', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: '338495781e1d1b412b6eb88a88c231c89dddb06a', class: "col-12" }, h("form-control-text", { key: '3f208113c4db507fc14f05f2312e4056ae3bfa50', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: 'b7de777a2f4b413d181c54ef21b33f011b6242d1', class: "col-12" }, h("form-control-date", { key: '0bea6e634fd79db518c1377feaf0c19ba7218380', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '6984cbb1e60a83ea4d15a3116634c573f8d5be8f', class: "col-12" }, h("form-control-textarea", { key: '89747dfc9ddc287c91ead9428dd1b5a8a86721eb', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: 'aacc2e70654f07afeed7687464a90612da693030', class: "col-12" }, h("form-control-file-v2", { key: 'be7c004b4f56a81273f202c32e5471461e67a197', label: "Shipping Documentation", name: "shipping_documentation", onChange: this.handleFileSelection })))));
54
+ return (h("div", { key: '67cfe365cdb518bfd098502e11d24fff63581052' }, h("div", { key: '6adf6e14084452e52cfa6bce8433c3531e7e5a95', class: "row gy-3" }, h("div", { key: '2ea11029c2d0c3f7c1bd75ea52f50a84cf4a23c7', class: "col-12" }, h("h2", { key: 'ca0e8158b9c7b31bd627ad48dab5c6f59e8c33b9', class: "h5", part: heading5 }, "Shipping Details")), h("div", { key: '71a3ff8825b1d824d262cf78e1ce226cc265453b', class: "col-12" }, h("form-control-text", { key: 'b1436af6043ec687d245b923d0df7605a47bb9d5', label: "Shipping Carrier Name", name: "shipping_carrier", defaultValue: (_a = this.disputeResponse) === null || _a === void 0 ? void 0 : _a.shipping_carrier, inputHandler: this.inputHandler, errorText: this.errors.shipping_carrier })), h("div", { key: '3d163ebab9371d6ba03f7859c851518c2b9c42e0', class: "col-12" }, h("form-control-text", { key: 'b37976e6a54dc322cfbfb44081dd57e6425cba9c', label: "Tracking Number", name: "shipping_tracking_number", defaultValue: (_b = this.disputeResponse) === null || _b === void 0 ? void 0 : _b.shipping_tracking_number, inputHandler: this.inputHandler, errorText: this.errors.shipping_tracking_number })), h("div", { key: '3476796fbca30f969fe71da1c049dc83ed691891', class: "col-12" }, h("form-control-date", { key: 'ba734764e4702ee2f1846f3f580cdbf0e7156ff6', label: "Date Shipped", name: "shipping_date", defaultValue: (_c = this.disputeResponse) === null || _c === void 0 ? void 0 : _c.shipping_date, inputHandler: this.inputHandler, errorText: this.errors.shipping_date })), h("div", { key: '8f2690c1f1fddaad3915f1b8aca5f934a45b5f71', class: "col-12" }, h("form-control-textarea", { key: 'dd26eedba648b038e2b414825d7f26c1a326db2f', label: "Shipping Address", name: "shipping_address", defaultValue: (_d = this.disputeResponse) === null || _d === void 0 ? void 0 : _d.shipping_address, inputHandler: this.inputHandler, errorText: this.errors.shipping_address })), h("div", { key: 'ce3e63025adfe560a466522411d93968d8abd420', class: "col-12" }, h("form-control-file-v2", { key: '099d48a3c6b2b7999442e1a0609c4fdac2f67c66', label: "Shipping Documentation", name: "shipping_documentation", onChange: this.handleFileSelection })))));
55
55
  }
56
56
  }, [0, "justifi-shipping-details", {
57
57
  "disputeResponse": [8, "dispute-response"],
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
2
  import { B as Button } from './button.js';
3
- import { $ as dropdownMenu } from './parts.js';
3
+ import { a2 as dropdownMenu } from './parts.js';
4
4
  import { d as defineCustomElement$1 } from './custom-popper2.js';
5
5
 
6
6
  const hasFilters = (params) => {
@@ -33,7 +33,7 @@ const TableFiltersMenu = /*@__PURE__*/ proxyCustomElement(class TableFiltersMenu
33
33
  this.showClearButton = hasFilters(this.params);
34
34
  }
35
35
  render() {
36
- return (h("div", { key: 'd45f459f317d7a5c10083e4d6c7a1855e606ccff', class: "d-flex gap-2" }, h("div", { key: 'cd9625444bf3e4a084508a52f2f4ee52ec108602', class: "dropdown pb-3" }, h(Button, { key: '328dfff010a31a5e49a6a893bd9a8b49ebc44a6a', variant: "primary", type: "button dropdown-toggle", ref: (el) => (this.anchorButton = el), class: "btn btn-primary dropdown-toggle", "data-test-id": "open-filters-button", "data-bs-toggle": "dropdown" }, "Filters"), h("custom-popper", { key: '591b15ad81d875d9f0249978394281ee134dd63f', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: 'dbab8762dddfaa425e13d8f6ca9993ee1811a404', class: "dropdown-menu", part: dropdownMenu, "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: 'b4c174ce6d565e7cadcd3ce62af69eaaeac5054c' })))), h("div", { key: '1daabbe4fa3551640c075ee20e39b2c9363bf59a' }, h(Button, { key: 'b09b43e46ad9b40797efd06ede82044c8a6e25df', variant: "secondary", onClick: () => this.clearParams(), hidden: !this.showClearButton, "data-test-id": "clear-filters-button" }, "Clear Filters"))));
36
+ return (h("div", { key: 'b55be2aa2f9d4677989da12bb114f620a9ec2e45', class: "d-flex gap-2" }, h("div", { key: 'dffb2be68ead3abb60a8740869e48bb48bbf558c', class: "dropdown pb-3" }, h(Button, { key: '2e7b2d3afc80963abfe9c8c2690a61b911a1b747', variant: "primary", type: "button dropdown-toggle", ref: (el) => (this.anchorButton = el), class: "btn btn-primary dropdown-toggle", "data-test-id": "open-filters-button", "data-bs-toggle": "dropdown" }, "Filters"), h("custom-popper", { key: '9e2b1b988bc5440f18d26c5b8402f5e30e73cdad', offset: [20, 10], strategy: "fixed", anchorRef: this.anchorButton, trigger: "click" }, h("form", { key: '573161a7515d1b16665138ba739133379b9b6850', class: "dropdown-menu", part: dropdownMenu, "data-test-id": "filter-menu", ref: (el) => (this.menu = el), onSubmit: (e) => e.preventDefault() }, h("slot", { key: '9597e79f125e1e41c343fa3d2d583b5cf7ab9c31' })))), h("div", { key: '67ed29ac8e10f3ae1380514ae1a1e1e8aed7d9b6' }, h(Button, { key: '9b3dc6176c11226e82ecb1f9f88705ad40bf6e32', variant: "secondary", onClick: () => this.clearParams(), hidden: !this.showClearButton, "data-test-id": "clear-filters-button" }, "Clear Filters"))));
37
37
  }
38
38
  static get watchers() { return {
39
39
  "params": ["watchParamsHandler"]
@@ -0,0 +1,55 @@
1
+ import { h } from '@stencil/core/internal/client';
2
+ import { r as tableEmpty, u as tableError, p as tableCell } from './parts.js';
3
+ import { S as Spinner } from './spinner.js';
4
+
5
+ const TableEmptyState = (props) => {
6
+ const { columnSpan, isEmpty } = props;
7
+ if (!columnSpan || !isEmpty) {
8
+ return null;
9
+ }
10
+ return (h("tr", null,
11
+ h("td", { class: "empty-state", part: tableEmpty, colSpan: columnSpan, style: { textAlign: 'center' } }, "No results")));
12
+ };
13
+
14
+ const TableErrorState = (props) => {
15
+ const { columnSpan, errorMessage } = props;
16
+ if (!columnSpan || !errorMessage) {
17
+ return null;
18
+ }
19
+ return (h("tr", null,
20
+ h("td", { class: "error-state", part: tableError, colSpan: columnSpan, "data-test-id": "table-error-state", style: { textAlign: 'center' } },
21
+ "An unexpected error occurred: ",
22
+ errorMessage)));
23
+ };
24
+
25
+ const TableLoadingState = (props) => {
26
+ const { columnSpan, isLoading } = props;
27
+ if (!columnSpan || !isLoading) {
28
+ return null;
29
+ }
30
+ return (h("tr", null,
31
+ h("td", { class: "loading-state", part: tableCell, colSpan: columnSpan, style: { textAlign: 'center' } },
32
+ h(Spinner, null))));
33
+ };
34
+
35
+ class Table {
36
+ get columnData() {
37
+ return this.columnKeys.map((key) => this.tableColumns[key]());
38
+ }
39
+ get rowData() {
40
+ return this.collection.map((dataEntry, index) => {
41
+ return this.columnKeys.map((key) => this.tableCells[key](dataEntry, index));
42
+ });
43
+ }
44
+ set collectionData(collection) {
45
+ this.collection = collection;
46
+ }
47
+ constructor(collection, columns, tableColumns, tableCells) {
48
+ this.columnKeys = columns.split(',');
49
+ this.collection = collection;
50
+ this.tableColumns = tableColumns;
51
+ this.tableCells = tableCells;
52
+ }
53
+ }
54
+
55
+ export { Table as T, TableLoadingState as a, TableEmptyState as b, TableErrorState as c };
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface TerminalOrdersListCore extends Components.TerminalOrdersListCore, HTMLElement {}
4
+ export const TerminalOrdersListCore: {
5
+ prototype: TerminalOrdersListCore;
6
+ new (): TerminalOrdersListCore;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { T as TerminalOrdersListCore$1, d as defineCustomElement$1 } from './terminal-orders-list-core2.js';
2
+
3
+ const TerminalOrdersListCore = TerminalOrdersListCore$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { TerminalOrdersListCore, defineCustomElement };
@@ -0,0 +1,117 @@
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';
3
+ import { o as tableHeadCell, q as getAlternateTableCellPart, n as table, p as tableCell } from './parts.js';
4
+ import './details.js';
5
+ import './ComponentError.js';
6
+ import './Checkout.js';
7
+ import { p as pagingDefaults } from './Pagination.js';
8
+ import './Payment.js';
9
+ import './SubAccount.js';
10
+ import './Document.js';
11
+ import { d as defineCustomElement$1 } from './pagination-menu2.js';
12
+
13
+ const defaultColumnsKeys = 'id,status';
14
+ const terminalOrdersTableColumns = {
15
+ id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The ID of the terminal order" }, "ID")),
16
+ status: () => (h("th", { part: tableHeadCell, scope: "col", title: "The status of the terminal order" }, "Status")),
17
+ };
18
+ const terminalOrdersTableCells = {
19
+ id: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminalOrder.id)),
20
+ status: (terminalOrder, index) => (h("td", { part: getAlternateTableCellPart(index) }, terminalOrder.status)),
21
+ };
22
+
23
+ const TerminalOrdersListCore = /*@__PURE__*/ proxyCustomElement(class TerminalOrdersListCore extends HTMLElement {
24
+ constructor() {
25
+ super();
26
+ this.__registerHost();
27
+ this.errorEvent = createEvent(this, "error-event", 7);
28
+ this.handleClickPrevious = (beforeCursor) => {
29
+ this.pagingParams = { before_cursor: beforeCursor };
30
+ };
31
+ this.handleClickNext = (afterCursor) => {
32
+ this.pagingParams = { after_cursor: afterCursor };
33
+ };
34
+ this.rowClickHandler = (e) => {
35
+ const clickedOrderId = e.target.closest('tr').dataset.rowEntityId;
36
+ if (!clickedOrderId)
37
+ return;
38
+ console.log('clickedOrderId', clickedOrderId);
39
+ };
40
+ this.getTerminalOrders = undefined;
41
+ this.columns = undefined;
42
+ this.terminalOrders = [];
43
+ this.terminalOrdersTable = undefined;
44
+ this.loading = true;
45
+ this.errorMessage = undefined;
46
+ this.paging = pagingDefaults;
47
+ this.pagingParams = {};
48
+ }
49
+ updateOnPropChange() {
50
+ this.fetchData();
51
+ }
52
+ componentWillLoad() {
53
+ this.terminalOrdersTable = new Table(this.terminalOrders, this.columns, terminalOrdersTableColumns, terminalOrdersTableCells);
54
+ if (this.getTerminalOrders) {
55
+ this.fetchData();
56
+ }
57
+ }
58
+ fetchData() {
59
+ this.loading = true;
60
+ console.log('fetching terminal orders');
61
+ this.loading = false;
62
+ }
63
+ get entityId() {
64
+ return this.terminalOrders.map((terminalOrder) => terminalOrder.id);
65
+ }
66
+ get showEmptyState() {
67
+ return !this.loading && !this.errorMessage && this.terminalOrdersTable.rowData.length < 1;
68
+ }
69
+ get showErrorState() {
70
+ return !this.loading && !!this.errorMessage;
71
+ }
72
+ get showRowData() {
73
+ return !this.showEmptyState && !this.showErrorState && !this.loading;
74
+ }
75
+ render() {
76
+ return (h("div", { key: '0985e60932d09dafc25f5d98415a7dc0b56d64a8' }, h("div", { key: '390633346017eaced1704ea7b5c800aae0f9df57', class: "table-wrapper" }, h("table", { key: '56959798f3fab7ff46d410908f7cf0e889940a51', class: "table table-hover", part: table }, h("thead", { key: '25fab5c7217777cd10ef8515ce5745748d8cdb22', class: "table-head sticky-top" }, h("tr", { key: '6c5606a186e0a3bacda194cd348d92798d63b9e4', class: "table-light text-nowrap" }, this.terminalOrdersTable.columnData.map((column) => column))), h("tbody", { key: 'cff51b485040873e6bde770269d4aa4a161c4c82', class: "table-body" }, h(TableLoadingState, { key: 'f38917eb02c8f537496b2465e5b64da302e8c19a', columnSpan: this.terminalOrdersTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '2f7ee4c2c1a9d37134df4a955f92a33ef2ac6ca3', isEmpty: this.showEmptyState, columnSpan: this.terminalOrdersTable.columnKeys.length }), h(TableErrorState, { key: 'c9bbb80471f1ad7ef04199949cfd0583852a5a26', 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: 'c476e3245d5365d6facff461ea921c18c3001caf', class: "sticky-bottom" }, h("tr", { key: 'ae0d4344538d1f3ee7c2702c1475e730e1d25b8c', class: "table-light align-middle" }, h("td", { key: 'f5c8fa258bcc8d0853f9f419722d7e995f2a771b', part: tableCell, colSpan: this.terminalOrdersTable.columnData.length }, h("pagination-menu", { key: '2e73c5c292533441692ed97ee065448426c43f85', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
77
+ }
78
+ static get watchers() { return {
79
+ "pagingParams": ["updateOnPropChange"],
80
+ "getTerminalOrders": ["updateOnPropChange"],
81
+ "columns": ["updateOnPropChange"]
82
+ }; }
83
+ }, [0, "terminal-orders-list-core", {
84
+ "getTerminalOrders": [16],
85
+ "columns": [1],
86
+ "terminalOrders": [32],
87
+ "terminalOrdersTable": [32],
88
+ "loading": [32],
89
+ "errorMessage": [32],
90
+ "paging": [32],
91
+ "pagingParams": [32]
92
+ }, undefined, {
93
+ "pagingParams": ["updateOnPropChange"],
94
+ "getTerminalOrders": ["updateOnPropChange"],
95
+ "columns": ["updateOnPropChange"]
96
+ }]);
97
+ function defineCustomElement() {
98
+ if (typeof customElements === "undefined") {
99
+ return;
100
+ }
101
+ const components = ["terminal-orders-list-core", "pagination-menu"];
102
+ components.forEach(tagName => { switch (tagName) {
103
+ case "terminal-orders-list-core":
104
+ if (!customElements.get(tagName)) {
105
+ customElements.define(tagName, TerminalOrdersListCore);
106
+ }
107
+ break;
108
+ case "pagination-menu":
109
+ if (!customElements.get(tagName)) {
110
+ defineCustomElement$1();
111
+ }
112
+ break;
113
+ } });
114
+ }
115
+ defineCustomElement();
116
+
117
+ export { TerminalOrdersListCore as T, defaultColumnsKeys as a, defineCustomElement as d };
@@ -6,10 +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 TableClickActions, a as Table, b as TableLoadingState, c as TableEmptyState, d as TableErrorState } from './event-types2.js';
9
+ import { T as Table, a as TableLoadingState, b as TableEmptyState, c as TableErrorState } from './table.js';
10
10
  import './details.js';
11
11
  import { B as Badge, a as BadgeVariant } from './badge.js';
12
- import { o as onQueryParamsChange, q as queryParams } from './terminals-list-params-state.js';
12
+ import { o as onQueryParamsChange, g as getRequestParams } from './terminals-list-params-state.js';
13
+ import { T as TableClickActions } from './event-types2.js';
13
14
  import { d as defineCustomElement$1 } from './pagination-menu2.js';
14
15
 
15
16
  const MapTerminalStatusToBadge = (status) => {
@@ -37,7 +38,7 @@ const MapTerminalStatusToBadge = (status) => {
37
38
  const defaultColumnsKeys = 'nickname,provider_id,status';
38
39
  const terminalTableColumns = {
39
40
  nickname: () => (h("th", { part: tableHeadCell, scope: "col", title: "The nickname associated with the terminal" }, "Nickname")),
40
- provider_id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The provider ID of the terminal" }, "Provider ID")),
41
+ provider_id: () => (h("th", { part: tableHeadCell, scope: "col", title: "The serial number / provider ID of the terminal" }, "Serial Number")),
41
42
  sub_account_name: () => (h("th", { part: tableHeadCell, scope: "col", title: "The sub account associated with the terminal" }, "Sub Account")),
42
43
  status: () => (h("th", { part: tableHeadCell, scope: "col", title: "The current status of each terminal" }, "Status")),
43
44
  };
@@ -99,7 +100,7 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
99
100
  fetchData() {
100
101
  this.loading = true;
101
102
  this.getTerminals({
102
- params: this.requestParams,
103
+ params: this.terminalParams,
103
104
  onSuccess: async ({ terminals, pagingInfo }) => {
104
105
  this.terminals = terminals;
105
106
  this.paging = pagingInfo;
@@ -146,9 +147,10 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
146
147
  },
147
148
  });
148
149
  }
149
- get requestParams() {
150
- const combinedParams = Object.assign(Object.assign({}, queryParams), this.pagingParams);
151
- return combinedParams;
150
+ get terminalParams() {
151
+ const requestParams = getRequestParams();
152
+ const params = Object.assign(Object.assign({}, requestParams), this.pagingParams);
153
+ return params;
152
154
  }
153
155
  get subAccountParams() {
154
156
  let accountIdNumbers = this.terminals.map((terminal) => terminal.account_id);
@@ -169,10 +171,9 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
169
171
  return !this.showEmptyState && !this.showErrorState && !this.loading;
170
172
  }
171
173
  render() {
172
- return (h("div", { key: 'a80b76fc1f535c9d1fea371b7655a2baa373e53c' }, h("div", { key: '3c6fb067ed034fd09c767e5f1b7ffa7ab2b0b6c2', class: "table-wrapper" }, h("table", { key: 'e24cff12e153db046b1565011bbae3db133609f9', class: "table table-hover", part: table }, h("thead", { key: 'd91e948a4b0a6da3bc67ea489bf6deb828ccb9e5', class: "table-head sticky-top" }, h("tr", { key: '7e629ab6636fceb70dd75e1163094cd44d1f525d', class: "table-light text-nowrap" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: '760ed57f2a669d3a6cd54953c9d5259cb6518a60', class: "table-body" }, h(TableLoadingState, { key: '4cb50cce3d9644904fffd1969de19647c6eabc11', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: '84ea8077a878aa6b94c1bd2eb1c9393ffc41b983', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: '94cb9745f2951383625833a783d4d2bf8e88b1b2', 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: '0e111df52934ff81bddd77a15d720c44f53e3096', class: "sticky-bottom" }, h("tr", { key: '0abc10194bb09342ecefb62b7a981c3809542a99', class: "table-light align-middle" }, h("td", { key: '828f58c6054dd437cb597696d5bdaf33069e69cf', part: tableCell, colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: 'd9f4db3f7c580fda067afff8919a695776c8f502', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
174
+ return (h("div", { key: '074b9925b7092b69d4073b86e926bc6e627ba8cd' }, h("div", { key: '195acd38db8ecc931e86e517a5e626ced44ce66f', class: "table-wrapper" }, h("table", { key: '6534aba9b68490de5a7bd03d9760021db02e3f61', class: "table table-hover", part: table }, h("thead", { key: 'bf8dc807e1b31ed1e8040f952b5bfc3cfa77116d', class: "table-head sticky-top" }, h("tr", { key: 'b6828dbb38504d1f410f4c1199ea12d03b66292a', class: "table-light text-nowrap" }, this.terminalsTable.columnData.map((column) => column))), h("tbody", { key: '2080463e7f6ac9995b30e38e52f1650f75983dab', class: "table-body" }, h(TableLoadingState, { key: '36b61e1fb8c23dea61aa3a41b2749f80dbfb34bb', columnSpan: this.terminalsTable.columnKeys.length, isLoading: this.loading }), h(TableEmptyState, { key: 'c2a11b7e3ebb37538522026854faf3f10e405271', isEmpty: this.showEmptyState, columnSpan: this.terminalsTable.columnKeys.length }), h(TableErrorState, { key: 'a40dd753552ee8ad3fae2655a4e890e67a8c14f0', 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: '0af6b6aefe2160a36e773deabed1c6d006d0cde2', class: "sticky-bottom" }, h("tr", { key: '8576eee95c757c41d6b0a6838933e9c123f519d3', class: "table-light align-middle" }, h("td", { key: '87ca55905ecb734ddb059dce080256af6a7f1be1', part: tableCell, colSpan: this.terminalsTable.columnData.length }, h("pagination-menu", { key: '08f29c2415998948e4dc020487fe10215bf10c3d', paging: Object.assign(Object.assign({}, this.paging), { handleClickPrevious: this.handleClickPrevious, handleClickNext: this.handleClickNext }) })))))))));
173
175
  }
174
176
  static get watchers() { return {
175
- "queryParams": ["updateOnPropChange"],
176
177
  "pagingParams": ["updateOnPropChange"],
177
178
  "getTerminals": ["updateOnPropChange"],
178
179
  "getSubAccounts": ["updateOnPropChange"],
@@ -190,7 +191,6 @@ const TerminalsListCore = /*@__PURE__*/ proxyCustomElement(class TerminalsListCo
190
191
  "paging": [32],
191
192
  "pagingParams": [32]
192
193
  }, undefined, {
193
- "queryParams": ["updateOnPropChange"],
194
194
  "pagingParams": ["updateOnPropChange"],
195
195
  "getTerminals": ["updateOnPropChange"],
196
196
  "getSubAccounts": ["updateOnPropChange"],
@@ -1,10 +1,16 @@
1
1
  import { c as createStore } from './index2.js';
2
2
 
3
- const initialState = {};
4
- const terminalsListQueryParams = createStore(() => initialState);
5
- const { state: queryParams, on: onQueryParamsChange } = terminalsListQueryParams;
3
+ const filterParamsInitialState = {};
4
+ const propsParamsInitialState = {};
5
+ const filterParamsStore = createStore(() => filterParamsInitialState);
6
+ const { state: filterParams, on: onQueryParamsChange } = filterParamsStore;
7
+ const propsParamsStore = createStore(() => propsParamsInitialState);
8
+ const { state: propsParams } = propsParamsStore;
9
+ const getRequestParams = () => {
10
+ return Object.assign(Object.assign({}, filterParams), propsParams);
11
+ };
6
12
  const clearParams = () => {
7
- terminalsListQueryParams.reset();
13
+ filterParamsStore.reset();
8
14
  };
9
15
 
10
- export { clearParams as c, onQueryParamsChange as o, queryParams as q };
16
+ export { clearParams as c, filterParams as f, getRequestParams as g, onQueryParamsChange as o, propsParams as p };
@@ -128,14 +128,14 @@ export interface IBusiness {
128
128
  email: string;
129
129
  id: string;
130
130
  industry: string;
131
- legal_address: IAddress | {};
131
+ legal_address?: IAddress | null;
132
132
  legal_name: string;
133
133
  metadata: any;
134
134
  owners: Identity[];
135
135
  phone: string;
136
136
  platform_account_id: string;
137
137
  product_categories: ProductCategories;
138
- representative: Identity | {};
138
+ representative?: Identity | null;
139
139
  tax_id: string;
140
140
  terms_conditions_accepted: boolean;
141
141
  updated_at: string;
@@ -153,13 +153,13 @@ export declare class Business implements IBusiness {
153
153
  email: string;
154
154
  id: string;
155
155
  industry: string;
156
- legal_address: Address | {};
156
+ legal_address?: Address | null;
157
157
  legal_name: string;
158
158
  metadata: any;
159
159
  owners: Identity[];
160
160
  phone: string;
161
161
  platform_account_id: string;
162
- representative: Identity | {};
162
+ representative?: Identity | null;
163
163
  tax_id: string;
164
164
  terms_conditions_accepted: boolean;
165
165
  updated_at: string;