@justifi/webcomponents 5.7.5 → 5.7.6-rc-02

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 (650) hide show
  1. package/dist/cjs/{ComponentError-C4MdBBMe.js → ComponentError-CEv9ltwy.js} +2 -0
  2. package/dist/cjs/{Refund-DN-yzFgy.js → Refund-Dt1CMUjx.js} +97 -0
  3. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +4 -5
  4. package/dist/cjs/bank-account-form.cjs.entry.js +63 -0
  5. package/dist/cjs/{business.service-U2eLTrq9.js → business.service-W2PRAU9J.js} +2 -3
  6. package/dist/cjs/card-form.cjs.entry.js +71 -0
  7. package/dist/cjs/{check-pkg-version-DuL7lRe2.js → check-pkg-version-DmONJMn1.js} +3 -4
  8. package/dist/cjs/{checkout.service-DtMzeEwi.js → checkout.service-XwOh98gt.js} +2 -3
  9. package/dist/cjs/checkout.store--pVCO0L1.js +37 -0
  10. package/dist/cjs/checkouts-list-core.cjs.entry.js +3 -4
  11. package/dist/cjs/{custom-popper_4.cjs.entry.js → custom-popper.cjs.entry.js} +2 -122
  12. package/dist/cjs/{dispute.service-CGVAs-5M.js → dispute.service-Dh82Wru1.js} +2 -3
  13. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  14. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  15. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  16. package/dist/cjs/form-control-monetary.cjs.entry.js +2 -2
  17. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  20. package/dist/cjs/form-control-select_3.cjs.entry.js +124 -0
  21. package/dist/cjs/{get-business-BJrtsomz.js → get-business-BiEc-jdH.js} +2 -2
  22. package/dist/cjs/{get-payment-details-CdVEiscr.js → get-payment-details-W4PgTPkL.js} +3 -4
  23. package/dist/cjs/{get-payout-csv-CXEQkjDm.js → get-payout-csv-CdNRRH0t.js} +2 -2
  24. package/dist/cjs/{get-subaccounts-fBIoOr7m.js → get-subaccounts-D4woaGSs.js} +3 -4
  25. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +1 -1
  26. package/dist/cjs/{iframe-input.cjs.entry.js → hidden-input_2.cjs.entry.js} +111 -14
  27. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +2 -3
  28. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +5 -6
  29. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  30. package/dist/cjs/justifi-bank-account-form_5.cjs.entry.js +277 -0
  31. package/dist/cjs/justifi-billing-form.cjs.entry.js +76 -0
  32. package/dist/cjs/justifi-business-details.cjs.entry.js +7 -8
  33. package/dist/cjs/justifi-business-form.cjs.entry.js +7 -8
  34. package/dist/cjs/justifi-button_5.cjs.entry.js +329 -0
  35. package/dist/cjs/justifi-checkout.cjs.entry.js +80 -95
  36. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +9 -10
  37. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +9 -10
  38. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  39. package/dist/cjs/justifi-dispute-management.cjs.entry.js +7 -8
  40. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +9 -10
  41. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +5 -6
  42. package/dist/cjs/justifi-new-payment-method.cjs.entry.js +99 -0
  43. package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -10
  44. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +5 -6
  45. package/dist/cjs/justifi-payment-details.cjs.entry.js +7 -8
  46. package/dist/cjs/justifi-payment-method-options.cjs.entry.js +76 -0
  47. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  48. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +7 -8
  49. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +7 -8
  50. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +2 -2
  51. package/dist/cjs/justifi-payments-list.cjs.entry.js +7 -8
  52. package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -8
  53. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +7 -8
  54. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +2 -2
  55. package/dist/cjs/justifi-payouts-list.cjs.entry.js +9 -10
  56. package/dist/cjs/justifi-refund-payment.cjs.entry.js +7 -8
  57. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +32 -0
  58. package/dist/cjs/justifi-saved-payment-methods_2.cjs.entry.js +117 -0
  59. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +2 -2
  60. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +13 -16
  61. package/dist/cjs/justifi-skeleton.cjs.entry.js +17 -0
  62. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +4 -5
  63. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +7 -8
  64. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +3 -4
  65. package/dist/cjs/justifi-terminals-list.cjs.entry.js +8 -9
  66. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +12 -6
  67. package/dist/cjs/loader.cjs.js +1 -1
  68. package/dist/cjs/{package-o4g7MDiy.js → package-oywezDpy.js} +1 -1
  69. package/dist/cjs/payment-details-core.cjs.entry.js +8 -8
  70. package/dist/cjs/payment-method-option-utils-imuSE7KV.js +25 -0
  71. package/dist/cjs/{payment-provisioning-actions-BkWSDJQQ.js → payment-provisioning-actions-SNMCdsyF.js} +2 -2
  72. package/dist/cjs/{payment.service-DmpOOPu1.js → payment.service-BrvtS3F7.js} +2 -3
  73. package/dist/cjs/payments-list-core.cjs.entry.js +3 -4
  74. package/dist/cjs/payout-details-core.cjs.entry.js +3 -3
  75. package/dist/cjs/{payout.service-BfO6L79f.js → payout.service-DNH6gRrP.js} +2 -3
  76. package/dist/cjs/payouts-list-core.cjs.entry.js +3 -4
  77. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  78. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +4 -5
  79. package/dist/cjs/{terminal-orders-table-DMjFmuxk.js → terminal-orders-table-xi_a-EnM.js} +2 -3
  80. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  81. package/dist/cjs/{terminal.service-h-LWztbo.js → terminal.service-CdzmTRQE.js} +2 -3
  82. package/dist/cjs/terminals-list-core.cjs.entry.js +3 -4
  83. package/dist/cjs/{utils-l0veqT9y.js → utils-IGCnjtqc.js} +1 -1
  84. package/dist/cjs/webcomponents.cjs.js +1 -1
  85. package/dist/collection/api/BillingInformation.js +1 -0
  86. package/dist/collection/api/Checkout.js +1 -3
  87. package/dist/collection/api/ComponentError.js +2 -0
  88. package/dist/collection/api/PaymentMethod.js +1 -0
  89. package/dist/collection/collection-manifest.json +13 -3
  90. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  91. package/dist/collection/components/checkout/billing-form/billing-form-schema.js +2 -2
  92. package/dist/collection/components/checkout/billing-form/billing-form.js +2 -5
  93. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  94. package/dist/collection/components/checkout/checkout.js +158 -53
  95. package/dist/collection/components/checkout/new-payment-method.js +2 -2
  96. package/dist/collection/components/checkout/payment-method-options.js +18 -37
  97. package/dist/collection/components/checkout/save-new-payment-method.js +3 -1
  98. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  99. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  100. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  101. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  102. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  103. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  104. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  105. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  106. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  107. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  108. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  109. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  110. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  111. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  112. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  113. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  114. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  115. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  116. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  117. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +2 -2
  118. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +10 -13
  119. package/dist/collection/components/modular-checkout/modular-checkout.js +379 -0
  120. package/dist/collection/components/modular-checkout/sub-components/bank-account-skeleton.js +10 -0
  121. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +98 -0
  122. package/dist/collection/components/modular-checkout/sub-components/billing-form-schema.js +21 -0
  123. package/dist/collection/components/modular-checkout/sub-components/billing-information-form.js +97 -0
  124. package/dist/collection/components/modular-checkout/sub-components/card-form-skeleton.js +10 -0
  125. package/dist/collection/components/modular-checkout/sub-components/card-form.js +102 -0
  126. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +113 -0
  127. package/dist/collection/components/modular-checkout/sub-components/postal-code-form.js +124 -0
  128. package/dist/collection/components/modular-checkout/sub-components/saved-payment-methods.js +40 -0
  129. package/dist/collection/components/modular-checkout/sub-components/sezzle-payment-method.js +127 -0
  130. package/dist/collection/components/modular-checkout/sub-components/summary.js +12 -0
  131. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  132. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  133. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  134. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  135. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  136. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  137. package/dist/collection/components/payments-list/payments-list.js +1 -1
  138. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  139. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  140. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  141. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  142. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  143. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  144. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  145. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  146. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  147. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  148. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  149. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +10 -3
  150. package/dist/collection/store/checkout.store.js +32 -0
  151. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  152. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  153. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  154. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  155. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  156. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  157. package/dist/collection/ui-components/form/form-control-number-masked.js +2 -2
  158. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  159. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  160. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  161. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  162. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  163. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  164. package/dist/collection/ui-components/form/iframe-input.js +10 -5
  165. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +176 -0
  166. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +83 -0
  167. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +108 -0
  168. package/dist/docs.json +1695 -844
  169. package/dist/esm/{Api-69eVlLFc.js → Api-C3T8XYbb.js} +1 -1
  170. package/dist/esm/{ComponentError-SdntD1xf.js → ComponentError-BhrFjjAs.js} +2 -0
  171. package/dist/esm/{Payment-BGiKmQYR.js → Payment-00TwhwCx.js} +2 -2
  172. package/dist/esm/{Refund-f_BCgcDa.js → Refund-0aZtuMmz.js} +98 -2
  173. package/dist/esm/additional-questions-details_5.entry.js +3 -3
  174. package/dist/esm/{badge-VWumlkvS.js → badge-Dr7gkD2I.js} +1 -1
  175. package/dist/esm/bank-account-document-form-inputs_4.entry.js +9 -10
  176. package/dist/esm/bank-account-form.entry.js +61 -0
  177. package/dist/esm/business-details-core.entry.js +3 -3
  178. package/dist/esm/{business.service-BviUFOjP.js → business.service-C5vrjgZf.js} +4 -5
  179. package/dist/esm/{button-BfT7Ex96.js → button-xfPDSpPt.js} +1 -1
  180. package/dist/esm/card-form.entry.js +69 -0
  181. package/dist/esm/{check-pkg-version-phOwcSQM.js → check-pkg-version-DqhSXPRt.js} +5 -6
  182. package/dist/esm/{checkout.service-B8W_W-lc.js → checkout.service-CW2_CEte.js} +4 -5
  183. package/dist/esm/checkout.store-GXtlf5-4.js +34 -0
  184. package/dist/esm/checkouts-list-core.entry.js +10 -11
  185. package/dist/esm/{checkouts-table-zIrBvmQp.js → checkouts-table-BHhaS5bv.js} +3 -3
  186. package/dist/esm/{custom-popper_4.entry.js → custom-popper.entry.js} +4 -121
  187. package/dist/esm/{dispute.service-1e9677RK.js → dispute.service-C3bmfjsZ.js} +4 -5
  188. package/dist/esm/form-alert_5.entry.js +1 -1
  189. package/dist/esm/form-control-checkbox.entry.js +5 -5
  190. package/dist/esm/form-control-date.entry.js +4 -4
  191. package/dist/esm/{form-control-error-text-CYWqNNkG.js → form-control-error-text-Cn0aPzHx.js} +1 -1
  192. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  193. package/dist/esm/{form-control-help-text-DMdU5_la.js → form-control-help-text-C91TeHXs.js} +1 -1
  194. package/dist/esm/form-control-monetary-provisioning.entry.js +3 -3
  195. package/dist/esm/form-control-monetary.entry.js +6 -6
  196. package/dist/esm/form-control-number-masked_2.entry.js +4 -4
  197. package/dist/esm/form-control-number.entry.js +5 -5
  198. package/dist/esm/form-control-radio.entry.js +3 -3
  199. package/dist/esm/form-control-select_3.entry.js +120 -0
  200. package/dist/esm/{get-business-GEPTefIj.js → get-business-BSRtbTh7.js} +2 -2
  201. package/dist/esm/{get-payment-details-B5-Hzdrg.js → get-payment-details-BdPvFl1W.js} +5 -6
  202. package/dist/esm/{get-payout-csv-D7IYYqVL.js → get-payout-csv-U_pgdPpb.js} +2 -2
  203. package/dist/esm/{get-subaccounts-Cv7zn0lA.js → get-subaccounts-BqqR44dV.js} +6 -7
  204. package/dist/esm/gross-payment-chart-core.entry.js +5 -5
  205. package/dist/esm/{header-1-84nZCcj4.js → header-1-noRVFQY9.js} +1 -1
  206. package/dist/esm/{header-3-DpBr7qOY.js → header-3-Bsi4loU1.js} +1 -1
  207. package/dist/esm/{iframe-input.entry.js → hidden-input_2.entry.js} +106 -10
  208. package/dist/esm/{insurance-state-BDLlv3CM.js → insurance-state-pL8MRpxn.js} +2 -2
  209. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +7 -8
  210. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +10 -11
  211. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  212. package/dist/esm/justifi-bank-account-form_5.entry.js +271 -0
  213. package/dist/esm/justifi-billing-form.entry.js +74 -0
  214. package/dist/esm/justifi-business-details.entry.js +12 -13
  215. package/dist/esm/justifi-business-form.entry.js +14 -15
  216. package/dist/esm/justifi-business-representative-form-inputs.entry.js +1 -1
  217. package/dist/esm/justifi-button_5.entry.js +323 -0
  218. package/dist/esm/justifi-checkout.entry.js +82 -97
  219. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -7
  220. package/dist/esm/justifi-checkouts-list.entry.js +14 -15
  221. package/dist/esm/justifi-details.entry.js +2 -2
  222. package/dist/esm/justifi-dispute-management-core.entry.js +1 -1
  223. package/dist/esm/justifi-dispute-management.entry.js +10 -11
  224. package/dist/esm/justifi-dispute-notification_3.entry.js +15 -16
  225. package/dist/esm/justifi-gross-payment-chart.entry.js +10 -11
  226. package/dist/esm/justifi-new-payment-method.entry.js +97 -0
  227. package/dist/esm/justifi-order-terminals.entry.js +14 -15
  228. package/dist/esm/justifi-owner-form_3.entry.js +10 -11
  229. package/dist/esm/justifi-payment-details.entry.js +12 -13
  230. package/dist/esm/justifi-payment-method-options.entry.js +74 -0
  231. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  232. package/dist/esm/justifi-payment-provisioning.entry.js +10 -11
  233. package/dist/esm/justifi-payment-transactions-list.entry.js +13 -14
  234. package/dist/esm/justifi-payments-list-filters.entry.js +4 -4
  235. package/dist/esm/justifi-payments-list.entry.js +14 -15
  236. package/dist/esm/justifi-payout-details.entry.js +12 -13
  237. package/dist/esm/justifi-payout-transactions-list.entry.js +13 -14
  238. package/dist/esm/justifi-payouts-list-filters.entry.js +4 -4
  239. package/dist/esm/justifi-payouts-list.entry.js +16 -17
  240. package/dist/esm/justifi-refund-payment.entry.js +13 -14
  241. package/dist/esm/justifi-saved-payment-method.entry.js +30 -0
  242. package/dist/esm/justifi-saved-payment-methods_2.entry.js +114 -0
  243. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +6 -6
  244. package/dist/esm/justifi-season-interruption-insurance.entry.js +16 -19
  245. package/dist/esm/justifi-skeleton.entry.js +15 -0
  246. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +7 -8
  247. package/dist/esm/justifi-terminal-orders-list.entry.js +12 -13
  248. package/dist/esm/justifi-terminals-list-filters.entry.js +6 -7
  249. package/dist/esm/justifi-terminals-list.entry.js +14 -15
  250. package/dist/esm/justifi-tokenize-payment-method.entry.js +17 -11
  251. package/dist/esm/loader.js +1 -1
  252. package/dist/esm/{package-B0XIc_FO.js → package-DR0dQ8Fv.js} +1 -1
  253. package/dist/esm/pagination-menu.entry.js +1 -1
  254. package/dist/esm/{parts-BrLVc_85.js → parts-D3G5aVLy.js} +1 -1
  255. package/dist/esm/payment-details-core.entry.js +14 -14
  256. package/dist/esm/payment-method-option-utils-8n_ALxec.js +23 -0
  257. package/dist/esm/{payment-provisioning-actions-BIfyW239.js → payment-provisioning-actions-2qP7AtHj.js} +2 -2
  258. package/dist/esm/{payment.service-BMbF1Svr.js → payment.service-CnQdP32J.js} +4 -5
  259. package/dist/esm/payments-list-core.entry.js +11 -12
  260. package/dist/esm/{payments-status-_qXPu883.js → payments-status-DUM0WZkk.js} +1 -1
  261. package/dist/esm/{payments-table-CrCdh5OV.js → payments-table-DVQzx7MJ.js} +3 -3
  262. package/dist/esm/payout-details-core.entry.js +10 -10
  263. package/dist/esm/{payout.service-HKpmn5XB.js → payout.service-EJuPNpfs.js} +4 -5
  264. package/dist/esm/payouts-list-core.entry.js +11 -12
  265. package/dist/esm/{payouts-status-C1XLgtWW.js → payouts-status-7saoFNoA.js} +1 -1
  266. package/dist/esm/{payouts-table-DIqsk6Oa.js → payouts-table-dca-F2iQ.js} +3 -3
  267. package/dist/esm/{skeleton-CdD_FIeP.js → skeleton-C1-JoGFC.js} +1 -1
  268. package/dist/esm/{spinner-DIlSUUzM.js → spinner-Ca9uu5Nd.js} +1 -1
  269. package/dist/esm/table-filters-menu.entry.js +3 -3
  270. package/dist/esm/{table-DjsimZwr.js → table-fsCYq8m9.js} +2 -2
  271. package/dist/esm/terminal-orders-list-core.entry.js +10 -11
  272. package/dist/esm/{terminal-orders-table-BnXCVH7W.js → terminal-orders-table-BNasCnjz.js} +6 -7
  273. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  274. package/dist/esm/{terminal.service-XpfOXoFl.js → terminal.service-Cfacmeto.js} +4 -5
  275. package/dist/esm/terminals-list-core.entry.js +10 -11
  276. package/dist/esm/{terminals-table-CCLlefFA.js → terminals-table-DBk-eg_3.js} +3 -3
  277. package/dist/esm/{utils-Dccsn9BY.js → utils-BZvep88z.js} +1 -1
  278. package/dist/esm/{utils-DB5fh6Iv.js → utils-BjLkBMLe.js} +1 -1
  279. package/dist/esm/{utils-6CI1OiOE.js → utils-CNwvOLkk.js} +1 -1
  280. package/dist/esm/webcomponents.js +1 -1
  281. package/dist/module/{check-pkg-version.js → Analytics.js} +22 -23
  282. package/dist/module/Payment.js +1 -1
  283. package/dist/module/Refund.js +119 -1
  284. package/dist/module/additional-statement.js +1 -1
  285. package/dist/module/bank-account-document-inputs.js +1 -2
  286. package/dist/module/bank-account-form.js +83 -1
  287. package/dist/module/{bank-account-form2.js → bank-account.js} +25 -8
  288. package/dist/module/billing-form-schema.js +24 -0
  289. package/dist/module/billing-form.js +28 -22
  290. package/dist/module/billing-information-form.js +97 -0
  291. package/dist/module/business-additional-questions-form-step.js +1 -1
  292. package/dist/module/business-address-schema.js +1 -1
  293. package/dist/module/business-bank-account-form-step-core.js +2 -3
  294. package/dist/module/business-bank-account-form-step.js +1 -2
  295. package/dist/module/business-core-info-form-step.js +1 -1
  296. package/dist/module/business-core-info-schema.js +1 -1
  297. package/dist/module/business-identity-schema.js +1 -1
  298. package/dist/module/business-owners-form-step.js +1 -1
  299. package/dist/module/business-representative-form-step.js +1 -1
  300. package/dist/module/business-terms-conditions-form-step.js +1 -2
  301. package/dist/module/business.service.js +1 -2
  302. package/dist/module/cancellation-policy.js +1 -1
  303. package/dist/module/card-form.js +91 -1
  304. package/dist/module/card-form2.js +27 -10
  305. package/dist/module/checkout.service.js +1 -2
  306. package/dist/module/checkout.store.js +34 -0
  307. package/dist/module/checkouts-list-core2.js +3 -4
  308. package/dist/module/custom-popper2.js +2 -2
  309. package/dist/module/customer-details.js +1 -1
  310. package/dist/module/dispute-management-core.js +1 -1
  311. package/dist/module/dispute-notification.js +1 -1
  312. package/dist/module/dispute-response-actions.js +1 -2
  313. package/dist/module/dispute-response-core.js +1 -1
  314. package/dist/module/dispute-response.js +3 -3
  315. package/dist/module/duplicate-charge.js +1 -1
  316. package/dist/module/electronic-evidence.js +1 -1
  317. package/dist/module/form-control-checkbox2.js +2 -2
  318. package/dist/module/form-control-date2.js +2 -2
  319. package/dist/module/form-control-file-v22.js +1 -1
  320. package/dist/module/form-control-file2.js +2 -2
  321. package/dist/module/form-control-monetary2.js +2 -2
  322. package/dist/module/form-control-number-masked2.js +2 -2
  323. package/dist/module/form-control-number.js +2 -2
  324. package/dist/module/form-control-radio2.js +2 -2
  325. package/dist/module/form-control-select2.js +2 -2
  326. package/dist/module/form-control-text2.js +2 -2
  327. package/dist/module/form-control-textarea2.js +2 -2
  328. package/dist/module/get-business.js +1 -1
  329. package/dist/module/get-payment-details.js +2 -3
  330. package/dist/module/get-payout-csv.js +1 -1
  331. package/dist/module/get-subaccounts.js +1 -2
  332. package/dist/module/gross-payment-chart-core2.js +1 -1
  333. package/dist/module/header-2.js +8 -0
  334. package/dist/module/header-3.js +8 -0
  335. package/dist/module/hidden-input2.js +1 -1
  336. package/dist/module/iframe-input2.js +5 -5
  337. package/dist/module/insurance-state.js +1 -7
  338. package/dist/module/justifi-bank-account-form.d.ts +11 -0
  339. package/dist/module/justifi-bank-account-form.js +6 -0
  340. package/dist/module/justifi-billing-information-form.d.ts +11 -0
  341. package/dist/module/justifi-billing-information-form.js +6 -0
  342. package/dist/module/justifi-business-details.js +2 -2
  343. package/dist/module/justifi-business-form.js +2 -3
  344. package/dist/module/{justifi-checkout-core.d.ts → justifi-button.d.ts} +4 -4
  345. package/dist/module/justifi-button.js +6 -0
  346. package/dist/module/justifi-button2.js +41 -0
  347. package/dist/module/justifi-card-form.d.ts +11 -0
  348. package/dist/module/justifi-card-form.js +6 -0
  349. package/dist/module/justifi-checkout-summary.d.ts +11 -0
  350. package/dist/module/justifi-checkout-summary.js +6 -0
  351. package/dist/module/justifi-checkout.js +146 -132
  352. package/dist/module/justifi-checkouts-list-filters.js +3 -4
  353. package/dist/module/justifi-checkouts-list.js +3 -4
  354. package/dist/module/justifi-dispute-management.js +3 -3
  355. package/dist/module/justifi-gross-payment-chart.js +2 -3
  356. package/dist/module/justifi-header.d.ts +11 -0
  357. package/dist/module/justifi-header.js +6 -0
  358. package/dist/module/justifi-header2.js +43 -0
  359. package/dist/module/justifi-modular-checkout.d.ts +11 -0
  360. package/dist/module/justifi-modular-checkout.js +6 -0
  361. package/dist/module/justifi-new-payment-method.js +214 -1
  362. package/dist/module/justifi-order-terminals.js +3 -4
  363. package/dist/module/justifi-payment-details.js +2 -2
  364. package/dist/module/justifi-payment-provisioning.js +2 -3
  365. package/dist/module/justifi-payment-transactions-list.js +4 -5
  366. package/dist/module/justifi-payments-list-filters.js +3 -3
  367. package/dist/module/justifi-payments-list.js +4 -5
  368. package/dist/module/justifi-payout-details.js +2 -3
  369. package/dist/module/justifi-payout-transactions-list.js +4 -5
  370. package/dist/module/justifi-payouts-list-filters.js +3 -3
  371. package/dist/module/justifi-payouts-list.js +3 -4
  372. package/dist/module/justifi-postal-code-form.d.ts +11 -0
  373. package/dist/module/justifi-postal-code-form.js +6 -0
  374. package/dist/module/justifi-refund-payment.js +2 -3
  375. package/dist/module/justifi-saved-payment-method.js +57 -1
  376. package/dist/module/justifi-saved-payment-methods.d.ts +11 -0
  377. package/dist/module/justifi-saved-payment-methods.js +6 -0
  378. package/dist/module/justifi-season-interruption-insurance.js +11 -15
  379. package/dist/module/justifi-skeleton.d.ts +11 -0
  380. package/dist/module/justifi-skeleton.js +39 -0
  381. package/dist/module/justifi-terminal-orders-list-filters.js +4 -5
  382. package/dist/module/justifi-terminal-orders-list.js +3 -4
  383. package/dist/module/justifi-terminals-list-filters.js +3 -4
  384. package/dist/module/justifi-terminals-list.js +3 -4
  385. package/dist/module/justifi-tokenize-payment-method.js +18 -84
  386. package/dist/module/legal-address-form-step.js +1 -1
  387. package/dist/module/modular-checkout.js +286 -0
  388. package/dist/module/package.js +3 -3
  389. package/dist/module/parts.js +1 -1
  390. package/dist/module/payment-details-core2.js +8 -8
  391. package/dist/module/payment-method-option-utils.js +23 -0
  392. package/dist/module/payment-method-option.d.ts +11 -0
  393. package/dist/module/payment-method-option.js +6 -0
  394. package/dist/module/payment-method-option2.js +50 -0
  395. package/dist/module/payment-method-options.js +23 -113
  396. package/dist/module/payment-provisioning-actions.js +1 -1
  397. package/dist/module/payment-provisioning-core.js +1 -1
  398. package/dist/module/payment.service.js +1 -2
  399. package/dist/module/payments-list-core2.js +3 -4
  400. package/dist/module/payout-details-core2.js +3 -3
  401. package/dist/module/payout.service.js +1 -2
  402. package/dist/module/payouts-list-core2.js +3 -4
  403. package/dist/module/postal-code-form.js +93 -0
  404. package/dist/module/product-or-service.js +1 -1
  405. package/dist/module/refund-policy.js +1 -1
  406. package/dist/module/save-new-payment-method.js +6 -2
  407. package/dist/module/saved-payment-methods.js +72 -0
  408. package/dist/module/schema-validations.js +1 -1
  409. package/dist/module/season-interruption-insurance-core.js +4 -3
  410. package/dist/module/sezzle-payment-method.js +23 -17
  411. package/dist/module/shipping-details.js +1 -1
  412. package/dist/module/summary.js +34 -0
  413. package/dist/module/table-filters-menu2.js +2 -2
  414. package/dist/module/terminal-orders-list-core2.js +3 -4
  415. package/dist/module/terminal-quantity-selector2.js +1 -1
  416. package/dist/module/terminal.service.js +1 -2
  417. package/dist/module/terminals-list-core2.js +3 -4
  418. package/dist/module/utils4.js +1 -1
  419. package/dist/types/api/BillingInformation.d.ts +13 -0
  420. package/dist/types/api/Checkout.d.ts +15 -13
  421. package/dist/types/api/ComponentError.d.ts +3 -1
  422. package/dist/types/api/PaymentMethod.d.ts +21 -0
  423. package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +4 -4
  424. package/dist/types/components/checkout/checkout.d.ts +30 -11
  425. package/dist/types/components/checkout/payment-method-options.d.ts +2 -2
  426. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +2 -2
  427. package/dist/types/components/modular-checkout/modular-checkout.d.ts +33 -0
  428. package/dist/types/components/modular-checkout/sub-components/bank-account-skeleton.d.ts +6 -0
  429. package/dist/types/components/modular-checkout/sub-components/bank-account.d.ts +18 -0
  430. package/dist/types/components/modular-checkout/sub-components/billing-form-schema.d.ts +23 -0
  431. package/dist/types/components/modular-checkout/sub-components/billing-information-form.d.ts +18 -0
  432. package/dist/types/components/modular-checkout/sub-components/card-form-skeleton.d.ts +6 -0
  433. package/dist/types/components/modular-checkout/sub-components/card-form.d.ts +20 -0
  434. package/dist/types/components/modular-checkout/sub-components/payment-method-option.d.ts +8 -0
  435. package/dist/types/components/modular-checkout/sub-components/postal-code-form.d.ts +19 -0
  436. package/dist/types/components/modular-checkout/sub-components/saved-payment-methods.d.ts +7 -0
  437. package/dist/types/components/{checkout → modular-checkout/sub-components}/sezzle-payment-method.d.ts +3 -9
  438. package/dist/types/components/modular-checkout/sub-components/summary.d.ts +3 -0
  439. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +2 -2
  440. package/dist/types/components.d.ts +293 -73
  441. package/dist/types/store/checkout.store.d.ts +25 -0
  442. package/dist/types/ui-components/form/iframe-input.d.ts +2 -1
  443. package/dist/types/ui-components/shadow-dom-components/justifi-button.d.ts +13 -0
  444. package/dist/types/ui-components/shadow-dom-components/justifi-skeleton.d.ts +10 -0
  445. package/dist/webcomponents/p-00d7c2e6.entry.js +1 -0
  446. package/dist/webcomponents/p-03e9a98c.entry.js +1 -0
  447. package/dist/webcomponents/p-05c604d2.entry.js +1 -0
  448. package/dist/webcomponents/p-05fc864a.entry.js +1 -0
  449. package/dist/webcomponents/{p-4ac8d9d4.entry.js → p-0890869b.entry.js} +4 -4
  450. package/dist/webcomponents/p-09c24135.entry.js +1 -0
  451. package/dist/webcomponents/p-0e4e662b.entry.js +1 -0
  452. package/dist/webcomponents/p-0f511cc1.entry.js +1 -0
  453. package/dist/webcomponents/p-100008fa.entry.js +1 -0
  454. package/dist/webcomponents/p-17825dfb.entry.js +1 -0
  455. package/dist/webcomponents/p-18b941d3.entry.js +1 -0
  456. package/dist/webcomponents/p-19308a1b.entry.js +1 -0
  457. package/dist/webcomponents/p-1a7942f7.entry.js +1 -0
  458. package/dist/webcomponents/{p-BLWOT0S7.js → p-1adN6FVa.js} +1 -1
  459. package/dist/webcomponents/{p-2b5a7776.entry.js → p-1bddf354.entry.js} +1 -1
  460. package/dist/webcomponents/p-1d1d956b.entry.js +1 -0
  461. package/dist/webcomponents/p-26bf2fda.entry.js +1 -0
  462. package/dist/webcomponents/p-2d3949f7.entry.js +1 -0
  463. package/dist/webcomponents/{p-aa72125e.entry.js → p-2f482f5b.entry.js} +1 -1
  464. package/dist/webcomponents/p-30d3d0cd.entry.js +1 -0
  465. package/dist/webcomponents/{p-95d99ffc.entry.js → p-326f4860.entry.js} +1 -1
  466. package/dist/webcomponents/p-359b8f54.entry.js +1 -0
  467. package/dist/webcomponents/p-37aeeeee.entry.js +1 -0
  468. package/dist/webcomponents/p-4887bcb3.entry.js +1 -0
  469. package/dist/webcomponents/{p-a38b3d9a.entry.js → p-50bfec55.entry.js} +1 -1
  470. package/dist/webcomponents/p-54406229.entry.js +1 -0
  471. package/dist/webcomponents/p-56af4fd0.entry.js +1 -0
  472. package/dist/webcomponents/p-59656e08.entry.js +1 -0
  473. package/dist/webcomponents/p-5d145701.entry.js +1 -0
  474. package/dist/webcomponents/p-5e813b93.entry.js +1 -0
  475. package/dist/webcomponents/p-64a46b8a.entry.js +1 -0
  476. package/dist/webcomponents/p-66861ea5.entry.js +1 -0
  477. package/dist/webcomponents/{p-30415c7f.entry.js → p-683630d0.entry.js} +1 -1
  478. package/dist/webcomponents/p-6bd83369.entry.js +1 -0
  479. package/dist/webcomponents/p-6ee2b118.entry.js +1 -0
  480. package/dist/webcomponents/p-70774a5a.entry.js +1 -0
  481. package/dist/webcomponents/p-73afde1b.entry.js +1 -0
  482. package/dist/webcomponents/p-73bbd71c.entry.js +1 -0
  483. package/dist/webcomponents/p-74f78a4e.entry.js +1 -0
  484. package/dist/webcomponents/p-755a8d9b.entry.js +1 -0
  485. package/dist/webcomponents/p-7c456c10.entry.js +1 -0
  486. package/dist/webcomponents/p-7c63d61d.entry.js +1 -0
  487. package/dist/webcomponents/p-7c6d7283.entry.js +1 -0
  488. package/dist/webcomponents/{p-e21ba107.entry.js → p-7d2de2d4.entry.js} +1 -1
  489. package/dist/webcomponents/{p-3bf842ea.entry.js → p-7e9832b3.entry.js} +1 -1
  490. package/dist/webcomponents/p-810cad17.entry.js +1 -0
  491. package/dist/webcomponents/p-81478598.entry.js +1 -0
  492. package/dist/webcomponents/p-91a2707a.entry.js +1 -0
  493. package/dist/webcomponents/p-9348a7c8.entry.js +1 -0
  494. package/dist/webcomponents/p-967c3374.entry.js +1 -0
  495. package/dist/webcomponents/{p-BnE7qgLh.js → p-9REosSLu.js} +1 -1
  496. package/dist/webcomponents/p-9c27f87f.entry.js +1 -0
  497. package/dist/webcomponents/p-B9ROmZzw.js +1 -0
  498. package/dist/webcomponents/{p-vTsHmSQQ.js → p-BCPBc18Y.js} +1 -1
  499. package/dist/webcomponents/p-BQ5bL1Y5.js +1 -0
  500. package/dist/webcomponents/p-BSW9VS7r.js +1 -0
  501. package/dist/webcomponents/p-BSexQ2qc.js +1 -0
  502. package/dist/webcomponents/p-Bc5u1WjM.js +1 -0
  503. package/dist/webcomponents/p-BhrFjjAs.js +1 -0
  504. package/dist/webcomponents/p-BjQrbohd.js +1 -0
  505. package/dist/webcomponents/{p-1CYqfEKd.js → p-BqK0rIZQ.js} +1 -1
  506. package/dist/webcomponents/p-BtT7kqMw.js +1 -0
  507. package/dist/webcomponents/p-BxWsrx5h.js +1 -0
  508. package/dist/webcomponents/{p-BTS3E50C.js → p-BxfUcCXo.js} +1 -1
  509. package/dist/webcomponents/p-By9Lz2e0.js +1 -0
  510. package/dist/webcomponents/p-CEp46FZK.js +1 -0
  511. package/dist/webcomponents/p-CMNxLEJP.js +1 -0
  512. package/dist/webcomponents/p-CZItg0Yo.js +1 -0
  513. package/dist/webcomponents/{p-BrLVc_85.js → p-D3G5aVLy.js} +1 -1
  514. package/dist/webcomponents/p-D7WGjeDy.js +1 -0
  515. package/dist/webcomponents/{p-Cw3BMq7G.js → p-DAVX1-sW.js} +1 -1
  516. package/dist/webcomponents/{p-Clv1feia.js → p-DAoffYFW.js} +1 -1
  517. package/dist/webcomponents/{p-Bnrk5pzA.js → p-DDpc1huF.js} +1 -1
  518. package/dist/webcomponents/{p-D9lioyBA.js → p-DHvfrLVU.js} +1 -1
  519. package/dist/webcomponents/p-DIDbcp63.js +1 -0
  520. package/dist/webcomponents/p-DKClunJd.js +1 -0
  521. package/dist/webcomponents/p-DR0dQ8Fv.js +1 -0
  522. package/dist/webcomponents/p-DUqRxn4Y.js +1 -0
  523. package/dist/webcomponents/p-DbcOhajT.js +1 -0
  524. package/dist/webcomponents/{p-CYTPbCLN.js → p-Dh6FEdp8.js} +1 -1
  525. package/dist/webcomponents/p-DhAmsAOH.js +1 -0
  526. package/dist/webcomponents/p-DoEkFs2i.js +1 -0
  527. package/dist/webcomponents/p-DvXSA0b0.js +1 -0
  528. package/dist/webcomponents/p-NqdaxjDT.js +1 -0
  529. package/dist/webcomponents/p-a02ce003.entry.js +1 -0
  530. package/dist/webcomponents/p-a05062d8.entry.js +1 -0
  531. package/dist/webcomponents/p-a27405fb.entry.js +1 -0
  532. package/dist/webcomponents/p-a2f0d61c.entry.js +1 -0
  533. package/dist/webcomponents/p-a95741ee.entry.js +1 -0
  534. package/dist/webcomponents/p-ac538ffd.entry.js +1 -0
  535. package/dist/webcomponents/p-ae00a6f3.entry.js +1 -0
  536. package/dist/webcomponents/p-b193bf46.entry.js +1 -0
  537. package/dist/webcomponents/p-b398856f.entry.js +1 -0
  538. package/dist/webcomponents/{p-7d324f45.entry.js → p-cb7c712f.entry.js} +1 -1
  539. package/dist/webcomponents/p-d33baab9.entry.js +1 -0
  540. package/dist/webcomponents/{p-a23dfac9.entry.js → p-d3f438ca.entry.js} +1 -1
  541. package/dist/webcomponents/p-d5b3c65c.entry.js +1 -0
  542. package/dist/webcomponents/p-d62e6c16.entry.js +1 -0
  543. package/dist/webcomponents/p-d7f62287.entry.js +1 -0
  544. package/dist/webcomponents/{p-36c99fce.entry.js → p-e48a2d25.entry.js} +1 -1
  545. package/dist/webcomponents/p-eba620cd.entry.js +1 -0
  546. package/dist/webcomponents/p-ecdda6e6.entry.js +1 -0
  547. package/dist/webcomponents/p-f24e201f.entry.js +1 -0
  548. package/dist/webcomponents/p-f5d12ae3.entry.js +1 -0
  549. package/dist/webcomponents/{p-BSl0X3r8.js → p-fUv1jFAw.js} +1 -1
  550. package/dist/webcomponents/p-m2jmX-Hz.js +1 -0
  551. package/dist/webcomponents/p-pGzabKc7.js +1 -0
  552. package/dist/webcomponents/p-sT4o5vru.js +1 -0
  553. package/dist/webcomponents/p-ys9CWfNG.js +1 -0
  554. package/dist/webcomponents/p-zucQG3cz.js +1 -0
  555. package/dist/webcomponents/webcomponents.esm.js +1 -1
  556. package/package.json +1 -1
  557. package/dist/cjs/Checkout-TZnRz3-3.js +0 -103
  558. package/dist/cjs/bank-account-form_9.cjs.entry.js +0 -581
  559. package/dist/cjs/iframe-input-styles-state-DX5gGQQF.js +0 -26
  560. package/dist/cjs/justifi-checkout-core.cjs.entry.js +0 -142
  561. package/dist/collection/components/checkout/checkout-core.js +0 -454
  562. package/dist/collection/components/checkout/sezzle-payment-method.js +0 -240
  563. package/dist/esm/Checkout-B9LrTq63.js +0 -101
  564. package/dist/esm/bank-account-form_9.entry.js +0 -571
  565. package/dist/esm/iframe-input-styles-state-DqkcQMM1.js +0 -23
  566. package/dist/esm/justifi-checkout-core.entry.js +0 -140
  567. package/dist/module/Checkout.js +0 -121
  568. package/dist/module/checkout-core.js +0 -274
  569. package/dist/module/justifi-checkout-core.js +0 -6
  570. package/dist/module/new-payment-method.js +0 -204
  571. package/dist/module/saved-payment-method.js +0 -79
  572. package/dist/types/components/checkout/checkout-core.d.ts +0 -49
  573. package/dist/webcomponents/p-0da7c7e5.entry.js +0 -1
  574. package/dist/webcomponents/p-111535c9.entry.js +0 -1
  575. package/dist/webcomponents/p-18ddc883.entry.js +0 -1
  576. package/dist/webcomponents/p-1ANZF89K.js +0 -1
  577. package/dist/webcomponents/p-249d9a7f.entry.js +0 -1
  578. package/dist/webcomponents/p-312b81a6.entry.js +0 -1
  579. package/dist/webcomponents/p-39d3df56.entry.js +0 -1
  580. package/dist/webcomponents/p-3dc2d47c.entry.js +0 -1
  581. package/dist/webcomponents/p-40bbb25c.entry.js +0 -1
  582. package/dist/webcomponents/p-40fb2439.entry.js +0 -1
  583. package/dist/webcomponents/p-412805ce.entry.js +0 -1
  584. package/dist/webcomponents/p-43c3a433.entry.js +0 -1
  585. package/dist/webcomponents/p-5436c41f.entry.js +0 -1
  586. package/dist/webcomponents/p-5576322e.entry.js +0 -1
  587. package/dist/webcomponents/p-59db70c0.entry.js +0 -1
  588. package/dist/webcomponents/p-600da1ee.entry.js +0 -1
  589. package/dist/webcomponents/p-6daf7df0.entry.js +0 -1
  590. package/dist/webcomponents/p-867a4a55.entry.js +0 -1
  591. package/dist/webcomponents/p-878f26f7.entry.js +0 -1
  592. package/dist/webcomponents/p-8c0162b3.entry.js +0 -1
  593. package/dist/webcomponents/p-8e201c63.entry.js +0 -1
  594. package/dist/webcomponents/p-91b5da99.entry.js +0 -1
  595. package/dist/webcomponents/p-989f51bc.entry.js +0 -1
  596. package/dist/webcomponents/p-9f9002c1.entry.js +0 -1
  597. package/dist/webcomponents/p-B0XIc_FO.js +0 -1
  598. package/dist/webcomponents/p-B3AHoKpE.js +0 -1
  599. package/dist/webcomponents/p-BOQVwCyQ.js +0 -1
  600. package/dist/webcomponents/p-Bgdp97Tl.js +0 -1
  601. package/dist/webcomponents/p-BkDN6yJN.js +0 -1
  602. package/dist/webcomponents/p-BqoTJ9CO.js +0 -1
  603. package/dist/webcomponents/p-C5RuuShs.js +0 -1
  604. package/dist/webcomponents/p-C9oyC18r.js +0 -1
  605. package/dist/webcomponents/p-CNSeavdR.js +0 -1
  606. package/dist/webcomponents/p-CSO7ljYx.js +0 -1
  607. package/dist/webcomponents/p-CgEahdBL.js +0 -1
  608. package/dist/webcomponents/p-Ckf8pUs-.js +0 -1
  609. package/dist/webcomponents/p-Cm9gh1Sz.js +0 -1
  610. package/dist/webcomponents/p-CraCsD1A.js +0 -1
  611. package/dist/webcomponents/p-Cs0cIpIm.js +0 -1
  612. package/dist/webcomponents/p-DgIkDBGX.js +0 -1
  613. package/dist/webcomponents/p-DniQ6yo6.js +0 -1
  614. package/dist/webcomponents/p-DpbCEDZ3.js +0 -1
  615. package/dist/webcomponents/p-Ds11n2AD.js +0 -1
  616. package/dist/webcomponents/p-DvuraFxP.js +0 -1
  617. package/dist/webcomponents/p-DzFysjCc.js +0 -1
  618. package/dist/webcomponents/p-KoNvNGKV.js +0 -1
  619. package/dist/webcomponents/p-SdntD1xf.js +0 -1
  620. package/dist/webcomponents/p-Zuu7wsNB.js +0 -1
  621. package/dist/webcomponents/p-a151a347.entry.js +0 -1
  622. package/dist/webcomponents/p-a48f8ec2.entry.js +0 -1
  623. package/dist/webcomponents/p-a7e9a1d1.entry.js +0 -1
  624. package/dist/webcomponents/p-a87c50de.entry.js +0 -1
  625. package/dist/webcomponents/p-b648fca4.entry.js +0 -1
  626. package/dist/webcomponents/p-b92737c4.entry.js +0 -1
  627. package/dist/webcomponents/p-bbf264c6.entry.js +0 -1
  628. package/dist/webcomponents/p-bdbd0c8e.entry.js +0 -1
  629. package/dist/webcomponents/p-be89720e.entry.js +0 -1
  630. package/dist/webcomponents/p-c18a5ebf.entry.js +0 -1
  631. package/dist/webcomponents/p-c87WhXVB.js +0 -1
  632. package/dist/webcomponents/p-d3a2fa7e.entry.js +0 -1
  633. package/dist/webcomponents/p-d768d814.entry.js +0 -1
  634. package/dist/webcomponents/p-d7883a41.entry.js +0 -1
  635. package/dist/webcomponents/p-d9a9279b.entry.js +0 -1
  636. package/dist/webcomponents/p-d9ae1fea.entry.js +0 -1
  637. package/dist/webcomponents/p-da872abc.entry.js +0 -1
  638. package/dist/webcomponents/p-db86c150.entry.js +0 -1
  639. package/dist/webcomponents/p-dbcc1a8e.entry.js +0 -1
  640. package/dist/webcomponents/p-e0345315.entry.js +0 -1
  641. package/dist/webcomponents/p-e2867ef6.entry.js +0 -1
  642. package/dist/webcomponents/p-e4fa3f41.entry.js +0 -1
  643. package/dist/webcomponents/p-edfcb58d.entry.js +0 -1
  644. package/dist/webcomponents/p-f37bb6d6.entry.js +0 -1
  645. package/dist/webcomponents/p-f5eeb11d.entry.js +0 -1
  646. package/dist/webcomponents/p-f6d5f392.entry.js +0 -1
  647. package/dist/webcomponents/p-f6debdb8.entry.js +0 -1
  648. package/dist/webcomponents/p-fcb85a8e.entry.js +0 -1
  649. package/dist/webcomponents/p-hBHbB3i6.js +0 -1
  650. package/dist/webcomponents/p-pOQo1ck9.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-CMNxLEJP.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{T as a,a as r,b as h,c,d as o,e as n,f as p,g as d,h as f,i as u,j as b,k as m,l as j}from"./p-Dh6FEdp8.js";import{T as g}from"./p-CZfYo5-1.js";import{c as y,a as l}from"./p-DDpc1huF.js";import{o as k,g as C}from"./p-CKRDBISo.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D3G5aVLy.js";import"./p-CEp46FZK.js";import"./p-fUv1jFAw.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.checkouts=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:g.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:g.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.checkouts.find((t=>t.id===s));this.clickEvent.emit({name:g.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.checkoutsTable=new a(this.checkouts,this.columns,y,l),this.getCheckouts&&this.getSubAccounts&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getCheckouts({params:this.checkoutParams,onSuccess:async({checkouts:t,pagingInfo:s})=>{this.checkouts=t,this.paging=s,this.checkoutsTable.collectionData=this.checkouts,this.checkoutsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.checkouts=this.checkouts.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get checkoutParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get subAccountParams(){let 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 e(j,{key:"c411d1c3a54fd8a331f0c5cdbae344e231482c0f"},e(r,{key:"21774546f3500612497943869017fa7c712dff7e"},e(h,{key:"c4e745ead905a393ff1b0cd0fba23db2fcc03ad8"},e(c,{key:"88063d0baedd1febe0febcab1ccefc512accfd7d"},this.checkoutsTable.columnData.map((t=>t)))),e(o,{key:"e2534bc13d9e015f127c5396bbe73545d92536b4"},e(n,{key:"0f0958fa87403652880222365cf7f88dd33335cc",columnSpan:this.checkoutsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"588bb80d518892791ed2134dd5405940e7c28db7",isEmpty:this.showEmptyState,columnSpan:this.checkoutsTable.columnKeys.length}),e(d,{key:"219cce1137232c64b7c9188042c4aaca7e0e91b6",columnSpan:this.checkoutsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.checkoutsTable.rowData.map(((t,s)=>e(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(u,{key:"16978b3be698ceabd1d19b9eaa3f85c01a862b83"},e(b,{key:"cd26e5b6f03dff77e09dfb4f9962e7601b2e40dc"},e(m,{key:"508008cf682b393549a839453d4b4c2eee1f67a4",colSpan:this.checkoutsTable.columnData.length},e("pagination-menu",{key:"688702c35e666def509ccb77b88b88ddd5e0d58a",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getCheckouts:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{v as checkouts_list_core}
@@ -0,0 +1 @@
1
+ import{r as s,c as t,h as r}from"./p-N3w5zrz2.js";import{A as o}from"./p-DHvfrLVU.js";import{C as i,a as e}from"./p-BhrFjjAs.js";import"./p-CMNxLEJP.js";import"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as a,a as p}from"./p-NqdaxjDT.js";import{E as n}from"./p-DAoffYFW.js";import{c as h,J as c}from"./p-BQ5bL1Y5.js";import"./p-CfBKn_Vl.js";import"./p-Dcbfnfn2.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D3G5aVLy.js";import"./p-DR0dQ8Fv.js";const m=o();class u{async fetchGrossVolumeChartData(s,t){return m.get({endpoint:`account/${s}/reports/gross_volume`,authToken:t})}}const j=class{constructor(r){s(this,r),this.errorEvent=t(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new c(this),this.initializeGetGrossPayment()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}propChanged(){this.initializeGetGrossPayment()}initializeGetGrossPayment(){this.accountId&&this.authToken?this.getGrossPayment=(({id:s,authToken:t,service:r})=>async({onSuccess:o,onError:e})=>{var n;try{const h=await r.fetchGrossVolumeChartData(s,t);h.error?e({error:p(h.error),code:a(null===(n=h.error)||void 0===n?void 0:n.code),severity:i.ERROR}):o(h.data)}catch(s){const t=a(null==s?void 0:s.code);e({error:p(s),code:t,severity:i.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new u}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:e.MISSING_PROPS,message:this.errorMessage,severity:i.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):r("gross-payment-chart-core",{getGrossPayment:this.getGrossPayment,"onError-event":this.handleErrorEvent})}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_gross_payment_chart}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as a,H as e}from"./p-N3w5zrz2.js";import{b as i,T as o,a as r,c as h,l as f,U as n}from"./p-D3G5aVLy.js";import{F as d}from"./p-DhAmsAOH.js";import{F as l}from"./p-BxWsrx5h.js";import"./p-CZfYo5-1.js";import{f as c}from"./p-9REosSLu.js";import"./p-BFTU3MAI.js";const p=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.defaultValue="0",this.formatRawValue=t=>t.replace(/\D/g,""),this.formatDisplayValue=t=>c(+t,void 0,!0),this.updateInput=t=>{const s=this.formControl.name,a=this.formatRawValue(t);this.formControl.value=this.formatDisplayValue(a),this.inputHandler(s,a),this.formControlInput.emit({name:s,value:a})}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get inputPart(){return this.errorText?i:this.disabled?o:this.isFocused?r:h}render(){return a(e,{key:"3e5d9d316389c408227efc140470919ede9a49f0"},a("div",{key:"438e75320d0dd82644da5846f35aa00253070b0d",class:"form-group d-flex flex-column"},a("label",{key:"ba7f69b961efda039f6faed58571d80320f1e7db",part:f,class:"form-label",htmlFor:this.name},this.label),a(d,{key:"70a4dc0fc48a37102f0f1d6bffb259eb6e4a7c6b",name:this.name,helpText:this.helpText}),a("div",{key:"57c943368d8556a00fa8ed94cf34195761416322",class:"input-group"},a("span",{key:"9c1f65ba1448895aa107c5358ea5200484835639",class:"input-group-text",part:n},"$"),a("input",{key:"55910515d5146d078e72d6f4d70cab9c5ad0afe7",ref:t=>this.formControl=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:t=>this.updateInput(t.target.value),onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.inputPart,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled})),a(l,{key:"b3b5b2f0e09bf65b8aca2836f1712f9fbc79eb88",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{p as form_control_monetary}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-CMNxLEJP.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{T as a,a as r,b as h,c as o,d as p,e as n,f as d,g as c,h as f,i as b,j as m,k as j,l as y}from"./p-Dh6FEdp8.js";import{T as u}from"./p-CZfYo5-1.js";import{p as g,a as l}from"./p-ys9CWfNG.js";import{o as k,g as C}from"./p-Cwt_9Jzb.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D3G5aVLy.js";import"./p-CEp46FZK.js";import"./p-DAVX1-sW.js";import"./p-fUv1jFAw.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.payments=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:u.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:u.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.payments.find((t=>t.id===s));this.clickEvent.emit({name:u.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.paymentsTable=new a(this.payments,this.columns,g,l),this.getPayments&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getPayments({params:this.paymentParams,onSuccess:({payments:t,pagingInfo:s})=>{this.payments=t,this.paging=s,this.paymentsTable.collectionData=this.payments},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get paymentParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.payments.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.paymentsTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(y,{key:"c2ee9fe256bed85419d5bbc0b12c22210cec4b6a"},e(r,{key:"70f2dd874928fe941029504bd6fc12183e0c2bef"},e(h,{key:"d26595fd6b181ade2da1d6f802de7ee88945361a"},e(o,{key:"003af39a3b07fb045d1bf1685150b9d6e8318b64"},this.paymentsTable.columnData.map((t=>t)))),e(p,{key:"e510d90dea09305da8e70973f6d4de937b533307"},e(n,{key:"4a441175be1800937dfcae98d938dd69b045f274",columnSpan:this.paymentsTable.columnData.length,isLoading:this.loading}),e(d,{key:"5c9b31dd51e69420bbaa7b48e69bef350c9bd5f6",isEmpty:this.showEmptyState,columnSpan:this.paymentsTable.columnData.length}),e(c,{key:"29d1ed55946c075b52663e1ea2fa64353a368659",columnSpan:this.paymentsTable.columnData.length,errorMessage:this.errorMessage}),this.showRowData&&this.paymentsTable.rowData.map(((t,s)=>e(f,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(b,{key:"f5f60a8b3cd2b620f8a757690d9f4be1fd19b0bd"},e(m,{key:"1e6552dee4bbf5de86468ace0c89a93502081f95"},e(j,{key:"8ebcd59eba395663304647f592f2fd05763dec94",colSpan:this.paymentsTable.columnData.length},e("pagination-menu",{key:"39973efbcac641d5b99bec8e9ad032708d6ba3f1",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getPayments:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as payments_list_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-N3w5zrz2.js";import{P as r}from"./p-CZItg0Yo.js";import{m as p}from"./p-DoEkFs2i.js";import{E as o}from"./p-DAoffYFW.js";import{C as e,a}from"./p-BhrFjjAs.js";import{c as m,J as n}from"./p-BQ5bL1Y5.js";import"./p-DHvfrLVU.js";import"./p-CfBKn_Vl.js";import"./p-Dcbfnfn2.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";import"./p-CMNxLEJP.js";import"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-7MWRbTXI.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-NqdaxjDT.js";import"./p-D3G5aVLy.js";import"./p-DR0dQ8Fv.js";const h=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.paymentService=new r,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new n(this),this.initializeGetPaymentDetails()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetPaymentDetails()}initializeGetPaymentDetails(){this.paymentId&&this.authToken?this.getPaymentDetails=p({id:this.paymentId,authToken:this.authToken,service:new r}):(this.errorMessage="Payment ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:a.MISSING_PROPS,severity:e.ERROR}))}render(){return this.errorMessage?o(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{h as justifi_payment_details}
@@ -0,0 +1 @@
1
+ import{h as e,r as i,H as a}from"./p-N3w5zrz2.js";import{S as t}from"./p-BjQrbohd.js";import{w as s,c as r}from"./p-CfBKn_Vl.js";import"./p-D3G5aVLy.js";import"./p-Dcbfnfn2.js";const c=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 s(),this.iframeOrigin=r.iframeOrigin}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(e,i,a){return this.accountNumberIframeElement.tokenize(e,i,a)}render(){return e(a,{key:"91e0861d760dfa016e72b8758c37b86ce3fe8225"},e(c,{key:"806f012f41018540d3e1be34cb6d03fc61174253",isReady:this.isReady}),e("div",{key:"4660ea1bac93feaa04d643c1bf7a34da790bf308",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"0d123854987108eb70d4818a2f909fafa6945109",class:"row mb-3"},e("iframe-input",{key:"1520dbb02a93848e53dd2b4636c7951a20efe462",inputId:"accountNumber",ref:e=>this.accountNumberIframeElement=e,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber`})),e("div",{key:"9365ffe0a279c92d7129c894afa52c7b2060573a",class:"row"},e("iframe-input",{key:"bfe10d4fd3f3aab6c035c03ce85e0786876adfce",inputId:"routingNumber",ref:e=>this.routingNumberIframeElement=e,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber`}))))}};export{n as bank_account_form}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-CMNxLEJP.js";import{p as i}from"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{T as a,a as r,b as h,c as o,d as c,e as n,f as p,g as d,h as m,i as b,j as f,k as u,l as j}from"./p-Dh6FEdp8.js";import{T as g}from"./p-CZfYo5-1.js";import{t as l,a as y}from"./p-1adN6FVa.js";import{o as k,g as C}from"./p-Cjf9yu8r.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D3G5aVLy.js";import"./p-CEp46FZK.js";import"./p-fUv1jFAw.js";const v=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminals=[],this.subAccounts=[],this.loading=!0,this.paging=i,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:g.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:g.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminals.find((t=>t.id===s));this.clickEvent.emit({name:g.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalsTable=new a(this.terminals,this.columns,l,y),this.getTerminals&&this.getSubAccounts&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminals({params:this.terminalParams,onSuccess:async({terminals:t,pagingInfo:s})=>{this.terminals=t,this.paging=s,this.terminalsTable.collectionData=this.terminals,this.terminalsTable.columnKeys.includes("sub_account_name")?await this.fetchSubAccounts():this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}async fetchSubAccounts(){this.getSubAccounts({params:this.subAccountParams,onSuccess:({subAccounts:t})=>{this.subAccounts=t,this.terminals=this.terminals.map((t=>{var s;return t.sub_account_name=null===(s=this.subAccounts.find((s=>s.id===t.account_id)))||void 0===s?void 0:s.name,t})),this.loading=!1},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e}),this.loading=!1}})}get terminalParams(){const t=C();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 e(j,{key:"ca85fc0bd239200eb2b816c3144181ef769c1662"},e(r,{key:"75e3f3fc085cb5b468e655987457738030833f70"},e(h,{key:"aef086fcfb1631a1532881b2a9a6586b18c73b50"},e(o,{key:"9bffba6f07d74a681eba9454f2604cd627084d05"},this.terminalsTable.columnData.map((t=>t)))),e(c,{key:"2ce4d63d6dedf0b79e790500e968a6336a5dab37"},e(n,{key:"5c8e250b17b682fc99c1538d83ad94c8a1238bda",columnSpan:this.terminalsTable.columnKeys.length,isLoading:this.loading}),e(p,{key:"c5c76edaa5ed9c7d72439ad99a04844649038244",isEmpty:this.showEmptyState,columnSpan:this.terminalsTable.columnKeys.length}),e(d,{key:"b44c12b883d77cd0677c24dc6928cd4865f13541",columnSpan:this.terminalsTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalsTable.rowData.map(((t,s)=>e(m,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(b,{key:"065ea52b09e85e1de46b1098c3d74ab37a48629e"},e(f,{key:"7be6c77dba69bc0e2a0c5fefbf91b068f23bf6de"},e(u,{key:"f190c8adb4c0b709dd7c19216ad4a5c3f2d185fa",colSpan:this.terminalsTable.columnData.length},e("pagination-menu",{key:"17bd1cf79389600b9db869edc20edd5c065dca59",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminals:["updateOnPropChange"],getSubAccounts:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{v as terminals_list_core}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-N3w5zrz2.js";import{f as t,p as s,c as r}from"./p-w128-0Mj.js";import{q as l,u as d,v as i,w as o,x as c}from"./p-D3G5aVLy.js";import{S as p}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import"./p-CfBKn_Vl.js";import{c as b,a as f}from"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import{T as n,b as m}from"./p-CMNxLEJP.js";import"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{t[e]=a},this.handleDateInput=(e,a)=>{const t=b(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){Object.entries({order_status:this.orderStatus,order_type:this.orderType,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(s[e]=a)}))}get terminalOrderStatusOptions(){return[{label:"All",value:""},{label:"Created",value:n.created},{label:"Completed",value:n.completed},{label:"Submitted",value:n.submitted},{label:"In Progress",value:n.in_progress},{label:"On Hold",value:n.on_hold},{label:"Canceled",value:n.canceled}]}get terminalOrderTypeOptions(){return[{label:"All",value:""},{label:"Boarding Only",value:m.boardingOnly},{label:"Boarding Shipping",value:m.boardingShipping}]}render(){const e=Object.assign({},t);return a(p,{key:"9455a8028d5a2363ae8e95bbdc382886b7e6c34c"},a("table-filters-menu",{key:"c2d2288f12d8dade596cc5a2fd77a032dfeab741",params:e,clearParams:r,part:l},a("div",{key:"bca04a463f8da0c16fd2e554910dac8b4bea85c8",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"f76a13c7c2b7e7a31f537c8d8c55d95c65d5af25",class:"p-2"},a("form-control-select",{key:"c5dbe04a3cb51fab100fada58db4d36a6bc40c43",name:"order_status",label:"Order Status",options:this.terminalOrderStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderStatus||t.order_status,disabled:!!this.orderStatus,part:d})),a("div",{key:"147f79940553ec51f47a745422699f7c2b44d7a1",class:"p-2"},a("form-control-select",{key:"321091e9227e1cc51085ad61975c44881077db7b",name:"order_type",label:"Order Type",options:this.terminalOrderTypeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.orderType||t.order_type,disabled:!!this.orderType,part:i})),a("div",{key:"97dfc1953c6c1c1c2edd6cc5fbaf9f8831c22108",class:"p-2"},a("form-control-date",{key:"0118c404ca0d1b98d017159ccf9b0c671f490a6b",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:f(this.createdAfter,{showInputDateTime:!0})||f(t.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:o})),a("div",{key:"1fcfca7be2b9bd1bd5aee2c442353f3143da1428",class:"p-2"},a("form-control-date",{key:"d3fb521a15596f539446dc8bb0239f802d811193",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:f(this.createdBefore,{showInputDateTime:!0})||f(t.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:c})))))}};export{u as justifi_terminal_orders_list_filters}
@@ -1 +1 @@
1
- import{h as t}from"./p-N3w5zrz2.js";import{B as e,a as i}from"./p-BSl0X3r8.js";import{P as a,Q as r}from"./p-BrLVc_85.js";import{e as n}from"./p-BnE7qgLh.js";const o="nickname,provider_serial_number,status",c={nickname:()=>t("th",{part:a,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:a,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:a,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:a,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:a,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:a,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:a,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:a,scope:"col",title:"The current status of each terminal"},"Status")},s={nickname:(e,i)=>t("td",{part:r(i)},e.nickname),model_name:(e,i)=>t("td",{part:r(i)},e.model_name),id:(e,i)=>t("td",{part:r(i)},e.id),provider:(e,i)=>t("td",{part:r(i)},n(e.provider)),provider_serial_number:(e,i)=>t("td",{part:r(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:r(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:r(i)},e.sub_account_name),status:(a,n)=>t("td",{part:r(n)},t(i,Object.assign({},{connected:{variant:e.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:e.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:e.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:e.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"}}[a.status])))};export{s as a,o as d,c as t}
1
+ import{h as t}from"./p-N3w5zrz2.js";import{B as e,a as i}from"./p-fUv1jFAw.js";import{N as a,O as n}from"./p-D3G5aVLy.js";import{e as r}from"./p-9REosSLu.js";const o="nickname,provider_serial_number,status",s={nickname:()=>t("th",{part:a,scope:"col",title:"The nickname associated with the terminal"},"Nickname"),model_name:()=>t("th",{part:a,scope:"col",title:"The model name of the terminal"},"Model Name"),id:()=>t("th",{part:a,scope:"col",title:"The ID of the terminal"},"ID"),provider:()=>t("th",{part:a,scope:"col",title:"The provider of the terminal"},"Provider"),provider_serial_number:()=>t("th",{part:a,scope:"col",title:"The serial number of the terminal"},"Serial Number"),device_id:()=>t("th",{part:a,scope:"col",title:"The device/provider ID of the terminal"},"Device ID"),sub_account_name:()=>t("th",{part:a,scope:"col",title:"The sub account associated with the terminal"},"Sub Account"),status:()=>t("th",{part:a,scope:"col",title:"The current status of each terminal"},"Status")},c={nickname:(e,i)=>t("td",{part:n(i)},e.nickname),model_name:(e,i)=>t("td",{part:n(i)},e.model_name),id:(e,i)=>t("td",{part:n(i)},e.id),provider:(e,i)=>t("td",{part:n(i)},r(e.provider)),provider_serial_number:(e,i)=>t("td",{part:n(i)},e.provider_serial_number),device_id:(e,i)=>t("td",{part:n(i)},e.provider_id),sub_account_name:(e,i)=>t("td",{part:n(i)},e.sub_account_name),status:(a,r)=>t("td",{part:n(r)},t(i,Object.assign({},{connected:{variant:e.SUCCESS,title:"This terminal is connected",text:"Connected"},disconnected:{variant:e.DANGER,title:"This terminal is disconnected",text:"Disconnected"},unknown:{variant:e.SECONDARY,title:"The status of this terminal is unknown",text:"Unknown"},pending_configuration:{variant:e.WARNING,title:"This terminal is pending configuration",text:"Pending configuration"}}[a.status])))};export{c as a,o as d,s as t}
@@ -1 +1 @@
1
- import{r as e,h as a}from"./p-N3w5zrz2.js";import{c as t,a as i,F as c}from"./p-DVnVdicA.js";import{ak as d}from"./p-BrLVc_85.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:"5e572a30ed53b4fbcf3808ba545ce2fdf5b988aa"},a("div",{key:"90870dc58e0eab72e64ae03bdaa25bb1749d8e23",class:"row gy-3"},a("div",{key:"cc3b6f19687d02e047744e8a53d22a2f91a8b968",class:"col-12"},a("h2",{key:"230c20dc3f75e48afa4008369374fd8c175cb7ea",class:"h5",part:d},"Additional Evidence")),a("div",{key:"7b49c8012cfc07c44399969f8505db786389b38b",class:"col-12"},a("form-control-textarea",{key:"349a8a2ebda338e170c90266801ae93b6f9482ea",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:"01cd368a2278c5de462f0998a50ba4ca5889be26",class:"col-12"},a("form-control-file-v2",{key:"f95d0b78704f9a1fd154003edbbffb062659ae27",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:"6dc5100426e8e4124d19a375250f85f8e15b28d4"},a("div",{key:"fb950108be5fd4096a7717c88943938261787f99",class:"row gy-3"},a("div",{key:"08f85a06288e19939a16d3fa52ef3b3199c56f36",class:"col-12"},a("h2",{key:"a585b93921814b1ffbb95c6f9c1de37d4104049b",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"3b7c620518006738d2e36863b62a72142f167733",class:"col-12"},a("form-control-textarea",{key:"70a76160b0d29648a9e0598dd5b867a382935e03",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:"e06d4c794bad47e366ca702e764307fdab5e33a8",class:"col-12"},a("form-control-textarea",{key:"1b783920c5a5b94bff60d4b061cc7cc6666cc184",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:"3cb3371c1d3727e55140ea60a0cff96bc0f42702",class:"col-12"},a("form-control-file-v2",{key:"738a456bf4653240180963fa7e5ab20a7a4add7c",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:"70e29d650d5304522f927c15b4eb5e62e203c5e0"},a("div",{key:"f50422b29cb2a4f3bca911ced94dc681adb3fc41",class:"row gy-3"},a("div",{key:"f29816d9281ea4c4db5018d3b7edb1600569357a",class:"col-12"},a("h2",{key:"a2889c95c293bf0bbf97c16e4486e307ca87729c",class:"h5",part:d},"Customer Details")),a("div",{key:"9cd45719434a1740f67b73c13fd08e0fe562168e",class:"col-12"},a("form-control-text",{key:"5a30a3aef7fbe2d3013c46e43a437724dae41213",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:"9812e1f9f6df949b9f15b2c3f28857db7dcf5cb7",class:"col-12"},a("form-control-text",{key:"10b146053a399039e8dbd42c3cab53b4b55c0ec3",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:"2742a0922a223bd60d6e3d08a55190742ecf5112",class:"col-12"},a("form-control-textarea",{key:"41491e238c75716520d747cbf9f1bcc329a2d686",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:"71074f31e565c24107b91b04d9aa16da77ba618c",class:"col-12"},a("form-control-file-v2",{key:"17f70cf96927b01e65430e13c2d21209e9170603",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:"ec696695191e68c7ceb0cc41f99f9e53f2d59da1",class:"col-12"},a("form-control-file-v2",{key:"562ff8b3819f536d491f2e2e55a85a55fcda0e1c",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:"0b0d73b396b32f29fa389d3981d48c3f30f96fd7"},a("div",{key:"2fd16a4cf964c863a59789a2be60d94b27a95de8",class:"row gy-3"},a("div",{key:"48c15f7db3285caa9164d815615b82a84283fbfe",class:"col-12"},a("h2",{key:"397b3026311bf57588b172146fc9822f99ede63e",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"c825b6efd428bee298b9b0ddf2265378cf999de9",class:"col-12"},a("form-control-text",{key:"b43283087a10826bf8e582a1e863ed4982b5c000",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:"66d5cefa16c341f5c523eaa46de5c11f5b16e619",class:"col-12"},a("form-control-textarea",{key:"f83573136fc2ce108f186f9434f46a3f157bd102",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:"cc47dc1d9dbac962d27494b5ff3fef572c98c7b4",class:"col-12"},a("form-control-file-v2",{key:"3cf06b6d61edd6ac96d02b12639d040f698b2526",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:"1a4a1d78529c48b8f32029a3efa05b4430c6d271"},a("div",{key:"593d167f4e6b610ac3cdb8a04b4eee30a1cb4f91",class:"row gy-3"},a("div",{key:"39440c3a2802b823c85f251c4393ba76bad287c0",class:"col-12"},a("h2",{key:"f5ec8cce1bbadb772ac6dbe668cf54187d2690d7",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"b9020a773c45a8f59a31ffef44b32253fdb4a551",class:"col-12"},a("form-control-text",{key:"56122eafb7f138f4472a5818cddd32cb0e17fc7e",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:"0737f585271838dd60ab9ee1e6ac83d0c6362b96",class:"col-12"},a("form-control-file-v2",{key:"63590d574ee151cbf82638002dfe513cea471035",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:"0e2648d399af18f7959bed2e0fff56fd63b541df"},a("div",{key:"4322c227617147721ab7cf33a5e75a09bc370a0c",class:"row gy-3"},a("div",{key:"e2bc9f0642356a864e7fa323262ead13d4825fdc",class:"col-12"},a("h2",{key:"88af660c9add83da7edc7758d4645db796c80fdf",class:"h5",part:d},"Product & Service Details")),a("div",{key:"dcfb0f64e1b611eb8d53f97950d5922f7358a64c",class:"col-12"},a("form-control-text",{key:"42959d4b7c03d14fdef29a656a5f18d0d89d3b2e",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:"1f4173e79f10a6ac32b860ecbd62fe5c612cc5b2",class:"col-12"},a("form-control-date",{key:"6e8bab228b3a23655cbf71fe6dc72a850b38947c",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:"2e32f65cc5388302d067fb1a8db34e3e529435c2",class:"col-12"},a("form-control-file-v2",{key:"f9fb2ac0c6a2f37a7584eeda2460702b1e0d6cc0",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:"882eb01880bcfdde30abe10465fecd7390654ed6"},a("div",{key:"de2f238310e4b80976888d147e90047688ad5ada",class:"row gy-3"},a("div",{key:"305af62aa762ae6abff0678998132e8f56707550",class:"col-12"},a("h2",{key:"6e224996b82639c426d129bfd28633f3d3839f6f",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"b2b8d444c594bf92d04fed6640230745c5fb49ba",class:"col-12"},a("form-control-textarea",{key:"f75c6c360c485ac5253164be5d4941d859deb902",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:"1788d1e6ba1ddbe82795ce1a41b901a81c055f6d",class:"col-12"},a("form-control-textarea",{key:"f47fac9b8e0d6b9766311b13c760129bb6335ddd",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:"d96552fee8b4cdddf31148b2d3783a4e1dfb031b",class:"col-12"},a("form-control-file-v2",{key:"3c6c06201ef3a730aed41ab6b8cb62d5ee8d8128",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:"ec2271dd9646596df3106f56c6e96f618196046a",class:"col-12"},a("form-control-file-v2",{key:"48f956f2580187fc7baecc5426d5ed0a1050150b",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:"90641cea619de697d7a90e6e397790f79ceb9376"},a("div",{key:"52d939e26bd26e99240d100897a530b89553e727",class:"row gy-3"},a("div",{key:"01755fbca3430bd3066377e9481038370c49b2d8",class:"col-12"},a("h2",{key:"d273fbe6ff8b7815ba5c2369748a3a20548b0a4d",class:"h5",part:d},"Shipping Details")),a("div",{key:"595f4e63dff85591713a4c895acb6628c8ef8214",class:"col-12"},a("form-control-text",{key:"958169d07544237a72facdc016d4d12ac64a4c48",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:"1d3020a30f95c5ced652871a635aba0152bbc4e3",class:"col-12"},a("form-control-text",{key:"088af20353ec2efcb65a4e597a1fb4aec23cfcbb",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:"536ee74c42d326d7f7f698274c846bfebf0d34dd",class:"col-12"},a("form-control-date",{key:"71ef44bd4c810a567162b7fe92199eceff9be470",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:"8887e0daf44be31486563e85cd989eef1da5f5ce",class:"col-12"},a("form-control-textarea",{key:"c34093bc4ee65f4fb092c377a98e01cd69bdbc7c",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:"469a5d8c7e28fa2ad430f104f08f387448f70048",class:"col-12"},a("form-control-file-v2",{key:"a2b6c6c0c1cf32430582b97efe6bcc1d4c47147d",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 justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
1
+ import{r as e,h as a}from"./p-N3w5zrz2.js";import{c as t,a as i,F as c}from"./p-DVnVdicA.js";import{ap as d}from"./p-D3G5aVLy.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:"4d0fbca80a880577be7853efc494807d7d1e2fd9"},a("div",{key:"6c3a82afe01b0812807a8e19dc750d4e9901876a",class:"row gy-3"},a("div",{key:"89e7f50b0c6d67249b892caf8c6b2d78c1742309",class:"col-12"},a("h2",{key:"e0c4db3f5330cdd0e00897da0a54b898f0056f93",class:"h5",part:d},"Additional Evidence")),a("div",{key:"58d4506d4bc0470afa4de87fdcf25ce4397d4180",class:"col-12"},a("form-control-textarea",{key:"aee641d90803d0ff483cfe75d881e3259303d4bc",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:"19377eb6382adc9cb69ec57fe7928b7d477110d8",class:"col-12"},a("form-control-file-v2",{key:"9529de236046398904d4780fcedada3a67ce4daf",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:"ac10b9b21d37179211d74118b06f561e95d9ea71"},a("div",{key:"8ff525f8ed20828ed153b7dc23cb84a0277b81d4",class:"row gy-3"},a("div",{key:"4f22ed526972a6625dc77b3ab0ab5b074277d7b2",class:"col-12"},a("h2",{key:"d78d54468b91edd99238bd757f871b18ec5b58ca",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"629c9660446cbba8951cd8396d9b72aea71c731b",class:"col-12"},a("form-control-textarea",{key:"60e0b4903e4ddec6915d23617f215d5d2ea20935",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:"aec3e4561f880b86ba6f5c7ce0298e45b837c2fd",class:"col-12"},a("form-control-textarea",{key:"e77d126709037cb22e6e4fcf2228652ffeb672ee",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:"407c071a0f7a1e488eb2ef4d522e515138a5ed2c",class:"col-12"},a("form-control-file-v2",{key:"15dfacd8e1de439848d12ecec9a0f5ffac259484",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:"e09402d1c3ca9bb8f3a243c22bec2e9d908d661f"},a("div",{key:"67a1038f92a9a9711ca37d353af7a06b87cbe0a8",class:"row gy-3"},a("div",{key:"1be2249539c434bf3faf847b4202ff2f421d15a3",class:"col-12"},a("h2",{key:"17d8bc1b31dfa77f08500ff4029f572049d9e1ce",class:"h5",part:d},"Customer Details")),a("div",{key:"3e218b39c8f5dab178cc8b23caf403e1a912694c",class:"col-12"},a("form-control-text",{key:"ab28a2176315c3ecd1ff984a599589a81375f4e0",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:"e1739728748de575e39f29018cd1139d75232611",class:"col-12"},a("form-control-text",{key:"9f2aec120b08ac793be93f9c990d81a74c9e57d2",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:"9be7e4a85edfc9bc95e8ede96ebc81f4777f1cdb",class:"col-12"},a("form-control-textarea",{key:"100e419cc2064509aaa03c76e2898fc7df85e950",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:"94da95bb013738aefb17088203ee14e07f159ae0",class:"col-12"},a("form-control-file-v2",{key:"1ab77a12a715fbb82c0bc1c9f9081e54fd3fef0e",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:"88eed9387758b86332137fa64b4e3b3c5825d908",class:"col-12"},a("form-control-file-v2",{key:"0b654ffcf253c639b07ffe03450a87550caaa75a",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:"2a51ce4a6859bdd9b6fc3376f08726a682a61587"},a("div",{key:"49765fde2654e0eda955e4569d3003749d04b1a1",class:"row gy-3"},a("div",{key:"9a04ce529407e436c5c7dc363525821116eb3271",class:"col-12"},a("h2",{key:"6d8c1c64da56d19e3adedc08171b7096084adb0b",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"3a4be2ced9e35974864a6fb3504dff58d792e623",class:"col-12"},a("form-control-text",{key:"a3d86e2059a017d931619d1e53a24e60e9f95282",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:"407386824a21bc40a802366ebf4c8e0cc2aef908",class:"col-12"},a("form-control-textarea",{key:"c4b5a5026eeffedeae11d9f6fd74ecd4e288894c",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:"cc4a805b1c5574436a19258007cd3271831e9967",class:"col-12"},a("form-control-file-v2",{key:"49d84e63f7acd6dd953429063fc9206373482d16",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:"41d5fd40ac6fc4fffddb7913b647046869882dfd"},a("div",{key:"265d25bbd6423f6514a1bb4fab1574631113783d",class:"row gy-3"},a("div",{key:"e55e31fbfaa88eacd940622551e37951e54aa321",class:"col-12"},a("h2",{key:"710bec9fdf42a7ddedbaed447ab1212bc9d6be9c",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"81ad6d6af441041c0aa0f39c732d528e9d966b61",class:"col-12"},a("form-control-text",{key:"b9a3ae49cc394e28baadec0ca9904e5c25996921",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:"53c9b52e9ff3a988805c9e72dca2038ac8cb8483",class:"col-12"},a("form-control-file-v2",{key:"bd2bd5d7131bf7c92a7d11042211a9b7764dbbd7",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:"c93f5bc2e64f5e2964eb033cb6c972283841876b"},a("div",{key:"7986f459ba9cc0d7e896a418ba4bd9e51148d36f",class:"row gy-3"},a("div",{key:"ddf033f861a5b91961294600a5d6d7261937711c",class:"col-12"},a("h2",{key:"2a33306859a2982fbb3457831c29a98cd3e86c4f",class:"h5",part:d},"Product & Service Details")),a("div",{key:"385212b08cbdcd4d610c806f1f9b5d18446a9831",class:"col-12"},a("form-control-text",{key:"210a8c07288473e93737e93659dc91e7f813e306",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:"5a52ad00db803d2ddd0afe6ee7cde4b907e1ad1a",class:"col-12"},a("form-control-date",{key:"1bdef3f3391b4a97aa3e97aefac3e29b5520f620",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:"d4fc75d0f175914e2fbb134e6449e1d45742a9f3",class:"col-12"},a("form-control-file-v2",{key:"62e1ae0f42103f49bc5c93427b62ad90570634f8",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:"a300941b5472ab2cfd1dd212fbab4b280c132f73"},a("div",{key:"1f11681c815c4f0676da384884b758b1bd49f3d1",class:"row gy-3"},a("div",{key:"56f1575a5e2c7da5d725ca224b5d64163de0fd23",class:"col-12"},a("h2",{key:"9ccb22c016184f233d1096b66380473a8e62c269",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"e602ac3e5fe3cbd3d12910d66cc8d879295a9e4a",class:"col-12"},a("form-control-textarea",{key:"f6e6dae3ab7d383da16fa5308933a77cf63f11d8",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:"8cdb3b28847683f5fd4594eb64522c899e5ef993",class:"col-12"},a("form-control-textarea",{key:"c8e4b7c760cbe8bb9cb30818b0c29f6012092649",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:"95c376af4517e3ee23afd64d479a6ae051f03d72",class:"col-12"},a("form-control-file-v2",{key:"dc2ef0d5911dbab2d820bc46563bbb7218390501",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:"b9d6ffb85e987f5037e414dde26e72f5219c0ea8",class:"col-12"},a("form-control-file-v2",{key:"c6513b7a2f9d68c2df2be8c21da0d16e03a6a885",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:"4556d3dbedce4833b63302f78f467ccf71cce02c"},a("div",{key:"18569ca4c37bbf7b82a13db6c8ae878d0b2c12fa",class:"row gy-3"},a("div",{key:"001f41285eda4237686861df1aaaad24836fbf7c",class:"col-12"},a("h2",{key:"3193324c11f5ca7c81de99cd224e2f8a8d21a43d",class:"h5",part:d},"Shipping Details")),a("div",{key:"e312e8aee070bee2b317dc7f6f9e616dc3cbd26e",class:"col-12"},a("form-control-text",{key:"69a90af0a8c328b7e0eba67d39ac3f2f4ffd3439",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:"5c4ca04204a7467918e2e130d6ee437a4c5db85b",class:"col-12"},a("form-control-text",{key:"266415e75633d4d4b5062f56ec43d47e60e03aa1",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:"90088259556bbfce03c87af029ea53efc4c394de",class:"col-12"},a("form-control-date",{key:"b5eaf92844540c4536f8296e8668ed7e826dfd1f",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:"180c72ec5c37cb7bca2edbf3d158d4973c149084",class:"col-12"},a("form-control-textarea",{key:"924cae54e30cba491dd4ce10bb514a7374a1d793",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:"b7f06251c0a03bec0b6622b9d05c7c55d7d6bb13",class:"col-12"},a("form-control-file-v2",{key:"832da84ac1f4822ac882c03d60b169a2351ffb8e",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 justifi_additional_statement,h as justifi_cancellation_policy,v as justifi_customer_details,m as justifi_duplicate_charge,_ as justifi_electronic_evidence,g as justifi_product_or_service,j as justifi_refund_policy,T as justifi_shipping_details}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-N3w5zrz2.js";import{C as r,a as o}from"./p-BhrFjjAs.js";import{c as e,J as a}from"./p-BQ5bL1Y5.js";import{T as n}from"./p-Bc5u1WjM.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import{d as p}from"./p-CMNxLEJP.js";import"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as c,a as h}from"./p-NqdaxjDT.js";import{m,S as j}from"./p-DvXSA0b0.js";import{S as u}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{d}from"./p-1adN6FVa.js";import"./p-DR0dQ8Fv.js";import"./p-DHvfrLVU.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-fUv1jFAw.js";import"./p-D3G5aVLy.js";const l=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=d,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new a(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializeGetTerminals(),this.initializeGetSubAccounts()}initializeGetTerminals(){this.accountId&&this.authToken?this.getTerminals=(({id:t,authToken:s,service:i})=>async({params:o,onSuccess:e,onError:a})=>{var n,m;try{const j=await i.fetchTerminals(t,s,o);if(j.error)return a({error:h(j.error),code:c(null===(m=j.error)||void 0===m?void 0:m.code),severity:r.ERROR});{const t=Object.assign({},j.page_info);e({terminals:(null===(n=j.data)||void 0===n?void 0:n.map((t=>new p(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return a({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new n}):(this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:this.errorMessage,severity:r.ERROR}))}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=m({accountId:this.accountId,authToken:this.authToken,service:new j}))}render(){return i(u,{key:"2212743b516f92a5af51a6b9202b3679f22aadcc"},i("terminals-list-core",{key:"5fabd291b0649fa3b893b3fff8200aafa053ab3c",getTerminals:this.getTerminals,getSubAccounts:this.getSubAccounts,"onError-event":this.handleErrorEvent,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{l as justifi_terminals_list}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as a,H as i}from"./p-N3w5zrz2.js";import{I as e}from"./p-Ce_F4E0f.js";import{C as r}from"./p-B-iV5cYd.js";import{a2 as h,l as o,U as c,b as n,T as f,a as l}from"./p-D3G5aVLy.js";import{F as d}from"./p-DhAmsAOH.js";import{F as m}from"./p-BxWsrx5h.js";import"./p-CZfYo5-1.js";const p=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.imask=null,this.isFocused=!1,this.maskOptions=r.DECIMAL,this.initializeIMask=()=>{this.textInput&&(this.imask=e(this.textInput,this.maskOptions),this.imask.on("accept",(()=>{const t=this.imask.unmaskedValue;this.inputHandler(this.name,t),this.formControlInput.emit({name:this.name,value:t})})),this.textInput.addEventListener("blur",(()=>this.formControlBlur.emit())))},this.handleFormControlInput=t=>{const s=t.target.getAttribute("name");this.formControlInput.emit({name:s,value:this.imask.unmaskedValue})},this.updateInput=t=>{this.imask&&(this.imask.value=String(t))}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.initializeIMask(),this.updateInput(this.defaultValue)}disconnectedCallback(){var t;null===(t=this.imask)||void 0===t||t.destroy()}get inputPart(){let t=h;return this.errorText&&(t=n),this.disabled&&(t=f),this.isFocused&&(t=l),t}render(){return a(i,{key:"950019f15743434eaa378b48338e73157525d677"},a("div",{key:"9a4dab257ec7a62f3f3f1ba1cc2c4aad3f823c17",class:"form-group d-flex flex-column"},a("label",{key:"19d046ba0d9f5d2b8fc7c3d8c1b9dc893a5834e5",part:o,class:"form-label",htmlFor:this.name},this.label),a("div",{key:"ba7df233aa5965ee0a7f5c01dfd84aabd3cecf70",class:"input-group"},a("span",{key:"e325e64173d5d7c260b824ef492f02f2333bdb8f",class:"input-group-text",part:c},"$"),a("input",{key:"5b1632e00657f9aa31139a9869ab63ad9388612e",ref:t=>this.textInput=t,id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,part:this.inputPart,class:this.errorText?"form-control monetary is-invalid":"form-control monetary",type:"text",disabled:this.disabled})),a(d,{key:"cb7f04dc7e6849d335eb0cfecfb05d7e0c26ff1f",helpText:this.helpText,name:this.name}),a(m,{key:"6ad1b947a48e8c97a2f5a1c4c2c1094679ce25cd",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{p as form_control_monetary_provisioning}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as a,H as o}from"./p-N3w5zrz2.js";import{C as s}from"./p-zucQG3cz.js";import{r as i}from"./p-D3G5aVLy.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";const r=class{constructor(a){e(this,a),this.paymentMethodOptionSelected=t(this,"paymentMethodOptionSelected"),this.onPaymentMethodOptionClick=e=>{e.preventDefault(),this.paymentMethodOptionSelected.emit(this.paymentMethodOption)}}async resolvePaymentMethod(e){var t;return e.isValid?{token:null===(t=this.paymentMethodOption)||void 0===t?void 0:t.id}:{validationError:!0}}render(){var e,t,r;return a(o,{key:"c6a1d3de6363c80a0acb15c6676d3e913beeda2d",class:"payment-method"},a("div",{key:"fdabb1a67f654a3bcf06e86e8c42f6aa281e6757",class:"radio-list-item p-3",part:i,onClick:this.onPaymentMethodOptionClick},a("form-control-radio",{key:"0731e2ccb8080ee4972201a617cd99376627e332",name:"paymentMethodType",value:null===(e=this.paymentMethodOption)||void 0===e?void 0:e.id,checked:this.isSelected,label:`${s[null===(t=this.paymentMethodOption)||void 0===t?void 0:t.brand]||""} *${null===(r=this.paymentMethodOption)||void 0===r?void 0:r.acct_last_four}`})))}};export{r as justifi_saved_payment_method}
@@ -1 +1 @@
1
- import{h as s,F as i,r as t,c as e}from"./p-N3w5zrz2.js";import{E as r}from"./p-Clv1feia.js";import{S as l}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{S as o}from"./p-C9oyC18r.js";import"./p-BrLVc_85.js";const n=()=>{const t=()=>s("div",{class:"mt-5"},s(o,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null)),s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null))));return s(i,null,s(t,null),s(t,null),s(t,null),s(t,null))};var a;!function(s){s.LOADING="loading",s.READY="ready",s.ERROR="error"}(a||(a={}));const d=class{constructor(s){t(this,s),this.errorEvent=e(this,"error-event"),this.renderState=a.LOADING}async componentWillLoad(){this.getBusiness&&this.fetchData()}fetchData(){this.renderState=a.LOADING,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.renderState=a.READY},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s,this.renderState=a.ERROR,this.errorEvent.emit({errorCode:i,message:s,severity:t})}})}render(){return s(l,null,this.renderState===a.LOADING?s(n,null):this.renderState===a.ERROR?r(this.errorMessage):s("justifi-details",{"error-message":this.errorMessage},s("div",{slot:"detail-sections"},s("core-info-details",{business:this.business}),s("legal-address-details",{legalAddress:this.business.legal_address}),s("representative-details",{representative:this.business.representative}),s("owner-details",{owners:this.business.owners}),s("additional-questions-details",{additionalQuestions:this.business.additional_questions}))))}};export{d as business_details_core}
1
+ import{h as s,F as t,r as i,c as e}from"./p-N3w5zrz2.js";import{E as r}from"./p-DAoffYFW.js";import{S as l}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{S as o}from"./p-BjQrbohd.js";import"./p-D3G5aVLy.js";const n=()=>{const i=()=>s("div",{class:"mt-5"},s(o,{width:"40%",height:"1.5rem"}),s("hr",null),s("div",{class:"row g-3"},s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null)),s("div",{class:"col-12 col-md-6"},s(o,null),s(o,null),s(o,null))));return s(t,null,s(i,null),s(i,null),s(i,null),s(i,null))};var a;!function(s){s.LOADING="loading",s.READY="ready",s.ERROR="error"}(a||(a={}));const d=class{constructor(s){i(this,s),this.errorEvent=e(this,"error-event"),this.renderState=a.LOADING}async componentWillLoad(){this.getBusiness&&this.fetchData()}fetchData(){this.renderState=a.LOADING,this.getBusiness({onSuccess:({business:s})=>{this.business=s,this.renderState=a.READY},onError:({error:s,code:t,severity:i})=>{this.errorMessage=s,this.renderState=a.ERROR,this.errorEvent.emit({errorCode:t,message:s,severity:i})}})}render(){return s(l,null,this.renderState===a.LOADING?s(n,null):this.renderState===a.ERROR?r(this.errorMessage):s("justifi-details",{"error-message":this.errorMessage},s("div",{slot:"detail-sections"},s("core-info-details",{business:this.business}),s("legal-address-details",{legalAddress:this.business.legal_address}),s("representative-details",{representative:this.business.representative}),s("owner-details",{owners:this.business.owners}),s("additional-questions-details",{additionalQuestions:this.business.additional_questions}))))}};export{d as business_details_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-N3w5zrz2.js";import{P as o}from"./p-DIDbcp63.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import{C as r,a as e}from"./p-BhrFjjAs.js";import{P as p}from"./p-CMNxLEJP.js";import"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as a,a as h}from"./p-NqdaxjDT.js";import{E as n}from"./p-DAoffYFW.js";import{c as m,J as c}from"./p-BQ5bL1Y5.js";import{m as d}from"./p-pGzabKc7.js";import"./p-DHvfrLVU.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D3G5aVLy.js";import"./p-DR0dQ8Fv.js";const j=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){m(),this.analytics=new c(this),this.initializeServices()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeServices()}initializeServices(){this.payoutId&&this.authToken?(this.getPayout=(({id:t,authToken:s,service:i})=>async({onSuccess:o,onError:e})=>{var n;try{const m=await i.fetchPayout(t,s);m.error?e({error:h(m.error),code:a(null===(n=m.error)||void 0===n?void 0:n.code),severity:r.ERROR}):o(new p(m.data))}catch(t){e({error:h(t),code:a(null==t?void 0:t.code),severity:r.ERROR})}})({id:this.payoutId,authToken:this.authToken,service:new o}),this.getPayoutCSV=d({authToken:this.authToken,service:new o})):(this.errorMessage="Failed to load payout details. payoutId or authToken is not provided.",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return this.errorMessage?n(this.errorMessage):i("payout-details-core",{getPayout:this.getPayout,getPayoutCSV:this.getPayoutCSV,"onError-event":this.handleErrorEvent})}static get watchers(){return{payoutId:["propChanged"],authToken:["propChanged"]}}};export{j as justifi_payout_details}
@@ -1 +1 @@
1
- import{r as e,h as a}from"./p-N3w5zrz2.js";import{u as d,a as t,b as r}from"./p-1ydcg9ti.js";import{P as s,S as l}from"./p-B-iV5cYd.js";import{D as o}from"./p-BrLVc_85.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const i=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{d(this.formController,{[e]:a})},this.onAddressFormUpdate=e=>{t(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,d,t,i,c,f,n;return a("form",{key:"02b2888267736b1441b16e569a7d1ff3ab3e7e17"},a("fieldset",{key:"d5d4afd7df869b87272407d4e401ad802708c870"},a("div",{key:"4e2113e9d7d16c6d2b50625dba3dfa82f7b04832",class:"d-flex align-items-center gap-2"},a("legend",{key:"17ffa94355f1d89223c554f4fb80e38735681725",class:"mb-0",part:o},"Representative"),a("form-control-tooltip",{key:"0df0655bc4e409ae53b93e40260486e4ff610410",helpText:"The representative for your business needs to be someone who has significant control over managing your business’s finance. You will have an opportunity to add owners later in the form."})),a("hr",{key:"bb67f7aafe877075d18ac9a7e8acaa94267035de",class:"mt-2"}),a("div",{key:"aa5b5fb1913f64c54384d793beeb6dcd5728d10e",class:"row gy-3"},a("div",{key:"6fe16958c76e589581bd099192fc6886f3e7eb6c",class:"col-12 col-md-8"},a("form-control-text",{key:"e0579c2e09c9be66b431174b6d79122349e4d859",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"98cfa2ab8e5537452ab0dae54ad95f1ac2a541f4",class:"col-12 col-md-4"},a("form-control-text",{key:"55962d3f118bc0ffbbe1fbf62d8d6e15c0f04dfb",name:"title",label:"Title",defaultValue:null===(d=this.representativeDefaultValue)||void 0===d?void 0:d.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),a("div",{key:"c8bb3ea449d7adcd0d897ee64a1383ff7639305d",class:"col-12 col-md-6"},a("form-control-text",{key:"df99114c3d94073a3a95b7ea2f326d27db1d4fa9",name:"email",label:"Email Address",defaultValue:null===(t=this.representativeDefaultValue)||void 0===t?void 0:t.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"9fe7cce8fbaa975f2cb2f890ec60cc5696356014",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"236d3629a7d97feb7c7556b7e7ba83b0b45ca3db",name:"phone",label:"Phone Number",defaultValue:null===(i=this.representativeDefaultValue)||void 0===i?void 0:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:s.US})),a("div",{key:"cf99a0654ed61f599d5d854149e68abb9e52798f",class:"col-12 col-md-4"},a("form-control-date",{key:"8bc17351844b590e16f34daaee6da1e67d433d44",name:"dob_full",label:"Birth Date",defaultValue:null===(c=this.representativeDefaultValue)||void 0===c?void 0:c.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>r(e,this.formController),helpText:"Must be 18 or older."})),a("div",{key:"563dd2be61ca9238c915298fb5db51dfca6468e3",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"a99b04783e2a7a439091aa79394e614d82293ac8",name:"identification_number",label:"SSN",defaultValue:null===(f=this.representativeDefaultValue)||void 0===f?void 0:f.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:l,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),a("div",{key:"4ae17d91e7428f54e07942a1429e554c6e7a37ac",class:"col-12"},a("justifi-identity-address-form",{key:"8490e4d041ff22bcb481d553760ed6f34ca908aa",errors:this.errors.address,defaultValues:null===(n=this.representativeDefaultValue)||void 0===n?void 0:n.address,handleFormUpdate:this.onAddressFormUpdate})))))}};export{i as justifi_business_representative_form_inputs}
1
+ import{r as e,h as a}from"./p-N3w5zrz2.js";import{u as d,a as t,b as s}from"./p-1ydcg9ti.js";import{P as l,S as o}from"./p-B-iV5cYd.js";import{C as r}from"./p-D3G5aVLy.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const i=class{constructor(a){e(this,a),this.inputHandler=(e,a)=>{d(this.formController,{[e]:a})},this.onAddressFormUpdate=e=>{t(this.formController,Object.assign(Object.assign({},this.formController.values.getValue().address),e))}}render(){var e,d,t,i,c,f,n;return a("form",{key:"02b2888267736b1441b16e569a7d1ff3ab3e7e17"},a("fieldset",{key:"d5d4afd7df869b87272407d4e401ad802708c870"},a("div",{key:"4e2113e9d7d16c6d2b50625dba3dfa82f7b04832",class:"d-flex align-items-center gap-2"},a("legend",{key:"17ffa94355f1d89223c554f4fb80e38735681725",class:"mb-0",part:r},"Representative"),a("form-control-tooltip",{key:"0df0655bc4e409ae53b93e40260486e4ff610410",helpText:"The representative for your business needs to be someone who has significant control over managing your business’s finance. You will have an opportunity to add owners later in the form."})),a("hr",{key:"bb67f7aafe877075d18ac9a7e8acaa94267035de",class:"mt-2"}),a("div",{key:"aa5b5fb1913f64c54384d793beeb6dcd5728d10e",class:"row gy-3"},a("div",{key:"6fe16958c76e589581bd099192fc6886f3e7eb6c",class:"col-12 col-md-8"},a("form-control-text",{key:"e0579c2e09c9be66b431174b6d79122349e4d859",name:"name",label:"Full Name",defaultValue:null===(e=this.representativeDefaultValue)||void 0===e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"98cfa2ab8e5537452ab0dae54ad95f1ac2a541f4",class:"col-12 col-md-4"},a("form-control-text",{key:"55962d3f118bc0ffbbe1fbf62d8d6e15c0f04dfb",name:"title",label:"Title",defaultValue:null===(d=this.representativeDefaultValue)||void 0===d?void 0:d.title,errorText:this.errors.title,inputHandler:this.inputHandler,helpText:"Role at your business, e.g. President, CEO, Treasurer."})),a("div",{key:"c8bb3ea449d7adcd0d897ee64a1383ff7639305d",class:"col-12 col-md-6"},a("form-control-text",{key:"df99114c3d94073a3a95b7ea2f326d27db1d4fa9",name:"email",label:"Email Address",defaultValue:null===(t=this.representativeDefaultValue)||void 0===t?void 0:t.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"9fe7cce8fbaa975f2cb2f890ec60cc5696356014",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"236d3629a7d97feb7c7556b7e7ba83b0b45ca3db",name:"phone",label:"Phone Number",defaultValue:null===(i=this.representativeDefaultValue)||void 0===i?void 0:i.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:l.US})),a("div",{key:"cf99a0654ed61f599d5d854149e68abb9e52798f",class:"col-12 col-md-4"},a("form-control-date",{key:"8bc17351844b590e16f34daaee6da1e67d433d44",name:"dob_full",label:"Birth Date",defaultValue:null===(c=this.representativeDefaultValue)||void 0===c?void 0:c.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:e=>s(e,this.formController),helpText:"Must be 18 or older."})),a("div",{key:"563dd2be61ca9238c915298fb5db51dfca6468e3",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"a99b04783e2a7a439091aa79394e614d82293ac8",name:"identification_number",label:"SSN",defaultValue:null===(f=this.representativeDefaultValue)||void 0===f?void 0:f.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:o,helpText:"Enter your full Social Security Number. It is required for Federal OFAC check."})),a("div",{key:"4ae17d91e7428f54e07942a1429e554c6e7a37ac",class:"col-12"},a("justifi-identity-address-form",{key:"8490e4d041ff22bcb481d553760ed6f34ca908aa",errors:this.errors.address,defaultValues:null===(n=this.representativeDefaultValue)||void 0===n?void 0:n.address,handleFormUpdate:this.onAddressFormUpdate})))))}};export{i as justifi_business_representative_form_inputs}
@@ -0,0 +1 @@
1
+ import{r as e,h as t,H as a,c as s,a as c}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.js";import{i as r,d as o,j as i}from"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import{E as l}from"./p-CMNxLEJP.js";import"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c as d}from"./p-yH3TC3ZQ.js";import"./p-XYgDHrVL.js";import{n}from"./p-BnjCmwMr.js";import{Y as b,C as f,an as h,N as p,ao as m,c as u,l as y,b as k,T as x,a as j}from"./p-D3G5aVLy.js";import{S as v}from"./p-BjQrbohd.js";import"./p-CZfYo5-1.js";import{F as _}from"./p-BxWsrx5h.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const T=class{constructor(t){e(this,t)}render(){return t("div",{key:"a3ff8b1ff23923beb847e66d6c56a39de9a86434",class:"row gy-3"},t("div",{key:"86f9ba3a8f0f87f7fa67ba0fcf1d7c04f67e9bc5",class:"col-12"},t("form-control-file",{key:"9cc2bc21414c8e3f4b25ac47b76340a4ce569c42",name:"voided_check",label:"Voided Check",documentType:l.voidedCheck,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.voided_check,multiple:!0})),t("div",{key:"bee72d6c63514cdbd3200910d3a53b045c60d05d",class:"col-12"},t("form-control-file",{key:"80a79f352d078cd210768b4060cad7014b1060c5",name:"bank_statement",label:"Bank Statement",documentType:l.bankStatement,inputHandler:this.inputHandler,onFileSelected:this.storeFiles,errorText:this.errors.bank_statement,multiple:!0})))}},g=class{constructor(t){e(this,t)}render(){return t("div",{key:"b18e803521d67b40e4e5af03a66dcdca0b678968",class:"row gy-3"},t("div",{key:"e2e6667ffbcebb6a9aa50739814e7bbebceaabfa",class:"col-12"},t("form-control-text",{key:"e1ad63fb7db32dbb6ed67cf18919c681d6d192ef",name:"bank_name",label:"Bank Name",defaultValue:this.defaultValue.bank_name,errorText:this.errors.bank_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"54db821813e7eb931b8f19fad7fce976cdeb0045",class:"col-12"},t("form-control-text",{key:"4ecf222c1918e364f319d07e0a770d68dba099d0",name:"nickname",label:"Nickname",defaultValue:this.defaultValue.nickname,errorText:this.errors.nickname,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"a92c38f2abbcb3dcaee4bc5ea73df44b31adc3f9",class:"col-12"},t("form-control-text",{key:"492ff1a4d1e9c4f2fa9d0e527a34dc5ccb09afe6",name:"account_owner_name",label:"Account Owner Name",defaultValue:this.defaultValue.account_owner_name,errorText:this.errors.account_owner_name,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"8e14e6e3de43822d139085d3a05bfd0e7ae5b1be",class:"col-12"},t("form-control-select",{key:"f6648b6f7c4a475f88b849bf3a75d446bb539c69",name:"account_type",label:"Account Type",options:d,defaultValue:this.defaultValue.account_type,errorText:this.errors.account_type,inputHandler:this.inputHandler,disabled:this.formDisabled})),t("div",{key:"68a2efc082f5b6414ebde10b6da4365677dbefca",class:"col-12"},t("form-control-text",{key:"3ef9b3db5882063708ccf1eb282f3e90ed53ce82",name:"account_number",label:"Account Number",defaultValue:this.defaultValue.account_number,maxLength:17,errorText:this.errors.account_number,inputHandler:this.inputHandler,keyDownHandler:n,disabled:this.formDisabled,helpText:"Please copy the account number as shown on your statement/check. Do not include spaces or dashes."})),t("div",{key:"e3270db28269bc25dd4d5a99274f042c1efd1fc6",class:"col-12"},t("form-control-text",{key:"a8e801f65a4cc164cdc7bf186fed67f87abc828f",name:"routing_number",label:"Routing Number",defaultValue:this.defaultValue.routing_number,maxLength:9,errorText:this.errors.routing_number,inputHandler:this.inputHandler,keyDownHandler:n,disabled:this.formDisabled,helpText:"A valid routing number is nine digits. Please include any leading or trailing zeroes."})))}},w=class{constructor(t){e(this,t),this.documents=[],this.isLoading=!1}render(){return this.isLoading?t(v,{height:"50px"}):this.documents.length?t(a,null,t("div",{class:"card",part:b},t("div",{class:"card-body"},t("h5",{class:"card-title",part:f},"Documents Already on File"),t("div",{class:"table-responsive"},t("table",{class:"table table-sm table-borderless",part:h},t("thead",null,t("tr",null,t("th",{style:{width:"25%"},part:p,scope:"col"},"File Name"),t("th",{style:{width:"25%"},part:p,scope:"col"},"File Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Document Type"),t("th",{style:{width:"25%"},part:p,scope:"col"},"Date Uploaded"))),t("tbody",null,this.documents.sort(((e,t)=>e.document_type.localeCompare(t.document_type))).map(((e,a)=>t("tr",{class:0===a?"border-bottom border-top":"border-bottom"},t("td",{part:m},e.file_name),t("td",{part:m},e.file_type),t("td",{part:m},r(e.document_type)),t("td",{part:m},`${o(e.created_at)} - ${i(e.created_at)}`))))))))),t("hr",null)):null}},B=class{constructor(t){e(this,t),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.fileSelected=s(this,"fileSelected"),this.isFocused=!1,this.handleFormControlInput=e=>{const t=e.target,a=t.getAttribute("name");this.inputHandler(a,t.value),this.formControlInput.emit({name:a,value:t.value})},this.changeHandler=()=>{const e=this.fileInput.files;e&&this.fileSelected.emit({fileList:e,document_type:this.documentType})}}componentDidLoad(){this.fileInput=this.el.querySelector("input")}get part(){let e=u;return this.errorText&&(e=k),this.disabled&&(e=x),this.isFocused&&(e=j),e}render(){return t(a,{key:"2f33f18c45bf27b27e3a3a633ba21ba90eee5ceb"},t("div",{key:"c749589536322fcc31a2ce7ccf1614c57881da36",class:"form-group d-flex flex-column"},t("div",{key:"c30a7d7ab3ade7898d74d0b0c638b7f76b05ad73",class:"d-flex align-items-start gap-2"},t("label",{key:"62a9d698290f4d02ec06f3c26327f7abfc6bf8dc",part:y,class:"form-label",htmlFor:this.name},this.label),t("form-control-tooltip",{key:"93636c12615e31be1091dce3a77e29c5b78620af",helpText:this.helpText})),t("input",{key:"0e6430bbf633b6228f09013f6ce60e0810759666",ref:e=>this.fileInput=e,type:"file",name:this.name,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onChange:this.changeHandler,onInput:this.handleFormControlInput,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()}}),t(_,{key:"90d3406a0417e6073815a2f6e370c14ec614bf6a",errorText:this.errorText,name:this.name})))}get el(){return c(this)}};export{T as bank_account_document_form_inputs,g as bank_account_form_inputs,w as business_documents_on_file,B as form_control_file}
@@ -0,0 +1 @@
1
+ import{r as s,h as t}from"./p-N3w5zrz2.js";import{c as e,F as i}from"./p-DVnVdicA.js";import{k as a,l as r,m as d,n as o,q as n,y as l}from"./p-JOSiCHl7.js";import{ag as c}from"./p-D3G5aVLy.js";import{H as p}from"./p-DbcOhajT.js";import"./p-CZfYo5-1.js";import"./p-BFTU3MAI.js";import"./p-BX8GieXu.js";import"./p-yH3TC3ZQ.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";const h=class{constructor(t){s(this,t),this.errors={},this.inputHandler=(s,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:t}))}}componentWillLoad(){this.formController=new i((s=>{const t=e({name:l.required("Enter full name"),address_line1:n.required("Enter street address"),address_line2:o.nullable(),address_city:d.required("Enter city"),address_state:r.required("Select state"),address_postal_code:a.required("Enter postal code")}),i=e({name:l.nullable(),address_line1:n.nullable(),address_line2:o.nullable(),address_city:d.nullable(),address_state:r.nullable(),address_postal_code:a.required("Enter postal code")});return s?i:t})(this.isPostalOnlyMode))}componentDidLoad(){this.formController.values.subscribe((s=>this.billingInfo=Object.assign({},s))),this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get isPostalOnlyMode(){return"card"===this.paymentMethodType&&this.hideCardBillingForm}get hideAllBillingFields(){return"bankAccount"===this.paymentMethodType&&this.hideBankAccountBillingForm}async getValues(){return this.formController.values.getValue()}async fill(s){this.formController.setInitialValues(s)}async validate(){return{isValid:await this.formController.validate(),errors:this.formController.errors.getValue()}}render(){return t("div",{key:"91beaa8646dd35b12e4ef90ce4cdcb73f1a441b2",part:c,class:"mt-4",hidden:this.hideAllBillingFields},!this.isPostalOnlyMode&&!this.hideAllBillingFields&&t(p,{key:"ca3c1fbba66828371c2172e0d6c6607b36836b00",text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),this.legend&&t("legend",{key:"50f2c5e1f7a7b4f14841a91afb7ad7be79e0f89d"},this.legend),t(this.isPostalOnlyMode?"justifi-postal-code-form":"justifi-billing-information-form",null))}};export{h as justifi_billing_form}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,c as o}from"./p-N3w5zrz2.js";import{r as i}from"./p-D3G5aVLy.js";import{S as e}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{c as l}from"./p-BtT7kqMw.js";import{C as n}from"./p-zucQG3cz.js";import{f as a}from"./p-9REosSLu.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";const r=class{constructor(s){t(this,s),this.onPaymentMethodOptionClick=t=>s=>{s.preventDefault(),l.selectedPaymentMethod=t},this.isAllowedPaymentMethod=t=>!("card"===t.type&&l.disableCreditCard||"bank_account"===t.type&&l.disableBankAccount)}componentWillLoad(){l.paymentMethods.length||console.warn("No saved payment methods available."),l.disablePaymentMethodGroup&&console.warn("Payment method group is disabled.")}render(){return l.disablePaymentMethodGroup?null:s(e,null,s("div",{class:"saved-payment-methods"},l.paymentMethods.length?l.paymentMethods.filter(this.isAllowedPaymentMethod).map((t=>s("div",{class:"radio-list-item p-3",part:i,onClick:this.onPaymentMethodOptionClick(null==t?void 0:t.id)},s("form-control-radio",{name:"paymentMethodType",value:null==t?void 0:t.id,checked:l.selectedPaymentMethod===(null==t?void 0:t.id),label:`${n[null==t?void 0:t.brand]||""} *${null==t?void 0:t.acct_last_four}`})))):null))}},p=s("img",{class:"sezzle-smart-button-logo-img",src:"https://media.sezzle.com/branding/2.0/Sezzle_Logo_FullColor.svg",alt:"Sezzle",style:{display:"inline",width:"80px",marginLeft:"5px",marginTop:"-5px"}}),m=class{constructor(s){t(this,s),this.paymentMethodOptionSelected=o(this,"paymentMethodOptionSelected"),this.paymentMethodOptionId="sezzle",this.onPaymentMethodOptionClick=t=>{t.preventDefault(),l.selectedPaymentMethod=this.paymentMethodOptionId,this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId)},this.initializeSezzleCheckout=()=>{let t;this.sezzlePromise=new Promise((s=>{t=s}));const s=Number(l.paymentAmount),o=new(0,window.Checkout)({mode:"popup",publicKey:l.bnplProviderClientId,apiMode:l.bnplProviderMode,apiVersion:l.bnplProviderApiVersion});o.sezzleButtonElement=this.sezzleButtonRef,o.init({onClick:function(t){t.preventDefault(),o.startCheckout({checkout_url:l.bnplProviderCheckoutUrl})},onComplete:s=>t({bnpl:s.data}),onCancel:s=>t({bnpl:s.data}),onFailure:s=>t({bnpl:s.data})}),this.sezzleCheckout=o,this.installmentPlan=this.sezzleCheckout.getInstallmentPlan(s)}}componentDidRender(){this.scriptRef&&(this.scriptRef.onload=()=>{this.sezzleButtonRef=document.createElement("button"),this.initializeSezzleCheckout()})}async resolvePaymentMethod(t){return t.isValid?(this.sezzleButtonRef.click(),this.sezzlePromise):{validationError:!0}}render(){var t,o;return!l.bnplEnabled||l.disableBnpl?(console.warn("justifi-sezzle-payment-method: BNPL is not enabled for this account."),null):s(e,{class:"payment-method"},s("script",{src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:t=>this.scriptRef=t}),s("div",{class:"radio-list-item p-3",part:i,onClick:this.onPaymentMethodOptionClick},s("form-control-radio",{name:"paymentMethodType",value:this.paymentMethodOptionId,checked:l.selectedPaymentMethod===this.paymentMethodOptionId,label:s("div",null,s("div",null,"Buy now, pay later with ",p),this.installmentPlan&&s("small",null,s("span",null,null===(t=this.installmentPlan)||void 0===t?void 0:t.installments.length)," ",s("span",null,this.installmentPlan.schedule," payments of")," ",s("span",{class:"fw-bold"},a(null===(o=this.installmentPlan)||void 0===o?void 0:o.installments[0].amountInCents))))})))}};export{r as justifi_saved_payment_methods,m as justifi_sezzle_payment_method}
@@ -1 +1 @@
1
- import{r as s,h as t}from"./p-N3w5zrz2.js";import{E as a}from"./p-Clv1feia.js";import"./p-BrLVc_85.js";const e=class{constructor(t){s(this,t)}render(){return t("div",{key:"3c1c4e729711c6676c176a5a04228ec7ebb7acfa"},this.errorMessage?a(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{e as justifi_details}
1
+ import{r as s,h as t}from"./p-N3w5zrz2.js";import{E as a}from"./p-DAoffYFW.js";import"./p-D3G5aVLy.js";const e=class{constructor(t){s(this,t)}render(){return t("div",{key:"3c1c4e729711c6676c176a5a04228ec7ebb7acfa"},this.errorMessage?a(this.errorMessage):t("main",{class:"p-2"},t("slot",{name:"head-info"}),t("slot",{name:"detail-sections"})))}};export{e as justifi_details}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-N3w5zrz2.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import{I as t,a as s}from"./p-CMNxLEJP.js";import"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{f as l,p as o,c as p}from"./p-CKRDBISo.js";import{e as r,s as i,p as c}from"./p-D3G5aVLy.js";import{S as d}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const m=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{l[e]=a}}componentWillLoad(){Object.entries({status:this.checkoutStatus,payment_mode:this.paymentMode}).forEach((([e,a])=>{a&&(o[e]=a)}))}get checkoutStatusOptions(){return[{label:"All",value:""},{label:"Created",value:t.created},{label:"Completed",value:t.completed},{label:"Attempted",value:t.attempted},{label:"Expired",value:t.expired}]}get checkoutPaymentModeOptions(){return[{label:"All",value:""},{label:"E-commerce",value:s.ecom},{label:"BNPL",value:s.bnpl}]}render(){const e=Object.assign({},l);return a(d,{key:"5474a09b729c816bafb47101dbf5a25aff92eb1b"},a("table-filters-menu",{key:"92e46a05e67bdf84b74cd644c1b89d0fc4c86af9",params:e,clearParams:p,part:r},a("div",{key:"d8562876f8a0c1d85caa5a298cccdb1143bd7512",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"4162644cf10861d91a79dc07f845dd21a6c8d6a5",class:"p-2"},a("form-control-select",{key:"2b13ef4af25f6ac3865f3b0edde91929655537bf",name:"status",label:"Status",options:this.checkoutStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.checkoutStatus||l.status,disabled:!!this.checkoutStatus,part:i})),a("div",{key:"9aee7f453be147b03a548fe9ea9bd9bcc6a233aa",class:"p-2"},a("form-control-select",{key:"8f375d5660c3414e5f3796e02694fa46ed761871",name:"payment_mode",label:"Payment Mode",options:this.checkoutPaymentModeOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentMode||l.payment_mode,disabled:!!this.paymentMode,part:c})))))}};export{m as justifi_checkouts_list_filters}
@@ -0,0 +1 @@
1
+ import{h as e,r as a,c as t}from"./p-N3w5zrz2.js";import{S as i}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{S as s}from"./p-BjQrbohd.js";import{c,J as d}from"./p-BQ5bL1Y5.js";import{w as n,c as r}from"./p-CfBKn_Vl.js";import{c as o,F as l}from"./p-DVnVdicA.js";import{k as f,l as b,m as h,n as p,q as m,y as u}from"./p-JOSiCHl7.js";import{ag as y}from"./p-D3G5aVLy.js";import{n as k}from"./p-BnjCmwMr.js";import{S as v}from"./p-BX8GieXu.js";import{o as g}from"./p-BtT7kqMw.js";import"./p-DR0dQ8Fv.js";import"./p-DHvfrLVU.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";import"./p-BhrFjjAs.js";import"./p-CMNxLEJP.js";import"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-7MWRbTXI.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-Dcbfnfn2.js";import"./p-yH3TC3ZQ.js";const j=a=>{const{isReady:t}=a;return t?null:e("div",{class:"container-fluid p-0"},e("div",{class:"row mb-3"},e("div",{class:"col-12 align-content-end"},e(s,{height:"18px",width:"120px"}),e(s,{height:"36px"}))),e("div",{class:"row"},e("div",{class:"col-12 align-content-end"},e(s,{height:"18px",width:"110px"}),e(s,{height:"36px"}))))},x=class{constructor(e){a(this,e),this.isReady=!1}async componentWillLoad(){await n(),this.iframeOrigin=r.iframeOrigin,c(),this.analytics=new d(this)}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((e=>new Promise((a=>{e.addEventListener("iframeLoaded",(()=>{a()}))}))))).then((()=>{this.isReady=!0}))}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}async validate(){const e=await this.accountNumberIframeElement.validate(),a=await this.routingNumberIframeElement.validate();return e&&a}async tokenize({clientId:e,paymentMethodMetadata:a,account:t}){return this.accountNumberIframeElement.tokenize(e,a,t)}render(){return e(i,{key:"62a8adb8888d6143bbc27678ccff125c7b3a59ec"},e(j,{key:"a73372809ad95b4aa900aa6907ce4517ce01cdde",isReady:this.isReady}),e("hidden-input",{key:"a9324304388bf0b3b19bfe4f8ea56c9fad1a12e7"}),e("div",{key:"7b7584c3af3bfe6ca6fb7bdbec25d4c0c9d43b40",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"40c0352915f903b5ba6fda1642644158daf129b7",class:"row mb-3"},e("iframe-input",{key:"af64688e5d8b5da6898a5e20550cc1992a28fe9c",inputId:"accountNumber",ref:e=>this.accountNumberIframeElement=e,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber`})),e("div",{key:"20fbdaffb3d2ba3ac8c44a4b64040f146ad58789",class:"row"},e("iframe-input",{key:"5a0fd0855570d0ebbcd1d6be2f569d08a4ae3c17",inputId:"routingNumber",ref:e=>this.routingNumberIframeElement=e,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber`}))))}},w=e=>{const a=o({name:u.required("Enter full name"),address_line1:m.required("Enter street address"),address_line2:p.nullable(),address_city:h.required("Enter city"),address_state:b.required("Select state"),address_postal_code:f.required("Enter postal code")}),t=o({name:u.nullable(),address_line1:m.nullable(),address_line2:p.nullable(),address_city:h.nullable(),address_state:b.nullable(),address_postal_code:f.required("Enter postal code")});return e?t:a},_=class{constructor(e){a(this,e),this.errors={},this.inputHandler=(e,a)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:a}))}}connectedCallback(){this.unsubscribe=g("billingFormFields",(e=>{this.formController.setInitialValues(e)}))}disconnectedCallback(){var e;null===(e=this.unsubscribe)||void 0===e||e.call(this)}componentWillLoad(){this.formController=new l(w())}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async validate(){return{isValid:await this.formController.validate()}}render(){const a=this.formController.getInitialValues();return e(i,{key:"7111e5b5bb74bf5af175910094a75eccaff6f1c1"},e("div",{key:"2ab9f375ca4d7b911f121a54eacbf1db58922fbf",part:y},e("form",{key:"85a3c97691dcbf47c626e879639b56abeae4b2b2"},e("fieldset",{key:"8fbc358d9e9341f909484e1854f61fcfd1eb1fb7"},e("div",{key:"f829796613bf471ad10e9b56c925c279b89d1285",class:"row gy-3"},e("div",{key:"fb4db86dffdef38fdbdce46ff616ca04ae76e2d3",class:"col-12"},e("form-control-text",{key:"8fbb9905623d60a3927e12b378643ba114444317",name:"name",label:"Full Name",defaultValue:a.name,errorText:this.errors.name,inputHandler:this.inputHandler})),e("div",{key:"ad970e98848b37a7fbf38426816934d6d07f3f0c",class:"col-12"},e("form-control-text",{key:"6e760651837835e11302b8c67a2df8fca1e8ed7e",name:"address_line1",label:"Street Address",defaultValue:a.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),e("div",{key:"e0e5e930cbe8d1004c9c042d11808cdfe249ec63",class:"col-12"},e("form-control-text",{key:"804eddc192b2986da21e408c6ec4b0e5776cdc97",name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:a.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),e("div",{key:"816709631875826395d2299c550aab269ebcc978",class:"col-12"},e("form-control-text",{key:"51f9d36ac48eb9fd96e1174464c8626a5186f8fa",name:"address_city",label:"City",defaultValue:a.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),e("div",{key:"d6a218546863ca966ca29b6a25c7965133e03e9c",class:"col-12"},e("form-control-select",{key:"09a02e39dd8fe8bd994f66e29c0c30e232a0fe62",name:"address_state",label:"State",options:v,defaultValue:a.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),e("div",{key:"171d7901a169a8a86dae6db50f85094d891a754e",class:"col-12"},e("form-control-text",{key:"9c0654206e6e7a6f3e8ec1f6e91c856d56fb10f4",name:"address_postal_code",label:"ZIP",defaultValue:a.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:k})))))))}},C=a=>{const{isReady:t}=a;return t?null:e("div",{class:"container-fluid p-0"},e("div",{class:"mb-3"},e(s,{height:"18px",width:"100px"}),e(s,{height:"36px"})),e("div",{class:"row"},e("div",{class:"col-4 align-content-end"},e(s,{height:"18px",width:"80px"}),e(s,{height:"36px"})),e("div",{class:"col-4 align-content-end"},e(s,{height:"36px"})),e("div",{class:"col-4 align-content-end"},e(s,{height:"18px",width:"30px"}),e(s,{height:"36px"}))))},V=class{constructor(e){a(this,e),this.isReady=!1}async componentWillLoad(){await n(),this.iframeOrigin=r.iframeOrigin,c(),this.analytics=new d(this)}componentDidRender(){Promise.all([this.cardNumberIframeElement,this.expirationMonthIframeElement,this.expirationYearIframeElement,this.cvvIframeElement].map((e=>new Promise((a=>{e.addEventListener("iframeLoaded",(()=>{a()}))}))))).then((()=>{this.isReady=!0}))}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}async validate(){const e=await this.cardNumberIframeElement.validate(),a=await this.expirationMonthIframeElement.validate(),t=await this.expirationYearIframeElement.validate(),i=await this.cvvIframeElement.validate();return e&&a&&t&&i}async tokenize({clientId:e,paymentMethodMetadata:a,account:t}){return this.cardNumberIframeElement.tokenize(e,a,t)}render(){return e(i,{key:"2c4ec015f537508bc875aaf6e3d527cd4f39eec6"},e(C,{key:"064b3dab1b506c3332c753233b1893b36d36d42a",isReady:this.isReady}),e("hidden-input",{key:"cb74f8ef5c6c437c3ff2c763b2b3f7a9f7732c13"}),e("div",{key:"7c688141ed3e96b032fc6f96a170cd4be09a65e5",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"2722c8d805cc4767bf58cb70c5be4815e8bc09ee",class:"mb-3"},e("iframe-input",{key:"428df22cc9075d737c5aec2520596ae774adde1e",inputId:"cardNumber",ref:e=>this.cardNumberIframeElement=e,label:"Card Number",iframeOrigin:`${this.iframeOrigin}/v2/cardNumber`})),e("div",{key:"292ae9746f3dd219ced19be33f6900fa00bfb4b1",class:"row"},e("div",{key:"2e825c02e676a30e873f6f119aa6521e49ac7051",class:"col-4 align-content-end"},e("iframe-input",{key:"4a9ddbf248fdabcc6da0fb405e95c906717a91ab",inputId:"expirationMonth",ref:e=>this.expirationMonthIframeElement=e,label:"Expiration",iframeOrigin:`${this.iframeOrigin}/v2/expirationMonth`})),e("div",{key:"a500314664b746c6947107021e32d04790000865",class:"col-4 align-content-end"},e("iframe-input",{key:"995c9294a85c8da8b9e314646c93c700a54e7310",inputId:"expirationYear",ref:e=>this.expirationYearIframeElement=e,label:"",iframeOrigin:`${this.iframeOrigin}/v2/expirationYear`})),e("div",{key:"b0a7d1f9df2a2fba165d3cae93b542da80cec77c",class:"col-4 align-content-end"},e("iframe-input",{key:"3adfeccdfc31745b972bf7d040aaf0e5d55fbfb3",inputId:"CVV",ref:e=>this.cvvIframeElement=e,label:"CVV",iframeOrigin:`${this.iframeOrigin}/v2/CVV`})))))}},L=class{constructor(e){a(this,e),this.errors={},this.inputHandler=(e,a)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:a}))}}connectedCallback(){this.unsubscribe=g("billingFormFields",(e=>{this.formController.setInitialValues(e)}))}disconnectedCallback(){var e;null===(e=this.unsubscribe)||void 0===e||e.call(this)}componentWillLoad(){this.formController=new l(w(!0))}componentDidLoad(){this.formController.values.subscribe((e=>this.billingInfo=Object.assign({},e))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}async getValues(){return this.formController.values.getValue()}async fill(e){this.formController.setInitialValues(e)}async validate(){return{isValid:await this.formController.validate()}}render(){const a=this.formController.getInitialValues();return e(i,{key:"bc2746672b9bcb986f658f69c53ded47f78165e2"},e("form",{key:"9a2642233487802aa55c0a0a548f277e252517d3"},e("form-control-text",{key:"ff3f4e10ebe6a278bbe0671691128a058e8ada8b",name:"address_postal_code",label:"ZIP",defaultValue:a.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:k})))}},O=class{constructor(e){a(this,e),this.checkboxChanged=t(this,"checkboxChanged"),this.isChecked=!1}handleCheckboxChange(e,a){this.isChecked=a,this.checkboxChanged.emit(this.isChecked)}render(){return e(i,{key:"114f1887f2aebee2440d5c0b187fe1f361137230"},e("div",{key:"8a967beb89065a8b3ee501f0589b6617764c641e",class:"mt-4 form-check"},e("form-control-checkbox",{key:"b22ca881a5fcda9dc044dfd1175e9ae06fd9f504",label:"Save new payment method",name:"saveNewPaymentMethod",checked:this.isChecked,inputHandler:this.handleCheckboxChange.bind(this)})))}};export{x as justifi_bank_account_form,_ as justifi_billing_information_form,V as justifi_card_form,L as justifi_postal_code_form,O as justifi_save_new_payment_method}
@@ -0,0 +1 @@
1
+ import{h as s,r as i,c as t}from"./p-N3w5zrz2.js";import{c as r,F as e}from"./p-DVnVdicA.js";import{b as o,a}from"./p-d6tXI5Iw.js";import{i as h,a as n}from"./p-BdTK0wi9.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import{C as p,a as l}from"./p-BhrFjjAs.js";import"./p-CMNxLEJP.js";import"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import{B as m,b as d}from"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c,J as j}from"./p-BQ5bL1Y5.js";import{B as f}from"./p-By9Lz2e0.js";import{S as u}from"./p-o5iASgog.js";import{H as v}from"./p-B9ROmZzw.js";import"./p-CZfYo5-1.js";import{S as b}from"./p-BjQrbohd.js";import{B as w}from"./p-XYgDHrVL.js";import{m as g,b as B}from"./p-BxfUcCXo.js";import{B as C}from"./p-DUqRxn4Y.js";import"./p-BFTU3MAI.js";import"./p-JOSiCHl7.js";import"./p-BX8GieXu.js";import"./p-yH3TC3ZQ.js";import"./p-Dcbfnfn2.js";import"./p-Dt-vy9Le.js";import"./p-DR0dQ8Fv.js";import"./p-DHvfrLVU.js";import"./p-D3G5aVLy.js";import"./p-NqdaxjDT.js";const y=r(Object.assign(Object.assign({},o().fields),{legal_address:n(),additional_questions:a(),representative:h("representative")})),x=()=>s("div",{class:"row gap-3"},s("div",{class:"col-12"},s(b,{width:"25%"})),s("div",{class:"col-12"},s(b,{width:"100%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"50%"}),s(b,{width:"50%"})),s("div",{class:"col-12 d-flex gap-3"},s(b,{width:"65%"}),s(b,{width:"35%"}))),L=()=>s("div",{class:"row gap-5"},s("div",{class:"col-12"},s(b,{width:"40%",height:"40px"})),s(x,null),s(x,null),s(x,null)),S=class{constructor(s){i(this,s),this.submitEvent=t(this,"submit-event"),this.clickEvent=t(this,"click-event"),this.errorEvent=t(this,"error-event"),this.isLoading=!1,this.isSaving=!1,this.hideErrors=!1,this.formTitle="Business Information",this.removeTitle=!1,this.instantiateBusiness=s=>{const i=new m(s);this.formController.setInitialValues(Object.assign({},i))},this.sendData=async()=>{this.isSaving=!0;const s=this.formController.values.getValue(),i=this.formController.getInitialValues(),t=new m(Object.assign(Object.assign({},i),s)).payload;this.patchBusiness({payload:t,onSuccess:s=>{this.handleReponse(s)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isSaving=!1}})},this.validateAndSubmit=s=>{s.preventDefault(),this.formController.validateAndSubmit(this.sendData)}}componentWillLoad(){c(),this.analytics=new j(this),this.formController=new e(y),this.initializeApi()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}get title(){return this.removeTitle?"":this.formTitle}get disabledState(){return this.isSaving}get businessEndpoint(){return`entities/business/${this.businessId}`}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=g({authToken:this.authToken,businessId:this.businessId,service:new C}),this.patchBusiness=B({authToken:this.authToken,businessId:this.businessId,service:new C}),this.getBusiness({onSuccess:s=>{this.instantiateBusiness(s.data)},onError:({error:s,code:i,severity:t})=>{this.errorMessage=s.message,this.errorEvent.emit({errorCode:i,message:s.message,severity:t})},final:()=>{this.isLoading=!1}})):this.errorEvent.emit({message:"auth-token and business-id are required",errorCode:l.MISSING_PROPS,severity:p.ERROR})}handleReponse(s){s.error&&(this.errorMessage=d.patchData),this.submitEvent.emit({response:s}),this.instantiateBusiness(s.data)}render(){return s(u,null,this.isLoading?s(L,null):s("form",{onSubmit:this.validateAndSubmit},s("div",{class:"row gap-3"},s(v,{text:this.title}),s("form-alert",{text:this.errorMessage,hideAlert:this.hideErrors}),s("div",{class:"col-12 mb-4"},s("justifi-business-core-info",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-legal-address-form",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-additional-questions",{formController:this.formController})),s("div",{class:"col-12 mb-4"},s("justifi-business-representative",{formController:this.formController})),s("div",{class:"col-12 d-flex flex-row-reverse"},s(f,{type:"submit",disabled:this.disabledState,variant:"primary",onClick:()=>this.clickEvent.emit({name:w.submit}),isLoading:this.isSaving},"Submit")))))}};export{S as justifi_business_form}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-N3w5zrz2.js";import{T as i,a,b as r,c as h,d as o,e as p,f as n,g as c,h as d,i as f,j as m,k as b,l as j}from"./p-Dh6FEdp8.js";import{T as u}from"./p-CZfYo5-1.js";import"./p-CfBKn_Vl.js";import"./p-9REosSLu.js";import"./p-BhrFjjAs.js";import"./p-CMNxLEJP.js";import{p as l}from"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{t as g,a as y}from"./p-m2jmX-Hz.js";import{o as k,g as C}from"./p-w128-0Mj.js";import"./p-D3G5aVLy.js";import"./p-CEp46FZK.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-fUv1jFAw.js";const w=class{constructor(e){t(this,e),this.clickEvent=s(this,"click-event"),this.errorEvent=s(this,"error-event"),this.terminalOrders=[],this.loading=!0,this.paging=l,this.pagingParams={},this.handleClickPrevious=t=>{this.pagingParams={before_cursor:t},this.clickEvent.emit({name:u.previous})},this.handleClickNext=t=>{this.pagingParams={after_cursor:t},this.clickEvent.emit({name:u.next})},this.rowClickHandler=t=>{const s=t.target.closest("tr").dataset.rowEntityId;if(!s)return;const e=this.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:u.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new i(this.terminalOrders,this.columns,g,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(j,{key:"7769afb4f66eb4d3ed675240b74a3f01a092dd62"},e(a,{key:"c9fe768eb207c8d0fe141aee99751e04ea66266d"},e(r,{key:"5d53abd49815f7414ce07d961f688f0fe8b706e1"},e(h,{key:"7db4b8d91e8ebfaf581b2d62055edf7c2fe79da6"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"5558ce7cf951c039512cb0d934ec1ac10ede9ab9"},e(p,{key:"74fab03e34ae551054cc6aaa0915815fd2d48743",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(n,{key:"f93b026d223fd2e7137092f7823a8f03d43014cd",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(c,{key:"ef440ee3fdb0d587bc4cf84cd0c40951500a7d90",columnSpan:this.terminalOrdersTable.columnKeys.length,errorMessage:this.errorMessage}),this.showRowData&&this.terminalOrdersTable.rowData.map(((t,s)=>e(d,{"data-test-id":"table-row","data-row-entity-id":this.entityId[s],onClick:this.rowClickHandler},t)))),this.paging&&e(f,{key:"8be85a2251ed4ac8b4565735ed0d6b89118e83f0"},e(m,{key:"efb9e3ce15acddb4e80b9edd62c4b15483d23e43"},e(b,{key:"04b2a04cd26597dc4d671cc8697f2ebaede744ed",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"8903172f408bf99ef0581057e998fc2b29818a8b",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{w as terminal_orders_list_core}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as a,H as e,a as i}from"./p-N3w5zrz2.js";import{c as o,l as r,b as h,T as l,a as c,aj as n,ak as f,al as d}from"./p-D3G5aVLy.js";import{F as p}from"./p-BxWsrx5h.js";import"./p-CZfYo5-1.js";const b=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target,a=s.getAttribute("name");this.inputHandler(a,s.value),this.formControlInput.emit(s.value)},this.updateInput=t=>{this.selectElement.value=t}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){let t=o;return this.errorText&&(t=h),this.disabled&&(t=l),this.isFocused&&(t=c),t}render(){var t;return a(e,{key:"a7428cd8a89414d877dafe9948f5652f28c36a5f"},a("div",{key:"c9d5d5d2f8a6292484d3606d883dbb9d168aa316",class:"form-group d-flex flex-column"},a("div",{key:"c1aba6560934b966de02e9afef77428c6060eefb",class:"d-flex align-items-start gap-2"},a("label",{key:"5fbbb09c3955ff3285b006f24c3873082394d39c",part:r,class:"form-label",htmlFor:this.name},this.label),a("form-control-tooltip",{key:"f756a05a8273ab6fd65205bb5c32cd34c30a9db3",helpText:this.helpText})),a("select",{key:"ffd0fa461d3c35da5595e705a7c4068066d8f971",ref:t=>this.selectElement=t,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-select is-invalid":"form-select",disabled:this.disabled},null===(t=this.options)||void 0===t?void 0:t.map((t=>a("option",{value:t.value},t.label)))),a(p,{key:"6ee60bb236ccf7cea7bc8ccf946a363d2cd26906",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},u=class{constructor(a){t(this,a),this.formControlInput=s(this,"formControlInput"),this.formControlBlur=s(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const s=t.target,a=s.getAttribute("name");this.inputHandler(a,s.value),this.formControlInput.emit({name:a,value:s.value})},this.updateInput=t=>{const s=this.el.querySelector("input");s&&(s.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.errorText?h:this.disabled?l:this.isFocused?c:o}render(){return a(e,{key:"eb266645327b65097de5c9a6b2858f2c9a38412e"},a("div",{key:"a20abffedd96e0114988859acbb4823c5a6839e0",class:"form-group d-flex flex-column"},a("div",{key:"26bf741a7908f6920b04a062432473cd935186ea",class:"d-flex align-items-start gap-2"},a("label",{key:"944ba9e8f13ca14ba4d7880874536f19b19c02f6",part:r,class:"form-label",htmlFor:this.name},this.label),a("form-control-tooltip",{key:"596052a2165ed3e22ea45a949ffc663d82b12b6b",helpText:this.helpText})),a("input",{key:"7e2b7aeef57188ca4b3e5ab767e784b736eff5ba",id:this.name,name:this.name,onFocus:()=>this.isFocused=!0,onBlur:()=>{this.isFocused=!1,this.formControlBlur.emit()},onInput:this.handleFormControlInput,onKeyDown:this.keyDownHandler,onPaste:this.keyDownHandler,maxLength:this.maxLength,part:this.part,class:this.errorText?"form-control is-invalid":"form-control",type:"text",disabled:this.disabled}),a(p,{key:"ffc880aaa556ba0a6e8ae6f36d0ba14d34b2919e",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}},m=class{constructor(s){t(this,s)}show(){this.tooltip.classList.add("show")}hide(){this.tooltip.classList.remove("show")}render(){return this.helpText?a("div",{class:"tooltip-container"},a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-question-square tooltip-icon",viewBox:"0 0 16 16",ref:t=>this.anchorIcon=t,part:d},a("path",{d:"M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"}),a("path",{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"})),a("custom-popper",{trigger:"hover",placement:"top",anchorRef:this.anchorIcon},a("div",{class:"tooltip bs-tooltip-top",part:n,role:"tooltip",ref:t=>this.tooltip=t},a("div",{class:"tooltip-inner",part:f},this.helpText)))):null}};export{b as form_control_select,u as form_control_text,m as form_control_tooltip}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as r}from"./p-N3w5zrz2.js";import{A as e}from"./p-DHvfrLVU.js";import{C as s,a as o}from"./p-BhrFjjAs.js";import"./p-CMNxLEJP.js";import"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{g as n,a}from"./p-NqdaxjDT.js";import{c,J as p}from"./p-BQ5bL1Y5.js";import{c as d}from"./p-BtT7kqMw.js";import"./p-CfBKn_Vl.js";import"./p-Dcbfnfn2.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-DR0dQ8Fv.js";const u=e();class h{async fetchQuote(t,i){return u.post({endpoint:"insurance/quotes",body:i,authToken:t})}async toggleCoverage(t,i,r){return u.post({endpoint:`insurance/quotes/${i}/toggle`,body:r,authToken:t})}}const m=class{constructor(r){t(this,r),this.errorEvent=i(this,"error-event")}async validate(){return this.seasonInterruptionCoreRef.validate()}componentWillLoad(){c(),this.analytics=new p(this),this.initializeServiceMethods()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}initializeServiceMethods(){const t=this.authToken||d.authToken;if(!t)return void this.errorEvent.emit({errorCode:o.MISSING_PROPS,message:"Missing authToken",severity:s.ERROR});const i={authToken:t,service:new h};this.getQuote=(({authToken:t,service:i})=>async({payload:r,onSuccess:e,onError:o})=>{var c;try{const p=await i.fetchQuote(t,r);if(p.error)return o({error:a(p.error),code:n(null===(c=p.error)||void 0===c?void 0:c.code),severity:s.ERROR});e({quote:p.data})}catch(t){const i=n(null==t?void 0:t.code);return o({error:t.message||t,code:i,severity:s.ERROR})}})(i),this.toggleCoverage=(({authToken:t,service:i})=>async({quoteId:r,payload:e,onSuccess:o,onError:c})=>{var p;try{const d=await i.toggleCoverage(t,r,e);if(d.error)return c({error:a(d.error),code:n(null===(p=d.error)||void 0===p?void 0:p.code),severity:s.ERROR});o({quote:d.data})}catch(t){const i=n(null==t?void 0:t.code);return c({error:t.message||t,code:i,severity:s.ERROR})}})(i)}render(){return r("justifi-season-interruption-insurance-core",{key:"a563c1f6daf665c6ae06442c18dd25400b420f39",ref:t=>this.seasonInterruptionCoreRef=t,"checkout-id":this.checkoutId||d.checkoutId,getQuote:this.getQuote,toggleCoverage:this.toggleCoverage,"primary-identity-first-name":this.primaryIdentityFirstName,"primary-identity-last-name":this.primaryIdentityLastName,"primary-identity-state":this.primaryIdentityState,"primary-identity-postal-code":this.primaryIdentityPostalCode,"primary-identity-country":this.primaryIdentityCountry,"primary-identity-email-address":this.primaryIdentityEmailAddress,"policy-attributes-insurable-amount":this.policyAttributesInsurableAmount,"policy-attributes-start-date":this.policyAttributesStartDate,"policy-attributes-end-date":this.policyAttributesEndDate,"covered-identity-first-name":this.coveredIdentityFirstName,"covered-identity-last-name":this.coveredIdentityLastName})}};export{m as justifi_season_interruption_insurance}
@@ -0,0 +1 @@
1
+ import{h as i,r as s,c as t}from"./p-N3w5zrz2.js";import{ap as e,am as r,ae as o,z as l}from"./p-D3G5aVLy.js";import{S as d}from"./p-o5iASgog.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-BQ5bL1Y5.js";import{C as h,a as c}from"./p-BhrFjjAs.js";import{B as u}from"./p-DUqRxn4Y.js";import{B as v}from"./p-BlJnA265.js";import{m as p}from"./p-DKClunJd.js";import{S as m}from"./p-BjQrbohd.js";import"./p-CfBKn_Vl.js";import{k as f}from"./p-9REosSLu.js";import{h as b,g as j,b as w}from"./p-CMNxLEJP.js";import"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-7MWRbTXI.js";import{g as x,a as g}from"./p-NqdaxjDT.js";import{T as y}from"./p-Bc5u1WjM.js";import"./p-DR0dQ8Fv.js";import"./p-DHvfrLVU.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-Dcbfnfn2.js";import"./p-BFTU3MAI.js";const B=()=>i("div",{class:"row gap-3"},i("div",{class:"col-12"},i(m,{width:"25%"})),i("div",{class:"col-12"},i(m,{width:"100%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"50%"}),i(m,{width:"50%"})),i("div",{class:"col-12 d-flex gap-3"},i(m,{width:"65%"}),i(m,{width:"35%"}))),S=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(m,{width:"40%",height:"40px"})),i(B,null)),k=()=>i("div",{class:"terminal-selector-skeleton mt-4 rounded shadow-sm"},i("div",{class:"d-flex align-items-center gap-3"},i(m,{width:"125px",height:"125px",styles:{borderRadius:"8px"}}),i("div",{class:"flex-grow-1"},i("div",{class:"d-flex row flex-row"},i("div",{class:"col-6 flex-column"},i(m,null),i(m,{width:"60%"})),i("div",{class:"d-flex justify-content-end align-items-center gap-2 col-6"},i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}),i(m,{width:"80px",height:"32px"}),i(m,{width:"32px",height:"32px",styles:{borderRadius:"50%"}}))),i("div",{class:"mt-4"},i("div",{class:"d-flex flex-column gap-2"},i(m,null),i(m,null)))))),C=class{constructor(i){s(this,i),this.errorEvent=t(this,"error-event"),this.submitted=t(this,"submit-event"),this.shipping=!1,this.submitButtonText="Submit Order",this.loading={business:!0,terminals:!0},this.submitting=!1,this.error=null,this.totalQuantity=0}componentWillLoad(){this.order=new j({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?w.boardingShipping:w.boardingOnly}),n(),this.analytics=new a(this),this.loadData()}disconnectedCallback(){var i;null===(i=this.analytics)||void 0===i||i.cleanup()}handleError(i,s,t){this.error={message:i,code:s,severity:t},this.errorEvent.emit({errorCode:s,message:i,severity:t})}loadData(){this.businessId&&this.authToken?(this.initializeGetBusiness(),this.initializeGetTerminalModels()):this.handleError("Invalid business id or auth token",c.MISSING_PROPS,h.ERROR)}initializeGetBusiness(){p({id:this.businessId,authToken:this.authToken,service:new u})({onSuccess:({business:i})=>{this.business=new v(i),this.loading.business=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.business=!1}})}initializeGetTerminalModels(){(({id:i,authToken:s,service:t})=>async({onSuccess:e,onError:r})=>{var o,l,d,n;try{const a=await t.fetchTerminalModels(i,s);if(a.error)return r({error:g(a.error),code:x(null===(n=a.error)||void 0===n?void 0:n.code),severity:h.ERROR});e({terminals:(null===(l=null===(o=a.data)||void 0===o?void 0:o.terminal_order_models)||void 0===l?void 0:l.map((i=>new b(i))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=x(null==i?void 0:i.code);return r({error:i.message||i,code:s,severity:h.ERROR})}})({id:this.accountId,authToken:this.authToken,service:new y})({onSuccess:({terminals:i,orderLimit:s})=>{this.terminalModels=i,this.orderLimit=s,this.loading.terminals=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.loading.terminals=!1}})}submitOrder(){const i=(({authToken:i,service:s,apiOrigin:t="https://wc-proxy.justifi.ai"})=>async({terminalOrder:e,onSuccess:r,onError:o})=>{var l;try{const d=await s.orderTerminals(i,e,t);if(d.error)return o({error:g(d.error),code:x(null===(l=d.error)||void 0===l?void 0:l.code),severity:h.ERROR});{const{data:i}=d;r({data:i})}}catch(i){const s=x(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new y});this.submitting=!0,i({terminalOrder:this.order.payload,onSuccess:({data:i})=>{this.submitted.emit(i),this.submitting=!1},onError:({error:i,code:s,severity:t})=>{this.handleError(i,s,t),this.submitting=!1}})}onSelectedQuantityChange(i){this.order.updateTerminal(i.detail.modelName,i.detail.quantity),this.totalQuantity=this.order.totalQuantity}renderLoading(){return i("div",null,this.loading.business&&i(S,null),this.loading.terminals&&i("div",{class:"mt-5"},i(k,null),i(k,null),i(k,null)))}renderBusinessDetails(){var s,t,o,l,d,n,a,h;if(!this.loading.business&&this.business)return i("div",{class:"d-flex flex-column gap-4 mb-5 pt-5"},i("div",{class:"row"},i("div",{class:"col-12"},i("h2",{part:r},this.business.legal_name))),i("div",{class:"row"},i("div",{class:"col-6"},i("h5",{part:e},"Representative:"),i("div",null,i("div",null,null===(t=null===(s=this.business)||void 0===s?void 0:s.representative)||void 0===t?void 0:t.name),i("div",null,null===(l=null===(o=this.business)||void 0===o?void 0:o.representative)||void 0===l?void 0:l.title),i("div",null,null===(n=null===(d=this.business)||void 0===d?void 0:d.representative)||void 0===n?void 0:n.email),i("div",null,f(null===(h=null===(a=this.business)||void 0===a?void 0:a.representative)||void 0===h?void 0:h.phone)))),i("div",{class:"col-6"},i("h5",{part:e},this.shipping?"Shipping Address:":"Business Address:"),i("div",null,this.business.legal_address.line1,this.business.legal_address.line2?`, ${this.business.legal_address.line2}`:"",i("br",null),this.business.legal_address.city,", ",this.business.legal_address.state," ",this.business.legal_address.postal_code))))}renderTerminals(){if(!this.loading.terminals&&this.terminalModels)return i("div",{class:"d-flex flex-column gap-2 mt-5"},this.terminalModels.map((s=>i("terminal-quantity-selector",{modelName:s.model_name,description:s.description,imageUrl:s.image_url,helpUrl:s.help_url,limit:this.orderLimit-this.order.totalQuantity,onSelectedQuantityChange:this.onSelectedQuantityChange.bind(this)}))))}renderOrderSection(){return i("div",{class:"mt-3"},i("div",{class:"text-end"},"Order limit: ",this.orderLimit),i("div",{class:"d-flex justify-content-end mt-3"},i("button",{class:"btn btn-primary submit-btn",onClick:this.submitOrder.bind(this),disabled:0===this.order.totalQuantity||this.submitting,part:o},this.submitting?"Submitting...":this.submitButtonText)))}render(){return i(d,{key:"01b1a2a01294f88b7c31fc3d9523351f2a0eabfa"},i("div",{key:"61cb9b199e9741aae879a8db3174c0c0078b59b5",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{C as justifi_order_terminals}
@@ -1 +1 @@
1
- import{r as e,h as a,H as t}from"./p-N3w5zrz2.js";import{al as l,D as d}from"./p-BrLVc_85.js";import{a as i,r as s,s as c,b as o}from"./p-yH3TC3ZQ.js";import{C as r,T as n,P as f,S as b}from"./p-B-iV5cYd.js";import{C as u}from"./p-BlJnA265.js";import{d as h}from"./p-Dt-vy9Le.js";import{S as m}from"./p-BX8GieXu.js";import{n as v}from"./p-BnjCmwMr.js";const y=class{constructor(a){e(this,a)}render(){return this.text?this.hideAlert?null:a("div",{class:"alert alert-danger d-flex align-items-center",role:"alert",part:l},a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",class:"bi bi-exclamation-triangle-fill flex-shrink-0 me-2",viewBox:"0 0 16 16",role:"img","aria-label":"Warning:"},a("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})),a("div",null,this.text)):null}},p=class{constructor(a){e(this,a),this.errors={},this.additional_questions={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.additional_questions=Object.assign({},e.additional_questions)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{additional_questions:Object.assign(Object.assign({},this.formController.values.getValue().additional_questions),{[e]:a})}))}render(){var e,l,o,n,f,b,u,h,m,v,y,p,k,x;const j=this.formController.getInitialValues().additional_questions;return a(t,{key:"6e2549b906fec8928dae89a4f143916a2b50eff3"},a("fieldset",{key:"525eab0debf75c3996c45128e9431086e49c3850"},a("legend",{key:"adeb6e2a32fb4f9e991d7b4843569116e336743c",part:d},"Additional Questions"),a("div",{key:"29b55613d32bc434017fc561033c6c9b8800666d",class:"row gy-3"},a("div",{key:"80c1d6b2c5e52c5fe0f8b9c3591bb315e51f7c55",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"e69e6c75d3a6add592e90e3709d7b7ff694ebfe0",name:"business_revenue",label:"What is the business' estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(l=null===(e=this.errors)||void 0===e?void 0:e.additional_questions)||void 0===l?void 0:l.business_revenue,defaultValue:null==j?void 0:j.business_revenue,maskOptions:r.WHOLE})),a("div",{key:"af0e66f6f647ed7248e0d861707cc378c85b0dce",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"e1f6af9f7537bf4d4e96739ff7537be01ca9371c",name:"business_payment_volume",label:"What is the business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(n=null===(o=this.errors)||void 0===o?void 0:o.additional_questions)||void 0===n?void 0:n.business_payment_volume,defaultValue:null==j?void 0:j.business_payment_volume,maskOptions:r.WHOLE})),a("div",{key:"b914a2f8abd79eab79d284f1ece9850f4a417893",class:"col-12"},a("form-control-select",{key:"8954dfe23f7984810fbae657ac9995e40253b377",name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(b=null===(f=this.errors)||void 0===f?void 0:f.additional_questions)||void 0===b?void 0:b.business_when_service_received,options:i,defaultValue:null==j?void 0:j.business_when_service_received})),a("div",{key:"da533644fd51e8678fc80d49c7db0ce20a803019",class:"col-12"},a("form-control-select",{key:"06c23865a5bbda38b294dd4edfee6ace942fb732",name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(h=null===(u=this.errors)||void 0===u?void 0:u.additional_questions)||void 0===h?void 0:h.business_recurring_payments,options:s,defaultValue:null==j?void 0:j.business_recurring_payments})),a("div",{key:"bb492db9aea205138ef76cf6fc7c3f686bb41a79",class:"col-12"},a("form-control-text",{key:"a3f900076730b504587619ff9c4c13ecce36f541",name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(v=null===(m=this.errors)||void 0===m?void 0:m.additional_questions)||void 0===v?void 0:v.business_recurring_payments_percentage,defaultValue:null==j?void 0:j.business_recurring_payments_percentage})),a("div",{key:"e2f56ae5d9654bdb1077689a1ef59c9047e97bda",class:"col-12"},a("form-control-select",{key:"697e41186b4c82046e50288594681117bf8dd6fe",name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(p=null===(y=this.errors)||void 0===y?void 0:y.additional_questions)||void 0===p?void 0:p.business_seasonal,options:c,defaultValue:null==j?void 0:j.business_seasonal})),a("div",{key:"2e2f5d17b70604b9425997d9e4e0dfafea933448",class:"col-12"},a("form-control-text",{key:"27d305b06e7bc2d66084c9d04ebb785883564bbd",name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business?",inputHandler:this.inputHandler,errorText:null===(x=null===(k=this.errors)||void 0===k?void 0:k.additional_questions)||void 0===x?void 0:x.business_other_payment_details,defaultValue:null==j?void 0:j.business_other_payment_details})))))}},k=class{constructor(a){e(this,a),this.errors={},this.coreInfo={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.values.subscribe((e=>this.coreInfo=Object.assign({},new u(e)))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:a}))}render(){const e=this.formController.getInitialValues();return a(t,{key:"71096918610aa3068cf89fbf9f3537b7f49942c6"},a("fieldset",{key:"502e6c3e3ae05256c6e5e8d315b4aa208ce88953"},a("legend",{key:"ccbe69b2323e815dc77b2602a96bdc4238fcef03",part:d},"General Info"),a("div",{key:"19a70fd7a361e5de4c88e14cbff12d88f78233e3",class:"row gy-3"},a("div",{key:"611bcc2bd35db7b6940a5b7ae53c54b55b855dd6",class:"col-12"},a("form-control-text",{key:"a9de594470c896aff0803c34a313c38467f7c82a",name:"legal_name",label:"Legal Name",defaultValue:e.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler})),a("div",{key:"ed742f64b1c344587127ce94ba1d17206bbdebb3",class:"col-12"},a("form-control-text",{key:"abb41f3aa059c180882066e21fe0239838cd9956",name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:e.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler})),a("div",{key:"3659fb0dd0419fd4d6f0205bc9e32aef05f56aa1",class:"col-12 col-md-8"},a("form-control-select",{key:"5bbbe7cd7fe0a7e8788e36855ff18390bf8df301",name:"classification",label:"Business Classification",options:o,defaultValue:e.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),a("div",{key:"5007e6269c59878e6388164ff8d5163090b87585",class:"col-12 col-md-4"},a("form-control-date",{key:"4fa7c7f001ced10c746d2891fe3efd8336542907",name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:e.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),a("div",{key:"e245a4ac6e0904c9742a0d1d220cb95c9fe63497",class:"col-12 col-md-6"},a("form-control-text",{key:"bc7367525a45c221c576f2b31c1a95680a95937a",name:"industry",label:"Industry",defaultValue:e.industry,errorText:this.errors.industry,inputHandler:this.inputHandler})),a("div",{key:"6475831320818242eda7ac045dcdd076fbc4245c",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"d68e8046fa42f4d5976aa44a7769b14fc4cda416",name:"tax_id",label:"Tax ID",defaultValue:e.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:n.US})),a("div",{key:"f59cda0241c1ad92d0d995e330b92079ba75737f",class:"col-12"},a("form-control-text",{key:"8243464d1c75897c1e3423e5045f34b81b425a9e",name:"website_url",label:"Website URL",defaultValue:e.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler})),a("div",{key:"c65251b25e0996277f7d0e11d25d6340ccfc11e7",class:"col-12 col-md-6"},a("form-control-text",{key:"fe3a4eff53786f49fbfe24afb048f861bf7a469a",name:"email",label:"Email Address",defaultValue:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"b1d909e5f937dcbbac0082b293571904c0c81396",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"83238873cbd8ccc08a5c3af1bd87a7965fefb5f8",name:"phone",label:"Phone Number",defaultValue:e.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:f.US})))))}},x=class{constructor(a){e(this,a),this.errors={},this.representative={},this.inputHandler=(e,a)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{[e]:a})}))},this.onAddressFormUpdate=e=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{address:Object.assign(Object.assign({},this.formController.values.getValue().representative.address),e)})}))},this.onDateOfBirthUpdate=e=>{const a=h(e.detail);this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{dob_day:a.dob_day,dob_month:a.dob_month,dob_year:a.dob_year})}))}}get identificationNumberLabel(){return this.representative.ssn_last4?"Update SSN (optional)":"SSN"}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e.representative))),this.formController.values.subscribe((e=>this.representative=Object.assign({},e.representative)))}render(){const e=this.formController.getInitialValues().representative;return a(t,{key:"eb9c09602a11107abc465463bf7e7cdbeb98cede"},a("fieldset",{key:"1f2a035f9796c29269a7dcd7ca874c73ed6493bb"},a("legend",{key:"1aeaba7f119f15e1ffa75cd58d77608fe51a60c8",part:d},"Representative"),a("div",{key:"5d09c634135046c79b4ac80b5c1cfee9fbd26ce0",class:"row gy-3"},a("div",{key:"6f03250bf88cc79ff07a1de68fef97a41a376aec",class:"col-12 col-md-8"},a("form-control-text",{key:"d6696ab573a305e277db56a578eaeb3fc4adf9ff",name:"name",label:"Full Name",defaultValue:null==e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"fd6ddc83d99b4f86f29566077249a23724741438",class:"col-12 col-md-4"},a("form-control-text",{key:"632b12a09042ffdaf85d2fafecfab1736bbc8d36",name:"title",label:"Title",defaultValue:null==e?void 0:e.title,errorText:this.errors.title,inputHandler:this.inputHandler})),a("div",{key:"65842c9cb8c616806631bd1d2902342cebf5326e",class:"col-12 col-md-6"},a("form-control-text",{key:"8e1f64cc7f97e4b337dfcda6494fca5750656130",name:"email",label:"Email Address",defaultValue:null==e?void 0:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"e050604c8d71e1d07f916822fbb73da4c3f5e034",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"a5bba8b362ce6070efc65e88ee80880ce855e624",name:"phone",label:"Phone Number",defaultValue:null==e?void 0:e.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:f.US})),a("div",{key:"dcbd23ab368e630ebaea9e8bdbb6985a98d5fbeb",class:"col-12 col-md-4"},a("form-control-date",{key:"05e0e255549ad8f0760102aab5cbfe444cae5996",name:"dob_full",label:"Birth Date",defaultValue:null==e?void 0:e.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:this.onDateOfBirthUpdate})),a("div",{key:"764595ed842fd09221ef71d5c921a9ebe947556d",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"91761e52dd724a27e135a3db8b7c85643f7891d9",name:"identification_number",label:this.identificationNumberLabel,defaultValue:null==e?void 0:e.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:b})),a("div",{key:"4be6739744d6d9fcd060ed9d894502f35396a9a9",class:"col-12"},a("justifi-identity-address-form",{key:"7c9d98057e908a068aa0783b10b2bd0f634d7ab9",errors:this.errors.address,defaultValues:null==e?void 0:e.address,handleFormUpdate:this.onAddressFormUpdate})))))}},j=class{constructor(a){e(this,a),this.errors={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.legal_address=Object.assign({},e.legal_address)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{legal_address:Object.assign(Object.assign({},this.formController.values.getValue().legal_address),{[e]:a})}))}render(){var e,l,i,s,c,o,r,n,f,b,u,h;const y=this.formController.getInitialValues().legal_address;return a(t,{key:"129b2ec053708454db5a515fdae9a7fba5289336"},a("fieldset",{key:"6af5c9469acc432ea01ff404af25727bd444abc7"},a("legend",{key:"1af149db608a13d18142aaea83f9ed2e8271fdc0",part:d},"Business Legal Address"),a("div",{key:"805c6ae992ebed34937b9a2622f50a7f99c7d0e6",class:"row gy-3"},a("div",{key:"78750dc68bcc6782bc4a71cfd14d417e980a57a6",class:"col-12"},a("form-control-text",{key:"18a75e38a7a5fbfcbbbce56e4967ce34c5618c8e",name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.line1,errorText:null===(l=null===(e=this.errors)||void 0===e?void 0:e.legal_address)||void 0===l?void 0:l.line1})),a("div",{key:"676622c84785edfafa3413359d4985d26a734985",class:"col-12"},a("form-control-text",{key:"e8467f96595d240f5fc93585e472ad844cc49143",name:"line2",label:"Address Line 2",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.line2,errorText:null===(s=null===(i=this.errors)||void 0===i?void 0:i.legal_address)||void 0===s?void 0:s.line2})),a("div",{key:"01556012d9335d23c14e130ca72b6e75028bcb36",class:"col-12"},a("form-control-text",{key:"c08dcd0ef726ff714d60de26492ced763a7d32ff",name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.city,errorText:null===(o=null===(c=this.errors)||void 0===c?void 0:c.legal_address)||void 0===o?void 0:o.city})),a("div",{key:"ad811869e742f265a5441c6f36c2a55fa0b07952",class:"col-12"},a("form-control-select",{key:"47cc4b15578257f3c1fdee7896d28da94b5aaa16",name:"state",label:"State",options:m,inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.state,errorText:null===(n=null===(r=this.errors)||void 0===r?void 0:r.legal_address)||void 0===n?void 0:n.state})),a("div",{key:"f732fd2ed3967ee7fd602f41c62efd24cf6038eb",class:"col-12"},a("form-control-text",{key:"0431a63d11beb6682a2544d2483901f7fffa77bd",name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.postal_code,errorText:null===(b=null===(f=this.errors)||void 0===f?void 0:f.legal_address)||void 0===b?void 0:b.postal_code,maxLength:5,keyDownHandler:v})),a("div",{key:"cca67b0cd006f6cf9f9bbfe147507eb0ac6fecca",class:"col-12"},a("form-control-select",{key:"f561947f9443ea6f56d7ae31d44a69e2462c0751",name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.country,errorText:null===(h=null===(u=this.errors)||void 0===u?void 0:u.legal_address)||void 0===h?void 0:h.country,disabled:!0})))))}};export{y as form_alert,p as justifi_additional_questions,k as justifi_business_core_info,x as justifi_business_representative,j as justifi_legal_address_form}
1
+ import{r as e,h as a,H as t}from"./p-N3w5zrz2.js";import{ay as l,C as d}from"./p-D3G5aVLy.js";import{a as i,r as s,s as c,b as o}from"./p-yH3TC3ZQ.js";import{C as r,T as n,P as f,S as b}from"./p-B-iV5cYd.js";import{C as u}from"./p-BlJnA265.js";import{d as h}from"./p-Dt-vy9Le.js";import{S as m}from"./p-BX8GieXu.js";import{n as v}from"./p-BnjCmwMr.js";const y=class{constructor(a){e(this,a)}render(){return this.text?this.hideAlert?null:a("div",{class:"alert alert-danger d-flex align-items-center",role:"alert",part:l},a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",fill:"currentColor",class:"bi bi-exclamation-triangle-fill flex-shrink-0 me-2",viewBox:"0 0 16 16",role:"img","aria-label":"Warning:"},a("path",{d:"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"})),a("div",null,this.text)):null}},p=class{constructor(a){e(this,a),this.errors={},this.additional_questions={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.additional_questions=Object.assign({},e.additional_questions)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{additional_questions:Object.assign(Object.assign({},this.formController.values.getValue().additional_questions),{[e]:a})}))}render(){var e,l,o,n,f,b,u,h,m,v,y,p,k,x;const j=this.formController.getInitialValues().additional_questions;return a(t,{key:"6e2549b906fec8928dae89a4f143916a2b50eff3"},a("fieldset",{key:"525eab0debf75c3996c45128e9431086e49c3850"},a("legend",{key:"adeb6e2a32fb4f9e991d7b4843569116e336743c",part:d},"Additional Questions"),a("div",{key:"29b55613d32bc434017fc561033c6c9b8800666d",class:"row gy-3"},a("div",{key:"80c1d6b2c5e52c5fe0f8b9c3591bb315e51f7c55",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"e69e6c75d3a6add592e90e3709d7b7ff694ebfe0",name:"business_revenue",label:"What is the business' estimated annual revenue from its primary business activities?",inputHandler:this.inputHandler,errorText:null===(l=null===(e=this.errors)||void 0===e?void 0:e.additional_questions)||void 0===l?void 0:l.business_revenue,defaultValue:null==j?void 0:j.business_revenue,maskOptions:r.WHOLE})),a("div",{key:"af0e66f6f647ed7248e0d861707cc378c85b0dce",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"e1f6af9f7537bf4d4e96739ff7537be01ca9371c",name:"business_payment_volume",label:"What is the business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(n=null===(o=this.errors)||void 0===o?void 0:o.additional_questions)||void 0===n?void 0:n.business_payment_volume,defaultValue:null==j?void 0:j.business_payment_volume,maskOptions:r.WHOLE})),a("div",{key:"b914a2f8abd79eab79d284f1ece9850f4a417893",class:"col-12"},a("form-control-select",{key:"8954dfe23f7984810fbae657ac9995e40253b377",name:"business_when_service_received",label:"On average, how long after paying will your customers typically receive their goods or services?",inputHandler:this.inputHandler,errorText:null===(b=null===(f=this.errors)||void 0===f?void 0:f.additional_questions)||void 0===b?void 0:b.business_when_service_received,options:i,defaultValue:null==j?void 0:j.business_when_service_received})),a("div",{key:"da533644fd51e8678fc80d49c7db0ce20a803019",class:"col-12"},a("form-control-select",{key:"06c23865a5bbda38b294dd4edfee6ace942fb732",name:"business_recurring_payments",label:"Does your business offer recurring payments?",inputHandler:this.inputHandler,errorText:null===(h=null===(u=this.errors)||void 0===u?void 0:u.additional_questions)||void 0===h?void 0:h.business_recurring_payments,options:s,defaultValue:null==j?void 0:j.business_recurring_payments})),a("div",{key:"bb492db9aea205138ef76cf6fc7c3f686bb41a79",class:"col-12"},a("form-control-text",{key:"a3f900076730b504587619ff9c4c13ecce36f541",name:"business_recurring_payments_percentage",label:"What percent of revenue is generated from each recurring payment type offered?",inputHandler:this.inputHandler,errorText:null===(v=null===(m=this.errors)||void 0===m?void 0:m.additional_questions)||void 0===v?void 0:v.business_recurring_payments_percentage,defaultValue:null==j?void 0:j.business_recurring_payments_percentage})),a("div",{key:"e2f56ae5d9654bdb1077689a1ef59c9047e97bda",class:"col-12"},a("form-control-select",{key:"697e41186b4c82046e50288594681117bf8dd6fe",name:"business_seasonal",label:"Is this business seasonal?",inputHandler:this.inputHandler,errorText:null===(p=null===(y=this.errors)||void 0===y?void 0:y.additional_questions)||void 0===p?void 0:p.business_seasonal,options:c,defaultValue:null==j?void 0:j.business_seasonal})),a("div",{key:"2e2f5d17b70604b9425997d9e4e0dfafea933448",class:"col-12"},a("form-control-text",{key:"27d305b06e7bc2d66084c9d04ebb785883564bbd",name:"business_other_payment_details",label:"Is there anything else you would like us to know about how your customers pay the business?",inputHandler:this.inputHandler,errorText:null===(x=null===(k=this.errors)||void 0===k?void 0:k.additional_questions)||void 0===x?void 0:x.business_other_payment_details,defaultValue:null==j?void 0:j.business_other_payment_details})))))}},k=class{constructor(a){e(this,a),this.errors={},this.coreInfo={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.values.subscribe((e=>this.coreInfo=Object.assign({},new u(e)))),this.formController.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:a}))}render(){const e=this.formController.getInitialValues();return a(t,{key:"71096918610aa3068cf89fbf9f3537b7f49942c6"},a("fieldset",{key:"502e6c3e3ae05256c6e5e8d315b4aa208ce88953"},a("legend",{key:"ccbe69b2323e815dc77b2602a96bdc4238fcef03",part:d},"General Info"),a("div",{key:"19a70fd7a361e5de4c88e14cbff12d88f78233e3",class:"row gy-3"},a("div",{key:"611bcc2bd35db7b6940a5b7ae53c54b55b855dd6",class:"col-12"},a("form-control-text",{key:"a9de594470c896aff0803c34a313c38467f7c82a",name:"legal_name",label:"Legal Name",defaultValue:e.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler})),a("div",{key:"ed742f64b1c344587127ce94ba1d17206bbdebb3",class:"col-12"},a("form-control-text",{key:"abb41f3aa059c180882066e21fe0239838cd9956",name:"doing_business_as",label:"Doing Business As (DBA)",defaultValue:e.doing_business_as,errorText:this.errors.doing_business_as,inputHandler:this.inputHandler})),a("div",{key:"3659fb0dd0419fd4d6f0205bc9e32aef05f56aa1",class:"col-12 col-md-8"},a("form-control-select",{key:"5bbbe7cd7fe0a7e8788e36855ff18390bf8df301",name:"classification",label:"Business Classification",options:o,defaultValue:e.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),a("div",{key:"5007e6269c59878e6388164ff8d5163090b87585",class:"col-12 col-md-4"},a("form-control-date",{key:"4fa7c7f001ced10c746d2891fe3efd8336542907",name:"date_of_incorporation",label:"Date of Incorporation",defaultValue:e.date_of_incorporation,errorText:this.errors.date_of_incorporation,inputHandler:this.inputHandler})),a("div",{key:"e245a4ac6e0904c9742a0d1d220cb95c9fe63497",class:"col-12 col-md-6"},a("form-control-text",{key:"bc7367525a45c221c576f2b31c1a95680a95937a",name:"industry",label:"Industry",defaultValue:e.industry,errorText:this.errors.industry,inputHandler:this.inputHandler})),a("div",{key:"6475831320818242eda7ac045dcdd076fbc4245c",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"d68e8046fa42f4d5976aa44a7769b14fc4cda416",name:"tax_id",label:"Tax ID",defaultValue:e.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:n.US})),a("div",{key:"f59cda0241c1ad92d0d995e330b92079ba75737f",class:"col-12"},a("form-control-text",{key:"8243464d1c75897c1e3423e5045f34b81b425a9e",name:"website_url",label:"Website URL",defaultValue:e.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler})),a("div",{key:"c65251b25e0996277f7d0e11d25d6340ccfc11e7",class:"col-12 col-md-6"},a("form-control-text",{key:"fe3a4eff53786f49fbfe24afb048f861bf7a469a",name:"email",label:"Email Address",defaultValue:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"b1d909e5f937dcbbac0082b293571904c0c81396",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"83238873cbd8ccc08a5c3af1bd87a7965fefb5f8",name:"phone",label:"Phone Number",defaultValue:e.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:f.US})))))}},x=class{constructor(a){e(this,a),this.errors={},this.representative={},this.inputHandler=(e,a)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{[e]:a})}))},this.onAddressFormUpdate=e=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{address:Object.assign(Object.assign({},this.formController.values.getValue().representative.address),e)})}))},this.onDateOfBirthUpdate=e=>{const a=h(e.detail);this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{representative:Object.assign(Object.assign({},this.formController.values.getValue().representative),{dob_day:a.dob_day,dob_month:a.dob_month,dob_year:a.dob_year})}))}}get identificationNumberLabel(){return this.representative.ssn_last4?"Update SSN (optional)":"SSN"}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e.representative))),this.formController.values.subscribe((e=>this.representative=Object.assign({},e.representative)))}render(){const e=this.formController.getInitialValues().representative;return a(t,{key:"eb9c09602a11107abc465463bf7e7cdbeb98cede"},a("fieldset",{key:"1f2a035f9796c29269a7dcd7ca874c73ed6493bb"},a("legend",{key:"1aeaba7f119f15e1ffa75cd58d77608fe51a60c8",part:d},"Representative"),a("div",{key:"5d09c634135046c79b4ac80b5c1cfee9fbd26ce0",class:"row gy-3"},a("div",{key:"6f03250bf88cc79ff07a1de68fef97a41a376aec",class:"col-12 col-md-8"},a("form-control-text",{key:"d6696ab573a305e277db56a578eaeb3fc4adf9ff",name:"name",label:"Full Name",defaultValue:null==e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"fd6ddc83d99b4f86f29566077249a23724741438",class:"col-12 col-md-4"},a("form-control-text",{key:"632b12a09042ffdaf85d2fafecfab1736bbc8d36",name:"title",label:"Title",defaultValue:null==e?void 0:e.title,errorText:this.errors.title,inputHandler:this.inputHandler})),a("div",{key:"65842c9cb8c616806631bd1d2902342cebf5326e",class:"col-12 col-md-6"},a("form-control-text",{key:"8e1f64cc7f97e4b337dfcda6494fca5750656130",name:"email",label:"Email Address",defaultValue:null==e?void 0:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"e050604c8d71e1d07f916822fbb73da4c3f5e034",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"a5bba8b362ce6070efc65e88ee80880ce855e624",name:"phone",label:"Phone Number",defaultValue:null==e?void 0:e.phone,errorText:this.errors.phone,inputHandler:this.inputHandler,mask:f.US})),a("div",{key:"dcbd23ab368e630ebaea9e8bdbb6985a98d5fbeb",class:"col-12 col-md-4"},a("form-control-date",{key:"05e0e255549ad8f0760102aab5cbfe444cae5996",name:"dob_full",label:"Birth Date",defaultValue:null==e?void 0:e.dob_full,errorText:this.errors.dob_full,inputHandler:this.inputHandler,onFormControlInput:this.onDateOfBirthUpdate})),a("div",{key:"764595ed842fd09221ef71d5c921a9ebe947556d",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"91761e52dd724a27e135a3db8b7c85643f7891d9",name:"identification_number",label:this.identificationNumberLabel,defaultValue:null==e?void 0:e.identification_number,errorText:this.errors.identification_number,inputHandler:this.inputHandler,mask:b})),a("div",{key:"4be6739744d6d9fcd060ed9d894502f35396a9a9",class:"col-12"},a("justifi-identity-address-form",{key:"7c9d98057e908a068aa0783b10b2bd0f634d7ab9",errors:this.errors.address,defaultValues:null==e?void 0:e.address,handleFormUpdate:this.onAddressFormUpdate})))))}},j=class{constructor(a){e(this,a),this.errors={},this.inputHandler=this.inputHandler.bind(this)}componentDidLoad(){this.formController.errors.subscribe((e=>this.errors=Object.assign({},e))),this.formController.values.subscribe((e=>this.legal_address=Object.assign({},e.legal_address)))}inputHandler(e,a){this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{legal_address:Object.assign(Object.assign({},this.formController.values.getValue().legal_address),{[e]:a})}))}render(){var e,l,i,s,c,o,r,n,f,b,u,h;const y=this.formController.getInitialValues().legal_address;return a(t,{key:"129b2ec053708454db5a515fdae9a7fba5289336"},a("fieldset",{key:"6af5c9469acc432ea01ff404af25727bd444abc7"},a("legend",{key:"1af149db608a13d18142aaea83f9ed2e8271fdc0",part:d},"Business Legal Address"),a("div",{key:"805c6ae992ebed34937b9a2622f50a7f99c7d0e6",class:"row gy-3"},a("div",{key:"78750dc68bcc6782bc4a71cfd14d417e980a57a6",class:"col-12"},a("form-control-text",{key:"18a75e38a7a5fbfcbbbce56e4967ce34c5618c8e",name:"line1",label:"Legal Address",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.line1,errorText:null===(l=null===(e=this.errors)||void 0===e?void 0:e.legal_address)||void 0===l?void 0:l.line1})),a("div",{key:"676622c84785edfafa3413359d4985d26a734985",class:"col-12"},a("form-control-text",{key:"e8467f96595d240f5fc93585e472ad844cc49143",name:"line2",label:"Address Line 2",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.line2,errorText:null===(s=null===(i=this.errors)||void 0===i?void 0:i.legal_address)||void 0===s?void 0:s.line2})),a("div",{key:"01556012d9335d23c14e130ca72b6e75028bcb36",class:"col-12"},a("form-control-text",{key:"c08dcd0ef726ff714d60de26492ced763a7d32ff",name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.city,errorText:null===(o=null===(c=this.errors)||void 0===c?void 0:c.legal_address)||void 0===o?void 0:o.city})),a("div",{key:"ad811869e742f265a5441c6f36c2a55fa0b07952",class:"col-12"},a("form-control-select",{key:"47cc4b15578257f3c1fdee7896d28da94b5aaa16",name:"state",label:"State",options:m,inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.state,errorText:null===(n=null===(r=this.errors)||void 0===r?void 0:r.legal_address)||void 0===n?void 0:n.state})),a("div",{key:"f732fd2ed3967ee7fd602f41c62efd24cf6038eb",class:"col-12"},a("form-control-text",{key:"0431a63d11beb6682a2544d2483901f7fffa77bd",name:"postal_code",label:"Postal Code",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.postal_code,errorText:null===(b=null===(f=this.errors)||void 0===f?void 0:f.legal_address)||void 0===b?void 0:b.postal_code,maxLength:5,keyDownHandler:v})),a("div",{key:"cca67b0cd006f6cf9f9bbfe147507eb0ac6fecca",class:"col-12"},a("form-control-select",{key:"f561947f9443ea6f56d7ae31d44a69e2462c0751",name:"country",label:"Country",options:[{label:"United States",value:"USA"}],inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.country,errorText:null===(h=null===(u=this.errors)||void 0===u?void 0:u.legal_address)||void 0===h?void 0:h.country,disabled:!0})))))}};export{y as form_alert,p as justifi_additional_questions,k as justifi_business_core_info,x as justifi_business_representative,j as justifi_legal_address_form}
@@ -0,0 +1 @@
1
+ import{r as s,c as e,h as t,H as i}from"./p-N3w5zrz2.js";import{Z as a,_ as h,$ as c,a0 as r,a1 as o,l as f}from"./p-D3G5aVLy.js";import{F as m}from"./p-DhAmsAOH.js";import{F as b}from"./p-BxWsrx5h.js";import"./p-CZfYo5-1.js";const n=class{constructor(t){s(this,t),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=s=>{s.preventDefault();const e=s.target,t=e.getAttribute("name");this.inputHandler(t,e.checked),this.formControlInput.emit({name:t,value:e.value})},this.updateInput=s=>{this.checkboxElement.checked=s}}get part(){return this.errorText?a:this.isFocused&&this.checked?h:this.isFocused?c:this.checked?r:o}render(){return t(i,{key:"cb878f1f74f6b677e33e07b61eb39f1b16c567c1"},t("div",{key:"167df136f1b44f0bf858d2ed4c8cddf67afe05fa",class:"form-group d-flex flex-column"},t("div",{key:"74e3a823e0c6c6a64de50ebb68be2241fb6dd8ba",class:"form-check"},t("input",{key:"65c82ac502370c5b55800c2190fef383368639cf",ref:s=>this.checkboxElement=s,type:"checkbox",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-check-input is-invalid":"form-check-input",disabled:this.disabled,checked:this.checked}),t("label",{key:"69a428f166d8a46f483c72c954ed6e2b17b81584",class:"form-check-label",htmlFor:this.name,part:f},this.label)),t(m,{key:"a9baa778379ae26189b96983ee9a3279020b2d94",helpText:this.helpText,name:this.name}),t(b,{key:"e1d9e8d4996777ec30978ece5b03892044e1a95e",errorText:this.errorText,name:this.name})))}};export{n as form_control_checkbox}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-N3w5zrz2.js";import{C as r,a as e}from"./p-BhrFjjAs.js";import{c as o,J as p}from"./p-BQ5bL1Y5.js";import{a}from"./p-7MWRbTXI.js";import{g as n,a as h}from"./p-NqdaxjDT.js";import{D as c}from"./p-sT4o5vru.js";import"./p-DR0dQ8Fv.js";import"./p-DHvfrLVU.js";import"./p-CfBKn_Vl.js";import"./p-Dcbfnfn2.js";import"./p-9REosSLu.js";import"./p-BFTU3MAI.js";import"./p-CMNxLEJP.js";import"./p-CLHwhyvu.js";import"./p-BCPBc18Y.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const m=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){o(),this.analytics=new p(this),this.initializeGetDispute()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetDispute()}initializeGetDispute(){this.disputeId&&this.authToken?this.getDispute=(({id:t,authToken:s,service:i})=>async({onSuccess:e,onError:o})=>{var p;try{const c=await i.fetchDispute(t,s);if(c.error)return o({error:h(c.error),code:n(null===(p=c.error)||void 0===p?void 0:p.code),severity:r.ERROR});{const t=Object.assign({},c.page_info);e({dispute:new a(c.data),pagingInfo:t})}}catch(t){const s=n(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:r.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new c}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:e.MISSING_PROPS,severity:r.ERROR}))}render(){return i("justifi-dispute-management-core",{key:"4087eb105a046a3cc194d9f25c80fa11298fa0a2",getDispute:this.getDispute,disputeId:this.disputeId,authToken:this.authToken,"onError-event":this.handleErrorEvent})}static get watchers(){return{disputeId:["propChanged"],authToken:["propChanged"]}}};export{m as justifi_dispute_management}