@justifi/webcomponents 6.1.0-rc.1 → 6.1.0-rc.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (778) hide show
  1. package/dist/cjs/{Api-CwTLkFY4.js → Api-DqzbA2qk.js} +1 -1
  2. package/dist/cjs/{Business-DCRzZf0w.js → Business-DWHy_-z9.js} +299 -9
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -2
  4. package/dist/cjs/{badge-BmOSt4gS.js → badge-BJVdpSU-.js} +1 -1
  5. package/dist/cjs/bank-account-document-form-inputs_6.cjs.entry.js +132 -0
  6. package/dist/cjs/bank-account-form.cjs.entry.js +6 -6
  7. package/dist/cjs/{business-additional-questions-schema-DNbSH3E-.js → business-additional-questions-schema-CetDMUp7.js} +27 -5
  8. package/dist/cjs/business-details-core.cjs.entry.js +4 -4
  9. package/dist/cjs/{business-form-options-CMII7nIK.js → business-form-options-e9UFw4P-.js} +1 -1
  10. package/dist/cjs/business-identity-schema-Cd0tvfJr.js +101 -0
  11. package/dist/cjs/{business.service-Dkhqyggm.js → business.service-Bv9o99Ll.js} +2 -2
  12. package/dist/cjs/{button-7c2RN2yp.js → button-_YJuE8cy.js} +1 -1
  13. package/dist/cjs/card-form.cjs.entry.js +6 -6
  14. package/dist/cjs/{check-pkg-version-BURRKC_7.js → check-pkg-version-CadxBsjl.js} +3 -3
  15. package/dist/cjs/{checkout.service-LwZVVgP5.js → checkout.service-dLB93w3Z.js} +2 -2
  16. package/dist/cjs/{checkout.store-C3f3E24L.js → checkout.store-DC4yVxDj.js} +2 -3
  17. package/dist/cjs/checkouts-list-core.cjs.entry.js +10 -12
  18. package/dist/cjs/{terminal-orders-list-params-state-C4c8UZtP.js → checkouts-list-params-state-ARjo40Y9.js} +1 -1
  19. package/dist/cjs/{checkouts-table-BQUhZZd_.js → checkouts-table-C102WCfy.js} +2 -2
  20. package/dist/cjs/{config-state-B_gyIchD.js → config-state-BeZM7X7J.js} +1 -1
  21. package/dist/cjs/country-config-MCOhn8o3.js +68 -0
  22. package/dist/cjs/{custom-popper_2.cjs.entry.js → custom-popper.cjs.entry.js} +3 -23
  23. package/dist/cjs/{dispute.service-927Gzb0N.js → dispute.service-BmAAnNky.js} +2 -2
  24. package/dist/cjs/form-alert_5.cjs.entry.js +25 -15
  25. package/dist/cjs/form-control-checkbox.cjs.entry.js +5 -5
  26. package/dist/cjs/form-control-date.cjs.entry.js +4 -4
  27. package/dist/cjs/{form-control-error-text-DD0dHGu8.js → form-control-error-text-DJzNQrEz.js} +1 -1
  28. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +5 -5
  29. package/dist/cjs/{form-control-help-text-2QwKi78M.js → form-control-help-text-DII6UDeq.js} +1 -1
  30. package/dist/cjs/form-control-help-text.cjs.entry.js +1 -1
  31. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +6 -6
  32. package/dist/cjs/form-control-monetary.cjs.entry.js +5 -5
  33. package/dist/cjs/form-control-number-masked_3.cjs.entry.js +119 -0
  34. package/dist/cjs/form-control-number.cjs.entry.js +5 -5
  35. package/dist/cjs/form-control-radio.cjs.entry.js +3 -3
  36. package/dist/cjs/{form-control-select_2.cjs.entry.js → form-control-select_3.cjs.entry.js} +25 -6
  37. package/dist/cjs/{form-input-masks-DgXd0f4V.js → form-input-masks-BnNFJ3IJ.js} +9 -4
  38. package/dist/cjs/{get-business-o5jPq_ME.js → get-business-D9ZHyPem.js} +1 -1
  39. package/dist/cjs/{get-payment-details-BSxp1HX0.js → get-payment-details-BHPHzSkH.js} +2 -2
  40. package/dist/cjs/{get-subaccounts-B31f95PR.js → get-subaccounts-Bw76aYu0.js} +3 -3
  41. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +4 -4
  42. package/dist/cjs/{header-1-DMsp0XM7.js → header-1-Da7oKhXY.js} +1 -1
  43. package/dist/cjs/{header-3-BSvFq_IF.js → header-3-uBM_CzcP.js} +1 -1
  44. package/dist/cjs/hidden-input_2.cjs.entry.js +8 -8
  45. package/dist/cjs/{index-Dyzl8Hn6.js → index-CaAefsWD.js} +42 -31
  46. package/dist/cjs/{index-D1Ba20gi.js → index-D-CfIyoF.js} +1 -1
  47. package/dist/cjs/{index.esm-BleZSAc0.js → index.esm-ByC0D4sJ.js} +18 -17
  48. package/dist/cjs/{input-handlers-DYl_0IwC.js → input-handlers-D6QMwPTB.js} +2 -2
  49. package/dist/cjs/{insurance-state-uWOl6jJN.js → insurance-state-KJzYGtVr.js} +2 -2
  50. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +127 -70
  51. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +23 -24
  52. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +10 -10
  53. package/dist/cjs/justifi-apple-pay.cjs.entry.js +10 -10
  54. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +25 -26
  55. package/dist/cjs/justifi-business-details.cjs.entry.js +10 -12
  56. package/dist/cjs/justifi-business-form.cjs.entry.js +25 -21
  57. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +15 -7
  58. package/dist/cjs/justifi-checkout-summary_7.cjs.entry.js +30 -24
  59. package/dist/cjs/justifi-checkout.cjs.entry.js +16 -15
  60. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +7 -9
  61. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +13 -15
  62. package/dist/cjs/justifi-config-provider.cjs.entry.js +3 -3
  63. package/dist/cjs/justifi-details.cjs.entry.js +2 -2
  64. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +2 -2
  65. package/dist/cjs/justifi-dispute-management.cjs.entry.js +9 -11
  66. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +14 -16
  67. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +8 -10
  68. package/dist/cjs/justifi-order-terminals.cjs.entry.js +13 -15
  69. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +28 -19
  70. package/dist/cjs/justifi-payment-details.cjs.entry.js +10 -12
  71. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +39 -24
  72. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -11
  73. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +12 -14
  74. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +6 -6
  75. package/dist/cjs/justifi-payments-list.cjs.entry.js +13 -15
  76. package/dist/cjs/justifi-payout-details.cjs.entry.js +9 -11
  77. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +12 -14
  78. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +6 -6
  79. package/dist/cjs/justifi-payouts-list.cjs.entry.js +14 -16
  80. package/dist/cjs/justifi-refund-payment.cjs.entry.js +13 -15
  81. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +2 -2
  82. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +11 -13
  83. package/dist/cjs/justifi-skeleton.cjs.entry.js +4 -4
  84. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +8 -10
  85. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +11 -13
  86. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +7 -9
  87. package/dist/cjs/justifi-terminals-list.cjs.entry.js +13 -15
  88. package/dist/cjs/loader.cjs.js +2 -2
  89. package/dist/cjs/{package-Cq0M4ut-.js → package-CVxkAS_m.js} +1 -1
  90. package/dist/cjs/pagination-menu.cjs.entry.js +4 -4
  91. package/dist/cjs/payment-details-core.cjs.entry.js +14 -14
  92. package/dist/cjs/payment-method-option.cjs.entry.js +3 -3
  93. package/dist/cjs/{payment.service-DUq-W7tS.js → payment.service-DODmonNs.js} +2 -2
  94. package/dist/cjs/payments-list-core.cjs.entry.js +11 -13
  95. package/dist/cjs/{payments-list-params-state-C4c8UZtP.js → payments-list-params-state-ARjo40Y9.js} +1 -1
  96. package/dist/cjs/{payments-status-3iIQkoov.js → payments-status-5IzqwLep.js} +2 -2
  97. package/dist/cjs/{payments-table-BSHUQhM-.js → payments-table-BcZ6U6p8.js} +23 -3
  98. package/dist/cjs/payout-details-core.cjs.entry.js +10 -10
  99. package/dist/cjs/{payout.service-DoKMr8Xw.js → payout.service-Do8DxBxe.js} +2 -2
  100. package/dist/cjs/payouts-list-core.cjs.entry.js +11 -13
  101. package/dist/cjs/{payouts-list-params-state-C4c8UZtP.js → payouts-list-params-state-ARjo40Y9.js} +1 -1
  102. package/dist/cjs/{payouts-status-DoQbxIms.js → payouts-status-D38A6UrI.js} +2 -2
  103. package/dist/cjs/{payouts-table-BD_Fhz_j.js → payouts-table-Cn_cCCOY.js} +2 -2
  104. package/dist/cjs/{schema-validations-jek_iZ9W.js → schema-validations-0mjPveQ0.js} +46 -7
  105. package/dist/cjs/{skeleton-CuIMC98G.js → skeleton-DlPP4i_w.js} +1 -1
  106. package/dist/cjs/{spinner-CMZXdrPe.js → spinner-BNWG01hP.js} +1 -1
  107. package/dist/cjs/{styled-host-2KXbjOFw.js → styled-host-DSpt9LtB.js} +1 -1
  108. package/dist/cjs/{table-DlQCUVag.js → table-CAWBqvW5.js} +2 -2
  109. package/dist/cjs/table-filters-menu.cjs.entry.js +3 -3
  110. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +10 -12
  111. package/dist/cjs/{checkouts-list-params-state-C4c8UZtP.js → terminal-orders-list-params-state-ARjo40Y9.js} +1 -1
  112. package/dist/cjs/{terminal-orders-table-t6XxNy_K.js → terminal-orders-table-BUA4LcEc.js} +4 -4
  113. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +2 -2
  114. package/dist/cjs/{terminal.service-Iyje71vN.js → terminal.service-bxQnc1JY.js} +2 -2
  115. package/dist/cjs/terminals-list-core.cjs.entry.js +10 -12
  116. package/dist/cjs/terminals-list-params-state-ARjo40Y9.js +22 -0
  117. package/dist/cjs/{terminals-table-BTdKRiBN.js → terminals-table-C2_M7SWl.js} +2 -2
  118. package/dist/cjs/{utils-FFP5ZHyE.js → utils-C6mfHWv-.js} +1 -1
  119. package/dist/cjs/webcomponents.cjs.js +3 -3
  120. package/dist/collection/api/BankAccount.js +4 -0
  121. package/dist/collection/api/Business.js +16 -1
  122. package/dist/collection/api/services/apple-pay.service.js +1 -1
  123. package/dist/collection/collection-manifest.json +4 -1
  124. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +0 -1
  125. package/dist/collection/components/business-details/business-details-core.js +0 -1
  126. package/dist/collection/components/business-details/business-details.js +4 -4
  127. package/dist/collection/components/business-details/core-info-details/core-info-details.js +0 -1
  128. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +0 -1
  129. package/dist/collection/components/business-details/owner-details/owner-details.js +0 -1
  130. package/dist/collection/components/business-details/representative-details/representative-details.js +0 -1
  131. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +2 -2
  132. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +36 -5
  133. package/dist/collection/components/business-forms/business-form/business-form.js +13 -9
  134. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +43 -7
  135. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +29 -8
  136. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +30 -11
  137. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +39 -17
  138. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +49 -8
  139. package/dist/collection/components/business-forms/owner-form/owner-form.js +38 -14
  140. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step-core.js +2 -4
  141. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +7 -7
  142. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +3 -5
  143. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.js +88 -0
  144. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +8 -8
  145. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.js +50 -0
  146. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.js +40 -12
  147. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +32 -7
  148. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-documents-on-file.js +2 -2
  149. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.js +51 -13
  150. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +32 -7
  151. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.js +32 -9
  152. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +32 -7
  153. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +47 -9
  154. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.js +35 -8
  155. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +32 -7
  156. package/dist/collection/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.js +101 -0
  157. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +15 -16
  158. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.js +37 -14
  159. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +32 -7
  160. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +46 -29
  161. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +9 -11
  162. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +41 -15
  163. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +7 -7
  164. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +7 -7
  165. package/dist/collection/components/business-forms/payment-provisioning/test/mockBusiness.js +52 -0
  166. package/dist/collection/components/business-forms/schemas/business-address-schema.js +41 -19
  167. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +74 -39
  168. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +27 -4
  169. package/dist/collection/components/business-forms/schemas/business-form-schema.js +7 -4
  170. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +53 -24
  171. package/dist/collection/components/business-forms/schemas/schema-validations.js +41 -4
  172. package/dist/collection/components/business-forms/utils/country-config.js +47 -0
  173. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  174. package/dist/collection/components/checkout/billing-form/billing-form.js +8 -8
  175. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  176. package/dist/collection/components/checkout/checkout.js +17 -16
  177. package/dist/collection/components/checkout/save-new-payment-method.js +2 -2
  178. package/dist/collection/components/checkout/saved-payment-method.js +3 -4
  179. package/dist/collection/components/checkouts-list/checkouts-list-core.js +3 -5
  180. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +5 -5
  181. package/dist/collection/components/checkouts-list/checkouts-list.js +6 -6
  182. package/dist/collection/components/config-provider/config-provider.js +3 -3
  183. package/dist/collection/components/dispute-management/dispute-management-core.js +5 -6
  184. package/dist/collection/components/dispute-management/dispute-management.js +5 -5
  185. package/dist/collection/components/dispute-management/dispute-notification.js +5 -6
  186. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +4 -4
  187. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +4 -4
  188. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +4 -4
  189. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +2 -5
  190. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +6 -7
  191. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +4 -4
  192. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +4 -4
  193. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +4 -4
  194. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +4 -4
  195. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +4 -4
  196. package/dist/collection/components/filters/table-filters-menu.js +3 -4
  197. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -2
  198. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +4 -4
  199. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +26 -26
  200. package/dist/collection/components/modular-checkout/modular-checkout.js +17 -9
  201. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +10 -10
  202. package/dist/collection/components/modular-checkout/sub-components/bank-account-billing-form-simple.js +3 -3
  203. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  204. package/dist/collection/components/modular-checkout/sub-components/billing-form-full.js +2 -2
  205. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +3 -3
  206. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  207. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +9 -10
  208. package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +1 -1
  209. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  210. package/dist/collection/components/order-terminals/order-terminals.js +9 -9
  211. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +10 -10
  212. package/dist/collection/components/payment-details/payment-details-core.js +8 -9
  213. package/dist/collection/components/payment-details/payment-details.js +4 -4
  214. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +6 -6
  215. package/dist/collection/components/payments-list/payments-list-core.js +3 -4
  216. package/dist/collection/components/payments-list/payments-list-filters.js +12 -12
  217. package/dist/collection/components/payments-list/payments-list.js +6 -6
  218. package/dist/collection/components/payments-list/payments-table.js +21 -1
  219. package/dist/collection/components/payout-details/payout-details-core.js +3 -5
  220. package/dist/collection/components/payout-details/payout-details.js +4 -4
  221. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +6 -6
  222. package/dist/collection/components/payouts-list/payouts-list-core.js +3 -6
  223. package/dist/collection/components/payouts-list/payouts-list-filters.js +6 -6
  224. package/dist/collection/components/payouts-list/payouts-list.js +6 -6
  225. package/dist/collection/components/refund-payment/refund-payment.js +7 -7
  226. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +3 -4
  227. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +10 -10
  228. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +6 -6
  229. package/dist/collection/components/terminals-list/terminals-list-core.js +3 -5
  230. package/dist/collection/components/terminals-list/terminals-list-filters.js +7 -7
  231. package/dist/collection/components/terminals-list/terminals-list.js +6 -6
  232. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +20 -20
  233. package/dist/collection/store/checkout.store.js +1 -2
  234. package/dist/collection/ui-components/custom-popper/custom-popper.js +5 -7
  235. package/dist/collection/ui-components/details/details.js +2 -2
  236. package/dist/collection/ui-components/form/form-control-checkbox.js +14 -15
  237. package/dist/collection/ui-components/form/form-control-date.js +17 -18
  238. package/dist/collection/ui-components/form/form-control-file-v2.js +13 -14
  239. package/dist/collection/ui-components/form/form-control-file.js +16 -17
  240. package/dist/collection/ui-components/form/form-control-monetary.js +15 -17
  241. package/dist/collection/ui-components/form/form-control-number-masked.js +16 -17
  242. package/dist/collection/ui-components/form/form-control-number.js +14 -15
  243. package/dist/collection/ui-components/form/form-control-radio.js +16 -17
  244. package/dist/collection/ui-components/form/form-control-select.js +14 -16
  245. package/dist/collection/ui-components/form/form-control-text.js +16 -18
  246. package/dist/collection/ui-components/form/form-control-textarea.js +16 -18
  247. package/dist/collection/ui-components/form/form-helpers/form-alert/form-alert.js +4 -4
  248. package/dist/collection/ui-components/form/form-helpers/form-control-help-text/form-control-help-text.js +4 -4
  249. package/dist/collection/ui-components/form/form-helpers/form-control-tooltip/form-control-tooltip.js +2 -2
  250. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  251. package/dist/collection/ui-components/form/iframe-input.js +9 -9
  252. package/dist/collection/ui-components/pagination-menu/pagination-menu.js +3 -5
  253. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +13 -14
  254. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +6 -6
  255. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +10 -10
  256. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +9 -10
  257. package/dist/collection/utils/country-codes.js +5 -0
  258. package/dist/collection/utils/form-input-masks.js +8 -0
  259. package/dist/collection/utils/province-options.js +20 -0
  260. package/dist/docs.json +1118 -141
  261. package/dist/esm/{Api-D4tj-h4P.js → Api-DLf3ihCB.js} +2 -2
  262. package/dist/esm/{Business-BCoP0TAV.js → Business-B5rtFhtR.js} +290 -3
  263. package/dist/esm/{Refund-Bc5By0lb.js → Refund-BeI1WGfx.js} +1 -1
  264. package/dist/esm/additional-questions-details_5.entry.js +4 -4
  265. package/dist/esm/{badge-ChwzCNAF.js → badge-CkfrkCoy.js} +2 -2
  266. package/dist/esm/bank-account-document-form-inputs_6.entry.js +125 -0
  267. package/dist/esm/bank-account-form.entry.js +8 -8
  268. package/dist/esm/{business-additional-questions-schema-C6NRHWEL.js → business-additional-questions-schema-DSvdNuI1.js} +26 -5
  269. package/dist/esm/business-details-core.entry.js +5 -5
  270. package/dist/esm/{business-form-options-CgssATyg.js → business-form-options-D6s5H4RI.js} +2 -2
  271. package/dist/esm/business-identity-schema-mN4VhA1v.js +94 -0
  272. package/dist/esm/{business.service-CsbtEDNi.js → business.service-BIALik8Z.js} +3 -3
  273. package/dist/esm/{button-SAIS_5os.js → button-CuZAKl_x.js} +2 -2
  274. package/dist/esm/card-form.entry.js +8 -8
  275. package/dist/esm/{check-pkg-version-Cd_i8U0d.js → check-pkg-version-Bk5bgulF.js} +4 -4
  276. package/dist/esm/{checkout.service-BCkQ9pOA.js → checkout.service-DZDZBIGQ.js} +3 -3
  277. package/dist/esm/{checkout.store-DBvS7cVB.js → checkout.store-DwJGKabu.js} +2 -3
  278. package/dist/esm/checkouts-list-core.entry.js +13 -15
  279. package/dist/esm/{checkouts-list-params-state-C2_GlMKR.js → checkouts-list-params-state-BY5996_y.js} +1 -1
  280. package/dist/esm/{checkouts-table-CItEo0DU.js → checkouts-table-59DpP7zM.js} +4 -4
  281. package/dist/esm/{config-state-Blo0ywwc.js → config-state-C83RkI9h.js} +1 -1
  282. package/dist/esm/country-config-BQ4D46Lb.js +64 -0
  283. package/dist/esm/{custom-popper_2.entry.js → custom-popper.entry.js} +4 -23
  284. package/dist/esm/{dispute.service-CyLtJREK.js → dispute.service-ByJy64X7.js} +3 -3
  285. package/dist/esm/form-alert_5.entry.js +25 -15
  286. package/dist/esm/form-control-checkbox.entry.js +6 -6
  287. package/dist/esm/form-control-date.entry.js +5 -5
  288. package/dist/esm/{form-control-error-text-IXJJ4JpV.js → form-control-error-text-CjrxZorl.js} +2 -2
  289. package/dist/esm/form-control-file-v2_2.entry.js +6 -6
  290. package/dist/esm/{form-control-help-text-CuhIsM3v.js → form-control-help-text-CMUgRhUf.js} +2 -2
  291. package/dist/esm/form-control-help-text.entry.js +1 -1
  292. package/dist/esm/form-control-monetary-provisioning.entry.js +7 -7
  293. package/dist/esm/form-control-monetary.entry.js +7 -7
  294. package/dist/esm/form-control-number-masked_3.entry.js +115 -0
  295. package/dist/esm/form-control-number.entry.js +6 -6
  296. package/dist/esm/form-control-radio.entry.js +4 -4
  297. package/dist/esm/{form-control-select_2.entry.js → form-control-select_3.entry.js} +26 -8
  298. package/dist/esm/{form-input-masks-B-iV5cYd.js → form-input-masks-CVaOFfrI.js} +9 -3
  299. package/dist/esm/{get-business-Crb6P-iI.js → get-business-Xt7B5dSo.js} +1 -1
  300. package/dist/esm/{get-payment-details-BuT0QNOo.js → get-payment-details-B00HoaFm.js} +3 -3
  301. package/dist/esm/{get-subaccounts-VjY6-x_9.js → get-subaccounts-C_yzcZq_.js} +4 -4
  302. package/dist/esm/gross-payment-chart-core.entry.js +6 -6
  303. package/dist/esm/{header-1-zXsamUS3.js → header-1-BukynbFR.js} +2 -2
  304. package/dist/esm/{header-3-DVtaUAlf.js → header-3-D87MAyMK.js} +2 -2
  305. package/dist/esm/hidden-input_2.entry.js +9 -9
  306. package/dist/esm/{index-ZfXl6Xrm.js → index-NOsb-hYl.js} +1 -1
  307. package/dist/esm/{index-qipqIMyC.js → index-_b8l4IX7.js} +42 -31
  308. package/dist/esm/{index.esm-cYgKOXtz.js → index.esm-IWS0494Y.js} +18 -17
  309. package/dist/esm/{input-handlers-CX6mSvOM.js → input-handlers-D3y0TzH9.js} +1 -1
  310. package/dist/esm/{insurance-state-Dh9f36Qh.js → insurance-state-BjY1QRXI.js} +3 -3
  311. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +130 -73
  312. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +26 -27
  313. package/dist/esm/justifi-additional-statement_8.entry.js +11 -11
  314. package/dist/esm/justifi-apple-pay.entry.js +12 -12
  315. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +27 -28
  316. package/dist/esm/justifi-business-details.entry.js +13 -15
  317. package/dist/esm/justifi-business-form.entry.js +28 -24
  318. package/dist/esm/justifi-business-representative-form-inputs.entry.js +16 -8
  319. package/dist/esm/justifi-checkout-summary_7.entry.js +33 -27
  320. package/dist/esm/justifi-checkout.entry.js +19 -18
  321. package/dist/esm/justifi-checkouts-list-filters.entry.js +10 -12
  322. package/dist/esm/justifi-checkouts-list.entry.js +16 -18
  323. package/dist/esm/justifi-config-provider.entry.js +3 -3
  324. package/dist/esm/justifi-details.entry.js +3 -3
  325. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  326. package/dist/esm/justifi-dispute-management.entry.js +11 -13
  327. package/dist/esm/justifi-dispute-notification_3.entry.js +17 -19
  328. package/dist/esm/justifi-gross-payment-chart.entry.js +11 -13
  329. package/dist/esm/justifi-order-terminals.entry.js +16 -18
  330. package/dist/esm/justifi-owner-form_3.entry.js +31 -22
  331. package/dist/esm/justifi-payment-details.entry.js +13 -15
  332. package/dist/esm/justifi-payment-provisioning-core.entry.js +40 -25
  333. package/dist/esm/justifi-payment-provisioning.entry.js +11 -13
  334. package/dist/esm/justifi-payment-transactions-list.entry.js +15 -17
  335. package/dist/esm/justifi-payments-list-filters.entry.js +8 -8
  336. package/dist/esm/justifi-payments-list.entry.js +16 -18
  337. package/dist/esm/justifi-payout-details.entry.js +12 -14
  338. package/dist/esm/justifi-payout-transactions-list.entry.js +15 -17
  339. package/dist/esm/justifi-payouts-list-filters.entry.js +8 -8
  340. package/dist/esm/justifi-payouts-list.entry.js +17 -19
  341. package/dist/esm/justifi-refund-payment.entry.js +16 -18
  342. package/dist/esm/justifi-saved-payment-method.entry.js +3 -3
  343. package/dist/esm/justifi-season-interruption-insurance.entry.js +14 -16
  344. package/dist/esm/justifi-skeleton.entry.js +5 -5
  345. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +11 -13
  346. package/dist/esm/justifi-terminal-orders-list.entry.js +14 -16
  347. package/dist/esm/justifi-terminals-list-filters.entry.js +10 -12
  348. package/dist/esm/justifi-terminals-list.entry.js +16 -18
  349. package/dist/esm/loader.js +3 -3
  350. package/dist/esm/{package-BBO3I4s6.js → package-BRhnhmpB.js} +1 -1
  351. package/dist/esm/pagination-menu.entry.js +5 -5
  352. package/dist/esm/{parts-RvUQ__Pq.js → parts-CA_TyBed.js} +1 -1
  353. package/dist/esm/payment-details-core.entry.js +16 -16
  354. package/dist/esm/payment-method-option.entry.js +4 -4
  355. package/dist/esm/{payment.service-QJEmd6Nl.js → payment.service-B_NytmNz.js} +3 -3
  356. package/dist/esm/payments-list-core.entry.js +14 -16
  357. package/dist/esm/{payments-list-params-state-C2_GlMKR.js → payments-list-params-state-BY5996_y.js} +1 -1
  358. package/dist/esm/{payments-status-DDafc8Yr.js → payments-status-BWv1l1-e.js} +2 -2
  359. package/dist/esm/{payments-table-De3Jb6rY.js → payments-table-BSk36N1O.js} +25 -5
  360. package/dist/esm/payout-details-core.entry.js +12 -12
  361. package/dist/esm/{payout.service-XxyEr0rj.js → payout.service-BJQVlc_Z.js} +3 -3
  362. package/dist/esm/payouts-list-core.entry.js +14 -16
  363. package/dist/esm/{payouts-list-params-state-C2_GlMKR.js → payouts-list-params-state-BY5996_y.js} +1 -1
  364. package/dist/esm/{payouts-status-u1eSRz3Q.js → payouts-status-BujJlH_r.js} +2 -2
  365. package/dist/esm/{payouts-table-BO-MCzXj.js → payouts-table-5N7OylTW.js} +4 -4
  366. package/dist/esm/{schema-validations-DcR1ujuX.js → schema-validations-BFoU1cR8.js} +42 -7
  367. package/dist/esm/{skeleton-DtpkgjZ6.js → skeleton-C161KeYG.js} +2 -2
  368. package/dist/esm/{spinner-CIXUVK4F.js → spinner-UiInIFXW.js} +2 -2
  369. package/dist/esm/{styled-host-CbizlfAU.js → styled-host-hSGxxyFZ.js} +1 -1
  370. package/dist/esm/{table-DcRHK_sm.js → table-9ewYPAZH.js} +3 -3
  371. package/dist/esm/table-filters-menu.entry.js +4 -4
  372. package/dist/esm/terminal-orders-list-core.entry.js +13 -15
  373. package/dist/esm/{terminal-orders-list-params-state-C2_GlMKR.js → terminal-orders-list-params-state-BY5996_y.js} +1 -1
  374. package/dist/esm/{terminal-orders-table-9nsnrAq8.js → terminal-orders-table-BcziGGSF.js} +7 -7
  375. package/dist/esm/terminal-quantity-selector.entry.js +3 -3
  376. package/dist/esm/{terminal.service-D2oETGnk.js → terminal.service-B9MOFa2c.js} +3 -3
  377. package/dist/esm/terminals-list-core.entry.js +13 -15
  378. package/dist/esm/terminals-list-params-state-BY5996_y.js +16 -0
  379. package/dist/esm/{terminals-table-C6NO2m-t.js → terminals-table-BoFlvdHS.js} +4 -4
  380. package/dist/esm/{utils-BscIVFn8.js → utils-DeZftIgK.js} +1 -1
  381. package/dist/esm/{utils-_ckvHjSW.js → utils-fntGABrK.js} +2 -2
  382. package/dist/esm/webcomponents.js +4 -4
  383. package/dist/module/Business.js +290 -3
  384. package/dist/module/additional-questions-details2.js +1 -1
  385. package/dist/module/additional-statement.js +2 -2
  386. package/dist/module/bank-account-billing-form-simple.js +1 -1
  387. package/dist/module/bank-account-document-inputs.js +3 -3
  388. package/dist/module/bank-account-form-inputs-canada.d.ts +11 -0
  389. package/dist/module/bank-account-form-inputs-canada.js +6 -0
  390. package/dist/module/bank-account-form-inputs-canada2.js +68 -0
  391. package/dist/module/bank-account-form-inputs2.js +10 -3
  392. package/dist/module/bank-account-form.js +2 -2
  393. package/dist/module/bank-account-read-only-value.d.ts +11 -0
  394. package/dist/module/bank-account-read-only-value.js +6 -0
  395. package/dist/module/bank-account-read-only-value2.js +33 -0
  396. package/dist/module/bank-account.js +2 -2
  397. package/dist/module/billing-form-full.js +1 -1
  398. package/dist/module/business-additional-questions-form-step-core.js +2 -2
  399. package/dist/module/business-additional-questions-form-step.js +1 -1
  400. package/dist/module/business-address-schema.js +40 -20
  401. package/dist/module/business-bank-account-form-step-core.js +104 -51
  402. package/dist/module/business-bank-account-form-step.js +18 -5
  403. package/dist/module/business-core-info-form-step-core.js +24 -9
  404. package/dist/module/business-core-info-form-step.js +2 -1
  405. package/dist/module/business-core-info-schema.js +26 -5
  406. package/dist/module/business-core-info.js +13 -5
  407. package/dist/module/business-details-core2.js +1 -1
  408. package/dist/module/business-identity-schema.js +52 -25
  409. package/dist/module/business-owners-form-step-core.js +22 -15
  410. package/dist/module/business-owners-form-step.js +22 -15
  411. package/dist/module/business-representative-form-inputs.js +34 -17
  412. package/dist/module/business-representative-form-step-core.js +31 -20
  413. package/dist/module/business-representative-form-step.js +24 -17
  414. package/dist/module/business-representative.js +36 -18
  415. package/dist/module/business-terms-conditions-form-step.js +1 -1
  416. package/dist/module/button.js +1 -1
  417. package/dist/module/cancellation-policy.js +2 -2
  418. package/dist/module/card-billing-form-simple.js +1 -1
  419. package/dist/module/card-form.js +2 -2
  420. package/dist/module/card-form2.js +2 -2
  421. package/dist/module/checkout.store.js +1 -2
  422. package/dist/module/checkouts-list-core2.js +3 -3
  423. package/dist/module/country-config.js +64 -0
  424. package/dist/module/custom-popper2.js +3 -3
  425. package/dist/module/customer-details.js +2 -2
  426. package/dist/module/dispute-management-core.js +2 -2
  427. package/dist/module/dispute-notification.js +2 -2
  428. package/dist/module/dispute-response-core.js +5 -5
  429. package/dist/module/dispute-response.js +2 -2
  430. package/dist/module/duplicate-charge.js +2 -2
  431. package/dist/module/electronic-evidence.js +2 -2
  432. package/dist/module/form-address-fields.js +65 -0
  433. package/dist/module/form-control-checkbox2.js +3 -3
  434. package/dist/module/form-control-date2.js +3 -3
  435. package/dist/module/form-control-file-v22.js +2 -2
  436. package/dist/module/form-control-file2.js +3 -3
  437. package/dist/module/form-control-monetary-provisioning2.js +3 -3
  438. package/dist/module/form-control-monetary2.js +4 -4
  439. package/dist/module/form-control-number-masked2.js +3 -3
  440. package/dist/module/form-control-number.js +3 -3
  441. package/dist/module/form-control-radio2.js +3 -3
  442. package/dist/module/form-control-select2.js +3 -3
  443. package/dist/module/form-control-text2.js +4 -4
  444. package/dist/module/form-control-textarea2.js +4 -4
  445. package/dist/module/form-input-masks.js +9 -3
  446. package/dist/module/form.js +18 -17
  447. package/dist/module/get-business.js +1 -1
  448. package/dist/module/gross-payment-chart-core2.js +2 -2
  449. package/dist/module/hidden-input2.js +1 -1
  450. package/dist/module/identity-address-form.js +17 -15
  451. package/dist/module/iframe-input2.js +3 -3
  452. package/dist/module/input-handlers.js +1 -1
  453. package/dist/module/justifi-apple-pay.js +3 -3
  454. package/dist/module/justifi-business-form.js +41 -29
  455. package/dist/module/justifi-button2.js +2 -2
  456. package/dist/module/justifi-checkout.js +7 -5
  457. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  458. package/dist/module/justifi-checkouts-list.js +1 -1
  459. package/dist/module/justifi-dispute-management.js +1 -1
  460. package/dist/module/justifi-form-address-fields.d.ts +11 -0
  461. package/dist/module/justifi-form-address-fields.js +6 -0
  462. package/dist/module/justifi-header2.js +1 -1
  463. package/dist/module/justifi-order-terminals.js +3 -3
  464. package/dist/module/justifi-payment-provisioning.js +67 -49
  465. package/dist/module/justifi-payment-transactions-list.js +1 -1
  466. package/dist/module/justifi-payments-list-filters.js +2 -2
  467. package/dist/module/justifi-payments-list.js +1 -1
  468. package/dist/module/justifi-payout-transactions-list.js +1 -1
  469. package/dist/module/justifi-payouts-list-filters.js +2 -2
  470. package/dist/module/justifi-payouts-list.js +1 -1
  471. package/dist/module/justifi-saved-payment-method.js +2 -2
  472. package/dist/module/justifi-skeleton.js +2 -2
  473. package/dist/module/justifi-terminal-orders-list-filters.js +2 -2
  474. package/dist/module/justifi-terminal-orders-list.js +1 -1
  475. package/dist/module/justifi-terminals-list-filters.js +1 -1
  476. package/dist/module/justifi-terminals-list.js +1 -1
  477. package/dist/module/legal-address-details2.js +1 -1
  478. package/dist/module/legal-address-form-step-core.js +28 -21
  479. package/dist/module/legal-address-form-step.js +16 -9
  480. package/dist/module/legal-address-form.js +17 -14
  481. package/dist/module/modular-checkout.js +13 -5
  482. package/dist/module/owner-form-core2.js +27 -19
  483. package/dist/module/owner-form-inputs2.js +34 -15
  484. package/dist/module/owner-form.js +21 -14
  485. package/dist/module/package.js +1 -1
  486. package/dist/module/pagination-menu2.js +3 -3
  487. package/dist/module/parts.js +1 -1
  488. package/dist/module/payment-details-core2.js +9 -9
  489. package/dist/module/payment-method-option.js +2 -2
  490. package/dist/module/payment-provisioning-core.js +106 -71
  491. package/dist/module/payment-provisioning-form-buttons.js +3 -3
  492. package/dist/module/payment-provisioning-form-steps.js +76 -55
  493. package/dist/module/payments-list-core2.js +23 -3
  494. package/dist/module/payout-details-core2.js +5 -5
  495. package/dist/module/payouts-list-core2.js +4 -4
  496. package/dist/module/product-or-service.js +2 -2
  497. package/dist/module/refund-policy.js +2 -2
  498. package/dist/module/save-new-payment-method.js +1 -1
  499. package/dist/module/schema-validations.js +41 -6
  500. package/dist/module/sezzle-payment-method.js +1 -1
  501. package/dist/module/shipping-details.js +2 -2
  502. package/dist/module/summary.js +1 -1
  503. package/dist/module/table-filters-menu2.js +2 -2
  504. package/dist/module/terminal-orders-list-core2.js +2 -2
  505. package/dist/module/terminal-quantity-selector2.js +2 -2
  506. package/dist/module/terminals-list-core2.js +3 -3
  507. package/dist/module/tokenize-payment-method.js +1 -1
  508. package/dist/types/api/BankAccount.d.ts +6 -0
  509. package/dist/types/api/Business.d.ts +9 -0
  510. package/dist/types/components/business-forms/business-form/business-core-info/business-core-info.d.ts +3 -0
  511. package/dist/types/components/business-forms/business-form/business-form.d.ts +2 -0
  512. package/dist/types/components/business-forms/business-form/business-representative/business-representative.d.ts +4 -1
  513. package/dist/types/components/business-forms/business-form/legal-address-form/legal-address-form.d.ts +2 -0
  514. package/dist/types/components/business-forms/owner-form/identity-address/identity-address-form.d.ts +2 -0
  515. package/dist/types/components/business-forms/owner-form/owner-form-core.d.ts +2 -0
  516. package/dist/types/components/business-forms/owner-form/owner-form-inputs.d.ts +3 -0
  517. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -0
  518. package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs-canada.d.ts +7 -0
  519. package/dist/types/components/business-forms/payment-provisioning/bank-account/bank-account-read-only-value.d.ts +5 -0
  520. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step-core.d.ts +5 -0
  521. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +2 -0
  522. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step-core.d.ts +3 -0
  523. package/dist/types/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.d.ts +2 -0
  524. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step-core.d.ts +2 -0
  525. package/dist/types/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.d.ts +2 -0
  526. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.d.ts +3 -0
  527. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step-core.d.ts +2 -0
  528. package/dist/types/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.d.ts +2 -0
  529. package/dist/types/components/business-forms/payment-provisioning/form-address-fields/form-address-fields.d.ts +8 -0
  530. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step-core.d.ts +2 -0
  531. package/dist/types/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.d.ts +2 -0
  532. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-core.d.ts +4 -2
  533. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +2 -0
  534. package/dist/types/components/business-forms/payment-provisioning/test/mockBusiness.d.ts +12 -0
  535. package/dist/types/components/business-forms/schemas/business-address-schema.d.ts +54 -2
  536. package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +14 -16
  537. package/dist/types/components/business-forms/schemas/business-core-info-schema.d.ts +67 -3
  538. package/dist/types/components/business-forms/schemas/business-form-schema.d.ts +164 -6
  539. package/dist/types/components/business-forms/schemas/business-identity-schema.d.ts +122 -2
  540. package/dist/types/components/business-forms/schemas/schema-validations.d.ts +5 -0
  541. package/dist/types/components/payments-list/payments-table.d.ts +5 -2
  542. package/dist/types/components.d.ts +111 -0
  543. package/dist/types/stencil-public-runtime.d.ts +22 -6
  544. package/dist/types/store/checkout.store.d.ts +0 -1
  545. package/dist/types/utils/country-codes.d.ts +4 -0
  546. package/dist/types/utils/form-input-masks.d.ts +1 -0
  547. package/dist/types/utils/province-options.d.ts +5 -0
  548. package/dist/webcomponents/p-0254c06c.entry.js +1 -0
  549. package/dist/webcomponents/p-047fe97f.entry.js +1 -0
  550. package/dist/webcomponents/p-04ca6ff0.entry.js +1 -0
  551. package/dist/webcomponents/p-09d53b03.entry.js +1 -0
  552. package/dist/webcomponents/p-0c5e2fed.entry.js +1 -0
  553. package/dist/webcomponents/p-0ea48603.entry.js +1 -0
  554. package/dist/webcomponents/p-17e9d5c0.entry.js +1 -0
  555. package/dist/webcomponents/p-1ab4d6aa.entry.js +1 -0
  556. package/dist/webcomponents/p-1cf42bc9.entry.js +1 -0
  557. package/dist/webcomponents/p-1e7f4b4f.entry.js +1 -0
  558. package/dist/webcomponents/{p-27fc3ef0.entry.js → p-22defde6.entry.js} +4 -4
  559. package/dist/webcomponents/{p-7c5cd118.entry.js → p-242208d9.entry.js} +1 -1
  560. package/dist/webcomponents/p-31ac0c3d.entry.js +1 -0
  561. package/dist/webcomponents/p-36e21b78.entry.js +1 -0
  562. package/dist/webcomponents/p-3a77a97c.entry.js +1 -0
  563. package/dist/webcomponents/p-40938820.entry.js +1 -0
  564. package/dist/webcomponents/p-40dc0c3c.entry.js +1 -0
  565. package/dist/webcomponents/p-42763479.entry.js +1 -0
  566. package/dist/webcomponents/p-430203b0.entry.js +1 -0
  567. package/dist/webcomponents/p-46d2d042.entry.js +1 -0
  568. package/dist/webcomponents/p-485516a1.entry.js +1 -0
  569. package/dist/webcomponents/p-4fb58ee6.entry.js +1 -0
  570. package/dist/webcomponents/p-54995a3d.entry.js +1 -0
  571. package/dist/webcomponents/p-56617fdd.entry.js +1 -0
  572. package/dist/webcomponents/p-592a45f6.entry.js +1 -0
  573. package/dist/webcomponents/p-5a044ca5.entry.js +1 -0
  574. package/dist/webcomponents/p-5ec18584.entry.js +1 -0
  575. package/dist/webcomponents/p-6122dc79.entry.js +1 -0
  576. package/dist/webcomponents/p-62858ba5.entry.js +1 -0
  577. package/dist/webcomponents/p-62b5e6cf.entry.js +1 -0
  578. package/dist/webcomponents/p-67dab4d9.entry.js +1 -0
  579. package/dist/webcomponents/p-6b791b1d.entry.js +1 -0
  580. package/dist/webcomponents/{p-a71a5e64.entry.js → p-6ea75d39.entry.js} +1 -1
  581. package/dist/webcomponents/p-6ebf8f11.entry.js +1 -0
  582. package/dist/webcomponents/p-6fdac295.entry.js +1 -0
  583. package/dist/webcomponents/p-724cf90f.entry.js +1 -0
  584. package/dist/webcomponents/p-7ecca5fe.entry.js +1 -0
  585. package/dist/webcomponents/p-7ecf9bd0.entry.js +1 -0
  586. package/dist/webcomponents/p-850dd606.entry.js +1 -0
  587. package/dist/webcomponents/p-85af9d78.entry.js +1 -0
  588. package/dist/webcomponents/p-931003fc.entry.js +1 -0
  589. package/dist/webcomponents/p-9367e7e6.entry.js +1 -0
  590. package/dist/webcomponents/p-9c114674.entry.js +1 -0
  591. package/dist/webcomponents/p-9c267692.entry.js +1 -0
  592. package/dist/webcomponents/p-B5rtFhtR.js +1 -0
  593. package/dist/webcomponents/{p-c4Mh3ZZ_.js → p-BPDMo6us.js} +1 -1
  594. package/dist/webcomponents/p-BRhnhmpB.js +1 -0
  595. package/dist/webcomponents/{p-O-hoT2Oo.js → p-BaM0JBLn.js} +1 -1
  596. package/dist/webcomponents/{p-CaxjN6Uo.js → p-BdREtifE.js} +1 -1
  597. package/dist/webcomponents/p-BgFM_jvF.js +1 -0
  598. package/dist/webcomponents/p-BqbXuOZP.js +1 -0
  599. package/dist/webcomponents/p-BwpdCtUc.js +1 -0
  600. package/dist/webcomponents/p-C6g4MbnB.js +1 -0
  601. package/dist/webcomponents/{p-1ydcg9ti.js → p-C77ElQ41.js} +1 -1
  602. package/dist/webcomponents/{p-RvUQ__Pq.js → p-CA_TyBed.js} +1 -1
  603. package/dist/webcomponents/p-CE-MNrID.js +1 -0
  604. package/dist/webcomponents/p-CMpATPXy.js +1 -0
  605. package/dist/webcomponents/{p-yH3TC3ZQ.js → p-CPpUGsw5.js} +1 -1
  606. package/dist/webcomponents/p-CQUZeo9r.js +1 -0
  607. package/dist/webcomponents/p-CSeo7WDO.js +1 -0
  608. package/dist/webcomponents/p-CTJ3moi4.js +1 -0
  609. package/dist/webcomponents/p-CVaOFfrI.js +1 -0
  610. package/dist/webcomponents/p-CYNcSTQA.js +1 -0
  611. package/dist/webcomponents/p-CevVA9qy.js +1 -0
  612. package/dist/webcomponents/p-CkiX8OGy.js +1 -0
  613. package/dist/webcomponents/{p-D--yCspA.js → p-CtWnJFtW.js} +1 -1
  614. package/dist/webcomponents/p-CycBoHSW.js +1 -0
  615. package/dist/webcomponents/p-D-RVXHwG.js +1 -0
  616. package/dist/webcomponents/{p-BIPdn2VU.js → p-D1Na2I0C.js} +1 -1
  617. package/dist/webcomponents/{p-BdLLGV9t.js → p-D2hzOOMf.js} +1 -1
  618. package/dist/webcomponents/p-D5lmImiz.js +1 -0
  619. package/dist/webcomponents/p-DMf85Fkr.js +1 -0
  620. package/dist/webcomponents/p-DNPS-Ypi.js +1 -0
  621. package/dist/webcomponents/p-DQ5V5-Jy.js +1 -0
  622. package/dist/webcomponents/{p-CLQx9p9q.js → p-DTwFW2k_.js} +1 -1
  623. package/dist/webcomponents/{p-BZ7C9duj.js → p-DWGKeoot.js} +1 -1
  624. package/dist/webcomponents/p-DapORSs4.js +1 -0
  625. package/dist/webcomponents/p-DcPNd9_D.js +1 -0
  626. package/dist/webcomponents/p-DfKxeSrC.js +1 -0
  627. package/dist/webcomponents/{p-CR9D6mKt.js → p-DiJD6Iqx.js} +1 -1
  628. package/dist/webcomponents/{p-D-JYHdJ7.js → p-Dkujm7_O.js} +1 -1
  629. package/dist/webcomponents/p-Dv1Fyrn3.js +1 -0
  630. package/dist/webcomponents/p-DxVCqvBt.js +1 -0
  631. package/dist/webcomponents/p-DzWLLt4t.js +1 -0
  632. package/dist/webcomponents/{p-CzPUMw00.js → p-JSXyHheQ.js} +1 -1
  633. package/dist/webcomponents/p-LO0pl3n2.js +1 -0
  634. package/dist/webcomponents/{p-BUa0YOaw.js → p-M5r2kSbf.js} +1 -1
  635. package/dist/webcomponents/{p-C_3N7nqh.js → p-PdQT2QcR.js} +1 -1
  636. package/dist/webcomponents/p-_b8l4IX7.js +2 -0
  637. package/dist/webcomponents/p-a2817869.entry.js +1 -0
  638. package/dist/webcomponents/p-a291a90c.entry.js +1 -0
  639. package/dist/webcomponents/p-b0bc03e6.entry.js +1 -0
  640. package/dist/webcomponents/{p-1b7926f6.entry.js → p-b17cb15d.entry.js} +1 -1
  641. package/dist/webcomponents/p-b46fe458.entry.js +1 -0
  642. package/dist/webcomponents/{p-3d37045d.entry.js → p-b59221a9.entry.js} +1 -1
  643. package/dist/webcomponents/{p-e037cdd1.entry.js → p-c1f10a84.entry.js} +1 -1
  644. package/dist/webcomponents/p-c2cb70c8.entry.js +1 -0
  645. package/dist/webcomponents/p-c540fe9d.entry.js +1 -0
  646. package/dist/webcomponents/{p-8975bf93.entry.js → p-c6093716.entry.js} +1 -1
  647. package/dist/webcomponents/p-c6e43493.entry.js +1 -0
  648. package/dist/webcomponents/{p-0801324e.entry.js → p-c7390115.entry.js} +1 -1
  649. package/dist/webcomponents/p-c780cc91.entry.js +1 -0
  650. package/dist/webcomponents/p-c9598246.entry.js +1 -0
  651. package/dist/webcomponents/p-c972a599.entry.js +1 -0
  652. package/dist/webcomponents/p-cc1d8649.entry.js +1 -0
  653. package/dist/webcomponents/p-ce4895ca.entry.js +1 -0
  654. package/dist/webcomponents/p-ce67282b.entry.js +1 -0
  655. package/dist/webcomponents/p-cef5c6e9.entry.js +1 -0
  656. package/dist/webcomponents/p-d21fa0c9.entry.js +1 -0
  657. package/dist/webcomponents/p-d236f152.entry.js +1 -0
  658. package/dist/webcomponents/p-d6ac11fc.entry.js +1 -0
  659. package/dist/webcomponents/p-e55ce6ad.entry.js +1 -0
  660. package/dist/webcomponents/p-f02bd076.entry.js +1 -0
  661. package/dist/webcomponents/{p-fUtq2xDs.js → p-fVyCeQNq.js} +1 -1
  662. package/dist/webcomponents/{p-DyOgQlh2.js → p-g2ubqhtv.js} +1 -1
  663. package/dist/webcomponents/{p-DsAwPf2y.js → p-hj8k0lRi.js} +1 -1
  664. package/dist/webcomponents/p-lPeK9y_X.js +1 -0
  665. package/dist/webcomponents/p-qUCDGWNE.js +1 -0
  666. package/dist/webcomponents/p-sCHf--Vc.js +1 -0
  667. package/dist/webcomponents/{p-BHf9IqGw.js → p-xWrhxNNk.js} +1 -1
  668. package/dist/webcomponents/webcomponents.esm.js +1 -1
  669. package/package.json +1 -1
  670. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +0 -112
  671. package/dist/cjs/business-identity-schema-CclzWSOn.js +0 -51
  672. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +0 -107
  673. package/dist/cjs/helpers-B5OCqlIM.js +0 -35
  674. package/dist/cjs/state-options-CIT9xdTz.js +0 -246
  675. package/dist/cjs/terminals-list-params-state-C4c8UZtP.js +0 -22
  676. package/dist/collection/components/modular-checkout/sub-components/plaid-payment-method.test.js +0 -125
  677. package/dist/esm/bank-account-document-form-inputs_4.entry.js +0 -107
  678. package/dist/esm/business-identity-schema-D8n5dyLX.js +0 -48
  679. package/dist/esm/form-control-number-masked_2.entry.js +0 -104
  680. package/dist/esm/helpers-Mu7LQT-w.js +0 -29
  681. package/dist/esm/state-options-BX8GieXu.js +0 -244
  682. package/dist/esm/terminals-list-params-state-C2_GlMKR.js +0 -16
  683. package/dist/module/helpers.js +0 -29
  684. package/dist/module/state-options.js +0 -244
  685. package/dist/types/components/modular-checkout/sub-components/plaid-payment-method.test.d.ts +0 -1
  686. package/dist/webcomponents/p-10278c48.entry.js +0 -1
  687. package/dist/webcomponents/p-108209c5.entry.js +0 -1
  688. package/dist/webcomponents/p-176aa079.entry.js +0 -1
  689. package/dist/webcomponents/p-18353682.entry.js +0 -1
  690. package/dist/webcomponents/p-19ccbeee.entry.js +0 -1
  691. package/dist/webcomponents/p-1b3b6956.entry.js +0 -1
  692. package/dist/webcomponents/p-1bc8da98.entry.js +0 -1
  693. package/dist/webcomponents/p-1c433962.entry.js +0 -1
  694. package/dist/webcomponents/p-1df96001.entry.js +0 -1
  695. package/dist/webcomponents/p-1e080811.entry.js +0 -1
  696. package/dist/webcomponents/p-1e87c8ed.entry.js +0 -1
  697. package/dist/webcomponents/p-1efc0d88.entry.js +0 -1
  698. package/dist/webcomponents/p-1f971a0f.entry.js +0 -1
  699. package/dist/webcomponents/p-2246aa69.entry.js +0 -1
  700. package/dist/webcomponents/p-246ef4ff.entry.js +0 -1
  701. package/dist/webcomponents/p-2687e615.entry.js +0 -1
  702. package/dist/webcomponents/p-30147031.entry.js +0 -1
  703. package/dist/webcomponents/p-3546a5aa.entry.js +0 -1
  704. package/dist/webcomponents/p-3621a429.entry.js +0 -1
  705. package/dist/webcomponents/p-406ba650.entry.js +0 -1
  706. package/dist/webcomponents/p-44d1341c.entry.js +0 -1
  707. package/dist/webcomponents/p-4d5c71c4.entry.js +0 -1
  708. package/dist/webcomponents/p-4ea83bfd.entry.js +0 -1
  709. package/dist/webcomponents/p-558f7967.entry.js +0 -1
  710. package/dist/webcomponents/p-5c477f08.entry.js +0 -1
  711. package/dist/webcomponents/p-613cf570.entry.js +0 -1
  712. package/dist/webcomponents/p-68329f16.entry.js +0 -1
  713. package/dist/webcomponents/p-6fe79f16.entry.js +0 -1
  714. package/dist/webcomponents/p-7131211a.entry.js +0 -1
  715. package/dist/webcomponents/p-7aeb20d2.entry.js +0 -1
  716. package/dist/webcomponents/p-80b1c65b.entry.js +0 -1
  717. package/dist/webcomponents/p-84043580.entry.js +0 -1
  718. package/dist/webcomponents/p-906fdf0c.entry.js +0 -1
  719. package/dist/webcomponents/p-90e43440.entry.js +0 -1
  720. package/dist/webcomponents/p-914e168d.entry.js +0 -1
  721. package/dist/webcomponents/p-91c1e2ac.entry.js +0 -1
  722. package/dist/webcomponents/p-95348ff6.entry.js +0 -1
  723. package/dist/webcomponents/p-9f04cac4.entry.js +0 -1
  724. package/dist/webcomponents/p-B-iV5cYd.js +0 -1
  725. package/dist/webcomponents/p-B4idKqyn.js +0 -1
  726. package/dist/webcomponents/p-BBO3I4s6.js +0 -1
  727. package/dist/webcomponents/p-BX8GieXu.js +0 -1
  728. package/dist/webcomponents/p-BY2p6Sxk.js +0 -1
  729. package/dist/webcomponents/p-BguBT6Hn.js +0 -1
  730. package/dist/webcomponents/p-BlJnA265.js +0 -1
  731. package/dist/webcomponents/p-Bp_QFeog.js +0 -1
  732. package/dist/webcomponents/p-Bvp7uul3.js +0 -1
  733. package/dist/webcomponents/p-C1xGBPma.js +0 -1
  734. package/dist/webcomponents/p-C3n7-tlg.js +0 -1
  735. package/dist/webcomponents/p-CPVN4dXS.js +0 -1
  736. package/dist/webcomponents/p-CQeex56P.js +0 -1
  737. package/dist/webcomponents/p-CU4XQ3fO.js +0 -1
  738. package/dist/webcomponents/p-CYBR4K2p.js +0 -1
  739. package/dist/webcomponents/p-CpKvg1ok.js +0 -1
  740. package/dist/webcomponents/p-CrQgyTRz.js +0 -1
  741. package/dist/webcomponents/p-CxzFvTgf.js +0 -1
  742. package/dist/webcomponents/p-D6XirF21.js +0 -1
  743. package/dist/webcomponents/p-DCMrHeJI.js +0 -1
  744. package/dist/webcomponents/p-DH8F0bsw.js +0 -1
  745. package/dist/webcomponents/p-DSP8qjHL.js +0 -1
  746. package/dist/webcomponents/p-DbX0g1WF.js +0 -1
  747. package/dist/webcomponents/p-De8UloOS.js +0 -1
  748. package/dist/webcomponents/p-Dt-vy9Le.js +0 -1
  749. package/dist/webcomponents/p-DvZcI6pC.js +0 -1
  750. package/dist/webcomponents/p-DyDHaG6n.js +0 -1
  751. package/dist/webcomponents/p-IG_KR8zP.js +0 -1
  752. package/dist/webcomponents/p-PgEzcvI6.js +0 -1
  753. package/dist/webcomponents/p-Xv8DuU3Y.js +0 -1
  754. package/dist/webcomponents/p-a0a0e200.entry.js +0 -1
  755. package/dist/webcomponents/p-a57c1400.entry.js +0 -1
  756. package/dist/webcomponents/p-a90b8b93.entry.js +0 -1
  757. package/dist/webcomponents/p-acb0f3ae.entry.js +0 -1
  758. package/dist/webcomponents/p-b0a36936.entry.js +0 -1
  759. package/dist/webcomponents/p-ba5b1c54.entry.js +0 -1
  760. package/dist/webcomponents/p-c16c0cbc.entry.js +0 -1
  761. package/dist/webcomponents/p-c9fef3e4.entry.js +0 -1
  762. package/dist/webcomponents/p-df7f36aa.entry.js +0 -1
  763. package/dist/webcomponents/p-e035a92e.entry.js +0 -1
  764. package/dist/webcomponents/p-e2a38ad0.entry.js +0 -1
  765. package/dist/webcomponents/p-e628a0c8.entry.js +0 -1
  766. package/dist/webcomponents/p-e6516014.entry.js +0 -1
  767. package/dist/webcomponents/p-e6e96be2.entry.js +0 -1
  768. package/dist/webcomponents/p-e79338f9.entry.js +0 -1
  769. package/dist/webcomponents/p-e97dee15.entry.js +0 -1
  770. package/dist/webcomponents/p-eafd179b.entry.js +0 -1
  771. package/dist/webcomponents/p-f5c3f489.entry.js +0 -1
  772. package/dist/webcomponents/p-f739a98d.entry.js +0 -1
  773. package/dist/webcomponents/p-f8c22c77.entry.js +0 -1
  774. package/dist/webcomponents/p-fa14b671.entry.js +0 -1
  775. package/dist/webcomponents/p-ffe01f1b.entry.js +0 -1
  776. package/dist/webcomponents/p-oGKW57R8.js +0 -1
  777. package/dist/webcomponents/p-qipqIMyC.js +0 -2
  778. package/dist/webcomponents/p-xY5RkFuA.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-_b8l4IX7.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as d,c as i}from"./p-D5lmImiz.js";import{f as l,g as r,t as b,h as c,j as f,k as p}from"./p-CA_TyBed.js";import{S as o}from"./p-DTwFW2k_.js";import"./p-CZfYo5-1.js";import{c as n,a as m}from"./p-xWrhxNNk.js";import"./p-BFTU3MAI.js";import"./p-hj8k0lRi.js";import"./p-HXpYMWUU.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=n(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({payment_id:this.paymentId,terminal_id:this.terminalId,payment_status:this.paymentStatus,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(d[e]=a)}))}get paymentStatusOptions(){return[{label:"All",value:""},{label:"Pending",value:"pending"},{label:"Authorized",value:"authorized"},{label:"Succeeded",value:"succeeded"},{label:"Failed",value:"failed"},{label:"Disputed",value:"disputed"},{label:"Refunded",value:"refunded"}]}render(){const e=Object.assign({},s);return a(o,{key:"4764d9aea618aa059382add95cb7b9a6307688fe"},a("table-filters-menu",{key:"e557e4d94265a35d0bc24afb819fc11b68c64c72",params:e,clearParams:i,part:l},a("div",{key:"d147fe90eaa9a351b8fd7bbc26c81140bdd2736f",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"55adb0f22e03ff1a4cb7adc796349785e2318b71",class:"p-2"},a("form-control-text",{key:"fb5037d0431b2df8a9a18a4a872599c10d893045",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.paymentId||s.payment_id,disabled:!!this.paymentId,part:r})),a("div",{key:"5500043157e0ebdde2e8781f9efef90e05d5adca",class:"p-2"},a("form-control-text",{key:"116692d8ca95dd90c33cf6e3da6f2d1d6f3b0729",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:b})),a("div",{key:"3467ff316de211617b8b2549b41b7731ab12b44e",class:"p-2"},a("form-control-select",{key:"0c60bb386acbd75ef0b9b743337d38801281bf07",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentStatus||s.payment_status,disabled:!!this.paymentStatus,part:c})),a("div",{key:"8eccc7f8bde0ec94ba75da04d13ef5c57bcdd287",class:"p-2"},a("form-control-date",{key:"f1f8efe669fc3cff55773589a5b86072e1e08b64",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:m(this.createdAfter,{showInputDateTime:!0})||m(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:f})),a("div",{key:"7e99c77eb11a715be373b26a35967abc7047d362",class:"p-2"},a("form-control-date",{key:"92df3e401316750a69beb42beadd958ea5fcc560",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:m(this.createdBefore,{showInputDateTime:!0})||m(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:p})))))}};export{u as justifi_payments_list_filters}
@@ -0,0 +1 @@
1
+ import{r as s,h as t}from"./p-_b8l4IX7.js";import{E as a}from"./p-D1Na2I0C.js";import"./p-CA_TyBed.js";const e=class{constructor(t){s(this,t)}render(){return t("div",{key:"026afe404e83a58245d2c0d68b188a5b227933b4"},this.errorMessage?a(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{e as justifi_details}
@@ -0,0 +1 @@
1
+ import{r as s,c as e,h as t,H as i}from"./p-_b8l4IX7.js";import{C as n,a as r}from"./p-Cjcsf8ku.js";import{m as o,b as a,f as h,g as c}from"./p-5aA7gjr5.js";import{B as d,a as u,D as p}from"./p-lPeK9y_X.js";import"./p-DMf85Fkr.js";import"./p-HXpYMWUU.js";import"./p-BPDMo6us.js";import"./p-CLHwhyvu.js";import{C as f}from"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{c as l,d as b,F as m}from"./p-DiJD6Iqx.js";import{A as g}from"./p-M5r2kSbf.js";import{C as y}from"./p-CA_TyBed.js";import{a as k,B as v}from"./p-XYgDHrVL.js";import{B as j}from"./p-Dv1Fyrn3.js";import"./p-CZfYo5-1.js";import"./p-D2muobcE.js";import"./p-hj8k0lRi.js";import"./p-xWrhxNNk.js";import"./p-BFTU3MAI.js";const _=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-additional-questions-form-step-core",{key:"a2e24c04b312a226b607147bcf68d6ea50a2be05",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},w=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.postBankAccount=h({authToken:this.authToken,service:new u}),this.postDocumentRecord=c({authToken:this.authToken,service:new p})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-bank-account-form-step-core",{key:"f4e4c31d04884510d5b432b7cced5eea2b618bcd",businessId:this.businessId,getBusiness:this.getBusiness,postBankAccount:this.postBankAccount,postDocumentRecord:this.postDocumentRecord,allowOptionalFields:this.allowOptionalFields,country:this.country,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},C=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-core-info-form-step-core",{key:"1aeaeae1d432883c1e242c066881cabc37097032",businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,country:this.country,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},T=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t(i,{key:"510b3ece6194fa6c34c04ba4d87718490631b69d"},t("justifi-business-owners-form-step-core",{key:"01b034456e183d39b6adc4b9f9d36e289483eb9b",authToken:this.authToken,businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,country:this.country,ref:s=>this.coreComponent=s}))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},I=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-representative-form-step-core",{key:"93ebeaecfc5eecc8a4c74cbc30760d35d8120183",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,country:this.country,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},S=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.formCompleted=e(this,"formCompleted"),this.errors={},this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get({endpoint:this.businessEndpoint,authToken:this.authToken});this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:r.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const e=this.termsPayload,t=await this.api.post({endpoint:this.termsConditionsEndpoint,body:e,authToken:this.authToken});this.handleResponse(t,s)}catch(s){this.errorEvent.emit({errorCode:r.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,e)=>{this.acceptedTerms=e,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:e}))}}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=g(),this.formController=new m((s=>{const e=l({accepted:b().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),t=l({accepted:b().nullable()});return s?t:e})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,e){s.error?this.errorEvent.emit({errorCode:r.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):e(),this.stepCompleteEvent.emit({response:s,formStep:k.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:k.termsAndConditions,metadata:"no data submitted"}),this.formCompleted.emit(),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get merchantAgreementLink(){return t("a",{href:"https://justifi.tech/merchant-agreement/",target:"_blank",rel:"noopener noreferrer"},"merchant agreement")}render(){return t("form",{key:"6fbccc271d16cbb87d8845b06b58fd461e18f770"},t("fieldset",{key:"ce5240753aefdb4aa92aa3ba5af4741466702ae6"},t("legend",{key:"01a3a99f6d9dfe45ae12eb2a603ebc70a25747be",part:y},"Terms and Conditions"),t("hr",{key:"b0209b2df034353f663cf4dde25fee51e2906dc4"}),t("div",{key:"1ed270526bc1f6d24d81c485ea6e9459607bac3e"},t("p",{key:"8c98f939d4db12cad7169debc71fd0ad652cc724"},"Please read and accept the ",this.merchantAgreementLink," to submit your provisioning request.")),t("br",{key:"021ffcc28e65e59d8fb81a8a2507cac1ce0d448f"}),t("div",{key:"e6181b2a5ad6b01be123962bf17282cb1f97fd30",class:"row-gy-3"},t("div",{key:"82acd8dcfed625e051b93bb8845fb9d11b5e26ce",class:"col-12"},t("form-control-checkbox",{key:"c246a348366354dce60ec4dc00e3a4791281a584",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText,checked:this.acceptedTerms})))))}},B=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new d}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new d})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-legal-address-form-step-core",{key:"1e4419d2e8c75721883171124185590efe459fc9",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,country:this.country,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},F=class{constructor(e){s(this,e)}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return t("div",{key:"ad959d93323ee66a154d5addbabd0cd0351f5d5f",class:"d-flex gap-2"},t(j,{key:"6f77f6c7ee080a1a2525ec92107881adfef3afcb",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),t(j,{key:"6edac397291014bde05eed8f64ca6a543f951a44",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,v.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),t(j,{key:"ba2f0c103c2b54e9047aee927ed8afb8e5361f66",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,v.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},A=class{constructor(e){s(this,e),this.allowOptionalFields=!1,this.country=f.USA,this.componentStepMapping={0:()=>t("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),1:()=>t("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),2:()=>t("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>t("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),4:()=>t("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),5:()=>t("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,allowOptionalFields:this.allowOptionalFields,country:this.country}),6:()=>t("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return t("div",{key:"2e1d2983f259fd9fe4e1dda9c1f442b248f4c5ba",class:"col-12 mb-4"},this.currentStepComponent)}};export{_ as justifi_additional_questions_form_step,w as justifi_business_bank_account_form_step,C as justifi_business_core_info_form_step,T as justifi_business_owners_form_step,I as justifi_business_representative_form_step,S as justifi_business_terms_conditions_form_step,B as justifi_legal_address_form_step,F as justifi_payment_provisioning_form_buttons,A as justifi_payment_provisioning_form_steps}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e,H as a}from"./p-_b8l4IX7.js";import{b as i,T as o,a as r,c as h,l as c,U as n}from"./p-CA_TyBed.js";import{F as d}from"./p-D-RVXHwG.js";import{F as f}from"./p-BgFM_jvF.js";import"./p-CZfYo5-1.js";import{f as l}from"./p-xWrhxNNk.js";import"./p-HXpYMWUU.js";const p=class{constructor(e){t(this,e),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.defaultValue="0",this.formatRawValue=t=>t.replace(/\D/g,""),this.formatDisplayValue=t=>l(+t,void 0,!0),this.updateInput=t=>{const s=this.formControl.name,e=this.formatRawValue(t);this.formControl.value=this.formatDisplayValue(e),this.inputHandler(s,e),this.formControlInput.emit({name:s,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get inputPart(){return this.errorText?i:this.disabled?o:this.isFocused?r:h}render(){return e(a,{key:"dd501963b2b4c85eecd6c78ac8a1c38d6e30020c"},e("div",{key:"4c130a5d956ab1caaab521930d29d666dfbfcf67",class:"form-group d-flex flex-column"},e("label",{key:"59a59b0589b3555efcb509ebb0ca34a3cc01ce3a",part:c,class:"form-label",htmlFor:this.name},this.label),e(d,{key:"0290105bb2d69ae83d1583f2495557e1e11b2939",name:this.name,helpText:this.helpText}),e("div",{key:"cf80c69cc63137195ef179dd12f726f34bf35780",class:"input-group"},e("span",{key:"5ecc2e144e7fe9fde5a64e48d8b8471d446fdb5d",class:"input-group-text",part:n},"$"),e("input",{key:"585da3cd389904d002a545c01b4322c9aa9ea74e",ref:t=>this.formControl=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:t=>this.updateInput(t.target.value),onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.inputPart,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled})),e(f,{key:"52a6fef8192278acb9a3eb854f5cea8834ed5d0f",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{p as form_control_monetary}
@@ -0,0 +1 @@
1
+ import{r as s,h as t}from"./p-_b8l4IX7.js";import{S as e}from"./p-DTwFW2k_.js";import{S as r}from"./p-CE-MNrID.js";import"./p-CA_TyBed.js";const c=class{constructor(t){s(this,t)}render(){return t(e,{key:"79c2def38d099c6c146b89b6d33f8b1ca403bace"},t(r,{key:"d73576f82a88f9282caebaeb66cf4c444e8318a6",component:this.component,height:this.height,width:this.width,className:this.class,styles:this.customStyle}))}};export{c as justifi_skeleton}
@@ -0,0 +1 @@
1
+ const s=[{label:"Choose state",value:""},{label:"Alabama",value:"AL"},{label:"Alaska",value:"AK"},{label:"American Samoa",value:"AS"},{label:"Arizona",value:"AZ"},{label:"Arkansas",value:"AR"},{label:"California",value:"CA"},{label:"Colorado",value:"CO"},{label:"Connecticut",value:"CT"},{label:"Delaware",value:"DE"},{label:"District Of Columbia",value:"DC"},{label:"Federated States Of Micronesia",value:"FM"},{label:"Florida",value:"FL"},{label:"Georgia",value:"GA"},{label:"Guam",value:"GU"},{label:"Hawaii",value:"HI"},{label:"Idaho",value:"ID"},{label:"Illinois",value:"IL"},{label:"Indiana",value:"IN"},{label:"Iowa",value:"IA"},{label:"Kansas",value:"KS"},{label:"Kentucky",value:"KY"},{label:"Louisiana",value:"LA"},{label:"Maine",value:"ME"},{label:"Marshall Islands",value:"MH"},{label:"Maryland",value:"MD"},{label:"Massachusetts",value:"MA"},{label:"Michigan",value:"MI"},{label:"Minnesota",value:"MN"},{label:"Mississippi",value:"MS"},{label:"Missouri",value:"MO"},{label:"Montana",value:"MT"},{label:"Nebraska",value:"NE"},{label:"Nevada",value:"NV"},{label:"New Hampshire",value:"NH"},{label:"New Jersey",value:"NJ"},{label:"New Mexico",value:"NM"},{label:"New York",value:"NY"},{label:"North Carolina",value:"NC"},{label:"North Dakota",value:"ND"},{label:"Northern Mariana Islands",value:"MP"},{label:"Ohio",value:"OH"},{label:"Oklahoma",value:"OK"},{label:"Oregon",value:"OR"},{label:"Palau",value:"PW"},{label:"Pennsylvania",value:"PA"},{label:"Puerto Rico",value:"PR"},{label:"Rhode Island",value:"RI"},{label:"South Carolina",value:"SC"},{label:"South Dakota",value:"SD"},{label:"Tennessee",value:"TN"},{label:"Texas",value:"TX"},{label:"Utah",value:"UT"},{label:"Vermont",value:"VT"},{label:"Virgin Islands",value:"VI"},{label:"Virginia",value:"VA"},{label:"Washington",value:"WA"},{label:"West Virginia",value:"WV"},{label:"Wisconsin",value:"WI"},{label:"Wyoming",value:"WY"}];function a(s){return/^\d$/.test(s)?"0"+s:s}function t(s,t,i){if(s&&t&&i)return`${s}-${a(t)}-${a(i)}`}function i(s){const a=s.value,[t,i,e]=a.split("-");return{dob_year:t,dob_month:i,dob_day:e}}function e(s){return s.associated_accounts.length>0}class l{constructor(s){this.address=Object.assign({},new b(s.address||{})),this.created_at=s.created_at,this.dob_day=a(s.dob_day),this.dob_month=a(s.dob_month),this.dob_year=s.dob_year,this.dob_full=t(this.dob_year,this.dob_month,this.dob_day)||"",this.documents=s.documents,this.email=s.email,this.id=s.id,this.business_id=s.business_id,this.is_owner=s.is_owner,this.metadata=s.metadata,this.name=s.name,this.phone=s.phone,this.platform_account_id=s.platform_account_id,this.identification_number=s.identification_number,this.ssn_last4=s.ssn_last4,this.title=s.title,this.updated_at=s.updated_at}get payload(){return{address:new b(this.address||{}).payload,dob_day:this.dob_day||"",dob_month:this.dob_month||"",dob_year:this.dob_year||"",email:this.email||"",identification_number:this.identification_number||void 0,is_owner:this.is_owner||!1,metadata:this.metadata||null,name:this.name||"",phone:this.phone||"",platform_account_id:this.platform_account_id||null,title:this.title||""}}}class h{constructor(s){this.address=Object.assign({},new b(s.address||{})),this.created_at=s.created_at,this.dob_day=a(s.dob_day),this.dob_month=a(s.dob_month),this.dob_year=s.dob_year,this.dob_full=t(this.dob_year,this.dob_month,this.dob_day)||"",this.documents=s.documents,this.email=s.email,this.id=s.id,this.business_id=s.business_id,this.is_owner=s.is_owner,this.metadata=s.metadata,this.name=s.name,this.phone=s.phone,this.platform_account_id=s.platform_account_id,this.identification_number=s.identification_number,this.ssn_last4=s.ssn_last4,this.title=s.title,this.updated_at=s.updated_at}get payload(){return{address:new b(this.address||{}).payload,dob_day:this.dob_day||"",dob_month:this.dob_month||"",dob_year:this.dob_year||"",email:this.email||"",is_owner:this.is_owner||!1,identification_number:this.identification_number||void 0,metadata:this.metadata||null,name:this.name||"",phone:this.phone||"",platform_account_id:this.platform_account_id||null,title:this.title||""}}}var n;!function(s){s.USA="USA",s.CAN="CAN"}(n||(n={}));const o=s=>{const a=(s||"").toString().trim().toUpperCase();return"US"===a||"USA"===a||a===n.USA?n.USA:"CA"===a||"CAN"===a||a===n.CAN?n.CAN:n.USA};var u,r;!function(s){s.fetchData="Error retrieving business data",s.patchData="Error updating business data"}(u||(u={})),function(s){s.sole_proprietor="sole_proprietor",s.partnership="partnership",s.corporation="corporation",s.public_company="public_company",s.limited="limited",s.non_profit="non_profit",s.government="government"}(r||(r={}));class b{constructor(a){this.id=a.id,this.platform_account_id=a.platform_account_id,this.line1=a.line1,this.line2=a.line2,this.postal_code=a.postal_code,this.city=a.city,this.state=function(a){const t=s.find((s=>s.label===a));return t?t.value:a}(a.state),this.country=o(a.country),this.created_at=a.created_at,this.updated_at=a.updated_at}get payload(){return{platform_account_id:this.platform_account_id||"",line1:this.line1||"",line2:this.line2||"",postal_code:this.postal_code||"",city:this.city||"",state:this.state||"",country:this.country||""}}}class v{constructor(s){this.business_revenue=s.business_revenue,this.business_payment_volume=s.business_payment_volume,this.business_when_service_received=s.business_when_service_received,this.business_recurring_payments=s.business_recurring_payments,this.business_recurring_payments_percentage=s.business_recurring_payments_percentage,this.business_seasonal=s.business_seasonal,this.business_other_payment_details=s.business_other_payment_details}get payload(){return{business_revenue:this.business_revenue||"",business_payment_volume:this.business_payment_volume||"",business_when_service_received:this.business_when_service_received||"",business_recurring_payments:this.business_recurring_payments||"",business_recurring_payments_percentage:this.business_recurring_payments_percentage||"",business_seasonal:this.business_seasonal||"",business_other_payment_details:this.business_other_payment_details||""}}}class c{constructor(s){this.classification=s.classification,this.legal_name=s.legal_name,this.doing_business_as=s.doing_business_as,this.industry=s.industry,this.tax_id=s.tax_id,this.tax_id_last4=s.tax_id_last4,this.website_url=s.website_url,this.email=s.email,this.phone=s.phone,this.date_of_incorporation=s.date_of_incorporation}get payload(){return{classification:this.classification||"",legal_name:this.legal_name||"",doing_business_as:this.doing_business_as||"",industry:this.industry||"",tax_id:this.tax_id||"",website_url:this.website_url||"",email:this.email||"",phone:this.phone||"",date_of_incorporation:this.date_of_incorporation||""}}}class d{constructor(s){this.additional_questions=s.additional_questions?new v(s.additional_questions):null,this.associated_accounts=s.associated_accounts,this.classification=s.classification,this.bank_accounts=s.bank_accounts,this.created_at=s.created_at,this.documents=s.documents,this.doing_business_as=s.doing_business_as,this.email=s.email,this.id=s.id,this.industry=s.industry,this.legal_address=(null==s?void 0:s.legal_address)?new b(s.legal_address):null,this.legal_name=s.legal_name,this.metadata=s.metadata,this.owners=s.owners,this.phone=s.phone,this.platform_account_id=s.platform_account_id,this.product_categories=s.product_categories,this.representative=s.representative?new h(s.representative):null,this.tax_id=s.tax_id,this.tax_id_last4=s.tax_id_last4,this.terms_conditions_accepted=s.terms_conditions_accepted,this.updated_at=s.updated_at,this.website_url=s.website_url,this.date_of_incorporation=s.date_of_incorporation,this.country_of_establishment=o(s.country_of_establishment)}get payload(){return{additional_questions:new v(this.additional_questions).payload,classification:this.classification||"",doing_business_as:this.doing_business_as||"",email:this.email||"",industry:this.industry||"",legal_address:new b(this.legal_address).payload,legal_name:this.legal_name||"",metadata:this.metadata||{},owners:this.owners.map((s=>({id:s.id}))),phone:this.phone||"",platform_account_id:this.platform_account_id||"",representative:new h(this.representative).payload,tax_id:this.tax_id||"",tax_id_last4:this.tax_id_last4||"",website_url:this.website_url||"",date_of_incorporation:this.date_of_incorporation||"",country_of_establishment:this.country_of_establishment||n.USA}}}export{v as A,d as B,n as C,l as O,h as R,s as S,r as a,u as b,e as c,i as d,c as e,b as f}
@@ -1 +1 @@
1
- import{f as t}from"./p-BHf9IqGw.js";import{a as s}from"./p-BH0Xfn-F.js";class i{constructor(t){this.payment_mode=h[t.payment_mode],this.payment_token=t.payment_token,this.payment_status=t.payment_status,this.payment_response=t.payment_response,this.payment_error_code=t.payment_error_code,this.payment_error_description=t.payment_error_description,this.checkout_id=t.checkout_id,this.additional_transactions=t.additional_transactions,this.payment_id=t.payment_id,this.payment_method_id=t.payment_method_id,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}}class e{constructor(t){var s;this.id=t.id,this.description=t.description,this.payment_intent_id=t.payment_intent_id,this.account_id=t.account_id,this.platform_account_id=t.platform_account_id,this.payment_amount=t.payment_amount,this.payment_client_id=t.payment_client_id,this.payment_description=t.payment_description,this.payment_methods=t.payment_methods,this.payment_method_group_id=t.payment_method_group_id,this.payment_settings=t.payment_settings,this.bnpl=t.bnpl,this.total_amount=t.total_amount,this.insurance_amount=t.insurance_amount,this.status=r[t.status],this.payment_currency=t.payment_currency,this.mode=t.mode,this.statement_descriptor=t.statement_descriptor,this.application_fees=t.application_fees,this.successful_payment_id=t.successful_payment_id,this.created_at=t.created_at,this.updated_at=t.updated_at,this.completions=null===(s=t.completions)||void 0===s?void 0:s.map((t=>new i(t)))}get payment_mode(){var t,s,i,e,n,r;let a;if(!this.completions||0===this.completions.length)return h.unknown;const o=this.completions.sort(((t,s)=>new Date(s.updated_at).getTime()-new Date(t.updated_at).getTime()))[0];return o.payment_mode?a=o.payment_mode:(null===(i=null===(s=null===(t=o.payment_response)||void 0===t?void 0:t.data)||void 0===s?void 0:s.payment_method)||void 0===i?void 0:i.card)?a=h.card:(null===(r=null===(n=null===(e=o.payment_response)||void 0===e?void 0:e.data)||void 0===n?void 0:n.payment_method)||void 0===r?void 0:r.bank_account)&&(a=h.bank_account),a}formattedPaymentAmount(s){return t(s,this.payment_currency)}}var h,n,r,a,o,d,c,u,l,f,p,m,_,y,v,g,w,b,P,A,k,C,F,j;!function(t){t.bnpl="Buy Now Pay Later",t.ecom="E-commerce",t.card="Card",t.bank_account="Bank Account",t.card_present="Card Present",t.unknown=""}(h||(h={})),function(t){t.bnpl="bnpl",t.ecom="ecom"}(n||(n={})),function(t){t.created="created",t.completed="completed",t.attempted="attempted",t.expired="expired"}(r||(r={})),function(t){t.failed="failed",t.succeeded="succeeded"}(a||(a={})),function(t){t.automatic="automatic",t.manual="manual"}(o||(o={})),function(t){t.card="card",t.bankAccount="bankAccount",t.sezzle="sezzle",t.plaid="plaid",t.applePay="applePay"}(d||(d={})),function(t){t.card="Card",t.bankAccount="ACH",t.unknown="Unknown"}(c||(c={})),function(t){t.pending="pending",t.automatic="automatic",t.authorized="authorized",t.succeeded="succeeded",t.failed="failed",t.canceled="canceled",t.disputed="disputed",t.fully_refunded="fully_refunded",t.partially_refunded="partially_refunded"}(u||(u={})),function(t){t.usd="usd",t.cad="cad"}(l||(l={}));class B{constructor(t){this.card=t.card?new E(t.card):void 0,this.bank_account=t.bank_account?new D(t.bank_account):void 0}get payersName(){return this.card?this.card.name:this.bank_account?this.bank_account.name:null}get lastFourDigits(){return this.card?`**** ${this.card.acct_last_four}`:this.bank_account?`**** ${this.bank_account.acct_last_four}`:null}}class D{constructor(t){this.id=t.id,this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class E{constructor(t){this.id=t.id||"",this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class I{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.amount_disputed=t.amount_disputed,this.amount_refundable=t.amount_refundable,this.amount_refunded=t.amount_refunded,this.balance=t.balance,this.captured=t.captured,this.capture_strategy=t.capture_strategy,this.description=t.description,this.disputed=t.disputed,this.disputes=t.disputes,this.error_code=t.error_code,this.error_description=t.error_description,this.expedited=t.expedited,this.fee_amount=t.fee_amount,this.is_test=t.is_test,this.metadata=t.metadata,this.payment_method=new B(t.payment_method),this.payment_intent_id=t.payment_intent_id,this.refunded=t.refunded,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}get disputedStatus(){const t=this.disputes.some((t=>t.status===s.lost));return this.disputed?t?s.lost:"open":null}get payment_type(){return this.payment_method?this.payment_method.card?c.card:c.bankAccount:c.unknown}get payers_name(){return this.payment_method.payersName}get last_four_digits(){return this.payment_method.lastFourDigits}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.payment="payment",t.paymentFee="payment_fee",t.payout="payout",t.refund="refund",t.feeRefund="fee_refund",t.dispute="dispute",t.disputeFee="dispute_fee",t.disputeFeeRefund="dispute_fee_refund",t.disputeRefund="dispute_refund",t.applicationFeeReturned="application_fee_returned"}(f||(f={}));class T{constructor(t){this.id=t.id,this.amount=t.amount,this.balance=t.balance,this.currency=t.currency,this.financial_transaction_id=t.financial_transaction_id,this.payment_id=t.payment_id,this.payment_balance_txn_type=t.payment_balance_txn_type,this.source_id=t.source_id,this.source_type=t.source_type,this.created_at=t.created_at,this.updated_at=t.updated_at}get displayTransactionId(){return this.payment_balance_txn_type===f.paymentFee||this.payment_balance_txn_type===f.applicationFeeReturned?"--":this.source_id}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.paid="paid",t.failed="failed",t.forwarded="forwarded",t.scheduled="scheduled",t.in_transit="in_transit",t.canceled="canceled"}(p||(p={})),function(t){t.paid="Paid",t.failed="Failed",t.forwarded="Forwarded",t.scheduled="Scheduled",t.in_transit="In Transit",t.canceled="Canceled"}(m||(m={}));class q{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.bank_account=t.bank_account,this.delivery_method=t.delivery_method||"standard",this.description=t.description,this.deposits_at=t.deposits_at,this.fees_total=t.fees_total,this.refunds_count=t.refunds_count,this.refunds_total=t.refunds_total,this.payments_count=t.payments_count,this.payments_total=t.payments_total,this.payout_type=t.payout_type,this.other_total=t.other_total,this.status=t.status,this.metadata=t.metadata,this.created_at=t.created_at,this.updated_at=t.updated_at,this.settlement_priority=t.settlement_priority||"standard"}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.fee="fee",t.payment="payment",t.payout="payout",t.sellerPaymentRefund="seller_payment_refund",t.disputeAmountCollected="dispute_amount_collected",t.disputeFeeCollected="dispute_fee_collected",t.sellerPayment="seller_payment",t.transfer="transfer",t.partnerPlatformProceedsCredit="partner_platform_proceeds_credit"}(_||(_={}));class x{constructor(t){this.id=t.id,this.account_id=t.account_id,this.payout_id=t.payout_id,this.financial_transaction_id=t.financial_transaction_id,this.amount=t.amount,this.fee=t.fee,this.net=t.net,this.currency=t.currency,this.source_id=t.source_id,this.description=t.description,this.txn_type=t.txn_type,this.created_at=t.created_at,this.available_on=t.available_on,this.updated_at=t.updated_at}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.connected="connected",t.disconnected="disconnected",t.unknown="unknown",t.pending_configuration="pending_configuration"}(y||(y={})),function(t){t.verifone="verifone"}(v||(v={}));class z{constructor(t){this.id=t.id||"",this.status=t.status,this.account_id=t.account_id||"",this.platform_account_id=t.platform_account_id||"",this.provider=t.provider||null,this.provider_id=t.provider_id||"",this.provider_serial_number=t.provider_serial_number||"",this.created_at=t.created_at||"",this.updated_at=t.updated_at||"",this.verified_at=t.verified_at||"",this.nickname=t.nickname||"",this.model_name=t.model_name||null}}!function(t){t.boardingOnly="boarding_only",t.boardingShipping="boarding_shipping"}(g||(g={})),function(t){t.created="created",t.submitted="submitted",t.completed="completed",t.in_progress="in_progress",t.on_hold="on_hold",t.canceled="canceled"}(w||(w={}));class H{constructor(t){this.id=t.id,this.business_id=t.business_id,this.company_name=t.company_name,this.sub_account_id=t.sub_account_id,this.provider=t.provider||v.verifone,this.order_items=[],this.order_type=t.order_type,this.order_status=t.order_status,this.terminals=t.terminals,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{business_id:this.business_id,sub_account_id:this.sub_account_id,order_type:this.order_type,order_items:this.order_items}}get totalQuantity(){return this.order_items.reduce(((t,s)=>t+s.quantity),0)}updateTerminal(t,s){if(0===s)return void(this.order_items=this.order_items.filter((s=>s.model_name!==t)));const i=this.order_items.find((s=>s.model_name===t));i?i.quantity=s:this.order_items.push({model_name:t,quantity:s})}}!function(t){t.v400="v400",t.p400="p400+",t.e285="e285"}(b||(b={}));class S{constructor(t){this.id=t.id,this.model_name=t.model_name,this.description=t.description,this.image_url=t.image_url,this.help_url=t.help_url}}!function(t){t.test="test",t.live="live"}(P||(P={})),function(t){t.created="created",t.submitted="submitted",t.information_needed="information_needed",t.rejected="rejected",t.enabled="enabled",t.disabled="disabled",t.archived="archived"}(A||(A={}));class N{constructor(t){this.id=t.id,this.name=t.name,this.account_type=t.account_type,this.status=t.status,this.currency=t.currency,this.platform_account_id=t.platform_account_id,this.payout_account_id=t.payout_account_id,this.business_id=t.business_id,this.application_fee_rates=t.application_fee_rates,this.processing_ready=t.processing_ready,this.payout_ready=t.payout_ready,this.related_accounts=t.related_accounts,this.created_at=t.created_at,this.updated_at=t.updated_at}}!function(t){t.voidedCheck="voided_check",t.balanceSheet="balance_sheet",t.bankStatement="bank_statement",t.governmentId="government_id",t.profitAndLossStatement="profit_and_loss_statement",t.taxReturn="tax_return",t.other="other"}(k||(k={})),function(t){t.pending="pending",t.uploaded="uploaded",t.canceled="canceled",t.needed="needed"}(C||(C={}));class R{constructor(){this.voided_check=[],this.balance_sheet=[],this.bank_statement=[],this.government_id=[],this.profit_and_loss_statement=[],this.tax_return=[],this.other=[]}}class U{constructor(t,s){this.fileData=null,this.file=t.file,this.document_type=t.document_type,this.presigned_url=null,this.record_data={business_id:s,document_type:this.document_type,file_name:this.file.name,file_type:this.file.type}}async getFileData(){if(this.fileData)return this.fileData;const t=new Promise(((t,s)=>{const i=new FileReader;i.onload=s=>{this.fileData=s.target.result,t(this.fileData)},i.onerror=()=>{s(new Error("Error reading file"))},i.readAsArrayBuffer(this.file)}));return await t}setPresignedUrl(t){this.presigned_url=t}}!function(t){t.succeeded="succeeded",t.failed="failed"}(F||(F={})),function(t){t.customerRequest="customer_request",t.duplicate="duplicate",t.fraudulent="fraudulent"}(j||(j={}));class ${constructor(t){this.amount=t.amount,this.reason=t.reason,this.description=t.description,this.metadata=t.metadata}}export{e as C,k as E,r as I,I as P,j as R,N as S,w as T,n as a,g as b,y as c,q as d,z as e,T as f,x as g,H as h,S as i,$ as j,R as k,U as l}
1
+ import{f as t}from"./p-xWrhxNNk.js";import{a as s}from"./p-BH0Xfn-F.js";class i{constructor(t){this.payment_mode=h[t.payment_mode],this.payment_token=t.payment_token,this.payment_status=t.payment_status,this.payment_response=t.payment_response,this.payment_error_code=t.payment_error_code,this.payment_error_description=t.payment_error_description,this.checkout_id=t.checkout_id,this.additional_transactions=t.additional_transactions,this.payment_id=t.payment_id,this.payment_method_id=t.payment_method_id,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}}class e{constructor(t){var s;this.id=t.id,this.description=t.description,this.payment_intent_id=t.payment_intent_id,this.account_id=t.account_id,this.platform_account_id=t.platform_account_id,this.payment_amount=t.payment_amount,this.payment_client_id=t.payment_client_id,this.payment_description=t.payment_description,this.payment_methods=t.payment_methods,this.payment_method_group_id=t.payment_method_group_id,this.payment_settings=t.payment_settings,this.bnpl=t.bnpl,this.total_amount=t.total_amount,this.insurance_amount=t.insurance_amount,this.status=r[t.status],this.payment_currency=t.payment_currency,this.mode=t.mode,this.statement_descriptor=t.statement_descriptor,this.application_fees=t.application_fees,this.successful_payment_id=t.successful_payment_id,this.created_at=t.created_at,this.updated_at=t.updated_at,this.completions=null===(s=t.completions)||void 0===s?void 0:s.map((t=>new i(t)))}get payment_mode(){var t,s,i,e,n,r;let a;if(!this.completions||0===this.completions.length)return h.unknown;const o=this.completions.sort(((t,s)=>new Date(s.updated_at).getTime()-new Date(t.updated_at).getTime()))[0];return o.payment_mode?a=o.payment_mode:(null===(i=null===(s=null===(t=o.payment_response)||void 0===t?void 0:t.data)||void 0===s?void 0:s.payment_method)||void 0===i?void 0:i.card)?a=h.card:(null===(r=null===(n=null===(e=o.payment_response)||void 0===e?void 0:e.data)||void 0===n?void 0:n.payment_method)||void 0===r?void 0:r.bank_account)&&(a=h.bank_account),a}formattedPaymentAmount(s){return t(s,this.payment_currency)}}var h,n,r,a,o,d,c,u,l,f,p,m,_,y,v,g,w,b,P,k,A,C,F,x;!function(t){t.bnpl="Buy Now Pay Later",t.ecom="E-commerce",t.card="Card",t.bank_account="Bank Account",t.card_present="Card Present",t.unknown=""}(h||(h={})),function(t){t.bnpl="bnpl",t.ecom="ecom"}(n||(n={})),function(t){t.created="created",t.completed="completed",t.attempted="attempted",t.expired="expired"}(r||(r={})),function(t){t.failed="failed",t.succeeded="succeeded"}(a||(a={})),function(t){t.automatic="automatic",t.manual="manual"}(o||(o={})),function(t){t.card="card",t.bankAccount="bankAccount",t.sezzle="sezzle",t.plaid="plaid",t.applePay="applePay"}(d||(d={})),function(t){t.card="Card",t.bankAccount="ACH",t.unknown="Unknown"}(c||(c={})),function(t){t.pending="pending",t.automatic="automatic",t.authorized="authorized",t.succeeded="succeeded",t.failed="failed",t.canceled="canceled",t.disputed="disputed",t.fully_refunded="fully_refunded",t.partially_refunded="partially_refunded"}(u||(u={})),function(t){t.usd="usd",t.cad="cad"}(l||(l={}));class j{constructor(t){this.card=t.card?new E(t.card):void 0,this.bank_account=t.bank_account?new D(t.bank_account):void 0}get payersName(){return this.card?this.card.name:this.bank_account?this.bank_account.name:null}get lastFourDigits(){return this.card?`**** ${this.card.acct_last_four}`:this.bank_account?`**** ${this.bank_account.acct_last_four}`:null}}class D{constructor(t){this.id=t.id,this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class E{constructor(t){this.id=t.id||"",this.acct_last_four=t.acct_last_four,this.name=t.name,this.brand=t.brand,this.token=t.token,this.created_at=t.created_at,this.updated_at=t.updated_at}}class N{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.amount_disputed=t.amount_disputed,this.amount_refundable=t.amount_refundable,this.amount_refunded=t.amount_refunded,this.balance=t.balance,this.captured=t.captured,this.capture_strategy=t.capture_strategy,this.description=t.description,this.disputed=t.disputed,this.disputes=t.disputes,this.error_code=t.error_code,this.error_description=t.error_description,this.expedited=t.expedited,this.fee_amount=t.fee_amount,this.is_test=t.is_test,this.metadata=t.metadata,this.payment_method=new j(t.payment_method),this.payment_intent_id=t.payment_intent_id,this.refunded=t.refunded,this.status=t.status,this.created_at=t.created_at,this.updated_at=t.updated_at}get disputedStatus(){const t=this.disputes.some((t=>t.status===s.lost));return this.disputed?t?s.lost:"open":null}get payment_type(){return this.payment_method?this.payment_method.card?c.card:c.bankAccount:c.unknown}get payers_name(){return this.payment_method.payersName}get last_four_digits(){return this.payment_method.lastFourDigits}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.payment="payment",t.paymentFee="payment_fee",t.payout="payout",t.refund="refund",t.feeRefund="fee_refund",t.dispute="dispute",t.disputeFee="dispute_fee",t.disputeFeeRefund="dispute_fee_refund",t.disputeRefund="dispute_refund",t.applicationFeeReturned="application_fee_returned"}(f||(f={}));class T{constructor(t){this.id=t.id,this.amount=t.amount,this.balance=t.balance,this.currency=t.currency,this.financial_transaction_id=t.financial_transaction_id,this.payment_id=t.payment_id,this.payment_balance_txn_type=t.payment_balance_txn_type,this.source_id=t.source_id,this.source_type=t.source_type,this.created_at=t.created_at,this.updated_at=t.updated_at}get displayTransactionId(){return this.payment_balance_txn_type===f.paymentFee||this.payment_balance_txn_type===f.applicationFeeReturned?"--":this.source_id}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.paid="paid",t.failed="failed",t.forwarded="forwarded",t.scheduled="scheduled",t.in_transit="in_transit",t.canceled="canceled"}(p||(p={})),function(t){t.paid="Paid",t.failed="Failed",t.forwarded="Forwarded",t.scheduled="Scheduled",t.in_transit="In Transit",t.canceled="Canceled"}(m||(m={}));class z{constructor(t){this.id=t.id,this.account_id=t.account_id,this.currency=t.currency,this.amount=t.amount,this.bank_account=t.bank_account,this.delivery_method=t.delivery_method||"standard",this.description=t.description,this.deposits_at=t.deposits_at,this.fees_total=t.fees_total,this.refunds_count=t.refunds_count,this.refunds_total=t.refunds_total,this.payments_count=t.payments_count,this.payments_total=t.payments_total,this.payout_type=t.payout_type,this.other_total=t.other_total,this.status=t.status,this.metadata=t.metadata,this.created_at=t.created_at,this.updated_at=t.updated_at,this.settlement_priority=t.settlement_priority||"standard"}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.fee="fee",t.payment="payment",t.payout="payout",t.sellerPaymentRefund="seller_payment_refund",t.disputeAmountCollected="dispute_amount_collected",t.disputeFeeCollected="dispute_fee_collected",t.sellerPayment="seller_payment",t.transfer="transfer",t.partnerPlatformProceedsCredit="partner_platform_proceeds_credit"}(_||(_={}));class B{constructor(t){this.id=t.id,this.account_id=t.account_id,this.payout_id=t.payout_id,this.financial_transaction_id=t.financial_transaction_id,this.amount=t.amount,this.fee=t.fee,this.net=t.net,this.currency=t.currency,this.source_id=t.source_id,this.description=t.description,this.txn_type=t.txn_type,this.created_at=t.created_at,this.available_on=t.available_on,this.updated_at=t.updated_at}formattedPaymentAmount(s){return t(s,this.currency)}}!function(t){t.connected="connected",t.disconnected="disconnected",t.unknown="unknown",t.pending_configuration="pending_configuration"}(y||(y={})),function(t){t.verifone="verifone"}(v||(v={}));class I{constructor(t){this.id=t.id||"",this.status=t.status,this.account_id=t.account_id||"",this.platform_account_id=t.platform_account_id||"",this.provider=t.provider||null,this.provider_id=t.provider_id||"",this.provider_serial_number=t.provider_serial_number||"",this.created_at=t.created_at||"",this.updated_at=t.updated_at||"",this.verified_at=t.verified_at||"",this.nickname=t.nickname||"",this.model_name=t.model_name||null}}!function(t){t.boardingOnly="boarding_only",t.boardingShipping="boarding_shipping"}(g||(g={})),function(t){t.created="created",t.submitted="submitted",t.completed="completed",t.in_progress="in_progress",t.on_hold="on_hold",t.canceled="canceled"}(w||(w={}));class S{constructor(t){this.id=t.id,this.business_id=t.business_id,this.company_name=t.company_name,this.sub_account_id=t.sub_account_id,this.provider=t.provider||v.verifone,this.order_items=[],this.order_type=t.order_type,this.order_status=t.order_status,this.terminals=t.terminals,this.created_at=t.created_at,this.updated_at=t.updated_at}get payload(){return{business_id:this.business_id,sub_account_id:this.sub_account_id,order_type:this.order_type,order_items:this.order_items}}get totalQuantity(){return this.order_items.reduce(((t,s)=>t+s.quantity),0)}updateTerminal(t,s){if(0===s)return void(this.order_items=this.order_items.filter((s=>s.model_name!==t)));const i=this.order_items.find((s=>s.model_name===t));i?i.quantity=s:this.order_items.push({model_name:t,quantity:s})}}!function(t){t.v400="v400",t.p400="p400+",t.e285="e285"}(b||(b={}));class q{constructor(t){this.id=t.id,this.model_name=t.model_name,this.description=t.description,this.image_url=t.image_url,this.help_url=t.help_url}}!function(t){t.test="test",t.live="live"}(P||(P={})),function(t){t.created="created",t.submitted="submitted",t.information_needed="information_needed",t.rejected="rejected",t.enabled="enabled",t.disabled="disabled",t.archived="archived"}(k||(k={}));class H{constructor(t){this.id=t.id,this.name=t.name,this.account_type=t.account_type,this.status=t.status,this.currency=t.currency,this.platform_account_id=t.platform_account_id,this.payout_account_id=t.payout_account_id,this.business_id=t.business_id,this.application_fee_rates=t.application_fee_rates,this.processing_ready=t.processing_ready,this.payout_ready=t.payout_ready,this.related_accounts=t.related_accounts,this.created_at=t.created_at,this.updated_at=t.updated_at}}!function(t){t.voidedCheck="voided_check",t.balanceSheet="balance_sheet",t.bankStatement="bank_statement",t.governmentId="government_id",t.profitAndLossStatement="profit_and_loss_statement",t.taxReturn="tax_return",t.other="other"}(A||(A={})),function(t){t.pending="pending",t.uploaded="uploaded",t.canceled="canceled",t.needed="needed"}(C||(C={}));class R{constructor(){this.voided_check=[],this.balance_sheet=[],this.bank_statement=[],this.government_id=[],this.profit_and_loss_statement=[],this.tax_return=[],this.other=[]}}class U{constructor(t,s){this.fileData=null,this.file=t.file,this.document_type=t.document_type,this.presigned_url=null,this.record_data={business_id:s,document_type:this.document_type,file_name:this.file.name,file_type:this.file.type}}async getFileData(){if(this.fileData)return this.fileData;const t=new Promise(((t,s)=>{const i=new FileReader;i.onload=s=>{this.fileData=s.target.result,t(this.fileData)},i.onerror=()=>{s(new Error("Error reading file"))},i.readAsArrayBuffer(this.file)}));return await t}setPresignedUrl(t){this.presigned_url=t}}!function(t){t.succeeded="succeeded",t.failed="failed"}(F||(F={})),function(t){t.customerRequest="customer_request",t.duplicate="duplicate",t.fraudulent="fraudulent"}(x||(x={}));class ${constructor(t){this.amount=t.amount,this.reason=t.reason,this.description=t.description,this.metadata=t.metadata}}export{e as C,A as E,r as I,N as P,x as R,H as S,w as T,n as a,g as b,y as c,z as d,I as e,T as f,B as g,S as h,q as i,$ as j,R as k,U as l}
@@ -0,0 +1 @@
1
+ var e={name:"@justifi/webcomponents",version:"6.1.0-rc.3"};export{e as p}
@@ -1 +1 @@
1
- import{p as t}from"./p-BBO3I4s6.js";import{A as s}from"./p-BUa0YOaw.js";import"./p-Cjcsf8ku.js";import"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";const i=s();class e{async record(t){return i.post({endpoint:"analytics",body:t})}}class o{constructor(t){this.handleCustomEvent=async t=>{await this.service.record(t)},window.location.origin.includes("localhost")||window.location.origin.includes("storybook")||(this.service=new e,this.componentInstance=t,this.setUpBasicData(),this.setupLifecycleTracking(),this.trackCustomEvents())}get resourceId(){return this.componentInstance.accountId||this.componentInstance.businessId||this.componentInstance.paymentId||this.componentInstance.payoutId||this.componentInstance.checkoutId}setUpBasicData(){this.basicData={component_name:this.componentInstance.tagName,component_version:t.version,client_user_agent:navigator.userAgent,client_platform:navigator.userAgent,client_origin:window.location.origin,resource_id:this.resourceId}}trackCustomEvents(){this.eventEmitters=["submit-event","error-event"],this.eventEmitters.forEach((t=>{"function"==typeof this.componentInstance.addEventListener&&this.componentInstance.addEventListener(t,(s=>this.handleCustomEvent({event_type:t,data:Object.assign(Object.assign({},this.basicData),{error:s.detail})})))}))}setupLifecycleTracking(){const t=this.componentInstance.componentDidLoad;this.componentInstance.componentDidLoad=()=>{if(this.service.record({event_type:"init",data:this.basicData}),t)return t.apply(this.componentInstance)}}cleanup(){this.eventEmitters&&this.eventEmitters.forEach((t=>{this.componentInstance.removeEventListener(t,this.handleCustomEvent)}))}}const n=async()=>{var s,i;if("undefined"!=typeof process&&("test"===(null===(s=process.env)||void 0===s?void 0:s.NODE_ENV)||(null===(i=process.env)||void 0===i?void 0:i.JEST_WORKER_ID)))return;const e=t.version,o=t.name,n=await(async t=>{const s=await fetch("https://registry.npmjs.org/"+t+"/latest");return(await s.json()).version})(o),r=n.replace(/-rc.*/,""),a=e.split("."),c=n.split(".");a[0]!==c[0]&&console.warn(`The package ${o} is out of date. The latest version is ${r}. Please update.`)};export{o as J,n as c}
1
+ import{p as t}from"./p-BRhnhmpB.js";import{A as s}from"./p-M5r2kSbf.js";import"./p-Cjcsf8ku.js";import"./p-BPDMo6us.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";const i=s();class e{async record(t){return i.post({endpoint:"analytics",body:t})}}class o{constructor(t){this.handleCustomEvent=async t=>{await this.service.record(t)},window.location.origin.includes("localhost")||window.location.origin.includes("storybook")||(this.service=new e,this.componentInstance=t,this.setUpBasicData(),this.setupLifecycleTracking(),this.trackCustomEvents())}get resourceId(){return this.componentInstance.accountId||this.componentInstance.businessId||this.componentInstance.paymentId||this.componentInstance.payoutId||this.componentInstance.checkoutId}setUpBasicData(){this.basicData={component_name:this.componentInstance.tagName,component_version:t.version,client_user_agent:navigator.userAgent,client_platform:navigator.userAgent,client_origin:window.location.origin,resource_id:this.resourceId}}trackCustomEvents(){this.eventEmitters=["submit-event","error-event"],this.eventEmitters.forEach((t=>{"function"==typeof this.componentInstance.addEventListener&&this.componentInstance.addEventListener(t,(s=>this.handleCustomEvent({event_type:t,data:Object.assign(Object.assign({},this.basicData),{error:s.detail})})))}))}setupLifecycleTracking(){const t=this.componentInstance.componentDidLoad;this.componentInstance.componentDidLoad=()=>{if(this.service.record({event_type:"init",data:this.basicData}),t)return t.apply(this.componentInstance)}}cleanup(){this.eventEmitters&&this.eventEmitters.forEach((t=>{this.componentInstance.removeEventListener(t,this.handleCustomEvent)}))}}const n=async()=>{var s,i;if("undefined"!=typeof process&&("test"===(null===(s=process.env)||void 0===s?void 0:s.NODE_ENV)||(null===(i=process.env)||void 0===i?void 0:i.JEST_WORKER_ID)))return;const e=t.version,o=t.name,n=await(async t=>{const s=await fetch("https://registry.npmjs.org/"+t+"/latest");return(await s.json()).version})(o),r=n.replace(/-rc.*/,""),a=e.split("."),c=n.split(".");a[0]!==c[0]&&console.warn(`The package ${o} is out of date. The latest version is ${r}. Please update.`)};export{o as J,n as c}
@@ -1 +1 @@
1
- import{h as t}from"./p-qipqIMyC.js";import{N as e,O as r}from"./p-RvUQ__Pq.js";import{a}from"./p-BHf9IqGw.js";import"./p-Bp_QFeog.js";import"./p-Cjcsf8ku.js";import{b as s}from"./p-c4Mh3ZZ_.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{B as o,a as i}from"./p-D--yCspA.js";const d="created_at,updated_at,order_status,quantity",p={created_at:()=>t("th",{part:e,scope:"col",title:"The date and time the order was created"},"Created At"),updated_at:()=>t("th",{part:e,scope:"col",title:"The date and time the order was last updated"},"Updated At"),order_status:()=>t("th",{part:e,scope:"col",title:"The current status of the order"},"Order Status"),business_id:()=>t("th",{part:e,scope:"col",title:"The business ID associated with the order"},"Business ID"),company_name:()=>t("th",{part:e,scope:"col",title:"The business name associated with the order"},"Business Name"),provider:()=>t("th",{part:e,scope:"col",title:"The provider associated with the order"},"Provider"),order_type:()=>t("th",{part:e,scope:"col",title:"The type of order"},"Order Type"),quantity:()=>t("th",{part:e,scope:"col",title:"The number of terminals associated with the order"},"Order Quantity")},l={created_at:(e,s)=>t("td",{part:r(s)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e.created_at,{showTime:!0}))),updated_at:(e,s)=>t("td",{part:r(s)},t("div",{class:"fw-bold"},a(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e.updated_at,{showTime:!0}))),order_status:(e,a)=>t("td",{part:r(a)},t(i,Object.assign({},{submitted:{variant:o.PRIMARY,title:"This order is submitted",text:"Submitted"},completed:{variant:o.SUCCESS,title:"This order has been completed",text:"Completed"},created:{variant:o.SECONDARY,title:"This order is created",text:"Created"},in_progress:{variant:o.PRIMARY,title:"This order is in progress",text:"In Progress"},on_hold:{variant:o.WARNING,title:"This order is on hold",text:"On Hold"},canceled:{variant:o.DANGER,title:"This order is canceled",text:"Canceled"}}[e.order_status]))),business_id:(e,a)=>t("td",{part:r(a)},e.business_id),company_name:(e,a)=>t("td",{part:r(a)},e.company_name),provider:(e,a)=>t("td",{part:r(a)},e.provider),order_type:(e,a)=>{let o;return e.order_type===s.boardingOnly?o="Boarding Only":e.order_type===s.boardingShipping&&(o="Boarding & Shipping"),t("td",{part:r(a)},o)},quantity:(e,a)=>t("td",{part:r(a)},e.terminals.length)};export{l as a,d,p as t}
1
+ import{h as t}from"./p-_b8l4IX7.js";import{N as e,O as r}from"./p-CA_TyBed.js";import{a}from"./p-xWrhxNNk.js";import"./p-DMf85Fkr.js";import"./p-Cjcsf8ku.js";import{b as s}from"./p-BPDMo6us.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";import{B as o,a as d}from"./p-CtWnJFtW.js";const i="created_at,updated_at,order_status,quantity",p={created_at:()=>t("th",{part:e,scope:"col",title:"The date and time the order was created"},"Created At"),updated_at:()=>t("th",{part:e,scope:"col",title:"The date and time the order was last updated"},"Updated At"),order_status:()=>t("th",{part:e,scope:"col",title:"The current status of the order"},"Order Status"),business_id:()=>t("th",{part:e,scope:"col",title:"The business ID associated with the order"},"Business ID"),company_name:()=>t("th",{part:e,scope:"col",title:"The business name associated with the order"},"Business Name"),provider:()=>t("th",{part:e,scope:"col",title:"The provider associated with the order"},"Provider"),order_type:()=>t("th",{part:e,scope:"col",title:"The type of order"},"Order Type"),quantity:()=>t("th",{part:e,scope:"col",title:"The number of terminals associated with the order"},"Order Quantity")},l={created_at:(e,s)=>t("td",{part:r(s)},t("div",{class:"fw-bold"},a(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e.created_at,{showTime:!0}))),updated_at:(e,s)=>t("td",{part:r(s)},t("div",{class:"fw-bold"},a(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},a(e.updated_at,{showTime:!0}))),order_status:(e,a)=>t("td",{part:r(a)},t(d,Object.assign({},{submitted:{variant:o.PRIMARY,title:"This order is submitted",text:"Submitted"},completed:{variant:o.SUCCESS,title:"This order has been completed",text:"Completed"},created:{variant:o.SECONDARY,title:"This order is created",text:"Created"},in_progress:{variant:o.PRIMARY,title:"This order is in progress",text:"In Progress"},on_hold:{variant:o.WARNING,title:"This order is on hold",text:"On Hold"},canceled:{variant:o.DANGER,title:"This order is canceled",text:"Canceled"}}[e.order_status]))),business_id:(e,a)=>t("td",{part:r(a)},e.business_id),company_name:(e,a)=>t("td",{part:r(a)},e.company_name),provider:(e,a)=>t("td",{part:r(a)},e.provider),order_type:(e,a)=>{let o;return e.order_type===s.boardingOnly?o="Boarding Only":e.order_type===s.boardingShipping&&(o="Boarding & Shipping"),t("td",{part:r(a)},o)},quantity:(e,a)=>t("td",{part:r(a)},e.terminals.length)};export{l as a,i as d,p as t}
@@ -0,0 +1 @@
1
+ import{h as r}from"./p-_b8l4IX7.js";import{A as t}from"./p-CA_TyBed.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}
@@ -0,0 +1 @@
1
+ import{A as t}from"./p-M5r2kSbf.js";import"./p-Cjcsf8ku.js";import"./p-BPDMo6us.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";const n=t();class a{async fetchPayments(t,a,s){return n.get({endpoint:`account/${t}/payments`,params:s,authToken:a})}async fetchPayment(t,a){return n.get({endpoint:`payments/${t}`,authToken:a})}async fetchPaymentTransactions(t,a,s){return n.get({endpoint:`payments/${t}/payment_balance_transactions`,params:s,authToken:a})}}export{a as P}
@@ -0,0 +1 @@
1
+ import{c as s}from"./p-hj8k0lRi.js";const t={},a={},o=s((()=>t)),{state:c,on:e}=o,j=s((()=>a)),{state:p}=j,r=()=>Object.assign(Object.assign({},c),p),b=()=>{o.reset()};export{b as c,c as f,r as g,e as o,p}
@@ -0,0 +1 @@
1
+ import{c as s,a as e}from"./p-DiJD6Iqx.js";import{m as i,d as n,i as a,b as t,a as r,p as o,e as _,w as u,c,t as l,o as b,s as m,r as p,f as d,g as h,h as f,j as v}from"./p-DxVCqvBt.js";import{C as g}from"./p-B5rtFhtR.js";import{c as y}from"./p-DfKxeSrC.js";const w=e=>{const i=s({legal_name:c.required("Enter legal name"),website_url:u.required("Enter business website url"),email:_.required("Enter business email"),phone:o.required("Enter phone number"),doing_business_as:r.nullable(),classification:t.required("Select business classification"),industry:a.required("Enter a business industry"),date_of_incorporation:n.required("Enter date of incorporation")}),b=s({legal_name:c.required("Enter legal name"),website_url:u.nullable(),email:_.nullable(),phone:o.nullable(),doing_business_as:r.nullable(),classification:t.nullable(),industry:a.nullable(),tax_id:l.nullable(),date_of_incorporation:n.nullable()});return e?b:i},E=n=>w(n).concat(s({classification:e().required("Select business classification"),tax_id:i(g.USA).when("tax_id_last4",{is:s=>!s,then:s=>s.required(`Enter valid ${y.USA.taxIdLabel} without dashes`),otherwise:s=>s.nullable()})})),x=n=>w(n).concat(s({classification:e().required("Select business classification"),tax_id:i(g.CAN).when("tax_id_last4",{is:s=>!s,then:s=>s.required(`Enter valid ${y.CAN.taxIdLabel} without dashes`),otherwise:s=>s.nullable()})})),S=e=>{const i=s({business_revenue:v.required("Enter business revenue"),business_payment_volume:f.required("Enter business payment volume"),business_when_service_received:h.required("Select when service is received"),business_recurring_payments:d.required("Select recurring payments"),business_recurring_payments_percentage:p,business_seasonal:m.required("Select business seasonal"),business_other_payment_details:b.nullable()}),n=s({business_revenue:v.nullable(),business_payment_volume:f.nullable(),business_when_service_received:h.nullable(),business_recurring_payments:d.nullable(),business_recurring_payments_percentage:p,business_seasonal:m.nullable(),business_other_payment_details:b.nullable()});return e?n:i};export{S as a,E as b,x as c}
@@ -1 +1 @@
1
- import{d as t}from"./p-Dt-vy9Le.js";const b=(t,b)=>{t.setValues(Object.assign(Object.assign({},t.values.getValue()),b))},e=(t,e)=>{b(t,{address:Object.assign(Object.assign({},t.values.getValue().address),e)})},o=(e,o)=>{const s=t(e.detail);b(o,Object.assign(Object.assign({},o.values.getValue()),{dob_day:s.dob_day,dob_month:s.dob_month,dob_year:s.dob_year}))};export{e as a,o as b,b as u}
1
+ import{d as t}from"./p-B5rtFhtR.js";const b=(t,b)=>{t.setValues(Object.assign(Object.assign({},t.values.getValue()),b))},e=(t,e)=>{b(t,{address:Object.assign(Object.assign({},t.values.getValue().address),e)})},o=(e,o)=>{const s=t(e.detail);b(o,Object.assign(Object.assign({},o.values.getValue()),{dob_day:s.dob_day,dob_month:s.dob_month,dob_year:s.dob_year}))};export{e as a,o as b,b as u}
@@ -1 +1 @@
1
- const a="font-family",t="background-color",e=`text color ${a}`,s=`text-danger ${e}`,i=`heading ${e}`,r=`heading-1 ${i}`,l=`heading-2 ${i}`,n=`heading-3 ${i}`,o=`heading-4 ${i}`,$=`heading-5 ${i}`,d=`button ${e}`,p=`button-primary ${d}`,m=`button-secondary ${d}`,u=`button-link ${d}`,c="button-loading",b=`label ${e}`,f=`input ${e} ${t}`,g=`input-group ${f}`,h=`input-invalid ${f}`,y=`input-disabled ${f}`,k=`input-focused ${f}`,x=`input-invalid-and-focused ${f}`,v="input-radio",w=`input-radio-focused ${v}`,j=`input-radio-checked ${v}`,q=`input-radio-checked-focused ${v}`,z=`input-radio-invalid ${v}`,A="input-checkbox",B=`input-checkbox-invalid ${A}`,C=`input-checkbox-focused ${A}`,D=`input-checkbox-checked ${A}`,E=`input-checkbox-checked-focused ${A}`,F=`input-adornment ${e}`,G=`alert-danger alert ${e}`,H=`tooltip ${e}`,I=`tooltip-icon ${e}`,J=`tooltip-inner ${e}`,K=`card ${e} ${t}`,L=`table ${e} ${t}`,M=`table-row ${e} ${t}`,N=`table-cell ${e} ${t}`,O="table-head",P=`table-head-row ${e} ${t}`,Q=`table-head-cell ${N}`,R="table-foot",S=`table-foot-row ${e} ${t}`,T=`table-foot-cell ${N}`,U=`table-cell-even ${N}`,V=`table-cell-odd ${N}`,W=a=>a%2?U:V,X=`table-empty ${e} ${t}`,Y=`table-error ${e} ${t}`,Z=`pagination-button ${d}`,_=`pagination-button-disabled button-disabled ${d}`,aa=`pagination-button-text ${e}`,ta=`pagination-button-icon ${e}`,ea=`pagination-button-icon-next ${ta}`,sa=`pagination-button-icon-previous ${ta}`,ia="loading-spinner",ra=`badge ${a}`,la=`${ra} badge-primary`,na=`${ra} badge-secondary`,oa=`${ra} badge-success`,$a=`${ra} badge-danger`,da=`${ra} badge-warning`,pa=`${ra} badge-info`,ma=`${ra} badge-light`,ua=`${ra} badge-dark`,ca=`dropdown-menu ${e}`,ba=`dropdown-menu-button ${p}`,fa=`radio-list-item ${e}`,ga="skeleton",ha="image",ya="billing-form",ka="checkout-summary",xa="filter-menu",va=`${xa} payments-list-filter-menu`,wa="payments-list-filter-param",ja=`${wa} payment-id-payments-list-filter-param`,qa=`${wa} terminal-id-payments-list-filter-param`,za=`${wa} payment-status-payments-list-filter-param`,Aa=`${wa} created-after-payments-list-filter-param`,Ba=`${wa} created-before-payments-list-filter-param`,Ca=`${xa} payouts-list-filter-menu`,Da="payouts-list-filter-param",Ea=`${Da} created-after-payouts-list-filter-param`,Fa=`${Da} created-before-payouts-list-filter-param`,Ga=`${xa} checkouts-list-filter-menu`,Ha="checkouts-list-filter-param",Ia=`${Ha} checkout-status-checkouts-list-filter-param`,Ja=`${Ha} payment-mode-checkouts-list-filter-param`,Ka=`${xa} terminals-list-filter-menu`,La="terminals-list-filter-param",Ma=`${La} terminal-id-terminals-list-filter-param`,Na=`${La} terminal-order-id-terminals-list-filter-param`,Oa=`${La} terminal-status-terminals-list-filter-param`,Pa=`${xa} terminal-orders-list-filter-menu`,Qa="terminal-orders-list-filter-param",Ra=`${Qa} order-status-terminal-orders-list-filter-param`,Sa=`${Qa} order-type-terminal-orders-list-filter-param`,Ta=`${Qa} created-after-terminal-orders-list-filter-param`,Ua=`${Qa} created-before-terminal-orders-list-filter-param`;export{C as $,s as A,r as B,l as C,ua as D,ma as E,pa as F,da as G,$a as H,oa as I,na as J,la as K,ra as L,ia as M,Q as N,W as O,Ka as P,Ma as Q,Na as R,Oa as S,y as T,F as U,n as V,ha as W,u as X,K as Y,B as Z,E as _,k as a,D as a0,A as a1,g as a2,z as a3,q as a4,j as a5,w as a6,v as a7,Z as a8,_ as a9,sa as aa,aa as ab,ea as ac,m as ad,p as ae,c as af,ba as ag,ca as ah,o as ai,L as aj,N as ak,$ as al,O as am,P as an,M as ao,R as ap,S as aq,T as ar,X as as,Y as at,G as au,ya as av,H as aw,J as ax,I as ay,h as b,f as c,ka as d,Ga as e,va as f,ja as g,za as h,x as i,Aa as j,Ba as k,b as l,Ca as m,Ea as n,Fa as o,Ja as p,Pa as q,fa as r,Ia as s,qa as t,Ra as u,Sa as v,Ta as w,Ua as x,ga as y,e as z}
1
+ const a="font-family",t="background-color",e=`text color ${a}`,s=`text-danger ${e}`,i=`heading ${e}`,r=`heading-1 ${i}`,l=`heading-2 ${i}`,n=`heading-3 ${i}`,o=`heading-4 ${i}`,$=`heading-5 ${i}`,d=`button ${e}`,p=`button-primary ${d}`,m=`button-secondary ${d}`,u=`button-link ${d}`,c="button-loading",b=`label ${e}`,f=`input ${e} ${t}`,g=`input-group ${f}`,h=`input-invalid ${f}`,y=`input-disabled ${f}`,k=`input-focused ${f}`,x=`input-invalid-and-focused ${f}`,v="input-radio",w=`input-radio-focused ${v}`,j=`input-radio-checked ${v}`,q=`input-radio-checked-focused ${v}`,z=`input-radio-invalid ${v}`,A="input-checkbox",B=`input-checkbox-invalid ${A}`,C=`input-checkbox-focused ${A}`,D=`input-checkbox-checked ${A}`,E=`input-checkbox-checked-focused ${A}`,F=`input-adornment ${e}`,G=`alert-danger alert ${e}`,H=`tooltip ${e}`,I=`tooltip-icon ${e}`,J=`tooltip-inner ${e}`,K=`card ${e} ${t}`,L=`table ${e} ${t}`,M=`table-row ${e} ${t}`,N=`table-cell ${e} ${t}`,O="table-head",P=`table-head-row ${e} ${t}`,Q=`table-head-cell ${N}`,R="table-foot",S=`table-foot-row ${e} ${t}`,T=`table-foot-cell ${N}`,U=`table-cell-even ${N}`,V=`table-cell-odd ${N}`,W=a=>a%2?U:V,X=`table-empty ${e} ${t}`,Y=`table-error ${e} ${t}`,Z=`pagination-button ${d}`,_=`pagination-button-disabled button-disabled ${d}`,aa=`pagination-button-text ${e}`,ta=`pagination-button-icon ${e}`,ea=`pagination-button-icon-next ${ta}`,sa=`pagination-button-icon-previous ${ta}`,ia="loading-spinner",ra=`badge ${a}`,la=`${ra} badge-primary`,na=`${ra} badge-secondary`,oa=`${ra} badge-success`,$a=`${ra} badge-danger`,da=`${ra} badge-warning`,pa=`${ra} badge-info`,ma=`${ra} badge-light`,ua=`${ra} badge-dark`,ca=`dropdown-menu ${e}`,ba=`dropdown-menu-button ${p}`,fa=`radio-list-item ${e}`,ga="skeleton",ha="image",ya="billing-form",ka="checkout-summary",xa="filter-menu",va=`${xa} payments-list-filter-menu`,wa="payments-list-filter-param",ja=`${wa} payment-id-payments-list-filter-param`,qa=`${wa} terminal-id-payments-list-filter-param`,za=`${wa} payment-status-payments-list-filter-param`,Aa=`${wa} created-after-payments-list-filter-param`,Ba=`${wa} created-before-payments-list-filter-param`,Ca=`${xa} payouts-list-filter-menu`,Da="payouts-list-filter-param",Ea=`${Da} created-after-payouts-list-filter-param`,Fa=`${Da} created-before-payouts-list-filter-param`,Ga=`${xa} checkouts-list-filter-menu`,Ha="checkouts-list-filter-param",Ia=`${Ha} checkout-status-checkouts-list-filter-param`,Ja=`${Ha} payment-mode-checkouts-list-filter-param`,Ka=`${xa} terminals-list-filter-menu`,La="terminals-list-filter-param",Ma=`${La} terminal-id-terminals-list-filter-param`,Na=`${La} terminal-order-id-terminals-list-filter-param`,Oa=`${La} terminal-status-terminals-list-filter-param`,Pa=`${xa} terminal-orders-list-filter-menu`,Qa="terminal-orders-list-filter-param",Ra=`${Qa} order-status-terminal-orders-list-filter-param`,Sa=`${Qa} order-type-terminal-orders-list-filter-param`,Ta=`${Qa} created-after-terminal-orders-list-filter-param`,Ua=`${Qa} created-before-terminal-orders-list-filter-param`;export{E as $,s as A,r as B,l as C,ua as D,ma as E,pa as F,da as G,$a as H,oa as I,na as J,la as K,ra as L,ia as M,Q as N,W as O,Ka as P,Ma as Q,Na as R,Oa as S,y as T,F as U,n as V,ha as W,u as X,K as Y,m as Z,B as _,k as a,C as a0,D as a1,A as a2,g as a3,z as a4,q as a5,j as a6,w as a7,v as a8,Z as a9,_ as aa,sa as ab,aa as ac,ea as ad,p as ae,c as af,ba as ag,ca as ah,H as ai,J as aj,I as ak,o as al,$ as am,L as an,O as ao,P as ap,M as aq,R as ar,S as as,T as at,X as au,Y as av,N as aw,G as ax,ya as ay,h as b,f as c,ka as d,Ga as e,va as f,ja as g,za as h,x as i,Aa as j,Ba as k,b as l,Ca as m,Ea as n,Fa as o,Ja as p,Pa as q,fa as r,Ia as s,qa as t,Ra as u,Sa as v,Ta as w,Ua as x,ga as y,e as z}
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-_b8l4IX7.js";import{y as e}from"./p-CA_TyBed.js";const s=({component:s="div",height:o,width:r,className:i,styles:a={}})=>{const c=Object.assign(Object.assign({},a),{width:r,height:o});return t(s,{class:`${i} skeleton`,style:c,part:e,"aria-hidden":"true"})};export{s as S}
@@ -0,0 +1 @@
1
+ import{A as t}from"./p-M5r2kSbf.js";import"./p-Cjcsf8ku.js";import"./p-BPDMo6us.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";const a=t();class s{async fetchPayouts(t,s,n){return a.get({authToken:s,endpoint:`account/${t}/payouts`,params:n})}async fetchPayout(t,s){return a.get({authToken:s,endpoint:`payouts/${t}`})}async fetchCSV(t,s){return a.get({authToken:s,endpoint:`reports/payouts/${t}`})}async fetchPayoutTransactions(t,s,n){return a.get({authToken:s,endpoint:"balance_transactions",params:n,headers:{"sub-account":t}})}}export{s as P}
@@ -1 +1 @@
1
- import{a as e}from"./p-BlJnA265.js";const a=[{label:"Choose business classification",value:""},{label:"Sole Proprietor",value:e.sole_proprietor},{label:"Partnership",value:e.partnership},{label:"Corporation",value:e.corporation},{label:"Public Company",value:e.public_company},{label:"Limited Liability Company (LLC)",value:e.limited},{label:"Non Profit",value:e.non_profit},{label:"Government",value:e.government}],l=[{label:"Within 7 days",value:"Within 7 days"},{label:"Within 30 days",value:"Within 30 days"},{label:"Within 90 days",value:"Within 90 days"},{label:"Within 120 days",value:"Within 120 days"},{label:"More than 120 days",value:"More than 120 days"}],s=[{label:"Yes",value:"Yes"},{label:"No",value:"No"}],i=[{label:"Yes. The majority of the business revenue is generated in 3-6 months.",value:"Yes"},{label:"No. The business revenue is generated evenly throughout the year.",value:"No"}],n=[{label:"Checking",value:"checking"},{label:"Savings",value:"savings"}];export{l as a,a as b,n as c,s as r,i as s}
1
+ import{a as e}from"./p-B5rtFhtR.js";const a=[{label:"Choose business classification",value:""},{label:"Sole Proprietor",value:e.sole_proprietor},{label:"Partnership",value:e.partnership},{label:"Corporation",value:e.corporation},{label:"Public Company",value:e.public_company},{label:"Limited Liability Company (LLC)",value:e.limited},{label:"Non Profit",value:e.non_profit},{label:"Government",value:e.government}],l=[{label:"Within 7 days",value:"Within 7 days"},{label:"Within 30 days",value:"Within 30 days"},{label:"Within 90 days",value:"Within 90 days"},{label:"Within 120 days",value:"Within 120 days"},{label:"More than 120 days",value:"More than 120 days"}],s=[{label:"Yes",value:"Yes"},{label:"No",value:"No"}],i=[{label:"Yes. The majority of the business revenue is generated in 3-6 months.",value:"Yes"},{label:"No. The business revenue is generated evenly throughout the year.",value:"No"}],n=[{label:"Checking",value:"checking"},{label:"Savings",value:"savings"}];export{n as a,l as b,a as c,s as r,i as s}
@@ -0,0 +1 @@
1
+ import{c as e}from"./p-hj8k0lRi.js";import{P as o}from"./p-DCIW8z1f.js";const n={accountId:"",authToken:"",billingFormFields:{address_postal_code:""},bnplEnabled:!1,insuranceEnabled:!1,bnplProviderApiVersion:"",bnplProviderCheckoutUrl:"",bnplProviderClientId:"",bnplProviderMode:"",checkoutId:"",checkoutLoaded:!1,bankAccountVerification:void 0,disableBankAccount:!1,disableCreditCard:!1,disablePaymentMethodGroup:!1,paymentAmount:0,paymentCurrency:"USD",paymentDescription:"",paymentMethodGroupId:void 0,paymentMethods:[],paymentToken:void 0,savePaymentMethod:!1,selectedPaymentMethod:void 0,totalAmount:0,plaidPublicToken:void 0,plaidLinkTokenId:void 0},{state:t,onChange:d}=e(n);function a(){var e;const n=[];if(!t.disablePaymentMethodGroup&&(null===(e=t.paymentMethods)||void 0===e?void 0:e.length)){const e=t.paymentMethods.some((e=>e.type===o.SAVED_CARD)),d=t.paymentMethods.some((e=>e.type===o.SAVED_BANK_ACCOUNT));e&&!t.disableCreditCard&&n.push(o.SAVED_CARD),d&&!t.disableBankAccount&&n.push(o.SAVED_BANK_ACCOUNT)}return t.disableCreditCard||n.push(o.NEW_CARD),t.disableBankAccount||n.push(o.NEW_BANK_ACCOUNT),t.bnplEnabled&&n.push(o.SEZZLE),!0!==t.bankAccountVerification||t.disableBankAccount||n.push(o.PLAID),n}function i(e){Object.keys(n).forEach((o=>{d(o,(n=>e(o,n)))}))}Object.keys(n).forEach((e=>{d(e,(o=>{t[e]=o}))}));export{d as a,t as c,a as g,i as o}
@@ -0,0 +1 @@
1
+ import{A as r}from"./p-M5r2kSbf.js";import"./p-Cjcsf8ku.js";import"./p-BPDMo6us.js";import"./p-CLHwhyvu.js";import"./p-B5rtFhtR.js";import"./p-BH0Xfn-F.js";const e=r();class n{async fetchTerminals(r,n,s){return e.get({endpoint:"terminals",params:s,headers:{Account:r},authToken:n})}async fetchTerminal(r,n){return e.get({endpoint:`terminals/${r}`,authToken:n})}async fetchTerminalModels(r,n){return e.get({endpoint:"terminals/order_models",headers:{"sub-account":r},authToken:n})}async orderTerminals(r,n){return e.post({endpoint:"terminals/orders",body:n,headers:{"sub-account":n.sub_account_id},authToken:r})}}export{n as T}
@@ -0,0 +1 @@
1
+ import{h as o}from"./p-_b8l4IX7.js";import{B as r}from"./p-CA_TyBed.js";const s=s=>o("h1",{class:`header-1 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
@@ -0,0 +1 @@
1
+ const a={US:"(000) 000-0000"},r={USA:"000-00-0000",US:"000-00-0000",CAN:"000-000-000",CA:"000-000-000"},s={WHOLE:{mask:Number,thousandsSeparator:",",normalizeZeros:!0},DECIMAL:{mask:Number,scale:2,thousandsSeparator:",",padFractionalZeros:!0,normalizeZeros:!0,radix:"."}};export{s as C,r as I,a as P}
@@ -0,0 +1 @@
1
+ import{c as s}from"./p-hj8k0lRi.js";const t={},a={},o=s((()=>t)),{state:c,on:e}=o,j=s((()=>a)),{state:p}=j,r=()=>Object.assign(Object.assign({},c),p),b=()=>{o.reset()};export{b as c,c as f,r as g,e as o,p}
@@ -0,0 +1 @@
1
+ import{h as s}from"./p-_b8l4IX7.js";import{C as t}from"./p-CA_TyBed.js";import{c as a}from"./p-hj8k0lRi.js";const r=a=>s("h2",{class:`header-2 ${null==a?void 0:a.class}`,part:t},a.text),o=a({}),{state:e,on:i}=o,l=a({}),{state:n}=l,p={},c=()=>{let s=!0;return Object.keys(e).forEach((t=>{null===e[t]?(n[t]=!0,s=!1):n[t]=!1})),{isValid:s}},m=(s,t)=>{const a=p.hasOwnProperty(s),r=p[s];if(!a)return p[s]=t,!1;const o=r!==t;return o&&(p[s]=t),o};export{r as H,n as a,i as b,m as h,e as i,c as v}
@@ -0,0 +1 @@
1
+ import{h as o}from"./p-_b8l4IX7.js";import{V as r}from"./p-CA_TyBed.js";const s=s=>o("h3",{class:`header-3 ${null==s?void 0:s.class}`,part:r},s.text);export{s as H}
@@ -1 +1 @@
1
- import{h as a}from"./p-qipqIMyC.js";import{D as r,E as s,F as g,G as e,H as n,I as d,J as i,K as t,L as b}from"./p-RvUQ__Pq.js";var c;!function(a){a.PRIMARY="primary",a.SECONDARY="secondary",a.SUCCESS="success",a.DANGER="danger",a.WARNING="warning",a.INFO="info",a.LIGHT="light",a.DARK="dark"}(c||(c={}));const o=c=>{const{variant:o,text:p,title:f}=c,l={default:"badge",primary:"badge bg-primary",secondary:"badge bg-secondary",success:"badge bg-success",danger:"badge bg-danger",warning:"badge bg-warning",info:"badge bg-info",light:"badge bg-light",dark:"badge bg-dark"},y={default:b,primary:t,secondary:i,success:d,danger:n,warning:e,info:g,light:s,dark:r};return a("span",{class:l[o]||l.default,part:y[o]||y.default,title:f},p)};export{c as B,o as a}
1
+ import{h as a}from"./p-_b8l4IX7.js";import{D as r,E as s,F as e,G as g,H as n,I as d,J as i,K as t,L as b}from"./p-CA_TyBed.js";var c;!function(a){a.PRIMARY="primary",a.SECONDARY="secondary",a.SUCCESS="success",a.DANGER="danger",a.WARNING="warning",a.INFO="info",a.LIGHT="light",a.DARK="dark"}(c||(c={}));const o=c=>{const{variant:o,text:p,title:l}=c,f={default:"badge",primary:"badge bg-primary",secondary:"badge bg-secondary",success:"badge bg-success",danger:"badge bg-danger",warning:"badge bg-warning",info:"badge bg-info",light:"badge bg-light",dark:"badge bg-dark"},y={default:b,primary:t,secondary:i,success:d,danger:n,warning:g,info:e,light:s,dark:r};return a("span",{class:f[o]||f.default,part:y[o]||y.default,title:l},p)};export{c as B,o as a}
@@ -0,0 +1 @@
1
+ import{h as s}from"./p-_b8l4IX7.js";import{M as r}from"./p-CA_TyBed.js";const t=()=>s("div",{class:"d-flex justify-content-center"},s("div",{class:"spinner-border",role:"status",part:r},s("span",{class:"visually-hidden"},"Loading...")));export{t as S}
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-_b8l4IX7.js";import{z as e}from"./p-CA_TyBed.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 +1 @@
1
- import{h as a}from"./p-qipqIMyC.js";import{z as s,B as l,C as t}from"./p-RvUQ__Pq.js";const e=l=>a("main",{class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},a("p",{part:s},l)),p=s=>a("h2",{part:t,class:"mt-4 fs-5 border-bottom pb-3"},s.sectionTitle),r=({title:l,value:t})=>l&&t?a("div",{class:"d-table-row gap-2"},a("span",{class:"fw-bold d-table-cell px-2",part:s},l),a("span",{class:"flex-1 d-table-cell px-2 text-wrap",part:s},t)):null,c=({title:l,value:e,classes:p})=>a("div",{class:`d-flex flex-column ${p}`},a("span",{class:"fw-bold border-1 border-bottom ps-2 pe-2",part:t},l),a("span",{class:"pt-2 ps-2 pe-2",part:s},e)),o=({title:t,slot:e,badge:p},r)=>a("div",{slot:e,class:"p-2"},a("div",{class:"d-flex flex-row align-items-center gap-2 mb-2"},a("h1",{class:"m-0",part:l},t),p),a("div",{class:"d-flex flex-row align-items-top",part:s},r)),d=({metadata:s})=>s&&Object.keys(s).length?a("div",{class:"mt-4"},a("pre",{class:"p-2","aria-label":"metadata content"},a("code",null,JSON.stringify(s,null,2)))):null;export{d as C,p as D,e as E,o as a,c as b,r as c}
1
+ import{h as a}from"./p-_b8l4IX7.js";import{z as s,B as l,C as t}from"./p-CA_TyBed.js";const e=l=>a("main",{class:"p-4 d-flex justify-content-center text-center",style:{fontSize:"1.2rem"}},a("p",{part:s},l)),p=s=>a("h2",{part:t,class:"mt-4 fs-5 border-bottom pb-3"},s.sectionTitle),r=({title:l,value:t})=>l&&t?a("div",{class:"d-table-row gap-2"},a("span",{class:"fw-bold d-table-cell px-2",part:s},l),a("span",{class:"flex-1 d-table-cell px-2 text-wrap",part:s},t)):null,c=({title:l,value:e,classes:p})=>a("div",{class:`d-flex flex-column ${p}`},a("span",{class:"fw-bold border-1 border-bottom ps-2 pe-2",part:t},l),a("span",{class:"pt-2 ps-2 pe-2",part:s},e)),o=({title:t,slot:e,badge:p},r)=>a("div",{slot:e,class:"p-2"},a("div",{class:"d-flex flex-row align-items-center gap-2 mb-2"},a("h1",{class:"m-0",part:l},t),p),a("div",{class:"d-flex flex-row align-items-top",part:s},r)),d=({metadata:s})=>s&&Object.keys(s).length?a("div",{class:"mt-4"},a("pre",{class:"p-2","aria-label":"metadata content"},a("code",null,JSON.stringify(s,null,2)))):null;export{d as C,p as D,e as E,o as a,c as b,r as c}
@@ -1 +1 @@
1
- import{h as t}from"./p-qipqIMyC.js";import{B as e,a as i}from"./p-D--yCspA.js";import{N as a,O as n}from"./p-RvUQ__Pq.js";import{h as r}from"./p-BHf9IqGw.js";const o="nickname,provider_serial_number,status",s={nickname:()=>t("th",{part:a,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:a,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:a,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:a,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:a,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:a,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:a,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:a,scope:"col",title:"The current status of each terminal"},"Status")},c={nickname:(e,i)=>t("td",{part:n(i)},e.nickname),model_name:(e,i)=>t("td",{part:n(i)},e.model_name),id:(e,i)=>t("td",{part:n(i)},e.id),provider:(e,i)=>t("td",{part:n(i)},r(e.provider)),provider_serial_number:(e,i)=>t("td",{part:n(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:n(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:n(i)},e.sub_account_name),status:(a,r)=>t("td",{part:n(r)},t(i,Object.assign({},{connected:{variant:e.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:e.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:e.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:e.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"}}[a.status])))};export{c as a,o as d,s as t}
1
+ import{h as t}from"./p-_b8l4IX7.js";import{B as e,a as i}from"./p-CtWnJFtW.js";import{N as a,O as n}from"./p-CA_TyBed.js";import{h as r}from"./p-xWrhxNNk.js";const o="nickname,provider_serial_number,status",s={nickname:()=>t("th",{part:a,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:a,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:a,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:a,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:a,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:a,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:a,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:a,scope:"col",title:"The current status of each terminal"},"Status")},c={nickname:(e,i)=>t("td",{part:n(i)},e.nickname),model_name:(e,i)=>t("td",{part:n(i)},e.model_name),id:(e,i)=>t("td",{part:n(i)},e.id),provider:(e,i)=>t("td",{part:n(i)},r(e.provider)),provider_serial_number:(e,i)=>t("td",{part:n(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:n(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:n(i)},e.sub_account_name),status:(a,r)=>t("td",{part:n(r)},t(i,Object.assign({},{connected:{variant:e.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:e.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:e.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:e.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"}}[a.status])))};export{c as a,o as d,s as t}
@@ -0,0 +1 @@
1
+ import{c as s}from"./p-hj8k0lRi.js";const t={},a={},o=s((()=>t)),{state:c,on:e}=o,j=s((()=>a)),{state:p}=j,r=()=>Object.assign(Object.assign({},c),p),b=()=>{o.reset()};export{b as c,c as f,r as g,e as o,p}
@@ -0,0 +1 @@
1
+ import{c as t}from"./p-hj8k0lRi.js";const i={apiOrigin:"https://wc-proxy.justifi.ai",iframeOrigin:"https://components.justifi.ai",accountId:""},s=t((()=>i)),{state:e}=s;let o;const a=new Promise((t=>{o=t})),c=t=>{Object.assign(e,t),o()},n=(t=200)=>new Promise((i=>{const s=setTimeout((()=>{i()}),t);a.then((()=>{clearTimeout(s),i()}))}));export{e as c,c as s,n as w}
@@ -0,0 +1 @@
1
+ import{c as s}from"./p-hj8k0lRi.js";const t={},a={},o=s((()=>t)),{state:c,on:e}=o,j=s((()=>a)),{state:p}=j,r=()=>Object.assign(Object.assign({},c),p),b=()=>{o.reset()};export{b as c,c as f,r as g,e as o,p}
@@ -0,0 +1 @@
1
+ import{h as t}from"./p-_b8l4IX7.js";import{M as a}from"./p-PdQT2QcR.js";import{a as e}from"./p-xWrhxNNk.js";import{N as r,O as o}from"./p-CA_TyBed.js";const s="created_at,amount,status,payment_type,description,payers_name,last_four_digits,card_brand",p={created_at:()=>t("th",{part:r,scope:"col",title:"The date and time each payment was made"},"Date"),amount:()=>t("th",{part:r,scope:"col",title:"The dollar amount of each payment"},"Amount"),status:()=>t("th",{part:r,scope:"col",title:"The current status of each payment"},"Status"),payment_type:()=>t("th",{part:r,scope:"col",title:"The type of each payment"},"Type"),description:()=>t("th",{part:r,scope:"col",title:"The payment description, if you provided one"},"Description"),payers_name:()=>t("th",{part:r,scope:"col",title:"The name associated with the payment method"},"Account Holder"),last_four_digits:()=>t("th",{part:r,scope:"col",title:"The brand and last 4 digits of the payment method"},"Payment Method"),card_brand:()=>t("th",{part:r,scope:"col",title:"The brand of the payment method"},"Card Brand")},d={created_at:(a,r)=>t("td",{part:o(r)},t("div",{class:"fw-bold"},e(a.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},e(a.created_at,{showTime:!0}))),amount:(a,e)=>t("td",{part:o(e)},a.formattedPaymentAmount(a.amount)),status:(e,r)=>t("td",{part:o(r)},a(e.status)),payment_type:(a,e)=>t("td",{part:o(e)},a.payment_type),description:(a,e)=>t("td",{part:o(e)},a.description),payers_name:(a,e)=>t("td",{part:o(e)},a.payers_name),last_four_digits:(a,e)=>t("td",{part:o(e)},a.last_four_digits),card_brand:(a,e)=>{var r,s,p;return t("td",{part:o(e)},(p=(null===(r=a.payment_method.card)||void 0===r?void 0:r.brand)||(null===(s=a.payment_method.bank_account)||void 0===s?void 0:s.brand))?{visa:"VISA",mastercard:"Mastercard",american_express:"American Express",discover:"Discover",diners_club:"Diners Club",jcb:"JCB",china_unionpay:"China UnionPay",unknown:"Unknown"}[p.toLowerCase()]||p:"N/A")}};export{d as a,s as d,p}