@justifi/webcomponents 5.7.0 → 5.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (515) hide show
  1. package/dist/cjs/{ApiNew-C8nf_gS9.js → Api-Dp4CW5K6.js} +1 -1
  2. package/dist/cjs/{Business-DyiDiIuO.js → Business-DCRzZf0w.js} +3 -1
  3. package/dist/cjs/{Checkout-RAGvjVPj.js → Checkout-TZnRz3-3.js} +1 -1
  4. package/dist/cjs/{Payment-CQCmj3Ck.js → Document-Qt0qiXeh.js} +58 -1
  5. package/dist/cjs/{Refund-CpurRc4w.js → Refund-BDFOEJv_.js} +2 -1
  6. package/dist/cjs/additional-questions-details_5.cjs.entry.js +12 -13
  7. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +11 -10
  8. package/dist/cjs/bank-account-form_9.cjs.entry.js +35 -25
  9. package/dist/cjs/{business-additional-questions-schema-gVepoR4V.js → business-additional-questions-schema-JlysTRE3.js} +1 -1
  10. package/dist/cjs/business-details-core.cjs.entry.js +1 -2
  11. package/dist/cjs/{business-form-options-BCj0efiD.js → business-form-options-CMII7nIK.js} +1 -1
  12. package/dist/cjs/{business-identity-schema-dt0zCW0R.js → business-identity-schema-BksYFWls.js} +1 -1
  13. package/dist/cjs/{business.service-yVtplFhh.js → business.service-DMIMZpx4.js} +9 -2
  14. package/dist/cjs/{check-pkg-version-BYKcQDik.js → check-pkg-version-hqYwYpQq.js} +13 -3
  15. package/dist/cjs/{checkout.service-Dd2AbBn2.js → checkout.service-DKH8NODe.js} +9 -2
  16. package/dist/cjs/checkouts-list-core.cjs.entry.js +11 -8
  17. package/dist/cjs/{checkouts-table-_T5eblyc.js → checkouts-table-Cj2iSB_P.js} +1 -1
  18. package/dist/cjs/custom-popper_4.cjs.entry.js +4 -4
  19. package/dist/cjs/{dispute.service-C0J-Wh-Y.js → dispute.service-8j6tLV4i.js} +9 -2
  20. package/dist/cjs/form-alert_5.cjs.entry.js +2 -2
  21. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  22. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  23. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  24. package/dist/cjs/form-control-monetary.cjs.entry.js +3 -3
  25. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
  26. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  27. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  28. package/dist/cjs/{get-business-DHg5rpse.js → get-business-BJrtsomz.js} +1 -1
  29. package/dist/cjs/{get-payment-details-DqvDYbnK.js → get-payment-details-MM1u5jMc.js} +8 -6
  30. package/dist/cjs/{get-subaccounts-CquZS5kP.js → get-subaccounts-CkjWYxIU.js} +9 -7
  31. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  32. package/dist/cjs/iframe-input.cjs.entry.js +4 -4
  33. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +12 -11
  34. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +13 -15
  35. package/dist/cjs/justifi-business-details.cjs.entry.js +22 -10
  36. package/dist/cjs/justifi-business-form.cjs.entry.js +19 -18
  37. package/dist/cjs/justifi-checkout-core.cjs.entry.js +2 -2
  38. package/dist/cjs/justifi-checkout.cjs.entry.js +18 -8
  39. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +10 -7
  40. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +20 -16
  41. package/dist/cjs/justifi-details.cjs.entry.js +1 -1
  42. package/dist/cjs/justifi-dispute-management.cjs.entry.js +15 -7
  43. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +17 -7
  44. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +19 -10
  45. package/dist/cjs/justifi-order-terminals.cjs.entry.js +20 -16
  46. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +12 -8
  47. package/dist/cjs/justifi-payment-details.cjs.entry.js +14 -11
  48. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +18 -8
  49. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +18 -14
  50. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +3 -3
  51. package/dist/cjs/justifi-payments-list.cjs.entry.js +19 -15
  52. package/dist/cjs/justifi-payout-details.cjs.entry.js +16 -12
  53. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +18 -14
  54. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +3 -3
  55. package/dist/cjs/justifi-payouts-list.cjs.entry.js +19 -15
  56. package/dist/cjs/justifi-refund-payment.cjs.entry.js +16 -14
  57. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +4 -2
  58. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +20 -23
  59. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +11 -8
  60. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +21 -14
  61. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +10 -7
  62. package/dist/cjs/justifi-terminals-list.cjs.entry.js +19 -15
  63. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +19 -13
  64. package/dist/cjs/loader.cjs.js +1 -1
  65. package/dist/cjs/{package-CX6Njc5t.js → package-BCOEGxFC.js} +1 -1
  66. package/dist/cjs/payment-details-core.cjs.entry.js +10 -10
  67. package/dist/cjs/{payment.service-BvTU2Orj.js → payment.service-CCxGhTwZ.js} +9 -2
  68. package/dist/cjs/payments-list-core.cjs.entry.js +12 -9
  69. package/dist/cjs/{payments-table-BkRhDePE.js → payments-table-BR97ybd6.js} +1 -1
  70. package/dist/cjs/payout-details-core.cjs.entry.js +5 -5
  71. package/dist/cjs/{payout.service-C99pgxvg.js → payout.service-CtphIhUK.js} +9 -2
  72. package/dist/cjs/payouts-list-core.cjs.entry.js +12 -9
  73. package/dist/cjs/{payouts-table-DJMz3bVh.js → payouts-table-DMcQiC1g.js} +1 -1
  74. package/dist/cjs/{schema-validations-p4OCdblz.js → schema-validations-BUor-ySb.js} +6 -7
  75. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +12 -9
  76. package/dist/cjs/{terminal-orders-table-BeeUTKtj.js → terminal-orders-table-D-CLcZws.js} +7 -5
  77. package/dist/cjs/{terminal.service-DEGcoaCb.js → terminal.service-Dv_WJkue.js} +9 -2
  78. package/dist/cjs/terminals-list-core.cjs.entry.js +12 -9
  79. package/dist/cjs/{terminals-table-D2XUsf_J.js → terminals-table-BEJ6sF7w.js} +1 -1
  80. package/dist/cjs/{utils-DmZ8Dia3.js → utils-qOon0GWm.js} +3 -0
  81. package/dist/cjs/webcomponents.cjs.js +1 -1
  82. package/dist/collection/api/Analytics.js +3 -0
  83. package/dist/collection/api/Api.js +23 -12
  84. package/dist/collection/api/Business.js +3 -1
  85. package/dist/collection/api/Payment.js +1 -0
  86. package/dist/collection/api/Payout.js +1 -0
  87. package/dist/collection/api/index.js +5 -1
  88. package/dist/collection/api/services/analytics.service.js +1 -1
  89. package/dist/collection/api/services/business.service.js +1 -1
  90. package/dist/collection/api/services/checkout.service.js +1 -1
  91. package/dist/collection/api/services/dispute.service.js +1 -1
  92. package/dist/collection/api/services/insurance.service.js +5 -8
  93. package/dist/collection/api/services/payment.service.js +1 -1
  94. package/dist/collection/api/services/payout.service.js +1 -1
  95. package/dist/collection/api/services/provision.service.js +1 -1
  96. package/dist/collection/api/services/refund.service.js +1 -1
  97. package/dist/collection/api/services/reports.service.js +3 -3
  98. package/dist/collection/api/services/subaccounts.service.js +1 -1
  99. package/dist/collection/api/services/terminal.service.js +1 -1
  100. package/dist/collection/api/services/terminal_orders.service.js +1 -1
  101. package/dist/collection/collection-manifest.json +1 -1
  102. package/dist/collection/components/business-details/additional-questions-details/additional-questions-details.js +3 -4
  103. package/dist/collection/components/business-details/business-details-core.js +1 -2
  104. package/dist/collection/components/business-details/business-details.js +13 -4
  105. package/dist/collection/components/business-details/core-info-details/core-info-details.js +41 -0
  106. package/dist/collection/components/business-details/legal-address-details/legal-address-details.js +3 -3
  107. package/dist/collection/components/business-details/representative-details/representative-details.js +3 -3
  108. package/dist/collection/components/business-forms/business-form/business-form.js +3 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +4 -2
  110. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +4 -4
  111. package/dist/collection/components/business-forms/schemas/schema-validations.js +6 -7
  112. package/dist/collection/components/checkout/billing-form/billing-form.js +6 -5
  113. package/dist/collection/components/checkout/checkout.js +5 -3
  114. package/dist/collection/components/checkout/new-payment-method.js +17 -6
  115. package/dist/collection/components/checkout/payment-method-options.js +4 -5
  116. package/dist/collection/components/checkouts-list/checkouts-list.js +4 -2
  117. package/dist/collection/components/dispute-management/dispute-management.js +3 -2
  118. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +4 -2
  119. package/dist/collection/components/gross-payment-chart/gross-payment-chart.js +3 -1
  120. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +4 -1
  121. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +3 -4
  122. package/dist/collection/components/order-terminals/order-terminals.js +6 -1
  123. package/dist/collection/components/payment-details/payment-details-core.js +9 -8
  124. package/dist/collection/components/payment-details/payment-details.js +2 -1
  125. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +4 -2
  126. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  127. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  128. package/dist/collection/components/payments-list/payments-list.js +4 -2
  129. package/dist/collection/components/payout-details/payout-details-core.js +4 -3
  130. package/dist/collection/components/payout-details/payout-details.js +3 -1
  131. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +4 -2
  132. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  133. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  134. package/dist/collection/components/payouts-list/payouts-list.js +4 -2
  135. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  136. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  137. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +6 -1
  138. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  139. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  140. package/dist/collection/components/terminals-list/terminals-list.js +4 -2
  141. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +9 -5
  142. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  143. package/dist/collection/ui-components/details/details.js +2 -2
  144. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  145. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  146. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  147. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  148. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  149. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  150. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  151. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  152. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  153. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  154. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  155. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  156. package/dist/collection/utils/utils.js +3 -0
  157. package/dist/docs.json +85 -78
  158. package/dist/esm/{ApiNew-KYhsw8Nv.js → Api-cgKcLG0y.js} +1 -1
  159. package/dist/esm/{Business-D6XNzizo.js → Business-BCoP0TAV.js} +3 -1
  160. package/dist/esm/{Checkout-Dfpql997.js → Checkout-B9LrTq63.js} +1 -1
  161. package/dist/esm/{Dispute-7MWRbTXI.js → Dispute-BH0Xfn-F.js} +1 -1
  162. package/dist/esm/{Payment-BADkZFaz.js → Document-DvWsQBM6.js} +58 -3
  163. package/dist/esm/{Refund-DOvd7RJp.js → Refund-zZewCvey.js} +2 -1
  164. package/dist/esm/additional-questions-details_5.entry.js +12 -13
  165. package/dist/esm/bank-account-document-form-inputs_4.entry.js +11 -10
  166. package/dist/esm/bank-account-form_9.entry.js +28 -18
  167. package/dist/esm/{business-additional-questions-schema-DWnZs60Z.js → business-additional-questions-schema-CBUm3D7O.js} +1 -1
  168. package/dist/esm/business-details-core.entry.js +1 -2
  169. package/dist/esm/{business-form-options-Bn05PRR4.js → business-form-options-CgssATyg.js} +1 -1
  170. package/dist/esm/{business-identity-schema-lqdJS3MT.js → business-identity-schema-CntGz8jo.js} +1 -1
  171. package/dist/esm/{business.service-_645Z23O.js → business.service-BWivPbyO.js} +8 -1
  172. package/dist/esm/{check-pkg-version-Dh7UNmHL.js → check-pkg-version-BykGn7tx.js} +12 -2
  173. package/dist/esm/{checkout.service-7FGjq0rO.js → checkout.service-Bh-Q24Cr.js} +8 -1
  174. package/dist/esm/checkouts-list-core.entry.js +11 -8
  175. package/dist/esm/{checkouts-table-DKd0QLys.js → checkouts-table-DcVkD83l.js} +1 -1
  176. package/dist/esm/custom-popper_4.entry.js +4 -4
  177. package/dist/esm/{dispute.service-lJlAFuE6.js → dispute.service-1AYcALSg.js} +8 -1
  178. package/dist/esm/form-alert_5.entry.js +2 -2
  179. package/dist/esm/form-control-checkbox.entry.js +2 -2
  180. package/dist/esm/form-control-date.entry.js +2 -2
  181. package/dist/esm/form-control-file-v2_2.entry.js +3 -3
  182. package/dist/esm/form-control-monetary.entry.js +3 -3
  183. package/dist/esm/form-control-number-masked_2.entry.js +2 -2
  184. package/dist/esm/form-control-number.entry.js +2 -2
  185. package/dist/esm/form-control-radio.entry.js +2 -2
  186. package/dist/esm/{get-business-CIKToQur.js → get-business-GEPTefIj.js} +1 -1
  187. package/dist/esm/{get-payment-details-CXiGG9cO.js → get-payment-details-DXhXxFPr.js} +7 -5
  188. package/dist/esm/{get-subaccounts-DIJtLFsb.js → get-subaccounts-CtHj1UM6.js} +8 -6
  189. package/dist/esm/gross-payment-chart-core.entry.js +1 -1
  190. package/dist/esm/iframe-input.entry.js +4 -4
  191. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +12 -11
  192. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +13 -15
  193. package/dist/esm/justifi-business-details.entry.js +23 -11
  194. package/dist/esm/justifi-business-form.entry.js +19 -18
  195. package/dist/esm/justifi-checkout-core.entry.js +2 -2
  196. package/dist/esm/justifi-checkout.entry.js +18 -8
  197. package/dist/esm/justifi-checkouts-list-filters.entry.js +10 -7
  198. package/dist/esm/justifi-checkouts-list.entry.js +20 -16
  199. package/dist/esm/justifi-details.entry.js +2 -2
  200. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  201. package/dist/esm/justifi-dispute-management.entry.js +16 -8
  202. package/dist/esm/justifi-dispute-notification_3.entry.js +17 -7
  203. package/dist/esm/justifi-gross-payment-chart.entry.js +19 -10
  204. package/dist/esm/justifi-order-terminals.entry.js +20 -16
  205. package/dist/esm/justifi-owner-form_3.entry.js +12 -8
  206. package/dist/esm/justifi-payment-details.entry.js +15 -12
  207. package/dist/esm/justifi-payment-provisioning.entry.js +17 -7
  208. package/dist/esm/justifi-payment-transactions-list.entry.js +18 -14
  209. package/dist/esm/justifi-payments-list-filters.entry.js +3 -3
  210. package/dist/esm/justifi-payments-list.entry.js +18 -14
  211. package/dist/esm/justifi-payout-details.entry.js +16 -12
  212. package/dist/esm/justifi-payout-transactions-list.entry.js +18 -14
  213. package/dist/esm/justifi-payouts-list-filters.entry.js +3 -3
  214. package/dist/esm/justifi-payouts-list.entry.js +19 -15
  215. package/dist/esm/justifi-refund-payment.entry.js +15 -13
  216. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +4 -2
  217. package/dist/esm/justifi-season-interruption-insurance.entry.js +20 -23
  218. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +11 -8
  219. package/dist/esm/justifi-terminal-orders-list.entry.js +20 -13
  220. package/dist/esm/justifi-terminals-list-filters.entry.js +10 -7
  221. package/dist/esm/justifi-terminals-list.entry.js +19 -15
  222. package/dist/esm/justifi-tokenize-payment-method.entry.js +19 -13
  223. package/dist/esm/loader.js +1 -1
  224. package/dist/esm/{package-DLLK41AX.js → package-BjMTOtI1.js} +1 -1
  225. package/dist/esm/payment-details-core.entry.js +10 -10
  226. package/dist/esm/{payment.service-DdCJ1Dc7.js → payment.service-2afJc31y.js} +8 -1
  227. package/dist/esm/payments-list-core.entry.js +12 -9
  228. package/dist/esm/{payments-table-BBf5fV74.js → payments-table-B8316Kqz.js} +1 -1
  229. package/dist/esm/payout-details-core.entry.js +5 -5
  230. package/dist/esm/{payout.service-G1Isezyi.js → payout.service-Bd8Tc7-Q.js} +8 -1
  231. package/dist/esm/payouts-list-core.entry.js +12 -9
  232. package/dist/esm/{payouts-table-DhZEXhGH.js → payouts-table-Ip10eH4Q.js} +1 -1
  233. package/dist/esm/{schema-validations-BsbYeDDR.js → schema-validations-C7D5tPzq.js} +6 -7
  234. package/dist/esm/terminal-orders-list-core.entry.js +12 -9
  235. package/dist/esm/{terminal-orders-table-BlT9YrFD.js → terminal-orders-table-CCJT7oq4.js} +7 -5
  236. package/dist/esm/{terminal.service-aFe-O3PC.js → terminal.service-8kwGru35.js} +8 -1
  237. package/dist/esm/terminals-list-core.entry.js +12 -9
  238. package/dist/esm/{terminals-table-CkWr-6tD.js → terminals-table-cMkKUVff.js} +1 -1
  239. package/dist/esm/{utils-BWcTxbSg.js → utils-DB5fh6Iv.js} +3 -0
  240. package/dist/esm/webcomponents.js +1 -1
  241. package/dist/module/Api.js +23 -11
  242. package/dist/module/Business.js +3 -1
  243. package/dist/module/Checkout.js +22 -2
  244. package/dist/module/Payment.js +59 -3
  245. package/dist/module/Refund.js +2 -1
  246. package/dist/module/additional-questions-details2.js +3 -4
  247. package/dist/module/bank-account-document-inputs.js +2 -1
  248. package/dist/module/billing-form.js +4 -3
  249. package/dist/module/business-additional-questions-form-step.js +1 -1
  250. package/dist/module/business-bank-account-form-step-core.js +2 -2
  251. package/dist/module/business-bank-account-form-step.js +3 -2
  252. package/dist/module/business-core-info-form-step.js +1 -1
  253. package/dist/module/business-details-core2.js +11 -7
  254. package/dist/module/business-documents-on-file2.js +1 -1
  255. package/dist/module/business-owners-form-step.js +1 -1
  256. package/dist/module/business-representative-form-step.js +1 -1
  257. package/dist/module/business-terms-conditions-form-step.js +6 -7
  258. package/dist/module/business.service.js +7 -1
  259. package/dist/module/check-pkg-version.js +10 -1
  260. package/dist/module/checkout-core.js +2 -3
  261. package/dist/module/checkout.service.js +7 -1
  262. package/dist/module/checkouts-list-core2.js +3 -2
  263. package/dist/module/{generic-info-details.d.ts → core-info-details.d.ts} +4 -4
  264. package/dist/module/core-info-details.js +6 -0
  265. package/dist/module/core-info-details2.js +34 -0
  266. package/dist/module/custom-popper2.js +2 -2
  267. package/dist/module/details.js +2 -2
  268. package/dist/module/dispute-management-core.js +1 -1
  269. package/dist/module/dispute-notification.js +1 -1
  270. package/dist/module/dispute-response-actions.js +7 -2
  271. package/dist/module/dispute-response.js +5 -3
  272. package/dist/module/form-control-checkbox2.js +2 -2
  273. package/dist/module/form-control-date2.js +2 -2
  274. package/dist/module/form-control-file-v22.js +1 -1
  275. package/dist/module/form-control-file2.js +2 -2
  276. package/dist/module/form-control-monetary2.js +3 -3
  277. package/dist/module/form-control-number-masked2.js +2 -2
  278. package/dist/module/form-control-number.js +2 -2
  279. package/dist/module/form-control-radio2.js +2 -2
  280. package/dist/module/form-control-text2.js +2 -2
  281. package/dist/module/form-control-textarea2.js +2 -2
  282. package/dist/module/get-business.js +1 -1
  283. package/dist/module/get-payment-details.js +4 -3
  284. package/dist/module/get-payout-csv.js +1 -1
  285. package/dist/module/get-subaccounts.js +5 -4
  286. package/dist/module/gross-payment-chart-core2.js +1 -1
  287. package/dist/module/hidden-input2.js +1 -1
  288. package/dist/module/iframe-input2.js +3 -3
  289. package/dist/module/justifi-business-details.js +24 -11
  290. package/dist/module/justifi-business-form.js +5 -3
  291. package/dist/module/justifi-checkout.js +6 -4
  292. package/dist/module/justifi-checkouts-list-filters.js +3 -2
  293. package/dist/module/justifi-checkouts-list.js +7 -4
  294. package/dist/module/justifi-dispute-management.js +5 -4
  295. package/dist/module/justifi-gross-payment-chart.js +11 -4
  296. package/dist/module/justifi-order-terminals.js +8 -3
  297. package/dist/module/justifi-payment-details.js +3 -2
  298. package/dist/module/justifi-payment-provisioning.js +11 -4
  299. package/dist/module/justifi-payment-transactions-list.js +7 -4
  300. package/dist/module/justifi-payments-list-filters.js +2 -2
  301. package/dist/module/justifi-payments-list.js +8 -5
  302. package/dist/module/justifi-payout-details.js +6 -3
  303. package/dist/module/justifi-payout-transactions-list.js +7 -5
  304. package/dist/module/justifi-payouts-list-filters.js +2 -2
  305. package/dist/module/justifi-payouts-list.js +7 -4
  306. package/dist/module/justifi-refund-payment.js +5 -4
  307. package/dist/module/justifi-season-interruption-insurance.js +10 -14
  308. package/dist/module/justifi-terminal-orders-list-filters.js +4 -3
  309. package/dist/module/justifi-terminal-orders-list.js +10 -4
  310. package/dist/module/justifi-terminals-list-filters.js +3 -2
  311. package/dist/module/justifi-terminals-list.js +7 -4
  312. package/dist/module/justifi-tokenize-payment-method.js +10 -5
  313. package/dist/module/legal-address-details2.js +3 -3
  314. package/dist/module/legal-address-form-step.js +1 -1
  315. package/dist/module/new-payment-method.js +15 -4
  316. package/dist/module/owner-details2.js +1 -1
  317. package/dist/module/package.js +1 -1
  318. package/dist/module/payment-details-core2.js +10 -9
  319. package/dist/module/payment-method-options.js +2 -3
  320. package/dist/module/payment-provisioning-actions.js +1 -1
  321. package/dist/module/payment-provisioning-core.js +1 -1
  322. package/dist/module/payment.service.js +7 -1
  323. package/dist/module/payments-list-core2.js +3 -2
  324. package/dist/module/payout-details-core2.js +5 -4
  325. package/dist/module/payout.service.js +7 -1
  326. package/dist/module/payouts-list-core2.js +4 -3
  327. package/dist/module/representative-details2.js +4 -4
  328. package/dist/module/schema-validations.js +4 -5
  329. package/dist/module/season-interruption-insurance-core.js +6 -3
  330. package/dist/module/sezzle-payment-method.js +1 -1
  331. package/dist/module/terminal-orders-list-core2.js +3 -2
  332. package/dist/module/terminal.service.js +7 -1
  333. package/dist/module/terminals-list-core2.js +3 -2
  334. package/dist/module/utils2.js +4 -1
  335. package/dist/module/utils4.js +1 -1
  336. package/dist/types/api/Api.d.ts +41 -35
  337. package/dist/types/api/Payment.d.ts +2 -0
  338. package/dist/types/api/Payout.d.ts +2 -0
  339. package/dist/types/api/index.d.ts +5 -1
  340. package/dist/types/api/services/business.service.d.ts +1 -5
  341. package/dist/types/api/services/dispute.service.d.ts +1 -2
  342. package/dist/types/api/services/payout.service.d.ts +1 -2
  343. package/dist/types/api/services/provision.service.d.ts +1 -1
  344. package/dist/types/api/services/reports.service.d.ts +1 -2
  345. package/dist/types/api/services/subaccounts.service.d.ts +1 -2
  346. package/dist/types/components/business-details/business-details.d.ts +1 -0
  347. package/dist/types/components/business-details/core-info-details/core-info-details.d.ts +5 -0
  348. package/dist/types/components/business-forms/utils/helpers.d.ts +1 -1
  349. package/dist/types/components/checkout/billing-form/billing-form.d.ts +1 -0
  350. package/dist/types/components/checkout/new-payment-method.d.ts +4 -1
  351. package/dist/types/components/checkout/payment-method-options.d.ts +1 -0
  352. package/dist/types/components/order-terminals/order-terminals.d.ts +1 -0
  353. package/dist/types/components/terminal-orders-list/terminal-orders-list.d.ts +1 -0
  354. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -0
  355. package/dist/types/components.d.ts +21 -21
  356. package/dist/types/utils/utils.d.ts +1 -1
  357. package/dist/webcomponents/p-10d41e17.entry.js +1 -0
  358. package/dist/webcomponents/{p-b2192f8b.entry.js → p-1678e9e3.entry.js} +1 -1
  359. package/dist/webcomponents/p-16d29d0b.entry.js +1 -0
  360. package/dist/webcomponents/{p-8224e3c2.entry.js → p-19b9c96a.entry.js} +1 -1
  361. package/dist/webcomponents/p-22a0b397.entry.js +1 -0
  362. package/dist/webcomponents/p-292da2d4.entry.js +1 -0
  363. package/dist/webcomponents/p-2c7ae3ac.entry.js +1 -0
  364. package/dist/webcomponents/p-2c8d7aa9.entry.js +1 -0
  365. package/dist/webcomponents/p-3368d3d5.entry.js +1 -0
  366. package/dist/webcomponents/p-33b23638.entry.js +1 -0
  367. package/dist/webcomponents/{p-12674a89.entry.js → p-3a979295.entry.js} +1 -1
  368. package/dist/webcomponents/p-40f7e3af.entry.js +1 -0
  369. package/dist/webcomponents/p-4680f931.entry.js +1 -0
  370. package/dist/webcomponents/p-4a070b7a.entry.js +1 -0
  371. package/dist/webcomponents/p-4b51a896.entry.js +1 -0
  372. package/dist/webcomponents/p-4f8b9b99.entry.js +1 -0
  373. package/dist/webcomponents/p-57c89023.entry.js +1 -0
  374. package/dist/webcomponents/p-57fc593a.entry.js +1 -0
  375. package/dist/webcomponents/{p-9c1a79c5.entry.js → p-59abf1de.entry.js} +1 -1
  376. package/dist/webcomponents/p-5d81f36e.entry.js +1 -0
  377. package/dist/webcomponents/p-5df5aa41.entry.js +1 -0
  378. package/dist/webcomponents/p-70c498d4.entry.js +1 -0
  379. package/dist/webcomponents/p-722c5e42.entry.js +1 -0
  380. package/dist/webcomponents/{p-d2dc6f22.entry.js → p-758ce5e5.entry.js} +4 -4
  381. package/dist/webcomponents/p-77896e7b.entry.js +1 -0
  382. package/dist/webcomponents/p-77ac321c.entry.js +1 -0
  383. package/dist/webcomponents/p-7d3cf734.entry.js +1 -0
  384. package/dist/webcomponents/p-8183c2d1.entry.js +1 -0
  385. package/dist/webcomponents/p-8ad67f87.entry.js +1 -0
  386. package/dist/webcomponents/p-8c107267.entry.js +1 -0
  387. package/dist/webcomponents/{p-32345016.entry.js → p-935bbc62.entry.js} +1 -1
  388. package/dist/webcomponents/p-93df56e1.entry.js +1 -0
  389. package/dist/webcomponents/p-99b080d9.entry.js +1 -0
  390. package/dist/webcomponents/{p-7MWRbTXI.js → p-BH0Xfn-F.js} +1 -1
  391. package/dist/webcomponents/p-BR7flk4G.js +1 -0
  392. package/dist/webcomponents/p-BjMTOtI1.js +1 -0
  393. package/dist/webcomponents/p-Bk4gk-f7.js +1 -0
  394. package/dist/webcomponents/{p-BrvbVMVq.js → p-BlJnA265.js} +1 -1
  395. package/dist/webcomponents/{p-CpTwq2jw.js → p-BnE7qgLh.js} +1 -1
  396. package/dist/webcomponents/{p-d-_oUZor.js → p-C1sOJl-_.js} +1 -1
  397. package/dist/webcomponents/p-COcul8pX.js +1 -0
  398. package/dist/webcomponents/p-CaGOSFHG.js +1 -0
  399. package/dist/webcomponents/p-Cm_0sqXz.js +1 -0
  400. package/dist/webcomponents/p-Cs0cIpIm.js +1 -0
  401. package/dist/webcomponents/p-Cx60eQXT.js +1 -0
  402. package/dist/webcomponents/{p-OSmuQKbK.js → p-D2ZiLcDE.js} +1 -1
  403. package/dist/webcomponents/p-DClC2nMO.js +1 -0
  404. package/dist/webcomponents/p-DR89sFne.js +1 -0
  405. package/dist/webcomponents/{p-ByRPlUBS.js → p-DnB1x5JE.js} +1 -1
  406. package/dist/webcomponents/p-DvhDilDP.js +1 -0
  407. package/dist/webcomponents/{p-BjB_yKBJ.js → p-DzFysjCc.js} +1 -1
  408. package/dist/webcomponents/{p-DvHZ2jYI.js → p-HBDBB6lL.js} +1 -1
  409. package/dist/webcomponents/p-_pH3Hg4P.js +1 -0
  410. package/dist/webcomponents/p-a0662195.entry.js +1 -0
  411. package/dist/webcomponents/{p-82515f70.entry.js → p-a136ff22.entry.js} +1 -1
  412. package/dist/webcomponents/p-a33cfcfe.entry.js +1 -0
  413. package/dist/webcomponents/p-a6722f44.entry.js +1 -0
  414. package/dist/webcomponents/{p-9dae8152.entry.js → p-a8119fda.entry.js} +1 -1
  415. package/dist/webcomponents/p-a94952f6.entry.js +1 -0
  416. package/dist/webcomponents/p-abdae97a.entry.js +1 -0
  417. package/dist/webcomponents/p-af09b6ee.entry.js +1 -0
  418. package/dist/webcomponents/p-b0d3aab7.entry.js +1 -0
  419. package/dist/webcomponents/p-b1586aa2.entry.js +1 -0
  420. package/dist/webcomponents/p-c01544c3.entry.js +1 -0
  421. package/dist/webcomponents/p-c3c7be24.entry.js +1 -0
  422. package/dist/webcomponents/p-c5628e09.entry.js +1 -0
  423. package/dist/webcomponents/p-c5b6b76f.entry.js +1 -0
  424. package/dist/webcomponents/p-c6490254.entry.js +1 -0
  425. package/dist/webcomponents/p-ceefc483.entry.js +1 -0
  426. package/dist/webcomponents/p-clwP6zk3.js +1 -0
  427. package/dist/webcomponents/{p-774eee26.entry.js → p-d8b8b17c.entry.js} +1 -1
  428. package/dist/webcomponents/p-e2bfdba5.entry.js +1 -0
  429. package/dist/webcomponents/p-e73fe424.entry.js +1 -0
  430. package/dist/webcomponents/{p-CegkOiUz.js → p-eHhqPyVW.js} +1 -1
  431. package/dist/webcomponents/p-f23d4fdb.entry.js +1 -0
  432. package/dist/webcomponents/p-ffd197c2.entry.js +1 -0
  433. package/dist/webcomponents/p-gZGxqQgQ.js +1 -0
  434. package/dist/webcomponents/p-l3uWWMRW.js +1 -0
  435. package/dist/webcomponents/p-r__elyG4.js +1 -0
  436. package/dist/webcomponents/{p-82kiZkHt.js → p-uSM1EMk-.js} +1 -1
  437. package/dist/webcomponents/{p-IA90llLO.js → p-yH3TC3ZQ.js} +1 -1
  438. package/dist/webcomponents/webcomponents.esm.js +1 -1
  439. package/package.json +1 -1
  440. package/dist/cjs/Api-KMweahmp.js +0 -74
  441. package/dist/cjs/Document-rXGBUaOh.js +0 -58
  442. package/dist/collection/api/ApiNew.js +0 -82
  443. package/dist/collection/components/business-details/generic-info-details/generic-info-details.js +0 -40
  444. package/dist/esm/Api-C9CDE-UM.js +0 -72
  445. package/dist/esm/Document-Ct-uNz2r.js +0 -55
  446. package/dist/module/ApiNew.js +0 -84
  447. package/dist/module/ComponentError.js +0 -21
  448. package/dist/module/Dispute.js +0 -57
  449. package/dist/module/generic-info-details.js +0 -6
  450. package/dist/module/generic-info-details2.js +0 -34
  451. package/dist/types/api/ApiNew.d.ts +0 -61
  452. package/dist/types/components/business-details/generic-info-details/generic-info-details.d.ts +0 -5
  453. package/dist/webcomponents/p-05138b5d.entry.js +0 -1
  454. package/dist/webcomponents/p-0661622e.entry.js +0 -1
  455. package/dist/webcomponents/p-0a4abfba.entry.js +0 -1
  456. package/dist/webcomponents/p-0d73af88.entry.js +0 -1
  457. package/dist/webcomponents/p-107fdd99.entry.js +0 -1
  458. package/dist/webcomponents/p-12ea3a21.entry.js +0 -1
  459. package/dist/webcomponents/p-13a56c04.entry.js +0 -1
  460. package/dist/webcomponents/p-22e9ff07.entry.js +0 -1
  461. package/dist/webcomponents/p-2ce8e7ac.entry.js +0 -1
  462. package/dist/webcomponents/p-357e1077.entry.js +0 -1
  463. package/dist/webcomponents/p-3a691b9a.entry.js +0 -1
  464. package/dist/webcomponents/p-3adEM48l.js +0 -1
  465. package/dist/webcomponents/p-3bb94f41.entry.js +0 -1
  466. package/dist/webcomponents/p-460eae73.entry.js +0 -1
  467. package/dist/webcomponents/p-48d84a6f.entry.js +0 -1
  468. package/dist/webcomponents/p-4a3ee65c.entry.js +0 -1
  469. package/dist/webcomponents/p-58f415f4.entry.js +0 -1
  470. package/dist/webcomponents/p-5ff7f253.entry.js +0 -1
  471. package/dist/webcomponents/p-6334c2bc.entry.js +0 -1
  472. package/dist/webcomponents/p-6780e07e.entry.js +0 -1
  473. package/dist/webcomponents/p-6a3a8a7a.entry.js +0 -1
  474. package/dist/webcomponents/p-76d1a604.entry.js +0 -1
  475. package/dist/webcomponents/p-7c62b59d.entry.js +0 -1
  476. package/dist/webcomponents/p-833576ca.entry.js +0 -1
  477. package/dist/webcomponents/p-83d4ac72.entry.js +0 -1
  478. package/dist/webcomponents/p-AVaenhw9.js +0 -1
  479. package/dist/webcomponents/p-B1ubyLhU.js +0 -1
  480. package/dist/webcomponents/p-BBsCnePk.js +0 -1
  481. package/dist/webcomponents/p-BHbsXXRt.js +0 -1
  482. package/dist/webcomponents/p-Bxs6fi7a.js +0 -1
  483. package/dist/webcomponents/p-C0piBrye.js +0 -1
  484. package/dist/webcomponents/p-CkrVt-dj.js +0 -1
  485. package/dist/webcomponents/p-Ct-uNz2r.js +0 -1
  486. package/dist/webcomponents/p-Cy4aIACq.js +0 -1
  487. package/dist/webcomponents/p-D5Sh88BE.js +0 -1
  488. package/dist/webcomponents/p-DLLK41AX.js +0 -1
  489. package/dist/webcomponents/p-Da_GeglS.js +0 -1
  490. package/dist/webcomponents/p-Dgxn_B6C.js +0 -1
  491. package/dist/webcomponents/p-DmIOVniD.js +0 -1
  492. package/dist/webcomponents/p-DqOTECuf.js +0 -1
  493. package/dist/webcomponents/p-Dz-Ft5b1.js +0 -1
  494. package/dist/webcomponents/p-a5af8397.entry.js +0 -1
  495. package/dist/webcomponents/p-a61f9b3c.entry.js +0 -1
  496. package/dist/webcomponents/p-a6fb7730.entry.js +0 -1
  497. package/dist/webcomponents/p-aTcDcUMZ.js +0 -1
  498. package/dist/webcomponents/p-aa954ce9.entry.js +0 -1
  499. package/dist/webcomponents/p-ac4ac963.entry.js +0 -1
  500. package/dist/webcomponents/p-ae7c6b81.entry.js +0 -1
  501. package/dist/webcomponents/p-ae8c3dab.entry.js +0 -1
  502. package/dist/webcomponents/p-afa54e39.entry.js +0 -1
  503. package/dist/webcomponents/p-b061c21c.entry.js +0 -1
  504. package/dist/webcomponents/p-b4d857b2.entry.js +0 -1
  505. package/dist/webcomponents/p-bb45705e.entry.js +0 -1
  506. package/dist/webcomponents/p-c2f3d7da.entry.js +0 -1
  507. package/dist/webcomponents/p-c7227fc1.entry.js +0 -1
  508. package/dist/webcomponents/p-c8f70818.entry.js +0 -1
  509. package/dist/webcomponents/p-c9288f47.entry.js +0 -1
  510. package/dist/webcomponents/p-d1a440e3.entry.js +0 -1
  511. package/dist/webcomponents/p-dd89c516.entry.js +0 -1
  512. package/dist/webcomponents/p-e39b5ffd.entry.js +0 -1
  513. package/dist/webcomponents/p-e5d35016.entry.js +0 -1
  514. package/dist/webcomponents/p-ebd7753d.entry.js +0 -1
  515. package/dist/webcomponents/p-ec47b7c8.entry.js +0 -1
@@ -1,82 +0,0 @@
1
- import { waitForConfig, configState } from "../components/config-provider/config-state";
2
- import { generateId } from "../utils/utils";
3
- const Api = () => {
4
- async function getAuthorizationHeader(authToken) {
5
- if (!authToken) {
6
- return {
7
- 'Content-Type': 'application/json',
8
- };
9
- }
10
- return {
11
- Authorization: `Bearer ${authToken}`,
12
- 'Idempotency-Key': generateId(),
13
- 'Content-Type': 'application/json',
14
- };
15
- }
16
- async function makeRequest(props) {
17
- const { authToken, endpoint, method, params, body, signal, headers } = props;
18
- await waitForConfig();
19
- const apiOrigin = configState.apiOrigin;
20
- const url = `${apiOrigin}/v1/${endpoint}`;
21
- const requestUrl = params ? `${url}?${new URLSearchParams(params)}` : url;
22
- const defaultHeaders = await getAuthorizationHeader(authToken);
23
- const mergedHeaders = Object.assign(Object.assign({}, defaultHeaders), headers);
24
- const response = await fetch(requestUrl, {
25
- method: method,
26
- headers: mergedHeaders,
27
- body: body,
28
- signal: signal,
29
- });
30
- if (response) {
31
- return response.status === 204 ? {} : response.json();
32
- }
33
- handleError(requestUrl);
34
- }
35
- async function get(props) {
36
- const { authToken, endpoint, params, signal, headers } = props;
37
- return makeRequest({ authToken, endpoint, method: 'GET', params, signal, headers });
38
- }
39
- async function post(props) {
40
- const { authToken, endpoint, body, params, signal, headers } = props;
41
- return makeRequest({
42
- authToken,
43
- endpoint,
44
- method: 'POST',
45
- params,
46
- body: JSON.stringify(body),
47
- signal,
48
- headers,
49
- });
50
- }
51
- async function put(props) {
52
- const { authToken, endpoint, body, params, signal } = props;
53
- return makeRequest({
54
- authToken,
55
- endpoint,
56
- method: 'PUT',
57
- params,
58
- body: JSON.stringify(body),
59
- signal,
60
- });
61
- }
62
- async function patch(props) {
63
- const { authToken, endpoint, body, params, signal } = props;
64
- return makeRequest({
65
- authToken,
66
- endpoint,
67
- method: 'PATCH',
68
- params,
69
- body: JSON.stringify(body),
70
- signal,
71
- });
72
- }
73
- async function destroy(props) {
74
- const { authToken, endpoint, params, signal } = props;
75
- return makeRequest({ authToken, endpoint, method: 'DELETE', params, signal });
76
- }
77
- return { get, post, put, patch, destroy };
78
- };
79
- function handleError(requestUrl) {
80
- console.error(`Error fetching from ${requestUrl}`);
81
- }
82
- export default Api;
@@ -1,40 +0,0 @@
1
- import { Host, h } from "@stencil/core";
2
- import { DetailItem, DetailSectionTitle } from "../../../ui-components/details/utils";
3
- import { snakeCaseToHumanReadable } from "../../../utils/utils";
4
- export class GenericInfoDetails {
5
- render() {
6
- var _a, _b, _c, _d, _e, _f, _g, _h;
7
- if (!this.business)
8
- return null;
9
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Generic Info Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: (_a = this.business) === null || _a === void 0 ? void 0 : _a.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: (_b = this.business) === null || _b === void 0 ? void 0 : _b.doing_business_as }), h(DetailItem, { title: "Business Classification", value: snakeCaseToHumanReadable((_c = this.business) === null || _c === void 0 ? void 0 : _c.classification) }), h(DetailItem, { title: "Industry", value: (_d = this.business) === null || _d === void 0 ? void 0 : _d.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: (_e = this.business) === null || _e === void 0 ? void 0 : _e.tax_id }), h(DetailItem, { title: "Website URL", value: (_f = this.business) === null || _f === void 0 ? void 0 : _f.website_url }), h(DetailItem, { title: "Email Address", value: (_g = this.business) === null || _g === void 0 ? void 0 : _g.email }), h(DetailItem, { title: "Phone Number", value: (_h = this.business) === null || _h === void 0 ? void 0 : _h.phone }))))));
10
- }
11
- static get is() { return "generic-info-details"; }
12
- static get properties() {
13
- return {
14
- "business": {
15
- "type": "unknown",
16
- "attribute": "business",
17
- "mutable": false,
18
- "complexType": {
19
- "original": "IBusiness",
20
- "resolved": "IBusiness",
21
- "references": {
22
- "IBusiness": {
23
- "location": "import",
24
- "path": "../../../api/Business",
25
- "id": "src/api/Business.ts::IBusiness"
26
- }
27
- }
28
- },
29
- "required": false,
30
- "optional": false,
31
- "docs": {
32
- "tags": [],
33
- "text": ""
34
- },
35
- "getter": false,
36
- "setter": false
37
- }
38
- };
39
- }
40
- }
@@ -1,72 +0,0 @@
1
- import { g as generateId } from './utils-BWcTxbSg.js';
2
-
3
- const Api = ({ authToken, apiOrigin }) => {
4
- async function getAuthorizationHeader() {
5
- if (!authToken) {
6
- return {
7
- 'Content-Type': 'application/json',
8
- };
9
- }
10
- return {
11
- Authorization: `Bearer ${authToken}`,
12
- 'Idempotency-Key': generateId(),
13
- 'Content-Type': 'application/json',
14
- };
15
- }
16
- async function makeRequest({ endpoint, method, params, body, signal, headers, }) {
17
- const url = `${apiOrigin}/v1/${endpoint}`;
18
- const requestUrl = params ? `${url}?${new URLSearchParams(params)}` : url;
19
- const defaultHeaders = await getAuthorizationHeader();
20
- const mergedHeaders = Object.assign(Object.assign({}, defaultHeaders), headers);
21
- const response = await fetch(requestUrl, {
22
- method: method,
23
- headers: mergedHeaders,
24
- body: body,
25
- signal: signal,
26
- });
27
- if (response) {
28
- return response.status === 204 ? {} : response.json();
29
- }
30
- handleError(requestUrl);
31
- }
32
- async function get({ endpoint, params, signal, headers, }) {
33
- return makeRequest({ endpoint, method: 'GET', params, signal, headers });
34
- }
35
- async function post({ endpoint, body, params, signal, headers, }) {
36
- return makeRequest({
37
- endpoint,
38
- method: 'POST',
39
- params,
40
- body: JSON.stringify(body),
41
- signal,
42
- headers,
43
- });
44
- }
45
- async function put({ endpoint, body, params, signal, }) {
46
- return makeRequest({
47
- endpoint,
48
- method: 'PUT',
49
- params,
50
- body: JSON.stringify(body),
51
- signal,
52
- });
53
- }
54
- async function patch({ endpoint, body, params, signal, }) {
55
- return makeRequest({
56
- endpoint,
57
- method: 'PATCH',
58
- params,
59
- body: JSON.stringify(body),
60
- signal,
61
- });
62
- }
63
- async function destroy({ endpoint, params, signal, }) {
64
- return makeRequest({ endpoint, method: 'DELETE', params, signal });
65
- }
66
- return { get, post, put, patch, destroy };
67
- };
68
- function handleError(requestUrl) {
69
- console.error(`Error fetching from ${requestUrl}`);
70
- }
71
-
72
- export { Api as A };
@@ -1,55 +0,0 @@
1
- var EntityDocumentType;
2
- (function (EntityDocumentType) {
3
- EntityDocumentType["voidedCheck"] = "voided_check";
4
- EntityDocumentType["balanceSheet"] = "balance_sheet";
5
- EntityDocumentType["bankStatement"] = "bank_statement";
6
- EntityDocumentType["governmentId"] = "government_id";
7
- EntityDocumentType["profitAndLossStatement"] = "profit_and_loss_statement";
8
- EntityDocumentType["taxReturn"] = "tax_return";
9
- EntityDocumentType["other"] = "other";
10
- })(EntityDocumentType || (EntityDocumentType = {}));
11
- var EntityDocumentStatus;
12
- (function (EntityDocumentStatus) {
13
- EntityDocumentStatus["pending"] = "pending";
14
- EntityDocumentStatus["uploaded"] = "uploaded";
15
- EntityDocumentStatus["canceled"] = "canceled";
16
- EntityDocumentStatus["needed"] = "needed";
17
- })(EntityDocumentStatus || (EntityDocumentStatus = {}));
18
- class EntityDocumentStorage {
19
- constructor() {
20
- this.voided_check = [];
21
- this.balance_sheet = [];
22
- this.bank_statement = [];
23
- this.government_id = [];
24
- this.profit_and_loss_statement = [];
25
- this.tax_return = [];
26
- this.other = [];
27
- }
28
- }
29
- class EntityDocument {
30
- constructor(fileData, business_id) {
31
- this.file = fileData.file;
32
- this.fileString = this.getFileString();
33
- this.document_type = fileData.document_type;
34
- this.presigned_url = null;
35
- this.record_data = {
36
- business_id: business_id,
37
- document_type: this.document_type,
38
- file_name: this.file.name,
39
- file_type: this.file.type,
40
- };
41
- }
42
- getFileString() {
43
- let reader = new FileReader();
44
- reader.onload = (e) => {
45
- this.fileString = e.target.result;
46
- };
47
- reader.readAsDataURL(this.file);
48
- return this.fileString;
49
- }
50
- setPresignedUrl(url) {
51
- this.presigned_url = url;
52
- }
53
- }
54
-
55
- export { EntityDocumentType as E, EntityDocumentStorage as a, EntityDocument as b };
@@ -1,84 +0,0 @@
1
- import { w as waitForConfig, c as configState } from './config-state.js';
2
- import { g as generateId } from './utils2.js';
3
-
4
- const Api = () => {
5
- async function getAuthorizationHeader(authToken) {
6
- if (!authToken) {
7
- return {
8
- 'Content-Type': 'application/json',
9
- };
10
- }
11
- return {
12
- Authorization: `Bearer ${authToken}`,
13
- 'Idempotency-Key': generateId(),
14
- 'Content-Type': 'application/json',
15
- };
16
- }
17
- async function makeRequest(props) {
18
- const { authToken, endpoint, method, params, body, signal, headers } = props;
19
- await waitForConfig();
20
- const apiOrigin = configState.apiOrigin;
21
- const url = `${apiOrigin}/v1/${endpoint}`;
22
- const requestUrl = params ? `${url}?${new URLSearchParams(params)}` : url;
23
- const defaultHeaders = await getAuthorizationHeader(authToken);
24
- const mergedHeaders = Object.assign(Object.assign({}, defaultHeaders), headers);
25
- const response = await fetch(requestUrl, {
26
- method: method,
27
- headers: mergedHeaders,
28
- body: body,
29
- signal: signal,
30
- });
31
- if (response) {
32
- return response.status === 204 ? {} : response.json();
33
- }
34
- handleError(requestUrl);
35
- }
36
- async function get(props) {
37
- const { authToken, endpoint, params, signal, headers } = props;
38
- return makeRequest({ authToken, endpoint, method: 'GET', params, signal, headers });
39
- }
40
- async function post(props) {
41
- const { authToken, endpoint, body, params, signal, headers } = props;
42
- return makeRequest({
43
- authToken,
44
- endpoint,
45
- method: 'POST',
46
- params,
47
- body: JSON.stringify(body),
48
- signal,
49
- headers,
50
- });
51
- }
52
- async function put(props) {
53
- const { authToken, endpoint, body, params, signal } = props;
54
- return makeRequest({
55
- authToken,
56
- endpoint,
57
- method: 'PUT',
58
- params,
59
- body: JSON.stringify(body),
60
- signal,
61
- });
62
- }
63
- async function patch(props) {
64
- const { authToken, endpoint, body, params, signal } = props;
65
- return makeRequest({
66
- authToken,
67
- endpoint,
68
- method: 'PATCH',
69
- params,
70
- body: JSON.stringify(body),
71
- signal,
72
- });
73
- }
74
- async function destroy(props) {
75
- const { authToken, endpoint, params, signal } = props;
76
- return makeRequest({ authToken, endpoint, method: 'DELETE', params, signal });
77
- }
78
- return { get, post, put, patch, destroy };
79
- };
80
- function handleError(requestUrl) {
81
- console.error(`Error fetching from ${requestUrl}`);
82
- }
83
-
84
- export { Api as A };
@@ -1,21 +0,0 @@
1
- var ComponentErrorCodes;
2
- (function (ComponentErrorCodes) {
3
- ComponentErrorCodes["MISSING_PROPS"] = "missing-props";
4
- ComponentErrorCodes["FETCH_ERROR"] = "fetch-error";
5
- ComponentErrorCodes["PATCH_ERROR"] = "patch-error";
6
- ComponentErrorCodes["POST_ERROR"] = "post-error";
7
- ComponentErrorCodes["UNKNOWN_ERROR"] = "unknown-error";
8
- ComponentErrorCodes["TOKENIZE_ERROR"] = "tokenize-error";
9
- ComponentErrorCodes["NOT_AUTHENTICATED"] = "not-authenticated";
10
- ComponentErrorCodes["INVALID_PARAMETER"] = "invalid-parameter";
11
- ComponentErrorCodes["PROVISIONING_REQUESTED"] = "provisioning-already-requested";
12
- ComponentErrorCodes["INVALID_REFUND_AMOUNT"] = "invalid-refund-amount";
13
- })(ComponentErrorCodes || (ComponentErrorCodes = {}));
14
- var ComponentErrorSeverity;
15
- (function (ComponentErrorSeverity) {
16
- ComponentErrorSeverity["INFO"] = "info";
17
- ComponentErrorSeverity["WARNING"] = "warning";
18
- ComponentErrorSeverity["ERROR"] = "error";
19
- })(ComponentErrorSeverity || (ComponentErrorSeverity = {}));
20
-
21
- export { ComponentErrorSeverity as C, ComponentErrorCodes as a };
@@ -1,57 +0,0 @@
1
- var DisputeStatus;
2
- (function (DisputeStatus) {
3
- DisputeStatus["won"] = "won";
4
- DisputeStatus["lost"] = "lost";
5
- DisputeStatus["underReview"] = "under_review";
6
- DisputeStatus["needsResponse"] = "needs_response";
7
- })(DisputeStatus || (DisputeStatus = {}));
8
- class Dispute {
9
- get needsResponse() {
10
- return this.status == DisputeStatus.needsResponse;
11
- }
12
- get underReview() {
13
- return this.status == DisputeStatus.underReview;
14
- }
15
- get won() {
16
- return this.status == DisputeStatus.won;
17
- }
18
- get lost() {
19
- return this.status == DisputeStatus.lost;
20
- }
21
- constructor(dispute) {
22
- this.id = dispute.id;
23
- this.amount = dispute.amount;
24
- this.currency = dispute.currency;
25
- this.payment_id = dispute.payment_id;
26
- this.reason = dispute.reason;
27
- this.due_date = dispute.due_date;
28
- this.status = dispute.status;
29
- this.metadata = dispute.metadata;
30
- this.created_at = dispute.created_at;
31
- this.updated_at = dispute.updated_at;
32
- this.dispute_response = dispute.dispute_response ? new DisputeResponse(dispute.dispute_response) : undefined;
33
- }
34
- }
35
- class DisputeResponse {
36
- constructor(response) {
37
- this.additional_statement = response.additional_statement;
38
- this.cancellation_policy_disclosure = response.cancellation_policy_disclosure;
39
- this.cancellation_rebuttal = response.cancellation_rebuttal;
40
- this.customer_billing_address = response.customer_billing_address;
41
- this.customer_email_address = response.customer_email_address;
42
- this.customer_name = response.customer_name;
43
- this.customer_purchase_ip_address = response.customer_purchase_ip_address;
44
- this.duplicate_charge_explanation = response.duplicate_charge_explanation;
45
- this.product_description = response.product_description;
46
- this.refund_policy_disclosure = response.refund_policy_disclosure;
47
- this.refund_refusal_explanation = response.refund_refusal_explanation;
48
- this.service_date = response.service_date;
49
- this.shipping_address = response.shipping_address;
50
- this.shipping_carrier = response.shipping_carrier;
51
- this.shipping_date = response.shipping_date;
52
- this.shipping_tracking_number = response.shipping_tracking_number;
53
- this.duplicate_charge_original_payment_id = response.duplicate_charge_original_payment_id;
54
- }
55
- }
56
-
57
- export { DisputeStatus as D, Dispute as a };
@@ -1,6 +0,0 @@
1
- import { G as GenericInfoDetails$1, d as defineCustomElement$1 } from './generic-info-details2.js';
2
-
3
- const GenericInfoDetails = GenericInfoDetails$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { GenericInfoDetails, defineCustomElement };
@@ -1,34 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { D as DetailSectionTitle, a as DetailItem } from './utils.js';
3
- import { s as snakeCaseToHumanReadable } from './utils2.js';
4
-
5
- const GenericInfoDetails = /*@__PURE__*/ proxyCustomElement(class GenericInfoDetails extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- }
10
- render() {
11
- var _a, _b, _c, _d, _e, _f, _g, _h;
12
- if (!this.business)
13
- return null;
14
- return (h(Host, null, h(DetailSectionTitle, { sectionTitle: "Business Generic Info Details" }), h("div", { class: "d-table gap-2 w-100 mt-3" }, h("div", { class: "row gy-3" }, h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Legal Name", value: (_a = this.business) === null || _a === void 0 ? void 0 : _a.legal_name }), h(DetailItem, { title: "Doing Business As (DBA)", value: (_b = this.business) === null || _b === void 0 ? void 0 : _b.doing_business_as }), h(DetailItem, { title: "Business Classification", value: snakeCaseToHumanReadable((_c = this.business) === null || _c === void 0 ? void 0 : _c.classification) }), h(DetailItem, { title: "Industry", value: (_d = this.business) === null || _d === void 0 ? void 0 : _d.industry })), h("div", { class: "col-12 col-md-6" }, h(DetailItem, { title: "Tax ID", value: (_e = this.business) === null || _e === void 0 ? void 0 : _e.tax_id }), h(DetailItem, { title: "Website URL", value: (_f = this.business) === null || _f === void 0 ? void 0 : _f.website_url }), h(DetailItem, { title: "Email Address", value: (_g = this.business) === null || _g === void 0 ? void 0 : _g.email }), h(DetailItem, { title: "Phone Number", value: (_h = this.business) === null || _h === void 0 ? void 0 : _h.phone }))))));
15
- }
16
- }, [0, "generic-info-details", {
17
- "business": [16]
18
- }]);
19
- function defineCustomElement() {
20
- if (typeof customElements === "undefined") {
21
- return;
22
- }
23
- const components = ["generic-info-details"];
24
- components.forEach(tagName => { switch (tagName) {
25
- case "generic-info-details":
26
- if (!customElements.get(tagName)) {
27
- customElements.define(tagName, GenericInfoDetails);
28
- }
29
- break;
30
- } });
31
- }
32
- defineCustomElement();
33
-
34
- export { GenericInfoDetails as G, defineCustomElement as d };
@@ -1,61 +0,0 @@
1
- import { PagingInfo } from './Pagination';
2
- export interface IApiResponse<T> {
3
- data: T;
4
- error?: IErrorObject | IServerError;
5
- page_info?: PagingInfo;
6
- errors?: string[];
7
- id: number | string;
8
- type: string;
9
- }
10
- export type IServerError = string;
11
- export interface IErrorObject {
12
- message: string;
13
- code: string;
14
- param?: string;
15
- }
16
- export interface IApiResponseCollection<T> extends IApiResponse<T> {
17
- page_info: PagingInfo;
18
- }
19
- interface GetProps {
20
- authToken: string;
21
- endpoint: string;
22
- params?: any;
23
- signal?: AbortSignal;
24
- headers?: HeadersInit;
25
- }
26
- interface PostProps {
27
- authToken?: string;
28
- endpoint: string;
29
- body?: any;
30
- params?: any;
31
- signal?: AbortSignal;
32
- headers?: HeadersInit;
33
- }
34
- interface PutProps {
35
- authToken: string;
36
- endpoint: string;
37
- body?: any;
38
- params?: any;
39
- signal?: AbortSignal;
40
- }
41
- interface PatchProps {
42
- authToken: string;
43
- endpoint: string;
44
- body?: any;
45
- params?: any;
46
- signal?: AbortSignal;
47
- }
48
- interface DestroyProps {
49
- authToken: string;
50
- endpoint: string;
51
- params?: any;
52
- signal?: AbortSignal;
53
- }
54
- declare const Api: () => {
55
- get: (props: GetProps) => Promise<any>;
56
- post: (props: PostProps) => Promise<any>;
57
- put: (props: PutProps) => Promise<any>;
58
- patch: (props: PatchProps) => Promise<any>;
59
- destroy: (props: DestroyProps) => Promise<any>;
60
- };
61
- export default Api;
@@ -1,5 +0,0 @@
1
- import { IBusiness } from '../../../api/Business';
2
- export declare class GenericInfoDetails {
3
- business: IBusiness;
4
- render(): any;
5
- }
@@ -1 +0,0 @@
1
- import{r as e,c as t,h as s}from"./p-D6FDxSyt.js";import{c as i,d as r,e as a}from"./p-BTS3E50C.js";import{I as o}from"./p-DqOTECuf.js";import{F as d}from"./p-DVnVdicA.js";import{O as c}from"./p-BrvbVMVq.js";import{i as h}from"./p-BHbsXXRt.js";import{B as n}from"./p-cNABKY0P.js";import{U as l}from"./p-BrLVc_85.js";import"./p-CZfYo5-1.js";import{B as f}from"./p-XYgDHrVL.js";import{S as b,P as m}from"./p-B-iV5cYd.js";import{u,a as p,b as y}from"./p-1ydcg9ti.js";import"./p-SdntD1xf.js";import"./p-C5RuuShs.js";import"./p-OSmuQKbK.js";import"./p-D4Mv5jCp.js";import"./p-Cd06j2SL.js";import"./p-CpTwq2jw.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-Cy4aIACq.js";import"./p-IA90llLO.js";import"./p-Ct-uNz2r.js";const k=class{constructor(s){e(this,s),this.errorEvent=t(this,"error-event")}async validate(){return this.coreComponent.validate()}async submit(){return this.coreComponent.submit()}async validateAndSubmit({onSuccess:e}){this.coreComponent.validateAndSubmit({onSuccess:e})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&(this.getOwner=i({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.patchOwner=r({authToken:this.authToken,identityId:this.ownerId,service:new o}),this.postOwner=a({authToken:this.authToken,service:new o}))}render(){return s("owner-form-core",{key:"253fc2c5cf1d8c3d18cbcc43569c50a1dd4394f4",ownerId:this.ownerId,businessId:this.businessId,getOwner:this.getOwner,patchOwner:this.patchOwner,postOwner:this.postOwner,allowOptionalFields:this.allowOptionalFields,removeOwner:this.removeOwner,newFormOpen:this.newFormOpen,ownersLength:this.ownersLength,ref:e=>this.coreComponent=e})}},j=class{loadingWatcher(){this.formLoading.emit(this.isLoading)}constructor(s){e(this,s),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.formLoading=t(this,"formLoading"),this.ownerSubmitted=t(this,"ownerSubmitted"),this.isLoading=!1,this.errors={},this.owner={},this.getData=()=>{this.isLoading=!0,this.getOwner({onSuccess:e=>{this.instantiateOwner(e.data)},onError:({error:e,code:t,severity:s})=>{this.errorEvent.emit({message:e,errorCode:t,severity:s})},final:()=>this.isLoading=!1})},this.sendData=()=>(this.isLoading=!0,new Promise((e=>{this.ownerId?this.patchOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1}):this.postOwner({payload:this.payload,onSuccess:t=>{this.ownerSubmitted.emit({id:t.data.id}),this.instantiateOwner(t.data),e(!0)},onError:({error:t,code:s,severity:i})=>{this.errorEvent.emit({message:t,errorCode:s,severity:i}),e(!1)},final:()=>this.isLoading=!1})}))),this.instantiateOwner=async e=>{this.owner=Object.assign({},new c(e)),await this.formController.setInitialValues(this.owner)},this.handleAddOwner=()=>{this.clickEvent.emit({name:this.ownerId?f.updateOwner:f.addOwner})},this.handleRemoveOwner=()=>{this.removeOwner(this.ownerId),this.clickEvent.emit({name:f.removeOwner})},this.validate=this.validate.bind(this),this.submit=this.submit.bind(this),this.validateAndSubmit=this.validateAndSubmit.bind(this)}async returnOwnerData(){return this.ownerId}async validate(){return this.formController.validate()}async submit(){if(await this.validate())return this.sendData()}async validateAndSubmit(e){e.preventDefault(),await this.validate()&&this.submit()}get payload(){let e=new c(this.formController.values.getValue()).payload;return this.ownerId?e:Object.assign(Object.assign({},e),{business_id:this.businessId})}get formTitle(){return this.ownerId?"Edit Business Owner":"Add Business Owner"}get submitButtonText(){return this.ownerId?"Update":"Add"}get showRemoveButton(){return!(this.ownersLength<=1)&&(!(this.ownerId||!this.newFormOpen)||!(!this.ownerId||this.newFormOpen)||void 0)}componentWillLoad(){this.formController=new d(h("owner",this.allowOptionalFields)),this.ownerId?this.getData():this.instantiateOwner({})}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e)))}render(){return s("form",{key:"cf3b084a99c3cfc77af24f09feeda0468c2e6956",onSubmit:this.validateAndSubmit},s("fieldset",{key:"3c78499a7df3496cd44416b96fe5fef44cc4d393"},s("legend",{key:"5aee34b86e10d914964de3f62408b1f1e7899479",class:"fw-semibold fs-5",part:l},this.formTitle),s("br",{key:"4ca0d4c213f166f7ea10c0bfe276673ff077e1ba"}),s("div",{key:"95e485006a1111418ed409e7138c7f3098b9517c",class:"row gy-3"},s("owner-form-inputs",{key:"1df9b40c91223253394c50312950b6b3d42906ff",ownerDefaultValue:this.formController.getInitialValues(),errors:this.errors,formController:this.formController}),s("div",{key:"f1e2adc3111366c43a9a0d3cbed9e059916320f8",class:"d-flex gap-2 justify-content-start"},s(n,{key:"ea19095c86d12cdabd48ad8618213aa06635b80f",variant:"secondary",type:"button",onClick:this.handleRemoveOwner,hidden:!this.showRemoveButton},"Remove"),s(n,{key:"cb60a69f0e3252bb7623945610c5282bedfffe32",variant:"primary",type:"submit",onClick:this.handleAddOwner,disabled:this.isLoading},this.submitButtonText))),s("hr",{key:"db9fb6f130a114e82de0fb806ca1d70ac254f032"})))}static get watchers(){return{isLoading:["loadingWatcher"]}}},w=class{constructor(t){e(this,t),this.inputHandler=(e,t)=>{u(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{p(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){return s("div",{key:"97911ef690cb7932c0e382cfa79fa3333536055c",class:"row gy-3"},s("div",{key:"0f15a832bcde62a50fb791e008dcd7da68c8da6b",class:"col-12 col-md-8"},s("form-control-text",{key:"fdc50a224e7e17d2923d6eb1fb274103e0d55710",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"c4be24670525f2b90fd6de5a0035241190dadd09",class:"col-12 col-md-4"},s("form-control-text",{key:"8752eb6ea1d24189fd1a4d799145b5bbdc0413f2",name:"title",label:"Title",defaultValue:this.ownerDefaultValue.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),s("div",{key:"9d19f00bbd407ca55455947d84183530920d799c",class:"col-12 col-md-6"},s("form-control-text",{key:"10ffe5b44086f623fb9f9d27f4a72cd251589bd0",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"7c32fc26abbc0bc16b0a50d8bbfb47c121c7c62d",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"e6b63872de5bd5cc98d61c8e6ebeb2a3f8443fb1",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})),s("div",{key:"2e7eded46b1162d9ecf8c3badc869e98a710abee",class:"col-12 col-md-4"},s("form-control-date",{key:"2c4b8c126d7505dadb3fe06b3b5cab5e83b91c23",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>y(e,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"dd96fdddddfb082fc0ce670f673decc97956c242",class:"col-12 col-md-8"},s("form-control-number-masked",{key:"640cc2e749dc64879d8211c3340b7c273d3cb817",name:"identification_number",label:"SSN",defaultValue:this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:b,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),s("div",{key:"681b2898183d73559150b5debef39901c4679eba",class:"col-12"},s("justifi-identity-address-form",{key:"e2de39be536c0854592a5132a6a9ac9d761a0f9b",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate})))}};export{k as justifi_owner_form,j as owner_form_core,w as owner_form_inputs}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-D6FDxSyt.js";import{T as i,a,b as r,c as h,d as o,e as n,f as c,g as p,h as d,i as f,j as m,k as b,l as j}from"./p-n2YROtpe.js";import{T as u}from"./p-CZfYo5-1.js";import"./p-CpTwq2jw.js";import"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import{p as g}from"./p-CLHwhyvu.js";import"./p-Bxs6fi7a.js";import"./p-AVaenhw9.js";import"./p-Ct-uNz2r.js";import{t as l,a as y}from"./p-aTcDcUMZ.js";import{o as k,g as C}from"./p-6n7viK-J.js";import"./p-BrLVc_85.js";import"./p-CQdeVKF8.js";import"./p-BFTU3MAI.js";import"./p-7MWRbTXI.js";import"./p-D5XSsLKb.js";import"./p-Cd06j2SL.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminalOrders=[],this.loading=!0,this.paging=g,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:u.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:u.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:u.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new i(this.terminalOrders,this.columns,l,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"762e52792b40b09a4c57d19d26b5320e704f713a"},e(a,{key:"1562301b758030aba8fe9581c62adf9b74275bcd"},e(r,{key:"1dd7c7609faf3fb39946f05d1751611f63538b8d"},e(h,{key:"d37d994e00a6bbe8b93b562a93f123c67a3341c9"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"bd8ec9049642251c7f51c0525a07ef88a9a51335"},e(n,{key:"a2ff1894e1300d39ee84f190d531339e6086b68c",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(c,{key:"7e7df0ac99415c5d550479c274bd8bb88d8f5b58",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(p,{key:"954a6ee4143461c71624c39d09b41575e39f92da",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"d8d06e88358f2c07edd2abcb568c99705a3b384d"},e(m,{key:"c02b4ab02901238f7e1e71178baa4f3f0ff0ee7e"},e(b,{key:"f29db1ea1799cac1e459495e9029b9c12bfd559f",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"5a196810a73ffad57a2ee6556c6e2ad66f1079b0",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as terminal_orders_list_core}
@@ -1 +0,0 @@
1
- import{r as s,c as i,h as t}from"./p-D6FDxSyt.js";import{c as e,J as o}from"./p-3adEM48l.js";import{C as r,a as n}from"./p-SdntD1xf.js";import{m as p,a}from"./p-BTS3E50C.js";import{B as h}from"./p-DqOTECuf.js";import{A as d}from"./p-OSmuQKbK.js";import"./p-DLLK41AX.js";import"./p-C5RuuShs.js";import"./p-D4Mv5jCp.js";import"./p-Cd06j2SL.js";import"./p-CpTwq2jw.js";import"./p-BFTU3MAI.js";const m=d();class u{async postProvisioning(s,i,t){return m.post({endpoint:"entities/provisioning",body:{business_id:i,product_category:t},authToken:s})}}const c=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.allowOptionalFields=!1,this.formTitle="Business Information"}propChanged(){this.initializeApi()}componentWillLoad(){e(),this.analytics=new o(this),this.initializeApi()}disconnectedCallback(){this.analytics.cleanup()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=p({authToken:this.authToken,businessId:this.businessId,service:new h}),this.postProvisioning=a({authToken:this.authToken,businessId:this.businessId,product:"payment",service:new u})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:n.MISSING_PROPS,severity:r.ERROR})}render(){return t("justifi-payment-provisioning-core",{key:"ab584a720ecfc7ec4e68082fefadeb11fd2884d2",businessId:this.businessId,authToken:this.authToken,allowOptionalFields:this.allowOptionalFields,formTitle:this.formTitle,getBusiness:this.getBusiness,postProvisioning:this.postProvisioning})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}};export{c as justifi_payment_provisioning}
@@ -1 +0,0 @@
1
- import{h as e,r as a,c as t}from"./p-D6FDxSyt.js";import{d as s,b as d,s as i}from"./p-CpTwq2jw.js";import{M as c}from"./p-C0WFYqwq.js";import{a as b,b as f,D as l,c as h,C as r,E as o}from"./p-l3o3Ndc0.js";import{S as y}from"./p-DuYlA4lj.js";import"./p-CZfYo5-1.js";import{S as n}from"./p-U30-0DaA.js";import"./p-BFTU3MAI.js";import"./p-D5XSsLKb.js";import"./p-BrLVc_85.js";const p=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(n,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(n,{width:"70%"})),e("div",{class:"col-12"},e(n,{width:"40%"})),e("div",{class:"col-12"},e(n,{width:"40%"})),e("div",{class:"col-12"},e(n,{width:"100%"})),e("div",{class:"col-12"},e(n,{width:"80%"}))),k=class{constructor(e){a(this,e),this.errorEvent=t(this,"error-event"),this.loading=!0}componentWillLoad(){this.getPaymentDetails&&this.fetchData()}updateOnPropChange(){this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.errorMessage=null},onError:({error:e,code:a,severity:t})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:a,message:e,severity:t})},final:()=>{this.loading=!1}})}render(){return e(y,{key:"00ba42c81617d9593246956e97b6b962817cc167"},this.loading&&e(p,{key:"1c0fee27dec985cad2cc7d41f61d137246ffcc3e"}),!this.loading&&this.errorMessage&&o(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"e264b42451a8966a4e6313486bc9d1ccaea0141b","error-message":this.errorMessage},e(b,{key:"af96a0f502cce1be451160e8ac2f92074b0ee168",slot:"head-info",badge:c(this.payment.status),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(f,{key:"94f876bd62dd9ccaa6f63f25326390b03c9938d5",classes:"border-1 border-end",title:"Updated At",value:`${s(this.payment.updated_at)} ${d(this.payment.updated_at)}`}),e(f,{key:"96c629e2d1a99eca277ec7337cb3e00e88c1b31e",classes:"border-1 border-end",title:"Created At",value:`${s(this.payment.created_at)} ${d(this.payment.created_at)}`}),e(f,{key:"0d18abfae7e9fd0a692ac54640194033a5c36f41",title:"ID",value:this.payment.id})),e("div",{key:"7f9e14d7e0312ba1136cf5734754bf0af6c19774",slot:"detail-sections"},e(l,{key:"a11b47796dada4f9678487edf19dcd7928b08e94",sectionTitle:"Details"}),e("div",{key:"fa8a895e037adbbcf5856aae4f40306b789a90c8",class:"d-table gap-2 w-100"},e(h,{key:"84a8fa2b0dc39aa331501e00a8eb9bf93e8bb8c2",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(h,{key:"632fa4e703aabc7b606b939e95d1633a43fedfaa",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(h,{key:"bc37a80a15fea95932d04676f2c5a8a57276958b",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(h,{key:"588a76203897cd31b9d0c1c8de1b7b9b0b107421",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(h,{key:"c0fea24390417c591327c76568829cbf9f9147a9",title:"Status",value:c(this.payment.status)}),e(h,{key:"e332a896b55bb58f3fd26ee892556acb08ced52d",title:"Payment ID",value:this.payment.id}),e(h,{key:"844fdb40ed55ca0e2f848e7325dcb64f134fa5d6",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(h,{key:"dce95b409eb465e8d6373ad80b7b14a0eecc5aca",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(h,{key:"bed2051bd720b1a790ff59b50bee7f01e3fb222a",title:"Description",value:this.payment.description})),this.payment.payment_method.card&&[e(l,{key:"3283ea5236fab75a32fe569ad29d9b70c62b49a0",sectionTitle:"Payment Method"}),e("div",{key:"b9a0d9cfca791e3afb4a2e1e73b036319191d485",class:"d-table gap-2 w-100"},e(h,{key:"15da44c97292af05a14b3f7840b07bdcf34ae953",title:"ID",value:this.payment.payment_method.card.id}),e(h,{key:"d8a4a431c3e3ab0d14be8992521ee89b5e126a04",title:"Payment Type",value:"Card"}),e(h,{key:"1a8ed38a316ea943761d2dd7fda58490180ef3bc",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(h,{key:"db695d1b89896a7a73c83fd8a7d5837ad1e69909",title:"Brand",value:i(this.payment.payment_method.card.brand)}),e(h,{key:"d94879fb30ac0a05a16ce9ddb199fb5cb003a8c1",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(l,{key:"84dae904db3c22ff5ed03abaeb57d3b0736d1fbb",sectionTitle:"Payment Method"}),e("div",{key:"400801019a53feec0478273866fffa5683b408aa",class:"d-table gap-2 w-100"},e(h,{key:"ca7bb52e4275659b18daacfa6367de2f32617e70",title:"ID",value:this.payment.payment_method.bank_account.id}),e(h,{key:"4885d2b5f05b6a713d61074271c7a95b23604dca",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(h,{key:"604ec4efe78a12a1c36d8416c9fdec70351a6dad",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(h,{key:"1ef77a81232e19d1063af9e863f5c9ada183715f",title:"Account Owner",value:this.payment.payment_method.payersName}))],this.payment.metadata&&[e(l,{key:"703ee104edf87c55034c38bb9fe0de6907980a0e",sectionTitle:"Metadata"}),e("div",{key:"c10b66a975c6a221f86226893e13cbf57bf0d8dd",class:"d-table gap-2 w-100"},e(r,{key:"e73dfd81f110ec7c275fd37d1ecc71bbc22580b5",metadata:this.payment.metadata}))])))}static get watchers(){return{getPaymentDetails:["updateOnPropChange"]}}};export{k as payment_details_core}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i}from"./p-D6FDxSyt.js";import{P as o}from"./p-Dz-Ft5b1.js";import"./p-CpTwq2jw.js";import{C as r,a as e}from"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-Bxs6fi7a.js";import{P as p}from"./p-AVaenhw9.js";import"./p-Ct-uNz2r.js";import{g as a,a as h}from"./p-C5RuuShs.js";import{E as n}from"./p-l3o3Ndc0.js";import{c as m,J as d}from"./p-3adEM48l.js";import{m as c}from"./p-DniQ6yo6.js";import"./p-OSmuQKbK.js";import"./p-D4Mv5jCp.js";import"./p-Cd06j2SL.js";import"./p-BFTU3MAI.js";import"./p-7MWRbTXI.js";import"./p-BrLVc_85.js";import"./p-DLLK41AX.js";const j=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new d(this),this.initializeServices()}disconnectedCallback(){this.analytics.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var n;try{const m=await i.fetchPayout(t,s);m.error?e({error:h(m.error),code:a(null===(n=m.error)||void 0===n?void 0:n.code),severity:r.ERROR}):o(new p(m.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}),this.getPayoutCSV=c({authToken:this.authToken,service:new o})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_payout_details}
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as e}from"./p-D6FDxSyt.js";import"./p-CpTwq2jw.js";import"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-Bxs6fi7a.js";import"./p-AVaenhw9.js";import"./p-Ct-uNz2r.js";import{T as a,a as r,b as h,c as o,d as p,e as n,f as c,g as d,h as f,i as m,j as b,k as j,l as u}from"./p-n2YROtpe.js";import{T as y}from"./p-CZfYo5-1.js";import{p as g,a as l}from"./p-d-_oUZor.js";import{o as k,g as C}from"./p-um3YdOwW.js";import"./p-BFTU3MAI.js";import"./p-7MWRbTXI.js";import"./p-BrLVc_85.js";import"./p-CQdeVKF8.js";import"./p-C0WFYqwq.js";import"./p-D5XSsLKb.js";import"./p-Cd06j2SL.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payments=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:y.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:y.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.payments.find((t=>t.id===s));this.clickEvent.emit({name:y.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.paymentsTable=new a(this.payments,this.columns,g,l),this.getPayments&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:s})=>{this.payments=t,this.paging=s,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get paymentParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(u,{key:"1317635730164f2193e9556589c1c8584b70cfbb"},e(r,{key:"98f458d904f17105aa7f6fde313487fa1af08034"},e(h,{key:"a70f53dc6484a001d51f2c937e9696ad4ea68d2c"},e(o,{key:"93a807d6627175ff4030fc4de8e067809486b274"},this.paymentsTable.columnData.map((t=>t)))),e(p,{key:"4051081286f20f72d3e34f2484ada5413327b608"},e(n,{key:"e94bc4c5d2d4f2a24ee8ec906aa936ad0d497b84",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),e(c,{key:"be3fe38c674d7a587f77d91c4133d39359954135",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),e(d,{key:"55bb4161c9677940b78badbbc2a621e29404e213",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((t,s)=>e(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(m,{key:"23e336810c59ab014b4a11fa5f9f087db2de9fa1"},e(b,{key:"848eb4d2cfd643472de22f6cd86d9a7121acdca6"},e(j,{key:"b0c325d98775e1784173d45375018d94f8fc71cc",colSpan:this.paymentsTable.columnData.length},e("pagination-menu",{key:"b61510a421ed0fcf54ff3b3318bc8b80db18c6b1",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as payments_list_core}
@@ -1 +0,0 @@
1
- import{r as e,h as a}from"./p-D6FDxSyt.js";import{f as t,p as s,c as r}from"./p-6n7viK-J.js";import{o as l,q as i,r as o,u as d,v as p}from"./p-BrLVc_85.js";import{S as c}from"./p-DuYlA4lj.js";import"./p-CZfYo5-1.js";import{c as f,a as n}from"./p-CpTwq2jw.js";import"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-Bxs6fi7a.js";import{T as b,a as m}from"./p-AVaenhw9.js";import"./p-Ct-uNz2r.js";import"./p-Cd06j2SL.js";import"./p-BFTU3MAI.js";import"./p-7MWRbTXI.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=f(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:b.created},{label:"Completed",value:b.completed},{label:"Submitted",value:b.submitted},{label:"In Progress",value:b.in_progress},{label:"On Hold",value:b.on_hold},{label:"Canceled",value:b.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:m.boardingOnly},{label:"Boarding Shipping",value:m.boardingShipping}]}render(){const e=Object.assign({},t);return a(c,{key:"09824ee5a8f108e810027f844cb1592acb8292ab"},a("table-filters-menu",{key:"bcb67931ca20d8dcf4eaedf8fff22ee3c76f2765",params:e,clearParams:r,part:l},a("div",{key:"6ad367cbf5be69defb35791da7f606efde26e945",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"d0f5ed58e440ee9ce742f043790df214c49d391c",class:"p-2"},a("form-control-select",{key:"d9ce05f33331e44662a39a05822b8a027e5d76f6",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||t.order_status,disabled:!!this.orderStatus,part:i})),a("div",{key:"ffbceaaf5812af61f54abe1a76b7c9c993e1e7fc",class:"p-2"},a("form-control-select",{key:"9557912144e169bf6060e072686ca2b5e36d6e5e",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||t.order_type,disabled:!!this.orderType,part:o})),a("div",{key:"dc87e2699cae6fcb01fcb54790540aca23fd7f3a",class:"p-2"},a("form-control-date",{key:"0d0385b71ecc3cfc60ee9218a75f546ccc2c9718",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:n(this.createdAfter,{showInputDateTime:!0})||n(t.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:d})),a("div",{key:"4152bb0d8079b019b38a9291df5005211488f21c",class:"p-2"},a("form-control-date",{key:"24038ef6242a432f9b886a1493841216cfeaae47",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:n(this.createdBefore,{showInputDateTime:!0})||n(t.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:p})))))}};export{u as justifi_terminal_orders_list_filters}
@@ -1 +0,0 @@
1
- import{h as s,F as t,r as l,c as i}from"./p-D6FDxSyt.js";import{E as r}from"./p-l3o3Ndc0.js";import{S as e}from"./p-DuYlA4lj.js";import"./p-CZfYo5-1.js";import{S as o}from"./p-U30-0DaA.js";import"./p-BrLVc_85.js";const n=()=>{const l=()=>s("div",{class:"mt-5"},s(o,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null)),s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null))));return s(t,null,s(l,null),s(l,null),s(l,null),s(l,null))};var a;!function(s){s.LOADING="loading",s.READY="ready",s.ERROR="error"}(a||(a={}));const d=class{constructor(s){l(this,s),this.errorEvent=i(this,"error-event"),this.renderState=a.LOADING,this.errorMessage="An error ocurred."}async componentWillLoad(){this.getBusiness&&this.fetchData()}fetchData(){this.renderState=a.LOADING,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.renderState=a.READY},onError:({error:s,code:t,severity:l})=>{this.errorMessage=s,this.renderState=a.ERROR,this.errorEvent.emit({errorCode:t,message:s,severity:l})}})}render(){return this.renderState===a.LOADING?s(e,null,s(n,null)):this.renderState===a.ERROR?s(e,null,r(this.errorMessage)):s(e,null,s("generic-info-details",{business:this.business}),s("legal-address-details",{legalAddress:this.business.legal_address}),s("representative-details",{representative:this.business.representative}),s("owner-details",{owners:this.business.owners}),s("additional-questions-details",{additionalQuestions:this.business.additional_questions}))}};export{d as business_details_core}
@@ -1 +0,0 @@
1
- import{r as e,h as t,H as a,c as s,g as r}from"./p-D6FDxSyt.js";import{s as c,d as i,i as o}from"./p-CpTwq2jw.js";import"./p-SdntD1xf.js";import"./p-BjB_yKBJ.js";import"./p-CLHwhyvu.js";import"./p-Bxs6fi7a.js";import"./p-AVaenhw9.js";import{E as l}from"./p-Ct-uNz2r.js";import{c as d}from"./p-IA90llLO.js";import"./p-XYgDHrVL.js";import{n}from"./p-BnjCmwMr.js";import{X as b,D as f,ai as h,P as p,aj as m,c as u,l as y,b as k,R as x,a as j}from"./p-BrLVc_85.js";import{S as v}from"./p-U30-0DaA.js";import"./p-CZfYo5-1.js";import{F as _}from"./p-C0IqfGFc.js";import"./p-BFTU3MAI.js";import"./p-7MWRbTXI.js";import"./p-BrvbVMVq.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const T=class{constructor(t){e(this,t)}render(){return t("div",{key:"a3ff8b1ff23923beb847e66d6c56a39de9a86434",class:"row gy-3"},t("div",{key:"86f9ba3a8f0f87f7fa67ba0fcf1d7c04f67e9bc5",class:"col-12"},t("form-control-file",{key:"9cc2bc21414c8e3f4b25ac47b76340a4ce569c42",name:"voided_check",label:"Voided Check",documentType:l.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),t("div",{key:"bee72d6c63514cdbd3200910d3a53b045c60d05d",class:"col-12"},t("form-control-file",{key:"80a79f352d078cd210768b4060cad7014b1060c5",name:"bank_statement",label:"Bank Statement",documentType:l.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},g=class{constructor(t){e(this,t)}render(){return t("div",{key:"b18e803521d67b40e4e5af03a66dcdca0b678968",class:"row gy-3"},t("div",{key:"e2e6667ffbcebb6a9aa50739814e7bbebceaabfa",class:"col-12"},t("form-control-text",{key:"e1ad63fb7db32dbb6ed67cf18919c681d6d192ef",name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"54db821813e7eb931b8f19fad7fce976cdeb0045",class:"col-12"},t("form-control-text",{key:"4ecf222c1918e364f319d07e0a770d68dba099d0",name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"a92c38f2abbcb3dcaee4bc5ea73df44b31adc3f9",class:"col-12"},t("form-control-text",{key:"492ff1a4d1e9c4f2fa9d0e527a34dc5ccb09afe6",name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"8e14e6e3de43822d139085d3a05bfd0e7ae5b1be",class:"col-12"},t("form-control-select",{key:"f6648b6f7c4a475f88b849bf3a75d446bb539c69",name:"account_type",label:"Account Type",options:d,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"68a2efc082f5b6414ebde10b6da4365677dbefca",class:"col-12"},t("form-control-text",{key:"3ef9b3db5882063708ccf1eb282f3e90ed53ce82",name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:n,disabled:this.formDisabled,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),t("div",{key:"e3270db28269bc25dd4d5a99274f042c1efd1fc6",class:"col-12"},t("form-control-text",{key:"a8e801f65a4cc164cdc7bf186fed67f87abc828f",name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:n,disabled:this.formDisabled,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},w=class{constructor(t){e(this,t),this.documents=[],this.isLoading=!1}render(){return this.isLoading?t(v,{height:"50px"}):this.documents.length?t(a,null,t("div",{class:"card",part:b},t("div",{class:"card-body"},t("h5",{class:"card-title",part:f},"Documents Already on File"),t("div",{class:"table-responsive"},t("table",{class:"table table-sm table-borderless",part:h},t("thead",null,t("tr",null,t("th",{style:{width:"25%"},part:p,scope:"col"},"File Name"),t("th",{style:{width:"25%"},part:p,scope:"col"},"File Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Document Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Date Uploaded"))),t("tbody",null,this.documents.sort(((e,t)=>e.document_type.localeCompare(t.document_type))).map(((e,a)=>t("tr",{class:0===a?"border-bottom border-top":"border-bottom"},t("td",{part:m},e.file_name),t("td",{part:m},e.file_type),t("td",{part:m},c(e.document_type)),t("td",{part:m},`${i(e.created_at)} - ${o(e.created_at)}`))))))))),t("hr",null)):null}},D=class{constructor(t){e(this,t),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.fileSelected=s(this,"fileSelected"),this.isFocused=!1,this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.inputHandler(a,t.value),this.formControlInput.emit({name:a,value:t.value})},this.changeHandler=()=>{const e=this.fileInput.files;e&&this.fileSelected.emit({fileList:e,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let e=u;return this.errorText&&(e=k),this.disabled&&(e=x),this.isFocused&&(e=j),e}render(){return t(a,{key:"c4eb924b2def951a74f6b5aeb036a405537e824c"},t("div",{key:"3b8bcb605f8addc7188fa82e5ef91c437c17d5f0",class:"form-group d-flex flex-column"},t("div",{key:"7f0e0cb4cb6dd1f75ddcd054843d2b1663b8db64",class:"d-flex align-items-start gap-2"},t("label",{key:"73b1eca3f6f175c2832f76be825d97f708aed9bf",part:y,class:"form-label",htmlFor:this.name},this.label),t("form-control-tooltip",{key:"389ee4bcc680a25991d048ba3839104368c26c15",helpText:this.helpText})),t("input",{key:"e1c713e5600dace0d44ea5f640bd60bf9d3ec0bd",ref:e=>this.fileInput=e,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),t(_,{key:"64828199873b08ab92c5418a1a1d5493bb41d947",errorText:this.errorText,name:this.name})))}get el(){return r(this)}};export{T as bank_account_document_form_inputs,g as bank_account_form_inputs,w as business_documents_on_file,D as form_control_file}