@justifi/webcomponents 6.0.4 → 6.0.6-rc.1

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 (638) hide show
  1. package/dist/cjs/{Api-DHhR05W5.js → Api-CjtvTD2_.js} +2 -2
  2. package/dist/cjs/{Refund-CFOz9QoU.js → Refund-BnhHNKLz.js} +1 -1
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +14 -13
  4. package/dist/cjs/{badge-C1lVkjn6.js → badge-CE3ss_OU.js} +2 -2
  5. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +12 -12
  6. package/dist/cjs/bank-account-form.cjs.entry.js +8 -8
  7. package/dist/cjs/business-details-core.cjs.entry.js +5 -5
  8. package/dist/cjs/{business.service-Dx2FS4K-.js → business.service-Cj_NUZsr.js} +2 -2
  9. package/dist/cjs/{button-C8gOSOdZ.js → button-gPNZ9XRn.js} +2 -2
  10. package/dist/cjs/card-form.cjs.entry.js +8 -8
  11. package/dist/cjs/{check-pkg-version-DBsrbl8J.js → check-pkg-version-BqQyunnf.js} +3 -3
  12. package/dist/cjs/{checkout.service-DRV9oDxT.js → checkout.service-Bc8L9ixO.js} +2 -2
  13. package/dist/cjs/{checkout.store-WVXAN_mi.js → checkout.store-Bswr7kNY.js} +5 -1
  14. package/dist/cjs/checkouts-list-core.cjs.entry.js +12 -12
  15. package/dist/cjs/{checkouts-list-params-state-B3dEHKgs.js → checkouts-list-params-state-BYpq-c6X.js} +1 -1
  16. package/dist/cjs/{checkouts-table-A2cMCczU.js → checkouts-table-C5AHeIr0.js} +4 -4
  17. package/dist/cjs/{config-state-B5-AuTAI.js → config-state-C7babhLh.js} +1 -1
  18. package/dist/cjs/custom-popper_2.cjs.entry.js +4 -4
  19. package/dist/cjs/{dispute.service-DaPbzqUr.js → dispute.service-DhO_tuDc.js} +2 -2
  20. package/dist/cjs/form-alert_5.cjs.entry.js +6 -6
  21. package/dist/cjs/form-control-checkbox.cjs.entry.js +6 -6
  22. package/dist/cjs/form-control-date.cjs.entry.js +5 -5
  23. package/dist/cjs/{form-control-error-text-Bm5PuYuo.js → form-control-error-text-BnMWn8U_.js} +2 -2
  24. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +6 -6
  25. package/dist/cjs/{form-control-help-text-DH-ddiz4.js → form-control-help-text-DEi5vSjN.js} +2 -2
  26. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  27. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +6 -6
  28. package/dist/cjs/form-control-monetary.cjs.entry.js +7 -7
  29. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +6 -6
  30. package/dist/cjs/form-control-number.cjs.entry.js +6 -6
  31. package/dist/cjs/form-control-radio.cjs.entry.js +4 -4
  32. package/dist/cjs/form-control-select_2.cjs.entry.js +7 -7
  33. package/dist/cjs/{get-payment-details-DbxyqeB1.js → get-payment-details-BinT-ZEP.js} +2 -2
  34. package/dist/cjs/{get-subaccounts-B8O_HimP.js → get-subaccounts-BoTVdl7v.js} +3 -3
  35. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +6 -6
  36. package/dist/cjs/{header-1-8mY0uvLp.js → header-1-D3r87SC6.js} +2 -2
  37. package/dist/cjs/{header-3-BkMrxDLW.js → header-3-BFQJJgBb.js} +2 -2
  38. package/dist/cjs/hidden-input_2.cjs.entry.js +9 -9
  39. package/dist/cjs/{index-CoKhq0yT.js → index-Bhtk1qkX.js} +1 -1
  40. package/dist/cjs/{index-B8q7TYrk.js → index-CWM5ions.js} +1 -1
  41. package/dist/cjs/{insurance-state-CN0jLsMn.js → insurance-state-JbqYvJN3.js} +3 -3
  42. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +8 -8
  43. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +18 -18
  44. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
  45. package/dist/cjs/{justifi-checkout-summary_7.cjs.entry.js → justifi-apple-pay_8.cjs.entry.js} +892 -24
  46. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +23 -23
  47. package/dist/cjs/justifi-business-details.cjs.entry.js +11 -11
  48. package/dist/cjs/justifi-business-form.cjs.entry.js +14 -14
  49. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +3 -3
  50. package/dist/cjs/justifi-checkout.cjs.entry.js +13 -13
  51. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +9 -9
  52. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +15 -15
  53. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  54. package/dist/cjs/justifi-details.cjs.entry.js +4 -4
  55. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
  56. package/dist/cjs/justifi-dispute-management.cjs.entry.js +10 -10
  57. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +16 -16
  58. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +10 -10
  59. package/dist/cjs/justifi-order-terminals.cjs.entry.js +14 -14
  60. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -12
  61. package/dist/cjs/justifi-payment-details.cjs.entry.js +20 -13
  62. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +5 -5
  63. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +10 -10
  64. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +14 -14
  65. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +8 -8
  66. package/dist/cjs/justifi-payments-list.cjs.entry.js +15 -15
  67. package/dist/cjs/justifi-payout-details.cjs.entry.js +13 -12
  68. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +14 -14
  69. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +8 -8
  70. package/dist/cjs/justifi-payouts-list.cjs.entry.js +16 -16
  71. package/dist/cjs/justifi-refund-payment.cjs.entry.js +14 -14
  72. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
  73. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +13 -13
  74. package/dist/cjs/justifi-skeleton.cjs.entry.js +5 -5
  75. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +10 -10
  76. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +13 -13
  77. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +9 -9
  78. package/dist/cjs/justifi-terminals-list.cjs.entry.js +15 -15
  79. package/dist/cjs/loader.cjs.js +2 -2
  80. package/dist/cjs/{package-Cuc8l3LN.js → package-CeJ5geYu.js} +1 -1
  81. package/dist/cjs/pagination-menu.cjs.entry.js +5 -5
  82. package/dist/cjs/{parts-9jMf1erK.js → parts-Pb06tUMp.js} +2 -0
  83. package/dist/cjs/payment-details-core.cjs.entry.js +19 -19
  84. package/dist/cjs/payment-method-option.cjs.entry.js +4 -4
  85. package/dist/cjs/{payment.service-CYAqnKsH.js → payment.service-C9thkR4g.js} +2 -2
  86. package/dist/cjs/payments-list-core.cjs.entry.js +13 -13
  87. package/dist/cjs/{payments-list-params-state-B3dEHKgs.js → payments-list-params-state-BYpq-c6X.js} +1 -1
  88. package/dist/cjs/{payments-status-Cwp_sPLb.js → payments-status-CnNXcRLO.js} +2 -2
  89. package/dist/cjs/{payments-table-D9ZL7KEZ.js → payments-table-BGuCOPTJ.js} +4 -4
  90. package/dist/cjs/payout-details-core.cjs.entry.js +25 -12
  91. package/dist/cjs/{payout.service-B5WqvvSO.js → payout.service-CGZxpQMq.js} +2 -2
  92. package/dist/cjs/payouts-list-core.cjs.entry.js +13 -13
  93. package/dist/cjs/{payouts-list-params-state-B3dEHKgs.js → payouts-list-params-state-BYpq-c6X.js} +1 -1
  94. package/dist/cjs/{payouts-status-gUEqx_45.js → payouts-status-2na6MMgV.js} +2 -2
  95. package/dist/cjs/{payouts-table-CxUxBIEg.js → payouts-table-DXekpbYc.js} +4 -4
  96. package/dist/cjs/{skeleton-WNwMpTOZ.js → skeleton-BvdAh448.js} +2 -2
  97. package/dist/cjs/{spinner-DP-6z8gb.js → spinner-Rt52JMa2.js} +2 -2
  98. package/dist/cjs/{styled-host-BeBLN_42.js → styled-host-BSooSIhA.js} +1 -1
  99. package/dist/cjs/{table-POSNlW0c.js → table-Ccg4k90C.js} +3 -3
  100. package/dist/cjs/table-filters-menu.cjs.entry.js +4 -4
  101. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +12 -12
  102. package/dist/cjs/{terminal-orders-list-params-state-B3dEHKgs.js → terminal-orders-list-params-state-BYpq-c6X.js} +1 -1
  103. package/dist/cjs/{terminal-orders-table-OBx67Idp.js → terminal-orders-table-7ew1vCKk.js} +6 -6
  104. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +3 -3
  105. package/dist/cjs/{terminal.service-DxxgZygg.js → terminal.service-BkKxH-k4.js} +2 -2
  106. package/dist/cjs/terminals-list-core.cjs.entry.js +12 -12
  107. package/dist/cjs/terminals-list-params-state-BYpq-c6X.js +22 -0
  108. package/dist/cjs/{terminals-table-ByPkFcIa.js → terminals-table-ByYs-pH7.js} +4 -4
  109. package/dist/cjs/{utils-ChCUZgUy.js → utils-Bab-tddY.js} +4 -0
  110. package/dist/cjs/{utils-BE2CEPRZ.js → utils-CUcA4G_O.js} +5 -5
  111. package/dist/cjs/webcomponents.cjs.js +3 -3
  112. package/dist/collection/collection-manifest.json +2 -2
  113. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +1 -1
  114. package/dist/collection/components/business-details/owner-details/owner-details.js +9 -8
  115. package/dist/collection/components/business-details/representative-details/representative-details.js +1 -1
  116. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +7 -6
  117. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  118. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +7 -6
  119. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +7 -6
  120. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  121. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  122. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +7 -6
  123. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  124. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  125. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  126. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  127. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  128. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  129. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  130. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  131. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  132. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  133. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  134. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  135. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  136. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  137. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  138. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  139. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  140. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  141. package/dist/collection/components/checkout/checkout.js +2 -2
  142. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  143. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  144. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  145. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  146. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  147. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  148. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  149. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  150. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  151. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  152. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  153. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  154. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  155. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  156. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  157. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  158. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  159. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  160. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  161. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  162. package/dist/collection/components/modular-checkout/modular-checkout.js +9 -9
  163. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +7 -2
  164. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +1 -1
  165. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  166. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +1 -1
  167. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  168. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  169. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  170. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  171. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  172. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  173. package/dist/collection/components/payment-details/payment-details.js +28 -1
  174. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  175. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  176. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  177. package/dist/collection/components/payments-list/payments-list.js +1 -1
  178. package/dist/collection/components/payout-details/payout-details-core.js +57 -4
  179. package/dist/collection/components/payout-details/payout-details.js +22 -1
  180. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  181. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  182. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  183. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  184. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  185. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  186. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  187. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  188. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  189. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  190. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -4
  191. package/dist/collection/store/checkout.store.js +4 -0
  192. package/dist/collection/styles/parts.js +1 -1
  193. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  194. package/dist/collection/ui-components/details/details.js +1 -1
  195. package/dist/collection/ui-components/details/utils.js +4 -4
  196. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  197. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  198. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  199. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  200. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  201. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  202. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  203. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  204. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  205. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  206. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  207. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  208. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  209. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -3
  210. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  211. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  212. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +1 -1
  213. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  214. package/dist/collection/utils/utils.js +4 -0
  215. package/dist/docs.json +136 -100
  216. package/dist/esm/{Api-GDDXjRV1.js → Api-DhiA2e_P.js} +2 -2
  217. package/dist/esm/{Refund-C3Rj8ucO.js → Refund-B-iOTRxz.js} +1 -1
  218. package/dist/esm/additional-questions-details_5.entry.js +14 -13
  219. package/dist/esm/{badge-DrV8suYS.js → badge-CtdO-tEY.js} +2 -2
  220. package/dist/esm/bank-account-document-form-inputs_4.entry.js +12 -12
  221. package/dist/esm/bank-account-form.entry.js +8 -8
  222. package/dist/esm/business-details-core.entry.js +5 -5
  223. package/dist/esm/{business.service-BZPNzxOH.js → business.service-D55OVyco.js} +2 -2
  224. package/dist/esm/{button-Dz7L1sRR.js → button-DtTaQHMK.js} +2 -2
  225. package/dist/esm/card-form.entry.js +8 -8
  226. package/dist/esm/{check-pkg-version-Dzqkjq08.js → check-pkg-version-DW45blqY.js} +3 -3
  227. package/dist/esm/{checkout.service-_dbCJ4H4.js → checkout.service-fwbqSq8g.js} +2 -2
  228. package/dist/esm/{checkout.store-CpBg1CFX.js → checkout.store-4nUf2OuT.js} +5 -1
  229. package/dist/esm/checkouts-list-core.entry.js +12 -12
  230. package/dist/esm/{checkouts-list-params-state-DKBoAgAJ.js → checkouts-list-params-state-C_fug9R3.js} +1 -1
  231. package/dist/esm/{checkouts-table-BIuJBjFX.js → checkouts-table-B6gGDtOr.js} +4 -4
  232. package/dist/esm/{config-state-BJ800oYx.js → config-state-DiHV-4QK.js} +1 -1
  233. package/dist/esm/custom-popper_2.entry.js +4 -4
  234. package/dist/esm/{dispute.service-DX3dxl7L.js → dispute.service-Cdq3_yRo.js} +2 -2
  235. package/dist/esm/form-alert_5.entry.js +6 -6
  236. package/dist/esm/form-control-checkbox.entry.js +6 -6
  237. package/dist/esm/form-control-date.entry.js +5 -5
  238. package/dist/esm/{form-control-error-text-BybKqTXI.js → form-control-error-text-bprS-t9d.js} +2 -2
  239. package/dist/esm/form-control-file-v2_2.entry.js +6 -6
  240. package/dist/esm/{form-control-help-text-zXEGK2O9.js → form-control-help-text-Bvnp-IAG.js} +2 -2
  241. package/dist/esm/form-control-help-text.entry.js +1 -1
  242. package/dist/esm/form-control-monetary-provisioning.entry.js +6 -6
  243. package/dist/esm/form-control-monetary.entry.js +7 -7
  244. package/dist/esm/form-control-number-masked_2.entry.js +6 -6
  245. package/dist/esm/form-control-number.entry.js +6 -6
  246. package/dist/esm/form-control-radio.entry.js +4 -4
  247. package/dist/esm/form-control-select_2.entry.js +7 -7
  248. package/dist/esm/{get-payment-details-KXwiFeJs.js → get-payment-details-sGoWyAat.js} +2 -2
  249. package/dist/esm/{get-subaccounts-DGclXJlZ.js → get-subaccounts-BsJSlShO.js} +3 -3
  250. package/dist/esm/gross-payment-chart-core.entry.js +6 -6
  251. package/dist/esm/{header-1-oPO-WOI8.js → header-1-C1Hnxki8.js} +2 -2
  252. package/dist/esm/{header-3-DWKhJ_Et.js → header-3-Bq8fpjm-.js} +2 -2
  253. package/dist/esm/hidden-input_2.entry.js +9 -9
  254. package/dist/esm/{index-Cuq3wBDS.js → index-DJ9G-4S-.js} +1 -1
  255. package/dist/esm/{index-DyGx8Avl.js → index-DOjVAAtq.js} +1 -1
  256. package/dist/esm/{insurance-state-DVxPVMxW.js → insurance-state-CVme82j7.js} +3 -3
  257. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +8 -8
  258. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +18 -18
  259. package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
  260. package/dist/esm/{justifi-checkout-summary_7.entry.js → justifi-apple-pay_8.entry.js} +892 -25
  261. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +23 -23
  262. package/dist/esm/justifi-business-details.entry.js +11 -11
  263. package/dist/esm/justifi-business-form.entry.js +14 -14
  264. package/dist/esm/justifi-business-representative-form-inputs.entry.js +3 -3
  265. package/dist/esm/justifi-checkout.entry.js +13 -13
  266. package/dist/esm/justifi-checkouts-list-filters.entry.js +9 -9
  267. package/dist/esm/justifi-checkouts-list.entry.js +15 -15
  268. package/dist/esm/justifi-config-provider.entry.js +3 -3
  269. package/dist/esm/justifi-details.entry.js +4 -4
  270. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  271. package/dist/esm/justifi-dispute-management.entry.js +10 -10
  272. package/dist/esm/justifi-dispute-notification_3.entry.js +16 -16
  273. package/dist/esm/justifi-gross-payment-chart.entry.js +10 -10
  274. package/dist/esm/justifi-order-terminals.entry.js +14 -14
  275. package/dist/esm/justifi-owner-form_3.entry.js +12 -12
  276. package/dist/esm/justifi-payment-details.entry.js +20 -13
  277. package/dist/esm/justifi-payment-provisioning-core.entry.js +5 -5
  278. package/dist/esm/justifi-payment-provisioning.entry.js +10 -10
  279. package/dist/esm/justifi-payment-transactions-list.entry.js +14 -14
  280. package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
  281. package/dist/esm/justifi-payments-list.entry.js +15 -15
  282. package/dist/esm/justifi-payout-details.entry.js +13 -12
  283. package/dist/esm/justifi-payout-transactions-list.entry.js +14 -14
  284. package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
  285. package/dist/esm/justifi-payouts-list.entry.js +16 -16
  286. package/dist/esm/justifi-refund-payment.entry.js +14 -14
  287. package/dist/esm/justifi-saved-payment-method.entry.js +3 -3
  288. package/dist/esm/justifi-season-interruption-insurance.entry.js +13 -13
  289. package/dist/esm/justifi-skeleton.entry.js +5 -5
  290. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +10 -10
  291. package/dist/esm/justifi-terminal-orders-list.entry.js +13 -13
  292. package/dist/esm/justifi-terminals-list-filters.entry.js +9 -9
  293. package/dist/esm/justifi-terminals-list.entry.js +15 -15
  294. package/dist/esm/loader.js +3 -3
  295. package/dist/esm/{package-CyVecSBV.js → package-BXUY63ga.js} +1 -1
  296. package/dist/esm/pagination-menu.entry.js +5 -5
  297. package/dist/esm/{parts-RvUQ__Pq.js → parts-xDbRW9xn.js} +2 -1
  298. package/dist/esm/payment-details-core.entry.js +19 -19
  299. package/dist/esm/payment-method-option.entry.js +4 -4
  300. package/dist/esm/{payment.service-oJkZDCjF.js → payment.service-BoQ1MW1k.js} +2 -2
  301. package/dist/esm/payments-list-core.entry.js +13 -13
  302. package/dist/esm/{payments-list-params-state-DKBoAgAJ.js → payments-list-params-state-C_fug9R3.js} +1 -1
  303. package/dist/esm/{payments-status-BMCeFxof.js → payments-status-cvtVmtY5.js} +2 -2
  304. package/dist/esm/{payments-table-2pRUlnGQ.js → payments-table-D_BlyU1F.js} +4 -4
  305. package/dist/esm/payout-details-core.entry.js +25 -12
  306. package/dist/esm/{payout.service-DY-EKu-S.js → payout.service-xcBdom3q.js} +2 -2
  307. package/dist/esm/payouts-list-core.entry.js +13 -13
  308. package/dist/esm/{payouts-list-params-state-DKBoAgAJ.js → payouts-list-params-state-C_fug9R3.js} +1 -1
  309. package/dist/esm/{payouts-status-DBkurhQF.js → payouts-status-D-vjrqBb.js} +2 -2
  310. package/dist/esm/{payouts-table-DXyLrcja.js → payouts-table-Clj8YGLV.js} +4 -4
  311. package/dist/esm/{skeleton-BagMauL8.js → skeleton-B8EUwt4b.js} +2 -2
  312. package/dist/esm/{spinner-DOyR5em0.js → spinner-CYXkn1fh.js} +2 -2
  313. package/dist/esm/{styled-host-BQjsup-P.js → styled-host-OalOsPBp.js} +1 -1
  314. package/dist/esm/{table-D-zEX8E8.js → table-Bj20uWfu.js} +3 -3
  315. package/dist/esm/table-filters-menu.entry.js +4 -4
  316. package/dist/esm/terminal-orders-list-core.entry.js +12 -12
  317. package/dist/esm/{terminal-orders-list-params-state-DKBoAgAJ.js → terminal-orders-list-params-state-C_fug9R3.js} +1 -1
  318. package/dist/esm/{terminal-orders-table-COcJMPaL.js → terminal-orders-table-DzBpIW8i.js} +6 -6
  319. package/dist/esm/terminal-quantity-selector.entry.js +3 -3
  320. package/dist/esm/{terminal.service-fDtEdpf-.js → terminal.service-l6zTIPZ3.js} +2 -2
  321. package/dist/esm/terminals-list-core.entry.js +12 -12
  322. package/dist/esm/terminals-list-params-state-C_fug9R3.js +16 -0
  323. package/dist/esm/{terminals-table-CyL85b_g.js → terminals-table-BMS5tazC.js} +4 -4
  324. package/dist/esm/{utils-BscIVFn8.js → utils-BOijEGPV.js} +4 -1
  325. package/dist/esm/{utils-i_eMGns9.js → utils-DRwofES0.js} +5 -5
  326. package/dist/esm/webcomponents.js +4 -4
  327. package/dist/module/additional-questions-details2.js +1 -1
  328. package/dist/module/additional-questions.js +2 -2
  329. package/dist/module/additional-statement.js +2 -2
  330. package/dist/{esm/justifi-apple-pay.entry.js → module/apple-pay.js} +60 -23
  331. package/dist/module/badge.js +1 -1
  332. package/dist/module/bank-account-billing-form-simple.js +2 -2
  333. package/dist/module/bank-account-document-inputs.js +1 -1
  334. package/dist/module/bank-account-form-inputs2.js +1 -1
  335. package/dist/module/bank-account-form.js +3 -3
  336. package/dist/module/bank-account.js +2 -2
  337. package/dist/module/billing-form-full.js +1 -1
  338. package/dist/module/business-additional-questions-form-step.js +1 -1
  339. package/dist/module/business-bank-account-form-step.js +1 -1
  340. package/dist/module/business-core-info-form-step.js +1 -1
  341. package/dist/module/business-core-info.js +1 -1
  342. package/dist/module/business-documents-on-file2.js +1 -1
  343. package/dist/module/business-owners-form-step.js +1 -1
  344. package/dist/module/business-representative-form-inputs.js +1 -1
  345. package/dist/module/business-representative-form-step.js +1 -1
  346. package/dist/module/business-representative.js +2 -2
  347. package/dist/module/business-terms-conditions-form-step.js +1 -1
  348. package/dist/module/button.js +1 -1
  349. package/dist/module/cancellation-policy.js +2 -2
  350. package/dist/module/card-billing-form-simple.js +2 -2
  351. package/dist/module/card-form.js +3 -3
  352. package/dist/module/card-form2.js +2 -2
  353. package/dist/module/checkout.store.js +4 -0
  354. package/dist/module/checkouts-list-core2.js +2 -2
  355. package/dist/module/custom-popper2.js +2 -2
  356. package/dist/module/customer-details.js +2 -2
  357. package/dist/module/details.js +1 -1
  358. package/dist/module/dispute-management-core.js +1 -1
  359. package/dist/module/dispute-notification.js +2 -2
  360. package/dist/module/dispute-response-core.js +2 -2
  361. package/dist/module/dispute-response.js +1 -1
  362. package/dist/module/duplicate-charge.js +2 -2
  363. package/dist/module/electronic-evidence.js +2 -2
  364. package/dist/module/form-alert2.js +1 -1
  365. package/dist/module/form-control-checkbox2.js +3 -3
  366. package/dist/module/form-control-date2.js +3 -3
  367. package/dist/module/form-control-error-text.js +1 -1
  368. package/dist/module/form-control-file-v22.js +1 -1
  369. package/dist/module/form-control-file2.js +3 -3
  370. package/dist/module/form-control-monetary-provisioning2.js +3 -3
  371. package/dist/module/form-control-monetary2.js +3 -3
  372. package/dist/module/form-control-number-masked2.js +3 -3
  373. package/dist/module/form-control-number.js +3 -3
  374. package/dist/module/form-control-radio2.js +3 -3
  375. package/dist/module/form-control-select2.js +3 -3
  376. package/dist/module/form-control-text2.js +3 -3
  377. package/dist/module/form-control-textarea2.js +3 -3
  378. package/dist/module/form-control-tooltip2.js +1 -1
  379. package/dist/module/gross-payment-chart-core2.js +2 -2
  380. package/dist/module/header-3.js +1 -1
  381. package/dist/module/hidden-input2.js +2 -2
  382. package/dist/module/identity-address-form.js +1 -1
  383. package/dist/module/iframe-input2.js +4 -4
  384. package/dist/module/justifi-apple-pay.js +1 -904
  385. package/dist/module/justifi-button2.js +1 -1
  386. package/dist/module/justifi-checkout.js +27 -21
  387. package/dist/module/justifi-checkouts-list-filters.js +2 -2
  388. package/dist/module/justifi-checkouts-list.js +1 -1
  389. package/dist/module/justifi-dispute-management.js +1 -1
  390. package/dist/module/justifi-header2.js +1 -1
  391. package/dist/module/justifi-order-terminals.js +3 -3
  392. package/dist/module/justifi-payment-details.js +8 -1
  393. package/dist/module/justifi-payment-provisioning.js +1 -1
  394. package/dist/module/justifi-payment-transactions-list.js +2 -2
  395. package/dist/module/justifi-payments-list-filters.js +3 -3
  396. package/dist/module/justifi-payments-list.js +1 -1
  397. package/dist/module/justifi-payout-details.js +3 -1
  398. package/dist/module/justifi-payout-transactions-list.js +2 -2
  399. package/dist/module/justifi-payouts-list-filters.js +3 -3
  400. package/dist/module/justifi-payouts-list.js +1 -1
  401. package/dist/module/justifi-radio-list-item2.js +1 -1
  402. package/dist/module/justifi-saved-payment-method.js +1 -1
  403. package/dist/module/justifi-season-interruption-insurance.js +2 -2
  404. package/dist/module/justifi-skeleton.js +1 -1
  405. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  406. package/dist/module/justifi-terminal-orders-list.js +1 -1
  407. package/dist/module/justifi-terminals-list-filters.js +2 -2
  408. package/dist/module/justifi-terminals-list.js +1 -1
  409. package/dist/module/legal-address-form-step.js +1 -1
  410. package/dist/module/legal-address-form.js +2 -2
  411. package/dist/module/modular-checkout.js +7 -6
  412. package/dist/module/owner-details2.js +8 -7
  413. package/dist/module/owner-form-core2.js +2 -2
  414. package/dist/module/owner-form-inputs2.js +2 -2
  415. package/dist/module/owner-form.js +1 -1
  416. package/dist/module/package.js +1 -1
  417. package/dist/module/pagination-menu2.js +4 -4
  418. package/dist/module/parts.js +2 -1
  419. package/dist/module/payment-details-core2.js +8 -8
  420. package/dist/module/payment-method-option.js +1 -1
  421. package/dist/module/payment-provisioning-core.js +1 -1
  422. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  423. package/dist/module/payment-provisioning-form-steps.js +1 -1
  424. package/dist/module/payments-list-core2.js +2 -2
  425. package/dist/module/payout-details-core2.js +18 -4
  426. package/dist/module/payouts-list-core2.js +2 -2
  427. package/dist/module/product-or-service.js +2 -2
  428. package/dist/module/refund-policy.js +2 -2
  429. package/dist/module/representative-details2.js +1 -1
  430. package/dist/module/save-new-payment-method.js +1 -1
  431. package/dist/module/shipping-details.js +2 -2
  432. package/dist/module/spinner.js +1 -1
  433. package/dist/module/summary.js +1 -1
  434. package/dist/module/table-filters-menu2.js +2 -2
  435. package/dist/module/table.js +1 -1
  436. package/dist/module/terminal-orders-list-core2.js +2 -2
  437. package/dist/module/terminal-quantity-selector2.js +2 -2
  438. package/dist/module/terminals-list-core2.js +3 -3
  439. package/dist/module/tokenize-payment-method.js +1 -1
  440. package/dist/module/utils.js +4 -4
  441. package/dist/module/utils2.js +4 -1
  442. package/dist/types/api/Checkout.d.ts +2 -0
  443. package/dist/types/api/ComponentEvents.d.ts +4 -0
  444. package/dist/types/components/business-details/owner-details/owner-details.d.ts +1 -1
  445. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +1 -1
  446. package/dist/types/components/payment-details/payment-details.d.ts +3 -1
  447. package/dist/types/components/payout-details/payout-details-core.d.ts +5 -1
  448. package/dist/types/components/payout-details/payout-details.d.ts +1 -0
  449. package/dist/types/components.d.ts +30 -12
  450. package/dist/types/stencil-public-runtime.d.ts +19 -10
  451. package/dist/types/store/checkout.store.d.ts +1 -0
  452. package/dist/types/styles/parts.d.ts +1 -1
  453. package/dist/types/ui-components/details/utils.d.ts +3 -2
  454. package/dist/types/utils/utils.d.ts +1 -0
  455. package/dist/webcomponents/{p-13f08bdc.entry.js → p-0217783c.entry.js} +4 -4
  456. package/dist/webcomponents/p-02fdd7f5.entry.js +1 -0
  457. package/dist/webcomponents/p-0af5269e.entry.js +1 -0
  458. package/dist/webcomponents/p-0cac8468.entry.js +1 -0
  459. package/dist/webcomponents/{p-28725bf6.entry.js → p-0cf71cbd.entry.js} +1 -1
  460. package/dist/webcomponents/p-0d3904cb.entry.js +1 -0
  461. package/dist/webcomponents/p-0eb69f41.entry.js +1 -0
  462. package/dist/webcomponents/p-0fgTPVV0.js +1 -0
  463. package/dist/webcomponents/p-1f82f0cc.entry.js +1 -0
  464. package/dist/webcomponents/p-220d8503.entry.js +1 -0
  465. package/dist/webcomponents/p-268a6e14.entry.js +1 -0
  466. package/dist/webcomponents/{p-8cb3af20.entry.js → p-28625e07.entry.js} +1 -1
  467. package/dist/webcomponents/p-2d300faa.entry.js +1 -0
  468. package/dist/webcomponents/{p-7b5bfe7c.entry.js → p-2f40f708.entry.js} +1 -1
  469. package/dist/webcomponents/p-328117e4.entry.js +1 -0
  470. package/dist/webcomponents/p-32978110.entry.js +1 -0
  471. package/dist/webcomponents/{p-07b3bfd0.entry.js → p-37a93597.entry.js} +1 -1
  472. package/dist/webcomponents/p-447b55c0.entry.js +1 -0
  473. package/dist/webcomponents/p-47997bc2.entry.js +1 -0
  474. package/dist/webcomponents/p-4b57765c.entry.js +1 -0
  475. package/dist/webcomponents/p-50701f16.entry.js +1 -0
  476. package/dist/webcomponents/p-526b7442.entry.js +1 -0
  477. package/dist/webcomponents/p-55903cde.entry.js +1 -0
  478. package/dist/webcomponents/p-569c7dcc.entry.js +1 -0
  479. package/dist/webcomponents/p-58f7c4bd.entry.js +1 -0
  480. package/dist/webcomponents/p-5aae36f3.entry.js +1 -0
  481. package/dist/webcomponents/p-5bd3d86e.entry.js +1 -0
  482. package/dist/webcomponents/{p-24665376.entry.js → p-5cb22cfb.entry.js} +1 -1
  483. package/dist/webcomponents/{p-4f6732e7.entry.js → p-63ad8ebd.entry.js} +1 -1
  484. package/dist/webcomponents/p-6472b6db.entry.js +1 -0
  485. package/dist/webcomponents/p-67788df5.entry.js +1 -0
  486. package/dist/webcomponents/{p-8e59fd48.entry.js → p-705dba52.entry.js} +1 -1
  487. package/dist/webcomponents/{p-e77cc776.entry.js → p-78cb62a8.entry.js} +1 -1
  488. package/dist/webcomponents/p-80a4fba7.entry.js +1 -0
  489. package/dist/webcomponents/p-80b2cdec.entry.js +1 -0
  490. package/dist/webcomponents/p-8S_ROmnq.js +1 -0
  491. package/dist/webcomponents/p-8ca21fab.entry.js +1 -0
  492. package/dist/webcomponents/p-9773e1e9.entry.js +1 -0
  493. package/dist/webcomponents/p-9ad7d724.entry.js +1 -0
  494. package/dist/webcomponents/{p-0674f9e2.entry.js → p-9c8fb92f.entry.js} +1 -1
  495. package/dist/webcomponents/{p-1db698bb.entry.js → p-9d611395.entry.js} +1 -1
  496. package/dist/webcomponents/{p-7ee67a7b.entry.js → p-9ed7b13f.entry.js} +1 -1
  497. package/dist/webcomponents/{p-DijYoVj9.js → p-B6IWa9Ph.js} +1 -1
  498. package/dist/webcomponents/{p-CoHTj6Zv.js → p-BBx_EQqR.js} +1 -1
  499. package/dist/webcomponents/p-BXUY63ga.js +1 -0
  500. package/dist/webcomponents/{p-BHf9IqGw.js → p-Bgnhf5c9.js} +1 -1
  501. package/dist/webcomponents/{p-BzUsLFRB.js → p-BhCH9S0e.js} +1 -1
  502. package/dist/webcomponents/{p-B2zYNTMd.js → p-BjNuRWXK.js} +1 -1
  503. package/dist/webcomponents/p-BoQ6_4Ks.js +1 -0
  504. package/dist/webcomponents/{p-YFacIs1k.js → p-C0wTyoTh.js} +1 -1
  505. package/dist/webcomponents/p-C2JJBtMc.js +1 -0
  506. package/dist/webcomponents/p-C8k7a6D-.js +1 -0
  507. package/dist/webcomponents/{p-BrUSZwNP.js → p-C98BC5W5.js} +1 -1
  508. package/dist/webcomponents/{p-wyo7gH76.js → p-C9EQ459H.js} +1 -1
  509. package/dist/webcomponents/{p-DEPTsxWg.js → p-CCLgieAN.js} +1 -1
  510. package/dist/webcomponents/{p-lmpjoGKk.js → p-CCmDcLao.js} +1 -1
  511. package/dist/webcomponents/p-CEk3bv0x.js +1 -0
  512. package/dist/webcomponents/p-CH8Y3GSr.js +1 -0
  513. package/dist/webcomponents/{p-BXSa6F0A.js → p-ClvhB3WW.js} +1 -1
  514. package/dist/webcomponents/{p-Dlgl52fA.js → p-CmBCj61h.js} +1 -1
  515. package/dist/webcomponents/{p-Bao2wCms.js → p-CoBppUkq.js} +1 -1
  516. package/dist/webcomponents/p-D0Peuz-m.js +1 -0
  517. package/dist/webcomponents/p-D6BImiVi.js +1 -0
  518. package/dist/webcomponents/p-DGsXKF67.js +1 -0
  519. package/dist/webcomponents/{p-DqKxycem.js → p-DQZ5VHTZ.js} +1 -1
  520. package/dist/webcomponents/p-DWn9BiNn.js +1 -0
  521. package/dist/webcomponents/{p-CTqY6NgS.js → p-DdMxswn1.js} +1 -1
  522. package/dist/webcomponents/{p-B63vgBnY.js → p-DdZLLkQ5.js} +1 -1
  523. package/dist/webcomponents/p-DfV3dFDB.js +1 -0
  524. package/dist/webcomponents/p-Dieke6TH.js +1 -0
  525. package/dist/webcomponents/p-NAjz1Xfo.js +1 -0
  526. package/dist/webcomponents/p-NwmOm8Pg.js +1 -0
  527. package/dist/webcomponents/p-RQzxYnz_.js +1 -0
  528. package/dist/webcomponents/p-T2yENPvU.js +1 -0
  529. package/dist/webcomponents/p-a09695c4.entry.js +1 -0
  530. package/dist/webcomponents/{p-fb4c5873.entry.js → p-a4846316.entry.js} +1 -1
  531. package/dist/webcomponents/{p-DMEQUc2C.js → p-a6tcNl_T.js} +1 -1
  532. package/dist/webcomponents/p-a8446044.entry.js +1 -0
  533. package/dist/webcomponents/{p-d8a01f34.entry.js → p-ae8ae5bb.entry.js} +1 -1
  534. package/dist/webcomponents/p-aeb22aa2.entry.js +1 -0
  535. package/dist/webcomponents/{p-Cs66SeCx.js → p-au49QgoI.js} +1 -1
  536. package/dist/webcomponents/{p-bcc66eb6.entry.js → p-b608add9.entry.js} +1 -1
  537. package/dist/webcomponents/p-bb53e2e9.entry.js +1 -0
  538. package/dist/webcomponents/p-bc099dd0.entry.js +1 -0
  539. package/dist/webcomponents/p-c12d0453.entry.js +1 -0
  540. package/dist/webcomponents/{p-59c13f19.entry.js → p-c44fcff6.entry.js} +1 -1
  541. package/dist/webcomponents/p-c644a9f1.entry.js +1 -0
  542. package/dist/webcomponents/p-d0a2035f.entry.js +1 -0
  543. package/dist/webcomponents/p-d1bceac6.entry.js +1 -0
  544. package/dist/webcomponents/{p-1315f0c6.entry.js → p-d403bdc0.entry.js} +1 -1
  545. package/dist/webcomponents/{p-4337111b.entry.js → p-d4476052.entry.js} +1 -1
  546. package/dist/webcomponents/{p-5c025a41.entry.js → p-de95bf57.entry.js} +1 -1
  547. package/dist/webcomponents/p-dfb2e55b.entry.js +1 -0
  548. package/dist/webcomponents/p-e6be4e19.entry.js +1 -0
  549. package/dist/webcomponents/p-e9865d1d.entry.js +1 -0
  550. package/dist/webcomponents/p-e9b2591b.entry.js +1 -0
  551. package/dist/webcomponents/p-ea2cbf37.entry.js +1 -0
  552. package/dist/webcomponents/p-ec9514f8.entry.js +1 -0
  553. package/dist/webcomponents/p-edfeb034.entry.js +1 -0
  554. package/dist/webcomponents/p-ee90bbd1.entry.js +1 -0
  555. package/dist/webcomponents/{p-42934a93.entry.js → p-f705fc49.entry.js} +1 -1
  556. package/dist/webcomponents/{p-ea7fc5b2.entry.js → p-fbc5fc6d.entry.js} +1 -1
  557. package/dist/webcomponents/p-ffefa09c.entry.js +1 -0
  558. package/dist/webcomponents/p-h5pyZngT.js +1 -0
  559. package/dist/webcomponents/{p-BgUmsFt9.js → p-hbWSMN3O.js} +1 -1
  560. package/dist/webcomponents/p-lKnUT24T.js +1 -0
  561. package/dist/webcomponents/p-wQgEEOq_.js +1 -0
  562. package/dist/webcomponents/p-xDbRW9xn.js +1 -0
  563. package/dist/webcomponents/webcomponents.esm.js +1 -1
  564. package/package.json +13 -13
  565. package/LICENSE +0 -21
  566. package/dist/cjs/justifi-apple-pay.cjs.entry.js +0 -876
  567. package/dist/cjs/terminals-list-params-state-B3dEHKgs.js +0 -22
  568. package/dist/esm/terminals-list-params-state-DKBoAgAJ.js +0 -16
  569. package/dist/webcomponents/p-093b4cb3.entry.js +0 -1
  570. package/dist/webcomponents/p-0c1afe6a.entry.js +0 -1
  571. package/dist/webcomponents/p-0d0ecbec.entry.js +0 -1
  572. package/dist/webcomponents/p-0e598a4f.entry.js +0 -1
  573. package/dist/webcomponents/p-10dc6677.entry.js +0 -1
  574. package/dist/webcomponents/p-12e0f6d0.entry.js +0 -1
  575. package/dist/webcomponents/p-16332dad.entry.js +0 -1
  576. package/dist/webcomponents/p-175af33d.entry.js +0 -1
  577. package/dist/webcomponents/p-19549cf9.entry.js +0 -1
  578. package/dist/webcomponents/p-1cd888c2.entry.js +0 -1
  579. package/dist/webcomponents/p-1f241a23.entry.js +0 -1
  580. package/dist/webcomponents/p-2451aa52.entry.js +0 -1
  581. package/dist/webcomponents/p-24b38502.entry.js +0 -1
  582. package/dist/webcomponents/p-2aec0fec.entry.js +0 -1
  583. package/dist/webcomponents/p-2d3edc42.entry.js +0 -1
  584. package/dist/webcomponents/p-2e144d57.entry.js +0 -1
  585. package/dist/webcomponents/p-30241721.entry.js +0 -1
  586. package/dist/webcomponents/p-32770b86.entry.js +0 -1
  587. package/dist/webcomponents/p-3b42f47c.entry.js +0 -1
  588. package/dist/webcomponents/p-3b6ff2c7.entry.js +0 -1
  589. package/dist/webcomponents/p-3d626ed6.entry.js +0 -1
  590. package/dist/webcomponents/p-478388a5.entry.js +0 -1
  591. package/dist/webcomponents/p-4c151c69.entry.js +0 -1
  592. package/dist/webcomponents/p-5d49c795.entry.js +0 -1
  593. package/dist/webcomponents/p-66b642d8.entry.js +0 -1
  594. package/dist/webcomponents/p-68ff0209.entry.js +0 -1
  595. package/dist/webcomponents/p-6EvNOn3-.js +0 -1
  596. package/dist/webcomponents/p-6db4bf6d.entry.js +0 -1
  597. package/dist/webcomponents/p-6e7eda7b.entry.js +0 -1
  598. package/dist/webcomponents/p-731e895a.entry.js +0 -1
  599. package/dist/webcomponents/p-754fc289.entry.js +0 -1
  600. package/dist/webcomponents/p-838bc453.entry.js +0 -1
  601. package/dist/webcomponents/p-839b3217.entry.js +0 -1
  602. package/dist/webcomponents/p-89b69a99.entry.js +0 -1
  603. package/dist/webcomponents/p-8f1c9ea0.entry.js +0 -1
  604. package/dist/webcomponents/p-9aa60b89.entry.js +0 -1
  605. package/dist/webcomponents/p-9d656297.entry.js +0 -1
  606. package/dist/webcomponents/p-B7MgZiYt.js +0 -1
  607. package/dist/webcomponents/p-BAP2_n0C.js +0 -1
  608. package/dist/webcomponents/p-CFJORLxe.js +0 -1
  609. package/dist/webcomponents/p-CaCRHEeS.js +0 -1
  610. package/dist/webcomponents/p-CiGtDYf9.js +0 -1
  611. package/dist/webcomponents/p-CjiooCZL.js +0 -1
  612. package/dist/webcomponents/p-CpicmCYr.js +0 -1
  613. package/dist/webcomponents/p-CyVecSBV.js +0 -1
  614. package/dist/webcomponents/p-D5GwdE1-.js +0 -1
  615. package/dist/webcomponents/p-DMlQVSDm.js +0 -1
  616. package/dist/webcomponents/p-DO3DK7hp.js +0 -1
  617. package/dist/webcomponents/p-DPWdvb1b.js +0 -1
  618. package/dist/webcomponents/p-DVFJ02AX.js +0 -1
  619. package/dist/webcomponents/p-DgsBfaBV.js +0 -1
  620. package/dist/webcomponents/p-DmwN1pQC.js +0 -1
  621. package/dist/webcomponents/p-DqEiwSTX.js +0 -1
  622. package/dist/webcomponents/p-FS-_U_DC.js +0 -1
  623. package/dist/webcomponents/p-RvUQ__Pq.js +0 -1
  624. package/dist/webcomponents/p-TLJ8o8BU.js +0 -1
  625. package/dist/webcomponents/p-ba77f02e.entry.js +0 -1
  626. package/dist/webcomponents/p-bf73c13c.entry.js +0 -1
  627. package/dist/webcomponents/p-c3e3c368.entry.js +0 -1
  628. package/dist/webcomponents/p-c4b0da5d.entry.js +0 -1
  629. package/dist/webcomponents/p-c6636ce3.entry.js +0 -1
  630. package/dist/webcomponents/p-d182e0a4.entry.js +0 -1
  631. package/dist/webcomponents/p-e7686f74.entry.js +0 -1
  632. package/dist/webcomponents/p-e9527758.entry.js +0 -1
  633. package/dist/webcomponents/p-ef03a84f.entry.js +0 -1
  634. package/dist/webcomponents/p-f58866c6.entry.js +0 -1
  635. package/dist/webcomponents/p-f6be0e61.entry.js +0 -1
  636. package/dist/webcomponents/p-gpZ4wrS9.js +0 -1
  637. package/dist/webcomponents/p-xgpMjz3-.js +0 -1
  638. /package/dist/webcomponents/{p-DyGx8Avl.js → p-DOjVAAtq.js} +0 -0
@@ -0,0 +1 @@
1
+ import{h as i,r as t,H as e}from"./p-DOjVAAtq.js";import{S as a}from"./p-T2yENPvU.js";import{w as s,c}from"./p-a6tcNl_T.js";import{b as r}from"./p-Bgnhf5c9.js";import"./p-xDbRW9xn.js";import"./p-DdMxswn1.js";import"./p-HXpYMWUU.js";const n=t=>{const{isReady:e}=t;return e?null:i("div",{class:"container-fluid p-0"},i("div",{class:"row mb-3"},i("div",{class:"col-12 align-content-end"},i(a,{height:"18px",width:"120px"}),i(a,{height:"36px"}))),i("div",{class:"row"},i("div",{class:"col-12 align-content-end"},i(a,{height:"18px",width:"110px"}),i(a,{height:"36px"}))))},d=class{constructor(i){t(this,i),this.isReady=!1}async componentWillLoad(){await s(),this.iframeOrigin=c.iframeOrigin,this.tabId=r()}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((i=>new Promise((t=>{i.addEventListener("iframeLoaded",(()=>{t()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const i=await this.accountNumberIframeElement.validate(),t=await this.routingNumberIframeElement.validate();return i&&t}async tokenize(i,t,e){return this.accountNumberIframeElement.tokenize(i,t,e)}render(){return i(e,{key:"75a85f7b9ea4bf40b486706bce4b142821bf9f00"},i(n,{key:"ce957273b6ac57f4f0c636622cc9578582ceff43",isReady:this.isReady}),i("div",{key:"d269050f0fc66d7000096ccfb72a075342e0e91a",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},i("div",{key:"87285840b03837b7f12922257d6c8ca171db2d7d",class:"row mb-3"},i("iframe-input",{key:"d0ad5b047f1a4e51936ce79edc2d195bd781e4b2",inputId:"accountNumber",ref:i=>this.accountNumberIframeElement=i,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}`})),i("div",{key:"eee0c473f0add87e7842a0a1f24bdd999fe21a77",class:"row"},i("iframe-input",{key:"dfaa618afdffabe07a290cdfe63c6f06b38f8ecf",inputId:"routingNumber",ref:i=>this.routingNumberIframeElement=i,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}`}))))}};export{d as bank_account_form}
@@ -0,0 +1 @@
1
+ import{h as i,r as s,c as t}from"./p-DOjVAAtq.js";import{am as e,aj as r,af as o,D as l}from"./p-xDbRW9xn.js";import{S as d}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-CoBppUkq.js";import{C as h,a as c}from"./p-Cjcsf8ku.js";import{B as u}from"./p-DQZ5VHTZ.js";import{B as v}from"./p-BlJnA265.js";import{m as p}from"./p-DH8F0bsw.js";import{S as m}from"./p-T2yENPvU.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{j as f,i as w,b as j}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{g as x,a as g}from"./p-D2muobcE.js";import{T as y}from"./p-CCLgieAN.js";import{l as b}from"./p-Bgnhf5c9.js";import"./p-BXUY63ga.js";import"./p-DdZLLkQ5.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DdMxswn1.js";const C=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(m,{width:"25%"})),i("div",{class:"col-12"},i(m,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"50%"}),i(m,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"65%"}),i(m,{width:"35%"}))),k=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(m,{width:"40%",height:"40px"})),i(C,null)),S=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(m,{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(m,null),i(m,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(m,{width:"80px",height:"32px"}),i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(m,null),i(m,null)))))),B=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event"),this.submitted=t(this,"submit-event"),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 w({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?j.boardingShipping:j.boardingOnly}),n(),this.analytics=new a(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",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){p({id:this.businessId,authToken:this.authToken,service:new u})({onSuccess:({business:i})=>{this.business=new v(i),this.loading.business=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,n;try{const a=await t.fetchTerminalModels(i,s);if(a.error)return r({error:g(a.error),code:x(null===(n=a.error)||void 0===n?void 0:n.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=a.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new f(i))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=x(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new y})({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:g(d.error),code:x(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=x(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new y});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(k,null),this.loading.terminals&&i("div",{class:"mt-5"},i(S,null),i(S,null),i(S,null)))}renderBusinessDetails(){var s,t,o,l,d,n,a,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===(n=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===n?void 0:n.email),i("div",null,b(null===(h=null===(a=this.business)||void 0===a?void 0:a.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:"5e7da5050d127f6470bc12f9cf547fe421ce1897"},i("div",{key:"6a1f46676ef1f31f6cfeb642001a0dd3f8a60072",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{B as justifi_order_terminals}
@@ -1 +1 @@
1
- import{r as t,c as e,h as a,H as i}from"./p-DyGx8Avl.js";import{C as o}from"./p-ZpPDShvP.js";import{r as s}from"./p-RvUQ__Pq.js";import"./p-HXpYMWUU.js";const d=class{constructor(a){t(this,a),this.paymentMethodOptionSelected=e(this,"paymentMethodOptionSelected"),this.onPaymentMethodOptionClick=t=>{t.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)}}async resolvePaymentMethod(t){var e;return t.isValid?{token:null===(e=this.paymentMethodOption)||void 0===e?void 0:e.id}:{validationError:!0}}render(){var t,e,d;return a(i,{key:"077ad61b1a84963ebaad43397aa7c88211d9dd7e",class:"payment-method"},a("div",{key:"e01a2e45c55273cb0ee9774b60504d7098a74cf9",class:"radio-list-item p-3",part:s,onClick:this.onPaymentMethodOptionClick},a("form-control-radio",{key:"f34e9fe3f52fbf1acfdc72993259d6f6f58ac470",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:`${o[null===(e=this.paymentMethodOption)||void 0===e?void 0:e.brand]||""} *${null===(d=this.paymentMethodOption)||void 0===d?void 0:d.acct_last_four}`})))}};export{d as justifi_saved_payment_method}
1
+ import{r as t,c as e,h as a,H as i}from"./p-DOjVAAtq.js";import{C as o}from"./p-ZpPDShvP.js";import{r as s}from"./p-xDbRW9xn.js";import"./p-HXpYMWUU.js";const d=class{constructor(a){t(this,a),this.paymentMethodOptionSelected=e(this,"paymentMethodOptionSelected"),this.onPaymentMethodOptionClick=t=>{t.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)}}async resolvePaymentMethod(t){var e;return t.isValid?{token:null===(e=this.paymentMethodOption)||void 0===e?void 0:e.id}:{validationError:!0}}render(){var t,e,d;return a(i,{key:"7374fc6d31ec0ebdb34cdd2b789fb931cb93216f",class:"payment-method"},a("div",{key:"b29b47faffcb10d90a811a255a707dfda8597317",class:"radio-list-item p-3",part:s,onClick:this.onPaymentMethodOptionClick},a("form-control-radio",{key:"82c2ebcb9d9b47c8a0a6a3a3e35d7e59a4b66ee7",name:"paymentMethodType",value:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id,checked:this.isSelected,label:`${o[null===(e=this.paymentMethodOption)||void 0===e?void 0:e.brand]||""} *${null===(d=this.paymentMethodOption)||void 0===d?void 0:d.acct_last_four}`})))}};export{d as justifi_saved_payment_method}
@@ -1 +1 @@
1
- import{r as t,c as s,h as e}from"./p-DyGx8Avl.js";import"./p-DMEQUc2C.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-BrUSZwNP.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as f,i as m,j as b,k as u,l as g}from"./p-YFacIs1k.js";import{T as l}from"./p-CZfYo5-1.js";import{t as j,a as y}from"./p-BXSa6F0A.js";import{o as k,g as C}from"./p-DqEiwSTX.js";import"./p-CTqY6NgS.js";import"./p-BHf9IqGw.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-BAP2_n0C.js";import"./p-BgUmsFt9.js";const S=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:l.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new a(this.terminals,this.columns,j,y),this.getTerminals&&this.getSubAccounts&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:s})=>{this.terminals=t,this.paging=s,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get terminalParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"27022f23dcede378c6a6d16bffb040aa6448f4be"},e(r,{key:"5d369cf93698adb50b843f65c747672abeb74cb4"},e(h,{key:"21173a74ccb82d7c3278157dae4ef3d471dbee5f"},e(o,{key:"43e425567500ff324fd6ed68647a9504df812bf6"},this.terminalsTable.columnData.map((t=>t)))),e(c,{key:"1151ee93144161308f8b27b0172acb32d2096d25"},e(n,{key:"353fb24dfbd941e8bba6f62799e0feea42d05c53",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"daa19b965b5519e766ba8bbb63cfc4327128bf22",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(d,{key:"ee44061fa93cd20a59040a7b3faaeac10a925810",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((t,s)=>e(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"12cb09495ba8d416fd3593ccae4f205735226ecf"},e(b,{key:"da2e2695e6101193db9f67a0a76ce1ce8abdc646"},e(u,{key:"bffd81b4e90e668caa47813f96ab1a7764fa0f1b",colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"61c268da3402e0675f54515617a6bd2d58834e17",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{S as terminals_list_core}
1
+ import{r as t,c as s,h as e}from"./p-DOjVAAtq.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as m,i as f,j as b,k as u,l as g}from"./p-C0wTyoTh.js";import{T as l}from"./p-CZfYo5-1.js";import{t as j,a as y}from"./p-ClvhB3WW.js";import{o as k,g as C}from"./p-Dieke6TH.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-xDbRW9xn.js";import"./p-h5pyZngT.js";import"./p-hbWSMN3O.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:l.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:l.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:l.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new a(this.terminals,this.columns,j,y),this.getTerminals&&this.getSubAccounts&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:s})=>{this.terminals=t,this.paging=s,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get terminalParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(g,{key:"dd5f6ca2944a4c612c5a99e7e70b64240ff77890"},e(r,{key:"05c34cdbf22ec62b04165259fc456b8f7f94e166"},e(h,{key:"9d55c62444326c96a8cf81f2237d6bd16ecef155"},e(o,{key:"a0f923fb4937dad46d37085f15b93097aa9453bb"},this.terminalsTable.columnData.map((t=>t)))),e(c,{key:"bb82808aaf16e572b90e09f9666384907317c617"},e(n,{key:"a5fad3901302bd468c1e8e312eb3fadedee709c4",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"f954dda201865b55141e9288219729561fc22240",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(d,{key:"8fce08061353a7ed9d5f364489cce99fb934e36c",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((t,s)=>e(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"e62da6a0cfca1447dce0e65999ecaee501cb1060"},e(b,{key:"12e0ac4fb55a6cb9960a4bc69296addccc629b54"},e(u,{key:"4024dfbee9409a2b1e9d22272ba23ed16c0afbe8",colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"201eb194b2f8c620b5a775d7e2077c8e33de8aa2",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{v as terminals_list_core}
@@ -0,0 +1 @@
1
+ import{h as s,r as i,c as t}from"./p-DOjVAAtq.js";import{c as r,F as e}from"./p-DiJD6Iqx.js";import{b as o,a}from"./p-C9iide2W.js";import{i as p,a as h}from"./p-tYuXMkCd.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import{C as n,a as l}from"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import{B as m,b as d}from"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c,J as j}from"./p-CoBppUkq.js";import{B as u}from"./p-C9EQ459H.js";import{S as f}from"./p-BhCH9S0e.js";import{H as v}from"./p-RQzxYnz_.js";import"./p-CZfYo5-1.js";import{S as b}from"./p-T2yENPvU.js";import{B as C}from"./p-XYgDHrVL.js";import{m as g,b as w}from"./p-5aA7gjr5.js";import{B}from"./p-DQZ5VHTZ.js";import"./p-BFTU3MAI.js";import"./p-PSJOKMWp.js";import"./p-BX8GieXu.js";import"./p-yH3TC3ZQ.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-Dt-vy9Le.js";import"./p-BXUY63ga.js";import"./p-DdZLLkQ5.js";import"./p-xDbRW9xn.js";import"./p-D2muobcE.js";const x=r(Object.assign(Object.assign({},o().fields),{legal_address:h(),additional_questions:a(),representative:p("representative")})),y=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(b,{width:"25%"})),s("div",{class:"col-12"},s(b,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"50%"}),s(b,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"65%"}),s(b,{width:"35%"}))),k=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(b,{width:"40%",height:"40px"})),s(y,null),s(y,null),s(y,null)),D=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event"),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const i=new m(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new m(Object.assign(Object.assign({},i),s)).payload;this.patchBusiness({payload:t,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){c(),this.analytics=new j(this),this.formController=new e(x),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=g({authToken:this.authToken,businessId:this.businessId,service:new B}),this.patchBusiness=w({authToken:this.authToken,businessId:this.businessId,service:new B}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:l.MISSING_PROPS,severity:n.ERROR})}handleReponse(s){s.error&&(this.errorMessage=d.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(f,null,this.isLoading?s(k,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(v,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(u,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:C.submit}),isLoading:this.isSaving},"Submit")))))}};export{D as justifi_business_form}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-DOjVAAtq.js";import{u as d,a as t,b as c}from"./p-1ydcg9ti.js";import{P as s,S as l}from"./p-B-iV5cYd.js";import{G as o}from"./p-xDbRW9xn.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const i=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{d(this.formController,{[e]:a})},this.onAddressFormUpdate=e=>{t(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,d,t,i,r,f,n;return a("form",{key:"a2c558b8a6b66d7257fa86ef5f9c1d56a7a273db"},a("fieldset",{key:"23cb7f2debd4692c39cfe2311ce0d2549ca94ebc"},a("div",{key:"0c6e94b6a9da6924673f5ebeed93f237ff22a013",class:"d-flex align-items-center gap-2"},a("legend",{key:"a165d7dc17dddde2d6ce35af9d836a989f02ffaf",class:"mb-0",part:o},"Representative"),a("form-control-tooltip",{key:"5c2c29ae9ea82acc6c923c870f4ece5db5e7afb9",helpText:"The representative for your business needs to be someone who has significant control over managing your business’s finance. You will have an opportunity to add owners later in the form."})),a("hr",{key:"bc481e820461c6ec2088f2879cb9a5837ed02884",class:"mt-2"}),a("div",{key:"ff4b0731213ddc42ebabb79d49984b83d376f742",class:"row gy-3"},a("div",{key:"99cac91d3657bce68ce97028342d49cb8a2bb314",class:"col-12 col-md-8"},a("form-control-text",{key:"534e81b075f732ae3953d8f904199d61a43de4bb",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"6070fdff99a868b50deb59c9d006d3c4775a50bd",class:"col-12 col-md-4"},a("form-control-text",{key:"c92477cc30c5a9c7d99842dff2855edce67185f9",name:"title",label:"Title",defaultValue:null===(d=this.representativeDefaultValue)||void 0===d?void 0:d.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),a("div",{key:"14d953417a1ec0292d75251b37b580361def0fb3",class:"col-12 col-md-6"},a("form-control-text",{key:"42562735066b104619b8aa4da966aaec462f177b",name:"email",label:"Email Address",defaultValue:null===(t=this.representativeDefaultValue)||void 0===t?void 0:t.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"cb7f6173a31fac67edf74844f0807ea94446c59b",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"42b0833d545243c11f515d320aac5408bb744e89",name:"phone",label:"Phone Number",defaultValue:null===(i=this.representativeDefaultValue)||void 0===i?void 0:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:s.US})),a("div",{key:"a9468f20a7d832ae44d771c3b8913c32cf0ef2ab",class:"col-12 col-md-4"},a("form-control-date",{key:"1f739c1d3bb814710ee159740e459bde72a0e790",name:"dob_full",label:"Birth Date",defaultValue:null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>c(e,this.formController),helpText:"Must be 18 or older."})),a("div",{key:"e2ecd87320422e1712138115291016f8c1c61ac2",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"dd91ffa7877d84cfe315849d18c7cec5bf79b1de",name:"identification_number",label:"SSN",defaultValue:null===(f=this.representativeDefaultValue)||void 0===f?void 0:f.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:l,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),a("div",{key:"ef502c55424287c5c81ca88593f5836d21a2f945",class:"col-12"},a("justifi-identity-address-form",{key:"26295cbccf0ca23415b4d7c12dc42eb2dbb0d229",errors:this.errors.address,defaultValues:null===(n=this.representativeDefaultValue)||void 0===n?void 0:n.address,handleFormUpdate:this.onAddressFormUpdate})))))}};export{i as justifi_business_representative_form_inputs}
@@ -0,0 +1 @@
1
+ import{A as t}from"./p-DdZLLkQ5.js";import"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.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}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-DOjVAAtq.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as i,c as r}from"./p-Dieke6TH.js";import{y as l,z as p,A as o,B as d}from"./p-xDbRW9xn.js";import{S as c}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import"./p-a6tcNl_T.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import{c as f}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import"./p-BFTU3MAI.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const n=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({terminal_id:this.terminalId,status:this.terminalStatus,terminal_order_id:this.terminalOrderId}).forEach((([e,a])=>{a&&(i[e]=a)}))}get terminalStatusOptions(){return[{label:"All",value:""},{label:"Connected",value:f.connected},{label:"Disconnected",value:f.disconnected},{label:"Unknown",value:f.unknown},{label:"Pending Configuration",value:f.pending_configuration},{label:"Archived",value:f.archived}]}render(){const e=Object.assign({},s);return a(c,{key:"ff589964b6a6e9f98e1ce5c5538f6232d7f27b38"},a("table-filters-menu",{key:"b852fcce0b550540854a7126ba5071a22fa24d7e",params:e,clearParams:r,part:l},a("div",{key:"2a9d87170758781716319130c15472c227753a1d",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"ff7361cf9423a78c4131884a5c39824fab07f859",class:"p-2"},a("form-control-text",{key:"c06940487feba178c67b343addedd3f8ed5f34ed",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:p})),a("div",{key:"a6602193febe8240e611dbaf3476791c623e925e",class:"p-2"},a("form-control-text",{key:"ae327625b6fcf26ff02bd6bfae61af933cd9c771",name:"terminal_order_id",label:"Terminal Order ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalOrderId||s.terminal_order_id,disabled:!!this.terminalOrderId,part:o})),a("div",{key:"3cdc430a8e360df60ca2d14c36df61570f7a0733",class:"p-2"},a("form-control-select",{key:"71c43207f34d39a7207197e4a3e907f84988c1c4",name:"status",label:"Status",options:this.terminalStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.terminalStatus||s.status||"",disabled:!!this.terminalStatus,part:d})))))}};export{n as justifi_terminals_list_filters}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as s}from"./p-DOjVAAtq.js";import{f as i}from"./p-Bgnhf5c9.js";import{D as a,aj as r}from"./p-xDbRW9xn.js";import{B as d}from"./p-C9EQ459H.js";import{S as o}from"./p-BhCH9S0e.js";import{S as c}from"./p-T2yENPvU.js";import"./p-CZfYo5-1.js";import{C as n,a as h}from"./p-Cjcsf8ku.js";import{g as p,a as f}from"./p-D2muobcE.js";import{D as l}from"./p-C8k7a6D-.js";import{D as u}from"./p-Bg2SZArf.js";import{c as b,J as y}from"./p-CoBppUkq.js";import"./p-HXpYMWUU.js";import"./p-DdZLLkQ5.js";import"./p-a6tcNl_T.js";import"./p-DdMxswn1.js";import"./p-C98BC5W5.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BXUY63ga.js";const m=({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.submitDisputeResponse(t,e,i);if(d.error){return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR})}a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}},v=class{constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event")}acceptDispute(){m({disputeId:this.dispute.id,authToken:this.authToken,service:new l})({payload:{forfeit:!0},onSuccess:e=>{this.submitEvent.emit({response:e})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}})}initiateRespondToDispute(){this.clickEvent.emit({name:u.respondToDispute})}render(){var e,t,n,h,p,f,l;return s(o,{key:"ab36fe0292ebcc4d2f062898065c135b869be67a"},this.isLoading&&s("div",{key:"8cff4628d911c7119b0f8d1612e99caad526746c",style:{marginBottom:"8px"}},s(c,{key:"ee3bce3019778f5e481ae26ada89e70090671b37",height:"28px",width:"70%",styles:{marginBottom:"16px"}}),s(c,{key:"242cbb756770f1545d09f5e79c539683158acaa6",height:"18px",styles:{marginBottom:"8px"}}),s(c,{key:"409e7d228cb414ed458959107ba5ba2fe38eed72",height:"18px",styles:{marginBottom:"8px"}})),(null===(e=this.dispute)||void 0===e?void 0:e.needsResponse)&&s("div",{key:"8ba65861b311e2020f52ee38f0303b19c4b8b386",part:a},s("h1",{key:"9f62e7a3144e50a0980d5e3ea2a1e078ec8e9d0b",class:"h4",part:r},"This payment is disputed"),s("p",{key:"533af5d2cc8cba530812d247f60ad7a92e4a36a3"},"The cardholder is disputing this payment. You may accept this dispute, or proceed to provide evidence in a counter dispute."),s("h2",{key:"cf842a85853e34e3b1a38674d36bd0a4705ff5e0",class:"h5"},"Dispute details"),s("div",{key:"cd3bcc4861a2ba4a576638d9a0e86927ff4d7123",class:"d-table gap-2"},s("div",{key:"1bd4ce368992bf9d6855a301e0b249c68a98471c",class:"d-table-row gap-2"},s("span",{key:"18845a901fcd0bff4480b780bbcf35fc171f4b0b",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Amount"),s("span",{key:"75533ed5fd445f69a4967a6625cab5badc5766a3",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},i(null===(t=this.dispute)||void 0===t?void 0:t.amount))),s("div",{key:"5c0974a223983b19150230544d4c3b4154747de2",class:"d-table-row gap-2"},s("span",{key:"7d09c4fdbc0b5f38f15d78b3c325e256d29136dc",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Reason"),s("span",{key:"2379e217700a07a388650f7ca82ca5a420175dd9",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(n=this.dispute)||void 0===n?void 0:n.reason)),s("div",{key:"c4b5ad2e540d0ab61ff29b2913344ed055a56618",class:"d-table-row gap-2"},s("span",{key:"2f32326e0067d8d8ac734ba9f16b6aee0e774cc2",part:"detail-section-item-title",class:"fw-bold d-table-cell pe-4"},"Due Date"),s("span",{key:"823b0d79ad2c77ef68c27300a5b8f539bfa66b30",part:"detail-section-item-data",class:"flex-1 d-table-cell text-wrap"},null===(h=this.dispute)||void 0===h?void 0:h.due_date))),s("div",{key:"8a0cca3f006564da1feee39e06b3e322cd2773fc",class:"d-flex gap-2 mt-4 justify-content-end"},s(d,{key:"07d7ba81e9353183148c9892ea8016537095b078",variant:"secondary",onClick:()=>this.acceptDispute()},"Accept dispute"),s(d,{key:"05d437f6711fae2398f865fdaeb6908327f8b68b",variant:"primary",onClick:()=>this.initiateRespondToDispute()},"Counter dispute"))),(null===(p=this.dispute)||void 0===p?void 0:p.underReview)&&s("div",{key:"4ca58f734515deb7c713c13a2f69f0f42d52f706"},s("h1",{key:"65f92415880cc2fb39b7b2753df960ec10437455",class:"h4"},"This payment is disputed and under review"),s("p",{key:"8129f146f956db43378b672f68a9edeec9374401"},"The cardholder is disputing this payment. A counter dispute has been submitted and is under review.")),(null===(f=this.dispute)||void 0===f?void 0:f.won)&&s("div",{key:"85acb2724f46424856bf4fc885bd1553539ce2be"},s("h1",{key:"7ce9b3ed57a5c3cd904d1c706044091fbda3dc03",class:"h4"},"This payment was disputed"),s("p",{key:"6a92fd3be617562d1ba10192ec508354a9450150"},"The cardholder disputed this payment and the card issuer has settled it in your favor.")),(null===(l=this.dispute)||void 0===l?void 0:l.lost)&&s("div",{key:"8e45676c7909732bee12f707297987b927b9526c"},s("h1",{key:"f64abd54f60a63e0ff6888beecc74050e2f860db",class:"h4"},"This payment was disputed"),s("p",{key:"bd2e689d5de42468b67259573b8289835c4acc5e"},"The cardholder disputed this payment and the card issuer has settled it in their favor.")))}},k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.apiOrigin="https://wc-proxy.justifi.ai",this.handleErrorEvent=e=>{this.errorMessage=e.detail.message,this.errorEvent.emit(e.detail)}}componentWillLoad(){b(),this.analytics=new y(this),this.initializeDisputeServiceMethods()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeDisputeServiceMethods()}initializeDisputeServiceMethods(){this.disputeId&&this.authToken?(this.updateDisputeResponse=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.updateDisputeResponse(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.createDisputeEvidence=(({authToken:e,disputeId:t,service:s})=>async({payload:i,onSuccess:a,onError:r,final:d=()=>{}})=>{var o;try{const d=await s.createDisputeEvidence(t,e,i);if(d.error)return r({error:f(d.error),code:p(null===(o=d.error)||void 0===o?void 0:o.code),severity:n.ERROR});a(d)}catch(e){const t=p(null==e?void 0:e.code);return r({error:e.message||e,code:t,severity:n.ERROR})}finally{return d()}})({disputeId:this.disputeId,authToken:this.authToken,service:new l}),this.submitDisputeResponse=m({disputeId:this.disputeId,authToken:this.authToken,service:new l})):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:h.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}render(){return s(o,{key:"62d1cf5247d9049fd5aa66d13c64ef1b16625f46"},s("justifi-dispute-response-core",{key:"b5903023092984d31135dcd037850d66acc860df","onError-event":this.handleErrorEvent,"dispute-id":this.disputeId,disputeResponse:this.disputeResponse,createDisputeEvidence:this.createDisputeEvidence,updateDisputeResponse:this.updateDisputeResponse,submitDisputeResponse:this.submitDisputeResponse}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}},j=class{constructor(i){e(this,i),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.stepCompleteEvent=t(this,"complete-form-step-event"),this.submitEvent=t(this,"submit-event"),this.disputeResponse={},this.isLoading=!1,this.documentList=[],this.documentErrors={},this.currentStep=0,this.componentStepMapping=[()=>s("justifi-product-or-service",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-customer-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-cancellation-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-refund-policy",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-duplicate-charge",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-electronic-evidence",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-shipping-details",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors}),()=>s("justifi-additional-statement",{ref:e=>this.currentStepComponentRef=e,disputeResponse:this.disputeResponse,documentErrors:this.documentErrors})],this.saveData=async(e,t)=>{if(Object.keys(e).length)return this.isLastStep?this.submitDisputeResponse({payload:e,onSuccess:e=>{this.submitEvent.emit({response:e}),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}}):this.updateDisputeResponse({payload:e,onSuccess:e=>{this.disputeResponse=Object.assign({},e.data),this.stepCompleteEvent.emit({response:e,formStep:t})},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({errorCode:t,message:e,severity:s})}});this.stepCompleteEvent.emit({response:null,formStep:t})},this.initializeMakePresignedURLs=async()=>{const e=this.documentList.map((e=>this.getPresignedFileUrl(e)));return await Promise.all(e)},this.initializeFileUploads=async()=>{const e=this.documentList.map((e=>this.uploadDocument(e)));return Promise.all(e)},this.getPresignedFileUrl=async e=>this.createDisputeEvidence({payload:{file_name:e.file_name,file_type:e.file_type,dispute_evidence_type:e.dispute_evidence_type},onSuccess:t=>{e.presignedUrl=t.data.presigned_url},onError:({error:t,code:s,severity:i})=>{const a={[e.dispute_evidence_type]:t};this.documentErrors=Object.assign(Object.assign({},this.documentErrors),a),this.errorEvent.emit({errorCode:s,message:t,severity:i})}}),this.uploadDocument=async e=>{const t=await e.getFileString();if(!e.presignedUrl)throw new Error("Presigned URL is not set");return await fetch(e.presignedUrl,{method:"PUT",body:t})},this.handleSubmit=async(e,t,s)=>{if(this.isLoading=!0,t.length){if(this.documentErrors={},this.documentList=t,await this.initializeMakePresignedURLs(),Object.keys(this.documentErrors).length)throw this.isLoading=!1,new Error("Could not presign all documents");await this.initializeFileUploads()}await this.saveData(e,s),this.isLoading=!1},this.onCancel=()=>{this.clickEvent.emit({name:u.cancelDispute})},this.onBack=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.previousStep}),await this.handleSubmit(e,t,s),this.currentStep--}))},this.onNext=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.nextStep}),await this.handleSubmit(e,t,s),this.currentStep++}))},this.onSubmit=async()=>{await this.currentStepComponentRef.validateAndSubmit((async(e,t,s)=>{this.clickEvent.emit({name:u.submit});const i=Object.assign(Object.assign({},e),{forfeit:!1});await this.handleSubmit(i,t,s)}))}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}get isLastStep(){return this.currentStep===this.componentStepMapping.length-1}get isFirstStep(){return 0===this.currentStep}render(){return s("div",{key:"b57563a641ae4f1be39f5f64ca88132b92aff3bd",class:"row gy-3"},s("div",{key:"72f86b4907aaa872db039783e06f38b5c9d26658",class:"col-12"},s("h1",{key:"62c570a4c30831bbc805e8cbad8d9e5d1433f5a5",class:"h4",part:r},"Counter dispute")),s("div",{key:"692d6386e5c4874a0c2585fca9ffd6194dc8ef85",class:"col-12"},this.currentStepComponent),s("div",{key:"a7b614f93994721ff45724cbb6ff42877ff55aeb",class:"col-12"},s("div",{key:"e6c66ca06f1eaab7baa10742246e0707d7ebd083",class:"d-flex gap-2 mt-4 justify-content-end"},this.isFirstStep?s(d,{variant:"secondary",onClick:()=>this.onCancel(),disabled:this.isLoading,isLoading:this.isLoading},"Cancel"):s(d,{variant:"secondary",onClick:()=>this.onBack(),disabled:this.isLoading,isLoading:this.isLoading},"Back"),this.isLastStep?s(d,{variant:"primary",onClick:()=>this.onSubmit(),disabled:this.isLoading,isLoading:this.isLoading},"Submit Counter Dispute"):s(d,{variant:"primary",onClick:()=>this.onNext(),disabled:this.isLoading,isLoading:this.isLoading},"Next"))))}};export{v as justifi_dispute_notification,k as justifi_dispute_response,j as justifi_dispute_response_core}
@@ -0,0 +1 @@
1
+ import{h as e,r as t,c as a}from"./p-DOjVAAtq.js";import{i as s,e as i,d}from"./p-Bgnhf5c9.js";import{a as c,b as f,D as o,c as r,C as l,E as h}from"./p-CH8Y3GSr.js";import{B as b}from"./p-C9EQ459H.js";import{S as n}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{M as p}from"./p-au49QgoI.js";import{S as y}from"./p-T2yENPvU.js";import{a as u,B as v}from"./p-hbWSMN3O.js";import"./p-HXpYMWUU.js";import"./p-xDbRW9xn.js";const m=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(y,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(y,{width:"70%"})),e("div",{class:"col-12"},e(y,{width:"40%"})),e("div",{class:"col-12"},e(y,{width:"40%"})),e("div",{class:"col-12"},e(y,{width:"100%"})),e("div",{class:"col-12"},e(y,{width:"80%"}))),k=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event"),this.recordClickEvent=a(this,"record-click-event"),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(){this.getPayout&&this.fetchData()}getPayoutWatcher(){this.fetchData()}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":s(e)}render(){var t;return e(n,{key:"d81fd85bbfa1c54175b4055cfed2eb62c7db1735"},this.loading&&e(m,{key:"37fca566131507232afc04332989545f81f21ace"}),!this.loading&&this.errorMessage&&h(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"2135970df52759def666f17297f055b90fc61274","error-message":this.errorMessage},e(c,{key:"12d9f81cea53ea7f8636c3ed249f994f13ae1389",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},p(null===(t=this.payout)||void 0===t?void 0:t.status),e(u,"expedited"===this.payout.settlement_priority?{variant:v.WARNING,title:"Expedited",text:"Expedited"}:{variant:v.SECONDARY,title:"Standard",text:"Standard"})),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(f,{key:"d3f061a66f4dd3bfee92e5de3b2ba8f245853c85",classes:"border-1 border-end",title:"Updated At",value:`${i(this.payout.updated_at)} ${d(this.payout.updated_at)}`}),e(f,{key:"292267e98b0e12ef4fd365c0c972f9eccba0df09",classes:"border-1 border-end",title:"Created At",value:`${i(this.payout.created_at)} ${d(this.payout.created_at)}`}),e(f,{key:"0ca068bb4c8c2dea86feff59916b42871de799e7",title:"ID",value:this.payout.id}),e("div",{key:"a97d286bf5eafce9cfbf81c6e7f62bb4e7b0849f",class:"m-4"},e(b,{key:"8a026a6f3819519815148115ffed876c18e37142",variant:"secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"66520ccf02a84b4523552de31d43e2b5c75e16ae",slot:"detail-sections"},e(o,{key:"27e9caef31af8e5d89141b5c0265e6ee9183809e",sectionTitle:"Details"}),e("div",{key:"2cb15bde0c567667978f482a55753c1355a359b9",class:"d-flex flex-column gap-2 w-100"},e(r,{key:"5fe197ecc8f1aa79786a8da0092e7962095336a1",title:"Date paid",value:i(this.payout.deposits_at)}),e(r,{key:"50d667f0b575e89b712832b3d70026c422119308",title:"Statement Description",value:this.payout.description}),e(r,{key:"28f753d09ca0434ef6e913baa1c95e977657bdfe",title:"Payout Method",value:this.formatMethod(this.payout.delivery_method)}),e(r,{key:"84eb131bc5493293e75d0c5eb5cf69379769843d",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(r,{key:"0fd9fc497e076165b9e5a70b385fdde44d9290fb",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(o,{key:"29b8ef5d56c77bc44bf0809acf3bf7235a5f678d",sectionTitle:"Account"}),e("div",{key:"49104b277fe2c27a28326bc6e84aa76713f355a5",class:"d-flex flex-column gap-2 w-100"},e(r,{key:"7e8f4b347227c73ebfb28a3846c994943dc22b14",title:"ID",value:this.payout.account_id,onClick:this.enableRecordClick?()=>this.handleRecordClick(this.payout.account_id):void 0}),e(r,{key:"594d4853374fdacde8c38c9409abe593acf3d1d8",title:"Account Type",value:this.payout.bank_account.account_type}),e(r,{key:"86198dd9f123775d687df6a7efa7b17fae6f7fc0",title:"Institution",value:this.payout.bank_account.account_type}),e(r,{key:"ff5840da92dc48469915698937c52be1be6573f3",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(r,{key:"dae3be8251b99e92c14d19151f7fcf43e7d79d2b",title:"Account Number",value:`**** ${this.payout.bank_account.account_number_last4}`})),this.payout.metadata&&[e(o,{key:"ab9280b8f08bfa10492d86d73d7fcc054602c23b",sectionTitle:"Metadata"}),e("div",{key:"91326afd6edbd573802684fa8518d6738cbcf4ff",class:"d-table gap-2 w-100"},e(l,{key:"7ac4be5f733114b2257eade5c315583b09643390",metadata:this.payout.metadata}))])))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{k as payout_details_core}
@@ -1 +1 @@
1
- import{r as s,c as t,h as r}from"./p-DyGx8Avl.js";import{A as o}from"./p-B63vgBnY.js";import{C as i,a as e}from"./p-Cjcsf8ku.js";import"./p-BrUSZwNP.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as p}from"./p-D2muobcE.js";import{E as n}from"./p-DO3DK7hp.js";import{c,J as h}from"./p-Bao2wCms.js";import"./p-DMEQUc2C.js";import"./p-CTqY6NgS.js";import"./p-BHf9IqGw.js";import"./p-HXpYMWUU.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-CyVecSBV.js";const m=o();class u{async fetchGrossVolumeChartData(s,t){return m.get({endpoint:`account/${s}/reports/gross_volume`,authToken:t})}}const d=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){c(),this.analytics=new h(this),this.initializeGetGrossPayment()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:o,onError:e})=>{var n;try{const c=await r.fetchGrossVolumeChartData(s,t);c.error?e({error:p(c.error),code:a(null===(n=c.error)||void 0===n?void 0:n.code),severity:i.ERROR}):o(c.data)}catch(s){const t=a(null==s?void 0:s.code);e({error:p(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_gross_payment_chart}
1
+ import{r as s,c as t,h as r}from"./p-DOjVAAtq.js";import{A as o}from"./p-DdZLLkQ5.js";import{C as i,a as e}from"./p-Cjcsf8ku.js";import"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as a,a as p}from"./p-D2muobcE.js";import{E as n}from"./p-CH8Y3GSr.js";import{c,J as h}from"./p-CoBppUkq.js";import"./p-a6tcNl_T.js";import"./p-DdMxswn1.js";import"./p-Bgnhf5c9.js";import"./p-HXpYMWUU.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-xDbRW9xn.js";import"./p-BXUY63ga.js";const m=o();class u{async fetchGrossVolumeChartData(s,t){return m.get({endpoint:`account/${s}/reports/gross_volume`,authToken:t})}}const d=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){c(),this.analytics=new h(this),this.initializeGetGrossPayment()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:o,onError:e})=>{var n;try{const c=await r.fetchGrossVolumeChartData(s,t);c.error?e({error:p(c.error),code:a(null===(n=c.error)||void 0===n?void 0:n.code),severity:i.ERROR}):o(c.data)}catch(s){const t=a(null==s?void 0:s.code);e({error:p(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{d as justifi_gross_payment_chart}
@@ -1 +1 @@
1
- import{h as t,r as s,c as e}from"./p-DyGx8Avl.js";import{c as r,a as i,F as o}from"./p-DiJD6Iqx.js";import{f as n}from"./p-BHf9IqGw.js";import"./p-DMEQUc2C.js";import{C as a,a as u}from"./p-Cjcsf8ku.js";import{R as l,k as m}from"./p-BrUSZwNP.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{B as h}from"./p-wyo7gH76.js";import{S as p}from"./p-BzUsLFRB.js";import"./p-CZfYo5-1.js";import{P as c}from"./p-B2zYNTMd.js";import{m as d}from"./p-TLJ8o8BU.js";import{c as f,J as v}from"./p-Bao2wCms.js";import{g as j,a as y}from"./p-D2muobcE.js";import{A as b}from"./p-B63vgBnY.js";import{S as w}from"./p-DPWdvb1b.js";import"./p-BFTU3MAI.js";import"./p-HXpYMWUU.js";import"./p-CTqY6NgS.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-RvUQ__Pq.js";import"./p-CyVecSBV.js";const B=t=>{const s=+t;return i().required("Amount is required").test("max-amount",`Refund amount cannot be more than payment amount: ${n(s)}`,(function(t){return+t<=+s})).test("min-amount","Refund amount must be greater than 0",(function(t){return+t>0}))},g=t=>{if(t)return r({amount:B(t),description:i().optional(),reason:i().optional().oneOf([l.customerRequest,l.duplicate,l.fraudulent],"Select a reason")})},C=[{label:"Select a reason",value:""},{label:"Customer requested a refund",value:"customer_request"},{label:"Customer was double-charged",value:"duplicate"},{label:"Payment was reported as fraud",value:"fraudulent"}],x=b();class T{async postRefund(t,s,e,r){return x.post({endpoint:`payments/${t}/refunds`,headers:{"Sub-Account":s},body:r,authToken:e})}}const A=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"100%",height:"40px"}))),S=()=>t(p,null,t("div",{class:"row gap-5"},t(A,null),t(A,null),t(A,null))),R=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event"),this.submitEvent=e(this,"submit-event"),this.refundPayload={},this.displayAmount="",this.errors={},this.paymentLoading=!0,this.refundLoading=!1,this.hideSubmitButton=!1,this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}componentWillLoad(){f(),this.analytics=new v(this),this.initializeApi(),this.formController=new o(g())}handleError(t,s,e){this.errorEvent.emit({errorCode:t,message:s,severity:e})}checkAmount(t){return t>0}handleInvalidAmount(){this.submitDisabled=!0,this.handleError(u.INVALID_REFUND_AMOUNT,"Refund amount must be greater than 0",a.ERROR)}initializeFormController(){const t=this.refundPayload.amount,s=t?t.toString():"0";this.formController=new o(g(s)),this.formController.setInitialValues({amount:s}),this.formController.values.subscribe((t=>{this.refundPayload=Object.assign({},t)})),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.paymentId&&this.authToken?d({id:this.paymentId,authToken:this.authToken,service:new c})({onSuccess:({payment:t})=>{this.refundPayload=new m({amount:t.amount_refundable})},onError:({error:t,code:s,severity:e})=>{this.handleError(s,t,e)},final:()=>{this.checkAmount(this.refundPayload.amount)?this.initializeFormController():this.handleInvalidAmount(),this.paymentLoading=!1}}):this.handleError(u.MISSING_PROPS,"Payment ID and Auth Token are required",a.ERROR)}async refundPayment(t){if(t&&t.preventDefault(),!await this.formController.validate())return;const s=(({authToken:t,accountId:s,paymentId:e,service:r})=>async({refundBody:i,onSuccess:o,onError:n,final:u})=>{var l;try{const u=await r.postRefund(e,s,t,i);if(u.error)return n({error:y(u.error),code:j(null===(l=u.error)||void 0===l?void 0:l.code),severity:a.ERROR});o(u)}catch(t){const s=j(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:a.ERROR})}finally{return u()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new T}),e=this.formController.values.getValue();return this.refundLoading=!0,new Promise((t=>{let r;s({refundBody:e,onSuccess:t=>{r=t},onError:({error:t,code:s,severity:e})=>{r=t,this.handleError(t,s,e)},final:()=>{this.submitEvent.emit({response:r}),this.submitDisabled=!0,this.refundLoading=!1,t(r.data)}})}))}render(){if(this.paymentLoading)return t(S,null);const s=this.formController.getInitialValues(),e=this.refundPayload.amount;return t(p,null,t("form",null,t("fieldset",null,t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-monetary",{name:"amount",label:"Refund Amount",defaultValue:s.amount,inputHandler:this.inputHandler,errorText:this.errors.amount})),t("div",{class:"col-12"},t("form-control-select",{name:"reason",label:"Reason for refund (optional)",defaultValue:s.reason,inputHandler:this.inputHandler,options:C,errorText:this.errors.reason})),t("div",{class:"col-12"},t("form-control-textarea",{name:"description",label:"Note (optional)",defaultValue:s.description,inputHandler:this.inputHandler,maxLength:250,errorText:this.errors.description})),t("div",{class:"form-group d-flex flex-row-reverse"},t(h,{variant:"primary",type:"submit",onClick:this.refundPayment.bind(this),isLoading:this.paymentLoading||this.refundLoading,hidden:this.hideSubmitButton,disabled:this.submitDisabled},`Refund ${n(+e)}`))))))}};export{R as justifi_refund_payment}
1
+ import{h as t,r as s,c as e}from"./p-DOjVAAtq.js";import{c as r,a as i,F as o}from"./p-DiJD6Iqx.js";import{f as n}from"./p-Bgnhf5c9.js";import"./p-a6tcNl_T.js";import{C as a,a as u}from"./p-Cjcsf8ku.js";import{R as l,k as m}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{B as h}from"./p-C9EQ459H.js";import{S as p}from"./p-BhCH9S0e.js";import"./p-CZfYo5-1.js";import{P as c}from"./p-BjNuRWXK.js";import{m as d}from"./p-DWn9BiNn.js";import{c as f,J as j}from"./p-CoBppUkq.js";import{g as v,a as y}from"./p-D2muobcE.js";import{A as b}from"./p-DdZLLkQ5.js";import{S as w}from"./p-T2yENPvU.js";import"./p-BFTU3MAI.js";import"./p-HXpYMWUU.js";import"./p-DdMxswn1.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-xDbRW9xn.js";import"./p-BXUY63ga.js";const g=t=>{const s=+t;return i().required("Amount is required").test("max-amount",`Refund amount cannot be more than payment amount: ${n(s)}`,(function(t){return+t<=+s})).test("min-amount","Refund amount must be greater than 0",(function(t){return+t>0}))},x=t=>{if(t)return r({amount:g(t),description:i().optional(),reason:i().optional().oneOf([l.customerRequest,l.duplicate,l.fraudulent],"Select a reason")})},B=[{label:"Select a reason",value:""},{label:"Customer requested a refund",value:"customer_request"},{label:"Customer was double-charged",value:"duplicate"},{label:"Payment was reported as fraud",value:"fraudulent"}],C=b();class A{async postRefund(t,s,e,r){return C.post({endpoint:`payments/${t}/refunds`,headers:{"Sub-Account":s},body:r,authToken:e})}}const k=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"100%",height:"40px"}))),T=()=>t(p,null,t("div",{class:"row gap-5"},t(k,null),t(k,null),t(k,null))),D=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event"),this.submitEvent=e(this,"submit-event"),this.refundPayload={},this.displayAmount="",this.errors={},this.paymentLoading=!0,this.refundLoading=!1,this.hideSubmitButton=!1,this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}componentWillLoad(){f(),this.analytics=new j(this),this.initializeApi(),this.formController=new o(x())}handleError(t,s,e){this.errorEvent.emit({errorCode:t,message:s,severity:e})}checkAmount(t){return t>0}handleInvalidAmount(){this.submitDisabled=!0,this.handleError(u.INVALID_REFUND_AMOUNT,"Refund amount must be greater than 0",a.ERROR)}initializeFormController(){const t=this.refundPayload.amount,s=t?t.toString():"0";this.formController=new o(x(s)),this.formController.setInitialValues({amount:s}),this.formController.values.subscribe((t=>{this.refundPayload=Object.assign({},t)})),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.paymentId&&this.authToken?d({id:this.paymentId,authToken:this.authToken,service:new c})({onSuccess:({payment:t})=>{this.refundPayload=new m({amount:t.amount_refundable})},onError:({error:t,code:s,severity:e})=>{this.handleError(s,t,e)},final:()=>{this.checkAmount(this.refundPayload.amount)?this.initializeFormController():this.handleInvalidAmount(),this.paymentLoading=!1}}):this.handleError(u.MISSING_PROPS,"Payment ID and Auth Token are required",a.ERROR)}async refundPayment(t){if(t&&t.preventDefault(),!await this.formController.validate())return;const s=(({authToken:t,accountId:s,paymentId:e,service:r})=>async({refundBody:i,onSuccess:o,onError:n,final:u})=>{var l;try{const u=await r.postRefund(e,s,t,i);if(u.error)return n({error:y(u.error),code:v(null===(l=u.error)||void 0===l?void 0:l.code),severity:a.ERROR});o(u)}catch(t){const s=v(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:a.ERROR})}finally{return u()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new A}),e=this.formController.values.getValue();return this.refundLoading=!0,new Promise((t=>{let r;s({refundBody:e,onSuccess:t=>{r=t},onError:({error:t,code:s,severity:e})=>{r=t,this.handleError(t,s,e)},final:()=>{this.submitEvent.emit({response:r}),this.submitDisabled=!0,this.refundLoading=!1,t(r.data)}})}))}render(){if(this.paymentLoading)return t(T,null);const s=this.formController.getInitialValues(),e=this.refundPayload.amount;return t(p,null,t("form",null,t("fieldset",null,t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-monetary",{name:"amount",label:"Refund Amount",defaultValue:s.amount,inputHandler:this.inputHandler,errorText:this.errors.amount})),t("div",{class:"col-12"},t("form-control-select",{name:"reason",label:"Reason for refund (optional)",defaultValue:s.reason,inputHandler:this.inputHandler,options:B,errorText:this.errors.reason})),t("div",{class:"col-12"},t("form-control-textarea",{name:"description",label:"Note (optional)",defaultValue:s.description,inputHandler:this.inputHandler,maxLength:250,errorText:this.errors.description})),t("div",{class:"form-group d-flex flex-row-reverse"},t(h,{variant:"primary",type:"submit",onClick:this.refundPayment.bind(this),isLoading:this.paymentLoading||this.refundLoading,hidden:this.hideSubmitButton,disabled:this.submitDisabled},`Refund ${n(+e)}`))))))}};export{D as justifi_refund_payment}
@@ -1 +1 @@
1
- import{r as s,c as t,h as e}from"./p-DyGx8Avl.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{c as o}from"./p-Dt-vy9Le.js";import{z as h}from"./p-RvUQ__Pq.js";import{S as n}from"./p-BzUsLFRB.js";import{H as a}from"./p-xgpMjz3-.js";import"./p-CZfYo5-1.js";import{B as c}from"./p-XYgDHrVL.js";import"./p-BX8GieXu.js";const d=class{constructor(e){s(this,e),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event"),this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.allowOptionalFields=!1,this.setBusinessProvisioned=()=>{this.getBusiness({onSuccess:s=>{this.businessProvisioned=o(s.data),this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:r.PROVISIONING_REQUESTED,severity:i.INFO})},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:e})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:c.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}handleFormCompleted(){this.postProvisioningData()}componentWillLoad(){this.getBusiness&&this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return e(n,{key:"621b616a3b9d5be0fcc1180dcdb0db6a89ec5aa2"},e("div",{key:"b51c6814bb81a6cdc6cd0c5ede4d485582f154ee",class:"row gap-3"},e(a,{key:"7c03561b4c2b0cfc237d6b933aeffe532f35b626",text:this.formTitle}),e("justifi-payment-provisioning-form-steps",{key:"b616b52cc9a0057f27ddbae1356710cee05c60fa",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,handleFormLoading:this.handleFormLoading}),e("div",{key:"2447bad174b5d32d253e821e76ebb32fb9ec50e3",class:"d-flex justify-content-between align-items-center"},e("div",{key:"d746b5275ae0866a8619f67fe00217916153ea0a",class:"d-flex align-items-center",part:h},this.stepCounter),e("justifi-payment-provisioning-form-buttons",{key:"add808398005b6076d91788cc220ab6620f3ddfc",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{d as justifi_payment_provisioning_core}
1
+ import{r as s,c as t,h as e}from"./p-DOjVAAtq.js";import{C as i,a as r}from"./p-Cjcsf8ku.js";import{c as o}from"./p-Dt-vy9Le.js";import{D as h}from"./p-xDbRW9xn.js";import{S as a}from"./p-BhCH9S0e.js";import{H as n}from"./p-RQzxYnz_.js";import"./p-CZfYo5-1.js";import{B as d}from"./p-XYgDHrVL.js";import"./p-BX8GieXu.js";const p=class{constructor(e){s(this,e),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.submitEvent=t(this,"submit-event"),this.loading=!1,this.businessProvisioned=!1,this.currentStep=0,this.allowOptionalFields=!1,this.setBusinessProvisioned=()=>{this.getBusiness({onSuccess:s=>{this.businessProvisioned=o(s.data),this.businessProvisioned&&this.errorEvent.emit({message:"A request to provision payments for this business has already been submitted.",errorCode:r.PROVISIONING_REQUESTED,severity:i.INFO})},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.postProvisioningData=()=>{this.postProvisioning({onSuccess:s=>{this.submitEvent.emit({response:s})},onError:({error:s,code:t,severity:e})=>{this.submitEvent.emit({response:{error:s}}),this.errorEvent.emit({message:s,errorCode:t,severity:e})}})},this.refs=[],this.incrementSteps=()=>{if(this.currentStep<this.totalSteps)return this.currentStep++},this.decrementSteps=()=>this.currentStep--,this.previousStepButtonOnClick=()=>{this.clickEvent.emit({name:d.previousStep}),this.decrementSteps()},this.nextStepButtonOnClick=(s,t)=>{s.preventDefault(),this.clickEvent.emit({name:t}),this.refs[this.currentStep].validateAndSubmit({onSuccess:this.incrementSteps})}}handleFormCompleted(){this.postProvisioningData()}componentWillLoad(){this.getBusiness&&this.setBusinessProvisioned(),this.refs=[this.coreInfoRef,this.legalAddressRef,this.additionalQuestionsRef,this.representativeRef,this.ownersRef,this.bankAccountRef,this.termsRef]}get businessEndpoint(){return`entities/business/${this.businessId}`}get formDisabled(){return this.loading||this.businessProvisioned}get totalSteps(){return this.refs.length-1}get stepCounter(){return`${this.currentStep+1} of ${this.totalSteps+1}`}handleFormLoading(s){this.loading=s.detail}render(){return e(a,{key:"24a788f8930d61992cdfe9aaa22271e2b72b5a64"},e("div",{key:"1b6f7fea61b3df2dab251883deb92a5b2ab1746d",class:"row gap-3"},e(n,{key:"39f8f198de6f822c32efd5252cbbd207dc0ae619",text:this.formTitle}),e("justifi-payment-provisioning-form-steps",{key:"d37cb2952eba674fd928fffca80de684b5ae6c45",businessId:this.businessId,authToken:this.authToken,refs:this.refs,currentStep:this.currentStep,allowOptionalFields:this.allowOptionalFields,handleFormLoading:this.handleFormLoading}),e("div",{key:"8d4ab45ab2a4589a04d76602923d4bf68d0aed1b",class:"d-flex justify-content-between align-items-center"},e("div",{key:"b351fd2eaeb4481ca3d173b1dc98774a96a1af5b",class:"d-flex align-items-center",part:h},this.stepCounter),e("justifi-payment-provisioning-form-buttons",{key:"c4a7ac39c8e83b55353c83509f5d8b765af1d9b4",currentStep:this.currentStep,totalSteps:this.totalSteps,formLoading:this.loading,formDisabled:this.formDisabled,previousStepButtonOnClick:this.previousStepButtonOnClick,nextStepButtonOnClick:this.nextStepButtonOnClick}))))}};export{p as justifi_payment_provisioning_core}
@@ -1 +1 @@
1
- import{h as t}from"./p-DyGx8Avl.js";import{M as a}from"./p-lmpjoGKk.js";import{a as e}from"./p-BHf9IqGw.js";import{N as o,O as r}from"./p-RvUQ__Pq.js";const s="created_at,amount,status,payment_type,description,payers_name,last_four_digits,card_brand",p={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")},n={created_at:(a,o)=>t("td",{part:r(o)},t("div",{class:"fw-bold"},e(a.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},e(a.created_at,{showTime:!0}))),amount:(a,e)=>t("td",{part:r(e)},a.formattedPaymentAmount(a.amount)),status:(e,o)=>t("td",{part:r(o)},a(e.status)),payment_type:(a,e)=>t("td",{part:r(e)},a.payment_type),description:(a,e)=>t("td",{part:r(e)},a.description),payers_name:(a,e)=>t("td",{part:r(e)},a.payers_name),last_four_digits:(a,e)=>t("td",{part:r(e)},a.last_four_digits),card_brand:(a,e)=>{var o,s,p;return t("td",{part:r(e)},(p=(null===(o=a.payment_method.card)||void 0===o?void 0:o.brand)||(null===(s=a.payment_method.bank_account)||void 0===s?void 0:s.brand))?{visa:"VISA",mastercard:"Mastercard",american_express:"American Express",discover:"Discover",diners_club:"Diners Club",jcb:"JCB",china_unionpay:"China UnionPay",unknown:"Unknown"}[p.toLowerCase()]||p:"N/A")}};export{n as a,s as d,p}
1
+ import{h as t}from"./p-DOjVAAtq.js";import{M as a}from"./p-CCmDcLao.js";import{a as e}from"./p-Bgnhf5c9.js";import{S as o,T as r}from"./p-xDbRW9xn.js";const s="created_at,amount,status,payment_type,description,payers_name,last_four_digits,card_brand",p={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")},n={created_at:(a,o)=>t("td",{part:r(o)},t("div",{class:"fw-bold"},e(a.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},e(a.created_at,{showTime:!0}))),amount:(a,e)=>t("td",{part:r(e)},a.formattedPaymentAmount(a.amount)),status:(e,o)=>t("td",{part:r(o)},a(e.status)),payment_type:(a,e)=>t("td",{part:r(e)},a.payment_type),description:(a,e)=>t("td",{part:r(e)},a.description),payers_name:(a,e)=>t("td",{part:r(e)},a.payers_name),last_four_digits:(a,e)=>t("td",{part:r(e)},a.last_four_digits),card_brand:(a,e)=>{var o,s,p;return t("td",{part:r(e)},(p=(null===(o=a.payment_method.card)||void 0===o?void 0:o.brand)||(null===(s=a.payment_method.bank_account)||void 0===s?void 0:s.brand))?{visa:"VISA",mastercard:"Mastercard",american_express:"American Express",discover:"Discover",diners_club:"Diners Club",jcb:"JCB",china_unionpay:"China UnionPay",unknown:"Unknown"}[p.toLowerCase()]||p:"N/A")}};export{n as a,s as d,p}
@@ -1 +1 @@
1
- import{h as t}from"./p-DyGx8Avl.js";import{N as e,O as r}from"./p-RvUQ__Pq.js";import{a}from"./p-BHf9IqGw.js";import"./p-DMEQUc2C.js";import"./p-Cjcsf8ku.js";import{b as s}from"./p-BrUSZwNP.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{B as o,a as d}from"./p-BgUmsFt9.js";const i="created_at,updated_at,order_status,quantity",p={created_at:()=>t("th",{part:e,scope:"col",title:"The date and time the order was created"},"Created At"),updated_at:()=>t("th",{part:e,scope:"col",title:"The date and time the order was last updated"},"Updated At"),order_status:()=>t("th",{part:e,scope:"col",title:"The current status of the order"},"Order Status"),business_id:()=>t("th",{part:e,scope:"col",title:"The business ID associated with the order"},"Business ID"),company_name:()=>t("th",{part:e,scope:"col",title:"The business name associated with the order"},"Business Name"),provider:()=>t("th",{part:e,scope:"col",title:"The provider associated with the order"},"Provider"),order_type:()=>t("th",{part:e,scope:"col",title:"The type of order"},"Order Type"),quantity:()=>t("th",{part:e,scope:"col",title:"The number of terminals associated with the order"},"Order Quantity")},l={created_at:(e,s)=>t("td",{part:r(s)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e.created_at,{showTime:!0}))),updated_at:(e,s)=>t("td",{part:r(s)},t("div",{class:"fw-bold"},a(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e.updated_at,{showTime:!0}))),order_status:(e,a)=>t("td",{part:r(a)},t(d,Object.assign({},{submitted:{variant:o.PRIMARY,title:"This order is submitted",text:"Submitted"},completed:{variant:o.SUCCESS,title:"This order has been completed",text:"Completed"},created:{variant:o.SECONDARY,title:"This order is created",text:"Created"},in_progress:{variant:o.PRIMARY,title:"This order is in progress",text:"In Progress"},on_hold:{variant:o.WARNING,title:"This order is on hold",text:"On Hold"},canceled:{variant:o.DANGER,title:"This order is canceled",text:"Canceled"}}[e.order_status]))),business_id:(e,a)=>t("td",{part:r(a)},e.business_id),company_name:(e,a)=>t("td",{part:r(a)},e.company_name),provider:(e,a)=>t("td",{part:r(a)},e.provider),order_type:(e,a)=>{let o;return e.order_type===s.boardingOnly?o="Boarding Only":e.order_type===s.boardingShipping&&(o="Boarding & Shipping"),t("td",{part:r(a)},o)},quantity:(e,a)=>t("td",{part:r(a)},e.terminals.length)};export{l as a,i as d,p as t}
1
+ import{h as t}from"./p-DOjVAAtq.js";import{S as e,T as r}from"./p-xDbRW9xn.js";import{a}from"./p-Bgnhf5c9.js";import"./p-a6tcNl_T.js";import"./p-Cjcsf8ku.js";import{b as s}from"./p-C98BC5W5.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{B as o,a as d}from"./p-hbWSMN3O.js";const i="created_at,updated_at,order_status,quantity",p={created_at:()=>t("th",{part:e,scope:"col",title:"The date and time the order was created"},"Created At"),updated_at:()=>t("th",{part:e,scope:"col",title:"The date and time the order was last updated"},"Updated At"),order_status:()=>t("th",{part:e,scope:"col",title:"The current status of the order"},"Order Status"),business_id:()=>t("th",{part:e,scope:"col",title:"The business ID associated with the order"},"Business ID"),company_name:()=>t("th",{part:e,scope:"col",title:"The business name associated with the order"},"Business Name"),provider:()=>t("th",{part:e,scope:"col",title:"The provider associated with the order"},"Provider"),order_type:()=>t("th",{part:e,scope:"col",title:"The type of order"},"Order Type"),quantity:()=>t("th",{part:e,scope:"col",title:"The number of terminals associated with the order"},"Order Quantity")},l={created_at:(e,s)=>t("td",{part:r(s)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e.created_at,{showTime:!0}))),updated_at:(e,s)=>t("td",{part:r(s)},t("div",{class:"fw-bold"},a(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e.updated_at,{showTime:!0}))),order_status:(e,a)=>t("td",{part:r(a)},t(d,Object.assign({},{submitted:{variant:o.PRIMARY,title:"This order is submitted",text:"Submitted"},completed:{variant:o.SUCCESS,title:"This order has been completed",text:"Completed"},created:{variant:o.SECONDARY,title:"This order is created",text:"Created"},in_progress:{variant:o.PRIMARY,title:"This order is in progress",text:"In Progress"},on_hold:{variant:o.WARNING,title:"This order is on hold",text:"On Hold"},canceled:{variant:o.DANGER,title:"This order is canceled",text:"Canceled"}}[e.order_status]))),business_id:(e,a)=>t("td",{part:r(a)},e.business_id),company_name:(e,a)=>t("td",{part:r(a)},e.company_name),provider:(e,a)=>t("td",{part:r(a)},e.provider),order_type:(e,a)=>{let o;return e.order_type===s.boardingOnly?o="Boarding Only":e.order_type===s.boardingShipping&&(o="Boarding & Shipping"),t("td",{part:r(a)},o)},quantity:(e,a)=>t("td",{part:r(a)},e.terminals.length)};export{l as a,i as d,p as t}
@@ -0,0 +1 @@
1
+ var e={name:"@justifi/webcomponents",version:"6.0.6-rc.1"};export{e as p}