@justifi/webcomponents 5.4.0 → 5.4.2

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 (578) hide show
  1. package/dist/cjs/{Checkout-eef27045.js → Checkout-5352009d.js} +1 -1
  2. package/dist/cjs/{Payment-c47ed1e1.js → Payment-bccd8f7d.js} +1 -1
  3. package/dist/cjs/{SubAccount-9babbfd3.js → SubAccount-06f9030b.js} +4 -2
  4. package/dist/cjs/additional-questions-details_5.cjs.entry.js +3 -3
  5. package/dist/cjs/{badge-591df67f.js → badge-364e6311.js} +1 -1
  6. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +11 -11
  7. package/dist/cjs/bank-account-form_9.cjs.entry.js +16 -16
  8. package/dist/cjs/billing-form_3.cjs.entry.js +11 -11
  9. package/dist/cjs/{business-additional-questions-schema-5c100f58.js → business-additional-questions-schema-8568cb79.js} +2 -2
  10. package/dist/cjs/business-details-core.cjs.entry.js +3 -3
  11. package/dist/cjs/{business-identity-schema-3b4d16f1.js → business-identity-schema-518ab6eb.js} +2 -2
  12. package/dist/cjs/{business.service-27f67b29.js → business.service-6e8a29a2.js} +2 -2
  13. package/dist/cjs/{button-7f272a63.js → button-4a9fd41e.js} +1 -1
  14. package/dist/cjs/{check-pkg-version-52c7c2ab.js → check-pkg-version-15023e22.js} +1 -1
  15. package/dist/cjs/{checkout.service-46a5b9f2.js → checkout.service-ab658f38.js} +3 -3
  16. package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -10
  17. package/dist/cjs/{checkouts-table-7f2081df.js → checkouts-table-8a1b49ff.js} +3 -3
  18. package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_4.cjs.entry.js} +141 -2
  19. package/dist/cjs/{dispute.service-a36c48bf.js → dispute.service-1494b42c.js} +3 -3
  20. package/dist/cjs/{event-types-921f3555.js → event-types-5a6ce2b0.js} +2 -2
  21. package/dist/cjs/form-alert_5.cjs.entry.js +5 -5
  22. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  23. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  24. package/dist/cjs/{form-control-error-text-377bcf59.js → form-control-error-text-3cff9b7b.js} +1 -1
  25. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  26. package/dist/cjs/{form-control-help-text-f7369e16.js → form-control-help-text-94ffed2c.js} +1 -1
  27. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +85 -0
  28. package/dist/cjs/form-control-monetary.cjs.entry.js +27 -40
  29. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +5 -5
  30. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  31. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  32. package/dist/cjs/{get-business-0bd063d2.js → get-business-d8f5db51.js} +2 -2
  33. package/dist/cjs/{get-payout-csv-c1c7f03f.js → get-payout-csv-4240b172.js} +3 -3
  34. package/dist/cjs/{get-subaccounts-c1d559a0.js → get-subaccounts-fa8dc254.js} +3 -3
  35. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +5 -5
  36. package/dist/cjs/{header-1-a63a16d5.js → header-1-43b2b905.js} +1 -1
  37. package/dist/cjs/{header-3-a6e0f274.js → header-3-eb250a04.js} +1 -1
  38. package/dist/cjs/{index.esm-a397536a.js → index.esm-544c08fd.js} +0 -122
  39. package/dist/cjs/{insurance-state-ff4fca5a.js → insurance-state-71f8b653.js} +1 -1
  40. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +12 -12
  41. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +17 -17
  42. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
  43. package/dist/cjs/justifi-business-details.cjs.entry.js +6 -6
  44. package/dist/cjs/justifi-business-form.cjs.entry.js +14 -14
  45. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +2 -2
  46. package/dist/cjs/justifi-checkout-core.cjs.entry.js +8 -8
  47. package/dist/cjs/justifi-checkout.cjs.entry.js +9 -9
  48. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -6
  49. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +12 -12
  50. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  51. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  52. package/dist/cjs/justifi-dispute-management.cjs.entry.js +8 -8
  53. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +13 -13
  54. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +4 -4
  55. package/dist/cjs/justifi-order-terminals.cjs.entry.js +21 -23
  56. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +9 -9
  57. package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -9
  58. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +3 -3
  59. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +4 -4
  60. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -4
  61. package/dist/cjs/justifi-payments-list.cjs.entry.js +12 -12
  62. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -9
  63. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
  64. package/dist/cjs/justifi-payouts-list.cjs.entry.js +13 -13
  65. package/dist/cjs/justifi-refund-payment.cjs.entry.js +122 -0
  66. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -4
  67. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -7
  68. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +7 -7
  69. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +10 -10
  70. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +9 -6
  71. package/dist/cjs/justifi-terminals-list.cjs.entry.js +12 -12
  72. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +9 -9
  73. package/dist/cjs/loader.cjs.js +1 -1
  74. package/dist/cjs/{package-53904238.js → package-868b01af.js} +2 -2
  75. package/dist/cjs/pagination-menu.cjs.entry.js +1 -1
  76. package/dist/cjs/{parts-3118ab4b.js → parts-5ca90f9a.js} +2 -0
  77. package/dist/cjs/payment-details-core.cjs.entry.js +13 -13
  78. package/dist/cjs/{payment.service-fedf131a.js → payment.service-97bef4f8.js} +3 -3
  79. package/dist/cjs/payments-list-core.cjs.entry.js +11 -11
  80. package/dist/cjs/{payments-status-96156930.js → payments-status-075aad0a.js} +1 -1
  81. package/dist/cjs/{payments-table-6f87d43e.js → payments-table-a076755a.js} +3 -3
  82. package/dist/cjs/payout-details-core.cjs.entry.js +8 -8
  83. package/dist/cjs/payouts-list-core.cjs.entry.js +11 -11
  84. package/dist/cjs/{payouts-status-aa6842ac.js → payouts-status-ced97c2b.js} +1 -1
  85. package/dist/cjs/{payouts-table-d4c8bbbc.js → payouts-table-aedce326.js} +3 -3
  86. package/dist/cjs/{schema-validations-47a256f4.js → schema-validations-a7cefbdf.js} +1 -1
  87. package/dist/cjs/{skeleton-32198b92.js → skeleton-e8aa41d0.js} +1 -1
  88. package/dist/cjs/{spinner-a5c0f3c0.js → spinner-580453f2.js} +1 -1
  89. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  90. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +10 -10
  91. package/dist/cjs/{terminal-orders-table-eb95b278.js → terminal-orders-table-050e673f.js} +3 -3
  92. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  93. package/dist/cjs/{terminal.service-ac44fc14.js → terminal.service-0aac977d.js} +3 -3
  94. package/dist/cjs/terminals-list-core.cjs.entry.js +10 -10
  95. package/dist/cjs/{terminals-table-3f0c33ea.js → terminals-table-6710a76c.js} +14 -2
  96. package/dist/cjs/{utils-337befa9.js → utils-4120664c.js} +20 -2
  97. package/dist/cjs/{utils-97041614.js → utils-f8714daa.js} +1 -1
  98. package/dist/cjs/webcomponents.cjs.js +1 -1
  99. package/dist/collection/actions/business/get-business.js +2 -2
  100. package/dist/collection/actions/terminal/get-terminal-models.js +2 -2
  101. package/dist/collection/actions/terminal/order-terminals.js +2 -2
  102. package/dist/collection/api/Terminal.js +3 -1
  103. package/dist/collection/api/services/business.service.js +2 -2
  104. package/dist/collection/collection-manifest.json +6 -5
  105. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  106. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  107. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
  108. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  109. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  110. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  111. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  112. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  113. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +1 -1
  114. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  115. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  116. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  117. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  118. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  119. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  120. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  121. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  122. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +255 -0
  123. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  124. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  125. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  126. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  127. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  128. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  129. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  130. package/dist/collection/components/{billing-forms → checkout/billing-forms}/billing-form/billing-form.js +6 -6
  131. package/dist/collection/components/{billing-forms → checkout/billing-forms}/billing-form-schema.js +6 -2
  132. package/dist/collection/components/{billing-forms → checkout/billing-forms}/billing-form-wrapper.js +7 -7
  133. package/dist/collection/components/{billing-forms → checkout/billing-forms}/postal-form/postal-form.js +5 -5
  134. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  135. package/dist/collection/components/checkout/checkout-core.js +5 -5
  136. package/dist/collection/components/checkout/checkout.js +6 -6
  137. package/dist/collection/components/checkout/new-payment-method.js +5 -5
  138. package/dist/collection/components/checkout/payment-method-options.js +5 -5
  139. package/dist/collection/components/checkout/save-new-payment-method.js +1 -1
  140. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  141. package/dist/collection/components/checkout/sezzle-payment-method.js +1 -1
  142. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  143. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  144. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  145. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  146. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  147. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  148. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  149. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  150. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  151. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  152. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  153. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  154. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  155. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  156. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  157. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  158. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  159. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +1 -1
  160. package/dist/collection/components/order-terminals/order-terminals.js +25 -8
  161. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  162. package/dist/collection/components/payment-details/payment-details-core.js +7 -7
  163. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  164. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  165. package/dist/collection/components/payments-list/payments-list.js +1 -1
  166. package/dist/collection/components/payout-details/payout-details-core.js +1 -1
  167. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  168. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  169. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  170. package/dist/collection/components/refund-payment/refund-payment-schema.js +16 -0
  171. package/dist/collection/components/{refund-form/refund-form.js → refund-payment/refund-payment.js} +26 -65
  172. package/dist/collection/components/refund-payment/refund-reason-options.js +19 -0
  173. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  174. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  175. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  176. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  177. package/dist/collection/components/terminals-list/terminals-list-filters.js +23 -3
  178. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  179. package/dist/collection/components/terminals-list/terminals-status.js +5 -0
  180. package/dist/collection/components/terminals-list/terminals-table.js +7 -0
  181. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +3 -3
  182. package/dist/collection/styles/parts.js +1 -0
  183. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  184. package/dist/collection/ui-components/filters/table-filters-menu.js +1 -1
  185. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  186. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  187. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  188. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  189. package/dist/collection/ui-components/form/form-control-monetary.js +72 -70
  190. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  191. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  192. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  193. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  194. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  195. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  196. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  197. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  198. package/dist/collection/{components → ui-components}/pagination-menu/pagination-menu.js +4 -4
  199. package/dist/collection/utils/utils.js +18 -2
  200. package/dist/docs.json +396 -140
  201. package/dist/esm/{Checkout-2bc873fb.js → Checkout-18d8bf94.js} +1 -1
  202. package/dist/esm/{Payment-82d2f453.js → Payment-806af354.js} +1 -1
  203. package/dist/esm/{SubAccount-0248b5ab.js → SubAccount-837658ae.js} +4 -2
  204. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  205. package/dist/esm/{badge-1555ad1d.js → badge-1be14e8c.js} +1 -1
  206. package/dist/esm/bank-account-document-form-inputs_4.entry.js +11 -11
  207. package/dist/esm/bank-account-form_9.entry.js +16 -16
  208. package/dist/esm/billing-form_3.entry.js +11 -11
  209. package/dist/esm/{business-additional-questions-schema-df76728f.js → business-additional-questions-schema-56308a54.js} +2 -2
  210. package/dist/esm/business-details-core.entry.js +3 -3
  211. package/dist/esm/{business-identity-schema-0a78fc59.js → business-identity-schema-24fcc4ef.js} +2 -2
  212. package/dist/esm/{business.service-13890e74.js → business.service-999196a4.js} +2 -2
  213. package/dist/esm/{button-1e756c34.js → button-fcee4da7.js} +1 -1
  214. package/dist/esm/{check-pkg-version-0557a5c4.js → check-pkg-version-a8dd8455.js} +1 -1
  215. package/dist/esm/{checkout.service-fe338804.js → checkout.service-87cd501d.js} +3 -3
  216. package/dist/esm/checkouts-list-core.entry.js +10 -10
  217. package/dist/esm/{checkouts-table-e339bf0c.js → checkouts-table-39a031a0.js} +3 -3
  218. package/dist/esm/{custom-popper.entry.js → custom-popper_4.entry.js} +140 -4
  219. package/dist/esm/{dispute.service-3e1320fe.js → dispute.service-1f79929b.js} +3 -3
  220. package/dist/esm/{event-types-359ef89e.js → event-types-1bc52f1f.js} +2 -2
  221. package/dist/esm/form-alert_5.entry.js +5 -5
  222. package/dist/esm/form-control-checkbox.entry.js +5 -5
  223. package/dist/esm/form-control-date.entry.js +4 -4
  224. package/dist/esm/{form-control-error-text-1391123f.js → form-control-error-text-176d20d8.js} +1 -1
  225. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  226. package/dist/esm/{form-control-help-text-9918264e.js → form-control-help-text-83764e14.js} +1 -1
  227. package/dist/esm/form-control-monetary-provisioning.entry.js +81 -0
  228. package/dist/esm/form-control-monetary.entry.js +27 -40
  229. package/dist/esm/form-control-number-masked_2.entry.js +5 -5
  230. package/dist/esm/form-control-number.entry.js +5 -5
  231. package/dist/esm/form-control-radio.entry.js +3 -3
  232. package/dist/esm/{get-business-464419f6.js → get-business-b7511690.js} +2 -2
  233. package/dist/esm/{get-payout-csv-9021a002.js → get-payout-csv-6139c5fc.js} +3 -3
  234. package/dist/esm/{get-subaccounts-6b048fd1.js → get-subaccounts-c4b2b829.js} +3 -3
  235. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  236. package/dist/esm/{header-1-adb520cc.js → header-1-215a146f.js} +1 -1
  237. package/dist/esm/{header-3-ca58500e.js → header-3-afd16f23.js} +1 -1
  238. package/dist/esm/{index.esm-0b6849c2.js → index.esm-feedf26f.js} +1 -122
  239. package/dist/esm/{insurance-state-24af6ddb.js → insurance-state-d2df8e88.js} +1 -1
  240. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +12 -12
  241. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +17 -17
  242. package/dist/esm/justifi-additional-statement_8.entry.js +10 -10
  243. package/dist/esm/justifi-business-details.entry.js +6 -6
  244. package/dist/esm/justifi-business-form.entry.js +14 -14
  245. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  246. package/dist/esm/justifi-checkout-core.entry.js +8 -8
  247. package/dist/esm/justifi-checkout.entry.js +9 -9
  248. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
  249. package/dist/esm/justifi-checkouts-list.entry.js +12 -12
  250. package/dist/esm/justifi-details.entry.js +2 -2
  251. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  252. package/dist/esm/justifi-dispute-management.entry.js +8 -8
  253. package/dist/esm/justifi-dispute-notification_3.entry.js +13 -13
  254. package/dist/esm/justifi-gross-payment-chart.entry.js +4 -4
  255. package/dist/esm/justifi-order-terminals.entry.js +21 -23
  256. package/dist/esm/justifi-owner-form_3.entry.js +9 -9
  257. package/dist/esm/justifi-payment-details.entry.js +9 -9
  258. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  259. package/dist/esm/justifi-payment-provisioning.entry.js +4 -4
  260. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  261. package/dist/esm/justifi-payments-list.entry.js +12 -12
  262. package/dist/esm/justifi-payout-details.entry.js +9 -9
  263. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  264. package/dist/esm/justifi-payouts-list.entry.js +13 -13
  265. package/dist/esm/justifi-refund-payment.entry.js +118 -0
  266. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -4
  267. package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -7
  268. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +7 -7
  269. package/dist/esm/justifi-terminal-orders-list.entry.js +10 -10
  270. package/dist/esm/justifi-terminals-list-filters.entry.js +9 -6
  271. package/dist/esm/justifi-terminals-list.entry.js +12 -12
  272. package/dist/esm/justifi-tokenize-payment-method.entry.js +9 -9
  273. package/dist/esm/loader.js +1 -1
  274. package/dist/esm/{package-25d5d805.js → package-f0bb46fd.js} +2 -2
  275. package/dist/esm/pagination-menu.entry.js +1 -1
  276. package/dist/esm/{parts-ad835bef.js → parts-fd740f54.js} +2 -1
  277. package/dist/esm/payment-details-core.entry.js +13 -13
  278. package/dist/esm/{payment.service-2967c84b.js → payment.service-bc99d372.js} +3 -3
  279. package/dist/esm/payments-list-core.entry.js +11 -11
  280. package/dist/esm/{payments-status-d011e114.js → payments-status-74d22728.js} +1 -1
  281. package/dist/esm/{payments-table-3e33b856.js → payments-table-8134f5e1.js} +3 -3
  282. package/dist/esm/payout-details-core.entry.js +8 -8
  283. package/dist/esm/payouts-list-core.entry.js +11 -11
  284. package/dist/esm/{payouts-status-181276c5.js → payouts-status-29d31099.js} +1 -1
  285. package/dist/esm/{payouts-table-199bdf64.js → payouts-table-c1ced46a.js} +3 -3
  286. package/dist/esm/{schema-validations-b1aec6a0.js → schema-validations-5af4266a.js} +1 -1
  287. package/dist/esm/{skeleton-0cde7cb6.js → skeleton-ab3f676e.js} +1 -1
  288. package/dist/esm/{spinner-342e71ff.js → spinner-27479716.js} +1 -1
  289. package/dist/esm/table-filters-menu.entry.js +3 -3
  290. package/dist/esm/terminal-orders-list-core.entry.js +10 -10
  291. package/dist/esm/{terminal-orders-table-2884305a.js → terminal-orders-table-65d59323.js} +3 -3
  292. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  293. package/dist/esm/{terminal.service-4fab5adc.js → terminal.service-a8a968ac.js} +3 -3
  294. package/dist/esm/terminals-list-core.entry.js +10 -10
  295. package/dist/esm/{terminals-table-4e1644e8.js → terminals-table-5eb287ca.js} +14 -2
  296. package/dist/esm/{utils-96c6292c.js → utils-96d9c205.js} +1 -1
  297. package/dist/esm/{utils-c37124fc.js → utils-ec50661e.js} +19 -3
  298. package/dist/esm/webcomponents.js +1 -1
  299. package/dist/module/SubAccount.js +3 -1
  300. package/dist/module/additional-questions.js +4 -4
  301. package/dist/module/additional-statement.js +1 -1
  302. package/dist/module/bank-account-document-inputs.js +1 -1
  303. package/dist/module/bank-account-form-inputs2.js +1 -1
  304. package/dist/module/bank-account-form2.js +2 -2
  305. package/dist/module/billing-form-wrapper.js +1 -1
  306. package/dist/module/billing-form2.js +3 -3
  307. package/dist/module/business-additional-questions-form-step-core.js +4 -4
  308. package/dist/module/business-additional-questions-form-step.js +4 -4
  309. package/dist/module/business-bank-account-form-step.js +1 -1
  310. package/dist/module/business-core-info-form-step.js +1 -1
  311. package/dist/module/business-core-info.js +1 -1
  312. package/dist/module/business-owners-form-step.js +1 -1
  313. package/dist/module/business-representative-form-inputs.js +1 -1
  314. package/dist/module/business-representative-form-step.js +1 -1
  315. package/dist/module/business-representative.js +1 -1
  316. package/dist/module/business-terms-conditions-form-step.js +1 -1
  317. package/dist/module/business.service.js +2 -2
  318. package/dist/module/cancellation-policy.js +1 -1
  319. package/dist/module/card-form2.js +2 -2
  320. package/dist/module/checkout-core.js +1 -1
  321. package/dist/module/checkouts-list-core2.js +1 -1
  322. package/dist/module/custom-popper2.js +2 -2
  323. package/dist/module/customer-details.js +1 -1
  324. package/dist/module/dispute-management-core.js +1 -1
  325. package/dist/module/dispute-notification.js +1 -1
  326. package/dist/module/dispute-response-core.js +1 -1
  327. package/dist/module/dispute-response.js +1 -1
  328. package/dist/module/duplicate-charge.js +1 -1
  329. package/dist/module/electronic-evidence.js +1 -1
  330. package/dist/module/form-control-checkbox2.js +2 -2
  331. package/dist/module/form-control-date2.js +2 -2
  332. package/dist/module/form-control-file-v22.js +1 -1
  333. package/dist/module/form-control-file2.js +2 -2
  334. package/dist/module/form-control-monetary-provisioning.d.ts +11 -0
  335. package/dist/module/form-control-monetary-provisioning.js +6 -0
  336. package/dist/module/form-control-monetary-provisioning2.js +109 -0
  337. package/dist/module/form-control-monetary2.js +30 -42
  338. package/dist/module/form-control-number-masked2.js +2 -2
  339. package/dist/module/form-control-number.js +2 -2
  340. package/dist/module/form-control-radio2.js +2 -2
  341. package/dist/module/form-control-select2.js +2 -2
  342. package/dist/module/form-control-text2.js +2 -2
  343. package/dist/module/form-control-textarea2.js +2 -2
  344. package/dist/module/form.js +1 -122
  345. package/dist/module/get-business.js +2 -2
  346. package/dist/module/gross-payment-chart-core2.js +1 -1
  347. package/dist/module/hidden-input2.js +1 -1
  348. package/dist/module/identity-address-form.js +1 -1
  349. package/dist/module/iframe-input2.js +3 -3
  350. package/dist/module/justifi-business-form.js +3 -3
  351. package/dist/module/justifi-checkout.js +2 -2
  352. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  353. package/dist/module/justifi-checkouts-list.js +1 -1
  354. package/dist/module/justifi-dispute-management.js +1 -1
  355. package/dist/module/justifi-order-terminals.js +12 -12
  356. package/dist/module/justifi-payment-provisioning.js +4 -4
  357. package/dist/module/justifi-payments-list-filters.js +3 -3
  358. package/dist/module/justifi-payments-list.js +1 -1
  359. package/dist/module/justifi-payouts-list-filters.js +3 -3
  360. package/dist/module/justifi-payouts-list.js +1 -1
  361. package/dist/module/justifi-refund-payment.d.ts +11 -0
  362. package/dist/module/justifi-refund-payment.js +180 -0
  363. package/dist/module/justifi-season-interruption-insurance.js +1 -1
  364. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  365. package/dist/module/justifi-terminal-orders-list.js +1 -1
  366. package/dist/module/justifi-terminals-list-filters.js +6 -2
  367. package/dist/module/justifi-terminals-list.js +1 -1
  368. package/dist/module/justifi-tokenize-payment-method.js +1 -1
  369. package/dist/module/legal-address-form-step.js +1 -1
  370. package/dist/module/legal-address-form.js +1 -1
  371. package/dist/module/new-payment-method.js +1 -1
  372. package/dist/module/owner-form-core2.js +1 -1
  373. package/dist/module/owner-form-inputs2.js +1 -1
  374. package/dist/module/owner-form.js +1 -1
  375. package/dist/module/package.js +2 -2
  376. package/dist/module/parts.js +2 -1
  377. package/dist/module/payment-details-core2.js +7 -7
  378. package/dist/module/payment-method-options.js +1 -1
  379. package/dist/module/payment-provisioning-core.js +4 -4
  380. package/dist/module/payment-provisioning-form-buttons.js +1 -1
  381. package/dist/module/payment-provisioning-form-steps.js +4 -4
  382. package/dist/module/payments-list-core2.js +2 -2
  383. package/dist/module/payout-details-core2.js +1 -1
  384. package/dist/module/payouts-list-core2.js +2 -2
  385. package/dist/module/postal-form2.js +1 -1
  386. package/dist/module/product-or-service.js +1 -1
  387. package/dist/module/refund-policy.js +1 -1
  388. package/dist/module/save-new-payment-method.js +1 -1
  389. package/dist/module/saved-payment-method.js +1 -1
  390. package/dist/module/season-interruption-insurance-core.js +1 -1
  391. package/dist/module/sezzle-payment-method.js +1 -1
  392. package/dist/module/shipping-details.js +1 -1
  393. package/dist/module/table-filters-menu2.js +1 -1
  394. package/dist/module/terminal-orders-list-core2.js +2 -2
  395. package/dist/module/terminal-quantity-selector2.js +1 -1
  396. package/dist/module/terminals-list-core2.js +13 -1
  397. package/dist/module/utils2.js +19 -3
  398. package/dist/types/actions/business/get-business.d.ts +2 -1
  399. package/dist/types/actions/terminal/get-terminal-models.d.ts +2 -1
  400. package/dist/types/actions/terminal/order-terminals.d.ts +2 -1
  401. package/dist/types/api/Terminal.d.ts +8 -3
  402. package/dist/types/api/services/business.service.d.ts +1 -1
  403. package/dist/types/components/business-forms/payment-provisioning/form-control-monetary-provisioning.d.ts +24 -0
  404. package/dist/types/components/{billing-forms → checkout/billing-forms}/billing-form/billing-form.d.ts +1 -1
  405. package/dist/types/components/{billing-forms → checkout/billing-forms}/postal-form/postal-form.d.ts +1 -1
  406. package/dist/types/components/checkout/checkout-core.d.ts +1 -1
  407. package/dist/types/components/checkout/checkout.d.ts +1 -1
  408. package/dist/types/components/checkout/new-payment-method.d.ts +1 -1
  409. package/dist/types/components/checkout/payment-method-options.d.ts +1 -1
  410. package/dist/types/components/order-terminals/order-terminals.d.ts +1 -1
  411. package/dist/types/components/refund-payment/refund-payment-schema.d.ts +11 -0
  412. package/dist/types/components/{refund-form/refund-form.d.ts → refund-payment/refund-payment.d.ts} +6 -13
  413. package/dist/types/components/refund-payment/refund-reason-options.d.ts +5 -0
  414. package/dist/types/components/terminals-list/terminals-list-filters.d.ts +1 -0
  415. package/dist/types/components/terminals-list/terminals-status.d.ts +2 -1
  416. package/dist/types/components/terminals-list/terminals-table.d.ts +6 -0
  417. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +1 -1
  418. package/dist/types/components.d.ts +88 -51
  419. package/dist/types/styles/parts.d.ts +1 -0
  420. package/dist/types/ui-components/form/form-control-monetary.d.ts +9 -10
  421. package/dist/types/utils/utils.d.ts +3 -1
  422. package/dist/webcomponents/p-01033194.js +1 -0
  423. package/dist/webcomponents/{p-da2a9dfa.entry.js → p-0b61d4d3.entry.js} +1 -1
  424. package/dist/webcomponents/p-0c7ec110.entry.js +1 -0
  425. package/dist/webcomponents/p-0d7d61ac.js +1 -0
  426. package/dist/webcomponents/{p-fdd244b1.entry.js → p-0f0020e1.entry.js} +1 -1
  427. package/dist/webcomponents/{p-365e56fc.js → p-12074378.js} +1 -1
  428. package/dist/webcomponents/{p-daf0303f.js → p-1366a019.js} +1 -1
  429. package/dist/webcomponents/{p-d8ba9309.entry.js → p-13717638.entry.js} +1 -1
  430. package/dist/webcomponents/p-142bfae3.js +1 -0
  431. package/dist/webcomponents/{p-1fb5677e.entry.js → p-14cfb25e.entry.js} +1 -1
  432. package/dist/webcomponents/{p-13d62477.entry.js → p-150e80db.entry.js} +1 -1
  433. package/dist/webcomponents/{p-e5c60276.entry.js → p-187d456b.entry.js} +1 -1
  434. package/dist/webcomponents/{p-c7c9725d.entry.js → p-190ee091.entry.js} +1 -1
  435. package/dist/webcomponents/p-1da00a0c.entry.js +1 -0
  436. package/dist/webcomponents/p-2123c150.js +1 -0
  437. package/dist/webcomponents/p-23cd76af.entry.js +1 -0
  438. package/dist/webcomponents/p-25b82529.entry.js +1 -0
  439. package/dist/webcomponents/p-27546fa9.entry.js +1 -0
  440. package/dist/webcomponents/p-275c3dc9.js +1 -0
  441. package/dist/webcomponents/p-2819e94a.entry.js +1 -0
  442. package/dist/webcomponents/p-2b8aaa7d.entry.js +1 -0
  443. package/dist/webcomponents/p-31dcaeaf.entry.js +1 -0
  444. package/dist/webcomponents/p-373a19fe.entry.js +1 -0
  445. package/dist/webcomponents/{p-9c57de4e.entry.js → p-375657fe.entry.js} +1 -1
  446. package/dist/webcomponents/{p-324587d0.js → p-3da2652e.js} +1 -1
  447. package/dist/webcomponents/{p-9894484a.js → p-3f5e6602.js} +1 -1
  448. package/dist/webcomponents/p-431670c6.entry.js +1 -0
  449. package/dist/webcomponents/{p-485df2fe.entry.js → p-45fda0bc.entry.js} +1 -1
  450. package/dist/webcomponents/p-507d8aa4.entry.js +1 -0
  451. package/dist/webcomponents/p-536497fe.entry.js +1 -0
  452. package/dist/webcomponents/{p-4acf8ca2.js → p-537bce77.js} +1 -1
  453. package/dist/webcomponents/p-56c7fc8d.js +1 -0
  454. package/dist/webcomponents/{p-c380213d.js → p-58ee6ce9.js} +1 -1
  455. package/dist/webcomponents/{p-e52e9120.entry.js → p-5a9d7ca0.entry.js} +1 -1
  456. package/dist/webcomponents/p-5b76dbe1.entry.js +1 -0
  457. package/dist/webcomponents/{p-0d01d245.entry.js → p-5bd1c32c.entry.js} +1 -1
  458. package/dist/webcomponents/{p-56143442.entry.js → p-5c5c1e82.entry.js} +1 -1
  459. package/dist/webcomponents/{p-a7594f8f.entry.js → p-60ec062a.entry.js} +1 -1
  460. package/dist/webcomponents/{p-7d93c28b.js → p-673c1bca.js} +1 -1
  461. package/dist/webcomponents/p-6a594a9f.js +1 -0
  462. package/dist/webcomponents/{p-b19a37d4.js → p-701a13ca.js} +1 -1
  463. package/dist/webcomponents/{p-17eea747.js → p-72e71b3c.js} +1 -1
  464. package/dist/webcomponents/{p-78255a04.entry.js → p-746894be.entry.js} +1 -1
  465. package/dist/webcomponents/p-74711d79.entry.js +1 -0
  466. package/dist/webcomponents/{p-df9ff0ce.entry.js → p-753d983c.entry.js} +1 -1
  467. package/dist/webcomponents/p-76549a24.js +1 -0
  468. package/dist/webcomponents/p-86605101.js +1 -0
  469. package/dist/webcomponents/p-8c70396c.entry.js +1 -0
  470. package/dist/webcomponents/p-90b82e40.entry.js +1 -0
  471. package/dist/webcomponents/p-913e28d6.entry.js +1 -0
  472. package/dist/webcomponents/{p-d273f33b.js → p-927cb6df.js} +1 -1
  473. package/dist/webcomponents/p-953e9dba.js +1 -0
  474. package/dist/webcomponents/{p-a81cabed.js → p-96783edf.js} +1 -1
  475. package/dist/webcomponents/p-96c23cda.entry.js +1 -0
  476. package/dist/webcomponents/{p-251c8e97.js → p-9c4e3bac.js} +1 -1
  477. package/dist/webcomponents/{p-646d007a.js → p-9e49cf17.js} +1 -1
  478. package/dist/webcomponents/{p-36e32bc4.entry.js → p-a2d30370.entry.js} +1 -1
  479. package/dist/webcomponents/p-a3cced75.entry.js +1 -0
  480. package/dist/webcomponents/{p-88af0d7d.js → p-a5579f53.js} +1 -1
  481. package/dist/webcomponents/{p-be6fea42.entry.js → p-a589b3a1.entry.js} +1 -1
  482. package/dist/webcomponents/{p-45e68bb3.entry.js → p-a5f5cc2e.entry.js} +1 -1
  483. package/dist/webcomponents/{p-d7bcf8f0.js → p-ac9f2e2b.js} +1 -1
  484. package/dist/webcomponents/p-adecb91a.entry.js +1 -0
  485. package/dist/webcomponents/{p-ba113075.js → p-ae7edce5.js} +1 -1
  486. package/dist/webcomponents/p-ae891abb.entry.js +1 -0
  487. package/dist/webcomponents/{p-dd3de924.entry.js → p-af3315b5.entry.js} +1 -1
  488. package/dist/webcomponents/p-b26fb429.js +1 -0
  489. package/dist/webcomponents/{p-55e21977.entry.js → p-b299b597.entry.js} +1 -1
  490. package/dist/webcomponents/{p-073f24ba.entry.js → p-b5c7cb4c.entry.js} +1 -1
  491. package/dist/webcomponents/{p-d5960545.js → p-b99817a0.js} +1 -1
  492. package/dist/webcomponents/p-bb4b3f79.entry.js +1 -0
  493. package/dist/webcomponents/{p-95e55bb1.js → p-bf12999f.js} +1 -1
  494. package/dist/webcomponents/{p-2dd39017.js → p-bf195b35.js} +1 -1
  495. package/dist/webcomponents/{p-944f1cc7.js → p-bfc2d88a.js} +1 -1
  496. package/dist/webcomponents/{p-d78ea308.entry.js → p-c00ef77b.entry.js} +1 -1
  497. package/dist/webcomponents/{p-0bafaf49.entry.js → p-c438d1c8.entry.js} +1 -1
  498. package/dist/webcomponents/p-c7313123.entry.js +1 -0
  499. package/dist/webcomponents/{p-34a95381.js → p-c8b78136.js} +1 -1
  500. package/dist/webcomponents/{p-17c4edf7.js → p-ca6cdfe6.js} +1 -1
  501. package/dist/webcomponents/p-cc2f75a3.entry.js +1 -0
  502. package/dist/webcomponents/p-ccb9ee53.js +1 -0
  503. package/dist/webcomponents/{p-f57d5d4f.entry.js → p-cd93c62b.entry.js} +2 -2
  504. package/dist/webcomponents/p-cf9e893a.entry.js +1 -0
  505. package/dist/webcomponents/p-d757fcf5.js +1 -0
  506. package/dist/webcomponents/p-d86add24.entry.js +1 -0
  507. package/dist/webcomponents/p-dbc1a95b.js +1 -0
  508. package/dist/webcomponents/p-dcff8139.entry.js +1 -0
  509. package/dist/webcomponents/{p-1b3a6c40.entry.js → p-e309516a.entry.js} +1 -1
  510. package/dist/webcomponents/p-e9867f8b.entry.js +1 -0
  511. package/dist/webcomponents/p-ebd814ab.entry.js +1 -0
  512. package/dist/webcomponents/p-f0a56d96.entry.js +1 -0
  513. package/dist/webcomponents/{p-ed3ad073.entry.js → p-f20466f7.entry.js} +1 -1
  514. package/dist/webcomponents/{p-2ca5b5e4.js → p-f8fccf44.js} +1 -1
  515. package/dist/webcomponents/p-f930504f.entry.js +1 -0
  516. package/dist/webcomponents/p-fb2db8da.entry.js +1 -0
  517. package/dist/webcomponents/{p-e8fc36c1.entry.js → p-fca89e9b.entry.js} +1 -1
  518. package/dist/webcomponents/webcomponents.esm.js +1 -1
  519. package/package.json +2 -2
  520. package/dist/cjs/form-control-select_3.cjs.entry.js +0 -145
  521. package/dist/cjs/justifi-refund-form.cjs.entry.js +0 -106
  522. package/dist/collection/components/refund-form/refund-form-schema.js +0 -13
  523. package/dist/collection/components/refund-form/refund-form.stories.js +0 -109
  524. package/dist/esm/form-control-select_3.entry.js +0 -139
  525. package/dist/esm/justifi-refund-form.entry.js +0 -102
  526. package/dist/module/justifi-refund-form.d.ts +0 -11
  527. package/dist/module/justifi-refund-form.js +0 -153
  528. package/dist/types/components/refund-form/refund-form-schema.d.ts +0 -11
  529. package/dist/types/components/refund-form/refund-form.stories.d.ts +0 -27
  530. package/dist/webcomponents/p-00d55a4b.entry.js +0 -1
  531. package/dist/webcomponents/p-04d59ef8.js +0 -1
  532. package/dist/webcomponents/p-07c13189.entry.js +0 -1
  533. package/dist/webcomponents/p-24203209.entry.js +0 -1
  534. package/dist/webcomponents/p-258087a8.entry.js +0 -1
  535. package/dist/webcomponents/p-2759d157.entry.js +0 -1
  536. package/dist/webcomponents/p-2cd9b608.entry.js +0 -1
  537. package/dist/webcomponents/p-3030f5e6.entry.js +0 -1
  538. package/dist/webcomponents/p-308ec9c7.entry.js +0 -1
  539. package/dist/webcomponents/p-454acd29.entry.js +0 -1
  540. package/dist/webcomponents/p-50b012a3.entry.js +0 -1
  541. package/dist/webcomponents/p-52e2cc5e.js +0 -1
  542. package/dist/webcomponents/p-5844a0f0.js +0 -1
  543. package/dist/webcomponents/p-5cf1898d.entry.js +0 -1
  544. package/dist/webcomponents/p-5d600828.js +0 -1
  545. package/dist/webcomponents/p-61a45f7d.entry.js +0 -1
  546. package/dist/webcomponents/p-651c881b.js +0 -1
  547. package/dist/webcomponents/p-6a4b710e.entry.js +0 -1
  548. package/dist/webcomponents/p-74f6cc28.entry.js +0 -1
  549. package/dist/webcomponents/p-8946edfd.js +0 -1
  550. package/dist/webcomponents/p-8ffd9f7c.js +0 -1
  551. package/dist/webcomponents/p-92b18902.entry.js +0 -1
  552. package/dist/webcomponents/p-92f29922.entry.js +0 -1
  553. package/dist/webcomponents/p-97f3a1b0.entry.js +0 -1
  554. package/dist/webcomponents/p-9fcab358.entry.js +0 -1
  555. package/dist/webcomponents/p-a0f715d4.js +0 -1
  556. package/dist/webcomponents/p-a35f3b5b.js +0 -1
  557. package/dist/webcomponents/p-b7960f37.entry.js +0 -1
  558. package/dist/webcomponents/p-b7ddb76f.entry.js +0 -1
  559. package/dist/webcomponents/p-b97f433a.entry.js +0 -1
  560. package/dist/webcomponents/p-c3939138.entry.js +0 -1
  561. package/dist/webcomponents/p-cba7d0a7.entry.js +0 -1
  562. package/dist/webcomponents/p-d43a38a4.js +0 -1
  563. package/dist/webcomponents/p-d4724349.js +0 -1
  564. package/dist/webcomponents/p-d575c2c1.entry.js +0 -1
  565. package/dist/webcomponents/p-dac9282d.entry.js +0 -1
  566. package/dist/webcomponents/p-e1dd47e1.entry.js +0 -1
  567. package/dist/webcomponents/p-e545c079.entry.js +0 -1
  568. package/dist/webcomponents/p-e5de1a00.entry.js +0 -1
  569. package/dist/webcomponents/p-f1573cad.entry.js +0 -1
  570. package/dist/webcomponents/p-f1d6e14f.js +0 -1
  571. package/dist/webcomponents/p-f30cb232.js +0 -1
  572. package/dist/webcomponents/p-f87e871d.js +0 -1
  573. package/dist/webcomponents/p-f8a95380.entry.js +0 -1
  574. package/dist/webcomponents/p-fa5688f7.entry.js +0 -1
  575. package/dist/webcomponents/p-fbdc18e4.entry.js +0 -1
  576. /package/dist/types/components/{billing-forms → checkout/billing-forms}/billing-form-schema.d.ts +0 -0
  577. /package/dist/types/components/{billing-forms → checkout/billing-forms}/billing-form-wrapper.d.ts +0 -0
  578. /package/dist/types/{components → ui-components}/pagination-menu/pagination-menu.d.ts +0 -0
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-2783e363.js";import{f as t,p as s,c as r}from"./p-beec0b60.js";import{M as d,N as i,O as l,P as o,Q as c}from"./p-2dd39017.js";import{S as b}from"./p-bfe9748b.js";import"./p-9dd8685c.js";import"./p-daf0303f.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import{c as f,b as p}from"./p-651c881b.js";import"./p-61f0a2ce.js";import{d as m,c as n}from"./p-2ca5b5e4.js";import"./p-f20b6ce1.js";import"./p-abdbcd8e.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=m(a,{setExactTime:!0});this.setParamsOnChange(e,t)},this.orderStatus=void 0,this.orderType=void 0,this.createdAfter=void 0,this.createdBefore=void 0}componentWillLoad(){Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:f.created},{label:"Completed",value:f.completed},{label:"Submitted",value:f.submitted}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:p.boardingOnly},{label:"Boarding Shipping",value:p.boardingShipping}]}render(){const e=Object.assign({},t);return a(b,{key:"9f84e2a68bbf745714bd972e6f8510eb5c864248"},a("table-filters-menu",{key:"f78bfdd9940b62f74cc96969946df75274e8580c",params:e,clearParams:r,part:d},a("div",{key:"e16d37583700f39e1ab513fb362555677aa77bbf",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"81e9b0f98cec6fb803b17ce10a1a79d61f302988",class:"p-2"},a("form-control-select",{key:"c5749e4b06a3c4af835e03384434d0fed054c22b",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||t.order_status,disabled:!!this.orderStatus,part:i})),a("div",{key:"e2367532d8147a1fc184eadce40f61894cd701cd",class:"p-2"},a("form-control-select",{key:"f8145506abf6879b4a21d9ae49d43061e5f6daef",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||t.order_type,disabled:!!this.orderType,part:l})),a("div",{key:"61b3da75c15121adc65c37443f0d251c2bf0af45",class:"p-2"},a("form-control-date",{key:"eb8afbbb5b2148fb12705fc0b577290b9f5ac881",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:n(this.createdAfter,{showInputDateTime:!0})||n(t.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:o})),a("div",{key:"968131100100709c91fdd1c6d2916910bb5d34b2",class:"p-2"},a("form-control-date",{key:"d1f34c4297a80dd7c9f3e301d798c99db82a7b80",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:n(this.createdBefore,{showInputDateTime:!0})||n(t.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:c})))))}};export{u as justifi_terminal_orders_list_filters}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s}from"./p-2783e363.js";import{a0 as a,a1 as i,t as d}from"./p-2dd39017.js";const c=class{constructor(s){e(this,s),this.selectedQuantityChange=t(this,"selectedQuantityChange",7),this.removeUnit=()=>{this.selectedQuantity>0&&(this.selectedQuantity--,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))},this.addUnit=()=>{this.limit>0&&(this.selectedQuantity++,this.selectedQuantityChange.emit({modelName:this.modelName,quantity:this.selectedQuantity}))},this.modelName=void 0,this.imageUrl=void 0,this.description=void 0,this.helpUrl=void 0,this.limit=1/0,this.selectedQuantity=0}render(){return s("div",{key:"5bbf669ab479523290b2d8a9f5b6ec2000ff0f96",class:"rounded shadow-sm card p-2",part:d},s("div",{key:"47ead96654c97aeae6b24058a4f7759918d3d0ad",class:"d-flex gap-3"},s("div",{key:"3763eda68e7849c87f0e67b905e09267c10481c8",class:"d-flex align-items-center"},s("img",{key:"ef0a61d5c1d27c600fd93813b594ec2ec2fadec3",src:this.imageUrl,alt:this.modelName,height:75,width:75,part:a})),s("div",{key:"5a632f69e2045fbfcd35932af3c5fd027dcca66f",class:"d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center"},s("div",{key:"be00d142f07945a15e882d2da4c505ffbf67fe88",class:"row"},s("div",{key:"1c434628ae872d22efa7d2adb611b04868c85eb1",class:"col-6 d-flex gap-2"},this.modelName,s("form-control-tooltip",{key:"21f571a1b0e5ba7d528727f6476e134b9657e124",helpText:this.description})),s("div",{key:"f4077bfa6beb4f0070bdbf4bd28021f88bcaf5b1",class:"col-6 d-flex justify-content-end align-items-center"},s("button",{key:"7dc6853fb7641b99a9a9ee82dcb3db8fce1d6c01",class:"p-0 minus btn",onClick:this.removeUnit,part:i},"-"),s("div",{key:"faab14e72773f12f69ea69e855bafb27ef3328b8",class:"w-25 text-center"},this.selectedQuantity),s("button",{key:"390e6b4b049fa64e2b7354a3676621844291feb0",class:"p-0 plus btn",onClick:this.addUnit,part:i},"+"))))))}};export{c as terminal_quantity_selector}
@@ -1 +0,0 @@
1
- import{A as t}from"./p-5f6b4bc9.js";class i{async fetchBusiness(i,s){const n=`entities/business/${i}`;return t({authToken:s,apiOrigin:"https://wc-proxy.justifi.ai"}).get(n)}async patchBusiness(i,s,n){const e=`entities/business/${s}`;return t({authToken:i,apiOrigin:"https://wc-proxy.justifi.ai"}).patch(e,n)}}class s{async fetchIdentity(i,s){const n=`entities/identity/${i}`;return t({authToken:s,apiOrigin:"https://wc-proxy.justifi.ai"}).get(n)}async patchIdentity(i,s,n){const e=`entities/identity/${s}`;return t({authToken:i,apiOrigin:"https://wc-proxy.justifi.ai"}).patch(e,n)}async postIdentity(i,s){return t({authToken:i,apiOrigin:"https://wc-proxy.justifi.ai"}).post("entities/identity",s)}}class n{async postBankAccount(i,s){return t({authToken:i,apiOrigin:"https://wc-proxy.justifi.ai"}).post("entities/bank_accounts",s)}}class e{async postDocumentRecord(i,s){return t({authToken:i,apiOrigin:"https://wc-proxy.justifi.ai"}).post("entities/document",s)}}export{i as B,e as D,s as I,n as a}
@@ -1 +0,0 @@
1
- import{h as o}from"./p-2783e363.js";import{$ as r}from"./p-2dd39017.js";const s=s=>o("h3",{class:`header-3 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-2783e363.js";import{f as t,p as s,c as d}from"./p-ab45511e.js";import{J as f,K as r,L as c}from"./p-2dd39017.js";import{S as o}from"./p-bfe9748b.js";import{d as i,c as p}from"./p-2ca5b5e4.js";import"./p-f20b6ce1.js";const b=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=i(a,{setEndOfDay:!0});this.setParamsOnChange(e,t)},this.createdAfter=void 0,this.createdBefore=void 0}componentWillLoad(){Object.entries({created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}render(){const e=Object.assign({},t);return a(o,{key:"fca8f3d0daf92026b7d3cccdd096c8650eb31d28"},a("table-filters-menu",{key:"b166ff52682804bd241866ffbe53ada0cf6133e8",params:e,clearParams:d,part:f},a("div",{key:"f72774348aac13463934af8c8bfb3aa9b29a3942",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"87ee14df90cd83394e573f1f4e75d315cd48b2d3",class:"p-2"},a("form-control-date",{key:"f14e2dd16a24d8f6ac41ed110bdf2e5f0e7b0389",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:p(this.createdAfter,{showInputDate:!0})||p(t.created_after,{showInputDate:!0}),disabled:!!this.createdAfter,part:r})),a("div",{key:"fe9b41fcc98571f9f5f477a0006a2a00a5bdba1c",class:"p-2"},a("form-control-date",{key:"9ab09d81f389f410ea7d1d533a0f25995d261aef",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:p(this.createdBefore,{showInputDate:!0})||p(t.created_before,{showInputDate:!0}),disabled:!!this.createdBefore,part:c})))))}};export{b as justifi_payouts_list_filters}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i,H as e,g as a}from"./p-2783e363.js";import{l as o,c as h,b as r,a5 as l,a as c,aj as d,ak as n,al as f}from"./p-2dd39017.js";import{F as b}from"./p-d4724349.js";const p=class{constructor(i){t(this,i),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.handleFormControlInput=t=>{const s=t.target,i=s.getAttribute("name");this.inputHandler(i,s.value),this.formControlInput.emit(s.value)},this.updateInput=t=>{this.selectElement.value=t},this.isFocused=!1,this.name=void 0,this.label=void 0,this.options=void 0,this.inputHandler=void 0,this.defaultValue=void 0,this.helpText=void 0,this.errorText=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){let t=h;return this.errorText&&(t=r),this.disabled&&(t=l),this.isFocused&&(t=c),t}render(){var t;return i(e,{key:"f55283c73225466b10cec78e6e5ff1c268142d1b"},i("div",{key:"48beb377ca664b867598f8e472a3bb4825aecf9b",class:"form-group d-flex flex-column"},i("div",{key:"13debfb6a725d7f247eb5601e3361a3964b826e9",class:"d-flex align-items-start gap-2"},i("label",{key:"15ac64fb03a5c1cb8f55c18bd7eb41d66328e599",part:o,class:"form-label",htmlFor:this.name},this.label),i("form-control-tooltip",{key:"3d8b43ed6e997234f7c64daf41b2286bec93340e",helpText:this.helpText})),i("select",{key:"1c3eb5699a0b76c694a02fe50e8070483b2960e6",ref:t=>this.selectElement=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>i("option",{value:t.value},t.label)))),i(b,{key:"d223fd1fad44de99812b0e3a3429e3931b798c2c",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},u=class{constructor(i){t(this,i),this.formControlInput=s(this,"formControlInput",7),this.formControlBlur=s(this,"formControlBlur",7),this.handleFormControlInput=t=>{const s=t.target,i=s.getAttribute("name");this.inputHandler(i,s.value),this.formControlInput.emit({name:i,value:s.value})},this.updateInput=t=>{const s=this.el.querySelector("input");s&&(s.value=t||"")},this.isFocused=!1,this.name=void 0,this.label=void 0,this.inputHandler=void 0,this.defaultValue=void 0,this.helpText=void 0,this.errorText=void 0,this.maxLength=void 0,this.keyDownHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.errorText?r:this.disabled?l:this.isFocused?c:h}render(){return i(e,{key:"fde1ad44fc7048a5387f1b4cbaef5e33a4c835e9"},i("div",{key:"6b91df1b992a5505b490fff460d21f4a9d12a816",class:"form-group d-flex flex-column"},i("div",{key:"2605c7cbe333c8b68f861c44ca72e4b0cbd647c8",class:"d-flex align-items-start gap-2"},i("label",{key:"603202cacc1ae6ea0210e6600791f7a9c9e87777",part:o,class:"form-label",htmlFor:this.name},this.label),i("form-control-tooltip",{key:"a3024f26b2ab58737422f644714cc2ee36933ac0",helpText:this.helpText})),i("input",{key:"46c19900a311b88b41c25533d6a6d4cbbb727be5",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),i(b,{key:"1f4d9ba0fe5df28d0c576b5501df94350eeddeee",errorText:this.errorText,name:this.name})))}get el(){return a(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},m=class{constructor(s){t(this,s),this.anchorIcon=void 0,this.tooltip=void 0,this.helpText=void 0}show(){this.tooltip.classList.add("show")}hide(){this.tooltip.classList.remove("show")}render(){return this.helpText?i("div",{class:"tooltip-container"},i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-question-square tooltip-icon",viewBox:"0 0 16 16",ref:t=>this.anchorIcon=t,part:f},i("path",{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),i("path",{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"})),i("custom-popper",{trigger:"hover",placement:"top",anchorRef:this.anchorIcon},i("div",{class:"tooltip bs-tooltip-top",part:d,role:"tooltip",ref:t=>this.tooltip=t},i("div",{class:"tooltip-inner",part:n},this.helpText)))):null}};export{p as form_control_select,u as form_control_text,m as form_control_tooltip}
@@ -1 +0,0 @@
1
- import{r as s,c as t,h as e,H as i}from"./p-2783e363.js";import{ad as a,ae as h,af as o,ag as c,ah as r,l as d}from"./p-2dd39017.js";import{F as f}from"./p-f1d6e14f.js";import{F as b}from"./p-d4724349.js";const n=class{constructor(e){s(this,e),this.formControlInput=t(this,"formControlInput",7),this.formControlBlur=t(this,"formControlBlur",7),this.handleFormControlInput=s=>{s.preventDefault();const t=s.target,e=t.getAttribute("name");this.inputHandler(e,t.checked),this.formControlInput.emit({name:e,value:t.value})},this.updateInput=s=>{this.checkboxElement.checked=s},this.isFocused=!1,this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.checked=void 0,this.inputHandler=void 0,this.disabled=void 0}get part(){return this.errorText?a:this.isFocused&&this.checked?h:this.isFocused?o:this.checked?c:r}render(){return e(i,{key:"36192fe5f4e99ccc8cb77b6a0058d68427b6dc79"},e("div",{key:"3fd77dbca4264579b0e4293bc537dea99a9e325b",class:"form-group d-flex flex-column"},e("div",{key:"737b2076e66604ce3fc1b141deb1909a8ac2be27",class:"form-check"},e("input",{key:"3d606b0c14eda0ffba58bd844b75e3ca23f0a611",ref:s=>this.checkboxElement=s,type:"checkbox",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-check-input is-invalid":"form-check-input",disabled:this.disabled,checked:this.checked}),e("label",{key:"2a8af56e9bee18f4252ea436ae76d65128ee1648",class:"form-check-label",htmlFor:this.name,part:d},this.label)),e(f,{key:"013c9b143992a088692de81b623bffb6b4e5f06f",helpText:this.helpText,name:this.name}),e(b,{key:"0b6814622ff6d0a61d251aea399600ead731ad1a",errorText:this.errorText,name:this.name})))}};export{n as form_control_checkbox}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-2783e363.js";import{u as d,a as t,b as s}from"./p-7d85af5c.js";import{P as o,S as i}from"./p-525db3e8.js";import{h as l}from"./p-2dd39017.js";import"./p-1ff8810b.js";import"./p-6078a370.js";const r=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))},this.representativeDefaultValue=void 0,this.errors=void 0,this.formController=void 0}render(){var e,d,t,r,f,c,b;return a("form",{key:"96a926aefa6b30a3a1332198ffb2fcbb6316580c"},a("fieldset",{key:"59a27475ed22d31dfdccf32ecf05e364bfc8deba"},a("div",{key:"6dfde8190505808fc5101cf0832ec89785e3a73f",class:"d-flex align-items-center gap-2"},a("legend",{key:"6342e6f1fb59e8e1e18bfff0dca55e0661f889a2",class:"mb-0",part:l},"Representative"),a("form-control-tooltip",{key:"bf2f9a2ce23edb0363c074297600ee330a0143fb",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:"5ab4405fdd5338b9f4f4e3b2672a3769ec7b97d9",class:"mt-2"}),a("div",{key:"2a3e3b458077f26b99c53be76970b735764ba12a",class:"row gy-3"},a("div",{key:"03679420425d09f380589efbf7640b73c8ddaacb",class:"col-12 col-md-8"},a("form-control-text",{key:"2ecbbc99442fa73dae73cd1cf398dbf425bf0e84",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:"ff989b9f132092c028b096420314b0b67e1e94d7",class:"col-12 col-md-4"},a("form-control-text",{key:"f0df98d4ca3ed07e1e884df782ddf125321c0ca1",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:"a9f9b6b5039a70ac8539605622cdbc574c01734f",class:"col-12 col-md-6"},a("form-control-text",{key:"6e2736b9d35f9f15d6d4368a89b096bddd1e1b99",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:"75e2f09476bfb82d695e41103337c2bfc64c85a3",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"8fdd1d70b62f92df2347df53494e194c22de9004",name:"phone",label:"Phone Number",defaultValue:null===(r=this.representativeDefaultValue)||void 0===r?void 0:r.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:o.US})),a("div",{key:"b670407555423c18879172d12761020b7d5cecbe",class:"col-12 col-md-4"},a("form-control-date",{key:"a5bca4384bbc736576147d811878ec02e1c27e10",name:"dob_full",label:"Birth Date",defaultValue:null===(f=this.representativeDefaultValue)||void 0===f?void 0:f.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>s(e,this.formController),helpText:"Must be 18 or older."})),a("div",{key:"414c906c37268aa87ae1cfe870d2d23fc4d6602e",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"ab0c71faa0f0982666164b63ec0612d1a82c3b7a",name:"identification_number",label:"SSN",defaultValue:null===(c=this.representativeDefaultValue)||void 0===c?void 0:c.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:i,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),a("div",{key:"ea19a62d5ceddfdd297d042b0b49f711d164f06f",class:"col-12"},a("justifi-identity-address-form",{key:"276a217bd4a538357971f3a2c5771ba45bef5b53",errors:this.errors.address,defaultValues:null===(b=this.representativeDefaultValue)||void 0===b?void 0:b.address,handleFormUpdate:this.onAddressFormUpdate})))))}};export{r as justifi_business_representative_form_inputs}
@@ -1 +0,0 @@
1
- import{h as i,r as s,c as t}from"./p-2783e363.js";import{B as e,C as r,g as o,t as d}from"./p-2dd39017.js";import{S as l}from"./p-bfe9748b.js";import{E as a}from"./p-365e56fc.js";import{c as n,J as h}from"./p-251c8e97.js";import{a as c,C as v}from"./p-9dd8685c.js";import{B as u}from"./p-a0f715d4.js";import{B as p}from"./p-5d1d2fd7.js";import{m}from"./p-f30cb232.js";import{S as f}from"./p-8946edfd.js";import"./p-daf0303f.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import{T as b,a as w,b as g}from"./p-651c881b.js";import"./p-61f0a2ce.js";import{g as j,a as x}from"./p-87f8c596.js";import{T as y}from"./p-d7bcf8f0.js";import"./p-d5960545.js";import"./p-5f6b4bc9.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";const S=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(f,{width:"25%"})),i("div",{class:"col-12"},i(f,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(f,{width:"50%"}),i(f,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(f,{width:"65%"}),i(f,{width:"35%"}))),k=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(f,{width:"40%",height:"40px"})),i(S,null)),T=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(f,{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(f,null),i(f,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(f,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(f,{width:"80px",height:"32px"}),i(f,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(f,null),i(f,null)))))),E=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event",7),this.submitted=t(this,"submit-event",7),this.businessId=void 0,this.authToken=void 0,this.accountId=void 0,this.shipping=!1,this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.business=void 0,this.terminalModels=void 0,this.orderLimit=void 0,this.order=void 0,this.totalQuantity=0}componentWillLoad(){this.order=new w({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?g.boardingShipping:g.boardingOnly}),n(),this.analytics=new h(this),this.loadData()}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",v.MISSING_PROPS,c.ERROR)}initializeGetBusiness(){m({id:this.businessId,authToken:this.authToken,service:new u})({onSuccess:({business:i})=>{this.business=new p(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,d,l,a;try{const n=await t.fetchTerminalModels(i,s);if(n.error)return r({error:j(n.error),code:x(null===(a=n.error)||void 0===a?void 0:a.code),severity:c.ERROR});e({terminals:(null===(d=null===(o=n.data)||void 0===o?void 0:o.terminal_order_models)||void 0===d?void 0:d.map((i=>new b(i))))||[],orderLimit:null===(l=n.data)||void 0===l?void 0:l.order_limit})}catch(i){const s=x(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:c.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new 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})=>async({terminalOrder:t,onSuccess:e,onError:r})=>{var o;try{const d=await s.orderTerminals(i,t);if(d.error)return r({error:j(d.error),code:x(null===(o=d.error)||void 0===o?void 0:o.code),severity:c.ERROR});{const{data:i}=d;e({data:i})}}catch(i){const s=x(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:c.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(T,null),i(T,null),i(T,null)))}renderError(){if(!this.loading.business&&this.error)return a(this.error.message)}renderBusinessDetails(){var s,t,o,d,l,a,n,h;if(!this.loading.business&&this.business)return i("div",{class:"gap-5 pt-5 mb-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},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===(d=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===d?void 0:d.title),i("div",null,null===(a=null===(l=this.business)||void 0===l?void 0:l.representative)||void 0===a?void 0:a.email),i("div",null,null===(h=null===(n=this.business)||void 0===n?void 0:n.representative)||void 0===h?void 0:h.phone))))}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...":"Submit Order")))}render(){return i(l,{key:"42f9aec08c7bdb7ed3cfb6e206b032ceb8148827"},i("div",{key:"54ebadbfc98a501e59880c5e7f96a288cb559a34",part:d},this.renderLoading(),this.renderError(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{E as justifi_order_terminals}
@@ -1 +0,0 @@
1
- import{c as e,a as t}from"./p-5844a0f0.js";import{l as a,k as n,m as s,n as r,q as o,u as i,v as l,e as c,p as m,x as d,y as p}from"./p-95e55bb1.js";const u=i=>{const l=e({line1:a.required("Enter street address"),line2:n.nullable(),city:s.required("Enter city"),state:r.required("Select state"),postal_code:o.required("Enter postal code"),country:t().required("Select country")}),c=e({line1:a.nullable(),line2:n.nullable(),city:s.nullable(),state:r.nullable(),postal_code:o.nullable(),country:t().required("Select country")});return i?c:l},E=(a,n)=>{const s=e({name:i.required(`Enter ${a} name`),title:l.required(`Enter ${a} title`),email:c.required(`Enter ${a} email`),phone:m.required("Enter phone number"),dob_full:d(a).required("Enter date of birth"),ssn_last4:t().nullable(),identification_number:p,address:u(n)}),r=e({name:i.required(`Enter ${a} name`),title:l.nullable(),email:c.nullable(),phone:m.nullable(),dob_full:d(a).nullable(),ssn_last4:t().nullable(),identification_number:p.nullable(),address:u(n)});return n?r:s};export{u as a,E as i}
@@ -1 +0,0 @@
1
- import{h as r}from"./p-2783e363.js";import{d as t}from"./p-2dd39017.js";const e=e=>{const{errorText:o,name:s}=e;return o?r("small",{class:"form-text text-danger",id:`form-error-text-${s}`,part:t},o):null};export{e as F}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as e}from"./p-2783e363.js";import{a as s,C as o}from"./p-9dd8685c.js";import{g as r,a}from"./p-87f8c596.js";import{C as c}from"./p-646d007a.js";import{c as h,J as d}from"./p-251c8e97.js";import"./p-5f6b4bc9.js";import"./p-daf0303f.js";import"./p-2ca5b5e4.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-abdbcd8e.js";import"./p-651c881b.js";import"./p-61f0a2ce.js";import"./p-d5960545.js";const n=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event",7),this.loadedEvent=i(this,"loaded",7),this.authToken=void 0,this.checkoutId=void 0,this.disableCreditCard=void 0,this.disableBankAccount=void 0,this.disableBnpl=void 0,this.disablePaymentMethodGroup=void 0,this.hideCardBillingForm=void 0,this.iframeOrigin="https://components.justifi.ai",this.getCheckout=void 0,this.complete=void 0,this.errorMessage=""}componentWillLoad(){h(),this.analytics=new d(this),this.initializeGetCheckout()}disconnectedCallback(){this.analytics.cleanup()}initializeGetCheckout(){this.authToken&&this.checkoutId?(this.getCheckout=(({authToken:t,checkoutId:i,service:e})=>async({onSuccess:o,onError:c})=>{var h;try{const d=await e.fetchCheckout(t,i);if(d.error)return c({error:r(d.error),code:a(null===(h=d.error)||void 0===h?void 0:h.code),severity:s.ERROR});o({checkout:d.data})}catch(t){const i=a(null==t?void 0:t.code);return c({error:t.message||t,code:i,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new c}),this.complete=(({authToken:t,checkoutId:i,service:e})=>async({payment:o,onSuccess:c,onError:h})=>{var d;try{const n=await e.complete(t,i,o);if(n.error)return h({error:r(n.error),code:a(null===(d=n.error)||void 0===d?void 0:d.code),severity:s.ERROR});c(n)}catch(t){const i=a(null==t?void 0:t.code);return h({error:t.message||t,code:i,severity:s.ERROR})}})({authToken:this.authToken,checkoutId:this.checkoutId,service:new c})):this.errorEvent.emit({message:"auth-token and checkout-id are required",errorCode:o.MISSING_PROPS,severity:s.ERROR})}propChanged(){this.initializeGetCheckout()}async fillBillingForm(t){this.checkoutCoreRef.fillBillingForm(t)}render(){return e("justifi-checkout-core",{key:"52aca1a3ce8016a382f428ef142abc8aee9da41d",getCheckout:this.getCheckout,authToken:this.authToken,complete:this.complete,disableCreditCard:this.disableCreditCard,disableBankAccount:this.disableBankAccount,disableBnpl:this.disableBnpl,disablePaymentMethodGroup:this.disablePaymentMethodGroup,hideCardBillingForm:this.hideCardBillingForm,iframeOrigin:this.iframeOrigin,ref:t=>{t&&(this.checkoutCoreRef=t)}},e("div",{key:"fabb53264f26320fff2aa0a603c664f47ca380d0",slot:"insurance"},e("slot",{key:"ce09504ef5a48d6b963f4ba39252d681f23d0168",name:"insurance"})))}static get watchers(){return{authToken:["propChanged"],checkoutId:["propChanged"]}}};export{n as justifi_checkout}
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s}from"./p-2783e363.js";import{e as i,f as r,g as a}from"./p-b84ee6d8.js";import{I as o}from"./p-a0f715d4.js";import{F as d}from"./p-5844a0f0.js";import{O as h}from"./p-5d1d2fd7.js";import{i as c}from"./p-d43a38a4.js";import{B as n}from"./p-944f1cc7.js";import{$ as f}from"./p-2dd39017.js";import{B as l}from"./p-73f9be7c.js";import{S as b,P as m}from"./p-525db3e8.js";import{u,a as p,b as y}from"./p-7d85af5c.js";import"./p-9dd8685c.js";import"./p-87f8c596.js";import"./p-5f6b4bc9.js";import"./p-1ff8810b.js";import"./p-6078a370.js";import"./p-95e55bb1.js";import"./p-c9b78275.js";import"./p-61f0a2ce.js";const v=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event",7),this.getOwner=void 0,this.patchOwner=void 0,this.postOwner=void 0,this.authToken=void 0,this.ownerId=void 0,this.businessId=void 0,this.allowOptionalFields=void 0,this.removeOwner=void 0,this.newFormOpen=void 0,this.ownersLength=void 0}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:e}){this.coreComponent.validateAndSubmit({onSuccess:e})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=i({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.patchOwner=r({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.postOwner=a({authToken:this.authToken,service:new o}))}render(){return s("owner-form-core",{key:"9d1b43ef74d1e2d33cc3145c152564eb297b3cee",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,ref:e=>this.coreComponent=e})}},k=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){e(this,s),this.clickEvent=t(this,"click-event",7),this.errorEvent=t(this,"error-event",7),this.formLoading=t(this,"formLoading",7),this.ownerSubmitted=t(this,"ownerSubmitted",7),this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:e=>{this.instantiateOwner(e.data)},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({message:e,errorCode:t,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((e=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async e=>{this.owner=Object.assign({},new h(e)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?l.updateOwner:l.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:l.removeOwner})},this.isLoading=!1,this.formController=void 0,this.errors={},this.owner={},this.ownerId=void 0,this.businessId=void 0,this.getOwner=void 0,this.patchOwner=void 0,this.postOwner=void 0,this.allowOptionalFields=void 0,this.removeOwner=void 0,this.newFormOpen=void 0,this.ownersLength=void 0,this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(e){e.preventDefault(),await this.validate()&&this.submit()}get payload(){let e=new h(this.formController.values.getValue()).payload;return this.ownerId?e:Object.assign(Object.assign({},e),{business_id:this.businessId})}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new d(c("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){return s("form",{key:"b7fc4c0d0fdf3a5aab0a246daffa59022255e6ae",onSubmit:this.validateAndSubmit},s("fieldset",{key:"eee56a5e2e26184086c1301576695b627a1f2ef4"},s("legend",{key:"b3f75638a502cca01da0ed54ec07660554dcd416",class:"fw-semibold fs-5",part:f},this.formTitle),s("br",{key:"0bc020cc7290615db3d3e1ec2b84d5af99ec86f0"}),s("div",{key:"2e7a09c9f4dffac21f2b3e1efe118542f18d89e8",class:"row gy-3"},s("owner-form-inputs",{key:"78ffd296d4ecf0d5f2e50a06fb392cbefb1c9dc7",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController}),s("div",{key:"73256017645b6987cd96006e5fe080402b0602d2",class:"d-flex gap-2 justify-content-start"},s(n,{key:"e2c288cf27ebc2d4dd9c29b2a2ed8e409d0c7564",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(n,{key:"d3d604b4416c8196181ec4fd34b254a0909b2aff",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"4ad0047c67825990c1e4c02d377901d11a7937fa"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},w=class{constructor(t){e(this,t),this.inputHandler=(e,t)=>{u(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{p(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))},this.ownerDefaultValue=void 0,this.errors=void 0,this.formController=void 0}render(){return s("div",{key:"f54192149ae925bcd08b8408816fc41295ef00f4",class:"row gy-3"},s("div",{key:"1f70faf2c08ebf277b465cb1532276f7525aa47f",class:"col-12 col-md-8"},s("form-control-text",{key:"7bae6e4b330cbea14e0be40d1b35e804d62f5323",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"84cbbbf7cfb0e3c41c37b1194292dcb1f191298e",class:"col-12 col-md-4"},s("form-control-text",{key:"c106ea1b06e69d4b4fe3647cd2d0289185fae2e9",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"8040bd2c6f6d67763578117c9a46e8e82aa18abf",class:"col-12 col-md-6"},s("form-control-text",{key:"48aea09125f010bc799dc8d0e909f83c33972c3a",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"00195bf163c16d8052c97de866bda7ac610cb959",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"d02770dcabfc707691ce4262cbca00d30b78a211",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})),s("div",{key:"c86d87082365b5daebce40e69f98a8813198eefd",class:"col-12 col-md-4"},s("form-control-date",{key:"cd2cfaf3c8a6fbb28719cb85ad4b3954ac2ff059",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>y(e,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"f77e5943b8e04dc20cf9c126f6ad8ee67e27ac12",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"3828035484d53d7267c7ce1686658eaba2495147",name:"identification_number",label:"SSN",defaultValue:this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:b,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),s("div",{key:"4a67ced4d2a6f2be7f437e59a119ab97ec8c3ffc",class:"col-12"},s("justifi-identity-address-form",{key:"e4fbe8bbd642d623f306236b83be7800db619506",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate})))}};export{v as justifi_owner_form,k as owner_form_core,w as owner_form_inputs}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i,H as s,g as a}from"./p-2783e363.js";import{F as o}from"./p-d4724349.js";import{i as r,b as h,a as d,a5 as l,c,l as n}from"./p-2dd39017.js";const f=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.files=void 0,this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.multiple=void 0,this.inputHandler=void 0,this.disabled=void 0}render(){return i(s,{key:"4dff12fa7d0cb33919c39db34bbc0957fdd5653f",exportparts:"label,input,input-invalid"},i("div",{key:"ae39b30919625c00463cbbd5bf5172a93b7bd9f1",class:"form-group d-flex flex-column"},i("div",{key:"f0d20dd0d0c3bed154c220722598dfe41dc4cc45",class:"d-flex align-items-start gap-2"},i("label",{key:"768f21bee9cf3e87caacd08ebd7506d01550f206",part:"label",class:"form-label",htmlFor:this.name},this.label),i("form-control-tooltip",{key:"ee446659b7b9503678c16f14a49d564ca8caf27a",helpText:this.helpText})),i("input",{key:"c7eee6e890f87be8a3af204fcdb1cd5d032e5419",type:"file",name:this.name,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?"input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onBlur:()=>this.formControlBlur.emit(),onChange:()=>this.errorText=""}),i(o,{key:"5a87d616b1b4be16b32b69d315f07b05d8d060bc",errorText:this.errorText,name:this.name})))}get el(){return a(this)}},b=class{constructor(i){t(this,i),this.formControlInput=e(this,"formControlInput",7),this.formControlBlur=e(this,"formControlBlur",7),this.handleFormControlInput=t=>{const e=t.target,i=e.getAttribute("name");this.inputHandler(i,e.value),this.formControlInput.emit({name:i,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("textarea");e&&(e.value=t||"")},this.isFocused=!1,this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.defaultValue=void 0,this.maxLength=void 0,this.inputHandler=void 0,this.keyDownHandler=void 0,this.disabled=void 0}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?r:this.errorText?h:this.isFocused?d:this.disabled?l:c}render(){return i(s,{key:"4c7cefde1aa87f6300e8a8addc4526924a289430"},i("div",{key:"650f5d14e0238bc8189935ddaf11dab193b8b0c9",class:"form-group d-flex flex-column"},i("label",{key:"5a1b3d23c4362344ca440cea94a51a50645e3b12",part:n,class:"form-label",htmlFor:this.name},this.label),i("textarea",{key:"20b1055d4d6ebe28014c039ed007aa807a314ff9",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",disabled:this.disabled}),i("form-control-help-text",{key:"f5e16b2e1db3865366ae00188eef913b5639c3ca",helpText:this.helpText,name:this.name}),i("form-control-error-text",{key:"f0c3f58e74bf08be61216813ae55be1a7e334fdf",errorText:this.errorText,name:this.name})))}get el(){return a(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{f as form_control_file_v2,b as form_control_textarea}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-2783e363.js";import{T as a,a as i,b as r,c,d as h}from"./p-c380213d.js";import{U as o,V as d}from"./p-2dd39017.js";import"./p-9dd8685c.js";import"./p-daf0303f.js";import{p as n}from"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-651c881b.js";import"./p-61f0a2ce.js";import{t as p,a as b}from"./p-04d59ef8.js";import{o as f,g as m}from"./p-beec0b60.js";import"./p-5d600828.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";import"./p-34a95381.js";import"./p-f20b6ce1.js";const l=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:a.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:a.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:a.row,data:e})},this.getTerminalOrders=void 0,this.columns=void 0,this.terminalOrders=[],this.terminalOrdersTable=void 0,this.loading=!0,this.errorMessage=void 0,this.paging=n,this.pagingParams={}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new i(this.terminalOrders,this.columns,p,b),this.getTerminalOrders&&this.fetchData(),f("set",(()=>{this.pagingParams={}})),f("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=m();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e("div",{key:"07a7b40585feb4644ddcf1a8c202460c79c8b045"},e("div",{key:"e03fc01808d22ce86bfdfaa2086f8492f45ee64e",class:"table-wrapper"},e("table",{key:"0c54da0a4526466e487ad5093cb6c426c4cfb81a",class:"table table-hover",part:o},e("thead",{key:"b4495bd1eb73750104667cb7b74061dca4bb6257",class:"table-head sticky-top"},e("tr",{key:"8df705836f557da6c08b33094eecb0505f8d3ec8",class:"table-light text-nowrap"},this.terminalOrdersTable.columnData.map((t=>t)))),e("tbody",{key:"47b008d75931b177e1acd3bc073f6015dfb17498",class:"table-body"},e(r,{key:"7f2e4e329ec342db4aac981e514e28245cdbc992",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(c,{key:"f4a17608ce889a890f5dd1bf689e6ae24ad28ca9",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(h,{key:"e57677d193f4eff27793d684607572631dc97d8a",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e("tr",{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e("tfoot",{key:"7c427d0b2db99df57ebd097ef8671566f6239d50",class:"sticky-bottom"},e("tr",{key:"b5d8bf7d6d43119f8f31a2ea0e0966e8f0888889",class:"table-light align-middle"},e("td",{key:"f36bd4d815ca6be5c69a264c90b0ce6696bc6664",part:d,colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"25f4964ec46220bbceac9f763e668f77bac79299",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{l as terminal_orders_list_core}
@@ -1 +0,0 @@
1
- import{r as e,h as t,H as s,c as a,g as i}from"./p-2783e363.js";import"./p-9dd8685c.js";import"./p-daf0303f.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-651c881b.js";import{E as c}from"./p-61f0a2ce.js";import{c as o}from"./p-c9b78275.js";import"./p-73f9be7c.js";import{n as r}from"./p-e3c22aa9.js";import{s as l,b as d,k as n}from"./p-2ca5b5e4.js";import{a4 as h,h as f,U as b,k as p,V as m,l as u,c as y,b as k,a5 as v,a as x}from"./p-2dd39017.js";import{S as _}from"./p-8946edfd.js";import{F as g}from"./p-d4724349.js";import"./p-abdbcd8e.js";import"./p-5d1d2fd7.js";import"./p-1ff8810b.js";import"./p-6078a370.js";const j=class{constructor(t){e(this,t),this.inputHandler=void 0,this.errors=void 0,this.storeFiles=void 0}render(){return t("div",{key:"9e04de8ad0e4a1d83f6d8fd1e5a2a5e92c670b92",class:"row gy-3"},t("div",{key:"af8875e58677a94873d548c35e9d2859725058e5",class:"col-12"},t("form-control-file",{key:"030c461b2c2a3da9acf5fcf761f537ea9f6cfcc9",name:"voided_check",label:"Voided Check",documentType:c.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),t("div",{key:"0b6650097a7c6810d9ab9dc76484b49dfe0c7e11",class:"col-12"},t("form-control-file",{key:"cd030043373cc6759022b9c23c674830ceffaff3",name:"bank_statement",label:"Bank Statement",documentType:c.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},T=class{constructor(t){e(this,t),this.defaultValue=void 0,this.errors=void 0,this.inputHandler=void 0,this.formDisabled=void 0}render(){return t("div",{key:"c4420b1e4396ac065b3674f52b124c0d25359435",class:"row gy-3"},t("div",{key:"40e5f2d54a6f60558ec5aa50ff47e6adcf66276b",class:"col-12"},t("form-control-text",{key:"9052ecb4597ecc96841d65929f1d8e5dbf662343",name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"c32bbaf4fe2155f49cb35ee4500016e7f97f24b3",class:"col-12"},t("form-control-text",{key:"3527553824fb36ea616836bf8e9435fc33a2365a",name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"c203663fad98052567b34cbffe316606c963ff23",class:"col-12"},t("form-control-text",{key:"db95259c41fa10b6af2cbc4c9bd7340d609312ee",name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"3228e30c418210556e4e9f99f4f87f753876072d",class:"col-12"},t("form-control-select",{key:"6dde33c0e9a2ac76051e01af836ea372f30d8fbb",name:"account_type",label:"Account Type",options:o,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"266005f1bba23068fc0be35416f5fd8cf3fc7c7c",class:"col-12"},t("form-control-text",{key:"34caa85c53b457de98a524a2eb151899e5bcf21a",name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:r,disabled:this.formDisabled,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),t("div",{key:"69d2e72cf588518e4fe310c2ad5cb37c72fab8c6",class:"col-12"},t("form-control-text",{key:"bc4353e36c9d982aa55f5e933975c4020c316ad0",name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:r,disabled:this.formDisabled,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},w=class{constructor(t){e(this,t),this.documents=[],this.isLoading=!1}render(){return this.isLoading?t(_,{height:"50px"}):this.documents.length?t(s,null,t("div",{class:"card",part:h},t("div",{class:"card-body"},t("h5",{class:"card-title",part:f},"Documents Already on File"),t("div",{class:"table-responsive"},t("table",{class:"table table-sm table-borderless",part:b},t("thead",null,t("tr",null,t("th",{style:{width:"25%"},part:p,scope:"col"},"File Name"),t("th",{style:{width:"25%"},part:p,scope:"col"},"File Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Document Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Date Uploaded"))),t("tbody",null,this.documents.sort(((e,t)=>e.document_type.localeCompare(t.document_type))).map(((e,s)=>t("tr",{class:0===s?"border-bottom border-top":"border-bottom"},t("td",{part:m},e.file_name),t("td",{part:m},e.file_type),t("td",{part:m},l(e.document_type)),t("td",{part:m},`${d(e.created_at)} - ${n(e.created_at)}`))))))))),t("hr",null)):null}},H=class{constructor(t){e(this,t),this.formControlInput=a(this,"formControlInput",7),this.formControlBlur=a(this,"formControlBlur",7),this.fileSelected=a(this,"fileSelected",7),this.handleFormControlInput=e=>{const t=e.target,s=t.getAttribute("name");this.inputHandler(s,t.value),this.formControlInput.emit({name:s,value:t.value})},this.changeHandler=()=>{const e=this.fileInput.files;e&&this.fileSelected.emit({fileList:e,document_type:this.documentType})},this.files=void 0,this.fileString=void 0,this.isFocused=!1,this.label=void 0,this.name=void 0,this.helpText=void 0,this.errorText=void 0,this.multiple=void 0,this.documentType=void 0,this.inputHandler=void 0,this.disabled=void 0}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let e=y;return this.errorText&&(e=k),this.disabled&&(e=v),this.isFocused&&(e=x),e}render(){return t(s,{key:"ffd39ec9c5c98ba6d51f30fe3f0877807b9218a2"},t("div",{key:"8d95c947132661088128a20350cb8823eb50aaa1",class:"form-group d-flex flex-column"},t("div",{key:"c494f917ca23d99c6dafded70156a62610764223",class:"d-flex align-items-start gap-2"},t("label",{key:"8a6ba2787312c3a6e1e531bc05e4459aaecb6229",part:u,class:"form-label",htmlFor:this.name},this.label),t("form-control-tooltip",{key:"5b68e00507d2211fcc481f007c701179eb4bed78",helpText:this.helpText})),t("input",{key:"d75a0df1951b215b60cee837b102f1b0522cc810",ref:e=>this.fileInput=e,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),t(g,{key:"10231eb3448127011aca32c2e653d7974ab27e2e",errorText:this.errorText,name:this.name})))}get el(){return i(this)}};export{j as bank_account_document_form_inputs,T as bank_account_form_inputs,w as business_documents_on_file,H as form_control_file}
@@ -1 +0,0 @@
1
- import{h as s,r as t,c as e}from"./p-2783e363.js";import{a as i,b as r}from"./p-4acf8ca2.js";import{F as o,c as n}from"./p-5844a0f0.js";import{A as a,C as l,R as h,c}from"./p-5d1d2fd7.js";import{C as d,P as u}from"./p-525db3e8.js";import{h as m}from"./p-2dd39017.js";import{S as p}from"./p-8946edfd.js";import{a as v,r as f,s as b,b as y}from"./p-c9b78275.js";import{a as g,B as w}from"./p-73f9be7c.js";import{z as _,A as x,u as j,B as S,C as T,D as O,E as k,F as C}from"./p-95e55bb1.js";import{C as L,a as H}from"./p-9dd8685c.js";import"./p-daf0303f.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-651c881b.js";import{a as E,b as D}from"./p-61f0a2ce.js";import{n as V}from"./p-e3c22aa9.js";import{B as A}from"./p-944f1cc7.js";import{i as P,a as B}from"./p-d43a38a4.js";import{S as I}from"./p-6078a370.js";import"./p-1ff8810b.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";class W{constructor(s){this.id=s.id,this.account_owner_name=s.account_owner_name,this.full_name=s.full_name,this.account_type=s.account_type,this.account_number=s.account_number,this.acct_last_four=s.acct_last_four,this.account_number_last4=s.account_number_last4,this.routing_number=s.routing_number,this.bank_name=s.bank_name,this.country=s.country,this.currency=s.currency,this.nickname=s.nickname,this.metadata=s.metadata,this.business_id=s.business_id,this.platform_account_id=s.platform_account_id,this.created_at=s.created_at,this.updated_at=s.updated_at}get payload(){return{account_owner_name:this.account_owner_name||"",account_type:this.account_type||"",account_number:this.account_number||"",routing_number:this.routing_number||"",bank_name:this.bank_name||"",nickname:this.nickname||"",business_id:this.business_id||""}}}const F=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(p,{width:"25%"})),s("div",{class:"col-12"},s(p,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(p,{width:"50%"}),s(p,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(p,{width:"65%"}),s(p,{width:"35%"}))),N=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(p,{width:"40%",height:"40px"})),s(F,null),s(F,null),s(F,null)),U=class{constructor(s){t(this,s),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.errorEvent=e(this,"error-event",7),this.formLoading=e(this,"formLoading",7),this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.additional_questions=new a(s.data.additional_questions||{}),this.formController.setInitialValues(Object.assign({},this.additional_questions))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:g.additionalQuestions}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t})),this.additional_questions=new a(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.formController=void 0,this.errors={},this.additional_questions={},this.recurringPayments=!1,this.isLoading=!1,this.getBusiness=void 0,this.patchBusiness=void 0,this.allowOptionalFields=void 0}recurringPaymentsWatcher(s){this.recurringPayments="Yes"===(null==s?void 0:s.business_recurring_payments)}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return{additional_questions:new a(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(i(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){var t,e,i,r,o,n,a;const l=this.formController.getInitialValues();return this.isLoading?s(N,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:m},"Additional Questions"),s("form-control-tooltip",{helpText:"This information helps us understand the business and identify and monitor trends to safeguard you and your customers."})),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},s("div",{class:"col-12 col-md-6"},s("form-control-monetary",{name:"business_revenue",label:"What is your business’ estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(t=this.errors)||void 0===t?void 0:t.business_revenue,defaultValue:null==l?void 0:l.business_revenue,maskOptions:d.WHOLE})),s("div",{class:"col-12 col-md-6"},s("form-control-monetary",{name:"business_payment_volume",label:"What is your business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(e=this.errors)||void 0===e?void 0:e.business_payment_volume,defaultValue:null==l?void 0:l.business_payment_volume,maskOptions:d.WHOLE})),s("div",{class:"col-12"},s("form-control-select",{name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(i=this.errors)||void 0===i?void 0:i.business_when_service_received,options:v,defaultValue:null==l?void 0:l.business_when_service_received})),s("div",{class:"col-12"},s("form-control-select",{name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(r=this.errors)||void 0===r?void 0:r.business_recurring_payments,options:f,defaultValue:null==l?void 0:l.business_recurring_payments})),s("div",{class:"col-12",hidden:!this.recurringPayments},s("form-control-text",{name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(o=this.errors)||void 0===o?void 0:o.business_recurring_payments_percentage,defaultValue:null==l?void 0:l.business_recurring_payments_percentage,helpText:"For example: 50% monthly, 50% annual."})),s("div",{class:"col-12"},s("form-control-select",{name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(n=this.errors)||void 0===n?void 0:n.business_seasonal,options:b,defaultValue:null==l?void 0:l.business_seasonal})),s("div",{class:"col-12"},s("form-control-text",{name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business? (optional)",inputHandler:this.inputHandler,errorText:null===(a=this.errors)||void 0===a?void 0:a.business_other_payment_details,defaultValue:null==l?void 0:l.business_other_payment_details})))))}static get watchers(){return{additional_questions:["recurringPaymentsWatcher"]}}},q=(s,t)=>{const e=n({bank_name:_.required("Enter bank name"),nickname:x.required("Enter nickname"),account_owner_name:j.required("Enter account owner name"),account_type:S.required("Select account type"),account_number:T.required("Enter account number"),routing_number:O.required("Enter routing number"),voided_check:k(s,t),bank_statement:C(s,t)}),i=n({bank_name:_.nullable(),nickname:x.nullable(),account_owner_name:j.nullable(),account_type:S.nullable(),account_number:T.nullable(),routing_number:O.nullable(),voided_check:k(s,t),bank_statement:C(s,t)});return t?i:e},R=class{constructor(s){t(this,s),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.errorEvent=e(this,"error-event",7),this.formLoading=e(this,"formLoading",7),this.initializeFormController=()=>{this.formController=new o(q(this.existingDocuments,this.allowOptionalFields)),this.formController.setInitialValues(Object.assign({},this.bankAccount)),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.storeFiles=s=>{const t=Array.from(s.detail.fileList),e=s.detail.document_type,i=t.map((s=>new E({file:s,document_type:e},this.businessId)));this.documentData[e]=i},this.getData=()=>{this.isLoading=!0,this.getBusiness({onSuccess:s=>{s.data.bank_accounts.length>0?this.bankAccount=new W(s.data.bank_accounts[0]):(this.bankAccount=new W({}),this.bankAccount.business_id=this.businessId),this.existingDocuments=s.data.documents},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.initializeFormController(),this.isLoading=!1}})},this.postDocumentRecordData=async s=>{this.isLoading=!0;const t=s.record_data;return new Promise((e=>{this.postDocumentRecord({payload:t,onSuccess:t=>{e(this.handleDocRecordResponse(s,t))},onError:({error:s,code:t,severity:i})=>{this.errorEvent.emit({message:s,errorCode:t,severity:i}),e(!1)}})}))},this.handleDocRecordResponse=(s,t)=>t.error?(this.errorEvent.emit({errorCode:L.POST_ERROR,message:t.error.message,severity:H.ERROR,data:t.error}),!1):(s.setPresignedUrl(t.data.presigned_url),!0),this.uploadDocument=async s=>{if(!s.presigned_url)throw new Error("Presigned URL is not set");const t=await fetch(s.presigned_url,{method:"PUT",body:s.fileString});return this.handleUploadResponse(t)},this.handleUploadResponse=s=>!s.error||(this.errorEvent.emit({errorCode:L.POST_ERROR,message:s.error.message,severity:H.ERROR,data:s.error}),!1),this.formController=void 0,this.errors={},this.bankAccount={},this.existingDocuments=[],this.documentData=new D,this.isLoading=!1,this.businessId=void 0,this.getBusiness=void 0,this.postBankAccount=void 0,this.postDocumentRecord=void 0,this.allowOptionalFields=void 0}watchHandler(s){this.formLoading.emit(s)}async validateAndSubmit({onSuccess:s}){this.existingBankAccount?this.sendData(s):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(q(this.existingDocuments,this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get postPayload(){return new W(this.formController.values.getValue()).payload}get existingBankAccount(){var s;return!!(null===(s=this.bankAccount)||void 0===s?void 0:s.id)}async sendData(s){try{if(!this.existingBankAccount&&!await this.postBankAccountData())return;if(!await this.postBusinessDocuments())return;s()}catch(s){this.errorEvent.emit({message:s,errorCode:L.POST_ERROR,severity:H.ERROR})}}async postBankAccountData(){let s;return this.isLoading=!0,new Promise((t=>{let e=!1;this.postBankAccount({payload:this.postPayload,onSuccess:t=>{s=t,e=!0},onError:({error:s,code:t,severity:i})=>{e=!1,this.errorEvent.emit({message:s,errorCode:t,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:s,formStep:g.bankAccount}),this.isLoading=!1,t(e)}})}))}async postBusinessDocuments(){this.isLoading=!0;try{const s=Object.values(this.documentData).flat();return!s.length||!(await Promise.all(s.map((s=>this.postDocumentRecordData(s))))).includes(!1)&&!(await Promise.all(s.map((s=>this.uploadDocument(s))))).includes(!1)}finally{this.isLoading=!1}}render(){const t=this.formController.getInitialValues();return this.isLoading?s(N,null):s("form",null,s("fieldset",{class:"mb-4"},s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:m},"Bank Account Info"),s("form-control-tooltip",{helpText:"This direct deposit account is the designated bank account where incoming funds will be deposited. The name of this account must match the registered business name exactly. We are not able to accept personal accounts unless your business is a registered sole proprietorship."})),s("hr",{class:"mt-2"}),s("bank-account-form-inputs",{defaultValue:t,errors:this.errors,inputHandler:this.inputHandler,formDisabled:this.existingBankAccount})),s("fieldset",{class:"mt-4"},s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:m},"Document Uploads"),s("form-control-tooltip",{helpText:"These documents are required for underwriting purposes. Various file formats such as PDF, DOC, DOCX, JPEG, and others are accepted. Multiple files can be uploaded for each document category."})),s("hr",{class:"mt-2"}),s("business-documents-on-file",{documents:this.existingDocuments,isLoading:this.isLoading}),s("bank-account-document-form-inputs",{inputHandler:this.inputHandler,errors:this.errors,storeFiles:this.storeFiles})))}static get watchers(){return{isLoading:["watchHandler"]}}},Y=class{constructor(s){t(this,s),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.errorEvent=e(this,"error-event",7),this.formLoading=e(this,"formLoading",7),this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.coreInfo=new l(s.data),this.formController.setInitialValues(Object.assign({},this.coreInfo))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:g.businessInfo}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.formController=void 0,this.errors={},this.coreInfo={},this.isLoading=!1,this.businessId=void 0,this.getBusiness=void 0,this.patchBusiness=void 0,this.allowOptionalFields=void 0}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return new l(this.formController.values.getValue()).payload}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(r(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){const t=this.formController.getInitialValues();return this.isLoading?s(N,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:m},"Business Information")),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},s("div",{class:"col-12"},s("form-control-text",{name:"legal_name",label:"Business Name",defaultValue:t.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (don't use acronyms or abbreviations unless you registered that way)."})),s("div",{class:"col-12"},s("form-control-text",{name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:t.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler,helpText:"Enter this exactly as it appears on your tax records (leave blank if you don't have a registered DBA/trade name)"})),s("div",{class:"col-12 col-md-8"},s("form-control-select",{name:"classification",label:"Business Classification",options:y,defaultValue:t.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-4"},s("form-control-date",{name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:t.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"industry",label:"Industry",defaultValue:t.industry,errorText:this.errors.industry,inputHandler:this.inputHandler,helpText:"Describe what you sell"})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"tax_id",label:"Tax ID (EIN or SSN)",defaultValue:t.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,keyDownHandler:V,maxLength:9,helpText:"Employer Identification Numbers (EINs) are nine digits. The federal tax identification number/EIN issued to you by the IRS. It can be found on your tax returns."})),s("div",{class:"col-12"},s("form-control-text",{name:"website_url",label:"Business Website URL",defaultValue:t.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler,helpText:"Don't have a live website? You can use your social media business page, app store link, or staging site URL."})),s("div",{class:"col-12 col-md-6"},s("form-control-text",{name:"email",label:"Business Email Address",defaultValue:t.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{class:"col-12 col-md-6"},s("form-control-number-masked",{name:"phone",label:"Business Phone Number",defaultValue:t.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:u.US})))))}},z=class{constructor(s){t(this,s),this.clickEvent=e(this,"click-event",7),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.errorEvent=e(this,"error-event",7),this.formLoading=e(this,"formLoading",7),this.matchRef=(s,t)=>{const e=this.refs.findIndex((s=>s===t));-1!==e&&(this.refs[e]=s)},this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{s.data.owners.length?this.ownersPayload=s.data.owners.map((s=>({id:s.id}))):this.addOwnerForm()},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1,this.manageRefs()}})},this.sendData=async s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:{owners:this.ownersPayload},onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:g.owners}),this.formLoading.emit(!1)}})},this.addOwnerForm=s=>{this.newFormOpen=!0,this.ownersPayload=[...this.ownersPayload,{id:""}],s&&this.clickEvent.emit({name:w.addOwnerForm})},this.removeOwnerForm=s=>{this.ownersPayload=this.ownersPayload.filter((t=>t.id!==s)),this.newFormOpen&&(this.newFormOpen=!1)},this.ownersPayload=[],this.refs=[],this.newFormOpen=void 0,this.isLoading=!1,this.authToken=void 0,this.businessId=void 0,this.getBusiness=void 0,this.patchBusiness=void 0,this.allowOptionalFields=void 0}get showAddOwnerButton(){return this.ownersPayload.length<4&&!this.newFormOpen}manageRefs(){this.refs=this.ownersPayload.map((s=>s.id))}async validateAndSubmit({onSuccess:s}){const t=this.refs.map((s=>s.validate()));if(!(await Promise.all(t)).every((s=>s)))return;const e=this.refs.map((s=>s.submit()));(await Promise.all(e)).every((s=>s))&&this.sendData(s)}componentWillLoad(){this.getBusiness&&this.getData()}ownersWatcher(){this.manageRefs()}handleOwnerSubmit(s){const t=s.detail,e=this.ownersPayload.map((s=>s.id===t.id?t:s));e.includes(t)||(e[this.ownersPayload.findIndex((s=>!s.id))]=t,this.newFormOpen&&(this.newFormOpen=!1)),this.ownersPayload=e}render(){return this.isLoading?s(N,null):s("div",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:m},"Owners"),s("form-control-tooltip",{helpText:"For partnerships, LLCs or privately held corporations, the business is required to apply with all individuals with 25% or more ownership to the application. For charities and registered non-profits, the business is required to apply with 1 individual with substantial control over the entity, such as a board member or director."})),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},this.ownersPayload.map((t=>s("justifi-owner-form",{key:t.id,authToken:this.authToken,businessId:this.businessId,ownerId:t.id,removeOwner:this.removeOwnerForm,newFormOpen:this.newFormOpen,ownersLength:this.ownersPayload.length,allowOptionalFields:this.allowOptionalFields,ref:s=>this.matchRef(s,t.id)})))),s("div",{class:"d-flex justify-content-start"},s("div",{class:"gap-2"},s(A,{variant:"primary",onClick:()=>this.addOwnerForm(!0),hidden:!this.showAddOwnerButton},"Add Owner"))))}static get watchers(){return{ownersPayload:["ownersWatcher"]}}},G=class{constructor(s){t(this,s),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.errorEvent=e(this,"error-event",7),this.formLoading=e(this,"formLoading",7),this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.representative=new h(s.data.representative||{}),this.formController.setInitialValues(Object.assign({},this.representative))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:g.representative}),this.formLoading.emit(!1)}})},this.formController=void 0,this.errors={},this.representative={},this.isLoading=!1,this.getBusiness=void 0,this.patchBusiness=void 0,this.allowOptionalFields=void 0}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return{representative:new h(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(P("representative",this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){return this.isLoading?s(N,null):s("justifi-business-representative-form-inputs",{representativeDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController})}},J=class{constructor(s){t(this,s),this.stepCompleteEvent=e(this,"complete-form-step-event",7),this.errorEvent=e(this,"error-event",7),this.formLoading=e(this,"formLoading",7),this.getData=()=>{this.formLoading.emit(!0),this.isLoading=!0,this.getBusiness({onSuccess:s=>{this.legal_address=new c(s.data.legal_address||{}),this.formController.setInitialValues(Object.assign({},this.legal_address))},onError:({error:s,code:t,severity:e})=>{this.errorEvent.emit({message:s,errorCode:t,severity:e})},final:()=>{this.formLoading.emit(!1),this.isLoading=!1}})},this.sendData=s=>{let t;this.formLoading.emit(!0),this.patchBusiness({payload:this.patchPayload,onSuccess:e=>{t=e,s()},onError:({error:s,code:e,severity:i})=>{t=s,this.errorEvent.emit({message:s,errorCode:e,severity:i})},final:()=>{this.stepCompleteEvent.emit({response:t,formStep:g.legalAddress}),this.formLoading.emit(!1)}})},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))},this.formController=void 0,this.errors={},this.legal_address={},this.isLoading=!1,this.getBusiness=void 0,this.patchBusiness=void 0,this.allowOptionalFields=void 0}async validateAndSubmit({onSuccess:s}){this.formController.validateAndSubmit((()=>this.sendData(s)))}get patchPayload(){return{legal_address:new c(this.formController.values.getValue()).payload}}componentWillLoad(){this.getBusiness&&this.getData(),this.formController=new o(B(this.allowOptionalFields))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}render(){var t,e,i,r,o,n;const a=this.formController.getInitialValues();return this.isLoading?s(N,null):s("form",null,s("fieldset",null,s("div",{class:"d-flex align-items-center gap-2"},s("legend",{class:"mb-0",part:m},"Legal Address of your Business"),s("form-control-tooltip",{helpText:"No PO Boxes."})),s("hr",{class:"mt-2"}),s("div",{class:"row gy-3"},s("div",{class:"col-12"},s("form-control-text",{name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line1,errorText:null===(t=this.errors)||void 0===t?void 0:t.line1})),s("div",{class:"col-12"},s("form-control-text",{name:"line2",label:"Address Line 2 (optional)",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.line2,errorText:null===(e=this.errors)||void 0===e?void 0:e.line2})),s("div",{class:"col-12"},s("form-control-text",{name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.city,errorText:null===(i=this.errors)||void 0===i?void 0:i.city})),s("div",{class:"col-12"},s("form-control-select",{name:"state",label:"State",options:I,inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.state,errorText:null===(r=this.errors)||void 0===r?void 0:r.state})),s("div",{class:"col-12"},s("form-control-text",{name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.postal_code,errorText:null===(o=this.errors)||void 0===o?void 0:o.postal_code,maxLength:5,keyDownHandler:V})),s("div",{class:"col-12"},s("form-control-select",{name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==a?void 0:a.country,errorText:null===(n=this.errors)||void 0===n?void 0:n.country,disabled:!0})))))}};export{U as justifi_additional_questions_form_step_core,R as justifi_business_bank_account_form_step_core,Y as justifi_business_core_info_form_step_core,z as justifi_business_owners_form_step_core,G as justifi_business_representative_form_step_core,J as justifi_legal_address_form_step_core}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-2783e363.js";import{t as e}from"./p-2dd39017.js";const r=r=>{const{helpText:m,name:o}=r;return m?t("small",{class:"form-text text-muted",id:`form-help-text-${o}`,part:e},m):null};export{r as F}
@@ -1 +0,0 @@
1
- import{B as r}from"./p-5d1d2fd7.js";import{a as o}from"./p-9dd8685c.js";import{g as s,a as e}from"./p-87f8c596.js";const t=({id:t,authToken:a,service:c})=>async({onSuccess:i,onError:n})=>{var d;try{const m=await c.fetchBusiness(t,a);if(m.error){return n({error:s(m.error),code:e(null===(d=m.error)||void 0===d?void 0:d.code),severity:o.ERROR})}i({business:new r(m.data)})}catch(r){const s=e(null==r?void 0:r.code);return n({error:r.message||r,code:s,severity:o.ERROR})}};export{t as m}
@@ -1 +0,0 @@
1
- import{h as t}from"./p-2783e363.js";import{B as e,a}from"./p-34a95381.js";import{k as i,m as r}from"./p-2dd39017.js";const n="nickname,provider_serial_number,status",s={nickname:()=>t("th",{part:i,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),provider_serial_number:()=>t("th",{part:i,scope:"col",title:"The serial number of the terminal"},"Serial Number"),provider_id:()=>t("th",{part:i,scope:"col",title:"The provider ID of the terminal"},"Provider ID"),sub_account_name:()=>t("th",{part:i,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:i,scope:"col",title:"The current status of each terminal"},"Status")},o={nickname:(e,a)=>t("td",{part:r(a)},e.nickname),provider_serial_number:(e,a)=>t("td",{part:r(a)},e.provider_serial_number),provider_id:(e,a)=>t("td",{part:r(a)},e.provider_id),sub_account_name:(e,a)=>t("td",{part:r(a)},e.sub_account_name),status:(i,n)=>t("td",{part:r(n)},t(e,Object.assign({},{connected:{variant:a.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:a.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:a.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"}}[i.status])))};export{o as a,n as d,s as t}
@@ -1 +0,0 @@
1
- import{h as e,r as a,c as t}from"./p-2783e363.js";import{b as s,a as i}from"./p-2ca5b5e4.js";import{a as d,b as c,D as b,c as f,C as o,E as r}from"./p-365e56fc.js";import{B as l}from"./p-944f1cc7.js";import{S as h}from"./p-bfe9748b.js";import{M as y}from"./p-d273f33b.js";import{S as n}from"./p-8946edfd.js";import"./p-2dd39017.js";import"./p-34a95381.js";const v=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(n,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(n,{width:"70%"})),e("div",{class:"col-12"},e(n,{width:"40%"})),e("div",{class:"col-12"},e(n,{width:"40%"})),e("div",{class:"col-12"},e(n,{width:"100%"})),e("div",{class:"col-12"},e(n,{width:"80%"}))),u=class{constructor(e){a(this,e),this.errorEvent=t(this,"error-event",7),this.downloadCSV=()=>{this.getPayoutCSV({payoutId:this.payout.id,onError:({error:e,code:a,severity:t})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:a,severity:t})}})},this.getPayout=void 0,this.getPayoutCSV=void 0,this.payout=void 0,this.loading=!0,this.errorMessage=null}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:a,severity:t})=>{this.errorMessage=e,this.errorEvent.emit({message:e,errorCode:a,severity:t}),this.loading=!1}})}render(){var a;return e(h,{key:"6aab170bbe708372d913c14bcb58b3b0d60dafd8"},this.loading&&e(v,{key:"0aee9ad36b3c4e74b1cb3f8251d0488cede1355c"}),!this.loading&&this.errorMessage&&r(this.errorMessage),!this.loading&&this.payout&&e("justifi-details",{key:"c9ad74b0385260d4b1f2d2f7b3e66563b2d706a4","error-message":this.errorMessage},e(d,{key:"6b67e623a6cb67207007ba4319aa437996118dd9",slot:"head-info",badge:y(null===(a=this.payout)||void 0===a?void 0:a.status),title:this.payout.formattedPaymentAmount(this.payout.amount)},e(c,{key:"ff1c335e90ad0403a607491e4ff0b0adac52f255",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payout.updated_at)} ${i(this.payout.updated_at)}`}),e(c,{key:"0c2e9555136ce806bc744dd2a83c7a1e10fa7ea7",classes:"border-1 border-end",title:"Created At",value:`${s(this.payout.created_at)} ${i(this.payout.created_at)}`}),e(c,{key:"0c813d23ddbe26f29f1ad03dc43b9c5fbf2d6ab6",title:"ID",value:this.payout.id}),e("div",{key:"762b4fc60643def05b7f8e84ce170d6295654631",class:"m-4"},e(l,{key:"c5f304fb7f54838da6785a0bf19c423a98bdbf34",variant:"secondary",class:"btn btn-outline-secondary d-flex align-items-center",onClick:this.downloadCSV},"Export CSV"))),e("div",{key:"b307f177086cd6b1eeb0f384cce772cd04ff33ad",slot:"detail-sections"},e(b,{key:"bad67a9d2cde5bff23b5c959f9b7564fdc996300",sectionTitle:"Details"}),e("div",{key:"6986bef4813aadb505acaf5cdd07b853c271e442",class:"d-table gap-2 w-100"},e(f,{key:"dad10fde82b1009a9821f1e1cc2c2e65baa5f6b7",title:"Date paid",value:s(this.payout.deposits_at)}),e(f,{key:"bf21ac446b54bdfcec020d6086546a0b20f42d01",title:"Statement Description",value:this.payout.description}),e(f,{key:"30f7609216b42f3918929a6a02b30a6a23689921",title:"Payout Method",value:this.payout.delivery_method}),e(f,{key:"e7d93fa8d865162098e105d4041c12af757db68b",title:"Amount",value:this.payout.formattedPaymentAmount(this.payout.amount)}),e(f,{key:"99b76f8abc8f0077df988cf38cfb74e77a7e881f",title:"Fee",value:this.payout.formattedPaymentAmount(this.payout.fees_total)})),e(b,{key:"cfef47442eeb83514ca10fab25d12f1439414fc0",sectionTitle:"Account"}),e("div",{key:"901423f1ca47bf79ab6daa63368fea0032e46d58",class:"d-table gap-2 w-100"},e(f,{key:"f3e215b7aad43a3a3914b885189700e87758cca6",title:"ID",value:this.payout.account_id}),e(f,{key:"795054cd2f8bda2a735e9ac64652da92dac34f61",title:"Account Type",value:this.payout.bank_account.account_type}),e(f,{key:"9c190036635aed95d74bce36ec257ada41b57cba",title:"Institution",value:this.payout.bank_account.account_type}),e(f,{key:"c1002cff85b80024804a858ef519feb4a86d46ff",title:"Routing Number",value:this.payout.bank_account.routing_number}),e(f,{key:"0183bef106233f302cd8762c7483482bea849ac2",title:"Account Number",value:this.payout.bank_account.account_number_last4})),e(b,{key:"e87d57050d5dee72a8dccfe2ca2deee385e6dc61",sectionTitle:"Metadata"}),e("div",{key:"9aefd212e7aa680b34f5af6a373a47997238496e",class:"d-table gap-2 w-100"},e(o,{key:"a9c9337a788cb2611787278768968e638a8c000d",metadata:this.payout.metadata})))))}static get watchers(){return{getPayout:["getPayoutWatcher"]}}};export{u as payout_details_core}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i}from"./p-2783e363.js";import{c as s,d as a,F as o}from"./p-5844a0f0.js";import{A as r}from"./p-5f6b4bc9.js";import"./p-9dd8685c.js";import"./p-daf0303f.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import"./p-651c881b.js";import"./p-61f0a2ce.js";import{C as n}from"./p-525db3e8.js";import{S as d}from"./p-bfe9748b.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";const f=s().shape({amount:a().required("Amount is required").typeError("Amount must be a number").positive("Amount must be positive").test("amount","Refund amount cannot be more than the original payment amount",(function(t){return t<=this.options.context.amount})).nullable()}),c=class{constructor(i){t(this,i),this.submitted=e(this,"submitted",7),this.authToken=void 0,this.paymentId=void 0,this.amount=0,this.submitButtonText="Submit",this.withButton=void 0,this.refundInfoText=void 0,this.errors={},this.isSubmitting=!1}componentWillLoad(){this.formController=new o(f),this.formController.setInitialValues({amount:this.amount,message:""}),this.initializeApi()}componentDidLoad(){this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}async handleSubmit(t){t.preventDefault(),this.formController.validateAndSubmit(this.submitRefund.bind(this),{amount:this.amount})}async submitRefund(){this.isSubmitting=!0;const t=this.formController.values.getValue();try{await this.api.post(`payments/${this.paymentId}/refunds`,t),this.submitted.emit(t)}catch(t){console.error("Error submitting refund:",t),this.submitted.emit(t)}finally{this.isSubmitting=!1}}handleInput(t,e){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))}initializeApi(){this.authToken||console.warn("Warning: Missing auth-token."),this.api=r({authToken:this.authToken,apiOrigin:"https://wc-proxy.justifi.ai"})}render(){var t;return i(d,{key:"7becd3fcc3a0beefef5efdb860616aa60f7e61ad"},i("h1",{key:"7125ac0e8452db4013d9065054aca8d65ead0138"},"Refund"),this.refundInfoText&&i("div",{key:"b60dbcac95e75469bab9e575efe5eba40d629693",class:"d-flex align-items-center flex-row gap-4 border-top border-bottom my-4 p-3",role:"alert"},i("img",{key:"231e5bcb4fdd82ea4e9bb0597bfe194759eb8e22",src:"/info-icon.svg",alt:"Information",height:"30",width:"30"}),i("p",{key:"21faa4040e99ee142e0f06246fc8317dcc5dfa28",class:"m-0",innerHTML:this.refundInfoText})),i("form",{key:"4a8671c7f833279c14e29ae0f4054586fa7ecbba",onSubmit:t=>this.handleSubmit(t),class:"d-grid gap-4"},i("div",{key:"d4296520cb377a6b61547615a2b95a3088ace83a",class:"form-group"},i("form-control-monetary",{key:"dbe00249e022722aea24f9967408625b7460f0f7",name:"amount",label:"Refund Amount",defaultValue:(null===(t=this.amount)||void 0===t?void 0:t.toString())||"",maskOptions:n.DECIMAL,inputHandler:(t,e)=>this.handleInput(t,e),errorText:this.errors.amount})),i("div",{key:"765d36337fc31bd6ade5b9a94397b83e7f46e2a8",class:"form-group"},i("form-control-text",{key:"3f3bc7e95568944d876fcf95e98ba9d871479096",name:"notes",label:"Additional Notes",inputHandler:(t,e)=>this.handleInput(t,e),errorText:this.errors.notes})),this.withButton&&i("div",{key:"4576ce0e5d04f063fd53045845fa5a4cf5bc6383",class:"form-group d-flex flex-row-reverse"},i("button",{key:"6165726b003006432d82ce5792a961ea2f42d654",type:"submit",disabled:!!this.isSubmitting,class:"btn btn-primary ml-auto"},this.submitButtonText))))}};export{c as justifi_refund_form}
@@ -1 +0,0 @@
1
- import{r as i,c as t,h as s}from"./p-2783e363.js";import{a as r,C as e}from"./p-9dd8685c.js";import{c as o,J as a}from"./p-251c8e97.js";import{T as n}from"./p-d7bcf8f0.js";import"./p-daf0303f.js";import"./p-56f6ce4c.js";import"./p-9894484a.js";import{d as c}from"./p-651c881b.js";import"./p-61f0a2ce.js";import{g as p,a as h}from"./p-87f8c596.js";import{m as d,S as m}from"./p-52e2cc5e.js";import{S as f}from"./p-bfe9748b.js";import{d as u}from"./p-f87e871d.js";import"./p-d5960545.js";import"./p-5f6b4bc9.js";import"./p-2ca5b5e4.js";import"./p-abdbcd8e.js";import"./p-34a95381.js";import"./p-2dd39017.js";const l=class{constructor(s){i(this,s),this.errorEvent=t(this,"error-event",7),this.handleErrorEvent=i=>{this.errorMessage=i.detail.message,this.errorEvent.emit(i.detail)},this.getTerminals=void 0,this.getSubAccounts=void 0,this.errorMessage=null,this.accountId=void 0,this.authToken=void 0,this.apiOrigin="https://wc-proxy.justifi.ai",this.columns=u}componentWillLoad(){o(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:i,authToken:t,service:s,apiOrigin:e})=>async({params:o,onSuccess:a,onError:n})=>{var d,m;try{const f=await s.fetchTerminals(i,t,o,e);if(f.error)return n({error:p(f.error),code:h(null===(m=f.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const i=Object.assign({},f.page_info);a({terminals:(null===(d=f.data)||void 0===d?void 0:d.map((i=>new c(i))))||[],pagingInfo:i})}}catch(i){const t=h(null==i?void 0:i.code);return n({error:i.message||i,code:t,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new n,apiOrigin:this.apiOrigin}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=d({accountId:this.accountId,authToken:this.authToken,service:new m,apiOrigin:this.apiOrigin}))}render(){return s(f,{key:"9ad0d637bd745ee2296142c426d539f90cf403a5"},s("terminals-list-core",{key:"26b420a410976adea74b8545d367b5f9df7178d3",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{l as justifi_terminals_list}