@justifi/webcomponents 6.15.0-rc.1 → 6.15.0

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 (359) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Analytics-VQGAbMVS.js → Analytics-BjZHa0wt.js} +4 -4
  3. package/dist/cjs/{Api--EGkA-pT.js → Api-us3AxMRC.js} +1 -1
  4. package/dist/cjs/{Business-oBifyXkW.js → Business-CNaz-VLa.js} +5 -1
  5. package/dist/cjs/{Plaid-D85oV9FN.js → Plaid-BcOAKDaU.js} +1 -1
  6. package/dist/cjs/additional-questions-form-step_15.cjs.entry.js +13 -13
  7. package/dist/cjs/additional-questions_4.cjs.entry.js +3 -3
  8. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +4 -4
  9. package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +2 -2
  10. package/dist/cjs/bank-account-form.cjs.entry.js +4 -4
  11. package/dist/cjs/{business-form-options-CnlrfbQ6.js → business-form-options-BHBs_yiK.js} +1 -1
  12. package/dist/cjs/{business-identity-schema-hpDJFnB4.js → business-identity-schema-XiCLzxWM.js} +3 -3
  13. package/dist/cjs/{business.service-B51fjG_j.js → business.service-_Sl3vWmu.js} +3 -3
  14. package/dist/cjs/card-form.cjs.entry.js +4 -4
  15. package/dist/cjs/{check-pkg-version-RMsgKzFc.js → check-pkg-version-CjJab8fX.js} +1 -1
  16. package/dist/cjs/{checkout-actions-BRQFQ6n-.js → checkout-actions-CQyGpVPe.js} +2 -2
  17. package/dist/cjs/{checkout.service-BsOwkSNp.js → checkout.service-B_qymeqJ.js} +3 -3
  18. package/dist/cjs/{country-config-C1bWmF8P.js → country-config-DQQujh5h.js} +1 -1
  19. package/dist/cjs/custom-popper_2.cjs.entry.js +2 -2
  20. package/dist/cjs/dispute-notification_2.cjs.entry.js +8 -8
  21. package/dist/cjs/{event-types-C_LP6UcW.js → event-types-DmY59QXs.js} +3 -3
  22. package/dist/cjs/form-address-fields_3.cjs.entry.js +4 -4
  23. package/dist/cjs/form-alert_3.cjs.entry.js +5 -5
  24. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  25. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  26. package/dist/cjs/form-control-file.cjs.entry.js +2 -2
  27. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  28. package/dist/cjs/form-control-number_2.cjs.entry.js +6 -6
  29. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  30. package/dist/cjs/form-control-select_2.cjs.entry.js +2 -2
  31. package/dist/cjs/{get-business-BpaRbn5S.js → get-business-BVxtiSDs.js} +3 -3
  32. package/dist/cjs/{get-payment-details-Cmg8gWvo.js → get-payment-details-DR1GgpyX.js} +3 -3
  33. package/dist/cjs/{get-subaccounts-d4CUegsn.js → get-subaccounts-BMY2bOFj.js} +4 -4
  34. package/dist/cjs/{input-handlers-_51J5q7J.js → input-handlers-v9h_2Ysi.js} +1 -1
  35. package/dist/cjs/internal-button.cjs.entry.js +1 -1
  36. package/dist/cjs/justifi-apple-pay_12.cjs.entry.js +58 -21
  37. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +6 -6
  38. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +6 -6
  39. package/dist/cjs/justifi-business-details.cjs.entry.js +9 -9
  40. package/dist/cjs/justifi-business-form.cjs.entry.js +13 -13
  41. package/dist/cjs/justifi-card-form.cjs.entry.js +6 -6
  42. package/dist/cjs/justifi-checkout-qr-code.cjs.entry.js +6 -6
  43. package/dist/cjs/justifi-checkout.cjs.entry.js +6 -6
  44. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +6 -4
  45. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +11 -11
  46. package/dist/cjs/justifi-dispute-management.cjs.entry.js +8 -8
  47. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +33 -20
  48. package/dist/cjs/justifi-order-terminals.cjs.entry.js +11 -11
  49. package/dist/cjs/justifi-payment-details.cjs.entry.js +17 -17
  50. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
  51. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +9 -9
  52. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  53. package/dist/cjs/justifi-payments-list.cjs.entry.js +9 -9
  54. package/dist/cjs/justifi-payout-details.cjs.entry.js +12 -12
  55. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +9 -9
  56. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -4
  57. package/dist/cjs/justifi-payouts-list.cjs.entry.js +11 -11
  58. package/dist/cjs/justifi-qr-terminal.cjs.entry.js +9 -9
  59. package/dist/cjs/justifi-refund-payment.cjs.entry.js +9 -9
  60. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +7 -7
  61. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  62. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  63. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +9 -9
  64. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
  65. package/dist/cjs/justifi-terminals-list.cjs.entry.js +10 -10
  66. package/dist/cjs/loader.cjs.js +1 -1
  67. package/dist/cjs/{package-DfwuePUh.js → package-30T__1wH.js} +1 -1
  68. package/dist/cjs/{payment-provisioning-actions-DDooZhhk.js → payment-provisioning-actions-SVp7B8pR.js} +2 -2
  69. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +1 -1
  70. package/dist/cjs/{payment.service-Vy_JnuSA.js → payment.service-DRXVT-uB.js} +3 -3
  71. package/dist/cjs/{payout.service-BEPglFXf.js → payout.service-CuQ-mXKB.js} +3 -3
  72. package/dist/cjs/{payouts-status-1IUtW-UQ.js → payouts-status-BvHeuy9v.js} +2 -2
  73. package/dist/cjs/{plaid.service-DXQ7q51E.js → plaid.service-B58nzlUE.js} +3 -3
  74. package/dist/cjs/radio-list-item.cjs.entry.js +1 -1
  75. package/dist/cjs/{schema-validations-DehT309E.js → schema-validations-sjRvL4KO.js} +5 -4
  76. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  77. package/dist/cjs/{terminal.service-BP2YecQ_.js → terminal.service-CmtSEgTc.js} +3 -3
  78. package/dist/cjs/{utils-CBriZzRC.js → utils-BScgWJC5.js} +1 -1
  79. package/dist/cjs/webcomponents.cjs.js +1 -1
  80. package/dist/collection/api/Business.js +2 -0
  81. package/dist/collection/api/Checkout.js +1 -1
  82. package/dist/collection/components/business-forms/schemas/schema-helpers.js +2 -1
  83. package/dist/collection/components/business-forms/utils/helpers.js +3 -1
  84. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +4 -2
  85. package/dist/collection/components/checkouts-list/justifi-checkouts-list.js +3 -3
  86. package/dist/collection/components/modular-checkout/sub-components/justifi-apple-pay.js +7 -1
  87. package/dist/collection/components/modular-checkout/sub-components/paypal/justifi-paypal.js +38 -13
  88. package/dist/collection/components/order-terminals/justifi-order-terminals.js +1 -1
  89. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  90. package/dist/collection/components/payment-details/justifi-payment-details.js +8 -8
  91. package/dist/collection/components/payment-transactions-list/justifi-payment-transactions-list.js +1 -1
  92. package/dist/collection/components/payments-list/justifi-payments-list-filters.js +2 -2
  93. package/dist/collection/components/payments-list/justifi-payments-list.js +1 -1
  94. package/dist/collection/components/payout-details/justifi-payout-details.js +3 -3
  95. package/dist/collection/components/payout-transactions-list/justifi-payout-transactions-list.js +1 -1
  96. package/dist/collection/components/payouts-list/justifi-payouts-list-filters.js +2 -2
  97. package/dist/collection/components/payouts-list/justifi-payouts-list.js +1 -1
  98. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list-filters.js +3 -3
  99. package/dist/collection/components/terminal-orders-list/justifi-terminal-orders-list.js +2 -2
  100. package/dist/collection/components/terminals-list/justifi-terminals-list-filters.js +1 -1
  101. package/dist/collection/components/terminals-list/justifi-terminals-list.js +1 -1
  102. package/dist/collection/components/tokenize-payment-method/justifi-tokenize-payment-method.js +1 -1
  103. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  104. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  105. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  106. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  107. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  108. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  109. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  110. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  111. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  112. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  113. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  114. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  115. package/dist/collection/ui-components/internal-button.js +1 -1
  116. package/dist/collection/ui-components/radio-list-item.js +1 -1
  117. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  118. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  119. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  120. package/dist/docs.json +2 -2
  121. package/dist/esm/{Analytics-hKJLmoJl.js → Analytics-BtMYbHD0.js} +4 -4
  122. package/dist/esm/{Api-DAJ9sMMj.js → Api-nVK-rgbk.js} +1 -1
  123. package/dist/esm/{Business-DaDqgDrb.js → Business-CTtGaVYs.js} +5 -1
  124. package/dist/esm/{Plaid-BP3xNxQF.js → Plaid-CRcTLeaz.js} +1 -1
  125. package/dist/esm/additional-questions-form-step_15.entry.js +13 -13
  126. package/dist/esm/additional-questions_4.entry.js +3 -3
  127. package/dist/esm/bank-account-billing-form-simple_4.entry.js +4 -4
  128. package/dist/esm/bank-account-document-form-inputs.entry.js +2 -2
  129. package/dist/esm/bank-account-form.entry.js +4 -4
  130. package/dist/esm/{business-form-options-BxVQL9ar.js → business-form-options-DLRkVtee.js} +1 -1
  131. package/dist/esm/{business-identity-schema-BkmRlnQo.js → business-identity-schema-BP61Unwf.js} +3 -3
  132. package/dist/esm/{business.service-kmkjOyTm.js → business.service-Cq7H5w1T.js} +3 -3
  133. package/dist/esm/card-form.entry.js +4 -4
  134. package/dist/esm/{check-pkg-version-FEAmKlDW.js → check-pkg-version-BW9zgceK.js} +1 -1
  135. package/dist/esm/{checkout-actions-0ftD0elo.js → checkout-actions-CWnrb317.js} +2 -2
  136. package/dist/esm/{checkout.service-BVBmNheb.js → checkout.service-JA7oTq5d.js} +3 -3
  137. package/dist/esm/{country-config-CJwnhkdq.js → country-config-F5YwgHgR.js} +1 -1
  138. package/dist/esm/custom-popper_2.entry.js +2 -2
  139. package/dist/esm/dispute-notification_2.entry.js +8 -8
  140. package/dist/esm/{event-types-B5-lsGjZ.js → event-types-Dsf8IwD6.js} +3 -3
  141. package/dist/esm/form-address-fields_3.entry.js +4 -4
  142. package/dist/esm/form-alert_3.entry.js +5 -5
  143. package/dist/esm/form-control-date.entry.js +2 -2
  144. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  145. package/dist/esm/form-control-file.entry.js +2 -2
  146. package/dist/esm/form-control-monetary.entry.js +2 -2
  147. package/dist/esm/form-control-number_2.entry.js +6 -6
  148. package/dist/esm/form-control-radio.entry.js +2 -2
  149. package/dist/esm/form-control-select_2.entry.js +2 -2
  150. package/dist/esm/{get-business-BLCT-zfN.js → get-business-IZpxKRZM.js} +3 -3
  151. package/dist/esm/{get-payment-details-BokzuPGl.js → get-payment-details-DSI41Pq5.js} +3 -3
  152. package/dist/esm/{get-subaccounts-By7m_FxO.js → get-subaccounts-B-S2TGRa.js} +4 -4
  153. package/dist/esm/{input-handlers-Dfuc6aDW.js → input-handlers-Dm8jO-BT.js} +1 -1
  154. package/dist/esm/internal-button.entry.js +1 -1
  155. package/dist/esm/justifi-apple-pay_12.entry.js +58 -21
  156. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +6 -6
  157. package/dist/esm/justifi-bank-account-form.entry.js +6 -6
  158. package/dist/esm/justifi-business-details.entry.js +9 -9
  159. package/dist/esm/justifi-business-form.entry.js +13 -13
  160. package/dist/esm/justifi-card-form.entry.js +6 -6
  161. package/dist/esm/justifi-checkout-qr-code.entry.js +6 -6
  162. package/dist/esm/justifi-checkout.entry.js +6 -6
  163. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -4
  164. package/dist/esm/justifi-checkouts-list.entry.js +11 -11
  165. package/dist/esm/justifi-dispute-management.entry.js +8 -8
  166. package/dist/esm/justifi-gross-payment-chart.entry.js +33 -20
  167. package/dist/esm/justifi-order-terminals.entry.js +11 -11
  168. package/dist/esm/justifi-payment-details.entry.js +17 -17
  169. package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
  170. package/dist/esm/justifi-payment-transactions-list.entry.js +9 -9
  171. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  172. package/dist/esm/justifi-payments-list.entry.js +9 -9
  173. package/dist/esm/justifi-payout-details.entry.js +12 -12
  174. package/dist/esm/justifi-payout-transactions-list.entry.js +9 -9
  175. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  176. package/dist/esm/justifi-payouts-list.entry.js +11 -11
  177. package/dist/esm/justifi-qr-terminal.entry.js +9 -9
  178. package/dist/esm/justifi-refund-payment.entry.js +9 -9
  179. package/dist/esm/justifi-season-interruption-insurance.entry.js +7 -7
  180. package/dist/esm/justifi-skeleton.entry.js +1 -1
  181. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +5 -5
  182. package/dist/esm/justifi-terminal-orders-list.entry.js +9 -9
  183. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -3
  184. package/dist/esm/justifi-terminals-list.entry.js +10 -10
  185. package/dist/esm/loader.js +1 -1
  186. package/dist/esm/{package-Dn9_7aQh.js → package-BC9n8nB2.js} +1 -1
  187. package/dist/esm/{payment-provisioning-actions-VRIPjnAQ.js → payment-provisioning-actions-VtleD509.js} +2 -2
  188. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +1 -1
  189. package/dist/esm/{payment.service-CMUlMV1Y.js → payment.service-B42sKlQE.js} +3 -3
  190. package/dist/esm/{payout.service-C0yd0JZS.js → payout.service-BIoAgNJJ.js} +3 -3
  191. package/dist/esm/{payouts-status-CaiC5qpn.js → payouts-status-CnIf4XDi.js} +2 -2
  192. package/dist/esm/{plaid.service-CqihCTBS.js → plaid.service-C6Ltk2ef.js} +3 -3
  193. package/dist/esm/radio-list-item.entry.js +1 -1
  194. package/dist/esm/{schema-validations-8dbMCACI.js → schema-validations-De7Qe0VU.js} +5 -4
  195. package/dist/esm/terminal-quantity-selector.entry.js +1 -1
  196. package/dist/esm/{terminal.service-DuF3uTuA.js → terminal.service-DV3qIwBy.js} +3 -3
  197. package/dist/esm/{utils-YUOJKtjO.js → utils-DaPywmTI.js} +1 -1
  198. package/dist/esm/webcomponents.js +1 -1
  199. package/dist/module/Business.js +5 -1
  200. package/dist/module/Plaid.js +1 -1
  201. package/dist/module/custom-popper2.js +2 -2
  202. package/dist/module/form-control-date2.js +2 -2
  203. package/dist/module/form-control-file-v22.js +1 -1
  204. package/dist/module/form-control-file2.js +2 -2
  205. package/dist/module/form-control-monetary2.js +2 -2
  206. package/dist/module/form-control-number-masked2.js +2 -2
  207. package/dist/module/form-control-number2.js +2 -2
  208. package/dist/module/form-control-radio2.js +2 -2
  209. package/dist/module/form-control-text2.js +2 -2
  210. package/dist/module/form-control-textarea2.js +2 -2
  211. package/dist/module/hidden-input2.js +1 -1
  212. package/dist/module/iframe-input2.js +3 -3
  213. package/dist/module/internal-button2.js +1 -1
  214. package/dist/module/justifi-apple-pay2.js +7 -1
  215. package/dist/module/justifi-button2.js +1 -1
  216. package/dist/module/justifi-checkouts-list-filters.js +4 -2
  217. package/dist/module/justifi-checkouts-list.js +2 -2
  218. package/dist/module/justifi-gross-payment-chart.js +26 -13
  219. package/dist/module/justifi-header2.js +1 -1
  220. package/dist/module/justifi-order-terminals.js +1 -1
  221. package/dist/module/justifi-payment-details.js +8 -8
  222. package/dist/module/justifi-payment-transactions-list.js +1 -1
  223. package/dist/module/justifi-payments-list-filters.js +2 -2
  224. package/dist/module/justifi-payments-list.js +1 -1
  225. package/dist/module/justifi-payout-details.js +3 -3
  226. package/dist/module/justifi-payout-transactions-list.js +1 -1
  227. package/dist/module/justifi-payouts-list-filters.js +2 -2
  228. package/dist/module/justifi-payouts-list.js +1 -1
  229. package/dist/module/justifi-paypal2.js +39 -11
  230. package/dist/module/justifi-skeleton.js +1 -1
  231. package/dist/module/justifi-terminal-orders-list-filters.js +3 -3
  232. package/dist/module/justifi-terminal-orders-list.js +2 -2
  233. package/dist/module/justifi-terminals-list-filters.js +1 -1
  234. package/dist/module/justifi-terminals-list.js +1 -1
  235. package/dist/module/justifi-tokenize-payment-method2.js +1 -1
  236. package/dist/module/package.js +1 -1
  237. package/dist/module/radio-list-item2.js +1 -1
  238. package/dist/module/schema-validations.js +2 -1
  239. package/dist/module/terminal-quantity-selector2.js +1 -1
  240. package/dist/types/api/Business.d.ts +2 -0
  241. package/dist/types/api/Checkout.d.ts +7 -7
  242. package/dist/types/components/checkouts-list/justifi-checkouts-list.d.ts +1 -1
  243. package/dist/types/components/modular-checkout/sub-components/justifi-apple-pay.d.ts +1 -0
  244. package/dist/types/components/modular-checkout/sub-components/paypal/justifi-paypal.d.ts +9 -2
  245. package/dist/types/components.d.ts +1 -1
  246. package/dist/webcomponents/p-065b854f.entry.js +1 -0
  247. package/dist/webcomponents/{p-b98ea26a.entry.js → p-082f912c.entry.js} +1 -1
  248. package/dist/webcomponents/{p-0d8a256c.entry.js → p-0cd689f4.entry.js} +1 -1
  249. package/dist/webcomponents/{p-1a55efda.entry.js → p-0e9351c4.entry.js} +1 -1
  250. package/dist/webcomponents/p-0f7e3515.entry.js +20 -0
  251. package/dist/webcomponents/p-0fbc806f.entry.js +1 -0
  252. package/dist/webcomponents/{p-36f05f5f.entry.js → p-10787684.entry.js} +1 -1
  253. package/dist/webcomponents/{p-86f9d5f6.entry.js → p-1365a46b.entry.js} +1 -1
  254. package/dist/webcomponents/{p-b9664e84.entry.js → p-13814028.entry.js} +1 -1
  255. package/dist/webcomponents/{p-bf3866b3.entry.js → p-16261d8a.entry.js} +1 -1
  256. package/dist/webcomponents/{p-8a5ce8ff.entry.js → p-19cabdaf.entry.js} +1 -1
  257. package/dist/webcomponents/{p-af728bc6.entry.js → p-1cfa634a.entry.js} +1 -1
  258. package/dist/webcomponents/p-1fa62eba.entry.js +1 -0
  259. package/dist/webcomponents/{p-31204dd5.entry.js → p-2b5533a1.entry.js} +1 -1
  260. package/dist/webcomponents/p-2ef913b8.entry.js +1 -0
  261. package/dist/webcomponents/p-388082cd.entry.js +1 -0
  262. package/dist/webcomponents/p-3a1f8c5b.entry.js +1 -0
  263. package/dist/webcomponents/p-3f2fb856.entry.js +1 -0
  264. package/dist/webcomponents/{p-d4de565d.entry.js → p-429046e1.entry.js} +1 -1
  265. package/dist/webcomponents/{p-e0bce67a.entry.js → p-44ff4f2c.entry.js} +1 -1
  266. package/dist/webcomponents/p-4740601b.entry.js +1 -0
  267. package/dist/webcomponents/{p-10b91a6c.entry.js → p-59b95eae.entry.js} +1 -1
  268. package/dist/webcomponents/{p-1cdbe8c1.entry.js → p-5c889829.entry.js} +1 -1
  269. package/dist/webcomponents/p-6c7fca1a.entry.js +1 -0
  270. package/dist/webcomponents/p-72bb4aff.entry.js +1 -0
  271. package/dist/webcomponents/p-735d397e.entry.js +1 -0
  272. package/dist/webcomponents/p-8432cb42.entry.js +1 -0
  273. package/dist/webcomponents/{p-aebd2149.entry.js → p-88a44a02.entry.js} +1 -1
  274. package/dist/webcomponents/{p-d555220f.entry.js → p-89f0c2aa.entry.js} +1 -1
  275. package/dist/webcomponents/{p-5bdae8c7.entry.js → p-97c6593d.entry.js} +1 -1
  276. package/dist/webcomponents/p-9b43b90d.entry.js +1 -0
  277. package/dist/webcomponents/p-9db15fac.entry.js +1 -0
  278. package/dist/webcomponents/p-9e3e2e32.entry.js +1 -0
  279. package/dist/webcomponents/p-9eb00966.entry.js +1 -0
  280. package/dist/webcomponents/p-BAvoKtN2.js +1 -0
  281. package/dist/webcomponents/p-BC9n8nB2.js +1 -0
  282. package/dist/webcomponents/p-BDtSw_d-.js +1 -0
  283. package/dist/webcomponents/{p-Ba0_MQtJ.js → p-B_2zgnvM.js} +1 -1
  284. package/dist/webcomponents/{p-CLq3Og7o.js → p-BhpaUYtS.js} +1 -1
  285. package/dist/webcomponents/{p-BHaO3c8W.js → p-BjjKkMO1.js} +1 -1
  286. package/dist/webcomponents/p-BmaQUnqv.js +1 -0
  287. package/dist/webcomponents/{p-DZQBPUfH.js → p-Bxc0NRj8.js} +1 -1
  288. package/dist/webcomponents/p-C60AkJ6a.js +1 -0
  289. package/dist/webcomponents/{p-Bl00tHyn.js → p-C6Jq8YDT.js} +1 -1
  290. package/dist/webcomponents/p-C9p1gWAC.js +1 -0
  291. package/dist/webcomponents/p-CTtGaVYs.js +1 -0
  292. package/dist/webcomponents/p-CgOgijHy.js +1 -0
  293. package/dist/webcomponents/{p-OReJ-ZQb.js → p-CtlBL-X6.js} +1 -1
  294. package/dist/webcomponents/p-D694H6co.js +1 -0
  295. package/dist/webcomponents/p-D7fNBSlC.js +1 -0
  296. package/dist/webcomponents/p-D7nyPi2Q.js +1 -0
  297. package/dist/webcomponents/{p-C-buCQRx.js → p-DC2djVls.js} +1 -1
  298. package/dist/webcomponents/{p-B0DHIvEj.js → p-DQmijfCN.js} +1 -1
  299. package/dist/webcomponents/p-Dqxyi-uK.js +1 -0
  300. package/dist/webcomponents/{p-ByQMBEDC.js → p-_MjmE9YT.js} +1 -1
  301. package/dist/webcomponents/{p-5348209c.entry.js → p-a10beb26.entry.js} +1 -1
  302. package/dist/webcomponents/{p-0f7cc07b.entry.js → p-a71cc8e2.entry.js} +1 -1
  303. package/dist/webcomponents/{p-d446ab68.entry.js → p-a7c594d1.entry.js} +1 -1
  304. package/dist/webcomponents/{p-c6f85bef.entry.js → p-a8d25057.entry.js} +1 -1
  305. package/dist/webcomponents/p-acb0b66c.entry.js +1 -0
  306. package/dist/webcomponents/{p-80a9f84c.entry.js → p-b9ba7c95.entry.js} +1 -1
  307. package/dist/webcomponents/{p-5a11c49f.entry.js → p-c385f10d.entry.js} +1 -1
  308. package/dist/webcomponents/p-c55fdbbf.entry.js +1 -0
  309. package/dist/webcomponents/{p-636c9571.entry.js → p-cec7164e.entry.js} +1 -1
  310. package/dist/webcomponents/p-d3544e86.entry.js +1 -0
  311. package/dist/webcomponents/{p-2549c891.entry.js → p-de047614.entry.js} +1 -1
  312. package/dist/webcomponents/p-f0434a13.entry.js +1 -0
  313. package/dist/webcomponents/{p-ddba9ab3.entry.js → p-f2b3c7d5.entry.js} +1 -1
  314. package/dist/webcomponents/{p-e55216fb.entry.js → p-f39889f2.entry.js} +1 -1
  315. package/dist/webcomponents/{p-f8764c8e.entry.js → p-f40fa614.entry.js} +1 -1
  316. package/dist/webcomponents/{p-b6ce91f0.entry.js → p-f5cb6a26.entry.js} +1 -1
  317. package/dist/webcomponents/p-f9f310dc.entry.js +1 -0
  318. package/dist/webcomponents/p-iA-Amt2z.js +1 -0
  319. package/dist/webcomponents/p-pueOrhXO.js +1 -0
  320. package/dist/webcomponents/{p-DnLqZpI1.js → p-rFpPIJgu.js} +1 -1
  321. package/dist/webcomponents/{p-CawcnSoV.js → p-riZDHN5-.js} +1 -1
  322. package/dist/webcomponents/webcomponents.esm.js +1 -1
  323. package/package.json +15 -17
  324. package/dist/webcomponents/p-1034e83d.entry.js +0 -1
  325. package/dist/webcomponents/p-18306b40.entry.js +0 -1
  326. package/dist/webcomponents/p-22a57828.entry.js +0 -1
  327. package/dist/webcomponents/p-2458de56.entry.js +0 -1
  328. package/dist/webcomponents/p-27b07530.entry.js +0 -1
  329. package/dist/webcomponents/p-2e82a488.entry.js +0 -1
  330. package/dist/webcomponents/p-33281304.entry.js +0 -1
  331. package/dist/webcomponents/p-3642e189.entry.js +0 -1
  332. package/dist/webcomponents/p-3c33b3c1.entry.js +0 -1
  333. package/dist/webcomponents/p-408a4f5f.entry.js +0 -20
  334. package/dist/webcomponents/p-76e96874.entry.js +0 -1
  335. package/dist/webcomponents/p-772ab8a3.entry.js +0 -1
  336. package/dist/webcomponents/p-7e64a668.entry.js +0 -1
  337. package/dist/webcomponents/p-9c45729d.entry.js +0 -1
  338. package/dist/webcomponents/p-9ed85832.entry.js +0 -1
  339. package/dist/webcomponents/p-BFi5l0xt.js +0 -1
  340. package/dist/webcomponents/p-CKgQN8v0.js +0 -1
  341. package/dist/webcomponents/p-CXsRwohv.js +0 -1
  342. package/dist/webcomponents/p-CbyGKcz_.js +0 -1
  343. package/dist/webcomponents/p-Cy2N3vAg.js +0 -1
  344. package/dist/webcomponents/p-CyOXIqHo.js +0 -1
  345. package/dist/webcomponents/p-D6uhYbLo.js +0 -1
  346. package/dist/webcomponents/p-DNuxxP2B.js +0 -1
  347. package/dist/webcomponents/p-DaDqgDrb.js +0 -1
  348. package/dist/webcomponents/p-Dn9_7aQh.js +0 -1
  349. package/dist/webcomponents/p-Do9dxNjh.js +0 -1
  350. package/dist/webcomponents/p-DsvK2pes.js +0 -1
  351. package/dist/webcomponents/p-FWuMPTxn.js +0 -1
  352. package/dist/webcomponents/p-a891caf8.entry.js +0 -1
  353. package/dist/webcomponents/p-d05257f9.entry.js +0 -1
  354. package/dist/webcomponents/p-d2e890a3.entry.js +0 -1
  355. package/dist/webcomponents/p-d397b38f.entry.js +0 -1
  356. package/dist/webcomponents/p-dd4eea27.entry.js +0 -1
  357. package/dist/webcomponents/p-e1e5bddf.entry.js +0 -1
  358. package/dist/webcomponents/p-fa2e7534.entry.js +0 -1
  359. package/dist/webcomponents/p-rznJBkm3.js +0 -1
@@ -17,7 +17,7 @@ const RadioListItem = /*@__PURE__*/ proxyCustomElement(class RadioListItem exten
17
17
  };
18
18
  }
19
19
  render() {
20
- return (h(Host, { key: 'c7c6cc24c1009ef1abdf2abccddc9f2ac5fc5239' }, h("div", { key: 'ae0a0e1f62a0274348846b636dab70b2c9572a75', class: `radio-list-item p-3 ${this.class || ''}`, part: radioListItem, onClick: this.handleClick, hidden: this.hidden }, h("form-control-radio", { key: '8884364061a992b09e584179c2907b5a8181c704', name: this.name, value: this.value, checked: this.checked, label: this.label, inputHandler: () => null }))));
20
+ return (h(Host, { key: '254375c6a1fd52924a84392bfd36d21ac60e4c0b' }, h("div", { key: 'df0f6abdeb91cbbe3c1b7e91f42cd7950379d8bf', class: `radio-list-item p-3 ${this.class || ''}`, part: radioListItem, onClick: this.handleClick, hidden: this.hidden }, h("form-control-radio", { key: '4c7e8e499b76bc83e83504b0cf22785fe2fdf6ec', name: this.name, value: this.value, checked: this.checked, label: this.label, inputHandler: () => null }))));
21
21
  }
22
22
  }, [256, "radio-list-item", {
23
23
  "name": [1],
@@ -32,7 +32,8 @@ const validateRoutingNumber = (routingNumber) => {
32
32
  const phoneRegex = /^\d{10}$/;
33
33
  const urlRegex = /^(?:http(s)?:\/\/)?(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)$/;
34
34
  const numbersOnlyRegex = /^\d+$/;
35
- const ssnRegex = /^(?!000|666|9\d{2})\d{3}(?!00)\d{2}(?!0000)\d{4}$/;
35
+ // 9XX area allowed so ITINs pass
36
+ const ssnRegex = /^(?!000|666)\d{3}(?!00)\d{2}(?!0000)\d{4}$/;
36
37
  const poBoxRegex = /P\.?\s?O\.?\s?Box|Postal\sBox/i;
37
38
 
38
39
  // Common Validations
@@ -26,7 +26,7 @@ const TerminalQuantitySelector = /*@__PURE__*/ proxyCustomElement(class Terminal
26
26
  };
27
27
  }
28
28
  render() {
29
- return (h("div", { key: 'f7799c1d0227b5794b238a99498e013b4cd2b2a6', class: "rounded shadow-sm card p-2", part: card }, h("div", { key: '4b378463cac2c44c7fbd51e7911bcc9e951b4ba6', class: "d-flex gap-3" }, h("div", { key: 'd3275100504d1d6d2497282490b75d6da276e10a', class: "d-flex align-items-center" }, h("img", { key: '02a49684a5e7d789c435434e7da893ff16d16667', src: this.imageUrl, alt: this.modelName, height: 75, width: 75, part: image })), h("div", { key: 'c11f0de1b3a39f0186e67ef3b957751d1a922fec', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: 'b605ffb5ca6a40ef1dcc32d2d9512826801c4a93', class: "row" }, h("div", { key: 'd5d2100f79930910019684bd22490292772e8593', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: 'ea39d5ac542abd22557986d68dbf61b8ddb5de00', helpText: this.description })), h("div", { key: '6755799b1b82b9287abf4f65051e96f71520e3fd', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: '6902240a7b4575430fe36edffa74026f8192b12b', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: '7bf497d2f874bf9c08dfffec66aea1c300a2faf5', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: '20ac1180b5c1e4313d78d510af5f275377423968', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
29
+ return (h("div", { key: '63237aed2228e101ed2a882e4993865afa886a09', class: "rounded shadow-sm card p-2", part: card }, h("div", { key: '5dccc2e66eb1555f5d60a5c9b0e4250ff003194f', class: "d-flex gap-3" }, h("div", { key: '6da3cf0ddc09d0a80969f4a109320190c9ec26a4', class: "d-flex align-items-center" }, h("img", { key: '900fbef983071b6838dc62ef62aeecc7a83c22fc', src: this.imageUrl, alt: this.modelName, height: 75, width: 75, part: image })), h("div", { key: '9c2f602f486233d1749faaadaa5c5c4a46e2e86b', class: "d-flex flex-column flex-grow-1 gap-3 p-4 justify-content-center" }, h("div", { key: 'b2f2a90050ad90240c249a62b5dfb353c4a9d6f3', class: "row" }, h("div", { key: '816a91666b31568fb7a26e2d34c2894c79d67303', class: "col-6 d-flex gap-2" }, this.modelName, h("form-control-tooltip", { key: '48e67406ec6cb6095a5bf0216595800172bd01b7', helpText: this.description })), h("div", { key: 'eb8b820f364f724f3deef236c7d0f16a6afa0e10', class: "col-6 d-flex justify-content-end align-items-center" }, h("button", { key: 'fc01f21c067d963c61b2aeb4ee29b172dec7ab54', class: "p-0 minus btn", onClick: this.removeUnit, part: buttonLink }, "-"), h("div", { key: 'bc61bbe36b0031ba78bfc5789a8359f3848afbca', class: "w-25 text-center" }, this.selectedQuantity), h("button", { key: '30061e988706cb075066ebf7876dab5a65d855dd', class: "p-0 plus btn", onClick: this.addUnit, part: buttonLink }, "+")))))));
30
30
  }
31
31
  }, [256, "terminal-quantity-selector", {
32
32
  "modelName": [1, "model-name"],
@@ -141,6 +141,7 @@ export interface IBusiness {
141
141
  phone: string;
142
142
  platform_account_id: string;
143
143
  product_categories: ProductCategories;
144
+ provisioned?: string[];
144
145
  representative?: Identity | null;
145
146
  tax_id: string;
146
147
  tax_id_last4: string;
@@ -178,6 +179,7 @@ export declare class Business implements IBusiness {
178
179
  product_categories: ProductCategories;
179
180
  country_of_establishment?: CountryCode;
180
181
  bank_account_verification?: boolean;
182
+ provisioned: string[];
181
183
  constructor(business: IBusiness);
182
184
  get payload(): {
183
185
  tax_id_last4: string;
@@ -57,9 +57,9 @@ export interface ICheckout {
57
57
  credit_card_payments: boolean;
58
58
  insurance_payments?: boolean;
59
59
  bank_account_verification?: boolean;
60
- apple_payments?: boolean;
61
- google_payments?: boolean;
62
- paypal_payments?: boolean;
60
+ apple_payments: boolean;
61
+ google_payments: boolean;
62
+ paypal_payments: boolean;
63
63
  };
64
64
  bnpl?: IBnpl;
65
65
  paypal?: {
@@ -94,9 +94,9 @@ export declare class Checkout implements ICheckout {
94
94
  credit_card_payments: boolean;
95
95
  insurance_payments?: boolean;
96
96
  bank_account_verification?: boolean;
97
- apple_payments?: boolean;
98
- google_payments?: boolean;
99
- paypal_payments?: boolean;
97
+ apple_payments: boolean;
98
+ google_payments: boolean;
99
+ paypal_payments: boolean;
100
100
  };
101
101
  bnpl?: IBnpl;
102
102
  paypal?: {
@@ -115,7 +115,7 @@ export declare class Checkout implements ICheckout {
115
115
  completions?: ICompletion[];
116
116
  sub_account_name?: string;
117
117
  constructor(data: ICheckout);
118
- get payment_mode(): ICheckoutPaymentMode;
118
+ get payment_mode(): ICheckoutPaymentMode | null;
119
119
  formattedPaymentAmount(amount: number): string;
120
120
  }
121
121
  export declare enum ICheckoutPaymentMode {
@@ -6,7 +6,7 @@ import { ComponentClickEvent, ComponentErrorEvent } from '../../api/ComponentEve
6
6
  export declare class JustifiCheckoutsList {
7
7
  accountId: string;
8
8
  authToken: string;
9
- columns?: string;
9
+ columns: string;
10
10
  subAccountId?: string;
11
11
  checkouts: Checkout[];
12
12
  checkoutsTable: Table<Checkout>;
@@ -38,6 +38,7 @@ export declare class JustifiApplePay {
38
38
  readonly PAYMENT_FAILED: "PAYMENT_FAILED";
39
39
  };
40
40
  componentWillLoad(): void;
41
+ private countryCodeForCurrency;
41
42
  private loadApplePaySDK;
42
43
  private initializeApplePay;
43
44
  private handleApplePayClick;
@@ -6,8 +6,11 @@ export declare class JustifiPaypal {
6
6
  private paypalSession;
7
7
  private venmoSession;
8
8
  private pendingOrderId?;
9
- paypalEligible: boolean;
10
- venmoEligible: boolean;
9
+ private paypalEligible;
10
+ private venmoEligible;
11
+ private buttonsEl?;
12
+ private paypalButtonEl?;
13
+ private venmoButtonEl?;
11
14
  paypalStarted: EventEmitter<{
12
15
  fundingSource: PaypalFundingSource;
13
16
  }>;
@@ -24,7 +27,11 @@ export declare class JustifiPaypal {
24
27
  code: string;
25
28
  }>;
26
29
  componentDidLoad(): void;
30
+ componentDidRender(): void;
27
31
  private get currencyCode();
32
+ private get showPaypal();
33
+ private get showVenmo();
34
+ private applyVisibility;
28
35
  private emitError;
29
36
  private loadPaypalScript;
30
37
  private metadataId;
@@ -682,7 +682,7 @@ export namespace Components {
682
682
  /**
683
683
  * @default defaultColumnsKeys
684
684
  */
685
- "columns"?: string;
685
+ "columns": string;
686
686
  "subAccountId"?: string;
687
687
  }
688
688
  interface JustifiCheckoutsListFilters {
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import"./p-B4vLfYnZ.js";import"./p-HXpYMWUU.js";import{j as s,C as i,b as r}from"./p-Dqxyi-uK.js";import{p as n}from"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";import{J as o}from"./p-BjjKkMO1.js";import{c}from"./p-_MjmE9YT.js";import{g as p,a as h}from"./p-BhpaUYtS.js";import{P as d}from"./p-BmaQUnqv.js";import{T as f,a as l,b as u,c as m,d as b,e as y,f as _,g,h as j,i as T,j as k,k as w,l as v}from"./p-DZr0wLGh.js";import{S as C}from"./p-05AWudQe.js";import{T as D}from"./p-CZfYo5-1.js";import{a as P}from"./p-Ds_P-dB8.js";import{a6 as F,a7 as R}from"./p-Bu7gdOaV.js";import"./p-DgTOxu8x.js";import"./p-BC9n8nB2.js";import"./p-C6Jq8YDT.js";import"./p-MPer3Rw7.js";const S={created_at:()=>t("th",{part:F,scope:"col",title:"The date and time each transaction was made"},"Processed On"),type:()=>t("th",{part:F,scope:"col",title:"The type of each transaction"},"Type"),id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of each transaction"},"ID"),amount:()=>t("th",{part:F,scope:"col",title:"The dollar amount of each transaction",class:"text-end"},"Amount"),balance:()=>t("th",{part:F,scope:"col",title:"The running total amount of this payment that belongs to you",class:"text-end"},"Balance"),currency:()=>t("th",{part:F,scope:"col",title:"The currency of each transaction"},"Currency"),financial_transaction_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),payment_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the payment associated with the payment balance transaction"},"Payment ID"),payment_balance_txn_type:()=>t("th",{part:F,scope:"col",title:"The type of the payment balance transaction"},"Transaction Type"),source_id:()=>t("th",{part:F,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),source_type:()=>t("th",{part:F,scope:"col",title:"The type of the source object associated with the payment balance transaction"},"Source Type")},x={ach_return:"ACH Return",ach_return_fee:"ACH Return Fee",dispute:"Dispute",dispute_fee:"Dispute Fee",dispute_fee_refund:"Dispute Fee Refund",dispute_refund:"Dispute Refund",payment:"Payment",payment_fee:"Fee",platform_fee:"Platform Fee",platform_fee_return:"Platform Fee Return",processing_fee:"Processing Fee",processing_fee_return:"Processing Fee Return",refund:"Refund",fee_refund:"Fee Refund",application_fee_returned:"Application Fee Returned",refund_failure:"Refund Failure",void:"Void"},B={created_at:(e,a)=>t("td",{part:R(a)},t("div",{class:"fw-bold"},P(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},P(e.created_at,{showTime:!0}))),type:(e,a)=>t("td",{part:R(a)},x[e.payment_balance_txn_type]),id:(e,a)=>t("td",{part:R(a)},e.id),amount:(e,a)=>t("td",{part:R(a),class:"text-end"},e.formattedPaymentAmount(e.amount)),balance:(e,a)=>t("td",{part:R(a),class:"text-end"},e.formattedPaymentAmount(e.balance)),currency:(e,a)=>t("td",{part:R(a)},e.currency),financial_transaction_id:(e,a)=>t("td",{part:R(a)},e.financial_transaction_id),payment_id:(e,a)=>t("td",{part:R(a)},e.payment_id),payment_balance_txn_type:(e,a)=>t("td",{part:R(a)},e.payment_balance_txn_type),source_id:(e,a)=>t("td",{part:R(a)},e.source_id),source_type:(e,a)=>t("td",{part:R(a)},e.source_type)},q=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event",7),this.errorEvent=a(this,"error-event",7),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=n,this.pagingParams={},this.columns="created_at,type,id,amount,balance",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:D.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:D.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:D.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,S,B),c(),this.analytics=new o(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.paymentId&&this.authToken?(({id:t,authToken:e,service:a})=>async({params:r,onSuccess:n,onError:o,final:c})=>{var d;try{const c=await a.fetchPaymentTransactions(t,e,r);c.error?o({error:h(c.error),code:p(null===(d=c.error)||void 0===d?void 0:d.code),severity:i.ERROR}):n({balanceTransactions:c.data.map((t=>new s(t))),pagingInfo:Object.assign({},c.page_info)})}catch(t){const e=p(null==t?void 0:t.code);o({error:h(t),code:e,severity:i.ERROR})}finally{c()}})({id:this.paymentId,authToken:this.authToken,service:new d})({params:this.pagingParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payment-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,i.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}render(){return t(C,{key:"f8b0f3a58ef7f88c0ac42fc58955b28ad97922e4"},t(l,{key:"2dc653b63611cbdfa388b386cec9b3adf751bd12"},t(u,{key:"a0bd64c01870ccd4bb921d5d90c7453650131f16"},t(m,{key:"b92ce24dab41cbaf1d8ecb1df43739d2548fe73f"},t(b,{key:"5f983b93b2b9b6661cae2cf74802519175aae8cc"},this.transactionsTable.columnData.map((t=>t)))),t(y,{key:"d9a51ecfc54c16a4859f9d66fb783f3876fc3428"},t(_,{key:"232f1b59ddeb9f949901678a67c652cc3aedfdf7",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(g,{key:"bd9a853887da939c651c234cd4f0e3ab35d610d1",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(j,{key:"da157eb9d18d89353f6aebb085bb4becb15ac89f",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(T,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(k,{key:"41ffc1c9d3591dad7973f862b78b488e089af863"},t(w,{key:"17780690e1b44eb6ba13128d3ecfee73c6be06a7"},t(v,{key:"312b9a0b9649ffd9033ec1333b2d9d8eb666d185",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"4ef805672cf530850ecdf13e26eefc8015f80fa3",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],paymentId:["propChanged"],authToken:["propChanged"]}}};export{q as justifi_payment_transactions_list}
@@ -1 +1 @@
1
- import{r as e,h as t,H as s}from"./p-CV0Pyo1O.js";import{c as a,F as i}from"./p-D9sqTVmd.js";import{z as l,A as r,h as d,l as o,j as n,v as c,B as h}from"./p-Do9dxNjh.js";import{ak as f}from"./p-Bu7gdOaV.js";import{c as b,o as m}from"./p-Fpaf7CLD.js";import{P as u}from"./p-DEx8fQeW.js";import{H as p}from"./p-BAB1lPu0.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-CawcnSoV.js";import"./p-DaDqgDrb.js";import"./p-OReJ-ZQb.js";import"./p-DgTOxu8x.js";const _=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new i(a({name:c.required("Enter full name"),address_line1:n.nullable(),address_line2:o.nullable(),address_city:d.nullable(),address_state:r.nullable(),address_postal_code:l.nullable()}));const e=b.billingFormFields;e&&Object.keys(e).some((t=>e[t]))&&this.formController.setInitialValues(e)}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)})),this.unsubscribeFromStore=m("billingFormFields",(e=>{this.formController.setInitialValues(e)}))}disconnectedCallback(){var e;null===(e=this.unsubscribeFromStore)||void 0===e||e.call(this)}async getValues(){return this.formController.values.getValue()}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return t("div",{key:"29a619477cbe3328493800d9b09222d62530b134",part:f,class:"mt-4"},t("form",{key:"920052e4002aefd865fdb35e78ba258ae9770d96"},t("fieldset",{key:"3bd18742ea98d106ba79f676a46339752f6dbda5"},this.legend&&t("legend",{key:"35f730b0aae032ae0230483997a1d28e3067db79"},this.legend),t("div",{key:"5a09966204b82a09f808f9f86487f819709f8791",class:"row gy-3"},t("div",{key:"1f29732dbd3bdc494ea7e4b9f3abffa895d497d7",class:"col-12"},t("form-control-text",{key:"30db36cacf66be485663bbc943b129b1e4bf707a",name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler}))))))}},v=class{constructor(t){e(this,t)}get showSimpleCardBillingForm(){return this.paymentMethodType===u.NEW_CARD&&this.hideCardBillingForm}get showSimpleBankAccountBillingForm(){return this.paymentMethodType===u.NEW_BANK_ACCOUNT&&this.hideBankAccountBillingForm}async getValues(){var e;return null===(e=this.selectedFormRef)||void 0===e?void 0:e.getValues()}async validate(){var e;return null===(e=this.selectedFormRef)||void 0===e?void 0:e.validate()}render(){return t(s,null,t(this.showSimpleBankAccountBillingForm?"bank-account-billing-form-simple":this.showSimpleCardBillingForm?"card-billing-form-simple":"billing-form-full",{legend:this.legend,ref:e=>this.selectedFormRef=e}))}},g=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new i(a({name:c.required("Enter full name"),address_line1:n.required("Enter street address"),address_line2:o.nullable(),address_city:d.required("Enter city"),address_state:r.required("Select state or province"),address_postal_code:l.required("Enter postal code")}));const e=b.billingFormFields;e&&Object.keys(e).some((t=>e[t]))&&this.formController.setInitialValues(e),this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}componentDidLoad(){this.unsubscribeFromStore=m("billingFormFields",(e=>{this.formController.setInitialValues(e)}))}disconnectedCallback(){var e;null===(e=this.unsubscribeFromStore)||void 0===e||e.call(this)}async getValues(){return this.formController.values.getValue()}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){if(!this.formController)return null;const e=this.formController.getInitialValues();return t("div",{part:f,class:"mt-4"},t(p,{text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),t("form",null,t("fieldset",null,this.legend&&t("legend",null,this.legend),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_line1",label:"Street Address",defaultValue:e.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:e.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_city",label:"City",defaultValue:e.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-select",{name:"address_state",label:"State / Province",options:h,defaultValue:e.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_postal_code",label:"Postal Code",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:7}))))))}},y=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new i(a({name:c.nullable(),address_line1:n.nullable(),address_line2:o.nullable(),address_city:d.nullable(),address_state:r.nullable(),address_postal_code:l.required("Enter postal code")}));const e=b.billingFormFields;e&&Object.keys(e).some((t=>e[t]))&&this.formController.setInitialValues(e)}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)})),this.unsubscribeFromStore=m("billingFormFields",(e=>{this.formController.setInitialValues(e)}))}disconnectedCallback(){var e;null===(e=this.unsubscribeFromStore)||void 0===e||e.call(this)}async getValues(){return this.formController.values.getValue()}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return t("div",{key:"c2fa07fce39ab1b47c99539b312fdf84e782f4dc",part:f},t("form",{key:"3bd9fdcd20ca3c014472c5ea2438214ece25abc5"},t("fieldset",{key:"c06cc32d36e56acfcc0a0925d8c9d45040654a63"},this.legend&&t("legend",{key:"ec087f9940930a9efa8c6b5e92767032ba9b8b5e"},this.legend),t("div",{key:"003ecc05fde14a1f1a6727f73f78ddbb81678680",class:"row gy-3"},t("div",{key:"2de4de749a16b5fd478284a0eda93122ff67f0af",class:"col-12"},t("form-control-text",{key:"26c2b72da72e11a3d1561ace457259521bb5d74d",name:"address_postal_code",label:"Postal Code",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:7}))))))}};export{_ as bank_account_billing_form_simple,v as billing_form,g as billing_form_full,y as card_billing_form_simple}
1
+ import{r as e,h as t,H as s}from"./p-CV0Pyo1O.js";import{c as a,F as i}from"./p-D9sqTVmd.js";import{z as l,A as r,h as d,l as o,j as n,v as c,B as h}from"./p-BAvoKtN2.js";import{ak as f}from"./p-Bu7gdOaV.js";import{c as m,o as b}from"./p-Fpaf7CLD.js";import{P as u}from"./p-DEx8fQeW.js";import{H as p}from"./p-BAB1lPu0.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-riZDHN5-.js";import"./p-CTtGaVYs.js";import"./p-CtlBL-X6.js";import"./p-DgTOxu8x.js";const _=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new i(a({name:c.required("Enter full name"),address_line1:n.nullable(),address_line2:o.nullable(),address_city:d.nullable(),address_state:r.nullable(),address_postal_code:l.nullable()}));const e=m.billingFormFields;e&&Object.keys(e).some((t=>e[t]))&&this.formController.setInitialValues(e)}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)})),this.unsubscribeFromStore=b("billingFormFields",(e=>{this.formController.setInitialValues(e)}))}disconnectedCallback(){var e;null===(e=this.unsubscribeFromStore)||void 0===e||e.call(this)}async getValues(){return this.formController.values.getValue()}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return t("div",{key:"29a619477cbe3328493800d9b09222d62530b134",part:f,class:"mt-4"},t("form",{key:"920052e4002aefd865fdb35e78ba258ae9770d96"},t("fieldset",{key:"3bd18742ea98d106ba79f676a46339752f6dbda5"},this.legend&&t("legend",{key:"35f730b0aae032ae0230483997a1d28e3067db79"},this.legend),t("div",{key:"5a09966204b82a09f808f9f86487f819709f8791",class:"row gy-3"},t("div",{key:"1f29732dbd3bdc494ea7e4b9f3abffa895d497d7",class:"col-12"},t("form-control-text",{key:"30db36cacf66be485663bbc943b129b1e4bf707a",name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler}))))))}},v=class{constructor(t){e(this,t)}get showSimpleCardBillingForm(){return this.paymentMethodType===u.NEW_CARD&&this.hideCardBillingForm}get showSimpleBankAccountBillingForm(){return this.paymentMethodType===u.NEW_BANK_ACCOUNT&&this.hideBankAccountBillingForm}async getValues(){var e;return null===(e=this.selectedFormRef)||void 0===e?void 0:e.getValues()}async validate(){var e;return null===(e=this.selectedFormRef)||void 0===e?void 0:e.validate()}render(){return t(s,null,t(this.showSimpleBankAccountBillingForm?"bank-account-billing-form-simple":this.showSimpleCardBillingForm?"card-billing-form-simple":"billing-form-full",{legend:this.legend,ref:e=>this.selectedFormRef=e}))}},y=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new i(a({name:c.required("Enter full name"),address_line1:n.required("Enter street address"),address_line2:o.nullable(),address_city:d.required("Enter city"),address_state:r.required("Select state or province"),address_postal_code:l.required("Enter postal code")}));const e=m.billingFormFields;e&&Object.keys(e).some((t=>e[t]))&&this.formController.setInitialValues(e),this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}componentDidLoad(){this.unsubscribeFromStore=b("billingFormFields",(e=>{this.formController.setInitialValues(e)}))}disconnectedCallback(){var e;null===(e=this.unsubscribeFromStore)||void 0===e||e.call(this)}async getValues(){return this.formController.values.getValue()}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){if(!this.formController)return null;const e=this.formController.getInitialValues();return t("div",{part:f,class:"mt-4"},t(p,{text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),t("form",null,t("fieldset",null,this.legend&&t("legend",null,this.legend),t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-text",{name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_line1",label:"Street Address",defaultValue:e.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:e.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_city",label:"City",defaultValue:e.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-select",{name:"address_state",label:"State / Province",options:h,defaultValue:e.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),t("div",{class:"col-12"},t("form-control-text",{name:"address_postal_code",label:"Postal Code",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:7}))))))}},g=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new i(a({name:c.nullable(),address_line1:n.nullable(),address_line2:o.nullable(),address_city:d.nullable(),address_state:r.nullable(),address_postal_code:l.required("Enter postal code")}));const e=m.billingFormFields;e&&Object.keys(e).some((t=>e[t]))&&this.formController.setInitialValues(e)}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)})),this.unsubscribeFromStore=b("billingFormFields",(e=>{this.formController.setInitialValues(e)}))}disconnectedCallback(){var e;null===(e=this.unsubscribeFromStore)||void 0===e||e.call(this)}async getValues(){return this.formController.values.getValue()}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return t("div",{key:"c2fa07fce39ab1b47c99539b312fdf84e782f4dc",part:f},t("form",{key:"3bd9fdcd20ca3c014472c5ea2438214ece25abc5"},t("fieldset",{key:"c06cc32d36e56acfcc0a0925d8c9d45040654a63"},this.legend&&t("legend",{key:"ec087f9940930a9efa8c6b5e92767032ba9b8b5e"},this.legend),t("div",{key:"003ecc05fde14a1f1a6727f73f78ddbb81678680",class:"row gy-3"},t("div",{key:"2de4de749a16b5fd478284a0eda93122ff67f0af",class:"col-12"},t("form-control-text",{key:"26c2b72da72e11a3d1561ace457259521bb5d74d",name:"address_postal_code",label:"Postal Code",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:7}))))))}};export{_ as bank_account_billing_form_simple,v as billing_form,y as billing_form_full,g as card_billing_form_simple}
@@ -1 +1 @@
1
- import{h as s,F as e,r as i,c as t}from"./p-CV0Pyo1O.js";import{E as a}from"./p-Bh6Q8AqQ.js";import{B as r}from"./p-DnLqZpI1.js";import{m as o}from"./p-CyOXIqHo.js";import{C as n,b as l}from"./p-D6uhYbLo.js";import{J as h}from"./p-BHaO3c8W.js";import{c as d}from"./p-ByQMBEDC.js";import{S as p}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{S as c}from"./p-eBK-iWrz.js";import"./p-Bu7gdOaV.js";import"./p-Bl00tHyn.js";import"./p-B4vLfYnZ.js";import"./p-DgTOxu8x.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-Dn9_7aQh.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import"./p-CLq3Og7o.js";const u=()=>{const i=()=>s("div",{class:"mt-5"},s(c,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(c,null),s(c,null),s(c,null)),s("div",{class:"col-12 col-md-6"},s(c,null),s(c,null),s(c,null))));return s(e,null,s(i,null),s(i,null),s(i,null),s(i,null))},m=class{constructor(s){i(this,s),this.errorEvent=t(this,"error-event",7),this.loading=!0}componentWillLoad(){d(),this.analytics=new h(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetBusiness()}initializeGetBusiness(){this.businessId&&this.authToken?(this.getBusiness=o({id:this.businessId,authToken:this.authToken,service:new r}),this.fetchData()):(this.errorMessage="Invalid business id or auth token",this.errorEvent.emit({errorCode:l.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}updateOnPropChange(){this.getBusiness&&this.fetchData()}fetchData(){this.loading=!0,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.errorMessage=null},onError:({error:s,code:e,severity:i})=>{this.errorMessage=s,this.errorEvent.emit({errorCode:e,message:s,severity:i})},final:()=>{this.loading=!1}})}render(){return s(p,{key:"7ce48e6905cdbbf8f94470913ecfa3ef8dbb76c7"},this.loading&&s(u,{key:"7c3439e0c247436cd7951d3bdc32e7672c9f8447"}),!this.loading&&this.errorMessage&&a(this.errorMessage),!this.loading&&!this.errorMessage&&this.business&&s("justifi-details",{key:"bf57dacf2067f2704014ce3e002958e3306bba73",errorMessage:this.errorMessage},s("div",{key:"46d19a178ba0d33aa21a4f3900128e3e905731a9",slot:"detail-sections"},s("core-info-details",{key:"ac217a4cfe6b45810a85ca320760b7331f76e60b",business:this.business}),s("legal-address-details",{key:"1fc1a196a43bcf5f9eafd09bfe74c8bb7c409797",legalAddress:this.business.legal_address}),s("representative-details",{key:"1e0833606b129f69a05946726172963cbec05189",representative:this.business.representative}),s("owner-details",{key:"c974111dc67a8961ef6435c34843ca927ad8a7e5",owners:this.business.owners}),s("additional-questions-details",{key:"0951d284a373457e98a1dafc80231ec3ee057e0a",additionalQuestions:this.business.additional_questions}))))}static get watchers(){return{businessId:["propChanged"],authToken:["propChanged"],getBusiness:["updateOnPropChange"]}}};export{m as justifi_business_details}
1
+ import{h as s,F as e,r as t,c as i}from"./p-CV0Pyo1O.js";import{E as a}from"./p-Bh6Q8AqQ.js";import{B as r}from"./p-rFpPIJgu.js";import{m as o}from"./p-BDtSw_d-.js";import{C as n,b as l}from"./p-Dqxyi-uK.js";import{J as d}from"./p-BjjKkMO1.js";import{c as h}from"./p-_MjmE9YT.js";import{S as p}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{S as c}from"./p-eBK-iWrz.js";import"./p-Bu7gdOaV.js";import"./p-C6Jq8YDT.js";import"./p-B4vLfYnZ.js";import"./p-DgTOxu8x.js";import"./p-Ds_P-dB8.js";import"./p-HXpYMWUU.js";import"./p-BC9n8nB2.js";import"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";import"./p-BhpaUYtS.js";const u=()=>{const t=()=>s("div",{class:"mt-5"},s(c,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(c,null),s(c,null),s(c,null)),s("div",{class:"col-12 col-md-6"},s(c,null),s(c,null),s(c,null))));return s(e,null,s(t,null),s(t,null),s(t,null),s(t,null))},m=class{constructor(s){t(this,s),this.errorEvent=i(this,"error-event",7),this.loading=!0}componentWillLoad(){h(),this.analytics=new d(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetBusiness()}initializeGetBusiness(){this.businessId&&this.authToken?(this.getBusiness=o({id:this.businessId,authToken:this.authToken,service:new r}),this.fetchData()):(this.errorMessage="Invalid business id or auth token",this.errorEvent.emit({errorCode:l.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}updateOnPropChange(){this.getBusiness&&this.fetchData()}fetchData(){this.loading=!0,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.errorMessage=null},onError:({error:s,code:e,severity:t})=>{this.errorMessage=s,this.errorEvent.emit({errorCode:e,message:s,severity:t})},final:()=>{this.loading=!1}})}render(){return s(p,{key:"7ce48e6905cdbbf8f94470913ecfa3ef8dbb76c7"},this.loading&&s(u,{key:"7c3439e0c247436cd7951d3bdc32e7672c9f8447"}),!this.loading&&this.errorMessage&&a(this.errorMessage),!this.loading&&!this.errorMessage&&this.business&&s("justifi-details",{key:"bf57dacf2067f2704014ce3e002958e3306bba73",errorMessage:this.errorMessage},s("div",{key:"46d19a178ba0d33aa21a4f3900128e3e905731a9",slot:"detail-sections"},s("core-info-details",{key:"ac217a4cfe6b45810a85ca320760b7331f76e60b",business:this.business}),s("legal-address-details",{key:"1fc1a196a43bcf5f9eafd09bfe74c8bb7c409797",legalAddress:this.business.legal_address}),s("representative-details",{key:"1e0833606b129f69a05946726172963cbec05189",representative:this.business.representative}),s("owner-details",{key:"c974111dc67a8961ef6435c34843ca927ad8a7e5",owners:this.business.owners}),s("additional-questions-details",{key:"0951d284a373457e98a1dafc80231ec3ee057e0a",additionalQuestions:this.business.additional_questions}))))}static get watchers(){return{businessId:["propChanged"],authToken:["propChanged"],getBusiness:["updateOnPropChange"]}}};export{m as justifi_business_details}
@@ -1 +1 @@
1
- import{h as t,r as e,c as s}from"./p-CV0Pyo1O.js";import{c as r,a as i,F as n}from"./p-D9sqTVmd.js";import{f as o}from"./p-Ds_P-dB8.js";import"./p-B4vLfYnZ.js";import{R as a,C as u,b as h,q as l}from"./p-D6uhYbLo.js";import"./p-CLHwhyvu.js";import"./p-DaDqgDrb.js";import{B as c}from"./p-CU2Dwa94.js";import{S as d}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{P as m}from"./p-BFi5l0xt.js";import{m as p}from"./p-Cy2N3vAg.js";import{J as f}from"./p-BHaO3c8W.js";import{c as y}from"./p-ByQMBEDC.js";import{g as v,a as j}from"./p-CLq3Og7o.js";import{A as b}from"./p-Bl00tHyn.js";import{S as w}from"./p-eBK-iWrz.js";import"./p-BFTU3MAI.js";import"./p-HXpYMWUU.js";import"./p-DgTOxu8x.js";import"./p-Bu7gdOaV.js";import"./p-Dn9_7aQh.js";const g=t=>{const e=+t;return i().required("Amount is required").test("max-amount",`Refund amount cannot be more than payment amount: ${o(e)}`,(function(t){return+t<=+e})).test("min-amount","Refund amount must be greater than 0",(function(t){return+t>0}))},C=t=>{if(t)return r({amount:g(t),description:i().optional(),reason:i().optional().oneOf([a.customerRequest,a.duplicate,a.fraudulent],"Select a reason")})},T=[{label:"Select a reason",value:""},{label:"Customer requested a refund",value:"customer_request"},{label:"Customer was double-charged",value:"duplicate"},{label:"Payment was reported as fraud",value:"fraudulent"}],x=b();class B{async postRefund(t,e,s,r){return x.post({endpoint:`payments/${t}/refunds`,headers:{"Sub-Account":e},body:r,authToken:s})}}const D=b();class A{async postVoid(t,e,s){return D.post({endpoint:`payments/${t}/void`,headers:{"Sub-Account":e},authToken:s})}}const I=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"100%",height:"40px"}))),S=()=>t(d,null,t("div",{class:"row gap-5"},t(I,null),t(I,null),t(I,null))),k=class{constructor(t){e(this,t),this.errorEvent=s(this,"error-event",7),this.submitEvent=s(this,"submit-event",7),this.refundPayload={},this.displayAmount="",this.errors={},this.paymentLoading=!0,this.refundLoading=!1,this.hideSubmitButton=!1,this.inputHandler=(t,e)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))}}componentWillLoad(){y(),this.analytics=new f(this),this.initializeApi(),this.formController=new n(C())}handleError(t,e,s){this.errorEvent.emit({errorCode:t,message:e,severity:s})}checkAmount(t){return t>0}handleInvalidAmount(){this.submitDisabled=!0,this.handleError(h.INVALID_REFUND_AMOUNT,"Refund amount must be greater than 0",u.ERROR)}isPaymentCreatedWithin25Minutes(){var t;if(!this.payment||!(null===(t=this.payment)||void 0===t?void 0:t.created_at))return!1;const e=new Date(this.payment.created_at);return((new Date).getTime()-e.getTime())/6e4<=25}initializeFormController(){const t=this.refundPayload.amount,e=t?t.toString():"0";this.formController=new n(C(e)),this.formController.setInitialValues({amount:e}),this.formController.values.subscribe((t=>{this.refundPayload=Object.assign({},t)})),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.paymentId&&this.authToken?p({id:this.paymentId,authToken:this.authToken,service:new m})({onSuccess:({payment:t})=>{this.payment=t,this.refundPayload=new l({amount:t.amount_refundable})},onError:({error:t,code:e,severity:s})=>{this.handleError(e,t,s)},final:()=>{this.checkAmount(this.refundPayload.amount)?this.initializeFormController():this.handleInvalidAmount(),this.paymentLoading=!1}}):this.handleError(h.MISSING_PROPS,"Payment ID and Auth Token are required",u.ERROR)}async refundPayment(t){if(t&&t.preventDefault(),!await this.formController.validate())return;const e=this.formController.values.getValue();return this.refundLoading=!0,this.isPaymentCreatedWithin25Minutes()?this.tryVoidPayment():this.processRefund(e)}async tryVoidPayment(){const t=(({authToken:t,accountId:e,paymentId:s,service:r})=>async({onSuccess:i,onError:n,final:o})=>{var a;try{const o=await r.postVoid(s,e,t);if(o.error)return n({error:j(o.error),code:v(null===(a=o.error)||void 0===a?void 0:a.code),severity:u.ERROR});i(o)}catch(t){const e=v(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:u.ERROR})}finally{o()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new A});return new Promise((e=>{let s,r=!1;const i=this.formController.values.getValue();t({onSuccess:t=>{s=t,r=!0},onError:({error:t,code:s,severity:n})=>{r=!0,this.handleError(s,t,n),this.processRefund(i).then(e)},final:()=>{s&&!s.error&&r&&(this.submitEvent.emit({response:s}),this.submitDisabled=!0,this.refundLoading=!1,e(s.data))}})}))}async processRefund(t){const e=(({authToken:t,accountId:e,paymentId:s,service:r})=>async({refundBody:i,onSuccess:n,onError:o,final:a})=>{var h;try{const a=await r.postRefund(s,e,t,i);if(a.error)return o({error:j(a.error),code:v(null===(h=a.error)||void 0===h?void 0:h.code),severity:u.ERROR});n(a)}catch(t){const e=v(null==t?void 0:t.code);return o({error:t.message||t,code:e,severity:u.ERROR})}finally{a()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new B});return new Promise((s=>{let r;e({refundBody:t,onSuccess:t=>{r=t},onError:({error:t,code:e,severity:s})=>{r=t,this.handleError(e,t,s)},final:()=>{this.submitEvent.emit({response:r}),this.submitDisabled=!0,this.refundLoading=!1,s(r.data)}})}))}render(){if(this.paymentLoading)return t(S,null);const e=this.formController.getInitialValues(),s=this.refundPayload.amount;return t(d,null,t("form",null,t("fieldset",null,t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-monetary",{name:"amount",label:"Refund Amount",defaultValue:e.amount,inputHandler:this.inputHandler,errorText:this.errors.amount})),t("div",{class:"col-12"},t("form-control-select",{name:"reason",label:"Reason for refund (optional)",defaultValue:e.reason,inputHandler:this.inputHandler,options:T,errorText:this.errors.reason})),t("div",{class:"col-12"},t("form-control-textarea",{name:"description",label:"Note (optional)",defaultValue:e.description,inputHandler:this.inputHandler,maxLength:250,errorText:this.errors.description})),t("div",{class:"form-group d-flex flex-row-reverse"},t(c,{variant:"primary",type:"submit",onClick:this.refundPayment.bind(this),isLoading:this.paymentLoading||this.refundLoading,hidden:this.hideSubmitButton,disabled:this.submitDisabled},`Refund ${o(+s)}`))))))}};export{k as justifi_refund_payment}
1
+ import{h as t,r as e,c as s}from"./p-CV0Pyo1O.js";import{c as r,a as i,F as n}from"./p-D9sqTVmd.js";import{f as o}from"./p-Ds_P-dB8.js";import"./p-B4vLfYnZ.js";import{R as a,C as u,b as h,q as l}from"./p-Dqxyi-uK.js";import"./p-CLHwhyvu.js";import"./p-CTtGaVYs.js";import{B as c}from"./p-CU2Dwa94.js";import{S as d}from"./p-05AWudQe.js";import"./p-CZfYo5-1.js";import{P as m}from"./p-BmaQUnqv.js";import{m as p}from"./p-C9p1gWAC.js";import{J as f}from"./p-BjjKkMO1.js";import{c as v}from"./p-_MjmE9YT.js";import{g as y,a as j}from"./p-BhpaUYtS.js";import{A as w}from"./p-C6Jq8YDT.js";import{S as b}from"./p-eBK-iWrz.js";import"./p-BFTU3MAI.js";import"./p-HXpYMWUU.js";import"./p-DgTOxu8x.js";import"./p-Bu7gdOaV.js";import"./p-BC9n8nB2.js";const T=t=>{const e=+t;return i().required("Amount is required").test("max-amount",`Refund amount cannot be more than payment amount: ${o(e)}`,(function(t){return+t<=+e})).test("min-amount","Refund amount must be greater than 0",(function(t){return+t>0}))},C=t=>{if(t)return r({amount:T(t),description:i().optional(),reason:i().optional().oneOf([a.customerRequest,a.duplicate,a.fraudulent],"Select a reason")})},g=[{label:"Select a reason",value:""},{label:"Customer requested a refund",value:"customer_request"},{label:"Customer was double-charged",value:"duplicate"},{label:"Payment was reported as fraud",value:"fraudulent"}],x=w();class B{async postRefund(t,e,s,r){return x.post({endpoint:`payments/${t}/refunds`,headers:{"Sub-Account":e},body:r,authToken:s})}}const A=w();class S{async postVoid(t,e,s){return A.post({endpoint:`payments/${t}/void`,headers:{"Sub-Account":e},authToken:s})}}const k=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(b,{width:"100%",height:"40px"}))),I=()=>t(d,null,t("div",{class:"row gap-5"},t(k,null),t(k,null),t(k,null))),P=class{constructor(t){e(this,t),this.errorEvent=s(this,"error-event",7),this.submitEvent=s(this,"submit-event",7),this.refundPayload={},this.displayAmount="",this.errors={},this.paymentLoading=!0,this.refundLoading=!1,this.hideSubmitButton=!1,this.inputHandler=(t,e)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:e}))}}componentWillLoad(){v(),this.analytics=new f(this),this.initializeApi(),this.formController=new n(C())}handleError(t,e,s){this.errorEvent.emit({errorCode:t,message:e,severity:s})}checkAmount(t){return t>0}handleInvalidAmount(){this.submitDisabled=!0,this.handleError(h.INVALID_REFUND_AMOUNT,"Refund amount must be greater than 0",u.ERROR)}isPaymentCreatedWithin25Minutes(){var t;if(!this.payment||!(null===(t=this.payment)||void 0===t?void 0:t.created_at))return!1;const e=new Date(this.payment.created_at);return((new Date).getTime()-e.getTime())/6e4<=25}initializeFormController(){const t=this.refundPayload.amount,e=t?t.toString():"0";this.formController=new n(C(e)),this.formController.setInitialValues({amount:e}),this.formController.values.subscribe((t=>{this.refundPayload=Object.assign({},t)})),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.paymentId&&this.authToken?p({id:this.paymentId,authToken:this.authToken,service:new m})({onSuccess:({payment:t})=>{this.payment=t,this.refundPayload=new l({amount:t.amount_refundable})},onError:({error:t,code:e,severity:s})=>{this.handleError(e,t,s)},final:()=>{this.checkAmount(this.refundPayload.amount)?this.initializeFormController():this.handleInvalidAmount(),this.paymentLoading=!1}}):this.handleError(h.MISSING_PROPS,"Payment ID and Auth Token are required",u.ERROR)}async refundPayment(t){if(t&&t.preventDefault(),!await this.formController.validate())return;const e=this.formController.values.getValue();return this.refundLoading=!0,this.isPaymentCreatedWithin25Minutes()?this.tryVoidPayment():this.processRefund(e)}async tryVoidPayment(){const t=(({authToken:t,accountId:e,paymentId:s,service:r})=>async({onSuccess:i,onError:n,final:o})=>{var a;try{const o=await r.postVoid(s,e,t);if(o.error)return n({error:j(o.error),code:y(null===(a=o.error)||void 0===a?void 0:a.code),severity:u.ERROR});i(o)}catch(t){const e=y(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:u.ERROR})}finally{o()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new S});return new Promise((e=>{let s,r=!1;const i=this.formController.values.getValue();t({onSuccess:t=>{s=t,r=!0},onError:({error:t,code:s,severity:n})=>{r=!0,this.handleError(s,t,n),this.processRefund(i).then(e)},final:()=>{s&&!s.error&&r&&(this.submitEvent.emit({response:s}),this.submitDisabled=!0,this.refundLoading=!1,e(s.data))}})}))}async processRefund(t){const e=(({authToken:t,accountId:e,paymentId:s,service:r})=>async({refundBody:i,onSuccess:n,onError:o,final:a})=>{var h;try{const a=await r.postRefund(s,e,t,i);if(a.error)return o({error:j(a.error),code:y(null===(h=a.error)||void 0===h?void 0:h.code),severity:u.ERROR});n(a)}catch(t){const e=y(null==t?void 0:t.code);return o({error:t.message||t,code:e,severity:u.ERROR})}finally{a()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new B});return new Promise((s=>{let r;e({refundBody:t,onSuccess:t=>{r=t},onError:({error:t,code:e,severity:s})=>{r=t,this.handleError(e,t,s)},final:()=>{this.submitEvent.emit({response:r}),this.submitDisabled=!0,this.refundLoading=!1,s(r.data)}})}))}render(){if(this.paymentLoading)return t(I,null);const e=this.formController.getInitialValues(),s=this.refundPayload.amount;return t(d,null,t("form",null,t("fieldset",null,t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-monetary",{name:"amount",label:"Refund Amount",defaultValue:e.amount,inputHandler:this.inputHandler,errorText:this.errors.amount})),t("div",{class:"col-12"},t("form-control-select",{name:"reason",label:"Reason for refund (optional)",defaultValue:e.reason,inputHandler:this.inputHandler,options:g,errorText:this.errors.reason})),t("div",{class:"col-12"},t("form-control-textarea",{name:"description",label:"Note (optional)",defaultValue:e.description,inputHandler:this.inputHandler,maxLength:250,errorText:this.errors.description})),t("div",{class:"form-group d-flex flex-row-reverse"},t(c,{variant:"primary",type:"submit",onClick:this.refundPayment.bind(this),isLoading:this.paymentLoading||this.refundLoading,hidden:this.hideSubmitButton,disabled:this.submitDisabled},`Refund ${o(+s)}`))))))}};export{P as justifi_refund_payment}