@justifi/webcomponents 6.12.6 → 6.12.7-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (319) hide show
  1. package/dist/cjs/{Analytics-CuYtRPw5.js → Analytics-GZGMuFW6.js} +2 -2
  2. package/dist/cjs/{Plaid-BRSyOOuw.js → Plaid-KasiL5mp.js} +14 -19
  3. package/dist/cjs/{additional-questions-form-step_14.cjs.entry.js → additional-questions-form-step_15.cjs.entry.js} +378 -169
  4. package/dist/cjs/additional-questions_5.cjs.entry.js +7 -7
  5. package/dist/cjs/additional-statement_8.cjs.entry.js +1 -1
  6. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +4 -4
  7. package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +21 -0
  8. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  9. package/dist/cjs/{business-form-options-D_nM7NDk.js → business-form-options-CnlrfbQ6.js} +51 -0
  10. package/dist/cjs/{business-identity-schema-DuFGX6_i.js → business-identity-schema-CC1wOwXd.js} +11 -7
  11. package/dist/cjs/{business.service-Z9OACEQL.js → business.service-BBovho58.js} +1 -1
  12. package/dist/cjs/card-form.cjs.entry.js +2 -2
  13. package/dist/cjs/{check-pkg-version-CPWLIT6P.js → check-pkg-version-FPtenLmp.js} +1 -1
  14. package/dist/cjs/{checkout.service-BZOyqXgW.js → checkout.service-C0M9hmsL.js} +1 -1
  15. package/dist/cjs/{country-config-aJp8ScEs.js → country-config-Ck-eEeZZ.js} +2 -0
  16. package/dist/cjs/dispute-notification_2.cjs.entry.js +6 -6
  17. package/dist/cjs/{event-types-AU1B76Vm.js → event-types-DDNVjmfR.js} +1 -1
  18. package/dist/cjs/form-address-fields_3.cjs.entry.js +1 -1
  19. package/dist/cjs/form-control-number_2.cjs.entry.js +5 -4
  20. package/dist/cjs/{get-business-aR-C83KX.js → get-business-Ggw-UjXj.js} +2 -2
  21. package/dist/cjs/{get-payment-details-dwhA02Zl.js → get-payment-details-BVKRwME1.js} +2 -2
  22. package/dist/cjs/{get-subaccounts-B1jmSa2d.js → get-subaccounts-RRmcS9xU.js} +2 -2
  23. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  24. package/dist/cjs/{index.esm-C1ZPG85l.js → index.esm-BNETBIV_.js} +0 -18
  25. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +8 -8
  26. package/dist/cjs/justifi-bank-account-billing-form-simple.cjs.entry.js +5 -5
  27. package/dist/cjs/justifi-bank-account-form.cjs.entry.js +5 -5
  28. package/dist/cjs/justifi-billing-form-full.cjs.entry.js +1 -1
  29. package/dist/cjs/justifi-billing-form.cjs.entry.js +1 -1
  30. package/dist/cjs/justifi-business-details.cjs.entry.js +8 -8
  31. package/dist/cjs/justifi-business-form.cjs.entry.js +13 -13
  32. package/dist/cjs/justifi-card-billing-form-simple.cjs.entry.js +1 -1
  33. package/dist/cjs/justifi-card-form.cjs.entry.js +5 -5
  34. package/dist/cjs/justifi-checkout.cjs.entry.js +5 -5
  35. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +2 -2
  36. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +8 -8
  37. package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -7
  38. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -6
  39. package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -9
  40. package/dist/cjs/justifi-payment-details.cjs.entry.js +8 -8
  41. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +9 -9
  42. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -7
  43. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +1 -1
  44. package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -7
  45. package/dist/cjs/justifi-payout-details.cjs.entry.js +8 -8
  46. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -7
  47. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  48. package/dist/cjs/justifi-payouts-list.cjs.entry.js +9 -9
  49. package/dist/cjs/justifi-refund-payment.cjs.entry.js +9 -9
  50. package/dist/cjs/justifi-save-new-payment-method.cjs.entry.js +1 -1
  51. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +6 -6
  52. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  53. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +2 -2
  54. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +6 -6
  55. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +2 -2
  56. package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -8
  57. package/dist/cjs/loader.cjs.js +1 -1
  58. package/dist/cjs/{package-Dxjq_cJI.js → package-C7Z9XAuc.js} +1 -1
  59. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  60. package/dist/cjs/{payment-provisioning-actions-BiSpysjW.js → payment-provisioning-actions-Cn8bgHKu.js} +2 -2
  61. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +3 -2
  62. package/dist/cjs/{payment.service-ByrgA_QZ.js → payment.service-CbIxt30x.js} +1 -1
  63. package/dist/cjs/{payout.service-CnQm_BpU.js → payout.service-DVMvsdAf.js} +1 -1
  64. package/dist/cjs/{payouts-status-AuS3Mp0V.js → payouts-status-CzS2CLGW.js} +2 -2
  65. package/dist/cjs/{plaid.service-Dlb8EUR8.js → plaid.service-DNT_DX6z.js} +1 -1
  66. package/dist/cjs/{schema-validations-DNPcvDh5.js → schema-validations-DackMxv7.js} +11 -8
  67. package/dist/cjs/styled-host-Ch0-dxF-.js +11 -0
  68. package/dist/cjs/{terminal.service-BdwHQ3Vv.js → terminal.service-BBHixg-d.js} +1 -1
  69. package/dist/cjs/{utils-FVGp6se3.js → utils-kDsk4nqH.js} +1 -1
  70. package/dist/cjs/webcomponents.cjs.js +1 -1
  71. package/dist/collection/api/Document.js +14 -7
  72. package/dist/collection/collection-manifest.json +2 -0
  73. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
  74. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +5 -3
  75. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +4 -2
  76. package/dist/collection/components/business-forms/owner-form/owner-form.js +46 -1
  77. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/additional-questions-form-step.js +1 -1
  78. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +6 -114
  79. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  80. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +8 -0
  81. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +4 -2
  82. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.js +435 -0
  83. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-list.js +52 -0
  84. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-options.js +72 -0
  85. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +1 -1
  86. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +3 -2
  87. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +10 -38
  88. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
  89. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +7 -3
  90. package/dist/collection/components/business-forms/schemas/schema-validations.js +8 -5
  91. package/dist/collection/components/business-forms/utils/business-form-options.js +50 -0
  92. package/dist/collection/components/business-forms/utils/country-config.js +2 -0
  93. package/dist/collection/ui-components/form/form-control-file.js +1 -1
  94. package/dist/docs.json +496 -64
  95. package/dist/esm/{Analytics-CwckfiSK.js → Analytics-D-apOWeY.js} +2 -2
  96. package/dist/esm/{Plaid-l6nNIjab.js → Plaid-BM3JUIG5.js} +15 -19
  97. package/dist/esm/{additional-questions-form-step_14.entry.js → additional-questions-form-step_15.entry.js} +377 -169
  98. package/dist/esm/additional-questions_5.entry.js +8 -8
  99. package/dist/esm/additional-statement_8.entry.js +1 -1
  100. package/dist/esm/bank-account-billing-form-simple_4.entry.js +4 -4
  101. package/dist/esm/bank-account-document-form-inputs.entry.js +19 -0
  102. package/dist/esm/bank-account-form.entry.js +2 -2
  103. package/dist/esm/{business-form-options-DRalxlqN.js → business-form-options-DXjZp4Rl.js} +51 -1
  104. package/dist/esm/{business-identity-schema-0Q3kck3C.js → business-identity-schema-D8L_UfWl.js} +11 -7
  105. package/dist/esm/{business.service-C31wbMVs.js → business.service-C4BD3pf7.js} +1 -1
  106. package/dist/esm/card-form.entry.js +2 -2
  107. package/dist/esm/{check-pkg-version-Dy2NK3Nn.js → check-pkg-version-Bn8HCDRp.js} +1 -1
  108. package/dist/esm/{checkout.service-cVdOGDuI.js → checkout.service-DmWeKNQs.js} +1 -1
  109. package/dist/esm/{country-config-CdvhLcnT.js → country-config-BW2dUoTJ.js} +2 -0
  110. package/dist/esm/dispute-notification_2.entry.js +6 -6
  111. package/dist/esm/{event-types-DalU_6SB.js → event-types-eIqsrwmW.js} +1 -1
  112. package/dist/esm/form-address-fields_3.entry.js +1 -1
  113. package/dist/esm/form-control-number_2.entry.js +5 -4
  114. package/dist/esm/{get-business-Gg6qn5on.js → get-business-DtFHdc37.js} +2 -2
  115. package/dist/esm/{get-payment-details-BiWgSJau.js → get-payment-details-26GxiYgv.js} +2 -2
  116. package/dist/esm/{get-subaccounts-CkjZeR9U.js → get-subaccounts-xkGMPstt.js} +2 -2
  117. package/dist/esm/hidden-input_2.entry.js +1 -1
  118. package/dist/esm/{index.esm-BHdVU4hV.js → index.esm-KCSohgHx.js} +1 -18
  119. package/dist/esm/justifi-apple-pay_11.entry.js +8 -8
  120. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -5
  121. package/dist/esm/justifi-bank-account-form.entry.js +5 -5
  122. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  123. package/dist/esm/justifi-billing-form.entry.js +1 -1
  124. package/dist/esm/justifi-business-details.entry.js +8 -8
  125. package/dist/esm/justifi-business-form.entry.js +13 -13
  126. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  127. package/dist/esm/justifi-card-form.entry.js +5 -5
  128. package/dist/esm/justifi-checkout.entry.js +5 -5
  129. package/dist/esm/justifi-checkouts-list-filters.entry.js +2 -2
  130. package/dist/esm/justifi-checkouts-list.entry.js +8 -8
  131. package/dist/esm/justifi-dispute-management.entry.js +7 -7
  132. package/dist/esm/justifi-gross-payment-chart.entry.js +6 -6
  133. package/dist/esm/justifi-order-terminals.entry.js +9 -9
  134. package/dist/esm/justifi-payment-details.entry.js +8 -8
  135. package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
  136. package/dist/esm/justifi-payment-transactions-list.entry.js +7 -7
  137. package/dist/esm/justifi-payments-list-filters.entry.js +1 -1
  138. package/dist/esm/justifi-payments-list.entry.js +7 -7
  139. package/dist/esm/justifi-payout-details.entry.js +8 -8
  140. package/dist/esm/justifi-payout-transactions-list.entry.js +7 -7
  141. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  142. package/dist/esm/justifi-payouts-list.entry.js +9 -9
  143. package/dist/esm/justifi-refund-payment.entry.js +9 -9
  144. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  145. package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
  146. package/dist/esm/justifi-skeleton.entry.js +1 -1
  147. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +2 -2
  148. package/dist/esm/justifi-terminal-orders-list.entry.js +6 -6
  149. package/dist/esm/justifi-terminals-list-filters.entry.js +2 -2
  150. package/dist/esm/justifi-terminals-list.entry.js +8 -8
  151. package/dist/esm/loader.js +1 -1
  152. package/dist/esm/{package-DAZd_gFd.js → package-D6Pw5qJ5.js} +1 -1
  153. package/dist/esm/payment-method-option.entry.js +1 -1
  154. package/dist/esm/{payment-provisioning-actions-cl5xIYnF.js → payment-provisioning-actions-fWdNDUdq.js} +2 -2
  155. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +3 -2
  156. package/dist/esm/{payment.service-5_u-UzTY.js → payment.service-CWR7jF-K.js} +1 -1
  157. package/dist/esm/{payout.service-D2zS5y8N.js → payout.service-CFU362cH.js} +1 -1
  158. package/dist/esm/{payouts-status-DCjCGTaa.js → payouts-status-D2G7FKu1.js} +2 -2
  159. package/dist/esm/{plaid.service-BiJ65YG8.js → plaid.service-0hd1i5Ga.js} +1 -1
  160. package/dist/esm/{schema-validations-A1o1biOB.js → schema-validations-CjqWFLKt.js} +11 -8
  161. package/dist/esm/styled-host-D84RBv1W.js +9 -0
  162. package/dist/esm/{terminal.service-CIxDfM7V.js → terminal.service-Dr6dERcJ.js} +1 -1
  163. package/dist/esm/{utils-C1B2hVAB.js → utils-q7KOrlSX.js} +1 -1
  164. package/dist/esm/webcomponents.js +1 -1
  165. package/dist/module/Plaid.js +15 -19
  166. package/dist/module/additional-questions-form-step2.js +11 -5
  167. package/dist/module/bank-account-document-form-inputs.js +55 -1
  168. package/dist/module/business-bank-account-form-step2.js +24 -177
  169. package/dist/module/business-core-info-form-step2.js +2 -2
  170. package/dist/module/business-core-info-schema.js +1 -1
  171. package/dist/module/business-core-info2.js +3 -3
  172. package/dist/module/business-documents-on-file2.js +1 -1
  173. package/dist/module/business-form-options.js +51 -1
  174. package/dist/module/business-identity-schema.js +7 -3
  175. package/dist/module/business-owners-form-step2.js +8 -0
  176. package/dist/module/business-representative-form-inputs2.js +5 -3
  177. package/dist/module/business-representative2.js +6 -5
  178. package/dist/module/button.js +1 -1
  179. package/dist/module/country-config.js +2 -0
  180. package/dist/module/document-upload-form-step.d.ts +11 -0
  181. package/dist/module/document-upload-form-step.js +6 -0
  182. package/dist/module/document-upload-form-step2.js +397 -0
  183. package/dist/module/document-upload-list.d.ts +11 -0
  184. package/dist/module/document-upload-list.js +6 -0
  185. package/dist/module/document-upload-list2.js +46 -0
  186. package/dist/module/form-control-number2.js +1 -1
  187. package/dist/module/form-control-textarea2.js +1 -1
  188. package/dist/module/form.js +1 -18
  189. package/dist/module/hidden-input2.js +1 -1
  190. package/dist/module/iframe-input2.js +1 -1
  191. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  192. package/dist/module/justifi-checkouts-list.js +2 -2
  193. package/dist/module/justifi-dispute-management.js +1 -1
  194. package/dist/module/justifi-modular-checkout2.js +1 -1
  195. package/dist/module/justifi-order-terminals.js +2 -2
  196. package/dist/module/justifi-payment-details.js +1 -1
  197. package/dist/module/justifi-payment-provisioning.js +33 -27
  198. package/dist/module/justifi-payment-transactions-list.js +2 -2
  199. package/dist/module/justifi-payments-list.js +1 -1
  200. package/dist/module/justifi-payout-details.js +1 -1
  201. package/dist/module/justifi-payout-transactions-list.js +2 -2
  202. package/dist/module/justifi-payouts-list-filters.js +1 -1
  203. package/dist/module/justifi-payouts-list.js +2 -2
  204. package/dist/module/justifi-refund-payment.js +1 -1
  205. package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
  206. package/dist/module/justifi-terminal-orders-list.js +2 -2
  207. package/dist/module/justifi-terminals-list-filters.js +1 -1
  208. package/dist/module/justifi-terminals-list.js +2 -2
  209. package/dist/module/owner-form-inputs2.js +5 -3
  210. package/dist/module/owner-form2.js +10 -1
  211. package/dist/module/package.js +1 -1
  212. package/dist/module/parts.js +1 -1
  213. package/dist/module/payment-provisioning-actions.js +1 -1
  214. package/dist/module/payment-provisioning-form-steps2.js +35 -28
  215. package/dist/module/plaid-verification2.js +1 -1
  216. package/dist/module/schema-validations.js +8 -5
  217. package/dist/module/skeleton.js +1 -1
  218. package/dist/module/styled-host.js +1 -1
  219. package/dist/module/table.js +1 -1
  220. package/dist/module/terminal-quantity-selector2.js +1 -1
  221. package/dist/types/api/Document.d.ts +15 -2
  222. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +2 -0
  223. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +1 -12
  224. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.d.ts +44 -0
  225. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-list.d.ts +6 -0
  226. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-options.d.ts +44 -0
  227. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +1 -0
  228. package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +4 -4
  229. package/dist/types/components/business-forms/utils/business-form-options.d.ts +1 -0
  230. package/dist/types/components.d.ts +67 -0
  231. package/dist/webcomponents/{p-oTtn8xDw.js → p--RbNhyet.js} +1 -1
  232. package/dist/webcomponents/{p-4b39a470.entry.js → p-01ed8fb5.entry.js} +1 -1
  233. package/dist/webcomponents/{p-07eaee91.entry.js → p-0290ca0f.entry.js} +1 -1
  234. package/dist/webcomponents/{p-e02d7751.entry.js → p-0a2be2e2.entry.js} +4 -4
  235. package/dist/webcomponents/{p-ca87c609.entry.js → p-0a4fcb15.entry.js} +1 -1
  236. package/dist/webcomponents/{p-b0b6083f.entry.js → p-0b169fac.entry.js} +1 -1
  237. package/dist/webcomponents/{p-f1b9cbf0.entry.js → p-0e4cda77.entry.js} +1 -1
  238. package/dist/webcomponents/{p-9d676f54.entry.js → p-1006ab39.entry.js} +1 -1
  239. package/dist/webcomponents/{p-d5edbea3.entry.js → p-164a4e64.entry.js} +1 -1
  240. package/dist/webcomponents/{p-bc2dddf3.entry.js → p-1841ee76.entry.js} +1 -1
  241. package/dist/webcomponents/{p-d01a1076.entry.js → p-188a7ebd.entry.js} +1 -1
  242. package/dist/webcomponents/{p-b62ff001.entry.js → p-1e34c488.entry.js} +1 -1
  243. package/dist/webcomponents/{p-a56e43a1.entry.js → p-1e5c96f3.entry.js} +1 -1
  244. package/dist/webcomponents/{p-b21010cb.entry.js → p-233fef57.entry.js} +1 -1
  245. package/dist/webcomponents/p-2e5ec91e.entry.js +1 -0
  246. package/dist/webcomponents/{p-41637e4a.entry.js → p-374ce853.entry.js} +1 -1
  247. package/dist/webcomponents/p-37676092.entry.js +1 -0
  248. package/dist/webcomponents/{p-78c4668b.entry.js → p-3c3fbcca.entry.js} +1 -1
  249. package/dist/webcomponents/{p-c4767c7b.entry.js → p-3e10a0de.entry.js} +1 -1
  250. package/dist/webcomponents/{p-e07506b7.entry.js → p-4673d7d3.entry.js} +1 -1
  251. package/dist/webcomponents/{p-3cefb032.entry.js → p-4b14b7e7.entry.js} +1 -1
  252. package/dist/webcomponents/p-54ee2a30.entry.js +1 -0
  253. package/dist/webcomponents/{p-38209a25.entry.js → p-5ceeaa73.entry.js} +1 -1
  254. package/dist/webcomponents/{p-a9e82502.entry.js → p-6089f91c.entry.js} +1 -1
  255. package/dist/webcomponents/{p-b8351983.entry.js → p-60a0bf1e.entry.js} +1 -1
  256. package/dist/webcomponents/{p-cf3e3394.entry.js → p-63a35210.entry.js} +1 -1
  257. package/dist/webcomponents/{p-08ab97ce.entry.js → p-641c9bdb.entry.js} +1 -1
  258. package/dist/webcomponents/{p-8e56430a.entry.js → p-74aeb76a.entry.js} +1 -1
  259. package/dist/webcomponents/{p-1f34b2f7.entry.js → p-80fdd013.entry.js} +1 -1
  260. package/dist/webcomponents/{p-3ef07f42.entry.js → p-84aaf298.entry.js} +1 -1
  261. package/dist/webcomponents/{p-4ee55e7d.entry.js → p-8a5f0d71.entry.js} +1 -1
  262. package/dist/webcomponents/{p-9153c121.entry.js → p-947950cc.entry.js} +1 -1
  263. package/dist/webcomponents/p-98476956.entry.js +1 -0
  264. package/dist/webcomponents/{p-a2c25cc4.entry.js → p-99792da6.entry.js} +1 -1
  265. package/dist/webcomponents/p-B1yVkh15.js +1 -0
  266. package/dist/webcomponents/{p-Bt4GjEWL.js → p-BBSnDYJw.js} +1 -1
  267. package/dist/webcomponents/{p-av6jyzyC.js → p-BSyTbuZy.js} +1 -1
  268. package/dist/webcomponents/{p-APOabprT.js → p-BrFax4_P.js} +1 -1
  269. package/dist/webcomponents/p-BzXQDB0t.js +1 -0
  270. package/dist/webcomponents/{p-BxKbnILQ.js → p-C-zuQNNP.js} +1 -1
  271. package/dist/webcomponents/{p-Cm9f5fyh.js → p-CDu7TeCZ.js} +1 -1
  272. package/dist/webcomponents/{p-BJu1-9kE.js → p-CL8LyqRI.js} +1 -1
  273. package/dist/webcomponents/{p-fE5A37L5.js → p-Cz0yhyYu.js} +1 -1
  274. package/dist/webcomponents/p-D6Pw5qJ5.js +1 -0
  275. package/dist/webcomponents/p-D9ZHVy-j.js +1 -0
  276. package/dist/webcomponents/{p-BdpSLMs7.js → p-D9rCHoO4.js} +1 -1
  277. package/dist/webcomponents/{p-CKiAlBsU.js → p-D9sqTVmd.js} +1 -1
  278. package/dist/webcomponents/p-DV4n8kZd.js +1 -0
  279. package/dist/webcomponents/{p-Dk26hk5T.js → p-DdeBubpX.js} +1 -1
  280. package/dist/webcomponents/p-DzEdYT8R.js +1 -0
  281. package/dist/webcomponents/{p-NZS8uCtH.js → p-Dzv0P2Ly.js} +1 -1
  282. package/dist/webcomponents/{p-Axa3cgnH.js → p-H0ILKMD2.js} +1 -1
  283. package/dist/webcomponents/{p-a7a1b168.entry.js → p-a3b48ba3.entry.js} +1 -1
  284. package/dist/webcomponents/{p-ebb7b693.entry.js → p-a3fe126f.entry.js} +1 -1
  285. package/dist/webcomponents/p-a9976353.entry.js +1 -0
  286. package/dist/webcomponents/{p-7377f7d1.entry.js → p-ab89cb46.entry.js} +1 -1
  287. package/dist/webcomponents/{p-d79c5ee4.entry.js → p-b17ce21d.entry.js} +1 -1
  288. package/dist/webcomponents/{p-2a5ee558.entry.js → p-b5aa3937.entry.js} +1 -1
  289. package/dist/webcomponents/p-cab840bd.entry.js +1 -0
  290. package/dist/webcomponents/{p-e17b92ec.entry.js → p-cc558e25.entry.js} +1 -1
  291. package/dist/webcomponents/{p-BXyADlAH.js → p-czJ2qSU1.js} +1 -1
  292. package/dist/webcomponents/p-d7ec0b54.entry.js +1 -0
  293. package/dist/webcomponents/{p-6904c62c.entry.js → p-e737077f.entry.js} +1 -1
  294. package/dist/webcomponents/p-eb1b4ead.entry.js +1 -0
  295. package/dist/webcomponents/{p-279c17ac.entry.js → p-f6be288f.entry.js} +1 -1
  296. package/dist/webcomponents/p-n_pmf4AT.js +1 -0
  297. package/dist/webcomponents/p-vUN_uvAi.js +1 -0
  298. package/dist/webcomponents/{p-Ba8jdOkX.js → p-xWuaNtJy.js} +1 -1
  299. package/dist/webcomponents/webcomponents.esm.js +1 -1
  300. package/package.json +14 -14
  301. package/LICENSE +0 -21
  302. package/dist/cjs/styled-host-DAi5SuFa.js +0 -11
  303. package/dist/esm/styled-host-D6byRazK.js +0 -9
  304. package/dist/module/bank-account-document-form-inputs2.js +0 -57
  305. package/dist/webcomponents/p-034fa691.entry.js +0 -1
  306. package/dist/webcomponents/p-2aac2ab6.entry.js +0 -1
  307. package/dist/webcomponents/p-37254105.entry.js +0 -1
  308. package/dist/webcomponents/p-5G1OMxZz.js +0 -1
  309. package/dist/webcomponents/p-9b5ca32c.entry.js +0 -1
  310. package/dist/webcomponents/p-Aacb4jqT.js +0 -1
  311. package/dist/webcomponents/p-BqNNwq6C.js +0 -1
  312. package/dist/webcomponents/p-D8ytux5N.js +0 -1
  313. package/dist/webcomponents/p-DAZd_gFd.js +0 -1
  314. package/dist/webcomponents/p-DrMJliVY.js +0 -1
  315. package/dist/webcomponents/p-XIWgia4J.js +0 -1
  316. package/dist/webcomponents/p-c8bc235f.entry.js +0 -1
  317. package/dist/webcomponents/p-ea254f14.entry.js +0 -1
  318. package/dist/webcomponents/p-ff8cf16c.entry.js +0 -1
  319. package/dist/webcomponents/p-nb_LhbJq.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { h } from '@stencil/core/internal/client';
2
- import { A as table, ai as tableHead, aj as tableHeadRow, ak as tableRow, al as tableFoot, am as tableFootRow, an as tableFootCell, ao as tableEmpty, ap as tableError, C as tableCell } from './parts.js';
2
+ import { C as table, ai as tableHead, aj as tableHeadRow, ak as tableRow, al as tableFoot, am as tableFootRow, an as tableFootCell, ao as tableEmpty, ap as tableError, E as tableCell } from './parts.js';
3
3
  import { S as Spinner } from './spinner.js';
4
4
 
5
5
  const TableWrapper = (props, children) => {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { z as card, a0 as image, a1 as buttonLink } from './parts.js';
2
+ import { B as card, a0 as image, a1 as buttonLink } from './parts.js';
3
3
  import { d as defineCustomElement$2 } from './custom-popper2.js';
4
4
  import { d as defineCustomElement$1 } from './form-control-tooltip2.js';
5
5
 
@@ -20,7 +20,19 @@ export declare enum EntityDocumentType {
20
20
  governmentId = "government_id",
21
21
  profitAndLossStatement = "profit_and_loss_statement",
22
22
  taxReturn = "tax_return",
23
- other = "other"
23
+ other = "other",
24
+ articlesOfIncorporation = "articles_of_incorporation",
25
+ businessRegistration = "business_registration",
26
+ passport = "passport",
27
+ driverLicense = "driver_license",
28
+ residentCard = "resident_card",
29
+ statusCard = "status_card",
30
+ nexusCard = "nexus_card",
31
+ citizenshipCard = "citizenship_card",
32
+ foreignPassport = "foreign_passport",
33
+ birthCertificate = "birth_certificate",
34
+ sinCard = "sin_card",
35
+ ssnCard = "ssn_card"
24
36
  }
25
37
  export declare enum EntityDocumentStatus {
26
38
  pending = "pending",
@@ -37,6 +49,7 @@ export interface DocumentRecordData {
37
49
  document_type: EntityDocumentType;
38
50
  file_name: string;
39
51
  file_type: string;
52
+ identity_id?: string;
40
53
  }
41
54
  export declare class EntityDocumentStorage {
42
55
  voided_check: EntityDocument[];
@@ -58,7 +71,7 @@ export declare class EntityDocument {
58
71
  document_type: EntityDocumentType;
59
72
  presigned_url: string | null;
60
73
  record_data: DocumentRecordData | null;
61
- constructor(fileData: EntityFileData, business_id: string);
74
+ constructor(fileData: EntityFileData, business_id: string, identity_id?: string);
62
75
  getFileData(): Promise<ArrayBuffer>;
63
76
  setPresignedUrl(url: string): void;
64
77
  }
@@ -26,6 +26,8 @@ export declare class OwnerForm {
26
26
  ownerSubmitted: EventEmitter<any>;
27
27
  constructor();
28
28
  returnOwnerData(): Promise<string>;
29
+ getOwnershipPercentage(): Promise<string | null>;
30
+ setOwnershipPercentageError(message: string): Promise<void>;
29
31
  validate(): Promise<boolean>;
30
32
  submit(): Promise<boolean>;
31
33
  validateAndSubmit(event: any): Promise<void>;
@@ -1,19 +1,15 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
- import { ComponentErrorEvent, ComponentFormStepCompleteEvent, IBankAccount, EntityDocument, EntityDocumentStorage, FileSelectEvent } from '../../../../api';
2
+ import { ComponentErrorEvent, ComponentFormStepCompleteEvent, IBankAccount } from '../../../../api';
3
3
  import { CountryCode } from '../../../../utils/country-codes';
4
4
  import { FormController } from '../../../../ui-components/form/form';
5
5
  export declare class BusinessBankAccountFormStep {
6
6
  formController: FormController;
7
7
  errors: any;
8
8
  bankAccount: IBankAccount;
9
- existingDocuments: any;
10
- documentData: EntityDocumentStorage;
11
9
  isLoading: boolean;
12
10
  viewMode: 'readonly' | 'plaid' | 'manual';
13
11
  getBusiness: Function;
14
12
  postBankAccount: Function;
15
- postDocumentRecord: Function;
16
- postDocument: Function;
17
13
  bankAccountVerification: boolean;
18
14
  platformAccountId: string | null;
19
15
  authToken: string;
@@ -34,7 +30,6 @@ export declare class BusinessBankAccountFormStep {
34
30
  private getSchema;
35
31
  initializeFormController: () => void;
36
32
  inputHandler: (name: string, value: string) => void;
37
- storeFiles: (e: CustomEvent<FileSelectEvent>) => void;
38
33
  get postPayload(): {
39
34
  account_owner_name: string;
40
35
  account_type: string;
@@ -60,15 +55,9 @@ export declare class BusinessBankAccountFormStep {
60
55
  handleToggleToManualEntry: () => void;
61
56
  handleToggleToPlaidVerification: () => void;
62
57
  handleSaveBankAccount: () => Promise<void>;
63
- private postBusinessDocuments;
64
- private postDocumentRecordData;
65
- handleDocRecordResponse: (docData: EntityDocument, response: any) => boolean;
66
- uploadDocument: (docData: EntityDocument) => Promise<boolean>;
67
- handleUploadResponse: (response: any) => boolean;
68
58
  private renderBankAccountInputs;
69
59
  private renderReadonlyView;
70
60
  private renderPlaidView;
71
61
  private renderManualEntryView;
72
- private renderDocumentUploads;
73
62
  render(): any;
74
63
  }
@@ -0,0 +1,44 @@
1
+ import { EventEmitter } from '../../../../stencil-public-runtime';
2
+ import { ComponentErrorEvent, ComponentFormStepCompleteEvent, FileSelectEvent, IDocument, Identity } from '../../../../api';
3
+ import { CountryCode } from '../../../../utils/country-codes';
4
+ import { UploadedDocumentEntry } from './document-upload-options';
5
+ export declare class DocumentUploadFormStep {
6
+ authToken: string;
7
+ businessId: string;
8
+ allowOptionalFields?: boolean;
9
+ country: CountryCode;
10
+ owners: Identity[];
11
+ existingDocuments: IDocument[];
12
+ selectedCategory: string;
13
+ selectedDocType: string;
14
+ uploadQueue: UploadedDocumentEntry[];
15
+ isLoading: boolean;
16
+ errors: {
17
+ [key: string]: string;
18
+ };
19
+ fileInputKey: number;
20
+ getBusiness: Function;
21
+ postDocumentRecord: Function;
22
+ private categories;
23
+ propChanged(): void;
24
+ watchHandler(newValue: boolean): void;
25
+ errorEvent: EventEmitter<ComponentErrorEvent>;
26
+ stepCompleteEvent: EventEmitter<ComponentFormStepCompleteEvent>;
27
+ formLoading: EventEmitter<boolean>;
28
+ validateAndSubmit({ onSuccess }: {
29
+ onSuccess: any;
30
+ }): Promise<void>;
31
+ componentWillLoad(): void;
32
+ private initializeApi;
33
+ private getData;
34
+ private get categoryOptions();
35
+ private get docTypeOptions();
36
+ private validate;
37
+ handleCategoryChange: (_name: string, value: string) => void;
38
+ handleDocTypeChange: (_name: string, value: string) => void;
39
+ handleFileSelected: (e: CustomEvent<FileSelectEvent>) => Promise<void>;
40
+ private postDocumentRecordData;
41
+ private handleDocRecordResponse;
42
+ private uploadDocument;
43
+ render(): any;
44
+ }
@@ -0,0 +1,6 @@
1
+ import { UploadedDocumentEntry } from './document-upload-options';
2
+ export declare class DocumentUploadList {
3
+ documents: UploadedDocumentEntry[];
4
+ private renderStatus;
5
+ render(): any;
6
+ }
@@ -0,0 +1,44 @@
1
+ import { Identity } from '../../../../api';
2
+ import { CountryCode } from '../../../../utils/country-codes';
3
+ export declare const businessDocumentOptions: {
4
+ label: string;
5
+ value: string;
6
+ }[];
7
+ export declare const financialDocumentOptions: {
8
+ label: string;
9
+ value: string;
10
+ }[];
11
+ export declare const personalDocGroup1Options: {
12
+ label: string;
13
+ value: string;
14
+ }[];
15
+ export declare const personalDocGroup2Options: {
16
+ label: string;
17
+ value: string;
18
+ }[];
19
+ export interface DocumentCategory {
20
+ label: string;
21
+ value: string;
22
+ identityId?: string;
23
+ docTypeOptions: {
24
+ label: string;
25
+ value: string;
26
+ }[];
27
+ }
28
+ export type DocumentUploadStatus = 'uploading' | 'uploaded' | 'error';
29
+ export interface UploadedDocumentEntry {
30
+ categoryLabel: string;
31
+ categoryValue: string;
32
+ docTypeLabel: string;
33
+ docTypeValue: string;
34
+ fileName: string;
35
+ file: File;
36
+ identityId?: string;
37
+ status: DocumentUploadStatus;
38
+ }
39
+ export declare const staticCategories: DocumentCategory[];
40
+ export declare function buildOwnerCategories(owners: Identity[]): DocumentCategory[];
41
+ export declare const financialOnlyCategories: DocumentCategory[];
42
+ export declare function buildAllCategories(owners: Identity[], country?: CountryCode): DocumentCategory[];
43
+ export declare const personalDocGroup1Types: Set<string>;
44
+ export declare const personalDocGroup2Types: Set<string>;
@@ -16,6 +16,7 @@ export declare class PaymentProvisioningFormSteps {
16
16
  4: () => any;
17
17
  5: () => any;
18
18
  6: () => any;
19
+ 7: () => any;
19
20
  };
20
21
  render(): any;
21
22
  }
@@ -1,17 +1,17 @@
1
1
  import { CountryCode } from '../../../utils/country-codes';
2
- export declare const businessBankAccountSchemaUSA: (documents: any[], allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
2
+ export declare const businessBankAccountSchemaUSA: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
3
3
  [x: string]: any;
4
4
  }, import("yup").AnyObject, {
5
5
  [x: string]: any;
6
6
  }, "">;
7
- export declare const businessBankAccountSchemaCAN: (documents: any[], allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
7
+ export declare const businessBankAccountSchemaCAN: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
8
8
  [x: string]: any;
9
9
  }, import("yup").AnyObject, {
10
10
  [x: string]: any;
11
11
  }, "">;
12
- export declare const businessBankAccountSchema: (documents: any[], allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
12
+ export declare const businessBankAccountSchema: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
13
13
  [x: string]: any;
14
14
  }, import("yup").AnyObject, {
15
15
  [x: string]: any;
16
16
  }, "">;
17
- export declare const bankAccountSchemaByCountry: Record<CountryCode, (allowOptionalFields?: boolean, documents?: any[]) => any>;
17
+ export declare const bankAccountSchemaByCountry: Record<CountryCode, (allowOptionalFields?: boolean) => any>;
@@ -6,5 +6,6 @@ export declare const businessClassificationOptions: BusinessFormOption[];
6
6
  export declare const businessServiceReceivedOptions: BusinessFormOption[];
7
7
  export declare const recurringPaymentsOptions: BusinessFormOption[];
8
8
  export declare const seasonalBusinessOptions: BusinessFormOption[];
9
+ export declare const businessTitleOptions: BusinessFormOption[];
9
10
  export declare const bankAccountTypeOptions: BusinessFormOption[];
10
11
  export {};
@@ -16,6 +16,7 @@ import { CountryCode } from "./utils/country-codes";
16
16
  import { FormController as FormController1 } from "./ui-components/form/form";
17
17
  import { Placement, PositioningStrategy } from "@popperjs/core";
18
18
  import { Dispute } from "./api/Dispute";
19
+ import { UploadedDocumentEntry } from "./components/business-forms/payment-provisioning/document-upload/document-upload-options";
19
20
  import { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
20
21
  import { IPaymentMethodMetadata } from "./api/PaymentMethod";
21
22
  import { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
@@ -37,6 +38,7 @@ export { CountryCode } from "./utils/country-codes";
37
38
  export { FormController as FormController1 } from "./ui-components/form/form";
38
39
  export { Placement, PositioningStrategy } from "@popperjs/core";
39
40
  export { Dispute } from "./api/Dispute";
41
+ export { UploadedDocumentEntry } from "./components/business-forms/payment-provisioning/document-upload/document-upload-options";
40
42
  export { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
41
43
  export { IPaymentMethodMetadata } from "./api/PaymentMethod";
42
44
  export { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
@@ -238,6 +240,19 @@ export namespace Components {
238
240
  */
239
241
  "disputeResponse": ApiDisputeResponse | any;
240
242
  }
243
+ interface DocumentUploadFormStep {
244
+ "allowOptionalFields"?: boolean;
245
+ "authToken": string;
246
+ "businessId": string;
247
+ "country": CountryCode;
248
+ "validateAndSubmit": ({ onSuccess }: { onSuccess: any; }) => Promise<void>;
249
+ }
250
+ interface DocumentUploadList {
251
+ /**
252
+ * @default []
253
+ */
254
+ "documents": UploadedDocumentEntry[];
255
+ }
241
256
  interface DuplicateCharge {
242
257
  "disputeResponse": any;
243
258
  /**
@@ -955,11 +970,13 @@ export namespace Components {
955
970
  "authToken": string;
956
971
  "businessId"?: string;
957
972
  "country": CountryCode;
973
+ "getOwnershipPercentage": () => Promise<string | null>;
958
974
  "newFormOpen"?: boolean;
959
975
  "ownerId"?: string;
960
976
  "ownersLength"?: number;
961
977
  "removeOwner": (id: string) => void;
962
978
  "returnOwnerData": () => Promise<string>;
979
+ "setOwnershipPercentageError": (message: string) => Promise<void>;
963
980
  "submit": () => Promise<boolean>;
964
981
  "validate": () => Promise<boolean>;
965
982
  "validateAndSubmit": (event: any) => Promise<void>;
@@ -1114,6 +1131,10 @@ export interface DisputeResponseCustomEvent<T> extends CustomEvent<T> {
1114
1131
  detail: T;
1115
1132
  target: HTMLDisputeResponseElement;
1116
1133
  }
1134
+ export interface DocumentUploadFormStepCustomEvent<T> extends CustomEvent<T> {
1135
+ detail: T;
1136
+ target: HTMLDocumentUploadFormStepElement;
1137
+ }
1117
1138
  export interface FormControlCheckboxCustomEvent<T> extends CustomEvent<T> {
1118
1139
  detail: T;
1119
1140
  target: HTMLFormControlCheckboxElement;
@@ -1597,6 +1618,31 @@ declare global {
1597
1618
  prototype: HTMLDisputeResponseElement;
1598
1619
  new (): HTMLDisputeResponseElement;
1599
1620
  };
1621
+ interface HTMLDocumentUploadFormStepElementEventMap {
1622
+ "error-event": ComponentErrorEvent1;
1623
+ "complete-form-step-event": ComponentFormStepCompleteEvent1;
1624
+ "formLoading": boolean;
1625
+ }
1626
+ interface HTMLDocumentUploadFormStepElement extends Components.DocumentUploadFormStep, HTMLStencilElement {
1627
+ addEventListener<K extends keyof HTMLDocumentUploadFormStepElementEventMap>(type: K, listener: (this: HTMLDocumentUploadFormStepElement, ev: DocumentUploadFormStepCustomEvent<HTMLDocumentUploadFormStepElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1628
+ addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1629
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1630
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1631
+ removeEventListener<K extends keyof HTMLDocumentUploadFormStepElementEventMap>(type: K, listener: (this: HTMLDocumentUploadFormStepElement, ev: DocumentUploadFormStepCustomEvent<HTMLDocumentUploadFormStepElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1632
+ removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1633
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1634
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1635
+ }
1636
+ var HTMLDocumentUploadFormStepElement: {
1637
+ prototype: HTMLDocumentUploadFormStepElement;
1638
+ new (): HTMLDocumentUploadFormStepElement;
1639
+ };
1640
+ interface HTMLDocumentUploadListElement extends Components.DocumentUploadList, HTMLStencilElement {
1641
+ }
1642
+ var HTMLDocumentUploadListElement: {
1643
+ prototype: HTMLDocumentUploadListElement;
1644
+ new (): HTMLDocumentUploadListElement;
1645
+ };
1600
1646
  interface HTMLDuplicateChargeElement extends Components.DuplicateCharge, HTMLStencilElement {
1601
1647
  }
1602
1648
  var HTMLDuplicateChargeElement: {
@@ -2707,6 +2753,8 @@ declare global {
2707
2753
  "customer-details": HTMLCustomerDetailsElement;
2708
2754
  "dispute-notification": HTMLDisputeNotificationElement;
2709
2755
  "dispute-response": HTMLDisputeResponseElement;
2756
+ "document-upload-form-step": HTMLDocumentUploadFormStepElement;
2757
+ "document-upload-list": HTMLDocumentUploadListElement;
2710
2758
  "duplicate-charge": HTMLDuplicateChargeElement;
2711
2759
  "electronic-evidence": HTMLElectronicEvidenceElement;
2712
2760
  "form-address-fields": HTMLFormAddressFieldsElement;
@@ -2994,6 +3042,21 @@ declare namespace LocalJSX {
2994
3042
  "onError-event"?: (event: DisputeResponseCustomEvent<ComponentErrorEvent>) => void;
2995
3043
  "onSubmit-event"?: (event: DisputeResponseCustomEvent<ComponentSubmitEvent>) => void;
2996
3044
  }
3045
+ interface DocumentUploadFormStep {
3046
+ "allowOptionalFields"?: boolean;
3047
+ "authToken": string;
3048
+ "businessId": string;
3049
+ "country": CountryCode;
3050
+ "onComplete-form-step-event"?: (event: DocumentUploadFormStepCustomEvent<ComponentFormStepCompleteEvent1>) => void;
3051
+ "onError-event"?: (event: DocumentUploadFormStepCustomEvent<ComponentErrorEvent1>) => void;
3052
+ "onFormLoading"?: (event: DocumentUploadFormStepCustomEvent<boolean>) => void;
3053
+ }
3054
+ interface DocumentUploadList {
3055
+ /**
3056
+ * @default []
3057
+ */
3058
+ "documents"?: UploadedDocumentEntry[];
3059
+ }
2997
3060
  interface DuplicateCharge {
2998
3061
  "disputeResponse": any;
2999
3062
  /**
@@ -3914,6 +3977,8 @@ declare namespace LocalJSX {
3914
3977
  "customer-details": CustomerDetails;
3915
3978
  "dispute-notification": DisputeNotification;
3916
3979
  "dispute-response": DisputeResponse;
3980
+ "document-upload-form-step": DocumentUploadFormStep;
3981
+ "document-upload-list": DocumentUploadList;
3917
3982
  "duplicate-charge": DuplicateCharge;
3918
3983
  "electronic-evidence": ElectronicEvidence;
3919
3984
  "form-address-fields": FormAddressFields;
@@ -4040,6 +4105,8 @@ declare module "@stencil/core" {
4040
4105
  "customer-details": LocalJSX.CustomerDetails & JSXBase.HTMLAttributes<HTMLCustomerDetailsElement>;
4041
4106
  "dispute-notification": LocalJSX.DisputeNotification & JSXBase.HTMLAttributes<HTMLDisputeNotificationElement>;
4042
4107
  "dispute-response": LocalJSX.DisputeResponse & JSXBase.HTMLAttributes<HTMLDisputeResponseElement>;
4108
+ "document-upload-form-step": LocalJSX.DocumentUploadFormStep & JSXBase.HTMLAttributes<HTMLDocumentUploadFormStepElement>;
4109
+ "document-upload-list": LocalJSX.DocumentUploadList & JSXBase.HTMLAttributes<HTMLDocumentUploadListElement>;
4043
4110
  "duplicate-charge": LocalJSX.DuplicateCharge & JSXBase.HTMLAttributes<HTMLDuplicateChargeElement>;
4044
4111
  "electronic-evidence": LocalJSX.ElectronicEvidence & JSXBase.HTMLAttributes<HTMLElectronicEvidenceElement>;
4045
4112
  "form-address-fields": LocalJSX.FormAddressFields & JSXBase.HTMLAttributes<HTMLFormAddressFieldsElement>;
@@ -1 +1 @@
1
- import{A as e}from"./p-CYQvLgSs.js";import"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const t=e();class s{async fetchDispute(e,s){return t.get({endpoint:`disputes/${e}`,authToken:s})}async updateDisputeResponse(e,s,n){return t.patch({endpoint:`disputes/${e}/response`,body:n,authToken:s})}async submitDisputeResponse(e,s,n){return t.post({endpoint:`disputes/${e}/response`,body:n,authToken:s})}async createDisputeEvidence(e,s,n){return t.put({endpoint:`disputes/${e}/evidence`,body:n,authToken:s})}}var n,i;!function(e){e.nextStep="nextStep",e.previousStep="previousStep",e.cancelDispute="cancelDispute",e.respondToDispute="respondToDispute",e.submit="submit"}(n||(n={})),function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(i||(i={}));export{n as D,s as a}
1
+ import{A as e}from"./p-CYQvLgSs.js";import"./p-Dzv0P2Ly.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";const t=e();class s{async fetchDispute(e,s){return t.get({endpoint:`disputes/${e}`,authToken:s})}async updateDisputeResponse(e,s,n){return t.patch({endpoint:`disputes/${e}/response`,body:n,authToken:s})}async submitDisputeResponse(e,s,n){return t.post({endpoint:`disputes/${e}/response`,body:n,authToken:s})}async createDisputeEvidence(e,s,n){return t.put({endpoint:`disputes/${e}/evidence`,body:n,authToken:s})}}var n,i;!function(e){e.nextStep="nextStep",e.previousStep="previousStep",e.cancelDispute="cancelDispute",e.respondToDispute="respondToDispute",e.submit="submit"}(n||(n={})),function(e){e.disputeReason="dispute_reason",e.productOrService="product_or_service",e.customerDetails="customer_details",e.cancellationPolicy="cancellation_policy",e.refundPolicy="refund_policy",e.duplicateCharge="duplicate_charge",e.electronicEvidence="electronic_evidence",e.shippingDetails="shipping_details",e.additionalStatement="additional_statement"}(i||(i={}));export{n as D,s as a}
@@ -1 +1 @@
1
- import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-nb_LhbJq.js";import{m as i}from"./p-5G1OMxZz.js";import{C as d,e as c,g as f,f as l}from"./p-NZS8uCtH.js";import{J as r}from"./p-Axa3cgnH.js";import{c as h}from"./p-BdpSLMs7.js";import"./p-DVJaoI_m.js";import{b as o,d as b,s as p}from"./p-BRnBHsdq.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{P as n,M as m}from"./p-D1_eip6x.js";import{a as y,b as u,D as v,c as k,C as g,E as j}from"./p-Cu7hgXL1.js";import{S as C}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as w}from"./p-uZ5KAseb.js";import{a as x,B as D}from"./p-CHw7tICr.js";import"./p-CYQvLgSs.js";import"./p-HXpYMWUU.js";import"./p-Cm9f5fyh.js";import"./p-DAZd_gFd.js";import"./p-D8GTwl9v.js";import"./p-CPKMvyV_.js";const P=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(w,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(w,{width:"70%"})),e("div",{class:"col-12"},e(w,{width:"40%"})),e("div",{class:"col-12"},e(w,{width:"40%"})),e("div",{class:"col-12"},e(w,{width:"100%"})),e("div",{class:"col-12"},e(w,{width:"80%"}))),M=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event",7),this.recordClickEvent=a(this,"record-click-event",7),this.loading=!0}componentWillLoad(){h(),this.analytics=new r(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?(this.getPaymentDetails=i({id:this.paymentId,authToken:this.authToken,service:new s}),this.fetchData()):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:c.MISSING_PROPS,severity:d.ERROR}))}updateOnPropChange(){this.getPaymentDetails&&this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.errorMessage=null},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:t,message:e,severity:a})},final:()=>{this.loading=!1}})}get PaymentStatus(){return this.payment.status===f.disputed&&this.payment.disputes.some((e=>e.status===l.lost))?n.DISPUTE_LOST:this.payment.status}render(){return e(C,{key:"f4952600aea69aae085ac57364e96397d1a20e51"},this.loading&&e(P,{key:"2f819c97a1a6ddb9df2a11e0cd6a5bc013ed19ae"}),!this.loading&&this.errorMessage&&j(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"35a58e3917bdc3133f02374c0e031374be7c728c",errorMessage:this.errorMessage},e(y,{key:"dad5f79ea18ef718b92bf2c2abbbba34542d6caa",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},m(this.PaymentStatus),this.payment.expedited?e(x,{variant:D.WARNING,title:"Expedited",text:"Expedited"}):null),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(u,{key:"12e7cfb4f4f56a1af8403b935cb51db3751f1395",classes:"border-1 border-end",title:"Updated At",value:`${o(this.payment.updated_at)} ${b(this.payment.updated_at)}`}),e(u,{key:"023945353c0cbab340f4f510951164f110045ea5",classes:"border-1 border-end",title:"Created At",value:`${o(this.payment.created_at)} ${b(this.payment.created_at)}`}),e(u,{key:"dcb261f7c4faf53eb686cfd5c8e0ade39a72bdea",title:"ID",value:this.payment.id})),e("div",{key:"a7774df4ece900dc67494377cf648bf64f558490",slot:"detail-sections"},e(v,{key:"ef4a9197d4eb47d81c11c7f974f1e4058d5e3166",sectionTitle:"Details"}),e("div",{key:"17ef105d1b37ad34cce4bdd17cbf2e4023c0e2e5",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"dbb764a1a6cbe949d2e281334e2f420f957b98fe",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(k,{key:"7a3547ade7107456956618c72a95056a0771d219",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"94df0647f7286a4a7c9001f9e82b4277fe0f8457",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(k,{key:"59c13e257938124af50adfaa73571f152c402bd4",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(k,{key:"6abf719a072a3a1ea5878d999e517dafb7ba19d5",title:"Status",value:m(this.PaymentStatus)}),e(k,{key:"c494d2b4be8c9e13747f0299a618ea6c9ff723d7",title:"Payment ID",value:this.payment.id}),e(k,{key:"1024b282558896dcb2c4ab7718045d98a6f6853e",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"6bf6fb7f648609fdeaa4e5a0b6f3d4c7bcd4af97",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(k,{key:"43da8b6ab1aa87b6b938f1d0fd95708399cb9cc0",title:"Description",value:this.payment.description}),e(k,{key:"e6180466f4341e2c438f09cc42feb518f59aded4",title:"Expedited",value:this.payment.expedited?"Yes":"No"})),this.payment.payment_method.card&&[e(v,{key:"289f80acfa3cd41f82637e8f9d9e63dac4c11b5b",sectionTitle:"Payment Method"}),e("div",{key:"616a2e7ae000581dd481725c57a644fc3e0a9b7c",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"2c13ea8a771e2f155a9e3d5dbae78c7800f31adb",title:"ID",value:this.payment.payment_method.card.id}),e(k,{key:"62700836b3bd9656d07dc58d0d07d164c091cd74",title:"Payment Type",value:"Card"}),e(k,{key:"528ad4dddccaa7f5bc274b3b297557f659d46789",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(k,{key:"fdf2ad89e4e7ad253e16bff9038dc79da5a71b19",title:"Brand",value:p(this.payment.payment_method.card.brand)}),e(k,{key:"0b2c505e1fae49414414d5e839b1bdc849290c41",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(v,{key:"2a04be5ee508a547661e1ff947c2c9b40da2a192",sectionTitle:"Payment Method"}),e("div",{key:"1316f9c749960ca0ab4967ff03697583e690007d",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"46fe5297825ef0b9e3f34fdee6f47f3dd3b9272d",title:"ID",value:this.payment.payment_method.bank_account.id}),e(k,{key:"44f1f47522b94ce5e403d766ee71645b4285d675",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(k,{key:"f03369474996dc0ae52c7d909ac1bba51e291668",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(k,{key:"d697a0e2a954f0e4efb4cec27dcae9c57fa0ce54",title:"Account Owner",value:this.payment.payment_method.payersName}))],this.payment.metadata&&[e(v,{key:"7cdd88cc59c7852574b05e1709f85afe3bf7367e",sectionTitle:"Metadata"}),e("div",{key:"bde3519c811862185b0757fd7c8a2a0a05117466",class:"d-table gap-2 w-100"},e(g,{key:"7675f134c9580381d495a1d7534e73b77583cb8b",metadata:this.payment.metadata}))])))}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"],getPaymentDetails:["updateOnPropChange"]}}};export{M as justifi_payment_details}
1
+ import{h as e,r as t,c as a}from"./p-CV0Pyo1O.js";import{P as s}from"./p-n_pmf4AT.js";import{m as i}from"./p-vUN_uvAi.js";import{C as d,e as c,g as f,f as l}from"./p-Dzv0P2Ly.js";import{J as r}from"./p-H0ILKMD2.js";import{c as h}from"./p-D9rCHoO4.js";import"./p-DVJaoI_m.js";import{b as o,d as b,s as p}from"./p-BRnBHsdq.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{P as n,M as m}from"./p-D1_eip6x.js";import{a as y,b as u,D as v,c as k,C as j,E as C}from"./p-Cu7hgXL1.js";import{S as g}from"./p-DzEdYT8R.js";import"./p-CZfYo5-1.js";import{S as D}from"./p-uZ5KAseb.js";import{a as w,B as P}from"./p-CHw7tICr.js";import"./p-CYQvLgSs.js";import"./p-HXpYMWUU.js";import"./p-CDu7TeCZ.js";import"./p-D6Pw5qJ5.js";import"./p-D8GTwl9v.js";import"./p-CPKMvyV_.js";const x=()=>e("div",{class:"row gap-3"},e("div",{class:"col-12"},e(D,{width:"35%",height:"30px"})),e("div",{class:"col-12"},e(D,{width:"70%"})),e("div",{class:"col-12"},e(D,{width:"40%"})),e("div",{class:"col-12"},e(D,{width:"40%"})),e("div",{class:"col-12"},e(D,{width:"100%"})),e("div",{class:"col-12"},e(D,{width:"80%"}))),T=class{constructor(e){t(this,e),this.errorEvent=a(this,"error-event",7),this.recordClickEvent=a(this,"record-click-event",7),this.loading=!0}componentWillLoad(){h(),this.analytics=new r(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?(this.getPaymentDetails=i({id:this.paymentId,authToken:this.authToken,service:new s}),this.fetchData()):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:c.MISSING_PROPS,severity:d.ERROR}))}updateOnPropChange(){this.getPaymentDetails&&this.fetchData()}fetchData(){this.loading=!0,this.getPaymentDetails({onSuccess:({payment:e})=>{this.payment=e,this.errorMessage=null},onError:({error:e,code:t,severity:a})=>{this.errorMessage=e,this.errorEvent.emit({errorCode:t,message:e,severity:a})},final:()=>{this.loading=!1}})}get PaymentStatus(){return this.payment.status===f.disputed&&this.payment.disputes.some((e=>e.status===l.lost))?n.DISPUTE_LOST:this.payment.status}render(){return e(g,{key:"f4952600aea69aae085ac57364e96397d1a20e51"},this.loading&&e(x,{key:"2f819c97a1a6ddb9df2a11e0cd6a5bc013ed19ae"}),!this.loading&&this.errorMessage&&C(this.errorMessage),!this.loading&&!this.errorMessage&&this.payment&&e("justifi-details",{key:"35a58e3917bdc3133f02374c0e031374be7c728c",errorMessage:this.errorMessage},e(y,{key:"dad5f79ea18ef718b92bf2c2abbbba34542d6caa",slot:"head-info",badge:e("div",{class:"d-flex gap-1"},m(this.PaymentStatus),this.payment.expedited?e(w,{variant:P.WARNING,title:"Expedited",text:"Expedited"}):null),title:this.payment.formattedPaymentAmount(this.payment.amount)},e(u,{key:"12e7cfb4f4f56a1af8403b935cb51db3751f1395",classes:"border-1 border-end",title:"Updated At",value:`${o(this.payment.updated_at)} ${b(this.payment.updated_at)}`}),e(u,{key:"023945353c0cbab340f4f510951164f110045ea5",classes:"border-1 border-end",title:"Created At",value:`${o(this.payment.created_at)} ${b(this.payment.created_at)}`}),e(u,{key:"dcb261f7c4faf53eb686cfd5c8e0ade39a72bdea",title:"ID",value:this.payment.id})),e("div",{key:"a7774df4ece900dc67494377cf648bf64f558490",slot:"detail-sections"},e(v,{key:"ef4a9197d4eb47d81c11c7f974f1e4058d5e3166",sectionTitle:"Details"}),e("div",{key:"17ef105d1b37ad34cce4bdd17cbf2e4023c0e2e5",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"dbb764a1a6cbe949d2e281334e2f420f957b98fe",title:"Amount",value:this.payment.formattedPaymentAmount(this.payment.amount)}),e(k,{key:"7a3547ade7107456956618c72a95056a0771d219",title:"Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"94df0647f7286a4a7c9001f9e82b4277fe0f8457",title:"Refunded",value:this.payment.formattedPaymentAmount(this.payment.amount_refunded)}),e(k,{key:"59c13e257938124af50adfaa73571f152c402bd4",title:"Net",value:this.payment.formattedPaymentAmount(this.payment.balance)}),e(k,{key:"6abf719a072a3a1ea5878d999e517dafb7ba19d5",title:"Status",value:m(this.PaymentStatus)}),e(k,{key:"c494d2b4be8c9e13747f0299a618ea6c9ff723d7",title:"Payment ID",value:this.payment.id}),e(k,{key:"1024b282558896dcb2c4ab7718045d98a6f6853e",title:"Processing Fees",value:this.payment.formattedPaymentAmount(this.payment.fee_amount)}),e(k,{key:"6bf6fb7f648609fdeaa4e5a0b6f3d4c7bcd4af97",title:"Statement Descriptor",value:this.payment.statement_descriptor}),e(k,{key:"43da8b6ab1aa87b6b938f1d0fd95708399cb9cc0",title:"Description",value:this.payment.description}),e(k,{key:"e6180466f4341e2c438f09cc42feb518f59aded4",title:"Expedited",value:this.payment.expedited?"Yes":"No"})),this.payment.payment_method.card&&[e(v,{key:"289f80acfa3cd41f82637e8f9d9e63dac4c11b5b",sectionTitle:"Payment Method"}),e("div",{key:"616a2e7ae000581dd481725c57a644fc3e0a9b7c",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"2c13ea8a771e2f155a9e3d5dbae78c7800f31adb",title:"ID",value:this.payment.payment_method.card.id}),e(k,{key:"62700836b3bd9656d07dc58d0d07d164c091cd74",title:"Payment Type",value:"Card"}),e(k,{key:"528ad4dddccaa7f5bc274b3b297557f659d46789",title:"Last 4 Numbers",value:this.payment.payment_method.lastFourDigits}),e(k,{key:"fdf2ad89e4e7ad253e16bff9038dc79da5a71b19",title:"Brand",value:p(this.payment.payment_method.card.brand)}),e(k,{key:"0b2c505e1fae49414414d5e839b1bdc849290c41",title:"Cardholder",value:this.payment.payment_method.payersName}))],this.payment.payment_method.bank_account&&[e(v,{key:"2a04be5ee508a547661e1ff947c2c9b40da2a192",sectionTitle:"Payment Method"}),e("div",{key:"1316f9c749960ca0ab4967ff03697583e690007d",class:"d-flex flex-column gap-2 w-100"},e(k,{key:"46fe5297825ef0b9e3f34fdee6f47f3dd3b9272d",title:"ID",value:this.payment.payment_method.bank_account.id}),e(k,{key:"44f1f47522b94ce5e403d766ee71645b4285d675",title:"Last 4 Numbers",value:this.payment.last_four_digits}),e(k,{key:"f03369474996dc0ae52c7d909ac1bba51e291668",title:"Bank Name",value:this.payment.payment_method.bank_account.brand}),e(k,{key:"d697a0e2a954f0e4efb4cec27dcae9c57fa0ce54",title:"Account Owner",value:this.payment.payment_method.payersName}))],this.payment.metadata&&[e(v,{key:"7cdd88cc59c7852574b05e1709f85afe3bf7367e",sectionTitle:"Metadata"}),e("div",{key:"bde3519c811862185b0757fd7c8a2a0a05117466",class:"d-table gap-2 w-100"},e(j,{key:"7675f134c9580381d495a1d7534e73b77583cb8b",metadata:this.payment.metadata}))])))}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"],getPaymentDetails:["updateOnPropChange"]}}};export{T as justifi_payment_details}
@@ -1 +1 @@
1
- import{h as t,r as e,c as i}from"./p-CV0Pyo1O.js";import{l as s,C as a,e as r}from"./p-NZS8uCtH.js";import{J as n}from"./p-Axa3cgnH.js";import{c as o}from"./p-BdpSLMs7.js";import{T as c}from"./p-Ba8jdOkX.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{p as h}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as d,a as p}from"./p-Cm9f5fyh.js";import{m,S as u}from"./p-BxKbnILQ.js";import{S as l}from"./p-BqNNwq6C.js";import{T as b,a as f,b as v,c as g,d as k,e as y,f as j,g as C,h as w,i as _,j as T,k as S,l as O}from"./p-BICxxa69.js";import{T as D}from"./p-CZfYo5-1.js";import{B as I,a as P}from"./p-CHw7tICr.js";import{a6 as x,a7 as A}from"./p-CPKMvyV_.js";import{k as B}from"./p-BRnBHsdq.js";import{o as N,g as E}from"./p-Dw63wyhO.js";import"./p-DAZd_gFd.js";import"./p-CYQvLgSs.js";import"./p-D8GTwl9v.js";import"./p-CqiVXthx.js";const H={nickname:()=>t("th",{part:x,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:x,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:x,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:x,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:x,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:x,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:x,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:x,scope:"col",title:"The current status of each terminal"},"Status")},L={nickname:(e,i)=>t("td",{part:A(i)},e.nickname),model_name:(e,i)=>t("td",{part:A(i)},e.model_name),id:(e,i)=>t("td",{part:A(i)},e.id),provider:(e,i)=>t("td",{part:A(i)},B(e.provider)),provider_serial_number:(e,i)=>t("td",{part:A(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:A(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:A(i)},e.sub_account_name),status:(e,i)=>t("td",{part:A(i)},t(P,Object.assign({},{connected:{variant:I.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:I.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:I.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:I.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"},archived:{variant:I.SECONDARY,title:"This terminal is archived",text:"Archived"}}[e.status])))},q=class{constructor(t){e(this,t),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=h,this.pagingParams={},this.columns="nickname,provider_serial_number,status",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 i=this.terminals.find((t=>t.id===e));this.clickEvent.emit({name:D.row,data:i})}}componentWillLoad(){o(),this.analytics=new n(this),this.terminalsTable=new b(this.terminals,this.columns,H,L),this.initializeGetData(),this.getTerminals&&this.getSubAccounts&&this.fetchData(),N("set",(()=>{this.pagingParams={}})),N("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}updateOnPropChange(){this.fetchData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:e,service:i})=>async({params:r,onSuccess:n,onError:o})=>{var c,h;try{const m=await i.fetchTerminals(t,e,r);if(m.error)return o({error:p(m.error),code:d(null===(h=m.error)||void 0===h?void 0:h.code),severity:a.ERROR});{const t=Object.assign({},m.page_info);n({terminals:(null===(c=m.data)||void 0===c?void 0:c.map((t=>new s(t))))||[],pagingInfo:t})}}catch(t){const e=d(null==t?void 0:t.code);return o({error:t.message||t,code:e,severity:a.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new c}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:a.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({primaryAccountId:this.accountId,authToken:this.authToken,service:new u}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:e})=>{this.terminals=t,this.paging=e,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:e,severity:i})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:i}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var e;return t.sub_account_name=null===(e=this.subAccounts.find((e=>e.id===t.account_id)))||void 0===e?void 0:e.name,t})),this.loading=!1},onError:({error:t,code:e,severity:i})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:i}),this.loading=!1}})}get terminalParams(){const t=E();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(l,{key:"6388e9b0b7c6dcedc9f3db534d3a30d0a748929c"},t(f,{key:"e11b994e16e657aaaa7c6f29197865d0d6bfd1ba"},t(v,{key:"340980f75fef37841907835378d9c0ced1992b5c"},t(g,{key:"fdd3d1569b6a3df9d5d31fb2cc602ab054529fc6"},t(k,{key:"440d602ac5746635f92445c6216c807b9b13517e"},this.terminalsTable.columnData.map((t=>t)))),t(y,{key:"ccef66a47be1cfca09f10d450fb7eeaf241a17e0"},t(j,{key:"aea6e2f33e07c717f50065c12211f9f2d9266bec",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),t(C,{key:"7c92ba6cd398bae23587a2e1771bba7b75dc680c",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),t(w,{key:"3155cf655f5b8e4290e8cabdcdbd534159f22ddd",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((e,i)=>t(_,{"data-test-id":"table-row","data-row-entity-id":this.entityId[i],onClick:this.rowClickHandler},e)))),this.paging&&t(T,{key:"da9172d4bf4439456894b53a0cf13a82081909f0"},t(S,{key:"e6c0847dc330a0e32228f2020d22bbaf0e4ad439"},t(O,{key:"6761f623d70d13b13e92ec73c9b936d5bf85dd70",colSpan:this.terminalsTable.columnData.length},t("pagination-menu",{key:"4b490b5834be42664ebbc27b7c7a1b0c10bd433b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{q as justifi_terminals_list}
1
+ import{h as t,r as e,c as i}from"./p-CV0Pyo1O.js";import{l as s,C as a,e as r}from"./p-Dzv0P2Ly.js";import{J as o}from"./p-H0ILKMD2.js";import{c as n}from"./p-D9rCHoO4.js";import{T as c}from"./p-xWuaNtJy.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{p as h}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as d,a as p}from"./p-CDu7TeCZ.js";import{m,S as u}from"./p-C-zuQNNP.js";import{S as l}from"./p-DzEdYT8R.js";import{T as b,a as f,b as v,c as g,d as y,e as k,f as j,g as C,h as w,i as T,j as _,k as D,l as S}from"./p-BICxxa69.js";import{T as P}from"./p-CZfYo5-1.js";import{B as O,a as I}from"./p-CHw7tICr.js";import{a6 as x,a7 as A}from"./p-CPKMvyV_.js";import{k as N}from"./p-BRnBHsdq.js";import{o as E,g as z}from"./p-Dw63wyhO.js";import"./p-D6Pw5qJ5.js";import"./p-CYQvLgSs.js";import"./p-D8GTwl9v.js";import"./p-CqiVXthx.js";const H={nickname:()=>t("th",{part:x,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:x,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:x,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:x,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:x,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:x,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:x,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:x,scope:"col",title:"The current status of each terminal"},"Status")},L={nickname:(e,i)=>t("td",{part:A(i)},e.nickname),model_name:(e,i)=>t("td",{part:A(i)},e.model_name),id:(e,i)=>t("td",{part:A(i)},e.id),provider:(e,i)=>t("td",{part:A(i)},N(e.provider)),provider_serial_number:(e,i)=>t("td",{part:A(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:A(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:A(i)},e.sub_account_name),status:(e,i)=>t("td",{part:A(i)},t(I,Object.assign({},{connected:{variant:O.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:O.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:O.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:O.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"},archived:{variant:O.SECONDARY,title:"This terminal is archived",text:"Archived"}}[e.status])))},B=class{constructor(t){e(this,t),this.clickEvent=i(this,"click-event",7),this.errorEvent=i(this,"error-event",7),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=h,this.pagingParams={},this.columns="nickname,provider_serial_number,status",this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:P.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:P.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const i=this.terminals.find((t=>t.id===e));this.clickEvent.emit({name:P.row,data:i})}}componentWillLoad(){n(),this.analytics=new o(this),this.terminalsTable=new b(this.terminals,this.columns,H,L),this.initializeGetData(),this.getTerminals&&this.getSubAccounts&&this.fetchData(),E("set",(()=>{this.pagingParams={}})),E("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}updateOnPropChange(){this.fetchData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:e,service:i})=>async({params:r,onSuccess:o,onError:n})=>{var c,h;try{const m=await i.fetchTerminals(t,e,r);if(m.error)return n({error:p(m.error),code:d(null===(h=m.error)||void 0===h?void 0:h.code),severity:a.ERROR});{const t=Object.assign({},m.page_info);o({terminals:(null===(c=m.data)||void 0===c?void 0:c.map((t=>new s(t))))||[],pagingInfo:t})}}catch(t){const e=d(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:a.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new c}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:a.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({primaryAccountId:this.accountId,authToken:this.authToken,service:new u}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:e})=>{this.terminals=t,this.paging=e,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:e,severity:i})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:i}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var e;return t.sub_account_name=null===(e=this.subAccounts.find((e=>e.id===t.account_id)))||void 0===e?void 0:e.name,t})),this.loading=!1},onError:({error:t,code:e,severity:i})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:i}),this.loading=!1}})}get terminalParams(){const t=z();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let t=this.terminals.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.terminals.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(l,{key:"6388e9b0b7c6dcedc9f3db534d3a30d0a748929c"},t(f,{key:"e11b994e16e657aaaa7c6f29197865d0d6bfd1ba"},t(v,{key:"340980f75fef37841907835378d9c0ced1992b5c"},t(g,{key:"fdd3d1569b6a3df9d5d31fb2cc602ab054529fc6"},t(y,{key:"440d602ac5746635f92445c6216c807b9b13517e"},this.terminalsTable.columnData.map((t=>t)))),t(k,{key:"ccef66a47be1cfca09f10d450fb7eeaf241a17e0"},t(j,{key:"aea6e2f33e07c717f50065c12211f9f2d9266bec",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),t(C,{key:"7c92ba6cd398bae23587a2e1771bba7b75dc680c",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),t(w,{key:"3155cf655f5b8e4290e8cabdcdbd534159f22ddd",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((e,i)=>t(T,{"data-test-id":"table-row","data-row-entity-id":this.entityId[i],onClick:this.rowClickHandler},e)))),this.paging&&t(_,{key:"da9172d4bf4439456894b53a0cf13a82081909f0"},t(D,{key:"e6c0847dc330a0e32228f2020d22bbaf0e4ad439"},t(S,{key:"6761f623d70d13b13e92ec73c9b936d5bf85dd70",colSpan:this.terminalsTable.columnData.length},t("pagination-menu",{key:"4b490b5834be42664ebbc27b7c7a1b0c10bd433b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"],pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{B as justifi_terminals_list}