@justifi/webcomponents 6.12.6-rc.1 → 6.12.6

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 (328) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/{Analytics-CexlbLRl.js → Analytics-CuYtRPw5.js} +2 -2
  3. package/dist/cjs/{Plaid-KasiL5mp.js → Plaid-BRSyOOuw.js} +19 -14
  4. package/dist/cjs/{additional-questions-form-step_15.cjs.entry.js → additional-questions-form-step_14.cjs.entry.js} +169 -378
  5. package/dist/cjs/additional-questions_5.cjs.entry.js +7 -7
  6. package/dist/cjs/additional-statement_8.cjs.entry.js +1 -1
  7. package/dist/cjs/bank-account-billing-form-simple_4.cjs.entry.js +4 -4
  8. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  9. package/dist/cjs/{business-form-options-CnlrfbQ6.js → business-form-options-D_nM7NDk.js} +0 -51
  10. package/dist/cjs/{business-identity-schema-CC1wOwXd.js → business-identity-schema-DuFGX6_i.js} +7 -11
  11. package/dist/cjs/{business.service-BBovho58.js → business.service-Z9OACEQL.js} +1 -1
  12. package/dist/cjs/card-form.cjs.entry.js +2 -2
  13. package/dist/cjs/{check-pkg-version-jeIQGJ8A.js → check-pkg-version-CPWLIT6P.js} +1 -1
  14. package/dist/cjs/{checkout.service-C0M9hmsL.js → checkout.service-BZOyqXgW.js} +1 -1
  15. package/dist/cjs/{country-config-Ck-eEeZZ.js → country-config-aJp8ScEs.js} +0 -2
  16. package/dist/cjs/dispute-notification_2.cjs.entry.js +6 -6
  17. package/dist/cjs/{event-types-DDNVjmfR.js → event-types-AU1B76Vm.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 +4 -5
  20. package/dist/cjs/{get-business-Ggw-UjXj.js → get-business-aR-C83KX.js} +2 -2
  21. package/dist/cjs/{get-payment-details-BVKRwME1.js → get-payment-details-dwhA02Zl.js} +2 -2
  22. package/dist/cjs/{get-subaccounts-RRmcS9xU.js → get-subaccounts-B1jmSa2d.js} +2 -2
  23. package/dist/cjs/hidden-input_2.cjs.entry.js +1 -1
  24. package/dist/cjs/{index.esm-BNETBIV_.js → index.esm-C1ZPG85l.js} +18 -0
  25. package/dist/cjs/justifi-apple-pay_11.cjs.entry.js +11 -10
  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 +3 -3
  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 +2 -2
  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 +3 -3
  54. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +6 -6
  55. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -3
  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/{lodash-CxSkBibc.js → lodash-C4mGy21w.js} +38 -27
  59. package/dist/cjs/{package-CDegPd7E.js → package-Dxjq_cJI.js} +1 -1
  60. package/dist/cjs/payment-method-option.cjs.entry.js +1 -1
  61. package/dist/cjs/{payment-provisioning-actions-Cn8bgHKu.js → payment-provisioning-actions-BiSpysjW.js} +2 -2
  62. package/dist/cjs/payment-provisioning-form-buttons_2.cjs.entry.js +2 -3
  63. package/dist/cjs/{payment.service-CbIxt30x.js → payment.service-ByrgA_QZ.js} +1 -1
  64. package/dist/cjs/{payout.service-DVMvsdAf.js → payout.service-CnQm_BpU.js} +1 -1
  65. package/dist/cjs/{payouts-status-CzS2CLGW.js → payouts-status-AuS3Mp0V.js} +2 -2
  66. package/dist/cjs/{plaid.service-DNT_DX6z.js → plaid.service-Dlb8EUR8.js} +1 -1
  67. package/dist/cjs/{schema-validations-DackMxv7.js → schema-validations-DNPcvDh5.js} +8 -11
  68. package/dist/cjs/styled-host-DAi5SuFa.js +11 -0
  69. package/dist/cjs/{terminal.service-BBHixg-d.js → terminal.service-BdwHQ3Vv.js} +1 -1
  70. package/dist/cjs/{utils-kDsk4nqH.js → utils-FVGp6se3.js} +1 -1
  71. package/dist/cjs/webcomponents.cjs.js +1 -1
  72. package/dist/collection/api/Document.js +7 -14
  73. package/dist/collection/collection-manifest.json +0 -2
  74. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +2 -2
  75. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +3 -5
  76. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +2 -4
  77. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -46
  78. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/additional-questions-form-step.js +1 -1
  79. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +114 -6
  80. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  81. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +0 -8
  82. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +2 -4
  83. package/dist/collection/components/business-forms/payment-provisioning/justifi-payment-provisioning.js +1 -1
  84. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +2 -3
  85. package/dist/collection/components/business-forms/schemas/business-bank-account-schema.js +38 -10
  86. package/dist/collection/components/business-forms/schemas/business-core-info-schema.js +1 -1
  87. package/dist/collection/components/business-forms/schemas/business-identity-schema.js +3 -7
  88. package/dist/collection/components/business-forms/schemas/schema-validations.js +5 -8
  89. package/dist/collection/components/business-forms/utils/business-form-options.js +0 -50
  90. package/dist/collection/components/business-forms/utils/country-config.js +0 -2
  91. package/dist/collection/components/modular-checkout/sub-components/justifi-google-pay.js +8 -6
  92. package/dist/collection/ui-components/form/form-control-file.js +1 -1
  93. package/dist/docs.json +76 -502
  94. package/dist/esm/{Analytics-5J6H0ALl.js → Analytics-CwckfiSK.js} +2 -2
  95. package/dist/esm/{Plaid-BM3JUIG5.js → Plaid-l6nNIjab.js} +19 -15
  96. package/dist/esm/{additional-questions-form-step_15.entry.js → additional-questions-form-step_14.entry.js} +169 -377
  97. package/dist/esm/additional-questions_5.entry.js +8 -8
  98. package/dist/esm/additional-statement_8.entry.js +1 -1
  99. package/dist/esm/bank-account-billing-form-simple_4.entry.js +4 -4
  100. package/dist/esm/bank-account-form.entry.js +2 -2
  101. package/dist/esm/{business-form-options-DXjZp4Rl.js → business-form-options-DRalxlqN.js} +1 -51
  102. package/dist/esm/{business-identity-schema-D8L_UfWl.js → business-identity-schema-0Q3kck3C.js} +7 -11
  103. package/dist/esm/{business.service-C4BD3pf7.js → business.service-C31wbMVs.js} +1 -1
  104. package/dist/esm/card-form.entry.js +2 -2
  105. package/dist/esm/{check-pkg-version-C7cHTIM0.js → check-pkg-version-Dy2NK3Nn.js} +1 -1
  106. package/dist/esm/{checkout.service-DmWeKNQs.js → checkout.service-cVdOGDuI.js} +1 -1
  107. package/dist/esm/{country-config-BW2dUoTJ.js → country-config-CdvhLcnT.js} +0 -2
  108. package/dist/esm/dispute-notification_2.entry.js +6 -6
  109. package/dist/esm/{event-types-eIqsrwmW.js → event-types-DalU_6SB.js} +1 -1
  110. package/dist/esm/form-address-fields_3.entry.js +1 -1
  111. package/dist/esm/form-control-number_2.entry.js +4 -5
  112. package/dist/esm/{get-business-DtFHdc37.js → get-business-Gg6qn5on.js} +2 -2
  113. package/dist/esm/{get-payment-details-26GxiYgv.js → get-payment-details-BiWgSJau.js} +2 -2
  114. package/dist/esm/{get-subaccounts-xkGMPstt.js → get-subaccounts-CkjZeR9U.js} +2 -2
  115. package/dist/esm/hidden-input_2.entry.js +1 -1
  116. package/dist/esm/{index.esm-KCSohgHx.js → index.esm-BHdVU4hV.js} +18 -1
  117. package/dist/esm/justifi-apple-pay_11.entry.js +11 -10
  118. package/dist/esm/justifi-bank-account-billing-form-simple.entry.js +5 -5
  119. package/dist/esm/justifi-bank-account-form.entry.js +5 -5
  120. package/dist/esm/justifi-billing-form-full.entry.js +1 -1
  121. package/dist/esm/justifi-billing-form.entry.js +1 -1
  122. package/dist/esm/justifi-business-details.entry.js +8 -8
  123. package/dist/esm/justifi-business-form.entry.js +13 -13
  124. package/dist/esm/justifi-card-billing-form-simple.entry.js +1 -1
  125. package/dist/esm/justifi-card-form.entry.js +5 -5
  126. package/dist/esm/justifi-checkout.entry.js +5 -5
  127. package/dist/esm/justifi-checkouts-list-filters.entry.js +3 -3
  128. package/dist/esm/justifi-checkouts-list.entry.js +8 -8
  129. package/dist/esm/justifi-dispute-management.entry.js +7 -7
  130. package/dist/esm/justifi-gross-payment-chart.entry.js +6 -6
  131. package/dist/esm/justifi-order-terminals.entry.js +9 -9
  132. package/dist/esm/justifi-payment-details.entry.js +8 -8
  133. package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
  134. package/dist/esm/justifi-payment-transactions-list.entry.js +7 -7
  135. package/dist/esm/justifi-payments-list-filters.entry.js +2 -2
  136. package/dist/esm/justifi-payments-list.entry.js +7 -7
  137. package/dist/esm/justifi-payout-details.entry.js +8 -8
  138. package/dist/esm/justifi-payout-transactions-list.entry.js +7 -7
  139. package/dist/esm/justifi-payouts-list-filters.entry.js +2 -2
  140. package/dist/esm/justifi-payouts-list.entry.js +9 -9
  141. package/dist/esm/justifi-refund-payment.entry.js +9 -9
  142. package/dist/esm/justifi-save-new-payment-method.entry.js +1 -1
  143. package/dist/esm/justifi-season-interruption-insurance.entry.js +6 -6
  144. package/dist/esm/justifi-skeleton.entry.js +1 -1
  145. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +3 -3
  146. package/dist/esm/justifi-terminal-orders-list.entry.js +6 -6
  147. package/dist/esm/justifi-terminals-list-filters.entry.js +3 -3
  148. package/dist/esm/justifi-terminals-list.entry.js +8 -8
  149. package/dist/esm/loader.js +1 -1
  150. package/dist/esm/{lodash-CrGKVSPp.js → lodash-BF_QgjtL.js} +38 -27
  151. package/dist/esm/{package-8R9xLun-.js → package-DAZd_gFd.js} +1 -1
  152. package/dist/esm/payment-method-option.entry.js +1 -1
  153. package/dist/esm/{payment-provisioning-actions-fWdNDUdq.js → payment-provisioning-actions-cl5xIYnF.js} +2 -2
  154. package/dist/esm/payment-provisioning-form-buttons_2.entry.js +2 -3
  155. package/dist/esm/{payment.service-CWR7jF-K.js → payment.service-5_u-UzTY.js} +1 -1
  156. package/dist/esm/{payout.service-CFU362cH.js → payout.service-D2zS5y8N.js} +1 -1
  157. package/dist/esm/{payouts-status-D2G7FKu1.js → payouts-status-DCjCGTaa.js} +2 -2
  158. package/dist/esm/{plaid.service-0hd1i5Ga.js → plaid.service-BiJ65YG8.js} +1 -1
  159. package/dist/esm/{schema-validations-CjqWFLKt.js → schema-validations-A1o1biOB.js} +8 -11
  160. package/dist/esm/styled-host-D6byRazK.js +9 -0
  161. package/dist/esm/{terminal.service-Dr6dERcJ.js → terminal.service-CIxDfM7V.js} +1 -1
  162. package/dist/esm/{utils-q7KOrlSX.js → utils-C1B2hVAB.js} +1 -1
  163. package/dist/esm/webcomponents.js +1 -1
  164. package/dist/module/Plaid.js +19 -15
  165. package/dist/module/additional-questions-form-step2.js +5 -11
  166. package/dist/module/bank-account-document-form-inputs.js +1 -55
  167. package/dist/module/bank-account-document-form-inputs2.js +57 -0
  168. package/dist/module/business-bank-account-form-step2.js +177 -24
  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 +1 -51
  174. package/dist/module/business-identity-schema.js +3 -7
  175. package/dist/module/business-owners-form-step2.js +0 -8
  176. package/dist/module/business-representative-form-inputs2.js +3 -5
  177. package/dist/module/business-representative2.js +5 -6
  178. package/dist/module/button.js +1 -1
  179. package/dist/module/country-config.js +0 -2
  180. package/dist/module/form-control-number2.js +1 -1
  181. package/dist/module/form-control-textarea2.js +1 -1
  182. package/dist/module/form.js +18 -1
  183. package/dist/module/hidden-input2.js +1 -1
  184. package/dist/module/iframe-input2.js +1 -1
  185. package/dist/module/justifi-checkouts-list-filters.js +1 -1
  186. package/dist/module/justifi-checkouts-list.js +2 -2
  187. package/dist/module/justifi-dispute-management.js +1 -1
  188. package/dist/module/justifi-google-pay2.js +4 -3
  189. package/dist/module/justifi-modular-checkout2.js +1 -1
  190. package/dist/module/justifi-order-terminals.js +2 -2
  191. package/dist/module/justifi-payment-details.js +1 -1
  192. package/dist/module/justifi-payment-provisioning.js +27 -33
  193. package/dist/module/justifi-payment-transactions-list.js +2 -2
  194. package/dist/module/justifi-payments-list.js +1 -1
  195. package/dist/module/justifi-payout-details.js +1 -1
  196. package/dist/module/justifi-payout-transactions-list.js +2 -2
  197. package/dist/module/justifi-payouts-list-filters.js +1 -1
  198. package/dist/module/justifi-payouts-list.js +2 -2
  199. package/dist/module/justifi-refund-payment.js +1 -1
  200. package/dist/module/justifi-terminal-orders-list-filters.js +1 -1
  201. package/dist/module/justifi-terminal-orders-list.js +2 -2
  202. package/dist/module/justifi-terminals-list-filters.js +1 -1
  203. package/dist/module/justifi-terminals-list.js +2 -2
  204. package/dist/module/lodash.js +38 -27
  205. package/dist/module/owner-form-inputs2.js +3 -5
  206. package/dist/module/owner-form2.js +1 -10
  207. package/dist/module/package.js +1 -1
  208. package/dist/module/parts.js +1 -1
  209. package/dist/module/payment-provisioning-actions.js +1 -1
  210. package/dist/module/payment-provisioning-form-steps2.js +28 -35
  211. package/dist/module/plaid-verification2.js +1 -1
  212. package/dist/module/schema-validations.js +5 -8
  213. package/dist/module/skeleton.js +1 -1
  214. package/dist/module/styled-host.js +1 -1
  215. package/dist/module/table.js +1 -1
  216. package/dist/module/terminal-quantity-selector2.js +1 -1
  217. package/dist/types/api/Document.d.ts +2 -15
  218. package/dist/types/components/business-forms/owner-form/owner-form.d.ts +0 -2
  219. package/dist/types/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.d.ts +12 -1
  220. package/dist/types/components/business-forms/payment-provisioning/payment-provisioning-form-steps.d.ts +0 -1
  221. package/dist/types/components/business-forms/schemas/business-bank-account-schema.d.ts +4 -4
  222. package/dist/types/components/business-forms/utils/business-form-options.d.ts +0 -1
  223. package/dist/types/components/modular-checkout/sub-components/justifi-google-pay.d.ts +1 -1
  224. package/dist/types/components.d.ts +10 -71
  225. package/dist/webcomponents/p-034fa691.entry.js +1 -0
  226. package/dist/webcomponents/{p-086f7eea.entry.js → p-07eaee91.entry.js} +1 -1
  227. package/dist/webcomponents/{p-2e063c5d.entry.js → p-08ab97ce.entry.js} +1 -1
  228. package/dist/webcomponents/{p-80fdd013.entry.js → p-1f34b2f7.entry.js} +1 -1
  229. package/dist/webcomponents/{p-3bcac405.entry.js → p-279c17ac.entry.js} +1 -1
  230. package/dist/webcomponents/{p-29b82954.entry.js → p-2a5ee558.entry.js} +1 -1
  231. package/dist/webcomponents/p-2aac2ab6.entry.js +1 -0
  232. package/dist/webcomponents/p-37254105.entry.js +1 -0
  233. package/dist/webcomponents/{p-a7e0ab9b.entry.js → p-38209a25.entry.js} +1 -1
  234. package/dist/webcomponents/{p-4b14b7e7.entry.js → p-3cefb032.entry.js} +1 -1
  235. package/dist/webcomponents/{p-8ed1bc07.entry.js → p-3ef07f42.entry.js} +1 -1
  236. package/dist/webcomponents/{p-a5ad9183.entry.js → p-41637e4a.entry.js} +1 -1
  237. package/dist/webcomponents/{p-92d8a14b.entry.js → p-4b39a470.entry.js} +1 -1
  238. package/dist/webcomponents/{p-6b21947c.entry.js → p-4ee55e7d.entry.js} +1 -1
  239. package/dist/webcomponents/p-5G1OMxZz.js +1 -0
  240. package/dist/webcomponents/p-6904c62c.entry.js +1 -0
  241. package/dist/webcomponents/{p-5f071ee0.entry.js → p-7377f7d1.entry.js} +1 -1
  242. package/dist/webcomponents/{p-48a866ae.entry.js → p-78c4668b.entry.js} +1 -1
  243. package/dist/webcomponents/{p-c2e09203.entry.js → p-8e56430a.entry.js} +1 -1
  244. package/dist/webcomponents/{p-947950cc.entry.js → p-9153c121.entry.js} +1 -1
  245. package/dist/webcomponents/p-9b5ca32c.entry.js +1 -0
  246. package/dist/webcomponents/{p-04d6d725.entry.js → p-9d676f54.entry.js} +1 -1
  247. package/dist/webcomponents/{p-BrFax4_P.js → p-APOabprT.js} +1 -1
  248. package/dist/webcomponents/p-Aacb4jqT.js +1 -0
  249. package/dist/webcomponents/{p-CeW0EPHy.js → p-Axa3cgnH.js} +1 -1
  250. package/dist/webcomponents/{p-CL8LyqRI.js → p-BJu1-9kE.js} +1 -1
  251. package/dist/webcomponents/{p-czJ2qSU1.js → p-BXyADlAH.js} +1 -1
  252. package/dist/webcomponents/{p-xWuaNtJy.js → p-Ba8jdOkX.js} +1 -1
  253. package/dist/webcomponents/{p-DvnFba1A.js → p-BdpSLMs7.js} +1 -1
  254. package/dist/webcomponents/p-BqNNwq6C.js +1 -0
  255. package/dist/webcomponents/{p-BBSnDYJw.js → p-Bt4GjEWL.js} +1 -1
  256. package/dist/webcomponents/{p-C-zuQNNP.js → p-BxKbnILQ.js} +1 -1
  257. package/dist/webcomponents/{p-D9sqTVmd.js → p-CKiAlBsU.js} +1 -1
  258. package/dist/webcomponents/{p-CDu7TeCZ.js → p-Cm9f5fyh.js} +1 -1
  259. package/dist/webcomponents/p-D8ytux5N.js +1 -0
  260. package/dist/webcomponents/p-DAZd_gFd.js +1 -0
  261. package/dist/webcomponents/{p-DdeBubpX.js → p-Dk26hk5T.js} +1 -1
  262. package/dist/webcomponents/p-DrMJliVY.js +1 -0
  263. package/dist/webcomponents/{p-Dzv0P2Ly.js → p-NZS8uCtH.js} +1 -1
  264. package/dist/webcomponents/p-OeJ-3w3l.js +9 -0
  265. package/dist/webcomponents/p-XIWgia4J.js +1 -0
  266. package/dist/webcomponents/{p-8db8d7e7.entry.js → p-a2c25cc4.entry.js} +1 -1
  267. package/dist/webcomponents/{p-de1ccbea.entry.js → p-a56e43a1.entry.js} +1 -1
  268. package/dist/webcomponents/{p-a3b48ba3.entry.js → p-a7a1b168.entry.js} +1 -1
  269. package/dist/webcomponents/{p-85c0abdb.entry.js → p-a9e82502.entry.js} +1 -1
  270. package/dist/webcomponents/{p-BSyTbuZy.js → p-av6jyzyC.js} +1 -1
  271. package/dist/webcomponents/{p-0b169fac.entry.js → p-b0b6083f.entry.js} +1 -1
  272. package/dist/webcomponents/{p-86eb32d8.entry.js → p-b21010cb.entry.js} +1 -1
  273. package/dist/webcomponents/{p-1e34c488.entry.js → p-b62ff001.entry.js} +1 -1
  274. package/dist/webcomponents/{p-c1b48216.entry.js → p-b8351983.entry.js} +1 -1
  275. package/dist/webcomponents/{p-3960e6b7.entry.js → p-bc2dddf3.entry.js} +1 -1
  276. package/dist/webcomponents/{p-3e10a0de.entry.js → p-c4767c7b.entry.js} +1 -1
  277. package/dist/webcomponents/p-c8bc235f.entry.js +1 -0
  278. package/dist/webcomponents/{p-0a4fcb15.entry.js → p-ca87c609.entry.js} +1 -1
  279. package/dist/webcomponents/{p-ba2ab989.entry.js → p-cf3e3394.entry.js} +1 -1
  280. package/dist/webcomponents/{p-e0e6c2df.entry.js → p-d01a1076.entry.js} +1 -1
  281. package/dist/webcomponents/{p-a4520dba.entry.js → p-d5edbea3.entry.js} +1 -1
  282. package/dist/webcomponents/{p-b17ce21d.entry.js → p-d79c5ee4.entry.js} +1 -1
  283. package/dist/webcomponents/{p-562447ad.entry.js → p-e02d7751.entry.js} +4 -4
  284. package/dist/webcomponents/{p-c3cc4ad6.entry.js → p-e07506b7.entry.js} +1 -1
  285. package/dist/webcomponents/{p-cc558e25.entry.js → p-e17b92ec.entry.js} +1 -1
  286. package/dist/webcomponents/p-ea254f14.entry.js +1 -0
  287. package/dist/webcomponents/{p-ca1c2048.entry.js → p-ebb7b693.entry.js} +1 -1
  288. package/dist/webcomponents/{p-0e4cda77.entry.js → p-f1b9cbf0.entry.js} +1 -1
  289. package/dist/webcomponents/{p-Cz0yhyYu.js → p-fE5A37L5.js} +1 -1
  290. package/dist/webcomponents/p-ff8cf16c.entry.js +1 -0
  291. package/dist/webcomponents/p-nb_LhbJq.js +1 -0
  292. package/dist/webcomponents/{p--RbNhyet.js → p-oTtn8xDw.js} +1 -1
  293. package/dist/webcomponents/webcomponents.esm.js +1 -1
  294. package/package.json +14 -14
  295. package/dist/cjs/bank-account-document-form-inputs.cjs.entry.js +0 -21
  296. package/dist/cjs/styled-host-Ch0-dxF-.js +0 -11
  297. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.js +0 -435
  298. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-list.js +0 -52
  299. package/dist/collection/components/business-forms/payment-provisioning/document-upload/document-upload-options.js +0 -72
  300. package/dist/esm/bank-account-document-form-inputs.entry.js +0 -19
  301. package/dist/esm/styled-host-D84RBv1W.js +0 -9
  302. package/dist/module/document-upload-form-step.d.ts +0 -11
  303. package/dist/module/document-upload-form-step.js +0 -6
  304. package/dist/module/document-upload-form-step2.js +0 -397
  305. package/dist/module/document-upload-list.d.ts +0 -11
  306. package/dist/module/document-upload-list.js +0 -6
  307. package/dist/module/document-upload-list2.js +0 -46
  308. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-form-step.d.ts +0 -44
  309. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-list.d.ts +0 -6
  310. package/dist/types/components/business-forms/payment-provisioning/document-upload/document-upload-options.d.ts +0 -44
  311. package/dist/webcomponents/p-37676092.entry.js +0 -1
  312. package/dist/webcomponents/p-54ee2a30.entry.js +0 -1
  313. package/dist/webcomponents/p-58adef16.entry.js +0 -1
  314. package/dist/webcomponents/p-8R9xLun-.js +0 -1
  315. package/dist/webcomponents/p-92e7ce54.entry.js +0 -1
  316. package/dist/webcomponents/p-9ce2a98a.entry.js +0 -1
  317. package/dist/webcomponents/p-B1yVkh15.js +0 -1
  318. package/dist/webcomponents/p-BzXQDB0t.js +0 -1
  319. package/dist/webcomponents/p-C_ifLmT1.js +0 -9
  320. package/dist/webcomponents/p-D9ZHVy-j.js +0 -1
  321. package/dist/webcomponents/p-DV4n8kZd.js +0 -1
  322. package/dist/webcomponents/p-DzEdYT8R.js +0 -1
  323. package/dist/webcomponents/p-a2ed63df.entry.js +0 -1
  324. package/dist/webcomponents/p-a9976353.entry.js +0 -1
  325. package/dist/webcomponents/p-c9599fc7.entry.js +0 -1
  326. package/dist/webcomponents/p-cab840bd.entry.js +0 -1
  327. package/dist/webcomponents/p-n_pmf4AT.js +0 -1
  328. package/dist/webcomponents/p-vUN_uvAi.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { h } from '@stencil/core/internal/client';
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';
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';
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 { B as card, a0 as image, a1 as buttonLink } from './parts.js';
2
+ import { z 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,19 +20,7 @@ export declare enum EntityDocumentType {
20
20
  governmentId = "government_id",
21
21
  profitAndLossStatement = "profit_and_loss_statement",
22
22
  taxReturn = "tax_return",
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"
23
+ other = "other"
36
24
  }
37
25
  export declare enum EntityDocumentStatus {
38
26
  pending = "pending",
@@ -49,7 +37,6 @@ export interface DocumentRecordData {
49
37
  document_type: EntityDocumentType;
50
38
  file_name: string;
51
39
  file_type: string;
52
- identity_id?: string;
53
40
  }
54
41
  export declare class EntityDocumentStorage {
55
42
  voided_check: EntityDocument[];
@@ -71,7 +58,7 @@ export declare class EntityDocument {
71
58
  document_type: EntityDocumentType;
72
59
  presigned_url: string | null;
73
60
  record_data: DocumentRecordData | null;
74
- constructor(fileData: EntityFileData, business_id: string, identity_id?: string);
61
+ constructor(fileData: EntityFileData, business_id: string);
75
62
  getFileData(): Promise<ArrayBuffer>;
76
63
  setPresignedUrl(url: string): void;
77
64
  }
@@ -26,8 +26,6 @@ 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>;
31
29
  validate(): Promise<boolean>;
32
30
  submit(): Promise<boolean>;
33
31
  validateAndSubmit(event: any): Promise<void>;
@@ -1,15 +1,19 @@
1
1
  import { EventEmitter } from '../../../../stencil-public-runtime';
2
- import { ComponentErrorEvent, ComponentFormStepCompleteEvent, IBankAccount } from '../../../../api';
2
+ import { ComponentErrorEvent, ComponentFormStepCompleteEvent, IBankAccount, EntityDocument, EntityDocumentStorage, FileSelectEvent } 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;
9
11
  isLoading: boolean;
10
12
  viewMode: 'readonly' | 'plaid' | 'manual';
11
13
  getBusiness: Function;
12
14
  postBankAccount: Function;
15
+ postDocumentRecord: Function;
16
+ postDocument: Function;
13
17
  bankAccountVerification: boolean;
14
18
  platformAccountId: string | null;
15
19
  authToken: string;
@@ -30,6 +34,7 @@ export declare class BusinessBankAccountFormStep {
30
34
  private getSchema;
31
35
  initializeFormController: () => void;
32
36
  inputHandler: (name: string, value: string) => void;
37
+ storeFiles: (e: CustomEvent<FileSelectEvent>) => void;
33
38
  get postPayload(): {
34
39
  account_owner_name: string;
35
40
  account_type: string;
@@ -55,9 +60,15 @@ export declare class BusinessBankAccountFormStep {
55
60
  handleToggleToManualEntry: () => void;
56
61
  handleToggleToPlaidVerification: () => void;
57
62
  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;
58
68
  private renderBankAccountInputs;
59
69
  private renderReadonlyView;
60
70
  private renderPlaidView;
61
71
  private renderManualEntryView;
72
+ private renderDocumentUploads;
62
73
  render(): any;
63
74
  }
@@ -16,7 +16,6 @@ export declare class PaymentProvisioningFormSteps {
16
16
  4: () => any;
17
17
  5: () => any;
18
18
  6: () => any;
19
- 7: () => any;
20
19
  };
21
20
  render(): any;
22
21
  }
@@ -1,17 +1,17 @@
1
1
  import { CountryCode } from '../../../utils/country-codes';
2
- export declare const businessBankAccountSchemaUSA: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
2
+ export declare const businessBankAccountSchemaUSA: (documents: any[], 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: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
7
+ export declare const businessBankAccountSchemaCAN: (documents: any[], 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: (allowOptionalFields?: boolean) => import("yup").ObjectSchema<{
12
+ export declare const businessBankAccountSchema: (documents: any[], 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) => any>;
17
+ export declare const bankAccountSchemaByCountry: Record<CountryCode, (allowOptionalFields?: boolean, documents?: any[]) => any>;
@@ -6,6 +6,5 @@ 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[];
10
9
  export declare const bankAccountTypeOptions: BusinessFormOption[];
11
10
  export {};
@@ -2,7 +2,7 @@ import { EventEmitter } from "../../../stencil-public-runtime";
2
2
  export declare class JustifiGooglePay {
3
3
  private iframeElement;
4
4
  environment: "TEST" | "PRODUCTION";
5
- merchantName?: string;
5
+ merchantDisplayName: string;
6
6
  iframeOrigin: string;
7
7
  iframeReady: boolean;
8
8
  sdkLoaded: boolean;
@@ -16,7 +16,6 @@ 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";
20
19
  import { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
21
20
  import { IPaymentMethodMetadata } from "./api/PaymentMethod";
22
21
  import { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
@@ -38,7 +37,6 @@ export { CountryCode } from "./utils/country-codes";
38
37
  export { FormController as FormController1 } from "./ui-components/form/form";
39
38
  export { Placement, PositioningStrategy } from "@popperjs/core";
40
39
  export { Dispute } from "./api/Dispute";
41
- export { UploadedDocumentEntry } from "./components/business-forms/payment-provisioning/document-upload/document-upload-options";
42
40
  export { EntityDocumentType, FileSelectEvent as FileSelectEvent1 } from "./api/Document";
43
41
  export { IPaymentMethodMetadata } from "./api/PaymentMethod";
44
42
  export { ApplePayButtonStyle, ApplePayButtonType, IApplePayToken } from "./api/ApplePay";
@@ -240,19 +238,6 @@ export namespace Components {
240
238
  */
241
239
  "disputeResponse": ApiDisputeResponse | any;
242
240
  }
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
- }
256
241
  interface DuplicateCharge {
257
242
  "disputeResponse": any;
258
243
  /**
@@ -706,10 +691,13 @@ export namespace Components {
706
691
  }
707
692
  interface JustifiGooglePay {
708
693
  /**
709
- * @default "TEST"
694
+ * @default "PRODUCTION"
710
695
  */
711
696
  "environment": "TEST" | "PRODUCTION";
712
- "merchantName"?: string;
697
+ /**
698
+ * @default "JustiFi Checkout"
699
+ */
700
+ "merchantDisplayName": string;
713
701
  }
714
702
  interface JustifiGrossPaymentChart {
715
703
  "accountId": string;
@@ -967,13 +955,11 @@ export namespace Components {
967
955
  "authToken": string;
968
956
  "businessId"?: string;
969
957
  "country": CountryCode;
970
- "getOwnershipPercentage": () => Promise<string | null>;
971
958
  "newFormOpen"?: boolean;
972
959
  "ownerId"?: string;
973
960
  "ownersLength"?: number;
974
961
  "removeOwner": (id: string) => void;
975
962
  "returnOwnerData": () => Promise<string>;
976
- "setOwnershipPercentageError": (message: string) => Promise<void>;
977
963
  "submit": () => Promise<boolean>;
978
964
  "validate": () => Promise<boolean>;
979
965
  "validateAndSubmit": (event: any) => Promise<void>;
@@ -1128,10 +1114,6 @@ export interface DisputeResponseCustomEvent<T> extends CustomEvent<T> {
1128
1114
  detail: T;
1129
1115
  target: HTMLDisputeResponseElement;
1130
1116
  }
1131
- export interface DocumentUploadFormStepCustomEvent<T> extends CustomEvent<T> {
1132
- detail: T;
1133
- target: HTMLDocumentUploadFormStepElement;
1134
- }
1135
1117
  export interface FormControlCheckboxCustomEvent<T> extends CustomEvent<T> {
1136
1118
  detail: T;
1137
1119
  target: HTMLFormControlCheckboxElement;
@@ -1615,31 +1597,6 @@ declare global {
1615
1597
  prototype: HTMLDisputeResponseElement;
1616
1598
  new (): HTMLDisputeResponseElement;
1617
1599
  };
1618
- interface HTMLDocumentUploadFormStepElementEventMap {
1619
- "error-event": ComponentErrorEvent1;
1620
- "complete-form-step-event": ComponentFormStepCompleteEvent1;
1621
- "formLoading": boolean;
1622
- }
1623
- interface HTMLDocumentUploadFormStepElement extends Components.DocumentUploadFormStep, HTMLStencilElement {
1624
- addEventListener<K extends keyof HTMLDocumentUploadFormStepElementEventMap>(type: K, listener: (this: HTMLDocumentUploadFormStepElement, ev: DocumentUploadFormStepCustomEvent<HTMLDocumentUploadFormStepElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
1625
- addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1626
- addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1627
- addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1628
- removeEventListener<K extends keyof HTMLDocumentUploadFormStepElementEventMap>(type: K, listener: (this: HTMLDocumentUploadFormStepElement, ev: DocumentUploadFormStepCustomEvent<HTMLDocumentUploadFormStepElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
1629
- removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1630
- removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1631
- removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1632
- }
1633
- var HTMLDocumentUploadFormStepElement: {
1634
- prototype: HTMLDocumentUploadFormStepElement;
1635
- new (): HTMLDocumentUploadFormStepElement;
1636
- };
1637
- interface HTMLDocumentUploadListElement extends Components.DocumentUploadList, HTMLStencilElement {
1638
- }
1639
- var HTMLDocumentUploadListElement: {
1640
- prototype: HTMLDocumentUploadListElement;
1641
- new (): HTMLDocumentUploadListElement;
1642
- };
1643
1600
  interface HTMLDuplicateChargeElement extends Components.DuplicateCharge, HTMLStencilElement {
1644
1601
  }
1645
1602
  var HTMLDuplicateChargeElement: {
@@ -2750,8 +2707,6 @@ declare global {
2750
2707
  "customer-details": HTMLCustomerDetailsElement;
2751
2708
  "dispute-notification": HTMLDisputeNotificationElement;
2752
2709
  "dispute-response": HTMLDisputeResponseElement;
2753
- "document-upload-form-step": HTMLDocumentUploadFormStepElement;
2754
- "document-upload-list": HTMLDocumentUploadListElement;
2755
2710
  "duplicate-charge": HTMLDuplicateChargeElement;
2756
2711
  "electronic-evidence": HTMLElectronicEvidenceElement;
2757
2712
  "form-address-fields": HTMLFormAddressFieldsElement;
@@ -3039,21 +2994,6 @@ declare namespace LocalJSX {
3039
2994
  "onError-event"?: (event: DisputeResponseCustomEvent<ComponentErrorEvent>) => void;
3040
2995
  "onSubmit-event"?: (event: DisputeResponseCustomEvent<ComponentSubmitEvent>) => void;
3041
2996
  }
3042
- interface DocumentUploadFormStep {
3043
- "allowOptionalFields"?: boolean;
3044
- "authToken": string;
3045
- "businessId": string;
3046
- "country": CountryCode;
3047
- "onComplete-form-step-event"?: (event: DocumentUploadFormStepCustomEvent<ComponentFormStepCompleteEvent1>) => void;
3048
- "onError-event"?: (event: DocumentUploadFormStepCustomEvent<ComponentErrorEvent1>) => void;
3049
- "onFormLoading"?: (event: DocumentUploadFormStepCustomEvent<boolean>) => void;
3050
- }
3051
- interface DocumentUploadList {
3052
- /**
3053
- * @default []
3054
- */
3055
- "documents"?: UploadedDocumentEntry[];
3056
- }
3057
2997
  interface DuplicateCharge {
3058
2998
  "disputeResponse": any;
3059
2999
  /**
@@ -3531,10 +3471,13 @@ declare namespace LocalJSX {
3531
3471
  }
3532
3472
  interface JustifiGooglePay {
3533
3473
  /**
3534
- * @default "TEST"
3474
+ * @default "PRODUCTION"
3535
3475
  */
3536
3476
  "environment"?: "TEST" | "PRODUCTION";
3537
- "merchantName"?: string;
3477
+ /**
3478
+ * @default "JustiFi Checkout"
3479
+ */
3480
+ "merchantDisplayName"?: string;
3538
3481
  "onGooglePayCancelled"?: (event: JustifiGooglePayCustomEvent<void>) => void;
3539
3482
  "onGooglePayCompleted"?: (event: JustifiGooglePayCustomEvent<{
3540
3483
  success: boolean;
@@ -3971,8 +3914,6 @@ declare namespace LocalJSX {
3971
3914
  "customer-details": CustomerDetails;
3972
3915
  "dispute-notification": DisputeNotification;
3973
3916
  "dispute-response": DisputeResponse;
3974
- "document-upload-form-step": DocumentUploadFormStep;
3975
- "document-upload-list": DocumentUploadList;
3976
3917
  "duplicate-charge": DuplicateCharge;
3977
3918
  "electronic-evidence": ElectronicEvidence;
3978
3919
  "form-address-fields": FormAddressFields;
@@ -4099,8 +4040,6 @@ declare module "@stencil/core" {
4099
4040
  "customer-details": LocalJSX.CustomerDetails & JSXBase.HTMLAttributes<HTMLCustomerDetailsElement>;
4100
4041
  "dispute-notification": LocalJSX.DisputeNotification & JSXBase.HTMLAttributes<HTMLDisputeNotificationElement>;
4101
4042
  "dispute-response": LocalJSX.DisputeResponse & JSXBase.HTMLAttributes<HTMLDisputeResponseElement>;
4102
- "document-upload-form-step": LocalJSX.DocumentUploadFormStep & JSXBase.HTMLAttributes<HTMLDocumentUploadFormStepElement>;
4103
- "document-upload-list": LocalJSX.DocumentUploadList & JSXBase.HTMLAttributes<HTMLDocumentUploadListElement>;
4104
4043
  "duplicate-charge": LocalJSX.DuplicateCharge & JSXBase.HTMLAttributes<HTMLDuplicateChargeElement>;
4105
4044
  "electronic-evidence": LocalJSX.ElectronicEvidence & JSXBase.HTMLAttributes<HTMLElectronicEvidenceElement>;
4106
4045
  "form-address-fields": LocalJSX.FormAddressFields & JSXBase.HTMLAttributes<HTMLFormAddressFieldsElement>;
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as a}from"./p-CV0Pyo1O.js";import{c as i}from"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{j as s,C as o,e as r}from"./p-NZS8uCtH.js";import{p as c}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{J as n}from"./p-Axa3cgnH.js";import{c as h}from"./p-BdpSLMs7.js";import{g as d,a as p}from"./p-Cm9f5fyh.js";import{P as l}from"./p-Dk26hk5T.js";import{T as f,a as u,b as m,c as b,d as y,e as _,f as w,g as v,h as T,i as g,j,k,l as C}from"./p-BICxxa69.js";import{S as D}from"./p-BqNNwq6C.js";import{T as P}from"./p-CZfYo5-1.js";import{a as S}from"./p-BRnBHsdq.js";import{a6 as I,a7 as q}from"./p-CPKMvyV_.js";import"./p-D8GTwl9v.js";import"./p-DAZd_gFd.js";import"./p-CYQvLgSs.js";import"./p-CqiVXthx.js";const x={id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of each transaction"},"ID"),account_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the account associated with each transaction"},"Account ID"),payout_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the payout associated with each transaction"},"Payout ID"),financial_transaction_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the financial transaction associated with the payment balance transaction"},"Financial Transaction ID"),amount:()=>t("th",{part:I,scope:"col",title:"The dollar amount of each transaction"},"Amount"),fee:()=>t("th",{part:I,scope:"col",title:"The fee associated with each transaction"},"Fee"),net:()=>t("th",{part:I,scope:"col",title:"The net amount of each transaction"},"Net"),currency:()=>t("th",{part:I,scope:"col",title:"The currency of each transaction"},"Currency"),description:()=>t("th",{part:I,scope:"col",title:"The description of each transaction"},"Description"),source_id:()=>t("th",{part:I,scope:"col",title:"The unique identifier of the source object associated with the payment balance transaction"},"Source ID"),txn_type:()=>t("th",{part:I,scope:"col",title:"The type of each transaction"},"Type"),created_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was made"},"Processed On"),available_on:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction will be available"},"Available On"),updated_at:()=>t("th",{part:I,scope:"col",title:"The date and time each transaction was last updated"},"Updated On")},O={fee:"Fee",payment:"Payment",payout:"Payout",seller_payment_refund:"Seller Payment Refund",dispute_amount_collected:"Dispute Amount Collected",dispute_fee_collected:"Dispute Fee Collected",seller_payment:"Seller Payment",transfer:"Transfer",partner_platform_proceeds_credit:"Partner Platform Proceeds Credit"},A={id:e=>t("td",{part:q(e.id)},e.id),account_id:e=>t("td",{part:q(e.account_id)},e.account_id),payout_id:e=>t("td",{part:q(e.payout_id)},e.payout_id),financial_transaction_id:e=>t("td",{part:q(e.financial_transaction_id)},e.financial_transaction_id),amount:e=>t("td",{part:q(e.amount)},e.formattedPaymentAmount(e.amount)),fee:e=>t("td",{part:q(e.fee)},e.formattedPaymentAmount(e.fee)),net:e=>t("td",{part:q(e.net)},e.formattedPaymentAmount(e.net)),currency:e=>t("td",{part:q(e.currency)},e.currency),description:e=>t("td",{part:q(e.description)},e.description),source_id:e=>t("td",{part:q(e.source_id)},e.source_id),txn_type:e=>t("td",{part:q(e.txn_type)},O[e.txn_type]),created_at:e=>t("td",{part:q(e.created_at)},t("div",{class:"fw-bold"},S(e.created_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.created_at,{showTime:!0}))),available_on:e=>t("td",{part:q(e.available_on)},t("div",{class:"fw-bold"},S(e.available_on,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.available_on,{showTime:!0}))),updated_at:e=>t("td",{part:q(e.updated_at)},t("div",{class:"fw-bold"},S(e.updated_at,{showDisplayDate:!0})),t("div",{class:"fw-bold"},S(e.updated_at,{showTime:!0})))},B=class{constructor(t){e(this,t),this.clickEvent=a(this,"click-event",7),this.errorEvent=a(this,"error-event",7),this.balanceTransactions=[],this.isLoading=!0,this.errorMessage=null,this.paging=c,this.pagingParams={},this.columns="created_at,txn_type,description,amount,fee,net",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 a=this.balanceTransactions.find((t=>t.id===e));this.clickEvent.emit({name:P.row,data:a})}}componentWillLoad(){this.transactionsTable=new f(this.balanceTransactions,this.columns,x,A),h(),this.analytics=new n(this),this.initializeApi()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeApi()}handleError(t,e,a){this.isLoading=!1,this.errorEvent.emit({errorCode:t,message:e,severity:a})}initializeApi(){this.payoutId&&this.authToken?(({accountId:t,authToken:e,service:a})=>async({params:i,onSuccess:r,onError:c,final:n})=>{var h;try{const n=await a.fetchPayoutTransactions(t,e,i);n.error?c({error:p(n.error),code:d(null===(h=n.error)||void 0===h?void 0:h.code),severity:o.ERROR}):r({balanceTransactions:n.data.map((t=>new s(t))),pagingInfo:Object.assign({},n.page_info)})}catch(t){const e=d(null==t?void 0:t.code);c({error:p(t),code:e,severity:o.ERROR})}finally{n()}})({accountId:i.accountId,authToken:this.authToken,service:new l})({params:this.requestParams,onSuccess:({balanceTransactions:t,pagingInfo:e})=>{this.balanceTransactions=t,this.paging=e,this.transactionsTable.collectionData=this.balanceTransactions},onError:({error:t,code:e,severity:a})=>{this.errorMessage=t.message,this.handleError(t,e,a)},final:()=>{this.isLoading=!1}}):(this.errorMessage="payout-id and auth-token props are required",this.handleError(r.MISSING_PROPS,this.errorMessage,o.ERROR))}get entityId(){return this.balanceTransactions.map((t=>t.id))}get showEmptyState(){return!this.isLoading&&!this.errorMessage&&this.transactionsTable.rowData.length<1}get showErrorState(){return!this.isLoading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.isLoading}get requestParams(){return Object.assign({payout_id:this.payoutId,limit:"15"},this.pagingParams)}render(){return t(D,{key:"f60ae9206262ae4b7f8852ac0d6e7089b4838c81"},t(u,{key:"39d31f954e05e6c941e6064a994193cc3b45cd14"},t(m,{key:"007b157cc0b2c41f81cb4af0c7d72964b309ad68"},t(b,{key:"b23c5ea0497058cb8e8c48f7c44290e22e0014b7"},t(y,{key:"0ee5a4b9099853cdd4dbad93774d01f691ebe4f0"},this.transactionsTable.columnData.map((t=>t)))),t(_,{key:"3ded164da6ca49b74ab137386b5ff2c364b4e569"},t(w,{key:"e22ea675edfbe08f6f75e3649d598b6bf1f76c44",columnSpan:this.transactionsTable.columnKeys.length,isLoading:this.isLoading}),t(v,{key:"4f64b72463bebfb7c93351379f29e8321744309a",isEmpty:this.showEmptyState,columnSpan:this.transactionsTable.columnKeys.length}),t(T,{key:"62dccb5e3dabceb85f27da6d1e7837bf20eb0a1c",columnSpan:this.transactionsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.transactionsTable.rowData.map(((e,a)=>t(g,{"data-test-id":"table-row","data-row-entity-id":this.entityId[a],onClick:this.rowClickHandler},e)))),this.paging&&t(j,{key:"a3633714d3d8ca82c40ad3f7eac5bbc92ee9b7a3"},t(k,{key:"97753d854fbeea88174fdf2c8a3abdbf5068a4ca"},t(C,{key:"fb1f2991c433824e404711c38891580d58079278",colSpan:this.transactionsTable.columnData.length},t("pagination-menu",{key:"077b2fa6ebe37283e39c7061682cd52653694b2c",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{pagingParams:["propChanged"],payoutId:["propChanged"],authToken:["propChanged"]}}};export{B as justifi_payout_transactions_list}
@@ -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-Dzv0P2Ly.js";import{J as n}from"./p-CeW0EPHy.js";import{c as o}from"./p-DvnFba1A.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 T,i as w,j as _,k as S,l as D}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 E}from"./p-BRnBHsdq.js";import{o as N,g as z}from"./p-Dw63wyhO.js";import"./p-8R9xLun-.js";import"./p-CYQvLgSs.js";import"./p-D8GTwl9v.js";import"./p-CqiVXthx.js";const L={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")},B={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)},E(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])))},H=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(){o(),this.analytics=new n(this),this.terminalsTable=new b(this.terminals,this.columns,L,B),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=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(T,{key:"3155cf655f5b8e4290e8cabdcdbd534159f22ddd",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((e,i)=>t(w,{"data-test-id":"table-row","data-row-entity-id":this.entityId[i],onClick:this.rowClickHandler},e)))),this.paging&&t(_,{key:"da9172d4bf4439456894b53a0cf13a82081909f0"},t(S,{key:"e6c0847dc330a0e32228f2020d22bbaf0e4ad439"},t(D,{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{H 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-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 +1 @@
1
- import{h as t,r as e,c as s}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{k as a,C as i,e as o}from"./p-Dzv0P2Ly.js";import{p as r}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as c,a as h}from"./p-CDu7TeCZ.js";import{c as n}from"./p-DvnFba1A.js";import{J as p}from"./p-CeW0EPHy.js";import{C as d}from"./p-Cz0yhyYu.js";import{m as u,S as m}from"./p-C-zuQNNP.js";import{S as f}from"./p-DzEdYT8R.js";import{T as b,a as l,b as y,c as k,d as g,e as C,f as v,g as j,h as _,i as w,j as T,k as S,l as P}from"./p-BICxxa69.js";import{T as x}from"./p-CZfYo5-1.js";import{d as A,b as I}from"./p-BRnBHsdq.js";import{B as D,a as O}from"./p-CHw7tICr.js";import{a6 as E,a7 as z}from"./p-CPKMvyV_.js";import{o as H,g as L}from"./p-CpGEMRkH.js";import"./p-D8GTwl9v.js";import"./p-8R9xLun-.js";import"./p-CYQvLgSs.js";import"./p-CqiVXthx.js";const B={created_at:()=>t("th",{part:E,scope:"col",title:"The date each checkout occurred"},"Processed On"),payment_amount:()=>t("th",{part:E,scope:"col",title:"The dollar amount of each checkout"},"Payment Amount"),payment_description:()=>t("th",{part:E,scope:"col",title:"The description of each checkout"},"Payment Description"),sub_account_name:()=>t("th",{part:E,scope:"col",title:"The sub account associated with the checkout"},"Sub Account"),payment_mode:()=>t("th",{part:E,scope:"col",title:"The payment mode of each checkout"},"Payment Mode"),status:()=>t("th",{part:E,scope:"col",title:"The current status of each checkout"},"Status")},G={created_at:(e,s)=>t("td",{part:z(s)},t("div",{class:"fw-bold"},I(e.created_at)),t("div",{class:"fw-bold"},A(e.created_at))),payment_amount:(e,s)=>t("td",{part:z(s)},e.formattedPaymentAmount(e.payment_amount)),payment_description:(e,s)=>t("td",{part:z(s)},e.payment_description),sub_account_name:(e,s)=>t("td",{part:z(s)},e.sub_account_name),payment_mode:(e,s)=>t("td",{part:z(s)},e.payment_mode),status:(e,s)=>t("td",{part:z(s)},t(O,Object.assign({},{created:{variant:D.PRIMARY,title:"The checkout has been created",text:"Created"},completed:{variant:D.SUCCESS,title:"The checkout has been completed",text:"Completed"},attempted:{variant:D.SECONDARY,title:"The checkout has been attempted",text:"Attempted"},expired:{variant:D.DANGER,title:"The checkout has expired",text:"Expired"}}[e.status])))},M=class{constructor(t){e(this,t),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.columns="created_at,payment_amount,payment_description,payment_mode,status",this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=r,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:x.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:x.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const s=this.checkouts.find((t=>t.id===e));this.clickEvent.emit({name:x.row,data:s})}}componentWillLoad(){n(),this.analytics=new p(this),this.checkoutsTable=new b(this.checkouts,this.columns,B,G),this.initializeGetData(),this.getCheckouts&&this.fetchData(),H("set",(()=>{this.pagingParams={}})),H("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}authPropChanged(){this.initializeGetData(),this.getCheckouts&&this.fetchData()}pagingOrColumnsChanged(){this.getCheckouts&&this.fetchData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){const t=this.subAccountId||this.accountId;t&&this.authToken?this.getCheckouts=(({accountId:t,authToken:e,service:s})=>async({params:o,onSuccess:r,onError:n})=>{var p,d;try{const u=await s.fetchCheckouts(t,e,o);if(u.error)return n({error:h(u.error),code:c(null===(d=u.error)||void 0===d?void 0:d.code),severity:i.ERROR});{const t=Object.assign({},u.page_info);r({checkouts:(null===(p=u.data)||void 0===p?void 0:p.map((t=>new a(t))))||[],pagingInfo:t})}}catch(t){const e=c(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:i.ERROR})}})({accountId:t,authToken:this.authToken,service:new d}):(this.errorMessage="Account ID/Sub Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=u({primaryAccountId:this.accountId,authToken:this.authToken,service:new m}))}fetchData(){this.getCheckouts&&(this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:e})=>{this.checkouts=t,this.paging=e,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:e,severity:s})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:s}),this.loading=!1}}))}async fetchSubAccounts(){this.getSubAccounts?this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.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:s})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:s}),this.loading=!1}}):this.loading=!1}get checkoutParams(){const t=L();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){const t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(f,{key:"2f9efac8723333029415ef131516946912bb313c"},t(l,{key:"024c7a532533721acda9740a0888b1c15fa624fe"},t(y,{key:"06bf1c6db731eb5857b08615222ca47a85ffc4a8"},t(k,{key:"0754f9cd87a3b32a5368e7fb7538071cf6be0505"},t(g,{key:"5db4c5beea0e6e9afc29e16b5789a32ad94509dd"},this.checkoutsTable.columnData.map((t=>t)))),t(C,{key:"9140294035b04b549578d74374271f8a9fd78162"},t(v,{key:"bf495d00b9bc4ee28b67c8f1b3258306f9202142",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),t(j,{key:"92f8a1245cc022fa3b254bb1fe8d659f75c62923",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),t(_,{key:"2e6ab100026afb29f199dd33e52de5ae77e6576c",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((e,s)=>t(w,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},e)))),this.paging&&t(T,{key:"3a1b55572eb0fc2ffcef1a39f6bfae5693056752"},t(S,{key:"f61a3cc86fda3ec95075381403916f5fb1c46ca6"},t(P,{key:"7d937a0d228062f42f49dca5bdb436d54354563e",colSpan:this.checkoutsTable.columnData.length},t("pagination-menu",{key:"05454876b7faeeb73fb8f896a2425e5f9db12ee3",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["authPropChanged"],authToken:["authPropChanged"],subAccountId:["authPropChanged"],pagingParams:["pagingOrColumnsChanged"],columns:["pagingOrColumnsChanged"]}}};export{M as justifi_checkouts_list}
1
+ import{h as t,r as e,c as s}from"./p-CV0Pyo1O.js";import"./p-DVJaoI_m.js";import"./p-HXpYMWUU.js";import{k as a,C as i,e as o}from"./p-NZS8uCtH.js";import{p as r}from"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import{g as c,a as h}from"./p-Cm9f5fyh.js";import{c as n}from"./p-BdpSLMs7.js";import{J as p}from"./p-Axa3cgnH.js";import{C as d}from"./p-fE5A37L5.js";import{m as u,S as m}from"./p-BxKbnILQ.js";import{S as f}from"./p-BqNNwq6C.js";import{T as b,a as l,b as y,c as k,d as g,e as C,f as v,g as j,h as _,i as w,j as S,k as T,l as A}from"./p-BICxxa69.js";import{T as x}from"./p-CZfYo5-1.js";import{d as I,b as P}from"./p-BRnBHsdq.js";import{B as O,a as D}from"./p-CHw7tICr.js";import{a6 as E,a7 as B}from"./p-CPKMvyV_.js";import{o as H,g as L}from"./p-CpGEMRkH.js";import"./p-D8GTwl9v.js";import"./p-DAZd_gFd.js";import"./p-CYQvLgSs.js";import"./p-CqiVXthx.js";const M={created_at:()=>t("th",{part:E,scope:"col",title:"The date each checkout occurred"},"Processed On"),payment_amount:()=>t("th",{part:E,scope:"col",title:"The dollar amount of each checkout"},"Payment Amount"),payment_description:()=>t("th",{part:E,scope:"col",title:"The description of each checkout"},"Payment Description"),sub_account_name:()=>t("th",{part:E,scope:"col",title:"The sub account associated with the checkout"},"Sub Account"),payment_mode:()=>t("th",{part:E,scope:"col",title:"The payment mode of each checkout"},"Payment Mode"),status:()=>t("th",{part:E,scope:"col",title:"The current status of each checkout"},"Status")},q={created_at:(e,s)=>t("td",{part:B(s)},t("div",{class:"fw-bold"},P(e.created_at)),t("div",{class:"fw-bold"},I(e.created_at))),payment_amount:(e,s)=>t("td",{part:B(s)},e.formattedPaymentAmount(e.payment_amount)),payment_description:(e,s)=>t("td",{part:B(s)},e.payment_description),sub_account_name:(e,s)=>t("td",{part:B(s)},e.sub_account_name),payment_mode:(e,s)=>t("td",{part:B(s)},e.payment_mode),status:(e,s)=>t("td",{part:B(s)},t(D,Object.assign({},{created:{variant:O.PRIMARY,title:"The checkout has been created",text:"Created"},completed:{variant:O.SUCCESS,title:"The checkout has been completed",text:"Completed"},attempted:{variant:O.SECONDARY,title:"The checkout has been attempted",text:"Attempted"},expired:{variant:O.DANGER,title:"The checkout has expired",text:"Expired"}}[e.status])))},G=class{constructor(t){e(this,t),this.clickEvent=s(this,"click-event",7),this.errorEvent=s(this,"error-event",7),this.columns="created_at,payment_amount,payment_description,payment_mode,status",this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=r,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:x.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:x.next})},this.rowClickHandler=t=>{const e=t.target.closest("tr").dataset.rowEntityId;if(!e)return;const s=this.checkouts.find((t=>t.id===e));this.clickEvent.emit({name:x.row,data:s})}}componentWillLoad(){n(),this.analytics=new p(this),this.checkoutsTable=new b(this.checkouts,this.columns,M,q),this.initializeGetData(),this.getCheckouts&&this.fetchData(),H("set",(()=>{this.pagingParams={}})),H("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}authPropChanged(){this.initializeGetData(),this.getCheckouts&&this.fetchData()}pagingOrColumnsChanged(){this.getCheckouts&&this.fetchData()}initializeGetData(){this.initializeGetCheckouts(),this.initializeGetSubAccounts()}initializeGetCheckouts(){const t=this.subAccountId||this.accountId;t&&this.authToken?this.getCheckouts=(({accountId:t,authToken:e,service:s})=>async({params:o,onSuccess:r,onError:n})=>{var p,d;try{const u=await s.fetchCheckouts(t,e,o);if(u.error)return n({error:h(u.error),code:c(null===(d=u.error)||void 0===d?void 0:d.code),severity:i.ERROR});{const t=Object.assign({},u.page_info);r({checkouts:(null===(p=u.data)||void 0===p?void 0:p.map((t=>new a(t))))||[],pagingInfo:t})}}catch(t){const e=c(null==t?void 0:t.code);return n({error:t.message||t,code:e,severity:i.ERROR})}})({accountId:t,authToken:this.authToken,service:new d}):(this.errorMessage="Account ID/Sub Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=u({primaryAccountId:this.accountId,authToken:this.authToken,service:new m}))}fetchData(){this.getCheckouts&&(this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:e})=>{this.checkouts=t,this.paging=e,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:e,severity:s})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:s}),this.loading=!1}}))}async fetchSubAccounts(){this.getSubAccounts?this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.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:s})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:e,message:t,severity:s}),this.loading=!1}}):this.loading=!1}get checkoutParams(){const t=L();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){const t=this.checkouts.map((t=>t.account_id));return{sub_account_id:[...new Set(t)].join(",")}}get entityId(){return this.checkouts.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.checkoutsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return t(f,{key:"2f9efac8723333029415ef131516946912bb313c"},t(l,{key:"024c7a532533721acda9740a0888b1c15fa624fe"},t(y,{key:"06bf1c6db731eb5857b08615222ca47a85ffc4a8"},t(k,{key:"0754f9cd87a3b32a5368e7fb7538071cf6be0505"},t(g,{key:"5db4c5beea0e6e9afc29e16b5789a32ad94509dd"},this.checkoutsTable.columnData.map((t=>t)))),t(C,{key:"9140294035b04b549578d74374271f8a9fd78162"},t(v,{key:"bf495d00b9bc4ee28b67c8f1b3258306f9202142",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),t(j,{key:"92f8a1245cc022fa3b254bb1fe8d659f75c62923",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),t(_,{key:"2e6ab100026afb29f199dd33e52de5ae77e6576c",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((e,s)=>t(w,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},e)))),this.paging&&t(S,{key:"3a1b55572eb0fc2ffcef1a39f6bfae5693056752"},t(T,{key:"f61a3cc86fda3ec95075381403916f5fb1c46ca6"},t(A,{key:"7d937a0d228062f42f49dca5bdb436d54354563e",colSpan:this.checkoutsTable.columnData.length},t("pagination-menu",{key:"05454876b7faeeb73fb8f896a2425e5f9db12ee3",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})})))))))}static get watchers(){return{accountId:["authPropChanged"],authToken:["authPropChanged"],subAccountId:["authPropChanged"],pagingParams:["pagingOrColumnsChanged"],columns:["pagingOrColumnsChanged"]}}};export{G as justifi_checkouts_list}
@@ -1 +1 @@
1
- import{r as e,h as a}from"./p-CV0Pyo1O.js";import{c as t,a as i,F as c}from"./p-D9sqTVmd.js";import{a9 as d}from"./p-CPKMvyV_.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().nullable()});var o,l;!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"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){const e=new Promise(((e,a)=>{const t=new FileReader;t.onload=a=>{e(a.target.result)},t.onerror=()=>{a(new Error("Error reading file"))},t.readAsArrayBuffer(this._file)}));return await e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"6981b81dee8ead47d8e86c501b82d61aa4c337b9"},a("div",{key:"0bf8ad743eaf5fe2e8c68d79947a4c2303e782f1",class:"row gy-3"},a("div",{key:"bdd3e46477ed7667a73a81d98c62e1121660b820",class:"col-12"},a("h2",{key:"b0b8e093b3c7204526b19fc54f80ea8c681ff22e",class:"h5",part:d},"Additional Evidence")),a("div",{key:"15570a6b33fab873a7fc9faa544c8fb234515f38",class:"col-12"},a("form-control-textarea",{key:"68e08b8e96dbb74c35f1fabbb769aa95a3e0ada9",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"f684ffc7e55aac7d0667326c99480b796f2a9cfc",class:"col-12"},a("form-control-file-v2",{key:"8ea248120f9f2ed5fb689a1a25855266dbe561a0",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"debb9fe05382d0806038547b61fe3201845db2a1"},a("div",{key:"030d5be9a41dff1954049c6ac33a79024741c43c",class:"row gy-3"},a("div",{key:"d5da527af347d6c29c30f5ed5b5295b9ef693e7f",class:"col-12"},a("h2",{key:"3f8d2da0485bd28220ae9f66db87fab49e86a734",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"d7fa3aacd80ad375ba58d1c86d8cf9d00c4cce6e",class:"col-12"},a("form-control-textarea",{key:"ca14e78ef0dcbad3b2a76cb230c2eb4a7c56f877",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"e8f10ab0e5e3e9c7a0f90aa13e8680607bb64a3e",class:"col-12"},a("form-control-textarea",{key:"5ca2d11d67301b512756cbc4355939b9433be033",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"36b8ef8f62721f220a05b1571bb347641b433b56",class:"col-12"},a("form-control-file-v2",{key:"c04f383cf55abd36b753718c2170d64f97935e7f",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"91e26b2e75fdd29814c58122e5aeae0d4d696032"},a("div",{key:"029a3828b8682fdd10af400dccceff109f866509",class:"row gy-3"},a("div",{key:"71fa3ded5566c5c18c682b8cfdfdcc5ebba2db44",class:"col-12"},a("h2",{key:"95eb1ed9da9cd955fa9c4c7a83368ac3c3378d5b",class:"h5",part:d},"Customer Details")),a("div",{key:"9450f8bd033efc7d48d62ce343b8b43833887f63",class:"col-12"},a("form-control-text",{key:"5690f7d9a46e2d58bdc24af0aab3798664f21745",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"a12aa4cb464e5df7f045302b08801adca70005f6",class:"col-12"},a("form-control-text",{key:"39cdb0b558b87a7eae0528ea40b9ca4175b4cf7c",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"13604ae63374c6fa1805d8c4be0ba55fc166a924",class:"col-12"},a("form-control-textarea",{key:"60a110f277175418c2ec0938600ad4b04f885ee3",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"abaa8888fff9952b3433c49e82a7150d6cd971dd",class:"col-12"},a("form-control-file-v2",{key:"e2e79edd8eaafd93cfdb91fd6a3b77645c1d28f2",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"04bfc4bf3e735cccf70fb83d2e0882662b389727",class:"col-12"},a("form-control-file-v2",{key:"476d3df1f072afdf95a6ad83e8b94b5946d66186",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"4bd4aad3fbdaac994ee97aa1421a6f380657cfee"},a("div",{key:"53548ff2b4bb09c2b1d078b2657127802422558a",class:"row gy-3"},a("div",{key:"25658729932e2eb1d0706bd83106a92976e09b91",class:"col-12"},a("h2",{key:"885bf37ba0a013397d4fef68683b24e9e8e1bed6",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"2f38e6451c2d982900729639994977b8ef8f8c04",class:"col-12"},a("form-control-text",{key:"8cf20ffcd748bee860c1c8a52326a265bbe32696",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"e61d85188051830d2e674cfc39dab73ada597c66",class:"col-12"},a("form-control-textarea",{key:"762f300d71a99a31030ed052299129ae8457ad4c",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"c5a1d7368132ba063d080ec7d071bd9131381ad2",class:"col-12"},a("form-control-file-v2",{key:"3bd9928e8a212e1665d446cb31ae9e02d6645437",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"00fa5deacbf19befd07d7d8764db8e3474377d5a"},a("div",{key:"be3d0b6775e78352bdaf4d0e739da61444fae572",class:"row gy-3"},a("div",{key:"e55a58628d1baad34be38d5d21598c6a372dd3c3",class:"col-12"},a("h2",{key:"463ec945a9cc0e46350b13c774b634ef25bde2e9",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"5576a4d1b32a0c2d2d4341bf591721aed6fcf6a4",class:"col-12"},a("form-control-text",{key:"9f64b68724ba8b2bdf435b02077fd362f8fe1ab1",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"e5b2635ede15e41e9e686ab338448d3c2fdf8166",class:"col-12"},a("form-control-file-v2",{key:"5137a992c79a1ccfcb8f3a114d1a12823b597dd2",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:i().nullable(),service_date:i().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"d0b168de486d51cd6141f2d80441b7e5f4fac5cc"},a("div",{key:"bea13ed13614f43b801be60c46673fb98ff09cc8",class:"row gy-3"},a("div",{key:"1163ad6cff89e6fb29b16622e1aed6e55a5ee435",class:"col-12"},a("h2",{key:"6f4fc9439e0a95d6e5992d7655f1c6e8f1b2b7bd",class:"h5",part:d},"Product & Service Details")),a("div",{key:"3111413dc874eaa80e21ec6838d8c0896f38ce2e",class:"col-12"},a("form-control-text",{key:"3a18e08d653c67912f904337e37d786588e50217",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"ea2202cf65741022ff7363cc325948944a18afb2",class:"col-12"},a("form-control-date",{key:"c8ceda1e61e9dbf7496173ec30e0c8f6d1b48f91",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"fb3e555b7781977e80541d1b2d6e7bd10b4ec087",class:"col-12"},a("form-control-file-v2",{key:"2b459a198427db073a6d5e2a1ed5141cc6fc2d20",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"f04cacfa7617a6430a0e4d264248dfa1606ef988"},a("div",{key:"aa3b2d3fcd2263e6d5033b68b9524250bb51d7fa",class:"row gy-3"},a("div",{key:"e2154a203be02f1f6ed60666799db30f6b2e10fe",class:"col-12"},a("h2",{key:"2856f16f60d6310c7dd64c86de1ebf7e01fac1fc",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"94187589fdeb685fcc99e5ea2c6868ceedfd5ed2",class:"col-12"},a("form-control-textarea",{key:"fbaa1a08ab910c4ac31a53bd1385a05abcff0bb5",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"45e893fa517222ac88333b306ae28fc1eb09daa0",class:"col-12"},a("form-control-textarea",{key:"646a2b77b2e896523a5e3ec3da07e020c5a72c32",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"3f4369cb2f2aac9ede8f386b338c9637ab4f5b8f",class:"col-12"},a("form-control-file-v2",{key:"867c6f97af1710b6119984bd1f87f3a5eb358dc6",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"066f2d66a0dd5be5c47d44620c295b952a4755cd",class:"col-12"},a("form-control-file-v2",{key:"2036cbddd0ebf663401154120b5c1627fdc93df3",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"3b414c89e4d310b598685ef4e0595361edbe4783"},a("div",{key:"8f630c3bff6432da2184524865d8f322c53c3685",class:"row gy-3"},a("div",{key:"116988f4f62d30c4b5312604b3cc3d1df831a5bd",class:"col-12"},a("h2",{key:"f79794380f6b9ff7e964bea19a1898f9f190f0ff",class:"h5",part:d},"Shipping Details")),a("div",{key:"b7448564e27dd9237f61df0e7c690c5705f97941",class:"col-12"},a("form-control-text",{key:"d03af28966dec1ba0ba16f8adf34ee4aae7a077e",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"5632f97cacae9d17864e14a41789ead3b39f2ca0",class:"col-12"},a("form-control-text",{key:"9f6ff174dfcedb7a7f74a9e75a46164fcebe6095",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"e7fb2b0187e8e4ea8fb30fd316291465b41f4a9d",class:"col-12"},a("form-control-date",{key:"06f39b93c95cbe6b4897585dd9ab06ad636dd933",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"1d0a48b701a12129ebfa39b7482145b32006d854",class:"col-12"},a("form-control-textarea",{key:"f98b3cc3ef9423c31e3dc195a4b9896fbc3da1c9",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"82379a765e791a5b373a3c01b8fec6fe05ffa2d5",class:"col-12"},a("form-control-file-v2",{key:"cff1198af3f29e837b48b46eed5f385da9994a66",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as additional_statement,h as cancellation_policy,v as customer_details,m as duplicate_charge,_ as electronic_evidence,g as product_or_service,j as refund_policy,T as shipping_details}
1
+ import{r as e,h as a}from"./p-CV0Pyo1O.js";import{c as t,a as i,F as c}from"./p-CKiAlBsU.js";import{a9 as d}from"./p-CPKMvyV_.js";import"./p-BFTU3MAI.js";const s=t({additional_statement:i().nullable()});var o,l;!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"}(o||(o={})),function(e){e.activity_log="activity_log",e.cancellationPolicy="cancellation_policy",e.customerCommunication="customer_communication",e.customerSignature="customer_signature",e.duplicateChargeDocumentation="duplicate_charge_documentation",e.receipt="receipt",e.refundPolicy="refund_policy",e.serviceDocumentation="service_documentation",e.shippingDocumentation="shipping_documentation",e.uncategorizedFile="uncategorized_file"}(l||(l={}));class n{set presignedUrl(e){this._presignedUrl=e}get presignedUrl(){return this._presignedUrl}async getFileString(){const e=new Promise(((e,a)=>{const t=new FileReader;t.onload=a=>{e(a.target.result)},t.onerror=()=>{a(new Error("Error reading file"))},t.readAsArrayBuffer(this._file)}));return await e}constructor(e,a){this._file=e,this.file_name=e.name,this.file_type=e.type,this.dispute_evidence_type=a}}const r=(e,a)=>{const t=e.target,i=t.name,c=t.files;a[i]=[];for(const e of c)a[i].push(new n(e,i))},f=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.acceptedTerms=!1,this.documents={uncategorized_file:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.additionalStatement)))}componentWillLoad(){this.form=new c(s)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"6981b81dee8ead47d8e86c501b82d61aa4c337b9"},a("div",{key:"0bf8ad743eaf5fe2e8c68d79947a4c2303e782f1",class:"row gy-3"},a("div",{key:"bdd3e46477ed7667a73a81d98c62e1121660b820",class:"col-12"},a("h2",{key:"b0b8e093b3c7204526b19fc54f80ea8c681ff22e",class:"h5",part:d},"Additional Evidence")),a("div",{key:"15570a6b33fab873a7fc9faa544c8fb234515f38",class:"col-12"},a("form-control-textarea",{key:"68e08b8e96dbb74c35f1fabbb769aa95a3e0ada9",label:"Is there anything else you would like to say about this dispute?",name:"additional_statement",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.additional_statement,inputHandler:this.inputHandler,errorText:this.errors.additional_statement})),a("div",{key:"f684ffc7e55aac7d0667326c99480b796f2a9cfc",class:"col-12"},a("form-control-file-v2",{key:"8ea248120f9f2ed5fb689a1a25855266dbe561a0",label:"Additional files",name:"uncategorized_file",multiple:!0,helpText:"Upload any additional pieces of evidence that have not already been provided.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.uncategorized_file}))))}},b=t({cancellation_policy_disclosure:i().nullable(),cancellation_rebuttal:i().nullable()}),h=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={cancellation_policy:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.cancellationPolicy)))}componentWillLoad(){this.form=new c(b)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"debb9fe05382d0806038547b61fe3201845db2a1"},a("div",{key:"030d5be9a41dff1954049c6ac33a79024741c43c",class:"row gy-3"},a("div",{key:"d5da527af347d6c29c30f5ed5b5295b9ef693e7f",class:"col-12"},a("h2",{key:"3f8d2da0485bd28220ae9f66db87fab49e86a734",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"d7fa3aacd80ad375ba58d1c86d8cf9d00c4cce6e",class:"col-12"},a("form-control-textarea",{key:"ca14e78ef0dcbad3b2a76cb230c2eb4a7c56f877",label:"Cancellation Policy Disclosure",name:"cancellation_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.cancellation_policy_disclosure,inputHandler:this.inputHandler,errorText:this.errors.cancellation_policy_disclosure})),a("div",{key:"e8f10ab0e5e3e9c7a0f90aa13e8680607bb64a3e",class:"col-12"},a("form-control-textarea",{key:"5ca2d11d67301b512756cbc4355939b9433be033",label:"Cancellation Rebuttal",name:"cancellation_rebuttal",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.cancellation_rebuttal,inputHandler:this.inputHandler,errorText:this.errors.cancellation_rebuttal})),a("div",{key:"36b8ef8f62721f220a05b1571bb347641b433b56",class:"col-12"},a("form-control-file-v2",{key:"c04f383cf55abd36b753718c2170d64f97935e7f",label:"Upload Cancellation Policy",name:"cancellation_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.cancellation_policy}))))}},u=t({customer_name:i().nullable(),customer_email_address:i().nullable(),customer_billing_address:i().nullable()}),v=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={customer_signature:[],customer_communication:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.customerDetails)))}componentWillLoad(){this.form=new c(u)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"91e26b2e75fdd29814c58122e5aeae0d4d696032"},a("div",{key:"029a3828b8682fdd10af400dccceff109f866509",class:"row gy-3"},a("div",{key:"71fa3ded5566c5c18c682b8cfdfdcc5ebba2db44",class:"col-12"},a("h2",{key:"95eb1ed9da9cd955fa9c4c7a83368ac3c3378d5b",class:"h5",part:d},"Customer Details")),a("div",{key:"9450f8bd033efc7d48d62ce343b8b43833887f63",class:"col-12"},a("form-control-text",{key:"5690f7d9a46e2d58bdc24af0aab3798664f21745",label:"Full Name",name:"customer_name",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_name,inputHandler:this.inputHandler,errorText:this.errors.customer_name})),a("div",{key:"a12aa4cb464e5df7f045302b08801adca70005f6",class:"col-12"},a("form-control-text",{key:"39cdb0b558b87a7eae0528ea40b9ca4175b4cf7c",label:"Email",name:"customer_email_address",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.customer_email_address,inputHandler:this.inputHandler,errorText:this.errors.customer_email_address})),a("div",{key:"13604ae63374c6fa1805d8c4be0ba55fc166a924",class:"col-12"},a("form-control-textarea",{key:"60a110f277175418c2ec0938600ad4b04f885ee3",label:"Billing Address",name:"customer_billing_address",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.customer_billing_address,inputHandler:this.inputHandler,errorText:this.errors.customer_billing_address})),a("div",{key:"abaa8888fff9952b3433c49e82a7150d6cd971dd",class:"col-12"},a("form-control-file-v2",{key:"e2e79edd8eaafd93cfdb91fd6a3b77645c1d28f2",label:"Customer Signature",name:"customer_signature",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.customer_signature})),a("div",{key:"04bfc4bf3e735cccf70fb83d2e0882662b389727",class:"col-12"},a("form-control-file-v2",{key:"476d3df1f072afdf95a6ad83e8b94b5946d66186",label:"Customer Communication",name:"customer_communication",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.customer_communication}))))}},p=t({duplicate_charge_original_payment_id:i().nullable(),duplicate_charge_explanation:i().nullable()}),m=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={duplicate_charge_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.duplicateCharge)))}componentWillLoad(){this.form=new c(p)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"4bd4aad3fbdaac994ee97aa1421a6f380657cfee"},a("div",{key:"53548ff2b4bb09c2b1d078b2657127802422558a",class:"row gy-3"},a("div",{key:"25658729932e2eb1d0706bd83106a92976e09b91",class:"col-12"},a("h2",{key:"885bf37ba0a013397d4fef68683b24e9e8e1bed6",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"2f38e6451c2d982900729639994977b8ef8f8c04",class:"col-12"},a("form-control-text",{key:"8cf20ffcd748bee860c1c8a52326a265bbe32696",label:"Original Payment ID",name:"duplicate_charge_original_payment_id",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.duplicate_charge_original_payment_id,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_original_payment_id})),a("div",{key:"e61d85188051830d2e674cfc39dab73ada597c66",class:"col-12"},a("form-control-textarea",{key:"762f300d71a99a31030ed052299129ae8457ad4c",label:"Duplicate Charge Explanation",name:"duplicate_charge_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.duplicate_charge_explanation,inputHandler:this.inputHandler,errorText:this.errors.duplicate_charge_explanation})),a("div",{key:"c5a1d7368132ba063d080ec7d071bd9131381ad2",class:"col-12"},a("form-control-file-v2",{key:"3bd9928e8a212e1665d446cb31ae9e02d6645437",label:"Duplicate Charge Documentation",name:"duplicate_charge_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.duplicate_charge_documentation}))))}},y=t({customer_purchase_ip_address:i().nullable()}),_=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={activity_log:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.electronicEvidence)))}componentWillLoad(){this.form=new c(y)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t;return a("div",{key:"00fa5deacbf19befd07d7d8764db8e3474377d5a"},a("div",{key:"be3d0b6775e78352bdaf4d0e739da61444fae572",class:"row gy-3"},a("div",{key:"e55a58628d1baad34be38d5d21598c6a372dd3c3",class:"col-12"},a("h2",{key:"463ec945a9cc0e46350b13c774b634ef25bde2e9",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"5576a4d1b32a0c2d2d4341bf591721aed6fcf6a4",class:"col-12"},a("form-control-text",{key:"9f64b68724ba8b2bdf435b02077fd362f8fe1ab1",label:"Purchase IP Address",name:"customer_purchase_ip_address",helpText:"The IP address used by the customer during the purchase.",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.customer_purchase_ip_address,inputHandler:this.inputHandler,errorText:this.errors.customer_purchase_ip_address})),a("div",{key:"e5b2635ede15e41e9e686ab338448d3c2fdf8166",class:"col-12"},a("form-control-file-v2",{key:"5137a992c79a1ccfcb8f3a114d1a12823b597dd2",label:"Activity Logs",name:"activity_log",helpText:"Any server or activity logs that provide evidence of the customer's access to or download of the purchased digital product. This information should encompass IP addresses, relevant timestamps, and any detailed records of activity.",onChange:e=>r(e,this.documents),errorText:null===(t=this.documentErrors)||void 0===t?void 0:t.activity_log}))))}},k=t({product_description:i().nullable(),service_date:i().nullable()}),g=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={service_documentation:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.productOrService)))}componentWillLoad(){this.form=new c(k)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"d0b168de486d51cd6141f2d80441b7e5f4fac5cc"},a("div",{key:"bea13ed13614f43b801be60c46673fb98ff09cc8",class:"row gy-3"},a("div",{key:"1163ad6cff89e6fb29b16622e1aed6e55a5ee435",class:"col-12"},a("h2",{key:"6f4fc9439e0a95d6e5992d7655f1c6e8f1b2b7bd",class:"h5",part:d},"Product & Service Details")),a("div",{key:"3111413dc874eaa80e21ec6838d8c0896f38ce2e",class:"col-12"},a("form-control-text",{key:"3a18e08d653c67912f904337e37d786588e50217",label:"Product Description",name:"product_description",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.product_description,inputHandler:this.inputHandler,errorText:this.errors.product_description})),a("div",{key:"ea2202cf65741022ff7363cc325948944a18afb2",class:"col-12"},a("form-control-date",{key:"c8ceda1e61e9dbf7496173ec30e0c8f6d1b48f91",label:"Service Date",name:"service_date",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.service_date,inputHandler:this.inputHandler,errorText:this.errors.service_date})),a("div",{key:"fb3e555b7781977e80541d1b2d6e7bd10b4ec087",class:"col-12"},a("form-control-file-v2",{key:"2b459a198427db073a6d5e2a1ed5141cc6fc2d20",label:"Service Documentation",name:"service_documentation",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.service_documentation}))))}},x=t({refund_policy_disclosure:i().nullable(),refund_refusal_explanation:i().nullable()}),j=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={refund_policy:[],receipt:[]},this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.refundPolicy)))}componentWillLoad(){this.form=new c(x)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c;return a("div",{key:"f04cacfa7617a6430a0e4d264248dfa1606ef988"},a("div",{key:"aa3b2d3fcd2263e6d5033b68b9524250bb51d7fa",class:"row gy-3"},a("div",{key:"e2154a203be02f1f6ed60666799db30f6b2e10fe",class:"col-12"},a("h2",{key:"2856f16f60d6310c7dd64c86de1ebf7e01fac1fc",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"94187589fdeb685fcc99e5ea2c6868ceedfd5ed2",class:"col-12"},a("form-control-textarea",{key:"fbaa1a08ab910c4ac31a53bd1385a05abcff0bb5",label:"Refund Policy Disclosure",name:"refund_policy_disclosure",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.refund_policy_disclosure,inputHandler:this.inputHandler})),a("div",{key:"45e893fa517222ac88333b306ae28fc1eb09daa0",class:"col-12"},a("form-control-textarea",{key:"646a2b77b2e896523a5e3ec3da07e020c5a72c32",label:"Refund Refusal Explanation",name:"refund_refusal_explanation",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.refund_refusal_explanation,inputHandler:this.inputHandler})),a("div",{key:"3f4369cb2f2aac9ede8f386b338c9637ab4f5b8f",class:"col-12"},a("form-control-file-v2",{key:"867c6f97af1710b6119984bd1f87f3a5eb358dc6",label:"Upload Refund Policy",name:"refund_policy",onChange:e=>r(e,this.documents),errorText:null===(i=this.documentErrors)||void 0===i?void 0:i.refund_policy})),a("div",{key:"066f2d66a0dd5be5c47d44620c295b952a4755cd",class:"col-12"},a("form-control-file-v2",{key:"2036cbddd0ebf663401154120b5c1627fdc93df3",label:"Upload Receipt",name:"receipt",onChange:e=>r(e,this.documents),errorText:null===(c=this.documentErrors)||void 0===c?void 0:c.receipt}))))}},O=t({shipping_carrier:i().nullable(),shipping_tracking_number:i().nullable(),shipping_date:i().nullable(),shipping_address:i().nullable()}),T=class{constructor(a){e(this,a),this.documentErrors={},this.errors={},this.documents={shipping_documentation:[]},this.documentList=[],this.inputHandler=(e,a)=>{this.form.setValues(Object.assign(Object.assign({},this.form.values.getValue()),{[e]:a}))}}async validateAndSubmit(e){const a=Object.values(this.documents).flat();this.form.validateAndSubmit((t=>e(t,a,o.shippingDetails)))}componentWillLoad(){this.form=new c(O)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i,c,s;return a("div",{key:"3b414c89e4d310b598685ef4e0595361edbe4783"},a("div",{key:"8f630c3bff6432da2184524865d8f322c53c3685",class:"row gy-3"},a("div",{key:"116988f4f62d30c4b5312604b3cc3d1df831a5bd",class:"col-12"},a("h2",{key:"f79794380f6b9ff7e964bea19a1898f9f190f0ff",class:"h5",part:d},"Shipping Details")),a("div",{key:"b7448564e27dd9237f61df0e7c690c5705f97941",class:"col-12"},a("form-control-text",{key:"d03af28966dec1ba0ba16f8adf34ee4aae7a077e",label:"Shipping Carrier Name",name:"shipping_carrier",defaultValue:null===(e=this.disputeResponse)||void 0===e?void 0:e.shipping_carrier,inputHandler:this.inputHandler,errorText:this.errors.shipping_carrier})),a("div",{key:"5632f97cacae9d17864e14a41789ead3b39f2ca0",class:"col-12"},a("form-control-text",{key:"9f6ff174dfcedb7a7f74a9e75a46164fcebe6095",label:"Tracking Number",name:"shipping_tracking_number",defaultValue:null===(t=this.disputeResponse)||void 0===t?void 0:t.shipping_tracking_number,inputHandler:this.inputHandler,errorText:this.errors.shipping_tracking_number})),a("div",{key:"e7fb2b0187e8e4ea8fb30fd316291465b41f4a9d",class:"col-12"},a("form-control-date",{key:"06f39b93c95cbe6b4897585dd9ab06ad636dd933",label:"Date Shipped",name:"shipping_date",defaultValue:null===(i=this.disputeResponse)||void 0===i?void 0:i.shipping_date,inputHandler:this.inputHandler,errorText:this.errors.shipping_date})),a("div",{key:"1d0a48b701a12129ebfa39b7482145b32006d854",class:"col-12"},a("form-control-textarea",{key:"f98b3cc3ef9423c31e3dc195a4b9896fbc3da1c9",label:"Shipping Address",name:"shipping_address",defaultValue:null===(c=this.disputeResponse)||void 0===c?void 0:c.shipping_address,inputHandler:this.inputHandler,errorText:this.errors.shipping_address})),a("div",{key:"82379a765e791a5b373a3c01b8fec6fe05ffa2d5",class:"col-12"},a("form-control-file-v2",{key:"cff1198af3f29e837b48b46eed5f385da9994a66",label:"Shipping Documentation",name:"shipping_documentation",onChange:e=>r(e,this.documents),errorText:null===(s=this.documentErrors)||void 0===s?void 0:s.shipping_documentation}))))}};export{f as additional_statement,h as cancellation_policy,v as customer_details,m as duplicate_charge,_ as electronic_evidence,g as product_or_service,j as refund_policy,T as shipping_details}
@@ -1 +1 @@
1
- import{h as e,r as i}from"./p-CV0Pyo1O.js";import{S as t}from"./p-uZ5KAseb.js";import{w as a,c as s}from"./p-DVJaoI_m.js";import{e as c}from"./p-BRnBHsdq.js";import{c as d}from"./p-DvnFba1A.js";import"./p-CPKMvyV_.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";import"./p-8R9xLun-.js";const r=i=>{const{isReady:a}=i;return a?null:e("div",{class:"container-fluid p-0"},e("div",{class:"row mb-3"},e("div",{class:"col-12 align-content-end"},e(t,{height:"18px",width:"120px"}),e(t,{height:"36px"}))),e("div",{class:"row"},e("div",{class:"col-12 align-content-end"},e(t,{height:"18px",width:"110px"}),e(t,{height:"36px"}))))},n=class{constructor(e){i(this,e),this.isReady=!1}async componentWillLoad(){await a(),this.iframeOrigin=s.iframeOrigin,this.tabId=c(),d()}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((e=>new Promise((i=>{e.addEventListener("iframeLoaded",(()=>{i()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const e=await this.accountNumberIframeElement.validate(),i=await this.routingNumberIframeElement.validate();return e&&i}async tokenize({clientId:e,paymentMethodMetadata:i,account:t}){return await this.accountNumberIframeElement.tokenize(e,i,t)}render(){return e("div",{key:"85e116539bb4721484d9877706ff93de1a68ec59"},e(r,{key:"b12a13d02b004e2957a55eb00fb38178dc283a92",isReady:this.isReady}),e("hidden-input",{key:"657ed7946158788e9291906ec0966eb3bd3c544c"}),e("div",{key:"321fddef9af616686d525af94dc4a65b5a4c18e6",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"cee2dcc5bf8032ca95dc6b46e6a2bb47b371986b",class:"row mb-3"},e("iframe-input",{key:"50dfad1fc1eb41a87f2964e80d39036da1fc89ce",inputId:"accountNumber",ref:e=>this.accountNumberIframeElement=e,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}`})),e("div",{key:"bd47ac6ff7c687ce9eb7e6ea2a66628392f73cdc",class:"row"},e("iframe-input",{key:"bbe98adda61bc72925e77714139b604d2959e156",inputId:"routingNumber",ref:e=>this.routingNumberIframeElement=e,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}`}))))}};export{n as bank_account_form}
1
+ import{h as e,r as i}from"./p-CV0Pyo1O.js";import{S as t}from"./p-uZ5KAseb.js";import{w as a,c as s}from"./p-DVJaoI_m.js";import{e as c}from"./p-BRnBHsdq.js";import{c as d}from"./p-BdpSLMs7.js";import"./p-CPKMvyV_.js";import"./p-D8GTwl9v.js";import"./p-HXpYMWUU.js";import"./p-DAZd_gFd.js";const r=i=>{const{isReady:a}=i;return a?null:e("div",{class:"container-fluid p-0"},e("div",{class:"row mb-3"},e("div",{class:"col-12 align-content-end"},e(t,{height:"18px",width:"120px"}),e(t,{height:"36px"}))),e("div",{class:"row"},e("div",{class:"col-12 align-content-end"},e(t,{height:"18px",width:"110px"}),e(t,{height:"36px"}))))},o=class{constructor(e){i(this,e),this.isReady=!1}async componentWillLoad(){await a(),this.iframeOrigin=s.iframeOrigin,this.tabId=c(),d()}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((e=>new Promise((i=>{e.addEventListener("iframeLoaded",(()=>{i()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const e=await this.accountNumberIframeElement.validate(),i=await this.routingNumberIframeElement.validate();return e&&i}async tokenize({clientId:e,paymentMethodMetadata:i,account:t}){return await this.accountNumberIframeElement.tokenize(e,i,t)}render(){return e("div",{key:"85e116539bb4721484d9877706ff93de1a68ec59"},e(r,{key:"b12a13d02b004e2957a55eb00fb38178dc283a92",isReady:this.isReady}),e("hidden-input",{key:"657ed7946158788e9291906ec0966eb3bd3c544c"}),e("div",{key:"321fddef9af616686d525af94dc4a65b5a4c18e6",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"cee2dcc5bf8032ca95dc6b46e6a2bb47b371986b",class:"row mb-3"},e("iframe-input",{key:"50dfad1fc1eb41a87f2964e80d39036da1fc89ce",inputId:"accountNumber",ref:e=>this.accountNumberIframeElement=e,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber?tabId=${this.tabId}`})),e("div",{key:"bd47ac6ff7c687ce9eb7e6ea2a66628392f73cdc",class:"row"},e("iframe-input",{key:"bbe98adda61bc72925e77714139b604d2959e156",inputId:"routingNumber",ref:e=>this.routingNumberIframeElement=e,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber?tabId=${this.tabId}`}))))}};export{o as bank_account_form}
@@ -1 +1 @@
1
- import{r as t,h as o}from"./p-CV0Pyo1O.js";import{c as a}from"./p-DvnFba1A.js";import{J as s}from"./p-CeW0EPHy.js";import{w as r}from"./p-DVJaoI_m.js";import{S as p}from"./p-DzEdYT8R.js";import"./p-CZfYo5-1.js";import"./p-8R9xLun-.js";import"./p-CYQvLgSs.js";import"./p-BRnBHsdq.js";import"./p-HXpYMWUU.js";import"./p-Dzv0P2Ly.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-D8GTwl9v.js";const i=class{constructor(o){t(this,o)}async componentWillLoad(){await r(),a(),this.analytics=new s(this)}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}async validate(){return this.bankAccountFormElement.validate()}async tokenize({clientId:t,paymentMethodMetadata:o,account:a}){return this.bankAccountFormElement.tokenize({clientId:t,paymentMethodMetadata:o,account:a})}render(){return o(p,{key:"3a267a32b400d122cd124245979218ffc45453ee"},o("bank-account-form",{key:"72044965224da0d85455ad7688b3d1852a46126e",ref:t=>this.bankAccountFormElement=t}))}};export{i as justifi_bank_account_form}
1
+ import{r as t,h as o}from"./p-CV0Pyo1O.js";import{c as a}from"./p-BdpSLMs7.js";import{J as s}from"./p-Axa3cgnH.js";import{w as r}from"./p-DVJaoI_m.js";import{S as p}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import"./p-DAZd_gFd.js";import"./p-CYQvLgSs.js";import"./p-BRnBHsdq.js";import"./p-HXpYMWUU.js";import"./p-NZS8uCtH.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-D8GTwl9v.js";const i=class{constructor(o){t(this,o)}async componentWillLoad(){await r(),a(),this.analytics=new s(this)}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}async validate(){return this.bankAccountFormElement.validate()}async tokenize({clientId:t,paymentMethodMetadata:o,account:a}){return this.bankAccountFormElement.tokenize({clientId:t,paymentMethodMetadata:o,account:a})}render(){return o(p,{key:"3a267a32b400d122cd124245979218ffc45453ee"},o("bank-account-form",{key:"72044965224da0d85455ad7688b3d1852a46126e",ref:t=>this.bankAccountFormElement=t}))}};export{i as justifi_bank_account_form}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as s,H as a,g as i}from"./p-CV0Pyo1O.js";import{a3 as r,v as l,q as o,w as d,x as c,u as f,a0 as n}from"./p-CPKMvyV_.js";import{F as h}from"./p-B5gBiARs.js";import{F as b}from"./p-Ce_W43gc.js";import"./p-CZfYo5-1.js";import{I as u,P as m}from"./p-CVaOFfrI.js";import{u as p,a as y,b as k}from"./p-C6o0liMT.js";import{c as v}from"./p-D8ytux5N.js";import"./p-BcNb9bVO.js";const x=class{constructor(s){e(this,s),this.formControlInput=t(this,"formControlInput",7),this.formControlBlur=t(this,"formControlBlur",7),this.isFocused=!1,this.disabled=!1,this.handleFormControlInput=e=>{const t=e.target,s=t.getAttribute("name");this.inputHandler(s,t.value),this.formControlInput.emit({name:s,value:t.value})},this.updateInput=e=>{const t=this.el.querySelector("input");t&&(t.value=e||"")}}handleDefaultValueChange(e){this.updateInput(e)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?r:this.isFocused?l:this.errorText?o:d}render(){return s(a,{key:"07b767b8c9091079f121d1df2b552c7d406f47b1"},s("div",{key:"1c6c234435bb5571d3bbf5123f6f47cf51b095d6",class:"form-group d-flex flex-column"},s("label",{key:"883c05703351e32c7e12dbf7d984f888825606e3",part:c,class:"form-label",htmlFor:this.name},this.label),s("input",{key:"9b841736efd2971cf93c1167ec1fd1c1d5045ec9",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"number",disabled:this.disabled}),s(h,{key:"26133a236b3c8b2cc14dce1c1244f3b1a9163605",helpText:this.helpText,name:this.name}),s(b,{key:"e69f03f593e1632fada2d1f6dd56aaf5612a2da7",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},T=class{constructor(t){e(this,t),this.isEditingIdentification=!1,this.inputHandler=(e,t)=>{p(this.formController,{[e]:t})},this.onAddressFormUpdate=e=>{y(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,t,a;return s("div",{key:"d2cd6a317c81991b6108751d7fafe6eb0f785572",class:"row gy-3"},s("div",{key:"58b5f28247b266fb5928a4cc54992978a0382389",class:"col-12 col-md-8"},s("form-control-text",{key:"8755d9f2c3e4f1753f33f06e96b060e3f1bfb7b8",name:"name",label:"Full Name",defaultValue:this.ownerDefaultValue.name,errorText:this.errors.name,inputHandler:this.inputHandler})),s("div",{key:"c5930506a02c94b2752a50b1db5d375fe8e73791",class:"col-12 col-md-4"},s("form-control-text",{key:"f93c736bd2315bcc33971286303e0eb2c995b83d",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:"421d8dce34b3f45dc859aa37de740f1578817ba0",class:"col-12 col-md-6"},s("form-control-text",{key:"183dcf682886be6c07a6e0f5ff6f3e8ebd5193bc",name:"email",label:"Email Address",defaultValue:this.ownerDefaultValue.email,errorText:this.errors.email,inputHandler:this.inputHandler})),s("div",{key:"678bc220f7415da8cb83edf303919688cef75c29",class:"col-12 col-md-6"},s("form-control-number-masked",{key:"f763d5b0596926c4044de25f181a8d562ef67d0f",name:"phone",label:"Phone Number",defaultValue:this.ownerDefaultValue.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:m.US})),s("div",{key:"958af034510d699ef84d7f22ff755ec088dbe4bc",class:"col-12 col-md-3"},s("form-control-date",{key:"7a2d6f7dce48e5343296256eb407c638f3505bf6",name:"dob_full",label:"Birth Date",defaultValue:this.ownerDefaultValue.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>k(e,this.formController),helpText:"Must be 18 or older."})),s("div",{key:"12c82f41a9d60ff5a52e64ea34d69fd24d3102bb",class:"col-12 col-md-3"},s("form-control-number",{key:"035d4d0d2e036b1a86c2f179f39330b48de26005",name:"ownership_percentage",label:"% of Ownership",defaultValue:null===(e=this.ownerDefaultValue)||void 0===e?void 0:e.ownership_percentage,errorText:this.errors.ownership_percentage,inputHandler:this.inputHandler})),s("div",{key:"108cbb8692dc71b7d038315bf8be3b35efee0fa3",class:"col-12 col-md-6"},!(null===(t=this.ownerDefaultValue)||void 0===t?void 0:t.ssn_last4)||this.isEditingIdentification?s("form-control-number-masked",{name:"identification_number",label:v[this.country].idNumberLabel,defaultValue:this.isEditingIdentification?"":this.ownerDefaultValue.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:u[this.country],helpText:v[this.country].identityHelpText}):s("div",null,s("label",{class:"form-label",part:c},v[this.country].idNumberLabel),s("div",{class:"input-group mb-3"},s("input",{type:"text",class:"form-control",part:f,value:`****${null===(a=this.ownerDefaultValue)||void 0===a?void 0:a.ssn_last4}`,disabled:!0}),s("button",{class:"btn btn-secondary",type:"button",part:n,onClick:()=>{this.isEditingIdentification=!0,p(this.formController,{ssn_last4:null,identification_number:""})}},"Change")))),s("div",{key:"834b3ffaaec1e2dfec16b278b39e505782c0d785",class:"col-12"},s("identity-address-form",{key:"7f6f356e116ce4bc1d9014dc7823b86b00af40b6",errors:this.errors.address,defaultValues:this.ownerDefaultValue.address,handleFormUpdate:this.onAddressFormUpdate,country:this.country})))}};export{x as form_control_number,T as owner_form_inputs}
@@ -0,0 +1 @@
1
+ import{h as s,F as e,r as t,c as i}from"./p-CV0Pyo1O.js";import{E as a}from"./p-Cu7hgXL1.js";import{B as r}from"./p-BJu1-9kE.js";import{m as o}from"./p-Aacb4jqT.js";import{C as n,e as l}from"./p-NZS8uCtH.js";import{J as d}from"./p-Axa3cgnH.js";import{c}from"./p-BdpSLMs7.js";import{S as h}from"./p-BqNNwq6C.js";import"./p-CZfYo5-1.js";import{S as p}from"./p-uZ5KAseb.js";import"./p-CPKMvyV_.js";import"./p-CYQvLgSs.js";import"./p-DVJaoI_m.js";import"./p-D8GTwl9v.js";import"./p-BRnBHsdq.js";import"./p-HXpYMWUU.js";import"./p-CLHwhyvu.js";import"./p-BcNb9bVO.js";import"./p-Cm9f5fyh.js";import"./p-DAZd_gFd.js";const u=()=>{const t=()=>s("div",{class:"mt-5"},s(p,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(p,null),s(p,null),s(p,null)),s("div",{class:"col-12 col-md-6"},s(p,null),s(p,null),s(p,null))));return s(e,null,s(t,null),s(t,null),s(t,null),s(t,null))},m=class{constructor(s){t(this,s),this.errorEvent=i(this,"error-event",7),this.loading=!0}componentWillLoad(){c(),this.analytics=new d(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetBusiness()}initializeGetBusiness(){this.businessId&&this.authToken?(this.getBusiness=o({id:this.businessId,authToken:this.authToken,service:new r}),this.fetchData()):(this.errorMessage="Invalid business id or auth token",this.errorEvent.emit({errorCode:l.MISSING_PROPS,message:this.errorMessage,severity:n.ERROR}))}updateOnPropChange(){this.getBusiness&&this.fetchData()}fetchData(){this.loading=!0,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.errorMessage=null},onError:({error:s,code:e,severity:t})=>{this.errorMessage=s,this.errorEvent.emit({errorCode:e,message:s,severity:t})},final:()=>{this.loading=!1}})}render(){return s(h,{key:"7ce48e6905cdbbf8f94470913ecfa3ef8dbb76c7"},this.loading&&s(u,{key:"7c3439e0c247436cd7951d3bdc32e7672c9f8447"}),!this.loading&&this.errorMessage&&a(this.errorMessage),!this.loading&&!this.errorMessage&&this.business&&s("justifi-details",{key:"bf57dacf2067f2704014ce3e002958e3306bba73",errorMessage:this.errorMessage},s("div",{key:"46d19a178ba0d33aa21a4f3900128e3e905731a9",slot:"detail-sections"},s("core-info-details",{key:"ac217a4cfe6b45810a85ca320760b7331f76e60b",business:this.business}),s("legal-address-details",{key:"1fc1a196a43bcf5f9eafd09bfe74c8bb7c409797",legalAddress:this.business.legal_address}),s("representative-details",{key:"1e0833606b129f69a05946726172963cbec05189",representative:this.business.representative}),s("owner-details",{key:"c974111dc67a8961ef6435c34843ca927ad8a7e5",owners:this.business.owners}),s("additional-questions-details",{key:"0951d284a373457e98a1dafc80231ec3ee057e0a",additionalQuestions:this.business.additional_questions}))))}static get watchers(){return{businessId:["propChanged"],authToken:["propChanged"],getBusiness:["updateOnPropChange"]}}};export{m as justifi_business_details}