@justifi/webcomponents 5.7.6-rc-20 → 5.7.6-rc-21

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 (676) hide show
  1. package/dist/cjs/{Api-p2pK86Zd.js → Api-CPuq_15r.js} +1 -1
  2. package/dist/cjs/{Refund-BztCb6AK.js → Refund-CqWNG8sx.js} +148 -1
  3. package/dist/cjs/additional-questions-details_5.cjs.entry.js +2 -1
  4. package/dist/cjs/bank-account-document-form-inputs_4.cjs.entry.js +7 -7
  5. package/dist/cjs/bank-account-form.cjs.entry.js +2 -2
  6. package/dist/cjs/{business.service-DwZSyIlI.js → business.service-C3BdUPlm.js} +2 -3
  7. package/dist/cjs/card-form.cjs.entry.js +2 -2
  8. package/dist/cjs/{check-pkg-version-YrC82qgd.js → check-pkg-version-BzCIWkkG.js} +3 -4
  9. package/dist/cjs/{checkout.service-C_qEIb8b.js → checkout.service-B0ZmvWwI.js} +2 -3
  10. package/dist/cjs/{checkout.store-mEv437nN.js → checkout.store-CV_fuGQw.js} +3 -2
  11. package/dist/cjs/checkouts-list-core.cjs.entry.js +5 -5
  12. package/dist/cjs/{checkouts-table-DJoMGwVG.js → checkouts-table-UN5gPpQ_.js} +1 -1
  13. package/dist/cjs/{custom-popper.cjs.entry.js → custom-popper_2.cjs.entry.js} +22 -2
  14. package/dist/cjs/dinero-BwNN_k7x.js +1657 -0
  15. package/dist/cjs/{dispute.service-cQpQQMeh.js → dispute.service-DsPEAcDn.js} +2 -3
  16. package/dist/cjs/form-alert_5.cjs.entry.js +4 -4
  17. package/dist/cjs/form-control-checkbox.cjs.entry.js +2 -2
  18. package/dist/cjs/form-control-date.cjs.entry.js +2 -2
  19. package/dist/cjs/form-control-file-v2_2.cjs.entry.js +3 -3
  20. package/dist/cjs/form-control-monetary-provisioning.cjs.entry.js +2 -2
  21. package/dist/cjs/form-control-monetary.cjs.entry.js +4 -3
  22. package/dist/cjs/form-control-number-masked_2.cjs.entry.js +6 -4
  23. package/dist/cjs/form-control-number.cjs.entry.js +2 -2
  24. package/dist/cjs/form-control-radio.cjs.entry.js +2 -2
  25. package/dist/cjs/{form-control-select_3.cjs.entry.js → form-control-select_2.cjs.entry.js} +4 -23
  26. package/dist/cjs/{get-payment-details-DwLcmCQs.js → get-payment-details-DtCXaIMx.js} +3 -4
  27. package/dist/cjs/{get-subaccounts-CvtcQGsb.js → get-subaccounts-CwCH5rC8.js} +3 -4
  28. package/dist/cjs/gross-payment-chart-core.cjs.entry.js +3 -2
  29. package/dist/cjs/hidden-input_2.cjs.entry.js +5 -5
  30. package/dist/cjs/{insurance-state-qT_hkvZV.js → insurance-state-Cyva9u6S.js} +18 -0
  31. package/dist/cjs/justifi-additional-questions-form-step-core_6.cjs.entry.js +3 -3
  32. package/dist/cjs/justifi-additional-questions-form-step_9.cjs.entry.js +14 -14
  33. package/dist/cjs/justifi-additional-statement_8.cjs.entry.js +8 -8
  34. package/dist/cjs/justifi-bank-account-billing-form-simple_9.cjs.entry.js +372 -0
  35. package/dist/cjs/justifi-business-details.cjs.entry.js +8 -8
  36. package/dist/cjs/justifi-business-form.cjs.entry.js +7 -7
  37. package/dist/cjs/justifi-business-representative-form-inputs.cjs.entry.js +1 -1
  38. package/dist/cjs/justifi-checkout-summary_6.cjs.entry.js +706 -0
  39. package/dist/cjs/justifi-checkout.cjs.entry.js +43 -36
  40. package/dist/cjs/justifi-checkouts-list-filters.cjs.entry.js +4 -4
  41. package/dist/cjs/justifi-checkouts-list.cjs.entry.js +10 -10
  42. package/dist/cjs/justifi-dispute-management-core.cjs.entry.js +1 -1
  43. package/dist/cjs/justifi-dispute-management.cjs.entry.js +8 -8
  44. package/dist/cjs/justifi-dispute-notification_3.cjs.entry.js +11 -11
  45. package/dist/cjs/justifi-gross-payment-chart.cjs.entry.js +6 -6
  46. package/dist/cjs/justifi-order-terminals.cjs.entry.js +9 -9
  47. package/dist/cjs/justifi-owner-form_3.cjs.entry.js +9 -9
  48. package/dist/cjs/justifi-payment-details.cjs.entry.js +9 -9
  49. package/dist/cjs/justifi-payment-provisioning-core.cjs.entry.js +1 -1
  50. package/dist/cjs/justifi-payment-provisioning.cjs.entry.js +8 -8
  51. package/dist/cjs/justifi-payment-transactions-list.cjs.entry.js +8 -8
  52. package/dist/cjs/justifi-payments-list-filters.cjs.entry.js +4 -3
  53. package/dist/cjs/justifi-payments-list.cjs.entry.js +10 -10
  54. package/dist/cjs/justifi-payout-details.cjs.entry.js +7 -7
  55. package/dist/cjs/justifi-payout-transactions-list.cjs.entry.js +8 -8
  56. package/dist/cjs/justifi-payouts-list-filters.cjs.entry.js +4 -3
  57. package/dist/cjs/justifi-payouts-list.cjs.entry.js +10 -10
  58. package/dist/cjs/justifi-refund-payment.cjs.entry.js +8 -8
  59. package/dist/cjs/justifi-saved-payment-method.cjs.entry.js +3 -3
  60. package/dist/cjs/justifi-season-interruption-insurance.cjs.entry.js +109 -9
  61. package/dist/cjs/justifi-skeleton.cjs.entry.js +1 -1
  62. package/dist/cjs/justifi-terminal-orders-list-filters.cjs.entry.js +5 -5
  63. package/dist/cjs/justifi-terminal-orders-list.cjs.entry.js +8 -8
  64. package/dist/cjs/justifi-terminals-list-filters.cjs.entry.js +4 -4
  65. package/dist/cjs/justifi-terminals-list.cjs.entry.js +10 -10
  66. package/dist/cjs/loader.cjs.js +1 -1
  67. package/dist/cjs/{package-DXiZjuAU.js → package-B9ks67gS.js} +1 -1
  68. package/dist/cjs/payment-details-core.cjs.entry.js +10 -9
  69. package/dist/cjs/{payment-method-option-utils-CfLXhpsL.js → payment-method-option-utils-WYHIHy-l.js} +1 -11
  70. package/dist/cjs/payment-method-option.cjs.entry.js +17 -0
  71. package/dist/cjs/{payment.service-CVZ55YLl.js → payment.service-1H0VC3LV.js} +2 -3
  72. package/dist/cjs/payments-list-core.cjs.entry.js +5 -5
  73. package/dist/cjs/{payments-table-uouQ4x2Y.js → payments-table-quF0NnsS.js} +1 -1
  74. package/dist/cjs/payout-details-core.cjs.entry.js +5 -4
  75. package/dist/cjs/{payout.service-BlbHwzd_.js → payout.service-CIZFU-hV.js} +2 -3
  76. package/dist/cjs/payouts-list-core.cjs.entry.js +5 -5
  77. package/dist/cjs/{payouts-table-Bo61u5ZZ.js → payouts-table-D_CCTR_k.js} +1 -1
  78. package/dist/cjs/table-filters-menu.cjs.entry.js +1 -1
  79. package/dist/cjs/terminal-orders-list-core.cjs.entry.js +5 -5
  80. package/dist/cjs/{terminal-orders-table-v0Sn7jUg.js → terminal-orders-table-0O5jtzYj.js} +2 -3
  81. package/dist/cjs/terminal-quantity-selector.cjs.entry.js +1 -1
  82. package/dist/cjs/{terminal.service-I07QoXPB.js → terminal.service-DUlyMTrX.js} +2 -3
  83. package/dist/cjs/terminals-list-core.cjs.entry.js +5 -5
  84. package/dist/cjs/{terminals-table-CGG9EhiI.js → terminals-table-C2BNRUS5.js} +1 -1
  85. package/dist/cjs/{utils-Dka3MplB.js → utils-BaGF9XIe.js} +3 -1661
  86. package/dist/cjs/webcomponents.cjs.js +1 -1
  87. package/dist/collection/collection-manifest.json +4 -6
  88. package/dist/collection/components/business-forms/business-form/additional-questions/additional-questions.js +1 -1
  89. package/dist/collection/components/business-forms/business-form/business-core-info/business-core-info.js +1 -1
  90. package/dist/collection/components/business-forms/business-form/business-representative/business-representative.js +1 -1
  91. package/dist/collection/components/business-forms/business-form/legal-address-form/legal-address-form.js +1 -1
  92. package/dist/collection/components/business-forms/owner-form/identity-address/identity-address-form.js +1 -1
  93. package/dist/collection/components/business-forms/owner-form/owner-form-core.js +1 -1
  94. package/dist/collection/components/business-forms/owner-form/owner-form-inputs.js +1 -1
  95. package/dist/collection/components/business-forms/owner-form/owner-form.js +1 -1
  96. package/dist/collection/components/business-forms/payment-provisioning/additional-questions/business-additional-questions-form-step.js +1 -1
  97. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-document-inputs.js +1 -1
  98. package/dist/collection/components/business-forms/payment-provisioning/bank-account/bank-account-form-inputs.js +1 -1
  99. package/dist/collection/components/business-forms/payment-provisioning/bank-account/business-bank-account-form-step.js +1 -1
  100. package/dist/collection/components/business-forms/payment-provisioning/business-core-info/business-core-info-form-step.js +1 -1
  101. package/dist/collection/components/business-forms/payment-provisioning/business-owners/business-owners-form-step.js +1 -1
  102. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-inputs.js +1 -1
  103. package/dist/collection/components/business-forms/payment-provisioning/business-representative/business-representative-form-step.js +1 -1
  104. package/dist/collection/components/business-forms/payment-provisioning/form-control-monetary-provisioning.js +2 -2
  105. package/dist/collection/components/business-forms/payment-provisioning/legal-address-form/legal-address-form-step.js +1 -1
  106. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-core.js +1 -1
  107. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-buttons.js +1 -1
  108. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning-form-steps.js +1 -1
  109. package/dist/collection/components/business-forms/payment-provisioning/payment-provisioning.js +1 -1
  110. package/dist/collection/components/business-forms/payment-provisioning/terms-and-conditions/business-terms-conditions-form-step.js +1 -1
  111. package/dist/collection/components/checkout/bank-account-form/bank-account-form.js +2 -2
  112. package/dist/collection/components/checkout/billing-form/billing-form-schema.js +24 -19
  113. package/dist/collection/components/checkout/billing-form/billing-form.js +16 -37
  114. package/dist/collection/components/checkout/card-form/card-form.js +2 -2
  115. package/dist/collection/components/checkout/checkout.js +39 -39
  116. package/dist/collection/components/checkout/payment-method-option-utils.js +0 -1
  117. package/dist/collection/components/checkout/save-new-payment-method.js +7 -5
  118. package/dist/collection/components/checkout/saved-payment-method.js +1 -1
  119. package/dist/collection/components/checkouts-list/checkouts-list-core.js +1 -1
  120. package/dist/collection/components/checkouts-list/checkouts-list-filters.js +1 -1
  121. package/dist/collection/components/checkouts-list/checkouts-list.js +1 -1
  122. package/dist/collection/components/dispute-management/dispute-management-core.js +1 -1
  123. package/dist/collection/components/dispute-management/dispute-management.js +1 -1
  124. package/dist/collection/components/dispute-management/dispute-notification.js +1 -1
  125. package/dist/collection/components/dispute-management/dispute-response/additional-statement.js +1 -1
  126. package/dist/collection/components/dispute-management/dispute-response/cancellation-policy.js +1 -1
  127. package/dist/collection/components/dispute-management/dispute-response/customer-details.js +1 -1
  128. package/dist/collection/components/dispute-management/dispute-response/dispute-response-core.js +1 -1
  129. package/dist/collection/components/dispute-management/dispute-response/dispute-response.js +1 -1
  130. package/dist/collection/components/dispute-management/dispute-response/duplicate-charge.js +1 -1
  131. package/dist/collection/components/dispute-management/dispute-response/electronic-evidence.js +1 -1
  132. package/dist/collection/components/dispute-management/dispute-response/product-or-service.js +1 -1
  133. package/dist/collection/components/dispute-management/dispute-response/refund-policy.js +1 -1
  134. package/dist/collection/components/dispute-management/dispute-response/shipping-details.js +1 -1
  135. package/dist/collection/components/filters/table-filters-menu.js +1 -1
  136. package/dist/collection/components/gross-payment-chart/gross-payment-chart-core.js +1 -1
  137. package/dist/collection/components/insurance/insurance-state.js +18 -1
  138. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance.js +108 -3
  139. package/dist/collection/components/modular-checkout/modular-checkout.js +38 -102
  140. package/dist/collection/components/modular-checkout/sub-components/{postal-code-form.js → bank-account-billing-form-simple.js} +39 -25
  141. package/dist/collection/components/modular-checkout/sub-components/bank-account.js +2 -2
  142. package/dist/collection/components/modular-checkout/sub-components/billing-form-full.js +143 -0
  143. package/dist/collection/components/modular-checkout/sub-components/card-billing-form-simple.js +139 -0
  144. package/dist/collection/components/modular-checkout/sub-components/card-form.js +2 -2
  145. package/dist/collection/components/modular-checkout/sub-components/payment-method-option.js +1 -1
  146. package/dist/collection/components/modular-checkout/sub-components/summary.js +1 -1
  147. package/dist/collection/components/order-terminals/order-terminals.js +1 -1
  148. package/dist/collection/components/order-terminals/terminal-quantity-selector/terminal-quantity-selector.js +1 -1
  149. package/dist/collection/components/payment-details/payment-details-core.js +8 -8
  150. package/dist/collection/components/payment-transactions-list/payment-transactions-list.js +1 -1
  151. package/dist/collection/components/payments-list/payments-list-core.js +1 -1
  152. package/dist/collection/components/payments-list/payments-list-filters.js +2 -2
  153. package/dist/collection/components/payments-list/payments-list.js +1 -1
  154. package/dist/collection/components/payout-details/payout-details-core.js +3 -3
  155. package/dist/collection/components/payout-transactions-list/payout-transactions-list.js +1 -1
  156. package/dist/collection/components/payouts-list/payouts-list-core.js +1 -1
  157. package/dist/collection/components/payouts-list/payouts-list-filters.js +2 -2
  158. package/dist/collection/components/payouts-list/payouts-list.js +1 -1
  159. package/dist/collection/components/terminal-orders-list/terminal-orders-list-core.js +1 -1
  160. package/dist/collection/components/terminal-orders-list/terminal-orders-list-filters.js +2 -2
  161. package/dist/collection/components/terminal-orders-list/terminal-orders-list.js +1 -1
  162. package/dist/collection/components/terminals-list/terminals-list-core.js +1 -1
  163. package/dist/collection/components/terminals-list/terminals-list-filters.js +1 -1
  164. package/dist/collection/components/terminals-list/terminals-list.js +1 -1
  165. package/dist/collection/components/tokenize-payment-method/tokenize-payment-method.js +290 -87
  166. package/dist/collection/store/checkout.store.js +3 -2
  167. package/dist/collection/ui-components/custom-popper/custom-popper.js +2 -2
  168. package/dist/collection/ui-components/form/form-control-checkbox.js +2 -2
  169. package/dist/collection/ui-components/form/form-control-date.js +2 -2
  170. package/dist/collection/ui-components/form/form-control-file-v2.js +1 -1
  171. package/dist/collection/ui-components/form/form-control-file.js +2 -2
  172. package/dist/collection/ui-components/form/form-control-monetary.js +2 -2
  173. package/dist/collection/ui-components/form/form-control-number-masked.js +5 -3
  174. package/dist/collection/ui-components/form/form-control-number.js +2 -2
  175. package/dist/collection/ui-components/form/form-control-radio.js +2 -2
  176. package/dist/collection/ui-components/form/form-control-select.js +2 -2
  177. package/dist/collection/ui-components/form/form-control-text.js +2 -2
  178. package/dist/collection/ui-components/form/form-control-textarea.js +2 -2
  179. package/dist/collection/ui-components/form/hidden-input.js +1 -1
  180. package/dist/collection/ui-components/form/iframe-input.js +3 -3
  181. package/dist/collection/ui-components/index.js +1 -0
  182. package/dist/collection/ui-components/shadow-dom-components/justifi-button.js +1 -1
  183. package/dist/collection/ui-components/shadow-dom-components/justifi-header.js +1 -1
  184. package/dist/collection/ui-components/shadow-dom-components/justifi-radio-list-item.js +155 -0
  185. package/dist/collection/ui-components/shadow-dom-components/justifi-skeleton.js +1 -1
  186. package/dist/docs.json +1585 -2885
  187. package/dist/esm/{Api-DQM93PRm.js → Api-N_veT2p6.js} +1 -1
  188. package/dist/esm/{Dispute-7MWRbTXI.js → Dispute-BH0Xfn-F.js} +1 -1
  189. package/dist/esm/{Refund-4B3c-kLz.js → Refund-Di6J0oN2.js} +148 -2
  190. package/dist/esm/additional-questions-details_5.entry.js +4 -3
  191. package/dist/esm/{badge-D-vrtiQR.js → badge-D_mzXSCQ.js} +1 -1
  192. package/dist/esm/bank-account-document-form-inputs_4.entry.js +11 -11
  193. package/dist/esm/bank-account-form.entry.js +4 -4
  194. package/dist/esm/business-details-core.entry.js +3 -3
  195. package/dist/esm/{business.service-BgXdRyYa.js → business.service-Bdvhdc_d.js} +3 -4
  196. package/dist/esm/{button-DxM4-mlD.js → button-CeR8qVS3.js} +1 -1
  197. package/dist/esm/card-form.entry.js +4 -4
  198. package/dist/esm/{check-pkg-version-BZNENotR.js → check-pkg-version-D3fhoIFS.js} +4 -5
  199. package/dist/esm/{checkout.service-CXeKDZTF.js → checkout.service-XgGFa7H8.js} +3 -4
  200. package/dist/esm/{checkout.store-QrBBYQfi.js → checkout.store-B60siz2l.js} +3 -2
  201. package/dist/esm/checkouts-list-core.entry.js +10 -10
  202. package/dist/esm/{checkouts-table-Djb7Yj6O.js → checkouts-table-CFZYoYjn.js} +3 -3
  203. package/dist/esm/{custom-popper.entry.js → custom-popper_2.entry.js} +22 -3
  204. package/dist/esm/dinero-HXpYMWUU.js +1655 -0
  205. package/dist/esm/{dispute.service-DWs_TX-m.js → dispute.service-CKPcmwhH.js} +3 -4
  206. package/dist/esm/form-alert_5.entry.js +5 -5
  207. package/dist/esm/form-control-checkbox.entry.js +5 -5
  208. package/dist/esm/form-control-date.entry.js +4 -4
  209. package/dist/esm/{form-control-error-text-Dew-m4MW.js → form-control-error-text-D3ZwkOv-.js} +1 -1
  210. package/dist/esm/form-control-file-v2_2.entry.js +5 -5
  211. package/dist/esm/{form-control-help-text-CcPKT19_.js → form-control-help-text-C39ZW65w.js} +1 -1
  212. package/dist/esm/form-control-monetary-provisioning.entry.js +5 -5
  213. package/dist/esm/form-control-monetary.entry.js +7 -6
  214. package/dist/esm/form-control-number-masked_2.entry.js +8 -6
  215. package/dist/esm/form-control-number.entry.js +5 -5
  216. package/dist/esm/form-control-radio.entry.js +3 -3
  217. package/dist/esm/{form-control-select_3.entry.js → form-control-select_2.entry.js} +7 -25
  218. package/dist/esm/{get-payment-details-j8nOngzB.js → get-payment-details-Dt-dr16k.js} +3 -4
  219. package/dist/esm/{get-subaccounts-C62B2OC_.js → get-subaccounts-BsoVLANw.js} +4 -5
  220. package/dist/esm/gross-payment-chart-core.entry.js +6 -5
  221. package/dist/esm/{header-1-B0PFwGib.js → header-1-E-hEi3wF.js} +1 -1
  222. package/dist/esm/{header-3-D3gxg6YU.js → header-3-Dm7M85kz.js} +1 -1
  223. package/dist/esm/hidden-input_2.entry.js +7 -7
  224. package/dist/esm/{insurance-state-DQH40x6F.js → insurance-state-CB4l8sOv.js} +19 -2
  225. package/dist/esm/justifi-additional-questions-form-step-core_6.entry.js +7 -7
  226. package/dist/esm/justifi-additional-questions-form-step_9.entry.js +17 -17
  227. package/dist/esm/justifi-additional-statement_8.entry.js +9 -9
  228. package/dist/esm/justifi-bank-account-billing-form-simple_9.entry.js +362 -0
  229. package/dist/esm/justifi-business-details.entry.js +10 -10
  230. package/dist/esm/justifi-business-form.entry.js +12 -12
  231. package/dist/esm/justifi-business-representative-form-inputs.entry.js +2 -2
  232. package/dist/esm/justifi-checkout-summary_6.entry.js +699 -0
  233. package/dist/esm/justifi-checkout.entry.js +44 -37
  234. package/dist/esm/justifi-checkouts-list-filters.entry.js +6 -6
  235. package/dist/esm/justifi-checkouts-list.entry.js +13 -13
  236. package/dist/esm/justifi-details.entry.js +2 -2
  237. package/dist/esm/justifi-dispute-management-core.entry.js +2 -2
  238. package/dist/esm/justifi-dispute-management.entry.js +9 -9
  239. package/dist/esm/justifi-dispute-notification_3.entry.js +14 -14
  240. package/dist/esm/justifi-gross-payment-chart.entry.js +9 -9
  241. package/dist/esm/justifi-order-terminals.entry.js +12 -12
  242. package/dist/esm/justifi-owner-form_3.entry.js +11 -11
  243. package/dist/esm/justifi-payment-details.entry.js +11 -11
  244. package/dist/esm/justifi-payment-provisioning-core.entry.js +3 -3
  245. package/dist/esm/justifi-payment-provisioning.entry.js +9 -9
  246. package/dist/esm/justifi-payment-transactions-list.entry.js +12 -12
  247. package/dist/esm/justifi-payments-list-filters.entry.js +5 -4
  248. package/dist/esm/justifi-payments-list.entry.js +13 -13
  249. package/dist/esm/justifi-payout-details.entry.js +10 -10
  250. package/dist/esm/justifi-payout-transactions-list.entry.js +12 -12
  251. package/dist/esm/justifi-payouts-list-filters.entry.js +5 -4
  252. package/dist/esm/justifi-payouts-list.entry.js +14 -14
  253. package/dist/esm/justifi-refund-payment.entry.js +12 -12
  254. package/dist/esm/justifi-saved-payment-method.entry.js +4 -4
  255. package/dist/esm/justifi-season-interruption-insurance.entry.js +111 -11
  256. package/dist/esm/justifi-skeleton.entry.js +3 -3
  257. package/dist/esm/justifi-terminal-orders-list-filters.entry.js +7 -7
  258. package/dist/esm/justifi-terminal-orders-list.entry.js +11 -11
  259. package/dist/esm/justifi-terminals-list-filters.entry.js +6 -6
  260. package/dist/esm/justifi-terminals-list.entry.js +13 -13
  261. package/dist/esm/loader.js +1 -1
  262. package/dist/esm/{package-Byn89EGB.js → package-wutYt_7D.js} +1 -1
  263. package/dist/esm/pagination-menu.entry.js +1 -1
  264. package/dist/esm/{parts-D3G5aVLy.js → parts-CfF8KKwx.js} +1 -1
  265. package/dist/esm/payment-details-core.entry.js +15 -14
  266. package/dist/esm/{payment-method-option-utils-Cm6lAaP1.js → payment-method-option-utils-lUHAQVFl.js} +2 -10
  267. package/dist/esm/payment-method-option.entry.js +15 -0
  268. package/dist/esm/{payment.service-BnDr_9vX.js → payment.service-BWO84KlP.js} +3 -4
  269. package/dist/esm/payments-list-core.entry.js +11 -11
  270. package/dist/esm/{payments-status-DVYzDcJ4.js → payments-status-XoZrlbiZ.js} +1 -1
  271. package/dist/esm/{payments-table-BuiNqlwv.js → payments-table-Dh4P9mTb.js} +3 -3
  272. package/dist/esm/payout-details-core.entry.js +11 -10
  273. package/dist/esm/{payout.service-Ai1aEuFC.js → payout.service-Cld6TS5W.js} +3 -4
  274. package/dist/esm/payouts-list-core.entry.js +11 -11
  275. package/dist/esm/{payouts-status-Bae6G8Hq.js → payouts-status-Qm2jZG1-.js} +1 -1
  276. package/dist/esm/{payouts-table-cgIXP54P.js → payouts-table-DMVAZp-r.js} +3 -3
  277. package/dist/esm/{skeleton-CZfDofm6.js → skeleton-DrHwsgs_.js} +1 -1
  278. package/dist/esm/{spinner-D-vbFqC6.js → spinner-XBq6mVJW.js} +1 -1
  279. package/dist/esm/table-filters-menu.entry.js +3 -3
  280. package/dist/esm/{table-CTPfsGKi.js → table-qqt2Ew5y.js} +2 -2
  281. package/dist/esm/terminal-orders-list-core.entry.js +10 -10
  282. package/dist/esm/{terminal-orders-table-CvK516_V.js → terminal-orders-table-BN4Co4T8.js} +5 -6
  283. package/dist/esm/terminal-quantity-selector.entry.js +2 -2
  284. package/dist/esm/{terminal.service-BLeBxTv4.js → terminal.service-DmYCUQcA.js} +3 -4
  285. package/dist/esm/terminals-list-core.entry.js +10 -10
  286. package/dist/esm/{terminals-table-2QGQITkt.js → terminals-table-C8LczeG_.js} +3 -3
  287. package/dist/esm/{utils-CBJo9jNE.js → utils-kWaZhFAd.js} +1 -1
  288. package/dist/esm/{utils-B7jE0g5_.js → utils-lb8p1Exq.js} +3 -1660
  289. package/dist/esm/webcomponents.js +1 -1
  290. package/dist/module/Analytics.js +0 -1
  291. package/dist/module/Refund.js +202 -1
  292. package/dist/module/additional-questions.js +1 -1
  293. package/dist/module/additional-statement.js +1 -1
  294. package/dist/module/badge.js +1 -1
  295. package/dist/module/bank-account-billing-form-simple.js +86 -0
  296. package/dist/module/bank-account-document-inputs.js +2 -3
  297. package/dist/module/bank-account-form-inputs2.js +1 -1
  298. package/dist/module/bank-account-form.js +2 -2
  299. package/dist/module/bank-account.js +3 -2
  300. package/dist/module/billing-form-full.js +98 -0
  301. package/dist/module/billing-form-schema.js +25 -20
  302. package/dist/module/billing-form.js +34 -65
  303. package/dist/module/business-additional-questions-form-step.js +1 -1
  304. package/dist/module/business-bank-account-form-step-core.js +2 -3
  305. package/dist/module/business-bank-account-form-step.js +2 -3
  306. package/dist/module/business-core-info-form-step.js +1 -1
  307. package/dist/module/business-core-info.js +1 -1
  308. package/dist/module/business-details-core2.js +1 -0
  309. package/dist/module/business-documents-on-file2.js +2 -1
  310. package/dist/module/business-owners-form-step-core.js +1 -0
  311. package/dist/module/business-owners-form-step.js +1 -1
  312. package/dist/module/business-representative-form-inputs.js +1 -1
  313. package/dist/module/business-representative-form-step.js +1 -1
  314. package/dist/module/business-representative.js +1 -1
  315. package/dist/module/business-terms-conditions-form-step.js +1 -2
  316. package/dist/module/business.service.js +0 -1
  317. package/dist/module/cancellation-policy.js +1 -1
  318. package/dist/module/{postal-code-form.js → card-billing-form-simple.js} +17 -23
  319. package/dist/module/card-form.js +2 -2
  320. package/dist/module/card-form2.js +3 -2
  321. package/dist/module/checkout.service.js +0 -1
  322. package/dist/module/checkout.store.js +3 -2
  323. package/dist/module/checkouts-list-core2.js +5 -4
  324. package/dist/module/custom-popper2.js +2 -2
  325. package/dist/module/customer-details.js +1 -1
  326. package/dist/module/dinero.js +1655 -0
  327. package/dist/module/dispute-management-core.js +2 -2
  328. package/dist/module/dispute-notification.js +2 -1
  329. package/dist/module/dispute-response-actions.js +0 -1
  330. package/dist/module/dispute-response-core.js +1 -1
  331. package/dist/module/dispute-response.js +2 -1
  332. package/dist/module/duplicate-charge.js +1 -1
  333. package/dist/module/electronic-evidence.js +1 -1
  334. package/dist/module/form-alert2.js +1 -1
  335. package/dist/module/form-control-checkbox2.js +4 -3
  336. package/dist/module/form-control-date2.js +3 -2
  337. package/dist/module/form-control-file-v22.js +1 -1
  338. package/dist/module/form-control-file2.js +3 -2
  339. package/dist/module/form-control-monetary-provisioning2.js +4 -3
  340. package/dist/module/form-control-monetary2.js +4 -3
  341. package/dist/module/form-control-number-masked2.js +6 -3
  342. package/dist/module/form-control-number.js +4 -3
  343. package/dist/module/form-control-radio2.js +3 -3
  344. package/dist/module/form-control-select2.js +3 -2
  345. package/dist/module/form-control-text2.js +3 -2
  346. package/dist/module/form-control-textarea2.js +3 -3
  347. package/dist/module/get-payment-details.js +2 -3
  348. package/dist/module/get-subaccounts.js +1 -2
  349. package/dist/module/gross-payment-chart-core2.js +2 -2
  350. package/dist/module/header-3.js +1 -1
  351. package/dist/module/hidden-input2.js +2 -2
  352. package/dist/module/identity-address-form.js +1 -1
  353. package/dist/module/iframe-input2.js +4 -4
  354. package/dist/module/insurance-state.js +18 -1
  355. package/dist/module/justifi-bank-account-billing-form-simple.d.ts +11 -0
  356. package/dist/module/justifi-bank-account-billing-form-simple.js +6 -0
  357. package/dist/module/justifi-billing-form-full.d.ts +11 -0
  358. package/dist/module/justifi-billing-form-full.js +6 -0
  359. package/dist/module/justifi-business-form.js +2 -2
  360. package/dist/module/justifi-button2.js +1 -1
  361. package/dist/module/justifi-card-billing-form-simple.d.ts +11 -0
  362. package/dist/module/justifi-card-billing-form-simple.js +6 -0
  363. package/dist/module/justifi-checkout.js +83 -59
  364. package/dist/module/justifi-checkouts-list-filters.js +4 -4
  365. package/dist/module/justifi-checkouts-list.js +4 -4
  366. package/dist/module/justifi-dispute-management.js +2 -3
  367. package/dist/module/justifi-gross-payment-chart.js +0 -1
  368. package/dist/module/justifi-header2.js +1 -1
  369. package/dist/module/justifi-order-terminals.js +5 -4
  370. package/dist/module/justifi-payment-provisioning.js +1 -2
  371. package/dist/module/justifi-payment-transactions-list.js +6 -5
  372. package/dist/module/justifi-payments-list-filters.js +4 -3
  373. package/dist/module/justifi-payments-list.js +4 -4
  374. package/dist/module/justifi-payout-details.js +2 -3
  375. package/dist/module/justifi-payout-transactions-list.js +6 -5
  376. package/dist/module/justifi-payouts-list-filters.js +4 -3
  377. package/dist/module/justifi-payouts-list.js +4 -4
  378. package/dist/module/justifi-radio-list-item.d.ts +11 -0
  379. package/dist/module/justifi-radio-list-item.js +6 -0
  380. package/dist/module/justifi-radio-list-item2.js +55 -0
  381. package/dist/module/justifi-refund-payment.js +2 -2
  382. package/dist/module/justifi-saved-payment-method.js +2 -2
  383. package/dist/module/justifi-season-interruption-insurance.js +115 -15
  384. package/dist/module/justifi-skeleton.js +1 -1
  385. package/dist/module/justifi-terminal-orders-list-filters.js +5 -5
  386. package/dist/module/justifi-terminal-orders-list.js +4 -4
  387. package/dist/module/justifi-terminals-list-filters.js +4 -4
  388. package/dist/module/justifi-terminals-list.js +4 -4
  389. package/dist/module/justifi-tokenize-payment-method.js +1 -135
  390. package/dist/module/legal-address-form-step.js +1 -1
  391. package/dist/module/legal-address-form.js +1 -1
  392. package/dist/module/modular-checkout.js +39 -105
  393. package/dist/module/owner-form-core2.js +3 -2
  394. package/dist/module/owner-form-inputs2.js +1 -1
  395. package/dist/module/owner-form.js +1 -1
  396. package/dist/module/package.js +1 -1
  397. package/dist/module/pagination-menu2.js +1 -1
  398. package/dist/module/parts.js +1 -1
  399. package/dist/module/payment-details-core2.js +10 -9
  400. package/dist/module/payment-method-option-utils.js +2 -10
  401. package/dist/module/payment-method-option.js +49 -1
  402. package/dist/module/payment-provisioning-core.js +2 -1
  403. package/dist/module/payment-provisioning-form-buttons.js +2 -1
  404. package/dist/module/payment-provisioning-form-steps.js +1 -1
  405. package/dist/module/payment-provisioning-loading.js +1 -0
  406. package/dist/module/payment.service.js +0 -1
  407. package/dist/module/payments-list-core2.js +5 -4
  408. package/dist/module/payout-details-core2.js +5 -4
  409. package/dist/module/payout.service.js +0 -1
  410. package/dist/module/payouts-list-core2.js +5 -4
  411. package/dist/module/product-or-service.js +1 -1
  412. package/dist/module/refund-policy.js +1 -1
  413. package/dist/module/save-new-payment-method.js +8 -5
  414. package/dist/module/saved-payment-methods.js +2 -1
  415. package/dist/module/sezzle-payment-method.js +2 -1
  416. package/dist/module/shipping-details.js +1 -1
  417. package/dist/module/spinner.js +1 -1
  418. package/dist/module/summary.js +2 -1
  419. package/dist/module/table-filters-menu2.js +1 -1
  420. package/dist/module/table.js +1 -1
  421. package/dist/module/terminal-orders-list-core2.js +6 -5
  422. package/dist/module/terminal-quantity-selector2.js +2 -2
  423. package/dist/module/terminal.service.js +0 -1
  424. package/dist/module/terminals-list-core2.js +5 -4
  425. package/dist/module/tokenize-payment-method.js +400 -0
  426. package/dist/module/utils2.js +3 -1660
  427. package/dist/types/components/checkout/billing-form/billing-form-schema.d.ts +31 -1
  428. package/dist/types/components/checkout/billing-form/billing-form.d.ts +3 -9
  429. package/dist/types/components/checkout/checkout.d.ts +7 -10
  430. package/dist/types/components/checkout/save-new-payment-method.d.ts +1 -1
  431. package/dist/types/components/insurance/insurance-state.d.ts +2 -1
  432. package/dist/types/components/insurance/season-interruption/season-interruption-insurance.d.ts +7 -1
  433. package/dist/types/components/modular-checkout/modular-checkout.d.ts +1 -8
  434. package/dist/types/components/modular-checkout/sub-components/{postal-code-form.d.ts → bank-account-billing-form-simple.d.ts} +5 -6
  435. package/dist/types/components/modular-checkout/sub-components/billing-form-full.d.ts +17 -0
  436. package/dist/types/components/modular-checkout/sub-components/{billing-information-form.d.ts → card-billing-form-simple.d.ts} +5 -5
  437. package/dist/types/components/tokenize-payment-method/tokenize-payment-method.d.ts +41 -14
  438. package/dist/types/components.d.ts +111 -313
  439. package/dist/types/store/checkout.store.d.ts +3 -2
  440. package/dist/types/ui-components/index.d.ts +1 -0
  441. package/dist/types/ui-components/shadow-dom-components/justifi-radio-list-item.d.ts +12 -0
  442. package/dist/webcomponents/p-08ea8974.entry.js +1 -0
  443. package/dist/webcomponents/p-0932f6a9.entry.js +1 -0
  444. package/dist/webcomponents/p-09e768fe.entry.js +1 -0
  445. package/dist/webcomponents/p-15777cfe.entry.js +1 -0
  446. package/dist/webcomponents/p-22be0859.entry.js +1 -0
  447. package/dist/webcomponents/{p-ab3e7841.entry.js → p-283cd78b.entry.js} +1 -1
  448. package/dist/webcomponents/{p-ee2afa41.entry.js → p-28c7bef7.entry.js} +4 -4
  449. package/dist/webcomponents/{p-13c6b62d.entry.js → p-2a3d5af2.entry.js} +1 -1
  450. package/dist/webcomponents/{p-293e26e2.entry.js → p-2ec9f293.entry.js} +1 -1
  451. package/dist/webcomponents/p-3095775c.entry.js +1 -0
  452. package/dist/webcomponents/{p-0c06ede5.entry.js → p-36d72e2d.entry.js} +1 -1
  453. package/dist/webcomponents/p-39b79825.entry.js +1 -0
  454. package/dist/webcomponents/{p-bec23c19.entry.js → p-3d85d046.entry.js} +1 -1
  455. package/dist/webcomponents/p-40ba49e4.entry.js +1 -0
  456. package/dist/webcomponents/p-424f491c.entry.js +1 -0
  457. package/dist/webcomponents/p-466f33d7.entry.js +1 -0
  458. package/dist/webcomponents/{p-06ff03e7.entry.js → p-48bccf3b.entry.js} +1 -1
  459. package/dist/webcomponents/{p-0f5e61bc.entry.js → p-4ba144ac.entry.js} +1 -1
  460. package/dist/webcomponents/{p-c663b439.entry.js → p-57143978.entry.js} +1 -1
  461. package/dist/webcomponents/p-596b2653.entry.js +1 -0
  462. package/dist/webcomponents/{p-bcab6e31.entry.js → p-5b09c0d8.entry.js} +1 -1
  463. package/dist/webcomponents/p-5rVtZ2GJ.js +1 -0
  464. package/dist/webcomponents/p-6e18d13f.entry.js +1 -0
  465. package/dist/webcomponents/{p-322d93de.entry.js → p-6f847539.entry.js} +1 -1
  466. package/dist/webcomponents/p-7721a457.entry.js +1 -0
  467. package/dist/webcomponents/p-77515be6.entry.js +1 -0
  468. package/dist/webcomponents/p-79055216.entry.js +1 -0
  469. package/dist/webcomponents/p-7c51805a.entry.js +1 -0
  470. package/dist/webcomponents/{p-643ce4e6.entry.js → p-7d944f7e.entry.js} +1 -1
  471. package/dist/webcomponents/p-7ef0b68d.entry.js +1 -0
  472. package/dist/webcomponents/p-818f51fd.entry.js +1 -0
  473. package/dist/webcomponents/p-89e27079.entry.js +1 -0
  474. package/dist/webcomponents/p-8f0339de.entry.js +1 -0
  475. package/dist/webcomponents/p-904a95e5.entry.js +1 -0
  476. package/dist/webcomponents/p-9b75aced.entry.js +1 -0
  477. package/dist/webcomponents/p-9bb8bebf.entry.js +1 -0
  478. package/dist/webcomponents/p-BC8YDY7M.js +1 -0
  479. package/dist/webcomponents/{p-7MWRbTXI.js → p-BH0Xfn-F.js} +1 -1
  480. package/dist/webcomponents/p-BTkXk7ol.js +1 -0
  481. package/dist/webcomponents/p-Bb6FBEPP.js +1 -0
  482. package/dist/webcomponents/{p-B2csvKrZ.js → p-BbYVgLcf.js} +1 -1
  483. package/dist/webcomponents/{p-BFL-wXPM.js → p-BeszVz87.js} +1 -1
  484. package/dist/webcomponents/p-BisQ61nK.js +1 -0
  485. package/dist/webcomponents/p-Bpcb3SsP.js +1 -0
  486. package/dist/webcomponents/p-BySyDTv5.js +1 -0
  487. package/dist/webcomponents/{p-C8ll3Wwp.js → p-Bz164TKZ.js} +1 -1
  488. package/dist/webcomponents/p-C1fMfnu0.js +1 -0
  489. package/dist/webcomponents/p-CCME-fyU.js +1 -0
  490. package/dist/webcomponents/p-CEsXw0Ph.js +1 -0
  491. package/dist/webcomponents/p-CLwzqWk2.js +1 -0
  492. package/dist/webcomponents/p-C_CXv7AN.js +1 -0
  493. package/dist/webcomponents/{p-D3G5aVLy.js → p-CfF8KKwx.js} +1 -1
  494. package/dist/webcomponents/{p-DX_mixvZ.js → p-CsNubTqD.js} +1 -1
  495. package/dist/webcomponents/p-CwZKT93w.js +1 -0
  496. package/dist/webcomponents/p-D599ZMGU.js +1 -0
  497. package/dist/webcomponents/p-DD74a16D.js +1 -0
  498. package/dist/webcomponents/{p-CEYGUVns.js → p-DO3INvI2.js} +1 -1
  499. package/dist/webcomponents/p-DWUnL_zj.js +1 -0
  500. package/dist/webcomponents/{p-BRtwZAeZ.js → p-Dvxpy_P1.js} +1 -1
  501. package/dist/webcomponents/p-HXpYMWUU.js +1 -0
  502. package/dist/webcomponents/{p-Dj1uo4J3.js → p-I8XpD1TX.js} +1 -1
  503. package/dist/webcomponents/{p-Cm_ywVHL.js → p-JgbsbAhz.js} +1 -1
  504. package/dist/webcomponents/p-UD2JhYS2.js +1 -0
  505. package/dist/webcomponents/p-WEguiGt1.js +1 -0
  506. package/dist/webcomponents/{p-BvyiDejp.js → p-YND5pTuF.js} +1 -1
  507. package/dist/webcomponents/p-ZpPDShvP.js +1 -0
  508. package/dist/webcomponents/p-a357be7d.entry.js +1 -0
  509. package/dist/webcomponents/p-a3d005dc.entry.js +1 -0
  510. package/dist/webcomponents/p-a4172773.entry.js +1 -0
  511. package/dist/webcomponents/p-a7d5e434.entry.js +1 -0
  512. package/dist/webcomponents/{p-a2b597ef.entry.js → p-a8205044.entry.js} +1 -1
  513. package/dist/webcomponents/p-ae5a3c2a.entry.js +1 -0
  514. package/dist/webcomponents/{p-fe001786.entry.js → p-b0bfa20f.entry.js} +1 -1
  515. package/dist/webcomponents/p-b107ad76.entry.js +1 -0
  516. package/dist/webcomponents/p-b504a22b.entry.js +1 -0
  517. package/dist/webcomponents/p-b6f55d70.entry.js +1 -0
  518. package/dist/webcomponents/p-ba8ae31f.entry.js +1 -0
  519. package/dist/webcomponents/p-bdb56836.entry.js +1 -0
  520. package/dist/webcomponents/{p-39af38f6.entry.js → p-be06d86a.entry.js} +1 -1
  521. package/dist/webcomponents/{p-904acc70.entry.js → p-c5b48e8d.entry.js} +1 -1
  522. package/dist/webcomponents/p-cb0effeb.entry.js +1 -0
  523. package/dist/webcomponents/p-cfca1837.entry.js +1 -0
  524. package/dist/webcomponents/p-d0e24727.entry.js +1 -0
  525. package/dist/webcomponents/{p-04b38d61.entry.js → p-d77908ca.entry.js} +1 -1
  526. package/dist/webcomponents/p-dd6d6ddb.entry.js +1 -0
  527. package/dist/webcomponents/{p-0c37be96.entry.js → p-ded22005.entry.js} +1 -1
  528. package/dist/webcomponents/p-df199396.entry.js +1 -0
  529. package/dist/webcomponents/{p-a494dba1.entry.js → p-e2174f21.entry.js} +1 -1
  530. package/dist/webcomponents/p-e57263b7.entry.js +1 -0
  531. package/dist/webcomponents/p-e830a580.entry.js +1 -0
  532. package/dist/webcomponents/p-e859ece8.entry.js +1 -0
  533. package/dist/webcomponents/p-eaea7cc1.entry.js +1 -0
  534. package/dist/webcomponents/p-f2149974.entry.js +1 -0
  535. package/dist/webcomponents/p-fa33df9f.entry.js +1 -0
  536. package/dist/webcomponents/p-ff3377e7.entry.js +1 -0
  537. package/dist/webcomponents/p-ff869ded.entry.js +1 -0
  538. package/dist/webcomponents/p-qMrd7_Gp.js +1 -0
  539. package/dist/webcomponents/{p-DCDU6JB3.js → p-vRhNRfmB.js} +1 -1
  540. package/dist/webcomponents/p-wutYt_7D.js +1 -0
  541. package/dist/webcomponents/p-zdIeCUeh.js +1 -0
  542. package/dist/webcomponents/p-zrUQD0Wr.js +1 -0
  543. package/dist/webcomponents/webcomponents.esm.js +1 -1
  544. package/package.json +1 -1
  545. package/dist/cjs/Payment-2Zmn-l6G.js +0 -151
  546. package/dist/cjs/justifi-apple-pay.cjs.entry.js +0 -873
  547. package/dist/cjs/justifi-bank-account-form_5.cjs.entry.js +0 -277
  548. package/dist/cjs/justifi-billing-form.cjs.entry.js +0 -76
  549. package/dist/cjs/justifi-button_5.cjs.entry.js +0 -444
  550. package/dist/cjs/justifi-new-payment-method.cjs.entry.js +0 -99
  551. package/dist/cjs/justifi-payment-method-options.cjs.entry.js +0 -75
  552. package/dist/cjs/justifi-saved-payment-methods_2.cjs.entry.js +0 -116
  553. package/dist/cjs/justifi-season-interruption-insurance-core.cjs.entry.js +0 -123
  554. package/dist/cjs/justifi-tokenize-payment-method.cjs.entry.js +0 -86
  555. package/dist/collection/api/ApplePay.js +0 -119
  556. package/dist/collection/api/services/apple-pay.service.js +0 -372
  557. package/dist/collection/components/checkout/new-payment-method.js +0 -378
  558. package/dist/collection/components/checkout/payment-method-options.js +0 -421
  559. package/dist/collection/components/insurance/season-interruption/season-interruption-insurance-core.js +0 -447
  560. package/dist/collection/components/modular-checkout/sub-components/apple-pay-skeleton.js +0 -10
  561. package/dist/collection/components/modular-checkout/sub-components/apple-pay.js +0 -554
  562. package/dist/collection/components/modular-checkout/sub-components/billing-form-schema.js +0 -21
  563. package/dist/collection/components/modular-checkout/sub-components/billing-information-form.js +0 -97
  564. package/dist/collection/ui-components/apple-pay-button.js +0 -146
  565. package/dist/esm/Payment-Bs0-9Lnt.js +0 -149
  566. package/dist/esm/justifi-apple-pay.entry.js +0 -871
  567. package/dist/esm/justifi-bank-account-form_5.entry.js +0 -271
  568. package/dist/esm/justifi-billing-form.entry.js +0 -74
  569. package/dist/esm/justifi-button_5.entry.js +0 -438
  570. package/dist/esm/justifi-new-payment-method.entry.js +0 -97
  571. package/dist/esm/justifi-payment-method-options.entry.js +0 -73
  572. package/dist/esm/justifi-saved-payment-methods_2.entry.js +0 -113
  573. package/dist/esm/justifi-season-interruption-insurance-core.entry.js +0 -121
  574. package/dist/esm/justifi-tokenize-payment-method.entry.js +0 -84
  575. package/dist/module/Payment.js +0 -204
  576. package/dist/module/billing-information-form.js +0 -97
  577. package/dist/module/justifi-apple-pay.d.ts +0 -11
  578. package/dist/module/justifi-apple-pay.js +0 -913
  579. package/dist/module/justifi-billing-information-form.d.ts +0 -11
  580. package/dist/module/justifi-billing-information-form.js +0 -6
  581. package/dist/module/justifi-new-payment-method.d.ts +0 -11
  582. package/dist/module/justifi-new-payment-method.js +0 -219
  583. package/dist/module/justifi-payment-method-options.d.ts +0 -11
  584. package/dist/module/justifi-payment-method-options.js +0 -6
  585. package/dist/module/justifi-postal-code-form.d.ts +0 -11
  586. package/dist/module/justifi-postal-code-form.js +0 -6
  587. package/dist/module/justifi-season-interruption-insurance-core.d.ts +0 -11
  588. package/dist/module/justifi-season-interruption-insurance-core.js +0 -6
  589. package/dist/module/payment-method-option2.js +0 -50
  590. package/dist/module/payment-method-options.js +0 -129
  591. package/dist/module/season-interruption-insurance-core.js +0 -169
  592. package/dist/types/api/ApplePay.d.ts +0 -195
  593. package/dist/types/api/services/apple-pay.service.d.ts +0 -65
  594. package/dist/types/components/checkout/new-payment-method.d.ts +0 -31
  595. package/dist/types/components/checkout/payment-method-options.d.ts +0 -32
  596. package/dist/types/components/insurance/season-interruption/season-interruption-insurance-core.d.ts +0 -31
  597. package/dist/types/components/modular-checkout/sub-components/apple-pay-skeleton.d.ts +0 -6
  598. package/dist/types/components/modular-checkout/sub-components/apple-pay.d.ts +0 -38
  599. package/dist/types/components/modular-checkout/sub-components/billing-form-schema.d.ts +0 -23
  600. package/dist/types/ui-components/apple-pay-button.d.ts +0 -17
  601. package/dist/webcomponents/p-02f4b072.entry.js +0 -1
  602. package/dist/webcomponents/p-04209892.entry.js +0 -1
  603. package/dist/webcomponents/p-127406b5.entry.js +0 -1
  604. package/dist/webcomponents/p-1725d238.entry.js +0 -1
  605. package/dist/webcomponents/p-18a23b4a.entry.js +0 -1
  606. package/dist/webcomponents/p-1983e091.entry.js +0 -1
  607. package/dist/webcomponents/p-20cff97a.entry.js +0 -1
  608. package/dist/webcomponents/p-21dd7b38.entry.js +0 -1
  609. package/dist/webcomponents/p-25e489a5.entry.js +0 -1
  610. package/dist/webcomponents/p-2cbc2dcd.entry.js +0 -1
  611. package/dist/webcomponents/p-30c432ab.entry.js +0 -1
  612. package/dist/webcomponents/p-488ef156.entry.js +0 -1
  613. package/dist/webcomponents/p-48ae2fd5.entry.js +0 -1
  614. package/dist/webcomponents/p-49754c1d.entry.js +0 -1
  615. package/dist/webcomponents/p-4a086220.entry.js +0 -1
  616. package/dist/webcomponents/p-51bacc96.entry.js +0 -1
  617. package/dist/webcomponents/p-5c43f33e.entry.js +0 -1
  618. package/dist/webcomponents/p-5cfca5e0.entry.js +0 -1
  619. package/dist/webcomponents/p-5e71c29d.entry.js +0 -1
  620. package/dist/webcomponents/p-6567c1ce.entry.js +0 -1
  621. package/dist/webcomponents/p-689562b1.entry.js +0 -1
  622. package/dist/webcomponents/p-6ab71dc9.entry.js +0 -1
  623. package/dist/webcomponents/p-6d8355f0.entry.js +0 -1
  624. package/dist/webcomponents/p-6da19fde.entry.js +0 -1
  625. package/dist/webcomponents/p-6e40a80f.entry.js +0 -1
  626. package/dist/webcomponents/p-73da14c6.entry.js +0 -1
  627. package/dist/webcomponents/p-78e96813.entry.js +0 -1
  628. package/dist/webcomponents/p-92b3d81d.entry.js +0 -1
  629. package/dist/webcomponents/p-9b57e831.entry.js +0 -1
  630. package/dist/webcomponents/p-9ed95478.entry.js +0 -1
  631. package/dist/webcomponents/p-B7jE0g5_.js +0 -1
  632. package/dist/webcomponents/p-B8tUOqiv.js +0 -1
  633. package/dist/webcomponents/p-B9GgcQ-7.js +0 -1
  634. package/dist/webcomponents/p-BDUTtU21.js +0 -1
  635. package/dist/webcomponents/p-BO4xqc4w.js +0 -1
  636. package/dist/webcomponents/p-BYakc1Om.js +0 -1
  637. package/dist/webcomponents/p-BhPJwhHm.js +0 -1
  638. package/dist/webcomponents/p-Bou1Z4Bm.js +0 -1
  639. package/dist/webcomponents/p-Byn89EGB.js +0 -1
  640. package/dist/webcomponents/p-Bz8JT676.js +0 -1
  641. package/dist/webcomponents/p-C0EFqY0W.js +0 -1
  642. package/dist/webcomponents/p-CLjv4frq.js +0 -1
  643. package/dist/webcomponents/p-Cc27pPPQ.js +0 -1
  644. package/dist/webcomponents/p-D522G7Ja.js +0 -1
  645. package/dist/webcomponents/p-DSekXpCa.js +0 -1
  646. package/dist/webcomponents/p-DSfL8jLw.js +0 -1
  647. package/dist/webcomponents/p-DVPcHdzq.js +0 -1
  648. package/dist/webcomponents/p-DiWKhLRS.js +0 -1
  649. package/dist/webcomponents/p-DtsIovbb.js +0 -1
  650. package/dist/webcomponents/p-Dv7YEshZ.js +0 -1
  651. package/dist/webcomponents/p-FdjD8N0u.js +0 -1
  652. package/dist/webcomponents/p-ObR0KZw0.js +0 -1
  653. package/dist/webcomponents/p-Sz-UKsNL.js +0 -1
  654. package/dist/webcomponents/p-a6fdf5b8.entry.js +0 -1
  655. package/dist/webcomponents/p-a9b0051a.entry.js +0 -1
  656. package/dist/webcomponents/p-b06b1886.entry.js +0 -1
  657. package/dist/webcomponents/p-b1301f92.entry.js +0 -1
  658. package/dist/webcomponents/p-bbff3166.entry.js +0 -1
  659. package/dist/webcomponents/p-bf4d2e69.entry.js +0 -1
  660. package/dist/webcomponents/p-c48279fc.entry.js +0 -1
  661. package/dist/webcomponents/p-c4fd0aaf.entry.js +0 -1
  662. package/dist/webcomponents/p-c919d553.entry.js +0 -1
  663. package/dist/webcomponents/p-c9d5625c.entry.js +0 -1
  664. package/dist/webcomponents/p-c9fc0d42.entry.js +0 -1
  665. package/dist/webcomponents/p-cf115375.entry.js +0 -1
  666. package/dist/webcomponents/p-d16d97a4.entry.js +0 -1
  667. package/dist/webcomponents/p-e105f664.entry.js +0 -1
  668. package/dist/webcomponents/p-e19e47eb.entry.js +0 -1
  669. package/dist/webcomponents/p-e3dabf77.entry.js +0 -1
  670. package/dist/webcomponents/p-e5c94a1f.entry.js +0 -1
  671. package/dist/webcomponents/p-ea840b3c.entry.js +0 -1
  672. package/dist/webcomponents/p-f2f46f62.entry.js +0 -1
  673. package/dist/webcomponents/p-f61c14a3.entry.js +0 -1
  674. package/dist/webcomponents/p-fafc8e27.entry.js +0 -1
  675. package/dist/webcomponents/p-fddcf426.entry.js +0 -1
  676. package/dist/webcomponents/p-vHbP4g3Q.js +0 -1
@@ -1 +1 @@
1
- import{h as i,r as s,c as t}from"./p-kpoIU4v_.js";import{ap as e,am as r,ae as o,z as l}from"./p-D3G5aVLy.js";import{S as d}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-BhPJwhHm.js";import{C as h,a as c}from"./p-Cjcsf8ku.js";import{B as u}from"./p-DVPcHdzq.js";import{B as v}from"./p-BlJnA265.js";import{m as p}from"./p-DH8F0bsw.js";import{S as m}from"./p-Bz8JT676.js";import"./p-9y5MOK55.js";import{k as f}from"./p-B7jE0g5_.js";import{h as b,g as w,b as y}from"./p-Bou1Z4Bm.js";import"./p-CLHwhyvu.js";import"./p-BDUTtU21.js";import"./p-7MWRbTXI.js";import{g,a as j}from"./p-D2muobcE.js";import{T as x}from"./p-DtsIovbb.js";import"./p-Byn89EGB.js";import"./p-Dj1uo4J3.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-7WIgS5RM.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%"}))),k=()=>i("div",{class:"row gap-5"},i("div",{class:"col-12"},i(m,{width:"40%",height:"40px"})),i(B,null)),S=()=>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)))))),T=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 w({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?y.boardingShipping:y.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:j(a.error),code:g(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=g(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 x})({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:j(d.error),code:g(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=g(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new x});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(k,null),this.loading.terminals&&i("div",{class:"mt-5"},i(S,null),i(S,null),i(S,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:"3c9d82edf60cb15cae0ca399dc72b108eb645da1"},i("div",{key:"cb70067e7bf65760fbe1f3b6c86b705d4f1bb602",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{T as justifi_order_terminals}
1
+ import{h as i,r as s,c as t}from"./p-kpoIU4v_.js";import{al as e,ai as r,ae as o,D as l}from"./p-CfF8KKwx.js";import{S as d}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{c as n,J as a}from"./p-CEsXw0Ph.js";import{C as h,a as c}from"./p-Cjcsf8ku.js";import{B as u}from"./p-DD74a16D.js";import{B as v}from"./p-BlJnA265.js";import{m as p}from"./p-DH8F0bsw.js";import{S as m}from"./p-BC8YDY7M.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{i as f,h as w,b}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BH0Xfn-F.js";import{g as j,a as g}from"./p-D2muobcE.js";import{T as x}from"./p-DWUnL_zj.js";import{j as y}from"./p-zdIeCUeh.js";import"./p-wutYt_7D.js";import"./p-I8XpD1TX.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-7WIgS5RM.js";const C=()=>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(C,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)))))),D=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 w({business_id:this.businessId,sub_account_id:this.accountId,order_type:this.shipping?b.boardingShipping:b.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:j(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 f(i))))||[],orderLimit:null===(d=a.data)||void 0===d?void 0:d.order_limit})}catch(i){const s=j(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 x})({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:j(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=j(null==i?void 0:i.code);return o({error:i.message||i,code:s,severity:h.ERROR})}})({authToken:this.authToken,service:new x});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,y(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:"5171ddb7b807bf4084f0f831002803a4ece698f3"},i("div",{key:"529adf4549be8b2723fca357be3f541403dfc8a3",part:l},this.renderLoading(),this.renderBusinessDetails(),this.renderTerminals(),this.renderOrderSection()))}};export{D as justifi_order_terminals}
@@ -1 +1 @@
1
- import{r as s,c as i,h as t}from"./p-kpoIU4v_.js";import{E as r}from"./p-CEYGUVns.js";import{B as o}from"./p-DVPcHdzq.js";import{m as p}from"./p-DH8F0bsw.js";import{C as e,a as m}from"./p-Cjcsf8ku.js";import{c as h,J as n}from"./p-BhPJwhHm.js";import"./p-D3G5aVLy.js";import"./p-Dj1uo4J3.js";import"./p-9y5MOK55.js";import"./p-7WIgS5RM.js";import"./p-B7jE0g5_.js";import"./p-Bou1Z4Bm.js";import"./p-CLHwhyvu.js";import"./p-BDUTtU21.js";import"./p-7MWRbTXI.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D2muobcE.js";import"./p-Byn89EGB.js";const a=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new n(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:m.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR});this.getBusiness=p({id:this.businessId,authToken:this.authToken,service:new o})}render(){return this.errorMessage?r(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness,"onError-event":this.handleErrorEvent})}};export{a as justifi_business_details}
1
+ import{r as s,c as i,h as t}from"./p-kpoIU4v_.js";import{E as r}from"./p-DO3INvI2.js";import{B as o}from"./p-DD74a16D.js";import{m as p}from"./p-DH8F0bsw.js";import{C as e,a as m}from"./p-Cjcsf8ku.js";import{c as h,J as n}from"./p-CEsXw0Ph.js";import"./p-CfF8KKwx.js";import"./p-I8XpD1TX.js";import"./p-9y5MOK55.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";import"./p-WEguiGt1.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D2muobcE.js";import"./p-wutYt_7D.js";const a=class{constructor(t){s(this,t),this.errorEvent=i(this,"error-event"),this.errorMessage=null,this.handleErrorEvent=s=>{this.errorMessage=s.detail.message,this.errorEvent.emit(s.detail)}}componentWillLoad(){h(),this.analytics=new n(this),this.initializeGetBusiness()}disconnectedCallback(){var s;null===(s=this.analytics)||void 0===s||s.cleanup()}initializeGetBusiness(){if(!this.businessId||!this.authToken)return this.errorMessage="Invalid business id or auth token",void this.errorEvent.emit({errorCode:m.MISSING_PROPS,message:this.errorMessage,severity:e.ERROR});this.getBusiness=p({id:this.businessId,authToken:this.authToken,service:new o})}render(){return this.errorMessage?r(this.errorMessage):t("business-details-core",{getBusiness:this.getBusiness,"onError-event":this.handleErrorEvent})}};export{a as justifi_business_details}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-kpoIU4v_.js";import{C as o,a as r}from"./p-Cjcsf8ku.js";import{c as e,J as p}from"./p-CEsXw0Ph.js";import{P as a}from"./p-5rVtZ2GJ.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{d as n}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as c,a as h}from"./p-D2muobcE.js";import{m}from"./p-DYGIC0QH.js";import{m as u,S as d}from"./p-Bpcb3SsP.js";import{S as j}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{d as l}from"./p-BisQ61nK.js";import"./p-wutYt_7D.js";import"./p-I8XpD1TX.js";import"./p-zdIeCUeh.js";import"./p-7WIgS5RM.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BeszVz87.js";import"./p-vRhNRfmB.js";import"./p-CfF8KKwx.js";const f=class{constructor(i){t(this,i),this.errorEvent=s(this,"error-event"),this.errorMessage=null,this.columns=l,this.handleOnError=t=>{this.errorMessage=t.detail.message,this.errorEvent.emit(t.detail)}}componentWillLoad(){e(),this.analytics=new p(this),this.initializeGetData()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}propChanged(){this.initializeGetData()}initializeGetData(){this.initializePayoutsServices(),this.initializeGetSubAccounts()}initializePayoutsServices(){if(this.accountId&&this.authToken){const t={id:this.accountId,authToken:this.authToken,service:new a};this.getPayouts=(({id:t,authToken:s,service:i})=>async({params:r,onSuccess:e,onError:p})=>{var a,m;try{const u=await i.fetchPayouts(t,s,r);if(u.error)return p({error:h(u.error),code:c(null===(m=u.error)||void 0===m?void 0:m.code),severity:o.ERROR});{const t=Object.assign({},u.page_info);e({payouts:(null===(a=u.data)||void 0===a?void 0:a.map((t=>new n(t))))||[],pagingInfo:t})}}catch(t){const s=c(null==t?void 0:t.code);return p({error:t.message||t,code:s,severity:o.ERROR})}})(t),this.getPayoutCSV=m(t)}else this.errorMessage="Account ID and Auth Token are required",this.errorEvent.emit({errorCode:r.MISSING_PROPS,message:this.errorMessage,severity:o.ERROR})}initializeGetSubAccounts(){this.accountId&&this.authToken&&(this.getSubAccounts=u({accountId:this.accountId,authToken:this.authToken,service:new d}))}render(){return i(j,{key:"de3472c5070a100129ee16538e83cdb42ca85da6"},i("payouts-list-core",{key:"cff5883ee21662231467270a90c5030a724d7e57",getPayouts:this.getPayouts,getPayoutCSV:this.getPayoutCSV,getSubAccounts:this.getSubAccounts,"onError-event":this.handleOnError,columns:this.columns}))}static get watchers(){return{accountId:["propChanged"],authToken:["propChanged"]}}};export{f as justifi_payouts_list}
@@ -1 +1 @@
1
- import{r as t,c as e,h as s,H as a}from"./p-kpoIU4v_.js";import{c as i,l as r,b as o,T as c,a as h}from"./p-D3G5aVLy.js";import{F as f}from"./p-D522G7Ja.js";import"./p-CZfYo5-1.js";const l=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.maxDate=this.currentDate,this.handleFormControlInput=t=>{const e=t.target.value;this.inputHandler(this.name,e),this.formControlInput.emit({name:this.name,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}get currentDate(){return this.showTime?(new Date).toISOString().slice(0,16):(new Date).toISOString().split("T")[0]}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}get part(){let t=i;return this.errorText&&(t=o),this.disabled&&(t=c),this.isFocused&&(t=h),t}render(){return s(a,{key:"c0f1b63506b1cb2dd6b712674ecf41d6a77a6812"},s("div",{key:"8035f56102e8b858006d4045c0a63c60c28ab7b0",class:"form-group d-flex flex-column"},s("div",{key:"0d16c477ef91e6f7dae42428358d89e2c78d5435",class:"d-flex gap-2"},s("label",{key:"ef93756204a7f38bcd5a06c4fbc99b8f379ba9bb",part:r,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"ed2c53cfffc47f3a1ccbef06778760b573dbc9f2",helpText:this.helpText})),s("input",{key:"b3520bb0eddce201eff89358e0f8e74a9fad644c",type:this.showTime?"datetime-local":"date",ref:t=>this.dateInput=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-control is-invalid":"form-control",disabled:this.disabled,max:this.maxDate}),s(f,{key:"b85de20c9ed6791e0a9f2f2ccf6df8cdd62e3bc1",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{l as form_control_date}
1
+ import{r as t,c as e,h as s,H as a}from"./p-kpoIU4v_.js";import{c as i,l as r,b as o,T as c,a as h}from"./p-CfF8KKwx.js";import{F as l}from"./p-C_CXv7AN.js";import"./p-CZfYo5-1.js";const f=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.maxDate=this.currentDate,this.handleFormControlInput=t=>{const e=t.target.value;this.inputHandler(this.name,e),this.formControlInput.emit({name:this.name,value:e})}}handleDefaultValueChange(t){this.updateInput(t)}get currentDate(){return this.showTime?(new Date).toISOString().slice(0,16):(new Date).toISOString().split("T")[0]}componentDidLoad(){this.updateInput(this.defaultValue)}updateInput(t){this.dateInput.value=t}get part(){let t=i;return this.errorText&&(t=o),this.disabled&&(t=c),this.isFocused&&(t=h),t}render(){return s(a,{key:"9e06145d50ff23ff7c7b3ef2bc0542f9e6cec388"},s("div",{key:"eb787b4488da0ca4b836cb4fe8577d32c5dac531",class:"form-group d-flex flex-column"},s("div",{key:"9edd445e5b576c2087a96ab65f97f406adc61647",class:"d-flex gap-2"},s("label",{key:"2ee675cc282033bba8f52f444cce60181eed58a3",part:r,class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"7c6e69baf4d521c232e48a36d42da426cfcb8573",helpText:this.helpText})),s("input",{key:"c0364e383a104264bc8f0cb770d29309463b7b97",type:this.showTime?"datetime-local":"date",ref:t=>this.dateInput=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-control is-invalid":"form-control",disabled:this.disabled,max:this.maxDate}),s(l,{key:"d3bc10c598d942b513c62f4ed2f0fdfa9b0703b2",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{f as form_control_date}
@@ -0,0 +1 @@
1
+ import{r as e,c as t,h as a,H as i}from"./p-kpoIU4v_.js";import{c as s,F as c}from"./p-CR9D6mKt.js";import{k as r,l as d,m as n,n as l,q as o,y as h}from"./p-CYBR4K2p.js";import{r as f,av as b}from"./p-CfF8KKwx.js";import{S as m}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{S as u}from"./p-BC8YDY7M.js";import{c as p,J as y}from"./p-CEsXw0Ph.js";import{w as v,c as k}from"./p-9y5MOK55.js";import{H as g}from"./p-CwZKT93w.js";import{n as _}from"./p-BnjCmwMr.js";import{S as j}from"./p-BX8GieXu.js";import{B as w}from"./p-JgbsbAhz.js";import{c as x}from"./p-CCME-fyU.js";import"./p-BFTU3MAI.js";import"./p-yH3TC3ZQ.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-wutYt_7D.js";import"./p-I8XpD1TX.js";import"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-WEguiGt1.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-7WIgS5RM.js";const C=class{constructor(a){e(this,a),this.radioClick=t(this,"radio-click"),this.checked=!1,this.hidden=!1,this.handleClick=()=>{this.radioClick.emit(this.value)}}render(){return a(m,{key:"492a73e2bab02c04aa8733ce0b9ab801e5ff8875"},a("div",{key:"c095a98ba11739b85ece4c7bb0e0c30e7e08ec7b",class:`radio-list-item p-3 ${this.class||""}`,part:f,onClick:this.handleClick,hidden:this.hidden},a("form-control-radio",{key:"050ed9e552c4a8bf4462e544d3496bed356e7c06",name:this.name,value:this.value,checked:this.checked,label:this.label,inputHandler:()=>null})))}},V=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new c(s({name:h.required("Enter full name"),address_line1:o.nullable(),address_line2:l.nullable(),address_city:n.nullable(),address_state:d.nullable(),address_postal_code:r.nullable()}))}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(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return a(m,{key:"81a8511265b4813817b4cf183aa176b464645e85"},a("div",{key:"7dddd3ec7822077268c73da7d0f34a691ddde1cb",part:b,class:"mt-4"},a("form",{key:"1c9000a4b022209129cf511d79a77cf3dc44b77e"},a("fieldset",{key:"134c349c5745197b5ebb79b31748bf480e1cab7a"},this.legend&&a("legend",{key:"fb8e12086fd6fb51f7456d8fc6e82a9184514d4f"},this.legend),a("div",{key:"a49ae2d182e442efbe44aae7c2e0a4e40dabe7d7",class:"row gy-3"},a("div",{key:"2be4b2aab266d0fc17f32237693dea8578c7545d",class:"col-12"},a("form-control-text",{key:"92d1b3b05ba04212e46feecfd886f7dcc912e4fe",name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})))))))}},H=e=>{const{isReady:t}=e;return t?null:a("div",{class:"container-fluid p-0"},a("div",{class:"row mb-3"},a("div",{class:"col-12 align-content-end"},a(u,{height:"18px",width:"120px"}),a(u,{height:"36px"}))),a("div",{class:"row"},a("div",{class:"col-12 align-content-end"},a(u,{height:"18px",width:"110px"}),a(u,{height:"36px"}))))},O=class{constructor(t){e(this,t),this.isReady=!1}async componentWillLoad(){await v(),this.iframeOrigin=k.iframeOrigin,p(),this.analytics=new y(this)}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((e=>new Promise((t=>{e.addEventListener("iframeLoaded",(()=>{t()}))}))))).then((()=>{this.isReady=!0}))}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}async validate(){const e=await this.accountNumberIframeElement.validate(),t=await this.routingNumberIframeElement.validate();return e&&t}async tokenize({clientId:e,paymentMethodMetadata:t,account:a}){return this.accountNumberIframeElement.tokenize(e,t,a)}render(){return a(m,{key:"653403782a62c5a2ea0675f9633c7197503c9ab7"},a(H,{key:"63f13c4e3c7ca588a17837faeca840302675c927",isReady:this.isReady}),a("hidden-input",{key:"7d825c7c130942e751f3ba17d195e979c406f4a6"}),a("div",{key:"d9fec72e9526c9dadd3cae0af98d99b024320a2c",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},a("div",{key:"22047ead687c0eb6cb724343091eac42760d93a4",class:"row mb-3"},a("iframe-input",{key:"5f5a1300d37439b3c936dcc13e1e17cf779c9ba0",inputId:"accountNumber",ref:e=>this.accountNumberIframeElement=e,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber`})),a("div",{key:"2898faa832be4454b81047cdc220cc418b6a6783",class:"row"},a("iframe-input",{key:"962fc1a8504d5e84386818936b27d38ca580c410",inputId:"routingNumber",ref:e=>this.routingNumberIframeElement=e,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber`}))))}},I=class{constructor(t){e(this,t)}get showSimpleCardBillingForm(){return"card"===this.paymentMethodType&&this.hideCardBillingForm}get showSimpleBankAccountBillingForm(){return"bankAccount"===this.paymentMethodType&&this.hideBankAccountBillingForm}async getValues(){var e;return null===(e=this.selectedFormRef)||void 0===e?void 0:e.getValues()}async fill(e){var t;null===(t=this.selectedFormRef)||void 0===t||t.fill(e)}async validate(){var e;return null===(e=this.selectedFormRef)||void 0===e?void 0:e.validate()}render(){return a(i,null,a(this.showSimpleBankAccountBillingForm?"justifi-bank-account-billing-form-simple":this.showSimpleCardBillingForm?"justifi-card-billing-form-simple":"justifi-billing-form-full",{legend:this.legend,ref:e=>this.selectedFormRef=e}))}},L=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new c(s({name:h.required("Enter full name"),address_line1:o.required("Enter street address"),address_line2:l.nullable(),address_city:n.required("Enter city"),address_state:d.required("Select state"),address_postal_code:r.required("Enter postal code")})),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(),errors:this.formController.errors.getValue()}}render(){if(!this.formController)return null;const e=this.formController.getInitialValues();return a(m,null,a("div",{part:b,class:"mt-4"},a(g,{text:"Billing address",class:"fs-6 fw-bold lh-lg mb-4"}),a("form",null,a("fieldset",null,this.legend&&a("legend",null,this.legend),a("div",{class:"row gy-3"},a("div",{class:"col-12"},a("form-control-text",{name:"name",label:"Full Name",defaultValue:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-text",{name:"address_line1",label:"Street Address",defaultValue:e.address_line1,errorText:this.errors.address_line1,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-text",{name:"address_line2",label:"Apartment, Suite, etc. (optional)",defaultValue:e.address_line2,errorText:this.errors.address_line2,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-text",{name:"address_city",label:"City",defaultValue:e.address_city,errorText:this.errors.address_city,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-select",{name:"address_state",label:"State",options:j,defaultValue:e.address_state,errorText:this.errors.address_state,inputHandler:this.inputHandler})),a("div",{class:"col-12"},a("form-control-text",{name:"address_postal_code",label:"ZIP",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:_})))))))}},M=class{constructor(t){e(this,t),this.variant="primary",this.type="button"}render(){return a(m,{key:"fae177edc7a7a898f1782a01c26b65fb11c50c65"},a(w,{key:"c097e63cce36a5b4e2cb522bf17ba2519c354c6e",variant:this.variant,isLoading:this.isLoading,clickHandler:this.clickHandler,class:this.class,type:this.type,disabled:this.disabled,style:this.customStyle},this.text))}},B=class{constructor(t){e(this,t),this.errors={},this.inputHandler=(e,t)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[e]:t}))}}componentWillLoad(){this.formController=new c(s({name:h.nullable(),address_line1:o.nullable(),address_line2:l.nullable(),address_city:n.nullable(),address_state:d.nullable(),address_postal_code:r.required("Enter postal code")}))}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(),errors:this.formController.errors.getValue()}}render(){const e=this.formController.getInitialValues();return a(m,{key:"a88ea2aa0b1cc2fccda7c169aad9c061e106ecfe"},a("div",{key:"414df056d92819bf646886ca8e15f2ed10e6ab18",part:b},a("form",{key:"c11f6eb5c7c5c1ecbeb8cc8f644a3b3ba72254c7"},a("fieldset",{key:"dd69c65ff7f36da3954c01ca2401e8ede6799f14"},this.legend&&a("legend",{key:"25a86a61452b84237cc58c047916de22c35b764d"},this.legend),a("div",{key:"2fa8445fcf4ac0500f357d92480f18ccac655689",class:"row gy-3"},a("div",{key:"b7ac75fcab43435a03ad919757541f74661ce5b4",class:"col-12"},a("form-control-text",{key:"fd9e84c9605edf1a987c7243409eb0182f79a803",name:"address_postal_code",label:"ZIP",defaultValue:e.address_postal_code,errorText:this.errors.address_postal_code,inputHandler:this.inputHandler,maxLength:5,keyDownHandler:_})))))))}},N=e=>{const{isReady:t}=e;return t?null:a("div",{class:"container-fluid p-0"},a("div",{class:"mb-3"},a(u,{height:"18px",width:"100px"}),a(u,{height:"36px"})),a("div",{class:"row"},a("div",{class:"col-4 align-content-end"},a(u,{height:"18px",width:"80px"}),a(u,{height:"36px"})),a("div",{class:"col-4 align-content-end"},a(u,{height:"36px"})),a("div",{class:"col-4 align-content-end"},a(u,{height:"18px",width:"30px"}),a(u,{height:"36px"}))))},T=class{constructor(t){e(this,t),this.isReady=!1}async componentWillLoad(){await v(),this.iframeOrigin=k.iframeOrigin,p(),this.analytics=new y(this)}componentDidRender(){Promise.all([this.cardNumberIframeElement,this.expirationMonthIframeElement,this.expirationYearIframeElement,this.cvvIframeElement].map((e=>new Promise((t=>{e.addEventListener("iframeLoaded",(()=>{t()}))}))))).then((()=>{this.isReady=!0}))}disconnectedCallback(){var e;null===(e=this.analytics)||void 0===e||e.cleanup()}async validate(){const e=await this.cardNumberIframeElement.validate(),t=await this.expirationMonthIframeElement.validate(),a=await this.expirationYearIframeElement.validate(),i=await this.cvvIframeElement.validate();return e&&t&&a&&i}async tokenize({clientId:e,paymentMethodMetadata:t,account:a}){return this.cardNumberIframeElement.tokenize(e,t,a)}render(){return a(m,{key:"a53db7e555c2a1df6679bf9ddeada18d9e750a3d"},a(N,{key:"70eda1f05670b09bdb6a5f9f506f5828fec0cd71",isReady:this.isReady}),a("hidden-input",{key:"648480344a5a79e79d8396cdcc402f63f40b2b18"}),a("div",{key:"d7bcf16f905367429ddf4be468d12f603135affa",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},a("div",{key:"9860508b6a16ae4a37d96c3d259237ccd17b28f1",class:"mb-3"},a("iframe-input",{key:"c37ec02e0b2f8465c4118892f0b51faaf9a57cdf",inputId:"cardNumber",ref:e=>this.cardNumberIframeElement=e,label:"Card Number",iframeOrigin:`${this.iframeOrigin}/v2/cardNumber`})),a("div",{key:"097258a271969ef38a1d32a5aa0b20c5443de991",class:"row"},a("div",{key:"ad2b656c503abd6aca2eea0842a70358097c452e",class:"col-4 align-content-end"},a("iframe-input",{key:"3e3fda000e1ea41e44a337a1efd886ce7d9503f7",inputId:"expirationMonth",ref:e=>this.expirationMonthIframeElement=e,label:"Expiration",iframeOrigin:`${this.iframeOrigin}/v2/expirationMonth`})),a("div",{key:"13f33bd008ad4c6407336775d35b752c0e6eb8e5",class:"col-4 align-content-end"},a("iframe-input",{key:"3dcf445381f39544a1421569151c76c47e790456",inputId:"expirationYear",ref:e=>this.expirationYearIframeElement=e,label:"",iframeOrigin:`${this.iframeOrigin}/v2/expirationYear`})),a("div",{key:"fbc26d74b4e18b7a77639d8b53720ca4e7bdd201",class:"col-4 align-content-end"},a("iframe-input",{key:"400c65fa8efb358396e561b3ba2a5ac13c3bcbbe",inputId:"CVV",ref:e=>this.cvvIframeElement=e,label:"CVV",iframeOrigin:`${this.iframeOrigin}/v2/CVV`})))))}},D=class{constructor(a){e(this,a),this.checkboxChanged=t(this,"checkboxChanged"),this.isChecked=!1,this.handleCheckboxChange=(e,t)=>{this.isChecked=t,x.savePaymentMethod=t,this.checkboxChanged.emit(this.isChecked)}}render(){return a(m,{key:"f23a4f992eef86df7ebfa86f4b46b232456016b2"},a("div",{key:"0ef7c08423451655318751a6377f0ba8ffda3c7c",class:"mt-4 form-check"},a("form-control-checkbox",{key:"609527d08abb45603ea683a051cf9c09435fc5bc",label:"Save new payment method",name:"saveNewPaymentMethod",checked:this.isChecked,inputHandler:this.handleCheckboxChange})))}};export{V as justifi_bank_account_billing_form_simple,O as justifi_bank_account_form,I as justifi_billing_form,L as justifi_billing_form_full,M as justifi_button,B as justifi_card_billing_form_simple,T as justifi_card_form,C as justifi_radio_list_item,D as justifi_save_new_payment_method}
@@ -1 +1 @@
1
- import{r as s,c as e,h as t,H as i}from"./p-kpoIU4v_.js";import{C as n,a as r}from"./p-Cjcsf8ku.js";import{m as o,b as a,f as h,g as d}from"./p-5aA7gjr5.js";import{B as c,a as u,D as p}from"./p-DVPcHdzq.js";import"./p-9y5MOK55.js";import"./p-B7jE0g5_.js";import"./p-Bou1Z4Bm.js";import"./p-CLHwhyvu.js";import"./p-BDUTtU21.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{c as f,d as l,F as b}from"./p-CR9D6mKt.js";import{A as m}from"./p-Dj1uo4J3.js";import{C as g}from"./p-D3G5aVLy.js";import{a as k,B as y}from"./p-XYgDHrVL.js";import{B as v}from"./p-Cm_ywVHL.js";import"./p-CZfYo5-1.js";import"./p-D2muobcE.js";import"./p-7WIgS5RM.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";const j=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-additional-questions-form-step-core",{key:"cdc14a51e5655ce4b4d7c24af613b9146c80ba37",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},_=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.postBankAccount=h({authToken:this.authToken,service:new u}),this.postDocumentRecord=d({authToken:this.authToken,service:new p})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-bank-account-form-step-core",{key:"0cdd7da1ea31971df421b28f17673bd1a81bf661",businessId:this.businessId,getBusiness:this.getBusiness,postBankAccount:this.postBankAccount,postDocumentRecord:this.postDocumentRecord,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},w=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-core-info-form-step-core",{key:"21d9ea1603f0e9bf6fe842d177f0f6da0113fb73",businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},C=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t(i,{key:"39dcd68b6ef40bb24dfec2da03d420de7ff17f1a"},t("justifi-business-owners-form-step-core",{key:"f9958c7cb798f256106f93a45bcc8405da5f3b49",authToken:this.authToken,businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s}))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},T=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-representative-form-step-core",{key:"53c23a79fc8c678d98ca016f38fe7e6fe6ad9fba",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},I=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.formCompleted=e(this,"formCompleted"),this.errors={},this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get({endpoint:this.businessEndpoint,authToken:this.authToken});this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:r.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const e=this.termsPayload,t=await this.api.post({endpoint:this.termsConditionsEndpoint,body:e,authToken:this.authToken});this.handleResponse(t,s)}catch(s){this.errorEvent.emit({errorCode:r.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,e)=>{this.acceptedTerms=e,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:e}))}}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=m(),this.formController=new b((s=>{const e=f({accepted:l().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),t=f({accepted:l().nullable()});return s?t:e})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,e){s.error?this.errorEvent.emit({errorCode:r.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):e(),this.stepCompleteEvent.emit({response:s,formStep:k.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:k.termsAndConditions,metadata:"no data submitted"}),this.formCompleted.emit(),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get merchantAgreementLink(){return t("a",{href:"https://justifi.tech/merchant-agreement/",target:"_blank",rel:"noopener noreferrer"},"merchant agreement")}render(){return t("form",{key:"c1ca0ecd364a999e7525e9ac3da82e874a8784e8"},t("fieldset",{key:"a77178a38044c458d8dbd31a7e1aeb3f1a34c968"},t("legend",{key:"7e933517fca8d54095466715bf1f0485625be74f",part:g},"Terms and Conditions"),t("hr",{key:"1c1da0b7378c51ad2be5efc0e51dedd3ed178c8f"}),t("div",{key:"bc37aa5162dddc8ade4316b5f24deb1d4a4b6f86"},t("p",{key:"aef3d0c9186845e3f44b8e1906c405647f489b53"},"Please read and accept the ",this.merchantAgreementLink," to submit your provisioning request.")),t("br",{key:"2a6a480916cc0c4bf35d96c96c3f0250e87149cb"}),t("div",{key:"2e3bed3a57bcb026152fcdc82debab0e667f8148",class:"row-gy-3"},t("div",{key:"3243c1819e4e61921421467271b2a4d2a89e73d4",class:"col-12"},t("form-control-checkbox",{key:"20b9b72809148ef390a6da7d9f5bc216436d34a5",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText,checked:this.acceptedTerms})))))}},S=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-legal-address-form-step-core",{key:"65d876bee76f4deb4df115e636fafaef2c883f24",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},B=class{constructor(e){s(this,e)}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return t("div",{key:"7c793a33752cd9b3dd1ebc6c30b7a98002ef8820",class:"d-flex gap-2"},t(v,{key:"5127c233ef8c819fe17204baaff7370d78ec70e7",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),t(v,{key:"d889e96935718eb333eaac70023fd7b273118676",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,y.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),t(v,{key:"5502d7d73084119862451389bf85705407187016",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,y.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},A=class{constructor(e){s(this,e),this.allowOptionalFields=!1,this.componentStepMapping={0:()=>t("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields}),1:()=>t("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields}),2:()=>t("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>t("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields}),4:()=>t("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields}),5:()=>t("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,allowOptionalFields:this.allowOptionalFields}),6:()=>t("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return t("div",{key:"f25bbaeeac7ea49b2d99f746af0aec7b637d879a",class:"col-12 mb-4"},this.currentStepComponent)}};export{j as justifi_additional_questions_form_step,_ as justifi_business_bank_account_form_step,w as justifi_business_core_info_form_step,C as justifi_business_owners_form_step,T as justifi_business_representative_form_step,I as justifi_business_terms_conditions_form_step,S as justifi_legal_address_form_step,B as justifi_payment_provisioning_form_buttons,A as justifi_payment_provisioning_form_steps}
1
+ import{r as s,c as e,h as t,H as i}from"./p-kpoIU4v_.js";import{C as n,a as r}from"./p-Cjcsf8ku.js";import{m as o,b as a,f as h,g as d}from"./p-5aA7gjr5.js";import{B as c,a as u,D as p}from"./p-DD74a16D.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{c as f,d as b,F as l}from"./p-CR9D6mKt.js";import{A as m}from"./p-I8XpD1TX.js";import{G as g}from"./p-CfF8KKwx.js";import{a as k,B as y}from"./p-XYgDHrVL.js";import{B as v}from"./p-JgbsbAhz.js";import"./p-CZfYo5-1.js";import"./p-D2muobcE.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-BFTU3MAI.js";const j=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-additional-questions-form-step-core",{key:"b494a48aa19f63e30007663276876540c5149879",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},w=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.postBankAccount=h({authToken:this.authToken,service:new u}),this.postDocumentRecord=d({authToken:this.authToken,service:new p})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-bank-account-form-step-core",{key:"adb496ad14cd3334d30e571d873150ed8335f833",businessId:this.businessId,getBusiness:this.getBusiness,postBankAccount:this.postBankAccount,postDocumentRecord:this.postDocumentRecord,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},_=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-core-info-form-step-core",{key:"1d2bd68e87d5f312c54f5a4bda8863b26fdeec5d",businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},C=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t(i,{key:"3420b6e74da344665583a49146b5b7fd1be40155"},t("justifi-business-owners-form-step-core",{key:"3e092450028815a0b134af4294edbb7589864409",authToken:this.authToken,businessId:this.businessId,getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s}))}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},T=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-business-representative-form-step-core",{key:"582c77f4b763573a1d29726285a9b871afe96d89",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},I=class{constructor(t){s(this,t),this.stepCompleteEvent=e(this,"complete-form-step-event"),this.errorEvent=e(this,"error-event"),this.formLoading=e(this,"formLoading"),this.formCompleted=e(this,"formCompleted"),this.errors={},this.fetchData=async()=>{this.formLoading.emit(!0);try{const s=await this.api.get({endpoint:this.businessEndpoint,authToken:this.authToken});this.acceptedTermsBefore=s.data.terms_conditions_accepted}catch(s){this.errorEvent.emit({errorCode:r.FETCH_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.sendData=async s=>{this.formLoading.emit(!0);try{const e=this.termsPayload,t=await this.api.post({endpoint:this.termsConditionsEndpoint,body:e,authToken:this.authToken});this.handleResponse(t,s)}catch(s){this.errorEvent.emit({errorCode:r.POST_ERROR,message:s.message,severity:n.ERROR,data:s})}finally{this.formLoading.emit(!1)}},this.inputHandler=(s,e)=>{this.acceptedTerms=e,this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[s]:e}))}}get businessEndpoint(){return`entities/business/${this.businessId}`}get termsConditionsEndpoint(){return"entities/terms_and_conditions"}get formHelperText(){return this.acceptedTermsBefore?"You have already accepted the terms and conditions.":null}get termsPayload(){return{business_id:this.businessId,accepted:this.formController.values.getValue().accepted,user_agent:window.navigator.userAgent}}async componentWillLoad(){this.api=m(),this.formController=new l((s=>{const e=f({accepted:b().oneOf([!0],"You must agree to the terms and conditions to continue").required("You must agree to the terms and conditions to continue")}),t=f({accepted:b().nullable()});return s?t:e})(this.allowOptionalFields)),this.businessId&&this.authToken&&this.fetchData()}handleResponse(s,e){s.error?this.errorEvent.emit({errorCode:r.POST_ERROR,message:s.error.message,severity:n.ERROR,data:s.error}):e(),this.stepCompleteEvent.emit({response:s,formStep:k.termsAndConditions}),this.formCompleted.emit()}async validateAndSubmit({onSuccess:s}){this.acceptedTermsBefore?(this.stepCompleteEvent.emit({response:null,formStep:k.termsAndConditions,metadata:"no data submitted"}),this.formCompleted.emit(),s()):this.formController.validateAndSubmit((()=>this.sendData(s)))}componentDidLoad(){this.formController.errors.subscribe((s=>{this.errors=Object.assign({},s)}))}get merchantAgreementLink(){return t("a",{href:"https://justifi.tech/merchant-agreement/",target:"_blank",rel:"noopener noreferrer"},"merchant agreement")}render(){return t("form",{key:"8cea6fff2e5b5cbfa7de6b3adfce238153599d1e"},t("fieldset",{key:"ef3c4ce5d0d03f1d048e072c6f7ac3da565ffb18"},t("legend",{key:"caa5fee86bd4b5c2a7204a76ae3533146526b9e1",part:g},"Terms and Conditions"),t("hr",{key:"5a72caeaf2dae8f57c0be09ca21feceb0793daf4"}),t("div",{key:"e39700b83a10c479cf6d767c1af61ac8b480e4d5"},t("p",{key:"2b8520977bedf73c295a387095724a561391b005"},"Please read and accept the ",this.merchantAgreementLink," to submit your provisioning request.")),t("br",{key:"706ec9ecfd4a0909583745f90b36eeb42fa5e690"}),t("div",{key:"d915e2c49188b829b33b03f07cc8f1ccea99ee1d",class:"row-gy-3"},t("div",{key:"cbbc74e6b5e80bf54884a8f41eb94f6d5bcdb6dd",class:"col-12"},t("form-control-checkbox",{key:"f63aed196d33f1760dae8c5ac5487c0fbc7d4838",name:"accepted",label:"I agree to the terms and conditions",inputHandler:this.inputHandler,errorText:this.errors.accepted,disabled:this.acceptedTermsBefore,helpText:this.formHelperText,checked:this.acceptedTerms})))))}},S=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event")}propChanged(){this.initializeApi()}async validateAndSubmit({onSuccess:s}){this.coreComponent.validateAndSubmit({onSuccess:s})}componentWillLoad(){this.initializeApi()}initializeApi(){this.authToken&&this.businessId?(this.getBusiness=o({authToken:this.authToken,businessId:this.businessId,service:new c}),this.patchBusiness=a({authToken:this.authToken,businessId:this.businessId,service:new c})):this.errorEvent.emit({message:"Missing required props",errorCode:r.MISSING_PROPS,severity:n.ERROR})}render(){return t("justifi-legal-address-form-step-core",{key:"bd286476461181f2e8a435a97bf148d55876b49c",getBusiness:this.getBusiness,patchBusiness:this.patchBusiness,allowOptionalFields:this.allowOptionalFields,ref:s=>this.coreComponent=s})}static get watchers(){return{authToken:["propChanged"],businessId:["propChanged"]}}},B=class{constructor(e){s(this,e)}get showPreviousStepButton(){return this.currentStep>0}get showNextStepButton(){return this.currentStep<this.totalSteps}get showSubmitButton(){return this.currentStep===this.totalSteps}render(){return t("div",{key:"5869ed8c350e3a1ae5fe62dcd04493f432eecff7",class:"d-flex gap-2"},t(v,{key:"b1e8c2fff97e9a053d715860a43ddd78c99b255a",variant:"secondary",type:"button",onClick:()=>this.previousStepButtonOnClick(),disabled:this.formDisabled,hidden:!this.showPreviousStepButton},"Previous"),t(v,{key:"8696fe4f0bde5434e51f05f67b39a8e5b2f550bf",variant:"primary",type:"button",onClick:s=>this.nextStepButtonOnClick(s,y.nextStep),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showNextStepButton},"Next"),t(v,{key:"b1750a849d60244bdb3cf82690c6cbd15b6e1110",variant:"primary",type:"submit",onClick:s=>this.nextStepButtonOnClick(s,y.submit),disabled:this.formDisabled,isLoading:this.formLoading,hidden:!this.showSubmitButton},"Submit"))}},A=class{constructor(e){s(this,e),this.allowOptionalFields=!1,this.componentStepMapping={0:()=>t("justifi-business-core-info-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[0]=s,allowOptionalFields:this.allowOptionalFields}),1:()=>t("justifi-legal-address-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[1]=s,allowOptionalFields:this.allowOptionalFields}),2:()=>t("justifi-additional-questions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[2]=s,allowOptionalFields:this.allowOptionalFields}),3:()=>t("justifi-business-representative-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[3]=s,allowOptionalFields:this.allowOptionalFields}),4:()=>t("justifi-business-owners-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[4]=s,allowOptionalFields:this.allowOptionalFields}),5:()=>t("justifi-business-bank-account-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[5]=s,allowOptionalFields:this.allowOptionalFields}),6:()=>t("justifi-business-terms-conditions-form-step",{businessId:this.businessId,authToken:this.authToken,ref:s=>this.refs[6]=s,onFormLoading:this.handleFormLoading,allowOptionalFields:this.allowOptionalFields})}}get currentStepComponent(){return this.componentStepMapping[this.currentStep]()}render(){return t("div",{key:"9a09e562d0a3548cb40863ba5780c5d1692b6ec3",class:"col-12 mb-4"},this.currentStepComponent)}};export{j as justifi_additional_questions_form_step,w as justifi_business_bank_account_form_step,_ as justifi_business_core_info_form_step,C as justifi_business_owners_form_step,T as justifi_business_representative_form_step,I as justifi_business_terms_conditions_form_step,S as justifi_legal_address_form_step,B as justifi_payment_provisioning_form_buttons,A as justifi_payment_provisioning_form_steps}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as s,H as a,g as i}from"./p-kpoIU4v_.js";import{F as r}from"./p-C_CXv7AN.js";import{i as o,b as l,a as h,T as c,c as n,l as f}from"./p-CfF8KKwx.js";const d=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur")}render(){return s(a,{key:"44f72494590e41cc25ce8df4b14d7e73e0e0e0b2",exportparts:"label,input,input-invalid"},s("div",{key:"7cf04dc8c5e41b9d93335f75ce2b06b898e0c061",class:"form-group d-flex flex-column"},s("div",{key:"a23e716bedb23a53c53a1426fddbdb962c5747bc",class:"d-flex align-items-start gap-2"},s("label",{key:"9fc7762d30b7bb20651a152d64f549d465c8024a",part:"label",class:"form-label",htmlFor:this.name},this.label),s("form-control-tooltip",{key:"3d5ee1381ae6f32b3eaeaa6b0033ab6897aaee0a",helpText:this.helpText})),s("input",{key:"ed14e978a997b98e23496a58ec419025b3927c23",type:"file",name:this.name,part:`input ${this.errorText?"input-invalid ":""}${this.disabled?"input-disabled":""}`,class:this.errorText?"form-control is-invalid":"form-control",multiple:this.multiple,disabled:this.disabled,onBlur:()=>this.formControlBlur.emit(),onChange:()=>this.errorText=""}),s(r,{key:"04281c0fcaa93ef1341ef727d34b028bf162c804",errorText:this.errorText,name:this.name})))}get el(){return i(this)}},b=class{constructor(s){t(this,s),this.formControlInput=e(this,"formControlInput"),this.formControlBlur=e(this,"formControlBlur"),this.isFocused=!1,this.handleFormControlInput=t=>{const e=t.target,s=e.getAttribute("name");this.inputHandler(s,e.value),this.formControlInput.emit({name:s,value:e.value})},this.updateInput=t=>{const e=this.el.querySelector("textarea");e&&(e.value=t||"")}}handleDefaultValueChange(t){this.updateInput(t)}componentDidLoad(){this.updateInput(this.defaultValue)}get part(){return this.isFocused&&this.errorText?o:this.errorText?l:this.isFocused?h:this.disabled?c:n}render(){return s(a,{key:"441f155ccc2b2d47ca059f378a2ce4654dee9226"},s("div",{key:"8b40b7a1d71264f34ff42f50c28f8a2848f8b7e5",class:"form-group d-flex flex-column"},s("label",{key:"15b349f7c0409bc5b2687d6c2b981d364c89d535",part:f,class:"form-label",htmlFor:this.name},this.label),s("textarea",{key:"9f48b1b48aba962d4c331141d9c37fd76f5533f7",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",disabled:this.disabled}),s("form-control-help-text",{key:"a83d38aa90284c9744bed539cb491b9af5615b1c",helpText:this.helpText,name:this.name}),s("form-control-error-text",{key:"3ea714634686f0e48bc2e325f38af249614bbcea",errorText:this.errorText,name:this.name})))}get el(){return i(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{d as form_control_file_v2,b as form_control_textarea}
@@ -0,0 +1 @@
1
+ import{r as e,h as a}from"./p-kpoIU4v_.js";import{l as t}from"./p-Bde7dY9t.js";import{f as s,p as d,c as i}from"./p-DaDsBt65.js";import{f as l,g as c,t as r,h as f,j as p,k as o}from"./p-CfF8KKwx.js";import{S as b}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{c as n,a as m}from"./p-zdIeCUeh.js";import"./p-BFTU3MAI.js";import"./p-7WIgS5RM.js";import"./p-HXpYMWUU.js";const u=class{constructor(a){e(this,a),this.setParamsOnChange=(e,a)=>{s[e]=a},this.handleDateInput=(e,a)=>{const t=n(a,{setExactTime:!0});this.setParamsOnChange(e,t)}}componentWillLoad(){this.debouncedSetParamsOnChange=t.debounce(this.setParamsOnChange,300),Object.entries({payment_id:this.paymentId,terminal_id:this.terminalId,payment_status:this.paymentStatus,created_after:this.createdAfter,created_before:this.createdBefore}).forEach((([e,a])=>{a&&(d[e]=a)}))}get paymentStatusOptions(){return[{label:"All",value:""},{label:"Pending",value:"pending"},{label:"Authorized",value:"authorized"},{label:"Succeeded",value:"succeeded"},{label:"Failed",value:"failed"},{label:"Disputed",value:"disputed"},{label:"Refunded",value:"refunded"}]}render(){const e=Object.assign({},s);return a(b,{key:"cc126b534ca4b07c39837310f08a7dbbf12d793c"},a("table-filters-menu",{key:"5417f231746c0dace09e623629c0b40b0e680714",params:e,clearParams:i,part:l},a("div",{key:"50cd8592d22b12788c31dfc744a39fcec7a32a0f",class:"grid-cols-2 gap-3 p-1"},a("div",{key:"dd64e601b8881bb940dabfd05a5b6fa5fabc75fd",class:"p-2"},a("form-control-text",{key:"172c56e0eb8c4d13ff30ff1f2266a30ab8d59e25",name:"payment_id",label:"Payment ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.paymentId||s.payment_id,disabled:!!this.paymentId,part:c})),a("div",{key:"70db55cf54206ab03112ff88757248deb3507084",class:"p-2"},a("form-control-text",{key:"c7e94136b6285d8d22f2170d26c166227451e914",name:"terminal_id",label:"Terminal ID",inputHandler:this.debouncedSetParamsOnChange,defaultValue:this.terminalId||s.terminal_id,disabled:!!this.terminalId,part:r})),a("div",{key:"f282e92c253370922ec06ae0ed9ef55d5515f55c",class:"p-2"},a("form-control-select",{key:"7c35feaac9958fb44586e757ef708d2230c6a31c",name:"payment_status",label:"Status",options:this.paymentStatusOptions,inputHandler:this.setParamsOnChange,defaultValue:this.paymentStatus||s.payment_status,disabled:!!this.paymentStatus,part:f})),a("div",{key:"e74d305502ed5676d7ba6c332011f3aac2c757f4",class:"p-2"},a("form-control-date",{key:"96a88abb0be10f2bd5c8c96beefbbd143a9c8a61",name:"created_after",label:"Created After",inputHandler:this.handleDateInput,defaultValue:m(this.createdAfter,{showInputDateTime:!0})||m(s.created_after,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdAfter,part:p})),a("div",{key:"4c3e79b77675ba2cf7d5bc7746193ceabdc88aee",class:"p-2"},a("form-control-date",{key:"275a24fbd7a806786182dda5d8f0eed1ad85528e",name:"created_before",label:"Created Before",inputHandler:this.handleDateInput,defaultValue:m(this.createdBefore,{showInputDateTime:!0})||m(s.created_before,{showInputDateTime:!0}),showTime:!0,disabled:!!this.createdBefore,part:o})))))}};export{u as justifi_payments_list_filters}
@@ -0,0 +1 @@
1
+ import{h as e,r as a,H as i}from"./p-kpoIU4v_.js";import{S as t}from"./p-BC8YDY7M.js";import{w as s,c}from"./p-9y5MOK55.js";import"./p-CfF8KKwx.js";import"./p-7WIgS5RM.js";const r=a=>{const{isReady:i}=a;return i?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"}))))},d=class{constructor(e){a(this,e),this.isReady=!1}async componentWillLoad(){await s(),this.iframeOrigin=c.iframeOrigin}componentDidRender(){Promise.all([this.accountNumberIframeElement,this.routingNumberIframeElement].map((e=>new Promise((a=>{e.addEventListener("iframeLoaded",(()=>{a()}))}))))).then((()=>{this.isReady=!0}))}async validate(){const e=await this.accountNumberIframeElement.validate(),a=await this.routingNumberIframeElement.validate();return e&&a}async tokenize(e,a,i){return this.accountNumberIframeElement.tokenize(e,a,i)}render(){return e(i,{key:"b6cdf5a9320d92a5390daaa0a5218274f2dfc178"},e(r,{key:"286fcc38a26820d166ced0bc886143ed3d880da4",isReady:this.isReady}),e("div",{key:"041fcacff70d7cdfc0c8f41258bd9db18703e4c1",class:"container-fluid p-0",style:{opacity:this.isReady?"1":"0",height:this.isReady?"auto":"0"}},e("div",{key:"94dc0eb0d79b40ade96e1961611e3e7a8eef20ea",class:"row mb-3"},e("iframe-input",{key:"41c82b772e7873a45409e35ed56dfea16c20c2ee",inputId:"accountNumber",ref:e=>this.accountNumberIframeElement=e,label:"Account Number",iframeOrigin:`${this.iframeOrigin}/v2/accountNumber`})),e("div",{key:"1c95618a50e2d36a3a9a3a7b691ae0dfa6a09936",class:"row"},e("iframe-input",{key:"28a4dde70c8f55b4f6bf6ce2d3beee6acbebbc0b",inputId:"routingNumber",ref:e=>this.routingNumberIframeElement=e,label:"Routing Number",iframeOrigin:`${this.iframeOrigin}/v2/routingNumber`}))))}};export{d as bank_account_form}
@@ -1 +1 @@
1
- import{r as e,h as a,H as t}from"./p-kpoIU4v_.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}
1
+ import{r as e,h as a,H as t}from"./p-kpoIU4v_.js";import{au as l,G as d}from"./p-CfF8KKwx.js";import{a as i,r as s,s as o,b as c}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,c,n,f,b,u,h,m,v,y,p,k,x;const j=this.formController.getInitialValues().additional_questions;return a(t,{key:"e3e354a7cf470f658e0f95d37186b1f45771b673"},a("fieldset",{key:"7fb001177a4f907d513eb5955063d446234ede0c"},a("legend",{key:"ee6b045a438be9f56345daad752e105640f1ca3d",part:d},"Additional Questions"),a("div",{key:"ed114675357f3b70c34a3eb941fdb30e6219cdc9",class:"row gy-3"},a("div",{key:"b85c27c827cf5e5d0d556c343315e5eec736f538",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"4576f67fa74ba7c2ca9730468ddc52b055a3c496",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:"0614c60cc7daaf890ccb4888d41b0260a26f9a0e",class:"col-12 col-md-6"},a("form-control-monetary-provisioning",{key:"2c435c1553714d75542e0e3bcf1d723f26b37da8",name:"business_payment_volume",label:"What is the business' annual credit card & ACH volume anticipated to process?",inputHandler:this.inputHandler,errorText:null===(n=null===(c=this.errors)||void 0===c?void 0:c.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:"8d4a19eb0b6b5707f4a423543d86ae50f6492efc",class:"col-12"},a("form-control-select",{key:"2e49f907bae85cd4901e4aa4413284596fbed365",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:"11bc4e0bbe2122b977cf8bc29ac0601ef941881c",class:"col-12"},a("form-control-select",{key:"c511b728971250dc3272c1ef9ff96131a9ac6a2e",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:"5a40dfe41a9fca815cdf0eb7455b41615d1e6c76",class:"col-12"},a("form-control-text",{key:"d8aaf0f6d7d44b1b15ec76af198a0117493f08c6",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:"b211bb865a60baf1ea00c81f76f000ff2a31d7bd",class:"col-12"},a("form-control-select",{key:"4b693e7425e690a59e2c70646cca2b886b8a8796",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:o,defaultValue:null==j?void 0:j.business_seasonal})),a("div",{key:"e85b7fceb9cdc808afaf3559609b7519c9630266",class:"col-12"},a("form-control-text",{key:"ae4a6518c7499826f30376f1c902f694244059c7",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:"75bbee71e68fb0dafa609838f4d3e22bf4388332"},a("fieldset",{key:"1e1cc71bfd46b278ad3f7d3a73d5b126fbf19533"},a("legend",{key:"341b82942f116b4a2b0b29ce505fda3a153f88ec",part:d},"General Info"),a("div",{key:"e97b3c3a38f888795c24c887d42854c79f1f7b34",class:"row gy-3"},a("div",{key:"6d560585e9843143c836a302ad83b19719732467",class:"col-12"},a("form-control-text",{key:"9868049d15e3f2552feba3ff6fa6b1ab43c7ae9c",name:"legal_name",label:"Legal Name",defaultValue:e.legal_name,errorText:this.errors.legal_name,inputHandler:this.inputHandler})),a("div",{key:"f77c1d66117c29b6f5963a99bbb531f76242d052",class:"col-12"},a("form-control-text",{key:"2708d678c35d4fa9838cd3fd834c77105b94feff",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:"bb17f23c8f7fc1be73524dce8ed11ce9a9524a21",class:"col-12 col-md-8"},a("form-control-select",{key:"bc4175a9ed29127d89cf9c6135448c80733f6959",name:"classification",label:"Business Classification",options:c,defaultValue:e.classification,errorText:this.errors.classification,inputHandler:this.inputHandler})),a("div",{key:"6c5faad25c64ec50023be5128b8b0527584f9a7c",class:"col-12 col-md-4"},a("form-control-date",{key:"54a151222d7eabc40a66ffbd5d0dba2e765cd135",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:"5a562ba1811a319d2f5dd10197be2e1ecb94da8b",class:"col-12 col-md-6"},a("form-control-text",{key:"03780a900fd4c176e5658b0784ef57eb48d2b3f7",name:"industry",label:"Industry",defaultValue:e.industry,errorText:this.errors.industry,inputHandler:this.inputHandler})),a("div",{key:"96e4110eb7b40f87a804b24a2ec94defca0be899",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"3cfda64e576a93bbed143b34c235b5388dade635",name:"tax_id",label:"Tax ID",defaultValue:e.tax_id,errorText:this.errors.tax_id,inputHandler:this.inputHandler,mask:n.US})),a("div",{key:"6a6e4d87838f2666c2750662c1f031f3b8d0effe",class:"col-12"},a("form-control-text",{key:"68f28a6b78e2df1cd69631097a001369722d8081",name:"website_url",label:"Website URL",defaultValue:e.website_url,errorText:this.errors.website_url,inputHandler:this.inputHandler})),a("div",{key:"8a334f64bc214d1211772e5a5018b82dadd88d1a",class:"col-12 col-md-6"},a("form-control-text",{key:"639888a2d30e785e1d403830c718b7991f28285a",name:"email",label:"Email Address",defaultValue:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"b4aac33c17ce96c5c9a9ce5a90f322f69941df5e",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"c384d24cc34fefca964a5eb412b28360361ab780",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:"88bd35928331776d5cbb7d085fd55a76fde1a084"},a("fieldset",{key:"202c40f332352c2f4d3c8a136888c39c67379e5f"},a("legend",{key:"a0b5043b348b1d8632a6bf0fe2d4309a8132d1f7",part:d},"Representative"),a("div",{key:"ba50c004e2b37f384dd8af63b1e0e397abadb9de",class:"row gy-3"},a("div",{key:"b85bf5fb0da9e8feae19dbebb0a911362e914601",class:"col-12 col-md-8"},a("form-control-text",{key:"95f849c7c0ba0c67bdc0a55727e00755e03897ef",name:"name",label:"Full Name",defaultValue:null==e?void 0:e.name,errorText:this.errors.name,inputHandler:this.inputHandler})),a("div",{key:"074067a3ce960b678ea38d53b84adda24e60754c",class:"col-12 col-md-4"},a("form-control-text",{key:"7ef397af32b7c0f79eeae1499bf3d3d147961c96",name:"title",label:"Title",defaultValue:null==e?void 0:e.title,errorText:this.errors.title,inputHandler:this.inputHandler})),a("div",{key:"a26bfd8a0824aaa12c6ffa48ac58c2bccc7236ef",class:"col-12 col-md-6"},a("form-control-text",{key:"39174c4b812462d1aa28824bca550e3f6e1d98b4",name:"email",label:"Email Address",defaultValue:null==e?void 0:e.email,errorText:this.errors.email,inputHandler:this.inputHandler})),a("div",{key:"ed0a2c52e4df0c43b2536dfd1ff3692a4e5716d9",class:"col-12 col-md-6"},a("form-control-number-masked",{key:"07bdcc1dd2e1473b64218eb28c8cdcf1cdce2a91",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:"96092fd371ec82a8f8ebbf8bc4e3064768d4ad97",class:"col-12 col-md-4"},a("form-control-date",{key:"c24980f126c056aff139e897fdef9795905ea89b",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:"9d1695fa6e68bb4ae9a8184dcb5e15d588474ab8",class:"col-12 col-md-8"},a("form-control-number-masked",{key:"8d8a56c08fb06f1a54baf3ee3d6e31a684205290",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:"22fa5e16517e14ab031aa5e7e95ea77bd7b28986",class:"col-12"},a("justifi-identity-address-form",{key:"4a990de739a0ae6fbf1f6a621ff7c0078517e970",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,o,c,r,n,f,b,u,h;const y=this.formController.getInitialValues().legal_address;return a(t,{key:"5b21d99717f9b24c0551c7a96acf68e53e7787bf"},a("fieldset",{key:"d63cbd20b2648405c50a819724e0f8cf556f7d26"},a("legend",{key:"c0acd14073f13f914015f40d39bf22fb58792434",part:d},"Business Legal Address"),a("div",{key:"ee4cee6bd662816f822ee209aeda5e9664f6a64d",class:"row gy-3"},a("div",{key:"86b258fd09e73cbd2475330419274732231f3871",class:"col-12"},a("form-control-text",{key:"8d898a9ae448f07932afe2d8cfc2314b92d9c597",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:"1a50c4b86a754035f71efacd39721219fcd54d60",class:"col-12"},a("form-control-text",{key:"507b1451685e359a900f0bc7010ff39e3631daf2",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:"1446b4db5f86a3b18e3aceb78274ffe458dbd3db",class:"col-12"},a("form-control-text",{key:"e17e4bd95ad4290d18edde79cf05a6b3a105166c",name:"city",label:"City",inputHandler:this.inputHandler,defaultValue:null==y?void 0:y.city,errorText:null===(c=null===(o=this.errors)||void 0===o?void 0:o.legal_address)||void 0===c?void 0:c.city})),a("div",{key:"9b880203bad9e104e6d1299ff73c83cba46ab563",class:"col-12"},a("form-control-select",{key:"24e4df10f688c9a1b5f2af5217f03919bf7abec7",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:"71f21b19602c268e3b6a839ce41ff9d4f8ffb8c4",class:"col-12"},a("form-control-text",{key:"ca71d3e21c5a0aea5367fa28ec1a2422ba9b1cf3",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:"aaee0bf6a24ba182e002c1ffb49736fb622cde1f",class:"col-12"},a("form-control-select",{key:"2b6486771818e584dcc195c304e5a6e16850b4a9",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 +1 @@
1
- import{r as e,h as a}from"./p-kpoIU4v_.js";import{c as t,a as i,F as c}from"./p-CR9D6mKt.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}
1
+ import{r as e,h as a}from"./p-kpoIU4v_.js";import{c as t,a as i,F as c}from"./p-CR9D6mKt.js";import{al as d}from"./p-CfF8KKwx.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))},b=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:"3904e1b961f9e1a0683647d306a128efcd7b9202"},a("div",{key:"37ae13e4b7ad7bc8a18b588c4e591cde9030147e",class:"row gy-3"},a("div",{key:"2f9b835795f21e4585638ad8be2093642f08b982",class:"col-12"},a("h2",{key:"9ff1aeb8256ffe97c6300bd48597542519cda0a7",class:"h5",part:d},"Additional Evidence")),a("div",{key:"e4c6b9f4624b06103b6c643838a76c4a724e3168",class:"col-12"},a("form-control-textarea",{key:"dc9a5cb126a2d6f70cd8d59cdcfcd29f5c4e341b",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:"ba5202a5d8df30f5f4b7217341110646bb76e082",class:"col-12"},a("form-control-file-v2",{key:"3168fc63d6bd6013821ee335914d916bb680fe42",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}))))}},f=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(f)}componentDidLoad(){this.form.errors.subscribe((e=>{this.errors=Object.assign({},e)}))}render(){var e,t,i;return a("div",{key:"29819e51969e655219ccbdbb2e1d1b738b64f7d3"},a("div",{key:"28279bbc8354128a5041ed6eac16d4966be1584c",class:"row gy-3"},a("div",{key:"8b6215544f87a8c35b81a93a5f4826a35e0c0f9f",class:"col-12"},a("h2",{key:"b6337efb93f03ea48f2c29b1baef4929f236df2d",class:"h5",part:d},"Cancellation Policy")),a("div",{key:"b7d78115378ecd0b4a4f8a43349f1b4f2527ca35",class:"col-12"},a("form-control-textarea",{key:"6ab47f5626a945f222efceef43dc096061cb67ed",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:"6aeccf798d112e79251408401c99d916a9065e94",class:"col-12"},a("form-control-textarea",{key:"580e61e4370570c9a04496fef4b7ad9c19058336",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:"e0deddf002b64d02bc5a5db075da11d2566dc3bb",class:"col-12"},a("form-control-file-v2",{key:"3da55e915d4d3126456de8e95debc6d9e46dca42",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:"f5442efc59bb6a99a87f90feb5a4a147019af940"},a("div",{key:"d0f97e7ca943bfe8e4846ea84838ab08dc3658ab",class:"row gy-3"},a("div",{key:"da7f41d96c717f921010786f593c3776e2644738",class:"col-12"},a("h2",{key:"0f7d56f400ec0f4250bbf7c8b2b736e084c17ab0",class:"h5",part:d},"Customer Details")),a("div",{key:"eca73b10ec43454be35d4ec6e09b410b7a509b46",class:"col-12"},a("form-control-text",{key:"1b67e031f3ac24b43319b09a01a5e297095ecc84",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:"967326bb10e6d2a64b2f3f0bae99432f238e361c",class:"col-12"},a("form-control-text",{key:"fc7d83cc51728920d9f4849dd85f4f019bb50fe4",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:"4e598f3e9bf118ddf22c4c160f0171c9789cd853",class:"col-12"},a("form-control-textarea",{key:"fe1c2e1a4c70ef463a31e890349a5b49f979e21b",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:"a4345bc3b39f913cc233baa21373a6d7d93d3cda",class:"col-12"},a("form-control-file-v2",{key:"82cb1b948807d901845a23137b5d488c9edd53ae",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:"ffc589785e6114d604c2d98d3140de5487dc8af6",class:"col-12"},a("form-control-file-v2",{key:"5b6b64927e4b90cc6dbb302fbc0d2067b70c6f4a",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:"2b1fbb67aebf81b2cac878cfd86a71e31feb7288"},a("div",{key:"e05d18f73ae193c43ead170ca59e580172115c25",class:"row gy-3"},a("div",{key:"0f0c24505bc9e14e79681e1686e61671027af940",class:"col-12"},a("h2",{key:"0c5a6f6119c5178564ece36506e90d79cf0a2393",class:"h5",part:d},"Duplicate Charge")),a("div",{key:"cb740c8a1b6ded55b53b4b402ec5ae3147b6c632",class:"col-12"},a("form-control-text",{key:"a89bae70a2cf7500d69d51d0e2a8b9f50dc6ed56",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:"87ec40290b40beae641136a5caca878bf5b69d34",class:"col-12"},a("form-control-textarea",{key:"3a87c44d1584949ac5ec444c28b26a043a697e90",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:"dc4fbe2c23c992d9bf72d1932d41886d3a4bd53a",class:"col-12"},a("form-control-file-v2",{key:"ee9e58fff423be4009bef08109b14a4acda8e39f",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:"e23dbefec1d452aa3ba3cca69523eee0f5cfe923"},a("div",{key:"e1f11a356d05519b568b5bb65be9e8a1fc14e46f",class:"row gy-3"},a("div",{key:"a6208153a9a44d49e88f80d953477de8b40ed64b",class:"col-12"},a("h2",{key:"c80cc00343452fbf9d9ddacb6929d3a7e0a33f42",class:"h5",part:d},"Electronic Evidence")),a("div",{key:"1ed5c9f72596f33f41431eb62e6338f60adc9ab3",class:"col-12"},a("form-control-text",{key:"dfb38a1c00b8b09849840f4a071fbaa12321f7a8",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:"d6f0a73cccf7eb2ea481836c6206ee39a0a21c6c",class:"col-12"},a("form-control-file-v2",{key:"25dfd3efa3ec536f899fb263624bfea1b68dc397",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:"f1f7d30bd481b5e3b49d9aaffd6e9bc1266b3c17"},a("div",{key:"c41caefa4937db6b0669cd28e84b6918c719d8f0",class:"row gy-3"},a("div",{key:"be3b622f366017c7a8bdddfc363a0a46216de2ea",class:"col-12"},a("h2",{key:"39374858f492c6e20e637dab0c73356fb6c6499d",class:"h5",part:d},"Product & Service Details")),a("div",{key:"c910f0b2a6c1574f2b09348e4d3b889a675bbfeb",class:"col-12"},a("form-control-text",{key:"636616c14d388dd25c33d81220231f2e7b36ec2f",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:"44da2982c48cd5da994aec38f5196205b25c4868",class:"col-12"},a("form-control-date",{key:"6b5ff071f9e941caaadff9fbaf18501524f71fce",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:"8ae3d7fbc3826f932ee14d98a48d90cf913606af",class:"col-12"},a("form-control-file-v2",{key:"5990ebe0df1e74fd7b1d6a6cf1dd8d08cd680a68",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:"75d1e4a99166f8b8f112746fd5a786ed4b41b6ae"},a("div",{key:"c4a137ad32f0a0e5580061b1cc2443399d5baf15",class:"row gy-3"},a("div",{key:"8b864aacd4b1334f9a5e7ffdf116345db20aac58",class:"col-12"},a("h2",{key:"e319c7e0d2ebedf204e6845fb977651b96f4a9b8",class:"h5",part:d},"Refund Policy and Receipt")),a("div",{key:"72cc1aff194c70395f8002b4af6842cd42046d80",class:"col-12"},a("form-control-textarea",{key:"798219393da9f68198205bb877a5a3aa2ac2d1bb",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:"bc0d341abb63327da6d97fba120c34aebabd50b3",class:"col-12"},a("form-control-textarea",{key:"2aa931300951be7897d9ba4adeda6be5e94a00d8",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:"c3cad588c5b40a6133920a0c43f71d7b172abdab",class:"col-12"},a("form-control-file-v2",{key:"8f2184a0d95804a85d61de763c14b1a6fb44c566",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:"183f6286e96694e54fd31213b514349a43d0446f",class:"col-12"},a("form-control-file-v2",{key:"e3f97404946c8e6a813d397141d10e372df5f520",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:"a0907d5f1fe8d40876f816b6d332dbb0d9afe975"},a("div",{key:"3f22d56b30227d9ce0d22dc45c4e29bba60b5366",class:"row gy-3"},a("div",{key:"ec768dcf266527e981712f55cdb1921d0e6ef257",class:"col-12"},a("h2",{key:"0b0e92ba9164941f48e1162937d7bd694683b206",class:"h5",part:d},"Shipping Details")),a("div",{key:"2a5f5508c7f8b1a3a674d4bd18a2cba725ff86e7",class:"col-12"},a("form-control-text",{key:"deb04aa47dee3269ad8ad84b59edfdf251207520",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:"e340cf8f480c335b7e565e7d4bf052685bc3f78f",class:"col-12"},a("form-control-text",{key:"8e3d040776e821518c0d04ea8d0da2d0ddb75cd3",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:"71dab91e7befe734db1b8f02bb3fd8d1b8180ab8",class:"col-12"},a("form-control-date",{key:"f257e98c81762700c7164a8cbd86764ebe4e4353",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:"e69255a96e9292fea2269f7f0a7888e53e5a8be7",class:"col-12"},a("form-control-textarea",{key:"b40386270d12484982d81a85db0e95853f76ec58",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:"23f2a4dabdaefef86940ae03e00a5d240d061a2f",class:"col-12"},a("form-control-file-v2",{key:"6db6eb9ed1803d7c25f2b9dd03955be7e9c41a34",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{b 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 +1 @@
1
- import{r as a,h as e,H as s}from"./p-kpoIU4v_.js";import{E as c}from"./p-CLHwhyvu.js";import{a8 as t,a9 as i,aa as b,ab as d,ac as f}from"./p-D3G5aVLy.js";const p=class{constructor(e){a(this,e),this.paging=c,this.params={}}render(){return e(s,{key:"7b821154b627026ef8624af6e4759e2176004676"},e("nav",{key:"7990aee285d0cc3e6f83cb59bb216439e5364df5","aria-label":"Table pagination",class:"d-flex justify-content-end gap-3"},e("ul",{key:"02c68163934ce1aabf4abd607cc28e549e20ebe1",class:"pagination m-0"},e("li",{key:"aab661ae85fc61eecd230d058f135483796769c0",class:"page-item "+(this.paging.has_previous?"":" disabled")},e("button",{key:"ef42a41831a9890186c333418b161877761674e1",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickPrevious(this.paging.start_cursor)},part:this.paging.has_previous?t:i},e("span",{key:"a898a92687e4a5fec37d9dab4208430260a9f274",class:"me-1",part:b},"«"),e("span",{key:"ecc2eeedc064d405ad178b9a98ed088e12f1b2fb",part:d},"Previous"))),e("li",{key:"56569cd9f9803ead8b1180e2f982a98d7009be1f",class:"page-item "+(this.paging.has_next?"":" disabled")},e("button",{key:"c39d389ab89609e8ce11b3dd81eb5c4a50d3521f",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickNext(this.paging.end_cursor)},part:this.paging.has_next?t:i},e("span",{key:"6a01458a048a524931b03df6a964fa4a0ac403ac",part:d},"Next"),e("span",{key:"f4cb3d084647c00dff30b99f751180564463443f",class:"ms-1",part:f},"»"))))))}};export{p as pagination_menu}
1
+ import{r as a,h as e,H as s}from"./p-kpoIU4v_.js";import{E as c}from"./p-CLHwhyvu.js";import{a8 as t,a9 as i,aa as b,ab as f,ac as d}from"./p-CfF8KKwx.js";const p=class{constructor(e){a(this,e),this.paging=c,this.params={}}render(){return e(s,{key:"7b821154b627026ef8624af6e4759e2176004676"},e("nav",{key:"7990aee285d0cc3e6f83cb59bb216439e5364df5","aria-label":"Table pagination",class:"d-flex justify-content-end gap-3"},e("ul",{key:"02c68163934ce1aabf4abd607cc28e549e20ebe1",class:"pagination m-0"},e("li",{key:"aab661ae85fc61eecd230d058f135483796769c0",class:"page-item "+(this.paging.has_previous?"":" disabled")},e("button",{key:"ef42a41831a9890186c333418b161877761674e1",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickPrevious(this.paging.start_cursor)},part:this.paging.has_previous?t:i},e("span",{key:"a898a92687e4a5fec37d9dab4208430260a9f274",class:"me-1",part:b},"«"),e("span",{key:"ecc2eeedc064d405ad178b9a98ed088e12f1b2fb",part:f},"Previous"))),e("li",{key:"56569cd9f9803ead8b1180e2f982a98d7009be1f",class:"page-item "+(this.paging.has_next?"":" disabled")},e("button",{key:"c39d389ab89609e8ce11b3dd81eb5c4a50d3521f",class:"page-link",onClick:a=>{a.preventDefault(),this.paging.handleClickNext(this.paging.end_cursor)},part:this.paging.has_next?t:i},e("span",{key:"6a01458a048a524931b03df6a964fa4a0ac403ac",part:f},"Next"),e("span",{key:"f4cb3d084647c00dff30b99f751180564463443f",class:"ms-1",part:d},"»"))))))}};export{p as pagination_menu}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i}from"./p-kpoIU4v_.js";import{C as e,a as r}from"./p-Cjcsf8ku.js";import{c as o,J as p}from"./p-CEsXw0Ph.js";import{D as a}from"./p-BH0Xfn-F.js";import{g as n,a as h}from"./p-D2muobcE.js";import{D as u}from"./p-BySyDTv5.js";import"./p-wutYt_7D.js";import"./p-I8XpD1TX.js";import"./p-9y5MOK55.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";import"./p-WEguiGt1.js";import"./p-CLHwhyvu.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:r,onError:o})=>{var p;try{const u=await i.fetchDispute(t,s);if(u.error)return o({error:h(u.error),code:n(null===(p=u.error)||void 0===p?void 0:p.code),severity:e.ERROR});{const t=Object.assign({},u.page_info);r({dispute:new a(u.data),pagingInfo:t})}}catch(t){const s=n(null==t?void 0:t.code);return o({error:t.message||t,code:s,severity:e.ERROR})}})({id:this.disputeId,authToken:this.authToken,service:new u}):(this.errorMessage="Dispute ID and Auth Token are required",this.errorEvent.emit({message:this.errorMessage,errorCode:r.MISSING_PROPS,severity:e.ERROR}))}render(){return i("justifi-dispute-management-core",{key:"8c800827aaa9d549a734ea05698763685e160a98",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}
@@ -1 +1 @@
1
- import{h as t,r as s,c as e}from"./p-kpoIU4v_.js";import{c as r,a as i,F as o}from"./p-CR9D6mKt.js";import{f as n}from"./p-B7jE0g5_.js";import"./p-9y5MOK55.js";import{C as a,a as u}from"./p-Cjcsf8ku.js";import{R as l,i as m}from"./p-Bou1Z4Bm.js";import"./p-CLHwhyvu.js";import"./p-BDUTtU21.js";import"./p-BlJnA265.js";import"./p-7MWRbTXI.js";import{B as h}from"./p-Cm_ywVHL.js";import{S as p}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{P as c}from"./p-ObR0KZw0.js";import{m as d}from"./p-DSfL8jLw.js";import{c as f,J as j}from"./p-BhPJwhHm.js";import{g as v,a as y}from"./p-D2muobcE.js";import{A as b}from"./p-Dj1uo4J3.js";import{S as w}from"./p-Bz8JT676.js";import"./p-BFTU3MAI.js";import"./p-7WIgS5RM.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D3G5aVLy.js";import"./p-Byn89EGB.js";const g=t=>{const s=+t;return i().required("Amount is required").test("max-amount",`Refund amount cannot be more than payment amount: ${n(s)}`,(function(t){return+t<=+s})).test("min-amount","Refund amount must be greater than 0",(function(t){return+t>0}))},B=t=>{if(t)return r({amount:g(t),description:i().optional(),reason:i().optional().oneOf([l.customerRequest,l.duplicate,l.fraudulent],"Select a reason")})},R=[{label:"Select a reason",value:""},{label:"Customer requested a refund",value:"customer_request"},{label:"Customer was double-charged",value:"duplicate"},{label:"Payment was reported as fraud",value:"fraudulent"}],C=b();class T{async postRefund(t,s,e,r){return C.post({endpoint:`payments/${t}/refunds`,headers:{"Sub-Account":s},body:r,authToken:e})}}const x=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"100%",height:"40px"}))),A=()=>t(p,null,t("div",{class:"row gap-5"},t(x,null),t(x,null),t(x,null))),I=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event"),this.submitEvent=e(this,"submit-event"),this.refundPayload={},this.displayAmount="",this.errors={},this.paymentLoading=!0,this.refundLoading=!1,this.hideSubmitButton=!1,this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}componentWillLoad(){f(),this.analytics=new j(this),this.initializeApi(),this.formController=new o(B())}handleError(t,s,e){this.errorEvent.emit({errorCode:t,message:s,severity:e})}checkAmount(t){return t>0}handleInvalidAmount(){this.submitDisabled=!0,this.handleError(u.INVALID_REFUND_AMOUNT,"Refund amount must be greater than 0",a.ERROR)}initializeFormController(){const t=this.refundPayload.amount,s=t?t.toString():"0";this.formController=new o(B(s)),this.formController.setInitialValues({amount:s}),this.formController.values.subscribe((t=>{this.refundPayload=Object.assign({},t)})),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.paymentId&&this.authToken?d({id:this.paymentId,authToken:this.authToken,service:new c})({onSuccess:({payment:t})=>{this.refundPayload=new m({amount:t.amount_refundable})},onError:({error:t,code:s,severity:e})=>{this.handleError(s,t,e)},final:()=>{this.checkAmount(this.refundPayload.amount)?this.initializeFormController():this.handleInvalidAmount(),this.paymentLoading=!1}}):this.handleError(u.MISSING_PROPS,"Payment ID and Auth Token are required",a.ERROR)}async refundPayment(t){if(t&&t.preventDefault(),!await this.formController.validate())return;const s=(({authToken:t,accountId:s,paymentId:e,service:r})=>async({refundBody:i,onSuccess:o,onError:n,final:u})=>{var l;try{const u=await r.postRefund(e,s,t,i);if(u.error)return n({error:y(u.error),code:v(null===(l=u.error)||void 0===l?void 0:l.code),severity:a.ERROR});o(u)}catch(t){const s=v(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:a.ERROR})}finally{return u()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new T}),e=this.formController.values.getValue();return this.refundLoading=!0,new Promise((t=>{let r;s({refundBody:e,onSuccess:t=>{r=t},onError:({error:t,code:s,severity:e})=>{r=t,this.handleError(t,s,e)},final:()=>{this.submitEvent.emit({response:r}),this.submitDisabled=!0,this.refundLoading=!1,t(r.data)}})}))}render(){if(this.paymentLoading)return t(A,null);const s=this.formController.getInitialValues(),e=this.refundPayload.amount;return t(p,null,t("form",null,t("fieldset",null,t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-monetary",{name:"amount",label:"Refund Amount",defaultValue:s.amount,inputHandler:this.inputHandler,errorText:this.errors.amount})),t("div",{class:"col-12"},t("form-control-select",{name:"reason",label:"Reason for refund (optional)",defaultValue:s.reason,inputHandler:this.inputHandler,options:R,errorText:this.errors.reason})),t("div",{class:"col-12"},t("form-control-textarea",{name:"description",label:"Note (optional)",defaultValue:s.description,inputHandler:this.inputHandler,maxLength:250,errorText:this.errors.description})),t("div",{class:"form-group d-flex flex-row-reverse"},t(h,{variant:"primary",type:"submit",onClick:this.refundPayment.bind(this),isLoading:this.paymentLoading||this.refundLoading,hidden:this.hideSubmitButton,disabled:this.submitDisabled},`Refund ${n(+e)}`))))))}};export{I as justifi_refund_payment}
1
+ import{h as t,r as s,c as e}from"./p-kpoIU4v_.js";import{c as r,a as i,F as o}from"./p-CR9D6mKt.js";import{f as n}from"./p-zdIeCUeh.js";import"./p-9y5MOK55.js";import{C as a,a as u}from"./p-Cjcsf8ku.js";import{R as l,j as m}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{B as h}from"./p-JgbsbAhz.js";import{S as p}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{P as c}from"./p-Bb6FBEPP.js";import{m as d}from"./p-CLwzqWk2.js";import{c as f,J as j}from"./p-CEsXw0Ph.js";import{g as v,a as y}from"./p-D2muobcE.js";import{A as b}from"./p-I8XpD1TX.js";import{S as w}from"./p-BC8YDY7M.js";import"./p-BFTU3MAI.js";import"./p-HXpYMWUU.js";import"./p-7WIgS5RM.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-CfF8KKwx.js";import"./p-wutYt_7D.js";const C=t=>{const s=+t;return i().required("Amount is required").test("max-amount",`Refund amount cannot be more than payment amount: ${n(s)}`,(function(t){return+t<=+s})).test("min-amount","Refund amount must be greater than 0",(function(t){return+t>0}))},g=t=>{if(t)return r({amount:C(t),description:i().optional(),reason:i().optional().oneOf([l.customerRequest,l.duplicate,l.fraudulent],"Select a reason")})},x=[{label:"Select a reason",value:""},{label:"Customer requested a refund",value:"customer_request"},{label:"Customer was double-charged",value:"duplicate"},{label:"Payment was reported as fraud",value:"fraudulent"}],A=b();class I{async postRefund(t,s,e,r){return A.post({endpoint:`payments/${t}/refunds`,headers:{"Sub-Account":s},body:r,authToken:e})}}const R=()=>t("div",{class:"row gap-3"},t("div",{class:"col-12"},t(w,{width:"100%",height:"40px"}))),k=()=>t(p,null,t("div",{class:"row gap-5"},t(R,null),t(R,null),t(R,null))),B=class{constructor(t){s(this,t),this.errorEvent=e(this,"error-event"),this.submitEvent=e(this,"submit-event"),this.refundPayload={},this.displayAmount="",this.errors={},this.paymentLoading=!0,this.refundLoading=!1,this.hideSubmitButton=!1,this.inputHandler=(t,s)=>{this.formController.setValues(Object.assign(Object.assign({},this.formController.values.getValue()),{[t]:s}))}}componentWillLoad(){f(),this.analytics=new j(this),this.initializeApi(),this.formController=new o(g())}handleError(t,s,e){this.errorEvent.emit({errorCode:t,message:s,severity:e})}checkAmount(t){return t>0}handleInvalidAmount(){this.submitDisabled=!0,this.handleError(u.INVALID_REFUND_AMOUNT,"Refund amount must be greater than 0",a.ERROR)}initializeFormController(){const t=this.refundPayload.amount,s=t?t.toString():"0";this.formController=new o(g(s)),this.formController.setInitialValues({amount:s}),this.formController.values.subscribe((t=>{this.refundPayload=Object.assign({},t)})),this.formController.errors.subscribe((t=>{this.errors=Object.assign({},t)}))}initializeApi(){this.paymentId&&this.authToken?d({id:this.paymentId,authToken:this.authToken,service:new c})({onSuccess:({payment:t})=>{this.refundPayload=new m({amount:t.amount_refundable})},onError:({error:t,code:s,severity:e})=>{this.handleError(s,t,e)},final:()=>{this.checkAmount(this.refundPayload.amount)?this.initializeFormController():this.handleInvalidAmount(),this.paymentLoading=!1}}):this.handleError(u.MISSING_PROPS,"Payment ID and Auth Token are required",a.ERROR)}async refundPayment(t){if(t&&t.preventDefault(),!await this.formController.validate())return;const s=(({authToken:t,accountId:s,paymentId:e,service:r})=>async({refundBody:i,onSuccess:o,onError:n,final:u})=>{var l;try{const u=await r.postRefund(e,s,t,i);if(u.error)return n({error:y(u.error),code:v(null===(l=u.error)||void 0===l?void 0:l.code),severity:a.ERROR});o(u)}catch(t){const s=v(null==t?void 0:t.code);return n({error:t.message||t,code:s,severity:a.ERROR})}finally{return u()}})({authToken:this.authToken,accountId:this.accountId,paymentId:this.paymentId,service:new I}),e=this.formController.values.getValue();return this.refundLoading=!0,new Promise((t=>{let r;s({refundBody:e,onSuccess:t=>{r=t},onError:({error:t,code:s,severity:e})=>{r=t,this.handleError(t,s,e)},final:()=>{this.submitEvent.emit({response:r}),this.submitDisabled=!0,this.refundLoading=!1,t(r.data)}})}))}render(){if(this.paymentLoading)return t(k,null);const s=this.formController.getInitialValues(),e=this.refundPayload.amount;return t(p,null,t("form",null,t("fieldset",null,t("div",{class:"row gy-3"},t("div",{class:"col-12"},t("form-control-monetary",{name:"amount",label:"Refund Amount",defaultValue:s.amount,inputHandler:this.inputHandler,errorText:this.errors.amount})),t("div",{class:"col-12"},t("form-control-select",{name:"reason",label:"Reason for refund (optional)",defaultValue:s.reason,inputHandler:this.inputHandler,options:x,errorText:this.errors.reason})),t("div",{class:"col-12"},t("form-control-textarea",{name:"description",label:"Note (optional)",defaultValue:s.description,inputHandler:this.inputHandler,maxLength:250,errorText:this.errors.description})),t("div",{class:"form-group d-flex flex-row-reverse"},t(h,{variant:"primary",type:"submit",onClick:this.refundPayment.bind(this),isLoading:this.paymentLoading||this.refundLoading,hidden:this.hideSubmitButton,disabled:this.submitDisabled},`Refund ${n(+e)}`))))))}};export{B as justifi_refund_payment}
@@ -0,0 +1 @@
1
+ import{A as t}from"./p-I8XpD1TX.js";import"./p-Cjcsf8ku.js";import"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";const a=t();class n{async fetchPayouts(t,n,s){return a.get({authToken:n,endpoint:`account/${t}/payouts`,params:s})}async fetchPayout(t,n){return a.get({authToken:n,endpoint:`payouts/${t}`})}async fetchCSV(t,n){return a.get({authToken:n,endpoint:`reports/payouts/${t}`})}async fetchPayoutTransactions(t,n,s){return a.get({authToken:n,endpoint:"balance_transactions",params:s,headers:{"sub-account":t}})}}export{n as P}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e,H as i}from"./p-kpoIU4v_.js";import{I as a}from"./p-Ce_F4E0f.js";import{C as r}from"./p-B-iV5cYd.js";import{a2 as h,l as o,U as n,b as l,T as c,a as f}from"./p-CfF8KKwx.js";import{F as d}from"./p-D599ZMGU.js";import{F as p}from"./p-C_CXv7AN.js";import"./p-CZfYo5-1.js";const m=class{constructor(e){t(this,e),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=a(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=l),this.disabled&&(t=c),this.isFocused&&(t=f),t}render(){return e(i,{key:"59e5e4d46e7d4ece898464d846505756611f6635"},e("div",{key:"e82201d6777584666ec5ca04ad9e02b83fa956c0",class:"form-group d-flex flex-column"},e("label",{key:"9bbb22bb201d3db07670e4f26521593ff229f583",part:o,class:"form-label",htmlFor:this.name},this.label),e("div",{key:"61909b4796f78e22d9e6508d9257cdf16220e675",class:"input-group"},e("span",{key:"152a4f1a6323e55bf6f48aa25353939569acc419",class:"input-group-text",part:n},"$"),e("input",{key:"cc8055c02a4ccb4f63553f45b5ded4ee3d8cf972",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})),e(d,{key:"776dfb4a9d74342ba139dda6706af8e60b4700fc",helpText:this.helpText,name:this.name}),e(p,{key:"74e503b7e525aeeb994b1ae94941f07365d2460e",errorText:this.errorText,name:this.name})))}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};export{m as form_control_monetary_provisioning}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i}from"./p-kpoIU4v_.js";import{P as r}from"./p-ObR0KZw0.js";import{m as p}from"./p-DSfL8jLw.js";import{E as e}from"./p-CEYGUVns.js";import{C as o,a}from"./p-Cjcsf8ku.js";import{c as m,J as h}from"./p-BhPJwhHm.js";import"./p-Dj1uo4J3.js";import"./p-9y5MOK55.js";import"./p-7WIgS5RM.js";import"./p-B7jE0g5_.js";import"./p-Bou1Z4Bm.js";import"./p-CLHwhyvu.js";import"./p-BDUTtU21.js";import"./p-7MWRbTXI.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D2muobcE.js";import"./p-D3G5aVLy.js";import"./p-Byn89EGB.js";const n=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 h(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:o.ERROR}))}render(){return this.errorMessage?e(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{n as justifi_payment_details}
1
+ import{r as t,c as s,h as i}from"./p-kpoIU4v_.js";import{P as r}from"./p-Bb6FBEPP.js";import{m as p}from"./p-CLwzqWk2.js";import{E as e}from"./p-DO3INvI2.js";import{C as o,a}from"./p-Cjcsf8ku.js";import{c as m,J as h}from"./p-CEsXw0Ph.js";import"./p-I8XpD1TX.js";import"./p-9y5MOK55.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-HXpYMWUU.js";import"./p-WEguiGt1.js";import"./p-BH0Xfn-F.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-D2muobcE.js";import"./p-CfF8KKwx.js";import"./p-wutYt_7D.js";const n=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 h(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:o.ERROR}))}render(){return this.errorMessage?e(this.errorMessage):i("payment-details-core",{getPaymentDetails:this.getPaymentDetails,"onError-event":this.handleErrorEvent})}static get watchers(){return{paymentId:["propChanged"],authToken:["propChanged"]}}};export{n as justifi_payment_details}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,c as i,H as s,g as o}from"./p-kpoIU4v_.js";import{D as r,r as a}from"./p-CfF8KKwx.js";import{f as n}from"./p-zdIeCUeh.js";import{c as d,o as h}from"./p-CCME-fyU.js";import{S as c}from"./p-CRFzwZW6.js";import"./p-CZfYo5-1.js";import{H as l}from"./p-zrUQD0Wr.js";import{H as u,b as m,h as p,i as f}from"./p-qMrd7_Gp.js";import{H as v}from"./p-CwZKT93w.js";import{J as y,c as b}from"./p-CEsXw0Ph.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import{C as k,a as j,b as g}from"./p-Cjcsf8ku.js";import{I as C,k as w}from"./p-WEguiGt1.js";import"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{g as M,a as _}from"./p-D2muobcE.js";import{C as z}from"./p-UD2JhYS2.js";import{C as P}from"./p-ZpPDShvP.js";import"./p-7WIgS5RM.js";import"./p-wutYt_7D.js";import"./p-I8XpD1TX.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";const S=class{constructor(e){t(this,e)}render(){return e(c,{key:"fccb819d66329424af42e9c53effec29a6c9784d"},e("section",{key:"0ee7a4e0579f7f222a9db82e6b4db6bb92542d9e"},e("div",{key:"bdf74b2bc5db35b96ca75d50783b790bb482a76e"},e("div",{key:"851b481bd6beb1fcaadc106d27d131f8b07d1c9a",part:r},null==d?void 0:d.paymentDescription),e("div",{key:"0b261bc0e2d65cf989778e02df51b3265816f7aa"},e("span",{key:"0eee0017ddf25ae45d6b5c828071098f45e6e19d",part:r},"Total")," ",e("span",{key:"d21576f14c3437f70a4b85b9dfc01107392d663a",part:r},n(+(null==d?void 0:d.totalAmount)))))))}},O=class{constructor(e){t(this,e),this.levels={h1:l,h2:u,h3:v},this.level="h1"}render(){return e(c,{key:"ae04a67a1eaf95d6d093fef23911ac4eb1523cfe"},e(this.levels[this.level],{key:"51b27dd180d113ebe9ac52f7ff10c494926f7cdf",text:this.text,class:this.class}))}},I=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event"),this.submitEvent=i(this,"submit-event"),this.paymentMethodChangedEvent=i(this,"payment-method-changed"),this.savePaymentMethod=!1}savePaymentMethodChanged(t){d.savePaymentMethod=t}connectedCallback(){this.observer=new MutationObserver((()=>{this.queryFormRefs()})),this.observer.observe(this.hostEl,{childList:!0,subtree:!0}),d.checkoutId=this.checkoutId;const t={authToken:this.authToken,checkoutId:this.checkoutId,service:new z};this.getCheckout=(({authToken:t,checkoutId:e,service:i})=>async({onSuccess:s,onError:o})=>{var r;try{const a=await i.fetchCheckout(t,e);if(a.error)return o({error:_(a.error),code:M(null===(r=a.error)||void 0===r?void 0:r.code),severity:k.ERROR});s({checkout:a.data})}catch(t){const e=M(null==t?void 0:t.code);return o({error:t.message||t,code:e,severity:k.ERROR})}})(t),this.completeCheckout=(({authToken:t,checkoutId:e,service:i})=>async({payment:s,onSuccess:o,onError:r})=>{var a;try{const n=await i.complete(t,e,s);if(n.error)return r({error:_(n.error),code:M(null===(a=n.error)||void 0===a?void 0:a.code),severity:k.ERROR});o({checkout:n.data})}catch(t){const e=M(null==t?void 0:t.code);return r({error:t.message||t,code:e,severity:k.ERROR})}})(t),h("selectedPaymentMethod",(t=>{this.paymentMethodChangedEvent.emit(t)}))}componentWillLoad(){this.authToken&&this.checkoutId?(this.analytics=new y(this),b(),d.authToken=this.authToken,d.savePaymentMethod=this.savePaymentMethod,this.fetchCheckout(),m("set",(t=>{const e=f[t];void 0!==e&&p(t,e)&&this.fetchCheckout()}))):this.errorEvent.emit({message:g.NOT_AUTHENTICATED,errorCode:j.NOT_AUTHENTICATED,severity:k.ERROR})}componentDidLoad(){this.queryFormRefs()}disconnectedCallback(){var t;null===(t=this.observer)||void 0===t||t.disconnect()}fetchCheckout(){this.getCheckout&&this.getCheckout({onSuccess:({checkout:t})=>{t.status!==C.completed?t.status!==C.expired?this.updateStore(t):this.errorEvent.emit({message:g.CHECKOUT_EXPIRED,errorCode:j.CHECKOUT_EXPIRED,severity:k.ERROR}):this.errorEvent.emit({message:g.CHECKOUT_ALREADY_COMPLETED,errorCode:j.CHECKOUT_ALREADY_COMPLETED,severity:k.ERROR})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:j.FETCH_ERROR,severity:k.ERROR})}})}updateStore(t){var e,i,s,o;d.accountId=t.account_id,d.paymentMethods=t.payment_methods,d.paymentMethodGroupId=t.payment_method_group_id,d.paymentDescription=t.payment_description,d.totalAmount=t.total_amount,d.paymentAmount=t.payment_amount,d.bnplEnabled=t.payment_settings.bnpl_payments,d.bnplProviderClientId=null===(e=null==t?void 0:t.bnpl)||void 0===e?void 0:e.provider_client_id,d.bnplProviderMode=null===(i=null==t?void 0:t.bnpl)||void 0===i?void 0:i.provider_mode,d.bnplProviderApiVersion=null===(s=null==t?void 0:t.bnpl)||void 0===s?void 0:s.provider_api_version,d.bnplProviderCheckoutUrl=null===(o=null==t?void 0:t.bnpl)||void 0===o?void 0:o.provider_checkout_url}queryFormRefs(){this.paymentMethodFormRef=this.hostEl.querySelector("justifi-card-form, justifi-bank-account-form"),this.billingInformationFormRef=this.hostEl.querySelector("justifi-billing-form, justifi-bank-account-billing-form-simple, justifi-card-billing-form-simple"),this.insuranceFormRef=this.hostEl.querySelector("justifi-season-interruption-insurance"),this.sezzlePaymentMethodRef=this.hostEl.querySelector("justifi-sezzle-payment-method")}async tokenizePaymentMethod(t){var e,i,s;const o=null!==(i=await(null===(e=this.billingInformationFormRef)||void 0===e?void 0:e.getValues()))&&void 0!==i?i:{},r=Object.assign(Object.assign({},t),o),a=Object.assign({accountId:d.accountId,payment_method_group_id:void 0},r);return d.savePaymentMethod&&(a.payment_method_group_id=d.paymentMethodGroupId),null===(s=this.paymentMethodFormRef)||void 0===s?void 0:s.tokenize({clientId:this.authToken,paymentMethodMetadata:a,account:d.accountId})}async getPaymentMethod(t){if(d.paymentToken)return d.paymentToken;if(!this.paymentMethodFormRef)return d.selectedPaymentMethod;const{error:e,id:i}=await this.tokenizePaymentMethod(t);if(!e)return i;this.errorEvent.emit({errorCode:e.code,message:e.message,severity:k.ERROR})}async validate(){var t;const e=[null===(t=this.billingInformationFormRef)||void 0===t?void 0:t.validate()];return!d.paymentToken&&this.paymentMethodFormRef&&e.push(this.paymentMethodFormRef.validate()),this.insuranceFormRef&&e.push(this.insuranceFormRef.validate()),(await Promise.all(e)).every((t=>"boolean"==typeof t?t:t&&"object"==typeof t&&"isValid"in t?t.isValid:!1!==t))}async submitCheckout(t){var e;if(!await this.validate())return void this.errorEvent.emit({message:"Please fill in all required fields.",errorCode:j.VALIDATION_ERROR,severity:k.ERROR});let i;if("sezzle"===d.selectedPaymentMethod){const t=this.insuranceFormRef?await this.insuranceFormRef.validate():{isValid:!0},s=await this.sezzlePaymentMethodRef.resolvePaymentMethod(t);if(s.error)return void this.errorEvent.emit({message:s.error.message,errorCode:j.TOKENIZE_ERROR,severity:k.ERROR});"success"===(null===(e=s.bnpl)||void 0===e?void 0:e.status)&&(i={payment_mode:"bnpl",payment_token:void 0})}else{const e=await this.getPaymentMethod(t);if(!e)return void this.errorEvent.emit({message:"Payment method tokenization failed.",errorCode:j.TOKENIZE_ERROR,severity:k.ERROR});i={payment_mode:"ecom",payment_token:e}}this.completeCheckout({payment:i,onSuccess:({checkout:t})=>{this.submitEvent.emit({checkout:t,message:"Checkout completed successfully"})},onError:t=>{this.errorEvent.emit({message:t.message,errorCode:j.COMPLETE_CHECKOUT_ERROR,severity:k.ERROR})}})}async setSelectedPaymentMethod(t){d.selectedPaymentMethod=t}render(){return e(s,{key:"047a90f9aed88b72c60f6333e20fa00871fdd17a"})}get hostEl(){return o(this)}static get watchers(){return{savePaymentMethod:["savePaymentMethodChanged"]}}},D=class{constructor(e){t(this,e),this.onPaymentMethodOptionClick=t=>e=>{e.preventDefault(),d.selectedPaymentMethod=t},this.isAllowedPaymentMethod=t=>!("card"===t.type&&d.disableCreditCard||"bank_account"===t.type&&d.disableBankAccount)}componentWillLoad(){d.paymentMethods.length||console.warn("No saved payment methods available."),d.disablePaymentMethodGroup&&console.warn("Payment method group is disabled.")}render(){return d.disablePaymentMethodGroup?null:e(c,null,e("div",{class:"saved-payment-methods"},d.paymentMethods.length?d.paymentMethods.filter(this.isAllowedPaymentMethod).map((t=>e("div",{class:"radio-list-item p-3",part:a,onClick:this.onPaymentMethodOptionClick(null==t?void 0:t.id)},e("form-control-radio",{name:"paymentMethodType",value:null==t?void 0:t.id,checked:d.selectedPaymentMethod===(null==t?void 0:t.id),label:`${P[null==t?void 0:t.brand]||""} *${null==t?void 0:t.acct_last_four}`})))):null))}},E=e("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"}}),T=class{constructor(e){t(this,e),this.paymentMethodOptionSelected=i(this,"paymentMethodOptionSelected"),this.paymentMethodOptionId="sezzle",this.onPaymentMethodOptionClick=t=>{t.preventDefault(),d.selectedPaymentMethod=this.paymentMethodOptionId,this.paymentMethodOptionSelected.emit(this.paymentMethodOptionId)},this.initializeSezzleCheckout=()=>{let t;this.sezzlePromise=new Promise((e=>{t=e}));const e=Number(d.paymentAmount),i=new(0,window.Checkout)({mode:"popup",publicKey:d.bnplProviderClientId,apiMode:d.bnplProviderMode,apiVersion:d.bnplProviderApiVersion});i.sezzleButtonElement=this.sezzleButtonRef,i.init({onClick:function(t){t.preventDefault(),i.startCheckout({checkout_url:d.bnplProviderCheckoutUrl})},onComplete:e=>t({bnpl:e.data}),onCancel:e=>t({bnpl:e.data}),onFailure:e=>t({bnpl:e.data})}),this.sezzleCheckout=i,this.installmentPlan=this.sezzleCheckout.getInstallmentPlan(e)}}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,i;return!d.bnplEnabled||d.disableBnpl?(console.warn("justifi-sezzle-payment-method: BNPL is not enabled for this account."),null):e(c,{class:"payment-method"},e("script",{src:"https://checkout-sdk.sezzle.com/checkout.min.js",async:!0,ref:t=>this.scriptRef=t}),e("div",{class:"radio-list-item p-3",part:a,onClick:this.onPaymentMethodOptionClick},e("form-control-radio",{name:"paymentMethodType",value:this.paymentMethodOptionId,checked:d.selectedPaymentMethod===this.paymentMethodOptionId,label:e("div",null,e("div",null,"Buy now, pay later with ",E),this.installmentPlan&&e("small",null,e("span",null,null===(t=this.installmentPlan)||void 0===t?void 0:t.installments.length)," ",e("span",null,this.installmentPlan.schedule," payments of")," ",e("span",{class:"fw-bold"},n(null===(i=this.installmentPlan)||void 0===i?void 0:i.installments[0].amountInCents))))})))}},F={[w.bankAccount]:"New bank account",[w.card]:"New credit or debit card"},L="Payment form not ready",B="Validation error",H=class{constructor(e){t(this,e),this.errorEvent=i(this,"error-event"),this.submitEvent=i(this,"submit-event"),this.isLoading=!1,this.computedHideSubmitButton=!1,this.submitButtonText="Submit"}componentWillLoad(){b(),this.analytics=new y(this),this.validateRequiredProps()}connectedCallback(){this.setDefaultSelectedPaymentMethod(),this.setComputedHideSubmitButton()}disconnectedCallback(){var t;null===(t=this.analytics)||void 0===t||t.cleanup()}paymentMethodsChanged(){this.setDefaultSelectedPaymentMethod()}handleRadioClick(t){this.selectedPaymentMethodId=t.detail}async fillBillingForm(t){var e;null===(e=this.billingFormRef)||void 0===e||e.fill(t)}async tokenizePaymentMethod(t){null==t||t.preventDefault(),this.isLoading=!0;try{if(!(await this.validate()).isValid)return this.errorEvent.emit({errorCode:j.TOKENIZE_ERROR,message:B}),void(this.isLoading=!1);const t=await this.resolvePaymentMethod({isValid:!0});return t.error&&this.emitError({errorCode:t.error.code,message:t.error.message}),this.submitEvent.emit({response:t}),t}catch(t){const e=this.createErrorResponse(j.TOKENIZE_ERROR,t.message);return this.emitError({errorCode:j.TOKENIZE_ERROR,message:t.message}),this.submitEvent.emit({response:e}),e}finally{this.isLoading=!1}}async validate(){if(!this.areFormsReady())return{isValid:!1,errors:{general:L}};const[t,e]=await Promise.all([this.billingFormRef.validate(),this.paymentMethodFormRef.validate()]);return{isValid:t.isValid&&e.isValid,errors:Object.assign(Object.assign({},t.errors),e.errors)}}validateRequiredProps(){this.authToken||d.authToken||this.emitError({errorCode:j.TOKENIZE_ERROR,message:"Auth token is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"}),this.accountId||d.accountId||this.emitError({errorCode:j.TOKENIZE_ERROR,message:"Account ID is required when using the tokenize-payment-method component not slotted in justifi-modular-checkout"})}setDefaultSelectedPaymentMethod(){this.selectedPaymentMethodId||(this.disableCreditCard?this.disableBankAccount||(this.selectedPaymentMethodId=w.bankAccount):this.selectedPaymentMethodId=w.card)}setComputedHideSubmitButton(){if(void 0!==this.hideSubmitButton)return void(this.computedHideSubmitButton=this.hideSubmitButton);const t=this.isSlottedWithinModularCheckout();this.computedHideSubmitButton=t}isSlottedWithinModularCheckout(){var t;let e=null===(t=this.host)||void 0===t?void 0:t.parentElement;for(;e;){if("JUSTIFI-MODULAR-CHECKOUT"===e.tagName)return!0;e=e.parentElement}return!1}get availablePaymentMethods(){const t=[];return this.disableCreditCard||t.push(w.card),this.disableBankAccount||t.push(w.bankAccount),t}areFormsReady(){return!(!this.billingFormRef||!this.paymentMethodFormRef)}emitError(t){this.errorEvent.emit(Object.assign(Object.assign({},t),{severity:k.ERROR}))}createErrorResponse(t,e){return{error:{code:t,message:e,decline_code:void 0}}}async resolvePaymentMethod(t){if(!this.areFormsReady())return this.createErrorResponse("form_not_ready",L);try{const e=await this.validate();if(!e.isValid||!t.isValid){const t=Object.values(e.errors)[0]||B;return{validationError:!0,error:{code:"validation_error",message:String(t),decline_code:void 0}}}return await this.performTokenization()}catch(t){return{error:t}}}async performTokenization(){var t,e;const i=await this.tokenize();if(i.error)return{error:i.error};const s=i.data;return{token:(null===(t=s.card)||void 0===t?void 0:t.token)||(null===(e=s.bank_account)||void 0===e?void 0:e.token),data:s}}async tokenize(){try{const t=await this.billingFormRef.getValues(),e={clientId:this.authToken||d.authToken,account:this.accountId||d.accountId,paymentMethodMetadata:this.buildPaymentMethodMetadata(t)};return await this.paymentMethodFormRef.tokenize(e)}catch(t){return t}}buildPaymentMethodMetadata(t){return this.shouldSavePaymentMethod?Object.assign(Object.assign({},t),{payment_method_group_id:this.paymentMethodGroupID}):Object.assign({},t)}get paymentMethodGroupID(){return this.paymentMethodGroupId||d.paymentMethodGroupId}get shouldSavePaymentMethod(){return!(!this.paymentMethodGroupId&&!d.savePaymentMethod)}get shouldHideRadioInput(){return this.disableCreditCard||this.disableBankAccount}renderPaymentMethodOption(t){const i=this.selectedPaymentMethodId===t;return e("div",{class:"payment-method"},e("justifi-radio-list-item",{name:"paymentMethodType",value:t,checked:i,label:F[t],hidden:this.shouldHideRadioInput}),i&&this.renderSelectedPaymentMethodForm(t))}renderSelectedPaymentMethodForm(t){return e("div",{class:"mt-4 pb-4"},this.renderPaymentMethodForm(t),e("div",{class:"mt-4"},e("justifi-billing-form",{ref:t=>this.billingFormRef=t,hideCardBillingForm:this.hideCardBillingForm,hideBankAccountBillingForm:this.hideBankAccountBillingForm,paymentMethodType:t})),e("justifi-save-new-payment-method",{hidden:!this.paymentMethodGroupID}))}renderPaymentMethodForm(t){return e(t===w.card?"justifi-card-form":"justifi-bank-account-form",{ref:t=>this.paymentMethodFormRef=t})}render(){return e(c,{key:"11b857dea77d2f753e400cfaf021db51326ffc36"},e("form",{key:"fd1c625c62b1699157b24834e15c4c6e0bc93b84"},e("fieldset",{key:"febf7db57a5ceda457e21287c20df817b101b45d"},e("div",{key:"1089c358094a3f0cea1c97b807779c7eb6e9e692",class:"row gy-3"},e("div",{key:"f564fbfec389008e352f9de54fdb604be56d8826",class:"col-12"},this.availablePaymentMethods.map((t=>this.renderPaymentMethodOption(t)))),e("div",{key:"e3e7f46529d1a659f387fb6df0914c168d556e27",class:"col-12"},e("justifi-button",{key:"d729f38c5b55c174de479ab57da56defd327366b",text:this.submitButtonText,variant:"primary",type:"submit",clickHandler:t=>this.tokenizePaymentMethod(t),isLoading:this.isLoading,"data-testid":"submit-button",hidden:this.computedHideSubmitButton}))))))}get host(){return o(this)}static get watchers(){return{disableCreditCard:["paymentMethodsChanged"],disableBankAccount:["paymentMethodsChanged"]}}};export{S as justifi_checkout_summary,O as justifi_header,I as justifi_modular_checkout,D as justifi_saved_payment_methods,T as justifi_sezzle_payment_method,H as justifi_tokenize_payment_method}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e}from"./p-kpoIU4v_.js";import{T as i,a,b as r,c as h,d as o,e as c,f as n,g as p,h as d,i as m,j as f,k as b,l as u}from"./p-Bz164TKZ.js";import{T as g}from"./p-CZfYo5-1.js";import"./p-9y5MOK55.js";import"./p-HXpYMWUU.js";import"./p-Cjcsf8ku.js";import"./p-WEguiGt1.js";import{p as j}from"./p-CLHwhyvu.js";import"./p-BlJnA265.js";import"./p-BH0Xfn-F.js";import{t as l,a as y}from"./p-BTkXk7ol.js";import{o as k,g as C}from"./p-CVQyw7ao.js";import"./p-CfF8KKwx.js";import"./p-C1fMfnu0.js";import"./p-7WIgS5RM.js";import"./p-zdIeCUeh.js";import"./p-Dt-vy9Le.js";import"./p-BX8GieXu.js";import"./p-vRhNRfmB.js";const O=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=j,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.terminalOrders.find((t=>t.id===s));this.clickEvent.emit({name:g.row,data:e})}}updateOnPropChange(){this.fetchData()}componentWillLoad(){this.terminalOrdersTable=new i(this.terminalOrders,this.columns,l,y),this.getTerminalOrders&&this.fetchData(),k("set",(()=>{this.pagingParams={}})),k("reset",(()=>{this.pagingParams={},this.errorMessage=""}))}fetchData(){this.loading=!0,this.getTerminalOrders({params:this.terminalOrderParams,onSuccess:async({terminalOrders:t,pagingInfo:s})=>{this.terminalOrders=t,this.paging=s,this.terminalOrdersTable.collectionData=this.terminalOrders},onError:({error:t,code:s,severity:e})=>{this.errorMessage=t,this.errorEvent.emit({errorCode:s,message:t,severity:e})},final:()=>{this.loading=!1}})}get terminalOrderParams(){const t=C();return Object.assign(Object.assign({},t),this.pagingParams)}get entityId(){return this.terminalOrders.map((t=>t.id))}get showEmptyState(){return!this.loading&&!this.errorMessage&&this.terminalOrdersTable.rowData.length<1}get showErrorState(){return!this.loading&&!!this.errorMessage}get showRowData(){return!this.showEmptyState&&!this.showErrorState&&!this.loading}render(){return e(u,{key:"8a0766c914fedb4544e1420a9d4821033ff5b63e"},e(a,{key:"082e4d1231d470bbdcdb6283b769dfa170d4497c"},e(r,{key:"657a36dea6be9c12ea4d184b80100926f5d5a776"},e(h,{key:"15e2897c02a069998ab7e317714e27b5c25496de"},this.terminalOrdersTable.columnData.map((t=>t)))),e(o,{key:"2c4ce1e4d6542a6a35fe84e930d5aa80be8f1e5e"},e(c,{key:"9d6dc10cbc5bac7dc70f5b89835e66d94b7a7f47",columnSpan:this.terminalOrdersTable.columnKeys.length,isLoading:this.loading}),e(n,{key:"8cbb3e23fe963729e25e2692db64027a8fa60cd3",isEmpty:this.showEmptyState,columnSpan:this.terminalOrdersTable.columnKeys.length}),e(p,{key:"b13a399c4df1f596d46cc87236172499eecfcde8",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(m,{key:"95df4815cc997770b8422a9ad1553bf1fca04c55"},e(f,{key:"4e58cb642110fa73b437fa8eccb8bc7900bb0409"},e(b,{key:"42f6b9a69a798bbe7f6478adb99294156bcffab3",colSpan:this.terminalOrdersTable.columnData.length},e("pagination-menu",{key:"82740c87d012610d1f7863b52463e7d6ac4ad482",paging:Object.assign(Object.assign({},this.paging),{handleClickPrevious:this.handleClickPrevious,handleClickNext:this.handleClickNext})}))))))}static get watchers(){return{pagingParams:["updateOnPropChange"],getTerminalOrders:["updateOnPropChange"],columns:["updateOnPropChange"]}}};export{O as terminal_orders_list_core}
@@ -0,0 +1 @@
1
+ import{r as l,h as i,H as t}from"./p-kpoIU4v_.js";import{c as e,D as s}from"./p-DO3INvI2.js";import{l as v,s as d,m as o}from"./p-zdIeCUeh.js";import"./p-CfF8KKwx.js";import"./p-HXpYMWUU.js";const a=class{constructor(i){l(this,i)}render(){return!this.additionalQuestions||v(this.additionalQuestions)?null:i("div",null,i(s,{sectionTitle:"Additional Questions"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Business Revenue",value:this.additionalQuestions.business_revenue}),i(e,{title:"Business Payment Volume",value:this.additionalQuestions.business_payment_volume})))))}},u=class{constructor(i){l(this,i)}render(){return this.business?i("div",null,i(s,{sectionTitle:"Business Core Info Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Legal Name",value:this.business.legal_name}),i(e,{title:"Doing Business As (DBA)",value:this.business.doing_business_as}),i(e,{title:"Business Classification",value:d(this.business.classification)}),i(e,{title:"Industry",value:this.business.industry})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Tax ID",value:this.business.tax_id}),i(e,{title:"Website URL",value:this.business.website_url}),i(e,{title:"Email Address",value:this.business.email}),i(e,{title:"Phone Number",value:this.business.phone}))))):null}},n=class{constructor(i){l(this,i)}render(){var l,t,d,o,a,u,n;return!this.legalAddress||v(this.legalAddress)?null:i("div",null,i(s,{sectionTitle:"Business Legal Address Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Country",value:null===(l=this.legalAddress)||void 0===l?void 0:l.country}),i(e,{title:"Legal Address",value:null===(t=this.legalAddress)||void 0===t?void 0:t.line1}),i(e,{title:"Address Line 2",value:null===(d=this.legalAddress)||void 0===d?void 0:d.line2})),i("div",{class:"col-12 col-md-6"},i(e,{title:"City",value:null===(o=this.legalAddress)||void 0===o?void 0:o.city}),i(e,{title:"State",value:null===(a=this.legalAddress)||void 0===a?void 0:a.state}),i(e,{title:"Postal Code",value:null===(n=null===(u=this.legalAddress)||void 0===u?void 0:u.postal_code)||void 0===n?void 0:n.toString()})))))}},r=class{constructor(i){l(this,i)}render(){var l;return(null===(l=null==this?void 0:this.owners)||void 0===l?void 0:l.length)?i(t,null,!!(null==this?void 0:this.owners.length)&&this.owners.map((l=>{var t,v,d,a,u;return[i(s,{sectionTitle:`Owner ${null==l?void 0:l.name}'s Details`}),i("div",{class:"d-table gap-2 w-100 mt-3"},i(e,{title:"Name",value:null==l?void 0:l.name}),i(e,{title:"Title",value:null==l?void 0:l.title}),i(e,{title:"Email",value:null==l?void 0:l.email}),i(e,{title:"Phone",value:null==l?void 0:l.phone}),i(e,{title:"Date of Birth",value:o(new Date(Number(null==l?void 0:l.dob_day),Number(null==l?void 0:l.dob_month),Number(null==l?void 0:l.dob_year)))}),i(e,{title:"Identification Number",value:`********${null==l?void 0:l.ssn_last4}`}),i(e,{title:"Line 1",value:null===(t=null==l?void 0:l.address)||void 0===t?void 0:t.line1}),i(e,{title:"Line 2",value:null===(v=null==l?void 0:l.address)||void 0===v?void 0:v.line2}),i(e,{title:"City",value:null===(d=null==l?void 0:l.address)||void 0===d?void 0:d.city}),i(e,{title:"State",value:null===(a=null==l?void 0:l.address)||void 0===a?void 0:a.state}),i(e,{title:"Zip",value:null===(u=null==l?void 0:l.address)||void 0===u?void 0:u.postal_code}))]}))):null}},c=class{constructor(i){l(this,i)}render(){var l,t,d,a,u,n,r,c,h,m,p,w,b,g;return!this.representative||v(this.representative)?null:i("div",null,i(s,{sectionTitle:"Representative Details"}),i("div",{class:"d-table gap-2 w-100 mt-3"},i("div",{class:"row gy-3"},i("div",{class:"col-12 col-md-6"},i(e,{title:"Name",value:null===(l=this.representative)||void 0===l?void 0:l.name}),i(e,{title:"ID",value:null===(t=this.representative)||void 0===t?void 0:t.id}),i(e,{title:"Address",value:null===(a=null===(d=this.representative)||void 0===d?void 0:d.address)||void 0===a?void 0:a.line1}),i(e,{title:"Created At",value:(null===(u=this.representative)||void 0===u?void 0:u.created_at)&&o(null===(n=this.representative)||void 0===n?void 0:n.created_at)})),i("div",{class:"col-12 col-md-6"},i(e,{title:"Title",value:null===(r=this.representative)||void 0===r?void 0:r.title}),i(e,{title:"Is Owner?",value:null===(c=this.representative)||void 0===c?void 0:c.is_owner.toString()}),i(e,{title:"Date Of Birth",value:this.representative&&o(new Date(Number(null===(h=this.representative)||void 0===h?void 0:h.dob_year),Number(null===(m=this.representative)||void 0===m?void 0:m.dob_month)-1,Number(null===(p=this.representative)||void 0===p?void 0:p.dob_day)))}),i(e,{title:"Email",value:null===(w=this.representative)||void 0===w?void 0:w.email}),i(e,{title:"Phone",value:null===(b=this.representative)||void 0===b?void 0:b.phone}),i(e,{title:"Updated At",value:this.representative&&o(null===(g=this.representative)||void 0===g?void 0:g.updated_at)})))))}};export{a as additional_questions_details,u as core_info_details,n as legal_address_details,r as owner_details,c as representative_details}