@justifi/webcomponents 6.12.3 → 6.12.4

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 (586) hide show
  1. package/dist/cjs/{Analytics-DcqsdFaD.js → Analytics-BERGweGK.js} +2 -3
  2. package/dist/cjs/{Plaid-BlSGeGpn.js → Plaid-BRSyOOuw.js} +60 -4
  3. package/dist/cjs/additional-questions-form-step_14.cjs.entry.js +151 -19
  4. package/dist/cjs/{justifi-additional-statement_8.cjs.entry.js → additional-statement_8.cjs.entry.js} +24 -24
  5. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  6. package/dist/cjs/{business-identity-schema-DWWtSiUF.js → business-identity-schema-DI9XFbaD.js} +67 -0
  7. package/dist/cjs/{business.service-BheJs82v.js → business.service-Z9OACEQL.js} +1 -2
  8. package/dist/cjs/card-form.cjs.entry.js +2 -2
  9. package/dist/cjs/{check-pkg-version-DFTQGZz1.js → check-pkg-version-ByKpJklZ.js} +1 -1
  10. package/dist/cjs/{checkout.service-DZKdHQQq.js → checkout.service-BZOyqXgW.js} +1 -2
  11. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  12. package/dist/cjs/{justifi-dispute-notification_3.cjs.entry.js → dispute-notification_2.cjs.entry.js} +67 -90
  13. package/dist/cjs/{event-types-BWQT2lwu.js → event-types-AU1B76Vm.js} +30 -0
  14. package/dist/cjs/form-address-fields_3.cjs.entry.js +2 -2
  15. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  16. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  17. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-number_2.cjs.entry.js +89 -0
  20. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  21. package/dist/cjs/form-control-select_2.cjs.entry.js +4 -4
  22. package/dist/cjs/{get-business-TFzhaBXn.js → get-business-aR-C83KX.js} +2 -2
  23. package/dist/cjs/{get-payment-details-DL5FmIyF.js → get-payment-details-dwhA02Zl.js} +2 -3
  24. package/dist/cjs/{get-subaccounts-CVK4O7th.js → get-subaccounts-B1jmSa2d.js} +2 -3
  25. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  26. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  27. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +12 -13
  28. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -6
  29. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -6
  30. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  31. package/dist/cjs/justifi-business-details.cjs.entry.js +7 -8
  32. package/dist/cjs/justifi-business-form.cjs.entry.js +10 -12
  33. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  34. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -6
  35. package/dist/cjs/justifi-checkout.cjs.entry.js +4 -5
  36. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +3 -4
  37. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +190 -27
  38. package/dist/cjs/justifi-dispute-management.cjs.entry.js +65 -18
  39. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +11071 -23
  40. package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -10
  41. package/dist/cjs/justifi-payment-details.cjs.entry.js +16 -17
  42. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
  43. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -8
  44. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  45. package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -8
  46. package/dist/cjs/justifi-payout-details.cjs.entry.js +10 -11
  47. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -8
  48. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -4
  49. package/dist/cjs/justifi-payouts-list.cjs.entry.js +9 -10
  50. package/dist/cjs/justifi-refund-payment.cjs.entry.js +7 -8
  51. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +5 -6
  52. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  53. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -5
  54. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +178 -24
  55. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -3
  56. package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -9
  57. package/dist/cjs/loader.cjs.js +1 -1
  58. package/dist/cjs/{package-bM0MyhTf.js → package-B6L3zyfG.js} +1 -1
  59. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  60. package/dist/cjs/{payment-provisioning-actions-BO7dzIm1.js → payment-provisioning-actions-BiSpysjW.js} +2 -2
  61. package/dist/cjs/{payment.service-sZKlg2Jq.js → payment.service-ByrgA_QZ.js} +1 -2
  62. package/dist/cjs/{payout.service-BcQVsMCS.js → payout.service-CnQm_BpU.js} +1 -2
  63. package/dist/cjs/{payouts-status-CwgOMz-S.js → payouts-status-AuS3Mp0V.js} +2 -2
  64. package/dist/cjs/{plaid.service-BcgO2VXC.js → plaid.service-Dlb8EUR8.js} +1 -2
  65. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  66. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  67. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  68. package/dist/cjs/{terminal.service-CjMMWSh3.js → terminal.service-BdwHQ3Vv.js} +1 -2
  69. package/dist/cjs/{utils-DbTucCTO.js → utils-FVGp6se3.js} +1 -1
  70. package/dist/cjs/webcomponents.cjs.js +1 -1
  71. package/dist/collection/api/Terminal.js +1 -1
  72. package/dist/collection/collection-manifest.json +10 -16
  73. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +2 -2
  74. package/dist/collection/components/business-forms/owner-form/owner-form.js +226 -12
  75. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +2 -2
  76. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +166 -16
  77. package/dist/collection/components/dispute-management/{justifi-dispute-notification.js → dispute-notification.js} +5 -6
  78. package/dist/collection/components/dispute-management/dispute-response/{justifi-additional-statement.js → additional-statement.js} +3 -3
  79. package/dist/collection/components/dispute-management/dispute-response/{justifi-cancellation-policy.js → cancellation-policy.js} +3 -3
  80. package/dist/collection/components/dispute-management/dispute-response/{justifi-customer-details.js → customer-details.js} +3 -3
  81. package/dist/collection/components/dispute-management/dispute-response/{dispute-response-core.js → dispute-response.js} +105 -77
  82. package/dist/collection/components/dispute-management/dispute-response/{justifi-duplicate-charge.js → duplicate-charge.js} +3 -3
  83. package/dist/collection/components/dispute-management/dispute-response/{justifi-electronic-evidence.js → electronic-evidence.js} +3 -3
  84. package/dist/collection/components/dispute-management/dispute-response/{justifi-product-or-service.js → product-or-service.js} +3 -3
  85. package/dist/collection/components/dispute-management/dispute-response/{justifi-refund-policy.js → refund-policy.js} +3 -3
  86. package/dist/collection/components/dispute-management/dispute-response/{justifi-shipping-details.js → shipping-details.js} +3 -3
  87. package/dist/collection/components/dispute-management/justifi-dispute-management.js +78 -11
  88. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  89. package/dist/collection/components/gross-payment-chart/justifi-gross-payment-chart.js +79 -15
  90. package/dist/collection/components/modular-checkout/justifi-modular-checkout.js +1 -1
  91. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-billing-form-simple.js +1 -1
  92. package/dist/collection/components/modular-checkout/sub-components/justifi-bank-account-form.js +1 -1
  93. package/dist/collection/components/modular-checkout/sub-components/justifi-billing-form-full.js +1 -1
  94. package/dist/collection/components/modular-checkout/sub-components/justifi-card-billing-form-simple.js +1 -1
  95. package/dist/collection/components/modular-checkout/sub-components/justifi-card-form.js +1 -1
  96. package/dist/collection/components/modular-checkout/sub-components/justifi-checkout-summary.js +1 -1
  97. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  98. package/dist/collection/components/order-terminals/justifi-order-terminals.js +1 -1
  99. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  100. package/dist/collection/components/payment-details/justifi-payment-details.js +8 -8
  101. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
  102. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  103. package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
  104. package/dist/collection/components/payout-details/justifi-payout-details.js +3 -3
  105. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
  106. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  107. package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
  108. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  109. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +134 -10
  110. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  111. package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
  112. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
  113. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  114. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  115. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  116. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  117. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  118. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  119. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  120. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  121. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  122. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  123. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  124. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  125. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  126. package/dist/collection/ui-components/internal-button.js +1 -1
  127. package/dist/collection/ui-components/radio-list-item.js +1 -1
  128. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  129. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  130. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  131. package/dist/docs.json +5763 -6945
  132. package/dist/esm/{Analytics-Cyc3ZLPx.js → Analytics-B1bQP71R.js} +2 -3
  133. package/dist/esm/{Plaid-BuKEVgbB.js → Plaid-l6nNIjab.js} +58 -3
  134. package/dist/esm/additional-questions-details_5.entry.js +2 -2
  135. package/dist/esm/additional-questions-form-step_14.entry.js +156 -24
  136. package/dist/esm/additional-questions_5.entry.js +2 -2
  137. package/dist/esm/{justifi-additional-statement_8.entry.js → additional-statement_8.entry.js} +19 -19
  138. package/dist/esm/{badge-B6dp1XGV.js → badge-Dlcl9qdm.js} +1 -1
  139. package/dist/esm/bank-account-billing-form-simple_4.entry.js +5 -5
  140. package/dist/esm/bank-account-form.entry.js +4 -4
  141. package/dist/esm/bank-account-read-only-value.entry.js +1 -1
  142. package/dist/esm/business-identity-schema-D-Nk9aGV.js +163 -0
  143. package/dist/esm/{business.service-BPbZ5fxQ.js → business.service-C31wbMVs.js} +1 -2
  144. package/dist/esm/{button-DRdaAudE.js → button-BvzOzV4l.js} +1 -1
  145. package/dist/esm/card-form.entry.js +4 -4
  146. package/dist/esm/{check-pkg-version-6iGDh82c.js → check-pkg-version-CNwUC4SV.js} +1 -1
  147. package/dist/esm/{checkout.service-CJMfFKyS.js → checkout.service-cVdOGDuI.js} +1 -2
  148. package/dist/esm/{country-config-P042rrI3.js → country-config-B_fuF6JU.js} +1 -1
  149. package/dist/esm/custom-popper_2.entry.js +3 -3
  150. package/dist/esm/{justifi-dispute-notification_3.entry.js → dispute-notification_2.entry.js} +68 -90
  151. package/dist/esm/{event-types-Bg2SZArf.js → event-types-DalU_6SB.js} +29 -1
  152. package/dist/esm/form-address-fields_3.entry.js +5 -5
  153. package/dist/esm/form-control-checkbox.entry.js +3 -3
  154. package/dist/esm/form-control-date.entry.js +4 -4
  155. package/dist/esm/{form-control-error-text-DVedKyhp.js → form-control-error-text-Di9QePY5.js} +1 -1
  156. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  157. package/dist/esm/form-control-file.entry.js +4 -4
  158. package/dist/esm/{form-control-help-text-D-349cNw.js → form-control-help-text-DGMpMuAm.js} +1 -1
  159. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  160. package/dist/esm/form-control-monetary.entry.js +5 -5
  161. package/dist/esm/form-control-number_2.entry.js +86 -0
  162. package/dist/esm/form-control-radio.entry.js +3 -3
  163. package/dist/esm/form-control-select_2.entry.js +6 -6
  164. package/dist/esm/{get-business-DIpEbczl.js → get-business-Gg6qn5on.js} +2 -2
  165. package/dist/esm/{get-payment-details-DjBou5Fu.js → get-payment-details-BiWgSJau.js} +2 -3
  166. package/dist/esm/{get-subaccounts-CgDWE_5o.js → get-subaccounts-CkjZeR9U.js} +2 -3
  167. package/dist/esm/{header-1-Bl7MHW0w.js → header-1-evYxFIGN.js} +1 -1
  168. package/dist/esm/{header-3-C7JJVnMG.js → header-3-BUDap2xY.js} +1 -1
  169. package/dist/esm/hidden-input_2.entry.js +7 -7
  170. package/dist/esm/{index.esm-BHdVU4hV.js → index.esm-CgNcFueq.js} +1 -1
  171. package/dist/esm/{insurance-state-qTdpe84i.js → insurance-state-CLGc1-_4.js} +1 -1
  172. package/dist/esm/internal-button.entry.js +3 -3
  173. package/dist/esm/justifi-apple-pay_11.entry.js +17 -18
  174. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -6
  175. package/dist/esm/justifi-bank-account-form.entry.js +5 -6
  176. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  177. package/dist/esm/justifi-business-details.entry.js +10 -11
  178. package/dist/esm/justifi-business-form.entry.js +15 -17
  179. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  180. package/dist/esm/justifi-card-form.entry.js +5 -6
  181. package/dist/esm/justifi-checkout.entry.js +5 -6
  182. package/dist/esm/justifi-checkouts-list-filters.entry.js +4 -5
  183. package/dist/esm/justifi-checkouts-list.entry.js +190 -27
  184. package/dist/esm/justifi-details.entry.js +2 -2
  185. package/dist/esm/justifi-dispute-management.entry.js +64 -17
  186. package/dist/esm/justifi-gross-payment-chart.entry.js +11071 -23
  187. package/dist/esm/justifi-order-terminals.entry.js +11 -12
  188. package/dist/esm/justifi-payment-details.entry.js +20 -21
  189. package/dist/esm/justifi-payment-provisioning.entry.js +11 -12
  190. package/dist/esm/justifi-payment-transactions-list.entry.js +10 -11
  191. package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
  192. package/dist/esm/justifi-payments-list.entry.js +12 -13
  193. package/dist/esm/justifi-payout-details.entry.js +15 -16
  194. package/dist/esm/justifi-payout-transactions-list.entry.js +10 -11
  195. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -5
  196. package/dist/esm/justifi-payouts-list.entry.js +13 -14
  197. package/dist/esm/justifi-refund-payment.entry.js +11 -12
  198. package/dist/esm/justifi-saved-payment-method.entry.js +1 -1
  199. package/dist/esm/justifi-season-interruption-insurance.entry.js +8 -9
  200. package/dist/esm/justifi-skeleton.entry.js +3 -3
  201. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -6
  202. package/dist/esm/justifi-terminal-orders-list.entry.js +175 -21
  203. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -4
  204. package/dist/esm/justifi-terminals-list.entry.js +12 -13
  205. package/dist/esm/loader.js +1 -1
  206. package/dist/esm/{package-beXEDfB9.js → package-OGt0dCJl.js} +1 -1
  207. package/dist/esm/pagination-menu.entry.js +1 -1
  208. package/dist/esm/{parts-DnrawQn3.js → parts-CPKMvyV_.js} +1 -1
  209. package/dist/esm/payment-method-option.entry.js +2 -2
  210. package/dist/esm/{payment-provisioning-actions-Dr0YIShV.js → payment-provisioning-actions-cl5xIYnF.js} +2 -2
  211. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +2 -2
  212. package/dist/esm/{payment-provisioning-loading-DI2wDkhm.js → payment-provisioning-loading-Dve2xQA4.js} +1 -1
  213. package/dist/esm/{payment.service-Ckbb7gXA.js → payment.service-5_u-UzTY.js} +1 -2
  214. package/dist/esm/{payments-status-BIDoGw-m.js → payments-status-BlVUt4C1.js} +1 -1
  215. package/dist/esm/{payout.service-BgFKxEoL.js → payout.service-D2zS5y8N.js} +1 -2
  216. package/dist/esm/{payouts-status-1T2NZBoE.js → payouts-status-DCjCGTaa.js} +3 -3
  217. package/dist/esm/{plaid.service-BLguQHs_.js → plaid.service-BiJ65YG8.js} +1 -2
  218. package/dist/esm/radio-list-item.entry.js +2 -2
  219. package/dist/esm/{schema-validations-v6WGlZkq.js → schema-validations-u9_XnlUL.js} +2 -2
  220. package/dist/esm/{skeleton-CXGFVqDf.js → skeleton-BEHo2ypu.js} +1 -1
  221. package/dist/esm/{spinner-kSw6PcwU.js → spinner-DIiQZd6_.js} +1 -1
  222. package/dist/esm/{table-CcyuIutB.js → table-DqGfsdys.js} +3 -3
  223. package/dist/esm/table-filters-menu.entry.js +3 -3
  224. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  225. package/dist/esm/{terminal.service-0oISl5j-.js → terminal.service-CIxDfM7V.js} +1 -2
  226. package/dist/esm/{utils-DcfpJGDZ.js → utils-C1B2hVAB.js} +1 -1
  227. package/dist/esm/{utils-BxYS3WDw.js → utils-CX6puxwf.js} +1 -1
  228. package/dist/esm/webcomponents.js +1 -1
  229. package/dist/module/Plaid.js +2 -2
  230. package/dist/module/{justifi-refund-policy.d.ts → additional-statement.d.ts} +4 -4
  231. package/dist/module/additional-statement.js +6 -0
  232. package/dist/module/{justifi-additional-statement2.js → additional-statement2.js} +8 -8
  233. package/dist/module/badge.js +1 -1
  234. package/dist/module/bank-account-billing-form-simple2.js +1 -1
  235. package/dist/module/billing-form-full2.js +1 -1
  236. package/dist/module/business-bank-account-form-step2.js +1 -1
  237. package/dist/module/business-owners-form-step2.js +20 -26
  238. package/dist/module/button.js +1 -1
  239. package/dist/module/cancellation-policy.d.ts +11 -0
  240. package/dist/module/cancellation-policy.js +6 -0
  241. package/dist/module/{justifi-cancellation-policy2.js → cancellation-policy2.js} +8 -8
  242. package/dist/module/card-billing-form-simple2.js +1 -1
  243. package/dist/module/custom-popper2.js +2 -2
  244. package/dist/module/{checkouts-list-core.d.ts → customer-details.d.ts} +4 -4
  245. package/dist/module/customer-details.js +6 -0
  246. package/dist/module/{justifi-customer-details2.js → customer-details2.js} +8 -8
  247. package/dist/module/dispute-notification.d.ts +11 -0
  248. package/dist/module/dispute-notification.js +6 -0
  249. package/dist/module/dispute-notification2.js +82 -0
  250. package/dist/module/dispute-response.d.ts +11 -0
  251. package/dist/module/dispute-response.js +6 -0
  252. package/dist/module/{dispute-response-core.js → dispute-response2.js} +105 -53
  253. package/dist/module/duplicate-charge.d.ts +11 -0
  254. package/dist/module/duplicate-charge.js +6 -0
  255. package/dist/module/{justifi-duplicate-charge2.js → duplicate-charge2.js} +8 -8
  256. package/dist/module/electronic-evidence.d.ts +11 -0
  257. package/dist/module/electronic-evidence.js +6 -0
  258. package/dist/module/{justifi-electronic-evidence2.js → electronic-evidence2.js} +8 -8
  259. package/dist/module/event-types3.js +119 -1
  260. package/dist/module/form-alert2.js +1 -1
  261. package/dist/module/form-control-date2.js +2 -2
  262. package/dist/module/form-control-file-v22.js +1 -1
  263. package/dist/module/form-control-file2.js +2 -2
  264. package/dist/module/form-control-monetary2.js +2 -2
  265. package/dist/module/form-control-number-masked2.js +2 -2
  266. package/dist/module/form-control-number2.js +3 -3
  267. package/dist/module/form-control-radio2.js +2 -2
  268. package/dist/module/form-control-select2.js +2 -2
  269. package/dist/module/form-control-text2.js +2 -2
  270. package/dist/module/form-control-textarea2.js +3 -3
  271. package/dist/module/get-payment-details.js +1 -1
  272. package/dist/module/hidden-input2.js +2 -2
  273. package/dist/module/iframe-input2.js +4 -4
  274. package/dist/module/internal-button2.js +1 -1
  275. package/dist/module/justifi-bank-account-billing-form-simple.js +1 -1
  276. package/dist/module/justifi-bank-account-form.js +1 -1
  277. package/dist/module/justifi-billing-form-full.js +1 -1
  278. package/dist/module/justifi-button2.js +1 -1
  279. package/dist/module/justifi-card-billing-form-simple.js +1 -1
  280. package/dist/module/justifi-card-form.js +1 -1
  281. package/dist/module/justifi-checkout-summary2.js +1 -1
  282. package/dist/module/justifi-checkouts-list-filters.js +3 -3
  283. package/dist/module/justifi-checkouts-list.js +197 -28
  284. package/dist/module/justifi-dispute-management.js +103 -62
  285. package/dist/module/justifi-gross-payment-chart.js +11074 -24
  286. package/dist/module/justifi-header2.js +1 -1
  287. package/dist/module/justifi-modular-checkout2.js +2 -2
  288. package/dist/module/justifi-order-terminals.js +4 -4
  289. package/dist/module/justifi-payment-details.js +9 -9
  290. package/dist/module/justifi-payment-provisioning.js +53 -59
  291. package/dist/module/justifi-payment-transactions-list.js +2 -2
  292. package/dist/module/justifi-payments-list-filters.js +2 -2
  293. package/dist/module/justifi-payments-list.js +2 -2
  294. package/dist/module/justifi-payout-details.js +4 -4
  295. package/dist/module/justifi-payout-transactions-list.js +2 -2
  296. package/dist/module/justifi-payouts-list-filters.js +3 -3
  297. package/dist/module/justifi-payouts-list.js +2 -2
  298. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  299. package/dist/module/justifi-skeleton.js +1 -1
  300. package/dist/module/justifi-terminal-orders-list-filters.js +4 -4
  301. package/dist/module/justifi-terminal-orders-list.js +184 -22
  302. package/dist/module/justifi-terminals-list-filters.js +2 -2
  303. package/dist/module/justifi-terminals-list.js +3 -3
  304. package/dist/module/justifi-tokenize-payment-method2.js +1 -1
  305. package/dist/module/owner-form-inputs2.js +2 -2
  306. package/dist/module/owner-form2.js +177 -33
  307. package/dist/module/package.js +1 -1
  308. package/dist/module/pagination-menu2.js +1 -1
  309. package/dist/module/parts.js +1 -1
  310. package/dist/module/payment-method-option.js +1 -1
  311. package/dist/module/payment-provisioning-form-steps2.js +52 -58
  312. package/dist/module/product-or-service.d.ts +11 -0
  313. package/dist/module/product-or-service.js +6 -0
  314. package/dist/module/{justifi-product-or-service2.js → product-or-service2.js} +8 -8
  315. package/dist/module/radio-list-item2.js +1 -1
  316. package/dist/module/{owner-form-core.d.ts → refund-policy.d.ts} +4 -4
  317. package/dist/module/refund-policy.js +6 -0
  318. package/dist/module/{justifi-refund-policy2.js → refund-policy2.js} +8 -8
  319. package/dist/module/shipping-details.d.ts +11 -0
  320. package/dist/module/shipping-details.js +6 -0
  321. package/dist/module/{justifi-shipping-details2.js → shipping-details2.js} +8 -8
  322. package/dist/module/spinner.js +1 -1
  323. package/dist/module/table-filters-menu2.js +1 -1
  324. package/dist/module/terminal-quantity-selector2.js +1 -1
  325. package/dist/module/utils2.js +1 -1
  326. package/dist/types/api/Terminal.d.ts +1 -1
  327. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +69 -5
  328. package/dist/types/components/checkouts-list/justifi-checkouts-list.d.ts +28 -6
  329. package/dist/types/components/dispute-management/{justifi-dispute-notification.d.ts → dispute-notification.d.ts} +1 -1
  330. package/dist/types/components/dispute-management/dispute-response/{justifi-additional-statement.d.ts → additional-statement.d.ts} +1 -1
  331. package/dist/types/components/dispute-management/dispute-response/{justifi-cancellation-policy.d.ts → cancellation-policy.d.ts} +1 -1
  332. package/dist/types/components/dispute-management/dispute-response/{justifi-customer-details.d.ts → customer-details.d.ts} +1 -1
  333. package/dist/types/components/dispute-management/dispute-response/{dispute-response-core.d.ts → dispute-response.d.ts} +21 -10
  334. package/dist/types/components/dispute-management/dispute-response/{justifi-duplicate-charge.d.ts → duplicate-charge.d.ts} +1 -1
  335. package/dist/types/components/dispute-management/dispute-response/{justifi-electronic-evidence.d.ts → electronic-evidence.d.ts} +1 -1
  336. package/dist/types/components/dispute-management/dispute-response/{justifi-product-or-service.d.ts → product-or-service.d.ts} +1 -1
  337. package/dist/types/components/dispute-management/dispute-response/{justifi-refund-policy.d.ts → refund-policy.d.ts} +1 -1
  338. package/dist/types/components/dispute-management/dispute-response/{justifi-shipping-details.d.ts → shipping-details.d.ts} +1 -1
  339. package/dist/types/components/dispute-management/justifi-dispute-management.d.ts +10 -2
  340. package/dist/types/components/gross-payment-chart/justifi-gross-payment-chart.d.ts +13 -2
  341. package/dist/types/components/terminal-orders-list/justifi-terminal-orders-list.d.ts +21 -3
  342. package/dist/types/components.d.ts +304 -551
  343. package/dist/webcomponents/p-0708cb76.entry.js +1 -0
  344. package/dist/webcomponents/p-07236291.entry.js +1 -0
  345. package/dist/webcomponents/p-12ae030d.entry.js +1 -0
  346. package/dist/webcomponents/p-215c6b6b.entry.js +1 -0
  347. package/dist/webcomponents/{p-256c5509.entry.js → p-22d19755.entry.js} +1 -1
  348. package/dist/webcomponents/{p-2425a375.entry.js → p-2dfdecbb.entry.js} +1 -1
  349. package/dist/webcomponents/p-31452258.entry.js +1 -0
  350. package/dist/webcomponents/p-35dd1fc0.entry.js +1 -0
  351. package/dist/webcomponents/{p-4d21df48.entry.js → p-383b8317.entry.js} +1 -1
  352. package/dist/webcomponents/{p-1e877e0a.entry.js → p-3d6b9434.entry.js} +1 -1
  353. package/dist/webcomponents/p-3f5e9afb.entry.js +1 -0
  354. package/dist/webcomponents/p-45c0fb53.entry.js +1 -0
  355. package/dist/webcomponents/p-46477dfe.entry.js +1 -0
  356. package/dist/webcomponents/{p-31e74a5a.entry.js → p-49a4123c.entry.js} +1 -1
  357. package/dist/webcomponents/{p-befe01ef.entry.js → p-49c13952.entry.js} +1 -1
  358. package/dist/webcomponents/p-4ccf9cd7.entry.js +1 -0
  359. package/dist/webcomponents/p-4ec433f4.entry.js +1 -0
  360. package/dist/webcomponents/p-58b5e08e.entry.js +1 -0
  361. package/dist/webcomponents/p-5G1OMxZz.js +1 -0
  362. package/dist/webcomponents/{p-8253ef9f.entry.js → p-605bd107.entry.js} +1 -1
  363. package/dist/webcomponents/p-6220a384.entry.js +1 -0
  364. package/dist/webcomponents/p-63b7abf3.entry.js +1 -0
  365. package/dist/webcomponents/p-69fdd137.entry.js +1 -0
  366. package/dist/webcomponents/p-6RTf1SXX.js +1 -0
  367. package/dist/webcomponents/{p-3c046adc.entry.js → p-70dcd833.entry.js} +1 -1
  368. package/dist/webcomponents/p-7119fddd.entry.js +1 -0
  369. package/dist/webcomponents/p-7ebed752.entry.js +1 -0
  370. package/dist/webcomponents/p-8964f4ca.entry.js +1 -0
  371. package/dist/webcomponents/p-89cd31f2.entry.js +1 -0
  372. package/dist/webcomponents/p-8aa53ef2.entry.js +1 -0
  373. package/dist/webcomponents/p-8d173a7c.entry.js +1 -0
  374. package/dist/webcomponents/p-9153c121.entry.js +1 -0
  375. package/dist/webcomponents/p-91aef5bf.entry.js +1 -0
  376. package/dist/webcomponents/p-9b944aa4.entry.js +1 -0
  377. package/dist/webcomponents/p-9d021e10.entry.js +1 -0
  378. package/dist/webcomponents/{p-bc2af6b4.entry.js → p-9fc7714d.entry.js} +1 -1
  379. package/dist/webcomponents/{p-CR_-qIuN.js → p-APOabprT.js} +1 -1
  380. package/dist/webcomponents/p-Aacb4jqT.js +1 -0
  381. package/dist/webcomponents/p-B5gBiARs.js +1 -0
  382. package/dist/webcomponents/{p-bn_huKYG.js → p-BICxxa69.js} +1 -1
  383. package/dist/webcomponents/p-BJu1-9kE.js +1 -0
  384. package/dist/webcomponents/{p-Cej-1bD6.js → p-BXyADlAH.js} +1 -1
  385. package/dist/webcomponents/p-Ba8jdOkX.js +1 -0
  386. package/dist/webcomponents/p-BxKbnILQ.js +1 -0
  387. package/dist/webcomponents/{p-2LVpxCS_.js → p-CHo7TfsM.js} +1 -1
  388. package/dist/webcomponents/p-CHw7tICr.js +1 -0
  389. package/dist/webcomponents/{p-DnrawQn3.js → p-CPKMvyV_.js} +1 -1
  390. package/dist/webcomponents/p-Ce_W43gc.js +1 -0
  391. package/dist/webcomponents/{p-B5vVjDc_.js → p-Cm9f5fyh.js} +1 -1
  392. package/dist/webcomponents/p-CqiVXthx.js +1 -0
  393. package/dist/webcomponents/{p-x9fFFf7F.js → p-Cu7hgXL1.js} +1 -1
  394. package/dist/webcomponents/p-Cz_7BuGW.js +1 -0
  395. package/dist/webcomponents/p-D-zwk1J3.js +1 -0
  396. package/dist/webcomponents/{p-D1D2eC05.js → p-D1_eip6x.js} +1 -1
  397. package/dist/webcomponents/p-DSclFZ32.js +1 -0
  398. package/dist/webcomponents/p-DYHjzFnJ.js +1 -0
  399. package/dist/webcomponents/p-Dk26hk5T.js +1 -0
  400. package/dist/webcomponents/{p-CKiAlBsU.js → p-DwoT0UoX.js} +1 -1
  401. package/dist/webcomponents/{p-_-2E_vYf.js → p-DyucNSA4.js} +1 -1
  402. package/dist/webcomponents/p-KXLYEe1D.js +1 -0
  403. package/dist/webcomponents/p-NZS8uCtH.js +1 -0
  404. package/dist/webcomponents/p-OGt0dCJl.js +1 -0
  405. package/dist/webcomponents/p-a1dcdc8b.entry.js +20 -0
  406. package/dist/webcomponents/{p-10be75b8.entry.js → p-a80f69a9.entry.js} +1 -1
  407. package/dist/webcomponents/{p-9581d6a1.entry.js → p-a9695714.entry.js} +1 -1
  408. package/dist/webcomponents/{p-c9e1df15.entry.js → p-ae91fc9b.entry.js} +1 -1
  409. package/dist/webcomponents/p-av6jyzyC.js +1 -0
  410. package/dist/webcomponents/p-b0b6083f.entry.js +1 -0
  411. package/dist/webcomponents/p-b272a29d.entry.js +1 -0
  412. package/dist/webcomponents/p-b341efd6.entry.js +1 -0
  413. package/dist/webcomponents/{p-e6e56dbb.entry.js → p-b62ff001.entry.js} +1 -1
  414. package/dist/webcomponents/p-c1539656.entry.js +1 -0
  415. package/dist/webcomponents/p-c8f3656f.entry.js +1 -0
  416. package/dist/webcomponents/p-c9fe4f33.entry.js +1 -0
  417. package/dist/webcomponents/{p-09d2efad.entry.js → p-ca87c609.entry.js} +1 -1
  418. package/dist/webcomponents/p-cde76bf8.entry.js +1 -0
  419. package/dist/webcomponents/p-d24240a5.entry.js +1 -0
  420. package/dist/webcomponents/p-d79c5ee4.entry.js +1 -0
  421. package/dist/webcomponents/p-daaa2a99.entry.js +1 -0
  422. package/dist/webcomponents/{p-9db1444f.entry.js → p-db09f306.entry.js} +1 -1
  423. package/dist/webcomponents/{p-354fb3c4.entry.js → p-e020f003.entry.js} +1 -1
  424. package/dist/webcomponents/p-e4cb7c21.entry.js +1 -0
  425. package/dist/webcomponents/p-e5c2215a.entry.js +1 -0
  426. package/dist/webcomponents/p-ea0d7a98.entry.js +1 -0
  427. package/dist/webcomponents/p-ef85717f.entry.js +1 -0
  428. package/dist/webcomponents/p-f1b9cbf0.entry.js +1 -0
  429. package/dist/webcomponents/p-f30069ea.entry.js +1 -0
  430. package/dist/webcomponents/p-f3ff7e00.entry.js +1 -0
  431. package/dist/webcomponents/p-f9aafb21.entry.js +1 -0
  432. package/dist/webcomponents/p-fE5A37L5.js +1 -0
  433. package/dist/webcomponents/p-jIDKmNHy.js +1 -0
  434. package/dist/webcomponents/{p-DgH-jcIo.js → p-mF5zKtkx.js} +1 -1
  435. package/dist/webcomponents/p-nb_LhbJq.js +1 -0
  436. package/dist/webcomponents/p-oTtn8xDw.js +1 -0
  437. package/dist/webcomponents/p-uZ5KAseb.js +1 -0
  438. package/dist/webcomponents/webcomponents.esm.js +1 -1
  439. package/package.json +1 -1
  440. package/dist/cjs/Dispute-CruQTF6_.js +0 -59
  441. package/dist/cjs/business-additional-questions-schema-CI80eZLJ.js +0 -73
  442. package/dist/cjs/checkouts-list-core.cjs.entry.js +0 -146
  443. package/dist/cjs/checkouts-table-CCxrsy0x.js +0 -55
  444. package/dist/cjs/dispute.service-BbtwY673.js +0 -32
  445. package/dist/cjs/form-control-number_3.cjs.entry.js +0 -249
  446. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +0 -11075
  447. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +0 -61
  448. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +0 -108
  449. package/dist/cjs/terminal-orders-table-Cz6qvzVE.js +0 -83
  450. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +0 -523
  451. package/dist/collection/components/checkouts-list/checkouts-list-core.js +0 -262
  452. package/dist/collection/components/dispute-management/dispute-management-core.js +0 -169
  453. package/dist/collection/components/dispute-management/dispute-response/justifi-dispute-response.js +0 -190
  454. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +0 -139
  455. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +0 -199
  456. package/dist/esm/Dispute-BH0Xfn-F.js +0 -57
  457. package/dist/esm/business-additional-questions-schema-DKudYaoE.js +0 -69
  458. package/dist/esm/business-identity-schema-CFhSc0cA.js +0 -99
  459. package/dist/esm/checkouts-list-core.entry.js +0 -144
  460. package/dist/esm/checkouts-table-C8sPHeTm.js +0 -51
  461. package/dist/esm/dispute.service-vlYGy0nR.js +0 -30
  462. package/dist/esm/form-control-number_3.entry.js +0 -245
  463. package/dist/esm/gross-payment-chart-core.entry.js +0 -11073
  464. package/dist/esm/justifi-dispute-management-core.entry.js +0 -59
  465. package/dist/esm/terminal-orders-list-core.entry.js +0 -106
  466. package/dist/esm/terminal-orders-table-C7KOcRpq.js +0 -79
  467. package/dist/module/checkouts-list-core.js +0 -6
  468. package/dist/module/checkouts-list-core2.js +0 -227
  469. package/dist/module/dispute-management-core.js +0 -193
  470. package/dist/module/dispute-response-actions.js +0 -119
  471. package/dist/module/gross-payment-chart-core.d.ts +0 -11
  472. package/dist/module/gross-payment-chart-core.js +0 -6
  473. package/dist/module/gross-payment-chart-core2.js +0 -11096
  474. package/dist/module/justifi-additional-statement.d.ts +0 -11
  475. package/dist/module/justifi-additional-statement.js +0 -6
  476. package/dist/module/justifi-cancellation-policy.d.ts +0 -11
  477. package/dist/module/justifi-cancellation-policy.js +0 -6
  478. package/dist/module/justifi-customer-details.d.ts +0 -11
  479. package/dist/module/justifi-customer-details.js +0 -6
  480. package/dist/module/justifi-dispute-management-core.d.ts +0 -11
  481. package/dist/module/justifi-dispute-management-core.js +0 -6
  482. package/dist/module/justifi-dispute-notification.d.ts +0 -11
  483. package/dist/module/justifi-dispute-notification.js +0 -6
  484. package/dist/module/justifi-dispute-notification2.js +0 -85
  485. package/dist/module/justifi-dispute-response-core.d.ts +0 -11
  486. package/dist/module/justifi-dispute-response-core.js +0 -6
  487. package/dist/module/justifi-dispute-response.d.ts +0 -11
  488. package/dist/module/justifi-dispute-response.js +0 -6
  489. package/dist/module/justifi-dispute-response2.js +0 -198
  490. package/dist/module/justifi-duplicate-charge.d.ts +0 -11
  491. package/dist/module/justifi-duplicate-charge.js +0 -6
  492. package/dist/module/justifi-electronic-evidence.d.ts +0 -11
  493. package/dist/module/justifi-electronic-evidence.js +0 -6
  494. package/dist/module/justifi-product-or-service.d.ts +0 -11
  495. package/dist/module/justifi-product-or-service.js +0 -6
  496. package/dist/module/justifi-refund-policy.js +0 -6
  497. package/dist/module/justifi-shipping-details.d.ts +0 -11
  498. package/dist/module/justifi-shipping-details.js +0 -6
  499. package/dist/module/owner-form-core.js +0 -6
  500. package/dist/module/owner-form-core2.js +0 -262
  501. package/dist/module/terminal-orders-list-core.d.ts +0 -11
  502. package/dist/module/terminal-orders-list-core.js +0 -6
  503. package/dist/module/terminal-orders-list-core2.js +0 -209
  504. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +0 -88
  505. package/dist/types/components/checkouts-list/checkouts-list-core.d.ts +0 -34
  506. package/dist/types/components/dispute-management/dispute-management-core.d.ts +0 -18
  507. package/dist/types/components/dispute-management/dispute-response/justifi-dispute-response.d.ts +0 -35
  508. package/dist/types/components/gross-payment-chart/gross-payment-chart-core.d.ts +0 -21
  509. package/dist/types/components/terminal-orders-list/terminal-orders-list-core.d.ts +0 -28
  510. package/dist/webcomponents/p--e0ff06z.js +0 -1
  511. package/dist/webcomponents/p-032b4553.entry.js +0 -1
  512. package/dist/webcomponents/p-042daaf8.entry.js +0 -1
  513. package/dist/webcomponents/p-0638f0bd.entry.js +0 -1
  514. package/dist/webcomponents/p-0b3f4f22.entry.js +0 -1
  515. package/dist/webcomponents/p-1c4f5f1d.entry.js +0 -1
  516. package/dist/webcomponents/p-1e8135f0.entry.js +0 -1
  517. package/dist/webcomponents/p-24935254.entry.js +0 -1
  518. package/dist/webcomponents/p-2a755daf.entry.js +0 -1
  519. package/dist/webcomponents/p-3488951f.entry.js +0 -1
  520. package/dist/webcomponents/p-437a99dc.entry.js +0 -1
  521. package/dist/webcomponents/p-49c0cd3a.entry.js +0 -1
  522. package/dist/webcomponents/p-50f5e313.entry.js +0 -1
  523. package/dist/webcomponents/p-52908814.entry.js +0 -1
  524. package/dist/webcomponents/p-587886f1.entry.js +0 -1
  525. package/dist/webcomponents/p-5ef355ce.entry.js +0 -1
  526. package/dist/webcomponents/p-5ef854e0.entry.js +0 -1
  527. package/dist/webcomponents/p-67498c25.entry.js +0 -1
  528. package/dist/webcomponents/p-6917aa3c.entry.js +0 -1
  529. package/dist/webcomponents/p-6d81822f.entry.js +0 -1
  530. package/dist/webcomponents/p-6f0c582a.entry.js +0 -1
  531. package/dist/webcomponents/p-80652cf8.entry.js +0 -1
  532. package/dist/webcomponents/p-82fe02e4.entry.js +0 -1
  533. package/dist/webcomponents/p-83147f23.entry.js +0 -1
  534. package/dist/webcomponents/p-8c2427ed.entry.js +0 -1
  535. package/dist/webcomponents/p-92de00d7.entry.js +0 -1
  536. package/dist/webcomponents/p-94306884.entry.js +0 -1
  537. package/dist/webcomponents/p-9937e2e7.entry.js +0 -1
  538. package/dist/webcomponents/p-9dca1331.entry.js +0 -1
  539. package/dist/webcomponents/p-9f74d7ea.entry.js +0 -1
  540. package/dist/webcomponents/p-B--N37zY.js +0 -1
  541. package/dist/webcomponents/p-BH0Xfn-F.js +0 -1
  542. package/dist/webcomponents/p-Bg2SZArf.js +0 -1
  543. package/dist/webcomponents/p-BovgIz83.js +0 -1
  544. package/dist/webcomponents/p-BsQy297i.js +0 -1
  545. package/dist/webcomponents/p-CDf5H0TB.js +0 -1
  546. package/dist/webcomponents/p-CUI41_5y.js +0 -1
  547. package/dist/webcomponents/p-CX36GHQP.js +0 -1
  548. package/dist/webcomponents/p-Cf6HoQKl.js +0 -1
  549. package/dist/webcomponents/p-CsdYMTrc.js +0 -1
  550. package/dist/webcomponents/p-D4OlsyTo.js +0 -1
  551. package/dist/webcomponents/p-D8EGHc_m.js +0 -1
  552. package/dist/webcomponents/p-DPmnGTmg.js +0 -1
  553. package/dist/webcomponents/p-DWevPe7C.js +0 -1
  554. package/dist/webcomponents/p-Dbg501Lu.js +0 -1
  555. package/dist/webcomponents/p-DcBvJu0k.js +0 -1
  556. package/dist/webcomponents/p-DkdzUTnl.js +0 -1
  557. package/dist/webcomponents/p-HT_4DkD0.js +0 -1
  558. package/dist/webcomponents/p-MDZuGvsl.js +0 -1
  559. package/dist/webcomponents/p-XrKLre8M.js +0 -1
  560. package/dist/webcomponents/p-a75d76ff.entry.js +0 -1
  561. package/dist/webcomponents/p-a7778957.entry.js +0 -1
  562. package/dist/webcomponents/p-a9d7cdae.entry.js +0 -1
  563. package/dist/webcomponents/p-b060a9c9.entry.js +0 -1
  564. package/dist/webcomponents/p-b06910b0.entry.js +0 -1
  565. package/dist/webcomponents/p-b483e71b.entry.js +0 -1
  566. package/dist/webcomponents/p-bdf21f71.entry.js +0 -1
  567. package/dist/webcomponents/p-be5d1005.entry.js +0 -1
  568. package/dist/webcomponents/p-beXEDfB9.js +0 -1
  569. package/dist/webcomponents/p-bfe2583d.entry.js +0 -1
  570. package/dist/webcomponents/p-c09fccd3.entry.js +0 -1
  571. package/dist/webcomponents/p-c827cbc9.entry.js +0 -1
  572. package/dist/webcomponents/p-cc5b7c27.entry.js +0 -1
  573. package/dist/webcomponents/p-d878df6c.entry.js +0 -1
  574. package/dist/webcomponents/p-ddf699e6.entry.js +0 -20
  575. package/dist/webcomponents/p-e0b3735f.entry.js +0 -1
  576. package/dist/webcomponents/p-ea30cf08.entry.js +0 -1
  577. package/dist/webcomponents/p-edf5a854.entry.js +0 -1
  578. package/dist/webcomponents/p-ef89824b.entry.js +0 -1
  579. package/dist/webcomponents/p-fc7ba195.entry.js +0 -1
  580. package/dist/webcomponents/p-hhdRync5.js +0 -1
  581. package/dist/webcomponents/p-niGr4RT2.js +0 -1
  582. package/dist/webcomponents/p-pL4dNfsl.js +0 -1
  583. package/dist/webcomponents/p-qcQTYcr3.js +0 -1
  584. package/dist/webcomponents/p-qrNmDp6K.js +0 -1
  585. package/dist/webcomponents/p-uCg79W3M.js +0 -1
  586. package/dist/webcomponents/p-zi3ljCdQ.js +0 -1
@@ -1 +0,0 @@
1
- import{c as s,a as e}from"./p-CKiAlBsU.js";import{m as a,d as i,i as n,b as t,a as r,p as o,e as _,w as u,c,t as l,o as b,f as m,r as d,g as p}from"./p-HT_4DkD0.js";import{C as v}from"./p-BcNb9bVO.js";import{c as f}from"./p-_-2E_vYf.js";const h=e=>{const a=s({legal_name:c.required("Enter legal name"),website_url:u.required("Enter business website url"),email:_.required("Enter business email"),phone:o.required("Enter phone number"),doing_business_as:r.nullable(),classification:t.required("Select business classification"),industry:n.required("Enter a business industry"),date_of_incorporation:i.required("Enter date of registration")}),b=s({legal_name:c.required("Enter legal name"),website_url:u.nullable(),email:_.nullable(),phone:o.nullable(),doing_business_as:r.nullable(),classification:t.nullable(),industry:n.nullable(),tax_id:l.nullable(),date_of_incorporation:i.nullable()});return e?b:a},E=i=>h(i).concat(s({classification:e().required("Select business classification"),tax_id:a(v.USA).when("tax_id_last4",{is:s=>!s,then:s=>s.required(`Enter valid ${f.USA.taxIdLabel} without dashes`),otherwise:s=>s.nullable()})})),g=i=>h(i).concat(s({classification:e().required("Select business classification"),tax_id:a(v.CAN).when("tax_id_last4",{is:s=>!s,then:s=>s.required(`Enter valid ${f.CAN.taxIdLabel} without dashes`),otherwise:s=>s.nullable()})})),w=e=>{const a=s({business_revenue:d.required("Enter business revenue"),business_payment_volume:p.required("Enter business payment volume"),business_average_transaction_amount:d.required("Enter average transaction amount"),business_when_service_received:m.required("Select when service is received"),business_other_payment_details:b.nullable()}),i=s({business_revenue:d.nullable(),business_payment_volume:p.nullable(),business_average_transaction_amount:d.nullable(),business_when_service_received:m.nullable(),business_other_payment_details:b.nullable()});return e?i:a};export{w as a,E as b,g as c}
@@ -1 +0,0 @@
1
- import{h as r}from"./p-CV0Pyo1O.js";import{z as t}from"./p-DnrawQn3.js";const o=o=>{const{errorText:e,name:s}=o;return e?r("small",{class:"form-text text-danger",id:`form-error-text-${s}`,part:t},e):null};export{o as F}
@@ -1 +0,0 @@
1
- import{h as s}from"./p-CV0Pyo1O.js";import{p as r}from"./p-DnrawQn3.js";const a=()=>s("div",{class:"d-flex justify-content-center"},s("div",{class:"spinner-border",role:"status",part:r},s("span",{class:"visually-hidden"},"Loading...")));export{a as S}
@@ -1 +0,0 @@
1
- import{f as t}from"./p-BRnBHsdq.js";import{a as i}from"./p-BH0Xfn-F.js";var s,e,n,a,r,o,h,c,d,u,l,p,f,m,y,v,_,k,g,w,b,P,A,C,S,U,x,B,T,D,E,F;!function(t){t.MISSING_PROPS="missing-props",t.FETCH_ERROR="fetch-error",t.PATCH_ERROR="patch-error",t.POST_ERROR="post-error",t.UNKNOWN_ERROR="unknown-error",t.TOKENIZE_ERROR="tokenize-error",t.COMPLETE_CHECKOUT_ERROR="complete-checkout-error",t.CHECKOUT_ALREADY_COMPLETED="checkout-already-completed",t.CHECKOUT_EXPIRED="checkout-expired",t.NOT_AUTHENTICATED="not-authenticated",t.INVALID_PARAMETER="invalid-parameter",t.PROVISIONING_REQUESTED="provisioning-already-requested",t.INVALID_REFUND_AMOUNT="invalid-refund-amount",t.VALIDATION_ERROR="validation-error"}(s||(s={})),function(t){t.INFO="info",t.WARNING="warning",t.ERROR="error"}(e||(e={})),function(t){t.NOT_AUTHENTICATED="Not authenticated. Please provide a valid auth token, checkout id, and account id.",t.CHECKOUT_ALREADY_COMPLETED="Checkout already completed. Please create a new checkout.",t.CHECKOUT_EXPIRED="Checkout expired. Please create a new checkout."}(n||(n={}));class z{constructor(t){this.payment_mode=a[t.payment_mode],this.payment_token=t.payment_token,this.payment_status=t.payment_status,this.payment_response=t.payment_response,this.payment_error_code=t.payment_error_code,this.payment_error_description=t.payment_error_description,this.checkout_id=t.checkout_id,this.additional_transactions=t.additional_transactions,this.payment_id=t.payment_id,this.payment_method_id=t.payment_method_id,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}}class I{constructor(t){var i;this.id=t.id,this.description=t.description,this.payment_intent_id=t.payment_intent_id,this.account_id=t.account_id,this.platform_account_id=t.platform_account_id,this.payment_amount=t.payment_amount,this.payment_client_id=t.payment_client_id,this.payment_description=t.payment_description,this.payment_methods=t.payment_methods,this.payment_method_group_id=t.payment_method_group_id,this.payment_settings=t.payment_settings,this.bnpl=t.bnpl,this.total_amount=t.total_amount,this.insurance_amount=t.insurance_amount,this.status=o[t.status],this.payment_currency=t.payment_currency,this.mode=t.mode,this.statement_descriptor=t.statement_descriptor,this.application_fees=t.application_fees,this.successful_payment_id=t.successful_payment_id,this.created_at=t.created_at,this.updated_at=t.updated_at,this.completions=null===(i=t.completions)||void 0===i?void 0:i.map((t=>new z(t)))}get payment_mode(){var t,i,s,e,n,r;let o;if(!this.completions||0===this.completions.length)return a.unknown;const h=this.completions.sort(((t,i)=>new Date(i.updated_at).getTime()-new Date(t.updated_at).getTime()))[0];return h.payment_mode?o=h.payment_mode:(null===(s=null===(i=null===(t=h.payment_response)||void 0===t?void 0:t.data)||void 0===i?void 0:i.payment_method)||void 0===s?void 0:s.card)?o=a.card:(null===(r=null===(n=null===(e=h.payment_response)||void 0===e?void 0:e.data)||void 0===n?void 0:n.payment_method)||void 0===r?void 0:r.bank_account)&&(o=a.bank_account),o}formattedPaymentAmount(i){return t(i,this.payment_currency)}}!function(t){t.bnpl="Buy Now Pay Later",t.ecom="E-commerce",t.card="Card",t.bank_account="Bank Account",t.card_present="Card Present",t.apple_pay="Apple Pay",t.unknown=""}(a||(a={})),function(t){t.bnpl="bnpl",t.ecom="ecom",t.apple_pay="apple_pay"}(r||(r={})),function(t){t.created="created",t.completed="completed",t.attempted="attempted",t.expired="expired"}(o||(o={})),function(t){t.failed="failed",t.succeeded="succeeded"}(h||(h={})),function(t){t.automatic="automatic",t.manual="manual"}(c||(c={})),function(t){t.card="card",t.bankAccount="bankAccount",t.sezzle="sezzle",t.plaid="plaid",t.applePay="applePay"}(d||(d={})),function(t){t.card="Card",t.bankAccount="ACH",t.unknown="Unknown"}(u||(u={})),function(t){t.pending="pending",t.automatic="automatic",t.authorized="authorized",t.succeeded="succeeded",t.failed="failed",t.canceled="canceled",t.disputed="disputed",t.fully_refunded="fully_refunded",t.partially_refunded="partially_refunded"}(l||(l={})),function(t){t.usd="usd",t.cad="cad"}(p||(p={}));class q{constructor(t){this.card=t.card?new N(t.card):void 0,this.bank_account=t.bank_account?new M(t.bank_account):void 0}get payersName(){return this.card?this.card.name:this.bank_account?this.bank_account.name:null}get lastFourDigits(){return this.card?`**** ${this.card.acct_last_four}`:this.bank_account?`**** ${this.bank_account.acct_last_four}`:null}}class M{constructor(t){this.id=t.id,this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class N{constructor(t){this.id=t.id||"",this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class j{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.amount_disputed=t.amount_disputed,this.amount_refundable=t.amount_refundable,this.amount_refunded=t.amount_refunded,this.balance=t.balance,this.captured=t.captured,this.capture_strategy=t.capture_strategy,this.description=t.description,this.disputed=t.disputed,this.disputes=t.disputes,this.error_code=t.error_code,this.error_description=t.error_description,this.expedited=t.expedited,this.fee_amount=t.fee_amount,this.is_test=t.is_test,this.metadata=t.metadata,this.payment_method=new q(t.payment_method),this.payment_intent_id=t.payment_intent_id,this.refunded=t.refunded,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}get disputedStatus(){const t=this.disputes.some((t=>t.status===i.lost));return this.disputed?t?i.lost:"open":null}get payment_type(){return this.payment_method?this.payment_method.card?u.card:u.bankAccount:u.unknown}get payers_name(){return this.payment_method.payersName}get last_four_digits(){return this.payment_method.lastFourDigits}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.payment="payment",t.paymentFee="payment_fee",t.payout="payout",t.refund="refund",t.feeRefund="fee_refund",t.dispute="dispute",t.disputeFee="dispute_fee",t.disputeFeeRefund="dispute_fee_refund",t.disputeRefund="dispute_refund",t.applicationFeeReturned="application_fee_returned"}(f||(f={}));class R{constructor(t){this.id=t.id,this.amount=t.amount,this.balance=t.balance,this.currency=t.currency,this.financial_transaction_id=t.financial_transaction_id,this.payment_id=t.payment_id,this.payment_balance_txn_type=t.payment_balance_txn_type,this.source_id=t.source_id,this.source_type=t.source_type,this.created_at=t.created_at,this.updated_at=t.updated_at}get displayTransactionId(){return this.payment_balance_txn_type===f.paymentFee||this.payment_balance_txn_type===f.applicationFeeReturned?"--":this.source_id}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.paid="paid",t.failed="failed",t.forwarded="forwarded",t.scheduled="scheduled",t.in_transit="in_transit",t.canceled="canceled"}(m||(m={})),function(t){t.paid="Paid",t.failed="Failed",t.forwarded="Forwarded",t.scheduled="Scheduled",t.in_transit="In Transit",t.canceled="Canceled"}(y||(y={}));class H{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.bank_account=t.bank_account,this.delivery_method=t.delivery_method||"standard",this.description=t.description,this.deposits_at=t.deposits_at,this.fees_total=t.fees_total,this.refunds_count=t.refunds_count,this.refunds_total=t.refunds_total,this.payments_count=t.payments_count,this.payments_total=t.payments_total,this.payout_type=t.payout_type,this.other_total=t.other_total,this.status=t.status,this.metadata=t.metadata,this.created_at=t.created_at,this.updated_at=t.updated_at,this.settlement_priority=t.settlement_priority||"standard"}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.fee="fee",t.payment="payment",t.payout="payout",t.sellerPaymentRefund="seller_payment_refund",t.disputeAmountCollected="dispute_amount_collected",t.disputeFeeCollected="dispute_fee_collected",t.sellerPayment="seller_payment",t.transfer="transfer",t.partnerPlatformProceedsCredit="partner_platform_proceeds_credit"}(v||(v={}));class L{constructor(t){this.id=t.id,this.account_id=t.account_id,this.payout_id=t.payout_id,this.financial_transaction_id=t.financial_transaction_id,this.amount=t.amount,this.fee=t.fee,this.net=t.net,this.currency=t.currency,this.source_id=t.source_id,this.description=t.description,this.txn_type=t.txn_type,this.created_at=t.created_at,this.available_on=t.available_on,this.updated_at=t.updated_at}formattedPaymentAmount(i){return t(i,this.currency)}}!function(t){t.connected="connected",t.disconnected="disconnected",t.unknown="unknown",t.pending_configuration="pending_configuration",t.archived="archived"}(_||(_={})),function(t){t.verifone="verifone"}(k||(k={}));class V{constructor(t){this.id=t.id||"",this.status=t.status,this.account_id=t.account_id||"",this.platform_account_id=t.platform_account_id||"",this.provider=t.provider||null,this.provider_id=t.provider_id||"",this.provider_serial_number=t.serial_number||"",this.created_at=t.created_at||"",this.updated_at=t.updated_at||"",this.verified_at=t.verified_at||"",this.nickname=t.nickname||"",this.model_name=t.model_name||null}}!function(t){t.boardingOnly="boarding_only",t.boardingShipping="boarding_shipping"}(g||(g={})),function(t){t.created="created",t.submitted="submitted",t.completed="completed",t.in_progress="in_progress",t.on_hold="on_hold",t.canceled="canceled"}(w||(w={}));class Y{constructor(t){this.id=t.id,this.business_id=t.business_id,this.company_name=t.company_name,this.sub_account_id=t.sub_account_id,this.provider=t.provider||k.verifone,this.order_items=[],this.order_type=t.order_type,this.order_status=t.order_status,this.terminals=t.terminals,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{business_id:this.business_id,sub_account_id:this.sub_account_id,order_type:this.order_type,order_items:this.order_items}}get totalQuantity(){return this.order_items.reduce(((t,i)=>t+i.quantity),0)}updateTerminal(t,i){if(0===i)return void(this.order_items=this.order_items.filter((i=>i.model_name!==t)));const s=this.order_items.find((i=>i.model_name===t));s?s.quantity=i:this.order_items.push({model_name:t,quantity:i})}}!function(t){t.v400="v400",t.p400="p400+",t.e285="e285"}(b||(b={}));class ${constructor(t){this.id=t.id,this.model_name=t.model_name,this.description=t.description,this.image_url=t.image_url,this.help_url=t.help_url}}!function(t){t.test="test",t.live="live"}(P||(P={})),function(t){t.created="created",t.submitted="submitted",t.information_needed="information_needed",t.rejected="rejected",t.enabled="enabled",t.disabled="disabled",t.archived="archived"}(A||(A={}));class Q{constructor(t){this.id=t.id,this.name=t.name,this.account_type=t.account_type,this.status=t.status,this.currency=t.currency,this.platform_account_id=t.platform_account_id,this.payout_account_id=t.payout_account_id,this.business_id=t.business_id,this.application_fee_rates=t.application_fee_rates,this.processing_ready=t.processing_ready,this.payout_ready=t.payout_ready,this.related_accounts=t.related_accounts,this.created_at=t.created_at,this.updated_at=t.updated_at}}!function(t){t.voidedCheck="voided_check",t.balanceSheet="balance_sheet",t.bankStatement="bank_statement",t.governmentId="government_id",t.profitAndLossStatement="profit_and_loss_statement",t.taxReturn="tax_return",t.other="other"}(C||(C={})),function(t){t.pending="pending",t.uploaded="uploaded",t.canceled="canceled",t.needed="needed"}(S||(S={}));class W{constructor(){this.voided_check=[],this.balance_sheet=[],this.bank_statement=[],this.government_id=[],this.profit_and_loss_statement=[],this.tax_return=[],this.other=[]}}class X{constructor(t,i){this.fileData=null,this.file=t.file,this.document_type=t.document_type,this.presigned_url=null,this.record_data={business_id:i,document_type:this.document_type,file_name:this.file.name,file_type:this.file.type}}async getFileData(){if(this.fileData)return this.fileData;const t=new Promise(((t,i)=>{const s=new FileReader;s.onload=i=>{this.fileData=i.target.result,t(this.fileData)},s.onerror=()=>{i(new Error("Error reading file"))},s.readAsArrayBuffer(this.file)}));return await t}setPresignedUrl(t){this.presigned_url=t}}!function(t){t.succeeded="succeeded",t.failed="failed"}(U||(U={})),function(t){t.customerRequest="customer_request",t.duplicate="duplicate",t.fraudulent="fraudulent"}(x||(x={}));class G{constructor(t){this.amount=t.amount,this.reason=t.reason,this.description=t.description,this.metadata=t.metadata}}!function(t){t.STATUS_SUCCESS="STATUS_SUCCESS",t.STATUS_FAILURE="STATUS_FAILURE"}(B||(B={})),function(t){t.PLAIN="plain",t.BUY="buy",t.SET_UP="set-up",t.DONATE="donate",t.CHECK_OUT="check-out",t.BOOK="book",t.SUBSCRIBE="subscribe"}(T||(T={})),function(t){t.BLACK="black",t.WHITE="white",t.WHITE_OUTLINE="white-outline"}(D||(D={})),function(t){t.SUPPORTS_3DS="supports3DS",t.SUPPORTS_EMV="supportsEMV",t.SUPPORTS_CREDIT="supportsCredit",t.SUPPORTS_DEBIT="supportsDebit"}(E||(E={}));class J{constructor(t){this.merchantIdentifier=t.merchantIdentifier,this.displayName=t.displayName,this.initiative=t.initiative,this.initiativeContext=t.initiativeContext,this.buttonType=t.buttonType||T.PLAIN,this.buttonStyle=t.buttonStyle||D.BLACK,this.buttonLocale=t.buttonLocale||"en-US"}get isValid(){return!!(this.merchantIdentifier&&this.displayName&&this.initiative&&this.initiativeContext)}}class K{constructor(t){this.countryCode=t.countryCode,this.currencyCode=t.currencyCode,this.merchantCapabilities=t.merchantCapabilities,this.supportedNetworks=t.supportedNetworks,this.total=t.total,this.lineItems=t.lineItems,this.shippingMethods=t.shippingMethods,this.applicationData=t.applicationData,this.supportedCountries=t.supportedCountries}get isValid(){var t,i,s,e;return!!(this.countryCode&&this.currencyCode&&(null===(t=this.merchantCapabilities)||void 0===t?void 0:t.length)&&(null===(i=this.supportedNetworks)||void 0===i?void 0:i.length)&&(null===(s=this.total)||void 0===s?void 0:s.label)&&(null===(e=this.total)||void 0===e?void 0:e.amount))}}class O{static isApplePaySupported(){var t;return"undefined"!=typeof window&&"ApplePaySession"in window&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.supportsVersion(3))}static canMakePayments(){var t;return this.isApplePaySupported()&&(null===(t=window.ApplePaySession)||void 0===t?void 0:t.canMakePayments())||!1}static async canMakePaymentsWithActiveCard(t){var i;if(!this.isApplePaySupported())return!1;try{return await(null===(i=window.ApplePaySession)||void 0===i?void 0:i.canMakePaymentsWithActiveCard(t))||!1}catch(t){return console.error("Error checking Apple Pay active card:",t),!1}}static formatAmount(t){return(t/100).toFixed(2)}static parseAmount(t){return Math.round(100*parseFloat(t))}static createLineItem(t,i,s="final"){return{label:t,amount:this.formatAmount(i),type:s}}static getDefaultSupportedNetworks(){return["amex","discover","masterCard","visa"]}static getDefaultMerchantCapabilities(){return[E.SUPPORTS_3DS,E.SUPPORTS_EMV,E.SUPPORTS_CREDIT,E.SUPPORTS_DEBIT]}}!function(t){t.PLAID_SDK_LOAD_FAILED="plaid-sdk-load-failed",t.PLAID_LINK_INIT_FAILED="plaid-link-init-failed",t.PLAID_LINK_TOKEN_FAILED="plaid-link-token-failed",t.PLAID_AUTHENTICATION_FAILED="plaid-authentication-failed",t.PLAID_BANK_NOT_SUPPORTED="plaid-bank-not-supported",t.PLAID_TOKEN_EXPIRED="plaid-token-expired",t.PLAID_NETWORK_ERROR="plaid-network-error",t.PLAID_USER_CANCELLED="plaid-user-cancelled",t.PLAID_TIMEOUT="plaid-timeout",t.PLAID_INVALID_CREDENTIALS="plaid-invalid-credentials",t.PLAID_ACCOUNT_LOCKED="plaid-account-locked",t.PLAID_MAINTENANCE="plaid-maintenance",t.PLAID_RATE_LIMITED="plaid-rate-limited"}(F||(F={}));const Z={[F.PLAID_SDK_LOAD_FAILED]:"Unable to load Plaid. Please refresh the page and try again.",[F.PLAID_LINK_INIT_FAILED]:"Unable to initialize bank connection. Please try again.",[F.PLAID_LINK_TOKEN_FAILED]:"Unable to connect to bank service. Please try again.",[F.PLAID_AUTHENTICATION_FAILED]:"Bank authentication failed. Please try again.",[F.PLAID_BANK_NOT_SUPPORTED]:"Your bank is not currently supported. Please try a different payment method.",[F.PLAID_TOKEN_EXPIRED]:"Your bank session has expired. Please reconnect your account.",[F.PLAID_NETWORK_ERROR]:"Network connection issue. Please check your internet connection and try again.",[F.PLAID_USER_CANCELLED]:"Bank connection was cancelled. Click to try again.",[F.PLAID_TIMEOUT]:"Bank connection timed out. Please try again.",[F.PLAID_INVALID_CREDENTIALS]:"Invalid bank credentials. Please check your username and password.",[F.PLAID_ACCOUNT_LOCKED]:"Your bank account is temporarily locked. Please contact your bank.",[F.PLAID_MAINTENANCE]:"Bank service is temporarily unavailable. Please try again later.",[F.PLAID_RATE_LIMITED]:"Too many connection attempts. Please wait a moment and try again."},tt={[F.PLAID_SDK_LOAD_FAILED]:e.ERROR,[F.PLAID_LINK_INIT_FAILED]:e.ERROR,[F.PLAID_LINK_TOKEN_FAILED]:e.ERROR,[F.PLAID_AUTHENTICATION_FAILED]:e.ERROR,[F.PLAID_BANK_NOT_SUPPORTED]:e.WARNING,[F.PLAID_TOKEN_EXPIRED]:e.WARNING,[F.PLAID_NETWORK_ERROR]:e.WARNING,[F.PLAID_USER_CANCELLED]:e.INFO,[F.PLAID_TIMEOUT]:e.WARNING,[F.PLAID_INVALID_CREDENTIALS]:e.ERROR,[F.PLAID_ACCOUNT_LOCKED]:e.ERROR,[F.PLAID_MAINTENANCE]:e.WARNING,[F.PLAID_RATE_LIMITED]:e.WARNING};export{J as A,e as C,C as E,o as I,y as P,x as R,Q as S,w as T,r as a,j as b,g as c,_ as d,s as e,I as f,l as g,R as h,H as i,L as j,Y as k,V as l,$ as m,G as n,O as o,K as p,B as q,D as r,T as s,E as t,n as u,tt as v,Z as w,F as x,W as y,X as z}
@@ -1 +0,0 @@
1
- import{A as t}from"./p-CYQvLgSs.js";import"./p-CUI41_5y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";const a=t();class n{async fetchPayouts(t,n,s){return a.get({authToken:n,endpoint:`account/${t}/payouts`,params:s})}async fetchPayout(t,n){return a.get({authToken:n,endpoint:`payouts/${t}`})}async fetchCSV(t,n){return a.get({authToken:n,endpoint:`reports/payouts/${t}`})}async fetchPayoutTransactions(t,n,s){return a.get({authToken:n,endpoint:"balance_transactions",params:s,headers:{"sub-account":t}})}}export{n as P}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-CV0Pyo1O.js";import{d as e,b as a}from"./p-BRnBHsdq.js";import{B as c,a as o}from"./p-pL4dNfsl.js";import{a3 as p,a4 as s}from"./p-DnrawQn3.js";const r="created_at,payment_amount,payment_description,payment_mode,status",d={created_at:()=>t("th",{part:p,scope:"col",title:"The date each checkout occurred"},"Processed On"),payment_amount:()=>t("th",{part:p,scope:"col",title:"The dollar amount of each checkout"},"Payment Amount"),payment_description:()=>t("th",{part:p,scope:"col",title:"The description of each checkout"},"Payment Description"),sub_account_name:()=>t("th",{part:p,scope:"col",title:"The sub account associated with the checkout"},"Sub Account"),payment_mode:()=>t("th",{part:p,scope:"col",title:"The payment mode of each checkout"},"Payment Mode"),status:()=>t("th",{part:p,scope:"col",title:"The current status of each checkout"},"Status")},n={created_at:(c,o)=>t("td",{part:s(o)},t("div",{class:"fw-bold"},a(c.created_at)),t("div",{class:"fw-bold"},e(c.created_at))),payment_amount:(e,a)=>t("td",{part:s(a)},e.formattedPaymentAmount(e.payment_amount)),payment_description:(e,a)=>t("td",{part:s(a)},e.payment_description),sub_account_name:(e,a)=>t("td",{part:s(a)},e.sub_account_name),payment_mode:(e,a)=>t("td",{part:s(a)},e.payment_mode),status:(e,a)=>t("td",{part:s(a)},t(o,Object.assign({},{created:{variant:c.PRIMARY,title:"The checkout has been created",text:"Created"},completed:{variant:c.SUCCESS,title:"The checkout has been completed",text:"Completed"},attempted:{variant:c.SECONDARY,title:"The checkout has been attempted",text:"Attempted"},expired:{variant:c.DANGER,title:"The checkout has expired",text:"Expired"}}[e.status])))};export{n as a,d as c,r as d}
@@ -1 +0,0 @@
1
- import{A as t}from"./p-CYQvLgSs.js";import"./p-CUI41_5y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";const n=t();class e{async fetchBusiness(t,e){return n.get({endpoint:`entities/business/${t}`,authToken:e})}async patchBusiness(t,e,s){return n.patch({endpoint:`entities/business/${e}`,body:s,authToken:t})}}class s{async fetchIdentity(t,e){return n.get({endpoint:`entities/identity/${t}`,authToken:e})}async patchIdentity(t,e,s){return n.patch({endpoint:`entities/identity/${e}`,body:s,authToken:t})}async postIdentity(t,e){return n.post({endpoint:"entities/identity",body:e,authToken:t})}}class i{async postBankAccount(t,e){return n.post({endpoint:"entities/bank_accounts",body:e,authToken:t})}}class o{async postDocumentRecord(t,e){return n.post({endpoint:"entities/document",body:e,authToken:t})}}export{e as B,o as D,s as I,i as a}
@@ -1 +0,0 @@
1
- import{A as t}from"./p-CYQvLgSs.js";import"./p-CUI41_5y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";const e=t();class o{async fetchCheckout(t,o){return e.get({endpoint:`checkouts/${o}`,authToken:t})}async fetchCheckouts(t,o,c){return e.get({endpoint:"checkouts",params:c,headers:{Account:t},authToken:o})}async complete(t,o,c){const s=`checkouts/${o}/complete`,n={payment_mode:c.payment_mode};return c.payment_token&&(n.payment_token=c.payment_token),e.post({endpoint:s,body:n,authToken:t})}}export{o as C}
@@ -1 +0,0 @@
1
- import{c as e,a as t}from"./p-CKiAlBsU.js";import{h as n,l as a,j as s,k as i,n as r,s as l,q as o,p as d,e as p,u as c,v as m,x as _}from"./p-HT_4DkD0.js";import{C as E}from"./p-BcNb9bVO.js";const b=r=>e(r?{line1:s.nullable(),line2:a.nullable(),city:n.nullable(),state:t().nullable(),postal_code:t().nullable()}:{line1:s.required("Enter street address"),line2:a.nullable(),city:n.required("Enter city"),state:t().required("Select state"),postal_code:i(E.USA).required("Enter postal code")}),f=r=>e(r?{line1:s.nullable(),line2:a.nullable(),city:n.nullable(),state:t().nullable(),postal_code:t().nullable()}:{line1:s.required("Enter street address"),line2:a.nullable(),city:n.required("Enter city"),state:t().required("Select province"),postal_code:i(E.CAN).required("Enter postal code")}),h={[E.USA]:b,[E.CAN]:f},u=(n,a)=>a?(n=>e({name:m.required(`Enter ${n} name`),title:c.nullable(),email:p.nullable(),phone:d.nullable(),dob_full:o(n).nullable(),ssn_last4:t().nullable(),identification_number:l.nullable(),ownership_percentage:r.nullable(),address:b(!0)}))(n):(n=>e({name:m.required(`Enter ${n} name`),title:c.required(`Enter ${n} title`),email:p.required(`Enter ${n} email`),phone:d.required("Enter phone number"),dob_full:o(n).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:l,ownership_percentage:r.nullable(),address:b(!1)}))(n),$=(n,a)=>a?(n=>e({name:m.required(`Enter ${n} name`),title:c.nullable(),email:p.nullable(),phone:d.nullable(),dob_full:o(n).nullable(),ssn_last4:t().nullable(),identification_number:_(E.CAN).nullable(),ownership_percentage:r.nullable(),address:f(!0)}))(n):(n=>e({name:m.required(`Enter ${n} name`),title:c.required(`Enter ${n} title`),email:p.required(`Enter ${n} email`),phone:d.required("Enter phone number"),dob_full:o(n).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:_(E.CAN),ownership_percentage:r.nullable(),address:f(!1)}))(n),y={[E.USA]:u,[E.CAN]:$};export{b as a,$ as b,f as c,y as d,h as e,u as i}
@@ -1 +0,0 @@
1
- import{h as l}from"./p-CV0Pyo1O.js";import{S as s}from"./p-DcBvJu0k.js";import"./p-CZfYo5-1.js";const i=()=>l("div",{class:"row gap-3"},l("div",{class:"col-12"},l(s,{width:"25%"})),l("div",{class:"col-12"},l(s,{width:"100%"})),l("div",{class:"col-12 d-flex gap-3"},l(s,{width:"50%"}),l(s,{width:"50%"})),l("div",{class:"col-12 d-flex gap-3"},l(s,{width:"65%"}),l(s,{width:"35%"}))),d=()=>l("div",{class:"row gap-5"},l("div",{class:"col-12"},l(s,{width:"40%",height:"40px"})),l(i,null),l(i,null),l(i,null));export{d as P}
@@ -1 +0,0 @@
1
- import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{b as o,C as r}from"./p-CUI41_5y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as s,a as i}from"./p-B5vVjDc_.js";const t=({id:t,authToken:e,service:p})=>async({onSuccess:a,onError:n,final:c})=>{var m;try{const c=await p.fetchPayment(t,e);if(c.error){n({error:i(c.error),code:s(null===(m=c.error)||void 0===m?void 0:m.code),severity:r.ERROR})}else a({payment:new o(c.data)})}catch(o){const t=s(null==o?void 0:o.code);n({error:i(o),code:t,severity:r.ERROR})}finally{c()}};export{t as m}
@@ -1 +0,0 @@
1
- import{A as n}from"./p-CYQvLgSs.js";import"./p-CUI41_5y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";const t=n();class a{async fetchPayments(n,a,s){return t.get({endpoint:`account/${n}/payments`,params:s,authToken:a})}async fetchPayment(n,a){return t.get({endpoint:`payments/${n}`,authToken:a})}async fetchPaymentTransactions(n,a,s){return t.get({endpoint:`payments/${n}/payment_balance_transactions`,params:s,authToken:a})}}export{a as P}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-CV0Pyo1O.js";import{s}from"./p-DnrawQn3.js";const e=({component:e="div",height:o,width:r,className:a,styles:i={}})=>{const n=Object.assign(Object.assign({},i),{width:r,height:o});return t(e,{class:`${a} skeleton`,style:n,part:s,"aria-hidden":"true"})};export{e as S}
@@ -1 +0,0 @@
1
- import{h as s}from"./p-CV0Pyo1O.js";import{b as t}from"./p-DnrawQn3.js";import{c as a}from"./p-D8GTwl9v.js";const r=a=>s("h2",{class:`header-2 ${null==a?void 0:a.class}`,part:t},a.text),o=a({}),{state:n,on:e}=o,i=a({}),{state:l}=i,p={},c=()=>{let s=!0;return Object.keys(n).forEach((t=>{null===n[t]?(l[t]=!0,s=!1):l[t]=!1})),{isValid:s}},m=(s,t)=>{const a=p.hasOwnProperty(s),r=p[s];if(!a)return p[s]=t,!1;const o=r!==t;return o&&(p[s]=t),o};export{r as H,l as a,e as b,m as h,n as i,c as v}
@@ -1 +0,0 @@
1
- import{a as e}from"./p-CKiAlBsU.js";import{S as a,C as t}from"./p-BcNb9bVO.js";import{a as s}from"./p-_-2E_vYf.js";import{b as r,a as n}from"./p-Bt4GjEWL.js";const i=e=>""===e?null:e,l=/^\d+$/,d=/P\.?\s?O\.?\s?Box|Postal\sBox/i,o=e().email("Enter valid email").transform(i),u=e().matches(/^\d{10}$/,"Enter valid phone number").transform(i),c=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(i),m=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(i),b=e().matches(/^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)$/,"Enter valid website url").transform(i),h=e().transform(i),v=e().min(2,"Industry must be at least 2 characters").max(50,"Industry must be less than 50 characters").transform(i),E=e().matches(l,"Enter valid tax id, SSN, or EIN").test("not-repeat","Enter valid tax id, SSN, or EIN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid tax id, SSN, or EIN",(e=>"123456789"!==e)).transform(i),N=a=>e().matches(s[a].postalRegex,"Enter valid postal code").transform(i),p=a=>a===t.CAN?e().matches(l,"Enter valid SIN").length(s[a].identityDigits,"Enter valid SIN").when("ssn_last4",{is:e=>!e||0===e.length,then:e=>e.required("Enter SIN"),otherwise:e=>e.nullable()}).test("not-repeat","Enter valid SIN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SIN",(e=>"123456789"!==e)).transform(i):x,S=a=>a===t.CAN?e().matches(l,"Enter valid Business Number (BN)").length(s[a].taxIdDigits,"Enter valid Business Number (BN)").test("not-repeat","Enter valid Business Number (BN)",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid Business Number (BN)",(e=>"123456789"!==e)).transform(i):E,A=e().test("not-future","Date of incorporation cannot be in the future",(e=>new Date(e)<=new Date)).transform(i),B=e().min(2,"Name must be at least 2 characters").max(100,"Name must be less than 100 characters").transform(i),w=e().min(2,"Title must be at least 2 characters").max(50,"Title must be less than 50 characters").transform(i),g=a=>e().test("min","Enter a valid date",(e=>new Date(e)>=new Date("1902-01-01"))).test("age",`${a} must be at least 18 years old`,(e=>{const a=new Date(e),t=new Date;return t.setFullYear(t.getFullYear()-18),a<=t})).transform(i),x=e().matches(/^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/,"Enter valid SSN").when("ssn_last4",{is:e=>!e||0===e.length,then:e=>e.required("Enter SSN"),otherwise:e=>e.nullable()}).test("not-repeat","Enter valid SSN",(e=>!/^(\d)\1+$/.test(e))).test("not-seq","Enter valid SSN",(e=>"123456789"!==e)).transform(i),$=e().matches(l,"Enter valid percentage").test("min","Percentage must be at least 0",(e=>!e||parseFloat(e)>=0)).test("max","Percentage must be at most 100",(e=>!e||parseFloat(e)<=100)).transform(i),y=e().min(5,"Address must be at least 5 characters").max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!d.test(e))).transform(i),f=e().max(100,"Address must be less than 100 characters").test("not-po-box","A PO Box is not a valid address entry",(e=>!d.test(e))).transform(i),I=e().min(2,"City must be at least 2 characters").max(50,"City must be less than 50 characters").transform(i),D=e().oneOf(a.map((e=>e.value)),"Enter a 2-letter state abbreviation, such as CA").transform(i),j=e().matches(/^((\d{5}-\d{4})|(\d{5})|([A-Z]\d[A-Z]\s\d[A-Z]\d))$/,"Enter valid postal code").transform(i),C=e().matches(l,"Enter valid revenue").transform(i),P=e().matches(l,"Enter valid payment volume").transform(i),_=e().oneOf(r.map((e=>e.value)),"Select when service is received").transform(i),q=e().transform(i),Z=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(i),z=e().min(2,"Name must be at least 2 characters").max(50,"Name must be less than 50 characters").transform(i),O=e().oneOf(n.map((e=>e.value)),"Select account type").transform(i),F=e().min(4,"Account number must be at least 4 digits").max(17,"Account number must be less than 17 digits").matches(l,"Enter valid account number").test("not-repeat","Enter valid account number",(e=>!/^(\d)\1+$/.test(e))).transform(i),T=e().length(9,"Routing number must be 9 digits").matches(l,"Enter valid routing number").test("not-repeat","Enter valid routing number",(e=>!/^(\d)\1+$/.test(e))).test("valid","Enter valid routing number",(e=>(e=>{if(!e)return!1;const a=Array.from(String(e),Number);return 9===a.length&&0==(3*(a[0]+a[3]+a[6])+7*(a[1]+a[4]+a[7])+(a[2]+a[5]+a[8]))%10})(e))).transform(i);export{F as A,O as B,z as C,Z as D,l as E,T as F,m as a,h as b,c,A as d,o as e,_ as f,P as g,I as h,v as i,y as j,N as k,f as l,S as m,$ as n,q as o,u as p,g as q,C as r,x as s,E as t,w as u,B as v,b as w,p as x,j as y,D as z}
@@ -1 +0,0 @@
1
- import{h as o}from"./p-CV0Pyo1O.js";import{A as r}from"./p-DnrawQn3.js";const s=s=>o("h3",{class:`header-3 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
@@ -1 +0,0 @@
1
- import{h as o}from"./p-CV0Pyo1O.js";import{h as r}from"./p-DnrawQn3.js";const s=s=>o("h1",{class:`header-1 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
@@ -1 +0,0 @@
1
- import{h as i,r as s,c as t}from"./p-CV0Pyo1O.js";import{a9 as e,a8 as r,a1 as o,t as l}from"./p-DnrawQn3.js";import{S as d}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{c as a}from"./p-DgH-jcIo.js";import{J as n}from"./p-zi3ljCdQ.js";import{m as h,C as c,k as v,c as u,e as p}from"./p-CUI41_5y.js";import{B as m}from"./p-CsdYMTrc.js";import{B as f}from"./p-BcNb9bVO.js";import{m as w}from"./p-qrNmDp6K.js";import{S as g}from"./p-DcBvJu0k.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{g as y,a as j}from"./p-B5vVjDc_.js";import{T as x}from"./p--e0ff06z.js";import{l as b}from"./p-BRnBHsdq.js";import"./p-beXEDfB9.js";import"./p-CYQvLgSs.js";import"./p-D8GTwl9v.js";const C=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(g,{width:"25%"})),i("div",{class:"col-12"},i(g,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(g,{width:"50%"}),i(g,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(g,{width:"65%"}),i(g,{width:"35%"}))),S=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(g,{width:"40%",height:"40px"})),i(C,null)),k=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(g,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),i("div",{class:"flex-grow-1"},i("div",{class:"d-flex row flex-row"},i("div",{class:"col-6 flex-column"},i(g,null),i(g,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(g,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(g,{width:"80px",height:"32px"}),i(g,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(g,null),i(g,null)))))),B=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.submitted=t(this,"submit-event",7),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new v({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?u.boardingShipping:u.boardingOnly}),a(),this.analytics=new n(this),this.loadData()}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",p.MISSING_PROPS,c.ERROR)}initializeGetBusiness(){w({id:this.businessId,authToken:this.authToken,service:new m})({onSuccess:({business:i})=>{this.business=new f(i)},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t)},final:()=>{this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,a;try{const n=await t.fetchTerminalModels(i,s);if(n.error)return r({error:j(n.error),code:y(null===(a=n.error)||void 0===a?void 0:a.code),severity:c.ERROR});e({terminals:(null===(l=null===(o=n.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new h(i))))||[],orderLimit:null===(d=n.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=y(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:c.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new x})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await s.orderTerminals(i,e,t);if(d.error)return o({error:j(d.error),code:y(null===(l=d.error)||void 0===l?void 0:l.code),severity:c.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=y(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:c.ERROR})}})({authToken:this.authToken,service:new x});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(S,null),this.loading.terminals&&i("div",{class:"mt-5"},i(k,null),i(k,null),i(k,null)))}renderBusinessDetails(){var s,t,o,l,d,a,n,h;if(!this.loading.business&&this.business)return i("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},i("div",{class:"col-6"},i("h5",{part:e},"Representative:"),i("div",null,i("div",null,null===(t=null===(s=this.business)||void 0===s?void 0:s.representative)||void 0===t?void 0:t.name),i("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),i("div",null,null===(a=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===a?void 0:a.email),i("div",null,b(null===(h=null===(n=this.business)||void 0===n?void 0:n.representative)||void 0===h?void 0:h.phone)))),i("div",{class:"col-6"},i("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),i("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",i("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return i("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((s=>i("terminal-quantity-selector",{modelName:s.model_name,description:s.description,imageUrl:s.image_url,helpUrl:s.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return i("div",{class:"mt-3"},i("div",{class:"text-end"},"Order limit: ",this.orderLimit),i("div",{class:"d-flex justify-content-end mt-3"},i("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return i(d,{key:"3f0f23fdf6a5f5f7e8ef527ea28e6fcfcdc70a3a"},i("div",{key:"d69fe7a14eaaa468c45b6fa6967298ba1a387e6b",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{B as justifi_order_terminals}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as a}from"./p-CV0Pyo1O.js";import{J as i}from"./p-zi3ljCdQ.js";import{c as s}from"./p-DgH-jcIo.js";import{c as d}from"./p-BArmtmkq.js";import{c}from"./p-DnrawQn3.js";import{S as o}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{P as f}from"./p-DkoufM1t.js";import"./p-beXEDfB9.js";import"./p-CYQvLgSs.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-BRnBHsdq.js";import"./p-HXpYMWUU.js";import"./p-CUI41_5y.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const h=class{constructor(a){e(this,a),this.errorEvent=t(this,"error-event",7),this.loadedEvent=t(this,"loaded",7),this.submitEvent=t(this,"submit-event",7),this.availablePaymentMethods=[],this.errorMessage="",this.insuranceToggled=!1,this.disableBankAccount=!1,this.disableBnpl=!1,this.disableCreditCard=!1,this.disablePaymentMethodGroup=!1,this.hideBankAccountBillingForm=!1,this.hideCardBillingForm=!1}propChanged(){this.updateStore()}connectedCallback(){this.authToken&&this.checkoutId&&this.updateStore()}componentWillLoad(){s(),this.analytics=new i(this)}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}checkoutComplete(e){d.isSubmitting=!1}checkoutError(e){d.isSubmitting=!1}checkoutChanged(e){this.availablePaymentMethods=this.disableBnpl?e.detail.availablePaymentMethodTypes.filter((e=>e!==f.SEZZLE)):e.detail.availablePaymentMethodTypes}async fillBillingForm(e){d.billingFormFields=e}async validate(){var e;return{isValid:await(null===(e=this.modularCheckoutRef)||void 0===e?void 0:e.validate())}}updateStore(){d.checkoutId=this.checkoutId,d.authToken=this.authToken,d.disableCreditCard=this.disableCreditCard,d.disableBankAccount=this.disableBankAccount,d.disablePaymentMethodGroup=this.disablePaymentMethodGroup}async submit(e){var t;null===(t=this.modularCheckoutRef)||void 0===t||t.submitCheckout(d.billingFormFields)}get showPaymentTypeHeader(){return!this.disableCreditCard&&!this.disableBankAccount}render(){var e,t;return a(o,{key:"ffd2abaacc7edae588a9abe3a4ff96807b34fcff"},a("justifi-modular-checkout",{key:"9196c278e24353aeb1ac02c85253d629f683522b",ref:e=>{this.modularCheckoutRef=e},authToken:this.authToken,checkoutId:this.checkoutId,preCompleteHook:this.preCompleteHook},a("div",{key:"895298286bc0aa6acbda896a4f148dd4f8d7e7d2",class:"row gy-3 jfi-checkout-core"},a("div",{key:"dd186ed2f0fd479cd60024423b6d55625b962e55",class:"col-12",part:c},a("justifi-header",{key:"920d4eca26846aa1cbc16693fa45a9d8054d95a7",text:"Summary",level:"h2",class:"fs-5 fw-bold pb-3"}),a("section",{key:"560f8c3757a7cf53fd0aa898fd243b16a2f8e8d5"},a("justifi-checkout-summary",{key:"31faa6ca984aa22985927a1f80273c86a67c7025"}))),a("div",{key:"3128ae40a739573da32598213a289d8751503fb0",class:"col-12 mt-4"},a("slot",{key:"4a310881bbc4017734082d5c4f6b41d3d5f2a424",name:"insurance"})),a("div",{key:"8047c4da62e2fd67bd0b3f8654c6a19c0cacc255",class:"col-12 mt-4"},a("justifi-header",{key:"631ff14201f6246906e3e1572515de21a7977773",text:"Payment",level:"h2",class:"fs-5 fw-bold pb-3"}),this.showPaymentTypeHeader&&a("justifi-header",{key:"7fdc560ef42a5c2e8571f332e3c4ce8ff460d235",text:"Select payment type",level:"h3",class:"fs-6 fw-bold lh-lg"}),a("div",{key:"81dcb52c051044adb4dbd92ac73ee3096edc592b",class:"d-flex flex-column"},a("section",{key:"4359903b195009a2e8fb997a1f77880cba40dea4"},a("div",{key:"21728867e6288c3fb7d5e5a6ee3d15974568b866"},this.availablePaymentMethods.includes(f.APPLE_PAY)&&a("div",{key:"bdaa6b6c6d09cba294b2e46b85270241c86d2251",class:"mb-3"},a("justifi-apple-pay",{key:"150d707bff7b79a1d19141f21a9c47e00e54418a"})),this.availablePaymentMethods.includes(f.GOOGLE_PAY)&&a("div",{key:"ce2be06b20a1e7d0159fde68a1c5c349c2d11998",class:"mb-3"},a("justifi-google-pay",{key:"0fc867ce77467eb1f1fd198a62e88bd2795f4914",ref:e=>this.googlePayRef=e})),a("justifi-saved-payment-methods",{key:"0bb1999c093b3837bfdb879134dc54f66c90e164"}),this.availablePaymentMethods.includes(f.SEZZLE)&&a("justifi-radio-list-item",{key:"1599be9bcea7569d822a204c805f08f18a4e00a4",name:"paymentMethodType",value:f.SEZZLE,checked:(null===(e=null==d?void 0:d.selectedPaymentMethod)||void 0===e?void 0:e.type)===f.SEZZLE,label:a("justifi-sezzle-payment-method",{ref:e=>this.sezzlePaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.sezzlePaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),this.availablePaymentMethods.includes(f.PLAID)&&!this.disableBnpl&&a("justifi-radio-list-item",{key:"c1de230257d290efa05f7a7166c2f069451c71a3",name:"paymentMethodType",value:f.PLAID,checked:(null===(t=null==d?void 0:d.selectedPaymentMethod)||void 0===t?void 0:t.type)===f.PLAID,label:a("justifi-plaid-payment-method",{ref:e=>this.plaidPaymentMethodRef=e}),"onRadio-click":()=>{var e;null===(e=this.plaidPaymentMethodRef)||void 0===e||e.handleSelectionClick()}}),a("justifi-tokenize-payment-method",{key:"44bca4ee57857afd4eee213cef98db2d4bd42490",ref:e=>this.tokenizePaymentMethodRef=e,authToken:this.authToken,accountId:d.accountId,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,hideSubmitButton:!0,paymentMethodGroupId:d.paymentMethodGroupId}))))),a("div",{key:"e5b6b4ac6b0fcec20380082f1b4cc5ba73bb88aa",class:"mt-4"},a("justifi-button",{key:"188a8f46fd37b5f4f2d9b3ba7ff179d44d4a6656",text:"Pay",type:"submit",variant:"primary",clickHandler:e=>this.submit(e),disabled:d.isSubmitting||d.isWalletProcessing,isLoading:d.isSubmitting||d.isWalletProcessing,customStyle:{width:"100%",textAlign:"center"}})))))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"],disableCreditCard:["propChanged"],disableBankAccount:["propChanged"],disablePaymentMethodGroup:["propChanged"]}}};export{h as justifi_checkout}
@@ -1 +0,0 @@
1
- import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-CX36GHQP.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{i,C as d,e as c}from"./p-CUI41_5y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as o,a as r}from"./p-B5vVjDc_.js";import{h,b as f,d as l}from"./p-BRnBHsdq.js";import{a as b,b as p,D as n,c as v,C as u,E as m}from"./p-x9fFFf7F.js";import{J as y}from"./p-zi3ljCdQ.js";import{m as k,M as j}from"./p-Cej-1bD6.js";import{c as C}from"./p-DgH-jcIo.js";import{B as g}from"./p-2LVpxCS_.js";import{S as w}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as x}from"./p-DcBvJu0k.js";import{a as D,B as S}from"./p-pL4dNfsl.js";import"./p-CYQvLgSs.js";import"./p-D8GTwl9v.js";import"./p-DnrawQn3.js";import"./p-beXEDfB9.js";const B=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(x,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(x,{width:"70%"})),e("div",{class:"col-12"},e(x,{width:"40%"})),e("div",{class:"col-12"},e(x,{width:"40%"})),e("div",{class:"col-12"},e(x,{width:"100%"})),e("div",{class:"col-12"},e(x,{width:"80%"}))),T=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event",7),this.recordClickEvent=a(this,"record-click-event",7),this.enableRecordClick=!1,this.loading=!0,this.errorMessage=null,this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a})}})},this.handleRecordClick=e=>{this.recordClickEvent.emit({id:e,type:"account"})}}componentWillLoad(){C(),this.analytics=new y(this),this.initializeServices(),this.getPayout&&this.fetchData()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeServices()}getPayoutWatcher(){this.fetchData()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:e,authToken:t,service:a})=>async({onSuccess:s,onError:c})=>{var h;try{const f=await a.fetchPayout(e,t);f.error?c({error:r(f.error),code:o(null===(h=f.error)||void 0===h?void 0:h.code),severity:d.ERROR}):s(new i(f.data))}catch(e){c({error:r(e),code:o(null==e?void 0:e.code),severity:d.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new s}),this.getPayoutCSV=k({authToken:this.authToken,service:new s})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:c.MISSING_PROPS,severity:d.ERROR}))}fetchData(){this.loading=!0,this.getPayout({onSuccess:e=>{this.errorMessage=null,this.payout=e,this.loading=!1},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:t,severity:a}),this.loading=!1}})}formatMethod(e){return"ach"===e?"ACH":h(e)}render(){var t;return e(w,{key:"83a5916c440ac2cc4efe216dd175c8816e23c815"},this.loading&&e(B,{key:"d11ad391a3eaacc5dd6a9a0303d80f496955d369"}),!this.loading&&this.errorMessage&&m(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"a3be08ef5ad0882ec4a611aa597b0b69914cb560",errorMessage:this.errorMessage},e(b,{key:"4cea018e82c69b391a5dfc326d0ebb2aac43bcee",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},j(null===(t=this.payout)||void 0===t?void 0:t.status),e(D,"expedited"===this.payout.settlement_priority?{variant:S.WARNING,title:"Expedited",text:"Expedited"}:{variant:S.SECONDARY,title:"Standard",text:"Standard"})),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(p,{key:"4f44184dcdf1313048d9a2ee5c9be928c1a2b5ef",classes:"border-1 border-end",title:"Updated At",value:`${f(this.payout.updated_at)} ${l(this.payout.updated_at)}`}),e(p,{key:"d6042bde890fcd4b8ff63856d53debf289ab6d2d",classes:"border-1 border-end",title:"Created At",value:`${f(this.payout.created_at)} ${l(this.payout.created_at)}`}),e(p,{key:"2866ed7c297a0815bad29bfca699893ead3af6ca",title:"ID",value:this.payout.id}),e("div",{key:"1a7a105da3b0297f90c9a33fe76aa650c9c5aaa0",class:"m-4"},e(g,{key:"31d8cb414516d5b4244179e6e905cb0d6f4499fa",variant:"outline-secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"1c1c4896b3f2a0c463880c082fdb43fdd6996de3",slot:"detail-sections"},e(n,{key:"481c8f87d29ba4583a40370415fd6f144a601462",sectionTitle:"Details"}),e("div",{key:"2f0f38440296dc01dee0fefab2b7f6a1bd04e4bf",class:"d-flex flex-column gap-2 w-100"},e(v,{key:"d8fe26cee63860bc4e02ffad0e64834ea888d8e3",title:"Date paid",value:f(this.payout.deposits_at)}),e(v,{key:"d4a94c5ad5a78c41d314377316ce71db24b79db5",title:"Statement Description",value:this.payout.description}),e(v,{key:"fea138338da1c74d26dacfeaa15642962346658c",title:"Payout Method",value:this.formatMethod(this.payout.delivery_method)}),e(v,{key:"f77701ef18590ed73431614f421b9d76a9b83da6",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(v,{key:"af2401b0ad8b35f55283d74eae20fdf7ceea0b82",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(n,{key:"96801f26f15e665e856262f65c0c6cea6f92bd9a",sectionTitle:"Account"}),e("div",{key:"54578f116a6b23c5c1dce11d450eb18be304ab65",class:"d-flex flex-column gap-2 w-100"},e(v,{key:"fa8ab204001e4be0cf2aa71fa2f955532f1ac81c",title:"ID",value:this.payout.account_id,onClick:this.enableRecordClick?()=>this.handleRecordClick(this.payout.account_id):void 0}),e(v,{key:"a0e1afcd7e7d86afb500cf876b7b61e74183f4c9",title:"Account Type",value:this.payout.bank_account.account_type}),e(v,{key:"6b78025d11ac562f6950f07d3dc8e5c4041a236f",title:"Institution",value:this.payout.bank_account.account_type}),e(v,{key:"93f4f6d947d1b621de0b1d2a24dbcf83e9c909ef",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(v,{key:"cbe9a97153516dd2cbf6af4337179652d0f834ac",title:"Account Number",value:`**** ${this.payout.bank_account.account_number_last4}`})),this.payout.metadata&&[e(n,{key:"706f2d164a736fb80a8c91018f61e7667eb12be6",sectionTitle:"Metadata"}),e("div",{key:"5be03b700c79d747899db7d9bee8a060c5de7894",class:"d-table gap-2 w-100"},e(u,{key:"8dc3aa6522c59f7a5739eda61354bb1ac58ee3ac",metadata:this.payout.metadata}))])))}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"],getPayout:["getPayoutWatcher"]}}};export{T as justifi_payout_details}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as o}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{f as i,C as r,e}from"./p-CUI41_5y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as c,a}from"./p-B5vVjDc_.js";import{c as n}from"./p-DgH-jcIo.js";import{J as p}from"./p-zi3ljCdQ.js";import{C as h}from"./p-D4OlsyTo.js";import{m as u,S as m}from"./p-qcQTYcr3.js";import{S as d}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{d as j}from"./p-Cf6HoQKl.js";import"./p-D8GTwl9v.js";import"./p-BRnBHsdq.js";import"./p-beXEDfB9.js";import"./p-CYQvLgSs.js";import"./p-pL4dNfsl.js";import"./p-DnrawQn3.js";const l=class{constructor(o){t(this,o),this.errorEvent=s(this,"error-event",7),this.errorMessage=null,this.columns=j,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){n(),this.analytics=new p(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){const t=this.subAccountId||this.accountId;t&&this.authToken?this.getCheckouts=(({accountId:t,authToken:s,service:o})=>async({params:e,onSuccess:n,onError:p})=>{var h,u;try{const m=await o.fetchCheckouts(t,s,e);if(m.error)return p({error:a(m.error),code:c(null===(u=m.error)||void 0===u?void 0:u.code),severity:r.ERROR});{const t=Object.assign({},m.page_info);n({checkouts:(null===(h=m.data)||void 0===h?void 0:h.map((t=>new i(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return p({error:t.message||t,code:s,severity:r.ERROR})}})({accountId:t,authToken:this.authToken,service:new h}):(this.errorMessage="Account ID/Sub Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=u({primaryAccountId:this.accountId,authToken:this.authToken,service:new m}))}render(){return o(d,{key:"27491f40eb96742cee1fe81023a9e423ab5b22a5"},o("checkouts-list-core",{key:"2b2526aa7dee3cd216bc481144d3239a5389872c",getCheckouts:this.getCheckouts,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],subAccountId:["propChanged"]}}};export{l as justifi_checkouts_list}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-C_ifLmT1.js";import{c as d,a as s}from"./p-BRnBHsdq.js";import{f as i,p as r,c as l}from"./p-Dw63wyhO.js";import{f as b,a as c}from"./p-DnrawQn3.js";import{S as f}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-DVJaoI_m.js";import{d as o}from"./p-CUI41_5y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-BFTU3MAI.js";import"./p-HXpYMWUU.js";import"./p-D8GTwl9v.js";const n=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{i[e]=a},this.handleDateInput=(e,a)=>{const t=d(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({terminal_id:this.terminalId,status:this.terminalStatus,terminal_order_id:this.terminalOrderId,provider_id:this.providerId,serial_number:this.serialNumber,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(r[e]=a)}))}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:o.connected},{label:"Disconnected",value:o.disconnected},{label:"Unknown",value:o.unknown},{label:"Pending Configuration",value:o.pending_configuration},{label:"Archived",value:o.archived}]}render(){const e=Object.assign({},i);return a(f,{key:"77a3937540cd75a7cc51a90b1cd7c7c52ae870b2"},a("table-filters-menu",{key:"4a725bfe0b79d0046eea2f7b3e3fe295b5384b94",params:e,clearParams:l,part:b},a("div",{key:"0cb6fcedf45371c68b8b37e8b832ca3e9b48789e",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"602fc95acdd62112bc53f858073e936f9bf5e48d",class:"p-2"},a("form-control-text",{key:"c4e8dc476d2d8d80f2367ab6f8a5e5db17a72f15",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||i.terminal_id,disabled:!!this.terminalId,part:c})),a("div",{key:"e83b3b3ef5f1509286cabaee9faeb96cd7d9e15a",class:"p-2"},a("form-control-text",{key:"2f6eb9224740f327ce5019d93d879c231df8b0ee",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||i.terminal_order_id,disabled:!!this.terminalOrderId,part:c})),a("div",{key:"942179e72ce3b8fea5c2cd2dd28aeecd586bdb6c",class:"p-2"},a("form-control-text",{key:"adb7eaab71834c2c619a09f9053dd8374a8bdfcc",name:"provider_id",label:"Device ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.providerId||i.provider_id,disabled:!!this.providerId,part:c})),a("div",{key:"c15d630d0c3500d26720db63cbf90098b837ee24",class:"p-2"},a("form-control-text",{key:"93f4e6c1e5c8f7e853111e74e25946fd683c5a17",name:"serial_number",label:"Serial Number",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.serialNumber||i.serial_number,disabled:!!this.serialNumber,part:c})),a("div",{key:"6a269a0c2fb90fb4e00b05d4aeee3fff4ab4e967",class:"p-2"},a("form-control-select",{key:"f6d9e45354d5c3d8894fe442d0bef490bafb20de",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||i.status||"",disabled:!!this.terminalStatus,part:c})),a("div",{key:"ea70b109bd231bd085bb2cb8388d8010e0c5aa79",class:"p-2"},a("form-control-date",{key:"256cddfb0e68590bc8d8403aa8a033ad40d613fe",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:s(this.createdAfter||i.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:c})),a("div",{key:"1be9bf8d68c691f09d40db9c45d78ed923fb3d86",class:"p-2"},a("form-control-date",{key:"79d48b277064373e3faf999ae8771a44b35de1cb",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:s(this.createdBefore||i.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:c})))))}};export{n as justifi_terminals_list_filters}
@@ -1 +0,0 @@
1
- import{r as t,h as s}from"./p-CV0Pyo1O.js";import{B as i}from"./p-2LVpxCS_.js";import"./p-DnrawQn3.js";const r=class{constructor(s){t(this,s),this.variant="primary",this.type="button"}render(){return s(i,{key:"5257c5d43fe6f14dddf688ad979e91c8594014a9",variant:this.variant,isLoading:this.isLoading,clickHandler:this.clickHandler,class:this.class,type:this.type,disabled:this.disabled,style:this.customStyle,hidden:this.hidden},this.text)}};export{r as internal_button}
@@ -1 +0,0 @@
1
- import{h as s,r as t,c as i}from"./p-CV0Pyo1O.js";import{J as e}from"./p-zi3ljCdQ.js";import{C as r,e as o}from"./p-CUI41_5y.js";import{m as n,b as h}from"./p-CR_-qIuN.js";import{B as a}from"./p-CsdYMTrc.js";import{A as p}from"./p-CYQvLgSs.js";import"./p-CLHwhyvu.js";import{C as m,B as d,c as l}from"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{c}from"./p-DgH-jcIo.js";import{i as u}from"./p-BRnBHsdq.js";import{t as v}from"./p-DnrawQn3.js";import{S as f}from"./p-BqNNwq6C.js";import{H as g}from"./p-XrKLre8M.js";import"./p-CZfYo5-1.js";import{B as y}from"./p-XYgDHrVL.js";import{P as j}from"./p-DPmnGTmg.js";import"./p-beXEDfB9.js";import"./p-B5vVjDc_.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";import"./p-DcBvJu0k.js";const b=p();class C{async postProvisioning(s,t,i){return b.post({endpoint:"entities/provisioning",body:{business_id:t,product_category:i},authToken:s})}}const w=()=>s("div",{class:"row gap-3 p-5"},s("div",{class:"col-12"},s(g,{text:"Business Already Provisioned"})),s("div",{class:"col-12",part:v},s("p",null,"We have already received the onboarding information for this business."))),B=()=>s("div",{class:"row gap-3 p5"},s("div",{class:"col-12"},s(g,{text:"You're all set for now"})),s("div",{class:"col-12",part:v},s("p",null,"We're reviewing your information and working on your approval. We'll be in touch to let you know once you've been approved (or if we find anything that needs fixing). Have a good one!"))),k=class{constructor(s){t(this,s),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),this.submitEvent=i(this,"submit-event",7),this.loading=!1,this.businessLoading=!0,this.businessProvisioned=!1,this.formSubmitted=!1,this.currentStep=0,this.country=m.USA,this.allowOptionalFields=!1,this.formTitle="Business Information",this.refs=[],this.setBusinessProvisioned=()=>new Promise((s=>{this.getBusiness({onSuccess:t=>{const i=new d(t.data);this.businessProvisioned=l(i),this.country=i.country_of_establishment,this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:o.PROVISIONING_REQUESTED,severity:r.INFO}),this.businessLoading=!1,s()},onError:({error:t,code:i,severity:e})=>{this.errorEvent.emit({message:t,errorCode:i,severity:e}),this.businessLoading=!1,s()}})})),this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.formSubmitted=!0,this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:i})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:i})}})},this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>{this.currentStep>0&&(this.currentStep-=1)},this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:y.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}propChanged(){this.initializeApi()}handleFormCompleted(){this.postProvisioningData()}handleFormLoading(s){this.loading=s.detail}async componentWillLoad(){c(),this.analytics=new e(this),this.initializeApi(),this.getBusiness?await this.setBusinessProvisioned():this.businessLoading=!1,this.refs=new Array(7)}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeApi(){this.authToken&&this.businessId?u(this.authToken)?this.errorEvent.emit({message:"auth-token is expired",errorCode:o.NOT_AUTHENTICATED,severity:r.ERROR}):(this.getBusiness=n({authToken:this.authToken,businessId:this.businessId,service:new a}),this.postProvisioning=h({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new C})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:o.MISSING_PROPS,severity:r.ERROR})}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`Step ${this.currentStep+1} of ${this.totalSteps+1}`}render(){return s(f,null,this.businessLoading?s(j,null):this.businessProvisioned?s(w,null):this.formSubmitted?s(B,null):s("div",{class:"row gap-3"},s(g,{text:this.formTitle}),s("payment-provisioning-form-steps",{businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,country:this.country,handleFormLoading:this.handleFormLoading}),s("div",{class:"d-flex justify-content-between align-items-center"},s("div",{class:"d-flex align-items-center",part:v},this.stepCounter),s("payment-provisioning-form-buttons",{currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{k as justifi_payment_provisioning}
@@ -1 +0,0 @@
1
- import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-Dbg501Lu.js";import{m as i}from"./p-DWevPe7C.js";import{C as d,e as c,g as b}from"./p-CUI41_5y.js";import{J as f}from"./p-zi3ljCdQ.js";import{c as l}from"./p-DgH-jcIo.js";import"./p-DVJaoI_m.js";import{b as r,d as o,s as h}from"./p-BRnBHsdq.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{a as p}from"./p-BH0Xfn-F.js";import{P as n,M as m}from"./p-D1D2eC05.js";import{a as y,b as u,D as v,c as k,C as j,E as g}from"./p-x9fFFf7F.js";import{S as D}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as C}from"./p-DcBvJu0k.js";import{a as w,B as P}from"./p-pL4dNfsl.js";import"./p-CYQvLgSs.js";import"./p-HXpYMWUU.js";import"./p-B5vVjDc_.js";import"./p-beXEDfB9.js";import"./p-D8GTwl9v.js";import"./p-DnrawQn3.js";const x=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(C,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(C,{width:"70%"})),e("div",{class:"col-12"},e(C,{width:"40%"})),e("div",{class:"col-12"},e(C,{width:"40%"})),e("div",{class:"col-12"},e(C,{width:"100%"})),e("div",{class:"col-12"},e(C,{width:"80%"}))),B=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event",7),this.recordClickEvent=a(this,"record-click-event",7),this.loading=!0}componentWillLoad(){l(),this.analytics=new f(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?(this.getPaymentDetails=i({id:this.paymentId,authToken:this.authToken,service:new s}),this.fetchData()):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:c.MISSING_PROPS,severity:d.ERROR}))}updateOnPropChange(){this.getPaymentDetails&&this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.errorMessage=null},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:t,message:e,severity:a})},final:()=>{this.loading=!1}})}get PaymentStatus(){return this.payment.status===b.disputed&&this.payment.disputes.some((e=>e.status===p.lost))?n.DISPUTE_LOST:this.payment.status}render(){return e(D,{key:"6d899226b71c2f8c80bf42ba0bd3de9d069582e8"},this.loading&&e(x,{key:"8e17e3f4c880ace7b87270e768610e9ece6e761a"}),!this.loading&&this.errorMessage&&g(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"2f5ea94a1fec18581a06f171c34850fc1423ec1f",errorMessage:this.errorMessage},e(y,{key:"5f011ef4b84acc2c16974293079c2d7b0134f8c6",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},m(this.PaymentStatus),this.payment.expedited?e(w,{variant:P.WARNING,title:"Expedited",text:"Expedited"}):null),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(u,{key:"5c075c53a5c589b7bc65ab60bf2ef7d8a67a7afb",classes:"border-1 border-end",title:"Updated At",value:`${r(this.payment.updated_at)} ${o(this.payment.updated_at)}`}),e(u,{key:"01786dce8a3c582fbd1f471174ecd13f95604e24",classes:"border-1 border-end",title:"Created At",value:`${r(this.payment.created_at)} ${o(this.payment.created_at)}`}),e(u,{key:"b04c5c8dfc64aba71d9cc0cd84c25bd32bdc887f",title:"ID",value:this.payment.id})),e("div",{key:"52bb00c09abe0745a03f264b3667584c10f58eee",slot:"detail-sections"},e(v,{key:"0672c1ed0c4e7f109531e120f61256927eba48eb",sectionTitle:"Details"}),e("div",{key:"d784569e100926eefb120e1a4b2d9a4d6da4238a",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"58192f1824f4b02a206b6c442e63b86fc90ea742",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(k,{key:"0b885dc6f6f7a4890666ecdb2a1cc801bbf1df31",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"e517d5dbd76cf451e89f803f26b0375a6fd0420b",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(k,{key:"ec3cf850c0217230794e6487861dbab0da5ad463",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(k,{key:"8f0d1f4b858ff459b9d08c168ff204e87a0c715e",title:"Status",value:m(this.PaymentStatus)}),e(k,{key:"819e1c1dbf090c664430b8e00ede6a88b9ecf5c2",title:"Payment ID",value:this.payment.id}),e(k,{key:"a86688bc8015db6b1034e6dd2a9819e1dbe5bb30",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"7dbb9825135d66711e65fb1b1bb2be228d65bb57",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(k,{key:"0455c1b7e853ba4e16197cdca3e2f0b16455362a",title:"Description",value:this.payment.description}),e(k,{key:"b052be4a1a349eb6a439e5c4be4424f966c55e60",title:"Expedited",value:this.payment.expedited?"Yes":"No"})),this.payment.payment_method.card&&[e(v,{key:"dca0ae73fa7f879d6cfb3f3b20331cf48d6081e4",sectionTitle:"Payment Method"}),e("div",{key:"fd3dd48f6ad1f3565459fb3ac10115f0b32051f9",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"8c00d775e7c4ef57689574974ee47b7c87f98b13",title:"ID",value:this.payment.payment_method.card.id}),e(k,{key:"2d3bc94126c2a02cb32fca8d952a238fdc0960c6",title:"Payment Type",value:"Card"}),e(k,{key:"16938c62ba1eafbf79af00c90c66c7250a81fbbb",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(k,{key:"04d9f9a2a7e3ace45f4b0001cf53b069f470529a",title:"Brand",value:h(this.payment.payment_method.card.brand)}),e(k,{key:"559be48e5ac2083369e7984d53e85ee5fbbab008",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(v,{key:"25277f2e5526747de9f45416050c6b72873e382b",sectionTitle:"Payment Method"}),e("div",{key:"e0b69c8397665a33c1f0d14bd9438b19e70b8636",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"ff0365efd2c8ed7a2aa7d3552504a6d9097c28b3",title:"ID",value:this.payment.payment_method.bank_account.id}),e(k,{key:"269d136045549cd12e4519e7f4abf3b6d221da85",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(k,{key:"31b5aaf03f5bf15267ac16b4b4a2d26f0a01e988",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(k,{key:"15f9c03d3514ebb78d25955497a728c8a2c53f7e",title:"Account Owner",value:this.payment.payment_method.payersName}))],this.payment.metadata&&[e(v,{key:"dac3bf342764c2e10ac6b64eabc5ef0366446a31",sectionTitle:"Metadata"}),e("div",{key:"2fe93fb287b469a5b1f3230b5f657216815d1164",class:"d-table gap-2 w-100"},e(j,{key:"f77b6a4ebeb88b82fe8342789bd16b7b22f24db9",metadata:this.payment.metadata}))])))}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"],getPaymentDetails:["updateOnPropChange"]}}};export{B as justifi_payment_details}
@@ -1 +0,0 @@
1
- var e={name:"@justifi/webcomponents",version:"6.12.3"};export{e as p}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-CV0Pyo1O.js";import{l as t}from"./p-C_ifLmT1.js";import{f as s,p as r,c as l}from"./p-BPTtWj7E.js";import{f as i,a as d}from"./p-DnrawQn3.js";import{S as c}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-DVJaoI_m.js";import{c as o,a as p}from"./p-BRnBHsdq.js";import{T as b,c as n}from"./p-CUI41_5y.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import"./p-BFTU3MAI.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";const f=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=o(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore,company_name:this.companyName}).forEach((([e,a])=>{a&&(r[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:b.created},{label:"Completed",value:b.completed},{label:"Submitted",value:b.submitted},{label:"In Progress",value:b.in_progress},{label:"On Hold",value:b.on_hold},{label:"Canceled",value:b.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:n.boardingOnly},{label:"Boarding Shipping",value:n.boardingShipping}]}render(){const e=Object.assign({},s);return a(c,{key:"cc09bb58c13ab0b26d92eb164cf6bc43a3c96c63"},a("table-filters-menu",{key:"08369c471d891184e36dd6c5aae8842e0df5c01a",params:e,clearParams:l,part:i},a("div",{key:"addd8a1cf74ae9e80cc8e4374a36400204c81400",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"b74cf4d1d13a0a6250000c8f7f0845f4c907e488",class:"p-2"},a("form-control-select",{key:"b1b060b64f67695bb395488fa23dcbf6373b419b",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||s.order_status||"",disabled:!!this.orderStatus,part:d})),a("div",{key:"a3c06691181d01d6a664016b4add0784b23ab06c",class:"p-2"},a("form-control-select",{key:"376039e2f10fbcc9ed008611d4976cf6412c16a4",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||s.order_type||"",disabled:!!this.orderType,part:d})),a("div",{key:"f03c94412b7861d255dfdef98a4c2fad14e96cfa",class:"p-2"},a("form-control-date",{key:"d7588c4ecda9480881e0f67e0418b1e475db188c",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:p(this.createdAfter,{showInputDateTime:!0})||p(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:d})),a("div",{key:"76f0cee7430e846a479478c903d892ac05490787",class:"p-2"},a("form-control-date",{key:"ce0f99ebfa8a82111689ae6ee4cc1d8bd141d657",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:p(this.createdBefore,{showInputDateTime:!0})||p(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:d})),a("div",{key:"5c06fefb50c8c987a8e55623cba70a39cc64bbe1",class:"p-2"},a("form-control-text",{key:"0a24516bbf665784e5c13a16b0b38be2bafb684b",name:"company_name",label:"Company Name",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.companyName||s.company_name,disabled:!!this.companyName,part:d})))))}};export{f as justifi_terminal_orders_list_filters}
@@ -1 +0,0 @@
1
- import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import{c as i}from"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{j as s,C as o,e as r}from"./p-CUI41_5y.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{J as n}from"./p-zi3ljCdQ.js";import{c as h}from"./p-DgH-jcIo.js";import{g as p,a as d}from"./p-B5vVjDc_.js";import{P as l}from"./p-CX36GHQP.js";import{T as f,l as u,a as m,b,c as y,d as _,e as w,f as j,g as v,h as T,i as g,j as k,k as C}from"./p-bn_huKYG.js";import{S as D}from"./p-BqNNwq6C.js";import{T as P}from"./p-CZfYo5-1.js";import{a as I}from"./p-BRnBHsdq.js";import{a3 as S,a4 as q}from"./p-DnrawQn3.js";import"./p-D8GTwl9v.js";import"./p-beXEDfB9.js";import"./p-CYQvLgSs.js";import"./p-CDf5H0TB.js";const O={id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:S,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:S,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:S,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:S,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:S,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:S,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:S,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:S,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},B={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},E={id:e=>t("td",{part:q(e.id)},e.id),account_id:e=>t("td",{part:q(e.account_id)},e.account_id),payout_id:e=>t("td",{part:q(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:q(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:q(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:q(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:q(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:q(e.currency)},e.currency),description:e=>t("td",{part:q(e.description)},e.description),source_id:e=>t("td",{part:q(e.source_id)},e.source_id),txn_type:e=>t("td",{part:q(e.txn_type)},B[e.txn_type]),created_at:e=>t("td",{part:q(e.created_at)},t("div",{class:"fw-bold"},I(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:q(e.available_on)},t("div",{class:"fw-bold"},I(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:q(e.updated_at)},t("div",{class:"fw-bold"},I(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},I(e.updated_at,{showTime:!0})))},H=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event",7),this.errorEvent=a(this,"error-event",7),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=c,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:P.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:P.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:P.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,O,E),h(),this.analytics=new n(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:i,onSuccess:r,onError:c,final:n})=>{var h;try{const n=await a.fetchPayoutTransactions(t,e,i);n.error?c({error:d(n.error),code:p(null===(h=n.error)||void 0===h?void 0:h.code),severity:o.ERROR}):r({balanceTransactions:n.data.map((t=>new s(t))),pagingInfo:Object.assign({},n.page_info)})}catch(t){const e=p(null==t?void 0:t.code);c({error:d(t),code:e,severity:o.ERROR})}finally{n()}})({accountId:i.accountId,authToken:this.authToken,service:new l})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,o.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(D,{key:"6bcc0b4af31b1b1481caa3a2ea58f21e961b4777"},t(u,{key:"506239f8d1f08007c93d09b35973e773447b95f0"},t(m,{key:"ab46955207d861620abb1fe328ba8eb47bf6912e"},t(b,{key:"b7c20c0d180e208a8a8d585751180be5f979c4a8"},t(y,{key:"6f47150a981f137cb3633437744b36e6c9b1f3f0"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"eb7912643fe3a3d9f66a2becbb130ba8a1a33127"},t(w,{key:"c2f95846f4c90535695ebce26c82b90b3ae022fe",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(j,{key:"93c2764401380a7dad07907c9f264d991f0b8e9d",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(v,{key:"2ab2bcc9f9d2768a17a6e511d0ecf7a24a2ca4b1",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(T,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(g,{key:"d5c76e1db68cebd0acac42f607a7602db3ab967a"},t(k,{key:"28d6eed555117e50a852c899085b634ba1ff1ccb"},t(C,{key:"b4eceba9f0a705ee8824aeb313b1505752b9a53e",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"ba042ec0410830443db71fbeb8d90162ce761996",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{H as justifi_payout_transactions_list}
@@ -1 +0,0 @@
1
- import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-Dbg501Lu.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{b as i,C as r,e as o}from"./p-CUI41_5y.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-BH0Xfn-F.js";import{g as c,a as p}from"./p-B5vVjDc_.js";import{J as h}from"./p-zi3ljCdQ.js";import{c as d}from"./p-DgH-jcIo.js";import{S as m}from"./p-BqNNwq6C.js";import{T as f,l,a as u,b,c as y,d as g,e as j,f as v,g as _,h as C,i as k,j as w,k as D}from"./p-bn_huKYG.js";import{T}from"./p-CZfYo5-1.js";import{M as P}from"./p-D1D2eC05.js";import{a as S}from"./p-BRnBHsdq.js";import{a3 as O,a4 as B}from"./p-DnrawQn3.js";import{o as I,g as E}from"./p-CpGEMRkH.js";import"./p-CYQvLgSs.js";import"./p-D8GTwl9v.js";import"./p-beXEDfB9.js";import"./p-CDf5H0TB.js";import"./p-pL4dNfsl.js";const H={created_at:()=>t("th",{part:O,scope:"col",title:"The date and time each payment was made"},"Date"),amount:()=>t("th",{part:O,scope:"col",title:"The dollar amount of each payment"},"Amount"),status:()=>t("th",{part:O,scope:"col",title:"The current status of each payment"},"Status"),payment_type:()=>t("th",{part:O,scope:"col",title:"The type of each payment"},"Type"),description:()=>t("th",{part:O,scope:"col",title:"The payment description, if you provided one"},"Description"),payers_name:()=>t("th",{part:O,scope:"col",title:"The name associated with the payment method"},"Account Holder"),last_four_digits:()=>t("th",{part:O,scope:"col",title:"The brand and last 4 digits of the payment method"},"Payment Method"),card_brand:()=>t("th",{part:O,scope:"col",title:"The brand of the payment method"},"Card Brand")},A={created_at:(e,a)=>t("td",{part:B(a)},t("div",{class:"fw-bold"},S(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.created_at,{showTime:!0}))),amount:(e,a)=>t("td",{part:B(a)},e.formattedPaymentAmount(e.amount)),status:(e,a)=>t("td",{part:B(a)},P(e.status)),payment_type:(e,a)=>t("td",{part:B(a)},e.payment_type),description:(e,a)=>t("td",{part:B(a)},e.description),payers_name:(e,a)=>t("td",{part:B(a)},e.payers_name),last_four_digits:(e,a)=>t("td",{part:B(a)},e.last_four_digits),card_brand:(e,a)=>{var s,i,r;return t("td",{part:B(a)},(r=(null===(s=e.payment_method.card)||void 0===s?void 0:s.brand)||(null===(i=e.payment_method.bank_account)||void 0===i?void 0:i.brand))?{visa:"VISA",mastercard:"Mastercard",american_express:"American Express",discover:"Discover",diners_club:"Diners Club",jcb:"JCB",china_unionpay:"China UnionPay",unknown:"Unknown"}[r.toLowerCase()]||r:"N/A")}},L=class{constructor(t){e(this,t),this.errorEvent=a(this,"error-event",7),this.clickEvent=a(this,"click-event",7),this.errorMessage=null,this.payments=[],this.loading=!0,this.paging=n,this.pagingParams={},this.columns="created_at,amount,status,payment_type,description,payers_name,last_four_digits,card_brand",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:T.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:T.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.payments.find((t=>t.id===e));this.clickEvent.emit({name:T.row,data:a})}}componentWillLoad(){d(),this.analytics=new h(this),this.paymentsTable=new f(this.payments,this.columns,H,A),this.initializeGetPayments(),I("set",(()=>{this.pagingParams={},this.errorMessage=""})),I("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPayments()}updateOnPropChange(){this.fetchData()}initializeGetPayments(){this.accountId&&this.authToken?this.getPayments=(({id:t,authToken:e,service:a})=>async({params:s,onSuccess:o,onError:n,final:h})=>{var d,m;try{const h=await a.fetchPayments(t,e,s);if(h.error)return n({error:p(h.error),code:c(null===(m=h.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},h.page_info);o({payments:(null===(d=h.data)||void 0===d?void 0:d.map((t=>new i(t))))||[],pagingInfo:t})}}catch(t){const e=c(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:r.ERROR})}finally{return h()}})({id:this.accountId,authToken:this.authToken,service:new s}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}fetchData(){this.getPayments&&(this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:e})=>{this.payments=t,this.paging=e,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:a})},final:()=>{this.loading=!1}}))}get paymentParams(){const t=E();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(m,{key:"6e1b9127bd44def13ca0e9360f3ad94e8c99860e"},t(l,{key:"556583538e7dd2cadd84980277da82902eba942f"},t(u,{key:"bc604eb09bcb019786afb272f597da99d6635872"},t(b,{key:"3e030bf889ea09510c26147d807a427d4a772d23"},t(y,{key:"c193117a1db06574c019922536a6982e4c6f09fb"},this.paymentsTable.columnData.map((t=>t)))),t(g,{key:"aa955b2adc05c02fbe7a6c693de4649e90855aba"},t(j,{key:"35930a22ccdcc360e5e3f192c3fb140711508742",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),t(v,{key:"1582993843ac6661d2c5b62e07b1911ab940cb3c",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),t(_,{key:"328f38cc95fb2f854865e4e05ace7e9ce8af8b69",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((e,a)=>t(C,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(k,{key:"0137371c7f1ab00f8ef3d27cebb30525eff6b659"},t(w,{key:"54ed0b9a13338b0bcefba282afe4f2de40e8f539"},t(D,{key:"6b98204f36a989fe9bd2bda65705de88098690c5",colSpan:this.paymentsTable.columnData.length},t("pagination-menu",{key:"e3fce4ab3efcc9a33d0b2617cea88026c8a459f3",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{L as justifi_payments_list}
@@ -1 +0,0 @@
1
- import{r as t,h as o}from"./p-CV0Pyo1O.js";import{c as a}from"./p-DgH-jcIo.js";import{J as s}from"./p-zi3ljCdQ.js";import{w as r}from"./p-DVJaoI_m.js";import{S as p}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-beXEDfB9.js";import"./p-CYQvLgSs.js";import"./p-BRnBHsdq.js";import"./p-HXpYMWUU.js";import"./p-CUI41_5y.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-D8GTwl9v.js";const i=class{constructor(o){t(this,o)}async componentWillLoad(){await r(),a(),this.analytics=new s(this)}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}async validate(){return this.bankAccountFormElement.validate()}async tokenize({clientId:t,paymentMethodMetadata:o,account:a}){return this.bankAccountFormElement.tokenize({clientId:t,paymentMethodMetadata:o,account:a})}render(){return o(p,{key:"9a81b78573c9519a46902679cbb1a8a4536f69be"},o("bank-account-form",{key:"2bc1dfd52e25989a42f25af7f7a6d353eb5a7e5f",ref:t=>this.bankAccountFormElement=t}))}};export{i as justifi_bank_account_form}
@@ -1 +0,0 @@
1
- import{r,h as i}from"./p-CV0Pyo1O.js";import{S as l}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";const s=class{constructor(i){r(this,i)}async getValues(){var r,i;return null!==(i=null===(r=this.billingFormFullRef)||void 0===r?void 0:r.getValues())&&void 0!==i?i:{}}async validate(){var r,i;return null!==(i=null===(r=this.billingFormFullRef)||void 0===r?void 0:r.validate())&&void 0!==i?i:{isValid:!1,errors:{}}}render(){return i(l,{key:"22594318b6f851014d8cb569d5307a3e74e4af35"},i("billing-form-full",{key:"48c616c3ca6cf8160e2c0df4c136bbbc200393aa",legend:this.legend,ref:r=>this.billingFormFullRef=r}))}};export{s as justifi_billing_form_full}